@@ -60,68 +60,29 @@ extern "C" {
#define UNION_NO 2
#define SAVE_MEMORY_WITH_UNNAMED_UNION UNION_YES
-typedef enum {
- v2gEVCheckOutStatusType_CheckOut = 0,
- v2gEVCheckOutStatusType_Processing = 1,
- v2gEVCheckOutStatusType_Completed = 2
-} v2gEVCheckOutStatusType;
-
-/* Complex type name='http://www.w3.org/2000/09/xmldsig#,SignatureValueType', base type name='base64Binary', content type='SIMPLE', isAbstract='false', hasTypeId='false', final='0', block='0', derivedBy='EXTENSION'. */
-#define v2gSignatureValueType_Id_CHARACTERS_SIZE 50
-#define v2gSignatureValueType_CONTENT_BYTES_SIZE 350
-struct v2gSignatureValueType {
- /* attribute: Id {http://www.w3.org/2001/XMLSchema,ID} */
+/* Complex type name='http://www.w3.org/2000/09/xmldsig#,RSAKeyValueType', base type name='anyType', content type='ELEMENT', isAbstract='false', hasTypeId='false', final='0', block='0', particle='("http://www.w3.org/2000/09/xmldsig#":Modulus,"http://www.w3.org/2000/09/xmldsig#":Exponent)', derivedBy='RESTRICTION'. */
+#define iso2RSAKeyValueType_Modulus_BYTES_SIZE 350
+#define iso2RSAKeyValueType_Exponent_BYTES_SIZE 350
+struct iso2RSAKeyValueType {
+ /* element: "http://www.w3.org/2000/09/xmldsig#":Modulus, http://www.w3.org/2000/09/xmldsig#,CryptoBinary */
struct {
- exi_string_character_t characters[v2gSignatureValueType_Id_CHARACTERS_SIZE];
- uint16_t charactersLen;
- } Id ;
- unsigned int Id_isUsed:1;
- /* simple content: http://www.w3.org/2001/XMLSchema,base64Binary */
- struct {
- uint8_t bytes[v2gSignatureValueType_CONTENT_BYTES_SIZE];
+ uint8_t bytes[iso2RSAKeyValueType_Modulus_BYTES_SIZE];
uint16_t bytesLen;
- } CONTENT ;
-};
-
-typedef enum {
- v2gEVErrorCodeType_RESSTemperatureInhibit = 0,
- v2gEVErrorCodeType_EVShiftPosition = 1,
- v2gEVErrorCodeType_ChargerConnectorLockFault = 2,
- v2gEVErrorCodeType_EVRESSMalfunction = 3,
- v2gEVErrorCodeType_ChargingCurrentdifferential = 4,
- v2gEVErrorCodeType_ChargingVoltageOutOfRange = 5,
- v2gEVErrorCodeType_ChargingSystemIncompatibility = 6,
- v2gEVErrorCodeType_Reserved_A = 7,
- v2gEVErrorCodeType_Reserved_B = 8,
- v2gEVErrorCodeType_Reserved_C = 9
-} v2gEVErrorCodeType;
-
-/* Complex type name='urn:iso:15118:2:2016:MsgDataTypes,EVSEFinePositioningSetupParametersType', base type name='anyType', content type='EMPTY', isAbstract='true', hasTypeId='false', final='0', block='0', derivedBy='RESTRICTION'. */
-struct v2gEVSEFinePositioningSetupParametersType {
- int noContent; /* avoid warning */
-};
-
-/* Complex type name='urn:iso:15118:2:2016:MsgDataTypes,SubCertificatesType', base type name='anyType', content type='ELEMENT', isAbstract='false', hasTypeId='false', final='0', block='0', particle='("urn:iso:15118:2:2016:MsgDataTypes":Certificate{1-4})', derivedBy='RESTRICTION'. */
-#define v2gSubCertificatesType_Certificate_BYTES_SIZE 800 /* XML schema facet maxLength for urn:iso:15118:2:2016:MsgDataTypes,certificateType is 800 */
-#define v2gSubCertificatesType_Certificate_ARRAY_SIZE 4
-struct v2gSubCertificatesType {
- /* element: "urn:iso:15118:2:2016:MsgDataTypes":Certificate, urn:iso:15118:2:2016:MsgDataTypes,certificateType */
+ } Modulus ;
+ /* element: "http://www.w3.org/2000/09/xmldsig#":Exponent, http://www.w3.org/2000/09/xmldsig#,CryptoBinary */
struct {
- struct {
- uint8_t bytes[v2gSubCertificatesType_Certificate_BYTES_SIZE];
+ uint8_t bytes[iso2RSAKeyValueType_Exponent_BYTES_SIZE];
uint16_t bytesLen;
- } array[v2gSubCertificatesType_Certificate_ARRAY_SIZE];
- uint16_t arrayLen;
- } Certificate;
+ } Exponent ;
};
/* Complex type name='urn:iso:15118:2:2016:MsgDataTypes,MeterInfoType', base type name='anyType', content type='ELEMENT', isAbstract='false', hasTypeId='false', final='0', block='0', particle='("urn:iso:15118:2:2016:MsgDataTypes":MeterID,"urn:iso:15118:2:2016:MsgDataTypes":MeterReadingCharged{0-1},"urn:iso:15118:2:2016:MsgDataTypes":MeterReadingDischarged{0-1},"urn:iso:15118:2:2016:MsgDataTypes":SigMeterReading{0-1},"urn:iso:15118:2:2016:MsgDataTypes":MeterStatus{0-1},"urn:iso:15118:2:2016:MsgDataTypes":TMeter{0-1})', derivedBy='RESTRICTION'. */
-#define v2gMeterInfoType_MeterID_CHARACTERS_SIZE 32 /* XML schema facet maxLength for urn:iso:15118:2:2016:MsgDataTypes,meterIDType is 32 */
-#define v2gMeterInfoType_SigMeterReading_BYTES_SIZE 64 /* XML schema facet maxLength for urn:iso:15118:2:2016:MsgDataTypes,sigMeterReadingType is 64 */
-struct v2gMeterInfoType {
+#define iso2MeterInfoType_MeterID_CHARACTERS_SIZE 32 + EXTRA_CHAR /* XML schema facet maxLength for urn:iso:15118:2:2016:MsgDataTypes,meterIDType is 32 */
+#define iso2MeterInfoType_SigMeterReading_BYTES_SIZE 64 /* XML schema facet maxLength for urn:iso:15118:2:2016:MsgDataTypes,sigMeterReadingType is 64 */
+struct iso2MeterInfoType {
/* element: "urn:iso:15118:2:2016:MsgDataTypes":MeterID, urn:iso:15118:2:2016:MsgDataTypes,meterIDType */
struct {
- exi_string_character_t characters[v2gMeterInfoType_MeterID_CHARACTERS_SIZE];
+ exi_string_character_t characters[iso2MeterInfoType_MeterID_CHARACTERS_SIZE];
uint16_t charactersLen;
} MeterID ;
/* element: "urn:iso:15118:2:2016:MsgDataTypes":MeterReadingCharged, http://www.w3.org/2001/XMLSchema,unsignedLong */
@@ -132,7 +93,7 @@ struct v2gMeterInfoType {
unsigned int MeterReadingDischarged_isUsed:1;
/* element: "urn:iso:15118:2:2016:MsgDataTypes":SigMeterReading, urn:iso:15118:2:2016:MsgDataTypes,sigMeterReadingType */
struct {
- uint8_t bytes[v2gMeterInfoType_SigMeterReading_BYTES_SIZE];
+ uint8_t bytes[iso2MeterInfoType_SigMeterReading_BYTES_SIZE];
uint16_t bytesLen;
} SigMeterReading ;
unsigned int SigMeterReading_isUsed:1;
@@ -144,105 +105,363 @@ struct v2gMeterInfoType {
unsigned int TMeter_isUsed:1;
};
-typedef enum {
- v2gmechanicalChargingDeviceStatusType_Home = 0,
- v2gmechanicalChargingDeviceStatusType_Moving = 1,
- v2gmechanicalChargingDeviceStatusType_EndPosition = 2
-} v2gmechanicalChargingDeviceStatusType;
+/* Complex type name='urn:iso:15118:2:2016:MsgDataTypes,ServiceType', base type name='anyType', content type='ELEMENT', isAbstract='false', hasTypeId='false', final='0', block='0', particle='("urn:iso:15118:2:2016:MsgDataTypes":ServiceID,"urn:iso:15118:2:2016:MsgDataTypes":FreeService)', derivedBy='RESTRICTION'. */
+struct iso2ServiceType {
+ /* element: "urn:iso:15118:2:2016:MsgDataTypes":ServiceID, urn:iso:15118:2:2016:MsgDataTypes,serviceIDType */
+ uint16_t ServiceID ;
+ /* element: "urn:iso:15118:2:2016:MsgDataTypes":FreeService, http://www.w3.org/2001/XMLSchema,boolean */
+ int FreeService ;
+};
-/* Complex type name='urn:iso:15118:2:2016:MsgBody,V2GRequestType', base type name='anyType', content type='EMPTY', isAbstract='true', hasTypeId='false', final='0', block='0', derivedBy='RESTRICTION'. */
-struct v2gV2GRequestType {
+typedef enum {
+ iso2vehicleSpaceType_AutoParking = 0,
+ iso2vehicleSpaceType_MVGuideManual = 1,
+ iso2vehicleSpaceType_Manual = 2
+} iso2vehicleSpaceType;
+
+/* Complex type name='urn:iso:15118:2:2016:MsgDataTypes,ServiceListType', base type name='anyType', content type='ELEMENT', isAbstract='false', hasTypeId='false', final='0', block='0', particle='("urn:iso:15118:2:2016:MsgDataTypes":Service{1-8})', derivedBy='RESTRICTION'. */
+#define iso2ServiceListType_Service_ARRAY_SIZE 5
+struct iso2ServiceListType {
+ /* element: "urn:iso:15118:2:2016:MsgDataTypes":Service, Complex type name='urn:iso:15118:2:2016:MsgDataTypes,ServiceType', base type name='anyType', content type='ELEMENT', isAbstract='false', hasTypeId='false', final='0', block='0', particle='("urn:iso:15118:2:2016:MsgDataTypes":ServiceID,"urn:iso:15118:2:2016:MsgDataTypes":FreeService)', derivedBy='RESTRICTION'. */
+ struct {
+ struct iso2ServiceType array[iso2ServiceListType_Service_ARRAY_SIZE];
+ uint16_t arrayLen;
+ } Service;
+};
+
+typedef enum {
+ iso2operationModeType_Ready = 0,
+ iso2operationModeType_NotReady = 1
+} iso2operationModeType;
+
+/* Complex type name='urn:iso:15118:2:2016:MsgDataTypes,MagneticVectorSetupType', base type name='anyType', content type='ELEMENT', isAbstract='false', hasTypeId='false', final='0', block='0', particle='("urn:iso:15118:2:2016:MsgDataTypes":GAID,"urn:iso:15118:2:2016:MsgDataTypes":FrequencyChannel)', derivedBy='RESTRICTION'. */
+#define iso2MagneticVectorSetupType_GAID_CHARACTERS_SIZE 50 + EXTRA_CHAR
+struct iso2MagneticVectorSetupType {
+ /* element: "urn:iso:15118:2:2016:MsgDataTypes":GAID, http://www.w3.org/2001/XMLSchema,ID */
+ struct {
+ exi_string_character_t characters[iso2MagneticVectorSetupType_GAID_CHARACTERS_SIZE];
+ uint16_t charactersLen;
+ } GAID ;
+ /* element: "urn:iso:15118:2:2016:MsgDataTypes":FrequencyChannel, http://www.w3.org/2001/XMLSchema,unsignedInt */
+ uint32_t FrequencyChannel ;
+};
+
+/* Complex type name='urn:iso:15118:2:2016:MsgDataTypes,RelativeTimeIntervalType', base type name='anyType', content type='ELEMENT', isAbstract='false', hasTypeId='false', final='0', block='0', particle='("urn:iso:15118:2:2016:MsgDataTypes":start,"urn:iso:15118:2:2016:MsgDataTypes":duration{0-1})', derivedBy='RESTRICTION'. */
+struct iso2RelativeTimeIntervalType {
+ /* element: "urn:iso:15118:2:2016:MsgDataTypes":start, urn:iso:15118:2:2016:MsgDataTypes,#AnonType_startRelativeTimeIntervalType */
+ uint32_t start ;
+ /* element: "urn:iso:15118:2:2016:MsgDataTypes":duration, urn:iso:15118:2:2016:MsgDataTypes,#AnonType_durationRelativeTimeIntervalType */
+ uint32_t duration ;
+ unsigned int duration_isUsed:1;
+};
+
+/* Complex type name='urn:iso:15118:2:2016:MsgDataTypes,EVFinePositioningParametersType', base type name='anyType', content type='EMPTY', isAbstract='true', hasTypeId='false', final='0', block='0', derivedBy='RESTRICTION'. */
+struct iso2EVFinePositioningParametersType {
int noContent; /* avoid warning */
};
-/* Complex type name='urn:iso:15118:2:2016:MsgDataTypes,SensorMeasurementsType', base type name='anyType', content type='ELEMENT', isAbstract='false', hasTypeId='false', final='0', block='0', particle='("urn:iso:15118:2:2016:MsgDataTypes":SensorID,"urn:iso:15118:2:2016:MsgDataTypes":EffectiveRadiatedPower,"urn:iso:15118:2:2016:MsgDataTypes":MeasurementData{1-255})', derivedBy='RESTRICTION'. */
-#define v2gSensorMeasurementsType_MeasurementData_ARRAY_SIZE 5
-struct v2gSensorMeasurementsType {
- /* element: "urn:iso:15118:2:2016:MsgDataTypes":SensorID, http://www.w3.org/2001/XMLSchema,unsignedByte */
- uint8_t SensorID ;
- /* element: "urn:iso:15118:2:2016:MsgDataTypes":EffectiveRadiatedPower, http://www.w3.org/2001/XMLSchema,byte */
- int8_t EffectiveRadiatedPower ;
+/* Complex type name='http://www.w3.org/2000/09/xmldsig#,ObjectType', base type name='anyType', content type='MIXED', isAbstract='false', hasTypeId='false', final='0', block='0', particle='((WC[##any])){0-UNBOUNDED}', derivedBy='RESTRICTION'. */
+#define iso2ObjectType_Id_CHARACTERS_SIZE 50 + EXTRA_CHAR
+#define iso2ObjectType_MimeType_CHARACTERS_SIZE 50 + EXTRA_CHAR
+#define iso2ObjectType_Encoding_CHARACTERS_SIZE 50 + EXTRA_CHAR
+#define iso2ObjectType_ANY_CHARACTERS_SIZE 50 + EXTRA_CHAR
+struct iso2ObjectType {
+ /* attribute: Id {http://www.w3.org/2001/XMLSchema,ID} */
+ struct {
+ exi_string_character_t characters[iso2ObjectType_Id_CHARACTERS_SIZE];
+ uint16_t charactersLen;
+ } Id ;
+ unsigned int Id_isUsed:1;
+ /* attribute: MimeType {http://www.w3.org/2001/XMLSchema,string} */
+ struct {
+ exi_string_character_t characters[iso2ObjectType_MimeType_CHARACTERS_SIZE];
+ uint16_t charactersLen;
+ } MimeType ;
+ unsigned int MimeType_isUsed:1;
+ /* attribute: Encoding {http://www.w3.org/2001/XMLSchema,anyURI} */
+ struct {
+ exi_string_character_t characters[iso2ObjectType_Encoding_CHARACTERS_SIZE];
+ uint16_t charactersLen;
+ } Encoding ;
+ unsigned int Encoding_isUsed:1;
+ /* element: WC[##any] */
+ struct {
+ exi_string_character_t characters[iso2ObjectType_ANY_CHARACTERS_SIZE];
+ uint16_t charactersLen;
+ } ANY ;
+ unsigned int ANY_isUsed:1;
+};
+
+/* Complex type name='urn:iso:15118:2:2016:MsgDataTypes,SensorOrderListType', base type name='anyType', content type='ELEMENT', isAbstract='false', hasTypeId='false', final='0', block='0', particle='("urn:iso:15118:2:2016:MsgDataTypes":SensorPosition{1-255})', derivedBy='RESTRICTION'. */
+#define iso2SensorOrderListType_SensorPosition_ARRAY_SIZE 5
+struct iso2SensorOrderListType {
+ /* element: "urn:iso:15118:2:2016:MsgDataTypes":SensorPosition, http://www.w3.org/2001/XMLSchema,unsignedByte */
+ struct {
+ uint8_t array[iso2SensorOrderListType_SensorPosition_ARRAY_SIZE];
+ uint16_t arrayLen;
+ } SensorPosition;
+};
+
+/* Complex type name='urn:iso:15118:2:2016:MsgDataTypes,MeasurementDataListType', base type name='anyType', content type='ELEMENT', isAbstract='false', hasTypeId='false', final='0', block='0', particle='("urn:iso:15118:2:2016:MsgDataTypes":MeasurementData{1-255})', derivedBy='RESTRICTION'. */
+#define iso2MeasurementDataListType_MeasurementData_ARRAY_SIZE 5
+struct iso2MeasurementDataListType {
/* element: "urn:iso:15118:2:2016:MsgDataTypes":MeasurementData, http://www.w3.org/2001/XMLSchema,unsignedShort */
struct {
- uint16_t array[v2gSensorMeasurementsType_MeasurementData_ARRAY_SIZE];
+ uint16_t array[iso2MeasurementDataListType_MeasurementData_ARRAY_SIZE];
uint16_t arrayLen;
} MeasurementData;
};
-typedef enum {
- v2gEVOperationType_Charge = 0,
- v2gEVOperationType_BPT = 1
-} v2gEVOperationType;
-
-/* Complex type name='http://www.w3.org/2000/09/xmldsig#,X509IssuerSerialType', base type name='anyType', content type='ELEMENT', isAbstract='false', hasTypeId='false', final='0', block='0', particle='("http://www.w3.org/2000/09/xmldsig#":X509IssuerName,"http://www.w3.org/2000/09/xmldsig#":X509SerialNumber)', derivedBy='RESTRICTION'. */
-#define v2gX509IssuerSerialType_X509IssuerName_CHARACTERS_SIZE 50
-struct v2gX509IssuerSerialType {
- /* element: "http://www.w3.org/2000/09/xmldsig#":X509IssuerName, http://www.w3.org/2001/XMLSchema,string */
+/* Complex type name='http://www.w3.org/2000/09/xmldsig#,SignaturePropertyType', base type name='anyType', content type='MIXED', isAbstract='false', hasTypeId='false', final='0', block='0', particle='((WC[##other:"http://www.w3.org/2000/09/xmldsig#"])){1-UNBOUNDED}', derivedBy='RESTRICTION'. */
+#define iso2SignaturePropertyType_Target_CHARACTERS_SIZE 50 + EXTRA_CHAR
+#define iso2SignaturePropertyType_Id_CHARACTERS_SIZE 50 + EXTRA_CHAR
+#define iso2SignaturePropertyType_ANY_CHARACTERS_SIZE 50 + EXTRA_CHAR
+struct iso2SignaturePropertyType {
+ /* attribute: Target {http://www.w3.org/2001/XMLSchema,anyURI} */
struct {
- exi_string_character_t characters[v2gX509IssuerSerialType_X509IssuerName_CHARACTERS_SIZE];
+ exi_string_character_t characters[iso2SignaturePropertyType_Target_CHARACTERS_SIZE];
uint16_t charactersLen;
- } X509IssuerName ;
- /* element: "http://www.w3.org/2000/09/xmldsig#":X509SerialNumber, http://www.w3.org/2001/XMLSchema,integer */
- int64_t X509SerialNumber ;
+ } Target ;
+ /* attribute: Id {http://www.w3.org/2001/XMLSchema,ID} */
+ struct {
+ exi_string_character_t characters[iso2SignaturePropertyType_Id_CHARACTERS_SIZE];
+ uint16_t charactersLen;
+ } Id ;
+ unsigned int Id_isUsed:1;
+ /* element: WC[##other:"http://www.w3.org/2000/09/xmldsig#"] */
+ struct {
+ exi_string_character_t characters[iso2SignaturePropertyType_ANY_CHARACTERS_SIZE];
+ uint16_t charactersLen;
+ } ANY ;
+ unsigned int ANY_isUsed:1;
};
-/* Complex type name='urn:iso:15118:2:2016:MsgDataTypes,EVFinePositioningSetupParametersType', base type name='anyType', content type='EMPTY', isAbstract='true', hasTypeId='false', final='0', block='0', derivedBy='RESTRICTION'. */
-struct v2gEVFinePositioningSetupParametersType {
+/* Complex type name='http://www.w3.org/2000/09/xmldsig#,TransformType', base type name='anyType', content type='MIXED', isAbstract='false', hasTypeId='false', final='0', block='0', particle='((WC[##other:"http://www.w3.org/2000/09/xmldsig#"])|"http://www.w3.org/2000/09/xmldsig#":XPath){0-UNBOUNDED}', derivedBy='RESTRICTION'. */
+#define iso2TransformType_Algorithm_CHARACTERS_SIZE 65 + EXTRA_CHAR
+#define iso2TransformType_ANY_CHARACTERS_SIZE 50 + EXTRA_CHAR
+#define iso2TransformType_XPath_CHARACTERS_SIZE 50 + EXTRA_CHAR
+#define iso2TransformType_XPath_ARRAY_SIZE 1
+struct iso2TransformType {
+ /* attribute: Algorithm {http://www.w3.org/2001/XMLSchema,anyURI} */
+ struct {
+ exi_string_character_t characters[iso2TransformType_Algorithm_CHARACTERS_SIZE];
+ uint16_t charactersLen;
+ } Algorithm ;
+ /* element: WC[##other:"http://www.w3.org/2000/09/xmldsig#"] */
+ struct {
+ exi_string_character_t characters[iso2TransformType_ANY_CHARACTERS_SIZE];
+ uint16_t charactersLen;
+ } ANY ;
+ unsigned int ANY_isUsed:1;
+ /* element: "http://www.w3.org/2000/09/xmldsig#":XPath, http://www.w3.org/2001/XMLSchema,string */
+ struct {
+ struct {
+ exi_string_character_t characters[iso2TransformType_XPath_CHARACTERS_SIZE];
+ uint16_t charactersLen;
+ } array[iso2TransformType_XPath_ARRAY_SIZE];
+ uint16_t arrayLen;
+ } XPath;
+};
+
+typedef enum {
+ iso2EVSENotificationType_StopCharging = 0,
+ iso2EVSENotificationType_ReNegotiation = 1
+} iso2EVSENotificationType;
+
+/* Complex type name='urn:iso:15118:2:2016:MsgDataTypes,EMAIDType', base type name='eMAIDType', content type='SIMPLE', isAbstract='false', hasTypeId='false', final='0', block='0', derivedBy='EXTENSION'. */
+#define iso2EMAIDType_Id_CHARACTERS_SIZE 50 + EXTRA_CHAR
+#define iso2EMAIDType_CONTENT_CHARACTERS_SIZE 50 + EXTRA_CHAR
+struct iso2EMAIDType {
+ /* attribute: Id {http://www.w3.org/2001/XMLSchema,ID} */
+ struct {
+ exi_string_character_t characters[iso2EMAIDType_Id_CHARACTERS_SIZE];
+ uint16_t charactersLen;
+ } Id ;
+ /* simple content: urn:iso:15118:2:2016:MsgDataTypes,eMAIDType */
+ struct {
+ exi_string_character_t characters[iso2EMAIDType_CONTENT_CHARACTERS_SIZE];
+ uint16_t charactersLen;
+ } CONTENT ;
+};
+
+/* Complex type name='http://www.w3.org/2000/09/xmldsig#,DSAKeyValueType', base type name='anyType', content type='ELEMENT', isAbstract='false', hasTypeId='false', final='0', block='0', particle='(("http://www.w3.org/2000/09/xmldsig#":P,"http://www.w3.org/2000/09/xmldsig#":Q){0-1},"http://www.w3.org/2000/09/xmldsig#":G{0-1},"http://www.w3.org/2000/09/xmldsig#":Y,"http://www.w3.org/2000/09/xmldsig#":J{0-1},("http://www.w3.org/2000/09/xmldsig#":Seed,"http://www.w3.org/2000/09/xmldsig#":PgenCounter){0-1})', derivedBy='RESTRICTION'. */
+#define iso2DSAKeyValueType_P_BYTES_SIZE 350
+#define iso2DSAKeyValueType_Q_BYTES_SIZE 350
+#define iso2DSAKeyValueType_G_BYTES_SIZE 350
+#define iso2DSAKeyValueType_Y_BYTES_SIZE 350
+#define iso2DSAKeyValueType_J_BYTES_SIZE 350
+#define iso2DSAKeyValueType_Seed_BYTES_SIZE 350
+#define iso2DSAKeyValueType_PgenCounter_BYTES_SIZE 350
+struct iso2DSAKeyValueType {
+ /* element: "http://www.w3.org/2000/09/xmldsig#":P, http://www.w3.org/2000/09/xmldsig#,CryptoBinary */
+ struct {
+ uint8_t bytes[iso2DSAKeyValueType_P_BYTES_SIZE];
+ uint16_t bytesLen;
+ } P ;
+ unsigned int P_isUsed:1;
+ /* element: "http://www.w3.org/2000/09/xmldsig#":Q, http://www.w3.org/2000/09/xmldsig#,CryptoBinary */
+ struct {
+ uint8_t bytes[iso2DSAKeyValueType_Q_BYTES_SIZE];
+ uint16_t bytesLen;
+ } Q ;
+ unsigned int Q_isUsed:1;
+ /* element: "http://www.w3.org/2000/09/xmldsig#":G, http://www.w3.org/2000/09/xmldsig#,CryptoBinary */
+ struct {
+ uint8_t bytes[iso2DSAKeyValueType_G_BYTES_SIZE];
+ uint16_t bytesLen;
+ } G ;
+ unsigned int G_isUsed:1;
+ /* element: "http://www.w3.org/2000/09/xmldsig#":Y, http://www.w3.org/2000/09/xmldsig#,CryptoBinary */
+ struct {
+ uint8_t bytes[iso2DSAKeyValueType_Y_BYTES_SIZE];
+ uint16_t bytesLen;
+ } Y ;
+ /* element: "http://www.w3.org/2000/09/xmldsig#":J, http://www.w3.org/2000/09/xmldsig#,CryptoBinary */
+ struct {
+ uint8_t bytes[iso2DSAKeyValueType_J_BYTES_SIZE];
+ uint16_t bytesLen;
+ } J ;
+ unsigned int J_isUsed:1;
+ /* element: "http://www.w3.org/2000/09/xmldsig#":Seed, http://www.w3.org/2000/09/xmldsig#,CryptoBinary */
+ struct {
+ uint8_t bytes[iso2DSAKeyValueType_Seed_BYTES_SIZE];
+ uint16_t bytesLen;
+ } Seed ;
+ unsigned int Seed_isUsed:1;
+ /* element: "http://www.w3.org/2000/09/xmldsig#":PgenCounter, http://www.w3.org/2000/09/xmldsig#,CryptoBinary */
+ struct {
+ uint8_t bytes[iso2DSAKeyValueType_PgenCounter_BYTES_SIZE];
+ uint16_t bytesLen;
+ } PgenCounter ;
+ unsigned int PgenCounter_isUsed:1;
+};
+
+/* Complex type name='urn:iso:15118:2:2016:MsgDataTypes,EntryType', base type name='anyType', content type='ELEMENT', isAbstract='true', hasTypeId='false', final='0', block='0', particle='("urn:iso:15118:2:2016:MsgDataTypes":RelativeTimeInterval)', derivedBy='RESTRICTION'. */
+struct iso2EntryType {
+ /* element: "urn:iso:15118:2:2016:MsgDataTypes":RelativeTimeInterval, Complex type name='urn:iso:15118:2:2016:MsgDataTypes,RelativeTimeIntervalType', base type name='anyType', content type='ELEMENT', isAbstract='false', hasTypeId='false', final='0', block='0', particle='("urn:iso:15118:2:2016:MsgDataTypes":start,"urn:iso:15118:2:2016:MsgDataTypes":duration{0-1})', derivedBy='RESTRICTION'. */
+ struct iso2RelativeTimeIntervalType RelativeTimeInterval ;
+};
+
+typedef enum {
+ iso2valueType_bool = 0,
+ iso2valueType_byte = 1,
+ iso2valueType_short = 2,
+ iso2valueType_int = 3,
+ iso2valueType_physicalValue = 4,
+ iso2valueType_string = 5
+} iso2valueType;
+
+/* Complex type name='urn:iso:15118:2:2016:MsgBody,V2GRequestType', base type name='anyType', content type='EMPTY', isAbstract='true', hasTypeId='false', final='0', block='0', derivedBy='RESTRICTION'. */
+struct iso2V2GRequestType {
+ int noContent; /* avoid warning */
+};
+
+/* Complex type name='urn:iso:15118:2:2016:MsgDataTypes,EVSEEnergyTransferParameterType', base type name='anyType', content type='EMPTY', isAbstract='true', hasTypeId='false', final='0', block='0', derivedBy='RESTRICTION'. */
+struct iso2EVSEEnergyTransferParameterType {
int noContent; /* avoid warning */
};
/* Complex type name='urn:iso:15118:2:2016:MsgBody,MeteringReceiptReqType', base type name='BodyBaseType', content type='ELEMENT', isAbstract='false', hasTypeId='false', final='0', block='0', particle='("urn:iso:15118:2:2016:MsgBody":SessionID,"urn:iso:15118:2:2016:MsgBody":SAScheduleTupleID{0-1},"urn:iso:15118:2:2016:MsgBody":MeterInfo)', derivedBy='EXTENSION'. */
-#define v2gMeteringReceiptReqType_Id_CHARACTERS_SIZE 50
-#define v2gMeteringReceiptReqType_SessionID_BYTES_SIZE 8 /* XML schema facet maxLength for urn:iso:15118:2:2016:MsgDataTypes,sessionIDType is 8 */
-struct v2gMeteringReceiptReqType {
+#define iso2MeteringReceiptReqType_Id_CHARACTERS_SIZE 50 + EXTRA_CHAR
+#define iso2MeteringReceiptReqType_SessionID_BYTES_SIZE 8 /* XML schema facet maxLength for urn:iso:15118:2:2016:MsgDataTypes,sessionIDType is 8 */
+struct iso2MeteringReceiptReqType {
/* attribute: Id {http://www.w3.org/2001/XMLSchema,ID} */
struct {
- exi_string_character_t characters[v2gMeteringReceiptReqType_Id_CHARACTERS_SIZE];
+ exi_string_character_t characters[iso2MeteringReceiptReqType_Id_CHARACTERS_SIZE];
uint16_t charactersLen;
} Id ;
/* element: "urn:iso:15118:2:2016:MsgBody":SessionID, urn:iso:15118:2:2016:MsgDataTypes,sessionIDType */
struct {
- uint8_t bytes[v2gMeteringReceiptReqType_SessionID_BYTES_SIZE];
+ uint8_t bytes[iso2MeteringReceiptReqType_SessionID_BYTES_SIZE];
uint16_t bytesLen;
} SessionID ;
/* element: "urn:iso:15118:2:2016:MsgBody":SAScheduleTupleID, urn:iso:15118:2:2016:MsgDataTypes,SAIDType */
uint8_t SAScheduleTupleID ;
unsigned int SAScheduleTupleID_isUsed:1;
/* element: "urn:iso:15118:2:2016:MsgBody":MeterInfo, Complex type name='urn:iso:15118:2:2016:MsgDataTypes,MeterInfoType', base type name='anyType', content type='ELEMENT', isAbstract='false', hasTypeId='false', final='0', block='0', particle='("urn:iso:15118:2:2016:MsgDataTypes":MeterID,"urn:iso:15118:2:2016:MsgDataTypes":MeterReadingCharged{0-1},"urn:iso:15118:2:2016:MsgDataTypes":MeterReadingDischarged{0-1},"urn:iso:15118:2:2016:MsgDataTypes":SigMeterReading{0-1},"urn:iso:15118:2:2016:MsgDataTypes":MeterStatus{0-1},"urn:iso:15118:2:2016:MsgDataTypes":TMeter{0-1})', derivedBy='RESTRICTION'. */
- struct v2gMeterInfoType MeterInfo ;
+ struct iso2MeterInfoType MeterInfo ;
+};
+
+/* Complex type name='http://www.w3.org/2000/09/xmldsig#,KeyValueType', base type name='anyType', content type='MIXED', isAbstract='false', hasTypeId='false', final='0', block='0', particle='("http://www.w3.org/2000/09/xmldsig#":DSAKeyValue|"http://www.w3.org/2000/09/xmldsig#":RSAKeyValue|(WC[##other:"http://www.w3.org/2000/09/xmldsig#"]))', derivedBy='RESTRICTION'. */
+#define iso2KeyValueType_ANY_CHARACTERS_SIZE 50 + EXTRA_CHAR
+struct iso2KeyValueType {
+ /* element: "http://www.w3.org/2000/09/xmldsig#":DSAKeyValue, Complex type name='http://www.w3.org/2000/09/xmldsig#,DSAKeyValueType', base type name='anyType', content type='ELEMENT', isAbstract='false', hasTypeId='false', final='0', block='0', particle='(("http://www.w3.org/2000/09/xmldsig#":P,"http://www.w3.org/2000/09/xmldsig#":Q){0-1},"http://www.w3.org/2000/09/xmldsig#":G{0-1},"http://www.w3.org/2000/09/xmldsig#":Y,"http://www.w3.org/2000/09/xmldsig#":J{0-1},("http://www.w3.org/2000/09/xmldsig#":Seed,"http://www.w3.org/2000/09/xmldsig#":PgenCounter){0-1})', derivedBy='RESTRICTION'. */
+ struct iso2DSAKeyValueType DSAKeyValue ;
+ unsigned int DSAKeyValue_isUsed:1;
+ /* element: "http://www.w3.org/2000/09/xmldsig#":RSAKeyValue, Complex type name='http://www.w3.org/2000/09/xmldsig#,RSAKeyValueType', base type name='anyType', content type='ELEMENT', isAbstract='false', hasTypeId='false', final='0', block='0', particle='("http://www.w3.org/2000/09/xmldsig#":Modulus,"http://www.w3.org/2000/09/xmldsig#":Exponent)', derivedBy='RESTRICTION'. */
+ struct iso2RSAKeyValueType RSAKeyValue ;
+ unsigned int RSAKeyValue_isUsed:1;
+ /* element: WC[##other:"http://www.w3.org/2000/09/xmldsig#"] */
+ struct {
+ exi_string_character_t characters[iso2KeyValueType_ANY_CHARACTERS_SIZE];
+ uint16_t charactersLen;
+ } ANY ;
+ unsigned int ANY_isUsed:1;
+};
+
+typedef enum {
+ iso2EVCheckInStatusType_CheckIn = 0,
+ iso2EVCheckInStatusType_Processing = 1,
+ iso2EVCheckInStatusType_Completed = 2
+} iso2EVCheckInStatusType;
+
+typedef enum {
+ iso2mechanicalChargingDeviceStatusType_Home = 0,
+ iso2mechanicalChargingDeviceStatusType_Moving = 1,
+ iso2mechanicalChargingDeviceStatusType_EndPosition = 2
+} iso2mechanicalChargingDeviceStatusType;
+
+/* Complex type name='urn:iso:15118:2:2016:MsgBody,BodyBaseType', base type name='anyType', content type='EMPTY', isAbstract='true', hasTypeId='false', final='0', block='0', derivedBy='RESTRICTION'. */
+struct iso2BodyBaseType {
+ int noContent; /* avoid warning */
};
/* Complex type name='urn:iso:15118:2:2016:MsgBody,AuthorizationReqType', base type name='BodyBaseType', content type='ELEMENT', isAbstract='false', hasTypeId='false', final='0', block='0', particle='("urn:iso:15118:2:2016:MsgBody":GenChallenge{0-1})', derivedBy='EXTENSION'. */
-#define v2gAuthorizationReqType_Id_CHARACTERS_SIZE 50
-#define v2gAuthorizationReqType_GenChallenge_BYTES_SIZE 16 /* XML schema facet length for urn:iso:15118:2:2016:MsgDataTypes,genChallengeType is 16 */
-struct v2gAuthorizationReqType {
+#define iso2AuthorizationReqType_Id_CHARACTERS_SIZE 50 + EXTRA_CHAR
+#define iso2AuthorizationReqType_GenChallenge_BYTES_SIZE 16 /* XML schema facet length for urn:iso:15118:2:2016:MsgDataTypes,genChallengeType is 16 */
+struct iso2AuthorizationReqType {
/* attribute: Id {http://www.w3.org/2001/XMLSchema,ID} */
struct {
- exi_string_character_t characters[v2gAuthorizationReqType_Id_CHARACTERS_SIZE];
+ exi_string_character_t characters[iso2AuthorizationReqType_Id_CHARACTERS_SIZE];
uint16_t charactersLen;
} Id ;
unsigned int Id_isUsed:1;
/* element: "urn:iso:15118:2:2016:MsgBody":GenChallenge, urn:iso:15118:2:2016:MsgDataTypes,genChallengeType */
struct {
- uint8_t bytes[v2gAuthorizationReqType_GenChallenge_BYTES_SIZE];
+ uint8_t bytes[iso2AuthorizationReqType_GenChallenge_BYTES_SIZE];
uint16_t bytesLen;
} GenChallenge ;
unsigned int GenChallenge_isUsed:1;
};
-typedef enum {
- v2gcostKindType_relativePricePercentage = 0,
- v2gcostKindType_RenewableGenerationPercentage = 1,
- v2gcostKindType_CarbonDioxideEmission = 2
-} v2gcostKindType;
+/* Complex type name='http://www.w3.org/2000/09/xmldsig#,SPKIDataType', base type name='anyType', content type='ELEMENT', isAbstract='false', hasTypeId='false', final='0', block='0', particle='("http://www.w3.org/2000/09/xmldsig#":SPKISexp,(WC[##other:"http://www.w3.org/2000/09/xmldsig#"]){0-1}){1-UNBOUNDED}', derivedBy='RESTRICTION'. */
+#define iso2SPKIDataType_SPKISexp_BYTES_SIZE 350
+#define iso2SPKIDataType_SPKISexp_ARRAY_SIZE 1
+#define iso2SPKIDataType_ANY_CHARACTERS_SIZE 50 + EXTRA_CHAR
+struct iso2SPKIDataType {
+ /* element: "http://www.w3.org/2000/09/xmldsig#":SPKISexp, http://www.w3.org/2001/XMLSchema,base64Binary */
+ struct {
+ struct {
+ uint8_t bytes[iso2SPKIDataType_SPKISexp_BYTES_SIZE];
+ uint16_t bytesLen;
+ } array[iso2SPKIDataType_SPKISexp_ARRAY_SIZE];
+ uint16_t arrayLen;
+ } SPKISexp;
+ /* element: WC[##other:"http://www.w3.org/2000/09/xmldsig#"] */
+ struct {
+ exi_string_character_t characters[iso2SPKIDataType_ANY_CHARACTERS_SIZE];
+ uint16_t charactersLen;
+ } ANY ;
+ unsigned int ANY_isUsed:1;
+};
/* Complex type name='http://www.w3.org/2000/09/xmldsig#,SignatureMethodType', base type name='anyType', content type='MIXED', isAbstract='false', hasTypeId='false', final='0', block='0', particle='("http://www.w3.org/2000/09/xmldsig#":HMACOutputLength{0-1},(WC[##other:"http://www.w3.org/2000/09/xmldsig#"]){0-UNBOUNDED})', derivedBy='RESTRICTION'. */
-#define v2gSignatureMethodType_Algorithm_CHARACTERS_SIZE 65
-#define v2gSignatureMethodType_ANY_CHARACTERS_SIZE 50
-struct v2gSignatureMethodType {
+#define iso2SignatureMethodType_Algorithm_CHARACTERS_SIZE 65 + EXTRA_CHAR
+#define iso2SignatureMethodType_ANY_CHARACTERS_SIZE 50 + EXTRA_CHAR
+struct iso2SignatureMethodType {
/* attribute: Algorithm {http://www.w3.org/2001/XMLSchema,anyURI} */
struct {
- exi_string_character_t characters[v2gSignatureMethodType_Algorithm_CHARACTERS_SIZE];
+ exi_string_character_t characters[iso2SignatureMethodType_Algorithm_CHARACTERS_SIZE];
uint16_t charactersLen;
} Algorithm ;
/* element: "http://www.w3.org/2000/09/xmldsig#":HMACOutputLength, http://www.w3.org/2000/09/xmldsig#,HMACOutputLengthType */
@@ -250,124 +469,177 @@ struct v2gSignatureMethodType {
unsigned int HMACOutputLength_isUsed:1;
/* element: WC[##other:"http://www.w3.org/2000/09/xmldsig#"] */
struct {
- exi_string_character_t characters[v2gSignatureMethodType_ANY_CHARACTERS_SIZE];
+ exi_string_character_t characters[iso2SignatureMethodType_ANY_CHARACTERS_SIZE];
+ uint16_t charactersLen;
+ } ANY ;
+ unsigned int ANY_isUsed:1;
+};
+
+/* Complex type name='urn:iso:15118:2:2016:MsgBody,WeldingDetectionReqType', base type name='BodyBaseType', content type='EMPTY', isAbstract='false', hasTypeId='false', final='0', block='0', derivedBy='EXTENSION'. */
+struct iso2WeldingDetectionReqType {
+ int noContent; /* avoid warning */
+};
+
+/* Complex type name='urn:iso:15118:2:2016:MsgBody,SessionSetupReqType', base type name='BodyBaseType', content type='ELEMENT', isAbstract='false', hasTypeId='false', final='0', block='0', particle='("urn:iso:15118:2:2016:MsgBody":EVCCID)', derivedBy='EXTENSION'. */
+#define iso2SessionSetupReqType_EVCCID_BYTES_SIZE 6 /* XML schema facet maxLength for urn:iso:15118:2:2016:MsgDataTypes,evccIDType is 6 */
+struct iso2SessionSetupReqType {
+ /* element: "urn:iso:15118:2:2016:MsgBody":EVCCID, urn:iso:15118:2:2016:MsgDataTypes,evccIDType */
+ struct {
+ uint8_t bytes[iso2SessionSetupReqType_EVCCID_BYTES_SIZE];
+ uint16_t bytesLen;
+ } EVCCID ;
+};
+
+typedef enum {
+ iso2chargeProgressType_Start = 0,
+ iso2chargeProgressType_Stop = 1,
+ iso2chargeProgressType_Renegotiate = 2
+} iso2chargeProgressType;
+
+/* Complex type name='http://www.w3.org/2000/09/xmldsig#,CanonicalizationMethodType', base type name='anyType', content type='MIXED', isAbstract='false', hasTypeId='false', final='0', block='0', particle='((WC[##any]){0-UNBOUNDED})', derivedBy='RESTRICTION'. */
+#define iso2CanonicalizationMethodType_Algorithm_CHARACTERS_SIZE 65 + EXTRA_CHAR
+#define iso2CanonicalizationMethodType_ANY_CHARACTERS_SIZE 50 + EXTRA_CHAR
+struct iso2CanonicalizationMethodType {
+ /* attribute: Algorithm {http://www.w3.org/2001/XMLSchema,anyURI} */
+ struct {
+ exi_string_character_t characters[iso2CanonicalizationMethodType_Algorithm_CHARACTERS_SIZE];
+ uint16_t charactersLen;
+ } Algorithm ;
+ /* element: WC[##any] */
+ struct {
+ exi_string_character_t characters[iso2CanonicalizationMethodType_ANY_CHARACTERS_SIZE];
+ uint16_t charactersLen;
+ } ANY ;
+ unsigned int ANY_isUsed:1;
+};
+
+/* Complex type name='urn:iso:15118:2:2016:MsgDataTypes,PhysicalValueType', base type name='anyType', content type='ELEMENT', isAbstract='false', hasTypeId='false', final='0', block='0', particle='("urn:iso:15118:2:2016:MsgDataTypes":Exponent,"urn:iso:15118:2:2016:MsgDataTypes":Value)', derivedBy='RESTRICTION'. */
+struct iso2PhysicalValueType {
+ /* element: "urn:iso:15118:2:2016:MsgDataTypes":Exponent, urn:iso:15118:2:2016:MsgDataTypes,exponentType */
+ int8_t Exponent ;
+ /* element: "urn:iso:15118:2:2016:MsgDataTypes":Value, http://www.w3.org/2001/XMLSchema,short */
+ int16_t Value ;
+};
+
+/* Complex type name='urn:iso:15118:2:2016:MsgBody,SystemStatusReqType', base type name='BodyBaseType', content type='ELEMENT', isAbstract='false', hasTypeId='false', final='0', block='0', particle='("urn:iso:15118:2:2016:MsgBody":OperationMode,"urn:iso:15118:2:2016:MsgBody":EVMechanicalChargingDeviceStatus)', derivedBy='EXTENSION'. */
+struct iso2SystemStatusReqType {
+ /* element: "urn:iso:15118:2:2016:MsgBody":OperationMode, urn:iso:15118:2:2016:MsgDataTypes,operationModeType */
+ iso2operationModeType OperationMode ;
+ /* element: "urn:iso:15118:2:2016:MsgBody":EVMechanicalChargingDeviceStatus, urn:iso:15118:2:2016:MsgDataTypes,mechanicalChargingDeviceStatusType */
+ iso2mechanicalChargingDeviceStatusType EVMechanicalChargingDeviceStatus ;
+};
+
+/* Complex type name='urn:iso:15118:2:2016:MsgDataTypes,EVSEFinePositioningSetupParametersType', base type name='anyType', content type='EMPTY', isAbstract='true', hasTypeId='false', final='0', block='0', derivedBy='RESTRICTION'. */
+struct iso2EVSEFinePositioningSetupParametersType {
+ int noContent; /* avoid warning */
+};
+
+/* Complex type name='urn:iso:15118:2:2016:MsgDataTypes,EVSEFinePositioningParametersType', base type name='anyType', content type='EMPTY', isAbstract='true', hasTypeId='false', final='0', block='0', derivedBy='RESTRICTION'. */
+struct iso2EVSEFinePositioningParametersType {
+ int noContent; /* avoid warning */
+};
+
+typedef enum {
+ iso2FODStatusType_ObjectOnPad = 0,
+ iso2FODStatusType_PadClear = 1,
+ iso2FODStatusType_UnknownError = 2
+} iso2FODStatusType;
+
+typedef enum {
+ iso2costKindType_relativePricePercentage = 0,
+ iso2costKindType_RenewableGenerationPercentage = 1,
+ iso2costKindType_CarbonDioxideEmission = 2
+} iso2costKindType;
+
+/* Complex type name='http://www.w3.org/2000/09/xmldsig#,DigestMethodType', base type name='anyType', content type='MIXED', isAbstract='false', hasTypeId='false', final='0', block='0', particle='((WC[##other:"http://www.w3.org/2000/09/xmldsig#"]){0-UNBOUNDED})', derivedBy='RESTRICTION'. */
+#define iso2DigestMethodType_Algorithm_CHARACTERS_SIZE 65 + EXTRA_CHAR
+#define iso2DigestMethodType_ANY_CHARACTERS_SIZE 50 + EXTRA_CHAR
+struct iso2DigestMethodType {
+ /* attribute: Algorithm {http://www.w3.org/2001/XMLSchema,anyURI} */
+ struct {
+ exi_string_character_t characters[iso2DigestMethodType_Algorithm_CHARACTERS_SIZE];
+ uint16_t charactersLen;
+ } Algorithm ;
+ /* element: WC[##other:"http://www.w3.org/2000/09/xmldsig#"] */
+ struct {
+ exi_string_character_t characters[iso2DigestMethodType_ANY_CHARACTERS_SIZE];
uint16_t charactersLen;
} ANY ;
unsigned int ANY_isUsed:1;
};
/* Complex type name='urn:iso:15118:2:2016:MsgDataTypes,TargetPositionType', base type name='anyType', content type='ELEMENT', isAbstract='false', hasTypeId='false', final='0', block='0', particle='("urn:iso:15118:2:2016:MsgDataTypes":TargetOffsetX,"urn:iso:15118:2:2016:MsgDataTypes":TargetOffsetY)', derivedBy='RESTRICTION'. */
-struct v2gTargetPositionType {
+struct iso2TargetPositionType {
/* element: "urn:iso:15118:2:2016:MsgDataTypes":TargetOffsetX, http://www.w3.org/2001/XMLSchema,unsignedShort */
uint16_t TargetOffsetX ;
/* element: "urn:iso:15118:2:2016:MsgDataTypes":TargetOffsetY, http://www.w3.org/2001/XMLSchema,unsignedShort */
uint16_t TargetOffsetY ;
};
-/* Complex type name='urn:iso:15118:2:2016:MsgDataTypes,EVFinePositioningParametersType', base type name='anyType', content type='EMPTY', isAbstract='true', hasTypeId='false', final='0', block='0', derivedBy='RESTRICTION'. */
-struct v2gEVFinePositioningParametersType {
- int noContent; /* avoid warning */
-};
-
typedef enum {
- v2gEVSECheckOutStatusType_Scheduled = 0,
- v2gEVSECheckOutStatusType_Completed = 1
-} v2gEVSECheckOutStatusType;
+ iso2EVOperationType_Charge = 0,
+ iso2EVOperationType_BPT = 1
+} iso2EVOperationType;
-/* Complex type name='urn:iso:15118:2:2016:MsgBody,VehicleCheckOutReqType', base type name='BodyBaseType', content type='ELEMENT', isAbstract='false', hasTypeId='false', final='0', block='0', particle='("urn:iso:15118:2:2016:MsgBody":EVCheckOutStatus,"urn:iso:15118:2:2016:MsgBody":CheckOutTime)', derivedBy='EXTENSION'. */
-struct v2gVehicleCheckOutReqType {
- /* element: "urn:iso:15118:2:2016:MsgBody":EVCheckOutStatus, urn:iso:15118:2:2016:MsgDataTypes,EVCheckOutStatusType */
- v2gEVCheckOutStatusType EVCheckOutStatus ;
- /* element: "urn:iso:15118:2:2016:MsgBody":CheckOutTime, http://www.w3.org/2001/XMLSchema,unsignedLong */
- uint64_t CheckOutTime ;
+/* Complex type name='urn:iso:15118:2:2016:MsgDataTypes,DC_EVChargeParameterType', base type name='EVEnergyTransferParameterType', content type='ELEMENT', isAbstract='false', hasTypeId='false', final='0', block='0', particle='(("urn:iso:15118:2:2016:MsgDataTypes":DepartureTime),("urn:iso:15118:2:2016:MsgDataTypes":EVMaximumChargePower{0-1},"urn:iso:15118:2:2016:MsgDataTypes":EVMinimumChargePower{0-1},"urn:iso:15118:2:2016:MsgDataTypes":EVMaximumChargeCurrent,"urn:iso:15118:2:2016:MsgDataTypes":EVMinimumChargeCurrent,"urn:iso:15118:2:2016:MsgDataTypes":EVMaximumVoltage,"urn:iso:15118:2:2016:MsgDataTypes":EVTargetEnergyRequest{0-1},"urn:iso:15118:2:2016:MsgDataTypes":EVMaximumEnergyRequest{0-1},"urn:iso:15118:2:2016:MsgDataTypes":EVMinimumEnergyRequest{0-1},"urn:iso:15118:2:2016:MsgDataTypes":CurrentSOC{0-1},"urn:iso:15118:2:2016:MsgDataTypes":TargetSOC{0-1},"urn:iso:15118:2:2016:MsgDataTypes":BulkSOC{0-1}))', derivedBy='EXTENSION'. */
+struct iso2DC_EVChargeParameterType {
+ /* element: "urn:iso:15118:2:2016:MsgDataTypes":DepartureTime, http://www.w3.org/2001/XMLSchema,unsignedInt */
+ uint32_t DepartureTime ;
+ /* element: "urn:iso:15118:2:2016:MsgDataTypes":EVMaximumChargePower, Complex type name='urn:iso:15118:2:2016:MsgDataTypes,PhysicalValueType', base type name='anyType', content type='ELEMENT', isAbstract='false', hasTypeId='false', final='0', block='0', particle='("urn:iso:15118:2:2016:MsgDataTypes":Exponent,"urn:iso:15118:2:2016:MsgDataTypes":Value)', derivedBy='RESTRICTION'. */
+ struct iso2PhysicalValueType EVMaximumChargePower ;
+ unsigned int EVMaximumChargePower_isUsed:1;
+ /* element: "urn:iso:15118:2:2016:MsgDataTypes":EVMinimumChargePower, Complex type name='urn:iso:15118:2:2016:MsgDataTypes,PhysicalValueType', base type name='anyType', content type='ELEMENT', isAbstract='false', hasTypeId='false', final='0', block='0', particle='("urn:iso:15118:2:2016:MsgDataTypes":Exponent,"urn:iso:15118:2:2016:MsgDataTypes":Value)', derivedBy='RESTRICTION'. */
+ struct iso2PhysicalValueType EVMinimumChargePower ;
+ unsigned int EVMinimumChargePower_isUsed:1;
+ /* element: "urn:iso:15118:2:2016:MsgDataTypes":EVMaximumChargeCurrent, Complex type name='urn:iso:15118:2:2016:MsgDataTypes,PhysicalValueType', base type name='anyType', content type='ELEMENT', isAbstract='false', hasTypeId='false', final='0', block='0', particle='("urn:iso:15118:2:2016:MsgDataTypes":Exponent,"urn:iso:15118:2:2016:MsgDataTypes":Value)', derivedBy='RESTRICTION'. */
+ struct iso2PhysicalValueType EVMaximumChargeCurrent ;
+ /* element: "urn:iso:15118:2:2016:MsgDataTypes":EVMinimumChargeCurrent, Complex type name='urn:iso:15118:2:2016:MsgDataTypes,PhysicalValueType', base type name='anyType', content type='ELEMENT', isAbstract='false', hasTypeId='false', final='0', block='0', particle='("urn:iso:15118:2:2016:MsgDataTypes":Exponent,"urn:iso:15118:2:2016:MsgDataTypes":Value)', derivedBy='RESTRICTION'. */
+ struct iso2PhysicalValueType EVMinimumChargeCurrent ;
+ /* element: "urn:iso:15118:2:2016:MsgDataTypes":EVMaximumVoltage, Complex type name='urn:iso:15118:2:2016:MsgDataTypes,PhysicalValueType', base type name='anyType', content type='ELEMENT', isAbstract='false', hasTypeId='false', final='0', block='0', particle='("urn:iso:15118:2:2016:MsgDataTypes":Exponent,"urn:iso:15118:2:2016:MsgDataTypes":Value)', derivedBy='RESTRICTION'. */
+ struct iso2PhysicalValueType EVMaximumVoltage ;
+ /* element: "urn:iso:15118:2:2016:MsgDataTypes":EVTargetEnergyRequest, Complex type name='urn:iso:15118:2:2016:MsgDataTypes,PhysicalValueType', base type name='anyType', content type='ELEMENT', isAbstract='false', hasTypeId='false', final='0', block='0', particle='("urn:iso:15118:2:2016:MsgDataTypes":Exponent,"urn:iso:15118:2:2016:MsgDataTypes":Value)', derivedBy='RESTRICTION'. */
+ struct iso2PhysicalValueType EVTargetEnergyRequest ;
+ unsigned int EVTargetEnergyRequest_isUsed:1;
+ /* element: "urn:iso:15118:2:2016:MsgDataTypes":EVMaximumEnergyRequest, Complex type name='urn:iso:15118:2:2016:MsgDataTypes,PhysicalValueType', base type name='anyType', content type='ELEMENT', isAbstract='false', hasTypeId='false', final='0', block='0', particle='("urn:iso:15118:2:2016:MsgDataTypes":Exponent,"urn:iso:15118:2:2016:MsgDataTypes":Value)', derivedBy='RESTRICTION'. */
+ struct iso2PhysicalValueType EVMaximumEnergyRequest ;
+ unsigned int EVMaximumEnergyRequest_isUsed:1;
+ /* element: "urn:iso:15118:2:2016:MsgDataTypes":EVMinimumEnergyRequest, Complex type name='urn:iso:15118:2:2016:MsgDataTypes,PhysicalValueType', base type name='anyType', content type='ELEMENT', isAbstract='false', hasTypeId='false', final='0', block='0', particle='("urn:iso:15118:2:2016:MsgDataTypes":Exponent,"urn:iso:15118:2:2016:MsgDataTypes":Value)', derivedBy='RESTRICTION'. */
+ struct iso2PhysicalValueType EVMinimumEnergyRequest ;
+ unsigned int EVMinimumEnergyRequest_isUsed:1;
+ /* element: "urn:iso:15118:2:2016:MsgDataTypes":CurrentSOC, urn:iso:15118:2:2016:MsgDataTypes,percentValueType */
+ int8_t CurrentSOC ;
+ unsigned int CurrentSOC_isUsed:1;
+ /* element: "urn:iso:15118:2:2016:MsgDataTypes":TargetSOC, urn:iso:15118:2:2016:MsgDataTypes,percentValueType */
+ int8_t TargetSOC ;
+ unsigned int TargetSOC_isUsed:1;
+ /* element: "urn:iso:15118:2:2016:MsgDataTypes":BulkSOC, urn:iso:15118:2:2016:MsgDataTypes,percentValueType */
+ int8_t BulkSOC ;
+ unsigned int BulkSOC_isUsed:1;
};
-typedef enum {
- v2gserviceCategoryType_EVCharging = 0,
- v2gserviceCategoryType_Internet = 1,
- v2gserviceCategoryType_ContractCertificate = 2,
- v2gserviceCategoryType_OtherCustom = 3
-} v2gserviceCategoryType;
-
-/* Complex type name='urn:iso:15118:2:2016:MsgDataTypes,CertificateChainType', base type name='anyType', content type='ELEMENT', isAbstract='false', hasTypeId='false', final='0', block='0', particle='("urn:iso:15118:2:2016:MsgDataTypes":Certificate,"urn:iso:15118:2:2016:MsgDataTypes":SubCertificates{0-1})', derivedBy='RESTRICTION'. */
-#define v2gCertificateChainType_Id_CHARACTERS_SIZE 50
-#define v2gCertificateChainType_Certificate_BYTES_SIZE 800 /* XML schema facet maxLength for urn:iso:15118:2:2016:MsgDataTypes,certificateType is 800 */
-struct v2gCertificateChainType {
- /* attribute: Id {http://www.w3.org/2001/XMLSchema,ID} */
- struct {
- exi_string_character_t characters[v2gCertificateChainType_Id_CHARACTERS_SIZE];
- uint16_t charactersLen;
- } Id ;
- unsigned int Id_isUsed:1;
- /* element: "urn:iso:15118:2:2016:MsgDataTypes":Certificate, urn:iso:15118:2:2016:MsgDataTypes,certificateType */
- struct {
- uint8_t bytes[v2gCertificateChainType_Certificate_BYTES_SIZE];
- uint16_t bytesLen;
- } Certificate ;
- /* element: "urn:iso:15118:2:2016:MsgDataTypes":SubCertificates, Complex type name='urn:iso:15118:2:2016:MsgDataTypes,SubCertificatesType', base type name='anyType', content type='ELEMENT', isAbstract='false', hasTypeId='false', final='0', block='0', particle='("urn:iso:15118:2:2016:MsgDataTypes":Certificate{1-4})', derivedBy='RESTRICTION'. */
- struct v2gSubCertificatesType SubCertificates ;
- unsigned int SubCertificates_isUsed:1;
-};
-
-/* Complex type name='urn:iso:15118:2:2016:MsgDataTypes,ServiceType', base type name='anyType', content type='ELEMENT', isAbstract='false', hasTypeId='false', final='0', block='0', particle='("urn:iso:15118:2:2016:MsgDataTypes":ServiceID,"urn:iso:15118:2:2016:MsgDataTypes":FreeService)', derivedBy='RESTRICTION'. */
-struct v2gServiceType {
- /* element: "urn:iso:15118:2:2016:MsgDataTypes":ServiceID, urn:iso:15118:2:2016:MsgDataTypes,serviceIDType */
+/* Complex type name='urn:iso:15118:2:2016:MsgBody,ServiceDetailReqType', base type name='BodyBaseType', content type='ELEMENT', isAbstract='false', hasTypeId='false', final='0', block='0', particle='("urn:iso:15118:2:2016:MsgBody":ServiceID)', derivedBy='EXTENSION'. */
+struct iso2ServiceDetailReqType {
+ /* element: "urn:iso:15118:2:2016:MsgBody":ServiceID, urn:iso:15118:2:2016:MsgDataTypes,serviceIDType */
uint16_t ServiceID ;
- /* element: "urn:iso:15118:2:2016:MsgDataTypes":FreeService, http://www.w3.org/2001/XMLSchema,boolean */
- int FreeService ;
};
-/* Complex type name='urn:iso:15118:2:2016:MsgBody,EVErrorInformationType', base type name='BodyBaseType', content type='ELEMENT', isAbstract='false', hasTypeId='false', final='0', block='0', particle='("urn:iso:15118:2:2016:MsgBody":ErrorCode)', derivedBy='EXTENSION'. */
-struct v2gEVErrorInformationType {
- /* element: "urn:iso:15118:2:2016:MsgBody":ErrorCode, urn:iso:15118:2:2016:MsgDataTypes,EVErrorCodeType */
- v2gEVErrorCodeType ErrorCode ;
-};
-
-/* Complex type name='urn:iso:15118:2:2016:MsgDataTypes,ListOfRootCertificateIDsType', base type name='anyType', content type='ELEMENT', isAbstract='false', hasTypeId='false', final='0', block='0', particle='("urn:iso:15118:2:2016:MsgDataTypes":RootCertificateID{1-20})', derivedBy='RESTRICTION'. */
-#define v2gListOfRootCertificateIDsType_RootCertificateID_ARRAY_SIZE 5
-struct v2gListOfRootCertificateIDsType {
- /* element: "urn:iso:15118:2:2016:MsgDataTypes":RootCertificateID, Complex type name='http://www.w3.org/2000/09/xmldsig#,X509IssuerSerialType', base type name='anyType', content type='ELEMENT', isAbstract='false', hasTypeId='false', final='0', block='0', particle='("http://www.w3.org/2000/09/xmldsig#":X509IssuerName,"http://www.w3.org/2000/09/xmldsig#":X509SerialNumber)', derivedBy='RESTRICTION'. */
- struct {
- struct v2gX509IssuerSerialType array[v2gListOfRootCertificateIDsType_RootCertificateID_ARRAY_SIZE];
- uint16_t arrayLen;
- } RootCertificateID;
+/* Complex type name='urn:iso:15118:2:2016:MsgBody,PreChargeReqType', base type name='BodyBaseType', content type='ELEMENT', isAbstract='false', hasTypeId='false', final='0', block='0', particle='("urn:iso:15118:2:2016:MsgBody":EVTargetVoltage,"urn:iso:15118:2:2016:MsgBody":EVTargetCurrent)', derivedBy='EXTENSION'. */
+struct iso2PreChargeReqType {
+ /* element: "urn:iso:15118:2:2016:MsgBody":EVTargetVoltage, Complex type name='urn:iso:15118:2:2016:MsgDataTypes,PhysicalValueType', base type name='anyType', content type='ELEMENT', isAbstract='false', hasTypeId='false', final='0', block='0', particle='("urn:iso:15118:2:2016:MsgDataTypes":Exponent,"urn:iso:15118:2:2016:MsgDataTypes":Value)', derivedBy='RESTRICTION'. */
+ struct iso2PhysicalValueType EVTargetVoltage ;
+ /* element: "urn:iso:15118:2:2016:MsgBody":EVTargetCurrent, Complex type name='urn:iso:15118:2:2016:MsgDataTypes,PhysicalValueType', base type name='anyType', content type='ELEMENT', isAbstract='false', hasTypeId='false', final='0', block='0', particle='("urn:iso:15118:2:2016:MsgDataTypes":Exponent,"urn:iso:15118:2:2016:MsgDataTypes":Value)', derivedBy='RESTRICTION'. */
+ struct iso2PhysicalValueType EVTargetCurrent ;
};
typedef enum {
- v2gFODStatusType_ObjectOnPad = 0,
- v2gFODStatusType_PadClear = 1,
- v2gFODStatusType_UnknownError = 2
-} v2gFODStatusType;
-
-/* Complex type name='http://www.w3.org/2000/09/xmldsig#,SPKIDataType', base type name='anyType', content type='ELEMENT', isAbstract='false', hasTypeId='false', final='0', block='0', particle='("http://www.w3.org/2000/09/xmldsig#":SPKISexp,(WC[##other:"http://www.w3.org/2000/09/xmldsig#"]){0-1}){1-UNBOUNDED}', derivedBy='RESTRICTION'. */
-#define v2gSPKIDataType_SPKISexp_BYTES_SIZE 350
-#define v2gSPKIDataType_SPKISexp_ARRAY_SIZE 1
-#define v2gSPKIDataType_ANY_CHARACTERS_SIZE 50
-struct v2gSPKIDataType {
- /* element: "http://www.w3.org/2000/09/xmldsig#":SPKISexp, http://www.w3.org/2001/XMLSchema,base64Binary */
- struct {
- struct {
- uint8_t bytes[v2gSPKIDataType_SPKISexp_BYTES_SIZE];
- uint16_t bytesLen;
- } array[v2gSPKIDataType_SPKISexp_ARRAY_SIZE];
- uint16_t arrayLen;
- } SPKISexp;
- /* element: WC[##other:"http://www.w3.org/2000/09/xmldsig#"] */
- struct {
- exi_string_character_t characters[v2gSPKIDataType_ANY_CHARACTERS_SIZE];
- uint16_t charactersLen;
- } ANY ;
- unsigned int ANY_isUsed:1;
-};
-
-typedef enum {
- v2gparkingMethodType_AutoParking = 0,
- v2gparkingMethodType_MVGuideManual = 1,
- v2gparkingMethodType_Manual = 2
-} v2gparkingMethodType;
+ iso2serviceCategoryType_EVCharging = 0,
+ iso2serviceCategoryType_Internet = 1,
+ iso2serviceCategoryType_ContractCertificate = 2,
+ iso2serviceCategoryType_OtherCustom = 3
+} iso2serviceCategoryType;
/* Complex type name='urn:iso:15118:2:2016:MsgDataTypes,CartesianCoordinatesType', base type name='anyType', content type='ELEMENT', isAbstract='false', hasTypeId='false', final='0', block='0', particle='("urn:iso:15118:2:2016:MsgDataTypes":XCoordinate,"urn:iso:15118:2:2016:MsgDataTypes":YCoordinate,"urn:iso:15118:2:2016:MsgDataTypes":ZCoordinate)', derivedBy='RESTRICTION'. */
-struct v2gCartesianCoordinatesType {
+struct iso2CartesianCoordinatesType {
/* element: "urn:iso:15118:2:2016:MsgDataTypes":XCoordinate, http://www.w3.org/2001/XMLSchema,short */
int16_t XCoordinate ;
/* element: "urn:iso:15118:2:2016:MsgDataTypes":YCoordinate, http://www.w3.org/2001/XMLSchema,short */
@@ -376,349 +648,647 @@ struct v2gCartesianCoordinatesType {
int16_t ZCoordinate ;
};
-/* Complex type name='http://www.w3.org/2000/09/xmldsig#,RSAKeyValueType', base type name='anyType', content type='ELEMENT', isAbstract='false', hasTypeId='false', final='0', block='0', particle='("http://www.w3.org/2000/09/xmldsig#":Modulus,"http://www.w3.org/2000/09/xmldsig#":Exponent)', derivedBy='RESTRICTION'. */
-#define v2gRSAKeyValueType_Modulus_BYTES_SIZE 350
-#define v2gRSAKeyValueType_Exponent_BYTES_SIZE 350
-struct v2gRSAKeyValueType {
- /* element: "http://www.w3.org/2000/09/xmldsig#":Modulus, http://www.w3.org/2000/09/xmldsig#,CryptoBinary */
+/* Complex type name='urn:iso:15118:2:2016:MsgDataTypes,SubCertificatesType', base type name='anyType', content type='ELEMENT', isAbstract='false', hasTypeId='false', final='0', block='0', particle='("urn:iso:15118:2:2016:MsgDataTypes":Certificate{1-4})', derivedBy='RESTRICTION'. */
+#define iso2SubCertificatesType_Certificate_BYTES_SIZE 800 /* XML schema facet maxLength for urn:iso:15118:2:2016:MsgDataTypes,certificateType is 800 */
+#define iso2SubCertificatesType_Certificate_ARRAY_SIZE 4
+struct iso2SubCertificatesType {
+ /* element: "urn:iso:15118:2:2016:MsgDataTypes":Certificate, urn:iso:15118:2:2016:MsgDataTypes,certificateType */
struct {
- uint8_t bytes[v2gRSAKeyValueType_Modulus_BYTES_SIZE];
+ struct {
+ uint8_t bytes[iso2SubCertificatesType_Certificate_BYTES_SIZE];
uint16_t bytesLen;
- } Modulus ;
- /* element: "http://www.w3.org/2000/09/xmldsig#":Exponent, http://www.w3.org/2000/09/xmldsig#,CryptoBinary */
- struct {
- uint8_t bytes[v2gRSAKeyValueType_Exponent_BYTES_SIZE];
- uint16_t bytesLen;
- } Exponent ;
+ } array[iso2SubCertificatesType_Certificate_ARRAY_SIZE];
+ uint16_t arrayLen;
+ } Certificate;
};
+typedef enum {
+ iso2parkingMethodType_AutoParking = 0,
+ iso2parkingMethodType_MVGuideManual = 1,
+ iso2parkingMethodType_Manual = 2
+} iso2parkingMethodType;
+
+/* Complex type name='urn:iso:15118:2:2016:MsgDataTypes,EVEnergyTransferParameterType', base type name='anyType', content type='ELEMENT', isAbstract='true', hasTypeId='false', final='0', block='0', particle='("urn:iso:15118:2:2016:MsgDataTypes":DepartureTime)', derivedBy='RESTRICTION'. */
+struct iso2EVEnergyTransferParameterType {
+ /* element: "urn:iso:15118:2:2016:MsgDataTypes":DepartureTime, http://www.w3.org/2001/XMLSchema,unsignedInt */
+ uint32_t DepartureTime ;
+};
+
+/* Complex type name='urn:iso:15118:2:2016:MsgDataTypes,ContractSignatureEncryptedPrivateKeyType', base type name='encryptedPrivateKeyType', content type='SIMPLE', isAbstract='false', hasTypeId='false', final='0', block='0', derivedBy='EXTENSION'. */
+#define iso2ContractSignatureEncryptedPrivateKeyType_Id_CHARACTERS_SIZE 50 + EXTRA_CHAR
+#define iso2ContractSignatureEncryptedPrivateKeyType_CONTENT_BYTES_SIZE 350
+struct iso2ContractSignatureEncryptedPrivateKeyType {
+ /* attribute: Id {http://www.w3.org/2001/XMLSchema,ID} */
+ struct {
+ exi_string_character_t characters[iso2ContractSignatureEncryptedPrivateKeyType_Id_CHARACTERS_SIZE];
+ uint16_t charactersLen;
+ } Id ;
+ /* simple content: urn:iso:15118:2:2016:MsgDataTypes,encryptedPrivateKeyType */
+ struct {
+ uint8_t bytes[iso2ContractSignatureEncryptedPrivateKeyType_CONTENT_BYTES_SIZE];
+ uint16_t bytesLen;
+ } CONTENT ;
+};
+
+/* Complex type name='urn:iso:15118:2:2016:MsgDataTypes,MagneticVectorSetupListType', base type name='anyType', content type='ELEMENT', isAbstract='false', hasTypeId='false', final='0', block='0', particle='("urn:iso:15118:2:2016:MsgDataTypes":MagneticVectorSetup{1-255})', derivedBy='RESTRICTION'. */
+#define iso2MagneticVectorSetupListType_MagneticVectorSetup_ARRAY_SIZE 5
+struct iso2MagneticVectorSetupListType {
+ /* element: "urn:iso:15118:2:2016:MsgDataTypes":MagneticVectorSetup, Complex type name='urn:iso:15118:2:2016:MsgDataTypes,MagneticVectorSetupType', base type name='anyType', content type='ELEMENT', isAbstract='false', hasTypeId='false', final='0', block='0', particle='("urn:iso:15118:2:2016:MsgDataTypes":GAID,"urn:iso:15118:2:2016:MsgDataTypes":FrequencyChannel)', derivedBy='RESTRICTION'. */
+ struct {
+ struct iso2MagneticVectorSetupType array[iso2MagneticVectorSetupListType_MagneticVectorSetup_ARRAY_SIZE];
+ uint16_t arrayLen;
+ } MagneticVectorSetup;
+};
+
+typedef enum {
+ iso2responseCodeType_OK = 0,
+ iso2responseCodeType_OK_NewSessionEstablished = 1,
+ iso2responseCodeType_OK_OldSessionJoined = 2,
+ iso2responseCodeType_OK_CertificateExpiresSoon = 3,
+ iso2responseCodeType_OK_IsolationValid = 4,
+ iso2responseCodeType_OK_IsolationWarning = 5,
+ iso2responseCodeType_WARNING_CertificateExpired = 6,
+ iso2responseCodeType_WARNING_NoCertificateAvailable = 7,
+ iso2responseCodeType_WARNING_CertValidationError = 8,
+ iso2responseCodeType_WARNING_CertVerificationError = 9,
+ iso2responseCodeType_WARNING_ContractCanceled = 10,
+ iso2responseCodeType_FAILED = 11,
+ iso2responseCodeType_FAILED_SequenceError = 12,
+ iso2responseCodeType_FAILED_ServiceIDInvalid = 13,
+ iso2responseCodeType_FAILED_UnknownSession = 14,
+ iso2responseCodeType_FAILED_ServiceSelectionInvalid = 15,
+ iso2responseCodeType_FAILED_SignatureError = 16,
+ iso2responseCodeType_FAILED_PaymentSelectionInvalid = 17,
+ iso2responseCodeType_FAILED_ChallengeInvalid = 18,
+ iso2responseCodeType_FAILED_WrongChargeParameter = 19,
+ iso2responseCodeType_FAILED_IsolationFault = 20,
+ iso2responseCodeType_FAILED_PowerDeliveryNotApplied = 21,
+ iso2responseCodeType_FAILED_TariffSelectionInvalid = 22,
+ iso2responseCodeType_FAILED_ChargingProfileInvalid = 23,
+ iso2responseCodeType_FAILED_MeteringSignatureNotValid = 24,
+ iso2responseCodeType_FAILED_NoChargeServiceSelected = 25,
+ iso2responseCodeType_FAILED_WrongEnergyTransferMode = 26,
+ iso2responseCodeType_FAILED_ContactorError = 27,
+ iso2responseCodeType_FAILED_CertificateRevoked = 28,
+ iso2responseCodeType_FAILED_CertificateNotYetValid = 29
+} iso2responseCodeType;
+
+/* Complex type name='http://www.w3.org/2000/09/xmldsig#,X509IssuerSerialType', base type name='anyType', content type='ELEMENT', isAbstract='false', hasTypeId='false', final='0', block='0', particle='("http://www.w3.org/2000/09/xmldsig#":X509IssuerName,"http://www.w3.org/2000/09/xmldsig#":X509SerialNumber)', derivedBy='RESTRICTION'. */
+#define iso2X509IssuerSerialType_X509IssuerName_CHARACTERS_SIZE 50 + EXTRA_CHAR
+struct iso2X509IssuerSerialType {
+ /* element: "http://www.w3.org/2000/09/xmldsig#":X509IssuerName, http://www.w3.org/2001/XMLSchema,string */
+ struct {
+ exi_string_character_t characters[iso2X509IssuerSerialType_X509IssuerName_CHARACTERS_SIZE];
+ uint16_t charactersLen;
+ } X509IssuerName ;
+ /* element: "http://www.w3.org/2000/09/xmldsig#":X509SerialNumber, http://www.w3.org/2001/XMLSchema,integer */
+ int64_t X509SerialNumber ;
+};
+
+typedef enum {
+ iso2chargingSessionType_Terminate = 0,
+ iso2chargingSessionType_Pause = 1
+} iso2chargingSessionType;
+
+typedef enum {
+ iso2EVSEProcessingType_Finished = 0,
+ iso2EVSEProcessingType_Ongoing = 1,
+ iso2EVSEProcessingType_Ongoing_WaitingForCustomerInteraction = 2
+} iso2EVSEProcessingType;
+
+typedef enum {
+ iso2paymentOptionType_Contract = 0,
+ iso2paymentOptionType_ExternalPayment = 1
+} iso2paymentOptionType;
+
+typedef enum {
+ iso2EVSECheckOutStatusType_Scheduled = 0,
+ iso2EVSECheckOutStatusType_Completed = 1
+} iso2EVSECheckOutStatusType;
+
+/* Complex type name='http://www.w3.org/2000/09/xmldsig#,PGPDataType', base type name='anyType', content type='ELEMENT', isAbstract='false', hasTypeId='false', final='0', block='0', particle='(("http://www.w3.org/2000/09/xmldsig#":PGPKeyID,"http://www.w3.org/2000/09/xmldsig#":PGPKeyPacket{0-1},(WC[##other:"http://www.w3.org/2000/09/xmldsig#"]){0-UNBOUNDED})|("http://www.w3.org/2000/09/xmldsig#":PGPKeyPacket,(WC[##other:"http://www.w3.org/2000/09/xmldsig#"]){0-UNBOUNDED}))', derivedBy='RESTRICTION'. */
+#define iso2PGPDataType_PGPKeyID_BYTES_SIZE 350
+#define iso2PGPDataType_PGPKeyPacket_BYTES_SIZE 350
+#define iso2PGPDataType_ANY_CHARACTERS_SIZE 50 + EXTRA_CHAR
+struct iso2PGPDataType {
+ /* element: "http://www.w3.org/2000/09/xmldsig#":PGPKeyID, http://www.w3.org/2001/XMLSchema,base64Binary */
+ struct {
+ uint8_t bytes[iso2PGPDataType_PGPKeyID_BYTES_SIZE];
+ uint16_t bytesLen;
+ } PGPKeyID ;
+ unsigned int PGPKeyID_isUsed:1;
+ /* element: "http://www.w3.org/2000/09/xmldsig#":PGPKeyPacket, http://www.w3.org/2001/XMLSchema,base64Binary */
+ struct {
+ uint8_t bytes[iso2PGPDataType_PGPKeyPacket_BYTES_SIZE];
+ uint16_t bytesLen;
+ } PGPKeyPacket ;
+ unsigned int PGPKeyPacket_isUsed:1;
+ /* element: WC[##other:"http://www.w3.org/2000/09/xmldsig#"] */
+ struct {
+ exi_string_character_t characters[iso2PGPDataType_ANY_CHARACTERS_SIZE];
+ uint16_t charactersLen;
+ } ANY ;
+ unsigned int ANY_isUsed:1;
+};
+
+/* Complex type name='urn:iso:15118:2:2016:MsgDataTypes,ServiceIDListType', base type name='anyType', content type='ELEMENT', isAbstract='false', hasTypeId='false', final='0', block='0', particle='("urn:iso:15118:2:2016:MsgDataTypes":ServiceID{1-10})', derivedBy='RESTRICTION'. */
+#define iso2ServiceIDListType_ServiceID_ARRAY_SIZE 5
+struct iso2ServiceIDListType {
+ /* element: "urn:iso:15118:2:2016:MsgDataTypes":ServiceID, urn:iso:15118:2:2016:MsgDataTypes,serviceIDType */
+ struct {
+ uint16_t array[iso2ServiceIDListType_ServiceID_ARRAY_SIZE];
+ uint16_t arrayLen;
+ } ServiceID;
+};
+
+/* Complex type name='urn:iso:15118:2:2016:MsgDataTypes,EVFinePositioningSetupParametersType', base type name='anyType', content type='EMPTY', isAbstract='true', hasTypeId='false', final='0', block='0', derivedBy='RESTRICTION'. */
+struct iso2EVFinePositioningSetupParametersType {
+ int noContent; /* avoid warning */
+};
+
+typedef enum {
+ iso2EVCheckOutStatusType_CheckOut = 0,
+ iso2EVCheckOutStatusType_Processing = 1,
+ iso2EVCheckOutStatusType_Completed = 2
+} iso2EVCheckOutStatusType;
+
+/* Complex type name='urn:iso:15118:2:2016:MsgDataTypes,SensorType', base type name='anyType', content type='ELEMENT', isAbstract='false', hasTypeId='false', final='0', block='0', particle='("urn:iso:15118:2:2016:MsgDataTypes":SensorID,"urn:iso:15118:2:2016:MsgDataTypes":SensorPosition,"urn:iso:15118:2:2016:MsgDataTypes":SensorOrientation)', derivedBy='RESTRICTION'. */
+struct iso2SensorType {
+ /* element: "urn:iso:15118:2:2016:MsgDataTypes":SensorID, http://www.w3.org/2001/XMLSchema,unsignedByte */
+ uint8_t SensorID ;
+ /* element: "urn:iso:15118:2:2016:MsgDataTypes":SensorPosition, Complex type name='urn:iso:15118:2:2016:MsgDataTypes,CartesianCoordinatesType', base type name='anyType', content type='ELEMENT', isAbstract='false', hasTypeId='false', final='0', block='0', particle='("urn:iso:15118:2:2016:MsgDataTypes":XCoordinate,"urn:iso:15118:2:2016:MsgDataTypes":YCoordinate,"urn:iso:15118:2:2016:MsgDataTypes":ZCoordinate)', derivedBy='RESTRICTION'. */
+ struct iso2CartesianCoordinatesType SensorPosition ;
+ /* element: "urn:iso:15118:2:2016:MsgDataTypes":SensorOrientation, Complex type name='urn:iso:15118:2:2016:MsgDataTypes,CartesianCoordinatesType', base type name='anyType', content type='ELEMENT', isAbstract='false', hasTypeId='false', final='0', block='0', particle='("urn:iso:15118:2:2016:MsgDataTypes":XCoordinate,"urn:iso:15118:2:2016:MsgDataTypes":YCoordinate,"urn:iso:15118:2:2016:MsgDataTypes":ZCoordinate)', derivedBy='RESTRICTION'. */
+ struct iso2CartesianCoordinatesType SensorOrientation ;
+};
+
+/* Complex type name='http://www.w3.org/2000/09/xmldsig#,SignatureValueType', base type name='base64Binary', content type='SIMPLE', isAbstract='false', hasTypeId='false', final='0', block='0', derivedBy='EXTENSION'. */
+#define iso2SignatureValueType_Id_CHARACTERS_SIZE 50 + EXTRA_CHAR
+#define iso2SignatureValueType_CONTENT_BYTES_SIZE 350
+struct iso2SignatureValueType {
+ /* attribute: Id {http://www.w3.org/2001/XMLSchema,ID} */
+ struct {
+ exi_string_character_t characters[iso2SignatureValueType_Id_CHARACTERS_SIZE];
+ uint16_t charactersLen;
+ } Id ;
+ unsigned int Id_isUsed:1;
+ /* simple content: http://www.w3.org/2001/XMLSchema,base64Binary */
+ struct {
+ uint8_t bytes[iso2SignatureValueType_CONTENT_BYTES_SIZE];
+ uint16_t bytesLen;
+ } CONTENT ;
+};
+
+/* Complex type name='urn:iso:15118:2:2016:MsgBody,CableCheckReqType', base type name='BodyBaseType', content type='EMPTY', isAbstract='false', hasTypeId='false', final='0', block='0', derivedBy='EXTENSION'. */
+struct iso2CableCheckReqType {
+ int noContent; /* avoid warning */
+};
+
+typedef enum {
+ iso2electricalChargingDeviceStatusType_Connected = 0,
+ iso2electricalChargingDeviceStatusType_Disconnected = 1
+} iso2electricalChargingDeviceStatusType;
+
/* Complex type name='urn:iso:15118:2:2016:MsgDataTypes,SelectedServiceType', base type name='anyType', content type='ELEMENT', isAbstract='false', hasTypeId='false', final='0', block='0', particle='("urn:iso:15118:2:2016:MsgDataTypes":ServiceID,"urn:iso:15118:2:2016:MsgDataTypes":ParameterSetID)', derivedBy='RESTRICTION'. */
-struct v2gSelectedServiceType {
+struct iso2SelectedServiceType {
/* element: "urn:iso:15118:2:2016:MsgDataTypes":ServiceID, urn:iso:15118:2:2016:MsgDataTypes,serviceIDType */
uint16_t ServiceID ;
/* element: "urn:iso:15118:2:2016:MsgDataTypes":ParameterSetID, http://www.w3.org/2001/XMLSchema,unsignedShort */
uint16_t ParameterSetID ;
};
-/* Complex type name='http://www.w3.org/2000/09/xmldsig#,SignaturePropertyType', base type name='anyType', content type='MIXED', isAbstract='false', hasTypeId='false', final='0', block='0', particle='((WC[##other:"http://www.w3.org/2000/09/xmldsig#"])){1-UNBOUNDED}', derivedBy='RESTRICTION'. */
-#define v2gSignaturePropertyType_Target_CHARACTERS_SIZE 50
-#define v2gSignaturePropertyType_Id_CHARACTERS_SIZE 50
-#define v2gSignaturePropertyType_ANY_CHARACTERS_SIZE 50
-struct v2gSignaturePropertyType {
- /* attribute: Target {http://www.w3.org/2001/XMLSchema,anyURI} */
- struct {
- exi_string_character_t characters[v2gSignaturePropertyType_Target_CHARACTERS_SIZE];
- uint16_t charactersLen;
- } Target ;
+typedef enum {
+ iso2EVSEErrorCodeType_RESSTemperatureInhibit = 0,
+ iso2EVSEErrorCodeType_ChargerConnectorLockFault = 1,
+ iso2EVSEErrorCodeType_ChargingCurrentdifferential = 2,
+ iso2EVSEErrorCodeType_ChargingVoltageOutOfRange = 3,
+ iso2EVSEErrorCodeType_ChargingSystemIncompatibility = 4,
+ iso2EVSEErrorCodeType_Reserved_A = 5,
+ iso2EVSEErrorCodeType_Reserved_B = 6,
+ iso2EVSEErrorCodeType_Reserved_C = 7
+} iso2EVSEErrorCodeType;
+
+/* Complex type name='urn:iso:15118:2:2016:MsgDataTypes,DiffieHellmanPublickeyType', base type name='dHpublickeyType', content type='SIMPLE', isAbstract='false', hasTypeId='false', final='0', block='0', derivedBy='EXTENSION'. */
+#define iso2DiffieHellmanPublickeyType_Id_CHARACTERS_SIZE 50 + EXTRA_CHAR
+#define iso2DiffieHellmanPublickeyType_CONTENT_BYTES_SIZE 350
+struct iso2DiffieHellmanPublickeyType {
/* attribute: Id {http://www.w3.org/2001/XMLSchema,ID} */
struct {
- exi_string_character_t characters[v2gSignaturePropertyType_Id_CHARACTERS_SIZE];
+ exi_string_character_t characters[iso2DiffieHellmanPublickeyType_Id_CHARACTERS_SIZE];
uint16_t charactersLen;
} Id ;
- unsigned int Id_isUsed:1;
- /* element: WC[##other:"http://www.w3.org/2000/09/xmldsig#"] */
+ /* simple content: urn:iso:15118:2:2016:MsgDataTypes,dHpublickeyType */
struct {
- exi_string_character_t characters[v2gSignaturePropertyType_ANY_CHARACTERS_SIZE];
- uint16_t charactersLen;
- } ANY ;
- unsigned int ANY_isUsed:1;
+ uint8_t bytes[iso2DiffieHellmanPublickeyType_CONTENT_BYTES_SIZE];
+ uint16_t bytesLen;
+ } CONTENT ;
};
-/* Complex type name='http://www.w3.org/2000/09/xmldsig#,PGPDataType', base type name='anyType', content type='ELEMENT', isAbstract='false', hasTypeId='false', final='0', block='0', particle='(("http://www.w3.org/2000/09/xmldsig#":PGPKeyID,"http://www.w3.org/2000/09/xmldsig#":PGPKeyPacket{0-1},(WC[##other:"http://www.w3.org/2000/09/xmldsig#"]){0-UNBOUNDED})|("http://www.w3.org/2000/09/xmldsig#":PGPKeyPacket,(WC[##other:"http://www.w3.org/2000/09/xmldsig#"]){0-UNBOUNDED}))', derivedBy='RESTRICTION'. */
-#define v2gPGPDataType_PGPKeyID_BYTES_SIZE 350
-#define v2gPGPDataType_PGPKeyPacket_BYTES_SIZE 350
-#define v2gPGPDataType_ANY_CHARACTERS_SIZE 50
-struct v2gPGPDataType {
- /* element: "http://www.w3.org/2000/09/xmldsig#":PGPKeyID, http://www.w3.org/2001/XMLSchema,base64Binary */
- struct {
- uint8_t bytes[v2gPGPDataType_PGPKeyID_BYTES_SIZE];
- uint16_t bytesLen;
- } PGPKeyID ;
- unsigned int PGPKeyID_isUsed:1;
- /* element: "http://www.w3.org/2000/09/xmldsig#":PGPKeyPacket, http://www.w3.org/2001/XMLSchema,base64Binary */
- struct {
- uint8_t bytes[v2gPGPDataType_PGPKeyPacket_BYTES_SIZE];
- uint16_t bytesLen;
- } PGPKeyPacket ;
- unsigned int PGPKeyPacket_isUsed:1;
- /* element: WC[##other:"http://www.w3.org/2000/09/xmldsig#"] */
- struct {
- exi_string_character_t characters[v2gPGPDataType_ANY_CHARACTERS_SIZE];
- uint16_t charactersLen;
- } ANY ;
- unsigned int ANY_isUsed:1;
+/* Complex type name='urn:iso:15118:2:2016:MsgDataTypes,EVSEStatusType', base type name='anyType', content type='ELEMENT', isAbstract='false', hasTypeId='false', final='0', block='0', particle='("urn:iso:15118:2:2016:MsgDataTypes":NotificationMaxDelay,"urn:iso:15118:2:2016:MsgDataTypes":EVSENotification)', derivedBy='RESTRICTION'. */
+struct iso2EVSEStatusType {
+ /* element: "urn:iso:15118:2:2016:MsgDataTypes":NotificationMaxDelay, http://www.w3.org/2001/XMLSchema,unsignedShort */
+ uint16_t NotificationMaxDelay ;
+ /* element: "urn:iso:15118:2:2016:MsgDataTypes":EVSENotification, urn:iso:15118:2:2016:MsgDataTypes,EVSENotificationType */
+ iso2EVSENotificationType EVSENotification ;
};
-/* Complex type name='http://www.w3.org/2000/09/xmldsig#,DSAKeyValueType', base type name='anyType', content type='ELEMENT', isAbstract='false', hasTypeId='false', final='0', block='0', particle='(("http://www.w3.org/2000/09/xmldsig#":P,"http://www.w3.org/2000/09/xmldsig#":Q){0-1},"http://www.w3.org/2000/09/xmldsig#":G{0-1},"http://www.w3.org/2000/09/xmldsig#":Y,"http://www.w3.org/2000/09/xmldsig#":J{0-1},("http://www.w3.org/2000/09/xmldsig#":Seed,"http://www.w3.org/2000/09/xmldsig#":PgenCounter){0-1})', derivedBy='RESTRICTION'. */
-#define v2gDSAKeyValueType_P_BYTES_SIZE 350
-#define v2gDSAKeyValueType_Q_BYTES_SIZE 350
-#define v2gDSAKeyValueType_G_BYTES_SIZE 350
-#define v2gDSAKeyValueType_Y_BYTES_SIZE 350
-#define v2gDSAKeyValueType_J_BYTES_SIZE 350
-#define v2gDSAKeyValueType_Seed_BYTES_SIZE 350
-#define v2gDSAKeyValueType_PgenCounter_BYTES_SIZE 350
-struct v2gDSAKeyValueType {
- /* element: "http://www.w3.org/2000/09/xmldsig#":P, http://www.w3.org/2000/09/xmldsig#,CryptoBinary */
- struct {
- uint8_t bytes[v2gDSAKeyValueType_P_BYTES_SIZE];
- uint16_t bytesLen;
- } P ;
- unsigned int P_isUsed:1;
- /* element: "http://www.w3.org/2000/09/xmldsig#":Q, http://www.w3.org/2000/09/xmldsig#,CryptoBinary */
- struct {
- uint8_t bytes[v2gDSAKeyValueType_Q_BYTES_SIZE];
- uint16_t bytesLen;
- } Q ;
- unsigned int Q_isUsed:1;
- /* element: "http://www.w3.org/2000/09/xmldsig#":G, http://www.w3.org/2000/09/xmldsig#,CryptoBinary */
- struct {
- uint8_t bytes[v2gDSAKeyValueType_G_BYTES_SIZE];
- uint16_t bytesLen;
- } G ;
- unsigned int G_isUsed:1;
- /* element: "http://www.w3.org/2000/09/xmldsig#":Y, http://www.w3.org/2000/09/xmldsig#,CryptoBinary */
- struct {
- uint8_t bytes[v2gDSAKeyValueType_Y_BYTES_SIZE];
- uint16_t bytesLen;
- } Y ;
- /* element: "http://www.w3.org/2000/09/xmldsig#":J, http://www.w3.org/2000/09/xmldsig#,CryptoBinary */
- struct {
- uint8_t bytes[v2gDSAKeyValueType_J_BYTES_SIZE];
- uint16_t bytesLen;
- } J ;
- unsigned int J_isUsed:1;
- /* element: "http://www.w3.org/2000/09/xmldsig#":Seed, http://www.w3.org/2000/09/xmldsig#,CryptoBinary */
- struct {
- uint8_t bytes[v2gDSAKeyValueType_Seed_BYTES_SIZE];
- uint16_t bytesLen;
- } Seed ;
- unsigned int Seed_isUsed:1;
- /* element: "http://www.w3.org/2000/09/xmldsig#":PgenCounter, http://www.w3.org/2000/09/xmldsig#,CryptoBinary */
- struct {
- uint8_t bytes[v2gDSAKeyValueType_PgenCounter_BYTES_SIZE];
- uint16_t bytesLen;
- } PgenCounter ;
- unsigned int PgenCounter_isUsed:1;
+typedef enum {
+ iso2EVErrorCodeType_RESSTemperatureInhibit = 0,
+ iso2EVErrorCodeType_EVShiftPosition = 1,
+ iso2EVErrorCodeType_ChargerConnectorLockFault = 2,
+ iso2EVErrorCodeType_EVRESSMalfunction = 3,
+ iso2EVErrorCodeType_ChargingCurrentdifferential = 4,
+ iso2EVErrorCodeType_ChargingVoltageOutOfRange = 5,
+ iso2EVErrorCodeType_ChargingSystemIncompatibility = 6,
+ iso2EVErrorCodeType_Reserved_A = 7,
+ iso2EVErrorCodeType_Reserved_B = 8,
+ iso2EVErrorCodeType_Reserved_C = 9
+} iso2EVErrorCodeType;
+
+/* Complex type name='urn:iso:15118:2:2016:MsgBody,AuthorizationResType', base type name='V2GResponseType', content type='ELEMENT', isAbstract='false', hasTypeId='false', final='0', block='0', particle='(("urn:iso:15118:2:2016:MsgBody":ResponseCode,"urn:iso:15118:2:2016:MsgBody":EVSEStatus{0-1}),("urn:iso:15118:2:2016:MsgBody":EVSEProcessing))', derivedBy='EXTENSION'. */
+struct iso2AuthorizationResType {
+ /* element: "urn:iso:15118:2:2016:MsgBody":ResponseCode, urn:iso:15118:2:2016:MsgDataTypes,responseCodeType */
+ iso2responseCodeType ResponseCode ;
+ /* element: "urn:iso:15118:2:2016:MsgBody":EVSEStatus, Complex type name='urn:iso:15118:2:2016:MsgDataTypes,EVSEStatusType', base type name='anyType', content type='ELEMENT', isAbstract='false', hasTypeId='false', final='0', block='0', particle='("urn:iso:15118:2:2016:MsgDataTypes":NotificationMaxDelay,"urn:iso:15118:2:2016:MsgDataTypes":EVSENotification)', derivedBy='RESTRICTION'. */
+ struct iso2EVSEStatusType EVSEStatus ;
+ unsigned int EVSEStatus_isUsed:1;
+ /* element: "urn:iso:15118:2:2016:MsgBody":EVSEProcessing, urn:iso:15118:2:2016:MsgDataTypes,EVSEProcessingType */
+ iso2EVSEProcessingType EVSEProcessing ;
};
-/* Complex type name='urn:iso:15118:2:2016:MsgDataTypes,ServiceIDListType', base type name='anyType', content type='ELEMENT', isAbstract='false', hasTypeId='false', final='0', block='0', particle='("urn:iso:15118:2:2016:MsgDataTypes":ServiceID{1-10})', derivedBy='RESTRICTION'. */
-#define v2gServiceIDListType_ServiceID_ARRAY_SIZE 5
-struct v2gServiceIDListType {
- /* element: "urn:iso:15118:2:2016:MsgDataTypes":ServiceID, urn:iso:15118:2:2016:MsgDataTypes,serviceIDType */
- struct {
- uint16_t array[v2gServiceIDListType_ServiceID_ARRAY_SIZE];
- uint16_t arrayLen;
- } ServiceID;
+/* Complex type name='urn:iso:15118:2:2016:MsgDataTypes,MV_EVSEFinePositioningSetupParametersType', base type name='EVSEFinePositioningSetupParametersType', content type='ELEMENT', isAbstract='false', hasTypeId='false', final='0', block='0', particle='("urn:iso:15118:2:2016:MsgDataTypes":FrequencyChannel{0-1},"urn:iso:15118:2:2016:MsgDataTypes":MagneticVectorSetupList{0-1})', derivedBy='EXTENSION'. */
+struct iso2MV_EVSEFinePositioningSetupParametersType {
+ /* element: "urn:iso:15118:2:2016:MsgDataTypes":FrequencyChannel, http://www.w3.org/2001/XMLSchema,unsignedInt */
+ uint32_t FrequencyChannel ;
+ unsigned int FrequencyChannel_isUsed:1;
+ /* element: "urn:iso:15118:2:2016:MsgDataTypes":MagneticVectorSetupList, Complex type name='urn:iso:15118:2:2016:MsgDataTypes,MagneticVectorSetupListType', base type name='anyType', content type='ELEMENT', isAbstract='false', hasTypeId='false', final='0', block='0', particle='("urn:iso:15118:2:2016:MsgDataTypes":MagneticVectorSetup{1-255})', derivedBy='RESTRICTION'. */
+ struct iso2MagneticVectorSetupListType MagneticVectorSetupList ;
+ unsigned int MagneticVectorSetupList_isUsed:1;
};
/* Complex type name='http://www.w3.org/2000/09/xmldsig#,X509DataType', base type name='anyType', content type='ELEMENT', isAbstract='false', hasTypeId='false', final='0', block='0', particle='(("http://www.w3.org/2000/09/xmldsig#":X509IssuerSerial|"http://www.w3.org/2000/09/xmldsig#":X509SKI|"http://www.w3.org/2000/09/xmldsig#":X509SubjectName|"http://www.w3.org/2000/09/xmldsig#":X509Certificate|"http://www.w3.org/2000/09/xmldsig#":X509CRL|(WC[##other:"http://www.w3.org/2000/09/xmldsig#"]))){1-UNBOUNDED}', derivedBy='RESTRICTION'. */
-#define v2gX509DataType_X509IssuerSerial_ARRAY_SIZE 1
-#define v2gX509DataType_X509SKI_BYTES_SIZE 350
-#define v2gX509DataType_X509SKI_ARRAY_SIZE 1
-#define v2gX509DataType_X509SubjectName_CHARACTERS_SIZE 50
-#define v2gX509DataType_X509SubjectName_ARRAY_SIZE 1
-#define v2gX509DataType_X509Certificate_BYTES_SIZE 350
-#define v2gX509DataType_X509Certificate_ARRAY_SIZE 1
-#define v2gX509DataType_X509CRL_BYTES_SIZE 350
-#define v2gX509DataType_X509CRL_ARRAY_SIZE 1
-#define v2gX509DataType_ANY_CHARACTERS_SIZE 50
-struct v2gX509DataType {
+#define iso2X509DataType_X509IssuerSerial_ARRAY_SIZE 1
+#define iso2X509DataType_X509SKI_BYTES_SIZE 350
+#define iso2X509DataType_X509SKI_ARRAY_SIZE 1
+#define iso2X509DataType_X509SubjectName_CHARACTERS_SIZE 50 + EXTRA_CHAR
+#define iso2X509DataType_X509SubjectName_ARRAY_SIZE 1
+#define iso2X509DataType_X509Certificate_BYTES_SIZE 350
+#define iso2X509DataType_X509Certificate_ARRAY_SIZE 1
+#define iso2X509DataType_X509CRL_BYTES_SIZE 350
+#define iso2X509DataType_X509CRL_ARRAY_SIZE 1
+#define iso2X509DataType_ANY_CHARACTERS_SIZE 50 + EXTRA_CHAR
+struct iso2X509DataType {
/* element: "http://www.w3.org/2000/09/xmldsig#":X509IssuerSerial, Complex type name='http://www.w3.org/2000/09/xmldsig#,X509IssuerSerialType', base type name='anyType', content type='ELEMENT', isAbstract='false', hasTypeId='false', final='0', block='0', particle='("http://www.w3.org/2000/09/xmldsig#":X509IssuerName,"http://www.w3.org/2000/09/xmldsig#":X509SerialNumber)', derivedBy='RESTRICTION'. */
struct {
- struct v2gX509IssuerSerialType array[v2gX509DataType_X509IssuerSerial_ARRAY_SIZE];
+ struct iso2X509IssuerSerialType array[iso2X509DataType_X509IssuerSerial_ARRAY_SIZE];
uint16_t arrayLen;
} X509IssuerSerial;
/* element: "http://www.w3.org/2000/09/xmldsig#":X509SKI, http://www.w3.org/2001/XMLSchema,base64Binary */
struct {
struct {
- uint8_t bytes[v2gX509DataType_X509SKI_BYTES_SIZE];
+ uint8_t bytes[iso2X509DataType_X509SKI_BYTES_SIZE];
uint16_t bytesLen;
- } array[v2gX509DataType_X509SKI_ARRAY_SIZE];
+ } array[iso2X509DataType_X509SKI_ARRAY_SIZE];
uint16_t arrayLen;
} X509SKI;
/* element: "http://www.w3.org/2000/09/xmldsig#":X509SubjectName, http://www.w3.org/2001/XMLSchema,string */
struct {
struct {
- exi_string_character_t characters[v2gX509DataType_X509SubjectName_CHARACTERS_SIZE];
+ exi_string_character_t characters[iso2X509DataType_X509SubjectName_CHARACTERS_SIZE];
uint16_t charactersLen;
- } array[v2gX509DataType_X509SubjectName_ARRAY_SIZE];
+ } array[iso2X509DataType_X509SubjectName_ARRAY_SIZE];
uint16_t arrayLen;
} X509SubjectName;
/* element: "http://www.w3.org/2000/09/xmldsig#":X509Certificate, http://www.w3.org/2001/XMLSchema,base64Binary */
struct {
struct {
- uint8_t bytes[v2gX509DataType_X509Certificate_BYTES_SIZE];
+ uint8_t bytes[iso2X509DataType_X509Certificate_BYTES_SIZE];
uint16_t bytesLen;
- } array[v2gX509DataType_X509Certificate_ARRAY_SIZE];
+ } array[iso2X509DataType_X509Certificate_ARRAY_SIZE];
uint16_t arrayLen;
} X509Certificate;
/* element: "http://www.w3.org/2000/09/xmldsig#":X509CRL, http://www.w3.org/2001/XMLSchema,base64Binary */
struct {
struct {
- uint8_t bytes[v2gX509DataType_X509CRL_BYTES_SIZE];
+ uint8_t bytes[iso2X509DataType_X509CRL_BYTES_SIZE];
uint16_t bytesLen;
- } array[v2gX509DataType_X509CRL_ARRAY_SIZE];
+ } array[iso2X509DataType_X509CRL_ARRAY_SIZE];
uint16_t arrayLen;
} X509CRL;
/* element: WC[##other:"http://www.w3.org/2000/09/xmldsig#"] */
struct {
- exi_string_character_t characters[v2gX509DataType_ANY_CHARACTERS_SIZE];
+ exi_string_character_t characters[iso2X509DataType_ANY_CHARACTERS_SIZE];
uint16_t charactersLen;
} ANY ;
unsigned int ANY_isUsed:1;
};
-/* Complex type name='urn:iso:15118:2:2016:MsgDataTypes,EVEnergyTransferParameterType', base type name='anyType', content type='ELEMENT', isAbstract='true', hasTypeId='false', final='0', block='0', particle='("urn:iso:15118:2:2016:MsgDataTypes":DepartureTime)', derivedBy='RESTRICTION'. */
-struct v2gEVEnergyTransferParameterType {
+/* Complex type name='urn:iso:15118:2:2016:MsgBody,DC_BidirectionalControlResType', base type name='V2GResponseType', content type='ELEMENT', isAbstract='false', hasTypeId='false', final='0', block='0', particle='(("urn:iso:15118:2:2016:MsgBody":ResponseCode,"urn:iso:15118:2:2016:MsgBody":EVSEStatus{0-1}),("urn:iso:15118:2:2016:MsgBody":EVSEPresentCurrent,"urn:iso:15118:2:2016:MsgBody":EVSEPresentVoltage,"urn:iso:15118:2:2016:MsgBody":EVSEPowerLimitAchieved,"urn:iso:15118:2:2016:MsgBody":EVSECurrentLimitAchieved,"urn:iso:15118:2:2016:MsgBody":EVSEVoltageLimitAchieved,"urn:iso:15118:2:2016:MsgBody":EVSEMaximumChargePower{0-1},"urn:iso:15118:2:2016:MsgBody":EVSEMaximumDischargePower{0-1},"urn:iso:15118:2:2016:MsgBody":EVSEMaximumChargeCurrent{0-1},"urn:iso:15118:2:2016:MsgBody":EVSEMaximumDischargeCurrent{0-1},"urn:iso:15118:2:2016:MsgBody":EVSEMaximumVoltage{0-1},"urn:iso:15118:2:2016:MsgBody":EVSEMinimumVoltage{0-1},"urn:iso:15118:2:2016:MsgBody":EVSEID,"urn:iso:15118:2:2016:MsgBody":SAScheduleTupleID{0-1},"urn:iso:15118:2:2016:MsgBody":MeterInfo{0-1},"urn:iso:15118:2:2016:MsgBody":ReceiptRequired{0-1}))', derivedBy='EXTENSION'. */
+#define iso2DC_BidirectionalControlResType_EVSEID_CHARACTERS_SIZE 37 + EXTRA_CHAR /* XML schema facet maxLength for urn:iso:15118:2:2016:MsgDataTypes,evseIDType is 37 */
+struct iso2DC_BidirectionalControlResType {
+ /* element: "urn:iso:15118:2:2016:MsgBody":ResponseCode, urn:iso:15118:2:2016:MsgDataTypes,responseCodeType */
+ iso2responseCodeType ResponseCode ;
+ /* element: "urn:iso:15118:2:2016:MsgBody":EVSEStatus, Complex type name='urn:iso:15118:2:2016:MsgDataTypes,EVSEStatusType', base type name='anyType', content type='ELEMENT', isAbstract='false', hasTypeId='false', final='0', block='0', particle='("urn:iso:15118:2:2016:MsgDataTypes":NotificationMaxDelay,"urn:iso:15118:2:2016:MsgDataTypes":EVSENotification)', derivedBy='RESTRICTION'. */
+ struct iso2EVSEStatusType EVSEStatus ;
+ unsigned int EVSEStatus_isUsed:1;
+ /* element: "urn:iso:15118:2:2016:MsgBody":EVSEPresentCurrent, Complex type name='urn:iso:15118:2:2016:MsgDataTypes,PhysicalValueType', base type name='anyType', content type='ELEMENT', isAbstract='false', hasTypeId='false', final='0', block='0', particle='("urn:iso:15118:2:2016:MsgDataTypes":Exponent,"urn:iso:15118:2:2016:MsgDataTypes":Value)', derivedBy='RESTRICTION'. */
+ struct iso2PhysicalValueType EVSEPresentCurrent ;
+ /* element: "urn:iso:15118:2:2016:MsgBody":EVSEPresentVoltage, Complex type name='urn:iso:15118:2:2016:MsgDataTypes,PhysicalValueType', base type name='anyType', content type='ELEMENT', isAbstract='false', hasTypeId='false', final='0', block='0', particle='("urn:iso:15118:2:2016:MsgDataTypes":Exponent,"urn:iso:15118:2:2016:MsgDataTypes":Value)', derivedBy='RESTRICTION'. */
+ struct iso2PhysicalValueType EVSEPresentVoltage ;
+ /* element: "urn:iso:15118:2:2016:MsgBody":EVSEPowerLimitAchieved, http://www.w3.org/2001/XMLSchema,boolean */
+ int EVSEPowerLimitAchieved ;
+ /* element: "urn:iso:15118:2:2016:MsgBody":EVSECurrentLimitAchieved, http://www.w3.org/2001/XMLSchema,boolean */
+ int EVSECurrentLimitAchieved ;
+ /* element: "urn:iso:15118:2:2016:MsgBody":EVSEVoltageLimitAchieved, http://www.w3.org/2001/XMLSchema,boolean */
+ int EVSEVoltageLimitAchieved ;
+ /* element: "urn:iso:15118:2:2016:MsgBody":EVSEMaximumChargePower, Complex type name='urn:iso:15118:2:2016:MsgDataTypes,PhysicalValueType', base type name='anyType', content type='ELEMENT', isAbstract='false', hasTypeId='false', final='0', block='0', particle='("urn:iso:15118:2:2016:MsgDataTypes":Exponent,"urn:iso:15118:2:2016:MsgDataTypes":Value)', derivedBy='RESTRICTION'. */
+ struct iso2PhysicalValueType EVSEMaximumChargePower ;
+ unsigned int EVSEMaximumChargePower_isUsed:1;
+ /* element: "urn:iso:15118:2:2016:MsgBody":EVSEMaximumDischargePower, Complex type name='urn:iso:15118:2:2016:MsgDataTypes,PhysicalValueType', base type name='anyType', content type='ELEMENT', isAbstract='false', hasTypeId='false', final='0', block='0', particle='("urn:iso:15118:2:2016:MsgDataTypes":Exponent,"urn:iso:15118:2:2016:MsgDataTypes":Value)', derivedBy='RESTRICTION'. */
+ struct iso2PhysicalValueType EVSEMaximumDischargePower ;
+ unsigned int EVSEMaximumDischargePower_isUsed:1;
+ /* element: "urn:iso:15118:2:2016:MsgBody":EVSEMaximumChargeCurrent, Complex type name='urn:iso:15118:2:2016:MsgDataTypes,PhysicalValueType', base type name='anyType', content type='ELEMENT', isAbstract='false', hasTypeId='false', final='0', block='0', particle='("urn:iso:15118:2:2016:MsgDataTypes":Exponent,"urn:iso:15118:2:2016:MsgDataTypes":Value)', derivedBy='RESTRICTION'. */
+ struct iso2PhysicalValueType EVSEMaximumChargeCurrent ;
+ unsigned int EVSEMaximumChargeCurrent_isUsed:1;
+ /* element: "urn:iso:15118:2:2016:MsgBody":EVSEMaximumDischargeCurrent, Complex type name='urn:iso:15118:2:2016:MsgDataTypes,PhysicalValueType', base type name='anyType', content type='ELEMENT', isAbstract='false', hasTypeId='false', final='0', block='0', particle='("urn:iso:15118:2:2016:MsgDataTypes":Exponent,"urn:iso:15118:2:2016:MsgDataTypes":Value)', derivedBy='RESTRICTION'. */
+ struct iso2PhysicalValueType EVSEMaximumDischargeCurrent ;
+ unsigned int EVSEMaximumDischargeCurrent_isUsed:1;
+ /* element: "urn:iso:15118:2:2016:MsgBody":EVSEMaximumVoltage, Complex type name='urn:iso:15118:2:2016:MsgDataTypes,PhysicalValueType', base type name='anyType', content type='ELEMENT', isAbstract='false', hasTypeId='false', final='0', block='0', particle='("urn:iso:15118:2:2016:MsgDataTypes":Exponent,"urn:iso:15118:2:2016:MsgDataTypes":Value)', derivedBy='RESTRICTION'. */
+ struct iso2PhysicalValueType EVSEMaximumVoltage ;
+ unsigned int EVSEMaximumVoltage_isUsed:1;
+ /* element: "urn:iso:15118:2:2016:MsgBody":EVSEMinimumVoltage, Complex type name='urn:iso:15118:2:2016:MsgDataTypes,PhysicalValueType', base type name='anyType', content type='ELEMENT', isAbstract='false', hasTypeId='false', final='0', block='0', particle='("urn:iso:15118:2:2016:MsgDataTypes":Exponent,"urn:iso:15118:2:2016:MsgDataTypes":Value)', derivedBy='RESTRICTION'. */
+ struct iso2PhysicalValueType EVSEMinimumVoltage ;
+ unsigned int EVSEMinimumVoltage_isUsed:1;
+ /* element: "urn:iso:15118:2:2016:MsgBody":EVSEID, urn:iso:15118:2:2016:MsgDataTypes,evseIDType */
+ struct {
+ exi_string_character_t characters[iso2DC_BidirectionalControlResType_EVSEID_CHARACTERS_SIZE];
+ uint16_t charactersLen;
+ } EVSEID ;
+ /* element: "urn:iso:15118:2:2016:MsgBody":SAScheduleTupleID, urn:iso:15118:2:2016:MsgDataTypes,SAIDType */
+ uint8_t SAScheduleTupleID ;
+ unsigned int SAScheduleTupleID_isUsed:1;
+ /* element: "urn:iso:15118:2:2016:MsgBody":MeterInfo, Complex type name='urn:iso:15118:2:2016:MsgDataTypes,MeterInfoType', base type name='anyType', content type='ELEMENT', isAbstract='false', hasTypeId='false', final='0', block='0', particle='("urn:iso:15118:2:2016:MsgDataTypes":MeterID,"urn:iso:15118:2:2016:MsgDataTypes":MeterReadingCharged{0-1},"urn:iso:15118:2:2016:MsgDataTypes":MeterReadingDischarged{0-1},"urn:iso:15118:2:2016:MsgDataTypes":SigMeterReading{0-1},"urn:iso:15118:2:2016:MsgDataTypes":MeterStatus{0-1},"urn:iso:15118:2:2016:MsgDataTypes":TMeter{0-1})', derivedBy='RESTRICTION'. */
+ struct iso2MeterInfoType MeterInfo ;
+ unsigned int MeterInfo_isUsed:1;
+ /* element: "urn:iso:15118:2:2016:MsgBody":ReceiptRequired, http://www.w3.org/2001/XMLSchema,boolean */
+ int ReceiptRequired ;
+ unsigned int ReceiptRequired_isUsed:1;
+};
+
+/* Complex type name='urn:iso:15118:2:2016:MsgDataTypes,CostType', base type name='anyType', content type='ELEMENT', isAbstract='false', hasTypeId='false', final='0', block='0', particle='("urn:iso:15118:2:2016:MsgDataTypes":costKind,"urn:iso:15118:2:2016:MsgDataTypes":amount)', derivedBy='RESTRICTION'. */
+struct iso2CostType {
+ /* element: "urn:iso:15118:2:2016:MsgDataTypes":costKind, urn:iso:15118:2:2016:MsgDataTypes,costKindType */
+ iso2costKindType costKind ;
+ /* element: "urn:iso:15118:2:2016:MsgDataTypes":amount, Complex type name='urn:iso:15118:2:2016:MsgDataTypes,PhysicalValueType', base type name='anyType', content type='ELEMENT', isAbstract='false', hasTypeId='false', final='0', block='0', particle='("urn:iso:15118:2:2016:MsgDataTypes":Exponent,"urn:iso:15118:2:2016:MsgDataTypes":Value)', derivedBy='RESTRICTION'. */
+ struct iso2PhysicalValueType amount ;
+};
+
+/* Complex type name='urn:iso:15118:2:2016:MsgBody,ChargingStatusResType', base type name='V2GResponseType', content type='ELEMENT', isAbstract='false', hasTypeId='false', final='0', block='0', particle='(("urn:iso:15118:2:2016:MsgBody":ResponseCode,"urn:iso:15118:2:2016:MsgBody":EVSEStatus{0-1}),("urn:iso:15118:2:2016:MsgBody":EVSEID,"urn:iso:15118:2:2016:MsgBody":SAScheduleTupleID{0-1},"urn:iso:15118:2:2016:MsgBody":MeterInfo{0-1},"urn:iso:15118:2:2016:MsgBody":ReceiptRequired{0-1},"urn:iso:15118:2:2016:MsgBody":EVSETargetPower{0-1}))', derivedBy='EXTENSION'. */
+#define iso2ChargingStatusResType_EVSEID_CHARACTERS_SIZE 37 + EXTRA_CHAR /* XML schema facet maxLength for urn:iso:15118:2:2016:MsgDataTypes,evseIDType is 37 */
+struct iso2ChargingStatusResType {
+ /* element: "urn:iso:15118:2:2016:MsgBody":ResponseCode, urn:iso:15118:2:2016:MsgDataTypes,responseCodeType */
+ iso2responseCodeType ResponseCode ;
+ /* element: "urn:iso:15118:2:2016:MsgBody":EVSEStatus, Complex type name='urn:iso:15118:2:2016:MsgDataTypes,EVSEStatusType', base type name='anyType', content type='ELEMENT', isAbstract='false', hasTypeId='false', final='0', block='0', particle='("urn:iso:15118:2:2016:MsgDataTypes":NotificationMaxDelay,"urn:iso:15118:2:2016:MsgDataTypes":EVSENotification)', derivedBy='RESTRICTION'. */
+ struct iso2EVSEStatusType EVSEStatus ;
+ unsigned int EVSEStatus_isUsed:1;
+ /* element: "urn:iso:15118:2:2016:MsgBody":EVSEID, urn:iso:15118:2:2016:MsgDataTypes,evseIDType */
+ struct {
+ exi_string_character_t characters[iso2ChargingStatusResType_EVSEID_CHARACTERS_SIZE];
+ uint16_t charactersLen;
+ } EVSEID ;
+ /* element: "urn:iso:15118:2:2016:MsgBody":SAScheduleTupleID, urn:iso:15118:2:2016:MsgDataTypes,SAIDType */
+ uint8_t SAScheduleTupleID ;
+ unsigned int SAScheduleTupleID_isUsed:1;
+ /* element: "urn:iso:15118:2:2016:MsgBody":MeterInfo, Complex type name='urn:iso:15118:2:2016:MsgDataTypes,MeterInfoType', base type name='anyType', content type='ELEMENT', isAbstract='false', hasTypeId='false', final='0', block='0', particle='("urn:iso:15118:2:2016:MsgDataTypes":MeterID,"urn:iso:15118:2:2016:MsgDataTypes":MeterReadingCharged{0-1},"urn:iso:15118:2:2016:MsgDataTypes":MeterReadingDischarged{0-1},"urn:iso:15118:2:2016:MsgDataTypes":SigMeterReading{0-1},"urn:iso:15118:2:2016:MsgDataTypes":MeterStatus{0-1},"urn:iso:15118:2:2016:MsgDataTypes":TMeter{0-1})', derivedBy='RESTRICTION'. */
+ struct iso2MeterInfoType MeterInfo ;
+ unsigned int MeterInfo_isUsed:1;
+ /* element: "urn:iso:15118:2:2016:MsgBody":ReceiptRequired, http://www.w3.org/2001/XMLSchema,boolean */
+ int ReceiptRequired ;
+ unsigned int ReceiptRequired_isUsed:1;
+ /* element: "urn:iso:15118:2:2016:MsgBody":EVSETargetPower, Complex type name='urn:iso:15118:2:2016:MsgDataTypes,PhysicalValueType', base type name='anyType', content type='ELEMENT', isAbstract='false', hasTypeId='false', final='0', block='0', particle='("urn:iso:15118:2:2016:MsgDataTypes":Exponent,"urn:iso:15118:2:2016:MsgDataTypes":Value)', derivedBy='RESTRICTION'. */
+ struct iso2PhysicalValueType EVSETargetPower ;
+ unsigned int EVSETargetPower_isUsed:1;
+};
+
+/* Complex type name='urn:iso:15118:2:2016:MsgDataTypes,AC_EVChargeParameterType', base type name='EVEnergyTransferParameterType', content type='ELEMENT', isAbstract='false', hasTypeId='false', final='0', block='0', particle='(("urn:iso:15118:2:2016:MsgDataTypes":DepartureTime),("urn:iso:15118:2:2016:MsgDataTypes":EVMaximumChargePower,"urn:iso:15118:2:2016:MsgDataTypes":EVMaximumChargeCurrent,"urn:iso:15118:2:2016:MsgDataTypes":EVMinimumChargeCurrent,"urn:iso:15118:2:2016:MsgDataTypes":EVTargetEnergyRequest{0-1},"urn:iso:15118:2:2016:MsgDataTypes":EVMaximumEnergyRequest{0-1},"urn:iso:15118:2:2016:MsgDataTypes":EVMinimumEnergyRequest{0-1},"urn:iso:15118:2:2016:MsgDataTypes":EVMaximumVoltage))', derivedBy='EXTENSION'. */
+struct iso2AC_EVChargeParameterType {
/* element: "urn:iso:15118:2:2016:MsgDataTypes":DepartureTime, http://www.w3.org/2001/XMLSchema,unsignedInt */
uint32_t DepartureTime ;
+ /* element: "urn:iso:15118:2:2016:MsgDataTypes":EVMaximumChargePower, Complex type name='urn:iso:15118:2:2016:MsgDataTypes,PhysicalValueType', base type name='anyType', content type='ELEMENT', isAbstract='false', hasTypeId='false', final='0', block='0', particle='("urn:iso:15118:2:2016:MsgDataTypes":Exponent,"urn:iso:15118:2:2016:MsgDataTypes":Value)', derivedBy='RESTRICTION'. */
+ struct iso2PhysicalValueType EVMaximumChargePower ;
+ /* element: "urn:iso:15118:2:2016:MsgDataTypes":EVMaximumChargeCurrent, Complex type name='urn:iso:15118:2:2016:MsgDataTypes,PhysicalValueType', base type name='anyType', content type='ELEMENT', isAbstract='false', hasTypeId='false', final='0', block='0', particle='("urn:iso:15118:2:2016:MsgDataTypes":Exponent,"urn:iso:15118:2:2016:MsgDataTypes":Value)', derivedBy='RESTRICTION'. */
+ struct iso2PhysicalValueType EVMaximumChargeCurrent ;
+ /* element: "urn:iso:15118:2:2016:MsgDataTypes":EVMinimumChargeCurrent, Complex type name='urn:iso:15118:2:2016:MsgDataTypes,PhysicalValueType', base type name='anyType', content type='ELEMENT', isAbstract='false', hasTypeId='false', final='0', block='0', particle='("urn:iso:15118:2:2016:MsgDataTypes":Exponent,"urn:iso:15118:2:2016:MsgDataTypes":Value)', derivedBy='RESTRICTION'. */
+ struct iso2PhysicalValueType EVMinimumChargeCurrent ;
+ /* element: "urn:iso:15118:2:2016:MsgDataTypes":EVTargetEnergyRequest, Complex type name='urn:iso:15118:2:2016:MsgDataTypes,PhysicalValueType', base type name='anyType', content type='ELEMENT', isAbstract='false', hasTypeId='false', final='0', block='0', particle='("urn:iso:15118:2:2016:MsgDataTypes":Exponent,"urn:iso:15118:2:2016:MsgDataTypes":Value)', derivedBy='RESTRICTION'. */
+ struct iso2PhysicalValueType EVTargetEnergyRequest ;
+ unsigned int EVTargetEnergyRequest_isUsed:1;
+ /* element: "urn:iso:15118:2:2016:MsgDataTypes":EVMaximumEnergyRequest, Complex type name='urn:iso:15118:2:2016:MsgDataTypes,PhysicalValueType', base type name='anyType', content type='ELEMENT', isAbstract='false', hasTypeId='false', final='0', block='0', particle='("urn:iso:15118:2:2016:MsgDataTypes":Exponent,"urn:iso:15118:2:2016:MsgDataTypes":Value)', derivedBy='RESTRICTION'. */
+ struct iso2PhysicalValueType EVMaximumEnergyRequest ;
+ unsigned int EVMaximumEnergyRequest_isUsed:1;
+ /* element: "urn:iso:15118:2:2016:MsgDataTypes":EVMinimumEnergyRequest, Complex type name='urn:iso:15118:2:2016:MsgDataTypes,PhysicalValueType', base type name='anyType', content type='ELEMENT', isAbstract='false', hasTypeId='false', final='0', block='0', particle='("urn:iso:15118:2:2016:MsgDataTypes":Exponent,"urn:iso:15118:2:2016:MsgDataTypes":Value)', derivedBy='RESTRICTION'. */
+ struct iso2PhysicalValueType EVMinimumEnergyRequest ;
+ unsigned int EVMinimumEnergyRequest_isUsed:1;
+ /* element: "urn:iso:15118:2:2016:MsgDataTypes":EVMaximumVoltage, Complex type name='urn:iso:15118:2:2016:MsgDataTypes,PhysicalValueType', base type name='anyType', content type='ELEMENT', isAbstract='false', hasTypeId='false', final='0', block='0', particle='("urn:iso:15118:2:2016:MsgDataTypes":Exponent,"urn:iso:15118:2:2016:MsgDataTypes":Value)', derivedBy='RESTRICTION'. */
+ struct iso2PhysicalValueType EVMaximumVoltage ;
};
-/* Complex type name='http://www.w3.org/2000/09/xmldsig#,CanonicalizationMethodType', base type name='anyType', content type='MIXED', isAbstract='false', hasTypeId='false', final='0', block='0', particle='((WC[##any]){0-UNBOUNDED})', derivedBy='RESTRICTION'. */
-#define v2gCanonicalizationMethodType_Algorithm_CHARACTERS_SIZE 65
-#define v2gCanonicalizationMethodType_ANY_CHARACTERS_SIZE 50
-struct v2gCanonicalizationMethodType {
- /* attribute: Algorithm {http://www.w3.org/2001/XMLSchema,anyURI} */
- struct {
- exi_string_character_t characters[v2gCanonicalizationMethodType_Algorithm_CHARACTERS_SIZE];
- uint16_t charactersLen;
- } Algorithm ;
- /* element: WC[##any] */
- struct {
- exi_string_character_t characters[v2gCanonicalizationMethodType_ANY_CHARACTERS_SIZE];
- uint16_t charactersLen;
- } ANY ;
- unsigned int ANY_isUsed:1;
+/* Complex type name='urn:iso:15118:2:2016:MsgDataTypes,AC_EVSEBidirectionalParameterType', base type name='AC_EVSEChargeParameterType', content type='ELEMENT', isAbstract='false', hasTypeId='false', final='0', block='0', particle='(("urn:iso:15118:2:2016:MsgDataTypes":EVSEMaximumChargeCurrent,"urn:iso:15118:2:2016:MsgDataTypes":EVSENominalVoltage,"urn:iso:15118:2:2016:MsgDataTypes":EVSENominalFrequency),("urn:iso:15118:2:2016:MsgDataTypes":EVSEMaximumDischargeCurrent,"urn:iso:15118:2:2016:MsgDataTypes":EVSENominalFrequency))', derivedBy='EXTENSION'. */
+struct iso2AC_EVSEBidirectionalParameterType {
+ /* element: "urn:iso:15118:2:2016:MsgDataTypes":EVSEMaximumChargeCurrent, Complex type name='urn:iso:15118:2:2016:MsgDataTypes,PhysicalValueType', base type name='anyType', content type='ELEMENT', isAbstract='false', hasTypeId='false', final='0', block='0', particle='("urn:iso:15118:2:2016:MsgDataTypes":Exponent,"urn:iso:15118:2:2016:MsgDataTypes":Value)', derivedBy='RESTRICTION'. */
+ struct iso2PhysicalValueType EVSEMaximumChargeCurrent ;
+ /* element: "urn:iso:15118:2:2016:MsgDataTypes":EVSENominalVoltage, Complex type name='urn:iso:15118:2:2016:MsgDataTypes,PhysicalValueType', base type name='anyType', content type='ELEMENT', isAbstract='false', hasTypeId='false', final='0', block='0', particle='("urn:iso:15118:2:2016:MsgDataTypes":Exponent,"urn:iso:15118:2:2016:MsgDataTypes":Value)', derivedBy='RESTRICTION'. */
+ struct iso2PhysicalValueType EVSENominalVoltage ;
+ /* element: "urn:iso:15118:2:2016:MsgDataTypes":EVSENominalFrequency, Complex type name='urn:iso:15118:2:2016:MsgDataTypes,PhysicalValueType', base type name='anyType', content type='ELEMENT', isAbstract='false', hasTypeId='false', final='0', block='0', particle='("urn:iso:15118:2:2016:MsgDataTypes":Exponent,"urn:iso:15118:2:2016:MsgDataTypes":Value)', derivedBy='RESTRICTION'. */
+ struct iso2PhysicalValueType EVSENominalFrequency ;
+ /* element: "urn:iso:15118:2:2016:MsgDataTypes":EVSEMaximumDischargeCurrent, Complex type name='urn:iso:15118:2:2016:MsgDataTypes,PhysicalValueType', base type name='anyType', content type='ELEMENT', isAbstract='false', hasTypeId='false', final='0', block='0', particle='("urn:iso:15118:2:2016:MsgDataTypes":Exponent,"urn:iso:15118:2:2016:MsgDataTypes":Value)', derivedBy='RESTRICTION'. */
+ struct iso2PhysicalValueType EVSEMaximumDischargeCurrent ;
};
-/* Complex type name='urn:iso:15118:2:2016:MsgBody,CertificateInstallationReqType', base type name='BodyBaseType', content type='ELEMENT', isAbstract='false', hasTypeId='false', final='0', block='0', particle='("urn:iso:15118:2:2016:MsgBody":OEMProvisioningCert,"urn:iso:15118:2:2016:MsgBody":ListOfRootCertificateIDs)', derivedBy='EXTENSION'. */
-#define v2gCertificateInstallationReqType_Id_CHARACTERS_SIZE 50
-#define v2gCertificateInstallationReqType_OEMProvisioningCert_BYTES_SIZE 800 /* XML schema facet maxLength for urn:iso:15118:2:2016:MsgDataTypes,certificateType is 800 */
-struct v2gCertificateInstallationReqType {
+/* Complex type name='urn:iso:15118:2:2016:MsgBody,VehicleCheckOutResType', base type name='V2GResponseType', content type='ELEMENT', isAbstract='false', hasTypeId='false', final='0', block='0', particle='(("urn:iso:15118:2:2016:MsgBody":ResponseCode,"urn:iso:15118:2:2016:MsgBody":EVSEStatus{0-1}),("urn:iso:15118:2:2016:MsgBody":EVSECheckOutStatus))', derivedBy='EXTENSION'. */
+struct iso2VehicleCheckOutResType {
+ /* element: "urn:iso:15118:2:2016:MsgBody":ResponseCode, urn:iso:15118:2:2016:MsgDataTypes,responseCodeType */
+ iso2responseCodeType ResponseCode ;
+ /* element: "urn:iso:15118:2:2016:MsgBody":EVSEStatus, Complex type name='urn:iso:15118:2:2016:MsgDataTypes,EVSEStatusType', base type name='anyType', content type='ELEMENT', isAbstract='false', hasTypeId='false', final='0', block='0', particle='("urn:iso:15118:2:2016:MsgDataTypes":NotificationMaxDelay,"urn:iso:15118:2:2016:MsgDataTypes":EVSENotification)', derivedBy='RESTRICTION'. */
+ struct iso2EVSEStatusType EVSEStatus ;
+ unsigned int EVSEStatus_isUsed:1;
+ /* element: "urn:iso:15118:2:2016:MsgBody":EVSECheckOutStatus, urn:iso:15118:2:2016:MsgDataTypes,EVCheckOutStatusType */
+ iso2EVCheckOutStatusType EVSECheckOutStatus ;
+};
+
+/* Complex type name='urn:iso:15118:2:2016:MsgBody,CableCheckResType', base type name='V2GResponseType', content type='ELEMENT', isAbstract='false', hasTypeId='false', final='0', block='0', particle='(("urn:iso:15118:2:2016:MsgBody":ResponseCode,"urn:iso:15118:2:2016:MsgBody":EVSEStatus{0-1}),("urn:iso:15118:2:2016:MsgBody":EVSEProcessing))', derivedBy='EXTENSION'. */
+struct iso2CableCheckResType {
+ /* element: "urn:iso:15118:2:2016:MsgBody":ResponseCode, urn:iso:15118:2:2016:MsgDataTypes,responseCodeType */
+ iso2responseCodeType ResponseCode ;
+ /* element: "urn:iso:15118:2:2016:MsgBody":EVSEStatus, Complex type name='urn:iso:15118:2:2016:MsgDataTypes,EVSEStatusType', base type name='anyType', content type='ELEMENT', isAbstract='false', hasTypeId='false', final='0', block='0', particle='("urn:iso:15118:2:2016:MsgDataTypes":NotificationMaxDelay,"urn:iso:15118:2:2016:MsgDataTypes":EVSENotification)', derivedBy='RESTRICTION'. */
+ struct iso2EVSEStatusType EVSEStatus ;
+ unsigned int EVSEStatus_isUsed:1;
+ /* element: "urn:iso:15118:2:2016:MsgBody":EVSEProcessing, urn:iso:15118:2:2016:MsgDataTypes,EVSEProcessingType */
+ iso2EVSEProcessingType EVSEProcessing ;
+};
+
+/* Complex type name='urn:iso:15118:2:2016:MsgBody,ServiceDiscoveryReqType', base type name='BodyBaseType', content type='ELEMENT', isAbstract='false', hasTypeId='false', final='0', block='0', particle='("urn:iso:15118:2:2016:MsgBody":SupportedServiceIDs{0-1})', derivedBy='EXTENSION'. */
+struct iso2ServiceDiscoveryReqType {
+ /* element: "urn:iso:15118:2:2016:MsgBody":SupportedServiceIDs, Complex type name='urn:iso:15118:2:2016:MsgDataTypes,ServiceIDListType', base type name='anyType', content type='ELEMENT', isAbstract='false', hasTypeId='false', final='0', block='0', particle='("urn:iso:15118:2:2016:MsgDataTypes":ServiceID{1-10})', derivedBy='RESTRICTION'. */
+ struct iso2ServiceIDListType SupportedServiceIDs ;
+ unsigned int SupportedServiceIDs_isUsed:1;
+};
+
+/* Complex type name='http://www.w3.org/2000/09/xmldsig#,SignaturePropertiesType', base type name='anyType', content type='ELEMENT', isAbstract='false', hasTypeId='false', final='0', block='0', particle='("http://www.w3.org/2000/09/xmldsig#":SignatureProperty{1-UNBOUNDED})', derivedBy='RESTRICTION'. */
+#define iso2SignaturePropertiesType_Id_CHARACTERS_SIZE 50 + EXTRA_CHAR
+#define iso2SignaturePropertiesType_SignatureProperty_ARRAY_SIZE 1
+struct iso2SignaturePropertiesType {
/* attribute: Id {http://www.w3.org/2001/XMLSchema,ID} */
struct {
- exi_string_character_t characters[v2gCertificateInstallationReqType_Id_CHARACTERS_SIZE];
+ exi_string_character_t characters[iso2SignaturePropertiesType_Id_CHARACTERS_SIZE];
uint16_t charactersLen;
} Id ;
- /* element: "urn:iso:15118:2:2016:MsgBody":OEMProvisioningCert, urn:iso:15118:2:2016:MsgDataTypes,certificateType */
+ unsigned int Id_isUsed:1;
+ /* element: "http://www.w3.org/2000/09/xmldsig#":SignatureProperty, Complex type name='http://www.w3.org/2000/09/xmldsig#,SignaturePropertyType', base type name='anyType', content type='MIXED', isAbstract='false', hasTypeId='false', final='0', block='0', particle='((WC[##other:"http://www.w3.org/2000/09/xmldsig#"])){1-UNBOUNDED}', derivedBy='RESTRICTION'. */
struct {
- uint8_t bytes[v2gCertificateInstallationReqType_OEMProvisioningCert_BYTES_SIZE];
- uint16_t bytesLen;
- } OEMProvisioningCert ;
- /* element: "urn:iso:15118:2:2016:MsgBody":ListOfRootCertificateIDs, Complex type name='urn:iso:15118:2:2016:MsgDataTypes,ListOfRootCertificateIDsType', base type name='anyType', content type='ELEMENT', isAbstract='false', hasTypeId='false', final='0', block='0', particle='("urn:iso:15118:2:2016:MsgDataTypes":RootCertificateID{1-20})', derivedBy='RESTRICTION'. */
- struct v2gListOfRootCertificateIDsType ListOfRootCertificateIDs ;
-};
-
-/* Complex type name='urn:iso:15118:2:2016:MsgDataTypes,EVSEEnergyTransferParameterType', base type name='anyType', content type='EMPTY', isAbstract='true', hasTypeId='false', final='0', block='0', derivedBy='RESTRICTION'. */
-struct v2gEVSEEnergyTransferParameterType {
- int noContent; /* avoid warning */
-};
-
-/* Complex type name='urn:iso:15118:2:2016:MsgDataTypes,DiffieHellmanPublickeyType', base type name='dHpublickeyType', content type='SIMPLE', isAbstract='false', hasTypeId='false', final='0', block='0', derivedBy='EXTENSION'. */
-#define v2gDiffieHellmanPublickeyType_Id_CHARACTERS_SIZE 50
-#define v2gDiffieHellmanPublickeyType_CONTENT_BYTES_SIZE 350
-struct v2gDiffieHellmanPublickeyType {
- /* attribute: Id {http://www.w3.org/2001/XMLSchema,ID} */
- struct {
- exi_string_character_t characters[v2gDiffieHellmanPublickeyType_Id_CHARACTERS_SIZE];
- uint16_t charactersLen;
- } Id ;
- /* simple content: urn:iso:15118:2:2016:MsgDataTypes,dHpublickeyType */
- struct {
- uint8_t bytes[v2gDiffieHellmanPublickeyType_CONTENT_BYTES_SIZE];
- uint16_t bytesLen;
- } CONTENT ;
-};
-
-typedef enum {
- v2gresponseCodeType_OK = 0,
- v2gresponseCodeType_OK_NewSessionEstablished = 1,
- v2gresponseCodeType_OK_OldSessionJoined = 2,
- v2gresponseCodeType_OK_CertificateExpiresSoon = 3,
- v2gresponseCodeType_OK_IsolationValid = 4,
- v2gresponseCodeType_OK_IsolationWarning = 5,
- v2gresponseCodeType_WARNING_CertificateExpired = 6,
- v2gresponseCodeType_WARNING_NoCertificateAvailable = 7,
- v2gresponseCodeType_WARNING_CertValidationError = 8,
- v2gresponseCodeType_WARNING_CertVerificationError = 9,
- v2gresponseCodeType_WARNING_ContractCanceled = 10,
- v2gresponseCodeType_FAILED = 11,
- v2gresponseCodeType_FAILED_SequenceError = 12,
- v2gresponseCodeType_FAILED_ServiceIDInvalid = 13,
- v2gresponseCodeType_FAILED_UnknownSession = 14,
- v2gresponseCodeType_FAILED_ServiceSelectionInvalid = 15,
- v2gresponseCodeType_FAILED_SignatureError = 16,
- v2gresponseCodeType_FAILED_PaymentSelectionInvalid = 17,
- v2gresponseCodeType_FAILED_ChallengeInvalid = 18,
- v2gresponseCodeType_FAILED_WrongChargeParameter = 19,
- v2gresponseCodeType_FAILED_IsolationFault = 20,
- v2gresponseCodeType_FAILED_PowerDeliveryNotApplied = 21,
- v2gresponseCodeType_FAILED_TariffSelectionInvalid = 22,
- v2gresponseCodeType_FAILED_ChargingProfileInvalid = 23,
- v2gresponseCodeType_FAILED_MeteringSignatureNotValid = 24,
- v2gresponseCodeType_FAILED_NoChargeServiceSelected = 25,
- v2gresponseCodeType_FAILED_WrongEnergyTransferMode = 26,
- v2gresponseCodeType_FAILED_ContactorError = 27,
- v2gresponseCodeType_FAILED_CertificateRevoked = 28,
- v2gresponseCodeType_FAILED_CertificateNotYetValid = 29
-} v2gresponseCodeType;
-
-/* Complex type name='urn:iso:15118:2:2016:MsgDataTypes,SensorPackageType', base type name='anyType', content type='ELEMENT', isAbstract='false', hasTypeId='false', final='0', block='0', particle='("urn:iso:15118:2:2016:MsgDataTypes":PackageIndex,"urn:iso:15118:2:2016:MsgDataTypes":SensorMeasurements{1-255})', derivedBy='RESTRICTION'. */
-#define v2gSensorPackageType_SensorMeasurements_ARRAY_SIZE 5
-struct v2gSensorPackageType {
- /* element: "urn:iso:15118:2:2016:MsgDataTypes":PackageIndex, http://www.w3.org/2001/XMLSchema,unsignedInt */
- uint32_t PackageIndex ;
- /* element: "urn:iso:15118:2:2016:MsgDataTypes":SensorMeasurements, Complex type name='urn:iso:15118:2:2016:MsgDataTypes,SensorMeasurementsType', base type name='anyType', content type='ELEMENT', isAbstract='false', hasTypeId='false', final='0', block='0', particle='("urn:iso:15118:2:2016:MsgDataTypes":SensorID,"urn:iso:15118:2:2016:MsgDataTypes":EffectiveRadiatedPower,"urn:iso:15118:2:2016:MsgDataTypes":MeasurementData{1-255})', derivedBy='RESTRICTION'. */
- struct {
- struct v2gSensorMeasurementsType array[v2gSensorPackageType_SensorMeasurements_ARRAY_SIZE];
+ struct iso2SignaturePropertyType array[iso2SignaturePropertiesType_SignatureProperty_ARRAY_SIZE];
uint16_t arrayLen;
- } SensorMeasurements;
+ } SignatureProperty;
};
-typedef enum {
- v2gvalueType_bool = 0,
- v2gvalueType_byte = 1,
- v2gvalueType_short = 2,
- v2gvalueType_int = 3,
- v2gvalueType_physicalValue = 4,
- v2gvalueType_string = 5
-} v2gvalueType;
-
-/* Complex type name='urn:iso:15118:2:2016:MsgBody,CertificateUpdateReqType', base type name='BodyBaseType', content type='ELEMENT', isAbstract='false', hasTypeId='false', final='0', block='0', particle='("urn:iso:15118:2:2016:MsgBody":ContractSignatureCertChain,"urn:iso:15118:2:2016:MsgBody":eMAID,"urn:iso:15118:2:2016:MsgBody":ListOfRootCertificateIDs)', derivedBy='EXTENSION'. */
-#define v2gCertificateUpdateReqType_Id_CHARACTERS_SIZE 50
-#define v2gCertificateUpdateReqType_eMAID_CHARACTERS_SIZE 15 /* XML schema facet maxLength for urn:iso:15118:2:2016:MsgDataTypes,eMAIDType is 15 */
-struct v2gCertificateUpdateReqType {
- /* attribute: Id {http://www.w3.org/2001/XMLSchema,ID} */
+/* Complex type name='urn:iso:15118:2:2016:MsgDataTypes,PMaxScheduleEntryType', base type name='EntryType', content type='ELEMENT', isAbstract='false', hasTypeId='false', final='0', block='0', particle='(("urn:iso:15118:2:2016:MsgDataTypes":RelativeTimeInterval),("urn:iso:15118:2:2016:MsgDataTypes":PMax{1-3}))', derivedBy='EXTENSION'. */
+#define iso2PMaxScheduleEntryType_PMax_ARRAY_SIZE 3
+struct iso2PMaxScheduleEntryType {
+ /* element: "urn:iso:15118:2:2016:MsgDataTypes":RelativeTimeInterval, Complex type name='urn:iso:15118:2:2016:MsgDataTypes,RelativeTimeIntervalType', base type name='anyType', content type='ELEMENT', isAbstract='false', hasTypeId='false', final='0', block='0', particle='("urn:iso:15118:2:2016:MsgDataTypes":start,"urn:iso:15118:2:2016:MsgDataTypes":duration{0-1})', derivedBy='RESTRICTION'. */
+ struct iso2RelativeTimeIntervalType RelativeTimeInterval ;
+ /* element: "urn:iso:15118:2:2016:MsgDataTypes":PMax, Complex type name='urn:iso:15118:2:2016:MsgDataTypes,PhysicalValueType', base type name='anyType', content type='ELEMENT', isAbstract='false', hasTypeId='false', final='0', block='0', particle='("urn:iso:15118:2:2016:MsgDataTypes":Exponent,"urn:iso:15118:2:2016:MsgDataTypes":Value)', derivedBy='RESTRICTION'. */
struct {
- exi_string_character_t characters[v2gCertificateUpdateReqType_Id_CHARACTERS_SIZE];
- uint16_t charactersLen;
- } Id ;
- /* element: "urn:iso:15118:2:2016:MsgBody":ContractSignatureCertChain, Complex type name='urn:iso:15118:2:2016:MsgDataTypes,CertificateChainType', base type name='anyType', content type='ELEMENT', isAbstract='false', hasTypeId='false', final='0', block='0', particle='("urn:iso:15118:2:2016:MsgDataTypes":Certificate,"urn:iso:15118:2:2016:MsgDataTypes":SubCertificates{0-1})', derivedBy='RESTRICTION'. */
- struct v2gCertificateChainType ContractSignatureCertChain ;
- /* element: "urn:iso:15118:2:2016:MsgBody":eMAID, urn:iso:15118:2:2016:MsgDataTypes,eMAIDType */
- struct {
- exi_string_character_t characters[v2gCertificateUpdateReqType_eMAID_CHARACTERS_SIZE];
- uint16_t charactersLen;
- } eMAID ;
- /* element: "urn:iso:15118:2:2016:MsgBody":ListOfRootCertificateIDs, Complex type name='urn:iso:15118:2:2016:MsgDataTypes,ListOfRootCertificateIDsType', base type name='anyType', content type='ELEMENT', isAbstract='false', hasTypeId='false', final='0', block='0', particle='("urn:iso:15118:2:2016:MsgDataTypes":RootCertificateID{1-20})', derivedBy='RESTRICTION'. */
- struct v2gListOfRootCertificateIDsType ListOfRootCertificateIDs ;
+ struct iso2PhysicalValueType array[iso2PMaxScheduleEntryType_PMax_ARRAY_SIZE];
+ uint16_t arrayLen;
+ } PMax;
};
-/* Complex type name='urn:iso:15118:2:2016:MsgDataTypes,PhysicalValueType', base type name='anyType', content type='ELEMENT', isAbstract='false', hasTypeId='false', final='0', block='0', particle='("urn:iso:15118:2:2016:MsgDataTypes":Exponent,"urn:iso:15118:2:2016:MsgDataTypes":Value)', derivedBy='RESTRICTION'. */
-struct v2gPhysicalValueType {
- /* element: "urn:iso:15118:2:2016:MsgDataTypes":Exponent, urn:iso:15118:2:2016:MsgDataTypes,exponentType */
- int8_t Exponent ;
- /* element: "urn:iso:15118:2:2016:MsgDataTypes":Value, http://www.w3.org/2001/XMLSchema,short */
- int16_t Value ;
+/* Complex type name='urn:iso:15118:2:2016:MsgBody,VehicleCheckInReqType', base type name='BodyBaseType', content type='ELEMENT', isAbstract='false', hasTypeId='false', final='0', block='0', particle='("urn:iso:15118:2:2016:MsgBody":EVCheckInStatus,"urn:iso:15118:2:2016:MsgBody":ParkingMethod{0-1})', derivedBy='EXTENSION'. */
+struct iso2VehicleCheckInReqType {
+ /* element: "urn:iso:15118:2:2016:MsgBody":EVCheckInStatus, urn:iso:15118:2:2016:MsgDataTypes,EVCheckInStatusType */
+ iso2EVCheckInStatusType EVCheckInStatus ;
+ /* element: "urn:iso:15118:2:2016:MsgBody":ParkingMethod, urn:iso:15118:2:2016:MsgDataTypes,parkingMethodType */
+ iso2parkingMethodType ParkingMethod ;
+ unsigned int ParkingMethod_isUsed:1;
+};
+
+/* Complex type name='urn:iso:15118:2:2016:MsgBody,ConnectChargingDeviceResType', base type name='V2GResponseType', content type='ELEMENT', isAbstract='false', hasTypeId='false', final='0', block='0', particle='(("urn:iso:15118:2:2016:MsgBody":ResponseCode,"urn:iso:15118:2:2016:MsgBody":EVSEStatus{0-1}),("urn:iso:15118:2:2016:MsgBody":EVSEProcessing,"urn:iso:15118:2:2016:MsgBody":EVSEElectricalChargingDeviceStatus,"urn:iso:15118:2:2016:MsgBody":EVSEMechanicalChargingDeviceStatus))', derivedBy='EXTENSION'. */
+struct iso2ConnectChargingDeviceResType {
+ /* element: "urn:iso:15118:2:2016:MsgBody":ResponseCode, urn:iso:15118:2:2016:MsgDataTypes,responseCodeType */
+ iso2responseCodeType ResponseCode ;
+ /* element: "urn:iso:15118:2:2016:MsgBody":EVSEStatus, Complex type name='urn:iso:15118:2:2016:MsgDataTypes,EVSEStatusType', base type name='anyType', content type='ELEMENT', isAbstract='false', hasTypeId='false', final='0', block='0', particle='("urn:iso:15118:2:2016:MsgDataTypes":NotificationMaxDelay,"urn:iso:15118:2:2016:MsgDataTypes":EVSENotification)', derivedBy='RESTRICTION'. */
+ struct iso2EVSEStatusType EVSEStatus ;
+ unsigned int EVSEStatus_isUsed:1;
+ /* element: "urn:iso:15118:2:2016:MsgBody":EVSEProcessing, urn:iso:15118:2:2016:MsgDataTypes,EVSEProcessingType */
+ iso2EVSEProcessingType EVSEProcessing ;
+ /* element: "urn:iso:15118:2:2016:MsgBody":EVSEElectricalChargingDeviceStatus, urn:iso:15118:2:2016:MsgDataTypes,electricalChargingDeviceStatusType */
+ iso2electricalChargingDeviceStatusType EVSEElectricalChargingDeviceStatus ;
+ /* element: "urn:iso:15118:2:2016:MsgBody":EVSEMechanicalChargingDeviceStatus, urn:iso:15118:2:2016:MsgDataTypes,mechanicalChargingDeviceStatusType */
+ iso2mechanicalChargingDeviceStatusType EVSEMechanicalChargingDeviceStatus ;
+};
+
+/* Complex type name='urn:iso:15118:2:2016:MsgBody,WeldingDetectionResType', base type name='V2GResponseType', content type='ELEMENT', isAbstract='false', hasTypeId='false', final='0', block='0', particle='(("urn:iso:15118:2:2016:MsgBody":ResponseCode,"urn:iso:15118:2:2016:MsgBody":EVSEStatus{0-1}),("urn:iso:15118:2:2016:MsgBody":EVSEPresentVoltage))', derivedBy='EXTENSION'. */
+struct iso2WeldingDetectionResType {
+ /* element: "urn:iso:15118:2:2016:MsgBody":ResponseCode, urn:iso:15118:2:2016:MsgDataTypes,responseCodeType */
+ iso2responseCodeType ResponseCode ;
+ /* element: "urn:iso:15118:2:2016:MsgBody":EVSEStatus, Complex type name='urn:iso:15118:2:2016:MsgDataTypes,EVSEStatusType', base type name='anyType', content type='ELEMENT', isAbstract='false', hasTypeId='false', final='0', block='0', particle='("urn:iso:15118:2:2016:MsgDataTypes":NotificationMaxDelay,"urn:iso:15118:2:2016:MsgDataTypes":EVSENotification)', derivedBy='RESTRICTION'. */
+ struct iso2EVSEStatusType EVSEStatus ;
+ unsigned int EVSEStatus_isUsed:1;
+ /* element: "urn:iso:15118:2:2016:MsgBody":EVSEPresentVoltage, Complex type name='urn:iso:15118:2:2016:MsgDataTypes,PhysicalValueType', base type name='anyType', content type='ELEMENT', isAbstract='false', hasTypeId='false', final='0', block='0', particle='("urn:iso:15118:2:2016:MsgDataTypes":Exponent,"urn:iso:15118:2:2016:MsgDataTypes":Value)', derivedBy='RESTRICTION'. */
+ struct iso2PhysicalValueType EVSEPresentVoltage ;
+};
+
+/* Complex type name='urn:iso:15118:2:2016:MsgBody,SessionStopResType', base type name='V2GResponseType', content type='ELEMENT', isAbstract='false', hasTypeId='false', final='0', block='0', particle='("urn:iso:15118:2:2016:MsgBody":ResponseCode,"urn:iso:15118:2:2016:MsgBody":EVSEStatus{0-1})', derivedBy='EXTENSION'. */
+struct iso2SessionStopResType {
+ /* element: "urn:iso:15118:2:2016:MsgBody":ResponseCode, urn:iso:15118:2:2016:MsgDataTypes,responseCodeType */
+ iso2responseCodeType ResponseCode ;
+ /* element: "urn:iso:15118:2:2016:MsgBody":EVSEStatus, Complex type name='urn:iso:15118:2:2016:MsgDataTypes,EVSEStatusType', base type name='anyType', content type='ELEMENT', isAbstract='false', hasTypeId='false', final='0', block='0', particle='("urn:iso:15118:2:2016:MsgDataTypes":NotificationMaxDelay,"urn:iso:15118:2:2016:MsgDataTypes":EVSENotification)', derivedBy='RESTRICTION'. */
+ struct iso2EVSEStatusType EVSEStatus ;
+ unsigned int EVSEStatus_isUsed:1;
+};
+
+/* Complex type name='urn:iso:15118:2:2016:MsgBody,VehicleCheckInResType', base type name='V2GResponseType', content type='ELEMENT', isAbstract='false', hasTypeId='false', final='0', block='0', particle='(("urn:iso:15118:2:2016:MsgBody":ResponseCode,"urn:iso:15118:2:2016:MsgBody":EVSEStatus{0-1}),("urn:iso:15118:2:2016:MsgBody":VehicleSpace,"urn:iso:15118:2:2016:MsgBody":TargetOffset{0-1}))', derivedBy='EXTENSION'. */
+struct iso2VehicleCheckInResType {
+ /* element: "urn:iso:15118:2:2016:MsgBody":ResponseCode, urn:iso:15118:2:2016:MsgDataTypes,responseCodeType */
+ iso2responseCodeType ResponseCode ;
+ /* element: "urn:iso:15118:2:2016:MsgBody":EVSEStatus, Complex type name='urn:iso:15118:2:2016:MsgDataTypes,EVSEStatusType', base type name='anyType', content type='ELEMENT', isAbstract='false', hasTypeId='false', final='0', block='0', particle='("urn:iso:15118:2:2016:MsgDataTypes":NotificationMaxDelay,"urn:iso:15118:2:2016:MsgDataTypes":EVSENotification)', derivedBy='RESTRICTION'. */
+ struct iso2EVSEStatusType EVSEStatus ;
+ unsigned int EVSEStatus_isUsed:1;
+ /* element: "urn:iso:15118:2:2016:MsgBody":VehicleSpace, http://www.w3.org/2001/XMLSchema,unsignedShort */
+ uint16_t VehicleSpace ;
+ /* element: "urn:iso:15118:2:2016:MsgBody":TargetOffset, Complex type name='urn:iso:15118:2:2016:MsgDataTypes,TargetPositionType', base type name='anyType', content type='ELEMENT', isAbstract='false', hasTypeId='false', final='0', block='0', particle='("urn:iso:15118:2:2016:MsgDataTypes":TargetOffsetX,"urn:iso:15118:2:2016:MsgDataTypes":TargetOffsetY)', derivedBy='RESTRICTION'. */
+ struct iso2TargetPositionType TargetOffset ;
+ unsigned int TargetOffset_isUsed:1;
+};
+
+/* Complex type name='urn:iso:15118:2:2016:MsgDataTypes,AC_EVBidirectionalParameterType', base type name='AC_EVChargeParameterType', content type='ELEMENT', isAbstract='false', hasTypeId='false', final='0', block='0', particle='((("urn:iso:15118:2:2016:MsgDataTypes":DepartureTime),("urn:iso:15118:2:2016:MsgDataTypes":EVMaximumChargePower,"urn:iso:15118:2:2016:MsgDataTypes":EVMaximumChargeCurrent,"urn:iso:15118:2:2016:MsgDataTypes":EVMinimumChargeCurrent,"urn:iso:15118:2:2016:MsgDataTypes":EVTargetEnergyRequest{0-1},"urn:iso:15118:2:2016:MsgDataTypes":EVMaximumEnergyRequest{0-1},"urn:iso:15118:2:2016:MsgDataTypes":EVMinimumEnergyRequest{0-1},"urn:iso:15118:2:2016:MsgDataTypes":EVMaximumVoltage)),("urn:iso:15118:2:2016:MsgDataTypes":EVMaximumDischargePower,"urn:iso:15118:2:2016:MsgDataTypes":EVMaximumDischargeCurrent,"urn:iso:15118:2:2016:MsgDataTypes":EVMinimumDischargeCurrent))', derivedBy='EXTENSION'. */
+struct iso2AC_EVBidirectionalParameterType {
+ /* element: "urn:iso:15118:2:2016:MsgDataTypes":DepartureTime, http://www.w3.org/2001/XMLSchema,unsignedInt */
+ uint32_t DepartureTime ;
+ /* element: "urn:iso:15118:2:2016:MsgDataTypes":EVMaximumChargePower, Complex type name='urn:iso:15118:2:2016:MsgDataTypes,PhysicalValueType', base type name='anyType', content type='ELEMENT', isAbstract='false', hasTypeId='false', final='0', block='0', particle='("urn:iso:15118:2:2016:MsgDataTypes":Exponent,"urn:iso:15118:2:2016:MsgDataTypes":Value)', derivedBy='RESTRICTION'. */
+ struct iso2PhysicalValueType EVMaximumChargePower ;
+ /* element: "urn:iso:15118:2:2016:MsgDataTypes":EVMaximumChargeCurrent, Complex type name='urn:iso:15118:2:2016:MsgDataTypes,PhysicalValueType', base type name='anyType', content type='ELEMENT', isAbstract='false', hasTypeId='false', final='0', block='0', particle='("urn:iso:15118:2:2016:MsgDataTypes":Exponent,"urn:iso:15118:2:2016:MsgDataTypes":Value)', derivedBy='RESTRICTION'. */
+ struct iso2PhysicalValueType EVMaximumChargeCurrent ;
+ /* element: "urn:iso:15118:2:2016:MsgDataTypes":EVMinimumChargeCurrent, Complex type name='urn:iso:15118:2:2016:MsgDataTypes,PhysicalValueType', base type name='anyType', content type='ELEMENT', isAbstract='false', hasTypeId='false', final='0', block='0', particle='("urn:iso:15118:2:2016:MsgDataTypes":Exponent,"urn:iso:15118:2:2016:MsgDataTypes":Value)', derivedBy='RESTRICTION'. */
+ struct iso2PhysicalValueType EVMinimumChargeCurrent ;
+ /* element: "urn:iso:15118:2:2016:MsgDataTypes":EVTargetEnergyRequest, Complex type name='urn:iso:15118:2:2016:MsgDataTypes,PhysicalValueType', base type name='anyType', content type='ELEMENT', isAbstract='false', hasTypeId='false', final='0', block='0', particle='("urn:iso:15118:2:2016:MsgDataTypes":Exponent,"urn:iso:15118:2:2016:MsgDataTypes":Value)', derivedBy='RESTRICTION'. */
+ struct iso2PhysicalValueType EVTargetEnergyRequest ;
+ unsigned int EVTargetEnergyRequest_isUsed:1;
+ /* element: "urn:iso:15118:2:2016:MsgDataTypes":EVMaximumEnergyRequest, Complex type name='urn:iso:15118:2:2016:MsgDataTypes,PhysicalValueType', base type name='anyType', content type='ELEMENT', isAbstract='false', hasTypeId='false', final='0', block='0', particle='("urn:iso:15118:2:2016:MsgDataTypes":Exponent,"urn:iso:15118:2:2016:MsgDataTypes":Value)', derivedBy='RESTRICTION'. */
+ struct iso2PhysicalValueType EVMaximumEnergyRequest ;
+ unsigned int EVMaximumEnergyRequest_isUsed:1;
+ /* element: "urn:iso:15118:2:2016:MsgDataTypes":EVMinimumEnergyRequest, Complex type name='urn:iso:15118:2:2016:MsgDataTypes,PhysicalValueType', base type name='anyType', content type='ELEMENT', isAbstract='false', hasTypeId='false', final='0', block='0', particle='("urn:iso:15118:2:2016:MsgDataTypes":Exponent,"urn:iso:15118:2:2016:MsgDataTypes":Value)', derivedBy='RESTRICTION'. */
+ struct iso2PhysicalValueType EVMinimumEnergyRequest ;
+ unsigned int EVMinimumEnergyRequest_isUsed:1;
+ /* element: "urn:iso:15118:2:2016:MsgDataTypes":EVMaximumVoltage, Complex type name='urn:iso:15118:2:2016:MsgDataTypes,PhysicalValueType', base type name='anyType', content type='ELEMENT', isAbstract='false', hasTypeId='false', final='0', block='0', particle='("urn:iso:15118:2:2016:MsgDataTypes":Exponent,"urn:iso:15118:2:2016:MsgDataTypes":Value)', derivedBy='RESTRICTION'. */
+ struct iso2PhysicalValueType EVMaximumVoltage ;
+ /* element: "urn:iso:15118:2:2016:MsgDataTypes":EVMaximumDischargePower, Complex type name='urn:iso:15118:2:2016:MsgDataTypes,PhysicalValueType', base type name='anyType', content type='ELEMENT', isAbstract='false', hasTypeId='false', final='0', block='0', particle='("urn:iso:15118:2:2016:MsgDataTypes":Exponent,"urn:iso:15118:2:2016:MsgDataTypes":Value)', derivedBy='RESTRICTION'. */
+ struct iso2PhysicalValueType EVMaximumDischargePower ;
+ /* element: "urn:iso:15118:2:2016:MsgDataTypes":EVMaximumDischargeCurrent, Complex type name='urn:iso:15118:2:2016:MsgDataTypes,PhysicalValueType', base type name='anyType', content type='ELEMENT', isAbstract='false', hasTypeId='false', final='0', block='0', particle='("urn:iso:15118:2:2016:MsgDataTypes":Exponent,"urn:iso:15118:2:2016:MsgDataTypes":Value)', derivedBy='RESTRICTION'. */
+ struct iso2PhysicalValueType EVMaximumDischargeCurrent ;
+ /* element: "urn:iso:15118:2:2016:MsgDataTypes":EVMinimumDischargeCurrent, Complex type name='urn:iso:15118:2:2016:MsgDataTypes,PhysicalValueType', base type name='anyType', content type='ELEMENT', isAbstract='false', hasTypeId='false', final='0', block='0', particle='("urn:iso:15118:2:2016:MsgDataTypes":Exponent,"urn:iso:15118:2:2016:MsgDataTypes":Value)', derivedBy='RESTRICTION'. */
+ struct iso2PhysicalValueType EVMinimumDischargeCurrent ;
+};
+
+/* Complex type name='urn:iso:15118:2:2016:MsgDataTypes,ConsumptionCostType', base type name='anyType', content type='ELEMENT', isAbstract='false', hasTypeId='false', final='0', block='0', particle='("urn:iso:15118:2:2016:MsgDataTypes":startValue,"urn:iso:15118:2:2016:MsgDataTypes":Cost{1-3})', derivedBy='RESTRICTION'. */
+#define iso2ConsumptionCostType_Cost_ARRAY_SIZE 3
+struct iso2ConsumptionCostType {
+ /* element: "urn:iso:15118:2:2016:MsgDataTypes":startValue, Complex type name='urn:iso:15118:2:2016:MsgDataTypes,PhysicalValueType', base type name='anyType', content type='ELEMENT', isAbstract='false', hasTypeId='false', final='0', block='0', particle='("urn:iso:15118:2:2016:MsgDataTypes":Exponent,"urn:iso:15118:2:2016:MsgDataTypes":Value)', derivedBy='RESTRICTION'. */
+ struct iso2PhysicalValueType startValue ;
+ /* element: "urn:iso:15118:2:2016:MsgDataTypes":Cost, Complex type name='urn:iso:15118:2:2016:MsgDataTypes,CostType', base type name='anyType', content type='ELEMENT', isAbstract='false', hasTypeId='false', final='0', block='0', particle='("urn:iso:15118:2:2016:MsgDataTypes":costKind,"urn:iso:15118:2:2016:MsgDataTypes":amount)', derivedBy='RESTRICTION'. */
+ struct {
+ struct iso2CostType array[iso2ConsumptionCostType_Cost_ARRAY_SIZE];
+ uint16_t arrayLen;
+ } Cost;
+};
+
+/* Complex type name='urn:iso:15118:2:2016:MsgDataTypes,PaymentOptionListType', base type name='anyType', content type='ELEMENT', isAbstract='false', hasTypeId='false', final='0', block='0', particle='("urn:iso:15118:2:2016:MsgDataTypes":PaymentOption{1-2})', derivedBy='RESTRICTION'. */
+#define iso2PaymentOptionListType_PaymentOption_ARRAY_SIZE 2
+struct iso2PaymentOptionListType {
+ /* element: "urn:iso:15118:2:2016:MsgDataTypes":PaymentOption, urn:iso:15118:2:2016:MsgDataTypes,paymentOptionType */
+ struct {
+ iso2paymentOptionType array[iso2PaymentOptionListType_PaymentOption_ARRAY_SIZE];
+ uint16_t arrayLen;
+ } PaymentOption;
+};
+
+/* Complex type name='http://www.w3.org/2000/09/xmldsig#,TransformsType', base type name='anyType', content type='ELEMENT', isAbstract='false', hasTypeId='false', final='0', block='0', particle='("http://www.w3.org/2000/09/xmldsig#":Transform{1-UNBOUNDED})', derivedBy='RESTRICTION'. */
+#define iso2TransformsType_Transform_ARRAY_SIZE 1
+struct iso2TransformsType {
+ /* element: "http://www.w3.org/2000/09/xmldsig#":Transform, Complex type name='http://www.w3.org/2000/09/xmldsig#,TransformType', base type name='anyType', content type='MIXED', isAbstract='false', hasTypeId='false', final='0', block='0', particle='((WC[##other:"http://www.w3.org/2000/09/xmldsig#"])|"http://www.w3.org/2000/09/xmldsig#":XPath){0-UNBOUNDED}', derivedBy='RESTRICTION'. */
+ struct {
+ struct iso2TransformType array[iso2TransformsType_Transform_ARRAY_SIZE];
+ uint16_t arrayLen;
+ } Transform;
};
/* Complex type name='urn:iso:15118:2:2016:MsgDataTypes,ParameterType', base type name='anyType', content type='ELEMENT', isAbstract='false', hasTypeId='false', final='0', block='0', particle='("urn:iso:15118:2:2016:MsgDataTypes":boolValue|"urn:iso:15118:2:2016:MsgDataTypes":byteValue|"urn:iso:15118:2:2016:MsgDataTypes":shortValue|"urn:iso:15118:2:2016:MsgDataTypes":intValue|"urn:iso:15118:2:2016:MsgDataTypes":physicalValue|"urn:iso:15118:2:2016:MsgDataTypes":stringValue)', derivedBy='RESTRICTION'. */
-#define v2gParameterType_Name_CHARACTERS_SIZE 50
-#define v2gParameterType_stringValue_CHARACTERS_SIZE 50
-struct v2gParameterType {
+#define iso2ParameterType_Name_CHARACTERS_SIZE 50 + EXTRA_CHAR
+#define iso2ParameterType_stringValue_CHARACTERS_SIZE 50 + EXTRA_CHAR
+struct iso2ParameterType {
/* attribute: Name {http://www.w3.org/2001/XMLSchema,string} */
struct {
- exi_string_character_t characters[v2gParameterType_Name_CHARACTERS_SIZE];
+ exi_string_character_t characters[iso2ParameterType_Name_CHARACTERS_SIZE];
uint16_t charactersLen;
} Name ;
/* element: "urn:iso:15118:2:2016:MsgDataTypes":boolValue, http://www.w3.org/2001/XMLSchema,boolean */
@@ -734,617 +1304,387 @@ struct v2gParameterType {
int32_t intValue ;
unsigned int intValue_isUsed:1;
/* element: "urn:iso:15118:2:2016:MsgDataTypes":physicalValue, Complex type name='urn:iso:15118:2:2016:MsgDataTypes,PhysicalValueType', base type name='anyType', content type='ELEMENT', isAbstract='false', hasTypeId='false', final='0', block='0', particle='("urn:iso:15118:2:2016:MsgDataTypes":Exponent,"urn:iso:15118:2:2016:MsgDataTypes":Value)', derivedBy='RESTRICTION'. */
- struct v2gPhysicalValueType physicalValue ;
+ struct iso2PhysicalValueType physicalValue ;
unsigned int physicalValue_isUsed:1;
/* element: "urn:iso:15118:2:2016:MsgDataTypes":stringValue, http://www.w3.org/2001/XMLSchema,string */
struct {
- exi_string_character_t characters[v2gParameterType_stringValue_CHARACTERS_SIZE];
+ exi_string_character_t characters[iso2ParameterType_stringValue_CHARACTERS_SIZE];
uint16_t charactersLen;
} stringValue ;
unsigned int stringValue_isUsed:1;
};
-/* Complex type name='urn:iso:15118:2:2016:MsgDataTypes,EVSEFinePositioningParametersType', base type name='anyType', content type='EMPTY', isAbstract='true', hasTypeId='false', final='0', block='0', derivedBy='RESTRICTION'. */
-struct v2gEVSEFinePositioningParametersType {
- int noContent; /* avoid warning */
+/* Complex type name='urn:iso:15118:2:2016:MsgBody,SessionStopReqType', base type name='BodyBaseType', content type='ELEMENT', isAbstract='false', hasTypeId='false', final='0', block='0', particle='("urn:iso:15118:2:2016:MsgBody":ChargingSession)', derivedBy='EXTENSION'. */
+struct iso2SessionStopReqType {
+ /* element: "urn:iso:15118:2:2016:MsgBody":ChargingSession, urn:iso:15118:2:2016:MsgDataTypes,chargingSessionType */
+ iso2chargingSessionType ChargingSession ;
};
-/* Complex type name='urn:iso:15118:2:2016:MsgDataTypes,AC_EVSEChargeParameterType', base type name='EVSEEnergyTransferParameterType', content type='ELEMENT', isAbstract='false', hasTypeId='false', final='0', block='0', particle='("urn:iso:15118:2:2016:MsgDataTypes":EVSEMaximumChargeCurrent,"urn:iso:15118:2:2016:MsgDataTypes":EVSENominalVoltage,"urn:iso:15118:2:2016:MsgDataTypes":EVSENominalFrequency)', derivedBy='EXTENSION'. */
-struct v2gAC_EVSEChargeParameterType {
+/* Complex type name='urn:iso:15118:2:2016:MsgDataTypes,SensorMeasurementsType', base type name='anyType', content type='ELEMENT', isAbstract='false', hasTypeId='false', final='0', block='0', particle='("urn:iso:15118:2:2016:MsgDataTypes":SensorID,"urn:iso:15118:2:2016:MsgDataTypes":EffectiveRadiatedPower,"urn:iso:15118:2:2016:MsgDataTypes":MeasurementDataList)', derivedBy='RESTRICTION'. */
+struct iso2SensorMeasurementsType {
+ /* element: "urn:iso:15118:2:2016:MsgDataTypes":SensorID, http://www.w3.org/2001/XMLSchema,unsignedByte */
+ uint8_t SensorID ;
+ /* element: "urn:iso:15118:2:2016:MsgDataTypes":EffectiveRadiatedPower, http://www.w3.org/2001/XMLSchema,byte */
+ int8_t EffectiveRadiatedPower ;
+ /* element: "urn:iso:15118:2:2016:MsgDataTypes":MeasurementDataList, Complex type name='urn:iso:15118:2:2016:MsgDataTypes,MeasurementDataListType', base type name='anyType', content type='ELEMENT', isAbstract='false', hasTypeId='false', final='0', block='0', particle='("urn:iso:15118:2:2016:MsgDataTypes":MeasurementData{1-255})', derivedBy='RESTRICTION'. */
+ struct iso2MeasurementDataListType MeasurementDataList ;
+};
+
+/* Complex type name='urn:iso:15118:2:2016:MsgDataTypes,DC_EVSEChargeParameterType', base type name='EVSEEnergyTransferParameterType', content type='ELEMENT', isAbstract='false', hasTypeId='false', final='0', block='0', particle='("urn:iso:15118:2:2016:MsgDataTypes":EVSEMaximumChargePower,"urn:iso:15118:2:2016:MsgDataTypes":EVSEMaximumChargeCurrent,"urn:iso:15118:2:2016:MsgDataTypes":EVSEMinimumChargeCurrent,"urn:iso:15118:2:2016:MsgDataTypes":EVSEMaximumVoltage,"urn:iso:15118:2:2016:MsgDataTypes":EVSEMinimumVoltage,"urn:iso:15118:2:2016:MsgDataTypes":EVSECurrentRegulationTolerance{0-1},"urn:iso:15118:2:2016:MsgDataTypes":EVSEPeakCurrentRipple,"urn:iso:15118:2:2016:MsgDataTypes":EVSEEnergyToBeDelivered{0-1})', derivedBy='EXTENSION'. */
+struct iso2DC_EVSEChargeParameterType {
+ /* element: "urn:iso:15118:2:2016:MsgDataTypes":EVSEMaximumChargePower, Complex type name='urn:iso:15118:2:2016:MsgDataTypes,PhysicalValueType', base type name='anyType', content type='ELEMENT', isAbstract='false', hasTypeId='false', final='0', block='0', particle='("urn:iso:15118:2:2016:MsgDataTypes":Exponent,"urn:iso:15118:2:2016:MsgDataTypes":Value)', derivedBy='RESTRICTION'. */
+ struct iso2PhysicalValueType EVSEMaximumChargePower ;
/* element: "urn:iso:15118:2:2016:MsgDataTypes":EVSEMaximumChargeCurrent, Complex type name='urn:iso:15118:2:2016:MsgDataTypes,PhysicalValueType', base type name='anyType', content type='ELEMENT', isAbstract='false', hasTypeId='false', final='0', block='0', particle='("urn:iso:15118:2:2016:MsgDataTypes":Exponent,"urn:iso:15118:2:2016:MsgDataTypes":Value)', derivedBy='RESTRICTION'. */
- struct v2gPhysicalValueType EVSEMaximumChargeCurrent ;
- /* element: "urn:iso:15118:2:2016:MsgDataTypes":EVSENominalVoltage, Complex type name='urn:iso:15118:2:2016:MsgDataTypes,PhysicalValueType', base type name='anyType', content type='ELEMENT', isAbstract='false', hasTypeId='false', final='0', block='0', particle='("urn:iso:15118:2:2016:MsgDataTypes":Exponent,"urn:iso:15118:2:2016:MsgDataTypes":Value)', derivedBy='RESTRICTION'. */
- struct v2gPhysicalValueType EVSENominalVoltage ;
- /* element: "urn:iso:15118:2:2016:MsgDataTypes":EVSENominalFrequency, Complex type name='urn:iso:15118:2:2016:MsgDataTypes,PhysicalValueType', base type name='anyType', content type='ELEMENT', isAbstract='false', hasTypeId='false', final='0', block='0', particle='("urn:iso:15118:2:2016:MsgDataTypes":Exponent,"urn:iso:15118:2:2016:MsgDataTypes":Value)', derivedBy='RESTRICTION'. */
- struct v2gPhysicalValueType EVSENominalFrequency ;
+ struct iso2PhysicalValueType EVSEMaximumChargeCurrent ;
+ /* element: "urn:iso:15118:2:2016:MsgDataTypes":EVSEMinimumChargeCurrent, Complex type name='urn:iso:15118:2:2016:MsgDataTypes,PhysicalValueType', base type name='anyType', content type='ELEMENT', isAbstract='false', hasTypeId='false', final='0', block='0', particle='("urn:iso:15118:2:2016:MsgDataTypes":Exponent,"urn:iso:15118:2:2016:MsgDataTypes":Value)', derivedBy='RESTRICTION'. */
+ struct iso2PhysicalValueType EVSEMinimumChargeCurrent ;
+ /* element: "urn:iso:15118:2:2016:MsgDataTypes":EVSEMaximumVoltage, Complex type name='urn:iso:15118:2:2016:MsgDataTypes,PhysicalValueType', base type name='anyType', content type='ELEMENT', isAbstract='false', hasTypeId='false', final='0', block='0', particle='("urn:iso:15118:2:2016:MsgDataTypes":Exponent,"urn:iso:15118:2:2016:MsgDataTypes":Value)', derivedBy='RESTRICTION'. */
+ struct iso2PhysicalValueType EVSEMaximumVoltage ;
+ /* element: "urn:iso:15118:2:2016:MsgDataTypes":EVSEMinimumVoltage, Complex type name='urn:iso:15118:2:2016:MsgDataTypes,PhysicalValueType', base type name='anyType', content type='ELEMENT', isAbstract='false', hasTypeId='false', final='0', block='0', particle='("urn:iso:15118:2:2016:MsgDataTypes":Exponent,"urn:iso:15118:2:2016:MsgDataTypes":Value)', derivedBy='RESTRICTION'. */
+ struct iso2PhysicalValueType EVSEMinimumVoltage ;
+ /* element: "urn:iso:15118:2:2016:MsgDataTypes":EVSECurrentRegulationTolerance, Complex type name='urn:iso:15118:2:2016:MsgDataTypes,PhysicalValueType', base type name='anyType', content type='ELEMENT', isAbstract='false', hasTypeId='false', final='0', block='0', particle='("urn:iso:15118:2:2016:MsgDataTypes":Exponent,"urn:iso:15118:2:2016:MsgDataTypes":Value)', derivedBy='RESTRICTION'. */
+ struct iso2PhysicalValueType EVSECurrentRegulationTolerance ;
+ unsigned int EVSECurrentRegulationTolerance_isUsed:1;
+ /* element: "urn:iso:15118:2:2016:MsgDataTypes":EVSEPeakCurrentRipple, Complex type name='urn:iso:15118:2:2016:MsgDataTypes,PhysicalValueType', base type name='anyType', content type='ELEMENT', isAbstract='false', hasTypeId='false', final='0', block='0', particle='("urn:iso:15118:2:2016:MsgDataTypes":Exponent,"urn:iso:15118:2:2016:MsgDataTypes":Value)', derivedBy='RESTRICTION'. */
+ struct iso2PhysicalValueType EVSEPeakCurrentRipple ;
+ /* element: "urn:iso:15118:2:2016:MsgDataTypes":EVSEEnergyToBeDelivered, Complex type name='urn:iso:15118:2:2016:MsgDataTypes,PhysicalValueType', base type name='anyType', content type='ELEMENT', isAbstract='false', hasTypeId='false', final='0', block='0', particle='("urn:iso:15118:2:2016:MsgDataTypes":Exponent,"urn:iso:15118:2:2016:MsgDataTypes":Value)', derivedBy='RESTRICTION'. */
+ struct iso2PhysicalValueType EVSEEnergyToBeDelivered ;
+ unsigned int EVSEEnergyToBeDelivered_isUsed:1;
};
-/* Complex type name='urn:iso:15118:2:2016:MsgBody,ServiceDiscoveryReqType', base type name='BodyBaseType', content type='ELEMENT', isAbstract='false', hasTypeId='false', final='0', block='0', particle='("urn:iso:15118:2:2016:MsgBody":SupportedServiceIDs{0-1})', derivedBy='EXTENSION'. */
-struct v2gServiceDiscoveryReqType {
- /* element: "urn:iso:15118:2:2016:MsgBody":SupportedServiceIDs, Complex type name='urn:iso:15118:2:2016:MsgDataTypes,ServiceIDListType', base type name='anyType', content type='ELEMENT', isAbstract='false', hasTypeId='false', final='0', block='0', particle='("urn:iso:15118:2:2016:MsgDataTypes":ServiceID{1-10})', derivedBy='RESTRICTION'. */
- struct v2gServiceIDListType SupportedServiceIDs ;
- unsigned int SupportedServiceIDs_isUsed:1;
-};
-
-/* Complex type name='http://www.w3.org/2000/09/xmldsig#,TransformType', base type name='anyType', content type='MIXED', isAbstract='false', hasTypeId='false', final='0', block='0', particle='((WC[##other:"http://www.w3.org/2000/09/xmldsig#"])|"http://www.w3.org/2000/09/xmldsig#":XPath){0-UNBOUNDED}', derivedBy='RESTRICTION'. */
-#define v2gTransformType_Algorithm_CHARACTERS_SIZE 65
-#define v2gTransformType_ANY_CHARACTERS_SIZE 50
-#define v2gTransformType_XPath_CHARACTERS_SIZE 50
-#define v2gTransformType_XPath_ARRAY_SIZE 1
-struct v2gTransformType {
- /* attribute: Algorithm {http://www.w3.org/2001/XMLSchema,anyURI} */
- struct {
- exi_string_character_t characters[v2gTransformType_Algorithm_CHARACTERS_SIZE];
- uint16_t charactersLen;
- } Algorithm ;
- /* element: WC[##other:"http://www.w3.org/2000/09/xmldsig#"] */
- struct {
- exi_string_character_t characters[v2gTransformType_ANY_CHARACTERS_SIZE];
- uint16_t charactersLen;
- } ANY ;
- unsigned int ANY_isUsed:1;
- /* element: "http://www.w3.org/2000/09/xmldsig#":XPath, http://www.w3.org/2001/XMLSchema,string */
- struct {
- struct {
- exi_string_character_t characters[v2gTransformType_XPath_CHARACTERS_SIZE];
- uint16_t charactersLen;
- } array[v2gTransformType_XPath_ARRAY_SIZE];
- uint16_t arrayLen;
- } XPath;
-};
-
-/* Complex type name='http://www.w3.org/2000/09/xmldsig#,ObjectType', base type name='anyType', content type='MIXED', isAbstract='false', hasTypeId='false', final='0', block='0', particle='((WC[##any])){0-UNBOUNDED}', derivedBy='RESTRICTION'. */
-#define v2gObjectType_Id_CHARACTERS_SIZE 50
-#define v2gObjectType_MimeType_CHARACTERS_SIZE 50
-#define v2gObjectType_Encoding_CHARACTERS_SIZE 50
-#define v2gObjectType_ANY_CHARACTERS_SIZE 50
-struct v2gObjectType {
+/* Complex type name='urn:iso:15118:2:2016:MsgDataTypes,CertificateChainType', base type name='anyType', content type='ELEMENT', isAbstract='false', hasTypeId='false', final='0', block='0', particle='("urn:iso:15118:2:2016:MsgDataTypes":Certificate,"urn:iso:15118:2:2016:MsgDataTypes":SubCertificates{0-1})', derivedBy='RESTRICTION'. */
+#define iso2CertificateChainType_Id_CHARACTERS_SIZE 50 + EXTRA_CHAR
+#define iso2CertificateChainType_Certificate_BYTES_SIZE 800 /* XML schema facet maxLength for urn:iso:15118:2:2016:MsgDataTypes,certificateType is 800 */
+struct iso2CertificateChainType {
/* attribute: Id {http://www.w3.org/2001/XMLSchema,ID} */
struct {
- exi_string_character_t characters[v2gObjectType_Id_CHARACTERS_SIZE];
+ exi_string_character_t characters[iso2CertificateChainType_Id_CHARACTERS_SIZE];
uint16_t charactersLen;
} Id ;
unsigned int Id_isUsed:1;
- /* attribute: MimeType {http://www.w3.org/2001/XMLSchema,string} */
+ /* element: "urn:iso:15118:2:2016:MsgDataTypes":Certificate, urn:iso:15118:2:2016:MsgDataTypes,certificateType */
struct {
- exi_string_character_t characters[v2gObjectType_MimeType_CHARACTERS_SIZE];
- uint16_t charactersLen;
- } MimeType ;
- unsigned int MimeType_isUsed:1;
- /* attribute: Encoding {http://www.w3.org/2001/XMLSchema,anyURI} */
- struct {
- exi_string_character_t characters[v2gObjectType_Encoding_CHARACTERS_SIZE];
- uint16_t charactersLen;
- } Encoding ;
- unsigned int Encoding_isUsed:1;
- /* element: WC[##any] */
- struct {
- exi_string_character_t characters[v2gObjectType_ANY_CHARACTERS_SIZE];
- uint16_t charactersLen;
- } ANY ;
- unsigned int ANY_isUsed:1;
+ uint8_t bytes[iso2CertificateChainType_Certificate_BYTES_SIZE];
+ uint16_t bytesLen;
+ } Certificate ;
+ /* element: "urn:iso:15118:2:2016:MsgDataTypes":SubCertificates, Complex type name='urn:iso:15118:2:2016:MsgDataTypes,SubCertificatesType', base type name='anyType', content type='ELEMENT', isAbstract='false', hasTypeId='false', final='0', block='0', particle='("urn:iso:15118:2:2016:MsgDataTypes":Certificate{1-4})', derivedBy='RESTRICTION'. */
+ struct iso2SubCertificatesType SubCertificates ;
+ unsigned int SubCertificates_isUsed:1;
};
-typedef enum {
- v2gvehicleSpaceType_AutoParking = 0,
- v2gvehicleSpaceType_MVGuideManual = 1,
- v2gvehicleSpaceType_Manual = 2
-} v2gvehicleSpaceType;
-
-typedef enum {
- v2goperationModeType_Ready = 0,
- v2goperationModeType_NotReady = 1
-} v2goperationModeType;
-
-typedef enum {
- v2gEVSEErrorCodeType_RESSTemperatureInhibit = 0,
- v2gEVSEErrorCodeType_ChargerConnectorLockFault = 1,
- v2gEVSEErrorCodeType_ChargingCurrentdifferential = 2,
- v2gEVSEErrorCodeType_ChargingVoltageOutOfRange = 3,
- v2gEVSEErrorCodeType_ChargingSystemIncompatibility = 4,
- v2gEVSEErrorCodeType_Reserved_A = 5,
- v2gEVSEErrorCodeType_Reserved_B = 6,
- v2gEVSEErrorCodeType_Reserved_C = 7
-} v2gEVSEErrorCodeType;
-
-/* Complex type name='urn:iso:15118:2:2016:MsgDataTypes,SensorPackageListType', base type name='anyType', content type='ELEMENT', isAbstract='false', hasTypeId='false', final='0', block='0', particle='("urn:iso:15118:2:2016:MsgDataTypes":SensorPackage{1-255})', derivedBy='RESTRICTION'. */
-#define v2gSensorPackageListType_SensorPackage_ARRAY_SIZE 5
-struct v2gSensorPackageListType {
- /* element: "urn:iso:15118:2:2016:MsgDataTypes":SensorPackage, Complex type name='urn:iso:15118:2:2016:MsgDataTypes,SensorPackageType', base type name='anyType', content type='ELEMENT', isAbstract='false', hasTypeId='false', final='0', block='0', particle='("urn:iso:15118:2:2016:MsgDataTypes":PackageIndex,"urn:iso:15118:2:2016:MsgDataTypes":SensorMeasurements{1-255})', derivedBy='RESTRICTION'. */
- struct {
- struct v2gSensorPackageType array[v2gSensorPackageListType_SensorPackage_ARRAY_SIZE];
- uint16_t arrayLen;
- } SensorPackage;
+/* Complex type name='urn:iso:15118:2:2016:MsgDataTypes,WPT_EVChargeParameterType', base type name='EVEnergyTransferParameterType', content type='ELEMENT', isAbstract='false', hasTypeId='false', final='0', block='0', particle='(("urn:iso:15118:2:2016:MsgDataTypes":DepartureTime),("urn:iso:15118:2:2016:MsgDataTypes":EVMaximumPower,"urn:iso:15118:2:2016:MsgDataTypes":EVMinimumPower,"urn:iso:15118:2:2016:MsgDataTypes":EVTargetEnergyRequest{0-1},"urn:iso:15118:2:2016:MsgDataTypes":EVMaximumEnergyRequest{0-1},"urn:iso:15118:2:2016:MsgDataTypes":EVMinimumEnergyRequest{0-1}))', derivedBy='EXTENSION'. */
+struct iso2WPT_EVChargeParameterType {
+ /* element: "urn:iso:15118:2:2016:MsgDataTypes":DepartureTime, http://www.w3.org/2001/XMLSchema,unsignedInt */
+ uint32_t DepartureTime ;
+ /* element: "urn:iso:15118:2:2016:MsgDataTypes":EVMaximumPower, Complex type name='urn:iso:15118:2:2016:MsgDataTypes,PhysicalValueType', base type name='anyType', content type='ELEMENT', isAbstract='false', hasTypeId='false', final='0', block='0', particle='("urn:iso:15118:2:2016:MsgDataTypes":Exponent,"urn:iso:15118:2:2016:MsgDataTypes":Value)', derivedBy='RESTRICTION'. */
+ struct iso2PhysicalValueType EVMaximumPower ;
+ /* element: "urn:iso:15118:2:2016:MsgDataTypes":EVMinimumPower, Complex type name='urn:iso:15118:2:2016:MsgDataTypes,PhysicalValueType', base type name='anyType', content type='ELEMENT', isAbstract='false', hasTypeId='false', final='0', block='0', particle='("urn:iso:15118:2:2016:MsgDataTypes":Exponent,"urn:iso:15118:2:2016:MsgDataTypes":Value)', derivedBy='RESTRICTION'. */
+ struct iso2PhysicalValueType EVMinimumPower ;
+ /* element: "urn:iso:15118:2:2016:MsgDataTypes":EVTargetEnergyRequest, Complex type name='urn:iso:15118:2:2016:MsgDataTypes,PhysicalValueType', base type name='anyType', content type='ELEMENT', isAbstract='false', hasTypeId='false', final='0', block='0', particle='("urn:iso:15118:2:2016:MsgDataTypes":Exponent,"urn:iso:15118:2:2016:MsgDataTypes":Value)', derivedBy='RESTRICTION'. */
+ struct iso2PhysicalValueType EVTargetEnergyRequest ;
+ unsigned int EVTargetEnergyRequest_isUsed:1;
+ /* element: "urn:iso:15118:2:2016:MsgDataTypes":EVMaximumEnergyRequest, Complex type name='urn:iso:15118:2:2016:MsgDataTypes,PhysicalValueType', base type name='anyType', content type='ELEMENT', isAbstract='false', hasTypeId='false', final='0', block='0', particle='("urn:iso:15118:2:2016:MsgDataTypes":Exponent,"urn:iso:15118:2:2016:MsgDataTypes":Value)', derivedBy='RESTRICTION'. */
+ struct iso2PhysicalValueType EVMaximumEnergyRequest ;
+ unsigned int EVMaximumEnergyRequest_isUsed:1;
+ /* element: "urn:iso:15118:2:2016:MsgDataTypes":EVMinimumEnergyRequest, Complex type name='urn:iso:15118:2:2016:MsgDataTypes,PhysicalValueType', base type name='anyType', content type='ELEMENT', isAbstract='false', hasTypeId='false', final='0', block='0', particle='("urn:iso:15118:2:2016:MsgDataTypes":Exponent,"urn:iso:15118:2:2016:MsgDataTypes":Value)', derivedBy='RESTRICTION'. */
+ struct iso2PhysicalValueType EVMinimumEnergyRequest ;
+ unsigned int EVMinimumEnergyRequest_isUsed:1;
};
-/* Complex type name='urn:iso:15118:2:2016:MsgBody,BodyBaseType', base type name='anyType', content type='EMPTY', isAbstract='true', hasTypeId='false', final='0', block='0', derivedBy='RESTRICTION'. */
-struct v2gBodyBaseType {
- int noContent; /* avoid warning */
+/* Complex type name='urn:iso:15118:2:2016:MsgBody,DisconnectChargingDeviceReqType', base type name='BodyBaseType', content type='ELEMENT', isAbstract='false', hasTypeId='false', final='0', block='0', particle='("urn:iso:15118:2:2016:MsgBody":EVElectricalChargingDeviceStatus,"urn:iso:15118:2:2016:MsgBody":EVMechanicalChargingDeviceStatus)', derivedBy='EXTENSION'. */
+struct iso2DisconnectChargingDeviceReqType {
+ /* element: "urn:iso:15118:2:2016:MsgBody":EVElectricalChargingDeviceStatus, urn:iso:15118:2:2016:MsgDataTypes,electricalChargingDeviceStatusType */
+ iso2electricalChargingDeviceStatusType EVElectricalChargingDeviceStatus ;
+ /* element: "urn:iso:15118:2:2016:MsgBody":EVMechanicalChargingDeviceStatus, urn:iso:15118:2:2016:MsgDataTypes,mechanicalChargingDeviceStatusType */
+ iso2mechanicalChargingDeviceStatusType EVMechanicalChargingDeviceStatus ;
};
-typedef enum {
- v2gEVCheckInStatusType_CheckIn = 0,
- v2gEVCheckInStatusType_Processing = 1,
- v2gEVCheckInStatusType_Completed = 2
-} v2gEVCheckInStatusType;
+/* Complex type name='urn:iso:15118:2:2016:MsgBody,MeteringReceiptResType', base type name='V2GResponseType', content type='ELEMENT', isAbstract='false', hasTypeId='false', final='0', block='0', particle='("urn:iso:15118:2:2016:MsgBody":ResponseCode,"urn:iso:15118:2:2016:MsgBody":EVSEStatus{0-1})', derivedBy='EXTENSION'. */
+struct iso2MeteringReceiptResType {
+ /* element: "urn:iso:15118:2:2016:MsgBody":ResponseCode, urn:iso:15118:2:2016:MsgDataTypes,responseCodeType */
+ iso2responseCodeType ResponseCode ;
+ /* element: "urn:iso:15118:2:2016:MsgBody":EVSEStatus, Complex type name='urn:iso:15118:2:2016:MsgDataTypes,EVSEStatusType', base type name='anyType', content type='ELEMENT', isAbstract='false', hasTypeId='false', final='0', block='0', particle='("urn:iso:15118:2:2016:MsgDataTypes":NotificationMaxDelay,"urn:iso:15118:2:2016:MsgDataTypes":EVSENotification)', derivedBy='RESTRICTION'. */
+ struct iso2EVSEStatusType EVSEStatus ;
+ unsigned int EVSEStatus_isUsed:1;
+};
-typedef enum {
- v2gpaymentOptionType_Contract = 0,
- v2gpaymentOptionType_ExternalPayment = 1
-} v2gpaymentOptionType;
-
-/* Complex type name='http://www.w3.org/2000/09/xmldsig#,KeyValueType', base type name='anyType', content type='MIXED', isAbstract='false', hasTypeId='false', final='0', block='0', particle='("http://www.w3.org/2000/09/xmldsig#":DSAKeyValue|"http://www.w3.org/2000/09/xmldsig#":RSAKeyValue|(WC[##other:"http://www.w3.org/2000/09/xmldsig#"]))', derivedBy='RESTRICTION'. */
-#define v2gKeyValueType_ANY_CHARACTERS_SIZE 50
-struct v2gKeyValueType {
- /* element: "http://www.w3.org/2000/09/xmldsig#":DSAKeyValue, Complex type name='http://www.w3.org/2000/09/xmldsig#,DSAKeyValueType', base type name='anyType', content type='ELEMENT', isAbstract='false', hasTypeId='false', final='0', block='0', particle='(("http://www.w3.org/2000/09/xmldsig#":P,"http://www.w3.org/2000/09/xmldsig#":Q){0-1},"http://www.w3.org/2000/09/xmldsig#":G{0-1},"http://www.w3.org/2000/09/xmldsig#":Y,"http://www.w3.org/2000/09/xmldsig#":J{0-1},("http://www.w3.org/2000/09/xmldsig#":Seed,"http://www.w3.org/2000/09/xmldsig#":PgenCounter){0-1})', derivedBy='RESTRICTION'. */
- struct v2gDSAKeyValueType DSAKeyValue ;
- unsigned int DSAKeyValue_isUsed:1;
- /* element: "http://www.w3.org/2000/09/xmldsig#":RSAKeyValue, Complex type name='http://www.w3.org/2000/09/xmldsig#,RSAKeyValueType', base type name='anyType', content type='ELEMENT', isAbstract='false', hasTypeId='false', final='0', block='0', particle='("http://www.w3.org/2000/09/xmldsig#":Modulus,"http://www.w3.org/2000/09/xmldsig#":Exponent)', derivedBy='RESTRICTION'. */
- struct v2gRSAKeyValueType RSAKeyValue ;
- unsigned int RSAKeyValue_isUsed:1;
- /* element: WC[##other:"http://www.w3.org/2000/09/xmldsig#"] */
+/* Complex type name='urn:iso:15118:2:2016:MsgBody,SessionSetupResType', base type name='V2GResponseType', content type='ELEMENT', isAbstract='false', hasTypeId='false', final='0', block='0', particle='(("urn:iso:15118:2:2016:MsgBody":ResponseCode,"urn:iso:15118:2:2016:MsgBody":EVSEStatus{0-1}),("urn:iso:15118:2:2016:MsgBody":EVSEID,"urn:iso:15118:2:2016:MsgBody":EVSETimeStamp{0-1}))', derivedBy='EXTENSION'. */
+#define iso2SessionSetupResType_EVSEID_CHARACTERS_SIZE 37 + EXTRA_CHAR /* XML schema facet maxLength for urn:iso:15118:2:2016:MsgDataTypes,evseIDType is 37 */
+struct iso2SessionSetupResType {
+ /* element: "urn:iso:15118:2:2016:MsgBody":ResponseCode, urn:iso:15118:2:2016:MsgDataTypes,responseCodeType */
+ iso2responseCodeType ResponseCode ;
+ /* element: "urn:iso:15118:2:2016:MsgBody":EVSEStatus, Complex type name='urn:iso:15118:2:2016:MsgDataTypes,EVSEStatusType', base type name='anyType', content type='ELEMENT', isAbstract='false', hasTypeId='false', final='0', block='0', particle='("urn:iso:15118:2:2016:MsgDataTypes":NotificationMaxDelay,"urn:iso:15118:2:2016:MsgDataTypes":EVSENotification)', derivedBy='RESTRICTION'. */
+ struct iso2EVSEStatusType EVSEStatus ;
+ unsigned int EVSEStatus_isUsed:1;
+ /* element: "urn:iso:15118:2:2016:MsgBody":EVSEID, urn:iso:15118:2:2016:MsgDataTypes,evseIDType */
struct {
- exi_string_character_t characters[v2gKeyValueType_ANY_CHARACTERS_SIZE];
+ exi_string_character_t characters[iso2SessionSetupResType_EVSEID_CHARACTERS_SIZE];
uint16_t charactersLen;
- } ANY ;
- unsigned int ANY_isUsed:1;
+ } EVSEID ;
+ /* element: "urn:iso:15118:2:2016:MsgBody":EVSETimeStamp, http://www.w3.org/2001/XMLSchema,long */
+ int64_t EVSETimeStamp ;
+ unsigned int EVSETimeStamp_isUsed:1;
};
-/* Complex type name='urn:iso:15118:2:2016:MsgDataTypes,EMAIDType', base type name='eMAIDType', content type='SIMPLE', isAbstract='false', hasTypeId='false', final='0', block='0', derivedBy='EXTENSION'. */
-#define v2gEMAIDType_Id_CHARACTERS_SIZE 50
-#define v2gEMAIDType_CONTENT_CHARACTERS_SIZE 50
-struct v2gEMAIDType {
+/* Complex type name='http://www.w3.org/2000/09/xmldsig#,ReferenceType', base type name='anyType', content type='ELEMENT', isAbstract='false', hasTypeId='false', final='0', block='0', particle='("http://www.w3.org/2000/09/xmldsig#":Transforms{0-1},"http://www.w3.org/2000/09/xmldsig#":DigestMethod,"http://www.w3.org/2000/09/xmldsig#":DigestValue)', derivedBy='RESTRICTION'. */
+#define iso2ReferenceType_Id_CHARACTERS_SIZE 50 + EXTRA_CHAR
+#define iso2ReferenceType_URI_CHARACTERS_SIZE 50 + EXTRA_CHAR
+#define iso2ReferenceType_Type_CHARACTERS_SIZE 50 + EXTRA_CHAR
+#define iso2ReferenceType_DigestValue_BYTES_SIZE 350
+struct iso2ReferenceType {
/* attribute: Id {http://www.w3.org/2001/XMLSchema,ID} */
struct {
- exi_string_character_t characters[v2gEMAIDType_Id_CHARACTERS_SIZE];
+ exi_string_character_t characters[iso2ReferenceType_Id_CHARACTERS_SIZE];
uint16_t charactersLen;
} Id ;
- /* simple content: urn:iso:15118:2:2016:MsgDataTypes,eMAIDType */
- struct {
- exi_string_character_t characters[v2gEMAIDType_CONTENT_CHARACTERS_SIZE];
- uint16_t charactersLen;
- } CONTENT ;
-};
-
-/* Complex type name='http://www.w3.org/2000/09/xmldsig#,TransformsType', base type name='anyType', content type='ELEMENT', isAbstract='false', hasTypeId='false', final='0', block='0', particle='("http://www.w3.org/2000/09/xmldsig#":Transform{1-UNBOUNDED})', derivedBy='RESTRICTION'. */
-#define v2gTransformsType_Transform_ARRAY_SIZE 1
-struct v2gTransformsType {
- /* element: "http://www.w3.org/2000/09/xmldsig#":Transform, Complex type name='http://www.w3.org/2000/09/xmldsig#,TransformType', base type name='anyType', content type='MIXED', isAbstract='false', hasTypeId='false', final='0', block='0', particle='((WC[##other:"http://www.w3.org/2000/09/xmldsig#"])|"http://www.w3.org/2000/09/xmldsig#":XPath){0-UNBOUNDED}', derivedBy='RESTRICTION'. */
- struct {
- struct v2gTransformType array[v2gTransformsType_Transform_ARRAY_SIZE];
- uint16_t arrayLen;
- } Transform;
-};
-
-/* Complex type name='http://www.w3.org/2000/09/xmldsig#,RetrievalMethodType', base type name='anyType', content type='ELEMENT', isAbstract='false', hasTypeId='false', final='0', block='0', particle='("http://www.w3.org/2000/09/xmldsig#":Transforms{0-1})', derivedBy='RESTRICTION'. */
-#define v2gRetrievalMethodType_URI_CHARACTERS_SIZE 50
-#define v2gRetrievalMethodType_Type_CHARACTERS_SIZE 50
-struct v2gRetrievalMethodType {
+ unsigned int Id_isUsed:1;
/* attribute: URI {http://www.w3.org/2001/XMLSchema,anyURI} */
struct {
- exi_string_character_t characters[v2gRetrievalMethodType_URI_CHARACTERS_SIZE];
+ exi_string_character_t characters[iso2ReferenceType_URI_CHARACTERS_SIZE];
uint16_t charactersLen;
} URI ;
unsigned int URI_isUsed:1;
/* attribute: Type {http://www.w3.org/2001/XMLSchema,anyURI} */
struct {
- exi_string_character_t characters[v2gRetrievalMethodType_Type_CHARACTERS_SIZE];
+ exi_string_character_t characters[iso2ReferenceType_Type_CHARACTERS_SIZE];
uint16_t charactersLen;
} Type ;
unsigned int Type_isUsed:1;
/* element: "http://www.w3.org/2000/09/xmldsig#":Transforms, Complex type name='http://www.w3.org/2000/09/xmldsig#,TransformsType', base type name='anyType', content type='ELEMENT', isAbstract='false', hasTypeId='false', final='0', block='0', particle='("http://www.w3.org/2000/09/xmldsig#":Transform{1-UNBOUNDED})', derivedBy='RESTRICTION'. */
- struct v2gTransformsType Transforms ;
+ struct iso2TransformsType Transforms ;
unsigned int Transforms_isUsed:1;
-};
-
-/* Complex type name='urn:iso:15118:2:2016:MsgDataTypes,ServiceListType', base type name='anyType', content type='ELEMENT', isAbstract='false', hasTypeId='false', final='0', block='0', particle='("urn:iso:15118:2:2016:MsgDataTypes":Service{1-8})', derivedBy='RESTRICTION'. */
-#define v2gServiceListType_Service_ARRAY_SIZE 5
-struct v2gServiceListType {
- /* element: "urn:iso:15118:2:2016:MsgDataTypes":Service, Complex type name='urn:iso:15118:2:2016:MsgDataTypes,ServiceType', base type name='anyType', content type='ELEMENT', isAbstract='false', hasTypeId='false', final='0', block='0', particle='("urn:iso:15118:2:2016:MsgDataTypes":ServiceID,"urn:iso:15118:2:2016:MsgDataTypes":FreeService)', derivedBy='RESTRICTION'. */
+ /* element: "http://www.w3.org/2000/09/xmldsig#":DigestMethod, Complex type name='http://www.w3.org/2000/09/xmldsig#,DigestMethodType', base type name='anyType', content type='MIXED', isAbstract='false', hasTypeId='false', final='0', block='0', particle='((WC[##other:"http://www.w3.org/2000/09/xmldsig#"]){0-UNBOUNDED})', derivedBy='RESTRICTION'. */
+ struct iso2DigestMethodType DigestMethod ;
+ /* element: "http://www.w3.org/2000/09/xmldsig#":DigestValue, http://www.w3.org/2000/09/xmldsig#,DigestValueType */
struct {
- struct v2gServiceType array[v2gServiceListType_Service_ARRAY_SIZE];
- uint16_t arrayLen;
- } Service;
-};
-
-/* Complex type name='urn:iso:15118:2:2016:MsgDataTypes,DC_EVBidirectionalParameterType', base type name='DC_EVChargeParameterType', content type='ELEMENT', isAbstract='false', hasTypeId='false', final='0', block='0', particle='((("urn:iso:15118:2:2016:MsgDataTypes":DepartureTime),("urn:iso:15118:2:2016:MsgDataTypes":EVMaximumChargePower{0-1},"urn:iso:15118:2:2016:MsgDataTypes":EVMinimumChargePower{0-1},"urn:iso:15118:2:2016:MsgDataTypes":EVMaximumChargeCurrent,"urn:iso:15118:2:2016:MsgDataTypes":EVMinimumChargeCurrent,"urn:iso:15118:2:2016:MsgDataTypes":EVMaximumVoltage,"urn:iso:15118:2:2016:MsgDataTypes":EVTargetEnergyRequest{0-1},"urn:iso:15118:2:2016:MsgDataTypes":EVMaximumEnergyRequest{0-1},"urn:iso:15118:2:2016:MsgDataTypes":EVMinimumEnergyRequest{0-1},"urn:iso:15118:2:2016:MsgDataTypes":CurrentSOC{0-1},"urn:iso:15118:2:2016:MsgDataTypes":TargetSOC{0-1},"urn:iso:15118:2:2016:MsgDataTypes":BulkSOC{0-1})),("urn:iso:15118:2:2016:MsgDataTypes":EVMaximumDischargePower{0-1},"urn:iso:15118:2:2016:MsgDataTypes":EVMinimumDischargePower{0-1},"urn:iso:15118:2:2016:MsgDataTypes":EVMaximumDischargeCurrent,"urn:iso:15118:2:2016:MsgDataTypes":EVMinimumDischargeCurrent,"urn:iso:15118:2:2016:MsgDataTypes":EVMinimumVoltage,"urn:iso:15118:2:2016:MsgDataTypes":MinimumSOC{0-1}))', derivedBy='EXTENSION'. */
-struct v2gDC_EVBidirectionalParameterType {
- /* element: "urn:iso:15118:2:2016:MsgDataTypes":DepartureTime, http://www.w3.org/2001/XMLSchema,unsignedInt */
- uint32_t DepartureTime ;
- /* element: "urn:iso:15118:2:2016:MsgDataTypes":EVMaximumChargePower, Complex type name='urn:iso:15118:2:2016:MsgDataTypes,PhysicalValueType', base type name='anyType', content type='ELEMENT', isAbstract='false', hasTypeId='false', final='0', block='0', particle='("urn:iso:15118:2:2016:MsgDataTypes":Exponent,"urn:iso:15118:2:2016:MsgDataTypes":Value)', derivedBy='RESTRICTION'. */
- struct v2gPhysicalValueType EVMaximumChargePower ;
- unsigned int EVMaximumChargePower_isUsed:1;
- /* element: "urn:iso:15118:2:2016:MsgDataTypes":EVMinimumChargePower, Complex type name='urn:iso:15118:2:2016:MsgDataTypes,PhysicalValueType', base type name='anyType', content type='ELEMENT', isAbstract='false', hasTypeId='false', final='0', block='0', particle='("urn:iso:15118:2:2016:MsgDataTypes":Exponent,"urn:iso:15118:2:2016:MsgDataTypes":Value)', derivedBy='RESTRICTION'. */
- struct v2gPhysicalValueType EVMinimumChargePower ;
- unsigned int EVMinimumChargePower_isUsed:1;
- /* element: "urn:iso:15118:2:2016:MsgDataTypes":EVMaximumChargeCurrent, Complex type name='urn:iso:15118:2:2016:MsgDataTypes,PhysicalValueType', base type name='anyType', content type='ELEMENT', isAbstract='false', hasTypeId='false', final='0', block='0', particle='("urn:iso:15118:2:2016:MsgDataTypes":Exponent,"urn:iso:15118:2:2016:MsgDataTypes":Value)', derivedBy='RESTRICTION'. */
- struct v2gPhysicalValueType EVMaximumChargeCurrent ;
- /* element: "urn:iso:15118:2:2016:MsgDataTypes":EVMinimumChargeCurrent, Complex type name='urn:iso:15118:2:2016:MsgDataTypes,PhysicalValueType', base type name='anyType', content type='ELEMENT', isAbstract='false', hasTypeId='false', final='0', block='0', particle='("urn:iso:15118:2:2016:MsgDataTypes":Exponent,"urn:iso:15118:2:2016:MsgDataTypes":Value)', derivedBy='RESTRICTION'. */
- struct v2gPhysicalValueType EVMinimumChargeCurrent ;
- /* element: "urn:iso:15118:2:2016:MsgDataTypes":EVMaximumVoltage, Complex type name='urn:iso:15118:2:2016:MsgDataTypes,PhysicalValueType', base type name='anyType', content type='ELEMENT', isAbstract='false', hasTypeId='false', final='0', block='0', particle='("urn:iso:15118:2:2016:MsgDataTypes":Exponent,"urn:iso:15118:2:2016:MsgDataTypes":Value)', derivedBy='RESTRICTION'. */
- struct v2gPhysicalValueType EVMaximumVoltage ;
- /* element: "urn:iso:15118:2:2016:MsgDataTypes":EVTargetEnergyRequest, Complex type name='urn:iso:15118:2:2016:MsgDataTypes,PhysicalValueType', base type name='anyType', content type='ELEMENT', isAbstract='false', hasTypeId='false', final='0', block='0', particle='("urn:iso:15118:2:2016:MsgDataTypes":Exponent,"urn:iso:15118:2:2016:MsgDataTypes":Value)', derivedBy='RESTRICTION'. */
- struct v2gPhysicalValueType EVTargetEnergyRequest ;
- unsigned int EVTargetEnergyRequest_isUsed:1;
- /* element: "urn:iso:15118:2:2016:MsgDataTypes":EVMaximumEnergyRequest, Complex type name='urn:iso:15118:2:2016:MsgDataTypes,PhysicalValueType', base type name='anyType', content type='ELEMENT', isAbstract='false', hasTypeId='false', final='0', block='0', particle='("urn:iso:15118:2:2016:MsgDataTypes":Exponent,"urn:iso:15118:2:2016:MsgDataTypes":Value)', derivedBy='RESTRICTION'. */
- struct v2gPhysicalValueType EVMaximumEnergyRequest ;
- unsigned int EVMaximumEnergyRequest_isUsed:1;
- /* element: "urn:iso:15118:2:2016:MsgDataTypes":EVMinimumEnergyRequest, Complex type name='urn:iso:15118:2:2016:MsgDataTypes,PhysicalValueType', base type name='anyType', content type='ELEMENT', isAbstract='false', hasTypeId='false', final='0', block='0', particle='("urn:iso:15118:2:2016:MsgDataTypes":Exponent,"urn:iso:15118:2:2016:MsgDataTypes":Value)', derivedBy='RESTRICTION'. */
- struct v2gPhysicalValueType EVMinimumEnergyRequest ;
- unsigned int EVMinimumEnergyRequest_isUsed:1;
- /* element: "urn:iso:15118:2:2016:MsgDataTypes":CurrentSOC, urn:iso:15118:2:2016:MsgDataTypes,percentValueType */
- int8_t CurrentSOC ;
- unsigned int CurrentSOC_isUsed:1;
- /* element: "urn:iso:15118:2:2016:MsgDataTypes":TargetSOC, urn:iso:15118:2:2016:MsgDataTypes,percentValueType */
- int8_t TargetSOC ;
- unsigned int TargetSOC_isUsed:1;
- /* element: "urn:iso:15118:2:2016:MsgDataTypes":BulkSOC, urn:iso:15118:2:2016:MsgDataTypes,percentValueType */
- int8_t BulkSOC ;
- unsigned int BulkSOC_isUsed:1;
- /* element: "urn:iso:15118:2:2016:MsgDataTypes":EVMaximumDischargePower, Complex type name='urn:iso:15118:2:2016:MsgDataTypes,PhysicalValueType', base type name='anyType', content type='ELEMENT', isAbstract='false', hasTypeId='false', final='0', block='0', particle='("urn:iso:15118:2:2016:MsgDataTypes":Exponent,"urn:iso:15118:2:2016:MsgDataTypes":Value)', derivedBy='RESTRICTION'. */
- struct v2gPhysicalValueType EVMaximumDischargePower ;
- unsigned int EVMaximumDischargePower_isUsed:1;
- /* element: "urn:iso:15118:2:2016:MsgDataTypes":EVMinimumDischargePower, Complex type name='urn:iso:15118:2:2016:MsgDataTypes,PhysicalValueType', base type name='anyType', content type='ELEMENT', isAbstract='false', hasTypeId='false', final='0', block='0', particle='("urn:iso:15118:2:2016:MsgDataTypes":Exponent,"urn:iso:15118:2:2016:MsgDataTypes":Value)', derivedBy='RESTRICTION'. */
- struct v2gPhysicalValueType EVMinimumDischargePower ;
- unsigned int EVMinimumDischargePower_isUsed:1;
- /* element: "urn:iso:15118:2:2016:MsgDataTypes":EVMaximumDischargeCurrent, Complex type name='urn:iso:15118:2:2016:MsgDataTypes,PhysicalValueType', base type name='anyType', content type='ELEMENT', isAbstract='false', hasTypeId='false', final='0', block='0', particle='("urn:iso:15118:2:2016:MsgDataTypes":Exponent,"urn:iso:15118:2:2016:MsgDataTypes":Value)', derivedBy='RESTRICTION'. */
- struct v2gPhysicalValueType EVMaximumDischargeCurrent ;
- /* element: "urn:iso:15118:2:2016:MsgDataTypes":EVMinimumDischargeCurrent, Complex type name='urn:iso:15118:2:2016:MsgDataTypes,PhysicalValueType', base type name='anyType', content type='ELEMENT', isAbstract='false', hasTypeId='false', final='0', block='0', particle='("urn:iso:15118:2:2016:MsgDataTypes":Exponent,"urn:iso:15118:2:2016:MsgDataTypes":Value)', derivedBy='RESTRICTION'. */
- struct v2gPhysicalValueType EVMinimumDischargeCurrent ;
- /* element: "urn:iso:15118:2:2016:MsgDataTypes":EVMinimumVoltage, Complex type name='urn:iso:15118:2:2016:MsgDataTypes,PhysicalValueType', base type name='anyType', content type='ELEMENT', isAbstract='false', hasTypeId='false', final='0', block='0', particle='("urn:iso:15118:2:2016:MsgDataTypes":Exponent,"urn:iso:15118:2:2016:MsgDataTypes":Value)', derivedBy='RESTRICTION'. */
- struct v2gPhysicalValueType EVMinimumVoltage ;
- /* element: "urn:iso:15118:2:2016:MsgDataTypes":MinimumSOC, urn:iso:15118:2:2016:MsgDataTypes,percentValueType */
- int8_t MinimumSOC ;
- unsigned int MinimumSOC_isUsed:1;
-};
-
-/* Complex type name='urn:iso:15118:2:2016:MsgDataTypes,SelectedServiceListType', base type name='anyType', content type='ELEMENT', isAbstract='false', hasTypeId='false', final='0', block='0', particle='("urn:iso:15118:2:2016:MsgDataTypes":SelectedService{1-16})', derivedBy='RESTRICTION'. */
-#define v2gSelectedServiceListType_SelectedService_ARRAY_SIZE 5
-struct v2gSelectedServiceListType {
- /* element: "urn:iso:15118:2:2016:MsgDataTypes":SelectedService, Complex type name='urn:iso:15118:2:2016:MsgDataTypes,SelectedServiceType', base type name='anyType', content type='ELEMENT', isAbstract='false', hasTypeId='false', final='0', block='0', particle='("urn:iso:15118:2:2016:MsgDataTypes":ServiceID,"urn:iso:15118:2:2016:MsgDataTypes":ParameterSetID)', derivedBy='RESTRICTION'. */
- struct {
- struct v2gSelectedServiceType array[v2gSelectedServiceListType_SelectedService_ARRAY_SIZE];
- uint16_t arrayLen;
- } SelectedService;
-};
-
-typedef enum {
- v2gelectricalChargingDeviceStatusType_Connected = 0,
- v2gelectricalChargingDeviceStatusType_Disconnected = 1
-} v2gelectricalChargingDeviceStatusType;
-
-/* Complex type name='urn:iso:15118:2:2016:MsgDataTypes,RelativeTimeIntervalType', base type name='anyType', content type='ELEMENT', isAbstract='false', hasTypeId='false', final='0', block='0', particle='("urn:iso:15118:2:2016:MsgDataTypes":start,"urn:iso:15118:2:2016:MsgDataTypes":duration{0-1})', derivedBy='RESTRICTION'. */
-struct v2gRelativeTimeIntervalType {
- /* element: "urn:iso:15118:2:2016:MsgDataTypes":start, urn:iso:15118:2:2016:MsgDataTypes,#AnonType_startRelativeTimeIntervalType */
- uint32_t start ;
- /* element: "urn:iso:15118:2:2016:MsgDataTypes":duration, urn:iso:15118:2:2016:MsgDataTypes,#AnonType_durationRelativeTimeIntervalType */
- uint32_t duration ;
- unsigned int duration_isUsed:1;
-};
-
-/* Complex type name='urn:iso:15118:2:2016:MsgDataTypes,ContractSignatureEncryptedPrivateKeyType', base type name='encryptedPrivateKeyType', content type='SIMPLE', isAbstract='false', hasTypeId='false', final='0', block='0', derivedBy='EXTENSION'. */
-#define v2gContractSignatureEncryptedPrivateKeyType_Id_CHARACTERS_SIZE 50
-#define v2gContractSignatureEncryptedPrivateKeyType_CONTENT_BYTES_SIZE 350
-struct v2gContractSignatureEncryptedPrivateKeyType {
- /* attribute: Id {http://www.w3.org/2001/XMLSchema,ID} */
- struct {
- exi_string_character_t characters[v2gContractSignatureEncryptedPrivateKeyType_Id_CHARACTERS_SIZE];
- uint16_t charactersLen;
- } Id ;
- /* simple content: urn:iso:15118:2:2016:MsgDataTypes,encryptedPrivateKeyType */
- struct {
- uint8_t bytes[v2gContractSignatureEncryptedPrivateKeyType_CONTENT_BYTES_SIZE];
+ uint8_t bytes[iso2ReferenceType_DigestValue_BYTES_SIZE];
uint16_t bytesLen;
- } CONTENT ;
+ } DigestValue ;
};
-typedef enum {
- v2gEVSEProcessingType_Finished = 0,
- v2gEVSEProcessingType_Ongoing = 1,
- v2gEVSEProcessingType_Ongoing_WaitingForCustomerInteraction = 2
-} v2gEVSEProcessingType;
-
-/* Complex type name='urn:iso:15118:2:2016:MsgBody,PaymentDetailsReqType', base type name='BodyBaseType', content type='ELEMENT', isAbstract='false', hasTypeId='false', final='0', block='0', particle='("urn:iso:15118:2:2016:MsgBody":eMAID,"urn:iso:15118:2:2016:MsgBody":ContractSignatureCertChain)', derivedBy='EXTENSION'. */
-#define v2gPaymentDetailsReqType_eMAID_CHARACTERS_SIZE 15 /* XML schema facet maxLength for urn:iso:15118:2:2016:MsgDataTypes,eMAIDType is 15 */
-struct v2gPaymentDetailsReqType {
- /* element: "urn:iso:15118:2:2016:MsgBody":eMAID, urn:iso:15118:2:2016:MsgDataTypes,eMAIDType */
+/* Complex type name='urn:iso:15118:2:2016:MsgDataTypes,SensorListType', base type name='anyType', content type='ELEMENT', isAbstract='false', hasTypeId='false', final='0', block='0', particle='("urn:iso:15118:2:2016:MsgDataTypes":Sensor{1-255})', derivedBy='RESTRICTION'. */
+#define iso2SensorListType_Sensor_ARRAY_SIZE 5
+struct iso2SensorListType {
+ /* element: "urn:iso:15118:2:2016:MsgDataTypes":Sensor, Complex type name='urn:iso:15118:2:2016:MsgDataTypes,SensorType', base type name='anyType', content type='ELEMENT', isAbstract='false', hasTypeId='false', final='0', block='0', particle='("urn:iso:15118:2:2016:MsgDataTypes":SensorID,"urn:iso:15118:2:2016:MsgDataTypes":SensorPosition,"urn:iso:15118:2:2016:MsgDataTypes":SensorOrientation)', derivedBy='RESTRICTION'. */
struct {
- exi_string_character_t characters[v2gPaymentDetailsReqType_eMAID_CHARACTERS_SIZE];
- uint16_t charactersLen;
- } eMAID ;
- /* element: "urn:iso:15118:2:2016:MsgBody":ContractSignatureCertChain, Complex type name='urn:iso:15118:2:2016:MsgDataTypes,CertificateChainType', base type name='anyType', content type='ELEMENT', isAbstract='false', hasTypeId='false', final='0', block='0', particle='("urn:iso:15118:2:2016:MsgDataTypes":Certificate,"urn:iso:15118:2:2016:MsgDataTypes":SubCertificates{0-1})', derivedBy='RESTRICTION'. */
- struct v2gCertificateChainType ContractSignatureCertChain ;
-};
-
-/* Complex type name='urn:iso:15118:2:2016:MsgDataTypes,MagneticVectorSetupType', base type name='anyType', content type='ELEMENT', isAbstract='false', hasTypeId='false', final='0', block='0', particle='("urn:iso:15118:2:2016:MsgDataTypes":GAID,"urn:iso:15118:2:2016:MsgDataTypes":FrequencyChannel)', derivedBy='RESTRICTION'. */
-#define v2gMagneticVectorSetupType_GAID_CHARACTERS_SIZE 50
-struct v2gMagneticVectorSetupType {
- /* element: "urn:iso:15118:2:2016:MsgDataTypes":GAID, http://www.w3.org/2001/XMLSchema,ID */
- struct {
- exi_string_character_t characters[v2gMagneticVectorSetupType_GAID_CHARACTERS_SIZE];
- uint16_t charactersLen;
- } GAID ;
- /* element: "urn:iso:15118:2:2016:MsgDataTypes":FrequencyChannel, http://www.w3.org/2001/XMLSchema,unsignedInt */
- uint32_t FrequencyChannel ;
-};
-
-/* Complex type name='urn:iso:15118:2:2016:MsgDataTypes,DC_EVChargeParameterType', base type name='EVEnergyTransferParameterType', content type='ELEMENT', isAbstract='false', hasTypeId='false', final='0', block='0', particle='(("urn:iso:15118:2:2016:MsgDataTypes":DepartureTime),("urn:iso:15118:2:2016:MsgDataTypes":EVMaximumChargePower{0-1},"urn:iso:15118:2:2016:MsgDataTypes":EVMinimumChargePower{0-1},"urn:iso:15118:2:2016:MsgDataTypes":EVMaximumChargeCurrent,"urn:iso:15118:2:2016:MsgDataTypes":EVMinimumChargeCurrent,"urn:iso:15118:2:2016:MsgDataTypes":EVMaximumVoltage,"urn:iso:15118:2:2016:MsgDataTypes":EVTargetEnergyRequest{0-1},"urn:iso:15118:2:2016:MsgDataTypes":EVMaximumEnergyRequest{0-1},"urn:iso:15118:2:2016:MsgDataTypes":EVMinimumEnergyRequest{0-1},"urn:iso:15118:2:2016:MsgDataTypes":CurrentSOC{0-1},"urn:iso:15118:2:2016:MsgDataTypes":TargetSOC{0-1},"urn:iso:15118:2:2016:MsgDataTypes":BulkSOC{0-1}))', derivedBy='EXTENSION'. */
-struct v2gDC_EVChargeParameterType {
- /* element: "urn:iso:15118:2:2016:MsgDataTypes":DepartureTime, http://www.w3.org/2001/XMLSchema,unsignedInt */
- uint32_t DepartureTime ;
- /* element: "urn:iso:15118:2:2016:MsgDataTypes":EVMaximumChargePower, Complex type name='urn:iso:15118:2:2016:MsgDataTypes,PhysicalValueType', base type name='anyType', content type='ELEMENT', isAbstract='false', hasTypeId='false', final='0', block='0', particle='("urn:iso:15118:2:2016:MsgDataTypes":Exponent,"urn:iso:15118:2:2016:MsgDataTypes":Value)', derivedBy='RESTRICTION'. */
- struct v2gPhysicalValueType EVMaximumChargePower ;
- unsigned int EVMaximumChargePower_isUsed:1;
- /* element: "urn:iso:15118:2:2016:MsgDataTypes":EVMinimumChargePower, Complex type name='urn:iso:15118:2:2016:MsgDataTypes,PhysicalValueType', base type name='anyType', content type='ELEMENT', isAbstract='false', hasTypeId='false', final='0', block='0', particle='("urn:iso:15118:2:2016:MsgDataTypes":Exponent,"urn:iso:15118:2:2016:MsgDataTypes":Value)', derivedBy='RESTRICTION'. */
- struct v2gPhysicalValueType EVMinimumChargePower ;
- unsigned int EVMinimumChargePower_isUsed:1;
- /* element: "urn:iso:15118:2:2016:MsgDataTypes":EVMaximumChargeCurrent, Complex type name='urn:iso:15118:2:2016:MsgDataTypes,PhysicalValueType', base type name='anyType', content type='ELEMENT', isAbstract='false', hasTypeId='false', final='0', block='0', particle='("urn:iso:15118:2:2016:MsgDataTypes":Exponent,"urn:iso:15118:2:2016:MsgDataTypes":Value)', derivedBy='RESTRICTION'. */
- struct v2gPhysicalValueType EVMaximumChargeCurrent ;
- /* element: "urn:iso:15118:2:2016:MsgDataTypes":EVMinimumChargeCurrent, Complex type name='urn:iso:15118:2:2016:MsgDataTypes,PhysicalValueType', base type name='anyType', content type='ELEMENT', isAbstract='false', hasTypeId='false', final='0', block='0', particle='("urn:iso:15118:2:2016:MsgDataTypes":Exponent,"urn:iso:15118:2:2016:MsgDataTypes":Value)', derivedBy='RESTRICTION'. */
- struct v2gPhysicalValueType EVMinimumChargeCurrent ;
- /* element: "urn:iso:15118:2:2016:MsgDataTypes":EVMaximumVoltage, Complex type name='urn:iso:15118:2:2016:MsgDataTypes,PhysicalValueType', base type name='anyType', content type='ELEMENT', isAbstract='false', hasTypeId='false', final='0', block='0', particle='("urn:iso:15118:2:2016:MsgDataTypes":Exponent,"urn:iso:15118:2:2016:MsgDataTypes":Value)', derivedBy='RESTRICTION'. */
- struct v2gPhysicalValueType EVMaximumVoltage ;
- /* element: "urn:iso:15118:2:2016:MsgDataTypes":EVTargetEnergyRequest, Complex type name='urn:iso:15118:2:2016:MsgDataTypes,PhysicalValueType', base type name='anyType', content type='ELEMENT', isAbstract='false', hasTypeId='false', final='0', block='0', particle='("urn:iso:15118:2:2016:MsgDataTypes":Exponent,"urn:iso:15118:2:2016:MsgDataTypes":Value)', derivedBy='RESTRICTION'. */
- struct v2gPhysicalValueType EVTargetEnergyRequest ;
- unsigned int EVTargetEnergyRequest_isUsed:1;
- /* element: "urn:iso:15118:2:2016:MsgDataTypes":EVMaximumEnergyRequest, Complex type name='urn:iso:15118:2:2016:MsgDataTypes,PhysicalValueType', base type name='anyType', content type='ELEMENT', isAbstract='false', hasTypeId='false', final='0', block='0', particle='("urn:iso:15118:2:2016:MsgDataTypes":Exponent,"urn:iso:15118:2:2016:MsgDataTypes":Value)', derivedBy='RESTRICTION'. */
- struct v2gPhysicalValueType EVMaximumEnergyRequest ;
- unsigned int EVMaximumEnergyRequest_isUsed:1;
- /* element: "urn:iso:15118:2:2016:MsgDataTypes":EVMinimumEnergyRequest, Complex type name='urn:iso:15118:2:2016:MsgDataTypes,PhysicalValueType', base type name='anyType', content type='ELEMENT', isAbstract='false', hasTypeId='false', final='0', block='0', particle='("urn:iso:15118:2:2016:MsgDataTypes":Exponent,"urn:iso:15118:2:2016:MsgDataTypes":Value)', derivedBy='RESTRICTION'. */
- struct v2gPhysicalValueType EVMinimumEnergyRequest ;
- unsigned int EVMinimumEnergyRequest_isUsed:1;
- /* element: "urn:iso:15118:2:2016:MsgDataTypes":CurrentSOC, urn:iso:15118:2:2016:MsgDataTypes,percentValueType */
- int8_t CurrentSOC ;
- unsigned int CurrentSOC_isUsed:1;
- /* element: "urn:iso:15118:2:2016:MsgDataTypes":TargetSOC, urn:iso:15118:2:2016:MsgDataTypes,percentValueType */
- int8_t TargetSOC ;
- unsigned int TargetSOC_isUsed:1;
- /* element: "urn:iso:15118:2:2016:MsgDataTypes":BulkSOC, urn:iso:15118:2:2016:MsgDataTypes,percentValueType */
- int8_t BulkSOC ;
- unsigned int BulkSOC_isUsed:1;
-};
-
-/* Complex type name='urn:iso:15118:2:2016:MsgBody,ServiceDetailReqType', base type name='BodyBaseType', content type='ELEMENT', isAbstract='false', hasTypeId='false', final='0', block='0', particle='("urn:iso:15118:2:2016:MsgBody":ServiceID)', derivedBy='EXTENSION'. */
-struct v2gServiceDetailReqType {
- /* element: "urn:iso:15118:2:2016:MsgBody":ServiceID, urn:iso:15118:2:2016:MsgDataTypes,serviceIDType */
- uint16_t ServiceID ;
-};
-
-/* Complex type name='urn:iso:15118:2:2016:MsgDataTypes,PaymentOptionListType', base type name='anyType', content type='ELEMENT', isAbstract='false', hasTypeId='false', final='0', block='0', particle='("urn:iso:15118:2:2016:MsgDataTypes":PaymentOption{1-2})', derivedBy='RESTRICTION'. */
-#define v2gPaymentOptionListType_PaymentOption_ARRAY_SIZE 2
-struct v2gPaymentOptionListType {
- /* element: "urn:iso:15118:2:2016:MsgDataTypes":PaymentOption, urn:iso:15118:2:2016:MsgDataTypes,paymentOptionType */
- struct {
- v2gpaymentOptionType array[v2gPaymentOptionListType_PaymentOption_ARRAY_SIZE];
+ struct iso2SensorType array[iso2SensorListType_Sensor_ARRAY_SIZE];
uint16_t arrayLen;
- } PaymentOption;
+ } Sensor;
};
-typedef enum {
- v2gchargingSessionType_Terminate = 0,
- v2gchargingSessionType_Pause = 1
-} v2gchargingSessionType;
-
-/* Complex type name='urn:iso:15118:2:2016:MsgDataTypes,WPT_EVChargeParameterType', base type name='EVEnergyTransferParameterType', content type='ELEMENT', isAbstract='false', hasTypeId='false', final='0', block='0', particle='(("urn:iso:15118:2:2016:MsgDataTypes":DepartureTime),("urn:iso:15118:2:2016:MsgDataTypes":EVMaximumPower,"urn:iso:15118:2:2016:MsgDataTypes":EVMinimumPower,"urn:iso:15118:2:2016:MsgDataTypes":EVTargetEnergyRequest{0-1},"urn:iso:15118:2:2016:MsgDataTypes":EVMaximumEnergyRequest{0-1},"urn:iso:15118:2:2016:MsgDataTypes":EVMinimumEnergyRequest{0-1}))', derivedBy='EXTENSION'. */
-struct v2gWPT_EVChargeParameterType {
- /* element: "urn:iso:15118:2:2016:MsgDataTypes":DepartureTime, http://www.w3.org/2001/XMLSchema,unsignedInt */
- uint32_t DepartureTime ;
- /* element: "urn:iso:15118:2:2016:MsgDataTypes":EVMaximumPower, Complex type name='urn:iso:15118:2:2016:MsgDataTypes,PhysicalValueType', base type name='anyType', content type='ELEMENT', isAbstract='false', hasTypeId='false', final='0', block='0', particle='("urn:iso:15118:2:2016:MsgDataTypes":Exponent,"urn:iso:15118:2:2016:MsgDataTypes":Value)', derivedBy='RESTRICTION'. */
- struct v2gPhysicalValueType EVMaximumPower ;
- /* element: "urn:iso:15118:2:2016:MsgDataTypes":EVMinimumPower, Complex type name='urn:iso:15118:2:2016:MsgDataTypes,PhysicalValueType', base type name='anyType', content type='ELEMENT', isAbstract='false', hasTypeId='false', final='0', block='0', particle='("urn:iso:15118:2:2016:MsgDataTypes":Exponent,"urn:iso:15118:2:2016:MsgDataTypes":Value)', derivedBy='RESTRICTION'. */
- struct v2gPhysicalValueType EVMinimumPower ;
- /* element: "urn:iso:15118:2:2016:MsgDataTypes":EVTargetEnergyRequest, Complex type name='urn:iso:15118:2:2016:MsgDataTypes,PhysicalValueType', base type name='anyType', content type='ELEMENT', isAbstract='false', hasTypeId='false', final='0', block='0', particle='("urn:iso:15118:2:2016:MsgDataTypes":Exponent,"urn:iso:15118:2:2016:MsgDataTypes":Value)', derivedBy='RESTRICTION'. */
- struct v2gPhysicalValueType EVTargetEnergyRequest ;
- unsigned int EVTargetEnergyRequest_isUsed:1;
- /* element: "urn:iso:15118:2:2016:MsgDataTypes":EVMaximumEnergyRequest, Complex type name='urn:iso:15118:2:2016:MsgDataTypes,PhysicalValueType', base type name='anyType', content type='ELEMENT', isAbstract='false', hasTypeId='false', final='0', block='0', particle='("urn:iso:15118:2:2016:MsgDataTypes":Exponent,"urn:iso:15118:2:2016:MsgDataTypes":Value)', derivedBy='RESTRICTION'. */
- struct v2gPhysicalValueType EVMaximumEnergyRequest ;
- unsigned int EVMaximumEnergyRequest_isUsed:1;
- /* element: "urn:iso:15118:2:2016:MsgDataTypes":EVMinimumEnergyRequest, Complex type name='urn:iso:15118:2:2016:MsgDataTypes,PhysicalValueType', base type name='anyType', content type='ELEMENT', isAbstract='false', hasTypeId='false', final='0', block='0', particle='("urn:iso:15118:2:2016:MsgDataTypes":Exponent,"urn:iso:15118:2:2016:MsgDataTypes":Value)', derivedBy='RESTRICTION'. */
- struct v2gPhysicalValueType EVMinimumEnergyRequest ;
- unsigned int EVMinimumEnergyRequest_isUsed:1;
-};
-
-typedef enum {
- v2gchargeProgressType_Start = 0,
- v2gchargeProgressType_Stop = 1,
- v2gchargeProgressType_Renegotiate = 2
-} v2gchargeProgressType;
-
-/* Complex type name='urn:iso:15118:2:2016:MsgBody,SessionSetupReqType', base type name='BodyBaseType', content type='ELEMENT', isAbstract='false', hasTypeId='false', final='0', block='0', particle='("urn:iso:15118:2:2016:MsgBody":EVCCID)', derivedBy='EXTENSION'. */
-#define v2gSessionSetupReqType_EVCCID_BYTES_SIZE 6 /* XML schema facet maxLength for urn:iso:15118:2:2016:MsgDataTypes,evccIDType is 6 */
-struct v2gSessionSetupReqType {
- /* element: "urn:iso:15118:2:2016:MsgBody":EVCCID, urn:iso:15118:2:2016:MsgDataTypes,evccIDType */
- struct {
- uint8_t bytes[v2gSessionSetupReqType_EVCCID_BYTES_SIZE];
- uint16_t bytesLen;
- } EVCCID ;
-};
-
-typedef enum {
- v2gEVSENotificationType_StopCharging = 0,
- v2gEVSENotificationType_ReNegotiation = 1
-} v2gEVSENotificationType;
-
-/* Complex type name='http://www.w3.org/2000/09/xmldsig#,DigestMethodType', base type name='anyType', content type='MIXED', isAbstract='false', hasTypeId='false', final='0', block='0', particle='((WC[##other:"http://www.w3.org/2000/09/xmldsig#"]){0-UNBOUNDED})', derivedBy='RESTRICTION'. */
-#define v2gDigestMethodType_Algorithm_CHARACTERS_SIZE 65
-#define v2gDigestMethodType_ANY_CHARACTERS_SIZE 50
-struct v2gDigestMethodType {
- /* attribute: Algorithm {http://www.w3.org/2001/XMLSchema,anyURI} */
- struct {
- exi_string_character_t characters[v2gDigestMethodType_Algorithm_CHARACTERS_SIZE];
- uint16_t charactersLen;
- } Algorithm ;
- /* element: WC[##other:"http://www.w3.org/2000/09/xmldsig#"] */
- struct {
- exi_string_character_t characters[v2gDigestMethodType_ANY_CHARACTERS_SIZE];
- uint16_t charactersLen;
- } ANY ;
- unsigned int ANY_isUsed:1;
-};
-
-/* Complex type name='urn:iso:15118:2:2016:MsgDataTypes,PMaxScheduleEntryType', base type name='EntryType', content type='ELEMENT', isAbstract='false', hasTypeId='false', final='0', block='0', particle='(("urn:iso:15118:2:2016:MsgDataTypes":RelativeTimeInterval),("urn:iso:15118:2:2016:MsgDataTypes":PMax{1-3}))', derivedBy='EXTENSION'. */
-#define v2gPMaxScheduleEntryType_PMax_ARRAY_SIZE 3
-struct v2gPMaxScheduleEntryType {
- /* element: "urn:iso:15118:2:2016:MsgDataTypes":RelativeTimeInterval, Complex type name='urn:iso:15118:2:2016:MsgDataTypes,RelativeTimeIntervalType', base type name='anyType', content type='ELEMENT', isAbstract='false', hasTypeId='false', final='0', block='0', particle='("urn:iso:15118:2:2016:MsgDataTypes":start,"urn:iso:15118:2:2016:MsgDataTypes":duration{0-1})', derivedBy='RESTRICTION'. */
- struct v2gRelativeTimeIntervalType RelativeTimeInterval ;
- /* element: "urn:iso:15118:2:2016:MsgDataTypes":PMax, Complex type name='urn:iso:15118:2:2016:MsgDataTypes,PhysicalValueType', base type name='anyType', content type='ELEMENT', isAbstract='false', hasTypeId='false', final='0', block='0', particle='("urn:iso:15118:2:2016:MsgDataTypes":Exponent,"urn:iso:15118:2:2016:MsgDataTypes":Value)', derivedBy='RESTRICTION'. */
- struct {
- struct v2gPhysicalValueType array[v2gPMaxScheduleEntryType_PMax_ARRAY_SIZE];
- uint16_t arrayLen;
- } PMax;
-};
-
-/* Complex type name='urn:iso:15118:2:2016:MsgBody,PreChargeReqType', base type name='BodyBaseType', content type='ELEMENT', isAbstract='false', hasTypeId='false', final='0', block='0', particle='("urn:iso:15118:2:2016:MsgBody":EVTargetVoltage,"urn:iso:15118:2:2016:MsgBody":EVTargetCurrent)', derivedBy='EXTENSION'. */
-struct v2gPreChargeReqType {
- /* element: "urn:iso:15118:2:2016:MsgBody":EVTargetVoltage, Complex type name='urn:iso:15118:2:2016:MsgDataTypes,PhysicalValueType', base type name='anyType', content type='ELEMENT', isAbstract='false', hasTypeId='false', final='0', block='0', particle='("urn:iso:15118:2:2016:MsgDataTypes":Exponent,"urn:iso:15118:2:2016:MsgDataTypes":Value)', derivedBy='RESTRICTION'. */
- struct v2gPhysicalValueType EVTargetVoltage ;
- /* element: "urn:iso:15118:2:2016:MsgBody":EVTargetCurrent, Complex type name='urn:iso:15118:2:2016:MsgDataTypes,PhysicalValueType', base type name='anyType', content type='ELEMENT', isAbstract='false', hasTypeId='false', final='0', block='0', particle='("urn:iso:15118:2:2016:MsgDataTypes":Exponent,"urn:iso:15118:2:2016:MsgDataTypes":Value)', derivedBy='RESTRICTION'. */
- struct v2gPhysicalValueType EVTargetCurrent ;
-};
-
-/* Complex type name='urn:iso:15118:2:2016:MsgDataTypes,LF_EVSEFinePositioningParametersType', base type name='EVSEFinePositioningParametersType', content type='ELEMENT', isAbstract='false', hasTypeId='false', final='0', block='0', particle='("urn:iso:15118:2:2016:MsgDataTypes":NumberOfSignalPackages,"urn:iso:15118:2:2016:MsgDataTypes":SensorPackageList)', derivedBy='EXTENSION'. */
-struct v2gLF_EVSEFinePositioningParametersType {
- /* element: "urn:iso:15118:2:2016:MsgDataTypes":NumberOfSignalPackages, http://www.w3.org/2001/XMLSchema,unsignedByte */
- uint8_t NumberOfSignalPackages ;
- /* element: "urn:iso:15118:2:2016:MsgDataTypes":SensorPackageList, Complex type name='urn:iso:15118:2:2016:MsgDataTypes,SensorPackageListType', base type name='anyType', content type='ELEMENT', isAbstract='false', hasTypeId='false', final='0', block='0', particle='("urn:iso:15118:2:2016:MsgDataTypes":SensorPackage{1-255})', derivedBy='RESTRICTION'. */
- struct v2gSensorPackageListType SensorPackageList ;
-};
-
-/* Complex type name='http://www.w3.org/2000/09/xmldsig#,SignaturePropertiesType', base type name='anyType', content type='ELEMENT', isAbstract='false', hasTypeId='false', final='0', block='0', particle='("http://www.w3.org/2000/09/xmldsig#":SignatureProperty{1-UNBOUNDED})', derivedBy='RESTRICTION'. */
-#define v2gSignaturePropertiesType_Id_CHARACTERS_SIZE 50
-#define v2gSignaturePropertiesType_SignatureProperty_ARRAY_SIZE 1
-struct v2gSignaturePropertiesType {
- /* attribute: Id {http://www.w3.org/2001/XMLSchema,ID} */
- struct {
- exi_string_character_t characters[v2gSignaturePropertiesType_Id_CHARACTERS_SIZE];
- uint16_t charactersLen;
- } Id ;
- unsigned int Id_isUsed:1;
- /* element: "http://www.w3.org/2000/09/xmldsig#":SignatureProperty, Complex type name='http://www.w3.org/2000/09/xmldsig#,SignaturePropertyType', base type name='anyType', content type='MIXED', isAbstract='false', hasTypeId='false', final='0', block='0', particle='((WC[##other:"http://www.w3.org/2000/09/xmldsig#"])){1-UNBOUNDED}', derivedBy='RESTRICTION'. */
- struct {
- struct v2gSignaturePropertyType array[v2gSignaturePropertiesType_SignatureProperty_ARRAY_SIZE];
- uint16_t arrayLen;
- } SignatureProperty;
-};
-
-/* Complex type name='urn:iso:15118:2:2016:MsgDataTypes,MagneticVectorSetupListType', base type name='anyType', content type='ELEMENT', isAbstract='false', hasTypeId='false', final='0', block='0', particle='("urn:iso:15118:2:2016:MsgDataTypes":MagneticVectorSetup{1-255})', derivedBy='RESTRICTION'. */
-#define v2gMagneticVectorSetupListType_MagneticVectorSetup_ARRAY_SIZE 5
-struct v2gMagneticVectorSetupListType {
- /* element: "urn:iso:15118:2:2016:MsgDataTypes":MagneticVectorSetup, Complex type name='urn:iso:15118:2:2016:MsgDataTypes,MagneticVectorSetupType', base type name='anyType', content type='ELEMENT', isAbstract='false', hasTypeId='false', final='0', block='0', particle='("urn:iso:15118:2:2016:MsgDataTypes":GAID,"urn:iso:15118:2:2016:MsgDataTypes":FrequencyChannel)', derivedBy='RESTRICTION'. */
- struct {
- struct v2gMagneticVectorSetupType array[v2gMagneticVectorSetupListType_MagneticVectorSetup_ARRAY_SIZE];
- uint16_t arrayLen;
- } MagneticVectorSetup;
-};
-
-/* Complex type name='urn:iso:15118:2:2016:MsgDataTypes,AC_EVSEBidirectionalParameterType', base type name='AC_EVSEChargeParameterType', content type='ELEMENT', isAbstract='false', hasTypeId='false', final='0', block='0', particle='(("urn:iso:15118:2:2016:MsgDataTypes":EVSEMaximumChargeCurrent,"urn:iso:15118:2:2016:MsgDataTypes":EVSENominalVoltage,"urn:iso:15118:2:2016:MsgDataTypes":EVSENominalFrequency),("urn:iso:15118:2:2016:MsgDataTypes":EVSEMaximumDischargeCurrent,"urn:iso:15118:2:2016:MsgDataTypes":EVSENominalFrequency))', derivedBy='EXTENSION'. */
-struct v2gAC_EVSEBidirectionalParameterType {
- /* element: "urn:iso:15118:2:2016:MsgDataTypes":EVSEMaximumChargeCurrent, Complex type name='urn:iso:15118:2:2016:MsgDataTypes,PhysicalValueType', base type name='anyType', content type='ELEMENT', isAbstract='false', hasTypeId='false', final='0', block='0', particle='("urn:iso:15118:2:2016:MsgDataTypes":Exponent,"urn:iso:15118:2:2016:MsgDataTypes":Value)', derivedBy='RESTRICTION'. */
- struct v2gPhysicalValueType EVSEMaximumChargeCurrent ;
- /* element: "urn:iso:15118:2:2016:MsgDataTypes":EVSENominalVoltage, Complex type name='urn:iso:15118:2:2016:MsgDataTypes,PhysicalValueType', base type name='anyType', content type='ELEMENT', isAbstract='false', hasTypeId='false', final='0', block='0', particle='("urn:iso:15118:2:2016:MsgDataTypes":Exponent,"urn:iso:15118:2:2016:MsgDataTypes":Value)', derivedBy='RESTRICTION'. */
- struct v2gPhysicalValueType EVSENominalVoltage ;
- /* element: "urn:iso:15118:2:2016:MsgDataTypes":EVSENominalFrequency, Complex type name='urn:iso:15118:2:2016:MsgDataTypes,PhysicalValueType', base type name='anyType', content type='ELEMENT', isAbstract='false', hasTypeId='false', final='0', block='0', particle='("urn:iso:15118:2:2016:MsgDataTypes":Exponent,"urn:iso:15118:2:2016:MsgDataTypes":Value)', derivedBy='RESTRICTION'. */
- struct v2gPhysicalValueType EVSENominalFrequency ;
- /* element: "urn:iso:15118:2:2016:MsgDataTypes":EVSEMaximumDischargeCurrent, Complex type name='urn:iso:15118:2:2016:MsgDataTypes,PhysicalValueType', base type name='anyType', content type='ELEMENT', isAbstract='false', hasTypeId='false', final='0', block='0', particle='("urn:iso:15118:2:2016:MsgDataTypes":Exponent,"urn:iso:15118:2:2016:MsgDataTypes":Value)', derivedBy='RESTRICTION'. */
- struct v2gPhysicalValueType EVSEMaximumDischargeCurrent ;
-};
-
-/* Complex type name='urn:iso:15118:2:2016:MsgDataTypes,EVSEStatusType', base type name='anyType', content type='ELEMENT', isAbstract='false', hasTypeId='false', final='0', block='0', particle='("urn:iso:15118:2:2016:MsgDataTypes":NotificationMaxDelay,"urn:iso:15118:2:2016:MsgDataTypes":EVSENotification)', derivedBy='RESTRICTION'. */
-struct v2gEVSEStatusType {
- /* element: "urn:iso:15118:2:2016:MsgDataTypes":NotificationMaxDelay, http://www.w3.org/2001/XMLSchema,unsignedShort */
- uint16_t NotificationMaxDelay ;
- /* element: "urn:iso:15118:2:2016:MsgDataTypes":EVSENotification, urn:iso:15118:2:2016:MsgDataTypes,EVSENotificationType */
- v2gEVSENotificationType EVSENotification ;
-};
-
-/* Complex type name='urn:iso:15118:2:2016:MsgDataTypes,AC_EVBidirectionalParameterType', base type name='AC_EVChargeParameterType', content type='ELEMENT', isAbstract='false', hasTypeId='false', final='0', block='0', particle='((("urn:iso:15118:2:2016:MsgDataTypes":DepartureTime),("urn:iso:15118:2:2016:MsgDataTypes":EVMaximumChargePower,"urn:iso:15118:2:2016:MsgDataTypes":EVMaximumChargeCurrent,"urn:iso:15118:2:2016:MsgDataTypes":EVMinimumChargeCurrent,"urn:iso:15118:2:2016:MsgDataTypes":EVTargetEnergyRequest{0-1},"urn:iso:15118:2:2016:MsgDataTypes":EVMaximumEnergyRequest{0-1},"urn:iso:15118:2:2016:MsgDataTypes":EVMinimumEnergyRequest{0-1},"urn:iso:15118:2:2016:MsgDataTypes":EVMaximumVoltage)),("urn:iso:15118:2:2016:MsgDataTypes":EVMaximumDischargePower,"urn:iso:15118:2:2016:MsgDataTypes":EVMaximumDischargeCurrent,"urn:iso:15118:2:2016:MsgDataTypes":EVMinimumDischargeCurrent))', derivedBy='EXTENSION'. */
-struct v2gAC_EVBidirectionalParameterType {
- /* element: "urn:iso:15118:2:2016:MsgDataTypes":DepartureTime, http://www.w3.org/2001/XMLSchema,unsignedInt */
- uint32_t DepartureTime ;
- /* element: "urn:iso:15118:2:2016:MsgDataTypes":EVMaximumChargePower, Complex type name='urn:iso:15118:2:2016:MsgDataTypes,PhysicalValueType', base type name='anyType', content type='ELEMENT', isAbstract='false', hasTypeId='false', final='0', block='0', particle='("urn:iso:15118:2:2016:MsgDataTypes":Exponent,"urn:iso:15118:2:2016:MsgDataTypes":Value)', derivedBy='RESTRICTION'. */
- struct v2gPhysicalValueType EVMaximumChargePower ;
- /* element: "urn:iso:15118:2:2016:MsgDataTypes":EVMaximumChargeCurrent, Complex type name='urn:iso:15118:2:2016:MsgDataTypes,PhysicalValueType', base type name='anyType', content type='ELEMENT', isAbstract='false', hasTypeId='false', final='0', block='0', particle='("urn:iso:15118:2:2016:MsgDataTypes":Exponent,"urn:iso:15118:2:2016:MsgDataTypes":Value)', derivedBy='RESTRICTION'. */
- struct v2gPhysicalValueType EVMaximumChargeCurrent ;
- /* element: "urn:iso:15118:2:2016:MsgDataTypes":EVMinimumChargeCurrent, Complex type name='urn:iso:15118:2:2016:MsgDataTypes,PhysicalValueType', base type name='anyType', content type='ELEMENT', isAbstract='false', hasTypeId='false', final='0', block='0', particle='("urn:iso:15118:2:2016:MsgDataTypes":Exponent,"urn:iso:15118:2:2016:MsgDataTypes":Value)', derivedBy='RESTRICTION'. */
- struct v2gPhysicalValueType EVMinimumChargeCurrent ;
- /* element: "urn:iso:15118:2:2016:MsgDataTypes":EVTargetEnergyRequest, Complex type name='urn:iso:15118:2:2016:MsgDataTypes,PhysicalValueType', base type name='anyType', content type='ELEMENT', isAbstract='false', hasTypeId='false', final='0', block='0', particle='("urn:iso:15118:2:2016:MsgDataTypes":Exponent,"urn:iso:15118:2:2016:MsgDataTypes":Value)', derivedBy='RESTRICTION'. */
- struct v2gPhysicalValueType EVTargetEnergyRequest ;
- unsigned int EVTargetEnergyRequest_isUsed:1;
- /* element: "urn:iso:15118:2:2016:MsgDataTypes":EVMaximumEnergyRequest, Complex type name='urn:iso:15118:2:2016:MsgDataTypes,PhysicalValueType', base type name='anyType', content type='ELEMENT', isAbstract='false', hasTypeId='false', final='0', block='0', particle='("urn:iso:15118:2:2016:MsgDataTypes":Exponent,"urn:iso:15118:2:2016:MsgDataTypes":Value)', derivedBy='RESTRICTION'. */
- struct v2gPhysicalValueType EVMaximumEnergyRequest ;
- unsigned int EVMaximumEnergyRequest_isUsed:1;
- /* element: "urn:iso:15118:2:2016:MsgDataTypes":EVMinimumEnergyRequest, Complex type name='urn:iso:15118:2:2016:MsgDataTypes,PhysicalValueType', base type name='anyType', content type='ELEMENT', isAbstract='false', hasTypeId='false', final='0', block='0', particle='("urn:iso:15118:2:2016:MsgDataTypes":Exponent,"urn:iso:15118:2:2016:MsgDataTypes":Value)', derivedBy='RESTRICTION'. */
- struct v2gPhysicalValueType EVMinimumEnergyRequest ;
- unsigned int EVMinimumEnergyRequest_isUsed:1;
- /* element: "urn:iso:15118:2:2016:MsgDataTypes":EVMaximumVoltage, Complex type name='urn:iso:15118:2:2016:MsgDataTypes,PhysicalValueType', base type name='anyType', content type='ELEMENT', isAbstract='false', hasTypeId='false', final='0', block='0', particle='("urn:iso:15118:2:2016:MsgDataTypes":Exponent,"urn:iso:15118:2:2016:MsgDataTypes":Value)', derivedBy='RESTRICTION'. */
- struct v2gPhysicalValueType EVMaximumVoltage ;
- /* element: "urn:iso:15118:2:2016:MsgDataTypes":EVMaximumDischargePower, Complex type name='urn:iso:15118:2:2016:MsgDataTypes,PhysicalValueType', base type name='anyType', content type='ELEMENT', isAbstract='false', hasTypeId='false', final='0', block='0', particle='("urn:iso:15118:2:2016:MsgDataTypes":Exponent,"urn:iso:15118:2:2016:MsgDataTypes":Value)', derivedBy='RESTRICTION'. */
- struct v2gPhysicalValueType EVMaximumDischargePower ;
- /* element: "urn:iso:15118:2:2016:MsgDataTypes":EVMaximumDischargeCurrent, Complex type name='urn:iso:15118:2:2016:MsgDataTypes,PhysicalValueType', base type name='anyType', content type='ELEMENT', isAbstract='false', hasTypeId='false', final='0', block='0', particle='("urn:iso:15118:2:2016:MsgDataTypes":Exponent,"urn:iso:15118:2:2016:MsgDataTypes":Value)', derivedBy='RESTRICTION'. */
- struct v2gPhysicalValueType EVMaximumDischargeCurrent ;
- /* element: "urn:iso:15118:2:2016:MsgDataTypes":EVMinimumDischargeCurrent, Complex type name='urn:iso:15118:2:2016:MsgDataTypes,PhysicalValueType', base type name='anyType', content type='ELEMENT', isAbstract='false', hasTypeId='false', final='0', block='0', particle='("urn:iso:15118:2:2016:MsgDataTypes":Exponent,"urn:iso:15118:2:2016:MsgDataTypes":Value)', derivedBy='RESTRICTION'. */
- struct v2gPhysicalValueType EVMinimumDischargeCurrent ;
-};
-
-/* Complex type name='urn:iso:15118:2:2016:MsgDataTypes,MV_EVSEFinePositioningSetupParametersType', base type name='EVSEFinePositioningSetupParametersType', content type='ELEMENT', isAbstract='false', hasTypeId='false', final='0', block='0', particle='("urn:iso:15118:2:2016:MsgDataTypes":FrequencyChannel{0-1},"urn:iso:15118:2:2016:MsgDataTypes":MagneticVectorSetupList{0-1})', derivedBy='EXTENSION'. */
-struct v2gMV_EVSEFinePositioningSetupParametersType {
- /* element: "urn:iso:15118:2:2016:MsgDataTypes":FrequencyChannel, http://www.w3.org/2001/XMLSchema,unsignedInt */
- uint32_t FrequencyChannel ;
- unsigned int FrequencyChannel_isUsed:1;
- /* element: "urn:iso:15118:2:2016:MsgDataTypes":MagneticVectorSetupList, Complex type name='urn:iso:15118:2:2016:MsgDataTypes,MagneticVectorSetupListType', base type name='anyType', content type='ELEMENT', isAbstract='false', hasTypeId='false', final='0', block='0', particle='("urn:iso:15118:2:2016:MsgDataTypes":MagneticVectorSetup{1-255})', derivedBy='RESTRICTION'. */
- struct v2gMagneticVectorSetupListType MagneticVectorSetupList ;
- unsigned int MagneticVectorSetupList_isUsed:1;
-};
-
-/* Complex type name='urn:iso:15118:2:2016:MsgDataTypes,SensorType', base type name='anyType', content type='ELEMENT', isAbstract='false', hasTypeId='false', final='0', block='0', particle='("urn:iso:15118:2:2016:MsgDataTypes":SensorID,"urn:iso:15118:2:2016:MsgDataTypes":SensorPosition,"urn:iso:15118:2:2016:MsgDataTypes":SensorOrientation)', derivedBy='RESTRICTION'. */
-struct v2gSensorType {
- /* element: "urn:iso:15118:2:2016:MsgDataTypes":SensorID, http://www.w3.org/2001/XMLSchema,unsignedByte */
- uint8_t SensorID ;
- /* element: "urn:iso:15118:2:2016:MsgDataTypes":SensorPosition, Complex type name='urn:iso:15118:2:2016:MsgDataTypes,CartesianCoordinatesType', base type name='anyType', content type='ELEMENT', isAbstract='false', hasTypeId='false', final='0', block='0', particle='("urn:iso:15118:2:2016:MsgDataTypes":XCoordinate,"urn:iso:15118:2:2016:MsgDataTypes":YCoordinate,"urn:iso:15118:2:2016:MsgDataTypes":ZCoordinate)', derivedBy='RESTRICTION'. */
- struct v2gCartesianCoordinatesType SensorPosition ;
- /* element: "urn:iso:15118:2:2016:MsgDataTypes":SensorOrientation, Complex type name='urn:iso:15118:2:2016:MsgDataTypes,CartesianCoordinatesType', base type name='anyType', content type='ELEMENT', isAbstract='false', hasTypeId='false', final='0', block='0', particle='("urn:iso:15118:2:2016:MsgDataTypes":XCoordinate,"urn:iso:15118:2:2016:MsgDataTypes":YCoordinate,"urn:iso:15118:2:2016:MsgDataTypes":ZCoordinate)', derivedBy='RESTRICTION'. */
- struct v2gCartesianCoordinatesType SensorOrientation ;
-};
-
-/* Complex type name='urn:iso:15118:2:2016:MsgDataTypes,AC_EVChargeParameterType', base type name='EVEnergyTransferParameterType', content type='ELEMENT', isAbstract='false', hasTypeId='false', final='0', block='0', particle='(("urn:iso:15118:2:2016:MsgDataTypes":DepartureTime),("urn:iso:15118:2:2016:MsgDataTypes":EVMaximumChargePower,"urn:iso:15118:2:2016:MsgDataTypes":EVMaximumChargeCurrent,"urn:iso:15118:2:2016:MsgDataTypes":EVMinimumChargeCurrent,"urn:iso:15118:2:2016:MsgDataTypes":EVTargetEnergyRequest{0-1},"urn:iso:15118:2:2016:MsgDataTypes":EVMaximumEnergyRequest{0-1},"urn:iso:15118:2:2016:MsgDataTypes":EVMinimumEnergyRequest{0-1},"urn:iso:15118:2:2016:MsgDataTypes":EVMaximumVoltage))', derivedBy='EXTENSION'. */
-struct v2gAC_EVChargeParameterType {
- /* element: "urn:iso:15118:2:2016:MsgDataTypes":DepartureTime, http://www.w3.org/2001/XMLSchema,unsignedInt */
- uint32_t DepartureTime ;
- /* element: "urn:iso:15118:2:2016:MsgDataTypes":EVMaximumChargePower, Complex type name='urn:iso:15118:2:2016:MsgDataTypes,PhysicalValueType', base type name='anyType', content type='ELEMENT', isAbstract='false', hasTypeId='false', final='0', block='0', particle='("urn:iso:15118:2:2016:MsgDataTypes":Exponent,"urn:iso:15118:2:2016:MsgDataTypes":Value)', derivedBy='RESTRICTION'. */
- struct v2gPhysicalValueType EVMaximumChargePower ;
- /* element: "urn:iso:15118:2:2016:MsgDataTypes":EVMaximumChargeCurrent, Complex type name='urn:iso:15118:2:2016:MsgDataTypes,PhysicalValueType', base type name='anyType', content type='ELEMENT', isAbstract='false', hasTypeId='false', final='0', block='0', particle='("urn:iso:15118:2:2016:MsgDataTypes":Exponent,"urn:iso:15118:2:2016:MsgDataTypes":Value)', derivedBy='RESTRICTION'. */
- struct v2gPhysicalValueType EVMaximumChargeCurrent ;
- /* element: "urn:iso:15118:2:2016:MsgDataTypes":EVMinimumChargeCurrent, Complex type name='urn:iso:15118:2:2016:MsgDataTypes,PhysicalValueType', base type name='anyType', content type='ELEMENT', isAbstract='false', hasTypeId='false', final='0', block='0', particle='("urn:iso:15118:2:2016:MsgDataTypes":Exponent,"urn:iso:15118:2:2016:MsgDataTypes":Value)', derivedBy='RESTRICTION'. */
- struct v2gPhysicalValueType EVMinimumChargeCurrent ;
- /* element: "urn:iso:15118:2:2016:MsgDataTypes":EVTargetEnergyRequest, Complex type name='urn:iso:15118:2:2016:MsgDataTypes,PhysicalValueType', base type name='anyType', content type='ELEMENT', isAbstract='false', hasTypeId='false', final='0', block='0', particle='("urn:iso:15118:2:2016:MsgDataTypes":Exponent,"urn:iso:15118:2:2016:MsgDataTypes":Value)', derivedBy='RESTRICTION'. */
- struct v2gPhysicalValueType EVTargetEnergyRequest ;
- unsigned int EVTargetEnergyRequest_isUsed:1;
- /* element: "urn:iso:15118:2:2016:MsgDataTypes":EVMaximumEnergyRequest, Complex type name='urn:iso:15118:2:2016:MsgDataTypes,PhysicalValueType', base type name='anyType', content type='ELEMENT', isAbstract='false', hasTypeId='false', final='0', block='0', particle='("urn:iso:15118:2:2016:MsgDataTypes":Exponent,"urn:iso:15118:2:2016:MsgDataTypes":Value)', derivedBy='RESTRICTION'. */
- struct v2gPhysicalValueType EVMaximumEnergyRequest ;
- unsigned int EVMaximumEnergyRequest_isUsed:1;
- /* element: "urn:iso:15118:2:2016:MsgDataTypes":EVMinimumEnergyRequest, Complex type name='urn:iso:15118:2:2016:MsgDataTypes,PhysicalValueType', base type name='anyType', content type='ELEMENT', isAbstract='false', hasTypeId='false', final='0', block='0', particle='("urn:iso:15118:2:2016:MsgDataTypes":Exponent,"urn:iso:15118:2:2016:MsgDataTypes":Value)', derivedBy='RESTRICTION'. */
- struct v2gPhysicalValueType EVMinimumEnergyRequest ;
- unsigned int EVMinimumEnergyRequest_isUsed:1;
- /* element: "urn:iso:15118:2:2016:MsgDataTypes":EVMaximumVoltage, Complex type name='urn:iso:15118:2:2016:MsgDataTypes,PhysicalValueType', base type name='anyType', content type='ELEMENT', isAbstract='false', hasTypeId='false', final='0', block='0', particle='("urn:iso:15118:2:2016:MsgDataTypes":Exponent,"urn:iso:15118:2:2016:MsgDataTypes":Value)', derivedBy='RESTRICTION'. */
- struct v2gPhysicalValueType EVMaximumVoltage ;
-};
-
-/* Complex type name='urn:iso:15118:2:2016:MsgBody,EVSEErrorInformationType', base type name='BodyBaseType', content type='ELEMENT', isAbstract='false', hasTypeId='false', final='0', block='0', particle='("urn:iso:15118:2:2016:MsgBody":ErrorCode)', derivedBy='EXTENSION'. */
-struct v2gEVSEErrorInformationType {
- /* element: "urn:iso:15118:2:2016:MsgBody":ErrorCode, urn:iso:15118:2:2016:MsgDataTypes,EVSEErrorCodeType */
- v2gEVSEErrorCodeType ErrorCode ;
+/* Complex type name='urn:iso:15118:2:2016:MsgDataTypes,LFA_EVFinePositioningSetupParametersType', base type name='EVFinePositioningSetupParametersType', content type='ELEMENT', isAbstract='false', hasTypeId='false', final='0', block='0', particle='("urn:iso:15118:2:2016:MsgDataTypes":NumberOfSensors,"urn:iso:15118:2:2016:MsgDataTypes":SensorList,"urn:iso:15118:2:2016:MsgDataTypes":SensorOrder,"urn:iso:15118:2:2016:MsgDataTypes":SignalPulseDuration,"urn:iso:15118:2:2016:MsgDataTypes":SignalSeparationTime,"urn:iso:15118:2:2016:MsgDataTypes":PackageSeparationTime,"urn:iso:15118:2:2016:MsgDataTypes":AlignmentOffset)', derivedBy='EXTENSION'. */
+struct iso2LFA_EVFinePositioningSetupParametersType {
+ /* element: "urn:iso:15118:2:2016:MsgDataTypes":NumberOfSensors, http://www.w3.org/2001/XMLSchema,unsignedByte */
+ uint8_t NumberOfSensors ;
+ /* element: "urn:iso:15118:2:2016:MsgDataTypes":SensorList, Complex type name='urn:iso:15118:2:2016:MsgDataTypes,SensorListType', base type name='anyType', content type='ELEMENT', isAbstract='false', hasTypeId='false', final='0', block='0', particle='("urn:iso:15118:2:2016:MsgDataTypes":Sensor{1-255})', derivedBy='RESTRICTION'. */
+ struct iso2SensorListType SensorList ;
+ /* element: "urn:iso:15118:2:2016:MsgDataTypes":SensorOrder, Complex type name='urn:iso:15118:2:2016:MsgDataTypes,SensorOrderListType', base type name='anyType', content type='ELEMENT', isAbstract='false', hasTypeId='false', final='0', block='0', particle='("urn:iso:15118:2:2016:MsgDataTypes":SensorPosition{1-255})', derivedBy='RESTRICTION'. */
+ struct iso2SensorOrderListType SensorOrder ;
+ /* element: "urn:iso:15118:2:2016:MsgDataTypes":SignalPulseDuration, http://www.w3.org/2001/XMLSchema,unsignedByte */
+ uint8_t SignalPulseDuration ;
+ /* element: "urn:iso:15118:2:2016:MsgDataTypes":SignalSeparationTime, http://www.w3.org/2001/XMLSchema,unsignedByte */
+ uint8_t SignalSeparationTime ;
+ /* element: "urn:iso:15118:2:2016:MsgDataTypes":PackageSeparationTime, http://www.w3.org/2001/XMLSchema,unsignedByte */
+ uint8_t PackageSeparationTime ;
+ /* element: "urn:iso:15118:2:2016:MsgDataTypes":AlignmentOffset, http://www.w3.org/2001/XMLSchema,unsignedShort */
+ uint16_t AlignmentOffset ;
};
/* Complex type name='urn:iso:15118:2:2016:MsgDataTypes,WPT_EVSEChargeParameterType', base type name='EVSEEnergyTransferParameterType', content type='ELEMENT', isAbstract='false', hasTypeId='false', final='0', block='0', particle='("urn:iso:15118:2:2016:MsgDataTypes":EVSEMaximumPower,"urn:iso:15118:2:2016:MsgDataTypes":EVSEMinimumPower)', derivedBy='EXTENSION'. */
-struct v2gWPT_EVSEChargeParameterType {
+struct iso2WPT_EVSEChargeParameterType {
/* element: "urn:iso:15118:2:2016:MsgDataTypes":EVSEMaximumPower, Complex type name='urn:iso:15118:2:2016:MsgDataTypes,PhysicalValueType', base type name='anyType', content type='ELEMENT', isAbstract='false', hasTypeId='false', final='0', block='0', particle='("urn:iso:15118:2:2016:MsgDataTypes":Exponent,"urn:iso:15118:2:2016:MsgDataTypes":Value)', derivedBy='RESTRICTION'. */
- struct v2gPhysicalValueType EVSEMaximumPower ;
+ struct iso2PhysicalValueType EVSEMaximumPower ;
/* element: "urn:iso:15118:2:2016:MsgDataTypes":EVSEMinimumPower, Complex type name='urn:iso:15118:2:2016:MsgDataTypes,PhysicalValueType', base type name='anyType', content type='ELEMENT', isAbstract='false', hasTypeId='false', final='0', block='0', particle='("urn:iso:15118:2:2016:MsgDataTypes":Exponent,"urn:iso:15118:2:2016:MsgDataTypes":Value)', derivedBy='RESTRICTION'. */
- struct v2gPhysicalValueType EVSEMinimumPower ;
+ struct iso2PhysicalValueType EVSEMinimumPower ;
+};
+
+/* Complex type name='urn:iso:15118:2:2016:MsgDataTypes,ParameterSetType', base type name='anyType', content type='ELEMENT', isAbstract='false', hasTypeId='false', final='0', block='0', particle='("urn:iso:15118:2:2016:MsgDataTypes":ParameterSetID,"urn:iso:15118:2:2016:MsgDataTypes":Parameter{1-16})', derivedBy='RESTRICTION'. */
+#define iso2ParameterSetType_Parameter_ARRAY_SIZE 5
+struct iso2ParameterSetType {
+ /* element: "urn:iso:15118:2:2016:MsgDataTypes":ParameterSetID, http://www.w3.org/2001/XMLSchema,unsignedShort */
+ uint16_t ParameterSetID ;
+ /* element: "urn:iso:15118:2:2016:MsgDataTypes":Parameter, Complex type name='urn:iso:15118:2:2016:MsgDataTypes,ParameterType', base type name='anyType', content type='ELEMENT', isAbstract='false', hasTypeId='false', final='0', block='0', particle='("urn:iso:15118:2:2016:MsgDataTypes":boolValue|"urn:iso:15118:2:2016:MsgDataTypes":byteValue|"urn:iso:15118:2:2016:MsgDataTypes":shortValue|"urn:iso:15118:2:2016:MsgDataTypes":intValue|"urn:iso:15118:2:2016:MsgDataTypes":physicalValue|"urn:iso:15118:2:2016:MsgDataTypes":stringValue)', derivedBy='RESTRICTION'. */
+ struct {
+ struct iso2ParameterType array[iso2ParameterSetType_Parameter_ARRAY_SIZE];
+ uint16_t arrayLen;
+ } Parameter;
+};
+
+/* Complex type name='urn:iso:15118:2:2016:MsgBody,PaymentDetailsResType', base type name='V2GResponseType', content type='ELEMENT', isAbstract='false', hasTypeId='false', final='0', block='0', particle='(("urn:iso:15118:2:2016:MsgBody":ResponseCode,"urn:iso:15118:2:2016:MsgBody":EVSEStatus{0-1}),("urn:iso:15118:2:2016:MsgBody":GenChallenge,"urn:iso:15118:2:2016:MsgBody":EVSETimeStamp))', derivedBy='EXTENSION'. */
+#define iso2PaymentDetailsResType_GenChallenge_BYTES_SIZE 16 /* XML schema facet length for urn:iso:15118:2:2016:MsgDataTypes,genChallengeType is 16 */
+struct iso2PaymentDetailsResType {
+ /* element: "urn:iso:15118:2:2016:MsgBody":ResponseCode, urn:iso:15118:2:2016:MsgDataTypes,responseCodeType */
+ iso2responseCodeType ResponseCode ;
+ /* element: "urn:iso:15118:2:2016:MsgBody":EVSEStatus, Complex type name='urn:iso:15118:2:2016:MsgDataTypes,EVSEStatusType', base type name='anyType', content type='ELEMENT', isAbstract='false', hasTypeId='false', final='0', block='0', particle='("urn:iso:15118:2:2016:MsgDataTypes":NotificationMaxDelay,"urn:iso:15118:2:2016:MsgDataTypes":EVSENotification)', derivedBy='RESTRICTION'. */
+ struct iso2EVSEStatusType EVSEStatus ;
+ unsigned int EVSEStatus_isUsed:1;
+ /* element: "urn:iso:15118:2:2016:MsgBody":GenChallenge, urn:iso:15118:2:2016:MsgDataTypes,genChallengeType */
+ struct {
+ uint8_t bytes[iso2PaymentDetailsResType_GenChallenge_BYTES_SIZE];
+ uint16_t bytesLen;
+ } GenChallenge ;
+ /* element: "urn:iso:15118:2:2016:MsgBody":EVSETimeStamp, http://www.w3.org/2001/XMLSchema,long */
+ int64_t EVSETimeStamp ;
+};
+
+/* Complex type name='urn:iso:15118:2:2016:MsgBody,AC_BidirectionalControlResType', base type name='V2GResponseType', content type='ELEMENT', isAbstract='false', hasTypeId='false', final='0', block='0', particle='(("urn:iso:15118:2:2016:MsgBody":ResponseCode,"urn:iso:15118:2:2016:MsgBody":EVSEStatus{0-1}),("urn:iso:15118:2:2016:MsgBody":EVSEProcessing,"urn:iso:15118:2:2016:MsgBody":EVSETargetPower,"urn:iso:15118:2:2016:MsgBody":EVSETargetReactivePower,"urn:iso:15118:2:2016:MsgBody":EVSEID,"urn:iso:15118:2:2016:MsgBody":SAScheduleTupleID{0-1},"urn:iso:15118:2:2016:MsgBody":MeterInfo{0-1},"urn:iso:15118:2:2016:MsgBody":ReceiptRequired{0-1}))', derivedBy='EXTENSION'. */
+#define iso2AC_BidirectionalControlResType_EVSEID_CHARACTERS_SIZE 37 + EXTRA_CHAR /* XML schema facet maxLength for urn:iso:15118:2:2016:MsgDataTypes,evseIDType is 37 */
+struct iso2AC_BidirectionalControlResType {
+ /* element: "urn:iso:15118:2:2016:MsgBody":ResponseCode, urn:iso:15118:2:2016:MsgDataTypes,responseCodeType */
+ iso2responseCodeType ResponseCode ;
+ /* element: "urn:iso:15118:2:2016:MsgBody":EVSEStatus, Complex type name='urn:iso:15118:2:2016:MsgDataTypes,EVSEStatusType', base type name='anyType', content type='ELEMENT', isAbstract='false', hasTypeId='false', final='0', block='0', particle='("urn:iso:15118:2:2016:MsgDataTypes":NotificationMaxDelay,"urn:iso:15118:2:2016:MsgDataTypes":EVSENotification)', derivedBy='RESTRICTION'. */
+ struct iso2EVSEStatusType EVSEStatus ;
+ unsigned int EVSEStatus_isUsed:1;
+ /* element: "urn:iso:15118:2:2016:MsgBody":EVSEProcessing, urn:iso:15118:2:2016:MsgDataTypes,EVSEProcessingType */
+ iso2EVSEProcessingType EVSEProcessing ;
+ /* element: "urn:iso:15118:2:2016:MsgBody":EVSETargetPower, Complex type name='urn:iso:15118:2:2016:MsgDataTypes,PhysicalValueType', base type name='anyType', content type='ELEMENT', isAbstract='false', hasTypeId='false', final='0', block='0', particle='("urn:iso:15118:2:2016:MsgDataTypes":Exponent,"urn:iso:15118:2:2016:MsgDataTypes":Value)', derivedBy='RESTRICTION'. */
+ struct iso2PhysicalValueType EVSETargetPower ;
+ /* element: "urn:iso:15118:2:2016:MsgBody":EVSETargetReactivePower, Complex type name='urn:iso:15118:2:2016:MsgDataTypes,PhysicalValueType', base type name='anyType', content type='ELEMENT', isAbstract='false', hasTypeId='false', final='0', block='0', particle='("urn:iso:15118:2:2016:MsgDataTypes":Exponent,"urn:iso:15118:2:2016:MsgDataTypes":Value)', derivedBy='RESTRICTION'. */
+ struct iso2PhysicalValueType EVSETargetReactivePower ;
+ /* element: "urn:iso:15118:2:2016:MsgBody":EVSEID, urn:iso:15118:2:2016:MsgDataTypes,evseIDType */
+ struct {
+ exi_string_character_t characters[iso2AC_BidirectionalControlResType_EVSEID_CHARACTERS_SIZE];
+ uint16_t charactersLen;
+ } EVSEID ;
+ /* element: "urn:iso:15118:2:2016:MsgBody":SAScheduleTupleID, urn:iso:15118:2:2016:MsgDataTypes,SAIDType */
+ uint8_t SAScheduleTupleID ;
+ unsigned int SAScheduleTupleID_isUsed:1;
+ /* element: "urn:iso:15118:2:2016:MsgBody":MeterInfo, Complex type name='urn:iso:15118:2:2016:MsgDataTypes,MeterInfoType', base type name='anyType', content type='ELEMENT', isAbstract='false', hasTypeId='false', final='0', block='0', particle='("urn:iso:15118:2:2016:MsgDataTypes":MeterID,"urn:iso:15118:2:2016:MsgDataTypes":MeterReadingCharged{0-1},"urn:iso:15118:2:2016:MsgDataTypes":MeterReadingDischarged{0-1},"urn:iso:15118:2:2016:MsgDataTypes":SigMeterReading{0-1},"urn:iso:15118:2:2016:MsgDataTypes":MeterStatus{0-1},"urn:iso:15118:2:2016:MsgDataTypes":TMeter{0-1})', derivedBy='RESTRICTION'. */
+ struct iso2MeterInfoType MeterInfo ;
+ unsigned int MeterInfo_isUsed:1;
+ /* element: "urn:iso:15118:2:2016:MsgBody":ReceiptRequired, http://www.w3.org/2001/XMLSchema,boolean */
+ int ReceiptRequired ;
+ unsigned int ReceiptRequired_isUsed:1;
+};
+
+/* Complex type name='urn:iso:15118:2:2016:MsgBody,VehicleCheckOutReqType', base type name='BodyBaseType', content type='ELEMENT', isAbstract='false', hasTypeId='false', final='0', block='0', particle='("urn:iso:15118:2:2016:MsgBody":EVCheckOutStatus,"urn:iso:15118:2:2016:MsgBody":CheckOutTime)', derivedBy='EXTENSION'. */
+struct iso2VehicleCheckOutReqType {
+ /* element: "urn:iso:15118:2:2016:MsgBody":EVCheckOutStatus, urn:iso:15118:2:2016:MsgDataTypes,EVCheckOutStatusType */
+ iso2EVCheckOutStatusType EVCheckOutStatus ;
+ /* element: "urn:iso:15118:2:2016:MsgBody":CheckOutTime, http://www.w3.org/2001/XMLSchema,unsignedLong */
+ uint64_t CheckOutTime ;
+};
+
+/* Complex type name='urn:iso:15118:2:2016:MsgBody,AlignmentCheckResType', base type name='V2GResponseType', content type='ELEMENT', isAbstract='false', hasTypeId='false', final='0', block='0', particle='(("urn:iso:15118:2:2016:MsgBody":ResponseCode,"urn:iso:15118:2:2016:MsgBody":EVSEStatus{0-1}),("urn:iso:15118:2:2016:MsgBody":EVSEProcessing,"urn:iso:15118:2:2016:MsgBody":AlignmentCheckParameters{0-1}))', derivedBy='EXTENSION'. */
+struct iso2AlignmentCheckResType {
+ /* element: "urn:iso:15118:2:2016:MsgBody":ResponseCode, urn:iso:15118:2:2016:MsgDataTypes,responseCodeType */
+ iso2responseCodeType ResponseCode ;
+ /* element: "urn:iso:15118:2:2016:MsgBody":EVSEStatus, Complex type name='urn:iso:15118:2:2016:MsgDataTypes,EVSEStatusType', base type name='anyType', content type='ELEMENT', isAbstract='false', hasTypeId='false', final='0', block='0', particle='("urn:iso:15118:2:2016:MsgDataTypes":NotificationMaxDelay,"urn:iso:15118:2:2016:MsgDataTypes":EVSENotification)', derivedBy='RESTRICTION'. */
+ struct iso2EVSEStatusType EVSEStatus ;
+ unsigned int EVSEStatus_isUsed:1;
+ /* element: "urn:iso:15118:2:2016:MsgBody":EVSEProcessing, urn:iso:15118:2:2016:MsgDataTypes,EVSEProcessingType */
+ iso2EVSEProcessingType EVSEProcessing ;
+ /* element: "urn:iso:15118:2:2016:MsgBody":AlignmentCheckParameters, Complex type name='urn:iso:15118:2:2016:MsgDataTypes,ParameterSetType', base type name='anyType', content type='ELEMENT', isAbstract='false', hasTypeId='false', final='0', block='0', particle='("urn:iso:15118:2:2016:MsgDataTypes":ParameterSetID,"urn:iso:15118:2:2016:MsgDataTypes":Parameter{1-16})', derivedBy='RESTRICTION'. */
+ struct iso2ParameterSetType AlignmentCheckParameters ;
+ unsigned int AlignmentCheckParameters_isUsed:1;
+};
+
+/* Complex type name='urn:iso:15118:2:2016:MsgDataTypes,MinimumPMaxRequestType', base type name='anyType', content type='ELEMENT', isAbstract='false', hasTypeId='false', final='0', block='0', particle='("urn:iso:15118:2:2016:MsgDataTypes":MinimumPMaxScheduleEntry{1-3})', derivedBy='RESTRICTION'. */
+#define iso2MinimumPMaxRequestType_MinimumPMaxScheduleEntry_ARRAY_SIZE 3
+struct iso2MinimumPMaxRequestType {
+ /* element: "urn:iso:15118:2:2016:MsgDataTypes":MinimumPMaxScheduleEntry, Complex type name='urn:iso:15118:2:2016:MsgDataTypes,PMaxScheduleEntryType', base type name='EntryType', content type='ELEMENT', isAbstract='false', hasTypeId='false', final='0', block='0', particle='(("urn:iso:15118:2:2016:MsgDataTypes":RelativeTimeInterval),("urn:iso:15118:2:2016:MsgDataTypes":PMax{1-3}))', derivedBy='EXTENSION'. */
+ struct {
+ struct iso2PMaxScheduleEntryType array[iso2MinimumPMaxRequestType_MinimumPMaxScheduleEntry_ARRAY_SIZE];
+ uint16_t arrayLen;
+ } MinimumPMaxScheduleEntry;
+};
+
+/* Complex type name='urn:iso:15118:2:2016:MsgBody,DisconnectChargingDeviceResType', base type name='V2GResponseType', content type='ELEMENT', isAbstract='false', hasTypeId='false', final='0', block='0', particle='(("urn:iso:15118:2:2016:MsgBody":ResponseCode,"urn:iso:15118:2:2016:MsgBody":EVSEStatus{0-1}),("urn:iso:15118:2:2016:MsgBody":EVSEProcessing,"urn:iso:15118:2:2016:MsgBody":EVSEElectricalChargingDeviceStatus,"urn:iso:15118:2:2016:MsgBody":EVSEMechanicalChargingDeviceStatus))', derivedBy='EXTENSION'. */
+struct iso2DisconnectChargingDeviceResType {
+ /* element: "urn:iso:15118:2:2016:MsgBody":ResponseCode, urn:iso:15118:2:2016:MsgDataTypes,responseCodeType */
+ iso2responseCodeType ResponseCode ;
+ /* element: "urn:iso:15118:2:2016:MsgBody":EVSEStatus, Complex type name='urn:iso:15118:2:2016:MsgDataTypes,EVSEStatusType', base type name='anyType', content type='ELEMENT', isAbstract='false', hasTypeId='false', final='0', block='0', particle='("urn:iso:15118:2:2016:MsgDataTypes":NotificationMaxDelay,"urn:iso:15118:2:2016:MsgDataTypes":EVSENotification)', derivedBy='RESTRICTION'. */
+ struct iso2EVSEStatusType EVSEStatus ;
+ unsigned int EVSEStatus_isUsed:1;
+ /* element: "urn:iso:15118:2:2016:MsgBody":EVSEProcessing, urn:iso:15118:2:2016:MsgDataTypes,EVSEProcessingType */
+ iso2EVSEProcessingType EVSEProcessing ;
+ /* element: "urn:iso:15118:2:2016:MsgBody":EVSEElectricalChargingDeviceStatus, urn:iso:15118:2:2016:MsgDataTypes,electricalChargingDeviceStatusType */
+ iso2electricalChargingDeviceStatusType EVSEElectricalChargingDeviceStatus ;
+ /* element: "urn:iso:15118:2:2016:MsgBody":EVSEMechanicalChargingDeviceStatus, urn:iso:15118:2:2016:MsgDataTypes,mechanicalChargingDeviceStatusType */
+ iso2mechanicalChargingDeviceStatusType EVSEMechanicalChargingDeviceStatus ;
+};
+
+/* Complex type name='urn:iso:15118:2:2016:MsgBody,PaymentDetailsReqType', base type name='BodyBaseType', content type='ELEMENT', isAbstract='false', hasTypeId='false', final='0', block='0', particle='("urn:iso:15118:2:2016:MsgBody":eMAID,"urn:iso:15118:2:2016:MsgBody":ContractSignatureCertChain)', derivedBy='EXTENSION'. */
+#define iso2PaymentDetailsReqType_eMAID_CHARACTERS_SIZE 15 + EXTRA_CHAR /* XML schema facet maxLength for urn:iso:15118:2:2016:MsgDataTypes,eMAIDType is 15 */
+struct iso2PaymentDetailsReqType {
+ /* element: "urn:iso:15118:2:2016:MsgBody":eMAID, urn:iso:15118:2:2016:MsgDataTypes,eMAIDType */
+ struct {
+ exi_string_character_t characters[iso2PaymentDetailsReqType_eMAID_CHARACTERS_SIZE];
+ uint16_t charactersLen;
+ } eMAID ;
+ /* element: "urn:iso:15118:2:2016:MsgBody":ContractSignatureCertChain, Complex type name='urn:iso:15118:2:2016:MsgDataTypes,CertificateChainType', base type name='anyType', content type='ELEMENT', isAbstract='false', hasTypeId='false', final='0', block='0', particle='("urn:iso:15118:2:2016:MsgDataTypes":Certificate,"urn:iso:15118:2:2016:MsgDataTypes":SubCertificates{0-1})', derivedBy='RESTRICTION'. */
+ struct iso2CertificateChainType ContractSignatureCertChain ;
+};
+
+/* Complex type name='urn:iso:15118:2:2016:MsgDataTypes,Generic_EVFinePositioningParametersType', base type name='EVFinePositioningParametersType', content type='ELEMENT', isAbstract='false', hasTypeId='false', final='0', block='0', particle='("urn:iso:15118:2:2016:MsgDataTypes":GenericParameters)', derivedBy='EXTENSION'. */
+struct iso2Generic_EVFinePositioningParametersType {
+ /* element: "urn:iso:15118:2:2016:MsgDataTypes":GenericParameters, Complex type name='urn:iso:15118:2:2016:MsgDataTypes,ParameterSetType', base type name='anyType', content type='ELEMENT', isAbstract='false', hasTypeId='false', final='0', block='0', particle='("urn:iso:15118:2:2016:MsgDataTypes":ParameterSetID,"urn:iso:15118:2:2016:MsgDataTypes":Parameter{1-16})', derivedBy='RESTRICTION'. */
+ struct iso2ParameterSetType GenericParameters ;
+};
+
+/* Complex type name='urn:iso:15118:2:2016:MsgBody,ConnectChargingDeviceReqType', base type name='BodyBaseType', content type='ELEMENT', isAbstract='false', hasTypeId='false', final='0', block='0', particle='("urn:iso:15118:2:2016:MsgBody":EVElectricalChargingDeviceStatus,"urn:iso:15118:2:2016:MsgBody":EVMechanicalChargingDeviceStatus)', derivedBy='EXTENSION'. */
+struct iso2ConnectChargingDeviceReqType {
+ /* element: "urn:iso:15118:2:2016:MsgBody":EVElectricalChargingDeviceStatus, urn:iso:15118:2:2016:MsgDataTypes,electricalChargingDeviceStatusType */
+ iso2electricalChargingDeviceStatusType EVElectricalChargingDeviceStatus ;
+ /* element: "urn:iso:15118:2:2016:MsgBody":EVMechanicalChargingDeviceStatus, urn:iso:15118:2:2016:MsgDataTypes,mechanicalChargingDeviceStatusType */
+ iso2mechanicalChargingDeviceStatusType EVMechanicalChargingDeviceStatus ;
+};
+
+/* Complex type name='urn:iso:15118:2:2016:MsgDataTypes,AC_EVSEChargeParameterType', base type name='EVSEEnergyTransferParameterType', content type='ELEMENT', isAbstract='false', hasTypeId='false', final='0', block='0', particle='("urn:iso:15118:2:2016:MsgDataTypes":EVSEMaximumChargeCurrent,"urn:iso:15118:2:2016:MsgDataTypes":EVSENominalVoltage,"urn:iso:15118:2:2016:MsgDataTypes":EVSENominalFrequency)', derivedBy='EXTENSION'. */
+struct iso2AC_EVSEChargeParameterType {
+ /* element: "urn:iso:15118:2:2016:MsgDataTypes":EVSEMaximumChargeCurrent, Complex type name='urn:iso:15118:2:2016:MsgDataTypes,PhysicalValueType', base type name='anyType', content type='ELEMENT', isAbstract='false', hasTypeId='false', final='0', block='0', particle='("urn:iso:15118:2:2016:MsgDataTypes":Exponent,"urn:iso:15118:2:2016:MsgDataTypes":Value)', derivedBy='RESTRICTION'. */
+ struct iso2PhysicalValueType EVSEMaximumChargeCurrent ;
+ /* element: "urn:iso:15118:2:2016:MsgDataTypes":EVSENominalVoltage, Complex type name='urn:iso:15118:2:2016:MsgDataTypes,PhysicalValueType', base type name='anyType', content type='ELEMENT', isAbstract='false', hasTypeId='false', final='0', block='0', particle='("urn:iso:15118:2:2016:MsgDataTypes":Exponent,"urn:iso:15118:2:2016:MsgDataTypes":Value)', derivedBy='RESTRICTION'. */
+ struct iso2PhysicalValueType EVSENominalVoltage ;
+ /* element: "urn:iso:15118:2:2016:MsgDataTypes":EVSENominalFrequency, Complex type name='urn:iso:15118:2:2016:MsgDataTypes,PhysicalValueType', base type name='anyType', content type='ELEMENT', isAbstract='false', hasTypeId='false', final='0', block='0', particle='("urn:iso:15118:2:2016:MsgDataTypes":Exponent,"urn:iso:15118:2:2016:MsgDataTypes":Value)', derivedBy='RESTRICTION'. */
+ struct iso2PhysicalValueType EVSENominalFrequency ;
+};
+
+/* Complex type name='urn:iso:15118:2:2016:MsgDataTypes,SalesTariffEntryType', base type name='EntryType', content type='ELEMENT', isAbstract='false', hasTypeId='false', final='0', block='0', particle='(("urn:iso:15118:2:2016:MsgDataTypes":RelativeTimeInterval),("urn:iso:15118:2:2016:MsgDataTypes":EPriceLevel{0-1},"urn:iso:15118:2:2016:MsgDataTypes":ConsumptionCost{0-3}))', derivedBy='EXTENSION'. */
+#define iso2SalesTariffEntryType_ConsumptionCost_ARRAY_SIZE 3
+struct iso2SalesTariffEntryType {
+ /* element: "urn:iso:15118:2:2016:MsgDataTypes":RelativeTimeInterval, Complex type name='urn:iso:15118:2:2016:MsgDataTypes,RelativeTimeIntervalType', base type name='anyType', content type='ELEMENT', isAbstract='false', hasTypeId='false', final='0', block='0', particle='("urn:iso:15118:2:2016:MsgDataTypes":start,"urn:iso:15118:2:2016:MsgDataTypes":duration{0-1})', derivedBy='RESTRICTION'. */
+ struct iso2RelativeTimeIntervalType RelativeTimeInterval ;
+ /* element: "urn:iso:15118:2:2016:MsgDataTypes":EPriceLevel, http://www.w3.org/2001/XMLSchema,unsignedByte */
+ uint8_t EPriceLevel ;
+ unsigned int EPriceLevel_isUsed:1;
+ /* element: "urn:iso:15118:2:2016:MsgDataTypes":ConsumptionCost, Complex type name='urn:iso:15118:2:2016:MsgDataTypes,ConsumptionCostType', base type name='anyType', content type='ELEMENT', isAbstract='false', hasTypeId='false', final='0', block='0', particle='("urn:iso:15118:2:2016:MsgDataTypes":startValue,"urn:iso:15118:2:2016:MsgDataTypes":Cost{1-3})', derivedBy='RESTRICTION'. */
+ struct {
+ struct iso2ConsumptionCostType array[iso2SalesTariffEntryType_ConsumptionCost_ARRAY_SIZE];
+ uint16_t arrayLen;
+ } ConsumptionCost;
+};
+
+/* Complex type name='urn:iso:15118:2:2016:MsgDataTypes,DC_EVSEBidirectionalParameterType', base type name='DC_EVSEChargeParameterType', content type='ELEMENT', isAbstract='false', hasTypeId='false', final='0', block='0', particle='(("urn:iso:15118:2:2016:MsgDataTypes":EVSEMaximumChargePower,"urn:iso:15118:2:2016:MsgDataTypes":EVSEMaximumChargeCurrent,"urn:iso:15118:2:2016:MsgDataTypes":EVSEMinimumChargeCurrent,"urn:iso:15118:2:2016:MsgDataTypes":EVSEMaximumVoltage,"urn:iso:15118:2:2016:MsgDataTypes":EVSEMinimumVoltage,"urn:iso:15118:2:2016:MsgDataTypes":EVSECurrentRegulationTolerance{0-1},"urn:iso:15118:2:2016:MsgDataTypes":EVSEPeakCurrentRipple,"urn:iso:15118:2:2016:MsgDataTypes":EVSEEnergyToBeDelivered{0-1}),("urn:iso:15118:2:2016:MsgDataTypes":EVSEMaximumDischargePower,"urn:iso:15118:2:2016:MsgDataTypes":EVSEMaximumDischargeCurrent,"urn:iso:15118:2:2016:MsgDataTypes":EVSEMinimumDischargeCurrent))', derivedBy='EXTENSION'. */
+struct iso2DC_EVSEBidirectionalParameterType {
+ /* element: "urn:iso:15118:2:2016:MsgDataTypes":EVSEMaximumChargePower, Complex type name='urn:iso:15118:2:2016:MsgDataTypes,PhysicalValueType', base type name='anyType', content type='ELEMENT', isAbstract='false', hasTypeId='false', final='0', block='0', particle='("urn:iso:15118:2:2016:MsgDataTypes":Exponent,"urn:iso:15118:2:2016:MsgDataTypes":Value)', derivedBy='RESTRICTION'. */
+ struct iso2PhysicalValueType EVSEMaximumChargePower ;
+ /* element: "urn:iso:15118:2:2016:MsgDataTypes":EVSEMaximumChargeCurrent, Complex type name='urn:iso:15118:2:2016:MsgDataTypes,PhysicalValueType', base type name='anyType', content type='ELEMENT', isAbstract='false', hasTypeId='false', final='0', block='0', particle='("urn:iso:15118:2:2016:MsgDataTypes":Exponent,"urn:iso:15118:2:2016:MsgDataTypes":Value)', derivedBy='RESTRICTION'. */
+ struct iso2PhysicalValueType EVSEMaximumChargeCurrent ;
+ /* element: "urn:iso:15118:2:2016:MsgDataTypes":EVSEMinimumChargeCurrent, Complex type name='urn:iso:15118:2:2016:MsgDataTypes,PhysicalValueType', base type name='anyType', content type='ELEMENT', isAbstract='false', hasTypeId='false', final='0', block='0', particle='("urn:iso:15118:2:2016:MsgDataTypes":Exponent,"urn:iso:15118:2:2016:MsgDataTypes":Value)', derivedBy='RESTRICTION'. */
+ struct iso2PhysicalValueType EVSEMinimumChargeCurrent ;
+ /* element: "urn:iso:15118:2:2016:MsgDataTypes":EVSEMaximumVoltage, Complex type name='urn:iso:15118:2:2016:MsgDataTypes,PhysicalValueType', base type name='anyType', content type='ELEMENT', isAbstract='false', hasTypeId='false', final='0', block='0', particle='("urn:iso:15118:2:2016:MsgDataTypes":Exponent,"urn:iso:15118:2:2016:MsgDataTypes":Value)', derivedBy='RESTRICTION'. */
+ struct iso2PhysicalValueType EVSEMaximumVoltage ;
+ /* element: "urn:iso:15118:2:2016:MsgDataTypes":EVSEMinimumVoltage, Complex type name='urn:iso:15118:2:2016:MsgDataTypes,PhysicalValueType', base type name='anyType', content type='ELEMENT', isAbstract='false', hasTypeId='false', final='0', block='0', particle='("urn:iso:15118:2:2016:MsgDataTypes":Exponent,"urn:iso:15118:2:2016:MsgDataTypes":Value)', derivedBy='RESTRICTION'. */
+ struct iso2PhysicalValueType EVSEMinimumVoltage ;
+ /* element: "urn:iso:15118:2:2016:MsgDataTypes":EVSECurrentRegulationTolerance, Complex type name='urn:iso:15118:2:2016:MsgDataTypes,PhysicalValueType', base type name='anyType', content type='ELEMENT', isAbstract='false', hasTypeId='false', final='0', block='0', particle='("urn:iso:15118:2:2016:MsgDataTypes":Exponent,"urn:iso:15118:2:2016:MsgDataTypes":Value)', derivedBy='RESTRICTION'. */
+ struct iso2PhysicalValueType EVSECurrentRegulationTolerance ;
+ unsigned int EVSECurrentRegulationTolerance_isUsed:1;
+ /* element: "urn:iso:15118:2:2016:MsgDataTypes":EVSEPeakCurrentRipple, Complex type name='urn:iso:15118:2:2016:MsgDataTypes,PhysicalValueType', base type name='anyType', content type='ELEMENT', isAbstract='false', hasTypeId='false', final='0', block='0', particle='("urn:iso:15118:2:2016:MsgDataTypes":Exponent,"urn:iso:15118:2:2016:MsgDataTypes":Value)', derivedBy='RESTRICTION'. */
+ struct iso2PhysicalValueType EVSEPeakCurrentRipple ;
+ /* element: "urn:iso:15118:2:2016:MsgDataTypes":EVSEEnergyToBeDelivered, Complex type name='urn:iso:15118:2:2016:MsgDataTypes,PhysicalValueType', base type name='anyType', content type='ELEMENT', isAbstract='false', hasTypeId='false', final='0', block='0', particle='("urn:iso:15118:2:2016:MsgDataTypes":Exponent,"urn:iso:15118:2:2016:MsgDataTypes":Value)', derivedBy='RESTRICTION'. */
+ struct iso2PhysicalValueType EVSEEnergyToBeDelivered ;
+ unsigned int EVSEEnergyToBeDelivered_isUsed:1;
+ /* element: "urn:iso:15118:2:2016:MsgDataTypes":EVSEMaximumDischargePower, Complex type name='urn:iso:15118:2:2016:MsgDataTypes,PhysicalValueType', base type name='anyType', content type='ELEMENT', isAbstract='false', hasTypeId='false', final='0', block='0', particle='("urn:iso:15118:2:2016:MsgDataTypes":Exponent,"urn:iso:15118:2:2016:MsgDataTypes":Value)', derivedBy='RESTRICTION'. */
+ struct iso2PhysicalValueType EVSEMaximumDischargePower ;
+ /* element: "urn:iso:15118:2:2016:MsgDataTypes":EVSEMaximumDischargeCurrent, Complex type name='urn:iso:15118:2:2016:MsgDataTypes,PhysicalValueType', base type name='anyType', content type='ELEMENT', isAbstract='false', hasTypeId='false', final='0', block='0', particle='("urn:iso:15118:2:2016:MsgDataTypes":Exponent,"urn:iso:15118:2:2016:MsgDataTypes":Value)', derivedBy='RESTRICTION'. */
+ struct iso2PhysicalValueType EVSEMaximumDischargeCurrent ;
+ /* element: "urn:iso:15118:2:2016:MsgDataTypes":EVSEMinimumDischargeCurrent, Complex type name='urn:iso:15118:2:2016:MsgDataTypes,PhysicalValueType', base type name='anyType', content type='ELEMENT', isAbstract='false', hasTypeId='false', final='0', block='0', particle='("urn:iso:15118:2:2016:MsgDataTypes":Exponent,"urn:iso:15118:2:2016:MsgDataTypes":Value)', derivedBy='RESTRICTION'. */
+ struct iso2PhysicalValueType EVSEMinimumDischargeCurrent ;
};
/* Complex type name='urn:iso:15118:2:2016:MsgDataTypes,DisplayParametersType', base type name='anyType', content type='ELEMENT', isAbstract='false', hasTypeId='false', final='0', block='0', particle='("urn:iso:15118:2:2016:MsgDataTypes":CurrentRange{0-1},"urn:iso:15118:2:2016:MsgDataTypes":CurrentSOC{0-1},"urn:iso:15118:2:2016:MsgDataTypes":TargetSOC{0-1},"urn:iso:15118:2:2016:MsgDataTypes":BulkSOC{0-1},"urn:iso:15118:2:2016:MsgDataTypes":MinimumSOC{0-1},"urn:iso:15118:2:2016:MsgDataTypes":ChargingPerformance{0-1},"urn:iso:15118:2:2016:MsgDataTypes":RemainingTimeToTargetSOC{0-1},"urn:iso:15118:2:2016:MsgDataTypes":RemainingTimeToBulkSOC{0-1},"urn:iso:15118:2:2016:MsgDataTypes":RemainingTimeToMinimumSOC{0-1},"urn:iso:15118:2:2016:MsgDataTypes":ChargingComplete{0-1},"urn:iso:15118:2:2016:MsgDataTypes":BulkChargingComplete{0-1},"urn:iso:15118:2:2016:MsgDataTypes":InletHot{0-1})', derivedBy='RESTRICTION'. */
-struct v2gDisplayParametersType {
+struct iso2DisplayParametersType {
/* element: "urn:iso:15118:2:2016:MsgDataTypes":CurrentRange, http://www.w3.org/2001/XMLSchema,unsignedShort */
uint16_t CurrentRange ;
unsigned int CurrentRange_isUsed:1;
@@ -1361,7 +1701,7 @@ struct v2gDisplayParametersType {
int8_t MinimumSOC ;
unsigned int MinimumSOC_isUsed:1;
/* element: "urn:iso:15118:2:2016:MsgDataTypes":ChargingPerformance, Complex type name='urn:iso:15118:2:2016:MsgDataTypes,PhysicalValueType', base type name='anyType', content type='ELEMENT', isAbstract='false', hasTypeId='false', final='0', block='0', particle='("urn:iso:15118:2:2016:MsgDataTypes":Exponent,"urn:iso:15118:2:2016:MsgDataTypes":Value)', derivedBy='RESTRICTION'. */
- struct v2gPhysicalValueType ChargingPerformance ;
+ struct iso2PhysicalValueType ChargingPerformance ;
unsigned int ChargingPerformance_isUsed:1;
/* element: "urn:iso:15118:2:2016:MsgDataTypes":RemainingTimeToTargetSOC, urn:iso:15118:2:2016:MsgDataTypes,percentValueType */
int8_t RemainingTimeToTargetSOC ;
@@ -1383,731 +1723,181 @@ struct v2gDisplayParametersType {
unsigned int InletHot_isUsed:1;
};
-/* Complex type name='urn:iso:15118:2:2016:MsgBody,SystemStatusReqType', base type name='BodyBaseType', content type='ELEMENT', isAbstract='false', hasTypeId='false', final='0', block='0', particle='("urn:iso:15118:2:2016:MsgBody":OperationMode,"urn:iso:15118:2:2016:MsgBody":EVMechanicalChargingDeviceStatus)', derivedBy='EXTENSION'. */
-struct v2gSystemStatusReqType {
- /* element: "urn:iso:15118:2:2016:MsgBody":OperationMode, urn:iso:15118:2:2016:MsgDataTypes,operationModeType */
- v2goperationModeType OperationMode ;
- /* element: "urn:iso:15118:2:2016:MsgBody":EVMechanicalChargingDeviceStatus, urn:iso:15118:2:2016:MsgDataTypes,mechanicalChargingDeviceStatusType */
- v2gmechanicalChargingDeviceStatusType EVMechanicalChargingDeviceStatus ;
-};
-
-/* Complex type name='urn:iso:15118:2:2016:MsgDataTypes,CostType', base type name='anyType', content type='ELEMENT', isAbstract='false', hasTypeId='false', final='0', block='0', particle='("urn:iso:15118:2:2016:MsgDataTypes":costKind,"urn:iso:15118:2:2016:MsgDataTypes":amount)', derivedBy='RESTRICTION'. */
-struct v2gCostType {
- /* element: "urn:iso:15118:2:2016:MsgDataTypes":costKind, urn:iso:15118:2:2016:MsgDataTypes,costKindType */
- v2gcostKindType costKind ;
- /* element: "urn:iso:15118:2:2016:MsgDataTypes":amount, Complex type name='urn:iso:15118:2:2016:MsgDataTypes,PhysicalValueType', base type name='anyType', content type='ELEMENT', isAbstract='false', hasTypeId='false', final='0', block='0', particle='("urn:iso:15118:2:2016:MsgDataTypes":Exponent,"urn:iso:15118:2:2016:MsgDataTypes":Value)', derivedBy='RESTRICTION'. */
- struct v2gPhysicalValueType amount ;
-};
-
-/* Complex type name='urn:iso:15118:2:2016:MsgBody,DC_BidirectionalControlReqType', base type name='ChargeLoopReqType', content type='ELEMENT', isAbstract='false', hasTypeId='false', final='0', block='0', particle='(("urn:iso:15118:2:2016:MsgBody":EVTargetEnergyRequest,"urn:iso:15118:2:2016:MsgBody":EVMaximumEnergyRequest{0-1},"urn:iso:15118:2:2016:MsgBody":EVMinimumEnergyRequest{0-1},"urn:iso:15118:2:2016:MsgBody":DisplayParameters{0-1}),("urn:iso:15118:2:2016:MsgBody":EVTargetCurrent,"urn:iso:15118:2:2016:MsgBody":EVTargetVoltage,"urn:iso:15118:2:2016:MsgBody":EVMaximumVoltage,"urn:iso:15118:2:2016:MsgBody":EVMinimumVoltage,"urn:iso:15118:2:2016:MsgBody":EVMaximumChargeCurrent,"urn:iso:15118:2:2016:MsgBody":EVMaximumDischargeCurrent{0-1},"urn:iso:15118:2:2016:MsgBody":EVMaximumChargePower{0-1},"urn:iso:15118:2:2016:MsgBody":EVMaximumDischargePower{0-1}))', derivedBy='EXTENSION'. */
-struct v2gDC_BidirectionalControlReqType {
- /* element: "urn:iso:15118:2:2016:MsgBody":EVTargetEnergyRequest, Complex type name='urn:iso:15118:2:2016:MsgDataTypes,PhysicalValueType', base type name='anyType', content type='ELEMENT', isAbstract='false', hasTypeId='false', final='0', block='0', particle='("urn:iso:15118:2:2016:MsgDataTypes":Exponent,"urn:iso:15118:2:2016:MsgDataTypes":Value)', derivedBy='RESTRICTION'. */
- struct v2gPhysicalValueType EVTargetEnergyRequest ;
- /* element: "urn:iso:15118:2:2016:MsgBody":EVMaximumEnergyRequest, Complex type name='urn:iso:15118:2:2016:MsgDataTypes,PhysicalValueType', base type name='anyType', content type='ELEMENT', isAbstract='false', hasTypeId='false', final='0', block='0', particle='("urn:iso:15118:2:2016:MsgDataTypes":Exponent,"urn:iso:15118:2:2016:MsgDataTypes":Value)', derivedBy='RESTRICTION'. */
- struct v2gPhysicalValueType EVMaximumEnergyRequest ;
- unsigned int EVMaximumEnergyRequest_isUsed:1;
- /* element: "urn:iso:15118:2:2016:MsgBody":EVMinimumEnergyRequest, Complex type name='urn:iso:15118:2:2016:MsgDataTypes,PhysicalValueType', base type name='anyType', content type='ELEMENT', isAbstract='false', hasTypeId='false', final='0', block='0', particle='("urn:iso:15118:2:2016:MsgDataTypes":Exponent,"urn:iso:15118:2:2016:MsgDataTypes":Value)', derivedBy='RESTRICTION'. */
- struct v2gPhysicalValueType EVMinimumEnergyRequest ;
- unsigned int EVMinimumEnergyRequest_isUsed:1;
- /* element: "urn:iso:15118:2:2016:MsgBody":DisplayParameters, Complex type name='urn:iso:15118:2:2016:MsgDataTypes,DisplayParametersType', base type name='anyType', content type='ELEMENT', isAbstract='false', hasTypeId='false', final='0', block='0', particle='("urn:iso:15118:2:2016:MsgDataTypes":CurrentRange{0-1},"urn:iso:15118:2:2016:MsgDataTypes":CurrentSOC{0-1},"urn:iso:15118:2:2016:MsgDataTypes":TargetSOC{0-1},"urn:iso:15118:2:2016:MsgDataTypes":BulkSOC{0-1},"urn:iso:15118:2:2016:MsgDataTypes":MinimumSOC{0-1},"urn:iso:15118:2:2016:MsgDataTypes":ChargingPerformance{0-1},"urn:iso:15118:2:2016:MsgDataTypes":RemainingTimeToTargetSOC{0-1},"urn:iso:15118:2:2016:MsgDataTypes":RemainingTimeToBulkSOC{0-1},"urn:iso:15118:2:2016:MsgDataTypes":RemainingTimeToMinimumSOC{0-1},"urn:iso:15118:2:2016:MsgDataTypes":ChargingComplete{0-1},"urn:iso:15118:2:2016:MsgDataTypes":BulkChargingComplete{0-1},"urn:iso:15118:2:2016:MsgDataTypes":InletHot{0-1})', derivedBy='RESTRICTION'. */
- struct v2gDisplayParametersType DisplayParameters ;
- unsigned int DisplayParameters_isUsed:1;
- /* element: "urn:iso:15118:2:2016:MsgBody":EVTargetCurrent, Complex type name='urn:iso:15118:2:2016:MsgDataTypes,PhysicalValueType', base type name='anyType', content type='ELEMENT', isAbstract='false', hasTypeId='false', final='0', block='0', particle='("urn:iso:15118:2:2016:MsgDataTypes":Exponent,"urn:iso:15118:2:2016:MsgDataTypes":Value)', derivedBy='RESTRICTION'. */
- struct v2gPhysicalValueType EVTargetCurrent ;
- /* element: "urn:iso:15118:2:2016:MsgBody":EVTargetVoltage, Complex type name='urn:iso:15118:2:2016:MsgDataTypes,PhysicalValueType', base type name='anyType', content type='ELEMENT', isAbstract='false', hasTypeId='false', final='0', block='0', particle='("urn:iso:15118:2:2016:MsgDataTypes":Exponent,"urn:iso:15118:2:2016:MsgDataTypes":Value)', derivedBy='RESTRICTION'. */
- struct v2gPhysicalValueType EVTargetVoltage ;
- /* element: "urn:iso:15118:2:2016:MsgBody":EVMaximumVoltage, Complex type name='urn:iso:15118:2:2016:MsgDataTypes,PhysicalValueType', base type name='anyType', content type='ELEMENT', isAbstract='false', hasTypeId='false', final='0', block='0', particle='("urn:iso:15118:2:2016:MsgDataTypes":Exponent,"urn:iso:15118:2:2016:MsgDataTypes":Value)', derivedBy='RESTRICTION'. */
- struct v2gPhysicalValueType EVMaximumVoltage ;
- /* element: "urn:iso:15118:2:2016:MsgBody":EVMinimumVoltage, Complex type name='urn:iso:15118:2:2016:MsgDataTypes,PhysicalValueType', base type name='anyType', content type='ELEMENT', isAbstract='false', hasTypeId='false', final='0', block='0', particle='("urn:iso:15118:2:2016:MsgDataTypes":Exponent,"urn:iso:15118:2:2016:MsgDataTypes":Value)', derivedBy='RESTRICTION'. */
- struct v2gPhysicalValueType EVMinimumVoltage ;
- /* element: "urn:iso:15118:2:2016:MsgBody":EVMaximumChargeCurrent, Complex type name='urn:iso:15118:2:2016:MsgDataTypes,PhysicalValueType', base type name='anyType', content type='ELEMENT', isAbstract='false', hasTypeId='false', final='0', block='0', particle='("urn:iso:15118:2:2016:MsgDataTypes":Exponent,"urn:iso:15118:2:2016:MsgDataTypes":Value)', derivedBy='RESTRICTION'. */
- struct v2gPhysicalValueType EVMaximumChargeCurrent ;
- /* element: "urn:iso:15118:2:2016:MsgBody":EVMaximumDischargeCurrent, Complex type name='urn:iso:15118:2:2016:MsgDataTypes,PhysicalValueType', base type name='anyType', content type='ELEMENT', isAbstract='false', hasTypeId='false', final='0', block='0', particle='("urn:iso:15118:2:2016:MsgDataTypes":Exponent,"urn:iso:15118:2:2016:MsgDataTypes":Value)', derivedBy='RESTRICTION'. */
- struct v2gPhysicalValueType EVMaximumDischargeCurrent ;
- unsigned int EVMaximumDischargeCurrent_isUsed:1;
- /* element: "urn:iso:15118:2:2016:MsgBody":EVMaximumChargePower, Complex type name='urn:iso:15118:2:2016:MsgDataTypes,PhysicalValueType', base type name='anyType', content type='ELEMENT', isAbstract='false', hasTypeId='false', final='0', block='0', particle='("urn:iso:15118:2:2016:MsgDataTypes":Exponent,"urn:iso:15118:2:2016:MsgDataTypes":Value)', derivedBy='RESTRICTION'. */
- struct v2gPhysicalValueType EVMaximumChargePower ;
+/* Complex type name='urn:iso:15118:2:2016:MsgDataTypes,DC_EVBidirectionalParameterType', base type name='DC_EVChargeParameterType', content type='ELEMENT', isAbstract='false', hasTypeId='false', final='0', block='0', particle='((("urn:iso:15118:2:2016:MsgDataTypes":DepartureTime),("urn:iso:15118:2:2016:MsgDataTypes":EVMaximumChargePower{0-1},"urn:iso:15118:2:2016:MsgDataTypes":EVMinimumChargePower{0-1},"urn:iso:15118:2:2016:MsgDataTypes":EVMaximumChargeCurrent,"urn:iso:15118:2:2016:MsgDataTypes":EVMinimumChargeCurrent,"urn:iso:15118:2:2016:MsgDataTypes":EVMaximumVoltage,"urn:iso:15118:2:2016:MsgDataTypes":EVTargetEnergyRequest{0-1},"urn:iso:15118:2:2016:MsgDataTypes":EVMaximumEnergyRequest{0-1},"urn:iso:15118:2:2016:MsgDataTypes":EVMinimumEnergyRequest{0-1},"urn:iso:15118:2:2016:MsgDataTypes":CurrentSOC{0-1},"urn:iso:15118:2:2016:MsgDataTypes":TargetSOC{0-1},"urn:iso:15118:2:2016:MsgDataTypes":BulkSOC{0-1})),("urn:iso:15118:2:2016:MsgDataTypes":EVMaximumDischargePower{0-1},"urn:iso:15118:2:2016:MsgDataTypes":EVMinimumDischargePower{0-1},"urn:iso:15118:2:2016:MsgDataTypes":EVMaximumDischargeCurrent,"urn:iso:15118:2:2016:MsgDataTypes":EVMinimumDischargeCurrent,"urn:iso:15118:2:2016:MsgDataTypes":EVMinimumVoltage,"urn:iso:15118:2:2016:MsgDataTypes":MinimumSOC{0-1}))', derivedBy='EXTENSION'. */
+struct iso2DC_EVBidirectionalParameterType {
+ /* element: "urn:iso:15118:2:2016:MsgDataTypes":DepartureTime, http://www.w3.org/2001/XMLSchema,unsignedInt */
+ uint32_t DepartureTime ;
+ /* element: "urn:iso:15118:2:2016:MsgDataTypes":EVMaximumChargePower, Complex type name='urn:iso:15118:2:2016:MsgDataTypes,PhysicalValueType', base type name='anyType', content type='ELEMENT', isAbstract='false', hasTypeId='false', final='0', block='0', particle='("urn:iso:15118:2:2016:MsgDataTypes":Exponent,"urn:iso:15118:2:2016:MsgDataTypes":Value)', derivedBy='RESTRICTION'. */
+ struct iso2PhysicalValueType EVMaximumChargePower ;
unsigned int EVMaximumChargePower_isUsed:1;
- /* element: "urn:iso:15118:2:2016:MsgBody":EVMaximumDischargePower, Complex type name='urn:iso:15118:2:2016:MsgDataTypes,PhysicalValueType', base type name='anyType', content type='ELEMENT', isAbstract='false', hasTypeId='false', final='0', block='0', particle='("urn:iso:15118:2:2016:MsgDataTypes":Exponent,"urn:iso:15118:2:2016:MsgDataTypes":Value)', derivedBy='RESTRICTION'. */
- struct v2gPhysicalValueType EVMaximumDischargePower ;
+ /* element: "urn:iso:15118:2:2016:MsgDataTypes":EVMinimumChargePower, Complex type name='urn:iso:15118:2:2016:MsgDataTypes,PhysicalValueType', base type name='anyType', content type='ELEMENT', isAbstract='false', hasTypeId='false', final='0', block='0', particle='("urn:iso:15118:2:2016:MsgDataTypes":Exponent,"urn:iso:15118:2:2016:MsgDataTypes":Value)', derivedBy='RESTRICTION'. */
+ struct iso2PhysicalValueType EVMinimumChargePower ;
+ unsigned int EVMinimumChargePower_isUsed:1;
+ /* element: "urn:iso:15118:2:2016:MsgDataTypes":EVMaximumChargeCurrent, Complex type name='urn:iso:15118:2:2016:MsgDataTypes,PhysicalValueType', base type name='anyType', content type='ELEMENT', isAbstract='false', hasTypeId='false', final='0', block='0', particle='("urn:iso:15118:2:2016:MsgDataTypes":Exponent,"urn:iso:15118:2:2016:MsgDataTypes":Value)', derivedBy='RESTRICTION'. */
+ struct iso2PhysicalValueType EVMaximumChargeCurrent ;
+ /* element: "urn:iso:15118:2:2016:MsgDataTypes":EVMinimumChargeCurrent, Complex type name='urn:iso:15118:2:2016:MsgDataTypes,PhysicalValueType', base type name='anyType', content type='ELEMENT', isAbstract='false', hasTypeId='false', final='0', block='0', particle='("urn:iso:15118:2:2016:MsgDataTypes":Exponent,"urn:iso:15118:2:2016:MsgDataTypes":Value)', derivedBy='RESTRICTION'. */
+ struct iso2PhysicalValueType EVMinimumChargeCurrent ;
+ /* element: "urn:iso:15118:2:2016:MsgDataTypes":EVMaximumVoltage, Complex type name='urn:iso:15118:2:2016:MsgDataTypes,PhysicalValueType', base type name='anyType', content type='ELEMENT', isAbstract='false', hasTypeId='false', final='0', block='0', particle='("urn:iso:15118:2:2016:MsgDataTypes":Exponent,"urn:iso:15118:2:2016:MsgDataTypes":Value)', derivedBy='RESTRICTION'. */
+ struct iso2PhysicalValueType EVMaximumVoltage ;
+ /* element: "urn:iso:15118:2:2016:MsgDataTypes":EVTargetEnergyRequest, Complex type name='urn:iso:15118:2:2016:MsgDataTypes,PhysicalValueType', base type name='anyType', content type='ELEMENT', isAbstract='false', hasTypeId='false', final='0', block='0', particle='("urn:iso:15118:2:2016:MsgDataTypes":Exponent,"urn:iso:15118:2:2016:MsgDataTypes":Value)', derivedBy='RESTRICTION'. */
+ struct iso2PhysicalValueType EVTargetEnergyRequest ;
+ unsigned int EVTargetEnergyRequest_isUsed:1;
+ /* element: "urn:iso:15118:2:2016:MsgDataTypes":EVMaximumEnergyRequest, Complex type name='urn:iso:15118:2:2016:MsgDataTypes,PhysicalValueType', base type name='anyType', content type='ELEMENT', isAbstract='false', hasTypeId='false', final='0', block='0', particle='("urn:iso:15118:2:2016:MsgDataTypes":Exponent,"urn:iso:15118:2:2016:MsgDataTypes":Value)', derivedBy='RESTRICTION'. */
+ struct iso2PhysicalValueType EVMaximumEnergyRequest ;
+ unsigned int EVMaximumEnergyRequest_isUsed:1;
+ /* element: "urn:iso:15118:2:2016:MsgDataTypes":EVMinimumEnergyRequest, Complex type name='urn:iso:15118:2:2016:MsgDataTypes,PhysicalValueType', base type name='anyType', content type='ELEMENT', isAbstract='false', hasTypeId='false', final='0', block='0', particle='("urn:iso:15118:2:2016:MsgDataTypes":Exponent,"urn:iso:15118:2:2016:MsgDataTypes":Value)', derivedBy='RESTRICTION'. */
+ struct iso2PhysicalValueType EVMinimumEnergyRequest ;
+ unsigned int EVMinimumEnergyRequest_isUsed:1;
+ /* element: "urn:iso:15118:2:2016:MsgDataTypes":CurrentSOC, urn:iso:15118:2:2016:MsgDataTypes,percentValueType */
+ int8_t CurrentSOC ;
+ unsigned int CurrentSOC_isUsed:1;
+ /* element: "urn:iso:15118:2:2016:MsgDataTypes":TargetSOC, urn:iso:15118:2:2016:MsgDataTypes,percentValueType */
+ int8_t TargetSOC ;
+ unsigned int TargetSOC_isUsed:1;
+ /* element: "urn:iso:15118:2:2016:MsgDataTypes":BulkSOC, urn:iso:15118:2:2016:MsgDataTypes,percentValueType */
+ int8_t BulkSOC ;
+ unsigned int BulkSOC_isUsed:1;
+ /* element: "urn:iso:15118:2:2016:MsgDataTypes":EVMaximumDischargePower, Complex type name='urn:iso:15118:2:2016:MsgDataTypes,PhysicalValueType', base type name='anyType', content type='ELEMENT', isAbstract='false', hasTypeId='false', final='0', block='0', particle='("urn:iso:15118:2:2016:MsgDataTypes":Exponent,"urn:iso:15118:2:2016:MsgDataTypes":Value)', derivedBy='RESTRICTION'. */
+ struct iso2PhysicalValueType EVMaximumDischargePower ;
unsigned int EVMaximumDischargePower_isUsed:1;
-};
-
-/* Complex type name='urn:iso:15118:2:2016:MsgBody,AC_BidirectionalControlResType', base type name='V2GResponseType', content type='ELEMENT', isAbstract='false', hasTypeId='false', final='0', block='0', particle='(("urn:iso:15118:2:2016:MsgBody":ResponseCode,"urn:iso:15118:2:2016:MsgBody":EVSEStatus{0-1}),("urn:iso:15118:2:2016:MsgBody":EVSEProcessing,"urn:iso:15118:2:2016:MsgBody":EVSETargetPower,"urn:iso:15118:2:2016:MsgBody":EVSETargetReactivePower,"urn:iso:15118:2:2016:MsgBody":EVSEID,"urn:iso:15118:2:2016:MsgBody":SAScheduleTupleID{0-1},"urn:iso:15118:2:2016:MsgBody":MeterInfo{0-1},"urn:iso:15118:2:2016:MsgBody":ReceiptRequired{0-1}))', derivedBy='EXTENSION'. */
-#define v2gAC_BidirectionalControlResType_EVSEID_CHARACTERS_SIZE 37 /* XML schema facet maxLength for urn:iso:15118:2:2016:MsgDataTypes,evseIDType is 37 */
-struct v2gAC_BidirectionalControlResType {
- /* element: "urn:iso:15118:2:2016:MsgBody":ResponseCode, urn:iso:15118:2:2016:MsgDataTypes,responseCodeType */
- v2gresponseCodeType ResponseCode ;
- /* element: "urn:iso:15118:2:2016:MsgBody":EVSEStatus, Complex type name='urn:iso:15118:2:2016:MsgDataTypes,EVSEStatusType', base type name='anyType', content type='ELEMENT', isAbstract='false', hasTypeId='false', final='0', block='0', particle='("urn:iso:15118:2:2016:MsgDataTypes":NotificationMaxDelay,"urn:iso:15118:2:2016:MsgDataTypes":EVSENotification)', derivedBy='RESTRICTION'. */
- struct v2gEVSEStatusType EVSEStatus ;
- unsigned int EVSEStatus_isUsed:1;
- /* element: "urn:iso:15118:2:2016:MsgBody":EVSEProcessing, urn:iso:15118:2:2016:MsgDataTypes,EVSEProcessingType */
- v2gEVSEProcessingType EVSEProcessing ;
- /* element: "urn:iso:15118:2:2016:MsgBody":EVSETargetPower, Complex type name='urn:iso:15118:2:2016:MsgDataTypes,PhysicalValueType', base type name='anyType', content type='ELEMENT', isAbstract='false', hasTypeId='false', final='0', block='0', particle='("urn:iso:15118:2:2016:MsgDataTypes":Exponent,"urn:iso:15118:2:2016:MsgDataTypes":Value)', derivedBy='RESTRICTION'. */
- struct v2gPhysicalValueType EVSETargetPower ;
- /* element: "urn:iso:15118:2:2016:MsgBody":EVSETargetReactivePower, Complex type name='urn:iso:15118:2:2016:MsgDataTypes,PhysicalValueType', base type name='anyType', content type='ELEMENT', isAbstract='false', hasTypeId='false', final='0', block='0', particle='("urn:iso:15118:2:2016:MsgDataTypes":Exponent,"urn:iso:15118:2:2016:MsgDataTypes":Value)', derivedBy='RESTRICTION'. */
- struct v2gPhysicalValueType EVSETargetReactivePower ;
- /* element: "urn:iso:15118:2:2016:MsgBody":EVSEID, urn:iso:15118:2:2016:MsgDataTypes,evseIDType */
- struct {
- exi_string_character_t characters[v2gAC_BidirectionalControlResType_EVSEID_CHARACTERS_SIZE];
- uint16_t charactersLen;
- } EVSEID ;
- /* element: "urn:iso:15118:2:2016:MsgBody":SAScheduleTupleID, urn:iso:15118:2:2016:MsgDataTypes,SAIDType */
- uint8_t SAScheduleTupleID ;
- unsigned int SAScheduleTupleID_isUsed:1;
- /* element: "urn:iso:15118:2:2016:MsgBody":MeterInfo, Complex type name='urn:iso:15118:2:2016:MsgDataTypes,MeterInfoType', base type name='anyType', content type='ELEMENT', isAbstract='false', hasTypeId='false', final='0', block='0', particle='("urn:iso:15118:2:2016:MsgDataTypes":MeterID,"urn:iso:15118:2:2016:MsgDataTypes":MeterReadingCharged{0-1},"urn:iso:15118:2:2016:MsgDataTypes":MeterReadingDischarged{0-1},"urn:iso:15118:2:2016:MsgDataTypes":SigMeterReading{0-1},"urn:iso:15118:2:2016:MsgDataTypes":MeterStatus{0-1},"urn:iso:15118:2:2016:MsgDataTypes":TMeter{0-1})', derivedBy='RESTRICTION'. */
- struct v2gMeterInfoType MeterInfo ;
- unsigned int MeterInfo_isUsed:1;
- /* element: "urn:iso:15118:2:2016:MsgBody":ReceiptRequired, http://www.w3.org/2001/XMLSchema,boolean */
- int ReceiptRequired ;
- unsigned int ReceiptRequired_isUsed:1;
-};
-
-/* Complex type name='urn:iso:15118:2:2016:MsgBody,SystemStatusResType', base type name='V2GResponseType', content type='ELEMENT', isAbstract='false', hasTypeId='false', final='0', block='0', particle='(("urn:iso:15118:2:2016:MsgBody":ResponseCode,"urn:iso:15118:2:2016:MsgBody":EVSEStatus{0-1}),("urn:iso:15118:2:2016:MsgBody":OperationMode,"urn:iso:15118:2:2016:MsgBody":EVSEMechanicalChargingDeviceStatus))', derivedBy='EXTENSION'. */
-struct v2gSystemStatusResType {
- /* element: "urn:iso:15118:2:2016:MsgBody":ResponseCode, urn:iso:15118:2:2016:MsgDataTypes,responseCodeType */
- v2gresponseCodeType ResponseCode ;
- /* element: "urn:iso:15118:2:2016:MsgBody":EVSEStatus, Complex type name='urn:iso:15118:2:2016:MsgDataTypes,EVSEStatusType', base type name='anyType', content type='ELEMENT', isAbstract='false', hasTypeId='false', final='0', block='0', particle='("urn:iso:15118:2:2016:MsgDataTypes":NotificationMaxDelay,"urn:iso:15118:2:2016:MsgDataTypes":EVSENotification)', derivedBy='RESTRICTION'. */
- struct v2gEVSEStatusType EVSEStatus ;
- unsigned int EVSEStatus_isUsed:1;
- /* element: "urn:iso:15118:2:2016:MsgBody":OperationMode, urn:iso:15118:2:2016:MsgDataTypes,operationModeType */
- v2goperationModeType OperationMode ;
- /* element: "urn:iso:15118:2:2016:MsgBody":EVSEMechanicalChargingDeviceStatus, urn:iso:15118:2:2016:MsgDataTypes,mechanicalChargingDeviceStatusType */
- v2gmechanicalChargingDeviceStatusType EVSEMechanicalChargingDeviceStatus ;
-};
-
-/* Complex type name='urn:iso:15118:2:2016:MsgBody,CertificateUpdateResType', base type name='V2GResponseType', content type='ELEMENT', isAbstract='false', hasTypeId='false', final='0', block='0', particle='(("urn:iso:15118:2:2016:MsgBody":ResponseCode,"urn:iso:15118:2:2016:MsgBody":EVSEStatus{0-1}),("urn:iso:15118:2:2016:MsgBody":SAProvisioningCertificateChain,"urn:iso:15118:2:2016:MsgBody":ContractSignatureCertChain,"urn:iso:15118:2:2016:MsgBody":ContractSignatureEncryptedPrivateKey,"urn:iso:15118:2:2016:MsgBody":DHpublickey,"urn:iso:15118:2:2016:MsgBody":eMAID,"urn:iso:15118:2:2016:MsgBody":RetryCounter{0-1}))', derivedBy='EXTENSION'. */
-struct v2gCertificateUpdateResType {
- /* element: "urn:iso:15118:2:2016:MsgBody":ResponseCode, urn:iso:15118:2:2016:MsgDataTypes,responseCodeType */
- v2gresponseCodeType ResponseCode ;
- /* element: "urn:iso:15118:2:2016:MsgBody":EVSEStatus, Complex type name='urn:iso:15118:2:2016:MsgDataTypes,EVSEStatusType', base type name='anyType', content type='ELEMENT', isAbstract='false', hasTypeId='false', final='0', block='0', particle='("urn:iso:15118:2:2016:MsgDataTypes":NotificationMaxDelay,"urn:iso:15118:2:2016:MsgDataTypes":EVSENotification)', derivedBy='RESTRICTION'. */
- struct v2gEVSEStatusType EVSEStatus ;
- unsigned int EVSEStatus_isUsed:1;
- /* element: "urn:iso:15118:2:2016:MsgBody":SAProvisioningCertificateChain, Complex type name='urn:iso:15118:2:2016:MsgDataTypes,CertificateChainType', base type name='anyType', content type='ELEMENT', isAbstract='false', hasTypeId='false', final='0', block='0', particle='("urn:iso:15118:2:2016:MsgDataTypes":Certificate,"urn:iso:15118:2:2016:MsgDataTypes":SubCertificates{0-1})', derivedBy='RESTRICTION'. */
- struct v2gCertificateChainType SAProvisioningCertificateChain ;
- /* element: "urn:iso:15118:2:2016:MsgBody":ContractSignatureCertChain, Complex type name='urn:iso:15118:2:2016:MsgDataTypes,CertificateChainType', base type name='anyType', content type='ELEMENT', isAbstract='false', hasTypeId='false', final='0', block='0', particle='("urn:iso:15118:2:2016:MsgDataTypes":Certificate,"urn:iso:15118:2:2016:MsgDataTypes":SubCertificates{0-1})', derivedBy='RESTRICTION'. */
- struct v2gCertificateChainType ContractSignatureCertChain ;
- /* element: "urn:iso:15118:2:2016:MsgBody":ContractSignatureEncryptedPrivateKey, Complex type name='urn:iso:15118:2:2016:MsgDataTypes,ContractSignatureEncryptedPrivateKeyType', base type name='encryptedPrivateKeyType', content type='SIMPLE', isAbstract='false', hasTypeId='false', final='0', block='0', derivedBy='EXTENSION'. */
- struct v2gContractSignatureEncryptedPrivateKeyType ContractSignatureEncryptedPrivateKey ;
- /* element: "urn:iso:15118:2:2016:MsgBody":DHpublickey, Complex type name='urn:iso:15118:2:2016:MsgDataTypes,DiffieHellmanPublickeyType', base type name='dHpublickeyType', content type='SIMPLE', isAbstract='false', hasTypeId='false', final='0', block='0', derivedBy='EXTENSION'. */
- struct v2gDiffieHellmanPublickeyType DHpublickey ;
- /* element: "urn:iso:15118:2:2016:MsgBody":eMAID, Complex type name='urn:iso:15118:2:2016:MsgDataTypes,EMAIDType', base type name='eMAIDType', content type='SIMPLE', isAbstract='false', hasTypeId='false', final='0', block='0', derivedBy='EXTENSION'. */
- struct v2gEMAIDType eMAID ;
- /* element: "urn:iso:15118:2:2016:MsgBody":RetryCounter, http://www.w3.org/2001/XMLSchema,short */
- int16_t RetryCounter ;
- unsigned int RetryCounter_isUsed:1;
-};
-
-/* Complex type name='urn:iso:15118:2:2016:MsgDataTypes,ParameterSetType', base type name='anyType', content type='ELEMENT', isAbstract='false', hasTypeId='false', final='0', block='0', particle='("urn:iso:15118:2:2016:MsgDataTypes":ParameterSetID,"urn:iso:15118:2:2016:MsgDataTypes":Parameter{1-16})', derivedBy='RESTRICTION'. */
-#define v2gParameterSetType_Parameter_ARRAY_SIZE 5
-struct v2gParameterSetType {
- /* element: "urn:iso:15118:2:2016:MsgDataTypes":ParameterSetID, http://www.w3.org/2001/XMLSchema,unsignedShort */
- uint16_t ParameterSetID ;
- /* element: "urn:iso:15118:2:2016:MsgDataTypes":Parameter, Complex type name='urn:iso:15118:2:2016:MsgDataTypes,ParameterType', base type name='anyType', content type='ELEMENT', isAbstract='false', hasTypeId='false', final='0', block='0', particle='("urn:iso:15118:2:2016:MsgDataTypes":boolValue|"urn:iso:15118:2:2016:MsgDataTypes":byteValue|"urn:iso:15118:2:2016:MsgDataTypes":shortValue|"urn:iso:15118:2:2016:MsgDataTypes":intValue|"urn:iso:15118:2:2016:MsgDataTypes":physicalValue|"urn:iso:15118:2:2016:MsgDataTypes":stringValue)', derivedBy='RESTRICTION'. */
- struct {
- struct v2gParameterType array[v2gParameterSetType_Parameter_ARRAY_SIZE];
- uint16_t arrayLen;
- } Parameter;
+ /* element: "urn:iso:15118:2:2016:MsgDataTypes":EVMinimumDischargePower, Complex type name='urn:iso:15118:2:2016:MsgDataTypes,PhysicalValueType', base type name='anyType', content type='ELEMENT', isAbstract='false', hasTypeId='false', final='0', block='0', particle='("urn:iso:15118:2:2016:MsgDataTypes":Exponent,"urn:iso:15118:2:2016:MsgDataTypes":Value)', derivedBy='RESTRICTION'. */
+ struct iso2PhysicalValueType EVMinimumDischargePower ;
+ unsigned int EVMinimumDischargePower_isUsed:1;
+ /* element: "urn:iso:15118:2:2016:MsgDataTypes":EVMaximumDischargeCurrent, Complex type name='urn:iso:15118:2:2016:MsgDataTypes,PhysicalValueType', base type name='anyType', content type='ELEMENT', isAbstract='false', hasTypeId='false', final='0', block='0', particle='("urn:iso:15118:2:2016:MsgDataTypes":Exponent,"urn:iso:15118:2:2016:MsgDataTypes":Value)', derivedBy='RESTRICTION'. */
+ struct iso2PhysicalValueType EVMaximumDischargeCurrent ;
+ /* element: "urn:iso:15118:2:2016:MsgDataTypes":EVMinimumDischargeCurrent, Complex type name='urn:iso:15118:2:2016:MsgDataTypes,PhysicalValueType', base type name='anyType', content type='ELEMENT', isAbstract='false', hasTypeId='false', final='0', block='0', particle='("urn:iso:15118:2:2016:MsgDataTypes":Exponent,"urn:iso:15118:2:2016:MsgDataTypes":Value)', derivedBy='RESTRICTION'. */
+ struct iso2PhysicalValueType EVMinimumDischargeCurrent ;
+ /* element: "urn:iso:15118:2:2016:MsgDataTypes":EVMinimumVoltage, Complex type name='urn:iso:15118:2:2016:MsgDataTypes,PhysicalValueType', base type name='anyType', content type='ELEMENT', isAbstract='false', hasTypeId='false', final='0', block='0', particle='("urn:iso:15118:2:2016:MsgDataTypes":Exponent,"urn:iso:15118:2:2016:MsgDataTypes":Value)', derivedBy='RESTRICTION'. */
+ struct iso2PhysicalValueType EVMinimumVoltage ;
+ /* element: "urn:iso:15118:2:2016:MsgDataTypes":MinimumSOC, urn:iso:15118:2:2016:MsgDataTypes,percentValueType */
+ int8_t MinimumSOC ;
+ unsigned int MinimumSOC_isUsed:1;
};
/* Complex type name='urn:iso:15118:2:2016:MsgDataTypes,MagneticVectorType', base type name='anyType', content type='ELEMENT', isAbstract='false', hasTypeId='false', final='0', block='0', particle='("urn:iso:15118:2:2016:MsgDataTypes":GAID,"urn:iso:15118:2:2016:MsgDataTypes":Distance,"urn:iso:15118:2:2016:MsgDataTypes":AngleGAtoVA,"urn:iso:15118:2:2016:MsgDataTypes":RotationVAtoGA,"urn:iso:15118:2:2016:MsgDataTypes":FODStatus)', derivedBy='RESTRICTION'. */
-#define v2gMagneticVectorType_GAID_CHARACTERS_SIZE 50
-struct v2gMagneticVectorType {
+#define iso2MagneticVectorType_GAID_CHARACTERS_SIZE 50 + EXTRA_CHAR
+struct iso2MagneticVectorType {
/* element: "urn:iso:15118:2:2016:MsgDataTypes":GAID, http://www.w3.org/2001/XMLSchema,ID */
struct {
- exi_string_character_t characters[v2gMagneticVectorType_GAID_CHARACTERS_SIZE];
+ exi_string_character_t characters[iso2MagneticVectorType_GAID_CHARACTERS_SIZE];
uint16_t charactersLen;
} GAID ;
- /* element: "urn:iso:15118:2:2016:MsgDataTypes":Distance, Complex type name='urn:iso:15118:2:2016:MsgDataTypes,PhysicalValueType', base type name='anyType', content type='ELEMENT', isAbstract='false', hasTypeId='false', final='0', block='0', particle='("urn:iso:15118:2:2016:MsgDataTypes":Exponent,"urn:iso:15118:2:2016:MsgDataTypes":Value)', derivedBy='RESTRICTION'. */
- struct v2gPhysicalValueType Distance ;
+ /* element: "urn:iso:15118:2:2016:MsgDataTypes":Distance, http://www.w3.org/2001/XMLSchema,unsignedShort */
+ uint16_t Distance ;
/* element: "urn:iso:15118:2:2016:MsgDataTypes":AngleGAtoVA, Complex type name='urn:iso:15118:2:2016:MsgDataTypes,PhysicalValueType', base type name='anyType', content type='ELEMENT', isAbstract='false', hasTypeId='false', final='0', block='0', particle='("urn:iso:15118:2:2016:MsgDataTypes":Exponent,"urn:iso:15118:2:2016:MsgDataTypes":Value)', derivedBy='RESTRICTION'. */
- struct v2gPhysicalValueType AngleGAtoVA ;
+ struct iso2PhysicalValueType AngleGAtoVA ;
/* element: "urn:iso:15118:2:2016:MsgDataTypes":RotationVAtoGA, Complex type name='urn:iso:15118:2:2016:MsgDataTypes,PhysicalValueType', base type name='anyType', content type='ELEMENT', isAbstract='false', hasTypeId='false', final='0', block='0', particle='("urn:iso:15118:2:2016:MsgDataTypes":Exponent,"urn:iso:15118:2:2016:MsgDataTypes":Value)', derivedBy='RESTRICTION'. */
- struct v2gPhysicalValueType RotationVAtoGA ;
+ struct iso2PhysicalValueType RotationVAtoGA ;
/* element: "urn:iso:15118:2:2016:MsgDataTypes":FODStatus, urn:iso:15118:2:2016:MsgDataTypes,FODStatusType */
- v2gFODStatusType FODStatus ;
+ iso2FODStatusType FODStatus ;
};
-/* Complex type name='urn:iso:15118:2:2016:MsgBody,PreChargeResType', base type name='V2GResponseType', content type='ELEMENT', isAbstract='false', hasTypeId='false', final='0', block='0', particle='(("urn:iso:15118:2:2016:MsgBody":ResponseCode,"urn:iso:15118:2:2016:MsgBody":EVSEStatus{0-1}),("urn:iso:15118:2:2016:MsgBody":EVSEPresentVoltage))', derivedBy='EXTENSION'. */
-struct v2gPreChargeResType {
+/* Complex type name='urn:iso:15118:2:2016:MsgBody,SystemStatusResType', base type name='V2GResponseType', content type='ELEMENT', isAbstract='false', hasTypeId='false', final='0', block='0', particle='(("urn:iso:15118:2:2016:MsgBody":ResponseCode,"urn:iso:15118:2:2016:MsgBody":EVSEStatus{0-1}),("urn:iso:15118:2:2016:MsgBody":OperationMode,"urn:iso:15118:2:2016:MsgBody":EVSEMechanicalChargingDeviceStatus))', derivedBy='EXTENSION'. */
+struct iso2SystemStatusResType {
/* element: "urn:iso:15118:2:2016:MsgBody":ResponseCode, urn:iso:15118:2:2016:MsgDataTypes,responseCodeType */
- v2gresponseCodeType ResponseCode ;
+ iso2responseCodeType ResponseCode ;
/* element: "urn:iso:15118:2:2016:MsgBody":EVSEStatus, Complex type name='urn:iso:15118:2:2016:MsgDataTypes,EVSEStatusType', base type name='anyType', content type='ELEMENT', isAbstract='false', hasTypeId='false', final='0', block='0', particle='("urn:iso:15118:2:2016:MsgDataTypes":NotificationMaxDelay,"urn:iso:15118:2:2016:MsgDataTypes":EVSENotification)', derivedBy='RESTRICTION'. */
- struct v2gEVSEStatusType EVSEStatus ;
+ struct iso2EVSEStatusType EVSEStatus ;
unsigned int EVSEStatus_isUsed:1;
- /* element: "urn:iso:15118:2:2016:MsgBody":EVSEPresentVoltage, Complex type name='urn:iso:15118:2:2016:MsgDataTypes,PhysicalValueType', base type name='anyType', content type='ELEMENT', isAbstract='false', hasTypeId='false', final='0', block='0', particle='("urn:iso:15118:2:2016:MsgDataTypes":Exponent,"urn:iso:15118:2:2016:MsgDataTypes":Value)', derivedBy='RESTRICTION'. */
- struct v2gPhysicalValueType EVSEPresentVoltage ;
-};
-
-/* Complex type name='urn:iso:15118:2:2016:MsgDataTypes,MinimumPMaxRequestType', base type name='anyType', content type='ELEMENT', isAbstract='false', hasTypeId='false', final='0', block='0', particle='("urn:iso:15118:2:2016:MsgDataTypes":MinimumPMaxScheduleEntry{1-3})', derivedBy='RESTRICTION'. */
-#define v2gMinimumPMaxRequestType_MinimumPMaxScheduleEntry_ARRAY_SIZE 3
-struct v2gMinimumPMaxRequestType {
- /* element: "urn:iso:15118:2:2016:MsgDataTypes":MinimumPMaxScheduleEntry, Complex type name='urn:iso:15118:2:2016:MsgDataTypes,PMaxScheduleEntryType', base type name='EntryType', content type='ELEMENT', isAbstract='false', hasTypeId='false', final='0', block='0', particle='(("urn:iso:15118:2:2016:MsgDataTypes":RelativeTimeInterval),("urn:iso:15118:2:2016:MsgDataTypes":PMax{1-3}))', derivedBy='EXTENSION'. */
- struct {
- struct v2gPMaxScheduleEntryType array[v2gMinimumPMaxRequestType_MinimumPMaxScheduleEntry_ARRAY_SIZE];
- uint16_t arrayLen;
- } MinimumPMaxScheduleEntry;
-};
-
-/* Complex type name='urn:iso:15118:2:2016:MsgBody,VehicleCheckInReqType', base type name='BodyBaseType', content type='ELEMENT', isAbstract='false', hasTypeId='false', final='0', block='0', particle='("urn:iso:15118:2:2016:MsgBody":EVCheckInStatus,"urn:iso:15118:2:2016:MsgBody":ParkingMethod{0-1})', derivedBy='EXTENSION'. */
-struct v2gVehicleCheckInReqType {
- /* element: "urn:iso:15118:2:2016:MsgBody":EVCheckInStatus, urn:iso:15118:2:2016:MsgDataTypes,EVCheckInStatusType */
- v2gEVCheckInStatusType EVCheckInStatus ;
- /* element: "urn:iso:15118:2:2016:MsgBody":ParkingMethod, urn:iso:15118:2:2016:MsgDataTypes,parkingMethodType */
- v2gparkingMethodType ParkingMethod ;
- unsigned int ParkingMethod_isUsed:1;
-};
-
-/* Complex type name='urn:iso:15118:2:2016:MsgBody,PowerDeliveryResType', base type name='V2GResponseType', content type='ELEMENT', isAbstract='false', hasTypeId='false', final='0', block='0', particle='(("urn:iso:15118:2:2016:MsgBody":ResponseCode,"urn:iso:15118:2:2016:MsgBody":EVSEStatus{0-1}),("urn:iso:15118:2:2016:MsgBody":EVSEProcessing))', derivedBy='EXTENSION'. */
-struct v2gPowerDeliveryResType {
- /* element: "urn:iso:15118:2:2016:MsgBody":ResponseCode, urn:iso:15118:2:2016:MsgDataTypes,responseCodeType */
- v2gresponseCodeType ResponseCode ;
- /* element: "urn:iso:15118:2:2016:MsgBody":EVSEStatus, Complex type name='urn:iso:15118:2:2016:MsgDataTypes,EVSEStatusType', base type name='anyType', content type='ELEMENT', isAbstract='false', hasTypeId='false', final='0', block='0', particle='("urn:iso:15118:2:2016:MsgDataTypes":NotificationMaxDelay,"urn:iso:15118:2:2016:MsgDataTypes":EVSENotification)', derivedBy='RESTRICTION'. */
- struct v2gEVSEStatusType EVSEStatus ;
- unsigned int EVSEStatus_isUsed:1;
- /* element: "urn:iso:15118:2:2016:MsgBody":EVSEProcessing, urn:iso:15118:2:2016:MsgDataTypes,EVSEProcessingType */
- v2gEVSEProcessingType EVSEProcessing ;
+ /* element: "urn:iso:15118:2:2016:MsgBody":OperationMode, urn:iso:15118:2:2016:MsgDataTypes,operationModeType */
+ iso2operationModeType OperationMode ;
+ /* element: "urn:iso:15118:2:2016:MsgBody":EVSEMechanicalChargingDeviceStatus, urn:iso:15118:2:2016:MsgDataTypes,mechanicalChargingDeviceStatusType */
+ iso2mechanicalChargingDeviceStatusType EVSEMechanicalChargingDeviceStatus ;
};
/* Complex type name='urn:iso:15118:2:2016:MsgBody,V2GResponseType', base type name='BodyBaseType', content type='ELEMENT', isAbstract='true', hasTypeId='false', final='0', block='0', particle='("urn:iso:15118:2:2016:MsgBody":ResponseCode,"urn:iso:15118:2:2016:MsgBody":EVSEStatus{0-1})', derivedBy='EXTENSION'. */
-struct v2gV2GResponseType {
+struct iso2V2GResponseType {
/* element: "urn:iso:15118:2:2016:MsgBody":ResponseCode, urn:iso:15118:2:2016:MsgDataTypes,responseCodeType */
- v2gresponseCodeType ResponseCode ;
+ iso2responseCodeType ResponseCode ;
/* element: "urn:iso:15118:2:2016:MsgBody":EVSEStatus, Complex type name='urn:iso:15118:2:2016:MsgDataTypes,EVSEStatusType', base type name='anyType', content type='ELEMENT', isAbstract='false', hasTypeId='false', final='0', block='0', particle='("urn:iso:15118:2:2016:MsgDataTypes":NotificationMaxDelay,"urn:iso:15118:2:2016:MsgDataTypes":EVSENotification)', derivedBy='RESTRICTION'. */
- struct v2gEVSEStatusType EVSEStatus ;
+ struct iso2EVSEStatusType EVSEStatus ;
unsigned int EVSEStatus_isUsed:1;
};
-/* Complex type name='urn:iso:15118:2:2016:MsgBody,CableCheckResType', base type name='V2GResponseType', content type='ELEMENT', isAbstract='false', hasTypeId='false', final='0', block='0', particle='(("urn:iso:15118:2:2016:MsgBody":ResponseCode,"urn:iso:15118:2:2016:MsgBody":EVSEStatus{0-1}),("urn:iso:15118:2:2016:MsgBody":EVSEProcessing))', derivedBy='EXTENSION'. */
-struct v2gCableCheckResType {
+/* Complex type name='urn:iso:15118:2:2016:MsgBody,PreChargeResType', base type name='V2GResponseType', content type='ELEMENT', isAbstract='false', hasTypeId='false', final='0', block='0', particle='(("urn:iso:15118:2:2016:MsgBody":ResponseCode,"urn:iso:15118:2:2016:MsgBody":EVSEStatus{0-1}),("urn:iso:15118:2:2016:MsgBody":EVSEPresentVoltage))', derivedBy='EXTENSION'. */
+struct iso2PreChargeResType {
/* element: "urn:iso:15118:2:2016:MsgBody":ResponseCode, urn:iso:15118:2:2016:MsgDataTypes,responseCodeType */
- v2gresponseCodeType ResponseCode ;
+ iso2responseCodeType ResponseCode ;
/* element: "urn:iso:15118:2:2016:MsgBody":EVSEStatus, Complex type name='urn:iso:15118:2:2016:MsgDataTypes,EVSEStatusType', base type name='anyType', content type='ELEMENT', isAbstract='false', hasTypeId='false', final='0', block='0', particle='("urn:iso:15118:2:2016:MsgDataTypes":NotificationMaxDelay,"urn:iso:15118:2:2016:MsgDataTypes":EVSENotification)', derivedBy='RESTRICTION'. */
- struct v2gEVSEStatusType EVSEStatus ;
+ struct iso2EVSEStatusType EVSEStatus ;
unsigned int EVSEStatus_isUsed:1;
- /* element: "urn:iso:15118:2:2016:MsgBody":EVSEProcessing, urn:iso:15118:2:2016:MsgDataTypes,EVSEProcessingType */
- v2gEVSEProcessingType EVSEProcessing ;
+ /* element: "urn:iso:15118:2:2016:MsgBody":EVSEPresentVoltage, Complex type name='urn:iso:15118:2:2016:MsgDataTypes,PhysicalValueType', base type name='anyType', content type='ELEMENT', isAbstract='false', hasTypeId='false', final='0', block='0', particle='("urn:iso:15118:2:2016:MsgDataTypes":Exponent,"urn:iso:15118:2:2016:MsgDataTypes":Value)', derivedBy='RESTRICTION'. */
+ struct iso2PhysicalValueType EVSEPresentVoltage ;
};
-/* Complex type name='urn:iso:15118:2:2016:MsgDataTypes,ChargingProfileType', base type name='anyType', content type='ELEMENT', isAbstract='false', hasTypeId='false', final='0', block='0', particle='("urn:iso:15118:2:2016:MsgDataTypes":ProfileEntry{1-UNBOUNDED})', derivedBy='RESTRICTION'. */
-#define v2gChargingProfileType_ProfileEntry_ARRAY_SIZE 5
-struct v2gChargingProfileType {
- /* element: "urn:iso:15118:2:2016:MsgDataTypes":ProfileEntry, Complex type name='urn:iso:15118:2:2016:MsgDataTypes,PMaxScheduleEntryType', base type name='EntryType', content type='ELEMENT', isAbstract='false', hasTypeId='false', final='0', block='0', particle='(("urn:iso:15118:2:2016:MsgDataTypes":RelativeTimeInterval),("urn:iso:15118:2:2016:MsgDataTypes":PMax{1-3}))', derivedBy='EXTENSION'. */
- struct {
- struct v2gPMaxScheduleEntryType array[v2gChargingProfileType_ProfileEntry_ARRAY_SIZE];
- uint16_t arrayLen;
- } ProfileEntry;
-};
-
-/* Complex type name='urn:iso:15118:2:2016:MsgBody,ServiceDiscoveryResType', base type name='V2GResponseType', content type='ELEMENT', isAbstract='false', hasTypeId='false', final='0', block='0', particle='(("urn:iso:15118:2:2016:MsgBody":ResponseCode,"urn:iso:15118:2:2016:MsgBody":EVSEStatus{0-1}),("urn:iso:15118:2:2016:MsgBody":PaymentOptionList,"urn:iso:15118:2:2016:MsgBody":EnergyTransferServiceList,"urn:iso:15118:2:2016:MsgBody":VASList{0-1}))', derivedBy='EXTENSION'. */
-struct v2gServiceDiscoveryResType {
+/* Complex type name='urn:iso:15118:2:2016:MsgBody,PaymentServiceSelectionResType', base type name='V2GResponseType', content type='ELEMENT', isAbstract='false', hasTypeId='false', final='0', block='0', particle='("urn:iso:15118:2:2016:MsgBody":ResponseCode,"urn:iso:15118:2:2016:MsgBody":EVSEStatus{0-1})', derivedBy='EXTENSION'. */
+struct iso2PaymentServiceSelectionResType {
/* element: "urn:iso:15118:2:2016:MsgBody":ResponseCode, urn:iso:15118:2:2016:MsgDataTypes,responseCodeType */
- v2gresponseCodeType ResponseCode ;
+ iso2responseCodeType ResponseCode ;
/* element: "urn:iso:15118:2:2016:MsgBody":EVSEStatus, Complex type name='urn:iso:15118:2:2016:MsgDataTypes,EVSEStatusType', base type name='anyType', content type='ELEMENT', isAbstract='false', hasTypeId='false', final='0', block='0', particle='("urn:iso:15118:2:2016:MsgDataTypes":NotificationMaxDelay,"urn:iso:15118:2:2016:MsgDataTypes":EVSENotification)', derivedBy='RESTRICTION'. */
- struct v2gEVSEStatusType EVSEStatus ;
+ struct iso2EVSEStatusType EVSEStatus ;
unsigned int EVSEStatus_isUsed:1;
- /* element: "urn:iso:15118:2:2016:MsgBody":PaymentOptionList, Complex type name='urn:iso:15118:2:2016:MsgDataTypes,PaymentOptionListType', base type name='anyType', content type='ELEMENT', isAbstract='false', hasTypeId='false', final='0', block='0', particle='("urn:iso:15118:2:2016:MsgDataTypes":PaymentOption{1-2})', derivedBy='RESTRICTION'. */
- struct v2gPaymentOptionListType PaymentOptionList ;
- /* element: "urn:iso:15118:2:2016:MsgBody":EnergyTransferServiceList, Complex type name='urn:iso:15118:2:2016:MsgDataTypes,ServiceListType', base type name='anyType', content type='ELEMENT', isAbstract='false', hasTypeId='false', final='0', block='0', particle='("urn:iso:15118:2:2016:MsgDataTypes":Service{1-8})', derivedBy='RESTRICTION'. */
- struct v2gServiceListType EnergyTransferServiceList ;
- /* element: "urn:iso:15118:2:2016:MsgBody":VASList, Complex type name='urn:iso:15118:2:2016:MsgDataTypes,ServiceListType', base type name='anyType', content type='ELEMENT', isAbstract='false', hasTypeId='false', final='0', block='0', particle='("urn:iso:15118:2:2016:MsgDataTypes":Service{1-8})', derivedBy='RESTRICTION'. */
- struct v2gServiceListType VASList ;
- unsigned int VASList_isUsed:1;
};
-/* Complex type name='urn:iso:15118:2:2016:MsgDataTypes,PMaxScheduleType', base type name='anyType', content type='ELEMENT', isAbstract='false', hasTypeId='false', final='0', block='0', particle='("urn:iso:15118:2:2016:MsgDataTypes":PMaxScheduleEntry{1-UNBOUNDED})', derivedBy='RESTRICTION'. */
-#define v2gPMaxScheduleType_PMaxScheduleEntry_ARRAY_SIZE 5
-struct v2gPMaxScheduleType {
- /* element: "urn:iso:15118:2:2016:MsgDataTypes":PMaxScheduleEntry, Complex type name='urn:iso:15118:2:2016:MsgDataTypes,PMaxScheduleEntryType', base type name='EntryType', content type='ELEMENT', isAbstract='false', hasTypeId='false', final='0', block='0', particle='(("urn:iso:15118:2:2016:MsgDataTypes":RelativeTimeInterval),("urn:iso:15118:2:2016:MsgDataTypes":PMax{1-3}))', derivedBy='EXTENSION'. */
- struct {
- struct v2gPMaxScheduleEntryType array[v2gPMaxScheduleType_PMaxScheduleEntry_ARRAY_SIZE];
- uint16_t arrayLen;
- } PMaxScheduleEntry;
-};
-
-/* Complex type name='urn:iso:15118:2:2016:MsgDataTypes,DC_EVSEBidirectionalParameterType', base type name='DC_EVSEChargeParameterType', content type='ELEMENT', isAbstract='false', hasTypeId='false', final='0', block='0', particle='(("urn:iso:15118:2:2016:MsgDataTypes":EVSEMaximumChargePower,"urn:iso:15118:2:2016:MsgDataTypes":EVSEMaximumChargeCurrent,"urn:iso:15118:2:2016:MsgDataTypes":EVSEMinimumChargeCurrent,"urn:iso:15118:2:2016:MsgDataTypes":EVSEMaximumVoltage,"urn:iso:15118:2:2016:MsgDataTypes":EVSEMinimumVoltage,"urn:iso:15118:2:2016:MsgDataTypes":EVSECurrentRegulationTolerance{0-1},"urn:iso:15118:2:2016:MsgDataTypes":EVSEPeakCurrentRipple,"urn:iso:15118:2:2016:MsgDataTypes":EVSEEnergyToBeDelivered{0-1}),("urn:iso:15118:2:2016:MsgDataTypes":EVSEMaximumDischargePower,"urn:iso:15118:2:2016:MsgDataTypes":EVSEMaximumDischargeCurrent,"urn:iso:15118:2:2016:MsgDataTypes":EVSEMinimumDischargeCurrent))', derivedBy='EXTENSION'. */
-struct v2gDC_EVSEBidirectionalParameterType {
- /* element: "urn:iso:15118:2:2016:MsgDataTypes":EVSEMaximumChargePower, Complex type name='urn:iso:15118:2:2016:MsgDataTypes,PhysicalValueType', base type name='anyType', content type='ELEMENT', isAbstract='false', hasTypeId='false', final='0', block='0', particle='("urn:iso:15118:2:2016:MsgDataTypes":Exponent,"urn:iso:15118:2:2016:MsgDataTypes":Value)', derivedBy='RESTRICTION'. */
- struct v2gPhysicalValueType EVSEMaximumChargePower ;
- /* element: "urn:iso:15118:2:2016:MsgDataTypes":EVSEMaximumChargeCurrent, Complex type name='urn:iso:15118:2:2016:MsgDataTypes,PhysicalValueType', base type name='anyType', content type='ELEMENT', isAbstract='false', hasTypeId='false', final='0', block='0', particle='("urn:iso:15118:2:2016:MsgDataTypes":Exponent,"urn:iso:15118:2:2016:MsgDataTypes":Value)', derivedBy='RESTRICTION'. */
- struct v2gPhysicalValueType EVSEMaximumChargeCurrent ;
- /* element: "urn:iso:15118:2:2016:MsgDataTypes":EVSEMinimumChargeCurrent, Complex type name='urn:iso:15118:2:2016:MsgDataTypes,PhysicalValueType', base type name='anyType', content type='ELEMENT', isAbstract='false', hasTypeId='false', final='0', block='0', particle='("urn:iso:15118:2:2016:MsgDataTypes":Exponent,"urn:iso:15118:2:2016:MsgDataTypes":Value)', derivedBy='RESTRICTION'. */
- struct v2gPhysicalValueType EVSEMinimumChargeCurrent ;
- /* element: "urn:iso:15118:2:2016:MsgDataTypes":EVSEMaximumVoltage, Complex type name='urn:iso:15118:2:2016:MsgDataTypes,PhysicalValueType', base type name='anyType', content type='ELEMENT', isAbstract='false', hasTypeId='false', final='0', block='0', particle='("urn:iso:15118:2:2016:MsgDataTypes":Exponent,"urn:iso:15118:2:2016:MsgDataTypes":Value)', derivedBy='RESTRICTION'. */
- struct v2gPhysicalValueType EVSEMaximumVoltage ;
- /* element: "urn:iso:15118:2:2016:MsgDataTypes":EVSEMinimumVoltage, Complex type name='urn:iso:15118:2:2016:MsgDataTypes,PhysicalValueType', base type name='anyType', content type='ELEMENT', isAbstract='false', hasTypeId='false', final='0', block='0', particle='("urn:iso:15118:2:2016:MsgDataTypes":Exponent,"urn:iso:15118:2:2016:MsgDataTypes":Value)', derivedBy='RESTRICTION'. */
- struct v2gPhysicalValueType EVSEMinimumVoltage ;
- /* element: "urn:iso:15118:2:2016:MsgDataTypes":EVSECurrentRegulationTolerance, Complex type name='urn:iso:15118:2:2016:MsgDataTypes,PhysicalValueType', base type name='anyType', content type='ELEMENT', isAbstract='false', hasTypeId='false', final='0', block='0', particle='("urn:iso:15118:2:2016:MsgDataTypes":Exponent,"urn:iso:15118:2:2016:MsgDataTypes":Value)', derivedBy='RESTRICTION'. */
- struct v2gPhysicalValueType EVSECurrentRegulationTolerance ;
- unsigned int EVSECurrentRegulationTolerance_isUsed:1;
- /* element: "urn:iso:15118:2:2016:MsgDataTypes":EVSEPeakCurrentRipple, Complex type name='urn:iso:15118:2:2016:MsgDataTypes,PhysicalValueType', base type name='anyType', content type='ELEMENT', isAbstract='false', hasTypeId='false', final='0', block='0', particle='("urn:iso:15118:2:2016:MsgDataTypes":Exponent,"urn:iso:15118:2:2016:MsgDataTypes":Value)', derivedBy='RESTRICTION'. */
- struct v2gPhysicalValueType EVSEPeakCurrentRipple ;
- /* element: "urn:iso:15118:2:2016:MsgDataTypes":EVSEEnergyToBeDelivered, Complex type name='urn:iso:15118:2:2016:MsgDataTypes,PhysicalValueType', base type name='anyType', content type='ELEMENT', isAbstract='false', hasTypeId='false', final='0', block='0', particle='("urn:iso:15118:2:2016:MsgDataTypes":Exponent,"urn:iso:15118:2:2016:MsgDataTypes":Value)', derivedBy='RESTRICTION'. */
- struct v2gPhysicalValueType EVSEEnergyToBeDelivered ;
- unsigned int EVSEEnergyToBeDelivered_isUsed:1;
- /* element: "urn:iso:15118:2:2016:MsgDataTypes":EVSEMaximumDischargePower, Complex type name='urn:iso:15118:2:2016:MsgDataTypes,PhysicalValueType', base type name='anyType', content type='ELEMENT', isAbstract='false', hasTypeId='false', final='0', block='0', particle='("urn:iso:15118:2:2016:MsgDataTypes":Exponent,"urn:iso:15118:2:2016:MsgDataTypes":Value)', derivedBy='RESTRICTION'. */
- struct v2gPhysicalValueType EVSEMaximumDischargePower ;
- /* element: "urn:iso:15118:2:2016:MsgDataTypes":EVSEMaximumDischargeCurrent, Complex type name='urn:iso:15118:2:2016:MsgDataTypes,PhysicalValueType', base type name='anyType', content type='ELEMENT', isAbstract='false', hasTypeId='false', final='0', block='0', particle='("urn:iso:15118:2:2016:MsgDataTypes":Exponent,"urn:iso:15118:2:2016:MsgDataTypes":Value)', derivedBy='RESTRICTION'. */
- struct v2gPhysicalValueType EVSEMaximumDischargeCurrent ;
- /* element: "urn:iso:15118:2:2016:MsgDataTypes":EVSEMinimumDischargeCurrent, Complex type name='urn:iso:15118:2:2016:MsgDataTypes,PhysicalValueType', base type name='anyType', content type='ELEMENT', isAbstract='false', hasTypeId='false', final='0', block='0', particle='("urn:iso:15118:2:2016:MsgDataTypes":Exponent,"urn:iso:15118:2:2016:MsgDataTypes":Value)', derivedBy='RESTRICTION'. */
- struct v2gPhysicalValueType EVSEMinimumDischargeCurrent ;
-};
-
-/* Complex type name='urn:iso:15118:2:2016:MsgDataTypes,DC_EVSEChargeParameterType', base type name='EVSEEnergyTransferParameterType', content type='ELEMENT', isAbstract='false', hasTypeId='false', final='0', block='0', particle='("urn:iso:15118:2:2016:MsgDataTypes":EVSEMaximumChargePower,"urn:iso:15118:2:2016:MsgDataTypes":EVSEMaximumChargeCurrent,"urn:iso:15118:2:2016:MsgDataTypes":EVSEMinimumChargeCurrent,"urn:iso:15118:2:2016:MsgDataTypes":EVSEMaximumVoltage,"urn:iso:15118:2:2016:MsgDataTypes":EVSEMinimumVoltage,"urn:iso:15118:2:2016:MsgDataTypes":EVSECurrentRegulationTolerance{0-1},"urn:iso:15118:2:2016:MsgDataTypes":EVSEPeakCurrentRipple,"urn:iso:15118:2:2016:MsgDataTypes":EVSEEnergyToBeDelivered{0-1})', derivedBy='EXTENSION'. */
-struct v2gDC_EVSEChargeParameterType {
- /* element: "urn:iso:15118:2:2016:MsgDataTypes":EVSEMaximumChargePower, Complex type name='urn:iso:15118:2:2016:MsgDataTypes,PhysicalValueType', base type name='anyType', content type='ELEMENT', isAbstract='false', hasTypeId='false', final='0', block='0', particle='("urn:iso:15118:2:2016:MsgDataTypes":Exponent,"urn:iso:15118:2:2016:MsgDataTypes":Value)', derivedBy='RESTRICTION'. */
- struct v2gPhysicalValueType EVSEMaximumChargePower ;
- /* element: "urn:iso:15118:2:2016:MsgDataTypes":EVSEMaximumChargeCurrent, Complex type name='urn:iso:15118:2:2016:MsgDataTypes,PhysicalValueType', base type name='anyType', content type='ELEMENT', isAbstract='false', hasTypeId='false', final='0', block='0', particle='("urn:iso:15118:2:2016:MsgDataTypes":Exponent,"urn:iso:15118:2:2016:MsgDataTypes":Value)', derivedBy='RESTRICTION'. */
- struct v2gPhysicalValueType EVSEMaximumChargeCurrent ;
- /* element: "urn:iso:15118:2:2016:MsgDataTypes":EVSEMinimumChargeCurrent, Complex type name='urn:iso:15118:2:2016:MsgDataTypes,PhysicalValueType', base type name='anyType', content type='ELEMENT', isAbstract='false', hasTypeId='false', final='0', block='0', particle='("urn:iso:15118:2:2016:MsgDataTypes":Exponent,"urn:iso:15118:2:2016:MsgDataTypes":Value)', derivedBy='RESTRICTION'. */
- struct v2gPhysicalValueType EVSEMinimumChargeCurrent ;
- /* element: "urn:iso:15118:2:2016:MsgDataTypes":EVSEMaximumVoltage, Complex type name='urn:iso:15118:2:2016:MsgDataTypes,PhysicalValueType', base type name='anyType', content type='ELEMENT', isAbstract='false', hasTypeId='false', final='0', block='0', particle='("urn:iso:15118:2:2016:MsgDataTypes":Exponent,"urn:iso:15118:2:2016:MsgDataTypes":Value)', derivedBy='RESTRICTION'. */
- struct v2gPhysicalValueType EVSEMaximumVoltage ;
- /* element: "urn:iso:15118:2:2016:MsgDataTypes":EVSEMinimumVoltage, Complex type name='urn:iso:15118:2:2016:MsgDataTypes,PhysicalValueType', base type name='anyType', content type='ELEMENT', isAbstract='false', hasTypeId='false', final='0', block='0', particle='("urn:iso:15118:2:2016:MsgDataTypes":Exponent,"urn:iso:15118:2:2016:MsgDataTypes":Value)', derivedBy='RESTRICTION'. */
- struct v2gPhysicalValueType EVSEMinimumVoltage ;
- /* element: "urn:iso:15118:2:2016:MsgDataTypes":EVSECurrentRegulationTolerance, Complex type name='urn:iso:15118:2:2016:MsgDataTypes,PhysicalValueType', base type name='anyType', content type='ELEMENT', isAbstract='false', hasTypeId='false', final='0', block='0', particle='("urn:iso:15118:2:2016:MsgDataTypes":Exponent,"urn:iso:15118:2:2016:MsgDataTypes":Value)', derivedBy='RESTRICTION'. */
- struct v2gPhysicalValueType EVSECurrentRegulationTolerance ;
- unsigned int EVSECurrentRegulationTolerance_isUsed:1;
- /* element: "urn:iso:15118:2:2016:MsgDataTypes":EVSEPeakCurrentRipple, Complex type name='urn:iso:15118:2:2016:MsgDataTypes,PhysicalValueType', base type name='anyType', content type='ELEMENT', isAbstract='false', hasTypeId='false', final='0', block='0', particle='("urn:iso:15118:2:2016:MsgDataTypes":Exponent,"urn:iso:15118:2:2016:MsgDataTypes":Value)', derivedBy='RESTRICTION'. */
- struct v2gPhysicalValueType EVSEPeakCurrentRipple ;
- /* element: "urn:iso:15118:2:2016:MsgDataTypes":EVSEEnergyToBeDelivered, Complex type name='urn:iso:15118:2:2016:MsgDataTypes,PhysicalValueType', base type name='anyType', content type='ELEMENT', isAbstract='false', hasTypeId='false', final='0', block='0', particle='("urn:iso:15118:2:2016:MsgDataTypes":Exponent,"urn:iso:15118:2:2016:MsgDataTypes":Value)', derivedBy='RESTRICTION'. */
- struct v2gPhysicalValueType EVSEEnergyToBeDelivered ;
- unsigned int EVSEEnergyToBeDelivered_isUsed:1;
-};
-
-/* Complex type name='urn:iso:15118:2:2016:MsgBody,ConnectChargingDeviceReqType', base type name='BodyBaseType', content type='ELEMENT', isAbstract='false', hasTypeId='false', final='0', block='0', particle='("urn:iso:15118:2:2016:MsgBody":EVElectricalChargingDeviceStatus,"urn:iso:15118:2:2016:MsgBody":EVMechanicalChargingDeviceStatus)', derivedBy='EXTENSION'. */
-struct v2gConnectChargingDeviceReqType {
- /* element: "urn:iso:15118:2:2016:MsgBody":EVElectricalChargingDeviceStatus, urn:iso:15118:2:2016:MsgDataTypes,electricalChargingDeviceStatusType */
- v2gelectricalChargingDeviceStatusType EVElectricalChargingDeviceStatus ;
- /* element: "urn:iso:15118:2:2016:MsgBody":EVMechanicalChargingDeviceStatus, urn:iso:15118:2:2016:MsgDataTypes,mechanicalChargingDeviceStatusType */
- v2gmechanicalChargingDeviceStatusType EVMechanicalChargingDeviceStatus ;
-};
-
-/* Complex type name='http://www.w3.org/2000/09/xmldsig#,KeyInfoType', base type name='anyType', content type='MIXED', isAbstract='false', hasTypeId='false', final='0', block='0', particle='("http://www.w3.org/2000/09/xmldsig#":KeyName|"http://www.w3.org/2000/09/xmldsig#":KeyValue|"http://www.w3.org/2000/09/xmldsig#":RetrievalMethod|"http://www.w3.org/2000/09/xmldsig#":X509Data|"http://www.w3.org/2000/09/xmldsig#":PGPData|"http://www.w3.org/2000/09/xmldsig#":SPKIData|"http://www.w3.org/2000/09/xmldsig#":MgmtData|(WC[##other:"http://www.w3.org/2000/09/xmldsig#"])){1-UNBOUNDED}', derivedBy='RESTRICTION'. */
-#define v2gKeyInfoType_Id_CHARACTERS_SIZE 50
-#define v2gKeyInfoType_KeyName_CHARACTERS_SIZE 50
-#define v2gKeyInfoType_KeyName_ARRAY_SIZE 1
-#define v2gKeyInfoType_KeyValue_ARRAY_SIZE 1
-#define v2gKeyInfoType_RetrievalMethod_ARRAY_SIZE 1
-#define v2gKeyInfoType_X509Data_ARRAY_SIZE 1
-#define v2gKeyInfoType_PGPData_ARRAY_SIZE 1
-#define v2gKeyInfoType_SPKIData_ARRAY_SIZE 1
-#define v2gKeyInfoType_MgmtData_CHARACTERS_SIZE 50
-#define v2gKeyInfoType_MgmtData_ARRAY_SIZE 1
-#define v2gKeyInfoType_ANY_CHARACTERS_SIZE 50
-struct v2gKeyInfoType {
+/* Complex type name='http://www.w3.org/2000/09/xmldsig#,ManifestType', base type name='anyType', content type='ELEMENT', isAbstract='false', hasTypeId='false', final='0', block='0', particle='("http://www.w3.org/2000/09/xmldsig#":Reference{1-UNBOUNDED})', derivedBy='RESTRICTION'. */
+#define iso2ManifestType_Id_CHARACTERS_SIZE 50 + EXTRA_CHAR
+#define iso2ManifestType_Reference_ARRAY_SIZE 1
+struct iso2ManifestType {
/* attribute: Id {http://www.w3.org/2001/XMLSchema,ID} */
struct {
- exi_string_character_t characters[v2gKeyInfoType_Id_CHARACTERS_SIZE];
+ exi_string_character_t characters[iso2ManifestType_Id_CHARACTERS_SIZE];
uint16_t charactersLen;
} Id ;
unsigned int Id_isUsed:1;
- /* element: "http://www.w3.org/2000/09/xmldsig#":KeyName, http://www.w3.org/2001/XMLSchema,string */
+ /* element: "http://www.w3.org/2000/09/xmldsig#":Reference, Complex type name='http://www.w3.org/2000/09/xmldsig#,ReferenceType', base type name='anyType', content type='ELEMENT', isAbstract='false', hasTypeId='false', final='0', block='0', particle='("http://www.w3.org/2000/09/xmldsig#":Transforms{0-1},"http://www.w3.org/2000/09/xmldsig#":DigestMethod,"http://www.w3.org/2000/09/xmldsig#":DigestValue)', derivedBy='RESTRICTION'. */
struct {
- struct {
- exi_string_character_t characters[v2gKeyInfoType_KeyName_CHARACTERS_SIZE];
- uint16_t charactersLen;
- } array[v2gKeyInfoType_KeyName_ARRAY_SIZE];
+ struct iso2ReferenceType array[iso2ManifestType_Reference_ARRAY_SIZE];
uint16_t arrayLen;
- } KeyName;
- /* element: "http://www.w3.org/2000/09/xmldsig#":KeyValue, Complex type name='http://www.w3.org/2000/09/xmldsig#,KeyValueType', base type name='anyType', content type='MIXED', isAbstract='false', hasTypeId='false', final='0', block='0', particle='("http://www.w3.org/2000/09/xmldsig#":DSAKeyValue|"http://www.w3.org/2000/09/xmldsig#":RSAKeyValue|(WC[##other:"http://www.w3.org/2000/09/xmldsig#"]))', derivedBy='RESTRICTION'. */
+ } Reference;
+};
+
+/* Complex type name='urn:iso:15118:2:2016:MsgDataTypes,SelectedServiceListType', base type name='anyType', content type='ELEMENT', isAbstract='false', hasTypeId='false', final='0', block='0', particle='("urn:iso:15118:2:2016:MsgDataTypes":SelectedService{1-16})', derivedBy='RESTRICTION'. */
+#define iso2SelectedServiceListType_SelectedService_ARRAY_SIZE 5
+struct iso2SelectedServiceListType {
+ /* element: "urn:iso:15118:2:2016:MsgDataTypes":SelectedService, Complex type name='urn:iso:15118:2:2016:MsgDataTypes,SelectedServiceType', base type name='anyType', content type='ELEMENT', isAbstract='false', hasTypeId='false', final='0', block='0', particle='("urn:iso:15118:2:2016:MsgDataTypes":ServiceID,"urn:iso:15118:2:2016:MsgDataTypes":ParameterSetID)', derivedBy='RESTRICTION'. */
struct {
- struct v2gKeyValueType array[v2gKeyInfoType_KeyValue_ARRAY_SIZE];
+ struct iso2SelectedServiceType array[iso2SelectedServiceListType_SelectedService_ARRAY_SIZE];
uint16_t arrayLen;
- } KeyValue;
- /* element: "http://www.w3.org/2000/09/xmldsig#":RetrievalMethod, Complex type name='http://www.w3.org/2000/09/xmldsig#,RetrievalMethodType', base type name='anyType', content type='ELEMENT', isAbstract='false', hasTypeId='false', final='0', block='0', particle='("http://www.w3.org/2000/09/xmldsig#":Transforms{0-1})', derivedBy='RESTRICTION'. */
- struct {
- struct v2gRetrievalMethodType array[v2gKeyInfoType_RetrievalMethod_ARRAY_SIZE];
- uint16_t arrayLen;
- } RetrievalMethod;
- /* element: "http://www.w3.org/2000/09/xmldsig#":X509Data, Complex type name='http://www.w3.org/2000/09/xmldsig#,X509DataType', base type name='anyType', content type='ELEMENT', isAbstract='false', hasTypeId='false', final='0', block='0', particle='(("http://www.w3.org/2000/09/xmldsig#":X509IssuerSerial|"http://www.w3.org/2000/09/xmldsig#":X509SKI|"http://www.w3.org/2000/09/xmldsig#":X509SubjectName|"http://www.w3.org/2000/09/xmldsig#":X509Certificate|"http://www.w3.org/2000/09/xmldsig#":X509CRL|(WC[##other:"http://www.w3.org/2000/09/xmldsig#"]))){1-UNBOUNDED}', derivedBy='RESTRICTION'. */
- struct {
- struct v2gX509DataType array[v2gKeyInfoType_X509Data_ARRAY_SIZE];
- uint16_t arrayLen;
- } X509Data;
- /* element: "http://www.w3.org/2000/09/xmldsig#":PGPData, Complex type name='http://www.w3.org/2000/09/xmldsig#,PGPDataType', base type name='anyType', content type='ELEMENT', isAbstract='false', hasTypeId='false', final='0', block='0', particle='(("http://www.w3.org/2000/09/xmldsig#":PGPKeyID,"http://www.w3.org/2000/09/xmldsig#":PGPKeyPacket{0-1},(WC[##other:"http://www.w3.org/2000/09/xmldsig#"]){0-UNBOUNDED})|("http://www.w3.org/2000/09/xmldsig#":PGPKeyPacket,(WC[##other:"http://www.w3.org/2000/09/xmldsig#"]){0-UNBOUNDED}))', derivedBy='RESTRICTION'. */
- struct {
- struct v2gPGPDataType array[v2gKeyInfoType_PGPData_ARRAY_SIZE];
- uint16_t arrayLen;
- } PGPData;
- /* element: "http://www.w3.org/2000/09/xmldsig#":SPKIData, Complex type name='http://www.w3.org/2000/09/xmldsig#,SPKIDataType', base type name='anyType', content type='ELEMENT', isAbstract='false', hasTypeId='false', final='0', block='0', particle='("http://www.w3.org/2000/09/xmldsig#":SPKISexp,(WC[##other:"http://www.w3.org/2000/09/xmldsig#"]){0-1}){1-UNBOUNDED}', derivedBy='RESTRICTION'. */
- struct {
- struct v2gSPKIDataType array[v2gKeyInfoType_SPKIData_ARRAY_SIZE];
- uint16_t arrayLen;
- } SPKIData;
- /* element: "http://www.w3.org/2000/09/xmldsig#":MgmtData, http://www.w3.org/2001/XMLSchema,string */
- struct {
- struct {
- exi_string_character_t characters[v2gKeyInfoType_MgmtData_CHARACTERS_SIZE];
- uint16_t charactersLen;
- } array[v2gKeyInfoType_MgmtData_ARRAY_SIZE];
- uint16_t arrayLen;
- } MgmtData;
- /* element: WC[##other:"http://www.w3.org/2000/09/xmldsig#"] */
- struct {
- exi_string_character_t characters[v2gKeyInfoType_ANY_CHARACTERS_SIZE];
- uint16_t charactersLen;
- } ANY ;
- unsigned int ANY_isUsed:1;
-};
-
-/* Complex type name='urn:iso:15118:2:2016:MsgBody,WeldingDetectionResType', base type name='V2GResponseType', content type='ELEMENT', isAbstract='false', hasTypeId='false', final='0', block='0', particle='(("urn:iso:15118:2:2016:MsgBody":ResponseCode,"urn:iso:15118:2:2016:MsgBody":EVSEStatus{0-1}),("urn:iso:15118:2:2016:MsgBody":EVSEPresentVoltage))', derivedBy='EXTENSION'. */
-struct v2gWeldingDetectionResType {
- /* element: "urn:iso:15118:2:2016:MsgBody":ResponseCode, urn:iso:15118:2:2016:MsgDataTypes,responseCodeType */
- v2gresponseCodeType ResponseCode ;
- /* element: "urn:iso:15118:2:2016:MsgBody":EVSEStatus, Complex type name='urn:iso:15118:2:2016:MsgDataTypes,EVSEStatusType', base type name='anyType', content type='ELEMENT', isAbstract='false', hasTypeId='false', final='0', block='0', particle='("urn:iso:15118:2:2016:MsgDataTypes":NotificationMaxDelay,"urn:iso:15118:2:2016:MsgDataTypes":EVSENotification)', derivedBy='RESTRICTION'. */
- struct v2gEVSEStatusType EVSEStatus ;
- unsigned int EVSEStatus_isUsed:1;
- /* element: "urn:iso:15118:2:2016:MsgBody":EVSEPresentVoltage, Complex type name='urn:iso:15118:2:2016:MsgDataTypes,PhysicalValueType', base type name='anyType', content type='ELEMENT', isAbstract='false', hasTypeId='false', final='0', block='0', particle='("urn:iso:15118:2:2016:MsgDataTypes":Exponent,"urn:iso:15118:2:2016:MsgDataTypes":Value)', derivedBy='RESTRICTION'. */
- struct v2gPhysicalValueType EVSEPresentVoltage ;
-};
-
-/* Complex type name='urn:iso:15118:2:2016:MsgBody,PaymentServiceSelectionReqType', base type name='BodyBaseType', content type='ELEMENT', isAbstract='false', hasTypeId='false', final='0', block='0', particle='("urn:iso:15118:2:2016:MsgBody":SelectedPaymentOption,"urn:iso:15118:2:2016:MsgBody":SelectedEnergyTransferService,"urn:iso:15118:2:2016:MsgBody":SelectedVASList{0-1})', derivedBy='EXTENSION'. */
-struct v2gPaymentServiceSelectionReqType {
- /* element: "urn:iso:15118:2:2016:MsgBody":SelectedPaymentOption, urn:iso:15118:2:2016:MsgDataTypes,paymentOptionType */
- v2gpaymentOptionType SelectedPaymentOption ;
- /* element: "urn:iso:15118:2:2016:MsgBody":SelectedEnergyTransferService, Complex type name='urn:iso:15118:2:2016:MsgDataTypes,SelectedServiceType', base type name='anyType', content type='ELEMENT', isAbstract='false', hasTypeId='false', final='0', block='0', particle='("urn:iso:15118:2:2016:MsgDataTypes":ServiceID,"urn:iso:15118:2:2016:MsgDataTypes":ParameterSetID)', derivedBy='RESTRICTION'. */
- struct v2gSelectedServiceType SelectedEnergyTransferService ;
- /* element: "urn:iso:15118:2:2016:MsgBody":SelectedVASList, Complex type name='urn:iso:15118:2:2016:MsgDataTypes,SelectedServiceListType', base type name='anyType', content type='ELEMENT', isAbstract='false', hasTypeId='false', final='0', block='0', particle='("urn:iso:15118:2:2016:MsgDataTypes":SelectedService{1-16})', derivedBy='RESTRICTION'. */
- struct v2gSelectedServiceListType SelectedVASList ;
- unsigned int SelectedVASList_isUsed:1;
-};
-
-/* Complex type name='urn:iso:15118:2:2016:MsgDataTypes,SensorListType', base type name='anyType', content type='ELEMENT', isAbstract='false', hasTypeId='false', final='0', block='0', particle='("urn:iso:15118:2:2016:MsgDataTypes":Sensor{1-255})', derivedBy='RESTRICTION'. */
-#define v2gSensorListType_Sensor_ARRAY_SIZE 5
-struct v2gSensorListType {
- /* element: "urn:iso:15118:2:2016:MsgDataTypes":Sensor, Complex type name='urn:iso:15118:2:2016:MsgDataTypes,SensorType', base type name='anyType', content type='ELEMENT', isAbstract='false', hasTypeId='false', final='0', block='0', particle='("urn:iso:15118:2:2016:MsgDataTypes":SensorID,"urn:iso:15118:2:2016:MsgDataTypes":SensorPosition,"urn:iso:15118:2:2016:MsgDataTypes":SensorOrientation)', derivedBy='RESTRICTION'. */
- struct {
- struct v2gSensorType array[v2gSensorListType_Sensor_ARRAY_SIZE];
- uint16_t arrayLen;
- } Sensor;
-};
-
-/* Complex type name='urn:iso:15118:2:2016:MsgBody,PairingReqType', base type name='BodyBaseType', content type='ELEMENT', isAbstract='false', hasTypeId='false', final='0', block='0', particle='("urn:iso:15118:2:2016:MsgBody":EVProcessing,"urn:iso:15118:2:2016:MsgBody":PairingParameters{0-1})', derivedBy='EXTENSION'. */
-struct v2gPairingReqType {
- /* element: "urn:iso:15118:2:2016:MsgBody":EVProcessing, urn:iso:15118:2:2016:MsgDataTypes,EVSEProcessingType */
- v2gEVSEProcessingType EVProcessing ;
- /* element: "urn:iso:15118:2:2016:MsgBody":PairingParameters, Complex type name='urn:iso:15118:2:2016:MsgDataTypes,ParameterSetType', base type name='anyType', content type='ELEMENT', isAbstract='false', hasTypeId='false', final='0', block='0', particle='("urn:iso:15118:2:2016:MsgDataTypes":ParameterSetID,"urn:iso:15118:2:2016:MsgDataTypes":Parameter{1-16})', derivedBy='RESTRICTION'. */
- struct v2gParameterSetType PairingParameters ;
- unsigned int PairingParameters_isUsed:1;
-};
-
-/* Complex type name='urn:iso:15118:2:2016:MsgBody,DisconnectChargingDeviceReqType', base type name='BodyBaseType', content type='ELEMENT', isAbstract='false', hasTypeId='false', final='0', block='0', particle='("urn:iso:15118:2:2016:MsgBody":EVElectricalChargingDeviceStatus,"urn:iso:15118:2:2016:MsgBody":EVMechanicalChargingDeviceStatus)', derivedBy='EXTENSION'. */
-struct v2gDisconnectChargingDeviceReqType {
- /* element: "urn:iso:15118:2:2016:MsgBody":EVElectricalChargingDeviceStatus, urn:iso:15118:2:2016:MsgDataTypes,electricalChargingDeviceStatusType */
- v2gelectricalChargingDeviceStatusType EVElectricalChargingDeviceStatus ;
- /* element: "urn:iso:15118:2:2016:MsgBody":EVMechanicalChargingDeviceStatus, urn:iso:15118:2:2016:MsgDataTypes,mechanicalChargingDeviceStatusType */
- v2gmechanicalChargingDeviceStatusType EVMechanicalChargingDeviceStatus ;
-};
-
-/* Complex type name='urn:iso:15118:2:2016:MsgBody,ConnectChargingDeviceResType', base type name='V2GResponseType', content type='ELEMENT', isAbstract='false', hasTypeId='false', final='0', block='0', particle='(("urn:iso:15118:2:2016:MsgBody":ResponseCode,"urn:iso:15118:2:2016:MsgBody":EVSEStatus{0-1}),("urn:iso:15118:2:2016:MsgBody":EVSEProcessing,"urn:iso:15118:2:2016:MsgBody":EVSEElectricalChargingDeviceStatus,"urn:iso:15118:2:2016:MsgBody":EVSEMechanicalChargingDeviceStatus))', derivedBy='EXTENSION'. */
-struct v2gConnectChargingDeviceResType {
- /* element: "urn:iso:15118:2:2016:MsgBody":ResponseCode, urn:iso:15118:2:2016:MsgDataTypes,responseCodeType */
- v2gresponseCodeType ResponseCode ;
- /* element: "urn:iso:15118:2:2016:MsgBody":EVSEStatus, Complex type name='urn:iso:15118:2:2016:MsgDataTypes,EVSEStatusType', base type name='anyType', content type='ELEMENT', isAbstract='false', hasTypeId='false', final='0', block='0', particle='("urn:iso:15118:2:2016:MsgDataTypes":NotificationMaxDelay,"urn:iso:15118:2:2016:MsgDataTypes":EVSENotification)', derivedBy='RESTRICTION'. */
- struct v2gEVSEStatusType EVSEStatus ;
- unsigned int EVSEStatus_isUsed:1;
- /* element: "urn:iso:15118:2:2016:MsgBody":EVSEProcessing, urn:iso:15118:2:2016:MsgDataTypes,EVSEProcessingType */
- v2gEVSEProcessingType EVSEProcessing ;
- /* element: "urn:iso:15118:2:2016:MsgBody":EVSEElectricalChargingDeviceStatus, urn:iso:15118:2:2016:MsgDataTypes,electricalChargingDeviceStatusType */
- v2gelectricalChargingDeviceStatusType EVSEElectricalChargingDeviceStatus ;
- /* element: "urn:iso:15118:2:2016:MsgBody":EVSEMechanicalChargingDeviceStatus, urn:iso:15118:2:2016:MsgDataTypes,mechanicalChargingDeviceStatusType */
- v2gmechanicalChargingDeviceStatusType EVSEMechanicalChargingDeviceStatus ;
-};
-
-/* Complex type name='urn:iso:15118:2:2016:MsgBody,PowerDemandReqType', base type name='ChargeLoopReqType', content type='ELEMENT', isAbstract='false', hasTypeId='false', final='0', block='0', particle='(("urn:iso:15118:2:2016:MsgBody":EVTargetEnergyRequest,"urn:iso:15118:2:2016:MsgBody":EVMaximumEnergyRequest{0-1},"urn:iso:15118:2:2016:MsgBody":EVMinimumEnergyRequest{0-1},"urn:iso:15118:2:2016:MsgBody":DisplayParameters{0-1}),("urn:iso:15118:2:2016:MsgBody":EVTargetPower,"urn:iso:15118:2:2016:MsgBody":EVInputPower,"urn:iso:15118:2:2016:MsgBody":PowerDemandParameters{0-1}))', derivedBy='EXTENSION'. */
-struct v2gPowerDemandReqType {
- /* element: "urn:iso:15118:2:2016:MsgBody":EVTargetEnergyRequest, Complex type name='urn:iso:15118:2:2016:MsgDataTypes,PhysicalValueType', base type name='anyType', content type='ELEMENT', isAbstract='false', hasTypeId='false', final='0', block='0', particle='("urn:iso:15118:2:2016:MsgDataTypes":Exponent,"urn:iso:15118:2:2016:MsgDataTypes":Value)', derivedBy='RESTRICTION'. */
- struct v2gPhysicalValueType EVTargetEnergyRequest ;
- /* element: "urn:iso:15118:2:2016:MsgBody":EVMaximumEnergyRequest, Complex type name='urn:iso:15118:2:2016:MsgDataTypes,PhysicalValueType', base type name='anyType', content type='ELEMENT', isAbstract='false', hasTypeId='false', final='0', block='0', particle='("urn:iso:15118:2:2016:MsgDataTypes":Exponent,"urn:iso:15118:2:2016:MsgDataTypes":Value)', derivedBy='RESTRICTION'. */
- struct v2gPhysicalValueType EVMaximumEnergyRequest ;
- unsigned int EVMaximumEnergyRequest_isUsed:1;
- /* element: "urn:iso:15118:2:2016:MsgBody":EVMinimumEnergyRequest, Complex type name='urn:iso:15118:2:2016:MsgDataTypes,PhysicalValueType', base type name='anyType', content type='ELEMENT', isAbstract='false', hasTypeId='false', final='0', block='0', particle='("urn:iso:15118:2:2016:MsgDataTypes":Exponent,"urn:iso:15118:2:2016:MsgDataTypes":Value)', derivedBy='RESTRICTION'. */
- struct v2gPhysicalValueType EVMinimumEnergyRequest ;
- unsigned int EVMinimumEnergyRequest_isUsed:1;
- /* element: "urn:iso:15118:2:2016:MsgBody":DisplayParameters, Complex type name='urn:iso:15118:2:2016:MsgDataTypes,DisplayParametersType', base type name='anyType', content type='ELEMENT', isAbstract='false', hasTypeId='false', final='0', block='0', particle='("urn:iso:15118:2:2016:MsgDataTypes":CurrentRange{0-1},"urn:iso:15118:2:2016:MsgDataTypes":CurrentSOC{0-1},"urn:iso:15118:2:2016:MsgDataTypes":TargetSOC{0-1},"urn:iso:15118:2:2016:MsgDataTypes":BulkSOC{0-1},"urn:iso:15118:2:2016:MsgDataTypes":MinimumSOC{0-1},"urn:iso:15118:2:2016:MsgDataTypes":ChargingPerformance{0-1},"urn:iso:15118:2:2016:MsgDataTypes":RemainingTimeToTargetSOC{0-1},"urn:iso:15118:2:2016:MsgDataTypes":RemainingTimeToBulkSOC{0-1},"urn:iso:15118:2:2016:MsgDataTypes":RemainingTimeToMinimumSOC{0-1},"urn:iso:15118:2:2016:MsgDataTypes":ChargingComplete{0-1},"urn:iso:15118:2:2016:MsgDataTypes":BulkChargingComplete{0-1},"urn:iso:15118:2:2016:MsgDataTypes":InletHot{0-1})', derivedBy='RESTRICTION'. */
- struct v2gDisplayParametersType DisplayParameters ;
- unsigned int DisplayParameters_isUsed:1;
- /* element: "urn:iso:15118:2:2016:MsgBody":EVTargetPower, Complex type name='urn:iso:15118:2:2016:MsgDataTypes,PhysicalValueType', base type name='anyType', content type='ELEMENT', isAbstract='false', hasTypeId='false', final='0', block='0', particle='("urn:iso:15118:2:2016:MsgDataTypes":Exponent,"urn:iso:15118:2:2016:MsgDataTypes":Value)', derivedBy='RESTRICTION'. */
- struct v2gPhysicalValueType EVTargetPower ;
- /* element: "urn:iso:15118:2:2016:MsgBody":EVInputPower, Complex type name='urn:iso:15118:2:2016:MsgDataTypes,PhysicalValueType', base type name='anyType', content type='ELEMENT', isAbstract='false', hasTypeId='false', final='0', block='0', particle='("urn:iso:15118:2:2016:MsgDataTypes":Exponent,"urn:iso:15118:2:2016:MsgDataTypes":Value)', derivedBy='RESTRICTION'. */
- struct v2gPhysicalValueType EVInputPower ;
- /* element: "urn:iso:15118:2:2016:MsgBody":PowerDemandParameters, Complex type name='urn:iso:15118:2:2016:MsgDataTypes,ParameterSetType', base type name='anyType', content type='ELEMENT', isAbstract='false', hasTypeId='false', final='0', block='0', particle='("urn:iso:15118:2:2016:MsgDataTypes":ParameterSetID,"urn:iso:15118:2:2016:MsgDataTypes":Parameter{1-16})', derivedBy='RESTRICTION'. */
- struct v2gParameterSetType PowerDemandParameters ;
- unsigned int PowerDemandParameters_isUsed:1;
-};
-
-/* Complex type name='urn:iso:15118:2:2016:MsgDataTypes,LFA_EVFinePositioningParametersType', base type name='EVFinePositioningParametersType', content type='ELEMENT', isAbstract='false', hasTypeId='false', final='0', block='0', particle='("urn:iso:15118:2:2016:MsgDataTypes":NumberOfSignalPackages,"urn:iso:15118:2:2016:MsgDataTypes":SensorPackageList)', derivedBy='EXTENSION'. */
-struct v2gLFA_EVFinePositioningParametersType {
- /* element: "urn:iso:15118:2:2016:MsgDataTypes":NumberOfSignalPackages, http://www.w3.org/2001/XMLSchema,unsignedByte */
- uint8_t NumberOfSignalPackages ;
- /* element: "urn:iso:15118:2:2016:MsgDataTypes":SensorPackageList, Complex type name='urn:iso:15118:2:2016:MsgDataTypes,SensorPackageListType', base type name='anyType', content type='ELEMENT', isAbstract='false', hasTypeId='false', final='0', block='0', particle='("urn:iso:15118:2:2016:MsgDataTypes":SensorPackage{1-255})', derivedBy='RESTRICTION'. */
- struct v2gSensorPackageListType SensorPackageList ;
-};
-
-/* Complex type name='urn:iso:15118:2:2016:MsgBody,PowerDeliveryReqType', base type name='BodyBaseType', content type='ELEMENT', isAbstract='false', hasTypeId='false', final='0', block='0', particle='("urn:iso:15118:2:2016:MsgBody":ChargeProgress,"urn:iso:15118:2:2016:MsgBody":EVOperation{0-1},"urn:iso:15118:2:2016:MsgBody":SAScheduleTupleID{0-1},"urn:iso:15118:2:2016:MsgBody":ChargingProfile{0-1})', derivedBy='EXTENSION'. */
-struct v2gPowerDeliveryReqType {
- /* element: "urn:iso:15118:2:2016:MsgBody":ChargeProgress, urn:iso:15118:2:2016:MsgDataTypes,chargeProgressType */
- v2gchargeProgressType ChargeProgress ;
- /* element: "urn:iso:15118:2:2016:MsgBody":EVOperation, urn:iso:15118:2:2016:MsgDataTypes,EVOperationType */
- v2gEVOperationType EVOperation ;
- unsigned int EVOperation_isUsed:1;
- /* element: "urn:iso:15118:2:2016:MsgBody":SAScheduleTupleID, urn:iso:15118:2:2016:MsgDataTypes,SAIDType */
- uint8_t SAScheduleTupleID ;
- unsigned int SAScheduleTupleID_isUsed:1;
- /* element: "urn:iso:15118:2:2016:MsgBody":ChargingProfile, Complex type name='urn:iso:15118:2:2016:MsgDataTypes,ChargingProfileType', base type name='anyType', content type='ELEMENT', isAbstract='false', hasTypeId='false', final='0', block='0', particle='("urn:iso:15118:2:2016:MsgDataTypes":ProfileEntry{1-UNBOUNDED})', derivedBy='RESTRICTION'. */
- struct v2gChargingProfileType ChargingProfile ;
- unsigned int ChargingProfile_isUsed:1;
+ } SelectedService;
};
/* Complex type name='urn:iso:15118:2:2016:MsgDataTypes,Generic_EVSEFinePositioningParametersType', base type name='EVSEFinePositioningParametersType', content type='ELEMENT', isAbstract='false', hasTypeId='false', final='0', block='0', particle='("urn:iso:15118:2:2016:MsgDataTypes":GenericParameters)', derivedBy='EXTENSION'. */
-struct v2gGeneric_EVSEFinePositioningParametersType {
+struct iso2Generic_EVSEFinePositioningParametersType {
/* element: "urn:iso:15118:2:2016:MsgDataTypes":GenericParameters, Complex type name='urn:iso:15118:2:2016:MsgDataTypes,ParameterSetType', base type name='anyType', content type='ELEMENT', isAbstract='false', hasTypeId='false', final='0', block='0', particle='("urn:iso:15118:2:2016:MsgDataTypes":ParameterSetID,"urn:iso:15118:2:2016:MsgDataTypes":Parameter{1-16})', derivedBy='RESTRICTION'. */
- struct v2gParameterSetType GenericParameters ;
+ struct iso2ParameterSetType GenericParameters ;
};
-/* Complex type name='urn:iso:15118:2:2016:MsgBody,PaymentDetailsResType', base type name='V2GResponseType', content type='ELEMENT', isAbstract='false', hasTypeId='false', final='0', block='0', particle='(("urn:iso:15118:2:2016:MsgBody":ResponseCode,"urn:iso:15118:2:2016:MsgBody":EVSEStatus{0-1}),("urn:iso:15118:2:2016:MsgBody":GenChallenge,"urn:iso:15118:2:2016:MsgBody":EVSETimeStamp))', derivedBy='EXTENSION'. */
-#define v2gPaymentDetailsResType_GenChallenge_BYTES_SIZE 16 /* XML schema facet length for urn:iso:15118:2:2016:MsgDataTypes,genChallengeType is 16 */
-struct v2gPaymentDetailsResType {
- /* element: "urn:iso:15118:2:2016:MsgBody":ResponseCode, urn:iso:15118:2:2016:MsgDataTypes,responseCodeType */
- v2gresponseCodeType ResponseCode ;
- /* element: "urn:iso:15118:2:2016:MsgBody":EVSEStatus, Complex type name='urn:iso:15118:2:2016:MsgDataTypes,EVSEStatusType', base type name='anyType', content type='ELEMENT', isAbstract='false', hasTypeId='false', final='0', block='0', particle='("urn:iso:15118:2:2016:MsgDataTypes":NotificationMaxDelay,"urn:iso:15118:2:2016:MsgDataTypes":EVSENotification)', derivedBy='RESTRICTION'. */
- struct v2gEVSEStatusType EVSEStatus ;
- unsigned int EVSEStatus_isUsed:1;
- /* element: "urn:iso:15118:2:2016:MsgBody":GenChallenge, urn:iso:15118:2:2016:MsgDataTypes,genChallengeType */
+/* Complex type name='urn:iso:15118:2:2016:MsgDataTypes,ListOfRootCertificateIDsType', base type name='anyType', content type='ELEMENT', isAbstract='false', hasTypeId='false', final='0', block='0', particle='("urn:iso:15118:2:2016:MsgDataTypes":RootCertificateID{1-20})', derivedBy='RESTRICTION'. */
+#define iso2ListOfRootCertificateIDsType_RootCertificateID_ARRAY_SIZE 5
+struct iso2ListOfRootCertificateIDsType {
+ /* element: "urn:iso:15118:2:2016:MsgDataTypes":RootCertificateID, Complex type name='http://www.w3.org/2000/09/xmldsig#,X509IssuerSerialType', base type name='anyType', content type='ELEMENT', isAbstract='false', hasTypeId='false', final='0', block='0', particle='("http://www.w3.org/2000/09/xmldsig#":X509IssuerName,"http://www.w3.org/2000/09/xmldsig#":X509SerialNumber)', derivedBy='RESTRICTION'. */
struct {
- uint8_t bytes[v2gPaymentDetailsResType_GenChallenge_BYTES_SIZE];
- uint16_t bytesLen;
- } GenChallenge ;
- /* element: "urn:iso:15118:2:2016:MsgBody":EVSETimeStamp, http://www.w3.org/2001/XMLSchema,long */
- int64_t EVSETimeStamp ;
+ struct iso2X509IssuerSerialType array[iso2ListOfRootCertificateIDsType_RootCertificateID_ARRAY_SIZE];
+ uint16_t arrayLen;
+ } RootCertificateID;
};
-/* Complex type name='urn:iso:15118:2:2016:MsgBody,AC_BidirectionalControlReqType', base type name='ChargeLoopReqType', content type='ELEMENT', isAbstract='false', hasTypeId='false', final='0', block='0', particle='(("urn:iso:15118:2:2016:MsgBody":EVTargetEnergyRequest,"urn:iso:15118:2:2016:MsgBody":EVMaximumEnergyRequest{0-1},"urn:iso:15118:2:2016:MsgBody":EVMinimumEnergyRequest{0-1},"urn:iso:15118:2:2016:MsgBody":DisplayParameters{0-1}),("urn:iso:15118:2:2016:MsgBody":EVOperation{0-1},"urn:iso:15118:2:2016:MsgBody":EVMaximumChargePower,"urn:iso:15118:2:2016:MsgBody":EVMaximumDischargePower{0-1},"urn:iso:15118:2:2016:MsgBody":EVMaximumChargeCurrent,"urn:iso:15118:2:2016:MsgBody":EVMaximumDischargeCurrent{0-1},"urn:iso:15118:2:2016:MsgBody":EVMinimumChargeCurrent,"urn:iso:15118:2:2016:MsgBody":EVMinimumDischargeCurrent{0-1},"urn:iso:15118:2:2016:MsgBody":EVPresentActivePower,"urn:iso:15118:2:2016:MsgBody":EVPresentReactivePower))', derivedBy='EXTENSION'. */
-struct v2gAC_BidirectionalControlReqType {
- /* element: "urn:iso:15118:2:2016:MsgBody":EVTargetEnergyRequest, Complex type name='urn:iso:15118:2:2016:MsgDataTypes,PhysicalValueType', base type name='anyType', content type='ELEMENT', isAbstract='false', hasTypeId='false', final='0', block='0', particle='("urn:iso:15118:2:2016:MsgDataTypes":Exponent,"urn:iso:15118:2:2016:MsgDataTypes":Value)', derivedBy='RESTRICTION'. */
- struct v2gPhysicalValueType EVTargetEnergyRequest ;
- /* element: "urn:iso:15118:2:2016:MsgBody":EVMaximumEnergyRequest, Complex type name='urn:iso:15118:2:2016:MsgDataTypes,PhysicalValueType', base type name='anyType', content type='ELEMENT', isAbstract='false', hasTypeId='false', final='0', block='0', particle='("urn:iso:15118:2:2016:MsgDataTypes":Exponent,"urn:iso:15118:2:2016:MsgDataTypes":Value)', derivedBy='RESTRICTION'. */
- struct v2gPhysicalValueType EVMaximumEnergyRequest ;
- unsigned int EVMaximumEnergyRequest_isUsed:1;
- /* element: "urn:iso:15118:2:2016:MsgBody":EVMinimumEnergyRequest, Complex type name='urn:iso:15118:2:2016:MsgDataTypes,PhysicalValueType', base type name='anyType', content type='ELEMENT', isAbstract='false', hasTypeId='false', final='0', block='0', particle='("urn:iso:15118:2:2016:MsgDataTypes":Exponent,"urn:iso:15118:2:2016:MsgDataTypes":Value)', derivedBy='RESTRICTION'. */
- struct v2gPhysicalValueType EVMinimumEnergyRequest ;
- unsigned int EVMinimumEnergyRequest_isUsed:1;
- /* element: "urn:iso:15118:2:2016:MsgBody":DisplayParameters, Complex type name='urn:iso:15118:2:2016:MsgDataTypes,DisplayParametersType', base type name='anyType', content type='ELEMENT', isAbstract='false', hasTypeId='false', final='0', block='0', particle='("urn:iso:15118:2:2016:MsgDataTypes":CurrentRange{0-1},"urn:iso:15118:2:2016:MsgDataTypes":CurrentSOC{0-1},"urn:iso:15118:2:2016:MsgDataTypes":TargetSOC{0-1},"urn:iso:15118:2:2016:MsgDataTypes":BulkSOC{0-1},"urn:iso:15118:2:2016:MsgDataTypes":MinimumSOC{0-1},"urn:iso:15118:2:2016:MsgDataTypes":ChargingPerformance{0-1},"urn:iso:15118:2:2016:MsgDataTypes":RemainingTimeToTargetSOC{0-1},"urn:iso:15118:2:2016:MsgDataTypes":RemainingTimeToBulkSOC{0-1},"urn:iso:15118:2:2016:MsgDataTypes":RemainingTimeToMinimumSOC{0-1},"urn:iso:15118:2:2016:MsgDataTypes":ChargingComplete{0-1},"urn:iso:15118:2:2016:MsgDataTypes":BulkChargingComplete{0-1},"urn:iso:15118:2:2016:MsgDataTypes":InletHot{0-1})', derivedBy='RESTRICTION'. */
- struct v2gDisplayParametersType DisplayParameters ;
- unsigned int DisplayParameters_isUsed:1;
- /* element: "urn:iso:15118:2:2016:MsgBody":EVOperation, urn:iso:15118:2:2016:MsgDataTypes,EVOperationType */
- v2gEVOperationType EVOperation ;
- unsigned int EVOperation_isUsed:1;
- /* element: "urn:iso:15118:2:2016:MsgBody":EVMaximumChargePower, Complex type name='urn:iso:15118:2:2016:MsgDataTypes,PhysicalValueType', base type name='anyType', content type='ELEMENT', isAbstract='false', hasTypeId='false', final='0', block='0', particle='("urn:iso:15118:2:2016:MsgDataTypes":Exponent,"urn:iso:15118:2:2016:MsgDataTypes":Value)', derivedBy='RESTRICTION'. */
- struct v2gPhysicalValueType EVMaximumChargePower ;
- /* element: "urn:iso:15118:2:2016:MsgBody":EVMaximumDischargePower, Complex type name='urn:iso:15118:2:2016:MsgDataTypes,PhysicalValueType', base type name='anyType', content type='ELEMENT', isAbstract='false', hasTypeId='false', final='0', block='0', particle='("urn:iso:15118:2:2016:MsgDataTypes":Exponent,"urn:iso:15118:2:2016:MsgDataTypes":Value)', derivedBy='RESTRICTION'. */
- struct v2gPhysicalValueType EVMaximumDischargePower ;
- unsigned int EVMaximumDischargePower_isUsed:1;
- /* element: "urn:iso:15118:2:2016:MsgBody":EVMaximumChargeCurrent, Complex type name='urn:iso:15118:2:2016:MsgDataTypes,PhysicalValueType', base type name='anyType', content type='ELEMENT', isAbstract='false', hasTypeId='false', final='0', block='0', particle='("urn:iso:15118:2:2016:MsgDataTypes":Exponent,"urn:iso:15118:2:2016:MsgDataTypes":Value)', derivedBy='RESTRICTION'. */
- struct v2gPhysicalValueType EVMaximumChargeCurrent ;
- /* element: "urn:iso:15118:2:2016:MsgBody":EVMaximumDischargeCurrent, Complex type name='urn:iso:15118:2:2016:MsgDataTypes,PhysicalValueType', base type name='anyType', content type='ELEMENT', isAbstract='false', hasTypeId='false', final='0', block='0', particle='("urn:iso:15118:2:2016:MsgDataTypes":Exponent,"urn:iso:15118:2:2016:MsgDataTypes":Value)', derivedBy='RESTRICTION'. */
- struct v2gPhysicalValueType EVMaximumDischargeCurrent ;
- unsigned int EVMaximumDischargeCurrent_isUsed:1;
- /* element: "urn:iso:15118:2:2016:MsgBody":EVMinimumChargeCurrent, Complex type name='urn:iso:15118:2:2016:MsgDataTypes,PhysicalValueType', base type name='anyType', content type='ELEMENT', isAbstract='false', hasTypeId='false', final='0', block='0', particle='("urn:iso:15118:2:2016:MsgDataTypes":Exponent,"urn:iso:15118:2:2016:MsgDataTypes":Value)', derivedBy='RESTRICTION'. */
- struct v2gPhysicalValueType EVMinimumChargeCurrent ;
- /* element: "urn:iso:15118:2:2016:MsgBody":EVMinimumDischargeCurrent, Complex type name='urn:iso:15118:2:2016:MsgDataTypes,PhysicalValueType', base type name='anyType', content type='ELEMENT', isAbstract='false', hasTypeId='false', final='0', block='0', particle='("urn:iso:15118:2:2016:MsgDataTypes":Exponent,"urn:iso:15118:2:2016:MsgDataTypes":Value)', derivedBy='RESTRICTION'. */
- struct v2gPhysicalValueType EVMinimumDischargeCurrent ;
- unsigned int EVMinimumDischargeCurrent_isUsed:1;
- /* element: "urn:iso:15118:2:2016:MsgBody":EVPresentActivePower, Complex type name='urn:iso:15118:2:2016:MsgDataTypes,PhysicalValueType', base type name='anyType', content type='ELEMENT', isAbstract='false', hasTypeId='false', final='0', block='0', particle='("urn:iso:15118:2:2016:MsgDataTypes":Exponent,"urn:iso:15118:2:2016:MsgDataTypes":Value)', derivedBy='RESTRICTION'. */
- struct v2gPhysicalValueType EVPresentActivePower ;
- /* element: "urn:iso:15118:2:2016:MsgBody":EVPresentReactivePower, Complex type name='urn:iso:15118:2:2016:MsgDataTypes,PhysicalValueType', base type name='anyType', content type='ELEMENT', isAbstract='false', hasTypeId='false', final='0', block='0', particle='("urn:iso:15118:2:2016:MsgDataTypes":Exponent,"urn:iso:15118:2:2016:MsgDataTypes":Value)', derivedBy='RESTRICTION'. */
- struct v2gPhysicalValueType EVPresentReactivePower ;
-};
-
-/* Complex type name='urn:iso:15118:2:2016:MsgBody,SessionStopReqType', base type name='BodyBaseType', content type='ELEMENT', isAbstract='false', hasTypeId='false', final='0', block='0', particle='("urn:iso:15118:2:2016:MsgBody":ChargingSession)', derivedBy='EXTENSION'. */
-struct v2gSessionStopReqType {
- /* element: "urn:iso:15118:2:2016:MsgBody":ChargingSession, urn:iso:15118:2:2016:MsgDataTypes,chargingSessionType */
- v2gchargingSessionType ChargingSession ;
-};
-
-/* Complex type name='urn:iso:15118:2:2016:MsgDataTypes,EntryType', base type name='anyType', content type='ELEMENT', isAbstract='true', hasTypeId='false', final='0', block='0', particle='("urn:iso:15118:2:2016:MsgDataTypes":RelativeTimeInterval)', derivedBy='RESTRICTION'. */
-struct v2gEntryType {
- /* element: "urn:iso:15118:2:2016:MsgDataTypes":RelativeTimeInterval, Complex type name='urn:iso:15118:2:2016:MsgDataTypes,RelativeTimeIntervalType', base type name='anyType', content type='ELEMENT', isAbstract='false', hasTypeId='false', final='0', block='0', particle='("urn:iso:15118:2:2016:MsgDataTypes":start,"urn:iso:15118:2:2016:MsgDataTypes":duration{0-1})', derivedBy='RESTRICTION'. */
- struct v2gRelativeTimeIntervalType RelativeTimeInterval ;
-};
-
-/* Complex type name='urn:iso:15118:2:2016:MsgBody,PowerDemandResType', base type name='V2GResponseType', content type='ELEMENT', isAbstract='false', hasTypeId='false', final='0', block='0', particle='(("urn:iso:15118:2:2016:MsgBody":ResponseCode,"urn:iso:15118:2:2016:MsgBody":EVSEStatus{0-1}),("urn:iso:15118:2:2016:MsgBody":EVSEOutputPower,"urn:iso:15118:2:2016:MsgBody":EVSEID,"urn:iso:15118:2:2016:MsgBody":SAScheduleTupleID{0-1},"urn:iso:15118:2:2016:MsgBody":MeterInfo{0-1},"urn:iso:15118:2:2016:MsgBody":ReceiptRequired{0-1},"urn:iso:15118:2:2016:MsgBody":PowerDemandParameters{0-1}))', derivedBy='EXTENSION'. */
-#define v2gPowerDemandResType_EVSEID_CHARACTERS_SIZE 37 /* XML schema facet maxLength for urn:iso:15118:2:2016:MsgDataTypes,evseIDType is 37 */
-struct v2gPowerDemandResType {
- /* element: "urn:iso:15118:2:2016:MsgBody":ResponseCode, urn:iso:15118:2:2016:MsgDataTypes,responseCodeType */
- v2gresponseCodeType ResponseCode ;
- /* element: "urn:iso:15118:2:2016:MsgBody":EVSEStatus, Complex type name='urn:iso:15118:2:2016:MsgDataTypes,EVSEStatusType', base type name='anyType', content type='ELEMENT', isAbstract='false', hasTypeId='false', final='0', block='0', particle='("urn:iso:15118:2:2016:MsgDataTypes":NotificationMaxDelay,"urn:iso:15118:2:2016:MsgDataTypes":EVSENotification)', derivedBy='RESTRICTION'. */
- struct v2gEVSEStatusType EVSEStatus ;
- unsigned int EVSEStatus_isUsed:1;
- /* element: "urn:iso:15118:2:2016:MsgBody":EVSEOutputPower, Complex type name='urn:iso:15118:2:2016:MsgDataTypes,PhysicalValueType', base type name='anyType', content type='ELEMENT', isAbstract='false', hasTypeId='false', final='0', block='0', particle='("urn:iso:15118:2:2016:MsgDataTypes":Exponent,"urn:iso:15118:2:2016:MsgDataTypes":Value)', derivedBy='RESTRICTION'. */
- struct v2gPhysicalValueType EVSEOutputPower ;
- /* element: "urn:iso:15118:2:2016:MsgBody":EVSEID, urn:iso:15118:2:2016:MsgDataTypes,evseIDType */
- struct {
- exi_string_character_t characters[v2gPowerDemandResType_EVSEID_CHARACTERS_SIZE];
- uint16_t charactersLen;
- } EVSEID ;
- /* element: "urn:iso:15118:2:2016:MsgBody":SAScheduleTupleID, urn:iso:15118:2:2016:MsgDataTypes,SAIDType */
- uint8_t SAScheduleTupleID ;
- unsigned int SAScheduleTupleID_isUsed:1;
- /* element: "urn:iso:15118:2:2016:MsgBody":MeterInfo, Complex type name='urn:iso:15118:2:2016:MsgDataTypes,MeterInfoType', base type name='anyType', content type='ELEMENT', isAbstract='false', hasTypeId='false', final='0', block='0', particle='("urn:iso:15118:2:2016:MsgDataTypes":MeterID,"urn:iso:15118:2:2016:MsgDataTypes":MeterReadingCharged{0-1},"urn:iso:15118:2:2016:MsgDataTypes":MeterReadingDischarged{0-1},"urn:iso:15118:2:2016:MsgDataTypes":SigMeterReading{0-1},"urn:iso:15118:2:2016:MsgDataTypes":MeterStatus{0-1},"urn:iso:15118:2:2016:MsgDataTypes":TMeter{0-1})', derivedBy='RESTRICTION'. */
- struct v2gMeterInfoType MeterInfo ;
- unsigned int MeterInfo_isUsed:1;
- /* element: "urn:iso:15118:2:2016:MsgBody":ReceiptRequired, http://www.w3.org/2001/XMLSchema,boolean */
- int ReceiptRequired ;
- unsigned int ReceiptRequired_isUsed:1;
- /* element: "urn:iso:15118:2:2016:MsgBody":PowerDemandParameters, Complex type name='urn:iso:15118:2:2016:MsgDataTypes,ParameterSetType', base type name='anyType', content type='ELEMENT', isAbstract='false', hasTypeId='false', final='0', block='0', particle='("urn:iso:15118:2:2016:MsgDataTypes":ParameterSetID,"urn:iso:15118:2:2016:MsgDataTypes":Parameter{1-16})', derivedBy='RESTRICTION'. */
- struct v2gParameterSetType PowerDemandParameters ;
- unsigned int PowerDemandParameters_isUsed:1;
-};
-
-/* Complex type name='urn:iso:15118:2:2016:MsgBody,SessionSetupResType', base type name='V2GResponseType', content type='ELEMENT', isAbstract='false', hasTypeId='false', final='0', block='0', particle='(("urn:iso:15118:2:2016:MsgBody":ResponseCode,"urn:iso:15118:2:2016:MsgBody":EVSEStatus{0-1}),("urn:iso:15118:2:2016:MsgBody":EVSEID,"urn:iso:15118:2:2016:MsgBody":EVSETimeStamp{0-1}))', derivedBy='EXTENSION'. */
-#define v2gSessionSetupResType_EVSEID_CHARACTERS_SIZE 37 /* XML schema facet maxLength for urn:iso:15118:2:2016:MsgDataTypes,evseIDType is 37 */
-struct v2gSessionSetupResType {
- /* element: "urn:iso:15118:2:2016:MsgBody":ResponseCode, urn:iso:15118:2:2016:MsgDataTypes,responseCodeType */
- v2gresponseCodeType ResponseCode ;
- /* element: "urn:iso:15118:2:2016:MsgBody":EVSEStatus, Complex type name='urn:iso:15118:2:2016:MsgDataTypes,EVSEStatusType', base type name='anyType', content type='ELEMENT', isAbstract='false', hasTypeId='false', final='0', block='0', particle='("urn:iso:15118:2:2016:MsgDataTypes":NotificationMaxDelay,"urn:iso:15118:2:2016:MsgDataTypes":EVSENotification)', derivedBy='RESTRICTION'. */
- struct v2gEVSEStatusType EVSEStatus ;
- unsigned int EVSEStatus_isUsed:1;
- /* element: "urn:iso:15118:2:2016:MsgBody":EVSEID, urn:iso:15118:2:2016:MsgDataTypes,evseIDType */
- struct {
- exi_string_character_t characters[v2gSessionSetupResType_EVSEID_CHARACTERS_SIZE];
- uint16_t charactersLen;
- } EVSEID ;
- /* element: "urn:iso:15118:2:2016:MsgBody":EVSETimeStamp, http://www.w3.org/2001/XMLSchema,long */
- int64_t EVSETimeStamp ;
- unsigned int EVSETimeStamp_isUsed:1;
-};
-
-/* Complex type name='urn:iso:15118:2:2016:MsgBody,VehicleCheckOutResType', base type name='V2GResponseType', content type='ELEMENT', isAbstract='false', hasTypeId='false', final='0', block='0', particle='(("urn:iso:15118:2:2016:MsgBody":ResponseCode,"urn:iso:15118:2:2016:MsgBody":EVSEStatus{0-1}),("urn:iso:15118:2:2016:MsgBody":EVSECheckOutStatus))', derivedBy='EXTENSION'. */
-struct v2gVehicleCheckOutResType {
- /* element: "urn:iso:15118:2:2016:MsgBody":ResponseCode, urn:iso:15118:2:2016:MsgDataTypes,responseCodeType */
- v2gresponseCodeType ResponseCode ;
- /* element: "urn:iso:15118:2:2016:MsgBody":EVSEStatus, Complex type name='urn:iso:15118:2:2016:MsgDataTypes,EVSEStatusType', base type name='anyType', content type='ELEMENT', isAbstract='false', hasTypeId='false', final='0', block='0', particle='("urn:iso:15118:2:2016:MsgDataTypes":NotificationMaxDelay,"urn:iso:15118:2:2016:MsgDataTypes":EVSENotification)', derivedBy='RESTRICTION'. */
- struct v2gEVSEStatusType EVSEStatus ;
- unsigned int EVSEStatus_isUsed:1;
- /* element: "urn:iso:15118:2:2016:MsgBody":EVSECheckOutStatus, urn:iso:15118:2:2016:MsgDataTypes,EVCheckOutStatusType */
- v2gEVCheckOutStatusType EVSECheckOutStatus ;
-};
-
-/* Complex type name='urn:iso:15118:2:2016:MsgBody,CurrentDemandReqType', base type name='ChargeLoopReqType', content type='ELEMENT', isAbstract='false', hasTypeId='false', final='0', block='0', particle='(("urn:iso:15118:2:2016:MsgBody":EVTargetEnergyRequest,"urn:iso:15118:2:2016:MsgBody":EVMaximumEnergyRequest{0-1},"urn:iso:15118:2:2016:MsgBody":EVMinimumEnergyRequest{0-1},"urn:iso:15118:2:2016:MsgBody":DisplayParameters{0-1}),("urn:iso:15118:2:2016:MsgBody":EVTargetCurrent,"urn:iso:15118:2:2016:MsgBody":EVTargetVoltage,"urn:iso:15118:2:2016:MsgBody":EVMaximumCurrent{0-1},"urn:iso:15118:2:2016:MsgBody":EVMaximumPower{0-1},"urn:iso:15118:2:2016:MsgBody":EVMaximumVoltage{0-1}))', derivedBy='EXTENSION'. */
-struct v2gCurrentDemandReqType {
- /* element: "urn:iso:15118:2:2016:MsgBody":EVTargetEnergyRequest, Complex type name='urn:iso:15118:2:2016:MsgDataTypes,PhysicalValueType', base type name='anyType', content type='ELEMENT', isAbstract='false', hasTypeId='false', final='0', block='0', particle='("urn:iso:15118:2:2016:MsgDataTypes":Exponent,"urn:iso:15118:2:2016:MsgDataTypes":Value)', derivedBy='RESTRICTION'. */
- struct v2gPhysicalValueType EVTargetEnergyRequest ;
- /* element: "urn:iso:15118:2:2016:MsgBody":EVMaximumEnergyRequest, Complex type name='urn:iso:15118:2:2016:MsgDataTypes,PhysicalValueType', base type name='anyType', content type='ELEMENT', isAbstract='false', hasTypeId='false', final='0', block='0', particle='("urn:iso:15118:2:2016:MsgDataTypes":Exponent,"urn:iso:15118:2:2016:MsgDataTypes":Value)', derivedBy='RESTRICTION'. */
- struct v2gPhysicalValueType EVMaximumEnergyRequest ;
- unsigned int EVMaximumEnergyRequest_isUsed:1;
- /* element: "urn:iso:15118:2:2016:MsgBody":EVMinimumEnergyRequest, Complex type name='urn:iso:15118:2:2016:MsgDataTypes,PhysicalValueType', base type name='anyType', content type='ELEMENT', isAbstract='false', hasTypeId='false', final='0', block='0', particle='("urn:iso:15118:2:2016:MsgDataTypes":Exponent,"urn:iso:15118:2:2016:MsgDataTypes":Value)', derivedBy='RESTRICTION'. */
- struct v2gPhysicalValueType EVMinimumEnergyRequest ;
- unsigned int EVMinimumEnergyRequest_isUsed:1;
- /* element: "urn:iso:15118:2:2016:MsgBody":DisplayParameters, Complex type name='urn:iso:15118:2:2016:MsgDataTypes,DisplayParametersType', base type name='anyType', content type='ELEMENT', isAbstract='false', hasTypeId='false', final='0', block='0', particle='("urn:iso:15118:2:2016:MsgDataTypes":CurrentRange{0-1},"urn:iso:15118:2:2016:MsgDataTypes":CurrentSOC{0-1},"urn:iso:15118:2:2016:MsgDataTypes":TargetSOC{0-1},"urn:iso:15118:2:2016:MsgDataTypes":BulkSOC{0-1},"urn:iso:15118:2:2016:MsgDataTypes":MinimumSOC{0-1},"urn:iso:15118:2:2016:MsgDataTypes":ChargingPerformance{0-1},"urn:iso:15118:2:2016:MsgDataTypes":RemainingTimeToTargetSOC{0-1},"urn:iso:15118:2:2016:MsgDataTypes":RemainingTimeToBulkSOC{0-1},"urn:iso:15118:2:2016:MsgDataTypes":RemainingTimeToMinimumSOC{0-1},"urn:iso:15118:2:2016:MsgDataTypes":ChargingComplete{0-1},"urn:iso:15118:2:2016:MsgDataTypes":BulkChargingComplete{0-1},"urn:iso:15118:2:2016:MsgDataTypes":InletHot{0-1})', derivedBy='RESTRICTION'. */
- struct v2gDisplayParametersType DisplayParameters ;
- unsigned int DisplayParameters_isUsed:1;
- /* element: "urn:iso:15118:2:2016:MsgBody":EVTargetCurrent, Complex type name='urn:iso:15118:2:2016:MsgDataTypes,PhysicalValueType', base type name='anyType', content type='ELEMENT', isAbstract='false', hasTypeId='false', final='0', block='0', particle='("urn:iso:15118:2:2016:MsgDataTypes":Exponent,"urn:iso:15118:2:2016:MsgDataTypes":Value)', derivedBy='RESTRICTION'. */
- struct v2gPhysicalValueType EVTargetCurrent ;
- /* element: "urn:iso:15118:2:2016:MsgBody":EVTargetVoltage, Complex type name='urn:iso:15118:2:2016:MsgDataTypes,PhysicalValueType', base type name='anyType', content type='ELEMENT', isAbstract='false', hasTypeId='false', final='0', block='0', particle='("urn:iso:15118:2:2016:MsgDataTypes":Exponent,"urn:iso:15118:2:2016:MsgDataTypes":Value)', derivedBy='RESTRICTION'. */
- struct v2gPhysicalValueType EVTargetVoltage ;
- /* element: "urn:iso:15118:2:2016:MsgBody":EVMaximumCurrent, Complex type name='urn:iso:15118:2:2016:MsgDataTypes,PhysicalValueType', base type name='anyType', content type='ELEMENT', isAbstract='false', hasTypeId='false', final='0', block='0', particle='("urn:iso:15118:2:2016:MsgDataTypes":Exponent,"urn:iso:15118:2:2016:MsgDataTypes":Value)', derivedBy='RESTRICTION'. */
- struct v2gPhysicalValueType EVMaximumCurrent ;
- unsigned int EVMaximumCurrent_isUsed:1;
- /* element: "urn:iso:15118:2:2016:MsgBody":EVMaximumPower, Complex type name='urn:iso:15118:2:2016:MsgDataTypes,PhysicalValueType', base type name='anyType', content type='ELEMENT', isAbstract='false', hasTypeId='false', final='0', block='0', particle='("urn:iso:15118:2:2016:MsgDataTypes":Exponent,"urn:iso:15118:2:2016:MsgDataTypes":Value)', derivedBy='RESTRICTION'. */
- struct v2gPhysicalValueType EVMaximumPower ;
- unsigned int EVMaximumPower_isUsed:1;
- /* element: "urn:iso:15118:2:2016:MsgBody":EVMaximumVoltage, Complex type name='urn:iso:15118:2:2016:MsgDataTypes,PhysicalValueType', base type name='anyType', content type='ELEMENT', isAbstract='false', hasTypeId='false', final='0', block='0', particle='("urn:iso:15118:2:2016:MsgDataTypes":Exponent,"urn:iso:15118:2:2016:MsgDataTypes":Value)', derivedBy='RESTRICTION'. */
- struct v2gPhysicalValueType EVMaximumVoltage ;
- unsigned int EVMaximumVoltage_isUsed:1;
-};
-
-/* Complex type name='urn:iso:15118:2:2016:MsgBody,DisconnectChargingDeviceResType', base type name='V2GResponseType', content type='ELEMENT', isAbstract='false', hasTypeId='false', final='0', block='0', particle='(("urn:iso:15118:2:2016:MsgBody":ResponseCode,"urn:iso:15118:2:2016:MsgBody":EVSEStatus{0-1}),("urn:iso:15118:2:2016:MsgBody":EVSEProcessing,"urn:iso:15118:2:2016:MsgBody":EVSEElectricalChargingDeviceStatus,"urn:iso:15118:2:2016:MsgBody":EVSEMechanicalChargingDeviceStatus))', derivedBy='EXTENSION'. */
-struct v2gDisconnectChargingDeviceResType {
- /* element: "urn:iso:15118:2:2016:MsgBody":ResponseCode, urn:iso:15118:2:2016:MsgDataTypes,responseCodeType */
- v2gresponseCodeType ResponseCode ;
- /* element: "urn:iso:15118:2:2016:MsgBody":EVSEStatus, Complex type name='urn:iso:15118:2:2016:MsgDataTypes,EVSEStatusType', base type name='anyType', content type='ELEMENT', isAbstract='false', hasTypeId='false', final='0', block='0', particle='("urn:iso:15118:2:2016:MsgDataTypes":NotificationMaxDelay,"urn:iso:15118:2:2016:MsgDataTypes":EVSENotification)', derivedBy='RESTRICTION'. */
- struct v2gEVSEStatusType EVSEStatus ;
- unsigned int EVSEStatus_isUsed:1;
- /* element: "urn:iso:15118:2:2016:MsgBody":EVSEProcessing, urn:iso:15118:2:2016:MsgDataTypes,EVSEProcessingType */
- v2gEVSEProcessingType EVSEProcessing ;
- /* element: "urn:iso:15118:2:2016:MsgBody":EVSEElectricalChargingDeviceStatus, urn:iso:15118:2:2016:MsgDataTypes,electricalChargingDeviceStatusType */
- v2gelectricalChargingDeviceStatusType EVSEElectricalChargingDeviceStatus ;
- /* element: "urn:iso:15118:2:2016:MsgBody":EVSEMechanicalChargingDeviceStatus, urn:iso:15118:2:2016:MsgDataTypes,mechanicalChargingDeviceStatusType */
- v2gmechanicalChargingDeviceStatusType EVSEMechanicalChargingDeviceStatus ;
-};
-
-/* Complex type name='urn:iso:15118:2:2016:MsgBody,ChargingStatusResType', base type name='V2GResponseType', content type='ELEMENT', isAbstract='false', hasTypeId='false', final='0', block='0', particle='(("urn:iso:15118:2:2016:MsgBody":ResponseCode,"urn:iso:15118:2:2016:MsgBody":EVSEStatus{0-1}),("urn:iso:15118:2:2016:MsgBody":EVSEID,"urn:iso:15118:2:2016:MsgBody":SAScheduleTupleID{0-1},"urn:iso:15118:2:2016:MsgBody":MeterInfo{0-1},"urn:iso:15118:2:2016:MsgBody":ReceiptRequired{0-1},"urn:iso:15118:2:2016:MsgBody":EVSETargetPower{0-1}))', derivedBy='EXTENSION'. */
-#define v2gChargingStatusResType_EVSEID_CHARACTERS_SIZE 37 /* XML schema facet maxLength for urn:iso:15118:2:2016:MsgDataTypes,evseIDType is 37 */
-struct v2gChargingStatusResType {
- /* element: "urn:iso:15118:2:2016:MsgBody":ResponseCode, urn:iso:15118:2:2016:MsgDataTypes,responseCodeType */
- v2gresponseCodeType ResponseCode ;
- /* element: "urn:iso:15118:2:2016:MsgBody":EVSEStatus, Complex type name='urn:iso:15118:2:2016:MsgDataTypes,EVSEStatusType', base type name='anyType', content type='ELEMENT', isAbstract='false', hasTypeId='false', final='0', block='0', particle='("urn:iso:15118:2:2016:MsgDataTypes":NotificationMaxDelay,"urn:iso:15118:2:2016:MsgDataTypes":EVSENotification)', derivedBy='RESTRICTION'. */
- struct v2gEVSEStatusType EVSEStatus ;
- unsigned int EVSEStatus_isUsed:1;
- /* element: "urn:iso:15118:2:2016:MsgBody":EVSEID, urn:iso:15118:2:2016:MsgDataTypes,evseIDType */
- struct {
- exi_string_character_t characters[v2gChargingStatusResType_EVSEID_CHARACTERS_SIZE];
- uint16_t charactersLen;
- } EVSEID ;
- /* element: "urn:iso:15118:2:2016:MsgBody":SAScheduleTupleID, urn:iso:15118:2:2016:MsgDataTypes,SAIDType */
- uint8_t SAScheduleTupleID ;
- unsigned int SAScheduleTupleID_isUsed:1;
- /* element: "urn:iso:15118:2:2016:MsgBody":MeterInfo, Complex type name='urn:iso:15118:2:2016:MsgDataTypes,MeterInfoType', base type name='anyType', content type='ELEMENT', isAbstract='false', hasTypeId='false', final='0', block='0', particle='("urn:iso:15118:2:2016:MsgDataTypes":MeterID,"urn:iso:15118:2:2016:MsgDataTypes":MeterReadingCharged{0-1},"urn:iso:15118:2:2016:MsgDataTypes":MeterReadingDischarged{0-1},"urn:iso:15118:2:2016:MsgDataTypes":SigMeterReading{0-1},"urn:iso:15118:2:2016:MsgDataTypes":MeterStatus{0-1},"urn:iso:15118:2:2016:MsgDataTypes":TMeter{0-1})', derivedBy='RESTRICTION'. */
- struct v2gMeterInfoType MeterInfo ;
- unsigned int MeterInfo_isUsed:1;
- /* element: "urn:iso:15118:2:2016:MsgBody":ReceiptRequired, http://www.w3.org/2001/XMLSchema,boolean */
- int ReceiptRequired ;
- unsigned int ReceiptRequired_isUsed:1;
- /* element: "urn:iso:15118:2:2016:MsgBody":EVSETargetPower, Complex type name='urn:iso:15118:2:2016:MsgDataTypes,PhysicalValueType', base type name='anyType', content type='ELEMENT', isAbstract='false', hasTypeId='false', final='0', block='0', particle='("urn:iso:15118:2:2016:MsgDataTypes":Exponent,"urn:iso:15118:2:2016:MsgDataTypes":Value)', derivedBy='RESTRICTION'. */
- struct v2gPhysicalValueType EVSETargetPower ;
- unsigned int EVSETargetPower_isUsed:1;
-};
-
-/* Complex type name='http://www.w3.org/2000/09/xmldsig#,ReferenceType', base type name='anyType', content type='ELEMENT', isAbstract='false', hasTypeId='false', final='0', block='0', particle='("http://www.w3.org/2000/09/xmldsig#":Transforms{0-1},"http://www.w3.org/2000/09/xmldsig#":DigestMethod,"http://www.w3.org/2000/09/xmldsig#":DigestValue)', derivedBy='RESTRICTION'. */
-#define v2gReferenceType_Id_CHARACTERS_SIZE 50
-#define v2gReferenceType_URI_CHARACTERS_SIZE 50
-#define v2gReferenceType_Type_CHARACTERS_SIZE 50
-#define v2gReferenceType_DigestValue_BYTES_SIZE 350
-struct v2gReferenceType {
- /* attribute: Id {http://www.w3.org/2001/XMLSchema,ID} */
- struct {
- exi_string_character_t characters[v2gReferenceType_Id_CHARACTERS_SIZE];
- uint16_t charactersLen;
- } Id ;
- unsigned int Id_isUsed:1;
- /* attribute: URI {http://www.w3.org/2001/XMLSchema,anyURI} */
- struct {
- exi_string_character_t characters[v2gReferenceType_URI_CHARACTERS_SIZE];
- uint16_t charactersLen;
- } URI ;
- unsigned int URI_isUsed:1;
- /* attribute: Type {http://www.w3.org/2001/XMLSchema,anyURI} */
- struct {
- exi_string_character_t characters[v2gReferenceType_Type_CHARACTERS_SIZE];
- uint16_t charactersLen;
- } Type ;
- unsigned int Type_isUsed:1;
- /* element: "http://www.w3.org/2000/09/xmldsig#":Transforms, Complex type name='http://www.w3.org/2000/09/xmldsig#,TransformsType', base type name='anyType', content type='ELEMENT', isAbstract='false', hasTypeId='false', final='0', block='0', particle='("http://www.w3.org/2000/09/xmldsig#":Transform{1-UNBOUNDED})', derivedBy='RESTRICTION'. */
- struct v2gTransformsType Transforms ;
- unsigned int Transforms_isUsed:1;
- /* element: "http://www.w3.org/2000/09/xmldsig#":DigestMethod, Complex type name='http://www.w3.org/2000/09/xmldsig#,DigestMethodType', base type name='anyType', content type='MIXED', isAbstract='false', hasTypeId='false', final='0', block='0', particle='((WC[##other:"http://www.w3.org/2000/09/xmldsig#"]){0-UNBOUNDED})', derivedBy='RESTRICTION'. */
- struct v2gDigestMethodType DigestMethod ;
- /* element: "http://www.w3.org/2000/09/xmldsig#":DigestValue, http://www.w3.org/2000/09/xmldsig#,DigestValueType */
- struct {
- uint8_t bytes[v2gReferenceType_DigestValue_BYTES_SIZE];
- uint16_t bytesLen;
- } DigestValue ;
+/* Complex type name='urn:iso:15118:2:2016:MsgBody,PairingReqType', base type name='BodyBaseType', content type='ELEMENT', isAbstract='false', hasTypeId='false', final='0', block='0', particle='("urn:iso:15118:2:2016:MsgBody":EVProcessing,"urn:iso:15118:2:2016:MsgBody":PairingParameters{0-1})', derivedBy='EXTENSION'. */
+struct iso2PairingReqType {
+ /* element: "urn:iso:15118:2:2016:MsgBody":EVProcessing, urn:iso:15118:2:2016:MsgDataTypes,EVSEProcessingType */
+ iso2EVSEProcessingType EVProcessing ;
+ /* element: "urn:iso:15118:2:2016:MsgBody":PairingParameters, Complex type name='urn:iso:15118:2:2016:MsgDataTypes,ParameterSetType', base type name='anyType', content type='ELEMENT', isAbstract='false', hasTypeId='false', final='0', block='0', particle='("urn:iso:15118:2:2016:MsgDataTypes":ParameterSetID,"urn:iso:15118:2:2016:MsgDataTypes":Parameter{1-16})', derivedBy='RESTRICTION'. */
+ struct iso2ParameterSetType PairingParameters ;
+ unsigned int PairingParameters_isUsed:1;
};
/* Complex type name='urn:iso:15118:2:2016:MsgBody,CurrentDemandResType', base type name='V2GResponseType', content type='ELEMENT', isAbstract='false', hasTypeId='false', final='0', block='0', particle='(("urn:iso:15118:2:2016:MsgBody":ResponseCode,"urn:iso:15118:2:2016:MsgBody":EVSEStatus{0-1}),("urn:iso:15118:2:2016:MsgBody":EVSEPresentCurrent,"urn:iso:15118:2:2016:MsgBody":EVSEPresentVoltage,"urn:iso:15118:2:2016:MsgBody":EVSEPowerLimitAchieved,"urn:iso:15118:2:2016:MsgBody":EVSECurrentLimitAchieved,"urn:iso:15118:2:2016:MsgBody":EVSEVoltageLimitAchieved,"urn:iso:15118:2:2016:MsgBody":EVSEMaximumPower{0-1},"urn:iso:15118:2:2016:MsgBody":EVSEMaximumCurrent{0-1},"urn:iso:15118:2:2016:MsgBody":EVSEMaximumVoltage{0-1},"urn:iso:15118:2:2016:MsgBody":EVSEID,"urn:iso:15118:2:2016:MsgBody":SAScheduleTupleID{0-1},"urn:iso:15118:2:2016:MsgBody":MeterInfo{0-1},"urn:iso:15118:2:2016:MsgBody":ReceiptRequired{0-1}))', derivedBy='EXTENSION'. */
-#define v2gCurrentDemandResType_EVSEID_CHARACTERS_SIZE 37 /* XML schema facet maxLength for urn:iso:15118:2:2016:MsgDataTypes,evseIDType is 37 */
-struct v2gCurrentDemandResType {
+#define iso2CurrentDemandResType_EVSEID_CHARACTERS_SIZE 37 + EXTRA_CHAR /* XML schema facet maxLength for urn:iso:15118:2:2016:MsgDataTypes,evseIDType is 37 */
+struct iso2CurrentDemandResType {
/* element: "urn:iso:15118:2:2016:MsgBody":ResponseCode, urn:iso:15118:2:2016:MsgDataTypes,responseCodeType */
- v2gresponseCodeType ResponseCode ;
+ iso2responseCodeType ResponseCode ;
/* element: "urn:iso:15118:2:2016:MsgBody":EVSEStatus, Complex type name='urn:iso:15118:2:2016:MsgDataTypes,EVSEStatusType', base type name='anyType', content type='ELEMENT', isAbstract='false', hasTypeId='false', final='0', block='0', particle='("urn:iso:15118:2:2016:MsgDataTypes":NotificationMaxDelay,"urn:iso:15118:2:2016:MsgDataTypes":EVSENotification)', derivedBy='RESTRICTION'. */
- struct v2gEVSEStatusType EVSEStatus ;
+ struct iso2EVSEStatusType EVSEStatus ;
unsigned int EVSEStatus_isUsed:1;
/* element: "urn:iso:15118:2:2016:MsgBody":EVSEPresentCurrent, Complex type name='urn:iso:15118:2:2016:MsgDataTypes,PhysicalValueType', base type name='anyType', content type='ELEMENT', isAbstract='false', hasTypeId='false', final='0', block='0', particle='("urn:iso:15118:2:2016:MsgDataTypes":Exponent,"urn:iso:15118:2:2016:MsgDataTypes":Value)', derivedBy='RESTRICTION'. */
- struct v2gPhysicalValueType EVSEPresentCurrent ;
+ struct iso2PhysicalValueType EVSEPresentCurrent ;
/* element: "urn:iso:15118:2:2016:MsgBody":EVSEPresentVoltage, Complex type name='urn:iso:15118:2:2016:MsgDataTypes,PhysicalValueType', base type name='anyType', content type='ELEMENT', isAbstract='false', hasTypeId='false', final='0', block='0', particle='("urn:iso:15118:2:2016:MsgDataTypes":Exponent,"urn:iso:15118:2:2016:MsgDataTypes":Value)', derivedBy='RESTRICTION'. */
- struct v2gPhysicalValueType EVSEPresentVoltage ;
+ struct iso2PhysicalValueType EVSEPresentVoltage ;
/* element: "urn:iso:15118:2:2016:MsgBody":EVSEPowerLimitAchieved, http://www.w3.org/2001/XMLSchema,boolean */
int EVSEPowerLimitAchieved ;
/* element: "urn:iso:15118:2:2016:MsgBody":EVSECurrentLimitAchieved, http://www.w3.org/2001/XMLSchema,boolean */
@@ -2115,340 +1905,335 @@ struct v2gCurrentDemandResType {
/* element: "urn:iso:15118:2:2016:MsgBody":EVSEVoltageLimitAchieved, http://www.w3.org/2001/XMLSchema,boolean */
int EVSEVoltageLimitAchieved ;
/* element: "urn:iso:15118:2:2016:MsgBody":EVSEMaximumPower, Complex type name='urn:iso:15118:2:2016:MsgDataTypes,PhysicalValueType', base type name='anyType', content type='ELEMENT', isAbstract='false', hasTypeId='false', final='0', block='0', particle='("urn:iso:15118:2:2016:MsgDataTypes":Exponent,"urn:iso:15118:2:2016:MsgDataTypes":Value)', derivedBy='RESTRICTION'. */
- struct v2gPhysicalValueType EVSEMaximumPower ;
+ struct iso2PhysicalValueType EVSEMaximumPower ;
unsigned int EVSEMaximumPower_isUsed:1;
/* element: "urn:iso:15118:2:2016:MsgBody":EVSEMaximumCurrent, Complex type name='urn:iso:15118:2:2016:MsgDataTypes,PhysicalValueType', base type name='anyType', content type='ELEMENT', isAbstract='false', hasTypeId='false', final='0', block='0', particle='("urn:iso:15118:2:2016:MsgDataTypes":Exponent,"urn:iso:15118:2:2016:MsgDataTypes":Value)', derivedBy='RESTRICTION'. */
- struct v2gPhysicalValueType EVSEMaximumCurrent ;
+ struct iso2PhysicalValueType EVSEMaximumCurrent ;
unsigned int EVSEMaximumCurrent_isUsed:1;
/* element: "urn:iso:15118:2:2016:MsgBody":EVSEMaximumVoltage, Complex type name='urn:iso:15118:2:2016:MsgDataTypes,PhysicalValueType', base type name='anyType', content type='ELEMENT', isAbstract='false', hasTypeId='false', final='0', block='0', particle='("urn:iso:15118:2:2016:MsgDataTypes":Exponent,"urn:iso:15118:2:2016:MsgDataTypes":Value)', derivedBy='RESTRICTION'. */
- struct v2gPhysicalValueType EVSEMaximumVoltage ;
+ struct iso2PhysicalValueType EVSEMaximumVoltage ;
unsigned int EVSEMaximumVoltage_isUsed:1;
/* element: "urn:iso:15118:2:2016:MsgBody":EVSEID, urn:iso:15118:2:2016:MsgDataTypes,evseIDType */
struct {
- exi_string_character_t characters[v2gCurrentDemandResType_EVSEID_CHARACTERS_SIZE];
+ exi_string_character_t characters[iso2CurrentDemandResType_EVSEID_CHARACTERS_SIZE];
uint16_t charactersLen;
} EVSEID ;
/* element: "urn:iso:15118:2:2016:MsgBody":SAScheduleTupleID, urn:iso:15118:2:2016:MsgDataTypes,SAIDType */
uint8_t SAScheduleTupleID ;
unsigned int SAScheduleTupleID_isUsed:1;
/* element: "urn:iso:15118:2:2016:MsgBody":MeterInfo, Complex type name='urn:iso:15118:2:2016:MsgDataTypes,MeterInfoType', base type name='anyType', content type='ELEMENT', isAbstract='false', hasTypeId='false', final='0', block='0', particle='("urn:iso:15118:2:2016:MsgDataTypes":MeterID,"urn:iso:15118:2:2016:MsgDataTypes":MeterReadingCharged{0-1},"urn:iso:15118:2:2016:MsgDataTypes":MeterReadingDischarged{0-1},"urn:iso:15118:2:2016:MsgDataTypes":SigMeterReading{0-1},"urn:iso:15118:2:2016:MsgDataTypes":MeterStatus{0-1},"urn:iso:15118:2:2016:MsgDataTypes":TMeter{0-1})', derivedBy='RESTRICTION'. */
- struct v2gMeterInfoType MeterInfo ;
+ struct iso2MeterInfoType MeterInfo ;
unsigned int MeterInfo_isUsed:1;
/* element: "urn:iso:15118:2:2016:MsgBody":ReceiptRequired, http://www.w3.org/2001/XMLSchema,boolean */
int ReceiptRequired ;
unsigned int ReceiptRequired_isUsed:1;
};
-/* Complex type name='urn:iso:15118:2:2016:MsgBody,DC_BidirectionalControlResType', base type name='V2GResponseType', content type='ELEMENT', isAbstract='false', hasTypeId='false', final='0', block='0', particle='(("urn:iso:15118:2:2016:MsgBody":ResponseCode,"urn:iso:15118:2:2016:MsgBody":EVSEStatus{0-1}),("urn:iso:15118:2:2016:MsgBody":EVSEPresentCurrent,"urn:iso:15118:2:2016:MsgBody":EVSEPresentVoltage,"urn:iso:15118:2:2016:MsgBody":EVSEPowerLimitAchieved,"urn:iso:15118:2:2016:MsgBody":EVSECurrentLimitAchieved,"urn:iso:15118:2:2016:MsgBody":EVSEVoltageLimitAchieved,"urn:iso:15118:2:2016:MsgBody":EVSEMaximumChargePower{0-1},"urn:iso:15118:2:2016:MsgBody":EVSEMaximumDischargePower{0-1},"urn:iso:15118:2:2016:MsgBody":EVSEMaximumChargeCurrent{0-1},"urn:iso:15118:2:2016:MsgBody":EVSEMaximumDischargeCurrent{0-1},"urn:iso:15118:2:2016:MsgBody":EVSEMaximumVoltage{0-1},"urn:iso:15118:2:2016:MsgBody":EVSEMinimumVoltage{0-1},"urn:iso:15118:2:2016:MsgBody":EVSEID,"urn:iso:15118:2:2016:MsgBody":SAScheduleTupleID{0-1},"urn:iso:15118:2:2016:MsgBody":MeterInfo{0-1},"urn:iso:15118:2:2016:MsgBody":ReceiptRequired{0-1}))', derivedBy='EXTENSION'. */
-#define v2gDC_BidirectionalControlResType_EVSEID_CHARACTERS_SIZE 37 /* XML schema facet maxLength for urn:iso:15118:2:2016:MsgDataTypes,evseIDType is 37 */
-struct v2gDC_BidirectionalControlResType {
- /* element: "urn:iso:15118:2:2016:MsgBody":ResponseCode, urn:iso:15118:2:2016:MsgDataTypes,responseCodeType */
- v2gresponseCodeType ResponseCode ;
- /* element: "urn:iso:15118:2:2016:MsgBody":EVSEStatus, Complex type name='urn:iso:15118:2:2016:MsgDataTypes,EVSEStatusType', base type name='anyType', content type='ELEMENT', isAbstract='false', hasTypeId='false', final='0', block='0', particle='("urn:iso:15118:2:2016:MsgDataTypes":NotificationMaxDelay,"urn:iso:15118:2:2016:MsgDataTypes":EVSENotification)', derivedBy='RESTRICTION'. */
- struct v2gEVSEStatusType EVSEStatus ;
- unsigned int EVSEStatus_isUsed:1;
- /* element: "urn:iso:15118:2:2016:MsgBody":EVSEPresentCurrent, Complex type name='urn:iso:15118:2:2016:MsgDataTypes,PhysicalValueType', base type name='anyType', content type='ELEMENT', isAbstract='false', hasTypeId='false', final='0', block='0', particle='("urn:iso:15118:2:2016:MsgDataTypes":Exponent,"urn:iso:15118:2:2016:MsgDataTypes":Value)', derivedBy='RESTRICTION'. */
- struct v2gPhysicalValueType EVSEPresentCurrent ;
- /* element: "urn:iso:15118:2:2016:MsgBody":EVSEPresentVoltage, Complex type name='urn:iso:15118:2:2016:MsgDataTypes,PhysicalValueType', base type name='anyType', content type='ELEMENT', isAbstract='false', hasTypeId='false', final='0', block='0', particle='("urn:iso:15118:2:2016:MsgDataTypes":Exponent,"urn:iso:15118:2:2016:MsgDataTypes":Value)', derivedBy='RESTRICTION'. */
- struct v2gPhysicalValueType EVSEPresentVoltage ;
- /* element: "urn:iso:15118:2:2016:MsgBody":EVSEPowerLimitAchieved, http://www.w3.org/2001/XMLSchema,boolean */
- int EVSEPowerLimitAchieved ;
- /* element: "urn:iso:15118:2:2016:MsgBody":EVSECurrentLimitAchieved, http://www.w3.org/2001/XMLSchema,boolean */
- int EVSECurrentLimitAchieved ;
- /* element: "urn:iso:15118:2:2016:MsgBody":EVSEVoltageLimitAchieved, http://www.w3.org/2001/XMLSchema,boolean */
- int EVSEVoltageLimitAchieved ;
- /* element: "urn:iso:15118:2:2016:MsgBody":EVSEMaximumChargePower, Complex type name='urn:iso:15118:2:2016:MsgDataTypes,PhysicalValueType', base type name='anyType', content type='ELEMENT', isAbstract='false', hasTypeId='false', final='0', block='0', particle='("urn:iso:15118:2:2016:MsgDataTypes":Exponent,"urn:iso:15118:2:2016:MsgDataTypes":Value)', derivedBy='RESTRICTION'. */
- struct v2gPhysicalValueType EVSEMaximumChargePower ;
- unsigned int EVSEMaximumChargePower_isUsed:1;
- /* element: "urn:iso:15118:2:2016:MsgBody":EVSEMaximumDischargePower, Complex type name='urn:iso:15118:2:2016:MsgDataTypes,PhysicalValueType', base type name='anyType', content type='ELEMENT', isAbstract='false', hasTypeId='false', final='0', block='0', particle='("urn:iso:15118:2:2016:MsgDataTypes":Exponent,"urn:iso:15118:2:2016:MsgDataTypes":Value)', derivedBy='RESTRICTION'. */
- struct v2gPhysicalValueType EVSEMaximumDischargePower ;
- unsigned int EVSEMaximumDischargePower_isUsed:1;
- /* element: "urn:iso:15118:2:2016:MsgBody":EVSEMaximumChargeCurrent, Complex type name='urn:iso:15118:2:2016:MsgDataTypes,PhysicalValueType', base type name='anyType', content type='ELEMENT', isAbstract='false', hasTypeId='false', final='0', block='0', particle='("urn:iso:15118:2:2016:MsgDataTypes":Exponent,"urn:iso:15118:2:2016:MsgDataTypes":Value)', derivedBy='RESTRICTION'. */
- struct v2gPhysicalValueType EVSEMaximumChargeCurrent ;
- unsigned int EVSEMaximumChargeCurrent_isUsed:1;
- /* element: "urn:iso:15118:2:2016:MsgBody":EVSEMaximumDischargeCurrent, Complex type name='urn:iso:15118:2:2016:MsgDataTypes,PhysicalValueType', base type name='anyType', content type='ELEMENT', isAbstract='false', hasTypeId='false', final='0', block='0', particle='("urn:iso:15118:2:2016:MsgDataTypes":Exponent,"urn:iso:15118:2:2016:MsgDataTypes":Value)', derivedBy='RESTRICTION'. */
- struct v2gPhysicalValueType EVSEMaximumDischargeCurrent ;
- unsigned int EVSEMaximumDischargeCurrent_isUsed:1;
- /* element: "urn:iso:15118:2:2016:MsgBody":EVSEMaximumVoltage, Complex type name='urn:iso:15118:2:2016:MsgDataTypes,PhysicalValueType', base type name='anyType', content type='ELEMENT', isAbstract='false', hasTypeId='false', final='0', block='0', particle='("urn:iso:15118:2:2016:MsgDataTypes":Exponent,"urn:iso:15118:2:2016:MsgDataTypes":Value)', derivedBy='RESTRICTION'. */
- struct v2gPhysicalValueType EVSEMaximumVoltage ;
- unsigned int EVSEMaximumVoltage_isUsed:1;
- /* element: "urn:iso:15118:2:2016:MsgBody":EVSEMinimumVoltage, Complex type name='urn:iso:15118:2:2016:MsgDataTypes,PhysicalValueType', base type name='anyType', content type='ELEMENT', isAbstract='false', hasTypeId='false', final='0', block='0', particle='("urn:iso:15118:2:2016:MsgDataTypes":Exponent,"urn:iso:15118:2:2016:MsgDataTypes":Value)', derivedBy='RESTRICTION'. */
- struct v2gPhysicalValueType EVSEMinimumVoltage ;
- unsigned int EVSEMinimumVoltage_isUsed:1;
- /* element: "urn:iso:15118:2:2016:MsgBody":EVSEID, urn:iso:15118:2:2016:MsgDataTypes,evseIDType */
- struct {
- exi_string_character_t characters[v2gDC_BidirectionalControlResType_EVSEID_CHARACTERS_SIZE];
- uint16_t charactersLen;
- } EVSEID ;
- /* element: "urn:iso:15118:2:2016:MsgBody":SAScheduleTupleID, urn:iso:15118:2:2016:MsgDataTypes,SAIDType */
- uint8_t SAScheduleTupleID ;
- unsigned int SAScheduleTupleID_isUsed:1;
- /* element: "urn:iso:15118:2:2016:MsgBody":MeterInfo, Complex type name='urn:iso:15118:2:2016:MsgDataTypes,MeterInfoType', base type name='anyType', content type='ELEMENT', isAbstract='false', hasTypeId='false', final='0', block='0', particle='("urn:iso:15118:2:2016:MsgDataTypes":MeterID,"urn:iso:15118:2:2016:MsgDataTypes":MeterReadingCharged{0-1},"urn:iso:15118:2:2016:MsgDataTypes":MeterReadingDischarged{0-1},"urn:iso:15118:2:2016:MsgDataTypes":SigMeterReading{0-1},"urn:iso:15118:2:2016:MsgDataTypes":MeterStatus{0-1},"urn:iso:15118:2:2016:MsgDataTypes":TMeter{0-1})', derivedBy='RESTRICTION'. */
- struct v2gMeterInfoType MeterInfo ;
- unsigned int MeterInfo_isUsed:1;
- /* element: "urn:iso:15118:2:2016:MsgBody":ReceiptRequired, http://www.w3.org/2001/XMLSchema,boolean */
- int ReceiptRequired ;
- unsigned int ReceiptRequired_isUsed:1;
-};
-
-/* Complex type name='urn:iso:15118:2:2016:MsgBody,AlignmentCheckResType', base type name='V2GResponseType', content type='ELEMENT', isAbstract='false', hasTypeId='false', final='0', block='0', particle='(("urn:iso:15118:2:2016:MsgBody":ResponseCode,"urn:iso:15118:2:2016:MsgBody":EVSEStatus{0-1}),("urn:iso:15118:2:2016:MsgBody":EVSEProcessing,"urn:iso:15118:2:2016:MsgBody":AlignmentCheckParameters{0-1}))', derivedBy='EXTENSION'. */
-struct v2gAlignmentCheckResType {
- /* element: "urn:iso:15118:2:2016:MsgBody":ResponseCode, urn:iso:15118:2:2016:MsgDataTypes,responseCodeType */
- v2gresponseCodeType ResponseCode ;
- /* element: "urn:iso:15118:2:2016:MsgBody":EVSEStatus, Complex type name='urn:iso:15118:2:2016:MsgDataTypes,EVSEStatusType', base type name='anyType', content type='ELEMENT', isAbstract='false', hasTypeId='false', final='0', block='0', particle='("urn:iso:15118:2:2016:MsgDataTypes":NotificationMaxDelay,"urn:iso:15118:2:2016:MsgDataTypes":EVSENotification)', derivedBy='RESTRICTION'. */
- struct v2gEVSEStatusType EVSEStatus ;
- unsigned int EVSEStatus_isUsed:1;
- /* element: "urn:iso:15118:2:2016:MsgBody":EVSEProcessing, urn:iso:15118:2:2016:MsgDataTypes,EVSEProcessingType */
- v2gEVSEProcessingType EVSEProcessing ;
- /* element: "urn:iso:15118:2:2016:MsgBody":AlignmentCheckParameters, Complex type name='urn:iso:15118:2:2016:MsgDataTypes,ParameterSetType', base type name='anyType', content type='ELEMENT', isAbstract='false', hasTypeId='false', final='0', block='0', particle='("urn:iso:15118:2:2016:MsgDataTypes":ParameterSetID,"urn:iso:15118:2:2016:MsgDataTypes":Parameter{1-16})', derivedBy='RESTRICTION'. */
- struct v2gParameterSetType AlignmentCheckParameters ;
- unsigned int AlignmentCheckParameters_isUsed:1;
-};
-
-/* Complex type name='urn:iso:15118:2:2016:MsgBody,CertificateInstallationResType', base type name='V2GResponseType', content type='ELEMENT', isAbstract='false', hasTypeId='false', final='0', block='0', particle='(("urn:iso:15118:2:2016:MsgBody":ResponseCode,"urn:iso:15118:2:2016:MsgBody":EVSEStatus{0-1}),("urn:iso:15118:2:2016:MsgBody":SAProvisioningCertificateChain,"urn:iso:15118:2:2016:MsgBody":ContractSignatureCertChain,"urn:iso:15118:2:2016:MsgBody":ContractSignatureEncryptedPrivateKey,"urn:iso:15118:2:2016:MsgBody":DHpublickey,"urn:iso:15118:2:2016:MsgBody":eMAID))', derivedBy='EXTENSION'. */
-struct v2gCertificateInstallationResType {
- /* element: "urn:iso:15118:2:2016:MsgBody":ResponseCode, urn:iso:15118:2:2016:MsgDataTypes,responseCodeType */
- v2gresponseCodeType ResponseCode ;
- /* element: "urn:iso:15118:2:2016:MsgBody":EVSEStatus, Complex type name='urn:iso:15118:2:2016:MsgDataTypes,EVSEStatusType', base type name='anyType', content type='ELEMENT', isAbstract='false', hasTypeId='false', final='0', block='0', particle='("urn:iso:15118:2:2016:MsgDataTypes":NotificationMaxDelay,"urn:iso:15118:2:2016:MsgDataTypes":EVSENotification)', derivedBy='RESTRICTION'. */
- struct v2gEVSEStatusType EVSEStatus ;
- unsigned int EVSEStatus_isUsed:1;
- /* element: "urn:iso:15118:2:2016:MsgBody":SAProvisioningCertificateChain, Complex type name='urn:iso:15118:2:2016:MsgDataTypes,CertificateChainType', base type name='anyType', content type='ELEMENT', isAbstract='false', hasTypeId='false', final='0', block='0', particle='("urn:iso:15118:2:2016:MsgDataTypes":Certificate,"urn:iso:15118:2:2016:MsgDataTypes":SubCertificates{0-1})', derivedBy='RESTRICTION'. */
- struct v2gCertificateChainType SAProvisioningCertificateChain ;
- /* element: "urn:iso:15118:2:2016:MsgBody":ContractSignatureCertChain, Complex type name='urn:iso:15118:2:2016:MsgDataTypes,CertificateChainType', base type name='anyType', content type='ELEMENT', isAbstract='false', hasTypeId='false', final='0', block='0', particle='("urn:iso:15118:2:2016:MsgDataTypes":Certificate,"urn:iso:15118:2:2016:MsgDataTypes":SubCertificates{0-1})', derivedBy='RESTRICTION'. */
- struct v2gCertificateChainType ContractSignatureCertChain ;
- /* element: "urn:iso:15118:2:2016:MsgBody":ContractSignatureEncryptedPrivateKey, Complex type name='urn:iso:15118:2:2016:MsgDataTypes,ContractSignatureEncryptedPrivateKeyType', base type name='encryptedPrivateKeyType', content type='SIMPLE', isAbstract='false', hasTypeId='false', final='0', block='0', derivedBy='EXTENSION'. */
- struct v2gContractSignatureEncryptedPrivateKeyType ContractSignatureEncryptedPrivateKey ;
- /* element: "urn:iso:15118:2:2016:MsgBody":DHpublickey, Complex type name='urn:iso:15118:2:2016:MsgDataTypes,DiffieHellmanPublickeyType', base type name='dHpublickeyType', content type='SIMPLE', isAbstract='false', hasTypeId='false', final='0', block='0', derivedBy='EXTENSION'. */
- struct v2gDiffieHellmanPublickeyType DHpublickey ;
- /* element: "urn:iso:15118:2:2016:MsgBody":eMAID, Complex type name='urn:iso:15118:2:2016:MsgDataTypes,EMAIDType', base type name='eMAIDType', content type='SIMPLE', isAbstract='false', hasTypeId='false', final='0', block='0', derivedBy='EXTENSION'. */
- struct v2gEMAIDType eMAID ;
-};
-
-/* Complex type name='urn:iso:15118:2:2016:MsgBody,ChargeLoopReqType', base type name='BodyBaseType', content type='ELEMENT', isAbstract='true', hasTypeId='false', final='0', block='0', particle='("urn:iso:15118:2:2016:MsgBody":EVTargetEnergyRequest,"urn:iso:15118:2:2016:MsgBody":EVMaximumEnergyRequest{0-1},"urn:iso:15118:2:2016:MsgBody":EVMinimumEnergyRequest{0-1},"urn:iso:15118:2:2016:MsgBody":DisplayParameters{0-1})', derivedBy='EXTENSION'. */
-struct v2gChargeLoopReqType {
- /* element: "urn:iso:15118:2:2016:MsgBody":EVTargetEnergyRequest, Complex type name='urn:iso:15118:2:2016:MsgDataTypes,PhysicalValueType', base type name='anyType', content type='ELEMENT', isAbstract='false', hasTypeId='false', final='0', block='0', particle='("urn:iso:15118:2:2016:MsgDataTypes":Exponent,"urn:iso:15118:2:2016:MsgDataTypes":Value)', derivedBy='RESTRICTION'. */
- struct v2gPhysicalValueType EVTargetEnergyRequest ;
- /* element: "urn:iso:15118:2:2016:MsgBody":EVMaximumEnergyRequest, Complex type name='urn:iso:15118:2:2016:MsgDataTypes,PhysicalValueType', base type name='anyType', content type='ELEMENT', isAbstract='false', hasTypeId='false', final='0', block='0', particle='("urn:iso:15118:2:2016:MsgDataTypes":Exponent,"urn:iso:15118:2:2016:MsgDataTypes":Value)', derivedBy='RESTRICTION'. */
- struct v2gPhysicalValueType EVMaximumEnergyRequest ;
- unsigned int EVMaximumEnergyRequest_isUsed:1;
- /* element: "urn:iso:15118:2:2016:MsgBody":EVMinimumEnergyRequest, Complex type name='urn:iso:15118:2:2016:MsgDataTypes,PhysicalValueType', base type name='anyType', content type='ELEMENT', isAbstract='false', hasTypeId='false', final='0', block='0', particle='("urn:iso:15118:2:2016:MsgDataTypes":Exponent,"urn:iso:15118:2:2016:MsgDataTypes":Value)', derivedBy='RESTRICTION'. */
- struct v2gPhysicalValueType EVMinimumEnergyRequest ;
- unsigned int EVMinimumEnergyRequest_isUsed:1;
- /* element: "urn:iso:15118:2:2016:MsgBody":DisplayParameters, Complex type name='urn:iso:15118:2:2016:MsgDataTypes,DisplayParametersType', base type name='anyType', content type='ELEMENT', isAbstract='false', hasTypeId='false', final='0', block='0', particle='("urn:iso:15118:2:2016:MsgDataTypes":CurrentRange{0-1},"urn:iso:15118:2:2016:MsgDataTypes":CurrentSOC{0-1},"urn:iso:15118:2:2016:MsgDataTypes":TargetSOC{0-1},"urn:iso:15118:2:2016:MsgDataTypes":BulkSOC{0-1},"urn:iso:15118:2:2016:MsgDataTypes":MinimumSOC{0-1},"urn:iso:15118:2:2016:MsgDataTypes":ChargingPerformance{0-1},"urn:iso:15118:2:2016:MsgDataTypes":RemainingTimeToTargetSOC{0-1},"urn:iso:15118:2:2016:MsgDataTypes":RemainingTimeToBulkSOC{0-1},"urn:iso:15118:2:2016:MsgDataTypes":RemainingTimeToMinimumSOC{0-1},"urn:iso:15118:2:2016:MsgDataTypes":ChargingComplete{0-1},"urn:iso:15118:2:2016:MsgDataTypes":BulkChargingComplete{0-1},"urn:iso:15118:2:2016:MsgDataTypes":InletHot{0-1})', derivedBy='RESTRICTION'. */
- struct v2gDisplayParametersType DisplayParameters ;
- unsigned int DisplayParameters_isUsed:1;
-};
-
-/* Complex type name='urn:iso:15118:2:2016:MsgBody,VehicleCheckInResType', base type name='V2GResponseType', content type='ELEMENT', isAbstract='false', hasTypeId='false', final='0', block='0', particle='(("urn:iso:15118:2:2016:MsgBody":ResponseCode,"urn:iso:15118:2:2016:MsgBody":EVSEStatus{0-1}),("urn:iso:15118:2:2016:MsgBody":VehicleSpace,"urn:iso:15118:2:2016:MsgBody":TargetOffset{0-1}))', derivedBy='EXTENSION'. */
-struct v2gVehicleCheckInResType {
- /* element: "urn:iso:15118:2:2016:MsgBody":ResponseCode, urn:iso:15118:2:2016:MsgDataTypes,responseCodeType */
- v2gresponseCodeType ResponseCode ;
- /* element: "urn:iso:15118:2:2016:MsgBody":EVSEStatus, Complex type name='urn:iso:15118:2:2016:MsgDataTypes,EVSEStatusType', base type name='anyType', content type='ELEMENT', isAbstract='false', hasTypeId='false', final='0', block='0', particle='("urn:iso:15118:2:2016:MsgDataTypes":NotificationMaxDelay,"urn:iso:15118:2:2016:MsgDataTypes":EVSENotification)', derivedBy='RESTRICTION'. */
- struct v2gEVSEStatusType EVSEStatus ;
- unsigned int EVSEStatus_isUsed:1;
- /* element: "urn:iso:15118:2:2016:MsgBody":VehicleSpace, http://www.w3.org/2001/XMLSchema,unsignedShort */
- uint16_t VehicleSpace ;
- /* element: "urn:iso:15118:2:2016:MsgBody":TargetOffset, Complex type name='urn:iso:15118:2:2016:MsgDataTypes,TargetPositionType', base type name='anyType', content type='ELEMENT', isAbstract='false', hasTypeId='false', final='0', block='0', particle='("urn:iso:15118:2:2016:MsgDataTypes":TargetOffsetX,"urn:iso:15118:2:2016:MsgDataTypes":TargetOffsetY)', derivedBy='RESTRICTION'. */
- struct v2gTargetPositionType TargetOffset ;
- unsigned int TargetOffset_isUsed:1;
-};
-
-/* Complex type name='urn:iso:15118:2:2016:MsgDataTypes,ConsumptionCostType', base type name='anyType', content type='ELEMENT', isAbstract='false', hasTypeId='false', final='0', block='0', particle='("urn:iso:15118:2:2016:MsgDataTypes":startValue,"urn:iso:15118:2:2016:MsgDataTypes":Cost{1-3})', derivedBy='RESTRICTION'. */
-#define v2gConsumptionCostType_Cost_ARRAY_SIZE 3
-struct v2gConsumptionCostType {
- /* element: "urn:iso:15118:2:2016:MsgDataTypes":startValue, Complex type name='urn:iso:15118:2:2016:MsgDataTypes,PhysicalValueType', base type name='anyType', content type='ELEMENT', isAbstract='false', hasTypeId='false', final='0', block='0', particle='("urn:iso:15118:2:2016:MsgDataTypes":Exponent,"urn:iso:15118:2:2016:MsgDataTypes":Value)', derivedBy='RESTRICTION'. */
- struct v2gPhysicalValueType startValue ;
- /* element: "urn:iso:15118:2:2016:MsgDataTypes":Cost, Complex type name='urn:iso:15118:2:2016:MsgDataTypes,CostType', base type name='anyType', content type='ELEMENT', isAbstract='false', hasTypeId='false', final='0', block='0', particle='("urn:iso:15118:2:2016:MsgDataTypes":costKind,"urn:iso:15118:2:2016:MsgDataTypes":amount)', derivedBy='RESTRICTION'. */
- struct {
- struct v2gCostType array[v2gConsumptionCostType_Cost_ARRAY_SIZE];
- uint16_t arrayLen;
- } Cost;
-};
-
-/* Complex type name='urn:iso:15118:2:2016:MsgBody,AuthorizationResType', base type name='V2GResponseType', content type='ELEMENT', isAbstract='false', hasTypeId='false', final='0', block='0', particle='(("urn:iso:15118:2:2016:MsgBody":ResponseCode,"urn:iso:15118:2:2016:MsgBody":EVSEStatus{0-1}),("urn:iso:15118:2:2016:MsgBody":EVSEProcessing))', derivedBy='EXTENSION'. */
-struct v2gAuthorizationResType {
- /* element: "urn:iso:15118:2:2016:MsgBody":ResponseCode, urn:iso:15118:2:2016:MsgDataTypes,responseCodeType */
- v2gresponseCodeType ResponseCode ;
- /* element: "urn:iso:15118:2:2016:MsgBody":EVSEStatus, Complex type name='urn:iso:15118:2:2016:MsgDataTypes,EVSEStatusType', base type name='anyType', content type='ELEMENT', isAbstract='false', hasTypeId='false', final='0', block='0', particle='("urn:iso:15118:2:2016:MsgDataTypes":NotificationMaxDelay,"urn:iso:15118:2:2016:MsgDataTypes":EVSENotification)', derivedBy='RESTRICTION'. */
- struct v2gEVSEStatusType EVSEStatus ;
- unsigned int EVSEStatus_isUsed:1;
- /* element: "urn:iso:15118:2:2016:MsgBody":EVSEProcessing, urn:iso:15118:2:2016:MsgDataTypes,EVSEProcessingType */
- v2gEVSEProcessingType EVSEProcessing ;
-};
-
-/* Complex type name='urn:iso:15118:2:2016:MsgDataTypes,Generic_EVFinePositioningParametersType', base type name='EVFinePositioningParametersType', content type='ELEMENT', isAbstract='false', hasTypeId='false', final='0', block='0', particle='("urn:iso:15118:2:2016:MsgDataTypes":GenericParameters)', derivedBy='EXTENSION'. */
-struct v2gGeneric_EVFinePositioningParametersType {
- /* element: "urn:iso:15118:2:2016:MsgDataTypes":GenericParameters, Complex type name='urn:iso:15118:2:2016:MsgDataTypes,ParameterSetType', base type name='anyType', content type='ELEMENT', isAbstract='false', hasTypeId='false', final='0', block='0', particle='("urn:iso:15118:2:2016:MsgDataTypes":ParameterSetID,"urn:iso:15118:2:2016:MsgDataTypes":Parameter{1-16})', derivedBy='RESTRICTION'. */
- struct v2gParameterSetType GenericParameters ;
-};
-
/* Complex type name='urn:iso:15118:2:2016:MsgBody,ChargingStatusReqType', base type name='ChargeLoopReqType', content type='ELEMENT', isAbstract='false', hasTypeId='false', final='0', block='0', particle='(("urn:iso:15118:2:2016:MsgBody":EVTargetEnergyRequest,"urn:iso:15118:2:2016:MsgBody":EVMaximumEnergyRequest{0-1},"urn:iso:15118:2:2016:MsgBody":EVMinimumEnergyRequest{0-1},"urn:iso:15118:2:2016:MsgBody":DisplayParameters{0-1}),("urn:iso:15118:2:2016:MsgBody":EVMaximumChargePower{0-1},"urn:iso:15118:2:2016:MsgBody":EVMaximumChargeCurrent{0-1},"urn:iso:15118:2:2016:MsgBody":EVMinimumChargeCurrent{0-1}))', derivedBy='EXTENSION'. */
-struct v2gChargingStatusReqType {
+struct iso2ChargingStatusReqType {
/* element: "urn:iso:15118:2:2016:MsgBody":EVTargetEnergyRequest, Complex type name='urn:iso:15118:2:2016:MsgDataTypes,PhysicalValueType', base type name='anyType', content type='ELEMENT', isAbstract='false', hasTypeId='false', final='0', block='0', particle='("urn:iso:15118:2:2016:MsgDataTypes":Exponent,"urn:iso:15118:2:2016:MsgDataTypes":Value)', derivedBy='RESTRICTION'. */
- struct v2gPhysicalValueType EVTargetEnergyRequest ;
+ struct iso2PhysicalValueType EVTargetEnergyRequest ;
/* element: "urn:iso:15118:2:2016:MsgBody":EVMaximumEnergyRequest, Complex type name='urn:iso:15118:2:2016:MsgDataTypes,PhysicalValueType', base type name='anyType', content type='ELEMENT', isAbstract='false', hasTypeId='false', final='0', block='0', particle='("urn:iso:15118:2:2016:MsgDataTypes":Exponent,"urn:iso:15118:2:2016:MsgDataTypes":Value)', derivedBy='RESTRICTION'. */
- struct v2gPhysicalValueType EVMaximumEnergyRequest ;
+ struct iso2PhysicalValueType EVMaximumEnergyRequest ;
unsigned int EVMaximumEnergyRequest_isUsed:1;
/* element: "urn:iso:15118:2:2016:MsgBody":EVMinimumEnergyRequest, Complex type name='urn:iso:15118:2:2016:MsgDataTypes,PhysicalValueType', base type name='anyType', content type='ELEMENT', isAbstract='false', hasTypeId='false', final='0', block='0', particle='("urn:iso:15118:2:2016:MsgDataTypes":Exponent,"urn:iso:15118:2:2016:MsgDataTypes":Value)', derivedBy='RESTRICTION'. */
- struct v2gPhysicalValueType EVMinimumEnergyRequest ;
+ struct iso2PhysicalValueType EVMinimumEnergyRequest ;
unsigned int EVMinimumEnergyRequest_isUsed:1;
/* element: "urn:iso:15118:2:2016:MsgBody":DisplayParameters, Complex type name='urn:iso:15118:2:2016:MsgDataTypes,DisplayParametersType', base type name='anyType', content type='ELEMENT', isAbstract='false', hasTypeId='false', final='0', block='0', particle='("urn:iso:15118:2:2016:MsgDataTypes":CurrentRange{0-1},"urn:iso:15118:2:2016:MsgDataTypes":CurrentSOC{0-1},"urn:iso:15118:2:2016:MsgDataTypes":TargetSOC{0-1},"urn:iso:15118:2:2016:MsgDataTypes":BulkSOC{0-1},"urn:iso:15118:2:2016:MsgDataTypes":MinimumSOC{0-1},"urn:iso:15118:2:2016:MsgDataTypes":ChargingPerformance{0-1},"urn:iso:15118:2:2016:MsgDataTypes":RemainingTimeToTargetSOC{0-1},"urn:iso:15118:2:2016:MsgDataTypes":RemainingTimeToBulkSOC{0-1},"urn:iso:15118:2:2016:MsgDataTypes":RemainingTimeToMinimumSOC{0-1},"urn:iso:15118:2:2016:MsgDataTypes":ChargingComplete{0-1},"urn:iso:15118:2:2016:MsgDataTypes":BulkChargingComplete{0-1},"urn:iso:15118:2:2016:MsgDataTypes":InletHot{0-1})', derivedBy='RESTRICTION'. */
- struct v2gDisplayParametersType DisplayParameters ;
+ struct iso2DisplayParametersType DisplayParameters ;
unsigned int DisplayParameters_isUsed:1;
/* element: "urn:iso:15118:2:2016:MsgBody":EVMaximumChargePower, Complex type name='urn:iso:15118:2:2016:MsgDataTypes,PhysicalValueType', base type name='anyType', content type='ELEMENT', isAbstract='false', hasTypeId='false', final='0', block='0', particle='("urn:iso:15118:2:2016:MsgDataTypes":Exponent,"urn:iso:15118:2:2016:MsgDataTypes":Value)', derivedBy='RESTRICTION'. */
- struct v2gPhysicalValueType EVMaximumChargePower ;
+ struct iso2PhysicalValueType EVMaximumChargePower ;
unsigned int EVMaximumChargePower_isUsed:1;
/* element: "urn:iso:15118:2:2016:MsgBody":EVMaximumChargeCurrent, Complex type name='urn:iso:15118:2:2016:MsgDataTypes,PhysicalValueType', base type name='anyType', content type='ELEMENT', isAbstract='false', hasTypeId='false', final='0', block='0', particle='("urn:iso:15118:2:2016:MsgDataTypes":Exponent,"urn:iso:15118:2:2016:MsgDataTypes":Value)', derivedBy='RESTRICTION'. */
- struct v2gPhysicalValueType EVMaximumChargeCurrent ;
+ struct iso2PhysicalValueType EVMaximumChargeCurrent ;
unsigned int EVMaximumChargeCurrent_isUsed:1;
/* element: "urn:iso:15118:2:2016:MsgBody":EVMinimumChargeCurrent, Complex type name='urn:iso:15118:2:2016:MsgDataTypes,PhysicalValueType', base type name='anyType', content type='ELEMENT', isAbstract='false', hasTypeId='false', final='0', block='0', particle='("urn:iso:15118:2:2016:MsgDataTypes":Exponent,"urn:iso:15118:2:2016:MsgDataTypes":Value)', derivedBy='RESTRICTION'. */
- struct v2gPhysicalValueType EVMinimumChargeCurrent ;
+ struct iso2PhysicalValueType EVMinimumChargeCurrent ;
unsigned int EVMinimumChargeCurrent_isUsed:1;
};
-/* Complex type name='http://www.w3.org/2000/09/xmldsig#,ManifestType', base type name='anyType', content type='ELEMENT', isAbstract='false', hasTypeId='false', final='0', block='0', particle='("http://www.w3.org/2000/09/xmldsig#":Reference{1-UNBOUNDED})', derivedBy='RESTRICTION'. */
-#define v2gManifestType_Id_CHARACTERS_SIZE 50
-#define v2gManifestType_Reference_ARRAY_SIZE 1
-struct v2gManifestType {
+/* Complex type name='urn:iso:15118:2:2016:MsgBody,CertificateInstallationResType', base type name='V2GResponseType', content type='ELEMENT', isAbstract='false', hasTypeId='false', final='0', block='0', particle='(("urn:iso:15118:2:2016:MsgBody":ResponseCode,"urn:iso:15118:2:2016:MsgBody":EVSEStatus{0-1}),("urn:iso:15118:2:2016:MsgBody":SAProvisioningCertificateChain,"urn:iso:15118:2:2016:MsgBody":ContractSignatureCertChain,"urn:iso:15118:2:2016:MsgBody":ContractSignatureEncryptedPrivateKey,"urn:iso:15118:2:2016:MsgBody":DHpublickey,"urn:iso:15118:2:2016:MsgBody":eMAID))', derivedBy='EXTENSION'. */
+struct iso2CertificateInstallationResType {
+ /* element: "urn:iso:15118:2:2016:MsgBody":ResponseCode, urn:iso:15118:2:2016:MsgDataTypes,responseCodeType */
+ iso2responseCodeType ResponseCode ;
+ /* element: "urn:iso:15118:2:2016:MsgBody":EVSEStatus, Complex type name='urn:iso:15118:2:2016:MsgDataTypes,EVSEStatusType', base type name='anyType', content type='ELEMENT', isAbstract='false', hasTypeId='false', final='0', block='0', particle='("urn:iso:15118:2:2016:MsgDataTypes":NotificationMaxDelay,"urn:iso:15118:2:2016:MsgDataTypes":EVSENotification)', derivedBy='RESTRICTION'. */
+ struct iso2EVSEStatusType EVSEStatus ;
+ unsigned int EVSEStatus_isUsed:1;
+ /* element: "urn:iso:15118:2:2016:MsgBody":SAProvisioningCertificateChain, Complex type name='urn:iso:15118:2:2016:MsgDataTypes,CertificateChainType', base type name='anyType', content type='ELEMENT', isAbstract='false', hasTypeId='false', final='0', block='0', particle='("urn:iso:15118:2:2016:MsgDataTypes":Certificate,"urn:iso:15118:2:2016:MsgDataTypes":SubCertificates{0-1})', derivedBy='RESTRICTION'. */
+ struct iso2CertificateChainType SAProvisioningCertificateChain ;
+ /* element: "urn:iso:15118:2:2016:MsgBody":ContractSignatureCertChain, Complex type name='urn:iso:15118:2:2016:MsgDataTypes,CertificateChainType', base type name='anyType', content type='ELEMENT', isAbstract='false', hasTypeId='false', final='0', block='0', particle='("urn:iso:15118:2:2016:MsgDataTypes":Certificate,"urn:iso:15118:2:2016:MsgDataTypes":SubCertificates{0-1})', derivedBy='RESTRICTION'. */
+ struct iso2CertificateChainType ContractSignatureCertChain ;
+ /* element: "urn:iso:15118:2:2016:MsgBody":ContractSignatureEncryptedPrivateKey, Complex type name='urn:iso:15118:2:2016:MsgDataTypes,ContractSignatureEncryptedPrivateKeyType', base type name='encryptedPrivateKeyType', content type='SIMPLE', isAbstract='false', hasTypeId='false', final='0', block='0', derivedBy='EXTENSION'. */
+ struct iso2ContractSignatureEncryptedPrivateKeyType ContractSignatureEncryptedPrivateKey ;
+ /* element: "urn:iso:15118:2:2016:MsgBody":DHpublickey, Complex type name='urn:iso:15118:2:2016:MsgDataTypes,DiffieHellmanPublickeyType', base type name='dHpublickeyType', content type='SIMPLE', isAbstract='false', hasTypeId='false', final='0', block='0', derivedBy='EXTENSION'. */
+ struct iso2DiffieHellmanPublickeyType DHpublickey ;
+ /* element: "urn:iso:15118:2:2016:MsgBody":eMAID, Complex type name='urn:iso:15118:2:2016:MsgDataTypes,EMAIDType', base type name='eMAIDType', content type='SIMPLE', isAbstract='false', hasTypeId='false', final='0', block='0', derivedBy='EXTENSION'. */
+ struct iso2EMAIDType eMAID ;
+};
+
+/* Complex type name='urn:iso:15118:2:2016:MsgDataTypes,SensorPackageType', base type name='anyType', content type='ELEMENT', isAbstract='false', hasTypeId='false', final='0', block='0', particle='("urn:iso:15118:2:2016:MsgDataTypes":PackageIndex,"urn:iso:15118:2:2016:MsgDataTypes":SensorMeasurements{1-255})', derivedBy='RESTRICTION'. */
+#define iso2SensorPackageType_SensorMeasurements_ARRAY_SIZE 5
+struct iso2SensorPackageType {
+ /* element: "urn:iso:15118:2:2016:MsgDataTypes":PackageIndex, http://www.w3.org/2001/XMLSchema,unsignedInt */
+ uint32_t PackageIndex ;
+ /* element: "urn:iso:15118:2:2016:MsgDataTypes":SensorMeasurements, Complex type name='urn:iso:15118:2:2016:MsgDataTypes,SensorMeasurementsType', base type name='anyType', content type='ELEMENT', isAbstract='false', hasTypeId='false', final='0', block='0', particle='("urn:iso:15118:2:2016:MsgDataTypes":SensorID,"urn:iso:15118:2:2016:MsgDataTypes":EffectiveRadiatedPower,"urn:iso:15118:2:2016:MsgDataTypes":MeasurementDataList)', derivedBy='RESTRICTION'. */
+ struct {
+ struct iso2SensorMeasurementsType array[iso2SensorPackageType_SensorMeasurements_ARRAY_SIZE];
+ uint16_t arrayLen;
+ } SensorMeasurements;
+};
+
+/* Complex type name='urn:iso:15118:2:2016:MsgBody,ServiceDiscoveryResType', base type name='V2GResponseType', content type='ELEMENT', isAbstract='false', hasTypeId='false', final='0', block='0', particle='(("urn:iso:15118:2:2016:MsgBody":ResponseCode,"urn:iso:15118:2:2016:MsgBody":EVSEStatus{0-1}),("urn:iso:15118:2:2016:MsgBody":PaymentOptionList,"urn:iso:15118:2:2016:MsgBody":EnergyTransferServiceList,"urn:iso:15118:2:2016:MsgBody":VASList{0-1}))', derivedBy='EXTENSION'. */
+struct iso2ServiceDiscoveryResType {
+ /* element: "urn:iso:15118:2:2016:MsgBody":ResponseCode, urn:iso:15118:2:2016:MsgDataTypes,responseCodeType */
+ iso2responseCodeType ResponseCode ;
+ /* element: "urn:iso:15118:2:2016:MsgBody":EVSEStatus, Complex type name='urn:iso:15118:2:2016:MsgDataTypes,EVSEStatusType', base type name='anyType', content type='ELEMENT', isAbstract='false', hasTypeId='false', final='0', block='0', particle='("urn:iso:15118:2:2016:MsgDataTypes":NotificationMaxDelay,"urn:iso:15118:2:2016:MsgDataTypes":EVSENotification)', derivedBy='RESTRICTION'. */
+ struct iso2EVSEStatusType EVSEStatus ;
+ unsigned int EVSEStatus_isUsed:1;
+ /* element: "urn:iso:15118:2:2016:MsgBody":PaymentOptionList, Complex type name='urn:iso:15118:2:2016:MsgDataTypes,PaymentOptionListType', base type name='anyType', content type='ELEMENT', isAbstract='false', hasTypeId='false', final='0', block='0', particle='("urn:iso:15118:2:2016:MsgDataTypes":PaymentOption{1-2})', derivedBy='RESTRICTION'. */
+ struct iso2PaymentOptionListType PaymentOptionList ;
+ /* element: "urn:iso:15118:2:2016:MsgBody":EnergyTransferServiceList, Complex type name='urn:iso:15118:2:2016:MsgDataTypes,ServiceListType', base type name='anyType', content type='ELEMENT', isAbstract='false', hasTypeId='false', final='0', block='0', particle='("urn:iso:15118:2:2016:MsgDataTypes":Service{1-8})', derivedBy='RESTRICTION'. */
+ struct iso2ServiceListType EnergyTransferServiceList ;
+ /* element: "urn:iso:15118:2:2016:MsgBody":VASList, Complex type name='urn:iso:15118:2:2016:MsgDataTypes,ServiceListType', base type name='anyType', content type='ELEMENT', isAbstract='false', hasTypeId='false', final='0', block='0', particle='("urn:iso:15118:2:2016:MsgDataTypes":Service{1-8})', derivedBy='RESTRICTION'. */
+ struct iso2ServiceListType VASList ;
+ unsigned int VASList_isUsed:1;
+};
+
+/* Complex type name='urn:iso:15118:2:2016:MsgBody,PowerDemandResType', base type name='V2GResponseType', content type='ELEMENT', isAbstract='false', hasTypeId='false', final='0', block='0', particle='(("urn:iso:15118:2:2016:MsgBody":ResponseCode,"urn:iso:15118:2:2016:MsgBody":EVSEStatus{0-1}),("urn:iso:15118:2:2016:MsgBody":EVSEOutputPower,"urn:iso:15118:2:2016:MsgBody":EVSEID,"urn:iso:15118:2:2016:MsgBody":SAScheduleTupleID{0-1},"urn:iso:15118:2:2016:MsgBody":MeterInfo{0-1},"urn:iso:15118:2:2016:MsgBody":ReceiptRequired{0-1},"urn:iso:15118:2:2016:MsgBody":PowerDemandParameters{0-1}))', derivedBy='EXTENSION'. */
+#define iso2PowerDemandResType_EVSEID_CHARACTERS_SIZE 37 + EXTRA_CHAR /* XML schema facet maxLength for urn:iso:15118:2:2016:MsgDataTypes,evseIDType is 37 */
+struct iso2PowerDemandResType {
+ /* element: "urn:iso:15118:2:2016:MsgBody":ResponseCode, urn:iso:15118:2:2016:MsgDataTypes,responseCodeType */
+ iso2responseCodeType ResponseCode ;
+ /* element: "urn:iso:15118:2:2016:MsgBody":EVSEStatus, Complex type name='urn:iso:15118:2:2016:MsgDataTypes,EVSEStatusType', base type name='anyType', content type='ELEMENT', isAbstract='false', hasTypeId='false', final='0', block='0', particle='("urn:iso:15118:2:2016:MsgDataTypes":NotificationMaxDelay,"urn:iso:15118:2:2016:MsgDataTypes":EVSENotification)', derivedBy='RESTRICTION'. */
+ struct iso2EVSEStatusType EVSEStatus ;
+ unsigned int EVSEStatus_isUsed:1;
+ /* element: "urn:iso:15118:2:2016:MsgBody":EVSEOutputPower, Complex type name='urn:iso:15118:2:2016:MsgDataTypes,PhysicalValueType', base type name='anyType', content type='ELEMENT', isAbstract='false', hasTypeId='false', final='0', block='0', particle='("urn:iso:15118:2:2016:MsgDataTypes":Exponent,"urn:iso:15118:2:2016:MsgDataTypes":Value)', derivedBy='RESTRICTION'. */
+ struct iso2PhysicalValueType EVSEOutputPower ;
+ /* element: "urn:iso:15118:2:2016:MsgBody":EVSEID, urn:iso:15118:2:2016:MsgDataTypes,evseIDType */
+ struct {
+ exi_string_character_t characters[iso2PowerDemandResType_EVSEID_CHARACTERS_SIZE];
+ uint16_t charactersLen;
+ } EVSEID ;
+ /* element: "urn:iso:15118:2:2016:MsgBody":SAScheduleTupleID, urn:iso:15118:2:2016:MsgDataTypes,SAIDType */
+ uint8_t SAScheduleTupleID ;
+ unsigned int SAScheduleTupleID_isUsed:1;
+ /* element: "urn:iso:15118:2:2016:MsgBody":MeterInfo, Complex type name='urn:iso:15118:2:2016:MsgDataTypes,MeterInfoType', base type name='anyType', content type='ELEMENT', isAbstract='false', hasTypeId='false', final='0', block='0', particle='("urn:iso:15118:2:2016:MsgDataTypes":MeterID,"urn:iso:15118:2:2016:MsgDataTypes":MeterReadingCharged{0-1},"urn:iso:15118:2:2016:MsgDataTypes":MeterReadingDischarged{0-1},"urn:iso:15118:2:2016:MsgDataTypes":SigMeterReading{0-1},"urn:iso:15118:2:2016:MsgDataTypes":MeterStatus{0-1},"urn:iso:15118:2:2016:MsgDataTypes":TMeter{0-1})', derivedBy='RESTRICTION'. */
+ struct iso2MeterInfoType MeterInfo ;
+ unsigned int MeterInfo_isUsed:1;
+ /* element: "urn:iso:15118:2:2016:MsgBody":ReceiptRequired, http://www.w3.org/2001/XMLSchema,boolean */
+ int ReceiptRequired ;
+ unsigned int ReceiptRequired_isUsed:1;
+ /* element: "urn:iso:15118:2:2016:MsgBody":PowerDemandParameters, Complex type name='urn:iso:15118:2:2016:MsgDataTypes,ParameterSetType', base type name='anyType', content type='ELEMENT', isAbstract='false', hasTypeId='false', final='0', block='0', particle='("urn:iso:15118:2:2016:MsgDataTypes":ParameterSetID,"urn:iso:15118:2:2016:MsgDataTypes":Parameter{1-16})', derivedBy='RESTRICTION'. */
+ struct iso2ParameterSetType PowerDemandParameters ;
+ unsigned int PowerDemandParameters_isUsed:1;
+};
+
+/* Complex type name='urn:iso:15118:2:2016:MsgDataTypes,ChargingProfileType', base type name='anyType', content type='ELEMENT', isAbstract='false', hasTypeId='false', final='0', block='0', particle='("urn:iso:15118:2:2016:MsgDataTypes":ProfileEntry{1-UNBOUNDED})', derivedBy='RESTRICTION'. */
+#define iso2ChargingProfileType_ProfileEntry_ARRAY_SIZE 5
+struct iso2ChargingProfileType {
+ /* element: "urn:iso:15118:2:2016:MsgDataTypes":ProfileEntry, Complex type name='urn:iso:15118:2:2016:MsgDataTypes,PMaxScheduleEntryType', base type name='EntryType', content type='ELEMENT', isAbstract='false', hasTypeId='false', final='0', block='0', particle='(("urn:iso:15118:2:2016:MsgDataTypes":RelativeTimeInterval),("urn:iso:15118:2:2016:MsgDataTypes":PMax{1-3}))', derivedBy='EXTENSION'. */
+ struct {
+ struct iso2PMaxScheduleEntryType array[iso2ChargingProfileType_ProfileEntry_ARRAY_SIZE];
+ uint16_t arrayLen;
+ } ProfileEntry;
+};
+
+/* Complex type name='urn:iso:15118:2:2016:MsgDataTypes,SalesTariffType', base type name='anyType', content type='ELEMENT', isAbstract='false', hasTypeId='false', final='0', block='0', particle='("urn:iso:15118:2:2016:MsgDataTypes":SalesTariffID,"urn:iso:15118:2:2016:MsgDataTypes":SalesTariffDescription{0-1},"urn:iso:15118:2:2016:MsgDataTypes":NumEPriceLevels{0-1},"urn:iso:15118:2:2016:MsgDataTypes":SalesTariffEntry{1-UNBOUNDED})', derivedBy='RESTRICTION'. */
+#define iso2SalesTariffType_Id_CHARACTERS_SIZE 50 + EXTRA_CHAR
+#define iso2SalesTariffType_SalesTariffDescription_CHARACTERS_SIZE 32 + EXTRA_CHAR /* XML schema facet maxLength for urn:iso:15118:2:2016:MsgDataTypes,tariffDescriptionType is 32 */
+#define iso2SalesTariffType_SalesTariffEntry_ARRAY_SIZE 5
+struct iso2SalesTariffType {
/* attribute: Id {http://www.w3.org/2001/XMLSchema,ID} */
struct {
- exi_string_character_t characters[v2gManifestType_Id_CHARACTERS_SIZE];
+ exi_string_character_t characters[iso2SalesTariffType_Id_CHARACTERS_SIZE];
uint16_t charactersLen;
} Id ;
- unsigned int Id_isUsed:1;
- /* element: "http://www.w3.org/2000/09/xmldsig#":Reference, Complex type name='http://www.w3.org/2000/09/xmldsig#,ReferenceType', base type name='anyType', content type='ELEMENT', isAbstract='false', hasTypeId='false', final='0', block='0', particle='("http://www.w3.org/2000/09/xmldsig#":Transforms{0-1},"http://www.w3.org/2000/09/xmldsig#":DigestMethod,"http://www.w3.org/2000/09/xmldsig#":DigestValue)', derivedBy='RESTRICTION'. */
+ /* element: "urn:iso:15118:2:2016:MsgDataTypes":SalesTariffID, urn:iso:15118:2:2016:MsgDataTypes,SAIDType */
+ uint8_t SalesTariffID ;
+ /* element: "urn:iso:15118:2:2016:MsgDataTypes":SalesTariffDescription, urn:iso:15118:2:2016:MsgDataTypes,tariffDescriptionType */
struct {
- struct v2gReferenceType array[v2gManifestType_Reference_ARRAY_SIZE];
- uint16_t arrayLen;
- } Reference;
-};
-
-/* Complex type name='urn:iso:15118:2:2016:MsgDataTypes,MagneticVectorListType', base type name='anyType', content type='ELEMENT', isAbstract='false', hasTypeId='false', final='0', block='0', particle='("urn:iso:15118:2:2016:MsgDataTypes":MagneticVector{1-255})', derivedBy='RESTRICTION'. */
-#define v2gMagneticVectorListType_MagneticVector_ARRAY_SIZE 5
-struct v2gMagneticVectorListType {
- /* element: "urn:iso:15118:2:2016:MsgDataTypes":MagneticVector, Complex type name='urn:iso:15118:2:2016:MsgDataTypes,MagneticVectorType', base type name='anyType', content type='ELEMENT', isAbstract='false', hasTypeId='false', final='0', block='0', particle='("urn:iso:15118:2:2016:MsgDataTypes":GAID,"urn:iso:15118:2:2016:MsgDataTypes":Distance,"urn:iso:15118:2:2016:MsgDataTypes":AngleGAtoVA,"urn:iso:15118:2:2016:MsgDataTypes":RotationVAtoGA,"urn:iso:15118:2:2016:MsgDataTypes":FODStatus)', derivedBy='RESTRICTION'. */
+ exi_string_character_t characters[iso2SalesTariffType_SalesTariffDescription_CHARACTERS_SIZE];
+ uint16_t charactersLen;
+ } SalesTariffDescription ;
+ unsigned int SalesTariffDescription_isUsed:1;
+ /* element: "urn:iso:15118:2:2016:MsgDataTypes":NumEPriceLevels, http://www.w3.org/2001/XMLSchema,unsignedByte */
+ uint8_t NumEPriceLevels ;
+ unsigned int NumEPriceLevels_isUsed:1;
+ /* element: "urn:iso:15118:2:2016:MsgDataTypes":SalesTariffEntry, Complex type name='urn:iso:15118:2:2016:MsgDataTypes,SalesTariffEntryType', base type name='EntryType', content type='ELEMENT', isAbstract='false', hasTypeId='false', final='0', block='0', particle='(("urn:iso:15118:2:2016:MsgDataTypes":RelativeTimeInterval),("urn:iso:15118:2:2016:MsgDataTypes":EPriceLevel{0-1},"urn:iso:15118:2:2016:MsgDataTypes":ConsumptionCost{0-3}))', derivedBy='EXTENSION'. */
struct {
- struct v2gMagneticVectorType array[v2gMagneticVectorListType_MagneticVector_ARRAY_SIZE];
+ struct iso2SalesTariffEntryType array[iso2SalesTariffType_SalesTariffEntry_ARRAY_SIZE];
uint16_t arrayLen;
- } MagneticVector;
-};
-
-/* Complex type name='urn:iso:15118:2:2016:MsgBody,AlignmentCheckReqType', base type name='BodyBaseType', content type='ELEMENT', isAbstract='false', hasTypeId='false', final='0', block='0', particle='("urn:iso:15118:2:2016:MsgBody":EVProcessing,"urn:iso:15118:2:2016:MsgBody":AlignmentCheckParameters{0-1})', derivedBy='EXTENSION'. */
-struct v2gAlignmentCheckReqType {
- /* element: "urn:iso:15118:2:2016:MsgBody":EVProcessing, urn:iso:15118:2:2016:MsgDataTypes,EVSEProcessingType */
- v2gEVSEProcessingType EVProcessing ;
- /* element: "urn:iso:15118:2:2016:MsgBody":AlignmentCheckParameters, Complex type name='urn:iso:15118:2:2016:MsgDataTypes,ParameterSetType', base type name='anyType', content type='ELEMENT', isAbstract='false', hasTypeId='false', final='0', block='0', particle='("urn:iso:15118:2:2016:MsgDataTypes":ParameterSetID,"urn:iso:15118:2:2016:MsgDataTypes":Parameter{1-16})', derivedBy='RESTRICTION'. */
- struct v2gParameterSetType AlignmentCheckParameters ;
- unsigned int AlignmentCheckParameters_isUsed:1;
-};
-
-/* Complex type name='urn:iso:15118:2:2016:MsgDataTypes,ServiceParameterListType', base type name='anyType', content type='ELEMENT', isAbstract='false', hasTypeId='false', final='0', block='0', particle='("urn:iso:15118:2:2016:MsgDataTypes":ParameterSet{1-255})', derivedBy='RESTRICTION'. */
-#define v2gServiceParameterListType_ParameterSet_ARRAY_SIZE 5
-struct v2gServiceParameterListType {
- /* element: "urn:iso:15118:2:2016:MsgDataTypes":ParameterSet, Complex type name='urn:iso:15118:2:2016:MsgDataTypes,ParameterSetType', base type name='anyType', content type='ELEMENT', isAbstract='false', hasTypeId='false', final='0', block='0', particle='("urn:iso:15118:2:2016:MsgDataTypes":ParameterSetID,"urn:iso:15118:2:2016:MsgDataTypes":Parameter{1-16})', derivedBy='RESTRICTION'. */
- struct {
- struct v2gParameterSetType array[v2gServiceParameterListType_ParameterSet_ARRAY_SIZE];
- uint16_t arrayLen;
- } ParameterSet;
+ } SalesTariffEntry;
};
/* Complex type name='http://www.w3.org/2000/09/xmldsig#,SignedInfoType', base type name='anyType', content type='ELEMENT', isAbstract='false', hasTypeId='false', final='0', block='0', particle='("http://www.w3.org/2000/09/xmldsig#":CanonicalizationMethod,"http://www.w3.org/2000/09/xmldsig#":SignatureMethod,"http://www.w3.org/2000/09/xmldsig#":Reference{1-UNBOUNDED})', derivedBy='RESTRICTION'. */
-#define v2gSignedInfoType_Id_CHARACTERS_SIZE 50
-#define v2gSignedInfoType_Reference_ARRAY_SIZE 1
-struct v2gSignedInfoType {
+#define iso2SignedInfoType_Id_CHARACTERS_SIZE 50 + EXTRA_CHAR
+#define iso2SignedInfoType_Reference_ARRAY_SIZE 1
+struct iso2SignedInfoType {
/* attribute: Id {http://www.w3.org/2001/XMLSchema,ID} */
struct {
- exi_string_character_t characters[v2gSignedInfoType_Id_CHARACTERS_SIZE];
+ exi_string_character_t characters[iso2SignedInfoType_Id_CHARACTERS_SIZE];
uint16_t charactersLen;
} Id ;
unsigned int Id_isUsed:1;
/* element: "http://www.w3.org/2000/09/xmldsig#":CanonicalizationMethod, Complex type name='http://www.w3.org/2000/09/xmldsig#,CanonicalizationMethodType', base type name='anyType', content type='MIXED', isAbstract='false', hasTypeId='false', final='0', block='0', particle='((WC[##any]){0-UNBOUNDED})', derivedBy='RESTRICTION'. */
- struct v2gCanonicalizationMethodType CanonicalizationMethod ;
+ struct iso2CanonicalizationMethodType CanonicalizationMethod ;
/* element: "http://www.w3.org/2000/09/xmldsig#":SignatureMethod, Complex type name='http://www.w3.org/2000/09/xmldsig#,SignatureMethodType', base type name='anyType', content type='MIXED', isAbstract='false', hasTypeId='false', final='0', block='0', particle='("http://www.w3.org/2000/09/xmldsig#":HMACOutputLength{0-1},(WC[##other:"http://www.w3.org/2000/09/xmldsig#"]){0-UNBOUNDED})', derivedBy='RESTRICTION'. */
- struct v2gSignatureMethodType SignatureMethod ;
+ struct iso2SignatureMethodType SignatureMethod ;
/* element: "http://www.w3.org/2000/09/xmldsig#":Reference, Complex type name='http://www.w3.org/2000/09/xmldsig#,ReferenceType', base type name='anyType', content type='ELEMENT', isAbstract='false', hasTypeId='false', final='0', block='0', particle='("http://www.w3.org/2000/09/xmldsig#":Transforms{0-1},"http://www.w3.org/2000/09/xmldsig#":DigestMethod,"http://www.w3.org/2000/09/xmldsig#":DigestValue)', derivedBy='RESTRICTION'. */
struct {
- struct v2gReferenceType array[v2gSignedInfoType_Reference_ARRAY_SIZE];
+ struct iso2ReferenceType array[iso2SignedInfoType_Reference_ARRAY_SIZE];
uint16_t arrayLen;
} Reference;
};
-/* Complex type name='urn:iso:15118:2:2016:MsgBody,PairingResType', base type name='V2GResponseType', content type='ELEMENT', isAbstract='false', hasTypeId='false', final='0', block='0', particle='(("urn:iso:15118:2:2016:MsgBody":ResponseCode,"urn:iso:15118:2:2016:MsgBody":EVSEStatus{0-1}),("urn:iso:15118:2:2016:MsgBody":EVSEProcessing,"urn:iso:15118:2:2016:MsgBody":PairingParameters{0-1}))', derivedBy='EXTENSION'. */
-struct v2gPairingResType {
+/* Complex type name='urn:iso:15118:2:2016:MsgBody,PowerDeliveryResType', base type name='V2GResponseType', content type='ELEMENT', isAbstract='false', hasTypeId='false', final='0', block='0', particle='(("urn:iso:15118:2:2016:MsgBody":ResponseCode,"urn:iso:15118:2:2016:MsgBody":EVSEStatus{0-1}),("urn:iso:15118:2:2016:MsgBody":EVSEProcessing))', derivedBy='EXTENSION'. */
+struct iso2PowerDeliveryResType {
/* element: "urn:iso:15118:2:2016:MsgBody":ResponseCode, urn:iso:15118:2:2016:MsgDataTypes,responseCodeType */
- v2gresponseCodeType ResponseCode ;
+ iso2responseCodeType ResponseCode ;
/* element: "urn:iso:15118:2:2016:MsgBody":EVSEStatus, Complex type name='urn:iso:15118:2:2016:MsgDataTypes,EVSEStatusType', base type name='anyType', content type='ELEMENT', isAbstract='false', hasTypeId='false', final='0', block='0', particle='("urn:iso:15118:2:2016:MsgDataTypes":NotificationMaxDelay,"urn:iso:15118:2:2016:MsgDataTypes":EVSENotification)', derivedBy='RESTRICTION'. */
- struct v2gEVSEStatusType EVSEStatus ;
+ struct iso2EVSEStatusType EVSEStatus ;
unsigned int EVSEStatus_isUsed:1;
/* element: "urn:iso:15118:2:2016:MsgBody":EVSEProcessing, urn:iso:15118:2:2016:MsgDataTypes,EVSEProcessingType */
- v2gEVSEProcessingType EVSEProcessing ;
- /* element: "urn:iso:15118:2:2016:MsgBody":PairingParameters, Complex type name='urn:iso:15118:2:2016:MsgDataTypes,ParameterSetType', base type name='anyType', content type='ELEMENT', isAbstract='false', hasTypeId='false', final='0', block='0', particle='("urn:iso:15118:2:2016:MsgDataTypes":ParameterSetID,"urn:iso:15118:2:2016:MsgDataTypes":Parameter{1-16})', derivedBy='RESTRICTION'. */
- struct v2gParameterSetType PairingParameters ;
- unsigned int PairingParameters_isUsed:1;
+ iso2EVSEProcessingType EVSEProcessing ;
};
-/* Complex type name='urn:iso:15118:2:2016:MsgBody,ChargeParameterDiscoveryReqType', base type name='BodyBaseType', content type='ELEMENT', isAbstract='false', hasTypeId='false', final='0', block='0', particle='("urn:iso:15118:2:2016:MsgBody":MaxSupportingPoints{0-1},"urn:iso:15118:2:2016:MsgDataTypes":EVEnergyTransferParameter,"urn:iso:15118:2:2016:MsgBody":MinimumPMaxRequest{0-1})', derivedBy='EXTENSION'. */
-struct v2gChargeParameterDiscoveryReqType {
- /* element: "urn:iso:15118:2:2016:MsgBody":MaxSupportingPoints, urn:iso:15118:2:2016:MsgDataTypes,maxSupportingPointsSAScheduleTuple */
- uint16_t MaxSupportingPoints ;
- unsigned int MaxSupportingPoints_isUsed:1;
- /* element: "urn:iso:15118:2:2016:MsgDataTypes":EVEnergyTransferParameter, Complex type name='urn:iso:15118:2:2016:MsgDataTypes,EVEnergyTransferParameterType', base type name='anyType', content type='ELEMENT', isAbstract='true', hasTypeId='false', final='0', block='0', particle='("urn:iso:15118:2:2016:MsgDataTypes":DepartureTime)', derivedBy='RESTRICTION'. */
- struct v2gEVEnergyTransferParameterType EVEnergyTransferParameter ;
- unsigned int EVEnergyTransferParameter_isUsed:1;
- /* element: "urn:iso:15118:2:2016:MsgDataTypes":AC_EVChargeParameter, Complex type name='urn:iso:15118:2:2016:MsgDataTypes,AC_EVChargeParameterType', base type name='EVEnergyTransferParameterType', content type='ELEMENT', isAbstract='false', hasTypeId='false', final='0', block='0', particle='(("urn:iso:15118:2:2016:MsgDataTypes":DepartureTime),("urn:iso:15118:2:2016:MsgDataTypes":EVMaximumChargePower,"urn:iso:15118:2:2016:MsgDataTypes":EVMaximumChargeCurrent,"urn:iso:15118:2:2016:MsgDataTypes":EVMinimumChargeCurrent,"urn:iso:15118:2:2016:MsgDataTypes":EVTargetEnergyRequest{0-1},"urn:iso:15118:2:2016:MsgDataTypes":EVMaximumEnergyRequest{0-1},"urn:iso:15118:2:2016:MsgDataTypes":EVMinimumEnergyRequest{0-1},"urn:iso:15118:2:2016:MsgDataTypes":EVMaximumVoltage))', derivedBy='EXTENSION'. */
- struct v2gAC_EVChargeParameterType AC_EVChargeParameter ;
- unsigned int AC_EVChargeParameter_isUsed:1;
- /* element: "urn:iso:15118:2:2016:MsgDataTypes":AC_EVBidirectionalParameter, Complex type name='urn:iso:15118:2:2016:MsgDataTypes,AC_EVBidirectionalParameterType', base type name='AC_EVChargeParameterType', content type='ELEMENT', isAbstract='false', hasTypeId='false', final='0', block='0', particle='((("urn:iso:15118:2:2016:MsgDataTypes":DepartureTime),("urn:iso:15118:2:2016:MsgDataTypes":EVMaximumChargePower,"urn:iso:15118:2:2016:MsgDataTypes":EVMaximumChargeCurrent,"urn:iso:15118:2:2016:MsgDataTypes":EVMinimumChargeCurrent,"urn:iso:15118:2:2016:MsgDataTypes":EVTargetEnergyRequest{0-1},"urn:iso:15118:2:2016:MsgDataTypes":EVMaximumEnergyRequest{0-1},"urn:iso:15118:2:2016:MsgDataTypes":EVMinimumEnergyRequest{0-1},"urn:iso:15118:2:2016:MsgDataTypes":EVMaximumVoltage)),("urn:iso:15118:2:2016:MsgDataTypes":EVMaximumDischargePower,"urn:iso:15118:2:2016:MsgDataTypes":EVMaximumDischargeCurrent,"urn:iso:15118:2:2016:MsgDataTypes":EVMinimumDischargeCurrent))', derivedBy='EXTENSION'. */
- struct v2gAC_EVBidirectionalParameterType AC_EVBidirectionalParameter ;
- unsigned int AC_EVBidirectionalParameter_isUsed:1;
- /* element: "urn:iso:15118:2:2016:MsgDataTypes":DC_EVChargeParameter, Complex type name='urn:iso:15118:2:2016:MsgDataTypes,DC_EVChargeParameterType', base type name='EVEnergyTransferParameterType', content type='ELEMENT', isAbstract='false', hasTypeId='false', final='0', block='0', particle='(("urn:iso:15118:2:2016:MsgDataTypes":DepartureTime),("urn:iso:15118:2:2016:MsgDataTypes":EVMaximumChargePower{0-1},"urn:iso:15118:2:2016:MsgDataTypes":EVMinimumChargePower{0-1},"urn:iso:15118:2:2016:MsgDataTypes":EVMaximumChargeCurrent,"urn:iso:15118:2:2016:MsgDataTypes":EVMinimumChargeCurrent,"urn:iso:15118:2:2016:MsgDataTypes":EVMaximumVoltage,"urn:iso:15118:2:2016:MsgDataTypes":EVTargetEnergyRequest{0-1},"urn:iso:15118:2:2016:MsgDataTypes":EVMaximumEnergyRequest{0-1},"urn:iso:15118:2:2016:MsgDataTypes":EVMinimumEnergyRequest{0-1},"urn:iso:15118:2:2016:MsgDataTypes":CurrentSOC{0-1},"urn:iso:15118:2:2016:MsgDataTypes":TargetSOC{0-1},"urn:iso:15118:2:2016:MsgDataTypes":BulkSOC{0-1}))', derivedBy='EXTENSION'. */
- struct v2gDC_EVChargeParameterType DC_EVChargeParameter ;
- unsigned int DC_EVChargeParameter_isUsed:1;
- /* element: "urn:iso:15118:2:2016:MsgDataTypes":DC_EVBidirectionalParameter, Complex type name='urn:iso:15118:2:2016:MsgDataTypes,DC_EVBidirectionalParameterType', base type name='DC_EVChargeParameterType', content type='ELEMENT', isAbstract='false', hasTypeId='false', final='0', block='0', particle='((("urn:iso:15118:2:2016:MsgDataTypes":DepartureTime),("urn:iso:15118:2:2016:MsgDataTypes":EVMaximumChargePower{0-1},"urn:iso:15118:2:2016:MsgDataTypes":EVMinimumChargePower{0-1},"urn:iso:15118:2:2016:MsgDataTypes":EVMaximumChargeCurrent,"urn:iso:15118:2:2016:MsgDataTypes":EVMinimumChargeCurrent,"urn:iso:15118:2:2016:MsgDataTypes":EVMaximumVoltage,"urn:iso:15118:2:2016:MsgDataTypes":EVTargetEnergyRequest{0-1},"urn:iso:15118:2:2016:MsgDataTypes":EVMaximumEnergyRequest{0-1},"urn:iso:15118:2:2016:MsgDataTypes":EVMinimumEnergyRequest{0-1},"urn:iso:15118:2:2016:MsgDataTypes":CurrentSOC{0-1},"urn:iso:15118:2:2016:MsgDataTypes":TargetSOC{0-1},"urn:iso:15118:2:2016:MsgDataTypes":BulkSOC{0-1})),("urn:iso:15118:2:2016:MsgDataTypes":EVMaximumDischargePower{0-1},"urn:iso:15118:2:2016:MsgDataTypes":EVMinimumDischargePower{0-1},"urn:iso:15118:2:2016:MsgDataTypes":EVMaximumDischargeCurrent,"urn:iso:15118:2:2016:MsgDataTypes":EVMinimumDischargeCurrent,"urn:iso:15118:2:2016:MsgDataTypes":EVMinimumVoltage,"urn:iso:15118:2:2016:MsgDataTypes":MinimumSOC{0-1}))', derivedBy='EXTENSION'. */
- struct v2gDC_EVBidirectionalParameterType DC_EVBidirectionalParameter ;
- unsigned int DC_EVBidirectionalParameter_isUsed:1;
- /* element: "urn:iso:15118:2:2016:MsgDataTypes":WPT_EVChargeParameter, Complex type name='urn:iso:15118:2:2016:MsgDataTypes,WPT_EVChargeParameterType', base type name='EVEnergyTransferParameterType', content type='ELEMENT', isAbstract='false', hasTypeId='false', final='0', block='0', particle='(("urn:iso:15118:2:2016:MsgDataTypes":DepartureTime),("urn:iso:15118:2:2016:MsgDataTypes":EVMaximumPower,"urn:iso:15118:2:2016:MsgDataTypes":EVMinimumPower,"urn:iso:15118:2:2016:MsgDataTypes":EVTargetEnergyRequest{0-1},"urn:iso:15118:2:2016:MsgDataTypes":EVMaximumEnergyRequest{0-1},"urn:iso:15118:2:2016:MsgDataTypes":EVMinimumEnergyRequest{0-1}))', derivedBy='EXTENSION'. */
- struct v2gWPT_EVChargeParameterType WPT_EVChargeParameter ;
- unsigned int WPT_EVChargeParameter_isUsed:1;
- /* element: "urn:iso:15118:2:2016:MsgBody":MinimumPMaxRequest, Complex type name='urn:iso:15118:2:2016:MsgDataTypes,MinimumPMaxRequestType', base type name='anyType', content type='ELEMENT', isAbstract='false', hasTypeId='false', final='0', block='0', particle='("urn:iso:15118:2:2016:MsgDataTypes":MinimumPMaxScheduleEntry{1-3})', derivedBy='RESTRICTION'. */
- struct v2gMinimumPMaxRequestType MinimumPMaxRequest ;
- unsigned int MinimumPMaxRequest_isUsed:1;
+/* Complex type name='http://www.w3.org/2000/09/xmldsig#,RetrievalMethodType', base type name='anyType', content type='ELEMENT', isAbstract='false', hasTypeId='false', final='0', block='0', particle='("http://www.w3.org/2000/09/xmldsig#":Transforms{0-1})', derivedBy='RESTRICTION'. */
+#define iso2RetrievalMethodType_URI_CHARACTERS_SIZE 50 + EXTRA_CHAR
+#define iso2RetrievalMethodType_Type_CHARACTERS_SIZE 50 + EXTRA_CHAR
+struct iso2RetrievalMethodType {
+ /* attribute: URI {http://www.w3.org/2001/XMLSchema,anyURI} */
+ struct {
+ exi_string_character_t characters[iso2RetrievalMethodType_URI_CHARACTERS_SIZE];
+ uint16_t charactersLen;
+ } URI ;
+ unsigned int URI_isUsed:1;
+ /* attribute: Type {http://www.w3.org/2001/XMLSchema,anyURI} */
+ struct {
+ exi_string_character_t characters[iso2RetrievalMethodType_Type_CHARACTERS_SIZE];
+ uint16_t charactersLen;
+ } Type ;
+ unsigned int Type_isUsed:1;
+ /* element: "http://www.w3.org/2000/09/xmldsig#":Transforms, Complex type name='http://www.w3.org/2000/09/xmldsig#,TransformsType', base type name='anyType', content type='ELEMENT', isAbstract='false', hasTypeId='false', final='0', block='0', particle='("http://www.w3.org/2000/09/xmldsig#":Transform{1-UNBOUNDED})', derivedBy='RESTRICTION'. */
+ struct iso2TransformsType Transforms ;
+ unsigned int Transforms_isUsed:1;
};
-/* Complex type name='urn:iso:15118:2:2016:MsgDataTypes,LFA_EVFinePositioningSetupParametersType', base type name='EVFinePositioningSetupParametersType', content type='ELEMENT', isAbstract='false', hasTypeId='false', final='0', block='0', particle='("urn:iso:15118:2:2016:MsgDataTypes":NumberOfSensors,"urn:iso:15118:2:2016:MsgDataTypes":SensorList,"urn:iso:15118:2:2016:MsgDataTypes":SensorOrder{1-255},"urn:iso:15118:2:2016:MsgDataTypes":SignalPulseDuration,"urn:iso:15118:2:2016:MsgDataTypes":SignalSeparationTime,"urn:iso:15118:2:2016:MsgDataTypes":PackageSeparationTime,"urn:iso:15118:2:2016:MsgDataTypes":AlignmentOffset)', derivedBy='EXTENSION'. */
-#define v2gLFA_EVFinePositioningSetupParametersType_SensorOrder_ARRAY_SIZE 5
-struct v2gLFA_EVFinePositioningSetupParametersType {
+/* Complex type name='urn:iso:15118:2:2016:MsgDataTypes,MagneticVectorListType', base type name='anyType', content type='ELEMENT', isAbstract='false', hasTypeId='false', final='0', block='0', particle='("urn:iso:15118:2:2016:MsgDataTypes":MagneticVector{1-255})', derivedBy='RESTRICTION'. */
+#define iso2MagneticVectorListType_MagneticVector_ARRAY_SIZE 5
+struct iso2MagneticVectorListType {
+ /* element: "urn:iso:15118:2:2016:MsgDataTypes":MagneticVector, Complex type name='urn:iso:15118:2:2016:MsgDataTypes,MagneticVectorType', base type name='anyType', content type='ELEMENT', isAbstract='false', hasTypeId='false', final='0', block='0', particle='("urn:iso:15118:2:2016:MsgDataTypes":GAID,"urn:iso:15118:2:2016:MsgDataTypes":Distance,"urn:iso:15118:2:2016:MsgDataTypes":AngleGAtoVA,"urn:iso:15118:2:2016:MsgDataTypes":RotationVAtoGA,"urn:iso:15118:2:2016:MsgDataTypes":FODStatus)', derivedBy='RESTRICTION'. */
+ struct {
+ struct iso2MagneticVectorType array[iso2MagneticVectorListType_MagneticVector_ARRAY_SIZE];
+ uint16_t arrayLen;
+ } MagneticVector;
+};
+
+/* Complex type name='urn:iso:15118:2:2016:MsgDataTypes,ServiceParameterListType', base type name='anyType', content type='ELEMENT', isAbstract='false', hasTypeId='false', final='0', block='0', particle='("urn:iso:15118:2:2016:MsgDataTypes":ParameterSet{1-255})', derivedBy='RESTRICTION'. */
+#define iso2ServiceParameterListType_ParameterSet_ARRAY_SIZE 5
+struct iso2ServiceParameterListType {
+ /* element: "urn:iso:15118:2:2016:MsgDataTypes":ParameterSet, Complex type name='urn:iso:15118:2:2016:MsgDataTypes,ParameterSetType', base type name='anyType', content type='ELEMENT', isAbstract='false', hasTypeId='false', final='0', block='0', particle='("urn:iso:15118:2:2016:MsgDataTypes":ParameterSetID,"urn:iso:15118:2:2016:MsgDataTypes":Parameter{1-16})', derivedBy='RESTRICTION'. */
+ struct {
+ struct iso2ParameterSetType array[iso2ServiceParameterListType_ParameterSet_ARRAY_SIZE];
+ uint16_t arrayLen;
+ } ParameterSet;
+};
+
+/* Complex type name='urn:iso:15118:2:2016:MsgDataTypes,PMaxScheduleType', base type name='anyType', content type='ELEMENT', isAbstract='false', hasTypeId='false', final='0', block='0', particle='("urn:iso:15118:2:2016:MsgDataTypes":PMaxScheduleEntry{1-UNBOUNDED})', derivedBy='RESTRICTION'. */
+#define iso2PMaxScheduleType_PMaxScheduleEntry_ARRAY_SIZE 5
+struct iso2PMaxScheduleType {
+ /* element: "urn:iso:15118:2:2016:MsgDataTypes":PMaxScheduleEntry, Complex type name='urn:iso:15118:2:2016:MsgDataTypes,PMaxScheduleEntryType', base type name='EntryType', content type='ELEMENT', isAbstract='false', hasTypeId='false', final='0', block='0', particle='(("urn:iso:15118:2:2016:MsgDataTypes":RelativeTimeInterval),("urn:iso:15118:2:2016:MsgDataTypes":PMax{1-3}))', derivedBy='EXTENSION'. */
+ struct {
+ struct iso2PMaxScheduleEntryType array[iso2PMaxScheduleType_PMaxScheduleEntry_ARRAY_SIZE];
+ uint16_t arrayLen;
+ } PMaxScheduleEntry;
+};
+
+/* Complex type name='urn:iso:15118:2:2016:MsgBody,CertificateUpdateResType', base type name='V2GResponseType', content type='ELEMENT', isAbstract='false', hasTypeId='false', final='0', block='0', particle='(("urn:iso:15118:2:2016:MsgBody":ResponseCode,"urn:iso:15118:2:2016:MsgBody":EVSEStatus{0-1}),("urn:iso:15118:2:2016:MsgBody":SAProvisioningCertificateChain,"urn:iso:15118:2:2016:MsgBody":ContractSignatureCertChain,"urn:iso:15118:2:2016:MsgBody":ContractSignatureEncryptedPrivateKey,"urn:iso:15118:2:2016:MsgBody":DHpublickey,"urn:iso:15118:2:2016:MsgBody":eMAID,"urn:iso:15118:2:2016:MsgBody":RetryCounter{0-1}))', derivedBy='EXTENSION'. */
+struct iso2CertificateUpdateResType {
+ /* element: "urn:iso:15118:2:2016:MsgBody":ResponseCode, urn:iso:15118:2:2016:MsgDataTypes,responseCodeType */
+ iso2responseCodeType ResponseCode ;
+ /* element: "urn:iso:15118:2:2016:MsgBody":EVSEStatus, Complex type name='urn:iso:15118:2:2016:MsgDataTypes,EVSEStatusType', base type name='anyType', content type='ELEMENT', isAbstract='false', hasTypeId='false', final='0', block='0', particle='("urn:iso:15118:2:2016:MsgDataTypes":NotificationMaxDelay,"urn:iso:15118:2:2016:MsgDataTypes":EVSENotification)', derivedBy='RESTRICTION'. */
+ struct iso2EVSEStatusType EVSEStatus ;
+ unsigned int EVSEStatus_isUsed:1;
+ /* element: "urn:iso:15118:2:2016:MsgBody":SAProvisioningCertificateChain, Complex type name='urn:iso:15118:2:2016:MsgDataTypes,CertificateChainType', base type name='anyType', content type='ELEMENT', isAbstract='false', hasTypeId='false', final='0', block='0', particle='("urn:iso:15118:2:2016:MsgDataTypes":Certificate,"urn:iso:15118:2:2016:MsgDataTypes":SubCertificates{0-1})', derivedBy='RESTRICTION'. */
+ struct iso2CertificateChainType SAProvisioningCertificateChain ;
+ /* element: "urn:iso:15118:2:2016:MsgBody":ContractSignatureCertChain, Complex type name='urn:iso:15118:2:2016:MsgDataTypes,CertificateChainType', base type name='anyType', content type='ELEMENT', isAbstract='false', hasTypeId='false', final='0', block='0', particle='("urn:iso:15118:2:2016:MsgDataTypes":Certificate,"urn:iso:15118:2:2016:MsgDataTypes":SubCertificates{0-1})', derivedBy='RESTRICTION'. */
+ struct iso2CertificateChainType ContractSignatureCertChain ;
+ /* element: "urn:iso:15118:2:2016:MsgBody":ContractSignatureEncryptedPrivateKey, Complex type name='urn:iso:15118:2:2016:MsgDataTypes,ContractSignatureEncryptedPrivateKeyType', base type name='encryptedPrivateKeyType', content type='SIMPLE', isAbstract='false', hasTypeId='false', final='0', block='0', derivedBy='EXTENSION'. */
+ struct iso2ContractSignatureEncryptedPrivateKeyType ContractSignatureEncryptedPrivateKey ;
+ /* element: "urn:iso:15118:2:2016:MsgBody":DHpublickey, Complex type name='urn:iso:15118:2:2016:MsgDataTypes,DiffieHellmanPublickeyType', base type name='dHpublickeyType', content type='SIMPLE', isAbstract='false', hasTypeId='false', final='0', block='0', derivedBy='EXTENSION'. */
+ struct iso2DiffieHellmanPublickeyType DHpublickey ;
+ /* element: "urn:iso:15118:2:2016:MsgBody":eMAID, Complex type name='urn:iso:15118:2:2016:MsgDataTypes,EMAIDType', base type name='eMAIDType', content type='SIMPLE', isAbstract='false', hasTypeId='false', final='0', block='0', derivedBy='EXTENSION'. */
+ struct iso2EMAIDType eMAID ;
+ /* element: "urn:iso:15118:2:2016:MsgBody":RetryCounter, http://www.w3.org/2001/XMLSchema,short */
+ int16_t RetryCounter ;
+ unsigned int RetryCounter_isUsed:1;
+};
+
+/* Complex type name='urn:iso:15118:2:2016:MsgBody,DC_BidirectionalControlReqType', base type name='ChargeLoopReqType', content type='ELEMENT', isAbstract='false', hasTypeId='false', final='0', block='0', particle='(("urn:iso:15118:2:2016:MsgBody":EVTargetEnergyRequest,"urn:iso:15118:2:2016:MsgBody":EVMaximumEnergyRequest{0-1},"urn:iso:15118:2:2016:MsgBody":EVMinimumEnergyRequest{0-1},"urn:iso:15118:2:2016:MsgBody":DisplayParameters{0-1}),("urn:iso:15118:2:2016:MsgBody":EVTargetCurrent,"urn:iso:15118:2:2016:MsgBody":EVTargetVoltage,"urn:iso:15118:2:2016:MsgBody":EVMaximumVoltage,"urn:iso:15118:2:2016:MsgBody":EVMinimumVoltage,"urn:iso:15118:2:2016:MsgBody":EVMaximumChargeCurrent,"urn:iso:15118:2:2016:MsgBody":EVMaximumDischargeCurrent{0-1},"urn:iso:15118:2:2016:MsgBody":EVMaximumChargePower{0-1},"urn:iso:15118:2:2016:MsgBody":EVMaximumDischargePower{0-1}))', derivedBy='EXTENSION'. */
+struct iso2DC_BidirectionalControlReqType {
+ /* element: "urn:iso:15118:2:2016:MsgBody":EVTargetEnergyRequest, Complex type name='urn:iso:15118:2:2016:MsgDataTypes,PhysicalValueType', base type name='anyType', content type='ELEMENT', isAbstract='false', hasTypeId='false', final='0', block='0', particle='("urn:iso:15118:2:2016:MsgDataTypes":Exponent,"urn:iso:15118:2:2016:MsgDataTypes":Value)', derivedBy='RESTRICTION'. */
+ struct iso2PhysicalValueType EVTargetEnergyRequest ;
+ /* element: "urn:iso:15118:2:2016:MsgBody":EVMaximumEnergyRequest, Complex type name='urn:iso:15118:2:2016:MsgDataTypes,PhysicalValueType', base type name='anyType', content type='ELEMENT', isAbstract='false', hasTypeId='false', final='0', block='0', particle='("urn:iso:15118:2:2016:MsgDataTypes":Exponent,"urn:iso:15118:2:2016:MsgDataTypes":Value)', derivedBy='RESTRICTION'. */
+ struct iso2PhysicalValueType EVMaximumEnergyRequest ;
+ unsigned int EVMaximumEnergyRequest_isUsed:1;
+ /* element: "urn:iso:15118:2:2016:MsgBody":EVMinimumEnergyRequest, Complex type name='urn:iso:15118:2:2016:MsgDataTypes,PhysicalValueType', base type name='anyType', content type='ELEMENT', isAbstract='false', hasTypeId='false', final='0', block='0', particle='("urn:iso:15118:2:2016:MsgDataTypes":Exponent,"urn:iso:15118:2:2016:MsgDataTypes":Value)', derivedBy='RESTRICTION'. */
+ struct iso2PhysicalValueType EVMinimumEnergyRequest ;
+ unsigned int EVMinimumEnergyRequest_isUsed:1;
+ /* element: "urn:iso:15118:2:2016:MsgBody":DisplayParameters, Complex type name='urn:iso:15118:2:2016:MsgDataTypes,DisplayParametersType', base type name='anyType', content type='ELEMENT', isAbstract='false', hasTypeId='false', final='0', block='0', particle='("urn:iso:15118:2:2016:MsgDataTypes":CurrentRange{0-1},"urn:iso:15118:2:2016:MsgDataTypes":CurrentSOC{0-1},"urn:iso:15118:2:2016:MsgDataTypes":TargetSOC{0-1},"urn:iso:15118:2:2016:MsgDataTypes":BulkSOC{0-1},"urn:iso:15118:2:2016:MsgDataTypes":MinimumSOC{0-1},"urn:iso:15118:2:2016:MsgDataTypes":ChargingPerformance{0-1},"urn:iso:15118:2:2016:MsgDataTypes":RemainingTimeToTargetSOC{0-1},"urn:iso:15118:2:2016:MsgDataTypes":RemainingTimeToBulkSOC{0-1},"urn:iso:15118:2:2016:MsgDataTypes":RemainingTimeToMinimumSOC{0-1},"urn:iso:15118:2:2016:MsgDataTypes":ChargingComplete{0-1},"urn:iso:15118:2:2016:MsgDataTypes":BulkChargingComplete{0-1},"urn:iso:15118:2:2016:MsgDataTypes":InletHot{0-1})', derivedBy='RESTRICTION'. */
+ struct iso2DisplayParametersType DisplayParameters ;
+ unsigned int DisplayParameters_isUsed:1;
+ /* element: "urn:iso:15118:2:2016:MsgBody":EVTargetCurrent, Complex type name='urn:iso:15118:2:2016:MsgDataTypes,PhysicalValueType', base type name='anyType', content type='ELEMENT', isAbstract='false', hasTypeId='false', final='0', block='0', particle='("urn:iso:15118:2:2016:MsgDataTypes":Exponent,"urn:iso:15118:2:2016:MsgDataTypes":Value)', derivedBy='RESTRICTION'. */
+ struct iso2PhysicalValueType EVTargetCurrent ;
+ /* element: "urn:iso:15118:2:2016:MsgBody":EVTargetVoltage, Complex type name='urn:iso:15118:2:2016:MsgDataTypes,PhysicalValueType', base type name='anyType', content type='ELEMENT', isAbstract='false', hasTypeId='false', final='0', block='0', particle='("urn:iso:15118:2:2016:MsgDataTypes":Exponent,"urn:iso:15118:2:2016:MsgDataTypes":Value)', derivedBy='RESTRICTION'. */
+ struct iso2PhysicalValueType EVTargetVoltage ;
+ /* element: "urn:iso:15118:2:2016:MsgBody":EVMaximumVoltage, Complex type name='urn:iso:15118:2:2016:MsgDataTypes,PhysicalValueType', base type name='anyType', content type='ELEMENT', isAbstract='false', hasTypeId='false', final='0', block='0', particle='("urn:iso:15118:2:2016:MsgDataTypes":Exponent,"urn:iso:15118:2:2016:MsgDataTypes":Value)', derivedBy='RESTRICTION'. */
+ struct iso2PhysicalValueType EVMaximumVoltage ;
+ /* element: "urn:iso:15118:2:2016:MsgBody":EVMinimumVoltage, Complex type name='urn:iso:15118:2:2016:MsgDataTypes,PhysicalValueType', base type name='anyType', content type='ELEMENT', isAbstract='false', hasTypeId='false', final='0', block='0', particle='("urn:iso:15118:2:2016:MsgDataTypes":Exponent,"urn:iso:15118:2:2016:MsgDataTypes":Value)', derivedBy='RESTRICTION'. */
+ struct iso2PhysicalValueType EVMinimumVoltage ;
+ /* element: "urn:iso:15118:2:2016:MsgBody":EVMaximumChargeCurrent, Complex type name='urn:iso:15118:2:2016:MsgDataTypes,PhysicalValueType', base type name='anyType', content type='ELEMENT', isAbstract='false', hasTypeId='false', final='0', block='0', particle='("urn:iso:15118:2:2016:MsgDataTypes":Exponent,"urn:iso:15118:2:2016:MsgDataTypes":Value)', derivedBy='RESTRICTION'. */
+ struct iso2PhysicalValueType EVMaximumChargeCurrent ;
+ /* element: "urn:iso:15118:2:2016:MsgBody":EVMaximumDischargeCurrent, Complex type name='urn:iso:15118:2:2016:MsgDataTypes,PhysicalValueType', base type name='anyType', content type='ELEMENT', isAbstract='false', hasTypeId='false', final='0', block='0', particle='("urn:iso:15118:2:2016:MsgDataTypes":Exponent,"urn:iso:15118:2:2016:MsgDataTypes":Value)', derivedBy='RESTRICTION'. */
+ struct iso2PhysicalValueType EVMaximumDischargeCurrent ;
+ unsigned int EVMaximumDischargeCurrent_isUsed:1;
+ /* element: "urn:iso:15118:2:2016:MsgBody":EVMaximumChargePower, Complex type name='urn:iso:15118:2:2016:MsgDataTypes,PhysicalValueType', base type name='anyType', content type='ELEMENT', isAbstract='false', hasTypeId='false', final='0', block='0', particle='("urn:iso:15118:2:2016:MsgDataTypes":Exponent,"urn:iso:15118:2:2016:MsgDataTypes":Value)', derivedBy='RESTRICTION'. */
+ struct iso2PhysicalValueType EVMaximumChargePower ;
+ unsigned int EVMaximumChargePower_isUsed:1;
+ /* element: "urn:iso:15118:2:2016:MsgBody":EVMaximumDischargePower, Complex type name='urn:iso:15118:2:2016:MsgDataTypes,PhysicalValueType', base type name='anyType', content type='ELEMENT', isAbstract='false', hasTypeId='false', final='0', block='0', particle='("urn:iso:15118:2:2016:MsgDataTypes":Exponent,"urn:iso:15118:2:2016:MsgDataTypes":Value)', derivedBy='RESTRICTION'. */
+ struct iso2PhysicalValueType EVMaximumDischargePower ;
+ unsigned int EVMaximumDischargePower_isUsed:1;
+};
+
+/* Complex type name='urn:iso:15118:2:2016:MsgBody,CertificateUpdateReqType', base type name='BodyBaseType', content type='ELEMENT', isAbstract='false', hasTypeId='false', final='0', block='0', particle='("urn:iso:15118:2:2016:MsgBody":ContractSignatureCertChain,"urn:iso:15118:2:2016:MsgBody":eMAID,"urn:iso:15118:2:2016:MsgBody":ListOfRootCertificateIDs)', derivedBy='EXTENSION'. */
+#define iso2CertificateUpdateReqType_Id_CHARACTERS_SIZE 50 + EXTRA_CHAR
+#define iso2CertificateUpdateReqType_eMAID_CHARACTERS_SIZE 15 + EXTRA_CHAR /* XML schema facet maxLength for urn:iso:15118:2:2016:MsgDataTypes,eMAIDType is 15 */
+struct iso2CertificateUpdateReqType {
+ /* attribute: Id {http://www.w3.org/2001/XMLSchema,ID} */
+ struct {
+ exi_string_character_t characters[iso2CertificateUpdateReqType_Id_CHARACTERS_SIZE];
+ uint16_t charactersLen;
+ } Id ;
+ /* element: "urn:iso:15118:2:2016:MsgBody":ContractSignatureCertChain, Complex type name='urn:iso:15118:2:2016:MsgDataTypes,CertificateChainType', base type name='anyType', content type='ELEMENT', isAbstract='false', hasTypeId='false', final='0', block='0', particle='("urn:iso:15118:2:2016:MsgDataTypes":Certificate,"urn:iso:15118:2:2016:MsgDataTypes":SubCertificates{0-1})', derivedBy='RESTRICTION'. */
+ struct iso2CertificateChainType ContractSignatureCertChain ;
+ /* element: "urn:iso:15118:2:2016:MsgBody":eMAID, urn:iso:15118:2:2016:MsgDataTypes,eMAIDType */
+ struct {
+ exi_string_character_t characters[iso2CertificateUpdateReqType_eMAID_CHARACTERS_SIZE];
+ uint16_t charactersLen;
+ } eMAID ;
+ /* element: "urn:iso:15118:2:2016:MsgBody":ListOfRootCertificateIDs, Complex type name='urn:iso:15118:2:2016:MsgDataTypes,ListOfRootCertificateIDsType', base type name='anyType', content type='ELEMENT', isAbstract='false', hasTypeId='false', final='0', block='0', particle='("urn:iso:15118:2:2016:MsgDataTypes":RootCertificateID{1-20})', derivedBy='RESTRICTION'. */
+ struct iso2ListOfRootCertificateIDsType ListOfRootCertificateIDs ;
+};
+
+/* Complex type name='urn:iso:15118:2:2016:MsgDataTypes,LFA_EVSEFinePositioningSetupParametersType', base type name='EVSEFinePositioningSetupParametersType', content type='ELEMENT', isAbstract='false', hasTypeId='false', final='0', block='0', particle='("urn:iso:15118:2:2016:MsgDataTypes":NumberOfSensors,"urn:iso:15118:2:2016:MsgDataTypes":SensorList,"urn:iso:15118:2:2016:MsgDataTypes":SensorOrder,"urn:iso:15118:2:2016:MsgDataTypes":SignalPulseDuration,"urn:iso:15118:2:2016:MsgDataTypes":SignalSeparationTime,"urn:iso:15118:2:2016:MsgDataTypes":PackageSeparationTime,"urn:iso:15118:2:2016:MsgDataTypes":AlignmentOffset,"urn:iso:15118:2:2016:MsgDataTypes":SignalFrequency)', derivedBy='EXTENSION'. */
+struct iso2LFA_EVSEFinePositioningSetupParametersType {
/* element: "urn:iso:15118:2:2016:MsgDataTypes":NumberOfSensors, http://www.w3.org/2001/XMLSchema,unsignedByte */
uint8_t NumberOfSensors ;
/* element: "urn:iso:15118:2:2016:MsgDataTypes":SensorList, Complex type name='urn:iso:15118:2:2016:MsgDataTypes,SensorListType', base type name='anyType', content type='ELEMENT', isAbstract='false', hasTypeId='false', final='0', block='0', particle='("urn:iso:15118:2:2016:MsgDataTypes":Sensor{1-255})', derivedBy='RESTRICTION'. */
- struct v2gSensorListType SensorList ;
- /* element: "urn:iso:15118:2:2016:MsgDataTypes":SensorOrder, http://www.w3.org/2001/XMLSchema,unsignedByte */
- struct {
- uint8_t array[v2gLFA_EVFinePositioningSetupParametersType_SensorOrder_ARRAY_SIZE];
- uint16_t arrayLen;
- } SensorOrder;
- /* element: "urn:iso:15118:2:2016:MsgDataTypes":SignalPulseDuration, http://www.w3.org/2001/XMLSchema,unsignedByte */
- uint8_t SignalPulseDuration ;
- /* element: "urn:iso:15118:2:2016:MsgDataTypes":SignalSeparationTime, http://www.w3.org/2001/XMLSchema,unsignedByte */
- uint8_t SignalSeparationTime ;
- /* element: "urn:iso:15118:2:2016:MsgDataTypes":PackageSeparationTime, http://www.w3.org/2001/XMLSchema,unsignedByte */
- uint8_t PackageSeparationTime ;
- /* element: "urn:iso:15118:2:2016:MsgDataTypes":AlignmentOffset, http://www.w3.org/2001/XMLSchema,unsignedShort */
- uint16_t AlignmentOffset ;
-};
-
-/* Complex type name='urn:iso:15118:2:2016:MsgDataTypes,LFA_EVSEFinePositioningSetupParametersType', base type name='EVSEFinePositioningSetupParametersType', content type='ELEMENT', isAbstract='false', hasTypeId='false', final='0', block='0', particle='("urn:iso:15118:2:2016:MsgDataTypes":NumberOfSensors,"urn:iso:15118:2:2016:MsgDataTypes":SensorList,"urn:iso:15118:2:2016:MsgDataTypes":SensorOrder{1-255},"urn:iso:15118:2:2016:MsgDataTypes":SignalPulseDuration,"urn:iso:15118:2:2016:MsgDataTypes":SignalSeparationTime,"urn:iso:15118:2:2016:MsgDataTypes":PackageSeparationTime,"urn:iso:15118:2:2016:MsgDataTypes":AlignmentOffset,"urn:iso:15118:2:2016:MsgDataTypes":SignalFrequency)', derivedBy='EXTENSION'. */
-#define v2gLFA_EVSEFinePositioningSetupParametersType_SensorOrder_ARRAY_SIZE 5
-struct v2gLFA_EVSEFinePositioningSetupParametersType {
- /* element: "urn:iso:15118:2:2016:MsgDataTypes":NumberOfSensors, http://www.w3.org/2001/XMLSchema,unsignedByte */
- uint8_t NumberOfSensors ;
- /* element: "urn:iso:15118:2:2016:MsgDataTypes":SensorList, Complex type name='urn:iso:15118:2:2016:MsgDataTypes,SensorListType', base type name='anyType', content type='ELEMENT', isAbstract='false', hasTypeId='false', final='0', block='0', particle='("urn:iso:15118:2:2016:MsgDataTypes":Sensor{1-255})', derivedBy='RESTRICTION'. */
- struct v2gSensorListType SensorList ;
- /* element: "urn:iso:15118:2:2016:MsgDataTypes":SensorOrder, http://www.w3.org/2001/XMLSchema,unsignedByte */
- struct {
- uint8_t array[v2gLFA_EVSEFinePositioningSetupParametersType_SensorOrder_ARRAY_SIZE];
- uint16_t arrayLen;
- } SensorOrder;
+ struct iso2SensorListType SensorList ;
+ /* element: "urn:iso:15118:2:2016:MsgDataTypes":SensorOrder, Complex type name='urn:iso:15118:2:2016:MsgDataTypes,SensorOrderListType', base type name='anyType', content type='ELEMENT', isAbstract='false', hasTypeId='false', final='0', block='0', particle='("urn:iso:15118:2:2016:MsgDataTypes":SensorPosition{1-255})', derivedBy='RESTRICTION'. */
+ struct iso2SensorOrderListType SensorOrder ;
/* element: "urn:iso:15118:2:2016:MsgDataTypes":SignalPulseDuration, http://www.w3.org/2001/XMLSchema,unsignedByte */
uint8_t SignalPulseDuration ;
/* element: "urn:iso:15118:2:2016:MsgDataTypes":SignalSeparationTime, http://www.w3.org/2001/XMLSchema,unsignedByte */
@@ -2461,79 +2246,167 @@ struct v2gLFA_EVSEFinePositioningSetupParametersType {
uint16_t SignalFrequency ;
};
-/* Complex type name='urn:iso:15118:2:2016:MsgDataTypes,MV_EVSEFinePositioningParametersType', base type name='EVSEFinePositioningParametersType', content type='ELEMENT', isAbstract='false', hasTypeId='false', final='0', block='0', particle='("urn:iso:15118:2:2016:MsgDataTypes":MagneticVectorList)', derivedBy='EXTENSION'. */
-struct v2gMV_EVSEFinePositioningParametersType {
- /* element: "urn:iso:15118:2:2016:MsgDataTypes":MagneticVectorList, Complex type name='urn:iso:15118:2:2016:MsgDataTypes,MagneticVectorListType', base type name='anyType', content type='ELEMENT', isAbstract='false', hasTypeId='false', final='0', block='0', particle='("urn:iso:15118:2:2016:MsgDataTypes":MagneticVector{1-255})', derivedBy='RESTRICTION'. */
- struct v2gMagneticVectorListType MagneticVectorList ;
+/* Complex type name='urn:iso:15118:2:2016:MsgBody,AlignmentCheckReqType', base type name='BodyBaseType', content type='ELEMENT', isAbstract='false', hasTypeId='false', final='0', block='0', particle='("urn:iso:15118:2:2016:MsgBody":EVProcessing,"urn:iso:15118:2:2016:MsgBody":AlignmentCheckParameters{0-1})', derivedBy='EXTENSION'. */
+struct iso2AlignmentCheckReqType {
+ /* element: "urn:iso:15118:2:2016:MsgBody":EVProcessing, urn:iso:15118:2:2016:MsgDataTypes,EVSEProcessingType */
+ iso2EVSEProcessingType EVProcessing ;
+ /* element: "urn:iso:15118:2:2016:MsgBody":AlignmentCheckParameters, Complex type name='urn:iso:15118:2:2016:MsgDataTypes,ParameterSetType', base type name='anyType', content type='ELEMENT', isAbstract='false', hasTypeId='false', final='0', block='0', particle='("urn:iso:15118:2:2016:MsgDataTypes":ParameterSetID,"urn:iso:15118:2:2016:MsgDataTypes":Parameter{1-16})', derivedBy='RESTRICTION'. */
+ struct iso2ParameterSetType AlignmentCheckParameters ;
+ unsigned int AlignmentCheckParameters_isUsed:1;
};
-/* Complex type name='urn:iso:15118:2:2016:MsgDataTypes,SalesTariffEntryType', base type name='EntryType', content type='ELEMENT', isAbstract='false', hasTypeId='false', final='0', block='0', particle='(("urn:iso:15118:2:2016:MsgDataTypes":RelativeTimeInterval),("urn:iso:15118:2:2016:MsgDataTypes":EPriceLevel{0-1},"urn:iso:15118:2:2016:MsgDataTypes":ConsumptionCost{0-3}))', derivedBy='EXTENSION'. */
-#define v2gSalesTariffEntryType_ConsumptionCost_ARRAY_SIZE 3
-struct v2gSalesTariffEntryType {
- /* element: "urn:iso:15118:2:2016:MsgDataTypes":RelativeTimeInterval, Complex type name='urn:iso:15118:2:2016:MsgDataTypes,RelativeTimeIntervalType', base type name='anyType', content type='ELEMENT', isAbstract='false', hasTypeId='false', final='0', block='0', particle='("urn:iso:15118:2:2016:MsgDataTypes":start,"urn:iso:15118:2:2016:MsgDataTypes":duration{0-1})', derivedBy='RESTRICTION'. */
- struct v2gRelativeTimeIntervalType RelativeTimeInterval ;
- /* element: "urn:iso:15118:2:2016:MsgDataTypes":EPriceLevel, http://www.w3.org/2001/XMLSchema,unsignedByte */
- uint8_t EPriceLevel ;
- unsigned int EPriceLevel_isUsed:1;
- /* element: "urn:iso:15118:2:2016:MsgDataTypes":ConsumptionCost, Complex type name='urn:iso:15118:2:2016:MsgDataTypes,ConsumptionCostType', base type name='anyType', content type='ELEMENT', isAbstract='false', hasTypeId='false', final='0', block='0', particle='("urn:iso:15118:2:2016:MsgDataTypes":startValue,"urn:iso:15118:2:2016:MsgDataTypes":Cost{1-3})', derivedBy='RESTRICTION'. */
- struct {
- struct v2gConsumptionCostType array[v2gSalesTariffEntryType_ConsumptionCost_ARRAY_SIZE];
- uint16_t arrayLen;
- } ConsumptionCost;
-};
-
-/* Complex type name='urn:iso:15118:2:2016:MsgBody,ServiceDetailResType', base type name='V2GResponseType', content type='ELEMENT', isAbstract='false', hasTypeId='false', final='0', block='0', particle='(("urn:iso:15118:2:2016:MsgBody":ResponseCode,"urn:iso:15118:2:2016:MsgBody":EVSEStatus{0-1}),("urn:iso:15118:2:2016:MsgBody":ServiceID,"urn:iso:15118:2:2016:MsgBody":ServiceParameterList{0-1}))', derivedBy='EXTENSION'. */
-struct v2gServiceDetailResType {
- /* element: "urn:iso:15118:2:2016:MsgBody":ResponseCode, urn:iso:15118:2:2016:MsgDataTypes,responseCodeType */
- v2gresponseCodeType ResponseCode ;
- /* element: "urn:iso:15118:2:2016:MsgBody":EVSEStatus, Complex type name='urn:iso:15118:2:2016:MsgDataTypes,EVSEStatusType', base type name='anyType', content type='ELEMENT', isAbstract='false', hasTypeId='false', final='0', block='0', particle='("urn:iso:15118:2:2016:MsgDataTypes":NotificationMaxDelay,"urn:iso:15118:2:2016:MsgDataTypes":EVSENotification)', derivedBy='RESTRICTION'. */
- struct v2gEVSEStatusType EVSEStatus ;
- unsigned int EVSEStatus_isUsed:1;
- /* element: "urn:iso:15118:2:2016:MsgBody":ServiceID, urn:iso:15118:2:2016:MsgDataTypes,serviceIDType */
- uint16_t ServiceID ;
- /* element: "urn:iso:15118:2:2016:MsgBody":ServiceParameterList, Complex type name='urn:iso:15118:2:2016:MsgDataTypes,ServiceParameterListType', base type name='anyType', content type='ELEMENT', isAbstract='false', hasTypeId='false', final='0', block='0', particle='("urn:iso:15118:2:2016:MsgDataTypes":ParameterSet{1-255})', derivedBy='RESTRICTION'. */
- struct v2gServiceParameterListType ServiceParameterList ;
- unsigned int ServiceParameterList_isUsed:1;
-};
-
-/* Complex type name='urn:iso:15118:2:2016:MsgDataTypes,SalesTariffType', base type name='anyType', content type='ELEMENT', isAbstract='false', hasTypeId='false', final='0', block='0', particle='("urn:iso:15118:2:2016:MsgDataTypes":SalesTariffID,"urn:iso:15118:2:2016:MsgDataTypes":SalesTariffDescription{0-1},"urn:iso:15118:2:2016:MsgDataTypes":NumEPriceLevels{0-1},"urn:iso:15118:2:2016:MsgDataTypes":SalesTariffEntry{1-UNBOUNDED})', derivedBy='RESTRICTION'. */
-#define v2gSalesTariffType_Id_CHARACTERS_SIZE 50
-#define v2gSalesTariffType_SalesTariffDescription_CHARACTERS_SIZE 32 /* XML schema facet maxLength for urn:iso:15118:2:2016:MsgDataTypes,tariffDescriptionType is 32 */
-#define v2gSalesTariffType_SalesTariffEntry_ARRAY_SIZE 5
-struct v2gSalesTariffType {
+/* Complex type name='urn:iso:15118:2:2016:MsgBody,CertificateInstallationReqType', base type name='BodyBaseType', content type='ELEMENT', isAbstract='false', hasTypeId='false', final='0', block='0', particle='("urn:iso:15118:2:2016:MsgBody":OEMProvisioningCert,"urn:iso:15118:2:2016:MsgBody":ListOfRootCertificateIDs)', derivedBy='EXTENSION'. */
+#define iso2CertificateInstallationReqType_Id_CHARACTERS_SIZE 50 + EXTRA_CHAR
+#define iso2CertificateInstallationReqType_OEMProvisioningCert_BYTES_SIZE 800 /* XML schema facet maxLength for urn:iso:15118:2:2016:MsgDataTypes,certificateType is 800 */
+struct iso2CertificateInstallationReqType {
/* attribute: Id {http://www.w3.org/2001/XMLSchema,ID} */
struct {
- exi_string_character_t characters[v2gSalesTariffType_Id_CHARACTERS_SIZE];
+ exi_string_character_t characters[iso2CertificateInstallationReqType_Id_CHARACTERS_SIZE];
uint16_t charactersLen;
} Id ;
- /* element: "urn:iso:15118:2:2016:MsgDataTypes":SalesTariffID, urn:iso:15118:2:2016:MsgDataTypes,SAIDType */
- uint8_t SalesTariffID ;
- /* element: "urn:iso:15118:2:2016:MsgDataTypes":SalesTariffDescription, urn:iso:15118:2:2016:MsgDataTypes,tariffDescriptionType */
+ /* element: "urn:iso:15118:2:2016:MsgBody":OEMProvisioningCert, urn:iso:15118:2:2016:MsgDataTypes,certificateType */
struct {
- exi_string_character_t characters[v2gSalesTariffType_SalesTariffDescription_CHARACTERS_SIZE];
- uint16_t charactersLen;
- } SalesTariffDescription ;
- unsigned int SalesTariffDescription_isUsed:1;
- /* element: "urn:iso:15118:2:2016:MsgDataTypes":NumEPriceLevels, http://www.w3.org/2001/XMLSchema,unsignedByte */
- uint8_t NumEPriceLevels ;
- unsigned int NumEPriceLevels_isUsed:1;
- /* element: "urn:iso:15118:2:2016:MsgDataTypes":SalesTariffEntry, Complex type name='urn:iso:15118:2:2016:MsgDataTypes,SalesTariffEntryType', base type name='EntryType', content type='ELEMENT', isAbstract='false', hasTypeId='false', final='0', block='0', particle='(("urn:iso:15118:2:2016:MsgDataTypes":RelativeTimeInterval),("urn:iso:15118:2:2016:MsgDataTypes":EPriceLevel{0-1},"urn:iso:15118:2:2016:MsgDataTypes":ConsumptionCost{0-3}))', derivedBy='EXTENSION'. */
+ uint8_t bytes[iso2CertificateInstallationReqType_OEMProvisioningCert_BYTES_SIZE];
+ uint16_t bytesLen;
+ } OEMProvisioningCert ;
+ /* element: "urn:iso:15118:2:2016:MsgBody":ListOfRootCertificateIDs, Complex type name='urn:iso:15118:2:2016:MsgDataTypes,ListOfRootCertificateIDsType', base type name='anyType', content type='ELEMENT', isAbstract='false', hasTypeId='false', final='0', block='0', particle='("urn:iso:15118:2:2016:MsgDataTypes":RootCertificateID{1-20})', derivedBy='RESTRICTION'. */
+ struct iso2ListOfRootCertificateIDsType ListOfRootCertificateIDs ;
+};
+
+/* Complex type name='urn:iso:15118:2:2016:MsgBody,ChargeParameterDiscoveryReqType', base type name='BodyBaseType', content type='ELEMENT', isAbstract='false', hasTypeId='false', final='0', block='0', particle='("urn:iso:15118:2:2016:MsgBody":MaxSupportingPoints{0-1},"urn:iso:15118:2:2016:MsgDataTypes":EVEnergyTransferParameter,"urn:iso:15118:2:2016:MsgBody":MinimumPMaxRequest{0-1})', derivedBy='EXTENSION'. */
+struct iso2ChargeParameterDiscoveryReqType {
+ /* element: "urn:iso:15118:2:2016:MsgBody":MaxSupportingPoints, urn:iso:15118:2:2016:MsgDataTypes,maxSupportingPointsSAScheduleTuple */
+ uint16_t MaxSupportingPoints ;
+ unsigned int MaxSupportingPoints_isUsed:1;
+ /* element: "urn:iso:15118:2:2016:MsgDataTypes":EVEnergyTransferParameter, Complex type name='urn:iso:15118:2:2016:MsgDataTypes,EVEnergyTransferParameterType', base type name='anyType', content type='ELEMENT', isAbstract='true', hasTypeId='false', final='0', block='0', particle='("urn:iso:15118:2:2016:MsgDataTypes":DepartureTime)', derivedBy='RESTRICTION'. */
+ struct iso2EVEnergyTransferParameterType EVEnergyTransferParameter ;
+ unsigned int EVEnergyTransferParameter_isUsed:1;
+ /* element: "urn:iso:15118:2:2016:MsgDataTypes":AC_EVChargeParameter, Complex type name='urn:iso:15118:2:2016:MsgDataTypes,AC_EVChargeParameterType', base type name='EVEnergyTransferParameterType', content type='ELEMENT', isAbstract='false', hasTypeId='false', final='0', block='0', particle='(("urn:iso:15118:2:2016:MsgDataTypes":DepartureTime),("urn:iso:15118:2:2016:MsgDataTypes":EVMaximumChargePower,"urn:iso:15118:2:2016:MsgDataTypes":EVMaximumChargeCurrent,"urn:iso:15118:2:2016:MsgDataTypes":EVMinimumChargeCurrent,"urn:iso:15118:2:2016:MsgDataTypes":EVTargetEnergyRequest{0-1},"urn:iso:15118:2:2016:MsgDataTypes":EVMaximumEnergyRequest{0-1},"urn:iso:15118:2:2016:MsgDataTypes":EVMinimumEnergyRequest{0-1},"urn:iso:15118:2:2016:MsgDataTypes":EVMaximumVoltage))', derivedBy='EXTENSION'. */
+ struct iso2AC_EVChargeParameterType AC_EVChargeParameter ;
+ unsigned int AC_EVChargeParameter_isUsed:1;
+ /* element: "urn:iso:15118:2:2016:MsgDataTypes":AC_EVBidirectionalParameter, Complex type name='urn:iso:15118:2:2016:MsgDataTypes,AC_EVBidirectionalParameterType', base type name='AC_EVChargeParameterType', content type='ELEMENT', isAbstract='false', hasTypeId='false', final='0', block='0', particle='((("urn:iso:15118:2:2016:MsgDataTypes":DepartureTime),("urn:iso:15118:2:2016:MsgDataTypes":EVMaximumChargePower,"urn:iso:15118:2:2016:MsgDataTypes":EVMaximumChargeCurrent,"urn:iso:15118:2:2016:MsgDataTypes":EVMinimumChargeCurrent,"urn:iso:15118:2:2016:MsgDataTypes":EVTargetEnergyRequest{0-1},"urn:iso:15118:2:2016:MsgDataTypes":EVMaximumEnergyRequest{0-1},"urn:iso:15118:2:2016:MsgDataTypes":EVMinimumEnergyRequest{0-1},"urn:iso:15118:2:2016:MsgDataTypes":EVMaximumVoltage)),("urn:iso:15118:2:2016:MsgDataTypes":EVMaximumDischargePower,"urn:iso:15118:2:2016:MsgDataTypes":EVMaximumDischargeCurrent,"urn:iso:15118:2:2016:MsgDataTypes":EVMinimumDischargeCurrent))', derivedBy='EXTENSION'. */
+ struct iso2AC_EVBidirectionalParameterType AC_EVBidirectionalParameter ;
+ unsigned int AC_EVBidirectionalParameter_isUsed:1;
+ /* element: "urn:iso:15118:2:2016:MsgDataTypes":DC_EVChargeParameter, Complex type name='urn:iso:15118:2:2016:MsgDataTypes,DC_EVChargeParameterType', base type name='EVEnergyTransferParameterType', content type='ELEMENT', isAbstract='false', hasTypeId='false', final='0', block='0', particle='(("urn:iso:15118:2:2016:MsgDataTypes":DepartureTime),("urn:iso:15118:2:2016:MsgDataTypes":EVMaximumChargePower{0-1},"urn:iso:15118:2:2016:MsgDataTypes":EVMinimumChargePower{0-1},"urn:iso:15118:2:2016:MsgDataTypes":EVMaximumChargeCurrent,"urn:iso:15118:2:2016:MsgDataTypes":EVMinimumChargeCurrent,"urn:iso:15118:2:2016:MsgDataTypes":EVMaximumVoltage,"urn:iso:15118:2:2016:MsgDataTypes":EVTargetEnergyRequest{0-1},"urn:iso:15118:2:2016:MsgDataTypes":EVMaximumEnergyRequest{0-1},"urn:iso:15118:2:2016:MsgDataTypes":EVMinimumEnergyRequest{0-1},"urn:iso:15118:2:2016:MsgDataTypes":CurrentSOC{0-1},"urn:iso:15118:2:2016:MsgDataTypes":TargetSOC{0-1},"urn:iso:15118:2:2016:MsgDataTypes":BulkSOC{0-1}))', derivedBy='EXTENSION'. */
+ struct iso2DC_EVChargeParameterType DC_EVChargeParameter ;
+ unsigned int DC_EVChargeParameter_isUsed:1;
+ /* element: "urn:iso:15118:2:2016:MsgDataTypes":DC_EVBidirectionalParameter, Complex type name='urn:iso:15118:2:2016:MsgDataTypes,DC_EVBidirectionalParameterType', base type name='DC_EVChargeParameterType', content type='ELEMENT', isAbstract='false', hasTypeId='false', final='0', block='0', particle='((("urn:iso:15118:2:2016:MsgDataTypes":DepartureTime),("urn:iso:15118:2:2016:MsgDataTypes":EVMaximumChargePower{0-1},"urn:iso:15118:2:2016:MsgDataTypes":EVMinimumChargePower{0-1},"urn:iso:15118:2:2016:MsgDataTypes":EVMaximumChargeCurrent,"urn:iso:15118:2:2016:MsgDataTypes":EVMinimumChargeCurrent,"urn:iso:15118:2:2016:MsgDataTypes":EVMaximumVoltage,"urn:iso:15118:2:2016:MsgDataTypes":EVTargetEnergyRequest{0-1},"urn:iso:15118:2:2016:MsgDataTypes":EVMaximumEnergyRequest{0-1},"urn:iso:15118:2:2016:MsgDataTypes":EVMinimumEnergyRequest{0-1},"urn:iso:15118:2:2016:MsgDataTypes":CurrentSOC{0-1},"urn:iso:15118:2:2016:MsgDataTypes":TargetSOC{0-1},"urn:iso:15118:2:2016:MsgDataTypes":BulkSOC{0-1})),("urn:iso:15118:2:2016:MsgDataTypes":EVMaximumDischargePower{0-1},"urn:iso:15118:2:2016:MsgDataTypes":EVMinimumDischargePower{0-1},"urn:iso:15118:2:2016:MsgDataTypes":EVMaximumDischargeCurrent,"urn:iso:15118:2:2016:MsgDataTypes":EVMinimumDischargeCurrent,"urn:iso:15118:2:2016:MsgDataTypes":EVMinimumVoltage,"urn:iso:15118:2:2016:MsgDataTypes":MinimumSOC{0-1}))', derivedBy='EXTENSION'. */
+ struct iso2DC_EVBidirectionalParameterType DC_EVBidirectionalParameter ;
+ unsigned int DC_EVBidirectionalParameter_isUsed:1;
+ /* element: "urn:iso:15118:2:2016:MsgDataTypes":WPT_EVChargeParameter, Complex type name='urn:iso:15118:2:2016:MsgDataTypes,WPT_EVChargeParameterType', base type name='EVEnergyTransferParameterType', content type='ELEMENT', isAbstract='false', hasTypeId='false', final='0', block='0', particle='(("urn:iso:15118:2:2016:MsgDataTypes":DepartureTime),("urn:iso:15118:2:2016:MsgDataTypes":EVMaximumPower,"urn:iso:15118:2:2016:MsgDataTypes":EVMinimumPower,"urn:iso:15118:2:2016:MsgDataTypes":EVTargetEnergyRequest{0-1},"urn:iso:15118:2:2016:MsgDataTypes":EVMaximumEnergyRequest{0-1},"urn:iso:15118:2:2016:MsgDataTypes":EVMinimumEnergyRequest{0-1}))', derivedBy='EXTENSION'. */
+ struct iso2WPT_EVChargeParameterType WPT_EVChargeParameter ;
+ unsigned int WPT_EVChargeParameter_isUsed:1;
+ /* element: "urn:iso:15118:2:2016:MsgBody":MinimumPMaxRequest, Complex type name='urn:iso:15118:2:2016:MsgDataTypes,MinimumPMaxRequestType', base type name='anyType', content type='ELEMENT', isAbstract='false', hasTypeId='false', final='0', block='0', particle='("urn:iso:15118:2:2016:MsgDataTypes":MinimumPMaxScheduleEntry{1-3})', derivedBy='RESTRICTION'. */
+ struct iso2MinimumPMaxRequestType MinimumPMaxRequest ;
+ unsigned int MinimumPMaxRequest_isUsed:1;
+};
+
+/* Complex type name='urn:iso:15118:2:2016:MsgDataTypes,SensorPackageListType', base type name='anyType', content type='ELEMENT', isAbstract='false', hasTypeId='false', final='0', block='0', particle='("urn:iso:15118:2:2016:MsgDataTypes":SensorPackage{1-255})', derivedBy='RESTRICTION'. */
+#define iso2SensorPackageListType_SensorPackage_ARRAY_SIZE 5
+struct iso2SensorPackageListType {
+ /* element: "urn:iso:15118:2:2016:MsgDataTypes":SensorPackage, Complex type name='urn:iso:15118:2:2016:MsgDataTypes,SensorPackageType', base type name='anyType', content type='ELEMENT', isAbstract='false', hasTypeId='false', final='0', block='0', particle='("urn:iso:15118:2:2016:MsgDataTypes":PackageIndex,"urn:iso:15118:2:2016:MsgDataTypes":SensorMeasurements{1-255})', derivedBy='RESTRICTION'. */
struct {
- struct v2gSalesTariffEntryType array[v2gSalesTariffType_SalesTariffEntry_ARRAY_SIZE];
+ struct iso2SensorPackageType array[iso2SensorPackageListType_SensorPackage_ARRAY_SIZE];
uint16_t arrayLen;
- } SalesTariffEntry;
+ } SensorPackage;
+};
+
+/* Complex type name='urn:iso:15118:2:2016:MsgBody,ChargeLoopReqType', base type name='BodyBaseType', content type='ELEMENT', isAbstract='true', hasTypeId='false', final='0', block='0', particle='("urn:iso:15118:2:2016:MsgBody":EVTargetEnergyRequest,"urn:iso:15118:2:2016:MsgBody":EVMaximumEnergyRequest{0-1},"urn:iso:15118:2:2016:MsgBody":EVMinimumEnergyRequest{0-1},"urn:iso:15118:2:2016:MsgBody":DisplayParameters{0-1})', derivedBy='EXTENSION'. */
+struct iso2ChargeLoopReqType {
+ /* element: "urn:iso:15118:2:2016:MsgBody":EVTargetEnergyRequest, Complex type name='urn:iso:15118:2:2016:MsgDataTypes,PhysicalValueType', base type name='anyType', content type='ELEMENT', isAbstract='false', hasTypeId='false', final='0', block='0', particle='("urn:iso:15118:2:2016:MsgDataTypes":Exponent,"urn:iso:15118:2:2016:MsgDataTypes":Value)', derivedBy='RESTRICTION'. */
+ struct iso2PhysicalValueType EVTargetEnergyRequest ;
+ /* element: "urn:iso:15118:2:2016:MsgBody":EVMaximumEnergyRequest, Complex type name='urn:iso:15118:2:2016:MsgDataTypes,PhysicalValueType', base type name='anyType', content type='ELEMENT', isAbstract='false', hasTypeId='false', final='0', block='0', particle='("urn:iso:15118:2:2016:MsgDataTypes":Exponent,"urn:iso:15118:2:2016:MsgDataTypes":Value)', derivedBy='RESTRICTION'. */
+ struct iso2PhysicalValueType EVMaximumEnergyRequest ;
+ unsigned int EVMaximumEnergyRequest_isUsed:1;
+ /* element: "urn:iso:15118:2:2016:MsgBody":EVMinimumEnergyRequest, Complex type name='urn:iso:15118:2:2016:MsgDataTypes,PhysicalValueType', base type name='anyType', content type='ELEMENT', isAbstract='false', hasTypeId='false', final='0', block='0', particle='("urn:iso:15118:2:2016:MsgDataTypes":Exponent,"urn:iso:15118:2:2016:MsgDataTypes":Value)', derivedBy='RESTRICTION'. */
+ struct iso2PhysicalValueType EVMinimumEnergyRequest ;
+ unsigned int EVMinimumEnergyRequest_isUsed:1;
+ /* element: "urn:iso:15118:2:2016:MsgBody":DisplayParameters, Complex type name='urn:iso:15118:2:2016:MsgDataTypes,DisplayParametersType', base type name='anyType', content type='ELEMENT', isAbstract='false', hasTypeId='false', final='0', block='0', particle='("urn:iso:15118:2:2016:MsgDataTypes":CurrentRange{0-1},"urn:iso:15118:2:2016:MsgDataTypes":CurrentSOC{0-1},"urn:iso:15118:2:2016:MsgDataTypes":TargetSOC{0-1},"urn:iso:15118:2:2016:MsgDataTypes":BulkSOC{0-1},"urn:iso:15118:2:2016:MsgDataTypes":MinimumSOC{0-1},"urn:iso:15118:2:2016:MsgDataTypes":ChargingPerformance{0-1},"urn:iso:15118:2:2016:MsgDataTypes":RemainingTimeToTargetSOC{0-1},"urn:iso:15118:2:2016:MsgDataTypes":RemainingTimeToBulkSOC{0-1},"urn:iso:15118:2:2016:MsgDataTypes":RemainingTimeToMinimumSOC{0-1},"urn:iso:15118:2:2016:MsgDataTypes":ChargingComplete{0-1},"urn:iso:15118:2:2016:MsgDataTypes":BulkChargingComplete{0-1},"urn:iso:15118:2:2016:MsgDataTypes":InletHot{0-1})', derivedBy='RESTRICTION'. */
+ struct iso2DisplayParametersType DisplayParameters ;
+ unsigned int DisplayParameters_isUsed:1;
+};
+
+/* Complex type name='urn:iso:15118:2:2016:MsgBody,AC_BidirectionalControlReqType', base type name='ChargeLoopReqType', content type='ELEMENT', isAbstract='false', hasTypeId='false', final='0', block='0', particle='(("urn:iso:15118:2:2016:MsgBody":EVTargetEnergyRequest,"urn:iso:15118:2:2016:MsgBody":EVMaximumEnergyRequest{0-1},"urn:iso:15118:2:2016:MsgBody":EVMinimumEnergyRequest{0-1},"urn:iso:15118:2:2016:MsgBody":DisplayParameters{0-1}),("urn:iso:15118:2:2016:MsgBody":EVOperation{0-1},"urn:iso:15118:2:2016:MsgBody":EVMaximumChargePower,"urn:iso:15118:2:2016:MsgBody":EVMaximumDischargePower{0-1},"urn:iso:15118:2:2016:MsgBody":EVMaximumChargeCurrent,"urn:iso:15118:2:2016:MsgBody":EVMaximumDischargeCurrent{0-1},"urn:iso:15118:2:2016:MsgBody":EVMinimumChargeCurrent,"urn:iso:15118:2:2016:MsgBody":EVMinimumDischargeCurrent{0-1},"urn:iso:15118:2:2016:MsgBody":EVPresentActivePower,"urn:iso:15118:2:2016:MsgBody":EVPresentReactivePower))', derivedBy='EXTENSION'. */
+struct iso2AC_BidirectionalControlReqType {
+ /* element: "urn:iso:15118:2:2016:MsgBody":EVTargetEnergyRequest, Complex type name='urn:iso:15118:2:2016:MsgDataTypes,PhysicalValueType', base type name='anyType', content type='ELEMENT', isAbstract='false', hasTypeId='false', final='0', block='0', particle='("urn:iso:15118:2:2016:MsgDataTypes":Exponent,"urn:iso:15118:2:2016:MsgDataTypes":Value)', derivedBy='RESTRICTION'. */
+ struct iso2PhysicalValueType EVTargetEnergyRequest ;
+ /* element: "urn:iso:15118:2:2016:MsgBody":EVMaximumEnergyRequest, Complex type name='urn:iso:15118:2:2016:MsgDataTypes,PhysicalValueType', base type name='anyType', content type='ELEMENT', isAbstract='false', hasTypeId='false', final='0', block='0', particle='("urn:iso:15118:2:2016:MsgDataTypes":Exponent,"urn:iso:15118:2:2016:MsgDataTypes":Value)', derivedBy='RESTRICTION'. */
+ struct iso2PhysicalValueType EVMaximumEnergyRequest ;
+ unsigned int EVMaximumEnergyRequest_isUsed:1;
+ /* element: "urn:iso:15118:2:2016:MsgBody":EVMinimumEnergyRequest, Complex type name='urn:iso:15118:2:2016:MsgDataTypes,PhysicalValueType', base type name='anyType', content type='ELEMENT', isAbstract='false', hasTypeId='false', final='0', block='0', particle='("urn:iso:15118:2:2016:MsgDataTypes":Exponent,"urn:iso:15118:2:2016:MsgDataTypes":Value)', derivedBy='RESTRICTION'. */
+ struct iso2PhysicalValueType EVMinimumEnergyRequest ;
+ unsigned int EVMinimumEnergyRequest_isUsed:1;
+ /* element: "urn:iso:15118:2:2016:MsgBody":DisplayParameters, Complex type name='urn:iso:15118:2:2016:MsgDataTypes,DisplayParametersType', base type name='anyType', content type='ELEMENT', isAbstract='false', hasTypeId='false', final='0', block='0', particle='("urn:iso:15118:2:2016:MsgDataTypes":CurrentRange{0-1},"urn:iso:15118:2:2016:MsgDataTypes":CurrentSOC{0-1},"urn:iso:15118:2:2016:MsgDataTypes":TargetSOC{0-1},"urn:iso:15118:2:2016:MsgDataTypes":BulkSOC{0-1},"urn:iso:15118:2:2016:MsgDataTypes":MinimumSOC{0-1},"urn:iso:15118:2:2016:MsgDataTypes":ChargingPerformance{0-1},"urn:iso:15118:2:2016:MsgDataTypes":RemainingTimeToTargetSOC{0-1},"urn:iso:15118:2:2016:MsgDataTypes":RemainingTimeToBulkSOC{0-1},"urn:iso:15118:2:2016:MsgDataTypes":RemainingTimeToMinimumSOC{0-1},"urn:iso:15118:2:2016:MsgDataTypes":ChargingComplete{0-1},"urn:iso:15118:2:2016:MsgDataTypes":BulkChargingComplete{0-1},"urn:iso:15118:2:2016:MsgDataTypes":InletHot{0-1})', derivedBy='RESTRICTION'. */
+ struct iso2DisplayParametersType DisplayParameters ;
+ unsigned int DisplayParameters_isUsed:1;
+ /* element: "urn:iso:15118:2:2016:MsgBody":EVOperation, urn:iso:15118:2:2016:MsgDataTypes,EVOperationType */
+ iso2EVOperationType EVOperation ;
+ unsigned int EVOperation_isUsed:1;
+ /* element: "urn:iso:15118:2:2016:MsgBody":EVMaximumChargePower, Complex type name='urn:iso:15118:2:2016:MsgDataTypes,PhysicalValueType', base type name='anyType', content type='ELEMENT', isAbstract='false', hasTypeId='false', final='0', block='0', particle='("urn:iso:15118:2:2016:MsgDataTypes":Exponent,"urn:iso:15118:2:2016:MsgDataTypes":Value)', derivedBy='RESTRICTION'. */
+ struct iso2PhysicalValueType EVMaximumChargePower ;
+ /* element: "urn:iso:15118:2:2016:MsgBody":EVMaximumDischargePower, Complex type name='urn:iso:15118:2:2016:MsgDataTypes,PhysicalValueType', base type name='anyType', content type='ELEMENT', isAbstract='false', hasTypeId='false', final='0', block='0', particle='("urn:iso:15118:2:2016:MsgDataTypes":Exponent,"urn:iso:15118:2:2016:MsgDataTypes":Value)', derivedBy='RESTRICTION'. */
+ struct iso2PhysicalValueType EVMaximumDischargePower ;
+ unsigned int EVMaximumDischargePower_isUsed:1;
+ /* element: "urn:iso:15118:2:2016:MsgBody":EVMaximumChargeCurrent, Complex type name='urn:iso:15118:2:2016:MsgDataTypes,PhysicalValueType', base type name='anyType', content type='ELEMENT', isAbstract='false', hasTypeId='false', final='0', block='0', particle='("urn:iso:15118:2:2016:MsgDataTypes":Exponent,"urn:iso:15118:2:2016:MsgDataTypes":Value)', derivedBy='RESTRICTION'. */
+ struct iso2PhysicalValueType EVMaximumChargeCurrent ;
+ /* element: "urn:iso:15118:2:2016:MsgBody":EVMaximumDischargeCurrent, Complex type name='urn:iso:15118:2:2016:MsgDataTypes,PhysicalValueType', base type name='anyType', content type='ELEMENT', isAbstract='false', hasTypeId='false', final='0', block='0', particle='("urn:iso:15118:2:2016:MsgDataTypes":Exponent,"urn:iso:15118:2:2016:MsgDataTypes":Value)', derivedBy='RESTRICTION'. */
+ struct iso2PhysicalValueType EVMaximumDischargeCurrent ;
+ unsigned int EVMaximumDischargeCurrent_isUsed:1;
+ /* element: "urn:iso:15118:2:2016:MsgBody":EVMinimumChargeCurrent, Complex type name='urn:iso:15118:2:2016:MsgDataTypes,PhysicalValueType', base type name='anyType', content type='ELEMENT', isAbstract='false', hasTypeId='false', final='0', block='0', particle='("urn:iso:15118:2:2016:MsgDataTypes":Exponent,"urn:iso:15118:2:2016:MsgDataTypes":Value)', derivedBy='RESTRICTION'. */
+ struct iso2PhysicalValueType EVMinimumChargeCurrent ;
+ /* element: "urn:iso:15118:2:2016:MsgBody":EVMinimumDischargeCurrent, Complex type name='urn:iso:15118:2:2016:MsgDataTypes,PhysicalValueType', base type name='anyType', content type='ELEMENT', isAbstract='false', hasTypeId='false', final='0', block='0', particle='("urn:iso:15118:2:2016:MsgDataTypes":Exponent,"urn:iso:15118:2:2016:MsgDataTypes":Value)', derivedBy='RESTRICTION'. */
+ struct iso2PhysicalValueType EVMinimumDischargeCurrent ;
+ unsigned int EVMinimumDischargeCurrent_isUsed:1;
+ /* element: "urn:iso:15118:2:2016:MsgBody":EVPresentActivePower, Complex type name='urn:iso:15118:2:2016:MsgDataTypes,PhysicalValueType', base type name='anyType', content type='ELEMENT', isAbstract='false', hasTypeId='false', final='0', block='0', particle='("urn:iso:15118:2:2016:MsgDataTypes":Exponent,"urn:iso:15118:2:2016:MsgDataTypes":Value)', derivedBy='RESTRICTION'. */
+ struct iso2PhysicalValueType EVPresentActivePower ;
+ /* element: "urn:iso:15118:2:2016:MsgBody":EVPresentReactivePower, Complex type name='urn:iso:15118:2:2016:MsgDataTypes,PhysicalValueType', base type name='anyType', content type='ELEMENT', isAbstract='false', hasTypeId='false', final='0', block='0', particle='("urn:iso:15118:2:2016:MsgDataTypes":Exponent,"urn:iso:15118:2:2016:MsgDataTypes":Value)', derivedBy='RESTRICTION'. */
+ struct iso2PhysicalValueType EVPresentReactivePower ;
+};
+
+/* Complex type name='urn:iso:15118:2:2016:MsgDataTypes,MV_EVSEFinePositioningParametersType', base type name='EVSEFinePositioningParametersType', content type='ELEMENT', isAbstract='false', hasTypeId='false', final='0', block='0', particle='("urn:iso:15118:2:2016:MsgDataTypes":MagneticVectorList)', derivedBy='EXTENSION'. */
+struct iso2MV_EVSEFinePositioningParametersType {
+ /* element: "urn:iso:15118:2:2016:MsgDataTypes":MagneticVectorList, Complex type name='urn:iso:15118:2:2016:MsgDataTypes,MagneticVectorListType', base type name='anyType', content type='ELEMENT', isAbstract='false', hasTypeId='false', final='0', block='0', particle='("urn:iso:15118:2:2016:MsgDataTypes":MagneticVector{1-255})', derivedBy='RESTRICTION'. */
+ struct iso2MagneticVectorListType MagneticVectorList ;
+};
+
+/* Complex type name='urn:iso:15118:2:2016:MsgBody,CurrentDemandReqType', base type name='ChargeLoopReqType', content type='ELEMENT', isAbstract='false', hasTypeId='false', final='0', block='0', particle='(("urn:iso:15118:2:2016:MsgBody":EVTargetEnergyRequest,"urn:iso:15118:2:2016:MsgBody":EVMaximumEnergyRequest{0-1},"urn:iso:15118:2:2016:MsgBody":EVMinimumEnergyRequest{0-1},"urn:iso:15118:2:2016:MsgBody":DisplayParameters{0-1}),("urn:iso:15118:2:2016:MsgBody":EVTargetCurrent,"urn:iso:15118:2:2016:MsgBody":EVTargetVoltage,"urn:iso:15118:2:2016:MsgBody":EVMaximumCurrent{0-1},"urn:iso:15118:2:2016:MsgBody":EVMaximumPower{0-1},"urn:iso:15118:2:2016:MsgBody":EVMaximumVoltage{0-1}))', derivedBy='EXTENSION'. */
+struct iso2CurrentDemandReqType {
+ /* element: "urn:iso:15118:2:2016:MsgBody":EVTargetEnergyRequest, Complex type name='urn:iso:15118:2:2016:MsgDataTypes,PhysicalValueType', base type name='anyType', content type='ELEMENT', isAbstract='false', hasTypeId='false', final='0', block='0', particle='("urn:iso:15118:2:2016:MsgDataTypes":Exponent,"urn:iso:15118:2:2016:MsgDataTypes":Value)', derivedBy='RESTRICTION'. */
+ struct iso2PhysicalValueType EVTargetEnergyRequest ;
+ /* element: "urn:iso:15118:2:2016:MsgBody":EVMaximumEnergyRequest, Complex type name='urn:iso:15118:2:2016:MsgDataTypes,PhysicalValueType', base type name='anyType', content type='ELEMENT', isAbstract='false', hasTypeId='false', final='0', block='0', particle='("urn:iso:15118:2:2016:MsgDataTypes":Exponent,"urn:iso:15118:2:2016:MsgDataTypes":Value)', derivedBy='RESTRICTION'. */
+ struct iso2PhysicalValueType EVMaximumEnergyRequest ;
+ unsigned int EVMaximumEnergyRequest_isUsed:1;
+ /* element: "urn:iso:15118:2:2016:MsgBody":EVMinimumEnergyRequest, Complex type name='urn:iso:15118:2:2016:MsgDataTypes,PhysicalValueType', base type name='anyType', content type='ELEMENT', isAbstract='false', hasTypeId='false', final='0', block='0', particle='("urn:iso:15118:2:2016:MsgDataTypes":Exponent,"urn:iso:15118:2:2016:MsgDataTypes":Value)', derivedBy='RESTRICTION'. */
+ struct iso2PhysicalValueType EVMinimumEnergyRequest ;
+ unsigned int EVMinimumEnergyRequest_isUsed:1;
+ /* element: "urn:iso:15118:2:2016:MsgBody":DisplayParameters, Complex type name='urn:iso:15118:2:2016:MsgDataTypes,DisplayParametersType', base type name='anyType', content type='ELEMENT', isAbstract='false', hasTypeId='false', final='0', block='0', particle='("urn:iso:15118:2:2016:MsgDataTypes":CurrentRange{0-1},"urn:iso:15118:2:2016:MsgDataTypes":CurrentSOC{0-1},"urn:iso:15118:2:2016:MsgDataTypes":TargetSOC{0-1},"urn:iso:15118:2:2016:MsgDataTypes":BulkSOC{0-1},"urn:iso:15118:2:2016:MsgDataTypes":MinimumSOC{0-1},"urn:iso:15118:2:2016:MsgDataTypes":ChargingPerformance{0-1},"urn:iso:15118:2:2016:MsgDataTypes":RemainingTimeToTargetSOC{0-1},"urn:iso:15118:2:2016:MsgDataTypes":RemainingTimeToBulkSOC{0-1},"urn:iso:15118:2:2016:MsgDataTypes":RemainingTimeToMinimumSOC{0-1},"urn:iso:15118:2:2016:MsgDataTypes":ChargingComplete{0-1},"urn:iso:15118:2:2016:MsgDataTypes":BulkChargingComplete{0-1},"urn:iso:15118:2:2016:MsgDataTypes":InletHot{0-1})', derivedBy='RESTRICTION'. */
+ struct iso2DisplayParametersType DisplayParameters ;
+ unsigned int DisplayParameters_isUsed:1;
+ /* element: "urn:iso:15118:2:2016:MsgBody":EVTargetCurrent, Complex type name='urn:iso:15118:2:2016:MsgDataTypes,PhysicalValueType', base type name='anyType', content type='ELEMENT', isAbstract='false', hasTypeId='false', final='0', block='0', particle='("urn:iso:15118:2:2016:MsgDataTypes":Exponent,"urn:iso:15118:2:2016:MsgDataTypes":Value)', derivedBy='RESTRICTION'. */
+ struct iso2PhysicalValueType EVTargetCurrent ;
+ /* element: "urn:iso:15118:2:2016:MsgBody":EVTargetVoltage, Complex type name='urn:iso:15118:2:2016:MsgDataTypes,PhysicalValueType', base type name='anyType', content type='ELEMENT', isAbstract='false', hasTypeId='false', final='0', block='0', particle='("urn:iso:15118:2:2016:MsgDataTypes":Exponent,"urn:iso:15118:2:2016:MsgDataTypes":Value)', derivedBy='RESTRICTION'. */
+ struct iso2PhysicalValueType EVTargetVoltage ;
+ /* element: "urn:iso:15118:2:2016:MsgBody":EVMaximumCurrent, Complex type name='urn:iso:15118:2:2016:MsgDataTypes,PhysicalValueType', base type name='anyType', content type='ELEMENT', isAbstract='false', hasTypeId='false', final='0', block='0', particle='("urn:iso:15118:2:2016:MsgDataTypes":Exponent,"urn:iso:15118:2:2016:MsgDataTypes":Value)', derivedBy='RESTRICTION'. */
+ struct iso2PhysicalValueType EVMaximumCurrent ;
+ unsigned int EVMaximumCurrent_isUsed:1;
+ /* element: "urn:iso:15118:2:2016:MsgBody":EVMaximumPower, Complex type name='urn:iso:15118:2:2016:MsgDataTypes,PhysicalValueType', base type name='anyType', content type='ELEMENT', isAbstract='false', hasTypeId='false', final='0', block='0', particle='("urn:iso:15118:2:2016:MsgDataTypes":Exponent,"urn:iso:15118:2:2016:MsgDataTypes":Value)', derivedBy='RESTRICTION'. */
+ struct iso2PhysicalValueType EVMaximumPower ;
+ unsigned int EVMaximumPower_isUsed:1;
+ /* element: "urn:iso:15118:2:2016:MsgBody":EVMaximumVoltage, Complex type name='urn:iso:15118:2:2016:MsgDataTypes,PhysicalValueType', base type name='anyType', content type='ELEMENT', isAbstract='false', hasTypeId='false', final='0', block='0', particle='("urn:iso:15118:2:2016:MsgDataTypes":Exponent,"urn:iso:15118:2:2016:MsgDataTypes":Value)', derivedBy='RESTRICTION'. */
+ struct iso2PhysicalValueType EVMaximumVoltage ;
+ unsigned int EVMaximumVoltage_isUsed:1;
};
/* Complex type name='urn:iso:15118:2:2016:MsgBody,FinePositioningSetupReqType', base type name='BodyBaseType', content type='ELEMENT', isAbstract='false', hasTypeId='false', final='0', block='0', particle='("urn:iso:15118:2:2016:MsgDataTypes":EVFinePositioningSetupParameters{0-1})', derivedBy='EXTENSION'. */
-struct v2gFinePositioningSetupReqType {
+struct iso2FinePositioningSetupReqType {
/* substitutionGroup */
#if SAVE_MEMORY_WITH_UNNAMED_UNION == UNION_YES
union {
#endif /* SAVE_MEMORY_WITH_UNNAMED_UNION == UNION_YES */
/* element: "urn:iso:15118:2:2016:MsgDataTypes":EVFinePositioningSetupParameters, Complex type name='urn:iso:15118:2:2016:MsgDataTypes,EVFinePositioningSetupParametersType', base type name='anyType', content type='EMPTY', isAbstract='true', hasTypeId='false', final='0', block='0', derivedBy='RESTRICTION'. */
- struct v2gEVFinePositioningSetupParametersType EVFinePositioningSetupParameters ;
- /* element: "urn:iso:15118:2:2016:MsgDataTypes":LFA_EVFinePositioningSetupParameters, Complex type name='urn:iso:15118:2:2016:MsgDataTypes,LFA_EVFinePositioningSetupParametersType', base type name='EVFinePositioningSetupParametersType', content type='ELEMENT', isAbstract='false', hasTypeId='false', final='0', block='0', particle='("urn:iso:15118:2:2016:MsgDataTypes":NumberOfSensors,"urn:iso:15118:2:2016:MsgDataTypes":SensorList,"urn:iso:15118:2:2016:MsgDataTypes":SensorOrder{1-255},"urn:iso:15118:2:2016:MsgDataTypes":SignalPulseDuration,"urn:iso:15118:2:2016:MsgDataTypes":SignalSeparationTime,"urn:iso:15118:2:2016:MsgDataTypes":PackageSeparationTime,"urn:iso:15118:2:2016:MsgDataTypes":AlignmentOffset)', derivedBy='EXTENSION'. */
- struct v2gLFA_EVFinePositioningSetupParametersType LFA_EVFinePositioningSetupParameters ;
+ struct iso2EVFinePositioningSetupParametersType EVFinePositioningSetupParameters ;
+ /* element: "urn:iso:15118:2:2016:MsgDataTypes":LFA_EVFinePositioningSetupParameters, Complex type name='urn:iso:15118:2:2016:MsgDataTypes,LFA_EVFinePositioningSetupParametersType', base type name='EVFinePositioningSetupParametersType', content type='ELEMENT', isAbstract='false', hasTypeId='false', final='0', block='0', particle='("urn:iso:15118:2:2016:MsgDataTypes":NumberOfSensors,"urn:iso:15118:2:2016:MsgDataTypes":SensorList,"urn:iso:15118:2:2016:MsgDataTypes":SensorOrder,"urn:iso:15118:2:2016:MsgDataTypes":SignalPulseDuration,"urn:iso:15118:2:2016:MsgDataTypes":SignalSeparationTime,"urn:iso:15118:2:2016:MsgDataTypes":PackageSeparationTime,"urn:iso:15118:2:2016:MsgDataTypes":AlignmentOffset)', derivedBy='EXTENSION'. */
+ struct iso2LFA_EVFinePositioningSetupParametersType LFA_EVFinePositioningSetupParameters ;
#if SAVE_MEMORY_WITH_UNNAMED_UNION == UNION_YES
};
#endif /* SAVE_MEMORY_WITH_UNNAMED_UNION == UNION_YES */
@@ -2541,292 +2414,446 @@ struct v2gFinePositioningSetupReqType {
unsigned int LFA_EVFinePositioningSetupParameters_isUsed:1;
};
-/* Complex type name='http://www.w3.org/2000/09/xmldsig#,SignatureType', base type name='anyType', content type='ELEMENT', isAbstract='false', hasTypeId='false', final='0', block='0', particle='("http://www.w3.org/2000/09/xmldsig#":SignedInfo,"http://www.w3.org/2000/09/xmldsig#":SignatureValue,"http://www.w3.org/2000/09/xmldsig#":KeyInfo{0-1},"http://www.w3.org/2000/09/xmldsig#":Object{0-UNBOUNDED})', derivedBy='RESTRICTION'. */
-#define v2gSignatureType_Id_CHARACTERS_SIZE 50
-#define v2gSignatureType_Object_ARRAY_SIZE 1
-struct v2gSignatureType {
+/* Complex type name='urn:iso:15118:2:2016:MsgDataTypes,SAScheduleTupleType', base type name='anyType', content type='ELEMENT', isAbstract='false', hasTypeId='false', final='0', block='0', particle='("urn:iso:15118:2:2016:MsgDataTypes":SAScheduleTupleID,"urn:iso:15118:2:2016:MsgDataTypes":PMaxSchedule,"urn:iso:15118:2:2016:MsgDataTypes":PMaxDischargeSchedule{0-1},"urn:iso:15118:2:2016:MsgDataTypes":SalesTariff{0-1},"urn:iso:15118:2:2016:MsgDataTypes":BuyBackTariff{0-1})', derivedBy='RESTRICTION'. */
+struct iso2SAScheduleTupleType {
+ /* element: "urn:iso:15118:2:2016:MsgDataTypes":SAScheduleTupleID, urn:iso:15118:2:2016:MsgDataTypes,SAIDType */
+ uint8_t SAScheduleTupleID ;
+ /* element: "urn:iso:15118:2:2016:MsgDataTypes":PMaxSchedule, Complex type name='urn:iso:15118:2:2016:MsgDataTypes,PMaxScheduleType', base type name='anyType', content type='ELEMENT', isAbstract='false', hasTypeId='false', final='0', block='0', particle='("urn:iso:15118:2:2016:MsgDataTypes":PMaxScheduleEntry{1-UNBOUNDED})', derivedBy='RESTRICTION'. */
+ struct iso2PMaxScheduleType PMaxSchedule ;
+ /* element: "urn:iso:15118:2:2016:MsgDataTypes":PMaxDischargeSchedule, Complex type name='urn:iso:15118:2:2016:MsgDataTypes,PMaxScheduleType', base type name='anyType', content type='ELEMENT', isAbstract='false', hasTypeId='false', final='0', block='0', particle='("urn:iso:15118:2:2016:MsgDataTypes":PMaxScheduleEntry{1-UNBOUNDED})', derivedBy='RESTRICTION'. */
+ struct iso2PMaxScheduleType PMaxDischargeSchedule ;
+ unsigned int PMaxDischargeSchedule_isUsed:1;
+ /* element: "urn:iso:15118:2:2016:MsgDataTypes":SalesTariff, Complex type name='urn:iso:15118:2:2016:MsgDataTypes,SalesTariffType', base type name='anyType', content type='ELEMENT', isAbstract='false', hasTypeId='false', final='0', block='0', particle='("urn:iso:15118:2:2016:MsgDataTypes":SalesTariffID,"urn:iso:15118:2:2016:MsgDataTypes":SalesTariffDescription{0-1},"urn:iso:15118:2:2016:MsgDataTypes":NumEPriceLevels{0-1},"urn:iso:15118:2:2016:MsgDataTypes":SalesTariffEntry{1-UNBOUNDED})', derivedBy='RESTRICTION'. */
+ struct iso2SalesTariffType SalesTariff ;
+ unsigned int SalesTariff_isUsed:1;
+ /* element: "urn:iso:15118:2:2016:MsgDataTypes":BuyBackTariff, Complex type name='urn:iso:15118:2:2016:MsgDataTypes,SalesTariffType', base type name='anyType', content type='ELEMENT', isAbstract='false', hasTypeId='false', final='0', block='0', particle='("urn:iso:15118:2:2016:MsgDataTypes":SalesTariffID,"urn:iso:15118:2:2016:MsgDataTypes":SalesTariffDescription{0-1},"urn:iso:15118:2:2016:MsgDataTypes":NumEPriceLevels{0-1},"urn:iso:15118:2:2016:MsgDataTypes":SalesTariffEntry{1-UNBOUNDED})', derivedBy='RESTRICTION'. */
+ struct iso2SalesTariffType BuyBackTariff ;
+ unsigned int BuyBackTariff_isUsed:1;
+};
+
+/* Complex type name='urn:iso:15118:2:2016:MsgBody,ServiceDetailResType', base type name='V2GResponseType', content type='ELEMENT', isAbstract='false', hasTypeId='false', final='0', block='0', particle='(("urn:iso:15118:2:2016:MsgBody":ResponseCode,"urn:iso:15118:2:2016:MsgBody":EVSEStatus{0-1}),("urn:iso:15118:2:2016:MsgBody":ServiceID,"urn:iso:15118:2:2016:MsgBody":ServiceParameterList{0-1}))', derivedBy='EXTENSION'. */
+struct iso2ServiceDetailResType {
+ /* element: "urn:iso:15118:2:2016:MsgBody":ResponseCode, urn:iso:15118:2:2016:MsgDataTypes,responseCodeType */
+ iso2responseCodeType ResponseCode ;
+ /* element: "urn:iso:15118:2:2016:MsgBody":EVSEStatus, Complex type name='urn:iso:15118:2:2016:MsgDataTypes,EVSEStatusType', base type name='anyType', content type='ELEMENT', isAbstract='false', hasTypeId='false', final='0', block='0', particle='("urn:iso:15118:2:2016:MsgDataTypes":NotificationMaxDelay,"urn:iso:15118:2:2016:MsgDataTypes":EVSENotification)', derivedBy='RESTRICTION'. */
+ struct iso2EVSEStatusType EVSEStatus ;
+ unsigned int EVSEStatus_isUsed:1;
+ /* element: "urn:iso:15118:2:2016:MsgBody":ServiceID, urn:iso:15118:2:2016:MsgDataTypes,serviceIDType */
+ uint16_t ServiceID ;
+ /* element: "urn:iso:15118:2:2016:MsgBody":ServiceParameterList, Complex type name='urn:iso:15118:2:2016:MsgDataTypes,ServiceParameterListType', base type name='anyType', content type='ELEMENT', isAbstract='false', hasTypeId='false', final='0', block='0', particle='("urn:iso:15118:2:2016:MsgDataTypes":ParameterSet{1-255})', derivedBy='RESTRICTION'. */
+ struct iso2ServiceParameterListType ServiceParameterList ;
+ unsigned int ServiceParameterList_isUsed:1;
+};
+
+/* Complex type name='urn:iso:15118:2:2016:MsgBody,PowerDeliveryReqType', base type name='BodyBaseType', content type='ELEMENT', isAbstract='false', hasTypeId='false', final='0', block='0', particle='("urn:iso:15118:2:2016:MsgBody":ChargeProgress,"urn:iso:15118:2:2016:MsgBody":EVOperation{0-1},"urn:iso:15118:2:2016:MsgBody":SAScheduleTupleID{0-1},"urn:iso:15118:2:2016:MsgBody":ChargingProfile{0-1})', derivedBy='EXTENSION'. */
+struct iso2PowerDeliveryReqType {
+ /* element: "urn:iso:15118:2:2016:MsgBody":ChargeProgress, urn:iso:15118:2:2016:MsgDataTypes,chargeProgressType */
+ iso2chargeProgressType ChargeProgress ;
+ /* element: "urn:iso:15118:2:2016:MsgBody":EVOperation, urn:iso:15118:2:2016:MsgDataTypes,EVOperationType */
+ iso2EVOperationType EVOperation ;
+ unsigned int EVOperation_isUsed:1;
+ /* element: "urn:iso:15118:2:2016:MsgBody":SAScheduleTupleID, urn:iso:15118:2:2016:MsgDataTypes,SAIDType */
+ uint8_t SAScheduleTupleID ;
+ unsigned int SAScheduleTupleID_isUsed:1;
+ /* element: "urn:iso:15118:2:2016:MsgBody":ChargingProfile, Complex type name='urn:iso:15118:2:2016:MsgDataTypes,ChargingProfileType', base type name='anyType', content type='ELEMENT', isAbstract='false', hasTypeId='false', final='0', block='0', particle='("urn:iso:15118:2:2016:MsgDataTypes":ProfileEntry{1-UNBOUNDED})', derivedBy='RESTRICTION'. */
+ struct iso2ChargingProfileType ChargingProfile ;
+ unsigned int ChargingProfile_isUsed:1;
+};
+
+/* Complex type name='urn:iso:15118:2:2016:MsgBody,PairingResType', base type name='V2GResponseType', content type='ELEMENT', isAbstract='false', hasTypeId='false', final='0', block='0', particle='(("urn:iso:15118:2:2016:MsgBody":ResponseCode,"urn:iso:15118:2:2016:MsgBody":EVSEStatus{0-1}),("urn:iso:15118:2:2016:MsgBody":EVSEProcessing,"urn:iso:15118:2:2016:MsgBody":PairingParameters{0-1}))', derivedBy='EXTENSION'. */
+struct iso2PairingResType {
+ /* element: "urn:iso:15118:2:2016:MsgBody":ResponseCode, urn:iso:15118:2:2016:MsgDataTypes,responseCodeType */
+ iso2responseCodeType ResponseCode ;
+ /* element: "urn:iso:15118:2:2016:MsgBody":EVSEStatus, Complex type name='urn:iso:15118:2:2016:MsgDataTypes,EVSEStatusType', base type name='anyType', content type='ELEMENT', isAbstract='false', hasTypeId='false', final='0', block='0', particle='("urn:iso:15118:2:2016:MsgDataTypes":NotificationMaxDelay,"urn:iso:15118:2:2016:MsgDataTypes":EVSENotification)', derivedBy='RESTRICTION'. */
+ struct iso2EVSEStatusType EVSEStatus ;
+ unsigned int EVSEStatus_isUsed:1;
+ /* element: "urn:iso:15118:2:2016:MsgBody":EVSEProcessing, urn:iso:15118:2:2016:MsgDataTypes,EVSEProcessingType */
+ iso2EVSEProcessingType EVSEProcessing ;
+ /* element: "urn:iso:15118:2:2016:MsgBody":PairingParameters, Complex type name='urn:iso:15118:2:2016:MsgDataTypes,ParameterSetType', base type name='anyType', content type='ELEMENT', isAbstract='false', hasTypeId='false', final='0', block='0', particle='("urn:iso:15118:2:2016:MsgDataTypes":ParameterSetID,"urn:iso:15118:2:2016:MsgDataTypes":Parameter{1-16})', derivedBy='RESTRICTION'. */
+ struct iso2ParameterSetType PairingParameters ;
+ unsigned int PairingParameters_isUsed:1;
+};
+
+/* Complex type name='urn:iso:15118:2:2016:MsgBody,PowerDemandReqType', base type name='ChargeLoopReqType', content type='ELEMENT', isAbstract='false', hasTypeId='false', final='0', block='0', particle='(("urn:iso:15118:2:2016:MsgBody":EVTargetEnergyRequest,"urn:iso:15118:2:2016:MsgBody":EVMaximumEnergyRequest{0-1},"urn:iso:15118:2:2016:MsgBody":EVMinimumEnergyRequest{0-1},"urn:iso:15118:2:2016:MsgBody":DisplayParameters{0-1}),("urn:iso:15118:2:2016:MsgBody":EVTargetPower,"urn:iso:15118:2:2016:MsgBody":EVInputPower,"urn:iso:15118:2:2016:MsgBody":PowerDemandParameters{0-1}))', derivedBy='EXTENSION'. */
+struct iso2PowerDemandReqType {
+ /* element: "urn:iso:15118:2:2016:MsgBody":EVTargetEnergyRequest, Complex type name='urn:iso:15118:2:2016:MsgDataTypes,PhysicalValueType', base type name='anyType', content type='ELEMENT', isAbstract='false', hasTypeId='false', final='0', block='0', particle='("urn:iso:15118:2:2016:MsgDataTypes":Exponent,"urn:iso:15118:2:2016:MsgDataTypes":Value)', derivedBy='RESTRICTION'. */
+ struct iso2PhysicalValueType EVTargetEnergyRequest ;
+ /* element: "urn:iso:15118:2:2016:MsgBody":EVMaximumEnergyRequest, Complex type name='urn:iso:15118:2:2016:MsgDataTypes,PhysicalValueType', base type name='anyType', content type='ELEMENT', isAbstract='false', hasTypeId='false', final='0', block='0', particle='("urn:iso:15118:2:2016:MsgDataTypes":Exponent,"urn:iso:15118:2:2016:MsgDataTypes":Value)', derivedBy='RESTRICTION'. */
+ struct iso2PhysicalValueType EVMaximumEnergyRequest ;
+ unsigned int EVMaximumEnergyRequest_isUsed:1;
+ /* element: "urn:iso:15118:2:2016:MsgBody":EVMinimumEnergyRequest, Complex type name='urn:iso:15118:2:2016:MsgDataTypes,PhysicalValueType', base type name='anyType', content type='ELEMENT', isAbstract='false', hasTypeId='false', final='0', block='0', particle='("urn:iso:15118:2:2016:MsgDataTypes":Exponent,"urn:iso:15118:2:2016:MsgDataTypes":Value)', derivedBy='RESTRICTION'. */
+ struct iso2PhysicalValueType EVMinimumEnergyRequest ;
+ unsigned int EVMinimumEnergyRequest_isUsed:1;
+ /* element: "urn:iso:15118:2:2016:MsgBody":DisplayParameters, Complex type name='urn:iso:15118:2:2016:MsgDataTypes,DisplayParametersType', base type name='anyType', content type='ELEMENT', isAbstract='false', hasTypeId='false', final='0', block='0', particle='("urn:iso:15118:2:2016:MsgDataTypes":CurrentRange{0-1},"urn:iso:15118:2:2016:MsgDataTypes":CurrentSOC{0-1},"urn:iso:15118:2:2016:MsgDataTypes":TargetSOC{0-1},"urn:iso:15118:2:2016:MsgDataTypes":BulkSOC{0-1},"urn:iso:15118:2:2016:MsgDataTypes":MinimumSOC{0-1},"urn:iso:15118:2:2016:MsgDataTypes":ChargingPerformance{0-1},"urn:iso:15118:2:2016:MsgDataTypes":RemainingTimeToTargetSOC{0-1},"urn:iso:15118:2:2016:MsgDataTypes":RemainingTimeToBulkSOC{0-1},"urn:iso:15118:2:2016:MsgDataTypes":RemainingTimeToMinimumSOC{0-1},"urn:iso:15118:2:2016:MsgDataTypes":ChargingComplete{0-1},"urn:iso:15118:2:2016:MsgDataTypes":BulkChargingComplete{0-1},"urn:iso:15118:2:2016:MsgDataTypes":InletHot{0-1})', derivedBy='RESTRICTION'. */
+ struct iso2DisplayParametersType DisplayParameters ;
+ unsigned int DisplayParameters_isUsed:1;
+ /* element: "urn:iso:15118:2:2016:MsgBody":EVTargetPower, Complex type name='urn:iso:15118:2:2016:MsgDataTypes,PhysicalValueType', base type name='anyType', content type='ELEMENT', isAbstract='false', hasTypeId='false', final='0', block='0', particle='("urn:iso:15118:2:2016:MsgDataTypes":Exponent,"urn:iso:15118:2:2016:MsgDataTypes":Value)', derivedBy='RESTRICTION'. */
+ struct iso2PhysicalValueType EVTargetPower ;
+ /* element: "urn:iso:15118:2:2016:MsgBody":EVInputPower, Complex type name='urn:iso:15118:2:2016:MsgDataTypes,PhysicalValueType', base type name='anyType', content type='ELEMENT', isAbstract='false', hasTypeId='false', final='0', block='0', particle='("urn:iso:15118:2:2016:MsgDataTypes":Exponent,"urn:iso:15118:2:2016:MsgDataTypes":Value)', derivedBy='RESTRICTION'. */
+ struct iso2PhysicalValueType EVInputPower ;
+ /* element: "urn:iso:15118:2:2016:MsgBody":PowerDemandParameters, Complex type name='urn:iso:15118:2:2016:MsgDataTypes,ParameterSetType', base type name='anyType', content type='ELEMENT', isAbstract='false', hasTypeId='false', final='0', block='0', particle='("urn:iso:15118:2:2016:MsgDataTypes":ParameterSetID,"urn:iso:15118:2:2016:MsgDataTypes":Parameter{1-16})', derivedBy='RESTRICTION'. */
+ struct iso2ParameterSetType PowerDemandParameters ;
+ unsigned int PowerDemandParameters_isUsed:1;
+};
+
+/* Complex type name='urn:iso:15118:2:2016:MsgBody,PaymentServiceSelectionReqType', base type name='BodyBaseType', content type='ELEMENT', isAbstract='false', hasTypeId='false', final='0', block='0', particle='("urn:iso:15118:2:2016:MsgBody":SelectedPaymentOption,"urn:iso:15118:2:2016:MsgBody":SelectedEnergyTransferService,"urn:iso:15118:2:2016:MsgBody":SelectedVASList{0-1})', derivedBy='EXTENSION'. */
+struct iso2PaymentServiceSelectionReqType {
+ /* element: "urn:iso:15118:2:2016:MsgBody":SelectedPaymentOption, urn:iso:15118:2:2016:MsgDataTypes,paymentOptionType */
+ iso2paymentOptionType SelectedPaymentOption ;
+ /* element: "urn:iso:15118:2:2016:MsgBody":SelectedEnergyTransferService, Complex type name='urn:iso:15118:2:2016:MsgDataTypes,SelectedServiceType', base type name='anyType', content type='ELEMENT', isAbstract='false', hasTypeId='false', final='0', block='0', particle='("urn:iso:15118:2:2016:MsgDataTypes":ServiceID,"urn:iso:15118:2:2016:MsgDataTypes":ParameterSetID)', derivedBy='RESTRICTION'. */
+ struct iso2SelectedServiceType SelectedEnergyTransferService ;
+ /* element: "urn:iso:15118:2:2016:MsgBody":SelectedVASList, Complex type name='urn:iso:15118:2:2016:MsgDataTypes,SelectedServiceListType', base type name='anyType', content type='ELEMENT', isAbstract='false', hasTypeId='false', final='0', block='0', particle='("urn:iso:15118:2:2016:MsgDataTypes":SelectedService{1-16})', derivedBy='RESTRICTION'. */
+ struct iso2SelectedServiceListType SelectedVASList ;
+ unsigned int SelectedVASList_isUsed:1;
+};
+
+/* Complex type name='urn:iso:15118:2:2016:MsgDataTypes,LFA_EVFinePositioningParametersType', base type name='EVFinePositioningParametersType', content type='ELEMENT', isAbstract='false', hasTypeId='false', final='0', block='0', particle='("urn:iso:15118:2:2016:MsgDataTypes":NumberOfSignalPackages,"urn:iso:15118:2:2016:MsgDataTypes":SensorPackageList)', derivedBy='EXTENSION'. */
+struct iso2LFA_EVFinePositioningParametersType {
+ /* element: "urn:iso:15118:2:2016:MsgDataTypes":NumberOfSignalPackages, http://www.w3.org/2001/XMLSchema,unsignedByte */
+ uint8_t NumberOfSignalPackages ;
+ /* element: "urn:iso:15118:2:2016:MsgDataTypes":SensorPackageList, Complex type name='urn:iso:15118:2:2016:MsgDataTypes,SensorPackageListType', base type name='anyType', content type='ELEMENT', isAbstract='false', hasTypeId='false', final='0', block='0', particle='("urn:iso:15118:2:2016:MsgDataTypes":SensorPackage{1-255})', derivedBy='RESTRICTION'. */
+ struct iso2SensorPackageListType SensorPackageList ;
+};
+
+/* Complex type name='http://www.w3.org/2000/09/xmldsig#,KeyInfoType', base type name='anyType', content type='MIXED', isAbstract='false', hasTypeId='false', final='0', block='0', particle='("http://www.w3.org/2000/09/xmldsig#":KeyName|"http://www.w3.org/2000/09/xmldsig#":KeyValue|"http://www.w3.org/2000/09/xmldsig#":RetrievalMethod|"http://www.w3.org/2000/09/xmldsig#":X509Data|"http://www.w3.org/2000/09/xmldsig#":PGPData|"http://www.w3.org/2000/09/xmldsig#":SPKIData|"http://www.w3.org/2000/09/xmldsig#":MgmtData|(WC[##other:"http://www.w3.org/2000/09/xmldsig#"])){1-UNBOUNDED}', derivedBy='RESTRICTION'. */
+#define iso2KeyInfoType_Id_CHARACTERS_SIZE 50 + EXTRA_CHAR
+#define iso2KeyInfoType_KeyName_CHARACTERS_SIZE 50 + EXTRA_CHAR
+#define iso2KeyInfoType_KeyName_ARRAY_SIZE 1
+#define iso2KeyInfoType_KeyValue_ARRAY_SIZE 1
+#define iso2KeyInfoType_RetrievalMethod_ARRAY_SIZE 1
+#define iso2KeyInfoType_X509Data_ARRAY_SIZE 1
+#define iso2KeyInfoType_PGPData_ARRAY_SIZE 1
+#define iso2KeyInfoType_SPKIData_ARRAY_SIZE 1
+#define iso2KeyInfoType_MgmtData_CHARACTERS_SIZE 50 + EXTRA_CHAR
+#define iso2KeyInfoType_MgmtData_ARRAY_SIZE 1
+#define iso2KeyInfoType_ANY_CHARACTERS_SIZE 50 + EXTRA_CHAR
+struct iso2KeyInfoType {
/* attribute: Id {http://www.w3.org/2001/XMLSchema,ID} */
struct {
- exi_string_character_t characters[v2gSignatureType_Id_CHARACTERS_SIZE];
+ exi_string_character_t characters[iso2KeyInfoType_Id_CHARACTERS_SIZE];
+ uint16_t charactersLen;
+ } Id ;
+ unsigned int Id_isUsed:1;
+ /* element: "http://www.w3.org/2000/09/xmldsig#":KeyName, http://www.w3.org/2001/XMLSchema,string */
+ struct {
+ struct {
+ exi_string_character_t characters[iso2KeyInfoType_KeyName_CHARACTERS_SIZE];
+ uint16_t charactersLen;
+ } array[iso2KeyInfoType_KeyName_ARRAY_SIZE];
+ uint16_t arrayLen;
+ } KeyName;
+ /* element: "http://www.w3.org/2000/09/xmldsig#":KeyValue, Complex type name='http://www.w3.org/2000/09/xmldsig#,KeyValueType', base type name='anyType', content type='MIXED', isAbstract='false', hasTypeId='false', final='0', block='0', particle='("http://www.w3.org/2000/09/xmldsig#":DSAKeyValue|"http://www.w3.org/2000/09/xmldsig#":RSAKeyValue|(WC[##other:"http://www.w3.org/2000/09/xmldsig#"]))', derivedBy='RESTRICTION'. */
+ struct {
+ struct iso2KeyValueType array[iso2KeyInfoType_KeyValue_ARRAY_SIZE];
+ uint16_t arrayLen;
+ } KeyValue;
+ /* element: "http://www.w3.org/2000/09/xmldsig#":RetrievalMethod, Complex type name='http://www.w3.org/2000/09/xmldsig#,RetrievalMethodType', base type name='anyType', content type='ELEMENT', isAbstract='false', hasTypeId='false', final='0', block='0', particle='("http://www.w3.org/2000/09/xmldsig#":Transforms{0-1})', derivedBy='RESTRICTION'. */
+ struct {
+ struct iso2RetrievalMethodType array[iso2KeyInfoType_RetrievalMethod_ARRAY_SIZE];
+ uint16_t arrayLen;
+ } RetrievalMethod;
+ /* element: "http://www.w3.org/2000/09/xmldsig#":X509Data, Complex type name='http://www.w3.org/2000/09/xmldsig#,X509DataType', base type name='anyType', content type='ELEMENT', isAbstract='false', hasTypeId='false', final='0', block='0', particle='(("http://www.w3.org/2000/09/xmldsig#":X509IssuerSerial|"http://www.w3.org/2000/09/xmldsig#":X509SKI|"http://www.w3.org/2000/09/xmldsig#":X509SubjectName|"http://www.w3.org/2000/09/xmldsig#":X509Certificate|"http://www.w3.org/2000/09/xmldsig#":X509CRL|(WC[##other:"http://www.w3.org/2000/09/xmldsig#"]))){1-UNBOUNDED}', derivedBy='RESTRICTION'. */
+ struct {
+ struct iso2X509DataType array[iso2KeyInfoType_X509Data_ARRAY_SIZE];
+ uint16_t arrayLen;
+ } X509Data;
+ /* element: "http://www.w3.org/2000/09/xmldsig#":PGPData, Complex type name='http://www.w3.org/2000/09/xmldsig#,PGPDataType', base type name='anyType', content type='ELEMENT', isAbstract='false', hasTypeId='false', final='0', block='0', particle='(("http://www.w3.org/2000/09/xmldsig#":PGPKeyID,"http://www.w3.org/2000/09/xmldsig#":PGPKeyPacket{0-1},(WC[##other:"http://www.w3.org/2000/09/xmldsig#"]){0-UNBOUNDED})|("http://www.w3.org/2000/09/xmldsig#":PGPKeyPacket,(WC[##other:"http://www.w3.org/2000/09/xmldsig#"]){0-UNBOUNDED}))', derivedBy='RESTRICTION'. */
+ struct {
+ struct iso2PGPDataType array[iso2KeyInfoType_PGPData_ARRAY_SIZE];
+ uint16_t arrayLen;
+ } PGPData;
+ /* element: "http://www.w3.org/2000/09/xmldsig#":SPKIData, Complex type name='http://www.w3.org/2000/09/xmldsig#,SPKIDataType', base type name='anyType', content type='ELEMENT', isAbstract='false', hasTypeId='false', final='0', block='0', particle='("http://www.w3.org/2000/09/xmldsig#":SPKISexp,(WC[##other:"http://www.w3.org/2000/09/xmldsig#"]){0-1}){1-UNBOUNDED}', derivedBy='RESTRICTION'. */
+ struct {
+ struct iso2SPKIDataType array[iso2KeyInfoType_SPKIData_ARRAY_SIZE];
+ uint16_t arrayLen;
+ } SPKIData;
+ /* element: "http://www.w3.org/2000/09/xmldsig#":MgmtData, http://www.w3.org/2001/XMLSchema,string */
+ struct {
+ struct {
+ exi_string_character_t characters[iso2KeyInfoType_MgmtData_CHARACTERS_SIZE];
+ uint16_t charactersLen;
+ } array[iso2KeyInfoType_MgmtData_ARRAY_SIZE];
+ uint16_t arrayLen;
+ } MgmtData;
+ /* element: WC[##other:"http://www.w3.org/2000/09/xmldsig#"] */
+ struct {
+ exi_string_character_t characters[iso2KeyInfoType_ANY_CHARACTERS_SIZE];
+ uint16_t charactersLen;
+ } ANY ;
+ unsigned int ANY_isUsed:1;
+};
+
+/* Complex type name='urn:iso:15118:2:2016:MsgBody,FinePositioningReqType', base type name='BodyBaseType', content type='ELEMENT', isAbstract='false', hasTypeId='false', final='0', block='0', particle='("urn:iso:15118:2:2016:MsgBody":EVProcessing,"urn:iso:15118:2:2016:MsgDataTypes":EVFinePositioningParameters{0-1})', derivedBy='EXTENSION'. */
+struct iso2FinePositioningReqType {
+ /* element: "urn:iso:15118:2:2016:MsgBody":EVProcessing, urn:iso:15118:2:2016:MsgDataTypes,EVSEProcessingType */
+ iso2EVSEProcessingType EVProcessing ;
+ /* element: "urn:iso:15118:2:2016:MsgDataTypes":EVFinePositioningParameters, Complex type name='urn:iso:15118:2:2016:MsgDataTypes,EVFinePositioningParametersType', base type name='anyType', content type='EMPTY', isAbstract='true', hasTypeId='false', final='0', block='0', derivedBy='RESTRICTION'. */
+ struct iso2EVFinePositioningParametersType EVFinePositioningParameters ;
+ unsigned int EVFinePositioningParameters_isUsed:1;
+ /* element: "urn:iso:15118:2:2016:MsgDataTypes":Generic_EVFinePositioningParameters, Complex type name='urn:iso:15118:2:2016:MsgDataTypes,Generic_EVFinePositioningParametersType', base type name='EVFinePositioningParametersType', content type='ELEMENT', isAbstract='false', hasTypeId='false', final='0', block='0', particle='("urn:iso:15118:2:2016:MsgDataTypes":GenericParameters)', derivedBy='EXTENSION'. */
+ struct iso2Generic_EVFinePositioningParametersType Generic_EVFinePositioningParameters ;
+ unsigned int Generic_EVFinePositioningParameters_isUsed:1;
+ /* element: "urn:iso:15118:2:2016:MsgDataTypes":LFA_EVFinePositioningParameters, Complex type name='urn:iso:15118:2:2016:MsgDataTypes,LFA_EVFinePositioningParametersType', base type name='EVFinePositioningParametersType', content type='ELEMENT', isAbstract='false', hasTypeId='false', final='0', block='0', particle='("urn:iso:15118:2:2016:MsgDataTypes":NumberOfSignalPackages,"urn:iso:15118:2:2016:MsgDataTypes":SensorPackageList)', derivedBy='EXTENSION'. */
+ struct iso2LFA_EVFinePositioningParametersType LFA_EVFinePositioningParameters ;
+ unsigned int LFA_EVFinePositioningParameters_isUsed:1;
+};
+
+/* Complex type name='http://www.w3.org/2000/09/xmldsig#,SignatureType', base type name='anyType', content type='ELEMENT', isAbstract='false', hasTypeId='false', final='0', block='0', particle='("http://www.w3.org/2000/09/xmldsig#":SignedInfo,"http://www.w3.org/2000/09/xmldsig#":SignatureValue,"http://www.w3.org/2000/09/xmldsig#":KeyInfo{0-1},"http://www.w3.org/2000/09/xmldsig#":Object{0-UNBOUNDED})', derivedBy='RESTRICTION'. */
+#define iso2SignatureType_Id_CHARACTERS_SIZE 50 + EXTRA_CHAR
+#define iso2SignatureType_Object_ARRAY_SIZE 1
+struct iso2SignatureType {
+ /* attribute: Id {http://www.w3.org/2001/XMLSchema,ID} */
+ struct {
+ exi_string_character_t characters[iso2SignatureType_Id_CHARACTERS_SIZE];
uint16_t charactersLen;
} Id ;
unsigned int Id_isUsed:1;
/* element: "http://www.w3.org/2000/09/xmldsig#":SignedInfo, Complex type name='http://www.w3.org/2000/09/xmldsig#,SignedInfoType', base type name='anyType', content type='ELEMENT', isAbstract='false', hasTypeId='false', final='0', block='0', particle='("http://www.w3.org/2000/09/xmldsig#":CanonicalizationMethod,"http://www.w3.org/2000/09/xmldsig#":SignatureMethod,"http://www.w3.org/2000/09/xmldsig#":Reference{1-UNBOUNDED})', derivedBy='RESTRICTION'. */
- struct v2gSignedInfoType SignedInfo ;
+ struct iso2SignedInfoType SignedInfo ;
/* element: "http://www.w3.org/2000/09/xmldsig#":SignatureValue, Complex type name='http://www.w3.org/2000/09/xmldsig#,SignatureValueType', base type name='base64Binary', content type='SIMPLE', isAbstract='false', hasTypeId='false', final='0', block='0', derivedBy='EXTENSION'. */
- struct v2gSignatureValueType SignatureValue ;
+ struct iso2SignatureValueType SignatureValue ;
/* element: "http://www.w3.org/2000/09/xmldsig#":KeyInfo, Complex type name='http://www.w3.org/2000/09/xmldsig#,KeyInfoType', base type name='anyType', content type='MIXED', isAbstract='false', hasTypeId='false', final='0', block='0', particle='("http://www.w3.org/2000/09/xmldsig#":KeyName|"http://www.w3.org/2000/09/xmldsig#":KeyValue|"http://www.w3.org/2000/09/xmldsig#":RetrievalMethod|"http://www.w3.org/2000/09/xmldsig#":X509Data|"http://www.w3.org/2000/09/xmldsig#":PGPData|"http://www.w3.org/2000/09/xmldsig#":SPKIData|"http://www.w3.org/2000/09/xmldsig#":MgmtData|(WC[##other:"http://www.w3.org/2000/09/xmldsig#"])){1-UNBOUNDED}', derivedBy='RESTRICTION'. */
- struct v2gKeyInfoType KeyInfo ;
+ struct iso2KeyInfoType KeyInfo ;
unsigned int KeyInfo_isUsed:1;
/* element: "http://www.w3.org/2000/09/xmldsig#":Object, Complex type name='http://www.w3.org/2000/09/xmldsig#,ObjectType', base type name='anyType', content type='MIXED', isAbstract='false', hasTypeId='false', final='0', block='0', particle='((WC[##any])){0-UNBOUNDED}', derivedBy='RESTRICTION'. */
struct {
- struct v2gObjectType array[v2gSignatureType_Object_ARRAY_SIZE];
+ struct iso2ObjectType array[iso2SignatureType_Object_ARRAY_SIZE];
uint16_t arrayLen;
} Object;
};
-/* Complex type name='urn:iso:15118:2:2016:MsgBody,FinePositioningReqType', base type name='BodyBaseType', content type='ELEMENT', isAbstract='false', hasTypeId='false', final='0', block='0', particle='("urn:iso:15118:2:2016:MsgBody":EVProcessing,"urn:iso:15118:2:2016:MsgDataTypes":EVFinePositioningParameters{0-1})', derivedBy='EXTENSION'. */
-struct v2gFinePositioningReqType {
- /* element: "urn:iso:15118:2:2016:MsgBody":EVProcessing, urn:iso:15118:2:2016:MsgDataTypes,EVSEProcessingType */
- v2gEVSEProcessingType EVProcessing ;
- /* element: "urn:iso:15118:2:2016:MsgDataTypes":EVFinePositioningParameters, Complex type name='urn:iso:15118:2:2016:MsgDataTypes,EVFinePositioningParametersType', base type name='anyType', content type='EMPTY', isAbstract='true', hasTypeId='false', final='0', block='0', derivedBy='RESTRICTION'. */
- struct v2gEVFinePositioningParametersType EVFinePositioningParameters ;
- unsigned int EVFinePositioningParameters_isUsed:1;
- /* element: "urn:iso:15118:2:2016:MsgDataTypes":Generic_EVFinePositioningParameters, Complex type name='urn:iso:15118:2:2016:MsgDataTypes,Generic_EVFinePositioningParametersType', base type name='EVFinePositioningParametersType', content type='ELEMENT', isAbstract='false', hasTypeId='false', final='0', block='0', particle='("urn:iso:15118:2:2016:MsgDataTypes":GenericParameters)', derivedBy='EXTENSION'. */
- struct v2gGeneric_EVFinePositioningParametersType Generic_EVFinePositioningParameters ;
- unsigned int Generic_EVFinePositioningParameters_isUsed:1;
- /* element: "urn:iso:15118:2:2016:MsgDataTypes":LFA_EVFinePositioningParameters, Complex type name='urn:iso:15118:2:2016:MsgDataTypes,LFA_EVFinePositioningParametersType', base type name='EVFinePositioningParametersType', content type='ELEMENT', isAbstract='false', hasTypeId='false', final='0', block='0', particle='("urn:iso:15118:2:2016:MsgDataTypes":NumberOfSignalPackages,"urn:iso:15118:2:2016:MsgDataTypes":SensorPackageList)', derivedBy='EXTENSION'. */
- struct v2gLFA_EVFinePositioningParametersType LFA_EVFinePositioningParameters ;
- unsigned int LFA_EVFinePositioningParameters_isUsed:1;
-};
-
/* Complex type name='urn:iso:15118:2:2016:MsgBody,FinePositioningSetupResType', base type name='V2GResponseType', content type='ELEMENT', isAbstract='false', hasTypeId='false', final='0', block='0', particle='(("urn:iso:15118:2:2016:MsgBody":ResponseCode,"urn:iso:15118:2:2016:MsgBody":EVSEStatus{0-1}),("urn:iso:15118:2:2016:MsgDataTypes":EVSEFinePositioningSetupParameters{0-1}))', derivedBy='EXTENSION'. */
-struct v2gFinePositioningSetupResType {
+struct iso2FinePositioningSetupResType {
/* element: "urn:iso:15118:2:2016:MsgBody":ResponseCode, urn:iso:15118:2:2016:MsgDataTypes,responseCodeType */
- v2gresponseCodeType ResponseCode ;
+ iso2responseCodeType ResponseCode ;
/* element: "urn:iso:15118:2:2016:MsgBody":EVSEStatus, Complex type name='urn:iso:15118:2:2016:MsgDataTypes,EVSEStatusType', base type name='anyType', content type='ELEMENT', isAbstract='false', hasTypeId='false', final='0', block='0', particle='("urn:iso:15118:2:2016:MsgDataTypes":NotificationMaxDelay,"urn:iso:15118:2:2016:MsgDataTypes":EVSENotification)', derivedBy='RESTRICTION'. */
- struct v2gEVSEStatusType EVSEStatus ;
+ struct iso2EVSEStatusType EVSEStatus ;
unsigned int EVSEStatus_isUsed:1;
/* element: "urn:iso:15118:2:2016:MsgDataTypes":EVSEFinePositioningSetupParameters, Complex type name='urn:iso:15118:2:2016:MsgDataTypes,EVSEFinePositioningSetupParametersType', base type name='anyType', content type='EMPTY', isAbstract='true', hasTypeId='false', final='0', block='0', derivedBy='RESTRICTION'. */
- struct v2gEVSEFinePositioningSetupParametersType EVSEFinePositioningSetupParameters ;
+ struct iso2EVSEFinePositioningSetupParametersType EVSEFinePositioningSetupParameters ;
unsigned int EVSEFinePositioningSetupParameters_isUsed:1;
- /* element: "urn:iso:15118:2:2016:MsgDataTypes":LFA_EVSEFinePositioningSetupParameters, Complex type name='urn:iso:15118:2:2016:MsgDataTypes,LFA_EVSEFinePositioningSetupParametersType', base type name='EVSEFinePositioningSetupParametersType', content type='ELEMENT', isAbstract='false', hasTypeId='false', final='0', block='0', particle='("urn:iso:15118:2:2016:MsgDataTypes":NumberOfSensors,"urn:iso:15118:2:2016:MsgDataTypes":SensorList,"urn:iso:15118:2:2016:MsgDataTypes":SensorOrder{1-255},"urn:iso:15118:2:2016:MsgDataTypes":SignalPulseDuration,"urn:iso:15118:2:2016:MsgDataTypes":SignalSeparationTime,"urn:iso:15118:2:2016:MsgDataTypes":PackageSeparationTime,"urn:iso:15118:2:2016:MsgDataTypes":AlignmentOffset,"urn:iso:15118:2:2016:MsgDataTypes":SignalFrequency)', derivedBy='EXTENSION'. */
- struct v2gLFA_EVSEFinePositioningSetupParametersType LFA_EVSEFinePositioningSetupParameters ;
+ /* element: "urn:iso:15118:2:2016:MsgDataTypes":LFA_EVSEFinePositioningSetupParameters, Complex type name='urn:iso:15118:2:2016:MsgDataTypes,LFA_EVSEFinePositioningSetupParametersType', base type name='EVSEFinePositioningSetupParametersType', content type='ELEMENT', isAbstract='false', hasTypeId='false', final='0', block='0', particle='("urn:iso:15118:2:2016:MsgDataTypes":NumberOfSensors,"urn:iso:15118:2:2016:MsgDataTypes":SensorList,"urn:iso:15118:2:2016:MsgDataTypes":SensorOrder,"urn:iso:15118:2:2016:MsgDataTypes":SignalPulseDuration,"urn:iso:15118:2:2016:MsgDataTypes":SignalSeparationTime,"urn:iso:15118:2:2016:MsgDataTypes":PackageSeparationTime,"urn:iso:15118:2:2016:MsgDataTypes":AlignmentOffset,"urn:iso:15118:2:2016:MsgDataTypes":SignalFrequency)', derivedBy='EXTENSION'. */
+ struct iso2LFA_EVSEFinePositioningSetupParametersType LFA_EVSEFinePositioningSetupParameters ;
unsigned int LFA_EVSEFinePositioningSetupParameters_isUsed:1;
/* element: "urn:iso:15118:2:2016:MsgDataTypes":MV_EVSEFinePositioningSetupParameters, Complex type name='urn:iso:15118:2:2016:MsgDataTypes,MV_EVSEFinePositioningSetupParametersType', base type name='EVSEFinePositioningSetupParametersType', content type='ELEMENT', isAbstract='false', hasTypeId='false', final='0', block='0', particle='("urn:iso:15118:2:2016:MsgDataTypes":FrequencyChannel{0-1},"urn:iso:15118:2:2016:MsgDataTypes":MagneticVectorSetupList{0-1})', derivedBy='EXTENSION'. */
- struct v2gMV_EVSEFinePositioningSetupParametersType MV_EVSEFinePositioningSetupParameters ;
+ struct iso2MV_EVSEFinePositioningSetupParametersType MV_EVSEFinePositioningSetupParameters ;
unsigned int MV_EVSEFinePositioningSetupParameters_isUsed:1;
};
-/* Complex type name='urn:iso:15118:2:2016:MsgDataTypes,SAScheduleTupleType', base type name='anyType', content type='ELEMENT', isAbstract='false', hasTypeId='false', final='0', block='0', particle='("urn:iso:15118:2:2016:MsgDataTypes":SAScheduleTupleID,"urn:iso:15118:2:2016:MsgDataTypes":PMaxSchedule,"urn:iso:15118:2:2016:MsgDataTypes":PMaxDischargeSchedule{0-1},"urn:iso:15118:2:2016:MsgDataTypes":SalesTariff{0-1},"urn:iso:15118:2:2016:MsgDataTypes":BuyBackTariff{0-1})', derivedBy='RESTRICTION'. */
-struct v2gSAScheduleTupleType {
- /* element: "urn:iso:15118:2:2016:MsgDataTypes":SAScheduleTupleID, urn:iso:15118:2:2016:MsgDataTypes,SAIDType */
- uint8_t SAScheduleTupleID ;
- /* element: "urn:iso:15118:2:2016:MsgDataTypes":PMaxSchedule, Complex type name='urn:iso:15118:2:2016:MsgDataTypes,PMaxScheduleType', base type name='anyType', content type='ELEMENT', isAbstract='false', hasTypeId='false', final='0', block='0', particle='("urn:iso:15118:2:2016:MsgDataTypes":PMaxScheduleEntry{1-UNBOUNDED})', derivedBy='RESTRICTION'. */
- struct v2gPMaxScheduleType PMaxSchedule ;
- /* element: "urn:iso:15118:2:2016:MsgDataTypes":PMaxDischargeSchedule, Complex type name='urn:iso:15118:2:2016:MsgDataTypes,PMaxScheduleType', base type name='anyType', content type='ELEMENT', isAbstract='false', hasTypeId='false', final='0', block='0', particle='("urn:iso:15118:2:2016:MsgDataTypes":PMaxScheduleEntry{1-UNBOUNDED})', derivedBy='RESTRICTION'. */
- struct v2gPMaxScheduleType PMaxDischargeSchedule ;
- unsigned int PMaxDischargeSchedule_isUsed:1;
- /* element: "urn:iso:15118:2:2016:MsgDataTypes":SalesTariff, Complex type name='urn:iso:15118:2:2016:MsgDataTypes,SalesTariffType', base type name='anyType', content type='ELEMENT', isAbstract='false', hasTypeId='false', final='0', block='0', particle='("urn:iso:15118:2:2016:MsgDataTypes":SalesTariffID,"urn:iso:15118:2:2016:MsgDataTypes":SalesTariffDescription{0-1},"urn:iso:15118:2:2016:MsgDataTypes":NumEPriceLevels{0-1},"urn:iso:15118:2:2016:MsgDataTypes":SalesTariffEntry{1-UNBOUNDED})', derivedBy='RESTRICTION'. */
- struct v2gSalesTariffType SalesTariff ;
- unsigned int SalesTariff_isUsed:1;
- /* element: "urn:iso:15118:2:2016:MsgDataTypes":BuyBackTariff, Complex type name='urn:iso:15118:2:2016:MsgDataTypes,SalesTariffType', base type name='anyType', content type='ELEMENT', isAbstract='false', hasTypeId='false', final='0', block='0', particle='("urn:iso:15118:2:2016:MsgDataTypes":SalesTariffID,"urn:iso:15118:2:2016:MsgDataTypes":SalesTariffDescription{0-1},"urn:iso:15118:2:2016:MsgDataTypes":NumEPriceLevels{0-1},"urn:iso:15118:2:2016:MsgDataTypes":SalesTariffEntry{1-UNBOUNDED})', derivedBy='RESTRICTION'. */
- struct v2gSalesTariffType BuyBackTariff ;
- unsigned int BuyBackTariff_isUsed:1;
-};
-
-/* Complex type name='urn:iso:15118:2:2016:MsgBody,FinePositioningResType', base type name='V2GResponseType', content type='ELEMENT', isAbstract='false', hasTypeId='false', final='0', block='0', particle='(("urn:iso:15118:2:2016:MsgBody":ResponseCode,"urn:iso:15118:2:2016:MsgBody":EVSEStatus{0-1}),("urn:iso:15118:2:2016:MsgBody":EVSEProcessing,"urn:iso:15118:2:2016:MsgDataTypes":EVSEFinePositioningParameters{0-1}))', derivedBy='EXTENSION'. */
-struct v2gFinePositioningResType {
- /* element: "urn:iso:15118:2:2016:MsgBody":ResponseCode, urn:iso:15118:2:2016:MsgDataTypes,responseCodeType */
- v2gresponseCodeType ResponseCode ;
- /* element: "urn:iso:15118:2:2016:MsgBody":EVSEStatus, Complex type name='urn:iso:15118:2:2016:MsgDataTypes,EVSEStatusType', base type name='anyType', content type='ELEMENT', isAbstract='false', hasTypeId='false', final='0', block='0', particle='("urn:iso:15118:2:2016:MsgDataTypes":NotificationMaxDelay,"urn:iso:15118:2:2016:MsgDataTypes":EVSENotification)', derivedBy='RESTRICTION'. */
- struct v2gEVSEStatusType EVSEStatus ;
- unsigned int EVSEStatus_isUsed:1;
- /* element: "urn:iso:15118:2:2016:MsgBody":EVSEProcessing, urn:iso:15118:2:2016:MsgDataTypes,EVSEProcessingType */
- v2gEVSEProcessingType EVSEProcessing ;
- /* element: "urn:iso:15118:2:2016:MsgDataTypes":EVSEFinePositioningParameters, Complex type name='urn:iso:15118:2:2016:MsgDataTypes,EVSEFinePositioningParametersType', base type name='anyType', content type='EMPTY', isAbstract='true', hasTypeId='false', final='0', block='0', derivedBy='RESTRICTION'. */
- struct v2gEVSEFinePositioningParametersType EVSEFinePositioningParameters ;
- unsigned int EVSEFinePositioningParameters_isUsed:1;
- /* element: "urn:iso:15118:2:2016:MsgDataTypes":Generic_EVSEFinePositioningParameters, Complex type name='urn:iso:15118:2:2016:MsgDataTypes,Generic_EVSEFinePositioningParametersType', base type name='EVSEFinePositioningParametersType', content type='ELEMENT', isAbstract='false', hasTypeId='false', final='0', block='0', particle='("urn:iso:15118:2:2016:MsgDataTypes":GenericParameters)', derivedBy='EXTENSION'. */
- struct v2gGeneric_EVSEFinePositioningParametersType Generic_EVSEFinePositioningParameters ;
- unsigned int Generic_EVSEFinePositioningParameters_isUsed:1;
- /* element: "urn:iso:15118:2:2016:MsgDataTypes":LF_EVSEFinePositioningParameters, Complex type name='urn:iso:15118:2:2016:MsgDataTypes,LF_EVSEFinePositioningParametersType', base type name='EVSEFinePositioningParametersType', content type='ELEMENT', isAbstract='false', hasTypeId='false', final='0', block='0', particle='("urn:iso:15118:2:2016:MsgDataTypes":NumberOfSignalPackages,"urn:iso:15118:2:2016:MsgDataTypes":SensorPackageList)', derivedBy='EXTENSION'. */
- struct v2gLF_EVSEFinePositioningParametersType LF_EVSEFinePositioningParameters ;
- unsigned int LF_EVSEFinePositioningParameters_isUsed:1;
- /* element: "urn:iso:15118:2:2016:MsgDataTypes":MV_EVSEFinePositioningParameters, Complex type name='urn:iso:15118:2:2016:MsgDataTypes,MV_EVSEFinePositioningParametersType', base type name='EVSEFinePositioningParametersType', content type='ELEMENT', isAbstract='false', hasTypeId='false', final='0', block='0', particle='("urn:iso:15118:2:2016:MsgDataTypes":MagneticVectorList)', derivedBy='EXTENSION'. */
- struct v2gMV_EVSEFinePositioningParametersType MV_EVSEFinePositioningParameters ;
- unsigned int MV_EVSEFinePositioningParameters_isUsed:1;
-};
-
-/* Complex type name='urn:iso:15118:2:2016:MsgHeader,MessageHeaderType', base type name='anyType', content type='ELEMENT', isAbstract='false', hasTypeId='false', final='0', block='0', particle='("urn:iso:15118:2:2016:MsgHeader":SessionID,"http://www.w3.org/2000/09/xmldsig#":Signature{0-1})', derivedBy='RESTRICTION'. */
-#define v2gMessageHeaderType_SessionID_BYTES_SIZE 8 /* XML schema facet maxLength for urn:iso:15118:2:2016:MsgDataTypes,sessionIDType is 8 */
-struct v2gMessageHeaderType {
- /* element: "urn:iso:15118:2:2016:MsgHeader":SessionID, urn:iso:15118:2:2016:MsgDataTypes,sessionIDType */
- struct {
- uint8_t bytes[v2gMessageHeaderType_SessionID_BYTES_SIZE];
- uint16_t bytesLen;
- } SessionID ;
- /* element: "http://www.w3.org/2000/09/xmldsig#":Signature, Complex type name='http://www.w3.org/2000/09/xmldsig#,SignatureType', base type name='anyType', content type='ELEMENT', isAbstract='false', hasTypeId='false', final='0', block='0', particle='("http://www.w3.org/2000/09/xmldsig#":SignedInfo,"http://www.w3.org/2000/09/xmldsig#":SignatureValue,"http://www.w3.org/2000/09/xmldsig#":KeyInfo{0-1},"http://www.w3.org/2000/09/xmldsig#":Object{0-UNBOUNDED})', derivedBy='RESTRICTION'. */
- struct v2gSignatureType Signature ;
- unsigned int Signature_isUsed:1;
-};
-
/* Complex type name='urn:iso:15118:2:2016:MsgDataTypes,SAScheduleListType', base type name='anyType', content type='ELEMENT', isAbstract='false', hasTypeId='false', final='0', block='0', particle='("urn:iso:15118:2:2016:MsgDataTypes":SAScheduleTuple{1-3})', derivedBy='RESTRICTION'. */
-#define v2gSAScheduleListType_SAScheduleTuple_ARRAY_SIZE 3
-struct v2gSAScheduleListType {
+#define iso2SAScheduleListType_SAScheduleTuple_ARRAY_SIZE 3
+struct iso2SAScheduleListType {
/* element: "urn:iso:15118:2:2016:MsgDataTypes":SAScheduleTuple, Complex type name='urn:iso:15118:2:2016:MsgDataTypes,SAScheduleTupleType', base type name='anyType', content type='ELEMENT', isAbstract='false', hasTypeId='false', final='0', block='0', particle='("urn:iso:15118:2:2016:MsgDataTypes":SAScheduleTupleID,"urn:iso:15118:2:2016:MsgDataTypes":PMaxSchedule,"urn:iso:15118:2:2016:MsgDataTypes":PMaxDischargeSchedule{0-1},"urn:iso:15118:2:2016:MsgDataTypes":SalesTariff{0-1},"urn:iso:15118:2:2016:MsgDataTypes":BuyBackTariff{0-1})', derivedBy='RESTRICTION'. */
struct {
- struct v2gSAScheduleTupleType array[v2gSAScheduleListType_SAScheduleTuple_ARRAY_SIZE];
+ struct iso2SAScheduleTupleType array[iso2SAScheduleListType_SAScheduleTuple_ARRAY_SIZE];
uint16_t arrayLen;
} SAScheduleTuple;
};
-/* Complex type name='urn:iso:15118:2:2016:MsgBody,ChargeParameterDiscoveryResType', base type name='V2GResponseType', content type='ELEMENT', isAbstract='false', hasTypeId='false', final='0', block='0', particle='(("urn:iso:15118:2:2016:MsgBody":ResponseCode,"urn:iso:15118:2:2016:MsgBody":EVSEStatus{0-1}),("urn:iso:15118:2:2016:MsgBody":EVSEProcessing,"urn:iso:15118:2:2016:MsgBody":SAScheduleList{0-1},"urn:iso:15118:2:2016:MsgDataTypes":EVSEEnergyTransferParameter))', derivedBy='EXTENSION'. */
-struct v2gChargeParameterDiscoveryResType {
+/* Complex type name='urn:iso:15118:2:2016:MsgDataTypes,LFA_EVSEFinePositioningParametersType', base type name='EVSEFinePositioningParametersType', content type='ELEMENT', isAbstract='false', hasTypeId='false', final='0', block='0', particle='("urn:iso:15118:2:2016:MsgDataTypes":NumberOfSignalPackages,"urn:iso:15118:2:2016:MsgDataTypes":SensorPackageList)', derivedBy='EXTENSION'. */
+struct iso2LFA_EVSEFinePositioningParametersType {
+ /* element: "urn:iso:15118:2:2016:MsgDataTypes":NumberOfSignalPackages, http://www.w3.org/2001/XMLSchema,unsignedByte */
+ uint8_t NumberOfSignalPackages ;
+ /* element: "urn:iso:15118:2:2016:MsgDataTypes":SensorPackageList, Complex type name='urn:iso:15118:2:2016:MsgDataTypes,SensorPackageListType', base type name='anyType', content type='ELEMENT', isAbstract='false', hasTypeId='false', final='0', block='0', particle='("urn:iso:15118:2:2016:MsgDataTypes":SensorPackage{1-255})', derivedBy='RESTRICTION'. */
+ struct iso2SensorPackageListType SensorPackageList ;
+};
+
+/* Complex type name='urn:iso:15118:2:2016:MsgHeader,MessageHeaderType', base type name='anyType', content type='ELEMENT', isAbstract='false', hasTypeId='false', final='0', block='0', particle='("urn:iso:15118:2:2016:MsgHeader":SessionID,"http://www.w3.org/2000/09/xmldsig#":Signature{0-1})', derivedBy='RESTRICTION'. */
+#define iso2MessageHeaderType_SessionID_BYTES_SIZE 8 /* XML schema facet maxLength for urn:iso:15118:2:2016:MsgDataTypes,sessionIDType is 8 */
+struct iso2MessageHeaderType {
+ /* element: "urn:iso:15118:2:2016:MsgHeader":SessionID, urn:iso:15118:2:2016:MsgDataTypes,sessionIDType */
+ struct {
+ uint8_t bytes[iso2MessageHeaderType_SessionID_BYTES_SIZE];
+ uint16_t bytesLen;
+ } SessionID ;
+ /* element: "http://www.w3.org/2000/09/xmldsig#":Signature, Complex type name='http://www.w3.org/2000/09/xmldsig#,SignatureType', base type name='anyType', content type='ELEMENT', isAbstract='false', hasTypeId='false', final='0', block='0', particle='("http://www.w3.org/2000/09/xmldsig#":SignedInfo,"http://www.w3.org/2000/09/xmldsig#":SignatureValue,"http://www.w3.org/2000/09/xmldsig#":KeyInfo{0-1},"http://www.w3.org/2000/09/xmldsig#":Object{0-UNBOUNDED})', derivedBy='RESTRICTION'. */
+ struct iso2SignatureType Signature ;
+ unsigned int Signature_isUsed:1;
+};
+
+/* Complex type name='urn:iso:15118:2:2016:MsgBody,FinePositioningResType', base type name='V2GResponseType', content type='ELEMENT', isAbstract='false', hasTypeId='false', final='0', block='0', particle='(("urn:iso:15118:2:2016:MsgBody":ResponseCode,"urn:iso:15118:2:2016:MsgBody":EVSEStatus{0-1}),("urn:iso:15118:2:2016:MsgBody":EVSEProcessing,"urn:iso:15118:2:2016:MsgDataTypes":EVSEFinePositioningParameters{0-1}))', derivedBy='EXTENSION'. */
+struct iso2FinePositioningResType {
/* element: "urn:iso:15118:2:2016:MsgBody":ResponseCode, urn:iso:15118:2:2016:MsgDataTypes,responseCodeType */
- v2gresponseCodeType ResponseCode ;
+ iso2responseCodeType ResponseCode ;
/* element: "urn:iso:15118:2:2016:MsgBody":EVSEStatus, Complex type name='urn:iso:15118:2:2016:MsgDataTypes,EVSEStatusType', base type name='anyType', content type='ELEMENT', isAbstract='false', hasTypeId='false', final='0', block='0', particle='("urn:iso:15118:2:2016:MsgDataTypes":NotificationMaxDelay,"urn:iso:15118:2:2016:MsgDataTypes":EVSENotification)', derivedBy='RESTRICTION'. */
- struct v2gEVSEStatusType EVSEStatus ;
+ struct iso2EVSEStatusType EVSEStatus ;
unsigned int EVSEStatus_isUsed:1;
/* element: "urn:iso:15118:2:2016:MsgBody":EVSEProcessing, urn:iso:15118:2:2016:MsgDataTypes,EVSEProcessingType */
- v2gEVSEProcessingType EVSEProcessing ;
+ iso2EVSEProcessingType EVSEProcessing ;
+ /* element: "urn:iso:15118:2:2016:MsgDataTypes":EVSEFinePositioningParameters, Complex type name='urn:iso:15118:2:2016:MsgDataTypes,EVSEFinePositioningParametersType', base type name='anyType', content type='EMPTY', isAbstract='true', hasTypeId='false', final='0', block='0', derivedBy='RESTRICTION'. */
+ struct iso2EVSEFinePositioningParametersType EVSEFinePositioningParameters ;
+ unsigned int EVSEFinePositioningParameters_isUsed:1;
+ /* element: "urn:iso:15118:2:2016:MsgDataTypes":Generic_EVSEFinePositioningParameters, Complex type name='urn:iso:15118:2:2016:MsgDataTypes,Generic_EVSEFinePositioningParametersType', base type name='EVSEFinePositioningParametersType', content type='ELEMENT', isAbstract='false', hasTypeId='false', final='0', block='0', particle='("urn:iso:15118:2:2016:MsgDataTypes":GenericParameters)', derivedBy='EXTENSION'. */
+ struct iso2Generic_EVSEFinePositioningParametersType Generic_EVSEFinePositioningParameters ;
+ unsigned int Generic_EVSEFinePositioningParameters_isUsed:1;
+ /* element: "urn:iso:15118:2:2016:MsgDataTypes":LFA_EVSEFinePositioningParameters, Complex type name='urn:iso:15118:2:2016:MsgDataTypes,LFA_EVSEFinePositioningParametersType', base type name='EVSEFinePositioningParametersType', content type='ELEMENT', isAbstract='false', hasTypeId='false', final='0', block='0', particle='("urn:iso:15118:2:2016:MsgDataTypes":NumberOfSignalPackages,"urn:iso:15118:2:2016:MsgDataTypes":SensorPackageList)', derivedBy='EXTENSION'. */
+ struct iso2LFA_EVSEFinePositioningParametersType LFA_EVSEFinePositioningParameters ;
+ unsigned int LFA_EVSEFinePositioningParameters_isUsed:1;
+ /* element: "urn:iso:15118:2:2016:MsgDataTypes":MV_EVSEFinePositioningParameters, Complex type name='urn:iso:15118:2:2016:MsgDataTypes,MV_EVSEFinePositioningParametersType', base type name='EVSEFinePositioningParametersType', content type='ELEMENT', isAbstract='false', hasTypeId='false', final='0', block='0', particle='("urn:iso:15118:2:2016:MsgDataTypes":MagneticVectorList)', derivedBy='EXTENSION'. */
+ struct iso2MV_EVSEFinePositioningParametersType MV_EVSEFinePositioningParameters ;
+ unsigned int MV_EVSEFinePositioningParameters_isUsed:1;
+};
+
+/* Complex type name='urn:iso:15118:2:2016:MsgBody,ChargeParameterDiscoveryResType', base type name='V2GResponseType', content type='ELEMENT', isAbstract='false', hasTypeId='false', final='0', block='0', particle='(("urn:iso:15118:2:2016:MsgBody":ResponseCode,"urn:iso:15118:2:2016:MsgBody":EVSEStatus{0-1}),("urn:iso:15118:2:2016:MsgBody":EVSEProcessing,"urn:iso:15118:2:2016:MsgBody":SAScheduleList{0-1},"urn:iso:15118:2:2016:MsgDataTypes":EVSEEnergyTransferParameter))', derivedBy='EXTENSION'. */
+struct iso2ChargeParameterDiscoveryResType {
+ /* element: "urn:iso:15118:2:2016:MsgBody":ResponseCode, urn:iso:15118:2:2016:MsgDataTypes,responseCodeType */
+ iso2responseCodeType ResponseCode ;
+ /* element: "urn:iso:15118:2:2016:MsgBody":EVSEStatus, Complex type name='urn:iso:15118:2:2016:MsgDataTypes,EVSEStatusType', base type name='anyType', content type='ELEMENT', isAbstract='false', hasTypeId='false', final='0', block='0', particle='("urn:iso:15118:2:2016:MsgDataTypes":NotificationMaxDelay,"urn:iso:15118:2:2016:MsgDataTypes":EVSENotification)', derivedBy='RESTRICTION'. */
+ struct iso2EVSEStatusType EVSEStatus ;
+ unsigned int EVSEStatus_isUsed:1;
+ /* element: "urn:iso:15118:2:2016:MsgBody":EVSEProcessing, urn:iso:15118:2:2016:MsgDataTypes,EVSEProcessingType */
+ iso2EVSEProcessingType EVSEProcessing ;
/* element: "urn:iso:15118:2:2016:MsgBody":SAScheduleList, Complex type name='urn:iso:15118:2:2016:MsgDataTypes,SAScheduleListType', base type name='anyType', content type='ELEMENT', isAbstract='false', hasTypeId='false', final='0', block='0', particle='("urn:iso:15118:2:2016:MsgDataTypes":SAScheduleTuple{1-3})', derivedBy='RESTRICTION'. */
- struct v2gSAScheduleListType SAScheduleList ;
+ struct iso2SAScheduleListType SAScheduleList ;
unsigned int SAScheduleList_isUsed:1;
/* element: "urn:iso:15118:2:2016:MsgDataTypes":EVSEEnergyTransferParameter, Complex type name='urn:iso:15118:2:2016:MsgDataTypes,EVSEEnergyTransferParameterType', base type name='anyType', content type='EMPTY', isAbstract='true', hasTypeId='false', final='0', block='0', derivedBy='RESTRICTION'. */
- struct v2gEVSEEnergyTransferParameterType EVSEEnergyTransferParameter ;
+ struct iso2EVSEEnergyTransferParameterType EVSEEnergyTransferParameter ;
unsigned int EVSEEnergyTransferParameter_isUsed:1;
/* element: "urn:iso:15118:2:2016:MsgDataTypes":AC_EVSEChargeParameter, Complex type name='urn:iso:15118:2:2016:MsgDataTypes,AC_EVSEChargeParameterType', base type name='EVSEEnergyTransferParameterType', content type='ELEMENT', isAbstract='false', hasTypeId='false', final='0', block='0', particle='("urn:iso:15118:2:2016:MsgDataTypes":EVSEMaximumChargeCurrent,"urn:iso:15118:2:2016:MsgDataTypes":EVSENominalVoltage,"urn:iso:15118:2:2016:MsgDataTypes":EVSENominalFrequency)', derivedBy='EXTENSION'. */
- struct v2gAC_EVSEChargeParameterType AC_EVSEChargeParameter ;
+ struct iso2AC_EVSEChargeParameterType AC_EVSEChargeParameter ;
unsigned int AC_EVSEChargeParameter_isUsed:1;
/* element: "urn:iso:15118:2:2016:MsgDataTypes":AC_EVSEBidirectionalParameter, Complex type name='urn:iso:15118:2:2016:MsgDataTypes,AC_EVSEBidirectionalParameterType', base type name='AC_EVSEChargeParameterType', content type='ELEMENT', isAbstract='false', hasTypeId='false', final='0', block='0', particle='(("urn:iso:15118:2:2016:MsgDataTypes":EVSEMaximumChargeCurrent,"urn:iso:15118:2:2016:MsgDataTypes":EVSENominalVoltage,"urn:iso:15118:2:2016:MsgDataTypes":EVSENominalFrequency),("urn:iso:15118:2:2016:MsgDataTypes":EVSEMaximumDischargeCurrent,"urn:iso:15118:2:2016:MsgDataTypes":EVSENominalFrequency))', derivedBy='EXTENSION'. */
- struct v2gAC_EVSEBidirectionalParameterType AC_EVSEBidirectionalParameter ;
+ struct iso2AC_EVSEBidirectionalParameterType AC_EVSEBidirectionalParameter ;
unsigned int AC_EVSEBidirectionalParameter_isUsed:1;
/* element: "urn:iso:15118:2:2016:MsgDataTypes":DC_EVSEChargeParameter, Complex type name='urn:iso:15118:2:2016:MsgDataTypes,DC_EVSEChargeParameterType', base type name='EVSEEnergyTransferParameterType', content type='ELEMENT', isAbstract='false', hasTypeId='false', final='0', block='0', particle='("urn:iso:15118:2:2016:MsgDataTypes":EVSEMaximumChargePower,"urn:iso:15118:2:2016:MsgDataTypes":EVSEMaximumChargeCurrent,"urn:iso:15118:2:2016:MsgDataTypes":EVSEMinimumChargeCurrent,"urn:iso:15118:2:2016:MsgDataTypes":EVSEMaximumVoltage,"urn:iso:15118:2:2016:MsgDataTypes":EVSEMinimumVoltage,"urn:iso:15118:2:2016:MsgDataTypes":EVSECurrentRegulationTolerance{0-1},"urn:iso:15118:2:2016:MsgDataTypes":EVSEPeakCurrentRipple,"urn:iso:15118:2:2016:MsgDataTypes":EVSEEnergyToBeDelivered{0-1})', derivedBy='EXTENSION'. */
- struct v2gDC_EVSEChargeParameterType DC_EVSEChargeParameter ;
+ struct iso2DC_EVSEChargeParameterType DC_EVSEChargeParameter ;
unsigned int DC_EVSEChargeParameter_isUsed:1;
/* element: "urn:iso:15118:2:2016:MsgDataTypes":DC_EVSEBidirectionalParameter, Complex type name='urn:iso:15118:2:2016:MsgDataTypes,DC_EVSEBidirectionalParameterType', base type name='DC_EVSEChargeParameterType', content type='ELEMENT', isAbstract='false', hasTypeId='false', final='0', block='0', particle='(("urn:iso:15118:2:2016:MsgDataTypes":EVSEMaximumChargePower,"urn:iso:15118:2:2016:MsgDataTypes":EVSEMaximumChargeCurrent,"urn:iso:15118:2:2016:MsgDataTypes":EVSEMinimumChargeCurrent,"urn:iso:15118:2:2016:MsgDataTypes":EVSEMaximumVoltage,"urn:iso:15118:2:2016:MsgDataTypes":EVSEMinimumVoltage,"urn:iso:15118:2:2016:MsgDataTypes":EVSECurrentRegulationTolerance{0-1},"urn:iso:15118:2:2016:MsgDataTypes":EVSEPeakCurrentRipple,"urn:iso:15118:2:2016:MsgDataTypes":EVSEEnergyToBeDelivered{0-1}),("urn:iso:15118:2:2016:MsgDataTypes":EVSEMaximumDischargePower,"urn:iso:15118:2:2016:MsgDataTypes":EVSEMaximumDischargeCurrent,"urn:iso:15118:2:2016:MsgDataTypes":EVSEMinimumDischargeCurrent))', derivedBy='EXTENSION'. */
- struct v2gDC_EVSEBidirectionalParameterType DC_EVSEBidirectionalParameter ;
+ struct iso2DC_EVSEBidirectionalParameterType DC_EVSEBidirectionalParameter ;
unsigned int DC_EVSEBidirectionalParameter_isUsed:1;
/* element: "urn:iso:15118:2:2016:MsgDataTypes":WPT_EVSEChargeParameter, Complex type name='urn:iso:15118:2:2016:MsgDataTypes,WPT_EVSEChargeParameterType', base type name='EVSEEnergyTransferParameterType', content type='ELEMENT', isAbstract='false', hasTypeId='false', final='0', block='0', particle='("urn:iso:15118:2:2016:MsgDataTypes":EVSEMaximumPower,"urn:iso:15118:2:2016:MsgDataTypes":EVSEMinimumPower)', derivedBy='EXTENSION'. */
- struct v2gWPT_EVSEChargeParameterType WPT_EVSEChargeParameter ;
+ struct iso2WPT_EVSEChargeParameterType WPT_EVSEChargeParameter ;
unsigned int WPT_EVSEChargeParameter_isUsed:1;
};
/* Complex type name='urn:iso:15118:2:2016:MsgBody,BodyType', base type name='anyType', content type='ELEMENT', isAbstract='false', hasTypeId='false', final='0', block='0', particle='("urn:iso:15118:2:2016:MsgBody":BodyElement)', derivedBy='RESTRICTION'. */
-struct v2gBodyType {
+struct iso2BodyType {
/* substitutionGroup */
#if SAVE_MEMORY_WITH_UNNAMED_UNION == UNION_YES
union {
#endif /* SAVE_MEMORY_WITH_UNNAMED_UNION == UNION_YES */
/* element: "urn:iso:15118:2:2016:MsgBody":BodyElement, Complex type name='urn:iso:15118:2:2016:MsgBody,BodyBaseType', base type name='anyType', content type='EMPTY', isAbstract='true', hasTypeId='false', final='0', block='0', derivedBy='RESTRICTION'. */
- struct v2gBodyBaseType BodyElement ;
+ struct iso2BodyBaseType BodyElement ;
/* element: "urn:iso:15118:2:2016:MsgBody":V2GRequest, Complex type name='urn:iso:15118:2:2016:MsgBody,BodyBaseType', base type name='anyType', content type='EMPTY', isAbstract='true', hasTypeId='false', final='0', block='0', derivedBy='RESTRICTION'. */
- struct v2gBodyBaseType V2GRequest ;
+ struct iso2BodyBaseType V2GRequest ;
/* element: "urn:iso:15118:2:2016:MsgBody":DisconnectChargingDeviceReq, Complex type name='urn:iso:15118:2:2016:MsgBody,DisconnectChargingDeviceReqType', base type name='BodyBaseType', content type='ELEMENT', isAbstract='false', hasTypeId='false', final='0', block='0', particle='("urn:iso:15118:2:2016:MsgBody":EVElectricalChargingDeviceStatus,"urn:iso:15118:2:2016:MsgBody":EVMechanicalChargingDeviceStatus)', derivedBy='EXTENSION'. */
- struct v2gDisconnectChargingDeviceReqType DisconnectChargingDeviceReq ;
+ struct iso2DisconnectChargingDeviceReqType DisconnectChargingDeviceReq ;
/* element: "urn:iso:15118:2:2016:MsgBody":ConnectChargingDeviceReq, Complex type name='urn:iso:15118:2:2016:MsgBody,ConnectChargingDeviceReqType', base type name='BodyBaseType', content type='ELEMENT', isAbstract='false', hasTypeId='false', final='0', block='0', particle='("urn:iso:15118:2:2016:MsgBody":EVElectricalChargingDeviceStatus,"urn:iso:15118:2:2016:MsgBody":EVMechanicalChargingDeviceStatus)', derivedBy='EXTENSION'. */
- struct v2gConnectChargingDeviceReqType ConnectChargingDeviceReq ;
+ struct iso2ConnectChargingDeviceReqType ConnectChargingDeviceReq ;
/* element: "urn:iso:15118:2:2016:MsgBody":SystemStatusReq, Complex type name='urn:iso:15118:2:2016:MsgBody,SystemStatusReqType', base type name='BodyBaseType', content type='ELEMENT', isAbstract='false', hasTypeId='false', final='0', block='0', particle='("urn:iso:15118:2:2016:MsgBody":OperationMode,"urn:iso:15118:2:2016:MsgBody":EVMechanicalChargingDeviceStatus)', derivedBy='EXTENSION'. */
- struct v2gSystemStatusReqType SystemStatusReq ;
+ struct iso2SystemStatusReqType SystemStatusReq ;
/* element: "urn:iso:15118:2:2016:MsgBody":DC_BidirectionalControlReq, Complex type name='urn:iso:15118:2:2016:MsgBody,DC_BidirectionalControlReqType', base type name='ChargeLoopReqType', content type='ELEMENT', isAbstract='false', hasTypeId='false', final='0', block='0', particle='(("urn:iso:15118:2:2016:MsgBody":EVTargetEnergyRequest,"urn:iso:15118:2:2016:MsgBody":EVMaximumEnergyRequest{0-1},"urn:iso:15118:2:2016:MsgBody":EVMinimumEnergyRequest{0-1},"urn:iso:15118:2:2016:MsgBody":DisplayParameters{0-1}),("urn:iso:15118:2:2016:MsgBody":EVTargetCurrent,"urn:iso:15118:2:2016:MsgBody":EVTargetVoltage,"urn:iso:15118:2:2016:MsgBody":EVMaximumVoltage,"urn:iso:15118:2:2016:MsgBody":EVMinimumVoltage,"urn:iso:15118:2:2016:MsgBody":EVMaximumChargeCurrent,"urn:iso:15118:2:2016:MsgBody":EVMaximumDischargeCurrent{0-1},"urn:iso:15118:2:2016:MsgBody":EVMaximumChargePower{0-1},"urn:iso:15118:2:2016:MsgBody":EVMaximumDischargePower{0-1}))', derivedBy='EXTENSION'. */
- struct v2gDC_BidirectionalControlReqType DC_BidirectionalControlReq ;
+ struct iso2DC_BidirectionalControlReqType DC_BidirectionalControlReq ;
/* element: "urn:iso:15118:2:2016:MsgBody":AC_BidirectionalControlReq, Complex type name='urn:iso:15118:2:2016:MsgBody,AC_BidirectionalControlReqType', base type name='ChargeLoopReqType', content type='ELEMENT', isAbstract='false', hasTypeId='false', final='0', block='0', particle='(("urn:iso:15118:2:2016:MsgBody":EVTargetEnergyRequest,"urn:iso:15118:2:2016:MsgBody":EVMaximumEnergyRequest{0-1},"urn:iso:15118:2:2016:MsgBody":EVMinimumEnergyRequest{0-1},"urn:iso:15118:2:2016:MsgBody":DisplayParameters{0-1}),("urn:iso:15118:2:2016:MsgBody":EVOperation{0-1},"urn:iso:15118:2:2016:MsgBody":EVMaximumChargePower,"urn:iso:15118:2:2016:MsgBody":EVMaximumDischargePower{0-1},"urn:iso:15118:2:2016:MsgBody":EVMaximumChargeCurrent,"urn:iso:15118:2:2016:MsgBody":EVMaximumDischargeCurrent{0-1},"urn:iso:15118:2:2016:MsgBody":EVMinimumChargeCurrent,"urn:iso:15118:2:2016:MsgBody":EVMinimumDischargeCurrent{0-1},"urn:iso:15118:2:2016:MsgBody":EVPresentActivePower,"urn:iso:15118:2:2016:MsgBody":EVPresentReactivePower))', derivedBy='EXTENSION'. */
- struct v2gAC_BidirectionalControlReqType AC_BidirectionalControlReq ;
+ struct iso2AC_BidirectionalControlReqType AC_BidirectionalControlReq ;
/* element: "urn:iso:15118:2:2016:MsgBody":VehicleCheckOutReq, Complex type name='urn:iso:15118:2:2016:MsgBody,VehicleCheckOutReqType', base type name='BodyBaseType', content type='ELEMENT', isAbstract='false', hasTypeId='false', final='0', block='0', particle='("urn:iso:15118:2:2016:MsgBody":EVCheckOutStatus,"urn:iso:15118:2:2016:MsgBody":CheckOutTime)', derivedBy='EXTENSION'. */
- struct v2gVehicleCheckOutReqType VehicleCheckOutReq ;
+ struct iso2VehicleCheckOutReqType VehicleCheckOutReq ;
/* element: "urn:iso:15118:2:2016:MsgBody":VehicleCheckInReq, Complex type name='urn:iso:15118:2:2016:MsgBody,VehicleCheckInReqType', base type name='BodyBaseType', content type='ELEMENT', isAbstract='false', hasTypeId='false', final='0', block='0', particle='("urn:iso:15118:2:2016:MsgBody":EVCheckInStatus,"urn:iso:15118:2:2016:MsgBody":ParkingMethod{0-1})', derivedBy='EXTENSION'. */
- struct v2gVehicleCheckInReqType VehicleCheckInReq ;
+ struct iso2VehicleCheckInReqType VehicleCheckInReq ;
/* element: "urn:iso:15118:2:2016:MsgBody":PowerDemandReq, Complex type name='urn:iso:15118:2:2016:MsgBody,PowerDemandReqType', base type name='ChargeLoopReqType', content type='ELEMENT', isAbstract='false', hasTypeId='false', final='0', block='0', particle='(("urn:iso:15118:2:2016:MsgBody":EVTargetEnergyRequest,"urn:iso:15118:2:2016:MsgBody":EVMaximumEnergyRequest{0-1},"urn:iso:15118:2:2016:MsgBody":EVMinimumEnergyRequest{0-1},"urn:iso:15118:2:2016:MsgBody":DisplayParameters{0-1}),("urn:iso:15118:2:2016:MsgBody":EVTargetPower,"urn:iso:15118:2:2016:MsgBody":EVInputPower,"urn:iso:15118:2:2016:MsgBody":PowerDemandParameters{0-1}))', derivedBy='EXTENSION'. */
- struct v2gPowerDemandReqType PowerDemandReq ;
+ struct iso2PowerDemandReqType PowerDemandReq ;
/* element: "urn:iso:15118:2:2016:MsgBody":PairingReq, Complex type name='urn:iso:15118:2:2016:MsgBody,PairingReqType', base type name='BodyBaseType', content type='ELEMENT', isAbstract='false', hasTypeId='false', final='0', block='0', particle='("urn:iso:15118:2:2016:MsgBody":EVProcessing,"urn:iso:15118:2:2016:MsgBody":PairingParameters{0-1})', derivedBy='EXTENSION'. */
- struct v2gPairingReqType PairingReq ;
+ struct iso2PairingReqType PairingReq ;
/* element: "urn:iso:15118:2:2016:MsgBody":AlignmentCheckReq, Complex type name='urn:iso:15118:2:2016:MsgBody,AlignmentCheckReqType', base type name='BodyBaseType', content type='ELEMENT', isAbstract='false', hasTypeId='false', final='0', block='0', particle='("urn:iso:15118:2:2016:MsgBody":EVProcessing,"urn:iso:15118:2:2016:MsgBody":AlignmentCheckParameters{0-1})', derivedBy='EXTENSION'. */
- struct v2gAlignmentCheckReqType AlignmentCheckReq ;
+ struct iso2AlignmentCheckReqType AlignmentCheckReq ;
/* element: "urn:iso:15118:2:2016:MsgBody":FinePositioningReq, Complex type name='urn:iso:15118:2:2016:MsgBody,FinePositioningReqType', base type name='BodyBaseType', content type='ELEMENT', isAbstract='false', hasTypeId='false', final='0', block='0', particle='("urn:iso:15118:2:2016:MsgBody":EVProcessing,"urn:iso:15118:2:2016:MsgDataTypes":EVFinePositioningParameters{0-1})', derivedBy='EXTENSION'. */
- struct v2gFinePositioningReqType FinePositioningReq ;
+ struct iso2FinePositioningReqType FinePositioningReq ;
/* element: "urn:iso:15118:2:2016:MsgBody":FinePositioningSetupReq, Complex type name='urn:iso:15118:2:2016:MsgBody,FinePositioningSetupReqType', base type name='BodyBaseType', content type='ELEMENT', isAbstract='false', hasTypeId='false', final='0', block='0', particle='("urn:iso:15118:2:2016:MsgDataTypes":EVFinePositioningSetupParameters{0-1})', derivedBy='EXTENSION'. */
- struct v2gFinePositioningSetupReqType FinePositioningSetupReq ;
- /* element: "urn:iso:15118:2:2016:MsgBody":WeldingDetectionReq, Complex type name='urn:iso:15118:2:2016:MsgBody,BodyBaseType', base type name='anyType', content type='EMPTY', isAbstract='true', hasTypeId='false', final='0', block='0', derivedBy='RESTRICTION'. */
- struct v2gBodyBaseType WeldingDetectionReq ;
+ struct iso2FinePositioningSetupReqType FinePositioningSetupReq ;
+ /* element: "urn:iso:15118:2:2016:MsgBody":WeldingDetectionReq, Complex type name='urn:iso:15118:2:2016:MsgBody,WeldingDetectionReqType', base type name='BodyBaseType', content type='EMPTY', isAbstract='false', hasTypeId='false', final='0', block='0', derivedBy='EXTENSION'. */
+ struct iso2WeldingDetectionReqType WeldingDetectionReq ;
/* element: "urn:iso:15118:2:2016:MsgBody":CurrentDemandReq, Complex type name='urn:iso:15118:2:2016:MsgBody,CurrentDemandReqType', base type name='ChargeLoopReqType', content type='ELEMENT', isAbstract='false', hasTypeId='false', final='0', block='0', particle='(("urn:iso:15118:2:2016:MsgBody":EVTargetEnergyRequest,"urn:iso:15118:2:2016:MsgBody":EVMaximumEnergyRequest{0-1},"urn:iso:15118:2:2016:MsgBody":EVMinimumEnergyRequest{0-1},"urn:iso:15118:2:2016:MsgBody":DisplayParameters{0-1}),("urn:iso:15118:2:2016:MsgBody":EVTargetCurrent,"urn:iso:15118:2:2016:MsgBody":EVTargetVoltage,"urn:iso:15118:2:2016:MsgBody":EVMaximumCurrent{0-1},"urn:iso:15118:2:2016:MsgBody":EVMaximumPower{0-1},"urn:iso:15118:2:2016:MsgBody":EVMaximumVoltage{0-1}))', derivedBy='EXTENSION'. */
- struct v2gCurrentDemandReqType CurrentDemandReq ;
+ struct iso2CurrentDemandReqType CurrentDemandReq ;
/* element: "urn:iso:15118:2:2016:MsgBody":PreChargeReq, Complex type name='urn:iso:15118:2:2016:MsgBody,PreChargeReqType', base type name='BodyBaseType', content type='ELEMENT', isAbstract='false', hasTypeId='false', final='0', block='0', particle='("urn:iso:15118:2:2016:MsgBody":EVTargetVoltage,"urn:iso:15118:2:2016:MsgBody":EVTargetCurrent)', derivedBy='EXTENSION'. */
- struct v2gPreChargeReqType PreChargeReq ;
- /* element: "urn:iso:15118:2:2016:MsgBody":CableCheckReq, Complex type name='urn:iso:15118:2:2016:MsgBody,BodyBaseType', base type name='anyType', content type='EMPTY', isAbstract='true', hasTypeId='false', final='0', block='0', derivedBy='RESTRICTION'. */
- struct v2gBodyBaseType CableCheckReq ;
+ struct iso2PreChargeReqType PreChargeReq ;
+ /* element: "urn:iso:15118:2:2016:MsgBody":CableCheckReq, Complex type name='urn:iso:15118:2:2016:MsgBody,CableCheckReqType', base type name='BodyBaseType', content type='EMPTY', isAbstract='false', hasTypeId='false', final='0', block='0', derivedBy='EXTENSION'. */
+ struct iso2CableCheckReqType CableCheckReq ;
/* element: "urn:iso:15118:2:2016:MsgBody":ChargingStatusReq, Complex type name='urn:iso:15118:2:2016:MsgBody,ChargingStatusReqType', base type name='ChargeLoopReqType', content type='ELEMENT', isAbstract='false', hasTypeId='false', final='0', block='0', particle='(("urn:iso:15118:2:2016:MsgBody":EVTargetEnergyRequest,"urn:iso:15118:2:2016:MsgBody":EVMaximumEnergyRequest{0-1},"urn:iso:15118:2:2016:MsgBody":EVMinimumEnergyRequest{0-1},"urn:iso:15118:2:2016:MsgBody":DisplayParameters{0-1}),("urn:iso:15118:2:2016:MsgBody":EVMaximumChargePower{0-1},"urn:iso:15118:2:2016:MsgBody":EVMaximumChargeCurrent{0-1},"urn:iso:15118:2:2016:MsgBody":EVMinimumChargeCurrent{0-1}))', derivedBy='EXTENSION'. */
- struct v2gChargingStatusReqType ChargingStatusReq ;
+ struct iso2ChargingStatusReqType ChargingStatusReq ;
/* element: "urn:iso:15118:2:2016:MsgBody":CertificateInstallationReq, Complex type name='urn:iso:15118:2:2016:MsgBody,CertificateInstallationReqType', base type name='BodyBaseType', content type='ELEMENT', isAbstract='false', hasTypeId='false', final='0', block='0', particle='("urn:iso:15118:2:2016:MsgBody":OEMProvisioningCert,"urn:iso:15118:2:2016:MsgBody":ListOfRootCertificateIDs)', derivedBy='EXTENSION'. */
- struct v2gCertificateInstallationReqType CertificateInstallationReq ;
+ struct iso2CertificateInstallationReqType CertificateInstallationReq ;
/* element: "urn:iso:15118:2:2016:MsgBody":CertificateUpdateReq, Complex type name='urn:iso:15118:2:2016:MsgBody,CertificateUpdateReqType', base type name='BodyBaseType', content type='ELEMENT', isAbstract='false', hasTypeId='false', final='0', block='0', particle='("urn:iso:15118:2:2016:MsgBody":ContractSignatureCertChain,"urn:iso:15118:2:2016:MsgBody":eMAID,"urn:iso:15118:2:2016:MsgBody":ListOfRootCertificateIDs)', derivedBy='EXTENSION'. */
- struct v2gCertificateUpdateReqType CertificateUpdateReq ;
+ struct iso2CertificateUpdateReqType CertificateUpdateReq ;
/* element: "urn:iso:15118:2:2016:MsgBody":SessionStopReq, Complex type name='urn:iso:15118:2:2016:MsgBody,SessionStopReqType', base type name='BodyBaseType', content type='ELEMENT', isAbstract='false', hasTypeId='false', final='0', block='0', particle='("urn:iso:15118:2:2016:MsgBody":ChargingSession)', derivedBy='EXTENSION'. */
- struct v2gSessionStopReqType SessionStopReq ;
+ struct iso2SessionStopReqType SessionStopReq ;
/* element: "urn:iso:15118:2:2016:MsgBody":MeteringReceiptReq, Complex type name='urn:iso:15118:2:2016:MsgBody,MeteringReceiptReqType', base type name='BodyBaseType', content type='ELEMENT', isAbstract='false', hasTypeId='false', final='0', block='0', particle='("urn:iso:15118:2:2016:MsgBody":SessionID,"urn:iso:15118:2:2016:MsgBody":SAScheduleTupleID{0-1},"urn:iso:15118:2:2016:MsgBody":MeterInfo)', derivedBy='EXTENSION'. */
- struct v2gMeteringReceiptReqType MeteringReceiptReq ;
+ struct iso2MeteringReceiptReqType MeteringReceiptReq ;
/* element: "urn:iso:15118:2:2016:MsgBody":PowerDeliveryReq, Complex type name='urn:iso:15118:2:2016:MsgBody,PowerDeliveryReqType', base type name='BodyBaseType', content type='ELEMENT', isAbstract='false', hasTypeId='false', final='0', block='0', particle='("urn:iso:15118:2:2016:MsgBody":ChargeProgress,"urn:iso:15118:2:2016:MsgBody":EVOperation{0-1},"urn:iso:15118:2:2016:MsgBody":SAScheduleTupleID{0-1},"urn:iso:15118:2:2016:MsgBody":ChargingProfile{0-1})', derivedBy='EXTENSION'. */
- struct v2gPowerDeliveryReqType PowerDeliveryReq ;
+ struct iso2PowerDeliveryReqType PowerDeliveryReq ;
/* element: "urn:iso:15118:2:2016:MsgBody":ChargeParameterDiscoveryReq, Complex type name='urn:iso:15118:2:2016:MsgBody,ChargeParameterDiscoveryReqType', base type name='BodyBaseType', content type='ELEMENT', isAbstract='false', hasTypeId='false', final='0', block='0', particle='("urn:iso:15118:2:2016:MsgBody":MaxSupportingPoints{0-1},"urn:iso:15118:2:2016:MsgDataTypes":EVEnergyTransferParameter,"urn:iso:15118:2:2016:MsgBody":MinimumPMaxRequest{0-1})', derivedBy='EXTENSION'. */
- struct v2gChargeParameterDiscoveryReqType ChargeParameterDiscoveryReq ;
+ struct iso2ChargeParameterDiscoveryReqType ChargeParameterDiscoveryReq ;
/* element: "urn:iso:15118:2:2016:MsgBody":AuthorizationReq, Complex type name='urn:iso:15118:2:2016:MsgBody,AuthorizationReqType', base type name='BodyBaseType', content type='ELEMENT', isAbstract='false', hasTypeId='false', final='0', block='0', particle='("urn:iso:15118:2:2016:MsgBody":GenChallenge{0-1})', derivedBy='EXTENSION'. */
- struct v2gAuthorizationReqType AuthorizationReq ;
+ struct iso2AuthorizationReqType AuthorizationReq ;
/* element: "urn:iso:15118:2:2016:MsgBody":PaymentDetailsReq, Complex type name='urn:iso:15118:2:2016:MsgBody,PaymentDetailsReqType', base type name='BodyBaseType', content type='ELEMENT', isAbstract='false', hasTypeId='false', final='0', block='0', particle='("urn:iso:15118:2:2016:MsgBody":eMAID,"urn:iso:15118:2:2016:MsgBody":ContractSignatureCertChain)', derivedBy='EXTENSION'. */
- struct v2gPaymentDetailsReqType PaymentDetailsReq ;
+ struct iso2PaymentDetailsReqType PaymentDetailsReq ;
/* element: "urn:iso:15118:2:2016:MsgBody":PaymentServiceSelectionReq, Complex type name='urn:iso:15118:2:2016:MsgBody,PaymentServiceSelectionReqType', base type name='BodyBaseType', content type='ELEMENT', isAbstract='false', hasTypeId='false', final='0', block='0', particle='("urn:iso:15118:2:2016:MsgBody":SelectedPaymentOption,"urn:iso:15118:2:2016:MsgBody":SelectedEnergyTransferService,"urn:iso:15118:2:2016:MsgBody":SelectedVASList{0-1})', derivedBy='EXTENSION'. */
- struct v2gPaymentServiceSelectionReqType PaymentServiceSelectionReq ;
+ struct iso2PaymentServiceSelectionReqType PaymentServiceSelectionReq ;
/* element: "urn:iso:15118:2:2016:MsgBody":ServiceDetailReq, Complex type name='urn:iso:15118:2:2016:MsgBody,ServiceDetailReqType', base type name='BodyBaseType', content type='ELEMENT', isAbstract='false', hasTypeId='false', final='0', block='0', particle='("urn:iso:15118:2:2016:MsgBody":ServiceID)', derivedBy='EXTENSION'. */
- struct v2gServiceDetailReqType ServiceDetailReq ;
+ struct iso2ServiceDetailReqType ServiceDetailReq ;
/* element: "urn:iso:15118:2:2016:MsgBody":ServiceDiscoveryReq, Complex type name='urn:iso:15118:2:2016:MsgBody,ServiceDiscoveryReqType', base type name='BodyBaseType', content type='ELEMENT', isAbstract='false', hasTypeId='false', final='0', block='0', particle='("urn:iso:15118:2:2016:MsgBody":SupportedServiceIDs{0-1})', derivedBy='EXTENSION'. */
- struct v2gServiceDiscoveryReqType ServiceDiscoveryReq ;
+ struct iso2ServiceDiscoveryReqType ServiceDiscoveryReq ;
/* element: "urn:iso:15118:2:2016:MsgBody":SessionSetupReq, Complex type name='urn:iso:15118:2:2016:MsgBody,SessionSetupReqType', base type name='BodyBaseType', content type='ELEMENT', isAbstract='false', hasTypeId='false', final='0', block='0', particle='("urn:iso:15118:2:2016:MsgBody":EVCCID)', derivedBy='EXTENSION'. */
- struct v2gSessionSetupReqType SessionSetupReq ;
+ struct iso2SessionSetupReqType SessionSetupReq ;
/* element: "urn:iso:15118:2:2016:MsgBody":V2GResponse, Complex type name='urn:iso:15118:2:2016:MsgBody,V2GResponseType', base type name='BodyBaseType', content type='ELEMENT', isAbstract='true', hasTypeId='false', final='0', block='0', particle='("urn:iso:15118:2:2016:MsgBody":ResponseCode,"urn:iso:15118:2:2016:MsgBody":EVSEStatus{0-1})', derivedBy='EXTENSION'. */
- struct v2gV2GResponseType V2GResponse ;
+ struct iso2V2GResponseType V2GResponse ;
/* element: "urn:iso:15118:2:2016:MsgBody":DisconnectChargingDeviceRes, Complex type name='urn:iso:15118:2:2016:MsgBody,DisconnectChargingDeviceResType', base type name='V2GResponseType', content type='ELEMENT', isAbstract='false', hasTypeId='false', final='0', block='0', particle='(("urn:iso:15118:2:2016:MsgBody":ResponseCode,"urn:iso:15118:2:2016:MsgBody":EVSEStatus{0-1}),("urn:iso:15118:2:2016:MsgBody":EVSEProcessing,"urn:iso:15118:2:2016:MsgBody":EVSEElectricalChargingDeviceStatus,"urn:iso:15118:2:2016:MsgBody":EVSEMechanicalChargingDeviceStatus))', derivedBy='EXTENSION'. */
- struct v2gDisconnectChargingDeviceResType DisconnectChargingDeviceRes ;
+ struct iso2DisconnectChargingDeviceResType DisconnectChargingDeviceRes ;
/* element: "urn:iso:15118:2:2016:MsgBody":ConnectChargingDeviceRes, Complex type name='urn:iso:15118:2:2016:MsgBody,ConnectChargingDeviceResType', base type name='V2GResponseType', content type='ELEMENT', isAbstract='false', hasTypeId='false', final='0', block='0', particle='(("urn:iso:15118:2:2016:MsgBody":ResponseCode,"urn:iso:15118:2:2016:MsgBody":EVSEStatus{0-1}),("urn:iso:15118:2:2016:MsgBody":EVSEProcessing,"urn:iso:15118:2:2016:MsgBody":EVSEElectricalChargingDeviceStatus,"urn:iso:15118:2:2016:MsgBody":EVSEMechanicalChargingDeviceStatus))', derivedBy='EXTENSION'. */
- struct v2gConnectChargingDeviceResType ConnectChargingDeviceRes ;
+ struct iso2ConnectChargingDeviceResType ConnectChargingDeviceRes ;
/* element: "urn:iso:15118:2:2016:MsgBody":SystemStatusRes, Complex type name='urn:iso:15118:2:2016:MsgBody,SystemStatusResType', base type name='V2GResponseType', content type='ELEMENT', isAbstract='false', hasTypeId='false', final='0', block='0', particle='(("urn:iso:15118:2:2016:MsgBody":ResponseCode,"urn:iso:15118:2:2016:MsgBody":EVSEStatus{0-1}),("urn:iso:15118:2:2016:MsgBody":OperationMode,"urn:iso:15118:2:2016:MsgBody":EVSEMechanicalChargingDeviceStatus))', derivedBy='EXTENSION'. */
- struct v2gSystemStatusResType SystemStatusRes ;
+ struct iso2SystemStatusResType SystemStatusRes ;
/* element: "urn:iso:15118:2:2016:MsgBody":DC_BidirectionalControlRes, Complex type name='urn:iso:15118:2:2016:MsgBody,DC_BidirectionalControlResType', base type name='V2GResponseType', content type='ELEMENT', isAbstract='false', hasTypeId='false', final='0', block='0', particle='(("urn:iso:15118:2:2016:MsgBody":ResponseCode,"urn:iso:15118:2:2016:MsgBody":EVSEStatus{0-1}),("urn:iso:15118:2:2016:MsgBody":EVSEPresentCurrent,"urn:iso:15118:2:2016:MsgBody":EVSEPresentVoltage,"urn:iso:15118:2:2016:MsgBody":EVSEPowerLimitAchieved,"urn:iso:15118:2:2016:MsgBody":EVSECurrentLimitAchieved,"urn:iso:15118:2:2016:MsgBody":EVSEVoltageLimitAchieved,"urn:iso:15118:2:2016:MsgBody":EVSEMaximumChargePower{0-1},"urn:iso:15118:2:2016:MsgBody":EVSEMaximumDischargePower{0-1},"urn:iso:15118:2:2016:MsgBody":EVSEMaximumChargeCurrent{0-1},"urn:iso:15118:2:2016:MsgBody":EVSEMaximumDischargeCurrent{0-1},"urn:iso:15118:2:2016:MsgBody":EVSEMaximumVoltage{0-1},"urn:iso:15118:2:2016:MsgBody":EVSEMinimumVoltage{0-1},"urn:iso:15118:2:2016:MsgBody":EVSEID,"urn:iso:15118:2:2016:MsgBody":SAScheduleTupleID{0-1},"urn:iso:15118:2:2016:MsgBody":MeterInfo{0-1},"urn:iso:15118:2:2016:MsgBody":ReceiptRequired{0-1}))', derivedBy='EXTENSION'. */
- struct v2gDC_BidirectionalControlResType DC_BidirectionalControlRes ;
+ struct iso2DC_BidirectionalControlResType DC_BidirectionalControlRes ;
/* element: "urn:iso:15118:2:2016:MsgBody":AC_BidirectionalControlRes, Complex type name='urn:iso:15118:2:2016:MsgBody,AC_BidirectionalControlResType', base type name='V2GResponseType', content type='ELEMENT', isAbstract='false', hasTypeId='false', final='0', block='0', particle='(("urn:iso:15118:2:2016:MsgBody":ResponseCode,"urn:iso:15118:2:2016:MsgBody":EVSEStatus{0-1}),("urn:iso:15118:2:2016:MsgBody":EVSEProcessing,"urn:iso:15118:2:2016:MsgBody":EVSETargetPower,"urn:iso:15118:2:2016:MsgBody":EVSETargetReactivePower,"urn:iso:15118:2:2016:MsgBody":EVSEID,"urn:iso:15118:2:2016:MsgBody":SAScheduleTupleID{0-1},"urn:iso:15118:2:2016:MsgBody":MeterInfo{0-1},"urn:iso:15118:2:2016:MsgBody":ReceiptRequired{0-1}))', derivedBy='EXTENSION'. */
- struct v2gAC_BidirectionalControlResType AC_BidirectionalControlRes ;
+ struct iso2AC_BidirectionalControlResType AC_BidirectionalControlRes ;
/* element: "urn:iso:15118:2:2016:MsgBody":VehicleCheckOutRes, Complex type name='urn:iso:15118:2:2016:MsgBody,VehicleCheckOutResType', base type name='V2GResponseType', content type='ELEMENT', isAbstract='false', hasTypeId='false', final='0', block='0', particle='(("urn:iso:15118:2:2016:MsgBody":ResponseCode,"urn:iso:15118:2:2016:MsgBody":EVSEStatus{0-1}),("urn:iso:15118:2:2016:MsgBody":EVSECheckOutStatus))', derivedBy='EXTENSION'. */
- struct v2gVehicleCheckOutResType VehicleCheckOutRes ;
+ struct iso2VehicleCheckOutResType VehicleCheckOutRes ;
/* element: "urn:iso:15118:2:2016:MsgBody":VehicleCheckInRes, Complex type name='urn:iso:15118:2:2016:MsgBody,VehicleCheckInResType', base type name='V2GResponseType', content type='ELEMENT', isAbstract='false', hasTypeId='false', final='0', block='0', particle='(("urn:iso:15118:2:2016:MsgBody":ResponseCode,"urn:iso:15118:2:2016:MsgBody":EVSEStatus{0-1}),("urn:iso:15118:2:2016:MsgBody":VehicleSpace,"urn:iso:15118:2:2016:MsgBody":TargetOffset{0-1}))', derivedBy='EXTENSION'. */
- struct v2gVehicleCheckInResType VehicleCheckInRes ;
+ struct iso2VehicleCheckInResType VehicleCheckInRes ;
/* element: "urn:iso:15118:2:2016:MsgBody":PowerDemandRes, Complex type name='urn:iso:15118:2:2016:MsgBody,PowerDemandResType', base type name='V2GResponseType', content type='ELEMENT', isAbstract='false', hasTypeId='false', final='0', block='0', particle='(("urn:iso:15118:2:2016:MsgBody":ResponseCode,"urn:iso:15118:2:2016:MsgBody":EVSEStatus{0-1}),("urn:iso:15118:2:2016:MsgBody":EVSEOutputPower,"urn:iso:15118:2:2016:MsgBody":EVSEID,"urn:iso:15118:2:2016:MsgBody":SAScheduleTupleID{0-1},"urn:iso:15118:2:2016:MsgBody":MeterInfo{0-1},"urn:iso:15118:2:2016:MsgBody":ReceiptRequired{0-1},"urn:iso:15118:2:2016:MsgBody":PowerDemandParameters{0-1}))', derivedBy='EXTENSION'. */
- struct v2gPowerDemandResType PowerDemandRes ;
+ struct iso2PowerDemandResType PowerDemandRes ;
/* element: "urn:iso:15118:2:2016:MsgBody":PairingRes, Complex type name='urn:iso:15118:2:2016:MsgBody,PairingResType', base type name='V2GResponseType', content type='ELEMENT', isAbstract='false', hasTypeId='false', final='0', block='0', particle='(("urn:iso:15118:2:2016:MsgBody":ResponseCode,"urn:iso:15118:2:2016:MsgBody":EVSEStatus{0-1}),("urn:iso:15118:2:2016:MsgBody":EVSEProcessing,"urn:iso:15118:2:2016:MsgBody":PairingParameters{0-1}))', derivedBy='EXTENSION'. */
- struct v2gPairingResType PairingRes ;
+ struct iso2PairingResType PairingRes ;
/* element: "urn:iso:15118:2:2016:MsgBody":AlignmentCheckRes, Complex type name='urn:iso:15118:2:2016:MsgBody,AlignmentCheckResType', base type name='V2GResponseType', content type='ELEMENT', isAbstract='false', hasTypeId='false', final='0', block='0', particle='(("urn:iso:15118:2:2016:MsgBody":ResponseCode,"urn:iso:15118:2:2016:MsgBody":EVSEStatus{0-1}),("urn:iso:15118:2:2016:MsgBody":EVSEProcessing,"urn:iso:15118:2:2016:MsgBody":AlignmentCheckParameters{0-1}))', derivedBy='EXTENSION'. */
- struct v2gAlignmentCheckResType AlignmentCheckRes ;
+ struct iso2AlignmentCheckResType AlignmentCheckRes ;
/* element: "urn:iso:15118:2:2016:MsgBody":FinePositioningRes, Complex type name='urn:iso:15118:2:2016:MsgBody,FinePositioningResType', base type name='V2GResponseType', content type='ELEMENT', isAbstract='false', hasTypeId='false', final='0', block='0', particle='(("urn:iso:15118:2:2016:MsgBody":ResponseCode,"urn:iso:15118:2:2016:MsgBody":EVSEStatus{0-1}),("urn:iso:15118:2:2016:MsgBody":EVSEProcessing,"urn:iso:15118:2:2016:MsgDataTypes":EVSEFinePositioningParameters{0-1}))', derivedBy='EXTENSION'. */
- struct v2gFinePositioningResType FinePositioningRes ;
+ struct iso2FinePositioningResType FinePositioningRes ;
/* element: "urn:iso:15118:2:2016:MsgBody":FinePositioningSetupRes, Complex type name='urn:iso:15118:2:2016:MsgBody,FinePositioningSetupResType', base type name='V2GResponseType', content type='ELEMENT', isAbstract='false', hasTypeId='false', final='0', block='0', particle='(("urn:iso:15118:2:2016:MsgBody":ResponseCode,"urn:iso:15118:2:2016:MsgBody":EVSEStatus{0-1}),("urn:iso:15118:2:2016:MsgDataTypes":EVSEFinePositioningSetupParameters{0-1}))', derivedBy='EXTENSION'. */
- struct v2gFinePositioningSetupResType FinePositioningSetupRes ;
+ struct iso2FinePositioningSetupResType FinePositioningSetupRes ;
/* element: "urn:iso:15118:2:2016:MsgBody":WeldingDetectionRes, Complex type name='urn:iso:15118:2:2016:MsgBody,WeldingDetectionResType', base type name='V2GResponseType', content type='ELEMENT', isAbstract='false', hasTypeId='false', final='0', block='0', particle='(("urn:iso:15118:2:2016:MsgBody":ResponseCode,"urn:iso:15118:2:2016:MsgBody":EVSEStatus{0-1}),("urn:iso:15118:2:2016:MsgBody":EVSEPresentVoltage))', derivedBy='EXTENSION'. */
- struct v2gWeldingDetectionResType WeldingDetectionRes ;
+ struct iso2WeldingDetectionResType WeldingDetectionRes ;
/* element: "urn:iso:15118:2:2016:MsgBody":CurrentDemandRes, Complex type name='urn:iso:15118:2:2016:MsgBody,CurrentDemandResType', base type name='V2GResponseType', content type='ELEMENT', isAbstract='false', hasTypeId='false', final='0', block='0', particle='(("urn:iso:15118:2:2016:MsgBody":ResponseCode,"urn:iso:15118:2:2016:MsgBody":EVSEStatus{0-1}),("urn:iso:15118:2:2016:MsgBody":EVSEPresentCurrent,"urn:iso:15118:2:2016:MsgBody":EVSEPresentVoltage,"urn:iso:15118:2:2016:MsgBody":EVSEPowerLimitAchieved,"urn:iso:15118:2:2016:MsgBody":EVSECurrentLimitAchieved,"urn:iso:15118:2:2016:MsgBody":EVSEVoltageLimitAchieved,"urn:iso:15118:2:2016:MsgBody":EVSEMaximumPower{0-1},"urn:iso:15118:2:2016:MsgBody":EVSEMaximumCurrent{0-1},"urn:iso:15118:2:2016:MsgBody":EVSEMaximumVoltage{0-1},"urn:iso:15118:2:2016:MsgBody":EVSEID,"urn:iso:15118:2:2016:MsgBody":SAScheduleTupleID{0-1},"urn:iso:15118:2:2016:MsgBody":MeterInfo{0-1},"urn:iso:15118:2:2016:MsgBody":ReceiptRequired{0-1}))', derivedBy='EXTENSION'. */
- struct v2gCurrentDemandResType CurrentDemandRes ;
+ struct iso2CurrentDemandResType CurrentDemandRes ;
/* element: "urn:iso:15118:2:2016:MsgBody":PreChargeRes, Complex type name='urn:iso:15118:2:2016:MsgBody,PreChargeResType', base type name='V2GResponseType', content type='ELEMENT', isAbstract='false', hasTypeId='false', final='0', block='0', particle='(("urn:iso:15118:2:2016:MsgBody":ResponseCode,"urn:iso:15118:2:2016:MsgBody":EVSEStatus{0-1}),("urn:iso:15118:2:2016:MsgBody":EVSEPresentVoltage))', derivedBy='EXTENSION'. */
- struct v2gPreChargeResType PreChargeRes ;
+ struct iso2PreChargeResType PreChargeRes ;
/* element: "urn:iso:15118:2:2016:MsgBody":CableCheckRes, Complex type name='urn:iso:15118:2:2016:MsgBody,CableCheckResType', base type name='V2GResponseType', content type='ELEMENT', isAbstract='false', hasTypeId='false', final='0', block='0', particle='(("urn:iso:15118:2:2016:MsgBody":ResponseCode,"urn:iso:15118:2:2016:MsgBody":EVSEStatus{0-1}),("urn:iso:15118:2:2016:MsgBody":EVSEProcessing))', derivedBy='EXTENSION'. */
- struct v2gCableCheckResType CableCheckRes ;
+ struct iso2CableCheckResType CableCheckRes ;
/* element: "urn:iso:15118:2:2016:MsgBody":ChargingStatusRes, Complex type name='urn:iso:15118:2:2016:MsgBody,ChargingStatusResType', base type name='V2GResponseType', content type='ELEMENT', isAbstract='false', hasTypeId='false', final='0', block='0', particle='(("urn:iso:15118:2:2016:MsgBody":ResponseCode,"urn:iso:15118:2:2016:MsgBody":EVSEStatus{0-1}),("urn:iso:15118:2:2016:MsgBody":EVSEID,"urn:iso:15118:2:2016:MsgBody":SAScheduleTupleID{0-1},"urn:iso:15118:2:2016:MsgBody":MeterInfo{0-1},"urn:iso:15118:2:2016:MsgBody":ReceiptRequired{0-1},"urn:iso:15118:2:2016:MsgBody":EVSETargetPower{0-1}))', derivedBy='EXTENSION'. */
- struct v2gChargingStatusResType ChargingStatusRes ;
+ struct iso2ChargingStatusResType ChargingStatusRes ;
/* element: "urn:iso:15118:2:2016:MsgBody":CertificateInstallationRes, Complex type name='urn:iso:15118:2:2016:MsgBody,CertificateInstallationResType', base type name='V2GResponseType', content type='ELEMENT', isAbstract='false', hasTypeId='false', final='0', block='0', particle='(("urn:iso:15118:2:2016:MsgBody":ResponseCode,"urn:iso:15118:2:2016:MsgBody":EVSEStatus{0-1}),("urn:iso:15118:2:2016:MsgBody":SAProvisioningCertificateChain,"urn:iso:15118:2:2016:MsgBody":ContractSignatureCertChain,"urn:iso:15118:2:2016:MsgBody":ContractSignatureEncryptedPrivateKey,"urn:iso:15118:2:2016:MsgBody":DHpublickey,"urn:iso:15118:2:2016:MsgBody":eMAID))', derivedBy='EXTENSION'. */
- struct v2gCertificateInstallationResType CertificateInstallationRes ;
+ struct iso2CertificateInstallationResType CertificateInstallationRes ;
/* element: "urn:iso:15118:2:2016:MsgBody":CertificateUpdateRes, Complex type name='urn:iso:15118:2:2016:MsgBody,CertificateUpdateResType', base type name='V2GResponseType', content type='ELEMENT', isAbstract='false', hasTypeId='false', final='0', block='0', particle='(("urn:iso:15118:2:2016:MsgBody":ResponseCode,"urn:iso:15118:2:2016:MsgBody":EVSEStatus{0-1}),("urn:iso:15118:2:2016:MsgBody":SAProvisioningCertificateChain,"urn:iso:15118:2:2016:MsgBody":ContractSignatureCertChain,"urn:iso:15118:2:2016:MsgBody":ContractSignatureEncryptedPrivateKey,"urn:iso:15118:2:2016:MsgBody":DHpublickey,"urn:iso:15118:2:2016:MsgBody":eMAID,"urn:iso:15118:2:2016:MsgBody":RetryCounter{0-1}))', derivedBy='EXTENSION'. */
- struct v2gCertificateUpdateResType CertificateUpdateRes ;
- /* element: "urn:iso:15118:2:2016:MsgBody":SessionStopRes, Complex type name='urn:iso:15118:2:2016:MsgBody,V2GResponseType', base type name='BodyBaseType', content type='ELEMENT', isAbstract='true', hasTypeId='false', final='0', block='0', particle='("urn:iso:15118:2:2016:MsgBody":ResponseCode,"urn:iso:15118:2:2016:MsgBody":EVSEStatus{0-1})', derivedBy='EXTENSION'. */
- struct v2gV2GResponseType SessionStopRes ;
- /* element: "urn:iso:15118:2:2016:MsgBody":MeteringReceiptRes, Complex type name='urn:iso:15118:2:2016:MsgBody,V2GResponseType', base type name='BodyBaseType', content type='ELEMENT', isAbstract='true', hasTypeId='false', final='0', block='0', particle='("urn:iso:15118:2:2016:MsgBody":ResponseCode,"urn:iso:15118:2:2016:MsgBody":EVSEStatus{0-1})', derivedBy='EXTENSION'. */
- struct v2gV2GResponseType MeteringReceiptRes ;
+ struct iso2CertificateUpdateResType CertificateUpdateRes ;
+ /* element: "urn:iso:15118:2:2016:MsgBody":SessionStopRes, Complex type name='urn:iso:15118:2:2016:MsgBody,SessionStopResType', base type name='V2GResponseType', content type='ELEMENT', isAbstract='false', hasTypeId='false', final='0', block='0', particle='("urn:iso:15118:2:2016:MsgBody":ResponseCode,"urn:iso:15118:2:2016:MsgBody":EVSEStatus{0-1})', derivedBy='EXTENSION'. */
+ struct iso2SessionStopResType SessionStopRes ;
+ /* element: "urn:iso:15118:2:2016:MsgBody":MeteringReceiptRes, Complex type name='urn:iso:15118:2:2016:MsgBody,MeteringReceiptResType', base type name='V2GResponseType', content type='ELEMENT', isAbstract='false', hasTypeId='false', final='0', block='0', particle='("urn:iso:15118:2:2016:MsgBody":ResponseCode,"urn:iso:15118:2:2016:MsgBody":EVSEStatus{0-1})', derivedBy='EXTENSION'. */
+ struct iso2MeteringReceiptResType MeteringReceiptRes ;
/* element: "urn:iso:15118:2:2016:MsgBody":PowerDeliveryRes, Complex type name='urn:iso:15118:2:2016:MsgBody,PowerDeliveryResType', base type name='V2GResponseType', content type='ELEMENT', isAbstract='false', hasTypeId='false', final='0', block='0', particle='(("urn:iso:15118:2:2016:MsgBody":ResponseCode,"urn:iso:15118:2:2016:MsgBody":EVSEStatus{0-1}),("urn:iso:15118:2:2016:MsgBody":EVSEProcessing))', derivedBy='EXTENSION'. */
- struct v2gPowerDeliveryResType PowerDeliveryRes ;
+ struct iso2PowerDeliveryResType PowerDeliveryRes ;
/* element: "urn:iso:15118:2:2016:MsgBody":ChargeParameterDiscoveryRes, Complex type name='urn:iso:15118:2:2016:MsgBody,ChargeParameterDiscoveryResType', base type name='V2GResponseType', content type='ELEMENT', isAbstract='false', hasTypeId='false', final='0', block='0', particle='(("urn:iso:15118:2:2016:MsgBody":ResponseCode,"urn:iso:15118:2:2016:MsgBody":EVSEStatus{0-1}),("urn:iso:15118:2:2016:MsgBody":EVSEProcessing,"urn:iso:15118:2:2016:MsgBody":SAScheduleList{0-1},"urn:iso:15118:2:2016:MsgDataTypes":EVSEEnergyTransferParameter))', derivedBy='EXTENSION'. */
- struct v2gChargeParameterDiscoveryResType ChargeParameterDiscoveryRes ;
+ struct iso2ChargeParameterDiscoveryResType ChargeParameterDiscoveryRes ;
/* element: "urn:iso:15118:2:2016:MsgBody":AuthorizationRes, Complex type name='urn:iso:15118:2:2016:MsgBody,AuthorizationResType', base type name='V2GResponseType', content type='ELEMENT', isAbstract='false', hasTypeId='false', final='0', block='0', particle='(("urn:iso:15118:2:2016:MsgBody":ResponseCode,"urn:iso:15118:2:2016:MsgBody":EVSEStatus{0-1}),("urn:iso:15118:2:2016:MsgBody":EVSEProcessing))', derivedBy='EXTENSION'. */
- struct v2gAuthorizationResType AuthorizationRes ;
+ struct iso2AuthorizationResType AuthorizationRes ;
/* element: "urn:iso:15118:2:2016:MsgBody":PaymentDetailsRes, Complex type name='urn:iso:15118:2:2016:MsgBody,PaymentDetailsResType', base type name='V2GResponseType', content type='ELEMENT', isAbstract='false', hasTypeId='false', final='0', block='0', particle='(("urn:iso:15118:2:2016:MsgBody":ResponseCode,"urn:iso:15118:2:2016:MsgBody":EVSEStatus{0-1}),("urn:iso:15118:2:2016:MsgBody":GenChallenge,"urn:iso:15118:2:2016:MsgBody":EVSETimeStamp))', derivedBy='EXTENSION'. */
- struct v2gPaymentDetailsResType PaymentDetailsRes ;
- /* element: "urn:iso:15118:2:2016:MsgBody":PaymentServiceSelectionRes, Complex type name='urn:iso:15118:2:2016:MsgBody,V2GResponseType', base type name='BodyBaseType', content type='ELEMENT', isAbstract='true', hasTypeId='false', final='0', block='0', particle='("urn:iso:15118:2:2016:MsgBody":ResponseCode,"urn:iso:15118:2:2016:MsgBody":EVSEStatus{0-1})', derivedBy='EXTENSION'. */
- struct v2gV2GResponseType PaymentServiceSelectionRes ;
+ struct iso2PaymentDetailsResType PaymentDetailsRes ;
+ /* element: "urn:iso:15118:2:2016:MsgBody":PaymentServiceSelectionRes, Complex type name='urn:iso:15118:2:2016:MsgBody,PaymentServiceSelectionResType', base type name='V2GResponseType', content type='ELEMENT', isAbstract='false', hasTypeId='false', final='0', block='0', particle='("urn:iso:15118:2:2016:MsgBody":ResponseCode,"urn:iso:15118:2:2016:MsgBody":EVSEStatus{0-1})', derivedBy='EXTENSION'. */
+ struct iso2PaymentServiceSelectionResType PaymentServiceSelectionRes ;
/* element: "urn:iso:15118:2:2016:MsgBody":ServiceDetailRes, Complex type name='urn:iso:15118:2:2016:MsgBody,ServiceDetailResType', base type name='V2GResponseType', content type='ELEMENT', isAbstract='false', hasTypeId='false', final='0', block='0', particle='(("urn:iso:15118:2:2016:MsgBody":ResponseCode,"urn:iso:15118:2:2016:MsgBody":EVSEStatus{0-1}),("urn:iso:15118:2:2016:MsgBody":ServiceID,"urn:iso:15118:2:2016:MsgBody":ServiceParameterList{0-1}))', derivedBy='EXTENSION'. */
- struct v2gServiceDetailResType ServiceDetailRes ;
+ struct iso2ServiceDetailResType ServiceDetailRes ;
/* element: "urn:iso:15118:2:2016:MsgBody":ServiceDiscoveryRes, Complex type name='urn:iso:15118:2:2016:MsgBody,ServiceDiscoveryResType', base type name='V2GResponseType', content type='ELEMENT', isAbstract='false', hasTypeId='false', final='0', block='0', particle='(("urn:iso:15118:2:2016:MsgBody":ResponseCode,"urn:iso:15118:2:2016:MsgBody":EVSEStatus{0-1}),("urn:iso:15118:2:2016:MsgBody":PaymentOptionList,"urn:iso:15118:2:2016:MsgBody":EnergyTransferServiceList,"urn:iso:15118:2:2016:MsgBody":VASList{0-1}))', derivedBy='EXTENSION'. */
- struct v2gServiceDiscoveryResType ServiceDiscoveryRes ;
+ struct iso2ServiceDiscoveryResType ServiceDiscoveryRes ;
/* element: "urn:iso:15118:2:2016:MsgBody":SessionSetupRes, Complex type name='urn:iso:15118:2:2016:MsgBody,SessionSetupResType', base type name='V2GResponseType', content type='ELEMENT', isAbstract='false', hasTypeId='false', final='0', block='0', particle='(("urn:iso:15118:2:2016:MsgBody":ResponseCode,"urn:iso:15118:2:2016:MsgBody":EVSEStatus{0-1}),("urn:iso:15118:2:2016:MsgBody":EVSEID,"urn:iso:15118:2:2016:MsgBody":EVSETimeStamp{0-1}))', derivedBy='EXTENSION'. */
- struct v2gSessionSetupResType SessionSetupRes ;
- /* element: "urn:iso:15118:2:2016:MsgBody":ErrorInformation, Complex type name='urn:iso:15118:2:2016:MsgBody,BodyBaseType', base type name='anyType', content type='EMPTY', isAbstract='true', hasTypeId='false', final='0', block='0', derivedBy='RESTRICTION'. */
- struct v2gBodyBaseType ErrorInformation ;
- /* element: "urn:iso:15118:2:2016:MsgBody":EVSEErrorInformation, Complex type name='urn:iso:15118:2:2016:MsgBody,EVSEErrorInformationType', base type name='BodyBaseType', content type='ELEMENT', isAbstract='false', hasTypeId='false', final='0', block='0', particle='("urn:iso:15118:2:2016:MsgBody":ErrorCode)', derivedBy='EXTENSION'. */
- struct v2gEVSEErrorInformationType EVSEErrorInformation ;
- /* element: "urn:iso:15118:2:2016:MsgBody":EVErrorInformation, Complex type name='urn:iso:15118:2:2016:MsgBody,EVErrorInformationType', base type name='BodyBaseType', content type='ELEMENT', isAbstract='false', hasTypeId='false', final='0', block='0', particle='("urn:iso:15118:2:2016:MsgBody":ErrorCode)', derivedBy='EXTENSION'. */
- struct v2gEVErrorInformationType EVErrorInformation ;
+ struct iso2SessionSetupResType SessionSetupRes ;
#if SAVE_MEMORY_WITH_UNNAMED_UNION == UNION_YES
};
#endif /* SAVE_MEMORY_WITH_UNNAMED_UNION == UNION_YES */
@@ -2891,41 +2918,38 @@ struct v2gBodyType {
unsigned int ServiceDetailRes_isUsed:1;
unsigned int ServiceDiscoveryRes_isUsed:1;
unsigned int SessionSetupRes_isUsed:1;
- unsigned int ErrorInformation_isUsed:1;
- unsigned int EVSEErrorInformation_isUsed:1;
- unsigned int EVErrorInformation_isUsed:1;
};
/* Complex type name='urn:iso:15118:2:2016:MsgDef,#AnonType_V2G_Message', base type name='anyType', content type='ELEMENT', isAbstract='false', hasTypeId='false', final='0', block='0', particle='("urn:iso:15118:2:2016:MsgDef":Header,"urn:iso:15118:2:2016:MsgDef":Body)', derivedBy='RESTRICTION'. */
-struct v2gAnonType_V2G_Message {
+struct iso2AnonType_V2G_Message {
/* element: "urn:iso:15118:2:2016:MsgDef":Header, Complex type name='urn:iso:15118:2:2016:MsgHeader,MessageHeaderType', base type name='anyType', content type='ELEMENT', isAbstract='false', hasTypeId='false', final='0', block='0', particle='("urn:iso:15118:2:2016:MsgHeader":SessionID,"http://www.w3.org/2000/09/xmldsig#":Signature{0-1})', derivedBy='RESTRICTION'. */
- struct v2gMessageHeaderType Header ;
+ struct iso2MessageHeaderType Header ;
/* element: "urn:iso:15118:2:2016:MsgDef":Body, Complex type name='urn:iso:15118:2:2016:MsgBody,BodyType', base type name='anyType', content type='ELEMENT', isAbstract='false', hasTypeId='false', final='0', block='0', particle='("urn:iso:15118:2:2016:MsgBody":BodyElement)', derivedBy='RESTRICTION'. */
- struct v2gBodyType Body ;
+ struct iso2BodyType Body ;
};
-#define EXIDocument_MgmtData_CHARACTERS_SIZE 50
-#define EXIDocument_KeyName_CHARACTERS_SIZE 50
+#define EXIDocument_MgmtData_CHARACTERS_SIZE 50 + EXTRA_CHAR
+#define EXIDocument_KeyName_CHARACTERS_SIZE 50 + EXTRA_CHAR
#define EXIDocument_DigestValue_BYTES_SIZE 350
-#define EXIFragment_stringValue_CHARACTERS_SIZE 50
+#define EXIFragment_stringValue_CHARACTERS_SIZE 50 + EXTRA_CHAR
#define EXIFragment_PgenCounter_BYTES_SIZE 350
-#define EXIFragment_SalesTariffDescription_CHARACTERS_SIZE 32 /* XML schema facet maxLength for urn:iso:15118:2:2016:MsgDataTypes,tariffDescriptionType is 32 */
+#define EXIFragment_SalesTariffDescription_CHARACTERS_SIZE 32 + EXTRA_CHAR /* XML schema facet maxLength for urn:iso:15118:2:2016:MsgDataTypes,tariffDescriptionType is 32 */
#define EXIFragment_SessionID_BYTES_SIZE 8 /* XML schema facet maxLength for urn:iso:15118:2:2016:MsgDataTypes,sessionIDType is 8 */
-#define EXIFragment_XPath_CHARACTERS_SIZE 50
-#define EXIFragment_MgmtData_CHARACTERS_SIZE 50
+#define EXIFragment_XPath_CHARACTERS_SIZE 50 + EXTRA_CHAR
+#define EXIFragment_MgmtData_CHARACTERS_SIZE 50 + EXTRA_CHAR
#define EXIFragment_OEMProvisioningCert_BYTES_SIZE 800 /* XML schema facet maxLength for urn:iso:15118:2:2016:MsgDataTypes,certificateType is 800 */
#define EXIFragment_P_BYTES_SIZE 350
#define EXIFragment_Q_BYTES_SIZE 350
-#define EXIFragment_X509SubjectName_CHARACTERS_SIZE 50
+#define EXIFragment_X509SubjectName_CHARACTERS_SIZE 50 + EXTRA_CHAR
#define EXIFragment_G_BYTES_SIZE 350
#define EXIFragment_J_BYTES_SIZE 350
#define EXIFragment_Y_BYTES_SIZE 350
#define EXIFragment_DigestValue_BYTES_SIZE 350
#define EXIFragment_EVCCID_BYTES_SIZE 6 /* XML schema facet maxLength for urn:iso:15118:2:2016:MsgDataTypes,evccIDType is 6 */
#define EXIFragment_PGPKeyID_BYTES_SIZE 350
-#define EXIFragment_KeyName_CHARACTERS_SIZE 50
+#define EXIFragment_KeyName_CHARACTERS_SIZE 50 + EXTRA_CHAR
#define EXIFragment_X509SKI_BYTES_SIZE 350
#define EXIFragment_Certificate_BYTES_SIZE 800 /* XML schema facet maxLength for urn:iso:15118:2:2016:MsgDataTypes,certificateType is 800 */
#define EXIFragment_Modulus_BYTES_SIZE 350
@@ -2933,137 +2957,134 @@ struct v2gAnonType_V2G_Message {
#define EXIFragment_Exponent_BYTES_SIZE 350
#define EXIFragment_PGPKeyPacket_BYTES_SIZE 350
#define EXIFragment_Seed_BYTES_SIZE 350
-#define EXIFragment_MeterID_CHARACTERS_SIZE 32 /* XML schema facet maxLength for urn:iso:15118:2:2016:MsgDataTypes,meterIDType is 32 */
+#define EXIFragment_MeterID_CHARACTERS_SIZE 32 + EXTRA_CHAR /* XML schema facet maxLength for urn:iso:15118:2:2016:MsgDataTypes,meterIDType is 32 */
#define EXIFragment_X509CRL_BYTES_SIZE 350
#define EXIFragment_SPKISexp_BYTES_SIZE 350
#define EXIFragment_X509Certificate_BYTES_SIZE 350
-#define EXIFragment_EVSEID_CHARACTERS_SIZE 37 /* XML schema facet maxLength for urn:iso:15118:2:2016:MsgDataTypes,evseIDType is 37 */
+#define EXIFragment_EVSEID_CHARACTERS_SIZE 37 + EXTRA_CHAR /* XML schema facet maxLength for urn:iso:15118:2:2016:MsgDataTypes,evseIDType is 37 */
#define EXIFragment_GenChallenge_BYTES_SIZE 16 /* XML schema facet length for urn:iso:15118:2:2016:MsgDataTypes,genChallengeType is 16 */
-#define EXIFragment_GAID_CHARACTERS_SIZE 50
-#define EXIFragment_X509IssuerName_CHARACTERS_SIZE 50
+#define EXIFragment_GAID_CHARACTERS_SIZE 50 + EXTRA_CHAR
+#define EXIFragment_X509IssuerName_CHARACTERS_SIZE 50 + EXTRA_CHAR
/* Global elements of EXI Document */
-struct v2gEXIDocument {
+struct iso2EXIDocument {
#if SAVE_MEMORY_WITH_UNNAMED_UNION == UNION_YES
union {
#endif /* SAVE_MEMORY_WITH_UNNAMED_UNION == UNION_YES */
- struct v2gAnonType_V2G_Message V2G_Message ;
- struct v2gServiceDiscoveryReqType ServiceDiscoveryReq ;
- struct v2gServiceDiscoveryResType ServiceDiscoveryRes ;
- struct v2gFinePositioningReqType FinePositioningReq ;
- struct v2gFinePositioningResType FinePositioningRes ;
- struct v2gDisconnectChargingDeviceReqType DisconnectChargingDeviceReq ;
- struct v2gDisconnectChargingDeviceResType DisconnectChargingDeviceRes ;
- struct v2gPowerDemandReqType PowerDemandReq ;
- struct v2gMeteringReceiptReqType MeteringReceiptReq ;
- struct v2gPaymentDetailsReqType PaymentDetailsReq ;
- struct v2gPowerDemandResType PowerDemandRes ;
- struct v2gV2GResponseType MeteringReceiptRes ;
- struct v2gPaymentDetailsResType PaymentDetailsRes ;
- struct v2gSessionSetupReqType SessionSetupReq ;
- struct v2gSessionSetupResType SessionSetupRes ;
- struct v2gBodyBaseType CableCheckReq ;
- struct v2gCableCheckResType CableCheckRes ;
- struct v2gCertificateInstallationReqType CertificateInstallationReq ;
- struct v2gCertificateInstallationResType CertificateInstallationRes ;
- struct v2gSystemStatusReqType SystemStatusReq ;
- struct v2gSystemStatusResType SystemStatusRes ;
- struct v2gPairingReqType PairingReq ;
- struct v2gBodyBaseType WeldingDetectionReq ;
- struct v2gConnectChargingDeviceReqType ConnectChargingDeviceReq ;
- struct v2gEVSEErrorInformationType EVSEErrorInformation ;
- struct v2gPairingResType PairingRes ;
- struct v2gWeldingDetectionResType WeldingDetectionRes ;
- struct v2gConnectChargingDeviceResType ConnectChargingDeviceRes ;
- struct v2gCertificateUpdateReqType CertificateUpdateReq ;
- struct v2gCertificateUpdateResType CertificateUpdateRes ;
- struct v2gEVErrorInformationType EVErrorInformation ;
- struct v2gPaymentServiceSelectionReqType PaymentServiceSelectionReq ;
- struct v2gPowerDeliveryReqType PowerDeliveryReq ;
- struct v2gV2GResponseType PaymentServiceSelectionRes ;
- struct v2gPowerDeliveryResType PowerDeliveryRes ;
- struct v2gChargingStatusReqType ChargingStatusReq ;
- struct v2gChargingStatusResType ChargingStatusRes ;
- struct v2gBodyBaseType BodyElement ;
- struct v2gAC_BidirectionalControlReqType AC_BidirectionalControlReq ;
- struct v2gAC_BidirectionalControlResType AC_BidirectionalControlRes ;
- struct v2gBodyBaseType ErrorInformation ;
- struct v2gVehicleCheckInReqType VehicleCheckInReq ;
- struct v2gCurrentDemandReqType CurrentDemandReq ;
- struct v2gVehicleCheckInResType VehicleCheckInRes ;
- struct v2gPreChargeReqType PreChargeReq ;
- struct v2gCurrentDemandResType CurrentDemandRes ;
- struct v2gPreChargeResType PreChargeRes ;
- struct v2gAlignmentCheckReqType AlignmentCheckReq ;
- struct v2gBodyBaseType V2GRequest ;
- struct v2gSessionStopReqType SessionStopReq ;
- struct v2gAuthorizationReqType AuthorizationReq ;
- struct v2gAlignmentCheckResType AlignmentCheckRes ;
- struct v2gV2GResponseType SessionStopRes ;
- struct v2gAuthorizationResType AuthorizationRes ;
- struct v2gVehicleCheckOutReqType VehicleCheckOutReq ;
- struct v2gChargeParameterDiscoveryReqType ChargeParameterDiscoveryReq ;
- struct v2gVehicleCheckOutResType VehicleCheckOutRes ;
- struct v2gChargeParameterDiscoveryResType ChargeParameterDiscoveryRes ;
- struct v2gV2GResponseType V2GResponse ;
- struct v2gFinePositioningSetupReqType FinePositioningSetupReq ;
- struct v2gFinePositioningSetupResType FinePositioningSetupRes ;
- struct v2gServiceDetailReqType ServiceDetailReq ;
- struct v2gDC_BidirectionalControlReqType DC_BidirectionalControlReq ;
- struct v2gServiceDetailResType ServiceDetailRes ;
- struct v2gDC_BidirectionalControlResType DC_BidirectionalControlRes ;
- struct v2gLFA_EVFinePositioningSetupParametersType LFA_EVFinePositioningSetupParameters ;
- struct v2gMV_EVSEFinePositioningParametersType MV_EVSEFinePositioningParameters ;
- struct v2gRelativeTimeIntervalType RelativeTimeInterval ;
- struct v2gSalesTariffEntryType SalesTariffEntry ;
- struct v2gLFA_EVSEFinePositioningSetupParametersType LFA_EVSEFinePositioningSetupParameters ;
- struct v2gAC_EVChargeParameterType AC_EVChargeParameter ;
- struct v2gMV_EVSEFinePositioningSetupParametersType MV_EVSEFinePositioningSetupParameters ;
- struct v2gEVEnergyTransferParameterType EVEnergyTransferParameter ;
- struct v2gDC_EVSEBidirectionalParameterType DC_EVSEBidirectionalParameter ;
- struct v2gSAScheduleListType SAScheduleList ;
- struct v2gEVSEFinePositioningSetupParametersType EVSEFinePositioningSetupParameters ;
- struct v2gLF_EVSEFinePositioningParametersType LF_EVSEFinePositioningParameters ;
- struct v2gGeneric_EVSEFinePositioningParametersType Generic_EVSEFinePositioningParameters ;
- struct v2gDC_EVChargeParameterType DC_EVChargeParameter ;
- struct v2gDC_EVSEChargeParameterType DC_EVSEChargeParameter ;
- struct v2gLFA_EVFinePositioningParametersType LFA_EVFinePositioningParameters ;
- struct v2gEVFinePositioningSetupParametersType EVFinePositioningSetupParameters ;
- struct v2gAC_EVSEBidirectionalParameterType AC_EVSEBidirectionalParameter ;
- struct v2gEVFinePositioningParametersType EVFinePositioningParameters ;
- struct v2gWPT_EVChargeParameterType WPT_EVChargeParameter ;
- struct v2gEVSEEnergyTransferParameterType EVSEEnergyTransferParameter ;
- struct v2gAC_EVBidirectionalParameterType AC_EVBidirectionalParameter ;
- struct v2gEVSEFinePositioningParametersType EVSEFinePositioningParameters ;
- struct v2gWPT_EVSEChargeParameterType WPT_EVSEChargeParameter ;
- struct v2gAC_EVSEChargeParameterType AC_EVSEChargeParameter ;
- struct v2gPMaxScheduleEntryType PMaxScheduleEntry ;
- struct v2gGeneric_EVFinePositioningParametersType Generic_EVFinePositioningParameters ;
- struct v2gDC_EVBidirectionalParameterType DC_EVBidirectionalParameter ;
- struct v2gSignaturePropertyType SignatureProperty ;
- struct v2gDSAKeyValueType DSAKeyValue ;
- struct v2gSignaturePropertiesType SignatureProperties ;
- struct v2gKeyValueType KeyValue ;
- struct v2gTransformsType Transforms ;
- struct v2gDigestMethodType DigestMethod ;
- struct v2gSignatureType Signature ;
- struct v2gRetrievalMethodType RetrievalMethod ;
- struct v2gManifestType Manifest ;
- struct v2gReferenceType Reference ;
- struct v2gCanonicalizationMethodType CanonicalizationMethod ;
- struct v2gRSAKeyValueType RSAKeyValue ;
- struct v2gTransformType Transform ;
- struct v2gPGPDataType PGPData ;
+ struct iso2AnonType_V2G_Message V2G_Message ;
+ struct iso2ServiceDiscoveryReqType ServiceDiscoveryReq ;
+ struct iso2ServiceDiscoveryResType ServiceDiscoveryRes ;
+ struct iso2FinePositioningReqType FinePositioningReq ;
+ struct iso2FinePositioningResType FinePositioningRes ;
+ struct iso2DisconnectChargingDeviceReqType DisconnectChargingDeviceReq ;
+ struct iso2DisconnectChargingDeviceResType DisconnectChargingDeviceRes ;
+ struct iso2PowerDemandReqType PowerDemandReq ;
+ struct iso2MeteringReceiptReqType MeteringReceiptReq ;
+ struct iso2PaymentDetailsReqType PaymentDetailsReq ;
+ struct iso2PowerDemandResType PowerDemandRes ;
+ struct iso2MeteringReceiptResType MeteringReceiptRes ;
+ struct iso2PaymentDetailsResType PaymentDetailsRes ;
+ struct iso2SessionSetupReqType SessionSetupReq ;
+ struct iso2SessionSetupResType SessionSetupRes ;
+ struct iso2CableCheckReqType CableCheckReq ;
+ struct iso2CableCheckResType CableCheckRes ;
+ struct iso2CertificateInstallationReqType CertificateInstallationReq ;
+ struct iso2CertificateInstallationResType CertificateInstallationRes ;
+ struct iso2SystemStatusReqType SystemStatusReq ;
+ struct iso2SystemStatusResType SystemStatusRes ;
+ struct iso2PairingReqType PairingReq ;
+ struct iso2WeldingDetectionReqType WeldingDetectionReq ;
+ struct iso2ConnectChargingDeviceReqType ConnectChargingDeviceReq ;
+ struct iso2PairingResType PairingRes ;
+ struct iso2WeldingDetectionResType WeldingDetectionRes ;
+ struct iso2ConnectChargingDeviceResType ConnectChargingDeviceRes ;
+ struct iso2CertificateUpdateReqType CertificateUpdateReq ;
+ struct iso2CertificateUpdateResType CertificateUpdateRes ;
+ struct iso2PaymentServiceSelectionReqType PaymentServiceSelectionReq ;
+ struct iso2PowerDeliveryReqType PowerDeliveryReq ;
+ struct iso2PaymentServiceSelectionResType PaymentServiceSelectionRes ;
+ struct iso2PowerDeliveryResType PowerDeliveryRes ;
+ struct iso2ChargingStatusReqType ChargingStatusReq ;
+ struct iso2ChargingStatusResType ChargingStatusRes ;
+ struct iso2BodyBaseType BodyElement ;
+ struct iso2AC_BidirectionalControlReqType AC_BidirectionalControlReq ;
+ struct iso2AC_BidirectionalControlResType AC_BidirectionalControlRes ;
+ struct iso2VehicleCheckInReqType VehicleCheckInReq ;
+ struct iso2CurrentDemandReqType CurrentDemandReq ;
+ struct iso2VehicleCheckInResType VehicleCheckInRes ;
+ struct iso2PreChargeReqType PreChargeReq ;
+ struct iso2CurrentDemandResType CurrentDemandRes ;
+ struct iso2PreChargeResType PreChargeRes ;
+ struct iso2AlignmentCheckReqType AlignmentCheckReq ;
+ struct iso2BodyBaseType V2GRequest ;
+ struct iso2SessionStopReqType SessionStopReq ;
+ struct iso2AuthorizationReqType AuthorizationReq ;
+ struct iso2AlignmentCheckResType AlignmentCheckRes ;
+ struct iso2SessionStopResType SessionStopRes ;
+ struct iso2AuthorizationResType AuthorizationRes ;
+ struct iso2VehicleCheckOutReqType VehicleCheckOutReq ;
+ struct iso2ChargeParameterDiscoveryReqType ChargeParameterDiscoveryReq ;
+ struct iso2VehicleCheckOutResType VehicleCheckOutRes ;
+ struct iso2ChargeParameterDiscoveryResType ChargeParameterDiscoveryRes ;
+ struct iso2V2GResponseType V2GResponse ;
+ struct iso2FinePositioningSetupReqType FinePositioningSetupReq ;
+ struct iso2FinePositioningSetupResType FinePositioningSetupRes ;
+ struct iso2ServiceDetailReqType ServiceDetailReq ;
+ struct iso2DC_BidirectionalControlReqType DC_BidirectionalControlReq ;
+ struct iso2ServiceDetailResType ServiceDetailRes ;
+ struct iso2DC_BidirectionalControlResType DC_BidirectionalControlRes ;
+ struct iso2LFA_EVFinePositioningSetupParametersType LFA_EVFinePositioningSetupParameters ;
+ struct iso2MV_EVSEFinePositioningParametersType MV_EVSEFinePositioningParameters ;
+ struct iso2RelativeTimeIntervalType RelativeTimeInterval ;
+ struct iso2SalesTariffEntryType SalesTariffEntry ;
+ struct iso2LFA_EVSEFinePositioningSetupParametersType LFA_EVSEFinePositioningSetupParameters ;
+ struct iso2AC_EVChargeParameterType AC_EVChargeParameter ;
+ struct iso2MV_EVSEFinePositioningSetupParametersType MV_EVSEFinePositioningSetupParameters ;
+ struct iso2EVEnergyTransferParameterType EVEnergyTransferParameter ;
+ struct iso2DC_EVSEBidirectionalParameterType DC_EVSEBidirectionalParameter ;
+ struct iso2SAScheduleListType SAScheduleList ;
+ struct iso2EVSEFinePositioningSetupParametersType EVSEFinePositioningSetupParameters ;
+ struct iso2Generic_EVSEFinePositioningParametersType Generic_EVSEFinePositioningParameters ;
+ struct iso2DC_EVChargeParameterType DC_EVChargeParameter ;
+ struct iso2DC_EVSEChargeParameterType DC_EVSEChargeParameter ;
+ struct iso2LFA_EVFinePositioningParametersType LFA_EVFinePositioningParameters ;
+ struct iso2EVFinePositioningSetupParametersType EVFinePositioningSetupParameters ;
+ struct iso2AC_EVSEBidirectionalParameterType AC_EVSEBidirectionalParameter ;
+ struct iso2EVFinePositioningParametersType EVFinePositioningParameters ;
+ struct iso2WPT_EVChargeParameterType WPT_EVChargeParameter ;
+ struct iso2LFA_EVSEFinePositioningParametersType LFA_EVSEFinePositioningParameters ;
+ struct iso2EVSEEnergyTransferParameterType EVSEEnergyTransferParameter ;
+ struct iso2AC_EVBidirectionalParameterType AC_EVBidirectionalParameter ;
+ struct iso2EVSEFinePositioningParametersType EVSEFinePositioningParameters ;
+ struct iso2WPT_EVSEChargeParameterType WPT_EVSEChargeParameter ;
+ struct iso2AC_EVSEChargeParameterType AC_EVSEChargeParameter ;
+ struct iso2PMaxScheduleEntryType PMaxScheduleEntry ;
+ struct iso2Generic_EVFinePositioningParametersType Generic_EVFinePositioningParameters ;
+ struct iso2DC_EVBidirectionalParameterType DC_EVBidirectionalParameter ;
+ struct iso2SignaturePropertyType SignatureProperty ;
+ struct iso2DSAKeyValueType DSAKeyValue ;
+ struct iso2SignaturePropertiesType SignatureProperties ;
+ struct iso2KeyValueType KeyValue ;
+ struct iso2TransformsType Transforms ;
+ struct iso2DigestMethodType DigestMethod ;
+ struct iso2SignatureType Signature ;
+ struct iso2RetrievalMethodType RetrievalMethod ;
+ struct iso2ManifestType Manifest ;
+ struct iso2ReferenceType Reference ;
+ struct iso2CanonicalizationMethodType CanonicalizationMethod ;
+ struct iso2RSAKeyValueType RSAKeyValue ;
+ struct iso2TransformType Transform ;
+ struct iso2PGPDataType PGPData ;
struct {
exi_string_character_t characters[EXIDocument_MgmtData_CHARACTERS_SIZE];
uint16_t charactersLen;
} MgmtData ;
- struct v2gSignatureMethodType SignatureMethod ;
- struct v2gKeyInfoType KeyInfo ;
- struct v2gSPKIDataType SPKIData ;
- struct v2gX509DataType X509Data ;
- struct v2gSignatureValueType SignatureValue ;
+ struct iso2SignatureMethodType SignatureMethod ;
+ struct iso2KeyInfoType KeyInfo ;
+ struct iso2SPKIDataType SPKIData ;
+ struct iso2X509DataType X509Data ;
+ struct iso2SignatureValueType SignatureValue ;
struct {
exi_string_character_t characters[EXIDocument_KeyName_CHARACTERS_SIZE];
uint16_t charactersLen;
@@ -3072,8 +3093,8 @@ struct v2gEXIDocument {
uint8_t bytes[EXIDocument_DigestValue_BYTES_SIZE];
uint16_t bytesLen;
} DigestValue ;
- struct v2gSignedInfoType SignedInfo ;
- struct v2gObjectType Object ;
+ struct iso2SignedInfoType SignedInfo ;
+ struct iso2ObjectType Object ;
#if SAVE_MEMORY_WITH_UNNAMED_UNION == UNION_YES
};
#endif /* SAVE_MEMORY_WITH_UNNAMED_UNION == UNION_YES */
@@ -3101,13 +3122,11 @@ struct v2gEXIDocument {
unsigned int PairingReq_isUsed:1;
unsigned int WeldingDetectionReq_isUsed:1;
unsigned int ConnectChargingDeviceReq_isUsed:1;
- unsigned int EVSEErrorInformation_isUsed:1;
unsigned int PairingRes_isUsed:1;
unsigned int WeldingDetectionRes_isUsed:1;
unsigned int ConnectChargingDeviceRes_isUsed:1;
unsigned int CertificateUpdateReq_isUsed:1;
unsigned int CertificateUpdateRes_isUsed:1;
- unsigned int EVErrorInformation_isUsed:1;
unsigned int PaymentServiceSelectionReq_isUsed:1;
unsigned int PowerDeliveryReq_isUsed:1;
unsigned int PaymentServiceSelectionRes_isUsed:1;
@@ -3117,7 +3136,6 @@ struct v2gEXIDocument {
unsigned int BodyElement_isUsed:1;
unsigned int AC_BidirectionalControlReq_isUsed:1;
unsigned int AC_BidirectionalControlRes_isUsed:1;
- unsigned int ErrorInformation_isUsed:1;
unsigned int VehicleCheckInReq_isUsed:1;
unsigned int CurrentDemandReq_isUsed:1;
unsigned int VehicleCheckInRes_isUsed:1;
@@ -3153,7 +3171,6 @@ struct v2gEXIDocument {
unsigned int DC_EVSEBidirectionalParameter_isUsed:1;
unsigned int SAScheduleList_isUsed:1;
unsigned int EVSEFinePositioningSetupParameters_isUsed:1;
- unsigned int LF_EVSEFinePositioningParameters_isUsed:1;
unsigned int Generic_EVSEFinePositioningParameters_isUsed:1;
unsigned int DC_EVChargeParameter_isUsed:1;
unsigned int DC_EVSEChargeParameter_isUsed:1;
@@ -3162,6 +3179,7 @@ struct v2gEXIDocument {
unsigned int AC_EVSEBidirectionalParameter_isUsed:1;
unsigned int EVFinePositioningParameters_isUsed:1;
unsigned int WPT_EVChargeParameter_isUsed:1;
+ unsigned int LFA_EVSEFinePositioningParameters_isUsed:1;
unsigned int EVSEEnergyTransferParameter_isUsed:1;
unsigned int AC_EVBidirectionalParameter_isUsed:1;
unsigned int EVSEFinePositioningParameters_isUsed:1;
@@ -3200,52 +3218,52 @@ struct v2gEXIDocument {
};
-#if DEPLOY_ISO_CODEC_FRAGMENT == SUPPORT_YES
+#if DEPLOY_ISO2_CODEC_FRAGMENT == SUPPORT_YES
/* Possible elements of EXI Fragment */
-struct v2gEXIFragment {
+struct iso2EXIFragment {
#if SAVE_MEMORY_WITH_UNNAMED_UNION == UNION_YES
union {
#endif /* SAVE_MEMORY_WITH_UNNAMED_UNION == UNION_YES */
- struct v2gPhysicalValueType EVMaximumVoltage ;
+ struct iso2PhysicalValueType EVMaximumVoltage ;
uint32_t FrequencyChannel ;
- v2gEVSEProcessingType EVProcessing ;
+ iso2EVSEProcessingType EVProcessing ;
int BulkChargingComplete ;
- v2gparkingMethodType ParkingMethod ;
+ iso2parkingMethodType ParkingMethod ;
uint8_t SAScheduleTupleID ;
- struct v2gPhysicalValueType Distance ;
- struct v2gParameterSetType ParameterSet ;
- struct v2gPhysicalValueType EVMinimumDischargeCurrent ;
+ uint16_t Distance ;
+ struct iso2ParameterSetType ParameterSet ;
+ struct iso2PhysicalValueType EVMinimumDischargeCurrent ;
uint8_t SignalSeparationTime ;
- struct v2gEVSEEnergyTransferParameterType EVSEEnergyTransferParameter ;
- struct v2gPhysicalValueType EVSEMaximumVoltage ;
- struct v2gDC_EVSEBidirectionalParameterType DC_EVSEBidirectionalParameter ;
- v2gchargingSessionType ChargingSession ;
- struct v2gSubCertificatesType SubCertificates ;
- struct v2gRetrievalMethodType RetrievalMethod ;
- struct v2gMagneticVectorSetupListType MagneticVectorSetupList ;
- struct v2gParameterSetType PairingParameters ;
- struct v2gPhysicalValueType EVSEMinimumPower ;
- struct v2gAC_BidirectionalControlReqType AC_BidirectionalControlReq ;
- struct v2gCostType Cost ;
- struct v2gAC_BidirectionalControlResType AC_BidirectionalControlRes ;
- struct v2gSalesTariffType BuyBackTariff ;
+ struct iso2EVSEEnergyTransferParameterType EVSEEnergyTransferParameter ;
+ struct iso2PhysicalValueType EVSEMaximumVoltage ;
+ struct iso2DC_EVSEBidirectionalParameterType DC_EVSEBidirectionalParameter ;
+ iso2chargingSessionType ChargingSession ;
+ struct iso2SubCertificatesType SubCertificates ;
+ struct iso2RetrievalMethodType RetrievalMethod ;
+ struct iso2MagneticVectorSetupListType MagneticVectorSetupList ;
+ struct iso2ParameterSetType PairingParameters ;
+ struct iso2PhysicalValueType EVSEMinimumPower ;
+ struct iso2AC_BidirectionalControlReqType AC_BidirectionalControlReq ;
+ struct iso2CostType Cost ;
+ struct iso2AC_BidirectionalControlResType AC_BidirectionalControlRes ;
+ struct iso2SalesTariffType BuyBackTariff ;
int16_t XCoordinate ;
- v2gEVCheckOutStatusType EVSECheckOutStatus ;
+ iso2EVCheckOutStatusType EVSECheckOutStatus ;
struct {
exi_string_character_t characters[EXIFragment_stringValue_CHARACTERS_SIZE];
uint16_t charactersLen;
} stringValue ;
int16_t RetryCounter ;
- struct v2gPhysicalValueType EVSEMaximumDischargeCurrent ;
- struct v2gSensorType Sensor ;
+ struct iso2PhysicalValueType EVSEMaximumDischargeCurrent ;
+ struct iso2SensorType Sensor ;
uint64_t MeterReadingCharged ;
int64_t HMACOutputLength ;
- struct v2gV2GResponseType V2GResponse ;
- struct v2gPhysicalValueType EVMinimumVoltage ;
- struct v2gPhysicalValueType EVMinimumEnergyRequest ;
- struct v2gRelativeTimeIntervalType RelativeTimeInterval ;
- struct v2gWPT_EVChargeParameterType WPT_EVChargeParameter ;
- struct v2gSAScheduleTupleType SAScheduleTuple ;
+ struct iso2V2GResponseType V2GResponse ;
+ struct iso2PhysicalValueType EVMinimumVoltage ;
+ struct iso2PhysicalValueType EVMinimumEnergyRequest ;
+ struct iso2RelativeTimeIntervalType RelativeTimeInterval ;
+ struct iso2WPT_EVChargeParameterType WPT_EVChargeParameter ;
+ struct iso2SAScheduleTupleType SAScheduleTuple ;
uint16_t ServiceID ;
struct {
uint8_t bytes[EXIFragment_PgenCounter_BYTES_SIZE];
@@ -3255,61 +3273,60 @@ struct v2gEXIFragment {
exi_string_character_t characters[EXIFragment_SalesTariffDescription_CHARACTERS_SIZE];
uint16_t charactersLen;
} SalesTariffDescription ;
- struct v2gPhysicalValueType AngleGAtoVA ;
+ struct iso2PhysicalValueType AngleGAtoVA ;
int boolValue ;
- struct v2gPhysicalValueType EVMaximumDischargeCurrent ;
- struct v2gBodyBaseType ErrorInformation ;
+ struct iso2PhysicalValueType EVMaximumDischargeCurrent ;
uint16_t NotificationMaxDelay ;
- struct v2gPhysicalValueType EVSEMaximumDischargePower ;
- struct v2gPGPDataType PGPData ;
- struct v2gPhysicalValueType EVSEMaximumChargePower ;
+ struct iso2PhysicalValueType EVSEMaximumDischargePower ;
+ struct iso2PGPDataType PGPData ;
+ struct iso2PhysicalValueType EVSEMaximumChargePower ;
struct {
uint8_t bytes[EXIFragment_SessionID_BYTES_SIZE];
uint16_t bytesLen;
} SessionID ;
- struct v2gPhysicalValueType EVSEEnergyToBeDelivered ;
- struct v2gPhysicalValueType EVMaximumPower ;
- struct v2gPhysicalValueType EVMaximumCurrent ;
- struct v2gRSAKeyValueType RSAKeyValue ;
- struct v2gPhysicalValueType EVSENominalVoltage ;
- struct v2gMagneticVectorType MagneticVector ;
+ struct iso2PhysicalValueType EVSEEnergyToBeDelivered ;
+ struct iso2PhysicalValueType EVMaximumPower ;
+ struct iso2PhysicalValueType EVMaximumCurrent ;
+ struct iso2RSAKeyValueType RSAKeyValue ;
+ struct iso2PhysicalValueType EVSENominalVoltage ;
+ struct iso2MagneticVectorType MagneticVector ;
struct {
exi_string_character_t characters[EXIFragment_XPath_CHARACTERS_SIZE];
uint16_t charactersLen;
} XPath ;
- struct v2gSignatureType Signature ;
- v2gelectricalChargingDeviceStatusType EVElectricalChargingDeviceStatus ;
- v2gEVSEProcessingType EVSEProcessing ;
- v2gFODStatusType FODStatus ;
- struct v2gPowerDeliveryResType PowerDeliveryRes ;
- struct v2gV2GResponseType SessionStopRes ;
- struct v2gWPT_EVSEChargeParameterType WPT_EVSEChargeParameter ;
- v2gresponseCodeType ResponseCode ;
- struct v2gPhysicalValueType EVTargetEnergyRequest ;
- struct v2gFinePositioningSetupReqType FinePositioningSetupReq ;
- struct v2gPhysicalValueType EVSEPresentCurrent ;
- struct v2gFinePositioningSetupResType FinePositioningSetupRes ;
- struct v2gPMaxScheduleEntryType ProfileEntry ;
+ struct iso2SignatureType Signature ;
+ iso2electricalChargingDeviceStatusType EVElectricalChargingDeviceStatus ;
+ iso2EVSEProcessingType EVSEProcessing ;
+ iso2FODStatusType FODStatus ;
+ struct iso2PowerDeliveryResType PowerDeliveryRes ;
+ struct iso2SessionStopResType SessionStopRes ;
+ struct iso2WPT_EVSEChargeParameterType WPT_EVSEChargeParameter ;
+ iso2responseCodeType ResponseCode ;
+ struct iso2PhysicalValueType EVTargetEnergyRequest ;
+ struct iso2FinePositioningSetupReqType FinePositioningSetupReq ;
+ struct iso2PhysicalValueType EVSEPresentCurrent ;
+ struct iso2FinePositioningSetupResType FinePositioningSetupRes ;
+ struct iso2PMaxScheduleEntryType ProfileEntry ;
struct {
exi_string_character_t characters[EXIFragment_MgmtData_CHARACTERS_SIZE];
uint16_t charactersLen;
} MgmtData ;
- struct v2gCertificateChainType SAProvisioningCertificateChain ;
- struct v2gPowerDeliveryReqType PowerDeliveryReq ;
- struct v2gSessionStopReqType SessionStopReq ;
+ struct iso2CertificateChainType SAProvisioningCertificateChain ;
+ struct iso2PowerDeliveryReqType PowerDeliveryReq ;
+ struct iso2SessionStopReqType SessionStopReq ;
int ReceiptRequired ;
- struct v2gChargingProfileType ChargingProfile ;
+ struct iso2ChargingProfileType ChargingProfile ;
uint16_t MaxSupportingPoints ;
uint32_t start ;
- struct v2gPhysicalValueType EVMinimumChargePower ;
- struct v2gPhysicalValueType amount ;
- struct v2gPreChargeReqType PreChargeReq ;
+ struct iso2PhysicalValueType EVMinimumChargePower ;
+ struct iso2PhysicalValueType amount ;
+ struct iso2PreChargeReqType PreChargeReq ;
struct {
uint8_t bytes[EXIFragment_OEMProvisioningCert_BYTES_SIZE];
uint16_t bytesLen;
} OEMProvisioningCert ;
uint32_t PackageIndex ;
- struct v2gPreChargeResType PreChargeRes ;
+ struct iso2PreChargeResType PreChargeRes ;
struct {
uint8_t bytes[EXIFragment_P_BYTES_SIZE];
uint16_t bytesLen;
@@ -3330,10 +3347,10 @@ struct v2gEXIFragment {
uint8_t bytes[EXIFragment_J_BYTES_SIZE];
uint16_t bytesLen;
} J ;
- struct v2gCertificateChainType ContractSignatureCertChain ;
- struct v2gMV_EVSEFinePositioningSetupParametersType MV_EVSEFinePositioningSetupParameters ;
- struct v2gPhysicalValueType EVSEMinimumDischargeCurrent ;
- struct v2gPhysicalValueType EVMaximumChargeCurrent ;
+ struct iso2CertificateChainType ContractSignatureCertChain ;
+ struct iso2MV_EVSEFinePositioningSetupParametersType MV_EVSEFinePositioningSetupParameters ;
+ struct iso2PhysicalValueType EVSEMinimumDischargeCurrent ;
+ struct iso2PhysicalValueType EVMaximumChargeCurrent ;
uint16_t AlignmentOffset ;
struct {
uint8_t bytes[EXIFragment_Y_BYTES_SIZE];
@@ -3344,82 +3361,83 @@ struct v2gEXIFragment {
uint8_t bytes[EXIFragment_DigestValue_BYTES_SIZE];
uint16_t bytesLen;
} DigestValue ;
- struct v2gSensorMeasurementsType SensorMeasurements ;
- struct v2gSalesTariffType SalesTariff ;
+ struct iso2SensorMeasurementsType SensorMeasurements ;
+ struct iso2SalesTariffType SalesTariff ;
struct {
uint8_t bytes[EXIFragment_EVCCID_BYTES_SIZE];
uint16_t bytesLen;
} EVCCID ;
- struct v2gPhysicalValueType EVSEMaximumPower ;
- struct v2gTargetPositionType TargetOffset ;
- struct v2gParameterSetType PowerDemandParameters ;
+ struct iso2PhysicalValueType EVSEMaximumPower ;
+ struct iso2TargetPositionType TargetOffset ;
+ struct iso2ParameterSetType PowerDemandParameters ;
struct {
uint8_t bytes[EXIFragment_PGPKeyID_BYTES_SIZE];
uint16_t bytesLen;
} PGPKeyID ;
- struct v2gDisconnectChargingDeviceReqType DisconnectChargingDeviceReq ;
- struct v2gDisconnectChargingDeviceResType DisconnectChargingDeviceRes ;
- struct v2gDSAKeyValueType DSAKeyValue ;
- struct v2gSalesTariffEntryType SalesTariffEntry ;
- struct v2gCertificateInstallationResType CertificateInstallationRes ;
- struct v2gCanonicalizationMethodType CanonicalizationMethod ;
- struct v2gGeneric_EVFinePositioningParametersType Generic_EVFinePositioningParameters ;
- struct v2gPhysicalValueType EVSEMinimumVoltage ;
- struct v2gSystemStatusResType SystemStatusRes ;
- struct v2gPhysicalValueType EVSEOutputPower ;
- struct v2gSignedInfoType SignedInfo ;
- struct v2gPhysicalValueType EVMinimumChargeCurrent ;
- v2gcostKindType costKind ;
- struct v2gSystemStatusReqType SystemStatusReq ;
- struct v2gBodyBaseType CableCheckReq ;
+ struct iso2DisconnectChargingDeviceReqType DisconnectChargingDeviceReq ;
+ struct iso2DisconnectChargingDeviceResType DisconnectChargingDeviceRes ;
+ struct iso2DSAKeyValueType DSAKeyValue ;
+ struct iso2SalesTariffEntryType SalesTariffEntry ;
+ struct iso2CertificateInstallationResType CertificateInstallationRes ;
+ struct iso2CanonicalizationMethodType CanonicalizationMethod ;
+ struct iso2Generic_EVFinePositioningParametersType Generic_EVFinePositioningParameters ;
+ struct iso2PhysicalValueType EVSEMinimumVoltage ;
+ struct iso2SystemStatusResType SystemStatusRes ;
+ struct iso2PhysicalValueType EVSEOutputPower ;
+ struct iso2SignedInfoType SignedInfo ;
+ struct iso2PhysicalValueType EVMinimumChargeCurrent ;
+ iso2costKindType costKind ;
+ struct iso2SystemStatusReqType SystemStatusReq ;
+ struct iso2CableCheckReqType CableCheckReq ;
uint8_t NumEPriceLevels ;
int EVSEVoltageLimitAchieved ;
uint8_t PackageSeparationTime ;
- struct v2gCableCheckResType CableCheckRes ;
- v2gEVCheckInStatusType EVCheckInStatus ;
- struct v2gPMaxScheduleType PMaxDischargeSchedule ;
- struct v2gPhysicalValueType EVMinimumPower ;
- struct v2gPhysicalValueType ChargingPerformance ;
- struct v2gAlignmentCheckReqType AlignmentCheckReq ;
- v2gmechanicalChargingDeviceStatusType EVMechanicalChargingDeviceStatus ;
+ struct iso2CableCheckResType CableCheckRes ;
+ iso2EVCheckInStatusType EVCheckInStatus ;
+ struct iso2PMaxScheduleType PMaxDischargeSchedule ;
+ struct iso2PhysicalValueType EVMinimumPower ;
+ struct iso2PhysicalValueType ChargingPerformance ;
+ struct iso2AlignmentCheckReqType AlignmentCheckReq ;
+ iso2mechanicalChargingDeviceStatusType EVMechanicalChargingDeviceStatus ;
uint16_t VehicleSpace ;
- struct v2gAlignmentCheckResType AlignmentCheckRes ;
- struct v2gPhysicalValueType EVMinimumDischargePower ;
+ struct iso2AlignmentCheckResType AlignmentCheckRes ;
+ struct iso2PhysicalValueType EVMinimumDischargePower ;
int8_t RemainingTimeToMinimumSOC ;
- struct v2gAuthorizationResType AuthorizationRes ;
- struct v2gCertificateInstallationReqType CertificateInstallationReq ;
- struct v2gPaymentDetailsReqType PaymentDetailsReq ;
- struct v2gPaymentDetailsResType PaymentDetailsRes ;
- struct v2gAuthorizationReqType AuthorizationReq ;
- struct v2gPhysicalValueType EVTargetCurrent ;
- struct v2gSessionSetupReqType SessionSetupReq ;
- struct v2gSessionSetupResType SessionSetupRes ;
- struct v2gPhysicalValueType EVSENominalFrequency ;
- struct v2gMessageHeaderType Header ;
+ struct iso2AuthorizationResType AuthorizationRes ;
+ struct iso2CertificateInstallationReqType CertificateInstallationReq ;
+ struct iso2PaymentDetailsReqType PaymentDetailsReq ;
+ struct iso2PaymentDetailsResType PaymentDetailsRes ;
+ struct iso2AuthorizationReqType AuthorizationReq ;
+ struct iso2PhysicalValueType EVTargetCurrent ;
+ struct iso2SessionSetupReqType SessionSetupReq ;
+ struct iso2SessionSetupResType SessionSetupRes ;
+ struct iso2PhysicalValueType EVSENominalFrequency ;
+ struct iso2MessageHeaderType Header ;
uint8_t NumberOfSensors ;
int64_t EVSETimeStamp ;
int16_t MeterStatus ;
- struct v2gMV_EVSEFinePositioningParametersType MV_EVSEFinePositioningParameters ;
- v2gchargeProgressType ChargeProgress ;
+ struct iso2MV_EVSEFinePositioningParametersType MV_EVSEFinePositioningParameters ;
+ iso2chargeProgressType ChargeProgress ;
struct {
exi_string_character_t characters[EXIFragment_KeyName_CHARACTERS_SIZE];
uint16_t charactersLen;
} KeyName ;
- struct v2gPMaxScheduleType PMaxSchedule ;
+ struct iso2PMaxScheduleType PMaxSchedule ;
uint32_t duration ;
int8_t RemainingTimeToBulkSOC ;
- struct v2gCartesianCoordinatesType SensorOrientation ;
- struct v2gPhysicalValueType EVSEMaximumChargeCurrent ;
- struct v2gVehicleCheckInResType VehicleCheckInRes ;
- struct v2gPMaxScheduleEntryType PMaxScheduleEntry ;
- struct v2gSAScheduleListType SAScheduleList ;
+ struct iso2CartesianCoordinatesType SensorOrientation ;
+ struct iso2PhysicalValueType EVSEMaximumChargeCurrent ;
+ struct iso2LFA_EVSEFinePositioningParametersType LFA_EVSEFinePositioningParameters ;
+ struct iso2VehicleCheckInResType VehicleCheckInRes ;
+ struct iso2PMaxScheduleEntryType PMaxScheduleEntry ;
+ struct iso2SAScheduleListType SAScheduleList ;
struct {
uint8_t bytes[EXIFragment_X509SKI_BYTES_SIZE];
uint16_t bytesLen;
} X509SKI ;
- struct v2gPaymentOptionListType PaymentOptionList ;
- struct v2gContractSignatureEncryptedPrivateKeyType ContractSignatureEncryptedPrivateKey ;
- struct v2gVehicleCheckInReqType VehicleCheckInReq ;
+ struct iso2PaymentOptionListType PaymentOptionList ;
+ struct iso2ContractSignatureEncryptedPrivateKeyType ContractSignatureEncryptedPrivateKey ;
+ struct iso2VehicleCheckInReqType VehicleCheckInReq ;
struct {
uint8_t bytes[EXIFragment_Certificate_BYTES_SIZE];
uint16_t bytesLen;
@@ -3428,66 +3446,64 @@ struct v2gEXIFragment {
int8_t CurrentSOC ;
int16_t ZCoordinate ;
uint16_t MeasurementData ;
- struct v2gPairingResType PairingRes ;
- struct v2gPhysicalValueType EVSEMaximumCurrent ;
- struct v2gLFA_EVFinePositioningParametersType LFA_EVFinePositioningParameters ;
- struct v2gParameterSetType AlignmentCheckParameters ;
+ struct iso2PairingResType PairingRes ;
+ struct iso2PhysicalValueType EVSEMaximumCurrent ;
+ struct iso2LFA_EVFinePositioningParametersType LFA_EVFinePositioningParameters ;
+ struct iso2ParameterSetType AlignmentCheckParameters ;
int8_t EffectiveRadiatedPower ;
- struct v2gEVErrorInformationType EVErrorInformation ;
- struct v2gPairingReqType PairingReq ;
+ struct iso2PairingReqType PairingReq ;
int16_t Value ;
int8_t byteValue ;
- struct v2gCurrentDemandReqType CurrentDemandReq ;
- struct v2gGeneric_EVSEFinePositioningParametersType Generic_EVSEFinePositioningParameters ;
- struct v2gCurrentDemandResType CurrentDemandRes ;
- struct v2gAC_EVBidirectionalParameterType AC_EVBidirectionalParameter ;
+ struct iso2CurrentDemandReqType CurrentDemandReq ;
+ struct iso2Generic_EVSEFinePositioningParametersType Generic_EVSEFinePositioningParameters ;
+ struct iso2CurrentDemandResType CurrentDemandRes ;
+ struct iso2AC_EVBidirectionalParameterType AC_EVBidirectionalParameter ;
struct {
uint8_t bytes[EXIFragment_Modulus_BYTES_SIZE];
uint16_t bytesLen;
} Modulus ;
- struct v2gSelectedServiceType SelectedEnergyTransferService ;
- struct v2gPhysicalValueType startValue ;
- struct v2gSelectedServiceListType SelectedVASList ;
- struct v2gChargeParameterDiscoveryReqType ChargeParameterDiscoveryReq ;
- struct v2gChargeParameterDiscoveryResType ChargeParameterDiscoveryRes ;
+ struct iso2SelectedServiceType SelectedEnergyTransferService ;
+ struct iso2PhysicalValueType startValue ;
+ struct iso2SelectedServiceListType SelectedVASList ;
+ struct iso2ChargeParameterDiscoveryReqType ChargeParameterDiscoveryReq ;
+ struct iso2ChargeParameterDiscoveryResType ChargeParameterDiscoveryRes ;
struct {
uint8_t bytes[EXIFragment_SigMeterReading_BYTES_SIZE];
uint16_t bytesLen;
} SigMeterReading ;
int8_t TargetSOC ;
- struct v2gEVSEStatusType EVSEStatus ;
- struct v2gPhysicalValueType EVSEMinimumChargeCurrent ;
- v2gelectricalChargingDeviceStatusType EVSEElectricalChargingDeviceStatus ;
+ struct iso2EVSEStatusType EVSEStatus ;
+ struct iso2PhysicalValueType EVSEMinimumChargeCurrent ;
+ iso2electricalChargingDeviceStatusType EVSEElectricalChargingDeviceStatus ;
int64_t X509SerialNumber ;
- v2gpaymentOptionType PaymentOption ;
- struct v2gTransformsType Transforms ;
- struct v2gPhysicalValueType EVSEPeakCurrentRipple ;
- struct v2gConsumptionCostType ConsumptionCost ;
- struct v2gEVSEFinePositioningSetupParametersType EVSEFinePositioningSetupParameters ;
+ iso2paymentOptionType PaymentOption ;
+ struct iso2TransformsType Transforms ;
+ struct iso2PhysicalValueType EVSEPeakCurrentRipple ;
+ struct iso2ConsumptionCostType ConsumptionCost ;
+ struct iso2EVSEFinePositioningSetupParametersType EVSEFinePositioningSetupParameters ;
uint8_t EPriceLevel ;
struct {
uint8_t bytes[EXIFragment_Exponent_BYTES_SIZE];
uint16_t bytesLen;
} Exponent ;
- struct v2gX509IssuerSerialType X509IssuerSerial ;
- struct v2gSPKIDataType SPKIData ;
- struct v2gMagneticVectorListType MagneticVectorList ;
- struct v2gEVSEFinePositioningParametersType EVSEFinePositioningParameters ;
- struct v2gPhysicalValueType EVTargetPower ;
- struct v2gSensorPackageListType SensorPackageList ;
+ struct iso2X509IssuerSerialType X509IssuerSerial ;
+ struct iso2SPKIDataType SPKIData ;
+ struct iso2MagneticVectorListType MagneticVectorList ;
+ struct iso2EVSEFinePositioningParametersType EVSEFinePositioningParameters ;
+ struct iso2PhysicalValueType EVTargetPower ;
+ struct iso2SensorPackageListType SensorPackageList ;
uint32_t DepartureTime ;
- struct v2gLF_EVSEFinePositioningParametersType LF_EVSEFinePositioningParameters ;
int InletHot ;
- struct v2gPhysicalValueType EVPresentActivePower ;
- struct v2gX509DataType X509Data ;
+ struct iso2PhysicalValueType EVPresentActivePower ;
+ struct iso2X509DataType X509Data ;
int16_t YCoordinate ;
- struct v2gKeyValueType KeyValue ;
- struct v2gDisplayParametersType DisplayParameters ;
+ struct iso2KeyValueType KeyValue ;
+ struct iso2DisplayParametersType DisplayParameters ;
int EVSEPowerLimitAchieved ;
- struct v2gBodyType Body ;
- struct v2gDC_EVChargeParameterType DC_EVChargeParameter ;
- struct v2gServiceType Service ;
- struct v2gSignaturePropertyType SignatureProperty ;
+ struct iso2BodyType Body ;
+ struct iso2DC_EVChargeParameterType DC_EVChargeParameter ;
+ struct iso2ServiceType Service ;
+ struct iso2SignaturePropertyType SignatureProperty ;
struct {
uint8_t bytes[EXIFragment_PGPKeyPacket_BYTES_SIZE];
uint16_t bytesLen;
@@ -3496,141 +3512,140 @@ struct v2gEXIFragment {
uint8_t bytes[EXIFragment_Seed_BYTES_SIZE];
uint16_t bytesLen;
} Seed ;
- struct v2gLFA_EVFinePositioningSetupParametersType LFA_EVFinePositioningSetupParameters ;
- struct v2gMinimumPMaxRequestType MinimumPMaxRequest ;
- struct v2gFinePositioningReqType FinePositioningReq ;
- struct v2gServiceListType EnergyTransferServiceList ;
- struct v2gFinePositioningResType FinePositioningRes ;
- struct v2gAC_EVSEBidirectionalParameterType AC_EVSEBidirectionalParameter ;
+ struct iso2LFA_EVFinePositioningSetupParametersType LFA_EVFinePositioningSetupParameters ;
+ struct iso2MinimumPMaxRequestType MinimumPMaxRequest ;
+ struct iso2FinePositioningReqType FinePositioningReq ;
+ struct iso2ServiceListType EnergyTransferServiceList ;
+ struct iso2FinePositioningResType FinePositioningRes ;
+ struct iso2AC_EVSEBidirectionalParameterType AC_EVSEBidirectionalParameter ;
int FreeService ;
- struct v2gAC_EVSEChargeParameterType AC_EVSEChargeParameter ;
+ struct iso2AC_EVSEChargeParameterType AC_EVSEChargeParameter ;
uint8_t SensorID ;
- struct v2gPhysicalValueType EVSECurrentRegulationTolerance ;
- v2gmechanicalChargingDeviceStatusType EVSEMechanicalChargingDeviceStatus ;
- struct v2gEVEnergyTransferParameterType EVEnergyTransferParameter ;
+ struct iso2PhysicalValueType EVSECurrentRegulationTolerance ;
+ iso2mechanicalChargingDeviceStatusType EVSEMechanicalChargingDeviceStatus ;
+ struct iso2EVEnergyTransferParameterType EVEnergyTransferParameter ;
uint8_t SignalPulseDuration ;
int16_t shortValue ;
- struct v2gManifestType Manifest ;
- struct v2gDC_EVSEChargeParameterType DC_EVSEChargeParameter ;
- struct v2gMeteringReceiptReqType MeteringReceiptReq ;
+ struct iso2ManifestType Manifest ;
+ struct iso2DC_EVSEChargeParameterType DC_EVSEChargeParameter ;
+ struct iso2MeteringReceiptReqType MeteringReceiptReq ;
struct {
exi_string_character_t characters[EXIFragment_MeterID_CHARACTERS_SIZE];
uint16_t charactersLen;
} MeterID ;
- struct v2gV2GResponseType MeteringReceiptRes ;
- struct v2gServiceDiscoveryReqType ServiceDiscoveryReq ;
+ struct iso2MeteringReceiptResType MeteringReceiptRes ;
+ struct iso2ServiceDiscoveryReqType ServiceDiscoveryReq ;
uint8_t SalesTariffID ;
- struct v2gServiceDiscoveryResType ServiceDiscoveryRes ;
+ struct iso2ServiceDiscoveryResType ServiceDiscoveryRes ;
struct {
uint8_t bytes[EXIFragment_X509CRL_BYTES_SIZE];
uint16_t bytesLen;
} X509CRL ;
- struct v2gMagneticVectorSetupType MagneticVectorSetup ;
- v2gEVErrorCodeType ErrorCode ;
- struct v2gDigestMethodType DigestMethod ;
+ struct iso2MagneticVectorSetupType MagneticVectorSetup ;
+ struct iso2DigestMethodType DigestMethod ;
struct {
uint8_t bytes[EXIFragment_SPKISexp_BYTES_SIZE];
uint16_t bytesLen;
} SPKISexp ;
uint64_t MeterReadingDischarged ;
- struct v2gSignaturePropertiesType SignatureProperties ;
- struct v2gCartesianCoordinatesType SensorPosition ;
- struct v2gLFA_EVSEFinePositioningSetupParametersType LFA_EVSEFinePositioningSetupParameters ;
- struct v2gEMAIDType eMAID ;
- struct v2gSensorPackageType SensorPackage ;
- v2gEVCheckOutStatusType EVCheckOutStatus ;
+ struct iso2MeasurementDataListType MeasurementDataList ;
+ struct iso2SignaturePropertiesType SignatureProperties ;
+ struct iso2CartesianCoordinatesType SensorPosition ;
+ struct iso2LFA_EVSEFinePositioningSetupParametersType LFA_EVSEFinePositioningSetupParameters ;
+ struct iso2EMAIDType eMAID ;
+ struct iso2SensorPackageType SensorPackage ;
+ iso2EVCheckOutStatusType EVCheckOutStatus ;
struct {
uint8_t bytes[EXIFragment_X509Certificate_BYTES_SIZE];
uint16_t bytesLen;
} X509Certificate ;
- struct v2gX509IssuerSerialType RootCertificateID ;
- struct v2gDC_BidirectionalControlReqType DC_BidirectionalControlReq ;
- struct v2gPhysicalValueType EVSEPresentVoltage ;
- struct v2gDC_BidirectionalControlResType DC_BidirectionalControlRes ;
- struct v2gServiceListType VASList ;
- struct v2gMeterInfoType MeterInfo ;
- struct v2gPhysicalValueType EVSETargetReactivePower ;
- struct v2gChargingStatusReqType ChargingStatusReq ;
- struct v2gParameterSetType GenericParameters ;
- struct v2gChargingStatusResType ChargingStatusRes ;
- struct v2gPhysicalValueType EVMaximumChargePower ;
+ struct iso2X509IssuerSerialType RootCertificateID ;
+ struct iso2DC_BidirectionalControlReqType DC_BidirectionalControlReq ;
+ struct iso2PhysicalValueType EVSEPresentVoltage ;
+ struct iso2DC_BidirectionalControlResType DC_BidirectionalControlRes ;
+ struct iso2ServiceListType VASList ;
+ struct iso2MeterInfoType MeterInfo ;
+ struct iso2PhysicalValueType EVSETargetReactivePower ;
+ struct iso2ChargingStatusReqType ChargingStatusReq ;
+ struct iso2ParameterSetType GenericParameters ;
+ struct iso2ChargingStatusResType ChargingStatusRes ;
+ struct iso2PhysicalValueType EVMaximumChargePower ;
int8_t BulkSOC ;
uint8_t NumberOfSignalPackages ;
uint16_t ParameterSetID ;
- struct v2gPhysicalValueType PMax ;
- struct v2gPhysicalValueType EVMaximumEnergyRequest ;
- v2gEVOperationType EVOperation ;
- struct v2gCertificateUpdateResType CertificateUpdateRes ;
+ struct iso2PhysicalValueType PMax ;
+ struct iso2PhysicalValueType EVMaximumEnergyRequest ;
+ iso2EVOperationType EVOperation ;
+ struct iso2CertificateUpdateResType CertificateUpdateRes ;
int ChargingComplete ;
- struct v2gListOfRootCertificateIDsType ListOfRootCertificateIDs ;
- struct v2gPhysicalValueType RotationVAtoGA ;
- struct v2gPhysicalValueType EVTargetVoltage ;
- struct v2gCertificateUpdateReqType CertificateUpdateReq ;
- struct v2gConnectChargingDeviceResType ConnectChargingDeviceRes ;
- struct v2gDiffieHellmanPublickeyType DHpublickey ;
- struct v2gServiceParameterListType ServiceParameterList ;
- struct v2gSignatureValueType SignatureValue ;
- struct v2gPhysicalValueType physicalValue ;
- v2goperationModeType OperationMode ;
+ struct iso2ListOfRootCertificateIDsType ListOfRootCertificateIDs ;
+ struct iso2PhysicalValueType RotationVAtoGA ;
+ struct iso2PhysicalValueType EVTargetVoltage ;
+ struct iso2CertificateUpdateReqType CertificateUpdateReq ;
+ struct iso2ConnectChargingDeviceResType ConnectChargingDeviceRes ;
+ struct iso2DiffieHellmanPublickeyType DHpublickey ;
+ struct iso2ServiceParameterListType ServiceParameterList ;
+ struct iso2SignatureValueType SignatureValue ;
+ struct iso2PhysicalValueType physicalValue ;
+ iso2operationModeType OperationMode ;
int EVSECurrentLimitAchieved ;
- struct v2gServiceDetailReqType ServiceDetailReq ;
- struct v2gServiceDetailResType ServiceDetailRes ;
+ struct iso2ServiceDetailReqType ServiceDetailReq ;
+ struct iso2ServiceDetailResType ServiceDetailRes ;
int32_t intValue ;
- struct v2gPhysicalValueType EVMaximumDischargePower ;
+ struct iso2PhysicalValueType EVMaximumDischargePower ;
int8_t MinimumSOC ;
- v2gpaymentOptionType SelectedPaymentOption ;
- struct v2gAnonType_V2G_Message V2G_Message ;
+ iso2paymentOptionType SelectedPaymentOption ;
+ struct iso2AnonType_V2G_Message V2G_Message ;
struct {
exi_string_character_t characters[EXIFragment_EVSEID_CHARACTERS_SIZE];
uint16_t charactersLen;
} EVSEID ;
int64_t TMeter ;
- uint8_t SensorOrder ;
- struct v2gServiceIDListType SupportedServiceIDs ;
+ struct iso2SensorOrderListType SensorOrder ;
+ struct iso2ServiceIDListType SupportedServiceIDs ;
struct {
uint8_t bytes[EXIFragment_GenChallenge_BYTES_SIZE];
uint16_t bytesLen;
} GenChallenge ;
- struct v2gEVFinePositioningParametersType EVFinePositioningParameters ;
- struct v2gSensorListType SensorList ;
- struct v2gKeyInfoType KeyInfo ;
- struct v2gConnectChargingDeviceReqType ConnectChargingDeviceReq ;
- struct v2gAC_EVChargeParameterType AC_EVChargeParameter ;
- struct v2gParameterType Parameter ;
- struct v2gWeldingDetectionResType WeldingDetectionRes ;
+ struct iso2EVFinePositioningParametersType EVFinePositioningParameters ;
+ struct iso2SensorListType SensorList ;
+ struct iso2KeyInfoType KeyInfo ;
+ struct iso2ConnectChargingDeviceReqType ConnectChargingDeviceReq ;
+ struct iso2AC_EVChargeParameterType AC_EVChargeParameter ;
+ struct iso2ParameterType Parameter ;
+ struct iso2WeldingDetectionResType WeldingDetectionRes ;
struct {
exi_string_character_t characters[EXIFragment_GAID_CHARACTERS_SIZE];
uint16_t charactersLen;
} GAID ;
uint16_t SignalFrequency ;
- struct v2gPhysicalValueType EVSETargetPower ;
- struct v2gDC_EVBidirectionalParameterType DC_EVBidirectionalParameter ;
- struct v2gSignatureMethodType SignatureMethod ;
- struct v2gBodyBaseType WeldingDetectionReq ;
- struct v2gSelectedServiceType SelectedService ;
- struct v2gEVSEErrorInformationType EVSEErrorInformation ;
- struct v2gPhysicalValueType EVInputPower ;
- struct v2gVehicleCheckOutReqType VehicleCheckOutReq ;
- struct v2gPowerDemandReqType PowerDemandReq ;
- struct v2gVehicleCheckOutResType VehicleCheckOutRes ;
+ struct iso2PhysicalValueType EVSETargetPower ;
+ struct iso2DC_EVBidirectionalParameterType DC_EVBidirectionalParameter ;
+ struct iso2SignatureMethodType SignatureMethod ;
+ struct iso2WeldingDetectionReqType WeldingDetectionReq ;
+ struct iso2SelectedServiceType SelectedService ;
+ struct iso2PhysicalValueType EVInputPower ;
+ struct iso2VehicleCheckOutReqType VehicleCheckOutReq ;
+ struct iso2PowerDemandReqType PowerDemandReq ;
+ struct iso2VehicleCheckOutResType VehicleCheckOutRes ;
uint16_t CurrentRange ;
- struct v2gPhysicalValueType EVPresentReactivePower ;
+ struct iso2PhysicalValueType EVPresentReactivePower ;
struct {
exi_string_character_t characters[EXIFragment_X509IssuerName_CHARACTERS_SIZE];
uint16_t charactersLen;
} X509IssuerName ;
- struct v2gBodyBaseType V2GRequest ;
- struct v2gReferenceType Reference ;
- struct v2gBodyBaseType BodyElement ;
- struct v2gPMaxScheduleEntryType MinimumPMaxScheduleEntry ;
- struct v2gEVFinePositioningSetupParametersType EVFinePositioningSetupParameters ;
- v2gEVSENotificationType EVSENotification ;
- struct v2gPaymentServiceSelectionReqType PaymentServiceSelectionReq ;
- struct v2gV2GResponseType PaymentServiceSelectionRes ;
- struct v2gTransformType Transform ;
- struct v2gObjectType Object ;
+ struct iso2BodyBaseType V2GRequest ;
+ struct iso2ReferenceType Reference ;
+ struct iso2BodyBaseType BodyElement ;
+ struct iso2PMaxScheduleEntryType MinimumPMaxScheduleEntry ;
+ struct iso2EVFinePositioningSetupParametersType EVFinePositioningSetupParameters ;
+ iso2EVSENotificationType EVSENotification ;
+ struct iso2PaymentServiceSelectionReqType PaymentServiceSelectionReq ;
+ struct iso2PaymentServiceSelectionResType PaymentServiceSelectionRes ;
+ struct iso2TransformType Transform ;
+ struct iso2ObjectType Object ;
uint16_t TargetOffsetY ;
- struct v2gPowerDemandResType PowerDemandRes ;
+ struct iso2PowerDemandResType PowerDemandRes ;
uint16_t TargetOffsetX ;
#if SAVE_MEMORY_WITH_UNNAMED_UNION == UNION_YES
};
@@ -3678,7 +3693,6 @@ struct v2gEXIFragment {
unsigned int AngleGAtoVA_isUsed:1;
unsigned int boolValue_isUsed:1;
unsigned int EVMaximumDischargeCurrent_isUsed:1;
- unsigned int ErrorInformation_isUsed:1;
unsigned int NotificationMaxDelay_isUsed:1;
unsigned int EVSEMaximumDischargePower_isUsed:1;
unsigned int PGPData_isUsed:1;
@@ -3788,6 +3802,7 @@ struct v2gEXIFragment {
unsigned int RemainingTimeToBulkSOC_isUsed:1;
unsigned int SensorOrientation_isUsed:1;
unsigned int EVSEMaximumChargeCurrent_isUsed:1;
+ unsigned int LFA_EVSEFinePositioningParameters_isUsed:1;
unsigned int VehicleCheckInRes_isUsed:1;
unsigned int PMaxScheduleEntry_isUsed:1;
unsigned int SAScheduleList_isUsed:1;
@@ -3805,7 +3820,6 @@ struct v2gEXIFragment {
unsigned int LFA_EVFinePositioningParameters_isUsed:1;
unsigned int AlignmentCheckParameters_isUsed:1;
unsigned int EffectiveRadiatedPower_isUsed:1;
- unsigned int EVErrorInformation_isUsed:1;
unsigned int PairingReq_isUsed:1;
unsigned int Value_isUsed:1;
unsigned int byteValue_isUsed:1;
@@ -3839,7 +3853,6 @@ struct v2gEXIFragment {
unsigned int EVTargetPower_isUsed:1;
unsigned int SensorPackageList_isUsed:1;
unsigned int DepartureTime_isUsed:1;
- unsigned int LF_EVSEFinePositioningParameters_isUsed:1;
unsigned int InletHot_isUsed:1;
unsigned int EVPresentActivePower_isUsed:1;
unsigned int X509Data_isUsed:1;
@@ -3877,10 +3890,10 @@ struct v2gEXIFragment {
unsigned int ServiceDiscoveryRes_isUsed:1;
unsigned int X509CRL_isUsed:1;
unsigned int MagneticVectorSetup_isUsed:1;
- unsigned int ErrorCode_isUsed:1;
unsigned int DigestMethod_isUsed:1;
unsigned int SPKISexp_isUsed:1;
unsigned int MeterReadingDischarged_isUsed:1;
+ unsigned int MeasurementDataList_isUsed:1;
unsigned int SignatureProperties_isUsed:1;
unsigned int SensorPosition_isUsed:1;
unsigned int LFA_EVSEFinePositioningSetupParameters_isUsed:1;
@@ -3944,7 +3957,6 @@ struct v2gEXIFragment {
unsigned int SignatureMethod_isUsed:1;
unsigned int WeldingDetectionReq_isUsed:1;
unsigned int SelectedService_isUsed:1;
- unsigned int EVSEErrorInformation_isUsed:1;
unsigned int EVInputPower_isUsed:1;
unsigned int VehicleCheckOutReq_isUsed:1;
unsigned int PowerDemandReq_isUsed:1;
@@ -3969,168 +3981,173 @@ struct v2gEXIFragment {
int _warning_;
};
-#endif /* DEPLOY_ISO_CODEC_FRAGMENT */
+#endif /* DEPLOY_ISO2_CODEC_FRAGMENT */
/* Initialization methods for structs */
-void init_v2gEXIDocument(struct v2gEXIDocument* exiDoc);
-#if DEPLOY_ISO_CODEC_FRAGMENT == SUPPORT_YES
-void init_v2gEXIFragment(struct v2gEXIFragment* exiFrag);
-#endif /* DEPLOY_ISO_CODEC_FRAGMENT */
-void init_v2gSignatureValueType(struct v2gSignatureValueType* v2gSignatureValueType);
-void init_v2gEVSEFinePositioningSetupParametersType(struct v2gEVSEFinePositioningSetupParametersType* v2gEVSEFinePositioningSetupParametersType);
-void init_v2gAlignmentCheckResType(struct v2gAlignmentCheckResType* v2gAlignmentCheckResType);
-void init_v2gSalesTariffType(struct v2gSalesTariffType* v2gSalesTariffType);
-void init_v2gFinePositioningSetupReqType(struct v2gFinePositioningSetupReqType* v2gFinePositioningSetupReqType);
-void init_v2gSubCertificatesType(struct v2gSubCertificatesType* v2gSubCertificatesType);
-void init_v2gCertificateInstallationResType(struct v2gCertificateInstallationResType* v2gCertificateInstallationResType);
-void init_v2gMeterInfoType(struct v2gMeterInfoType* v2gMeterInfoType);
-void init_v2gChargeLoopReqType(struct v2gChargeLoopReqType* v2gChargeLoopReqType);
-void init_v2gMessageHeaderType(struct v2gMessageHeaderType* v2gMessageHeaderType);
-void init_v2gSignatureType(struct v2gSignatureType* v2gSignatureType);
-void init_v2gBodyType(struct v2gBodyType* v2gBodyType);
-void init_v2gFinePositioningReqType(struct v2gFinePositioningReqType* v2gFinePositioningReqType);
-void init_v2gPMaxScheduleEntryType(struct v2gPMaxScheduleEntryType* v2gPMaxScheduleEntryType);
-void init_v2gPreChargeReqType(struct v2gPreChargeReqType* v2gPreChargeReqType);
-void init_v2gVehicleCheckInResType(struct v2gVehicleCheckInResType* v2gVehicleCheckInResType);
-void init_v2gV2GRequestType(struct v2gV2GRequestType* v2gV2GRequestType);
-void init_v2gLF_EVSEFinePositioningParametersType(struct v2gLF_EVSEFinePositioningParametersType* v2gLF_EVSEFinePositioningParametersType);
-void init_v2gSignaturePropertiesType(struct v2gSignaturePropertiesType* v2gSignaturePropertiesType);
-void init_v2gMagneticVectorSetupListType(struct v2gMagneticVectorSetupListType* v2gMagneticVectorSetupListType);
-void init_v2gSensorMeasurementsType(struct v2gSensorMeasurementsType* v2gSensorMeasurementsType);
-void init_v2gAC_EVSEBidirectionalParameterType(struct v2gAC_EVSEBidirectionalParameterType* v2gAC_EVSEBidirectionalParameterType);
-void init_v2gConsumptionCostType(struct v2gConsumptionCostType* v2gConsumptionCostType);
-void init_v2gAuthorizationResType(struct v2gAuthorizationResType* v2gAuthorizationResType);
-void init_v2gGeneric_EVFinePositioningParametersType(struct v2gGeneric_EVFinePositioningParametersType* v2gGeneric_EVFinePositioningParametersType);
-void init_v2gEVSEStatusType(struct v2gEVSEStatusType* v2gEVSEStatusType);
-void init_v2gX509IssuerSerialType(struct v2gX509IssuerSerialType* v2gX509IssuerSerialType);
-void init_v2gAC_EVBidirectionalParameterType(struct v2gAC_EVBidirectionalParameterType* v2gAC_EVBidirectionalParameterType);
-void init_v2gEVFinePositioningSetupParametersType(struct v2gEVFinePositioningSetupParametersType* v2gEVFinePositioningSetupParametersType);
-void init_v2gMV_EVSEFinePositioningSetupParametersType(struct v2gMV_EVSEFinePositioningSetupParametersType* v2gMV_EVSEFinePositioningSetupParametersType);
-void init_v2gMeteringReceiptReqType(struct v2gMeteringReceiptReqType* v2gMeteringReceiptReqType);
-void init_v2gAuthorizationReqType(struct v2gAuthorizationReqType* v2gAuthorizationReqType);
-void init_v2gChargingStatusReqType(struct v2gChargingStatusReqType* v2gChargingStatusReqType);
-void init_v2gManifestType(struct v2gManifestType* v2gManifestType);
-void init_v2gSensorType(struct v2gSensorType* v2gSensorType);
-void init_v2gAC_EVChargeParameterType(struct v2gAC_EVChargeParameterType* v2gAC_EVChargeParameterType);
-void init_v2gMagneticVectorListType(struct v2gMagneticVectorListType* v2gMagneticVectorListType);
-void init_v2gAlignmentCheckReqType(struct v2gAlignmentCheckReqType* v2gAlignmentCheckReqType);
-void init_v2gEVSEErrorInformationType(struct v2gEVSEErrorInformationType* v2gEVSEErrorInformationType);
-void init_v2gWPT_EVSEChargeParameterType(struct v2gWPT_EVSEChargeParameterType* v2gWPT_EVSEChargeParameterType);
-void init_v2gDisplayParametersType(struct v2gDisplayParametersType* v2gDisplayParametersType);
-void init_v2gSignatureMethodType(struct v2gSignatureMethodType* v2gSignatureMethodType);
-void init_v2gTargetPositionType(struct v2gTargetPositionType* v2gTargetPositionType);
-void init_v2gEVFinePositioningParametersType(struct v2gEVFinePositioningParametersType* v2gEVFinePositioningParametersType);
-void init_v2gVehicleCheckOutReqType(struct v2gVehicleCheckOutReqType* v2gVehicleCheckOutReqType);
-void init_v2gFinePositioningSetupResType(struct v2gFinePositioningSetupResType* v2gFinePositioningSetupResType);
-void init_v2gSAScheduleListType(struct v2gSAScheduleListType* v2gSAScheduleListType);
-void init_v2gSystemStatusReqType(struct v2gSystemStatusReqType* v2gSystemStatusReqType);
-void init_v2gCertificateChainType(struct v2gCertificateChainType* v2gCertificateChainType);
-void init_v2gCostType(struct v2gCostType* v2gCostType);
-void init_v2gServiceType(struct v2gServiceType* v2gServiceType);
-void init_v2gServiceParameterListType(struct v2gServiceParameterListType* v2gServiceParameterListType);
-void init_v2gSignedInfoType(struct v2gSignedInfoType* v2gSignedInfoType);
-void init_v2gEVErrorInformationType(struct v2gEVErrorInformationType* v2gEVErrorInformationType);
-void init_v2gListOfRootCertificateIDsType(struct v2gListOfRootCertificateIDsType* v2gListOfRootCertificateIDsType);
-void init_v2gSPKIDataType(struct v2gSPKIDataType* v2gSPKIDataType);
-void init_v2gDC_BidirectionalControlReqType(struct v2gDC_BidirectionalControlReqType* v2gDC_BidirectionalControlReqType);
-void init_v2gPairingResType(struct v2gPairingResType* v2gPairingResType);
-void init_v2gCartesianCoordinatesType(struct v2gCartesianCoordinatesType* v2gCartesianCoordinatesType);
-void init_v2gChargeParameterDiscoveryReqType(struct v2gChargeParameterDiscoveryReqType* v2gChargeParameterDiscoveryReqType);
-void init_v2gChargeParameterDiscoveryResType(struct v2gChargeParameterDiscoveryResType* v2gChargeParameterDiscoveryResType);
-void init_v2gRSAKeyValueType(struct v2gRSAKeyValueType* v2gRSAKeyValueType);
-void init_v2gLFA_EVFinePositioningSetupParametersType(struct v2gLFA_EVFinePositioningSetupParametersType* v2gLFA_EVFinePositioningSetupParametersType);
-void init_v2gSelectedServiceType(struct v2gSelectedServiceType* v2gSelectedServiceType);
-void init_v2gSignaturePropertyType(struct v2gSignaturePropertyType* v2gSignaturePropertyType);
-void init_v2gAC_BidirectionalControlResType(struct v2gAC_BidirectionalControlResType* v2gAC_BidirectionalControlResType);
-void init_v2gPGPDataType(struct v2gPGPDataType* v2gPGPDataType);
-void init_v2gSystemStatusResType(struct v2gSystemStatusResType* v2gSystemStatusResType);
-void init_v2gCertificateUpdateResType(struct v2gCertificateUpdateResType* v2gCertificateUpdateResType);
-void init_v2gParameterSetType(struct v2gParameterSetType* v2gParameterSetType);
-void init_v2gSAScheduleTupleType(struct v2gSAScheduleTupleType* v2gSAScheduleTupleType);
-void init_v2gDSAKeyValueType(struct v2gDSAKeyValueType* v2gDSAKeyValueType);
-void init_v2gMagneticVectorType(struct v2gMagneticVectorType* v2gMagneticVectorType);
-void init_v2gServiceIDListType(struct v2gServiceIDListType* v2gServiceIDListType);
-void init_v2gX509DataType(struct v2gX509DataType* v2gX509DataType);
-void init_v2gEVEnergyTransferParameterType(struct v2gEVEnergyTransferParameterType* v2gEVEnergyTransferParameterType);
-void init_v2gPreChargeResType(struct v2gPreChargeResType* v2gPreChargeResType);
-void init_v2gFinePositioningResType(struct v2gFinePositioningResType* v2gFinePositioningResType);
-void init_v2gLFA_EVSEFinePositioningSetupParametersType(struct v2gLFA_EVSEFinePositioningSetupParametersType* v2gLFA_EVSEFinePositioningSetupParametersType);
-void init_v2gMinimumPMaxRequestType(struct v2gMinimumPMaxRequestType* v2gMinimumPMaxRequestType);
-void init_v2gCanonicalizationMethodType(struct v2gCanonicalizationMethodType* v2gCanonicalizationMethodType);
-void init_v2gCertificateInstallationReqType(struct v2gCertificateInstallationReqType* v2gCertificateInstallationReqType);
-void init_v2gVehicleCheckInReqType(struct v2gVehicleCheckInReqType* v2gVehicleCheckInReqType);
-void init_v2gMV_EVSEFinePositioningParametersType(struct v2gMV_EVSEFinePositioningParametersType* v2gMV_EVSEFinePositioningParametersType);
-void init_v2gPowerDeliveryResType(struct v2gPowerDeliveryResType* v2gPowerDeliveryResType);
-void init_v2gEVSEEnergyTransferParameterType(struct v2gEVSEEnergyTransferParameterType* v2gEVSEEnergyTransferParameterType);
-void init_v2gDiffieHellmanPublickeyType(struct v2gDiffieHellmanPublickeyType* v2gDiffieHellmanPublickeyType);
-void init_v2gV2GResponseType(struct v2gV2GResponseType* v2gV2GResponseType);
-void init_v2gCableCheckResType(struct v2gCableCheckResType* v2gCableCheckResType);
-void init_v2gSalesTariffEntryType(struct v2gSalesTariffEntryType* v2gSalesTariffEntryType);
-void init_v2gChargingProfileType(struct v2gChargingProfileType* v2gChargingProfileType);
-void init_v2gServiceDiscoveryResType(struct v2gServiceDiscoveryResType* v2gServiceDiscoveryResType);
-void init_v2gPMaxScheduleType(struct v2gPMaxScheduleType* v2gPMaxScheduleType);
-void init_v2gSensorPackageType(struct v2gSensorPackageType* v2gSensorPackageType);
-void init_v2gDC_EVSEBidirectionalParameterType(struct v2gDC_EVSEBidirectionalParameterType* v2gDC_EVSEBidirectionalParameterType);
-void init_v2gDC_EVSEChargeParameterType(struct v2gDC_EVSEChargeParameterType* v2gDC_EVSEChargeParameterType);
-void init_v2gConnectChargingDeviceReqType(struct v2gConnectChargingDeviceReqType* v2gConnectChargingDeviceReqType);
-void init_v2gCertificateUpdateReqType(struct v2gCertificateUpdateReqType* v2gCertificateUpdateReqType);
-void init_v2gKeyInfoType(struct v2gKeyInfoType* v2gKeyInfoType);
-void init_v2gWeldingDetectionResType(struct v2gWeldingDetectionResType* v2gWeldingDetectionResType);
-void init_v2gPhysicalValueType(struct v2gPhysicalValueType* v2gPhysicalValueType);
-void init_v2gPaymentServiceSelectionReqType(struct v2gPaymentServiceSelectionReqType* v2gPaymentServiceSelectionReqType);
-void init_v2gSensorListType(struct v2gSensorListType* v2gSensorListType);
-void init_v2gPairingReqType(struct v2gPairingReqType* v2gPairingReqType);
-void init_v2gDisconnectChargingDeviceReqType(struct v2gDisconnectChargingDeviceReqType* v2gDisconnectChargingDeviceReqType);
-void init_v2gParameterType(struct v2gParameterType* v2gParameterType);
-void init_v2gEVSEFinePositioningParametersType(struct v2gEVSEFinePositioningParametersType* v2gEVSEFinePositioningParametersType);
-void init_v2gAC_EVSEChargeParameterType(struct v2gAC_EVSEChargeParameterType* v2gAC_EVSEChargeParameterType);
-void init_v2gServiceDiscoveryReqType(struct v2gServiceDiscoveryReqType* v2gServiceDiscoveryReqType);
-void init_v2gConnectChargingDeviceResType(struct v2gConnectChargingDeviceResType* v2gConnectChargingDeviceResType);
-void init_v2gPowerDemandReqType(struct v2gPowerDemandReqType* v2gPowerDemandReqType);
-void init_v2gLFA_EVFinePositioningParametersType(struct v2gLFA_EVFinePositioningParametersType* v2gLFA_EVFinePositioningParametersType);
-void init_v2gTransformType(struct v2gTransformType* v2gTransformType);
-void init_v2gObjectType(struct v2gObjectType* v2gObjectType);
-void init_v2gPowerDeliveryReqType(struct v2gPowerDeliveryReqType* v2gPowerDeliveryReqType);
-void init_v2gGeneric_EVSEFinePositioningParametersType(struct v2gGeneric_EVSEFinePositioningParametersType* v2gGeneric_EVSEFinePositioningParametersType);
-void init_v2gSensorPackageListType(struct v2gSensorPackageListType* v2gSensorPackageListType);
-void init_v2gPaymentDetailsResType(struct v2gPaymentDetailsResType* v2gPaymentDetailsResType);
-void init_v2gAnonType_V2G_Message(struct v2gAnonType_V2G_Message* v2gAnonType_V2G_Message);
-void init_v2gAC_BidirectionalControlReqType(struct v2gAC_BidirectionalControlReqType* v2gAC_BidirectionalControlReqType);
-void init_v2gBodyBaseType(struct v2gBodyBaseType* v2gBodyBaseType);
-void init_v2gSessionStopReqType(struct v2gSessionStopReqType* v2gSessionStopReqType);
-void init_v2gEntryType(struct v2gEntryType* v2gEntryType);
-void init_v2gPowerDemandResType(struct v2gPowerDemandResType* v2gPowerDemandResType);
-void init_v2gSessionSetupResType(struct v2gSessionSetupResType* v2gSessionSetupResType);
-void init_v2gVehicleCheckOutResType(struct v2gVehicleCheckOutResType* v2gVehicleCheckOutResType);
-void init_v2gKeyValueType(struct v2gKeyValueType* v2gKeyValueType);
-void init_v2gEMAIDType(struct v2gEMAIDType* v2gEMAIDType);
-void init_v2gTransformsType(struct v2gTransformsType* v2gTransformsType);
-void init_v2gCurrentDemandReqType(struct v2gCurrentDemandReqType* v2gCurrentDemandReqType);
-void init_v2gRetrievalMethodType(struct v2gRetrievalMethodType* v2gRetrievalMethodType);
-void init_v2gServiceListType(struct v2gServiceListType* v2gServiceListType);
-void init_v2gDC_EVBidirectionalParameterType(struct v2gDC_EVBidirectionalParameterType* v2gDC_EVBidirectionalParameterType);
-void init_v2gServiceDetailResType(struct v2gServiceDetailResType* v2gServiceDetailResType);
-void init_v2gSelectedServiceListType(struct v2gSelectedServiceListType* v2gSelectedServiceListType);
-void init_v2gRelativeTimeIntervalType(struct v2gRelativeTimeIntervalType* v2gRelativeTimeIntervalType);
-void init_v2gDisconnectChargingDeviceResType(struct v2gDisconnectChargingDeviceResType* v2gDisconnectChargingDeviceResType);
-void init_v2gContractSignatureEncryptedPrivateKeyType(struct v2gContractSignatureEncryptedPrivateKeyType* v2gContractSignatureEncryptedPrivateKeyType);
-void init_v2gChargingStatusResType(struct v2gChargingStatusResType* v2gChargingStatusResType);
-void init_v2gPaymentDetailsReqType(struct v2gPaymentDetailsReqType* v2gPaymentDetailsReqType);
-void init_v2gMagneticVectorSetupType(struct v2gMagneticVectorSetupType* v2gMagneticVectorSetupType);
-void init_v2gDC_EVChargeParameterType(struct v2gDC_EVChargeParameterType* v2gDC_EVChargeParameterType);
-void init_v2gReferenceType(struct v2gReferenceType* v2gReferenceType);
-void init_v2gServiceDetailReqType(struct v2gServiceDetailReqType* v2gServiceDetailReqType);
-void init_v2gPaymentOptionListType(struct v2gPaymentOptionListType* v2gPaymentOptionListType);
-void init_v2gCurrentDemandResType(struct v2gCurrentDemandResType* v2gCurrentDemandResType);
-void init_v2gDC_BidirectionalControlResType(struct v2gDC_BidirectionalControlResType* v2gDC_BidirectionalControlResType);
-void init_v2gWPT_EVChargeParameterType(struct v2gWPT_EVChargeParameterType* v2gWPT_EVChargeParameterType);
-void init_v2gSessionSetupReqType(struct v2gSessionSetupReqType* v2gSessionSetupReqType);
-void init_v2gDigestMethodType(struct v2gDigestMethodType* v2gDigestMethodType);
+void init_iso2EXIDocument(struct iso2EXIDocument* exiDoc);
+#if DEPLOY_ISO2_CODEC_FRAGMENT == SUPPORT_YES
+void init_iso2EXIFragment(struct iso2EXIFragment* exiFrag);
+#endif /* DEPLOY_ISO2_CODEC_FRAGMENT */
+void init_iso2RetrievalMethodType(struct iso2RetrievalMethodType* iso2RetrievalMethodType);
+void init_iso2AuthorizationResType(struct iso2AuthorizationResType* iso2AuthorizationResType);
+void init_iso2MV_EVSEFinePositioningSetupParametersType(struct iso2MV_EVSEFinePositioningSetupParametersType* iso2MV_EVSEFinePositioningSetupParametersType);
+void init_iso2X509DataType(struct iso2X509DataType* iso2X509DataType);
+void init_iso2RSAKeyValueType(struct iso2RSAKeyValueType* iso2RSAKeyValueType);
+void init_iso2DC_BidirectionalControlResType(struct iso2DC_BidirectionalControlResType* iso2DC_BidirectionalControlResType);
+void init_iso2CostType(struct iso2CostType* iso2CostType);
+void init_iso2ChargingStatusResType(struct iso2ChargingStatusResType* iso2ChargingStatusResType);
+void init_iso2MeterInfoType(struct iso2MeterInfoType* iso2MeterInfoType);
+void init_iso2AC_EVChargeParameterType(struct iso2AC_EVChargeParameterType* iso2AC_EVChargeParameterType);
+void init_iso2AC_EVSEBidirectionalParameterType(struct iso2AC_EVSEBidirectionalParameterType* iso2AC_EVSEBidirectionalParameterType);
+void init_iso2VehicleCheckOutResType(struct iso2VehicleCheckOutResType* iso2VehicleCheckOutResType);
+void init_iso2MagneticVectorListType(struct iso2MagneticVectorListType* iso2MagneticVectorListType);
+void init_iso2CableCheckResType(struct iso2CableCheckResType* iso2CableCheckResType);
+void init_iso2ServiceDiscoveryReqType(struct iso2ServiceDiscoveryReqType* iso2ServiceDiscoveryReqType);
+void init_iso2ServiceType(struct iso2ServiceType* iso2ServiceType);
+void init_iso2ServiceParameterListType(struct iso2ServiceParameterListType* iso2ServiceParameterListType);
+void init_iso2PMaxScheduleType(struct iso2PMaxScheduleType* iso2PMaxScheduleType);
+void init_iso2SignaturePropertiesType(struct iso2SignaturePropertiesType* iso2SignaturePropertiesType);
+void init_iso2PMaxScheduleEntryType(struct iso2PMaxScheduleEntryType* iso2PMaxScheduleEntryType);
+void init_iso2SignatureType(struct iso2SignatureType* iso2SignatureType);
+void init_iso2VehicleCheckInReqType(struct iso2VehicleCheckInReqType* iso2VehicleCheckInReqType);
+void init_iso2ConnectChargingDeviceResType(struct iso2ConnectChargingDeviceResType* iso2ConnectChargingDeviceResType);
+void init_iso2WeldingDetectionResType(struct iso2WeldingDetectionResType* iso2WeldingDetectionResType);
+void init_iso2SessionStopResType(struct iso2SessionStopResType* iso2SessionStopResType);
+void init_iso2VehicleCheckInResType(struct iso2VehicleCheckInResType* iso2VehicleCheckInResType);
+void init_iso2ServiceListType(struct iso2ServiceListType* iso2ServiceListType);
+void init_iso2CertificateUpdateResType(struct iso2CertificateUpdateResType* iso2CertificateUpdateResType);
+void init_iso2FinePositioningSetupResType(struct iso2FinePositioningSetupResType* iso2FinePositioningSetupResType);
+void init_iso2AC_EVBidirectionalParameterType(struct iso2AC_EVBidirectionalParameterType* iso2AC_EVBidirectionalParameterType);
+void init_iso2DC_BidirectionalControlReqType(struct iso2DC_BidirectionalControlReqType* iso2DC_BidirectionalControlReqType);
+void init_iso2CertificateUpdateReqType(struct iso2CertificateUpdateReqType* iso2CertificateUpdateReqType);
+void init_iso2ConsumptionCostType(struct iso2ConsumptionCostType* iso2ConsumptionCostType);
+void init_iso2SAScheduleListType(struct iso2SAScheduleListType* iso2SAScheduleListType);
+void init_iso2MagneticVectorSetupType(struct iso2MagneticVectorSetupType* iso2MagneticVectorSetupType);
+void init_iso2LFA_EVSEFinePositioningSetupParametersType(struct iso2LFA_EVSEFinePositioningSetupParametersType* iso2LFA_EVSEFinePositioningSetupParametersType);
+void init_iso2PaymentOptionListType(struct iso2PaymentOptionListType* iso2PaymentOptionListType);
+void init_iso2LFA_EVSEFinePositioningParametersType(struct iso2LFA_EVSEFinePositioningParametersType* iso2LFA_EVSEFinePositioningParametersType);
+void init_iso2RelativeTimeIntervalType(struct iso2RelativeTimeIntervalType* iso2RelativeTimeIntervalType);
+void init_iso2EVFinePositioningParametersType(struct iso2EVFinePositioningParametersType* iso2EVFinePositioningParametersType);
+void init_iso2AlignmentCheckReqType(struct iso2AlignmentCheckReqType* iso2AlignmentCheckReqType);
+void init_iso2CertificateInstallationReqType(struct iso2CertificateInstallationReqType* iso2CertificateInstallationReqType);
+void init_iso2TransformsType(struct iso2TransformsType* iso2TransformsType);
+void init_iso2ObjectType(struct iso2ObjectType* iso2ObjectType);
+void init_iso2SensorOrderListType(struct iso2SensorOrderListType* iso2SensorOrderListType);
+void init_iso2ChargeParameterDiscoveryReqType(struct iso2ChargeParameterDiscoveryReqType* iso2ChargeParameterDiscoveryReqType);
+void init_iso2ParameterType(struct iso2ParameterType* iso2ParameterType);
+void init_iso2SessionStopReqType(struct iso2SessionStopReqType* iso2SessionStopReqType);
+void init_iso2SensorMeasurementsType(struct iso2SensorMeasurementsType* iso2SensorMeasurementsType);
+void init_iso2DC_EVSEChargeParameterType(struct iso2DC_EVSEChargeParameterType* iso2DC_EVSEChargeParameterType);
+void init_iso2SensorPackageListType(struct iso2SensorPackageListType* iso2SensorPackageListType);
+void init_iso2MeasurementDataListType(struct iso2MeasurementDataListType* iso2MeasurementDataListType);
+void init_iso2CertificateChainType(struct iso2CertificateChainType* iso2CertificateChainType);
+void init_iso2SignaturePropertyType(struct iso2SignaturePropertyType* iso2SignaturePropertyType);
+void init_iso2TransformType(struct iso2TransformType* iso2TransformType);
+void init_iso2EMAIDType(struct iso2EMAIDType* iso2EMAIDType);
+void init_iso2DSAKeyValueType(struct iso2DSAKeyValueType* iso2DSAKeyValueType);
+void init_iso2EntryType(struct iso2EntryType* iso2EntryType);
+void init_iso2MessageHeaderType(struct iso2MessageHeaderType* iso2MessageHeaderType);
+void init_iso2WPT_EVChargeParameterType(struct iso2WPT_EVChargeParameterType* iso2WPT_EVChargeParameterType);
+void init_iso2DisconnectChargingDeviceReqType(struct iso2DisconnectChargingDeviceReqType* iso2DisconnectChargingDeviceReqType);
+void init_iso2ChargeLoopReqType(struct iso2ChargeLoopReqType* iso2ChargeLoopReqType);
+void init_iso2V2GRequestType(struct iso2V2GRequestType* iso2V2GRequestType);
+void init_iso2MeteringReceiptResType(struct iso2MeteringReceiptResType* iso2MeteringReceiptResType);
+void init_iso2SessionSetupResType(struct iso2SessionSetupResType* iso2SessionSetupResType);
+void init_iso2AC_BidirectionalControlReqType(struct iso2AC_BidirectionalControlReqType* iso2AC_BidirectionalControlReqType);
+void init_iso2MV_EVSEFinePositioningParametersType(struct iso2MV_EVSEFinePositioningParametersType* iso2MV_EVSEFinePositioningParametersType);
+void init_iso2ReferenceType(struct iso2ReferenceType* iso2ReferenceType);
+void init_iso2EVSEEnergyTransferParameterType(struct iso2EVSEEnergyTransferParameterType* iso2EVSEEnergyTransferParameterType);
+void init_iso2MeteringReceiptReqType(struct iso2MeteringReceiptReqType* iso2MeteringReceiptReqType);
+void init_iso2KeyValueType(struct iso2KeyValueType* iso2KeyValueType);
+void init_iso2SensorListType(struct iso2SensorListType* iso2SensorListType);
+void init_iso2CurrentDemandReqType(struct iso2CurrentDemandReqType* iso2CurrentDemandReqType);
+void init_iso2FinePositioningSetupReqType(struct iso2FinePositioningSetupReqType* iso2FinePositioningSetupReqType);
+void init_iso2LFA_EVFinePositioningSetupParametersType(struct iso2LFA_EVFinePositioningSetupParametersType* iso2LFA_EVFinePositioningSetupParametersType);
+void init_iso2SAScheduleTupleType(struct iso2SAScheduleTupleType* iso2SAScheduleTupleType);
+void init_iso2WPT_EVSEChargeParameterType(struct iso2WPT_EVSEChargeParameterType* iso2WPT_EVSEChargeParameterType);
+void init_iso2FinePositioningResType(struct iso2FinePositioningResType* iso2FinePositioningResType);
+void init_iso2BodyBaseType(struct iso2BodyBaseType* iso2BodyBaseType);
+void init_iso2ServiceDetailResType(struct iso2ServiceDetailResType* iso2ServiceDetailResType);
+void init_iso2PowerDeliveryReqType(struct iso2PowerDeliveryReqType* iso2PowerDeliveryReqType);
+void init_iso2PairingResType(struct iso2PairingResType* iso2PairingResType);
+void init_iso2AuthorizationReqType(struct iso2AuthorizationReqType* iso2AuthorizationReqType);
+void init_iso2ParameterSetType(struct iso2ParameterSetType* iso2ParameterSetType);
+void init_iso2SPKIDataType(struct iso2SPKIDataType* iso2SPKIDataType);
+void init_iso2PaymentDetailsResType(struct iso2PaymentDetailsResType* iso2PaymentDetailsResType);
+void init_iso2SignatureMethodType(struct iso2SignatureMethodType* iso2SignatureMethodType);
+void init_iso2AC_BidirectionalControlResType(struct iso2AC_BidirectionalControlResType* iso2AC_BidirectionalControlResType);
+void init_iso2VehicleCheckOutReqType(struct iso2VehicleCheckOutReqType* iso2VehicleCheckOutReqType);
+void init_iso2WeldingDetectionReqType(struct iso2WeldingDetectionReqType* iso2WeldingDetectionReqType);
+void init_iso2AlignmentCheckResType(struct iso2AlignmentCheckResType* iso2AlignmentCheckResType);
+void init_iso2PowerDemandReqType(struct iso2PowerDemandReqType* iso2PowerDemandReqType);
+void init_iso2MinimumPMaxRequestType(struct iso2MinimumPMaxRequestType* iso2MinimumPMaxRequestType);
+void init_iso2DisconnectChargingDeviceResType(struct iso2DisconnectChargingDeviceResType* iso2DisconnectChargingDeviceResType);
+void init_iso2SessionSetupReqType(struct iso2SessionSetupReqType* iso2SessionSetupReqType);
+void init_iso2PaymentDetailsReqType(struct iso2PaymentDetailsReqType* iso2PaymentDetailsReqType);
+void init_iso2Generic_EVFinePositioningParametersType(struct iso2Generic_EVFinePositioningParametersType* iso2Generic_EVFinePositioningParametersType);
+void init_iso2ConnectChargingDeviceReqType(struct iso2ConnectChargingDeviceReqType* iso2ConnectChargingDeviceReqType);
+void init_iso2AC_EVSEChargeParameterType(struct iso2AC_EVSEChargeParameterType* iso2AC_EVSEChargeParameterType);
+void init_iso2SalesTariffEntryType(struct iso2SalesTariffEntryType* iso2SalesTariffEntryType);
+void init_iso2DC_EVSEBidirectionalParameterType(struct iso2DC_EVSEBidirectionalParameterType* iso2DC_EVSEBidirectionalParameterType);
+void init_iso2CanonicalizationMethodType(struct iso2CanonicalizationMethodType* iso2CanonicalizationMethodType);
+void init_iso2DisplayParametersType(struct iso2DisplayParametersType* iso2DisplayParametersType);
+void init_iso2DC_EVBidirectionalParameterType(struct iso2DC_EVBidirectionalParameterType* iso2DC_EVBidirectionalParameterType);
+void init_iso2PaymentServiceSelectionReqType(struct iso2PaymentServiceSelectionReqType* iso2PaymentServiceSelectionReqType);
+void init_iso2MagneticVectorType(struct iso2MagneticVectorType* iso2MagneticVectorType);
+void init_iso2PhysicalValueType(struct iso2PhysicalValueType* iso2PhysicalValueType);
+void init_iso2SystemStatusReqType(struct iso2SystemStatusReqType* iso2SystemStatusReqType);
+void init_iso2SystemStatusResType(struct iso2SystemStatusResType* iso2SystemStatusResType);
+void init_iso2EVSEFinePositioningSetupParametersType(struct iso2EVSEFinePositioningSetupParametersType* iso2EVSEFinePositioningSetupParametersType);
+void init_iso2V2GResponseType(struct iso2V2GResponseType* iso2V2GResponseType);
+void init_iso2BodyType(struct iso2BodyType* iso2BodyType);
+void init_iso2PreChargeResType(struct iso2PreChargeResType* iso2PreChargeResType);
+void init_iso2EVSEFinePositioningParametersType(struct iso2EVSEFinePositioningParametersType* iso2EVSEFinePositioningParametersType);
+void init_iso2PaymentServiceSelectionResType(struct iso2PaymentServiceSelectionResType* iso2PaymentServiceSelectionResType);
+void init_iso2DigestMethodType(struct iso2DigestMethodType* iso2DigestMethodType);
+void init_iso2TargetPositionType(struct iso2TargetPositionType* iso2TargetPositionType);
+void init_iso2LFA_EVFinePositioningParametersType(struct iso2LFA_EVFinePositioningParametersType* iso2LFA_EVFinePositioningParametersType);
+void init_iso2DC_EVChargeParameterType(struct iso2DC_EVChargeParameterType* iso2DC_EVChargeParameterType);
+void init_iso2ServiceDetailReqType(struct iso2ServiceDetailReqType* iso2ServiceDetailReqType);
+void init_iso2PreChargeReqType(struct iso2PreChargeReqType* iso2PreChargeReqType);
+void init_iso2ManifestType(struct iso2ManifestType* iso2ManifestType);
+void init_iso2AnonType_V2G_Message(struct iso2AnonType_V2G_Message* iso2AnonType_V2G_Message);
+void init_iso2SelectedServiceListType(struct iso2SelectedServiceListType* iso2SelectedServiceListType);
+void init_iso2Generic_EVSEFinePositioningParametersType(struct iso2Generic_EVSEFinePositioningParametersType* iso2Generic_EVSEFinePositioningParametersType);
+void init_iso2CartesianCoordinatesType(struct iso2CartesianCoordinatesType* iso2CartesianCoordinatesType);
+void init_iso2KeyInfoType(struct iso2KeyInfoType* iso2KeyInfoType);
+void init_iso2SubCertificatesType(struct iso2SubCertificatesType* iso2SubCertificatesType);
+void init_iso2ListOfRootCertificateIDsType(struct iso2ListOfRootCertificateIDsType* iso2ListOfRootCertificateIDsType);
+void init_iso2EVEnergyTransferParameterType(struct iso2EVEnergyTransferParameterType* iso2EVEnergyTransferParameterType);
+void init_iso2ContractSignatureEncryptedPrivateKeyType(struct iso2ContractSignatureEncryptedPrivateKeyType* iso2ContractSignatureEncryptedPrivateKeyType);
+void init_iso2MagneticVectorSetupListType(struct iso2MagneticVectorSetupListType* iso2MagneticVectorSetupListType);
+void init_iso2PairingReqType(struct iso2PairingReqType* iso2PairingReqType);
+void init_iso2CurrentDemandResType(struct iso2CurrentDemandResType* iso2CurrentDemandResType);
+void init_iso2X509IssuerSerialType(struct iso2X509IssuerSerialType* iso2X509IssuerSerialType);
+void init_iso2ChargingStatusReqType(struct iso2ChargingStatusReqType* iso2ChargingStatusReqType);
+void init_iso2CertificateInstallationResType(struct iso2CertificateInstallationResType* iso2CertificateInstallationResType);
+void init_iso2SensorPackageType(struct iso2SensorPackageType* iso2SensorPackageType);
+void init_iso2PGPDataType(struct iso2PGPDataType* iso2PGPDataType);
+void init_iso2ServiceDiscoveryResType(struct iso2ServiceDiscoveryResType* iso2ServiceDiscoveryResType);
+void init_iso2ServiceIDListType(struct iso2ServiceIDListType* iso2ServiceIDListType);
+void init_iso2EVFinePositioningSetupParametersType(struct iso2EVFinePositioningSetupParametersType* iso2EVFinePositioningSetupParametersType);
+void init_iso2ChargeParameterDiscoveryResType(struct iso2ChargeParameterDiscoveryResType* iso2ChargeParameterDiscoveryResType);
+void init_iso2PowerDemandResType(struct iso2PowerDemandResType* iso2PowerDemandResType);
+void init_iso2ChargingProfileType(struct iso2ChargingProfileType* iso2ChargingProfileType);
+void init_iso2FinePositioningReqType(struct iso2FinePositioningReqType* iso2FinePositioningReqType);
+void init_iso2SalesTariffType(struct iso2SalesTariffType* iso2SalesTariffType);
+void init_iso2SensorType(struct iso2SensorType* iso2SensorType);
+void init_iso2SignatureValueType(struct iso2SignatureValueType* iso2SignatureValueType);
+void init_iso2SignedInfoType(struct iso2SignedInfoType* iso2SignedInfoType);
+void init_iso2PowerDeliveryResType(struct iso2PowerDeliveryResType* iso2PowerDeliveryResType);
+void init_iso2CableCheckReqType(struct iso2CableCheckReqType* iso2CableCheckReqType);
+void init_iso2SelectedServiceType(struct iso2SelectedServiceType* iso2SelectedServiceType);
+void init_iso2DiffieHellmanPublickeyType(struct iso2DiffieHellmanPublickeyType* iso2DiffieHellmanPublickeyType);
+void init_iso2EVSEStatusType(struct iso2EVSEStatusType* iso2EVSEStatusType);
-#endif /* DEPLOY_ISO_CODEC */
+#endif /* DEPLOY_ISO2_CODEC */
#ifdef __cplusplus
}
diff --git a/src/codec/v2gEXIDatatypesDecoder.c b/src/iso2/iso2EXIDatatypesDecoder.c
similarity index 52%
rename from src/codec/v2gEXIDatatypesDecoder.c
rename to src/iso2/iso2EXIDatatypesDecoder.c
index 182ce89..ee29221 100644
--- a/src/codec/v2gEXIDatatypesDecoder.c
+++ b/src/iso2/iso2EXIDatatypesDecoder.c
@@ -18,7 +18,7 @@
/*******************************************************************
*
* @author Daniel.Peintner.EXT@siemens.com
- * @version 2017-03-02
+ * @version 2017-03-23
* @contact Joerg.Heuer@siemens.com
*
* Code generated by EXIdizer
@@ -30,18 +30,18 @@
-#include "v2gEXIDatatypesDecoder.h"
+#include "iso2EXIDatatypesDecoder.h"
#include "DecoderChannel.h"
#include "EXIHeaderDecoder.h"
-#include "v2gEXIDatatypes.h"
+#include "iso2EXIDatatypes.h"
#include "ErrorCodes.h"
-#ifndef EXI_v2g_DATATYPES_DECODER_C
-#define EXI_v2g_DATATYPES_DECODER_C
+#ifndef EXI_iso2_DATATYPES_DECODER_C
+#define EXI_iso2_DATATYPES_DECODER_C
-#if DEPLOY_ISO_CODEC == SUPPORT_YES
+#if DEPLOY_ISO2_CODEC == SUPPORT_YES
/** event-code */
static uint32_t eventCode;
@@ -49,198 +49,216 @@ static int errn;
static uint32_t uint32;
/* Forward Declarations */
-static int decode_v2gSignatureValueType(bitstream_t* stream, struct v2gSignatureValueType* v2gSignatureValueType);
-static int decode_v2gEVSEFinePositioningSetupParametersType(bitstream_t* stream, struct v2gEVSEFinePositioningSetupParametersType* v2gEVSEFinePositioningSetupParametersType);
-static int decode_v2gAlignmentCheckResType(bitstream_t* stream, struct v2gAlignmentCheckResType* v2gAlignmentCheckResType);
-static int decode_v2gSalesTariffType(bitstream_t* stream, struct v2gSalesTariffType* v2gSalesTariffType);
-static int decode_v2gFinePositioningSetupReqType(bitstream_t* stream, struct v2gFinePositioningSetupReqType* v2gFinePositioningSetupReqType);
-static int decode_v2gSubCertificatesType(bitstream_t* stream, struct v2gSubCertificatesType* v2gSubCertificatesType);
-static int decode_v2gCertificateInstallationResType(bitstream_t* stream, struct v2gCertificateInstallationResType* v2gCertificateInstallationResType);
-static int decode_v2gMeterInfoType(bitstream_t* stream, struct v2gMeterInfoType* v2gMeterInfoType);
-static int decode_v2gChargeLoopReqType(bitstream_t* stream, struct v2gChargeLoopReqType* v2gChargeLoopReqType);
-static int decode_v2gMessageHeaderType(bitstream_t* stream, struct v2gMessageHeaderType* v2gMessageHeaderType);
-static int decode_v2gSignatureType(bitstream_t* stream, struct v2gSignatureType* v2gSignatureType);
-static int decode_v2gBodyType(bitstream_t* stream, struct v2gBodyType* v2gBodyType);
-static int decode_v2gFinePositioningReqType(bitstream_t* stream, struct v2gFinePositioningReqType* v2gFinePositioningReqType);
-static int decode_v2gPMaxScheduleEntryType(bitstream_t* stream, struct v2gPMaxScheduleEntryType* v2gPMaxScheduleEntryType);
-static int decode_v2gPreChargeReqType(bitstream_t* stream, struct v2gPreChargeReqType* v2gPreChargeReqType);
-static int decode_v2gVehicleCheckInResType(bitstream_t* stream, struct v2gVehicleCheckInResType* v2gVehicleCheckInResType);
-static int decode_v2gV2GRequestType(bitstream_t* stream, struct v2gV2GRequestType* v2gV2GRequestType);
-static int decode_v2gLF_EVSEFinePositioningParametersType(bitstream_t* stream, struct v2gLF_EVSEFinePositioningParametersType* v2gLF_EVSEFinePositioningParametersType);
-static int decode_v2gSignaturePropertiesType(bitstream_t* stream, struct v2gSignaturePropertiesType* v2gSignaturePropertiesType);
-static int decode_v2gMagneticVectorSetupListType(bitstream_t* stream, struct v2gMagneticVectorSetupListType* v2gMagneticVectorSetupListType);
-static int decode_v2gSensorMeasurementsType(bitstream_t* stream, struct v2gSensorMeasurementsType* v2gSensorMeasurementsType);
-static int decode_v2gAC_EVSEBidirectionalParameterType(bitstream_t* stream, struct v2gAC_EVSEBidirectionalParameterType* v2gAC_EVSEBidirectionalParameterType);
-static int decode_v2gConsumptionCostType(bitstream_t* stream, struct v2gConsumptionCostType* v2gConsumptionCostType);
-static int decode_v2gAuthorizationResType(bitstream_t* stream, struct v2gAuthorizationResType* v2gAuthorizationResType);
-static int decode_v2gGeneric_EVFinePositioningParametersType(bitstream_t* stream, struct v2gGeneric_EVFinePositioningParametersType* v2gGeneric_EVFinePositioningParametersType);
-static int decode_v2gEVSEStatusType(bitstream_t* stream, struct v2gEVSEStatusType* v2gEVSEStatusType);
-static int decode_v2gX509IssuerSerialType(bitstream_t* stream, struct v2gX509IssuerSerialType* v2gX509IssuerSerialType);
-static int decode_v2gAC_EVBidirectionalParameterType(bitstream_t* stream, struct v2gAC_EVBidirectionalParameterType* v2gAC_EVBidirectionalParameterType);
-static int decode_v2gEVFinePositioningSetupParametersType(bitstream_t* stream, struct v2gEVFinePositioningSetupParametersType* v2gEVFinePositioningSetupParametersType);
-static int decode_v2gMV_EVSEFinePositioningSetupParametersType(bitstream_t* stream, struct v2gMV_EVSEFinePositioningSetupParametersType* v2gMV_EVSEFinePositioningSetupParametersType);
-static int decode_v2gMeteringReceiptReqType(bitstream_t* stream, struct v2gMeteringReceiptReqType* v2gMeteringReceiptReqType);
-static int decode_v2gAuthorizationReqType(bitstream_t* stream, struct v2gAuthorizationReqType* v2gAuthorizationReqType);
-static int decode_v2gChargingStatusReqType(bitstream_t* stream, struct v2gChargingStatusReqType* v2gChargingStatusReqType);
-static int decode_v2gManifestType(bitstream_t* stream, struct v2gManifestType* v2gManifestType);
-static int decode_v2gSensorType(bitstream_t* stream, struct v2gSensorType* v2gSensorType);
-static int decode_v2gAC_EVChargeParameterType(bitstream_t* stream, struct v2gAC_EVChargeParameterType* v2gAC_EVChargeParameterType);
-static int decode_v2gMagneticVectorListType(bitstream_t* stream, struct v2gMagneticVectorListType* v2gMagneticVectorListType);
-static int decode_v2gAlignmentCheckReqType(bitstream_t* stream, struct v2gAlignmentCheckReqType* v2gAlignmentCheckReqType);
-static int decode_v2gEVSEErrorInformationType(bitstream_t* stream, struct v2gEVSEErrorInformationType* v2gEVSEErrorInformationType);
-static int decode_v2gWPT_EVSEChargeParameterType(bitstream_t* stream, struct v2gWPT_EVSEChargeParameterType* v2gWPT_EVSEChargeParameterType);
-static int decode_v2gDisplayParametersType(bitstream_t* stream, struct v2gDisplayParametersType* v2gDisplayParametersType);
-static int decode_v2gSignatureMethodType(bitstream_t* stream, struct v2gSignatureMethodType* v2gSignatureMethodType);
-static int decode_v2gTargetPositionType(bitstream_t* stream, struct v2gTargetPositionType* v2gTargetPositionType);
-static int decode_v2gEVFinePositioningParametersType(bitstream_t* stream, struct v2gEVFinePositioningParametersType* v2gEVFinePositioningParametersType);
-static int decode_v2gVehicleCheckOutReqType(bitstream_t* stream, struct v2gVehicleCheckOutReqType* v2gVehicleCheckOutReqType);
-static int decode_v2gFinePositioningSetupResType(bitstream_t* stream, struct v2gFinePositioningSetupResType* v2gFinePositioningSetupResType);
-static int decode_v2gSAScheduleListType(bitstream_t* stream, struct v2gSAScheduleListType* v2gSAScheduleListType);
-static int decode_v2gSystemStatusReqType(bitstream_t* stream, struct v2gSystemStatusReqType* v2gSystemStatusReqType);
-static int decode_v2gCertificateChainType(bitstream_t* stream, struct v2gCertificateChainType* v2gCertificateChainType);
-static int decode_v2gCostType(bitstream_t* stream, struct v2gCostType* v2gCostType);
-static int decode_v2gServiceType(bitstream_t* stream, struct v2gServiceType* v2gServiceType);
-static int decode_v2gServiceParameterListType(bitstream_t* stream, struct v2gServiceParameterListType* v2gServiceParameterListType);
-static int decode_v2gSignedInfoType(bitstream_t* stream, struct v2gSignedInfoType* v2gSignedInfoType);
-static int decode_v2gEVErrorInformationType(bitstream_t* stream, struct v2gEVErrorInformationType* v2gEVErrorInformationType);
-static int decode_v2gListOfRootCertificateIDsType(bitstream_t* stream, struct v2gListOfRootCertificateIDsType* v2gListOfRootCertificateIDsType);
-static int decode_v2gSPKIDataType(bitstream_t* stream, struct v2gSPKIDataType* v2gSPKIDataType);
-static int decode_v2gDC_BidirectionalControlReqType(bitstream_t* stream, struct v2gDC_BidirectionalControlReqType* v2gDC_BidirectionalControlReqType);
-static int decode_v2gPairingResType(bitstream_t* stream, struct v2gPairingResType* v2gPairingResType);
-static int decode_v2gCartesianCoordinatesType(bitstream_t* stream, struct v2gCartesianCoordinatesType* v2gCartesianCoordinatesType);
-static int decode_v2gChargeParameterDiscoveryReqType(bitstream_t* stream, struct v2gChargeParameterDiscoveryReqType* v2gChargeParameterDiscoveryReqType);
-static int decode_v2gChargeParameterDiscoveryResType(bitstream_t* stream, struct v2gChargeParameterDiscoveryResType* v2gChargeParameterDiscoveryResType);
-static int decode_v2gRSAKeyValueType(bitstream_t* stream, struct v2gRSAKeyValueType* v2gRSAKeyValueType);
-static int decode_v2gLFA_EVFinePositioningSetupParametersType(bitstream_t* stream, struct v2gLFA_EVFinePositioningSetupParametersType* v2gLFA_EVFinePositioningSetupParametersType);
-static int decode_v2gSelectedServiceType(bitstream_t* stream, struct v2gSelectedServiceType* v2gSelectedServiceType);
-static int decode_v2gSignaturePropertyType(bitstream_t* stream, struct v2gSignaturePropertyType* v2gSignaturePropertyType);
-static int decode_v2gAC_BidirectionalControlResType(bitstream_t* stream, struct v2gAC_BidirectionalControlResType* v2gAC_BidirectionalControlResType);
-static int decode_v2gPGPDataType(bitstream_t* stream, struct v2gPGPDataType* v2gPGPDataType);
-static int decode_v2gSystemStatusResType(bitstream_t* stream, struct v2gSystemStatusResType* v2gSystemStatusResType);
-static int decode_v2gCertificateUpdateResType(bitstream_t* stream, struct v2gCertificateUpdateResType* v2gCertificateUpdateResType);
-static int decode_v2gParameterSetType(bitstream_t* stream, struct v2gParameterSetType* v2gParameterSetType);
-static int decode_v2gSAScheduleTupleType(bitstream_t* stream, struct v2gSAScheduleTupleType* v2gSAScheduleTupleType);
-static int decode_v2gDSAKeyValueType(bitstream_t* stream, struct v2gDSAKeyValueType* v2gDSAKeyValueType);
-static int decode_v2gMagneticVectorType(bitstream_t* stream, struct v2gMagneticVectorType* v2gMagneticVectorType);
-static int decode_v2gServiceIDListType(bitstream_t* stream, struct v2gServiceIDListType* v2gServiceIDListType);
-static int decode_v2gX509DataType(bitstream_t* stream, struct v2gX509DataType* v2gX509DataType);
-static int decode_v2gEVEnergyTransferParameterType(bitstream_t* stream, struct v2gEVEnergyTransferParameterType* v2gEVEnergyTransferParameterType);
-static int decode_v2gPreChargeResType(bitstream_t* stream, struct v2gPreChargeResType* v2gPreChargeResType);
-static int decode_v2gFinePositioningResType(bitstream_t* stream, struct v2gFinePositioningResType* v2gFinePositioningResType);
-static int decode_v2gLFA_EVSEFinePositioningSetupParametersType(bitstream_t* stream, struct v2gLFA_EVSEFinePositioningSetupParametersType* v2gLFA_EVSEFinePositioningSetupParametersType);
-static int decode_v2gMinimumPMaxRequestType(bitstream_t* stream, struct v2gMinimumPMaxRequestType* v2gMinimumPMaxRequestType);
-static int decode_v2gCanonicalizationMethodType(bitstream_t* stream, struct v2gCanonicalizationMethodType* v2gCanonicalizationMethodType);
-static int decode_v2gCertificateInstallationReqType(bitstream_t* stream, struct v2gCertificateInstallationReqType* v2gCertificateInstallationReqType);
-static int decode_v2gVehicleCheckInReqType(bitstream_t* stream, struct v2gVehicleCheckInReqType* v2gVehicleCheckInReqType);
-static int decode_v2gMV_EVSEFinePositioningParametersType(bitstream_t* stream, struct v2gMV_EVSEFinePositioningParametersType* v2gMV_EVSEFinePositioningParametersType);
-static int decode_v2gPowerDeliveryResType(bitstream_t* stream, struct v2gPowerDeliveryResType* v2gPowerDeliveryResType);
-static int decode_v2gEVSEEnergyTransferParameterType(bitstream_t* stream, struct v2gEVSEEnergyTransferParameterType* v2gEVSEEnergyTransferParameterType);
-static int decode_v2gDiffieHellmanPublickeyType(bitstream_t* stream, struct v2gDiffieHellmanPublickeyType* v2gDiffieHellmanPublickeyType);
-static int decode_v2gV2GResponseType(bitstream_t* stream, struct v2gV2GResponseType* v2gV2GResponseType);
-static int decode_v2gCableCheckResType(bitstream_t* stream, struct v2gCableCheckResType* v2gCableCheckResType);
-static int decode_v2gSalesTariffEntryType(bitstream_t* stream, struct v2gSalesTariffEntryType* v2gSalesTariffEntryType);
-static int decode_v2gChargingProfileType(bitstream_t* stream, struct v2gChargingProfileType* v2gChargingProfileType);
-static int decode_v2gServiceDiscoveryResType(bitstream_t* stream, struct v2gServiceDiscoveryResType* v2gServiceDiscoveryResType);
-static int decode_v2gPMaxScheduleType(bitstream_t* stream, struct v2gPMaxScheduleType* v2gPMaxScheduleType);
-static int decode_v2gSensorPackageType(bitstream_t* stream, struct v2gSensorPackageType* v2gSensorPackageType);
-static int decode_v2gDC_EVSEBidirectionalParameterType(bitstream_t* stream, struct v2gDC_EVSEBidirectionalParameterType* v2gDC_EVSEBidirectionalParameterType);
-static int decode_v2gDC_EVSEChargeParameterType(bitstream_t* stream, struct v2gDC_EVSEChargeParameterType* v2gDC_EVSEChargeParameterType);
-static int decode_v2gConnectChargingDeviceReqType(bitstream_t* stream, struct v2gConnectChargingDeviceReqType* v2gConnectChargingDeviceReqType);
-static int decode_v2gCertificateUpdateReqType(bitstream_t* stream, struct v2gCertificateUpdateReqType* v2gCertificateUpdateReqType);
-static int decode_v2gKeyInfoType(bitstream_t* stream, struct v2gKeyInfoType* v2gKeyInfoType);
-static int decode_v2gWeldingDetectionResType(bitstream_t* stream, struct v2gWeldingDetectionResType* v2gWeldingDetectionResType);
-static int decode_v2gPhysicalValueType(bitstream_t* stream, struct v2gPhysicalValueType* v2gPhysicalValueType);
-static int decode_v2gPaymentServiceSelectionReqType(bitstream_t* stream, struct v2gPaymentServiceSelectionReqType* v2gPaymentServiceSelectionReqType);
-static int decode_v2gSensorListType(bitstream_t* stream, struct v2gSensorListType* v2gSensorListType);
-static int decode_v2gPairingReqType(bitstream_t* stream, struct v2gPairingReqType* v2gPairingReqType);
-static int decode_v2gDisconnectChargingDeviceReqType(bitstream_t* stream, struct v2gDisconnectChargingDeviceReqType* v2gDisconnectChargingDeviceReqType);
-static int decode_v2gParameterType(bitstream_t* stream, struct v2gParameterType* v2gParameterType);
-static int decode_v2gEVSEFinePositioningParametersType(bitstream_t* stream, struct v2gEVSEFinePositioningParametersType* v2gEVSEFinePositioningParametersType);
-static int decode_v2gAC_EVSEChargeParameterType(bitstream_t* stream, struct v2gAC_EVSEChargeParameterType* v2gAC_EVSEChargeParameterType);
-static int decode_v2gServiceDiscoveryReqType(bitstream_t* stream, struct v2gServiceDiscoveryReqType* v2gServiceDiscoveryReqType);
-static int decode_v2gConnectChargingDeviceResType(bitstream_t* stream, struct v2gConnectChargingDeviceResType* v2gConnectChargingDeviceResType);
-static int decode_v2gPowerDemandReqType(bitstream_t* stream, struct v2gPowerDemandReqType* v2gPowerDemandReqType);
-static int decode_v2gLFA_EVFinePositioningParametersType(bitstream_t* stream, struct v2gLFA_EVFinePositioningParametersType* v2gLFA_EVFinePositioningParametersType);
-static int decode_v2gTransformType(bitstream_t* stream, struct v2gTransformType* v2gTransformType);
-static int decode_v2gObjectType(bitstream_t* stream, struct v2gObjectType* v2gObjectType);
-static int decode_v2gPowerDeliveryReqType(bitstream_t* stream, struct v2gPowerDeliveryReqType* v2gPowerDeliveryReqType);
-static int decode_v2gGeneric_EVSEFinePositioningParametersType(bitstream_t* stream, struct v2gGeneric_EVSEFinePositioningParametersType* v2gGeneric_EVSEFinePositioningParametersType);
-static int decode_v2gSensorPackageListType(bitstream_t* stream, struct v2gSensorPackageListType* v2gSensorPackageListType);
-static int decode_v2gPaymentDetailsResType(bitstream_t* stream, struct v2gPaymentDetailsResType* v2gPaymentDetailsResType);
-static int decode_v2gAnonType_V2G_Message(bitstream_t* stream, struct v2gAnonType_V2G_Message* v2gAnonType_V2G_Message);
-static int decode_v2gAC_BidirectionalControlReqType(bitstream_t* stream, struct v2gAC_BidirectionalControlReqType* v2gAC_BidirectionalControlReqType);
-static int decode_v2gBodyBaseType(bitstream_t* stream, struct v2gBodyBaseType* v2gBodyBaseType);
-static int decode_v2gSessionStopReqType(bitstream_t* stream, struct v2gSessionStopReqType* v2gSessionStopReqType);
-static int decode_v2gEntryType(bitstream_t* stream, struct v2gEntryType* v2gEntryType);
-static int decode_v2gPowerDemandResType(bitstream_t* stream, struct v2gPowerDemandResType* v2gPowerDemandResType);
-static int decode_v2gSessionSetupResType(bitstream_t* stream, struct v2gSessionSetupResType* v2gSessionSetupResType);
-static int decode_v2gVehicleCheckOutResType(bitstream_t* stream, struct v2gVehicleCheckOutResType* v2gVehicleCheckOutResType);
-static int decode_v2gKeyValueType(bitstream_t* stream, struct v2gKeyValueType* v2gKeyValueType);
-static int decode_v2gEMAIDType(bitstream_t* stream, struct v2gEMAIDType* v2gEMAIDType);
-static int decode_v2gTransformsType(bitstream_t* stream, struct v2gTransformsType* v2gTransformsType);
-static int decode_v2gCurrentDemandReqType(bitstream_t* stream, struct v2gCurrentDemandReqType* v2gCurrentDemandReqType);
-static int decode_v2gRetrievalMethodType(bitstream_t* stream, struct v2gRetrievalMethodType* v2gRetrievalMethodType);
-static int decode_v2gServiceListType(bitstream_t* stream, struct v2gServiceListType* v2gServiceListType);
-static int decode_v2gDC_EVBidirectionalParameterType(bitstream_t* stream, struct v2gDC_EVBidirectionalParameterType* v2gDC_EVBidirectionalParameterType);
-static int decode_v2gServiceDetailResType(bitstream_t* stream, struct v2gServiceDetailResType* v2gServiceDetailResType);
-static int decode_v2gSelectedServiceListType(bitstream_t* stream, struct v2gSelectedServiceListType* v2gSelectedServiceListType);
-static int decode_v2gRelativeTimeIntervalType(bitstream_t* stream, struct v2gRelativeTimeIntervalType* v2gRelativeTimeIntervalType);
-static int decode_v2gDisconnectChargingDeviceResType(bitstream_t* stream, struct v2gDisconnectChargingDeviceResType* v2gDisconnectChargingDeviceResType);
-static int decode_v2gContractSignatureEncryptedPrivateKeyType(bitstream_t* stream, struct v2gContractSignatureEncryptedPrivateKeyType* v2gContractSignatureEncryptedPrivateKeyType);
-static int decode_v2gChargingStatusResType(bitstream_t* stream, struct v2gChargingStatusResType* v2gChargingStatusResType);
-static int decode_v2gPaymentDetailsReqType(bitstream_t* stream, struct v2gPaymentDetailsReqType* v2gPaymentDetailsReqType);
-static int decode_v2gMagneticVectorSetupType(bitstream_t* stream, struct v2gMagneticVectorSetupType* v2gMagneticVectorSetupType);
-static int decode_v2gDC_EVChargeParameterType(bitstream_t* stream, struct v2gDC_EVChargeParameterType* v2gDC_EVChargeParameterType);
-static int decode_v2gReferenceType(bitstream_t* stream, struct v2gReferenceType* v2gReferenceType);
-static int decode_v2gServiceDetailReqType(bitstream_t* stream, struct v2gServiceDetailReqType* v2gServiceDetailReqType);
-static int decode_v2gPaymentOptionListType(bitstream_t* stream, struct v2gPaymentOptionListType* v2gPaymentOptionListType);
-static int decode_v2gCurrentDemandResType(bitstream_t* stream, struct v2gCurrentDemandResType* v2gCurrentDemandResType);
-static int decode_v2gDC_BidirectionalControlResType(bitstream_t* stream, struct v2gDC_BidirectionalControlResType* v2gDC_BidirectionalControlResType);
-static int decode_v2gWPT_EVChargeParameterType(bitstream_t* stream, struct v2gWPT_EVChargeParameterType* v2gWPT_EVChargeParameterType);
-static int decode_v2gSessionSetupReqType(bitstream_t* stream, struct v2gSessionSetupReqType* v2gSessionSetupReqType);
-static int decode_v2gDigestMethodType(bitstream_t* stream, struct v2gDigestMethodType* v2gDigestMethodType);
+static int decode_iso2RetrievalMethodType(bitstream_t* stream, struct iso2RetrievalMethodType* iso2RetrievalMethodType);
+static int decode_iso2AuthorizationResType(bitstream_t* stream, struct iso2AuthorizationResType* iso2AuthorizationResType);
+static int decode_iso2MV_EVSEFinePositioningSetupParametersType(bitstream_t* stream, struct iso2MV_EVSEFinePositioningSetupParametersType* iso2MV_EVSEFinePositioningSetupParametersType);
+static int decode_iso2X509DataType(bitstream_t* stream, struct iso2X509DataType* iso2X509DataType);
+static int decode_iso2RSAKeyValueType(bitstream_t* stream, struct iso2RSAKeyValueType* iso2RSAKeyValueType);
+static int decode_iso2DC_BidirectionalControlResType(bitstream_t* stream, struct iso2DC_BidirectionalControlResType* iso2DC_BidirectionalControlResType);
+static int decode_iso2CostType(bitstream_t* stream, struct iso2CostType* iso2CostType);
+static int decode_iso2ChargingStatusResType(bitstream_t* stream, struct iso2ChargingStatusResType* iso2ChargingStatusResType);
+static int decode_iso2MeterInfoType(bitstream_t* stream, struct iso2MeterInfoType* iso2MeterInfoType);
+static int decode_iso2AC_EVChargeParameterType(bitstream_t* stream, struct iso2AC_EVChargeParameterType* iso2AC_EVChargeParameterType);
+static int decode_iso2AC_EVSEBidirectionalParameterType(bitstream_t* stream, struct iso2AC_EVSEBidirectionalParameterType* iso2AC_EVSEBidirectionalParameterType);
+static int decode_iso2VehicleCheckOutResType(bitstream_t* stream, struct iso2VehicleCheckOutResType* iso2VehicleCheckOutResType);
+static int decode_iso2MagneticVectorListType(bitstream_t* stream, struct iso2MagneticVectorListType* iso2MagneticVectorListType);
+static int decode_iso2CableCheckResType(bitstream_t* stream, struct iso2CableCheckResType* iso2CableCheckResType);
+static int decode_iso2ServiceDiscoveryReqType(bitstream_t* stream, struct iso2ServiceDiscoveryReqType* iso2ServiceDiscoveryReqType);
+static int decode_iso2ServiceType(bitstream_t* stream, struct iso2ServiceType* iso2ServiceType);
+static int decode_iso2ServiceParameterListType(bitstream_t* stream, struct iso2ServiceParameterListType* iso2ServiceParameterListType);
+static int decode_iso2PMaxScheduleType(bitstream_t* stream, struct iso2PMaxScheduleType* iso2PMaxScheduleType);
+static int decode_iso2SignaturePropertiesType(bitstream_t* stream, struct iso2SignaturePropertiesType* iso2SignaturePropertiesType);
+static int decode_iso2PMaxScheduleEntryType(bitstream_t* stream, struct iso2PMaxScheduleEntryType* iso2PMaxScheduleEntryType);
+static int decode_iso2SignatureType(bitstream_t* stream, struct iso2SignatureType* iso2SignatureType);
+static int decode_iso2VehicleCheckInReqType(bitstream_t* stream, struct iso2VehicleCheckInReqType* iso2VehicleCheckInReqType);
+static int decode_iso2ConnectChargingDeviceResType(bitstream_t* stream, struct iso2ConnectChargingDeviceResType* iso2ConnectChargingDeviceResType);
+static int decode_iso2WeldingDetectionResType(bitstream_t* stream, struct iso2WeldingDetectionResType* iso2WeldingDetectionResType);
+static int decode_iso2SessionStopResType(bitstream_t* stream, struct iso2SessionStopResType* iso2SessionStopResType);
+static int decode_iso2VehicleCheckInResType(bitstream_t* stream, struct iso2VehicleCheckInResType* iso2VehicleCheckInResType);
+static int decode_iso2ServiceListType(bitstream_t* stream, struct iso2ServiceListType* iso2ServiceListType);
+static int decode_iso2CertificateUpdateResType(bitstream_t* stream, struct iso2CertificateUpdateResType* iso2CertificateUpdateResType);
+static int decode_iso2FinePositioningSetupResType(bitstream_t* stream, struct iso2FinePositioningSetupResType* iso2FinePositioningSetupResType);
+static int decode_iso2AC_EVBidirectionalParameterType(bitstream_t* stream, struct iso2AC_EVBidirectionalParameterType* iso2AC_EVBidirectionalParameterType);
+static int decode_iso2DC_BidirectionalControlReqType(bitstream_t* stream, struct iso2DC_BidirectionalControlReqType* iso2DC_BidirectionalControlReqType);
+static int decode_iso2CertificateUpdateReqType(bitstream_t* stream, struct iso2CertificateUpdateReqType* iso2CertificateUpdateReqType);
+static int decode_iso2ConsumptionCostType(bitstream_t* stream, struct iso2ConsumptionCostType* iso2ConsumptionCostType);
+static int decode_iso2SAScheduleListType(bitstream_t* stream, struct iso2SAScheduleListType* iso2SAScheduleListType);
+static int decode_iso2MagneticVectorSetupType(bitstream_t* stream, struct iso2MagneticVectorSetupType* iso2MagneticVectorSetupType);
+static int decode_iso2LFA_EVSEFinePositioningSetupParametersType(bitstream_t* stream, struct iso2LFA_EVSEFinePositioningSetupParametersType* iso2LFA_EVSEFinePositioningSetupParametersType);
+static int decode_iso2PaymentOptionListType(bitstream_t* stream, struct iso2PaymentOptionListType* iso2PaymentOptionListType);
+static int decode_iso2LFA_EVSEFinePositioningParametersType(bitstream_t* stream, struct iso2LFA_EVSEFinePositioningParametersType* iso2LFA_EVSEFinePositioningParametersType);
+static int decode_iso2RelativeTimeIntervalType(bitstream_t* stream, struct iso2RelativeTimeIntervalType* iso2RelativeTimeIntervalType);
+static int decode_iso2EVFinePositioningParametersType(bitstream_t* stream, struct iso2EVFinePositioningParametersType* iso2EVFinePositioningParametersType);
+static int decode_iso2AlignmentCheckReqType(bitstream_t* stream, struct iso2AlignmentCheckReqType* iso2AlignmentCheckReqType);
+static int decode_iso2CertificateInstallationReqType(bitstream_t* stream, struct iso2CertificateInstallationReqType* iso2CertificateInstallationReqType);
+static int decode_iso2TransformsType(bitstream_t* stream, struct iso2TransformsType* iso2TransformsType);
+static int decode_iso2ObjectType(bitstream_t* stream, struct iso2ObjectType* iso2ObjectType);
+static int decode_iso2SensorOrderListType(bitstream_t* stream, struct iso2SensorOrderListType* iso2SensorOrderListType);
+static int decode_iso2ChargeParameterDiscoveryReqType(bitstream_t* stream, struct iso2ChargeParameterDiscoveryReqType* iso2ChargeParameterDiscoveryReqType);
+static int decode_iso2ParameterType(bitstream_t* stream, struct iso2ParameterType* iso2ParameterType);
+static int decode_iso2SessionStopReqType(bitstream_t* stream, struct iso2SessionStopReqType* iso2SessionStopReqType);
+static int decode_iso2SensorMeasurementsType(bitstream_t* stream, struct iso2SensorMeasurementsType* iso2SensorMeasurementsType);
+static int decode_iso2DC_EVSEChargeParameterType(bitstream_t* stream, struct iso2DC_EVSEChargeParameterType* iso2DC_EVSEChargeParameterType);
+static int decode_iso2SensorPackageListType(bitstream_t* stream, struct iso2SensorPackageListType* iso2SensorPackageListType);
+static int decode_iso2MeasurementDataListType(bitstream_t* stream, struct iso2MeasurementDataListType* iso2MeasurementDataListType);
+static int decode_iso2CertificateChainType(bitstream_t* stream, struct iso2CertificateChainType* iso2CertificateChainType);
+static int decode_iso2SignaturePropertyType(bitstream_t* stream, struct iso2SignaturePropertyType* iso2SignaturePropertyType);
+static int decode_iso2TransformType(bitstream_t* stream, struct iso2TransformType* iso2TransformType);
+static int decode_iso2EMAIDType(bitstream_t* stream, struct iso2EMAIDType* iso2EMAIDType);
+static int decode_iso2DSAKeyValueType(bitstream_t* stream, struct iso2DSAKeyValueType* iso2DSAKeyValueType);
+static int decode_iso2EntryType(bitstream_t* stream, struct iso2EntryType* iso2EntryType);
+static int decode_iso2MessageHeaderType(bitstream_t* stream, struct iso2MessageHeaderType* iso2MessageHeaderType);
+static int decode_iso2WPT_EVChargeParameterType(bitstream_t* stream, struct iso2WPT_EVChargeParameterType* iso2WPT_EVChargeParameterType);
+static int decode_iso2DisconnectChargingDeviceReqType(bitstream_t* stream, struct iso2DisconnectChargingDeviceReqType* iso2DisconnectChargingDeviceReqType);
+static int decode_iso2ChargeLoopReqType(bitstream_t* stream, struct iso2ChargeLoopReqType* iso2ChargeLoopReqType);
+static int decode_iso2V2GRequestType(bitstream_t* stream, struct iso2V2GRequestType* iso2V2GRequestType);
+static int decode_iso2MeteringReceiptResType(bitstream_t* stream, struct iso2MeteringReceiptResType* iso2MeteringReceiptResType);
+static int decode_iso2SessionSetupResType(bitstream_t* stream, struct iso2SessionSetupResType* iso2SessionSetupResType);
+static int decode_iso2AC_BidirectionalControlReqType(bitstream_t* stream, struct iso2AC_BidirectionalControlReqType* iso2AC_BidirectionalControlReqType);
+static int decode_iso2MV_EVSEFinePositioningParametersType(bitstream_t* stream, struct iso2MV_EVSEFinePositioningParametersType* iso2MV_EVSEFinePositioningParametersType);
+static int decode_iso2ReferenceType(bitstream_t* stream, struct iso2ReferenceType* iso2ReferenceType);
+static int decode_iso2EVSEEnergyTransferParameterType(bitstream_t* stream, struct iso2EVSEEnergyTransferParameterType* iso2EVSEEnergyTransferParameterType);
+static int decode_iso2MeteringReceiptReqType(bitstream_t* stream, struct iso2MeteringReceiptReqType* iso2MeteringReceiptReqType);
+static int decode_iso2KeyValueType(bitstream_t* stream, struct iso2KeyValueType* iso2KeyValueType);
+static int decode_iso2SensorListType(bitstream_t* stream, struct iso2SensorListType* iso2SensorListType);
+static int decode_iso2CurrentDemandReqType(bitstream_t* stream, struct iso2CurrentDemandReqType* iso2CurrentDemandReqType);
+static int decode_iso2FinePositioningSetupReqType(bitstream_t* stream, struct iso2FinePositioningSetupReqType* iso2FinePositioningSetupReqType);
+static int decode_iso2LFA_EVFinePositioningSetupParametersType(bitstream_t* stream, struct iso2LFA_EVFinePositioningSetupParametersType* iso2LFA_EVFinePositioningSetupParametersType);
+static int decode_iso2SAScheduleTupleType(bitstream_t* stream, struct iso2SAScheduleTupleType* iso2SAScheduleTupleType);
+static int decode_iso2WPT_EVSEChargeParameterType(bitstream_t* stream, struct iso2WPT_EVSEChargeParameterType* iso2WPT_EVSEChargeParameterType);
+static int decode_iso2FinePositioningResType(bitstream_t* stream, struct iso2FinePositioningResType* iso2FinePositioningResType);
+static int decode_iso2BodyBaseType(bitstream_t* stream, struct iso2BodyBaseType* iso2BodyBaseType);
+static int decode_iso2ServiceDetailResType(bitstream_t* stream, struct iso2ServiceDetailResType* iso2ServiceDetailResType);
+static int decode_iso2PowerDeliveryReqType(bitstream_t* stream, struct iso2PowerDeliveryReqType* iso2PowerDeliveryReqType);
+static int decode_iso2PairingResType(bitstream_t* stream, struct iso2PairingResType* iso2PairingResType);
+static int decode_iso2AuthorizationReqType(bitstream_t* stream, struct iso2AuthorizationReqType* iso2AuthorizationReqType);
+static int decode_iso2ParameterSetType(bitstream_t* stream, struct iso2ParameterSetType* iso2ParameterSetType);
+static int decode_iso2SPKIDataType(bitstream_t* stream, struct iso2SPKIDataType* iso2SPKIDataType);
+static int decode_iso2PaymentDetailsResType(bitstream_t* stream, struct iso2PaymentDetailsResType* iso2PaymentDetailsResType);
+static int decode_iso2SignatureMethodType(bitstream_t* stream, struct iso2SignatureMethodType* iso2SignatureMethodType);
+static int decode_iso2AC_BidirectionalControlResType(bitstream_t* stream, struct iso2AC_BidirectionalControlResType* iso2AC_BidirectionalControlResType);
+static int decode_iso2VehicleCheckOutReqType(bitstream_t* stream, struct iso2VehicleCheckOutReqType* iso2VehicleCheckOutReqType);
+static int decode_iso2WeldingDetectionReqType(bitstream_t* stream, struct iso2WeldingDetectionReqType* iso2WeldingDetectionReqType);
+static int decode_iso2AlignmentCheckResType(bitstream_t* stream, struct iso2AlignmentCheckResType* iso2AlignmentCheckResType);
+static int decode_iso2PowerDemandReqType(bitstream_t* stream, struct iso2PowerDemandReqType* iso2PowerDemandReqType);
+static int decode_iso2MinimumPMaxRequestType(bitstream_t* stream, struct iso2MinimumPMaxRequestType* iso2MinimumPMaxRequestType);
+static int decode_iso2DisconnectChargingDeviceResType(bitstream_t* stream, struct iso2DisconnectChargingDeviceResType* iso2DisconnectChargingDeviceResType);
+static int decode_iso2SessionSetupReqType(bitstream_t* stream, struct iso2SessionSetupReqType* iso2SessionSetupReqType);
+static int decode_iso2PaymentDetailsReqType(bitstream_t* stream, struct iso2PaymentDetailsReqType* iso2PaymentDetailsReqType);
+static int decode_iso2Generic_EVFinePositioningParametersType(bitstream_t* stream, struct iso2Generic_EVFinePositioningParametersType* iso2Generic_EVFinePositioningParametersType);
+static int decode_iso2ConnectChargingDeviceReqType(bitstream_t* stream, struct iso2ConnectChargingDeviceReqType* iso2ConnectChargingDeviceReqType);
+static int decode_iso2AC_EVSEChargeParameterType(bitstream_t* stream, struct iso2AC_EVSEChargeParameterType* iso2AC_EVSEChargeParameterType);
+static int decode_iso2SalesTariffEntryType(bitstream_t* stream, struct iso2SalesTariffEntryType* iso2SalesTariffEntryType);
+static int decode_iso2DC_EVSEBidirectionalParameterType(bitstream_t* stream, struct iso2DC_EVSEBidirectionalParameterType* iso2DC_EVSEBidirectionalParameterType);
+static int decode_iso2CanonicalizationMethodType(bitstream_t* stream, struct iso2CanonicalizationMethodType* iso2CanonicalizationMethodType);
+static int decode_iso2DisplayParametersType(bitstream_t* stream, struct iso2DisplayParametersType* iso2DisplayParametersType);
+static int decode_iso2DC_EVBidirectionalParameterType(bitstream_t* stream, struct iso2DC_EVBidirectionalParameterType* iso2DC_EVBidirectionalParameterType);
+static int decode_iso2PaymentServiceSelectionReqType(bitstream_t* stream, struct iso2PaymentServiceSelectionReqType* iso2PaymentServiceSelectionReqType);
+static int decode_iso2MagneticVectorType(bitstream_t* stream, struct iso2MagneticVectorType* iso2MagneticVectorType);
+static int decode_iso2PhysicalValueType(bitstream_t* stream, struct iso2PhysicalValueType* iso2PhysicalValueType);
+static int decode_iso2SystemStatusReqType(bitstream_t* stream, struct iso2SystemStatusReqType* iso2SystemStatusReqType);
+static int decode_iso2SystemStatusResType(bitstream_t* stream, struct iso2SystemStatusResType* iso2SystemStatusResType);
+static int decode_iso2EVSEFinePositioningSetupParametersType(bitstream_t* stream, struct iso2EVSEFinePositioningSetupParametersType* iso2EVSEFinePositioningSetupParametersType);
+static int decode_iso2V2GResponseType(bitstream_t* stream, struct iso2V2GResponseType* iso2V2GResponseType);
+static int decode_iso2BodyType(bitstream_t* stream, struct iso2BodyType* iso2BodyType);
+static int decode_iso2PreChargeResType(bitstream_t* stream, struct iso2PreChargeResType* iso2PreChargeResType);
+static int decode_iso2EVSEFinePositioningParametersType(bitstream_t* stream, struct iso2EVSEFinePositioningParametersType* iso2EVSEFinePositioningParametersType);
+static int decode_iso2PaymentServiceSelectionResType(bitstream_t* stream, struct iso2PaymentServiceSelectionResType* iso2PaymentServiceSelectionResType);
+static int decode_iso2DigestMethodType(bitstream_t* stream, struct iso2DigestMethodType* iso2DigestMethodType);
+static int decode_iso2TargetPositionType(bitstream_t* stream, struct iso2TargetPositionType* iso2TargetPositionType);
+static int decode_iso2LFA_EVFinePositioningParametersType(bitstream_t* stream, struct iso2LFA_EVFinePositioningParametersType* iso2LFA_EVFinePositioningParametersType);
+static int decode_iso2DC_EVChargeParameterType(bitstream_t* stream, struct iso2DC_EVChargeParameterType* iso2DC_EVChargeParameterType);
+static int decode_iso2ServiceDetailReqType(bitstream_t* stream, struct iso2ServiceDetailReqType* iso2ServiceDetailReqType);
+static int decode_iso2PreChargeReqType(bitstream_t* stream, struct iso2PreChargeReqType* iso2PreChargeReqType);
+static int decode_iso2ManifestType(bitstream_t* stream, struct iso2ManifestType* iso2ManifestType);
+static int decode_iso2AnonType_V2G_Message(bitstream_t* stream, struct iso2AnonType_V2G_Message* iso2AnonType_V2G_Message);
+static int decode_iso2SelectedServiceListType(bitstream_t* stream, struct iso2SelectedServiceListType* iso2SelectedServiceListType);
+static int decode_iso2Generic_EVSEFinePositioningParametersType(bitstream_t* stream, struct iso2Generic_EVSEFinePositioningParametersType* iso2Generic_EVSEFinePositioningParametersType);
+static int decode_iso2CartesianCoordinatesType(bitstream_t* stream, struct iso2CartesianCoordinatesType* iso2CartesianCoordinatesType);
+static int decode_iso2KeyInfoType(bitstream_t* stream, struct iso2KeyInfoType* iso2KeyInfoType);
+static int decode_iso2SubCertificatesType(bitstream_t* stream, struct iso2SubCertificatesType* iso2SubCertificatesType);
+static int decode_iso2ListOfRootCertificateIDsType(bitstream_t* stream, struct iso2ListOfRootCertificateIDsType* iso2ListOfRootCertificateIDsType);
+static int decode_iso2EVEnergyTransferParameterType(bitstream_t* stream, struct iso2EVEnergyTransferParameterType* iso2EVEnergyTransferParameterType);
+static int decode_iso2ContractSignatureEncryptedPrivateKeyType(bitstream_t* stream, struct iso2ContractSignatureEncryptedPrivateKeyType* iso2ContractSignatureEncryptedPrivateKeyType);
+static int decode_iso2MagneticVectorSetupListType(bitstream_t* stream, struct iso2MagneticVectorSetupListType* iso2MagneticVectorSetupListType);
+static int decode_iso2PairingReqType(bitstream_t* stream, struct iso2PairingReqType* iso2PairingReqType);
+static int decode_iso2CurrentDemandResType(bitstream_t* stream, struct iso2CurrentDemandResType* iso2CurrentDemandResType);
+static int decode_iso2X509IssuerSerialType(bitstream_t* stream, struct iso2X509IssuerSerialType* iso2X509IssuerSerialType);
+static int decode_iso2ChargingStatusReqType(bitstream_t* stream, struct iso2ChargingStatusReqType* iso2ChargingStatusReqType);
+static int decode_iso2CertificateInstallationResType(bitstream_t* stream, struct iso2CertificateInstallationResType* iso2CertificateInstallationResType);
+static int decode_iso2SensorPackageType(bitstream_t* stream, struct iso2SensorPackageType* iso2SensorPackageType);
+static int decode_iso2PGPDataType(bitstream_t* stream, struct iso2PGPDataType* iso2PGPDataType);
+static int decode_iso2ServiceDiscoveryResType(bitstream_t* stream, struct iso2ServiceDiscoveryResType* iso2ServiceDiscoveryResType);
+static int decode_iso2ServiceIDListType(bitstream_t* stream, struct iso2ServiceIDListType* iso2ServiceIDListType);
+static int decode_iso2EVFinePositioningSetupParametersType(bitstream_t* stream, struct iso2EVFinePositioningSetupParametersType* iso2EVFinePositioningSetupParametersType);
+static int decode_iso2ChargeParameterDiscoveryResType(bitstream_t* stream, struct iso2ChargeParameterDiscoveryResType* iso2ChargeParameterDiscoveryResType);
+static int decode_iso2PowerDemandResType(bitstream_t* stream, struct iso2PowerDemandResType* iso2PowerDemandResType);
+static int decode_iso2ChargingProfileType(bitstream_t* stream, struct iso2ChargingProfileType* iso2ChargingProfileType);
+static int decode_iso2FinePositioningReqType(bitstream_t* stream, struct iso2FinePositioningReqType* iso2FinePositioningReqType);
+static int decode_iso2SalesTariffType(bitstream_t* stream, struct iso2SalesTariffType* iso2SalesTariffType);
+static int decode_iso2SensorType(bitstream_t* stream, struct iso2SensorType* iso2SensorType);
+static int decode_iso2SignatureValueType(bitstream_t* stream, struct iso2SignatureValueType* iso2SignatureValueType);
+static int decode_iso2SignedInfoType(bitstream_t* stream, struct iso2SignedInfoType* iso2SignedInfoType);
+static int decode_iso2PowerDeliveryResType(bitstream_t* stream, struct iso2PowerDeliveryResType* iso2PowerDeliveryResType);
+static int decode_iso2CableCheckReqType(bitstream_t* stream, struct iso2CableCheckReqType* iso2CableCheckReqType);
+static int decode_iso2SelectedServiceType(bitstream_t* stream, struct iso2SelectedServiceType* iso2SelectedServiceType);
+static int decode_iso2DiffieHellmanPublickeyType(bitstream_t* stream, struct iso2DiffieHellmanPublickeyType* iso2DiffieHellmanPublickeyType);
+static int decode_iso2EVSEStatusType(bitstream_t* stream, struct iso2EVSEStatusType* iso2EVSEStatusType);
/* Deviant data decoding (skip functions) */
-
/* Complex type name='http://www.w3.org/2000/09/xmldsig#,SignatureValueType', base type name='base64Binary', content type='SIMPLE', isAbstract='false', hasTypeId='false', final='0', block='0', derivedBy='EXTENSION'. */
-static int decode_v2gSignatureValueType(bitstream_t* stream, struct v2gSignatureValueType* v2gSignatureValueType) {
+
/* Complex type name='http://www.w3.org/2000/09/xmldsig#,RetrievalMethodType', base type name='anyType', content type='ELEMENT', isAbstract='false', hasTypeId='false', final='0', block='0', particle='("http://www.w3.org/2000/09/xmldsig#":Transforms{0-1})', derivedBy='RESTRICTION'. */
+static int decode_iso2RetrievalMethodType(bitstream_t* stream, struct iso2RetrievalMethodType* iso2RetrievalMethodType) {
int grammarID = 0;
int done = 0;
- init_v2gSignatureValueType(v2gSignatureValueType);
+ init_iso2RetrievalMethodType(iso2RetrievalMethodType);
while(!done) {
switch(grammarID) {
case 0:
- /* FirstStartTag[ATTRIBUTE[STRING](Id), CHARACTERS[BINARY_BASE64]] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ /* FirstStartTag[ATTRIBUTE[STRING](Type), ATTRIBUTE[STRING](URI), START_ELEMENT({http://www.w3.org/2000/09/xmldsig#}Transforms), END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 3, &eventCode);
if (errn == 0) {
switch(eventCode) {
case 0:
- errn = decodeUnsignedInteger16(stream, &v2gSignatureValueType->Id.charactersLen);
+ errn = decodeUnsignedInteger16(stream, &iso2RetrievalMethodType->Type.charactersLen);
if (errn == 0) {
- if (v2gSignatureValueType->Id.charactersLen >= 2) {
- v2gSignatureValueType->Id.charactersLen = (uint16_t)(v2gSignatureValueType->Id.charactersLen - 2); /* string table miss */
- errn = decodeCharacters(stream, v2gSignatureValueType->Id.charactersLen, v2gSignatureValueType->Id.characters, v2gSignatureValueType_Id_CHARACTERS_SIZE);
+ if (iso2RetrievalMethodType->Type.charactersLen >= 2) {
+ iso2RetrievalMethodType->Type.charactersLen = (uint16_t)(iso2RetrievalMethodType->Type.charactersLen - 2); /* string table miss */
+ errn = decodeCharacters(stream, iso2RetrievalMethodType->Type.charactersLen, iso2RetrievalMethodType->Type.characters, iso2RetrievalMethodType_Type_CHARACTERS_SIZE);
} else {
/* string table hit */
errn = EXI_ERROR_STRINGVALUES_NOT_SUPPORTED;
}
}
- v2gSignatureValueType->Id_isUsed = 1u;
+ iso2RetrievalMethodType->Type_isUsed = 1u;
grammarID = 1;
break;
case 1:
- errn = decodeUnsignedInteger16(stream, &v2gSignatureValueType->CONTENT.bytesLen);
+ errn = decodeUnsignedInteger16(stream, &iso2RetrievalMethodType->URI.charactersLen);
if (errn == 0) {
- errn = (v2gSignatureValueType->CONTENT.bytesLen) <= v2gSignatureValueType_CONTENT_BYTES_SIZE ? 0 : EXI_ERROR_OUT_OF_BYTE_BUFFER;
- }
- if (errn == 0) {
- errn = decodeBytes(stream, v2gSignatureValueType->CONTENT.bytesLen, v2gSignatureValueType->CONTENT.bytes);
+ if (iso2RetrievalMethodType->URI.charactersLen >= 2) {
+ iso2RetrievalMethodType->URI.charactersLen = (uint16_t)(iso2RetrievalMethodType->URI.charactersLen - 2); /* string table miss */
+ errn = decodeCharacters(stream, iso2RetrievalMethodType->URI.charactersLen, iso2RetrievalMethodType->URI.characters, iso2RetrievalMethodType_URI_CHARACTERS_SIZE);
+ } else {
+ /* string table hit */
+ errn = EXI_ERROR_STRINGVALUES_NOT_SUPPORTED;
+ }
}
+ iso2RetrievalMethodType->URI_isUsed = 1u;
grammarID = 2;
break;
+ case 2:
+ errn = decode_iso2TransformsType(stream, &iso2RetrievalMethodType->Transforms);
+ iso2RetrievalMethodType->Transforms_isUsed = 1u;
+ grammarID = 3;
+ break;
+ case 3:
+ done = 1;
+ grammarID = 4;
+ break;
default:
errn = EXI_ERROR_UNKOWN_EVENT_CODE;
break;
@@ -248,20 +266,33 @@ static int decode_v2gSignatureValueType(bitstream_t* stream, struct v2gSignature
}
break;
case 1:
- /* StartTag[CHARACTERS[BINARY_BASE64]] */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
+ /* StartTag[ATTRIBUTE[STRING](URI), START_ELEMENT({http://www.w3.org/2000/09/xmldsig#}Transforms), END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
if (errn == 0) {
switch(eventCode) {
case 0:
- errn = decodeUnsignedInteger16(stream, &v2gSignatureValueType->CONTENT.bytesLen);
+ errn = decodeUnsignedInteger16(stream, &iso2RetrievalMethodType->URI.charactersLen);
if (errn == 0) {
- errn = (v2gSignatureValueType->CONTENT.bytesLen) <= v2gSignatureValueType_CONTENT_BYTES_SIZE ? 0 : EXI_ERROR_OUT_OF_BYTE_BUFFER;
- }
- if (errn == 0) {
- errn = decodeBytes(stream, v2gSignatureValueType->CONTENT.bytesLen, v2gSignatureValueType->CONTENT.bytes);
+ if (iso2RetrievalMethodType->URI.charactersLen >= 2) {
+ iso2RetrievalMethodType->URI.charactersLen = (uint16_t)(iso2RetrievalMethodType->URI.charactersLen - 2); /* string table miss */
+ errn = decodeCharacters(stream, iso2RetrievalMethodType->URI.charactersLen, iso2RetrievalMethodType->URI.characters, iso2RetrievalMethodType_URI_CHARACTERS_SIZE);
+ } else {
+ /* string table hit */
+ errn = EXI_ERROR_STRINGVALUES_NOT_SUPPORTED;
+ }
}
+ iso2RetrievalMethodType->URI_isUsed = 1u;
grammarID = 2;
break;
+ case 1:
+ errn = decode_iso2TransformsType(stream, &iso2RetrievalMethodType->Transforms);
+ iso2RetrievalMethodType->Transforms_isUsed = 1u;
+ grammarID = 3;
+ break;
+ case 2:
+ done = 1;
+ grammarID = 4;
+ break;
default:
errn = EXI_ERROR_UNKOWN_EVENT_CODE;
break;
@@ -269,13 +300,33 @@ static int decode_v2gSignatureValueType(bitstream_t* stream, struct v2gSignature
}
break;
case 2:
+ /* StartTag[START_ELEMENT({http://www.w3.org/2000/09/xmldsig#}Transforms), END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ errn = decode_iso2TransformsType(stream, &iso2RetrievalMethodType->Transforms);
+ iso2RetrievalMethodType->Transforms_isUsed = 1u;
+ grammarID = 3;
+ break;
+ case 1:
+ done = 1;
+ grammarID = 4;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 3:
/* Element[END_ELEMENT] */
errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
if (errn == 0) {
switch(eventCode) {
case 0:
done = 1;
- grammarID = 3;
+ grammarID = 4;
break;
default:
errn = EXI_ERROR_UNKOWN_EVENT_CODE;
@@ -294,47 +345,12 @@ static int decode_v2gSignatureValueType(bitstream_t* stream, struct v2gSignature
return errn;
}
-/* Complex type name='urn:iso:15118:2:2016:MsgDataTypes,EVSEFinePositioningSetupParametersType', base type name='anyType', content type='EMPTY', isAbstract='true', hasTypeId='false', final='0', block='0', derivedBy='RESTRICTION'. */
-static int decode_v2gEVSEFinePositioningSetupParametersType(bitstream_t* stream, struct v2gEVSEFinePositioningSetupParametersType* v2gEVSEFinePositioningSetupParametersType) {
- int grammarID = 4;
- int done = 0;
-
- init_v2gEVSEFinePositioningSetupParametersType(v2gEVSEFinePositioningSetupParametersType);
-
- while(!done) {
- switch(grammarID) {
- case 4:
- /* FirstStartTag[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:2016:MsgBody,AlignmentCheckResType', base type name='V2GResponseType', content type='ELEMENT', isAbstract='false', hasTypeId='false', final='0', block='0', particle='(("urn:iso:15118:2:2016:MsgBody":ResponseCode,"urn:iso:15118:2:2016:MsgBody":EVSEStatus{0-1}),("urn:iso:15118:2:2016:MsgBody":EVSEProcessing,"urn:iso:15118:2:2016:MsgBody":AlignmentCheckParameters{0-1}))', derivedBy='EXTENSION'. */
-static int decode_v2gAlignmentCheckResType(bitstream_t* stream, struct v2gAlignmentCheckResType* v2gAlignmentCheckResType) {
+/* Complex type name='urn:iso:15118:2:2016:MsgBody,AuthorizationResType', base type name='V2GResponseType', content type='ELEMENT', isAbstract='false', hasTypeId='false', final='0', block='0', particle='(("urn:iso:15118:2:2016:MsgBody":ResponseCode,"urn:iso:15118:2:2016:MsgBody":EVSEStatus{0-1}),("urn:iso:15118:2:2016:MsgBody":EVSEProcessing))', derivedBy='EXTENSION'. */
+static int decode_iso2AuthorizationResType(bitstream_t* stream, struct iso2AuthorizationResType* iso2AuthorizationResType) {
int grammarID = 5;
int done = 0;
- init_v2gAlignmentCheckResType(v2gAlignmentCheckResType);
+ init_iso2AuthorizationResType(iso2AuthorizationResType);
while(!done) {
switch(grammarID) {
@@ -349,7 +365,7 @@ static int decode_v2gAlignmentCheckResType(bitstream_t* stream, struct v2gAlignm
if(errn == 0) {
if(eventCode == 0) {
errn = decodeNBitUnsignedInteger(stream, 5, &uint32);
- v2gAlignmentCheckResType->ResponseCode = (v2gresponseCodeType) uint32;
+ iso2AuthorizationResType->ResponseCode = (iso2responseCodeType) uint32;
} else {
/* Second level event (e.g., xsi:type, xsi:nil, ...) */
errn = EXI_UNSUPPORTED_EVENT_CODE_CHARACTERISTICS;
@@ -377,8 +393,8 @@ static int decode_v2gAlignmentCheckResType(bitstream_t* stream, struct v2gAlignm
if (errn == 0) {
switch(eventCode) {
case 0:
- errn = decode_v2gEVSEStatusType(stream, &v2gAlignmentCheckResType->EVSEStatus);
- v2gAlignmentCheckResType->EVSEStatus_isUsed = 1u;
+ errn = decode_iso2EVSEStatusType(stream, &iso2AuthorizationResType->EVSEStatus);
+ iso2AuthorizationResType->EVSEStatus_isUsed = 1u;
grammarID = 7;
break;
case 1:
@@ -387,7 +403,7 @@ static int decode_v2gAlignmentCheckResType(bitstream_t* stream, struct v2gAlignm
if(errn == 0) {
if(eventCode == 0) {
errn = decodeNBitUnsignedInteger(stream, 2, &uint32);
- v2gAlignmentCheckResType->EVSEProcessing = (v2gEVSEProcessingType) uint32;
+ iso2AuthorizationResType->EVSEProcessing = (iso2EVSEProcessingType) uint32;
} else {
/* Second level event (e.g., xsi:type, xsi:nil, ...) */
errn = EXI_UNSUPPORTED_EVENT_CODE_CHARACTERISTICS;
@@ -397,7 +413,7 @@ static int decode_v2gAlignmentCheckResType(bitstream_t* stream, struct v2gAlignm
/* valid EE for simple element START_ELEMENT({urn:iso:15118:2:2016:MsgBody}EVSEProcessing) ? */
errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
if(eventCode == 0) {
- grammarID = 8;
+ grammarID = 3;
} else {
errn = EXI_DEVIANT_SUPPORT_NOT_DEPLOYED; /* or also typecast and nillable */
}
@@ -420,7 +436,7 @@ static int decode_v2gAlignmentCheckResType(bitstream_t* stream, struct v2gAlignm
if(errn == 0) {
if(eventCode == 0) {
errn = decodeNBitUnsignedInteger(stream, 2, &uint32);
- v2gAlignmentCheckResType->EVSEProcessing = (v2gEVSEProcessingType) uint32;
+ iso2AuthorizationResType->EVSEProcessing = (iso2EVSEProcessingType) uint32;
} else {
/* Second level event (e.g., xsi:type, xsi:nil, ...) */
errn = EXI_UNSUPPORTED_EVENT_CODE_CHARACTERISTICS;
@@ -430,7 +446,7 @@ static int decode_v2gAlignmentCheckResType(bitstream_t* stream, struct v2gAlignm
/* valid EE for simple element START_ELEMENT({urn:iso:15118:2:2016:MsgBody}EVSEProcessing) ? */
errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
if(eventCode == 0) {
- grammarID = 8;
+ grammarID = 3;
} else {
errn = EXI_DEVIANT_SUPPORT_NOT_DEPLOYED; /* or also typecast and nillable */
}
@@ -442,19923 +458,14 @@ static int decode_v2gAlignmentCheckResType(bitstream_t* stream, struct v2gAlignm
}
}
break;
- case 8:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgBody}AlignmentCheckParameters), END_ELEMENT] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- errn = decode_v2gParameterSetType(stream, &v2gAlignmentCheckResType->AlignmentCheckParameters);
- v2gAlignmentCheckResType->AlignmentCheckParameters_isUsed = 1u;
- grammarID = 2;
- break;
- case 1:
- done = 1;
- grammarID = 3;
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 2:
+ case 3:
/* 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:2016:MsgDataTypes,SalesTariffType', base type name='anyType', content type='ELEMENT', isAbstract='false', hasTypeId='false', final='0', block='0', particle='("urn:iso:15118:2:2016:MsgDataTypes":SalesTariffID,"urn:iso:15118:2:2016:MsgDataTypes":SalesTariffDescription{0-1},"urn:iso:15118:2:2016:MsgDataTypes":NumEPriceLevels{0-1},"urn:iso:15118:2:2016:MsgDataTypes":SalesTariffEntry{1-UNBOUNDED})', derivedBy='RESTRICTION'. */
-static int decode_v2gSalesTariffType(bitstream_t* stream, struct v2gSalesTariffType* v2gSalesTariffType) {
- int grammarID = 9;
- int done = 0;
-
- init_v2gSalesTariffType(v2gSalesTariffType);
-
- while(!done) {
- switch(grammarID) {
- case 9:
- /* FirstStartTag[ATTRIBUTE[STRING]({urn:iso:15118:2:2016:MsgDataTypes}Id)] */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- errn = decodeUnsignedInteger16(stream, &v2gSalesTariffType->Id.charactersLen);
- if (errn == 0) {
- if (v2gSalesTariffType->Id.charactersLen >= 2) {
- v2gSalesTariffType->Id.charactersLen = (uint16_t)(v2gSalesTariffType->Id.charactersLen - 2); /* string table miss */
- errn = decodeCharacters(stream, v2gSalesTariffType->Id.charactersLen, v2gSalesTariffType->Id.characters, v2gSalesTariffType_Id_CHARACTERS_SIZE);
- } else {
- /* string table hit */
- errn = EXI_ERROR_STRINGVALUES_NOT_SUPPORTED;
- }
- }
- grammarID = 10;
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 10:
- /* StartTag[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SalesTariffID)] */
- errn = decodeNBitUnsignedInteger(stream, 1, &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));
- v2gSalesTariffType->SalesTariffID = (uint8_t)(uint32 + 1);
- } 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({urn:iso:15118:2:2016:MsgDataTypes}SalesTariffID) ? */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(eventCode == 0) {
- grammarID = 11;
- } else {
- errn = EXI_DEVIANT_SUPPORT_NOT_DEPLOYED; /* or also typecast and nillable */
- }
- }
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 11:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SalesTariffDescription), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}NumEPriceLevels), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SalesTariffEntry)] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- /* FirstStartTag[CHARACTERS[STRING]] */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(errn == 0) {
- if(eventCode == 0) {
- errn = decodeUnsignedInteger16(stream, &v2gSalesTariffType->SalesTariffDescription.charactersLen);
- if (errn == 0) {
- if (v2gSalesTariffType->SalesTariffDescription.charactersLen >= 2) {
- v2gSalesTariffType->SalesTariffDescription.charactersLen = (uint16_t)(v2gSalesTariffType->SalesTariffDescription.charactersLen - 2); /* string table miss */
- errn = decodeCharacters(stream, v2gSalesTariffType->SalesTariffDescription.charactersLen, v2gSalesTariffType->SalesTariffDescription.characters, v2gSalesTariffType_SalesTariffDescription_CHARACTERS_SIZE);
- } else {
- /* string table hit */
- errn = EXI_ERROR_STRINGVALUES_NOT_SUPPORTED;
- }
- }
- v2gSalesTariffType->SalesTariffDescription_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({urn:iso:15118:2:2016:MsgDataTypes}SalesTariffDescription) ? */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(eventCode == 0) {
- grammarID = 12;
- } else {
- errn = EXI_DEVIANT_SUPPORT_NOT_DEPLOYED; /* or also typecast and nillable */
- }
- }
- break;
- case 1:
- /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(errn == 0) {
- if(eventCode == 0) {
- errn = decodeNBitUnsignedInteger(stream, 8, &(uint32));
- v2gSalesTariffType->NumEPriceLevels = (uint8_t)(uint32 + 0);
- v2gSalesTariffType->NumEPriceLevels_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({urn:iso:15118:2:2016:MsgDataTypes}NumEPriceLevels) ? */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(eventCode == 0) {
- grammarID = 13;
- } else {
- errn = EXI_DEVIANT_SUPPORT_NOT_DEPLOYED; /* or also typecast and nillable */
- }
- }
- break;
- case 2:
- if (v2gSalesTariffType->SalesTariffEntry.arrayLen < v2gSalesTariffType_SalesTariffEntry_ARRAY_SIZE) {
- errn = decode_v2gSalesTariffEntryType(stream, &v2gSalesTariffType->SalesTariffEntry.array[v2gSalesTariffType->SalesTariffEntry.arrayLen++]);
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- grammarID = 14;
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 12:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}NumEPriceLevels), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SalesTariffEntry)] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(errn == 0) {
- if(eventCode == 0) {
- errn = decodeNBitUnsignedInteger(stream, 8, &(uint32));
- v2gSalesTariffType->NumEPriceLevels = (uint8_t)(uint32 + 0);
- v2gSalesTariffType->NumEPriceLevels_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({urn:iso:15118:2:2016:MsgDataTypes}NumEPriceLevels) ? */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(eventCode == 0) {
- grammarID = 13;
- } else {
- errn = EXI_DEVIANT_SUPPORT_NOT_DEPLOYED; /* or also typecast and nillable */
- }
- }
- break;
- case 1:
- if (v2gSalesTariffType->SalesTariffEntry.arrayLen < v2gSalesTariffType_SalesTariffEntry_ARRAY_SIZE) {
- errn = decode_v2gSalesTariffEntryType(stream, &v2gSalesTariffType->SalesTariffEntry.array[v2gSalesTariffType->SalesTariffEntry.arrayLen++]);
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- grammarID = 14;
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 13:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SalesTariffEntry)] */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gSalesTariffType->SalesTariffEntry.arrayLen < v2gSalesTariffType_SalesTariffEntry_ARRAY_SIZE) {
- errn = decode_v2gSalesTariffEntryType(stream, &v2gSalesTariffType->SalesTariffEntry.array[v2gSalesTariffType->SalesTariffEntry.arrayLen++]);
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- grammarID = 14;
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 14:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SalesTariffEntry), END_ELEMENT] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gSalesTariffType->SalesTariffEntry.arrayLen < v2gSalesTariffType_SalesTariffEntry_ARRAY_SIZE) {
- errn = decode_v2gSalesTariffEntryType(stream, &v2gSalesTariffType->SalesTariffEntry.array[v2gSalesTariffType->SalesTariffEntry.arrayLen++]);
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- grammarID = 14;
- break;
- case 1:
- 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:2016:MsgBody,FinePositioningSetupReqType', base type name='BodyBaseType', content type='ELEMENT', isAbstract='false', hasTypeId='false', final='0', block='0', particle='("urn:iso:15118:2:2016:MsgDataTypes":EVFinePositioningSetupParameters{0-1})', derivedBy='EXTENSION'. */
-static int decode_v2gFinePositioningSetupReqType(bitstream_t* stream, struct v2gFinePositioningSetupReqType* v2gFinePositioningSetupReqType) {
- int grammarID = 15;
- int done = 0;
-
- init_v2gFinePositioningSetupReqType(v2gFinePositioningSetupReqType);
-
- while(!done) {
- switch(grammarID) {
- case 15:
- /* FirstStartTag[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}EVFinePositioningSetupParameters), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}LFA_EVFinePositioningSetupParameters), END_ELEMENT] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- errn = decode_v2gEVFinePositioningSetupParametersType(stream, &v2gFinePositioningSetupReqType->EVFinePositioningSetupParameters);
- v2gFinePositioningSetupReqType->EVFinePositioningSetupParameters_isUsed = 1u;
- grammarID = 2;
- break;
- case 1:
- errn = decode_v2gLFA_EVFinePositioningSetupParametersType(stream, &v2gFinePositioningSetupReqType->LFA_EVFinePositioningSetupParameters);
- v2gFinePositioningSetupReqType->LFA_EVFinePositioningSetupParameters_isUsed = 1u;
- grammarID = 2;
- break;
- case 2:
- 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:2016:MsgDataTypes,SubCertificatesType', base type name='anyType', content type='ELEMENT', isAbstract='false', hasTypeId='false', final='0', block='0', particle='("urn:iso:15118:2:2016:MsgDataTypes":Certificate{1-4})', derivedBy='RESTRICTION'. */
-static int decode_v2gSubCertificatesType(bitstream_t* stream, struct v2gSubCertificatesType* v2gSubCertificatesType) {
- int grammarID = 16;
- int done = 0;
-
- init_v2gSubCertificatesType(v2gSubCertificatesType);
-
- while(!done) {
- switch(grammarID) {
- case 16:
- /* FirstStartTag[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}Certificate)] */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gSubCertificatesType->Certificate.arrayLen < v2gSubCertificatesType_Certificate_ARRAY_SIZE) {
- /* FirstStartTag[CHARACTERS[BINARY_BASE64]] */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(errn == 0) {
- if(eventCode == 0) {
- errn = decodeUnsignedInteger16(stream, &v2gSubCertificatesType->Certificate.array[v2gSubCertificatesType->Certificate.arrayLen].bytesLen);
- if (errn == 0) {
- errn = (v2gSubCertificatesType->Certificate.array[v2gSubCertificatesType->Certificate.arrayLen].bytesLen) <= v2gSubCertificatesType_Certificate_BYTES_SIZE ? 0 : EXI_ERROR_OUT_OF_BYTE_BUFFER;
- }
- if (errn == 0) {
- errn = decodeBytes(stream, v2gSubCertificatesType->Certificate.array[v2gSubCertificatesType->Certificate.arrayLen].bytesLen, v2gSubCertificatesType->Certificate.array[v2gSubCertificatesType->Certificate.arrayLen].bytes);
- }
- v2gSubCertificatesType->Certificate.arrayLen++;
- } else {
- /* Second level event (e.g., xsi:type, xsi:nil, ...) */
- errn = EXI_UNSUPPORTED_EVENT_CODE_CHARACTERISTICS;
- }
- }
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- if(errn == 0) {
- /* valid EE for simple element START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}Certificate) ? */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(eventCode == 0) {
- grammarID = 17;
- } else {
- errn = EXI_DEVIANT_SUPPORT_NOT_DEPLOYED; /* or also typecast and nillable */
- }
- }
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 17:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}Certificate), END_ELEMENT] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gSubCertificatesType->Certificate.arrayLen < v2gSubCertificatesType_Certificate_ARRAY_SIZE) {
- /* FirstStartTag[CHARACTERS[BINARY_BASE64]] */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(errn == 0) {
- if(eventCode == 0) {
- errn = decodeUnsignedInteger16(stream, &v2gSubCertificatesType->Certificate.array[v2gSubCertificatesType->Certificate.arrayLen].bytesLen);
- if (errn == 0) {
- errn = (v2gSubCertificatesType->Certificate.array[v2gSubCertificatesType->Certificate.arrayLen].bytesLen) <= v2gSubCertificatesType_Certificate_BYTES_SIZE ? 0 : EXI_ERROR_OUT_OF_BYTE_BUFFER;
- }
- if (errn == 0) {
- errn = decodeBytes(stream, v2gSubCertificatesType->Certificate.array[v2gSubCertificatesType->Certificate.arrayLen].bytesLen, v2gSubCertificatesType->Certificate.array[v2gSubCertificatesType->Certificate.arrayLen].bytes);
- }
- v2gSubCertificatesType->Certificate.arrayLen++;
- } else {
- /* Second level event (e.g., xsi:type, xsi:nil, ...) */
- errn = EXI_UNSUPPORTED_EVENT_CODE_CHARACTERISTICS;
- }
- }
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- if(errn == 0) {
- /* valid EE for simple element START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}Certificate) ? */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(eventCode == 0) {
- grammarID = 18;
- } 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 18:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}Certificate), END_ELEMENT] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gSubCertificatesType->Certificate.arrayLen < v2gSubCertificatesType_Certificate_ARRAY_SIZE) {
- /* FirstStartTag[CHARACTERS[BINARY_BASE64]] */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(errn == 0) {
- if(eventCode == 0) {
- errn = decodeUnsignedInteger16(stream, &v2gSubCertificatesType->Certificate.array[v2gSubCertificatesType->Certificate.arrayLen].bytesLen);
- if (errn == 0) {
- errn = (v2gSubCertificatesType->Certificate.array[v2gSubCertificatesType->Certificate.arrayLen].bytesLen) <= v2gSubCertificatesType_Certificate_BYTES_SIZE ? 0 : EXI_ERROR_OUT_OF_BYTE_BUFFER;
- }
- if (errn == 0) {
- errn = decodeBytes(stream, v2gSubCertificatesType->Certificate.array[v2gSubCertificatesType->Certificate.arrayLen].bytesLen, v2gSubCertificatesType->Certificate.array[v2gSubCertificatesType->Certificate.arrayLen].bytes);
- }
- v2gSubCertificatesType->Certificate.arrayLen++;
- } else {
- /* Second level event (e.g., xsi:type, xsi:nil, ...) */
- errn = EXI_UNSUPPORTED_EVENT_CODE_CHARACTERISTICS;
- }
- }
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- if(errn == 0) {
- /* valid EE for simple element START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}Certificate) ? */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(eventCode == 0) {
- grammarID = 19;
- } 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 19:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}Certificate), END_ELEMENT] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gSubCertificatesType->Certificate.arrayLen < v2gSubCertificatesType_Certificate_ARRAY_SIZE) {
- /* FirstStartTag[CHARACTERS[BINARY_BASE64]] */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(errn == 0) {
- if(eventCode == 0) {
- errn = decodeUnsignedInteger16(stream, &v2gSubCertificatesType->Certificate.array[v2gSubCertificatesType->Certificate.arrayLen].bytesLen);
- if (errn == 0) {
- errn = (v2gSubCertificatesType->Certificate.array[v2gSubCertificatesType->Certificate.arrayLen].bytesLen) <= v2gSubCertificatesType_Certificate_BYTES_SIZE ? 0 : EXI_ERROR_OUT_OF_BYTE_BUFFER;
- }
- if (errn == 0) {
- errn = decodeBytes(stream, v2gSubCertificatesType->Certificate.array[v2gSubCertificatesType->Certificate.arrayLen].bytesLen, v2gSubCertificatesType->Certificate.array[v2gSubCertificatesType->Certificate.arrayLen].bytes);
- }
- v2gSubCertificatesType->Certificate.arrayLen++;
- } else {
- /* Second level event (e.g., xsi:type, xsi:nil, ...) */
- errn = EXI_UNSUPPORTED_EVENT_CODE_CHARACTERISTICS;
- }
- }
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- if(errn == 0) {
- /* valid EE for simple element START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}Certificate) ? */
- 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:2016:MsgBody,CertificateInstallationResType', base type name='V2GResponseType', content type='ELEMENT', isAbstract='false', hasTypeId='false', final='0', block='0', particle='(("urn:iso:15118:2:2016:MsgBody":ResponseCode,"urn:iso:15118:2:2016:MsgBody":EVSEStatus{0-1}),("urn:iso:15118:2:2016:MsgBody":SAProvisioningCertificateChain,"urn:iso:15118:2:2016:MsgBody":ContractSignatureCertChain,"urn:iso:15118:2:2016:MsgBody":ContractSignatureEncryptedPrivateKey,"urn:iso:15118:2:2016:MsgBody":DHpublickey,"urn:iso:15118:2:2016:MsgBody":eMAID))', derivedBy='EXTENSION'. */
-static int decode_v2gCertificateInstallationResType(bitstream_t* stream, struct v2gCertificateInstallationResType* v2gCertificateInstallationResType) {
- int grammarID = 20;
- int done = 0;
-
- init_v2gCertificateInstallationResType(v2gCertificateInstallationResType);
-
- while(!done) {
- switch(grammarID) {
- case 20:
- /* FirstStartTag[START_ELEMENT({urn:iso:15118:2:2016:MsgBody}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, 5, &uint32);
- v2gCertificateInstallationResType->ResponseCode = (v2gresponseCodeType) 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({urn:iso:15118:2:2016:MsgBody}ResponseCode) ? */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(eventCode == 0) {
- grammarID = 21;
- } else {
- errn = EXI_DEVIANT_SUPPORT_NOT_DEPLOYED; /* or also typecast and nillable */
- }
- }
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 21:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgBody}EVSEStatus), START_ELEMENT({urn:iso:15118:2:2016:MsgBody}SAProvisioningCertificateChain)] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- errn = decode_v2gEVSEStatusType(stream, &v2gCertificateInstallationResType->EVSEStatus);
- v2gCertificateInstallationResType->EVSEStatus_isUsed = 1u;
- grammarID = 22;
- break;
- case 1:
- errn = decode_v2gCertificateChainType(stream, &v2gCertificateInstallationResType->SAProvisioningCertificateChain);
- grammarID = 23;
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 22:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgBody}SAProvisioningCertificateChain)] */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- errn = decode_v2gCertificateChainType(stream, &v2gCertificateInstallationResType->SAProvisioningCertificateChain);
- grammarID = 23;
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 23:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgBody}ContractSignatureCertChain)] */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- errn = decode_v2gCertificateChainType(stream, &v2gCertificateInstallationResType->ContractSignatureCertChain);
- grammarID = 24;
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 24:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgBody}ContractSignatureEncryptedPrivateKey)] */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- errn = decode_v2gContractSignatureEncryptedPrivateKeyType(stream, &v2gCertificateInstallationResType->ContractSignatureEncryptedPrivateKey);
- grammarID = 25;
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 25:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgBody}DHpublickey)] */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- errn = decode_v2gDiffieHellmanPublickeyType(stream, &v2gCertificateInstallationResType->DHpublickey);
- grammarID = 26;
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 26:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgBody}eMAID)] */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- errn = decode_v2gEMAIDType(stream, &v2gCertificateInstallationResType->eMAID);
- grammarID = 2;
- 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:2016:MsgDataTypes,MeterInfoType', base type name='anyType', content type='ELEMENT', isAbstract='false', hasTypeId='false', final='0', block='0', particle='("urn:iso:15118:2:2016:MsgDataTypes":MeterID,"urn:iso:15118:2:2016:MsgDataTypes":MeterReadingCharged{0-1},"urn:iso:15118:2:2016:MsgDataTypes":MeterReadingDischarged{0-1},"urn:iso:15118:2:2016:MsgDataTypes":SigMeterReading{0-1},"urn:iso:15118:2:2016:MsgDataTypes":MeterStatus{0-1},"urn:iso:15118:2:2016:MsgDataTypes":TMeter{0-1})', derivedBy='RESTRICTION'. */
-static int decode_v2gMeterInfoType(bitstream_t* stream, struct v2gMeterInfoType* v2gMeterInfoType) {
- int grammarID = 27;
- int done = 0;
-
- init_v2gMeterInfoType(v2gMeterInfoType);
-
- while(!done) {
- switch(grammarID) {
- case 27:
- /* FirstStartTag[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MeterID)] */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- /* FirstStartTag[CHARACTERS[STRING]] */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(errn == 0) {
- if(eventCode == 0) {
- errn = decodeUnsignedInteger16(stream, &v2gMeterInfoType->MeterID.charactersLen);
- if (errn == 0) {
- if (v2gMeterInfoType->MeterID.charactersLen >= 2) {
- v2gMeterInfoType->MeterID.charactersLen = (uint16_t)(v2gMeterInfoType->MeterID.charactersLen - 2); /* string table miss */
- errn = decodeCharacters(stream, v2gMeterInfoType->MeterID.charactersLen, v2gMeterInfoType->MeterID.characters, v2gMeterInfoType_MeterID_CHARACTERS_SIZE);
- } else {
- /* string table hit */
- errn = EXI_ERROR_STRINGVALUES_NOT_SUPPORTED;
- }
- }
- } 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({urn:iso:15118:2:2016:MsgDataTypes}MeterID) ? */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(eventCode == 0) {
- grammarID = 28;
- } else {
- errn = EXI_DEVIANT_SUPPORT_NOT_DEPLOYED; /* or also typecast and nillable */
- }
- }
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 28:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MeterReadingCharged), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MeterReadingDischarged), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SigMeterReading), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MeterStatus), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}TMeter), END_ELEMENT] */
- errn = decodeNBitUnsignedInteger(stream, 3, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- /* First(xsi:type)StartTag[CHARACTERS[UNSIGNED_INTEGER]] */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(errn == 0) {
- if(eventCode == 0) {
- errn = decodeUnsignedInteger64(stream, &v2gMeterInfoType->MeterReadingCharged);
- v2gMeterInfoType->MeterReadingCharged_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({urn:iso:15118:2:2016:MsgDataTypes}MeterReadingCharged) ? */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(eventCode == 0) {
- grammarID = 29;
- } else {
- errn = EXI_DEVIANT_SUPPORT_NOT_DEPLOYED; /* or also typecast and nillable */
- }
- }
- break;
- case 1:
- /* First(xsi:type)StartTag[CHARACTERS[UNSIGNED_INTEGER]] */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(errn == 0) {
- if(eventCode == 0) {
- errn = decodeUnsignedInteger64(stream, &v2gMeterInfoType->MeterReadingDischarged);
- v2gMeterInfoType->MeterReadingDischarged_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({urn:iso:15118:2:2016:MsgDataTypes}MeterReadingDischarged) ? */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(eventCode == 0) {
- grammarID = 30;
- } else {
- errn = EXI_DEVIANT_SUPPORT_NOT_DEPLOYED; /* or also typecast and nillable */
- }
- }
- break;
- case 2:
- /* FirstStartTag[CHARACTERS[BINARY_BASE64]] */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(errn == 0) {
- if(eventCode == 0) {
- errn = decodeUnsignedInteger16(stream, &v2gMeterInfoType->SigMeterReading.bytesLen);
- if (errn == 0) {
- errn = (v2gMeterInfoType->SigMeterReading.bytesLen) <= v2gMeterInfoType_SigMeterReading_BYTES_SIZE ? 0 : EXI_ERROR_OUT_OF_BYTE_BUFFER;
- }
- if (errn == 0) {
- errn = decodeBytes(stream, v2gMeterInfoType->SigMeterReading.bytesLen, v2gMeterInfoType->SigMeterReading.bytes);
- }
- v2gMeterInfoType->SigMeterReading_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({urn:iso:15118:2:2016:MsgDataTypes}SigMeterReading) ? */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(eventCode == 0) {
- grammarID = 31;
- } else {
- errn = EXI_DEVIANT_SUPPORT_NOT_DEPLOYED; /* or also typecast and nillable */
- }
- }
- break;
- case 3:
- /* FirstStartTag[CHARACTERS[INTEGER]] */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(errn == 0) {
- if(eventCode == 0) {
- errn = decodeInteger16(stream, &v2gMeterInfoType->MeterStatus);
- v2gMeterInfoType->MeterStatus_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({urn:iso:15118:2:2016:MsgDataTypes}MeterStatus) ? */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(eventCode == 0) {
- grammarID = 32;
- } else {
- errn = EXI_DEVIANT_SUPPORT_NOT_DEPLOYED; /* or also typecast and nillable */
- }
- }
- break;
- case 4:
- /* First(xsi:type)StartTag[CHARACTERS[INTEGER]] */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(errn == 0) {
- if(eventCode == 0) {
- errn = decodeInteger64(stream, &v2gMeterInfoType->TMeter);
- v2gMeterInfoType->TMeter_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({urn:iso:15118:2:2016:MsgDataTypes}TMeter) ? */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(eventCode == 0) {
- grammarID = 2;
- } else {
- errn = EXI_DEVIANT_SUPPORT_NOT_DEPLOYED; /* or also typecast and nillable */
- }
- }
- break;
- case 5:
- done = 1;
- grammarID = 3;
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 29:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MeterReadingDischarged), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SigMeterReading), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MeterStatus), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}TMeter), END_ELEMENT] */
- errn = decodeNBitUnsignedInteger(stream, 3, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- /* First(xsi:type)StartTag[CHARACTERS[UNSIGNED_INTEGER]] */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(errn == 0) {
- if(eventCode == 0) {
- errn = decodeUnsignedInteger64(stream, &v2gMeterInfoType->MeterReadingDischarged);
- v2gMeterInfoType->MeterReadingDischarged_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({urn:iso:15118:2:2016:MsgDataTypes}MeterReadingDischarged) ? */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(eventCode == 0) {
- grammarID = 30;
- } else {
- errn = EXI_DEVIANT_SUPPORT_NOT_DEPLOYED; /* or also typecast and nillable */
- }
- }
- break;
- case 1:
- /* FirstStartTag[CHARACTERS[BINARY_BASE64]] */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(errn == 0) {
- if(eventCode == 0) {
- errn = decodeUnsignedInteger16(stream, &v2gMeterInfoType->SigMeterReading.bytesLen);
- if (errn == 0) {
- errn = (v2gMeterInfoType->SigMeterReading.bytesLen) <= v2gMeterInfoType_SigMeterReading_BYTES_SIZE ? 0 : EXI_ERROR_OUT_OF_BYTE_BUFFER;
- }
- if (errn == 0) {
- errn = decodeBytes(stream, v2gMeterInfoType->SigMeterReading.bytesLen, v2gMeterInfoType->SigMeterReading.bytes);
- }
- v2gMeterInfoType->SigMeterReading_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({urn:iso:15118:2:2016:MsgDataTypes}SigMeterReading) ? */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(eventCode == 0) {
- grammarID = 31;
- } else {
- errn = EXI_DEVIANT_SUPPORT_NOT_DEPLOYED; /* or also typecast and nillable */
- }
- }
- break;
- case 2:
- /* FirstStartTag[CHARACTERS[INTEGER]] */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(errn == 0) {
- if(eventCode == 0) {
- errn = decodeInteger16(stream, &v2gMeterInfoType->MeterStatus);
- v2gMeterInfoType->MeterStatus_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({urn:iso:15118:2:2016:MsgDataTypes}MeterStatus) ? */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(eventCode == 0) {
- grammarID = 32;
- } else {
- errn = EXI_DEVIANT_SUPPORT_NOT_DEPLOYED; /* or also typecast and nillable */
- }
- }
- break;
- case 3:
- /* First(xsi:type)StartTag[CHARACTERS[INTEGER]] */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(errn == 0) {
- if(eventCode == 0) {
- errn = decodeInteger64(stream, &v2gMeterInfoType->TMeter);
- v2gMeterInfoType->TMeter_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({urn:iso:15118:2:2016:MsgDataTypes}TMeter) ? */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(eventCode == 0) {
- grammarID = 2;
- } else {
- errn = EXI_DEVIANT_SUPPORT_NOT_DEPLOYED; /* or also typecast and nillable */
- }
- }
- break;
- case 4:
- done = 1;
- grammarID = 3;
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 30:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SigMeterReading), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MeterStatus), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}TMeter), END_ELEMENT] */
- errn = decodeNBitUnsignedInteger(stream, 3, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- /* FirstStartTag[CHARACTERS[BINARY_BASE64]] */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(errn == 0) {
- if(eventCode == 0) {
- errn = decodeUnsignedInteger16(stream, &v2gMeterInfoType->SigMeterReading.bytesLen);
- if (errn == 0) {
- errn = (v2gMeterInfoType->SigMeterReading.bytesLen) <= v2gMeterInfoType_SigMeterReading_BYTES_SIZE ? 0 : EXI_ERROR_OUT_OF_BYTE_BUFFER;
- }
- if (errn == 0) {
- errn = decodeBytes(stream, v2gMeterInfoType->SigMeterReading.bytesLen, v2gMeterInfoType->SigMeterReading.bytes);
- }
- v2gMeterInfoType->SigMeterReading_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({urn:iso:15118:2:2016:MsgDataTypes}SigMeterReading) ? */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(eventCode == 0) {
- grammarID = 31;
- } else {
- errn = EXI_DEVIANT_SUPPORT_NOT_DEPLOYED; /* or also typecast and nillable */
- }
- }
- break;
- case 1:
- /* FirstStartTag[CHARACTERS[INTEGER]] */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(errn == 0) {
- if(eventCode == 0) {
- errn = decodeInteger16(stream, &v2gMeterInfoType->MeterStatus);
- v2gMeterInfoType->MeterStatus_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({urn:iso:15118:2:2016:MsgDataTypes}MeterStatus) ? */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(eventCode == 0) {
- grammarID = 32;
- } else {
- errn = EXI_DEVIANT_SUPPORT_NOT_DEPLOYED; /* or also typecast and nillable */
- }
- }
- break;
- case 2:
- /* First(xsi:type)StartTag[CHARACTERS[INTEGER]] */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(errn == 0) {
- if(eventCode == 0) {
- errn = decodeInteger64(stream, &v2gMeterInfoType->TMeter);
- v2gMeterInfoType->TMeter_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({urn:iso:15118:2:2016:MsgDataTypes}TMeter) ? */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(eventCode == 0) {
- grammarID = 2;
- } else {
- errn = EXI_DEVIANT_SUPPORT_NOT_DEPLOYED; /* or also typecast and nillable */
- }
- }
- break;
- case 3:
- done = 1;
- grammarID = 3;
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 31:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MeterStatus), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}TMeter), END_ELEMENT] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- /* FirstStartTag[CHARACTERS[INTEGER]] */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(errn == 0) {
- if(eventCode == 0) {
- errn = decodeInteger16(stream, &v2gMeterInfoType->MeterStatus);
- v2gMeterInfoType->MeterStatus_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({urn:iso:15118:2:2016:MsgDataTypes}MeterStatus) ? */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(eventCode == 0) {
- grammarID = 32;
- } else {
- errn = EXI_DEVIANT_SUPPORT_NOT_DEPLOYED; /* or also typecast and nillable */
- }
- }
- break;
- case 1:
- /* First(xsi:type)StartTag[CHARACTERS[INTEGER]] */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(errn == 0) {
- if(eventCode == 0) {
- errn = decodeInteger64(stream, &v2gMeterInfoType->TMeter);
- v2gMeterInfoType->TMeter_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({urn:iso:15118:2:2016:MsgDataTypes}TMeter) ? */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(eventCode == 0) {
- grammarID = 2;
- } else {
- errn = EXI_DEVIANT_SUPPORT_NOT_DEPLOYED; /* or also typecast and nillable */
- }
- }
- break;
- case 2:
- done = 1;
- grammarID = 3;
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 32:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}TMeter), END_ELEMENT] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- /* First(xsi:type)StartTag[CHARACTERS[INTEGER]] */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(errn == 0) {
- if(eventCode == 0) {
- errn = decodeInteger64(stream, &v2gMeterInfoType->TMeter);
- v2gMeterInfoType->TMeter_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({urn:iso:15118:2:2016:MsgDataTypes}TMeter) ? */
- 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:2016:MsgBody,ChargeLoopReqType', base type name='BodyBaseType', content type='ELEMENT', isAbstract='true', hasTypeId='false', final='0', block='0', particle='("urn:iso:15118:2:2016:MsgBody":EVTargetEnergyRequest,"urn:iso:15118:2:2016:MsgBody":EVMaximumEnergyRequest{0-1},"urn:iso:15118:2:2016:MsgBody":EVMinimumEnergyRequest{0-1},"urn:iso:15118:2:2016:MsgBody":DisplayParameters{0-1})', derivedBy='EXTENSION'. */
-static int decode_v2gChargeLoopReqType(bitstream_t* stream, struct v2gChargeLoopReqType* v2gChargeLoopReqType) {
- int grammarID = 33;
- int done = 0;
-
- init_v2gChargeLoopReqType(v2gChargeLoopReqType);
-
- while(!done) {
- switch(grammarID) {
- case 33:
- /* FirstStartTag[START_ELEMENT({urn:iso:15118:2:2016:MsgBody}EVTargetEnergyRequest)] */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- errn = decode_v2gPhysicalValueType(stream, &v2gChargeLoopReqType->EVTargetEnergyRequest);
- grammarID = 34;
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 34:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgBody}EVMaximumEnergyRequest), START_ELEMENT({urn:iso:15118:2:2016:MsgBody}EVMinimumEnergyRequest), START_ELEMENT({urn:iso:15118:2:2016:MsgBody}DisplayParameters), END_ELEMENT] */
- errn = decodeNBitUnsignedInteger(stream, 3, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- errn = decode_v2gPhysicalValueType(stream, &v2gChargeLoopReqType->EVMaximumEnergyRequest);
- v2gChargeLoopReqType->EVMaximumEnergyRequest_isUsed = 1u;
- grammarID = 35;
- break;
- case 1:
- errn = decode_v2gPhysicalValueType(stream, &v2gChargeLoopReqType->EVMinimumEnergyRequest);
- v2gChargeLoopReqType->EVMinimumEnergyRequest_isUsed = 1u;
- grammarID = 36;
- break;
- case 2:
- errn = decode_v2gDisplayParametersType(stream, &v2gChargeLoopReqType->DisplayParameters);
- v2gChargeLoopReqType->DisplayParameters_isUsed = 1u;
- grammarID = 2;
- break;
- case 3:
- done = 1;
- grammarID = 3;
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 35:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgBody}EVMinimumEnergyRequest), START_ELEMENT({urn:iso:15118:2:2016:MsgBody}DisplayParameters), END_ELEMENT] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- errn = decode_v2gPhysicalValueType(stream, &v2gChargeLoopReqType->EVMinimumEnergyRequest);
- v2gChargeLoopReqType->EVMinimumEnergyRequest_isUsed = 1u;
- grammarID = 36;
- break;
- case 1:
- errn = decode_v2gDisplayParametersType(stream, &v2gChargeLoopReqType->DisplayParameters);
- v2gChargeLoopReqType->DisplayParameters_isUsed = 1u;
- grammarID = 2;
- break;
- case 2:
- done = 1;
- grammarID = 3;
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 36:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgBody}DisplayParameters), END_ELEMENT] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- errn = decode_v2gDisplayParametersType(stream, &v2gChargeLoopReqType->DisplayParameters);
- v2gChargeLoopReqType->DisplayParameters_isUsed = 1u;
- grammarID = 2;
- 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:2016:MsgHeader,MessageHeaderType', base type name='anyType', content type='ELEMENT', isAbstract='false', hasTypeId='false', final='0', block='0', particle='("urn:iso:15118:2:2016:MsgHeader":SessionID,"http://www.w3.org/2000/09/xmldsig#":Signature{0-1})', derivedBy='RESTRICTION'. */
-static int decode_v2gMessageHeaderType(bitstream_t* stream, struct v2gMessageHeaderType* v2gMessageHeaderType) {
- int grammarID = 37;
- int done = 0;
-
- init_v2gMessageHeaderType(v2gMessageHeaderType);
-
- while(!done) {
- switch(grammarID) {
- case 37:
- /* FirstStartTag[START_ELEMENT({urn:iso:15118:2:2016:MsgHeader}SessionID)] */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- /* FirstStartTag[CHARACTERS[BINARY_HEX]] */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(errn == 0) {
- if(eventCode == 0) {
- errn = decodeUnsignedInteger16(stream, &v2gMessageHeaderType->SessionID.bytesLen);
- if (errn == 0) {
- errn = (v2gMessageHeaderType->SessionID.bytesLen) <= v2gMessageHeaderType_SessionID_BYTES_SIZE ? 0 : EXI_ERROR_OUT_OF_BYTE_BUFFER;
- }
- if (errn == 0) {
- errn = decodeBytes(stream, v2gMessageHeaderType->SessionID.bytesLen, v2gMessageHeaderType->SessionID.bytes);
- }
- } 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({urn:iso:15118:2:2016:MsgHeader}SessionID) ? */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(eventCode == 0) {
- grammarID = 38;
- } else {
- errn = EXI_DEVIANT_SUPPORT_NOT_DEPLOYED; /* or also typecast and nillable */
- }
- }
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 38:
- /* Element[START_ELEMENT({http://www.w3.org/2000/09/xmldsig#}Signature), END_ELEMENT] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- errn = decode_v2gSignatureType(stream, &v2gMessageHeaderType->Signature);
- v2gMessageHeaderType->Signature_isUsed = 1u;
- grammarID = 2;
- 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='http://www.w3.org/2000/09/xmldsig#,SignatureType', base type name='anyType', content type='ELEMENT', isAbstract='false', hasTypeId='false', final='0', block='0', particle='("http://www.w3.org/2000/09/xmldsig#":SignedInfo,"http://www.w3.org/2000/09/xmldsig#":SignatureValue,"http://www.w3.org/2000/09/xmldsig#":KeyInfo{0-1},"http://www.w3.org/2000/09/xmldsig#":Object{0-UNBOUNDED})', derivedBy='RESTRICTION'. */
-static int decode_v2gSignatureType(bitstream_t* stream, struct v2gSignatureType* v2gSignatureType) {
- int grammarID = 39;
- int done = 0;
-
- init_v2gSignatureType(v2gSignatureType);
-
- while(!done) {
- switch(grammarID) {
- case 39:
- /* FirstStartTag[ATTRIBUTE[STRING](Id), START_ELEMENT({http://www.w3.org/2000/09/xmldsig#}SignedInfo)] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- errn = decodeUnsignedInteger16(stream, &v2gSignatureType->Id.charactersLen);
- if (errn == 0) {
- if (v2gSignatureType->Id.charactersLen >= 2) {
- v2gSignatureType->Id.charactersLen = (uint16_t)(v2gSignatureType->Id.charactersLen - 2); /* string table miss */
- errn = decodeCharacters(stream, v2gSignatureType->Id.charactersLen, v2gSignatureType->Id.characters, v2gSignatureType_Id_CHARACTERS_SIZE);
- } else {
- /* string table hit */
- errn = EXI_ERROR_STRINGVALUES_NOT_SUPPORTED;
- }
- }
- v2gSignatureType->Id_isUsed = 1u;
- grammarID = 40;
- break;
- case 1:
- errn = decode_v2gSignedInfoType(stream, &v2gSignatureType->SignedInfo);
- grammarID = 41;
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 40:
- /* StartTag[START_ELEMENT({http://www.w3.org/2000/09/xmldsig#}SignedInfo)] */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- errn = decode_v2gSignedInfoType(stream, &v2gSignatureType->SignedInfo);
- grammarID = 41;
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 41:
- /* Element[START_ELEMENT({http://www.w3.org/2000/09/xmldsig#}SignatureValue)] */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- errn = decode_v2gSignatureValueType(stream, &v2gSignatureType->SignatureValue);
- grammarID = 42;
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 42:
- /* Element[START_ELEMENT({http://www.w3.org/2000/09/xmldsig#}KeyInfo), START_ELEMENT({http://www.w3.org/2000/09/xmldsig#}Object), END_ELEMENT] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- errn = decode_v2gKeyInfoType(stream, &v2gSignatureType->KeyInfo);
- v2gSignatureType->KeyInfo_isUsed = 1u;
- grammarID = 43;
- break;
- case 1:
- if (v2gSignatureType->Object.arrayLen < v2gSignatureType_Object_ARRAY_SIZE) {
- errn = decode_v2gObjectType(stream, &v2gSignatureType->Object.array[v2gSignatureType->Object.arrayLen++]);
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- grammarID = 43;
- break;
- case 2:
- done = 1;
- grammarID = 3;
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 43:
- /* Element[START_ELEMENT({http://www.w3.org/2000/09/xmldsig#}Object), END_ELEMENT] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gSignatureType->Object.arrayLen < v2gSignatureType_Object_ARRAY_SIZE) {
- errn = decode_v2gObjectType(stream, &v2gSignatureType->Object.array[v2gSignatureType->Object.arrayLen++]);
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- grammarID = 43;
- break;
- case 1:
- 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:2016:MsgBody,BodyType', base type name='anyType', content type='ELEMENT', isAbstract='false', hasTypeId='false', final='0', block='0', particle='("urn:iso:15118:2:2016:MsgBody":BodyElement)', derivedBy='RESTRICTION'. */
-static int decode_v2gBodyType(bitstream_t* stream, struct v2gBodyType* v2gBodyType) {
- int grammarID = 44;
- int done = 0;
-
- init_v2gBodyType(v2gBodyType);
-
- while(!done) {
- switch(grammarID) {
- case 44:
- /* FirstStartTag[START_ELEMENT({urn:iso:15118:2:2016:MsgBody}AC_BidirectionalControlReq), START_ELEMENT({urn:iso:15118:2:2016:MsgBody}AC_BidirectionalControlRes), START_ELEMENT({urn:iso:15118:2:2016:MsgBody}AlignmentCheckReq), START_ELEMENT({urn:iso:15118:2:2016:MsgBody}AlignmentCheckRes), START_ELEMENT({urn:iso:15118:2:2016:MsgBody}AuthorizationReq), START_ELEMENT({urn:iso:15118:2:2016:MsgBody}AuthorizationRes), START_ELEMENT({urn:iso:15118:2:2016:MsgBody}BodyElement), START_ELEMENT({urn:iso:15118:2:2016:MsgBody}CableCheckReq), START_ELEMENT({urn:iso:15118:2:2016:MsgBody}CableCheckRes), START_ELEMENT({urn:iso:15118:2:2016:MsgBody}CertificateInstallationReq), START_ELEMENT({urn:iso:15118:2:2016:MsgBody}CertificateInstallationRes), START_ELEMENT({urn:iso:15118:2:2016:MsgBody}CertificateUpdateReq), START_ELEMENT({urn:iso:15118:2:2016:MsgBody}CertificateUpdateRes), START_ELEMENT({urn:iso:15118:2:2016:MsgBody}ChargeParameterDiscoveryReq), START_ELEMENT({urn:iso:15118:2:2016:MsgBody}ChargeParameterDiscoveryRes), START_ELEMENT({urn:iso:15118:2:2016:MsgBody}ChargingStatusReq), START_ELEMENT({urn:iso:15118:2:2016:MsgBody}ChargingStatusRes), START_ELEMENT({urn:iso:15118:2:2016:MsgBody}ConnectChargingDeviceReq), START_ELEMENT({urn:iso:15118:2:2016:MsgBody}ConnectChargingDeviceRes), START_ELEMENT({urn:iso:15118:2:2016:MsgBody}CurrentDemandReq), START_ELEMENT({urn:iso:15118:2:2016:MsgBody}CurrentDemandRes), START_ELEMENT({urn:iso:15118:2:2016:MsgBody}DC_BidirectionalControlReq), START_ELEMENT({urn:iso:15118:2:2016:MsgBody}DC_BidirectionalControlRes), START_ELEMENT({urn:iso:15118:2:2016:MsgBody}DisconnectChargingDeviceReq), START_ELEMENT({urn:iso:15118:2:2016:MsgBody}DisconnectChargingDeviceRes), START_ELEMENT({urn:iso:15118:2:2016:MsgBody}EVErrorInformation), START_ELEMENT({urn:iso:15118:2:2016:MsgBody}EVSEErrorInformation), START_ELEMENT({urn:iso:15118:2:2016:MsgBody}ErrorInformation), START_ELEMENT({urn:iso:15118:2:2016:MsgBody}FinePositioningReq), START_ELEMENT({urn:iso:15118:2:2016:MsgBody}FinePositioningRes), START_ELEMENT({urn:iso:15118:2:2016:MsgBody}FinePositioningSetupReq), START_ELEMENT({urn:iso:15118:2:2016:MsgBody}FinePositioningSetupRes), START_ELEMENT({urn:iso:15118:2:2016:MsgBody}MeteringReceiptReq), START_ELEMENT({urn:iso:15118:2:2016:MsgBody}MeteringReceiptRes), START_ELEMENT({urn:iso:15118:2:2016:MsgBody}PairingReq), START_ELEMENT({urn:iso:15118:2:2016:MsgBody}PairingRes), START_ELEMENT({urn:iso:15118:2:2016:MsgBody}PaymentDetailsReq), START_ELEMENT({urn:iso:15118:2:2016:MsgBody}PaymentDetailsRes), START_ELEMENT({urn:iso:15118:2:2016:MsgBody}PaymentServiceSelectionReq), START_ELEMENT({urn:iso:15118:2:2016:MsgBody}PaymentServiceSelectionRes), START_ELEMENT({urn:iso:15118:2:2016:MsgBody}PowerDeliveryReq), START_ELEMENT({urn:iso:15118:2:2016:MsgBody}PowerDeliveryRes), START_ELEMENT({urn:iso:15118:2:2016:MsgBody}PowerDemandReq), START_ELEMENT({urn:iso:15118:2:2016:MsgBody}PowerDemandRes), START_ELEMENT({urn:iso:15118:2:2016:MsgBody}PreChargeReq), START_ELEMENT({urn:iso:15118:2:2016:MsgBody}PreChargeRes), START_ELEMENT({urn:iso:15118:2:2016:MsgBody}ServiceDetailReq), START_ELEMENT({urn:iso:15118:2:2016:MsgBody}ServiceDetailRes), START_ELEMENT({urn:iso:15118:2:2016:MsgBody}ServiceDiscoveryReq), START_ELEMENT({urn:iso:15118:2:2016:MsgBody}ServiceDiscoveryRes), START_ELEMENT({urn:iso:15118:2:2016:MsgBody}SessionSetupReq), START_ELEMENT({urn:iso:15118:2:2016:MsgBody}SessionSetupRes), START_ELEMENT({urn:iso:15118:2:2016:MsgBody}SessionStopReq), START_ELEMENT({urn:iso:15118:2:2016:MsgBody}SessionStopRes), START_ELEMENT({urn:iso:15118:2:2016:MsgBody}SystemStatusReq), START_ELEMENT({urn:iso:15118:2:2016:MsgBody}SystemStatusRes), START_ELEMENT({urn:iso:15118:2:2016:MsgBody}V2GRequest), START_ELEMENT({urn:iso:15118:2:2016:MsgBody}V2GResponse), START_ELEMENT({urn:iso:15118:2:2016:MsgBody}VehicleCheckInReq), START_ELEMENT({urn:iso:15118:2:2016:MsgBody}VehicleCheckInRes), START_ELEMENT({urn:iso:15118:2:2016:MsgBody}VehicleCheckOutReq), START_ELEMENT({urn:iso:15118:2:2016:MsgBody}VehicleCheckOutRes), START_ELEMENT({urn:iso:15118:2:2016:MsgBody}WeldingDetectionReq), START_ELEMENT({urn:iso:15118:2:2016:MsgBody}WeldingDetectionRes)] */
- errn = decodeNBitUnsignedInteger(stream, 7, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- errn = decode_v2gAC_BidirectionalControlReqType(stream, &v2gBodyType->AC_BidirectionalControlReq);
- v2gBodyType->AC_BidirectionalControlReq_isUsed = 1u;
- grammarID = 2;
- break;
- case 1:
- errn = decode_v2gAC_BidirectionalControlResType(stream, &v2gBodyType->AC_BidirectionalControlRes);
- v2gBodyType->AC_BidirectionalControlRes_isUsed = 1u;
- grammarID = 2;
- break;
- case 2:
- errn = decode_v2gAlignmentCheckReqType(stream, &v2gBodyType->AlignmentCheckReq);
- v2gBodyType->AlignmentCheckReq_isUsed = 1u;
- grammarID = 2;
- break;
- case 3:
- errn = decode_v2gAlignmentCheckResType(stream, &v2gBodyType->AlignmentCheckRes);
- v2gBodyType->AlignmentCheckRes_isUsed = 1u;
- grammarID = 2;
- break;
- case 4:
- errn = decode_v2gAuthorizationReqType(stream, &v2gBodyType->AuthorizationReq);
- v2gBodyType->AuthorizationReq_isUsed = 1u;
- grammarID = 2;
- break;
- case 5:
- errn = decode_v2gAuthorizationResType(stream, &v2gBodyType->AuthorizationRes);
- v2gBodyType->AuthorizationRes_isUsed = 1u;
- grammarID = 2;
- break;
- case 6:
- errn = decode_v2gBodyBaseType(stream, &v2gBodyType->BodyElement);
- v2gBodyType->BodyElement_isUsed = 1u;
- grammarID = 2;
- break;
- case 7:
- errn = decode_v2gBodyBaseType(stream, &v2gBodyType->CableCheckReq);
- v2gBodyType->CableCheckReq_isUsed = 1u;
- grammarID = 2;
- break;
- case 8:
- errn = decode_v2gCableCheckResType(stream, &v2gBodyType->CableCheckRes);
- v2gBodyType->CableCheckRes_isUsed = 1u;
- grammarID = 2;
- break;
- case 9:
- errn = decode_v2gCertificateInstallationReqType(stream, &v2gBodyType->CertificateInstallationReq);
- v2gBodyType->CertificateInstallationReq_isUsed = 1u;
- grammarID = 2;
- break;
- case 10:
- errn = decode_v2gCertificateInstallationResType(stream, &v2gBodyType->CertificateInstallationRes);
- v2gBodyType->CertificateInstallationRes_isUsed = 1u;
- grammarID = 2;
- break;
- case 11:
- errn = decode_v2gCertificateUpdateReqType(stream, &v2gBodyType->CertificateUpdateReq);
- v2gBodyType->CertificateUpdateReq_isUsed = 1u;
- grammarID = 2;
- break;
- case 12:
- errn = decode_v2gCertificateUpdateResType(stream, &v2gBodyType->CertificateUpdateRes);
- v2gBodyType->CertificateUpdateRes_isUsed = 1u;
- grammarID = 2;
- break;
- case 13:
- errn = decode_v2gChargeParameterDiscoveryReqType(stream, &v2gBodyType->ChargeParameterDiscoveryReq);
- v2gBodyType->ChargeParameterDiscoveryReq_isUsed = 1u;
- grammarID = 2;
- break;
- case 14:
- errn = decode_v2gChargeParameterDiscoveryResType(stream, &v2gBodyType->ChargeParameterDiscoveryRes);
- v2gBodyType->ChargeParameterDiscoveryRes_isUsed = 1u;
- grammarID = 2;
- break;
- case 15:
- errn = decode_v2gChargingStatusReqType(stream, &v2gBodyType->ChargingStatusReq);
- v2gBodyType->ChargingStatusReq_isUsed = 1u;
- grammarID = 2;
- break;
- case 16:
- errn = decode_v2gChargingStatusResType(stream, &v2gBodyType->ChargingStatusRes);
- v2gBodyType->ChargingStatusRes_isUsed = 1u;
- grammarID = 2;
- break;
- case 17:
- errn = decode_v2gConnectChargingDeviceReqType(stream, &v2gBodyType->ConnectChargingDeviceReq);
- v2gBodyType->ConnectChargingDeviceReq_isUsed = 1u;
- grammarID = 2;
- break;
- case 18:
- errn = decode_v2gConnectChargingDeviceResType(stream, &v2gBodyType->ConnectChargingDeviceRes);
- v2gBodyType->ConnectChargingDeviceRes_isUsed = 1u;
- grammarID = 2;
- break;
- case 19:
- errn = decode_v2gCurrentDemandReqType(stream, &v2gBodyType->CurrentDemandReq);
- v2gBodyType->CurrentDemandReq_isUsed = 1u;
- grammarID = 2;
- break;
- case 20:
- errn = decode_v2gCurrentDemandResType(stream, &v2gBodyType->CurrentDemandRes);
- v2gBodyType->CurrentDemandRes_isUsed = 1u;
- grammarID = 2;
- break;
- case 21:
- errn = decode_v2gDC_BidirectionalControlReqType(stream, &v2gBodyType->DC_BidirectionalControlReq);
- v2gBodyType->DC_BidirectionalControlReq_isUsed = 1u;
- grammarID = 2;
- break;
- case 22:
- errn = decode_v2gDC_BidirectionalControlResType(stream, &v2gBodyType->DC_BidirectionalControlRes);
- v2gBodyType->DC_BidirectionalControlRes_isUsed = 1u;
- grammarID = 2;
- break;
- case 23:
- errn = decode_v2gDisconnectChargingDeviceReqType(stream, &v2gBodyType->DisconnectChargingDeviceReq);
- v2gBodyType->DisconnectChargingDeviceReq_isUsed = 1u;
- grammarID = 2;
- break;
- case 24:
- errn = decode_v2gDisconnectChargingDeviceResType(stream, &v2gBodyType->DisconnectChargingDeviceRes);
- v2gBodyType->DisconnectChargingDeviceRes_isUsed = 1u;
- grammarID = 2;
- break;
- case 25:
- errn = decode_v2gEVErrorInformationType(stream, &v2gBodyType->EVErrorInformation);
- v2gBodyType->EVErrorInformation_isUsed = 1u;
- grammarID = 2;
- break;
- case 26:
- errn = decode_v2gEVSEErrorInformationType(stream, &v2gBodyType->EVSEErrorInformation);
- v2gBodyType->EVSEErrorInformation_isUsed = 1u;
- grammarID = 2;
- break;
- case 27:
- errn = decode_v2gBodyBaseType(stream, &v2gBodyType->ErrorInformation);
- v2gBodyType->ErrorInformation_isUsed = 1u;
- grammarID = 2;
- break;
- case 28:
- errn = decode_v2gFinePositioningReqType(stream, &v2gBodyType->FinePositioningReq);
- v2gBodyType->FinePositioningReq_isUsed = 1u;
- grammarID = 2;
- break;
- case 29:
- errn = decode_v2gFinePositioningResType(stream, &v2gBodyType->FinePositioningRes);
- v2gBodyType->FinePositioningRes_isUsed = 1u;
- grammarID = 2;
- break;
- case 30:
- errn = decode_v2gFinePositioningSetupReqType(stream, &v2gBodyType->FinePositioningSetupReq);
- v2gBodyType->FinePositioningSetupReq_isUsed = 1u;
- grammarID = 2;
- break;
- case 31:
- errn = decode_v2gFinePositioningSetupResType(stream, &v2gBodyType->FinePositioningSetupRes);
- v2gBodyType->FinePositioningSetupRes_isUsed = 1u;
- grammarID = 2;
- break;
- case 32:
- errn = decode_v2gMeteringReceiptReqType(stream, &v2gBodyType->MeteringReceiptReq);
- v2gBodyType->MeteringReceiptReq_isUsed = 1u;
- grammarID = 2;
- break;
- case 33:
- errn = decode_v2gV2GResponseType(stream, &v2gBodyType->MeteringReceiptRes);
- v2gBodyType->MeteringReceiptRes_isUsed = 1u;
- grammarID = 2;
- break;
- case 34:
- errn = decode_v2gPairingReqType(stream, &v2gBodyType->PairingReq);
- v2gBodyType->PairingReq_isUsed = 1u;
- grammarID = 2;
- break;
- case 35:
- errn = decode_v2gPairingResType(stream, &v2gBodyType->PairingRes);
- v2gBodyType->PairingRes_isUsed = 1u;
- grammarID = 2;
- break;
- case 36:
- errn = decode_v2gPaymentDetailsReqType(stream, &v2gBodyType->PaymentDetailsReq);
- v2gBodyType->PaymentDetailsReq_isUsed = 1u;
- grammarID = 2;
- break;
- case 37:
- errn = decode_v2gPaymentDetailsResType(stream, &v2gBodyType->PaymentDetailsRes);
- v2gBodyType->PaymentDetailsRes_isUsed = 1u;
- grammarID = 2;
- break;
- case 38:
- errn = decode_v2gPaymentServiceSelectionReqType(stream, &v2gBodyType->PaymentServiceSelectionReq);
- v2gBodyType->PaymentServiceSelectionReq_isUsed = 1u;
- grammarID = 2;
- break;
- case 39:
- errn = decode_v2gV2GResponseType(stream, &v2gBodyType->PaymentServiceSelectionRes);
- v2gBodyType->PaymentServiceSelectionRes_isUsed = 1u;
- grammarID = 2;
- break;
- case 40:
- errn = decode_v2gPowerDeliveryReqType(stream, &v2gBodyType->PowerDeliveryReq);
- v2gBodyType->PowerDeliveryReq_isUsed = 1u;
- grammarID = 2;
- break;
- case 41:
- errn = decode_v2gPowerDeliveryResType(stream, &v2gBodyType->PowerDeliveryRes);
- v2gBodyType->PowerDeliveryRes_isUsed = 1u;
- grammarID = 2;
- break;
- case 42:
- errn = decode_v2gPowerDemandReqType(stream, &v2gBodyType->PowerDemandReq);
- v2gBodyType->PowerDemandReq_isUsed = 1u;
- grammarID = 2;
- break;
- case 43:
- errn = decode_v2gPowerDemandResType(stream, &v2gBodyType->PowerDemandRes);
- v2gBodyType->PowerDemandRes_isUsed = 1u;
- grammarID = 2;
- break;
- case 44:
- errn = decode_v2gPreChargeReqType(stream, &v2gBodyType->PreChargeReq);
- v2gBodyType->PreChargeReq_isUsed = 1u;
- grammarID = 2;
- break;
- case 45:
- errn = decode_v2gPreChargeResType(stream, &v2gBodyType->PreChargeRes);
- v2gBodyType->PreChargeRes_isUsed = 1u;
- grammarID = 2;
- break;
- case 46:
- errn = decode_v2gServiceDetailReqType(stream, &v2gBodyType->ServiceDetailReq);
- v2gBodyType->ServiceDetailReq_isUsed = 1u;
- grammarID = 2;
- break;
- case 47:
- errn = decode_v2gServiceDetailResType(stream, &v2gBodyType->ServiceDetailRes);
- v2gBodyType->ServiceDetailRes_isUsed = 1u;
- grammarID = 2;
- break;
- case 48:
- errn = decode_v2gServiceDiscoveryReqType(stream, &v2gBodyType->ServiceDiscoveryReq);
- v2gBodyType->ServiceDiscoveryReq_isUsed = 1u;
- grammarID = 2;
- break;
- case 49:
- errn = decode_v2gServiceDiscoveryResType(stream, &v2gBodyType->ServiceDiscoveryRes);
- v2gBodyType->ServiceDiscoveryRes_isUsed = 1u;
- grammarID = 2;
- break;
- case 50:
- errn = decode_v2gSessionSetupReqType(stream, &v2gBodyType->SessionSetupReq);
- v2gBodyType->SessionSetupReq_isUsed = 1u;
- grammarID = 2;
- break;
- case 51:
- errn = decode_v2gSessionSetupResType(stream, &v2gBodyType->SessionSetupRes);
- v2gBodyType->SessionSetupRes_isUsed = 1u;
- grammarID = 2;
- break;
- case 52:
- errn = decode_v2gSessionStopReqType(stream, &v2gBodyType->SessionStopReq);
- v2gBodyType->SessionStopReq_isUsed = 1u;
- grammarID = 2;
- break;
- case 53:
- errn = decode_v2gV2GResponseType(stream, &v2gBodyType->SessionStopRes);
- v2gBodyType->SessionStopRes_isUsed = 1u;
- grammarID = 2;
- break;
- case 54:
- errn = decode_v2gSystemStatusReqType(stream, &v2gBodyType->SystemStatusReq);
- v2gBodyType->SystemStatusReq_isUsed = 1u;
- grammarID = 2;
- break;
- case 55:
- errn = decode_v2gSystemStatusResType(stream, &v2gBodyType->SystemStatusRes);
- v2gBodyType->SystemStatusRes_isUsed = 1u;
- grammarID = 2;
- break;
- case 56:
- errn = decode_v2gBodyBaseType(stream, &v2gBodyType->V2GRequest);
- v2gBodyType->V2GRequest_isUsed = 1u;
- grammarID = 2;
- break;
- case 57:
- errn = decode_v2gV2GResponseType(stream, &v2gBodyType->V2GResponse);
- v2gBodyType->V2GResponse_isUsed = 1u;
- grammarID = 2;
- break;
- case 58:
- errn = decode_v2gVehicleCheckInReqType(stream, &v2gBodyType->VehicleCheckInReq);
- v2gBodyType->VehicleCheckInReq_isUsed = 1u;
- grammarID = 2;
- break;
- case 59:
- errn = decode_v2gVehicleCheckInResType(stream, &v2gBodyType->VehicleCheckInRes);
- v2gBodyType->VehicleCheckInRes_isUsed = 1u;
- grammarID = 2;
- break;
- case 60:
- errn = decode_v2gVehicleCheckOutReqType(stream, &v2gBodyType->VehicleCheckOutReq);
- v2gBodyType->VehicleCheckOutReq_isUsed = 1u;
- grammarID = 2;
- break;
- case 61:
- errn = decode_v2gVehicleCheckOutResType(stream, &v2gBodyType->VehicleCheckOutRes);
- v2gBodyType->VehicleCheckOutRes_isUsed = 1u;
- grammarID = 2;
- break;
- case 62:
- errn = decode_v2gBodyBaseType(stream, &v2gBodyType->WeldingDetectionReq);
- v2gBodyType->WeldingDetectionReq_isUsed = 1u;
- grammarID = 2;
- break;
- case 63:
- errn = decode_v2gWeldingDetectionResType(stream, &v2gBodyType->WeldingDetectionRes);
- v2gBodyType->WeldingDetectionRes_isUsed = 1u;
- grammarID = 2;
- 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:2016:MsgBody,FinePositioningReqType', base type name='BodyBaseType', content type='ELEMENT', isAbstract='false', hasTypeId='false', final='0', block='0', particle='("urn:iso:15118:2:2016:MsgBody":EVProcessing,"urn:iso:15118:2:2016:MsgDataTypes":EVFinePositioningParameters{0-1})', derivedBy='EXTENSION'. */
-static int decode_v2gFinePositioningReqType(bitstream_t* stream, struct v2gFinePositioningReqType* v2gFinePositioningReqType) {
- int grammarID = 45;
- int done = 0;
-
- init_v2gFinePositioningReqType(v2gFinePositioningReqType);
-
- while(!done) {
- switch(grammarID) {
- case 45:
- /* FirstStartTag[START_ELEMENT({urn:iso:15118:2:2016:MsgBody}EVProcessing)] */
- 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);
- v2gFinePositioningReqType->EVProcessing = (v2gEVSEProcessingType) 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({urn:iso:15118:2:2016:MsgBody}EVProcessing) ? */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(eventCode == 0) {
- grammarID = 46;
- } else {
- errn = EXI_DEVIANT_SUPPORT_NOT_DEPLOYED; /* or also typecast and nillable */
- }
- }
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 46:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}EVFinePositioningParameters), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}Generic_EVFinePositioningParameters), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}LFA_EVFinePositioningParameters), END_ELEMENT] */
- errn = decodeNBitUnsignedInteger(stream, 3, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- errn = decode_v2gEVFinePositioningParametersType(stream, &v2gFinePositioningReqType->EVFinePositioningParameters);
- v2gFinePositioningReqType->EVFinePositioningParameters_isUsed = 1u;
- grammarID = 2;
- break;
- case 1:
- errn = decode_v2gGeneric_EVFinePositioningParametersType(stream, &v2gFinePositioningReqType->Generic_EVFinePositioningParameters);
- v2gFinePositioningReqType->Generic_EVFinePositioningParameters_isUsed = 1u;
- grammarID = 2;
- break;
- case 2:
- errn = decode_v2gLFA_EVFinePositioningParametersType(stream, &v2gFinePositioningReqType->LFA_EVFinePositioningParameters);
- v2gFinePositioningReqType->LFA_EVFinePositioningParameters_isUsed = 1u;
- grammarID = 2;
- break;
- case 3:
- 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:2016:MsgDataTypes,PMaxScheduleEntryType', base type name='EntryType', content type='ELEMENT', isAbstract='false', hasTypeId='false', final='0', block='0', particle='(("urn:iso:15118:2:2016:MsgDataTypes":RelativeTimeInterval),("urn:iso:15118:2:2016:MsgDataTypes":PMax{1-3}))', derivedBy='EXTENSION'. */
-static int decode_v2gPMaxScheduleEntryType(bitstream_t* stream, struct v2gPMaxScheduleEntryType* v2gPMaxScheduleEntryType) {
- int grammarID = 47;
- int done = 0;
-
- init_v2gPMaxScheduleEntryType(v2gPMaxScheduleEntryType);
-
- while(!done) {
- switch(grammarID) {
- case 47:
- /* FirstStartTag[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}RelativeTimeInterval)] */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- errn = decode_v2gRelativeTimeIntervalType(stream, &v2gPMaxScheduleEntryType->RelativeTimeInterval);
- grammarID = 48;
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 48:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}PMax)] */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gPMaxScheduleEntryType->PMax.arrayLen < v2gPMaxScheduleEntryType_PMax_ARRAY_SIZE) {
- errn = decode_v2gPhysicalValueType(stream, &v2gPMaxScheduleEntryType->PMax.array[v2gPMaxScheduleEntryType->PMax.arrayLen++]);
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- grammarID = 49;
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 49:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}PMax), END_ELEMENT] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gPMaxScheduleEntryType->PMax.arrayLen < v2gPMaxScheduleEntryType_PMax_ARRAY_SIZE) {
- errn = decode_v2gPhysicalValueType(stream, &v2gPMaxScheduleEntryType->PMax.array[v2gPMaxScheduleEntryType->PMax.arrayLen++]);
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- grammarID = 50;
- break;
- case 1:
- done = 1;
- grammarID = 3;
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 50:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}PMax), END_ELEMENT] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gPMaxScheduleEntryType->PMax.arrayLen < v2gPMaxScheduleEntryType_PMax_ARRAY_SIZE) {
- errn = decode_v2gPhysicalValueType(stream, &v2gPMaxScheduleEntryType->PMax.array[v2gPMaxScheduleEntryType->PMax.arrayLen++]);
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- grammarID = 2;
- 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:2016:MsgBody,PreChargeReqType', base type name='BodyBaseType', content type='ELEMENT', isAbstract='false', hasTypeId='false', final='0', block='0', particle='("urn:iso:15118:2:2016:MsgBody":EVTargetVoltage,"urn:iso:15118:2:2016:MsgBody":EVTargetCurrent)', derivedBy='EXTENSION'. */
-static int decode_v2gPreChargeReqType(bitstream_t* stream, struct v2gPreChargeReqType* v2gPreChargeReqType) {
- int grammarID = 51;
- int done = 0;
-
- init_v2gPreChargeReqType(v2gPreChargeReqType);
-
- while(!done) {
- switch(grammarID) {
- case 51:
- /* FirstStartTag[START_ELEMENT({urn:iso:15118:2:2016:MsgBody}EVTargetVoltage)] */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- errn = decode_v2gPhysicalValueType(stream, &v2gPreChargeReqType->EVTargetVoltage);
- grammarID = 52;
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 52:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgBody}EVTargetCurrent)] */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- errn = decode_v2gPhysicalValueType(stream, &v2gPreChargeReqType->EVTargetCurrent);
- grammarID = 2;
- 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:2016:MsgBody,VehicleCheckInResType', base type name='V2GResponseType', content type='ELEMENT', isAbstract='false', hasTypeId='false', final='0', block='0', particle='(("urn:iso:15118:2:2016:MsgBody":ResponseCode,"urn:iso:15118:2:2016:MsgBody":EVSEStatus{0-1}),("urn:iso:15118:2:2016:MsgBody":VehicleSpace,"urn:iso:15118:2:2016:MsgBody":TargetOffset{0-1}))', derivedBy='EXTENSION'. */
-static int decode_v2gVehicleCheckInResType(bitstream_t* stream, struct v2gVehicleCheckInResType* v2gVehicleCheckInResType) {
- int grammarID = 53;
- int done = 0;
-
- init_v2gVehicleCheckInResType(v2gVehicleCheckInResType);
-
- while(!done) {
- switch(grammarID) {
- case 53:
- /* FirstStartTag[START_ELEMENT({urn:iso:15118:2:2016:MsgBody}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, 5, &uint32);
- v2gVehicleCheckInResType->ResponseCode = (v2gresponseCodeType) 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({urn:iso:15118:2:2016:MsgBody}ResponseCode) ? */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(eventCode == 0) {
- grammarID = 54;
- } else {
- errn = EXI_DEVIANT_SUPPORT_NOT_DEPLOYED; /* or also typecast and nillable */
- }
- }
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 54:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgBody}EVSEStatus), START_ELEMENT({urn:iso:15118:2:2016:MsgBody}VehicleSpace)] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- errn = decode_v2gEVSEStatusType(stream, &v2gVehicleCheckInResType->EVSEStatus);
- v2gVehicleCheckInResType->EVSEStatus_isUsed = 1u;
- grammarID = 55;
- break;
- case 1:
- /* First(xsi:type)StartTag[CHARACTERS[UNSIGNED_INTEGER]] */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(errn == 0) {
- if(eventCode == 0) {
- errn = decodeUnsignedInteger16(stream, &v2gVehicleCheckInResType->VehicleSpace);
- } 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({urn:iso:15118:2:2016:MsgBody}VehicleSpace) ? */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(eventCode == 0) {
- grammarID = 56;
- } else {
- errn = EXI_DEVIANT_SUPPORT_NOT_DEPLOYED; /* or also typecast and nillable */
- }
- }
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 55:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgBody}VehicleSpace)] */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- /* First(xsi:type)StartTag[CHARACTERS[UNSIGNED_INTEGER]] */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(errn == 0) {
- if(eventCode == 0) {
- errn = decodeUnsignedInteger16(stream, &v2gVehicleCheckInResType->VehicleSpace);
- } 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({urn:iso:15118:2:2016:MsgBody}VehicleSpace) ? */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(eventCode == 0) {
- grammarID = 56;
- } else {
- errn = EXI_DEVIANT_SUPPORT_NOT_DEPLOYED; /* or also typecast and nillable */
- }
- }
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 56:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgBody}TargetOffset), END_ELEMENT] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- errn = decode_v2gTargetPositionType(stream, &v2gVehicleCheckInResType->TargetOffset);
- v2gVehicleCheckInResType->TargetOffset_isUsed = 1u;
- grammarID = 2;
- 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:2016:MsgBody,V2GRequestType', base type name='anyType', content type='EMPTY', isAbstract='true', hasTypeId='false', final='0', block='0', derivedBy='RESTRICTION'. */
-static int decode_v2gV2GRequestType(bitstream_t* stream, struct v2gV2GRequestType* v2gV2GRequestType) {
- int grammarID = 4;
- int done = 0;
-
- init_v2gV2GRequestType(v2gV2GRequestType);
-
- while(!done) {
- switch(grammarID) {
- case 4:
- /* FirstStartTag[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:2016:MsgDataTypes,LF_EVSEFinePositioningParametersType', base type name='EVSEFinePositioningParametersType', content type='ELEMENT', isAbstract='false', hasTypeId='false', final='0', block='0', particle='("urn:iso:15118:2:2016:MsgDataTypes":NumberOfSignalPackages,"urn:iso:15118:2:2016:MsgDataTypes":SensorPackageList)', derivedBy='EXTENSION'. */
-static int decode_v2gLF_EVSEFinePositioningParametersType(bitstream_t* stream, struct v2gLF_EVSEFinePositioningParametersType* v2gLF_EVSEFinePositioningParametersType) {
- int grammarID = 57;
- int done = 0;
-
- init_v2gLF_EVSEFinePositioningParametersType(v2gLF_EVSEFinePositioningParametersType);
-
- while(!done) {
- switch(grammarID) {
- case 57:
- /* FirstStartTag[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}NumberOfSignalPackages)] */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(errn == 0) {
- if(eventCode == 0) {
- errn = decodeNBitUnsignedInteger(stream, 8, &(uint32));
- v2gLF_EVSEFinePositioningParametersType->NumberOfSignalPackages = (uint8_t)(uint32 + 0);
- } 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({urn:iso:15118:2:2016:MsgDataTypes}NumberOfSignalPackages) ? */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(eventCode == 0) {
- grammarID = 58;
- } else {
- errn = EXI_DEVIANT_SUPPORT_NOT_DEPLOYED; /* or also typecast and nillable */
- }
- }
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 58:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorPackageList)] */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- errn = decode_v2gSensorPackageListType(stream, &v2gLF_EVSEFinePositioningParametersType->SensorPackageList);
- grammarID = 2;
- 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='http://www.w3.org/2000/09/xmldsig#,SignaturePropertiesType', base type name='anyType', content type='ELEMENT', isAbstract='false', hasTypeId='false', final='0', block='0', particle='("http://www.w3.org/2000/09/xmldsig#":SignatureProperty{1-UNBOUNDED})', derivedBy='RESTRICTION'. */
-static int decode_v2gSignaturePropertiesType(bitstream_t* stream, struct v2gSignaturePropertiesType* v2gSignaturePropertiesType) {
- int grammarID = 59;
- int done = 0;
-
- init_v2gSignaturePropertiesType(v2gSignaturePropertiesType);
-
- while(!done) {
- switch(grammarID) {
- case 59:
- /* FirstStartTag[ATTRIBUTE[STRING](Id), START_ELEMENT({http://www.w3.org/2000/09/xmldsig#}SignatureProperty)] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- errn = decodeUnsignedInteger16(stream, &v2gSignaturePropertiesType->Id.charactersLen);
- if (errn == 0) {
- if (v2gSignaturePropertiesType->Id.charactersLen >= 2) {
- v2gSignaturePropertiesType->Id.charactersLen = (uint16_t)(v2gSignaturePropertiesType->Id.charactersLen - 2); /* string table miss */
- errn = decodeCharacters(stream, v2gSignaturePropertiesType->Id.charactersLen, v2gSignaturePropertiesType->Id.characters, v2gSignaturePropertiesType_Id_CHARACTERS_SIZE);
- } else {
- /* string table hit */
- errn = EXI_ERROR_STRINGVALUES_NOT_SUPPORTED;
- }
- }
- v2gSignaturePropertiesType->Id_isUsed = 1u;
- grammarID = 60;
- break;
- case 1:
- if (v2gSignaturePropertiesType->SignatureProperty.arrayLen < v2gSignaturePropertiesType_SignatureProperty_ARRAY_SIZE) {
- errn = decode_v2gSignaturePropertyType(stream, &v2gSignaturePropertiesType->SignatureProperty.array[v2gSignaturePropertiesType->SignatureProperty.arrayLen++]);
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- grammarID = 61;
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 60:
- /* StartTag[START_ELEMENT({http://www.w3.org/2000/09/xmldsig#}SignatureProperty)] */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gSignaturePropertiesType->SignatureProperty.arrayLen < v2gSignaturePropertiesType_SignatureProperty_ARRAY_SIZE) {
- errn = decode_v2gSignaturePropertyType(stream, &v2gSignaturePropertiesType->SignatureProperty.array[v2gSignaturePropertiesType->SignatureProperty.arrayLen++]);
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- grammarID = 61;
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 61:
- /* Element[START_ELEMENT({http://www.w3.org/2000/09/xmldsig#}SignatureProperty), END_ELEMENT] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gSignaturePropertiesType->SignatureProperty.arrayLen < v2gSignaturePropertiesType_SignatureProperty_ARRAY_SIZE) {
- errn = decode_v2gSignaturePropertyType(stream, &v2gSignaturePropertiesType->SignatureProperty.array[v2gSignaturePropertiesType->SignatureProperty.arrayLen++]);
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- grammarID = 61;
- break;
- case 1:
- 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:2016:MsgDataTypes,MagneticVectorSetupListType', base type name='anyType', content type='ELEMENT', isAbstract='false', hasTypeId='false', final='0', block='0', particle='("urn:iso:15118:2:2016:MsgDataTypes":MagneticVectorSetup{1-255})', derivedBy='RESTRICTION'. */
-static int decode_v2gMagneticVectorSetupListType(bitstream_t* stream, struct v2gMagneticVectorSetupListType* v2gMagneticVectorSetupListType) {
- int grammarID = 62;
- int done = 0;
-
- init_v2gMagneticVectorSetupListType(v2gMagneticVectorSetupListType);
-
- while(!done) {
- switch(grammarID) {
- case 62:
- /* FirstStartTag[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MagneticVectorSetup)] */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gMagneticVectorSetupListType->MagneticVectorSetup.arrayLen < v2gMagneticVectorSetupListType_MagneticVectorSetup_ARRAY_SIZE) {
- errn = decode_v2gMagneticVectorSetupType(stream, &v2gMagneticVectorSetupListType->MagneticVectorSetup.array[v2gMagneticVectorSetupListType->MagneticVectorSetup.arrayLen++]);
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- grammarID = 63;
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 63:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MagneticVectorSetup), END_ELEMENT] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gMagneticVectorSetupListType->MagneticVectorSetup.arrayLen < v2gMagneticVectorSetupListType_MagneticVectorSetup_ARRAY_SIZE) {
- errn = decode_v2gMagneticVectorSetupType(stream, &v2gMagneticVectorSetupListType->MagneticVectorSetup.array[v2gMagneticVectorSetupListType->MagneticVectorSetup.arrayLen++]);
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- grammarID = 64;
- break;
- case 1:
- done = 1;
- grammarID = 3;
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 64:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MagneticVectorSetup), END_ELEMENT] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gMagneticVectorSetupListType->MagneticVectorSetup.arrayLen < v2gMagneticVectorSetupListType_MagneticVectorSetup_ARRAY_SIZE) {
- errn = decode_v2gMagneticVectorSetupType(stream, &v2gMagneticVectorSetupListType->MagneticVectorSetup.array[v2gMagneticVectorSetupListType->MagneticVectorSetup.arrayLen++]);
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- grammarID = 65;
- break;
- case 1:
- done = 1;
- grammarID = 3;
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 65:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MagneticVectorSetup), END_ELEMENT] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gMagneticVectorSetupListType->MagneticVectorSetup.arrayLen < v2gMagneticVectorSetupListType_MagneticVectorSetup_ARRAY_SIZE) {
- errn = decode_v2gMagneticVectorSetupType(stream, &v2gMagneticVectorSetupListType->MagneticVectorSetup.array[v2gMagneticVectorSetupListType->MagneticVectorSetup.arrayLen++]);
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- grammarID = 66;
- break;
- case 1:
- done = 1;
- grammarID = 3;
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 66:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MagneticVectorSetup), END_ELEMENT] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gMagneticVectorSetupListType->MagneticVectorSetup.arrayLen < v2gMagneticVectorSetupListType_MagneticVectorSetup_ARRAY_SIZE) {
- errn = decode_v2gMagneticVectorSetupType(stream, &v2gMagneticVectorSetupListType->MagneticVectorSetup.array[v2gMagneticVectorSetupListType->MagneticVectorSetup.arrayLen++]);
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- grammarID = 67;
- break;
- case 1:
- done = 1;
- grammarID = 3;
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 67:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MagneticVectorSetup), END_ELEMENT] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gMagneticVectorSetupListType->MagneticVectorSetup.arrayLen < v2gMagneticVectorSetupListType_MagneticVectorSetup_ARRAY_SIZE) {
- errn = decode_v2gMagneticVectorSetupType(stream, &v2gMagneticVectorSetupListType->MagneticVectorSetup.array[v2gMagneticVectorSetupListType->MagneticVectorSetup.arrayLen++]);
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- grammarID = 68;
- break;
- case 1:
- done = 1;
- grammarID = 3;
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 68:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MagneticVectorSetup), END_ELEMENT] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gMagneticVectorSetupListType->MagneticVectorSetup.arrayLen < v2gMagneticVectorSetupListType_MagneticVectorSetup_ARRAY_SIZE) {
- errn = decode_v2gMagneticVectorSetupType(stream, &v2gMagneticVectorSetupListType->MagneticVectorSetup.array[v2gMagneticVectorSetupListType->MagneticVectorSetup.arrayLen++]);
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- grammarID = 69;
- break;
- case 1:
- done = 1;
- grammarID = 3;
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 69:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MagneticVectorSetup), END_ELEMENT] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gMagneticVectorSetupListType->MagneticVectorSetup.arrayLen < v2gMagneticVectorSetupListType_MagneticVectorSetup_ARRAY_SIZE) {
- errn = decode_v2gMagneticVectorSetupType(stream, &v2gMagneticVectorSetupListType->MagneticVectorSetup.array[v2gMagneticVectorSetupListType->MagneticVectorSetup.arrayLen++]);
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- grammarID = 70;
- break;
- case 1:
- done = 1;
- grammarID = 3;
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 70:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MagneticVectorSetup), END_ELEMENT] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gMagneticVectorSetupListType->MagneticVectorSetup.arrayLen < v2gMagneticVectorSetupListType_MagneticVectorSetup_ARRAY_SIZE) {
- errn = decode_v2gMagneticVectorSetupType(stream, &v2gMagneticVectorSetupListType->MagneticVectorSetup.array[v2gMagneticVectorSetupListType->MagneticVectorSetup.arrayLen++]);
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- grammarID = 71;
- break;
- case 1:
- done = 1;
- grammarID = 3;
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 71:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MagneticVectorSetup), END_ELEMENT] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gMagneticVectorSetupListType->MagneticVectorSetup.arrayLen < v2gMagneticVectorSetupListType_MagneticVectorSetup_ARRAY_SIZE) {
- errn = decode_v2gMagneticVectorSetupType(stream, &v2gMagneticVectorSetupListType->MagneticVectorSetup.array[v2gMagneticVectorSetupListType->MagneticVectorSetup.arrayLen++]);
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- grammarID = 72;
- break;
- case 1:
- done = 1;
- grammarID = 3;
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 72:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MagneticVectorSetup), END_ELEMENT] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gMagneticVectorSetupListType->MagneticVectorSetup.arrayLen < v2gMagneticVectorSetupListType_MagneticVectorSetup_ARRAY_SIZE) {
- errn = decode_v2gMagneticVectorSetupType(stream, &v2gMagneticVectorSetupListType->MagneticVectorSetup.array[v2gMagneticVectorSetupListType->MagneticVectorSetup.arrayLen++]);
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- grammarID = 73;
- break;
- case 1:
- done = 1;
- grammarID = 3;
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 73:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MagneticVectorSetup), END_ELEMENT] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gMagneticVectorSetupListType->MagneticVectorSetup.arrayLen < v2gMagneticVectorSetupListType_MagneticVectorSetup_ARRAY_SIZE) {
- errn = decode_v2gMagneticVectorSetupType(stream, &v2gMagneticVectorSetupListType->MagneticVectorSetup.array[v2gMagneticVectorSetupListType->MagneticVectorSetup.arrayLen++]);
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- grammarID = 74;
- break;
- case 1:
- done = 1;
- grammarID = 3;
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 74:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MagneticVectorSetup), END_ELEMENT] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gMagneticVectorSetupListType->MagneticVectorSetup.arrayLen < v2gMagneticVectorSetupListType_MagneticVectorSetup_ARRAY_SIZE) {
- errn = decode_v2gMagneticVectorSetupType(stream, &v2gMagneticVectorSetupListType->MagneticVectorSetup.array[v2gMagneticVectorSetupListType->MagneticVectorSetup.arrayLen++]);
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- grammarID = 75;
- break;
- case 1:
- done = 1;
- grammarID = 3;
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 75:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MagneticVectorSetup), END_ELEMENT] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gMagneticVectorSetupListType->MagneticVectorSetup.arrayLen < v2gMagneticVectorSetupListType_MagneticVectorSetup_ARRAY_SIZE) {
- errn = decode_v2gMagneticVectorSetupType(stream, &v2gMagneticVectorSetupListType->MagneticVectorSetup.array[v2gMagneticVectorSetupListType->MagneticVectorSetup.arrayLen++]);
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- grammarID = 76;
- break;
- case 1:
- done = 1;
- grammarID = 3;
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 76:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MagneticVectorSetup), END_ELEMENT] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gMagneticVectorSetupListType->MagneticVectorSetup.arrayLen < v2gMagneticVectorSetupListType_MagneticVectorSetup_ARRAY_SIZE) {
- errn = decode_v2gMagneticVectorSetupType(stream, &v2gMagneticVectorSetupListType->MagneticVectorSetup.array[v2gMagneticVectorSetupListType->MagneticVectorSetup.arrayLen++]);
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- grammarID = 77;
- break;
- case 1:
- done = 1;
- grammarID = 3;
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 77:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MagneticVectorSetup), END_ELEMENT] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gMagneticVectorSetupListType->MagneticVectorSetup.arrayLen < v2gMagneticVectorSetupListType_MagneticVectorSetup_ARRAY_SIZE) {
- errn = decode_v2gMagneticVectorSetupType(stream, &v2gMagneticVectorSetupListType->MagneticVectorSetup.array[v2gMagneticVectorSetupListType->MagneticVectorSetup.arrayLen++]);
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- grammarID = 78;
- break;
- case 1:
- done = 1;
- grammarID = 3;
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 78:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MagneticVectorSetup), END_ELEMENT] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gMagneticVectorSetupListType->MagneticVectorSetup.arrayLen < v2gMagneticVectorSetupListType_MagneticVectorSetup_ARRAY_SIZE) {
- errn = decode_v2gMagneticVectorSetupType(stream, &v2gMagneticVectorSetupListType->MagneticVectorSetup.array[v2gMagneticVectorSetupListType->MagneticVectorSetup.arrayLen++]);
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- grammarID = 79;
- break;
- case 1:
- done = 1;
- grammarID = 3;
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 79:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MagneticVectorSetup), END_ELEMENT] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gMagneticVectorSetupListType->MagneticVectorSetup.arrayLen < v2gMagneticVectorSetupListType_MagneticVectorSetup_ARRAY_SIZE) {
- errn = decode_v2gMagneticVectorSetupType(stream, &v2gMagneticVectorSetupListType->MagneticVectorSetup.array[v2gMagneticVectorSetupListType->MagneticVectorSetup.arrayLen++]);
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- grammarID = 80;
- break;
- case 1:
- done = 1;
- grammarID = 3;
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 80:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MagneticVectorSetup), END_ELEMENT] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gMagneticVectorSetupListType->MagneticVectorSetup.arrayLen < v2gMagneticVectorSetupListType_MagneticVectorSetup_ARRAY_SIZE) {
- errn = decode_v2gMagneticVectorSetupType(stream, &v2gMagneticVectorSetupListType->MagneticVectorSetup.array[v2gMagneticVectorSetupListType->MagneticVectorSetup.arrayLen++]);
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- grammarID = 81;
- break;
- case 1:
- done = 1;
- grammarID = 3;
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 81:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MagneticVectorSetup), END_ELEMENT] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gMagneticVectorSetupListType->MagneticVectorSetup.arrayLen < v2gMagneticVectorSetupListType_MagneticVectorSetup_ARRAY_SIZE) {
- errn = decode_v2gMagneticVectorSetupType(stream, &v2gMagneticVectorSetupListType->MagneticVectorSetup.array[v2gMagneticVectorSetupListType->MagneticVectorSetup.arrayLen++]);
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- grammarID = 82;
- break;
- case 1:
- done = 1;
- grammarID = 3;
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 82:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MagneticVectorSetup), END_ELEMENT] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gMagneticVectorSetupListType->MagneticVectorSetup.arrayLen < v2gMagneticVectorSetupListType_MagneticVectorSetup_ARRAY_SIZE) {
- errn = decode_v2gMagneticVectorSetupType(stream, &v2gMagneticVectorSetupListType->MagneticVectorSetup.array[v2gMagneticVectorSetupListType->MagneticVectorSetup.arrayLen++]);
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- grammarID = 83;
- break;
- case 1:
- done = 1;
- grammarID = 3;
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 83:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MagneticVectorSetup), END_ELEMENT] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gMagneticVectorSetupListType->MagneticVectorSetup.arrayLen < v2gMagneticVectorSetupListType_MagneticVectorSetup_ARRAY_SIZE) {
- errn = decode_v2gMagneticVectorSetupType(stream, &v2gMagneticVectorSetupListType->MagneticVectorSetup.array[v2gMagneticVectorSetupListType->MagneticVectorSetup.arrayLen++]);
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- grammarID = 84;
- break;
- case 1:
- done = 1;
- grammarID = 3;
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 84:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MagneticVectorSetup), END_ELEMENT] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gMagneticVectorSetupListType->MagneticVectorSetup.arrayLen < v2gMagneticVectorSetupListType_MagneticVectorSetup_ARRAY_SIZE) {
- errn = decode_v2gMagneticVectorSetupType(stream, &v2gMagneticVectorSetupListType->MagneticVectorSetup.array[v2gMagneticVectorSetupListType->MagneticVectorSetup.arrayLen++]);
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- grammarID = 85;
- break;
- case 1:
- done = 1;
- grammarID = 3;
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 85:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MagneticVectorSetup), END_ELEMENT] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gMagneticVectorSetupListType->MagneticVectorSetup.arrayLen < v2gMagneticVectorSetupListType_MagneticVectorSetup_ARRAY_SIZE) {
- errn = decode_v2gMagneticVectorSetupType(stream, &v2gMagneticVectorSetupListType->MagneticVectorSetup.array[v2gMagneticVectorSetupListType->MagneticVectorSetup.arrayLen++]);
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- grammarID = 86;
- break;
- case 1:
- done = 1;
- grammarID = 3;
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 86:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MagneticVectorSetup), END_ELEMENT] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gMagneticVectorSetupListType->MagneticVectorSetup.arrayLen < v2gMagneticVectorSetupListType_MagneticVectorSetup_ARRAY_SIZE) {
- errn = decode_v2gMagneticVectorSetupType(stream, &v2gMagneticVectorSetupListType->MagneticVectorSetup.array[v2gMagneticVectorSetupListType->MagneticVectorSetup.arrayLen++]);
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- grammarID = 87;
- break;
- case 1:
- done = 1;
- grammarID = 3;
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 87:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MagneticVectorSetup), END_ELEMENT] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gMagneticVectorSetupListType->MagneticVectorSetup.arrayLen < v2gMagneticVectorSetupListType_MagneticVectorSetup_ARRAY_SIZE) {
- errn = decode_v2gMagneticVectorSetupType(stream, &v2gMagneticVectorSetupListType->MagneticVectorSetup.array[v2gMagneticVectorSetupListType->MagneticVectorSetup.arrayLen++]);
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- grammarID = 88;
- break;
- case 1:
- done = 1;
- grammarID = 3;
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 88:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MagneticVectorSetup), END_ELEMENT] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gMagneticVectorSetupListType->MagneticVectorSetup.arrayLen < v2gMagneticVectorSetupListType_MagneticVectorSetup_ARRAY_SIZE) {
- errn = decode_v2gMagneticVectorSetupType(stream, &v2gMagneticVectorSetupListType->MagneticVectorSetup.array[v2gMagneticVectorSetupListType->MagneticVectorSetup.arrayLen++]);
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- grammarID = 89;
- break;
- case 1:
- done = 1;
- grammarID = 3;
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 89:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MagneticVectorSetup), END_ELEMENT] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gMagneticVectorSetupListType->MagneticVectorSetup.arrayLen < v2gMagneticVectorSetupListType_MagneticVectorSetup_ARRAY_SIZE) {
- errn = decode_v2gMagneticVectorSetupType(stream, &v2gMagneticVectorSetupListType->MagneticVectorSetup.array[v2gMagneticVectorSetupListType->MagneticVectorSetup.arrayLen++]);
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- grammarID = 90;
- break;
- case 1:
- done = 1;
- grammarID = 3;
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 90:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MagneticVectorSetup), END_ELEMENT] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gMagneticVectorSetupListType->MagneticVectorSetup.arrayLen < v2gMagneticVectorSetupListType_MagneticVectorSetup_ARRAY_SIZE) {
- errn = decode_v2gMagneticVectorSetupType(stream, &v2gMagneticVectorSetupListType->MagneticVectorSetup.array[v2gMagneticVectorSetupListType->MagneticVectorSetup.arrayLen++]);
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- grammarID = 91;
- break;
- case 1:
- done = 1;
- grammarID = 3;
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 91:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MagneticVectorSetup), END_ELEMENT] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gMagneticVectorSetupListType->MagneticVectorSetup.arrayLen < v2gMagneticVectorSetupListType_MagneticVectorSetup_ARRAY_SIZE) {
- errn = decode_v2gMagneticVectorSetupType(stream, &v2gMagneticVectorSetupListType->MagneticVectorSetup.array[v2gMagneticVectorSetupListType->MagneticVectorSetup.arrayLen++]);
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- grammarID = 92;
- break;
- case 1:
- done = 1;
- grammarID = 3;
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 92:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MagneticVectorSetup), END_ELEMENT] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gMagneticVectorSetupListType->MagneticVectorSetup.arrayLen < v2gMagneticVectorSetupListType_MagneticVectorSetup_ARRAY_SIZE) {
- errn = decode_v2gMagneticVectorSetupType(stream, &v2gMagneticVectorSetupListType->MagneticVectorSetup.array[v2gMagneticVectorSetupListType->MagneticVectorSetup.arrayLen++]);
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- grammarID = 93;
- break;
- case 1:
- done = 1;
- grammarID = 3;
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 93:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MagneticVectorSetup), END_ELEMENT] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gMagneticVectorSetupListType->MagneticVectorSetup.arrayLen < v2gMagneticVectorSetupListType_MagneticVectorSetup_ARRAY_SIZE) {
- errn = decode_v2gMagneticVectorSetupType(stream, &v2gMagneticVectorSetupListType->MagneticVectorSetup.array[v2gMagneticVectorSetupListType->MagneticVectorSetup.arrayLen++]);
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- grammarID = 94;
- break;
- case 1:
- done = 1;
- grammarID = 3;
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 94:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MagneticVectorSetup), END_ELEMENT] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gMagneticVectorSetupListType->MagneticVectorSetup.arrayLen < v2gMagneticVectorSetupListType_MagneticVectorSetup_ARRAY_SIZE) {
- errn = decode_v2gMagneticVectorSetupType(stream, &v2gMagneticVectorSetupListType->MagneticVectorSetup.array[v2gMagneticVectorSetupListType->MagneticVectorSetup.arrayLen++]);
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- grammarID = 95;
- break;
- case 1:
- done = 1;
- grammarID = 3;
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 95:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MagneticVectorSetup), END_ELEMENT] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gMagneticVectorSetupListType->MagneticVectorSetup.arrayLen < v2gMagneticVectorSetupListType_MagneticVectorSetup_ARRAY_SIZE) {
- errn = decode_v2gMagneticVectorSetupType(stream, &v2gMagneticVectorSetupListType->MagneticVectorSetup.array[v2gMagneticVectorSetupListType->MagneticVectorSetup.arrayLen++]);
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- grammarID = 96;
- break;
- case 1:
- done = 1;
- grammarID = 3;
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 96:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MagneticVectorSetup), END_ELEMENT] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gMagneticVectorSetupListType->MagneticVectorSetup.arrayLen < v2gMagneticVectorSetupListType_MagneticVectorSetup_ARRAY_SIZE) {
- errn = decode_v2gMagneticVectorSetupType(stream, &v2gMagneticVectorSetupListType->MagneticVectorSetup.array[v2gMagneticVectorSetupListType->MagneticVectorSetup.arrayLen++]);
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- grammarID = 97;
- break;
- case 1:
- done = 1;
- grammarID = 3;
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 97:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MagneticVectorSetup), END_ELEMENT] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gMagneticVectorSetupListType->MagneticVectorSetup.arrayLen < v2gMagneticVectorSetupListType_MagneticVectorSetup_ARRAY_SIZE) {
- errn = decode_v2gMagneticVectorSetupType(stream, &v2gMagneticVectorSetupListType->MagneticVectorSetup.array[v2gMagneticVectorSetupListType->MagneticVectorSetup.arrayLen++]);
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- grammarID = 98;
- break;
- case 1:
- done = 1;
- grammarID = 3;
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 98:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MagneticVectorSetup), END_ELEMENT] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gMagneticVectorSetupListType->MagneticVectorSetup.arrayLen < v2gMagneticVectorSetupListType_MagneticVectorSetup_ARRAY_SIZE) {
- errn = decode_v2gMagneticVectorSetupType(stream, &v2gMagneticVectorSetupListType->MagneticVectorSetup.array[v2gMagneticVectorSetupListType->MagneticVectorSetup.arrayLen++]);
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- grammarID = 99;
- break;
- case 1:
- done = 1;
- grammarID = 3;
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 99:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MagneticVectorSetup), END_ELEMENT] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gMagneticVectorSetupListType->MagneticVectorSetup.arrayLen < v2gMagneticVectorSetupListType_MagneticVectorSetup_ARRAY_SIZE) {
- errn = decode_v2gMagneticVectorSetupType(stream, &v2gMagneticVectorSetupListType->MagneticVectorSetup.array[v2gMagneticVectorSetupListType->MagneticVectorSetup.arrayLen++]);
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- grammarID = 100;
- break;
- case 1:
- done = 1;
- grammarID = 3;
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 100:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MagneticVectorSetup), END_ELEMENT] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gMagneticVectorSetupListType->MagneticVectorSetup.arrayLen < v2gMagneticVectorSetupListType_MagneticVectorSetup_ARRAY_SIZE) {
- errn = decode_v2gMagneticVectorSetupType(stream, &v2gMagneticVectorSetupListType->MagneticVectorSetup.array[v2gMagneticVectorSetupListType->MagneticVectorSetup.arrayLen++]);
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- grammarID = 101;
- break;
- case 1:
- done = 1;
- grammarID = 3;
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 101:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MagneticVectorSetup), END_ELEMENT] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gMagneticVectorSetupListType->MagneticVectorSetup.arrayLen < v2gMagneticVectorSetupListType_MagneticVectorSetup_ARRAY_SIZE) {
- errn = decode_v2gMagneticVectorSetupType(stream, &v2gMagneticVectorSetupListType->MagneticVectorSetup.array[v2gMagneticVectorSetupListType->MagneticVectorSetup.arrayLen++]);
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- grammarID = 102;
- break;
- case 1:
- done = 1;
- grammarID = 3;
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 102:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MagneticVectorSetup), END_ELEMENT] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gMagneticVectorSetupListType->MagneticVectorSetup.arrayLen < v2gMagneticVectorSetupListType_MagneticVectorSetup_ARRAY_SIZE) {
- errn = decode_v2gMagneticVectorSetupType(stream, &v2gMagneticVectorSetupListType->MagneticVectorSetup.array[v2gMagneticVectorSetupListType->MagneticVectorSetup.arrayLen++]);
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- grammarID = 103;
- break;
- case 1:
- done = 1;
- grammarID = 3;
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 103:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MagneticVectorSetup), END_ELEMENT] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gMagneticVectorSetupListType->MagneticVectorSetup.arrayLen < v2gMagneticVectorSetupListType_MagneticVectorSetup_ARRAY_SIZE) {
- errn = decode_v2gMagneticVectorSetupType(stream, &v2gMagneticVectorSetupListType->MagneticVectorSetup.array[v2gMagneticVectorSetupListType->MagneticVectorSetup.arrayLen++]);
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- grammarID = 104;
- break;
- case 1:
- done = 1;
- grammarID = 3;
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 104:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MagneticVectorSetup), END_ELEMENT] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gMagneticVectorSetupListType->MagneticVectorSetup.arrayLen < v2gMagneticVectorSetupListType_MagneticVectorSetup_ARRAY_SIZE) {
- errn = decode_v2gMagneticVectorSetupType(stream, &v2gMagneticVectorSetupListType->MagneticVectorSetup.array[v2gMagneticVectorSetupListType->MagneticVectorSetup.arrayLen++]);
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- grammarID = 105;
- break;
- case 1:
- done = 1;
- grammarID = 3;
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 105:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MagneticVectorSetup), END_ELEMENT] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gMagneticVectorSetupListType->MagneticVectorSetup.arrayLen < v2gMagneticVectorSetupListType_MagneticVectorSetup_ARRAY_SIZE) {
- errn = decode_v2gMagneticVectorSetupType(stream, &v2gMagneticVectorSetupListType->MagneticVectorSetup.array[v2gMagneticVectorSetupListType->MagneticVectorSetup.arrayLen++]);
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- grammarID = 106;
- break;
- case 1:
- done = 1;
- grammarID = 3;
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 106:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MagneticVectorSetup), END_ELEMENT] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gMagneticVectorSetupListType->MagneticVectorSetup.arrayLen < v2gMagneticVectorSetupListType_MagneticVectorSetup_ARRAY_SIZE) {
- errn = decode_v2gMagneticVectorSetupType(stream, &v2gMagneticVectorSetupListType->MagneticVectorSetup.array[v2gMagneticVectorSetupListType->MagneticVectorSetup.arrayLen++]);
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- grammarID = 107;
- break;
- case 1:
- done = 1;
- grammarID = 3;
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 107:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MagneticVectorSetup), END_ELEMENT] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gMagneticVectorSetupListType->MagneticVectorSetup.arrayLen < v2gMagneticVectorSetupListType_MagneticVectorSetup_ARRAY_SIZE) {
- errn = decode_v2gMagneticVectorSetupType(stream, &v2gMagneticVectorSetupListType->MagneticVectorSetup.array[v2gMagneticVectorSetupListType->MagneticVectorSetup.arrayLen++]);
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- grammarID = 108;
- break;
- case 1:
- done = 1;
- grammarID = 3;
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 108:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MagneticVectorSetup), END_ELEMENT] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gMagneticVectorSetupListType->MagneticVectorSetup.arrayLen < v2gMagneticVectorSetupListType_MagneticVectorSetup_ARRAY_SIZE) {
- errn = decode_v2gMagneticVectorSetupType(stream, &v2gMagneticVectorSetupListType->MagneticVectorSetup.array[v2gMagneticVectorSetupListType->MagneticVectorSetup.arrayLen++]);
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- grammarID = 109;
- break;
- case 1:
- done = 1;
- grammarID = 3;
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 109:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MagneticVectorSetup), END_ELEMENT] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gMagneticVectorSetupListType->MagneticVectorSetup.arrayLen < v2gMagneticVectorSetupListType_MagneticVectorSetup_ARRAY_SIZE) {
- errn = decode_v2gMagneticVectorSetupType(stream, &v2gMagneticVectorSetupListType->MagneticVectorSetup.array[v2gMagneticVectorSetupListType->MagneticVectorSetup.arrayLen++]);
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- grammarID = 110;
- break;
- case 1:
- done = 1;
- grammarID = 3;
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 110:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MagneticVectorSetup), END_ELEMENT] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gMagneticVectorSetupListType->MagneticVectorSetup.arrayLen < v2gMagneticVectorSetupListType_MagneticVectorSetup_ARRAY_SIZE) {
- errn = decode_v2gMagneticVectorSetupType(stream, &v2gMagneticVectorSetupListType->MagneticVectorSetup.array[v2gMagneticVectorSetupListType->MagneticVectorSetup.arrayLen++]);
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- grammarID = 111;
- break;
- case 1:
- done = 1;
- grammarID = 3;
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 111:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MagneticVectorSetup), END_ELEMENT] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gMagneticVectorSetupListType->MagneticVectorSetup.arrayLen < v2gMagneticVectorSetupListType_MagneticVectorSetup_ARRAY_SIZE) {
- errn = decode_v2gMagneticVectorSetupType(stream, &v2gMagneticVectorSetupListType->MagneticVectorSetup.array[v2gMagneticVectorSetupListType->MagneticVectorSetup.arrayLen++]);
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- grammarID = 112;
- break;
- case 1:
- done = 1;
- grammarID = 3;
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 112:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MagneticVectorSetup), END_ELEMENT] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gMagneticVectorSetupListType->MagneticVectorSetup.arrayLen < v2gMagneticVectorSetupListType_MagneticVectorSetup_ARRAY_SIZE) {
- errn = decode_v2gMagneticVectorSetupType(stream, &v2gMagneticVectorSetupListType->MagneticVectorSetup.array[v2gMagneticVectorSetupListType->MagneticVectorSetup.arrayLen++]);
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- grammarID = 113;
- break;
- case 1:
- done = 1;
- grammarID = 3;
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 113:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MagneticVectorSetup), END_ELEMENT] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gMagneticVectorSetupListType->MagneticVectorSetup.arrayLen < v2gMagneticVectorSetupListType_MagneticVectorSetup_ARRAY_SIZE) {
- errn = decode_v2gMagneticVectorSetupType(stream, &v2gMagneticVectorSetupListType->MagneticVectorSetup.array[v2gMagneticVectorSetupListType->MagneticVectorSetup.arrayLen++]);
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- grammarID = 114;
- break;
- case 1:
- done = 1;
- grammarID = 3;
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 114:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MagneticVectorSetup), END_ELEMENT] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gMagneticVectorSetupListType->MagneticVectorSetup.arrayLen < v2gMagneticVectorSetupListType_MagneticVectorSetup_ARRAY_SIZE) {
- errn = decode_v2gMagneticVectorSetupType(stream, &v2gMagneticVectorSetupListType->MagneticVectorSetup.array[v2gMagneticVectorSetupListType->MagneticVectorSetup.arrayLen++]);
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- grammarID = 115;
- break;
- case 1:
- done = 1;
- grammarID = 3;
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 115:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MagneticVectorSetup), END_ELEMENT] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gMagneticVectorSetupListType->MagneticVectorSetup.arrayLen < v2gMagneticVectorSetupListType_MagneticVectorSetup_ARRAY_SIZE) {
- errn = decode_v2gMagneticVectorSetupType(stream, &v2gMagneticVectorSetupListType->MagneticVectorSetup.array[v2gMagneticVectorSetupListType->MagneticVectorSetup.arrayLen++]);
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- grammarID = 116;
- break;
- case 1:
- done = 1;
- grammarID = 3;
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 116:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MagneticVectorSetup), END_ELEMENT] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gMagneticVectorSetupListType->MagneticVectorSetup.arrayLen < v2gMagneticVectorSetupListType_MagneticVectorSetup_ARRAY_SIZE) {
- errn = decode_v2gMagneticVectorSetupType(stream, &v2gMagneticVectorSetupListType->MagneticVectorSetup.array[v2gMagneticVectorSetupListType->MagneticVectorSetup.arrayLen++]);
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- grammarID = 117;
- break;
- case 1:
- done = 1;
- grammarID = 3;
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 117:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MagneticVectorSetup), END_ELEMENT] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gMagneticVectorSetupListType->MagneticVectorSetup.arrayLen < v2gMagneticVectorSetupListType_MagneticVectorSetup_ARRAY_SIZE) {
- errn = decode_v2gMagneticVectorSetupType(stream, &v2gMagneticVectorSetupListType->MagneticVectorSetup.array[v2gMagneticVectorSetupListType->MagneticVectorSetup.arrayLen++]);
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- grammarID = 118;
- break;
- case 1:
- done = 1;
- grammarID = 3;
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 118:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MagneticVectorSetup), END_ELEMENT] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gMagneticVectorSetupListType->MagneticVectorSetup.arrayLen < v2gMagneticVectorSetupListType_MagneticVectorSetup_ARRAY_SIZE) {
- errn = decode_v2gMagneticVectorSetupType(stream, &v2gMagneticVectorSetupListType->MagneticVectorSetup.array[v2gMagneticVectorSetupListType->MagneticVectorSetup.arrayLen++]);
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- grammarID = 119;
- break;
- case 1:
- done = 1;
- grammarID = 3;
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 119:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MagneticVectorSetup), END_ELEMENT] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gMagneticVectorSetupListType->MagneticVectorSetup.arrayLen < v2gMagneticVectorSetupListType_MagneticVectorSetup_ARRAY_SIZE) {
- errn = decode_v2gMagneticVectorSetupType(stream, &v2gMagneticVectorSetupListType->MagneticVectorSetup.array[v2gMagneticVectorSetupListType->MagneticVectorSetup.arrayLen++]);
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- grammarID = 120;
- break;
- case 1:
- done = 1;
- grammarID = 3;
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 120:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MagneticVectorSetup), END_ELEMENT] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gMagneticVectorSetupListType->MagneticVectorSetup.arrayLen < v2gMagneticVectorSetupListType_MagneticVectorSetup_ARRAY_SIZE) {
- errn = decode_v2gMagneticVectorSetupType(stream, &v2gMagneticVectorSetupListType->MagneticVectorSetup.array[v2gMagneticVectorSetupListType->MagneticVectorSetup.arrayLen++]);
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- grammarID = 121;
- break;
- case 1:
- done = 1;
- grammarID = 3;
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 121:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MagneticVectorSetup), END_ELEMENT] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gMagneticVectorSetupListType->MagneticVectorSetup.arrayLen < v2gMagneticVectorSetupListType_MagneticVectorSetup_ARRAY_SIZE) {
- errn = decode_v2gMagneticVectorSetupType(stream, &v2gMagneticVectorSetupListType->MagneticVectorSetup.array[v2gMagneticVectorSetupListType->MagneticVectorSetup.arrayLen++]);
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- grammarID = 122;
- break;
- case 1:
- done = 1;
- grammarID = 3;
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 122:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MagneticVectorSetup), END_ELEMENT] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gMagneticVectorSetupListType->MagneticVectorSetup.arrayLen < v2gMagneticVectorSetupListType_MagneticVectorSetup_ARRAY_SIZE) {
- errn = decode_v2gMagneticVectorSetupType(stream, &v2gMagneticVectorSetupListType->MagneticVectorSetup.array[v2gMagneticVectorSetupListType->MagneticVectorSetup.arrayLen++]);
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- grammarID = 123;
- break;
- case 1:
- done = 1;
- grammarID = 3;
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 123:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MagneticVectorSetup), END_ELEMENT] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gMagneticVectorSetupListType->MagneticVectorSetup.arrayLen < v2gMagneticVectorSetupListType_MagneticVectorSetup_ARRAY_SIZE) {
- errn = decode_v2gMagneticVectorSetupType(stream, &v2gMagneticVectorSetupListType->MagneticVectorSetup.array[v2gMagneticVectorSetupListType->MagneticVectorSetup.arrayLen++]);
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- grammarID = 124;
- break;
- case 1:
- done = 1;
- grammarID = 3;
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 124:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MagneticVectorSetup), END_ELEMENT] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gMagneticVectorSetupListType->MagneticVectorSetup.arrayLen < v2gMagneticVectorSetupListType_MagneticVectorSetup_ARRAY_SIZE) {
- errn = decode_v2gMagneticVectorSetupType(stream, &v2gMagneticVectorSetupListType->MagneticVectorSetup.array[v2gMagneticVectorSetupListType->MagneticVectorSetup.arrayLen++]);
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- grammarID = 125;
- break;
- case 1:
- done = 1;
- grammarID = 3;
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 125:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MagneticVectorSetup), END_ELEMENT] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gMagneticVectorSetupListType->MagneticVectorSetup.arrayLen < v2gMagneticVectorSetupListType_MagneticVectorSetup_ARRAY_SIZE) {
- errn = decode_v2gMagneticVectorSetupType(stream, &v2gMagneticVectorSetupListType->MagneticVectorSetup.array[v2gMagneticVectorSetupListType->MagneticVectorSetup.arrayLen++]);
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- grammarID = 126;
- break;
- case 1:
- done = 1;
- grammarID = 3;
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 126:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MagneticVectorSetup), END_ELEMENT] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gMagneticVectorSetupListType->MagneticVectorSetup.arrayLen < v2gMagneticVectorSetupListType_MagneticVectorSetup_ARRAY_SIZE) {
- errn = decode_v2gMagneticVectorSetupType(stream, &v2gMagneticVectorSetupListType->MagneticVectorSetup.array[v2gMagneticVectorSetupListType->MagneticVectorSetup.arrayLen++]);
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- grammarID = 127;
- break;
- case 1:
- done = 1;
- grammarID = 3;
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 127:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MagneticVectorSetup), END_ELEMENT] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gMagneticVectorSetupListType->MagneticVectorSetup.arrayLen < v2gMagneticVectorSetupListType_MagneticVectorSetup_ARRAY_SIZE) {
- errn = decode_v2gMagneticVectorSetupType(stream, &v2gMagneticVectorSetupListType->MagneticVectorSetup.array[v2gMagneticVectorSetupListType->MagneticVectorSetup.arrayLen++]);
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- grammarID = 128;
- break;
- case 1:
- done = 1;
- grammarID = 3;
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 128:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MagneticVectorSetup), END_ELEMENT] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gMagneticVectorSetupListType->MagneticVectorSetup.arrayLen < v2gMagneticVectorSetupListType_MagneticVectorSetup_ARRAY_SIZE) {
- errn = decode_v2gMagneticVectorSetupType(stream, &v2gMagneticVectorSetupListType->MagneticVectorSetup.array[v2gMagneticVectorSetupListType->MagneticVectorSetup.arrayLen++]);
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- grammarID = 129;
- break;
- case 1:
- done = 1;
- grammarID = 3;
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 129:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MagneticVectorSetup), END_ELEMENT] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gMagneticVectorSetupListType->MagneticVectorSetup.arrayLen < v2gMagneticVectorSetupListType_MagneticVectorSetup_ARRAY_SIZE) {
- errn = decode_v2gMagneticVectorSetupType(stream, &v2gMagneticVectorSetupListType->MagneticVectorSetup.array[v2gMagneticVectorSetupListType->MagneticVectorSetup.arrayLen++]);
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- grammarID = 130;
- break;
- case 1:
- done = 1;
- grammarID = 3;
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 130:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MagneticVectorSetup), END_ELEMENT] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gMagneticVectorSetupListType->MagneticVectorSetup.arrayLen < v2gMagneticVectorSetupListType_MagneticVectorSetup_ARRAY_SIZE) {
- errn = decode_v2gMagneticVectorSetupType(stream, &v2gMagneticVectorSetupListType->MagneticVectorSetup.array[v2gMagneticVectorSetupListType->MagneticVectorSetup.arrayLen++]);
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- grammarID = 131;
- break;
- case 1:
- done = 1;
- grammarID = 3;
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 131:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MagneticVectorSetup), END_ELEMENT] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gMagneticVectorSetupListType->MagneticVectorSetup.arrayLen < v2gMagneticVectorSetupListType_MagneticVectorSetup_ARRAY_SIZE) {
- errn = decode_v2gMagneticVectorSetupType(stream, &v2gMagneticVectorSetupListType->MagneticVectorSetup.array[v2gMagneticVectorSetupListType->MagneticVectorSetup.arrayLen++]);
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- grammarID = 132;
- break;
- case 1:
- done = 1;
- grammarID = 3;
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 132:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MagneticVectorSetup), END_ELEMENT] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gMagneticVectorSetupListType->MagneticVectorSetup.arrayLen < v2gMagneticVectorSetupListType_MagneticVectorSetup_ARRAY_SIZE) {
- errn = decode_v2gMagneticVectorSetupType(stream, &v2gMagneticVectorSetupListType->MagneticVectorSetup.array[v2gMagneticVectorSetupListType->MagneticVectorSetup.arrayLen++]);
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- grammarID = 133;
- break;
- case 1:
- done = 1;
- grammarID = 3;
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 133:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MagneticVectorSetup), END_ELEMENT] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gMagneticVectorSetupListType->MagneticVectorSetup.arrayLen < v2gMagneticVectorSetupListType_MagneticVectorSetup_ARRAY_SIZE) {
- errn = decode_v2gMagneticVectorSetupType(stream, &v2gMagneticVectorSetupListType->MagneticVectorSetup.array[v2gMagneticVectorSetupListType->MagneticVectorSetup.arrayLen++]);
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- grammarID = 134;
- break;
- case 1:
- done = 1;
- grammarID = 3;
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 134:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MagneticVectorSetup), END_ELEMENT] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gMagneticVectorSetupListType->MagneticVectorSetup.arrayLen < v2gMagneticVectorSetupListType_MagneticVectorSetup_ARRAY_SIZE) {
- errn = decode_v2gMagneticVectorSetupType(stream, &v2gMagneticVectorSetupListType->MagneticVectorSetup.array[v2gMagneticVectorSetupListType->MagneticVectorSetup.arrayLen++]);
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- grammarID = 135;
- break;
- case 1:
- done = 1;
- grammarID = 3;
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 135:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MagneticVectorSetup), END_ELEMENT] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gMagneticVectorSetupListType->MagneticVectorSetup.arrayLen < v2gMagneticVectorSetupListType_MagneticVectorSetup_ARRAY_SIZE) {
- errn = decode_v2gMagneticVectorSetupType(stream, &v2gMagneticVectorSetupListType->MagneticVectorSetup.array[v2gMagneticVectorSetupListType->MagneticVectorSetup.arrayLen++]);
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- grammarID = 136;
- break;
- case 1:
- done = 1;
- grammarID = 3;
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 136:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MagneticVectorSetup), END_ELEMENT] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gMagneticVectorSetupListType->MagneticVectorSetup.arrayLen < v2gMagneticVectorSetupListType_MagneticVectorSetup_ARRAY_SIZE) {
- errn = decode_v2gMagneticVectorSetupType(stream, &v2gMagneticVectorSetupListType->MagneticVectorSetup.array[v2gMagneticVectorSetupListType->MagneticVectorSetup.arrayLen++]);
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- grammarID = 137;
- break;
- case 1:
- done = 1;
- grammarID = 3;
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 137:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MagneticVectorSetup), END_ELEMENT] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gMagneticVectorSetupListType->MagneticVectorSetup.arrayLen < v2gMagneticVectorSetupListType_MagneticVectorSetup_ARRAY_SIZE) {
- errn = decode_v2gMagneticVectorSetupType(stream, &v2gMagneticVectorSetupListType->MagneticVectorSetup.array[v2gMagneticVectorSetupListType->MagneticVectorSetup.arrayLen++]);
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- grammarID = 138;
- break;
- case 1:
- done = 1;
- grammarID = 3;
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 138:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MagneticVectorSetup), END_ELEMENT] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gMagneticVectorSetupListType->MagneticVectorSetup.arrayLen < v2gMagneticVectorSetupListType_MagneticVectorSetup_ARRAY_SIZE) {
- errn = decode_v2gMagneticVectorSetupType(stream, &v2gMagneticVectorSetupListType->MagneticVectorSetup.array[v2gMagneticVectorSetupListType->MagneticVectorSetup.arrayLen++]);
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- grammarID = 139;
- break;
- case 1:
- done = 1;
- grammarID = 3;
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 139:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MagneticVectorSetup), END_ELEMENT] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gMagneticVectorSetupListType->MagneticVectorSetup.arrayLen < v2gMagneticVectorSetupListType_MagneticVectorSetup_ARRAY_SIZE) {
- errn = decode_v2gMagneticVectorSetupType(stream, &v2gMagneticVectorSetupListType->MagneticVectorSetup.array[v2gMagneticVectorSetupListType->MagneticVectorSetup.arrayLen++]);
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- grammarID = 140;
- break;
- case 1:
- done = 1;
- grammarID = 3;
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 140:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MagneticVectorSetup), END_ELEMENT] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gMagneticVectorSetupListType->MagneticVectorSetup.arrayLen < v2gMagneticVectorSetupListType_MagneticVectorSetup_ARRAY_SIZE) {
- errn = decode_v2gMagneticVectorSetupType(stream, &v2gMagneticVectorSetupListType->MagneticVectorSetup.array[v2gMagneticVectorSetupListType->MagneticVectorSetup.arrayLen++]);
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- grammarID = 141;
- break;
- case 1:
- done = 1;
- grammarID = 3;
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 141:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MagneticVectorSetup), END_ELEMENT] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gMagneticVectorSetupListType->MagneticVectorSetup.arrayLen < v2gMagneticVectorSetupListType_MagneticVectorSetup_ARRAY_SIZE) {
- errn = decode_v2gMagneticVectorSetupType(stream, &v2gMagneticVectorSetupListType->MagneticVectorSetup.array[v2gMagneticVectorSetupListType->MagneticVectorSetup.arrayLen++]);
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- grammarID = 142;
- break;
- case 1:
- done = 1;
- grammarID = 3;
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 142:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MagneticVectorSetup), END_ELEMENT] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gMagneticVectorSetupListType->MagneticVectorSetup.arrayLen < v2gMagneticVectorSetupListType_MagneticVectorSetup_ARRAY_SIZE) {
- errn = decode_v2gMagneticVectorSetupType(stream, &v2gMagneticVectorSetupListType->MagneticVectorSetup.array[v2gMagneticVectorSetupListType->MagneticVectorSetup.arrayLen++]);
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- grammarID = 143;
- break;
- case 1:
- done = 1;
- grammarID = 3;
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 143:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MagneticVectorSetup), END_ELEMENT] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gMagneticVectorSetupListType->MagneticVectorSetup.arrayLen < v2gMagneticVectorSetupListType_MagneticVectorSetup_ARRAY_SIZE) {
- errn = decode_v2gMagneticVectorSetupType(stream, &v2gMagneticVectorSetupListType->MagneticVectorSetup.array[v2gMagneticVectorSetupListType->MagneticVectorSetup.arrayLen++]);
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- grammarID = 144;
- break;
- case 1:
- done = 1;
- grammarID = 3;
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 144:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MagneticVectorSetup), END_ELEMENT] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gMagneticVectorSetupListType->MagneticVectorSetup.arrayLen < v2gMagneticVectorSetupListType_MagneticVectorSetup_ARRAY_SIZE) {
- errn = decode_v2gMagneticVectorSetupType(stream, &v2gMagneticVectorSetupListType->MagneticVectorSetup.array[v2gMagneticVectorSetupListType->MagneticVectorSetup.arrayLen++]);
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- grammarID = 145;
- break;
- case 1:
- done = 1;
- grammarID = 3;
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 145:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MagneticVectorSetup), END_ELEMENT] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gMagneticVectorSetupListType->MagneticVectorSetup.arrayLen < v2gMagneticVectorSetupListType_MagneticVectorSetup_ARRAY_SIZE) {
- errn = decode_v2gMagneticVectorSetupType(stream, &v2gMagneticVectorSetupListType->MagneticVectorSetup.array[v2gMagneticVectorSetupListType->MagneticVectorSetup.arrayLen++]);
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- grammarID = 146;
- break;
- case 1:
- done = 1;
- grammarID = 3;
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 146:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MagneticVectorSetup), END_ELEMENT] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gMagneticVectorSetupListType->MagneticVectorSetup.arrayLen < v2gMagneticVectorSetupListType_MagneticVectorSetup_ARRAY_SIZE) {
- errn = decode_v2gMagneticVectorSetupType(stream, &v2gMagneticVectorSetupListType->MagneticVectorSetup.array[v2gMagneticVectorSetupListType->MagneticVectorSetup.arrayLen++]);
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- grammarID = 147;
- break;
- case 1:
- done = 1;
- grammarID = 3;
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 147:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MagneticVectorSetup), END_ELEMENT] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gMagneticVectorSetupListType->MagneticVectorSetup.arrayLen < v2gMagneticVectorSetupListType_MagneticVectorSetup_ARRAY_SIZE) {
- errn = decode_v2gMagneticVectorSetupType(stream, &v2gMagneticVectorSetupListType->MagneticVectorSetup.array[v2gMagneticVectorSetupListType->MagneticVectorSetup.arrayLen++]);
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- grammarID = 148;
- break;
- case 1:
- done = 1;
- grammarID = 3;
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 148:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MagneticVectorSetup), END_ELEMENT] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gMagneticVectorSetupListType->MagneticVectorSetup.arrayLen < v2gMagneticVectorSetupListType_MagneticVectorSetup_ARRAY_SIZE) {
- errn = decode_v2gMagneticVectorSetupType(stream, &v2gMagneticVectorSetupListType->MagneticVectorSetup.array[v2gMagneticVectorSetupListType->MagneticVectorSetup.arrayLen++]);
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- grammarID = 149;
- break;
- case 1:
- done = 1;
- grammarID = 3;
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 149:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MagneticVectorSetup), END_ELEMENT] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gMagneticVectorSetupListType->MagneticVectorSetup.arrayLen < v2gMagneticVectorSetupListType_MagneticVectorSetup_ARRAY_SIZE) {
- errn = decode_v2gMagneticVectorSetupType(stream, &v2gMagneticVectorSetupListType->MagneticVectorSetup.array[v2gMagneticVectorSetupListType->MagneticVectorSetup.arrayLen++]);
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- grammarID = 150;
- break;
- case 1:
- done = 1;
- grammarID = 3;
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 150:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MagneticVectorSetup), END_ELEMENT] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gMagneticVectorSetupListType->MagneticVectorSetup.arrayLen < v2gMagneticVectorSetupListType_MagneticVectorSetup_ARRAY_SIZE) {
- errn = decode_v2gMagneticVectorSetupType(stream, &v2gMagneticVectorSetupListType->MagneticVectorSetup.array[v2gMagneticVectorSetupListType->MagneticVectorSetup.arrayLen++]);
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- grammarID = 151;
- break;
- case 1:
- done = 1;
- grammarID = 3;
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 151:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MagneticVectorSetup), END_ELEMENT] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gMagneticVectorSetupListType->MagneticVectorSetup.arrayLen < v2gMagneticVectorSetupListType_MagneticVectorSetup_ARRAY_SIZE) {
- errn = decode_v2gMagneticVectorSetupType(stream, &v2gMagneticVectorSetupListType->MagneticVectorSetup.array[v2gMagneticVectorSetupListType->MagneticVectorSetup.arrayLen++]);
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- grammarID = 152;
- break;
- case 1:
- done = 1;
- grammarID = 3;
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 152:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MagneticVectorSetup), END_ELEMENT] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gMagneticVectorSetupListType->MagneticVectorSetup.arrayLen < v2gMagneticVectorSetupListType_MagneticVectorSetup_ARRAY_SIZE) {
- errn = decode_v2gMagneticVectorSetupType(stream, &v2gMagneticVectorSetupListType->MagneticVectorSetup.array[v2gMagneticVectorSetupListType->MagneticVectorSetup.arrayLen++]);
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- grammarID = 153;
- break;
- case 1:
- done = 1;
- grammarID = 3;
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 153:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MagneticVectorSetup), END_ELEMENT] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gMagneticVectorSetupListType->MagneticVectorSetup.arrayLen < v2gMagneticVectorSetupListType_MagneticVectorSetup_ARRAY_SIZE) {
- errn = decode_v2gMagneticVectorSetupType(stream, &v2gMagneticVectorSetupListType->MagneticVectorSetup.array[v2gMagneticVectorSetupListType->MagneticVectorSetup.arrayLen++]);
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- grammarID = 154;
- break;
- case 1:
- done = 1;
- grammarID = 3;
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 154:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MagneticVectorSetup), END_ELEMENT] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gMagneticVectorSetupListType->MagneticVectorSetup.arrayLen < v2gMagneticVectorSetupListType_MagneticVectorSetup_ARRAY_SIZE) {
- errn = decode_v2gMagneticVectorSetupType(stream, &v2gMagneticVectorSetupListType->MagneticVectorSetup.array[v2gMagneticVectorSetupListType->MagneticVectorSetup.arrayLen++]);
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- grammarID = 155;
- break;
- case 1:
- done = 1;
- grammarID = 3;
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 155:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MagneticVectorSetup), END_ELEMENT] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gMagneticVectorSetupListType->MagneticVectorSetup.arrayLen < v2gMagneticVectorSetupListType_MagneticVectorSetup_ARRAY_SIZE) {
- errn = decode_v2gMagneticVectorSetupType(stream, &v2gMagneticVectorSetupListType->MagneticVectorSetup.array[v2gMagneticVectorSetupListType->MagneticVectorSetup.arrayLen++]);
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- grammarID = 156;
- break;
- case 1:
- done = 1;
- grammarID = 3;
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 156:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MagneticVectorSetup), END_ELEMENT] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gMagneticVectorSetupListType->MagneticVectorSetup.arrayLen < v2gMagneticVectorSetupListType_MagneticVectorSetup_ARRAY_SIZE) {
- errn = decode_v2gMagneticVectorSetupType(stream, &v2gMagneticVectorSetupListType->MagneticVectorSetup.array[v2gMagneticVectorSetupListType->MagneticVectorSetup.arrayLen++]);
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- grammarID = 157;
- break;
- case 1:
- done = 1;
- grammarID = 3;
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 157:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MagneticVectorSetup), END_ELEMENT] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gMagneticVectorSetupListType->MagneticVectorSetup.arrayLen < v2gMagneticVectorSetupListType_MagneticVectorSetup_ARRAY_SIZE) {
- errn = decode_v2gMagneticVectorSetupType(stream, &v2gMagneticVectorSetupListType->MagneticVectorSetup.array[v2gMagneticVectorSetupListType->MagneticVectorSetup.arrayLen++]);
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- grammarID = 158;
- break;
- case 1:
- done = 1;
- grammarID = 3;
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 158:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MagneticVectorSetup), END_ELEMENT] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gMagneticVectorSetupListType->MagneticVectorSetup.arrayLen < v2gMagneticVectorSetupListType_MagneticVectorSetup_ARRAY_SIZE) {
- errn = decode_v2gMagneticVectorSetupType(stream, &v2gMagneticVectorSetupListType->MagneticVectorSetup.array[v2gMagneticVectorSetupListType->MagneticVectorSetup.arrayLen++]);
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- grammarID = 159;
- break;
- case 1:
- done = 1;
- grammarID = 3;
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 159:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MagneticVectorSetup), END_ELEMENT] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gMagneticVectorSetupListType->MagneticVectorSetup.arrayLen < v2gMagneticVectorSetupListType_MagneticVectorSetup_ARRAY_SIZE) {
- errn = decode_v2gMagneticVectorSetupType(stream, &v2gMagneticVectorSetupListType->MagneticVectorSetup.array[v2gMagneticVectorSetupListType->MagneticVectorSetup.arrayLen++]);
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- grammarID = 160;
- break;
- case 1:
- done = 1;
- grammarID = 3;
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 160:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MagneticVectorSetup), END_ELEMENT] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gMagneticVectorSetupListType->MagneticVectorSetup.arrayLen < v2gMagneticVectorSetupListType_MagneticVectorSetup_ARRAY_SIZE) {
- errn = decode_v2gMagneticVectorSetupType(stream, &v2gMagneticVectorSetupListType->MagneticVectorSetup.array[v2gMagneticVectorSetupListType->MagneticVectorSetup.arrayLen++]);
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- grammarID = 161;
- break;
- case 1:
- done = 1;
- grammarID = 3;
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 161:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MagneticVectorSetup), END_ELEMENT] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gMagneticVectorSetupListType->MagneticVectorSetup.arrayLen < v2gMagneticVectorSetupListType_MagneticVectorSetup_ARRAY_SIZE) {
- errn = decode_v2gMagneticVectorSetupType(stream, &v2gMagneticVectorSetupListType->MagneticVectorSetup.array[v2gMagneticVectorSetupListType->MagneticVectorSetup.arrayLen++]);
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- grammarID = 162;
- break;
- case 1:
- done = 1;
- grammarID = 3;
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 162:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MagneticVectorSetup), END_ELEMENT] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gMagneticVectorSetupListType->MagneticVectorSetup.arrayLen < v2gMagneticVectorSetupListType_MagneticVectorSetup_ARRAY_SIZE) {
- errn = decode_v2gMagneticVectorSetupType(stream, &v2gMagneticVectorSetupListType->MagneticVectorSetup.array[v2gMagneticVectorSetupListType->MagneticVectorSetup.arrayLen++]);
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- grammarID = 163;
- break;
- case 1:
- done = 1;
- grammarID = 3;
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 163:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MagneticVectorSetup), END_ELEMENT] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gMagneticVectorSetupListType->MagneticVectorSetup.arrayLen < v2gMagneticVectorSetupListType_MagneticVectorSetup_ARRAY_SIZE) {
- errn = decode_v2gMagneticVectorSetupType(stream, &v2gMagneticVectorSetupListType->MagneticVectorSetup.array[v2gMagneticVectorSetupListType->MagneticVectorSetup.arrayLen++]);
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- grammarID = 164;
- break;
- case 1:
- done = 1;
- grammarID = 3;
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 164:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MagneticVectorSetup), END_ELEMENT] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gMagneticVectorSetupListType->MagneticVectorSetup.arrayLen < v2gMagneticVectorSetupListType_MagneticVectorSetup_ARRAY_SIZE) {
- errn = decode_v2gMagneticVectorSetupType(stream, &v2gMagneticVectorSetupListType->MagneticVectorSetup.array[v2gMagneticVectorSetupListType->MagneticVectorSetup.arrayLen++]);
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- grammarID = 165;
- break;
- case 1:
- done = 1;
- grammarID = 3;
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 165:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MagneticVectorSetup), END_ELEMENT] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gMagneticVectorSetupListType->MagneticVectorSetup.arrayLen < v2gMagneticVectorSetupListType_MagneticVectorSetup_ARRAY_SIZE) {
- errn = decode_v2gMagneticVectorSetupType(stream, &v2gMagneticVectorSetupListType->MagneticVectorSetup.array[v2gMagneticVectorSetupListType->MagneticVectorSetup.arrayLen++]);
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- grammarID = 166;
- break;
- case 1:
- done = 1;
- grammarID = 3;
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 166:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MagneticVectorSetup), END_ELEMENT] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gMagneticVectorSetupListType->MagneticVectorSetup.arrayLen < v2gMagneticVectorSetupListType_MagneticVectorSetup_ARRAY_SIZE) {
- errn = decode_v2gMagneticVectorSetupType(stream, &v2gMagneticVectorSetupListType->MagneticVectorSetup.array[v2gMagneticVectorSetupListType->MagneticVectorSetup.arrayLen++]);
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- grammarID = 167;
- break;
- case 1:
- done = 1;
- grammarID = 3;
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 167:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MagneticVectorSetup), END_ELEMENT] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gMagneticVectorSetupListType->MagneticVectorSetup.arrayLen < v2gMagneticVectorSetupListType_MagneticVectorSetup_ARRAY_SIZE) {
- errn = decode_v2gMagneticVectorSetupType(stream, &v2gMagneticVectorSetupListType->MagneticVectorSetup.array[v2gMagneticVectorSetupListType->MagneticVectorSetup.arrayLen++]);
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- grammarID = 168;
- break;
- case 1:
- done = 1;
- grammarID = 3;
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 168:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MagneticVectorSetup), END_ELEMENT] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gMagneticVectorSetupListType->MagneticVectorSetup.arrayLen < v2gMagneticVectorSetupListType_MagneticVectorSetup_ARRAY_SIZE) {
- errn = decode_v2gMagneticVectorSetupType(stream, &v2gMagneticVectorSetupListType->MagneticVectorSetup.array[v2gMagneticVectorSetupListType->MagneticVectorSetup.arrayLen++]);
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- grammarID = 169;
- break;
- case 1:
- done = 1;
- grammarID = 3;
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 169:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MagneticVectorSetup), END_ELEMENT] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gMagneticVectorSetupListType->MagneticVectorSetup.arrayLen < v2gMagneticVectorSetupListType_MagneticVectorSetup_ARRAY_SIZE) {
- errn = decode_v2gMagneticVectorSetupType(stream, &v2gMagneticVectorSetupListType->MagneticVectorSetup.array[v2gMagneticVectorSetupListType->MagneticVectorSetup.arrayLen++]);
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- grammarID = 170;
- break;
- case 1:
- done = 1;
- grammarID = 3;
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 170:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MagneticVectorSetup), END_ELEMENT] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gMagneticVectorSetupListType->MagneticVectorSetup.arrayLen < v2gMagneticVectorSetupListType_MagneticVectorSetup_ARRAY_SIZE) {
- errn = decode_v2gMagneticVectorSetupType(stream, &v2gMagneticVectorSetupListType->MagneticVectorSetup.array[v2gMagneticVectorSetupListType->MagneticVectorSetup.arrayLen++]);
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- grammarID = 171;
- break;
- case 1:
- done = 1;
- grammarID = 3;
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 171:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MagneticVectorSetup), END_ELEMENT] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gMagneticVectorSetupListType->MagneticVectorSetup.arrayLen < v2gMagneticVectorSetupListType_MagneticVectorSetup_ARRAY_SIZE) {
- errn = decode_v2gMagneticVectorSetupType(stream, &v2gMagneticVectorSetupListType->MagneticVectorSetup.array[v2gMagneticVectorSetupListType->MagneticVectorSetup.arrayLen++]);
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- grammarID = 172;
- break;
- case 1:
- done = 1;
- grammarID = 3;
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 172:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MagneticVectorSetup), END_ELEMENT] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gMagneticVectorSetupListType->MagneticVectorSetup.arrayLen < v2gMagneticVectorSetupListType_MagneticVectorSetup_ARRAY_SIZE) {
- errn = decode_v2gMagneticVectorSetupType(stream, &v2gMagneticVectorSetupListType->MagneticVectorSetup.array[v2gMagneticVectorSetupListType->MagneticVectorSetup.arrayLen++]);
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- grammarID = 173;
- break;
- case 1:
- done = 1;
- grammarID = 3;
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 173:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MagneticVectorSetup), END_ELEMENT] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gMagneticVectorSetupListType->MagneticVectorSetup.arrayLen < v2gMagneticVectorSetupListType_MagneticVectorSetup_ARRAY_SIZE) {
- errn = decode_v2gMagneticVectorSetupType(stream, &v2gMagneticVectorSetupListType->MagneticVectorSetup.array[v2gMagneticVectorSetupListType->MagneticVectorSetup.arrayLen++]);
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- grammarID = 174;
- break;
- case 1:
- done = 1;
- grammarID = 3;
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 174:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MagneticVectorSetup), END_ELEMENT] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gMagneticVectorSetupListType->MagneticVectorSetup.arrayLen < v2gMagneticVectorSetupListType_MagneticVectorSetup_ARRAY_SIZE) {
- errn = decode_v2gMagneticVectorSetupType(stream, &v2gMagneticVectorSetupListType->MagneticVectorSetup.array[v2gMagneticVectorSetupListType->MagneticVectorSetup.arrayLen++]);
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- grammarID = 175;
- break;
- case 1:
- done = 1;
- grammarID = 3;
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 175:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MagneticVectorSetup), END_ELEMENT] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gMagneticVectorSetupListType->MagneticVectorSetup.arrayLen < v2gMagneticVectorSetupListType_MagneticVectorSetup_ARRAY_SIZE) {
- errn = decode_v2gMagneticVectorSetupType(stream, &v2gMagneticVectorSetupListType->MagneticVectorSetup.array[v2gMagneticVectorSetupListType->MagneticVectorSetup.arrayLen++]);
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- grammarID = 176;
- break;
- case 1:
- done = 1;
- grammarID = 3;
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 176:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MagneticVectorSetup), END_ELEMENT] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gMagneticVectorSetupListType->MagneticVectorSetup.arrayLen < v2gMagneticVectorSetupListType_MagneticVectorSetup_ARRAY_SIZE) {
- errn = decode_v2gMagneticVectorSetupType(stream, &v2gMagneticVectorSetupListType->MagneticVectorSetup.array[v2gMagneticVectorSetupListType->MagneticVectorSetup.arrayLen++]);
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- grammarID = 177;
- break;
- case 1:
- done = 1;
- grammarID = 3;
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 177:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MagneticVectorSetup), END_ELEMENT] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gMagneticVectorSetupListType->MagneticVectorSetup.arrayLen < v2gMagneticVectorSetupListType_MagneticVectorSetup_ARRAY_SIZE) {
- errn = decode_v2gMagneticVectorSetupType(stream, &v2gMagneticVectorSetupListType->MagneticVectorSetup.array[v2gMagneticVectorSetupListType->MagneticVectorSetup.arrayLen++]);
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- grammarID = 178;
- break;
- case 1:
- done = 1;
- grammarID = 3;
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 178:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MagneticVectorSetup), END_ELEMENT] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gMagneticVectorSetupListType->MagneticVectorSetup.arrayLen < v2gMagneticVectorSetupListType_MagneticVectorSetup_ARRAY_SIZE) {
- errn = decode_v2gMagneticVectorSetupType(stream, &v2gMagneticVectorSetupListType->MagneticVectorSetup.array[v2gMagneticVectorSetupListType->MagneticVectorSetup.arrayLen++]);
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- grammarID = 179;
- break;
- case 1:
- done = 1;
- grammarID = 3;
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 179:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MagneticVectorSetup), END_ELEMENT] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gMagneticVectorSetupListType->MagneticVectorSetup.arrayLen < v2gMagneticVectorSetupListType_MagneticVectorSetup_ARRAY_SIZE) {
- errn = decode_v2gMagneticVectorSetupType(stream, &v2gMagneticVectorSetupListType->MagneticVectorSetup.array[v2gMagneticVectorSetupListType->MagneticVectorSetup.arrayLen++]);
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- grammarID = 180;
- break;
- case 1:
- done = 1;
- grammarID = 3;
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 180:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MagneticVectorSetup), END_ELEMENT] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gMagneticVectorSetupListType->MagneticVectorSetup.arrayLen < v2gMagneticVectorSetupListType_MagneticVectorSetup_ARRAY_SIZE) {
- errn = decode_v2gMagneticVectorSetupType(stream, &v2gMagneticVectorSetupListType->MagneticVectorSetup.array[v2gMagneticVectorSetupListType->MagneticVectorSetup.arrayLen++]);
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- grammarID = 181;
- break;
- case 1:
- done = 1;
- grammarID = 3;
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 181:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MagneticVectorSetup), END_ELEMENT] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gMagneticVectorSetupListType->MagneticVectorSetup.arrayLen < v2gMagneticVectorSetupListType_MagneticVectorSetup_ARRAY_SIZE) {
- errn = decode_v2gMagneticVectorSetupType(stream, &v2gMagneticVectorSetupListType->MagneticVectorSetup.array[v2gMagneticVectorSetupListType->MagneticVectorSetup.arrayLen++]);
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- grammarID = 182;
- break;
- case 1:
- done = 1;
- grammarID = 3;
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 182:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MagneticVectorSetup), END_ELEMENT] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gMagneticVectorSetupListType->MagneticVectorSetup.arrayLen < v2gMagneticVectorSetupListType_MagneticVectorSetup_ARRAY_SIZE) {
- errn = decode_v2gMagneticVectorSetupType(stream, &v2gMagneticVectorSetupListType->MagneticVectorSetup.array[v2gMagneticVectorSetupListType->MagneticVectorSetup.arrayLen++]);
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- grammarID = 183;
- break;
- case 1:
- done = 1;
- grammarID = 3;
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 183:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MagneticVectorSetup), END_ELEMENT] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gMagneticVectorSetupListType->MagneticVectorSetup.arrayLen < v2gMagneticVectorSetupListType_MagneticVectorSetup_ARRAY_SIZE) {
- errn = decode_v2gMagneticVectorSetupType(stream, &v2gMagneticVectorSetupListType->MagneticVectorSetup.array[v2gMagneticVectorSetupListType->MagneticVectorSetup.arrayLen++]);
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- grammarID = 184;
- break;
- case 1:
- done = 1;
- grammarID = 3;
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 184:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MagneticVectorSetup), END_ELEMENT] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gMagneticVectorSetupListType->MagneticVectorSetup.arrayLen < v2gMagneticVectorSetupListType_MagneticVectorSetup_ARRAY_SIZE) {
- errn = decode_v2gMagneticVectorSetupType(stream, &v2gMagneticVectorSetupListType->MagneticVectorSetup.array[v2gMagneticVectorSetupListType->MagneticVectorSetup.arrayLen++]);
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- grammarID = 185;
- break;
- case 1:
- done = 1;
- grammarID = 3;
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 185:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MagneticVectorSetup), END_ELEMENT] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gMagneticVectorSetupListType->MagneticVectorSetup.arrayLen < v2gMagneticVectorSetupListType_MagneticVectorSetup_ARRAY_SIZE) {
- errn = decode_v2gMagneticVectorSetupType(stream, &v2gMagneticVectorSetupListType->MagneticVectorSetup.array[v2gMagneticVectorSetupListType->MagneticVectorSetup.arrayLen++]);
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- grammarID = 186;
- break;
- case 1:
- done = 1;
- grammarID = 3;
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 186:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MagneticVectorSetup), END_ELEMENT] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gMagneticVectorSetupListType->MagneticVectorSetup.arrayLen < v2gMagneticVectorSetupListType_MagneticVectorSetup_ARRAY_SIZE) {
- errn = decode_v2gMagneticVectorSetupType(stream, &v2gMagneticVectorSetupListType->MagneticVectorSetup.array[v2gMagneticVectorSetupListType->MagneticVectorSetup.arrayLen++]);
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- grammarID = 187;
- break;
- case 1:
- done = 1;
- grammarID = 3;
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 187:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MagneticVectorSetup), END_ELEMENT] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gMagneticVectorSetupListType->MagneticVectorSetup.arrayLen < v2gMagneticVectorSetupListType_MagneticVectorSetup_ARRAY_SIZE) {
- errn = decode_v2gMagneticVectorSetupType(stream, &v2gMagneticVectorSetupListType->MagneticVectorSetup.array[v2gMagneticVectorSetupListType->MagneticVectorSetup.arrayLen++]);
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- grammarID = 188;
- break;
- case 1:
- done = 1;
- grammarID = 3;
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 188:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MagneticVectorSetup), END_ELEMENT] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gMagneticVectorSetupListType->MagneticVectorSetup.arrayLen < v2gMagneticVectorSetupListType_MagneticVectorSetup_ARRAY_SIZE) {
- errn = decode_v2gMagneticVectorSetupType(stream, &v2gMagneticVectorSetupListType->MagneticVectorSetup.array[v2gMagneticVectorSetupListType->MagneticVectorSetup.arrayLen++]);
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- grammarID = 189;
- break;
- case 1:
- done = 1;
- grammarID = 3;
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 189:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MagneticVectorSetup), END_ELEMENT] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gMagneticVectorSetupListType->MagneticVectorSetup.arrayLen < v2gMagneticVectorSetupListType_MagneticVectorSetup_ARRAY_SIZE) {
- errn = decode_v2gMagneticVectorSetupType(stream, &v2gMagneticVectorSetupListType->MagneticVectorSetup.array[v2gMagneticVectorSetupListType->MagneticVectorSetup.arrayLen++]);
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- grammarID = 190;
- break;
- case 1:
- done = 1;
- grammarID = 3;
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 190:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MagneticVectorSetup), END_ELEMENT] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gMagneticVectorSetupListType->MagneticVectorSetup.arrayLen < v2gMagneticVectorSetupListType_MagneticVectorSetup_ARRAY_SIZE) {
- errn = decode_v2gMagneticVectorSetupType(stream, &v2gMagneticVectorSetupListType->MagneticVectorSetup.array[v2gMagneticVectorSetupListType->MagneticVectorSetup.arrayLen++]);
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- grammarID = 191;
- break;
- case 1:
- done = 1;
- grammarID = 3;
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 191:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MagneticVectorSetup), END_ELEMENT] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gMagneticVectorSetupListType->MagneticVectorSetup.arrayLen < v2gMagneticVectorSetupListType_MagneticVectorSetup_ARRAY_SIZE) {
- errn = decode_v2gMagneticVectorSetupType(stream, &v2gMagneticVectorSetupListType->MagneticVectorSetup.array[v2gMagneticVectorSetupListType->MagneticVectorSetup.arrayLen++]);
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- grammarID = 192;
- break;
- case 1:
- done = 1;
- grammarID = 3;
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 192:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MagneticVectorSetup), END_ELEMENT] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gMagneticVectorSetupListType->MagneticVectorSetup.arrayLen < v2gMagneticVectorSetupListType_MagneticVectorSetup_ARRAY_SIZE) {
- errn = decode_v2gMagneticVectorSetupType(stream, &v2gMagneticVectorSetupListType->MagneticVectorSetup.array[v2gMagneticVectorSetupListType->MagneticVectorSetup.arrayLen++]);
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- grammarID = 193;
- break;
- case 1:
- done = 1;
- grammarID = 3;
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 193:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MagneticVectorSetup), END_ELEMENT] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gMagneticVectorSetupListType->MagneticVectorSetup.arrayLen < v2gMagneticVectorSetupListType_MagneticVectorSetup_ARRAY_SIZE) {
- errn = decode_v2gMagneticVectorSetupType(stream, &v2gMagneticVectorSetupListType->MagneticVectorSetup.array[v2gMagneticVectorSetupListType->MagneticVectorSetup.arrayLen++]);
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- grammarID = 194;
- break;
- case 1:
- done = 1;
- grammarID = 3;
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 194:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MagneticVectorSetup), END_ELEMENT] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gMagneticVectorSetupListType->MagneticVectorSetup.arrayLen < v2gMagneticVectorSetupListType_MagneticVectorSetup_ARRAY_SIZE) {
- errn = decode_v2gMagneticVectorSetupType(stream, &v2gMagneticVectorSetupListType->MagneticVectorSetup.array[v2gMagneticVectorSetupListType->MagneticVectorSetup.arrayLen++]);
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- grammarID = 195;
- break;
- case 1:
- done = 1;
- grammarID = 3;
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 195:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MagneticVectorSetup), END_ELEMENT] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gMagneticVectorSetupListType->MagneticVectorSetup.arrayLen < v2gMagneticVectorSetupListType_MagneticVectorSetup_ARRAY_SIZE) {
- errn = decode_v2gMagneticVectorSetupType(stream, &v2gMagneticVectorSetupListType->MagneticVectorSetup.array[v2gMagneticVectorSetupListType->MagneticVectorSetup.arrayLen++]);
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- grammarID = 196;
- break;
- case 1:
- done = 1;
- grammarID = 3;
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 196:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MagneticVectorSetup), END_ELEMENT] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gMagneticVectorSetupListType->MagneticVectorSetup.arrayLen < v2gMagneticVectorSetupListType_MagneticVectorSetup_ARRAY_SIZE) {
- errn = decode_v2gMagneticVectorSetupType(stream, &v2gMagneticVectorSetupListType->MagneticVectorSetup.array[v2gMagneticVectorSetupListType->MagneticVectorSetup.arrayLen++]);
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- grammarID = 197;
- break;
- case 1:
- done = 1;
- grammarID = 3;
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 197:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MagneticVectorSetup), END_ELEMENT] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gMagneticVectorSetupListType->MagneticVectorSetup.arrayLen < v2gMagneticVectorSetupListType_MagneticVectorSetup_ARRAY_SIZE) {
- errn = decode_v2gMagneticVectorSetupType(stream, &v2gMagneticVectorSetupListType->MagneticVectorSetup.array[v2gMagneticVectorSetupListType->MagneticVectorSetup.arrayLen++]);
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- grammarID = 198;
- break;
- case 1:
- done = 1;
- grammarID = 3;
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 198:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MagneticVectorSetup), END_ELEMENT] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gMagneticVectorSetupListType->MagneticVectorSetup.arrayLen < v2gMagneticVectorSetupListType_MagneticVectorSetup_ARRAY_SIZE) {
- errn = decode_v2gMagneticVectorSetupType(stream, &v2gMagneticVectorSetupListType->MagneticVectorSetup.array[v2gMagneticVectorSetupListType->MagneticVectorSetup.arrayLen++]);
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- grammarID = 199;
- break;
- case 1:
- done = 1;
- grammarID = 3;
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 199:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MagneticVectorSetup), END_ELEMENT] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gMagneticVectorSetupListType->MagneticVectorSetup.arrayLen < v2gMagneticVectorSetupListType_MagneticVectorSetup_ARRAY_SIZE) {
- errn = decode_v2gMagneticVectorSetupType(stream, &v2gMagneticVectorSetupListType->MagneticVectorSetup.array[v2gMagneticVectorSetupListType->MagneticVectorSetup.arrayLen++]);
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- grammarID = 200;
- break;
- case 1:
- done = 1;
- grammarID = 3;
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 200:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MagneticVectorSetup), END_ELEMENT] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gMagneticVectorSetupListType->MagneticVectorSetup.arrayLen < v2gMagneticVectorSetupListType_MagneticVectorSetup_ARRAY_SIZE) {
- errn = decode_v2gMagneticVectorSetupType(stream, &v2gMagneticVectorSetupListType->MagneticVectorSetup.array[v2gMagneticVectorSetupListType->MagneticVectorSetup.arrayLen++]);
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- grammarID = 201;
- break;
- case 1:
- done = 1;
- grammarID = 3;
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 201:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MagneticVectorSetup), END_ELEMENT] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gMagneticVectorSetupListType->MagneticVectorSetup.arrayLen < v2gMagneticVectorSetupListType_MagneticVectorSetup_ARRAY_SIZE) {
- errn = decode_v2gMagneticVectorSetupType(stream, &v2gMagneticVectorSetupListType->MagneticVectorSetup.array[v2gMagneticVectorSetupListType->MagneticVectorSetup.arrayLen++]);
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- grammarID = 202;
- break;
- case 1:
- done = 1;
- grammarID = 3;
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 202:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MagneticVectorSetup), END_ELEMENT] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gMagneticVectorSetupListType->MagneticVectorSetup.arrayLen < v2gMagneticVectorSetupListType_MagneticVectorSetup_ARRAY_SIZE) {
- errn = decode_v2gMagneticVectorSetupType(stream, &v2gMagneticVectorSetupListType->MagneticVectorSetup.array[v2gMagneticVectorSetupListType->MagneticVectorSetup.arrayLen++]);
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- grammarID = 203;
- break;
- case 1:
- done = 1;
- grammarID = 3;
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 203:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MagneticVectorSetup), END_ELEMENT] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gMagneticVectorSetupListType->MagneticVectorSetup.arrayLen < v2gMagneticVectorSetupListType_MagneticVectorSetup_ARRAY_SIZE) {
- errn = decode_v2gMagneticVectorSetupType(stream, &v2gMagneticVectorSetupListType->MagneticVectorSetup.array[v2gMagneticVectorSetupListType->MagneticVectorSetup.arrayLen++]);
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- grammarID = 204;
- break;
- case 1:
- done = 1;
- grammarID = 3;
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 204:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MagneticVectorSetup), END_ELEMENT] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gMagneticVectorSetupListType->MagneticVectorSetup.arrayLen < v2gMagneticVectorSetupListType_MagneticVectorSetup_ARRAY_SIZE) {
- errn = decode_v2gMagneticVectorSetupType(stream, &v2gMagneticVectorSetupListType->MagneticVectorSetup.array[v2gMagneticVectorSetupListType->MagneticVectorSetup.arrayLen++]);
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- grammarID = 205;
- break;
- case 1:
- done = 1;
- grammarID = 3;
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 205:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MagneticVectorSetup), END_ELEMENT] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gMagneticVectorSetupListType->MagneticVectorSetup.arrayLen < v2gMagneticVectorSetupListType_MagneticVectorSetup_ARRAY_SIZE) {
- errn = decode_v2gMagneticVectorSetupType(stream, &v2gMagneticVectorSetupListType->MagneticVectorSetup.array[v2gMagneticVectorSetupListType->MagneticVectorSetup.arrayLen++]);
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- grammarID = 206;
- break;
- case 1:
- done = 1;
- grammarID = 3;
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 206:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MagneticVectorSetup), END_ELEMENT] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gMagneticVectorSetupListType->MagneticVectorSetup.arrayLen < v2gMagneticVectorSetupListType_MagneticVectorSetup_ARRAY_SIZE) {
- errn = decode_v2gMagneticVectorSetupType(stream, &v2gMagneticVectorSetupListType->MagneticVectorSetup.array[v2gMagneticVectorSetupListType->MagneticVectorSetup.arrayLen++]);
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- grammarID = 207;
- break;
- case 1:
- done = 1;
- grammarID = 3;
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 207:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MagneticVectorSetup), END_ELEMENT] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gMagneticVectorSetupListType->MagneticVectorSetup.arrayLen < v2gMagneticVectorSetupListType_MagneticVectorSetup_ARRAY_SIZE) {
- errn = decode_v2gMagneticVectorSetupType(stream, &v2gMagneticVectorSetupListType->MagneticVectorSetup.array[v2gMagneticVectorSetupListType->MagneticVectorSetup.arrayLen++]);
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- grammarID = 208;
- break;
- case 1:
- done = 1;
- grammarID = 3;
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 208:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MagneticVectorSetup), END_ELEMENT] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gMagneticVectorSetupListType->MagneticVectorSetup.arrayLen < v2gMagneticVectorSetupListType_MagneticVectorSetup_ARRAY_SIZE) {
- errn = decode_v2gMagneticVectorSetupType(stream, &v2gMagneticVectorSetupListType->MagneticVectorSetup.array[v2gMagneticVectorSetupListType->MagneticVectorSetup.arrayLen++]);
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- grammarID = 209;
- break;
- case 1:
- done = 1;
- grammarID = 3;
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 209:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MagneticVectorSetup), END_ELEMENT] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gMagneticVectorSetupListType->MagneticVectorSetup.arrayLen < v2gMagneticVectorSetupListType_MagneticVectorSetup_ARRAY_SIZE) {
- errn = decode_v2gMagneticVectorSetupType(stream, &v2gMagneticVectorSetupListType->MagneticVectorSetup.array[v2gMagneticVectorSetupListType->MagneticVectorSetup.arrayLen++]);
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- grammarID = 210;
- break;
- case 1:
- done = 1;
- grammarID = 3;
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 210:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MagneticVectorSetup), END_ELEMENT] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gMagneticVectorSetupListType->MagneticVectorSetup.arrayLen < v2gMagneticVectorSetupListType_MagneticVectorSetup_ARRAY_SIZE) {
- errn = decode_v2gMagneticVectorSetupType(stream, &v2gMagneticVectorSetupListType->MagneticVectorSetup.array[v2gMagneticVectorSetupListType->MagneticVectorSetup.arrayLen++]);
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- grammarID = 211;
- break;
- case 1:
- done = 1;
- grammarID = 3;
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 211:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MagneticVectorSetup), END_ELEMENT] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gMagneticVectorSetupListType->MagneticVectorSetup.arrayLen < v2gMagneticVectorSetupListType_MagneticVectorSetup_ARRAY_SIZE) {
- errn = decode_v2gMagneticVectorSetupType(stream, &v2gMagneticVectorSetupListType->MagneticVectorSetup.array[v2gMagneticVectorSetupListType->MagneticVectorSetup.arrayLen++]);
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- grammarID = 212;
- break;
- case 1:
- done = 1;
- grammarID = 3;
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 212:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MagneticVectorSetup), END_ELEMENT] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gMagneticVectorSetupListType->MagneticVectorSetup.arrayLen < v2gMagneticVectorSetupListType_MagneticVectorSetup_ARRAY_SIZE) {
- errn = decode_v2gMagneticVectorSetupType(stream, &v2gMagneticVectorSetupListType->MagneticVectorSetup.array[v2gMagneticVectorSetupListType->MagneticVectorSetup.arrayLen++]);
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- grammarID = 213;
- break;
- case 1:
- done = 1;
- grammarID = 3;
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 213:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MagneticVectorSetup), END_ELEMENT] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gMagneticVectorSetupListType->MagneticVectorSetup.arrayLen < v2gMagneticVectorSetupListType_MagneticVectorSetup_ARRAY_SIZE) {
- errn = decode_v2gMagneticVectorSetupType(stream, &v2gMagneticVectorSetupListType->MagneticVectorSetup.array[v2gMagneticVectorSetupListType->MagneticVectorSetup.arrayLen++]);
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- grammarID = 214;
- break;
- case 1:
- done = 1;
- grammarID = 3;
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 214:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MagneticVectorSetup), END_ELEMENT] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gMagneticVectorSetupListType->MagneticVectorSetup.arrayLen < v2gMagneticVectorSetupListType_MagneticVectorSetup_ARRAY_SIZE) {
- errn = decode_v2gMagneticVectorSetupType(stream, &v2gMagneticVectorSetupListType->MagneticVectorSetup.array[v2gMagneticVectorSetupListType->MagneticVectorSetup.arrayLen++]);
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- grammarID = 215;
- break;
- case 1:
- done = 1;
- grammarID = 3;
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 215:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MagneticVectorSetup), END_ELEMENT] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gMagneticVectorSetupListType->MagneticVectorSetup.arrayLen < v2gMagneticVectorSetupListType_MagneticVectorSetup_ARRAY_SIZE) {
- errn = decode_v2gMagneticVectorSetupType(stream, &v2gMagneticVectorSetupListType->MagneticVectorSetup.array[v2gMagneticVectorSetupListType->MagneticVectorSetup.arrayLen++]);
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- grammarID = 216;
- break;
- case 1:
- done = 1;
- grammarID = 3;
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 216:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MagneticVectorSetup), END_ELEMENT] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gMagneticVectorSetupListType->MagneticVectorSetup.arrayLen < v2gMagneticVectorSetupListType_MagneticVectorSetup_ARRAY_SIZE) {
- errn = decode_v2gMagneticVectorSetupType(stream, &v2gMagneticVectorSetupListType->MagneticVectorSetup.array[v2gMagneticVectorSetupListType->MagneticVectorSetup.arrayLen++]);
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- grammarID = 217;
- break;
- case 1:
- done = 1;
- grammarID = 3;
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 217:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MagneticVectorSetup), END_ELEMENT] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gMagneticVectorSetupListType->MagneticVectorSetup.arrayLen < v2gMagneticVectorSetupListType_MagneticVectorSetup_ARRAY_SIZE) {
- errn = decode_v2gMagneticVectorSetupType(stream, &v2gMagneticVectorSetupListType->MagneticVectorSetup.array[v2gMagneticVectorSetupListType->MagneticVectorSetup.arrayLen++]);
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- grammarID = 218;
- break;
- case 1:
- done = 1;
- grammarID = 3;
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 218:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MagneticVectorSetup), END_ELEMENT] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gMagneticVectorSetupListType->MagneticVectorSetup.arrayLen < v2gMagneticVectorSetupListType_MagneticVectorSetup_ARRAY_SIZE) {
- errn = decode_v2gMagneticVectorSetupType(stream, &v2gMagneticVectorSetupListType->MagneticVectorSetup.array[v2gMagneticVectorSetupListType->MagneticVectorSetup.arrayLen++]);
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- grammarID = 219;
- break;
- case 1:
- done = 1;
- grammarID = 3;
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 219:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MagneticVectorSetup), END_ELEMENT] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gMagneticVectorSetupListType->MagneticVectorSetup.arrayLen < v2gMagneticVectorSetupListType_MagneticVectorSetup_ARRAY_SIZE) {
- errn = decode_v2gMagneticVectorSetupType(stream, &v2gMagneticVectorSetupListType->MagneticVectorSetup.array[v2gMagneticVectorSetupListType->MagneticVectorSetup.arrayLen++]);
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- grammarID = 220;
- break;
- case 1:
- done = 1;
- grammarID = 3;
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 220:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MagneticVectorSetup), END_ELEMENT] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gMagneticVectorSetupListType->MagneticVectorSetup.arrayLen < v2gMagneticVectorSetupListType_MagneticVectorSetup_ARRAY_SIZE) {
- errn = decode_v2gMagneticVectorSetupType(stream, &v2gMagneticVectorSetupListType->MagneticVectorSetup.array[v2gMagneticVectorSetupListType->MagneticVectorSetup.arrayLen++]);
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- grammarID = 221;
- break;
- case 1:
- done = 1;
- grammarID = 3;
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 221:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MagneticVectorSetup), END_ELEMENT] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gMagneticVectorSetupListType->MagneticVectorSetup.arrayLen < v2gMagneticVectorSetupListType_MagneticVectorSetup_ARRAY_SIZE) {
- errn = decode_v2gMagneticVectorSetupType(stream, &v2gMagneticVectorSetupListType->MagneticVectorSetup.array[v2gMagneticVectorSetupListType->MagneticVectorSetup.arrayLen++]);
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- grammarID = 222;
- break;
- case 1:
- done = 1;
- grammarID = 3;
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 222:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MagneticVectorSetup), END_ELEMENT] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gMagneticVectorSetupListType->MagneticVectorSetup.arrayLen < v2gMagneticVectorSetupListType_MagneticVectorSetup_ARRAY_SIZE) {
- errn = decode_v2gMagneticVectorSetupType(stream, &v2gMagneticVectorSetupListType->MagneticVectorSetup.array[v2gMagneticVectorSetupListType->MagneticVectorSetup.arrayLen++]);
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- grammarID = 223;
- break;
- case 1:
- done = 1;
- grammarID = 3;
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 223:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MagneticVectorSetup), END_ELEMENT] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gMagneticVectorSetupListType->MagneticVectorSetup.arrayLen < v2gMagneticVectorSetupListType_MagneticVectorSetup_ARRAY_SIZE) {
- errn = decode_v2gMagneticVectorSetupType(stream, &v2gMagneticVectorSetupListType->MagneticVectorSetup.array[v2gMagneticVectorSetupListType->MagneticVectorSetup.arrayLen++]);
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- grammarID = 224;
- break;
- case 1:
- done = 1;
- grammarID = 3;
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 224:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MagneticVectorSetup), END_ELEMENT] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gMagneticVectorSetupListType->MagneticVectorSetup.arrayLen < v2gMagneticVectorSetupListType_MagneticVectorSetup_ARRAY_SIZE) {
- errn = decode_v2gMagneticVectorSetupType(stream, &v2gMagneticVectorSetupListType->MagneticVectorSetup.array[v2gMagneticVectorSetupListType->MagneticVectorSetup.arrayLen++]);
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- grammarID = 225;
- break;
- case 1:
- done = 1;
- grammarID = 3;
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 225:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MagneticVectorSetup), END_ELEMENT] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gMagneticVectorSetupListType->MagneticVectorSetup.arrayLen < v2gMagneticVectorSetupListType_MagneticVectorSetup_ARRAY_SIZE) {
- errn = decode_v2gMagneticVectorSetupType(stream, &v2gMagneticVectorSetupListType->MagneticVectorSetup.array[v2gMagneticVectorSetupListType->MagneticVectorSetup.arrayLen++]);
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- grammarID = 226;
- break;
- case 1:
- done = 1;
- grammarID = 3;
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 226:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MagneticVectorSetup), END_ELEMENT] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gMagneticVectorSetupListType->MagneticVectorSetup.arrayLen < v2gMagneticVectorSetupListType_MagneticVectorSetup_ARRAY_SIZE) {
- errn = decode_v2gMagneticVectorSetupType(stream, &v2gMagneticVectorSetupListType->MagneticVectorSetup.array[v2gMagneticVectorSetupListType->MagneticVectorSetup.arrayLen++]);
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- grammarID = 227;
- break;
- case 1:
- done = 1;
- grammarID = 3;
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 227:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MagneticVectorSetup), END_ELEMENT] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gMagneticVectorSetupListType->MagneticVectorSetup.arrayLen < v2gMagneticVectorSetupListType_MagneticVectorSetup_ARRAY_SIZE) {
- errn = decode_v2gMagneticVectorSetupType(stream, &v2gMagneticVectorSetupListType->MagneticVectorSetup.array[v2gMagneticVectorSetupListType->MagneticVectorSetup.arrayLen++]);
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- grammarID = 228;
- break;
- case 1:
- done = 1;
- grammarID = 3;
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 228:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MagneticVectorSetup), END_ELEMENT] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gMagneticVectorSetupListType->MagneticVectorSetup.arrayLen < v2gMagneticVectorSetupListType_MagneticVectorSetup_ARRAY_SIZE) {
- errn = decode_v2gMagneticVectorSetupType(stream, &v2gMagneticVectorSetupListType->MagneticVectorSetup.array[v2gMagneticVectorSetupListType->MagneticVectorSetup.arrayLen++]);
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- grammarID = 229;
- break;
- case 1:
- done = 1;
- grammarID = 3;
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 229:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MagneticVectorSetup), END_ELEMENT] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gMagneticVectorSetupListType->MagneticVectorSetup.arrayLen < v2gMagneticVectorSetupListType_MagneticVectorSetup_ARRAY_SIZE) {
- errn = decode_v2gMagneticVectorSetupType(stream, &v2gMagneticVectorSetupListType->MagneticVectorSetup.array[v2gMagneticVectorSetupListType->MagneticVectorSetup.arrayLen++]);
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- grammarID = 230;
- break;
- case 1:
- done = 1;
- grammarID = 3;
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 230:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MagneticVectorSetup), END_ELEMENT] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gMagneticVectorSetupListType->MagneticVectorSetup.arrayLen < v2gMagneticVectorSetupListType_MagneticVectorSetup_ARRAY_SIZE) {
- errn = decode_v2gMagneticVectorSetupType(stream, &v2gMagneticVectorSetupListType->MagneticVectorSetup.array[v2gMagneticVectorSetupListType->MagneticVectorSetup.arrayLen++]);
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- grammarID = 231;
- break;
- case 1:
- done = 1;
- grammarID = 3;
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 231:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MagneticVectorSetup), END_ELEMENT] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gMagneticVectorSetupListType->MagneticVectorSetup.arrayLen < v2gMagneticVectorSetupListType_MagneticVectorSetup_ARRAY_SIZE) {
- errn = decode_v2gMagneticVectorSetupType(stream, &v2gMagneticVectorSetupListType->MagneticVectorSetup.array[v2gMagneticVectorSetupListType->MagneticVectorSetup.arrayLen++]);
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- grammarID = 232;
- break;
- case 1:
- done = 1;
- grammarID = 3;
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 232:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MagneticVectorSetup), END_ELEMENT] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gMagneticVectorSetupListType->MagneticVectorSetup.arrayLen < v2gMagneticVectorSetupListType_MagneticVectorSetup_ARRAY_SIZE) {
- errn = decode_v2gMagneticVectorSetupType(stream, &v2gMagneticVectorSetupListType->MagneticVectorSetup.array[v2gMagneticVectorSetupListType->MagneticVectorSetup.arrayLen++]);
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- grammarID = 233;
- break;
- case 1:
- done = 1;
- grammarID = 3;
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 233:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MagneticVectorSetup), END_ELEMENT] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gMagneticVectorSetupListType->MagneticVectorSetup.arrayLen < v2gMagneticVectorSetupListType_MagneticVectorSetup_ARRAY_SIZE) {
- errn = decode_v2gMagneticVectorSetupType(stream, &v2gMagneticVectorSetupListType->MagneticVectorSetup.array[v2gMagneticVectorSetupListType->MagneticVectorSetup.arrayLen++]);
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- grammarID = 234;
- break;
- case 1:
- done = 1;
- grammarID = 3;
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 234:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MagneticVectorSetup), END_ELEMENT] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gMagneticVectorSetupListType->MagneticVectorSetup.arrayLen < v2gMagneticVectorSetupListType_MagneticVectorSetup_ARRAY_SIZE) {
- errn = decode_v2gMagneticVectorSetupType(stream, &v2gMagneticVectorSetupListType->MagneticVectorSetup.array[v2gMagneticVectorSetupListType->MagneticVectorSetup.arrayLen++]);
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- grammarID = 235;
- break;
- case 1:
- done = 1;
- grammarID = 3;
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 235:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MagneticVectorSetup), END_ELEMENT] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gMagneticVectorSetupListType->MagneticVectorSetup.arrayLen < v2gMagneticVectorSetupListType_MagneticVectorSetup_ARRAY_SIZE) {
- errn = decode_v2gMagneticVectorSetupType(stream, &v2gMagneticVectorSetupListType->MagneticVectorSetup.array[v2gMagneticVectorSetupListType->MagneticVectorSetup.arrayLen++]);
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- grammarID = 236;
- break;
- case 1:
- done = 1;
- grammarID = 3;
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 236:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MagneticVectorSetup), END_ELEMENT] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gMagneticVectorSetupListType->MagneticVectorSetup.arrayLen < v2gMagneticVectorSetupListType_MagneticVectorSetup_ARRAY_SIZE) {
- errn = decode_v2gMagneticVectorSetupType(stream, &v2gMagneticVectorSetupListType->MagneticVectorSetup.array[v2gMagneticVectorSetupListType->MagneticVectorSetup.arrayLen++]);
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- grammarID = 237;
- break;
- case 1:
- done = 1;
- grammarID = 3;
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 237:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MagneticVectorSetup), END_ELEMENT] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gMagneticVectorSetupListType->MagneticVectorSetup.arrayLen < v2gMagneticVectorSetupListType_MagneticVectorSetup_ARRAY_SIZE) {
- errn = decode_v2gMagneticVectorSetupType(stream, &v2gMagneticVectorSetupListType->MagneticVectorSetup.array[v2gMagneticVectorSetupListType->MagneticVectorSetup.arrayLen++]);
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- grammarID = 238;
- break;
- case 1:
- done = 1;
- grammarID = 3;
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 238:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MagneticVectorSetup), END_ELEMENT] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gMagneticVectorSetupListType->MagneticVectorSetup.arrayLen < v2gMagneticVectorSetupListType_MagneticVectorSetup_ARRAY_SIZE) {
- errn = decode_v2gMagneticVectorSetupType(stream, &v2gMagneticVectorSetupListType->MagneticVectorSetup.array[v2gMagneticVectorSetupListType->MagneticVectorSetup.arrayLen++]);
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- grammarID = 239;
- break;
- case 1:
- done = 1;
- grammarID = 3;
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 239:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MagneticVectorSetup), END_ELEMENT] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gMagneticVectorSetupListType->MagneticVectorSetup.arrayLen < v2gMagneticVectorSetupListType_MagneticVectorSetup_ARRAY_SIZE) {
- errn = decode_v2gMagneticVectorSetupType(stream, &v2gMagneticVectorSetupListType->MagneticVectorSetup.array[v2gMagneticVectorSetupListType->MagneticVectorSetup.arrayLen++]);
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- grammarID = 240;
- break;
- case 1:
- done = 1;
- grammarID = 3;
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 240:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MagneticVectorSetup), END_ELEMENT] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gMagneticVectorSetupListType->MagneticVectorSetup.arrayLen < v2gMagneticVectorSetupListType_MagneticVectorSetup_ARRAY_SIZE) {
- errn = decode_v2gMagneticVectorSetupType(stream, &v2gMagneticVectorSetupListType->MagneticVectorSetup.array[v2gMagneticVectorSetupListType->MagneticVectorSetup.arrayLen++]);
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- grammarID = 241;
- break;
- case 1:
- done = 1;
- grammarID = 3;
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 241:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MagneticVectorSetup), END_ELEMENT] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gMagneticVectorSetupListType->MagneticVectorSetup.arrayLen < v2gMagneticVectorSetupListType_MagneticVectorSetup_ARRAY_SIZE) {
- errn = decode_v2gMagneticVectorSetupType(stream, &v2gMagneticVectorSetupListType->MagneticVectorSetup.array[v2gMagneticVectorSetupListType->MagneticVectorSetup.arrayLen++]);
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- grammarID = 242;
- break;
- case 1:
- done = 1;
- grammarID = 3;
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 242:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MagneticVectorSetup), END_ELEMENT] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gMagneticVectorSetupListType->MagneticVectorSetup.arrayLen < v2gMagneticVectorSetupListType_MagneticVectorSetup_ARRAY_SIZE) {
- errn = decode_v2gMagneticVectorSetupType(stream, &v2gMagneticVectorSetupListType->MagneticVectorSetup.array[v2gMagneticVectorSetupListType->MagneticVectorSetup.arrayLen++]);
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- grammarID = 243;
- break;
- case 1:
- done = 1;
- grammarID = 3;
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 243:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MagneticVectorSetup), END_ELEMENT] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gMagneticVectorSetupListType->MagneticVectorSetup.arrayLen < v2gMagneticVectorSetupListType_MagneticVectorSetup_ARRAY_SIZE) {
- errn = decode_v2gMagneticVectorSetupType(stream, &v2gMagneticVectorSetupListType->MagneticVectorSetup.array[v2gMagneticVectorSetupListType->MagneticVectorSetup.arrayLen++]);
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- grammarID = 244;
- break;
- case 1:
- done = 1;
- grammarID = 3;
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 244:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MagneticVectorSetup), END_ELEMENT] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gMagneticVectorSetupListType->MagneticVectorSetup.arrayLen < v2gMagneticVectorSetupListType_MagneticVectorSetup_ARRAY_SIZE) {
- errn = decode_v2gMagneticVectorSetupType(stream, &v2gMagneticVectorSetupListType->MagneticVectorSetup.array[v2gMagneticVectorSetupListType->MagneticVectorSetup.arrayLen++]);
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- grammarID = 245;
- break;
- case 1:
- done = 1;
- grammarID = 3;
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 245:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MagneticVectorSetup), END_ELEMENT] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gMagneticVectorSetupListType->MagneticVectorSetup.arrayLen < v2gMagneticVectorSetupListType_MagneticVectorSetup_ARRAY_SIZE) {
- errn = decode_v2gMagneticVectorSetupType(stream, &v2gMagneticVectorSetupListType->MagneticVectorSetup.array[v2gMagneticVectorSetupListType->MagneticVectorSetup.arrayLen++]);
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- grammarID = 246;
- break;
- case 1:
- done = 1;
- grammarID = 3;
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 246:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MagneticVectorSetup), END_ELEMENT] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gMagneticVectorSetupListType->MagneticVectorSetup.arrayLen < v2gMagneticVectorSetupListType_MagneticVectorSetup_ARRAY_SIZE) {
- errn = decode_v2gMagneticVectorSetupType(stream, &v2gMagneticVectorSetupListType->MagneticVectorSetup.array[v2gMagneticVectorSetupListType->MagneticVectorSetup.arrayLen++]);
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- grammarID = 247;
- break;
- case 1:
- done = 1;
- grammarID = 3;
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 247:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MagneticVectorSetup), END_ELEMENT] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gMagneticVectorSetupListType->MagneticVectorSetup.arrayLen < v2gMagneticVectorSetupListType_MagneticVectorSetup_ARRAY_SIZE) {
- errn = decode_v2gMagneticVectorSetupType(stream, &v2gMagneticVectorSetupListType->MagneticVectorSetup.array[v2gMagneticVectorSetupListType->MagneticVectorSetup.arrayLen++]);
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- grammarID = 248;
- break;
- case 1:
- done = 1;
- grammarID = 3;
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 248:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MagneticVectorSetup), END_ELEMENT] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gMagneticVectorSetupListType->MagneticVectorSetup.arrayLen < v2gMagneticVectorSetupListType_MagneticVectorSetup_ARRAY_SIZE) {
- errn = decode_v2gMagneticVectorSetupType(stream, &v2gMagneticVectorSetupListType->MagneticVectorSetup.array[v2gMagneticVectorSetupListType->MagneticVectorSetup.arrayLen++]);
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- grammarID = 249;
- break;
- case 1:
- done = 1;
- grammarID = 3;
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 249:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MagneticVectorSetup), END_ELEMENT] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gMagneticVectorSetupListType->MagneticVectorSetup.arrayLen < v2gMagneticVectorSetupListType_MagneticVectorSetup_ARRAY_SIZE) {
- errn = decode_v2gMagneticVectorSetupType(stream, &v2gMagneticVectorSetupListType->MagneticVectorSetup.array[v2gMagneticVectorSetupListType->MagneticVectorSetup.arrayLen++]);
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- grammarID = 250;
- break;
- case 1:
- done = 1;
- grammarID = 3;
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 250:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MagneticVectorSetup), END_ELEMENT] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gMagneticVectorSetupListType->MagneticVectorSetup.arrayLen < v2gMagneticVectorSetupListType_MagneticVectorSetup_ARRAY_SIZE) {
- errn = decode_v2gMagneticVectorSetupType(stream, &v2gMagneticVectorSetupListType->MagneticVectorSetup.array[v2gMagneticVectorSetupListType->MagneticVectorSetup.arrayLen++]);
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- grammarID = 251;
- break;
- case 1:
- done = 1;
- grammarID = 3;
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 251:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MagneticVectorSetup), END_ELEMENT] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gMagneticVectorSetupListType->MagneticVectorSetup.arrayLen < v2gMagneticVectorSetupListType_MagneticVectorSetup_ARRAY_SIZE) {
- errn = decode_v2gMagneticVectorSetupType(stream, &v2gMagneticVectorSetupListType->MagneticVectorSetup.array[v2gMagneticVectorSetupListType->MagneticVectorSetup.arrayLen++]);
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- grammarID = 252;
- break;
- case 1:
- done = 1;
- grammarID = 3;
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 252:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MagneticVectorSetup), END_ELEMENT] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gMagneticVectorSetupListType->MagneticVectorSetup.arrayLen < v2gMagneticVectorSetupListType_MagneticVectorSetup_ARRAY_SIZE) {
- errn = decode_v2gMagneticVectorSetupType(stream, &v2gMagneticVectorSetupListType->MagneticVectorSetup.array[v2gMagneticVectorSetupListType->MagneticVectorSetup.arrayLen++]);
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- grammarID = 253;
- break;
- case 1:
- done = 1;
- grammarID = 3;
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 253:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MagneticVectorSetup), END_ELEMENT] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gMagneticVectorSetupListType->MagneticVectorSetup.arrayLen < v2gMagneticVectorSetupListType_MagneticVectorSetup_ARRAY_SIZE) {
- errn = decode_v2gMagneticVectorSetupType(stream, &v2gMagneticVectorSetupListType->MagneticVectorSetup.array[v2gMagneticVectorSetupListType->MagneticVectorSetup.arrayLen++]);
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- grammarID = 254;
- break;
- case 1:
- done = 1;
- grammarID = 3;
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 254:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MagneticVectorSetup), END_ELEMENT] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gMagneticVectorSetupListType->MagneticVectorSetup.arrayLen < v2gMagneticVectorSetupListType_MagneticVectorSetup_ARRAY_SIZE) {
- errn = decode_v2gMagneticVectorSetupType(stream, &v2gMagneticVectorSetupListType->MagneticVectorSetup.array[v2gMagneticVectorSetupListType->MagneticVectorSetup.arrayLen++]);
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- grammarID = 255;
- break;
- case 1:
- done = 1;
- grammarID = 3;
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 255:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MagneticVectorSetup), END_ELEMENT] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gMagneticVectorSetupListType->MagneticVectorSetup.arrayLen < v2gMagneticVectorSetupListType_MagneticVectorSetup_ARRAY_SIZE) {
- errn = decode_v2gMagneticVectorSetupType(stream, &v2gMagneticVectorSetupListType->MagneticVectorSetup.array[v2gMagneticVectorSetupListType->MagneticVectorSetup.arrayLen++]);
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- grammarID = 256;
- break;
- case 1:
- done = 1;
- grammarID = 3;
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 256:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MagneticVectorSetup), END_ELEMENT] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gMagneticVectorSetupListType->MagneticVectorSetup.arrayLen < v2gMagneticVectorSetupListType_MagneticVectorSetup_ARRAY_SIZE) {
- errn = decode_v2gMagneticVectorSetupType(stream, &v2gMagneticVectorSetupListType->MagneticVectorSetup.array[v2gMagneticVectorSetupListType->MagneticVectorSetup.arrayLen++]);
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- grammarID = 257;
- break;
- case 1:
- done = 1;
- grammarID = 3;
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 257:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MagneticVectorSetup), END_ELEMENT] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gMagneticVectorSetupListType->MagneticVectorSetup.arrayLen < v2gMagneticVectorSetupListType_MagneticVectorSetup_ARRAY_SIZE) {
- errn = decode_v2gMagneticVectorSetupType(stream, &v2gMagneticVectorSetupListType->MagneticVectorSetup.array[v2gMagneticVectorSetupListType->MagneticVectorSetup.arrayLen++]);
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- grammarID = 258;
- break;
- case 1:
- done = 1;
- grammarID = 3;
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 258:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MagneticVectorSetup), END_ELEMENT] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gMagneticVectorSetupListType->MagneticVectorSetup.arrayLen < v2gMagneticVectorSetupListType_MagneticVectorSetup_ARRAY_SIZE) {
- errn = decode_v2gMagneticVectorSetupType(stream, &v2gMagneticVectorSetupListType->MagneticVectorSetup.array[v2gMagneticVectorSetupListType->MagneticVectorSetup.arrayLen++]);
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- grammarID = 259;
- break;
- case 1:
- done = 1;
- grammarID = 3;
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 259:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MagneticVectorSetup), END_ELEMENT] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gMagneticVectorSetupListType->MagneticVectorSetup.arrayLen < v2gMagneticVectorSetupListType_MagneticVectorSetup_ARRAY_SIZE) {
- errn = decode_v2gMagneticVectorSetupType(stream, &v2gMagneticVectorSetupListType->MagneticVectorSetup.array[v2gMagneticVectorSetupListType->MagneticVectorSetup.arrayLen++]);
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- grammarID = 260;
- break;
- case 1:
- done = 1;
- grammarID = 3;
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 260:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MagneticVectorSetup), END_ELEMENT] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gMagneticVectorSetupListType->MagneticVectorSetup.arrayLen < v2gMagneticVectorSetupListType_MagneticVectorSetup_ARRAY_SIZE) {
- errn = decode_v2gMagneticVectorSetupType(stream, &v2gMagneticVectorSetupListType->MagneticVectorSetup.array[v2gMagneticVectorSetupListType->MagneticVectorSetup.arrayLen++]);
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- grammarID = 261;
- break;
- case 1:
- done = 1;
- grammarID = 3;
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 261:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MagneticVectorSetup), END_ELEMENT] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gMagneticVectorSetupListType->MagneticVectorSetup.arrayLen < v2gMagneticVectorSetupListType_MagneticVectorSetup_ARRAY_SIZE) {
- errn = decode_v2gMagneticVectorSetupType(stream, &v2gMagneticVectorSetupListType->MagneticVectorSetup.array[v2gMagneticVectorSetupListType->MagneticVectorSetup.arrayLen++]);
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- grammarID = 262;
- break;
- case 1:
- done = 1;
- grammarID = 3;
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 262:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MagneticVectorSetup), END_ELEMENT] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gMagneticVectorSetupListType->MagneticVectorSetup.arrayLen < v2gMagneticVectorSetupListType_MagneticVectorSetup_ARRAY_SIZE) {
- errn = decode_v2gMagneticVectorSetupType(stream, &v2gMagneticVectorSetupListType->MagneticVectorSetup.array[v2gMagneticVectorSetupListType->MagneticVectorSetup.arrayLen++]);
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- grammarID = 263;
- break;
- case 1:
- done = 1;
- grammarID = 3;
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 263:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MagneticVectorSetup), END_ELEMENT] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gMagneticVectorSetupListType->MagneticVectorSetup.arrayLen < v2gMagneticVectorSetupListType_MagneticVectorSetup_ARRAY_SIZE) {
- errn = decode_v2gMagneticVectorSetupType(stream, &v2gMagneticVectorSetupListType->MagneticVectorSetup.array[v2gMagneticVectorSetupListType->MagneticVectorSetup.arrayLen++]);
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- grammarID = 264;
- break;
- case 1:
- done = 1;
- grammarID = 3;
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 264:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MagneticVectorSetup), END_ELEMENT] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gMagneticVectorSetupListType->MagneticVectorSetup.arrayLen < v2gMagneticVectorSetupListType_MagneticVectorSetup_ARRAY_SIZE) {
- errn = decode_v2gMagneticVectorSetupType(stream, &v2gMagneticVectorSetupListType->MagneticVectorSetup.array[v2gMagneticVectorSetupListType->MagneticVectorSetup.arrayLen++]);
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- grammarID = 265;
- break;
- case 1:
- done = 1;
- grammarID = 3;
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 265:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MagneticVectorSetup), END_ELEMENT] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gMagneticVectorSetupListType->MagneticVectorSetup.arrayLen < v2gMagneticVectorSetupListType_MagneticVectorSetup_ARRAY_SIZE) {
- errn = decode_v2gMagneticVectorSetupType(stream, &v2gMagneticVectorSetupListType->MagneticVectorSetup.array[v2gMagneticVectorSetupListType->MagneticVectorSetup.arrayLen++]);
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- grammarID = 266;
- break;
- case 1:
- done = 1;
- grammarID = 3;
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 266:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MagneticVectorSetup), END_ELEMENT] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gMagneticVectorSetupListType->MagneticVectorSetup.arrayLen < v2gMagneticVectorSetupListType_MagneticVectorSetup_ARRAY_SIZE) {
- errn = decode_v2gMagneticVectorSetupType(stream, &v2gMagneticVectorSetupListType->MagneticVectorSetup.array[v2gMagneticVectorSetupListType->MagneticVectorSetup.arrayLen++]);
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- grammarID = 267;
- break;
- case 1:
- done = 1;
- grammarID = 3;
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 267:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MagneticVectorSetup), END_ELEMENT] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gMagneticVectorSetupListType->MagneticVectorSetup.arrayLen < v2gMagneticVectorSetupListType_MagneticVectorSetup_ARRAY_SIZE) {
- errn = decode_v2gMagneticVectorSetupType(stream, &v2gMagneticVectorSetupListType->MagneticVectorSetup.array[v2gMagneticVectorSetupListType->MagneticVectorSetup.arrayLen++]);
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- grammarID = 268;
- break;
- case 1:
- done = 1;
- grammarID = 3;
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 268:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MagneticVectorSetup), END_ELEMENT] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gMagneticVectorSetupListType->MagneticVectorSetup.arrayLen < v2gMagneticVectorSetupListType_MagneticVectorSetup_ARRAY_SIZE) {
- errn = decode_v2gMagneticVectorSetupType(stream, &v2gMagneticVectorSetupListType->MagneticVectorSetup.array[v2gMagneticVectorSetupListType->MagneticVectorSetup.arrayLen++]);
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- grammarID = 269;
- break;
- case 1:
- done = 1;
- grammarID = 3;
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 269:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MagneticVectorSetup), END_ELEMENT] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gMagneticVectorSetupListType->MagneticVectorSetup.arrayLen < v2gMagneticVectorSetupListType_MagneticVectorSetup_ARRAY_SIZE) {
- errn = decode_v2gMagneticVectorSetupType(stream, &v2gMagneticVectorSetupListType->MagneticVectorSetup.array[v2gMagneticVectorSetupListType->MagneticVectorSetup.arrayLen++]);
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- grammarID = 270;
- break;
- case 1:
- done = 1;
- grammarID = 3;
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 270:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MagneticVectorSetup), END_ELEMENT] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gMagneticVectorSetupListType->MagneticVectorSetup.arrayLen < v2gMagneticVectorSetupListType_MagneticVectorSetup_ARRAY_SIZE) {
- errn = decode_v2gMagneticVectorSetupType(stream, &v2gMagneticVectorSetupListType->MagneticVectorSetup.array[v2gMagneticVectorSetupListType->MagneticVectorSetup.arrayLen++]);
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- grammarID = 271;
- break;
- case 1:
- done = 1;
- grammarID = 3;
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 271:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MagneticVectorSetup), END_ELEMENT] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gMagneticVectorSetupListType->MagneticVectorSetup.arrayLen < v2gMagneticVectorSetupListType_MagneticVectorSetup_ARRAY_SIZE) {
- errn = decode_v2gMagneticVectorSetupType(stream, &v2gMagneticVectorSetupListType->MagneticVectorSetup.array[v2gMagneticVectorSetupListType->MagneticVectorSetup.arrayLen++]);
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- grammarID = 272;
- break;
- case 1:
- done = 1;
- grammarID = 3;
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 272:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MagneticVectorSetup), END_ELEMENT] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gMagneticVectorSetupListType->MagneticVectorSetup.arrayLen < v2gMagneticVectorSetupListType_MagneticVectorSetup_ARRAY_SIZE) {
- errn = decode_v2gMagneticVectorSetupType(stream, &v2gMagneticVectorSetupListType->MagneticVectorSetup.array[v2gMagneticVectorSetupListType->MagneticVectorSetup.arrayLen++]);
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- grammarID = 273;
- break;
- case 1:
- done = 1;
- grammarID = 3;
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 273:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MagneticVectorSetup), END_ELEMENT] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gMagneticVectorSetupListType->MagneticVectorSetup.arrayLen < v2gMagneticVectorSetupListType_MagneticVectorSetup_ARRAY_SIZE) {
- errn = decode_v2gMagneticVectorSetupType(stream, &v2gMagneticVectorSetupListType->MagneticVectorSetup.array[v2gMagneticVectorSetupListType->MagneticVectorSetup.arrayLen++]);
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- grammarID = 274;
- break;
- case 1:
- done = 1;
- grammarID = 3;
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 274:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MagneticVectorSetup), END_ELEMENT] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gMagneticVectorSetupListType->MagneticVectorSetup.arrayLen < v2gMagneticVectorSetupListType_MagneticVectorSetup_ARRAY_SIZE) {
- errn = decode_v2gMagneticVectorSetupType(stream, &v2gMagneticVectorSetupListType->MagneticVectorSetup.array[v2gMagneticVectorSetupListType->MagneticVectorSetup.arrayLen++]);
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- grammarID = 275;
- break;
- case 1:
- done = 1;
- grammarID = 3;
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 275:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MagneticVectorSetup), END_ELEMENT] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gMagneticVectorSetupListType->MagneticVectorSetup.arrayLen < v2gMagneticVectorSetupListType_MagneticVectorSetup_ARRAY_SIZE) {
- errn = decode_v2gMagneticVectorSetupType(stream, &v2gMagneticVectorSetupListType->MagneticVectorSetup.array[v2gMagneticVectorSetupListType->MagneticVectorSetup.arrayLen++]);
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- grammarID = 276;
- break;
- case 1:
- done = 1;
- grammarID = 3;
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 276:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MagneticVectorSetup), END_ELEMENT] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gMagneticVectorSetupListType->MagneticVectorSetup.arrayLen < v2gMagneticVectorSetupListType_MagneticVectorSetup_ARRAY_SIZE) {
- errn = decode_v2gMagneticVectorSetupType(stream, &v2gMagneticVectorSetupListType->MagneticVectorSetup.array[v2gMagneticVectorSetupListType->MagneticVectorSetup.arrayLen++]);
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- grammarID = 277;
- break;
- case 1:
- done = 1;
- grammarID = 3;
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 277:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MagneticVectorSetup), END_ELEMENT] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gMagneticVectorSetupListType->MagneticVectorSetup.arrayLen < v2gMagneticVectorSetupListType_MagneticVectorSetup_ARRAY_SIZE) {
- errn = decode_v2gMagneticVectorSetupType(stream, &v2gMagneticVectorSetupListType->MagneticVectorSetup.array[v2gMagneticVectorSetupListType->MagneticVectorSetup.arrayLen++]);
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- grammarID = 278;
- break;
- case 1:
- done = 1;
- grammarID = 3;
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 278:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MagneticVectorSetup), END_ELEMENT] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gMagneticVectorSetupListType->MagneticVectorSetup.arrayLen < v2gMagneticVectorSetupListType_MagneticVectorSetup_ARRAY_SIZE) {
- errn = decode_v2gMagneticVectorSetupType(stream, &v2gMagneticVectorSetupListType->MagneticVectorSetup.array[v2gMagneticVectorSetupListType->MagneticVectorSetup.arrayLen++]);
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- grammarID = 279;
- break;
- case 1:
- done = 1;
- grammarID = 3;
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 279:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MagneticVectorSetup), END_ELEMENT] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gMagneticVectorSetupListType->MagneticVectorSetup.arrayLen < v2gMagneticVectorSetupListType_MagneticVectorSetup_ARRAY_SIZE) {
- errn = decode_v2gMagneticVectorSetupType(stream, &v2gMagneticVectorSetupListType->MagneticVectorSetup.array[v2gMagneticVectorSetupListType->MagneticVectorSetup.arrayLen++]);
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- grammarID = 280;
- break;
- case 1:
- done = 1;
- grammarID = 3;
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 280:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MagneticVectorSetup), END_ELEMENT] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gMagneticVectorSetupListType->MagneticVectorSetup.arrayLen < v2gMagneticVectorSetupListType_MagneticVectorSetup_ARRAY_SIZE) {
- errn = decode_v2gMagneticVectorSetupType(stream, &v2gMagneticVectorSetupListType->MagneticVectorSetup.array[v2gMagneticVectorSetupListType->MagneticVectorSetup.arrayLen++]);
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- grammarID = 281;
- break;
- case 1:
- done = 1;
- grammarID = 3;
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 281:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MagneticVectorSetup), END_ELEMENT] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gMagneticVectorSetupListType->MagneticVectorSetup.arrayLen < v2gMagneticVectorSetupListType_MagneticVectorSetup_ARRAY_SIZE) {
- errn = decode_v2gMagneticVectorSetupType(stream, &v2gMagneticVectorSetupListType->MagneticVectorSetup.array[v2gMagneticVectorSetupListType->MagneticVectorSetup.arrayLen++]);
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- grammarID = 282;
- break;
- case 1:
- done = 1;
- grammarID = 3;
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 282:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MagneticVectorSetup), END_ELEMENT] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gMagneticVectorSetupListType->MagneticVectorSetup.arrayLen < v2gMagneticVectorSetupListType_MagneticVectorSetup_ARRAY_SIZE) {
- errn = decode_v2gMagneticVectorSetupType(stream, &v2gMagneticVectorSetupListType->MagneticVectorSetup.array[v2gMagneticVectorSetupListType->MagneticVectorSetup.arrayLen++]);
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- grammarID = 283;
- break;
- case 1:
- done = 1;
- grammarID = 3;
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 283:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MagneticVectorSetup), END_ELEMENT] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gMagneticVectorSetupListType->MagneticVectorSetup.arrayLen < v2gMagneticVectorSetupListType_MagneticVectorSetup_ARRAY_SIZE) {
- errn = decode_v2gMagneticVectorSetupType(stream, &v2gMagneticVectorSetupListType->MagneticVectorSetup.array[v2gMagneticVectorSetupListType->MagneticVectorSetup.arrayLen++]);
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- grammarID = 284;
- break;
- case 1:
- done = 1;
- grammarID = 3;
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 284:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MagneticVectorSetup), END_ELEMENT] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gMagneticVectorSetupListType->MagneticVectorSetup.arrayLen < v2gMagneticVectorSetupListType_MagneticVectorSetup_ARRAY_SIZE) {
- errn = decode_v2gMagneticVectorSetupType(stream, &v2gMagneticVectorSetupListType->MagneticVectorSetup.array[v2gMagneticVectorSetupListType->MagneticVectorSetup.arrayLen++]);
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- grammarID = 285;
- break;
- case 1:
- done = 1;
- grammarID = 3;
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 285:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MagneticVectorSetup), END_ELEMENT] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gMagneticVectorSetupListType->MagneticVectorSetup.arrayLen < v2gMagneticVectorSetupListType_MagneticVectorSetup_ARRAY_SIZE) {
- errn = decode_v2gMagneticVectorSetupType(stream, &v2gMagneticVectorSetupListType->MagneticVectorSetup.array[v2gMagneticVectorSetupListType->MagneticVectorSetup.arrayLen++]);
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- grammarID = 286;
- break;
- case 1:
- done = 1;
- grammarID = 3;
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 286:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MagneticVectorSetup), END_ELEMENT] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gMagneticVectorSetupListType->MagneticVectorSetup.arrayLen < v2gMagneticVectorSetupListType_MagneticVectorSetup_ARRAY_SIZE) {
- errn = decode_v2gMagneticVectorSetupType(stream, &v2gMagneticVectorSetupListType->MagneticVectorSetup.array[v2gMagneticVectorSetupListType->MagneticVectorSetup.arrayLen++]);
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- grammarID = 287;
- break;
- case 1:
- done = 1;
- grammarID = 3;
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 287:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MagneticVectorSetup), END_ELEMENT] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gMagneticVectorSetupListType->MagneticVectorSetup.arrayLen < v2gMagneticVectorSetupListType_MagneticVectorSetup_ARRAY_SIZE) {
- errn = decode_v2gMagneticVectorSetupType(stream, &v2gMagneticVectorSetupListType->MagneticVectorSetup.array[v2gMagneticVectorSetupListType->MagneticVectorSetup.arrayLen++]);
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- grammarID = 288;
- break;
- case 1:
- done = 1;
- grammarID = 3;
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 288:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MagneticVectorSetup), END_ELEMENT] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gMagneticVectorSetupListType->MagneticVectorSetup.arrayLen < v2gMagneticVectorSetupListType_MagneticVectorSetup_ARRAY_SIZE) {
- errn = decode_v2gMagneticVectorSetupType(stream, &v2gMagneticVectorSetupListType->MagneticVectorSetup.array[v2gMagneticVectorSetupListType->MagneticVectorSetup.arrayLen++]);
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- grammarID = 289;
- break;
- case 1:
- done = 1;
- grammarID = 3;
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 289:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MagneticVectorSetup), END_ELEMENT] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gMagneticVectorSetupListType->MagneticVectorSetup.arrayLen < v2gMagneticVectorSetupListType_MagneticVectorSetup_ARRAY_SIZE) {
- errn = decode_v2gMagneticVectorSetupType(stream, &v2gMagneticVectorSetupListType->MagneticVectorSetup.array[v2gMagneticVectorSetupListType->MagneticVectorSetup.arrayLen++]);
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- grammarID = 290;
- break;
- case 1:
- done = 1;
- grammarID = 3;
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 290:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MagneticVectorSetup), END_ELEMENT] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gMagneticVectorSetupListType->MagneticVectorSetup.arrayLen < v2gMagneticVectorSetupListType_MagneticVectorSetup_ARRAY_SIZE) {
- errn = decode_v2gMagneticVectorSetupType(stream, &v2gMagneticVectorSetupListType->MagneticVectorSetup.array[v2gMagneticVectorSetupListType->MagneticVectorSetup.arrayLen++]);
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- grammarID = 291;
- break;
- case 1:
- done = 1;
- grammarID = 3;
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 291:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MagneticVectorSetup), END_ELEMENT] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gMagneticVectorSetupListType->MagneticVectorSetup.arrayLen < v2gMagneticVectorSetupListType_MagneticVectorSetup_ARRAY_SIZE) {
- errn = decode_v2gMagneticVectorSetupType(stream, &v2gMagneticVectorSetupListType->MagneticVectorSetup.array[v2gMagneticVectorSetupListType->MagneticVectorSetup.arrayLen++]);
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- grammarID = 292;
- break;
- case 1:
- done = 1;
- grammarID = 3;
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 292:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MagneticVectorSetup), END_ELEMENT] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gMagneticVectorSetupListType->MagneticVectorSetup.arrayLen < v2gMagneticVectorSetupListType_MagneticVectorSetup_ARRAY_SIZE) {
- errn = decode_v2gMagneticVectorSetupType(stream, &v2gMagneticVectorSetupListType->MagneticVectorSetup.array[v2gMagneticVectorSetupListType->MagneticVectorSetup.arrayLen++]);
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- grammarID = 293;
- break;
- case 1:
- done = 1;
- grammarID = 3;
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 293:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MagneticVectorSetup), END_ELEMENT] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gMagneticVectorSetupListType->MagneticVectorSetup.arrayLen < v2gMagneticVectorSetupListType_MagneticVectorSetup_ARRAY_SIZE) {
- errn = decode_v2gMagneticVectorSetupType(stream, &v2gMagneticVectorSetupListType->MagneticVectorSetup.array[v2gMagneticVectorSetupListType->MagneticVectorSetup.arrayLen++]);
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- grammarID = 294;
- break;
- case 1:
- done = 1;
- grammarID = 3;
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 294:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MagneticVectorSetup), END_ELEMENT] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gMagneticVectorSetupListType->MagneticVectorSetup.arrayLen < v2gMagneticVectorSetupListType_MagneticVectorSetup_ARRAY_SIZE) {
- errn = decode_v2gMagneticVectorSetupType(stream, &v2gMagneticVectorSetupListType->MagneticVectorSetup.array[v2gMagneticVectorSetupListType->MagneticVectorSetup.arrayLen++]);
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- grammarID = 295;
- break;
- case 1:
- done = 1;
- grammarID = 3;
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 295:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MagneticVectorSetup), END_ELEMENT] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gMagneticVectorSetupListType->MagneticVectorSetup.arrayLen < v2gMagneticVectorSetupListType_MagneticVectorSetup_ARRAY_SIZE) {
- errn = decode_v2gMagneticVectorSetupType(stream, &v2gMagneticVectorSetupListType->MagneticVectorSetup.array[v2gMagneticVectorSetupListType->MagneticVectorSetup.arrayLen++]);
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- grammarID = 296;
- break;
- case 1:
- done = 1;
- grammarID = 3;
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 296:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MagneticVectorSetup), END_ELEMENT] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gMagneticVectorSetupListType->MagneticVectorSetup.arrayLen < v2gMagneticVectorSetupListType_MagneticVectorSetup_ARRAY_SIZE) {
- errn = decode_v2gMagneticVectorSetupType(stream, &v2gMagneticVectorSetupListType->MagneticVectorSetup.array[v2gMagneticVectorSetupListType->MagneticVectorSetup.arrayLen++]);
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- grammarID = 297;
- break;
- case 1:
- done = 1;
- grammarID = 3;
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 297:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MagneticVectorSetup), END_ELEMENT] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gMagneticVectorSetupListType->MagneticVectorSetup.arrayLen < v2gMagneticVectorSetupListType_MagneticVectorSetup_ARRAY_SIZE) {
- errn = decode_v2gMagneticVectorSetupType(stream, &v2gMagneticVectorSetupListType->MagneticVectorSetup.array[v2gMagneticVectorSetupListType->MagneticVectorSetup.arrayLen++]);
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- grammarID = 298;
- break;
- case 1:
- done = 1;
- grammarID = 3;
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 298:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MagneticVectorSetup), END_ELEMENT] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gMagneticVectorSetupListType->MagneticVectorSetup.arrayLen < v2gMagneticVectorSetupListType_MagneticVectorSetup_ARRAY_SIZE) {
- errn = decode_v2gMagneticVectorSetupType(stream, &v2gMagneticVectorSetupListType->MagneticVectorSetup.array[v2gMagneticVectorSetupListType->MagneticVectorSetup.arrayLen++]);
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- grammarID = 299;
- break;
- case 1:
- done = 1;
- grammarID = 3;
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 299:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MagneticVectorSetup), END_ELEMENT] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gMagneticVectorSetupListType->MagneticVectorSetup.arrayLen < v2gMagneticVectorSetupListType_MagneticVectorSetup_ARRAY_SIZE) {
- errn = decode_v2gMagneticVectorSetupType(stream, &v2gMagneticVectorSetupListType->MagneticVectorSetup.array[v2gMagneticVectorSetupListType->MagneticVectorSetup.arrayLen++]);
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- grammarID = 300;
- break;
- case 1:
- done = 1;
- grammarID = 3;
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 300:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MagneticVectorSetup), END_ELEMENT] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gMagneticVectorSetupListType->MagneticVectorSetup.arrayLen < v2gMagneticVectorSetupListType_MagneticVectorSetup_ARRAY_SIZE) {
- errn = decode_v2gMagneticVectorSetupType(stream, &v2gMagneticVectorSetupListType->MagneticVectorSetup.array[v2gMagneticVectorSetupListType->MagneticVectorSetup.arrayLen++]);
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- grammarID = 301;
- break;
- case 1:
- done = 1;
- grammarID = 3;
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 301:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MagneticVectorSetup), END_ELEMENT] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gMagneticVectorSetupListType->MagneticVectorSetup.arrayLen < v2gMagneticVectorSetupListType_MagneticVectorSetup_ARRAY_SIZE) {
- errn = decode_v2gMagneticVectorSetupType(stream, &v2gMagneticVectorSetupListType->MagneticVectorSetup.array[v2gMagneticVectorSetupListType->MagneticVectorSetup.arrayLen++]);
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- grammarID = 302;
- break;
- case 1:
- done = 1;
- grammarID = 3;
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 302:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MagneticVectorSetup), END_ELEMENT] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gMagneticVectorSetupListType->MagneticVectorSetup.arrayLen < v2gMagneticVectorSetupListType_MagneticVectorSetup_ARRAY_SIZE) {
- errn = decode_v2gMagneticVectorSetupType(stream, &v2gMagneticVectorSetupListType->MagneticVectorSetup.array[v2gMagneticVectorSetupListType->MagneticVectorSetup.arrayLen++]);
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- grammarID = 303;
- break;
- case 1:
- done = 1;
- grammarID = 3;
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 303:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MagneticVectorSetup), END_ELEMENT] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gMagneticVectorSetupListType->MagneticVectorSetup.arrayLen < v2gMagneticVectorSetupListType_MagneticVectorSetup_ARRAY_SIZE) {
- errn = decode_v2gMagneticVectorSetupType(stream, &v2gMagneticVectorSetupListType->MagneticVectorSetup.array[v2gMagneticVectorSetupListType->MagneticVectorSetup.arrayLen++]);
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- grammarID = 304;
- break;
- case 1:
- done = 1;
- grammarID = 3;
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 304:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MagneticVectorSetup), END_ELEMENT] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gMagneticVectorSetupListType->MagneticVectorSetup.arrayLen < v2gMagneticVectorSetupListType_MagneticVectorSetup_ARRAY_SIZE) {
- errn = decode_v2gMagneticVectorSetupType(stream, &v2gMagneticVectorSetupListType->MagneticVectorSetup.array[v2gMagneticVectorSetupListType->MagneticVectorSetup.arrayLen++]);
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- grammarID = 305;
- break;
- case 1:
- done = 1;
- grammarID = 3;
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 305:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MagneticVectorSetup), END_ELEMENT] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gMagneticVectorSetupListType->MagneticVectorSetup.arrayLen < v2gMagneticVectorSetupListType_MagneticVectorSetup_ARRAY_SIZE) {
- errn = decode_v2gMagneticVectorSetupType(stream, &v2gMagneticVectorSetupListType->MagneticVectorSetup.array[v2gMagneticVectorSetupListType->MagneticVectorSetup.arrayLen++]);
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- grammarID = 306;
- break;
- case 1:
- done = 1;
- grammarID = 3;
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 306:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MagneticVectorSetup), END_ELEMENT] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gMagneticVectorSetupListType->MagneticVectorSetup.arrayLen < v2gMagneticVectorSetupListType_MagneticVectorSetup_ARRAY_SIZE) {
- errn = decode_v2gMagneticVectorSetupType(stream, &v2gMagneticVectorSetupListType->MagneticVectorSetup.array[v2gMagneticVectorSetupListType->MagneticVectorSetup.arrayLen++]);
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- grammarID = 307;
- break;
- case 1:
- done = 1;
- grammarID = 3;
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 307:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MagneticVectorSetup), END_ELEMENT] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gMagneticVectorSetupListType->MagneticVectorSetup.arrayLen < v2gMagneticVectorSetupListType_MagneticVectorSetup_ARRAY_SIZE) {
- errn = decode_v2gMagneticVectorSetupType(stream, &v2gMagneticVectorSetupListType->MagneticVectorSetup.array[v2gMagneticVectorSetupListType->MagneticVectorSetup.arrayLen++]);
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- grammarID = 308;
- break;
- case 1:
- done = 1;
- grammarID = 3;
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 308:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MagneticVectorSetup), END_ELEMENT] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gMagneticVectorSetupListType->MagneticVectorSetup.arrayLen < v2gMagneticVectorSetupListType_MagneticVectorSetup_ARRAY_SIZE) {
- errn = decode_v2gMagneticVectorSetupType(stream, &v2gMagneticVectorSetupListType->MagneticVectorSetup.array[v2gMagneticVectorSetupListType->MagneticVectorSetup.arrayLen++]);
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- grammarID = 309;
- break;
- case 1:
- done = 1;
- grammarID = 3;
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 309:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MagneticVectorSetup), END_ELEMENT] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gMagneticVectorSetupListType->MagneticVectorSetup.arrayLen < v2gMagneticVectorSetupListType_MagneticVectorSetup_ARRAY_SIZE) {
- errn = decode_v2gMagneticVectorSetupType(stream, &v2gMagneticVectorSetupListType->MagneticVectorSetup.array[v2gMagneticVectorSetupListType->MagneticVectorSetup.arrayLen++]);
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- grammarID = 310;
- break;
- case 1:
- done = 1;
- grammarID = 3;
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 310:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MagneticVectorSetup), END_ELEMENT] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gMagneticVectorSetupListType->MagneticVectorSetup.arrayLen < v2gMagneticVectorSetupListType_MagneticVectorSetup_ARRAY_SIZE) {
- errn = decode_v2gMagneticVectorSetupType(stream, &v2gMagneticVectorSetupListType->MagneticVectorSetup.array[v2gMagneticVectorSetupListType->MagneticVectorSetup.arrayLen++]);
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- grammarID = 311;
- break;
- case 1:
- done = 1;
- grammarID = 3;
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 311:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MagneticVectorSetup), END_ELEMENT] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gMagneticVectorSetupListType->MagneticVectorSetup.arrayLen < v2gMagneticVectorSetupListType_MagneticVectorSetup_ARRAY_SIZE) {
- errn = decode_v2gMagneticVectorSetupType(stream, &v2gMagneticVectorSetupListType->MagneticVectorSetup.array[v2gMagneticVectorSetupListType->MagneticVectorSetup.arrayLen++]);
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- grammarID = 312;
- break;
- case 1:
- done = 1;
- grammarID = 3;
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 312:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MagneticVectorSetup), END_ELEMENT] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gMagneticVectorSetupListType->MagneticVectorSetup.arrayLen < v2gMagneticVectorSetupListType_MagneticVectorSetup_ARRAY_SIZE) {
- errn = decode_v2gMagneticVectorSetupType(stream, &v2gMagneticVectorSetupListType->MagneticVectorSetup.array[v2gMagneticVectorSetupListType->MagneticVectorSetup.arrayLen++]);
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- grammarID = 313;
- break;
- case 1:
- done = 1;
- grammarID = 3;
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 313:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MagneticVectorSetup), END_ELEMENT] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gMagneticVectorSetupListType->MagneticVectorSetup.arrayLen < v2gMagneticVectorSetupListType_MagneticVectorSetup_ARRAY_SIZE) {
- errn = decode_v2gMagneticVectorSetupType(stream, &v2gMagneticVectorSetupListType->MagneticVectorSetup.array[v2gMagneticVectorSetupListType->MagneticVectorSetup.arrayLen++]);
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- grammarID = 314;
- break;
- case 1:
- done = 1;
- grammarID = 3;
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 314:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MagneticVectorSetup), END_ELEMENT] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gMagneticVectorSetupListType->MagneticVectorSetup.arrayLen < v2gMagneticVectorSetupListType_MagneticVectorSetup_ARRAY_SIZE) {
- errn = decode_v2gMagneticVectorSetupType(stream, &v2gMagneticVectorSetupListType->MagneticVectorSetup.array[v2gMagneticVectorSetupListType->MagneticVectorSetup.arrayLen++]);
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- grammarID = 315;
- break;
- case 1:
- done = 1;
- grammarID = 3;
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 315:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MagneticVectorSetup), END_ELEMENT] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gMagneticVectorSetupListType->MagneticVectorSetup.arrayLen < v2gMagneticVectorSetupListType_MagneticVectorSetup_ARRAY_SIZE) {
- errn = decode_v2gMagneticVectorSetupType(stream, &v2gMagneticVectorSetupListType->MagneticVectorSetup.array[v2gMagneticVectorSetupListType->MagneticVectorSetup.arrayLen++]);
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- grammarID = 316;
- break;
- case 1:
- done = 1;
- grammarID = 3;
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 316:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MagneticVectorSetup), END_ELEMENT] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gMagneticVectorSetupListType->MagneticVectorSetup.arrayLen < v2gMagneticVectorSetupListType_MagneticVectorSetup_ARRAY_SIZE) {
- errn = decode_v2gMagneticVectorSetupType(stream, &v2gMagneticVectorSetupListType->MagneticVectorSetup.array[v2gMagneticVectorSetupListType->MagneticVectorSetup.arrayLen++]);
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- grammarID = 2;
- 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:2016:MsgDataTypes,SensorMeasurementsType', base type name='anyType', content type='ELEMENT', isAbstract='false', hasTypeId='false', final='0', block='0', particle='("urn:iso:15118:2:2016:MsgDataTypes":SensorID,"urn:iso:15118:2:2016:MsgDataTypes":EffectiveRadiatedPower,"urn:iso:15118:2:2016:MsgDataTypes":MeasurementData{1-255})', derivedBy='RESTRICTION'. */
-static int decode_v2gSensorMeasurementsType(bitstream_t* stream, struct v2gSensorMeasurementsType* v2gSensorMeasurementsType) {
- int grammarID = 317;
- int done = 0;
-
- init_v2gSensorMeasurementsType(v2gSensorMeasurementsType);
-
- while(!done) {
- switch(grammarID) {
- case 317:
- /* FirstStartTag[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorID)] */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(errn == 0) {
- if(eventCode == 0) {
- errn = decodeNBitUnsignedInteger(stream, 8, &(uint32));
- v2gSensorMeasurementsType->SensorID = (uint8_t)(uint32 + 0);
- } 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({urn:iso:15118:2:2016:MsgDataTypes}SensorID) ? */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(eventCode == 0) {
- grammarID = 318;
- } else {
- errn = EXI_DEVIANT_SUPPORT_NOT_DEPLOYED; /* or also typecast and nillable */
- }
- }
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 318:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}EffectiveRadiatedPower)] */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(errn == 0) {
- if(eventCode == 0) {
- errn = decodeNBitUnsignedInteger(stream, 8, &(uint32));
- v2gSensorMeasurementsType->EffectiveRadiatedPower = (int8_t)(uint32 -128);
- } 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({urn:iso:15118:2:2016:MsgDataTypes}EffectiveRadiatedPower) ? */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(eventCode == 0) {
- grammarID = 319;
- } else {
- errn = EXI_DEVIANT_SUPPORT_NOT_DEPLOYED; /* or also typecast and nillable */
- }
- }
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 319:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MeasurementData)] */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gSensorMeasurementsType->MeasurementData.arrayLen < v2gSensorMeasurementsType_MeasurementData_ARRAY_SIZE) {
- /* First(xsi:type)StartTag[CHARACTERS[UNSIGNED_INTEGER]] */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(errn == 0) {
- if(eventCode == 0) {
- errn = decodeUnsignedInteger16(stream, &v2gSensorMeasurementsType->MeasurementData.array[v2gSensorMeasurementsType->MeasurementData.arrayLen]);
- v2gSensorMeasurementsType->MeasurementData.arrayLen++;
- } else {
- /* Second level event (e.g., xsi:type, xsi:nil, ...) */
- errn = EXI_UNSUPPORTED_EVENT_CODE_CHARACTERISTICS;
- }
- }
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- if(errn == 0) {
- /* valid EE for simple element START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MeasurementData) ? */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(eventCode == 0) {
- grammarID = 320;
- } else {
- errn = EXI_DEVIANT_SUPPORT_NOT_DEPLOYED; /* or also typecast and nillable */
- }
- }
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 320:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MeasurementData), END_ELEMENT] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gSensorMeasurementsType->MeasurementData.arrayLen < v2gSensorMeasurementsType_MeasurementData_ARRAY_SIZE) {
- /* First(xsi:type)StartTag[CHARACTERS[UNSIGNED_INTEGER]] */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(errn == 0) {
- if(eventCode == 0) {
- errn = decodeUnsignedInteger16(stream, &v2gSensorMeasurementsType->MeasurementData.array[v2gSensorMeasurementsType->MeasurementData.arrayLen]);
- v2gSensorMeasurementsType->MeasurementData.arrayLen++;
- } else {
- /* Second level event (e.g., xsi:type, xsi:nil, ...) */
- errn = EXI_UNSUPPORTED_EVENT_CODE_CHARACTERISTICS;
- }
- }
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- if(errn == 0) {
- /* valid EE for simple element START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MeasurementData) ? */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(eventCode == 0) {
- grammarID = 321;
- } 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 321:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MeasurementData), END_ELEMENT] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gSensorMeasurementsType->MeasurementData.arrayLen < v2gSensorMeasurementsType_MeasurementData_ARRAY_SIZE) {
- /* First(xsi:type)StartTag[CHARACTERS[UNSIGNED_INTEGER]] */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(errn == 0) {
- if(eventCode == 0) {
- errn = decodeUnsignedInteger16(stream, &v2gSensorMeasurementsType->MeasurementData.array[v2gSensorMeasurementsType->MeasurementData.arrayLen]);
- v2gSensorMeasurementsType->MeasurementData.arrayLen++;
- } else {
- /* Second level event (e.g., xsi:type, xsi:nil, ...) */
- errn = EXI_UNSUPPORTED_EVENT_CODE_CHARACTERISTICS;
- }
- }
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- if(errn == 0) {
- /* valid EE for simple element START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MeasurementData) ? */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(eventCode == 0) {
- grammarID = 322;
- } 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 322:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MeasurementData), END_ELEMENT] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gSensorMeasurementsType->MeasurementData.arrayLen < v2gSensorMeasurementsType_MeasurementData_ARRAY_SIZE) {
- /* First(xsi:type)StartTag[CHARACTERS[UNSIGNED_INTEGER]] */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(errn == 0) {
- if(eventCode == 0) {
- errn = decodeUnsignedInteger16(stream, &v2gSensorMeasurementsType->MeasurementData.array[v2gSensorMeasurementsType->MeasurementData.arrayLen]);
- v2gSensorMeasurementsType->MeasurementData.arrayLen++;
- } else {
- /* Second level event (e.g., xsi:type, xsi:nil, ...) */
- errn = EXI_UNSUPPORTED_EVENT_CODE_CHARACTERISTICS;
- }
- }
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- if(errn == 0) {
- /* valid EE for simple element START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MeasurementData) ? */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(eventCode == 0) {
- grammarID = 323;
- } 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 323:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MeasurementData), END_ELEMENT] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gSensorMeasurementsType->MeasurementData.arrayLen < v2gSensorMeasurementsType_MeasurementData_ARRAY_SIZE) {
- /* First(xsi:type)StartTag[CHARACTERS[UNSIGNED_INTEGER]] */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(errn == 0) {
- if(eventCode == 0) {
- errn = decodeUnsignedInteger16(stream, &v2gSensorMeasurementsType->MeasurementData.array[v2gSensorMeasurementsType->MeasurementData.arrayLen]);
- v2gSensorMeasurementsType->MeasurementData.arrayLen++;
- } else {
- /* Second level event (e.g., xsi:type, xsi:nil, ...) */
- errn = EXI_UNSUPPORTED_EVENT_CODE_CHARACTERISTICS;
- }
- }
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- if(errn == 0) {
- /* valid EE for simple element START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MeasurementData) ? */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(eventCode == 0) {
- grammarID = 324;
- } 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 324:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MeasurementData), END_ELEMENT] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gSensorMeasurementsType->MeasurementData.arrayLen < v2gSensorMeasurementsType_MeasurementData_ARRAY_SIZE) {
- /* First(xsi:type)StartTag[CHARACTERS[UNSIGNED_INTEGER]] */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(errn == 0) {
- if(eventCode == 0) {
- errn = decodeUnsignedInteger16(stream, &v2gSensorMeasurementsType->MeasurementData.array[v2gSensorMeasurementsType->MeasurementData.arrayLen]);
- v2gSensorMeasurementsType->MeasurementData.arrayLen++;
- } else {
- /* Second level event (e.g., xsi:type, xsi:nil, ...) */
- errn = EXI_UNSUPPORTED_EVENT_CODE_CHARACTERISTICS;
- }
- }
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- if(errn == 0) {
- /* valid EE for simple element START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MeasurementData) ? */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(eventCode == 0) {
- grammarID = 325;
- } 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 325:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MeasurementData), END_ELEMENT] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gSensorMeasurementsType->MeasurementData.arrayLen < v2gSensorMeasurementsType_MeasurementData_ARRAY_SIZE) {
- /* First(xsi:type)StartTag[CHARACTERS[UNSIGNED_INTEGER]] */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(errn == 0) {
- if(eventCode == 0) {
- errn = decodeUnsignedInteger16(stream, &v2gSensorMeasurementsType->MeasurementData.array[v2gSensorMeasurementsType->MeasurementData.arrayLen]);
- v2gSensorMeasurementsType->MeasurementData.arrayLen++;
- } else {
- /* Second level event (e.g., xsi:type, xsi:nil, ...) */
- errn = EXI_UNSUPPORTED_EVENT_CODE_CHARACTERISTICS;
- }
- }
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- if(errn == 0) {
- /* valid EE for simple element START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MeasurementData) ? */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(eventCode == 0) {
- grammarID = 326;
- } 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 326:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MeasurementData), END_ELEMENT] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gSensorMeasurementsType->MeasurementData.arrayLen < v2gSensorMeasurementsType_MeasurementData_ARRAY_SIZE) {
- /* First(xsi:type)StartTag[CHARACTERS[UNSIGNED_INTEGER]] */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(errn == 0) {
- if(eventCode == 0) {
- errn = decodeUnsignedInteger16(stream, &v2gSensorMeasurementsType->MeasurementData.array[v2gSensorMeasurementsType->MeasurementData.arrayLen]);
- v2gSensorMeasurementsType->MeasurementData.arrayLen++;
- } else {
- /* Second level event (e.g., xsi:type, xsi:nil, ...) */
- errn = EXI_UNSUPPORTED_EVENT_CODE_CHARACTERISTICS;
- }
- }
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- if(errn == 0) {
- /* valid EE for simple element START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MeasurementData) ? */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(eventCode == 0) {
- grammarID = 327;
- } 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 327:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MeasurementData), END_ELEMENT] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gSensorMeasurementsType->MeasurementData.arrayLen < v2gSensorMeasurementsType_MeasurementData_ARRAY_SIZE) {
- /* First(xsi:type)StartTag[CHARACTERS[UNSIGNED_INTEGER]] */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(errn == 0) {
- if(eventCode == 0) {
- errn = decodeUnsignedInteger16(stream, &v2gSensorMeasurementsType->MeasurementData.array[v2gSensorMeasurementsType->MeasurementData.arrayLen]);
- v2gSensorMeasurementsType->MeasurementData.arrayLen++;
- } else {
- /* Second level event (e.g., xsi:type, xsi:nil, ...) */
- errn = EXI_UNSUPPORTED_EVENT_CODE_CHARACTERISTICS;
- }
- }
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- if(errn == 0) {
- /* valid EE for simple element START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MeasurementData) ? */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(eventCode == 0) {
- grammarID = 328;
- } 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 328:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MeasurementData), END_ELEMENT] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gSensorMeasurementsType->MeasurementData.arrayLen < v2gSensorMeasurementsType_MeasurementData_ARRAY_SIZE) {
- /* First(xsi:type)StartTag[CHARACTERS[UNSIGNED_INTEGER]] */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(errn == 0) {
- if(eventCode == 0) {
- errn = decodeUnsignedInteger16(stream, &v2gSensorMeasurementsType->MeasurementData.array[v2gSensorMeasurementsType->MeasurementData.arrayLen]);
- v2gSensorMeasurementsType->MeasurementData.arrayLen++;
- } else {
- /* Second level event (e.g., xsi:type, xsi:nil, ...) */
- errn = EXI_UNSUPPORTED_EVENT_CODE_CHARACTERISTICS;
- }
- }
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- if(errn == 0) {
- /* valid EE for simple element START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MeasurementData) ? */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(eventCode == 0) {
- grammarID = 329;
- } 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 329:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MeasurementData), END_ELEMENT] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gSensorMeasurementsType->MeasurementData.arrayLen < v2gSensorMeasurementsType_MeasurementData_ARRAY_SIZE) {
- /* First(xsi:type)StartTag[CHARACTERS[UNSIGNED_INTEGER]] */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(errn == 0) {
- if(eventCode == 0) {
- errn = decodeUnsignedInteger16(stream, &v2gSensorMeasurementsType->MeasurementData.array[v2gSensorMeasurementsType->MeasurementData.arrayLen]);
- v2gSensorMeasurementsType->MeasurementData.arrayLen++;
- } else {
- /* Second level event (e.g., xsi:type, xsi:nil, ...) */
- errn = EXI_UNSUPPORTED_EVENT_CODE_CHARACTERISTICS;
- }
- }
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- if(errn == 0) {
- /* valid EE for simple element START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MeasurementData) ? */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(eventCode == 0) {
- grammarID = 330;
- } 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 330:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MeasurementData), END_ELEMENT] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gSensorMeasurementsType->MeasurementData.arrayLen < v2gSensorMeasurementsType_MeasurementData_ARRAY_SIZE) {
- /* First(xsi:type)StartTag[CHARACTERS[UNSIGNED_INTEGER]] */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(errn == 0) {
- if(eventCode == 0) {
- errn = decodeUnsignedInteger16(stream, &v2gSensorMeasurementsType->MeasurementData.array[v2gSensorMeasurementsType->MeasurementData.arrayLen]);
- v2gSensorMeasurementsType->MeasurementData.arrayLen++;
- } else {
- /* Second level event (e.g., xsi:type, xsi:nil, ...) */
- errn = EXI_UNSUPPORTED_EVENT_CODE_CHARACTERISTICS;
- }
- }
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- if(errn == 0) {
- /* valid EE for simple element START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MeasurementData) ? */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(eventCode == 0) {
- grammarID = 331;
- } 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 331:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MeasurementData), END_ELEMENT] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gSensorMeasurementsType->MeasurementData.arrayLen < v2gSensorMeasurementsType_MeasurementData_ARRAY_SIZE) {
- /* First(xsi:type)StartTag[CHARACTERS[UNSIGNED_INTEGER]] */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(errn == 0) {
- if(eventCode == 0) {
- errn = decodeUnsignedInteger16(stream, &v2gSensorMeasurementsType->MeasurementData.array[v2gSensorMeasurementsType->MeasurementData.arrayLen]);
- v2gSensorMeasurementsType->MeasurementData.arrayLen++;
- } else {
- /* Second level event (e.g., xsi:type, xsi:nil, ...) */
- errn = EXI_UNSUPPORTED_EVENT_CODE_CHARACTERISTICS;
- }
- }
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- if(errn == 0) {
- /* valid EE for simple element START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MeasurementData) ? */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(eventCode == 0) {
- grammarID = 332;
- } 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 332:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MeasurementData), END_ELEMENT] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gSensorMeasurementsType->MeasurementData.arrayLen < v2gSensorMeasurementsType_MeasurementData_ARRAY_SIZE) {
- /* First(xsi:type)StartTag[CHARACTERS[UNSIGNED_INTEGER]] */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(errn == 0) {
- if(eventCode == 0) {
- errn = decodeUnsignedInteger16(stream, &v2gSensorMeasurementsType->MeasurementData.array[v2gSensorMeasurementsType->MeasurementData.arrayLen]);
- v2gSensorMeasurementsType->MeasurementData.arrayLen++;
- } else {
- /* Second level event (e.g., xsi:type, xsi:nil, ...) */
- errn = EXI_UNSUPPORTED_EVENT_CODE_CHARACTERISTICS;
- }
- }
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- if(errn == 0) {
- /* valid EE for simple element START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MeasurementData) ? */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(eventCode == 0) {
- grammarID = 333;
- } 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 333:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MeasurementData), END_ELEMENT] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gSensorMeasurementsType->MeasurementData.arrayLen < v2gSensorMeasurementsType_MeasurementData_ARRAY_SIZE) {
- /* First(xsi:type)StartTag[CHARACTERS[UNSIGNED_INTEGER]] */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(errn == 0) {
- if(eventCode == 0) {
- errn = decodeUnsignedInteger16(stream, &v2gSensorMeasurementsType->MeasurementData.array[v2gSensorMeasurementsType->MeasurementData.arrayLen]);
- v2gSensorMeasurementsType->MeasurementData.arrayLen++;
- } else {
- /* Second level event (e.g., xsi:type, xsi:nil, ...) */
- errn = EXI_UNSUPPORTED_EVENT_CODE_CHARACTERISTICS;
- }
- }
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- if(errn == 0) {
- /* valid EE for simple element START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MeasurementData) ? */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(eventCode == 0) {
- grammarID = 334;
- } 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 334:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MeasurementData), END_ELEMENT] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gSensorMeasurementsType->MeasurementData.arrayLen < v2gSensorMeasurementsType_MeasurementData_ARRAY_SIZE) {
- /* First(xsi:type)StartTag[CHARACTERS[UNSIGNED_INTEGER]] */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(errn == 0) {
- if(eventCode == 0) {
- errn = decodeUnsignedInteger16(stream, &v2gSensorMeasurementsType->MeasurementData.array[v2gSensorMeasurementsType->MeasurementData.arrayLen]);
- v2gSensorMeasurementsType->MeasurementData.arrayLen++;
- } else {
- /* Second level event (e.g., xsi:type, xsi:nil, ...) */
- errn = EXI_UNSUPPORTED_EVENT_CODE_CHARACTERISTICS;
- }
- }
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- if(errn == 0) {
- /* valid EE for simple element START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MeasurementData) ? */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(eventCode == 0) {
- grammarID = 335;
- } 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 335:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MeasurementData), END_ELEMENT] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gSensorMeasurementsType->MeasurementData.arrayLen < v2gSensorMeasurementsType_MeasurementData_ARRAY_SIZE) {
- /* First(xsi:type)StartTag[CHARACTERS[UNSIGNED_INTEGER]] */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(errn == 0) {
- if(eventCode == 0) {
- errn = decodeUnsignedInteger16(stream, &v2gSensorMeasurementsType->MeasurementData.array[v2gSensorMeasurementsType->MeasurementData.arrayLen]);
- v2gSensorMeasurementsType->MeasurementData.arrayLen++;
- } else {
- /* Second level event (e.g., xsi:type, xsi:nil, ...) */
- errn = EXI_UNSUPPORTED_EVENT_CODE_CHARACTERISTICS;
- }
- }
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- if(errn == 0) {
- /* valid EE for simple element START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MeasurementData) ? */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(eventCode == 0) {
- grammarID = 336;
- } 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 336:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MeasurementData), END_ELEMENT] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gSensorMeasurementsType->MeasurementData.arrayLen < v2gSensorMeasurementsType_MeasurementData_ARRAY_SIZE) {
- /* First(xsi:type)StartTag[CHARACTERS[UNSIGNED_INTEGER]] */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(errn == 0) {
- if(eventCode == 0) {
- errn = decodeUnsignedInteger16(stream, &v2gSensorMeasurementsType->MeasurementData.array[v2gSensorMeasurementsType->MeasurementData.arrayLen]);
- v2gSensorMeasurementsType->MeasurementData.arrayLen++;
- } else {
- /* Second level event (e.g., xsi:type, xsi:nil, ...) */
- errn = EXI_UNSUPPORTED_EVENT_CODE_CHARACTERISTICS;
- }
- }
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- if(errn == 0) {
- /* valid EE for simple element START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MeasurementData) ? */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(eventCode == 0) {
- grammarID = 337;
- } 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 337:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MeasurementData), END_ELEMENT] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gSensorMeasurementsType->MeasurementData.arrayLen < v2gSensorMeasurementsType_MeasurementData_ARRAY_SIZE) {
- /* First(xsi:type)StartTag[CHARACTERS[UNSIGNED_INTEGER]] */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(errn == 0) {
- if(eventCode == 0) {
- errn = decodeUnsignedInteger16(stream, &v2gSensorMeasurementsType->MeasurementData.array[v2gSensorMeasurementsType->MeasurementData.arrayLen]);
- v2gSensorMeasurementsType->MeasurementData.arrayLen++;
- } else {
- /* Second level event (e.g., xsi:type, xsi:nil, ...) */
- errn = EXI_UNSUPPORTED_EVENT_CODE_CHARACTERISTICS;
- }
- }
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- if(errn == 0) {
- /* valid EE for simple element START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MeasurementData) ? */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(eventCode == 0) {
- grammarID = 338;
- } 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 338:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MeasurementData), END_ELEMENT] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gSensorMeasurementsType->MeasurementData.arrayLen < v2gSensorMeasurementsType_MeasurementData_ARRAY_SIZE) {
- /* First(xsi:type)StartTag[CHARACTERS[UNSIGNED_INTEGER]] */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(errn == 0) {
- if(eventCode == 0) {
- errn = decodeUnsignedInteger16(stream, &v2gSensorMeasurementsType->MeasurementData.array[v2gSensorMeasurementsType->MeasurementData.arrayLen]);
- v2gSensorMeasurementsType->MeasurementData.arrayLen++;
- } else {
- /* Second level event (e.g., xsi:type, xsi:nil, ...) */
- errn = EXI_UNSUPPORTED_EVENT_CODE_CHARACTERISTICS;
- }
- }
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- if(errn == 0) {
- /* valid EE for simple element START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MeasurementData) ? */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(eventCode == 0) {
- grammarID = 339;
- } 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 339:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MeasurementData), END_ELEMENT] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gSensorMeasurementsType->MeasurementData.arrayLen < v2gSensorMeasurementsType_MeasurementData_ARRAY_SIZE) {
- /* First(xsi:type)StartTag[CHARACTERS[UNSIGNED_INTEGER]] */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(errn == 0) {
- if(eventCode == 0) {
- errn = decodeUnsignedInteger16(stream, &v2gSensorMeasurementsType->MeasurementData.array[v2gSensorMeasurementsType->MeasurementData.arrayLen]);
- v2gSensorMeasurementsType->MeasurementData.arrayLen++;
- } else {
- /* Second level event (e.g., xsi:type, xsi:nil, ...) */
- errn = EXI_UNSUPPORTED_EVENT_CODE_CHARACTERISTICS;
- }
- }
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- if(errn == 0) {
- /* valid EE for simple element START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MeasurementData) ? */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(eventCode == 0) {
- grammarID = 340;
- } 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 340:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MeasurementData), END_ELEMENT] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gSensorMeasurementsType->MeasurementData.arrayLen < v2gSensorMeasurementsType_MeasurementData_ARRAY_SIZE) {
- /* First(xsi:type)StartTag[CHARACTERS[UNSIGNED_INTEGER]] */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(errn == 0) {
- if(eventCode == 0) {
- errn = decodeUnsignedInteger16(stream, &v2gSensorMeasurementsType->MeasurementData.array[v2gSensorMeasurementsType->MeasurementData.arrayLen]);
- v2gSensorMeasurementsType->MeasurementData.arrayLen++;
- } else {
- /* Second level event (e.g., xsi:type, xsi:nil, ...) */
- errn = EXI_UNSUPPORTED_EVENT_CODE_CHARACTERISTICS;
- }
- }
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- if(errn == 0) {
- /* valid EE for simple element START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MeasurementData) ? */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(eventCode == 0) {
- grammarID = 341;
- } 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 341:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MeasurementData), END_ELEMENT] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gSensorMeasurementsType->MeasurementData.arrayLen < v2gSensorMeasurementsType_MeasurementData_ARRAY_SIZE) {
- /* First(xsi:type)StartTag[CHARACTERS[UNSIGNED_INTEGER]] */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(errn == 0) {
- if(eventCode == 0) {
- errn = decodeUnsignedInteger16(stream, &v2gSensorMeasurementsType->MeasurementData.array[v2gSensorMeasurementsType->MeasurementData.arrayLen]);
- v2gSensorMeasurementsType->MeasurementData.arrayLen++;
- } else {
- /* Second level event (e.g., xsi:type, xsi:nil, ...) */
- errn = EXI_UNSUPPORTED_EVENT_CODE_CHARACTERISTICS;
- }
- }
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- if(errn == 0) {
- /* valid EE for simple element START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MeasurementData) ? */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(eventCode == 0) {
- grammarID = 342;
- } 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 342:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MeasurementData), END_ELEMENT] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gSensorMeasurementsType->MeasurementData.arrayLen < v2gSensorMeasurementsType_MeasurementData_ARRAY_SIZE) {
- /* First(xsi:type)StartTag[CHARACTERS[UNSIGNED_INTEGER]] */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(errn == 0) {
- if(eventCode == 0) {
- errn = decodeUnsignedInteger16(stream, &v2gSensorMeasurementsType->MeasurementData.array[v2gSensorMeasurementsType->MeasurementData.arrayLen]);
- v2gSensorMeasurementsType->MeasurementData.arrayLen++;
- } else {
- /* Second level event (e.g., xsi:type, xsi:nil, ...) */
- errn = EXI_UNSUPPORTED_EVENT_CODE_CHARACTERISTICS;
- }
- }
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- if(errn == 0) {
- /* valid EE for simple element START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MeasurementData) ? */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(eventCode == 0) {
- grammarID = 343;
- } 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 343:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MeasurementData), END_ELEMENT] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gSensorMeasurementsType->MeasurementData.arrayLen < v2gSensorMeasurementsType_MeasurementData_ARRAY_SIZE) {
- /* First(xsi:type)StartTag[CHARACTERS[UNSIGNED_INTEGER]] */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(errn == 0) {
- if(eventCode == 0) {
- errn = decodeUnsignedInteger16(stream, &v2gSensorMeasurementsType->MeasurementData.array[v2gSensorMeasurementsType->MeasurementData.arrayLen]);
- v2gSensorMeasurementsType->MeasurementData.arrayLen++;
- } else {
- /* Second level event (e.g., xsi:type, xsi:nil, ...) */
- errn = EXI_UNSUPPORTED_EVENT_CODE_CHARACTERISTICS;
- }
- }
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- if(errn == 0) {
- /* valid EE for simple element START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MeasurementData) ? */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(eventCode == 0) {
- grammarID = 344;
- } 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 344:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MeasurementData), END_ELEMENT] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gSensorMeasurementsType->MeasurementData.arrayLen < v2gSensorMeasurementsType_MeasurementData_ARRAY_SIZE) {
- /* First(xsi:type)StartTag[CHARACTERS[UNSIGNED_INTEGER]] */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(errn == 0) {
- if(eventCode == 0) {
- errn = decodeUnsignedInteger16(stream, &v2gSensorMeasurementsType->MeasurementData.array[v2gSensorMeasurementsType->MeasurementData.arrayLen]);
- v2gSensorMeasurementsType->MeasurementData.arrayLen++;
- } else {
- /* Second level event (e.g., xsi:type, xsi:nil, ...) */
- errn = EXI_UNSUPPORTED_EVENT_CODE_CHARACTERISTICS;
- }
- }
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- if(errn == 0) {
- /* valid EE for simple element START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MeasurementData) ? */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(eventCode == 0) {
- grammarID = 345;
- } 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 345:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MeasurementData), END_ELEMENT] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gSensorMeasurementsType->MeasurementData.arrayLen < v2gSensorMeasurementsType_MeasurementData_ARRAY_SIZE) {
- /* First(xsi:type)StartTag[CHARACTERS[UNSIGNED_INTEGER]] */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(errn == 0) {
- if(eventCode == 0) {
- errn = decodeUnsignedInteger16(stream, &v2gSensorMeasurementsType->MeasurementData.array[v2gSensorMeasurementsType->MeasurementData.arrayLen]);
- v2gSensorMeasurementsType->MeasurementData.arrayLen++;
- } else {
- /* Second level event (e.g., xsi:type, xsi:nil, ...) */
- errn = EXI_UNSUPPORTED_EVENT_CODE_CHARACTERISTICS;
- }
- }
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- if(errn == 0) {
- /* valid EE for simple element START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MeasurementData) ? */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(eventCode == 0) {
- grammarID = 346;
- } 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 346:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MeasurementData), END_ELEMENT] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gSensorMeasurementsType->MeasurementData.arrayLen < v2gSensorMeasurementsType_MeasurementData_ARRAY_SIZE) {
- /* First(xsi:type)StartTag[CHARACTERS[UNSIGNED_INTEGER]] */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(errn == 0) {
- if(eventCode == 0) {
- errn = decodeUnsignedInteger16(stream, &v2gSensorMeasurementsType->MeasurementData.array[v2gSensorMeasurementsType->MeasurementData.arrayLen]);
- v2gSensorMeasurementsType->MeasurementData.arrayLen++;
- } else {
- /* Second level event (e.g., xsi:type, xsi:nil, ...) */
- errn = EXI_UNSUPPORTED_EVENT_CODE_CHARACTERISTICS;
- }
- }
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- if(errn == 0) {
- /* valid EE for simple element START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MeasurementData) ? */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(eventCode == 0) {
- grammarID = 347;
- } 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 347:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MeasurementData), END_ELEMENT] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gSensorMeasurementsType->MeasurementData.arrayLen < v2gSensorMeasurementsType_MeasurementData_ARRAY_SIZE) {
- /* First(xsi:type)StartTag[CHARACTERS[UNSIGNED_INTEGER]] */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(errn == 0) {
- if(eventCode == 0) {
- errn = decodeUnsignedInteger16(stream, &v2gSensorMeasurementsType->MeasurementData.array[v2gSensorMeasurementsType->MeasurementData.arrayLen]);
- v2gSensorMeasurementsType->MeasurementData.arrayLen++;
- } else {
- /* Second level event (e.g., xsi:type, xsi:nil, ...) */
- errn = EXI_UNSUPPORTED_EVENT_CODE_CHARACTERISTICS;
- }
- }
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- if(errn == 0) {
- /* valid EE for simple element START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MeasurementData) ? */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(eventCode == 0) {
- grammarID = 348;
- } 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 348:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MeasurementData), END_ELEMENT] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gSensorMeasurementsType->MeasurementData.arrayLen < v2gSensorMeasurementsType_MeasurementData_ARRAY_SIZE) {
- /* First(xsi:type)StartTag[CHARACTERS[UNSIGNED_INTEGER]] */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(errn == 0) {
- if(eventCode == 0) {
- errn = decodeUnsignedInteger16(stream, &v2gSensorMeasurementsType->MeasurementData.array[v2gSensorMeasurementsType->MeasurementData.arrayLen]);
- v2gSensorMeasurementsType->MeasurementData.arrayLen++;
- } else {
- /* Second level event (e.g., xsi:type, xsi:nil, ...) */
- errn = EXI_UNSUPPORTED_EVENT_CODE_CHARACTERISTICS;
- }
- }
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- if(errn == 0) {
- /* valid EE for simple element START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MeasurementData) ? */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(eventCode == 0) {
- grammarID = 349;
- } 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 349:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MeasurementData), END_ELEMENT] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gSensorMeasurementsType->MeasurementData.arrayLen < v2gSensorMeasurementsType_MeasurementData_ARRAY_SIZE) {
- /* First(xsi:type)StartTag[CHARACTERS[UNSIGNED_INTEGER]] */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(errn == 0) {
- if(eventCode == 0) {
- errn = decodeUnsignedInteger16(stream, &v2gSensorMeasurementsType->MeasurementData.array[v2gSensorMeasurementsType->MeasurementData.arrayLen]);
- v2gSensorMeasurementsType->MeasurementData.arrayLen++;
- } else {
- /* Second level event (e.g., xsi:type, xsi:nil, ...) */
- errn = EXI_UNSUPPORTED_EVENT_CODE_CHARACTERISTICS;
- }
- }
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- if(errn == 0) {
- /* valid EE for simple element START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MeasurementData) ? */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(eventCode == 0) {
- grammarID = 350;
- } 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 350:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MeasurementData), END_ELEMENT] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gSensorMeasurementsType->MeasurementData.arrayLen < v2gSensorMeasurementsType_MeasurementData_ARRAY_SIZE) {
- /* First(xsi:type)StartTag[CHARACTERS[UNSIGNED_INTEGER]] */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(errn == 0) {
- if(eventCode == 0) {
- errn = decodeUnsignedInteger16(stream, &v2gSensorMeasurementsType->MeasurementData.array[v2gSensorMeasurementsType->MeasurementData.arrayLen]);
- v2gSensorMeasurementsType->MeasurementData.arrayLen++;
- } else {
- /* Second level event (e.g., xsi:type, xsi:nil, ...) */
- errn = EXI_UNSUPPORTED_EVENT_CODE_CHARACTERISTICS;
- }
- }
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- if(errn == 0) {
- /* valid EE for simple element START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MeasurementData) ? */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(eventCode == 0) {
- grammarID = 351;
- } 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 351:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MeasurementData), END_ELEMENT] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gSensorMeasurementsType->MeasurementData.arrayLen < v2gSensorMeasurementsType_MeasurementData_ARRAY_SIZE) {
- /* First(xsi:type)StartTag[CHARACTERS[UNSIGNED_INTEGER]] */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(errn == 0) {
- if(eventCode == 0) {
- errn = decodeUnsignedInteger16(stream, &v2gSensorMeasurementsType->MeasurementData.array[v2gSensorMeasurementsType->MeasurementData.arrayLen]);
- v2gSensorMeasurementsType->MeasurementData.arrayLen++;
- } else {
- /* Second level event (e.g., xsi:type, xsi:nil, ...) */
- errn = EXI_UNSUPPORTED_EVENT_CODE_CHARACTERISTICS;
- }
- }
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- if(errn == 0) {
- /* valid EE for simple element START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MeasurementData) ? */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(eventCode == 0) {
- grammarID = 352;
- } 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 352:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MeasurementData), END_ELEMENT] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gSensorMeasurementsType->MeasurementData.arrayLen < v2gSensorMeasurementsType_MeasurementData_ARRAY_SIZE) {
- /* First(xsi:type)StartTag[CHARACTERS[UNSIGNED_INTEGER]] */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(errn == 0) {
- if(eventCode == 0) {
- errn = decodeUnsignedInteger16(stream, &v2gSensorMeasurementsType->MeasurementData.array[v2gSensorMeasurementsType->MeasurementData.arrayLen]);
- v2gSensorMeasurementsType->MeasurementData.arrayLen++;
- } else {
- /* Second level event (e.g., xsi:type, xsi:nil, ...) */
- errn = EXI_UNSUPPORTED_EVENT_CODE_CHARACTERISTICS;
- }
- }
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- if(errn == 0) {
- /* valid EE for simple element START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MeasurementData) ? */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(eventCode == 0) {
- grammarID = 353;
- } 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 353:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MeasurementData), END_ELEMENT] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gSensorMeasurementsType->MeasurementData.arrayLen < v2gSensorMeasurementsType_MeasurementData_ARRAY_SIZE) {
- /* First(xsi:type)StartTag[CHARACTERS[UNSIGNED_INTEGER]] */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(errn == 0) {
- if(eventCode == 0) {
- errn = decodeUnsignedInteger16(stream, &v2gSensorMeasurementsType->MeasurementData.array[v2gSensorMeasurementsType->MeasurementData.arrayLen]);
- v2gSensorMeasurementsType->MeasurementData.arrayLen++;
- } else {
- /* Second level event (e.g., xsi:type, xsi:nil, ...) */
- errn = EXI_UNSUPPORTED_EVENT_CODE_CHARACTERISTICS;
- }
- }
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- if(errn == 0) {
- /* valid EE for simple element START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MeasurementData) ? */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(eventCode == 0) {
- grammarID = 354;
- } 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 354:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MeasurementData), END_ELEMENT] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gSensorMeasurementsType->MeasurementData.arrayLen < v2gSensorMeasurementsType_MeasurementData_ARRAY_SIZE) {
- /* First(xsi:type)StartTag[CHARACTERS[UNSIGNED_INTEGER]] */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(errn == 0) {
- if(eventCode == 0) {
- errn = decodeUnsignedInteger16(stream, &v2gSensorMeasurementsType->MeasurementData.array[v2gSensorMeasurementsType->MeasurementData.arrayLen]);
- v2gSensorMeasurementsType->MeasurementData.arrayLen++;
- } else {
- /* Second level event (e.g., xsi:type, xsi:nil, ...) */
- errn = EXI_UNSUPPORTED_EVENT_CODE_CHARACTERISTICS;
- }
- }
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- if(errn == 0) {
- /* valid EE for simple element START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MeasurementData) ? */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(eventCode == 0) {
- grammarID = 355;
- } 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 355:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MeasurementData), END_ELEMENT] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gSensorMeasurementsType->MeasurementData.arrayLen < v2gSensorMeasurementsType_MeasurementData_ARRAY_SIZE) {
- /* First(xsi:type)StartTag[CHARACTERS[UNSIGNED_INTEGER]] */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(errn == 0) {
- if(eventCode == 0) {
- errn = decodeUnsignedInteger16(stream, &v2gSensorMeasurementsType->MeasurementData.array[v2gSensorMeasurementsType->MeasurementData.arrayLen]);
- v2gSensorMeasurementsType->MeasurementData.arrayLen++;
- } else {
- /* Second level event (e.g., xsi:type, xsi:nil, ...) */
- errn = EXI_UNSUPPORTED_EVENT_CODE_CHARACTERISTICS;
- }
- }
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- if(errn == 0) {
- /* valid EE for simple element START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MeasurementData) ? */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(eventCode == 0) {
- grammarID = 356;
- } 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 356:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MeasurementData), END_ELEMENT] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gSensorMeasurementsType->MeasurementData.arrayLen < v2gSensorMeasurementsType_MeasurementData_ARRAY_SIZE) {
- /* First(xsi:type)StartTag[CHARACTERS[UNSIGNED_INTEGER]] */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(errn == 0) {
- if(eventCode == 0) {
- errn = decodeUnsignedInteger16(stream, &v2gSensorMeasurementsType->MeasurementData.array[v2gSensorMeasurementsType->MeasurementData.arrayLen]);
- v2gSensorMeasurementsType->MeasurementData.arrayLen++;
- } else {
- /* Second level event (e.g., xsi:type, xsi:nil, ...) */
- errn = EXI_UNSUPPORTED_EVENT_CODE_CHARACTERISTICS;
- }
- }
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- if(errn == 0) {
- /* valid EE for simple element START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MeasurementData) ? */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(eventCode == 0) {
- grammarID = 357;
- } 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 357:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MeasurementData), END_ELEMENT] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gSensorMeasurementsType->MeasurementData.arrayLen < v2gSensorMeasurementsType_MeasurementData_ARRAY_SIZE) {
- /* First(xsi:type)StartTag[CHARACTERS[UNSIGNED_INTEGER]] */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(errn == 0) {
- if(eventCode == 0) {
- errn = decodeUnsignedInteger16(stream, &v2gSensorMeasurementsType->MeasurementData.array[v2gSensorMeasurementsType->MeasurementData.arrayLen]);
- v2gSensorMeasurementsType->MeasurementData.arrayLen++;
- } else {
- /* Second level event (e.g., xsi:type, xsi:nil, ...) */
- errn = EXI_UNSUPPORTED_EVENT_CODE_CHARACTERISTICS;
- }
- }
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- if(errn == 0) {
- /* valid EE for simple element START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MeasurementData) ? */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(eventCode == 0) {
- grammarID = 358;
- } 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 358:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MeasurementData), END_ELEMENT] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gSensorMeasurementsType->MeasurementData.arrayLen < v2gSensorMeasurementsType_MeasurementData_ARRAY_SIZE) {
- /* First(xsi:type)StartTag[CHARACTERS[UNSIGNED_INTEGER]] */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(errn == 0) {
- if(eventCode == 0) {
- errn = decodeUnsignedInteger16(stream, &v2gSensorMeasurementsType->MeasurementData.array[v2gSensorMeasurementsType->MeasurementData.arrayLen]);
- v2gSensorMeasurementsType->MeasurementData.arrayLen++;
- } else {
- /* Second level event (e.g., xsi:type, xsi:nil, ...) */
- errn = EXI_UNSUPPORTED_EVENT_CODE_CHARACTERISTICS;
- }
- }
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- if(errn == 0) {
- /* valid EE for simple element START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MeasurementData) ? */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(eventCode == 0) {
- grammarID = 359;
- } 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 359:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MeasurementData), END_ELEMENT] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gSensorMeasurementsType->MeasurementData.arrayLen < v2gSensorMeasurementsType_MeasurementData_ARRAY_SIZE) {
- /* First(xsi:type)StartTag[CHARACTERS[UNSIGNED_INTEGER]] */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(errn == 0) {
- if(eventCode == 0) {
- errn = decodeUnsignedInteger16(stream, &v2gSensorMeasurementsType->MeasurementData.array[v2gSensorMeasurementsType->MeasurementData.arrayLen]);
- v2gSensorMeasurementsType->MeasurementData.arrayLen++;
- } else {
- /* Second level event (e.g., xsi:type, xsi:nil, ...) */
- errn = EXI_UNSUPPORTED_EVENT_CODE_CHARACTERISTICS;
- }
- }
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- if(errn == 0) {
- /* valid EE for simple element START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MeasurementData) ? */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(eventCode == 0) {
- grammarID = 360;
- } 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 360:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MeasurementData), END_ELEMENT] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gSensorMeasurementsType->MeasurementData.arrayLen < v2gSensorMeasurementsType_MeasurementData_ARRAY_SIZE) {
- /* First(xsi:type)StartTag[CHARACTERS[UNSIGNED_INTEGER]] */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(errn == 0) {
- if(eventCode == 0) {
- errn = decodeUnsignedInteger16(stream, &v2gSensorMeasurementsType->MeasurementData.array[v2gSensorMeasurementsType->MeasurementData.arrayLen]);
- v2gSensorMeasurementsType->MeasurementData.arrayLen++;
- } else {
- /* Second level event (e.g., xsi:type, xsi:nil, ...) */
- errn = EXI_UNSUPPORTED_EVENT_CODE_CHARACTERISTICS;
- }
- }
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- if(errn == 0) {
- /* valid EE for simple element START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MeasurementData) ? */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(eventCode == 0) {
- grammarID = 361;
- } 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 361:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MeasurementData), END_ELEMENT] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gSensorMeasurementsType->MeasurementData.arrayLen < v2gSensorMeasurementsType_MeasurementData_ARRAY_SIZE) {
- /* First(xsi:type)StartTag[CHARACTERS[UNSIGNED_INTEGER]] */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(errn == 0) {
- if(eventCode == 0) {
- errn = decodeUnsignedInteger16(stream, &v2gSensorMeasurementsType->MeasurementData.array[v2gSensorMeasurementsType->MeasurementData.arrayLen]);
- v2gSensorMeasurementsType->MeasurementData.arrayLen++;
- } else {
- /* Second level event (e.g., xsi:type, xsi:nil, ...) */
- errn = EXI_UNSUPPORTED_EVENT_CODE_CHARACTERISTICS;
- }
- }
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- if(errn == 0) {
- /* valid EE for simple element START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MeasurementData) ? */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(eventCode == 0) {
- grammarID = 362;
- } 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 362:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MeasurementData), END_ELEMENT] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gSensorMeasurementsType->MeasurementData.arrayLen < v2gSensorMeasurementsType_MeasurementData_ARRAY_SIZE) {
- /* First(xsi:type)StartTag[CHARACTERS[UNSIGNED_INTEGER]] */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(errn == 0) {
- if(eventCode == 0) {
- errn = decodeUnsignedInteger16(stream, &v2gSensorMeasurementsType->MeasurementData.array[v2gSensorMeasurementsType->MeasurementData.arrayLen]);
- v2gSensorMeasurementsType->MeasurementData.arrayLen++;
- } else {
- /* Second level event (e.g., xsi:type, xsi:nil, ...) */
- errn = EXI_UNSUPPORTED_EVENT_CODE_CHARACTERISTICS;
- }
- }
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- if(errn == 0) {
- /* valid EE for simple element START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MeasurementData) ? */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(eventCode == 0) {
- grammarID = 363;
- } 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 363:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MeasurementData), END_ELEMENT] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gSensorMeasurementsType->MeasurementData.arrayLen < v2gSensorMeasurementsType_MeasurementData_ARRAY_SIZE) {
- /* First(xsi:type)StartTag[CHARACTERS[UNSIGNED_INTEGER]] */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(errn == 0) {
- if(eventCode == 0) {
- errn = decodeUnsignedInteger16(stream, &v2gSensorMeasurementsType->MeasurementData.array[v2gSensorMeasurementsType->MeasurementData.arrayLen]);
- v2gSensorMeasurementsType->MeasurementData.arrayLen++;
- } else {
- /* Second level event (e.g., xsi:type, xsi:nil, ...) */
- errn = EXI_UNSUPPORTED_EVENT_CODE_CHARACTERISTICS;
- }
- }
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- if(errn == 0) {
- /* valid EE for simple element START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MeasurementData) ? */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(eventCode == 0) {
- grammarID = 364;
- } 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 364:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MeasurementData), END_ELEMENT] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gSensorMeasurementsType->MeasurementData.arrayLen < v2gSensorMeasurementsType_MeasurementData_ARRAY_SIZE) {
- /* First(xsi:type)StartTag[CHARACTERS[UNSIGNED_INTEGER]] */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(errn == 0) {
- if(eventCode == 0) {
- errn = decodeUnsignedInteger16(stream, &v2gSensorMeasurementsType->MeasurementData.array[v2gSensorMeasurementsType->MeasurementData.arrayLen]);
- v2gSensorMeasurementsType->MeasurementData.arrayLen++;
- } else {
- /* Second level event (e.g., xsi:type, xsi:nil, ...) */
- errn = EXI_UNSUPPORTED_EVENT_CODE_CHARACTERISTICS;
- }
- }
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- if(errn == 0) {
- /* valid EE for simple element START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MeasurementData) ? */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(eventCode == 0) {
- grammarID = 365;
- } 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 365:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MeasurementData), END_ELEMENT] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gSensorMeasurementsType->MeasurementData.arrayLen < v2gSensorMeasurementsType_MeasurementData_ARRAY_SIZE) {
- /* First(xsi:type)StartTag[CHARACTERS[UNSIGNED_INTEGER]] */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(errn == 0) {
- if(eventCode == 0) {
- errn = decodeUnsignedInteger16(stream, &v2gSensorMeasurementsType->MeasurementData.array[v2gSensorMeasurementsType->MeasurementData.arrayLen]);
- v2gSensorMeasurementsType->MeasurementData.arrayLen++;
- } else {
- /* Second level event (e.g., xsi:type, xsi:nil, ...) */
- errn = EXI_UNSUPPORTED_EVENT_CODE_CHARACTERISTICS;
- }
- }
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- if(errn == 0) {
- /* valid EE for simple element START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MeasurementData) ? */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(eventCode == 0) {
- grammarID = 366;
- } 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 366:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MeasurementData), END_ELEMENT] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gSensorMeasurementsType->MeasurementData.arrayLen < v2gSensorMeasurementsType_MeasurementData_ARRAY_SIZE) {
- /* First(xsi:type)StartTag[CHARACTERS[UNSIGNED_INTEGER]] */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(errn == 0) {
- if(eventCode == 0) {
- errn = decodeUnsignedInteger16(stream, &v2gSensorMeasurementsType->MeasurementData.array[v2gSensorMeasurementsType->MeasurementData.arrayLen]);
- v2gSensorMeasurementsType->MeasurementData.arrayLen++;
- } else {
- /* Second level event (e.g., xsi:type, xsi:nil, ...) */
- errn = EXI_UNSUPPORTED_EVENT_CODE_CHARACTERISTICS;
- }
- }
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- if(errn == 0) {
- /* valid EE for simple element START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MeasurementData) ? */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(eventCode == 0) {
- grammarID = 367;
- } 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 367:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MeasurementData), END_ELEMENT] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gSensorMeasurementsType->MeasurementData.arrayLen < v2gSensorMeasurementsType_MeasurementData_ARRAY_SIZE) {
- /* First(xsi:type)StartTag[CHARACTERS[UNSIGNED_INTEGER]] */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(errn == 0) {
- if(eventCode == 0) {
- errn = decodeUnsignedInteger16(stream, &v2gSensorMeasurementsType->MeasurementData.array[v2gSensorMeasurementsType->MeasurementData.arrayLen]);
- v2gSensorMeasurementsType->MeasurementData.arrayLen++;
- } else {
- /* Second level event (e.g., xsi:type, xsi:nil, ...) */
- errn = EXI_UNSUPPORTED_EVENT_CODE_CHARACTERISTICS;
- }
- }
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- if(errn == 0) {
- /* valid EE for simple element START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MeasurementData) ? */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(eventCode == 0) {
- grammarID = 368;
- } 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 368:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MeasurementData), END_ELEMENT] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gSensorMeasurementsType->MeasurementData.arrayLen < v2gSensorMeasurementsType_MeasurementData_ARRAY_SIZE) {
- /* First(xsi:type)StartTag[CHARACTERS[UNSIGNED_INTEGER]] */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(errn == 0) {
- if(eventCode == 0) {
- errn = decodeUnsignedInteger16(stream, &v2gSensorMeasurementsType->MeasurementData.array[v2gSensorMeasurementsType->MeasurementData.arrayLen]);
- v2gSensorMeasurementsType->MeasurementData.arrayLen++;
- } else {
- /* Second level event (e.g., xsi:type, xsi:nil, ...) */
- errn = EXI_UNSUPPORTED_EVENT_CODE_CHARACTERISTICS;
- }
- }
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- if(errn == 0) {
- /* valid EE for simple element START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MeasurementData) ? */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(eventCode == 0) {
- grammarID = 369;
- } 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 369:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MeasurementData), END_ELEMENT] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gSensorMeasurementsType->MeasurementData.arrayLen < v2gSensorMeasurementsType_MeasurementData_ARRAY_SIZE) {
- /* First(xsi:type)StartTag[CHARACTERS[UNSIGNED_INTEGER]] */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(errn == 0) {
- if(eventCode == 0) {
- errn = decodeUnsignedInteger16(stream, &v2gSensorMeasurementsType->MeasurementData.array[v2gSensorMeasurementsType->MeasurementData.arrayLen]);
- v2gSensorMeasurementsType->MeasurementData.arrayLen++;
- } else {
- /* Second level event (e.g., xsi:type, xsi:nil, ...) */
- errn = EXI_UNSUPPORTED_EVENT_CODE_CHARACTERISTICS;
- }
- }
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- if(errn == 0) {
- /* valid EE for simple element START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MeasurementData) ? */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(eventCode == 0) {
- grammarID = 370;
- } 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 370:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MeasurementData), END_ELEMENT] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gSensorMeasurementsType->MeasurementData.arrayLen < v2gSensorMeasurementsType_MeasurementData_ARRAY_SIZE) {
- /* First(xsi:type)StartTag[CHARACTERS[UNSIGNED_INTEGER]] */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(errn == 0) {
- if(eventCode == 0) {
- errn = decodeUnsignedInteger16(stream, &v2gSensorMeasurementsType->MeasurementData.array[v2gSensorMeasurementsType->MeasurementData.arrayLen]);
- v2gSensorMeasurementsType->MeasurementData.arrayLen++;
- } else {
- /* Second level event (e.g., xsi:type, xsi:nil, ...) */
- errn = EXI_UNSUPPORTED_EVENT_CODE_CHARACTERISTICS;
- }
- }
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- if(errn == 0) {
- /* valid EE for simple element START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MeasurementData) ? */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(eventCode == 0) {
- grammarID = 371;
- } 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 371:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MeasurementData), END_ELEMENT] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gSensorMeasurementsType->MeasurementData.arrayLen < v2gSensorMeasurementsType_MeasurementData_ARRAY_SIZE) {
- /* First(xsi:type)StartTag[CHARACTERS[UNSIGNED_INTEGER]] */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(errn == 0) {
- if(eventCode == 0) {
- errn = decodeUnsignedInteger16(stream, &v2gSensorMeasurementsType->MeasurementData.array[v2gSensorMeasurementsType->MeasurementData.arrayLen]);
- v2gSensorMeasurementsType->MeasurementData.arrayLen++;
- } else {
- /* Second level event (e.g., xsi:type, xsi:nil, ...) */
- errn = EXI_UNSUPPORTED_EVENT_CODE_CHARACTERISTICS;
- }
- }
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- if(errn == 0) {
- /* valid EE for simple element START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MeasurementData) ? */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(eventCode == 0) {
- grammarID = 372;
- } 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 372:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MeasurementData), END_ELEMENT] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gSensorMeasurementsType->MeasurementData.arrayLen < v2gSensorMeasurementsType_MeasurementData_ARRAY_SIZE) {
- /* First(xsi:type)StartTag[CHARACTERS[UNSIGNED_INTEGER]] */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(errn == 0) {
- if(eventCode == 0) {
- errn = decodeUnsignedInteger16(stream, &v2gSensorMeasurementsType->MeasurementData.array[v2gSensorMeasurementsType->MeasurementData.arrayLen]);
- v2gSensorMeasurementsType->MeasurementData.arrayLen++;
- } else {
- /* Second level event (e.g., xsi:type, xsi:nil, ...) */
- errn = EXI_UNSUPPORTED_EVENT_CODE_CHARACTERISTICS;
- }
- }
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- if(errn == 0) {
- /* valid EE for simple element START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MeasurementData) ? */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(eventCode == 0) {
- grammarID = 373;
- } 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 373:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MeasurementData), END_ELEMENT] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gSensorMeasurementsType->MeasurementData.arrayLen < v2gSensorMeasurementsType_MeasurementData_ARRAY_SIZE) {
- /* First(xsi:type)StartTag[CHARACTERS[UNSIGNED_INTEGER]] */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(errn == 0) {
- if(eventCode == 0) {
- errn = decodeUnsignedInteger16(stream, &v2gSensorMeasurementsType->MeasurementData.array[v2gSensorMeasurementsType->MeasurementData.arrayLen]);
- v2gSensorMeasurementsType->MeasurementData.arrayLen++;
- } else {
- /* Second level event (e.g., xsi:type, xsi:nil, ...) */
- errn = EXI_UNSUPPORTED_EVENT_CODE_CHARACTERISTICS;
- }
- }
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- if(errn == 0) {
- /* valid EE for simple element START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MeasurementData) ? */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(eventCode == 0) {
- grammarID = 374;
- } 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 374:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MeasurementData), END_ELEMENT] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gSensorMeasurementsType->MeasurementData.arrayLen < v2gSensorMeasurementsType_MeasurementData_ARRAY_SIZE) {
- /* First(xsi:type)StartTag[CHARACTERS[UNSIGNED_INTEGER]] */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(errn == 0) {
- if(eventCode == 0) {
- errn = decodeUnsignedInteger16(stream, &v2gSensorMeasurementsType->MeasurementData.array[v2gSensorMeasurementsType->MeasurementData.arrayLen]);
- v2gSensorMeasurementsType->MeasurementData.arrayLen++;
- } else {
- /* Second level event (e.g., xsi:type, xsi:nil, ...) */
- errn = EXI_UNSUPPORTED_EVENT_CODE_CHARACTERISTICS;
- }
- }
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- if(errn == 0) {
- /* valid EE for simple element START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MeasurementData) ? */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(eventCode == 0) {
- grammarID = 375;
- } 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 375:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MeasurementData), END_ELEMENT] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gSensorMeasurementsType->MeasurementData.arrayLen < v2gSensorMeasurementsType_MeasurementData_ARRAY_SIZE) {
- /* First(xsi:type)StartTag[CHARACTERS[UNSIGNED_INTEGER]] */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(errn == 0) {
- if(eventCode == 0) {
- errn = decodeUnsignedInteger16(stream, &v2gSensorMeasurementsType->MeasurementData.array[v2gSensorMeasurementsType->MeasurementData.arrayLen]);
- v2gSensorMeasurementsType->MeasurementData.arrayLen++;
- } else {
- /* Second level event (e.g., xsi:type, xsi:nil, ...) */
- errn = EXI_UNSUPPORTED_EVENT_CODE_CHARACTERISTICS;
- }
- }
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- if(errn == 0) {
- /* valid EE for simple element START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MeasurementData) ? */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(eventCode == 0) {
- grammarID = 376;
- } 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 376:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MeasurementData), END_ELEMENT] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gSensorMeasurementsType->MeasurementData.arrayLen < v2gSensorMeasurementsType_MeasurementData_ARRAY_SIZE) {
- /* First(xsi:type)StartTag[CHARACTERS[UNSIGNED_INTEGER]] */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(errn == 0) {
- if(eventCode == 0) {
- errn = decodeUnsignedInteger16(stream, &v2gSensorMeasurementsType->MeasurementData.array[v2gSensorMeasurementsType->MeasurementData.arrayLen]);
- v2gSensorMeasurementsType->MeasurementData.arrayLen++;
- } else {
- /* Second level event (e.g., xsi:type, xsi:nil, ...) */
- errn = EXI_UNSUPPORTED_EVENT_CODE_CHARACTERISTICS;
- }
- }
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- if(errn == 0) {
- /* valid EE for simple element START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MeasurementData) ? */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(eventCode == 0) {
- grammarID = 377;
- } 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 377:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MeasurementData), END_ELEMENT] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gSensorMeasurementsType->MeasurementData.arrayLen < v2gSensorMeasurementsType_MeasurementData_ARRAY_SIZE) {
- /* First(xsi:type)StartTag[CHARACTERS[UNSIGNED_INTEGER]] */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(errn == 0) {
- if(eventCode == 0) {
- errn = decodeUnsignedInteger16(stream, &v2gSensorMeasurementsType->MeasurementData.array[v2gSensorMeasurementsType->MeasurementData.arrayLen]);
- v2gSensorMeasurementsType->MeasurementData.arrayLen++;
- } else {
- /* Second level event (e.g., xsi:type, xsi:nil, ...) */
- errn = EXI_UNSUPPORTED_EVENT_CODE_CHARACTERISTICS;
- }
- }
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- if(errn == 0) {
- /* valid EE for simple element START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MeasurementData) ? */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(eventCode == 0) {
- grammarID = 378;
- } 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 378:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MeasurementData), END_ELEMENT] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gSensorMeasurementsType->MeasurementData.arrayLen < v2gSensorMeasurementsType_MeasurementData_ARRAY_SIZE) {
- /* First(xsi:type)StartTag[CHARACTERS[UNSIGNED_INTEGER]] */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(errn == 0) {
- if(eventCode == 0) {
- errn = decodeUnsignedInteger16(stream, &v2gSensorMeasurementsType->MeasurementData.array[v2gSensorMeasurementsType->MeasurementData.arrayLen]);
- v2gSensorMeasurementsType->MeasurementData.arrayLen++;
- } else {
- /* Second level event (e.g., xsi:type, xsi:nil, ...) */
- errn = EXI_UNSUPPORTED_EVENT_CODE_CHARACTERISTICS;
- }
- }
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- if(errn == 0) {
- /* valid EE for simple element START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MeasurementData) ? */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(eventCode == 0) {
- grammarID = 379;
- } 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 379:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MeasurementData), END_ELEMENT] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gSensorMeasurementsType->MeasurementData.arrayLen < v2gSensorMeasurementsType_MeasurementData_ARRAY_SIZE) {
- /* First(xsi:type)StartTag[CHARACTERS[UNSIGNED_INTEGER]] */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(errn == 0) {
- if(eventCode == 0) {
- errn = decodeUnsignedInteger16(stream, &v2gSensorMeasurementsType->MeasurementData.array[v2gSensorMeasurementsType->MeasurementData.arrayLen]);
- v2gSensorMeasurementsType->MeasurementData.arrayLen++;
- } else {
- /* Second level event (e.g., xsi:type, xsi:nil, ...) */
- errn = EXI_UNSUPPORTED_EVENT_CODE_CHARACTERISTICS;
- }
- }
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- if(errn == 0) {
- /* valid EE for simple element START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MeasurementData) ? */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(eventCode == 0) {
- grammarID = 380;
- } 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 380:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MeasurementData), END_ELEMENT] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gSensorMeasurementsType->MeasurementData.arrayLen < v2gSensorMeasurementsType_MeasurementData_ARRAY_SIZE) {
- /* First(xsi:type)StartTag[CHARACTERS[UNSIGNED_INTEGER]] */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(errn == 0) {
- if(eventCode == 0) {
- errn = decodeUnsignedInteger16(stream, &v2gSensorMeasurementsType->MeasurementData.array[v2gSensorMeasurementsType->MeasurementData.arrayLen]);
- v2gSensorMeasurementsType->MeasurementData.arrayLen++;
- } else {
- /* Second level event (e.g., xsi:type, xsi:nil, ...) */
- errn = EXI_UNSUPPORTED_EVENT_CODE_CHARACTERISTICS;
- }
- }
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- if(errn == 0) {
- /* valid EE for simple element START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MeasurementData) ? */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(eventCode == 0) {
- grammarID = 381;
- } 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 381:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MeasurementData), END_ELEMENT] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gSensorMeasurementsType->MeasurementData.arrayLen < v2gSensorMeasurementsType_MeasurementData_ARRAY_SIZE) {
- /* First(xsi:type)StartTag[CHARACTERS[UNSIGNED_INTEGER]] */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(errn == 0) {
- if(eventCode == 0) {
- errn = decodeUnsignedInteger16(stream, &v2gSensorMeasurementsType->MeasurementData.array[v2gSensorMeasurementsType->MeasurementData.arrayLen]);
- v2gSensorMeasurementsType->MeasurementData.arrayLen++;
- } else {
- /* Second level event (e.g., xsi:type, xsi:nil, ...) */
- errn = EXI_UNSUPPORTED_EVENT_CODE_CHARACTERISTICS;
- }
- }
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- if(errn == 0) {
- /* valid EE for simple element START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MeasurementData) ? */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(eventCode == 0) {
- grammarID = 382;
- } 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 382:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MeasurementData), END_ELEMENT] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gSensorMeasurementsType->MeasurementData.arrayLen < v2gSensorMeasurementsType_MeasurementData_ARRAY_SIZE) {
- /* First(xsi:type)StartTag[CHARACTERS[UNSIGNED_INTEGER]] */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(errn == 0) {
- if(eventCode == 0) {
- errn = decodeUnsignedInteger16(stream, &v2gSensorMeasurementsType->MeasurementData.array[v2gSensorMeasurementsType->MeasurementData.arrayLen]);
- v2gSensorMeasurementsType->MeasurementData.arrayLen++;
- } else {
- /* Second level event (e.g., xsi:type, xsi:nil, ...) */
- errn = EXI_UNSUPPORTED_EVENT_CODE_CHARACTERISTICS;
- }
- }
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- if(errn == 0) {
- /* valid EE for simple element START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MeasurementData) ? */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(eventCode == 0) {
- grammarID = 383;
- } 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 383:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MeasurementData), END_ELEMENT] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gSensorMeasurementsType->MeasurementData.arrayLen < v2gSensorMeasurementsType_MeasurementData_ARRAY_SIZE) {
- /* First(xsi:type)StartTag[CHARACTERS[UNSIGNED_INTEGER]] */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(errn == 0) {
- if(eventCode == 0) {
- errn = decodeUnsignedInteger16(stream, &v2gSensorMeasurementsType->MeasurementData.array[v2gSensorMeasurementsType->MeasurementData.arrayLen]);
- v2gSensorMeasurementsType->MeasurementData.arrayLen++;
- } else {
- /* Second level event (e.g., xsi:type, xsi:nil, ...) */
- errn = EXI_UNSUPPORTED_EVENT_CODE_CHARACTERISTICS;
- }
- }
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- if(errn == 0) {
- /* valid EE for simple element START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MeasurementData) ? */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(eventCode == 0) {
- grammarID = 384;
- } 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 384:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MeasurementData), END_ELEMENT] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gSensorMeasurementsType->MeasurementData.arrayLen < v2gSensorMeasurementsType_MeasurementData_ARRAY_SIZE) {
- /* First(xsi:type)StartTag[CHARACTERS[UNSIGNED_INTEGER]] */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(errn == 0) {
- if(eventCode == 0) {
- errn = decodeUnsignedInteger16(stream, &v2gSensorMeasurementsType->MeasurementData.array[v2gSensorMeasurementsType->MeasurementData.arrayLen]);
- v2gSensorMeasurementsType->MeasurementData.arrayLen++;
- } else {
- /* Second level event (e.g., xsi:type, xsi:nil, ...) */
- errn = EXI_UNSUPPORTED_EVENT_CODE_CHARACTERISTICS;
- }
- }
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- if(errn == 0) {
- /* valid EE for simple element START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MeasurementData) ? */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(eventCode == 0) {
- grammarID = 385;
- } 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 385:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MeasurementData), END_ELEMENT] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gSensorMeasurementsType->MeasurementData.arrayLen < v2gSensorMeasurementsType_MeasurementData_ARRAY_SIZE) {
- /* First(xsi:type)StartTag[CHARACTERS[UNSIGNED_INTEGER]] */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(errn == 0) {
- if(eventCode == 0) {
- errn = decodeUnsignedInteger16(stream, &v2gSensorMeasurementsType->MeasurementData.array[v2gSensorMeasurementsType->MeasurementData.arrayLen]);
- v2gSensorMeasurementsType->MeasurementData.arrayLen++;
- } else {
- /* Second level event (e.g., xsi:type, xsi:nil, ...) */
- errn = EXI_UNSUPPORTED_EVENT_CODE_CHARACTERISTICS;
- }
- }
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- if(errn == 0) {
- /* valid EE for simple element START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MeasurementData) ? */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(eventCode == 0) {
- grammarID = 386;
- } 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 386:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MeasurementData), END_ELEMENT] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gSensorMeasurementsType->MeasurementData.arrayLen < v2gSensorMeasurementsType_MeasurementData_ARRAY_SIZE) {
- /* First(xsi:type)StartTag[CHARACTERS[UNSIGNED_INTEGER]] */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(errn == 0) {
- if(eventCode == 0) {
- errn = decodeUnsignedInteger16(stream, &v2gSensorMeasurementsType->MeasurementData.array[v2gSensorMeasurementsType->MeasurementData.arrayLen]);
- v2gSensorMeasurementsType->MeasurementData.arrayLen++;
- } else {
- /* Second level event (e.g., xsi:type, xsi:nil, ...) */
- errn = EXI_UNSUPPORTED_EVENT_CODE_CHARACTERISTICS;
- }
- }
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- if(errn == 0) {
- /* valid EE for simple element START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MeasurementData) ? */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(eventCode == 0) {
- grammarID = 387;
- } 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 387:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MeasurementData), END_ELEMENT] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gSensorMeasurementsType->MeasurementData.arrayLen < v2gSensorMeasurementsType_MeasurementData_ARRAY_SIZE) {
- /* First(xsi:type)StartTag[CHARACTERS[UNSIGNED_INTEGER]] */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(errn == 0) {
- if(eventCode == 0) {
- errn = decodeUnsignedInteger16(stream, &v2gSensorMeasurementsType->MeasurementData.array[v2gSensorMeasurementsType->MeasurementData.arrayLen]);
- v2gSensorMeasurementsType->MeasurementData.arrayLen++;
- } else {
- /* Second level event (e.g., xsi:type, xsi:nil, ...) */
- errn = EXI_UNSUPPORTED_EVENT_CODE_CHARACTERISTICS;
- }
- }
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- if(errn == 0) {
- /* valid EE for simple element START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MeasurementData) ? */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(eventCode == 0) {
- grammarID = 388;
- } 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 388:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MeasurementData), END_ELEMENT] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gSensorMeasurementsType->MeasurementData.arrayLen < v2gSensorMeasurementsType_MeasurementData_ARRAY_SIZE) {
- /* First(xsi:type)StartTag[CHARACTERS[UNSIGNED_INTEGER]] */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(errn == 0) {
- if(eventCode == 0) {
- errn = decodeUnsignedInteger16(stream, &v2gSensorMeasurementsType->MeasurementData.array[v2gSensorMeasurementsType->MeasurementData.arrayLen]);
- v2gSensorMeasurementsType->MeasurementData.arrayLen++;
- } else {
- /* Second level event (e.g., xsi:type, xsi:nil, ...) */
- errn = EXI_UNSUPPORTED_EVENT_CODE_CHARACTERISTICS;
- }
- }
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- if(errn == 0) {
- /* valid EE for simple element START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MeasurementData) ? */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(eventCode == 0) {
- grammarID = 389;
- } 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 389:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MeasurementData), END_ELEMENT] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gSensorMeasurementsType->MeasurementData.arrayLen < v2gSensorMeasurementsType_MeasurementData_ARRAY_SIZE) {
- /* First(xsi:type)StartTag[CHARACTERS[UNSIGNED_INTEGER]] */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(errn == 0) {
- if(eventCode == 0) {
- errn = decodeUnsignedInteger16(stream, &v2gSensorMeasurementsType->MeasurementData.array[v2gSensorMeasurementsType->MeasurementData.arrayLen]);
- v2gSensorMeasurementsType->MeasurementData.arrayLen++;
- } else {
- /* Second level event (e.g., xsi:type, xsi:nil, ...) */
- errn = EXI_UNSUPPORTED_EVENT_CODE_CHARACTERISTICS;
- }
- }
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- if(errn == 0) {
- /* valid EE for simple element START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MeasurementData) ? */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(eventCode == 0) {
- grammarID = 390;
- } 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 390:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MeasurementData), END_ELEMENT] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gSensorMeasurementsType->MeasurementData.arrayLen < v2gSensorMeasurementsType_MeasurementData_ARRAY_SIZE) {
- /* First(xsi:type)StartTag[CHARACTERS[UNSIGNED_INTEGER]] */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(errn == 0) {
- if(eventCode == 0) {
- errn = decodeUnsignedInteger16(stream, &v2gSensorMeasurementsType->MeasurementData.array[v2gSensorMeasurementsType->MeasurementData.arrayLen]);
- v2gSensorMeasurementsType->MeasurementData.arrayLen++;
- } else {
- /* Second level event (e.g., xsi:type, xsi:nil, ...) */
- errn = EXI_UNSUPPORTED_EVENT_CODE_CHARACTERISTICS;
- }
- }
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- if(errn == 0) {
- /* valid EE for simple element START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MeasurementData) ? */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(eventCode == 0) {
- grammarID = 391;
- } 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 391:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MeasurementData), END_ELEMENT] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gSensorMeasurementsType->MeasurementData.arrayLen < v2gSensorMeasurementsType_MeasurementData_ARRAY_SIZE) {
- /* First(xsi:type)StartTag[CHARACTERS[UNSIGNED_INTEGER]] */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(errn == 0) {
- if(eventCode == 0) {
- errn = decodeUnsignedInteger16(stream, &v2gSensorMeasurementsType->MeasurementData.array[v2gSensorMeasurementsType->MeasurementData.arrayLen]);
- v2gSensorMeasurementsType->MeasurementData.arrayLen++;
- } else {
- /* Second level event (e.g., xsi:type, xsi:nil, ...) */
- errn = EXI_UNSUPPORTED_EVENT_CODE_CHARACTERISTICS;
- }
- }
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- if(errn == 0) {
- /* valid EE for simple element START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MeasurementData) ? */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(eventCode == 0) {
- grammarID = 392;
- } 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 392:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MeasurementData), END_ELEMENT] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gSensorMeasurementsType->MeasurementData.arrayLen < v2gSensorMeasurementsType_MeasurementData_ARRAY_SIZE) {
- /* First(xsi:type)StartTag[CHARACTERS[UNSIGNED_INTEGER]] */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(errn == 0) {
- if(eventCode == 0) {
- errn = decodeUnsignedInteger16(stream, &v2gSensorMeasurementsType->MeasurementData.array[v2gSensorMeasurementsType->MeasurementData.arrayLen]);
- v2gSensorMeasurementsType->MeasurementData.arrayLen++;
- } else {
- /* Second level event (e.g., xsi:type, xsi:nil, ...) */
- errn = EXI_UNSUPPORTED_EVENT_CODE_CHARACTERISTICS;
- }
- }
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- if(errn == 0) {
- /* valid EE for simple element START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MeasurementData) ? */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(eventCode == 0) {
- grammarID = 393;
- } 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 393:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MeasurementData), END_ELEMENT] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gSensorMeasurementsType->MeasurementData.arrayLen < v2gSensorMeasurementsType_MeasurementData_ARRAY_SIZE) {
- /* First(xsi:type)StartTag[CHARACTERS[UNSIGNED_INTEGER]] */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(errn == 0) {
- if(eventCode == 0) {
- errn = decodeUnsignedInteger16(stream, &v2gSensorMeasurementsType->MeasurementData.array[v2gSensorMeasurementsType->MeasurementData.arrayLen]);
- v2gSensorMeasurementsType->MeasurementData.arrayLen++;
- } else {
- /* Second level event (e.g., xsi:type, xsi:nil, ...) */
- errn = EXI_UNSUPPORTED_EVENT_CODE_CHARACTERISTICS;
- }
- }
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- if(errn == 0) {
- /* valid EE for simple element START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MeasurementData) ? */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(eventCode == 0) {
- grammarID = 394;
- } 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 394:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MeasurementData), END_ELEMENT] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gSensorMeasurementsType->MeasurementData.arrayLen < v2gSensorMeasurementsType_MeasurementData_ARRAY_SIZE) {
- /* First(xsi:type)StartTag[CHARACTERS[UNSIGNED_INTEGER]] */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(errn == 0) {
- if(eventCode == 0) {
- errn = decodeUnsignedInteger16(stream, &v2gSensorMeasurementsType->MeasurementData.array[v2gSensorMeasurementsType->MeasurementData.arrayLen]);
- v2gSensorMeasurementsType->MeasurementData.arrayLen++;
- } else {
- /* Second level event (e.g., xsi:type, xsi:nil, ...) */
- errn = EXI_UNSUPPORTED_EVENT_CODE_CHARACTERISTICS;
- }
- }
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- if(errn == 0) {
- /* valid EE for simple element START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MeasurementData) ? */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(eventCode == 0) {
- grammarID = 395;
- } 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 395:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MeasurementData), END_ELEMENT] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gSensorMeasurementsType->MeasurementData.arrayLen < v2gSensorMeasurementsType_MeasurementData_ARRAY_SIZE) {
- /* First(xsi:type)StartTag[CHARACTERS[UNSIGNED_INTEGER]] */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(errn == 0) {
- if(eventCode == 0) {
- errn = decodeUnsignedInteger16(stream, &v2gSensorMeasurementsType->MeasurementData.array[v2gSensorMeasurementsType->MeasurementData.arrayLen]);
- v2gSensorMeasurementsType->MeasurementData.arrayLen++;
- } else {
- /* Second level event (e.g., xsi:type, xsi:nil, ...) */
- errn = EXI_UNSUPPORTED_EVENT_CODE_CHARACTERISTICS;
- }
- }
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- if(errn == 0) {
- /* valid EE for simple element START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MeasurementData) ? */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(eventCode == 0) {
- grammarID = 396;
- } 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 396:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MeasurementData), END_ELEMENT] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gSensorMeasurementsType->MeasurementData.arrayLen < v2gSensorMeasurementsType_MeasurementData_ARRAY_SIZE) {
- /* First(xsi:type)StartTag[CHARACTERS[UNSIGNED_INTEGER]] */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(errn == 0) {
- if(eventCode == 0) {
- errn = decodeUnsignedInteger16(stream, &v2gSensorMeasurementsType->MeasurementData.array[v2gSensorMeasurementsType->MeasurementData.arrayLen]);
- v2gSensorMeasurementsType->MeasurementData.arrayLen++;
- } else {
- /* Second level event (e.g., xsi:type, xsi:nil, ...) */
- errn = EXI_UNSUPPORTED_EVENT_CODE_CHARACTERISTICS;
- }
- }
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- if(errn == 0) {
- /* valid EE for simple element START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MeasurementData) ? */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(eventCode == 0) {
- grammarID = 397;
- } 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 397:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MeasurementData), END_ELEMENT] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gSensorMeasurementsType->MeasurementData.arrayLen < v2gSensorMeasurementsType_MeasurementData_ARRAY_SIZE) {
- /* First(xsi:type)StartTag[CHARACTERS[UNSIGNED_INTEGER]] */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(errn == 0) {
- if(eventCode == 0) {
- errn = decodeUnsignedInteger16(stream, &v2gSensorMeasurementsType->MeasurementData.array[v2gSensorMeasurementsType->MeasurementData.arrayLen]);
- v2gSensorMeasurementsType->MeasurementData.arrayLen++;
- } else {
- /* Second level event (e.g., xsi:type, xsi:nil, ...) */
- errn = EXI_UNSUPPORTED_EVENT_CODE_CHARACTERISTICS;
- }
- }
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- if(errn == 0) {
- /* valid EE for simple element START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MeasurementData) ? */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(eventCode == 0) {
- grammarID = 398;
- } 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 398:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MeasurementData), END_ELEMENT] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gSensorMeasurementsType->MeasurementData.arrayLen < v2gSensorMeasurementsType_MeasurementData_ARRAY_SIZE) {
- /* First(xsi:type)StartTag[CHARACTERS[UNSIGNED_INTEGER]] */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(errn == 0) {
- if(eventCode == 0) {
- errn = decodeUnsignedInteger16(stream, &v2gSensorMeasurementsType->MeasurementData.array[v2gSensorMeasurementsType->MeasurementData.arrayLen]);
- v2gSensorMeasurementsType->MeasurementData.arrayLen++;
- } else {
- /* Second level event (e.g., xsi:type, xsi:nil, ...) */
- errn = EXI_UNSUPPORTED_EVENT_CODE_CHARACTERISTICS;
- }
- }
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- if(errn == 0) {
- /* valid EE for simple element START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MeasurementData) ? */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(eventCode == 0) {
- grammarID = 399;
- } 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 399:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MeasurementData), END_ELEMENT] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gSensorMeasurementsType->MeasurementData.arrayLen < v2gSensorMeasurementsType_MeasurementData_ARRAY_SIZE) {
- /* First(xsi:type)StartTag[CHARACTERS[UNSIGNED_INTEGER]] */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(errn == 0) {
- if(eventCode == 0) {
- errn = decodeUnsignedInteger16(stream, &v2gSensorMeasurementsType->MeasurementData.array[v2gSensorMeasurementsType->MeasurementData.arrayLen]);
- v2gSensorMeasurementsType->MeasurementData.arrayLen++;
- } else {
- /* Second level event (e.g., xsi:type, xsi:nil, ...) */
- errn = EXI_UNSUPPORTED_EVENT_CODE_CHARACTERISTICS;
- }
- }
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- if(errn == 0) {
- /* valid EE for simple element START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MeasurementData) ? */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(eventCode == 0) {
- grammarID = 400;
- } 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 400:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MeasurementData), END_ELEMENT] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gSensorMeasurementsType->MeasurementData.arrayLen < v2gSensorMeasurementsType_MeasurementData_ARRAY_SIZE) {
- /* First(xsi:type)StartTag[CHARACTERS[UNSIGNED_INTEGER]] */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(errn == 0) {
- if(eventCode == 0) {
- errn = decodeUnsignedInteger16(stream, &v2gSensorMeasurementsType->MeasurementData.array[v2gSensorMeasurementsType->MeasurementData.arrayLen]);
- v2gSensorMeasurementsType->MeasurementData.arrayLen++;
- } else {
- /* Second level event (e.g., xsi:type, xsi:nil, ...) */
- errn = EXI_UNSUPPORTED_EVENT_CODE_CHARACTERISTICS;
- }
- }
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- if(errn == 0) {
- /* valid EE for simple element START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MeasurementData) ? */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(eventCode == 0) {
- grammarID = 401;
- } 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 401:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MeasurementData), END_ELEMENT] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gSensorMeasurementsType->MeasurementData.arrayLen < v2gSensorMeasurementsType_MeasurementData_ARRAY_SIZE) {
- /* First(xsi:type)StartTag[CHARACTERS[UNSIGNED_INTEGER]] */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(errn == 0) {
- if(eventCode == 0) {
- errn = decodeUnsignedInteger16(stream, &v2gSensorMeasurementsType->MeasurementData.array[v2gSensorMeasurementsType->MeasurementData.arrayLen]);
- v2gSensorMeasurementsType->MeasurementData.arrayLen++;
- } else {
- /* Second level event (e.g., xsi:type, xsi:nil, ...) */
- errn = EXI_UNSUPPORTED_EVENT_CODE_CHARACTERISTICS;
- }
- }
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- if(errn == 0) {
- /* valid EE for simple element START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MeasurementData) ? */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(eventCode == 0) {
- grammarID = 402;
- } 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 402:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MeasurementData), END_ELEMENT] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gSensorMeasurementsType->MeasurementData.arrayLen < v2gSensorMeasurementsType_MeasurementData_ARRAY_SIZE) {
- /* First(xsi:type)StartTag[CHARACTERS[UNSIGNED_INTEGER]] */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(errn == 0) {
- if(eventCode == 0) {
- errn = decodeUnsignedInteger16(stream, &v2gSensorMeasurementsType->MeasurementData.array[v2gSensorMeasurementsType->MeasurementData.arrayLen]);
- v2gSensorMeasurementsType->MeasurementData.arrayLen++;
- } else {
- /* Second level event (e.g., xsi:type, xsi:nil, ...) */
- errn = EXI_UNSUPPORTED_EVENT_CODE_CHARACTERISTICS;
- }
- }
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- if(errn == 0) {
- /* valid EE for simple element START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MeasurementData) ? */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(eventCode == 0) {
- grammarID = 403;
- } 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 403:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MeasurementData), END_ELEMENT] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gSensorMeasurementsType->MeasurementData.arrayLen < v2gSensorMeasurementsType_MeasurementData_ARRAY_SIZE) {
- /* First(xsi:type)StartTag[CHARACTERS[UNSIGNED_INTEGER]] */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(errn == 0) {
- if(eventCode == 0) {
- errn = decodeUnsignedInteger16(stream, &v2gSensorMeasurementsType->MeasurementData.array[v2gSensorMeasurementsType->MeasurementData.arrayLen]);
- v2gSensorMeasurementsType->MeasurementData.arrayLen++;
- } else {
- /* Second level event (e.g., xsi:type, xsi:nil, ...) */
- errn = EXI_UNSUPPORTED_EVENT_CODE_CHARACTERISTICS;
- }
- }
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- if(errn == 0) {
- /* valid EE for simple element START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MeasurementData) ? */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(eventCode == 0) {
- grammarID = 404;
- } 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 404:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MeasurementData), END_ELEMENT] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gSensorMeasurementsType->MeasurementData.arrayLen < v2gSensorMeasurementsType_MeasurementData_ARRAY_SIZE) {
- /* First(xsi:type)StartTag[CHARACTERS[UNSIGNED_INTEGER]] */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(errn == 0) {
- if(eventCode == 0) {
- errn = decodeUnsignedInteger16(stream, &v2gSensorMeasurementsType->MeasurementData.array[v2gSensorMeasurementsType->MeasurementData.arrayLen]);
- v2gSensorMeasurementsType->MeasurementData.arrayLen++;
- } else {
- /* Second level event (e.g., xsi:type, xsi:nil, ...) */
- errn = EXI_UNSUPPORTED_EVENT_CODE_CHARACTERISTICS;
- }
- }
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- if(errn == 0) {
- /* valid EE for simple element START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MeasurementData) ? */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(eventCode == 0) {
- grammarID = 405;
- } 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 405:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MeasurementData), END_ELEMENT] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gSensorMeasurementsType->MeasurementData.arrayLen < v2gSensorMeasurementsType_MeasurementData_ARRAY_SIZE) {
- /* First(xsi:type)StartTag[CHARACTERS[UNSIGNED_INTEGER]] */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(errn == 0) {
- if(eventCode == 0) {
- errn = decodeUnsignedInteger16(stream, &v2gSensorMeasurementsType->MeasurementData.array[v2gSensorMeasurementsType->MeasurementData.arrayLen]);
- v2gSensorMeasurementsType->MeasurementData.arrayLen++;
- } else {
- /* Second level event (e.g., xsi:type, xsi:nil, ...) */
- errn = EXI_UNSUPPORTED_EVENT_CODE_CHARACTERISTICS;
- }
- }
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- if(errn == 0) {
- /* valid EE for simple element START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MeasurementData) ? */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(eventCode == 0) {
- grammarID = 406;
- } 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 406:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MeasurementData), END_ELEMENT] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gSensorMeasurementsType->MeasurementData.arrayLen < v2gSensorMeasurementsType_MeasurementData_ARRAY_SIZE) {
- /* First(xsi:type)StartTag[CHARACTERS[UNSIGNED_INTEGER]] */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(errn == 0) {
- if(eventCode == 0) {
- errn = decodeUnsignedInteger16(stream, &v2gSensorMeasurementsType->MeasurementData.array[v2gSensorMeasurementsType->MeasurementData.arrayLen]);
- v2gSensorMeasurementsType->MeasurementData.arrayLen++;
- } else {
- /* Second level event (e.g., xsi:type, xsi:nil, ...) */
- errn = EXI_UNSUPPORTED_EVENT_CODE_CHARACTERISTICS;
- }
- }
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- if(errn == 0) {
- /* valid EE for simple element START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MeasurementData) ? */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(eventCode == 0) {
- grammarID = 407;
- } 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 407:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MeasurementData), END_ELEMENT] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gSensorMeasurementsType->MeasurementData.arrayLen < v2gSensorMeasurementsType_MeasurementData_ARRAY_SIZE) {
- /* First(xsi:type)StartTag[CHARACTERS[UNSIGNED_INTEGER]] */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(errn == 0) {
- if(eventCode == 0) {
- errn = decodeUnsignedInteger16(stream, &v2gSensorMeasurementsType->MeasurementData.array[v2gSensorMeasurementsType->MeasurementData.arrayLen]);
- v2gSensorMeasurementsType->MeasurementData.arrayLen++;
- } else {
- /* Second level event (e.g., xsi:type, xsi:nil, ...) */
- errn = EXI_UNSUPPORTED_EVENT_CODE_CHARACTERISTICS;
- }
- }
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- if(errn == 0) {
- /* valid EE for simple element START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MeasurementData) ? */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(eventCode == 0) {
- grammarID = 408;
- } 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 408:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MeasurementData), END_ELEMENT] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gSensorMeasurementsType->MeasurementData.arrayLen < v2gSensorMeasurementsType_MeasurementData_ARRAY_SIZE) {
- /* First(xsi:type)StartTag[CHARACTERS[UNSIGNED_INTEGER]] */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(errn == 0) {
- if(eventCode == 0) {
- errn = decodeUnsignedInteger16(stream, &v2gSensorMeasurementsType->MeasurementData.array[v2gSensorMeasurementsType->MeasurementData.arrayLen]);
- v2gSensorMeasurementsType->MeasurementData.arrayLen++;
- } else {
- /* Second level event (e.g., xsi:type, xsi:nil, ...) */
- errn = EXI_UNSUPPORTED_EVENT_CODE_CHARACTERISTICS;
- }
- }
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- if(errn == 0) {
- /* valid EE for simple element START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MeasurementData) ? */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(eventCode == 0) {
- grammarID = 409;
- } 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 409:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MeasurementData), END_ELEMENT] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gSensorMeasurementsType->MeasurementData.arrayLen < v2gSensorMeasurementsType_MeasurementData_ARRAY_SIZE) {
- /* First(xsi:type)StartTag[CHARACTERS[UNSIGNED_INTEGER]] */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(errn == 0) {
- if(eventCode == 0) {
- errn = decodeUnsignedInteger16(stream, &v2gSensorMeasurementsType->MeasurementData.array[v2gSensorMeasurementsType->MeasurementData.arrayLen]);
- v2gSensorMeasurementsType->MeasurementData.arrayLen++;
- } else {
- /* Second level event (e.g., xsi:type, xsi:nil, ...) */
- errn = EXI_UNSUPPORTED_EVENT_CODE_CHARACTERISTICS;
- }
- }
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- if(errn == 0) {
- /* valid EE for simple element START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MeasurementData) ? */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(eventCode == 0) {
- grammarID = 410;
- } 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 410:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MeasurementData), END_ELEMENT] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gSensorMeasurementsType->MeasurementData.arrayLen < v2gSensorMeasurementsType_MeasurementData_ARRAY_SIZE) {
- /* First(xsi:type)StartTag[CHARACTERS[UNSIGNED_INTEGER]] */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(errn == 0) {
- if(eventCode == 0) {
- errn = decodeUnsignedInteger16(stream, &v2gSensorMeasurementsType->MeasurementData.array[v2gSensorMeasurementsType->MeasurementData.arrayLen]);
- v2gSensorMeasurementsType->MeasurementData.arrayLen++;
- } else {
- /* Second level event (e.g., xsi:type, xsi:nil, ...) */
- errn = EXI_UNSUPPORTED_EVENT_CODE_CHARACTERISTICS;
- }
- }
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- if(errn == 0) {
- /* valid EE for simple element START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MeasurementData) ? */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(eventCode == 0) {
- grammarID = 411;
- } 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 411:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MeasurementData), END_ELEMENT] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gSensorMeasurementsType->MeasurementData.arrayLen < v2gSensorMeasurementsType_MeasurementData_ARRAY_SIZE) {
- /* First(xsi:type)StartTag[CHARACTERS[UNSIGNED_INTEGER]] */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(errn == 0) {
- if(eventCode == 0) {
- errn = decodeUnsignedInteger16(stream, &v2gSensorMeasurementsType->MeasurementData.array[v2gSensorMeasurementsType->MeasurementData.arrayLen]);
- v2gSensorMeasurementsType->MeasurementData.arrayLen++;
- } else {
- /* Second level event (e.g., xsi:type, xsi:nil, ...) */
- errn = EXI_UNSUPPORTED_EVENT_CODE_CHARACTERISTICS;
- }
- }
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- if(errn == 0) {
- /* valid EE for simple element START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MeasurementData) ? */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(eventCode == 0) {
- grammarID = 412;
- } 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 412:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MeasurementData), END_ELEMENT] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gSensorMeasurementsType->MeasurementData.arrayLen < v2gSensorMeasurementsType_MeasurementData_ARRAY_SIZE) {
- /* First(xsi:type)StartTag[CHARACTERS[UNSIGNED_INTEGER]] */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(errn == 0) {
- if(eventCode == 0) {
- errn = decodeUnsignedInteger16(stream, &v2gSensorMeasurementsType->MeasurementData.array[v2gSensorMeasurementsType->MeasurementData.arrayLen]);
- v2gSensorMeasurementsType->MeasurementData.arrayLen++;
- } else {
- /* Second level event (e.g., xsi:type, xsi:nil, ...) */
- errn = EXI_UNSUPPORTED_EVENT_CODE_CHARACTERISTICS;
- }
- }
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- if(errn == 0) {
- /* valid EE for simple element START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MeasurementData) ? */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(eventCode == 0) {
- grammarID = 413;
- } 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 413:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MeasurementData), END_ELEMENT] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gSensorMeasurementsType->MeasurementData.arrayLen < v2gSensorMeasurementsType_MeasurementData_ARRAY_SIZE) {
- /* First(xsi:type)StartTag[CHARACTERS[UNSIGNED_INTEGER]] */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(errn == 0) {
- if(eventCode == 0) {
- errn = decodeUnsignedInteger16(stream, &v2gSensorMeasurementsType->MeasurementData.array[v2gSensorMeasurementsType->MeasurementData.arrayLen]);
- v2gSensorMeasurementsType->MeasurementData.arrayLen++;
- } else {
- /* Second level event (e.g., xsi:type, xsi:nil, ...) */
- errn = EXI_UNSUPPORTED_EVENT_CODE_CHARACTERISTICS;
- }
- }
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- if(errn == 0) {
- /* valid EE for simple element START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MeasurementData) ? */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(eventCode == 0) {
- grammarID = 414;
- } 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 414:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MeasurementData), END_ELEMENT] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gSensorMeasurementsType->MeasurementData.arrayLen < v2gSensorMeasurementsType_MeasurementData_ARRAY_SIZE) {
- /* First(xsi:type)StartTag[CHARACTERS[UNSIGNED_INTEGER]] */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(errn == 0) {
- if(eventCode == 0) {
- errn = decodeUnsignedInteger16(stream, &v2gSensorMeasurementsType->MeasurementData.array[v2gSensorMeasurementsType->MeasurementData.arrayLen]);
- v2gSensorMeasurementsType->MeasurementData.arrayLen++;
- } else {
- /* Second level event (e.g., xsi:type, xsi:nil, ...) */
- errn = EXI_UNSUPPORTED_EVENT_CODE_CHARACTERISTICS;
- }
- }
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- if(errn == 0) {
- /* valid EE for simple element START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MeasurementData) ? */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(eventCode == 0) {
- grammarID = 415;
- } 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 415:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MeasurementData), END_ELEMENT] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gSensorMeasurementsType->MeasurementData.arrayLen < v2gSensorMeasurementsType_MeasurementData_ARRAY_SIZE) {
- /* First(xsi:type)StartTag[CHARACTERS[UNSIGNED_INTEGER]] */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(errn == 0) {
- if(eventCode == 0) {
- errn = decodeUnsignedInteger16(stream, &v2gSensorMeasurementsType->MeasurementData.array[v2gSensorMeasurementsType->MeasurementData.arrayLen]);
- v2gSensorMeasurementsType->MeasurementData.arrayLen++;
- } else {
- /* Second level event (e.g., xsi:type, xsi:nil, ...) */
- errn = EXI_UNSUPPORTED_EVENT_CODE_CHARACTERISTICS;
- }
- }
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- if(errn == 0) {
- /* valid EE for simple element START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MeasurementData) ? */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(eventCode == 0) {
- grammarID = 416;
- } 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 416:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MeasurementData), END_ELEMENT] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gSensorMeasurementsType->MeasurementData.arrayLen < v2gSensorMeasurementsType_MeasurementData_ARRAY_SIZE) {
- /* First(xsi:type)StartTag[CHARACTERS[UNSIGNED_INTEGER]] */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(errn == 0) {
- if(eventCode == 0) {
- errn = decodeUnsignedInteger16(stream, &v2gSensorMeasurementsType->MeasurementData.array[v2gSensorMeasurementsType->MeasurementData.arrayLen]);
- v2gSensorMeasurementsType->MeasurementData.arrayLen++;
- } else {
- /* Second level event (e.g., xsi:type, xsi:nil, ...) */
- errn = EXI_UNSUPPORTED_EVENT_CODE_CHARACTERISTICS;
- }
- }
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- if(errn == 0) {
- /* valid EE for simple element START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MeasurementData) ? */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(eventCode == 0) {
- grammarID = 417;
- } 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 417:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MeasurementData), END_ELEMENT] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gSensorMeasurementsType->MeasurementData.arrayLen < v2gSensorMeasurementsType_MeasurementData_ARRAY_SIZE) {
- /* First(xsi:type)StartTag[CHARACTERS[UNSIGNED_INTEGER]] */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(errn == 0) {
- if(eventCode == 0) {
- errn = decodeUnsignedInteger16(stream, &v2gSensorMeasurementsType->MeasurementData.array[v2gSensorMeasurementsType->MeasurementData.arrayLen]);
- v2gSensorMeasurementsType->MeasurementData.arrayLen++;
- } else {
- /* Second level event (e.g., xsi:type, xsi:nil, ...) */
- errn = EXI_UNSUPPORTED_EVENT_CODE_CHARACTERISTICS;
- }
- }
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- if(errn == 0) {
- /* valid EE for simple element START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MeasurementData) ? */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(eventCode == 0) {
- grammarID = 418;
- } 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 418:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MeasurementData), END_ELEMENT] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gSensorMeasurementsType->MeasurementData.arrayLen < v2gSensorMeasurementsType_MeasurementData_ARRAY_SIZE) {
- /* First(xsi:type)StartTag[CHARACTERS[UNSIGNED_INTEGER]] */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(errn == 0) {
- if(eventCode == 0) {
- errn = decodeUnsignedInteger16(stream, &v2gSensorMeasurementsType->MeasurementData.array[v2gSensorMeasurementsType->MeasurementData.arrayLen]);
- v2gSensorMeasurementsType->MeasurementData.arrayLen++;
- } else {
- /* Second level event (e.g., xsi:type, xsi:nil, ...) */
- errn = EXI_UNSUPPORTED_EVENT_CODE_CHARACTERISTICS;
- }
- }
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- if(errn == 0) {
- /* valid EE for simple element START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MeasurementData) ? */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(eventCode == 0) {
- grammarID = 419;
- } 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 419:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MeasurementData), END_ELEMENT] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gSensorMeasurementsType->MeasurementData.arrayLen < v2gSensorMeasurementsType_MeasurementData_ARRAY_SIZE) {
- /* First(xsi:type)StartTag[CHARACTERS[UNSIGNED_INTEGER]] */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(errn == 0) {
- if(eventCode == 0) {
- errn = decodeUnsignedInteger16(stream, &v2gSensorMeasurementsType->MeasurementData.array[v2gSensorMeasurementsType->MeasurementData.arrayLen]);
- v2gSensorMeasurementsType->MeasurementData.arrayLen++;
- } else {
- /* Second level event (e.g., xsi:type, xsi:nil, ...) */
- errn = EXI_UNSUPPORTED_EVENT_CODE_CHARACTERISTICS;
- }
- }
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- if(errn == 0) {
- /* valid EE for simple element START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MeasurementData) ? */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(eventCode == 0) {
- grammarID = 420;
- } 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 420:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MeasurementData), END_ELEMENT] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gSensorMeasurementsType->MeasurementData.arrayLen < v2gSensorMeasurementsType_MeasurementData_ARRAY_SIZE) {
- /* First(xsi:type)StartTag[CHARACTERS[UNSIGNED_INTEGER]] */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(errn == 0) {
- if(eventCode == 0) {
- errn = decodeUnsignedInteger16(stream, &v2gSensorMeasurementsType->MeasurementData.array[v2gSensorMeasurementsType->MeasurementData.arrayLen]);
- v2gSensorMeasurementsType->MeasurementData.arrayLen++;
- } else {
- /* Second level event (e.g., xsi:type, xsi:nil, ...) */
- errn = EXI_UNSUPPORTED_EVENT_CODE_CHARACTERISTICS;
- }
- }
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- if(errn == 0) {
- /* valid EE for simple element START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MeasurementData) ? */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(eventCode == 0) {
- grammarID = 421;
- } 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 421:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MeasurementData), END_ELEMENT] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gSensorMeasurementsType->MeasurementData.arrayLen < v2gSensorMeasurementsType_MeasurementData_ARRAY_SIZE) {
- /* First(xsi:type)StartTag[CHARACTERS[UNSIGNED_INTEGER]] */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(errn == 0) {
- if(eventCode == 0) {
- errn = decodeUnsignedInteger16(stream, &v2gSensorMeasurementsType->MeasurementData.array[v2gSensorMeasurementsType->MeasurementData.arrayLen]);
- v2gSensorMeasurementsType->MeasurementData.arrayLen++;
- } else {
- /* Second level event (e.g., xsi:type, xsi:nil, ...) */
- errn = EXI_UNSUPPORTED_EVENT_CODE_CHARACTERISTICS;
- }
- }
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- if(errn == 0) {
- /* valid EE for simple element START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MeasurementData) ? */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(eventCode == 0) {
- grammarID = 422;
- } 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 422:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MeasurementData), END_ELEMENT] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gSensorMeasurementsType->MeasurementData.arrayLen < v2gSensorMeasurementsType_MeasurementData_ARRAY_SIZE) {
- /* First(xsi:type)StartTag[CHARACTERS[UNSIGNED_INTEGER]] */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(errn == 0) {
- if(eventCode == 0) {
- errn = decodeUnsignedInteger16(stream, &v2gSensorMeasurementsType->MeasurementData.array[v2gSensorMeasurementsType->MeasurementData.arrayLen]);
- v2gSensorMeasurementsType->MeasurementData.arrayLen++;
- } else {
- /* Second level event (e.g., xsi:type, xsi:nil, ...) */
- errn = EXI_UNSUPPORTED_EVENT_CODE_CHARACTERISTICS;
- }
- }
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- if(errn == 0) {
- /* valid EE for simple element START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MeasurementData) ? */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(eventCode == 0) {
- grammarID = 423;
- } 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 423:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MeasurementData), END_ELEMENT] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gSensorMeasurementsType->MeasurementData.arrayLen < v2gSensorMeasurementsType_MeasurementData_ARRAY_SIZE) {
- /* First(xsi:type)StartTag[CHARACTERS[UNSIGNED_INTEGER]] */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(errn == 0) {
- if(eventCode == 0) {
- errn = decodeUnsignedInteger16(stream, &v2gSensorMeasurementsType->MeasurementData.array[v2gSensorMeasurementsType->MeasurementData.arrayLen]);
- v2gSensorMeasurementsType->MeasurementData.arrayLen++;
- } else {
- /* Second level event (e.g., xsi:type, xsi:nil, ...) */
- errn = EXI_UNSUPPORTED_EVENT_CODE_CHARACTERISTICS;
- }
- }
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- if(errn == 0) {
- /* valid EE for simple element START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MeasurementData) ? */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(eventCode == 0) {
- grammarID = 424;
- } 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 424:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MeasurementData), END_ELEMENT] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gSensorMeasurementsType->MeasurementData.arrayLen < v2gSensorMeasurementsType_MeasurementData_ARRAY_SIZE) {
- /* First(xsi:type)StartTag[CHARACTERS[UNSIGNED_INTEGER]] */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(errn == 0) {
- if(eventCode == 0) {
- errn = decodeUnsignedInteger16(stream, &v2gSensorMeasurementsType->MeasurementData.array[v2gSensorMeasurementsType->MeasurementData.arrayLen]);
- v2gSensorMeasurementsType->MeasurementData.arrayLen++;
- } else {
- /* Second level event (e.g., xsi:type, xsi:nil, ...) */
- errn = EXI_UNSUPPORTED_EVENT_CODE_CHARACTERISTICS;
- }
- }
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- if(errn == 0) {
- /* valid EE for simple element START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MeasurementData) ? */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(eventCode == 0) {
- grammarID = 425;
- } 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 425:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MeasurementData), END_ELEMENT] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gSensorMeasurementsType->MeasurementData.arrayLen < v2gSensorMeasurementsType_MeasurementData_ARRAY_SIZE) {
- /* First(xsi:type)StartTag[CHARACTERS[UNSIGNED_INTEGER]] */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(errn == 0) {
- if(eventCode == 0) {
- errn = decodeUnsignedInteger16(stream, &v2gSensorMeasurementsType->MeasurementData.array[v2gSensorMeasurementsType->MeasurementData.arrayLen]);
- v2gSensorMeasurementsType->MeasurementData.arrayLen++;
- } else {
- /* Second level event (e.g., xsi:type, xsi:nil, ...) */
- errn = EXI_UNSUPPORTED_EVENT_CODE_CHARACTERISTICS;
- }
- }
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- if(errn == 0) {
- /* valid EE for simple element START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MeasurementData) ? */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(eventCode == 0) {
- grammarID = 426;
- } 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 426:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MeasurementData), END_ELEMENT] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gSensorMeasurementsType->MeasurementData.arrayLen < v2gSensorMeasurementsType_MeasurementData_ARRAY_SIZE) {
- /* First(xsi:type)StartTag[CHARACTERS[UNSIGNED_INTEGER]] */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(errn == 0) {
- if(eventCode == 0) {
- errn = decodeUnsignedInteger16(stream, &v2gSensorMeasurementsType->MeasurementData.array[v2gSensorMeasurementsType->MeasurementData.arrayLen]);
- v2gSensorMeasurementsType->MeasurementData.arrayLen++;
- } else {
- /* Second level event (e.g., xsi:type, xsi:nil, ...) */
- errn = EXI_UNSUPPORTED_EVENT_CODE_CHARACTERISTICS;
- }
- }
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- if(errn == 0) {
- /* valid EE for simple element START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MeasurementData) ? */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(eventCode == 0) {
- grammarID = 427;
- } 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 427:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MeasurementData), END_ELEMENT] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gSensorMeasurementsType->MeasurementData.arrayLen < v2gSensorMeasurementsType_MeasurementData_ARRAY_SIZE) {
- /* First(xsi:type)StartTag[CHARACTERS[UNSIGNED_INTEGER]] */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(errn == 0) {
- if(eventCode == 0) {
- errn = decodeUnsignedInteger16(stream, &v2gSensorMeasurementsType->MeasurementData.array[v2gSensorMeasurementsType->MeasurementData.arrayLen]);
- v2gSensorMeasurementsType->MeasurementData.arrayLen++;
- } else {
- /* Second level event (e.g., xsi:type, xsi:nil, ...) */
- errn = EXI_UNSUPPORTED_EVENT_CODE_CHARACTERISTICS;
- }
- }
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- if(errn == 0) {
- /* valid EE for simple element START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MeasurementData) ? */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(eventCode == 0) {
- grammarID = 428;
- } 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 428:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MeasurementData), END_ELEMENT] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gSensorMeasurementsType->MeasurementData.arrayLen < v2gSensorMeasurementsType_MeasurementData_ARRAY_SIZE) {
- /* First(xsi:type)StartTag[CHARACTERS[UNSIGNED_INTEGER]] */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(errn == 0) {
- if(eventCode == 0) {
- errn = decodeUnsignedInteger16(stream, &v2gSensorMeasurementsType->MeasurementData.array[v2gSensorMeasurementsType->MeasurementData.arrayLen]);
- v2gSensorMeasurementsType->MeasurementData.arrayLen++;
- } else {
- /* Second level event (e.g., xsi:type, xsi:nil, ...) */
- errn = EXI_UNSUPPORTED_EVENT_CODE_CHARACTERISTICS;
- }
- }
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- if(errn == 0) {
- /* valid EE for simple element START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MeasurementData) ? */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(eventCode == 0) {
- grammarID = 429;
- } 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 429:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MeasurementData), END_ELEMENT] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gSensorMeasurementsType->MeasurementData.arrayLen < v2gSensorMeasurementsType_MeasurementData_ARRAY_SIZE) {
- /* First(xsi:type)StartTag[CHARACTERS[UNSIGNED_INTEGER]] */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(errn == 0) {
- if(eventCode == 0) {
- errn = decodeUnsignedInteger16(stream, &v2gSensorMeasurementsType->MeasurementData.array[v2gSensorMeasurementsType->MeasurementData.arrayLen]);
- v2gSensorMeasurementsType->MeasurementData.arrayLen++;
- } else {
- /* Second level event (e.g., xsi:type, xsi:nil, ...) */
- errn = EXI_UNSUPPORTED_EVENT_CODE_CHARACTERISTICS;
- }
- }
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- if(errn == 0) {
- /* valid EE for simple element START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MeasurementData) ? */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(eventCode == 0) {
- grammarID = 430;
- } 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 430:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MeasurementData), END_ELEMENT] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gSensorMeasurementsType->MeasurementData.arrayLen < v2gSensorMeasurementsType_MeasurementData_ARRAY_SIZE) {
- /* First(xsi:type)StartTag[CHARACTERS[UNSIGNED_INTEGER]] */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(errn == 0) {
- if(eventCode == 0) {
- errn = decodeUnsignedInteger16(stream, &v2gSensorMeasurementsType->MeasurementData.array[v2gSensorMeasurementsType->MeasurementData.arrayLen]);
- v2gSensorMeasurementsType->MeasurementData.arrayLen++;
- } else {
- /* Second level event (e.g., xsi:type, xsi:nil, ...) */
- errn = EXI_UNSUPPORTED_EVENT_CODE_CHARACTERISTICS;
- }
- }
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- if(errn == 0) {
- /* valid EE for simple element START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MeasurementData) ? */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(eventCode == 0) {
- grammarID = 431;
- } 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 431:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MeasurementData), END_ELEMENT] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gSensorMeasurementsType->MeasurementData.arrayLen < v2gSensorMeasurementsType_MeasurementData_ARRAY_SIZE) {
- /* First(xsi:type)StartTag[CHARACTERS[UNSIGNED_INTEGER]] */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(errn == 0) {
- if(eventCode == 0) {
- errn = decodeUnsignedInteger16(stream, &v2gSensorMeasurementsType->MeasurementData.array[v2gSensorMeasurementsType->MeasurementData.arrayLen]);
- v2gSensorMeasurementsType->MeasurementData.arrayLen++;
- } else {
- /* Second level event (e.g., xsi:type, xsi:nil, ...) */
- errn = EXI_UNSUPPORTED_EVENT_CODE_CHARACTERISTICS;
- }
- }
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- if(errn == 0) {
- /* valid EE for simple element START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MeasurementData) ? */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(eventCode == 0) {
- grammarID = 432;
- } 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 432:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MeasurementData), END_ELEMENT] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gSensorMeasurementsType->MeasurementData.arrayLen < v2gSensorMeasurementsType_MeasurementData_ARRAY_SIZE) {
- /* First(xsi:type)StartTag[CHARACTERS[UNSIGNED_INTEGER]] */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(errn == 0) {
- if(eventCode == 0) {
- errn = decodeUnsignedInteger16(stream, &v2gSensorMeasurementsType->MeasurementData.array[v2gSensorMeasurementsType->MeasurementData.arrayLen]);
- v2gSensorMeasurementsType->MeasurementData.arrayLen++;
- } else {
- /* Second level event (e.g., xsi:type, xsi:nil, ...) */
- errn = EXI_UNSUPPORTED_EVENT_CODE_CHARACTERISTICS;
- }
- }
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- if(errn == 0) {
- /* valid EE for simple element START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MeasurementData) ? */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(eventCode == 0) {
- grammarID = 433;
- } 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 433:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MeasurementData), END_ELEMENT] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gSensorMeasurementsType->MeasurementData.arrayLen < v2gSensorMeasurementsType_MeasurementData_ARRAY_SIZE) {
- /* First(xsi:type)StartTag[CHARACTERS[UNSIGNED_INTEGER]] */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(errn == 0) {
- if(eventCode == 0) {
- errn = decodeUnsignedInteger16(stream, &v2gSensorMeasurementsType->MeasurementData.array[v2gSensorMeasurementsType->MeasurementData.arrayLen]);
- v2gSensorMeasurementsType->MeasurementData.arrayLen++;
- } else {
- /* Second level event (e.g., xsi:type, xsi:nil, ...) */
- errn = EXI_UNSUPPORTED_EVENT_CODE_CHARACTERISTICS;
- }
- }
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- if(errn == 0) {
- /* valid EE for simple element START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MeasurementData) ? */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(eventCode == 0) {
- grammarID = 434;
- } 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 434:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MeasurementData), END_ELEMENT] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gSensorMeasurementsType->MeasurementData.arrayLen < v2gSensorMeasurementsType_MeasurementData_ARRAY_SIZE) {
- /* First(xsi:type)StartTag[CHARACTERS[UNSIGNED_INTEGER]] */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(errn == 0) {
- if(eventCode == 0) {
- errn = decodeUnsignedInteger16(stream, &v2gSensorMeasurementsType->MeasurementData.array[v2gSensorMeasurementsType->MeasurementData.arrayLen]);
- v2gSensorMeasurementsType->MeasurementData.arrayLen++;
- } else {
- /* Second level event (e.g., xsi:type, xsi:nil, ...) */
- errn = EXI_UNSUPPORTED_EVENT_CODE_CHARACTERISTICS;
- }
- }
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- if(errn == 0) {
- /* valid EE for simple element START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MeasurementData) ? */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(eventCode == 0) {
- grammarID = 435;
- } 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 435:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MeasurementData), END_ELEMENT] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gSensorMeasurementsType->MeasurementData.arrayLen < v2gSensorMeasurementsType_MeasurementData_ARRAY_SIZE) {
- /* First(xsi:type)StartTag[CHARACTERS[UNSIGNED_INTEGER]] */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(errn == 0) {
- if(eventCode == 0) {
- errn = decodeUnsignedInteger16(stream, &v2gSensorMeasurementsType->MeasurementData.array[v2gSensorMeasurementsType->MeasurementData.arrayLen]);
- v2gSensorMeasurementsType->MeasurementData.arrayLen++;
- } else {
- /* Second level event (e.g., xsi:type, xsi:nil, ...) */
- errn = EXI_UNSUPPORTED_EVENT_CODE_CHARACTERISTICS;
- }
- }
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- if(errn == 0) {
- /* valid EE for simple element START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MeasurementData) ? */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(eventCode == 0) {
- grammarID = 436;
- } 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 436:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MeasurementData), END_ELEMENT] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gSensorMeasurementsType->MeasurementData.arrayLen < v2gSensorMeasurementsType_MeasurementData_ARRAY_SIZE) {
- /* First(xsi:type)StartTag[CHARACTERS[UNSIGNED_INTEGER]] */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(errn == 0) {
- if(eventCode == 0) {
- errn = decodeUnsignedInteger16(stream, &v2gSensorMeasurementsType->MeasurementData.array[v2gSensorMeasurementsType->MeasurementData.arrayLen]);
- v2gSensorMeasurementsType->MeasurementData.arrayLen++;
- } else {
- /* Second level event (e.g., xsi:type, xsi:nil, ...) */
- errn = EXI_UNSUPPORTED_EVENT_CODE_CHARACTERISTICS;
- }
- }
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- if(errn == 0) {
- /* valid EE for simple element START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MeasurementData) ? */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(eventCode == 0) {
- grammarID = 437;
- } 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 437:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MeasurementData), END_ELEMENT] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gSensorMeasurementsType->MeasurementData.arrayLen < v2gSensorMeasurementsType_MeasurementData_ARRAY_SIZE) {
- /* First(xsi:type)StartTag[CHARACTERS[UNSIGNED_INTEGER]] */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(errn == 0) {
- if(eventCode == 0) {
- errn = decodeUnsignedInteger16(stream, &v2gSensorMeasurementsType->MeasurementData.array[v2gSensorMeasurementsType->MeasurementData.arrayLen]);
- v2gSensorMeasurementsType->MeasurementData.arrayLen++;
- } else {
- /* Second level event (e.g., xsi:type, xsi:nil, ...) */
- errn = EXI_UNSUPPORTED_EVENT_CODE_CHARACTERISTICS;
- }
- }
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- if(errn == 0) {
- /* valid EE for simple element START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MeasurementData) ? */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(eventCode == 0) {
- grammarID = 438;
- } 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 438:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MeasurementData), END_ELEMENT] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gSensorMeasurementsType->MeasurementData.arrayLen < v2gSensorMeasurementsType_MeasurementData_ARRAY_SIZE) {
- /* First(xsi:type)StartTag[CHARACTERS[UNSIGNED_INTEGER]] */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(errn == 0) {
- if(eventCode == 0) {
- errn = decodeUnsignedInteger16(stream, &v2gSensorMeasurementsType->MeasurementData.array[v2gSensorMeasurementsType->MeasurementData.arrayLen]);
- v2gSensorMeasurementsType->MeasurementData.arrayLen++;
- } else {
- /* Second level event (e.g., xsi:type, xsi:nil, ...) */
- errn = EXI_UNSUPPORTED_EVENT_CODE_CHARACTERISTICS;
- }
- }
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- if(errn == 0) {
- /* valid EE for simple element START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MeasurementData) ? */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(eventCode == 0) {
- grammarID = 439;
- } 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 439:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MeasurementData), END_ELEMENT] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gSensorMeasurementsType->MeasurementData.arrayLen < v2gSensorMeasurementsType_MeasurementData_ARRAY_SIZE) {
- /* First(xsi:type)StartTag[CHARACTERS[UNSIGNED_INTEGER]] */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(errn == 0) {
- if(eventCode == 0) {
- errn = decodeUnsignedInteger16(stream, &v2gSensorMeasurementsType->MeasurementData.array[v2gSensorMeasurementsType->MeasurementData.arrayLen]);
- v2gSensorMeasurementsType->MeasurementData.arrayLen++;
- } else {
- /* Second level event (e.g., xsi:type, xsi:nil, ...) */
- errn = EXI_UNSUPPORTED_EVENT_CODE_CHARACTERISTICS;
- }
- }
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- if(errn == 0) {
- /* valid EE for simple element START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MeasurementData) ? */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(eventCode == 0) {
- grammarID = 440;
- } 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 440:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MeasurementData), END_ELEMENT] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gSensorMeasurementsType->MeasurementData.arrayLen < v2gSensorMeasurementsType_MeasurementData_ARRAY_SIZE) {
- /* First(xsi:type)StartTag[CHARACTERS[UNSIGNED_INTEGER]] */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(errn == 0) {
- if(eventCode == 0) {
- errn = decodeUnsignedInteger16(stream, &v2gSensorMeasurementsType->MeasurementData.array[v2gSensorMeasurementsType->MeasurementData.arrayLen]);
- v2gSensorMeasurementsType->MeasurementData.arrayLen++;
- } else {
- /* Second level event (e.g., xsi:type, xsi:nil, ...) */
- errn = EXI_UNSUPPORTED_EVENT_CODE_CHARACTERISTICS;
- }
- }
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- if(errn == 0) {
- /* valid EE for simple element START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MeasurementData) ? */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(eventCode == 0) {
- grammarID = 441;
- } 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 441:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MeasurementData), END_ELEMENT] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gSensorMeasurementsType->MeasurementData.arrayLen < v2gSensorMeasurementsType_MeasurementData_ARRAY_SIZE) {
- /* First(xsi:type)StartTag[CHARACTERS[UNSIGNED_INTEGER]] */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(errn == 0) {
- if(eventCode == 0) {
- errn = decodeUnsignedInteger16(stream, &v2gSensorMeasurementsType->MeasurementData.array[v2gSensorMeasurementsType->MeasurementData.arrayLen]);
- v2gSensorMeasurementsType->MeasurementData.arrayLen++;
- } else {
- /* Second level event (e.g., xsi:type, xsi:nil, ...) */
- errn = EXI_UNSUPPORTED_EVENT_CODE_CHARACTERISTICS;
- }
- }
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- if(errn == 0) {
- /* valid EE for simple element START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MeasurementData) ? */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(eventCode == 0) {
- grammarID = 442;
- } 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 442:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MeasurementData), END_ELEMENT] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gSensorMeasurementsType->MeasurementData.arrayLen < v2gSensorMeasurementsType_MeasurementData_ARRAY_SIZE) {
- /* First(xsi:type)StartTag[CHARACTERS[UNSIGNED_INTEGER]] */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(errn == 0) {
- if(eventCode == 0) {
- errn = decodeUnsignedInteger16(stream, &v2gSensorMeasurementsType->MeasurementData.array[v2gSensorMeasurementsType->MeasurementData.arrayLen]);
- v2gSensorMeasurementsType->MeasurementData.arrayLen++;
- } else {
- /* Second level event (e.g., xsi:type, xsi:nil, ...) */
- errn = EXI_UNSUPPORTED_EVENT_CODE_CHARACTERISTICS;
- }
- }
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- if(errn == 0) {
- /* valid EE for simple element START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MeasurementData) ? */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(eventCode == 0) {
- grammarID = 443;
- } 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 443:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MeasurementData), END_ELEMENT] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gSensorMeasurementsType->MeasurementData.arrayLen < v2gSensorMeasurementsType_MeasurementData_ARRAY_SIZE) {
- /* First(xsi:type)StartTag[CHARACTERS[UNSIGNED_INTEGER]] */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(errn == 0) {
- if(eventCode == 0) {
- errn = decodeUnsignedInteger16(stream, &v2gSensorMeasurementsType->MeasurementData.array[v2gSensorMeasurementsType->MeasurementData.arrayLen]);
- v2gSensorMeasurementsType->MeasurementData.arrayLen++;
- } else {
- /* Second level event (e.g., xsi:type, xsi:nil, ...) */
- errn = EXI_UNSUPPORTED_EVENT_CODE_CHARACTERISTICS;
- }
- }
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- if(errn == 0) {
- /* valid EE for simple element START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MeasurementData) ? */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(eventCode == 0) {
- grammarID = 444;
- } 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 444:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MeasurementData), END_ELEMENT] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gSensorMeasurementsType->MeasurementData.arrayLen < v2gSensorMeasurementsType_MeasurementData_ARRAY_SIZE) {
- /* First(xsi:type)StartTag[CHARACTERS[UNSIGNED_INTEGER]] */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(errn == 0) {
- if(eventCode == 0) {
- errn = decodeUnsignedInteger16(stream, &v2gSensorMeasurementsType->MeasurementData.array[v2gSensorMeasurementsType->MeasurementData.arrayLen]);
- v2gSensorMeasurementsType->MeasurementData.arrayLen++;
- } else {
- /* Second level event (e.g., xsi:type, xsi:nil, ...) */
- errn = EXI_UNSUPPORTED_EVENT_CODE_CHARACTERISTICS;
- }
- }
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- if(errn == 0) {
- /* valid EE for simple element START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MeasurementData) ? */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(eventCode == 0) {
- grammarID = 445;
- } 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 445:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MeasurementData), END_ELEMENT] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gSensorMeasurementsType->MeasurementData.arrayLen < v2gSensorMeasurementsType_MeasurementData_ARRAY_SIZE) {
- /* First(xsi:type)StartTag[CHARACTERS[UNSIGNED_INTEGER]] */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(errn == 0) {
- if(eventCode == 0) {
- errn = decodeUnsignedInteger16(stream, &v2gSensorMeasurementsType->MeasurementData.array[v2gSensorMeasurementsType->MeasurementData.arrayLen]);
- v2gSensorMeasurementsType->MeasurementData.arrayLen++;
- } else {
- /* Second level event (e.g., xsi:type, xsi:nil, ...) */
- errn = EXI_UNSUPPORTED_EVENT_CODE_CHARACTERISTICS;
- }
- }
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- if(errn == 0) {
- /* valid EE for simple element START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MeasurementData) ? */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(eventCode == 0) {
- grammarID = 446;
- } 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 446:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MeasurementData), END_ELEMENT] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gSensorMeasurementsType->MeasurementData.arrayLen < v2gSensorMeasurementsType_MeasurementData_ARRAY_SIZE) {
- /* First(xsi:type)StartTag[CHARACTERS[UNSIGNED_INTEGER]] */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(errn == 0) {
- if(eventCode == 0) {
- errn = decodeUnsignedInteger16(stream, &v2gSensorMeasurementsType->MeasurementData.array[v2gSensorMeasurementsType->MeasurementData.arrayLen]);
- v2gSensorMeasurementsType->MeasurementData.arrayLen++;
- } else {
- /* Second level event (e.g., xsi:type, xsi:nil, ...) */
- errn = EXI_UNSUPPORTED_EVENT_CODE_CHARACTERISTICS;
- }
- }
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- if(errn == 0) {
- /* valid EE for simple element START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MeasurementData) ? */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(eventCode == 0) {
- grammarID = 447;
- } 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 447:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MeasurementData), END_ELEMENT] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gSensorMeasurementsType->MeasurementData.arrayLen < v2gSensorMeasurementsType_MeasurementData_ARRAY_SIZE) {
- /* First(xsi:type)StartTag[CHARACTERS[UNSIGNED_INTEGER]] */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(errn == 0) {
- if(eventCode == 0) {
- errn = decodeUnsignedInteger16(stream, &v2gSensorMeasurementsType->MeasurementData.array[v2gSensorMeasurementsType->MeasurementData.arrayLen]);
- v2gSensorMeasurementsType->MeasurementData.arrayLen++;
- } else {
- /* Second level event (e.g., xsi:type, xsi:nil, ...) */
- errn = EXI_UNSUPPORTED_EVENT_CODE_CHARACTERISTICS;
- }
- }
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- if(errn == 0) {
- /* valid EE for simple element START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MeasurementData) ? */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(eventCode == 0) {
- grammarID = 448;
- } 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 448:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MeasurementData), END_ELEMENT] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gSensorMeasurementsType->MeasurementData.arrayLen < v2gSensorMeasurementsType_MeasurementData_ARRAY_SIZE) {
- /* First(xsi:type)StartTag[CHARACTERS[UNSIGNED_INTEGER]] */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(errn == 0) {
- if(eventCode == 0) {
- errn = decodeUnsignedInteger16(stream, &v2gSensorMeasurementsType->MeasurementData.array[v2gSensorMeasurementsType->MeasurementData.arrayLen]);
- v2gSensorMeasurementsType->MeasurementData.arrayLen++;
- } else {
- /* Second level event (e.g., xsi:type, xsi:nil, ...) */
- errn = EXI_UNSUPPORTED_EVENT_CODE_CHARACTERISTICS;
- }
- }
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- if(errn == 0) {
- /* valid EE for simple element START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MeasurementData) ? */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(eventCode == 0) {
- grammarID = 449;
- } 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 449:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MeasurementData), END_ELEMENT] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gSensorMeasurementsType->MeasurementData.arrayLen < v2gSensorMeasurementsType_MeasurementData_ARRAY_SIZE) {
- /* First(xsi:type)StartTag[CHARACTERS[UNSIGNED_INTEGER]] */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(errn == 0) {
- if(eventCode == 0) {
- errn = decodeUnsignedInteger16(stream, &v2gSensorMeasurementsType->MeasurementData.array[v2gSensorMeasurementsType->MeasurementData.arrayLen]);
- v2gSensorMeasurementsType->MeasurementData.arrayLen++;
- } else {
- /* Second level event (e.g., xsi:type, xsi:nil, ...) */
- errn = EXI_UNSUPPORTED_EVENT_CODE_CHARACTERISTICS;
- }
- }
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- if(errn == 0) {
- /* valid EE for simple element START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MeasurementData) ? */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(eventCode == 0) {
- grammarID = 450;
- } 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 450:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MeasurementData), END_ELEMENT] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gSensorMeasurementsType->MeasurementData.arrayLen < v2gSensorMeasurementsType_MeasurementData_ARRAY_SIZE) {
- /* First(xsi:type)StartTag[CHARACTERS[UNSIGNED_INTEGER]] */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(errn == 0) {
- if(eventCode == 0) {
- errn = decodeUnsignedInteger16(stream, &v2gSensorMeasurementsType->MeasurementData.array[v2gSensorMeasurementsType->MeasurementData.arrayLen]);
- v2gSensorMeasurementsType->MeasurementData.arrayLen++;
- } else {
- /* Second level event (e.g., xsi:type, xsi:nil, ...) */
- errn = EXI_UNSUPPORTED_EVENT_CODE_CHARACTERISTICS;
- }
- }
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- if(errn == 0) {
- /* valid EE for simple element START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MeasurementData) ? */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(eventCode == 0) {
- grammarID = 451;
- } 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 451:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MeasurementData), END_ELEMENT] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gSensorMeasurementsType->MeasurementData.arrayLen < v2gSensorMeasurementsType_MeasurementData_ARRAY_SIZE) {
- /* First(xsi:type)StartTag[CHARACTERS[UNSIGNED_INTEGER]] */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(errn == 0) {
- if(eventCode == 0) {
- errn = decodeUnsignedInteger16(stream, &v2gSensorMeasurementsType->MeasurementData.array[v2gSensorMeasurementsType->MeasurementData.arrayLen]);
- v2gSensorMeasurementsType->MeasurementData.arrayLen++;
- } else {
- /* Second level event (e.g., xsi:type, xsi:nil, ...) */
- errn = EXI_UNSUPPORTED_EVENT_CODE_CHARACTERISTICS;
- }
- }
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- if(errn == 0) {
- /* valid EE for simple element START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MeasurementData) ? */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(eventCode == 0) {
- grammarID = 452;
- } 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 452:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MeasurementData), END_ELEMENT] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gSensorMeasurementsType->MeasurementData.arrayLen < v2gSensorMeasurementsType_MeasurementData_ARRAY_SIZE) {
- /* First(xsi:type)StartTag[CHARACTERS[UNSIGNED_INTEGER]] */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(errn == 0) {
- if(eventCode == 0) {
- errn = decodeUnsignedInteger16(stream, &v2gSensorMeasurementsType->MeasurementData.array[v2gSensorMeasurementsType->MeasurementData.arrayLen]);
- v2gSensorMeasurementsType->MeasurementData.arrayLen++;
- } else {
- /* Second level event (e.g., xsi:type, xsi:nil, ...) */
- errn = EXI_UNSUPPORTED_EVENT_CODE_CHARACTERISTICS;
- }
- }
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- if(errn == 0) {
- /* valid EE for simple element START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MeasurementData) ? */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(eventCode == 0) {
- grammarID = 453;
- } 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 453:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MeasurementData), END_ELEMENT] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gSensorMeasurementsType->MeasurementData.arrayLen < v2gSensorMeasurementsType_MeasurementData_ARRAY_SIZE) {
- /* First(xsi:type)StartTag[CHARACTERS[UNSIGNED_INTEGER]] */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(errn == 0) {
- if(eventCode == 0) {
- errn = decodeUnsignedInteger16(stream, &v2gSensorMeasurementsType->MeasurementData.array[v2gSensorMeasurementsType->MeasurementData.arrayLen]);
- v2gSensorMeasurementsType->MeasurementData.arrayLen++;
- } else {
- /* Second level event (e.g., xsi:type, xsi:nil, ...) */
- errn = EXI_UNSUPPORTED_EVENT_CODE_CHARACTERISTICS;
- }
- }
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- if(errn == 0) {
- /* valid EE for simple element START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MeasurementData) ? */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(eventCode == 0) {
- grammarID = 454;
- } 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 454:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MeasurementData), END_ELEMENT] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gSensorMeasurementsType->MeasurementData.arrayLen < v2gSensorMeasurementsType_MeasurementData_ARRAY_SIZE) {
- /* First(xsi:type)StartTag[CHARACTERS[UNSIGNED_INTEGER]] */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(errn == 0) {
- if(eventCode == 0) {
- errn = decodeUnsignedInteger16(stream, &v2gSensorMeasurementsType->MeasurementData.array[v2gSensorMeasurementsType->MeasurementData.arrayLen]);
- v2gSensorMeasurementsType->MeasurementData.arrayLen++;
- } else {
- /* Second level event (e.g., xsi:type, xsi:nil, ...) */
- errn = EXI_UNSUPPORTED_EVENT_CODE_CHARACTERISTICS;
- }
- }
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- if(errn == 0) {
- /* valid EE for simple element START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MeasurementData) ? */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(eventCode == 0) {
- grammarID = 455;
- } 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 455:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MeasurementData), END_ELEMENT] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gSensorMeasurementsType->MeasurementData.arrayLen < v2gSensorMeasurementsType_MeasurementData_ARRAY_SIZE) {
- /* First(xsi:type)StartTag[CHARACTERS[UNSIGNED_INTEGER]] */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(errn == 0) {
- if(eventCode == 0) {
- errn = decodeUnsignedInteger16(stream, &v2gSensorMeasurementsType->MeasurementData.array[v2gSensorMeasurementsType->MeasurementData.arrayLen]);
- v2gSensorMeasurementsType->MeasurementData.arrayLen++;
- } else {
- /* Second level event (e.g., xsi:type, xsi:nil, ...) */
- errn = EXI_UNSUPPORTED_EVENT_CODE_CHARACTERISTICS;
- }
- }
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- if(errn == 0) {
- /* valid EE for simple element START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MeasurementData) ? */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(eventCode == 0) {
- grammarID = 456;
- } 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 456:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MeasurementData), END_ELEMENT] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gSensorMeasurementsType->MeasurementData.arrayLen < v2gSensorMeasurementsType_MeasurementData_ARRAY_SIZE) {
- /* First(xsi:type)StartTag[CHARACTERS[UNSIGNED_INTEGER]] */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(errn == 0) {
- if(eventCode == 0) {
- errn = decodeUnsignedInteger16(stream, &v2gSensorMeasurementsType->MeasurementData.array[v2gSensorMeasurementsType->MeasurementData.arrayLen]);
- v2gSensorMeasurementsType->MeasurementData.arrayLen++;
- } else {
- /* Second level event (e.g., xsi:type, xsi:nil, ...) */
- errn = EXI_UNSUPPORTED_EVENT_CODE_CHARACTERISTICS;
- }
- }
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- if(errn == 0) {
- /* valid EE for simple element START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MeasurementData) ? */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(eventCode == 0) {
- grammarID = 457;
- } 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 457:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MeasurementData), END_ELEMENT] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gSensorMeasurementsType->MeasurementData.arrayLen < v2gSensorMeasurementsType_MeasurementData_ARRAY_SIZE) {
- /* First(xsi:type)StartTag[CHARACTERS[UNSIGNED_INTEGER]] */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(errn == 0) {
- if(eventCode == 0) {
- errn = decodeUnsignedInteger16(stream, &v2gSensorMeasurementsType->MeasurementData.array[v2gSensorMeasurementsType->MeasurementData.arrayLen]);
- v2gSensorMeasurementsType->MeasurementData.arrayLen++;
- } else {
- /* Second level event (e.g., xsi:type, xsi:nil, ...) */
- errn = EXI_UNSUPPORTED_EVENT_CODE_CHARACTERISTICS;
- }
- }
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- if(errn == 0) {
- /* valid EE for simple element START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MeasurementData) ? */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(eventCode == 0) {
- grammarID = 458;
- } 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 458:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MeasurementData), END_ELEMENT] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gSensorMeasurementsType->MeasurementData.arrayLen < v2gSensorMeasurementsType_MeasurementData_ARRAY_SIZE) {
- /* First(xsi:type)StartTag[CHARACTERS[UNSIGNED_INTEGER]] */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(errn == 0) {
- if(eventCode == 0) {
- errn = decodeUnsignedInteger16(stream, &v2gSensorMeasurementsType->MeasurementData.array[v2gSensorMeasurementsType->MeasurementData.arrayLen]);
- v2gSensorMeasurementsType->MeasurementData.arrayLen++;
- } else {
- /* Second level event (e.g., xsi:type, xsi:nil, ...) */
- errn = EXI_UNSUPPORTED_EVENT_CODE_CHARACTERISTICS;
- }
- }
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- if(errn == 0) {
- /* valid EE for simple element START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MeasurementData) ? */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(eventCode == 0) {
- grammarID = 459;
- } 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 459:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MeasurementData), END_ELEMENT] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gSensorMeasurementsType->MeasurementData.arrayLen < v2gSensorMeasurementsType_MeasurementData_ARRAY_SIZE) {
- /* First(xsi:type)StartTag[CHARACTERS[UNSIGNED_INTEGER]] */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(errn == 0) {
- if(eventCode == 0) {
- errn = decodeUnsignedInteger16(stream, &v2gSensorMeasurementsType->MeasurementData.array[v2gSensorMeasurementsType->MeasurementData.arrayLen]);
- v2gSensorMeasurementsType->MeasurementData.arrayLen++;
- } else {
- /* Second level event (e.g., xsi:type, xsi:nil, ...) */
- errn = EXI_UNSUPPORTED_EVENT_CODE_CHARACTERISTICS;
- }
- }
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- if(errn == 0) {
- /* valid EE for simple element START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MeasurementData) ? */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(eventCode == 0) {
- grammarID = 460;
- } 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 460:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MeasurementData), END_ELEMENT] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gSensorMeasurementsType->MeasurementData.arrayLen < v2gSensorMeasurementsType_MeasurementData_ARRAY_SIZE) {
- /* First(xsi:type)StartTag[CHARACTERS[UNSIGNED_INTEGER]] */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(errn == 0) {
- if(eventCode == 0) {
- errn = decodeUnsignedInteger16(stream, &v2gSensorMeasurementsType->MeasurementData.array[v2gSensorMeasurementsType->MeasurementData.arrayLen]);
- v2gSensorMeasurementsType->MeasurementData.arrayLen++;
- } else {
- /* Second level event (e.g., xsi:type, xsi:nil, ...) */
- errn = EXI_UNSUPPORTED_EVENT_CODE_CHARACTERISTICS;
- }
- }
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- if(errn == 0) {
- /* valid EE for simple element START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MeasurementData) ? */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(eventCode == 0) {
- grammarID = 461;
- } 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 461:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MeasurementData), END_ELEMENT] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gSensorMeasurementsType->MeasurementData.arrayLen < v2gSensorMeasurementsType_MeasurementData_ARRAY_SIZE) {
- /* First(xsi:type)StartTag[CHARACTERS[UNSIGNED_INTEGER]] */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(errn == 0) {
- if(eventCode == 0) {
- errn = decodeUnsignedInteger16(stream, &v2gSensorMeasurementsType->MeasurementData.array[v2gSensorMeasurementsType->MeasurementData.arrayLen]);
- v2gSensorMeasurementsType->MeasurementData.arrayLen++;
- } else {
- /* Second level event (e.g., xsi:type, xsi:nil, ...) */
- errn = EXI_UNSUPPORTED_EVENT_CODE_CHARACTERISTICS;
- }
- }
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- if(errn == 0) {
- /* valid EE for simple element START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MeasurementData) ? */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(eventCode == 0) {
- grammarID = 462;
- } 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 462:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MeasurementData), END_ELEMENT] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gSensorMeasurementsType->MeasurementData.arrayLen < v2gSensorMeasurementsType_MeasurementData_ARRAY_SIZE) {
- /* First(xsi:type)StartTag[CHARACTERS[UNSIGNED_INTEGER]] */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(errn == 0) {
- if(eventCode == 0) {
- errn = decodeUnsignedInteger16(stream, &v2gSensorMeasurementsType->MeasurementData.array[v2gSensorMeasurementsType->MeasurementData.arrayLen]);
- v2gSensorMeasurementsType->MeasurementData.arrayLen++;
- } else {
- /* Second level event (e.g., xsi:type, xsi:nil, ...) */
- errn = EXI_UNSUPPORTED_EVENT_CODE_CHARACTERISTICS;
- }
- }
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- if(errn == 0) {
- /* valid EE for simple element START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MeasurementData) ? */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(eventCode == 0) {
- grammarID = 463;
- } 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 463:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MeasurementData), END_ELEMENT] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gSensorMeasurementsType->MeasurementData.arrayLen < v2gSensorMeasurementsType_MeasurementData_ARRAY_SIZE) {
- /* First(xsi:type)StartTag[CHARACTERS[UNSIGNED_INTEGER]] */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(errn == 0) {
- if(eventCode == 0) {
- errn = decodeUnsignedInteger16(stream, &v2gSensorMeasurementsType->MeasurementData.array[v2gSensorMeasurementsType->MeasurementData.arrayLen]);
- v2gSensorMeasurementsType->MeasurementData.arrayLen++;
- } else {
- /* Second level event (e.g., xsi:type, xsi:nil, ...) */
- errn = EXI_UNSUPPORTED_EVENT_CODE_CHARACTERISTICS;
- }
- }
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- if(errn == 0) {
- /* valid EE for simple element START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MeasurementData) ? */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(eventCode == 0) {
- grammarID = 464;
- } 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 464:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MeasurementData), END_ELEMENT] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gSensorMeasurementsType->MeasurementData.arrayLen < v2gSensorMeasurementsType_MeasurementData_ARRAY_SIZE) {
- /* First(xsi:type)StartTag[CHARACTERS[UNSIGNED_INTEGER]] */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(errn == 0) {
- if(eventCode == 0) {
- errn = decodeUnsignedInteger16(stream, &v2gSensorMeasurementsType->MeasurementData.array[v2gSensorMeasurementsType->MeasurementData.arrayLen]);
- v2gSensorMeasurementsType->MeasurementData.arrayLen++;
- } else {
- /* Second level event (e.g., xsi:type, xsi:nil, ...) */
- errn = EXI_UNSUPPORTED_EVENT_CODE_CHARACTERISTICS;
- }
- }
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- if(errn == 0) {
- /* valid EE for simple element START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MeasurementData) ? */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(eventCode == 0) {
- grammarID = 465;
- } 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 465:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MeasurementData), END_ELEMENT] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gSensorMeasurementsType->MeasurementData.arrayLen < v2gSensorMeasurementsType_MeasurementData_ARRAY_SIZE) {
- /* First(xsi:type)StartTag[CHARACTERS[UNSIGNED_INTEGER]] */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(errn == 0) {
- if(eventCode == 0) {
- errn = decodeUnsignedInteger16(stream, &v2gSensorMeasurementsType->MeasurementData.array[v2gSensorMeasurementsType->MeasurementData.arrayLen]);
- v2gSensorMeasurementsType->MeasurementData.arrayLen++;
- } else {
- /* Second level event (e.g., xsi:type, xsi:nil, ...) */
- errn = EXI_UNSUPPORTED_EVENT_CODE_CHARACTERISTICS;
- }
- }
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- if(errn == 0) {
- /* valid EE for simple element START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MeasurementData) ? */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(eventCode == 0) {
- grammarID = 466;
- } 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 466:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MeasurementData), END_ELEMENT] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gSensorMeasurementsType->MeasurementData.arrayLen < v2gSensorMeasurementsType_MeasurementData_ARRAY_SIZE) {
- /* First(xsi:type)StartTag[CHARACTERS[UNSIGNED_INTEGER]] */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(errn == 0) {
- if(eventCode == 0) {
- errn = decodeUnsignedInteger16(stream, &v2gSensorMeasurementsType->MeasurementData.array[v2gSensorMeasurementsType->MeasurementData.arrayLen]);
- v2gSensorMeasurementsType->MeasurementData.arrayLen++;
- } else {
- /* Second level event (e.g., xsi:type, xsi:nil, ...) */
- errn = EXI_UNSUPPORTED_EVENT_CODE_CHARACTERISTICS;
- }
- }
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- if(errn == 0) {
- /* valid EE for simple element START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MeasurementData) ? */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(eventCode == 0) {
- grammarID = 467;
- } 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 467:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MeasurementData), END_ELEMENT] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gSensorMeasurementsType->MeasurementData.arrayLen < v2gSensorMeasurementsType_MeasurementData_ARRAY_SIZE) {
- /* First(xsi:type)StartTag[CHARACTERS[UNSIGNED_INTEGER]] */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(errn == 0) {
- if(eventCode == 0) {
- errn = decodeUnsignedInteger16(stream, &v2gSensorMeasurementsType->MeasurementData.array[v2gSensorMeasurementsType->MeasurementData.arrayLen]);
- v2gSensorMeasurementsType->MeasurementData.arrayLen++;
- } else {
- /* Second level event (e.g., xsi:type, xsi:nil, ...) */
- errn = EXI_UNSUPPORTED_EVENT_CODE_CHARACTERISTICS;
- }
- }
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- if(errn == 0) {
- /* valid EE for simple element START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MeasurementData) ? */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(eventCode == 0) {
- grammarID = 468;
- } 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 468:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MeasurementData), END_ELEMENT] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gSensorMeasurementsType->MeasurementData.arrayLen < v2gSensorMeasurementsType_MeasurementData_ARRAY_SIZE) {
- /* First(xsi:type)StartTag[CHARACTERS[UNSIGNED_INTEGER]] */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(errn == 0) {
- if(eventCode == 0) {
- errn = decodeUnsignedInteger16(stream, &v2gSensorMeasurementsType->MeasurementData.array[v2gSensorMeasurementsType->MeasurementData.arrayLen]);
- v2gSensorMeasurementsType->MeasurementData.arrayLen++;
- } else {
- /* Second level event (e.g., xsi:type, xsi:nil, ...) */
- errn = EXI_UNSUPPORTED_EVENT_CODE_CHARACTERISTICS;
- }
- }
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- if(errn == 0) {
- /* valid EE for simple element START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MeasurementData) ? */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(eventCode == 0) {
- grammarID = 469;
- } 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 469:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MeasurementData), END_ELEMENT] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gSensorMeasurementsType->MeasurementData.arrayLen < v2gSensorMeasurementsType_MeasurementData_ARRAY_SIZE) {
- /* First(xsi:type)StartTag[CHARACTERS[UNSIGNED_INTEGER]] */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(errn == 0) {
- if(eventCode == 0) {
- errn = decodeUnsignedInteger16(stream, &v2gSensorMeasurementsType->MeasurementData.array[v2gSensorMeasurementsType->MeasurementData.arrayLen]);
- v2gSensorMeasurementsType->MeasurementData.arrayLen++;
- } else {
- /* Second level event (e.g., xsi:type, xsi:nil, ...) */
- errn = EXI_UNSUPPORTED_EVENT_CODE_CHARACTERISTICS;
- }
- }
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- if(errn == 0) {
- /* valid EE for simple element START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MeasurementData) ? */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(eventCode == 0) {
- grammarID = 470;
- } 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 470:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MeasurementData), END_ELEMENT] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gSensorMeasurementsType->MeasurementData.arrayLen < v2gSensorMeasurementsType_MeasurementData_ARRAY_SIZE) {
- /* First(xsi:type)StartTag[CHARACTERS[UNSIGNED_INTEGER]] */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(errn == 0) {
- if(eventCode == 0) {
- errn = decodeUnsignedInteger16(stream, &v2gSensorMeasurementsType->MeasurementData.array[v2gSensorMeasurementsType->MeasurementData.arrayLen]);
- v2gSensorMeasurementsType->MeasurementData.arrayLen++;
- } else {
- /* Second level event (e.g., xsi:type, xsi:nil, ...) */
- errn = EXI_UNSUPPORTED_EVENT_CODE_CHARACTERISTICS;
- }
- }
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- if(errn == 0) {
- /* valid EE for simple element START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MeasurementData) ? */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(eventCode == 0) {
- grammarID = 471;
- } 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 471:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MeasurementData), END_ELEMENT] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gSensorMeasurementsType->MeasurementData.arrayLen < v2gSensorMeasurementsType_MeasurementData_ARRAY_SIZE) {
- /* First(xsi:type)StartTag[CHARACTERS[UNSIGNED_INTEGER]] */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(errn == 0) {
- if(eventCode == 0) {
- errn = decodeUnsignedInteger16(stream, &v2gSensorMeasurementsType->MeasurementData.array[v2gSensorMeasurementsType->MeasurementData.arrayLen]);
- v2gSensorMeasurementsType->MeasurementData.arrayLen++;
- } else {
- /* Second level event (e.g., xsi:type, xsi:nil, ...) */
- errn = EXI_UNSUPPORTED_EVENT_CODE_CHARACTERISTICS;
- }
- }
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- if(errn == 0) {
- /* valid EE for simple element START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MeasurementData) ? */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(eventCode == 0) {
- grammarID = 472;
- } 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 472:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MeasurementData), END_ELEMENT] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gSensorMeasurementsType->MeasurementData.arrayLen < v2gSensorMeasurementsType_MeasurementData_ARRAY_SIZE) {
- /* First(xsi:type)StartTag[CHARACTERS[UNSIGNED_INTEGER]] */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(errn == 0) {
- if(eventCode == 0) {
- errn = decodeUnsignedInteger16(stream, &v2gSensorMeasurementsType->MeasurementData.array[v2gSensorMeasurementsType->MeasurementData.arrayLen]);
- v2gSensorMeasurementsType->MeasurementData.arrayLen++;
- } else {
- /* Second level event (e.g., xsi:type, xsi:nil, ...) */
- errn = EXI_UNSUPPORTED_EVENT_CODE_CHARACTERISTICS;
- }
- }
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- if(errn == 0) {
- /* valid EE for simple element START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MeasurementData) ? */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(eventCode == 0) {
- grammarID = 473;
- } 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 473:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MeasurementData), END_ELEMENT] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gSensorMeasurementsType->MeasurementData.arrayLen < v2gSensorMeasurementsType_MeasurementData_ARRAY_SIZE) {
- /* First(xsi:type)StartTag[CHARACTERS[UNSIGNED_INTEGER]] */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(errn == 0) {
- if(eventCode == 0) {
- errn = decodeUnsignedInteger16(stream, &v2gSensorMeasurementsType->MeasurementData.array[v2gSensorMeasurementsType->MeasurementData.arrayLen]);
- v2gSensorMeasurementsType->MeasurementData.arrayLen++;
- } else {
- /* Second level event (e.g., xsi:type, xsi:nil, ...) */
- errn = EXI_UNSUPPORTED_EVENT_CODE_CHARACTERISTICS;
- }
- }
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- if(errn == 0) {
- /* valid EE for simple element START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MeasurementData) ? */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(eventCode == 0) {
- grammarID = 474;
- } 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 474:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MeasurementData), END_ELEMENT] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gSensorMeasurementsType->MeasurementData.arrayLen < v2gSensorMeasurementsType_MeasurementData_ARRAY_SIZE) {
- /* First(xsi:type)StartTag[CHARACTERS[UNSIGNED_INTEGER]] */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(errn == 0) {
- if(eventCode == 0) {
- errn = decodeUnsignedInteger16(stream, &v2gSensorMeasurementsType->MeasurementData.array[v2gSensorMeasurementsType->MeasurementData.arrayLen]);
- v2gSensorMeasurementsType->MeasurementData.arrayLen++;
- } else {
- /* Second level event (e.g., xsi:type, xsi:nil, ...) */
- errn = EXI_UNSUPPORTED_EVENT_CODE_CHARACTERISTICS;
- }
- }
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- if(errn == 0) {
- /* valid EE for simple element START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MeasurementData) ? */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(eventCode == 0) {
- grammarID = 475;
- } 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 475:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MeasurementData), END_ELEMENT] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gSensorMeasurementsType->MeasurementData.arrayLen < v2gSensorMeasurementsType_MeasurementData_ARRAY_SIZE) {
- /* First(xsi:type)StartTag[CHARACTERS[UNSIGNED_INTEGER]] */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(errn == 0) {
- if(eventCode == 0) {
- errn = decodeUnsignedInteger16(stream, &v2gSensorMeasurementsType->MeasurementData.array[v2gSensorMeasurementsType->MeasurementData.arrayLen]);
- v2gSensorMeasurementsType->MeasurementData.arrayLen++;
- } else {
- /* Second level event (e.g., xsi:type, xsi:nil, ...) */
- errn = EXI_UNSUPPORTED_EVENT_CODE_CHARACTERISTICS;
- }
- }
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- if(errn == 0) {
- /* valid EE for simple element START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MeasurementData) ? */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(eventCode == 0) {
- grammarID = 476;
- } 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 476:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MeasurementData), END_ELEMENT] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gSensorMeasurementsType->MeasurementData.arrayLen < v2gSensorMeasurementsType_MeasurementData_ARRAY_SIZE) {
- /* First(xsi:type)StartTag[CHARACTERS[UNSIGNED_INTEGER]] */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(errn == 0) {
- if(eventCode == 0) {
- errn = decodeUnsignedInteger16(stream, &v2gSensorMeasurementsType->MeasurementData.array[v2gSensorMeasurementsType->MeasurementData.arrayLen]);
- v2gSensorMeasurementsType->MeasurementData.arrayLen++;
- } else {
- /* Second level event (e.g., xsi:type, xsi:nil, ...) */
- errn = EXI_UNSUPPORTED_EVENT_CODE_CHARACTERISTICS;
- }
- }
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- if(errn == 0) {
- /* valid EE for simple element START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MeasurementData) ? */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(eventCode == 0) {
- grammarID = 477;
- } 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 477:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MeasurementData), END_ELEMENT] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gSensorMeasurementsType->MeasurementData.arrayLen < v2gSensorMeasurementsType_MeasurementData_ARRAY_SIZE) {
- /* First(xsi:type)StartTag[CHARACTERS[UNSIGNED_INTEGER]] */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(errn == 0) {
- if(eventCode == 0) {
- errn = decodeUnsignedInteger16(stream, &v2gSensorMeasurementsType->MeasurementData.array[v2gSensorMeasurementsType->MeasurementData.arrayLen]);
- v2gSensorMeasurementsType->MeasurementData.arrayLen++;
- } else {
- /* Second level event (e.g., xsi:type, xsi:nil, ...) */
- errn = EXI_UNSUPPORTED_EVENT_CODE_CHARACTERISTICS;
- }
- }
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- if(errn == 0) {
- /* valid EE for simple element START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MeasurementData) ? */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(eventCode == 0) {
- grammarID = 478;
- } 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 478:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MeasurementData), END_ELEMENT] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gSensorMeasurementsType->MeasurementData.arrayLen < v2gSensorMeasurementsType_MeasurementData_ARRAY_SIZE) {
- /* First(xsi:type)StartTag[CHARACTERS[UNSIGNED_INTEGER]] */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(errn == 0) {
- if(eventCode == 0) {
- errn = decodeUnsignedInteger16(stream, &v2gSensorMeasurementsType->MeasurementData.array[v2gSensorMeasurementsType->MeasurementData.arrayLen]);
- v2gSensorMeasurementsType->MeasurementData.arrayLen++;
- } else {
- /* Second level event (e.g., xsi:type, xsi:nil, ...) */
- errn = EXI_UNSUPPORTED_EVENT_CODE_CHARACTERISTICS;
- }
- }
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- if(errn == 0) {
- /* valid EE for simple element START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MeasurementData) ? */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(eventCode == 0) {
- grammarID = 479;
- } 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 479:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MeasurementData), END_ELEMENT] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gSensorMeasurementsType->MeasurementData.arrayLen < v2gSensorMeasurementsType_MeasurementData_ARRAY_SIZE) {
- /* First(xsi:type)StartTag[CHARACTERS[UNSIGNED_INTEGER]] */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(errn == 0) {
- if(eventCode == 0) {
- errn = decodeUnsignedInteger16(stream, &v2gSensorMeasurementsType->MeasurementData.array[v2gSensorMeasurementsType->MeasurementData.arrayLen]);
- v2gSensorMeasurementsType->MeasurementData.arrayLen++;
- } else {
- /* Second level event (e.g., xsi:type, xsi:nil, ...) */
- errn = EXI_UNSUPPORTED_EVENT_CODE_CHARACTERISTICS;
- }
- }
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- if(errn == 0) {
- /* valid EE for simple element START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MeasurementData) ? */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(eventCode == 0) {
- grammarID = 480;
- } 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 480:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MeasurementData), END_ELEMENT] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gSensorMeasurementsType->MeasurementData.arrayLen < v2gSensorMeasurementsType_MeasurementData_ARRAY_SIZE) {
- /* First(xsi:type)StartTag[CHARACTERS[UNSIGNED_INTEGER]] */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(errn == 0) {
- if(eventCode == 0) {
- errn = decodeUnsignedInteger16(stream, &v2gSensorMeasurementsType->MeasurementData.array[v2gSensorMeasurementsType->MeasurementData.arrayLen]);
- v2gSensorMeasurementsType->MeasurementData.arrayLen++;
- } else {
- /* Second level event (e.g., xsi:type, xsi:nil, ...) */
- errn = EXI_UNSUPPORTED_EVENT_CODE_CHARACTERISTICS;
- }
- }
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- if(errn == 0) {
- /* valid EE for simple element START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MeasurementData) ? */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(eventCode == 0) {
- grammarID = 481;
- } 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 481:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MeasurementData), END_ELEMENT] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gSensorMeasurementsType->MeasurementData.arrayLen < v2gSensorMeasurementsType_MeasurementData_ARRAY_SIZE) {
- /* First(xsi:type)StartTag[CHARACTERS[UNSIGNED_INTEGER]] */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(errn == 0) {
- if(eventCode == 0) {
- errn = decodeUnsignedInteger16(stream, &v2gSensorMeasurementsType->MeasurementData.array[v2gSensorMeasurementsType->MeasurementData.arrayLen]);
- v2gSensorMeasurementsType->MeasurementData.arrayLen++;
- } else {
- /* Second level event (e.g., xsi:type, xsi:nil, ...) */
- errn = EXI_UNSUPPORTED_EVENT_CODE_CHARACTERISTICS;
- }
- }
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- if(errn == 0) {
- /* valid EE for simple element START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MeasurementData) ? */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(eventCode == 0) {
- grammarID = 482;
- } 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 482:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MeasurementData), END_ELEMENT] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gSensorMeasurementsType->MeasurementData.arrayLen < v2gSensorMeasurementsType_MeasurementData_ARRAY_SIZE) {
- /* First(xsi:type)StartTag[CHARACTERS[UNSIGNED_INTEGER]] */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(errn == 0) {
- if(eventCode == 0) {
- errn = decodeUnsignedInteger16(stream, &v2gSensorMeasurementsType->MeasurementData.array[v2gSensorMeasurementsType->MeasurementData.arrayLen]);
- v2gSensorMeasurementsType->MeasurementData.arrayLen++;
- } else {
- /* Second level event (e.g., xsi:type, xsi:nil, ...) */
- errn = EXI_UNSUPPORTED_EVENT_CODE_CHARACTERISTICS;
- }
- }
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- if(errn == 0) {
- /* valid EE for simple element START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MeasurementData) ? */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(eventCode == 0) {
- grammarID = 483;
- } 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 483:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MeasurementData), END_ELEMENT] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gSensorMeasurementsType->MeasurementData.arrayLen < v2gSensorMeasurementsType_MeasurementData_ARRAY_SIZE) {
- /* First(xsi:type)StartTag[CHARACTERS[UNSIGNED_INTEGER]] */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(errn == 0) {
- if(eventCode == 0) {
- errn = decodeUnsignedInteger16(stream, &v2gSensorMeasurementsType->MeasurementData.array[v2gSensorMeasurementsType->MeasurementData.arrayLen]);
- v2gSensorMeasurementsType->MeasurementData.arrayLen++;
- } else {
- /* Second level event (e.g., xsi:type, xsi:nil, ...) */
- errn = EXI_UNSUPPORTED_EVENT_CODE_CHARACTERISTICS;
- }
- }
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- if(errn == 0) {
- /* valid EE for simple element START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MeasurementData) ? */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(eventCode == 0) {
- grammarID = 484;
- } 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 484:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MeasurementData), END_ELEMENT] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gSensorMeasurementsType->MeasurementData.arrayLen < v2gSensorMeasurementsType_MeasurementData_ARRAY_SIZE) {
- /* First(xsi:type)StartTag[CHARACTERS[UNSIGNED_INTEGER]] */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(errn == 0) {
- if(eventCode == 0) {
- errn = decodeUnsignedInteger16(stream, &v2gSensorMeasurementsType->MeasurementData.array[v2gSensorMeasurementsType->MeasurementData.arrayLen]);
- v2gSensorMeasurementsType->MeasurementData.arrayLen++;
- } else {
- /* Second level event (e.g., xsi:type, xsi:nil, ...) */
- errn = EXI_UNSUPPORTED_EVENT_CODE_CHARACTERISTICS;
- }
- }
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- if(errn == 0) {
- /* valid EE for simple element START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MeasurementData) ? */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(eventCode == 0) {
- grammarID = 485;
- } 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 485:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MeasurementData), END_ELEMENT] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gSensorMeasurementsType->MeasurementData.arrayLen < v2gSensorMeasurementsType_MeasurementData_ARRAY_SIZE) {
- /* First(xsi:type)StartTag[CHARACTERS[UNSIGNED_INTEGER]] */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(errn == 0) {
- if(eventCode == 0) {
- errn = decodeUnsignedInteger16(stream, &v2gSensorMeasurementsType->MeasurementData.array[v2gSensorMeasurementsType->MeasurementData.arrayLen]);
- v2gSensorMeasurementsType->MeasurementData.arrayLen++;
- } else {
- /* Second level event (e.g., xsi:type, xsi:nil, ...) */
- errn = EXI_UNSUPPORTED_EVENT_CODE_CHARACTERISTICS;
- }
- }
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- if(errn == 0) {
- /* valid EE for simple element START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MeasurementData) ? */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(eventCode == 0) {
- grammarID = 486;
- } 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 486:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MeasurementData), END_ELEMENT] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gSensorMeasurementsType->MeasurementData.arrayLen < v2gSensorMeasurementsType_MeasurementData_ARRAY_SIZE) {
- /* First(xsi:type)StartTag[CHARACTERS[UNSIGNED_INTEGER]] */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(errn == 0) {
- if(eventCode == 0) {
- errn = decodeUnsignedInteger16(stream, &v2gSensorMeasurementsType->MeasurementData.array[v2gSensorMeasurementsType->MeasurementData.arrayLen]);
- v2gSensorMeasurementsType->MeasurementData.arrayLen++;
- } else {
- /* Second level event (e.g., xsi:type, xsi:nil, ...) */
- errn = EXI_UNSUPPORTED_EVENT_CODE_CHARACTERISTICS;
- }
- }
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- if(errn == 0) {
- /* valid EE for simple element START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MeasurementData) ? */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(eventCode == 0) {
- grammarID = 487;
- } 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 487:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MeasurementData), END_ELEMENT] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gSensorMeasurementsType->MeasurementData.arrayLen < v2gSensorMeasurementsType_MeasurementData_ARRAY_SIZE) {
- /* First(xsi:type)StartTag[CHARACTERS[UNSIGNED_INTEGER]] */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(errn == 0) {
- if(eventCode == 0) {
- errn = decodeUnsignedInteger16(stream, &v2gSensorMeasurementsType->MeasurementData.array[v2gSensorMeasurementsType->MeasurementData.arrayLen]);
- v2gSensorMeasurementsType->MeasurementData.arrayLen++;
- } else {
- /* Second level event (e.g., xsi:type, xsi:nil, ...) */
- errn = EXI_UNSUPPORTED_EVENT_CODE_CHARACTERISTICS;
- }
- }
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- if(errn == 0) {
- /* valid EE for simple element START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MeasurementData) ? */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(eventCode == 0) {
- grammarID = 488;
- } 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 488:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MeasurementData), END_ELEMENT] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gSensorMeasurementsType->MeasurementData.arrayLen < v2gSensorMeasurementsType_MeasurementData_ARRAY_SIZE) {
- /* First(xsi:type)StartTag[CHARACTERS[UNSIGNED_INTEGER]] */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(errn == 0) {
- if(eventCode == 0) {
- errn = decodeUnsignedInteger16(stream, &v2gSensorMeasurementsType->MeasurementData.array[v2gSensorMeasurementsType->MeasurementData.arrayLen]);
- v2gSensorMeasurementsType->MeasurementData.arrayLen++;
- } else {
- /* Second level event (e.g., xsi:type, xsi:nil, ...) */
- errn = EXI_UNSUPPORTED_EVENT_CODE_CHARACTERISTICS;
- }
- }
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- if(errn == 0) {
- /* valid EE for simple element START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MeasurementData) ? */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(eventCode == 0) {
- grammarID = 489;
- } 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 489:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MeasurementData), END_ELEMENT] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gSensorMeasurementsType->MeasurementData.arrayLen < v2gSensorMeasurementsType_MeasurementData_ARRAY_SIZE) {
- /* First(xsi:type)StartTag[CHARACTERS[UNSIGNED_INTEGER]] */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(errn == 0) {
- if(eventCode == 0) {
- errn = decodeUnsignedInteger16(stream, &v2gSensorMeasurementsType->MeasurementData.array[v2gSensorMeasurementsType->MeasurementData.arrayLen]);
- v2gSensorMeasurementsType->MeasurementData.arrayLen++;
- } else {
- /* Second level event (e.g., xsi:type, xsi:nil, ...) */
- errn = EXI_UNSUPPORTED_EVENT_CODE_CHARACTERISTICS;
- }
- }
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- if(errn == 0) {
- /* valid EE for simple element START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MeasurementData) ? */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(eventCode == 0) {
- grammarID = 490;
- } 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 490:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MeasurementData), END_ELEMENT] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gSensorMeasurementsType->MeasurementData.arrayLen < v2gSensorMeasurementsType_MeasurementData_ARRAY_SIZE) {
- /* First(xsi:type)StartTag[CHARACTERS[UNSIGNED_INTEGER]] */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(errn == 0) {
- if(eventCode == 0) {
- errn = decodeUnsignedInteger16(stream, &v2gSensorMeasurementsType->MeasurementData.array[v2gSensorMeasurementsType->MeasurementData.arrayLen]);
- v2gSensorMeasurementsType->MeasurementData.arrayLen++;
- } else {
- /* Second level event (e.g., xsi:type, xsi:nil, ...) */
- errn = EXI_UNSUPPORTED_EVENT_CODE_CHARACTERISTICS;
- }
- }
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- if(errn == 0) {
- /* valid EE for simple element START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MeasurementData) ? */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(eventCode == 0) {
- grammarID = 491;
- } 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 491:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MeasurementData), END_ELEMENT] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gSensorMeasurementsType->MeasurementData.arrayLen < v2gSensorMeasurementsType_MeasurementData_ARRAY_SIZE) {
- /* First(xsi:type)StartTag[CHARACTERS[UNSIGNED_INTEGER]] */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(errn == 0) {
- if(eventCode == 0) {
- errn = decodeUnsignedInteger16(stream, &v2gSensorMeasurementsType->MeasurementData.array[v2gSensorMeasurementsType->MeasurementData.arrayLen]);
- v2gSensorMeasurementsType->MeasurementData.arrayLen++;
- } else {
- /* Second level event (e.g., xsi:type, xsi:nil, ...) */
- errn = EXI_UNSUPPORTED_EVENT_CODE_CHARACTERISTICS;
- }
- }
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- if(errn == 0) {
- /* valid EE for simple element START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MeasurementData) ? */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(eventCode == 0) {
- grammarID = 492;
- } 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 492:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MeasurementData), END_ELEMENT] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gSensorMeasurementsType->MeasurementData.arrayLen < v2gSensorMeasurementsType_MeasurementData_ARRAY_SIZE) {
- /* First(xsi:type)StartTag[CHARACTERS[UNSIGNED_INTEGER]] */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(errn == 0) {
- if(eventCode == 0) {
- errn = decodeUnsignedInteger16(stream, &v2gSensorMeasurementsType->MeasurementData.array[v2gSensorMeasurementsType->MeasurementData.arrayLen]);
- v2gSensorMeasurementsType->MeasurementData.arrayLen++;
- } else {
- /* Second level event (e.g., xsi:type, xsi:nil, ...) */
- errn = EXI_UNSUPPORTED_EVENT_CODE_CHARACTERISTICS;
- }
- }
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- if(errn == 0) {
- /* valid EE for simple element START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MeasurementData) ? */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(eventCode == 0) {
- grammarID = 493;
- } 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 493:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MeasurementData), END_ELEMENT] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gSensorMeasurementsType->MeasurementData.arrayLen < v2gSensorMeasurementsType_MeasurementData_ARRAY_SIZE) {
- /* First(xsi:type)StartTag[CHARACTERS[UNSIGNED_INTEGER]] */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(errn == 0) {
- if(eventCode == 0) {
- errn = decodeUnsignedInteger16(stream, &v2gSensorMeasurementsType->MeasurementData.array[v2gSensorMeasurementsType->MeasurementData.arrayLen]);
- v2gSensorMeasurementsType->MeasurementData.arrayLen++;
- } else {
- /* Second level event (e.g., xsi:type, xsi:nil, ...) */
- errn = EXI_UNSUPPORTED_EVENT_CODE_CHARACTERISTICS;
- }
- }
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- if(errn == 0) {
- /* valid EE for simple element START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MeasurementData) ? */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(eventCode == 0) {
- grammarID = 494;
- } 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 494:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MeasurementData), END_ELEMENT] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gSensorMeasurementsType->MeasurementData.arrayLen < v2gSensorMeasurementsType_MeasurementData_ARRAY_SIZE) {
- /* First(xsi:type)StartTag[CHARACTERS[UNSIGNED_INTEGER]] */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(errn == 0) {
- if(eventCode == 0) {
- errn = decodeUnsignedInteger16(stream, &v2gSensorMeasurementsType->MeasurementData.array[v2gSensorMeasurementsType->MeasurementData.arrayLen]);
- v2gSensorMeasurementsType->MeasurementData.arrayLen++;
- } else {
- /* Second level event (e.g., xsi:type, xsi:nil, ...) */
- errn = EXI_UNSUPPORTED_EVENT_CODE_CHARACTERISTICS;
- }
- }
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- if(errn == 0) {
- /* valid EE for simple element START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MeasurementData) ? */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(eventCode == 0) {
- grammarID = 495;
- } 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 495:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MeasurementData), END_ELEMENT] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gSensorMeasurementsType->MeasurementData.arrayLen < v2gSensorMeasurementsType_MeasurementData_ARRAY_SIZE) {
- /* First(xsi:type)StartTag[CHARACTERS[UNSIGNED_INTEGER]] */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(errn == 0) {
- if(eventCode == 0) {
- errn = decodeUnsignedInteger16(stream, &v2gSensorMeasurementsType->MeasurementData.array[v2gSensorMeasurementsType->MeasurementData.arrayLen]);
- v2gSensorMeasurementsType->MeasurementData.arrayLen++;
- } else {
- /* Second level event (e.g., xsi:type, xsi:nil, ...) */
- errn = EXI_UNSUPPORTED_EVENT_CODE_CHARACTERISTICS;
- }
- }
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- if(errn == 0) {
- /* valid EE for simple element START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MeasurementData) ? */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(eventCode == 0) {
- grammarID = 496;
- } 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 496:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MeasurementData), END_ELEMENT] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gSensorMeasurementsType->MeasurementData.arrayLen < v2gSensorMeasurementsType_MeasurementData_ARRAY_SIZE) {
- /* First(xsi:type)StartTag[CHARACTERS[UNSIGNED_INTEGER]] */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(errn == 0) {
- if(eventCode == 0) {
- errn = decodeUnsignedInteger16(stream, &v2gSensorMeasurementsType->MeasurementData.array[v2gSensorMeasurementsType->MeasurementData.arrayLen]);
- v2gSensorMeasurementsType->MeasurementData.arrayLen++;
- } else {
- /* Second level event (e.g., xsi:type, xsi:nil, ...) */
- errn = EXI_UNSUPPORTED_EVENT_CODE_CHARACTERISTICS;
- }
- }
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- if(errn == 0) {
- /* valid EE for simple element START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MeasurementData) ? */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(eventCode == 0) {
- grammarID = 497;
- } 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 497:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MeasurementData), END_ELEMENT] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gSensorMeasurementsType->MeasurementData.arrayLen < v2gSensorMeasurementsType_MeasurementData_ARRAY_SIZE) {
- /* First(xsi:type)StartTag[CHARACTERS[UNSIGNED_INTEGER]] */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(errn == 0) {
- if(eventCode == 0) {
- errn = decodeUnsignedInteger16(stream, &v2gSensorMeasurementsType->MeasurementData.array[v2gSensorMeasurementsType->MeasurementData.arrayLen]);
- v2gSensorMeasurementsType->MeasurementData.arrayLen++;
- } else {
- /* Second level event (e.g., xsi:type, xsi:nil, ...) */
- errn = EXI_UNSUPPORTED_EVENT_CODE_CHARACTERISTICS;
- }
- }
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- if(errn == 0) {
- /* valid EE for simple element START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MeasurementData) ? */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(eventCode == 0) {
- grammarID = 498;
- } 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 498:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MeasurementData), END_ELEMENT] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gSensorMeasurementsType->MeasurementData.arrayLen < v2gSensorMeasurementsType_MeasurementData_ARRAY_SIZE) {
- /* First(xsi:type)StartTag[CHARACTERS[UNSIGNED_INTEGER]] */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(errn == 0) {
- if(eventCode == 0) {
- errn = decodeUnsignedInteger16(stream, &v2gSensorMeasurementsType->MeasurementData.array[v2gSensorMeasurementsType->MeasurementData.arrayLen]);
- v2gSensorMeasurementsType->MeasurementData.arrayLen++;
- } else {
- /* Second level event (e.g., xsi:type, xsi:nil, ...) */
- errn = EXI_UNSUPPORTED_EVENT_CODE_CHARACTERISTICS;
- }
- }
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- if(errn == 0) {
- /* valid EE for simple element START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MeasurementData) ? */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(eventCode == 0) {
- grammarID = 499;
- } 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 499:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MeasurementData), END_ELEMENT] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gSensorMeasurementsType->MeasurementData.arrayLen < v2gSensorMeasurementsType_MeasurementData_ARRAY_SIZE) {
- /* First(xsi:type)StartTag[CHARACTERS[UNSIGNED_INTEGER]] */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(errn == 0) {
- if(eventCode == 0) {
- errn = decodeUnsignedInteger16(stream, &v2gSensorMeasurementsType->MeasurementData.array[v2gSensorMeasurementsType->MeasurementData.arrayLen]);
- v2gSensorMeasurementsType->MeasurementData.arrayLen++;
- } else {
- /* Second level event (e.g., xsi:type, xsi:nil, ...) */
- errn = EXI_UNSUPPORTED_EVENT_CODE_CHARACTERISTICS;
- }
- }
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- if(errn == 0) {
- /* valid EE for simple element START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MeasurementData) ? */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(eventCode == 0) {
- grammarID = 500;
- } 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 500:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MeasurementData), END_ELEMENT] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gSensorMeasurementsType->MeasurementData.arrayLen < v2gSensorMeasurementsType_MeasurementData_ARRAY_SIZE) {
- /* First(xsi:type)StartTag[CHARACTERS[UNSIGNED_INTEGER]] */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(errn == 0) {
- if(eventCode == 0) {
- errn = decodeUnsignedInteger16(stream, &v2gSensorMeasurementsType->MeasurementData.array[v2gSensorMeasurementsType->MeasurementData.arrayLen]);
- v2gSensorMeasurementsType->MeasurementData.arrayLen++;
- } else {
- /* Second level event (e.g., xsi:type, xsi:nil, ...) */
- errn = EXI_UNSUPPORTED_EVENT_CODE_CHARACTERISTICS;
- }
- }
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- if(errn == 0) {
- /* valid EE for simple element START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MeasurementData) ? */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(eventCode == 0) {
- grammarID = 501;
- } 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 501:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MeasurementData), END_ELEMENT] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gSensorMeasurementsType->MeasurementData.arrayLen < v2gSensorMeasurementsType_MeasurementData_ARRAY_SIZE) {
- /* First(xsi:type)StartTag[CHARACTERS[UNSIGNED_INTEGER]] */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(errn == 0) {
- if(eventCode == 0) {
- errn = decodeUnsignedInteger16(stream, &v2gSensorMeasurementsType->MeasurementData.array[v2gSensorMeasurementsType->MeasurementData.arrayLen]);
- v2gSensorMeasurementsType->MeasurementData.arrayLen++;
- } else {
- /* Second level event (e.g., xsi:type, xsi:nil, ...) */
- errn = EXI_UNSUPPORTED_EVENT_CODE_CHARACTERISTICS;
- }
- }
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- if(errn == 0) {
- /* valid EE for simple element START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MeasurementData) ? */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(eventCode == 0) {
- grammarID = 502;
- } 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 502:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MeasurementData), END_ELEMENT] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gSensorMeasurementsType->MeasurementData.arrayLen < v2gSensorMeasurementsType_MeasurementData_ARRAY_SIZE) {
- /* First(xsi:type)StartTag[CHARACTERS[UNSIGNED_INTEGER]] */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(errn == 0) {
- if(eventCode == 0) {
- errn = decodeUnsignedInteger16(stream, &v2gSensorMeasurementsType->MeasurementData.array[v2gSensorMeasurementsType->MeasurementData.arrayLen]);
- v2gSensorMeasurementsType->MeasurementData.arrayLen++;
- } else {
- /* Second level event (e.g., xsi:type, xsi:nil, ...) */
- errn = EXI_UNSUPPORTED_EVENT_CODE_CHARACTERISTICS;
- }
- }
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- if(errn == 0) {
- /* valid EE for simple element START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MeasurementData) ? */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(eventCode == 0) {
- grammarID = 503;
- } 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 503:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MeasurementData), END_ELEMENT] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gSensorMeasurementsType->MeasurementData.arrayLen < v2gSensorMeasurementsType_MeasurementData_ARRAY_SIZE) {
- /* First(xsi:type)StartTag[CHARACTERS[UNSIGNED_INTEGER]] */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(errn == 0) {
- if(eventCode == 0) {
- errn = decodeUnsignedInteger16(stream, &v2gSensorMeasurementsType->MeasurementData.array[v2gSensorMeasurementsType->MeasurementData.arrayLen]);
- v2gSensorMeasurementsType->MeasurementData.arrayLen++;
- } else {
- /* Second level event (e.g., xsi:type, xsi:nil, ...) */
- errn = EXI_UNSUPPORTED_EVENT_CODE_CHARACTERISTICS;
- }
- }
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- if(errn == 0) {
- /* valid EE for simple element START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MeasurementData) ? */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(eventCode == 0) {
- grammarID = 504;
- } 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 504:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MeasurementData), END_ELEMENT] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gSensorMeasurementsType->MeasurementData.arrayLen < v2gSensorMeasurementsType_MeasurementData_ARRAY_SIZE) {
- /* First(xsi:type)StartTag[CHARACTERS[UNSIGNED_INTEGER]] */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(errn == 0) {
- if(eventCode == 0) {
- errn = decodeUnsignedInteger16(stream, &v2gSensorMeasurementsType->MeasurementData.array[v2gSensorMeasurementsType->MeasurementData.arrayLen]);
- v2gSensorMeasurementsType->MeasurementData.arrayLen++;
- } else {
- /* Second level event (e.g., xsi:type, xsi:nil, ...) */
- errn = EXI_UNSUPPORTED_EVENT_CODE_CHARACTERISTICS;
- }
- }
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- if(errn == 0) {
- /* valid EE for simple element START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MeasurementData) ? */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(eventCode == 0) {
- grammarID = 505;
- } 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 505:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MeasurementData), END_ELEMENT] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gSensorMeasurementsType->MeasurementData.arrayLen < v2gSensorMeasurementsType_MeasurementData_ARRAY_SIZE) {
- /* First(xsi:type)StartTag[CHARACTERS[UNSIGNED_INTEGER]] */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(errn == 0) {
- if(eventCode == 0) {
- errn = decodeUnsignedInteger16(stream, &v2gSensorMeasurementsType->MeasurementData.array[v2gSensorMeasurementsType->MeasurementData.arrayLen]);
- v2gSensorMeasurementsType->MeasurementData.arrayLen++;
- } else {
- /* Second level event (e.g., xsi:type, xsi:nil, ...) */
- errn = EXI_UNSUPPORTED_EVENT_CODE_CHARACTERISTICS;
- }
- }
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- if(errn == 0) {
- /* valid EE for simple element START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MeasurementData) ? */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(eventCode == 0) {
- grammarID = 506;
- } 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 506:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MeasurementData), END_ELEMENT] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gSensorMeasurementsType->MeasurementData.arrayLen < v2gSensorMeasurementsType_MeasurementData_ARRAY_SIZE) {
- /* First(xsi:type)StartTag[CHARACTERS[UNSIGNED_INTEGER]] */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(errn == 0) {
- if(eventCode == 0) {
- errn = decodeUnsignedInteger16(stream, &v2gSensorMeasurementsType->MeasurementData.array[v2gSensorMeasurementsType->MeasurementData.arrayLen]);
- v2gSensorMeasurementsType->MeasurementData.arrayLen++;
- } else {
- /* Second level event (e.g., xsi:type, xsi:nil, ...) */
- errn = EXI_UNSUPPORTED_EVENT_CODE_CHARACTERISTICS;
- }
- }
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- if(errn == 0) {
- /* valid EE for simple element START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MeasurementData) ? */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(eventCode == 0) {
- grammarID = 507;
- } 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 507:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MeasurementData), END_ELEMENT] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gSensorMeasurementsType->MeasurementData.arrayLen < v2gSensorMeasurementsType_MeasurementData_ARRAY_SIZE) {
- /* First(xsi:type)StartTag[CHARACTERS[UNSIGNED_INTEGER]] */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(errn == 0) {
- if(eventCode == 0) {
- errn = decodeUnsignedInteger16(stream, &v2gSensorMeasurementsType->MeasurementData.array[v2gSensorMeasurementsType->MeasurementData.arrayLen]);
- v2gSensorMeasurementsType->MeasurementData.arrayLen++;
- } else {
- /* Second level event (e.g., xsi:type, xsi:nil, ...) */
- errn = EXI_UNSUPPORTED_EVENT_CODE_CHARACTERISTICS;
- }
- }
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- if(errn == 0) {
- /* valid EE for simple element START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MeasurementData) ? */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(eventCode == 0) {
- grammarID = 508;
- } 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 508:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MeasurementData), END_ELEMENT] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gSensorMeasurementsType->MeasurementData.arrayLen < v2gSensorMeasurementsType_MeasurementData_ARRAY_SIZE) {
- /* First(xsi:type)StartTag[CHARACTERS[UNSIGNED_INTEGER]] */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(errn == 0) {
- if(eventCode == 0) {
- errn = decodeUnsignedInteger16(stream, &v2gSensorMeasurementsType->MeasurementData.array[v2gSensorMeasurementsType->MeasurementData.arrayLen]);
- v2gSensorMeasurementsType->MeasurementData.arrayLen++;
- } else {
- /* Second level event (e.g., xsi:type, xsi:nil, ...) */
- errn = EXI_UNSUPPORTED_EVENT_CODE_CHARACTERISTICS;
- }
- }
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- if(errn == 0) {
- /* valid EE for simple element START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MeasurementData) ? */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(eventCode == 0) {
- grammarID = 509;
- } 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 509:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MeasurementData), END_ELEMENT] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gSensorMeasurementsType->MeasurementData.arrayLen < v2gSensorMeasurementsType_MeasurementData_ARRAY_SIZE) {
- /* First(xsi:type)StartTag[CHARACTERS[UNSIGNED_INTEGER]] */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(errn == 0) {
- if(eventCode == 0) {
- errn = decodeUnsignedInteger16(stream, &v2gSensorMeasurementsType->MeasurementData.array[v2gSensorMeasurementsType->MeasurementData.arrayLen]);
- v2gSensorMeasurementsType->MeasurementData.arrayLen++;
- } else {
- /* Second level event (e.g., xsi:type, xsi:nil, ...) */
- errn = EXI_UNSUPPORTED_EVENT_CODE_CHARACTERISTICS;
- }
- }
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- if(errn == 0) {
- /* valid EE for simple element START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MeasurementData) ? */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(eventCode == 0) {
- grammarID = 510;
- } 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 510:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MeasurementData), END_ELEMENT] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gSensorMeasurementsType->MeasurementData.arrayLen < v2gSensorMeasurementsType_MeasurementData_ARRAY_SIZE) {
- /* First(xsi:type)StartTag[CHARACTERS[UNSIGNED_INTEGER]] */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(errn == 0) {
- if(eventCode == 0) {
- errn = decodeUnsignedInteger16(stream, &v2gSensorMeasurementsType->MeasurementData.array[v2gSensorMeasurementsType->MeasurementData.arrayLen]);
- v2gSensorMeasurementsType->MeasurementData.arrayLen++;
- } else {
- /* Second level event (e.g., xsi:type, xsi:nil, ...) */
- errn = EXI_UNSUPPORTED_EVENT_CODE_CHARACTERISTICS;
- }
- }
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- if(errn == 0) {
- /* valid EE for simple element START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MeasurementData) ? */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(eventCode == 0) {
- grammarID = 511;
- } 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 511:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MeasurementData), END_ELEMENT] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gSensorMeasurementsType->MeasurementData.arrayLen < v2gSensorMeasurementsType_MeasurementData_ARRAY_SIZE) {
- /* First(xsi:type)StartTag[CHARACTERS[UNSIGNED_INTEGER]] */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(errn == 0) {
- if(eventCode == 0) {
- errn = decodeUnsignedInteger16(stream, &v2gSensorMeasurementsType->MeasurementData.array[v2gSensorMeasurementsType->MeasurementData.arrayLen]);
- v2gSensorMeasurementsType->MeasurementData.arrayLen++;
- } else {
- /* Second level event (e.g., xsi:type, xsi:nil, ...) */
- errn = EXI_UNSUPPORTED_EVENT_CODE_CHARACTERISTICS;
- }
- }
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- if(errn == 0) {
- /* valid EE for simple element START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MeasurementData) ? */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(eventCode == 0) {
- grammarID = 512;
- } 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 512:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MeasurementData), END_ELEMENT] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gSensorMeasurementsType->MeasurementData.arrayLen < v2gSensorMeasurementsType_MeasurementData_ARRAY_SIZE) {
- /* First(xsi:type)StartTag[CHARACTERS[UNSIGNED_INTEGER]] */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(errn == 0) {
- if(eventCode == 0) {
- errn = decodeUnsignedInteger16(stream, &v2gSensorMeasurementsType->MeasurementData.array[v2gSensorMeasurementsType->MeasurementData.arrayLen]);
- v2gSensorMeasurementsType->MeasurementData.arrayLen++;
- } else {
- /* Second level event (e.g., xsi:type, xsi:nil, ...) */
- errn = EXI_UNSUPPORTED_EVENT_CODE_CHARACTERISTICS;
- }
- }
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- if(errn == 0) {
- /* valid EE for simple element START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MeasurementData) ? */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(eventCode == 0) {
- grammarID = 513;
- } 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 513:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MeasurementData), END_ELEMENT] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gSensorMeasurementsType->MeasurementData.arrayLen < v2gSensorMeasurementsType_MeasurementData_ARRAY_SIZE) {
- /* First(xsi:type)StartTag[CHARACTERS[UNSIGNED_INTEGER]] */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(errn == 0) {
- if(eventCode == 0) {
- errn = decodeUnsignedInteger16(stream, &v2gSensorMeasurementsType->MeasurementData.array[v2gSensorMeasurementsType->MeasurementData.arrayLen]);
- v2gSensorMeasurementsType->MeasurementData.arrayLen++;
- } else {
- /* Second level event (e.g., xsi:type, xsi:nil, ...) */
- errn = EXI_UNSUPPORTED_EVENT_CODE_CHARACTERISTICS;
- }
- }
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- if(errn == 0) {
- /* valid EE for simple element START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MeasurementData) ? */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(eventCode == 0) {
- grammarID = 514;
- } 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 514:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MeasurementData), END_ELEMENT] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gSensorMeasurementsType->MeasurementData.arrayLen < v2gSensorMeasurementsType_MeasurementData_ARRAY_SIZE) {
- /* First(xsi:type)StartTag[CHARACTERS[UNSIGNED_INTEGER]] */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(errn == 0) {
- if(eventCode == 0) {
- errn = decodeUnsignedInteger16(stream, &v2gSensorMeasurementsType->MeasurementData.array[v2gSensorMeasurementsType->MeasurementData.arrayLen]);
- v2gSensorMeasurementsType->MeasurementData.arrayLen++;
- } else {
- /* Second level event (e.g., xsi:type, xsi:nil, ...) */
- errn = EXI_UNSUPPORTED_EVENT_CODE_CHARACTERISTICS;
- }
- }
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- if(errn == 0) {
- /* valid EE for simple element START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MeasurementData) ? */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(eventCode == 0) {
- grammarID = 515;
- } 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 515:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MeasurementData), END_ELEMENT] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gSensorMeasurementsType->MeasurementData.arrayLen < v2gSensorMeasurementsType_MeasurementData_ARRAY_SIZE) {
- /* First(xsi:type)StartTag[CHARACTERS[UNSIGNED_INTEGER]] */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(errn == 0) {
- if(eventCode == 0) {
- errn = decodeUnsignedInteger16(stream, &v2gSensorMeasurementsType->MeasurementData.array[v2gSensorMeasurementsType->MeasurementData.arrayLen]);
- v2gSensorMeasurementsType->MeasurementData.arrayLen++;
- } else {
- /* Second level event (e.g., xsi:type, xsi:nil, ...) */
- errn = EXI_UNSUPPORTED_EVENT_CODE_CHARACTERISTICS;
- }
- }
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- if(errn == 0) {
- /* valid EE for simple element START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MeasurementData) ? */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(eventCode == 0) {
- grammarID = 516;
- } 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 516:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MeasurementData), END_ELEMENT] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gSensorMeasurementsType->MeasurementData.arrayLen < v2gSensorMeasurementsType_MeasurementData_ARRAY_SIZE) {
- /* First(xsi:type)StartTag[CHARACTERS[UNSIGNED_INTEGER]] */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(errn == 0) {
- if(eventCode == 0) {
- errn = decodeUnsignedInteger16(stream, &v2gSensorMeasurementsType->MeasurementData.array[v2gSensorMeasurementsType->MeasurementData.arrayLen]);
- v2gSensorMeasurementsType->MeasurementData.arrayLen++;
- } else {
- /* Second level event (e.g., xsi:type, xsi:nil, ...) */
- errn = EXI_UNSUPPORTED_EVENT_CODE_CHARACTERISTICS;
- }
- }
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- if(errn == 0) {
- /* valid EE for simple element START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MeasurementData) ? */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(eventCode == 0) {
- grammarID = 517;
- } 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 517:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MeasurementData), END_ELEMENT] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gSensorMeasurementsType->MeasurementData.arrayLen < v2gSensorMeasurementsType_MeasurementData_ARRAY_SIZE) {
- /* First(xsi:type)StartTag[CHARACTERS[UNSIGNED_INTEGER]] */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(errn == 0) {
- if(eventCode == 0) {
- errn = decodeUnsignedInteger16(stream, &v2gSensorMeasurementsType->MeasurementData.array[v2gSensorMeasurementsType->MeasurementData.arrayLen]);
- v2gSensorMeasurementsType->MeasurementData.arrayLen++;
- } else {
- /* Second level event (e.g., xsi:type, xsi:nil, ...) */
- errn = EXI_UNSUPPORTED_EVENT_CODE_CHARACTERISTICS;
- }
- }
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- if(errn == 0) {
- /* valid EE for simple element START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MeasurementData) ? */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(eventCode == 0) {
- grammarID = 518;
- } 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 518:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MeasurementData), END_ELEMENT] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gSensorMeasurementsType->MeasurementData.arrayLen < v2gSensorMeasurementsType_MeasurementData_ARRAY_SIZE) {
- /* First(xsi:type)StartTag[CHARACTERS[UNSIGNED_INTEGER]] */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(errn == 0) {
- if(eventCode == 0) {
- errn = decodeUnsignedInteger16(stream, &v2gSensorMeasurementsType->MeasurementData.array[v2gSensorMeasurementsType->MeasurementData.arrayLen]);
- v2gSensorMeasurementsType->MeasurementData.arrayLen++;
- } else {
- /* Second level event (e.g., xsi:type, xsi:nil, ...) */
- errn = EXI_UNSUPPORTED_EVENT_CODE_CHARACTERISTICS;
- }
- }
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- if(errn == 0) {
- /* valid EE for simple element START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MeasurementData) ? */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(eventCode == 0) {
- grammarID = 519;
- } 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 519:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MeasurementData), END_ELEMENT] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gSensorMeasurementsType->MeasurementData.arrayLen < v2gSensorMeasurementsType_MeasurementData_ARRAY_SIZE) {
- /* First(xsi:type)StartTag[CHARACTERS[UNSIGNED_INTEGER]] */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(errn == 0) {
- if(eventCode == 0) {
- errn = decodeUnsignedInteger16(stream, &v2gSensorMeasurementsType->MeasurementData.array[v2gSensorMeasurementsType->MeasurementData.arrayLen]);
- v2gSensorMeasurementsType->MeasurementData.arrayLen++;
- } else {
- /* Second level event (e.g., xsi:type, xsi:nil, ...) */
- errn = EXI_UNSUPPORTED_EVENT_CODE_CHARACTERISTICS;
- }
- }
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- if(errn == 0) {
- /* valid EE for simple element START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MeasurementData) ? */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(eventCode == 0) {
- grammarID = 520;
- } 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 520:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MeasurementData), END_ELEMENT] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gSensorMeasurementsType->MeasurementData.arrayLen < v2gSensorMeasurementsType_MeasurementData_ARRAY_SIZE) {
- /* First(xsi:type)StartTag[CHARACTERS[UNSIGNED_INTEGER]] */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(errn == 0) {
- if(eventCode == 0) {
- errn = decodeUnsignedInteger16(stream, &v2gSensorMeasurementsType->MeasurementData.array[v2gSensorMeasurementsType->MeasurementData.arrayLen]);
- v2gSensorMeasurementsType->MeasurementData.arrayLen++;
- } else {
- /* Second level event (e.g., xsi:type, xsi:nil, ...) */
- errn = EXI_UNSUPPORTED_EVENT_CODE_CHARACTERISTICS;
- }
- }
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- if(errn == 0) {
- /* valid EE for simple element START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MeasurementData) ? */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(eventCode == 0) {
- grammarID = 521;
- } 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 521:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MeasurementData), END_ELEMENT] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gSensorMeasurementsType->MeasurementData.arrayLen < v2gSensorMeasurementsType_MeasurementData_ARRAY_SIZE) {
- /* First(xsi:type)StartTag[CHARACTERS[UNSIGNED_INTEGER]] */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(errn == 0) {
- if(eventCode == 0) {
- errn = decodeUnsignedInteger16(stream, &v2gSensorMeasurementsType->MeasurementData.array[v2gSensorMeasurementsType->MeasurementData.arrayLen]);
- v2gSensorMeasurementsType->MeasurementData.arrayLen++;
- } else {
- /* Second level event (e.g., xsi:type, xsi:nil, ...) */
- errn = EXI_UNSUPPORTED_EVENT_CODE_CHARACTERISTICS;
- }
- }
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- if(errn == 0) {
- /* valid EE for simple element START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MeasurementData) ? */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(eventCode == 0) {
- grammarID = 522;
- } 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 522:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MeasurementData), END_ELEMENT] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gSensorMeasurementsType->MeasurementData.arrayLen < v2gSensorMeasurementsType_MeasurementData_ARRAY_SIZE) {
- /* First(xsi:type)StartTag[CHARACTERS[UNSIGNED_INTEGER]] */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(errn == 0) {
- if(eventCode == 0) {
- errn = decodeUnsignedInteger16(stream, &v2gSensorMeasurementsType->MeasurementData.array[v2gSensorMeasurementsType->MeasurementData.arrayLen]);
- v2gSensorMeasurementsType->MeasurementData.arrayLen++;
- } else {
- /* Second level event (e.g., xsi:type, xsi:nil, ...) */
- errn = EXI_UNSUPPORTED_EVENT_CODE_CHARACTERISTICS;
- }
- }
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- if(errn == 0) {
- /* valid EE for simple element START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MeasurementData) ? */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(eventCode == 0) {
- grammarID = 523;
- } 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 523:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MeasurementData), END_ELEMENT] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gSensorMeasurementsType->MeasurementData.arrayLen < v2gSensorMeasurementsType_MeasurementData_ARRAY_SIZE) {
- /* First(xsi:type)StartTag[CHARACTERS[UNSIGNED_INTEGER]] */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(errn == 0) {
- if(eventCode == 0) {
- errn = decodeUnsignedInteger16(stream, &v2gSensorMeasurementsType->MeasurementData.array[v2gSensorMeasurementsType->MeasurementData.arrayLen]);
- v2gSensorMeasurementsType->MeasurementData.arrayLen++;
- } else {
- /* Second level event (e.g., xsi:type, xsi:nil, ...) */
- errn = EXI_UNSUPPORTED_EVENT_CODE_CHARACTERISTICS;
- }
- }
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- if(errn == 0) {
- /* valid EE for simple element START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MeasurementData) ? */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(eventCode == 0) {
- grammarID = 524;
- } 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 524:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MeasurementData), END_ELEMENT] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gSensorMeasurementsType->MeasurementData.arrayLen < v2gSensorMeasurementsType_MeasurementData_ARRAY_SIZE) {
- /* First(xsi:type)StartTag[CHARACTERS[UNSIGNED_INTEGER]] */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(errn == 0) {
- if(eventCode == 0) {
- errn = decodeUnsignedInteger16(stream, &v2gSensorMeasurementsType->MeasurementData.array[v2gSensorMeasurementsType->MeasurementData.arrayLen]);
- v2gSensorMeasurementsType->MeasurementData.arrayLen++;
- } else {
- /* Second level event (e.g., xsi:type, xsi:nil, ...) */
- errn = EXI_UNSUPPORTED_EVENT_CODE_CHARACTERISTICS;
- }
- }
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- if(errn == 0) {
- /* valid EE for simple element START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MeasurementData) ? */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(eventCode == 0) {
- grammarID = 525;
- } 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 525:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MeasurementData), END_ELEMENT] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gSensorMeasurementsType->MeasurementData.arrayLen < v2gSensorMeasurementsType_MeasurementData_ARRAY_SIZE) {
- /* First(xsi:type)StartTag[CHARACTERS[UNSIGNED_INTEGER]] */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(errn == 0) {
- if(eventCode == 0) {
- errn = decodeUnsignedInteger16(stream, &v2gSensorMeasurementsType->MeasurementData.array[v2gSensorMeasurementsType->MeasurementData.arrayLen]);
- v2gSensorMeasurementsType->MeasurementData.arrayLen++;
- } else {
- /* Second level event (e.g., xsi:type, xsi:nil, ...) */
- errn = EXI_UNSUPPORTED_EVENT_CODE_CHARACTERISTICS;
- }
- }
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- if(errn == 0) {
- /* valid EE for simple element START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MeasurementData) ? */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(eventCode == 0) {
- grammarID = 526;
- } 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 526:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MeasurementData), END_ELEMENT] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gSensorMeasurementsType->MeasurementData.arrayLen < v2gSensorMeasurementsType_MeasurementData_ARRAY_SIZE) {
- /* First(xsi:type)StartTag[CHARACTERS[UNSIGNED_INTEGER]] */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(errn == 0) {
- if(eventCode == 0) {
- errn = decodeUnsignedInteger16(stream, &v2gSensorMeasurementsType->MeasurementData.array[v2gSensorMeasurementsType->MeasurementData.arrayLen]);
- v2gSensorMeasurementsType->MeasurementData.arrayLen++;
- } else {
- /* Second level event (e.g., xsi:type, xsi:nil, ...) */
- errn = EXI_UNSUPPORTED_EVENT_CODE_CHARACTERISTICS;
- }
- }
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- if(errn == 0) {
- /* valid EE for simple element START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MeasurementData) ? */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(eventCode == 0) {
- grammarID = 527;
- } 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 527:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MeasurementData), END_ELEMENT] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gSensorMeasurementsType->MeasurementData.arrayLen < v2gSensorMeasurementsType_MeasurementData_ARRAY_SIZE) {
- /* First(xsi:type)StartTag[CHARACTERS[UNSIGNED_INTEGER]] */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(errn == 0) {
- if(eventCode == 0) {
- errn = decodeUnsignedInteger16(stream, &v2gSensorMeasurementsType->MeasurementData.array[v2gSensorMeasurementsType->MeasurementData.arrayLen]);
- v2gSensorMeasurementsType->MeasurementData.arrayLen++;
- } else {
- /* Second level event (e.g., xsi:type, xsi:nil, ...) */
- errn = EXI_UNSUPPORTED_EVENT_CODE_CHARACTERISTICS;
- }
- }
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- if(errn == 0) {
- /* valid EE for simple element START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MeasurementData) ? */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(eventCode == 0) {
- grammarID = 528;
- } 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 528:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MeasurementData), END_ELEMENT] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gSensorMeasurementsType->MeasurementData.arrayLen < v2gSensorMeasurementsType_MeasurementData_ARRAY_SIZE) {
- /* First(xsi:type)StartTag[CHARACTERS[UNSIGNED_INTEGER]] */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(errn == 0) {
- if(eventCode == 0) {
- errn = decodeUnsignedInteger16(stream, &v2gSensorMeasurementsType->MeasurementData.array[v2gSensorMeasurementsType->MeasurementData.arrayLen]);
- v2gSensorMeasurementsType->MeasurementData.arrayLen++;
- } else {
- /* Second level event (e.g., xsi:type, xsi:nil, ...) */
- errn = EXI_UNSUPPORTED_EVENT_CODE_CHARACTERISTICS;
- }
- }
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- if(errn == 0) {
- /* valid EE for simple element START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MeasurementData) ? */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(eventCode == 0) {
- grammarID = 529;
- } 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 529:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MeasurementData), END_ELEMENT] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gSensorMeasurementsType->MeasurementData.arrayLen < v2gSensorMeasurementsType_MeasurementData_ARRAY_SIZE) {
- /* First(xsi:type)StartTag[CHARACTERS[UNSIGNED_INTEGER]] */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(errn == 0) {
- if(eventCode == 0) {
- errn = decodeUnsignedInteger16(stream, &v2gSensorMeasurementsType->MeasurementData.array[v2gSensorMeasurementsType->MeasurementData.arrayLen]);
- v2gSensorMeasurementsType->MeasurementData.arrayLen++;
- } else {
- /* Second level event (e.g., xsi:type, xsi:nil, ...) */
- errn = EXI_UNSUPPORTED_EVENT_CODE_CHARACTERISTICS;
- }
- }
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- if(errn == 0) {
- /* valid EE for simple element START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MeasurementData) ? */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(eventCode == 0) {
- grammarID = 530;
- } 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 530:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MeasurementData), END_ELEMENT] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gSensorMeasurementsType->MeasurementData.arrayLen < v2gSensorMeasurementsType_MeasurementData_ARRAY_SIZE) {
- /* First(xsi:type)StartTag[CHARACTERS[UNSIGNED_INTEGER]] */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(errn == 0) {
- if(eventCode == 0) {
- errn = decodeUnsignedInteger16(stream, &v2gSensorMeasurementsType->MeasurementData.array[v2gSensorMeasurementsType->MeasurementData.arrayLen]);
- v2gSensorMeasurementsType->MeasurementData.arrayLen++;
- } else {
- /* Second level event (e.g., xsi:type, xsi:nil, ...) */
- errn = EXI_UNSUPPORTED_EVENT_CODE_CHARACTERISTICS;
- }
- }
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- if(errn == 0) {
- /* valid EE for simple element START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MeasurementData) ? */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(eventCode == 0) {
- grammarID = 531;
- } 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 531:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MeasurementData), END_ELEMENT] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gSensorMeasurementsType->MeasurementData.arrayLen < v2gSensorMeasurementsType_MeasurementData_ARRAY_SIZE) {
- /* First(xsi:type)StartTag[CHARACTERS[UNSIGNED_INTEGER]] */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(errn == 0) {
- if(eventCode == 0) {
- errn = decodeUnsignedInteger16(stream, &v2gSensorMeasurementsType->MeasurementData.array[v2gSensorMeasurementsType->MeasurementData.arrayLen]);
- v2gSensorMeasurementsType->MeasurementData.arrayLen++;
- } else {
- /* Second level event (e.g., xsi:type, xsi:nil, ...) */
- errn = EXI_UNSUPPORTED_EVENT_CODE_CHARACTERISTICS;
- }
- }
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- if(errn == 0) {
- /* valid EE for simple element START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MeasurementData) ? */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(eventCode == 0) {
- grammarID = 532;
- } 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 532:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MeasurementData), END_ELEMENT] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gSensorMeasurementsType->MeasurementData.arrayLen < v2gSensorMeasurementsType_MeasurementData_ARRAY_SIZE) {
- /* First(xsi:type)StartTag[CHARACTERS[UNSIGNED_INTEGER]] */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(errn == 0) {
- if(eventCode == 0) {
- errn = decodeUnsignedInteger16(stream, &v2gSensorMeasurementsType->MeasurementData.array[v2gSensorMeasurementsType->MeasurementData.arrayLen]);
- v2gSensorMeasurementsType->MeasurementData.arrayLen++;
- } else {
- /* Second level event (e.g., xsi:type, xsi:nil, ...) */
- errn = EXI_UNSUPPORTED_EVENT_CODE_CHARACTERISTICS;
- }
- }
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- if(errn == 0) {
- /* valid EE for simple element START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MeasurementData) ? */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(eventCode == 0) {
- grammarID = 533;
- } 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 533:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MeasurementData), END_ELEMENT] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gSensorMeasurementsType->MeasurementData.arrayLen < v2gSensorMeasurementsType_MeasurementData_ARRAY_SIZE) {
- /* First(xsi:type)StartTag[CHARACTERS[UNSIGNED_INTEGER]] */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(errn == 0) {
- if(eventCode == 0) {
- errn = decodeUnsignedInteger16(stream, &v2gSensorMeasurementsType->MeasurementData.array[v2gSensorMeasurementsType->MeasurementData.arrayLen]);
- v2gSensorMeasurementsType->MeasurementData.arrayLen++;
- } else {
- /* Second level event (e.g., xsi:type, xsi:nil, ...) */
- errn = EXI_UNSUPPORTED_EVENT_CODE_CHARACTERISTICS;
- }
- }
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- if(errn == 0) {
- /* valid EE for simple element START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MeasurementData) ? */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(eventCode == 0) {
- grammarID = 534;
- } 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 534:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MeasurementData), END_ELEMENT] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gSensorMeasurementsType->MeasurementData.arrayLen < v2gSensorMeasurementsType_MeasurementData_ARRAY_SIZE) {
- /* First(xsi:type)StartTag[CHARACTERS[UNSIGNED_INTEGER]] */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(errn == 0) {
- if(eventCode == 0) {
- errn = decodeUnsignedInteger16(stream, &v2gSensorMeasurementsType->MeasurementData.array[v2gSensorMeasurementsType->MeasurementData.arrayLen]);
- v2gSensorMeasurementsType->MeasurementData.arrayLen++;
- } else {
- /* Second level event (e.g., xsi:type, xsi:nil, ...) */
- errn = EXI_UNSUPPORTED_EVENT_CODE_CHARACTERISTICS;
- }
- }
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- if(errn == 0) {
- /* valid EE for simple element START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MeasurementData) ? */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(eventCode == 0) {
- grammarID = 535;
- } 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 535:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MeasurementData), END_ELEMENT] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gSensorMeasurementsType->MeasurementData.arrayLen < v2gSensorMeasurementsType_MeasurementData_ARRAY_SIZE) {
- /* First(xsi:type)StartTag[CHARACTERS[UNSIGNED_INTEGER]] */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(errn == 0) {
- if(eventCode == 0) {
- errn = decodeUnsignedInteger16(stream, &v2gSensorMeasurementsType->MeasurementData.array[v2gSensorMeasurementsType->MeasurementData.arrayLen]);
- v2gSensorMeasurementsType->MeasurementData.arrayLen++;
- } else {
- /* Second level event (e.g., xsi:type, xsi:nil, ...) */
- errn = EXI_UNSUPPORTED_EVENT_CODE_CHARACTERISTICS;
- }
- }
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- if(errn == 0) {
- /* valid EE for simple element START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MeasurementData) ? */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(eventCode == 0) {
- grammarID = 536;
- } 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 536:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MeasurementData), END_ELEMENT] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gSensorMeasurementsType->MeasurementData.arrayLen < v2gSensorMeasurementsType_MeasurementData_ARRAY_SIZE) {
- /* First(xsi:type)StartTag[CHARACTERS[UNSIGNED_INTEGER]] */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(errn == 0) {
- if(eventCode == 0) {
- errn = decodeUnsignedInteger16(stream, &v2gSensorMeasurementsType->MeasurementData.array[v2gSensorMeasurementsType->MeasurementData.arrayLen]);
- v2gSensorMeasurementsType->MeasurementData.arrayLen++;
- } else {
- /* Second level event (e.g., xsi:type, xsi:nil, ...) */
- errn = EXI_UNSUPPORTED_EVENT_CODE_CHARACTERISTICS;
- }
- }
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- if(errn == 0) {
- /* valid EE for simple element START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MeasurementData) ? */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(eventCode == 0) {
- grammarID = 537;
- } 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 537:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MeasurementData), END_ELEMENT] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gSensorMeasurementsType->MeasurementData.arrayLen < v2gSensorMeasurementsType_MeasurementData_ARRAY_SIZE) {
- /* First(xsi:type)StartTag[CHARACTERS[UNSIGNED_INTEGER]] */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(errn == 0) {
- if(eventCode == 0) {
- errn = decodeUnsignedInteger16(stream, &v2gSensorMeasurementsType->MeasurementData.array[v2gSensorMeasurementsType->MeasurementData.arrayLen]);
- v2gSensorMeasurementsType->MeasurementData.arrayLen++;
- } else {
- /* Second level event (e.g., xsi:type, xsi:nil, ...) */
- errn = EXI_UNSUPPORTED_EVENT_CODE_CHARACTERISTICS;
- }
- }
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- if(errn == 0) {
- /* valid EE for simple element START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MeasurementData) ? */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(eventCode == 0) {
- grammarID = 538;
- } 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 538:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MeasurementData), END_ELEMENT] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gSensorMeasurementsType->MeasurementData.arrayLen < v2gSensorMeasurementsType_MeasurementData_ARRAY_SIZE) {
- /* First(xsi:type)StartTag[CHARACTERS[UNSIGNED_INTEGER]] */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(errn == 0) {
- if(eventCode == 0) {
- errn = decodeUnsignedInteger16(stream, &v2gSensorMeasurementsType->MeasurementData.array[v2gSensorMeasurementsType->MeasurementData.arrayLen]);
- v2gSensorMeasurementsType->MeasurementData.arrayLen++;
- } else {
- /* Second level event (e.g., xsi:type, xsi:nil, ...) */
- errn = EXI_UNSUPPORTED_EVENT_CODE_CHARACTERISTICS;
- }
- }
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- if(errn == 0) {
- /* valid EE for simple element START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MeasurementData) ? */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(eventCode == 0) {
- grammarID = 539;
- } 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 539:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MeasurementData), END_ELEMENT] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gSensorMeasurementsType->MeasurementData.arrayLen < v2gSensorMeasurementsType_MeasurementData_ARRAY_SIZE) {
- /* First(xsi:type)StartTag[CHARACTERS[UNSIGNED_INTEGER]] */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(errn == 0) {
- if(eventCode == 0) {
- errn = decodeUnsignedInteger16(stream, &v2gSensorMeasurementsType->MeasurementData.array[v2gSensorMeasurementsType->MeasurementData.arrayLen]);
- v2gSensorMeasurementsType->MeasurementData.arrayLen++;
- } else {
- /* Second level event (e.g., xsi:type, xsi:nil, ...) */
- errn = EXI_UNSUPPORTED_EVENT_CODE_CHARACTERISTICS;
- }
- }
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- if(errn == 0) {
- /* valid EE for simple element START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MeasurementData) ? */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(eventCode == 0) {
- grammarID = 540;
- } 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 540:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MeasurementData), END_ELEMENT] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gSensorMeasurementsType->MeasurementData.arrayLen < v2gSensorMeasurementsType_MeasurementData_ARRAY_SIZE) {
- /* First(xsi:type)StartTag[CHARACTERS[UNSIGNED_INTEGER]] */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(errn == 0) {
- if(eventCode == 0) {
- errn = decodeUnsignedInteger16(stream, &v2gSensorMeasurementsType->MeasurementData.array[v2gSensorMeasurementsType->MeasurementData.arrayLen]);
- v2gSensorMeasurementsType->MeasurementData.arrayLen++;
- } else {
- /* Second level event (e.g., xsi:type, xsi:nil, ...) */
- errn = EXI_UNSUPPORTED_EVENT_CODE_CHARACTERISTICS;
- }
- }
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- if(errn == 0) {
- /* valid EE for simple element START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MeasurementData) ? */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(eventCode == 0) {
- grammarID = 541;
- } 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 541:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MeasurementData), END_ELEMENT] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gSensorMeasurementsType->MeasurementData.arrayLen < v2gSensorMeasurementsType_MeasurementData_ARRAY_SIZE) {
- /* First(xsi:type)StartTag[CHARACTERS[UNSIGNED_INTEGER]] */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(errn == 0) {
- if(eventCode == 0) {
- errn = decodeUnsignedInteger16(stream, &v2gSensorMeasurementsType->MeasurementData.array[v2gSensorMeasurementsType->MeasurementData.arrayLen]);
- v2gSensorMeasurementsType->MeasurementData.arrayLen++;
- } else {
- /* Second level event (e.g., xsi:type, xsi:nil, ...) */
- errn = EXI_UNSUPPORTED_EVENT_CODE_CHARACTERISTICS;
- }
- }
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- if(errn == 0) {
- /* valid EE for simple element START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MeasurementData) ? */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(eventCode == 0) {
- grammarID = 542;
- } 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 542:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MeasurementData), END_ELEMENT] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gSensorMeasurementsType->MeasurementData.arrayLen < v2gSensorMeasurementsType_MeasurementData_ARRAY_SIZE) {
- /* First(xsi:type)StartTag[CHARACTERS[UNSIGNED_INTEGER]] */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(errn == 0) {
- if(eventCode == 0) {
- errn = decodeUnsignedInteger16(stream, &v2gSensorMeasurementsType->MeasurementData.array[v2gSensorMeasurementsType->MeasurementData.arrayLen]);
- v2gSensorMeasurementsType->MeasurementData.arrayLen++;
- } else {
- /* Second level event (e.g., xsi:type, xsi:nil, ...) */
- errn = EXI_UNSUPPORTED_EVENT_CODE_CHARACTERISTICS;
- }
- }
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- if(errn == 0) {
- /* valid EE for simple element START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MeasurementData) ? */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(eventCode == 0) {
- grammarID = 543;
- } 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 543:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MeasurementData), END_ELEMENT] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gSensorMeasurementsType->MeasurementData.arrayLen < v2gSensorMeasurementsType_MeasurementData_ARRAY_SIZE) {
- /* First(xsi:type)StartTag[CHARACTERS[UNSIGNED_INTEGER]] */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(errn == 0) {
- if(eventCode == 0) {
- errn = decodeUnsignedInteger16(stream, &v2gSensorMeasurementsType->MeasurementData.array[v2gSensorMeasurementsType->MeasurementData.arrayLen]);
- v2gSensorMeasurementsType->MeasurementData.arrayLen++;
- } else {
- /* Second level event (e.g., xsi:type, xsi:nil, ...) */
- errn = EXI_UNSUPPORTED_EVENT_CODE_CHARACTERISTICS;
- }
- }
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- if(errn == 0) {
- /* valid EE for simple element START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MeasurementData) ? */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(eventCode == 0) {
- grammarID = 544;
- } 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 544:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MeasurementData), END_ELEMENT] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gSensorMeasurementsType->MeasurementData.arrayLen < v2gSensorMeasurementsType_MeasurementData_ARRAY_SIZE) {
- /* First(xsi:type)StartTag[CHARACTERS[UNSIGNED_INTEGER]] */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(errn == 0) {
- if(eventCode == 0) {
- errn = decodeUnsignedInteger16(stream, &v2gSensorMeasurementsType->MeasurementData.array[v2gSensorMeasurementsType->MeasurementData.arrayLen]);
- v2gSensorMeasurementsType->MeasurementData.arrayLen++;
- } else {
- /* Second level event (e.g., xsi:type, xsi:nil, ...) */
- errn = EXI_UNSUPPORTED_EVENT_CODE_CHARACTERISTICS;
- }
- }
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- if(errn == 0) {
- /* valid EE for simple element START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MeasurementData) ? */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(eventCode == 0) {
- grammarID = 545;
- } 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 545:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MeasurementData), END_ELEMENT] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gSensorMeasurementsType->MeasurementData.arrayLen < v2gSensorMeasurementsType_MeasurementData_ARRAY_SIZE) {
- /* First(xsi:type)StartTag[CHARACTERS[UNSIGNED_INTEGER]] */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(errn == 0) {
- if(eventCode == 0) {
- errn = decodeUnsignedInteger16(stream, &v2gSensorMeasurementsType->MeasurementData.array[v2gSensorMeasurementsType->MeasurementData.arrayLen]);
- v2gSensorMeasurementsType->MeasurementData.arrayLen++;
- } else {
- /* Second level event (e.g., xsi:type, xsi:nil, ...) */
- errn = EXI_UNSUPPORTED_EVENT_CODE_CHARACTERISTICS;
- }
- }
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- if(errn == 0) {
- /* valid EE for simple element START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MeasurementData) ? */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(eventCode == 0) {
- grammarID = 546;
- } 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 546:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MeasurementData), END_ELEMENT] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gSensorMeasurementsType->MeasurementData.arrayLen < v2gSensorMeasurementsType_MeasurementData_ARRAY_SIZE) {
- /* First(xsi:type)StartTag[CHARACTERS[UNSIGNED_INTEGER]] */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(errn == 0) {
- if(eventCode == 0) {
- errn = decodeUnsignedInteger16(stream, &v2gSensorMeasurementsType->MeasurementData.array[v2gSensorMeasurementsType->MeasurementData.arrayLen]);
- v2gSensorMeasurementsType->MeasurementData.arrayLen++;
- } else {
- /* Second level event (e.g., xsi:type, xsi:nil, ...) */
- errn = EXI_UNSUPPORTED_EVENT_CODE_CHARACTERISTICS;
- }
- }
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- if(errn == 0) {
- /* valid EE for simple element START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MeasurementData) ? */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(eventCode == 0) {
- grammarID = 547;
- } 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 547:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MeasurementData), END_ELEMENT] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gSensorMeasurementsType->MeasurementData.arrayLen < v2gSensorMeasurementsType_MeasurementData_ARRAY_SIZE) {
- /* First(xsi:type)StartTag[CHARACTERS[UNSIGNED_INTEGER]] */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(errn == 0) {
- if(eventCode == 0) {
- errn = decodeUnsignedInteger16(stream, &v2gSensorMeasurementsType->MeasurementData.array[v2gSensorMeasurementsType->MeasurementData.arrayLen]);
- v2gSensorMeasurementsType->MeasurementData.arrayLen++;
- } else {
- /* Second level event (e.g., xsi:type, xsi:nil, ...) */
- errn = EXI_UNSUPPORTED_EVENT_CODE_CHARACTERISTICS;
- }
- }
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- if(errn == 0) {
- /* valid EE for simple element START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MeasurementData) ? */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(eventCode == 0) {
- grammarID = 548;
- } 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 548:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MeasurementData), END_ELEMENT] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gSensorMeasurementsType->MeasurementData.arrayLen < v2gSensorMeasurementsType_MeasurementData_ARRAY_SIZE) {
- /* First(xsi:type)StartTag[CHARACTERS[UNSIGNED_INTEGER]] */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(errn == 0) {
- if(eventCode == 0) {
- errn = decodeUnsignedInteger16(stream, &v2gSensorMeasurementsType->MeasurementData.array[v2gSensorMeasurementsType->MeasurementData.arrayLen]);
- v2gSensorMeasurementsType->MeasurementData.arrayLen++;
- } else {
- /* Second level event (e.g., xsi:type, xsi:nil, ...) */
- errn = EXI_UNSUPPORTED_EVENT_CODE_CHARACTERISTICS;
- }
- }
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- if(errn == 0) {
- /* valid EE for simple element START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MeasurementData) ? */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(eventCode == 0) {
- grammarID = 549;
- } 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 549:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MeasurementData), END_ELEMENT] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gSensorMeasurementsType->MeasurementData.arrayLen < v2gSensorMeasurementsType_MeasurementData_ARRAY_SIZE) {
- /* First(xsi:type)StartTag[CHARACTERS[UNSIGNED_INTEGER]] */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(errn == 0) {
- if(eventCode == 0) {
- errn = decodeUnsignedInteger16(stream, &v2gSensorMeasurementsType->MeasurementData.array[v2gSensorMeasurementsType->MeasurementData.arrayLen]);
- v2gSensorMeasurementsType->MeasurementData.arrayLen++;
- } else {
- /* Second level event (e.g., xsi:type, xsi:nil, ...) */
- errn = EXI_UNSUPPORTED_EVENT_CODE_CHARACTERISTICS;
- }
- }
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- if(errn == 0) {
- /* valid EE for simple element START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MeasurementData) ? */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(eventCode == 0) {
- grammarID = 550;
- } 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 550:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MeasurementData), END_ELEMENT] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gSensorMeasurementsType->MeasurementData.arrayLen < v2gSensorMeasurementsType_MeasurementData_ARRAY_SIZE) {
- /* First(xsi:type)StartTag[CHARACTERS[UNSIGNED_INTEGER]] */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(errn == 0) {
- if(eventCode == 0) {
- errn = decodeUnsignedInteger16(stream, &v2gSensorMeasurementsType->MeasurementData.array[v2gSensorMeasurementsType->MeasurementData.arrayLen]);
- v2gSensorMeasurementsType->MeasurementData.arrayLen++;
- } else {
- /* Second level event (e.g., xsi:type, xsi:nil, ...) */
- errn = EXI_UNSUPPORTED_EVENT_CODE_CHARACTERISTICS;
- }
- }
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- if(errn == 0) {
- /* valid EE for simple element START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MeasurementData) ? */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(eventCode == 0) {
- grammarID = 551;
- } 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 551:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MeasurementData), END_ELEMENT] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gSensorMeasurementsType->MeasurementData.arrayLen < v2gSensorMeasurementsType_MeasurementData_ARRAY_SIZE) {
- /* First(xsi:type)StartTag[CHARACTERS[UNSIGNED_INTEGER]] */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(errn == 0) {
- if(eventCode == 0) {
- errn = decodeUnsignedInteger16(stream, &v2gSensorMeasurementsType->MeasurementData.array[v2gSensorMeasurementsType->MeasurementData.arrayLen]);
- v2gSensorMeasurementsType->MeasurementData.arrayLen++;
- } else {
- /* Second level event (e.g., xsi:type, xsi:nil, ...) */
- errn = EXI_UNSUPPORTED_EVENT_CODE_CHARACTERISTICS;
- }
- }
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- if(errn == 0) {
- /* valid EE for simple element START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MeasurementData) ? */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(eventCode == 0) {
- grammarID = 552;
- } 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 552:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MeasurementData), END_ELEMENT] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gSensorMeasurementsType->MeasurementData.arrayLen < v2gSensorMeasurementsType_MeasurementData_ARRAY_SIZE) {
- /* First(xsi:type)StartTag[CHARACTERS[UNSIGNED_INTEGER]] */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(errn == 0) {
- if(eventCode == 0) {
- errn = decodeUnsignedInteger16(stream, &v2gSensorMeasurementsType->MeasurementData.array[v2gSensorMeasurementsType->MeasurementData.arrayLen]);
- v2gSensorMeasurementsType->MeasurementData.arrayLen++;
- } else {
- /* Second level event (e.g., xsi:type, xsi:nil, ...) */
- errn = EXI_UNSUPPORTED_EVENT_CODE_CHARACTERISTICS;
- }
- }
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- if(errn == 0) {
- /* valid EE for simple element START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MeasurementData) ? */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(eventCode == 0) {
- grammarID = 553;
- } 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 553:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MeasurementData), END_ELEMENT] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gSensorMeasurementsType->MeasurementData.arrayLen < v2gSensorMeasurementsType_MeasurementData_ARRAY_SIZE) {
- /* First(xsi:type)StartTag[CHARACTERS[UNSIGNED_INTEGER]] */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(errn == 0) {
- if(eventCode == 0) {
- errn = decodeUnsignedInteger16(stream, &v2gSensorMeasurementsType->MeasurementData.array[v2gSensorMeasurementsType->MeasurementData.arrayLen]);
- v2gSensorMeasurementsType->MeasurementData.arrayLen++;
- } else {
- /* Second level event (e.g., xsi:type, xsi:nil, ...) */
- errn = EXI_UNSUPPORTED_EVENT_CODE_CHARACTERISTICS;
- }
- }
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- if(errn == 0) {
- /* valid EE for simple element START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MeasurementData) ? */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(eventCode == 0) {
- grammarID = 554;
- } 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 554:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MeasurementData), END_ELEMENT] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gSensorMeasurementsType->MeasurementData.arrayLen < v2gSensorMeasurementsType_MeasurementData_ARRAY_SIZE) {
- /* First(xsi:type)StartTag[CHARACTERS[UNSIGNED_INTEGER]] */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(errn == 0) {
- if(eventCode == 0) {
- errn = decodeUnsignedInteger16(stream, &v2gSensorMeasurementsType->MeasurementData.array[v2gSensorMeasurementsType->MeasurementData.arrayLen]);
- v2gSensorMeasurementsType->MeasurementData.arrayLen++;
- } else {
- /* Second level event (e.g., xsi:type, xsi:nil, ...) */
- errn = EXI_UNSUPPORTED_EVENT_CODE_CHARACTERISTICS;
- }
- }
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- if(errn == 0) {
- /* valid EE for simple element START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MeasurementData) ? */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(eventCode == 0) {
- grammarID = 555;
- } 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 555:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MeasurementData), END_ELEMENT] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gSensorMeasurementsType->MeasurementData.arrayLen < v2gSensorMeasurementsType_MeasurementData_ARRAY_SIZE) {
- /* First(xsi:type)StartTag[CHARACTERS[UNSIGNED_INTEGER]] */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(errn == 0) {
- if(eventCode == 0) {
- errn = decodeUnsignedInteger16(stream, &v2gSensorMeasurementsType->MeasurementData.array[v2gSensorMeasurementsType->MeasurementData.arrayLen]);
- v2gSensorMeasurementsType->MeasurementData.arrayLen++;
- } else {
- /* Second level event (e.g., xsi:type, xsi:nil, ...) */
- errn = EXI_UNSUPPORTED_EVENT_CODE_CHARACTERISTICS;
- }
- }
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- if(errn == 0) {
- /* valid EE for simple element START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MeasurementData) ? */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(eventCode == 0) {
- grammarID = 556;
- } 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 556:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MeasurementData), END_ELEMENT] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gSensorMeasurementsType->MeasurementData.arrayLen < v2gSensorMeasurementsType_MeasurementData_ARRAY_SIZE) {
- /* First(xsi:type)StartTag[CHARACTERS[UNSIGNED_INTEGER]] */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(errn == 0) {
- if(eventCode == 0) {
- errn = decodeUnsignedInteger16(stream, &v2gSensorMeasurementsType->MeasurementData.array[v2gSensorMeasurementsType->MeasurementData.arrayLen]);
- v2gSensorMeasurementsType->MeasurementData.arrayLen++;
- } else {
- /* Second level event (e.g., xsi:type, xsi:nil, ...) */
- errn = EXI_UNSUPPORTED_EVENT_CODE_CHARACTERISTICS;
- }
- }
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- if(errn == 0) {
- /* valid EE for simple element START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MeasurementData) ? */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(eventCode == 0) {
- grammarID = 557;
- } 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 557:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MeasurementData), END_ELEMENT] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gSensorMeasurementsType->MeasurementData.arrayLen < v2gSensorMeasurementsType_MeasurementData_ARRAY_SIZE) {
- /* First(xsi:type)StartTag[CHARACTERS[UNSIGNED_INTEGER]] */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(errn == 0) {
- if(eventCode == 0) {
- errn = decodeUnsignedInteger16(stream, &v2gSensorMeasurementsType->MeasurementData.array[v2gSensorMeasurementsType->MeasurementData.arrayLen]);
- v2gSensorMeasurementsType->MeasurementData.arrayLen++;
- } else {
- /* Second level event (e.g., xsi:type, xsi:nil, ...) */
- errn = EXI_UNSUPPORTED_EVENT_CODE_CHARACTERISTICS;
- }
- }
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- if(errn == 0) {
- /* valid EE for simple element START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MeasurementData) ? */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(eventCode == 0) {
- grammarID = 558;
- } 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 558:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MeasurementData), END_ELEMENT] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gSensorMeasurementsType->MeasurementData.arrayLen < v2gSensorMeasurementsType_MeasurementData_ARRAY_SIZE) {
- /* First(xsi:type)StartTag[CHARACTERS[UNSIGNED_INTEGER]] */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(errn == 0) {
- if(eventCode == 0) {
- errn = decodeUnsignedInteger16(stream, &v2gSensorMeasurementsType->MeasurementData.array[v2gSensorMeasurementsType->MeasurementData.arrayLen]);
- v2gSensorMeasurementsType->MeasurementData.arrayLen++;
- } else {
- /* Second level event (e.g., xsi:type, xsi:nil, ...) */
- errn = EXI_UNSUPPORTED_EVENT_CODE_CHARACTERISTICS;
- }
- }
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- if(errn == 0) {
- /* valid EE for simple element START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MeasurementData) ? */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(eventCode == 0) {
- grammarID = 559;
- } 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 559:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MeasurementData), END_ELEMENT] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gSensorMeasurementsType->MeasurementData.arrayLen < v2gSensorMeasurementsType_MeasurementData_ARRAY_SIZE) {
- /* First(xsi:type)StartTag[CHARACTERS[UNSIGNED_INTEGER]] */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(errn == 0) {
- if(eventCode == 0) {
- errn = decodeUnsignedInteger16(stream, &v2gSensorMeasurementsType->MeasurementData.array[v2gSensorMeasurementsType->MeasurementData.arrayLen]);
- v2gSensorMeasurementsType->MeasurementData.arrayLen++;
- } else {
- /* Second level event (e.g., xsi:type, xsi:nil, ...) */
- errn = EXI_UNSUPPORTED_EVENT_CODE_CHARACTERISTICS;
- }
- }
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- if(errn == 0) {
- /* valid EE for simple element START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MeasurementData) ? */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(eventCode == 0) {
- grammarID = 560;
- } 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 560:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MeasurementData), END_ELEMENT] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gSensorMeasurementsType->MeasurementData.arrayLen < v2gSensorMeasurementsType_MeasurementData_ARRAY_SIZE) {
- /* First(xsi:type)StartTag[CHARACTERS[UNSIGNED_INTEGER]] */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(errn == 0) {
- if(eventCode == 0) {
- errn = decodeUnsignedInteger16(stream, &v2gSensorMeasurementsType->MeasurementData.array[v2gSensorMeasurementsType->MeasurementData.arrayLen]);
- v2gSensorMeasurementsType->MeasurementData.arrayLen++;
- } else {
- /* Second level event (e.g., xsi:type, xsi:nil, ...) */
- errn = EXI_UNSUPPORTED_EVENT_CODE_CHARACTERISTICS;
- }
- }
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- if(errn == 0) {
- /* valid EE for simple element START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MeasurementData) ? */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(eventCode == 0) {
- grammarID = 561;
- } 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 561:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MeasurementData), END_ELEMENT] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gSensorMeasurementsType->MeasurementData.arrayLen < v2gSensorMeasurementsType_MeasurementData_ARRAY_SIZE) {
- /* First(xsi:type)StartTag[CHARACTERS[UNSIGNED_INTEGER]] */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(errn == 0) {
- if(eventCode == 0) {
- errn = decodeUnsignedInteger16(stream, &v2gSensorMeasurementsType->MeasurementData.array[v2gSensorMeasurementsType->MeasurementData.arrayLen]);
- v2gSensorMeasurementsType->MeasurementData.arrayLen++;
- } else {
- /* Second level event (e.g., xsi:type, xsi:nil, ...) */
- errn = EXI_UNSUPPORTED_EVENT_CODE_CHARACTERISTICS;
- }
- }
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- if(errn == 0) {
- /* valid EE for simple element START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MeasurementData) ? */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(eventCode == 0) {
- grammarID = 562;
- } 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 562:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MeasurementData), END_ELEMENT] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gSensorMeasurementsType->MeasurementData.arrayLen < v2gSensorMeasurementsType_MeasurementData_ARRAY_SIZE) {
- /* First(xsi:type)StartTag[CHARACTERS[UNSIGNED_INTEGER]] */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(errn == 0) {
- if(eventCode == 0) {
- errn = decodeUnsignedInteger16(stream, &v2gSensorMeasurementsType->MeasurementData.array[v2gSensorMeasurementsType->MeasurementData.arrayLen]);
- v2gSensorMeasurementsType->MeasurementData.arrayLen++;
- } else {
- /* Second level event (e.g., xsi:type, xsi:nil, ...) */
- errn = EXI_UNSUPPORTED_EVENT_CODE_CHARACTERISTICS;
- }
- }
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- if(errn == 0) {
- /* valid EE for simple element START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MeasurementData) ? */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(eventCode == 0) {
- grammarID = 563;
- } 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 563:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MeasurementData), END_ELEMENT] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gSensorMeasurementsType->MeasurementData.arrayLen < v2gSensorMeasurementsType_MeasurementData_ARRAY_SIZE) {
- /* First(xsi:type)StartTag[CHARACTERS[UNSIGNED_INTEGER]] */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(errn == 0) {
- if(eventCode == 0) {
- errn = decodeUnsignedInteger16(stream, &v2gSensorMeasurementsType->MeasurementData.array[v2gSensorMeasurementsType->MeasurementData.arrayLen]);
- v2gSensorMeasurementsType->MeasurementData.arrayLen++;
- } else {
- /* Second level event (e.g., xsi:type, xsi:nil, ...) */
- errn = EXI_UNSUPPORTED_EVENT_CODE_CHARACTERISTICS;
- }
- }
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- if(errn == 0) {
- /* valid EE for simple element START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MeasurementData) ? */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(eventCode == 0) {
- grammarID = 564;
- } 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 564:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MeasurementData), END_ELEMENT] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gSensorMeasurementsType->MeasurementData.arrayLen < v2gSensorMeasurementsType_MeasurementData_ARRAY_SIZE) {
- /* First(xsi:type)StartTag[CHARACTERS[UNSIGNED_INTEGER]] */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(errn == 0) {
- if(eventCode == 0) {
- errn = decodeUnsignedInteger16(stream, &v2gSensorMeasurementsType->MeasurementData.array[v2gSensorMeasurementsType->MeasurementData.arrayLen]);
- v2gSensorMeasurementsType->MeasurementData.arrayLen++;
- } else {
- /* Second level event (e.g., xsi:type, xsi:nil, ...) */
- errn = EXI_UNSUPPORTED_EVENT_CODE_CHARACTERISTICS;
- }
- }
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- if(errn == 0) {
- /* valid EE for simple element START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MeasurementData) ? */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(eventCode == 0) {
- grammarID = 565;
- } 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 565:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MeasurementData), END_ELEMENT] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gSensorMeasurementsType->MeasurementData.arrayLen < v2gSensorMeasurementsType_MeasurementData_ARRAY_SIZE) {
- /* First(xsi:type)StartTag[CHARACTERS[UNSIGNED_INTEGER]] */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(errn == 0) {
- if(eventCode == 0) {
- errn = decodeUnsignedInteger16(stream, &v2gSensorMeasurementsType->MeasurementData.array[v2gSensorMeasurementsType->MeasurementData.arrayLen]);
- v2gSensorMeasurementsType->MeasurementData.arrayLen++;
- } else {
- /* Second level event (e.g., xsi:type, xsi:nil, ...) */
- errn = EXI_UNSUPPORTED_EVENT_CODE_CHARACTERISTICS;
- }
- }
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- if(errn == 0) {
- /* valid EE for simple element START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MeasurementData) ? */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(eventCode == 0) {
- grammarID = 566;
- } 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 566:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MeasurementData), END_ELEMENT] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gSensorMeasurementsType->MeasurementData.arrayLen < v2gSensorMeasurementsType_MeasurementData_ARRAY_SIZE) {
- /* First(xsi:type)StartTag[CHARACTERS[UNSIGNED_INTEGER]] */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(errn == 0) {
- if(eventCode == 0) {
- errn = decodeUnsignedInteger16(stream, &v2gSensorMeasurementsType->MeasurementData.array[v2gSensorMeasurementsType->MeasurementData.arrayLen]);
- v2gSensorMeasurementsType->MeasurementData.arrayLen++;
- } else {
- /* Second level event (e.g., xsi:type, xsi:nil, ...) */
- errn = EXI_UNSUPPORTED_EVENT_CODE_CHARACTERISTICS;
- }
- }
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- if(errn == 0) {
- /* valid EE for simple element START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MeasurementData) ? */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(eventCode == 0) {
- grammarID = 567;
- } 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 567:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MeasurementData), END_ELEMENT] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gSensorMeasurementsType->MeasurementData.arrayLen < v2gSensorMeasurementsType_MeasurementData_ARRAY_SIZE) {
- /* First(xsi:type)StartTag[CHARACTERS[UNSIGNED_INTEGER]] */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(errn == 0) {
- if(eventCode == 0) {
- errn = decodeUnsignedInteger16(stream, &v2gSensorMeasurementsType->MeasurementData.array[v2gSensorMeasurementsType->MeasurementData.arrayLen]);
- v2gSensorMeasurementsType->MeasurementData.arrayLen++;
- } else {
- /* Second level event (e.g., xsi:type, xsi:nil, ...) */
- errn = EXI_UNSUPPORTED_EVENT_CODE_CHARACTERISTICS;
- }
- }
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- if(errn == 0) {
- /* valid EE for simple element START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MeasurementData) ? */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(eventCode == 0) {
- grammarID = 568;
- } 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 568:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MeasurementData), END_ELEMENT] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gSensorMeasurementsType->MeasurementData.arrayLen < v2gSensorMeasurementsType_MeasurementData_ARRAY_SIZE) {
- /* First(xsi:type)StartTag[CHARACTERS[UNSIGNED_INTEGER]] */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(errn == 0) {
- if(eventCode == 0) {
- errn = decodeUnsignedInteger16(stream, &v2gSensorMeasurementsType->MeasurementData.array[v2gSensorMeasurementsType->MeasurementData.arrayLen]);
- v2gSensorMeasurementsType->MeasurementData.arrayLen++;
- } else {
- /* Second level event (e.g., xsi:type, xsi:nil, ...) */
- errn = EXI_UNSUPPORTED_EVENT_CODE_CHARACTERISTICS;
- }
- }
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- if(errn == 0) {
- /* valid EE for simple element START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MeasurementData) ? */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(eventCode == 0) {
- grammarID = 569;
- } 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 569:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MeasurementData), END_ELEMENT] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gSensorMeasurementsType->MeasurementData.arrayLen < v2gSensorMeasurementsType_MeasurementData_ARRAY_SIZE) {
- /* First(xsi:type)StartTag[CHARACTERS[UNSIGNED_INTEGER]] */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(errn == 0) {
- if(eventCode == 0) {
- errn = decodeUnsignedInteger16(stream, &v2gSensorMeasurementsType->MeasurementData.array[v2gSensorMeasurementsType->MeasurementData.arrayLen]);
- v2gSensorMeasurementsType->MeasurementData.arrayLen++;
- } else {
- /* Second level event (e.g., xsi:type, xsi:nil, ...) */
- errn = EXI_UNSUPPORTED_EVENT_CODE_CHARACTERISTICS;
- }
- }
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- if(errn == 0) {
- /* valid EE for simple element START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MeasurementData) ? */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(eventCode == 0) {
- grammarID = 570;
- } 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 570:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MeasurementData), END_ELEMENT] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gSensorMeasurementsType->MeasurementData.arrayLen < v2gSensorMeasurementsType_MeasurementData_ARRAY_SIZE) {
- /* First(xsi:type)StartTag[CHARACTERS[UNSIGNED_INTEGER]] */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(errn == 0) {
- if(eventCode == 0) {
- errn = decodeUnsignedInteger16(stream, &v2gSensorMeasurementsType->MeasurementData.array[v2gSensorMeasurementsType->MeasurementData.arrayLen]);
- v2gSensorMeasurementsType->MeasurementData.arrayLen++;
- } else {
- /* Second level event (e.g., xsi:type, xsi:nil, ...) */
- errn = EXI_UNSUPPORTED_EVENT_CODE_CHARACTERISTICS;
- }
- }
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- if(errn == 0) {
- /* valid EE for simple element START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MeasurementData) ? */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(eventCode == 0) {
- grammarID = 571;
- } 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 571:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MeasurementData), END_ELEMENT] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gSensorMeasurementsType->MeasurementData.arrayLen < v2gSensorMeasurementsType_MeasurementData_ARRAY_SIZE) {
- /* First(xsi:type)StartTag[CHARACTERS[UNSIGNED_INTEGER]] */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(errn == 0) {
- if(eventCode == 0) {
- errn = decodeUnsignedInteger16(stream, &v2gSensorMeasurementsType->MeasurementData.array[v2gSensorMeasurementsType->MeasurementData.arrayLen]);
- v2gSensorMeasurementsType->MeasurementData.arrayLen++;
- } else {
- /* Second level event (e.g., xsi:type, xsi:nil, ...) */
- errn = EXI_UNSUPPORTED_EVENT_CODE_CHARACTERISTICS;
- }
- }
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- if(errn == 0) {
- /* valid EE for simple element START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MeasurementData) ? */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(eventCode == 0) {
- grammarID = 572;
- } 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 572:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MeasurementData), END_ELEMENT] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gSensorMeasurementsType->MeasurementData.arrayLen < v2gSensorMeasurementsType_MeasurementData_ARRAY_SIZE) {
- /* First(xsi:type)StartTag[CHARACTERS[UNSIGNED_INTEGER]] */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(errn == 0) {
- if(eventCode == 0) {
- errn = decodeUnsignedInteger16(stream, &v2gSensorMeasurementsType->MeasurementData.array[v2gSensorMeasurementsType->MeasurementData.arrayLen]);
- v2gSensorMeasurementsType->MeasurementData.arrayLen++;
- } else {
- /* Second level event (e.g., xsi:type, xsi:nil, ...) */
- errn = EXI_UNSUPPORTED_EVENT_CODE_CHARACTERISTICS;
- }
- }
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- if(errn == 0) {
- /* valid EE for simple element START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MeasurementData) ? */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(eventCode == 0) {
- grammarID = 573;
- } 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 573:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MeasurementData), END_ELEMENT] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gSensorMeasurementsType->MeasurementData.arrayLen < v2gSensorMeasurementsType_MeasurementData_ARRAY_SIZE) {
- /* First(xsi:type)StartTag[CHARACTERS[UNSIGNED_INTEGER]] */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(errn == 0) {
- if(eventCode == 0) {
- errn = decodeUnsignedInteger16(stream, &v2gSensorMeasurementsType->MeasurementData.array[v2gSensorMeasurementsType->MeasurementData.arrayLen]);
- v2gSensorMeasurementsType->MeasurementData.arrayLen++;
- } else {
- /* Second level event (e.g., xsi:type, xsi:nil, ...) */
- errn = EXI_UNSUPPORTED_EVENT_CODE_CHARACTERISTICS;
- }
- }
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- if(errn == 0) {
- /* valid EE for simple element START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MeasurementData) ? */
- 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:2016:MsgDataTypes,AC_EVSEBidirectionalParameterType', base type name='AC_EVSEChargeParameterType', content type='ELEMENT', isAbstract='false', hasTypeId='false', final='0', block='0', particle='(("urn:iso:15118:2:2016:MsgDataTypes":EVSEMaximumChargeCurrent,"urn:iso:15118:2:2016:MsgDataTypes":EVSENominalVoltage,"urn:iso:15118:2:2016:MsgDataTypes":EVSENominalFrequency),("urn:iso:15118:2:2016:MsgDataTypes":EVSEMaximumDischargeCurrent,"urn:iso:15118:2:2016:MsgDataTypes":EVSENominalFrequency))', derivedBy='EXTENSION'. */
-static int decode_v2gAC_EVSEBidirectionalParameterType(bitstream_t* stream, struct v2gAC_EVSEBidirectionalParameterType* v2gAC_EVSEBidirectionalParameterType) {
- int grammarID = 574;
- int done = 0;
-
- init_v2gAC_EVSEBidirectionalParameterType(v2gAC_EVSEBidirectionalParameterType);
-
- while(!done) {
- switch(grammarID) {
- case 574:
- /* FirstStartTag[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}EVSEMaximumChargeCurrent)] */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- errn = decode_v2gPhysicalValueType(stream, &v2gAC_EVSEBidirectionalParameterType->EVSEMaximumChargeCurrent);
- grammarID = 575;
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 575:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}EVSENominalVoltage)] */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- errn = decode_v2gPhysicalValueType(stream, &v2gAC_EVSEBidirectionalParameterType->EVSENominalVoltage);
- grammarID = 576;
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 576:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}EVSENominalFrequency)] */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- errn = decode_v2gPhysicalValueType(stream, &v2gAC_EVSEBidirectionalParameterType->EVSENominalFrequency);
- grammarID = 577;
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 577:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}EVSEMaximumDischargeCurrent)] */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- errn = decode_v2gPhysicalValueType(stream, &v2gAC_EVSEBidirectionalParameterType->EVSEMaximumDischargeCurrent);
- grammarID = 578;
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 578:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}EVSENominalFrequency)] */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- errn = decode_v2gPhysicalValueType(stream, &v2gAC_EVSEBidirectionalParameterType->EVSENominalFrequency);
- grammarID = 2;
- 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:2016:MsgDataTypes,ConsumptionCostType', base type name='anyType', content type='ELEMENT', isAbstract='false', hasTypeId='false', final='0', block='0', particle='("urn:iso:15118:2:2016:MsgDataTypes":startValue,"urn:iso:15118:2:2016:MsgDataTypes":Cost{1-3})', derivedBy='RESTRICTION'. */
-static int decode_v2gConsumptionCostType(bitstream_t* stream, struct v2gConsumptionCostType* v2gConsumptionCostType) {
- int grammarID = 579;
- int done = 0;
-
- init_v2gConsumptionCostType(v2gConsumptionCostType);
-
- while(!done) {
- switch(grammarID) {
- case 579:
- /* FirstStartTag[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}startValue)] */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- errn = decode_v2gPhysicalValueType(stream, &v2gConsumptionCostType->startValue);
- grammarID = 580;
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 580:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}Cost)] */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gConsumptionCostType->Cost.arrayLen < v2gConsumptionCostType_Cost_ARRAY_SIZE) {
- errn = decode_v2gCostType(stream, &v2gConsumptionCostType->Cost.array[v2gConsumptionCostType->Cost.arrayLen++]);
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- grammarID = 581;
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 581:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}Cost), END_ELEMENT] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gConsumptionCostType->Cost.arrayLen < v2gConsumptionCostType_Cost_ARRAY_SIZE) {
- errn = decode_v2gCostType(stream, &v2gConsumptionCostType->Cost.array[v2gConsumptionCostType->Cost.arrayLen++]);
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- grammarID = 582;
- break;
- case 1:
- done = 1;
- grammarID = 3;
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 582:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}Cost), END_ELEMENT] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gConsumptionCostType->Cost.arrayLen < v2gConsumptionCostType_Cost_ARRAY_SIZE) {
- errn = decode_v2gCostType(stream, &v2gConsumptionCostType->Cost.array[v2gConsumptionCostType->Cost.arrayLen++]);
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- grammarID = 2;
- 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:2016:MsgBody,AuthorizationResType', base type name='V2GResponseType', content type='ELEMENT', isAbstract='false', hasTypeId='false', final='0', block='0', particle='(("urn:iso:15118:2:2016:MsgBody":ResponseCode,"urn:iso:15118:2:2016:MsgBody":EVSEStatus{0-1}),("urn:iso:15118:2:2016:MsgBody":EVSEProcessing))', derivedBy='EXTENSION'. */
-static int decode_v2gAuthorizationResType(bitstream_t* stream, struct v2gAuthorizationResType* v2gAuthorizationResType) {
- int grammarID = 583;
- int done = 0;
-
- init_v2gAuthorizationResType(v2gAuthorizationResType);
-
- while(!done) {
- switch(grammarID) {
- case 583:
- /* FirstStartTag[START_ELEMENT({urn:iso:15118:2:2016:MsgBody}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, 5, &uint32);
- v2gAuthorizationResType->ResponseCode = (v2gresponseCodeType) 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({urn:iso:15118:2:2016:MsgBody}ResponseCode) ? */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(eventCode == 0) {
- grammarID = 584;
- } else {
- errn = EXI_DEVIANT_SUPPORT_NOT_DEPLOYED; /* or also typecast and nillable */
- }
- }
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 584:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgBody}EVSEStatus), START_ELEMENT({urn:iso:15118:2:2016:MsgBody}EVSEProcessing)] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- errn = decode_v2gEVSEStatusType(stream, &v2gAuthorizationResType->EVSEStatus);
- v2gAuthorizationResType->EVSEStatus_isUsed = 1u;
- grammarID = 585;
- break;
- case 1:
- /* FirstStartTag[CHARACTERS[ENUMERATION]] */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(errn == 0) {
- if(eventCode == 0) {
- errn = decodeNBitUnsignedInteger(stream, 2, &uint32);
- v2gAuthorizationResType->EVSEProcessing = (v2gEVSEProcessingType) 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({urn:iso:15118:2:2016:MsgBody}EVSEProcessing) ? */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(eventCode == 0) {
- grammarID = 2;
- } else {
- errn = EXI_DEVIANT_SUPPORT_NOT_DEPLOYED; /* or also typecast and nillable */
- }
- }
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 585:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgBody}EVSEProcessing)] */
- 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);
- v2gAuthorizationResType->EVSEProcessing = (v2gEVSEProcessingType) 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({urn:iso:15118:2:2016:MsgBody}EVSEProcessing) ? */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(eventCode == 0) {
- grammarID = 2;
- } else {
- errn = EXI_DEVIANT_SUPPORT_NOT_DEPLOYED; /* or also typecast and nillable */
- }
- }
- 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:2016:MsgDataTypes,Generic_EVFinePositioningParametersType', base type name='EVFinePositioningParametersType', content type='ELEMENT', isAbstract='false', hasTypeId='false', final='0', block='0', particle='("urn:iso:15118:2:2016:MsgDataTypes":GenericParameters)', derivedBy='EXTENSION'. */
-static int decode_v2gGeneric_EVFinePositioningParametersType(bitstream_t* stream, struct v2gGeneric_EVFinePositioningParametersType* v2gGeneric_EVFinePositioningParametersType) {
- int grammarID = 586;
- int done = 0;
-
- init_v2gGeneric_EVFinePositioningParametersType(v2gGeneric_EVFinePositioningParametersType);
-
- while(!done) {
- switch(grammarID) {
- case 586:
- /* FirstStartTag[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}GenericParameters)] */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- errn = decode_v2gParameterSetType(stream, &v2gGeneric_EVFinePositioningParametersType->GenericParameters);
- grammarID = 2;
- 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:2016:MsgDataTypes,EVSEStatusType', base type name='anyType', content type='ELEMENT', isAbstract='false', hasTypeId='false', final='0', block='0', particle='("urn:iso:15118:2:2016:MsgDataTypes":NotificationMaxDelay,"urn:iso:15118:2:2016:MsgDataTypes":EVSENotification)', derivedBy='RESTRICTION'. */
-static int decode_v2gEVSEStatusType(bitstream_t* stream, struct v2gEVSEStatusType* v2gEVSEStatusType) {
- int grammarID = 587;
- int done = 0;
-
- init_v2gEVSEStatusType(v2gEVSEStatusType);
-
- while(!done) {
- switch(grammarID) {
- case 587:
- /* FirstStartTag[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}NotificationMaxDelay)] */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- /* First(xsi:type)StartTag[CHARACTERS[UNSIGNED_INTEGER]] */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(errn == 0) {
- if(eventCode == 0) {
- errn = decodeUnsignedInteger16(stream, &v2gEVSEStatusType->NotificationMaxDelay);
- } 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({urn:iso:15118:2:2016:MsgDataTypes}NotificationMaxDelay) ? */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(eventCode == 0) {
- grammarID = 588;
- } else {
- errn = EXI_DEVIANT_SUPPORT_NOT_DEPLOYED; /* or also typecast and nillable */
- }
- }
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 588:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}EVSENotification)] */
- 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, 1, &uint32);
- v2gEVSEStatusType->EVSENotification = (v2gEVSENotificationType) 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({urn:iso:15118:2:2016:MsgDataTypes}EVSENotification) ? */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(eventCode == 0) {
- grammarID = 2;
- } else {
- errn = EXI_DEVIANT_SUPPORT_NOT_DEPLOYED; /* or also typecast and nillable */
- }
- }
- 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='http://www.w3.org/2000/09/xmldsig#,X509IssuerSerialType', base type name='anyType', content type='ELEMENT', isAbstract='false', hasTypeId='false', final='0', block='0', particle='("http://www.w3.org/2000/09/xmldsig#":X509IssuerName,"http://www.w3.org/2000/09/xmldsig#":X509SerialNumber)', derivedBy='RESTRICTION'. */
-static int decode_v2gX509IssuerSerialType(bitstream_t* stream, struct v2gX509IssuerSerialType* v2gX509IssuerSerialType) {
- int grammarID = 589;
- int done = 0;
-
- init_v2gX509IssuerSerialType(v2gX509IssuerSerialType);
-
- while(!done) {
- switch(grammarID) {
- case 589:
- /* FirstStartTag[START_ELEMENT({http://www.w3.org/2000/09/xmldsig#}X509IssuerName)] */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- /* First(xsi:type)StartTag[CHARACTERS[STRING]] */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(errn == 0) {
- if(eventCode == 0) {
- errn = decodeUnsignedInteger16(stream, &v2gX509IssuerSerialType->X509IssuerName.charactersLen);
- if (errn == 0) {
- if (v2gX509IssuerSerialType->X509IssuerName.charactersLen >= 2) {
- v2gX509IssuerSerialType->X509IssuerName.charactersLen = (uint16_t)(v2gX509IssuerSerialType->X509IssuerName.charactersLen - 2); /* string table miss */
- errn = decodeCharacters(stream, v2gX509IssuerSerialType->X509IssuerName.charactersLen, v2gX509IssuerSerialType->X509IssuerName.characters, v2gX509IssuerSerialType_X509IssuerName_CHARACTERS_SIZE);
- } else {
- /* string table hit */
- errn = EXI_ERROR_STRINGVALUES_NOT_SUPPORTED;
- }
- }
- } 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({http://www.w3.org/2000/09/xmldsig#}X509IssuerName) ? */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(eventCode == 0) {
- grammarID = 590;
- } else {
- errn = EXI_DEVIANT_SUPPORT_NOT_DEPLOYED; /* or also typecast and nillable */
- }
- }
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 590:
- /* Element[START_ELEMENT({http://www.w3.org/2000/09/xmldsig#}X509SerialNumber)] */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- /* First(xsi:type)StartTag[CHARACTERS[INTEGER]] */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(errn == 0) {
- if(eventCode == 0) {
- errn = decodeInteger64(stream, &v2gX509IssuerSerialType->X509SerialNumber);
- } 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({http://www.w3.org/2000/09/xmldsig#}X509SerialNumber) ? */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(eventCode == 0) {
- grammarID = 2;
- } else {
- errn = EXI_DEVIANT_SUPPORT_NOT_DEPLOYED; /* or also typecast and nillable */
- }
- }
- 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:2016:MsgDataTypes,AC_EVBidirectionalParameterType', base type name='AC_EVChargeParameterType', content type='ELEMENT', isAbstract='false', hasTypeId='false', final='0', block='0', particle='((("urn:iso:15118:2:2016:MsgDataTypes":DepartureTime),("urn:iso:15118:2:2016:MsgDataTypes":EVMaximumChargePower,"urn:iso:15118:2:2016:MsgDataTypes":EVMaximumChargeCurrent,"urn:iso:15118:2:2016:MsgDataTypes":EVMinimumChargeCurrent,"urn:iso:15118:2:2016:MsgDataTypes":EVTargetEnergyRequest{0-1},"urn:iso:15118:2:2016:MsgDataTypes":EVMaximumEnergyRequest{0-1},"urn:iso:15118:2:2016:MsgDataTypes":EVMinimumEnergyRequest{0-1},"urn:iso:15118:2:2016:MsgDataTypes":EVMaximumVoltage)),("urn:iso:15118:2:2016:MsgDataTypes":EVMaximumDischargePower,"urn:iso:15118:2:2016:MsgDataTypes":EVMaximumDischargeCurrent,"urn:iso:15118:2:2016:MsgDataTypes":EVMinimumDischargeCurrent))', derivedBy='EXTENSION'. */
-static int decode_v2gAC_EVBidirectionalParameterType(bitstream_t* stream, struct v2gAC_EVBidirectionalParameterType* v2gAC_EVBidirectionalParameterType) {
- int grammarID = 591;
- int done = 0;
-
- init_v2gAC_EVBidirectionalParameterType(v2gAC_EVBidirectionalParameterType);
-
- while(!done) {
- switch(grammarID) {
- case 591:
- /* FirstStartTag[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}DepartureTime)] */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- /* First(xsi:type)StartTag[CHARACTERS[UNSIGNED_INTEGER]] */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(errn == 0) {
- if(eventCode == 0) {
- errn = decodeUnsignedInteger32(stream, &v2gAC_EVBidirectionalParameterType->DepartureTime);
- } 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({urn:iso:15118:2:2016:MsgDataTypes}DepartureTime) ? */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(eventCode == 0) {
- grammarID = 592;
- } else {
- errn = EXI_DEVIANT_SUPPORT_NOT_DEPLOYED; /* or also typecast and nillable */
- }
- }
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 592:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}EVMaximumChargePower)] */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- errn = decode_v2gPhysicalValueType(stream, &v2gAC_EVBidirectionalParameterType->EVMaximumChargePower);
- grammarID = 593;
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 593:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}EVMaximumChargeCurrent)] */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- errn = decode_v2gPhysicalValueType(stream, &v2gAC_EVBidirectionalParameterType->EVMaximumChargeCurrent);
- grammarID = 594;
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 594:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}EVMinimumChargeCurrent)] */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- errn = decode_v2gPhysicalValueType(stream, &v2gAC_EVBidirectionalParameterType->EVMinimumChargeCurrent);
- grammarID = 595;
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 595:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}EVTargetEnergyRequest), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}EVMaximumEnergyRequest), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}EVMinimumEnergyRequest), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}EVMaximumVoltage)] */
- errn = decodeNBitUnsignedInteger(stream, 3, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- errn = decode_v2gPhysicalValueType(stream, &v2gAC_EVBidirectionalParameterType->EVTargetEnergyRequest);
- v2gAC_EVBidirectionalParameterType->EVTargetEnergyRequest_isUsed = 1u;
- grammarID = 596;
- break;
- case 1:
- errn = decode_v2gPhysicalValueType(stream, &v2gAC_EVBidirectionalParameterType->EVMaximumEnergyRequest);
- v2gAC_EVBidirectionalParameterType->EVMaximumEnergyRequest_isUsed = 1u;
- grammarID = 597;
- break;
- case 2:
- errn = decode_v2gPhysicalValueType(stream, &v2gAC_EVBidirectionalParameterType->EVMinimumEnergyRequest);
- v2gAC_EVBidirectionalParameterType->EVMinimumEnergyRequest_isUsed = 1u;
- grammarID = 598;
- break;
- case 3:
- errn = decode_v2gPhysicalValueType(stream, &v2gAC_EVBidirectionalParameterType->EVMaximumVoltage);
- grammarID = 599;
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 596:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}EVMaximumEnergyRequest), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}EVMinimumEnergyRequest), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}EVMaximumVoltage)] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- errn = decode_v2gPhysicalValueType(stream, &v2gAC_EVBidirectionalParameterType->EVMaximumEnergyRequest);
- v2gAC_EVBidirectionalParameterType->EVMaximumEnergyRequest_isUsed = 1u;
- grammarID = 597;
- break;
- case 1:
- errn = decode_v2gPhysicalValueType(stream, &v2gAC_EVBidirectionalParameterType->EVMinimumEnergyRequest);
- v2gAC_EVBidirectionalParameterType->EVMinimumEnergyRequest_isUsed = 1u;
- grammarID = 598;
- break;
- case 2:
- errn = decode_v2gPhysicalValueType(stream, &v2gAC_EVBidirectionalParameterType->EVMaximumVoltage);
- grammarID = 599;
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 597:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}EVMinimumEnergyRequest), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}EVMaximumVoltage)] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- errn = decode_v2gPhysicalValueType(stream, &v2gAC_EVBidirectionalParameterType->EVMinimumEnergyRequest);
- v2gAC_EVBidirectionalParameterType->EVMinimumEnergyRequest_isUsed = 1u;
- grammarID = 598;
- break;
- case 1:
- errn = decode_v2gPhysicalValueType(stream, &v2gAC_EVBidirectionalParameterType->EVMaximumVoltage);
- grammarID = 599;
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 598:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}EVMaximumVoltage)] */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- errn = decode_v2gPhysicalValueType(stream, &v2gAC_EVBidirectionalParameterType->EVMaximumVoltage);
- grammarID = 599;
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 599:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}EVMaximumDischargePower)] */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- errn = decode_v2gPhysicalValueType(stream, &v2gAC_EVBidirectionalParameterType->EVMaximumDischargePower);
- grammarID = 600;
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 600:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}EVMaximumDischargeCurrent)] */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- errn = decode_v2gPhysicalValueType(stream, &v2gAC_EVBidirectionalParameterType->EVMaximumDischargeCurrent);
- grammarID = 601;
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 601:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}EVMinimumDischargeCurrent)] */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- errn = decode_v2gPhysicalValueType(stream, &v2gAC_EVBidirectionalParameterType->EVMinimumDischargeCurrent);
- grammarID = 2;
- 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:2016:MsgDataTypes,EVFinePositioningSetupParametersType', base type name='anyType', content type='EMPTY', isAbstract='true', hasTypeId='false', final='0', block='0', derivedBy='RESTRICTION'. */
-static int decode_v2gEVFinePositioningSetupParametersType(bitstream_t* stream, struct v2gEVFinePositioningSetupParametersType* v2gEVFinePositioningSetupParametersType) {
- int grammarID = 4;
- int done = 0;
-
- init_v2gEVFinePositioningSetupParametersType(v2gEVFinePositioningSetupParametersType);
-
- while(!done) {
- switch(grammarID) {
- case 4:
- /* FirstStartTag[END_ELEMENT] */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- done = 1;
- grammarID = 3;
+ grammarID = 4;
break;
default:
errn = EXI_ERROR_UNKOWN_EVENT_CODE;
@@ -20378,15 +485,15 @@ static int decode_v2gEVFinePositioningSetupParametersType(bitstream_t* stream, s
}
/* Complex type name='urn:iso:15118:2:2016:MsgDataTypes,MV_EVSEFinePositioningSetupParametersType', base type name='EVSEFinePositioningSetupParametersType', content type='ELEMENT', isAbstract='false', hasTypeId='false', final='0', block='0', particle='("urn:iso:15118:2:2016:MsgDataTypes":FrequencyChannel{0-1},"urn:iso:15118:2:2016:MsgDataTypes":MagneticVectorSetupList{0-1})', derivedBy='EXTENSION'. */
-static int decode_v2gMV_EVSEFinePositioningSetupParametersType(bitstream_t* stream, struct v2gMV_EVSEFinePositioningSetupParametersType* v2gMV_EVSEFinePositioningSetupParametersType) {
- int grammarID = 602;
+static int decode_iso2MV_EVSEFinePositioningSetupParametersType(bitstream_t* stream, struct iso2MV_EVSEFinePositioningSetupParametersType* iso2MV_EVSEFinePositioningSetupParametersType) {
+ int grammarID = 8;
int done = 0;
- init_v2gMV_EVSEFinePositioningSetupParametersType(v2gMV_EVSEFinePositioningSetupParametersType);
+ init_iso2MV_EVSEFinePositioningSetupParametersType(iso2MV_EVSEFinePositioningSetupParametersType);
while(!done) {
switch(grammarID) {
- case 602:
+ case 8:
/* FirstStartTag[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}FrequencyChannel), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MagneticVectorSetupList), END_ELEMENT] */
errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
if (errn == 0) {
@@ -20396,8 +503,8 @@ static int decode_v2gMV_EVSEFinePositioningSetupParametersType(bitstream_t* stre
errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
if(errn == 0) {
if(eventCode == 0) {
- errn = decodeUnsignedInteger32(stream, &v2gMV_EVSEFinePositioningSetupParametersType->FrequencyChannel);
- v2gMV_EVSEFinePositioningSetupParametersType->FrequencyChannel_isUsed = 1u;
+ errn = decodeUnsignedInteger32(stream, &iso2MV_EVSEFinePositioningSetupParametersType->FrequencyChannel);
+ iso2MV_EVSEFinePositioningSetupParametersType->FrequencyChannel_isUsed = 1u;
} else {
/* Second level event (e.g., xsi:type, xsi:nil, ...) */
errn = EXI_UNSUPPORTED_EVENT_CODE_CHARACTERISTICS;
@@ -20407,20 +514,20 @@ static int decode_v2gMV_EVSEFinePositioningSetupParametersType(bitstream_t* stre
/* valid EE for simple element START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}FrequencyChannel) ? */
errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
if(eventCode == 0) {
- grammarID = 603;
+ grammarID = 9;
} else {
errn = EXI_DEVIANT_SUPPORT_NOT_DEPLOYED; /* or also typecast and nillable */
}
}
break;
case 1:
- errn = decode_v2gMagneticVectorSetupListType(stream, &v2gMV_EVSEFinePositioningSetupParametersType->MagneticVectorSetupList);
- v2gMV_EVSEFinePositioningSetupParametersType->MagneticVectorSetupList_isUsed = 1u;
- grammarID = 2;
+ errn = decode_iso2MagneticVectorSetupListType(stream, &iso2MV_EVSEFinePositioningSetupParametersType->MagneticVectorSetupList);
+ iso2MV_EVSEFinePositioningSetupParametersType->MagneticVectorSetupList_isUsed = 1u;
+ grammarID = 3;
break;
case 2:
done = 1;
- grammarID = 3;
+ grammarID = 4;
break;
default:
errn = EXI_ERROR_UNKOWN_EVENT_CODE;
@@ -20428,19 +535,19 @@ static int decode_v2gMV_EVSEFinePositioningSetupParametersType(bitstream_t* stre
}
}
break;
- case 603:
+ case 9:
/* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MagneticVectorSetupList), END_ELEMENT] */
errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
if (errn == 0) {
switch(eventCode) {
case 0:
- errn = decode_v2gMagneticVectorSetupListType(stream, &v2gMV_EVSEFinePositioningSetupParametersType->MagneticVectorSetupList);
- v2gMV_EVSEFinePositioningSetupParametersType->MagneticVectorSetupList_isUsed = 1u;
- grammarID = 2;
+ errn = decode_iso2MagneticVectorSetupListType(stream, &iso2MV_EVSEFinePositioningSetupParametersType->MagneticVectorSetupList);
+ iso2MV_EVSEFinePositioningSetupParametersType->MagneticVectorSetupList_isUsed = 1u;
+ grammarID = 3;
break;
case 1:
done = 1;
- grammarID = 3;
+ grammarID = 4;
break;
default:
errn = EXI_ERROR_UNKOWN_EVENT_CODE;
@@ -20448,36065 +555,14 @@ static int decode_v2gMV_EVSEFinePositioningSetupParametersType(bitstream_t* stre
}
}
break;
- case 2:
+ case 3:
/* 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:2016:MsgBody,MeteringReceiptReqType', base type name='BodyBaseType', content type='ELEMENT', isAbstract='false', hasTypeId='false', final='0', block='0', particle='("urn:iso:15118:2:2016:MsgBody":SessionID,"urn:iso:15118:2:2016:MsgBody":SAScheduleTupleID{0-1},"urn:iso:15118:2:2016:MsgBody":MeterInfo)', derivedBy='EXTENSION'. */
-static int decode_v2gMeteringReceiptReqType(bitstream_t* stream, struct v2gMeteringReceiptReqType* v2gMeteringReceiptReqType) {
- int grammarID = 604;
- int done = 0;
-
- init_v2gMeteringReceiptReqType(v2gMeteringReceiptReqType);
-
- while(!done) {
- switch(grammarID) {
- case 604:
- /* FirstStartTag[ATTRIBUTE[STRING]({urn:iso:15118:2:2016:MsgBody}Id)] */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- errn = decodeUnsignedInteger16(stream, &v2gMeteringReceiptReqType->Id.charactersLen);
- if (errn == 0) {
- if (v2gMeteringReceiptReqType->Id.charactersLen >= 2) {
- v2gMeteringReceiptReqType->Id.charactersLen = (uint16_t)(v2gMeteringReceiptReqType->Id.charactersLen - 2); /* string table miss */
- errn = decodeCharacters(stream, v2gMeteringReceiptReqType->Id.charactersLen, v2gMeteringReceiptReqType->Id.characters, v2gMeteringReceiptReqType_Id_CHARACTERS_SIZE);
- } else {
- /* string table hit */
- errn = EXI_ERROR_STRINGVALUES_NOT_SUPPORTED;
- }
- }
- grammarID = 605;
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 605:
- /* StartTag[START_ELEMENT({urn:iso:15118:2:2016:MsgBody}SessionID)] */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- /* FirstStartTag[CHARACTERS[BINARY_HEX]] */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(errn == 0) {
- if(eventCode == 0) {
- errn = decodeUnsignedInteger16(stream, &v2gMeteringReceiptReqType->SessionID.bytesLen);
- if (errn == 0) {
- errn = (v2gMeteringReceiptReqType->SessionID.bytesLen) <= v2gMeteringReceiptReqType_SessionID_BYTES_SIZE ? 0 : EXI_ERROR_OUT_OF_BYTE_BUFFER;
- }
- if (errn == 0) {
- errn = decodeBytes(stream, v2gMeteringReceiptReqType->SessionID.bytesLen, v2gMeteringReceiptReqType->SessionID.bytes);
- }
- } 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({urn:iso:15118:2:2016:MsgBody}SessionID) ? */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(eventCode == 0) {
- grammarID = 606;
- } else {
- errn = EXI_DEVIANT_SUPPORT_NOT_DEPLOYED; /* or also typecast and nillable */
- }
- }
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 606:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgBody}SAScheduleTupleID), START_ELEMENT({urn:iso:15118:2:2016:MsgBody}MeterInfo)] */
- 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));
- v2gMeteringReceiptReqType->SAScheduleTupleID = (uint8_t)(uint32 + 1);
- v2gMeteringReceiptReqType->SAScheduleTupleID_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({urn:iso:15118:2:2016:MsgBody}SAScheduleTupleID) ? */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(eventCode == 0) {
- grammarID = 607;
- } else {
- errn = EXI_DEVIANT_SUPPORT_NOT_DEPLOYED; /* or also typecast and nillable */
- }
- }
- break;
- case 1:
- errn = decode_v2gMeterInfoType(stream, &v2gMeteringReceiptReqType->MeterInfo);
- grammarID = 2;
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 607:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgBody}MeterInfo)] */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- errn = decode_v2gMeterInfoType(stream, &v2gMeteringReceiptReqType->MeterInfo);
- grammarID = 2;
- 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:2016:MsgBody,AuthorizationReqType', base type name='BodyBaseType', content type='ELEMENT', isAbstract='false', hasTypeId='false', final='0', block='0', particle='("urn:iso:15118:2:2016:MsgBody":GenChallenge{0-1})', derivedBy='EXTENSION'. */
-static int decode_v2gAuthorizationReqType(bitstream_t* stream, struct v2gAuthorizationReqType* v2gAuthorizationReqType) {
- int grammarID = 608;
- int done = 0;
-
- init_v2gAuthorizationReqType(v2gAuthorizationReqType);
-
- while(!done) {
- switch(grammarID) {
- case 608:
- /* FirstStartTag[ATTRIBUTE[STRING]({urn:iso:15118:2:2016:MsgBody}Id), START_ELEMENT({urn:iso:15118:2:2016:MsgBody}GenChallenge), END_ELEMENT] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- errn = decodeUnsignedInteger16(stream, &v2gAuthorizationReqType->Id.charactersLen);
- if (errn == 0) {
- if (v2gAuthorizationReqType->Id.charactersLen >= 2) {
- v2gAuthorizationReqType->Id.charactersLen = (uint16_t)(v2gAuthorizationReqType->Id.charactersLen - 2); /* string table miss */
- errn = decodeCharacters(stream, v2gAuthorizationReqType->Id.charactersLen, v2gAuthorizationReqType->Id.characters, v2gAuthorizationReqType_Id_CHARACTERS_SIZE);
- } else {
- /* string table hit */
- errn = EXI_ERROR_STRINGVALUES_NOT_SUPPORTED;
- }
- }
- v2gAuthorizationReqType->Id_isUsed = 1u;
- grammarID = 609;
- break;
- case 1:
- /* FirstStartTag[CHARACTERS[BINARY_BASE64]] */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(errn == 0) {
- if(eventCode == 0) {
- errn = decodeUnsignedInteger16(stream, &v2gAuthorizationReqType->GenChallenge.bytesLen);
- if (errn == 0) {
- errn = (v2gAuthorizationReqType->GenChallenge.bytesLen) <= v2gAuthorizationReqType_GenChallenge_BYTES_SIZE ? 0 : EXI_ERROR_OUT_OF_BYTE_BUFFER;
- }
- if (errn == 0) {
- errn = decodeBytes(stream, v2gAuthorizationReqType->GenChallenge.bytesLen, v2gAuthorizationReqType->GenChallenge.bytes);
- }
- v2gAuthorizationReqType->GenChallenge_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({urn:iso:15118:2:2016:MsgBody}GenChallenge) ? */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(eventCode == 0) {
- grammarID = 2;
- } else {
- errn = EXI_DEVIANT_SUPPORT_NOT_DEPLOYED; /* or also typecast and nillable */
- }
- }
- break;
- case 2:
- done = 1;
- grammarID = 3;
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 609:
- /* StartTag[START_ELEMENT({urn:iso:15118:2:2016:MsgBody}GenChallenge), END_ELEMENT] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- /* FirstStartTag[CHARACTERS[BINARY_BASE64]] */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(errn == 0) {
- if(eventCode == 0) {
- errn = decodeUnsignedInteger16(stream, &v2gAuthorizationReqType->GenChallenge.bytesLen);
- if (errn == 0) {
- errn = (v2gAuthorizationReqType->GenChallenge.bytesLen) <= v2gAuthorizationReqType_GenChallenge_BYTES_SIZE ? 0 : EXI_ERROR_OUT_OF_BYTE_BUFFER;
- }
- if (errn == 0) {
- errn = decodeBytes(stream, v2gAuthorizationReqType->GenChallenge.bytesLen, v2gAuthorizationReqType->GenChallenge.bytes);
- }
- v2gAuthorizationReqType->GenChallenge_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({urn:iso:15118:2:2016:MsgBody}GenChallenge) ? */
- 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:2016:MsgBody,ChargingStatusReqType', base type name='ChargeLoopReqType', content type='ELEMENT', isAbstract='false', hasTypeId='false', final='0', block='0', particle='(("urn:iso:15118:2:2016:MsgBody":EVTargetEnergyRequest,"urn:iso:15118:2:2016:MsgBody":EVMaximumEnergyRequest{0-1},"urn:iso:15118:2:2016:MsgBody":EVMinimumEnergyRequest{0-1},"urn:iso:15118:2:2016:MsgBody":DisplayParameters{0-1}),("urn:iso:15118:2:2016:MsgBody":EVMaximumChargePower{0-1},"urn:iso:15118:2:2016:MsgBody":EVMaximumChargeCurrent{0-1},"urn:iso:15118:2:2016:MsgBody":EVMinimumChargeCurrent{0-1}))', derivedBy='EXTENSION'. */
-static int decode_v2gChargingStatusReqType(bitstream_t* stream, struct v2gChargingStatusReqType* v2gChargingStatusReqType) {
- int grammarID = 610;
- int done = 0;
-
- init_v2gChargingStatusReqType(v2gChargingStatusReqType);
-
- while(!done) {
- switch(grammarID) {
- case 610:
- /* FirstStartTag[START_ELEMENT({urn:iso:15118:2:2016:MsgBody}EVTargetEnergyRequest)] */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- errn = decode_v2gPhysicalValueType(stream, &v2gChargingStatusReqType->EVTargetEnergyRequest);
- grammarID = 611;
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 611:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgBody}EVMaximumEnergyRequest), START_ELEMENT({urn:iso:15118:2:2016:MsgBody}EVMinimumEnergyRequest), START_ELEMENT({urn:iso:15118:2:2016:MsgBody}DisplayParameters), START_ELEMENT({urn:iso:15118:2:2016:MsgBody}EVMaximumChargePower), START_ELEMENT({urn:iso:15118:2:2016:MsgBody}EVMaximumChargeCurrent), START_ELEMENT({urn:iso:15118:2:2016:MsgBody}EVMinimumChargeCurrent), END_ELEMENT] */
- errn = decodeNBitUnsignedInteger(stream, 3, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- errn = decode_v2gPhysicalValueType(stream, &v2gChargingStatusReqType->EVMaximumEnergyRequest);
- v2gChargingStatusReqType->EVMaximumEnergyRequest_isUsed = 1u;
- grammarID = 612;
- break;
- case 1:
- errn = decode_v2gPhysicalValueType(stream, &v2gChargingStatusReqType->EVMinimumEnergyRequest);
- v2gChargingStatusReqType->EVMinimumEnergyRequest_isUsed = 1u;
- grammarID = 613;
- break;
- case 2:
- errn = decode_v2gDisplayParametersType(stream, &v2gChargingStatusReqType->DisplayParameters);
- v2gChargingStatusReqType->DisplayParameters_isUsed = 1u;
- grammarID = 614;
- break;
- case 3:
- errn = decode_v2gPhysicalValueType(stream, &v2gChargingStatusReqType->EVMaximumChargePower);
- v2gChargingStatusReqType->EVMaximumChargePower_isUsed = 1u;
- grammarID = 615;
- break;
- case 4:
- errn = decode_v2gPhysicalValueType(stream, &v2gChargingStatusReqType->EVMaximumChargeCurrent);
- v2gChargingStatusReqType->EVMaximumChargeCurrent_isUsed = 1u;
- grammarID = 616;
- break;
- case 5:
- errn = decode_v2gPhysicalValueType(stream, &v2gChargingStatusReqType->EVMinimumChargeCurrent);
- v2gChargingStatusReqType->EVMinimumChargeCurrent_isUsed = 1u;
- grammarID = 2;
- break;
- case 6:
- done = 1;
- grammarID = 3;
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 612:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgBody}EVMinimumEnergyRequest), START_ELEMENT({urn:iso:15118:2:2016:MsgBody}DisplayParameters), START_ELEMENT({urn:iso:15118:2:2016:MsgBody}EVMaximumChargePower), START_ELEMENT({urn:iso:15118:2:2016:MsgBody}EVMaximumChargeCurrent), START_ELEMENT({urn:iso:15118:2:2016:MsgBody}EVMinimumChargeCurrent), END_ELEMENT] */
- errn = decodeNBitUnsignedInteger(stream, 3, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- errn = decode_v2gPhysicalValueType(stream, &v2gChargingStatusReqType->EVMinimumEnergyRequest);
- v2gChargingStatusReqType->EVMinimumEnergyRequest_isUsed = 1u;
- grammarID = 613;
- break;
- case 1:
- errn = decode_v2gDisplayParametersType(stream, &v2gChargingStatusReqType->DisplayParameters);
- v2gChargingStatusReqType->DisplayParameters_isUsed = 1u;
- grammarID = 614;
- break;
- case 2:
- errn = decode_v2gPhysicalValueType(stream, &v2gChargingStatusReqType->EVMaximumChargePower);
- v2gChargingStatusReqType->EVMaximumChargePower_isUsed = 1u;
- grammarID = 615;
- break;
- case 3:
- errn = decode_v2gPhysicalValueType(stream, &v2gChargingStatusReqType->EVMaximumChargeCurrent);
- v2gChargingStatusReqType->EVMaximumChargeCurrent_isUsed = 1u;
- grammarID = 616;
- break;
- case 4:
- errn = decode_v2gPhysicalValueType(stream, &v2gChargingStatusReqType->EVMinimumChargeCurrent);
- v2gChargingStatusReqType->EVMinimumChargeCurrent_isUsed = 1u;
- grammarID = 2;
- break;
- case 5:
- done = 1;
- grammarID = 3;
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 613:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgBody}DisplayParameters), START_ELEMENT({urn:iso:15118:2:2016:MsgBody}EVMaximumChargePower), START_ELEMENT({urn:iso:15118:2:2016:MsgBody}EVMaximumChargeCurrent), START_ELEMENT({urn:iso:15118:2:2016:MsgBody}EVMinimumChargeCurrent), END_ELEMENT] */
- errn = decodeNBitUnsignedInteger(stream, 3, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- errn = decode_v2gDisplayParametersType(stream, &v2gChargingStatusReqType->DisplayParameters);
- v2gChargingStatusReqType->DisplayParameters_isUsed = 1u;
- grammarID = 614;
- break;
- case 1:
- errn = decode_v2gPhysicalValueType(stream, &v2gChargingStatusReqType->EVMaximumChargePower);
- v2gChargingStatusReqType->EVMaximumChargePower_isUsed = 1u;
- grammarID = 615;
- break;
- case 2:
- errn = decode_v2gPhysicalValueType(stream, &v2gChargingStatusReqType->EVMaximumChargeCurrent);
- v2gChargingStatusReqType->EVMaximumChargeCurrent_isUsed = 1u;
- grammarID = 616;
- break;
- case 3:
- errn = decode_v2gPhysicalValueType(stream, &v2gChargingStatusReqType->EVMinimumChargeCurrent);
- v2gChargingStatusReqType->EVMinimumChargeCurrent_isUsed = 1u;
- grammarID = 2;
- break;
- case 4:
- done = 1;
- grammarID = 3;
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 614:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgBody}EVMaximumChargePower), START_ELEMENT({urn:iso:15118:2:2016:MsgBody}EVMaximumChargeCurrent), START_ELEMENT({urn:iso:15118:2:2016:MsgBody}EVMinimumChargeCurrent), END_ELEMENT] */
- errn = decodeNBitUnsignedInteger(stream, 3, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- errn = decode_v2gPhysicalValueType(stream, &v2gChargingStatusReqType->EVMaximumChargePower);
- v2gChargingStatusReqType->EVMaximumChargePower_isUsed = 1u;
- grammarID = 615;
- break;
- case 1:
- errn = decode_v2gPhysicalValueType(stream, &v2gChargingStatusReqType->EVMaximumChargeCurrent);
- v2gChargingStatusReqType->EVMaximumChargeCurrent_isUsed = 1u;
- grammarID = 616;
- break;
- case 2:
- errn = decode_v2gPhysicalValueType(stream, &v2gChargingStatusReqType->EVMinimumChargeCurrent);
- v2gChargingStatusReqType->EVMinimumChargeCurrent_isUsed = 1u;
- grammarID = 2;
- break;
- case 3:
- done = 1;
- grammarID = 3;
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 615:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgBody}EVMaximumChargeCurrent), START_ELEMENT({urn:iso:15118:2:2016:MsgBody}EVMinimumChargeCurrent), END_ELEMENT] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- errn = decode_v2gPhysicalValueType(stream, &v2gChargingStatusReqType->EVMaximumChargeCurrent);
- v2gChargingStatusReqType->EVMaximumChargeCurrent_isUsed = 1u;
- grammarID = 616;
- break;
- case 1:
- errn = decode_v2gPhysicalValueType(stream, &v2gChargingStatusReqType->EVMinimumChargeCurrent);
- v2gChargingStatusReqType->EVMinimumChargeCurrent_isUsed = 1u;
- grammarID = 2;
- break;
- case 2:
- done = 1;
- grammarID = 3;
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 616:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgBody}EVMinimumChargeCurrent), END_ELEMENT] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- errn = decode_v2gPhysicalValueType(stream, &v2gChargingStatusReqType->EVMinimumChargeCurrent);
- v2gChargingStatusReqType->EVMinimumChargeCurrent_isUsed = 1u;
- grammarID = 2;
- 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='http://www.w3.org/2000/09/xmldsig#,ManifestType', base type name='anyType', content type='ELEMENT', isAbstract='false', hasTypeId='false', final='0', block='0', particle='("http://www.w3.org/2000/09/xmldsig#":Reference{1-UNBOUNDED})', derivedBy='RESTRICTION'. */
-static int decode_v2gManifestType(bitstream_t* stream, struct v2gManifestType* v2gManifestType) {
- int grammarID = 617;
- int done = 0;
-
- init_v2gManifestType(v2gManifestType);
-
- while(!done) {
- switch(grammarID) {
- case 617:
- /* FirstStartTag[ATTRIBUTE[STRING](Id), START_ELEMENT({http://www.w3.org/2000/09/xmldsig#}Reference)] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- errn = decodeUnsignedInteger16(stream, &v2gManifestType->Id.charactersLen);
- if (errn == 0) {
- if (v2gManifestType->Id.charactersLen >= 2) {
- v2gManifestType->Id.charactersLen = (uint16_t)(v2gManifestType->Id.charactersLen - 2); /* string table miss */
- errn = decodeCharacters(stream, v2gManifestType->Id.charactersLen, v2gManifestType->Id.characters, v2gManifestType_Id_CHARACTERS_SIZE);
- } else {
- /* string table hit */
- errn = EXI_ERROR_STRINGVALUES_NOT_SUPPORTED;
- }
- }
- v2gManifestType->Id_isUsed = 1u;
- grammarID = 618;
- break;
- case 1:
- if (v2gManifestType->Reference.arrayLen < v2gManifestType_Reference_ARRAY_SIZE) {
- errn = decode_v2gReferenceType(stream, &v2gManifestType->Reference.array[v2gManifestType->Reference.arrayLen++]);
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- grammarID = 619;
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 618:
- /* StartTag[START_ELEMENT({http://www.w3.org/2000/09/xmldsig#}Reference)] */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gManifestType->Reference.arrayLen < v2gManifestType_Reference_ARRAY_SIZE) {
- errn = decode_v2gReferenceType(stream, &v2gManifestType->Reference.array[v2gManifestType->Reference.arrayLen++]);
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- grammarID = 619;
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 619:
- /* Element[START_ELEMENT({http://www.w3.org/2000/09/xmldsig#}Reference), END_ELEMENT] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gManifestType->Reference.arrayLen < v2gManifestType_Reference_ARRAY_SIZE) {
- errn = decode_v2gReferenceType(stream, &v2gManifestType->Reference.array[v2gManifestType->Reference.arrayLen++]);
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- grammarID = 619;
- break;
- case 1:
- 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:2016:MsgDataTypes,SensorType', base type name='anyType', content type='ELEMENT', isAbstract='false', hasTypeId='false', final='0', block='0', particle='("urn:iso:15118:2:2016:MsgDataTypes":SensorID,"urn:iso:15118:2:2016:MsgDataTypes":SensorPosition,"urn:iso:15118:2:2016:MsgDataTypes":SensorOrientation)', derivedBy='RESTRICTION'. */
-static int decode_v2gSensorType(bitstream_t* stream, struct v2gSensorType* v2gSensorType) {
- int grammarID = 620;
- int done = 0;
-
- init_v2gSensorType(v2gSensorType);
-
- while(!done) {
- switch(grammarID) {
- case 620:
- /* FirstStartTag[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorID)] */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(errn == 0) {
- if(eventCode == 0) {
- errn = decodeNBitUnsignedInteger(stream, 8, &(uint32));
- v2gSensorType->SensorID = (uint8_t)(uint32 + 0);
- } 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({urn:iso:15118:2:2016:MsgDataTypes}SensorID) ? */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(eventCode == 0) {
- grammarID = 621;
- } else {
- errn = EXI_DEVIANT_SUPPORT_NOT_DEPLOYED; /* or also typecast and nillable */
- }
- }
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 621:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorPosition)] */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- errn = decode_v2gCartesianCoordinatesType(stream, &v2gSensorType->SensorPosition);
- grammarID = 622;
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 622:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorOrientation)] */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- errn = decode_v2gCartesianCoordinatesType(stream, &v2gSensorType->SensorOrientation);
- grammarID = 2;
- 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:2016:MsgDataTypes,AC_EVChargeParameterType', base type name='EVEnergyTransferParameterType', content type='ELEMENT', isAbstract='false', hasTypeId='false', final='0', block='0', particle='(("urn:iso:15118:2:2016:MsgDataTypes":DepartureTime),("urn:iso:15118:2:2016:MsgDataTypes":EVMaximumChargePower,"urn:iso:15118:2:2016:MsgDataTypes":EVMaximumChargeCurrent,"urn:iso:15118:2:2016:MsgDataTypes":EVMinimumChargeCurrent,"urn:iso:15118:2:2016:MsgDataTypes":EVTargetEnergyRequest{0-1},"urn:iso:15118:2:2016:MsgDataTypes":EVMaximumEnergyRequest{0-1},"urn:iso:15118:2:2016:MsgDataTypes":EVMinimumEnergyRequest{0-1},"urn:iso:15118:2:2016:MsgDataTypes":EVMaximumVoltage))', derivedBy='EXTENSION'. */
-static int decode_v2gAC_EVChargeParameterType(bitstream_t* stream, struct v2gAC_EVChargeParameterType* v2gAC_EVChargeParameterType) {
- int grammarID = 623;
- int done = 0;
-
- init_v2gAC_EVChargeParameterType(v2gAC_EVChargeParameterType);
-
- while(!done) {
- switch(grammarID) {
- case 623:
- /* FirstStartTag[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}DepartureTime)] */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- /* First(xsi:type)StartTag[CHARACTERS[UNSIGNED_INTEGER]] */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(errn == 0) {
- if(eventCode == 0) {
- errn = decodeUnsignedInteger32(stream, &v2gAC_EVChargeParameterType->DepartureTime);
- } 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({urn:iso:15118:2:2016:MsgDataTypes}DepartureTime) ? */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(eventCode == 0) {
- grammarID = 624;
- } else {
- errn = EXI_DEVIANT_SUPPORT_NOT_DEPLOYED; /* or also typecast and nillable */
- }
- }
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 624:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}EVMaximumChargePower)] */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- errn = decode_v2gPhysicalValueType(stream, &v2gAC_EVChargeParameterType->EVMaximumChargePower);
- grammarID = 625;
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 625:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}EVMaximumChargeCurrent)] */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- errn = decode_v2gPhysicalValueType(stream, &v2gAC_EVChargeParameterType->EVMaximumChargeCurrent);
- grammarID = 626;
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 626:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}EVMinimumChargeCurrent)] */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- errn = decode_v2gPhysicalValueType(stream, &v2gAC_EVChargeParameterType->EVMinimumChargeCurrent);
- grammarID = 627;
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 627:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}EVTargetEnergyRequest), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}EVMaximumEnergyRequest), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}EVMinimumEnergyRequest), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}EVMaximumVoltage)] */
- errn = decodeNBitUnsignedInteger(stream, 3, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- errn = decode_v2gPhysicalValueType(stream, &v2gAC_EVChargeParameterType->EVTargetEnergyRequest);
- v2gAC_EVChargeParameterType->EVTargetEnergyRequest_isUsed = 1u;
- grammarID = 628;
- break;
- case 1:
- errn = decode_v2gPhysicalValueType(stream, &v2gAC_EVChargeParameterType->EVMaximumEnergyRequest);
- v2gAC_EVChargeParameterType->EVMaximumEnergyRequest_isUsed = 1u;
- grammarID = 629;
- break;
- case 2:
- errn = decode_v2gPhysicalValueType(stream, &v2gAC_EVChargeParameterType->EVMinimumEnergyRequest);
- v2gAC_EVChargeParameterType->EVMinimumEnergyRequest_isUsed = 1u;
- grammarID = 630;
- break;
- case 3:
- errn = decode_v2gPhysicalValueType(stream, &v2gAC_EVChargeParameterType->EVMaximumVoltage);
- grammarID = 2;
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 628:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}EVMaximumEnergyRequest), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}EVMinimumEnergyRequest), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}EVMaximumVoltage)] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- errn = decode_v2gPhysicalValueType(stream, &v2gAC_EVChargeParameterType->EVMaximumEnergyRequest);
- v2gAC_EVChargeParameterType->EVMaximumEnergyRequest_isUsed = 1u;
- grammarID = 629;
- break;
- case 1:
- errn = decode_v2gPhysicalValueType(stream, &v2gAC_EVChargeParameterType->EVMinimumEnergyRequest);
- v2gAC_EVChargeParameterType->EVMinimumEnergyRequest_isUsed = 1u;
- grammarID = 630;
- break;
- case 2:
- errn = decode_v2gPhysicalValueType(stream, &v2gAC_EVChargeParameterType->EVMaximumVoltage);
- grammarID = 2;
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 629:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}EVMinimumEnergyRequest), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}EVMaximumVoltage)] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- errn = decode_v2gPhysicalValueType(stream, &v2gAC_EVChargeParameterType->EVMinimumEnergyRequest);
- v2gAC_EVChargeParameterType->EVMinimumEnergyRequest_isUsed = 1u;
- grammarID = 630;
- break;
- case 1:
- errn = decode_v2gPhysicalValueType(stream, &v2gAC_EVChargeParameterType->EVMaximumVoltage);
- grammarID = 2;
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 630:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}EVMaximumVoltage)] */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- errn = decode_v2gPhysicalValueType(stream, &v2gAC_EVChargeParameterType->EVMaximumVoltage);
- grammarID = 2;
- 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:2016:MsgDataTypes,MagneticVectorListType', base type name='anyType', content type='ELEMENT', isAbstract='false', hasTypeId='false', final='0', block='0', particle='("urn:iso:15118:2:2016:MsgDataTypes":MagneticVector{1-255})', derivedBy='RESTRICTION'. */
-static int decode_v2gMagneticVectorListType(bitstream_t* stream, struct v2gMagneticVectorListType* v2gMagneticVectorListType) {
- int grammarID = 631;
- int done = 0;
-
- init_v2gMagneticVectorListType(v2gMagneticVectorListType);
-
- while(!done) {
- switch(grammarID) {
- case 631:
- /* FirstStartTag[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MagneticVector)] */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gMagneticVectorListType->MagneticVector.arrayLen < v2gMagneticVectorListType_MagneticVector_ARRAY_SIZE) {
- errn = decode_v2gMagneticVectorType(stream, &v2gMagneticVectorListType->MagneticVector.array[v2gMagneticVectorListType->MagneticVector.arrayLen++]);
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- grammarID = 632;
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 632:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MagneticVector), END_ELEMENT] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gMagneticVectorListType->MagneticVector.arrayLen < v2gMagneticVectorListType_MagneticVector_ARRAY_SIZE) {
- errn = decode_v2gMagneticVectorType(stream, &v2gMagneticVectorListType->MagneticVector.array[v2gMagneticVectorListType->MagneticVector.arrayLen++]);
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- grammarID = 633;
- break;
- case 1:
- done = 1;
- grammarID = 3;
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 633:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MagneticVector), END_ELEMENT] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gMagneticVectorListType->MagneticVector.arrayLen < v2gMagneticVectorListType_MagneticVector_ARRAY_SIZE) {
- errn = decode_v2gMagneticVectorType(stream, &v2gMagneticVectorListType->MagneticVector.array[v2gMagneticVectorListType->MagneticVector.arrayLen++]);
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- grammarID = 634;
- break;
- case 1:
- done = 1;
- grammarID = 3;
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 634:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MagneticVector), END_ELEMENT] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gMagneticVectorListType->MagneticVector.arrayLen < v2gMagneticVectorListType_MagneticVector_ARRAY_SIZE) {
- errn = decode_v2gMagneticVectorType(stream, &v2gMagneticVectorListType->MagneticVector.array[v2gMagneticVectorListType->MagneticVector.arrayLen++]);
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- grammarID = 635;
- break;
- case 1:
- done = 1;
- grammarID = 3;
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 635:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MagneticVector), END_ELEMENT] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gMagneticVectorListType->MagneticVector.arrayLen < v2gMagneticVectorListType_MagneticVector_ARRAY_SIZE) {
- errn = decode_v2gMagneticVectorType(stream, &v2gMagneticVectorListType->MagneticVector.array[v2gMagneticVectorListType->MagneticVector.arrayLen++]);
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- grammarID = 636;
- break;
- case 1:
- done = 1;
- grammarID = 3;
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 636:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MagneticVector), END_ELEMENT] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gMagneticVectorListType->MagneticVector.arrayLen < v2gMagneticVectorListType_MagneticVector_ARRAY_SIZE) {
- errn = decode_v2gMagneticVectorType(stream, &v2gMagneticVectorListType->MagneticVector.array[v2gMagneticVectorListType->MagneticVector.arrayLen++]);
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- grammarID = 637;
- break;
- case 1:
- done = 1;
- grammarID = 3;
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 637:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MagneticVector), END_ELEMENT] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gMagneticVectorListType->MagneticVector.arrayLen < v2gMagneticVectorListType_MagneticVector_ARRAY_SIZE) {
- errn = decode_v2gMagneticVectorType(stream, &v2gMagneticVectorListType->MagneticVector.array[v2gMagneticVectorListType->MagneticVector.arrayLen++]);
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- grammarID = 638;
- break;
- case 1:
- done = 1;
- grammarID = 3;
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 638:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MagneticVector), END_ELEMENT] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gMagneticVectorListType->MagneticVector.arrayLen < v2gMagneticVectorListType_MagneticVector_ARRAY_SIZE) {
- errn = decode_v2gMagneticVectorType(stream, &v2gMagneticVectorListType->MagneticVector.array[v2gMagneticVectorListType->MagneticVector.arrayLen++]);
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- grammarID = 639;
- break;
- case 1:
- done = 1;
- grammarID = 3;
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 639:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MagneticVector), END_ELEMENT] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gMagneticVectorListType->MagneticVector.arrayLen < v2gMagneticVectorListType_MagneticVector_ARRAY_SIZE) {
- errn = decode_v2gMagneticVectorType(stream, &v2gMagneticVectorListType->MagneticVector.array[v2gMagneticVectorListType->MagneticVector.arrayLen++]);
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- grammarID = 640;
- break;
- case 1:
- done = 1;
- grammarID = 3;
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 640:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MagneticVector), END_ELEMENT] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gMagneticVectorListType->MagneticVector.arrayLen < v2gMagneticVectorListType_MagneticVector_ARRAY_SIZE) {
- errn = decode_v2gMagneticVectorType(stream, &v2gMagneticVectorListType->MagneticVector.array[v2gMagneticVectorListType->MagneticVector.arrayLen++]);
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- grammarID = 641;
- break;
- case 1:
- done = 1;
- grammarID = 3;
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 641:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MagneticVector), END_ELEMENT] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gMagneticVectorListType->MagneticVector.arrayLen < v2gMagneticVectorListType_MagneticVector_ARRAY_SIZE) {
- errn = decode_v2gMagneticVectorType(stream, &v2gMagneticVectorListType->MagneticVector.array[v2gMagneticVectorListType->MagneticVector.arrayLen++]);
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- grammarID = 642;
- break;
- case 1:
- done = 1;
- grammarID = 3;
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 642:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MagneticVector), END_ELEMENT] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gMagneticVectorListType->MagneticVector.arrayLen < v2gMagneticVectorListType_MagneticVector_ARRAY_SIZE) {
- errn = decode_v2gMagneticVectorType(stream, &v2gMagneticVectorListType->MagneticVector.array[v2gMagneticVectorListType->MagneticVector.arrayLen++]);
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- grammarID = 643;
- break;
- case 1:
- done = 1;
- grammarID = 3;
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 643:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MagneticVector), END_ELEMENT] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gMagneticVectorListType->MagneticVector.arrayLen < v2gMagneticVectorListType_MagneticVector_ARRAY_SIZE) {
- errn = decode_v2gMagneticVectorType(stream, &v2gMagneticVectorListType->MagneticVector.array[v2gMagneticVectorListType->MagneticVector.arrayLen++]);
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- grammarID = 644;
- break;
- case 1:
- done = 1;
- grammarID = 3;
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 644:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MagneticVector), END_ELEMENT] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gMagneticVectorListType->MagneticVector.arrayLen < v2gMagneticVectorListType_MagneticVector_ARRAY_SIZE) {
- errn = decode_v2gMagneticVectorType(stream, &v2gMagneticVectorListType->MagneticVector.array[v2gMagneticVectorListType->MagneticVector.arrayLen++]);
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- grammarID = 645;
- break;
- case 1:
- done = 1;
- grammarID = 3;
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 645:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MagneticVector), END_ELEMENT] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gMagneticVectorListType->MagneticVector.arrayLen < v2gMagneticVectorListType_MagneticVector_ARRAY_SIZE) {
- errn = decode_v2gMagneticVectorType(stream, &v2gMagneticVectorListType->MagneticVector.array[v2gMagneticVectorListType->MagneticVector.arrayLen++]);
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- grammarID = 646;
- break;
- case 1:
- done = 1;
- grammarID = 3;
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 646:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MagneticVector), END_ELEMENT] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gMagneticVectorListType->MagneticVector.arrayLen < v2gMagneticVectorListType_MagneticVector_ARRAY_SIZE) {
- errn = decode_v2gMagneticVectorType(stream, &v2gMagneticVectorListType->MagneticVector.array[v2gMagneticVectorListType->MagneticVector.arrayLen++]);
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- grammarID = 647;
- break;
- case 1:
- done = 1;
- grammarID = 3;
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 647:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MagneticVector), END_ELEMENT] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gMagneticVectorListType->MagneticVector.arrayLen < v2gMagneticVectorListType_MagneticVector_ARRAY_SIZE) {
- errn = decode_v2gMagneticVectorType(stream, &v2gMagneticVectorListType->MagneticVector.array[v2gMagneticVectorListType->MagneticVector.arrayLen++]);
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- grammarID = 648;
- break;
- case 1:
- done = 1;
- grammarID = 3;
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 648:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MagneticVector), END_ELEMENT] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gMagneticVectorListType->MagneticVector.arrayLen < v2gMagneticVectorListType_MagneticVector_ARRAY_SIZE) {
- errn = decode_v2gMagneticVectorType(stream, &v2gMagneticVectorListType->MagneticVector.array[v2gMagneticVectorListType->MagneticVector.arrayLen++]);
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- grammarID = 649;
- break;
- case 1:
- done = 1;
- grammarID = 3;
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 649:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MagneticVector), END_ELEMENT] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gMagneticVectorListType->MagneticVector.arrayLen < v2gMagneticVectorListType_MagneticVector_ARRAY_SIZE) {
- errn = decode_v2gMagneticVectorType(stream, &v2gMagneticVectorListType->MagneticVector.array[v2gMagneticVectorListType->MagneticVector.arrayLen++]);
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- grammarID = 650;
- break;
- case 1:
- done = 1;
- grammarID = 3;
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 650:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MagneticVector), END_ELEMENT] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gMagneticVectorListType->MagneticVector.arrayLen < v2gMagneticVectorListType_MagneticVector_ARRAY_SIZE) {
- errn = decode_v2gMagneticVectorType(stream, &v2gMagneticVectorListType->MagneticVector.array[v2gMagneticVectorListType->MagneticVector.arrayLen++]);
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- grammarID = 651;
- break;
- case 1:
- done = 1;
- grammarID = 3;
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 651:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MagneticVector), END_ELEMENT] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gMagneticVectorListType->MagneticVector.arrayLen < v2gMagneticVectorListType_MagneticVector_ARRAY_SIZE) {
- errn = decode_v2gMagneticVectorType(stream, &v2gMagneticVectorListType->MagneticVector.array[v2gMagneticVectorListType->MagneticVector.arrayLen++]);
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- grammarID = 652;
- break;
- case 1:
- done = 1;
- grammarID = 3;
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 652:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MagneticVector), END_ELEMENT] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gMagneticVectorListType->MagneticVector.arrayLen < v2gMagneticVectorListType_MagneticVector_ARRAY_SIZE) {
- errn = decode_v2gMagneticVectorType(stream, &v2gMagneticVectorListType->MagneticVector.array[v2gMagneticVectorListType->MagneticVector.arrayLen++]);
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- grammarID = 653;
- break;
- case 1:
- done = 1;
- grammarID = 3;
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 653:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MagneticVector), END_ELEMENT] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gMagneticVectorListType->MagneticVector.arrayLen < v2gMagneticVectorListType_MagneticVector_ARRAY_SIZE) {
- errn = decode_v2gMagneticVectorType(stream, &v2gMagneticVectorListType->MagneticVector.array[v2gMagneticVectorListType->MagneticVector.arrayLen++]);
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- grammarID = 654;
- break;
- case 1:
- done = 1;
- grammarID = 3;
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 654:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MagneticVector), END_ELEMENT] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gMagneticVectorListType->MagneticVector.arrayLen < v2gMagneticVectorListType_MagneticVector_ARRAY_SIZE) {
- errn = decode_v2gMagneticVectorType(stream, &v2gMagneticVectorListType->MagneticVector.array[v2gMagneticVectorListType->MagneticVector.arrayLen++]);
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- grammarID = 655;
- break;
- case 1:
- done = 1;
- grammarID = 3;
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 655:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MagneticVector), END_ELEMENT] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gMagneticVectorListType->MagneticVector.arrayLen < v2gMagneticVectorListType_MagneticVector_ARRAY_SIZE) {
- errn = decode_v2gMagneticVectorType(stream, &v2gMagneticVectorListType->MagneticVector.array[v2gMagneticVectorListType->MagneticVector.arrayLen++]);
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- grammarID = 656;
- break;
- case 1:
- done = 1;
- grammarID = 3;
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 656:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MagneticVector), END_ELEMENT] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gMagneticVectorListType->MagneticVector.arrayLen < v2gMagneticVectorListType_MagneticVector_ARRAY_SIZE) {
- errn = decode_v2gMagneticVectorType(stream, &v2gMagneticVectorListType->MagneticVector.array[v2gMagneticVectorListType->MagneticVector.arrayLen++]);
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- grammarID = 657;
- break;
- case 1:
- done = 1;
- grammarID = 3;
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 657:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MagneticVector), END_ELEMENT] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gMagneticVectorListType->MagneticVector.arrayLen < v2gMagneticVectorListType_MagneticVector_ARRAY_SIZE) {
- errn = decode_v2gMagneticVectorType(stream, &v2gMagneticVectorListType->MagneticVector.array[v2gMagneticVectorListType->MagneticVector.arrayLen++]);
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- grammarID = 658;
- break;
- case 1:
- done = 1;
- grammarID = 3;
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 658:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MagneticVector), END_ELEMENT] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gMagneticVectorListType->MagneticVector.arrayLen < v2gMagneticVectorListType_MagneticVector_ARRAY_SIZE) {
- errn = decode_v2gMagneticVectorType(stream, &v2gMagneticVectorListType->MagneticVector.array[v2gMagneticVectorListType->MagneticVector.arrayLen++]);
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- grammarID = 659;
- break;
- case 1:
- done = 1;
- grammarID = 3;
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 659:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MagneticVector), END_ELEMENT] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gMagneticVectorListType->MagneticVector.arrayLen < v2gMagneticVectorListType_MagneticVector_ARRAY_SIZE) {
- errn = decode_v2gMagneticVectorType(stream, &v2gMagneticVectorListType->MagneticVector.array[v2gMagneticVectorListType->MagneticVector.arrayLen++]);
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- grammarID = 660;
- break;
- case 1:
- done = 1;
- grammarID = 3;
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 660:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MagneticVector), END_ELEMENT] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gMagneticVectorListType->MagneticVector.arrayLen < v2gMagneticVectorListType_MagneticVector_ARRAY_SIZE) {
- errn = decode_v2gMagneticVectorType(stream, &v2gMagneticVectorListType->MagneticVector.array[v2gMagneticVectorListType->MagneticVector.arrayLen++]);
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- grammarID = 661;
- break;
- case 1:
- done = 1;
- grammarID = 3;
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 661:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MagneticVector), END_ELEMENT] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gMagneticVectorListType->MagneticVector.arrayLen < v2gMagneticVectorListType_MagneticVector_ARRAY_SIZE) {
- errn = decode_v2gMagneticVectorType(stream, &v2gMagneticVectorListType->MagneticVector.array[v2gMagneticVectorListType->MagneticVector.arrayLen++]);
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- grammarID = 662;
- break;
- case 1:
- done = 1;
- grammarID = 3;
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 662:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MagneticVector), END_ELEMENT] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gMagneticVectorListType->MagneticVector.arrayLen < v2gMagneticVectorListType_MagneticVector_ARRAY_SIZE) {
- errn = decode_v2gMagneticVectorType(stream, &v2gMagneticVectorListType->MagneticVector.array[v2gMagneticVectorListType->MagneticVector.arrayLen++]);
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- grammarID = 663;
- break;
- case 1:
- done = 1;
- grammarID = 3;
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 663:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MagneticVector), END_ELEMENT] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gMagneticVectorListType->MagneticVector.arrayLen < v2gMagneticVectorListType_MagneticVector_ARRAY_SIZE) {
- errn = decode_v2gMagneticVectorType(stream, &v2gMagneticVectorListType->MagneticVector.array[v2gMagneticVectorListType->MagneticVector.arrayLen++]);
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- grammarID = 664;
- break;
- case 1:
- done = 1;
- grammarID = 3;
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 664:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MagneticVector), END_ELEMENT] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gMagneticVectorListType->MagneticVector.arrayLen < v2gMagneticVectorListType_MagneticVector_ARRAY_SIZE) {
- errn = decode_v2gMagneticVectorType(stream, &v2gMagneticVectorListType->MagneticVector.array[v2gMagneticVectorListType->MagneticVector.arrayLen++]);
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- grammarID = 665;
- break;
- case 1:
- done = 1;
- grammarID = 3;
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 665:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MagneticVector), END_ELEMENT] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gMagneticVectorListType->MagneticVector.arrayLen < v2gMagneticVectorListType_MagneticVector_ARRAY_SIZE) {
- errn = decode_v2gMagneticVectorType(stream, &v2gMagneticVectorListType->MagneticVector.array[v2gMagneticVectorListType->MagneticVector.arrayLen++]);
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- grammarID = 666;
- break;
- case 1:
- done = 1;
- grammarID = 3;
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 666:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MagneticVector), END_ELEMENT] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gMagneticVectorListType->MagneticVector.arrayLen < v2gMagneticVectorListType_MagneticVector_ARRAY_SIZE) {
- errn = decode_v2gMagneticVectorType(stream, &v2gMagneticVectorListType->MagneticVector.array[v2gMagneticVectorListType->MagneticVector.arrayLen++]);
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- grammarID = 667;
- break;
- case 1:
- done = 1;
- grammarID = 3;
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 667:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MagneticVector), END_ELEMENT] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gMagneticVectorListType->MagneticVector.arrayLen < v2gMagneticVectorListType_MagneticVector_ARRAY_SIZE) {
- errn = decode_v2gMagneticVectorType(stream, &v2gMagneticVectorListType->MagneticVector.array[v2gMagneticVectorListType->MagneticVector.arrayLen++]);
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- grammarID = 668;
- break;
- case 1:
- done = 1;
- grammarID = 3;
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 668:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MagneticVector), END_ELEMENT] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gMagneticVectorListType->MagneticVector.arrayLen < v2gMagneticVectorListType_MagneticVector_ARRAY_SIZE) {
- errn = decode_v2gMagneticVectorType(stream, &v2gMagneticVectorListType->MagneticVector.array[v2gMagneticVectorListType->MagneticVector.arrayLen++]);
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- grammarID = 669;
- break;
- case 1:
- done = 1;
- grammarID = 3;
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 669:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MagneticVector), END_ELEMENT] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gMagneticVectorListType->MagneticVector.arrayLen < v2gMagneticVectorListType_MagneticVector_ARRAY_SIZE) {
- errn = decode_v2gMagneticVectorType(stream, &v2gMagneticVectorListType->MagneticVector.array[v2gMagneticVectorListType->MagneticVector.arrayLen++]);
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- grammarID = 670;
- break;
- case 1:
- done = 1;
- grammarID = 3;
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 670:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MagneticVector), END_ELEMENT] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gMagneticVectorListType->MagneticVector.arrayLen < v2gMagneticVectorListType_MagneticVector_ARRAY_SIZE) {
- errn = decode_v2gMagneticVectorType(stream, &v2gMagneticVectorListType->MagneticVector.array[v2gMagneticVectorListType->MagneticVector.arrayLen++]);
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- grammarID = 671;
- break;
- case 1:
- done = 1;
- grammarID = 3;
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 671:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MagneticVector), END_ELEMENT] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gMagneticVectorListType->MagneticVector.arrayLen < v2gMagneticVectorListType_MagneticVector_ARRAY_SIZE) {
- errn = decode_v2gMagneticVectorType(stream, &v2gMagneticVectorListType->MagneticVector.array[v2gMagneticVectorListType->MagneticVector.arrayLen++]);
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- grammarID = 672;
- break;
- case 1:
- done = 1;
- grammarID = 3;
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 672:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MagneticVector), END_ELEMENT] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gMagneticVectorListType->MagneticVector.arrayLen < v2gMagneticVectorListType_MagneticVector_ARRAY_SIZE) {
- errn = decode_v2gMagneticVectorType(stream, &v2gMagneticVectorListType->MagneticVector.array[v2gMagneticVectorListType->MagneticVector.arrayLen++]);
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- grammarID = 673;
- break;
- case 1:
- done = 1;
- grammarID = 3;
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 673:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MagneticVector), END_ELEMENT] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gMagneticVectorListType->MagneticVector.arrayLen < v2gMagneticVectorListType_MagneticVector_ARRAY_SIZE) {
- errn = decode_v2gMagneticVectorType(stream, &v2gMagneticVectorListType->MagneticVector.array[v2gMagneticVectorListType->MagneticVector.arrayLen++]);
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- grammarID = 674;
- break;
- case 1:
- done = 1;
- grammarID = 3;
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 674:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MagneticVector), END_ELEMENT] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gMagneticVectorListType->MagneticVector.arrayLen < v2gMagneticVectorListType_MagneticVector_ARRAY_SIZE) {
- errn = decode_v2gMagneticVectorType(stream, &v2gMagneticVectorListType->MagneticVector.array[v2gMagneticVectorListType->MagneticVector.arrayLen++]);
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- grammarID = 675;
- break;
- case 1:
- done = 1;
- grammarID = 3;
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 675:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MagneticVector), END_ELEMENT] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gMagneticVectorListType->MagneticVector.arrayLen < v2gMagneticVectorListType_MagneticVector_ARRAY_SIZE) {
- errn = decode_v2gMagneticVectorType(stream, &v2gMagneticVectorListType->MagneticVector.array[v2gMagneticVectorListType->MagneticVector.arrayLen++]);
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- grammarID = 676;
- break;
- case 1:
- done = 1;
- grammarID = 3;
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 676:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MagneticVector), END_ELEMENT] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gMagneticVectorListType->MagneticVector.arrayLen < v2gMagneticVectorListType_MagneticVector_ARRAY_SIZE) {
- errn = decode_v2gMagneticVectorType(stream, &v2gMagneticVectorListType->MagneticVector.array[v2gMagneticVectorListType->MagneticVector.arrayLen++]);
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- grammarID = 677;
- break;
- case 1:
- done = 1;
- grammarID = 3;
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 677:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MagneticVector), END_ELEMENT] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gMagneticVectorListType->MagneticVector.arrayLen < v2gMagneticVectorListType_MagneticVector_ARRAY_SIZE) {
- errn = decode_v2gMagneticVectorType(stream, &v2gMagneticVectorListType->MagneticVector.array[v2gMagneticVectorListType->MagneticVector.arrayLen++]);
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- grammarID = 678;
- break;
- case 1:
- done = 1;
- grammarID = 3;
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 678:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MagneticVector), END_ELEMENT] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gMagneticVectorListType->MagneticVector.arrayLen < v2gMagneticVectorListType_MagneticVector_ARRAY_SIZE) {
- errn = decode_v2gMagneticVectorType(stream, &v2gMagneticVectorListType->MagneticVector.array[v2gMagneticVectorListType->MagneticVector.arrayLen++]);
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- grammarID = 679;
- break;
- case 1:
- done = 1;
- grammarID = 3;
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 679:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MagneticVector), END_ELEMENT] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gMagneticVectorListType->MagneticVector.arrayLen < v2gMagneticVectorListType_MagneticVector_ARRAY_SIZE) {
- errn = decode_v2gMagneticVectorType(stream, &v2gMagneticVectorListType->MagneticVector.array[v2gMagneticVectorListType->MagneticVector.arrayLen++]);
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- grammarID = 680;
- break;
- case 1:
- done = 1;
- grammarID = 3;
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 680:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MagneticVector), END_ELEMENT] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gMagneticVectorListType->MagneticVector.arrayLen < v2gMagneticVectorListType_MagneticVector_ARRAY_SIZE) {
- errn = decode_v2gMagneticVectorType(stream, &v2gMagneticVectorListType->MagneticVector.array[v2gMagneticVectorListType->MagneticVector.arrayLen++]);
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- grammarID = 681;
- break;
- case 1:
- done = 1;
- grammarID = 3;
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 681:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MagneticVector), END_ELEMENT] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gMagneticVectorListType->MagneticVector.arrayLen < v2gMagneticVectorListType_MagneticVector_ARRAY_SIZE) {
- errn = decode_v2gMagneticVectorType(stream, &v2gMagneticVectorListType->MagneticVector.array[v2gMagneticVectorListType->MagneticVector.arrayLen++]);
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- grammarID = 682;
- break;
- case 1:
- done = 1;
- grammarID = 3;
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 682:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MagneticVector), END_ELEMENT] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gMagneticVectorListType->MagneticVector.arrayLen < v2gMagneticVectorListType_MagneticVector_ARRAY_SIZE) {
- errn = decode_v2gMagneticVectorType(stream, &v2gMagneticVectorListType->MagneticVector.array[v2gMagneticVectorListType->MagneticVector.arrayLen++]);
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- grammarID = 683;
- break;
- case 1:
- done = 1;
- grammarID = 3;
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 683:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MagneticVector), END_ELEMENT] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gMagneticVectorListType->MagneticVector.arrayLen < v2gMagneticVectorListType_MagneticVector_ARRAY_SIZE) {
- errn = decode_v2gMagneticVectorType(stream, &v2gMagneticVectorListType->MagneticVector.array[v2gMagneticVectorListType->MagneticVector.arrayLen++]);
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- grammarID = 684;
- break;
- case 1:
- done = 1;
- grammarID = 3;
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 684:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MagneticVector), END_ELEMENT] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gMagneticVectorListType->MagneticVector.arrayLen < v2gMagneticVectorListType_MagneticVector_ARRAY_SIZE) {
- errn = decode_v2gMagneticVectorType(stream, &v2gMagneticVectorListType->MagneticVector.array[v2gMagneticVectorListType->MagneticVector.arrayLen++]);
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- grammarID = 685;
- break;
- case 1:
- done = 1;
- grammarID = 3;
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 685:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MagneticVector), END_ELEMENT] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gMagneticVectorListType->MagneticVector.arrayLen < v2gMagneticVectorListType_MagneticVector_ARRAY_SIZE) {
- errn = decode_v2gMagneticVectorType(stream, &v2gMagneticVectorListType->MagneticVector.array[v2gMagneticVectorListType->MagneticVector.arrayLen++]);
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- grammarID = 686;
- break;
- case 1:
- done = 1;
- grammarID = 3;
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 686:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MagneticVector), END_ELEMENT] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gMagneticVectorListType->MagneticVector.arrayLen < v2gMagneticVectorListType_MagneticVector_ARRAY_SIZE) {
- errn = decode_v2gMagneticVectorType(stream, &v2gMagneticVectorListType->MagneticVector.array[v2gMagneticVectorListType->MagneticVector.arrayLen++]);
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- grammarID = 687;
- break;
- case 1:
- done = 1;
- grammarID = 3;
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 687:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MagneticVector), END_ELEMENT] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gMagneticVectorListType->MagneticVector.arrayLen < v2gMagneticVectorListType_MagneticVector_ARRAY_SIZE) {
- errn = decode_v2gMagneticVectorType(stream, &v2gMagneticVectorListType->MagneticVector.array[v2gMagneticVectorListType->MagneticVector.arrayLen++]);
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- grammarID = 688;
- break;
- case 1:
- done = 1;
- grammarID = 3;
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 688:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MagneticVector), END_ELEMENT] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gMagneticVectorListType->MagneticVector.arrayLen < v2gMagneticVectorListType_MagneticVector_ARRAY_SIZE) {
- errn = decode_v2gMagneticVectorType(stream, &v2gMagneticVectorListType->MagneticVector.array[v2gMagneticVectorListType->MagneticVector.arrayLen++]);
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- grammarID = 689;
- break;
- case 1:
- done = 1;
- grammarID = 3;
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 689:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MagneticVector), END_ELEMENT] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gMagneticVectorListType->MagneticVector.arrayLen < v2gMagneticVectorListType_MagneticVector_ARRAY_SIZE) {
- errn = decode_v2gMagneticVectorType(stream, &v2gMagneticVectorListType->MagneticVector.array[v2gMagneticVectorListType->MagneticVector.arrayLen++]);
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- grammarID = 690;
- break;
- case 1:
- done = 1;
- grammarID = 3;
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 690:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MagneticVector), END_ELEMENT] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gMagneticVectorListType->MagneticVector.arrayLen < v2gMagneticVectorListType_MagneticVector_ARRAY_SIZE) {
- errn = decode_v2gMagneticVectorType(stream, &v2gMagneticVectorListType->MagneticVector.array[v2gMagneticVectorListType->MagneticVector.arrayLen++]);
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- grammarID = 691;
- break;
- case 1:
- done = 1;
- grammarID = 3;
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 691:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MagneticVector), END_ELEMENT] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gMagneticVectorListType->MagneticVector.arrayLen < v2gMagneticVectorListType_MagneticVector_ARRAY_SIZE) {
- errn = decode_v2gMagneticVectorType(stream, &v2gMagneticVectorListType->MagneticVector.array[v2gMagneticVectorListType->MagneticVector.arrayLen++]);
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- grammarID = 692;
- break;
- case 1:
- done = 1;
- grammarID = 3;
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 692:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MagneticVector), END_ELEMENT] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gMagneticVectorListType->MagneticVector.arrayLen < v2gMagneticVectorListType_MagneticVector_ARRAY_SIZE) {
- errn = decode_v2gMagneticVectorType(stream, &v2gMagneticVectorListType->MagneticVector.array[v2gMagneticVectorListType->MagneticVector.arrayLen++]);
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- grammarID = 693;
- break;
- case 1:
- done = 1;
- grammarID = 3;
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 693:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MagneticVector), END_ELEMENT] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gMagneticVectorListType->MagneticVector.arrayLen < v2gMagneticVectorListType_MagneticVector_ARRAY_SIZE) {
- errn = decode_v2gMagneticVectorType(stream, &v2gMagneticVectorListType->MagneticVector.array[v2gMagneticVectorListType->MagneticVector.arrayLen++]);
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- grammarID = 694;
- break;
- case 1:
- done = 1;
- grammarID = 3;
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 694:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MagneticVector), END_ELEMENT] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gMagneticVectorListType->MagneticVector.arrayLen < v2gMagneticVectorListType_MagneticVector_ARRAY_SIZE) {
- errn = decode_v2gMagneticVectorType(stream, &v2gMagneticVectorListType->MagneticVector.array[v2gMagneticVectorListType->MagneticVector.arrayLen++]);
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- grammarID = 695;
- break;
- case 1:
- done = 1;
- grammarID = 3;
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 695:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MagneticVector), END_ELEMENT] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gMagneticVectorListType->MagneticVector.arrayLen < v2gMagneticVectorListType_MagneticVector_ARRAY_SIZE) {
- errn = decode_v2gMagneticVectorType(stream, &v2gMagneticVectorListType->MagneticVector.array[v2gMagneticVectorListType->MagneticVector.arrayLen++]);
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- grammarID = 696;
- break;
- case 1:
- done = 1;
- grammarID = 3;
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 696:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MagneticVector), END_ELEMENT] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gMagneticVectorListType->MagneticVector.arrayLen < v2gMagneticVectorListType_MagneticVector_ARRAY_SIZE) {
- errn = decode_v2gMagneticVectorType(stream, &v2gMagneticVectorListType->MagneticVector.array[v2gMagneticVectorListType->MagneticVector.arrayLen++]);
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- grammarID = 697;
- break;
- case 1:
- done = 1;
- grammarID = 3;
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 697:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MagneticVector), END_ELEMENT] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gMagneticVectorListType->MagneticVector.arrayLen < v2gMagneticVectorListType_MagneticVector_ARRAY_SIZE) {
- errn = decode_v2gMagneticVectorType(stream, &v2gMagneticVectorListType->MagneticVector.array[v2gMagneticVectorListType->MagneticVector.arrayLen++]);
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- grammarID = 698;
- break;
- case 1:
- done = 1;
- grammarID = 3;
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 698:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MagneticVector), END_ELEMENT] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gMagneticVectorListType->MagneticVector.arrayLen < v2gMagneticVectorListType_MagneticVector_ARRAY_SIZE) {
- errn = decode_v2gMagneticVectorType(stream, &v2gMagneticVectorListType->MagneticVector.array[v2gMagneticVectorListType->MagneticVector.arrayLen++]);
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- grammarID = 699;
- break;
- case 1:
- done = 1;
- grammarID = 3;
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 699:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MagneticVector), END_ELEMENT] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gMagneticVectorListType->MagneticVector.arrayLen < v2gMagneticVectorListType_MagneticVector_ARRAY_SIZE) {
- errn = decode_v2gMagneticVectorType(stream, &v2gMagneticVectorListType->MagneticVector.array[v2gMagneticVectorListType->MagneticVector.arrayLen++]);
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- grammarID = 700;
- break;
- case 1:
- done = 1;
- grammarID = 3;
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 700:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MagneticVector), END_ELEMENT] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gMagneticVectorListType->MagneticVector.arrayLen < v2gMagneticVectorListType_MagneticVector_ARRAY_SIZE) {
- errn = decode_v2gMagneticVectorType(stream, &v2gMagneticVectorListType->MagneticVector.array[v2gMagneticVectorListType->MagneticVector.arrayLen++]);
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- grammarID = 701;
- break;
- case 1:
- done = 1;
- grammarID = 3;
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 701:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MagneticVector), END_ELEMENT] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gMagneticVectorListType->MagneticVector.arrayLen < v2gMagneticVectorListType_MagneticVector_ARRAY_SIZE) {
- errn = decode_v2gMagneticVectorType(stream, &v2gMagneticVectorListType->MagneticVector.array[v2gMagneticVectorListType->MagneticVector.arrayLen++]);
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- grammarID = 702;
- break;
- case 1:
- done = 1;
- grammarID = 3;
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 702:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MagneticVector), END_ELEMENT] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gMagneticVectorListType->MagneticVector.arrayLen < v2gMagneticVectorListType_MagneticVector_ARRAY_SIZE) {
- errn = decode_v2gMagneticVectorType(stream, &v2gMagneticVectorListType->MagneticVector.array[v2gMagneticVectorListType->MagneticVector.arrayLen++]);
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- grammarID = 703;
- break;
- case 1:
- done = 1;
- grammarID = 3;
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 703:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MagneticVector), END_ELEMENT] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gMagneticVectorListType->MagneticVector.arrayLen < v2gMagneticVectorListType_MagneticVector_ARRAY_SIZE) {
- errn = decode_v2gMagneticVectorType(stream, &v2gMagneticVectorListType->MagneticVector.array[v2gMagneticVectorListType->MagneticVector.arrayLen++]);
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- grammarID = 704;
- break;
- case 1:
- done = 1;
- grammarID = 3;
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 704:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MagneticVector), END_ELEMENT] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gMagneticVectorListType->MagneticVector.arrayLen < v2gMagneticVectorListType_MagneticVector_ARRAY_SIZE) {
- errn = decode_v2gMagneticVectorType(stream, &v2gMagneticVectorListType->MagneticVector.array[v2gMagneticVectorListType->MagneticVector.arrayLen++]);
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- grammarID = 705;
- break;
- case 1:
- done = 1;
- grammarID = 3;
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 705:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MagneticVector), END_ELEMENT] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gMagneticVectorListType->MagneticVector.arrayLen < v2gMagneticVectorListType_MagneticVector_ARRAY_SIZE) {
- errn = decode_v2gMagneticVectorType(stream, &v2gMagneticVectorListType->MagneticVector.array[v2gMagneticVectorListType->MagneticVector.arrayLen++]);
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- grammarID = 706;
- break;
- case 1:
- done = 1;
- grammarID = 3;
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 706:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MagneticVector), END_ELEMENT] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gMagneticVectorListType->MagneticVector.arrayLen < v2gMagneticVectorListType_MagneticVector_ARRAY_SIZE) {
- errn = decode_v2gMagneticVectorType(stream, &v2gMagneticVectorListType->MagneticVector.array[v2gMagneticVectorListType->MagneticVector.arrayLen++]);
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- grammarID = 707;
- break;
- case 1:
- done = 1;
- grammarID = 3;
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 707:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MagneticVector), END_ELEMENT] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gMagneticVectorListType->MagneticVector.arrayLen < v2gMagneticVectorListType_MagneticVector_ARRAY_SIZE) {
- errn = decode_v2gMagneticVectorType(stream, &v2gMagneticVectorListType->MagneticVector.array[v2gMagneticVectorListType->MagneticVector.arrayLen++]);
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- grammarID = 708;
- break;
- case 1:
- done = 1;
- grammarID = 3;
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 708:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MagneticVector), END_ELEMENT] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gMagneticVectorListType->MagneticVector.arrayLen < v2gMagneticVectorListType_MagneticVector_ARRAY_SIZE) {
- errn = decode_v2gMagneticVectorType(stream, &v2gMagneticVectorListType->MagneticVector.array[v2gMagneticVectorListType->MagneticVector.arrayLen++]);
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- grammarID = 709;
- break;
- case 1:
- done = 1;
- grammarID = 3;
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 709:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MagneticVector), END_ELEMENT] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gMagneticVectorListType->MagneticVector.arrayLen < v2gMagneticVectorListType_MagneticVector_ARRAY_SIZE) {
- errn = decode_v2gMagneticVectorType(stream, &v2gMagneticVectorListType->MagneticVector.array[v2gMagneticVectorListType->MagneticVector.arrayLen++]);
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- grammarID = 710;
- break;
- case 1:
- done = 1;
- grammarID = 3;
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 710:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MagneticVector), END_ELEMENT] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gMagneticVectorListType->MagneticVector.arrayLen < v2gMagneticVectorListType_MagneticVector_ARRAY_SIZE) {
- errn = decode_v2gMagneticVectorType(stream, &v2gMagneticVectorListType->MagneticVector.array[v2gMagneticVectorListType->MagneticVector.arrayLen++]);
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- grammarID = 711;
- break;
- case 1:
- done = 1;
- grammarID = 3;
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 711:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MagneticVector), END_ELEMENT] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gMagneticVectorListType->MagneticVector.arrayLen < v2gMagneticVectorListType_MagneticVector_ARRAY_SIZE) {
- errn = decode_v2gMagneticVectorType(stream, &v2gMagneticVectorListType->MagneticVector.array[v2gMagneticVectorListType->MagneticVector.arrayLen++]);
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- grammarID = 712;
- break;
- case 1:
- done = 1;
- grammarID = 3;
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 712:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MagneticVector), END_ELEMENT] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gMagneticVectorListType->MagneticVector.arrayLen < v2gMagneticVectorListType_MagneticVector_ARRAY_SIZE) {
- errn = decode_v2gMagneticVectorType(stream, &v2gMagneticVectorListType->MagneticVector.array[v2gMagneticVectorListType->MagneticVector.arrayLen++]);
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- grammarID = 713;
- break;
- case 1:
- done = 1;
- grammarID = 3;
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 713:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MagneticVector), END_ELEMENT] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gMagneticVectorListType->MagneticVector.arrayLen < v2gMagneticVectorListType_MagneticVector_ARRAY_SIZE) {
- errn = decode_v2gMagneticVectorType(stream, &v2gMagneticVectorListType->MagneticVector.array[v2gMagneticVectorListType->MagneticVector.arrayLen++]);
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- grammarID = 714;
- break;
- case 1:
- done = 1;
- grammarID = 3;
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 714:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MagneticVector), END_ELEMENT] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gMagneticVectorListType->MagneticVector.arrayLen < v2gMagneticVectorListType_MagneticVector_ARRAY_SIZE) {
- errn = decode_v2gMagneticVectorType(stream, &v2gMagneticVectorListType->MagneticVector.array[v2gMagneticVectorListType->MagneticVector.arrayLen++]);
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- grammarID = 715;
- break;
- case 1:
- done = 1;
- grammarID = 3;
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 715:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MagneticVector), END_ELEMENT] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gMagneticVectorListType->MagneticVector.arrayLen < v2gMagneticVectorListType_MagneticVector_ARRAY_SIZE) {
- errn = decode_v2gMagneticVectorType(stream, &v2gMagneticVectorListType->MagneticVector.array[v2gMagneticVectorListType->MagneticVector.arrayLen++]);
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- grammarID = 716;
- break;
- case 1:
- done = 1;
- grammarID = 3;
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 716:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MagneticVector), END_ELEMENT] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gMagneticVectorListType->MagneticVector.arrayLen < v2gMagneticVectorListType_MagneticVector_ARRAY_SIZE) {
- errn = decode_v2gMagneticVectorType(stream, &v2gMagneticVectorListType->MagneticVector.array[v2gMagneticVectorListType->MagneticVector.arrayLen++]);
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- grammarID = 717;
- break;
- case 1:
- done = 1;
- grammarID = 3;
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 717:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MagneticVector), END_ELEMENT] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gMagneticVectorListType->MagneticVector.arrayLen < v2gMagneticVectorListType_MagneticVector_ARRAY_SIZE) {
- errn = decode_v2gMagneticVectorType(stream, &v2gMagneticVectorListType->MagneticVector.array[v2gMagneticVectorListType->MagneticVector.arrayLen++]);
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- grammarID = 718;
- break;
- case 1:
- done = 1;
- grammarID = 3;
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 718:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MagneticVector), END_ELEMENT] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gMagneticVectorListType->MagneticVector.arrayLen < v2gMagneticVectorListType_MagneticVector_ARRAY_SIZE) {
- errn = decode_v2gMagneticVectorType(stream, &v2gMagneticVectorListType->MagneticVector.array[v2gMagneticVectorListType->MagneticVector.arrayLen++]);
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- grammarID = 719;
- break;
- case 1:
- done = 1;
- grammarID = 3;
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 719:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MagneticVector), END_ELEMENT] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gMagneticVectorListType->MagneticVector.arrayLen < v2gMagneticVectorListType_MagneticVector_ARRAY_SIZE) {
- errn = decode_v2gMagneticVectorType(stream, &v2gMagneticVectorListType->MagneticVector.array[v2gMagneticVectorListType->MagneticVector.arrayLen++]);
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- grammarID = 720;
- break;
- case 1:
- done = 1;
- grammarID = 3;
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 720:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MagneticVector), END_ELEMENT] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gMagneticVectorListType->MagneticVector.arrayLen < v2gMagneticVectorListType_MagneticVector_ARRAY_SIZE) {
- errn = decode_v2gMagneticVectorType(stream, &v2gMagneticVectorListType->MagneticVector.array[v2gMagneticVectorListType->MagneticVector.arrayLen++]);
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- grammarID = 721;
- break;
- case 1:
- done = 1;
- grammarID = 3;
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 721:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MagneticVector), END_ELEMENT] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gMagneticVectorListType->MagneticVector.arrayLen < v2gMagneticVectorListType_MagneticVector_ARRAY_SIZE) {
- errn = decode_v2gMagneticVectorType(stream, &v2gMagneticVectorListType->MagneticVector.array[v2gMagneticVectorListType->MagneticVector.arrayLen++]);
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- grammarID = 722;
- break;
- case 1:
- done = 1;
- grammarID = 3;
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 722:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MagneticVector), END_ELEMENT] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gMagneticVectorListType->MagneticVector.arrayLen < v2gMagneticVectorListType_MagneticVector_ARRAY_SIZE) {
- errn = decode_v2gMagneticVectorType(stream, &v2gMagneticVectorListType->MagneticVector.array[v2gMagneticVectorListType->MagneticVector.arrayLen++]);
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- grammarID = 723;
- break;
- case 1:
- done = 1;
- grammarID = 3;
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 723:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MagneticVector), END_ELEMENT] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gMagneticVectorListType->MagneticVector.arrayLen < v2gMagneticVectorListType_MagneticVector_ARRAY_SIZE) {
- errn = decode_v2gMagneticVectorType(stream, &v2gMagneticVectorListType->MagneticVector.array[v2gMagneticVectorListType->MagneticVector.arrayLen++]);
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- grammarID = 724;
- break;
- case 1:
- done = 1;
- grammarID = 3;
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 724:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MagneticVector), END_ELEMENT] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gMagneticVectorListType->MagneticVector.arrayLen < v2gMagneticVectorListType_MagneticVector_ARRAY_SIZE) {
- errn = decode_v2gMagneticVectorType(stream, &v2gMagneticVectorListType->MagneticVector.array[v2gMagneticVectorListType->MagneticVector.arrayLen++]);
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- grammarID = 725;
- break;
- case 1:
- done = 1;
- grammarID = 3;
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 725:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MagneticVector), END_ELEMENT] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gMagneticVectorListType->MagneticVector.arrayLen < v2gMagneticVectorListType_MagneticVector_ARRAY_SIZE) {
- errn = decode_v2gMagneticVectorType(stream, &v2gMagneticVectorListType->MagneticVector.array[v2gMagneticVectorListType->MagneticVector.arrayLen++]);
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- grammarID = 726;
- break;
- case 1:
- done = 1;
- grammarID = 3;
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 726:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MagneticVector), END_ELEMENT] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gMagneticVectorListType->MagneticVector.arrayLen < v2gMagneticVectorListType_MagneticVector_ARRAY_SIZE) {
- errn = decode_v2gMagneticVectorType(stream, &v2gMagneticVectorListType->MagneticVector.array[v2gMagneticVectorListType->MagneticVector.arrayLen++]);
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- grammarID = 727;
- break;
- case 1:
- done = 1;
- grammarID = 3;
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 727:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MagneticVector), END_ELEMENT] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gMagneticVectorListType->MagneticVector.arrayLen < v2gMagneticVectorListType_MagneticVector_ARRAY_SIZE) {
- errn = decode_v2gMagneticVectorType(stream, &v2gMagneticVectorListType->MagneticVector.array[v2gMagneticVectorListType->MagneticVector.arrayLen++]);
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- grammarID = 728;
- break;
- case 1:
- done = 1;
- grammarID = 3;
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 728:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MagneticVector), END_ELEMENT] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gMagneticVectorListType->MagneticVector.arrayLen < v2gMagneticVectorListType_MagneticVector_ARRAY_SIZE) {
- errn = decode_v2gMagneticVectorType(stream, &v2gMagneticVectorListType->MagneticVector.array[v2gMagneticVectorListType->MagneticVector.arrayLen++]);
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- grammarID = 729;
- break;
- case 1:
- done = 1;
- grammarID = 3;
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 729:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MagneticVector), END_ELEMENT] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gMagneticVectorListType->MagneticVector.arrayLen < v2gMagneticVectorListType_MagneticVector_ARRAY_SIZE) {
- errn = decode_v2gMagneticVectorType(stream, &v2gMagneticVectorListType->MagneticVector.array[v2gMagneticVectorListType->MagneticVector.arrayLen++]);
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- grammarID = 730;
- break;
- case 1:
- done = 1;
- grammarID = 3;
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 730:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MagneticVector), END_ELEMENT] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gMagneticVectorListType->MagneticVector.arrayLen < v2gMagneticVectorListType_MagneticVector_ARRAY_SIZE) {
- errn = decode_v2gMagneticVectorType(stream, &v2gMagneticVectorListType->MagneticVector.array[v2gMagneticVectorListType->MagneticVector.arrayLen++]);
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- grammarID = 731;
- break;
- case 1:
- done = 1;
- grammarID = 3;
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 731:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MagneticVector), END_ELEMENT] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gMagneticVectorListType->MagneticVector.arrayLen < v2gMagneticVectorListType_MagneticVector_ARRAY_SIZE) {
- errn = decode_v2gMagneticVectorType(stream, &v2gMagneticVectorListType->MagneticVector.array[v2gMagneticVectorListType->MagneticVector.arrayLen++]);
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- grammarID = 732;
- break;
- case 1:
- done = 1;
- grammarID = 3;
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 732:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MagneticVector), END_ELEMENT] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gMagneticVectorListType->MagneticVector.arrayLen < v2gMagneticVectorListType_MagneticVector_ARRAY_SIZE) {
- errn = decode_v2gMagneticVectorType(stream, &v2gMagneticVectorListType->MagneticVector.array[v2gMagneticVectorListType->MagneticVector.arrayLen++]);
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- grammarID = 733;
- break;
- case 1:
- done = 1;
- grammarID = 3;
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 733:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MagneticVector), END_ELEMENT] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gMagneticVectorListType->MagneticVector.arrayLen < v2gMagneticVectorListType_MagneticVector_ARRAY_SIZE) {
- errn = decode_v2gMagneticVectorType(stream, &v2gMagneticVectorListType->MagneticVector.array[v2gMagneticVectorListType->MagneticVector.arrayLen++]);
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- grammarID = 734;
- break;
- case 1:
- done = 1;
- grammarID = 3;
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 734:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MagneticVector), END_ELEMENT] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gMagneticVectorListType->MagneticVector.arrayLen < v2gMagneticVectorListType_MagneticVector_ARRAY_SIZE) {
- errn = decode_v2gMagneticVectorType(stream, &v2gMagneticVectorListType->MagneticVector.array[v2gMagneticVectorListType->MagneticVector.arrayLen++]);
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- grammarID = 735;
- break;
- case 1:
- done = 1;
- grammarID = 3;
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 735:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MagneticVector), END_ELEMENT] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gMagneticVectorListType->MagneticVector.arrayLen < v2gMagneticVectorListType_MagneticVector_ARRAY_SIZE) {
- errn = decode_v2gMagneticVectorType(stream, &v2gMagneticVectorListType->MagneticVector.array[v2gMagneticVectorListType->MagneticVector.arrayLen++]);
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- grammarID = 736;
- break;
- case 1:
- done = 1;
- grammarID = 3;
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 736:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MagneticVector), END_ELEMENT] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gMagneticVectorListType->MagneticVector.arrayLen < v2gMagneticVectorListType_MagneticVector_ARRAY_SIZE) {
- errn = decode_v2gMagneticVectorType(stream, &v2gMagneticVectorListType->MagneticVector.array[v2gMagneticVectorListType->MagneticVector.arrayLen++]);
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- grammarID = 737;
- break;
- case 1:
- done = 1;
- grammarID = 3;
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 737:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MagneticVector), END_ELEMENT] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gMagneticVectorListType->MagneticVector.arrayLen < v2gMagneticVectorListType_MagneticVector_ARRAY_SIZE) {
- errn = decode_v2gMagneticVectorType(stream, &v2gMagneticVectorListType->MagneticVector.array[v2gMagneticVectorListType->MagneticVector.arrayLen++]);
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- grammarID = 738;
- break;
- case 1:
- done = 1;
- grammarID = 3;
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 738:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MagneticVector), END_ELEMENT] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gMagneticVectorListType->MagneticVector.arrayLen < v2gMagneticVectorListType_MagneticVector_ARRAY_SIZE) {
- errn = decode_v2gMagneticVectorType(stream, &v2gMagneticVectorListType->MagneticVector.array[v2gMagneticVectorListType->MagneticVector.arrayLen++]);
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- grammarID = 739;
- break;
- case 1:
- done = 1;
- grammarID = 3;
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 739:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MagneticVector), END_ELEMENT] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gMagneticVectorListType->MagneticVector.arrayLen < v2gMagneticVectorListType_MagneticVector_ARRAY_SIZE) {
- errn = decode_v2gMagneticVectorType(stream, &v2gMagneticVectorListType->MagneticVector.array[v2gMagneticVectorListType->MagneticVector.arrayLen++]);
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- grammarID = 740;
- break;
- case 1:
- done = 1;
- grammarID = 3;
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 740:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MagneticVector), END_ELEMENT] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gMagneticVectorListType->MagneticVector.arrayLen < v2gMagneticVectorListType_MagneticVector_ARRAY_SIZE) {
- errn = decode_v2gMagneticVectorType(stream, &v2gMagneticVectorListType->MagneticVector.array[v2gMagneticVectorListType->MagneticVector.arrayLen++]);
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- grammarID = 741;
- break;
- case 1:
- done = 1;
- grammarID = 3;
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 741:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MagneticVector), END_ELEMENT] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gMagneticVectorListType->MagneticVector.arrayLen < v2gMagneticVectorListType_MagneticVector_ARRAY_SIZE) {
- errn = decode_v2gMagneticVectorType(stream, &v2gMagneticVectorListType->MagneticVector.array[v2gMagneticVectorListType->MagneticVector.arrayLen++]);
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- grammarID = 742;
- break;
- case 1:
- done = 1;
- grammarID = 3;
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 742:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MagneticVector), END_ELEMENT] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gMagneticVectorListType->MagneticVector.arrayLen < v2gMagneticVectorListType_MagneticVector_ARRAY_SIZE) {
- errn = decode_v2gMagneticVectorType(stream, &v2gMagneticVectorListType->MagneticVector.array[v2gMagneticVectorListType->MagneticVector.arrayLen++]);
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- grammarID = 743;
- break;
- case 1:
- done = 1;
- grammarID = 3;
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 743:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MagneticVector), END_ELEMENT] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gMagneticVectorListType->MagneticVector.arrayLen < v2gMagneticVectorListType_MagneticVector_ARRAY_SIZE) {
- errn = decode_v2gMagneticVectorType(stream, &v2gMagneticVectorListType->MagneticVector.array[v2gMagneticVectorListType->MagneticVector.arrayLen++]);
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- grammarID = 744;
- break;
- case 1:
- done = 1;
- grammarID = 3;
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 744:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MagneticVector), END_ELEMENT] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gMagneticVectorListType->MagneticVector.arrayLen < v2gMagneticVectorListType_MagneticVector_ARRAY_SIZE) {
- errn = decode_v2gMagneticVectorType(stream, &v2gMagneticVectorListType->MagneticVector.array[v2gMagneticVectorListType->MagneticVector.arrayLen++]);
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- grammarID = 745;
- break;
- case 1:
- done = 1;
- grammarID = 3;
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 745:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MagneticVector), END_ELEMENT] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gMagneticVectorListType->MagneticVector.arrayLen < v2gMagneticVectorListType_MagneticVector_ARRAY_SIZE) {
- errn = decode_v2gMagneticVectorType(stream, &v2gMagneticVectorListType->MagneticVector.array[v2gMagneticVectorListType->MagneticVector.arrayLen++]);
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- grammarID = 746;
- break;
- case 1:
- done = 1;
- grammarID = 3;
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 746:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MagneticVector), END_ELEMENT] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gMagneticVectorListType->MagneticVector.arrayLen < v2gMagneticVectorListType_MagneticVector_ARRAY_SIZE) {
- errn = decode_v2gMagneticVectorType(stream, &v2gMagneticVectorListType->MagneticVector.array[v2gMagneticVectorListType->MagneticVector.arrayLen++]);
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- grammarID = 747;
- break;
- case 1:
- done = 1;
- grammarID = 3;
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 747:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MagneticVector), END_ELEMENT] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gMagneticVectorListType->MagneticVector.arrayLen < v2gMagneticVectorListType_MagneticVector_ARRAY_SIZE) {
- errn = decode_v2gMagneticVectorType(stream, &v2gMagneticVectorListType->MagneticVector.array[v2gMagneticVectorListType->MagneticVector.arrayLen++]);
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- grammarID = 748;
- break;
- case 1:
- done = 1;
- grammarID = 3;
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 748:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MagneticVector), END_ELEMENT] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gMagneticVectorListType->MagneticVector.arrayLen < v2gMagneticVectorListType_MagneticVector_ARRAY_SIZE) {
- errn = decode_v2gMagneticVectorType(stream, &v2gMagneticVectorListType->MagneticVector.array[v2gMagneticVectorListType->MagneticVector.arrayLen++]);
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- grammarID = 749;
- break;
- case 1:
- done = 1;
- grammarID = 3;
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 749:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MagneticVector), END_ELEMENT] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gMagneticVectorListType->MagneticVector.arrayLen < v2gMagneticVectorListType_MagneticVector_ARRAY_SIZE) {
- errn = decode_v2gMagneticVectorType(stream, &v2gMagneticVectorListType->MagneticVector.array[v2gMagneticVectorListType->MagneticVector.arrayLen++]);
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- grammarID = 750;
- break;
- case 1:
- done = 1;
- grammarID = 3;
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 750:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MagneticVector), END_ELEMENT] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gMagneticVectorListType->MagneticVector.arrayLen < v2gMagneticVectorListType_MagneticVector_ARRAY_SIZE) {
- errn = decode_v2gMagneticVectorType(stream, &v2gMagneticVectorListType->MagneticVector.array[v2gMagneticVectorListType->MagneticVector.arrayLen++]);
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- grammarID = 751;
- break;
- case 1:
- done = 1;
- grammarID = 3;
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 751:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MagneticVector), END_ELEMENT] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gMagneticVectorListType->MagneticVector.arrayLen < v2gMagneticVectorListType_MagneticVector_ARRAY_SIZE) {
- errn = decode_v2gMagneticVectorType(stream, &v2gMagneticVectorListType->MagneticVector.array[v2gMagneticVectorListType->MagneticVector.arrayLen++]);
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- grammarID = 752;
- break;
- case 1:
- done = 1;
- grammarID = 3;
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 752:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MagneticVector), END_ELEMENT] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gMagneticVectorListType->MagneticVector.arrayLen < v2gMagneticVectorListType_MagneticVector_ARRAY_SIZE) {
- errn = decode_v2gMagneticVectorType(stream, &v2gMagneticVectorListType->MagneticVector.array[v2gMagneticVectorListType->MagneticVector.arrayLen++]);
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- grammarID = 753;
- break;
- case 1:
- done = 1;
- grammarID = 3;
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 753:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MagneticVector), END_ELEMENT] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gMagneticVectorListType->MagneticVector.arrayLen < v2gMagneticVectorListType_MagneticVector_ARRAY_SIZE) {
- errn = decode_v2gMagneticVectorType(stream, &v2gMagneticVectorListType->MagneticVector.array[v2gMagneticVectorListType->MagneticVector.arrayLen++]);
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- grammarID = 754;
- break;
- case 1:
- done = 1;
- grammarID = 3;
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 754:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MagneticVector), END_ELEMENT] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gMagneticVectorListType->MagneticVector.arrayLen < v2gMagneticVectorListType_MagneticVector_ARRAY_SIZE) {
- errn = decode_v2gMagneticVectorType(stream, &v2gMagneticVectorListType->MagneticVector.array[v2gMagneticVectorListType->MagneticVector.arrayLen++]);
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- grammarID = 755;
- break;
- case 1:
- done = 1;
- grammarID = 3;
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 755:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MagneticVector), END_ELEMENT] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gMagneticVectorListType->MagneticVector.arrayLen < v2gMagneticVectorListType_MagneticVector_ARRAY_SIZE) {
- errn = decode_v2gMagneticVectorType(stream, &v2gMagneticVectorListType->MagneticVector.array[v2gMagneticVectorListType->MagneticVector.arrayLen++]);
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- grammarID = 756;
- break;
- case 1:
- done = 1;
- grammarID = 3;
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 756:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MagneticVector), END_ELEMENT] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gMagneticVectorListType->MagneticVector.arrayLen < v2gMagneticVectorListType_MagneticVector_ARRAY_SIZE) {
- errn = decode_v2gMagneticVectorType(stream, &v2gMagneticVectorListType->MagneticVector.array[v2gMagneticVectorListType->MagneticVector.arrayLen++]);
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- grammarID = 757;
- break;
- case 1:
- done = 1;
- grammarID = 3;
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 757:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MagneticVector), END_ELEMENT] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gMagneticVectorListType->MagneticVector.arrayLen < v2gMagneticVectorListType_MagneticVector_ARRAY_SIZE) {
- errn = decode_v2gMagneticVectorType(stream, &v2gMagneticVectorListType->MagneticVector.array[v2gMagneticVectorListType->MagneticVector.arrayLen++]);
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- grammarID = 758;
- break;
- case 1:
- done = 1;
- grammarID = 3;
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 758:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MagneticVector), END_ELEMENT] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gMagneticVectorListType->MagneticVector.arrayLen < v2gMagneticVectorListType_MagneticVector_ARRAY_SIZE) {
- errn = decode_v2gMagneticVectorType(stream, &v2gMagneticVectorListType->MagneticVector.array[v2gMagneticVectorListType->MagneticVector.arrayLen++]);
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- grammarID = 759;
- break;
- case 1:
- done = 1;
- grammarID = 3;
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 759:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MagneticVector), END_ELEMENT] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gMagneticVectorListType->MagneticVector.arrayLen < v2gMagneticVectorListType_MagneticVector_ARRAY_SIZE) {
- errn = decode_v2gMagneticVectorType(stream, &v2gMagneticVectorListType->MagneticVector.array[v2gMagneticVectorListType->MagneticVector.arrayLen++]);
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- grammarID = 760;
- break;
- case 1:
- done = 1;
- grammarID = 3;
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 760:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MagneticVector), END_ELEMENT] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gMagneticVectorListType->MagneticVector.arrayLen < v2gMagneticVectorListType_MagneticVector_ARRAY_SIZE) {
- errn = decode_v2gMagneticVectorType(stream, &v2gMagneticVectorListType->MagneticVector.array[v2gMagneticVectorListType->MagneticVector.arrayLen++]);
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- grammarID = 761;
- break;
- case 1:
- done = 1;
- grammarID = 3;
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 761:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MagneticVector), END_ELEMENT] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gMagneticVectorListType->MagneticVector.arrayLen < v2gMagneticVectorListType_MagneticVector_ARRAY_SIZE) {
- errn = decode_v2gMagneticVectorType(stream, &v2gMagneticVectorListType->MagneticVector.array[v2gMagneticVectorListType->MagneticVector.arrayLen++]);
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- grammarID = 762;
- break;
- case 1:
- done = 1;
- grammarID = 3;
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 762:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MagneticVector), END_ELEMENT] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gMagneticVectorListType->MagneticVector.arrayLen < v2gMagneticVectorListType_MagneticVector_ARRAY_SIZE) {
- errn = decode_v2gMagneticVectorType(stream, &v2gMagneticVectorListType->MagneticVector.array[v2gMagneticVectorListType->MagneticVector.arrayLen++]);
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- grammarID = 763;
- break;
- case 1:
- done = 1;
- grammarID = 3;
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 763:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MagneticVector), END_ELEMENT] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gMagneticVectorListType->MagneticVector.arrayLen < v2gMagneticVectorListType_MagneticVector_ARRAY_SIZE) {
- errn = decode_v2gMagneticVectorType(stream, &v2gMagneticVectorListType->MagneticVector.array[v2gMagneticVectorListType->MagneticVector.arrayLen++]);
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- grammarID = 764;
- break;
- case 1:
- done = 1;
- grammarID = 3;
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 764:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MagneticVector), END_ELEMENT] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gMagneticVectorListType->MagneticVector.arrayLen < v2gMagneticVectorListType_MagneticVector_ARRAY_SIZE) {
- errn = decode_v2gMagneticVectorType(stream, &v2gMagneticVectorListType->MagneticVector.array[v2gMagneticVectorListType->MagneticVector.arrayLen++]);
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- grammarID = 765;
- break;
- case 1:
- done = 1;
- grammarID = 3;
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 765:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MagneticVector), END_ELEMENT] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gMagneticVectorListType->MagneticVector.arrayLen < v2gMagneticVectorListType_MagneticVector_ARRAY_SIZE) {
- errn = decode_v2gMagneticVectorType(stream, &v2gMagneticVectorListType->MagneticVector.array[v2gMagneticVectorListType->MagneticVector.arrayLen++]);
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- grammarID = 766;
- break;
- case 1:
- done = 1;
- grammarID = 3;
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 766:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MagneticVector), END_ELEMENT] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gMagneticVectorListType->MagneticVector.arrayLen < v2gMagneticVectorListType_MagneticVector_ARRAY_SIZE) {
- errn = decode_v2gMagneticVectorType(stream, &v2gMagneticVectorListType->MagneticVector.array[v2gMagneticVectorListType->MagneticVector.arrayLen++]);
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- grammarID = 767;
- break;
- case 1:
- done = 1;
- grammarID = 3;
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 767:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MagneticVector), END_ELEMENT] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gMagneticVectorListType->MagneticVector.arrayLen < v2gMagneticVectorListType_MagneticVector_ARRAY_SIZE) {
- errn = decode_v2gMagneticVectorType(stream, &v2gMagneticVectorListType->MagneticVector.array[v2gMagneticVectorListType->MagneticVector.arrayLen++]);
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- grammarID = 768;
- break;
- case 1:
- done = 1;
- grammarID = 3;
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 768:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MagneticVector), END_ELEMENT] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gMagneticVectorListType->MagneticVector.arrayLen < v2gMagneticVectorListType_MagneticVector_ARRAY_SIZE) {
- errn = decode_v2gMagneticVectorType(stream, &v2gMagneticVectorListType->MagneticVector.array[v2gMagneticVectorListType->MagneticVector.arrayLen++]);
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- grammarID = 769;
- break;
- case 1:
- done = 1;
- grammarID = 3;
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 769:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MagneticVector), END_ELEMENT] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gMagneticVectorListType->MagneticVector.arrayLen < v2gMagneticVectorListType_MagneticVector_ARRAY_SIZE) {
- errn = decode_v2gMagneticVectorType(stream, &v2gMagneticVectorListType->MagneticVector.array[v2gMagneticVectorListType->MagneticVector.arrayLen++]);
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- grammarID = 770;
- break;
- case 1:
- done = 1;
- grammarID = 3;
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 770:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MagneticVector), END_ELEMENT] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gMagneticVectorListType->MagneticVector.arrayLen < v2gMagneticVectorListType_MagneticVector_ARRAY_SIZE) {
- errn = decode_v2gMagneticVectorType(stream, &v2gMagneticVectorListType->MagneticVector.array[v2gMagneticVectorListType->MagneticVector.arrayLen++]);
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- grammarID = 771;
- break;
- case 1:
- done = 1;
- grammarID = 3;
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 771:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MagneticVector), END_ELEMENT] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gMagneticVectorListType->MagneticVector.arrayLen < v2gMagneticVectorListType_MagneticVector_ARRAY_SIZE) {
- errn = decode_v2gMagneticVectorType(stream, &v2gMagneticVectorListType->MagneticVector.array[v2gMagneticVectorListType->MagneticVector.arrayLen++]);
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- grammarID = 772;
- break;
- case 1:
- done = 1;
- grammarID = 3;
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 772:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MagneticVector), END_ELEMENT] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gMagneticVectorListType->MagneticVector.arrayLen < v2gMagneticVectorListType_MagneticVector_ARRAY_SIZE) {
- errn = decode_v2gMagneticVectorType(stream, &v2gMagneticVectorListType->MagneticVector.array[v2gMagneticVectorListType->MagneticVector.arrayLen++]);
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- grammarID = 773;
- break;
- case 1:
- done = 1;
- grammarID = 3;
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 773:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MagneticVector), END_ELEMENT] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gMagneticVectorListType->MagneticVector.arrayLen < v2gMagneticVectorListType_MagneticVector_ARRAY_SIZE) {
- errn = decode_v2gMagneticVectorType(stream, &v2gMagneticVectorListType->MagneticVector.array[v2gMagneticVectorListType->MagneticVector.arrayLen++]);
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- grammarID = 774;
- break;
- case 1:
- done = 1;
- grammarID = 3;
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 774:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MagneticVector), END_ELEMENT] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gMagneticVectorListType->MagneticVector.arrayLen < v2gMagneticVectorListType_MagneticVector_ARRAY_SIZE) {
- errn = decode_v2gMagneticVectorType(stream, &v2gMagneticVectorListType->MagneticVector.array[v2gMagneticVectorListType->MagneticVector.arrayLen++]);
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- grammarID = 775;
- break;
- case 1:
- done = 1;
- grammarID = 3;
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 775:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MagneticVector), END_ELEMENT] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gMagneticVectorListType->MagneticVector.arrayLen < v2gMagneticVectorListType_MagneticVector_ARRAY_SIZE) {
- errn = decode_v2gMagneticVectorType(stream, &v2gMagneticVectorListType->MagneticVector.array[v2gMagneticVectorListType->MagneticVector.arrayLen++]);
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- grammarID = 776;
- break;
- case 1:
- done = 1;
- grammarID = 3;
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 776:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MagneticVector), END_ELEMENT] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gMagneticVectorListType->MagneticVector.arrayLen < v2gMagneticVectorListType_MagneticVector_ARRAY_SIZE) {
- errn = decode_v2gMagneticVectorType(stream, &v2gMagneticVectorListType->MagneticVector.array[v2gMagneticVectorListType->MagneticVector.arrayLen++]);
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- grammarID = 777;
- break;
- case 1:
- done = 1;
- grammarID = 3;
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 777:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MagneticVector), END_ELEMENT] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gMagneticVectorListType->MagneticVector.arrayLen < v2gMagneticVectorListType_MagneticVector_ARRAY_SIZE) {
- errn = decode_v2gMagneticVectorType(stream, &v2gMagneticVectorListType->MagneticVector.array[v2gMagneticVectorListType->MagneticVector.arrayLen++]);
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- grammarID = 778;
- break;
- case 1:
- done = 1;
- grammarID = 3;
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 778:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MagneticVector), END_ELEMENT] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gMagneticVectorListType->MagneticVector.arrayLen < v2gMagneticVectorListType_MagneticVector_ARRAY_SIZE) {
- errn = decode_v2gMagneticVectorType(stream, &v2gMagneticVectorListType->MagneticVector.array[v2gMagneticVectorListType->MagneticVector.arrayLen++]);
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- grammarID = 779;
- break;
- case 1:
- done = 1;
- grammarID = 3;
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 779:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MagneticVector), END_ELEMENT] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gMagneticVectorListType->MagneticVector.arrayLen < v2gMagneticVectorListType_MagneticVector_ARRAY_SIZE) {
- errn = decode_v2gMagneticVectorType(stream, &v2gMagneticVectorListType->MagneticVector.array[v2gMagneticVectorListType->MagneticVector.arrayLen++]);
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- grammarID = 780;
- break;
- case 1:
- done = 1;
- grammarID = 3;
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 780:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MagneticVector), END_ELEMENT] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gMagneticVectorListType->MagneticVector.arrayLen < v2gMagneticVectorListType_MagneticVector_ARRAY_SIZE) {
- errn = decode_v2gMagneticVectorType(stream, &v2gMagneticVectorListType->MagneticVector.array[v2gMagneticVectorListType->MagneticVector.arrayLen++]);
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- grammarID = 781;
- break;
- case 1:
- done = 1;
- grammarID = 3;
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 781:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MagneticVector), END_ELEMENT] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gMagneticVectorListType->MagneticVector.arrayLen < v2gMagneticVectorListType_MagneticVector_ARRAY_SIZE) {
- errn = decode_v2gMagneticVectorType(stream, &v2gMagneticVectorListType->MagneticVector.array[v2gMagneticVectorListType->MagneticVector.arrayLen++]);
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- grammarID = 782;
- break;
- case 1:
- done = 1;
- grammarID = 3;
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 782:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MagneticVector), END_ELEMENT] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gMagneticVectorListType->MagneticVector.arrayLen < v2gMagneticVectorListType_MagneticVector_ARRAY_SIZE) {
- errn = decode_v2gMagneticVectorType(stream, &v2gMagneticVectorListType->MagneticVector.array[v2gMagneticVectorListType->MagneticVector.arrayLen++]);
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- grammarID = 783;
- break;
- case 1:
- done = 1;
- grammarID = 3;
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 783:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MagneticVector), END_ELEMENT] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gMagneticVectorListType->MagneticVector.arrayLen < v2gMagneticVectorListType_MagneticVector_ARRAY_SIZE) {
- errn = decode_v2gMagneticVectorType(stream, &v2gMagneticVectorListType->MagneticVector.array[v2gMagneticVectorListType->MagneticVector.arrayLen++]);
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- grammarID = 784;
- break;
- case 1:
- done = 1;
- grammarID = 3;
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 784:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MagneticVector), END_ELEMENT] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gMagneticVectorListType->MagneticVector.arrayLen < v2gMagneticVectorListType_MagneticVector_ARRAY_SIZE) {
- errn = decode_v2gMagneticVectorType(stream, &v2gMagneticVectorListType->MagneticVector.array[v2gMagneticVectorListType->MagneticVector.arrayLen++]);
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- grammarID = 785;
- break;
- case 1:
- done = 1;
- grammarID = 3;
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 785:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MagneticVector), END_ELEMENT] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gMagneticVectorListType->MagneticVector.arrayLen < v2gMagneticVectorListType_MagneticVector_ARRAY_SIZE) {
- errn = decode_v2gMagneticVectorType(stream, &v2gMagneticVectorListType->MagneticVector.array[v2gMagneticVectorListType->MagneticVector.arrayLen++]);
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- grammarID = 786;
- break;
- case 1:
- done = 1;
- grammarID = 3;
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 786:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MagneticVector), END_ELEMENT] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gMagneticVectorListType->MagneticVector.arrayLen < v2gMagneticVectorListType_MagneticVector_ARRAY_SIZE) {
- errn = decode_v2gMagneticVectorType(stream, &v2gMagneticVectorListType->MagneticVector.array[v2gMagneticVectorListType->MagneticVector.arrayLen++]);
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- grammarID = 787;
- break;
- case 1:
- done = 1;
- grammarID = 3;
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 787:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MagneticVector), END_ELEMENT] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gMagneticVectorListType->MagneticVector.arrayLen < v2gMagneticVectorListType_MagneticVector_ARRAY_SIZE) {
- errn = decode_v2gMagneticVectorType(stream, &v2gMagneticVectorListType->MagneticVector.array[v2gMagneticVectorListType->MagneticVector.arrayLen++]);
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- grammarID = 788;
- break;
- case 1:
- done = 1;
- grammarID = 3;
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 788:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MagneticVector), END_ELEMENT] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gMagneticVectorListType->MagneticVector.arrayLen < v2gMagneticVectorListType_MagneticVector_ARRAY_SIZE) {
- errn = decode_v2gMagneticVectorType(stream, &v2gMagneticVectorListType->MagneticVector.array[v2gMagneticVectorListType->MagneticVector.arrayLen++]);
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- grammarID = 789;
- break;
- case 1:
- done = 1;
- grammarID = 3;
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 789:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MagneticVector), END_ELEMENT] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gMagneticVectorListType->MagneticVector.arrayLen < v2gMagneticVectorListType_MagneticVector_ARRAY_SIZE) {
- errn = decode_v2gMagneticVectorType(stream, &v2gMagneticVectorListType->MagneticVector.array[v2gMagneticVectorListType->MagneticVector.arrayLen++]);
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- grammarID = 790;
- break;
- case 1:
- done = 1;
- grammarID = 3;
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 790:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MagneticVector), END_ELEMENT] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gMagneticVectorListType->MagneticVector.arrayLen < v2gMagneticVectorListType_MagneticVector_ARRAY_SIZE) {
- errn = decode_v2gMagneticVectorType(stream, &v2gMagneticVectorListType->MagneticVector.array[v2gMagneticVectorListType->MagneticVector.arrayLen++]);
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- grammarID = 791;
- break;
- case 1:
- done = 1;
- grammarID = 3;
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 791:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MagneticVector), END_ELEMENT] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gMagneticVectorListType->MagneticVector.arrayLen < v2gMagneticVectorListType_MagneticVector_ARRAY_SIZE) {
- errn = decode_v2gMagneticVectorType(stream, &v2gMagneticVectorListType->MagneticVector.array[v2gMagneticVectorListType->MagneticVector.arrayLen++]);
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- grammarID = 792;
- break;
- case 1:
- done = 1;
- grammarID = 3;
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 792:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MagneticVector), END_ELEMENT] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gMagneticVectorListType->MagneticVector.arrayLen < v2gMagneticVectorListType_MagneticVector_ARRAY_SIZE) {
- errn = decode_v2gMagneticVectorType(stream, &v2gMagneticVectorListType->MagneticVector.array[v2gMagneticVectorListType->MagneticVector.arrayLen++]);
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- grammarID = 793;
- break;
- case 1:
- done = 1;
- grammarID = 3;
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 793:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MagneticVector), END_ELEMENT] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gMagneticVectorListType->MagneticVector.arrayLen < v2gMagneticVectorListType_MagneticVector_ARRAY_SIZE) {
- errn = decode_v2gMagneticVectorType(stream, &v2gMagneticVectorListType->MagneticVector.array[v2gMagneticVectorListType->MagneticVector.arrayLen++]);
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- grammarID = 794;
- break;
- case 1:
- done = 1;
- grammarID = 3;
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 794:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MagneticVector), END_ELEMENT] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gMagneticVectorListType->MagneticVector.arrayLen < v2gMagneticVectorListType_MagneticVector_ARRAY_SIZE) {
- errn = decode_v2gMagneticVectorType(stream, &v2gMagneticVectorListType->MagneticVector.array[v2gMagneticVectorListType->MagneticVector.arrayLen++]);
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- grammarID = 795;
- break;
- case 1:
- done = 1;
- grammarID = 3;
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 795:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MagneticVector), END_ELEMENT] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gMagneticVectorListType->MagneticVector.arrayLen < v2gMagneticVectorListType_MagneticVector_ARRAY_SIZE) {
- errn = decode_v2gMagneticVectorType(stream, &v2gMagneticVectorListType->MagneticVector.array[v2gMagneticVectorListType->MagneticVector.arrayLen++]);
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- grammarID = 796;
- break;
- case 1:
- done = 1;
- grammarID = 3;
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 796:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MagneticVector), END_ELEMENT] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gMagneticVectorListType->MagneticVector.arrayLen < v2gMagneticVectorListType_MagneticVector_ARRAY_SIZE) {
- errn = decode_v2gMagneticVectorType(stream, &v2gMagneticVectorListType->MagneticVector.array[v2gMagneticVectorListType->MagneticVector.arrayLen++]);
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- grammarID = 797;
- break;
- case 1:
- done = 1;
- grammarID = 3;
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 797:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MagneticVector), END_ELEMENT] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gMagneticVectorListType->MagneticVector.arrayLen < v2gMagneticVectorListType_MagneticVector_ARRAY_SIZE) {
- errn = decode_v2gMagneticVectorType(stream, &v2gMagneticVectorListType->MagneticVector.array[v2gMagneticVectorListType->MagneticVector.arrayLen++]);
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- grammarID = 798;
- break;
- case 1:
- done = 1;
- grammarID = 3;
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 798:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MagneticVector), END_ELEMENT] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gMagneticVectorListType->MagneticVector.arrayLen < v2gMagneticVectorListType_MagneticVector_ARRAY_SIZE) {
- errn = decode_v2gMagneticVectorType(stream, &v2gMagneticVectorListType->MagneticVector.array[v2gMagneticVectorListType->MagneticVector.arrayLen++]);
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- grammarID = 799;
- break;
- case 1:
- done = 1;
- grammarID = 3;
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 799:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MagneticVector), END_ELEMENT] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gMagneticVectorListType->MagneticVector.arrayLen < v2gMagneticVectorListType_MagneticVector_ARRAY_SIZE) {
- errn = decode_v2gMagneticVectorType(stream, &v2gMagneticVectorListType->MagneticVector.array[v2gMagneticVectorListType->MagneticVector.arrayLen++]);
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- grammarID = 800;
- break;
- case 1:
- done = 1;
- grammarID = 3;
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 800:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MagneticVector), END_ELEMENT] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gMagneticVectorListType->MagneticVector.arrayLen < v2gMagneticVectorListType_MagneticVector_ARRAY_SIZE) {
- errn = decode_v2gMagneticVectorType(stream, &v2gMagneticVectorListType->MagneticVector.array[v2gMagneticVectorListType->MagneticVector.arrayLen++]);
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- grammarID = 801;
- break;
- case 1:
- done = 1;
- grammarID = 3;
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 801:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MagneticVector), END_ELEMENT] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gMagneticVectorListType->MagneticVector.arrayLen < v2gMagneticVectorListType_MagneticVector_ARRAY_SIZE) {
- errn = decode_v2gMagneticVectorType(stream, &v2gMagneticVectorListType->MagneticVector.array[v2gMagneticVectorListType->MagneticVector.arrayLen++]);
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- grammarID = 802;
- break;
- case 1:
- done = 1;
- grammarID = 3;
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 802:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MagneticVector), END_ELEMENT] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gMagneticVectorListType->MagneticVector.arrayLen < v2gMagneticVectorListType_MagneticVector_ARRAY_SIZE) {
- errn = decode_v2gMagneticVectorType(stream, &v2gMagneticVectorListType->MagneticVector.array[v2gMagneticVectorListType->MagneticVector.arrayLen++]);
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- grammarID = 803;
- break;
- case 1:
- done = 1;
- grammarID = 3;
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 803:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MagneticVector), END_ELEMENT] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gMagneticVectorListType->MagneticVector.arrayLen < v2gMagneticVectorListType_MagneticVector_ARRAY_SIZE) {
- errn = decode_v2gMagneticVectorType(stream, &v2gMagneticVectorListType->MagneticVector.array[v2gMagneticVectorListType->MagneticVector.arrayLen++]);
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- grammarID = 804;
- break;
- case 1:
- done = 1;
- grammarID = 3;
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 804:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MagneticVector), END_ELEMENT] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gMagneticVectorListType->MagneticVector.arrayLen < v2gMagneticVectorListType_MagneticVector_ARRAY_SIZE) {
- errn = decode_v2gMagneticVectorType(stream, &v2gMagneticVectorListType->MagneticVector.array[v2gMagneticVectorListType->MagneticVector.arrayLen++]);
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- grammarID = 805;
- break;
- case 1:
- done = 1;
- grammarID = 3;
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 805:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MagneticVector), END_ELEMENT] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gMagneticVectorListType->MagneticVector.arrayLen < v2gMagneticVectorListType_MagneticVector_ARRAY_SIZE) {
- errn = decode_v2gMagneticVectorType(stream, &v2gMagneticVectorListType->MagneticVector.array[v2gMagneticVectorListType->MagneticVector.arrayLen++]);
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- grammarID = 806;
- break;
- case 1:
- done = 1;
- grammarID = 3;
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 806:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MagneticVector), END_ELEMENT] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gMagneticVectorListType->MagneticVector.arrayLen < v2gMagneticVectorListType_MagneticVector_ARRAY_SIZE) {
- errn = decode_v2gMagneticVectorType(stream, &v2gMagneticVectorListType->MagneticVector.array[v2gMagneticVectorListType->MagneticVector.arrayLen++]);
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- grammarID = 807;
- break;
- case 1:
- done = 1;
- grammarID = 3;
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 807:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MagneticVector), END_ELEMENT] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gMagneticVectorListType->MagneticVector.arrayLen < v2gMagneticVectorListType_MagneticVector_ARRAY_SIZE) {
- errn = decode_v2gMagneticVectorType(stream, &v2gMagneticVectorListType->MagneticVector.array[v2gMagneticVectorListType->MagneticVector.arrayLen++]);
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- grammarID = 808;
- break;
- case 1:
- done = 1;
- grammarID = 3;
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 808:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MagneticVector), END_ELEMENT] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gMagneticVectorListType->MagneticVector.arrayLen < v2gMagneticVectorListType_MagneticVector_ARRAY_SIZE) {
- errn = decode_v2gMagneticVectorType(stream, &v2gMagneticVectorListType->MagneticVector.array[v2gMagneticVectorListType->MagneticVector.arrayLen++]);
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- grammarID = 809;
- break;
- case 1:
- done = 1;
- grammarID = 3;
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 809:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MagneticVector), END_ELEMENT] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gMagneticVectorListType->MagneticVector.arrayLen < v2gMagneticVectorListType_MagneticVector_ARRAY_SIZE) {
- errn = decode_v2gMagneticVectorType(stream, &v2gMagneticVectorListType->MagneticVector.array[v2gMagneticVectorListType->MagneticVector.arrayLen++]);
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- grammarID = 810;
- break;
- case 1:
- done = 1;
- grammarID = 3;
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 810:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MagneticVector), END_ELEMENT] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gMagneticVectorListType->MagneticVector.arrayLen < v2gMagneticVectorListType_MagneticVector_ARRAY_SIZE) {
- errn = decode_v2gMagneticVectorType(stream, &v2gMagneticVectorListType->MagneticVector.array[v2gMagneticVectorListType->MagneticVector.arrayLen++]);
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- grammarID = 811;
- break;
- case 1:
- done = 1;
- grammarID = 3;
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 811:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MagneticVector), END_ELEMENT] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gMagneticVectorListType->MagneticVector.arrayLen < v2gMagneticVectorListType_MagneticVector_ARRAY_SIZE) {
- errn = decode_v2gMagneticVectorType(stream, &v2gMagneticVectorListType->MagneticVector.array[v2gMagneticVectorListType->MagneticVector.arrayLen++]);
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- grammarID = 812;
- break;
- case 1:
- done = 1;
- grammarID = 3;
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 812:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MagneticVector), END_ELEMENT] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gMagneticVectorListType->MagneticVector.arrayLen < v2gMagneticVectorListType_MagneticVector_ARRAY_SIZE) {
- errn = decode_v2gMagneticVectorType(stream, &v2gMagneticVectorListType->MagneticVector.array[v2gMagneticVectorListType->MagneticVector.arrayLen++]);
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- grammarID = 813;
- break;
- case 1:
- done = 1;
- grammarID = 3;
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 813:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MagneticVector), END_ELEMENT] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gMagneticVectorListType->MagneticVector.arrayLen < v2gMagneticVectorListType_MagneticVector_ARRAY_SIZE) {
- errn = decode_v2gMagneticVectorType(stream, &v2gMagneticVectorListType->MagneticVector.array[v2gMagneticVectorListType->MagneticVector.arrayLen++]);
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- grammarID = 814;
- break;
- case 1:
- done = 1;
- grammarID = 3;
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 814:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MagneticVector), END_ELEMENT] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gMagneticVectorListType->MagneticVector.arrayLen < v2gMagneticVectorListType_MagneticVector_ARRAY_SIZE) {
- errn = decode_v2gMagneticVectorType(stream, &v2gMagneticVectorListType->MagneticVector.array[v2gMagneticVectorListType->MagneticVector.arrayLen++]);
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- grammarID = 815;
- break;
- case 1:
- done = 1;
- grammarID = 3;
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 815:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MagneticVector), END_ELEMENT] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gMagneticVectorListType->MagneticVector.arrayLen < v2gMagneticVectorListType_MagneticVector_ARRAY_SIZE) {
- errn = decode_v2gMagneticVectorType(stream, &v2gMagneticVectorListType->MagneticVector.array[v2gMagneticVectorListType->MagneticVector.arrayLen++]);
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- grammarID = 816;
- break;
- case 1:
- done = 1;
- grammarID = 3;
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 816:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MagneticVector), END_ELEMENT] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gMagneticVectorListType->MagneticVector.arrayLen < v2gMagneticVectorListType_MagneticVector_ARRAY_SIZE) {
- errn = decode_v2gMagneticVectorType(stream, &v2gMagneticVectorListType->MagneticVector.array[v2gMagneticVectorListType->MagneticVector.arrayLen++]);
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- grammarID = 817;
- break;
- case 1:
- done = 1;
- grammarID = 3;
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 817:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MagneticVector), END_ELEMENT] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gMagneticVectorListType->MagneticVector.arrayLen < v2gMagneticVectorListType_MagneticVector_ARRAY_SIZE) {
- errn = decode_v2gMagneticVectorType(stream, &v2gMagneticVectorListType->MagneticVector.array[v2gMagneticVectorListType->MagneticVector.arrayLen++]);
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- grammarID = 818;
- break;
- case 1:
- done = 1;
- grammarID = 3;
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 818:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MagneticVector), END_ELEMENT] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gMagneticVectorListType->MagneticVector.arrayLen < v2gMagneticVectorListType_MagneticVector_ARRAY_SIZE) {
- errn = decode_v2gMagneticVectorType(stream, &v2gMagneticVectorListType->MagneticVector.array[v2gMagneticVectorListType->MagneticVector.arrayLen++]);
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- grammarID = 819;
- break;
- case 1:
- done = 1;
- grammarID = 3;
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 819:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MagneticVector), END_ELEMENT] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gMagneticVectorListType->MagneticVector.arrayLen < v2gMagneticVectorListType_MagneticVector_ARRAY_SIZE) {
- errn = decode_v2gMagneticVectorType(stream, &v2gMagneticVectorListType->MagneticVector.array[v2gMagneticVectorListType->MagneticVector.arrayLen++]);
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- grammarID = 820;
- break;
- case 1:
- done = 1;
- grammarID = 3;
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 820:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MagneticVector), END_ELEMENT] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gMagneticVectorListType->MagneticVector.arrayLen < v2gMagneticVectorListType_MagneticVector_ARRAY_SIZE) {
- errn = decode_v2gMagneticVectorType(stream, &v2gMagneticVectorListType->MagneticVector.array[v2gMagneticVectorListType->MagneticVector.arrayLen++]);
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- grammarID = 821;
- break;
- case 1:
- done = 1;
- grammarID = 3;
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 821:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MagneticVector), END_ELEMENT] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gMagneticVectorListType->MagneticVector.arrayLen < v2gMagneticVectorListType_MagneticVector_ARRAY_SIZE) {
- errn = decode_v2gMagneticVectorType(stream, &v2gMagneticVectorListType->MagneticVector.array[v2gMagneticVectorListType->MagneticVector.arrayLen++]);
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- grammarID = 822;
- break;
- case 1:
- done = 1;
- grammarID = 3;
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 822:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MagneticVector), END_ELEMENT] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gMagneticVectorListType->MagneticVector.arrayLen < v2gMagneticVectorListType_MagneticVector_ARRAY_SIZE) {
- errn = decode_v2gMagneticVectorType(stream, &v2gMagneticVectorListType->MagneticVector.array[v2gMagneticVectorListType->MagneticVector.arrayLen++]);
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- grammarID = 823;
- break;
- case 1:
- done = 1;
- grammarID = 3;
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 823:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MagneticVector), END_ELEMENT] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gMagneticVectorListType->MagneticVector.arrayLen < v2gMagneticVectorListType_MagneticVector_ARRAY_SIZE) {
- errn = decode_v2gMagneticVectorType(stream, &v2gMagneticVectorListType->MagneticVector.array[v2gMagneticVectorListType->MagneticVector.arrayLen++]);
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- grammarID = 824;
- break;
- case 1:
- done = 1;
- grammarID = 3;
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 824:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MagneticVector), END_ELEMENT] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gMagneticVectorListType->MagneticVector.arrayLen < v2gMagneticVectorListType_MagneticVector_ARRAY_SIZE) {
- errn = decode_v2gMagneticVectorType(stream, &v2gMagneticVectorListType->MagneticVector.array[v2gMagneticVectorListType->MagneticVector.arrayLen++]);
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- grammarID = 825;
- break;
- case 1:
- done = 1;
- grammarID = 3;
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 825:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MagneticVector), END_ELEMENT] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gMagneticVectorListType->MagneticVector.arrayLen < v2gMagneticVectorListType_MagneticVector_ARRAY_SIZE) {
- errn = decode_v2gMagneticVectorType(stream, &v2gMagneticVectorListType->MagneticVector.array[v2gMagneticVectorListType->MagneticVector.arrayLen++]);
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- grammarID = 826;
- break;
- case 1:
- done = 1;
- grammarID = 3;
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 826:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MagneticVector), END_ELEMENT] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gMagneticVectorListType->MagneticVector.arrayLen < v2gMagneticVectorListType_MagneticVector_ARRAY_SIZE) {
- errn = decode_v2gMagneticVectorType(stream, &v2gMagneticVectorListType->MagneticVector.array[v2gMagneticVectorListType->MagneticVector.arrayLen++]);
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- grammarID = 827;
- break;
- case 1:
- done = 1;
- grammarID = 3;
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 827:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MagneticVector), END_ELEMENT] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gMagneticVectorListType->MagneticVector.arrayLen < v2gMagneticVectorListType_MagneticVector_ARRAY_SIZE) {
- errn = decode_v2gMagneticVectorType(stream, &v2gMagneticVectorListType->MagneticVector.array[v2gMagneticVectorListType->MagneticVector.arrayLen++]);
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- grammarID = 828;
- break;
- case 1:
- done = 1;
- grammarID = 3;
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 828:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MagneticVector), END_ELEMENT] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gMagneticVectorListType->MagneticVector.arrayLen < v2gMagneticVectorListType_MagneticVector_ARRAY_SIZE) {
- errn = decode_v2gMagneticVectorType(stream, &v2gMagneticVectorListType->MagneticVector.array[v2gMagneticVectorListType->MagneticVector.arrayLen++]);
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- grammarID = 829;
- break;
- case 1:
- done = 1;
- grammarID = 3;
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 829:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MagneticVector), END_ELEMENT] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gMagneticVectorListType->MagneticVector.arrayLen < v2gMagneticVectorListType_MagneticVector_ARRAY_SIZE) {
- errn = decode_v2gMagneticVectorType(stream, &v2gMagneticVectorListType->MagneticVector.array[v2gMagneticVectorListType->MagneticVector.arrayLen++]);
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- grammarID = 830;
- break;
- case 1:
- done = 1;
- grammarID = 3;
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 830:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MagneticVector), END_ELEMENT] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gMagneticVectorListType->MagneticVector.arrayLen < v2gMagneticVectorListType_MagneticVector_ARRAY_SIZE) {
- errn = decode_v2gMagneticVectorType(stream, &v2gMagneticVectorListType->MagneticVector.array[v2gMagneticVectorListType->MagneticVector.arrayLen++]);
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- grammarID = 831;
- break;
- case 1:
- done = 1;
- grammarID = 3;
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 831:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MagneticVector), END_ELEMENT] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gMagneticVectorListType->MagneticVector.arrayLen < v2gMagneticVectorListType_MagneticVector_ARRAY_SIZE) {
- errn = decode_v2gMagneticVectorType(stream, &v2gMagneticVectorListType->MagneticVector.array[v2gMagneticVectorListType->MagneticVector.arrayLen++]);
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- grammarID = 832;
- break;
- case 1:
- done = 1;
- grammarID = 3;
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 832:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MagneticVector), END_ELEMENT] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gMagneticVectorListType->MagneticVector.arrayLen < v2gMagneticVectorListType_MagneticVector_ARRAY_SIZE) {
- errn = decode_v2gMagneticVectorType(stream, &v2gMagneticVectorListType->MagneticVector.array[v2gMagneticVectorListType->MagneticVector.arrayLen++]);
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- grammarID = 833;
- break;
- case 1:
- done = 1;
- grammarID = 3;
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 833:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MagneticVector), END_ELEMENT] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gMagneticVectorListType->MagneticVector.arrayLen < v2gMagneticVectorListType_MagneticVector_ARRAY_SIZE) {
- errn = decode_v2gMagneticVectorType(stream, &v2gMagneticVectorListType->MagneticVector.array[v2gMagneticVectorListType->MagneticVector.arrayLen++]);
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- grammarID = 834;
- break;
- case 1:
- done = 1;
- grammarID = 3;
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 834:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MagneticVector), END_ELEMENT] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gMagneticVectorListType->MagneticVector.arrayLen < v2gMagneticVectorListType_MagneticVector_ARRAY_SIZE) {
- errn = decode_v2gMagneticVectorType(stream, &v2gMagneticVectorListType->MagneticVector.array[v2gMagneticVectorListType->MagneticVector.arrayLen++]);
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- grammarID = 835;
- break;
- case 1:
- done = 1;
- grammarID = 3;
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 835:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MagneticVector), END_ELEMENT] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gMagneticVectorListType->MagneticVector.arrayLen < v2gMagneticVectorListType_MagneticVector_ARRAY_SIZE) {
- errn = decode_v2gMagneticVectorType(stream, &v2gMagneticVectorListType->MagneticVector.array[v2gMagneticVectorListType->MagneticVector.arrayLen++]);
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- grammarID = 836;
- break;
- case 1:
- done = 1;
- grammarID = 3;
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 836:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MagneticVector), END_ELEMENT] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gMagneticVectorListType->MagneticVector.arrayLen < v2gMagneticVectorListType_MagneticVector_ARRAY_SIZE) {
- errn = decode_v2gMagneticVectorType(stream, &v2gMagneticVectorListType->MagneticVector.array[v2gMagneticVectorListType->MagneticVector.arrayLen++]);
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- grammarID = 837;
- break;
- case 1:
- done = 1;
- grammarID = 3;
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 837:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MagneticVector), END_ELEMENT] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gMagneticVectorListType->MagneticVector.arrayLen < v2gMagneticVectorListType_MagneticVector_ARRAY_SIZE) {
- errn = decode_v2gMagneticVectorType(stream, &v2gMagneticVectorListType->MagneticVector.array[v2gMagneticVectorListType->MagneticVector.arrayLen++]);
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- grammarID = 838;
- break;
- case 1:
- done = 1;
- grammarID = 3;
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 838:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MagneticVector), END_ELEMENT] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gMagneticVectorListType->MagneticVector.arrayLen < v2gMagneticVectorListType_MagneticVector_ARRAY_SIZE) {
- errn = decode_v2gMagneticVectorType(stream, &v2gMagneticVectorListType->MagneticVector.array[v2gMagneticVectorListType->MagneticVector.arrayLen++]);
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- grammarID = 839;
- break;
- case 1:
- done = 1;
- grammarID = 3;
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 839:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MagneticVector), END_ELEMENT] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gMagneticVectorListType->MagneticVector.arrayLen < v2gMagneticVectorListType_MagneticVector_ARRAY_SIZE) {
- errn = decode_v2gMagneticVectorType(stream, &v2gMagneticVectorListType->MagneticVector.array[v2gMagneticVectorListType->MagneticVector.arrayLen++]);
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- grammarID = 840;
- break;
- case 1:
- done = 1;
- grammarID = 3;
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 840:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MagneticVector), END_ELEMENT] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gMagneticVectorListType->MagneticVector.arrayLen < v2gMagneticVectorListType_MagneticVector_ARRAY_SIZE) {
- errn = decode_v2gMagneticVectorType(stream, &v2gMagneticVectorListType->MagneticVector.array[v2gMagneticVectorListType->MagneticVector.arrayLen++]);
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- grammarID = 841;
- break;
- case 1:
- done = 1;
- grammarID = 3;
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 841:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MagneticVector), END_ELEMENT] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gMagneticVectorListType->MagneticVector.arrayLen < v2gMagneticVectorListType_MagneticVector_ARRAY_SIZE) {
- errn = decode_v2gMagneticVectorType(stream, &v2gMagneticVectorListType->MagneticVector.array[v2gMagneticVectorListType->MagneticVector.arrayLen++]);
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- grammarID = 842;
- break;
- case 1:
- done = 1;
- grammarID = 3;
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 842:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MagneticVector), END_ELEMENT] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gMagneticVectorListType->MagneticVector.arrayLen < v2gMagneticVectorListType_MagneticVector_ARRAY_SIZE) {
- errn = decode_v2gMagneticVectorType(stream, &v2gMagneticVectorListType->MagneticVector.array[v2gMagneticVectorListType->MagneticVector.arrayLen++]);
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- grammarID = 843;
- break;
- case 1:
- done = 1;
- grammarID = 3;
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 843:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MagneticVector), END_ELEMENT] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gMagneticVectorListType->MagneticVector.arrayLen < v2gMagneticVectorListType_MagneticVector_ARRAY_SIZE) {
- errn = decode_v2gMagneticVectorType(stream, &v2gMagneticVectorListType->MagneticVector.array[v2gMagneticVectorListType->MagneticVector.arrayLen++]);
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- grammarID = 844;
- break;
- case 1:
- done = 1;
- grammarID = 3;
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 844:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MagneticVector), END_ELEMENT] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gMagneticVectorListType->MagneticVector.arrayLen < v2gMagneticVectorListType_MagneticVector_ARRAY_SIZE) {
- errn = decode_v2gMagneticVectorType(stream, &v2gMagneticVectorListType->MagneticVector.array[v2gMagneticVectorListType->MagneticVector.arrayLen++]);
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- grammarID = 845;
- break;
- case 1:
- done = 1;
- grammarID = 3;
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 845:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MagneticVector), END_ELEMENT] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gMagneticVectorListType->MagneticVector.arrayLen < v2gMagneticVectorListType_MagneticVector_ARRAY_SIZE) {
- errn = decode_v2gMagneticVectorType(stream, &v2gMagneticVectorListType->MagneticVector.array[v2gMagneticVectorListType->MagneticVector.arrayLen++]);
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- grammarID = 846;
- break;
- case 1:
- done = 1;
- grammarID = 3;
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 846:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MagneticVector), END_ELEMENT] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gMagneticVectorListType->MagneticVector.arrayLen < v2gMagneticVectorListType_MagneticVector_ARRAY_SIZE) {
- errn = decode_v2gMagneticVectorType(stream, &v2gMagneticVectorListType->MagneticVector.array[v2gMagneticVectorListType->MagneticVector.arrayLen++]);
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- grammarID = 847;
- break;
- case 1:
- done = 1;
- grammarID = 3;
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 847:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MagneticVector), END_ELEMENT] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gMagneticVectorListType->MagneticVector.arrayLen < v2gMagneticVectorListType_MagneticVector_ARRAY_SIZE) {
- errn = decode_v2gMagneticVectorType(stream, &v2gMagneticVectorListType->MagneticVector.array[v2gMagneticVectorListType->MagneticVector.arrayLen++]);
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- grammarID = 848;
- break;
- case 1:
- done = 1;
- grammarID = 3;
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 848:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MagneticVector), END_ELEMENT] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gMagneticVectorListType->MagneticVector.arrayLen < v2gMagneticVectorListType_MagneticVector_ARRAY_SIZE) {
- errn = decode_v2gMagneticVectorType(stream, &v2gMagneticVectorListType->MagneticVector.array[v2gMagneticVectorListType->MagneticVector.arrayLen++]);
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- grammarID = 849;
- break;
- case 1:
- done = 1;
- grammarID = 3;
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 849:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MagneticVector), END_ELEMENT] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gMagneticVectorListType->MagneticVector.arrayLen < v2gMagneticVectorListType_MagneticVector_ARRAY_SIZE) {
- errn = decode_v2gMagneticVectorType(stream, &v2gMagneticVectorListType->MagneticVector.array[v2gMagneticVectorListType->MagneticVector.arrayLen++]);
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- grammarID = 850;
- break;
- case 1:
- done = 1;
- grammarID = 3;
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 850:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MagneticVector), END_ELEMENT] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gMagneticVectorListType->MagneticVector.arrayLen < v2gMagneticVectorListType_MagneticVector_ARRAY_SIZE) {
- errn = decode_v2gMagneticVectorType(stream, &v2gMagneticVectorListType->MagneticVector.array[v2gMagneticVectorListType->MagneticVector.arrayLen++]);
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- grammarID = 851;
- break;
- case 1:
- done = 1;
- grammarID = 3;
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 851:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MagneticVector), END_ELEMENT] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gMagneticVectorListType->MagneticVector.arrayLen < v2gMagneticVectorListType_MagneticVector_ARRAY_SIZE) {
- errn = decode_v2gMagneticVectorType(stream, &v2gMagneticVectorListType->MagneticVector.array[v2gMagneticVectorListType->MagneticVector.arrayLen++]);
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- grammarID = 852;
- break;
- case 1:
- done = 1;
- grammarID = 3;
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 852:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MagneticVector), END_ELEMENT] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gMagneticVectorListType->MagneticVector.arrayLen < v2gMagneticVectorListType_MagneticVector_ARRAY_SIZE) {
- errn = decode_v2gMagneticVectorType(stream, &v2gMagneticVectorListType->MagneticVector.array[v2gMagneticVectorListType->MagneticVector.arrayLen++]);
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- grammarID = 853;
- break;
- case 1:
- done = 1;
- grammarID = 3;
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 853:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MagneticVector), END_ELEMENT] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gMagneticVectorListType->MagneticVector.arrayLen < v2gMagneticVectorListType_MagneticVector_ARRAY_SIZE) {
- errn = decode_v2gMagneticVectorType(stream, &v2gMagneticVectorListType->MagneticVector.array[v2gMagneticVectorListType->MagneticVector.arrayLen++]);
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- grammarID = 854;
- break;
- case 1:
- done = 1;
- grammarID = 3;
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 854:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MagneticVector), END_ELEMENT] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gMagneticVectorListType->MagneticVector.arrayLen < v2gMagneticVectorListType_MagneticVector_ARRAY_SIZE) {
- errn = decode_v2gMagneticVectorType(stream, &v2gMagneticVectorListType->MagneticVector.array[v2gMagneticVectorListType->MagneticVector.arrayLen++]);
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- grammarID = 855;
- break;
- case 1:
- done = 1;
- grammarID = 3;
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 855:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MagneticVector), END_ELEMENT] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gMagneticVectorListType->MagneticVector.arrayLen < v2gMagneticVectorListType_MagneticVector_ARRAY_SIZE) {
- errn = decode_v2gMagneticVectorType(stream, &v2gMagneticVectorListType->MagneticVector.array[v2gMagneticVectorListType->MagneticVector.arrayLen++]);
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- grammarID = 856;
- break;
- case 1:
- done = 1;
- grammarID = 3;
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 856:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MagneticVector), END_ELEMENT] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gMagneticVectorListType->MagneticVector.arrayLen < v2gMagneticVectorListType_MagneticVector_ARRAY_SIZE) {
- errn = decode_v2gMagneticVectorType(stream, &v2gMagneticVectorListType->MagneticVector.array[v2gMagneticVectorListType->MagneticVector.arrayLen++]);
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- grammarID = 857;
- break;
- case 1:
- done = 1;
- grammarID = 3;
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 857:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MagneticVector), END_ELEMENT] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gMagneticVectorListType->MagneticVector.arrayLen < v2gMagneticVectorListType_MagneticVector_ARRAY_SIZE) {
- errn = decode_v2gMagneticVectorType(stream, &v2gMagneticVectorListType->MagneticVector.array[v2gMagneticVectorListType->MagneticVector.arrayLen++]);
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- grammarID = 858;
- break;
- case 1:
- done = 1;
- grammarID = 3;
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 858:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MagneticVector), END_ELEMENT] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gMagneticVectorListType->MagneticVector.arrayLen < v2gMagneticVectorListType_MagneticVector_ARRAY_SIZE) {
- errn = decode_v2gMagneticVectorType(stream, &v2gMagneticVectorListType->MagneticVector.array[v2gMagneticVectorListType->MagneticVector.arrayLen++]);
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- grammarID = 859;
- break;
- case 1:
- done = 1;
- grammarID = 3;
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 859:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MagneticVector), END_ELEMENT] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gMagneticVectorListType->MagneticVector.arrayLen < v2gMagneticVectorListType_MagneticVector_ARRAY_SIZE) {
- errn = decode_v2gMagneticVectorType(stream, &v2gMagneticVectorListType->MagneticVector.array[v2gMagneticVectorListType->MagneticVector.arrayLen++]);
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- grammarID = 860;
- break;
- case 1:
- done = 1;
- grammarID = 3;
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 860:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MagneticVector), END_ELEMENT] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gMagneticVectorListType->MagneticVector.arrayLen < v2gMagneticVectorListType_MagneticVector_ARRAY_SIZE) {
- errn = decode_v2gMagneticVectorType(stream, &v2gMagneticVectorListType->MagneticVector.array[v2gMagneticVectorListType->MagneticVector.arrayLen++]);
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- grammarID = 861;
- break;
- case 1:
- done = 1;
- grammarID = 3;
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 861:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MagneticVector), END_ELEMENT] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gMagneticVectorListType->MagneticVector.arrayLen < v2gMagneticVectorListType_MagneticVector_ARRAY_SIZE) {
- errn = decode_v2gMagneticVectorType(stream, &v2gMagneticVectorListType->MagneticVector.array[v2gMagneticVectorListType->MagneticVector.arrayLen++]);
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- grammarID = 862;
- break;
- case 1:
- done = 1;
- grammarID = 3;
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 862:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MagneticVector), END_ELEMENT] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gMagneticVectorListType->MagneticVector.arrayLen < v2gMagneticVectorListType_MagneticVector_ARRAY_SIZE) {
- errn = decode_v2gMagneticVectorType(stream, &v2gMagneticVectorListType->MagneticVector.array[v2gMagneticVectorListType->MagneticVector.arrayLen++]);
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- grammarID = 863;
- break;
- case 1:
- done = 1;
- grammarID = 3;
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 863:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MagneticVector), END_ELEMENT] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gMagneticVectorListType->MagneticVector.arrayLen < v2gMagneticVectorListType_MagneticVector_ARRAY_SIZE) {
- errn = decode_v2gMagneticVectorType(stream, &v2gMagneticVectorListType->MagneticVector.array[v2gMagneticVectorListType->MagneticVector.arrayLen++]);
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- grammarID = 864;
- break;
- case 1:
- done = 1;
- grammarID = 3;
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 864:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MagneticVector), END_ELEMENT] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gMagneticVectorListType->MagneticVector.arrayLen < v2gMagneticVectorListType_MagneticVector_ARRAY_SIZE) {
- errn = decode_v2gMagneticVectorType(stream, &v2gMagneticVectorListType->MagneticVector.array[v2gMagneticVectorListType->MagneticVector.arrayLen++]);
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- grammarID = 865;
- break;
- case 1:
- done = 1;
- grammarID = 3;
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 865:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MagneticVector), END_ELEMENT] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gMagneticVectorListType->MagneticVector.arrayLen < v2gMagneticVectorListType_MagneticVector_ARRAY_SIZE) {
- errn = decode_v2gMagneticVectorType(stream, &v2gMagneticVectorListType->MagneticVector.array[v2gMagneticVectorListType->MagneticVector.arrayLen++]);
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- grammarID = 866;
- break;
- case 1:
- done = 1;
- grammarID = 3;
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 866:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MagneticVector), END_ELEMENT] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gMagneticVectorListType->MagneticVector.arrayLen < v2gMagneticVectorListType_MagneticVector_ARRAY_SIZE) {
- errn = decode_v2gMagneticVectorType(stream, &v2gMagneticVectorListType->MagneticVector.array[v2gMagneticVectorListType->MagneticVector.arrayLen++]);
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- grammarID = 867;
- break;
- case 1:
- done = 1;
- grammarID = 3;
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 867:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MagneticVector), END_ELEMENT] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gMagneticVectorListType->MagneticVector.arrayLen < v2gMagneticVectorListType_MagneticVector_ARRAY_SIZE) {
- errn = decode_v2gMagneticVectorType(stream, &v2gMagneticVectorListType->MagneticVector.array[v2gMagneticVectorListType->MagneticVector.arrayLen++]);
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- grammarID = 868;
- break;
- case 1:
- done = 1;
- grammarID = 3;
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 868:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MagneticVector), END_ELEMENT] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gMagneticVectorListType->MagneticVector.arrayLen < v2gMagneticVectorListType_MagneticVector_ARRAY_SIZE) {
- errn = decode_v2gMagneticVectorType(stream, &v2gMagneticVectorListType->MagneticVector.array[v2gMagneticVectorListType->MagneticVector.arrayLen++]);
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- grammarID = 869;
- break;
- case 1:
- done = 1;
- grammarID = 3;
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 869:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MagneticVector), END_ELEMENT] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gMagneticVectorListType->MagneticVector.arrayLen < v2gMagneticVectorListType_MagneticVector_ARRAY_SIZE) {
- errn = decode_v2gMagneticVectorType(stream, &v2gMagneticVectorListType->MagneticVector.array[v2gMagneticVectorListType->MagneticVector.arrayLen++]);
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- grammarID = 870;
- break;
- case 1:
- done = 1;
- grammarID = 3;
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 870:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MagneticVector), END_ELEMENT] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gMagneticVectorListType->MagneticVector.arrayLen < v2gMagneticVectorListType_MagneticVector_ARRAY_SIZE) {
- errn = decode_v2gMagneticVectorType(stream, &v2gMagneticVectorListType->MagneticVector.array[v2gMagneticVectorListType->MagneticVector.arrayLen++]);
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- grammarID = 871;
- break;
- case 1:
- done = 1;
- grammarID = 3;
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 871:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MagneticVector), END_ELEMENT] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gMagneticVectorListType->MagneticVector.arrayLen < v2gMagneticVectorListType_MagneticVector_ARRAY_SIZE) {
- errn = decode_v2gMagneticVectorType(stream, &v2gMagneticVectorListType->MagneticVector.array[v2gMagneticVectorListType->MagneticVector.arrayLen++]);
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- grammarID = 872;
- break;
- case 1:
- done = 1;
- grammarID = 3;
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 872:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MagneticVector), END_ELEMENT] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gMagneticVectorListType->MagneticVector.arrayLen < v2gMagneticVectorListType_MagneticVector_ARRAY_SIZE) {
- errn = decode_v2gMagneticVectorType(stream, &v2gMagneticVectorListType->MagneticVector.array[v2gMagneticVectorListType->MagneticVector.arrayLen++]);
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- grammarID = 873;
- break;
- case 1:
- done = 1;
- grammarID = 3;
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 873:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MagneticVector), END_ELEMENT] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gMagneticVectorListType->MagneticVector.arrayLen < v2gMagneticVectorListType_MagneticVector_ARRAY_SIZE) {
- errn = decode_v2gMagneticVectorType(stream, &v2gMagneticVectorListType->MagneticVector.array[v2gMagneticVectorListType->MagneticVector.arrayLen++]);
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- grammarID = 874;
- break;
- case 1:
- done = 1;
- grammarID = 3;
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 874:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MagneticVector), END_ELEMENT] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gMagneticVectorListType->MagneticVector.arrayLen < v2gMagneticVectorListType_MagneticVector_ARRAY_SIZE) {
- errn = decode_v2gMagneticVectorType(stream, &v2gMagneticVectorListType->MagneticVector.array[v2gMagneticVectorListType->MagneticVector.arrayLen++]);
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- grammarID = 875;
- break;
- case 1:
- done = 1;
- grammarID = 3;
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 875:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MagneticVector), END_ELEMENT] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gMagneticVectorListType->MagneticVector.arrayLen < v2gMagneticVectorListType_MagneticVector_ARRAY_SIZE) {
- errn = decode_v2gMagneticVectorType(stream, &v2gMagneticVectorListType->MagneticVector.array[v2gMagneticVectorListType->MagneticVector.arrayLen++]);
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- grammarID = 876;
- break;
- case 1:
- done = 1;
- grammarID = 3;
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 876:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MagneticVector), END_ELEMENT] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gMagneticVectorListType->MagneticVector.arrayLen < v2gMagneticVectorListType_MagneticVector_ARRAY_SIZE) {
- errn = decode_v2gMagneticVectorType(stream, &v2gMagneticVectorListType->MagneticVector.array[v2gMagneticVectorListType->MagneticVector.arrayLen++]);
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- grammarID = 877;
- break;
- case 1:
- done = 1;
- grammarID = 3;
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 877:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MagneticVector), END_ELEMENT] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gMagneticVectorListType->MagneticVector.arrayLen < v2gMagneticVectorListType_MagneticVector_ARRAY_SIZE) {
- errn = decode_v2gMagneticVectorType(stream, &v2gMagneticVectorListType->MagneticVector.array[v2gMagneticVectorListType->MagneticVector.arrayLen++]);
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- grammarID = 878;
- break;
- case 1:
- done = 1;
- grammarID = 3;
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 878:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MagneticVector), END_ELEMENT] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gMagneticVectorListType->MagneticVector.arrayLen < v2gMagneticVectorListType_MagneticVector_ARRAY_SIZE) {
- errn = decode_v2gMagneticVectorType(stream, &v2gMagneticVectorListType->MagneticVector.array[v2gMagneticVectorListType->MagneticVector.arrayLen++]);
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- grammarID = 879;
- break;
- case 1:
- done = 1;
- grammarID = 3;
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 879:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MagneticVector), END_ELEMENT] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gMagneticVectorListType->MagneticVector.arrayLen < v2gMagneticVectorListType_MagneticVector_ARRAY_SIZE) {
- errn = decode_v2gMagneticVectorType(stream, &v2gMagneticVectorListType->MagneticVector.array[v2gMagneticVectorListType->MagneticVector.arrayLen++]);
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- grammarID = 880;
- break;
- case 1:
- done = 1;
- grammarID = 3;
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 880:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MagneticVector), END_ELEMENT] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gMagneticVectorListType->MagneticVector.arrayLen < v2gMagneticVectorListType_MagneticVector_ARRAY_SIZE) {
- errn = decode_v2gMagneticVectorType(stream, &v2gMagneticVectorListType->MagneticVector.array[v2gMagneticVectorListType->MagneticVector.arrayLen++]);
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- grammarID = 881;
- break;
- case 1:
- done = 1;
- grammarID = 3;
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 881:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MagneticVector), END_ELEMENT] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gMagneticVectorListType->MagneticVector.arrayLen < v2gMagneticVectorListType_MagneticVector_ARRAY_SIZE) {
- errn = decode_v2gMagneticVectorType(stream, &v2gMagneticVectorListType->MagneticVector.array[v2gMagneticVectorListType->MagneticVector.arrayLen++]);
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- grammarID = 882;
- break;
- case 1:
- done = 1;
- grammarID = 3;
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 882:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MagneticVector), END_ELEMENT] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gMagneticVectorListType->MagneticVector.arrayLen < v2gMagneticVectorListType_MagneticVector_ARRAY_SIZE) {
- errn = decode_v2gMagneticVectorType(stream, &v2gMagneticVectorListType->MagneticVector.array[v2gMagneticVectorListType->MagneticVector.arrayLen++]);
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- grammarID = 883;
- break;
- case 1:
- done = 1;
- grammarID = 3;
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 883:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MagneticVector), END_ELEMENT] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gMagneticVectorListType->MagneticVector.arrayLen < v2gMagneticVectorListType_MagneticVector_ARRAY_SIZE) {
- errn = decode_v2gMagneticVectorType(stream, &v2gMagneticVectorListType->MagneticVector.array[v2gMagneticVectorListType->MagneticVector.arrayLen++]);
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- grammarID = 884;
- break;
- case 1:
- done = 1;
- grammarID = 3;
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 884:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MagneticVector), END_ELEMENT] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gMagneticVectorListType->MagneticVector.arrayLen < v2gMagneticVectorListType_MagneticVector_ARRAY_SIZE) {
- errn = decode_v2gMagneticVectorType(stream, &v2gMagneticVectorListType->MagneticVector.array[v2gMagneticVectorListType->MagneticVector.arrayLen++]);
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- grammarID = 885;
- break;
- case 1:
- done = 1;
- grammarID = 3;
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 885:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MagneticVector), END_ELEMENT] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gMagneticVectorListType->MagneticVector.arrayLen < v2gMagneticVectorListType_MagneticVector_ARRAY_SIZE) {
- errn = decode_v2gMagneticVectorType(stream, &v2gMagneticVectorListType->MagneticVector.array[v2gMagneticVectorListType->MagneticVector.arrayLen++]);
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- grammarID = 2;
- 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:2016:MsgBody,AlignmentCheckReqType', base type name='BodyBaseType', content type='ELEMENT', isAbstract='false', hasTypeId='false', final='0', block='0', particle='("urn:iso:15118:2:2016:MsgBody":EVProcessing,"urn:iso:15118:2:2016:MsgBody":AlignmentCheckParameters{0-1})', derivedBy='EXTENSION'. */
-static int decode_v2gAlignmentCheckReqType(bitstream_t* stream, struct v2gAlignmentCheckReqType* v2gAlignmentCheckReqType) {
- int grammarID = 886;
- int done = 0;
-
- init_v2gAlignmentCheckReqType(v2gAlignmentCheckReqType);
-
- while(!done) {
- switch(grammarID) {
- case 886:
- /* FirstStartTag[START_ELEMENT({urn:iso:15118:2:2016:MsgBody}EVProcessing)] */
- 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);
- v2gAlignmentCheckReqType->EVProcessing = (v2gEVSEProcessingType) 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({urn:iso:15118:2:2016:MsgBody}EVProcessing) ? */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(eventCode == 0) {
- grammarID = 8;
- } else {
- errn = EXI_DEVIANT_SUPPORT_NOT_DEPLOYED; /* or also typecast and nillable */
- }
- }
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 8:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgBody}AlignmentCheckParameters), END_ELEMENT] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- errn = decode_v2gParameterSetType(stream, &v2gAlignmentCheckReqType->AlignmentCheckParameters);
- v2gAlignmentCheckReqType->AlignmentCheckParameters_isUsed = 1u;
- grammarID = 2;
- 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:2016:MsgBody,EVSEErrorInformationType', base type name='BodyBaseType', content type='ELEMENT', isAbstract='false', hasTypeId='false', final='0', block='0', particle='("urn:iso:15118:2:2016:MsgBody":ErrorCode)', derivedBy='EXTENSION'. */
-static int decode_v2gEVSEErrorInformationType(bitstream_t* stream, struct v2gEVSEErrorInformationType* v2gEVSEErrorInformationType) {
- int grammarID = 887;
- int done = 0;
-
- init_v2gEVSEErrorInformationType(v2gEVSEErrorInformationType);
-
- while(!done) {
- switch(grammarID) {
- case 887:
- /* FirstStartTag[START_ELEMENT({urn:iso:15118:2:2016:MsgBody}ErrorCode)] */
- 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, 3, &uint32);
- v2gEVSEErrorInformationType->ErrorCode = (v2gEVSEErrorCodeType) 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({urn:iso:15118:2:2016:MsgBody}ErrorCode) ? */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(eventCode == 0) {
- grammarID = 2;
- } else {
- errn = EXI_DEVIANT_SUPPORT_NOT_DEPLOYED; /* or also typecast and nillable */
- }
- }
- 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:2016:MsgDataTypes,WPT_EVSEChargeParameterType', base type name='EVSEEnergyTransferParameterType', content type='ELEMENT', isAbstract='false', hasTypeId='false', final='0', block='0', particle='("urn:iso:15118:2:2016:MsgDataTypes":EVSEMaximumPower,"urn:iso:15118:2:2016:MsgDataTypes":EVSEMinimumPower)', derivedBy='EXTENSION'. */
-static int decode_v2gWPT_EVSEChargeParameterType(bitstream_t* stream, struct v2gWPT_EVSEChargeParameterType* v2gWPT_EVSEChargeParameterType) {
- int grammarID = 888;
- int done = 0;
-
- init_v2gWPT_EVSEChargeParameterType(v2gWPT_EVSEChargeParameterType);
-
- while(!done) {
- switch(grammarID) {
- case 888:
- /* FirstStartTag[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}EVSEMaximumPower)] */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- errn = decode_v2gPhysicalValueType(stream, &v2gWPT_EVSEChargeParameterType->EVSEMaximumPower);
- grammarID = 889;
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 889:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}EVSEMinimumPower)] */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- errn = decode_v2gPhysicalValueType(stream, &v2gWPT_EVSEChargeParameterType->EVSEMinimumPower);
- grammarID = 2;
- 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:2016:MsgDataTypes,DisplayParametersType', base type name='anyType', content type='ELEMENT', isAbstract='false', hasTypeId='false', final='0', block='0', particle='("urn:iso:15118:2:2016:MsgDataTypes":CurrentRange{0-1},"urn:iso:15118:2:2016:MsgDataTypes":CurrentSOC{0-1},"urn:iso:15118:2:2016:MsgDataTypes":TargetSOC{0-1},"urn:iso:15118:2:2016:MsgDataTypes":BulkSOC{0-1},"urn:iso:15118:2:2016:MsgDataTypes":MinimumSOC{0-1},"urn:iso:15118:2:2016:MsgDataTypes":ChargingPerformance{0-1},"urn:iso:15118:2:2016:MsgDataTypes":RemainingTimeToTargetSOC{0-1},"urn:iso:15118:2:2016:MsgDataTypes":RemainingTimeToBulkSOC{0-1},"urn:iso:15118:2:2016:MsgDataTypes":RemainingTimeToMinimumSOC{0-1},"urn:iso:15118:2:2016:MsgDataTypes":ChargingComplete{0-1},"urn:iso:15118:2:2016:MsgDataTypes":BulkChargingComplete{0-1},"urn:iso:15118:2:2016:MsgDataTypes":InletHot{0-1})', derivedBy='RESTRICTION'. */
-static int decode_v2gDisplayParametersType(bitstream_t* stream, struct v2gDisplayParametersType* v2gDisplayParametersType) {
- int grammarID = 890;
- int done = 0;
-
- init_v2gDisplayParametersType(v2gDisplayParametersType);
-
- while(!done) {
- switch(grammarID) {
- case 890:
- /* FirstStartTag[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}CurrentRange), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}CurrentSOC), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}TargetSOC), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}BulkSOC), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MinimumSOC), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}ChargingPerformance), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}RemainingTimeToTargetSOC), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}RemainingTimeToBulkSOC), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}RemainingTimeToMinimumSOC), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}ChargingComplete), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}BulkChargingComplete), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}InletHot), END_ELEMENT] */
- errn = decodeNBitUnsignedInteger(stream, 4, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- /* First(xsi:type)StartTag[CHARACTERS[UNSIGNED_INTEGER]] */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(errn == 0) {
- if(eventCode == 0) {
- errn = decodeUnsignedInteger16(stream, &v2gDisplayParametersType->CurrentRange);
- v2gDisplayParametersType->CurrentRange_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({urn:iso:15118:2:2016:MsgDataTypes}CurrentRange) ? */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(eventCode == 0) {
- grammarID = 891;
- } else {
- errn = EXI_DEVIANT_SUPPORT_NOT_DEPLOYED; /* or also typecast and nillable */
- }
- }
- break;
- case 1:
- /* FirstStartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(errn == 0) {
- if(eventCode == 0) {
- errn = decodeNBitUnsignedInteger(stream, 7, &(uint32));
- v2gDisplayParametersType->CurrentSOC = (int8_t)(uint32 + 0);
- v2gDisplayParametersType->CurrentSOC_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({urn:iso:15118:2:2016:MsgDataTypes}CurrentSOC) ? */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(eventCode == 0) {
- grammarID = 892;
- } else {
- errn = EXI_DEVIANT_SUPPORT_NOT_DEPLOYED; /* or also typecast and nillable */
- }
- }
- break;
- case 2:
- /* FirstStartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(errn == 0) {
- if(eventCode == 0) {
- errn = decodeNBitUnsignedInteger(stream, 7, &(uint32));
- v2gDisplayParametersType->TargetSOC = (int8_t)(uint32 + 0);
- v2gDisplayParametersType->TargetSOC_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({urn:iso:15118:2:2016:MsgDataTypes}TargetSOC) ? */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(eventCode == 0) {
- grammarID = 893;
- } else {
- errn = EXI_DEVIANT_SUPPORT_NOT_DEPLOYED; /* or also typecast and nillable */
- }
- }
- break;
- case 3:
- /* FirstStartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(errn == 0) {
- if(eventCode == 0) {
- errn = decodeNBitUnsignedInteger(stream, 7, &(uint32));
- v2gDisplayParametersType->BulkSOC = (int8_t)(uint32 + 0);
- v2gDisplayParametersType->BulkSOC_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({urn:iso:15118:2:2016:MsgDataTypes}BulkSOC) ? */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(eventCode == 0) {
- grammarID = 894;
- } else {
- errn = EXI_DEVIANT_SUPPORT_NOT_DEPLOYED; /* or also typecast and nillable */
- }
- }
- break;
- case 4:
- /* FirstStartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(errn == 0) {
- if(eventCode == 0) {
- errn = decodeNBitUnsignedInteger(stream, 7, &(uint32));
- v2gDisplayParametersType->MinimumSOC = (int8_t)(uint32 + 0);
- v2gDisplayParametersType->MinimumSOC_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({urn:iso:15118:2:2016:MsgDataTypes}MinimumSOC) ? */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(eventCode == 0) {
- grammarID = 895;
- } else {
- errn = EXI_DEVIANT_SUPPORT_NOT_DEPLOYED; /* or also typecast and nillable */
- }
- }
- break;
- case 5:
- errn = decode_v2gPhysicalValueType(stream, &v2gDisplayParametersType->ChargingPerformance);
- v2gDisplayParametersType->ChargingPerformance_isUsed = 1u;
- grammarID = 896;
- break;
- case 6:
- /* FirstStartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(errn == 0) {
- if(eventCode == 0) {
- errn = decodeNBitUnsignedInteger(stream, 7, &(uint32));
- v2gDisplayParametersType->RemainingTimeToTargetSOC = (int8_t)(uint32 + 0);
- v2gDisplayParametersType->RemainingTimeToTargetSOC_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({urn:iso:15118:2:2016:MsgDataTypes}RemainingTimeToTargetSOC) ? */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(eventCode == 0) {
- grammarID = 897;
- } else {
- errn = EXI_DEVIANT_SUPPORT_NOT_DEPLOYED; /* or also typecast and nillable */
- }
- }
- break;
- case 7:
- /* FirstStartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(errn == 0) {
- if(eventCode == 0) {
- errn = decodeNBitUnsignedInteger(stream, 7, &(uint32));
- v2gDisplayParametersType->RemainingTimeToBulkSOC = (int8_t)(uint32 + 0);
- v2gDisplayParametersType->RemainingTimeToBulkSOC_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({urn:iso:15118:2:2016:MsgDataTypes}RemainingTimeToBulkSOC) ? */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(eventCode == 0) {
- grammarID = 898;
- } else {
- errn = EXI_DEVIANT_SUPPORT_NOT_DEPLOYED; /* or also typecast and nillable */
- }
- }
- break;
- case 8:
- /* FirstStartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(errn == 0) {
- if(eventCode == 0) {
- errn = decodeNBitUnsignedInteger(stream, 7, &(uint32));
- v2gDisplayParametersType->RemainingTimeToMinimumSOC = (int8_t)(uint32 + 0);
- v2gDisplayParametersType->RemainingTimeToMinimumSOC_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({urn:iso:15118:2:2016:MsgDataTypes}RemainingTimeToMinimumSOC) ? */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(eventCode == 0) {
- grammarID = 899;
- } else {
- errn = EXI_DEVIANT_SUPPORT_NOT_DEPLOYED; /* or also typecast and nillable */
- }
- }
- break;
- case 9:
- /* FirstStartTag[CHARACTERS[BOOLEAN]] */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(errn == 0) {
- if(eventCode == 0) {
- errn = decodeBoolean(stream, &v2gDisplayParametersType->ChargingComplete);
- v2gDisplayParametersType->ChargingComplete_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({urn:iso:15118:2:2016:MsgDataTypes}ChargingComplete) ? */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(eventCode == 0) {
- grammarID = 900;
- } else {
- errn = EXI_DEVIANT_SUPPORT_NOT_DEPLOYED; /* or also typecast and nillable */
- }
- }
- break;
- case 10:
- /* FirstStartTag[CHARACTERS[BOOLEAN]] */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(errn == 0) {
- if(eventCode == 0) {
- errn = decodeBoolean(stream, &v2gDisplayParametersType->BulkChargingComplete);
- v2gDisplayParametersType->BulkChargingComplete_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({urn:iso:15118:2:2016:MsgDataTypes}BulkChargingComplete) ? */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(eventCode == 0) {
- grammarID = 901;
- } else {
- errn = EXI_DEVIANT_SUPPORT_NOT_DEPLOYED; /* or also typecast and nillable */
- }
- }
- break;
- case 11:
- /* FirstStartTag[CHARACTERS[BOOLEAN]] */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(errn == 0) {
- if(eventCode == 0) {
- errn = decodeBoolean(stream, &v2gDisplayParametersType->InletHot);
- v2gDisplayParametersType->InletHot_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({urn:iso:15118:2:2016:MsgDataTypes}InletHot) ? */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(eventCode == 0) {
- grammarID = 2;
- } else {
- errn = EXI_DEVIANT_SUPPORT_NOT_DEPLOYED; /* or also typecast and nillable */
- }
- }
- break;
- case 12:
- done = 1;
- grammarID = 3;
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 891:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}CurrentSOC), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}TargetSOC), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}BulkSOC), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MinimumSOC), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}ChargingPerformance), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}RemainingTimeToTargetSOC), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}RemainingTimeToBulkSOC), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}RemainingTimeToMinimumSOC), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}ChargingComplete), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}BulkChargingComplete), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}InletHot), END_ELEMENT] */
- errn = decodeNBitUnsignedInteger(stream, 4, &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, 7, &(uint32));
- v2gDisplayParametersType->CurrentSOC = (int8_t)(uint32 + 0);
- v2gDisplayParametersType->CurrentSOC_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({urn:iso:15118:2:2016:MsgDataTypes}CurrentSOC) ? */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(eventCode == 0) {
- grammarID = 892;
- } else {
- errn = EXI_DEVIANT_SUPPORT_NOT_DEPLOYED; /* or also typecast and nillable */
- }
- }
- break;
- case 1:
- /* FirstStartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(errn == 0) {
- if(eventCode == 0) {
- errn = decodeNBitUnsignedInteger(stream, 7, &(uint32));
- v2gDisplayParametersType->TargetSOC = (int8_t)(uint32 + 0);
- v2gDisplayParametersType->TargetSOC_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({urn:iso:15118:2:2016:MsgDataTypes}TargetSOC) ? */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(eventCode == 0) {
- grammarID = 893;
- } else {
- errn = EXI_DEVIANT_SUPPORT_NOT_DEPLOYED; /* or also typecast and nillable */
- }
- }
- break;
- case 2:
- /* FirstStartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(errn == 0) {
- if(eventCode == 0) {
- errn = decodeNBitUnsignedInteger(stream, 7, &(uint32));
- v2gDisplayParametersType->BulkSOC = (int8_t)(uint32 + 0);
- v2gDisplayParametersType->BulkSOC_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({urn:iso:15118:2:2016:MsgDataTypes}BulkSOC) ? */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(eventCode == 0) {
- grammarID = 894;
- } else {
- errn = EXI_DEVIANT_SUPPORT_NOT_DEPLOYED; /* or also typecast and nillable */
- }
- }
- break;
- case 3:
- /* FirstStartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(errn == 0) {
- if(eventCode == 0) {
- errn = decodeNBitUnsignedInteger(stream, 7, &(uint32));
- v2gDisplayParametersType->MinimumSOC = (int8_t)(uint32 + 0);
- v2gDisplayParametersType->MinimumSOC_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({urn:iso:15118:2:2016:MsgDataTypes}MinimumSOC) ? */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(eventCode == 0) {
- grammarID = 895;
- } else {
- errn = EXI_DEVIANT_SUPPORT_NOT_DEPLOYED; /* or also typecast and nillable */
- }
- }
- break;
- case 4:
- errn = decode_v2gPhysicalValueType(stream, &v2gDisplayParametersType->ChargingPerformance);
- v2gDisplayParametersType->ChargingPerformance_isUsed = 1u;
- grammarID = 896;
- break;
- case 5:
- /* FirstStartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(errn == 0) {
- if(eventCode == 0) {
- errn = decodeNBitUnsignedInteger(stream, 7, &(uint32));
- v2gDisplayParametersType->RemainingTimeToTargetSOC = (int8_t)(uint32 + 0);
- v2gDisplayParametersType->RemainingTimeToTargetSOC_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({urn:iso:15118:2:2016:MsgDataTypes}RemainingTimeToTargetSOC) ? */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(eventCode == 0) {
- grammarID = 897;
- } else {
- errn = EXI_DEVIANT_SUPPORT_NOT_DEPLOYED; /* or also typecast and nillable */
- }
- }
- break;
- case 6:
- /* FirstStartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(errn == 0) {
- if(eventCode == 0) {
- errn = decodeNBitUnsignedInteger(stream, 7, &(uint32));
- v2gDisplayParametersType->RemainingTimeToBulkSOC = (int8_t)(uint32 + 0);
- v2gDisplayParametersType->RemainingTimeToBulkSOC_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({urn:iso:15118:2:2016:MsgDataTypes}RemainingTimeToBulkSOC) ? */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(eventCode == 0) {
- grammarID = 898;
- } else {
- errn = EXI_DEVIANT_SUPPORT_NOT_DEPLOYED; /* or also typecast and nillable */
- }
- }
- break;
- case 7:
- /* FirstStartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(errn == 0) {
- if(eventCode == 0) {
- errn = decodeNBitUnsignedInteger(stream, 7, &(uint32));
- v2gDisplayParametersType->RemainingTimeToMinimumSOC = (int8_t)(uint32 + 0);
- v2gDisplayParametersType->RemainingTimeToMinimumSOC_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({urn:iso:15118:2:2016:MsgDataTypes}RemainingTimeToMinimumSOC) ? */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(eventCode == 0) {
- grammarID = 899;
- } else {
- errn = EXI_DEVIANT_SUPPORT_NOT_DEPLOYED; /* or also typecast and nillable */
- }
- }
- break;
- case 8:
- /* FirstStartTag[CHARACTERS[BOOLEAN]] */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(errn == 0) {
- if(eventCode == 0) {
- errn = decodeBoolean(stream, &v2gDisplayParametersType->ChargingComplete);
- v2gDisplayParametersType->ChargingComplete_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({urn:iso:15118:2:2016:MsgDataTypes}ChargingComplete) ? */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(eventCode == 0) {
- grammarID = 900;
- } else {
- errn = EXI_DEVIANT_SUPPORT_NOT_DEPLOYED; /* or also typecast and nillable */
- }
- }
- break;
- case 9:
- /* FirstStartTag[CHARACTERS[BOOLEAN]] */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(errn == 0) {
- if(eventCode == 0) {
- errn = decodeBoolean(stream, &v2gDisplayParametersType->BulkChargingComplete);
- v2gDisplayParametersType->BulkChargingComplete_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({urn:iso:15118:2:2016:MsgDataTypes}BulkChargingComplete) ? */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(eventCode == 0) {
- grammarID = 901;
- } else {
- errn = EXI_DEVIANT_SUPPORT_NOT_DEPLOYED; /* or also typecast and nillable */
- }
- }
- break;
- case 10:
- /* FirstStartTag[CHARACTERS[BOOLEAN]] */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(errn == 0) {
- if(eventCode == 0) {
- errn = decodeBoolean(stream, &v2gDisplayParametersType->InletHot);
- v2gDisplayParametersType->InletHot_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({urn:iso:15118:2:2016:MsgDataTypes}InletHot) ? */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(eventCode == 0) {
- grammarID = 2;
- } else {
- errn = EXI_DEVIANT_SUPPORT_NOT_DEPLOYED; /* or also typecast and nillable */
- }
- }
- break;
- case 11:
- done = 1;
- grammarID = 3;
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 892:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}TargetSOC), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}BulkSOC), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MinimumSOC), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}ChargingPerformance), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}RemainingTimeToTargetSOC), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}RemainingTimeToBulkSOC), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}RemainingTimeToMinimumSOC), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}ChargingComplete), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}BulkChargingComplete), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}InletHot), END_ELEMENT] */
- errn = decodeNBitUnsignedInteger(stream, 4, &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, 7, &(uint32));
- v2gDisplayParametersType->TargetSOC = (int8_t)(uint32 + 0);
- v2gDisplayParametersType->TargetSOC_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({urn:iso:15118:2:2016:MsgDataTypes}TargetSOC) ? */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(eventCode == 0) {
- grammarID = 893;
- } else {
- errn = EXI_DEVIANT_SUPPORT_NOT_DEPLOYED; /* or also typecast and nillable */
- }
- }
- break;
- case 1:
- /* FirstStartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(errn == 0) {
- if(eventCode == 0) {
- errn = decodeNBitUnsignedInteger(stream, 7, &(uint32));
- v2gDisplayParametersType->BulkSOC = (int8_t)(uint32 + 0);
- v2gDisplayParametersType->BulkSOC_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({urn:iso:15118:2:2016:MsgDataTypes}BulkSOC) ? */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(eventCode == 0) {
- grammarID = 894;
- } else {
- errn = EXI_DEVIANT_SUPPORT_NOT_DEPLOYED; /* or also typecast and nillable */
- }
- }
- break;
- case 2:
- /* FirstStartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(errn == 0) {
- if(eventCode == 0) {
- errn = decodeNBitUnsignedInteger(stream, 7, &(uint32));
- v2gDisplayParametersType->MinimumSOC = (int8_t)(uint32 + 0);
- v2gDisplayParametersType->MinimumSOC_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({urn:iso:15118:2:2016:MsgDataTypes}MinimumSOC) ? */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(eventCode == 0) {
- grammarID = 895;
- } else {
- errn = EXI_DEVIANT_SUPPORT_NOT_DEPLOYED; /* or also typecast and nillable */
- }
- }
- break;
- case 3:
- errn = decode_v2gPhysicalValueType(stream, &v2gDisplayParametersType->ChargingPerformance);
- v2gDisplayParametersType->ChargingPerformance_isUsed = 1u;
- grammarID = 896;
- break;
- case 4:
- /* FirstStartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(errn == 0) {
- if(eventCode == 0) {
- errn = decodeNBitUnsignedInteger(stream, 7, &(uint32));
- v2gDisplayParametersType->RemainingTimeToTargetSOC = (int8_t)(uint32 + 0);
- v2gDisplayParametersType->RemainingTimeToTargetSOC_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({urn:iso:15118:2:2016:MsgDataTypes}RemainingTimeToTargetSOC) ? */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(eventCode == 0) {
- grammarID = 897;
- } else {
- errn = EXI_DEVIANT_SUPPORT_NOT_DEPLOYED; /* or also typecast and nillable */
- }
- }
- break;
- case 5:
- /* FirstStartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(errn == 0) {
- if(eventCode == 0) {
- errn = decodeNBitUnsignedInteger(stream, 7, &(uint32));
- v2gDisplayParametersType->RemainingTimeToBulkSOC = (int8_t)(uint32 + 0);
- v2gDisplayParametersType->RemainingTimeToBulkSOC_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({urn:iso:15118:2:2016:MsgDataTypes}RemainingTimeToBulkSOC) ? */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(eventCode == 0) {
- grammarID = 898;
- } else {
- errn = EXI_DEVIANT_SUPPORT_NOT_DEPLOYED; /* or also typecast and nillable */
- }
- }
- break;
- case 6:
- /* FirstStartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(errn == 0) {
- if(eventCode == 0) {
- errn = decodeNBitUnsignedInteger(stream, 7, &(uint32));
- v2gDisplayParametersType->RemainingTimeToMinimumSOC = (int8_t)(uint32 + 0);
- v2gDisplayParametersType->RemainingTimeToMinimumSOC_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({urn:iso:15118:2:2016:MsgDataTypes}RemainingTimeToMinimumSOC) ? */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(eventCode == 0) {
- grammarID = 899;
- } else {
- errn = EXI_DEVIANT_SUPPORT_NOT_DEPLOYED; /* or also typecast and nillable */
- }
- }
- break;
- case 7:
- /* FirstStartTag[CHARACTERS[BOOLEAN]] */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(errn == 0) {
- if(eventCode == 0) {
- errn = decodeBoolean(stream, &v2gDisplayParametersType->ChargingComplete);
- v2gDisplayParametersType->ChargingComplete_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({urn:iso:15118:2:2016:MsgDataTypes}ChargingComplete) ? */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(eventCode == 0) {
- grammarID = 900;
- } else {
- errn = EXI_DEVIANT_SUPPORT_NOT_DEPLOYED; /* or also typecast and nillable */
- }
- }
- break;
- case 8:
- /* FirstStartTag[CHARACTERS[BOOLEAN]] */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(errn == 0) {
- if(eventCode == 0) {
- errn = decodeBoolean(stream, &v2gDisplayParametersType->BulkChargingComplete);
- v2gDisplayParametersType->BulkChargingComplete_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({urn:iso:15118:2:2016:MsgDataTypes}BulkChargingComplete) ? */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(eventCode == 0) {
- grammarID = 901;
- } else {
- errn = EXI_DEVIANT_SUPPORT_NOT_DEPLOYED; /* or also typecast and nillable */
- }
- }
- break;
- case 9:
- /* FirstStartTag[CHARACTERS[BOOLEAN]] */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(errn == 0) {
- if(eventCode == 0) {
- errn = decodeBoolean(stream, &v2gDisplayParametersType->InletHot);
- v2gDisplayParametersType->InletHot_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({urn:iso:15118:2:2016:MsgDataTypes}InletHot) ? */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(eventCode == 0) {
- grammarID = 2;
- } else {
- errn = EXI_DEVIANT_SUPPORT_NOT_DEPLOYED; /* or also typecast and nillable */
- }
- }
- break;
- case 10:
- done = 1;
- grammarID = 3;
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 893:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}BulkSOC), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MinimumSOC), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}ChargingPerformance), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}RemainingTimeToTargetSOC), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}RemainingTimeToBulkSOC), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}RemainingTimeToMinimumSOC), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}ChargingComplete), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}BulkChargingComplete), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}InletHot), END_ELEMENT] */
- errn = decodeNBitUnsignedInteger(stream, 4, &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, 7, &(uint32));
- v2gDisplayParametersType->BulkSOC = (int8_t)(uint32 + 0);
- v2gDisplayParametersType->BulkSOC_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({urn:iso:15118:2:2016:MsgDataTypes}BulkSOC) ? */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(eventCode == 0) {
- grammarID = 894;
- } else {
- errn = EXI_DEVIANT_SUPPORT_NOT_DEPLOYED; /* or also typecast and nillable */
- }
- }
- break;
- case 1:
- /* FirstStartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(errn == 0) {
- if(eventCode == 0) {
- errn = decodeNBitUnsignedInteger(stream, 7, &(uint32));
- v2gDisplayParametersType->MinimumSOC = (int8_t)(uint32 + 0);
- v2gDisplayParametersType->MinimumSOC_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({urn:iso:15118:2:2016:MsgDataTypes}MinimumSOC) ? */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(eventCode == 0) {
- grammarID = 895;
- } else {
- errn = EXI_DEVIANT_SUPPORT_NOT_DEPLOYED; /* or also typecast and nillable */
- }
- }
- break;
- case 2:
- errn = decode_v2gPhysicalValueType(stream, &v2gDisplayParametersType->ChargingPerformance);
- v2gDisplayParametersType->ChargingPerformance_isUsed = 1u;
- grammarID = 896;
- break;
- case 3:
- /* FirstStartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(errn == 0) {
- if(eventCode == 0) {
- errn = decodeNBitUnsignedInteger(stream, 7, &(uint32));
- v2gDisplayParametersType->RemainingTimeToTargetSOC = (int8_t)(uint32 + 0);
- v2gDisplayParametersType->RemainingTimeToTargetSOC_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({urn:iso:15118:2:2016:MsgDataTypes}RemainingTimeToTargetSOC) ? */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(eventCode == 0) {
- grammarID = 897;
- } else {
- errn = EXI_DEVIANT_SUPPORT_NOT_DEPLOYED; /* or also typecast and nillable */
- }
- }
- break;
- case 4:
- /* FirstStartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(errn == 0) {
- if(eventCode == 0) {
- errn = decodeNBitUnsignedInteger(stream, 7, &(uint32));
- v2gDisplayParametersType->RemainingTimeToBulkSOC = (int8_t)(uint32 + 0);
- v2gDisplayParametersType->RemainingTimeToBulkSOC_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({urn:iso:15118:2:2016:MsgDataTypes}RemainingTimeToBulkSOC) ? */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(eventCode == 0) {
- grammarID = 898;
- } else {
- errn = EXI_DEVIANT_SUPPORT_NOT_DEPLOYED; /* or also typecast and nillable */
- }
- }
- break;
- case 5:
- /* FirstStartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(errn == 0) {
- if(eventCode == 0) {
- errn = decodeNBitUnsignedInteger(stream, 7, &(uint32));
- v2gDisplayParametersType->RemainingTimeToMinimumSOC = (int8_t)(uint32 + 0);
- v2gDisplayParametersType->RemainingTimeToMinimumSOC_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({urn:iso:15118:2:2016:MsgDataTypes}RemainingTimeToMinimumSOC) ? */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(eventCode == 0) {
- grammarID = 899;
- } else {
- errn = EXI_DEVIANT_SUPPORT_NOT_DEPLOYED; /* or also typecast and nillable */
- }
- }
- break;
- case 6:
- /* FirstStartTag[CHARACTERS[BOOLEAN]] */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(errn == 0) {
- if(eventCode == 0) {
- errn = decodeBoolean(stream, &v2gDisplayParametersType->ChargingComplete);
- v2gDisplayParametersType->ChargingComplete_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({urn:iso:15118:2:2016:MsgDataTypes}ChargingComplete) ? */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(eventCode == 0) {
- grammarID = 900;
- } else {
- errn = EXI_DEVIANT_SUPPORT_NOT_DEPLOYED; /* or also typecast and nillable */
- }
- }
- break;
- case 7:
- /* FirstStartTag[CHARACTERS[BOOLEAN]] */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(errn == 0) {
- if(eventCode == 0) {
- errn = decodeBoolean(stream, &v2gDisplayParametersType->BulkChargingComplete);
- v2gDisplayParametersType->BulkChargingComplete_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({urn:iso:15118:2:2016:MsgDataTypes}BulkChargingComplete) ? */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(eventCode == 0) {
- grammarID = 901;
- } else {
- errn = EXI_DEVIANT_SUPPORT_NOT_DEPLOYED; /* or also typecast and nillable */
- }
- }
- break;
- case 8:
- /* FirstStartTag[CHARACTERS[BOOLEAN]] */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(errn == 0) {
- if(eventCode == 0) {
- errn = decodeBoolean(stream, &v2gDisplayParametersType->InletHot);
- v2gDisplayParametersType->InletHot_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({urn:iso:15118:2:2016:MsgDataTypes}InletHot) ? */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(eventCode == 0) {
- grammarID = 2;
- } else {
- errn = EXI_DEVIANT_SUPPORT_NOT_DEPLOYED; /* or also typecast and nillable */
- }
- }
- break;
- case 9:
- done = 1;
- grammarID = 3;
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 894:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MinimumSOC), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}ChargingPerformance), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}RemainingTimeToTargetSOC), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}RemainingTimeToBulkSOC), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}RemainingTimeToMinimumSOC), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}ChargingComplete), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}BulkChargingComplete), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}InletHot), END_ELEMENT] */
- errn = decodeNBitUnsignedInteger(stream, 4, &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, 7, &(uint32));
- v2gDisplayParametersType->MinimumSOC = (int8_t)(uint32 + 0);
- v2gDisplayParametersType->MinimumSOC_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({urn:iso:15118:2:2016:MsgDataTypes}MinimumSOC) ? */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(eventCode == 0) {
- grammarID = 895;
- } else {
- errn = EXI_DEVIANT_SUPPORT_NOT_DEPLOYED; /* or also typecast and nillable */
- }
- }
- break;
- case 1:
- errn = decode_v2gPhysicalValueType(stream, &v2gDisplayParametersType->ChargingPerformance);
- v2gDisplayParametersType->ChargingPerformance_isUsed = 1u;
- grammarID = 896;
- break;
- case 2:
- /* FirstStartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(errn == 0) {
- if(eventCode == 0) {
- errn = decodeNBitUnsignedInteger(stream, 7, &(uint32));
- v2gDisplayParametersType->RemainingTimeToTargetSOC = (int8_t)(uint32 + 0);
- v2gDisplayParametersType->RemainingTimeToTargetSOC_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({urn:iso:15118:2:2016:MsgDataTypes}RemainingTimeToTargetSOC) ? */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(eventCode == 0) {
- grammarID = 897;
- } else {
- errn = EXI_DEVIANT_SUPPORT_NOT_DEPLOYED; /* or also typecast and nillable */
- }
- }
- break;
- case 3:
- /* FirstStartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(errn == 0) {
- if(eventCode == 0) {
- errn = decodeNBitUnsignedInteger(stream, 7, &(uint32));
- v2gDisplayParametersType->RemainingTimeToBulkSOC = (int8_t)(uint32 + 0);
- v2gDisplayParametersType->RemainingTimeToBulkSOC_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({urn:iso:15118:2:2016:MsgDataTypes}RemainingTimeToBulkSOC) ? */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(eventCode == 0) {
- grammarID = 898;
- } else {
- errn = EXI_DEVIANT_SUPPORT_NOT_DEPLOYED; /* or also typecast and nillable */
- }
- }
- break;
- case 4:
- /* FirstStartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(errn == 0) {
- if(eventCode == 0) {
- errn = decodeNBitUnsignedInteger(stream, 7, &(uint32));
- v2gDisplayParametersType->RemainingTimeToMinimumSOC = (int8_t)(uint32 + 0);
- v2gDisplayParametersType->RemainingTimeToMinimumSOC_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({urn:iso:15118:2:2016:MsgDataTypes}RemainingTimeToMinimumSOC) ? */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(eventCode == 0) {
- grammarID = 899;
- } else {
- errn = EXI_DEVIANT_SUPPORT_NOT_DEPLOYED; /* or also typecast and nillable */
- }
- }
- break;
- case 5:
- /* FirstStartTag[CHARACTERS[BOOLEAN]] */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(errn == 0) {
- if(eventCode == 0) {
- errn = decodeBoolean(stream, &v2gDisplayParametersType->ChargingComplete);
- v2gDisplayParametersType->ChargingComplete_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({urn:iso:15118:2:2016:MsgDataTypes}ChargingComplete) ? */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(eventCode == 0) {
- grammarID = 900;
- } else {
- errn = EXI_DEVIANT_SUPPORT_NOT_DEPLOYED; /* or also typecast and nillable */
- }
- }
- break;
- case 6:
- /* FirstStartTag[CHARACTERS[BOOLEAN]] */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(errn == 0) {
- if(eventCode == 0) {
- errn = decodeBoolean(stream, &v2gDisplayParametersType->BulkChargingComplete);
- v2gDisplayParametersType->BulkChargingComplete_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({urn:iso:15118:2:2016:MsgDataTypes}BulkChargingComplete) ? */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(eventCode == 0) {
- grammarID = 901;
- } else {
- errn = EXI_DEVIANT_SUPPORT_NOT_DEPLOYED; /* or also typecast and nillable */
- }
- }
- break;
- case 7:
- /* FirstStartTag[CHARACTERS[BOOLEAN]] */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(errn == 0) {
- if(eventCode == 0) {
- errn = decodeBoolean(stream, &v2gDisplayParametersType->InletHot);
- v2gDisplayParametersType->InletHot_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({urn:iso:15118:2:2016:MsgDataTypes}InletHot) ? */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(eventCode == 0) {
- grammarID = 2;
- } else {
- errn = EXI_DEVIANT_SUPPORT_NOT_DEPLOYED; /* or also typecast and nillable */
- }
- }
- break;
- case 8:
- done = 1;
- grammarID = 3;
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 895:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}ChargingPerformance), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}RemainingTimeToTargetSOC), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}RemainingTimeToBulkSOC), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}RemainingTimeToMinimumSOC), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}ChargingComplete), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}BulkChargingComplete), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}InletHot), END_ELEMENT] */
- errn = decodeNBitUnsignedInteger(stream, 4, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- errn = decode_v2gPhysicalValueType(stream, &v2gDisplayParametersType->ChargingPerformance);
- v2gDisplayParametersType->ChargingPerformance_isUsed = 1u;
- grammarID = 896;
- break;
- case 1:
- /* FirstStartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(errn == 0) {
- if(eventCode == 0) {
- errn = decodeNBitUnsignedInteger(stream, 7, &(uint32));
- v2gDisplayParametersType->RemainingTimeToTargetSOC = (int8_t)(uint32 + 0);
- v2gDisplayParametersType->RemainingTimeToTargetSOC_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({urn:iso:15118:2:2016:MsgDataTypes}RemainingTimeToTargetSOC) ? */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(eventCode == 0) {
- grammarID = 897;
- } else {
- errn = EXI_DEVIANT_SUPPORT_NOT_DEPLOYED; /* or also typecast and nillable */
- }
- }
- break;
- case 2:
- /* FirstStartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(errn == 0) {
- if(eventCode == 0) {
- errn = decodeNBitUnsignedInteger(stream, 7, &(uint32));
- v2gDisplayParametersType->RemainingTimeToBulkSOC = (int8_t)(uint32 + 0);
- v2gDisplayParametersType->RemainingTimeToBulkSOC_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({urn:iso:15118:2:2016:MsgDataTypes}RemainingTimeToBulkSOC) ? */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(eventCode == 0) {
- grammarID = 898;
- } else {
- errn = EXI_DEVIANT_SUPPORT_NOT_DEPLOYED; /* or also typecast and nillable */
- }
- }
- break;
- case 3:
- /* FirstStartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(errn == 0) {
- if(eventCode == 0) {
- errn = decodeNBitUnsignedInteger(stream, 7, &(uint32));
- v2gDisplayParametersType->RemainingTimeToMinimumSOC = (int8_t)(uint32 + 0);
- v2gDisplayParametersType->RemainingTimeToMinimumSOC_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({urn:iso:15118:2:2016:MsgDataTypes}RemainingTimeToMinimumSOC) ? */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(eventCode == 0) {
- grammarID = 899;
- } else {
- errn = EXI_DEVIANT_SUPPORT_NOT_DEPLOYED; /* or also typecast and nillable */
- }
- }
- break;
- case 4:
- /* FirstStartTag[CHARACTERS[BOOLEAN]] */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(errn == 0) {
- if(eventCode == 0) {
- errn = decodeBoolean(stream, &v2gDisplayParametersType->ChargingComplete);
- v2gDisplayParametersType->ChargingComplete_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({urn:iso:15118:2:2016:MsgDataTypes}ChargingComplete) ? */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(eventCode == 0) {
- grammarID = 900;
- } else {
- errn = EXI_DEVIANT_SUPPORT_NOT_DEPLOYED; /* or also typecast and nillable */
- }
- }
- break;
- case 5:
- /* FirstStartTag[CHARACTERS[BOOLEAN]] */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(errn == 0) {
- if(eventCode == 0) {
- errn = decodeBoolean(stream, &v2gDisplayParametersType->BulkChargingComplete);
- v2gDisplayParametersType->BulkChargingComplete_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({urn:iso:15118:2:2016:MsgDataTypes}BulkChargingComplete) ? */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(eventCode == 0) {
- grammarID = 901;
- } else {
- errn = EXI_DEVIANT_SUPPORT_NOT_DEPLOYED; /* or also typecast and nillable */
- }
- }
- break;
- case 6:
- /* FirstStartTag[CHARACTERS[BOOLEAN]] */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(errn == 0) {
- if(eventCode == 0) {
- errn = decodeBoolean(stream, &v2gDisplayParametersType->InletHot);
- v2gDisplayParametersType->InletHot_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({urn:iso:15118:2:2016:MsgDataTypes}InletHot) ? */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(eventCode == 0) {
- grammarID = 2;
- } else {
- errn = EXI_DEVIANT_SUPPORT_NOT_DEPLOYED; /* or also typecast and nillable */
- }
- }
- break;
- case 7:
- done = 1;
- grammarID = 3;
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 896:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}RemainingTimeToTargetSOC), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}RemainingTimeToBulkSOC), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}RemainingTimeToMinimumSOC), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}ChargingComplete), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}BulkChargingComplete), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}InletHot), END_ELEMENT] */
- errn = decodeNBitUnsignedInteger(stream, 3, &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, 7, &(uint32));
- v2gDisplayParametersType->RemainingTimeToTargetSOC = (int8_t)(uint32 + 0);
- v2gDisplayParametersType->RemainingTimeToTargetSOC_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({urn:iso:15118:2:2016:MsgDataTypes}RemainingTimeToTargetSOC) ? */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(eventCode == 0) {
- grammarID = 897;
- } else {
- errn = EXI_DEVIANT_SUPPORT_NOT_DEPLOYED; /* or also typecast and nillable */
- }
- }
- break;
- case 1:
- /* FirstStartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(errn == 0) {
- if(eventCode == 0) {
- errn = decodeNBitUnsignedInteger(stream, 7, &(uint32));
- v2gDisplayParametersType->RemainingTimeToBulkSOC = (int8_t)(uint32 + 0);
- v2gDisplayParametersType->RemainingTimeToBulkSOC_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({urn:iso:15118:2:2016:MsgDataTypes}RemainingTimeToBulkSOC) ? */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(eventCode == 0) {
- grammarID = 898;
- } else {
- errn = EXI_DEVIANT_SUPPORT_NOT_DEPLOYED; /* or also typecast and nillable */
- }
- }
- break;
- case 2:
- /* FirstStartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(errn == 0) {
- if(eventCode == 0) {
- errn = decodeNBitUnsignedInteger(stream, 7, &(uint32));
- v2gDisplayParametersType->RemainingTimeToMinimumSOC = (int8_t)(uint32 + 0);
- v2gDisplayParametersType->RemainingTimeToMinimumSOC_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({urn:iso:15118:2:2016:MsgDataTypes}RemainingTimeToMinimumSOC) ? */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(eventCode == 0) {
- grammarID = 899;
- } else {
- errn = EXI_DEVIANT_SUPPORT_NOT_DEPLOYED; /* or also typecast and nillable */
- }
- }
- break;
- case 3:
- /* FirstStartTag[CHARACTERS[BOOLEAN]] */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(errn == 0) {
- if(eventCode == 0) {
- errn = decodeBoolean(stream, &v2gDisplayParametersType->ChargingComplete);
- v2gDisplayParametersType->ChargingComplete_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({urn:iso:15118:2:2016:MsgDataTypes}ChargingComplete) ? */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(eventCode == 0) {
- grammarID = 900;
- } else {
- errn = EXI_DEVIANT_SUPPORT_NOT_DEPLOYED; /* or also typecast and nillable */
- }
- }
- break;
- case 4:
- /* FirstStartTag[CHARACTERS[BOOLEAN]] */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(errn == 0) {
- if(eventCode == 0) {
- errn = decodeBoolean(stream, &v2gDisplayParametersType->BulkChargingComplete);
- v2gDisplayParametersType->BulkChargingComplete_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({urn:iso:15118:2:2016:MsgDataTypes}BulkChargingComplete) ? */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(eventCode == 0) {
- grammarID = 901;
- } else {
- errn = EXI_DEVIANT_SUPPORT_NOT_DEPLOYED; /* or also typecast and nillable */
- }
- }
- break;
- case 5:
- /* FirstStartTag[CHARACTERS[BOOLEAN]] */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(errn == 0) {
- if(eventCode == 0) {
- errn = decodeBoolean(stream, &v2gDisplayParametersType->InletHot);
- v2gDisplayParametersType->InletHot_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({urn:iso:15118:2:2016:MsgDataTypes}InletHot) ? */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(eventCode == 0) {
- grammarID = 2;
- } else {
- errn = EXI_DEVIANT_SUPPORT_NOT_DEPLOYED; /* or also typecast and nillable */
- }
- }
- break;
- case 6:
- done = 1;
- grammarID = 3;
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 897:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}RemainingTimeToBulkSOC), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}RemainingTimeToMinimumSOC), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}ChargingComplete), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}BulkChargingComplete), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}InletHot), END_ELEMENT] */
- errn = decodeNBitUnsignedInteger(stream, 3, &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, 7, &(uint32));
- v2gDisplayParametersType->RemainingTimeToBulkSOC = (int8_t)(uint32 + 0);
- v2gDisplayParametersType->RemainingTimeToBulkSOC_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({urn:iso:15118:2:2016:MsgDataTypes}RemainingTimeToBulkSOC) ? */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(eventCode == 0) {
- grammarID = 898;
- } else {
- errn = EXI_DEVIANT_SUPPORT_NOT_DEPLOYED; /* or also typecast and nillable */
- }
- }
- break;
- case 1:
- /* FirstStartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(errn == 0) {
- if(eventCode == 0) {
- errn = decodeNBitUnsignedInteger(stream, 7, &(uint32));
- v2gDisplayParametersType->RemainingTimeToMinimumSOC = (int8_t)(uint32 + 0);
- v2gDisplayParametersType->RemainingTimeToMinimumSOC_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({urn:iso:15118:2:2016:MsgDataTypes}RemainingTimeToMinimumSOC) ? */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(eventCode == 0) {
- grammarID = 899;
- } else {
- errn = EXI_DEVIANT_SUPPORT_NOT_DEPLOYED; /* or also typecast and nillable */
- }
- }
- break;
- case 2:
- /* FirstStartTag[CHARACTERS[BOOLEAN]] */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(errn == 0) {
- if(eventCode == 0) {
- errn = decodeBoolean(stream, &v2gDisplayParametersType->ChargingComplete);
- v2gDisplayParametersType->ChargingComplete_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({urn:iso:15118:2:2016:MsgDataTypes}ChargingComplete) ? */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(eventCode == 0) {
- grammarID = 900;
- } else {
- errn = EXI_DEVIANT_SUPPORT_NOT_DEPLOYED; /* or also typecast and nillable */
- }
- }
- break;
- case 3:
- /* FirstStartTag[CHARACTERS[BOOLEAN]] */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(errn == 0) {
- if(eventCode == 0) {
- errn = decodeBoolean(stream, &v2gDisplayParametersType->BulkChargingComplete);
- v2gDisplayParametersType->BulkChargingComplete_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({urn:iso:15118:2:2016:MsgDataTypes}BulkChargingComplete) ? */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(eventCode == 0) {
- grammarID = 901;
- } else {
- errn = EXI_DEVIANT_SUPPORT_NOT_DEPLOYED; /* or also typecast and nillable */
- }
- }
- break;
- case 4:
- /* FirstStartTag[CHARACTERS[BOOLEAN]] */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(errn == 0) {
- if(eventCode == 0) {
- errn = decodeBoolean(stream, &v2gDisplayParametersType->InletHot);
- v2gDisplayParametersType->InletHot_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({urn:iso:15118:2:2016:MsgDataTypes}InletHot) ? */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(eventCode == 0) {
- grammarID = 2;
- } else {
- errn = EXI_DEVIANT_SUPPORT_NOT_DEPLOYED; /* or also typecast and nillable */
- }
- }
- break;
- case 5:
- done = 1;
- grammarID = 3;
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 898:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}RemainingTimeToMinimumSOC), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}ChargingComplete), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}BulkChargingComplete), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}InletHot), END_ELEMENT] */
- errn = decodeNBitUnsignedInteger(stream, 3, &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, 7, &(uint32));
- v2gDisplayParametersType->RemainingTimeToMinimumSOC = (int8_t)(uint32 + 0);
- v2gDisplayParametersType->RemainingTimeToMinimumSOC_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({urn:iso:15118:2:2016:MsgDataTypes}RemainingTimeToMinimumSOC) ? */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(eventCode == 0) {
- grammarID = 899;
- } else {
- errn = EXI_DEVIANT_SUPPORT_NOT_DEPLOYED; /* or also typecast and nillable */
- }
- }
- break;
- case 1:
- /* FirstStartTag[CHARACTERS[BOOLEAN]] */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(errn == 0) {
- if(eventCode == 0) {
- errn = decodeBoolean(stream, &v2gDisplayParametersType->ChargingComplete);
- v2gDisplayParametersType->ChargingComplete_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({urn:iso:15118:2:2016:MsgDataTypes}ChargingComplete) ? */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(eventCode == 0) {
- grammarID = 900;
- } else {
- errn = EXI_DEVIANT_SUPPORT_NOT_DEPLOYED; /* or also typecast and nillable */
- }
- }
- break;
- case 2:
- /* FirstStartTag[CHARACTERS[BOOLEAN]] */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(errn == 0) {
- if(eventCode == 0) {
- errn = decodeBoolean(stream, &v2gDisplayParametersType->BulkChargingComplete);
- v2gDisplayParametersType->BulkChargingComplete_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({urn:iso:15118:2:2016:MsgDataTypes}BulkChargingComplete) ? */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(eventCode == 0) {
- grammarID = 901;
- } else {
- errn = EXI_DEVIANT_SUPPORT_NOT_DEPLOYED; /* or also typecast and nillable */
- }
- }
- break;
- case 3:
- /* FirstStartTag[CHARACTERS[BOOLEAN]] */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(errn == 0) {
- if(eventCode == 0) {
- errn = decodeBoolean(stream, &v2gDisplayParametersType->InletHot);
- v2gDisplayParametersType->InletHot_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({urn:iso:15118:2:2016:MsgDataTypes}InletHot) ? */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(eventCode == 0) {
- grammarID = 2;
- } else {
- errn = EXI_DEVIANT_SUPPORT_NOT_DEPLOYED; /* or also typecast and nillable */
- }
- }
- break;
- case 4:
- done = 1;
- grammarID = 3;
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 899:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}ChargingComplete), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}BulkChargingComplete), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}InletHot), END_ELEMENT] */
- errn = decodeNBitUnsignedInteger(stream, 3, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- /* FirstStartTag[CHARACTERS[BOOLEAN]] */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(errn == 0) {
- if(eventCode == 0) {
- errn = decodeBoolean(stream, &v2gDisplayParametersType->ChargingComplete);
- v2gDisplayParametersType->ChargingComplete_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({urn:iso:15118:2:2016:MsgDataTypes}ChargingComplete) ? */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(eventCode == 0) {
- grammarID = 900;
- } else {
- errn = EXI_DEVIANT_SUPPORT_NOT_DEPLOYED; /* or also typecast and nillable */
- }
- }
- break;
- case 1:
- /* FirstStartTag[CHARACTERS[BOOLEAN]] */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(errn == 0) {
- if(eventCode == 0) {
- errn = decodeBoolean(stream, &v2gDisplayParametersType->BulkChargingComplete);
- v2gDisplayParametersType->BulkChargingComplete_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({urn:iso:15118:2:2016:MsgDataTypes}BulkChargingComplete) ? */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(eventCode == 0) {
- grammarID = 901;
- } else {
- errn = EXI_DEVIANT_SUPPORT_NOT_DEPLOYED; /* or also typecast and nillable */
- }
- }
- break;
- case 2:
- /* FirstStartTag[CHARACTERS[BOOLEAN]] */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(errn == 0) {
- if(eventCode == 0) {
- errn = decodeBoolean(stream, &v2gDisplayParametersType->InletHot);
- v2gDisplayParametersType->InletHot_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({urn:iso:15118:2:2016:MsgDataTypes}InletHot) ? */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(eventCode == 0) {
- grammarID = 2;
- } else {
- errn = EXI_DEVIANT_SUPPORT_NOT_DEPLOYED; /* or also typecast and nillable */
- }
- }
- break;
- case 3:
- done = 1;
- grammarID = 3;
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 900:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}BulkChargingComplete), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}InletHot), END_ELEMENT] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- /* FirstStartTag[CHARACTERS[BOOLEAN]] */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(errn == 0) {
- if(eventCode == 0) {
- errn = decodeBoolean(stream, &v2gDisplayParametersType->BulkChargingComplete);
- v2gDisplayParametersType->BulkChargingComplete_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({urn:iso:15118:2:2016:MsgDataTypes}BulkChargingComplete) ? */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(eventCode == 0) {
- grammarID = 901;
- } else {
- errn = EXI_DEVIANT_SUPPORT_NOT_DEPLOYED; /* or also typecast and nillable */
- }
- }
- break;
- case 1:
- /* FirstStartTag[CHARACTERS[BOOLEAN]] */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(errn == 0) {
- if(eventCode == 0) {
- errn = decodeBoolean(stream, &v2gDisplayParametersType->InletHot);
- v2gDisplayParametersType->InletHot_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({urn:iso:15118:2:2016:MsgDataTypes}InletHot) ? */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(eventCode == 0) {
- grammarID = 2;
- } else {
- errn = EXI_DEVIANT_SUPPORT_NOT_DEPLOYED; /* or also typecast and nillable */
- }
- }
- break;
- case 2:
- done = 1;
- grammarID = 3;
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 901:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}InletHot), END_ELEMENT] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- /* FirstStartTag[CHARACTERS[BOOLEAN]] */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(errn == 0) {
- if(eventCode == 0) {
- errn = decodeBoolean(stream, &v2gDisplayParametersType->InletHot);
- v2gDisplayParametersType->InletHot_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({urn:iso:15118:2:2016:MsgDataTypes}InletHot) ? */
- 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='http://www.w3.org/2000/09/xmldsig#,SignatureMethodType', base type name='anyType', content type='MIXED', isAbstract='false', hasTypeId='false', final='0', block='0', particle='("http://www.w3.org/2000/09/xmldsig#":HMACOutputLength{0-1},(WC[##other:"http://www.w3.org/2000/09/xmldsig#"]){0-UNBOUNDED})', derivedBy='RESTRICTION'. */
-static int decode_v2gSignatureMethodType(bitstream_t* stream, struct v2gSignatureMethodType* v2gSignatureMethodType) {
- int grammarID = 902;
- int done = 0;
-
- init_v2gSignatureMethodType(v2gSignatureMethodType);
-
- while(!done) {
- switch(grammarID) {
- case 902:
- /* FirstStartTag[ATTRIBUTE[STRING](Algorithm)] */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- errn = decodeUnsignedInteger16(stream, &v2gSignatureMethodType->Algorithm.charactersLen);
- if (errn == 0) {
- if (v2gSignatureMethodType->Algorithm.charactersLen >= 2) {
- v2gSignatureMethodType->Algorithm.charactersLen = (uint16_t)(v2gSignatureMethodType->Algorithm.charactersLen - 2); /* string table miss */
- errn = decodeCharacters(stream, v2gSignatureMethodType->Algorithm.charactersLen, v2gSignatureMethodType->Algorithm.characters, v2gSignatureMethodType_Algorithm_CHARACTERS_SIZE);
- } else {
- /* string table hit */
- errn = EXI_ERROR_STRINGVALUES_NOT_SUPPORTED;
- }
- }
- grammarID = 903;
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 903:
- /* StartTag[START_ELEMENT({http://www.w3.org/2000/09/xmldsig#}HMACOutputLength), START_ELEMENT_GENERIC, END_ELEMENT, CHARACTERS_GENERIC[STRING]] */
- errn = decodeNBitUnsignedInteger(stream, 3, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- /* FirstStartTag[CHARACTERS[INTEGER]] */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(errn == 0) {
- if(eventCode == 0) {
- errn = decodeInteger64(stream, &v2gSignatureMethodType->HMACOutputLength);
- v2gSignatureMethodType->HMACOutputLength_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({http://www.w3.org/2000/09/xmldsig#}HMACOutputLength) ? */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(eventCode == 0) {
- grammarID = 904;
- } else {
- errn = EXI_DEVIANT_SUPPORT_NOT_DEPLOYED; /* or also typecast and nillable */
- }
- }
- break;
- case 1:
- errn = EXI_UNSUPPORTED_EVENT_CODE_CHARACTERISTICS;
- /* TODO unsupported event : START_ELEMENT_GENERIC */
- grammarID = 904;
- break;
- case 2:
- done = 1;
- grammarID = 3;
- break;
- case 3:
- errn = decodeUnsignedInteger16(stream, &v2gSignatureMethodType->ANY.charactersLen);
- if (errn == 0) {
- if (v2gSignatureMethodType->ANY.charactersLen >= 2) {
- v2gSignatureMethodType->ANY.charactersLen = (uint16_t)(v2gSignatureMethodType->ANY.charactersLen - 2); /* string table miss */
- errn = decodeCharacters(stream, v2gSignatureMethodType->ANY.charactersLen, v2gSignatureMethodType->ANY.characters, v2gSignatureMethodType_ANY_CHARACTERS_SIZE);
- } else {
- /* string table hit */
- errn = EXI_ERROR_STRINGVALUES_NOT_SUPPORTED;
- }
- }
- v2gSignatureMethodType->ANY_isUsed = 1u;
- grammarID = 905;
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 904:
- /* Element[START_ELEMENT_GENERIC, END_ELEMENT, CHARACTERS_GENERIC[STRING]] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- errn = EXI_UNSUPPORTED_EVENT_CODE_CHARACTERISTICS;
- /* TODO unsupported event : START_ELEMENT_GENERIC */
- grammarID = 904;
- break;
- case 1:
- done = 1;
- grammarID = 3;
- break;
- case 2:
- errn = decodeUnsignedInteger16(stream, &v2gSignatureMethodType->ANY.charactersLen);
- if (errn == 0) {
- if (v2gSignatureMethodType->ANY.charactersLen >= 2) {
- v2gSignatureMethodType->ANY.charactersLen = (uint16_t)(v2gSignatureMethodType->ANY.charactersLen - 2); /* string table miss */
- errn = decodeCharacters(stream, v2gSignatureMethodType->ANY.charactersLen, v2gSignatureMethodType->ANY.characters, v2gSignatureMethodType_ANY_CHARACTERS_SIZE);
- } else {
- /* string table hit */
- errn = EXI_ERROR_STRINGVALUES_NOT_SUPPORTED;
- }
- }
- v2gSignatureMethodType->ANY_isUsed = 1u;
- grammarID = 904;
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 905:
- /* Element[START_ELEMENT({http://www.w3.org/2000/09/xmldsig#}HMACOutputLength), START_ELEMENT_GENERIC, END_ELEMENT, CHARACTERS_GENERIC[STRING]] */
- errn = decodeNBitUnsignedInteger(stream, 3, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- /* FirstStartTag[CHARACTERS[INTEGER]] */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(errn == 0) {
- if(eventCode == 0) {
- errn = decodeInteger64(stream, &v2gSignatureMethodType->HMACOutputLength);
- v2gSignatureMethodType->HMACOutputLength_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({http://www.w3.org/2000/09/xmldsig#}HMACOutputLength) ? */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(eventCode == 0) {
- grammarID = 904;
- } else {
- errn = EXI_DEVIANT_SUPPORT_NOT_DEPLOYED; /* or also typecast and nillable */
- }
- }
- break;
- case 1:
- errn = EXI_UNSUPPORTED_EVENT_CODE_CHARACTERISTICS;
- /* TODO unsupported event : START_ELEMENT_GENERIC */
- grammarID = 904;
- break;
- case 2:
- done = 1;
- grammarID = 3;
- break;
- case 3:
- errn = decodeUnsignedInteger16(stream, &v2gSignatureMethodType->ANY.charactersLen);
- if (errn == 0) {
- if (v2gSignatureMethodType->ANY.charactersLen >= 2) {
- v2gSignatureMethodType->ANY.charactersLen = (uint16_t)(v2gSignatureMethodType->ANY.charactersLen - 2); /* string table miss */
- errn = decodeCharacters(stream, v2gSignatureMethodType->ANY.charactersLen, v2gSignatureMethodType->ANY.characters, v2gSignatureMethodType_ANY_CHARACTERS_SIZE);
- } else {
- /* string table hit */
- errn = EXI_ERROR_STRINGVALUES_NOT_SUPPORTED;
- }
- }
- v2gSignatureMethodType->ANY_isUsed = 1u;
- grammarID = 905;
- 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:2016:MsgDataTypes,TargetPositionType', base type name='anyType', content type='ELEMENT', isAbstract='false', hasTypeId='false', final='0', block='0', particle='("urn:iso:15118:2:2016:MsgDataTypes":TargetOffsetX,"urn:iso:15118:2:2016:MsgDataTypes":TargetOffsetY)', derivedBy='RESTRICTION'. */
-static int decode_v2gTargetPositionType(bitstream_t* stream, struct v2gTargetPositionType* v2gTargetPositionType) {
- int grammarID = 906;
- int done = 0;
-
- init_v2gTargetPositionType(v2gTargetPositionType);
-
- while(!done) {
- switch(grammarID) {
- case 906:
- /* FirstStartTag[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}TargetOffsetX)] */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- /* First(xsi:type)StartTag[CHARACTERS[UNSIGNED_INTEGER]] */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(errn == 0) {
- if(eventCode == 0) {
- errn = decodeUnsignedInteger16(stream, &v2gTargetPositionType->TargetOffsetX);
- } 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({urn:iso:15118:2:2016:MsgDataTypes}TargetOffsetX) ? */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(eventCode == 0) {
- grammarID = 907;
- } else {
- errn = EXI_DEVIANT_SUPPORT_NOT_DEPLOYED; /* or also typecast and nillable */
- }
- }
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 907:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}TargetOffsetY)] */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- /* First(xsi:type)StartTag[CHARACTERS[UNSIGNED_INTEGER]] */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(errn == 0) {
- if(eventCode == 0) {
- errn = decodeUnsignedInteger16(stream, &v2gTargetPositionType->TargetOffsetY);
- } 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({urn:iso:15118:2:2016:MsgDataTypes}TargetOffsetY) ? */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(eventCode == 0) {
- grammarID = 2;
- } else {
- errn = EXI_DEVIANT_SUPPORT_NOT_DEPLOYED; /* or also typecast and nillable */
- }
- }
- 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:2016:MsgDataTypes,EVFinePositioningParametersType', base type name='anyType', content type='EMPTY', isAbstract='true', hasTypeId='false', final='0', block='0', derivedBy='RESTRICTION'. */
-static int decode_v2gEVFinePositioningParametersType(bitstream_t* stream, struct v2gEVFinePositioningParametersType* v2gEVFinePositioningParametersType) {
- int grammarID = 4;
- int done = 0;
-
- init_v2gEVFinePositioningParametersType(v2gEVFinePositioningParametersType);
-
- while(!done) {
- switch(grammarID) {
- case 4:
- /* FirstStartTag[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:2016:MsgBody,VehicleCheckOutReqType', base type name='BodyBaseType', content type='ELEMENT', isAbstract='false', hasTypeId='false', final='0', block='0', particle='("urn:iso:15118:2:2016:MsgBody":EVCheckOutStatus,"urn:iso:15118:2:2016:MsgBody":CheckOutTime)', derivedBy='EXTENSION'. */
-static int decode_v2gVehicleCheckOutReqType(bitstream_t* stream, struct v2gVehicleCheckOutReqType* v2gVehicleCheckOutReqType) {
- int grammarID = 908;
- int done = 0;
-
- init_v2gVehicleCheckOutReqType(v2gVehicleCheckOutReqType);
-
- while(!done) {
- switch(grammarID) {
- case 908:
- /* FirstStartTag[START_ELEMENT({urn:iso:15118:2:2016:MsgBody}EVCheckOutStatus)] */
- 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);
- v2gVehicleCheckOutReqType->EVCheckOutStatus = (v2gEVCheckOutStatusType) 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({urn:iso:15118:2:2016:MsgBody}EVCheckOutStatus) ? */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(eventCode == 0) {
- grammarID = 909;
- } else {
- errn = EXI_DEVIANT_SUPPORT_NOT_DEPLOYED; /* or also typecast and nillable */
- }
- }
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 909:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgBody}CheckOutTime)] */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- /* First(xsi:type)StartTag[CHARACTERS[UNSIGNED_INTEGER]] */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(errn == 0) {
- if(eventCode == 0) {
- errn = decodeUnsignedInteger64(stream, &v2gVehicleCheckOutReqType->CheckOutTime);
- } 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({urn:iso:15118:2:2016:MsgBody}CheckOutTime) ? */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(eventCode == 0) {
- grammarID = 2;
- } else {
- errn = EXI_DEVIANT_SUPPORT_NOT_DEPLOYED; /* or also typecast and nillable */
- }
- }
- 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:2016:MsgBody,FinePositioningSetupResType', base type name='V2GResponseType', content type='ELEMENT', isAbstract='false', hasTypeId='false', final='0', block='0', particle='(("urn:iso:15118:2:2016:MsgBody":ResponseCode,"urn:iso:15118:2:2016:MsgBody":EVSEStatus{0-1}),("urn:iso:15118:2:2016:MsgDataTypes":EVSEFinePositioningSetupParameters{0-1}))', derivedBy='EXTENSION'. */
-static int decode_v2gFinePositioningSetupResType(bitstream_t* stream, struct v2gFinePositioningSetupResType* v2gFinePositioningSetupResType) {
- int grammarID = 910;
- int done = 0;
-
- init_v2gFinePositioningSetupResType(v2gFinePositioningSetupResType);
-
- while(!done) {
- switch(grammarID) {
- case 910:
- /* FirstStartTag[START_ELEMENT({urn:iso:15118:2:2016:MsgBody}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, 5, &uint32);
- v2gFinePositioningSetupResType->ResponseCode = (v2gresponseCodeType) 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({urn:iso:15118:2:2016:MsgBody}ResponseCode) ? */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(eventCode == 0) {
- grammarID = 911;
- } else {
- errn = EXI_DEVIANT_SUPPORT_NOT_DEPLOYED; /* or also typecast and nillable */
- }
- }
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 911:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgBody}EVSEStatus), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}EVSEFinePositioningSetupParameters), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}LFA_EVSEFinePositioningSetupParameters), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MV_EVSEFinePositioningSetupParameters), END_ELEMENT] */
- errn = decodeNBitUnsignedInteger(stream, 3, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- errn = decode_v2gEVSEStatusType(stream, &v2gFinePositioningSetupResType->EVSEStatus);
- v2gFinePositioningSetupResType->EVSEStatus_isUsed = 1u;
- grammarID = 912;
- break;
- case 1:
- errn = decode_v2gEVSEFinePositioningSetupParametersType(stream, &v2gFinePositioningSetupResType->EVSEFinePositioningSetupParameters);
- v2gFinePositioningSetupResType->EVSEFinePositioningSetupParameters_isUsed = 1u;
- grammarID = 2;
- break;
- case 2:
- errn = decode_v2gLFA_EVSEFinePositioningSetupParametersType(stream, &v2gFinePositioningSetupResType->LFA_EVSEFinePositioningSetupParameters);
- v2gFinePositioningSetupResType->LFA_EVSEFinePositioningSetupParameters_isUsed = 1u;
- grammarID = 2;
- break;
- case 3:
- errn = decode_v2gMV_EVSEFinePositioningSetupParametersType(stream, &v2gFinePositioningSetupResType->MV_EVSEFinePositioningSetupParameters);
- v2gFinePositioningSetupResType->MV_EVSEFinePositioningSetupParameters_isUsed = 1u;
- grammarID = 2;
- break;
- case 4:
- done = 1;
- grammarID = 3;
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 912:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}EVSEFinePositioningSetupParameters), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}LFA_EVSEFinePositioningSetupParameters), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MV_EVSEFinePositioningSetupParameters), END_ELEMENT] */
- errn = decodeNBitUnsignedInteger(stream, 3, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- errn = decode_v2gEVSEFinePositioningSetupParametersType(stream, &v2gFinePositioningSetupResType->EVSEFinePositioningSetupParameters);
- v2gFinePositioningSetupResType->EVSEFinePositioningSetupParameters_isUsed = 1u;
- grammarID = 2;
- break;
- case 1:
- errn = decode_v2gLFA_EVSEFinePositioningSetupParametersType(stream, &v2gFinePositioningSetupResType->LFA_EVSEFinePositioningSetupParameters);
- v2gFinePositioningSetupResType->LFA_EVSEFinePositioningSetupParameters_isUsed = 1u;
- grammarID = 2;
- break;
- case 2:
- errn = decode_v2gMV_EVSEFinePositioningSetupParametersType(stream, &v2gFinePositioningSetupResType->MV_EVSEFinePositioningSetupParameters);
- v2gFinePositioningSetupResType->MV_EVSEFinePositioningSetupParameters_isUsed = 1u;
- grammarID = 2;
- break;
- case 3:
- 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:2016:MsgDataTypes,SAScheduleListType', base type name='anyType', content type='ELEMENT', isAbstract='false', hasTypeId='false', final='0', block='0', particle='("urn:iso:15118:2:2016:MsgDataTypes":SAScheduleTuple{1-3})', derivedBy='RESTRICTION'. */
-static int decode_v2gSAScheduleListType(bitstream_t* stream, struct v2gSAScheduleListType* v2gSAScheduleListType) {
- int grammarID = 913;
- int done = 0;
-
- init_v2gSAScheduleListType(v2gSAScheduleListType);
-
- while(!done) {
- switch(grammarID) {
- case 913:
- /* FirstStartTag[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SAScheduleTuple)] */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gSAScheduleListType->SAScheduleTuple.arrayLen < v2gSAScheduleListType_SAScheduleTuple_ARRAY_SIZE) {
- errn = decode_v2gSAScheduleTupleType(stream, &v2gSAScheduleListType->SAScheduleTuple.array[v2gSAScheduleListType->SAScheduleTuple.arrayLen++]);
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- grammarID = 914;
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 914:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SAScheduleTuple), END_ELEMENT] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gSAScheduleListType->SAScheduleTuple.arrayLen < v2gSAScheduleListType_SAScheduleTuple_ARRAY_SIZE) {
- errn = decode_v2gSAScheduleTupleType(stream, &v2gSAScheduleListType->SAScheduleTuple.array[v2gSAScheduleListType->SAScheduleTuple.arrayLen++]);
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- grammarID = 915;
- break;
- case 1:
- done = 1;
- grammarID = 3;
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 915:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SAScheduleTuple), END_ELEMENT] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gSAScheduleListType->SAScheduleTuple.arrayLen < v2gSAScheduleListType_SAScheduleTuple_ARRAY_SIZE) {
- errn = decode_v2gSAScheduleTupleType(stream, &v2gSAScheduleListType->SAScheduleTuple.array[v2gSAScheduleListType->SAScheduleTuple.arrayLen++]);
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- grammarID = 2;
- 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:2016:MsgBody,SystemStatusReqType', base type name='BodyBaseType', content type='ELEMENT', isAbstract='false', hasTypeId='false', final='0', block='0', particle='("urn:iso:15118:2:2016:MsgBody":OperationMode,"urn:iso:15118:2:2016:MsgBody":EVMechanicalChargingDeviceStatus)', derivedBy='EXTENSION'. */
-static int decode_v2gSystemStatusReqType(bitstream_t* stream, struct v2gSystemStatusReqType* v2gSystemStatusReqType) {
- int grammarID = 916;
- int done = 0;
-
- init_v2gSystemStatusReqType(v2gSystemStatusReqType);
-
- while(!done) {
- switch(grammarID) {
- case 916:
- /* FirstStartTag[START_ELEMENT({urn:iso:15118:2:2016:MsgBody}OperationMode)] */
- 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, 1, &uint32);
- v2gSystemStatusReqType->OperationMode = (v2goperationModeType) 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({urn:iso:15118:2:2016:MsgBody}OperationMode) ? */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(eventCode == 0) {
- grammarID = 917;
- } else {
- errn = EXI_DEVIANT_SUPPORT_NOT_DEPLOYED; /* or also typecast and nillable */
- }
- }
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 917:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgBody}EVMechanicalChargingDeviceStatus)] */
- 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);
- v2gSystemStatusReqType->EVMechanicalChargingDeviceStatus = (v2gmechanicalChargingDeviceStatusType) 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({urn:iso:15118:2:2016:MsgBody}EVMechanicalChargingDeviceStatus) ? */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(eventCode == 0) {
- grammarID = 2;
- } else {
- errn = EXI_DEVIANT_SUPPORT_NOT_DEPLOYED; /* or also typecast and nillable */
- }
- }
- 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:2016:MsgDataTypes,CertificateChainType', base type name='anyType', content type='ELEMENT', isAbstract='false', hasTypeId='false', final='0', block='0', particle='("urn:iso:15118:2:2016:MsgDataTypes":Certificate,"urn:iso:15118:2:2016:MsgDataTypes":SubCertificates{0-1})', derivedBy='RESTRICTION'. */
-static int decode_v2gCertificateChainType(bitstream_t* stream, struct v2gCertificateChainType* v2gCertificateChainType) {
- int grammarID = 918;
- int done = 0;
-
- init_v2gCertificateChainType(v2gCertificateChainType);
-
- while(!done) {
- switch(grammarID) {
- case 918:
- /* FirstStartTag[ATTRIBUTE[STRING]({urn:iso:15118:2:2016:MsgDataTypes}Id), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}Certificate)] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- errn = decodeUnsignedInteger16(stream, &v2gCertificateChainType->Id.charactersLen);
- if (errn == 0) {
- if (v2gCertificateChainType->Id.charactersLen >= 2) {
- v2gCertificateChainType->Id.charactersLen = (uint16_t)(v2gCertificateChainType->Id.charactersLen - 2); /* string table miss */
- errn = decodeCharacters(stream, v2gCertificateChainType->Id.charactersLen, v2gCertificateChainType->Id.characters, v2gCertificateChainType_Id_CHARACTERS_SIZE);
- } else {
- /* string table hit */
- errn = EXI_ERROR_STRINGVALUES_NOT_SUPPORTED;
- }
- }
- v2gCertificateChainType->Id_isUsed = 1u;
- grammarID = 919;
- break;
- case 1:
- /* FirstStartTag[CHARACTERS[BINARY_BASE64]] */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(errn == 0) {
- if(eventCode == 0) {
- errn = decodeUnsignedInteger16(stream, &v2gCertificateChainType->Certificate.bytesLen);
- if (errn == 0) {
- errn = (v2gCertificateChainType->Certificate.bytesLen) <= v2gCertificateChainType_Certificate_BYTES_SIZE ? 0 : EXI_ERROR_OUT_OF_BYTE_BUFFER;
- }
- if (errn == 0) {
- errn = decodeBytes(stream, v2gCertificateChainType->Certificate.bytesLen, v2gCertificateChainType->Certificate.bytes);
- }
- } 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({urn:iso:15118:2:2016:MsgDataTypes}Certificate) ? */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(eventCode == 0) {
- grammarID = 920;
- } else {
- errn = EXI_DEVIANT_SUPPORT_NOT_DEPLOYED; /* or also typecast and nillable */
- }
- }
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 919:
- /* StartTag[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}Certificate)] */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- /* FirstStartTag[CHARACTERS[BINARY_BASE64]] */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(errn == 0) {
- if(eventCode == 0) {
- errn = decodeUnsignedInteger16(stream, &v2gCertificateChainType->Certificate.bytesLen);
- if (errn == 0) {
- errn = (v2gCertificateChainType->Certificate.bytesLen) <= v2gCertificateChainType_Certificate_BYTES_SIZE ? 0 : EXI_ERROR_OUT_OF_BYTE_BUFFER;
- }
- if (errn == 0) {
- errn = decodeBytes(stream, v2gCertificateChainType->Certificate.bytesLen, v2gCertificateChainType->Certificate.bytes);
- }
- } 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({urn:iso:15118:2:2016:MsgDataTypes}Certificate) ? */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(eventCode == 0) {
- grammarID = 920;
- } else {
- errn = EXI_DEVIANT_SUPPORT_NOT_DEPLOYED; /* or also typecast and nillable */
- }
- }
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 920:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SubCertificates), END_ELEMENT] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- errn = decode_v2gSubCertificatesType(stream, &v2gCertificateChainType->SubCertificates);
- v2gCertificateChainType->SubCertificates_isUsed = 1u;
- grammarID = 2;
- 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:2016:MsgDataTypes,CostType', base type name='anyType', content type='ELEMENT', isAbstract='false', hasTypeId='false', final='0', block='0', particle='("urn:iso:15118:2:2016:MsgDataTypes":costKind,"urn:iso:15118:2:2016:MsgDataTypes":amount)', derivedBy='RESTRICTION'. */
-static int decode_v2gCostType(bitstream_t* stream, struct v2gCostType* v2gCostType) {
- int grammarID = 921;
- int done = 0;
-
- init_v2gCostType(v2gCostType);
-
- while(!done) {
- switch(grammarID) {
- case 921:
- /* FirstStartTag[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}costKind)] */
- 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);
- v2gCostType->costKind = (v2gcostKindType) 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({urn:iso:15118:2:2016:MsgDataTypes}costKind) ? */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(eventCode == 0) {
- grammarID = 922;
- } else {
- errn = EXI_DEVIANT_SUPPORT_NOT_DEPLOYED; /* or also typecast and nillable */
- }
- }
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 922:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}amount)] */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- errn = decode_v2gPhysicalValueType(stream, &v2gCostType->amount);
- grammarID = 2;
- 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:2016:MsgDataTypes,ServiceType', base type name='anyType', content type='ELEMENT', isAbstract='false', hasTypeId='false', final='0', block='0', particle='("urn:iso:15118:2:2016:MsgDataTypes":ServiceID,"urn:iso:15118:2:2016:MsgDataTypes":FreeService)', derivedBy='RESTRICTION'. */
-static int decode_v2gServiceType(bitstream_t* stream, struct v2gServiceType* v2gServiceType) {
- int grammarID = 923;
- int done = 0;
-
- init_v2gServiceType(v2gServiceType);
-
- while(!done) {
- switch(grammarID) {
- case 923:
- /* FirstStartTag[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}ServiceID)] */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- /* FirstStartTag[CHARACTERS[UNSIGNED_INTEGER]] */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(errn == 0) {
- if(eventCode == 0) {
- errn = decodeUnsignedInteger16(stream, &v2gServiceType->ServiceID);
- } 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({urn:iso:15118:2:2016:MsgDataTypes}ServiceID) ? */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(eventCode == 0) {
- grammarID = 924;
- } else {
- errn = EXI_DEVIANT_SUPPORT_NOT_DEPLOYED; /* or also typecast and nillable */
- }
- }
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 924:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}FreeService)] */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- /* FirstStartTag[CHARACTERS[BOOLEAN]] */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(errn == 0) {
- if(eventCode == 0) {
- errn = decodeBoolean(stream, &v2gServiceType->FreeService);
- } 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({urn:iso:15118:2:2016:MsgDataTypes}FreeService) ? */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(eventCode == 0) {
- grammarID = 2;
- } else {
- errn = EXI_DEVIANT_SUPPORT_NOT_DEPLOYED; /* or also typecast and nillable */
- }
- }
- 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:2016:MsgDataTypes,ServiceParameterListType', base type name='anyType', content type='ELEMENT', isAbstract='false', hasTypeId='false', final='0', block='0', particle='("urn:iso:15118:2:2016:MsgDataTypes":ParameterSet{1-255})', derivedBy='RESTRICTION'. */
-static int decode_v2gServiceParameterListType(bitstream_t* stream, struct v2gServiceParameterListType* v2gServiceParameterListType) {
- int grammarID = 925;
- int done = 0;
-
- init_v2gServiceParameterListType(v2gServiceParameterListType);
-
- while(!done) {
- switch(grammarID) {
- case 925:
- /* FirstStartTag[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}ParameterSet)] */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gServiceParameterListType->ParameterSet.arrayLen < v2gServiceParameterListType_ParameterSet_ARRAY_SIZE) {
- errn = decode_v2gParameterSetType(stream, &v2gServiceParameterListType->ParameterSet.array[v2gServiceParameterListType->ParameterSet.arrayLen++]);
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- grammarID = 926;
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 926:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}ParameterSet), END_ELEMENT] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gServiceParameterListType->ParameterSet.arrayLen < v2gServiceParameterListType_ParameterSet_ARRAY_SIZE) {
- errn = decode_v2gParameterSetType(stream, &v2gServiceParameterListType->ParameterSet.array[v2gServiceParameterListType->ParameterSet.arrayLen++]);
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- grammarID = 927;
- break;
- case 1:
- done = 1;
- grammarID = 3;
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 927:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}ParameterSet), END_ELEMENT] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gServiceParameterListType->ParameterSet.arrayLen < v2gServiceParameterListType_ParameterSet_ARRAY_SIZE) {
- errn = decode_v2gParameterSetType(stream, &v2gServiceParameterListType->ParameterSet.array[v2gServiceParameterListType->ParameterSet.arrayLen++]);
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- grammarID = 928;
- break;
- case 1:
- done = 1;
- grammarID = 3;
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 928:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}ParameterSet), END_ELEMENT] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gServiceParameterListType->ParameterSet.arrayLen < v2gServiceParameterListType_ParameterSet_ARRAY_SIZE) {
- errn = decode_v2gParameterSetType(stream, &v2gServiceParameterListType->ParameterSet.array[v2gServiceParameterListType->ParameterSet.arrayLen++]);
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- grammarID = 929;
- break;
- case 1:
- done = 1;
- grammarID = 3;
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 929:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}ParameterSet), END_ELEMENT] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gServiceParameterListType->ParameterSet.arrayLen < v2gServiceParameterListType_ParameterSet_ARRAY_SIZE) {
- errn = decode_v2gParameterSetType(stream, &v2gServiceParameterListType->ParameterSet.array[v2gServiceParameterListType->ParameterSet.arrayLen++]);
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- grammarID = 930;
- break;
- case 1:
- done = 1;
- grammarID = 3;
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 930:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}ParameterSet), END_ELEMENT] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gServiceParameterListType->ParameterSet.arrayLen < v2gServiceParameterListType_ParameterSet_ARRAY_SIZE) {
- errn = decode_v2gParameterSetType(stream, &v2gServiceParameterListType->ParameterSet.array[v2gServiceParameterListType->ParameterSet.arrayLen++]);
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- grammarID = 931;
- break;
- case 1:
- done = 1;
- grammarID = 3;
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 931:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}ParameterSet), END_ELEMENT] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gServiceParameterListType->ParameterSet.arrayLen < v2gServiceParameterListType_ParameterSet_ARRAY_SIZE) {
- errn = decode_v2gParameterSetType(stream, &v2gServiceParameterListType->ParameterSet.array[v2gServiceParameterListType->ParameterSet.arrayLen++]);
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- grammarID = 932;
- break;
- case 1:
- done = 1;
- grammarID = 3;
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 932:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}ParameterSet), END_ELEMENT] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gServiceParameterListType->ParameterSet.arrayLen < v2gServiceParameterListType_ParameterSet_ARRAY_SIZE) {
- errn = decode_v2gParameterSetType(stream, &v2gServiceParameterListType->ParameterSet.array[v2gServiceParameterListType->ParameterSet.arrayLen++]);
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- grammarID = 933;
- break;
- case 1:
- done = 1;
- grammarID = 3;
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 933:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}ParameterSet), END_ELEMENT] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gServiceParameterListType->ParameterSet.arrayLen < v2gServiceParameterListType_ParameterSet_ARRAY_SIZE) {
- errn = decode_v2gParameterSetType(stream, &v2gServiceParameterListType->ParameterSet.array[v2gServiceParameterListType->ParameterSet.arrayLen++]);
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- grammarID = 934;
- break;
- case 1:
- done = 1;
- grammarID = 3;
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 934:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}ParameterSet), END_ELEMENT] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gServiceParameterListType->ParameterSet.arrayLen < v2gServiceParameterListType_ParameterSet_ARRAY_SIZE) {
- errn = decode_v2gParameterSetType(stream, &v2gServiceParameterListType->ParameterSet.array[v2gServiceParameterListType->ParameterSet.arrayLen++]);
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- grammarID = 935;
- break;
- case 1:
- done = 1;
- grammarID = 3;
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 935:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}ParameterSet), END_ELEMENT] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gServiceParameterListType->ParameterSet.arrayLen < v2gServiceParameterListType_ParameterSet_ARRAY_SIZE) {
- errn = decode_v2gParameterSetType(stream, &v2gServiceParameterListType->ParameterSet.array[v2gServiceParameterListType->ParameterSet.arrayLen++]);
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- grammarID = 936;
- break;
- case 1:
- done = 1;
- grammarID = 3;
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 936:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}ParameterSet), END_ELEMENT] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gServiceParameterListType->ParameterSet.arrayLen < v2gServiceParameterListType_ParameterSet_ARRAY_SIZE) {
- errn = decode_v2gParameterSetType(stream, &v2gServiceParameterListType->ParameterSet.array[v2gServiceParameterListType->ParameterSet.arrayLen++]);
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- grammarID = 937;
- break;
- case 1:
- done = 1;
- grammarID = 3;
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 937:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}ParameterSet), END_ELEMENT] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gServiceParameterListType->ParameterSet.arrayLen < v2gServiceParameterListType_ParameterSet_ARRAY_SIZE) {
- errn = decode_v2gParameterSetType(stream, &v2gServiceParameterListType->ParameterSet.array[v2gServiceParameterListType->ParameterSet.arrayLen++]);
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- grammarID = 938;
- break;
- case 1:
- done = 1;
- grammarID = 3;
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 938:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}ParameterSet), END_ELEMENT] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gServiceParameterListType->ParameterSet.arrayLen < v2gServiceParameterListType_ParameterSet_ARRAY_SIZE) {
- errn = decode_v2gParameterSetType(stream, &v2gServiceParameterListType->ParameterSet.array[v2gServiceParameterListType->ParameterSet.arrayLen++]);
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- grammarID = 939;
- break;
- case 1:
- done = 1;
- grammarID = 3;
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 939:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}ParameterSet), END_ELEMENT] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gServiceParameterListType->ParameterSet.arrayLen < v2gServiceParameterListType_ParameterSet_ARRAY_SIZE) {
- errn = decode_v2gParameterSetType(stream, &v2gServiceParameterListType->ParameterSet.array[v2gServiceParameterListType->ParameterSet.arrayLen++]);
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- grammarID = 940;
- break;
- case 1:
- done = 1;
- grammarID = 3;
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 940:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}ParameterSet), END_ELEMENT] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gServiceParameterListType->ParameterSet.arrayLen < v2gServiceParameterListType_ParameterSet_ARRAY_SIZE) {
- errn = decode_v2gParameterSetType(stream, &v2gServiceParameterListType->ParameterSet.array[v2gServiceParameterListType->ParameterSet.arrayLen++]);
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- grammarID = 941;
- break;
- case 1:
- done = 1;
- grammarID = 3;
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 941:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}ParameterSet), END_ELEMENT] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gServiceParameterListType->ParameterSet.arrayLen < v2gServiceParameterListType_ParameterSet_ARRAY_SIZE) {
- errn = decode_v2gParameterSetType(stream, &v2gServiceParameterListType->ParameterSet.array[v2gServiceParameterListType->ParameterSet.arrayLen++]);
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- grammarID = 942;
- break;
- case 1:
- done = 1;
- grammarID = 3;
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 942:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}ParameterSet), END_ELEMENT] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gServiceParameterListType->ParameterSet.arrayLen < v2gServiceParameterListType_ParameterSet_ARRAY_SIZE) {
- errn = decode_v2gParameterSetType(stream, &v2gServiceParameterListType->ParameterSet.array[v2gServiceParameterListType->ParameterSet.arrayLen++]);
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- grammarID = 943;
- break;
- case 1:
- done = 1;
- grammarID = 3;
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 943:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}ParameterSet), END_ELEMENT] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gServiceParameterListType->ParameterSet.arrayLen < v2gServiceParameterListType_ParameterSet_ARRAY_SIZE) {
- errn = decode_v2gParameterSetType(stream, &v2gServiceParameterListType->ParameterSet.array[v2gServiceParameterListType->ParameterSet.arrayLen++]);
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- grammarID = 944;
- break;
- case 1:
- done = 1;
- grammarID = 3;
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 944:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}ParameterSet), END_ELEMENT] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gServiceParameterListType->ParameterSet.arrayLen < v2gServiceParameterListType_ParameterSet_ARRAY_SIZE) {
- errn = decode_v2gParameterSetType(stream, &v2gServiceParameterListType->ParameterSet.array[v2gServiceParameterListType->ParameterSet.arrayLen++]);
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- grammarID = 945;
- break;
- case 1:
- done = 1;
- grammarID = 3;
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 945:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}ParameterSet), END_ELEMENT] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gServiceParameterListType->ParameterSet.arrayLen < v2gServiceParameterListType_ParameterSet_ARRAY_SIZE) {
- errn = decode_v2gParameterSetType(stream, &v2gServiceParameterListType->ParameterSet.array[v2gServiceParameterListType->ParameterSet.arrayLen++]);
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- grammarID = 946;
- break;
- case 1:
- done = 1;
- grammarID = 3;
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 946:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}ParameterSet), END_ELEMENT] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gServiceParameterListType->ParameterSet.arrayLen < v2gServiceParameterListType_ParameterSet_ARRAY_SIZE) {
- errn = decode_v2gParameterSetType(stream, &v2gServiceParameterListType->ParameterSet.array[v2gServiceParameterListType->ParameterSet.arrayLen++]);
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- grammarID = 947;
- break;
- case 1:
- done = 1;
- grammarID = 3;
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 947:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}ParameterSet), END_ELEMENT] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gServiceParameterListType->ParameterSet.arrayLen < v2gServiceParameterListType_ParameterSet_ARRAY_SIZE) {
- errn = decode_v2gParameterSetType(stream, &v2gServiceParameterListType->ParameterSet.array[v2gServiceParameterListType->ParameterSet.arrayLen++]);
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- grammarID = 948;
- break;
- case 1:
- done = 1;
- grammarID = 3;
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 948:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}ParameterSet), END_ELEMENT] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gServiceParameterListType->ParameterSet.arrayLen < v2gServiceParameterListType_ParameterSet_ARRAY_SIZE) {
- errn = decode_v2gParameterSetType(stream, &v2gServiceParameterListType->ParameterSet.array[v2gServiceParameterListType->ParameterSet.arrayLen++]);
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- grammarID = 949;
- break;
- case 1:
- done = 1;
- grammarID = 3;
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 949:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}ParameterSet), END_ELEMENT] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gServiceParameterListType->ParameterSet.arrayLen < v2gServiceParameterListType_ParameterSet_ARRAY_SIZE) {
- errn = decode_v2gParameterSetType(stream, &v2gServiceParameterListType->ParameterSet.array[v2gServiceParameterListType->ParameterSet.arrayLen++]);
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- grammarID = 950;
- break;
- case 1:
- done = 1;
- grammarID = 3;
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 950:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}ParameterSet), END_ELEMENT] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gServiceParameterListType->ParameterSet.arrayLen < v2gServiceParameterListType_ParameterSet_ARRAY_SIZE) {
- errn = decode_v2gParameterSetType(stream, &v2gServiceParameterListType->ParameterSet.array[v2gServiceParameterListType->ParameterSet.arrayLen++]);
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- grammarID = 951;
- break;
- case 1:
- done = 1;
- grammarID = 3;
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 951:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}ParameterSet), END_ELEMENT] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gServiceParameterListType->ParameterSet.arrayLen < v2gServiceParameterListType_ParameterSet_ARRAY_SIZE) {
- errn = decode_v2gParameterSetType(stream, &v2gServiceParameterListType->ParameterSet.array[v2gServiceParameterListType->ParameterSet.arrayLen++]);
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- grammarID = 952;
- break;
- case 1:
- done = 1;
- grammarID = 3;
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 952:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}ParameterSet), END_ELEMENT] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gServiceParameterListType->ParameterSet.arrayLen < v2gServiceParameterListType_ParameterSet_ARRAY_SIZE) {
- errn = decode_v2gParameterSetType(stream, &v2gServiceParameterListType->ParameterSet.array[v2gServiceParameterListType->ParameterSet.arrayLen++]);
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- grammarID = 953;
- break;
- case 1:
- done = 1;
- grammarID = 3;
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 953:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}ParameterSet), END_ELEMENT] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gServiceParameterListType->ParameterSet.arrayLen < v2gServiceParameterListType_ParameterSet_ARRAY_SIZE) {
- errn = decode_v2gParameterSetType(stream, &v2gServiceParameterListType->ParameterSet.array[v2gServiceParameterListType->ParameterSet.arrayLen++]);
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- grammarID = 954;
- break;
- case 1:
- done = 1;
- grammarID = 3;
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 954:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}ParameterSet), END_ELEMENT] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gServiceParameterListType->ParameterSet.arrayLen < v2gServiceParameterListType_ParameterSet_ARRAY_SIZE) {
- errn = decode_v2gParameterSetType(stream, &v2gServiceParameterListType->ParameterSet.array[v2gServiceParameterListType->ParameterSet.arrayLen++]);
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- grammarID = 955;
- break;
- case 1:
- done = 1;
- grammarID = 3;
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 955:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}ParameterSet), END_ELEMENT] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gServiceParameterListType->ParameterSet.arrayLen < v2gServiceParameterListType_ParameterSet_ARRAY_SIZE) {
- errn = decode_v2gParameterSetType(stream, &v2gServiceParameterListType->ParameterSet.array[v2gServiceParameterListType->ParameterSet.arrayLen++]);
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- grammarID = 956;
- break;
- case 1:
- done = 1;
- grammarID = 3;
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 956:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}ParameterSet), END_ELEMENT] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gServiceParameterListType->ParameterSet.arrayLen < v2gServiceParameterListType_ParameterSet_ARRAY_SIZE) {
- errn = decode_v2gParameterSetType(stream, &v2gServiceParameterListType->ParameterSet.array[v2gServiceParameterListType->ParameterSet.arrayLen++]);
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- grammarID = 957;
- break;
- case 1:
- done = 1;
- grammarID = 3;
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 957:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}ParameterSet), END_ELEMENT] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gServiceParameterListType->ParameterSet.arrayLen < v2gServiceParameterListType_ParameterSet_ARRAY_SIZE) {
- errn = decode_v2gParameterSetType(stream, &v2gServiceParameterListType->ParameterSet.array[v2gServiceParameterListType->ParameterSet.arrayLen++]);
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- grammarID = 958;
- break;
- case 1:
- done = 1;
- grammarID = 3;
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 958:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}ParameterSet), END_ELEMENT] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gServiceParameterListType->ParameterSet.arrayLen < v2gServiceParameterListType_ParameterSet_ARRAY_SIZE) {
- errn = decode_v2gParameterSetType(stream, &v2gServiceParameterListType->ParameterSet.array[v2gServiceParameterListType->ParameterSet.arrayLen++]);
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- grammarID = 959;
- break;
- case 1:
- done = 1;
- grammarID = 3;
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 959:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}ParameterSet), END_ELEMENT] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gServiceParameterListType->ParameterSet.arrayLen < v2gServiceParameterListType_ParameterSet_ARRAY_SIZE) {
- errn = decode_v2gParameterSetType(stream, &v2gServiceParameterListType->ParameterSet.array[v2gServiceParameterListType->ParameterSet.arrayLen++]);
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- grammarID = 960;
- break;
- case 1:
- done = 1;
- grammarID = 3;
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 960:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}ParameterSet), END_ELEMENT] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gServiceParameterListType->ParameterSet.arrayLen < v2gServiceParameterListType_ParameterSet_ARRAY_SIZE) {
- errn = decode_v2gParameterSetType(stream, &v2gServiceParameterListType->ParameterSet.array[v2gServiceParameterListType->ParameterSet.arrayLen++]);
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- grammarID = 961;
- break;
- case 1:
- done = 1;
- grammarID = 3;
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 961:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}ParameterSet), END_ELEMENT] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gServiceParameterListType->ParameterSet.arrayLen < v2gServiceParameterListType_ParameterSet_ARRAY_SIZE) {
- errn = decode_v2gParameterSetType(stream, &v2gServiceParameterListType->ParameterSet.array[v2gServiceParameterListType->ParameterSet.arrayLen++]);
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- grammarID = 962;
- break;
- case 1:
- done = 1;
- grammarID = 3;
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 962:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}ParameterSet), END_ELEMENT] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gServiceParameterListType->ParameterSet.arrayLen < v2gServiceParameterListType_ParameterSet_ARRAY_SIZE) {
- errn = decode_v2gParameterSetType(stream, &v2gServiceParameterListType->ParameterSet.array[v2gServiceParameterListType->ParameterSet.arrayLen++]);
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- grammarID = 963;
- break;
- case 1:
- done = 1;
- grammarID = 3;
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 963:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}ParameterSet), END_ELEMENT] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gServiceParameterListType->ParameterSet.arrayLen < v2gServiceParameterListType_ParameterSet_ARRAY_SIZE) {
- errn = decode_v2gParameterSetType(stream, &v2gServiceParameterListType->ParameterSet.array[v2gServiceParameterListType->ParameterSet.arrayLen++]);
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- grammarID = 964;
- break;
- case 1:
- done = 1;
- grammarID = 3;
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 964:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}ParameterSet), END_ELEMENT] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gServiceParameterListType->ParameterSet.arrayLen < v2gServiceParameterListType_ParameterSet_ARRAY_SIZE) {
- errn = decode_v2gParameterSetType(stream, &v2gServiceParameterListType->ParameterSet.array[v2gServiceParameterListType->ParameterSet.arrayLen++]);
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- grammarID = 965;
- break;
- case 1:
- done = 1;
- grammarID = 3;
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 965:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}ParameterSet), END_ELEMENT] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gServiceParameterListType->ParameterSet.arrayLen < v2gServiceParameterListType_ParameterSet_ARRAY_SIZE) {
- errn = decode_v2gParameterSetType(stream, &v2gServiceParameterListType->ParameterSet.array[v2gServiceParameterListType->ParameterSet.arrayLen++]);
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- grammarID = 966;
- break;
- case 1:
- done = 1;
- grammarID = 3;
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 966:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}ParameterSet), END_ELEMENT] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gServiceParameterListType->ParameterSet.arrayLen < v2gServiceParameterListType_ParameterSet_ARRAY_SIZE) {
- errn = decode_v2gParameterSetType(stream, &v2gServiceParameterListType->ParameterSet.array[v2gServiceParameterListType->ParameterSet.arrayLen++]);
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- grammarID = 967;
- break;
- case 1:
- done = 1;
- grammarID = 3;
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 967:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}ParameterSet), END_ELEMENT] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gServiceParameterListType->ParameterSet.arrayLen < v2gServiceParameterListType_ParameterSet_ARRAY_SIZE) {
- errn = decode_v2gParameterSetType(stream, &v2gServiceParameterListType->ParameterSet.array[v2gServiceParameterListType->ParameterSet.arrayLen++]);
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- grammarID = 968;
- break;
- case 1:
- done = 1;
- grammarID = 3;
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 968:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}ParameterSet), END_ELEMENT] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gServiceParameterListType->ParameterSet.arrayLen < v2gServiceParameterListType_ParameterSet_ARRAY_SIZE) {
- errn = decode_v2gParameterSetType(stream, &v2gServiceParameterListType->ParameterSet.array[v2gServiceParameterListType->ParameterSet.arrayLen++]);
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- grammarID = 969;
- break;
- case 1:
- done = 1;
- grammarID = 3;
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 969:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}ParameterSet), END_ELEMENT] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gServiceParameterListType->ParameterSet.arrayLen < v2gServiceParameterListType_ParameterSet_ARRAY_SIZE) {
- errn = decode_v2gParameterSetType(stream, &v2gServiceParameterListType->ParameterSet.array[v2gServiceParameterListType->ParameterSet.arrayLen++]);
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- grammarID = 970;
- break;
- case 1:
- done = 1;
- grammarID = 3;
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 970:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}ParameterSet), END_ELEMENT] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gServiceParameterListType->ParameterSet.arrayLen < v2gServiceParameterListType_ParameterSet_ARRAY_SIZE) {
- errn = decode_v2gParameterSetType(stream, &v2gServiceParameterListType->ParameterSet.array[v2gServiceParameterListType->ParameterSet.arrayLen++]);
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- grammarID = 971;
- break;
- case 1:
- done = 1;
- grammarID = 3;
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 971:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}ParameterSet), END_ELEMENT] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gServiceParameterListType->ParameterSet.arrayLen < v2gServiceParameterListType_ParameterSet_ARRAY_SIZE) {
- errn = decode_v2gParameterSetType(stream, &v2gServiceParameterListType->ParameterSet.array[v2gServiceParameterListType->ParameterSet.arrayLen++]);
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- grammarID = 972;
- break;
- case 1:
- done = 1;
- grammarID = 3;
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 972:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}ParameterSet), END_ELEMENT] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gServiceParameterListType->ParameterSet.arrayLen < v2gServiceParameterListType_ParameterSet_ARRAY_SIZE) {
- errn = decode_v2gParameterSetType(stream, &v2gServiceParameterListType->ParameterSet.array[v2gServiceParameterListType->ParameterSet.arrayLen++]);
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- grammarID = 973;
- break;
- case 1:
- done = 1;
- grammarID = 3;
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 973:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}ParameterSet), END_ELEMENT] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gServiceParameterListType->ParameterSet.arrayLen < v2gServiceParameterListType_ParameterSet_ARRAY_SIZE) {
- errn = decode_v2gParameterSetType(stream, &v2gServiceParameterListType->ParameterSet.array[v2gServiceParameterListType->ParameterSet.arrayLen++]);
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- grammarID = 974;
- break;
- case 1:
- done = 1;
- grammarID = 3;
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 974:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}ParameterSet), END_ELEMENT] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gServiceParameterListType->ParameterSet.arrayLen < v2gServiceParameterListType_ParameterSet_ARRAY_SIZE) {
- errn = decode_v2gParameterSetType(stream, &v2gServiceParameterListType->ParameterSet.array[v2gServiceParameterListType->ParameterSet.arrayLen++]);
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- grammarID = 975;
- break;
- case 1:
- done = 1;
- grammarID = 3;
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 975:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}ParameterSet), END_ELEMENT] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gServiceParameterListType->ParameterSet.arrayLen < v2gServiceParameterListType_ParameterSet_ARRAY_SIZE) {
- errn = decode_v2gParameterSetType(stream, &v2gServiceParameterListType->ParameterSet.array[v2gServiceParameterListType->ParameterSet.arrayLen++]);
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- grammarID = 976;
- break;
- case 1:
- done = 1;
- grammarID = 3;
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 976:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}ParameterSet), END_ELEMENT] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gServiceParameterListType->ParameterSet.arrayLen < v2gServiceParameterListType_ParameterSet_ARRAY_SIZE) {
- errn = decode_v2gParameterSetType(stream, &v2gServiceParameterListType->ParameterSet.array[v2gServiceParameterListType->ParameterSet.arrayLen++]);
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- grammarID = 977;
- break;
- case 1:
- done = 1;
- grammarID = 3;
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 977:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}ParameterSet), END_ELEMENT] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gServiceParameterListType->ParameterSet.arrayLen < v2gServiceParameterListType_ParameterSet_ARRAY_SIZE) {
- errn = decode_v2gParameterSetType(stream, &v2gServiceParameterListType->ParameterSet.array[v2gServiceParameterListType->ParameterSet.arrayLen++]);
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- grammarID = 978;
- break;
- case 1:
- done = 1;
- grammarID = 3;
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 978:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}ParameterSet), END_ELEMENT] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gServiceParameterListType->ParameterSet.arrayLen < v2gServiceParameterListType_ParameterSet_ARRAY_SIZE) {
- errn = decode_v2gParameterSetType(stream, &v2gServiceParameterListType->ParameterSet.array[v2gServiceParameterListType->ParameterSet.arrayLen++]);
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- grammarID = 979;
- break;
- case 1:
- done = 1;
- grammarID = 3;
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 979:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}ParameterSet), END_ELEMENT] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gServiceParameterListType->ParameterSet.arrayLen < v2gServiceParameterListType_ParameterSet_ARRAY_SIZE) {
- errn = decode_v2gParameterSetType(stream, &v2gServiceParameterListType->ParameterSet.array[v2gServiceParameterListType->ParameterSet.arrayLen++]);
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- grammarID = 980;
- break;
- case 1:
- done = 1;
- grammarID = 3;
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 980:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}ParameterSet), END_ELEMENT] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gServiceParameterListType->ParameterSet.arrayLen < v2gServiceParameterListType_ParameterSet_ARRAY_SIZE) {
- errn = decode_v2gParameterSetType(stream, &v2gServiceParameterListType->ParameterSet.array[v2gServiceParameterListType->ParameterSet.arrayLen++]);
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- grammarID = 981;
- break;
- case 1:
- done = 1;
- grammarID = 3;
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 981:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}ParameterSet), END_ELEMENT] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gServiceParameterListType->ParameterSet.arrayLen < v2gServiceParameterListType_ParameterSet_ARRAY_SIZE) {
- errn = decode_v2gParameterSetType(stream, &v2gServiceParameterListType->ParameterSet.array[v2gServiceParameterListType->ParameterSet.arrayLen++]);
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- grammarID = 982;
- break;
- case 1:
- done = 1;
- grammarID = 3;
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 982:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}ParameterSet), END_ELEMENT] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gServiceParameterListType->ParameterSet.arrayLen < v2gServiceParameterListType_ParameterSet_ARRAY_SIZE) {
- errn = decode_v2gParameterSetType(stream, &v2gServiceParameterListType->ParameterSet.array[v2gServiceParameterListType->ParameterSet.arrayLen++]);
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- grammarID = 983;
- break;
- case 1:
- done = 1;
- grammarID = 3;
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 983:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}ParameterSet), END_ELEMENT] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gServiceParameterListType->ParameterSet.arrayLen < v2gServiceParameterListType_ParameterSet_ARRAY_SIZE) {
- errn = decode_v2gParameterSetType(stream, &v2gServiceParameterListType->ParameterSet.array[v2gServiceParameterListType->ParameterSet.arrayLen++]);
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- grammarID = 984;
- break;
- case 1:
- done = 1;
- grammarID = 3;
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 984:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}ParameterSet), END_ELEMENT] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gServiceParameterListType->ParameterSet.arrayLen < v2gServiceParameterListType_ParameterSet_ARRAY_SIZE) {
- errn = decode_v2gParameterSetType(stream, &v2gServiceParameterListType->ParameterSet.array[v2gServiceParameterListType->ParameterSet.arrayLen++]);
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- grammarID = 985;
- break;
- case 1:
- done = 1;
- grammarID = 3;
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 985:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}ParameterSet), END_ELEMENT] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gServiceParameterListType->ParameterSet.arrayLen < v2gServiceParameterListType_ParameterSet_ARRAY_SIZE) {
- errn = decode_v2gParameterSetType(stream, &v2gServiceParameterListType->ParameterSet.array[v2gServiceParameterListType->ParameterSet.arrayLen++]);
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- grammarID = 986;
- break;
- case 1:
- done = 1;
- grammarID = 3;
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 986:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}ParameterSet), END_ELEMENT] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gServiceParameterListType->ParameterSet.arrayLen < v2gServiceParameterListType_ParameterSet_ARRAY_SIZE) {
- errn = decode_v2gParameterSetType(stream, &v2gServiceParameterListType->ParameterSet.array[v2gServiceParameterListType->ParameterSet.arrayLen++]);
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- grammarID = 987;
- break;
- case 1:
- done = 1;
- grammarID = 3;
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 987:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}ParameterSet), END_ELEMENT] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gServiceParameterListType->ParameterSet.arrayLen < v2gServiceParameterListType_ParameterSet_ARRAY_SIZE) {
- errn = decode_v2gParameterSetType(stream, &v2gServiceParameterListType->ParameterSet.array[v2gServiceParameterListType->ParameterSet.arrayLen++]);
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- grammarID = 988;
- break;
- case 1:
- done = 1;
- grammarID = 3;
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 988:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}ParameterSet), END_ELEMENT] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gServiceParameterListType->ParameterSet.arrayLen < v2gServiceParameterListType_ParameterSet_ARRAY_SIZE) {
- errn = decode_v2gParameterSetType(stream, &v2gServiceParameterListType->ParameterSet.array[v2gServiceParameterListType->ParameterSet.arrayLen++]);
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- grammarID = 989;
- break;
- case 1:
- done = 1;
- grammarID = 3;
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 989:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}ParameterSet), END_ELEMENT] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gServiceParameterListType->ParameterSet.arrayLen < v2gServiceParameterListType_ParameterSet_ARRAY_SIZE) {
- errn = decode_v2gParameterSetType(stream, &v2gServiceParameterListType->ParameterSet.array[v2gServiceParameterListType->ParameterSet.arrayLen++]);
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- grammarID = 990;
- break;
- case 1:
- done = 1;
- grammarID = 3;
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 990:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}ParameterSet), END_ELEMENT] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gServiceParameterListType->ParameterSet.arrayLen < v2gServiceParameterListType_ParameterSet_ARRAY_SIZE) {
- errn = decode_v2gParameterSetType(stream, &v2gServiceParameterListType->ParameterSet.array[v2gServiceParameterListType->ParameterSet.arrayLen++]);
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- grammarID = 991;
- break;
- case 1:
- done = 1;
- grammarID = 3;
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 991:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}ParameterSet), END_ELEMENT] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gServiceParameterListType->ParameterSet.arrayLen < v2gServiceParameterListType_ParameterSet_ARRAY_SIZE) {
- errn = decode_v2gParameterSetType(stream, &v2gServiceParameterListType->ParameterSet.array[v2gServiceParameterListType->ParameterSet.arrayLen++]);
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- grammarID = 992;
- break;
- case 1:
- done = 1;
- grammarID = 3;
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 992:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}ParameterSet), END_ELEMENT] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gServiceParameterListType->ParameterSet.arrayLen < v2gServiceParameterListType_ParameterSet_ARRAY_SIZE) {
- errn = decode_v2gParameterSetType(stream, &v2gServiceParameterListType->ParameterSet.array[v2gServiceParameterListType->ParameterSet.arrayLen++]);
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- grammarID = 993;
- break;
- case 1:
- done = 1;
- grammarID = 3;
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 993:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}ParameterSet), END_ELEMENT] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gServiceParameterListType->ParameterSet.arrayLen < v2gServiceParameterListType_ParameterSet_ARRAY_SIZE) {
- errn = decode_v2gParameterSetType(stream, &v2gServiceParameterListType->ParameterSet.array[v2gServiceParameterListType->ParameterSet.arrayLen++]);
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- grammarID = 994;
- break;
- case 1:
- done = 1;
- grammarID = 3;
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 994:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}ParameterSet), END_ELEMENT] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gServiceParameterListType->ParameterSet.arrayLen < v2gServiceParameterListType_ParameterSet_ARRAY_SIZE) {
- errn = decode_v2gParameterSetType(stream, &v2gServiceParameterListType->ParameterSet.array[v2gServiceParameterListType->ParameterSet.arrayLen++]);
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- grammarID = 995;
- break;
- case 1:
- done = 1;
- grammarID = 3;
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 995:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}ParameterSet), END_ELEMENT] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gServiceParameterListType->ParameterSet.arrayLen < v2gServiceParameterListType_ParameterSet_ARRAY_SIZE) {
- errn = decode_v2gParameterSetType(stream, &v2gServiceParameterListType->ParameterSet.array[v2gServiceParameterListType->ParameterSet.arrayLen++]);
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- grammarID = 996;
- break;
- case 1:
- done = 1;
- grammarID = 3;
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 996:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}ParameterSet), END_ELEMENT] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gServiceParameterListType->ParameterSet.arrayLen < v2gServiceParameterListType_ParameterSet_ARRAY_SIZE) {
- errn = decode_v2gParameterSetType(stream, &v2gServiceParameterListType->ParameterSet.array[v2gServiceParameterListType->ParameterSet.arrayLen++]);
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- grammarID = 997;
- break;
- case 1:
- done = 1;
- grammarID = 3;
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 997:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}ParameterSet), END_ELEMENT] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gServiceParameterListType->ParameterSet.arrayLen < v2gServiceParameterListType_ParameterSet_ARRAY_SIZE) {
- errn = decode_v2gParameterSetType(stream, &v2gServiceParameterListType->ParameterSet.array[v2gServiceParameterListType->ParameterSet.arrayLen++]);
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- grammarID = 998;
- break;
- case 1:
- done = 1;
- grammarID = 3;
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 998:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}ParameterSet), END_ELEMENT] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gServiceParameterListType->ParameterSet.arrayLen < v2gServiceParameterListType_ParameterSet_ARRAY_SIZE) {
- errn = decode_v2gParameterSetType(stream, &v2gServiceParameterListType->ParameterSet.array[v2gServiceParameterListType->ParameterSet.arrayLen++]);
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- grammarID = 999;
- break;
- case 1:
- done = 1;
- grammarID = 3;
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 999:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}ParameterSet), END_ELEMENT] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gServiceParameterListType->ParameterSet.arrayLen < v2gServiceParameterListType_ParameterSet_ARRAY_SIZE) {
- errn = decode_v2gParameterSetType(stream, &v2gServiceParameterListType->ParameterSet.array[v2gServiceParameterListType->ParameterSet.arrayLen++]);
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- grammarID = 1000;
- break;
- case 1:
- done = 1;
- grammarID = 3;
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 1000:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}ParameterSet), END_ELEMENT] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gServiceParameterListType->ParameterSet.arrayLen < v2gServiceParameterListType_ParameterSet_ARRAY_SIZE) {
- errn = decode_v2gParameterSetType(stream, &v2gServiceParameterListType->ParameterSet.array[v2gServiceParameterListType->ParameterSet.arrayLen++]);
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- grammarID = 1001;
- break;
- case 1:
- done = 1;
- grammarID = 3;
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 1001:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}ParameterSet), END_ELEMENT] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gServiceParameterListType->ParameterSet.arrayLen < v2gServiceParameterListType_ParameterSet_ARRAY_SIZE) {
- errn = decode_v2gParameterSetType(stream, &v2gServiceParameterListType->ParameterSet.array[v2gServiceParameterListType->ParameterSet.arrayLen++]);
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- grammarID = 1002;
- break;
- case 1:
- done = 1;
- grammarID = 3;
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 1002:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}ParameterSet), END_ELEMENT] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gServiceParameterListType->ParameterSet.arrayLen < v2gServiceParameterListType_ParameterSet_ARRAY_SIZE) {
- errn = decode_v2gParameterSetType(stream, &v2gServiceParameterListType->ParameterSet.array[v2gServiceParameterListType->ParameterSet.arrayLen++]);
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- grammarID = 1003;
- break;
- case 1:
- done = 1;
- grammarID = 3;
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 1003:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}ParameterSet), END_ELEMENT] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gServiceParameterListType->ParameterSet.arrayLen < v2gServiceParameterListType_ParameterSet_ARRAY_SIZE) {
- errn = decode_v2gParameterSetType(stream, &v2gServiceParameterListType->ParameterSet.array[v2gServiceParameterListType->ParameterSet.arrayLen++]);
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- grammarID = 1004;
- break;
- case 1:
- done = 1;
- grammarID = 3;
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 1004:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}ParameterSet), END_ELEMENT] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gServiceParameterListType->ParameterSet.arrayLen < v2gServiceParameterListType_ParameterSet_ARRAY_SIZE) {
- errn = decode_v2gParameterSetType(stream, &v2gServiceParameterListType->ParameterSet.array[v2gServiceParameterListType->ParameterSet.arrayLen++]);
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- grammarID = 1005;
- break;
- case 1:
- done = 1;
- grammarID = 3;
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 1005:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}ParameterSet), END_ELEMENT] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gServiceParameterListType->ParameterSet.arrayLen < v2gServiceParameterListType_ParameterSet_ARRAY_SIZE) {
- errn = decode_v2gParameterSetType(stream, &v2gServiceParameterListType->ParameterSet.array[v2gServiceParameterListType->ParameterSet.arrayLen++]);
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- grammarID = 1006;
- break;
- case 1:
- done = 1;
- grammarID = 3;
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 1006:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}ParameterSet), END_ELEMENT] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gServiceParameterListType->ParameterSet.arrayLen < v2gServiceParameterListType_ParameterSet_ARRAY_SIZE) {
- errn = decode_v2gParameterSetType(stream, &v2gServiceParameterListType->ParameterSet.array[v2gServiceParameterListType->ParameterSet.arrayLen++]);
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- grammarID = 1007;
- break;
- case 1:
- done = 1;
- grammarID = 3;
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 1007:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}ParameterSet), END_ELEMENT] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gServiceParameterListType->ParameterSet.arrayLen < v2gServiceParameterListType_ParameterSet_ARRAY_SIZE) {
- errn = decode_v2gParameterSetType(stream, &v2gServiceParameterListType->ParameterSet.array[v2gServiceParameterListType->ParameterSet.arrayLen++]);
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- grammarID = 1008;
- break;
- case 1:
- done = 1;
- grammarID = 3;
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 1008:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}ParameterSet), END_ELEMENT] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gServiceParameterListType->ParameterSet.arrayLen < v2gServiceParameterListType_ParameterSet_ARRAY_SIZE) {
- errn = decode_v2gParameterSetType(stream, &v2gServiceParameterListType->ParameterSet.array[v2gServiceParameterListType->ParameterSet.arrayLen++]);
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- grammarID = 1009;
- break;
- case 1:
- done = 1;
- grammarID = 3;
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 1009:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}ParameterSet), END_ELEMENT] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gServiceParameterListType->ParameterSet.arrayLen < v2gServiceParameterListType_ParameterSet_ARRAY_SIZE) {
- errn = decode_v2gParameterSetType(stream, &v2gServiceParameterListType->ParameterSet.array[v2gServiceParameterListType->ParameterSet.arrayLen++]);
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- grammarID = 1010;
- break;
- case 1:
- done = 1;
- grammarID = 3;
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 1010:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}ParameterSet), END_ELEMENT] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gServiceParameterListType->ParameterSet.arrayLen < v2gServiceParameterListType_ParameterSet_ARRAY_SIZE) {
- errn = decode_v2gParameterSetType(stream, &v2gServiceParameterListType->ParameterSet.array[v2gServiceParameterListType->ParameterSet.arrayLen++]);
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- grammarID = 1011;
- break;
- case 1:
- done = 1;
- grammarID = 3;
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 1011:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}ParameterSet), END_ELEMENT] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gServiceParameterListType->ParameterSet.arrayLen < v2gServiceParameterListType_ParameterSet_ARRAY_SIZE) {
- errn = decode_v2gParameterSetType(stream, &v2gServiceParameterListType->ParameterSet.array[v2gServiceParameterListType->ParameterSet.arrayLen++]);
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- grammarID = 1012;
- break;
- case 1:
- done = 1;
- grammarID = 3;
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 1012:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}ParameterSet), END_ELEMENT] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gServiceParameterListType->ParameterSet.arrayLen < v2gServiceParameterListType_ParameterSet_ARRAY_SIZE) {
- errn = decode_v2gParameterSetType(stream, &v2gServiceParameterListType->ParameterSet.array[v2gServiceParameterListType->ParameterSet.arrayLen++]);
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- grammarID = 1013;
- break;
- case 1:
- done = 1;
- grammarID = 3;
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 1013:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}ParameterSet), END_ELEMENT] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gServiceParameterListType->ParameterSet.arrayLen < v2gServiceParameterListType_ParameterSet_ARRAY_SIZE) {
- errn = decode_v2gParameterSetType(stream, &v2gServiceParameterListType->ParameterSet.array[v2gServiceParameterListType->ParameterSet.arrayLen++]);
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- grammarID = 1014;
- break;
- case 1:
- done = 1;
- grammarID = 3;
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 1014:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}ParameterSet), END_ELEMENT] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gServiceParameterListType->ParameterSet.arrayLen < v2gServiceParameterListType_ParameterSet_ARRAY_SIZE) {
- errn = decode_v2gParameterSetType(stream, &v2gServiceParameterListType->ParameterSet.array[v2gServiceParameterListType->ParameterSet.arrayLen++]);
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- grammarID = 1015;
- break;
- case 1:
- done = 1;
- grammarID = 3;
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 1015:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}ParameterSet), END_ELEMENT] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gServiceParameterListType->ParameterSet.arrayLen < v2gServiceParameterListType_ParameterSet_ARRAY_SIZE) {
- errn = decode_v2gParameterSetType(stream, &v2gServiceParameterListType->ParameterSet.array[v2gServiceParameterListType->ParameterSet.arrayLen++]);
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- grammarID = 1016;
- break;
- case 1:
- done = 1;
- grammarID = 3;
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 1016:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}ParameterSet), END_ELEMENT] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gServiceParameterListType->ParameterSet.arrayLen < v2gServiceParameterListType_ParameterSet_ARRAY_SIZE) {
- errn = decode_v2gParameterSetType(stream, &v2gServiceParameterListType->ParameterSet.array[v2gServiceParameterListType->ParameterSet.arrayLen++]);
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- grammarID = 1017;
- break;
- case 1:
- done = 1;
- grammarID = 3;
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 1017:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}ParameterSet), END_ELEMENT] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gServiceParameterListType->ParameterSet.arrayLen < v2gServiceParameterListType_ParameterSet_ARRAY_SIZE) {
- errn = decode_v2gParameterSetType(stream, &v2gServiceParameterListType->ParameterSet.array[v2gServiceParameterListType->ParameterSet.arrayLen++]);
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- grammarID = 1018;
- break;
- case 1:
- done = 1;
- grammarID = 3;
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 1018:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}ParameterSet), END_ELEMENT] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gServiceParameterListType->ParameterSet.arrayLen < v2gServiceParameterListType_ParameterSet_ARRAY_SIZE) {
- errn = decode_v2gParameterSetType(stream, &v2gServiceParameterListType->ParameterSet.array[v2gServiceParameterListType->ParameterSet.arrayLen++]);
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- grammarID = 1019;
- break;
- case 1:
- done = 1;
- grammarID = 3;
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 1019:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}ParameterSet), END_ELEMENT] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gServiceParameterListType->ParameterSet.arrayLen < v2gServiceParameterListType_ParameterSet_ARRAY_SIZE) {
- errn = decode_v2gParameterSetType(stream, &v2gServiceParameterListType->ParameterSet.array[v2gServiceParameterListType->ParameterSet.arrayLen++]);
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- grammarID = 1020;
- break;
- case 1:
- done = 1;
- grammarID = 3;
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 1020:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}ParameterSet), END_ELEMENT] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gServiceParameterListType->ParameterSet.arrayLen < v2gServiceParameterListType_ParameterSet_ARRAY_SIZE) {
- errn = decode_v2gParameterSetType(stream, &v2gServiceParameterListType->ParameterSet.array[v2gServiceParameterListType->ParameterSet.arrayLen++]);
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- grammarID = 1021;
- break;
- case 1:
- done = 1;
- grammarID = 3;
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 1021:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}ParameterSet), END_ELEMENT] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gServiceParameterListType->ParameterSet.arrayLen < v2gServiceParameterListType_ParameterSet_ARRAY_SIZE) {
- errn = decode_v2gParameterSetType(stream, &v2gServiceParameterListType->ParameterSet.array[v2gServiceParameterListType->ParameterSet.arrayLen++]);
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- grammarID = 1022;
- break;
- case 1:
- done = 1;
- grammarID = 3;
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 1022:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}ParameterSet), END_ELEMENT] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gServiceParameterListType->ParameterSet.arrayLen < v2gServiceParameterListType_ParameterSet_ARRAY_SIZE) {
- errn = decode_v2gParameterSetType(stream, &v2gServiceParameterListType->ParameterSet.array[v2gServiceParameterListType->ParameterSet.arrayLen++]);
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- grammarID = 1023;
- break;
- case 1:
- done = 1;
- grammarID = 3;
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 1023:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}ParameterSet), END_ELEMENT] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gServiceParameterListType->ParameterSet.arrayLen < v2gServiceParameterListType_ParameterSet_ARRAY_SIZE) {
- errn = decode_v2gParameterSetType(stream, &v2gServiceParameterListType->ParameterSet.array[v2gServiceParameterListType->ParameterSet.arrayLen++]);
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- grammarID = 1024;
- break;
- case 1:
- done = 1;
- grammarID = 3;
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 1024:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}ParameterSet), END_ELEMENT] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gServiceParameterListType->ParameterSet.arrayLen < v2gServiceParameterListType_ParameterSet_ARRAY_SIZE) {
- errn = decode_v2gParameterSetType(stream, &v2gServiceParameterListType->ParameterSet.array[v2gServiceParameterListType->ParameterSet.arrayLen++]);
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- grammarID = 1025;
- break;
- case 1:
- done = 1;
- grammarID = 3;
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 1025:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}ParameterSet), END_ELEMENT] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gServiceParameterListType->ParameterSet.arrayLen < v2gServiceParameterListType_ParameterSet_ARRAY_SIZE) {
- errn = decode_v2gParameterSetType(stream, &v2gServiceParameterListType->ParameterSet.array[v2gServiceParameterListType->ParameterSet.arrayLen++]);
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- grammarID = 1026;
- break;
- case 1:
- done = 1;
- grammarID = 3;
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 1026:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}ParameterSet), END_ELEMENT] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gServiceParameterListType->ParameterSet.arrayLen < v2gServiceParameterListType_ParameterSet_ARRAY_SIZE) {
- errn = decode_v2gParameterSetType(stream, &v2gServiceParameterListType->ParameterSet.array[v2gServiceParameterListType->ParameterSet.arrayLen++]);
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- grammarID = 1027;
- break;
- case 1:
- done = 1;
- grammarID = 3;
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 1027:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}ParameterSet), END_ELEMENT] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gServiceParameterListType->ParameterSet.arrayLen < v2gServiceParameterListType_ParameterSet_ARRAY_SIZE) {
- errn = decode_v2gParameterSetType(stream, &v2gServiceParameterListType->ParameterSet.array[v2gServiceParameterListType->ParameterSet.arrayLen++]);
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- grammarID = 1028;
- break;
- case 1:
- done = 1;
- grammarID = 3;
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 1028:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}ParameterSet), END_ELEMENT] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gServiceParameterListType->ParameterSet.arrayLen < v2gServiceParameterListType_ParameterSet_ARRAY_SIZE) {
- errn = decode_v2gParameterSetType(stream, &v2gServiceParameterListType->ParameterSet.array[v2gServiceParameterListType->ParameterSet.arrayLen++]);
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- grammarID = 1029;
- break;
- case 1:
- done = 1;
- grammarID = 3;
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 1029:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}ParameterSet), END_ELEMENT] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gServiceParameterListType->ParameterSet.arrayLen < v2gServiceParameterListType_ParameterSet_ARRAY_SIZE) {
- errn = decode_v2gParameterSetType(stream, &v2gServiceParameterListType->ParameterSet.array[v2gServiceParameterListType->ParameterSet.arrayLen++]);
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- grammarID = 1030;
- break;
- case 1:
- done = 1;
- grammarID = 3;
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 1030:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}ParameterSet), END_ELEMENT] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gServiceParameterListType->ParameterSet.arrayLen < v2gServiceParameterListType_ParameterSet_ARRAY_SIZE) {
- errn = decode_v2gParameterSetType(stream, &v2gServiceParameterListType->ParameterSet.array[v2gServiceParameterListType->ParameterSet.arrayLen++]);
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- grammarID = 1031;
- break;
- case 1:
- done = 1;
- grammarID = 3;
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 1031:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}ParameterSet), END_ELEMENT] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gServiceParameterListType->ParameterSet.arrayLen < v2gServiceParameterListType_ParameterSet_ARRAY_SIZE) {
- errn = decode_v2gParameterSetType(stream, &v2gServiceParameterListType->ParameterSet.array[v2gServiceParameterListType->ParameterSet.arrayLen++]);
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- grammarID = 1032;
- break;
- case 1:
- done = 1;
- grammarID = 3;
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 1032:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}ParameterSet), END_ELEMENT] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gServiceParameterListType->ParameterSet.arrayLen < v2gServiceParameterListType_ParameterSet_ARRAY_SIZE) {
- errn = decode_v2gParameterSetType(stream, &v2gServiceParameterListType->ParameterSet.array[v2gServiceParameterListType->ParameterSet.arrayLen++]);
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- grammarID = 1033;
- break;
- case 1:
- done = 1;
- grammarID = 3;
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 1033:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}ParameterSet), END_ELEMENT] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gServiceParameterListType->ParameterSet.arrayLen < v2gServiceParameterListType_ParameterSet_ARRAY_SIZE) {
- errn = decode_v2gParameterSetType(stream, &v2gServiceParameterListType->ParameterSet.array[v2gServiceParameterListType->ParameterSet.arrayLen++]);
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- grammarID = 1034;
- break;
- case 1:
- done = 1;
- grammarID = 3;
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 1034:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}ParameterSet), END_ELEMENT] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gServiceParameterListType->ParameterSet.arrayLen < v2gServiceParameterListType_ParameterSet_ARRAY_SIZE) {
- errn = decode_v2gParameterSetType(stream, &v2gServiceParameterListType->ParameterSet.array[v2gServiceParameterListType->ParameterSet.arrayLen++]);
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- grammarID = 1035;
- break;
- case 1:
- done = 1;
- grammarID = 3;
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 1035:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}ParameterSet), END_ELEMENT] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gServiceParameterListType->ParameterSet.arrayLen < v2gServiceParameterListType_ParameterSet_ARRAY_SIZE) {
- errn = decode_v2gParameterSetType(stream, &v2gServiceParameterListType->ParameterSet.array[v2gServiceParameterListType->ParameterSet.arrayLen++]);
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- grammarID = 1036;
- break;
- case 1:
- done = 1;
- grammarID = 3;
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 1036:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}ParameterSet), END_ELEMENT] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gServiceParameterListType->ParameterSet.arrayLen < v2gServiceParameterListType_ParameterSet_ARRAY_SIZE) {
- errn = decode_v2gParameterSetType(stream, &v2gServiceParameterListType->ParameterSet.array[v2gServiceParameterListType->ParameterSet.arrayLen++]);
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- grammarID = 1037;
- break;
- case 1:
- done = 1;
- grammarID = 3;
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 1037:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}ParameterSet), END_ELEMENT] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gServiceParameterListType->ParameterSet.arrayLen < v2gServiceParameterListType_ParameterSet_ARRAY_SIZE) {
- errn = decode_v2gParameterSetType(stream, &v2gServiceParameterListType->ParameterSet.array[v2gServiceParameterListType->ParameterSet.arrayLen++]);
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- grammarID = 1038;
- break;
- case 1:
- done = 1;
- grammarID = 3;
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 1038:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}ParameterSet), END_ELEMENT] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gServiceParameterListType->ParameterSet.arrayLen < v2gServiceParameterListType_ParameterSet_ARRAY_SIZE) {
- errn = decode_v2gParameterSetType(stream, &v2gServiceParameterListType->ParameterSet.array[v2gServiceParameterListType->ParameterSet.arrayLen++]);
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- grammarID = 1039;
- break;
- case 1:
- done = 1;
- grammarID = 3;
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 1039:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}ParameterSet), END_ELEMENT] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gServiceParameterListType->ParameterSet.arrayLen < v2gServiceParameterListType_ParameterSet_ARRAY_SIZE) {
- errn = decode_v2gParameterSetType(stream, &v2gServiceParameterListType->ParameterSet.array[v2gServiceParameterListType->ParameterSet.arrayLen++]);
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- grammarID = 1040;
- break;
- case 1:
- done = 1;
- grammarID = 3;
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 1040:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}ParameterSet), END_ELEMENT] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gServiceParameterListType->ParameterSet.arrayLen < v2gServiceParameterListType_ParameterSet_ARRAY_SIZE) {
- errn = decode_v2gParameterSetType(stream, &v2gServiceParameterListType->ParameterSet.array[v2gServiceParameterListType->ParameterSet.arrayLen++]);
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- grammarID = 1041;
- break;
- case 1:
- done = 1;
- grammarID = 3;
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 1041:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}ParameterSet), END_ELEMENT] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gServiceParameterListType->ParameterSet.arrayLen < v2gServiceParameterListType_ParameterSet_ARRAY_SIZE) {
- errn = decode_v2gParameterSetType(stream, &v2gServiceParameterListType->ParameterSet.array[v2gServiceParameterListType->ParameterSet.arrayLen++]);
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- grammarID = 1042;
- break;
- case 1:
- done = 1;
- grammarID = 3;
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 1042:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}ParameterSet), END_ELEMENT] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gServiceParameterListType->ParameterSet.arrayLen < v2gServiceParameterListType_ParameterSet_ARRAY_SIZE) {
- errn = decode_v2gParameterSetType(stream, &v2gServiceParameterListType->ParameterSet.array[v2gServiceParameterListType->ParameterSet.arrayLen++]);
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- grammarID = 1043;
- break;
- case 1:
- done = 1;
- grammarID = 3;
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 1043:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}ParameterSet), END_ELEMENT] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gServiceParameterListType->ParameterSet.arrayLen < v2gServiceParameterListType_ParameterSet_ARRAY_SIZE) {
- errn = decode_v2gParameterSetType(stream, &v2gServiceParameterListType->ParameterSet.array[v2gServiceParameterListType->ParameterSet.arrayLen++]);
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- grammarID = 1044;
- break;
- case 1:
- done = 1;
- grammarID = 3;
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 1044:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}ParameterSet), END_ELEMENT] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gServiceParameterListType->ParameterSet.arrayLen < v2gServiceParameterListType_ParameterSet_ARRAY_SIZE) {
- errn = decode_v2gParameterSetType(stream, &v2gServiceParameterListType->ParameterSet.array[v2gServiceParameterListType->ParameterSet.arrayLen++]);
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- grammarID = 1045;
- break;
- case 1:
- done = 1;
- grammarID = 3;
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 1045:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}ParameterSet), END_ELEMENT] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gServiceParameterListType->ParameterSet.arrayLen < v2gServiceParameterListType_ParameterSet_ARRAY_SIZE) {
- errn = decode_v2gParameterSetType(stream, &v2gServiceParameterListType->ParameterSet.array[v2gServiceParameterListType->ParameterSet.arrayLen++]);
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- grammarID = 1046;
- break;
- case 1:
- done = 1;
- grammarID = 3;
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 1046:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}ParameterSet), END_ELEMENT] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gServiceParameterListType->ParameterSet.arrayLen < v2gServiceParameterListType_ParameterSet_ARRAY_SIZE) {
- errn = decode_v2gParameterSetType(stream, &v2gServiceParameterListType->ParameterSet.array[v2gServiceParameterListType->ParameterSet.arrayLen++]);
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- grammarID = 1047;
- break;
- case 1:
- done = 1;
- grammarID = 3;
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 1047:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}ParameterSet), END_ELEMENT] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gServiceParameterListType->ParameterSet.arrayLen < v2gServiceParameterListType_ParameterSet_ARRAY_SIZE) {
- errn = decode_v2gParameterSetType(stream, &v2gServiceParameterListType->ParameterSet.array[v2gServiceParameterListType->ParameterSet.arrayLen++]);
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- grammarID = 1048;
- break;
- case 1:
- done = 1;
- grammarID = 3;
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 1048:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}ParameterSet), END_ELEMENT] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gServiceParameterListType->ParameterSet.arrayLen < v2gServiceParameterListType_ParameterSet_ARRAY_SIZE) {
- errn = decode_v2gParameterSetType(stream, &v2gServiceParameterListType->ParameterSet.array[v2gServiceParameterListType->ParameterSet.arrayLen++]);
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- grammarID = 1049;
- break;
- case 1:
- done = 1;
- grammarID = 3;
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 1049:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}ParameterSet), END_ELEMENT] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gServiceParameterListType->ParameterSet.arrayLen < v2gServiceParameterListType_ParameterSet_ARRAY_SIZE) {
- errn = decode_v2gParameterSetType(stream, &v2gServiceParameterListType->ParameterSet.array[v2gServiceParameterListType->ParameterSet.arrayLen++]);
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- grammarID = 1050;
- break;
- case 1:
- done = 1;
- grammarID = 3;
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 1050:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}ParameterSet), END_ELEMENT] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gServiceParameterListType->ParameterSet.arrayLen < v2gServiceParameterListType_ParameterSet_ARRAY_SIZE) {
- errn = decode_v2gParameterSetType(stream, &v2gServiceParameterListType->ParameterSet.array[v2gServiceParameterListType->ParameterSet.arrayLen++]);
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- grammarID = 1051;
- break;
- case 1:
- done = 1;
- grammarID = 3;
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 1051:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}ParameterSet), END_ELEMENT] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gServiceParameterListType->ParameterSet.arrayLen < v2gServiceParameterListType_ParameterSet_ARRAY_SIZE) {
- errn = decode_v2gParameterSetType(stream, &v2gServiceParameterListType->ParameterSet.array[v2gServiceParameterListType->ParameterSet.arrayLen++]);
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- grammarID = 1052;
- break;
- case 1:
- done = 1;
- grammarID = 3;
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 1052:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}ParameterSet), END_ELEMENT] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gServiceParameterListType->ParameterSet.arrayLen < v2gServiceParameterListType_ParameterSet_ARRAY_SIZE) {
- errn = decode_v2gParameterSetType(stream, &v2gServiceParameterListType->ParameterSet.array[v2gServiceParameterListType->ParameterSet.arrayLen++]);
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- grammarID = 1053;
- break;
- case 1:
- done = 1;
- grammarID = 3;
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 1053:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}ParameterSet), END_ELEMENT] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gServiceParameterListType->ParameterSet.arrayLen < v2gServiceParameterListType_ParameterSet_ARRAY_SIZE) {
- errn = decode_v2gParameterSetType(stream, &v2gServiceParameterListType->ParameterSet.array[v2gServiceParameterListType->ParameterSet.arrayLen++]);
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- grammarID = 1054;
- break;
- case 1:
- done = 1;
- grammarID = 3;
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 1054:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}ParameterSet), END_ELEMENT] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gServiceParameterListType->ParameterSet.arrayLen < v2gServiceParameterListType_ParameterSet_ARRAY_SIZE) {
- errn = decode_v2gParameterSetType(stream, &v2gServiceParameterListType->ParameterSet.array[v2gServiceParameterListType->ParameterSet.arrayLen++]);
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- grammarID = 1055;
- break;
- case 1:
- done = 1;
- grammarID = 3;
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 1055:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}ParameterSet), END_ELEMENT] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gServiceParameterListType->ParameterSet.arrayLen < v2gServiceParameterListType_ParameterSet_ARRAY_SIZE) {
- errn = decode_v2gParameterSetType(stream, &v2gServiceParameterListType->ParameterSet.array[v2gServiceParameterListType->ParameterSet.arrayLen++]);
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- grammarID = 1056;
- break;
- case 1:
- done = 1;
- grammarID = 3;
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 1056:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}ParameterSet), END_ELEMENT] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gServiceParameterListType->ParameterSet.arrayLen < v2gServiceParameterListType_ParameterSet_ARRAY_SIZE) {
- errn = decode_v2gParameterSetType(stream, &v2gServiceParameterListType->ParameterSet.array[v2gServiceParameterListType->ParameterSet.arrayLen++]);
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- grammarID = 1057;
- break;
- case 1:
- done = 1;
- grammarID = 3;
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 1057:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}ParameterSet), END_ELEMENT] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gServiceParameterListType->ParameterSet.arrayLen < v2gServiceParameterListType_ParameterSet_ARRAY_SIZE) {
- errn = decode_v2gParameterSetType(stream, &v2gServiceParameterListType->ParameterSet.array[v2gServiceParameterListType->ParameterSet.arrayLen++]);
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- grammarID = 1058;
- break;
- case 1:
- done = 1;
- grammarID = 3;
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 1058:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}ParameterSet), END_ELEMENT] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gServiceParameterListType->ParameterSet.arrayLen < v2gServiceParameterListType_ParameterSet_ARRAY_SIZE) {
- errn = decode_v2gParameterSetType(stream, &v2gServiceParameterListType->ParameterSet.array[v2gServiceParameterListType->ParameterSet.arrayLen++]);
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- grammarID = 1059;
- break;
- case 1:
- done = 1;
- grammarID = 3;
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 1059:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}ParameterSet), END_ELEMENT] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gServiceParameterListType->ParameterSet.arrayLen < v2gServiceParameterListType_ParameterSet_ARRAY_SIZE) {
- errn = decode_v2gParameterSetType(stream, &v2gServiceParameterListType->ParameterSet.array[v2gServiceParameterListType->ParameterSet.arrayLen++]);
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- grammarID = 1060;
- break;
- case 1:
- done = 1;
- grammarID = 3;
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 1060:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}ParameterSet), END_ELEMENT] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gServiceParameterListType->ParameterSet.arrayLen < v2gServiceParameterListType_ParameterSet_ARRAY_SIZE) {
- errn = decode_v2gParameterSetType(stream, &v2gServiceParameterListType->ParameterSet.array[v2gServiceParameterListType->ParameterSet.arrayLen++]);
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- grammarID = 1061;
- break;
- case 1:
- done = 1;
- grammarID = 3;
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 1061:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}ParameterSet), END_ELEMENT] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gServiceParameterListType->ParameterSet.arrayLen < v2gServiceParameterListType_ParameterSet_ARRAY_SIZE) {
- errn = decode_v2gParameterSetType(stream, &v2gServiceParameterListType->ParameterSet.array[v2gServiceParameterListType->ParameterSet.arrayLen++]);
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- grammarID = 1062;
- break;
- case 1:
- done = 1;
- grammarID = 3;
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 1062:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}ParameterSet), END_ELEMENT] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gServiceParameterListType->ParameterSet.arrayLen < v2gServiceParameterListType_ParameterSet_ARRAY_SIZE) {
- errn = decode_v2gParameterSetType(stream, &v2gServiceParameterListType->ParameterSet.array[v2gServiceParameterListType->ParameterSet.arrayLen++]);
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- grammarID = 1063;
- break;
- case 1:
- done = 1;
- grammarID = 3;
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 1063:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}ParameterSet), END_ELEMENT] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gServiceParameterListType->ParameterSet.arrayLen < v2gServiceParameterListType_ParameterSet_ARRAY_SIZE) {
- errn = decode_v2gParameterSetType(stream, &v2gServiceParameterListType->ParameterSet.array[v2gServiceParameterListType->ParameterSet.arrayLen++]);
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- grammarID = 1064;
- break;
- case 1:
- done = 1;
- grammarID = 3;
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 1064:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}ParameterSet), END_ELEMENT] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gServiceParameterListType->ParameterSet.arrayLen < v2gServiceParameterListType_ParameterSet_ARRAY_SIZE) {
- errn = decode_v2gParameterSetType(stream, &v2gServiceParameterListType->ParameterSet.array[v2gServiceParameterListType->ParameterSet.arrayLen++]);
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- grammarID = 1065;
- break;
- case 1:
- done = 1;
- grammarID = 3;
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 1065:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}ParameterSet), END_ELEMENT] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gServiceParameterListType->ParameterSet.arrayLen < v2gServiceParameterListType_ParameterSet_ARRAY_SIZE) {
- errn = decode_v2gParameterSetType(stream, &v2gServiceParameterListType->ParameterSet.array[v2gServiceParameterListType->ParameterSet.arrayLen++]);
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- grammarID = 1066;
- break;
- case 1:
- done = 1;
- grammarID = 3;
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 1066:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}ParameterSet), END_ELEMENT] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gServiceParameterListType->ParameterSet.arrayLen < v2gServiceParameterListType_ParameterSet_ARRAY_SIZE) {
- errn = decode_v2gParameterSetType(stream, &v2gServiceParameterListType->ParameterSet.array[v2gServiceParameterListType->ParameterSet.arrayLen++]);
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- grammarID = 1067;
- break;
- case 1:
- done = 1;
- grammarID = 3;
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 1067:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}ParameterSet), END_ELEMENT] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gServiceParameterListType->ParameterSet.arrayLen < v2gServiceParameterListType_ParameterSet_ARRAY_SIZE) {
- errn = decode_v2gParameterSetType(stream, &v2gServiceParameterListType->ParameterSet.array[v2gServiceParameterListType->ParameterSet.arrayLen++]);
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- grammarID = 1068;
- break;
- case 1:
- done = 1;
- grammarID = 3;
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 1068:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}ParameterSet), END_ELEMENT] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gServiceParameterListType->ParameterSet.arrayLen < v2gServiceParameterListType_ParameterSet_ARRAY_SIZE) {
- errn = decode_v2gParameterSetType(stream, &v2gServiceParameterListType->ParameterSet.array[v2gServiceParameterListType->ParameterSet.arrayLen++]);
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- grammarID = 1069;
- break;
- case 1:
- done = 1;
- grammarID = 3;
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 1069:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}ParameterSet), END_ELEMENT] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gServiceParameterListType->ParameterSet.arrayLen < v2gServiceParameterListType_ParameterSet_ARRAY_SIZE) {
- errn = decode_v2gParameterSetType(stream, &v2gServiceParameterListType->ParameterSet.array[v2gServiceParameterListType->ParameterSet.arrayLen++]);
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- grammarID = 1070;
- break;
- case 1:
- done = 1;
- grammarID = 3;
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 1070:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}ParameterSet), END_ELEMENT] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gServiceParameterListType->ParameterSet.arrayLen < v2gServiceParameterListType_ParameterSet_ARRAY_SIZE) {
- errn = decode_v2gParameterSetType(stream, &v2gServiceParameterListType->ParameterSet.array[v2gServiceParameterListType->ParameterSet.arrayLen++]);
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- grammarID = 1071;
- break;
- case 1:
- done = 1;
- grammarID = 3;
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 1071:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}ParameterSet), END_ELEMENT] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gServiceParameterListType->ParameterSet.arrayLen < v2gServiceParameterListType_ParameterSet_ARRAY_SIZE) {
- errn = decode_v2gParameterSetType(stream, &v2gServiceParameterListType->ParameterSet.array[v2gServiceParameterListType->ParameterSet.arrayLen++]);
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- grammarID = 1072;
- break;
- case 1:
- done = 1;
- grammarID = 3;
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 1072:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}ParameterSet), END_ELEMENT] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gServiceParameterListType->ParameterSet.arrayLen < v2gServiceParameterListType_ParameterSet_ARRAY_SIZE) {
- errn = decode_v2gParameterSetType(stream, &v2gServiceParameterListType->ParameterSet.array[v2gServiceParameterListType->ParameterSet.arrayLen++]);
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- grammarID = 1073;
- break;
- case 1:
- done = 1;
- grammarID = 3;
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 1073:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}ParameterSet), END_ELEMENT] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gServiceParameterListType->ParameterSet.arrayLen < v2gServiceParameterListType_ParameterSet_ARRAY_SIZE) {
- errn = decode_v2gParameterSetType(stream, &v2gServiceParameterListType->ParameterSet.array[v2gServiceParameterListType->ParameterSet.arrayLen++]);
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- grammarID = 1074;
- break;
- case 1:
- done = 1;
- grammarID = 3;
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 1074:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}ParameterSet), END_ELEMENT] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gServiceParameterListType->ParameterSet.arrayLen < v2gServiceParameterListType_ParameterSet_ARRAY_SIZE) {
- errn = decode_v2gParameterSetType(stream, &v2gServiceParameterListType->ParameterSet.array[v2gServiceParameterListType->ParameterSet.arrayLen++]);
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- grammarID = 1075;
- break;
- case 1:
- done = 1;
- grammarID = 3;
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 1075:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}ParameterSet), END_ELEMENT] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gServiceParameterListType->ParameterSet.arrayLen < v2gServiceParameterListType_ParameterSet_ARRAY_SIZE) {
- errn = decode_v2gParameterSetType(stream, &v2gServiceParameterListType->ParameterSet.array[v2gServiceParameterListType->ParameterSet.arrayLen++]);
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- grammarID = 1076;
- break;
- case 1:
- done = 1;
- grammarID = 3;
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 1076:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}ParameterSet), END_ELEMENT] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gServiceParameterListType->ParameterSet.arrayLen < v2gServiceParameterListType_ParameterSet_ARRAY_SIZE) {
- errn = decode_v2gParameterSetType(stream, &v2gServiceParameterListType->ParameterSet.array[v2gServiceParameterListType->ParameterSet.arrayLen++]);
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- grammarID = 1077;
- break;
- case 1:
- done = 1;
- grammarID = 3;
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 1077:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}ParameterSet), END_ELEMENT] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gServiceParameterListType->ParameterSet.arrayLen < v2gServiceParameterListType_ParameterSet_ARRAY_SIZE) {
- errn = decode_v2gParameterSetType(stream, &v2gServiceParameterListType->ParameterSet.array[v2gServiceParameterListType->ParameterSet.arrayLen++]);
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- grammarID = 1078;
- break;
- case 1:
- done = 1;
- grammarID = 3;
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 1078:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}ParameterSet), END_ELEMENT] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gServiceParameterListType->ParameterSet.arrayLen < v2gServiceParameterListType_ParameterSet_ARRAY_SIZE) {
- errn = decode_v2gParameterSetType(stream, &v2gServiceParameterListType->ParameterSet.array[v2gServiceParameterListType->ParameterSet.arrayLen++]);
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- grammarID = 1079;
- break;
- case 1:
- done = 1;
- grammarID = 3;
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 1079:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}ParameterSet), END_ELEMENT] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gServiceParameterListType->ParameterSet.arrayLen < v2gServiceParameterListType_ParameterSet_ARRAY_SIZE) {
- errn = decode_v2gParameterSetType(stream, &v2gServiceParameterListType->ParameterSet.array[v2gServiceParameterListType->ParameterSet.arrayLen++]);
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- grammarID = 1080;
- break;
- case 1:
- done = 1;
- grammarID = 3;
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 1080:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}ParameterSet), END_ELEMENT] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gServiceParameterListType->ParameterSet.arrayLen < v2gServiceParameterListType_ParameterSet_ARRAY_SIZE) {
- errn = decode_v2gParameterSetType(stream, &v2gServiceParameterListType->ParameterSet.array[v2gServiceParameterListType->ParameterSet.arrayLen++]);
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- grammarID = 1081;
- break;
- case 1:
- done = 1;
- grammarID = 3;
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 1081:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}ParameterSet), END_ELEMENT] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gServiceParameterListType->ParameterSet.arrayLen < v2gServiceParameterListType_ParameterSet_ARRAY_SIZE) {
- errn = decode_v2gParameterSetType(stream, &v2gServiceParameterListType->ParameterSet.array[v2gServiceParameterListType->ParameterSet.arrayLen++]);
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- grammarID = 1082;
- break;
- case 1:
- done = 1;
- grammarID = 3;
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 1082:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}ParameterSet), END_ELEMENT] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gServiceParameterListType->ParameterSet.arrayLen < v2gServiceParameterListType_ParameterSet_ARRAY_SIZE) {
- errn = decode_v2gParameterSetType(stream, &v2gServiceParameterListType->ParameterSet.array[v2gServiceParameterListType->ParameterSet.arrayLen++]);
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- grammarID = 1083;
- break;
- case 1:
- done = 1;
- grammarID = 3;
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 1083:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}ParameterSet), END_ELEMENT] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gServiceParameterListType->ParameterSet.arrayLen < v2gServiceParameterListType_ParameterSet_ARRAY_SIZE) {
- errn = decode_v2gParameterSetType(stream, &v2gServiceParameterListType->ParameterSet.array[v2gServiceParameterListType->ParameterSet.arrayLen++]);
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- grammarID = 1084;
- break;
- case 1:
- done = 1;
- grammarID = 3;
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 1084:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}ParameterSet), END_ELEMENT] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gServiceParameterListType->ParameterSet.arrayLen < v2gServiceParameterListType_ParameterSet_ARRAY_SIZE) {
- errn = decode_v2gParameterSetType(stream, &v2gServiceParameterListType->ParameterSet.array[v2gServiceParameterListType->ParameterSet.arrayLen++]);
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- grammarID = 1085;
- break;
- case 1:
- done = 1;
- grammarID = 3;
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 1085:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}ParameterSet), END_ELEMENT] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gServiceParameterListType->ParameterSet.arrayLen < v2gServiceParameterListType_ParameterSet_ARRAY_SIZE) {
- errn = decode_v2gParameterSetType(stream, &v2gServiceParameterListType->ParameterSet.array[v2gServiceParameterListType->ParameterSet.arrayLen++]);
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- grammarID = 1086;
- break;
- case 1:
- done = 1;
- grammarID = 3;
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 1086:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}ParameterSet), END_ELEMENT] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gServiceParameterListType->ParameterSet.arrayLen < v2gServiceParameterListType_ParameterSet_ARRAY_SIZE) {
- errn = decode_v2gParameterSetType(stream, &v2gServiceParameterListType->ParameterSet.array[v2gServiceParameterListType->ParameterSet.arrayLen++]);
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- grammarID = 1087;
- break;
- case 1:
- done = 1;
- grammarID = 3;
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 1087:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}ParameterSet), END_ELEMENT] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gServiceParameterListType->ParameterSet.arrayLen < v2gServiceParameterListType_ParameterSet_ARRAY_SIZE) {
- errn = decode_v2gParameterSetType(stream, &v2gServiceParameterListType->ParameterSet.array[v2gServiceParameterListType->ParameterSet.arrayLen++]);
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- grammarID = 1088;
- break;
- case 1:
- done = 1;
- grammarID = 3;
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 1088:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}ParameterSet), END_ELEMENT] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gServiceParameterListType->ParameterSet.arrayLen < v2gServiceParameterListType_ParameterSet_ARRAY_SIZE) {
- errn = decode_v2gParameterSetType(stream, &v2gServiceParameterListType->ParameterSet.array[v2gServiceParameterListType->ParameterSet.arrayLen++]);
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- grammarID = 1089;
- break;
- case 1:
- done = 1;
- grammarID = 3;
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 1089:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}ParameterSet), END_ELEMENT] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gServiceParameterListType->ParameterSet.arrayLen < v2gServiceParameterListType_ParameterSet_ARRAY_SIZE) {
- errn = decode_v2gParameterSetType(stream, &v2gServiceParameterListType->ParameterSet.array[v2gServiceParameterListType->ParameterSet.arrayLen++]);
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- grammarID = 1090;
- break;
- case 1:
- done = 1;
- grammarID = 3;
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 1090:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}ParameterSet), END_ELEMENT] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gServiceParameterListType->ParameterSet.arrayLen < v2gServiceParameterListType_ParameterSet_ARRAY_SIZE) {
- errn = decode_v2gParameterSetType(stream, &v2gServiceParameterListType->ParameterSet.array[v2gServiceParameterListType->ParameterSet.arrayLen++]);
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- grammarID = 1091;
- break;
- case 1:
- done = 1;
- grammarID = 3;
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 1091:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}ParameterSet), END_ELEMENT] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gServiceParameterListType->ParameterSet.arrayLen < v2gServiceParameterListType_ParameterSet_ARRAY_SIZE) {
- errn = decode_v2gParameterSetType(stream, &v2gServiceParameterListType->ParameterSet.array[v2gServiceParameterListType->ParameterSet.arrayLen++]);
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- grammarID = 1092;
- break;
- case 1:
- done = 1;
- grammarID = 3;
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 1092:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}ParameterSet), END_ELEMENT] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gServiceParameterListType->ParameterSet.arrayLen < v2gServiceParameterListType_ParameterSet_ARRAY_SIZE) {
- errn = decode_v2gParameterSetType(stream, &v2gServiceParameterListType->ParameterSet.array[v2gServiceParameterListType->ParameterSet.arrayLen++]);
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- grammarID = 1093;
- break;
- case 1:
- done = 1;
- grammarID = 3;
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 1093:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}ParameterSet), END_ELEMENT] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gServiceParameterListType->ParameterSet.arrayLen < v2gServiceParameterListType_ParameterSet_ARRAY_SIZE) {
- errn = decode_v2gParameterSetType(stream, &v2gServiceParameterListType->ParameterSet.array[v2gServiceParameterListType->ParameterSet.arrayLen++]);
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- grammarID = 1094;
- break;
- case 1:
- done = 1;
- grammarID = 3;
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 1094:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}ParameterSet), END_ELEMENT] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gServiceParameterListType->ParameterSet.arrayLen < v2gServiceParameterListType_ParameterSet_ARRAY_SIZE) {
- errn = decode_v2gParameterSetType(stream, &v2gServiceParameterListType->ParameterSet.array[v2gServiceParameterListType->ParameterSet.arrayLen++]);
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- grammarID = 1095;
- break;
- case 1:
- done = 1;
- grammarID = 3;
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 1095:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}ParameterSet), END_ELEMENT] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gServiceParameterListType->ParameterSet.arrayLen < v2gServiceParameterListType_ParameterSet_ARRAY_SIZE) {
- errn = decode_v2gParameterSetType(stream, &v2gServiceParameterListType->ParameterSet.array[v2gServiceParameterListType->ParameterSet.arrayLen++]);
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- grammarID = 1096;
- break;
- case 1:
- done = 1;
- grammarID = 3;
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 1096:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}ParameterSet), END_ELEMENT] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gServiceParameterListType->ParameterSet.arrayLen < v2gServiceParameterListType_ParameterSet_ARRAY_SIZE) {
- errn = decode_v2gParameterSetType(stream, &v2gServiceParameterListType->ParameterSet.array[v2gServiceParameterListType->ParameterSet.arrayLen++]);
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- grammarID = 1097;
- break;
- case 1:
- done = 1;
- grammarID = 3;
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 1097:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}ParameterSet), END_ELEMENT] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gServiceParameterListType->ParameterSet.arrayLen < v2gServiceParameterListType_ParameterSet_ARRAY_SIZE) {
- errn = decode_v2gParameterSetType(stream, &v2gServiceParameterListType->ParameterSet.array[v2gServiceParameterListType->ParameterSet.arrayLen++]);
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- grammarID = 1098;
- break;
- case 1:
- done = 1;
- grammarID = 3;
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 1098:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}ParameterSet), END_ELEMENT] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gServiceParameterListType->ParameterSet.arrayLen < v2gServiceParameterListType_ParameterSet_ARRAY_SIZE) {
- errn = decode_v2gParameterSetType(stream, &v2gServiceParameterListType->ParameterSet.array[v2gServiceParameterListType->ParameterSet.arrayLen++]);
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- grammarID = 1099;
- break;
- case 1:
- done = 1;
- grammarID = 3;
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 1099:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}ParameterSet), END_ELEMENT] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gServiceParameterListType->ParameterSet.arrayLen < v2gServiceParameterListType_ParameterSet_ARRAY_SIZE) {
- errn = decode_v2gParameterSetType(stream, &v2gServiceParameterListType->ParameterSet.array[v2gServiceParameterListType->ParameterSet.arrayLen++]);
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- grammarID = 1100;
- break;
- case 1:
- done = 1;
- grammarID = 3;
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 1100:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}ParameterSet), END_ELEMENT] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gServiceParameterListType->ParameterSet.arrayLen < v2gServiceParameterListType_ParameterSet_ARRAY_SIZE) {
- errn = decode_v2gParameterSetType(stream, &v2gServiceParameterListType->ParameterSet.array[v2gServiceParameterListType->ParameterSet.arrayLen++]);
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- grammarID = 1101;
- break;
- case 1:
- done = 1;
- grammarID = 3;
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 1101:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}ParameterSet), END_ELEMENT] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gServiceParameterListType->ParameterSet.arrayLen < v2gServiceParameterListType_ParameterSet_ARRAY_SIZE) {
- errn = decode_v2gParameterSetType(stream, &v2gServiceParameterListType->ParameterSet.array[v2gServiceParameterListType->ParameterSet.arrayLen++]);
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- grammarID = 1102;
- break;
- case 1:
- done = 1;
- grammarID = 3;
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 1102:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}ParameterSet), END_ELEMENT] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gServiceParameterListType->ParameterSet.arrayLen < v2gServiceParameterListType_ParameterSet_ARRAY_SIZE) {
- errn = decode_v2gParameterSetType(stream, &v2gServiceParameterListType->ParameterSet.array[v2gServiceParameterListType->ParameterSet.arrayLen++]);
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- grammarID = 1103;
- break;
- case 1:
- done = 1;
- grammarID = 3;
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 1103:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}ParameterSet), END_ELEMENT] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gServiceParameterListType->ParameterSet.arrayLen < v2gServiceParameterListType_ParameterSet_ARRAY_SIZE) {
- errn = decode_v2gParameterSetType(stream, &v2gServiceParameterListType->ParameterSet.array[v2gServiceParameterListType->ParameterSet.arrayLen++]);
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- grammarID = 1104;
- break;
- case 1:
- done = 1;
- grammarID = 3;
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 1104:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}ParameterSet), END_ELEMENT] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gServiceParameterListType->ParameterSet.arrayLen < v2gServiceParameterListType_ParameterSet_ARRAY_SIZE) {
- errn = decode_v2gParameterSetType(stream, &v2gServiceParameterListType->ParameterSet.array[v2gServiceParameterListType->ParameterSet.arrayLen++]);
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- grammarID = 1105;
- break;
- case 1:
- done = 1;
- grammarID = 3;
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 1105:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}ParameterSet), END_ELEMENT] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gServiceParameterListType->ParameterSet.arrayLen < v2gServiceParameterListType_ParameterSet_ARRAY_SIZE) {
- errn = decode_v2gParameterSetType(stream, &v2gServiceParameterListType->ParameterSet.array[v2gServiceParameterListType->ParameterSet.arrayLen++]);
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- grammarID = 1106;
- break;
- case 1:
- done = 1;
- grammarID = 3;
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 1106:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}ParameterSet), END_ELEMENT] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gServiceParameterListType->ParameterSet.arrayLen < v2gServiceParameterListType_ParameterSet_ARRAY_SIZE) {
- errn = decode_v2gParameterSetType(stream, &v2gServiceParameterListType->ParameterSet.array[v2gServiceParameterListType->ParameterSet.arrayLen++]);
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- grammarID = 1107;
- break;
- case 1:
- done = 1;
- grammarID = 3;
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 1107:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}ParameterSet), END_ELEMENT] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gServiceParameterListType->ParameterSet.arrayLen < v2gServiceParameterListType_ParameterSet_ARRAY_SIZE) {
- errn = decode_v2gParameterSetType(stream, &v2gServiceParameterListType->ParameterSet.array[v2gServiceParameterListType->ParameterSet.arrayLen++]);
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- grammarID = 1108;
- break;
- case 1:
- done = 1;
- grammarID = 3;
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 1108:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}ParameterSet), END_ELEMENT] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gServiceParameterListType->ParameterSet.arrayLen < v2gServiceParameterListType_ParameterSet_ARRAY_SIZE) {
- errn = decode_v2gParameterSetType(stream, &v2gServiceParameterListType->ParameterSet.array[v2gServiceParameterListType->ParameterSet.arrayLen++]);
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- grammarID = 1109;
- break;
- case 1:
- done = 1;
- grammarID = 3;
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 1109:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}ParameterSet), END_ELEMENT] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gServiceParameterListType->ParameterSet.arrayLen < v2gServiceParameterListType_ParameterSet_ARRAY_SIZE) {
- errn = decode_v2gParameterSetType(stream, &v2gServiceParameterListType->ParameterSet.array[v2gServiceParameterListType->ParameterSet.arrayLen++]);
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- grammarID = 1110;
- break;
- case 1:
- done = 1;
- grammarID = 3;
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 1110:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}ParameterSet), END_ELEMENT] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gServiceParameterListType->ParameterSet.arrayLen < v2gServiceParameterListType_ParameterSet_ARRAY_SIZE) {
- errn = decode_v2gParameterSetType(stream, &v2gServiceParameterListType->ParameterSet.array[v2gServiceParameterListType->ParameterSet.arrayLen++]);
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- grammarID = 1111;
- break;
- case 1:
- done = 1;
- grammarID = 3;
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 1111:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}ParameterSet), END_ELEMENT] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gServiceParameterListType->ParameterSet.arrayLen < v2gServiceParameterListType_ParameterSet_ARRAY_SIZE) {
- errn = decode_v2gParameterSetType(stream, &v2gServiceParameterListType->ParameterSet.array[v2gServiceParameterListType->ParameterSet.arrayLen++]);
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- grammarID = 1112;
- break;
- case 1:
- done = 1;
- grammarID = 3;
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 1112:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}ParameterSet), END_ELEMENT] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gServiceParameterListType->ParameterSet.arrayLen < v2gServiceParameterListType_ParameterSet_ARRAY_SIZE) {
- errn = decode_v2gParameterSetType(stream, &v2gServiceParameterListType->ParameterSet.array[v2gServiceParameterListType->ParameterSet.arrayLen++]);
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- grammarID = 1113;
- break;
- case 1:
- done = 1;
- grammarID = 3;
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 1113:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}ParameterSet), END_ELEMENT] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gServiceParameterListType->ParameterSet.arrayLen < v2gServiceParameterListType_ParameterSet_ARRAY_SIZE) {
- errn = decode_v2gParameterSetType(stream, &v2gServiceParameterListType->ParameterSet.array[v2gServiceParameterListType->ParameterSet.arrayLen++]);
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- grammarID = 1114;
- break;
- case 1:
- done = 1;
- grammarID = 3;
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 1114:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}ParameterSet), END_ELEMENT] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gServiceParameterListType->ParameterSet.arrayLen < v2gServiceParameterListType_ParameterSet_ARRAY_SIZE) {
- errn = decode_v2gParameterSetType(stream, &v2gServiceParameterListType->ParameterSet.array[v2gServiceParameterListType->ParameterSet.arrayLen++]);
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- grammarID = 1115;
- break;
- case 1:
- done = 1;
- grammarID = 3;
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 1115:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}ParameterSet), END_ELEMENT] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gServiceParameterListType->ParameterSet.arrayLen < v2gServiceParameterListType_ParameterSet_ARRAY_SIZE) {
- errn = decode_v2gParameterSetType(stream, &v2gServiceParameterListType->ParameterSet.array[v2gServiceParameterListType->ParameterSet.arrayLen++]);
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- grammarID = 1116;
- break;
- case 1:
- done = 1;
- grammarID = 3;
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 1116:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}ParameterSet), END_ELEMENT] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gServiceParameterListType->ParameterSet.arrayLen < v2gServiceParameterListType_ParameterSet_ARRAY_SIZE) {
- errn = decode_v2gParameterSetType(stream, &v2gServiceParameterListType->ParameterSet.array[v2gServiceParameterListType->ParameterSet.arrayLen++]);
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- grammarID = 1117;
- break;
- case 1:
- done = 1;
- grammarID = 3;
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 1117:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}ParameterSet), END_ELEMENT] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gServiceParameterListType->ParameterSet.arrayLen < v2gServiceParameterListType_ParameterSet_ARRAY_SIZE) {
- errn = decode_v2gParameterSetType(stream, &v2gServiceParameterListType->ParameterSet.array[v2gServiceParameterListType->ParameterSet.arrayLen++]);
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- grammarID = 1118;
- break;
- case 1:
- done = 1;
- grammarID = 3;
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 1118:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}ParameterSet), END_ELEMENT] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gServiceParameterListType->ParameterSet.arrayLen < v2gServiceParameterListType_ParameterSet_ARRAY_SIZE) {
- errn = decode_v2gParameterSetType(stream, &v2gServiceParameterListType->ParameterSet.array[v2gServiceParameterListType->ParameterSet.arrayLen++]);
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- grammarID = 1119;
- break;
- case 1:
- done = 1;
- grammarID = 3;
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 1119:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}ParameterSet), END_ELEMENT] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gServiceParameterListType->ParameterSet.arrayLen < v2gServiceParameterListType_ParameterSet_ARRAY_SIZE) {
- errn = decode_v2gParameterSetType(stream, &v2gServiceParameterListType->ParameterSet.array[v2gServiceParameterListType->ParameterSet.arrayLen++]);
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- grammarID = 1120;
- break;
- case 1:
- done = 1;
- grammarID = 3;
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 1120:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}ParameterSet), END_ELEMENT] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gServiceParameterListType->ParameterSet.arrayLen < v2gServiceParameterListType_ParameterSet_ARRAY_SIZE) {
- errn = decode_v2gParameterSetType(stream, &v2gServiceParameterListType->ParameterSet.array[v2gServiceParameterListType->ParameterSet.arrayLen++]);
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- grammarID = 1121;
- break;
- case 1:
- done = 1;
- grammarID = 3;
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 1121:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}ParameterSet), END_ELEMENT] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gServiceParameterListType->ParameterSet.arrayLen < v2gServiceParameterListType_ParameterSet_ARRAY_SIZE) {
- errn = decode_v2gParameterSetType(stream, &v2gServiceParameterListType->ParameterSet.array[v2gServiceParameterListType->ParameterSet.arrayLen++]);
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- grammarID = 1122;
- break;
- case 1:
- done = 1;
- grammarID = 3;
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 1122:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}ParameterSet), END_ELEMENT] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gServiceParameterListType->ParameterSet.arrayLen < v2gServiceParameterListType_ParameterSet_ARRAY_SIZE) {
- errn = decode_v2gParameterSetType(stream, &v2gServiceParameterListType->ParameterSet.array[v2gServiceParameterListType->ParameterSet.arrayLen++]);
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- grammarID = 1123;
- break;
- case 1:
- done = 1;
- grammarID = 3;
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 1123:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}ParameterSet), END_ELEMENT] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gServiceParameterListType->ParameterSet.arrayLen < v2gServiceParameterListType_ParameterSet_ARRAY_SIZE) {
- errn = decode_v2gParameterSetType(stream, &v2gServiceParameterListType->ParameterSet.array[v2gServiceParameterListType->ParameterSet.arrayLen++]);
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- grammarID = 1124;
- break;
- case 1:
- done = 1;
- grammarID = 3;
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 1124:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}ParameterSet), END_ELEMENT] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gServiceParameterListType->ParameterSet.arrayLen < v2gServiceParameterListType_ParameterSet_ARRAY_SIZE) {
- errn = decode_v2gParameterSetType(stream, &v2gServiceParameterListType->ParameterSet.array[v2gServiceParameterListType->ParameterSet.arrayLen++]);
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- grammarID = 1125;
- break;
- case 1:
- done = 1;
- grammarID = 3;
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 1125:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}ParameterSet), END_ELEMENT] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gServiceParameterListType->ParameterSet.arrayLen < v2gServiceParameterListType_ParameterSet_ARRAY_SIZE) {
- errn = decode_v2gParameterSetType(stream, &v2gServiceParameterListType->ParameterSet.array[v2gServiceParameterListType->ParameterSet.arrayLen++]);
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- grammarID = 1126;
- break;
- case 1:
- done = 1;
- grammarID = 3;
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 1126:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}ParameterSet), END_ELEMENT] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gServiceParameterListType->ParameterSet.arrayLen < v2gServiceParameterListType_ParameterSet_ARRAY_SIZE) {
- errn = decode_v2gParameterSetType(stream, &v2gServiceParameterListType->ParameterSet.array[v2gServiceParameterListType->ParameterSet.arrayLen++]);
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- grammarID = 1127;
- break;
- case 1:
- done = 1;
- grammarID = 3;
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 1127:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}ParameterSet), END_ELEMENT] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gServiceParameterListType->ParameterSet.arrayLen < v2gServiceParameterListType_ParameterSet_ARRAY_SIZE) {
- errn = decode_v2gParameterSetType(stream, &v2gServiceParameterListType->ParameterSet.array[v2gServiceParameterListType->ParameterSet.arrayLen++]);
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- grammarID = 1128;
- break;
- case 1:
- done = 1;
- grammarID = 3;
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 1128:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}ParameterSet), END_ELEMENT] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gServiceParameterListType->ParameterSet.arrayLen < v2gServiceParameterListType_ParameterSet_ARRAY_SIZE) {
- errn = decode_v2gParameterSetType(stream, &v2gServiceParameterListType->ParameterSet.array[v2gServiceParameterListType->ParameterSet.arrayLen++]);
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- grammarID = 1129;
- break;
- case 1:
- done = 1;
- grammarID = 3;
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 1129:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}ParameterSet), END_ELEMENT] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gServiceParameterListType->ParameterSet.arrayLen < v2gServiceParameterListType_ParameterSet_ARRAY_SIZE) {
- errn = decode_v2gParameterSetType(stream, &v2gServiceParameterListType->ParameterSet.array[v2gServiceParameterListType->ParameterSet.arrayLen++]);
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- grammarID = 1130;
- break;
- case 1:
- done = 1;
- grammarID = 3;
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 1130:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}ParameterSet), END_ELEMENT] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gServiceParameterListType->ParameterSet.arrayLen < v2gServiceParameterListType_ParameterSet_ARRAY_SIZE) {
- errn = decode_v2gParameterSetType(stream, &v2gServiceParameterListType->ParameterSet.array[v2gServiceParameterListType->ParameterSet.arrayLen++]);
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- grammarID = 1131;
- break;
- case 1:
- done = 1;
- grammarID = 3;
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 1131:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}ParameterSet), END_ELEMENT] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gServiceParameterListType->ParameterSet.arrayLen < v2gServiceParameterListType_ParameterSet_ARRAY_SIZE) {
- errn = decode_v2gParameterSetType(stream, &v2gServiceParameterListType->ParameterSet.array[v2gServiceParameterListType->ParameterSet.arrayLen++]);
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- grammarID = 1132;
- break;
- case 1:
- done = 1;
- grammarID = 3;
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 1132:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}ParameterSet), END_ELEMENT] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gServiceParameterListType->ParameterSet.arrayLen < v2gServiceParameterListType_ParameterSet_ARRAY_SIZE) {
- errn = decode_v2gParameterSetType(stream, &v2gServiceParameterListType->ParameterSet.array[v2gServiceParameterListType->ParameterSet.arrayLen++]);
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- grammarID = 1133;
- break;
- case 1:
- done = 1;
- grammarID = 3;
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 1133:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}ParameterSet), END_ELEMENT] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gServiceParameterListType->ParameterSet.arrayLen < v2gServiceParameterListType_ParameterSet_ARRAY_SIZE) {
- errn = decode_v2gParameterSetType(stream, &v2gServiceParameterListType->ParameterSet.array[v2gServiceParameterListType->ParameterSet.arrayLen++]);
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- grammarID = 1134;
- break;
- case 1:
- done = 1;
- grammarID = 3;
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 1134:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}ParameterSet), END_ELEMENT] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gServiceParameterListType->ParameterSet.arrayLen < v2gServiceParameterListType_ParameterSet_ARRAY_SIZE) {
- errn = decode_v2gParameterSetType(stream, &v2gServiceParameterListType->ParameterSet.array[v2gServiceParameterListType->ParameterSet.arrayLen++]);
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- grammarID = 1135;
- break;
- case 1:
- done = 1;
- grammarID = 3;
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 1135:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}ParameterSet), END_ELEMENT] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gServiceParameterListType->ParameterSet.arrayLen < v2gServiceParameterListType_ParameterSet_ARRAY_SIZE) {
- errn = decode_v2gParameterSetType(stream, &v2gServiceParameterListType->ParameterSet.array[v2gServiceParameterListType->ParameterSet.arrayLen++]);
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- grammarID = 1136;
- break;
- case 1:
- done = 1;
- grammarID = 3;
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 1136:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}ParameterSet), END_ELEMENT] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gServiceParameterListType->ParameterSet.arrayLen < v2gServiceParameterListType_ParameterSet_ARRAY_SIZE) {
- errn = decode_v2gParameterSetType(stream, &v2gServiceParameterListType->ParameterSet.array[v2gServiceParameterListType->ParameterSet.arrayLen++]);
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- grammarID = 1137;
- break;
- case 1:
- done = 1;
- grammarID = 3;
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 1137:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}ParameterSet), END_ELEMENT] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gServiceParameterListType->ParameterSet.arrayLen < v2gServiceParameterListType_ParameterSet_ARRAY_SIZE) {
- errn = decode_v2gParameterSetType(stream, &v2gServiceParameterListType->ParameterSet.array[v2gServiceParameterListType->ParameterSet.arrayLen++]);
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- grammarID = 1138;
- break;
- case 1:
- done = 1;
- grammarID = 3;
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 1138:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}ParameterSet), END_ELEMENT] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gServiceParameterListType->ParameterSet.arrayLen < v2gServiceParameterListType_ParameterSet_ARRAY_SIZE) {
- errn = decode_v2gParameterSetType(stream, &v2gServiceParameterListType->ParameterSet.array[v2gServiceParameterListType->ParameterSet.arrayLen++]);
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- grammarID = 1139;
- break;
- case 1:
- done = 1;
- grammarID = 3;
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 1139:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}ParameterSet), END_ELEMENT] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gServiceParameterListType->ParameterSet.arrayLen < v2gServiceParameterListType_ParameterSet_ARRAY_SIZE) {
- errn = decode_v2gParameterSetType(stream, &v2gServiceParameterListType->ParameterSet.array[v2gServiceParameterListType->ParameterSet.arrayLen++]);
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- grammarID = 1140;
- break;
- case 1:
- done = 1;
- grammarID = 3;
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 1140:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}ParameterSet), END_ELEMENT] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gServiceParameterListType->ParameterSet.arrayLen < v2gServiceParameterListType_ParameterSet_ARRAY_SIZE) {
- errn = decode_v2gParameterSetType(stream, &v2gServiceParameterListType->ParameterSet.array[v2gServiceParameterListType->ParameterSet.arrayLen++]);
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- grammarID = 1141;
- break;
- case 1:
- done = 1;
- grammarID = 3;
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 1141:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}ParameterSet), END_ELEMENT] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gServiceParameterListType->ParameterSet.arrayLen < v2gServiceParameterListType_ParameterSet_ARRAY_SIZE) {
- errn = decode_v2gParameterSetType(stream, &v2gServiceParameterListType->ParameterSet.array[v2gServiceParameterListType->ParameterSet.arrayLen++]);
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- grammarID = 1142;
- break;
- case 1:
- done = 1;
- grammarID = 3;
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 1142:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}ParameterSet), END_ELEMENT] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gServiceParameterListType->ParameterSet.arrayLen < v2gServiceParameterListType_ParameterSet_ARRAY_SIZE) {
- errn = decode_v2gParameterSetType(stream, &v2gServiceParameterListType->ParameterSet.array[v2gServiceParameterListType->ParameterSet.arrayLen++]);
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- grammarID = 1143;
- break;
- case 1:
- done = 1;
- grammarID = 3;
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 1143:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}ParameterSet), END_ELEMENT] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gServiceParameterListType->ParameterSet.arrayLen < v2gServiceParameterListType_ParameterSet_ARRAY_SIZE) {
- errn = decode_v2gParameterSetType(stream, &v2gServiceParameterListType->ParameterSet.array[v2gServiceParameterListType->ParameterSet.arrayLen++]);
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- grammarID = 1144;
- break;
- case 1:
- done = 1;
- grammarID = 3;
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 1144:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}ParameterSet), END_ELEMENT] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gServiceParameterListType->ParameterSet.arrayLen < v2gServiceParameterListType_ParameterSet_ARRAY_SIZE) {
- errn = decode_v2gParameterSetType(stream, &v2gServiceParameterListType->ParameterSet.array[v2gServiceParameterListType->ParameterSet.arrayLen++]);
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- grammarID = 1145;
- break;
- case 1:
- done = 1;
- grammarID = 3;
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 1145:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}ParameterSet), END_ELEMENT] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gServiceParameterListType->ParameterSet.arrayLen < v2gServiceParameterListType_ParameterSet_ARRAY_SIZE) {
- errn = decode_v2gParameterSetType(stream, &v2gServiceParameterListType->ParameterSet.array[v2gServiceParameterListType->ParameterSet.arrayLen++]);
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- grammarID = 1146;
- break;
- case 1:
- done = 1;
- grammarID = 3;
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 1146:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}ParameterSet), END_ELEMENT] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gServiceParameterListType->ParameterSet.arrayLen < v2gServiceParameterListType_ParameterSet_ARRAY_SIZE) {
- errn = decode_v2gParameterSetType(stream, &v2gServiceParameterListType->ParameterSet.array[v2gServiceParameterListType->ParameterSet.arrayLen++]);
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- grammarID = 1147;
- break;
- case 1:
- done = 1;
- grammarID = 3;
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 1147:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}ParameterSet), END_ELEMENT] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gServiceParameterListType->ParameterSet.arrayLen < v2gServiceParameterListType_ParameterSet_ARRAY_SIZE) {
- errn = decode_v2gParameterSetType(stream, &v2gServiceParameterListType->ParameterSet.array[v2gServiceParameterListType->ParameterSet.arrayLen++]);
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- grammarID = 1148;
- break;
- case 1:
- done = 1;
- grammarID = 3;
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 1148:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}ParameterSet), END_ELEMENT] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gServiceParameterListType->ParameterSet.arrayLen < v2gServiceParameterListType_ParameterSet_ARRAY_SIZE) {
- errn = decode_v2gParameterSetType(stream, &v2gServiceParameterListType->ParameterSet.array[v2gServiceParameterListType->ParameterSet.arrayLen++]);
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- grammarID = 1149;
- break;
- case 1:
- done = 1;
- grammarID = 3;
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 1149:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}ParameterSet), END_ELEMENT] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gServiceParameterListType->ParameterSet.arrayLen < v2gServiceParameterListType_ParameterSet_ARRAY_SIZE) {
- errn = decode_v2gParameterSetType(stream, &v2gServiceParameterListType->ParameterSet.array[v2gServiceParameterListType->ParameterSet.arrayLen++]);
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- grammarID = 1150;
- break;
- case 1:
- done = 1;
- grammarID = 3;
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 1150:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}ParameterSet), END_ELEMENT] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gServiceParameterListType->ParameterSet.arrayLen < v2gServiceParameterListType_ParameterSet_ARRAY_SIZE) {
- errn = decode_v2gParameterSetType(stream, &v2gServiceParameterListType->ParameterSet.array[v2gServiceParameterListType->ParameterSet.arrayLen++]);
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- grammarID = 1151;
- break;
- case 1:
- done = 1;
- grammarID = 3;
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 1151:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}ParameterSet), END_ELEMENT] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gServiceParameterListType->ParameterSet.arrayLen < v2gServiceParameterListType_ParameterSet_ARRAY_SIZE) {
- errn = decode_v2gParameterSetType(stream, &v2gServiceParameterListType->ParameterSet.array[v2gServiceParameterListType->ParameterSet.arrayLen++]);
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- grammarID = 1152;
- break;
- case 1:
- done = 1;
- grammarID = 3;
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 1152:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}ParameterSet), END_ELEMENT] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gServiceParameterListType->ParameterSet.arrayLen < v2gServiceParameterListType_ParameterSet_ARRAY_SIZE) {
- errn = decode_v2gParameterSetType(stream, &v2gServiceParameterListType->ParameterSet.array[v2gServiceParameterListType->ParameterSet.arrayLen++]);
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- grammarID = 1153;
- break;
- case 1:
- done = 1;
- grammarID = 3;
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 1153:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}ParameterSet), END_ELEMENT] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gServiceParameterListType->ParameterSet.arrayLen < v2gServiceParameterListType_ParameterSet_ARRAY_SIZE) {
- errn = decode_v2gParameterSetType(stream, &v2gServiceParameterListType->ParameterSet.array[v2gServiceParameterListType->ParameterSet.arrayLen++]);
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- grammarID = 1154;
- break;
- case 1:
- done = 1;
- grammarID = 3;
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 1154:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}ParameterSet), END_ELEMENT] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gServiceParameterListType->ParameterSet.arrayLen < v2gServiceParameterListType_ParameterSet_ARRAY_SIZE) {
- errn = decode_v2gParameterSetType(stream, &v2gServiceParameterListType->ParameterSet.array[v2gServiceParameterListType->ParameterSet.arrayLen++]);
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- grammarID = 1155;
- break;
- case 1:
- done = 1;
- grammarID = 3;
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 1155:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}ParameterSet), END_ELEMENT] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gServiceParameterListType->ParameterSet.arrayLen < v2gServiceParameterListType_ParameterSet_ARRAY_SIZE) {
- errn = decode_v2gParameterSetType(stream, &v2gServiceParameterListType->ParameterSet.array[v2gServiceParameterListType->ParameterSet.arrayLen++]);
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- grammarID = 1156;
- break;
- case 1:
- done = 1;
- grammarID = 3;
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 1156:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}ParameterSet), END_ELEMENT] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gServiceParameterListType->ParameterSet.arrayLen < v2gServiceParameterListType_ParameterSet_ARRAY_SIZE) {
- errn = decode_v2gParameterSetType(stream, &v2gServiceParameterListType->ParameterSet.array[v2gServiceParameterListType->ParameterSet.arrayLen++]);
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- grammarID = 1157;
- break;
- case 1:
- done = 1;
- grammarID = 3;
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 1157:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}ParameterSet), END_ELEMENT] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gServiceParameterListType->ParameterSet.arrayLen < v2gServiceParameterListType_ParameterSet_ARRAY_SIZE) {
- errn = decode_v2gParameterSetType(stream, &v2gServiceParameterListType->ParameterSet.array[v2gServiceParameterListType->ParameterSet.arrayLen++]);
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- grammarID = 1158;
- break;
- case 1:
- done = 1;
- grammarID = 3;
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 1158:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}ParameterSet), END_ELEMENT] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gServiceParameterListType->ParameterSet.arrayLen < v2gServiceParameterListType_ParameterSet_ARRAY_SIZE) {
- errn = decode_v2gParameterSetType(stream, &v2gServiceParameterListType->ParameterSet.array[v2gServiceParameterListType->ParameterSet.arrayLen++]);
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- grammarID = 1159;
- break;
- case 1:
- done = 1;
- grammarID = 3;
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 1159:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}ParameterSet), END_ELEMENT] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gServiceParameterListType->ParameterSet.arrayLen < v2gServiceParameterListType_ParameterSet_ARRAY_SIZE) {
- errn = decode_v2gParameterSetType(stream, &v2gServiceParameterListType->ParameterSet.array[v2gServiceParameterListType->ParameterSet.arrayLen++]);
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- grammarID = 1160;
- break;
- case 1:
- done = 1;
- grammarID = 3;
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 1160:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}ParameterSet), END_ELEMENT] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gServiceParameterListType->ParameterSet.arrayLen < v2gServiceParameterListType_ParameterSet_ARRAY_SIZE) {
- errn = decode_v2gParameterSetType(stream, &v2gServiceParameterListType->ParameterSet.array[v2gServiceParameterListType->ParameterSet.arrayLen++]);
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- grammarID = 1161;
- break;
- case 1:
- done = 1;
- grammarID = 3;
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 1161:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}ParameterSet), END_ELEMENT] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gServiceParameterListType->ParameterSet.arrayLen < v2gServiceParameterListType_ParameterSet_ARRAY_SIZE) {
- errn = decode_v2gParameterSetType(stream, &v2gServiceParameterListType->ParameterSet.array[v2gServiceParameterListType->ParameterSet.arrayLen++]);
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- grammarID = 1162;
- break;
- case 1:
- done = 1;
- grammarID = 3;
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 1162:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}ParameterSet), END_ELEMENT] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gServiceParameterListType->ParameterSet.arrayLen < v2gServiceParameterListType_ParameterSet_ARRAY_SIZE) {
- errn = decode_v2gParameterSetType(stream, &v2gServiceParameterListType->ParameterSet.array[v2gServiceParameterListType->ParameterSet.arrayLen++]);
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- grammarID = 1163;
- break;
- case 1:
- done = 1;
- grammarID = 3;
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 1163:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}ParameterSet), END_ELEMENT] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gServiceParameterListType->ParameterSet.arrayLen < v2gServiceParameterListType_ParameterSet_ARRAY_SIZE) {
- errn = decode_v2gParameterSetType(stream, &v2gServiceParameterListType->ParameterSet.array[v2gServiceParameterListType->ParameterSet.arrayLen++]);
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- grammarID = 1164;
- break;
- case 1:
- done = 1;
- grammarID = 3;
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 1164:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}ParameterSet), END_ELEMENT] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gServiceParameterListType->ParameterSet.arrayLen < v2gServiceParameterListType_ParameterSet_ARRAY_SIZE) {
- errn = decode_v2gParameterSetType(stream, &v2gServiceParameterListType->ParameterSet.array[v2gServiceParameterListType->ParameterSet.arrayLen++]);
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- grammarID = 1165;
- break;
- case 1:
- done = 1;
- grammarID = 3;
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 1165:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}ParameterSet), END_ELEMENT] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gServiceParameterListType->ParameterSet.arrayLen < v2gServiceParameterListType_ParameterSet_ARRAY_SIZE) {
- errn = decode_v2gParameterSetType(stream, &v2gServiceParameterListType->ParameterSet.array[v2gServiceParameterListType->ParameterSet.arrayLen++]);
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- grammarID = 1166;
- break;
- case 1:
- done = 1;
- grammarID = 3;
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 1166:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}ParameterSet), END_ELEMENT] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gServiceParameterListType->ParameterSet.arrayLen < v2gServiceParameterListType_ParameterSet_ARRAY_SIZE) {
- errn = decode_v2gParameterSetType(stream, &v2gServiceParameterListType->ParameterSet.array[v2gServiceParameterListType->ParameterSet.arrayLen++]);
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- grammarID = 1167;
- break;
- case 1:
- done = 1;
- grammarID = 3;
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 1167:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}ParameterSet), END_ELEMENT] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gServiceParameterListType->ParameterSet.arrayLen < v2gServiceParameterListType_ParameterSet_ARRAY_SIZE) {
- errn = decode_v2gParameterSetType(stream, &v2gServiceParameterListType->ParameterSet.array[v2gServiceParameterListType->ParameterSet.arrayLen++]);
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- grammarID = 1168;
- break;
- case 1:
- done = 1;
- grammarID = 3;
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 1168:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}ParameterSet), END_ELEMENT] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gServiceParameterListType->ParameterSet.arrayLen < v2gServiceParameterListType_ParameterSet_ARRAY_SIZE) {
- errn = decode_v2gParameterSetType(stream, &v2gServiceParameterListType->ParameterSet.array[v2gServiceParameterListType->ParameterSet.arrayLen++]);
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- grammarID = 1169;
- break;
- case 1:
- done = 1;
- grammarID = 3;
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 1169:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}ParameterSet), END_ELEMENT] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gServiceParameterListType->ParameterSet.arrayLen < v2gServiceParameterListType_ParameterSet_ARRAY_SIZE) {
- errn = decode_v2gParameterSetType(stream, &v2gServiceParameterListType->ParameterSet.array[v2gServiceParameterListType->ParameterSet.arrayLen++]);
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- grammarID = 1170;
- break;
- case 1:
- done = 1;
- grammarID = 3;
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 1170:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}ParameterSet), END_ELEMENT] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gServiceParameterListType->ParameterSet.arrayLen < v2gServiceParameterListType_ParameterSet_ARRAY_SIZE) {
- errn = decode_v2gParameterSetType(stream, &v2gServiceParameterListType->ParameterSet.array[v2gServiceParameterListType->ParameterSet.arrayLen++]);
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- grammarID = 1171;
- break;
- case 1:
- done = 1;
- grammarID = 3;
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 1171:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}ParameterSet), END_ELEMENT] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gServiceParameterListType->ParameterSet.arrayLen < v2gServiceParameterListType_ParameterSet_ARRAY_SIZE) {
- errn = decode_v2gParameterSetType(stream, &v2gServiceParameterListType->ParameterSet.array[v2gServiceParameterListType->ParameterSet.arrayLen++]);
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- grammarID = 1172;
- break;
- case 1:
- done = 1;
- grammarID = 3;
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 1172:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}ParameterSet), END_ELEMENT] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gServiceParameterListType->ParameterSet.arrayLen < v2gServiceParameterListType_ParameterSet_ARRAY_SIZE) {
- errn = decode_v2gParameterSetType(stream, &v2gServiceParameterListType->ParameterSet.array[v2gServiceParameterListType->ParameterSet.arrayLen++]);
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- grammarID = 1173;
- break;
- case 1:
- done = 1;
- grammarID = 3;
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 1173:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}ParameterSet), END_ELEMENT] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gServiceParameterListType->ParameterSet.arrayLen < v2gServiceParameterListType_ParameterSet_ARRAY_SIZE) {
- errn = decode_v2gParameterSetType(stream, &v2gServiceParameterListType->ParameterSet.array[v2gServiceParameterListType->ParameterSet.arrayLen++]);
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- grammarID = 1174;
- break;
- case 1:
- done = 1;
- grammarID = 3;
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 1174:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}ParameterSet), END_ELEMENT] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gServiceParameterListType->ParameterSet.arrayLen < v2gServiceParameterListType_ParameterSet_ARRAY_SIZE) {
- errn = decode_v2gParameterSetType(stream, &v2gServiceParameterListType->ParameterSet.array[v2gServiceParameterListType->ParameterSet.arrayLen++]);
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- grammarID = 1175;
- break;
- case 1:
- done = 1;
- grammarID = 3;
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 1175:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}ParameterSet), END_ELEMENT] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gServiceParameterListType->ParameterSet.arrayLen < v2gServiceParameterListType_ParameterSet_ARRAY_SIZE) {
- errn = decode_v2gParameterSetType(stream, &v2gServiceParameterListType->ParameterSet.array[v2gServiceParameterListType->ParameterSet.arrayLen++]);
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- grammarID = 1176;
- break;
- case 1:
- done = 1;
- grammarID = 3;
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 1176:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}ParameterSet), END_ELEMENT] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gServiceParameterListType->ParameterSet.arrayLen < v2gServiceParameterListType_ParameterSet_ARRAY_SIZE) {
- errn = decode_v2gParameterSetType(stream, &v2gServiceParameterListType->ParameterSet.array[v2gServiceParameterListType->ParameterSet.arrayLen++]);
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- grammarID = 1177;
- break;
- case 1:
- done = 1;
- grammarID = 3;
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 1177:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}ParameterSet), END_ELEMENT] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gServiceParameterListType->ParameterSet.arrayLen < v2gServiceParameterListType_ParameterSet_ARRAY_SIZE) {
- errn = decode_v2gParameterSetType(stream, &v2gServiceParameterListType->ParameterSet.array[v2gServiceParameterListType->ParameterSet.arrayLen++]);
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- grammarID = 1178;
- break;
- case 1:
- done = 1;
- grammarID = 3;
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 1178:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}ParameterSet), END_ELEMENT] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gServiceParameterListType->ParameterSet.arrayLen < v2gServiceParameterListType_ParameterSet_ARRAY_SIZE) {
- errn = decode_v2gParameterSetType(stream, &v2gServiceParameterListType->ParameterSet.array[v2gServiceParameterListType->ParameterSet.arrayLen++]);
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- grammarID = 1179;
- break;
- case 1:
- done = 1;
- grammarID = 3;
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 1179:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}ParameterSet), END_ELEMENT] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gServiceParameterListType->ParameterSet.arrayLen < v2gServiceParameterListType_ParameterSet_ARRAY_SIZE) {
- errn = decode_v2gParameterSetType(stream, &v2gServiceParameterListType->ParameterSet.array[v2gServiceParameterListType->ParameterSet.arrayLen++]);
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- grammarID = 2;
- 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='http://www.w3.org/2000/09/xmldsig#,SignedInfoType', base type name='anyType', content type='ELEMENT', isAbstract='false', hasTypeId='false', final='0', block='0', particle='("http://www.w3.org/2000/09/xmldsig#":CanonicalizationMethod,"http://www.w3.org/2000/09/xmldsig#":SignatureMethod,"http://www.w3.org/2000/09/xmldsig#":Reference{1-UNBOUNDED})', derivedBy='RESTRICTION'. */
-static int decode_v2gSignedInfoType(bitstream_t* stream, struct v2gSignedInfoType* v2gSignedInfoType) {
- int grammarID = 1180;
- int done = 0;
-
- init_v2gSignedInfoType(v2gSignedInfoType);
-
- while(!done) {
- switch(grammarID) {
- case 1180:
- /* FirstStartTag[ATTRIBUTE[STRING](Id), START_ELEMENT({http://www.w3.org/2000/09/xmldsig#}CanonicalizationMethod)] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- errn = decodeUnsignedInteger16(stream, &v2gSignedInfoType->Id.charactersLen);
- if (errn == 0) {
- if (v2gSignedInfoType->Id.charactersLen >= 2) {
- v2gSignedInfoType->Id.charactersLen = (uint16_t)(v2gSignedInfoType->Id.charactersLen - 2); /* string table miss */
- errn = decodeCharacters(stream, v2gSignedInfoType->Id.charactersLen, v2gSignedInfoType->Id.characters, v2gSignedInfoType_Id_CHARACTERS_SIZE);
- } else {
- /* string table hit */
- errn = EXI_ERROR_STRINGVALUES_NOT_SUPPORTED;
- }
- }
- v2gSignedInfoType->Id_isUsed = 1u;
- grammarID = 1181;
- break;
- case 1:
- errn = decode_v2gCanonicalizationMethodType(stream, &v2gSignedInfoType->CanonicalizationMethod);
- grammarID = 1182;
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 1181:
- /* StartTag[START_ELEMENT({http://www.w3.org/2000/09/xmldsig#}CanonicalizationMethod)] */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- errn = decode_v2gCanonicalizationMethodType(stream, &v2gSignedInfoType->CanonicalizationMethod);
- grammarID = 1182;
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 1182:
- /* Element[START_ELEMENT({http://www.w3.org/2000/09/xmldsig#}SignatureMethod)] */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- errn = decode_v2gSignatureMethodType(stream, &v2gSignedInfoType->SignatureMethod);
- grammarID = 1183;
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 1183:
- /* Element[START_ELEMENT({http://www.w3.org/2000/09/xmldsig#}Reference)] */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gSignedInfoType->Reference.arrayLen < v2gSignedInfoType_Reference_ARRAY_SIZE) {
- errn = decode_v2gReferenceType(stream, &v2gSignedInfoType->Reference.array[v2gSignedInfoType->Reference.arrayLen++]);
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- grammarID = 619;
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 619:
- /* Element[START_ELEMENT({http://www.w3.org/2000/09/xmldsig#}Reference), END_ELEMENT] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gSignedInfoType->Reference.arrayLen < v2gSignedInfoType_Reference_ARRAY_SIZE) {
- errn = decode_v2gReferenceType(stream, &v2gSignedInfoType->Reference.array[v2gSignedInfoType->Reference.arrayLen++]);
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- grammarID = 619;
- break;
- case 1:
- 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:2016:MsgBody,EVErrorInformationType', base type name='BodyBaseType', content type='ELEMENT', isAbstract='false', hasTypeId='false', final='0', block='0', particle='("urn:iso:15118:2:2016:MsgBody":ErrorCode)', derivedBy='EXTENSION'. */
-static int decode_v2gEVErrorInformationType(bitstream_t* stream, struct v2gEVErrorInformationType* v2gEVErrorInformationType) {
- int grammarID = 1184;
- int done = 0;
-
- init_v2gEVErrorInformationType(v2gEVErrorInformationType);
-
- while(!done) {
- switch(grammarID) {
- case 1184:
- /* FirstStartTag[START_ELEMENT({urn:iso:15118:2:2016:MsgBody}ErrorCode)] */
- 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, 4, &uint32);
- v2gEVErrorInformationType->ErrorCode = (v2gEVErrorCodeType) 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({urn:iso:15118:2:2016:MsgBody}ErrorCode) ? */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(eventCode == 0) {
- grammarID = 2;
- } else {
- errn = EXI_DEVIANT_SUPPORT_NOT_DEPLOYED; /* or also typecast and nillable */
- }
- }
- 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:2016:MsgDataTypes,ListOfRootCertificateIDsType', base type name='anyType', content type='ELEMENT', isAbstract='false', hasTypeId='false', final='0', block='0', particle='("urn:iso:15118:2:2016:MsgDataTypes":RootCertificateID{1-20})', derivedBy='RESTRICTION'. */
-static int decode_v2gListOfRootCertificateIDsType(bitstream_t* stream, struct v2gListOfRootCertificateIDsType* v2gListOfRootCertificateIDsType) {
- int grammarID = 1185;
- int done = 0;
-
- init_v2gListOfRootCertificateIDsType(v2gListOfRootCertificateIDsType);
-
- while(!done) {
- switch(grammarID) {
- case 1185:
- /* FirstStartTag[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}RootCertificateID)] */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gListOfRootCertificateIDsType->RootCertificateID.arrayLen < v2gListOfRootCertificateIDsType_RootCertificateID_ARRAY_SIZE) {
- errn = decode_v2gX509IssuerSerialType(stream, &v2gListOfRootCertificateIDsType->RootCertificateID.array[v2gListOfRootCertificateIDsType->RootCertificateID.arrayLen++]);
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- grammarID = 1186;
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 1186:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}RootCertificateID), END_ELEMENT] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gListOfRootCertificateIDsType->RootCertificateID.arrayLen < v2gListOfRootCertificateIDsType_RootCertificateID_ARRAY_SIZE) {
- errn = decode_v2gX509IssuerSerialType(stream, &v2gListOfRootCertificateIDsType->RootCertificateID.array[v2gListOfRootCertificateIDsType->RootCertificateID.arrayLen++]);
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- grammarID = 1187;
- break;
- case 1:
- done = 1;
- grammarID = 3;
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 1187:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}RootCertificateID), END_ELEMENT] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gListOfRootCertificateIDsType->RootCertificateID.arrayLen < v2gListOfRootCertificateIDsType_RootCertificateID_ARRAY_SIZE) {
- errn = decode_v2gX509IssuerSerialType(stream, &v2gListOfRootCertificateIDsType->RootCertificateID.array[v2gListOfRootCertificateIDsType->RootCertificateID.arrayLen++]);
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- grammarID = 1188;
- break;
- case 1:
- done = 1;
- grammarID = 3;
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 1188:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}RootCertificateID), END_ELEMENT] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gListOfRootCertificateIDsType->RootCertificateID.arrayLen < v2gListOfRootCertificateIDsType_RootCertificateID_ARRAY_SIZE) {
- errn = decode_v2gX509IssuerSerialType(stream, &v2gListOfRootCertificateIDsType->RootCertificateID.array[v2gListOfRootCertificateIDsType->RootCertificateID.arrayLen++]);
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- grammarID = 1189;
- break;
- case 1:
- done = 1;
- grammarID = 3;
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 1189:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}RootCertificateID), END_ELEMENT] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gListOfRootCertificateIDsType->RootCertificateID.arrayLen < v2gListOfRootCertificateIDsType_RootCertificateID_ARRAY_SIZE) {
- errn = decode_v2gX509IssuerSerialType(stream, &v2gListOfRootCertificateIDsType->RootCertificateID.array[v2gListOfRootCertificateIDsType->RootCertificateID.arrayLen++]);
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- grammarID = 1190;
- break;
- case 1:
- done = 1;
- grammarID = 3;
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 1190:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}RootCertificateID), END_ELEMENT] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gListOfRootCertificateIDsType->RootCertificateID.arrayLen < v2gListOfRootCertificateIDsType_RootCertificateID_ARRAY_SIZE) {
- errn = decode_v2gX509IssuerSerialType(stream, &v2gListOfRootCertificateIDsType->RootCertificateID.array[v2gListOfRootCertificateIDsType->RootCertificateID.arrayLen++]);
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- grammarID = 1191;
- break;
- case 1:
- done = 1;
- grammarID = 3;
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 1191:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}RootCertificateID), END_ELEMENT] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gListOfRootCertificateIDsType->RootCertificateID.arrayLen < v2gListOfRootCertificateIDsType_RootCertificateID_ARRAY_SIZE) {
- errn = decode_v2gX509IssuerSerialType(stream, &v2gListOfRootCertificateIDsType->RootCertificateID.array[v2gListOfRootCertificateIDsType->RootCertificateID.arrayLen++]);
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- grammarID = 1192;
- break;
- case 1:
- done = 1;
- grammarID = 3;
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 1192:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}RootCertificateID), END_ELEMENT] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gListOfRootCertificateIDsType->RootCertificateID.arrayLen < v2gListOfRootCertificateIDsType_RootCertificateID_ARRAY_SIZE) {
- errn = decode_v2gX509IssuerSerialType(stream, &v2gListOfRootCertificateIDsType->RootCertificateID.array[v2gListOfRootCertificateIDsType->RootCertificateID.arrayLen++]);
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- grammarID = 1193;
- break;
- case 1:
- done = 1;
- grammarID = 3;
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 1193:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}RootCertificateID), END_ELEMENT] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gListOfRootCertificateIDsType->RootCertificateID.arrayLen < v2gListOfRootCertificateIDsType_RootCertificateID_ARRAY_SIZE) {
- errn = decode_v2gX509IssuerSerialType(stream, &v2gListOfRootCertificateIDsType->RootCertificateID.array[v2gListOfRootCertificateIDsType->RootCertificateID.arrayLen++]);
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- grammarID = 1194;
- break;
- case 1:
- done = 1;
- grammarID = 3;
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 1194:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}RootCertificateID), END_ELEMENT] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gListOfRootCertificateIDsType->RootCertificateID.arrayLen < v2gListOfRootCertificateIDsType_RootCertificateID_ARRAY_SIZE) {
- errn = decode_v2gX509IssuerSerialType(stream, &v2gListOfRootCertificateIDsType->RootCertificateID.array[v2gListOfRootCertificateIDsType->RootCertificateID.arrayLen++]);
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- grammarID = 1195;
- break;
- case 1:
- done = 1;
- grammarID = 3;
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 1195:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}RootCertificateID), END_ELEMENT] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gListOfRootCertificateIDsType->RootCertificateID.arrayLen < v2gListOfRootCertificateIDsType_RootCertificateID_ARRAY_SIZE) {
- errn = decode_v2gX509IssuerSerialType(stream, &v2gListOfRootCertificateIDsType->RootCertificateID.array[v2gListOfRootCertificateIDsType->RootCertificateID.arrayLen++]);
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- grammarID = 1196;
- break;
- case 1:
- done = 1;
- grammarID = 3;
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 1196:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}RootCertificateID), END_ELEMENT] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gListOfRootCertificateIDsType->RootCertificateID.arrayLen < v2gListOfRootCertificateIDsType_RootCertificateID_ARRAY_SIZE) {
- errn = decode_v2gX509IssuerSerialType(stream, &v2gListOfRootCertificateIDsType->RootCertificateID.array[v2gListOfRootCertificateIDsType->RootCertificateID.arrayLen++]);
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- grammarID = 1197;
- break;
- case 1:
- done = 1;
- grammarID = 3;
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 1197:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}RootCertificateID), END_ELEMENT] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gListOfRootCertificateIDsType->RootCertificateID.arrayLen < v2gListOfRootCertificateIDsType_RootCertificateID_ARRAY_SIZE) {
- errn = decode_v2gX509IssuerSerialType(stream, &v2gListOfRootCertificateIDsType->RootCertificateID.array[v2gListOfRootCertificateIDsType->RootCertificateID.arrayLen++]);
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- grammarID = 1198;
- break;
- case 1:
- done = 1;
- grammarID = 3;
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 1198:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}RootCertificateID), END_ELEMENT] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gListOfRootCertificateIDsType->RootCertificateID.arrayLen < v2gListOfRootCertificateIDsType_RootCertificateID_ARRAY_SIZE) {
- errn = decode_v2gX509IssuerSerialType(stream, &v2gListOfRootCertificateIDsType->RootCertificateID.array[v2gListOfRootCertificateIDsType->RootCertificateID.arrayLen++]);
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- grammarID = 1199;
- break;
- case 1:
- done = 1;
- grammarID = 3;
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 1199:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}RootCertificateID), END_ELEMENT] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gListOfRootCertificateIDsType->RootCertificateID.arrayLen < v2gListOfRootCertificateIDsType_RootCertificateID_ARRAY_SIZE) {
- errn = decode_v2gX509IssuerSerialType(stream, &v2gListOfRootCertificateIDsType->RootCertificateID.array[v2gListOfRootCertificateIDsType->RootCertificateID.arrayLen++]);
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- grammarID = 1200;
- break;
- case 1:
- done = 1;
- grammarID = 3;
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 1200:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}RootCertificateID), END_ELEMENT] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gListOfRootCertificateIDsType->RootCertificateID.arrayLen < v2gListOfRootCertificateIDsType_RootCertificateID_ARRAY_SIZE) {
- errn = decode_v2gX509IssuerSerialType(stream, &v2gListOfRootCertificateIDsType->RootCertificateID.array[v2gListOfRootCertificateIDsType->RootCertificateID.arrayLen++]);
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- grammarID = 1201;
- break;
- case 1:
- done = 1;
- grammarID = 3;
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 1201:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}RootCertificateID), END_ELEMENT] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gListOfRootCertificateIDsType->RootCertificateID.arrayLen < v2gListOfRootCertificateIDsType_RootCertificateID_ARRAY_SIZE) {
- errn = decode_v2gX509IssuerSerialType(stream, &v2gListOfRootCertificateIDsType->RootCertificateID.array[v2gListOfRootCertificateIDsType->RootCertificateID.arrayLen++]);
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- grammarID = 1202;
- break;
- case 1:
- done = 1;
- grammarID = 3;
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 1202:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}RootCertificateID), END_ELEMENT] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gListOfRootCertificateIDsType->RootCertificateID.arrayLen < v2gListOfRootCertificateIDsType_RootCertificateID_ARRAY_SIZE) {
- errn = decode_v2gX509IssuerSerialType(stream, &v2gListOfRootCertificateIDsType->RootCertificateID.array[v2gListOfRootCertificateIDsType->RootCertificateID.arrayLen++]);
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- grammarID = 1203;
- break;
- case 1:
- done = 1;
- grammarID = 3;
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 1203:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}RootCertificateID), END_ELEMENT] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gListOfRootCertificateIDsType->RootCertificateID.arrayLen < v2gListOfRootCertificateIDsType_RootCertificateID_ARRAY_SIZE) {
- errn = decode_v2gX509IssuerSerialType(stream, &v2gListOfRootCertificateIDsType->RootCertificateID.array[v2gListOfRootCertificateIDsType->RootCertificateID.arrayLen++]);
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- grammarID = 1204;
- break;
- case 1:
- done = 1;
- grammarID = 3;
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 1204:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}RootCertificateID), END_ELEMENT] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gListOfRootCertificateIDsType->RootCertificateID.arrayLen < v2gListOfRootCertificateIDsType_RootCertificateID_ARRAY_SIZE) {
- errn = decode_v2gX509IssuerSerialType(stream, &v2gListOfRootCertificateIDsType->RootCertificateID.array[v2gListOfRootCertificateIDsType->RootCertificateID.arrayLen++]);
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- grammarID = 2;
- 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='http://www.w3.org/2000/09/xmldsig#,SPKIDataType', base type name='anyType', content type='ELEMENT', isAbstract='false', hasTypeId='false', final='0', block='0', particle='("http://www.w3.org/2000/09/xmldsig#":SPKISexp,(WC[##other:"http://www.w3.org/2000/09/xmldsig#"]){0-1}){1-UNBOUNDED}', derivedBy='RESTRICTION'. */
-static int decode_v2gSPKIDataType(bitstream_t* stream, struct v2gSPKIDataType* v2gSPKIDataType) {
- int grammarID = 1205;
- int done = 0;
-
- init_v2gSPKIDataType(v2gSPKIDataType);
-
- while(!done) {
- switch(grammarID) {
- case 1205:
- /* FirstStartTag[START_ELEMENT({http://www.w3.org/2000/09/xmldsig#}SPKISexp)] */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gSPKIDataType->SPKISexp.arrayLen < v2gSPKIDataType_SPKISexp_ARRAY_SIZE) {
- /* First(xsi:type)StartTag[CHARACTERS[BINARY_BASE64]] */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(errn == 0) {
- if(eventCode == 0) {
- errn = decodeUnsignedInteger16(stream, &v2gSPKIDataType->SPKISexp.array[v2gSPKIDataType->SPKISexp.arrayLen].bytesLen);
- if (errn == 0) {
- errn = (v2gSPKIDataType->SPKISexp.array[v2gSPKIDataType->SPKISexp.arrayLen].bytesLen) <= v2gSPKIDataType_SPKISexp_BYTES_SIZE ? 0 : EXI_ERROR_OUT_OF_BYTE_BUFFER;
- }
- if (errn == 0) {
- errn = decodeBytes(stream, v2gSPKIDataType->SPKISexp.array[v2gSPKIDataType->SPKISexp.arrayLen].bytesLen, v2gSPKIDataType->SPKISexp.array[v2gSPKIDataType->SPKISexp.arrayLen].bytes);
- }
- v2gSPKIDataType->SPKISexp.arrayLen++;
- } else {
- /* Second level event (e.g., xsi:type, xsi:nil, ...) */
- errn = EXI_UNSUPPORTED_EVENT_CODE_CHARACTERISTICS;
- }
- }
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- if(errn == 0) {
- /* valid EE for simple element START_ELEMENT({http://www.w3.org/2000/09/xmldsig#}SPKISexp) ? */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(eventCode == 0) {
- grammarID = 1206;
- } else {
- errn = EXI_DEVIANT_SUPPORT_NOT_DEPLOYED; /* or also typecast and nillable */
- }
- }
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 1206:
- /* Element[START_ELEMENT({http://www.w3.org/2000/09/xmldsig#}SPKISexp), START_ELEMENT_GENERIC, END_ELEMENT] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gSPKIDataType->SPKISexp.arrayLen < v2gSPKIDataType_SPKISexp_ARRAY_SIZE) {
- /* First(xsi:type)StartTag[CHARACTERS[BINARY_BASE64]] */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(errn == 0) {
- if(eventCode == 0) {
- errn = decodeUnsignedInteger16(stream, &v2gSPKIDataType->SPKISexp.array[v2gSPKIDataType->SPKISexp.arrayLen].bytesLen);
- if (errn == 0) {
- errn = (v2gSPKIDataType->SPKISexp.array[v2gSPKIDataType->SPKISexp.arrayLen].bytesLen) <= v2gSPKIDataType_SPKISexp_BYTES_SIZE ? 0 : EXI_ERROR_OUT_OF_BYTE_BUFFER;
- }
- if (errn == 0) {
- errn = decodeBytes(stream, v2gSPKIDataType->SPKISexp.array[v2gSPKIDataType->SPKISexp.arrayLen].bytesLen, v2gSPKIDataType->SPKISexp.array[v2gSPKIDataType->SPKISexp.arrayLen].bytes);
- }
- v2gSPKIDataType->SPKISexp.arrayLen++;
- } else {
- /* Second level event (e.g., xsi:type, xsi:nil, ...) */
- errn = EXI_UNSUPPORTED_EVENT_CODE_CHARACTERISTICS;
- }
- }
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- if(errn == 0) {
- /* valid EE for simple element START_ELEMENT({http://www.w3.org/2000/09/xmldsig#}SPKISexp) ? */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(eventCode == 0) {
- grammarID = 1206;
- } else {
- errn = EXI_DEVIANT_SUPPORT_NOT_DEPLOYED; /* or also typecast and nillable */
- }
- }
- break;
- case 1:
- errn = EXI_UNSUPPORTED_EVENT_CODE_CHARACTERISTICS;
- /* TODO unsupported event : START_ELEMENT_GENERIC */
- grammarID = 1207;
- break;
- case 2:
- done = 1;
- grammarID = 3;
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 1207:
- /* Element[START_ELEMENT({http://www.w3.org/2000/09/xmldsig#}SPKISexp), END_ELEMENT] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gSPKIDataType->SPKISexp.arrayLen < v2gSPKIDataType_SPKISexp_ARRAY_SIZE) {
- /* First(xsi:type)StartTag[CHARACTERS[BINARY_BASE64]] */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(errn == 0) {
- if(eventCode == 0) {
- errn = decodeUnsignedInteger16(stream, &v2gSPKIDataType->SPKISexp.array[v2gSPKIDataType->SPKISexp.arrayLen].bytesLen);
- if (errn == 0) {
- errn = (v2gSPKIDataType->SPKISexp.array[v2gSPKIDataType->SPKISexp.arrayLen].bytesLen) <= v2gSPKIDataType_SPKISexp_BYTES_SIZE ? 0 : EXI_ERROR_OUT_OF_BYTE_BUFFER;
- }
- if (errn == 0) {
- errn = decodeBytes(stream, v2gSPKIDataType->SPKISexp.array[v2gSPKIDataType->SPKISexp.arrayLen].bytesLen, v2gSPKIDataType->SPKISexp.array[v2gSPKIDataType->SPKISexp.arrayLen].bytes);
- }
- v2gSPKIDataType->SPKISexp.arrayLen++;
- } else {
- /* Second level event (e.g., xsi:type, xsi:nil, ...) */
- errn = EXI_UNSUPPORTED_EVENT_CODE_CHARACTERISTICS;
- }
- }
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- if(errn == 0) {
- /* valid EE for simple element START_ELEMENT({http://www.w3.org/2000/09/xmldsig#}SPKISexp) ? */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(eventCode == 0) {
- grammarID = 1206;
- } 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;
- default:
- errn = EXI_ERROR_UNKOWN_GRAMMAR_ID;
- break;
- }
- if(errn) {
- done = 1;
- }
- }
- return errn;
-}
-
-/* Complex type name='urn:iso:15118:2:2016:MsgBody,DC_BidirectionalControlReqType', base type name='ChargeLoopReqType', content type='ELEMENT', isAbstract='false', hasTypeId='false', final='0', block='0', particle='(("urn:iso:15118:2:2016:MsgBody":EVTargetEnergyRequest,"urn:iso:15118:2:2016:MsgBody":EVMaximumEnergyRequest{0-1},"urn:iso:15118:2:2016:MsgBody":EVMinimumEnergyRequest{0-1},"urn:iso:15118:2:2016:MsgBody":DisplayParameters{0-1}),("urn:iso:15118:2:2016:MsgBody":EVTargetCurrent,"urn:iso:15118:2:2016:MsgBody":EVTargetVoltage,"urn:iso:15118:2:2016:MsgBody":EVMaximumVoltage,"urn:iso:15118:2:2016:MsgBody":EVMinimumVoltage,"urn:iso:15118:2:2016:MsgBody":EVMaximumChargeCurrent,"urn:iso:15118:2:2016:MsgBody":EVMaximumDischargeCurrent{0-1},"urn:iso:15118:2:2016:MsgBody":EVMaximumChargePower{0-1},"urn:iso:15118:2:2016:MsgBody":EVMaximumDischargePower{0-1}))', derivedBy='EXTENSION'. */
-static int decode_v2gDC_BidirectionalControlReqType(bitstream_t* stream, struct v2gDC_BidirectionalControlReqType* v2gDC_BidirectionalControlReqType) {
- int grammarID = 1208;
- int done = 0;
-
- init_v2gDC_BidirectionalControlReqType(v2gDC_BidirectionalControlReqType);
-
- while(!done) {
- switch(grammarID) {
- case 1208:
- /* FirstStartTag[START_ELEMENT({urn:iso:15118:2:2016:MsgBody}EVTargetEnergyRequest)] */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- errn = decode_v2gPhysicalValueType(stream, &v2gDC_BidirectionalControlReqType->EVTargetEnergyRequest);
- grammarID = 1209;
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 1209:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgBody}EVMaximumEnergyRequest), START_ELEMENT({urn:iso:15118:2:2016:MsgBody}EVMinimumEnergyRequest), START_ELEMENT({urn:iso:15118:2:2016:MsgBody}DisplayParameters), START_ELEMENT({urn:iso:15118:2:2016:MsgBody}EVTargetCurrent)] */
- errn = decodeNBitUnsignedInteger(stream, 3, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- errn = decode_v2gPhysicalValueType(stream, &v2gDC_BidirectionalControlReqType->EVMaximumEnergyRequest);
- v2gDC_BidirectionalControlReqType->EVMaximumEnergyRequest_isUsed = 1u;
- grammarID = 1210;
- break;
- case 1:
- errn = decode_v2gPhysicalValueType(stream, &v2gDC_BidirectionalControlReqType->EVMinimumEnergyRequest);
- v2gDC_BidirectionalControlReqType->EVMinimumEnergyRequest_isUsed = 1u;
- grammarID = 1211;
- break;
- case 2:
- errn = decode_v2gDisplayParametersType(stream, &v2gDC_BidirectionalControlReqType->DisplayParameters);
- v2gDC_BidirectionalControlReqType->DisplayParameters_isUsed = 1u;
- grammarID = 1212;
- break;
- case 3:
- errn = decode_v2gPhysicalValueType(stream, &v2gDC_BidirectionalControlReqType->EVTargetCurrent);
- grammarID = 1213;
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 1210:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgBody}EVMinimumEnergyRequest), START_ELEMENT({urn:iso:15118:2:2016:MsgBody}DisplayParameters), START_ELEMENT({urn:iso:15118:2:2016:MsgBody}EVTargetCurrent)] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- errn = decode_v2gPhysicalValueType(stream, &v2gDC_BidirectionalControlReqType->EVMinimumEnergyRequest);
- v2gDC_BidirectionalControlReqType->EVMinimumEnergyRequest_isUsed = 1u;
- grammarID = 1211;
- break;
- case 1:
- errn = decode_v2gDisplayParametersType(stream, &v2gDC_BidirectionalControlReqType->DisplayParameters);
- v2gDC_BidirectionalControlReqType->DisplayParameters_isUsed = 1u;
- grammarID = 1212;
- break;
- case 2:
- errn = decode_v2gPhysicalValueType(stream, &v2gDC_BidirectionalControlReqType->EVTargetCurrent);
- grammarID = 1213;
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 1211:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgBody}DisplayParameters), START_ELEMENT({urn:iso:15118:2:2016:MsgBody}EVTargetCurrent)] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- errn = decode_v2gDisplayParametersType(stream, &v2gDC_BidirectionalControlReqType->DisplayParameters);
- v2gDC_BidirectionalControlReqType->DisplayParameters_isUsed = 1u;
- grammarID = 1212;
- break;
- case 1:
- errn = decode_v2gPhysicalValueType(stream, &v2gDC_BidirectionalControlReqType->EVTargetCurrent);
- grammarID = 1213;
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 1212:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgBody}EVTargetCurrent)] */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- errn = decode_v2gPhysicalValueType(stream, &v2gDC_BidirectionalControlReqType->EVTargetCurrent);
- grammarID = 1213;
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 1213:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgBody}EVTargetVoltage)] */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- errn = decode_v2gPhysicalValueType(stream, &v2gDC_BidirectionalControlReqType->EVTargetVoltage);
- grammarID = 1214;
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 1214:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgBody}EVMaximumVoltage)] */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- errn = decode_v2gPhysicalValueType(stream, &v2gDC_BidirectionalControlReqType->EVMaximumVoltage);
- grammarID = 1215;
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 1215:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgBody}EVMinimumVoltage)] */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- errn = decode_v2gPhysicalValueType(stream, &v2gDC_BidirectionalControlReqType->EVMinimumVoltage);
- grammarID = 1216;
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 1216:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgBody}EVMaximumChargeCurrent)] */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- errn = decode_v2gPhysicalValueType(stream, &v2gDC_BidirectionalControlReqType->EVMaximumChargeCurrent);
- grammarID = 1217;
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 1217:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgBody}EVMaximumDischargeCurrent), START_ELEMENT({urn:iso:15118:2:2016:MsgBody}EVMaximumChargePower), START_ELEMENT({urn:iso:15118:2:2016:MsgBody}EVMaximumDischargePower), END_ELEMENT] */
- errn = decodeNBitUnsignedInteger(stream, 3, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- errn = decode_v2gPhysicalValueType(stream, &v2gDC_BidirectionalControlReqType->EVMaximumDischargeCurrent);
- v2gDC_BidirectionalControlReqType->EVMaximumDischargeCurrent_isUsed = 1u;
- grammarID = 1218;
- break;
- case 1:
- errn = decode_v2gPhysicalValueType(stream, &v2gDC_BidirectionalControlReqType->EVMaximumChargePower);
- v2gDC_BidirectionalControlReqType->EVMaximumChargePower_isUsed = 1u;
- grammarID = 1219;
- break;
- case 2:
- errn = decode_v2gPhysicalValueType(stream, &v2gDC_BidirectionalControlReqType->EVMaximumDischargePower);
- v2gDC_BidirectionalControlReqType->EVMaximumDischargePower_isUsed = 1u;
- grammarID = 2;
- break;
- case 3:
- done = 1;
- grammarID = 3;
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 1218:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgBody}EVMaximumChargePower), START_ELEMENT({urn:iso:15118:2:2016:MsgBody}EVMaximumDischargePower), END_ELEMENT] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- errn = decode_v2gPhysicalValueType(stream, &v2gDC_BidirectionalControlReqType->EVMaximumChargePower);
- v2gDC_BidirectionalControlReqType->EVMaximumChargePower_isUsed = 1u;
- grammarID = 1219;
- break;
- case 1:
- errn = decode_v2gPhysicalValueType(stream, &v2gDC_BidirectionalControlReqType->EVMaximumDischargePower);
- v2gDC_BidirectionalControlReqType->EVMaximumDischargePower_isUsed = 1u;
- grammarID = 2;
- break;
- case 2:
- done = 1;
- grammarID = 3;
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 1219:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgBody}EVMaximumDischargePower), END_ELEMENT] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- errn = decode_v2gPhysicalValueType(stream, &v2gDC_BidirectionalControlReqType->EVMaximumDischargePower);
- v2gDC_BidirectionalControlReqType->EVMaximumDischargePower_isUsed = 1u;
- grammarID = 2;
- 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:2016:MsgBody,PairingResType', base type name='V2GResponseType', content type='ELEMENT', isAbstract='false', hasTypeId='false', final='0', block='0', particle='(("urn:iso:15118:2:2016:MsgBody":ResponseCode,"urn:iso:15118:2:2016:MsgBody":EVSEStatus{0-1}),("urn:iso:15118:2:2016:MsgBody":EVSEProcessing,"urn:iso:15118:2:2016:MsgBody":PairingParameters{0-1}))', derivedBy='EXTENSION'. */
-static int decode_v2gPairingResType(bitstream_t* stream, struct v2gPairingResType* v2gPairingResType) {
- int grammarID = 1220;
- int done = 0;
-
- init_v2gPairingResType(v2gPairingResType);
-
- while(!done) {
- switch(grammarID) {
- case 1220:
- /* FirstStartTag[START_ELEMENT({urn:iso:15118:2:2016:MsgBody}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, 5, &uint32);
- v2gPairingResType->ResponseCode = (v2gresponseCodeType) 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({urn:iso:15118:2:2016:MsgBody}ResponseCode) ? */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(eventCode == 0) {
- grammarID = 1221;
- } else {
- errn = EXI_DEVIANT_SUPPORT_NOT_DEPLOYED; /* or also typecast and nillable */
- }
- }
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 1221:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgBody}EVSEStatus), START_ELEMENT({urn:iso:15118:2:2016:MsgBody}EVSEProcessing)] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- errn = decode_v2gEVSEStatusType(stream, &v2gPairingResType->EVSEStatus);
- v2gPairingResType->EVSEStatus_isUsed = 1u;
- grammarID = 1222;
- break;
- case 1:
- /* FirstStartTag[CHARACTERS[ENUMERATION]] */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(errn == 0) {
- if(eventCode == 0) {
- errn = decodeNBitUnsignedInteger(stream, 2, &uint32);
- v2gPairingResType->EVSEProcessing = (v2gEVSEProcessingType) 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({urn:iso:15118:2:2016:MsgBody}EVSEProcessing) ? */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(eventCode == 0) {
- grammarID = 1223;
- } else {
- errn = EXI_DEVIANT_SUPPORT_NOT_DEPLOYED; /* or also typecast and nillable */
- }
- }
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 1222:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgBody}EVSEProcessing)] */
- 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);
- v2gPairingResType->EVSEProcessing = (v2gEVSEProcessingType) 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({urn:iso:15118:2:2016:MsgBody}EVSEProcessing) ? */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(eventCode == 0) {
- grammarID = 1223;
- } else {
- errn = EXI_DEVIANT_SUPPORT_NOT_DEPLOYED; /* or also typecast and nillable */
- }
- }
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 1223:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgBody}PairingParameters), END_ELEMENT] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- errn = decode_v2gParameterSetType(stream, &v2gPairingResType->PairingParameters);
- v2gPairingResType->PairingParameters_isUsed = 1u;
- grammarID = 2;
- 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:2016:MsgDataTypes,CartesianCoordinatesType', base type name='anyType', content type='ELEMENT', isAbstract='false', hasTypeId='false', final='0', block='0', particle='("urn:iso:15118:2:2016:MsgDataTypes":XCoordinate,"urn:iso:15118:2:2016:MsgDataTypes":YCoordinate,"urn:iso:15118:2:2016:MsgDataTypes":ZCoordinate)', derivedBy='RESTRICTION'. */
-static int decode_v2gCartesianCoordinatesType(bitstream_t* stream, struct v2gCartesianCoordinatesType* v2gCartesianCoordinatesType) {
- int grammarID = 1224;
- int done = 0;
-
- init_v2gCartesianCoordinatesType(v2gCartesianCoordinatesType);
-
- while(!done) {
- switch(grammarID) {
- case 1224:
- /* FirstStartTag[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}XCoordinate)] */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- /* First(xsi:type)StartTag[CHARACTERS[INTEGER]] */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(errn == 0) {
- if(eventCode == 0) {
- errn = decodeInteger16(stream, &v2gCartesianCoordinatesType->XCoordinate);
- } 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({urn:iso:15118:2:2016:MsgDataTypes}XCoordinate) ? */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(eventCode == 0) {
- grammarID = 1225;
- } else {
- errn = EXI_DEVIANT_SUPPORT_NOT_DEPLOYED; /* or also typecast and nillable */
- }
- }
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 1225:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}YCoordinate)] */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- /* First(xsi:type)StartTag[CHARACTERS[INTEGER]] */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(errn == 0) {
- if(eventCode == 0) {
- errn = decodeInteger16(stream, &v2gCartesianCoordinatesType->YCoordinate);
- } 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({urn:iso:15118:2:2016:MsgDataTypes}YCoordinate) ? */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(eventCode == 0) {
- grammarID = 1226;
- } else {
- errn = EXI_DEVIANT_SUPPORT_NOT_DEPLOYED; /* or also typecast and nillable */
- }
- }
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 1226:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}ZCoordinate)] */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- /* First(xsi:type)StartTag[CHARACTERS[INTEGER]] */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(errn == 0) {
- if(eventCode == 0) {
- errn = decodeInteger16(stream, &v2gCartesianCoordinatesType->ZCoordinate);
- } 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({urn:iso:15118:2:2016:MsgDataTypes}ZCoordinate) ? */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(eventCode == 0) {
- grammarID = 2;
- } else {
- errn = EXI_DEVIANT_SUPPORT_NOT_DEPLOYED; /* or also typecast and nillable */
- }
- }
- 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:2016:MsgBody,ChargeParameterDiscoveryReqType', base type name='BodyBaseType', content type='ELEMENT', isAbstract='false', hasTypeId='false', final='0', block='0', particle='("urn:iso:15118:2:2016:MsgBody":MaxSupportingPoints{0-1},"urn:iso:15118:2:2016:MsgDataTypes":EVEnergyTransferParameter,"urn:iso:15118:2:2016:MsgBody":MinimumPMaxRequest{0-1})', derivedBy='EXTENSION'. */
-static int decode_v2gChargeParameterDiscoveryReqType(bitstream_t* stream, struct v2gChargeParameterDiscoveryReqType* v2gChargeParameterDiscoveryReqType) {
- int grammarID = 1227;
- int done = 0;
-
- init_v2gChargeParameterDiscoveryReqType(v2gChargeParameterDiscoveryReqType);
-
- while(!done) {
- switch(grammarID) {
- case 1227:
- /* FirstStartTag[START_ELEMENT({urn:iso:15118:2:2016:MsgBody}MaxSupportingPoints), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}AC_EVBidirectionalParameter), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}AC_EVChargeParameter), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}DC_EVBidirectionalParameter), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}DC_EVChargeParameter), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}EVEnergyTransferParameter), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}WPT_EVChargeParameter)] */
- errn = decodeNBitUnsignedInteger(stream, 3, &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, 10, &(uint32));
- v2gChargeParameterDiscoveryReqType->MaxSupportingPoints = (uint16_t)(uint32 + 12);
- v2gChargeParameterDiscoveryReqType->MaxSupportingPoints_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({urn:iso:15118:2:2016:MsgBody}MaxSupportingPoints) ? */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(eventCode == 0) {
- grammarID = 1228;
- } else {
- errn = EXI_DEVIANT_SUPPORT_NOT_DEPLOYED; /* or also typecast and nillable */
- }
- }
- break;
- case 1:
- errn = decode_v2gAC_EVBidirectionalParameterType(stream, &v2gChargeParameterDiscoveryReqType->AC_EVBidirectionalParameter);
- v2gChargeParameterDiscoveryReqType->AC_EVBidirectionalParameter_isUsed = 1u;
- grammarID = 1229;
- break;
- case 2:
- errn = decode_v2gAC_EVChargeParameterType(stream, &v2gChargeParameterDiscoveryReqType->AC_EVChargeParameter);
- v2gChargeParameterDiscoveryReqType->AC_EVChargeParameter_isUsed = 1u;
- grammarID = 1229;
- break;
- case 3:
- errn = decode_v2gDC_EVBidirectionalParameterType(stream, &v2gChargeParameterDiscoveryReqType->DC_EVBidirectionalParameter);
- v2gChargeParameterDiscoveryReqType->DC_EVBidirectionalParameter_isUsed = 1u;
- grammarID = 1229;
- break;
- case 4:
- errn = decode_v2gDC_EVChargeParameterType(stream, &v2gChargeParameterDiscoveryReqType->DC_EVChargeParameter);
- v2gChargeParameterDiscoveryReqType->DC_EVChargeParameter_isUsed = 1u;
- grammarID = 1229;
- break;
- case 5:
- errn = decode_v2gEVEnergyTransferParameterType(stream, &v2gChargeParameterDiscoveryReqType->EVEnergyTransferParameter);
- v2gChargeParameterDiscoveryReqType->EVEnergyTransferParameter_isUsed = 1u;
- grammarID = 1229;
- break;
- case 6:
- errn = decode_v2gWPT_EVChargeParameterType(stream, &v2gChargeParameterDiscoveryReqType->WPT_EVChargeParameter);
- v2gChargeParameterDiscoveryReqType->WPT_EVChargeParameter_isUsed = 1u;
- grammarID = 1229;
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 1228:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}AC_EVBidirectionalParameter), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}AC_EVChargeParameter), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}DC_EVBidirectionalParameter), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}DC_EVChargeParameter), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}EVEnergyTransferParameter), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}WPT_EVChargeParameter)] */
- errn = decodeNBitUnsignedInteger(stream, 3, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- errn = decode_v2gAC_EVBidirectionalParameterType(stream, &v2gChargeParameterDiscoveryReqType->AC_EVBidirectionalParameter);
- v2gChargeParameterDiscoveryReqType->AC_EVBidirectionalParameter_isUsed = 1u;
- grammarID = 1229;
- break;
- case 1:
- errn = decode_v2gAC_EVChargeParameterType(stream, &v2gChargeParameterDiscoveryReqType->AC_EVChargeParameter);
- v2gChargeParameterDiscoveryReqType->AC_EVChargeParameter_isUsed = 1u;
- grammarID = 1229;
- break;
- case 2:
- errn = decode_v2gDC_EVBidirectionalParameterType(stream, &v2gChargeParameterDiscoveryReqType->DC_EVBidirectionalParameter);
- v2gChargeParameterDiscoveryReqType->DC_EVBidirectionalParameter_isUsed = 1u;
- grammarID = 1229;
- break;
- case 3:
- errn = decode_v2gDC_EVChargeParameterType(stream, &v2gChargeParameterDiscoveryReqType->DC_EVChargeParameter);
- v2gChargeParameterDiscoveryReqType->DC_EVChargeParameter_isUsed = 1u;
- grammarID = 1229;
- break;
- case 4:
- errn = decode_v2gEVEnergyTransferParameterType(stream, &v2gChargeParameterDiscoveryReqType->EVEnergyTransferParameter);
- v2gChargeParameterDiscoveryReqType->EVEnergyTransferParameter_isUsed = 1u;
- grammarID = 1229;
- break;
- case 5:
- errn = decode_v2gWPT_EVChargeParameterType(stream, &v2gChargeParameterDiscoveryReqType->WPT_EVChargeParameter);
- v2gChargeParameterDiscoveryReqType->WPT_EVChargeParameter_isUsed = 1u;
- grammarID = 1229;
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 1229:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgBody}MinimumPMaxRequest), END_ELEMENT] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- errn = decode_v2gMinimumPMaxRequestType(stream, &v2gChargeParameterDiscoveryReqType->MinimumPMaxRequest);
- v2gChargeParameterDiscoveryReqType->MinimumPMaxRequest_isUsed = 1u;
- grammarID = 2;
- 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:2016:MsgBody,ChargeParameterDiscoveryResType', base type name='V2GResponseType', content type='ELEMENT', isAbstract='false', hasTypeId='false', final='0', block='0', particle='(("urn:iso:15118:2:2016:MsgBody":ResponseCode,"urn:iso:15118:2:2016:MsgBody":EVSEStatus{0-1}),("urn:iso:15118:2:2016:MsgBody":EVSEProcessing,"urn:iso:15118:2:2016:MsgBody":SAScheduleList{0-1},"urn:iso:15118:2:2016:MsgDataTypes":EVSEEnergyTransferParameter))', derivedBy='EXTENSION'. */
-static int decode_v2gChargeParameterDiscoveryResType(bitstream_t* stream, struct v2gChargeParameterDiscoveryResType* v2gChargeParameterDiscoveryResType) {
- int grammarID = 1230;
- int done = 0;
-
- init_v2gChargeParameterDiscoveryResType(v2gChargeParameterDiscoveryResType);
-
- while(!done) {
- switch(grammarID) {
- case 1230:
- /* FirstStartTag[START_ELEMENT({urn:iso:15118:2:2016:MsgBody}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, 5, &uint32);
- v2gChargeParameterDiscoveryResType->ResponseCode = (v2gresponseCodeType) 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({urn:iso:15118:2:2016:MsgBody}ResponseCode) ? */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(eventCode == 0) {
- grammarID = 1231;
- } else {
- errn = EXI_DEVIANT_SUPPORT_NOT_DEPLOYED; /* or also typecast and nillable */
- }
- }
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 1231:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgBody}EVSEStatus), START_ELEMENT({urn:iso:15118:2:2016:MsgBody}EVSEProcessing)] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- errn = decode_v2gEVSEStatusType(stream, &v2gChargeParameterDiscoveryResType->EVSEStatus);
- v2gChargeParameterDiscoveryResType->EVSEStatus_isUsed = 1u;
- grammarID = 1232;
- break;
- case 1:
- /* FirstStartTag[CHARACTERS[ENUMERATION]] */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(errn == 0) {
- if(eventCode == 0) {
- errn = decodeNBitUnsignedInteger(stream, 2, &uint32);
- v2gChargeParameterDiscoveryResType->EVSEProcessing = (v2gEVSEProcessingType) 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({urn:iso:15118:2:2016:MsgBody}EVSEProcessing) ? */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(eventCode == 0) {
- grammarID = 1233;
- } else {
- errn = EXI_DEVIANT_SUPPORT_NOT_DEPLOYED; /* or also typecast and nillable */
- }
- }
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 1232:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgBody}EVSEProcessing)] */
- 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);
- v2gChargeParameterDiscoveryResType->EVSEProcessing = (v2gEVSEProcessingType) 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({urn:iso:15118:2:2016:MsgBody}EVSEProcessing) ? */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(eventCode == 0) {
- grammarID = 1233;
- } else {
- errn = EXI_DEVIANT_SUPPORT_NOT_DEPLOYED; /* or also typecast and nillable */
- }
- }
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 1233:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgBody}SAScheduleList), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}AC_EVSEBidirectionalParameter), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}AC_EVSEChargeParameter), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}DC_EVSEBidirectionalParameter), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}DC_EVSEChargeParameter), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}EVSEEnergyTransferParameter), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}WPT_EVSEChargeParameter)] */
- errn = decodeNBitUnsignedInteger(stream, 3, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- errn = decode_v2gSAScheduleListType(stream, &v2gChargeParameterDiscoveryResType->SAScheduleList);
- v2gChargeParameterDiscoveryResType->SAScheduleList_isUsed = 1u;
- grammarID = 1234;
- break;
- case 1:
- errn = decode_v2gAC_EVSEBidirectionalParameterType(stream, &v2gChargeParameterDiscoveryResType->AC_EVSEBidirectionalParameter);
- v2gChargeParameterDiscoveryResType->AC_EVSEBidirectionalParameter_isUsed = 1u;
- grammarID = 2;
- break;
- case 2:
- errn = decode_v2gAC_EVSEChargeParameterType(stream, &v2gChargeParameterDiscoveryResType->AC_EVSEChargeParameter);
- v2gChargeParameterDiscoveryResType->AC_EVSEChargeParameter_isUsed = 1u;
- grammarID = 2;
- break;
- case 3:
- errn = decode_v2gDC_EVSEBidirectionalParameterType(stream, &v2gChargeParameterDiscoveryResType->DC_EVSEBidirectionalParameter);
- v2gChargeParameterDiscoveryResType->DC_EVSEBidirectionalParameter_isUsed = 1u;
- grammarID = 2;
- break;
- case 4:
- errn = decode_v2gDC_EVSEChargeParameterType(stream, &v2gChargeParameterDiscoveryResType->DC_EVSEChargeParameter);
- v2gChargeParameterDiscoveryResType->DC_EVSEChargeParameter_isUsed = 1u;
- grammarID = 2;
- break;
- case 5:
- errn = decode_v2gEVSEEnergyTransferParameterType(stream, &v2gChargeParameterDiscoveryResType->EVSEEnergyTransferParameter);
- v2gChargeParameterDiscoveryResType->EVSEEnergyTransferParameter_isUsed = 1u;
- grammarID = 2;
- break;
- case 6:
- errn = decode_v2gWPT_EVSEChargeParameterType(stream, &v2gChargeParameterDiscoveryResType->WPT_EVSEChargeParameter);
- v2gChargeParameterDiscoveryResType->WPT_EVSEChargeParameter_isUsed = 1u;
- grammarID = 2;
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 1234:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}AC_EVSEBidirectionalParameter), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}AC_EVSEChargeParameter), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}DC_EVSEBidirectionalParameter), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}DC_EVSEChargeParameter), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}EVSEEnergyTransferParameter), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}WPT_EVSEChargeParameter)] */
- errn = decodeNBitUnsignedInteger(stream, 3, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- errn = decode_v2gAC_EVSEBidirectionalParameterType(stream, &v2gChargeParameterDiscoveryResType->AC_EVSEBidirectionalParameter);
- v2gChargeParameterDiscoveryResType->AC_EVSEBidirectionalParameter_isUsed = 1u;
- grammarID = 2;
- break;
- case 1:
- errn = decode_v2gAC_EVSEChargeParameterType(stream, &v2gChargeParameterDiscoveryResType->AC_EVSEChargeParameter);
- v2gChargeParameterDiscoveryResType->AC_EVSEChargeParameter_isUsed = 1u;
- grammarID = 2;
- break;
- case 2:
- errn = decode_v2gDC_EVSEBidirectionalParameterType(stream, &v2gChargeParameterDiscoveryResType->DC_EVSEBidirectionalParameter);
- v2gChargeParameterDiscoveryResType->DC_EVSEBidirectionalParameter_isUsed = 1u;
- grammarID = 2;
- break;
- case 3:
- errn = decode_v2gDC_EVSEChargeParameterType(stream, &v2gChargeParameterDiscoveryResType->DC_EVSEChargeParameter);
- v2gChargeParameterDiscoveryResType->DC_EVSEChargeParameter_isUsed = 1u;
- grammarID = 2;
- break;
- case 4:
- errn = decode_v2gEVSEEnergyTransferParameterType(stream, &v2gChargeParameterDiscoveryResType->EVSEEnergyTransferParameter);
- v2gChargeParameterDiscoveryResType->EVSEEnergyTransferParameter_isUsed = 1u;
- grammarID = 2;
- break;
- case 5:
- errn = decode_v2gWPT_EVSEChargeParameterType(stream, &v2gChargeParameterDiscoveryResType->WPT_EVSEChargeParameter);
- v2gChargeParameterDiscoveryResType->WPT_EVSEChargeParameter_isUsed = 1u;
- grammarID = 2;
- 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='http://www.w3.org/2000/09/xmldsig#,RSAKeyValueType', base type name='anyType', content type='ELEMENT', isAbstract='false', hasTypeId='false', final='0', block='0', particle='("http://www.w3.org/2000/09/xmldsig#":Modulus,"http://www.w3.org/2000/09/xmldsig#":Exponent)', derivedBy='RESTRICTION'. */
-static int decode_v2gRSAKeyValueType(bitstream_t* stream, struct v2gRSAKeyValueType* v2gRSAKeyValueType) {
- int grammarID = 1235;
- int done = 0;
-
- init_v2gRSAKeyValueType(v2gRSAKeyValueType);
-
- while(!done) {
- switch(grammarID) {
- case 1235:
- /* FirstStartTag[START_ELEMENT({http://www.w3.org/2000/09/xmldsig#}Modulus)] */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- /* FirstStartTag[CHARACTERS[BINARY_BASE64]] */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(errn == 0) {
- if(eventCode == 0) {
- errn = decodeUnsignedInteger16(stream, &v2gRSAKeyValueType->Modulus.bytesLen);
- if (errn == 0) {
- errn = (v2gRSAKeyValueType->Modulus.bytesLen) <= v2gRSAKeyValueType_Modulus_BYTES_SIZE ? 0 : EXI_ERROR_OUT_OF_BYTE_BUFFER;
- }
- if (errn == 0) {
- errn = decodeBytes(stream, v2gRSAKeyValueType->Modulus.bytesLen, v2gRSAKeyValueType->Modulus.bytes);
- }
- } 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({http://www.w3.org/2000/09/xmldsig#}Modulus) ? */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(eventCode == 0) {
- grammarID = 1236;
- } else {
- errn = EXI_DEVIANT_SUPPORT_NOT_DEPLOYED; /* or also typecast and nillable */
- }
- }
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 1236:
- /* Element[START_ELEMENT({http://www.w3.org/2000/09/xmldsig#}Exponent)] */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- /* FirstStartTag[CHARACTERS[BINARY_BASE64]] */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(errn == 0) {
- if(eventCode == 0) {
- errn = decodeUnsignedInteger16(stream, &v2gRSAKeyValueType->Exponent.bytesLen);
- if (errn == 0) {
- errn = (v2gRSAKeyValueType->Exponent.bytesLen) <= v2gRSAKeyValueType_Exponent_BYTES_SIZE ? 0 : EXI_ERROR_OUT_OF_BYTE_BUFFER;
- }
- if (errn == 0) {
- errn = decodeBytes(stream, v2gRSAKeyValueType->Exponent.bytesLen, v2gRSAKeyValueType->Exponent.bytes);
- }
- } 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({http://www.w3.org/2000/09/xmldsig#}Exponent) ? */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(eventCode == 0) {
- grammarID = 2;
- } else {
- errn = EXI_DEVIANT_SUPPORT_NOT_DEPLOYED; /* or also typecast and nillable */
- }
- }
- 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:2016:MsgDataTypes,LFA_EVFinePositioningSetupParametersType', base type name='EVFinePositioningSetupParametersType', content type='ELEMENT', isAbstract='false', hasTypeId='false', final='0', block='0', particle='("urn:iso:15118:2:2016:MsgDataTypes":NumberOfSensors,"urn:iso:15118:2:2016:MsgDataTypes":SensorList,"urn:iso:15118:2:2016:MsgDataTypes":SensorOrder{1-255},"urn:iso:15118:2:2016:MsgDataTypes":SignalPulseDuration,"urn:iso:15118:2:2016:MsgDataTypes":SignalSeparationTime,"urn:iso:15118:2:2016:MsgDataTypes":PackageSeparationTime,"urn:iso:15118:2:2016:MsgDataTypes":AlignmentOffset)', derivedBy='EXTENSION'. */
-static int decode_v2gLFA_EVFinePositioningSetupParametersType(bitstream_t* stream, struct v2gLFA_EVFinePositioningSetupParametersType* v2gLFA_EVFinePositioningSetupParametersType) {
- int grammarID = 1237;
- int done = 0;
-
- init_v2gLFA_EVFinePositioningSetupParametersType(v2gLFA_EVFinePositioningSetupParametersType);
-
- while(!done) {
- switch(grammarID) {
- case 1237:
- /* FirstStartTag[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}NumberOfSensors)] */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(errn == 0) {
- if(eventCode == 0) {
- errn = decodeNBitUnsignedInteger(stream, 8, &(uint32));
- v2gLFA_EVFinePositioningSetupParametersType->NumberOfSensors = (uint8_t)(uint32 + 0);
- } 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({urn:iso:15118:2:2016:MsgDataTypes}NumberOfSensors) ? */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(eventCode == 0) {
- grammarID = 1238;
- } else {
- errn = EXI_DEVIANT_SUPPORT_NOT_DEPLOYED; /* or also typecast and nillable */
- }
- }
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 1238:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorList)] */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- errn = decode_v2gSensorListType(stream, &v2gLFA_EVFinePositioningSetupParametersType->SensorList);
- grammarID = 1239;
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 1239:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorOrder)] */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gLFA_EVFinePositioningSetupParametersType->SensorOrder.arrayLen < v2gLFA_EVFinePositioningSetupParametersType_SensorOrder_ARRAY_SIZE) {
- /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(errn == 0) {
- if(eventCode == 0) {
- errn = decodeNBitUnsignedInteger(stream, 8, &(uint32));
- v2gLFA_EVFinePositioningSetupParametersType->SensorOrder.array[v2gLFA_EVFinePositioningSetupParametersType->SensorOrder.arrayLen] = (uint8_t)(uint32 + 0);
- v2gLFA_EVFinePositioningSetupParametersType->SensorOrder.arrayLen++;
- } else {
- /* Second level event (e.g., xsi:type, xsi:nil, ...) */
- errn = EXI_UNSUPPORTED_EVENT_CODE_CHARACTERISTICS;
- }
- }
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- if(errn == 0) {
- /* valid EE for simple element START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorOrder) ? */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(eventCode == 0) {
- grammarID = 1240;
- } else {
- errn = EXI_DEVIANT_SUPPORT_NOT_DEPLOYED; /* or also typecast and nillable */
- }
- }
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 1240:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorOrder), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SignalPulseDuration)] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gLFA_EVFinePositioningSetupParametersType->SensorOrder.arrayLen < v2gLFA_EVFinePositioningSetupParametersType_SensorOrder_ARRAY_SIZE) {
- /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(errn == 0) {
- if(eventCode == 0) {
- errn = decodeNBitUnsignedInteger(stream, 8, &(uint32));
- v2gLFA_EVFinePositioningSetupParametersType->SensorOrder.array[v2gLFA_EVFinePositioningSetupParametersType->SensorOrder.arrayLen] = (uint8_t)(uint32 + 0);
- v2gLFA_EVFinePositioningSetupParametersType->SensorOrder.arrayLen++;
- } else {
- /* Second level event (e.g., xsi:type, xsi:nil, ...) */
- errn = EXI_UNSUPPORTED_EVENT_CODE_CHARACTERISTICS;
- }
- }
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- if(errn == 0) {
- /* valid EE for simple element START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorOrder) ? */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(eventCode == 0) {
- grammarID = 1241;
- } else {
- errn = EXI_DEVIANT_SUPPORT_NOT_DEPLOYED; /* or also typecast and nillable */
- }
- }
- break;
- case 1:
- /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(errn == 0) {
- if(eventCode == 0) {
- errn = decodeNBitUnsignedInteger(stream, 8, &(uint32));
- v2gLFA_EVFinePositioningSetupParametersType->SignalPulseDuration = (uint8_t)(uint32 + 0);
- } 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({urn:iso:15118:2:2016:MsgDataTypes}SignalPulseDuration) ? */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(eventCode == 0) {
- grammarID = 1242;
- } else {
- errn = EXI_DEVIANT_SUPPORT_NOT_DEPLOYED; /* or also typecast and nillable */
- }
- }
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 1241:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorOrder), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SignalPulseDuration)] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gLFA_EVFinePositioningSetupParametersType->SensorOrder.arrayLen < v2gLFA_EVFinePositioningSetupParametersType_SensorOrder_ARRAY_SIZE) {
- /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(errn == 0) {
- if(eventCode == 0) {
- errn = decodeNBitUnsignedInteger(stream, 8, &(uint32));
- v2gLFA_EVFinePositioningSetupParametersType->SensorOrder.array[v2gLFA_EVFinePositioningSetupParametersType->SensorOrder.arrayLen] = (uint8_t)(uint32 + 0);
- v2gLFA_EVFinePositioningSetupParametersType->SensorOrder.arrayLen++;
- } else {
- /* Second level event (e.g., xsi:type, xsi:nil, ...) */
- errn = EXI_UNSUPPORTED_EVENT_CODE_CHARACTERISTICS;
- }
- }
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- if(errn == 0) {
- /* valid EE for simple element START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorOrder) ? */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(eventCode == 0) {
- grammarID = 1243;
- } else {
- errn = EXI_DEVIANT_SUPPORT_NOT_DEPLOYED; /* or also typecast and nillable */
- }
- }
- break;
- case 1:
- /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(errn == 0) {
- if(eventCode == 0) {
- errn = decodeNBitUnsignedInteger(stream, 8, &(uint32));
- v2gLFA_EVFinePositioningSetupParametersType->SignalPulseDuration = (uint8_t)(uint32 + 0);
- } 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({urn:iso:15118:2:2016:MsgDataTypes}SignalPulseDuration) ? */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(eventCode == 0) {
- grammarID = 1242;
- } else {
- errn = EXI_DEVIANT_SUPPORT_NOT_DEPLOYED; /* or also typecast and nillable */
- }
- }
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 1243:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorOrder), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SignalPulseDuration)] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gLFA_EVFinePositioningSetupParametersType->SensorOrder.arrayLen < v2gLFA_EVFinePositioningSetupParametersType_SensorOrder_ARRAY_SIZE) {
- /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(errn == 0) {
- if(eventCode == 0) {
- errn = decodeNBitUnsignedInteger(stream, 8, &(uint32));
- v2gLFA_EVFinePositioningSetupParametersType->SensorOrder.array[v2gLFA_EVFinePositioningSetupParametersType->SensorOrder.arrayLen] = (uint8_t)(uint32 + 0);
- v2gLFA_EVFinePositioningSetupParametersType->SensorOrder.arrayLen++;
- } else {
- /* Second level event (e.g., xsi:type, xsi:nil, ...) */
- errn = EXI_UNSUPPORTED_EVENT_CODE_CHARACTERISTICS;
- }
- }
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- if(errn == 0) {
- /* valid EE for simple element START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorOrder) ? */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(eventCode == 0) {
- grammarID = 1244;
- } else {
- errn = EXI_DEVIANT_SUPPORT_NOT_DEPLOYED; /* or also typecast and nillable */
- }
- }
- break;
- case 1:
- /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(errn == 0) {
- if(eventCode == 0) {
- errn = decodeNBitUnsignedInteger(stream, 8, &(uint32));
- v2gLFA_EVFinePositioningSetupParametersType->SignalPulseDuration = (uint8_t)(uint32 + 0);
- } 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({urn:iso:15118:2:2016:MsgDataTypes}SignalPulseDuration) ? */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(eventCode == 0) {
- grammarID = 1242;
- } else {
- errn = EXI_DEVIANT_SUPPORT_NOT_DEPLOYED; /* or also typecast and nillable */
- }
- }
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 1244:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorOrder), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SignalPulseDuration)] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gLFA_EVFinePositioningSetupParametersType->SensorOrder.arrayLen < v2gLFA_EVFinePositioningSetupParametersType_SensorOrder_ARRAY_SIZE) {
- /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(errn == 0) {
- if(eventCode == 0) {
- errn = decodeNBitUnsignedInteger(stream, 8, &(uint32));
- v2gLFA_EVFinePositioningSetupParametersType->SensorOrder.array[v2gLFA_EVFinePositioningSetupParametersType->SensorOrder.arrayLen] = (uint8_t)(uint32 + 0);
- v2gLFA_EVFinePositioningSetupParametersType->SensorOrder.arrayLen++;
- } else {
- /* Second level event (e.g., xsi:type, xsi:nil, ...) */
- errn = EXI_UNSUPPORTED_EVENT_CODE_CHARACTERISTICS;
- }
- }
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- if(errn == 0) {
- /* valid EE for simple element START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorOrder) ? */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(eventCode == 0) {
- grammarID = 1245;
- } else {
- errn = EXI_DEVIANT_SUPPORT_NOT_DEPLOYED; /* or also typecast and nillable */
- }
- }
- break;
- case 1:
- /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(errn == 0) {
- if(eventCode == 0) {
- errn = decodeNBitUnsignedInteger(stream, 8, &(uint32));
- v2gLFA_EVFinePositioningSetupParametersType->SignalPulseDuration = (uint8_t)(uint32 + 0);
- } 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({urn:iso:15118:2:2016:MsgDataTypes}SignalPulseDuration) ? */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(eventCode == 0) {
- grammarID = 1242;
- } else {
- errn = EXI_DEVIANT_SUPPORT_NOT_DEPLOYED; /* or also typecast and nillable */
- }
- }
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 1245:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorOrder), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SignalPulseDuration)] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gLFA_EVFinePositioningSetupParametersType->SensorOrder.arrayLen < v2gLFA_EVFinePositioningSetupParametersType_SensorOrder_ARRAY_SIZE) {
- /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(errn == 0) {
- if(eventCode == 0) {
- errn = decodeNBitUnsignedInteger(stream, 8, &(uint32));
- v2gLFA_EVFinePositioningSetupParametersType->SensorOrder.array[v2gLFA_EVFinePositioningSetupParametersType->SensorOrder.arrayLen] = (uint8_t)(uint32 + 0);
- v2gLFA_EVFinePositioningSetupParametersType->SensorOrder.arrayLen++;
- } else {
- /* Second level event (e.g., xsi:type, xsi:nil, ...) */
- errn = EXI_UNSUPPORTED_EVENT_CODE_CHARACTERISTICS;
- }
- }
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- if(errn == 0) {
- /* valid EE for simple element START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorOrder) ? */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(eventCode == 0) {
- grammarID = 1246;
- } else {
- errn = EXI_DEVIANT_SUPPORT_NOT_DEPLOYED; /* or also typecast and nillable */
- }
- }
- break;
- case 1:
- /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(errn == 0) {
- if(eventCode == 0) {
- errn = decodeNBitUnsignedInteger(stream, 8, &(uint32));
- v2gLFA_EVFinePositioningSetupParametersType->SignalPulseDuration = (uint8_t)(uint32 + 0);
- } 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({urn:iso:15118:2:2016:MsgDataTypes}SignalPulseDuration) ? */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(eventCode == 0) {
- grammarID = 1242;
- } else {
- errn = EXI_DEVIANT_SUPPORT_NOT_DEPLOYED; /* or also typecast and nillable */
- }
- }
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 1246:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorOrder), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SignalPulseDuration)] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gLFA_EVFinePositioningSetupParametersType->SensorOrder.arrayLen < v2gLFA_EVFinePositioningSetupParametersType_SensorOrder_ARRAY_SIZE) {
- /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(errn == 0) {
- if(eventCode == 0) {
- errn = decodeNBitUnsignedInteger(stream, 8, &(uint32));
- v2gLFA_EVFinePositioningSetupParametersType->SensorOrder.array[v2gLFA_EVFinePositioningSetupParametersType->SensorOrder.arrayLen] = (uint8_t)(uint32 + 0);
- v2gLFA_EVFinePositioningSetupParametersType->SensorOrder.arrayLen++;
- } else {
- /* Second level event (e.g., xsi:type, xsi:nil, ...) */
- errn = EXI_UNSUPPORTED_EVENT_CODE_CHARACTERISTICS;
- }
- }
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- if(errn == 0) {
- /* valid EE for simple element START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorOrder) ? */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(eventCode == 0) {
- grammarID = 1247;
- } else {
- errn = EXI_DEVIANT_SUPPORT_NOT_DEPLOYED; /* or also typecast and nillable */
- }
- }
- break;
- case 1:
- /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(errn == 0) {
- if(eventCode == 0) {
- errn = decodeNBitUnsignedInteger(stream, 8, &(uint32));
- v2gLFA_EVFinePositioningSetupParametersType->SignalPulseDuration = (uint8_t)(uint32 + 0);
- } 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({urn:iso:15118:2:2016:MsgDataTypes}SignalPulseDuration) ? */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(eventCode == 0) {
- grammarID = 1242;
- } else {
- errn = EXI_DEVIANT_SUPPORT_NOT_DEPLOYED; /* or also typecast and nillable */
- }
- }
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 1247:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorOrder), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SignalPulseDuration)] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gLFA_EVFinePositioningSetupParametersType->SensorOrder.arrayLen < v2gLFA_EVFinePositioningSetupParametersType_SensorOrder_ARRAY_SIZE) {
- /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(errn == 0) {
- if(eventCode == 0) {
- errn = decodeNBitUnsignedInteger(stream, 8, &(uint32));
- v2gLFA_EVFinePositioningSetupParametersType->SensorOrder.array[v2gLFA_EVFinePositioningSetupParametersType->SensorOrder.arrayLen] = (uint8_t)(uint32 + 0);
- v2gLFA_EVFinePositioningSetupParametersType->SensorOrder.arrayLen++;
- } else {
- /* Second level event (e.g., xsi:type, xsi:nil, ...) */
- errn = EXI_UNSUPPORTED_EVENT_CODE_CHARACTERISTICS;
- }
- }
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- if(errn == 0) {
- /* valid EE for simple element START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorOrder) ? */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(eventCode == 0) {
- grammarID = 1248;
- } else {
- errn = EXI_DEVIANT_SUPPORT_NOT_DEPLOYED; /* or also typecast and nillable */
- }
- }
- break;
- case 1:
- /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(errn == 0) {
- if(eventCode == 0) {
- errn = decodeNBitUnsignedInteger(stream, 8, &(uint32));
- v2gLFA_EVFinePositioningSetupParametersType->SignalPulseDuration = (uint8_t)(uint32 + 0);
- } 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({urn:iso:15118:2:2016:MsgDataTypes}SignalPulseDuration) ? */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(eventCode == 0) {
- grammarID = 1242;
- } else {
- errn = EXI_DEVIANT_SUPPORT_NOT_DEPLOYED; /* or also typecast and nillable */
- }
- }
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 1248:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorOrder), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SignalPulseDuration)] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gLFA_EVFinePositioningSetupParametersType->SensorOrder.arrayLen < v2gLFA_EVFinePositioningSetupParametersType_SensorOrder_ARRAY_SIZE) {
- /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(errn == 0) {
- if(eventCode == 0) {
- errn = decodeNBitUnsignedInteger(stream, 8, &(uint32));
- v2gLFA_EVFinePositioningSetupParametersType->SensorOrder.array[v2gLFA_EVFinePositioningSetupParametersType->SensorOrder.arrayLen] = (uint8_t)(uint32 + 0);
- v2gLFA_EVFinePositioningSetupParametersType->SensorOrder.arrayLen++;
- } else {
- /* Second level event (e.g., xsi:type, xsi:nil, ...) */
- errn = EXI_UNSUPPORTED_EVENT_CODE_CHARACTERISTICS;
- }
- }
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- if(errn == 0) {
- /* valid EE for simple element START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorOrder) ? */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(eventCode == 0) {
- grammarID = 1249;
- } else {
- errn = EXI_DEVIANT_SUPPORT_NOT_DEPLOYED; /* or also typecast and nillable */
- }
- }
- break;
- case 1:
- /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(errn == 0) {
- if(eventCode == 0) {
- errn = decodeNBitUnsignedInteger(stream, 8, &(uint32));
- v2gLFA_EVFinePositioningSetupParametersType->SignalPulseDuration = (uint8_t)(uint32 + 0);
- } 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({urn:iso:15118:2:2016:MsgDataTypes}SignalPulseDuration) ? */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(eventCode == 0) {
- grammarID = 1242;
- } else {
- errn = EXI_DEVIANT_SUPPORT_NOT_DEPLOYED; /* or also typecast and nillable */
- }
- }
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 1249:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorOrder), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SignalPulseDuration)] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gLFA_EVFinePositioningSetupParametersType->SensorOrder.arrayLen < v2gLFA_EVFinePositioningSetupParametersType_SensorOrder_ARRAY_SIZE) {
- /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(errn == 0) {
- if(eventCode == 0) {
- errn = decodeNBitUnsignedInteger(stream, 8, &(uint32));
- v2gLFA_EVFinePositioningSetupParametersType->SensorOrder.array[v2gLFA_EVFinePositioningSetupParametersType->SensorOrder.arrayLen] = (uint8_t)(uint32 + 0);
- v2gLFA_EVFinePositioningSetupParametersType->SensorOrder.arrayLen++;
- } else {
- /* Second level event (e.g., xsi:type, xsi:nil, ...) */
- errn = EXI_UNSUPPORTED_EVENT_CODE_CHARACTERISTICS;
- }
- }
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- if(errn == 0) {
- /* valid EE for simple element START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorOrder) ? */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(eventCode == 0) {
- grammarID = 1250;
- } else {
- errn = EXI_DEVIANT_SUPPORT_NOT_DEPLOYED; /* or also typecast and nillable */
- }
- }
- break;
- case 1:
- /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(errn == 0) {
- if(eventCode == 0) {
- errn = decodeNBitUnsignedInteger(stream, 8, &(uint32));
- v2gLFA_EVFinePositioningSetupParametersType->SignalPulseDuration = (uint8_t)(uint32 + 0);
- } 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({urn:iso:15118:2:2016:MsgDataTypes}SignalPulseDuration) ? */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(eventCode == 0) {
- grammarID = 1242;
- } else {
- errn = EXI_DEVIANT_SUPPORT_NOT_DEPLOYED; /* or also typecast and nillable */
- }
- }
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 1250:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorOrder), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SignalPulseDuration)] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gLFA_EVFinePositioningSetupParametersType->SensorOrder.arrayLen < v2gLFA_EVFinePositioningSetupParametersType_SensorOrder_ARRAY_SIZE) {
- /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(errn == 0) {
- if(eventCode == 0) {
- errn = decodeNBitUnsignedInteger(stream, 8, &(uint32));
- v2gLFA_EVFinePositioningSetupParametersType->SensorOrder.array[v2gLFA_EVFinePositioningSetupParametersType->SensorOrder.arrayLen] = (uint8_t)(uint32 + 0);
- v2gLFA_EVFinePositioningSetupParametersType->SensorOrder.arrayLen++;
- } else {
- /* Second level event (e.g., xsi:type, xsi:nil, ...) */
- errn = EXI_UNSUPPORTED_EVENT_CODE_CHARACTERISTICS;
- }
- }
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- if(errn == 0) {
- /* valid EE for simple element START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorOrder) ? */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(eventCode == 0) {
- grammarID = 1251;
- } else {
- errn = EXI_DEVIANT_SUPPORT_NOT_DEPLOYED; /* or also typecast and nillable */
- }
- }
- break;
- case 1:
- /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(errn == 0) {
- if(eventCode == 0) {
- errn = decodeNBitUnsignedInteger(stream, 8, &(uint32));
- v2gLFA_EVFinePositioningSetupParametersType->SignalPulseDuration = (uint8_t)(uint32 + 0);
- } 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({urn:iso:15118:2:2016:MsgDataTypes}SignalPulseDuration) ? */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(eventCode == 0) {
- grammarID = 1242;
- } else {
- errn = EXI_DEVIANT_SUPPORT_NOT_DEPLOYED; /* or also typecast and nillable */
- }
- }
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 1251:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorOrder), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SignalPulseDuration)] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gLFA_EVFinePositioningSetupParametersType->SensorOrder.arrayLen < v2gLFA_EVFinePositioningSetupParametersType_SensorOrder_ARRAY_SIZE) {
- /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(errn == 0) {
- if(eventCode == 0) {
- errn = decodeNBitUnsignedInteger(stream, 8, &(uint32));
- v2gLFA_EVFinePositioningSetupParametersType->SensorOrder.array[v2gLFA_EVFinePositioningSetupParametersType->SensorOrder.arrayLen] = (uint8_t)(uint32 + 0);
- v2gLFA_EVFinePositioningSetupParametersType->SensorOrder.arrayLen++;
- } else {
- /* Second level event (e.g., xsi:type, xsi:nil, ...) */
- errn = EXI_UNSUPPORTED_EVENT_CODE_CHARACTERISTICS;
- }
- }
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- if(errn == 0) {
- /* valid EE for simple element START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorOrder) ? */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(eventCode == 0) {
- grammarID = 1252;
- } else {
- errn = EXI_DEVIANT_SUPPORT_NOT_DEPLOYED; /* or also typecast and nillable */
- }
- }
- break;
- case 1:
- /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(errn == 0) {
- if(eventCode == 0) {
- errn = decodeNBitUnsignedInteger(stream, 8, &(uint32));
- v2gLFA_EVFinePositioningSetupParametersType->SignalPulseDuration = (uint8_t)(uint32 + 0);
- } 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({urn:iso:15118:2:2016:MsgDataTypes}SignalPulseDuration) ? */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(eventCode == 0) {
- grammarID = 1242;
- } else {
- errn = EXI_DEVIANT_SUPPORT_NOT_DEPLOYED; /* or also typecast and nillable */
- }
- }
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 1252:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorOrder), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SignalPulseDuration)] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gLFA_EVFinePositioningSetupParametersType->SensorOrder.arrayLen < v2gLFA_EVFinePositioningSetupParametersType_SensorOrder_ARRAY_SIZE) {
- /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(errn == 0) {
- if(eventCode == 0) {
- errn = decodeNBitUnsignedInteger(stream, 8, &(uint32));
- v2gLFA_EVFinePositioningSetupParametersType->SensorOrder.array[v2gLFA_EVFinePositioningSetupParametersType->SensorOrder.arrayLen] = (uint8_t)(uint32 + 0);
- v2gLFA_EVFinePositioningSetupParametersType->SensorOrder.arrayLen++;
- } else {
- /* Second level event (e.g., xsi:type, xsi:nil, ...) */
- errn = EXI_UNSUPPORTED_EVENT_CODE_CHARACTERISTICS;
- }
- }
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- if(errn == 0) {
- /* valid EE for simple element START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorOrder) ? */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(eventCode == 0) {
- grammarID = 1253;
- } else {
- errn = EXI_DEVIANT_SUPPORT_NOT_DEPLOYED; /* or also typecast and nillable */
- }
- }
- break;
- case 1:
- /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(errn == 0) {
- if(eventCode == 0) {
- errn = decodeNBitUnsignedInteger(stream, 8, &(uint32));
- v2gLFA_EVFinePositioningSetupParametersType->SignalPulseDuration = (uint8_t)(uint32 + 0);
- } 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({urn:iso:15118:2:2016:MsgDataTypes}SignalPulseDuration) ? */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(eventCode == 0) {
- grammarID = 1242;
- } else {
- errn = EXI_DEVIANT_SUPPORT_NOT_DEPLOYED; /* or also typecast and nillable */
- }
- }
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 1253:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorOrder), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SignalPulseDuration)] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gLFA_EVFinePositioningSetupParametersType->SensorOrder.arrayLen < v2gLFA_EVFinePositioningSetupParametersType_SensorOrder_ARRAY_SIZE) {
- /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(errn == 0) {
- if(eventCode == 0) {
- errn = decodeNBitUnsignedInteger(stream, 8, &(uint32));
- v2gLFA_EVFinePositioningSetupParametersType->SensorOrder.array[v2gLFA_EVFinePositioningSetupParametersType->SensorOrder.arrayLen] = (uint8_t)(uint32 + 0);
- v2gLFA_EVFinePositioningSetupParametersType->SensorOrder.arrayLen++;
- } else {
- /* Second level event (e.g., xsi:type, xsi:nil, ...) */
- errn = EXI_UNSUPPORTED_EVENT_CODE_CHARACTERISTICS;
- }
- }
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- if(errn == 0) {
- /* valid EE for simple element START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorOrder) ? */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(eventCode == 0) {
- grammarID = 1254;
- } else {
- errn = EXI_DEVIANT_SUPPORT_NOT_DEPLOYED; /* or also typecast and nillable */
- }
- }
- break;
- case 1:
- /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(errn == 0) {
- if(eventCode == 0) {
- errn = decodeNBitUnsignedInteger(stream, 8, &(uint32));
- v2gLFA_EVFinePositioningSetupParametersType->SignalPulseDuration = (uint8_t)(uint32 + 0);
- } 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({urn:iso:15118:2:2016:MsgDataTypes}SignalPulseDuration) ? */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(eventCode == 0) {
- grammarID = 1242;
- } else {
- errn = EXI_DEVIANT_SUPPORT_NOT_DEPLOYED; /* or also typecast and nillable */
- }
- }
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 1254:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorOrder), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SignalPulseDuration)] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gLFA_EVFinePositioningSetupParametersType->SensorOrder.arrayLen < v2gLFA_EVFinePositioningSetupParametersType_SensorOrder_ARRAY_SIZE) {
- /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(errn == 0) {
- if(eventCode == 0) {
- errn = decodeNBitUnsignedInteger(stream, 8, &(uint32));
- v2gLFA_EVFinePositioningSetupParametersType->SensorOrder.array[v2gLFA_EVFinePositioningSetupParametersType->SensorOrder.arrayLen] = (uint8_t)(uint32 + 0);
- v2gLFA_EVFinePositioningSetupParametersType->SensorOrder.arrayLen++;
- } else {
- /* Second level event (e.g., xsi:type, xsi:nil, ...) */
- errn = EXI_UNSUPPORTED_EVENT_CODE_CHARACTERISTICS;
- }
- }
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- if(errn == 0) {
- /* valid EE for simple element START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorOrder) ? */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(eventCode == 0) {
- grammarID = 1255;
- } else {
- errn = EXI_DEVIANT_SUPPORT_NOT_DEPLOYED; /* or also typecast and nillable */
- }
- }
- break;
- case 1:
- /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(errn == 0) {
- if(eventCode == 0) {
- errn = decodeNBitUnsignedInteger(stream, 8, &(uint32));
- v2gLFA_EVFinePositioningSetupParametersType->SignalPulseDuration = (uint8_t)(uint32 + 0);
- } 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({urn:iso:15118:2:2016:MsgDataTypes}SignalPulseDuration) ? */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(eventCode == 0) {
- grammarID = 1242;
- } else {
- errn = EXI_DEVIANT_SUPPORT_NOT_DEPLOYED; /* or also typecast and nillable */
- }
- }
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 1255:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorOrder), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SignalPulseDuration)] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gLFA_EVFinePositioningSetupParametersType->SensorOrder.arrayLen < v2gLFA_EVFinePositioningSetupParametersType_SensorOrder_ARRAY_SIZE) {
- /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(errn == 0) {
- if(eventCode == 0) {
- errn = decodeNBitUnsignedInteger(stream, 8, &(uint32));
- v2gLFA_EVFinePositioningSetupParametersType->SensorOrder.array[v2gLFA_EVFinePositioningSetupParametersType->SensorOrder.arrayLen] = (uint8_t)(uint32 + 0);
- v2gLFA_EVFinePositioningSetupParametersType->SensorOrder.arrayLen++;
- } else {
- /* Second level event (e.g., xsi:type, xsi:nil, ...) */
- errn = EXI_UNSUPPORTED_EVENT_CODE_CHARACTERISTICS;
- }
- }
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- if(errn == 0) {
- /* valid EE for simple element START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorOrder) ? */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(eventCode == 0) {
- grammarID = 1256;
- } else {
- errn = EXI_DEVIANT_SUPPORT_NOT_DEPLOYED; /* or also typecast and nillable */
- }
- }
- break;
- case 1:
- /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(errn == 0) {
- if(eventCode == 0) {
- errn = decodeNBitUnsignedInteger(stream, 8, &(uint32));
- v2gLFA_EVFinePositioningSetupParametersType->SignalPulseDuration = (uint8_t)(uint32 + 0);
- } 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({urn:iso:15118:2:2016:MsgDataTypes}SignalPulseDuration) ? */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(eventCode == 0) {
- grammarID = 1242;
- } else {
- errn = EXI_DEVIANT_SUPPORT_NOT_DEPLOYED; /* or also typecast and nillable */
- }
- }
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 1256:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorOrder), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SignalPulseDuration)] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gLFA_EVFinePositioningSetupParametersType->SensorOrder.arrayLen < v2gLFA_EVFinePositioningSetupParametersType_SensorOrder_ARRAY_SIZE) {
- /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(errn == 0) {
- if(eventCode == 0) {
- errn = decodeNBitUnsignedInteger(stream, 8, &(uint32));
- v2gLFA_EVFinePositioningSetupParametersType->SensorOrder.array[v2gLFA_EVFinePositioningSetupParametersType->SensorOrder.arrayLen] = (uint8_t)(uint32 + 0);
- v2gLFA_EVFinePositioningSetupParametersType->SensorOrder.arrayLen++;
- } else {
- /* Second level event (e.g., xsi:type, xsi:nil, ...) */
- errn = EXI_UNSUPPORTED_EVENT_CODE_CHARACTERISTICS;
- }
- }
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- if(errn == 0) {
- /* valid EE for simple element START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorOrder) ? */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(eventCode == 0) {
- grammarID = 1257;
- } else {
- errn = EXI_DEVIANT_SUPPORT_NOT_DEPLOYED; /* or also typecast and nillable */
- }
- }
- break;
- case 1:
- /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(errn == 0) {
- if(eventCode == 0) {
- errn = decodeNBitUnsignedInteger(stream, 8, &(uint32));
- v2gLFA_EVFinePositioningSetupParametersType->SignalPulseDuration = (uint8_t)(uint32 + 0);
- } 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({urn:iso:15118:2:2016:MsgDataTypes}SignalPulseDuration) ? */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(eventCode == 0) {
- grammarID = 1242;
- } else {
- errn = EXI_DEVIANT_SUPPORT_NOT_DEPLOYED; /* or also typecast and nillable */
- }
- }
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 1257:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorOrder), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SignalPulseDuration)] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gLFA_EVFinePositioningSetupParametersType->SensorOrder.arrayLen < v2gLFA_EVFinePositioningSetupParametersType_SensorOrder_ARRAY_SIZE) {
- /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(errn == 0) {
- if(eventCode == 0) {
- errn = decodeNBitUnsignedInteger(stream, 8, &(uint32));
- v2gLFA_EVFinePositioningSetupParametersType->SensorOrder.array[v2gLFA_EVFinePositioningSetupParametersType->SensorOrder.arrayLen] = (uint8_t)(uint32 + 0);
- v2gLFA_EVFinePositioningSetupParametersType->SensorOrder.arrayLen++;
- } else {
- /* Second level event (e.g., xsi:type, xsi:nil, ...) */
- errn = EXI_UNSUPPORTED_EVENT_CODE_CHARACTERISTICS;
- }
- }
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- if(errn == 0) {
- /* valid EE for simple element START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorOrder) ? */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(eventCode == 0) {
- grammarID = 1258;
- } else {
- errn = EXI_DEVIANT_SUPPORT_NOT_DEPLOYED; /* or also typecast and nillable */
- }
- }
- break;
- case 1:
- /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(errn == 0) {
- if(eventCode == 0) {
- errn = decodeNBitUnsignedInteger(stream, 8, &(uint32));
- v2gLFA_EVFinePositioningSetupParametersType->SignalPulseDuration = (uint8_t)(uint32 + 0);
- } 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({urn:iso:15118:2:2016:MsgDataTypes}SignalPulseDuration) ? */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(eventCode == 0) {
- grammarID = 1242;
- } else {
- errn = EXI_DEVIANT_SUPPORT_NOT_DEPLOYED; /* or also typecast and nillable */
- }
- }
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 1258:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorOrder), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SignalPulseDuration)] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gLFA_EVFinePositioningSetupParametersType->SensorOrder.arrayLen < v2gLFA_EVFinePositioningSetupParametersType_SensorOrder_ARRAY_SIZE) {
- /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(errn == 0) {
- if(eventCode == 0) {
- errn = decodeNBitUnsignedInteger(stream, 8, &(uint32));
- v2gLFA_EVFinePositioningSetupParametersType->SensorOrder.array[v2gLFA_EVFinePositioningSetupParametersType->SensorOrder.arrayLen] = (uint8_t)(uint32 + 0);
- v2gLFA_EVFinePositioningSetupParametersType->SensorOrder.arrayLen++;
- } else {
- /* Second level event (e.g., xsi:type, xsi:nil, ...) */
- errn = EXI_UNSUPPORTED_EVENT_CODE_CHARACTERISTICS;
- }
- }
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- if(errn == 0) {
- /* valid EE for simple element START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorOrder) ? */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(eventCode == 0) {
- grammarID = 1259;
- } else {
- errn = EXI_DEVIANT_SUPPORT_NOT_DEPLOYED; /* or also typecast and nillable */
- }
- }
- break;
- case 1:
- /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(errn == 0) {
- if(eventCode == 0) {
- errn = decodeNBitUnsignedInteger(stream, 8, &(uint32));
- v2gLFA_EVFinePositioningSetupParametersType->SignalPulseDuration = (uint8_t)(uint32 + 0);
- } 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({urn:iso:15118:2:2016:MsgDataTypes}SignalPulseDuration) ? */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(eventCode == 0) {
- grammarID = 1242;
- } else {
- errn = EXI_DEVIANT_SUPPORT_NOT_DEPLOYED; /* or also typecast and nillable */
- }
- }
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 1259:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorOrder), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SignalPulseDuration)] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gLFA_EVFinePositioningSetupParametersType->SensorOrder.arrayLen < v2gLFA_EVFinePositioningSetupParametersType_SensorOrder_ARRAY_SIZE) {
- /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(errn == 0) {
- if(eventCode == 0) {
- errn = decodeNBitUnsignedInteger(stream, 8, &(uint32));
- v2gLFA_EVFinePositioningSetupParametersType->SensorOrder.array[v2gLFA_EVFinePositioningSetupParametersType->SensorOrder.arrayLen] = (uint8_t)(uint32 + 0);
- v2gLFA_EVFinePositioningSetupParametersType->SensorOrder.arrayLen++;
- } else {
- /* Second level event (e.g., xsi:type, xsi:nil, ...) */
- errn = EXI_UNSUPPORTED_EVENT_CODE_CHARACTERISTICS;
- }
- }
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- if(errn == 0) {
- /* valid EE for simple element START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorOrder) ? */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(eventCode == 0) {
- grammarID = 1260;
- } else {
- errn = EXI_DEVIANT_SUPPORT_NOT_DEPLOYED; /* or also typecast and nillable */
- }
- }
- break;
- case 1:
- /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(errn == 0) {
- if(eventCode == 0) {
- errn = decodeNBitUnsignedInteger(stream, 8, &(uint32));
- v2gLFA_EVFinePositioningSetupParametersType->SignalPulseDuration = (uint8_t)(uint32 + 0);
- } 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({urn:iso:15118:2:2016:MsgDataTypes}SignalPulseDuration) ? */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(eventCode == 0) {
- grammarID = 1242;
- } else {
- errn = EXI_DEVIANT_SUPPORT_NOT_DEPLOYED; /* or also typecast and nillable */
- }
- }
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 1260:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorOrder), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SignalPulseDuration)] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gLFA_EVFinePositioningSetupParametersType->SensorOrder.arrayLen < v2gLFA_EVFinePositioningSetupParametersType_SensorOrder_ARRAY_SIZE) {
- /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(errn == 0) {
- if(eventCode == 0) {
- errn = decodeNBitUnsignedInteger(stream, 8, &(uint32));
- v2gLFA_EVFinePositioningSetupParametersType->SensorOrder.array[v2gLFA_EVFinePositioningSetupParametersType->SensorOrder.arrayLen] = (uint8_t)(uint32 + 0);
- v2gLFA_EVFinePositioningSetupParametersType->SensorOrder.arrayLen++;
- } else {
- /* Second level event (e.g., xsi:type, xsi:nil, ...) */
- errn = EXI_UNSUPPORTED_EVENT_CODE_CHARACTERISTICS;
- }
- }
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- if(errn == 0) {
- /* valid EE for simple element START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorOrder) ? */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(eventCode == 0) {
- grammarID = 1261;
- } else {
- errn = EXI_DEVIANT_SUPPORT_NOT_DEPLOYED; /* or also typecast and nillable */
- }
- }
- break;
- case 1:
- /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(errn == 0) {
- if(eventCode == 0) {
- errn = decodeNBitUnsignedInteger(stream, 8, &(uint32));
- v2gLFA_EVFinePositioningSetupParametersType->SignalPulseDuration = (uint8_t)(uint32 + 0);
- } 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({urn:iso:15118:2:2016:MsgDataTypes}SignalPulseDuration) ? */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(eventCode == 0) {
- grammarID = 1242;
- } else {
- errn = EXI_DEVIANT_SUPPORT_NOT_DEPLOYED; /* or also typecast and nillable */
- }
- }
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 1261:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorOrder), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SignalPulseDuration)] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gLFA_EVFinePositioningSetupParametersType->SensorOrder.arrayLen < v2gLFA_EVFinePositioningSetupParametersType_SensorOrder_ARRAY_SIZE) {
- /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(errn == 0) {
- if(eventCode == 0) {
- errn = decodeNBitUnsignedInteger(stream, 8, &(uint32));
- v2gLFA_EVFinePositioningSetupParametersType->SensorOrder.array[v2gLFA_EVFinePositioningSetupParametersType->SensorOrder.arrayLen] = (uint8_t)(uint32 + 0);
- v2gLFA_EVFinePositioningSetupParametersType->SensorOrder.arrayLen++;
- } else {
- /* Second level event (e.g., xsi:type, xsi:nil, ...) */
- errn = EXI_UNSUPPORTED_EVENT_CODE_CHARACTERISTICS;
- }
- }
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- if(errn == 0) {
- /* valid EE for simple element START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorOrder) ? */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(eventCode == 0) {
- grammarID = 1262;
- } else {
- errn = EXI_DEVIANT_SUPPORT_NOT_DEPLOYED; /* or also typecast and nillable */
- }
- }
- break;
- case 1:
- /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(errn == 0) {
- if(eventCode == 0) {
- errn = decodeNBitUnsignedInteger(stream, 8, &(uint32));
- v2gLFA_EVFinePositioningSetupParametersType->SignalPulseDuration = (uint8_t)(uint32 + 0);
- } 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({urn:iso:15118:2:2016:MsgDataTypes}SignalPulseDuration) ? */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(eventCode == 0) {
- grammarID = 1242;
- } else {
- errn = EXI_DEVIANT_SUPPORT_NOT_DEPLOYED; /* or also typecast and nillable */
- }
- }
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 1262:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorOrder), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SignalPulseDuration)] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gLFA_EVFinePositioningSetupParametersType->SensorOrder.arrayLen < v2gLFA_EVFinePositioningSetupParametersType_SensorOrder_ARRAY_SIZE) {
- /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(errn == 0) {
- if(eventCode == 0) {
- errn = decodeNBitUnsignedInteger(stream, 8, &(uint32));
- v2gLFA_EVFinePositioningSetupParametersType->SensorOrder.array[v2gLFA_EVFinePositioningSetupParametersType->SensorOrder.arrayLen] = (uint8_t)(uint32 + 0);
- v2gLFA_EVFinePositioningSetupParametersType->SensorOrder.arrayLen++;
- } else {
- /* Second level event (e.g., xsi:type, xsi:nil, ...) */
- errn = EXI_UNSUPPORTED_EVENT_CODE_CHARACTERISTICS;
- }
- }
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- if(errn == 0) {
- /* valid EE for simple element START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorOrder) ? */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(eventCode == 0) {
- grammarID = 1263;
- } else {
- errn = EXI_DEVIANT_SUPPORT_NOT_DEPLOYED; /* or also typecast and nillable */
- }
- }
- break;
- case 1:
- /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(errn == 0) {
- if(eventCode == 0) {
- errn = decodeNBitUnsignedInteger(stream, 8, &(uint32));
- v2gLFA_EVFinePositioningSetupParametersType->SignalPulseDuration = (uint8_t)(uint32 + 0);
- } 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({urn:iso:15118:2:2016:MsgDataTypes}SignalPulseDuration) ? */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(eventCode == 0) {
- grammarID = 1242;
- } else {
- errn = EXI_DEVIANT_SUPPORT_NOT_DEPLOYED; /* or also typecast and nillable */
- }
- }
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 1263:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorOrder), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SignalPulseDuration)] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gLFA_EVFinePositioningSetupParametersType->SensorOrder.arrayLen < v2gLFA_EVFinePositioningSetupParametersType_SensorOrder_ARRAY_SIZE) {
- /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(errn == 0) {
- if(eventCode == 0) {
- errn = decodeNBitUnsignedInteger(stream, 8, &(uint32));
- v2gLFA_EVFinePositioningSetupParametersType->SensorOrder.array[v2gLFA_EVFinePositioningSetupParametersType->SensorOrder.arrayLen] = (uint8_t)(uint32 + 0);
- v2gLFA_EVFinePositioningSetupParametersType->SensorOrder.arrayLen++;
- } else {
- /* Second level event (e.g., xsi:type, xsi:nil, ...) */
- errn = EXI_UNSUPPORTED_EVENT_CODE_CHARACTERISTICS;
- }
- }
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- if(errn == 0) {
- /* valid EE for simple element START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorOrder) ? */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(eventCode == 0) {
- grammarID = 1264;
- } else {
- errn = EXI_DEVIANT_SUPPORT_NOT_DEPLOYED; /* or also typecast and nillable */
- }
- }
- break;
- case 1:
- /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(errn == 0) {
- if(eventCode == 0) {
- errn = decodeNBitUnsignedInteger(stream, 8, &(uint32));
- v2gLFA_EVFinePositioningSetupParametersType->SignalPulseDuration = (uint8_t)(uint32 + 0);
- } 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({urn:iso:15118:2:2016:MsgDataTypes}SignalPulseDuration) ? */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(eventCode == 0) {
- grammarID = 1242;
- } else {
- errn = EXI_DEVIANT_SUPPORT_NOT_DEPLOYED; /* or also typecast and nillable */
- }
- }
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 1264:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorOrder), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SignalPulseDuration)] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gLFA_EVFinePositioningSetupParametersType->SensorOrder.arrayLen < v2gLFA_EVFinePositioningSetupParametersType_SensorOrder_ARRAY_SIZE) {
- /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(errn == 0) {
- if(eventCode == 0) {
- errn = decodeNBitUnsignedInteger(stream, 8, &(uint32));
- v2gLFA_EVFinePositioningSetupParametersType->SensorOrder.array[v2gLFA_EVFinePositioningSetupParametersType->SensorOrder.arrayLen] = (uint8_t)(uint32 + 0);
- v2gLFA_EVFinePositioningSetupParametersType->SensorOrder.arrayLen++;
- } else {
- /* Second level event (e.g., xsi:type, xsi:nil, ...) */
- errn = EXI_UNSUPPORTED_EVENT_CODE_CHARACTERISTICS;
- }
- }
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- if(errn == 0) {
- /* valid EE for simple element START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorOrder) ? */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(eventCode == 0) {
- grammarID = 1265;
- } else {
- errn = EXI_DEVIANT_SUPPORT_NOT_DEPLOYED; /* or also typecast and nillable */
- }
- }
- break;
- case 1:
- /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(errn == 0) {
- if(eventCode == 0) {
- errn = decodeNBitUnsignedInteger(stream, 8, &(uint32));
- v2gLFA_EVFinePositioningSetupParametersType->SignalPulseDuration = (uint8_t)(uint32 + 0);
- } 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({urn:iso:15118:2:2016:MsgDataTypes}SignalPulseDuration) ? */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(eventCode == 0) {
- grammarID = 1242;
- } else {
- errn = EXI_DEVIANT_SUPPORT_NOT_DEPLOYED; /* or also typecast and nillable */
- }
- }
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 1265:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorOrder), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SignalPulseDuration)] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gLFA_EVFinePositioningSetupParametersType->SensorOrder.arrayLen < v2gLFA_EVFinePositioningSetupParametersType_SensorOrder_ARRAY_SIZE) {
- /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(errn == 0) {
- if(eventCode == 0) {
- errn = decodeNBitUnsignedInteger(stream, 8, &(uint32));
- v2gLFA_EVFinePositioningSetupParametersType->SensorOrder.array[v2gLFA_EVFinePositioningSetupParametersType->SensorOrder.arrayLen] = (uint8_t)(uint32 + 0);
- v2gLFA_EVFinePositioningSetupParametersType->SensorOrder.arrayLen++;
- } else {
- /* Second level event (e.g., xsi:type, xsi:nil, ...) */
- errn = EXI_UNSUPPORTED_EVENT_CODE_CHARACTERISTICS;
- }
- }
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- if(errn == 0) {
- /* valid EE for simple element START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorOrder) ? */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(eventCode == 0) {
- grammarID = 1266;
- } else {
- errn = EXI_DEVIANT_SUPPORT_NOT_DEPLOYED; /* or also typecast and nillable */
- }
- }
- break;
- case 1:
- /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(errn == 0) {
- if(eventCode == 0) {
- errn = decodeNBitUnsignedInteger(stream, 8, &(uint32));
- v2gLFA_EVFinePositioningSetupParametersType->SignalPulseDuration = (uint8_t)(uint32 + 0);
- } 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({urn:iso:15118:2:2016:MsgDataTypes}SignalPulseDuration) ? */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(eventCode == 0) {
- grammarID = 1242;
- } else {
- errn = EXI_DEVIANT_SUPPORT_NOT_DEPLOYED; /* or also typecast and nillable */
- }
- }
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 1266:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorOrder), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SignalPulseDuration)] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gLFA_EVFinePositioningSetupParametersType->SensorOrder.arrayLen < v2gLFA_EVFinePositioningSetupParametersType_SensorOrder_ARRAY_SIZE) {
- /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(errn == 0) {
- if(eventCode == 0) {
- errn = decodeNBitUnsignedInteger(stream, 8, &(uint32));
- v2gLFA_EVFinePositioningSetupParametersType->SensorOrder.array[v2gLFA_EVFinePositioningSetupParametersType->SensorOrder.arrayLen] = (uint8_t)(uint32 + 0);
- v2gLFA_EVFinePositioningSetupParametersType->SensorOrder.arrayLen++;
- } else {
- /* Second level event (e.g., xsi:type, xsi:nil, ...) */
- errn = EXI_UNSUPPORTED_EVENT_CODE_CHARACTERISTICS;
- }
- }
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- if(errn == 0) {
- /* valid EE for simple element START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorOrder) ? */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(eventCode == 0) {
- grammarID = 1267;
- } else {
- errn = EXI_DEVIANT_SUPPORT_NOT_DEPLOYED; /* or also typecast and nillable */
- }
- }
- break;
- case 1:
- /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(errn == 0) {
- if(eventCode == 0) {
- errn = decodeNBitUnsignedInteger(stream, 8, &(uint32));
- v2gLFA_EVFinePositioningSetupParametersType->SignalPulseDuration = (uint8_t)(uint32 + 0);
- } 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({urn:iso:15118:2:2016:MsgDataTypes}SignalPulseDuration) ? */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(eventCode == 0) {
- grammarID = 1242;
- } else {
- errn = EXI_DEVIANT_SUPPORT_NOT_DEPLOYED; /* or also typecast and nillable */
- }
- }
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 1267:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorOrder), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SignalPulseDuration)] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gLFA_EVFinePositioningSetupParametersType->SensorOrder.arrayLen < v2gLFA_EVFinePositioningSetupParametersType_SensorOrder_ARRAY_SIZE) {
- /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(errn == 0) {
- if(eventCode == 0) {
- errn = decodeNBitUnsignedInteger(stream, 8, &(uint32));
- v2gLFA_EVFinePositioningSetupParametersType->SensorOrder.array[v2gLFA_EVFinePositioningSetupParametersType->SensorOrder.arrayLen] = (uint8_t)(uint32 + 0);
- v2gLFA_EVFinePositioningSetupParametersType->SensorOrder.arrayLen++;
- } else {
- /* Second level event (e.g., xsi:type, xsi:nil, ...) */
- errn = EXI_UNSUPPORTED_EVENT_CODE_CHARACTERISTICS;
- }
- }
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- if(errn == 0) {
- /* valid EE for simple element START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorOrder) ? */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(eventCode == 0) {
- grammarID = 1268;
- } else {
- errn = EXI_DEVIANT_SUPPORT_NOT_DEPLOYED; /* or also typecast and nillable */
- }
- }
- break;
- case 1:
- /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(errn == 0) {
- if(eventCode == 0) {
- errn = decodeNBitUnsignedInteger(stream, 8, &(uint32));
- v2gLFA_EVFinePositioningSetupParametersType->SignalPulseDuration = (uint8_t)(uint32 + 0);
- } 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({urn:iso:15118:2:2016:MsgDataTypes}SignalPulseDuration) ? */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(eventCode == 0) {
- grammarID = 1242;
- } else {
- errn = EXI_DEVIANT_SUPPORT_NOT_DEPLOYED; /* or also typecast and nillable */
- }
- }
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 1268:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorOrder), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SignalPulseDuration)] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gLFA_EVFinePositioningSetupParametersType->SensorOrder.arrayLen < v2gLFA_EVFinePositioningSetupParametersType_SensorOrder_ARRAY_SIZE) {
- /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(errn == 0) {
- if(eventCode == 0) {
- errn = decodeNBitUnsignedInteger(stream, 8, &(uint32));
- v2gLFA_EVFinePositioningSetupParametersType->SensorOrder.array[v2gLFA_EVFinePositioningSetupParametersType->SensorOrder.arrayLen] = (uint8_t)(uint32 + 0);
- v2gLFA_EVFinePositioningSetupParametersType->SensorOrder.arrayLen++;
- } else {
- /* Second level event (e.g., xsi:type, xsi:nil, ...) */
- errn = EXI_UNSUPPORTED_EVENT_CODE_CHARACTERISTICS;
- }
- }
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- if(errn == 0) {
- /* valid EE for simple element START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorOrder) ? */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(eventCode == 0) {
- grammarID = 1269;
- } else {
- errn = EXI_DEVIANT_SUPPORT_NOT_DEPLOYED; /* or also typecast and nillable */
- }
- }
- break;
- case 1:
- /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(errn == 0) {
- if(eventCode == 0) {
- errn = decodeNBitUnsignedInteger(stream, 8, &(uint32));
- v2gLFA_EVFinePositioningSetupParametersType->SignalPulseDuration = (uint8_t)(uint32 + 0);
- } 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({urn:iso:15118:2:2016:MsgDataTypes}SignalPulseDuration) ? */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(eventCode == 0) {
- grammarID = 1242;
- } else {
- errn = EXI_DEVIANT_SUPPORT_NOT_DEPLOYED; /* or also typecast and nillable */
- }
- }
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 1269:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorOrder), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SignalPulseDuration)] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gLFA_EVFinePositioningSetupParametersType->SensorOrder.arrayLen < v2gLFA_EVFinePositioningSetupParametersType_SensorOrder_ARRAY_SIZE) {
- /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(errn == 0) {
- if(eventCode == 0) {
- errn = decodeNBitUnsignedInteger(stream, 8, &(uint32));
- v2gLFA_EVFinePositioningSetupParametersType->SensorOrder.array[v2gLFA_EVFinePositioningSetupParametersType->SensorOrder.arrayLen] = (uint8_t)(uint32 + 0);
- v2gLFA_EVFinePositioningSetupParametersType->SensorOrder.arrayLen++;
- } else {
- /* Second level event (e.g., xsi:type, xsi:nil, ...) */
- errn = EXI_UNSUPPORTED_EVENT_CODE_CHARACTERISTICS;
- }
- }
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- if(errn == 0) {
- /* valid EE for simple element START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorOrder) ? */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(eventCode == 0) {
- grammarID = 1270;
- } else {
- errn = EXI_DEVIANT_SUPPORT_NOT_DEPLOYED; /* or also typecast and nillable */
- }
- }
- break;
- case 1:
- /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(errn == 0) {
- if(eventCode == 0) {
- errn = decodeNBitUnsignedInteger(stream, 8, &(uint32));
- v2gLFA_EVFinePositioningSetupParametersType->SignalPulseDuration = (uint8_t)(uint32 + 0);
- } 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({urn:iso:15118:2:2016:MsgDataTypes}SignalPulseDuration) ? */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(eventCode == 0) {
- grammarID = 1242;
- } else {
- errn = EXI_DEVIANT_SUPPORT_NOT_DEPLOYED; /* or also typecast and nillable */
- }
- }
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 1270:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorOrder), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SignalPulseDuration)] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gLFA_EVFinePositioningSetupParametersType->SensorOrder.arrayLen < v2gLFA_EVFinePositioningSetupParametersType_SensorOrder_ARRAY_SIZE) {
- /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(errn == 0) {
- if(eventCode == 0) {
- errn = decodeNBitUnsignedInteger(stream, 8, &(uint32));
- v2gLFA_EVFinePositioningSetupParametersType->SensorOrder.array[v2gLFA_EVFinePositioningSetupParametersType->SensorOrder.arrayLen] = (uint8_t)(uint32 + 0);
- v2gLFA_EVFinePositioningSetupParametersType->SensorOrder.arrayLen++;
- } else {
- /* Second level event (e.g., xsi:type, xsi:nil, ...) */
- errn = EXI_UNSUPPORTED_EVENT_CODE_CHARACTERISTICS;
- }
- }
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- if(errn == 0) {
- /* valid EE for simple element START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorOrder) ? */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(eventCode == 0) {
- grammarID = 1271;
- } else {
- errn = EXI_DEVIANT_SUPPORT_NOT_DEPLOYED; /* or also typecast and nillable */
- }
- }
- break;
- case 1:
- /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(errn == 0) {
- if(eventCode == 0) {
- errn = decodeNBitUnsignedInteger(stream, 8, &(uint32));
- v2gLFA_EVFinePositioningSetupParametersType->SignalPulseDuration = (uint8_t)(uint32 + 0);
- } 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({urn:iso:15118:2:2016:MsgDataTypes}SignalPulseDuration) ? */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(eventCode == 0) {
- grammarID = 1242;
- } else {
- errn = EXI_DEVIANT_SUPPORT_NOT_DEPLOYED; /* or also typecast and nillable */
- }
- }
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 1271:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorOrder), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SignalPulseDuration)] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gLFA_EVFinePositioningSetupParametersType->SensorOrder.arrayLen < v2gLFA_EVFinePositioningSetupParametersType_SensorOrder_ARRAY_SIZE) {
- /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(errn == 0) {
- if(eventCode == 0) {
- errn = decodeNBitUnsignedInteger(stream, 8, &(uint32));
- v2gLFA_EVFinePositioningSetupParametersType->SensorOrder.array[v2gLFA_EVFinePositioningSetupParametersType->SensorOrder.arrayLen] = (uint8_t)(uint32 + 0);
- v2gLFA_EVFinePositioningSetupParametersType->SensorOrder.arrayLen++;
- } else {
- /* Second level event (e.g., xsi:type, xsi:nil, ...) */
- errn = EXI_UNSUPPORTED_EVENT_CODE_CHARACTERISTICS;
- }
- }
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- if(errn == 0) {
- /* valid EE for simple element START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorOrder) ? */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(eventCode == 0) {
- grammarID = 1272;
- } else {
- errn = EXI_DEVIANT_SUPPORT_NOT_DEPLOYED; /* or also typecast and nillable */
- }
- }
- break;
- case 1:
- /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(errn == 0) {
- if(eventCode == 0) {
- errn = decodeNBitUnsignedInteger(stream, 8, &(uint32));
- v2gLFA_EVFinePositioningSetupParametersType->SignalPulseDuration = (uint8_t)(uint32 + 0);
- } 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({urn:iso:15118:2:2016:MsgDataTypes}SignalPulseDuration) ? */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(eventCode == 0) {
- grammarID = 1242;
- } else {
- errn = EXI_DEVIANT_SUPPORT_NOT_DEPLOYED; /* or also typecast and nillable */
- }
- }
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 1272:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorOrder), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SignalPulseDuration)] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gLFA_EVFinePositioningSetupParametersType->SensorOrder.arrayLen < v2gLFA_EVFinePositioningSetupParametersType_SensorOrder_ARRAY_SIZE) {
- /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(errn == 0) {
- if(eventCode == 0) {
- errn = decodeNBitUnsignedInteger(stream, 8, &(uint32));
- v2gLFA_EVFinePositioningSetupParametersType->SensorOrder.array[v2gLFA_EVFinePositioningSetupParametersType->SensorOrder.arrayLen] = (uint8_t)(uint32 + 0);
- v2gLFA_EVFinePositioningSetupParametersType->SensorOrder.arrayLen++;
- } else {
- /* Second level event (e.g., xsi:type, xsi:nil, ...) */
- errn = EXI_UNSUPPORTED_EVENT_CODE_CHARACTERISTICS;
- }
- }
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- if(errn == 0) {
- /* valid EE for simple element START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorOrder) ? */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(eventCode == 0) {
- grammarID = 1273;
- } else {
- errn = EXI_DEVIANT_SUPPORT_NOT_DEPLOYED; /* or also typecast and nillable */
- }
- }
- break;
- case 1:
- /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(errn == 0) {
- if(eventCode == 0) {
- errn = decodeNBitUnsignedInteger(stream, 8, &(uint32));
- v2gLFA_EVFinePositioningSetupParametersType->SignalPulseDuration = (uint8_t)(uint32 + 0);
- } 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({urn:iso:15118:2:2016:MsgDataTypes}SignalPulseDuration) ? */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(eventCode == 0) {
- grammarID = 1242;
- } else {
- errn = EXI_DEVIANT_SUPPORT_NOT_DEPLOYED; /* or also typecast and nillable */
- }
- }
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 1273:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorOrder), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SignalPulseDuration)] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gLFA_EVFinePositioningSetupParametersType->SensorOrder.arrayLen < v2gLFA_EVFinePositioningSetupParametersType_SensorOrder_ARRAY_SIZE) {
- /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(errn == 0) {
- if(eventCode == 0) {
- errn = decodeNBitUnsignedInteger(stream, 8, &(uint32));
- v2gLFA_EVFinePositioningSetupParametersType->SensorOrder.array[v2gLFA_EVFinePositioningSetupParametersType->SensorOrder.arrayLen] = (uint8_t)(uint32 + 0);
- v2gLFA_EVFinePositioningSetupParametersType->SensorOrder.arrayLen++;
- } else {
- /* Second level event (e.g., xsi:type, xsi:nil, ...) */
- errn = EXI_UNSUPPORTED_EVENT_CODE_CHARACTERISTICS;
- }
- }
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- if(errn == 0) {
- /* valid EE for simple element START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorOrder) ? */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(eventCode == 0) {
- grammarID = 1274;
- } else {
- errn = EXI_DEVIANT_SUPPORT_NOT_DEPLOYED; /* or also typecast and nillable */
- }
- }
- break;
- case 1:
- /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(errn == 0) {
- if(eventCode == 0) {
- errn = decodeNBitUnsignedInteger(stream, 8, &(uint32));
- v2gLFA_EVFinePositioningSetupParametersType->SignalPulseDuration = (uint8_t)(uint32 + 0);
- } 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({urn:iso:15118:2:2016:MsgDataTypes}SignalPulseDuration) ? */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(eventCode == 0) {
- grammarID = 1242;
- } else {
- errn = EXI_DEVIANT_SUPPORT_NOT_DEPLOYED; /* or also typecast and nillable */
- }
- }
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 1274:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorOrder), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SignalPulseDuration)] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gLFA_EVFinePositioningSetupParametersType->SensorOrder.arrayLen < v2gLFA_EVFinePositioningSetupParametersType_SensorOrder_ARRAY_SIZE) {
- /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(errn == 0) {
- if(eventCode == 0) {
- errn = decodeNBitUnsignedInteger(stream, 8, &(uint32));
- v2gLFA_EVFinePositioningSetupParametersType->SensorOrder.array[v2gLFA_EVFinePositioningSetupParametersType->SensorOrder.arrayLen] = (uint8_t)(uint32 + 0);
- v2gLFA_EVFinePositioningSetupParametersType->SensorOrder.arrayLen++;
- } else {
- /* Second level event (e.g., xsi:type, xsi:nil, ...) */
- errn = EXI_UNSUPPORTED_EVENT_CODE_CHARACTERISTICS;
- }
- }
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- if(errn == 0) {
- /* valid EE for simple element START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorOrder) ? */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(eventCode == 0) {
- grammarID = 1275;
- } else {
- errn = EXI_DEVIANT_SUPPORT_NOT_DEPLOYED; /* or also typecast and nillable */
- }
- }
- break;
- case 1:
- /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(errn == 0) {
- if(eventCode == 0) {
- errn = decodeNBitUnsignedInteger(stream, 8, &(uint32));
- v2gLFA_EVFinePositioningSetupParametersType->SignalPulseDuration = (uint8_t)(uint32 + 0);
- } 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({urn:iso:15118:2:2016:MsgDataTypes}SignalPulseDuration) ? */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(eventCode == 0) {
- grammarID = 1242;
- } else {
- errn = EXI_DEVIANT_SUPPORT_NOT_DEPLOYED; /* or also typecast and nillable */
- }
- }
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 1275:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorOrder), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SignalPulseDuration)] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gLFA_EVFinePositioningSetupParametersType->SensorOrder.arrayLen < v2gLFA_EVFinePositioningSetupParametersType_SensorOrder_ARRAY_SIZE) {
- /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(errn == 0) {
- if(eventCode == 0) {
- errn = decodeNBitUnsignedInteger(stream, 8, &(uint32));
- v2gLFA_EVFinePositioningSetupParametersType->SensorOrder.array[v2gLFA_EVFinePositioningSetupParametersType->SensorOrder.arrayLen] = (uint8_t)(uint32 + 0);
- v2gLFA_EVFinePositioningSetupParametersType->SensorOrder.arrayLen++;
- } else {
- /* Second level event (e.g., xsi:type, xsi:nil, ...) */
- errn = EXI_UNSUPPORTED_EVENT_CODE_CHARACTERISTICS;
- }
- }
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- if(errn == 0) {
- /* valid EE for simple element START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorOrder) ? */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(eventCode == 0) {
- grammarID = 1276;
- } else {
- errn = EXI_DEVIANT_SUPPORT_NOT_DEPLOYED; /* or also typecast and nillable */
- }
- }
- break;
- case 1:
- /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(errn == 0) {
- if(eventCode == 0) {
- errn = decodeNBitUnsignedInteger(stream, 8, &(uint32));
- v2gLFA_EVFinePositioningSetupParametersType->SignalPulseDuration = (uint8_t)(uint32 + 0);
- } 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({urn:iso:15118:2:2016:MsgDataTypes}SignalPulseDuration) ? */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(eventCode == 0) {
- grammarID = 1242;
- } else {
- errn = EXI_DEVIANT_SUPPORT_NOT_DEPLOYED; /* or also typecast and nillable */
- }
- }
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 1276:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorOrder), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SignalPulseDuration)] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gLFA_EVFinePositioningSetupParametersType->SensorOrder.arrayLen < v2gLFA_EVFinePositioningSetupParametersType_SensorOrder_ARRAY_SIZE) {
- /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(errn == 0) {
- if(eventCode == 0) {
- errn = decodeNBitUnsignedInteger(stream, 8, &(uint32));
- v2gLFA_EVFinePositioningSetupParametersType->SensorOrder.array[v2gLFA_EVFinePositioningSetupParametersType->SensorOrder.arrayLen] = (uint8_t)(uint32 + 0);
- v2gLFA_EVFinePositioningSetupParametersType->SensorOrder.arrayLen++;
- } else {
- /* Second level event (e.g., xsi:type, xsi:nil, ...) */
- errn = EXI_UNSUPPORTED_EVENT_CODE_CHARACTERISTICS;
- }
- }
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- if(errn == 0) {
- /* valid EE for simple element START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorOrder) ? */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(eventCode == 0) {
- grammarID = 1277;
- } else {
- errn = EXI_DEVIANT_SUPPORT_NOT_DEPLOYED; /* or also typecast and nillable */
- }
- }
- break;
- case 1:
- /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(errn == 0) {
- if(eventCode == 0) {
- errn = decodeNBitUnsignedInteger(stream, 8, &(uint32));
- v2gLFA_EVFinePositioningSetupParametersType->SignalPulseDuration = (uint8_t)(uint32 + 0);
- } 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({urn:iso:15118:2:2016:MsgDataTypes}SignalPulseDuration) ? */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(eventCode == 0) {
- grammarID = 1242;
- } else {
- errn = EXI_DEVIANT_SUPPORT_NOT_DEPLOYED; /* or also typecast and nillable */
- }
- }
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 1277:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorOrder), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SignalPulseDuration)] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gLFA_EVFinePositioningSetupParametersType->SensorOrder.arrayLen < v2gLFA_EVFinePositioningSetupParametersType_SensorOrder_ARRAY_SIZE) {
- /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(errn == 0) {
- if(eventCode == 0) {
- errn = decodeNBitUnsignedInteger(stream, 8, &(uint32));
- v2gLFA_EVFinePositioningSetupParametersType->SensorOrder.array[v2gLFA_EVFinePositioningSetupParametersType->SensorOrder.arrayLen] = (uint8_t)(uint32 + 0);
- v2gLFA_EVFinePositioningSetupParametersType->SensorOrder.arrayLen++;
- } else {
- /* Second level event (e.g., xsi:type, xsi:nil, ...) */
- errn = EXI_UNSUPPORTED_EVENT_CODE_CHARACTERISTICS;
- }
- }
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- if(errn == 0) {
- /* valid EE for simple element START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorOrder) ? */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(eventCode == 0) {
- grammarID = 1278;
- } else {
- errn = EXI_DEVIANT_SUPPORT_NOT_DEPLOYED; /* or also typecast and nillable */
- }
- }
- break;
- case 1:
- /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(errn == 0) {
- if(eventCode == 0) {
- errn = decodeNBitUnsignedInteger(stream, 8, &(uint32));
- v2gLFA_EVFinePositioningSetupParametersType->SignalPulseDuration = (uint8_t)(uint32 + 0);
- } 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({urn:iso:15118:2:2016:MsgDataTypes}SignalPulseDuration) ? */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(eventCode == 0) {
- grammarID = 1242;
- } else {
- errn = EXI_DEVIANT_SUPPORT_NOT_DEPLOYED; /* or also typecast and nillable */
- }
- }
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 1278:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorOrder), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SignalPulseDuration)] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gLFA_EVFinePositioningSetupParametersType->SensorOrder.arrayLen < v2gLFA_EVFinePositioningSetupParametersType_SensorOrder_ARRAY_SIZE) {
- /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(errn == 0) {
- if(eventCode == 0) {
- errn = decodeNBitUnsignedInteger(stream, 8, &(uint32));
- v2gLFA_EVFinePositioningSetupParametersType->SensorOrder.array[v2gLFA_EVFinePositioningSetupParametersType->SensorOrder.arrayLen] = (uint8_t)(uint32 + 0);
- v2gLFA_EVFinePositioningSetupParametersType->SensorOrder.arrayLen++;
- } else {
- /* Second level event (e.g., xsi:type, xsi:nil, ...) */
- errn = EXI_UNSUPPORTED_EVENT_CODE_CHARACTERISTICS;
- }
- }
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- if(errn == 0) {
- /* valid EE for simple element START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorOrder) ? */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(eventCode == 0) {
- grammarID = 1279;
- } else {
- errn = EXI_DEVIANT_SUPPORT_NOT_DEPLOYED; /* or also typecast and nillable */
- }
- }
- break;
- case 1:
- /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(errn == 0) {
- if(eventCode == 0) {
- errn = decodeNBitUnsignedInteger(stream, 8, &(uint32));
- v2gLFA_EVFinePositioningSetupParametersType->SignalPulseDuration = (uint8_t)(uint32 + 0);
- } 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({urn:iso:15118:2:2016:MsgDataTypes}SignalPulseDuration) ? */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(eventCode == 0) {
- grammarID = 1242;
- } else {
- errn = EXI_DEVIANT_SUPPORT_NOT_DEPLOYED; /* or also typecast and nillable */
- }
- }
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 1279:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorOrder), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SignalPulseDuration)] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gLFA_EVFinePositioningSetupParametersType->SensorOrder.arrayLen < v2gLFA_EVFinePositioningSetupParametersType_SensorOrder_ARRAY_SIZE) {
- /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(errn == 0) {
- if(eventCode == 0) {
- errn = decodeNBitUnsignedInteger(stream, 8, &(uint32));
- v2gLFA_EVFinePositioningSetupParametersType->SensorOrder.array[v2gLFA_EVFinePositioningSetupParametersType->SensorOrder.arrayLen] = (uint8_t)(uint32 + 0);
- v2gLFA_EVFinePositioningSetupParametersType->SensorOrder.arrayLen++;
- } else {
- /* Second level event (e.g., xsi:type, xsi:nil, ...) */
- errn = EXI_UNSUPPORTED_EVENT_CODE_CHARACTERISTICS;
- }
- }
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- if(errn == 0) {
- /* valid EE for simple element START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorOrder) ? */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(eventCode == 0) {
- grammarID = 1280;
- } else {
- errn = EXI_DEVIANT_SUPPORT_NOT_DEPLOYED; /* or also typecast and nillable */
- }
- }
- break;
- case 1:
- /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(errn == 0) {
- if(eventCode == 0) {
- errn = decodeNBitUnsignedInteger(stream, 8, &(uint32));
- v2gLFA_EVFinePositioningSetupParametersType->SignalPulseDuration = (uint8_t)(uint32 + 0);
- } 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({urn:iso:15118:2:2016:MsgDataTypes}SignalPulseDuration) ? */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(eventCode == 0) {
- grammarID = 1242;
- } else {
- errn = EXI_DEVIANT_SUPPORT_NOT_DEPLOYED; /* or also typecast and nillable */
- }
- }
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 1280:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorOrder), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SignalPulseDuration)] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gLFA_EVFinePositioningSetupParametersType->SensorOrder.arrayLen < v2gLFA_EVFinePositioningSetupParametersType_SensorOrder_ARRAY_SIZE) {
- /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(errn == 0) {
- if(eventCode == 0) {
- errn = decodeNBitUnsignedInteger(stream, 8, &(uint32));
- v2gLFA_EVFinePositioningSetupParametersType->SensorOrder.array[v2gLFA_EVFinePositioningSetupParametersType->SensorOrder.arrayLen] = (uint8_t)(uint32 + 0);
- v2gLFA_EVFinePositioningSetupParametersType->SensorOrder.arrayLen++;
- } else {
- /* Second level event (e.g., xsi:type, xsi:nil, ...) */
- errn = EXI_UNSUPPORTED_EVENT_CODE_CHARACTERISTICS;
- }
- }
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- if(errn == 0) {
- /* valid EE for simple element START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorOrder) ? */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(eventCode == 0) {
- grammarID = 1281;
- } else {
- errn = EXI_DEVIANT_SUPPORT_NOT_DEPLOYED; /* or also typecast and nillable */
- }
- }
- break;
- case 1:
- /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(errn == 0) {
- if(eventCode == 0) {
- errn = decodeNBitUnsignedInteger(stream, 8, &(uint32));
- v2gLFA_EVFinePositioningSetupParametersType->SignalPulseDuration = (uint8_t)(uint32 + 0);
- } 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({urn:iso:15118:2:2016:MsgDataTypes}SignalPulseDuration) ? */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(eventCode == 0) {
- grammarID = 1242;
- } else {
- errn = EXI_DEVIANT_SUPPORT_NOT_DEPLOYED; /* or also typecast and nillable */
- }
- }
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 1281:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorOrder), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SignalPulseDuration)] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gLFA_EVFinePositioningSetupParametersType->SensorOrder.arrayLen < v2gLFA_EVFinePositioningSetupParametersType_SensorOrder_ARRAY_SIZE) {
- /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(errn == 0) {
- if(eventCode == 0) {
- errn = decodeNBitUnsignedInteger(stream, 8, &(uint32));
- v2gLFA_EVFinePositioningSetupParametersType->SensorOrder.array[v2gLFA_EVFinePositioningSetupParametersType->SensorOrder.arrayLen] = (uint8_t)(uint32 + 0);
- v2gLFA_EVFinePositioningSetupParametersType->SensorOrder.arrayLen++;
- } else {
- /* Second level event (e.g., xsi:type, xsi:nil, ...) */
- errn = EXI_UNSUPPORTED_EVENT_CODE_CHARACTERISTICS;
- }
- }
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- if(errn == 0) {
- /* valid EE for simple element START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorOrder) ? */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(eventCode == 0) {
- grammarID = 1282;
- } else {
- errn = EXI_DEVIANT_SUPPORT_NOT_DEPLOYED; /* or also typecast and nillable */
- }
- }
- break;
- case 1:
- /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(errn == 0) {
- if(eventCode == 0) {
- errn = decodeNBitUnsignedInteger(stream, 8, &(uint32));
- v2gLFA_EVFinePositioningSetupParametersType->SignalPulseDuration = (uint8_t)(uint32 + 0);
- } 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({urn:iso:15118:2:2016:MsgDataTypes}SignalPulseDuration) ? */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(eventCode == 0) {
- grammarID = 1242;
- } else {
- errn = EXI_DEVIANT_SUPPORT_NOT_DEPLOYED; /* or also typecast and nillable */
- }
- }
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 1282:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorOrder), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SignalPulseDuration)] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gLFA_EVFinePositioningSetupParametersType->SensorOrder.arrayLen < v2gLFA_EVFinePositioningSetupParametersType_SensorOrder_ARRAY_SIZE) {
- /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(errn == 0) {
- if(eventCode == 0) {
- errn = decodeNBitUnsignedInteger(stream, 8, &(uint32));
- v2gLFA_EVFinePositioningSetupParametersType->SensorOrder.array[v2gLFA_EVFinePositioningSetupParametersType->SensorOrder.arrayLen] = (uint8_t)(uint32 + 0);
- v2gLFA_EVFinePositioningSetupParametersType->SensorOrder.arrayLen++;
- } else {
- /* Second level event (e.g., xsi:type, xsi:nil, ...) */
- errn = EXI_UNSUPPORTED_EVENT_CODE_CHARACTERISTICS;
- }
- }
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- if(errn == 0) {
- /* valid EE for simple element START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorOrder) ? */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(eventCode == 0) {
- grammarID = 1283;
- } else {
- errn = EXI_DEVIANT_SUPPORT_NOT_DEPLOYED; /* or also typecast and nillable */
- }
- }
- break;
- case 1:
- /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(errn == 0) {
- if(eventCode == 0) {
- errn = decodeNBitUnsignedInteger(stream, 8, &(uint32));
- v2gLFA_EVFinePositioningSetupParametersType->SignalPulseDuration = (uint8_t)(uint32 + 0);
- } 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({urn:iso:15118:2:2016:MsgDataTypes}SignalPulseDuration) ? */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(eventCode == 0) {
- grammarID = 1242;
- } else {
- errn = EXI_DEVIANT_SUPPORT_NOT_DEPLOYED; /* or also typecast and nillable */
- }
- }
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 1283:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorOrder), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SignalPulseDuration)] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gLFA_EVFinePositioningSetupParametersType->SensorOrder.arrayLen < v2gLFA_EVFinePositioningSetupParametersType_SensorOrder_ARRAY_SIZE) {
- /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(errn == 0) {
- if(eventCode == 0) {
- errn = decodeNBitUnsignedInteger(stream, 8, &(uint32));
- v2gLFA_EVFinePositioningSetupParametersType->SensorOrder.array[v2gLFA_EVFinePositioningSetupParametersType->SensorOrder.arrayLen] = (uint8_t)(uint32 + 0);
- v2gLFA_EVFinePositioningSetupParametersType->SensorOrder.arrayLen++;
- } else {
- /* Second level event (e.g., xsi:type, xsi:nil, ...) */
- errn = EXI_UNSUPPORTED_EVENT_CODE_CHARACTERISTICS;
- }
- }
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- if(errn == 0) {
- /* valid EE for simple element START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorOrder) ? */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(eventCode == 0) {
- grammarID = 1284;
- } else {
- errn = EXI_DEVIANT_SUPPORT_NOT_DEPLOYED; /* or also typecast and nillable */
- }
- }
- break;
- case 1:
- /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(errn == 0) {
- if(eventCode == 0) {
- errn = decodeNBitUnsignedInteger(stream, 8, &(uint32));
- v2gLFA_EVFinePositioningSetupParametersType->SignalPulseDuration = (uint8_t)(uint32 + 0);
- } 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({urn:iso:15118:2:2016:MsgDataTypes}SignalPulseDuration) ? */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(eventCode == 0) {
- grammarID = 1242;
- } else {
- errn = EXI_DEVIANT_SUPPORT_NOT_DEPLOYED; /* or also typecast and nillable */
- }
- }
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 1284:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorOrder), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SignalPulseDuration)] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gLFA_EVFinePositioningSetupParametersType->SensorOrder.arrayLen < v2gLFA_EVFinePositioningSetupParametersType_SensorOrder_ARRAY_SIZE) {
- /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(errn == 0) {
- if(eventCode == 0) {
- errn = decodeNBitUnsignedInteger(stream, 8, &(uint32));
- v2gLFA_EVFinePositioningSetupParametersType->SensorOrder.array[v2gLFA_EVFinePositioningSetupParametersType->SensorOrder.arrayLen] = (uint8_t)(uint32 + 0);
- v2gLFA_EVFinePositioningSetupParametersType->SensorOrder.arrayLen++;
- } else {
- /* Second level event (e.g., xsi:type, xsi:nil, ...) */
- errn = EXI_UNSUPPORTED_EVENT_CODE_CHARACTERISTICS;
- }
- }
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- if(errn == 0) {
- /* valid EE for simple element START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorOrder) ? */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(eventCode == 0) {
- grammarID = 1285;
- } else {
- errn = EXI_DEVIANT_SUPPORT_NOT_DEPLOYED; /* or also typecast and nillable */
- }
- }
- break;
- case 1:
- /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(errn == 0) {
- if(eventCode == 0) {
- errn = decodeNBitUnsignedInteger(stream, 8, &(uint32));
- v2gLFA_EVFinePositioningSetupParametersType->SignalPulseDuration = (uint8_t)(uint32 + 0);
- } 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({urn:iso:15118:2:2016:MsgDataTypes}SignalPulseDuration) ? */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(eventCode == 0) {
- grammarID = 1242;
- } else {
- errn = EXI_DEVIANT_SUPPORT_NOT_DEPLOYED; /* or also typecast and nillable */
- }
- }
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 1285:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorOrder), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SignalPulseDuration)] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gLFA_EVFinePositioningSetupParametersType->SensorOrder.arrayLen < v2gLFA_EVFinePositioningSetupParametersType_SensorOrder_ARRAY_SIZE) {
- /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(errn == 0) {
- if(eventCode == 0) {
- errn = decodeNBitUnsignedInteger(stream, 8, &(uint32));
- v2gLFA_EVFinePositioningSetupParametersType->SensorOrder.array[v2gLFA_EVFinePositioningSetupParametersType->SensorOrder.arrayLen] = (uint8_t)(uint32 + 0);
- v2gLFA_EVFinePositioningSetupParametersType->SensorOrder.arrayLen++;
- } else {
- /* Second level event (e.g., xsi:type, xsi:nil, ...) */
- errn = EXI_UNSUPPORTED_EVENT_CODE_CHARACTERISTICS;
- }
- }
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- if(errn == 0) {
- /* valid EE for simple element START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorOrder) ? */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(eventCode == 0) {
- grammarID = 1286;
- } else {
- errn = EXI_DEVIANT_SUPPORT_NOT_DEPLOYED; /* or also typecast and nillable */
- }
- }
- break;
- case 1:
- /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(errn == 0) {
- if(eventCode == 0) {
- errn = decodeNBitUnsignedInteger(stream, 8, &(uint32));
- v2gLFA_EVFinePositioningSetupParametersType->SignalPulseDuration = (uint8_t)(uint32 + 0);
- } 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({urn:iso:15118:2:2016:MsgDataTypes}SignalPulseDuration) ? */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(eventCode == 0) {
- grammarID = 1242;
- } else {
- errn = EXI_DEVIANT_SUPPORT_NOT_DEPLOYED; /* or also typecast and nillable */
- }
- }
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 1286:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorOrder), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SignalPulseDuration)] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gLFA_EVFinePositioningSetupParametersType->SensorOrder.arrayLen < v2gLFA_EVFinePositioningSetupParametersType_SensorOrder_ARRAY_SIZE) {
- /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(errn == 0) {
- if(eventCode == 0) {
- errn = decodeNBitUnsignedInteger(stream, 8, &(uint32));
- v2gLFA_EVFinePositioningSetupParametersType->SensorOrder.array[v2gLFA_EVFinePositioningSetupParametersType->SensorOrder.arrayLen] = (uint8_t)(uint32 + 0);
- v2gLFA_EVFinePositioningSetupParametersType->SensorOrder.arrayLen++;
- } else {
- /* Second level event (e.g., xsi:type, xsi:nil, ...) */
- errn = EXI_UNSUPPORTED_EVENT_CODE_CHARACTERISTICS;
- }
- }
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- if(errn == 0) {
- /* valid EE for simple element START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorOrder) ? */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(eventCode == 0) {
- grammarID = 1287;
- } else {
- errn = EXI_DEVIANT_SUPPORT_NOT_DEPLOYED; /* or also typecast and nillable */
- }
- }
- break;
- case 1:
- /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(errn == 0) {
- if(eventCode == 0) {
- errn = decodeNBitUnsignedInteger(stream, 8, &(uint32));
- v2gLFA_EVFinePositioningSetupParametersType->SignalPulseDuration = (uint8_t)(uint32 + 0);
- } 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({urn:iso:15118:2:2016:MsgDataTypes}SignalPulseDuration) ? */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(eventCode == 0) {
- grammarID = 1242;
- } else {
- errn = EXI_DEVIANT_SUPPORT_NOT_DEPLOYED; /* or also typecast and nillable */
- }
- }
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 1287:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorOrder), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SignalPulseDuration)] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gLFA_EVFinePositioningSetupParametersType->SensorOrder.arrayLen < v2gLFA_EVFinePositioningSetupParametersType_SensorOrder_ARRAY_SIZE) {
- /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(errn == 0) {
- if(eventCode == 0) {
- errn = decodeNBitUnsignedInteger(stream, 8, &(uint32));
- v2gLFA_EVFinePositioningSetupParametersType->SensorOrder.array[v2gLFA_EVFinePositioningSetupParametersType->SensorOrder.arrayLen] = (uint8_t)(uint32 + 0);
- v2gLFA_EVFinePositioningSetupParametersType->SensorOrder.arrayLen++;
- } else {
- /* Second level event (e.g., xsi:type, xsi:nil, ...) */
- errn = EXI_UNSUPPORTED_EVENT_CODE_CHARACTERISTICS;
- }
- }
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- if(errn == 0) {
- /* valid EE for simple element START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorOrder) ? */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(eventCode == 0) {
- grammarID = 1288;
- } else {
- errn = EXI_DEVIANT_SUPPORT_NOT_DEPLOYED; /* or also typecast and nillable */
- }
- }
- break;
- case 1:
- /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(errn == 0) {
- if(eventCode == 0) {
- errn = decodeNBitUnsignedInteger(stream, 8, &(uint32));
- v2gLFA_EVFinePositioningSetupParametersType->SignalPulseDuration = (uint8_t)(uint32 + 0);
- } 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({urn:iso:15118:2:2016:MsgDataTypes}SignalPulseDuration) ? */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(eventCode == 0) {
- grammarID = 1242;
- } else {
- errn = EXI_DEVIANT_SUPPORT_NOT_DEPLOYED; /* or also typecast and nillable */
- }
- }
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 1288:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorOrder), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SignalPulseDuration)] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gLFA_EVFinePositioningSetupParametersType->SensorOrder.arrayLen < v2gLFA_EVFinePositioningSetupParametersType_SensorOrder_ARRAY_SIZE) {
- /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(errn == 0) {
- if(eventCode == 0) {
- errn = decodeNBitUnsignedInteger(stream, 8, &(uint32));
- v2gLFA_EVFinePositioningSetupParametersType->SensorOrder.array[v2gLFA_EVFinePositioningSetupParametersType->SensorOrder.arrayLen] = (uint8_t)(uint32 + 0);
- v2gLFA_EVFinePositioningSetupParametersType->SensorOrder.arrayLen++;
- } else {
- /* Second level event (e.g., xsi:type, xsi:nil, ...) */
- errn = EXI_UNSUPPORTED_EVENT_CODE_CHARACTERISTICS;
- }
- }
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- if(errn == 0) {
- /* valid EE for simple element START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorOrder) ? */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(eventCode == 0) {
- grammarID = 1289;
- } else {
- errn = EXI_DEVIANT_SUPPORT_NOT_DEPLOYED; /* or also typecast and nillable */
- }
- }
- break;
- case 1:
- /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(errn == 0) {
- if(eventCode == 0) {
- errn = decodeNBitUnsignedInteger(stream, 8, &(uint32));
- v2gLFA_EVFinePositioningSetupParametersType->SignalPulseDuration = (uint8_t)(uint32 + 0);
- } 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({urn:iso:15118:2:2016:MsgDataTypes}SignalPulseDuration) ? */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(eventCode == 0) {
- grammarID = 1242;
- } else {
- errn = EXI_DEVIANT_SUPPORT_NOT_DEPLOYED; /* or also typecast and nillable */
- }
- }
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 1289:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorOrder), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SignalPulseDuration)] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gLFA_EVFinePositioningSetupParametersType->SensorOrder.arrayLen < v2gLFA_EVFinePositioningSetupParametersType_SensorOrder_ARRAY_SIZE) {
- /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(errn == 0) {
- if(eventCode == 0) {
- errn = decodeNBitUnsignedInteger(stream, 8, &(uint32));
- v2gLFA_EVFinePositioningSetupParametersType->SensorOrder.array[v2gLFA_EVFinePositioningSetupParametersType->SensorOrder.arrayLen] = (uint8_t)(uint32 + 0);
- v2gLFA_EVFinePositioningSetupParametersType->SensorOrder.arrayLen++;
- } else {
- /* Second level event (e.g., xsi:type, xsi:nil, ...) */
- errn = EXI_UNSUPPORTED_EVENT_CODE_CHARACTERISTICS;
- }
- }
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- if(errn == 0) {
- /* valid EE for simple element START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorOrder) ? */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(eventCode == 0) {
- grammarID = 1290;
- } else {
- errn = EXI_DEVIANT_SUPPORT_NOT_DEPLOYED; /* or also typecast and nillable */
- }
- }
- break;
- case 1:
- /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(errn == 0) {
- if(eventCode == 0) {
- errn = decodeNBitUnsignedInteger(stream, 8, &(uint32));
- v2gLFA_EVFinePositioningSetupParametersType->SignalPulseDuration = (uint8_t)(uint32 + 0);
- } 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({urn:iso:15118:2:2016:MsgDataTypes}SignalPulseDuration) ? */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(eventCode == 0) {
- grammarID = 1242;
- } else {
- errn = EXI_DEVIANT_SUPPORT_NOT_DEPLOYED; /* or also typecast and nillable */
- }
- }
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 1290:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorOrder), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SignalPulseDuration)] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gLFA_EVFinePositioningSetupParametersType->SensorOrder.arrayLen < v2gLFA_EVFinePositioningSetupParametersType_SensorOrder_ARRAY_SIZE) {
- /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(errn == 0) {
- if(eventCode == 0) {
- errn = decodeNBitUnsignedInteger(stream, 8, &(uint32));
- v2gLFA_EVFinePositioningSetupParametersType->SensorOrder.array[v2gLFA_EVFinePositioningSetupParametersType->SensorOrder.arrayLen] = (uint8_t)(uint32 + 0);
- v2gLFA_EVFinePositioningSetupParametersType->SensorOrder.arrayLen++;
- } else {
- /* Second level event (e.g., xsi:type, xsi:nil, ...) */
- errn = EXI_UNSUPPORTED_EVENT_CODE_CHARACTERISTICS;
- }
- }
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- if(errn == 0) {
- /* valid EE for simple element START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorOrder) ? */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(eventCode == 0) {
- grammarID = 1291;
- } else {
- errn = EXI_DEVIANT_SUPPORT_NOT_DEPLOYED; /* or also typecast and nillable */
- }
- }
- break;
- case 1:
- /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(errn == 0) {
- if(eventCode == 0) {
- errn = decodeNBitUnsignedInteger(stream, 8, &(uint32));
- v2gLFA_EVFinePositioningSetupParametersType->SignalPulseDuration = (uint8_t)(uint32 + 0);
- } 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({urn:iso:15118:2:2016:MsgDataTypes}SignalPulseDuration) ? */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(eventCode == 0) {
- grammarID = 1242;
- } else {
- errn = EXI_DEVIANT_SUPPORT_NOT_DEPLOYED; /* or also typecast and nillable */
- }
- }
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 1291:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorOrder), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SignalPulseDuration)] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gLFA_EVFinePositioningSetupParametersType->SensorOrder.arrayLen < v2gLFA_EVFinePositioningSetupParametersType_SensorOrder_ARRAY_SIZE) {
- /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(errn == 0) {
- if(eventCode == 0) {
- errn = decodeNBitUnsignedInteger(stream, 8, &(uint32));
- v2gLFA_EVFinePositioningSetupParametersType->SensorOrder.array[v2gLFA_EVFinePositioningSetupParametersType->SensorOrder.arrayLen] = (uint8_t)(uint32 + 0);
- v2gLFA_EVFinePositioningSetupParametersType->SensorOrder.arrayLen++;
- } else {
- /* Second level event (e.g., xsi:type, xsi:nil, ...) */
- errn = EXI_UNSUPPORTED_EVENT_CODE_CHARACTERISTICS;
- }
- }
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- if(errn == 0) {
- /* valid EE for simple element START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorOrder) ? */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(eventCode == 0) {
- grammarID = 1292;
- } else {
- errn = EXI_DEVIANT_SUPPORT_NOT_DEPLOYED; /* or also typecast and nillable */
- }
- }
- break;
- case 1:
- /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(errn == 0) {
- if(eventCode == 0) {
- errn = decodeNBitUnsignedInteger(stream, 8, &(uint32));
- v2gLFA_EVFinePositioningSetupParametersType->SignalPulseDuration = (uint8_t)(uint32 + 0);
- } 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({urn:iso:15118:2:2016:MsgDataTypes}SignalPulseDuration) ? */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(eventCode == 0) {
- grammarID = 1242;
- } else {
- errn = EXI_DEVIANT_SUPPORT_NOT_DEPLOYED; /* or also typecast and nillable */
- }
- }
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 1292:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorOrder), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SignalPulseDuration)] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gLFA_EVFinePositioningSetupParametersType->SensorOrder.arrayLen < v2gLFA_EVFinePositioningSetupParametersType_SensorOrder_ARRAY_SIZE) {
- /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(errn == 0) {
- if(eventCode == 0) {
- errn = decodeNBitUnsignedInteger(stream, 8, &(uint32));
- v2gLFA_EVFinePositioningSetupParametersType->SensorOrder.array[v2gLFA_EVFinePositioningSetupParametersType->SensorOrder.arrayLen] = (uint8_t)(uint32 + 0);
- v2gLFA_EVFinePositioningSetupParametersType->SensorOrder.arrayLen++;
- } else {
- /* Second level event (e.g., xsi:type, xsi:nil, ...) */
- errn = EXI_UNSUPPORTED_EVENT_CODE_CHARACTERISTICS;
- }
- }
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- if(errn == 0) {
- /* valid EE for simple element START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorOrder) ? */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(eventCode == 0) {
- grammarID = 1293;
- } else {
- errn = EXI_DEVIANT_SUPPORT_NOT_DEPLOYED; /* or also typecast and nillable */
- }
- }
- break;
- case 1:
- /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(errn == 0) {
- if(eventCode == 0) {
- errn = decodeNBitUnsignedInteger(stream, 8, &(uint32));
- v2gLFA_EVFinePositioningSetupParametersType->SignalPulseDuration = (uint8_t)(uint32 + 0);
- } 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({urn:iso:15118:2:2016:MsgDataTypes}SignalPulseDuration) ? */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(eventCode == 0) {
- grammarID = 1242;
- } else {
- errn = EXI_DEVIANT_SUPPORT_NOT_DEPLOYED; /* or also typecast and nillable */
- }
- }
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 1293:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorOrder), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SignalPulseDuration)] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gLFA_EVFinePositioningSetupParametersType->SensorOrder.arrayLen < v2gLFA_EVFinePositioningSetupParametersType_SensorOrder_ARRAY_SIZE) {
- /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(errn == 0) {
- if(eventCode == 0) {
- errn = decodeNBitUnsignedInteger(stream, 8, &(uint32));
- v2gLFA_EVFinePositioningSetupParametersType->SensorOrder.array[v2gLFA_EVFinePositioningSetupParametersType->SensorOrder.arrayLen] = (uint8_t)(uint32 + 0);
- v2gLFA_EVFinePositioningSetupParametersType->SensorOrder.arrayLen++;
- } else {
- /* Second level event (e.g., xsi:type, xsi:nil, ...) */
- errn = EXI_UNSUPPORTED_EVENT_CODE_CHARACTERISTICS;
- }
- }
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- if(errn == 0) {
- /* valid EE for simple element START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorOrder) ? */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(eventCode == 0) {
- grammarID = 1294;
- } else {
- errn = EXI_DEVIANT_SUPPORT_NOT_DEPLOYED; /* or also typecast and nillable */
- }
- }
- break;
- case 1:
- /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(errn == 0) {
- if(eventCode == 0) {
- errn = decodeNBitUnsignedInteger(stream, 8, &(uint32));
- v2gLFA_EVFinePositioningSetupParametersType->SignalPulseDuration = (uint8_t)(uint32 + 0);
- } 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({urn:iso:15118:2:2016:MsgDataTypes}SignalPulseDuration) ? */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(eventCode == 0) {
- grammarID = 1242;
- } else {
- errn = EXI_DEVIANT_SUPPORT_NOT_DEPLOYED; /* or also typecast and nillable */
- }
- }
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 1294:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorOrder), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SignalPulseDuration)] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gLFA_EVFinePositioningSetupParametersType->SensorOrder.arrayLen < v2gLFA_EVFinePositioningSetupParametersType_SensorOrder_ARRAY_SIZE) {
- /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(errn == 0) {
- if(eventCode == 0) {
- errn = decodeNBitUnsignedInteger(stream, 8, &(uint32));
- v2gLFA_EVFinePositioningSetupParametersType->SensorOrder.array[v2gLFA_EVFinePositioningSetupParametersType->SensorOrder.arrayLen] = (uint8_t)(uint32 + 0);
- v2gLFA_EVFinePositioningSetupParametersType->SensorOrder.arrayLen++;
- } else {
- /* Second level event (e.g., xsi:type, xsi:nil, ...) */
- errn = EXI_UNSUPPORTED_EVENT_CODE_CHARACTERISTICS;
- }
- }
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- if(errn == 0) {
- /* valid EE for simple element START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorOrder) ? */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(eventCode == 0) {
- grammarID = 1295;
- } else {
- errn = EXI_DEVIANT_SUPPORT_NOT_DEPLOYED; /* or also typecast and nillable */
- }
- }
- break;
- case 1:
- /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(errn == 0) {
- if(eventCode == 0) {
- errn = decodeNBitUnsignedInteger(stream, 8, &(uint32));
- v2gLFA_EVFinePositioningSetupParametersType->SignalPulseDuration = (uint8_t)(uint32 + 0);
- } 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({urn:iso:15118:2:2016:MsgDataTypes}SignalPulseDuration) ? */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(eventCode == 0) {
- grammarID = 1242;
- } else {
- errn = EXI_DEVIANT_SUPPORT_NOT_DEPLOYED; /* or also typecast and nillable */
- }
- }
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 1295:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorOrder), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SignalPulseDuration)] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gLFA_EVFinePositioningSetupParametersType->SensorOrder.arrayLen < v2gLFA_EVFinePositioningSetupParametersType_SensorOrder_ARRAY_SIZE) {
- /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(errn == 0) {
- if(eventCode == 0) {
- errn = decodeNBitUnsignedInteger(stream, 8, &(uint32));
- v2gLFA_EVFinePositioningSetupParametersType->SensorOrder.array[v2gLFA_EVFinePositioningSetupParametersType->SensorOrder.arrayLen] = (uint8_t)(uint32 + 0);
- v2gLFA_EVFinePositioningSetupParametersType->SensorOrder.arrayLen++;
- } else {
- /* Second level event (e.g., xsi:type, xsi:nil, ...) */
- errn = EXI_UNSUPPORTED_EVENT_CODE_CHARACTERISTICS;
- }
- }
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- if(errn == 0) {
- /* valid EE for simple element START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorOrder) ? */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(eventCode == 0) {
- grammarID = 1296;
- } else {
- errn = EXI_DEVIANT_SUPPORT_NOT_DEPLOYED; /* or also typecast and nillable */
- }
- }
- break;
- case 1:
- /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(errn == 0) {
- if(eventCode == 0) {
- errn = decodeNBitUnsignedInteger(stream, 8, &(uint32));
- v2gLFA_EVFinePositioningSetupParametersType->SignalPulseDuration = (uint8_t)(uint32 + 0);
- } 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({urn:iso:15118:2:2016:MsgDataTypes}SignalPulseDuration) ? */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(eventCode == 0) {
- grammarID = 1242;
- } else {
- errn = EXI_DEVIANT_SUPPORT_NOT_DEPLOYED; /* or also typecast and nillable */
- }
- }
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 1296:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorOrder), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SignalPulseDuration)] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gLFA_EVFinePositioningSetupParametersType->SensorOrder.arrayLen < v2gLFA_EVFinePositioningSetupParametersType_SensorOrder_ARRAY_SIZE) {
- /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(errn == 0) {
- if(eventCode == 0) {
- errn = decodeNBitUnsignedInteger(stream, 8, &(uint32));
- v2gLFA_EVFinePositioningSetupParametersType->SensorOrder.array[v2gLFA_EVFinePositioningSetupParametersType->SensorOrder.arrayLen] = (uint8_t)(uint32 + 0);
- v2gLFA_EVFinePositioningSetupParametersType->SensorOrder.arrayLen++;
- } else {
- /* Second level event (e.g., xsi:type, xsi:nil, ...) */
- errn = EXI_UNSUPPORTED_EVENT_CODE_CHARACTERISTICS;
- }
- }
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- if(errn == 0) {
- /* valid EE for simple element START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorOrder) ? */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(eventCode == 0) {
- grammarID = 1297;
- } else {
- errn = EXI_DEVIANT_SUPPORT_NOT_DEPLOYED; /* or also typecast and nillable */
- }
- }
- break;
- case 1:
- /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(errn == 0) {
- if(eventCode == 0) {
- errn = decodeNBitUnsignedInteger(stream, 8, &(uint32));
- v2gLFA_EVFinePositioningSetupParametersType->SignalPulseDuration = (uint8_t)(uint32 + 0);
- } 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({urn:iso:15118:2:2016:MsgDataTypes}SignalPulseDuration) ? */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(eventCode == 0) {
- grammarID = 1242;
- } else {
- errn = EXI_DEVIANT_SUPPORT_NOT_DEPLOYED; /* or also typecast and nillable */
- }
- }
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 1297:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorOrder), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SignalPulseDuration)] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gLFA_EVFinePositioningSetupParametersType->SensorOrder.arrayLen < v2gLFA_EVFinePositioningSetupParametersType_SensorOrder_ARRAY_SIZE) {
- /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(errn == 0) {
- if(eventCode == 0) {
- errn = decodeNBitUnsignedInteger(stream, 8, &(uint32));
- v2gLFA_EVFinePositioningSetupParametersType->SensorOrder.array[v2gLFA_EVFinePositioningSetupParametersType->SensorOrder.arrayLen] = (uint8_t)(uint32 + 0);
- v2gLFA_EVFinePositioningSetupParametersType->SensorOrder.arrayLen++;
- } else {
- /* Second level event (e.g., xsi:type, xsi:nil, ...) */
- errn = EXI_UNSUPPORTED_EVENT_CODE_CHARACTERISTICS;
- }
- }
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- if(errn == 0) {
- /* valid EE for simple element START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorOrder) ? */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(eventCode == 0) {
- grammarID = 1298;
- } else {
- errn = EXI_DEVIANT_SUPPORT_NOT_DEPLOYED; /* or also typecast and nillable */
- }
- }
- break;
- case 1:
- /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(errn == 0) {
- if(eventCode == 0) {
- errn = decodeNBitUnsignedInteger(stream, 8, &(uint32));
- v2gLFA_EVFinePositioningSetupParametersType->SignalPulseDuration = (uint8_t)(uint32 + 0);
- } 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({urn:iso:15118:2:2016:MsgDataTypes}SignalPulseDuration) ? */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(eventCode == 0) {
- grammarID = 1242;
- } else {
- errn = EXI_DEVIANT_SUPPORT_NOT_DEPLOYED; /* or also typecast and nillable */
- }
- }
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 1298:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorOrder), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SignalPulseDuration)] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gLFA_EVFinePositioningSetupParametersType->SensorOrder.arrayLen < v2gLFA_EVFinePositioningSetupParametersType_SensorOrder_ARRAY_SIZE) {
- /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(errn == 0) {
- if(eventCode == 0) {
- errn = decodeNBitUnsignedInteger(stream, 8, &(uint32));
- v2gLFA_EVFinePositioningSetupParametersType->SensorOrder.array[v2gLFA_EVFinePositioningSetupParametersType->SensorOrder.arrayLen] = (uint8_t)(uint32 + 0);
- v2gLFA_EVFinePositioningSetupParametersType->SensorOrder.arrayLen++;
- } else {
- /* Second level event (e.g., xsi:type, xsi:nil, ...) */
- errn = EXI_UNSUPPORTED_EVENT_CODE_CHARACTERISTICS;
- }
- }
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- if(errn == 0) {
- /* valid EE for simple element START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorOrder) ? */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(eventCode == 0) {
- grammarID = 1299;
- } else {
- errn = EXI_DEVIANT_SUPPORT_NOT_DEPLOYED; /* or also typecast and nillable */
- }
- }
- break;
- case 1:
- /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(errn == 0) {
- if(eventCode == 0) {
- errn = decodeNBitUnsignedInteger(stream, 8, &(uint32));
- v2gLFA_EVFinePositioningSetupParametersType->SignalPulseDuration = (uint8_t)(uint32 + 0);
- } 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({urn:iso:15118:2:2016:MsgDataTypes}SignalPulseDuration) ? */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(eventCode == 0) {
- grammarID = 1242;
- } else {
- errn = EXI_DEVIANT_SUPPORT_NOT_DEPLOYED; /* or also typecast and nillable */
- }
- }
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 1299:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorOrder), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SignalPulseDuration)] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gLFA_EVFinePositioningSetupParametersType->SensorOrder.arrayLen < v2gLFA_EVFinePositioningSetupParametersType_SensorOrder_ARRAY_SIZE) {
- /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(errn == 0) {
- if(eventCode == 0) {
- errn = decodeNBitUnsignedInteger(stream, 8, &(uint32));
- v2gLFA_EVFinePositioningSetupParametersType->SensorOrder.array[v2gLFA_EVFinePositioningSetupParametersType->SensorOrder.arrayLen] = (uint8_t)(uint32 + 0);
- v2gLFA_EVFinePositioningSetupParametersType->SensorOrder.arrayLen++;
- } else {
- /* Second level event (e.g., xsi:type, xsi:nil, ...) */
- errn = EXI_UNSUPPORTED_EVENT_CODE_CHARACTERISTICS;
- }
- }
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- if(errn == 0) {
- /* valid EE for simple element START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorOrder) ? */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(eventCode == 0) {
- grammarID = 1300;
- } else {
- errn = EXI_DEVIANT_SUPPORT_NOT_DEPLOYED; /* or also typecast and nillable */
- }
- }
- break;
- case 1:
- /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(errn == 0) {
- if(eventCode == 0) {
- errn = decodeNBitUnsignedInteger(stream, 8, &(uint32));
- v2gLFA_EVFinePositioningSetupParametersType->SignalPulseDuration = (uint8_t)(uint32 + 0);
- } 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({urn:iso:15118:2:2016:MsgDataTypes}SignalPulseDuration) ? */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(eventCode == 0) {
- grammarID = 1242;
- } else {
- errn = EXI_DEVIANT_SUPPORT_NOT_DEPLOYED; /* or also typecast and nillable */
- }
- }
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 1300:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorOrder), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SignalPulseDuration)] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gLFA_EVFinePositioningSetupParametersType->SensorOrder.arrayLen < v2gLFA_EVFinePositioningSetupParametersType_SensorOrder_ARRAY_SIZE) {
- /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(errn == 0) {
- if(eventCode == 0) {
- errn = decodeNBitUnsignedInteger(stream, 8, &(uint32));
- v2gLFA_EVFinePositioningSetupParametersType->SensorOrder.array[v2gLFA_EVFinePositioningSetupParametersType->SensorOrder.arrayLen] = (uint8_t)(uint32 + 0);
- v2gLFA_EVFinePositioningSetupParametersType->SensorOrder.arrayLen++;
- } else {
- /* Second level event (e.g., xsi:type, xsi:nil, ...) */
- errn = EXI_UNSUPPORTED_EVENT_CODE_CHARACTERISTICS;
- }
- }
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- if(errn == 0) {
- /* valid EE for simple element START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorOrder) ? */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(eventCode == 0) {
- grammarID = 1301;
- } else {
- errn = EXI_DEVIANT_SUPPORT_NOT_DEPLOYED; /* or also typecast and nillable */
- }
- }
- break;
- case 1:
- /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(errn == 0) {
- if(eventCode == 0) {
- errn = decodeNBitUnsignedInteger(stream, 8, &(uint32));
- v2gLFA_EVFinePositioningSetupParametersType->SignalPulseDuration = (uint8_t)(uint32 + 0);
- } 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({urn:iso:15118:2:2016:MsgDataTypes}SignalPulseDuration) ? */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(eventCode == 0) {
- grammarID = 1242;
- } else {
- errn = EXI_DEVIANT_SUPPORT_NOT_DEPLOYED; /* or also typecast and nillable */
- }
- }
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 1301:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorOrder), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SignalPulseDuration)] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gLFA_EVFinePositioningSetupParametersType->SensorOrder.arrayLen < v2gLFA_EVFinePositioningSetupParametersType_SensorOrder_ARRAY_SIZE) {
- /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(errn == 0) {
- if(eventCode == 0) {
- errn = decodeNBitUnsignedInteger(stream, 8, &(uint32));
- v2gLFA_EVFinePositioningSetupParametersType->SensorOrder.array[v2gLFA_EVFinePositioningSetupParametersType->SensorOrder.arrayLen] = (uint8_t)(uint32 + 0);
- v2gLFA_EVFinePositioningSetupParametersType->SensorOrder.arrayLen++;
- } else {
- /* Second level event (e.g., xsi:type, xsi:nil, ...) */
- errn = EXI_UNSUPPORTED_EVENT_CODE_CHARACTERISTICS;
- }
- }
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- if(errn == 0) {
- /* valid EE for simple element START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorOrder) ? */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(eventCode == 0) {
- grammarID = 1302;
- } else {
- errn = EXI_DEVIANT_SUPPORT_NOT_DEPLOYED; /* or also typecast and nillable */
- }
- }
- break;
- case 1:
- /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(errn == 0) {
- if(eventCode == 0) {
- errn = decodeNBitUnsignedInteger(stream, 8, &(uint32));
- v2gLFA_EVFinePositioningSetupParametersType->SignalPulseDuration = (uint8_t)(uint32 + 0);
- } 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({urn:iso:15118:2:2016:MsgDataTypes}SignalPulseDuration) ? */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(eventCode == 0) {
- grammarID = 1242;
- } else {
- errn = EXI_DEVIANT_SUPPORT_NOT_DEPLOYED; /* or also typecast and nillable */
- }
- }
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 1302:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorOrder), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SignalPulseDuration)] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gLFA_EVFinePositioningSetupParametersType->SensorOrder.arrayLen < v2gLFA_EVFinePositioningSetupParametersType_SensorOrder_ARRAY_SIZE) {
- /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(errn == 0) {
- if(eventCode == 0) {
- errn = decodeNBitUnsignedInteger(stream, 8, &(uint32));
- v2gLFA_EVFinePositioningSetupParametersType->SensorOrder.array[v2gLFA_EVFinePositioningSetupParametersType->SensorOrder.arrayLen] = (uint8_t)(uint32 + 0);
- v2gLFA_EVFinePositioningSetupParametersType->SensorOrder.arrayLen++;
- } else {
- /* Second level event (e.g., xsi:type, xsi:nil, ...) */
- errn = EXI_UNSUPPORTED_EVENT_CODE_CHARACTERISTICS;
- }
- }
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- if(errn == 0) {
- /* valid EE for simple element START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorOrder) ? */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(eventCode == 0) {
- grammarID = 1303;
- } else {
- errn = EXI_DEVIANT_SUPPORT_NOT_DEPLOYED; /* or also typecast and nillable */
- }
- }
- break;
- case 1:
- /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(errn == 0) {
- if(eventCode == 0) {
- errn = decodeNBitUnsignedInteger(stream, 8, &(uint32));
- v2gLFA_EVFinePositioningSetupParametersType->SignalPulseDuration = (uint8_t)(uint32 + 0);
- } 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({urn:iso:15118:2:2016:MsgDataTypes}SignalPulseDuration) ? */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(eventCode == 0) {
- grammarID = 1242;
- } else {
- errn = EXI_DEVIANT_SUPPORT_NOT_DEPLOYED; /* or also typecast and nillable */
- }
- }
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 1303:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorOrder), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SignalPulseDuration)] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gLFA_EVFinePositioningSetupParametersType->SensorOrder.arrayLen < v2gLFA_EVFinePositioningSetupParametersType_SensorOrder_ARRAY_SIZE) {
- /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(errn == 0) {
- if(eventCode == 0) {
- errn = decodeNBitUnsignedInteger(stream, 8, &(uint32));
- v2gLFA_EVFinePositioningSetupParametersType->SensorOrder.array[v2gLFA_EVFinePositioningSetupParametersType->SensorOrder.arrayLen] = (uint8_t)(uint32 + 0);
- v2gLFA_EVFinePositioningSetupParametersType->SensorOrder.arrayLen++;
- } else {
- /* Second level event (e.g., xsi:type, xsi:nil, ...) */
- errn = EXI_UNSUPPORTED_EVENT_CODE_CHARACTERISTICS;
- }
- }
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- if(errn == 0) {
- /* valid EE for simple element START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorOrder) ? */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(eventCode == 0) {
- grammarID = 1304;
- } else {
- errn = EXI_DEVIANT_SUPPORT_NOT_DEPLOYED; /* or also typecast and nillable */
- }
- }
- break;
- case 1:
- /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(errn == 0) {
- if(eventCode == 0) {
- errn = decodeNBitUnsignedInteger(stream, 8, &(uint32));
- v2gLFA_EVFinePositioningSetupParametersType->SignalPulseDuration = (uint8_t)(uint32 + 0);
- } 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({urn:iso:15118:2:2016:MsgDataTypes}SignalPulseDuration) ? */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(eventCode == 0) {
- grammarID = 1242;
- } else {
- errn = EXI_DEVIANT_SUPPORT_NOT_DEPLOYED; /* or also typecast and nillable */
- }
- }
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 1304:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorOrder), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SignalPulseDuration)] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gLFA_EVFinePositioningSetupParametersType->SensorOrder.arrayLen < v2gLFA_EVFinePositioningSetupParametersType_SensorOrder_ARRAY_SIZE) {
- /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(errn == 0) {
- if(eventCode == 0) {
- errn = decodeNBitUnsignedInteger(stream, 8, &(uint32));
- v2gLFA_EVFinePositioningSetupParametersType->SensorOrder.array[v2gLFA_EVFinePositioningSetupParametersType->SensorOrder.arrayLen] = (uint8_t)(uint32 + 0);
- v2gLFA_EVFinePositioningSetupParametersType->SensorOrder.arrayLen++;
- } else {
- /* Second level event (e.g., xsi:type, xsi:nil, ...) */
- errn = EXI_UNSUPPORTED_EVENT_CODE_CHARACTERISTICS;
- }
- }
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- if(errn == 0) {
- /* valid EE for simple element START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorOrder) ? */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(eventCode == 0) {
- grammarID = 1305;
- } else {
- errn = EXI_DEVIANT_SUPPORT_NOT_DEPLOYED; /* or also typecast and nillable */
- }
- }
- break;
- case 1:
- /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(errn == 0) {
- if(eventCode == 0) {
- errn = decodeNBitUnsignedInteger(stream, 8, &(uint32));
- v2gLFA_EVFinePositioningSetupParametersType->SignalPulseDuration = (uint8_t)(uint32 + 0);
- } 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({urn:iso:15118:2:2016:MsgDataTypes}SignalPulseDuration) ? */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(eventCode == 0) {
- grammarID = 1242;
- } else {
- errn = EXI_DEVIANT_SUPPORT_NOT_DEPLOYED; /* or also typecast and nillable */
- }
- }
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 1305:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorOrder), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SignalPulseDuration)] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gLFA_EVFinePositioningSetupParametersType->SensorOrder.arrayLen < v2gLFA_EVFinePositioningSetupParametersType_SensorOrder_ARRAY_SIZE) {
- /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(errn == 0) {
- if(eventCode == 0) {
- errn = decodeNBitUnsignedInteger(stream, 8, &(uint32));
- v2gLFA_EVFinePositioningSetupParametersType->SensorOrder.array[v2gLFA_EVFinePositioningSetupParametersType->SensorOrder.arrayLen] = (uint8_t)(uint32 + 0);
- v2gLFA_EVFinePositioningSetupParametersType->SensorOrder.arrayLen++;
- } else {
- /* Second level event (e.g., xsi:type, xsi:nil, ...) */
- errn = EXI_UNSUPPORTED_EVENT_CODE_CHARACTERISTICS;
- }
- }
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- if(errn == 0) {
- /* valid EE for simple element START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorOrder) ? */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(eventCode == 0) {
- grammarID = 1306;
- } else {
- errn = EXI_DEVIANT_SUPPORT_NOT_DEPLOYED; /* or also typecast and nillable */
- }
- }
- break;
- case 1:
- /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(errn == 0) {
- if(eventCode == 0) {
- errn = decodeNBitUnsignedInteger(stream, 8, &(uint32));
- v2gLFA_EVFinePositioningSetupParametersType->SignalPulseDuration = (uint8_t)(uint32 + 0);
- } 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({urn:iso:15118:2:2016:MsgDataTypes}SignalPulseDuration) ? */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(eventCode == 0) {
- grammarID = 1242;
- } else {
- errn = EXI_DEVIANT_SUPPORT_NOT_DEPLOYED; /* or also typecast and nillable */
- }
- }
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 1306:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorOrder), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SignalPulseDuration)] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gLFA_EVFinePositioningSetupParametersType->SensorOrder.arrayLen < v2gLFA_EVFinePositioningSetupParametersType_SensorOrder_ARRAY_SIZE) {
- /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(errn == 0) {
- if(eventCode == 0) {
- errn = decodeNBitUnsignedInteger(stream, 8, &(uint32));
- v2gLFA_EVFinePositioningSetupParametersType->SensorOrder.array[v2gLFA_EVFinePositioningSetupParametersType->SensorOrder.arrayLen] = (uint8_t)(uint32 + 0);
- v2gLFA_EVFinePositioningSetupParametersType->SensorOrder.arrayLen++;
- } else {
- /* Second level event (e.g., xsi:type, xsi:nil, ...) */
- errn = EXI_UNSUPPORTED_EVENT_CODE_CHARACTERISTICS;
- }
- }
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- if(errn == 0) {
- /* valid EE for simple element START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorOrder) ? */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(eventCode == 0) {
- grammarID = 1307;
- } else {
- errn = EXI_DEVIANT_SUPPORT_NOT_DEPLOYED; /* or also typecast and nillable */
- }
- }
- break;
- case 1:
- /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(errn == 0) {
- if(eventCode == 0) {
- errn = decodeNBitUnsignedInteger(stream, 8, &(uint32));
- v2gLFA_EVFinePositioningSetupParametersType->SignalPulseDuration = (uint8_t)(uint32 + 0);
- } 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({urn:iso:15118:2:2016:MsgDataTypes}SignalPulseDuration) ? */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(eventCode == 0) {
- grammarID = 1242;
- } else {
- errn = EXI_DEVIANT_SUPPORT_NOT_DEPLOYED; /* or also typecast and nillable */
- }
- }
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 1307:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorOrder), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SignalPulseDuration)] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gLFA_EVFinePositioningSetupParametersType->SensorOrder.arrayLen < v2gLFA_EVFinePositioningSetupParametersType_SensorOrder_ARRAY_SIZE) {
- /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(errn == 0) {
- if(eventCode == 0) {
- errn = decodeNBitUnsignedInteger(stream, 8, &(uint32));
- v2gLFA_EVFinePositioningSetupParametersType->SensorOrder.array[v2gLFA_EVFinePositioningSetupParametersType->SensorOrder.arrayLen] = (uint8_t)(uint32 + 0);
- v2gLFA_EVFinePositioningSetupParametersType->SensorOrder.arrayLen++;
- } else {
- /* Second level event (e.g., xsi:type, xsi:nil, ...) */
- errn = EXI_UNSUPPORTED_EVENT_CODE_CHARACTERISTICS;
- }
- }
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- if(errn == 0) {
- /* valid EE for simple element START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorOrder) ? */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(eventCode == 0) {
- grammarID = 1308;
- } else {
- errn = EXI_DEVIANT_SUPPORT_NOT_DEPLOYED; /* or also typecast and nillable */
- }
- }
- break;
- case 1:
- /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(errn == 0) {
- if(eventCode == 0) {
- errn = decodeNBitUnsignedInteger(stream, 8, &(uint32));
- v2gLFA_EVFinePositioningSetupParametersType->SignalPulseDuration = (uint8_t)(uint32 + 0);
- } 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({urn:iso:15118:2:2016:MsgDataTypes}SignalPulseDuration) ? */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(eventCode == 0) {
- grammarID = 1242;
- } else {
- errn = EXI_DEVIANT_SUPPORT_NOT_DEPLOYED; /* or also typecast and nillable */
- }
- }
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 1308:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorOrder), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SignalPulseDuration)] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gLFA_EVFinePositioningSetupParametersType->SensorOrder.arrayLen < v2gLFA_EVFinePositioningSetupParametersType_SensorOrder_ARRAY_SIZE) {
- /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(errn == 0) {
- if(eventCode == 0) {
- errn = decodeNBitUnsignedInteger(stream, 8, &(uint32));
- v2gLFA_EVFinePositioningSetupParametersType->SensorOrder.array[v2gLFA_EVFinePositioningSetupParametersType->SensorOrder.arrayLen] = (uint8_t)(uint32 + 0);
- v2gLFA_EVFinePositioningSetupParametersType->SensorOrder.arrayLen++;
- } else {
- /* Second level event (e.g., xsi:type, xsi:nil, ...) */
- errn = EXI_UNSUPPORTED_EVENT_CODE_CHARACTERISTICS;
- }
- }
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- if(errn == 0) {
- /* valid EE for simple element START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorOrder) ? */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(eventCode == 0) {
- grammarID = 1309;
- } else {
- errn = EXI_DEVIANT_SUPPORT_NOT_DEPLOYED; /* or also typecast and nillable */
- }
- }
- break;
- case 1:
- /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(errn == 0) {
- if(eventCode == 0) {
- errn = decodeNBitUnsignedInteger(stream, 8, &(uint32));
- v2gLFA_EVFinePositioningSetupParametersType->SignalPulseDuration = (uint8_t)(uint32 + 0);
- } 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({urn:iso:15118:2:2016:MsgDataTypes}SignalPulseDuration) ? */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(eventCode == 0) {
- grammarID = 1242;
- } else {
- errn = EXI_DEVIANT_SUPPORT_NOT_DEPLOYED; /* or also typecast and nillable */
- }
- }
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 1309:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorOrder), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SignalPulseDuration)] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gLFA_EVFinePositioningSetupParametersType->SensorOrder.arrayLen < v2gLFA_EVFinePositioningSetupParametersType_SensorOrder_ARRAY_SIZE) {
- /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(errn == 0) {
- if(eventCode == 0) {
- errn = decodeNBitUnsignedInteger(stream, 8, &(uint32));
- v2gLFA_EVFinePositioningSetupParametersType->SensorOrder.array[v2gLFA_EVFinePositioningSetupParametersType->SensorOrder.arrayLen] = (uint8_t)(uint32 + 0);
- v2gLFA_EVFinePositioningSetupParametersType->SensorOrder.arrayLen++;
- } else {
- /* Second level event (e.g., xsi:type, xsi:nil, ...) */
- errn = EXI_UNSUPPORTED_EVENT_CODE_CHARACTERISTICS;
- }
- }
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- if(errn == 0) {
- /* valid EE for simple element START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorOrder) ? */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(eventCode == 0) {
- grammarID = 1310;
- } else {
- errn = EXI_DEVIANT_SUPPORT_NOT_DEPLOYED; /* or also typecast and nillable */
- }
- }
- break;
- case 1:
- /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(errn == 0) {
- if(eventCode == 0) {
- errn = decodeNBitUnsignedInteger(stream, 8, &(uint32));
- v2gLFA_EVFinePositioningSetupParametersType->SignalPulseDuration = (uint8_t)(uint32 + 0);
- } 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({urn:iso:15118:2:2016:MsgDataTypes}SignalPulseDuration) ? */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(eventCode == 0) {
- grammarID = 1242;
- } else {
- errn = EXI_DEVIANT_SUPPORT_NOT_DEPLOYED; /* or also typecast and nillable */
- }
- }
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 1310:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorOrder), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SignalPulseDuration)] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gLFA_EVFinePositioningSetupParametersType->SensorOrder.arrayLen < v2gLFA_EVFinePositioningSetupParametersType_SensorOrder_ARRAY_SIZE) {
- /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(errn == 0) {
- if(eventCode == 0) {
- errn = decodeNBitUnsignedInteger(stream, 8, &(uint32));
- v2gLFA_EVFinePositioningSetupParametersType->SensorOrder.array[v2gLFA_EVFinePositioningSetupParametersType->SensorOrder.arrayLen] = (uint8_t)(uint32 + 0);
- v2gLFA_EVFinePositioningSetupParametersType->SensorOrder.arrayLen++;
- } else {
- /* Second level event (e.g., xsi:type, xsi:nil, ...) */
- errn = EXI_UNSUPPORTED_EVENT_CODE_CHARACTERISTICS;
- }
- }
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- if(errn == 0) {
- /* valid EE for simple element START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorOrder) ? */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(eventCode == 0) {
- grammarID = 1311;
- } else {
- errn = EXI_DEVIANT_SUPPORT_NOT_DEPLOYED; /* or also typecast and nillable */
- }
- }
- break;
- case 1:
- /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(errn == 0) {
- if(eventCode == 0) {
- errn = decodeNBitUnsignedInteger(stream, 8, &(uint32));
- v2gLFA_EVFinePositioningSetupParametersType->SignalPulseDuration = (uint8_t)(uint32 + 0);
- } 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({urn:iso:15118:2:2016:MsgDataTypes}SignalPulseDuration) ? */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(eventCode == 0) {
- grammarID = 1242;
- } else {
- errn = EXI_DEVIANT_SUPPORT_NOT_DEPLOYED; /* or also typecast and nillable */
- }
- }
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 1311:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorOrder), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SignalPulseDuration)] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gLFA_EVFinePositioningSetupParametersType->SensorOrder.arrayLen < v2gLFA_EVFinePositioningSetupParametersType_SensorOrder_ARRAY_SIZE) {
- /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(errn == 0) {
- if(eventCode == 0) {
- errn = decodeNBitUnsignedInteger(stream, 8, &(uint32));
- v2gLFA_EVFinePositioningSetupParametersType->SensorOrder.array[v2gLFA_EVFinePositioningSetupParametersType->SensorOrder.arrayLen] = (uint8_t)(uint32 + 0);
- v2gLFA_EVFinePositioningSetupParametersType->SensorOrder.arrayLen++;
- } else {
- /* Second level event (e.g., xsi:type, xsi:nil, ...) */
- errn = EXI_UNSUPPORTED_EVENT_CODE_CHARACTERISTICS;
- }
- }
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- if(errn == 0) {
- /* valid EE for simple element START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorOrder) ? */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(eventCode == 0) {
- grammarID = 1312;
- } else {
- errn = EXI_DEVIANT_SUPPORT_NOT_DEPLOYED; /* or also typecast and nillable */
- }
- }
- break;
- case 1:
- /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(errn == 0) {
- if(eventCode == 0) {
- errn = decodeNBitUnsignedInteger(stream, 8, &(uint32));
- v2gLFA_EVFinePositioningSetupParametersType->SignalPulseDuration = (uint8_t)(uint32 + 0);
- } 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({urn:iso:15118:2:2016:MsgDataTypes}SignalPulseDuration) ? */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(eventCode == 0) {
- grammarID = 1242;
- } else {
- errn = EXI_DEVIANT_SUPPORT_NOT_DEPLOYED; /* or also typecast and nillable */
- }
- }
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 1312:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorOrder), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SignalPulseDuration)] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gLFA_EVFinePositioningSetupParametersType->SensorOrder.arrayLen < v2gLFA_EVFinePositioningSetupParametersType_SensorOrder_ARRAY_SIZE) {
- /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(errn == 0) {
- if(eventCode == 0) {
- errn = decodeNBitUnsignedInteger(stream, 8, &(uint32));
- v2gLFA_EVFinePositioningSetupParametersType->SensorOrder.array[v2gLFA_EVFinePositioningSetupParametersType->SensorOrder.arrayLen] = (uint8_t)(uint32 + 0);
- v2gLFA_EVFinePositioningSetupParametersType->SensorOrder.arrayLen++;
- } else {
- /* Second level event (e.g., xsi:type, xsi:nil, ...) */
- errn = EXI_UNSUPPORTED_EVENT_CODE_CHARACTERISTICS;
- }
- }
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- if(errn == 0) {
- /* valid EE for simple element START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorOrder) ? */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(eventCode == 0) {
- grammarID = 1313;
- } else {
- errn = EXI_DEVIANT_SUPPORT_NOT_DEPLOYED; /* or also typecast and nillable */
- }
- }
- break;
- case 1:
- /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(errn == 0) {
- if(eventCode == 0) {
- errn = decodeNBitUnsignedInteger(stream, 8, &(uint32));
- v2gLFA_EVFinePositioningSetupParametersType->SignalPulseDuration = (uint8_t)(uint32 + 0);
- } 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({urn:iso:15118:2:2016:MsgDataTypes}SignalPulseDuration) ? */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(eventCode == 0) {
- grammarID = 1242;
- } else {
- errn = EXI_DEVIANT_SUPPORT_NOT_DEPLOYED; /* or also typecast and nillable */
- }
- }
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 1313:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorOrder), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SignalPulseDuration)] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gLFA_EVFinePositioningSetupParametersType->SensorOrder.arrayLen < v2gLFA_EVFinePositioningSetupParametersType_SensorOrder_ARRAY_SIZE) {
- /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(errn == 0) {
- if(eventCode == 0) {
- errn = decodeNBitUnsignedInteger(stream, 8, &(uint32));
- v2gLFA_EVFinePositioningSetupParametersType->SensorOrder.array[v2gLFA_EVFinePositioningSetupParametersType->SensorOrder.arrayLen] = (uint8_t)(uint32 + 0);
- v2gLFA_EVFinePositioningSetupParametersType->SensorOrder.arrayLen++;
- } else {
- /* Second level event (e.g., xsi:type, xsi:nil, ...) */
- errn = EXI_UNSUPPORTED_EVENT_CODE_CHARACTERISTICS;
- }
- }
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- if(errn == 0) {
- /* valid EE for simple element START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorOrder) ? */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(eventCode == 0) {
- grammarID = 1314;
- } else {
- errn = EXI_DEVIANT_SUPPORT_NOT_DEPLOYED; /* or also typecast and nillable */
- }
- }
- break;
- case 1:
- /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(errn == 0) {
- if(eventCode == 0) {
- errn = decodeNBitUnsignedInteger(stream, 8, &(uint32));
- v2gLFA_EVFinePositioningSetupParametersType->SignalPulseDuration = (uint8_t)(uint32 + 0);
- } 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({urn:iso:15118:2:2016:MsgDataTypes}SignalPulseDuration) ? */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(eventCode == 0) {
- grammarID = 1242;
- } else {
- errn = EXI_DEVIANT_SUPPORT_NOT_DEPLOYED; /* or also typecast and nillable */
- }
- }
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 1314:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorOrder), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SignalPulseDuration)] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gLFA_EVFinePositioningSetupParametersType->SensorOrder.arrayLen < v2gLFA_EVFinePositioningSetupParametersType_SensorOrder_ARRAY_SIZE) {
- /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(errn == 0) {
- if(eventCode == 0) {
- errn = decodeNBitUnsignedInteger(stream, 8, &(uint32));
- v2gLFA_EVFinePositioningSetupParametersType->SensorOrder.array[v2gLFA_EVFinePositioningSetupParametersType->SensorOrder.arrayLen] = (uint8_t)(uint32 + 0);
- v2gLFA_EVFinePositioningSetupParametersType->SensorOrder.arrayLen++;
- } else {
- /* Second level event (e.g., xsi:type, xsi:nil, ...) */
- errn = EXI_UNSUPPORTED_EVENT_CODE_CHARACTERISTICS;
- }
- }
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- if(errn == 0) {
- /* valid EE for simple element START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorOrder) ? */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(eventCode == 0) {
- grammarID = 1315;
- } else {
- errn = EXI_DEVIANT_SUPPORT_NOT_DEPLOYED; /* or also typecast and nillable */
- }
- }
- break;
- case 1:
- /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(errn == 0) {
- if(eventCode == 0) {
- errn = decodeNBitUnsignedInteger(stream, 8, &(uint32));
- v2gLFA_EVFinePositioningSetupParametersType->SignalPulseDuration = (uint8_t)(uint32 + 0);
- } 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({urn:iso:15118:2:2016:MsgDataTypes}SignalPulseDuration) ? */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(eventCode == 0) {
- grammarID = 1242;
- } else {
- errn = EXI_DEVIANT_SUPPORT_NOT_DEPLOYED; /* or also typecast and nillable */
- }
- }
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 1315:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorOrder), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SignalPulseDuration)] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gLFA_EVFinePositioningSetupParametersType->SensorOrder.arrayLen < v2gLFA_EVFinePositioningSetupParametersType_SensorOrder_ARRAY_SIZE) {
- /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(errn == 0) {
- if(eventCode == 0) {
- errn = decodeNBitUnsignedInteger(stream, 8, &(uint32));
- v2gLFA_EVFinePositioningSetupParametersType->SensorOrder.array[v2gLFA_EVFinePositioningSetupParametersType->SensorOrder.arrayLen] = (uint8_t)(uint32 + 0);
- v2gLFA_EVFinePositioningSetupParametersType->SensorOrder.arrayLen++;
- } else {
- /* Second level event (e.g., xsi:type, xsi:nil, ...) */
- errn = EXI_UNSUPPORTED_EVENT_CODE_CHARACTERISTICS;
- }
- }
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- if(errn == 0) {
- /* valid EE for simple element START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorOrder) ? */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(eventCode == 0) {
- grammarID = 1316;
- } else {
- errn = EXI_DEVIANT_SUPPORT_NOT_DEPLOYED; /* or also typecast and nillable */
- }
- }
- break;
- case 1:
- /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(errn == 0) {
- if(eventCode == 0) {
- errn = decodeNBitUnsignedInteger(stream, 8, &(uint32));
- v2gLFA_EVFinePositioningSetupParametersType->SignalPulseDuration = (uint8_t)(uint32 + 0);
- } 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({urn:iso:15118:2:2016:MsgDataTypes}SignalPulseDuration) ? */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(eventCode == 0) {
- grammarID = 1242;
- } else {
- errn = EXI_DEVIANT_SUPPORT_NOT_DEPLOYED; /* or also typecast and nillable */
- }
- }
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 1316:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorOrder), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SignalPulseDuration)] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gLFA_EVFinePositioningSetupParametersType->SensorOrder.arrayLen < v2gLFA_EVFinePositioningSetupParametersType_SensorOrder_ARRAY_SIZE) {
- /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(errn == 0) {
- if(eventCode == 0) {
- errn = decodeNBitUnsignedInteger(stream, 8, &(uint32));
- v2gLFA_EVFinePositioningSetupParametersType->SensorOrder.array[v2gLFA_EVFinePositioningSetupParametersType->SensorOrder.arrayLen] = (uint8_t)(uint32 + 0);
- v2gLFA_EVFinePositioningSetupParametersType->SensorOrder.arrayLen++;
- } else {
- /* Second level event (e.g., xsi:type, xsi:nil, ...) */
- errn = EXI_UNSUPPORTED_EVENT_CODE_CHARACTERISTICS;
- }
- }
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- if(errn == 0) {
- /* valid EE for simple element START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorOrder) ? */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(eventCode == 0) {
- grammarID = 1317;
- } else {
- errn = EXI_DEVIANT_SUPPORT_NOT_DEPLOYED; /* or also typecast and nillable */
- }
- }
- break;
- case 1:
- /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(errn == 0) {
- if(eventCode == 0) {
- errn = decodeNBitUnsignedInteger(stream, 8, &(uint32));
- v2gLFA_EVFinePositioningSetupParametersType->SignalPulseDuration = (uint8_t)(uint32 + 0);
- } 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({urn:iso:15118:2:2016:MsgDataTypes}SignalPulseDuration) ? */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(eventCode == 0) {
- grammarID = 1242;
- } else {
- errn = EXI_DEVIANT_SUPPORT_NOT_DEPLOYED; /* or also typecast and nillable */
- }
- }
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 1317:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorOrder), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SignalPulseDuration)] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gLFA_EVFinePositioningSetupParametersType->SensorOrder.arrayLen < v2gLFA_EVFinePositioningSetupParametersType_SensorOrder_ARRAY_SIZE) {
- /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(errn == 0) {
- if(eventCode == 0) {
- errn = decodeNBitUnsignedInteger(stream, 8, &(uint32));
- v2gLFA_EVFinePositioningSetupParametersType->SensorOrder.array[v2gLFA_EVFinePositioningSetupParametersType->SensorOrder.arrayLen] = (uint8_t)(uint32 + 0);
- v2gLFA_EVFinePositioningSetupParametersType->SensorOrder.arrayLen++;
- } else {
- /* Second level event (e.g., xsi:type, xsi:nil, ...) */
- errn = EXI_UNSUPPORTED_EVENT_CODE_CHARACTERISTICS;
- }
- }
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- if(errn == 0) {
- /* valid EE for simple element START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorOrder) ? */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(eventCode == 0) {
- grammarID = 1318;
- } else {
- errn = EXI_DEVIANT_SUPPORT_NOT_DEPLOYED; /* or also typecast and nillable */
- }
- }
- break;
- case 1:
- /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(errn == 0) {
- if(eventCode == 0) {
- errn = decodeNBitUnsignedInteger(stream, 8, &(uint32));
- v2gLFA_EVFinePositioningSetupParametersType->SignalPulseDuration = (uint8_t)(uint32 + 0);
- } 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({urn:iso:15118:2:2016:MsgDataTypes}SignalPulseDuration) ? */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(eventCode == 0) {
- grammarID = 1242;
- } else {
- errn = EXI_DEVIANT_SUPPORT_NOT_DEPLOYED; /* or also typecast and nillable */
- }
- }
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 1318:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorOrder), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SignalPulseDuration)] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gLFA_EVFinePositioningSetupParametersType->SensorOrder.arrayLen < v2gLFA_EVFinePositioningSetupParametersType_SensorOrder_ARRAY_SIZE) {
- /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(errn == 0) {
- if(eventCode == 0) {
- errn = decodeNBitUnsignedInteger(stream, 8, &(uint32));
- v2gLFA_EVFinePositioningSetupParametersType->SensorOrder.array[v2gLFA_EVFinePositioningSetupParametersType->SensorOrder.arrayLen] = (uint8_t)(uint32 + 0);
- v2gLFA_EVFinePositioningSetupParametersType->SensorOrder.arrayLen++;
- } else {
- /* Second level event (e.g., xsi:type, xsi:nil, ...) */
- errn = EXI_UNSUPPORTED_EVENT_CODE_CHARACTERISTICS;
- }
- }
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- if(errn == 0) {
- /* valid EE for simple element START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorOrder) ? */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(eventCode == 0) {
- grammarID = 1319;
- } else {
- errn = EXI_DEVIANT_SUPPORT_NOT_DEPLOYED; /* or also typecast and nillable */
- }
- }
- break;
- case 1:
- /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(errn == 0) {
- if(eventCode == 0) {
- errn = decodeNBitUnsignedInteger(stream, 8, &(uint32));
- v2gLFA_EVFinePositioningSetupParametersType->SignalPulseDuration = (uint8_t)(uint32 + 0);
- } 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({urn:iso:15118:2:2016:MsgDataTypes}SignalPulseDuration) ? */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(eventCode == 0) {
- grammarID = 1242;
- } else {
- errn = EXI_DEVIANT_SUPPORT_NOT_DEPLOYED; /* or also typecast and nillable */
- }
- }
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 1319:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorOrder), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SignalPulseDuration)] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gLFA_EVFinePositioningSetupParametersType->SensorOrder.arrayLen < v2gLFA_EVFinePositioningSetupParametersType_SensorOrder_ARRAY_SIZE) {
- /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(errn == 0) {
- if(eventCode == 0) {
- errn = decodeNBitUnsignedInteger(stream, 8, &(uint32));
- v2gLFA_EVFinePositioningSetupParametersType->SensorOrder.array[v2gLFA_EVFinePositioningSetupParametersType->SensorOrder.arrayLen] = (uint8_t)(uint32 + 0);
- v2gLFA_EVFinePositioningSetupParametersType->SensorOrder.arrayLen++;
- } else {
- /* Second level event (e.g., xsi:type, xsi:nil, ...) */
- errn = EXI_UNSUPPORTED_EVENT_CODE_CHARACTERISTICS;
- }
- }
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- if(errn == 0) {
- /* valid EE for simple element START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorOrder) ? */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(eventCode == 0) {
- grammarID = 1320;
- } else {
- errn = EXI_DEVIANT_SUPPORT_NOT_DEPLOYED; /* or also typecast and nillable */
- }
- }
- break;
- case 1:
- /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(errn == 0) {
- if(eventCode == 0) {
- errn = decodeNBitUnsignedInteger(stream, 8, &(uint32));
- v2gLFA_EVFinePositioningSetupParametersType->SignalPulseDuration = (uint8_t)(uint32 + 0);
- } 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({urn:iso:15118:2:2016:MsgDataTypes}SignalPulseDuration) ? */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(eventCode == 0) {
- grammarID = 1242;
- } else {
- errn = EXI_DEVIANT_SUPPORT_NOT_DEPLOYED; /* or also typecast and nillable */
- }
- }
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 1320:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorOrder), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SignalPulseDuration)] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gLFA_EVFinePositioningSetupParametersType->SensorOrder.arrayLen < v2gLFA_EVFinePositioningSetupParametersType_SensorOrder_ARRAY_SIZE) {
- /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(errn == 0) {
- if(eventCode == 0) {
- errn = decodeNBitUnsignedInteger(stream, 8, &(uint32));
- v2gLFA_EVFinePositioningSetupParametersType->SensorOrder.array[v2gLFA_EVFinePositioningSetupParametersType->SensorOrder.arrayLen] = (uint8_t)(uint32 + 0);
- v2gLFA_EVFinePositioningSetupParametersType->SensorOrder.arrayLen++;
- } else {
- /* Second level event (e.g., xsi:type, xsi:nil, ...) */
- errn = EXI_UNSUPPORTED_EVENT_CODE_CHARACTERISTICS;
- }
- }
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- if(errn == 0) {
- /* valid EE for simple element START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorOrder) ? */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(eventCode == 0) {
- grammarID = 1321;
- } else {
- errn = EXI_DEVIANT_SUPPORT_NOT_DEPLOYED; /* or also typecast and nillable */
- }
- }
- break;
- case 1:
- /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(errn == 0) {
- if(eventCode == 0) {
- errn = decodeNBitUnsignedInteger(stream, 8, &(uint32));
- v2gLFA_EVFinePositioningSetupParametersType->SignalPulseDuration = (uint8_t)(uint32 + 0);
- } 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({urn:iso:15118:2:2016:MsgDataTypes}SignalPulseDuration) ? */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(eventCode == 0) {
- grammarID = 1242;
- } else {
- errn = EXI_DEVIANT_SUPPORT_NOT_DEPLOYED; /* or also typecast and nillable */
- }
- }
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 1321:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorOrder), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SignalPulseDuration)] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gLFA_EVFinePositioningSetupParametersType->SensorOrder.arrayLen < v2gLFA_EVFinePositioningSetupParametersType_SensorOrder_ARRAY_SIZE) {
- /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(errn == 0) {
- if(eventCode == 0) {
- errn = decodeNBitUnsignedInteger(stream, 8, &(uint32));
- v2gLFA_EVFinePositioningSetupParametersType->SensorOrder.array[v2gLFA_EVFinePositioningSetupParametersType->SensorOrder.arrayLen] = (uint8_t)(uint32 + 0);
- v2gLFA_EVFinePositioningSetupParametersType->SensorOrder.arrayLen++;
- } else {
- /* Second level event (e.g., xsi:type, xsi:nil, ...) */
- errn = EXI_UNSUPPORTED_EVENT_CODE_CHARACTERISTICS;
- }
- }
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- if(errn == 0) {
- /* valid EE for simple element START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorOrder) ? */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(eventCode == 0) {
- grammarID = 1322;
- } else {
- errn = EXI_DEVIANT_SUPPORT_NOT_DEPLOYED; /* or also typecast and nillable */
- }
- }
- break;
- case 1:
- /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(errn == 0) {
- if(eventCode == 0) {
- errn = decodeNBitUnsignedInteger(stream, 8, &(uint32));
- v2gLFA_EVFinePositioningSetupParametersType->SignalPulseDuration = (uint8_t)(uint32 + 0);
- } 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({urn:iso:15118:2:2016:MsgDataTypes}SignalPulseDuration) ? */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(eventCode == 0) {
- grammarID = 1242;
- } else {
- errn = EXI_DEVIANT_SUPPORT_NOT_DEPLOYED; /* or also typecast and nillable */
- }
- }
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 1322:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorOrder), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SignalPulseDuration)] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gLFA_EVFinePositioningSetupParametersType->SensorOrder.arrayLen < v2gLFA_EVFinePositioningSetupParametersType_SensorOrder_ARRAY_SIZE) {
- /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(errn == 0) {
- if(eventCode == 0) {
- errn = decodeNBitUnsignedInteger(stream, 8, &(uint32));
- v2gLFA_EVFinePositioningSetupParametersType->SensorOrder.array[v2gLFA_EVFinePositioningSetupParametersType->SensorOrder.arrayLen] = (uint8_t)(uint32 + 0);
- v2gLFA_EVFinePositioningSetupParametersType->SensorOrder.arrayLen++;
- } else {
- /* Second level event (e.g., xsi:type, xsi:nil, ...) */
- errn = EXI_UNSUPPORTED_EVENT_CODE_CHARACTERISTICS;
- }
- }
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- if(errn == 0) {
- /* valid EE for simple element START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorOrder) ? */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(eventCode == 0) {
- grammarID = 1323;
- } else {
- errn = EXI_DEVIANT_SUPPORT_NOT_DEPLOYED; /* or also typecast and nillable */
- }
- }
- break;
- case 1:
- /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(errn == 0) {
- if(eventCode == 0) {
- errn = decodeNBitUnsignedInteger(stream, 8, &(uint32));
- v2gLFA_EVFinePositioningSetupParametersType->SignalPulseDuration = (uint8_t)(uint32 + 0);
- } 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({urn:iso:15118:2:2016:MsgDataTypes}SignalPulseDuration) ? */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(eventCode == 0) {
- grammarID = 1242;
- } else {
- errn = EXI_DEVIANT_SUPPORT_NOT_DEPLOYED; /* or also typecast and nillable */
- }
- }
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 1323:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorOrder), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SignalPulseDuration)] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gLFA_EVFinePositioningSetupParametersType->SensorOrder.arrayLen < v2gLFA_EVFinePositioningSetupParametersType_SensorOrder_ARRAY_SIZE) {
- /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(errn == 0) {
- if(eventCode == 0) {
- errn = decodeNBitUnsignedInteger(stream, 8, &(uint32));
- v2gLFA_EVFinePositioningSetupParametersType->SensorOrder.array[v2gLFA_EVFinePositioningSetupParametersType->SensorOrder.arrayLen] = (uint8_t)(uint32 + 0);
- v2gLFA_EVFinePositioningSetupParametersType->SensorOrder.arrayLen++;
- } else {
- /* Second level event (e.g., xsi:type, xsi:nil, ...) */
- errn = EXI_UNSUPPORTED_EVENT_CODE_CHARACTERISTICS;
- }
- }
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- if(errn == 0) {
- /* valid EE for simple element START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorOrder) ? */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(eventCode == 0) {
- grammarID = 1324;
- } else {
- errn = EXI_DEVIANT_SUPPORT_NOT_DEPLOYED; /* or also typecast and nillable */
- }
- }
- break;
- case 1:
- /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(errn == 0) {
- if(eventCode == 0) {
- errn = decodeNBitUnsignedInteger(stream, 8, &(uint32));
- v2gLFA_EVFinePositioningSetupParametersType->SignalPulseDuration = (uint8_t)(uint32 + 0);
- } 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({urn:iso:15118:2:2016:MsgDataTypes}SignalPulseDuration) ? */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(eventCode == 0) {
- grammarID = 1242;
- } else {
- errn = EXI_DEVIANT_SUPPORT_NOT_DEPLOYED; /* or also typecast and nillable */
- }
- }
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 1324:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorOrder), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SignalPulseDuration)] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gLFA_EVFinePositioningSetupParametersType->SensorOrder.arrayLen < v2gLFA_EVFinePositioningSetupParametersType_SensorOrder_ARRAY_SIZE) {
- /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(errn == 0) {
- if(eventCode == 0) {
- errn = decodeNBitUnsignedInteger(stream, 8, &(uint32));
- v2gLFA_EVFinePositioningSetupParametersType->SensorOrder.array[v2gLFA_EVFinePositioningSetupParametersType->SensorOrder.arrayLen] = (uint8_t)(uint32 + 0);
- v2gLFA_EVFinePositioningSetupParametersType->SensorOrder.arrayLen++;
- } else {
- /* Second level event (e.g., xsi:type, xsi:nil, ...) */
- errn = EXI_UNSUPPORTED_EVENT_CODE_CHARACTERISTICS;
- }
- }
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- if(errn == 0) {
- /* valid EE for simple element START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorOrder) ? */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(eventCode == 0) {
- grammarID = 1325;
- } else {
- errn = EXI_DEVIANT_SUPPORT_NOT_DEPLOYED; /* or also typecast and nillable */
- }
- }
- break;
- case 1:
- /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(errn == 0) {
- if(eventCode == 0) {
- errn = decodeNBitUnsignedInteger(stream, 8, &(uint32));
- v2gLFA_EVFinePositioningSetupParametersType->SignalPulseDuration = (uint8_t)(uint32 + 0);
- } 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({urn:iso:15118:2:2016:MsgDataTypes}SignalPulseDuration) ? */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(eventCode == 0) {
- grammarID = 1242;
- } else {
- errn = EXI_DEVIANT_SUPPORT_NOT_DEPLOYED; /* or also typecast and nillable */
- }
- }
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 1325:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorOrder), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SignalPulseDuration)] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gLFA_EVFinePositioningSetupParametersType->SensorOrder.arrayLen < v2gLFA_EVFinePositioningSetupParametersType_SensorOrder_ARRAY_SIZE) {
- /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(errn == 0) {
- if(eventCode == 0) {
- errn = decodeNBitUnsignedInteger(stream, 8, &(uint32));
- v2gLFA_EVFinePositioningSetupParametersType->SensorOrder.array[v2gLFA_EVFinePositioningSetupParametersType->SensorOrder.arrayLen] = (uint8_t)(uint32 + 0);
- v2gLFA_EVFinePositioningSetupParametersType->SensorOrder.arrayLen++;
- } else {
- /* Second level event (e.g., xsi:type, xsi:nil, ...) */
- errn = EXI_UNSUPPORTED_EVENT_CODE_CHARACTERISTICS;
- }
- }
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- if(errn == 0) {
- /* valid EE for simple element START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorOrder) ? */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(eventCode == 0) {
- grammarID = 1326;
- } else {
- errn = EXI_DEVIANT_SUPPORT_NOT_DEPLOYED; /* or also typecast and nillable */
- }
- }
- break;
- case 1:
- /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(errn == 0) {
- if(eventCode == 0) {
- errn = decodeNBitUnsignedInteger(stream, 8, &(uint32));
- v2gLFA_EVFinePositioningSetupParametersType->SignalPulseDuration = (uint8_t)(uint32 + 0);
- } 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({urn:iso:15118:2:2016:MsgDataTypes}SignalPulseDuration) ? */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(eventCode == 0) {
- grammarID = 1242;
- } else {
- errn = EXI_DEVIANT_SUPPORT_NOT_DEPLOYED; /* or also typecast and nillable */
- }
- }
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 1326:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorOrder), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SignalPulseDuration)] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gLFA_EVFinePositioningSetupParametersType->SensorOrder.arrayLen < v2gLFA_EVFinePositioningSetupParametersType_SensorOrder_ARRAY_SIZE) {
- /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(errn == 0) {
- if(eventCode == 0) {
- errn = decodeNBitUnsignedInteger(stream, 8, &(uint32));
- v2gLFA_EVFinePositioningSetupParametersType->SensorOrder.array[v2gLFA_EVFinePositioningSetupParametersType->SensorOrder.arrayLen] = (uint8_t)(uint32 + 0);
- v2gLFA_EVFinePositioningSetupParametersType->SensorOrder.arrayLen++;
- } else {
- /* Second level event (e.g., xsi:type, xsi:nil, ...) */
- errn = EXI_UNSUPPORTED_EVENT_CODE_CHARACTERISTICS;
- }
- }
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- if(errn == 0) {
- /* valid EE for simple element START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorOrder) ? */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(eventCode == 0) {
- grammarID = 1327;
- } else {
- errn = EXI_DEVIANT_SUPPORT_NOT_DEPLOYED; /* or also typecast and nillable */
- }
- }
- break;
- case 1:
- /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(errn == 0) {
- if(eventCode == 0) {
- errn = decodeNBitUnsignedInteger(stream, 8, &(uint32));
- v2gLFA_EVFinePositioningSetupParametersType->SignalPulseDuration = (uint8_t)(uint32 + 0);
- } 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({urn:iso:15118:2:2016:MsgDataTypes}SignalPulseDuration) ? */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(eventCode == 0) {
- grammarID = 1242;
- } else {
- errn = EXI_DEVIANT_SUPPORT_NOT_DEPLOYED; /* or also typecast and nillable */
- }
- }
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 1327:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorOrder), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SignalPulseDuration)] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gLFA_EVFinePositioningSetupParametersType->SensorOrder.arrayLen < v2gLFA_EVFinePositioningSetupParametersType_SensorOrder_ARRAY_SIZE) {
- /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(errn == 0) {
- if(eventCode == 0) {
- errn = decodeNBitUnsignedInteger(stream, 8, &(uint32));
- v2gLFA_EVFinePositioningSetupParametersType->SensorOrder.array[v2gLFA_EVFinePositioningSetupParametersType->SensorOrder.arrayLen] = (uint8_t)(uint32 + 0);
- v2gLFA_EVFinePositioningSetupParametersType->SensorOrder.arrayLen++;
- } else {
- /* Second level event (e.g., xsi:type, xsi:nil, ...) */
- errn = EXI_UNSUPPORTED_EVENT_CODE_CHARACTERISTICS;
- }
- }
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- if(errn == 0) {
- /* valid EE for simple element START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorOrder) ? */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(eventCode == 0) {
- grammarID = 1328;
- } else {
- errn = EXI_DEVIANT_SUPPORT_NOT_DEPLOYED; /* or also typecast and nillable */
- }
- }
- break;
- case 1:
- /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(errn == 0) {
- if(eventCode == 0) {
- errn = decodeNBitUnsignedInteger(stream, 8, &(uint32));
- v2gLFA_EVFinePositioningSetupParametersType->SignalPulseDuration = (uint8_t)(uint32 + 0);
- } 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({urn:iso:15118:2:2016:MsgDataTypes}SignalPulseDuration) ? */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(eventCode == 0) {
- grammarID = 1242;
- } else {
- errn = EXI_DEVIANT_SUPPORT_NOT_DEPLOYED; /* or also typecast and nillable */
- }
- }
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 1328:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorOrder), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SignalPulseDuration)] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gLFA_EVFinePositioningSetupParametersType->SensorOrder.arrayLen < v2gLFA_EVFinePositioningSetupParametersType_SensorOrder_ARRAY_SIZE) {
- /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(errn == 0) {
- if(eventCode == 0) {
- errn = decodeNBitUnsignedInteger(stream, 8, &(uint32));
- v2gLFA_EVFinePositioningSetupParametersType->SensorOrder.array[v2gLFA_EVFinePositioningSetupParametersType->SensorOrder.arrayLen] = (uint8_t)(uint32 + 0);
- v2gLFA_EVFinePositioningSetupParametersType->SensorOrder.arrayLen++;
- } else {
- /* Second level event (e.g., xsi:type, xsi:nil, ...) */
- errn = EXI_UNSUPPORTED_EVENT_CODE_CHARACTERISTICS;
- }
- }
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- if(errn == 0) {
- /* valid EE for simple element START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorOrder) ? */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(eventCode == 0) {
- grammarID = 1329;
- } else {
- errn = EXI_DEVIANT_SUPPORT_NOT_DEPLOYED; /* or also typecast and nillable */
- }
- }
- break;
- case 1:
- /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(errn == 0) {
- if(eventCode == 0) {
- errn = decodeNBitUnsignedInteger(stream, 8, &(uint32));
- v2gLFA_EVFinePositioningSetupParametersType->SignalPulseDuration = (uint8_t)(uint32 + 0);
- } 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({urn:iso:15118:2:2016:MsgDataTypes}SignalPulseDuration) ? */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(eventCode == 0) {
- grammarID = 1242;
- } else {
- errn = EXI_DEVIANT_SUPPORT_NOT_DEPLOYED; /* or also typecast and nillable */
- }
- }
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 1329:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorOrder), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SignalPulseDuration)] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gLFA_EVFinePositioningSetupParametersType->SensorOrder.arrayLen < v2gLFA_EVFinePositioningSetupParametersType_SensorOrder_ARRAY_SIZE) {
- /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(errn == 0) {
- if(eventCode == 0) {
- errn = decodeNBitUnsignedInteger(stream, 8, &(uint32));
- v2gLFA_EVFinePositioningSetupParametersType->SensorOrder.array[v2gLFA_EVFinePositioningSetupParametersType->SensorOrder.arrayLen] = (uint8_t)(uint32 + 0);
- v2gLFA_EVFinePositioningSetupParametersType->SensorOrder.arrayLen++;
- } else {
- /* Second level event (e.g., xsi:type, xsi:nil, ...) */
- errn = EXI_UNSUPPORTED_EVENT_CODE_CHARACTERISTICS;
- }
- }
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- if(errn == 0) {
- /* valid EE for simple element START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorOrder) ? */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(eventCode == 0) {
- grammarID = 1330;
- } else {
- errn = EXI_DEVIANT_SUPPORT_NOT_DEPLOYED; /* or also typecast and nillable */
- }
- }
- break;
- case 1:
- /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(errn == 0) {
- if(eventCode == 0) {
- errn = decodeNBitUnsignedInteger(stream, 8, &(uint32));
- v2gLFA_EVFinePositioningSetupParametersType->SignalPulseDuration = (uint8_t)(uint32 + 0);
- } 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({urn:iso:15118:2:2016:MsgDataTypes}SignalPulseDuration) ? */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(eventCode == 0) {
- grammarID = 1242;
- } else {
- errn = EXI_DEVIANT_SUPPORT_NOT_DEPLOYED; /* or also typecast and nillable */
- }
- }
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 1330:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorOrder), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SignalPulseDuration)] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gLFA_EVFinePositioningSetupParametersType->SensorOrder.arrayLen < v2gLFA_EVFinePositioningSetupParametersType_SensorOrder_ARRAY_SIZE) {
- /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(errn == 0) {
- if(eventCode == 0) {
- errn = decodeNBitUnsignedInteger(stream, 8, &(uint32));
- v2gLFA_EVFinePositioningSetupParametersType->SensorOrder.array[v2gLFA_EVFinePositioningSetupParametersType->SensorOrder.arrayLen] = (uint8_t)(uint32 + 0);
- v2gLFA_EVFinePositioningSetupParametersType->SensorOrder.arrayLen++;
- } else {
- /* Second level event (e.g., xsi:type, xsi:nil, ...) */
- errn = EXI_UNSUPPORTED_EVENT_CODE_CHARACTERISTICS;
- }
- }
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- if(errn == 0) {
- /* valid EE for simple element START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorOrder) ? */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(eventCode == 0) {
- grammarID = 1331;
- } else {
- errn = EXI_DEVIANT_SUPPORT_NOT_DEPLOYED; /* or also typecast and nillable */
- }
- }
- break;
- case 1:
- /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(errn == 0) {
- if(eventCode == 0) {
- errn = decodeNBitUnsignedInteger(stream, 8, &(uint32));
- v2gLFA_EVFinePositioningSetupParametersType->SignalPulseDuration = (uint8_t)(uint32 + 0);
- } 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({urn:iso:15118:2:2016:MsgDataTypes}SignalPulseDuration) ? */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(eventCode == 0) {
- grammarID = 1242;
- } else {
- errn = EXI_DEVIANT_SUPPORT_NOT_DEPLOYED; /* or also typecast and nillable */
- }
- }
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 1331:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorOrder), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SignalPulseDuration)] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gLFA_EVFinePositioningSetupParametersType->SensorOrder.arrayLen < v2gLFA_EVFinePositioningSetupParametersType_SensorOrder_ARRAY_SIZE) {
- /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(errn == 0) {
- if(eventCode == 0) {
- errn = decodeNBitUnsignedInteger(stream, 8, &(uint32));
- v2gLFA_EVFinePositioningSetupParametersType->SensorOrder.array[v2gLFA_EVFinePositioningSetupParametersType->SensorOrder.arrayLen] = (uint8_t)(uint32 + 0);
- v2gLFA_EVFinePositioningSetupParametersType->SensorOrder.arrayLen++;
- } else {
- /* Second level event (e.g., xsi:type, xsi:nil, ...) */
- errn = EXI_UNSUPPORTED_EVENT_CODE_CHARACTERISTICS;
- }
- }
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- if(errn == 0) {
- /* valid EE for simple element START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorOrder) ? */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(eventCode == 0) {
- grammarID = 1332;
- } else {
- errn = EXI_DEVIANT_SUPPORT_NOT_DEPLOYED; /* or also typecast and nillable */
- }
- }
- break;
- case 1:
- /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(errn == 0) {
- if(eventCode == 0) {
- errn = decodeNBitUnsignedInteger(stream, 8, &(uint32));
- v2gLFA_EVFinePositioningSetupParametersType->SignalPulseDuration = (uint8_t)(uint32 + 0);
- } 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({urn:iso:15118:2:2016:MsgDataTypes}SignalPulseDuration) ? */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(eventCode == 0) {
- grammarID = 1242;
- } else {
- errn = EXI_DEVIANT_SUPPORT_NOT_DEPLOYED; /* or also typecast and nillable */
- }
- }
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 1332:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorOrder), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SignalPulseDuration)] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gLFA_EVFinePositioningSetupParametersType->SensorOrder.arrayLen < v2gLFA_EVFinePositioningSetupParametersType_SensorOrder_ARRAY_SIZE) {
- /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(errn == 0) {
- if(eventCode == 0) {
- errn = decodeNBitUnsignedInteger(stream, 8, &(uint32));
- v2gLFA_EVFinePositioningSetupParametersType->SensorOrder.array[v2gLFA_EVFinePositioningSetupParametersType->SensorOrder.arrayLen] = (uint8_t)(uint32 + 0);
- v2gLFA_EVFinePositioningSetupParametersType->SensorOrder.arrayLen++;
- } else {
- /* Second level event (e.g., xsi:type, xsi:nil, ...) */
- errn = EXI_UNSUPPORTED_EVENT_CODE_CHARACTERISTICS;
- }
- }
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- if(errn == 0) {
- /* valid EE for simple element START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorOrder) ? */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(eventCode == 0) {
- grammarID = 1333;
- } else {
- errn = EXI_DEVIANT_SUPPORT_NOT_DEPLOYED; /* or also typecast and nillable */
- }
- }
- break;
- case 1:
- /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(errn == 0) {
- if(eventCode == 0) {
- errn = decodeNBitUnsignedInteger(stream, 8, &(uint32));
- v2gLFA_EVFinePositioningSetupParametersType->SignalPulseDuration = (uint8_t)(uint32 + 0);
- } 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({urn:iso:15118:2:2016:MsgDataTypes}SignalPulseDuration) ? */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(eventCode == 0) {
- grammarID = 1242;
- } else {
- errn = EXI_DEVIANT_SUPPORT_NOT_DEPLOYED; /* or also typecast and nillable */
- }
- }
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 1333:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorOrder), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SignalPulseDuration)] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gLFA_EVFinePositioningSetupParametersType->SensorOrder.arrayLen < v2gLFA_EVFinePositioningSetupParametersType_SensorOrder_ARRAY_SIZE) {
- /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(errn == 0) {
- if(eventCode == 0) {
- errn = decodeNBitUnsignedInteger(stream, 8, &(uint32));
- v2gLFA_EVFinePositioningSetupParametersType->SensorOrder.array[v2gLFA_EVFinePositioningSetupParametersType->SensorOrder.arrayLen] = (uint8_t)(uint32 + 0);
- v2gLFA_EVFinePositioningSetupParametersType->SensorOrder.arrayLen++;
- } else {
- /* Second level event (e.g., xsi:type, xsi:nil, ...) */
- errn = EXI_UNSUPPORTED_EVENT_CODE_CHARACTERISTICS;
- }
- }
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- if(errn == 0) {
- /* valid EE for simple element START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorOrder) ? */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(eventCode == 0) {
- grammarID = 1334;
- } else {
- errn = EXI_DEVIANT_SUPPORT_NOT_DEPLOYED; /* or also typecast and nillable */
- }
- }
- break;
- case 1:
- /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(errn == 0) {
- if(eventCode == 0) {
- errn = decodeNBitUnsignedInteger(stream, 8, &(uint32));
- v2gLFA_EVFinePositioningSetupParametersType->SignalPulseDuration = (uint8_t)(uint32 + 0);
- } 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({urn:iso:15118:2:2016:MsgDataTypes}SignalPulseDuration) ? */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(eventCode == 0) {
- grammarID = 1242;
- } else {
- errn = EXI_DEVIANT_SUPPORT_NOT_DEPLOYED; /* or also typecast and nillable */
- }
- }
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 1334:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorOrder), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SignalPulseDuration)] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gLFA_EVFinePositioningSetupParametersType->SensorOrder.arrayLen < v2gLFA_EVFinePositioningSetupParametersType_SensorOrder_ARRAY_SIZE) {
- /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(errn == 0) {
- if(eventCode == 0) {
- errn = decodeNBitUnsignedInteger(stream, 8, &(uint32));
- v2gLFA_EVFinePositioningSetupParametersType->SensorOrder.array[v2gLFA_EVFinePositioningSetupParametersType->SensorOrder.arrayLen] = (uint8_t)(uint32 + 0);
- v2gLFA_EVFinePositioningSetupParametersType->SensorOrder.arrayLen++;
- } else {
- /* Second level event (e.g., xsi:type, xsi:nil, ...) */
- errn = EXI_UNSUPPORTED_EVENT_CODE_CHARACTERISTICS;
- }
- }
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- if(errn == 0) {
- /* valid EE for simple element START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorOrder) ? */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(eventCode == 0) {
- grammarID = 1335;
- } else {
- errn = EXI_DEVIANT_SUPPORT_NOT_DEPLOYED; /* or also typecast and nillable */
- }
- }
- break;
- case 1:
- /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(errn == 0) {
- if(eventCode == 0) {
- errn = decodeNBitUnsignedInteger(stream, 8, &(uint32));
- v2gLFA_EVFinePositioningSetupParametersType->SignalPulseDuration = (uint8_t)(uint32 + 0);
- } 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({urn:iso:15118:2:2016:MsgDataTypes}SignalPulseDuration) ? */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(eventCode == 0) {
- grammarID = 1242;
- } else {
- errn = EXI_DEVIANT_SUPPORT_NOT_DEPLOYED; /* or also typecast and nillable */
- }
- }
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 1335:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorOrder), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SignalPulseDuration)] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gLFA_EVFinePositioningSetupParametersType->SensorOrder.arrayLen < v2gLFA_EVFinePositioningSetupParametersType_SensorOrder_ARRAY_SIZE) {
- /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(errn == 0) {
- if(eventCode == 0) {
- errn = decodeNBitUnsignedInteger(stream, 8, &(uint32));
- v2gLFA_EVFinePositioningSetupParametersType->SensorOrder.array[v2gLFA_EVFinePositioningSetupParametersType->SensorOrder.arrayLen] = (uint8_t)(uint32 + 0);
- v2gLFA_EVFinePositioningSetupParametersType->SensorOrder.arrayLen++;
- } else {
- /* Second level event (e.g., xsi:type, xsi:nil, ...) */
- errn = EXI_UNSUPPORTED_EVENT_CODE_CHARACTERISTICS;
- }
- }
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- if(errn == 0) {
- /* valid EE for simple element START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorOrder) ? */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(eventCode == 0) {
- grammarID = 1336;
- } else {
- errn = EXI_DEVIANT_SUPPORT_NOT_DEPLOYED; /* or also typecast and nillable */
- }
- }
- break;
- case 1:
- /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(errn == 0) {
- if(eventCode == 0) {
- errn = decodeNBitUnsignedInteger(stream, 8, &(uint32));
- v2gLFA_EVFinePositioningSetupParametersType->SignalPulseDuration = (uint8_t)(uint32 + 0);
- } 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({urn:iso:15118:2:2016:MsgDataTypes}SignalPulseDuration) ? */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(eventCode == 0) {
- grammarID = 1242;
- } else {
- errn = EXI_DEVIANT_SUPPORT_NOT_DEPLOYED; /* or also typecast and nillable */
- }
- }
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 1336:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorOrder), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SignalPulseDuration)] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gLFA_EVFinePositioningSetupParametersType->SensorOrder.arrayLen < v2gLFA_EVFinePositioningSetupParametersType_SensorOrder_ARRAY_SIZE) {
- /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(errn == 0) {
- if(eventCode == 0) {
- errn = decodeNBitUnsignedInteger(stream, 8, &(uint32));
- v2gLFA_EVFinePositioningSetupParametersType->SensorOrder.array[v2gLFA_EVFinePositioningSetupParametersType->SensorOrder.arrayLen] = (uint8_t)(uint32 + 0);
- v2gLFA_EVFinePositioningSetupParametersType->SensorOrder.arrayLen++;
- } else {
- /* Second level event (e.g., xsi:type, xsi:nil, ...) */
- errn = EXI_UNSUPPORTED_EVENT_CODE_CHARACTERISTICS;
- }
- }
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- if(errn == 0) {
- /* valid EE for simple element START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorOrder) ? */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(eventCode == 0) {
- grammarID = 1337;
- } else {
- errn = EXI_DEVIANT_SUPPORT_NOT_DEPLOYED; /* or also typecast and nillable */
- }
- }
- break;
- case 1:
- /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(errn == 0) {
- if(eventCode == 0) {
- errn = decodeNBitUnsignedInteger(stream, 8, &(uint32));
- v2gLFA_EVFinePositioningSetupParametersType->SignalPulseDuration = (uint8_t)(uint32 + 0);
- } 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({urn:iso:15118:2:2016:MsgDataTypes}SignalPulseDuration) ? */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(eventCode == 0) {
- grammarID = 1242;
- } else {
- errn = EXI_DEVIANT_SUPPORT_NOT_DEPLOYED; /* or also typecast and nillable */
- }
- }
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 1337:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorOrder), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SignalPulseDuration)] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gLFA_EVFinePositioningSetupParametersType->SensorOrder.arrayLen < v2gLFA_EVFinePositioningSetupParametersType_SensorOrder_ARRAY_SIZE) {
- /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(errn == 0) {
- if(eventCode == 0) {
- errn = decodeNBitUnsignedInteger(stream, 8, &(uint32));
- v2gLFA_EVFinePositioningSetupParametersType->SensorOrder.array[v2gLFA_EVFinePositioningSetupParametersType->SensorOrder.arrayLen] = (uint8_t)(uint32 + 0);
- v2gLFA_EVFinePositioningSetupParametersType->SensorOrder.arrayLen++;
- } else {
- /* Second level event (e.g., xsi:type, xsi:nil, ...) */
- errn = EXI_UNSUPPORTED_EVENT_CODE_CHARACTERISTICS;
- }
- }
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- if(errn == 0) {
- /* valid EE for simple element START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorOrder) ? */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(eventCode == 0) {
- grammarID = 1338;
- } else {
- errn = EXI_DEVIANT_SUPPORT_NOT_DEPLOYED; /* or also typecast and nillable */
- }
- }
- break;
- case 1:
- /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(errn == 0) {
- if(eventCode == 0) {
- errn = decodeNBitUnsignedInteger(stream, 8, &(uint32));
- v2gLFA_EVFinePositioningSetupParametersType->SignalPulseDuration = (uint8_t)(uint32 + 0);
- } 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({urn:iso:15118:2:2016:MsgDataTypes}SignalPulseDuration) ? */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(eventCode == 0) {
- grammarID = 1242;
- } else {
- errn = EXI_DEVIANT_SUPPORT_NOT_DEPLOYED; /* or also typecast and nillable */
- }
- }
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 1338:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorOrder), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SignalPulseDuration)] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gLFA_EVFinePositioningSetupParametersType->SensorOrder.arrayLen < v2gLFA_EVFinePositioningSetupParametersType_SensorOrder_ARRAY_SIZE) {
- /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(errn == 0) {
- if(eventCode == 0) {
- errn = decodeNBitUnsignedInteger(stream, 8, &(uint32));
- v2gLFA_EVFinePositioningSetupParametersType->SensorOrder.array[v2gLFA_EVFinePositioningSetupParametersType->SensorOrder.arrayLen] = (uint8_t)(uint32 + 0);
- v2gLFA_EVFinePositioningSetupParametersType->SensorOrder.arrayLen++;
- } else {
- /* Second level event (e.g., xsi:type, xsi:nil, ...) */
- errn = EXI_UNSUPPORTED_EVENT_CODE_CHARACTERISTICS;
- }
- }
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- if(errn == 0) {
- /* valid EE for simple element START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorOrder) ? */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(eventCode == 0) {
- grammarID = 1339;
- } else {
- errn = EXI_DEVIANT_SUPPORT_NOT_DEPLOYED; /* or also typecast and nillable */
- }
- }
- break;
- case 1:
- /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(errn == 0) {
- if(eventCode == 0) {
- errn = decodeNBitUnsignedInteger(stream, 8, &(uint32));
- v2gLFA_EVFinePositioningSetupParametersType->SignalPulseDuration = (uint8_t)(uint32 + 0);
- } 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({urn:iso:15118:2:2016:MsgDataTypes}SignalPulseDuration) ? */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(eventCode == 0) {
- grammarID = 1242;
- } else {
- errn = EXI_DEVIANT_SUPPORT_NOT_DEPLOYED; /* or also typecast and nillable */
- }
- }
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 1339:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorOrder), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SignalPulseDuration)] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gLFA_EVFinePositioningSetupParametersType->SensorOrder.arrayLen < v2gLFA_EVFinePositioningSetupParametersType_SensorOrder_ARRAY_SIZE) {
- /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(errn == 0) {
- if(eventCode == 0) {
- errn = decodeNBitUnsignedInteger(stream, 8, &(uint32));
- v2gLFA_EVFinePositioningSetupParametersType->SensorOrder.array[v2gLFA_EVFinePositioningSetupParametersType->SensorOrder.arrayLen] = (uint8_t)(uint32 + 0);
- v2gLFA_EVFinePositioningSetupParametersType->SensorOrder.arrayLen++;
- } else {
- /* Second level event (e.g., xsi:type, xsi:nil, ...) */
- errn = EXI_UNSUPPORTED_EVENT_CODE_CHARACTERISTICS;
- }
- }
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- if(errn == 0) {
- /* valid EE for simple element START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorOrder) ? */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(eventCode == 0) {
- grammarID = 1340;
- } else {
- errn = EXI_DEVIANT_SUPPORT_NOT_DEPLOYED; /* or also typecast and nillable */
- }
- }
- break;
- case 1:
- /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(errn == 0) {
- if(eventCode == 0) {
- errn = decodeNBitUnsignedInteger(stream, 8, &(uint32));
- v2gLFA_EVFinePositioningSetupParametersType->SignalPulseDuration = (uint8_t)(uint32 + 0);
- } 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({urn:iso:15118:2:2016:MsgDataTypes}SignalPulseDuration) ? */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(eventCode == 0) {
- grammarID = 1242;
- } else {
- errn = EXI_DEVIANT_SUPPORT_NOT_DEPLOYED; /* or also typecast and nillable */
- }
- }
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 1340:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorOrder), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SignalPulseDuration)] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gLFA_EVFinePositioningSetupParametersType->SensorOrder.arrayLen < v2gLFA_EVFinePositioningSetupParametersType_SensorOrder_ARRAY_SIZE) {
- /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(errn == 0) {
- if(eventCode == 0) {
- errn = decodeNBitUnsignedInteger(stream, 8, &(uint32));
- v2gLFA_EVFinePositioningSetupParametersType->SensorOrder.array[v2gLFA_EVFinePositioningSetupParametersType->SensorOrder.arrayLen] = (uint8_t)(uint32 + 0);
- v2gLFA_EVFinePositioningSetupParametersType->SensorOrder.arrayLen++;
- } else {
- /* Second level event (e.g., xsi:type, xsi:nil, ...) */
- errn = EXI_UNSUPPORTED_EVENT_CODE_CHARACTERISTICS;
- }
- }
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- if(errn == 0) {
- /* valid EE for simple element START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorOrder) ? */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(eventCode == 0) {
- grammarID = 1341;
- } else {
- errn = EXI_DEVIANT_SUPPORT_NOT_DEPLOYED; /* or also typecast and nillable */
- }
- }
- break;
- case 1:
- /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(errn == 0) {
- if(eventCode == 0) {
- errn = decodeNBitUnsignedInteger(stream, 8, &(uint32));
- v2gLFA_EVFinePositioningSetupParametersType->SignalPulseDuration = (uint8_t)(uint32 + 0);
- } 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({urn:iso:15118:2:2016:MsgDataTypes}SignalPulseDuration) ? */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(eventCode == 0) {
- grammarID = 1242;
- } else {
- errn = EXI_DEVIANT_SUPPORT_NOT_DEPLOYED; /* or also typecast and nillable */
- }
- }
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 1341:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorOrder), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SignalPulseDuration)] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gLFA_EVFinePositioningSetupParametersType->SensorOrder.arrayLen < v2gLFA_EVFinePositioningSetupParametersType_SensorOrder_ARRAY_SIZE) {
- /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(errn == 0) {
- if(eventCode == 0) {
- errn = decodeNBitUnsignedInteger(stream, 8, &(uint32));
- v2gLFA_EVFinePositioningSetupParametersType->SensorOrder.array[v2gLFA_EVFinePositioningSetupParametersType->SensorOrder.arrayLen] = (uint8_t)(uint32 + 0);
- v2gLFA_EVFinePositioningSetupParametersType->SensorOrder.arrayLen++;
- } else {
- /* Second level event (e.g., xsi:type, xsi:nil, ...) */
- errn = EXI_UNSUPPORTED_EVENT_CODE_CHARACTERISTICS;
- }
- }
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- if(errn == 0) {
- /* valid EE for simple element START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorOrder) ? */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(eventCode == 0) {
- grammarID = 1342;
- } else {
- errn = EXI_DEVIANT_SUPPORT_NOT_DEPLOYED; /* or also typecast and nillable */
- }
- }
- break;
- case 1:
- /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(errn == 0) {
- if(eventCode == 0) {
- errn = decodeNBitUnsignedInteger(stream, 8, &(uint32));
- v2gLFA_EVFinePositioningSetupParametersType->SignalPulseDuration = (uint8_t)(uint32 + 0);
- } 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({urn:iso:15118:2:2016:MsgDataTypes}SignalPulseDuration) ? */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(eventCode == 0) {
- grammarID = 1242;
- } else {
- errn = EXI_DEVIANT_SUPPORT_NOT_DEPLOYED; /* or also typecast and nillable */
- }
- }
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 1342:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorOrder), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SignalPulseDuration)] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gLFA_EVFinePositioningSetupParametersType->SensorOrder.arrayLen < v2gLFA_EVFinePositioningSetupParametersType_SensorOrder_ARRAY_SIZE) {
- /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(errn == 0) {
- if(eventCode == 0) {
- errn = decodeNBitUnsignedInteger(stream, 8, &(uint32));
- v2gLFA_EVFinePositioningSetupParametersType->SensorOrder.array[v2gLFA_EVFinePositioningSetupParametersType->SensorOrder.arrayLen] = (uint8_t)(uint32 + 0);
- v2gLFA_EVFinePositioningSetupParametersType->SensorOrder.arrayLen++;
- } else {
- /* Second level event (e.g., xsi:type, xsi:nil, ...) */
- errn = EXI_UNSUPPORTED_EVENT_CODE_CHARACTERISTICS;
- }
- }
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- if(errn == 0) {
- /* valid EE for simple element START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorOrder) ? */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(eventCode == 0) {
- grammarID = 1343;
- } else {
- errn = EXI_DEVIANT_SUPPORT_NOT_DEPLOYED; /* or also typecast and nillable */
- }
- }
- break;
- case 1:
- /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(errn == 0) {
- if(eventCode == 0) {
- errn = decodeNBitUnsignedInteger(stream, 8, &(uint32));
- v2gLFA_EVFinePositioningSetupParametersType->SignalPulseDuration = (uint8_t)(uint32 + 0);
- } 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({urn:iso:15118:2:2016:MsgDataTypes}SignalPulseDuration) ? */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(eventCode == 0) {
- grammarID = 1242;
- } else {
- errn = EXI_DEVIANT_SUPPORT_NOT_DEPLOYED; /* or also typecast and nillable */
- }
- }
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 1343:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorOrder), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SignalPulseDuration)] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gLFA_EVFinePositioningSetupParametersType->SensorOrder.arrayLen < v2gLFA_EVFinePositioningSetupParametersType_SensorOrder_ARRAY_SIZE) {
- /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(errn == 0) {
- if(eventCode == 0) {
- errn = decodeNBitUnsignedInteger(stream, 8, &(uint32));
- v2gLFA_EVFinePositioningSetupParametersType->SensorOrder.array[v2gLFA_EVFinePositioningSetupParametersType->SensorOrder.arrayLen] = (uint8_t)(uint32 + 0);
- v2gLFA_EVFinePositioningSetupParametersType->SensorOrder.arrayLen++;
- } else {
- /* Second level event (e.g., xsi:type, xsi:nil, ...) */
- errn = EXI_UNSUPPORTED_EVENT_CODE_CHARACTERISTICS;
- }
- }
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- if(errn == 0) {
- /* valid EE for simple element START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorOrder) ? */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(eventCode == 0) {
- grammarID = 1344;
- } else {
- errn = EXI_DEVIANT_SUPPORT_NOT_DEPLOYED; /* or also typecast and nillable */
- }
- }
- break;
- case 1:
- /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(errn == 0) {
- if(eventCode == 0) {
- errn = decodeNBitUnsignedInteger(stream, 8, &(uint32));
- v2gLFA_EVFinePositioningSetupParametersType->SignalPulseDuration = (uint8_t)(uint32 + 0);
- } 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({urn:iso:15118:2:2016:MsgDataTypes}SignalPulseDuration) ? */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(eventCode == 0) {
- grammarID = 1242;
- } else {
- errn = EXI_DEVIANT_SUPPORT_NOT_DEPLOYED; /* or also typecast and nillable */
- }
- }
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 1344:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorOrder), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SignalPulseDuration)] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gLFA_EVFinePositioningSetupParametersType->SensorOrder.arrayLen < v2gLFA_EVFinePositioningSetupParametersType_SensorOrder_ARRAY_SIZE) {
- /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(errn == 0) {
- if(eventCode == 0) {
- errn = decodeNBitUnsignedInteger(stream, 8, &(uint32));
- v2gLFA_EVFinePositioningSetupParametersType->SensorOrder.array[v2gLFA_EVFinePositioningSetupParametersType->SensorOrder.arrayLen] = (uint8_t)(uint32 + 0);
- v2gLFA_EVFinePositioningSetupParametersType->SensorOrder.arrayLen++;
- } else {
- /* Second level event (e.g., xsi:type, xsi:nil, ...) */
- errn = EXI_UNSUPPORTED_EVENT_CODE_CHARACTERISTICS;
- }
- }
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- if(errn == 0) {
- /* valid EE for simple element START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorOrder) ? */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(eventCode == 0) {
- grammarID = 1345;
- } else {
- errn = EXI_DEVIANT_SUPPORT_NOT_DEPLOYED; /* or also typecast and nillable */
- }
- }
- break;
- case 1:
- /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(errn == 0) {
- if(eventCode == 0) {
- errn = decodeNBitUnsignedInteger(stream, 8, &(uint32));
- v2gLFA_EVFinePositioningSetupParametersType->SignalPulseDuration = (uint8_t)(uint32 + 0);
- } 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({urn:iso:15118:2:2016:MsgDataTypes}SignalPulseDuration) ? */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(eventCode == 0) {
- grammarID = 1242;
- } else {
- errn = EXI_DEVIANT_SUPPORT_NOT_DEPLOYED; /* or also typecast and nillable */
- }
- }
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 1345:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorOrder), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SignalPulseDuration)] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gLFA_EVFinePositioningSetupParametersType->SensorOrder.arrayLen < v2gLFA_EVFinePositioningSetupParametersType_SensorOrder_ARRAY_SIZE) {
- /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(errn == 0) {
- if(eventCode == 0) {
- errn = decodeNBitUnsignedInteger(stream, 8, &(uint32));
- v2gLFA_EVFinePositioningSetupParametersType->SensorOrder.array[v2gLFA_EVFinePositioningSetupParametersType->SensorOrder.arrayLen] = (uint8_t)(uint32 + 0);
- v2gLFA_EVFinePositioningSetupParametersType->SensorOrder.arrayLen++;
- } else {
- /* Second level event (e.g., xsi:type, xsi:nil, ...) */
- errn = EXI_UNSUPPORTED_EVENT_CODE_CHARACTERISTICS;
- }
- }
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- if(errn == 0) {
- /* valid EE for simple element START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorOrder) ? */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(eventCode == 0) {
- grammarID = 1346;
- } else {
- errn = EXI_DEVIANT_SUPPORT_NOT_DEPLOYED; /* or also typecast and nillable */
- }
- }
- break;
- case 1:
- /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(errn == 0) {
- if(eventCode == 0) {
- errn = decodeNBitUnsignedInteger(stream, 8, &(uint32));
- v2gLFA_EVFinePositioningSetupParametersType->SignalPulseDuration = (uint8_t)(uint32 + 0);
- } 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({urn:iso:15118:2:2016:MsgDataTypes}SignalPulseDuration) ? */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(eventCode == 0) {
- grammarID = 1242;
- } else {
- errn = EXI_DEVIANT_SUPPORT_NOT_DEPLOYED; /* or also typecast and nillable */
- }
- }
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 1346:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorOrder), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SignalPulseDuration)] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gLFA_EVFinePositioningSetupParametersType->SensorOrder.arrayLen < v2gLFA_EVFinePositioningSetupParametersType_SensorOrder_ARRAY_SIZE) {
- /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(errn == 0) {
- if(eventCode == 0) {
- errn = decodeNBitUnsignedInteger(stream, 8, &(uint32));
- v2gLFA_EVFinePositioningSetupParametersType->SensorOrder.array[v2gLFA_EVFinePositioningSetupParametersType->SensorOrder.arrayLen] = (uint8_t)(uint32 + 0);
- v2gLFA_EVFinePositioningSetupParametersType->SensorOrder.arrayLen++;
- } else {
- /* Second level event (e.g., xsi:type, xsi:nil, ...) */
- errn = EXI_UNSUPPORTED_EVENT_CODE_CHARACTERISTICS;
- }
- }
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- if(errn == 0) {
- /* valid EE for simple element START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorOrder) ? */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(eventCode == 0) {
- grammarID = 1347;
- } else {
- errn = EXI_DEVIANT_SUPPORT_NOT_DEPLOYED; /* or also typecast and nillable */
- }
- }
- break;
- case 1:
- /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(errn == 0) {
- if(eventCode == 0) {
- errn = decodeNBitUnsignedInteger(stream, 8, &(uint32));
- v2gLFA_EVFinePositioningSetupParametersType->SignalPulseDuration = (uint8_t)(uint32 + 0);
- } 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({urn:iso:15118:2:2016:MsgDataTypes}SignalPulseDuration) ? */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(eventCode == 0) {
- grammarID = 1242;
- } else {
- errn = EXI_DEVIANT_SUPPORT_NOT_DEPLOYED; /* or also typecast and nillable */
- }
- }
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 1347:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorOrder), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SignalPulseDuration)] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gLFA_EVFinePositioningSetupParametersType->SensorOrder.arrayLen < v2gLFA_EVFinePositioningSetupParametersType_SensorOrder_ARRAY_SIZE) {
- /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(errn == 0) {
- if(eventCode == 0) {
- errn = decodeNBitUnsignedInteger(stream, 8, &(uint32));
- v2gLFA_EVFinePositioningSetupParametersType->SensorOrder.array[v2gLFA_EVFinePositioningSetupParametersType->SensorOrder.arrayLen] = (uint8_t)(uint32 + 0);
- v2gLFA_EVFinePositioningSetupParametersType->SensorOrder.arrayLen++;
- } else {
- /* Second level event (e.g., xsi:type, xsi:nil, ...) */
- errn = EXI_UNSUPPORTED_EVENT_CODE_CHARACTERISTICS;
- }
- }
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- if(errn == 0) {
- /* valid EE for simple element START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorOrder) ? */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(eventCode == 0) {
- grammarID = 1348;
- } else {
- errn = EXI_DEVIANT_SUPPORT_NOT_DEPLOYED; /* or also typecast and nillable */
- }
- }
- break;
- case 1:
- /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(errn == 0) {
- if(eventCode == 0) {
- errn = decodeNBitUnsignedInteger(stream, 8, &(uint32));
- v2gLFA_EVFinePositioningSetupParametersType->SignalPulseDuration = (uint8_t)(uint32 + 0);
- } 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({urn:iso:15118:2:2016:MsgDataTypes}SignalPulseDuration) ? */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(eventCode == 0) {
- grammarID = 1242;
- } else {
- errn = EXI_DEVIANT_SUPPORT_NOT_DEPLOYED; /* or also typecast and nillable */
- }
- }
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 1348:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorOrder), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SignalPulseDuration)] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gLFA_EVFinePositioningSetupParametersType->SensorOrder.arrayLen < v2gLFA_EVFinePositioningSetupParametersType_SensorOrder_ARRAY_SIZE) {
- /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(errn == 0) {
- if(eventCode == 0) {
- errn = decodeNBitUnsignedInteger(stream, 8, &(uint32));
- v2gLFA_EVFinePositioningSetupParametersType->SensorOrder.array[v2gLFA_EVFinePositioningSetupParametersType->SensorOrder.arrayLen] = (uint8_t)(uint32 + 0);
- v2gLFA_EVFinePositioningSetupParametersType->SensorOrder.arrayLen++;
- } else {
- /* Second level event (e.g., xsi:type, xsi:nil, ...) */
- errn = EXI_UNSUPPORTED_EVENT_CODE_CHARACTERISTICS;
- }
- }
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- if(errn == 0) {
- /* valid EE for simple element START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorOrder) ? */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(eventCode == 0) {
- grammarID = 1349;
- } else {
- errn = EXI_DEVIANT_SUPPORT_NOT_DEPLOYED; /* or also typecast and nillable */
- }
- }
- break;
- case 1:
- /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(errn == 0) {
- if(eventCode == 0) {
- errn = decodeNBitUnsignedInteger(stream, 8, &(uint32));
- v2gLFA_EVFinePositioningSetupParametersType->SignalPulseDuration = (uint8_t)(uint32 + 0);
- } 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({urn:iso:15118:2:2016:MsgDataTypes}SignalPulseDuration) ? */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(eventCode == 0) {
- grammarID = 1242;
- } else {
- errn = EXI_DEVIANT_SUPPORT_NOT_DEPLOYED; /* or also typecast and nillable */
- }
- }
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 1349:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorOrder), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SignalPulseDuration)] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gLFA_EVFinePositioningSetupParametersType->SensorOrder.arrayLen < v2gLFA_EVFinePositioningSetupParametersType_SensorOrder_ARRAY_SIZE) {
- /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(errn == 0) {
- if(eventCode == 0) {
- errn = decodeNBitUnsignedInteger(stream, 8, &(uint32));
- v2gLFA_EVFinePositioningSetupParametersType->SensorOrder.array[v2gLFA_EVFinePositioningSetupParametersType->SensorOrder.arrayLen] = (uint8_t)(uint32 + 0);
- v2gLFA_EVFinePositioningSetupParametersType->SensorOrder.arrayLen++;
- } else {
- /* Second level event (e.g., xsi:type, xsi:nil, ...) */
- errn = EXI_UNSUPPORTED_EVENT_CODE_CHARACTERISTICS;
- }
- }
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- if(errn == 0) {
- /* valid EE for simple element START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorOrder) ? */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(eventCode == 0) {
- grammarID = 1350;
- } else {
- errn = EXI_DEVIANT_SUPPORT_NOT_DEPLOYED; /* or also typecast and nillable */
- }
- }
- break;
- case 1:
- /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(errn == 0) {
- if(eventCode == 0) {
- errn = decodeNBitUnsignedInteger(stream, 8, &(uint32));
- v2gLFA_EVFinePositioningSetupParametersType->SignalPulseDuration = (uint8_t)(uint32 + 0);
- } 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({urn:iso:15118:2:2016:MsgDataTypes}SignalPulseDuration) ? */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(eventCode == 0) {
- grammarID = 1242;
- } else {
- errn = EXI_DEVIANT_SUPPORT_NOT_DEPLOYED; /* or also typecast and nillable */
- }
- }
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 1350:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorOrder), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SignalPulseDuration)] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gLFA_EVFinePositioningSetupParametersType->SensorOrder.arrayLen < v2gLFA_EVFinePositioningSetupParametersType_SensorOrder_ARRAY_SIZE) {
- /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(errn == 0) {
- if(eventCode == 0) {
- errn = decodeNBitUnsignedInteger(stream, 8, &(uint32));
- v2gLFA_EVFinePositioningSetupParametersType->SensorOrder.array[v2gLFA_EVFinePositioningSetupParametersType->SensorOrder.arrayLen] = (uint8_t)(uint32 + 0);
- v2gLFA_EVFinePositioningSetupParametersType->SensorOrder.arrayLen++;
- } else {
- /* Second level event (e.g., xsi:type, xsi:nil, ...) */
- errn = EXI_UNSUPPORTED_EVENT_CODE_CHARACTERISTICS;
- }
- }
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- if(errn == 0) {
- /* valid EE for simple element START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorOrder) ? */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(eventCode == 0) {
- grammarID = 1351;
- } else {
- errn = EXI_DEVIANT_SUPPORT_NOT_DEPLOYED; /* or also typecast and nillable */
- }
- }
- break;
- case 1:
- /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(errn == 0) {
- if(eventCode == 0) {
- errn = decodeNBitUnsignedInteger(stream, 8, &(uint32));
- v2gLFA_EVFinePositioningSetupParametersType->SignalPulseDuration = (uint8_t)(uint32 + 0);
- } 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({urn:iso:15118:2:2016:MsgDataTypes}SignalPulseDuration) ? */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(eventCode == 0) {
- grammarID = 1242;
- } else {
- errn = EXI_DEVIANT_SUPPORT_NOT_DEPLOYED; /* or also typecast and nillable */
- }
- }
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 1351:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorOrder), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SignalPulseDuration)] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gLFA_EVFinePositioningSetupParametersType->SensorOrder.arrayLen < v2gLFA_EVFinePositioningSetupParametersType_SensorOrder_ARRAY_SIZE) {
- /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(errn == 0) {
- if(eventCode == 0) {
- errn = decodeNBitUnsignedInteger(stream, 8, &(uint32));
- v2gLFA_EVFinePositioningSetupParametersType->SensorOrder.array[v2gLFA_EVFinePositioningSetupParametersType->SensorOrder.arrayLen] = (uint8_t)(uint32 + 0);
- v2gLFA_EVFinePositioningSetupParametersType->SensorOrder.arrayLen++;
- } else {
- /* Second level event (e.g., xsi:type, xsi:nil, ...) */
- errn = EXI_UNSUPPORTED_EVENT_CODE_CHARACTERISTICS;
- }
- }
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- if(errn == 0) {
- /* valid EE for simple element START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorOrder) ? */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(eventCode == 0) {
- grammarID = 1352;
- } else {
- errn = EXI_DEVIANT_SUPPORT_NOT_DEPLOYED; /* or also typecast and nillable */
- }
- }
- break;
- case 1:
- /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(errn == 0) {
- if(eventCode == 0) {
- errn = decodeNBitUnsignedInteger(stream, 8, &(uint32));
- v2gLFA_EVFinePositioningSetupParametersType->SignalPulseDuration = (uint8_t)(uint32 + 0);
- } 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({urn:iso:15118:2:2016:MsgDataTypes}SignalPulseDuration) ? */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(eventCode == 0) {
- grammarID = 1242;
- } else {
- errn = EXI_DEVIANT_SUPPORT_NOT_DEPLOYED; /* or also typecast and nillable */
- }
- }
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 1352:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorOrder), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SignalPulseDuration)] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gLFA_EVFinePositioningSetupParametersType->SensorOrder.arrayLen < v2gLFA_EVFinePositioningSetupParametersType_SensorOrder_ARRAY_SIZE) {
- /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(errn == 0) {
- if(eventCode == 0) {
- errn = decodeNBitUnsignedInteger(stream, 8, &(uint32));
- v2gLFA_EVFinePositioningSetupParametersType->SensorOrder.array[v2gLFA_EVFinePositioningSetupParametersType->SensorOrder.arrayLen] = (uint8_t)(uint32 + 0);
- v2gLFA_EVFinePositioningSetupParametersType->SensorOrder.arrayLen++;
- } else {
- /* Second level event (e.g., xsi:type, xsi:nil, ...) */
- errn = EXI_UNSUPPORTED_EVENT_CODE_CHARACTERISTICS;
- }
- }
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- if(errn == 0) {
- /* valid EE for simple element START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorOrder) ? */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(eventCode == 0) {
- grammarID = 1353;
- } else {
- errn = EXI_DEVIANT_SUPPORT_NOT_DEPLOYED; /* or also typecast and nillable */
- }
- }
- break;
- case 1:
- /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(errn == 0) {
- if(eventCode == 0) {
- errn = decodeNBitUnsignedInteger(stream, 8, &(uint32));
- v2gLFA_EVFinePositioningSetupParametersType->SignalPulseDuration = (uint8_t)(uint32 + 0);
- } 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({urn:iso:15118:2:2016:MsgDataTypes}SignalPulseDuration) ? */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(eventCode == 0) {
- grammarID = 1242;
- } else {
- errn = EXI_DEVIANT_SUPPORT_NOT_DEPLOYED; /* or also typecast and nillable */
- }
- }
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 1353:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorOrder), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SignalPulseDuration)] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gLFA_EVFinePositioningSetupParametersType->SensorOrder.arrayLen < v2gLFA_EVFinePositioningSetupParametersType_SensorOrder_ARRAY_SIZE) {
- /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(errn == 0) {
- if(eventCode == 0) {
- errn = decodeNBitUnsignedInteger(stream, 8, &(uint32));
- v2gLFA_EVFinePositioningSetupParametersType->SensorOrder.array[v2gLFA_EVFinePositioningSetupParametersType->SensorOrder.arrayLen] = (uint8_t)(uint32 + 0);
- v2gLFA_EVFinePositioningSetupParametersType->SensorOrder.arrayLen++;
- } else {
- /* Second level event (e.g., xsi:type, xsi:nil, ...) */
- errn = EXI_UNSUPPORTED_EVENT_CODE_CHARACTERISTICS;
- }
- }
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- if(errn == 0) {
- /* valid EE for simple element START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorOrder) ? */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(eventCode == 0) {
- grammarID = 1354;
- } else {
- errn = EXI_DEVIANT_SUPPORT_NOT_DEPLOYED; /* or also typecast and nillable */
- }
- }
- break;
- case 1:
- /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(errn == 0) {
- if(eventCode == 0) {
- errn = decodeNBitUnsignedInteger(stream, 8, &(uint32));
- v2gLFA_EVFinePositioningSetupParametersType->SignalPulseDuration = (uint8_t)(uint32 + 0);
- } 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({urn:iso:15118:2:2016:MsgDataTypes}SignalPulseDuration) ? */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(eventCode == 0) {
- grammarID = 1242;
- } else {
- errn = EXI_DEVIANT_SUPPORT_NOT_DEPLOYED; /* or also typecast and nillable */
- }
- }
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 1354:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorOrder), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SignalPulseDuration)] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gLFA_EVFinePositioningSetupParametersType->SensorOrder.arrayLen < v2gLFA_EVFinePositioningSetupParametersType_SensorOrder_ARRAY_SIZE) {
- /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(errn == 0) {
- if(eventCode == 0) {
- errn = decodeNBitUnsignedInteger(stream, 8, &(uint32));
- v2gLFA_EVFinePositioningSetupParametersType->SensorOrder.array[v2gLFA_EVFinePositioningSetupParametersType->SensorOrder.arrayLen] = (uint8_t)(uint32 + 0);
- v2gLFA_EVFinePositioningSetupParametersType->SensorOrder.arrayLen++;
- } else {
- /* Second level event (e.g., xsi:type, xsi:nil, ...) */
- errn = EXI_UNSUPPORTED_EVENT_CODE_CHARACTERISTICS;
- }
- }
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- if(errn == 0) {
- /* valid EE for simple element START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorOrder) ? */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(eventCode == 0) {
- grammarID = 1355;
- } else {
- errn = EXI_DEVIANT_SUPPORT_NOT_DEPLOYED; /* or also typecast and nillable */
- }
- }
- break;
- case 1:
- /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(errn == 0) {
- if(eventCode == 0) {
- errn = decodeNBitUnsignedInteger(stream, 8, &(uint32));
- v2gLFA_EVFinePositioningSetupParametersType->SignalPulseDuration = (uint8_t)(uint32 + 0);
- } 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({urn:iso:15118:2:2016:MsgDataTypes}SignalPulseDuration) ? */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(eventCode == 0) {
- grammarID = 1242;
- } else {
- errn = EXI_DEVIANT_SUPPORT_NOT_DEPLOYED; /* or also typecast and nillable */
- }
- }
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 1355:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorOrder), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SignalPulseDuration)] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gLFA_EVFinePositioningSetupParametersType->SensorOrder.arrayLen < v2gLFA_EVFinePositioningSetupParametersType_SensorOrder_ARRAY_SIZE) {
- /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(errn == 0) {
- if(eventCode == 0) {
- errn = decodeNBitUnsignedInteger(stream, 8, &(uint32));
- v2gLFA_EVFinePositioningSetupParametersType->SensorOrder.array[v2gLFA_EVFinePositioningSetupParametersType->SensorOrder.arrayLen] = (uint8_t)(uint32 + 0);
- v2gLFA_EVFinePositioningSetupParametersType->SensorOrder.arrayLen++;
- } else {
- /* Second level event (e.g., xsi:type, xsi:nil, ...) */
- errn = EXI_UNSUPPORTED_EVENT_CODE_CHARACTERISTICS;
- }
- }
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- if(errn == 0) {
- /* valid EE for simple element START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorOrder) ? */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(eventCode == 0) {
- grammarID = 1356;
- } else {
- errn = EXI_DEVIANT_SUPPORT_NOT_DEPLOYED; /* or also typecast and nillable */
- }
- }
- break;
- case 1:
- /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(errn == 0) {
- if(eventCode == 0) {
- errn = decodeNBitUnsignedInteger(stream, 8, &(uint32));
- v2gLFA_EVFinePositioningSetupParametersType->SignalPulseDuration = (uint8_t)(uint32 + 0);
- } 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({urn:iso:15118:2:2016:MsgDataTypes}SignalPulseDuration) ? */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(eventCode == 0) {
- grammarID = 1242;
- } else {
- errn = EXI_DEVIANT_SUPPORT_NOT_DEPLOYED; /* or also typecast and nillable */
- }
- }
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 1356:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorOrder), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SignalPulseDuration)] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gLFA_EVFinePositioningSetupParametersType->SensorOrder.arrayLen < v2gLFA_EVFinePositioningSetupParametersType_SensorOrder_ARRAY_SIZE) {
- /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(errn == 0) {
- if(eventCode == 0) {
- errn = decodeNBitUnsignedInteger(stream, 8, &(uint32));
- v2gLFA_EVFinePositioningSetupParametersType->SensorOrder.array[v2gLFA_EVFinePositioningSetupParametersType->SensorOrder.arrayLen] = (uint8_t)(uint32 + 0);
- v2gLFA_EVFinePositioningSetupParametersType->SensorOrder.arrayLen++;
- } else {
- /* Second level event (e.g., xsi:type, xsi:nil, ...) */
- errn = EXI_UNSUPPORTED_EVENT_CODE_CHARACTERISTICS;
- }
- }
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- if(errn == 0) {
- /* valid EE for simple element START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorOrder) ? */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(eventCode == 0) {
- grammarID = 1357;
- } else {
- errn = EXI_DEVIANT_SUPPORT_NOT_DEPLOYED; /* or also typecast and nillable */
- }
- }
- break;
- case 1:
- /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(errn == 0) {
- if(eventCode == 0) {
- errn = decodeNBitUnsignedInteger(stream, 8, &(uint32));
- v2gLFA_EVFinePositioningSetupParametersType->SignalPulseDuration = (uint8_t)(uint32 + 0);
- } 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({urn:iso:15118:2:2016:MsgDataTypes}SignalPulseDuration) ? */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(eventCode == 0) {
- grammarID = 1242;
- } else {
- errn = EXI_DEVIANT_SUPPORT_NOT_DEPLOYED; /* or also typecast and nillable */
- }
- }
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 1357:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorOrder), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SignalPulseDuration)] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gLFA_EVFinePositioningSetupParametersType->SensorOrder.arrayLen < v2gLFA_EVFinePositioningSetupParametersType_SensorOrder_ARRAY_SIZE) {
- /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(errn == 0) {
- if(eventCode == 0) {
- errn = decodeNBitUnsignedInteger(stream, 8, &(uint32));
- v2gLFA_EVFinePositioningSetupParametersType->SensorOrder.array[v2gLFA_EVFinePositioningSetupParametersType->SensorOrder.arrayLen] = (uint8_t)(uint32 + 0);
- v2gLFA_EVFinePositioningSetupParametersType->SensorOrder.arrayLen++;
- } else {
- /* Second level event (e.g., xsi:type, xsi:nil, ...) */
- errn = EXI_UNSUPPORTED_EVENT_CODE_CHARACTERISTICS;
- }
- }
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- if(errn == 0) {
- /* valid EE for simple element START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorOrder) ? */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(eventCode == 0) {
- grammarID = 1358;
- } else {
- errn = EXI_DEVIANT_SUPPORT_NOT_DEPLOYED; /* or also typecast and nillable */
- }
- }
- break;
- case 1:
- /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(errn == 0) {
- if(eventCode == 0) {
- errn = decodeNBitUnsignedInteger(stream, 8, &(uint32));
- v2gLFA_EVFinePositioningSetupParametersType->SignalPulseDuration = (uint8_t)(uint32 + 0);
- } 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({urn:iso:15118:2:2016:MsgDataTypes}SignalPulseDuration) ? */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(eventCode == 0) {
- grammarID = 1242;
- } else {
- errn = EXI_DEVIANT_SUPPORT_NOT_DEPLOYED; /* or also typecast and nillable */
- }
- }
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 1358:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorOrder), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SignalPulseDuration)] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gLFA_EVFinePositioningSetupParametersType->SensorOrder.arrayLen < v2gLFA_EVFinePositioningSetupParametersType_SensorOrder_ARRAY_SIZE) {
- /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(errn == 0) {
- if(eventCode == 0) {
- errn = decodeNBitUnsignedInteger(stream, 8, &(uint32));
- v2gLFA_EVFinePositioningSetupParametersType->SensorOrder.array[v2gLFA_EVFinePositioningSetupParametersType->SensorOrder.arrayLen] = (uint8_t)(uint32 + 0);
- v2gLFA_EVFinePositioningSetupParametersType->SensorOrder.arrayLen++;
- } else {
- /* Second level event (e.g., xsi:type, xsi:nil, ...) */
- errn = EXI_UNSUPPORTED_EVENT_CODE_CHARACTERISTICS;
- }
- }
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- if(errn == 0) {
- /* valid EE for simple element START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorOrder) ? */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(eventCode == 0) {
- grammarID = 1359;
- } else {
- errn = EXI_DEVIANT_SUPPORT_NOT_DEPLOYED; /* or also typecast and nillable */
- }
- }
- break;
- case 1:
- /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(errn == 0) {
- if(eventCode == 0) {
- errn = decodeNBitUnsignedInteger(stream, 8, &(uint32));
- v2gLFA_EVFinePositioningSetupParametersType->SignalPulseDuration = (uint8_t)(uint32 + 0);
- } 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({urn:iso:15118:2:2016:MsgDataTypes}SignalPulseDuration) ? */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(eventCode == 0) {
- grammarID = 1242;
- } else {
- errn = EXI_DEVIANT_SUPPORT_NOT_DEPLOYED; /* or also typecast and nillable */
- }
- }
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 1359:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorOrder), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SignalPulseDuration)] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gLFA_EVFinePositioningSetupParametersType->SensorOrder.arrayLen < v2gLFA_EVFinePositioningSetupParametersType_SensorOrder_ARRAY_SIZE) {
- /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(errn == 0) {
- if(eventCode == 0) {
- errn = decodeNBitUnsignedInteger(stream, 8, &(uint32));
- v2gLFA_EVFinePositioningSetupParametersType->SensorOrder.array[v2gLFA_EVFinePositioningSetupParametersType->SensorOrder.arrayLen] = (uint8_t)(uint32 + 0);
- v2gLFA_EVFinePositioningSetupParametersType->SensorOrder.arrayLen++;
- } else {
- /* Second level event (e.g., xsi:type, xsi:nil, ...) */
- errn = EXI_UNSUPPORTED_EVENT_CODE_CHARACTERISTICS;
- }
- }
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- if(errn == 0) {
- /* valid EE for simple element START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorOrder) ? */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(eventCode == 0) {
- grammarID = 1360;
- } else {
- errn = EXI_DEVIANT_SUPPORT_NOT_DEPLOYED; /* or also typecast and nillable */
- }
- }
- break;
- case 1:
- /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(errn == 0) {
- if(eventCode == 0) {
- errn = decodeNBitUnsignedInteger(stream, 8, &(uint32));
- v2gLFA_EVFinePositioningSetupParametersType->SignalPulseDuration = (uint8_t)(uint32 + 0);
- } 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({urn:iso:15118:2:2016:MsgDataTypes}SignalPulseDuration) ? */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(eventCode == 0) {
- grammarID = 1242;
- } else {
- errn = EXI_DEVIANT_SUPPORT_NOT_DEPLOYED; /* or also typecast and nillable */
- }
- }
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 1360:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorOrder), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SignalPulseDuration)] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gLFA_EVFinePositioningSetupParametersType->SensorOrder.arrayLen < v2gLFA_EVFinePositioningSetupParametersType_SensorOrder_ARRAY_SIZE) {
- /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(errn == 0) {
- if(eventCode == 0) {
- errn = decodeNBitUnsignedInteger(stream, 8, &(uint32));
- v2gLFA_EVFinePositioningSetupParametersType->SensorOrder.array[v2gLFA_EVFinePositioningSetupParametersType->SensorOrder.arrayLen] = (uint8_t)(uint32 + 0);
- v2gLFA_EVFinePositioningSetupParametersType->SensorOrder.arrayLen++;
- } else {
- /* Second level event (e.g., xsi:type, xsi:nil, ...) */
- errn = EXI_UNSUPPORTED_EVENT_CODE_CHARACTERISTICS;
- }
- }
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- if(errn == 0) {
- /* valid EE for simple element START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorOrder) ? */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(eventCode == 0) {
- grammarID = 1361;
- } else {
- errn = EXI_DEVIANT_SUPPORT_NOT_DEPLOYED; /* or also typecast and nillable */
- }
- }
- break;
- case 1:
- /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(errn == 0) {
- if(eventCode == 0) {
- errn = decodeNBitUnsignedInteger(stream, 8, &(uint32));
- v2gLFA_EVFinePositioningSetupParametersType->SignalPulseDuration = (uint8_t)(uint32 + 0);
- } 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({urn:iso:15118:2:2016:MsgDataTypes}SignalPulseDuration) ? */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(eventCode == 0) {
- grammarID = 1242;
- } else {
- errn = EXI_DEVIANT_SUPPORT_NOT_DEPLOYED; /* or also typecast and nillable */
- }
- }
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 1361:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorOrder), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SignalPulseDuration)] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gLFA_EVFinePositioningSetupParametersType->SensorOrder.arrayLen < v2gLFA_EVFinePositioningSetupParametersType_SensorOrder_ARRAY_SIZE) {
- /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(errn == 0) {
- if(eventCode == 0) {
- errn = decodeNBitUnsignedInteger(stream, 8, &(uint32));
- v2gLFA_EVFinePositioningSetupParametersType->SensorOrder.array[v2gLFA_EVFinePositioningSetupParametersType->SensorOrder.arrayLen] = (uint8_t)(uint32 + 0);
- v2gLFA_EVFinePositioningSetupParametersType->SensorOrder.arrayLen++;
- } else {
- /* Second level event (e.g., xsi:type, xsi:nil, ...) */
- errn = EXI_UNSUPPORTED_EVENT_CODE_CHARACTERISTICS;
- }
- }
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- if(errn == 0) {
- /* valid EE for simple element START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorOrder) ? */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(eventCode == 0) {
- grammarID = 1362;
- } else {
- errn = EXI_DEVIANT_SUPPORT_NOT_DEPLOYED; /* or also typecast and nillable */
- }
- }
- break;
- case 1:
- /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(errn == 0) {
- if(eventCode == 0) {
- errn = decodeNBitUnsignedInteger(stream, 8, &(uint32));
- v2gLFA_EVFinePositioningSetupParametersType->SignalPulseDuration = (uint8_t)(uint32 + 0);
- } 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({urn:iso:15118:2:2016:MsgDataTypes}SignalPulseDuration) ? */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(eventCode == 0) {
- grammarID = 1242;
- } else {
- errn = EXI_DEVIANT_SUPPORT_NOT_DEPLOYED; /* or also typecast and nillable */
- }
- }
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 1362:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorOrder), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SignalPulseDuration)] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gLFA_EVFinePositioningSetupParametersType->SensorOrder.arrayLen < v2gLFA_EVFinePositioningSetupParametersType_SensorOrder_ARRAY_SIZE) {
- /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(errn == 0) {
- if(eventCode == 0) {
- errn = decodeNBitUnsignedInteger(stream, 8, &(uint32));
- v2gLFA_EVFinePositioningSetupParametersType->SensorOrder.array[v2gLFA_EVFinePositioningSetupParametersType->SensorOrder.arrayLen] = (uint8_t)(uint32 + 0);
- v2gLFA_EVFinePositioningSetupParametersType->SensorOrder.arrayLen++;
- } else {
- /* Second level event (e.g., xsi:type, xsi:nil, ...) */
- errn = EXI_UNSUPPORTED_EVENT_CODE_CHARACTERISTICS;
- }
- }
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- if(errn == 0) {
- /* valid EE for simple element START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorOrder) ? */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(eventCode == 0) {
- grammarID = 1363;
- } else {
- errn = EXI_DEVIANT_SUPPORT_NOT_DEPLOYED; /* or also typecast and nillable */
- }
- }
- break;
- case 1:
- /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(errn == 0) {
- if(eventCode == 0) {
- errn = decodeNBitUnsignedInteger(stream, 8, &(uint32));
- v2gLFA_EVFinePositioningSetupParametersType->SignalPulseDuration = (uint8_t)(uint32 + 0);
- } 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({urn:iso:15118:2:2016:MsgDataTypes}SignalPulseDuration) ? */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(eventCode == 0) {
- grammarID = 1242;
- } else {
- errn = EXI_DEVIANT_SUPPORT_NOT_DEPLOYED; /* or also typecast and nillable */
- }
- }
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 1363:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorOrder), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SignalPulseDuration)] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gLFA_EVFinePositioningSetupParametersType->SensorOrder.arrayLen < v2gLFA_EVFinePositioningSetupParametersType_SensorOrder_ARRAY_SIZE) {
- /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(errn == 0) {
- if(eventCode == 0) {
- errn = decodeNBitUnsignedInteger(stream, 8, &(uint32));
- v2gLFA_EVFinePositioningSetupParametersType->SensorOrder.array[v2gLFA_EVFinePositioningSetupParametersType->SensorOrder.arrayLen] = (uint8_t)(uint32 + 0);
- v2gLFA_EVFinePositioningSetupParametersType->SensorOrder.arrayLen++;
- } else {
- /* Second level event (e.g., xsi:type, xsi:nil, ...) */
- errn = EXI_UNSUPPORTED_EVENT_CODE_CHARACTERISTICS;
- }
- }
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- if(errn == 0) {
- /* valid EE for simple element START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorOrder) ? */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(eventCode == 0) {
- grammarID = 1364;
- } else {
- errn = EXI_DEVIANT_SUPPORT_NOT_DEPLOYED; /* or also typecast and nillable */
- }
- }
- break;
- case 1:
- /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(errn == 0) {
- if(eventCode == 0) {
- errn = decodeNBitUnsignedInteger(stream, 8, &(uint32));
- v2gLFA_EVFinePositioningSetupParametersType->SignalPulseDuration = (uint8_t)(uint32 + 0);
- } 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({urn:iso:15118:2:2016:MsgDataTypes}SignalPulseDuration) ? */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(eventCode == 0) {
- grammarID = 1242;
- } else {
- errn = EXI_DEVIANT_SUPPORT_NOT_DEPLOYED; /* or also typecast and nillable */
- }
- }
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 1364:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorOrder), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SignalPulseDuration)] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gLFA_EVFinePositioningSetupParametersType->SensorOrder.arrayLen < v2gLFA_EVFinePositioningSetupParametersType_SensorOrder_ARRAY_SIZE) {
- /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(errn == 0) {
- if(eventCode == 0) {
- errn = decodeNBitUnsignedInteger(stream, 8, &(uint32));
- v2gLFA_EVFinePositioningSetupParametersType->SensorOrder.array[v2gLFA_EVFinePositioningSetupParametersType->SensorOrder.arrayLen] = (uint8_t)(uint32 + 0);
- v2gLFA_EVFinePositioningSetupParametersType->SensorOrder.arrayLen++;
- } else {
- /* Second level event (e.g., xsi:type, xsi:nil, ...) */
- errn = EXI_UNSUPPORTED_EVENT_CODE_CHARACTERISTICS;
- }
- }
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- if(errn == 0) {
- /* valid EE for simple element START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorOrder) ? */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(eventCode == 0) {
- grammarID = 1365;
- } else {
- errn = EXI_DEVIANT_SUPPORT_NOT_DEPLOYED; /* or also typecast and nillable */
- }
- }
- break;
- case 1:
- /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(errn == 0) {
- if(eventCode == 0) {
- errn = decodeNBitUnsignedInteger(stream, 8, &(uint32));
- v2gLFA_EVFinePositioningSetupParametersType->SignalPulseDuration = (uint8_t)(uint32 + 0);
- } 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({urn:iso:15118:2:2016:MsgDataTypes}SignalPulseDuration) ? */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(eventCode == 0) {
- grammarID = 1242;
- } else {
- errn = EXI_DEVIANT_SUPPORT_NOT_DEPLOYED; /* or also typecast and nillable */
- }
- }
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 1365:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorOrder), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SignalPulseDuration)] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gLFA_EVFinePositioningSetupParametersType->SensorOrder.arrayLen < v2gLFA_EVFinePositioningSetupParametersType_SensorOrder_ARRAY_SIZE) {
- /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(errn == 0) {
- if(eventCode == 0) {
- errn = decodeNBitUnsignedInteger(stream, 8, &(uint32));
- v2gLFA_EVFinePositioningSetupParametersType->SensorOrder.array[v2gLFA_EVFinePositioningSetupParametersType->SensorOrder.arrayLen] = (uint8_t)(uint32 + 0);
- v2gLFA_EVFinePositioningSetupParametersType->SensorOrder.arrayLen++;
- } else {
- /* Second level event (e.g., xsi:type, xsi:nil, ...) */
- errn = EXI_UNSUPPORTED_EVENT_CODE_CHARACTERISTICS;
- }
- }
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- if(errn == 0) {
- /* valid EE for simple element START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorOrder) ? */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(eventCode == 0) {
- grammarID = 1366;
- } else {
- errn = EXI_DEVIANT_SUPPORT_NOT_DEPLOYED; /* or also typecast and nillable */
- }
- }
- break;
- case 1:
- /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(errn == 0) {
- if(eventCode == 0) {
- errn = decodeNBitUnsignedInteger(stream, 8, &(uint32));
- v2gLFA_EVFinePositioningSetupParametersType->SignalPulseDuration = (uint8_t)(uint32 + 0);
- } 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({urn:iso:15118:2:2016:MsgDataTypes}SignalPulseDuration) ? */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(eventCode == 0) {
- grammarID = 1242;
- } else {
- errn = EXI_DEVIANT_SUPPORT_NOT_DEPLOYED; /* or also typecast and nillable */
- }
- }
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 1366:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorOrder), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SignalPulseDuration)] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gLFA_EVFinePositioningSetupParametersType->SensorOrder.arrayLen < v2gLFA_EVFinePositioningSetupParametersType_SensorOrder_ARRAY_SIZE) {
- /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(errn == 0) {
- if(eventCode == 0) {
- errn = decodeNBitUnsignedInteger(stream, 8, &(uint32));
- v2gLFA_EVFinePositioningSetupParametersType->SensorOrder.array[v2gLFA_EVFinePositioningSetupParametersType->SensorOrder.arrayLen] = (uint8_t)(uint32 + 0);
- v2gLFA_EVFinePositioningSetupParametersType->SensorOrder.arrayLen++;
- } else {
- /* Second level event (e.g., xsi:type, xsi:nil, ...) */
- errn = EXI_UNSUPPORTED_EVENT_CODE_CHARACTERISTICS;
- }
- }
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- if(errn == 0) {
- /* valid EE for simple element START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorOrder) ? */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(eventCode == 0) {
- grammarID = 1367;
- } else {
- errn = EXI_DEVIANT_SUPPORT_NOT_DEPLOYED; /* or also typecast and nillable */
- }
- }
- break;
- case 1:
- /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(errn == 0) {
- if(eventCode == 0) {
- errn = decodeNBitUnsignedInteger(stream, 8, &(uint32));
- v2gLFA_EVFinePositioningSetupParametersType->SignalPulseDuration = (uint8_t)(uint32 + 0);
- } 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({urn:iso:15118:2:2016:MsgDataTypes}SignalPulseDuration) ? */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(eventCode == 0) {
- grammarID = 1242;
- } else {
- errn = EXI_DEVIANT_SUPPORT_NOT_DEPLOYED; /* or also typecast and nillable */
- }
- }
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 1367:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorOrder), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SignalPulseDuration)] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gLFA_EVFinePositioningSetupParametersType->SensorOrder.arrayLen < v2gLFA_EVFinePositioningSetupParametersType_SensorOrder_ARRAY_SIZE) {
- /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(errn == 0) {
- if(eventCode == 0) {
- errn = decodeNBitUnsignedInteger(stream, 8, &(uint32));
- v2gLFA_EVFinePositioningSetupParametersType->SensorOrder.array[v2gLFA_EVFinePositioningSetupParametersType->SensorOrder.arrayLen] = (uint8_t)(uint32 + 0);
- v2gLFA_EVFinePositioningSetupParametersType->SensorOrder.arrayLen++;
- } else {
- /* Second level event (e.g., xsi:type, xsi:nil, ...) */
- errn = EXI_UNSUPPORTED_EVENT_CODE_CHARACTERISTICS;
- }
- }
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- if(errn == 0) {
- /* valid EE for simple element START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorOrder) ? */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(eventCode == 0) {
- grammarID = 1368;
- } else {
- errn = EXI_DEVIANT_SUPPORT_NOT_DEPLOYED; /* or also typecast and nillable */
- }
- }
- break;
- case 1:
- /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(errn == 0) {
- if(eventCode == 0) {
- errn = decodeNBitUnsignedInteger(stream, 8, &(uint32));
- v2gLFA_EVFinePositioningSetupParametersType->SignalPulseDuration = (uint8_t)(uint32 + 0);
- } 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({urn:iso:15118:2:2016:MsgDataTypes}SignalPulseDuration) ? */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(eventCode == 0) {
- grammarID = 1242;
- } else {
- errn = EXI_DEVIANT_SUPPORT_NOT_DEPLOYED; /* or also typecast and nillable */
- }
- }
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 1368:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorOrder), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SignalPulseDuration)] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gLFA_EVFinePositioningSetupParametersType->SensorOrder.arrayLen < v2gLFA_EVFinePositioningSetupParametersType_SensorOrder_ARRAY_SIZE) {
- /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(errn == 0) {
- if(eventCode == 0) {
- errn = decodeNBitUnsignedInteger(stream, 8, &(uint32));
- v2gLFA_EVFinePositioningSetupParametersType->SensorOrder.array[v2gLFA_EVFinePositioningSetupParametersType->SensorOrder.arrayLen] = (uint8_t)(uint32 + 0);
- v2gLFA_EVFinePositioningSetupParametersType->SensorOrder.arrayLen++;
- } else {
- /* Second level event (e.g., xsi:type, xsi:nil, ...) */
- errn = EXI_UNSUPPORTED_EVENT_CODE_CHARACTERISTICS;
- }
- }
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- if(errn == 0) {
- /* valid EE for simple element START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorOrder) ? */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(eventCode == 0) {
- grammarID = 1369;
- } else {
- errn = EXI_DEVIANT_SUPPORT_NOT_DEPLOYED; /* or also typecast and nillable */
- }
- }
- break;
- case 1:
- /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(errn == 0) {
- if(eventCode == 0) {
- errn = decodeNBitUnsignedInteger(stream, 8, &(uint32));
- v2gLFA_EVFinePositioningSetupParametersType->SignalPulseDuration = (uint8_t)(uint32 + 0);
- } 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({urn:iso:15118:2:2016:MsgDataTypes}SignalPulseDuration) ? */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(eventCode == 0) {
- grammarID = 1242;
- } else {
- errn = EXI_DEVIANT_SUPPORT_NOT_DEPLOYED; /* or also typecast and nillable */
- }
- }
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 1369:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorOrder), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SignalPulseDuration)] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gLFA_EVFinePositioningSetupParametersType->SensorOrder.arrayLen < v2gLFA_EVFinePositioningSetupParametersType_SensorOrder_ARRAY_SIZE) {
- /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(errn == 0) {
- if(eventCode == 0) {
- errn = decodeNBitUnsignedInteger(stream, 8, &(uint32));
- v2gLFA_EVFinePositioningSetupParametersType->SensorOrder.array[v2gLFA_EVFinePositioningSetupParametersType->SensorOrder.arrayLen] = (uint8_t)(uint32 + 0);
- v2gLFA_EVFinePositioningSetupParametersType->SensorOrder.arrayLen++;
- } else {
- /* Second level event (e.g., xsi:type, xsi:nil, ...) */
- errn = EXI_UNSUPPORTED_EVENT_CODE_CHARACTERISTICS;
- }
- }
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- if(errn == 0) {
- /* valid EE for simple element START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorOrder) ? */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(eventCode == 0) {
- grammarID = 1370;
- } else {
- errn = EXI_DEVIANT_SUPPORT_NOT_DEPLOYED; /* or also typecast and nillable */
- }
- }
- break;
- case 1:
- /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(errn == 0) {
- if(eventCode == 0) {
- errn = decodeNBitUnsignedInteger(stream, 8, &(uint32));
- v2gLFA_EVFinePositioningSetupParametersType->SignalPulseDuration = (uint8_t)(uint32 + 0);
- } 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({urn:iso:15118:2:2016:MsgDataTypes}SignalPulseDuration) ? */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(eventCode == 0) {
- grammarID = 1242;
- } else {
- errn = EXI_DEVIANT_SUPPORT_NOT_DEPLOYED; /* or also typecast and nillable */
- }
- }
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 1370:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorOrder), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SignalPulseDuration)] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gLFA_EVFinePositioningSetupParametersType->SensorOrder.arrayLen < v2gLFA_EVFinePositioningSetupParametersType_SensorOrder_ARRAY_SIZE) {
- /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(errn == 0) {
- if(eventCode == 0) {
- errn = decodeNBitUnsignedInteger(stream, 8, &(uint32));
- v2gLFA_EVFinePositioningSetupParametersType->SensorOrder.array[v2gLFA_EVFinePositioningSetupParametersType->SensorOrder.arrayLen] = (uint8_t)(uint32 + 0);
- v2gLFA_EVFinePositioningSetupParametersType->SensorOrder.arrayLen++;
- } else {
- /* Second level event (e.g., xsi:type, xsi:nil, ...) */
- errn = EXI_UNSUPPORTED_EVENT_CODE_CHARACTERISTICS;
- }
- }
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- if(errn == 0) {
- /* valid EE for simple element START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorOrder) ? */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(eventCode == 0) {
- grammarID = 1371;
- } else {
- errn = EXI_DEVIANT_SUPPORT_NOT_DEPLOYED; /* or also typecast and nillable */
- }
- }
- break;
- case 1:
- /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(errn == 0) {
- if(eventCode == 0) {
- errn = decodeNBitUnsignedInteger(stream, 8, &(uint32));
- v2gLFA_EVFinePositioningSetupParametersType->SignalPulseDuration = (uint8_t)(uint32 + 0);
- } 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({urn:iso:15118:2:2016:MsgDataTypes}SignalPulseDuration) ? */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(eventCode == 0) {
- grammarID = 1242;
- } else {
- errn = EXI_DEVIANT_SUPPORT_NOT_DEPLOYED; /* or also typecast and nillable */
- }
- }
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 1371:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorOrder), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SignalPulseDuration)] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gLFA_EVFinePositioningSetupParametersType->SensorOrder.arrayLen < v2gLFA_EVFinePositioningSetupParametersType_SensorOrder_ARRAY_SIZE) {
- /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(errn == 0) {
- if(eventCode == 0) {
- errn = decodeNBitUnsignedInteger(stream, 8, &(uint32));
- v2gLFA_EVFinePositioningSetupParametersType->SensorOrder.array[v2gLFA_EVFinePositioningSetupParametersType->SensorOrder.arrayLen] = (uint8_t)(uint32 + 0);
- v2gLFA_EVFinePositioningSetupParametersType->SensorOrder.arrayLen++;
- } else {
- /* Second level event (e.g., xsi:type, xsi:nil, ...) */
- errn = EXI_UNSUPPORTED_EVENT_CODE_CHARACTERISTICS;
- }
- }
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- if(errn == 0) {
- /* valid EE for simple element START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorOrder) ? */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(eventCode == 0) {
- grammarID = 1372;
- } else {
- errn = EXI_DEVIANT_SUPPORT_NOT_DEPLOYED; /* or also typecast and nillable */
- }
- }
- break;
- case 1:
- /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(errn == 0) {
- if(eventCode == 0) {
- errn = decodeNBitUnsignedInteger(stream, 8, &(uint32));
- v2gLFA_EVFinePositioningSetupParametersType->SignalPulseDuration = (uint8_t)(uint32 + 0);
- } 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({urn:iso:15118:2:2016:MsgDataTypes}SignalPulseDuration) ? */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(eventCode == 0) {
- grammarID = 1242;
- } else {
- errn = EXI_DEVIANT_SUPPORT_NOT_DEPLOYED; /* or also typecast and nillable */
- }
- }
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 1372:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorOrder), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SignalPulseDuration)] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gLFA_EVFinePositioningSetupParametersType->SensorOrder.arrayLen < v2gLFA_EVFinePositioningSetupParametersType_SensorOrder_ARRAY_SIZE) {
- /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(errn == 0) {
- if(eventCode == 0) {
- errn = decodeNBitUnsignedInteger(stream, 8, &(uint32));
- v2gLFA_EVFinePositioningSetupParametersType->SensorOrder.array[v2gLFA_EVFinePositioningSetupParametersType->SensorOrder.arrayLen] = (uint8_t)(uint32 + 0);
- v2gLFA_EVFinePositioningSetupParametersType->SensorOrder.arrayLen++;
- } else {
- /* Second level event (e.g., xsi:type, xsi:nil, ...) */
- errn = EXI_UNSUPPORTED_EVENT_CODE_CHARACTERISTICS;
- }
- }
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- if(errn == 0) {
- /* valid EE for simple element START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorOrder) ? */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(eventCode == 0) {
- grammarID = 1373;
- } else {
- errn = EXI_DEVIANT_SUPPORT_NOT_DEPLOYED; /* or also typecast and nillable */
- }
- }
- break;
- case 1:
- /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(errn == 0) {
- if(eventCode == 0) {
- errn = decodeNBitUnsignedInteger(stream, 8, &(uint32));
- v2gLFA_EVFinePositioningSetupParametersType->SignalPulseDuration = (uint8_t)(uint32 + 0);
- } 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({urn:iso:15118:2:2016:MsgDataTypes}SignalPulseDuration) ? */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(eventCode == 0) {
- grammarID = 1242;
- } else {
- errn = EXI_DEVIANT_SUPPORT_NOT_DEPLOYED; /* or also typecast and nillable */
- }
- }
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 1373:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorOrder), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SignalPulseDuration)] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gLFA_EVFinePositioningSetupParametersType->SensorOrder.arrayLen < v2gLFA_EVFinePositioningSetupParametersType_SensorOrder_ARRAY_SIZE) {
- /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(errn == 0) {
- if(eventCode == 0) {
- errn = decodeNBitUnsignedInteger(stream, 8, &(uint32));
- v2gLFA_EVFinePositioningSetupParametersType->SensorOrder.array[v2gLFA_EVFinePositioningSetupParametersType->SensorOrder.arrayLen] = (uint8_t)(uint32 + 0);
- v2gLFA_EVFinePositioningSetupParametersType->SensorOrder.arrayLen++;
- } else {
- /* Second level event (e.g., xsi:type, xsi:nil, ...) */
- errn = EXI_UNSUPPORTED_EVENT_CODE_CHARACTERISTICS;
- }
- }
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- if(errn == 0) {
- /* valid EE for simple element START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorOrder) ? */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(eventCode == 0) {
- grammarID = 1374;
- } else {
- errn = EXI_DEVIANT_SUPPORT_NOT_DEPLOYED; /* or also typecast and nillable */
- }
- }
- break;
- case 1:
- /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(errn == 0) {
- if(eventCode == 0) {
- errn = decodeNBitUnsignedInteger(stream, 8, &(uint32));
- v2gLFA_EVFinePositioningSetupParametersType->SignalPulseDuration = (uint8_t)(uint32 + 0);
- } 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({urn:iso:15118:2:2016:MsgDataTypes}SignalPulseDuration) ? */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(eventCode == 0) {
- grammarID = 1242;
- } else {
- errn = EXI_DEVIANT_SUPPORT_NOT_DEPLOYED; /* or also typecast and nillable */
- }
- }
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 1374:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorOrder), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SignalPulseDuration)] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gLFA_EVFinePositioningSetupParametersType->SensorOrder.arrayLen < v2gLFA_EVFinePositioningSetupParametersType_SensorOrder_ARRAY_SIZE) {
- /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(errn == 0) {
- if(eventCode == 0) {
- errn = decodeNBitUnsignedInteger(stream, 8, &(uint32));
- v2gLFA_EVFinePositioningSetupParametersType->SensorOrder.array[v2gLFA_EVFinePositioningSetupParametersType->SensorOrder.arrayLen] = (uint8_t)(uint32 + 0);
- v2gLFA_EVFinePositioningSetupParametersType->SensorOrder.arrayLen++;
- } else {
- /* Second level event (e.g., xsi:type, xsi:nil, ...) */
- errn = EXI_UNSUPPORTED_EVENT_CODE_CHARACTERISTICS;
- }
- }
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- if(errn == 0) {
- /* valid EE for simple element START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorOrder) ? */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(eventCode == 0) {
- grammarID = 1375;
- } else {
- errn = EXI_DEVIANT_SUPPORT_NOT_DEPLOYED; /* or also typecast and nillable */
- }
- }
- break;
- case 1:
- /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(errn == 0) {
- if(eventCode == 0) {
- errn = decodeNBitUnsignedInteger(stream, 8, &(uint32));
- v2gLFA_EVFinePositioningSetupParametersType->SignalPulseDuration = (uint8_t)(uint32 + 0);
- } 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({urn:iso:15118:2:2016:MsgDataTypes}SignalPulseDuration) ? */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(eventCode == 0) {
- grammarID = 1242;
- } else {
- errn = EXI_DEVIANT_SUPPORT_NOT_DEPLOYED; /* or also typecast and nillable */
- }
- }
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 1375:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorOrder), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SignalPulseDuration)] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gLFA_EVFinePositioningSetupParametersType->SensorOrder.arrayLen < v2gLFA_EVFinePositioningSetupParametersType_SensorOrder_ARRAY_SIZE) {
- /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(errn == 0) {
- if(eventCode == 0) {
- errn = decodeNBitUnsignedInteger(stream, 8, &(uint32));
- v2gLFA_EVFinePositioningSetupParametersType->SensorOrder.array[v2gLFA_EVFinePositioningSetupParametersType->SensorOrder.arrayLen] = (uint8_t)(uint32 + 0);
- v2gLFA_EVFinePositioningSetupParametersType->SensorOrder.arrayLen++;
- } else {
- /* Second level event (e.g., xsi:type, xsi:nil, ...) */
- errn = EXI_UNSUPPORTED_EVENT_CODE_CHARACTERISTICS;
- }
- }
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- if(errn == 0) {
- /* valid EE for simple element START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorOrder) ? */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(eventCode == 0) {
- grammarID = 1376;
- } else {
- errn = EXI_DEVIANT_SUPPORT_NOT_DEPLOYED; /* or also typecast and nillable */
- }
- }
- break;
- case 1:
- /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(errn == 0) {
- if(eventCode == 0) {
- errn = decodeNBitUnsignedInteger(stream, 8, &(uint32));
- v2gLFA_EVFinePositioningSetupParametersType->SignalPulseDuration = (uint8_t)(uint32 + 0);
- } 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({urn:iso:15118:2:2016:MsgDataTypes}SignalPulseDuration) ? */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(eventCode == 0) {
- grammarID = 1242;
- } else {
- errn = EXI_DEVIANT_SUPPORT_NOT_DEPLOYED; /* or also typecast and nillable */
- }
- }
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 1376:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorOrder), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SignalPulseDuration)] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gLFA_EVFinePositioningSetupParametersType->SensorOrder.arrayLen < v2gLFA_EVFinePositioningSetupParametersType_SensorOrder_ARRAY_SIZE) {
- /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(errn == 0) {
- if(eventCode == 0) {
- errn = decodeNBitUnsignedInteger(stream, 8, &(uint32));
- v2gLFA_EVFinePositioningSetupParametersType->SensorOrder.array[v2gLFA_EVFinePositioningSetupParametersType->SensorOrder.arrayLen] = (uint8_t)(uint32 + 0);
- v2gLFA_EVFinePositioningSetupParametersType->SensorOrder.arrayLen++;
- } else {
- /* Second level event (e.g., xsi:type, xsi:nil, ...) */
- errn = EXI_UNSUPPORTED_EVENT_CODE_CHARACTERISTICS;
- }
- }
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- if(errn == 0) {
- /* valid EE for simple element START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorOrder) ? */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(eventCode == 0) {
- grammarID = 1377;
- } else {
- errn = EXI_DEVIANT_SUPPORT_NOT_DEPLOYED; /* or also typecast and nillable */
- }
- }
- break;
- case 1:
- /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(errn == 0) {
- if(eventCode == 0) {
- errn = decodeNBitUnsignedInteger(stream, 8, &(uint32));
- v2gLFA_EVFinePositioningSetupParametersType->SignalPulseDuration = (uint8_t)(uint32 + 0);
- } 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({urn:iso:15118:2:2016:MsgDataTypes}SignalPulseDuration) ? */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(eventCode == 0) {
- grammarID = 1242;
- } else {
- errn = EXI_DEVIANT_SUPPORT_NOT_DEPLOYED; /* or also typecast and nillable */
- }
- }
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 1377:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorOrder), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SignalPulseDuration)] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gLFA_EVFinePositioningSetupParametersType->SensorOrder.arrayLen < v2gLFA_EVFinePositioningSetupParametersType_SensorOrder_ARRAY_SIZE) {
- /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(errn == 0) {
- if(eventCode == 0) {
- errn = decodeNBitUnsignedInteger(stream, 8, &(uint32));
- v2gLFA_EVFinePositioningSetupParametersType->SensorOrder.array[v2gLFA_EVFinePositioningSetupParametersType->SensorOrder.arrayLen] = (uint8_t)(uint32 + 0);
- v2gLFA_EVFinePositioningSetupParametersType->SensorOrder.arrayLen++;
- } else {
- /* Second level event (e.g., xsi:type, xsi:nil, ...) */
- errn = EXI_UNSUPPORTED_EVENT_CODE_CHARACTERISTICS;
- }
- }
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- if(errn == 0) {
- /* valid EE for simple element START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorOrder) ? */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(eventCode == 0) {
- grammarID = 1378;
- } else {
- errn = EXI_DEVIANT_SUPPORT_NOT_DEPLOYED; /* or also typecast and nillable */
- }
- }
- break;
- case 1:
- /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(errn == 0) {
- if(eventCode == 0) {
- errn = decodeNBitUnsignedInteger(stream, 8, &(uint32));
- v2gLFA_EVFinePositioningSetupParametersType->SignalPulseDuration = (uint8_t)(uint32 + 0);
- } 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({urn:iso:15118:2:2016:MsgDataTypes}SignalPulseDuration) ? */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(eventCode == 0) {
- grammarID = 1242;
- } else {
- errn = EXI_DEVIANT_SUPPORT_NOT_DEPLOYED; /* or also typecast and nillable */
- }
- }
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 1378:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorOrder), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SignalPulseDuration)] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gLFA_EVFinePositioningSetupParametersType->SensorOrder.arrayLen < v2gLFA_EVFinePositioningSetupParametersType_SensorOrder_ARRAY_SIZE) {
- /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(errn == 0) {
- if(eventCode == 0) {
- errn = decodeNBitUnsignedInteger(stream, 8, &(uint32));
- v2gLFA_EVFinePositioningSetupParametersType->SensorOrder.array[v2gLFA_EVFinePositioningSetupParametersType->SensorOrder.arrayLen] = (uint8_t)(uint32 + 0);
- v2gLFA_EVFinePositioningSetupParametersType->SensorOrder.arrayLen++;
- } else {
- /* Second level event (e.g., xsi:type, xsi:nil, ...) */
- errn = EXI_UNSUPPORTED_EVENT_CODE_CHARACTERISTICS;
- }
- }
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- if(errn == 0) {
- /* valid EE for simple element START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorOrder) ? */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(eventCode == 0) {
- grammarID = 1379;
- } else {
- errn = EXI_DEVIANT_SUPPORT_NOT_DEPLOYED; /* or also typecast and nillable */
- }
- }
- break;
- case 1:
- /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(errn == 0) {
- if(eventCode == 0) {
- errn = decodeNBitUnsignedInteger(stream, 8, &(uint32));
- v2gLFA_EVFinePositioningSetupParametersType->SignalPulseDuration = (uint8_t)(uint32 + 0);
- } 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({urn:iso:15118:2:2016:MsgDataTypes}SignalPulseDuration) ? */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(eventCode == 0) {
- grammarID = 1242;
- } else {
- errn = EXI_DEVIANT_SUPPORT_NOT_DEPLOYED; /* or also typecast and nillable */
- }
- }
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 1379:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorOrder), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SignalPulseDuration)] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gLFA_EVFinePositioningSetupParametersType->SensorOrder.arrayLen < v2gLFA_EVFinePositioningSetupParametersType_SensorOrder_ARRAY_SIZE) {
- /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(errn == 0) {
- if(eventCode == 0) {
- errn = decodeNBitUnsignedInteger(stream, 8, &(uint32));
- v2gLFA_EVFinePositioningSetupParametersType->SensorOrder.array[v2gLFA_EVFinePositioningSetupParametersType->SensorOrder.arrayLen] = (uint8_t)(uint32 + 0);
- v2gLFA_EVFinePositioningSetupParametersType->SensorOrder.arrayLen++;
- } else {
- /* Second level event (e.g., xsi:type, xsi:nil, ...) */
- errn = EXI_UNSUPPORTED_EVENT_CODE_CHARACTERISTICS;
- }
- }
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- if(errn == 0) {
- /* valid EE for simple element START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorOrder) ? */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(eventCode == 0) {
- grammarID = 1380;
- } else {
- errn = EXI_DEVIANT_SUPPORT_NOT_DEPLOYED; /* or also typecast and nillable */
- }
- }
- break;
- case 1:
- /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(errn == 0) {
- if(eventCode == 0) {
- errn = decodeNBitUnsignedInteger(stream, 8, &(uint32));
- v2gLFA_EVFinePositioningSetupParametersType->SignalPulseDuration = (uint8_t)(uint32 + 0);
- } 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({urn:iso:15118:2:2016:MsgDataTypes}SignalPulseDuration) ? */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(eventCode == 0) {
- grammarID = 1242;
- } else {
- errn = EXI_DEVIANT_SUPPORT_NOT_DEPLOYED; /* or also typecast and nillable */
- }
- }
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 1380:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorOrder), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SignalPulseDuration)] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gLFA_EVFinePositioningSetupParametersType->SensorOrder.arrayLen < v2gLFA_EVFinePositioningSetupParametersType_SensorOrder_ARRAY_SIZE) {
- /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(errn == 0) {
- if(eventCode == 0) {
- errn = decodeNBitUnsignedInteger(stream, 8, &(uint32));
- v2gLFA_EVFinePositioningSetupParametersType->SensorOrder.array[v2gLFA_EVFinePositioningSetupParametersType->SensorOrder.arrayLen] = (uint8_t)(uint32 + 0);
- v2gLFA_EVFinePositioningSetupParametersType->SensorOrder.arrayLen++;
- } else {
- /* Second level event (e.g., xsi:type, xsi:nil, ...) */
- errn = EXI_UNSUPPORTED_EVENT_CODE_CHARACTERISTICS;
- }
- }
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- if(errn == 0) {
- /* valid EE for simple element START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorOrder) ? */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(eventCode == 0) {
- grammarID = 1381;
- } else {
- errn = EXI_DEVIANT_SUPPORT_NOT_DEPLOYED; /* or also typecast and nillable */
- }
- }
- break;
- case 1:
- /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(errn == 0) {
- if(eventCode == 0) {
- errn = decodeNBitUnsignedInteger(stream, 8, &(uint32));
- v2gLFA_EVFinePositioningSetupParametersType->SignalPulseDuration = (uint8_t)(uint32 + 0);
- } 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({urn:iso:15118:2:2016:MsgDataTypes}SignalPulseDuration) ? */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(eventCode == 0) {
- grammarID = 1242;
- } else {
- errn = EXI_DEVIANT_SUPPORT_NOT_DEPLOYED; /* or also typecast and nillable */
- }
- }
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 1381:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorOrder), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SignalPulseDuration)] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gLFA_EVFinePositioningSetupParametersType->SensorOrder.arrayLen < v2gLFA_EVFinePositioningSetupParametersType_SensorOrder_ARRAY_SIZE) {
- /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(errn == 0) {
- if(eventCode == 0) {
- errn = decodeNBitUnsignedInteger(stream, 8, &(uint32));
- v2gLFA_EVFinePositioningSetupParametersType->SensorOrder.array[v2gLFA_EVFinePositioningSetupParametersType->SensorOrder.arrayLen] = (uint8_t)(uint32 + 0);
- v2gLFA_EVFinePositioningSetupParametersType->SensorOrder.arrayLen++;
- } else {
- /* Second level event (e.g., xsi:type, xsi:nil, ...) */
- errn = EXI_UNSUPPORTED_EVENT_CODE_CHARACTERISTICS;
- }
- }
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- if(errn == 0) {
- /* valid EE for simple element START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorOrder) ? */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(eventCode == 0) {
- grammarID = 1382;
- } else {
- errn = EXI_DEVIANT_SUPPORT_NOT_DEPLOYED; /* or also typecast and nillable */
- }
- }
- break;
- case 1:
- /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(errn == 0) {
- if(eventCode == 0) {
- errn = decodeNBitUnsignedInteger(stream, 8, &(uint32));
- v2gLFA_EVFinePositioningSetupParametersType->SignalPulseDuration = (uint8_t)(uint32 + 0);
- } 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({urn:iso:15118:2:2016:MsgDataTypes}SignalPulseDuration) ? */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(eventCode == 0) {
- grammarID = 1242;
- } else {
- errn = EXI_DEVIANT_SUPPORT_NOT_DEPLOYED; /* or also typecast and nillable */
- }
- }
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 1382:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorOrder), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SignalPulseDuration)] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gLFA_EVFinePositioningSetupParametersType->SensorOrder.arrayLen < v2gLFA_EVFinePositioningSetupParametersType_SensorOrder_ARRAY_SIZE) {
- /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(errn == 0) {
- if(eventCode == 0) {
- errn = decodeNBitUnsignedInteger(stream, 8, &(uint32));
- v2gLFA_EVFinePositioningSetupParametersType->SensorOrder.array[v2gLFA_EVFinePositioningSetupParametersType->SensorOrder.arrayLen] = (uint8_t)(uint32 + 0);
- v2gLFA_EVFinePositioningSetupParametersType->SensorOrder.arrayLen++;
- } else {
- /* Second level event (e.g., xsi:type, xsi:nil, ...) */
- errn = EXI_UNSUPPORTED_EVENT_CODE_CHARACTERISTICS;
- }
- }
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- if(errn == 0) {
- /* valid EE for simple element START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorOrder) ? */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(eventCode == 0) {
- grammarID = 1383;
- } else {
- errn = EXI_DEVIANT_SUPPORT_NOT_DEPLOYED; /* or also typecast and nillable */
- }
- }
- break;
- case 1:
- /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(errn == 0) {
- if(eventCode == 0) {
- errn = decodeNBitUnsignedInteger(stream, 8, &(uint32));
- v2gLFA_EVFinePositioningSetupParametersType->SignalPulseDuration = (uint8_t)(uint32 + 0);
- } 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({urn:iso:15118:2:2016:MsgDataTypes}SignalPulseDuration) ? */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(eventCode == 0) {
- grammarID = 1242;
- } else {
- errn = EXI_DEVIANT_SUPPORT_NOT_DEPLOYED; /* or also typecast and nillable */
- }
- }
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 1383:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorOrder), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SignalPulseDuration)] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gLFA_EVFinePositioningSetupParametersType->SensorOrder.arrayLen < v2gLFA_EVFinePositioningSetupParametersType_SensorOrder_ARRAY_SIZE) {
- /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(errn == 0) {
- if(eventCode == 0) {
- errn = decodeNBitUnsignedInteger(stream, 8, &(uint32));
- v2gLFA_EVFinePositioningSetupParametersType->SensorOrder.array[v2gLFA_EVFinePositioningSetupParametersType->SensorOrder.arrayLen] = (uint8_t)(uint32 + 0);
- v2gLFA_EVFinePositioningSetupParametersType->SensorOrder.arrayLen++;
- } else {
- /* Second level event (e.g., xsi:type, xsi:nil, ...) */
- errn = EXI_UNSUPPORTED_EVENT_CODE_CHARACTERISTICS;
- }
- }
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- if(errn == 0) {
- /* valid EE for simple element START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorOrder) ? */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(eventCode == 0) {
- grammarID = 1384;
- } else {
- errn = EXI_DEVIANT_SUPPORT_NOT_DEPLOYED; /* or also typecast and nillable */
- }
- }
- break;
- case 1:
- /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(errn == 0) {
- if(eventCode == 0) {
- errn = decodeNBitUnsignedInteger(stream, 8, &(uint32));
- v2gLFA_EVFinePositioningSetupParametersType->SignalPulseDuration = (uint8_t)(uint32 + 0);
- } 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({urn:iso:15118:2:2016:MsgDataTypes}SignalPulseDuration) ? */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(eventCode == 0) {
- grammarID = 1242;
- } else {
- errn = EXI_DEVIANT_SUPPORT_NOT_DEPLOYED; /* or also typecast and nillable */
- }
- }
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 1384:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorOrder), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SignalPulseDuration)] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gLFA_EVFinePositioningSetupParametersType->SensorOrder.arrayLen < v2gLFA_EVFinePositioningSetupParametersType_SensorOrder_ARRAY_SIZE) {
- /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(errn == 0) {
- if(eventCode == 0) {
- errn = decodeNBitUnsignedInteger(stream, 8, &(uint32));
- v2gLFA_EVFinePositioningSetupParametersType->SensorOrder.array[v2gLFA_EVFinePositioningSetupParametersType->SensorOrder.arrayLen] = (uint8_t)(uint32 + 0);
- v2gLFA_EVFinePositioningSetupParametersType->SensorOrder.arrayLen++;
- } else {
- /* Second level event (e.g., xsi:type, xsi:nil, ...) */
- errn = EXI_UNSUPPORTED_EVENT_CODE_CHARACTERISTICS;
- }
- }
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- if(errn == 0) {
- /* valid EE for simple element START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorOrder) ? */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(eventCode == 0) {
- grammarID = 1385;
- } else {
- errn = EXI_DEVIANT_SUPPORT_NOT_DEPLOYED; /* or also typecast and nillable */
- }
- }
- break;
- case 1:
- /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(errn == 0) {
- if(eventCode == 0) {
- errn = decodeNBitUnsignedInteger(stream, 8, &(uint32));
- v2gLFA_EVFinePositioningSetupParametersType->SignalPulseDuration = (uint8_t)(uint32 + 0);
- } 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({urn:iso:15118:2:2016:MsgDataTypes}SignalPulseDuration) ? */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(eventCode == 0) {
- grammarID = 1242;
- } else {
- errn = EXI_DEVIANT_SUPPORT_NOT_DEPLOYED; /* or also typecast and nillable */
- }
- }
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 1385:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorOrder), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SignalPulseDuration)] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gLFA_EVFinePositioningSetupParametersType->SensorOrder.arrayLen < v2gLFA_EVFinePositioningSetupParametersType_SensorOrder_ARRAY_SIZE) {
- /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(errn == 0) {
- if(eventCode == 0) {
- errn = decodeNBitUnsignedInteger(stream, 8, &(uint32));
- v2gLFA_EVFinePositioningSetupParametersType->SensorOrder.array[v2gLFA_EVFinePositioningSetupParametersType->SensorOrder.arrayLen] = (uint8_t)(uint32 + 0);
- v2gLFA_EVFinePositioningSetupParametersType->SensorOrder.arrayLen++;
- } else {
- /* Second level event (e.g., xsi:type, xsi:nil, ...) */
- errn = EXI_UNSUPPORTED_EVENT_CODE_CHARACTERISTICS;
- }
- }
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- if(errn == 0) {
- /* valid EE for simple element START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorOrder) ? */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(eventCode == 0) {
- grammarID = 1386;
- } else {
- errn = EXI_DEVIANT_SUPPORT_NOT_DEPLOYED; /* or also typecast and nillable */
- }
- }
- break;
- case 1:
- /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(errn == 0) {
- if(eventCode == 0) {
- errn = decodeNBitUnsignedInteger(stream, 8, &(uint32));
- v2gLFA_EVFinePositioningSetupParametersType->SignalPulseDuration = (uint8_t)(uint32 + 0);
- } 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({urn:iso:15118:2:2016:MsgDataTypes}SignalPulseDuration) ? */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(eventCode == 0) {
- grammarID = 1242;
- } else {
- errn = EXI_DEVIANT_SUPPORT_NOT_DEPLOYED; /* or also typecast and nillable */
- }
- }
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 1386:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorOrder), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SignalPulseDuration)] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gLFA_EVFinePositioningSetupParametersType->SensorOrder.arrayLen < v2gLFA_EVFinePositioningSetupParametersType_SensorOrder_ARRAY_SIZE) {
- /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(errn == 0) {
- if(eventCode == 0) {
- errn = decodeNBitUnsignedInteger(stream, 8, &(uint32));
- v2gLFA_EVFinePositioningSetupParametersType->SensorOrder.array[v2gLFA_EVFinePositioningSetupParametersType->SensorOrder.arrayLen] = (uint8_t)(uint32 + 0);
- v2gLFA_EVFinePositioningSetupParametersType->SensorOrder.arrayLen++;
- } else {
- /* Second level event (e.g., xsi:type, xsi:nil, ...) */
- errn = EXI_UNSUPPORTED_EVENT_CODE_CHARACTERISTICS;
- }
- }
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- if(errn == 0) {
- /* valid EE for simple element START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorOrder) ? */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(eventCode == 0) {
- grammarID = 1387;
- } else {
- errn = EXI_DEVIANT_SUPPORT_NOT_DEPLOYED; /* or also typecast and nillable */
- }
- }
- break;
- case 1:
- /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(errn == 0) {
- if(eventCode == 0) {
- errn = decodeNBitUnsignedInteger(stream, 8, &(uint32));
- v2gLFA_EVFinePositioningSetupParametersType->SignalPulseDuration = (uint8_t)(uint32 + 0);
- } 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({urn:iso:15118:2:2016:MsgDataTypes}SignalPulseDuration) ? */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(eventCode == 0) {
- grammarID = 1242;
- } else {
- errn = EXI_DEVIANT_SUPPORT_NOT_DEPLOYED; /* or also typecast and nillable */
- }
- }
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 1387:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorOrder), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SignalPulseDuration)] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gLFA_EVFinePositioningSetupParametersType->SensorOrder.arrayLen < v2gLFA_EVFinePositioningSetupParametersType_SensorOrder_ARRAY_SIZE) {
- /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(errn == 0) {
- if(eventCode == 0) {
- errn = decodeNBitUnsignedInteger(stream, 8, &(uint32));
- v2gLFA_EVFinePositioningSetupParametersType->SensorOrder.array[v2gLFA_EVFinePositioningSetupParametersType->SensorOrder.arrayLen] = (uint8_t)(uint32 + 0);
- v2gLFA_EVFinePositioningSetupParametersType->SensorOrder.arrayLen++;
- } else {
- /* Second level event (e.g., xsi:type, xsi:nil, ...) */
- errn = EXI_UNSUPPORTED_EVENT_CODE_CHARACTERISTICS;
- }
- }
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- if(errn == 0) {
- /* valid EE for simple element START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorOrder) ? */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(eventCode == 0) {
- grammarID = 1388;
- } else {
- errn = EXI_DEVIANT_SUPPORT_NOT_DEPLOYED; /* or also typecast and nillable */
- }
- }
- break;
- case 1:
- /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(errn == 0) {
- if(eventCode == 0) {
- errn = decodeNBitUnsignedInteger(stream, 8, &(uint32));
- v2gLFA_EVFinePositioningSetupParametersType->SignalPulseDuration = (uint8_t)(uint32 + 0);
- } 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({urn:iso:15118:2:2016:MsgDataTypes}SignalPulseDuration) ? */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(eventCode == 0) {
- grammarID = 1242;
- } else {
- errn = EXI_DEVIANT_SUPPORT_NOT_DEPLOYED; /* or also typecast and nillable */
- }
- }
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 1388:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorOrder), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SignalPulseDuration)] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gLFA_EVFinePositioningSetupParametersType->SensorOrder.arrayLen < v2gLFA_EVFinePositioningSetupParametersType_SensorOrder_ARRAY_SIZE) {
- /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(errn == 0) {
- if(eventCode == 0) {
- errn = decodeNBitUnsignedInteger(stream, 8, &(uint32));
- v2gLFA_EVFinePositioningSetupParametersType->SensorOrder.array[v2gLFA_EVFinePositioningSetupParametersType->SensorOrder.arrayLen] = (uint8_t)(uint32 + 0);
- v2gLFA_EVFinePositioningSetupParametersType->SensorOrder.arrayLen++;
- } else {
- /* Second level event (e.g., xsi:type, xsi:nil, ...) */
- errn = EXI_UNSUPPORTED_EVENT_CODE_CHARACTERISTICS;
- }
- }
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- if(errn == 0) {
- /* valid EE for simple element START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorOrder) ? */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(eventCode == 0) {
- grammarID = 1389;
- } else {
- errn = EXI_DEVIANT_SUPPORT_NOT_DEPLOYED; /* or also typecast and nillable */
- }
- }
- break;
- case 1:
- /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(errn == 0) {
- if(eventCode == 0) {
- errn = decodeNBitUnsignedInteger(stream, 8, &(uint32));
- v2gLFA_EVFinePositioningSetupParametersType->SignalPulseDuration = (uint8_t)(uint32 + 0);
- } 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({urn:iso:15118:2:2016:MsgDataTypes}SignalPulseDuration) ? */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(eventCode == 0) {
- grammarID = 1242;
- } else {
- errn = EXI_DEVIANT_SUPPORT_NOT_DEPLOYED; /* or also typecast and nillable */
- }
- }
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 1389:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorOrder), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SignalPulseDuration)] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gLFA_EVFinePositioningSetupParametersType->SensorOrder.arrayLen < v2gLFA_EVFinePositioningSetupParametersType_SensorOrder_ARRAY_SIZE) {
- /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(errn == 0) {
- if(eventCode == 0) {
- errn = decodeNBitUnsignedInteger(stream, 8, &(uint32));
- v2gLFA_EVFinePositioningSetupParametersType->SensorOrder.array[v2gLFA_EVFinePositioningSetupParametersType->SensorOrder.arrayLen] = (uint8_t)(uint32 + 0);
- v2gLFA_EVFinePositioningSetupParametersType->SensorOrder.arrayLen++;
- } else {
- /* Second level event (e.g., xsi:type, xsi:nil, ...) */
- errn = EXI_UNSUPPORTED_EVENT_CODE_CHARACTERISTICS;
- }
- }
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- if(errn == 0) {
- /* valid EE for simple element START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorOrder) ? */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(eventCode == 0) {
- grammarID = 1390;
- } else {
- errn = EXI_DEVIANT_SUPPORT_NOT_DEPLOYED; /* or also typecast and nillable */
- }
- }
- break;
- case 1:
- /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(errn == 0) {
- if(eventCode == 0) {
- errn = decodeNBitUnsignedInteger(stream, 8, &(uint32));
- v2gLFA_EVFinePositioningSetupParametersType->SignalPulseDuration = (uint8_t)(uint32 + 0);
- } 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({urn:iso:15118:2:2016:MsgDataTypes}SignalPulseDuration) ? */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(eventCode == 0) {
- grammarID = 1242;
- } else {
- errn = EXI_DEVIANT_SUPPORT_NOT_DEPLOYED; /* or also typecast and nillable */
- }
- }
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 1390:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorOrder), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SignalPulseDuration)] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gLFA_EVFinePositioningSetupParametersType->SensorOrder.arrayLen < v2gLFA_EVFinePositioningSetupParametersType_SensorOrder_ARRAY_SIZE) {
- /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(errn == 0) {
- if(eventCode == 0) {
- errn = decodeNBitUnsignedInteger(stream, 8, &(uint32));
- v2gLFA_EVFinePositioningSetupParametersType->SensorOrder.array[v2gLFA_EVFinePositioningSetupParametersType->SensorOrder.arrayLen] = (uint8_t)(uint32 + 0);
- v2gLFA_EVFinePositioningSetupParametersType->SensorOrder.arrayLen++;
- } else {
- /* Second level event (e.g., xsi:type, xsi:nil, ...) */
- errn = EXI_UNSUPPORTED_EVENT_CODE_CHARACTERISTICS;
- }
- }
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- if(errn == 0) {
- /* valid EE for simple element START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorOrder) ? */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(eventCode == 0) {
- grammarID = 1391;
- } else {
- errn = EXI_DEVIANT_SUPPORT_NOT_DEPLOYED; /* or also typecast and nillable */
- }
- }
- break;
- case 1:
- /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(errn == 0) {
- if(eventCode == 0) {
- errn = decodeNBitUnsignedInteger(stream, 8, &(uint32));
- v2gLFA_EVFinePositioningSetupParametersType->SignalPulseDuration = (uint8_t)(uint32 + 0);
- } 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({urn:iso:15118:2:2016:MsgDataTypes}SignalPulseDuration) ? */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(eventCode == 0) {
- grammarID = 1242;
- } else {
- errn = EXI_DEVIANT_SUPPORT_NOT_DEPLOYED; /* or also typecast and nillable */
- }
- }
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 1391:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorOrder), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SignalPulseDuration)] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gLFA_EVFinePositioningSetupParametersType->SensorOrder.arrayLen < v2gLFA_EVFinePositioningSetupParametersType_SensorOrder_ARRAY_SIZE) {
- /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(errn == 0) {
- if(eventCode == 0) {
- errn = decodeNBitUnsignedInteger(stream, 8, &(uint32));
- v2gLFA_EVFinePositioningSetupParametersType->SensorOrder.array[v2gLFA_EVFinePositioningSetupParametersType->SensorOrder.arrayLen] = (uint8_t)(uint32 + 0);
- v2gLFA_EVFinePositioningSetupParametersType->SensorOrder.arrayLen++;
- } else {
- /* Second level event (e.g., xsi:type, xsi:nil, ...) */
- errn = EXI_UNSUPPORTED_EVENT_CODE_CHARACTERISTICS;
- }
- }
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- if(errn == 0) {
- /* valid EE for simple element START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorOrder) ? */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(eventCode == 0) {
- grammarID = 1392;
- } else {
- errn = EXI_DEVIANT_SUPPORT_NOT_DEPLOYED; /* or also typecast and nillable */
- }
- }
- break;
- case 1:
- /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(errn == 0) {
- if(eventCode == 0) {
- errn = decodeNBitUnsignedInteger(stream, 8, &(uint32));
- v2gLFA_EVFinePositioningSetupParametersType->SignalPulseDuration = (uint8_t)(uint32 + 0);
- } 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({urn:iso:15118:2:2016:MsgDataTypes}SignalPulseDuration) ? */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(eventCode == 0) {
- grammarID = 1242;
- } else {
- errn = EXI_DEVIANT_SUPPORT_NOT_DEPLOYED; /* or also typecast and nillable */
- }
- }
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 1392:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorOrder), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SignalPulseDuration)] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gLFA_EVFinePositioningSetupParametersType->SensorOrder.arrayLen < v2gLFA_EVFinePositioningSetupParametersType_SensorOrder_ARRAY_SIZE) {
- /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(errn == 0) {
- if(eventCode == 0) {
- errn = decodeNBitUnsignedInteger(stream, 8, &(uint32));
- v2gLFA_EVFinePositioningSetupParametersType->SensorOrder.array[v2gLFA_EVFinePositioningSetupParametersType->SensorOrder.arrayLen] = (uint8_t)(uint32 + 0);
- v2gLFA_EVFinePositioningSetupParametersType->SensorOrder.arrayLen++;
- } else {
- /* Second level event (e.g., xsi:type, xsi:nil, ...) */
- errn = EXI_UNSUPPORTED_EVENT_CODE_CHARACTERISTICS;
- }
- }
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- if(errn == 0) {
- /* valid EE for simple element START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorOrder) ? */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(eventCode == 0) {
- grammarID = 1393;
- } else {
- errn = EXI_DEVIANT_SUPPORT_NOT_DEPLOYED; /* or also typecast and nillable */
- }
- }
- break;
- case 1:
- /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(errn == 0) {
- if(eventCode == 0) {
- errn = decodeNBitUnsignedInteger(stream, 8, &(uint32));
- v2gLFA_EVFinePositioningSetupParametersType->SignalPulseDuration = (uint8_t)(uint32 + 0);
- } 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({urn:iso:15118:2:2016:MsgDataTypes}SignalPulseDuration) ? */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(eventCode == 0) {
- grammarID = 1242;
- } else {
- errn = EXI_DEVIANT_SUPPORT_NOT_DEPLOYED; /* or also typecast and nillable */
- }
- }
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 1393:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorOrder), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SignalPulseDuration)] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gLFA_EVFinePositioningSetupParametersType->SensorOrder.arrayLen < v2gLFA_EVFinePositioningSetupParametersType_SensorOrder_ARRAY_SIZE) {
- /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(errn == 0) {
- if(eventCode == 0) {
- errn = decodeNBitUnsignedInteger(stream, 8, &(uint32));
- v2gLFA_EVFinePositioningSetupParametersType->SensorOrder.array[v2gLFA_EVFinePositioningSetupParametersType->SensorOrder.arrayLen] = (uint8_t)(uint32 + 0);
- v2gLFA_EVFinePositioningSetupParametersType->SensorOrder.arrayLen++;
- } else {
- /* Second level event (e.g., xsi:type, xsi:nil, ...) */
- errn = EXI_UNSUPPORTED_EVENT_CODE_CHARACTERISTICS;
- }
- }
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- if(errn == 0) {
- /* valid EE for simple element START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorOrder) ? */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(eventCode == 0) {
- grammarID = 1394;
- } else {
- errn = EXI_DEVIANT_SUPPORT_NOT_DEPLOYED; /* or also typecast and nillable */
- }
- }
- break;
- case 1:
- /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(errn == 0) {
- if(eventCode == 0) {
- errn = decodeNBitUnsignedInteger(stream, 8, &(uint32));
- v2gLFA_EVFinePositioningSetupParametersType->SignalPulseDuration = (uint8_t)(uint32 + 0);
- } 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({urn:iso:15118:2:2016:MsgDataTypes}SignalPulseDuration) ? */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(eventCode == 0) {
- grammarID = 1242;
- } else {
- errn = EXI_DEVIANT_SUPPORT_NOT_DEPLOYED; /* or also typecast and nillable */
- }
- }
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 1394:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorOrder), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SignalPulseDuration)] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gLFA_EVFinePositioningSetupParametersType->SensorOrder.arrayLen < v2gLFA_EVFinePositioningSetupParametersType_SensorOrder_ARRAY_SIZE) {
- /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(errn == 0) {
- if(eventCode == 0) {
- errn = decodeNBitUnsignedInteger(stream, 8, &(uint32));
- v2gLFA_EVFinePositioningSetupParametersType->SensorOrder.array[v2gLFA_EVFinePositioningSetupParametersType->SensorOrder.arrayLen] = (uint8_t)(uint32 + 0);
- v2gLFA_EVFinePositioningSetupParametersType->SensorOrder.arrayLen++;
- } else {
- /* Second level event (e.g., xsi:type, xsi:nil, ...) */
- errn = EXI_UNSUPPORTED_EVENT_CODE_CHARACTERISTICS;
- }
- }
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- if(errn == 0) {
- /* valid EE for simple element START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorOrder) ? */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(eventCode == 0) {
- grammarID = 1395;
- } else {
- errn = EXI_DEVIANT_SUPPORT_NOT_DEPLOYED; /* or also typecast and nillable */
- }
- }
- break;
- case 1:
- /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(errn == 0) {
- if(eventCode == 0) {
- errn = decodeNBitUnsignedInteger(stream, 8, &(uint32));
- v2gLFA_EVFinePositioningSetupParametersType->SignalPulseDuration = (uint8_t)(uint32 + 0);
- } 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({urn:iso:15118:2:2016:MsgDataTypes}SignalPulseDuration) ? */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(eventCode == 0) {
- grammarID = 1242;
- } else {
- errn = EXI_DEVIANT_SUPPORT_NOT_DEPLOYED; /* or also typecast and nillable */
- }
- }
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 1395:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorOrder), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SignalPulseDuration)] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gLFA_EVFinePositioningSetupParametersType->SensorOrder.arrayLen < v2gLFA_EVFinePositioningSetupParametersType_SensorOrder_ARRAY_SIZE) {
- /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(errn == 0) {
- if(eventCode == 0) {
- errn = decodeNBitUnsignedInteger(stream, 8, &(uint32));
- v2gLFA_EVFinePositioningSetupParametersType->SensorOrder.array[v2gLFA_EVFinePositioningSetupParametersType->SensorOrder.arrayLen] = (uint8_t)(uint32 + 0);
- v2gLFA_EVFinePositioningSetupParametersType->SensorOrder.arrayLen++;
- } else {
- /* Second level event (e.g., xsi:type, xsi:nil, ...) */
- errn = EXI_UNSUPPORTED_EVENT_CODE_CHARACTERISTICS;
- }
- }
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- if(errn == 0) {
- /* valid EE for simple element START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorOrder) ? */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(eventCode == 0) {
- grammarID = 1396;
- } else {
- errn = EXI_DEVIANT_SUPPORT_NOT_DEPLOYED; /* or also typecast and nillable */
- }
- }
- break;
- case 1:
- /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(errn == 0) {
- if(eventCode == 0) {
- errn = decodeNBitUnsignedInteger(stream, 8, &(uint32));
- v2gLFA_EVFinePositioningSetupParametersType->SignalPulseDuration = (uint8_t)(uint32 + 0);
- } 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({urn:iso:15118:2:2016:MsgDataTypes}SignalPulseDuration) ? */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(eventCode == 0) {
- grammarID = 1242;
- } else {
- errn = EXI_DEVIANT_SUPPORT_NOT_DEPLOYED; /* or also typecast and nillable */
- }
- }
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 1396:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorOrder), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SignalPulseDuration)] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gLFA_EVFinePositioningSetupParametersType->SensorOrder.arrayLen < v2gLFA_EVFinePositioningSetupParametersType_SensorOrder_ARRAY_SIZE) {
- /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(errn == 0) {
- if(eventCode == 0) {
- errn = decodeNBitUnsignedInteger(stream, 8, &(uint32));
- v2gLFA_EVFinePositioningSetupParametersType->SensorOrder.array[v2gLFA_EVFinePositioningSetupParametersType->SensorOrder.arrayLen] = (uint8_t)(uint32 + 0);
- v2gLFA_EVFinePositioningSetupParametersType->SensorOrder.arrayLen++;
- } else {
- /* Second level event (e.g., xsi:type, xsi:nil, ...) */
- errn = EXI_UNSUPPORTED_EVENT_CODE_CHARACTERISTICS;
- }
- }
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- if(errn == 0) {
- /* valid EE for simple element START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorOrder) ? */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(eventCode == 0) {
- grammarID = 1397;
- } else {
- errn = EXI_DEVIANT_SUPPORT_NOT_DEPLOYED; /* or also typecast and nillable */
- }
- }
- break;
- case 1:
- /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(errn == 0) {
- if(eventCode == 0) {
- errn = decodeNBitUnsignedInteger(stream, 8, &(uint32));
- v2gLFA_EVFinePositioningSetupParametersType->SignalPulseDuration = (uint8_t)(uint32 + 0);
- } 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({urn:iso:15118:2:2016:MsgDataTypes}SignalPulseDuration) ? */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(eventCode == 0) {
- grammarID = 1242;
- } else {
- errn = EXI_DEVIANT_SUPPORT_NOT_DEPLOYED; /* or also typecast and nillable */
- }
- }
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 1397:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorOrder), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SignalPulseDuration)] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gLFA_EVFinePositioningSetupParametersType->SensorOrder.arrayLen < v2gLFA_EVFinePositioningSetupParametersType_SensorOrder_ARRAY_SIZE) {
- /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(errn == 0) {
- if(eventCode == 0) {
- errn = decodeNBitUnsignedInteger(stream, 8, &(uint32));
- v2gLFA_EVFinePositioningSetupParametersType->SensorOrder.array[v2gLFA_EVFinePositioningSetupParametersType->SensorOrder.arrayLen] = (uint8_t)(uint32 + 0);
- v2gLFA_EVFinePositioningSetupParametersType->SensorOrder.arrayLen++;
- } else {
- /* Second level event (e.g., xsi:type, xsi:nil, ...) */
- errn = EXI_UNSUPPORTED_EVENT_CODE_CHARACTERISTICS;
- }
- }
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- if(errn == 0) {
- /* valid EE for simple element START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorOrder) ? */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(eventCode == 0) {
- grammarID = 1398;
- } else {
- errn = EXI_DEVIANT_SUPPORT_NOT_DEPLOYED; /* or also typecast and nillable */
- }
- }
- break;
- case 1:
- /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(errn == 0) {
- if(eventCode == 0) {
- errn = decodeNBitUnsignedInteger(stream, 8, &(uint32));
- v2gLFA_EVFinePositioningSetupParametersType->SignalPulseDuration = (uint8_t)(uint32 + 0);
- } 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({urn:iso:15118:2:2016:MsgDataTypes}SignalPulseDuration) ? */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(eventCode == 0) {
- grammarID = 1242;
- } else {
- errn = EXI_DEVIANT_SUPPORT_NOT_DEPLOYED; /* or also typecast and nillable */
- }
- }
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 1398:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorOrder), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SignalPulseDuration)] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gLFA_EVFinePositioningSetupParametersType->SensorOrder.arrayLen < v2gLFA_EVFinePositioningSetupParametersType_SensorOrder_ARRAY_SIZE) {
- /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(errn == 0) {
- if(eventCode == 0) {
- errn = decodeNBitUnsignedInteger(stream, 8, &(uint32));
- v2gLFA_EVFinePositioningSetupParametersType->SensorOrder.array[v2gLFA_EVFinePositioningSetupParametersType->SensorOrder.arrayLen] = (uint8_t)(uint32 + 0);
- v2gLFA_EVFinePositioningSetupParametersType->SensorOrder.arrayLen++;
- } else {
- /* Second level event (e.g., xsi:type, xsi:nil, ...) */
- errn = EXI_UNSUPPORTED_EVENT_CODE_CHARACTERISTICS;
- }
- }
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- if(errn == 0) {
- /* valid EE for simple element START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorOrder) ? */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(eventCode == 0) {
- grammarID = 1399;
- } else {
- errn = EXI_DEVIANT_SUPPORT_NOT_DEPLOYED; /* or also typecast and nillable */
- }
- }
- break;
- case 1:
- /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(errn == 0) {
- if(eventCode == 0) {
- errn = decodeNBitUnsignedInteger(stream, 8, &(uint32));
- v2gLFA_EVFinePositioningSetupParametersType->SignalPulseDuration = (uint8_t)(uint32 + 0);
- } 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({urn:iso:15118:2:2016:MsgDataTypes}SignalPulseDuration) ? */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(eventCode == 0) {
- grammarID = 1242;
- } else {
- errn = EXI_DEVIANT_SUPPORT_NOT_DEPLOYED; /* or also typecast and nillable */
- }
- }
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 1399:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorOrder), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SignalPulseDuration)] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gLFA_EVFinePositioningSetupParametersType->SensorOrder.arrayLen < v2gLFA_EVFinePositioningSetupParametersType_SensorOrder_ARRAY_SIZE) {
- /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(errn == 0) {
- if(eventCode == 0) {
- errn = decodeNBitUnsignedInteger(stream, 8, &(uint32));
- v2gLFA_EVFinePositioningSetupParametersType->SensorOrder.array[v2gLFA_EVFinePositioningSetupParametersType->SensorOrder.arrayLen] = (uint8_t)(uint32 + 0);
- v2gLFA_EVFinePositioningSetupParametersType->SensorOrder.arrayLen++;
- } else {
- /* Second level event (e.g., xsi:type, xsi:nil, ...) */
- errn = EXI_UNSUPPORTED_EVENT_CODE_CHARACTERISTICS;
- }
- }
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- if(errn == 0) {
- /* valid EE for simple element START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorOrder) ? */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(eventCode == 0) {
- grammarID = 1400;
- } else {
- errn = EXI_DEVIANT_SUPPORT_NOT_DEPLOYED; /* or also typecast and nillable */
- }
- }
- break;
- case 1:
- /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(errn == 0) {
- if(eventCode == 0) {
- errn = decodeNBitUnsignedInteger(stream, 8, &(uint32));
- v2gLFA_EVFinePositioningSetupParametersType->SignalPulseDuration = (uint8_t)(uint32 + 0);
- } 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({urn:iso:15118:2:2016:MsgDataTypes}SignalPulseDuration) ? */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(eventCode == 0) {
- grammarID = 1242;
- } else {
- errn = EXI_DEVIANT_SUPPORT_NOT_DEPLOYED; /* or also typecast and nillable */
- }
- }
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 1400:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorOrder), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SignalPulseDuration)] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gLFA_EVFinePositioningSetupParametersType->SensorOrder.arrayLen < v2gLFA_EVFinePositioningSetupParametersType_SensorOrder_ARRAY_SIZE) {
- /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(errn == 0) {
- if(eventCode == 0) {
- errn = decodeNBitUnsignedInteger(stream, 8, &(uint32));
- v2gLFA_EVFinePositioningSetupParametersType->SensorOrder.array[v2gLFA_EVFinePositioningSetupParametersType->SensorOrder.arrayLen] = (uint8_t)(uint32 + 0);
- v2gLFA_EVFinePositioningSetupParametersType->SensorOrder.arrayLen++;
- } else {
- /* Second level event (e.g., xsi:type, xsi:nil, ...) */
- errn = EXI_UNSUPPORTED_EVENT_CODE_CHARACTERISTICS;
- }
- }
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- if(errn == 0) {
- /* valid EE for simple element START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorOrder) ? */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(eventCode == 0) {
- grammarID = 1401;
- } else {
- errn = EXI_DEVIANT_SUPPORT_NOT_DEPLOYED; /* or also typecast and nillable */
- }
- }
- break;
- case 1:
- /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(errn == 0) {
- if(eventCode == 0) {
- errn = decodeNBitUnsignedInteger(stream, 8, &(uint32));
- v2gLFA_EVFinePositioningSetupParametersType->SignalPulseDuration = (uint8_t)(uint32 + 0);
- } 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({urn:iso:15118:2:2016:MsgDataTypes}SignalPulseDuration) ? */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(eventCode == 0) {
- grammarID = 1242;
- } else {
- errn = EXI_DEVIANT_SUPPORT_NOT_DEPLOYED; /* or also typecast and nillable */
- }
- }
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 1401:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorOrder), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SignalPulseDuration)] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gLFA_EVFinePositioningSetupParametersType->SensorOrder.arrayLen < v2gLFA_EVFinePositioningSetupParametersType_SensorOrder_ARRAY_SIZE) {
- /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(errn == 0) {
- if(eventCode == 0) {
- errn = decodeNBitUnsignedInteger(stream, 8, &(uint32));
- v2gLFA_EVFinePositioningSetupParametersType->SensorOrder.array[v2gLFA_EVFinePositioningSetupParametersType->SensorOrder.arrayLen] = (uint8_t)(uint32 + 0);
- v2gLFA_EVFinePositioningSetupParametersType->SensorOrder.arrayLen++;
- } else {
- /* Second level event (e.g., xsi:type, xsi:nil, ...) */
- errn = EXI_UNSUPPORTED_EVENT_CODE_CHARACTERISTICS;
- }
- }
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- if(errn == 0) {
- /* valid EE for simple element START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorOrder) ? */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(eventCode == 0) {
- grammarID = 1402;
- } else {
- errn = EXI_DEVIANT_SUPPORT_NOT_DEPLOYED; /* or also typecast and nillable */
- }
- }
- break;
- case 1:
- /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(errn == 0) {
- if(eventCode == 0) {
- errn = decodeNBitUnsignedInteger(stream, 8, &(uint32));
- v2gLFA_EVFinePositioningSetupParametersType->SignalPulseDuration = (uint8_t)(uint32 + 0);
- } 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({urn:iso:15118:2:2016:MsgDataTypes}SignalPulseDuration) ? */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(eventCode == 0) {
- grammarID = 1242;
- } else {
- errn = EXI_DEVIANT_SUPPORT_NOT_DEPLOYED; /* or also typecast and nillable */
- }
- }
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 1402:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorOrder), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SignalPulseDuration)] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gLFA_EVFinePositioningSetupParametersType->SensorOrder.arrayLen < v2gLFA_EVFinePositioningSetupParametersType_SensorOrder_ARRAY_SIZE) {
- /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(errn == 0) {
- if(eventCode == 0) {
- errn = decodeNBitUnsignedInteger(stream, 8, &(uint32));
- v2gLFA_EVFinePositioningSetupParametersType->SensorOrder.array[v2gLFA_EVFinePositioningSetupParametersType->SensorOrder.arrayLen] = (uint8_t)(uint32 + 0);
- v2gLFA_EVFinePositioningSetupParametersType->SensorOrder.arrayLen++;
- } else {
- /* Second level event (e.g., xsi:type, xsi:nil, ...) */
- errn = EXI_UNSUPPORTED_EVENT_CODE_CHARACTERISTICS;
- }
- }
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- if(errn == 0) {
- /* valid EE for simple element START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorOrder) ? */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(eventCode == 0) {
- grammarID = 1403;
- } else {
- errn = EXI_DEVIANT_SUPPORT_NOT_DEPLOYED; /* or also typecast and nillable */
- }
- }
- break;
- case 1:
- /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(errn == 0) {
- if(eventCode == 0) {
- errn = decodeNBitUnsignedInteger(stream, 8, &(uint32));
- v2gLFA_EVFinePositioningSetupParametersType->SignalPulseDuration = (uint8_t)(uint32 + 0);
- } 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({urn:iso:15118:2:2016:MsgDataTypes}SignalPulseDuration) ? */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(eventCode == 0) {
- grammarID = 1242;
- } else {
- errn = EXI_DEVIANT_SUPPORT_NOT_DEPLOYED; /* or also typecast and nillable */
- }
- }
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 1403:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorOrder), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SignalPulseDuration)] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gLFA_EVFinePositioningSetupParametersType->SensorOrder.arrayLen < v2gLFA_EVFinePositioningSetupParametersType_SensorOrder_ARRAY_SIZE) {
- /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(errn == 0) {
- if(eventCode == 0) {
- errn = decodeNBitUnsignedInteger(stream, 8, &(uint32));
- v2gLFA_EVFinePositioningSetupParametersType->SensorOrder.array[v2gLFA_EVFinePositioningSetupParametersType->SensorOrder.arrayLen] = (uint8_t)(uint32 + 0);
- v2gLFA_EVFinePositioningSetupParametersType->SensorOrder.arrayLen++;
- } else {
- /* Second level event (e.g., xsi:type, xsi:nil, ...) */
- errn = EXI_UNSUPPORTED_EVENT_CODE_CHARACTERISTICS;
- }
- }
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- if(errn == 0) {
- /* valid EE for simple element START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorOrder) ? */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(eventCode == 0) {
- grammarID = 1404;
- } else {
- errn = EXI_DEVIANT_SUPPORT_NOT_DEPLOYED; /* or also typecast and nillable */
- }
- }
- break;
- case 1:
- /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(errn == 0) {
- if(eventCode == 0) {
- errn = decodeNBitUnsignedInteger(stream, 8, &(uint32));
- v2gLFA_EVFinePositioningSetupParametersType->SignalPulseDuration = (uint8_t)(uint32 + 0);
- } 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({urn:iso:15118:2:2016:MsgDataTypes}SignalPulseDuration) ? */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(eventCode == 0) {
- grammarID = 1242;
- } else {
- errn = EXI_DEVIANT_SUPPORT_NOT_DEPLOYED; /* or also typecast and nillable */
- }
- }
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 1404:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorOrder), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SignalPulseDuration)] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gLFA_EVFinePositioningSetupParametersType->SensorOrder.arrayLen < v2gLFA_EVFinePositioningSetupParametersType_SensorOrder_ARRAY_SIZE) {
- /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(errn == 0) {
- if(eventCode == 0) {
- errn = decodeNBitUnsignedInteger(stream, 8, &(uint32));
- v2gLFA_EVFinePositioningSetupParametersType->SensorOrder.array[v2gLFA_EVFinePositioningSetupParametersType->SensorOrder.arrayLen] = (uint8_t)(uint32 + 0);
- v2gLFA_EVFinePositioningSetupParametersType->SensorOrder.arrayLen++;
- } else {
- /* Second level event (e.g., xsi:type, xsi:nil, ...) */
- errn = EXI_UNSUPPORTED_EVENT_CODE_CHARACTERISTICS;
- }
- }
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- if(errn == 0) {
- /* valid EE for simple element START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorOrder) ? */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(eventCode == 0) {
- grammarID = 1405;
- } else {
- errn = EXI_DEVIANT_SUPPORT_NOT_DEPLOYED; /* or also typecast and nillable */
- }
- }
- break;
- case 1:
- /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(errn == 0) {
- if(eventCode == 0) {
- errn = decodeNBitUnsignedInteger(stream, 8, &(uint32));
- v2gLFA_EVFinePositioningSetupParametersType->SignalPulseDuration = (uint8_t)(uint32 + 0);
- } 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({urn:iso:15118:2:2016:MsgDataTypes}SignalPulseDuration) ? */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(eventCode == 0) {
- grammarID = 1242;
- } else {
- errn = EXI_DEVIANT_SUPPORT_NOT_DEPLOYED; /* or also typecast and nillable */
- }
- }
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 1405:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorOrder), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SignalPulseDuration)] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gLFA_EVFinePositioningSetupParametersType->SensorOrder.arrayLen < v2gLFA_EVFinePositioningSetupParametersType_SensorOrder_ARRAY_SIZE) {
- /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(errn == 0) {
- if(eventCode == 0) {
- errn = decodeNBitUnsignedInteger(stream, 8, &(uint32));
- v2gLFA_EVFinePositioningSetupParametersType->SensorOrder.array[v2gLFA_EVFinePositioningSetupParametersType->SensorOrder.arrayLen] = (uint8_t)(uint32 + 0);
- v2gLFA_EVFinePositioningSetupParametersType->SensorOrder.arrayLen++;
- } else {
- /* Second level event (e.g., xsi:type, xsi:nil, ...) */
- errn = EXI_UNSUPPORTED_EVENT_CODE_CHARACTERISTICS;
- }
- }
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- if(errn == 0) {
- /* valid EE for simple element START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorOrder) ? */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(eventCode == 0) {
- grammarID = 1406;
- } else {
- errn = EXI_DEVIANT_SUPPORT_NOT_DEPLOYED; /* or also typecast and nillable */
- }
- }
- break;
- case 1:
- /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(errn == 0) {
- if(eventCode == 0) {
- errn = decodeNBitUnsignedInteger(stream, 8, &(uint32));
- v2gLFA_EVFinePositioningSetupParametersType->SignalPulseDuration = (uint8_t)(uint32 + 0);
- } 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({urn:iso:15118:2:2016:MsgDataTypes}SignalPulseDuration) ? */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(eventCode == 0) {
- grammarID = 1242;
- } else {
- errn = EXI_DEVIANT_SUPPORT_NOT_DEPLOYED; /* or also typecast and nillable */
- }
- }
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 1406:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorOrder), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SignalPulseDuration)] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gLFA_EVFinePositioningSetupParametersType->SensorOrder.arrayLen < v2gLFA_EVFinePositioningSetupParametersType_SensorOrder_ARRAY_SIZE) {
- /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(errn == 0) {
- if(eventCode == 0) {
- errn = decodeNBitUnsignedInteger(stream, 8, &(uint32));
- v2gLFA_EVFinePositioningSetupParametersType->SensorOrder.array[v2gLFA_EVFinePositioningSetupParametersType->SensorOrder.arrayLen] = (uint8_t)(uint32 + 0);
- v2gLFA_EVFinePositioningSetupParametersType->SensorOrder.arrayLen++;
- } else {
- /* Second level event (e.g., xsi:type, xsi:nil, ...) */
- errn = EXI_UNSUPPORTED_EVENT_CODE_CHARACTERISTICS;
- }
- }
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- if(errn == 0) {
- /* valid EE for simple element START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorOrder) ? */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(eventCode == 0) {
- grammarID = 1407;
- } else {
- errn = EXI_DEVIANT_SUPPORT_NOT_DEPLOYED; /* or also typecast and nillable */
- }
- }
- break;
- case 1:
- /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(errn == 0) {
- if(eventCode == 0) {
- errn = decodeNBitUnsignedInteger(stream, 8, &(uint32));
- v2gLFA_EVFinePositioningSetupParametersType->SignalPulseDuration = (uint8_t)(uint32 + 0);
- } 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({urn:iso:15118:2:2016:MsgDataTypes}SignalPulseDuration) ? */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(eventCode == 0) {
- grammarID = 1242;
- } else {
- errn = EXI_DEVIANT_SUPPORT_NOT_DEPLOYED; /* or also typecast and nillable */
- }
- }
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 1407:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorOrder), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SignalPulseDuration)] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gLFA_EVFinePositioningSetupParametersType->SensorOrder.arrayLen < v2gLFA_EVFinePositioningSetupParametersType_SensorOrder_ARRAY_SIZE) {
- /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(errn == 0) {
- if(eventCode == 0) {
- errn = decodeNBitUnsignedInteger(stream, 8, &(uint32));
- v2gLFA_EVFinePositioningSetupParametersType->SensorOrder.array[v2gLFA_EVFinePositioningSetupParametersType->SensorOrder.arrayLen] = (uint8_t)(uint32 + 0);
- v2gLFA_EVFinePositioningSetupParametersType->SensorOrder.arrayLen++;
- } else {
- /* Second level event (e.g., xsi:type, xsi:nil, ...) */
- errn = EXI_UNSUPPORTED_EVENT_CODE_CHARACTERISTICS;
- }
- }
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- if(errn == 0) {
- /* valid EE for simple element START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorOrder) ? */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(eventCode == 0) {
- grammarID = 1408;
- } else {
- errn = EXI_DEVIANT_SUPPORT_NOT_DEPLOYED; /* or also typecast and nillable */
- }
- }
- break;
- case 1:
- /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(errn == 0) {
- if(eventCode == 0) {
- errn = decodeNBitUnsignedInteger(stream, 8, &(uint32));
- v2gLFA_EVFinePositioningSetupParametersType->SignalPulseDuration = (uint8_t)(uint32 + 0);
- } 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({urn:iso:15118:2:2016:MsgDataTypes}SignalPulseDuration) ? */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(eventCode == 0) {
- grammarID = 1242;
- } else {
- errn = EXI_DEVIANT_SUPPORT_NOT_DEPLOYED; /* or also typecast and nillable */
- }
- }
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 1408:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorOrder), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SignalPulseDuration)] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gLFA_EVFinePositioningSetupParametersType->SensorOrder.arrayLen < v2gLFA_EVFinePositioningSetupParametersType_SensorOrder_ARRAY_SIZE) {
- /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(errn == 0) {
- if(eventCode == 0) {
- errn = decodeNBitUnsignedInteger(stream, 8, &(uint32));
- v2gLFA_EVFinePositioningSetupParametersType->SensorOrder.array[v2gLFA_EVFinePositioningSetupParametersType->SensorOrder.arrayLen] = (uint8_t)(uint32 + 0);
- v2gLFA_EVFinePositioningSetupParametersType->SensorOrder.arrayLen++;
- } else {
- /* Second level event (e.g., xsi:type, xsi:nil, ...) */
- errn = EXI_UNSUPPORTED_EVENT_CODE_CHARACTERISTICS;
- }
- }
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- if(errn == 0) {
- /* valid EE for simple element START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorOrder) ? */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(eventCode == 0) {
- grammarID = 1409;
- } else {
- errn = EXI_DEVIANT_SUPPORT_NOT_DEPLOYED; /* or also typecast and nillable */
- }
- }
- break;
- case 1:
- /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(errn == 0) {
- if(eventCode == 0) {
- errn = decodeNBitUnsignedInteger(stream, 8, &(uint32));
- v2gLFA_EVFinePositioningSetupParametersType->SignalPulseDuration = (uint8_t)(uint32 + 0);
- } 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({urn:iso:15118:2:2016:MsgDataTypes}SignalPulseDuration) ? */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(eventCode == 0) {
- grammarID = 1242;
- } else {
- errn = EXI_DEVIANT_SUPPORT_NOT_DEPLOYED; /* or also typecast and nillable */
- }
- }
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 1409:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorOrder), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SignalPulseDuration)] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gLFA_EVFinePositioningSetupParametersType->SensorOrder.arrayLen < v2gLFA_EVFinePositioningSetupParametersType_SensorOrder_ARRAY_SIZE) {
- /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(errn == 0) {
- if(eventCode == 0) {
- errn = decodeNBitUnsignedInteger(stream, 8, &(uint32));
- v2gLFA_EVFinePositioningSetupParametersType->SensorOrder.array[v2gLFA_EVFinePositioningSetupParametersType->SensorOrder.arrayLen] = (uint8_t)(uint32 + 0);
- v2gLFA_EVFinePositioningSetupParametersType->SensorOrder.arrayLen++;
- } else {
- /* Second level event (e.g., xsi:type, xsi:nil, ...) */
- errn = EXI_UNSUPPORTED_EVENT_CODE_CHARACTERISTICS;
- }
- }
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- if(errn == 0) {
- /* valid EE for simple element START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorOrder) ? */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(eventCode == 0) {
- grammarID = 1410;
- } else {
- errn = EXI_DEVIANT_SUPPORT_NOT_DEPLOYED; /* or also typecast and nillable */
- }
- }
- break;
- case 1:
- /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(errn == 0) {
- if(eventCode == 0) {
- errn = decodeNBitUnsignedInteger(stream, 8, &(uint32));
- v2gLFA_EVFinePositioningSetupParametersType->SignalPulseDuration = (uint8_t)(uint32 + 0);
- } 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({urn:iso:15118:2:2016:MsgDataTypes}SignalPulseDuration) ? */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(eventCode == 0) {
- grammarID = 1242;
- } else {
- errn = EXI_DEVIANT_SUPPORT_NOT_DEPLOYED; /* or also typecast and nillable */
- }
- }
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 1410:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorOrder), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SignalPulseDuration)] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gLFA_EVFinePositioningSetupParametersType->SensorOrder.arrayLen < v2gLFA_EVFinePositioningSetupParametersType_SensorOrder_ARRAY_SIZE) {
- /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(errn == 0) {
- if(eventCode == 0) {
- errn = decodeNBitUnsignedInteger(stream, 8, &(uint32));
- v2gLFA_EVFinePositioningSetupParametersType->SensorOrder.array[v2gLFA_EVFinePositioningSetupParametersType->SensorOrder.arrayLen] = (uint8_t)(uint32 + 0);
- v2gLFA_EVFinePositioningSetupParametersType->SensorOrder.arrayLen++;
- } else {
- /* Second level event (e.g., xsi:type, xsi:nil, ...) */
- errn = EXI_UNSUPPORTED_EVENT_CODE_CHARACTERISTICS;
- }
- }
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- if(errn == 0) {
- /* valid EE for simple element START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorOrder) ? */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(eventCode == 0) {
- grammarID = 1411;
- } else {
- errn = EXI_DEVIANT_SUPPORT_NOT_DEPLOYED; /* or also typecast and nillable */
- }
- }
- break;
- case 1:
- /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(errn == 0) {
- if(eventCode == 0) {
- errn = decodeNBitUnsignedInteger(stream, 8, &(uint32));
- v2gLFA_EVFinePositioningSetupParametersType->SignalPulseDuration = (uint8_t)(uint32 + 0);
- } 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({urn:iso:15118:2:2016:MsgDataTypes}SignalPulseDuration) ? */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(eventCode == 0) {
- grammarID = 1242;
- } else {
- errn = EXI_DEVIANT_SUPPORT_NOT_DEPLOYED; /* or also typecast and nillable */
- }
- }
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 1411:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorOrder), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SignalPulseDuration)] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gLFA_EVFinePositioningSetupParametersType->SensorOrder.arrayLen < v2gLFA_EVFinePositioningSetupParametersType_SensorOrder_ARRAY_SIZE) {
- /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(errn == 0) {
- if(eventCode == 0) {
- errn = decodeNBitUnsignedInteger(stream, 8, &(uint32));
- v2gLFA_EVFinePositioningSetupParametersType->SensorOrder.array[v2gLFA_EVFinePositioningSetupParametersType->SensorOrder.arrayLen] = (uint8_t)(uint32 + 0);
- v2gLFA_EVFinePositioningSetupParametersType->SensorOrder.arrayLen++;
- } else {
- /* Second level event (e.g., xsi:type, xsi:nil, ...) */
- errn = EXI_UNSUPPORTED_EVENT_CODE_CHARACTERISTICS;
- }
- }
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- if(errn == 0) {
- /* valid EE for simple element START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorOrder) ? */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(eventCode == 0) {
- grammarID = 1412;
- } else {
- errn = EXI_DEVIANT_SUPPORT_NOT_DEPLOYED; /* or also typecast and nillable */
- }
- }
- break;
- case 1:
- /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(errn == 0) {
- if(eventCode == 0) {
- errn = decodeNBitUnsignedInteger(stream, 8, &(uint32));
- v2gLFA_EVFinePositioningSetupParametersType->SignalPulseDuration = (uint8_t)(uint32 + 0);
- } 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({urn:iso:15118:2:2016:MsgDataTypes}SignalPulseDuration) ? */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(eventCode == 0) {
- grammarID = 1242;
- } else {
- errn = EXI_DEVIANT_SUPPORT_NOT_DEPLOYED; /* or also typecast and nillable */
- }
- }
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 1412:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorOrder), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SignalPulseDuration)] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gLFA_EVFinePositioningSetupParametersType->SensorOrder.arrayLen < v2gLFA_EVFinePositioningSetupParametersType_SensorOrder_ARRAY_SIZE) {
- /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(errn == 0) {
- if(eventCode == 0) {
- errn = decodeNBitUnsignedInteger(stream, 8, &(uint32));
- v2gLFA_EVFinePositioningSetupParametersType->SensorOrder.array[v2gLFA_EVFinePositioningSetupParametersType->SensorOrder.arrayLen] = (uint8_t)(uint32 + 0);
- v2gLFA_EVFinePositioningSetupParametersType->SensorOrder.arrayLen++;
- } else {
- /* Second level event (e.g., xsi:type, xsi:nil, ...) */
- errn = EXI_UNSUPPORTED_EVENT_CODE_CHARACTERISTICS;
- }
- }
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- if(errn == 0) {
- /* valid EE for simple element START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorOrder) ? */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(eventCode == 0) {
- grammarID = 1413;
- } else {
- errn = EXI_DEVIANT_SUPPORT_NOT_DEPLOYED; /* or also typecast and nillable */
- }
- }
- break;
- case 1:
- /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(errn == 0) {
- if(eventCode == 0) {
- errn = decodeNBitUnsignedInteger(stream, 8, &(uint32));
- v2gLFA_EVFinePositioningSetupParametersType->SignalPulseDuration = (uint8_t)(uint32 + 0);
- } 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({urn:iso:15118:2:2016:MsgDataTypes}SignalPulseDuration) ? */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(eventCode == 0) {
- grammarID = 1242;
- } else {
- errn = EXI_DEVIANT_SUPPORT_NOT_DEPLOYED; /* or also typecast and nillable */
- }
- }
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 1413:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorOrder), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SignalPulseDuration)] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gLFA_EVFinePositioningSetupParametersType->SensorOrder.arrayLen < v2gLFA_EVFinePositioningSetupParametersType_SensorOrder_ARRAY_SIZE) {
- /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(errn == 0) {
- if(eventCode == 0) {
- errn = decodeNBitUnsignedInteger(stream, 8, &(uint32));
- v2gLFA_EVFinePositioningSetupParametersType->SensorOrder.array[v2gLFA_EVFinePositioningSetupParametersType->SensorOrder.arrayLen] = (uint8_t)(uint32 + 0);
- v2gLFA_EVFinePositioningSetupParametersType->SensorOrder.arrayLen++;
- } else {
- /* Second level event (e.g., xsi:type, xsi:nil, ...) */
- errn = EXI_UNSUPPORTED_EVENT_CODE_CHARACTERISTICS;
- }
- }
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- if(errn == 0) {
- /* valid EE for simple element START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorOrder) ? */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(eventCode == 0) {
- grammarID = 1414;
- } else {
- errn = EXI_DEVIANT_SUPPORT_NOT_DEPLOYED; /* or also typecast and nillable */
- }
- }
- break;
- case 1:
- /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(errn == 0) {
- if(eventCode == 0) {
- errn = decodeNBitUnsignedInteger(stream, 8, &(uint32));
- v2gLFA_EVFinePositioningSetupParametersType->SignalPulseDuration = (uint8_t)(uint32 + 0);
- } 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({urn:iso:15118:2:2016:MsgDataTypes}SignalPulseDuration) ? */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(eventCode == 0) {
- grammarID = 1242;
- } else {
- errn = EXI_DEVIANT_SUPPORT_NOT_DEPLOYED; /* or also typecast and nillable */
- }
- }
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 1414:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorOrder), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SignalPulseDuration)] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gLFA_EVFinePositioningSetupParametersType->SensorOrder.arrayLen < v2gLFA_EVFinePositioningSetupParametersType_SensorOrder_ARRAY_SIZE) {
- /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(errn == 0) {
- if(eventCode == 0) {
- errn = decodeNBitUnsignedInteger(stream, 8, &(uint32));
- v2gLFA_EVFinePositioningSetupParametersType->SensorOrder.array[v2gLFA_EVFinePositioningSetupParametersType->SensorOrder.arrayLen] = (uint8_t)(uint32 + 0);
- v2gLFA_EVFinePositioningSetupParametersType->SensorOrder.arrayLen++;
- } else {
- /* Second level event (e.g., xsi:type, xsi:nil, ...) */
- errn = EXI_UNSUPPORTED_EVENT_CODE_CHARACTERISTICS;
- }
- }
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- if(errn == 0) {
- /* valid EE for simple element START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorOrder) ? */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(eventCode == 0) {
- grammarID = 1415;
- } else {
- errn = EXI_DEVIANT_SUPPORT_NOT_DEPLOYED; /* or also typecast and nillable */
- }
- }
- break;
- case 1:
- /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(errn == 0) {
- if(eventCode == 0) {
- errn = decodeNBitUnsignedInteger(stream, 8, &(uint32));
- v2gLFA_EVFinePositioningSetupParametersType->SignalPulseDuration = (uint8_t)(uint32 + 0);
- } 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({urn:iso:15118:2:2016:MsgDataTypes}SignalPulseDuration) ? */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(eventCode == 0) {
- grammarID = 1242;
- } else {
- errn = EXI_DEVIANT_SUPPORT_NOT_DEPLOYED; /* or also typecast and nillable */
- }
- }
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 1415:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorOrder), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SignalPulseDuration)] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gLFA_EVFinePositioningSetupParametersType->SensorOrder.arrayLen < v2gLFA_EVFinePositioningSetupParametersType_SensorOrder_ARRAY_SIZE) {
- /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(errn == 0) {
- if(eventCode == 0) {
- errn = decodeNBitUnsignedInteger(stream, 8, &(uint32));
- v2gLFA_EVFinePositioningSetupParametersType->SensorOrder.array[v2gLFA_EVFinePositioningSetupParametersType->SensorOrder.arrayLen] = (uint8_t)(uint32 + 0);
- v2gLFA_EVFinePositioningSetupParametersType->SensorOrder.arrayLen++;
- } else {
- /* Second level event (e.g., xsi:type, xsi:nil, ...) */
- errn = EXI_UNSUPPORTED_EVENT_CODE_CHARACTERISTICS;
- }
- }
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- if(errn == 0) {
- /* valid EE for simple element START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorOrder) ? */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(eventCode == 0) {
- grammarID = 1416;
- } else {
- errn = EXI_DEVIANT_SUPPORT_NOT_DEPLOYED; /* or also typecast and nillable */
- }
- }
- break;
- case 1:
- /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(errn == 0) {
- if(eventCode == 0) {
- errn = decodeNBitUnsignedInteger(stream, 8, &(uint32));
- v2gLFA_EVFinePositioningSetupParametersType->SignalPulseDuration = (uint8_t)(uint32 + 0);
- } 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({urn:iso:15118:2:2016:MsgDataTypes}SignalPulseDuration) ? */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(eventCode == 0) {
- grammarID = 1242;
- } else {
- errn = EXI_DEVIANT_SUPPORT_NOT_DEPLOYED; /* or also typecast and nillable */
- }
- }
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 1416:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorOrder), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SignalPulseDuration)] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gLFA_EVFinePositioningSetupParametersType->SensorOrder.arrayLen < v2gLFA_EVFinePositioningSetupParametersType_SensorOrder_ARRAY_SIZE) {
- /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(errn == 0) {
- if(eventCode == 0) {
- errn = decodeNBitUnsignedInteger(stream, 8, &(uint32));
- v2gLFA_EVFinePositioningSetupParametersType->SensorOrder.array[v2gLFA_EVFinePositioningSetupParametersType->SensorOrder.arrayLen] = (uint8_t)(uint32 + 0);
- v2gLFA_EVFinePositioningSetupParametersType->SensorOrder.arrayLen++;
- } else {
- /* Second level event (e.g., xsi:type, xsi:nil, ...) */
- errn = EXI_UNSUPPORTED_EVENT_CODE_CHARACTERISTICS;
- }
- }
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- if(errn == 0) {
- /* valid EE for simple element START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorOrder) ? */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(eventCode == 0) {
- grammarID = 1417;
- } else {
- errn = EXI_DEVIANT_SUPPORT_NOT_DEPLOYED; /* or also typecast and nillable */
- }
- }
- break;
- case 1:
- /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(errn == 0) {
- if(eventCode == 0) {
- errn = decodeNBitUnsignedInteger(stream, 8, &(uint32));
- v2gLFA_EVFinePositioningSetupParametersType->SignalPulseDuration = (uint8_t)(uint32 + 0);
- } 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({urn:iso:15118:2:2016:MsgDataTypes}SignalPulseDuration) ? */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(eventCode == 0) {
- grammarID = 1242;
- } else {
- errn = EXI_DEVIANT_SUPPORT_NOT_DEPLOYED; /* or also typecast and nillable */
- }
- }
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 1417:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorOrder), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SignalPulseDuration)] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gLFA_EVFinePositioningSetupParametersType->SensorOrder.arrayLen < v2gLFA_EVFinePositioningSetupParametersType_SensorOrder_ARRAY_SIZE) {
- /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(errn == 0) {
- if(eventCode == 0) {
- errn = decodeNBitUnsignedInteger(stream, 8, &(uint32));
- v2gLFA_EVFinePositioningSetupParametersType->SensorOrder.array[v2gLFA_EVFinePositioningSetupParametersType->SensorOrder.arrayLen] = (uint8_t)(uint32 + 0);
- v2gLFA_EVFinePositioningSetupParametersType->SensorOrder.arrayLen++;
- } else {
- /* Second level event (e.g., xsi:type, xsi:nil, ...) */
- errn = EXI_UNSUPPORTED_EVENT_CODE_CHARACTERISTICS;
- }
- }
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- if(errn == 0) {
- /* valid EE for simple element START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorOrder) ? */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(eventCode == 0) {
- grammarID = 1418;
- } else {
- errn = EXI_DEVIANT_SUPPORT_NOT_DEPLOYED; /* or also typecast and nillable */
- }
- }
- break;
- case 1:
- /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(errn == 0) {
- if(eventCode == 0) {
- errn = decodeNBitUnsignedInteger(stream, 8, &(uint32));
- v2gLFA_EVFinePositioningSetupParametersType->SignalPulseDuration = (uint8_t)(uint32 + 0);
- } 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({urn:iso:15118:2:2016:MsgDataTypes}SignalPulseDuration) ? */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(eventCode == 0) {
- grammarID = 1242;
- } else {
- errn = EXI_DEVIANT_SUPPORT_NOT_DEPLOYED; /* or also typecast and nillable */
- }
- }
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 1418:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorOrder), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SignalPulseDuration)] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gLFA_EVFinePositioningSetupParametersType->SensorOrder.arrayLen < v2gLFA_EVFinePositioningSetupParametersType_SensorOrder_ARRAY_SIZE) {
- /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(errn == 0) {
- if(eventCode == 0) {
- errn = decodeNBitUnsignedInteger(stream, 8, &(uint32));
- v2gLFA_EVFinePositioningSetupParametersType->SensorOrder.array[v2gLFA_EVFinePositioningSetupParametersType->SensorOrder.arrayLen] = (uint8_t)(uint32 + 0);
- v2gLFA_EVFinePositioningSetupParametersType->SensorOrder.arrayLen++;
- } else {
- /* Second level event (e.g., xsi:type, xsi:nil, ...) */
- errn = EXI_UNSUPPORTED_EVENT_CODE_CHARACTERISTICS;
- }
- }
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- if(errn == 0) {
- /* valid EE for simple element START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorOrder) ? */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(eventCode == 0) {
- grammarID = 1419;
- } else {
- errn = EXI_DEVIANT_SUPPORT_NOT_DEPLOYED; /* or also typecast and nillable */
- }
- }
- break;
- case 1:
- /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(errn == 0) {
- if(eventCode == 0) {
- errn = decodeNBitUnsignedInteger(stream, 8, &(uint32));
- v2gLFA_EVFinePositioningSetupParametersType->SignalPulseDuration = (uint8_t)(uint32 + 0);
- } 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({urn:iso:15118:2:2016:MsgDataTypes}SignalPulseDuration) ? */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(eventCode == 0) {
- grammarID = 1242;
- } else {
- errn = EXI_DEVIANT_SUPPORT_NOT_DEPLOYED; /* or also typecast and nillable */
- }
- }
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 1419:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorOrder), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SignalPulseDuration)] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gLFA_EVFinePositioningSetupParametersType->SensorOrder.arrayLen < v2gLFA_EVFinePositioningSetupParametersType_SensorOrder_ARRAY_SIZE) {
- /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(errn == 0) {
- if(eventCode == 0) {
- errn = decodeNBitUnsignedInteger(stream, 8, &(uint32));
- v2gLFA_EVFinePositioningSetupParametersType->SensorOrder.array[v2gLFA_EVFinePositioningSetupParametersType->SensorOrder.arrayLen] = (uint8_t)(uint32 + 0);
- v2gLFA_EVFinePositioningSetupParametersType->SensorOrder.arrayLen++;
- } else {
- /* Second level event (e.g., xsi:type, xsi:nil, ...) */
- errn = EXI_UNSUPPORTED_EVENT_CODE_CHARACTERISTICS;
- }
- }
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- if(errn == 0) {
- /* valid EE for simple element START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorOrder) ? */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(eventCode == 0) {
- grammarID = 1420;
- } else {
- errn = EXI_DEVIANT_SUPPORT_NOT_DEPLOYED; /* or also typecast and nillable */
- }
- }
- break;
- case 1:
- /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(errn == 0) {
- if(eventCode == 0) {
- errn = decodeNBitUnsignedInteger(stream, 8, &(uint32));
- v2gLFA_EVFinePositioningSetupParametersType->SignalPulseDuration = (uint8_t)(uint32 + 0);
- } 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({urn:iso:15118:2:2016:MsgDataTypes}SignalPulseDuration) ? */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(eventCode == 0) {
- grammarID = 1242;
- } else {
- errn = EXI_DEVIANT_SUPPORT_NOT_DEPLOYED; /* or also typecast and nillable */
- }
- }
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 1420:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorOrder), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SignalPulseDuration)] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gLFA_EVFinePositioningSetupParametersType->SensorOrder.arrayLen < v2gLFA_EVFinePositioningSetupParametersType_SensorOrder_ARRAY_SIZE) {
- /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(errn == 0) {
- if(eventCode == 0) {
- errn = decodeNBitUnsignedInteger(stream, 8, &(uint32));
- v2gLFA_EVFinePositioningSetupParametersType->SensorOrder.array[v2gLFA_EVFinePositioningSetupParametersType->SensorOrder.arrayLen] = (uint8_t)(uint32 + 0);
- v2gLFA_EVFinePositioningSetupParametersType->SensorOrder.arrayLen++;
- } else {
- /* Second level event (e.g., xsi:type, xsi:nil, ...) */
- errn = EXI_UNSUPPORTED_EVENT_CODE_CHARACTERISTICS;
- }
- }
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- if(errn == 0) {
- /* valid EE for simple element START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorOrder) ? */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(eventCode == 0) {
- grammarID = 1421;
- } else {
- errn = EXI_DEVIANT_SUPPORT_NOT_DEPLOYED; /* or also typecast and nillable */
- }
- }
- break;
- case 1:
- /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(errn == 0) {
- if(eventCode == 0) {
- errn = decodeNBitUnsignedInteger(stream, 8, &(uint32));
- v2gLFA_EVFinePositioningSetupParametersType->SignalPulseDuration = (uint8_t)(uint32 + 0);
- } 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({urn:iso:15118:2:2016:MsgDataTypes}SignalPulseDuration) ? */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(eventCode == 0) {
- grammarID = 1242;
- } else {
- errn = EXI_DEVIANT_SUPPORT_NOT_DEPLOYED; /* or also typecast and nillable */
- }
- }
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 1421:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorOrder), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SignalPulseDuration)] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gLFA_EVFinePositioningSetupParametersType->SensorOrder.arrayLen < v2gLFA_EVFinePositioningSetupParametersType_SensorOrder_ARRAY_SIZE) {
- /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(errn == 0) {
- if(eventCode == 0) {
- errn = decodeNBitUnsignedInteger(stream, 8, &(uint32));
- v2gLFA_EVFinePositioningSetupParametersType->SensorOrder.array[v2gLFA_EVFinePositioningSetupParametersType->SensorOrder.arrayLen] = (uint8_t)(uint32 + 0);
- v2gLFA_EVFinePositioningSetupParametersType->SensorOrder.arrayLen++;
- } else {
- /* Second level event (e.g., xsi:type, xsi:nil, ...) */
- errn = EXI_UNSUPPORTED_EVENT_CODE_CHARACTERISTICS;
- }
- }
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- if(errn == 0) {
- /* valid EE for simple element START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorOrder) ? */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(eventCode == 0) {
- grammarID = 1422;
- } else {
- errn = EXI_DEVIANT_SUPPORT_NOT_DEPLOYED; /* or also typecast and nillable */
- }
- }
- break;
- case 1:
- /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(errn == 0) {
- if(eventCode == 0) {
- errn = decodeNBitUnsignedInteger(stream, 8, &(uint32));
- v2gLFA_EVFinePositioningSetupParametersType->SignalPulseDuration = (uint8_t)(uint32 + 0);
- } 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({urn:iso:15118:2:2016:MsgDataTypes}SignalPulseDuration) ? */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(eventCode == 0) {
- grammarID = 1242;
- } else {
- errn = EXI_DEVIANT_SUPPORT_NOT_DEPLOYED; /* or also typecast and nillable */
- }
- }
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 1422:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorOrder), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SignalPulseDuration)] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gLFA_EVFinePositioningSetupParametersType->SensorOrder.arrayLen < v2gLFA_EVFinePositioningSetupParametersType_SensorOrder_ARRAY_SIZE) {
- /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(errn == 0) {
- if(eventCode == 0) {
- errn = decodeNBitUnsignedInteger(stream, 8, &(uint32));
- v2gLFA_EVFinePositioningSetupParametersType->SensorOrder.array[v2gLFA_EVFinePositioningSetupParametersType->SensorOrder.arrayLen] = (uint8_t)(uint32 + 0);
- v2gLFA_EVFinePositioningSetupParametersType->SensorOrder.arrayLen++;
- } else {
- /* Second level event (e.g., xsi:type, xsi:nil, ...) */
- errn = EXI_UNSUPPORTED_EVENT_CODE_CHARACTERISTICS;
- }
- }
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- if(errn == 0) {
- /* valid EE for simple element START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorOrder) ? */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(eventCode == 0) {
- grammarID = 1423;
- } else {
- errn = EXI_DEVIANT_SUPPORT_NOT_DEPLOYED; /* or also typecast and nillable */
- }
- }
- break;
- case 1:
- /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(errn == 0) {
- if(eventCode == 0) {
- errn = decodeNBitUnsignedInteger(stream, 8, &(uint32));
- v2gLFA_EVFinePositioningSetupParametersType->SignalPulseDuration = (uint8_t)(uint32 + 0);
- } 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({urn:iso:15118:2:2016:MsgDataTypes}SignalPulseDuration) ? */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(eventCode == 0) {
- grammarID = 1242;
- } else {
- errn = EXI_DEVIANT_SUPPORT_NOT_DEPLOYED; /* or also typecast and nillable */
- }
- }
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 1423:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorOrder), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SignalPulseDuration)] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gLFA_EVFinePositioningSetupParametersType->SensorOrder.arrayLen < v2gLFA_EVFinePositioningSetupParametersType_SensorOrder_ARRAY_SIZE) {
- /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(errn == 0) {
- if(eventCode == 0) {
- errn = decodeNBitUnsignedInteger(stream, 8, &(uint32));
- v2gLFA_EVFinePositioningSetupParametersType->SensorOrder.array[v2gLFA_EVFinePositioningSetupParametersType->SensorOrder.arrayLen] = (uint8_t)(uint32 + 0);
- v2gLFA_EVFinePositioningSetupParametersType->SensorOrder.arrayLen++;
- } else {
- /* Second level event (e.g., xsi:type, xsi:nil, ...) */
- errn = EXI_UNSUPPORTED_EVENT_CODE_CHARACTERISTICS;
- }
- }
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- if(errn == 0) {
- /* valid EE for simple element START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorOrder) ? */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(eventCode == 0) {
- grammarID = 1424;
- } else {
- errn = EXI_DEVIANT_SUPPORT_NOT_DEPLOYED; /* or also typecast and nillable */
- }
- }
- break;
- case 1:
- /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(errn == 0) {
- if(eventCode == 0) {
- errn = decodeNBitUnsignedInteger(stream, 8, &(uint32));
- v2gLFA_EVFinePositioningSetupParametersType->SignalPulseDuration = (uint8_t)(uint32 + 0);
- } 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({urn:iso:15118:2:2016:MsgDataTypes}SignalPulseDuration) ? */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(eventCode == 0) {
- grammarID = 1242;
- } else {
- errn = EXI_DEVIANT_SUPPORT_NOT_DEPLOYED; /* or also typecast and nillable */
- }
- }
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 1424:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorOrder), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SignalPulseDuration)] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gLFA_EVFinePositioningSetupParametersType->SensorOrder.arrayLen < v2gLFA_EVFinePositioningSetupParametersType_SensorOrder_ARRAY_SIZE) {
- /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(errn == 0) {
- if(eventCode == 0) {
- errn = decodeNBitUnsignedInteger(stream, 8, &(uint32));
- v2gLFA_EVFinePositioningSetupParametersType->SensorOrder.array[v2gLFA_EVFinePositioningSetupParametersType->SensorOrder.arrayLen] = (uint8_t)(uint32 + 0);
- v2gLFA_EVFinePositioningSetupParametersType->SensorOrder.arrayLen++;
- } else {
- /* Second level event (e.g., xsi:type, xsi:nil, ...) */
- errn = EXI_UNSUPPORTED_EVENT_CODE_CHARACTERISTICS;
- }
- }
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- if(errn == 0) {
- /* valid EE for simple element START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorOrder) ? */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(eventCode == 0) {
- grammarID = 1425;
- } else {
- errn = EXI_DEVIANT_SUPPORT_NOT_DEPLOYED; /* or also typecast and nillable */
- }
- }
- break;
- case 1:
- /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(errn == 0) {
- if(eventCode == 0) {
- errn = decodeNBitUnsignedInteger(stream, 8, &(uint32));
- v2gLFA_EVFinePositioningSetupParametersType->SignalPulseDuration = (uint8_t)(uint32 + 0);
- } 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({urn:iso:15118:2:2016:MsgDataTypes}SignalPulseDuration) ? */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(eventCode == 0) {
- grammarID = 1242;
- } else {
- errn = EXI_DEVIANT_SUPPORT_NOT_DEPLOYED; /* or also typecast and nillable */
- }
- }
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 1425:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorOrder), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SignalPulseDuration)] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gLFA_EVFinePositioningSetupParametersType->SensorOrder.arrayLen < v2gLFA_EVFinePositioningSetupParametersType_SensorOrder_ARRAY_SIZE) {
- /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(errn == 0) {
- if(eventCode == 0) {
- errn = decodeNBitUnsignedInteger(stream, 8, &(uint32));
- v2gLFA_EVFinePositioningSetupParametersType->SensorOrder.array[v2gLFA_EVFinePositioningSetupParametersType->SensorOrder.arrayLen] = (uint8_t)(uint32 + 0);
- v2gLFA_EVFinePositioningSetupParametersType->SensorOrder.arrayLen++;
- } else {
- /* Second level event (e.g., xsi:type, xsi:nil, ...) */
- errn = EXI_UNSUPPORTED_EVENT_CODE_CHARACTERISTICS;
- }
- }
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- if(errn == 0) {
- /* valid EE for simple element START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorOrder) ? */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(eventCode == 0) {
- grammarID = 1426;
- } else {
- errn = EXI_DEVIANT_SUPPORT_NOT_DEPLOYED; /* or also typecast and nillable */
- }
- }
- break;
- case 1:
- /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(errn == 0) {
- if(eventCode == 0) {
- errn = decodeNBitUnsignedInteger(stream, 8, &(uint32));
- v2gLFA_EVFinePositioningSetupParametersType->SignalPulseDuration = (uint8_t)(uint32 + 0);
- } 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({urn:iso:15118:2:2016:MsgDataTypes}SignalPulseDuration) ? */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(eventCode == 0) {
- grammarID = 1242;
- } else {
- errn = EXI_DEVIANT_SUPPORT_NOT_DEPLOYED; /* or also typecast and nillable */
- }
- }
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 1426:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorOrder), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SignalPulseDuration)] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gLFA_EVFinePositioningSetupParametersType->SensorOrder.arrayLen < v2gLFA_EVFinePositioningSetupParametersType_SensorOrder_ARRAY_SIZE) {
- /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(errn == 0) {
- if(eventCode == 0) {
- errn = decodeNBitUnsignedInteger(stream, 8, &(uint32));
- v2gLFA_EVFinePositioningSetupParametersType->SensorOrder.array[v2gLFA_EVFinePositioningSetupParametersType->SensorOrder.arrayLen] = (uint8_t)(uint32 + 0);
- v2gLFA_EVFinePositioningSetupParametersType->SensorOrder.arrayLen++;
- } else {
- /* Second level event (e.g., xsi:type, xsi:nil, ...) */
- errn = EXI_UNSUPPORTED_EVENT_CODE_CHARACTERISTICS;
- }
- }
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- if(errn == 0) {
- /* valid EE for simple element START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorOrder) ? */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(eventCode == 0) {
- grammarID = 1427;
- } else {
- errn = EXI_DEVIANT_SUPPORT_NOT_DEPLOYED; /* or also typecast and nillable */
- }
- }
- break;
- case 1:
- /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(errn == 0) {
- if(eventCode == 0) {
- errn = decodeNBitUnsignedInteger(stream, 8, &(uint32));
- v2gLFA_EVFinePositioningSetupParametersType->SignalPulseDuration = (uint8_t)(uint32 + 0);
- } 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({urn:iso:15118:2:2016:MsgDataTypes}SignalPulseDuration) ? */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(eventCode == 0) {
- grammarID = 1242;
- } else {
- errn = EXI_DEVIANT_SUPPORT_NOT_DEPLOYED; /* or also typecast and nillable */
- }
- }
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 1427:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorOrder), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SignalPulseDuration)] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gLFA_EVFinePositioningSetupParametersType->SensorOrder.arrayLen < v2gLFA_EVFinePositioningSetupParametersType_SensorOrder_ARRAY_SIZE) {
- /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(errn == 0) {
- if(eventCode == 0) {
- errn = decodeNBitUnsignedInteger(stream, 8, &(uint32));
- v2gLFA_EVFinePositioningSetupParametersType->SensorOrder.array[v2gLFA_EVFinePositioningSetupParametersType->SensorOrder.arrayLen] = (uint8_t)(uint32 + 0);
- v2gLFA_EVFinePositioningSetupParametersType->SensorOrder.arrayLen++;
- } else {
- /* Second level event (e.g., xsi:type, xsi:nil, ...) */
- errn = EXI_UNSUPPORTED_EVENT_CODE_CHARACTERISTICS;
- }
- }
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- if(errn == 0) {
- /* valid EE for simple element START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorOrder) ? */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(eventCode == 0) {
- grammarID = 1428;
- } else {
- errn = EXI_DEVIANT_SUPPORT_NOT_DEPLOYED; /* or also typecast and nillable */
- }
- }
- break;
- case 1:
- /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(errn == 0) {
- if(eventCode == 0) {
- errn = decodeNBitUnsignedInteger(stream, 8, &(uint32));
- v2gLFA_EVFinePositioningSetupParametersType->SignalPulseDuration = (uint8_t)(uint32 + 0);
- } 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({urn:iso:15118:2:2016:MsgDataTypes}SignalPulseDuration) ? */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(eventCode == 0) {
- grammarID = 1242;
- } else {
- errn = EXI_DEVIANT_SUPPORT_NOT_DEPLOYED; /* or also typecast and nillable */
- }
- }
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 1428:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorOrder), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SignalPulseDuration)] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gLFA_EVFinePositioningSetupParametersType->SensorOrder.arrayLen < v2gLFA_EVFinePositioningSetupParametersType_SensorOrder_ARRAY_SIZE) {
- /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(errn == 0) {
- if(eventCode == 0) {
- errn = decodeNBitUnsignedInteger(stream, 8, &(uint32));
- v2gLFA_EVFinePositioningSetupParametersType->SensorOrder.array[v2gLFA_EVFinePositioningSetupParametersType->SensorOrder.arrayLen] = (uint8_t)(uint32 + 0);
- v2gLFA_EVFinePositioningSetupParametersType->SensorOrder.arrayLen++;
- } else {
- /* Second level event (e.g., xsi:type, xsi:nil, ...) */
- errn = EXI_UNSUPPORTED_EVENT_CODE_CHARACTERISTICS;
- }
- }
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- if(errn == 0) {
- /* valid EE for simple element START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorOrder) ? */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(eventCode == 0) {
- grammarID = 1429;
- } else {
- errn = EXI_DEVIANT_SUPPORT_NOT_DEPLOYED; /* or also typecast and nillable */
- }
- }
- break;
- case 1:
- /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(errn == 0) {
- if(eventCode == 0) {
- errn = decodeNBitUnsignedInteger(stream, 8, &(uint32));
- v2gLFA_EVFinePositioningSetupParametersType->SignalPulseDuration = (uint8_t)(uint32 + 0);
- } 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({urn:iso:15118:2:2016:MsgDataTypes}SignalPulseDuration) ? */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(eventCode == 0) {
- grammarID = 1242;
- } else {
- errn = EXI_DEVIANT_SUPPORT_NOT_DEPLOYED; /* or also typecast and nillable */
- }
- }
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 1429:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorOrder), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SignalPulseDuration)] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gLFA_EVFinePositioningSetupParametersType->SensorOrder.arrayLen < v2gLFA_EVFinePositioningSetupParametersType_SensorOrder_ARRAY_SIZE) {
- /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(errn == 0) {
- if(eventCode == 0) {
- errn = decodeNBitUnsignedInteger(stream, 8, &(uint32));
- v2gLFA_EVFinePositioningSetupParametersType->SensorOrder.array[v2gLFA_EVFinePositioningSetupParametersType->SensorOrder.arrayLen] = (uint8_t)(uint32 + 0);
- v2gLFA_EVFinePositioningSetupParametersType->SensorOrder.arrayLen++;
- } else {
- /* Second level event (e.g., xsi:type, xsi:nil, ...) */
- errn = EXI_UNSUPPORTED_EVENT_CODE_CHARACTERISTICS;
- }
- }
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- if(errn == 0) {
- /* valid EE for simple element START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorOrder) ? */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(eventCode == 0) {
- grammarID = 1430;
- } else {
- errn = EXI_DEVIANT_SUPPORT_NOT_DEPLOYED; /* or also typecast and nillable */
- }
- }
- break;
- case 1:
- /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(errn == 0) {
- if(eventCode == 0) {
- errn = decodeNBitUnsignedInteger(stream, 8, &(uint32));
- v2gLFA_EVFinePositioningSetupParametersType->SignalPulseDuration = (uint8_t)(uint32 + 0);
- } 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({urn:iso:15118:2:2016:MsgDataTypes}SignalPulseDuration) ? */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(eventCode == 0) {
- grammarID = 1242;
- } else {
- errn = EXI_DEVIANT_SUPPORT_NOT_DEPLOYED; /* or also typecast and nillable */
- }
- }
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 1430:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorOrder), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SignalPulseDuration)] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gLFA_EVFinePositioningSetupParametersType->SensorOrder.arrayLen < v2gLFA_EVFinePositioningSetupParametersType_SensorOrder_ARRAY_SIZE) {
- /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(errn == 0) {
- if(eventCode == 0) {
- errn = decodeNBitUnsignedInteger(stream, 8, &(uint32));
- v2gLFA_EVFinePositioningSetupParametersType->SensorOrder.array[v2gLFA_EVFinePositioningSetupParametersType->SensorOrder.arrayLen] = (uint8_t)(uint32 + 0);
- v2gLFA_EVFinePositioningSetupParametersType->SensorOrder.arrayLen++;
- } else {
- /* Second level event (e.g., xsi:type, xsi:nil, ...) */
- errn = EXI_UNSUPPORTED_EVENT_CODE_CHARACTERISTICS;
- }
- }
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- if(errn == 0) {
- /* valid EE for simple element START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorOrder) ? */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(eventCode == 0) {
- grammarID = 1431;
- } else {
- errn = EXI_DEVIANT_SUPPORT_NOT_DEPLOYED; /* or also typecast and nillable */
- }
- }
- break;
- case 1:
- /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(errn == 0) {
- if(eventCode == 0) {
- errn = decodeNBitUnsignedInteger(stream, 8, &(uint32));
- v2gLFA_EVFinePositioningSetupParametersType->SignalPulseDuration = (uint8_t)(uint32 + 0);
- } 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({urn:iso:15118:2:2016:MsgDataTypes}SignalPulseDuration) ? */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(eventCode == 0) {
- grammarID = 1242;
- } else {
- errn = EXI_DEVIANT_SUPPORT_NOT_DEPLOYED; /* or also typecast and nillable */
- }
- }
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 1431:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorOrder), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SignalPulseDuration)] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gLFA_EVFinePositioningSetupParametersType->SensorOrder.arrayLen < v2gLFA_EVFinePositioningSetupParametersType_SensorOrder_ARRAY_SIZE) {
- /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(errn == 0) {
- if(eventCode == 0) {
- errn = decodeNBitUnsignedInteger(stream, 8, &(uint32));
- v2gLFA_EVFinePositioningSetupParametersType->SensorOrder.array[v2gLFA_EVFinePositioningSetupParametersType->SensorOrder.arrayLen] = (uint8_t)(uint32 + 0);
- v2gLFA_EVFinePositioningSetupParametersType->SensorOrder.arrayLen++;
- } else {
- /* Second level event (e.g., xsi:type, xsi:nil, ...) */
- errn = EXI_UNSUPPORTED_EVENT_CODE_CHARACTERISTICS;
- }
- }
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- if(errn == 0) {
- /* valid EE for simple element START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorOrder) ? */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(eventCode == 0) {
- grammarID = 1432;
- } else {
- errn = EXI_DEVIANT_SUPPORT_NOT_DEPLOYED; /* or also typecast and nillable */
- }
- }
- break;
- case 1:
- /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(errn == 0) {
- if(eventCode == 0) {
- errn = decodeNBitUnsignedInteger(stream, 8, &(uint32));
- v2gLFA_EVFinePositioningSetupParametersType->SignalPulseDuration = (uint8_t)(uint32 + 0);
- } 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({urn:iso:15118:2:2016:MsgDataTypes}SignalPulseDuration) ? */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(eventCode == 0) {
- grammarID = 1242;
- } else {
- errn = EXI_DEVIANT_SUPPORT_NOT_DEPLOYED; /* or also typecast and nillable */
- }
- }
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 1432:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorOrder), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SignalPulseDuration)] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gLFA_EVFinePositioningSetupParametersType->SensorOrder.arrayLen < v2gLFA_EVFinePositioningSetupParametersType_SensorOrder_ARRAY_SIZE) {
- /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(errn == 0) {
- if(eventCode == 0) {
- errn = decodeNBitUnsignedInteger(stream, 8, &(uint32));
- v2gLFA_EVFinePositioningSetupParametersType->SensorOrder.array[v2gLFA_EVFinePositioningSetupParametersType->SensorOrder.arrayLen] = (uint8_t)(uint32 + 0);
- v2gLFA_EVFinePositioningSetupParametersType->SensorOrder.arrayLen++;
- } else {
- /* Second level event (e.g., xsi:type, xsi:nil, ...) */
- errn = EXI_UNSUPPORTED_EVENT_CODE_CHARACTERISTICS;
- }
- }
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- if(errn == 0) {
- /* valid EE for simple element START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorOrder) ? */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(eventCode == 0) {
- grammarID = 1433;
- } else {
- errn = EXI_DEVIANT_SUPPORT_NOT_DEPLOYED; /* or also typecast and nillable */
- }
- }
- break;
- case 1:
- /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(errn == 0) {
- if(eventCode == 0) {
- errn = decodeNBitUnsignedInteger(stream, 8, &(uint32));
- v2gLFA_EVFinePositioningSetupParametersType->SignalPulseDuration = (uint8_t)(uint32 + 0);
- } 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({urn:iso:15118:2:2016:MsgDataTypes}SignalPulseDuration) ? */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(eventCode == 0) {
- grammarID = 1242;
- } else {
- errn = EXI_DEVIANT_SUPPORT_NOT_DEPLOYED; /* or also typecast and nillable */
- }
- }
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 1433:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorOrder), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SignalPulseDuration)] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gLFA_EVFinePositioningSetupParametersType->SensorOrder.arrayLen < v2gLFA_EVFinePositioningSetupParametersType_SensorOrder_ARRAY_SIZE) {
- /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(errn == 0) {
- if(eventCode == 0) {
- errn = decodeNBitUnsignedInteger(stream, 8, &(uint32));
- v2gLFA_EVFinePositioningSetupParametersType->SensorOrder.array[v2gLFA_EVFinePositioningSetupParametersType->SensorOrder.arrayLen] = (uint8_t)(uint32 + 0);
- v2gLFA_EVFinePositioningSetupParametersType->SensorOrder.arrayLen++;
- } else {
- /* Second level event (e.g., xsi:type, xsi:nil, ...) */
- errn = EXI_UNSUPPORTED_EVENT_CODE_CHARACTERISTICS;
- }
- }
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- if(errn == 0) {
- /* valid EE for simple element START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorOrder) ? */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(eventCode == 0) {
- grammarID = 1434;
- } else {
- errn = EXI_DEVIANT_SUPPORT_NOT_DEPLOYED; /* or also typecast and nillable */
- }
- }
- break;
- case 1:
- /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(errn == 0) {
- if(eventCode == 0) {
- errn = decodeNBitUnsignedInteger(stream, 8, &(uint32));
- v2gLFA_EVFinePositioningSetupParametersType->SignalPulseDuration = (uint8_t)(uint32 + 0);
- } 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({urn:iso:15118:2:2016:MsgDataTypes}SignalPulseDuration) ? */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(eventCode == 0) {
- grammarID = 1242;
- } else {
- errn = EXI_DEVIANT_SUPPORT_NOT_DEPLOYED; /* or also typecast and nillable */
- }
- }
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 1434:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorOrder), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SignalPulseDuration)] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gLFA_EVFinePositioningSetupParametersType->SensorOrder.arrayLen < v2gLFA_EVFinePositioningSetupParametersType_SensorOrder_ARRAY_SIZE) {
- /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(errn == 0) {
- if(eventCode == 0) {
- errn = decodeNBitUnsignedInteger(stream, 8, &(uint32));
- v2gLFA_EVFinePositioningSetupParametersType->SensorOrder.array[v2gLFA_EVFinePositioningSetupParametersType->SensorOrder.arrayLen] = (uint8_t)(uint32 + 0);
- v2gLFA_EVFinePositioningSetupParametersType->SensorOrder.arrayLen++;
- } else {
- /* Second level event (e.g., xsi:type, xsi:nil, ...) */
- errn = EXI_UNSUPPORTED_EVENT_CODE_CHARACTERISTICS;
- }
- }
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- if(errn == 0) {
- /* valid EE for simple element START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorOrder) ? */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(eventCode == 0) {
- grammarID = 1435;
- } else {
- errn = EXI_DEVIANT_SUPPORT_NOT_DEPLOYED; /* or also typecast and nillable */
- }
- }
- break;
- case 1:
- /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(errn == 0) {
- if(eventCode == 0) {
- errn = decodeNBitUnsignedInteger(stream, 8, &(uint32));
- v2gLFA_EVFinePositioningSetupParametersType->SignalPulseDuration = (uint8_t)(uint32 + 0);
- } 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({urn:iso:15118:2:2016:MsgDataTypes}SignalPulseDuration) ? */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(eventCode == 0) {
- grammarID = 1242;
- } else {
- errn = EXI_DEVIANT_SUPPORT_NOT_DEPLOYED; /* or also typecast and nillable */
- }
- }
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 1435:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorOrder), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SignalPulseDuration)] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gLFA_EVFinePositioningSetupParametersType->SensorOrder.arrayLen < v2gLFA_EVFinePositioningSetupParametersType_SensorOrder_ARRAY_SIZE) {
- /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(errn == 0) {
- if(eventCode == 0) {
- errn = decodeNBitUnsignedInteger(stream, 8, &(uint32));
- v2gLFA_EVFinePositioningSetupParametersType->SensorOrder.array[v2gLFA_EVFinePositioningSetupParametersType->SensorOrder.arrayLen] = (uint8_t)(uint32 + 0);
- v2gLFA_EVFinePositioningSetupParametersType->SensorOrder.arrayLen++;
- } else {
- /* Second level event (e.g., xsi:type, xsi:nil, ...) */
- errn = EXI_UNSUPPORTED_EVENT_CODE_CHARACTERISTICS;
- }
- }
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- if(errn == 0) {
- /* valid EE for simple element START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorOrder) ? */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(eventCode == 0) {
- grammarID = 1436;
- } else {
- errn = EXI_DEVIANT_SUPPORT_NOT_DEPLOYED; /* or also typecast and nillable */
- }
- }
- break;
- case 1:
- /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(errn == 0) {
- if(eventCode == 0) {
- errn = decodeNBitUnsignedInteger(stream, 8, &(uint32));
- v2gLFA_EVFinePositioningSetupParametersType->SignalPulseDuration = (uint8_t)(uint32 + 0);
- } 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({urn:iso:15118:2:2016:MsgDataTypes}SignalPulseDuration) ? */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(eventCode == 0) {
- grammarID = 1242;
- } else {
- errn = EXI_DEVIANT_SUPPORT_NOT_DEPLOYED; /* or also typecast and nillable */
- }
- }
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 1436:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorOrder), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SignalPulseDuration)] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gLFA_EVFinePositioningSetupParametersType->SensorOrder.arrayLen < v2gLFA_EVFinePositioningSetupParametersType_SensorOrder_ARRAY_SIZE) {
- /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(errn == 0) {
- if(eventCode == 0) {
- errn = decodeNBitUnsignedInteger(stream, 8, &(uint32));
- v2gLFA_EVFinePositioningSetupParametersType->SensorOrder.array[v2gLFA_EVFinePositioningSetupParametersType->SensorOrder.arrayLen] = (uint8_t)(uint32 + 0);
- v2gLFA_EVFinePositioningSetupParametersType->SensorOrder.arrayLen++;
- } else {
- /* Second level event (e.g., xsi:type, xsi:nil, ...) */
- errn = EXI_UNSUPPORTED_EVENT_CODE_CHARACTERISTICS;
- }
- }
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- if(errn == 0) {
- /* valid EE for simple element START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorOrder) ? */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(eventCode == 0) {
- grammarID = 1437;
- } else {
- errn = EXI_DEVIANT_SUPPORT_NOT_DEPLOYED; /* or also typecast and nillable */
- }
- }
- break;
- case 1:
- /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(errn == 0) {
- if(eventCode == 0) {
- errn = decodeNBitUnsignedInteger(stream, 8, &(uint32));
- v2gLFA_EVFinePositioningSetupParametersType->SignalPulseDuration = (uint8_t)(uint32 + 0);
- } 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({urn:iso:15118:2:2016:MsgDataTypes}SignalPulseDuration) ? */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(eventCode == 0) {
- grammarID = 1242;
- } else {
- errn = EXI_DEVIANT_SUPPORT_NOT_DEPLOYED; /* or also typecast and nillable */
- }
- }
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 1437:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorOrder), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SignalPulseDuration)] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gLFA_EVFinePositioningSetupParametersType->SensorOrder.arrayLen < v2gLFA_EVFinePositioningSetupParametersType_SensorOrder_ARRAY_SIZE) {
- /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(errn == 0) {
- if(eventCode == 0) {
- errn = decodeNBitUnsignedInteger(stream, 8, &(uint32));
- v2gLFA_EVFinePositioningSetupParametersType->SensorOrder.array[v2gLFA_EVFinePositioningSetupParametersType->SensorOrder.arrayLen] = (uint8_t)(uint32 + 0);
- v2gLFA_EVFinePositioningSetupParametersType->SensorOrder.arrayLen++;
- } else {
- /* Second level event (e.g., xsi:type, xsi:nil, ...) */
- errn = EXI_UNSUPPORTED_EVENT_CODE_CHARACTERISTICS;
- }
- }
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- if(errn == 0) {
- /* valid EE for simple element START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorOrder) ? */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(eventCode == 0) {
- grammarID = 1438;
- } else {
- errn = EXI_DEVIANT_SUPPORT_NOT_DEPLOYED; /* or also typecast and nillable */
- }
- }
- break;
- case 1:
- /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(errn == 0) {
- if(eventCode == 0) {
- errn = decodeNBitUnsignedInteger(stream, 8, &(uint32));
- v2gLFA_EVFinePositioningSetupParametersType->SignalPulseDuration = (uint8_t)(uint32 + 0);
- } 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({urn:iso:15118:2:2016:MsgDataTypes}SignalPulseDuration) ? */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(eventCode == 0) {
- grammarID = 1242;
- } else {
- errn = EXI_DEVIANT_SUPPORT_NOT_DEPLOYED; /* or also typecast and nillable */
- }
- }
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 1438:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorOrder), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SignalPulseDuration)] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gLFA_EVFinePositioningSetupParametersType->SensorOrder.arrayLen < v2gLFA_EVFinePositioningSetupParametersType_SensorOrder_ARRAY_SIZE) {
- /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(errn == 0) {
- if(eventCode == 0) {
- errn = decodeNBitUnsignedInteger(stream, 8, &(uint32));
- v2gLFA_EVFinePositioningSetupParametersType->SensorOrder.array[v2gLFA_EVFinePositioningSetupParametersType->SensorOrder.arrayLen] = (uint8_t)(uint32 + 0);
- v2gLFA_EVFinePositioningSetupParametersType->SensorOrder.arrayLen++;
- } else {
- /* Second level event (e.g., xsi:type, xsi:nil, ...) */
- errn = EXI_UNSUPPORTED_EVENT_CODE_CHARACTERISTICS;
- }
- }
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- if(errn == 0) {
- /* valid EE for simple element START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorOrder) ? */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(eventCode == 0) {
- grammarID = 1439;
- } else {
- errn = EXI_DEVIANT_SUPPORT_NOT_DEPLOYED; /* or also typecast and nillable */
- }
- }
- break;
- case 1:
- /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(errn == 0) {
- if(eventCode == 0) {
- errn = decodeNBitUnsignedInteger(stream, 8, &(uint32));
- v2gLFA_EVFinePositioningSetupParametersType->SignalPulseDuration = (uint8_t)(uint32 + 0);
- } 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({urn:iso:15118:2:2016:MsgDataTypes}SignalPulseDuration) ? */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(eventCode == 0) {
- grammarID = 1242;
- } else {
- errn = EXI_DEVIANT_SUPPORT_NOT_DEPLOYED; /* or also typecast and nillable */
- }
- }
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 1439:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorOrder), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SignalPulseDuration)] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gLFA_EVFinePositioningSetupParametersType->SensorOrder.arrayLen < v2gLFA_EVFinePositioningSetupParametersType_SensorOrder_ARRAY_SIZE) {
- /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(errn == 0) {
- if(eventCode == 0) {
- errn = decodeNBitUnsignedInteger(stream, 8, &(uint32));
- v2gLFA_EVFinePositioningSetupParametersType->SensorOrder.array[v2gLFA_EVFinePositioningSetupParametersType->SensorOrder.arrayLen] = (uint8_t)(uint32 + 0);
- v2gLFA_EVFinePositioningSetupParametersType->SensorOrder.arrayLen++;
- } else {
- /* Second level event (e.g., xsi:type, xsi:nil, ...) */
- errn = EXI_UNSUPPORTED_EVENT_CODE_CHARACTERISTICS;
- }
- }
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- if(errn == 0) {
- /* valid EE for simple element START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorOrder) ? */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(eventCode == 0) {
- grammarID = 1440;
- } else {
- errn = EXI_DEVIANT_SUPPORT_NOT_DEPLOYED; /* or also typecast and nillable */
- }
- }
- break;
- case 1:
- /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(errn == 0) {
- if(eventCode == 0) {
- errn = decodeNBitUnsignedInteger(stream, 8, &(uint32));
- v2gLFA_EVFinePositioningSetupParametersType->SignalPulseDuration = (uint8_t)(uint32 + 0);
- } 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({urn:iso:15118:2:2016:MsgDataTypes}SignalPulseDuration) ? */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(eventCode == 0) {
- grammarID = 1242;
- } else {
- errn = EXI_DEVIANT_SUPPORT_NOT_DEPLOYED; /* or also typecast and nillable */
- }
- }
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 1440:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorOrder), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SignalPulseDuration)] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gLFA_EVFinePositioningSetupParametersType->SensorOrder.arrayLen < v2gLFA_EVFinePositioningSetupParametersType_SensorOrder_ARRAY_SIZE) {
- /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(errn == 0) {
- if(eventCode == 0) {
- errn = decodeNBitUnsignedInteger(stream, 8, &(uint32));
- v2gLFA_EVFinePositioningSetupParametersType->SensorOrder.array[v2gLFA_EVFinePositioningSetupParametersType->SensorOrder.arrayLen] = (uint8_t)(uint32 + 0);
- v2gLFA_EVFinePositioningSetupParametersType->SensorOrder.arrayLen++;
- } else {
- /* Second level event (e.g., xsi:type, xsi:nil, ...) */
- errn = EXI_UNSUPPORTED_EVENT_CODE_CHARACTERISTICS;
- }
- }
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- if(errn == 0) {
- /* valid EE for simple element START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorOrder) ? */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(eventCode == 0) {
- grammarID = 1441;
- } else {
- errn = EXI_DEVIANT_SUPPORT_NOT_DEPLOYED; /* or also typecast and nillable */
- }
- }
- break;
- case 1:
- /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(errn == 0) {
- if(eventCode == 0) {
- errn = decodeNBitUnsignedInteger(stream, 8, &(uint32));
- v2gLFA_EVFinePositioningSetupParametersType->SignalPulseDuration = (uint8_t)(uint32 + 0);
- } 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({urn:iso:15118:2:2016:MsgDataTypes}SignalPulseDuration) ? */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(eventCode == 0) {
- grammarID = 1242;
- } else {
- errn = EXI_DEVIANT_SUPPORT_NOT_DEPLOYED; /* or also typecast and nillable */
- }
- }
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 1441:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorOrder), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SignalPulseDuration)] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gLFA_EVFinePositioningSetupParametersType->SensorOrder.arrayLen < v2gLFA_EVFinePositioningSetupParametersType_SensorOrder_ARRAY_SIZE) {
- /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(errn == 0) {
- if(eventCode == 0) {
- errn = decodeNBitUnsignedInteger(stream, 8, &(uint32));
- v2gLFA_EVFinePositioningSetupParametersType->SensorOrder.array[v2gLFA_EVFinePositioningSetupParametersType->SensorOrder.arrayLen] = (uint8_t)(uint32 + 0);
- v2gLFA_EVFinePositioningSetupParametersType->SensorOrder.arrayLen++;
- } else {
- /* Second level event (e.g., xsi:type, xsi:nil, ...) */
- errn = EXI_UNSUPPORTED_EVENT_CODE_CHARACTERISTICS;
- }
- }
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- if(errn == 0) {
- /* valid EE for simple element START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorOrder) ? */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(eventCode == 0) {
- grammarID = 1442;
- } else {
- errn = EXI_DEVIANT_SUPPORT_NOT_DEPLOYED; /* or also typecast and nillable */
- }
- }
- break;
- case 1:
- /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(errn == 0) {
- if(eventCode == 0) {
- errn = decodeNBitUnsignedInteger(stream, 8, &(uint32));
- v2gLFA_EVFinePositioningSetupParametersType->SignalPulseDuration = (uint8_t)(uint32 + 0);
- } 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({urn:iso:15118:2:2016:MsgDataTypes}SignalPulseDuration) ? */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(eventCode == 0) {
- grammarID = 1242;
- } else {
- errn = EXI_DEVIANT_SUPPORT_NOT_DEPLOYED; /* or also typecast and nillable */
- }
- }
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 1442:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorOrder), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SignalPulseDuration)] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gLFA_EVFinePositioningSetupParametersType->SensorOrder.arrayLen < v2gLFA_EVFinePositioningSetupParametersType_SensorOrder_ARRAY_SIZE) {
- /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(errn == 0) {
- if(eventCode == 0) {
- errn = decodeNBitUnsignedInteger(stream, 8, &(uint32));
- v2gLFA_EVFinePositioningSetupParametersType->SensorOrder.array[v2gLFA_EVFinePositioningSetupParametersType->SensorOrder.arrayLen] = (uint8_t)(uint32 + 0);
- v2gLFA_EVFinePositioningSetupParametersType->SensorOrder.arrayLen++;
- } else {
- /* Second level event (e.g., xsi:type, xsi:nil, ...) */
- errn = EXI_UNSUPPORTED_EVENT_CODE_CHARACTERISTICS;
- }
- }
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- if(errn == 0) {
- /* valid EE for simple element START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorOrder) ? */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(eventCode == 0) {
- grammarID = 1443;
- } else {
- errn = EXI_DEVIANT_SUPPORT_NOT_DEPLOYED; /* or also typecast and nillable */
- }
- }
- break;
- case 1:
- /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(errn == 0) {
- if(eventCode == 0) {
- errn = decodeNBitUnsignedInteger(stream, 8, &(uint32));
- v2gLFA_EVFinePositioningSetupParametersType->SignalPulseDuration = (uint8_t)(uint32 + 0);
- } 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({urn:iso:15118:2:2016:MsgDataTypes}SignalPulseDuration) ? */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(eventCode == 0) {
- grammarID = 1242;
- } else {
- errn = EXI_DEVIANT_SUPPORT_NOT_DEPLOYED; /* or also typecast and nillable */
- }
- }
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 1443:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorOrder), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SignalPulseDuration)] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gLFA_EVFinePositioningSetupParametersType->SensorOrder.arrayLen < v2gLFA_EVFinePositioningSetupParametersType_SensorOrder_ARRAY_SIZE) {
- /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(errn == 0) {
- if(eventCode == 0) {
- errn = decodeNBitUnsignedInteger(stream, 8, &(uint32));
- v2gLFA_EVFinePositioningSetupParametersType->SensorOrder.array[v2gLFA_EVFinePositioningSetupParametersType->SensorOrder.arrayLen] = (uint8_t)(uint32 + 0);
- v2gLFA_EVFinePositioningSetupParametersType->SensorOrder.arrayLen++;
- } else {
- /* Second level event (e.g., xsi:type, xsi:nil, ...) */
- errn = EXI_UNSUPPORTED_EVENT_CODE_CHARACTERISTICS;
- }
- }
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- if(errn == 0) {
- /* valid EE for simple element START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorOrder) ? */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(eventCode == 0) {
- grammarID = 1444;
- } else {
- errn = EXI_DEVIANT_SUPPORT_NOT_DEPLOYED; /* or also typecast and nillable */
- }
- }
- break;
- case 1:
- /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(errn == 0) {
- if(eventCode == 0) {
- errn = decodeNBitUnsignedInteger(stream, 8, &(uint32));
- v2gLFA_EVFinePositioningSetupParametersType->SignalPulseDuration = (uint8_t)(uint32 + 0);
- } 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({urn:iso:15118:2:2016:MsgDataTypes}SignalPulseDuration) ? */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(eventCode == 0) {
- grammarID = 1242;
- } else {
- errn = EXI_DEVIANT_SUPPORT_NOT_DEPLOYED; /* or also typecast and nillable */
- }
- }
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 1444:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorOrder), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SignalPulseDuration)] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gLFA_EVFinePositioningSetupParametersType->SensorOrder.arrayLen < v2gLFA_EVFinePositioningSetupParametersType_SensorOrder_ARRAY_SIZE) {
- /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(errn == 0) {
- if(eventCode == 0) {
- errn = decodeNBitUnsignedInteger(stream, 8, &(uint32));
- v2gLFA_EVFinePositioningSetupParametersType->SensorOrder.array[v2gLFA_EVFinePositioningSetupParametersType->SensorOrder.arrayLen] = (uint8_t)(uint32 + 0);
- v2gLFA_EVFinePositioningSetupParametersType->SensorOrder.arrayLen++;
- } else {
- /* Second level event (e.g., xsi:type, xsi:nil, ...) */
- errn = EXI_UNSUPPORTED_EVENT_CODE_CHARACTERISTICS;
- }
- }
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- if(errn == 0) {
- /* valid EE for simple element START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorOrder) ? */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(eventCode == 0) {
- grammarID = 1445;
- } else {
- errn = EXI_DEVIANT_SUPPORT_NOT_DEPLOYED; /* or also typecast and nillable */
- }
- }
- break;
- case 1:
- /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(errn == 0) {
- if(eventCode == 0) {
- errn = decodeNBitUnsignedInteger(stream, 8, &(uint32));
- v2gLFA_EVFinePositioningSetupParametersType->SignalPulseDuration = (uint8_t)(uint32 + 0);
- } 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({urn:iso:15118:2:2016:MsgDataTypes}SignalPulseDuration) ? */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(eventCode == 0) {
- grammarID = 1242;
- } else {
- errn = EXI_DEVIANT_SUPPORT_NOT_DEPLOYED; /* or also typecast and nillable */
- }
- }
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 1445:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorOrder), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SignalPulseDuration)] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gLFA_EVFinePositioningSetupParametersType->SensorOrder.arrayLen < v2gLFA_EVFinePositioningSetupParametersType_SensorOrder_ARRAY_SIZE) {
- /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(errn == 0) {
- if(eventCode == 0) {
- errn = decodeNBitUnsignedInteger(stream, 8, &(uint32));
- v2gLFA_EVFinePositioningSetupParametersType->SensorOrder.array[v2gLFA_EVFinePositioningSetupParametersType->SensorOrder.arrayLen] = (uint8_t)(uint32 + 0);
- v2gLFA_EVFinePositioningSetupParametersType->SensorOrder.arrayLen++;
- } else {
- /* Second level event (e.g., xsi:type, xsi:nil, ...) */
- errn = EXI_UNSUPPORTED_EVENT_CODE_CHARACTERISTICS;
- }
- }
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- if(errn == 0) {
- /* valid EE for simple element START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorOrder) ? */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(eventCode == 0) {
- grammarID = 1446;
- } else {
- errn = EXI_DEVIANT_SUPPORT_NOT_DEPLOYED; /* or also typecast and nillable */
- }
- }
- break;
- case 1:
- /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(errn == 0) {
- if(eventCode == 0) {
- errn = decodeNBitUnsignedInteger(stream, 8, &(uint32));
- v2gLFA_EVFinePositioningSetupParametersType->SignalPulseDuration = (uint8_t)(uint32 + 0);
- } 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({urn:iso:15118:2:2016:MsgDataTypes}SignalPulseDuration) ? */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(eventCode == 0) {
- grammarID = 1242;
- } else {
- errn = EXI_DEVIANT_SUPPORT_NOT_DEPLOYED; /* or also typecast and nillable */
- }
- }
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 1446:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorOrder), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SignalPulseDuration)] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gLFA_EVFinePositioningSetupParametersType->SensorOrder.arrayLen < v2gLFA_EVFinePositioningSetupParametersType_SensorOrder_ARRAY_SIZE) {
- /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(errn == 0) {
- if(eventCode == 0) {
- errn = decodeNBitUnsignedInteger(stream, 8, &(uint32));
- v2gLFA_EVFinePositioningSetupParametersType->SensorOrder.array[v2gLFA_EVFinePositioningSetupParametersType->SensorOrder.arrayLen] = (uint8_t)(uint32 + 0);
- v2gLFA_EVFinePositioningSetupParametersType->SensorOrder.arrayLen++;
- } else {
- /* Second level event (e.g., xsi:type, xsi:nil, ...) */
- errn = EXI_UNSUPPORTED_EVENT_CODE_CHARACTERISTICS;
- }
- }
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- if(errn == 0) {
- /* valid EE for simple element START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorOrder) ? */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(eventCode == 0) {
- grammarID = 1447;
- } else {
- errn = EXI_DEVIANT_SUPPORT_NOT_DEPLOYED; /* or also typecast and nillable */
- }
- }
- break;
- case 1:
- /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(errn == 0) {
- if(eventCode == 0) {
- errn = decodeNBitUnsignedInteger(stream, 8, &(uint32));
- v2gLFA_EVFinePositioningSetupParametersType->SignalPulseDuration = (uint8_t)(uint32 + 0);
- } 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({urn:iso:15118:2:2016:MsgDataTypes}SignalPulseDuration) ? */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(eventCode == 0) {
- grammarID = 1242;
- } else {
- errn = EXI_DEVIANT_SUPPORT_NOT_DEPLOYED; /* or also typecast and nillable */
- }
- }
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 1447:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorOrder), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SignalPulseDuration)] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gLFA_EVFinePositioningSetupParametersType->SensorOrder.arrayLen < v2gLFA_EVFinePositioningSetupParametersType_SensorOrder_ARRAY_SIZE) {
- /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(errn == 0) {
- if(eventCode == 0) {
- errn = decodeNBitUnsignedInteger(stream, 8, &(uint32));
- v2gLFA_EVFinePositioningSetupParametersType->SensorOrder.array[v2gLFA_EVFinePositioningSetupParametersType->SensorOrder.arrayLen] = (uint8_t)(uint32 + 0);
- v2gLFA_EVFinePositioningSetupParametersType->SensorOrder.arrayLen++;
- } else {
- /* Second level event (e.g., xsi:type, xsi:nil, ...) */
- errn = EXI_UNSUPPORTED_EVENT_CODE_CHARACTERISTICS;
- }
- }
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- if(errn == 0) {
- /* valid EE for simple element START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorOrder) ? */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(eventCode == 0) {
- grammarID = 1448;
- } else {
- errn = EXI_DEVIANT_SUPPORT_NOT_DEPLOYED; /* or also typecast and nillable */
- }
- }
- break;
- case 1:
- /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(errn == 0) {
- if(eventCode == 0) {
- errn = decodeNBitUnsignedInteger(stream, 8, &(uint32));
- v2gLFA_EVFinePositioningSetupParametersType->SignalPulseDuration = (uint8_t)(uint32 + 0);
- } 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({urn:iso:15118:2:2016:MsgDataTypes}SignalPulseDuration) ? */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(eventCode == 0) {
- grammarID = 1242;
- } else {
- errn = EXI_DEVIANT_SUPPORT_NOT_DEPLOYED; /* or also typecast and nillable */
- }
- }
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 1448:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorOrder), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SignalPulseDuration)] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gLFA_EVFinePositioningSetupParametersType->SensorOrder.arrayLen < v2gLFA_EVFinePositioningSetupParametersType_SensorOrder_ARRAY_SIZE) {
- /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(errn == 0) {
- if(eventCode == 0) {
- errn = decodeNBitUnsignedInteger(stream, 8, &(uint32));
- v2gLFA_EVFinePositioningSetupParametersType->SensorOrder.array[v2gLFA_EVFinePositioningSetupParametersType->SensorOrder.arrayLen] = (uint8_t)(uint32 + 0);
- v2gLFA_EVFinePositioningSetupParametersType->SensorOrder.arrayLen++;
- } else {
- /* Second level event (e.g., xsi:type, xsi:nil, ...) */
- errn = EXI_UNSUPPORTED_EVENT_CODE_CHARACTERISTICS;
- }
- }
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- if(errn == 0) {
- /* valid EE for simple element START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorOrder) ? */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(eventCode == 0) {
- grammarID = 1449;
- } else {
- errn = EXI_DEVIANT_SUPPORT_NOT_DEPLOYED; /* or also typecast and nillable */
- }
- }
- break;
- case 1:
- /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(errn == 0) {
- if(eventCode == 0) {
- errn = decodeNBitUnsignedInteger(stream, 8, &(uint32));
- v2gLFA_EVFinePositioningSetupParametersType->SignalPulseDuration = (uint8_t)(uint32 + 0);
- } 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({urn:iso:15118:2:2016:MsgDataTypes}SignalPulseDuration) ? */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(eventCode == 0) {
- grammarID = 1242;
- } else {
- errn = EXI_DEVIANT_SUPPORT_NOT_DEPLOYED; /* or also typecast and nillable */
- }
- }
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 1449:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorOrder), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SignalPulseDuration)] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gLFA_EVFinePositioningSetupParametersType->SensorOrder.arrayLen < v2gLFA_EVFinePositioningSetupParametersType_SensorOrder_ARRAY_SIZE) {
- /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(errn == 0) {
- if(eventCode == 0) {
- errn = decodeNBitUnsignedInteger(stream, 8, &(uint32));
- v2gLFA_EVFinePositioningSetupParametersType->SensorOrder.array[v2gLFA_EVFinePositioningSetupParametersType->SensorOrder.arrayLen] = (uint8_t)(uint32 + 0);
- v2gLFA_EVFinePositioningSetupParametersType->SensorOrder.arrayLen++;
- } else {
- /* Second level event (e.g., xsi:type, xsi:nil, ...) */
- errn = EXI_UNSUPPORTED_EVENT_CODE_CHARACTERISTICS;
- }
- }
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- if(errn == 0) {
- /* valid EE for simple element START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorOrder) ? */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(eventCode == 0) {
- grammarID = 1450;
- } else {
- errn = EXI_DEVIANT_SUPPORT_NOT_DEPLOYED; /* or also typecast and nillable */
- }
- }
- break;
- case 1:
- /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(errn == 0) {
- if(eventCode == 0) {
- errn = decodeNBitUnsignedInteger(stream, 8, &(uint32));
- v2gLFA_EVFinePositioningSetupParametersType->SignalPulseDuration = (uint8_t)(uint32 + 0);
- } 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({urn:iso:15118:2:2016:MsgDataTypes}SignalPulseDuration) ? */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(eventCode == 0) {
- grammarID = 1242;
- } else {
- errn = EXI_DEVIANT_SUPPORT_NOT_DEPLOYED; /* or also typecast and nillable */
- }
- }
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 1450:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorOrder), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SignalPulseDuration)] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gLFA_EVFinePositioningSetupParametersType->SensorOrder.arrayLen < v2gLFA_EVFinePositioningSetupParametersType_SensorOrder_ARRAY_SIZE) {
- /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(errn == 0) {
- if(eventCode == 0) {
- errn = decodeNBitUnsignedInteger(stream, 8, &(uint32));
- v2gLFA_EVFinePositioningSetupParametersType->SensorOrder.array[v2gLFA_EVFinePositioningSetupParametersType->SensorOrder.arrayLen] = (uint8_t)(uint32 + 0);
- v2gLFA_EVFinePositioningSetupParametersType->SensorOrder.arrayLen++;
- } else {
- /* Second level event (e.g., xsi:type, xsi:nil, ...) */
- errn = EXI_UNSUPPORTED_EVENT_CODE_CHARACTERISTICS;
- }
- }
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- if(errn == 0) {
- /* valid EE for simple element START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorOrder) ? */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(eventCode == 0) {
- grammarID = 1451;
- } else {
- errn = EXI_DEVIANT_SUPPORT_NOT_DEPLOYED; /* or also typecast and nillable */
- }
- }
- break;
- case 1:
- /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(errn == 0) {
- if(eventCode == 0) {
- errn = decodeNBitUnsignedInteger(stream, 8, &(uint32));
- v2gLFA_EVFinePositioningSetupParametersType->SignalPulseDuration = (uint8_t)(uint32 + 0);
- } 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({urn:iso:15118:2:2016:MsgDataTypes}SignalPulseDuration) ? */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(eventCode == 0) {
- grammarID = 1242;
- } else {
- errn = EXI_DEVIANT_SUPPORT_NOT_DEPLOYED; /* or also typecast and nillable */
- }
- }
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 1451:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorOrder), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SignalPulseDuration)] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gLFA_EVFinePositioningSetupParametersType->SensorOrder.arrayLen < v2gLFA_EVFinePositioningSetupParametersType_SensorOrder_ARRAY_SIZE) {
- /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(errn == 0) {
- if(eventCode == 0) {
- errn = decodeNBitUnsignedInteger(stream, 8, &(uint32));
- v2gLFA_EVFinePositioningSetupParametersType->SensorOrder.array[v2gLFA_EVFinePositioningSetupParametersType->SensorOrder.arrayLen] = (uint8_t)(uint32 + 0);
- v2gLFA_EVFinePositioningSetupParametersType->SensorOrder.arrayLen++;
- } else {
- /* Second level event (e.g., xsi:type, xsi:nil, ...) */
- errn = EXI_UNSUPPORTED_EVENT_CODE_CHARACTERISTICS;
- }
- }
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- if(errn == 0) {
- /* valid EE for simple element START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorOrder) ? */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(eventCode == 0) {
- grammarID = 1452;
- } else {
- errn = EXI_DEVIANT_SUPPORT_NOT_DEPLOYED; /* or also typecast and nillable */
- }
- }
- break;
- case 1:
- /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(errn == 0) {
- if(eventCode == 0) {
- errn = decodeNBitUnsignedInteger(stream, 8, &(uint32));
- v2gLFA_EVFinePositioningSetupParametersType->SignalPulseDuration = (uint8_t)(uint32 + 0);
- } 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({urn:iso:15118:2:2016:MsgDataTypes}SignalPulseDuration) ? */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(eventCode == 0) {
- grammarID = 1242;
- } else {
- errn = EXI_DEVIANT_SUPPORT_NOT_DEPLOYED; /* or also typecast and nillable */
- }
- }
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 1452:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorOrder), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SignalPulseDuration)] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gLFA_EVFinePositioningSetupParametersType->SensorOrder.arrayLen < v2gLFA_EVFinePositioningSetupParametersType_SensorOrder_ARRAY_SIZE) {
- /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(errn == 0) {
- if(eventCode == 0) {
- errn = decodeNBitUnsignedInteger(stream, 8, &(uint32));
- v2gLFA_EVFinePositioningSetupParametersType->SensorOrder.array[v2gLFA_EVFinePositioningSetupParametersType->SensorOrder.arrayLen] = (uint8_t)(uint32 + 0);
- v2gLFA_EVFinePositioningSetupParametersType->SensorOrder.arrayLen++;
- } else {
- /* Second level event (e.g., xsi:type, xsi:nil, ...) */
- errn = EXI_UNSUPPORTED_EVENT_CODE_CHARACTERISTICS;
- }
- }
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- if(errn == 0) {
- /* valid EE for simple element START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorOrder) ? */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(eventCode == 0) {
- grammarID = 1453;
- } else {
- errn = EXI_DEVIANT_SUPPORT_NOT_DEPLOYED; /* or also typecast and nillable */
- }
- }
- break;
- case 1:
- /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(errn == 0) {
- if(eventCode == 0) {
- errn = decodeNBitUnsignedInteger(stream, 8, &(uint32));
- v2gLFA_EVFinePositioningSetupParametersType->SignalPulseDuration = (uint8_t)(uint32 + 0);
- } 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({urn:iso:15118:2:2016:MsgDataTypes}SignalPulseDuration) ? */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(eventCode == 0) {
- grammarID = 1242;
- } else {
- errn = EXI_DEVIANT_SUPPORT_NOT_DEPLOYED; /* or also typecast and nillable */
- }
- }
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 1453:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorOrder), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SignalPulseDuration)] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gLFA_EVFinePositioningSetupParametersType->SensorOrder.arrayLen < v2gLFA_EVFinePositioningSetupParametersType_SensorOrder_ARRAY_SIZE) {
- /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(errn == 0) {
- if(eventCode == 0) {
- errn = decodeNBitUnsignedInteger(stream, 8, &(uint32));
- v2gLFA_EVFinePositioningSetupParametersType->SensorOrder.array[v2gLFA_EVFinePositioningSetupParametersType->SensorOrder.arrayLen] = (uint8_t)(uint32 + 0);
- v2gLFA_EVFinePositioningSetupParametersType->SensorOrder.arrayLen++;
- } else {
- /* Second level event (e.g., xsi:type, xsi:nil, ...) */
- errn = EXI_UNSUPPORTED_EVENT_CODE_CHARACTERISTICS;
- }
- }
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- if(errn == 0) {
- /* valid EE for simple element START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorOrder) ? */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(eventCode == 0) {
- grammarID = 1454;
- } else {
- errn = EXI_DEVIANT_SUPPORT_NOT_DEPLOYED; /* or also typecast and nillable */
- }
- }
- break;
- case 1:
- /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(errn == 0) {
- if(eventCode == 0) {
- errn = decodeNBitUnsignedInteger(stream, 8, &(uint32));
- v2gLFA_EVFinePositioningSetupParametersType->SignalPulseDuration = (uint8_t)(uint32 + 0);
- } 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({urn:iso:15118:2:2016:MsgDataTypes}SignalPulseDuration) ? */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(eventCode == 0) {
- grammarID = 1242;
- } else {
- errn = EXI_DEVIANT_SUPPORT_NOT_DEPLOYED; /* or also typecast and nillable */
- }
- }
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 1454:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorOrder), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SignalPulseDuration)] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gLFA_EVFinePositioningSetupParametersType->SensorOrder.arrayLen < v2gLFA_EVFinePositioningSetupParametersType_SensorOrder_ARRAY_SIZE) {
- /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(errn == 0) {
- if(eventCode == 0) {
- errn = decodeNBitUnsignedInteger(stream, 8, &(uint32));
- v2gLFA_EVFinePositioningSetupParametersType->SensorOrder.array[v2gLFA_EVFinePositioningSetupParametersType->SensorOrder.arrayLen] = (uint8_t)(uint32 + 0);
- v2gLFA_EVFinePositioningSetupParametersType->SensorOrder.arrayLen++;
- } else {
- /* Second level event (e.g., xsi:type, xsi:nil, ...) */
- errn = EXI_UNSUPPORTED_EVENT_CODE_CHARACTERISTICS;
- }
- }
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- if(errn == 0) {
- /* valid EE for simple element START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorOrder) ? */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(eventCode == 0) {
- grammarID = 1455;
- } else {
- errn = EXI_DEVIANT_SUPPORT_NOT_DEPLOYED; /* or also typecast and nillable */
- }
- }
- break;
- case 1:
- /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(errn == 0) {
- if(eventCode == 0) {
- errn = decodeNBitUnsignedInteger(stream, 8, &(uint32));
- v2gLFA_EVFinePositioningSetupParametersType->SignalPulseDuration = (uint8_t)(uint32 + 0);
- } 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({urn:iso:15118:2:2016:MsgDataTypes}SignalPulseDuration) ? */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(eventCode == 0) {
- grammarID = 1242;
- } else {
- errn = EXI_DEVIANT_SUPPORT_NOT_DEPLOYED; /* or also typecast and nillable */
- }
- }
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 1455:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorOrder), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SignalPulseDuration)] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gLFA_EVFinePositioningSetupParametersType->SensorOrder.arrayLen < v2gLFA_EVFinePositioningSetupParametersType_SensorOrder_ARRAY_SIZE) {
- /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(errn == 0) {
- if(eventCode == 0) {
- errn = decodeNBitUnsignedInteger(stream, 8, &(uint32));
- v2gLFA_EVFinePositioningSetupParametersType->SensorOrder.array[v2gLFA_EVFinePositioningSetupParametersType->SensorOrder.arrayLen] = (uint8_t)(uint32 + 0);
- v2gLFA_EVFinePositioningSetupParametersType->SensorOrder.arrayLen++;
- } else {
- /* Second level event (e.g., xsi:type, xsi:nil, ...) */
- errn = EXI_UNSUPPORTED_EVENT_CODE_CHARACTERISTICS;
- }
- }
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- if(errn == 0) {
- /* valid EE for simple element START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorOrder) ? */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(eventCode == 0) {
- grammarID = 1456;
- } else {
- errn = EXI_DEVIANT_SUPPORT_NOT_DEPLOYED; /* or also typecast and nillable */
- }
- }
- break;
- case 1:
- /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(errn == 0) {
- if(eventCode == 0) {
- errn = decodeNBitUnsignedInteger(stream, 8, &(uint32));
- v2gLFA_EVFinePositioningSetupParametersType->SignalPulseDuration = (uint8_t)(uint32 + 0);
- } 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({urn:iso:15118:2:2016:MsgDataTypes}SignalPulseDuration) ? */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(eventCode == 0) {
- grammarID = 1242;
- } else {
- errn = EXI_DEVIANT_SUPPORT_NOT_DEPLOYED; /* or also typecast and nillable */
- }
- }
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 1456:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorOrder), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SignalPulseDuration)] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gLFA_EVFinePositioningSetupParametersType->SensorOrder.arrayLen < v2gLFA_EVFinePositioningSetupParametersType_SensorOrder_ARRAY_SIZE) {
- /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(errn == 0) {
- if(eventCode == 0) {
- errn = decodeNBitUnsignedInteger(stream, 8, &(uint32));
- v2gLFA_EVFinePositioningSetupParametersType->SensorOrder.array[v2gLFA_EVFinePositioningSetupParametersType->SensorOrder.arrayLen] = (uint8_t)(uint32 + 0);
- v2gLFA_EVFinePositioningSetupParametersType->SensorOrder.arrayLen++;
- } else {
- /* Second level event (e.g., xsi:type, xsi:nil, ...) */
- errn = EXI_UNSUPPORTED_EVENT_CODE_CHARACTERISTICS;
- }
- }
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- if(errn == 0) {
- /* valid EE for simple element START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorOrder) ? */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(eventCode == 0) {
- grammarID = 1457;
- } else {
- errn = EXI_DEVIANT_SUPPORT_NOT_DEPLOYED; /* or also typecast and nillable */
- }
- }
- break;
- case 1:
- /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(errn == 0) {
- if(eventCode == 0) {
- errn = decodeNBitUnsignedInteger(stream, 8, &(uint32));
- v2gLFA_EVFinePositioningSetupParametersType->SignalPulseDuration = (uint8_t)(uint32 + 0);
- } 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({urn:iso:15118:2:2016:MsgDataTypes}SignalPulseDuration) ? */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(eventCode == 0) {
- grammarID = 1242;
- } else {
- errn = EXI_DEVIANT_SUPPORT_NOT_DEPLOYED; /* or also typecast and nillable */
- }
- }
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 1457:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorOrder), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SignalPulseDuration)] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gLFA_EVFinePositioningSetupParametersType->SensorOrder.arrayLen < v2gLFA_EVFinePositioningSetupParametersType_SensorOrder_ARRAY_SIZE) {
- /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(errn == 0) {
- if(eventCode == 0) {
- errn = decodeNBitUnsignedInteger(stream, 8, &(uint32));
- v2gLFA_EVFinePositioningSetupParametersType->SensorOrder.array[v2gLFA_EVFinePositioningSetupParametersType->SensorOrder.arrayLen] = (uint8_t)(uint32 + 0);
- v2gLFA_EVFinePositioningSetupParametersType->SensorOrder.arrayLen++;
- } else {
- /* Second level event (e.g., xsi:type, xsi:nil, ...) */
- errn = EXI_UNSUPPORTED_EVENT_CODE_CHARACTERISTICS;
- }
- }
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- if(errn == 0) {
- /* valid EE for simple element START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorOrder) ? */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(eventCode == 0) {
- grammarID = 1458;
- } else {
- errn = EXI_DEVIANT_SUPPORT_NOT_DEPLOYED; /* or also typecast and nillable */
- }
- }
- break;
- case 1:
- /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(errn == 0) {
- if(eventCode == 0) {
- errn = decodeNBitUnsignedInteger(stream, 8, &(uint32));
- v2gLFA_EVFinePositioningSetupParametersType->SignalPulseDuration = (uint8_t)(uint32 + 0);
- } 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({urn:iso:15118:2:2016:MsgDataTypes}SignalPulseDuration) ? */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(eventCode == 0) {
- grammarID = 1242;
- } else {
- errn = EXI_DEVIANT_SUPPORT_NOT_DEPLOYED; /* or also typecast and nillable */
- }
- }
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 1458:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorOrder), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SignalPulseDuration)] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gLFA_EVFinePositioningSetupParametersType->SensorOrder.arrayLen < v2gLFA_EVFinePositioningSetupParametersType_SensorOrder_ARRAY_SIZE) {
- /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(errn == 0) {
- if(eventCode == 0) {
- errn = decodeNBitUnsignedInteger(stream, 8, &(uint32));
- v2gLFA_EVFinePositioningSetupParametersType->SensorOrder.array[v2gLFA_EVFinePositioningSetupParametersType->SensorOrder.arrayLen] = (uint8_t)(uint32 + 0);
- v2gLFA_EVFinePositioningSetupParametersType->SensorOrder.arrayLen++;
- } else {
- /* Second level event (e.g., xsi:type, xsi:nil, ...) */
- errn = EXI_UNSUPPORTED_EVENT_CODE_CHARACTERISTICS;
- }
- }
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- if(errn == 0) {
- /* valid EE for simple element START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorOrder) ? */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(eventCode == 0) {
- grammarID = 1459;
- } else {
- errn = EXI_DEVIANT_SUPPORT_NOT_DEPLOYED; /* or also typecast and nillable */
- }
- }
- break;
- case 1:
- /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(errn == 0) {
- if(eventCode == 0) {
- errn = decodeNBitUnsignedInteger(stream, 8, &(uint32));
- v2gLFA_EVFinePositioningSetupParametersType->SignalPulseDuration = (uint8_t)(uint32 + 0);
- } 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({urn:iso:15118:2:2016:MsgDataTypes}SignalPulseDuration) ? */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(eventCode == 0) {
- grammarID = 1242;
- } else {
- errn = EXI_DEVIANT_SUPPORT_NOT_DEPLOYED; /* or also typecast and nillable */
- }
- }
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 1459:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorOrder), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SignalPulseDuration)] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gLFA_EVFinePositioningSetupParametersType->SensorOrder.arrayLen < v2gLFA_EVFinePositioningSetupParametersType_SensorOrder_ARRAY_SIZE) {
- /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(errn == 0) {
- if(eventCode == 0) {
- errn = decodeNBitUnsignedInteger(stream, 8, &(uint32));
- v2gLFA_EVFinePositioningSetupParametersType->SensorOrder.array[v2gLFA_EVFinePositioningSetupParametersType->SensorOrder.arrayLen] = (uint8_t)(uint32 + 0);
- v2gLFA_EVFinePositioningSetupParametersType->SensorOrder.arrayLen++;
- } else {
- /* Second level event (e.g., xsi:type, xsi:nil, ...) */
- errn = EXI_UNSUPPORTED_EVENT_CODE_CHARACTERISTICS;
- }
- }
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- if(errn == 0) {
- /* valid EE for simple element START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorOrder) ? */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(eventCode == 0) {
- grammarID = 1460;
- } else {
- errn = EXI_DEVIANT_SUPPORT_NOT_DEPLOYED; /* or also typecast and nillable */
- }
- }
- break;
- case 1:
- /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(errn == 0) {
- if(eventCode == 0) {
- errn = decodeNBitUnsignedInteger(stream, 8, &(uint32));
- v2gLFA_EVFinePositioningSetupParametersType->SignalPulseDuration = (uint8_t)(uint32 + 0);
- } 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({urn:iso:15118:2:2016:MsgDataTypes}SignalPulseDuration) ? */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(eventCode == 0) {
- grammarID = 1242;
- } else {
- errn = EXI_DEVIANT_SUPPORT_NOT_DEPLOYED; /* or also typecast and nillable */
- }
- }
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 1460:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorOrder), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SignalPulseDuration)] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gLFA_EVFinePositioningSetupParametersType->SensorOrder.arrayLen < v2gLFA_EVFinePositioningSetupParametersType_SensorOrder_ARRAY_SIZE) {
- /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(errn == 0) {
- if(eventCode == 0) {
- errn = decodeNBitUnsignedInteger(stream, 8, &(uint32));
- v2gLFA_EVFinePositioningSetupParametersType->SensorOrder.array[v2gLFA_EVFinePositioningSetupParametersType->SensorOrder.arrayLen] = (uint8_t)(uint32 + 0);
- v2gLFA_EVFinePositioningSetupParametersType->SensorOrder.arrayLen++;
- } else {
- /* Second level event (e.g., xsi:type, xsi:nil, ...) */
- errn = EXI_UNSUPPORTED_EVENT_CODE_CHARACTERISTICS;
- }
- }
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- if(errn == 0) {
- /* valid EE for simple element START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorOrder) ? */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(eventCode == 0) {
- grammarID = 1461;
- } else {
- errn = EXI_DEVIANT_SUPPORT_NOT_DEPLOYED; /* or also typecast and nillable */
- }
- }
- break;
- case 1:
- /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(errn == 0) {
- if(eventCode == 0) {
- errn = decodeNBitUnsignedInteger(stream, 8, &(uint32));
- v2gLFA_EVFinePositioningSetupParametersType->SignalPulseDuration = (uint8_t)(uint32 + 0);
- } 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({urn:iso:15118:2:2016:MsgDataTypes}SignalPulseDuration) ? */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(eventCode == 0) {
- grammarID = 1242;
- } else {
- errn = EXI_DEVIANT_SUPPORT_NOT_DEPLOYED; /* or also typecast and nillable */
- }
- }
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 1461:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorOrder), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SignalPulseDuration)] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gLFA_EVFinePositioningSetupParametersType->SensorOrder.arrayLen < v2gLFA_EVFinePositioningSetupParametersType_SensorOrder_ARRAY_SIZE) {
- /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(errn == 0) {
- if(eventCode == 0) {
- errn = decodeNBitUnsignedInteger(stream, 8, &(uint32));
- v2gLFA_EVFinePositioningSetupParametersType->SensorOrder.array[v2gLFA_EVFinePositioningSetupParametersType->SensorOrder.arrayLen] = (uint8_t)(uint32 + 0);
- v2gLFA_EVFinePositioningSetupParametersType->SensorOrder.arrayLen++;
- } else {
- /* Second level event (e.g., xsi:type, xsi:nil, ...) */
- errn = EXI_UNSUPPORTED_EVENT_CODE_CHARACTERISTICS;
- }
- }
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- if(errn == 0) {
- /* valid EE for simple element START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorOrder) ? */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(eventCode == 0) {
- grammarID = 1462;
- } else {
- errn = EXI_DEVIANT_SUPPORT_NOT_DEPLOYED; /* or also typecast and nillable */
- }
- }
- break;
- case 1:
- /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(errn == 0) {
- if(eventCode == 0) {
- errn = decodeNBitUnsignedInteger(stream, 8, &(uint32));
- v2gLFA_EVFinePositioningSetupParametersType->SignalPulseDuration = (uint8_t)(uint32 + 0);
- } 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({urn:iso:15118:2:2016:MsgDataTypes}SignalPulseDuration) ? */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(eventCode == 0) {
- grammarID = 1242;
- } else {
- errn = EXI_DEVIANT_SUPPORT_NOT_DEPLOYED; /* or also typecast and nillable */
- }
- }
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 1462:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorOrder), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SignalPulseDuration)] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gLFA_EVFinePositioningSetupParametersType->SensorOrder.arrayLen < v2gLFA_EVFinePositioningSetupParametersType_SensorOrder_ARRAY_SIZE) {
- /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(errn == 0) {
- if(eventCode == 0) {
- errn = decodeNBitUnsignedInteger(stream, 8, &(uint32));
- v2gLFA_EVFinePositioningSetupParametersType->SensorOrder.array[v2gLFA_EVFinePositioningSetupParametersType->SensorOrder.arrayLen] = (uint8_t)(uint32 + 0);
- v2gLFA_EVFinePositioningSetupParametersType->SensorOrder.arrayLen++;
- } else {
- /* Second level event (e.g., xsi:type, xsi:nil, ...) */
- errn = EXI_UNSUPPORTED_EVENT_CODE_CHARACTERISTICS;
- }
- }
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- if(errn == 0) {
- /* valid EE for simple element START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorOrder) ? */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(eventCode == 0) {
- grammarID = 1463;
- } else {
- errn = EXI_DEVIANT_SUPPORT_NOT_DEPLOYED; /* or also typecast and nillable */
- }
- }
- break;
- case 1:
- /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(errn == 0) {
- if(eventCode == 0) {
- errn = decodeNBitUnsignedInteger(stream, 8, &(uint32));
- v2gLFA_EVFinePositioningSetupParametersType->SignalPulseDuration = (uint8_t)(uint32 + 0);
- } 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({urn:iso:15118:2:2016:MsgDataTypes}SignalPulseDuration) ? */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(eventCode == 0) {
- grammarID = 1242;
- } else {
- errn = EXI_DEVIANT_SUPPORT_NOT_DEPLOYED; /* or also typecast and nillable */
- }
- }
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 1463:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorOrder), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SignalPulseDuration)] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gLFA_EVFinePositioningSetupParametersType->SensorOrder.arrayLen < v2gLFA_EVFinePositioningSetupParametersType_SensorOrder_ARRAY_SIZE) {
- /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(errn == 0) {
- if(eventCode == 0) {
- errn = decodeNBitUnsignedInteger(stream, 8, &(uint32));
- v2gLFA_EVFinePositioningSetupParametersType->SensorOrder.array[v2gLFA_EVFinePositioningSetupParametersType->SensorOrder.arrayLen] = (uint8_t)(uint32 + 0);
- v2gLFA_EVFinePositioningSetupParametersType->SensorOrder.arrayLen++;
- } else {
- /* Second level event (e.g., xsi:type, xsi:nil, ...) */
- errn = EXI_UNSUPPORTED_EVENT_CODE_CHARACTERISTICS;
- }
- }
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- if(errn == 0) {
- /* valid EE for simple element START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorOrder) ? */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(eventCode == 0) {
- grammarID = 1464;
- } else {
- errn = EXI_DEVIANT_SUPPORT_NOT_DEPLOYED; /* or also typecast and nillable */
- }
- }
- break;
- case 1:
- /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(errn == 0) {
- if(eventCode == 0) {
- errn = decodeNBitUnsignedInteger(stream, 8, &(uint32));
- v2gLFA_EVFinePositioningSetupParametersType->SignalPulseDuration = (uint8_t)(uint32 + 0);
- } 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({urn:iso:15118:2:2016:MsgDataTypes}SignalPulseDuration) ? */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(eventCode == 0) {
- grammarID = 1242;
- } else {
- errn = EXI_DEVIANT_SUPPORT_NOT_DEPLOYED; /* or also typecast and nillable */
- }
- }
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 1464:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorOrder), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SignalPulseDuration)] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gLFA_EVFinePositioningSetupParametersType->SensorOrder.arrayLen < v2gLFA_EVFinePositioningSetupParametersType_SensorOrder_ARRAY_SIZE) {
- /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(errn == 0) {
- if(eventCode == 0) {
- errn = decodeNBitUnsignedInteger(stream, 8, &(uint32));
- v2gLFA_EVFinePositioningSetupParametersType->SensorOrder.array[v2gLFA_EVFinePositioningSetupParametersType->SensorOrder.arrayLen] = (uint8_t)(uint32 + 0);
- v2gLFA_EVFinePositioningSetupParametersType->SensorOrder.arrayLen++;
- } else {
- /* Second level event (e.g., xsi:type, xsi:nil, ...) */
- errn = EXI_UNSUPPORTED_EVENT_CODE_CHARACTERISTICS;
- }
- }
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- if(errn == 0) {
- /* valid EE for simple element START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorOrder) ? */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(eventCode == 0) {
- grammarID = 1465;
- } else {
- errn = EXI_DEVIANT_SUPPORT_NOT_DEPLOYED; /* or also typecast and nillable */
- }
- }
- break;
- case 1:
- /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(errn == 0) {
- if(eventCode == 0) {
- errn = decodeNBitUnsignedInteger(stream, 8, &(uint32));
- v2gLFA_EVFinePositioningSetupParametersType->SignalPulseDuration = (uint8_t)(uint32 + 0);
- } 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({urn:iso:15118:2:2016:MsgDataTypes}SignalPulseDuration) ? */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(eventCode == 0) {
- grammarID = 1242;
- } else {
- errn = EXI_DEVIANT_SUPPORT_NOT_DEPLOYED; /* or also typecast and nillable */
- }
- }
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 1465:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorOrder), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SignalPulseDuration)] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gLFA_EVFinePositioningSetupParametersType->SensorOrder.arrayLen < v2gLFA_EVFinePositioningSetupParametersType_SensorOrder_ARRAY_SIZE) {
- /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(errn == 0) {
- if(eventCode == 0) {
- errn = decodeNBitUnsignedInteger(stream, 8, &(uint32));
- v2gLFA_EVFinePositioningSetupParametersType->SensorOrder.array[v2gLFA_EVFinePositioningSetupParametersType->SensorOrder.arrayLen] = (uint8_t)(uint32 + 0);
- v2gLFA_EVFinePositioningSetupParametersType->SensorOrder.arrayLen++;
- } else {
- /* Second level event (e.g., xsi:type, xsi:nil, ...) */
- errn = EXI_UNSUPPORTED_EVENT_CODE_CHARACTERISTICS;
- }
- }
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- if(errn == 0) {
- /* valid EE for simple element START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorOrder) ? */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(eventCode == 0) {
- grammarID = 1466;
- } else {
- errn = EXI_DEVIANT_SUPPORT_NOT_DEPLOYED; /* or also typecast and nillable */
- }
- }
- break;
- case 1:
- /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(errn == 0) {
- if(eventCode == 0) {
- errn = decodeNBitUnsignedInteger(stream, 8, &(uint32));
- v2gLFA_EVFinePositioningSetupParametersType->SignalPulseDuration = (uint8_t)(uint32 + 0);
- } 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({urn:iso:15118:2:2016:MsgDataTypes}SignalPulseDuration) ? */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(eventCode == 0) {
- grammarID = 1242;
- } else {
- errn = EXI_DEVIANT_SUPPORT_NOT_DEPLOYED; /* or also typecast and nillable */
- }
- }
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 1466:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorOrder), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SignalPulseDuration)] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gLFA_EVFinePositioningSetupParametersType->SensorOrder.arrayLen < v2gLFA_EVFinePositioningSetupParametersType_SensorOrder_ARRAY_SIZE) {
- /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(errn == 0) {
- if(eventCode == 0) {
- errn = decodeNBitUnsignedInteger(stream, 8, &(uint32));
- v2gLFA_EVFinePositioningSetupParametersType->SensorOrder.array[v2gLFA_EVFinePositioningSetupParametersType->SensorOrder.arrayLen] = (uint8_t)(uint32 + 0);
- v2gLFA_EVFinePositioningSetupParametersType->SensorOrder.arrayLen++;
- } else {
- /* Second level event (e.g., xsi:type, xsi:nil, ...) */
- errn = EXI_UNSUPPORTED_EVENT_CODE_CHARACTERISTICS;
- }
- }
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- if(errn == 0) {
- /* valid EE for simple element START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorOrder) ? */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(eventCode == 0) {
- grammarID = 1467;
- } else {
- errn = EXI_DEVIANT_SUPPORT_NOT_DEPLOYED; /* or also typecast and nillable */
- }
- }
- break;
- case 1:
- /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(errn == 0) {
- if(eventCode == 0) {
- errn = decodeNBitUnsignedInteger(stream, 8, &(uint32));
- v2gLFA_EVFinePositioningSetupParametersType->SignalPulseDuration = (uint8_t)(uint32 + 0);
- } 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({urn:iso:15118:2:2016:MsgDataTypes}SignalPulseDuration) ? */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(eventCode == 0) {
- grammarID = 1242;
- } else {
- errn = EXI_DEVIANT_SUPPORT_NOT_DEPLOYED; /* or also typecast and nillable */
- }
- }
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 1467:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorOrder), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SignalPulseDuration)] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gLFA_EVFinePositioningSetupParametersType->SensorOrder.arrayLen < v2gLFA_EVFinePositioningSetupParametersType_SensorOrder_ARRAY_SIZE) {
- /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(errn == 0) {
- if(eventCode == 0) {
- errn = decodeNBitUnsignedInteger(stream, 8, &(uint32));
- v2gLFA_EVFinePositioningSetupParametersType->SensorOrder.array[v2gLFA_EVFinePositioningSetupParametersType->SensorOrder.arrayLen] = (uint8_t)(uint32 + 0);
- v2gLFA_EVFinePositioningSetupParametersType->SensorOrder.arrayLen++;
- } else {
- /* Second level event (e.g., xsi:type, xsi:nil, ...) */
- errn = EXI_UNSUPPORTED_EVENT_CODE_CHARACTERISTICS;
- }
- }
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- if(errn == 0) {
- /* valid EE for simple element START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorOrder) ? */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(eventCode == 0) {
- grammarID = 1468;
- } else {
- errn = EXI_DEVIANT_SUPPORT_NOT_DEPLOYED; /* or also typecast and nillable */
- }
- }
- break;
- case 1:
- /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(errn == 0) {
- if(eventCode == 0) {
- errn = decodeNBitUnsignedInteger(stream, 8, &(uint32));
- v2gLFA_EVFinePositioningSetupParametersType->SignalPulseDuration = (uint8_t)(uint32 + 0);
- } 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({urn:iso:15118:2:2016:MsgDataTypes}SignalPulseDuration) ? */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(eventCode == 0) {
- grammarID = 1242;
- } else {
- errn = EXI_DEVIANT_SUPPORT_NOT_DEPLOYED; /* or also typecast and nillable */
- }
- }
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 1468:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorOrder), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SignalPulseDuration)] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gLFA_EVFinePositioningSetupParametersType->SensorOrder.arrayLen < v2gLFA_EVFinePositioningSetupParametersType_SensorOrder_ARRAY_SIZE) {
- /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(errn == 0) {
- if(eventCode == 0) {
- errn = decodeNBitUnsignedInteger(stream, 8, &(uint32));
- v2gLFA_EVFinePositioningSetupParametersType->SensorOrder.array[v2gLFA_EVFinePositioningSetupParametersType->SensorOrder.arrayLen] = (uint8_t)(uint32 + 0);
- v2gLFA_EVFinePositioningSetupParametersType->SensorOrder.arrayLen++;
- } else {
- /* Second level event (e.g., xsi:type, xsi:nil, ...) */
- errn = EXI_UNSUPPORTED_EVENT_CODE_CHARACTERISTICS;
- }
- }
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- if(errn == 0) {
- /* valid EE for simple element START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorOrder) ? */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(eventCode == 0) {
- grammarID = 1469;
- } else {
- errn = EXI_DEVIANT_SUPPORT_NOT_DEPLOYED; /* or also typecast and nillable */
- }
- }
- break;
- case 1:
- /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(errn == 0) {
- if(eventCode == 0) {
- errn = decodeNBitUnsignedInteger(stream, 8, &(uint32));
- v2gLFA_EVFinePositioningSetupParametersType->SignalPulseDuration = (uint8_t)(uint32 + 0);
- } 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({urn:iso:15118:2:2016:MsgDataTypes}SignalPulseDuration) ? */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(eventCode == 0) {
- grammarID = 1242;
- } else {
- errn = EXI_DEVIANT_SUPPORT_NOT_DEPLOYED; /* or also typecast and nillable */
- }
- }
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 1469:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorOrder), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SignalPulseDuration)] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gLFA_EVFinePositioningSetupParametersType->SensorOrder.arrayLen < v2gLFA_EVFinePositioningSetupParametersType_SensorOrder_ARRAY_SIZE) {
- /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(errn == 0) {
- if(eventCode == 0) {
- errn = decodeNBitUnsignedInteger(stream, 8, &(uint32));
- v2gLFA_EVFinePositioningSetupParametersType->SensorOrder.array[v2gLFA_EVFinePositioningSetupParametersType->SensorOrder.arrayLen] = (uint8_t)(uint32 + 0);
- v2gLFA_EVFinePositioningSetupParametersType->SensorOrder.arrayLen++;
- } else {
- /* Second level event (e.g., xsi:type, xsi:nil, ...) */
- errn = EXI_UNSUPPORTED_EVENT_CODE_CHARACTERISTICS;
- }
- }
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- if(errn == 0) {
- /* valid EE for simple element START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorOrder) ? */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(eventCode == 0) {
- grammarID = 1470;
- } else {
- errn = EXI_DEVIANT_SUPPORT_NOT_DEPLOYED; /* or also typecast and nillable */
- }
- }
- break;
- case 1:
- /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(errn == 0) {
- if(eventCode == 0) {
- errn = decodeNBitUnsignedInteger(stream, 8, &(uint32));
- v2gLFA_EVFinePositioningSetupParametersType->SignalPulseDuration = (uint8_t)(uint32 + 0);
- } 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({urn:iso:15118:2:2016:MsgDataTypes}SignalPulseDuration) ? */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(eventCode == 0) {
- grammarID = 1242;
- } else {
- errn = EXI_DEVIANT_SUPPORT_NOT_DEPLOYED; /* or also typecast and nillable */
- }
- }
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 1470:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorOrder), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SignalPulseDuration)] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gLFA_EVFinePositioningSetupParametersType->SensorOrder.arrayLen < v2gLFA_EVFinePositioningSetupParametersType_SensorOrder_ARRAY_SIZE) {
- /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(errn == 0) {
- if(eventCode == 0) {
- errn = decodeNBitUnsignedInteger(stream, 8, &(uint32));
- v2gLFA_EVFinePositioningSetupParametersType->SensorOrder.array[v2gLFA_EVFinePositioningSetupParametersType->SensorOrder.arrayLen] = (uint8_t)(uint32 + 0);
- v2gLFA_EVFinePositioningSetupParametersType->SensorOrder.arrayLen++;
- } else {
- /* Second level event (e.g., xsi:type, xsi:nil, ...) */
- errn = EXI_UNSUPPORTED_EVENT_CODE_CHARACTERISTICS;
- }
- }
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- if(errn == 0) {
- /* valid EE for simple element START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorOrder) ? */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(eventCode == 0) {
- grammarID = 1471;
- } else {
- errn = EXI_DEVIANT_SUPPORT_NOT_DEPLOYED; /* or also typecast and nillable */
- }
- }
- break;
- case 1:
- /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(errn == 0) {
- if(eventCode == 0) {
- errn = decodeNBitUnsignedInteger(stream, 8, &(uint32));
- v2gLFA_EVFinePositioningSetupParametersType->SignalPulseDuration = (uint8_t)(uint32 + 0);
- } 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({urn:iso:15118:2:2016:MsgDataTypes}SignalPulseDuration) ? */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(eventCode == 0) {
- grammarID = 1242;
- } else {
- errn = EXI_DEVIANT_SUPPORT_NOT_DEPLOYED; /* or also typecast and nillable */
- }
- }
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 1471:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorOrder), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SignalPulseDuration)] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gLFA_EVFinePositioningSetupParametersType->SensorOrder.arrayLen < v2gLFA_EVFinePositioningSetupParametersType_SensorOrder_ARRAY_SIZE) {
- /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(errn == 0) {
- if(eventCode == 0) {
- errn = decodeNBitUnsignedInteger(stream, 8, &(uint32));
- v2gLFA_EVFinePositioningSetupParametersType->SensorOrder.array[v2gLFA_EVFinePositioningSetupParametersType->SensorOrder.arrayLen] = (uint8_t)(uint32 + 0);
- v2gLFA_EVFinePositioningSetupParametersType->SensorOrder.arrayLen++;
- } else {
- /* Second level event (e.g., xsi:type, xsi:nil, ...) */
- errn = EXI_UNSUPPORTED_EVENT_CODE_CHARACTERISTICS;
- }
- }
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- if(errn == 0) {
- /* valid EE for simple element START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorOrder) ? */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(eventCode == 0) {
- grammarID = 1472;
- } else {
- errn = EXI_DEVIANT_SUPPORT_NOT_DEPLOYED; /* or also typecast and nillable */
- }
- }
- break;
- case 1:
- /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(errn == 0) {
- if(eventCode == 0) {
- errn = decodeNBitUnsignedInteger(stream, 8, &(uint32));
- v2gLFA_EVFinePositioningSetupParametersType->SignalPulseDuration = (uint8_t)(uint32 + 0);
- } 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({urn:iso:15118:2:2016:MsgDataTypes}SignalPulseDuration) ? */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(eventCode == 0) {
- grammarID = 1242;
- } else {
- errn = EXI_DEVIANT_SUPPORT_NOT_DEPLOYED; /* or also typecast and nillable */
- }
- }
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 1472:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorOrder), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SignalPulseDuration)] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gLFA_EVFinePositioningSetupParametersType->SensorOrder.arrayLen < v2gLFA_EVFinePositioningSetupParametersType_SensorOrder_ARRAY_SIZE) {
- /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(errn == 0) {
- if(eventCode == 0) {
- errn = decodeNBitUnsignedInteger(stream, 8, &(uint32));
- v2gLFA_EVFinePositioningSetupParametersType->SensorOrder.array[v2gLFA_EVFinePositioningSetupParametersType->SensorOrder.arrayLen] = (uint8_t)(uint32 + 0);
- v2gLFA_EVFinePositioningSetupParametersType->SensorOrder.arrayLen++;
- } else {
- /* Second level event (e.g., xsi:type, xsi:nil, ...) */
- errn = EXI_UNSUPPORTED_EVENT_CODE_CHARACTERISTICS;
- }
- }
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- if(errn == 0) {
- /* valid EE for simple element START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorOrder) ? */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(eventCode == 0) {
- grammarID = 1473;
- } else {
- errn = EXI_DEVIANT_SUPPORT_NOT_DEPLOYED; /* or also typecast and nillable */
- }
- }
- break;
- case 1:
- /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(errn == 0) {
- if(eventCode == 0) {
- errn = decodeNBitUnsignedInteger(stream, 8, &(uint32));
- v2gLFA_EVFinePositioningSetupParametersType->SignalPulseDuration = (uint8_t)(uint32 + 0);
- } 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({urn:iso:15118:2:2016:MsgDataTypes}SignalPulseDuration) ? */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(eventCode == 0) {
- grammarID = 1242;
- } else {
- errn = EXI_DEVIANT_SUPPORT_NOT_DEPLOYED; /* or also typecast and nillable */
- }
- }
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 1473:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorOrder), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SignalPulseDuration)] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gLFA_EVFinePositioningSetupParametersType->SensorOrder.arrayLen < v2gLFA_EVFinePositioningSetupParametersType_SensorOrder_ARRAY_SIZE) {
- /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(errn == 0) {
- if(eventCode == 0) {
- errn = decodeNBitUnsignedInteger(stream, 8, &(uint32));
- v2gLFA_EVFinePositioningSetupParametersType->SensorOrder.array[v2gLFA_EVFinePositioningSetupParametersType->SensorOrder.arrayLen] = (uint8_t)(uint32 + 0);
- v2gLFA_EVFinePositioningSetupParametersType->SensorOrder.arrayLen++;
- } else {
- /* Second level event (e.g., xsi:type, xsi:nil, ...) */
- errn = EXI_UNSUPPORTED_EVENT_CODE_CHARACTERISTICS;
- }
- }
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- if(errn == 0) {
- /* valid EE for simple element START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorOrder) ? */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(eventCode == 0) {
- grammarID = 1474;
- } else {
- errn = EXI_DEVIANT_SUPPORT_NOT_DEPLOYED; /* or also typecast and nillable */
- }
- }
- break;
- case 1:
- /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(errn == 0) {
- if(eventCode == 0) {
- errn = decodeNBitUnsignedInteger(stream, 8, &(uint32));
- v2gLFA_EVFinePositioningSetupParametersType->SignalPulseDuration = (uint8_t)(uint32 + 0);
- } 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({urn:iso:15118:2:2016:MsgDataTypes}SignalPulseDuration) ? */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(eventCode == 0) {
- grammarID = 1242;
- } else {
- errn = EXI_DEVIANT_SUPPORT_NOT_DEPLOYED; /* or also typecast and nillable */
- }
- }
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 1474:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorOrder), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SignalPulseDuration)] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gLFA_EVFinePositioningSetupParametersType->SensorOrder.arrayLen < v2gLFA_EVFinePositioningSetupParametersType_SensorOrder_ARRAY_SIZE) {
- /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(errn == 0) {
- if(eventCode == 0) {
- errn = decodeNBitUnsignedInteger(stream, 8, &(uint32));
- v2gLFA_EVFinePositioningSetupParametersType->SensorOrder.array[v2gLFA_EVFinePositioningSetupParametersType->SensorOrder.arrayLen] = (uint8_t)(uint32 + 0);
- v2gLFA_EVFinePositioningSetupParametersType->SensorOrder.arrayLen++;
- } else {
- /* Second level event (e.g., xsi:type, xsi:nil, ...) */
- errn = EXI_UNSUPPORTED_EVENT_CODE_CHARACTERISTICS;
- }
- }
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- if(errn == 0) {
- /* valid EE for simple element START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorOrder) ? */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(eventCode == 0) {
- grammarID = 1475;
- } else {
- errn = EXI_DEVIANT_SUPPORT_NOT_DEPLOYED; /* or also typecast and nillable */
- }
- }
- break;
- case 1:
- /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(errn == 0) {
- if(eventCode == 0) {
- errn = decodeNBitUnsignedInteger(stream, 8, &(uint32));
- v2gLFA_EVFinePositioningSetupParametersType->SignalPulseDuration = (uint8_t)(uint32 + 0);
- } 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({urn:iso:15118:2:2016:MsgDataTypes}SignalPulseDuration) ? */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(eventCode == 0) {
- grammarID = 1242;
- } else {
- errn = EXI_DEVIANT_SUPPORT_NOT_DEPLOYED; /* or also typecast and nillable */
- }
- }
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 1475:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorOrder), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SignalPulseDuration)] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gLFA_EVFinePositioningSetupParametersType->SensorOrder.arrayLen < v2gLFA_EVFinePositioningSetupParametersType_SensorOrder_ARRAY_SIZE) {
- /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(errn == 0) {
- if(eventCode == 0) {
- errn = decodeNBitUnsignedInteger(stream, 8, &(uint32));
- v2gLFA_EVFinePositioningSetupParametersType->SensorOrder.array[v2gLFA_EVFinePositioningSetupParametersType->SensorOrder.arrayLen] = (uint8_t)(uint32 + 0);
- v2gLFA_EVFinePositioningSetupParametersType->SensorOrder.arrayLen++;
- } else {
- /* Second level event (e.g., xsi:type, xsi:nil, ...) */
- errn = EXI_UNSUPPORTED_EVENT_CODE_CHARACTERISTICS;
- }
- }
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- if(errn == 0) {
- /* valid EE for simple element START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorOrder) ? */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(eventCode == 0) {
- grammarID = 1476;
- } else {
- errn = EXI_DEVIANT_SUPPORT_NOT_DEPLOYED; /* or also typecast and nillable */
- }
- }
- break;
- case 1:
- /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(errn == 0) {
- if(eventCode == 0) {
- errn = decodeNBitUnsignedInteger(stream, 8, &(uint32));
- v2gLFA_EVFinePositioningSetupParametersType->SignalPulseDuration = (uint8_t)(uint32 + 0);
- } 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({urn:iso:15118:2:2016:MsgDataTypes}SignalPulseDuration) ? */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(eventCode == 0) {
- grammarID = 1242;
- } else {
- errn = EXI_DEVIANT_SUPPORT_NOT_DEPLOYED; /* or also typecast and nillable */
- }
- }
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 1476:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorOrder), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SignalPulseDuration)] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gLFA_EVFinePositioningSetupParametersType->SensorOrder.arrayLen < v2gLFA_EVFinePositioningSetupParametersType_SensorOrder_ARRAY_SIZE) {
- /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(errn == 0) {
- if(eventCode == 0) {
- errn = decodeNBitUnsignedInteger(stream, 8, &(uint32));
- v2gLFA_EVFinePositioningSetupParametersType->SensorOrder.array[v2gLFA_EVFinePositioningSetupParametersType->SensorOrder.arrayLen] = (uint8_t)(uint32 + 0);
- v2gLFA_EVFinePositioningSetupParametersType->SensorOrder.arrayLen++;
- } else {
- /* Second level event (e.g., xsi:type, xsi:nil, ...) */
- errn = EXI_UNSUPPORTED_EVENT_CODE_CHARACTERISTICS;
- }
- }
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- if(errn == 0) {
- /* valid EE for simple element START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorOrder) ? */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(eventCode == 0) {
- grammarID = 1477;
- } else {
- errn = EXI_DEVIANT_SUPPORT_NOT_DEPLOYED; /* or also typecast and nillable */
- }
- }
- break;
- case 1:
- /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(errn == 0) {
- if(eventCode == 0) {
- errn = decodeNBitUnsignedInteger(stream, 8, &(uint32));
- v2gLFA_EVFinePositioningSetupParametersType->SignalPulseDuration = (uint8_t)(uint32 + 0);
- } 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({urn:iso:15118:2:2016:MsgDataTypes}SignalPulseDuration) ? */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(eventCode == 0) {
- grammarID = 1242;
- } else {
- errn = EXI_DEVIANT_SUPPORT_NOT_DEPLOYED; /* or also typecast and nillable */
- }
- }
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 1477:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorOrder), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SignalPulseDuration)] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gLFA_EVFinePositioningSetupParametersType->SensorOrder.arrayLen < v2gLFA_EVFinePositioningSetupParametersType_SensorOrder_ARRAY_SIZE) {
- /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(errn == 0) {
- if(eventCode == 0) {
- errn = decodeNBitUnsignedInteger(stream, 8, &(uint32));
- v2gLFA_EVFinePositioningSetupParametersType->SensorOrder.array[v2gLFA_EVFinePositioningSetupParametersType->SensorOrder.arrayLen] = (uint8_t)(uint32 + 0);
- v2gLFA_EVFinePositioningSetupParametersType->SensorOrder.arrayLen++;
- } else {
- /* Second level event (e.g., xsi:type, xsi:nil, ...) */
- errn = EXI_UNSUPPORTED_EVENT_CODE_CHARACTERISTICS;
- }
- }
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- if(errn == 0) {
- /* valid EE for simple element START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorOrder) ? */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(eventCode == 0) {
- grammarID = 1478;
- } else {
- errn = EXI_DEVIANT_SUPPORT_NOT_DEPLOYED; /* or also typecast and nillable */
- }
- }
- break;
- case 1:
- /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(errn == 0) {
- if(eventCode == 0) {
- errn = decodeNBitUnsignedInteger(stream, 8, &(uint32));
- v2gLFA_EVFinePositioningSetupParametersType->SignalPulseDuration = (uint8_t)(uint32 + 0);
- } 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({urn:iso:15118:2:2016:MsgDataTypes}SignalPulseDuration) ? */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(eventCode == 0) {
- grammarID = 1242;
- } else {
- errn = EXI_DEVIANT_SUPPORT_NOT_DEPLOYED; /* or also typecast and nillable */
- }
- }
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 1478:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorOrder), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SignalPulseDuration)] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gLFA_EVFinePositioningSetupParametersType->SensorOrder.arrayLen < v2gLFA_EVFinePositioningSetupParametersType_SensorOrder_ARRAY_SIZE) {
- /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(errn == 0) {
- if(eventCode == 0) {
- errn = decodeNBitUnsignedInteger(stream, 8, &(uint32));
- v2gLFA_EVFinePositioningSetupParametersType->SensorOrder.array[v2gLFA_EVFinePositioningSetupParametersType->SensorOrder.arrayLen] = (uint8_t)(uint32 + 0);
- v2gLFA_EVFinePositioningSetupParametersType->SensorOrder.arrayLen++;
- } else {
- /* Second level event (e.g., xsi:type, xsi:nil, ...) */
- errn = EXI_UNSUPPORTED_EVENT_CODE_CHARACTERISTICS;
- }
- }
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- if(errn == 0) {
- /* valid EE for simple element START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorOrder) ? */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(eventCode == 0) {
- grammarID = 1479;
- } else {
- errn = EXI_DEVIANT_SUPPORT_NOT_DEPLOYED; /* or also typecast and nillable */
- }
- }
- break;
- case 1:
- /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(errn == 0) {
- if(eventCode == 0) {
- errn = decodeNBitUnsignedInteger(stream, 8, &(uint32));
- v2gLFA_EVFinePositioningSetupParametersType->SignalPulseDuration = (uint8_t)(uint32 + 0);
- } 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({urn:iso:15118:2:2016:MsgDataTypes}SignalPulseDuration) ? */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(eventCode == 0) {
- grammarID = 1242;
- } else {
- errn = EXI_DEVIANT_SUPPORT_NOT_DEPLOYED; /* or also typecast and nillable */
- }
- }
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 1479:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorOrder), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SignalPulseDuration)] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gLFA_EVFinePositioningSetupParametersType->SensorOrder.arrayLen < v2gLFA_EVFinePositioningSetupParametersType_SensorOrder_ARRAY_SIZE) {
- /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(errn == 0) {
- if(eventCode == 0) {
- errn = decodeNBitUnsignedInteger(stream, 8, &(uint32));
- v2gLFA_EVFinePositioningSetupParametersType->SensorOrder.array[v2gLFA_EVFinePositioningSetupParametersType->SensorOrder.arrayLen] = (uint8_t)(uint32 + 0);
- v2gLFA_EVFinePositioningSetupParametersType->SensorOrder.arrayLen++;
- } else {
- /* Second level event (e.g., xsi:type, xsi:nil, ...) */
- errn = EXI_UNSUPPORTED_EVENT_CODE_CHARACTERISTICS;
- }
- }
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- if(errn == 0) {
- /* valid EE for simple element START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorOrder) ? */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(eventCode == 0) {
- grammarID = 1480;
- } else {
- errn = EXI_DEVIANT_SUPPORT_NOT_DEPLOYED; /* or also typecast and nillable */
- }
- }
- break;
- case 1:
- /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(errn == 0) {
- if(eventCode == 0) {
- errn = decodeNBitUnsignedInteger(stream, 8, &(uint32));
- v2gLFA_EVFinePositioningSetupParametersType->SignalPulseDuration = (uint8_t)(uint32 + 0);
- } 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({urn:iso:15118:2:2016:MsgDataTypes}SignalPulseDuration) ? */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(eventCode == 0) {
- grammarID = 1242;
- } else {
- errn = EXI_DEVIANT_SUPPORT_NOT_DEPLOYED; /* or also typecast and nillable */
- }
- }
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 1480:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorOrder), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SignalPulseDuration)] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gLFA_EVFinePositioningSetupParametersType->SensorOrder.arrayLen < v2gLFA_EVFinePositioningSetupParametersType_SensorOrder_ARRAY_SIZE) {
- /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(errn == 0) {
- if(eventCode == 0) {
- errn = decodeNBitUnsignedInteger(stream, 8, &(uint32));
- v2gLFA_EVFinePositioningSetupParametersType->SensorOrder.array[v2gLFA_EVFinePositioningSetupParametersType->SensorOrder.arrayLen] = (uint8_t)(uint32 + 0);
- v2gLFA_EVFinePositioningSetupParametersType->SensorOrder.arrayLen++;
- } else {
- /* Second level event (e.g., xsi:type, xsi:nil, ...) */
- errn = EXI_UNSUPPORTED_EVENT_CODE_CHARACTERISTICS;
- }
- }
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- if(errn == 0) {
- /* valid EE for simple element START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorOrder) ? */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(eventCode == 0) {
- grammarID = 1481;
- } else {
- errn = EXI_DEVIANT_SUPPORT_NOT_DEPLOYED; /* or also typecast and nillable */
- }
- }
- break;
- case 1:
- /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(errn == 0) {
- if(eventCode == 0) {
- errn = decodeNBitUnsignedInteger(stream, 8, &(uint32));
- v2gLFA_EVFinePositioningSetupParametersType->SignalPulseDuration = (uint8_t)(uint32 + 0);
- } 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({urn:iso:15118:2:2016:MsgDataTypes}SignalPulseDuration) ? */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(eventCode == 0) {
- grammarID = 1242;
- } else {
- errn = EXI_DEVIANT_SUPPORT_NOT_DEPLOYED; /* or also typecast and nillable */
- }
- }
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 1481:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorOrder), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SignalPulseDuration)] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gLFA_EVFinePositioningSetupParametersType->SensorOrder.arrayLen < v2gLFA_EVFinePositioningSetupParametersType_SensorOrder_ARRAY_SIZE) {
- /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(errn == 0) {
- if(eventCode == 0) {
- errn = decodeNBitUnsignedInteger(stream, 8, &(uint32));
- v2gLFA_EVFinePositioningSetupParametersType->SensorOrder.array[v2gLFA_EVFinePositioningSetupParametersType->SensorOrder.arrayLen] = (uint8_t)(uint32 + 0);
- v2gLFA_EVFinePositioningSetupParametersType->SensorOrder.arrayLen++;
- } else {
- /* Second level event (e.g., xsi:type, xsi:nil, ...) */
- errn = EXI_UNSUPPORTED_EVENT_CODE_CHARACTERISTICS;
- }
- }
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- if(errn == 0) {
- /* valid EE for simple element START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorOrder) ? */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(eventCode == 0) {
- grammarID = 1482;
- } else {
- errn = EXI_DEVIANT_SUPPORT_NOT_DEPLOYED; /* or also typecast and nillable */
- }
- }
- break;
- case 1:
- /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(errn == 0) {
- if(eventCode == 0) {
- errn = decodeNBitUnsignedInteger(stream, 8, &(uint32));
- v2gLFA_EVFinePositioningSetupParametersType->SignalPulseDuration = (uint8_t)(uint32 + 0);
- } 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({urn:iso:15118:2:2016:MsgDataTypes}SignalPulseDuration) ? */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(eventCode == 0) {
- grammarID = 1242;
- } else {
- errn = EXI_DEVIANT_SUPPORT_NOT_DEPLOYED; /* or also typecast and nillable */
- }
- }
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 1482:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorOrder), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SignalPulseDuration)] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gLFA_EVFinePositioningSetupParametersType->SensorOrder.arrayLen < v2gLFA_EVFinePositioningSetupParametersType_SensorOrder_ARRAY_SIZE) {
- /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(errn == 0) {
- if(eventCode == 0) {
- errn = decodeNBitUnsignedInteger(stream, 8, &(uint32));
- v2gLFA_EVFinePositioningSetupParametersType->SensorOrder.array[v2gLFA_EVFinePositioningSetupParametersType->SensorOrder.arrayLen] = (uint8_t)(uint32 + 0);
- v2gLFA_EVFinePositioningSetupParametersType->SensorOrder.arrayLen++;
- } else {
- /* Second level event (e.g., xsi:type, xsi:nil, ...) */
- errn = EXI_UNSUPPORTED_EVENT_CODE_CHARACTERISTICS;
- }
- }
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- if(errn == 0) {
- /* valid EE for simple element START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorOrder) ? */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(eventCode == 0) {
- grammarID = 1483;
- } else {
- errn = EXI_DEVIANT_SUPPORT_NOT_DEPLOYED; /* or also typecast and nillable */
- }
- }
- break;
- case 1:
- /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(errn == 0) {
- if(eventCode == 0) {
- errn = decodeNBitUnsignedInteger(stream, 8, &(uint32));
- v2gLFA_EVFinePositioningSetupParametersType->SignalPulseDuration = (uint8_t)(uint32 + 0);
- } 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({urn:iso:15118:2:2016:MsgDataTypes}SignalPulseDuration) ? */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(eventCode == 0) {
- grammarID = 1242;
- } else {
- errn = EXI_DEVIANT_SUPPORT_NOT_DEPLOYED; /* or also typecast and nillable */
- }
- }
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 1483:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorOrder), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SignalPulseDuration)] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gLFA_EVFinePositioningSetupParametersType->SensorOrder.arrayLen < v2gLFA_EVFinePositioningSetupParametersType_SensorOrder_ARRAY_SIZE) {
- /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(errn == 0) {
- if(eventCode == 0) {
- errn = decodeNBitUnsignedInteger(stream, 8, &(uint32));
- v2gLFA_EVFinePositioningSetupParametersType->SensorOrder.array[v2gLFA_EVFinePositioningSetupParametersType->SensorOrder.arrayLen] = (uint8_t)(uint32 + 0);
- v2gLFA_EVFinePositioningSetupParametersType->SensorOrder.arrayLen++;
- } else {
- /* Second level event (e.g., xsi:type, xsi:nil, ...) */
- errn = EXI_UNSUPPORTED_EVENT_CODE_CHARACTERISTICS;
- }
- }
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- if(errn == 0) {
- /* valid EE for simple element START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorOrder) ? */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(eventCode == 0) {
- grammarID = 1484;
- } else {
- errn = EXI_DEVIANT_SUPPORT_NOT_DEPLOYED; /* or also typecast and nillable */
- }
- }
- break;
- case 1:
- /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(errn == 0) {
- if(eventCode == 0) {
- errn = decodeNBitUnsignedInteger(stream, 8, &(uint32));
- v2gLFA_EVFinePositioningSetupParametersType->SignalPulseDuration = (uint8_t)(uint32 + 0);
- } 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({urn:iso:15118:2:2016:MsgDataTypes}SignalPulseDuration) ? */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(eventCode == 0) {
- grammarID = 1242;
- } else {
- errn = EXI_DEVIANT_SUPPORT_NOT_DEPLOYED; /* or also typecast and nillable */
- }
- }
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 1484:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorOrder), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SignalPulseDuration)] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gLFA_EVFinePositioningSetupParametersType->SensorOrder.arrayLen < v2gLFA_EVFinePositioningSetupParametersType_SensorOrder_ARRAY_SIZE) {
- /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(errn == 0) {
- if(eventCode == 0) {
- errn = decodeNBitUnsignedInteger(stream, 8, &(uint32));
- v2gLFA_EVFinePositioningSetupParametersType->SensorOrder.array[v2gLFA_EVFinePositioningSetupParametersType->SensorOrder.arrayLen] = (uint8_t)(uint32 + 0);
- v2gLFA_EVFinePositioningSetupParametersType->SensorOrder.arrayLen++;
- } else {
- /* Second level event (e.g., xsi:type, xsi:nil, ...) */
- errn = EXI_UNSUPPORTED_EVENT_CODE_CHARACTERISTICS;
- }
- }
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- if(errn == 0) {
- /* valid EE for simple element START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorOrder) ? */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(eventCode == 0) {
- grammarID = 1485;
- } else {
- errn = EXI_DEVIANT_SUPPORT_NOT_DEPLOYED; /* or also typecast and nillable */
- }
- }
- break;
- case 1:
- /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(errn == 0) {
- if(eventCode == 0) {
- errn = decodeNBitUnsignedInteger(stream, 8, &(uint32));
- v2gLFA_EVFinePositioningSetupParametersType->SignalPulseDuration = (uint8_t)(uint32 + 0);
- } 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({urn:iso:15118:2:2016:MsgDataTypes}SignalPulseDuration) ? */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(eventCode == 0) {
- grammarID = 1242;
- } else {
- errn = EXI_DEVIANT_SUPPORT_NOT_DEPLOYED; /* or also typecast and nillable */
- }
- }
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 1485:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorOrder), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SignalPulseDuration)] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gLFA_EVFinePositioningSetupParametersType->SensorOrder.arrayLen < v2gLFA_EVFinePositioningSetupParametersType_SensorOrder_ARRAY_SIZE) {
- /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(errn == 0) {
- if(eventCode == 0) {
- errn = decodeNBitUnsignedInteger(stream, 8, &(uint32));
- v2gLFA_EVFinePositioningSetupParametersType->SensorOrder.array[v2gLFA_EVFinePositioningSetupParametersType->SensorOrder.arrayLen] = (uint8_t)(uint32 + 0);
- v2gLFA_EVFinePositioningSetupParametersType->SensorOrder.arrayLen++;
- } else {
- /* Second level event (e.g., xsi:type, xsi:nil, ...) */
- errn = EXI_UNSUPPORTED_EVENT_CODE_CHARACTERISTICS;
- }
- }
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- if(errn == 0) {
- /* valid EE for simple element START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorOrder) ? */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(eventCode == 0) {
- grammarID = 1486;
- } else {
- errn = EXI_DEVIANT_SUPPORT_NOT_DEPLOYED; /* or also typecast and nillable */
- }
- }
- break;
- case 1:
- /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(errn == 0) {
- if(eventCode == 0) {
- errn = decodeNBitUnsignedInteger(stream, 8, &(uint32));
- v2gLFA_EVFinePositioningSetupParametersType->SignalPulseDuration = (uint8_t)(uint32 + 0);
- } 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({urn:iso:15118:2:2016:MsgDataTypes}SignalPulseDuration) ? */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(eventCode == 0) {
- grammarID = 1242;
- } else {
- errn = EXI_DEVIANT_SUPPORT_NOT_DEPLOYED; /* or also typecast and nillable */
- }
- }
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 1486:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorOrder), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SignalPulseDuration)] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gLFA_EVFinePositioningSetupParametersType->SensorOrder.arrayLen < v2gLFA_EVFinePositioningSetupParametersType_SensorOrder_ARRAY_SIZE) {
- /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(errn == 0) {
- if(eventCode == 0) {
- errn = decodeNBitUnsignedInteger(stream, 8, &(uint32));
- v2gLFA_EVFinePositioningSetupParametersType->SensorOrder.array[v2gLFA_EVFinePositioningSetupParametersType->SensorOrder.arrayLen] = (uint8_t)(uint32 + 0);
- v2gLFA_EVFinePositioningSetupParametersType->SensorOrder.arrayLen++;
- } else {
- /* Second level event (e.g., xsi:type, xsi:nil, ...) */
- errn = EXI_UNSUPPORTED_EVENT_CODE_CHARACTERISTICS;
- }
- }
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- if(errn == 0) {
- /* valid EE for simple element START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorOrder) ? */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(eventCode == 0) {
- grammarID = 1487;
- } else {
- errn = EXI_DEVIANT_SUPPORT_NOT_DEPLOYED; /* or also typecast and nillable */
- }
- }
- break;
- case 1:
- /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(errn == 0) {
- if(eventCode == 0) {
- errn = decodeNBitUnsignedInteger(stream, 8, &(uint32));
- v2gLFA_EVFinePositioningSetupParametersType->SignalPulseDuration = (uint8_t)(uint32 + 0);
- } 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({urn:iso:15118:2:2016:MsgDataTypes}SignalPulseDuration) ? */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(eventCode == 0) {
- grammarID = 1242;
- } else {
- errn = EXI_DEVIANT_SUPPORT_NOT_DEPLOYED; /* or also typecast and nillable */
- }
- }
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 1487:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorOrder), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SignalPulseDuration)] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gLFA_EVFinePositioningSetupParametersType->SensorOrder.arrayLen < v2gLFA_EVFinePositioningSetupParametersType_SensorOrder_ARRAY_SIZE) {
- /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(errn == 0) {
- if(eventCode == 0) {
- errn = decodeNBitUnsignedInteger(stream, 8, &(uint32));
- v2gLFA_EVFinePositioningSetupParametersType->SensorOrder.array[v2gLFA_EVFinePositioningSetupParametersType->SensorOrder.arrayLen] = (uint8_t)(uint32 + 0);
- v2gLFA_EVFinePositioningSetupParametersType->SensorOrder.arrayLen++;
- } else {
- /* Second level event (e.g., xsi:type, xsi:nil, ...) */
- errn = EXI_UNSUPPORTED_EVENT_CODE_CHARACTERISTICS;
- }
- }
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- if(errn == 0) {
- /* valid EE for simple element START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorOrder) ? */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(eventCode == 0) {
- grammarID = 1488;
- } else {
- errn = EXI_DEVIANT_SUPPORT_NOT_DEPLOYED; /* or also typecast and nillable */
- }
- }
- break;
- case 1:
- /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(errn == 0) {
- if(eventCode == 0) {
- errn = decodeNBitUnsignedInteger(stream, 8, &(uint32));
- v2gLFA_EVFinePositioningSetupParametersType->SignalPulseDuration = (uint8_t)(uint32 + 0);
- } 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({urn:iso:15118:2:2016:MsgDataTypes}SignalPulseDuration) ? */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(eventCode == 0) {
- grammarID = 1242;
- } else {
- errn = EXI_DEVIANT_SUPPORT_NOT_DEPLOYED; /* or also typecast and nillable */
- }
- }
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 1488:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorOrder), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SignalPulseDuration)] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gLFA_EVFinePositioningSetupParametersType->SensorOrder.arrayLen < v2gLFA_EVFinePositioningSetupParametersType_SensorOrder_ARRAY_SIZE) {
- /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(errn == 0) {
- if(eventCode == 0) {
- errn = decodeNBitUnsignedInteger(stream, 8, &(uint32));
- v2gLFA_EVFinePositioningSetupParametersType->SensorOrder.array[v2gLFA_EVFinePositioningSetupParametersType->SensorOrder.arrayLen] = (uint8_t)(uint32 + 0);
- v2gLFA_EVFinePositioningSetupParametersType->SensorOrder.arrayLen++;
- } else {
- /* Second level event (e.g., xsi:type, xsi:nil, ...) */
- errn = EXI_UNSUPPORTED_EVENT_CODE_CHARACTERISTICS;
- }
- }
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- if(errn == 0) {
- /* valid EE for simple element START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorOrder) ? */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(eventCode == 0) {
- grammarID = 1489;
- } else {
- errn = EXI_DEVIANT_SUPPORT_NOT_DEPLOYED; /* or also typecast and nillable */
- }
- }
- break;
- case 1:
- /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(errn == 0) {
- if(eventCode == 0) {
- errn = decodeNBitUnsignedInteger(stream, 8, &(uint32));
- v2gLFA_EVFinePositioningSetupParametersType->SignalPulseDuration = (uint8_t)(uint32 + 0);
- } 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({urn:iso:15118:2:2016:MsgDataTypes}SignalPulseDuration) ? */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(eventCode == 0) {
- grammarID = 1242;
- } else {
- errn = EXI_DEVIANT_SUPPORT_NOT_DEPLOYED; /* or also typecast and nillable */
- }
- }
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 1489:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorOrder), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SignalPulseDuration)] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gLFA_EVFinePositioningSetupParametersType->SensorOrder.arrayLen < v2gLFA_EVFinePositioningSetupParametersType_SensorOrder_ARRAY_SIZE) {
- /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(errn == 0) {
- if(eventCode == 0) {
- errn = decodeNBitUnsignedInteger(stream, 8, &(uint32));
- v2gLFA_EVFinePositioningSetupParametersType->SensorOrder.array[v2gLFA_EVFinePositioningSetupParametersType->SensorOrder.arrayLen] = (uint8_t)(uint32 + 0);
- v2gLFA_EVFinePositioningSetupParametersType->SensorOrder.arrayLen++;
- } else {
- /* Second level event (e.g., xsi:type, xsi:nil, ...) */
- errn = EXI_UNSUPPORTED_EVENT_CODE_CHARACTERISTICS;
- }
- }
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- if(errn == 0) {
- /* valid EE for simple element START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorOrder) ? */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(eventCode == 0) {
- grammarID = 1490;
- } else {
- errn = EXI_DEVIANT_SUPPORT_NOT_DEPLOYED; /* or also typecast and nillable */
- }
- }
- break;
- case 1:
- /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(errn == 0) {
- if(eventCode == 0) {
- errn = decodeNBitUnsignedInteger(stream, 8, &(uint32));
- v2gLFA_EVFinePositioningSetupParametersType->SignalPulseDuration = (uint8_t)(uint32 + 0);
- } 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({urn:iso:15118:2:2016:MsgDataTypes}SignalPulseDuration) ? */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(eventCode == 0) {
- grammarID = 1242;
- } else {
- errn = EXI_DEVIANT_SUPPORT_NOT_DEPLOYED; /* or also typecast and nillable */
- }
- }
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 1490:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorOrder), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SignalPulseDuration)] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gLFA_EVFinePositioningSetupParametersType->SensorOrder.arrayLen < v2gLFA_EVFinePositioningSetupParametersType_SensorOrder_ARRAY_SIZE) {
- /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(errn == 0) {
- if(eventCode == 0) {
- errn = decodeNBitUnsignedInteger(stream, 8, &(uint32));
- v2gLFA_EVFinePositioningSetupParametersType->SensorOrder.array[v2gLFA_EVFinePositioningSetupParametersType->SensorOrder.arrayLen] = (uint8_t)(uint32 + 0);
- v2gLFA_EVFinePositioningSetupParametersType->SensorOrder.arrayLen++;
- } else {
- /* Second level event (e.g., xsi:type, xsi:nil, ...) */
- errn = EXI_UNSUPPORTED_EVENT_CODE_CHARACTERISTICS;
- }
- }
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- if(errn == 0) {
- /* valid EE for simple element START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorOrder) ? */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(eventCode == 0) {
- grammarID = 1491;
- } else {
- errn = EXI_DEVIANT_SUPPORT_NOT_DEPLOYED; /* or also typecast and nillable */
- }
- }
- break;
- case 1:
- /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(errn == 0) {
- if(eventCode == 0) {
- errn = decodeNBitUnsignedInteger(stream, 8, &(uint32));
- v2gLFA_EVFinePositioningSetupParametersType->SignalPulseDuration = (uint8_t)(uint32 + 0);
- } 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({urn:iso:15118:2:2016:MsgDataTypes}SignalPulseDuration) ? */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(eventCode == 0) {
- grammarID = 1242;
- } else {
- errn = EXI_DEVIANT_SUPPORT_NOT_DEPLOYED; /* or also typecast and nillable */
- }
- }
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 1491:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorOrder), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SignalPulseDuration)] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gLFA_EVFinePositioningSetupParametersType->SensorOrder.arrayLen < v2gLFA_EVFinePositioningSetupParametersType_SensorOrder_ARRAY_SIZE) {
- /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(errn == 0) {
- if(eventCode == 0) {
- errn = decodeNBitUnsignedInteger(stream, 8, &(uint32));
- v2gLFA_EVFinePositioningSetupParametersType->SensorOrder.array[v2gLFA_EVFinePositioningSetupParametersType->SensorOrder.arrayLen] = (uint8_t)(uint32 + 0);
- v2gLFA_EVFinePositioningSetupParametersType->SensorOrder.arrayLen++;
- } else {
- /* Second level event (e.g., xsi:type, xsi:nil, ...) */
- errn = EXI_UNSUPPORTED_EVENT_CODE_CHARACTERISTICS;
- }
- }
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- if(errn == 0) {
- /* valid EE for simple element START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorOrder) ? */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(eventCode == 0) {
- grammarID = 1492;
- } else {
- errn = EXI_DEVIANT_SUPPORT_NOT_DEPLOYED; /* or also typecast and nillable */
- }
- }
- break;
- case 1:
- /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(errn == 0) {
- if(eventCode == 0) {
- errn = decodeNBitUnsignedInteger(stream, 8, &(uint32));
- v2gLFA_EVFinePositioningSetupParametersType->SignalPulseDuration = (uint8_t)(uint32 + 0);
- } 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({urn:iso:15118:2:2016:MsgDataTypes}SignalPulseDuration) ? */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(eventCode == 0) {
- grammarID = 1242;
- } else {
- errn = EXI_DEVIANT_SUPPORT_NOT_DEPLOYED; /* or also typecast and nillable */
- }
- }
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 1492:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorOrder), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SignalPulseDuration)] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gLFA_EVFinePositioningSetupParametersType->SensorOrder.arrayLen < v2gLFA_EVFinePositioningSetupParametersType_SensorOrder_ARRAY_SIZE) {
- /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(errn == 0) {
- if(eventCode == 0) {
- errn = decodeNBitUnsignedInteger(stream, 8, &(uint32));
- v2gLFA_EVFinePositioningSetupParametersType->SensorOrder.array[v2gLFA_EVFinePositioningSetupParametersType->SensorOrder.arrayLen] = (uint8_t)(uint32 + 0);
- v2gLFA_EVFinePositioningSetupParametersType->SensorOrder.arrayLen++;
- } else {
- /* Second level event (e.g., xsi:type, xsi:nil, ...) */
- errn = EXI_UNSUPPORTED_EVENT_CODE_CHARACTERISTICS;
- }
- }
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- if(errn == 0) {
- /* valid EE for simple element START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorOrder) ? */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(eventCode == 0) {
- grammarID = 1493;
- } else {
- errn = EXI_DEVIANT_SUPPORT_NOT_DEPLOYED; /* or also typecast and nillable */
- }
- }
- break;
- case 1:
- /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(errn == 0) {
- if(eventCode == 0) {
- errn = decodeNBitUnsignedInteger(stream, 8, &(uint32));
- v2gLFA_EVFinePositioningSetupParametersType->SignalPulseDuration = (uint8_t)(uint32 + 0);
- } 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({urn:iso:15118:2:2016:MsgDataTypes}SignalPulseDuration) ? */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(eventCode == 0) {
- grammarID = 1242;
- } else {
- errn = EXI_DEVIANT_SUPPORT_NOT_DEPLOYED; /* or also typecast and nillable */
- }
- }
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 1493:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorOrder), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SignalPulseDuration)] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gLFA_EVFinePositioningSetupParametersType->SensorOrder.arrayLen < v2gLFA_EVFinePositioningSetupParametersType_SensorOrder_ARRAY_SIZE) {
- /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(errn == 0) {
- if(eventCode == 0) {
- errn = decodeNBitUnsignedInteger(stream, 8, &(uint32));
- v2gLFA_EVFinePositioningSetupParametersType->SensorOrder.array[v2gLFA_EVFinePositioningSetupParametersType->SensorOrder.arrayLen] = (uint8_t)(uint32 + 0);
- v2gLFA_EVFinePositioningSetupParametersType->SensorOrder.arrayLen++;
- } else {
- /* Second level event (e.g., xsi:type, xsi:nil, ...) */
- errn = EXI_UNSUPPORTED_EVENT_CODE_CHARACTERISTICS;
- }
- }
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- if(errn == 0) {
- /* valid EE for simple element START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorOrder) ? */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(eventCode == 0) {
- grammarID = 1494;
- } else {
- errn = EXI_DEVIANT_SUPPORT_NOT_DEPLOYED; /* or also typecast and nillable */
- }
- }
- break;
- case 1:
- /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(errn == 0) {
- if(eventCode == 0) {
- errn = decodeNBitUnsignedInteger(stream, 8, &(uint32));
- v2gLFA_EVFinePositioningSetupParametersType->SignalPulseDuration = (uint8_t)(uint32 + 0);
- } 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({urn:iso:15118:2:2016:MsgDataTypes}SignalPulseDuration) ? */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(eventCode == 0) {
- grammarID = 1242;
- } else {
- errn = EXI_DEVIANT_SUPPORT_NOT_DEPLOYED; /* or also typecast and nillable */
- }
- }
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 1494:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorOrder), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SignalPulseDuration)] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gLFA_EVFinePositioningSetupParametersType->SensorOrder.arrayLen < v2gLFA_EVFinePositioningSetupParametersType_SensorOrder_ARRAY_SIZE) {
- /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(errn == 0) {
- if(eventCode == 0) {
- errn = decodeNBitUnsignedInteger(stream, 8, &(uint32));
- v2gLFA_EVFinePositioningSetupParametersType->SensorOrder.array[v2gLFA_EVFinePositioningSetupParametersType->SensorOrder.arrayLen] = (uint8_t)(uint32 + 0);
- v2gLFA_EVFinePositioningSetupParametersType->SensorOrder.arrayLen++;
- } else {
- /* Second level event (e.g., xsi:type, xsi:nil, ...) */
- errn = EXI_UNSUPPORTED_EVENT_CODE_CHARACTERISTICS;
- }
- }
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- if(errn == 0) {
- /* valid EE for simple element START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorOrder) ? */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(eventCode == 0) {
- grammarID = 1495;
- } else {
- errn = EXI_DEVIANT_SUPPORT_NOT_DEPLOYED; /* or also typecast and nillable */
- }
- }
- break;
- case 1:
- /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(errn == 0) {
- if(eventCode == 0) {
- errn = decodeNBitUnsignedInteger(stream, 8, &(uint32));
- v2gLFA_EVFinePositioningSetupParametersType->SignalPulseDuration = (uint8_t)(uint32 + 0);
- } 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({urn:iso:15118:2:2016:MsgDataTypes}SignalPulseDuration) ? */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(eventCode == 0) {
- grammarID = 1242;
- } else {
- errn = EXI_DEVIANT_SUPPORT_NOT_DEPLOYED; /* or also typecast and nillable */
- }
- }
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 1495:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SignalPulseDuration)] */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(errn == 0) {
- if(eventCode == 0) {
- errn = decodeNBitUnsignedInteger(stream, 8, &(uint32));
- v2gLFA_EVFinePositioningSetupParametersType->SignalPulseDuration = (uint8_t)(uint32 + 0);
- } 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({urn:iso:15118:2:2016:MsgDataTypes}SignalPulseDuration) ? */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(eventCode == 0) {
- grammarID = 1242;
- } else {
- errn = EXI_DEVIANT_SUPPORT_NOT_DEPLOYED; /* or also typecast and nillable */
- }
- }
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 1242:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SignalSeparationTime)] */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(errn == 0) {
- if(eventCode == 0) {
- errn = decodeNBitUnsignedInteger(stream, 8, &(uint32));
- v2gLFA_EVFinePositioningSetupParametersType->SignalSeparationTime = (uint8_t)(uint32 + 0);
- } 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({urn:iso:15118:2:2016:MsgDataTypes}SignalSeparationTime) ? */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(eventCode == 0) {
- grammarID = 1496;
- } else {
- errn = EXI_DEVIANT_SUPPORT_NOT_DEPLOYED; /* or also typecast and nillable */
- }
- }
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 1496:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}PackageSeparationTime)] */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(errn == 0) {
- if(eventCode == 0) {
- errn = decodeNBitUnsignedInteger(stream, 8, &(uint32));
- v2gLFA_EVFinePositioningSetupParametersType->PackageSeparationTime = (uint8_t)(uint32 + 0);
- } 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({urn:iso:15118:2:2016:MsgDataTypes}PackageSeparationTime) ? */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(eventCode == 0) {
- grammarID = 1497;
- } else {
- errn = EXI_DEVIANT_SUPPORT_NOT_DEPLOYED; /* or also typecast and nillable */
- }
- }
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 1497:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}AlignmentOffset)] */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- /* First(xsi:type)StartTag[CHARACTERS[UNSIGNED_INTEGER]] */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(errn == 0) {
- if(eventCode == 0) {
- errn = decodeUnsignedInteger16(stream, &v2gLFA_EVFinePositioningSetupParametersType->AlignmentOffset);
- } 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({urn:iso:15118:2:2016:MsgDataTypes}AlignmentOffset) ? */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(eventCode == 0) {
- grammarID = 2;
- } else {
- errn = EXI_DEVIANT_SUPPORT_NOT_DEPLOYED; /* or also typecast and nillable */
- }
- }
- 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:2016:MsgDataTypes,SelectedServiceType', base type name='anyType', content type='ELEMENT', isAbstract='false', hasTypeId='false', final='0', block='0', particle='("urn:iso:15118:2:2016:MsgDataTypes":ServiceID,"urn:iso:15118:2:2016:MsgDataTypes":ParameterSetID)', derivedBy='RESTRICTION'. */
-static int decode_v2gSelectedServiceType(bitstream_t* stream, struct v2gSelectedServiceType* v2gSelectedServiceType) {
- int grammarID = 1498;
- int done = 0;
-
- init_v2gSelectedServiceType(v2gSelectedServiceType);
-
- while(!done) {
- switch(grammarID) {
- case 1498:
- /* FirstStartTag[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}ServiceID)] */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- /* FirstStartTag[CHARACTERS[UNSIGNED_INTEGER]] */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(errn == 0) {
- if(eventCode == 0) {
- errn = decodeUnsignedInteger16(stream, &v2gSelectedServiceType->ServiceID);
- } 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({urn:iso:15118:2:2016:MsgDataTypes}ServiceID) ? */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(eventCode == 0) {
- grammarID = 1499;
- } else {
- errn = EXI_DEVIANT_SUPPORT_NOT_DEPLOYED; /* or also typecast and nillable */
- }
- }
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 1499:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}ParameterSetID)] */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- /* First(xsi:type)StartTag[CHARACTERS[UNSIGNED_INTEGER]] */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(errn == 0) {
- if(eventCode == 0) {
- errn = decodeUnsignedInteger16(stream, &v2gSelectedServiceType->ParameterSetID);
- } 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({urn:iso:15118:2:2016:MsgDataTypes}ParameterSetID) ? */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(eventCode == 0) {
- grammarID = 2;
- } else {
- errn = EXI_DEVIANT_SUPPORT_NOT_DEPLOYED; /* or also typecast and nillable */
- }
- }
- 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='http://www.w3.org/2000/09/xmldsig#,SignaturePropertyType', base type name='anyType', content type='MIXED', isAbstract='false', hasTypeId='false', final='0', block='0', particle='((WC[##other:"http://www.w3.org/2000/09/xmldsig#"])){1-UNBOUNDED}', derivedBy='RESTRICTION'. */
-static int decode_v2gSignaturePropertyType(bitstream_t* stream, struct v2gSignaturePropertyType* v2gSignaturePropertyType) {
- int grammarID = 1500;
- int done = 0;
-
- init_v2gSignaturePropertyType(v2gSignaturePropertyType);
-
- while(!done) {
- switch(grammarID) {
- case 1500:
- /* FirstStartTag[ATTRIBUTE[STRING](Id), ATTRIBUTE[STRING](Target)] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- errn = decodeUnsignedInteger16(stream, &v2gSignaturePropertyType->Id.charactersLen);
- if (errn == 0) {
- if (v2gSignaturePropertyType->Id.charactersLen >= 2) {
- v2gSignaturePropertyType->Id.charactersLen = (uint16_t)(v2gSignaturePropertyType->Id.charactersLen - 2); /* string table miss */
- errn = decodeCharacters(stream, v2gSignaturePropertyType->Id.charactersLen, v2gSignaturePropertyType->Id.characters, v2gSignaturePropertyType_Id_CHARACTERS_SIZE);
- } else {
- /* string table hit */
- errn = EXI_ERROR_STRINGVALUES_NOT_SUPPORTED;
- }
- }
- v2gSignaturePropertyType->Id_isUsed = 1u;
- grammarID = 1501;
- break;
- case 1:
- errn = decodeUnsignedInteger16(stream, &v2gSignaturePropertyType->Target.charactersLen);
- if (errn == 0) {
- if (v2gSignaturePropertyType->Target.charactersLen >= 2) {
- v2gSignaturePropertyType->Target.charactersLen = (uint16_t)(v2gSignaturePropertyType->Target.charactersLen - 2); /* string table miss */
- errn = decodeCharacters(stream, v2gSignaturePropertyType->Target.charactersLen, v2gSignaturePropertyType->Target.characters, v2gSignaturePropertyType_Target_CHARACTERS_SIZE);
- } else {
- /* string table hit */
- errn = EXI_ERROR_STRINGVALUES_NOT_SUPPORTED;
- }
- }
- grammarID = 1502;
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 1501:
- /* StartTag[ATTRIBUTE[STRING](Target)] */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- errn = decodeUnsignedInteger16(stream, &v2gSignaturePropertyType->Target.charactersLen);
- if (errn == 0) {
- if (v2gSignaturePropertyType->Target.charactersLen >= 2) {
- v2gSignaturePropertyType->Target.charactersLen = (uint16_t)(v2gSignaturePropertyType->Target.charactersLen - 2); /* string table miss */
- errn = decodeCharacters(stream, v2gSignaturePropertyType->Target.charactersLen, v2gSignaturePropertyType->Target.characters, v2gSignaturePropertyType_Target_CHARACTERS_SIZE);
- } else {
- /* string table hit */
- errn = EXI_ERROR_STRINGVALUES_NOT_SUPPORTED;
- }
- }
- grammarID = 1502;
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 1502:
- /* StartTag[START_ELEMENT_GENERIC, CHARACTERS_GENERIC[STRING]] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- errn = EXI_UNSUPPORTED_EVENT_CODE_CHARACTERISTICS;
- /* TODO unsupported event : START_ELEMENT_GENERIC */
- grammarID = 904;
- break;
- case 1:
- errn = decodeUnsignedInteger16(stream, &v2gSignaturePropertyType->ANY.charactersLen);
- if (errn == 0) {
- if (v2gSignaturePropertyType->ANY.charactersLen >= 2) {
- v2gSignaturePropertyType->ANY.charactersLen = (uint16_t)(v2gSignaturePropertyType->ANY.charactersLen - 2); /* string table miss */
- errn = decodeCharacters(stream, v2gSignaturePropertyType->ANY.charactersLen, v2gSignaturePropertyType->ANY.characters, v2gSignaturePropertyType_ANY_CHARACTERS_SIZE);
- } else {
- /* string table hit */
- errn = EXI_ERROR_STRINGVALUES_NOT_SUPPORTED;
- }
- }
- v2gSignaturePropertyType->ANY_isUsed = 1u;
- grammarID = 1503;
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 904:
- /* Element[START_ELEMENT_GENERIC, END_ELEMENT, CHARACTERS_GENERIC[STRING]] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- errn = EXI_UNSUPPORTED_EVENT_CODE_CHARACTERISTICS;
- /* TODO unsupported event : START_ELEMENT_GENERIC */
- grammarID = 904;
- break;
- case 1:
- done = 1;
- grammarID = 3;
- break;
- case 2:
- errn = decodeUnsignedInteger16(stream, &v2gSignaturePropertyType->ANY.charactersLen);
- if (errn == 0) {
- if (v2gSignaturePropertyType->ANY.charactersLen >= 2) {
- v2gSignaturePropertyType->ANY.charactersLen = (uint16_t)(v2gSignaturePropertyType->ANY.charactersLen - 2); /* string table miss */
- errn = decodeCharacters(stream, v2gSignaturePropertyType->ANY.charactersLen, v2gSignaturePropertyType->ANY.characters, v2gSignaturePropertyType_ANY_CHARACTERS_SIZE);
- } else {
- /* string table hit */
- errn = EXI_ERROR_STRINGVALUES_NOT_SUPPORTED;
- }
- }
- v2gSignaturePropertyType->ANY_isUsed = 1u;
- grammarID = 904;
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 1503:
- /* Element[START_ELEMENT_GENERIC, CHARACTERS_GENERIC[STRING]] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- errn = EXI_UNSUPPORTED_EVENT_CODE_CHARACTERISTICS;
- /* TODO unsupported event : START_ELEMENT_GENERIC */
- grammarID = 904;
- break;
- case 1:
- errn = decodeUnsignedInteger16(stream, &v2gSignaturePropertyType->ANY.charactersLen);
- if (errn == 0) {
- if (v2gSignaturePropertyType->ANY.charactersLen >= 2) {
- v2gSignaturePropertyType->ANY.charactersLen = (uint16_t)(v2gSignaturePropertyType->ANY.charactersLen - 2); /* string table miss */
- errn = decodeCharacters(stream, v2gSignaturePropertyType->ANY.charactersLen, v2gSignaturePropertyType->ANY.characters, v2gSignaturePropertyType_ANY_CHARACTERS_SIZE);
- } else {
- /* string table hit */
- errn = EXI_ERROR_STRINGVALUES_NOT_SUPPORTED;
- }
- }
- v2gSignaturePropertyType->ANY_isUsed = 1u;
- grammarID = 1503;
- 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:2016:MsgBody,AC_BidirectionalControlResType', base type name='V2GResponseType', content type='ELEMENT', isAbstract='false', hasTypeId='false', final='0', block='0', particle='(("urn:iso:15118:2:2016:MsgBody":ResponseCode,"urn:iso:15118:2:2016:MsgBody":EVSEStatus{0-1}),("urn:iso:15118:2:2016:MsgBody":EVSEProcessing,"urn:iso:15118:2:2016:MsgBody":EVSETargetPower,"urn:iso:15118:2:2016:MsgBody":EVSETargetReactivePower,"urn:iso:15118:2:2016:MsgBody":EVSEID,"urn:iso:15118:2:2016:MsgBody":SAScheduleTupleID{0-1},"urn:iso:15118:2:2016:MsgBody":MeterInfo{0-1},"urn:iso:15118:2:2016:MsgBody":ReceiptRequired{0-1}))', derivedBy='EXTENSION'. */
-static int decode_v2gAC_BidirectionalControlResType(bitstream_t* stream, struct v2gAC_BidirectionalControlResType* v2gAC_BidirectionalControlResType) {
- int grammarID = 1504;
- int done = 0;
-
- init_v2gAC_BidirectionalControlResType(v2gAC_BidirectionalControlResType);
-
- while(!done) {
- switch(grammarID) {
- case 1504:
- /* FirstStartTag[START_ELEMENT({urn:iso:15118:2:2016:MsgBody}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, 5, &uint32);
- v2gAC_BidirectionalControlResType->ResponseCode = (v2gresponseCodeType) 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({urn:iso:15118:2:2016:MsgBody}ResponseCode) ? */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(eventCode == 0) {
- grammarID = 1505;
- } else {
- errn = EXI_DEVIANT_SUPPORT_NOT_DEPLOYED; /* or also typecast and nillable */
- }
- }
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 1505:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgBody}EVSEStatus), START_ELEMENT({urn:iso:15118:2:2016:MsgBody}EVSEProcessing)] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- errn = decode_v2gEVSEStatusType(stream, &v2gAC_BidirectionalControlResType->EVSEStatus);
- v2gAC_BidirectionalControlResType->EVSEStatus_isUsed = 1u;
- grammarID = 1506;
- break;
- case 1:
- /* FirstStartTag[CHARACTERS[ENUMERATION]] */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(errn == 0) {
- if(eventCode == 0) {
- errn = decodeNBitUnsignedInteger(stream, 2, &uint32);
- v2gAC_BidirectionalControlResType->EVSEProcessing = (v2gEVSEProcessingType) 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({urn:iso:15118:2:2016:MsgBody}EVSEProcessing) ? */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(eventCode == 0) {
- grammarID = 1507;
- } else {
- errn = EXI_DEVIANT_SUPPORT_NOT_DEPLOYED; /* or also typecast and nillable */
- }
- }
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 1506:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgBody}EVSEProcessing)] */
- 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);
- v2gAC_BidirectionalControlResType->EVSEProcessing = (v2gEVSEProcessingType) 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({urn:iso:15118:2:2016:MsgBody}EVSEProcessing) ? */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(eventCode == 0) {
- grammarID = 1507;
- } else {
- errn = EXI_DEVIANT_SUPPORT_NOT_DEPLOYED; /* or also typecast and nillable */
- }
- }
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 1507:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgBody}EVSETargetPower)] */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- errn = decode_v2gPhysicalValueType(stream, &v2gAC_BidirectionalControlResType->EVSETargetPower);
- grammarID = 1508;
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 1508:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgBody}EVSETargetReactivePower)] */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- errn = decode_v2gPhysicalValueType(stream, &v2gAC_BidirectionalControlResType->EVSETargetReactivePower);
- grammarID = 1509;
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 1509:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgBody}EVSEID)] */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- /* FirstStartTag[CHARACTERS[STRING]] */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(errn == 0) {
- if(eventCode == 0) {
- errn = decodeUnsignedInteger16(stream, &v2gAC_BidirectionalControlResType->EVSEID.charactersLen);
- if (errn == 0) {
- if (v2gAC_BidirectionalControlResType->EVSEID.charactersLen >= 2) {
- v2gAC_BidirectionalControlResType->EVSEID.charactersLen = (uint16_t)(v2gAC_BidirectionalControlResType->EVSEID.charactersLen - 2); /* string table miss */
- errn = decodeCharacters(stream, v2gAC_BidirectionalControlResType->EVSEID.charactersLen, v2gAC_BidirectionalControlResType->EVSEID.characters, v2gAC_BidirectionalControlResType_EVSEID_CHARACTERS_SIZE);
- } else {
- /* string table hit */
- errn = EXI_ERROR_STRINGVALUES_NOT_SUPPORTED;
- }
- }
- } 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({urn:iso:15118:2:2016:MsgBody}EVSEID) ? */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(eventCode == 0) {
- grammarID = 1510;
- } else {
- errn = EXI_DEVIANT_SUPPORT_NOT_DEPLOYED; /* or also typecast and nillable */
- }
- }
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 1510:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgBody}SAScheduleTupleID), START_ELEMENT({urn:iso:15118:2:2016:MsgBody}MeterInfo), START_ELEMENT({urn:iso:15118:2:2016:MsgBody}ReceiptRequired), END_ELEMENT] */
- errn = decodeNBitUnsignedInteger(stream, 3, &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));
- v2gAC_BidirectionalControlResType->SAScheduleTupleID = (uint8_t)(uint32 + 1);
- v2gAC_BidirectionalControlResType->SAScheduleTupleID_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({urn:iso:15118:2:2016:MsgBody}SAScheduleTupleID) ? */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(eventCode == 0) {
- grammarID = 1511;
- } else {
- errn = EXI_DEVIANT_SUPPORT_NOT_DEPLOYED; /* or also typecast and nillable */
- }
- }
- break;
- case 1:
- errn = decode_v2gMeterInfoType(stream, &v2gAC_BidirectionalControlResType->MeterInfo);
- v2gAC_BidirectionalControlResType->MeterInfo_isUsed = 1u;
- grammarID = 1512;
- break;
- case 2:
- /* FirstStartTag[CHARACTERS[BOOLEAN]] */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(errn == 0) {
- if(eventCode == 0) {
- errn = decodeBoolean(stream, &v2gAC_BidirectionalControlResType->ReceiptRequired);
- v2gAC_BidirectionalControlResType->ReceiptRequired_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({urn:iso:15118:2:2016:MsgBody}ReceiptRequired) ? */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(eventCode == 0) {
- grammarID = 2;
- } else {
- errn = EXI_DEVIANT_SUPPORT_NOT_DEPLOYED; /* or also typecast and nillable */
- }
- }
- break;
- case 3:
- done = 1;
- grammarID = 3;
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 1511:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgBody}MeterInfo), START_ELEMENT({urn:iso:15118:2:2016:MsgBody}ReceiptRequired), END_ELEMENT] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- errn = decode_v2gMeterInfoType(stream, &v2gAC_BidirectionalControlResType->MeterInfo);
- v2gAC_BidirectionalControlResType->MeterInfo_isUsed = 1u;
- grammarID = 1512;
- break;
- case 1:
- /* FirstStartTag[CHARACTERS[BOOLEAN]] */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(errn == 0) {
- if(eventCode == 0) {
- errn = decodeBoolean(stream, &v2gAC_BidirectionalControlResType->ReceiptRequired);
- v2gAC_BidirectionalControlResType->ReceiptRequired_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({urn:iso:15118:2:2016:MsgBody}ReceiptRequired) ? */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(eventCode == 0) {
- grammarID = 2;
- } else {
- errn = EXI_DEVIANT_SUPPORT_NOT_DEPLOYED; /* or also typecast and nillable */
- }
- }
- break;
- case 2:
- done = 1;
- grammarID = 3;
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 1512:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgBody}ReceiptRequired), END_ELEMENT] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- /* FirstStartTag[CHARACTERS[BOOLEAN]] */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(errn == 0) {
- if(eventCode == 0) {
- errn = decodeBoolean(stream, &v2gAC_BidirectionalControlResType->ReceiptRequired);
- v2gAC_BidirectionalControlResType->ReceiptRequired_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({urn:iso:15118:2:2016:MsgBody}ReceiptRequired) ? */
- 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='http://www.w3.org/2000/09/xmldsig#,PGPDataType', base type name='anyType', content type='ELEMENT', isAbstract='false', hasTypeId='false', final='0', block='0', particle='(("http://www.w3.org/2000/09/xmldsig#":PGPKeyID,"http://www.w3.org/2000/09/xmldsig#":PGPKeyPacket{0-1},(WC[##other:"http://www.w3.org/2000/09/xmldsig#"]){0-UNBOUNDED})|("http://www.w3.org/2000/09/xmldsig#":PGPKeyPacket,(WC[##other:"http://www.w3.org/2000/09/xmldsig#"]){0-UNBOUNDED}))', derivedBy='RESTRICTION'. */
-static int decode_v2gPGPDataType(bitstream_t* stream, struct v2gPGPDataType* v2gPGPDataType) {
- int grammarID = 1513;
- int done = 0;
-
- init_v2gPGPDataType(v2gPGPDataType);
-
- while(!done) {
- switch(grammarID) {
- case 1513:
- /* FirstStartTag[START_ELEMENT({http://www.w3.org/2000/09/xmldsig#}PGPKeyID), START_ELEMENT({http://www.w3.org/2000/09/xmldsig#}PGPKeyPacket)] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- /* First(xsi:type)StartTag[CHARACTERS[BINARY_BASE64]] */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(errn == 0) {
- if(eventCode == 0) {
- errn = decodeUnsignedInteger16(stream, &v2gPGPDataType->PGPKeyID.bytesLen);
- if (errn == 0) {
- errn = (v2gPGPDataType->PGPKeyID.bytesLen) <= v2gPGPDataType_PGPKeyID_BYTES_SIZE ? 0 : EXI_ERROR_OUT_OF_BYTE_BUFFER;
- }
- if (errn == 0) {
- errn = decodeBytes(stream, v2gPGPDataType->PGPKeyID.bytesLen, v2gPGPDataType->PGPKeyID.bytes);
- }
- v2gPGPDataType->PGPKeyID_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({http://www.w3.org/2000/09/xmldsig#}PGPKeyID) ? */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(eventCode == 0) {
- grammarID = 1514;
- } else {
- errn = EXI_DEVIANT_SUPPORT_NOT_DEPLOYED; /* or also typecast and nillable */
- }
- }
- break;
- case 1:
- /* First(xsi:type)StartTag[CHARACTERS[BINARY_BASE64]] */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(errn == 0) {
- if(eventCode == 0) {
- errn = decodeUnsignedInteger16(stream, &v2gPGPDataType->PGPKeyPacket.bytesLen);
- if (errn == 0) {
- errn = (v2gPGPDataType->PGPKeyPacket.bytesLen) <= v2gPGPDataType_PGPKeyPacket_BYTES_SIZE ? 0 : EXI_ERROR_OUT_OF_BYTE_BUFFER;
- }
- if (errn == 0) {
- errn = decodeBytes(stream, v2gPGPDataType->PGPKeyPacket.bytesLen, v2gPGPDataType->PGPKeyPacket.bytes);
- }
- v2gPGPDataType->PGPKeyPacket_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({http://www.w3.org/2000/09/xmldsig#}PGPKeyPacket) ? */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(eventCode == 0) {
- grammarID = 1515;
- } else {
- errn = EXI_DEVIANT_SUPPORT_NOT_DEPLOYED; /* or also typecast and nillable */
- }
- }
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 1514:
- /* Element[START_ELEMENT({http://www.w3.org/2000/09/xmldsig#}PGPKeyPacket), START_ELEMENT_GENERIC, END_ELEMENT] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- /* First(xsi:type)StartTag[CHARACTERS[BINARY_BASE64]] */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(errn == 0) {
- if(eventCode == 0) {
- errn = decodeUnsignedInteger16(stream, &v2gPGPDataType->PGPKeyPacket.bytesLen);
- if (errn == 0) {
- errn = (v2gPGPDataType->PGPKeyPacket.bytesLen) <= v2gPGPDataType_PGPKeyPacket_BYTES_SIZE ? 0 : EXI_ERROR_OUT_OF_BYTE_BUFFER;
- }
- if (errn == 0) {
- errn = decodeBytes(stream, v2gPGPDataType->PGPKeyPacket.bytesLen, v2gPGPDataType->PGPKeyPacket.bytes);
- }
- v2gPGPDataType->PGPKeyPacket_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({http://www.w3.org/2000/09/xmldsig#}PGPKeyPacket) ? */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(eventCode == 0) {
- grammarID = 1515;
- } else {
- errn = EXI_DEVIANT_SUPPORT_NOT_DEPLOYED; /* or also typecast and nillable */
- }
- }
- break;
- case 1:
- errn = EXI_UNSUPPORTED_EVENT_CODE_CHARACTERISTICS;
- /* TODO unsupported event : START_ELEMENT_GENERIC */
- grammarID = 1515;
- break;
- case 2:
- done = 1;
- grammarID = 3;
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 1515:
- /* Element[START_ELEMENT_GENERIC, END_ELEMENT] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- errn = EXI_UNSUPPORTED_EVENT_CODE_CHARACTERISTICS;
- /* TODO unsupported event : START_ELEMENT_GENERIC */
- grammarID = 1515;
- break;
- case 1:
- 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:2016:MsgBody,SystemStatusResType', base type name='V2GResponseType', content type='ELEMENT', isAbstract='false', hasTypeId='false', final='0', block='0', particle='(("urn:iso:15118:2:2016:MsgBody":ResponseCode,"urn:iso:15118:2:2016:MsgBody":EVSEStatus{0-1}),("urn:iso:15118:2:2016:MsgBody":OperationMode,"urn:iso:15118:2:2016:MsgBody":EVSEMechanicalChargingDeviceStatus))', derivedBy='EXTENSION'. */
-static int decode_v2gSystemStatusResType(bitstream_t* stream, struct v2gSystemStatusResType* v2gSystemStatusResType) {
- int grammarID = 1516;
- int done = 0;
-
- init_v2gSystemStatusResType(v2gSystemStatusResType);
-
- while(!done) {
- switch(grammarID) {
- case 1516:
- /* FirstStartTag[START_ELEMENT({urn:iso:15118:2:2016:MsgBody}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, 5, &uint32);
- v2gSystemStatusResType->ResponseCode = (v2gresponseCodeType) 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({urn:iso:15118:2:2016:MsgBody}ResponseCode) ? */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(eventCode == 0) {
- grammarID = 1517;
- } else {
- errn = EXI_DEVIANT_SUPPORT_NOT_DEPLOYED; /* or also typecast and nillable */
- }
- }
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 1517:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgBody}EVSEStatus), START_ELEMENT({urn:iso:15118:2:2016:MsgBody}OperationMode)] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- errn = decode_v2gEVSEStatusType(stream, &v2gSystemStatusResType->EVSEStatus);
- v2gSystemStatusResType->EVSEStatus_isUsed = 1u;
- grammarID = 1518;
- break;
- case 1:
- /* FirstStartTag[CHARACTERS[ENUMERATION]] */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(errn == 0) {
- if(eventCode == 0) {
- errn = decodeNBitUnsignedInteger(stream, 1, &uint32);
- v2gSystemStatusResType->OperationMode = (v2goperationModeType) 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({urn:iso:15118:2:2016:MsgBody}OperationMode) ? */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(eventCode == 0) {
- grammarID = 1519;
- } else {
- errn = EXI_DEVIANT_SUPPORT_NOT_DEPLOYED; /* or also typecast and nillable */
- }
- }
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 1518:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgBody}OperationMode)] */
- 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, 1, &uint32);
- v2gSystemStatusResType->OperationMode = (v2goperationModeType) 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({urn:iso:15118:2:2016:MsgBody}OperationMode) ? */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(eventCode == 0) {
- grammarID = 1519;
- } else {
- errn = EXI_DEVIANT_SUPPORT_NOT_DEPLOYED; /* or also typecast and nillable */
- }
- }
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 1519:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgBody}EVSEMechanicalChargingDeviceStatus)] */
- 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);
- v2gSystemStatusResType->EVSEMechanicalChargingDeviceStatus = (v2gmechanicalChargingDeviceStatusType) 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({urn:iso:15118:2:2016:MsgBody}EVSEMechanicalChargingDeviceStatus) ? */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(eventCode == 0) {
- grammarID = 2;
- } else {
- errn = EXI_DEVIANT_SUPPORT_NOT_DEPLOYED; /* or also typecast and nillable */
- }
- }
- 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:2016:MsgBody,CertificateUpdateResType', base type name='V2GResponseType', content type='ELEMENT', isAbstract='false', hasTypeId='false', final='0', block='0', particle='(("urn:iso:15118:2:2016:MsgBody":ResponseCode,"urn:iso:15118:2:2016:MsgBody":EVSEStatus{0-1}),("urn:iso:15118:2:2016:MsgBody":SAProvisioningCertificateChain,"urn:iso:15118:2:2016:MsgBody":ContractSignatureCertChain,"urn:iso:15118:2:2016:MsgBody":ContractSignatureEncryptedPrivateKey,"urn:iso:15118:2:2016:MsgBody":DHpublickey,"urn:iso:15118:2:2016:MsgBody":eMAID,"urn:iso:15118:2:2016:MsgBody":RetryCounter{0-1}))', derivedBy='EXTENSION'. */
-static int decode_v2gCertificateUpdateResType(bitstream_t* stream, struct v2gCertificateUpdateResType* v2gCertificateUpdateResType) {
- int grammarID = 1520;
- int done = 0;
-
- init_v2gCertificateUpdateResType(v2gCertificateUpdateResType);
-
- while(!done) {
- switch(grammarID) {
- case 1520:
- /* FirstStartTag[START_ELEMENT({urn:iso:15118:2:2016:MsgBody}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, 5, &uint32);
- v2gCertificateUpdateResType->ResponseCode = (v2gresponseCodeType) 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({urn:iso:15118:2:2016:MsgBody}ResponseCode) ? */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(eventCode == 0) {
- grammarID = 1521;
- } else {
- errn = EXI_DEVIANT_SUPPORT_NOT_DEPLOYED; /* or also typecast and nillable */
- }
- }
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 1521:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgBody}EVSEStatus), START_ELEMENT({urn:iso:15118:2:2016:MsgBody}SAProvisioningCertificateChain)] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- errn = decode_v2gEVSEStatusType(stream, &v2gCertificateUpdateResType->EVSEStatus);
- v2gCertificateUpdateResType->EVSEStatus_isUsed = 1u;
- grammarID = 1522;
- break;
- case 1:
- errn = decode_v2gCertificateChainType(stream, &v2gCertificateUpdateResType->SAProvisioningCertificateChain);
- grammarID = 1523;
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 1522:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgBody}SAProvisioningCertificateChain)] */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- errn = decode_v2gCertificateChainType(stream, &v2gCertificateUpdateResType->SAProvisioningCertificateChain);
- grammarID = 1523;
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 1523:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgBody}ContractSignatureCertChain)] */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- errn = decode_v2gCertificateChainType(stream, &v2gCertificateUpdateResType->ContractSignatureCertChain);
- grammarID = 1524;
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 1524:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgBody}ContractSignatureEncryptedPrivateKey)] */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- errn = decode_v2gContractSignatureEncryptedPrivateKeyType(stream, &v2gCertificateUpdateResType->ContractSignatureEncryptedPrivateKey);
- grammarID = 1525;
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 1525:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgBody}DHpublickey)] */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- errn = decode_v2gDiffieHellmanPublickeyType(stream, &v2gCertificateUpdateResType->DHpublickey);
- grammarID = 1526;
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 1526:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgBody}eMAID)] */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- errn = decode_v2gEMAIDType(stream, &v2gCertificateUpdateResType->eMAID);
- grammarID = 1527;
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 1527:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgBody}RetryCounter), END_ELEMENT] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- /* First(xsi:type)StartTag[CHARACTERS[INTEGER]] */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(errn == 0) {
- if(eventCode == 0) {
- errn = decodeInteger16(stream, &v2gCertificateUpdateResType->RetryCounter);
- v2gCertificateUpdateResType->RetryCounter_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({urn:iso:15118:2:2016:MsgBody}RetryCounter) ? */
- 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:2016:MsgDataTypes,ParameterSetType', base type name='anyType', content type='ELEMENT', isAbstract='false', hasTypeId='false', final='0', block='0', particle='("urn:iso:15118:2:2016:MsgDataTypes":ParameterSetID,"urn:iso:15118:2:2016:MsgDataTypes":Parameter{1-16})', derivedBy='RESTRICTION'. */
-static int decode_v2gParameterSetType(bitstream_t* stream, struct v2gParameterSetType* v2gParameterSetType) {
- int grammarID = 1528;
- int done = 0;
-
- init_v2gParameterSetType(v2gParameterSetType);
-
- while(!done) {
- switch(grammarID) {
- case 1528:
- /* FirstStartTag[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}ParameterSetID)] */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- /* First(xsi:type)StartTag[CHARACTERS[UNSIGNED_INTEGER]] */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(errn == 0) {
- if(eventCode == 0) {
- errn = decodeUnsignedInteger16(stream, &v2gParameterSetType->ParameterSetID);
- } 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({urn:iso:15118:2:2016:MsgDataTypes}ParameterSetID) ? */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(eventCode == 0) {
- grammarID = 1529;
- } else {
- errn = EXI_DEVIANT_SUPPORT_NOT_DEPLOYED; /* or also typecast and nillable */
- }
- }
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 1529:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}Parameter)] */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gParameterSetType->Parameter.arrayLen < v2gParameterSetType_Parameter_ARRAY_SIZE) {
- errn = decode_v2gParameterType(stream, &v2gParameterSetType->Parameter.array[v2gParameterSetType->Parameter.arrayLen++]);
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- grammarID = 1530;
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 1530:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}Parameter), END_ELEMENT] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gParameterSetType->Parameter.arrayLen < v2gParameterSetType_Parameter_ARRAY_SIZE) {
- errn = decode_v2gParameterType(stream, &v2gParameterSetType->Parameter.array[v2gParameterSetType->Parameter.arrayLen++]);
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- grammarID = 1531;
- break;
- case 1:
- done = 1;
- grammarID = 3;
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 1531:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}Parameter), END_ELEMENT] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gParameterSetType->Parameter.arrayLen < v2gParameterSetType_Parameter_ARRAY_SIZE) {
- errn = decode_v2gParameterType(stream, &v2gParameterSetType->Parameter.array[v2gParameterSetType->Parameter.arrayLen++]);
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- grammarID = 1532;
- break;
- case 1:
- done = 1;
- grammarID = 3;
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 1532:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}Parameter), END_ELEMENT] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gParameterSetType->Parameter.arrayLen < v2gParameterSetType_Parameter_ARRAY_SIZE) {
- errn = decode_v2gParameterType(stream, &v2gParameterSetType->Parameter.array[v2gParameterSetType->Parameter.arrayLen++]);
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- grammarID = 1533;
- break;
- case 1:
- done = 1;
- grammarID = 3;
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 1533:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}Parameter), END_ELEMENT] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gParameterSetType->Parameter.arrayLen < v2gParameterSetType_Parameter_ARRAY_SIZE) {
- errn = decode_v2gParameterType(stream, &v2gParameterSetType->Parameter.array[v2gParameterSetType->Parameter.arrayLen++]);
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- grammarID = 1534;
- break;
- case 1:
- done = 1;
- grammarID = 3;
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 1534:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}Parameter), END_ELEMENT] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gParameterSetType->Parameter.arrayLen < v2gParameterSetType_Parameter_ARRAY_SIZE) {
- errn = decode_v2gParameterType(stream, &v2gParameterSetType->Parameter.array[v2gParameterSetType->Parameter.arrayLen++]);
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- grammarID = 1535;
- break;
- case 1:
- done = 1;
- grammarID = 3;
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 1535:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}Parameter), END_ELEMENT] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gParameterSetType->Parameter.arrayLen < v2gParameterSetType_Parameter_ARRAY_SIZE) {
- errn = decode_v2gParameterType(stream, &v2gParameterSetType->Parameter.array[v2gParameterSetType->Parameter.arrayLen++]);
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- grammarID = 1536;
- break;
- case 1:
- done = 1;
- grammarID = 3;
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 1536:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}Parameter), END_ELEMENT] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gParameterSetType->Parameter.arrayLen < v2gParameterSetType_Parameter_ARRAY_SIZE) {
- errn = decode_v2gParameterType(stream, &v2gParameterSetType->Parameter.array[v2gParameterSetType->Parameter.arrayLen++]);
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- grammarID = 1537;
- break;
- case 1:
- done = 1;
- grammarID = 3;
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 1537:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}Parameter), END_ELEMENT] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gParameterSetType->Parameter.arrayLen < v2gParameterSetType_Parameter_ARRAY_SIZE) {
- errn = decode_v2gParameterType(stream, &v2gParameterSetType->Parameter.array[v2gParameterSetType->Parameter.arrayLen++]);
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- grammarID = 1538;
- break;
- case 1:
- done = 1;
- grammarID = 3;
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 1538:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}Parameter), END_ELEMENT] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gParameterSetType->Parameter.arrayLen < v2gParameterSetType_Parameter_ARRAY_SIZE) {
- errn = decode_v2gParameterType(stream, &v2gParameterSetType->Parameter.array[v2gParameterSetType->Parameter.arrayLen++]);
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- grammarID = 1539;
- break;
- case 1:
- done = 1;
- grammarID = 3;
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 1539:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}Parameter), END_ELEMENT] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gParameterSetType->Parameter.arrayLen < v2gParameterSetType_Parameter_ARRAY_SIZE) {
- errn = decode_v2gParameterType(stream, &v2gParameterSetType->Parameter.array[v2gParameterSetType->Parameter.arrayLen++]);
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- grammarID = 1540;
- break;
- case 1:
- done = 1;
- grammarID = 3;
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 1540:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}Parameter), END_ELEMENT] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gParameterSetType->Parameter.arrayLen < v2gParameterSetType_Parameter_ARRAY_SIZE) {
- errn = decode_v2gParameterType(stream, &v2gParameterSetType->Parameter.array[v2gParameterSetType->Parameter.arrayLen++]);
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- grammarID = 1541;
- break;
- case 1:
- done = 1;
- grammarID = 3;
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 1541:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}Parameter), END_ELEMENT] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gParameterSetType->Parameter.arrayLen < v2gParameterSetType_Parameter_ARRAY_SIZE) {
- errn = decode_v2gParameterType(stream, &v2gParameterSetType->Parameter.array[v2gParameterSetType->Parameter.arrayLen++]);
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- grammarID = 1542;
- break;
- case 1:
- done = 1;
- grammarID = 3;
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 1542:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}Parameter), END_ELEMENT] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gParameterSetType->Parameter.arrayLen < v2gParameterSetType_Parameter_ARRAY_SIZE) {
- errn = decode_v2gParameterType(stream, &v2gParameterSetType->Parameter.array[v2gParameterSetType->Parameter.arrayLen++]);
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- grammarID = 1543;
- break;
- case 1:
- done = 1;
- grammarID = 3;
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 1543:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}Parameter), END_ELEMENT] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gParameterSetType->Parameter.arrayLen < v2gParameterSetType_Parameter_ARRAY_SIZE) {
- errn = decode_v2gParameterType(stream, &v2gParameterSetType->Parameter.array[v2gParameterSetType->Parameter.arrayLen++]);
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- grammarID = 1544;
- break;
- case 1:
- done = 1;
- grammarID = 3;
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 1544:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}Parameter), END_ELEMENT] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gParameterSetType->Parameter.arrayLen < v2gParameterSetType_Parameter_ARRAY_SIZE) {
- errn = decode_v2gParameterType(stream, &v2gParameterSetType->Parameter.array[v2gParameterSetType->Parameter.arrayLen++]);
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- grammarID = 2;
- 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:2016:MsgDataTypes,SAScheduleTupleType', base type name='anyType', content type='ELEMENT', isAbstract='false', hasTypeId='false', final='0', block='0', particle='("urn:iso:15118:2:2016:MsgDataTypes":SAScheduleTupleID,"urn:iso:15118:2:2016:MsgDataTypes":PMaxSchedule,"urn:iso:15118:2:2016:MsgDataTypes":PMaxDischargeSchedule{0-1},"urn:iso:15118:2:2016:MsgDataTypes":SalesTariff{0-1},"urn:iso:15118:2:2016:MsgDataTypes":BuyBackTariff{0-1})', derivedBy='RESTRICTION'. */
-static int decode_v2gSAScheduleTupleType(bitstream_t* stream, struct v2gSAScheduleTupleType* v2gSAScheduleTupleType) {
- int grammarID = 1545;
- int done = 0;
-
- init_v2gSAScheduleTupleType(v2gSAScheduleTupleType);
-
- while(!done) {
- switch(grammarID) {
- case 1545:
- /* FirstStartTag[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SAScheduleTupleID)] */
- errn = decodeNBitUnsignedInteger(stream, 1, &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));
- v2gSAScheduleTupleType->SAScheduleTupleID = (uint8_t)(uint32 + 1);
- } 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({urn:iso:15118:2:2016:MsgDataTypes}SAScheduleTupleID) ? */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(eventCode == 0) {
- grammarID = 1546;
- } else {
- errn = EXI_DEVIANT_SUPPORT_NOT_DEPLOYED; /* or also typecast and nillable */
- }
- }
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 1546:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}PMaxSchedule)] */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- errn = decode_v2gPMaxScheduleType(stream, &v2gSAScheduleTupleType->PMaxSchedule);
- grammarID = 1547;
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 1547:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}PMaxDischargeSchedule), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SalesTariff), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}BuyBackTariff), END_ELEMENT] */
- errn = decodeNBitUnsignedInteger(stream, 3, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- errn = decode_v2gPMaxScheduleType(stream, &v2gSAScheduleTupleType->PMaxDischargeSchedule);
- v2gSAScheduleTupleType->PMaxDischargeSchedule_isUsed = 1u;
- grammarID = 1548;
- break;
- case 1:
- errn = decode_v2gSalesTariffType(stream, &v2gSAScheduleTupleType->SalesTariff);
- v2gSAScheduleTupleType->SalesTariff_isUsed = 1u;
- grammarID = 1549;
- break;
- case 2:
- errn = decode_v2gSalesTariffType(stream, &v2gSAScheduleTupleType->BuyBackTariff);
- v2gSAScheduleTupleType->BuyBackTariff_isUsed = 1u;
- grammarID = 2;
- break;
- case 3:
- done = 1;
- grammarID = 3;
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 1548:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SalesTariff), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}BuyBackTariff), END_ELEMENT] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- errn = decode_v2gSalesTariffType(stream, &v2gSAScheduleTupleType->SalesTariff);
- v2gSAScheduleTupleType->SalesTariff_isUsed = 1u;
- grammarID = 1549;
- break;
- case 1:
- errn = decode_v2gSalesTariffType(stream, &v2gSAScheduleTupleType->BuyBackTariff);
- v2gSAScheduleTupleType->BuyBackTariff_isUsed = 1u;
- grammarID = 2;
- break;
- case 2:
- done = 1;
- grammarID = 3;
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 1549:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}BuyBackTariff), END_ELEMENT] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- errn = decode_v2gSalesTariffType(stream, &v2gSAScheduleTupleType->BuyBackTariff);
- v2gSAScheduleTupleType->BuyBackTariff_isUsed = 1u;
- grammarID = 2;
- 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='http://www.w3.org/2000/09/xmldsig#,DSAKeyValueType', base type name='anyType', content type='ELEMENT', isAbstract='false', hasTypeId='false', final='0', block='0', particle='(("http://www.w3.org/2000/09/xmldsig#":P,"http://www.w3.org/2000/09/xmldsig#":Q){0-1},"http://www.w3.org/2000/09/xmldsig#":G{0-1},"http://www.w3.org/2000/09/xmldsig#":Y,"http://www.w3.org/2000/09/xmldsig#":J{0-1},("http://www.w3.org/2000/09/xmldsig#":Seed,"http://www.w3.org/2000/09/xmldsig#":PgenCounter){0-1})', derivedBy='RESTRICTION'. */
-static int decode_v2gDSAKeyValueType(bitstream_t* stream, struct v2gDSAKeyValueType* v2gDSAKeyValueType) {
- int grammarID = 1550;
- int done = 0;
-
- init_v2gDSAKeyValueType(v2gDSAKeyValueType);
-
- while(!done) {
- switch(grammarID) {
- case 1550:
- /* FirstStartTag[START_ELEMENT({http://www.w3.org/2000/09/xmldsig#}P), START_ELEMENT({http://www.w3.org/2000/09/xmldsig#}G), START_ELEMENT({http://www.w3.org/2000/09/xmldsig#}Y)] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- /* FirstStartTag[CHARACTERS[BINARY_BASE64]] */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(errn == 0) {
- if(eventCode == 0) {
- errn = decodeUnsignedInteger16(stream, &v2gDSAKeyValueType->P.bytesLen);
- if (errn == 0) {
- errn = (v2gDSAKeyValueType->P.bytesLen) <= v2gDSAKeyValueType_P_BYTES_SIZE ? 0 : EXI_ERROR_OUT_OF_BYTE_BUFFER;
- }
- if (errn == 0) {
- errn = decodeBytes(stream, v2gDSAKeyValueType->P.bytesLen, v2gDSAKeyValueType->P.bytes);
- }
- v2gDSAKeyValueType->P_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({http://www.w3.org/2000/09/xmldsig#}P) ? */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(eventCode == 0) {
- grammarID = 1551;
- } else {
- errn = EXI_DEVIANT_SUPPORT_NOT_DEPLOYED; /* or also typecast and nillable */
- }
- }
- break;
- case 1:
- /* FirstStartTag[CHARACTERS[BINARY_BASE64]] */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(errn == 0) {
- if(eventCode == 0) {
- errn = decodeUnsignedInteger16(stream, &v2gDSAKeyValueType->G.bytesLen);
- if (errn == 0) {
- errn = (v2gDSAKeyValueType->G.bytesLen) <= v2gDSAKeyValueType_G_BYTES_SIZE ? 0 : EXI_ERROR_OUT_OF_BYTE_BUFFER;
- }
- if (errn == 0) {
- errn = decodeBytes(stream, v2gDSAKeyValueType->G.bytesLen, v2gDSAKeyValueType->G.bytes);
- }
- v2gDSAKeyValueType->G_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({http://www.w3.org/2000/09/xmldsig#}G) ? */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(eventCode == 0) {
- grammarID = 1552;
- } else {
- errn = EXI_DEVIANT_SUPPORT_NOT_DEPLOYED; /* or also typecast and nillable */
- }
- }
- break;
- case 2:
- /* FirstStartTag[CHARACTERS[BINARY_BASE64]] */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(errn == 0) {
- if(eventCode == 0) {
- errn = decodeUnsignedInteger16(stream, &v2gDSAKeyValueType->Y.bytesLen);
- if (errn == 0) {
- errn = (v2gDSAKeyValueType->Y.bytesLen) <= v2gDSAKeyValueType_Y_BYTES_SIZE ? 0 : EXI_ERROR_OUT_OF_BYTE_BUFFER;
- }
- if (errn == 0) {
- errn = decodeBytes(stream, v2gDSAKeyValueType->Y.bytesLen, v2gDSAKeyValueType->Y.bytes);
- }
- } 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({http://www.w3.org/2000/09/xmldsig#}Y) ? */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(eventCode == 0) {
- grammarID = 1553;
- } else {
- errn = EXI_DEVIANT_SUPPORT_NOT_DEPLOYED; /* or also typecast and nillable */
- }
- }
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 1551:
- /* Element[START_ELEMENT({http://www.w3.org/2000/09/xmldsig#}Q)] */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- /* FirstStartTag[CHARACTERS[BINARY_BASE64]] */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(errn == 0) {
- if(eventCode == 0) {
- errn = decodeUnsignedInteger16(stream, &v2gDSAKeyValueType->Q.bytesLen);
- if (errn == 0) {
- errn = (v2gDSAKeyValueType->Q.bytesLen) <= v2gDSAKeyValueType_Q_BYTES_SIZE ? 0 : EXI_ERROR_OUT_OF_BYTE_BUFFER;
- }
- if (errn == 0) {
- errn = decodeBytes(stream, v2gDSAKeyValueType->Q.bytesLen, v2gDSAKeyValueType->Q.bytes);
- }
- v2gDSAKeyValueType->Q_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({http://www.w3.org/2000/09/xmldsig#}Q) ? */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(eventCode == 0) {
- grammarID = 1554;
- } else {
- errn = EXI_DEVIANT_SUPPORT_NOT_DEPLOYED; /* or also typecast and nillable */
- }
- }
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 1554:
- /* Element[START_ELEMENT({http://www.w3.org/2000/09/xmldsig#}G), START_ELEMENT({http://www.w3.org/2000/09/xmldsig#}Y)] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- /* FirstStartTag[CHARACTERS[BINARY_BASE64]] */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(errn == 0) {
- if(eventCode == 0) {
- errn = decodeUnsignedInteger16(stream, &v2gDSAKeyValueType->G.bytesLen);
- if (errn == 0) {
- errn = (v2gDSAKeyValueType->G.bytesLen) <= v2gDSAKeyValueType_G_BYTES_SIZE ? 0 : EXI_ERROR_OUT_OF_BYTE_BUFFER;
- }
- if (errn == 0) {
- errn = decodeBytes(stream, v2gDSAKeyValueType->G.bytesLen, v2gDSAKeyValueType->G.bytes);
- }
- v2gDSAKeyValueType->G_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({http://www.w3.org/2000/09/xmldsig#}G) ? */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(eventCode == 0) {
- grammarID = 1552;
- } else {
- errn = EXI_DEVIANT_SUPPORT_NOT_DEPLOYED; /* or also typecast and nillable */
- }
- }
- break;
- case 1:
- /* FirstStartTag[CHARACTERS[BINARY_BASE64]] */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(errn == 0) {
- if(eventCode == 0) {
- errn = decodeUnsignedInteger16(stream, &v2gDSAKeyValueType->Y.bytesLen);
- if (errn == 0) {
- errn = (v2gDSAKeyValueType->Y.bytesLen) <= v2gDSAKeyValueType_Y_BYTES_SIZE ? 0 : EXI_ERROR_OUT_OF_BYTE_BUFFER;
- }
- if (errn == 0) {
- errn = decodeBytes(stream, v2gDSAKeyValueType->Y.bytesLen, v2gDSAKeyValueType->Y.bytes);
- }
- } 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({http://www.w3.org/2000/09/xmldsig#}Y) ? */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(eventCode == 0) {
- grammarID = 1553;
- } else {
- errn = EXI_DEVIANT_SUPPORT_NOT_DEPLOYED; /* or also typecast and nillable */
- }
- }
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 1552:
- /* Element[START_ELEMENT({http://www.w3.org/2000/09/xmldsig#}Y)] */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- /* FirstStartTag[CHARACTERS[BINARY_BASE64]] */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(errn == 0) {
- if(eventCode == 0) {
- errn = decodeUnsignedInteger16(stream, &v2gDSAKeyValueType->Y.bytesLen);
- if (errn == 0) {
- errn = (v2gDSAKeyValueType->Y.bytesLen) <= v2gDSAKeyValueType_Y_BYTES_SIZE ? 0 : EXI_ERROR_OUT_OF_BYTE_BUFFER;
- }
- if (errn == 0) {
- errn = decodeBytes(stream, v2gDSAKeyValueType->Y.bytesLen, v2gDSAKeyValueType->Y.bytes);
- }
- } 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({http://www.w3.org/2000/09/xmldsig#}Y) ? */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(eventCode == 0) {
- grammarID = 1553;
- } else {
- errn = EXI_DEVIANT_SUPPORT_NOT_DEPLOYED; /* or also typecast and nillable */
- }
- }
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 1553:
- /* Element[START_ELEMENT({http://www.w3.org/2000/09/xmldsig#}J), START_ELEMENT({http://www.w3.org/2000/09/xmldsig#}Seed), END_ELEMENT] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- /* FirstStartTag[CHARACTERS[BINARY_BASE64]] */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(errn == 0) {
- if(eventCode == 0) {
- errn = decodeUnsignedInteger16(stream, &v2gDSAKeyValueType->J.bytesLen);
- if (errn == 0) {
- errn = (v2gDSAKeyValueType->J.bytesLen) <= v2gDSAKeyValueType_J_BYTES_SIZE ? 0 : EXI_ERROR_OUT_OF_BYTE_BUFFER;
- }
- if (errn == 0) {
- errn = decodeBytes(stream, v2gDSAKeyValueType->J.bytesLen, v2gDSAKeyValueType->J.bytes);
- }
- v2gDSAKeyValueType->J_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({http://www.w3.org/2000/09/xmldsig#}J) ? */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(eventCode == 0) {
- grammarID = 1555;
- } else {
- errn = EXI_DEVIANT_SUPPORT_NOT_DEPLOYED; /* or also typecast and nillable */
- }
- }
- break;
- case 1:
- /* FirstStartTag[CHARACTERS[BINARY_BASE64]] */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(errn == 0) {
- if(eventCode == 0) {
- errn = decodeUnsignedInteger16(stream, &v2gDSAKeyValueType->Seed.bytesLen);
- if (errn == 0) {
- errn = (v2gDSAKeyValueType->Seed.bytesLen) <= v2gDSAKeyValueType_Seed_BYTES_SIZE ? 0 : EXI_ERROR_OUT_OF_BYTE_BUFFER;
- }
- if (errn == 0) {
- errn = decodeBytes(stream, v2gDSAKeyValueType->Seed.bytesLen, v2gDSAKeyValueType->Seed.bytes);
- }
- v2gDSAKeyValueType->Seed_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({http://www.w3.org/2000/09/xmldsig#}Seed) ? */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(eventCode == 0) {
- grammarID = 1556;
- } else {
- errn = EXI_DEVIANT_SUPPORT_NOT_DEPLOYED; /* or also typecast and nillable */
- }
- }
- break;
- case 2:
- done = 1;
- grammarID = 3;
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 1555:
- /* Element[START_ELEMENT({http://www.w3.org/2000/09/xmldsig#}Seed), END_ELEMENT] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- /* FirstStartTag[CHARACTERS[BINARY_BASE64]] */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(errn == 0) {
- if(eventCode == 0) {
- errn = decodeUnsignedInteger16(stream, &v2gDSAKeyValueType->Seed.bytesLen);
- if (errn == 0) {
- errn = (v2gDSAKeyValueType->Seed.bytesLen) <= v2gDSAKeyValueType_Seed_BYTES_SIZE ? 0 : EXI_ERROR_OUT_OF_BYTE_BUFFER;
- }
- if (errn == 0) {
- errn = decodeBytes(stream, v2gDSAKeyValueType->Seed.bytesLen, v2gDSAKeyValueType->Seed.bytes);
- }
- v2gDSAKeyValueType->Seed_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({http://www.w3.org/2000/09/xmldsig#}Seed) ? */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(eventCode == 0) {
- grammarID = 1556;
- } 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 1556:
- /* Element[START_ELEMENT({http://www.w3.org/2000/09/xmldsig#}PgenCounter)] */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- /* FirstStartTag[CHARACTERS[BINARY_BASE64]] */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(errn == 0) {
- if(eventCode == 0) {
- errn = decodeUnsignedInteger16(stream, &v2gDSAKeyValueType->PgenCounter.bytesLen);
- if (errn == 0) {
- errn = (v2gDSAKeyValueType->PgenCounter.bytesLen) <= v2gDSAKeyValueType_PgenCounter_BYTES_SIZE ? 0 : EXI_ERROR_OUT_OF_BYTE_BUFFER;
- }
- if (errn == 0) {
- errn = decodeBytes(stream, v2gDSAKeyValueType->PgenCounter.bytesLen, v2gDSAKeyValueType->PgenCounter.bytes);
- }
- v2gDSAKeyValueType->PgenCounter_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({http://www.w3.org/2000/09/xmldsig#}PgenCounter) ? */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(eventCode == 0) {
- grammarID = 2;
- } else {
- errn = EXI_DEVIANT_SUPPORT_NOT_DEPLOYED; /* or also typecast and nillable */
- }
- }
- 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:2016:MsgDataTypes,MagneticVectorType', base type name='anyType', content type='ELEMENT', isAbstract='false', hasTypeId='false', final='0', block='0', particle='("urn:iso:15118:2:2016:MsgDataTypes":GAID,"urn:iso:15118:2:2016:MsgDataTypes":Distance,"urn:iso:15118:2:2016:MsgDataTypes":AngleGAtoVA,"urn:iso:15118:2:2016:MsgDataTypes":RotationVAtoGA,"urn:iso:15118:2:2016:MsgDataTypes":FODStatus)', derivedBy='RESTRICTION'. */
-static int decode_v2gMagneticVectorType(bitstream_t* stream, struct v2gMagneticVectorType* v2gMagneticVectorType) {
- int grammarID = 1557;
- int done = 0;
-
- init_v2gMagneticVectorType(v2gMagneticVectorType);
-
- while(!done) {
- switch(grammarID) {
- case 1557:
- /* FirstStartTag[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}GAID)] */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- /* FirstStartTag[CHARACTERS[STRING]] */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(errn == 0) {
- if(eventCode == 0) {
- errn = decodeUnsignedInteger16(stream, &v2gMagneticVectorType->GAID.charactersLen);
- if (errn == 0) {
- if (v2gMagneticVectorType->GAID.charactersLen >= 2) {
- v2gMagneticVectorType->GAID.charactersLen = (uint16_t)(v2gMagneticVectorType->GAID.charactersLen - 2); /* string table miss */
- errn = decodeCharacters(stream, v2gMagneticVectorType->GAID.charactersLen, v2gMagneticVectorType->GAID.characters, v2gMagneticVectorType_GAID_CHARACTERS_SIZE);
- } else {
- /* string table hit */
- errn = EXI_ERROR_STRINGVALUES_NOT_SUPPORTED;
- }
- }
- } 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({urn:iso:15118:2:2016:MsgDataTypes}GAID) ? */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(eventCode == 0) {
- grammarID = 1558;
- } else {
- errn = EXI_DEVIANT_SUPPORT_NOT_DEPLOYED; /* or also typecast and nillable */
- }
- }
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 1558:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}Distance)] */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- errn = decode_v2gPhysicalValueType(stream, &v2gMagneticVectorType->Distance);
- grammarID = 1559;
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 1559:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}AngleGAtoVA)] */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- errn = decode_v2gPhysicalValueType(stream, &v2gMagneticVectorType->AngleGAtoVA);
- grammarID = 1560;
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 1560:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}RotationVAtoGA)] */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- errn = decode_v2gPhysicalValueType(stream, &v2gMagneticVectorType->RotationVAtoGA);
- grammarID = 1561;
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 1561:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}FODStatus)] */
- 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);
- v2gMagneticVectorType->FODStatus = (v2gFODStatusType) 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({urn:iso:15118:2:2016:MsgDataTypes}FODStatus) ? */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(eventCode == 0) {
- grammarID = 2;
- } else {
- errn = EXI_DEVIANT_SUPPORT_NOT_DEPLOYED; /* or also typecast and nillable */
- }
- }
- 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:2016:MsgDataTypes,ServiceIDListType', base type name='anyType', content type='ELEMENT', isAbstract='false', hasTypeId='false', final='0', block='0', particle='("urn:iso:15118:2:2016:MsgDataTypes":ServiceID{1-10})', derivedBy='RESTRICTION'. */
-static int decode_v2gServiceIDListType(bitstream_t* stream, struct v2gServiceIDListType* v2gServiceIDListType) {
- int grammarID = 1562;
- int done = 0;
-
- init_v2gServiceIDListType(v2gServiceIDListType);
-
- while(!done) {
- switch(grammarID) {
- case 1562:
- /* FirstStartTag[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}ServiceID)] */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gServiceIDListType->ServiceID.arrayLen < v2gServiceIDListType_ServiceID_ARRAY_SIZE) {
- /* FirstStartTag[CHARACTERS[UNSIGNED_INTEGER]] */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(errn == 0) {
- if(eventCode == 0) {
- errn = decodeUnsignedInteger16(stream, &v2gServiceIDListType->ServiceID.array[v2gServiceIDListType->ServiceID.arrayLen]);
- v2gServiceIDListType->ServiceID.arrayLen++;
- } else {
- /* Second level event (e.g., xsi:type, xsi:nil, ...) */
- errn = EXI_UNSUPPORTED_EVENT_CODE_CHARACTERISTICS;
- }
- }
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- if(errn == 0) {
- /* valid EE for simple element START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}ServiceID) ? */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(eventCode == 0) {
- grammarID = 1563;
- } else {
- errn = EXI_DEVIANT_SUPPORT_NOT_DEPLOYED; /* or also typecast and nillable */
- }
- }
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 1563:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}ServiceID), END_ELEMENT] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gServiceIDListType->ServiceID.arrayLen < v2gServiceIDListType_ServiceID_ARRAY_SIZE) {
- /* FirstStartTag[CHARACTERS[UNSIGNED_INTEGER]] */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(errn == 0) {
- if(eventCode == 0) {
- errn = decodeUnsignedInteger16(stream, &v2gServiceIDListType->ServiceID.array[v2gServiceIDListType->ServiceID.arrayLen]);
- v2gServiceIDListType->ServiceID.arrayLen++;
- } else {
- /* Second level event (e.g., xsi:type, xsi:nil, ...) */
- errn = EXI_UNSUPPORTED_EVENT_CODE_CHARACTERISTICS;
- }
- }
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- if(errn == 0) {
- /* valid EE for simple element START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}ServiceID) ? */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(eventCode == 0) {
- grammarID = 1564;
- } 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 1564:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}ServiceID), END_ELEMENT] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gServiceIDListType->ServiceID.arrayLen < v2gServiceIDListType_ServiceID_ARRAY_SIZE) {
- /* FirstStartTag[CHARACTERS[UNSIGNED_INTEGER]] */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(errn == 0) {
- if(eventCode == 0) {
- errn = decodeUnsignedInteger16(stream, &v2gServiceIDListType->ServiceID.array[v2gServiceIDListType->ServiceID.arrayLen]);
- v2gServiceIDListType->ServiceID.arrayLen++;
- } else {
- /* Second level event (e.g., xsi:type, xsi:nil, ...) */
- errn = EXI_UNSUPPORTED_EVENT_CODE_CHARACTERISTICS;
- }
- }
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- if(errn == 0) {
- /* valid EE for simple element START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}ServiceID) ? */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(eventCode == 0) {
- grammarID = 1565;
- } 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 1565:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}ServiceID), END_ELEMENT] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gServiceIDListType->ServiceID.arrayLen < v2gServiceIDListType_ServiceID_ARRAY_SIZE) {
- /* FirstStartTag[CHARACTERS[UNSIGNED_INTEGER]] */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(errn == 0) {
- if(eventCode == 0) {
- errn = decodeUnsignedInteger16(stream, &v2gServiceIDListType->ServiceID.array[v2gServiceIDListType->ServiceID.arrayLen]);
- v2gServiceIDListType->ServiceID.arrayLen++;
- } else {
- /* Second level event (e.g., xsi:type, xsi:nil, ...) */
- errn = EXI_UNSUPPORTED_EVENT_CODE_CHARACTERISTICS;
- }
- }
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- if(errn == 0) {
- /* valid EE for simple element START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}ServiceID) ? */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(eventCode == 0) {
- grammarID = 1566;
- } 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 1566:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}ServiceID), END_ELEMENT] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gServiceIDListType->ServiceID.arrayLen < v2gServiceIDListType_ServiceID_ARRAY_SIZE) {
- /* FirstStartTag[CHARACTERS[UNSIGNED_INTEGER]] */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(errn == 0) {
- if(eventCode == 0) {
- errn = decodeUnsignedInteger16(stream, &v2gServiceIDListType->ServiceID.array[v2gServiceIDListType->ServiceID.arrayLen]);
- v2gServiceIDListType->ServiceID.arrayLen++;
- } else {
- /* Second level event (e.g., xsi:type, xsi:nil, ...) */
- errn = EXI_UNSUPPORTED_EVENT_CODE_CHARACTERISTICS;
- }
- }
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- if(errn == 0) {
- /* valid EE for simple element START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}ServiceID) ? */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(eventCode == 0) {
- grammarID = 1567;
- } 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 1567:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}ServiceID), END_ELEMENT] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gServiceIDListType->ServiceID.arrayLen < v2gServiceIDListType_ServiceID_ARRAY_SIZE) {
- /* FirstStartTag[CHARACTERS[UNSIGNED_INTEGER]] */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(errn == 0) {
- if(eventCode == 0) {
- errn = decodeUnsignedInteger16(stream, &v2gServiceIDListType->ServiceID.array[v2gServiceIDListType->ServiceID.arrayLen]);
- v2gServiceIDListType->ServiceID.arrayLen++;
- } else {
- /* Second level event (e.g., xsi:type, xsi:nil, ...) */
- errn = EXI_UNSUPPORTED_EVENT_CODE_CHARACTERISTICS;
- }
- }
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- if(errn == 0) {
- /* valid EE for simple element START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}ServiceID) ? */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(eventCode == 0) {
- grammarID = 1568;
- } 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 1568:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}ServiceID), END_ELEMENT] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gServiceIDListType->ServiceID.arrayLen < v2gServiceIDListType_ServiceID_ARRAY_SIZE) {
- /* FirstStartTag[CHARACTERS[UNSIGNED_INTEGER]] */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(errn == 0) {
- if(eventCode == 0) {
- errn = decodeUnsignedInteger16(stream, &v2gServiceIDListType->ServiceID.array[v2gServiceIDListType->ServiceID.arrayLen]);
- v2gServiceIDListType->ServiceID.arrayLen++;
- } else {
- /* Second level event (e.g., xsi:type, xsi:nil, ...) */
- errn = EXI_UNSUPPORTED_EVENT_CODE_CHARACTERISTICS;
- }
- }
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- if(errn == 0) {
- /* valid EE for simple element START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}ServiceID) ? */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(eventCode == 0) {
- grammarID = 1569;
- } 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 1569:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}ServiceID), END_ELEMENT] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gServiceIDListType->ServiceID.arrayLen < v2gServiceIDListType_ServiceID_ARRAY_SIZE) {
- /* FirstStartTag[CHARACTERS[UNSIGNED_INTEGER]] */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(errn == 0) {
- if(eventCode == 0) {
- errn = decodeUnsignedInteger16(stream, &v2gServiceIDListType->ServiceID.array[v2gServiceIDListType->ServiceID.arrayLen]);
- v2gServiceIDListType->ServiceID.arrayLen++;
- } else {
- /* Second level event (e.g., xsi:type, xsi:nil, ...) */
- errn = EXI_UNSUPPORTED_EVENT_CODE_CHARACTERISTICS;
- }
- }
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- if(errn == 0) {
- /* valid EE for simple element START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}ServiceID) ? */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(eventCode == 0) {
- grammarID = 1570;
- } 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 1570:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}ServiceID), END_ELEMENT] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gServiceIDListType->ServiceID.arrayLen < v2gServiceIDListType_ServiceID_ARRAY_SIZE) {
- /* FirstStartTag[CHARACTERS[UNSIGNED_INTEGER]] */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(errn == 0) {
- if(eventCode == 0) {
- errn = decodeUnsignedInteger16(stream, &v2gServiceIDListType->ServiceID.array[v2gServiceIDListType->ServiceID.arrayLen]);
- v2gServiceIDListType->ServiceID.arrayLen++;
- } else {
- /* Second level event (e.g., xsi:type, xsi:nil, ...) */
- errn = EXI_UNSUPPORTED_EVENT_CODE_CHARACTERISTICS;
- }
- }
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- if(errn == 0) {
- /* valid EE for simple element START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}ServiceID) ? */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(eventCode == 0) {
- grammarID = 1571;
- } 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 1571:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}ServiceID), END_ELEMENT] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gServiceIDListType->ServiceID.arrayLen < v2gServiceIDListType_ServiceID_ARRAY_SIZE) {
- /* FirstStartTag[CHARACTERS[UNSIGNED_INTEGER]] */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(errn == 0) {
- if(eventCode == 0) {
- errn = decodeUnsignedInteger16(stream, &v2gServiceIDListType->ServiceID.array[v2gServiceIDListType->ServiceID.arrayLen]);
- v2gServiceIDListType->ServiceID.arrayLen++;
- } else {
- /* Second level event (e.g., xsi:type, xsi:nil, ...) */
- errn = EXI_UNSUPPORTED_EVENT_CODE_CHARACTERISTICS;
- }
- }
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- if(errn == 0) {
- /* valid EE for simple element START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}ServiceID) ? */
- 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;
+ grammarID = 4;
break;
default:
errn = EXI_ERROR_UNKOWN_EVENT_CODE;
@@ -56526,41 +582,41 @@ static int decode_v2gServiceIDListType(bitstream_t* stream, struct v2gServiceIDL
}
/* Complex type name='http://www.w3.org/2000/09/xmldsig#,X509DataType', base type name='anyType', content type='ELEMENT', isAbstract='false', hasTypeId='false', final='0', block='0', particle='(("http://www.w3.org/2000/09/xmldsig#":X509IssuerSerial|"http://www.w3.org/2000/09/xmldsig#":X509SKI|"http://www.w3.org/2000/09/xmldsig#":X509SubjectName|"http://www.w3.org/2000/09/xmldsig#":X509Certificate|"http://www.w3.org/2000/09/xmldsig#":X509CRL|(WC[##other:"http://www.w3.org/2000/09/xmldsig#"]))){1-UNBOUNDED}', derivedBy='RESTRICTION'. */
-static int decode_v2gX509DataType(bitstream_t* stream, struct v2gX509DataType* v2gX509DataType) {
- int grammarID = 1572;
+static int decode_iso2X509DataType(bitstream_t* stream, struct iso2X509DataType* iso2X509DataType) {
+ int grammarID = 10;
int done = 0;
- init_v2gX509DataType(v2gX509DataType);
+ init_iso2X509DataType(iso2X509DataType);
while(!done) {
switch(grammarID) {
- case 1572:
+ case 10:
/* FirstStartTag[START_ELEMENT({http://www.w3.org/2000/09/xmldsig#}X509IssuerSerial), START_ELEMENT({http://www.w3.org/2000/09/xmldsig#}X509SKI), START_ELEMENT({http://www.w3.org/2000/09/xmldsig#}X509SubjectName), START_ELEMENT({http://www.w3.org/2000/09/xmldsig#}X509Certificate), START_ELEMENT({http://www.w3.org/2000/09/xmldsig#}X509CRL), START_ELEMENT_GENERIC] */
errn = decodeNBitUnsignedInteger(stream, 3, &eventCode);
if (errn == 0) {
switch(eventCode) {
case 0:
- if (v2gX509DataType->X509IssuerSerial.arrayLen < v2gX509DataType_X509IssuerSerial_ARRAY_SIZE) {
- errn = decode_v2gX509IssuerSerialType(stream, &v2gX509DataType->X509IssuerSerial.array[v2gX509DataType->X509IssuerSerial.arrayLen++]);
+ if (iso2X509DataType->X509IssuerSerial.arrayLen < iso2X509DataType_X509IssuerSerial_ARRAY_SIZE) {
+ errn = decode_iso2X509IssuerSerialType(stream, &iso2X509DataType->X509IssuerSerial.array[iso2X509DataType->X509IssuerSerial.arrayLen++]);
} else {
errn = EXI_ERROR_OUT_OF_BOUNDS;
}
- grammarID = 1573;
+ grammarID = 11;
break;
case 1:
- if (v2gX509DataType->X509SKI.arrayLen < v2gX509DataType_X509SKI_ARRAY_SIZE) {
+ if (iso2X509DataType->X509SKI.arrayLen < iso2X509DataType_X509SKI_ARRAY_SIZE) {
/* First(xsi:type)StartTag[CHARACTERS[BINARY_BASE64]] */
errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
if(errn == 0) {
if(eventCode == 0) {
- errn = decodeUnsignedInteger16(stream, &v2gX509DataType->X509SKI.array[v2gX509DataType->X509SKI.arrayLen].bytesLen);
+ errn = decodeUnsignedInteger16(stream, &iso2X509DataType->X509SKI.array[iso2X509DataType->X509SKI.arrayLen].bytesLen);
if (errn == 0) {
- errn = (v2gX509DataType->X509SKI.array[v2gX509DataType->X509SKI.arrayLen].bytesLen) <= v2gX509DataType_X509SKI_BYTES_SIZE ? 0 : EXI_ERROR_OUT_OF_BYTE_BUFFER;
+ errn = (iso2X509DataType->X509SKI.array[iso2X509DataType->X509SKI.arrayLen].bytesLen) <= iso2X509DataType_X509SKI_BYTES_SIZE ? 0 : EXI_ERROR_OUT_OF_BYTE_BUFFER;
}
if (errn == 0) {
- errn = decodeBytes(stream, v2gX509DataType->X509SKI.array[v2gX509DataType->X509SKI.arrayLen].bytesLen, v2gX509DataType->X509SKI.array[v2gX509DataType->X509SKI.arrayLen].bytes);
+ errn = decodeBytes(stream, iso2X509DataType->X509SKI.array[iso2X509DataType->X509SKI.arrayLen].bytesLen, iso2X509DataType->X509SKI.array[iso2X509DataType->X509SKI.arrayLen].bytes);
}
- v2gX509DataType->X509SKI.arrayLen++;
+ iso2X509DataType->X509SKI.arrayLen++;
} else {
/* Second level event (e.g., xsi:type, xsi:nil, ...) */
errn = EXI_UNSUPPORTED_EVENT_CODE_CHARACTERISTICS;
@@ -56573,29 +629,29 @@ static int decode_v2gX509DataType(bitstream_t* stream, struct v2gX509DataType* v
/* valid EE for simple element START_ELEMENT({http://www.w3.org/2000/09/xmldsig#}X509SKI) ? */
errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
if(eventCode == 0) {
- grammarID = 1573;
+ grammarID = 11;
} else {
errn = EXI_DEVIANT_SUPPORT_NOT_DEPLOYED; /* or also typecast and nillable */
}
}
break;
case 2:
- if (v2gX509DataType->X509SubjectName.arrayLen < v2gX509DataType_X509SubjectName_ARRAY_SIZE) {
+ if (iso2X509DataType->X509SubjectName.arrayLen < iso2X509DataType_X509SubjectName_ARRAY_SIZE) {
/* First(xsi:type)StartTag[CHARACTERS[STRING]] */
errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
if(errn == 0) {
if(eventCode == 0) {
- errn = decodeUnsignedInteger16(stream, &v2gX509DataType->X509SubjectName.array[v2gX509DataType->X509SubjectName.arrayLen].charactersLen);
+ errn = decodeUnsignedInteger16(stream, &iso2X509DataType->X509SubjectName.array[iso2X509DataType->X509SubjectName.arrayLen].charactersLen);
if (errn == 0) {
- if (v2gX509DataType->X509SubjectName.array[v2gX509DataType->X509SubjectName.arrayLen].charactersLen >= 2) {
- v2gX509DataType->X509SubjectName.array[v2gX509DataType->X509SubjectName.arrayLen].charactersLen = (uint16_t)(v2gX509DataType->X509SubjectName.array[v2gX509DataType->X509SubjectName.arrayLen].charactersLen - 2); /* string table miss */
- errn = decodeCharacters(stream, v2gX509DataType->X509SubjectName.array[v2gX509DataType->X509SubjectName.arrayLen].charactersLen, v2gX509DataType->X509SubjectName.array[v2gX509DataType->X509SubjectName.arrayLen].characters, v2gX509DataType_X509SubjectName_CHARACTERS_SIZE);
+ if (iso2X509DataType->X509SubjectName.array[iso2X509DataType->X509SubjectName.arrayLen].charactersLen >= 2) {
+ iso2X509DataType->X509SubjectName.array[iso2X509DataType->X509SubjectName.arrayLen].charactersLen = (uint16_t)(iso2X509DataType->X509SubjectName.array[iso2X509DataType->X509SubjectName.arrayLen].charactersLen - 2); /* string table miss */
+ errn = decodeCharacters(stream, iso2X509DataType->X509SubjectName.array[iso2X509DataType->X509SubjectName.arrayLen].charactersLen, iso2X509DataType->X509SubjectName.array[iso2X509DataType->X509SubjectName.arrayLen].characters, iso2X509DataType_X509SubjectName_CHARACTERS_SIZE);
} else {
/* string table hit */
errn = EXI_ERROR_STRINGVALUES_NOT_SUPPORTED;
}
}
- v2gX509DataType->X509SubjectName.arrayLen++;
+ iso2X509DataType->X509SubjectName.arrayLen++;
} else {
/* Second level event (e.g., xsi:type, xsi:nil, ...) */
errn = EXI_UNSUPPORTED_EVENT_CODE_CHARACTERISTICS;
@@ -56608,26 +664,26 @@ static int decode_v2gX509DataType(bitstream_t* stream, struct v2gX509DataType* v
/* valid EE for simple element START_ELEMENT({http://www.w3.org/2000/09/xmldsig#}X509SubjectName) ? */
errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
if(eventCode == 0) {
- grammarID = 1573;
+ grammarID = 11;
} else {
errn = EXI_DEVIANT_SUPPORT_NOT_DEPLOYED; /* or also typecast and nillable */
}
}
break;
case 3:
- if (v2gX509DataType->X509Certificate.arrayLen < v2gX509DataType_X509Certificate_ARRAY_SIZE) {
+ if (iso2X509DataType->X509Certificate.arrayLen < iso2X509DataType_X509Certificate_ARRAY_SIZE) {
/* First(xsi:type)StartTag[CHARACTERS[BINARY_BASE64]] */
errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
if(errn == 0) {
if(eventCode == 0) {
- errn = decodeUnsignedInteger16(stream, &v2gX509DataType->X509Certificate.array[v2gX509DataType->X509Certificate.arrayLen].bytesLen);
+ errn = decodeUnsignedInteger16(stream, &iso2X509DataType->X509Certificate.array[iso2X509DataType->X509Certificate.arrayLen].bytesLen);
if (errn == 0) {
- errn = (v2gX509DataType->X509Certificate.array[v2gX509DataType->X509Certificate.arrayLen].bytesLen) <= v2gX509DataType_X509Certificate_BYTES_SIZE ? 0 : EXI_ERROR_OUT_OF_BYTE_BUFFER;
+ errn = (iso2X509DataType->X509Certificate.array[iso2X509DataType->X509Certificate.arrayLen].bytesLen) <= iso2X509DataType_X509Certificate_BYTES_SIZE ? 0 : EXI_ERROR_OUT_OF_BYTE_BUFFER;
}
if (errn == 0) {
- errn = decodeBytes(stream, v2gX509DataType->X509Certificate.array[v2gX509DataType->X509Certificate.arrayLen].bytesLen, v2gX509DataType->X509Certificate.array[v2gX509DataType->X509Certificate.arrayLen].bytes);
+ errn = decodeBytes(stream, iso2X509DataType->X509Certificate.array[iso2X509DataType->X509Certificate.arrayLen].bytesLen, iso2X509DataType->X509Certificate.array[iso2X509DataType->X509Certificate.arrayLen].bytes);
}
- v2gX509DataType->X509Certificate.arrayLen++;
+ iso2X509DataType->X509Certificate.arrayLen++;
} else {
/* Second level event (e.g., xsi:type, xsi:nil, ...) */
errn = EXI_UNSUPPORTED_EVENT_CODE_CHARACTERISTICS;
@@ -56640,26 +696,26 @@ static int decode_v2gX509DataType(bitstream_t* stream, struct v2gX509DataType* v
/* valid EE for simple element START_ELEMENT({http://www.w3.org/2000/09/xmldsig#}X509Certificate) ? */
errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
if(eventCode == 0) {
- grammarID = 1573;
+ grammarID = 11;
} else {
errn = EXI_DEVIANT_SUPPORT_NOT_DEPLOYED; /* or also typecast and nillable */
}
}
break;
case 4:
- if (v2gX509DataType->X509CRL.arrayLen < v2gX509DataType_X509CRL_ARRAY_SIZE) {
+ if (iso2X509DataType->X509CRL.arrayLen < iso2X509DataType_X509CRL_ARRAY_SIZE) {
/* First(xsi:type)StartTag[CHARACTERS[BINARY_BASE64]] */
errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
if(errn == 0) {
if(eventCode == 0) {
- errn = decodeUnsignedInteger16(stream, &v2gX509DataType->X509CRL.array[v2gX509DataType->X509CRL.arrayLen].bytesLen);
+ errn = decodeUnsignedInteger16(stream, &iso2X509DataType->X509CRL.array[iso2X509DataType->X509CRL.arrayLen].bytesLen);
if (errn == 0) {
- errn = (v2gX509DataType->X509CRL.array[v2gX509DataType->X509CRL.arrayLen].bytesLen) <= v2gX509DataType_X509CRL_BYTES_SIZE ? 0 : EXI_ERROR_OUT_OF_BYTE_BUFFER;
+ errn = (iso2X509DataType->X509CRL.array[iso2X509DataType->X509CRL.arrayLen].bytesLen) <= iso2X509DataType_X509CRL_BYTES_SIZE ? 0 : EXI_ERROR_OUT_OF_BYTE_BUFFER;
}
if (errn == 0) {
- errn = decodeBytes(stream, v2gX509DataType->X509CRL.array[v2gX509DataType->X509CRL.arrayLen].bytesLen, v2gX509DataType->X509CRL.array[v2gX509DataType->X509CRL.arrayLen].bytes);
+ errn = decodeBytes(stream, iso2X509DataType->X509CRL.array[iso2X509DataType->X509CRL.arrayLen].bytesLen, iso2X509DataType->X509CRL.array[iso2X509DataType->X509CRL.arrayLen].bytes);
}
- v2gX509DataType->X509CRL.arrayLen++;
+ iso2X509DataType->X509CRL.arrayLen++;
} else {
/* Second level event (e.g., xsi:type, xsi:nil, ...) */
errn = EXI_UNSUPPORTED_EVENT_CODE_CHARACTERISTICS;
@@ -56672,7 +728,7 @@ static int decode_v2gX509DataType(bitstream_t* stream, struct v2gX509DataType* v
/* valid EE for simple element START_ELEMENT({http://www.w3.org/2000/09/xmldsig#}X509CRL) ? */
errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
if(eventCode == 0) {
- grammarID = 1573;
+ grammarID = 11;
} else {
errn = EXI_DEVIANT_SUPPORT_NOT_DEPLOYED; /* or also typecast and nillable */
}
@@ -56681,7 +737,7 @@ static int decode_v2gX509DataType(bitstream_t* stream, struct v2gX509DataType* v
case 5:
errn = EXI_UNSUPPORTED_EVENT_CODE_CHARACTERISTICS;
/* TODO unsupported event : START_ELEMENT_GENERIC */
- grammarID = 1573;
+ grammarID = 11;
break;
default:
errn = EXI_ERROR_UNKOWN_EVENT_CODE;
@@ -56689,33 +745,33 @@ static int decode_v2gX509DataType(bitstream_t* stream, struct v2gX509DataType* v
}
}
break;
- case 1573:
+ case 11:
/* Element[START_ELEMENT({http://www.w3.org/2000/09/xmldsig#}X509IssuerSerial), START_ELEMENT({http://www.w3.org/2000/09/xmldsig#}X509SKI), START_ELEMENT({http://www.w3.org/2000/09/xmldsig#}X509SubjectName), START_ELEMENT({http://www.w3.org/2000/09/xmldsig#}X509Certificate), START_ELEMENT({http://www.w3.org/2000/09/xmldsig#}X509CRL), START_ELEMENT_GENERIC, END_ELEMENT] */
errn = decodeNBitUnsignedInteger(stream, 3, &eventCode);
if (errn == 0) {
switch(eventCode) {
case 0:
- if (v2gX509DataType->X509IssuerSerial.arrayLen < v2gX509DataType_X509IssuerSerial_ARRAY_SIZE) {
- errn = decode_v2gX509IssuerSerialType(stream, &v2gX509DataType->X509IssuerSerial.array[v2gX509DataType->X509IssuerSerial.arrayLen++]);
+ if (iso2X509DataType->X509IssuerSerial.arrayLen < iso2X509DataType_X509IssuerSerial_ARRAY_SIZE) {
+ errn = decode_iso2X509IssuerSerialType(stream, &iso2X509DataType->X509IssuerSerial.array[iso2X509DataType->X509IssuerSerial.arrayLen++]);
} else {
errn = EXI_ERROR_OUT_OF_BOUNDS;
}
- grammarID = 1573;
+ grammarID = 11;
break;
case 1:
- if (v2gX509DataType->X509SKI.arrayLen < v2gX509DataType_X509SKI_ARRAY_SIZE) {
+ if (iso2X509DataType->X509SKI.arrayLen < iso2X509DataType_X509SKI_ARRAY_SIZE) {
/* First(xsi:type)StartTag[CHARACTERS[BINARY_BASE64]] */
errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
if(errn == 0) {
if(eventCode == 0) {
- errn = decodeUnsignedInteger16(stream, &v2gX509DataType->X509SKI.array[v2gX509DataType->X509SKI.arrayLen].bytesLen);
+ errn = decodeUnsignedInteger16(stream, &iso2X509DataType->X509SKI.array[iso2X509DataType->X509SKI.arrayLen].bytesLen);
if (errn == 0) {
- errn = (v2gX509DataType->X509SKI.array[v2gX509DataType->X509SKI.arrayLen].bytesLen) <= v2gX509DataType_X509SKI_BYTES_SIZE ? 0 : EXI_ERROR_OUT_OF_BYTE_BUFFER;
+ errn = (iso2X509DataType->X509SKI.array[iso2X509DataType->X509SKI.arrayLen].bytesLen) <= iso2X509DataType_X509SKI_BYTES_SIZE ? 0 : EXI_ERROR_OUT_OF_BYTE_BUFFER;
}
if (errn == 0) {
- errn = decodeBytes(stream, v2gX509DataType->X509SKI.array[v2gX509DataType->X509SKI.arrayLen].bytesLen, v2gX509DataType->X509SKI.array[v2gX509DataType->X509SKI.arrayLen].bytes);
+ errn = decodeBytes(stream, iso2X509DataType->X509SKI.array[iso2X509DataType->X509SKI.arrayLen].bytesLen, iso2X509DataType->X509SKI.array[iso2X509DataType->X509SKI.arrayLen].bytes);
}
- v2gX509DataType->X509SKI.arrayLen++;
+ iso2X509DataType->X509SKI.arrayLen++;
} else {
/* Second level event (e.g., xsi:type, xsi:nil, ...) */
errn = EXI_UNSUPPORTED_EVENT_CODE_CHARACTERISTICS;
@@ -56728,29 +784,29 @@ static int decode_v2gX509DataType(bitstream_t* stream, struct v2gX509DataType* v
/* valid EE for simple element START_ELEMENT({http://www.w3.org/2000/09/xmldsig#}X509SKI) ? */
errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
if(eventCode == 0) {
- grammarID = 1573;
+ grammarID = 11;
} else {
errn = EXI_DEVIANT_SUPPORT_NOT_DEPLOYED; /* or also typecast and nillable */
}
}
break;
case 2:
- if (v2gX509DataType->X509SubjectName.arrayLen < v2gX509DataType_X509SubjectName_ARRAY_SIZE) {
+ if (iso2X509DataType->X509SubjectName.arrayLen < iso2X509DataType_X509SubjectName_ARRAY_SIZE) {
/* First(xsi:type)StartTag[CHARACTERS[STRING]] */
errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
if(errn == 0) {
if(eventCode == 0) {
- errn = decodeUnsignedInteger16(stream, &v2gX509DataType->X509SubjectName.array[v2gX509DataType->X509SubjectName.arrayLen].charactersLen);
+ errn = decodeUnsignedInteger16(stream, &iso2X509DataType->X509SubjectName.array[iso2X509DataType->X509SubjectName.arrayLen].charactersLen);
if (errn == 0) {
- if (v2gX509DataType->X509SubjectName.array[v2gX509DataType->X509SubjectName.arrayLen].charactersLen >= 2) {
- v2gX509DataType->X509SubjectName.array[v2gX509DataType->X509SubjectName.arrayLen].charactersLen = (uint16_t)(v2gX509DataType->X509SubjectName.array[v2gX509DataType->X509SubjectName.arrayLen].charactersLen - 2); /* string table miss */
- errn = decodeCharacters(stream, v2gX509DataType->X509SubjectName.array[v2gX509DataType->X509SubjectName.arrayLen].charactersLen, v2gX509DataType->X509SubjectName.array[v2gX509DataType->X509SubjectName.arrayLen].characters, v2gX509DataType_X509SubjectName_CHARACTERS_SIZE);
+ if (iso2X509DataType->X509SubjectName.array[iso2X509DataType->X509SubjectName.arrayLen].charactersLen >= 2) {
+ iso2X509DataType->X509SubjectName.array[iso2X509DataType->X509SubjectName.arrayLen].charactersLen = (uint16_t)(iso2X509DataType->X509SubjectName.array[iso2X509DataType->X509SubjectName.arrayLen].charactersLen - 2); /* string table miss */
+ errn = decodeCharacters(stream, iso2X509DataType->X509SubjectName.array[iso2X509DataType->X509SubjectName.arrayLen].charactersLen, iso2X509DataType->X509SubjectName.array[iso2X509DataType->X509SubjectName.arrayLen].characters, iso2X509DataType_X509SubjectName_CHARACTERS_SIZE);
} else {
/* string table hit */
errn = EXI_ERROR_STRINGVALUES_NOT_SUPPORTED;
}
}
- v2gX509DataType->X509SubjectName.arrayLen++;
+ iso2X509DataType->X509SubjectName.arrayLen++;
} else {
/* Second level event (e.g., xsi:type, xsi:nil, ...) */
errn = EXI_UNSUPPORTED_EVENT_CODE_CHARACTERISTICS;
@@ -56763,26 +819,26 @@ static int decode_v2gX509DataType(bitstream_t* stream, struct v2gX509DataType* v
/* valid EE for simple element START_ELEMENT({http://www.w3.org/2000/09/xmldsig#}X509SubjectName) ? */
errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
if(eventCode == 0) {
- grammarID = 1573;
+ grammarID = 11;
} else {
errn = EXI_DEVIANT_SUPPORT_NOT_DEPLOYED; /* or also typecast and nillable */
}
}
break;
case 3:
- if (v2gX509DataType->X509Certificate.arrayLen < v2gX509DataType_X509Certificate_ARRAY_SIZE) {
+ if (iso2X509DataType->X509Certificate.arrayLen < iso2X509DataType_X509Certificate_ARRAY_SIZE) {
/* First(xsi:type)StartTag[CHARACTERS[BINARY_BASE64]] */
errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
if(errn == 0) {
if(eventCode == 0) {
- errn = decodeUnsignedInteger16(stream, &v2gX509DataType->X509Certificate.array[v2gX509DataType->X509Certificate.arrayLen].bytesLen);
+ errn = decodeUnsignedInteger16(stream, &iso2X509DataType->X509Certificate.array[iso2X509DataType->X509Certificate.arrayLen].bytesLen);
if (errn == 0) {
- errn = (v2gX509DataType->X509Certificate.array[v2gX509DataType->X509Certificate.arrayLen].bytesLen) <= v2gX509DataType_X509Certificate_BYTES_SIZE ? 0 : EXI_ERROR_OUT_OF_BYTE_BUFFER;
+ errn = (iso2X509DataType->X509Certificate.array[iso2X509DataType->X509Certificate.arrayLen].bytesLen) <= iso2X509DataType_X509Certificate_BYTES_SIZE ? 0 : EXI_ERROR_OUT_OF_BYTE_BUFFER;
}
if (errn == 0) {
- errn = decodeBytes(stream, v2gX509DataType->X509Certificate.array[v2gX509DataType->X509Certificate.arrayLen].bytesLen, v2gX509DataType->X509Certificate.array[v2gX509DataType->X509Certificate.arrayLen].bytes);
+ errn = decodeBytes(stream, iso2X509DataType->X509Certificate.array[iso2X509DataType->X509Certificate.arrayLen].bytesLen, iso2X509DataType->X509Certificate.array[iso2X509DataType->X509Certificate.arrayLen].bytes);
}
- v2gX509DataType->X509Certificate.arrayLen++;
+ iso2X509DataType->X509Certificate.arrayLen++;
} else {
/* Second level event (e.g., xsi:type, xsi:nil, ...) */
errn = EXI_UNSUPPORTED_EVENT_CODE_CHARACTERISTICS;
@@ -56795,26 +851,26 @@ static int decode_v2gX509DataType(bitstream_t* stream, struct v2gX509DataType* v
/* valid EE for simple element START_ELEMENT({http://www.w3.org/2000/09/xmldsig#}X509Certificate) ? */
errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
if(eventCode == 0) {
- grammarID = 1573;
+ grammarID = 11;
} else {
errn = EXI_DEVIANT_SUPPORT_NOT_DEPLOYED; /* or also typecast and nillable */
}
}
break;
case 4:
- if (v2gX509DataType->X509CRL.arrayLen < v2gX509DataType_X509CRL_ARRAY_SIZE) {
+ if (iso2X509DataType->X509CRL.arrayLen < iso2X509DataType_X509CRL_ARRAY_SIZE) {
/* First(xsi:type)StartTag[CHARACTERS[BINARY_BASE64]] */
errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
if(errn == 0) {
if(eventCode == 0) {
- errn = decodeUnsignedInteger16(stream, &v2gX509DataType->X509CRL.array[v2gX509DataType->X509CRL.arrayLen].bytesLen);
+ errn = decodeUnsignedInteger16(stream, &iso2X509DataType->X509CRL.array[iso2X509DataType->X509CRL.arrayLen].bytesLen);
if (errn == 0) {
- errn = (v2gX509DataType->X509CRL.array[v2gX509DataType->X509CRL.arrayLen].bytesLen) <= v2gX509DataType_X509CRL_BYTES_SIZE ? 0 : EXI_ERROR_OUT_OF_BYTE_BUFFER;
+ errn = (iso2X509DataType->X509CRL.array[iso2X509DataType->X509CRL.arrayLen].bytesLen) <= iso2X509DataType_X509CRL_BYTES_SIZE ? 0 : EXI_ERROR_OUT_OF_BYTE_BUFFER;
}
if (errn == 0) {
- errn = decodeBytes(stream, v2gX509DataType->X509CRL.array[v2gX509DataType->X509CRL.arrayLen].bytesLen, v2gX509DataType->X509CRL.array[v2gX509DataType->X509CRL.arrayLen].bytes);
+ errn = decodeBytes(stream, iso2X509DataType->X509CRL.array[iso2X509DataType->X509CRL.arrayLen].bytesLen, iso2X509DataType->X509CRL.array[iso2X509DataType->X509CRL.arrayLen].bytes);
}
- v2gX509DataType->X509CRL.arrayLen++;
+ iso2X509DataType->X509CRL.arrayLen++;
} else {
/* Second level event (e.g., xsi:type, xsi:nil, ...) */
errn = EXI_UNSUPPORTED_EVENT_CODE_CHARACTERISTICS;
@@ -56827,7 +883,7 @@ static int decode_v2gX509DataType(bitstream_t* stream, struct v2gX509DataType* v
/* valid EE for simple element START_ELEMENT({http://www.w3.org/2000/09/xmldsig#}X509CRL) ? */
errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
if(eventCode == 0) {
- grammarID = 1573;
+ grammarID = 11;
} else {
errn = EXI_DEVIANT_SUPPORT_NOT_DEPLOYED; /* or also typecast and nillable */
}
@@ -56836,11 +892,11 @@ static int decode_v2gX509DataType(bitstream_t* stream, struct v2gX509DataType* v
case 5:
errn = EXI_UNSUPPORTED_EVENT_CODE_CHARACTERISTICS;
/* TODO unsupported event : START_ELEMENT_GENERIC */
- grammarID = 1573;
+ grammarID = 11;
break;
case 6:
done = 1;
- grammarID = 3;
+ grammarID = 4;
break;
default:
errn = EXI_ERROR_UNKOWN_EVENT_CODE;
@@ -56859,16121 +915,17 @@ static int decode_v2gX509DataType(bitstream_t* stream, struct v2gX509DataType* v
return errn;
}
-/* Complex type name='urn:iso:15118:2:2016:MsgDataTypes,EVEnergyTransferParameterType', base type name='anyType', content type='ELEMENT', isAbstract='true', hasTypeId='false', final='0', block='0', particle='("urn:iso:15118:2:2016:MsgDataTypes":DepartureTime)', derivedBy='RESTRICTION'. */
-static int decode_v2gEVEnergyTransferParameterType(bitstream_t* stream, struct v2gEVEnergyTransferParameterType* v2gEVEnergyTransferParameterType) {
- int grammarID = 1574;
+/* Complex type name='http://www.w3.org/2000/09/xmldsig#,RSAKeyValueType', base type name='anyType', content type='ELEMENT', isAbstract='false', hasTypeId='false', final='0', block='0', particle='("http://www.w3.org/2000/09/xmldsig#":Modulus,"http://www.w3.org/2000/09/xmldsig#":Exponent)', derivedBy='RESTRICTION'. */
+static int decode_iso2RSAKeyValueType(bitstream_t* stream, struct iso2RSAKeyValueType* iso2RSAKeyValueType) {
+ int grammarID = 12;
int done = 0;
- init_v2gEVEnergyTransferParameterType(v2gEVEnergyTransferParameterType);
+ init_iso2RSAKeyValueType(iso2RSAKeyValueType);
while(!done) {
switch(grammarID) {
- case 1574:
- /* FirstStartTag[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}DepartureTime)] */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- /* First(xsi:type)StartTag[CHARACTERS[UNSIGNED_INTEGER]] */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(errn == 0) {
- if(eventCode == 0) {
- errn = decodeUnsignedInteger32(stream, &v2gEVEnergyTransferParameterType->DepartureTime);
- } 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({urn:iso:15118:2:2016:MsgDataTypes}DepartureTime) ? */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(eventCode == 0) {
- grammarID = 2;
- } else {
- errn = EXI_DEVIANT_SUPPORT_NOT_DEPLOYED; /* or also typecast and nillable */
- }
- }
- 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:2016:MsgBody,PreChargeResType', base type name='V2GResponseType', content type='ELEMENT', isAbstract='false', hasTypeId='false', final='0', block='0', particle='(("urn:iso:15118:2:2016:MsgBody":ResponseCode,"urn:iso:15118:2:2016:MsgBody":EVSEStatus{0-1}),("urn:iso:15118:2:2016:MsgBody":EVSEPresentVoltage))', derivedBy='EXTENSION'. */
-static int decode_v2gPreChargeResType(bitstream_t* stream, struct v2gPreChargeResType* v2gPreChargeResType) {
- int grammarID = 1575;
- int done = 0;
-
- init_v2gPreChargeResType(v2gPreChargeResType);
-
- while(!done) {
- switch(grammarID) {
- case 1575:
- /* FirstStartTag[START_ELEMENT({urn:iso:15118:2:2016:MsgBody}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, 5, &uint32);
- v2gPreChargeResType->ResponseCode = (v2gresponseCodeType) 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({urn:iso:15118:2:2016:MsgBody}ResponseCode) ? */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(eventCode == 0) {
- grammarID = 1576;
- } else {
- errn = EXI_DEVIANT_SUPPORT_NOT_DEPLOYED; /* or also typecast and nillable */
- }
- }
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 1576:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgBody}EVSEStatus), START_ELEMENT({urn:iso:15118:2:2016:MsgBody}EVSEPresentVoltage)] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- errn = decode_v2gEVSEStatusType(stream, &v2gPreChargeResType->EVSEStatus);
- v2gPreChargeResType->EVSEStatus_isUsed = 1u;
- grammarID = 1577;
- break;
- case 1:
- errn = decode_v2gPhysicalValueType(stream, &v2gPreChargeResType->EVSEPresentVoltage);
- grammarID = 2;
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 1577:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgBody}EVSEPresentVoltage)] */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- errn = decode_v2gPhysicalValueType(stream, &v2gPreChargeResType->EVSEPresentVoltage);
- grammarID = 2;
- 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:2016:MsgBody,FinePositioningResType', base type name='V2GResponseType', content type='ELEMENT', isAbstract='false', hasTypeId='false', final='0', block='0', particle='(("urn:iso:15118:2:2016:MsgBody":ResponseCode,"urn:iso:15118:2:2016:MsgBody":EVSEStatus{0-1}),("urn:iso:15118:2:2016:MsgBody":EVSEProcessing,"urn:iso:15118:2:2016:MsgDataTypes":EVSEFinePositioningParameters{0-1}))', derivedBy='EXTENSION'. */
-static int decode_v2gFinePositioningResType(bitstream_t* stream, struct v2gFinePositioningResType* v2gFinePositioningResType) {
- int grammarID = 1578;
- int done = 0;
-
- init_v2gFinePositioningResType(v2gFinePositioningResType);
-
- while(!done) {
- switch(grammarID) {
- case 1578:
- /* FirstStartTag[START_ELEMENT({urn:iso:15118:2:2016:MsgBody}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, 5, &uint32);
- v2gFinePositioningResType->ResponseCode = (v2gresponseCodeType) 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({urn:iso:15118:2:2016:MsgBody}ResponseCode) ? */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(eventCode == 0) {
- grammarID = 1579;
- } else {
- errn = EXI_DEVIANT_SUPPORT_NOT_DEPLOYED; /* or also typecast and nillable */
- }
- }
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 1579:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgBody}EVSEStatus), START_ELEMENT({urn:iso:15118:2:2016:MsgBody}EVSEProcessing)] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- errn = decode_v2gEVSEStatusType(stream, &v2gFinePositioningResType->EVSEStatus);
- v2gFinePositioningResType->EVSEStatus_isUsed = 1u;
- grammarID = 1580;
- break;
- case 1:
- /* FirstStartTag[CHARACTERS[ENUMERATION]] */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(errn == 0) {
- if(eventCode == 0) {
- errn = decodeNBitUnsignedInteger(stream, 2, &uint32);
- v2gFinePositioningResType->EVSEProcessing = (v2gEVSEProcessingType) 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({urn:iso:15118:2:2016:MsgBody}EVSEProcessing) ? */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(eventCode == 0) {
- grammarID = 1581;
- } else {
- errn = EXI_DEVIANT_SUPPORT_NOT_DEPLOYED; /* or also typecast and nillable */
- }
- }
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 1580:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgBody}EVSEProcessing)] */
- 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);
- v2gFinePositioningResType->EVSEProcessing = (v2gEVSEProcessingType) 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({urn:iso:15118:2:2016:MsgBody}EVSEProcessing) ? */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(eventCode == 0) {
- grammarID = 1581;
- } else {
- errn = EXI_DEVIANT_SUPPORT_NOT_DEPLOYED; /* or also typecast and nillable */
- }
- }
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 1581:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}EVSEFinePositioningParameters), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}Generic_EVSEFinePositioningParameters), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}LF_EVSEFinePositioningParameters), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MV_EVSEFinePositioningParameters), END_ELEMENT] */
- errn = decodeNBitUnsignedInteger(stream, 3, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- errn = decode_v2gEVSEFinePositioningParametersType(stream, &v2gFinePositioningResType->EVSEFinePositioningParameters);
- v2gFinePositioningResType->EVSEFinePositioningParameters_isUsed = 1u;
- grammarID = 2;
- break;
- case 1:
- errn = decode_v2gGeneric_EVSEFinePositioningParametersType(stream, &v2gFinePositioningResType->Generic_EVSEFinePositioningParameters);
- v2gFinePositioningResType->Generic_EVSEFinePositioningParameters_isUsed = 1u;
- grammarID = 2;
- break;
- case 2:
- errn = decode_v2gLF_EVSEFinePositioningParametersType(stream, &v2gFinePositioningResType->LF_EVSEFinePositioningParameters);
- v2gFinePositioningResType->LF_EVSEFinePositioningParameters_isUsed = 1u;
- grammarID = 2;
- break;
- case 3:
- errn = decode_v2gMV_EVSEFinePositioningParametersType(stream, &v2gFinePositioningResType->MV_EVSEFinePositioningParameters);
- v2gFinePositioningResType->MV_EVSEFinePositioningParameters_isUsed = 1u;
- grammarID = 2;
- break;
- case 4:
- 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:2016:MsgDataTypes,LFA_EVSEFinePositioningSetupParametersType', base type name='EVSEFinePositioningSetupParametersType', content type='ELEMENT', isAbstract='false', hasTypeId='false', final='0', block='0', particle='("urn:iso:15118:2:2016:MsgDataTypes":NumberOfSensors,"urn:iso:15118:2:2016:MsgDataTypes":SensorList,"urn:iso:15118:2:2016:MsgDataTypes":SensorOrder{1-255},"urn:iso:15118:2:2016:MsgDataTypes":SignalPulseDuration,"urn:iso:15118:2:2016:MsgDataTypes":SignalSeparationTime,"urn:iso:15118:2:2016:MsgDataTypes":PackageSeparationTime,"urn:iso:15118:2:2016:MsgDataTypes":AlignmentOffset,"urn:iso:15118:2:2016:MsgDataTypes":SignalFrequency)', derivedBy='EXTENSION'. */
-static int decode_v2gLFA_EVSEFinePositioningSetupParametersType(bitstream_t* stream, struct v2gLFA_EVSEFinePositioningSetupParametersType* v2gLFA_EVSEFinePositioningSetupParametersType) {
- int grammarID = 1582;
- int done = 0;
-
- init_v2gLFA_EVSEFinePositioningSetupParametersType(v2gLFA_EVSEFinePositioningSetupParametersType);
-
- while(!done) {
- switch(grammarID) {
- case 1582:
- /* FirstStartTag[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}NumberOfSensors)] */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(errn == 0) {
- if(eventCode == 0) {
- errn = decodeNBitUnsignedInteger(stream, 8, &(uint32));
- v2gLFA_EVSEFinePositioningSetupParametersType->NumberOfSensors = (uint8_t)(uint32 + 0);
- } 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({urn:iso:15118:2:2016:MsgDataTypes}NumberOfSensors) ? */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(eventCode == 0) {
- grammarID = 1583;
- } else {
- errn = EXI_DEVIANT_SUPPORT_NOT_DEPLOYED; /* or also typecast and nillable */
- }
- }
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 1583:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorList)] */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- errn = decode_v2gSensorListType(stream, &v2gLFA_EVSEFinePositioningSetupParametersType->SensorList);
- grammarID = 1584;
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 1584:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorOrder)] */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gLFA_EVSEFinePositioningSetupParametersType->SensorOrder.arrayLen < v2gLFA_EVSEFinePositioningSetupParametersType_SensorOrder_ARRAY_SIZE) {
- /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(errn == 0) {
- if(eventCode == 0) {
- errn = decodeNBitUnsignedInteger(stream, 8, &(uint32));
- v2gLFA_EVSEFinePositioningSetupParametersType->SensorOrder.array[v2gLFA_EVSEFinePositioningSetupParametersType->SensorOrder.arrayLen] = (uint8_t)(uint32 + 0);
- v2gLFA_EVSEFinePositioningSetupParametersType->SensorOrder.arrayLen++;
- } else {
- /* Second level event (e.g., xsi:type, xsi:nil, ...) */
- errn = EXI_UNSUPPORTED_EVENT_CODE_CHARACTERISTICS;
- }
- }
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- if(errn == 0) {
- /* valid EE for simple element START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorOrder) ? */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(eventCode == 0) {
- grammarID = 1585;
- } else {
- errn = EXI_DEVIANT_SUPPORT_NOT_DEPLOYED; /* or also typecast and nillable */
- }
- }
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 1585:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorOrder), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SignalPulseDuration)] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gLFA_EVSEFinePositioningSetupParametersType->SensorOrder.arrayLen < v2gLFA_EVSEFinePositioningSetupParametersType_SensorOrder_ARRAY_SIZE) {
- /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(errn == 0) {
- if(eventCode == 0) {
- errn = decodeNBitUnsignedInteger(stream, 8, &(uint32));
- v2gLFA_EVSEFinePositioningSetupParametersType->SensorOrder.array[v2gLFA_EVSEFinePositioningSetupParametersType->SensorOrder.arrayLen] = (uint8_t)(uint32 + 0);
- v2gLFA_EVSEFinePositioningSetupParametersType->SensorOrder.arrayLen++;
- } else {
- /* Second level event (e.g., xsi:type, xsi:nil, ...) */
- errn = EXI_UNSUPPORTED_EVENT_CODE_CHARACTERISTICS;
- }
- }
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- if(errn == 0) {
- /* valid EE for simple element START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorOrder) ? */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(eventCode == 0) {
- grammarID = 1586;
- } else {
- errn = EXI_DEVIANT_SUPPORT_NOT_DEPLOYED; /* or also typecast and nillable */
- }
- }
- break;
- case 1:
- /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(errn == 0) {
- if(eventCode == 0) {
- errn = decodeNBitUnsignedInteger(stream, 8, &(uint32));
- v2gLFA_EVSEFinePositioningSetupParametersType->SignalPulseDuration = (uint8_t)(uint32 + 0);
- } 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({urn:iso:15118:2:2016:MsgDataTypes}SignalPulseDuration) ? */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(eventCode == 0) {
- grammarID = 1587;
- } else {
- errn = EXI_DEVIANT_SUPPORT_NOT_DEPLOYED; /* or also typecast and nillable */
- }
- }
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 1586:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorOrder), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SignalPulseDuration)] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gLFA_EVSEFinePositioningSetupParametersType->SensorOrder.arrayLen < v2gLFA_EVSEFinePositioningSetupParametersType_SensorOrder_ARRAY_SIZE) {
- /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(errn == 0) {
- if(eventCode == 0) {
- errn = decodeNBitUnsignedInteger(stream, 8, &(uint32));
- v2gLFA_EVSEFinePositioningSetupParametersType->SensorOrder.array[v2gLFA_EVSEFinePositioningSetupParametersType->SensorOrder.arrayLen] = (uint8_t)(uint32 + 0);
- v2gLFA_EVSEFinePositioningSetupParametersType->SensorOrder.arrayLen++;
- } else {
- /* Second level event (e.g., xsi:type, xsi:nil, ...) */
- errn = EXI_UNSUPPORTED_EVENT_CODE_CHARACTERISTICS;
- }
- }
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- if(errn == 0) {
- /* valid EE for simple element START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorOrder) ? */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(eventCode == 0) {
- grammarID = 1588;
- } else {
- errn = EXI_DEVIANT_SUPPORT_NOT_DEPLOYED; /* or also typecast and nillable */
- }
- }
- break;
- case 1:
- /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(errn == 0) {
- if(eventCode == 0) {
- errn = decodeNBitUnsignedInteger(stream, 8, &(uint32));
- v2gLFA_EVSEFinePositioningSetupParametersType->SignalPulseDuration = (uint8_t)(uint32 + 0);
- } 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({urn:iso:15118:2:2016:MsgDataTypes}SignalPulseDuration) ? */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(eventCode == 0) {
- grammarID = 1587;
- } else {
- errn = EXI_DEVIANT_SUPPORT_NOT_DEPLOYED; /* or also typecast and nillable */
- }
- }
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 1588:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorOrder), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SignalPulseDuration)] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gLFA_EVSEFinePositioningSetupParametersType->SensorOrder.arrayLen < v2gLFA_EVSEFinePositioningSetupParametersType_SensorOrder_ARRAY_SIZE) {
- /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(errn == 0) {
- if(eventCode == 0) {
- errn = decodeNBitUnsignedInteger(stream, 8, &(uint32));
- v2gLFA_EVSEFinePositioningSetupParametersType->SensorOrder.array[v2gLFA_EVSEFinePositioningSetupParametersType->SensorOrder.arrayLen] = (uint8_t)(uint32 + 0);
- v2gLFA_EVSEFinePositioningSetupParametersType->SensorOrder.arrayLen++;
- } else {
- /* Second level event (e.g., xsi:type, xsi:nil, ...) */
- errn = EXI_UNSUPPORTED_EVENT_CODE_CHARACTERISTICS;
- }
- }
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- if(errn == 0) {
- /* valid EE for simple element START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorOrder) ? */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(eventCode == 0) {
- grammarID = 1589;
- } else {
- errn = EXI_DEVIANT_SUPPORT_NOT_DEPLOYED; /* or also typecast and nillable */
- }
- }
- break;
- case 1:
- /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(errn == 0) {
- if(eventCode == 0) {
- errn = decodeNBitUnsignedInteger(stream, 8, &(uint32));
- v2gLFA_EVSEFinePositioningSetupParametersType->SignalPulseDuration = (uint8_t)(uint32 + 0);
- } 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({urn:iso:15118:2:2016:MsgDataTypes}SignalPulseDuration) ? */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(eventCode == 0) {
- grammarID = 1587;
- } else {
- errn = EXI_DEVIANT_SUPPORT_NOT_DEPLOYED; /* or also typecast and nillable */
- }
- }
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 1589:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorOrder), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SignalPulseDuration)] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gLFA_EVSEFinePositioningSetupParametersType->SensorOrder.arrayLen < v2gLFA_EVSEFinePositioningSetupParametersType_SensorOrder_ARRAY_SIZE) {
- /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(errn == 0) {
- if(eventCode == 0) {
- errn = decodeNBitUnsignedInteger(stream, 8, &(uint32));
- v2gLFA_EVSEFinePositioningSetupParametersType->SensorOrder.array[v2gLFA_EVSEFinePositioningSetupParametersType->SensorOrder.arrayLen] = (uint8_t)(uint32 + 0);
- v2gLFA_EVSEFinePositioningSetupParametersType->SensorOrder.arrayLen++;
- } else {
- /* Second level event (e.g., xsi:type, xsi:nil, ...) */
- errn = EXI_UNSUPPORTED_EVENT_CODE_CHARACTERISTICS;
- }
- }
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- if(errn == 0) {
- /* valid EE for simple element START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorOrder) ? */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(eventCode == 0) {
- grammarID = 1590;
- } else {
- errn = EXI_DEVIANT_SUPPORT_NOT_DEPLOYED; /* or also typecast and nillable */
- }
- }
- break;
- case 1:
- /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(errn == 0) {
- if(eventCode == 0) {
- errn = decodeNBitUnsignedInteger(stream, 8, &(uint32));
- v2gLFA_EVSEFinePositioningSetupParametersType->SignalPulseDuration = (uint8_t)(uint32 + 0);
- } 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({urn:iso:15118:2:2016:MsgDataTypes}SignalPulseDuration) ? */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(eventCode == 0) {
- grammarID = 1587;
- } else {
- errn = EXI_DEVIANT_SUPPORT_NOT_DEPLOYED; /* or also typecast and nillable */
- }
- }
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 1590:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorOrder), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SignalPulseDuration)] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gLFA_EVSEFinePositioningSetupParametersType->SensorOrder.arrayLen < v2gLFA_EVSEFinePositioningSetupParametersType_SensorOrder_ARRAY_SIZE) {
- /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(errn == 0) {
- if(eventCode == 0) {
- errn = decodeNBitUnsignedInteger(stream, 8, &(uint32));
- v2gLFA_EVSEFinePositioningSetupParametersType->SensorOrder.array[v2gLFA_EVSEFinePositioningSetupParametersType->SensorOrder.arrayLen] = (uint8_t)(uint32 + 0);
- v2gLFA_EVSEFinePositioningSetupParametersType->SensorOrder.arrayLen++;
- } else {
- /* Second level event (e.g., xsi:type, xsi:nil, ...) */
- errn = EXI_UNSUPPORTED_EVENT_CODE_CHARACTERISTICS;
- }
- }
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- if(errn == 0) {
- /* valid EE for simple element START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorOrder) ? */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(eventCode == 0) {
- grammarID = 1591;
- } else {
- errn = EXI_DEVIANT_SUPPORT_NOT_DEPLOYED; /* or also typecast and nillable */
- }
- }
- break;
- case 1:
- /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(errn == 0) {
- if(eventCode == 0) {
- errn = decodeNBitUnsignedInteger(stream, 8, &(uint32));
- v2gLFA_EVSEFinePositioningSetupParametersType->SignalPulseDuration = (uint8_t)(uint32 + 0);
- } 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({urn:iso:15118:2:2016:MsgDataTypes}SignalPulseDuration) ? */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(eventCode == 0) {
- grammarID = 1587;
- } else {
- errn = EXI_DEVIANT_SUPPORT_NOT_DEPLOYED; /* or also typecast and nillable */
- }
- }
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 1591:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorOrder), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SignalPulseDuration)] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gLFA_EVSEFinePositioningSetupParametersType->SensorOrder.arrayLen < v2gLFA_EVSEFinePositioningSetupParametersType_SensorOrder_ARRAY_SIZE) {
- /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(errn == 0) {
- if(eventCode == 0) {
- errn = decodeNBitUnsignedInteger(stream, 8, &(uint32));
- v2gLFA_EVSEFinePositioningSetupParametersType->SensorOrder.array[v2gLFA_EVSEFinePositioningSetupParametersType->SensorOrder.arrayLen] = (uint8_t)(uint32 + 0);
- v2gLFA_EVSEFinePositioningSetupParametersType->SensorOrder.arrayLen++;
- } else {
- /* Second level event (e.g., xsi:type, xsi:nil, ...) */
- errn = EXI_UNSUPPORTED_EVENT_CODE_CHARACTERISTICS;
- }
- }
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- if(errn == 0) {
- /* valid EE for simple element START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorOrder) ? */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(eventCode == 0) {
- grammarID = 1592;
- } else {
- errn = EXI_DEVIANT_SUPPORT_NOT_DEPLOYED; /* or also typecast and nillable */
- }
- }
- break;
- case 1:
- /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(errn == 0) {
- if(eventCode == 0) {
- errn = decodeNBitUnsignedInteger(stream, 8, &(uint32));
- v2gLFA_EVSEFinePositioningSetupParametersType->SignalPulseDuration = (uint8_t)(uint32 + 0);
- } 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({urn:iso:15118:2:2016:MsgDataTypes}SignalPulseDuration) ? */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(eventCode == 0) {
- grammarID = 1587;
- } else {
- errn = EXI_DEVIANT_SUPPORT_NOT_DEPLOYED; /* or also typecast and nillable */
- }
- }
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 1592:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorOrder), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SignalPulseDuration)] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gLFA_EVSEFinePositioningSetupParametersType->SensorOrder.arrayLen < v2gLFA_EVSEFinePositioningSetupParametersType_SensorOrder_ARRAY_SIZE) {
- /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(errn == 0) {
- if(eventCode == 0) {
- errn = decodeNBitUnsignedInteger(stream, 8, &(uint32));
- v2gLFA_EVSEFinePositioningSetupParametersType->SensorOrder.array[v2gLFA_EVSEFinePositioningSetupParametersType->SensorOrder.arrayLen] = (uint8_t)(uint32 + 0);
- v2gLFA_EVSEFinePositioningSetupParametersType->SensorOrder.arrayLen++;
- } else {
- /* Second level event (e.g., xsi:type, xsi:nil, ...) */
- errn = EXI_UNSUPPORTED_EVENT_CODE_CHARACTERISTICS;
- }
- }
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- if(errn == 0) {
- /* valid EE for simple element START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorOrder) ? */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(eventCode == 0) {
- grammarID = 1593;
- } else {
- errn = EXI_DEVIANT_SUPPORT_NOT_DEPLOYED; /* or also typecast and nillable */
- }
- }
- break;
- case 1:
- /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(errn == 0) {
- if(eventCode == 0) {
- errn = decodeNBitUnsignedInteger(stream, 8, &(uint32));
- v2gLFA_EVSEFinePositioningSetupParametersType->SignalPulseDuration = (uint8_t)(uint32 + 0);
- } 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({urn:iso:15118:2:2016:MsgDataTypes}SignalPulseDuration) ? */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(eventCode == 0) {
- grammarID = 1587;
- } else {
- errn = EXI_DEVIANT_SUPPORT_NOT_DEPLOYED; /* or also typecast and nillable */
- }
- }
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 1593:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorOrder), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SignalPulseDuration)] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gLFA_EVSEFinePositioningSetupParametersType->SensorOrder.arrayLen < v2gLFA_EVSEFinePositioningSetupParametersType_SensorOrder_ARRAY_SIZE) {
- /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(errn == 0) {
- if(eventCode == 0) {
- errn = decodeNBitUnsignedInteger(stream, 8, &(uint32));
- v2gLFA_EVSEFinePositioningSetupParametersType->SensorOrder.array[v2gLFA_EVSEFinePositioningSetupParametersType->SensorOrder.arrayLen] = (uint8_t)(uint32 + 0);
- v2gLFA_EVSEFinePositioningSetupParametersType->SensorOrder.arrayLen++;
- } else {
- /* Second level event (e.g., xsi:type, xsi:nil, ...) */
- errn = EXI_UNSUPPORTED_EVENT_CODE_CHARACTERISTICS;
- }
- }
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- if(errn == 0) {
- /* valid EE for simple element START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorOrder) ? */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(eventCode == 0) {
- grammarID = 1594;
- } else {
- errn = EXI_DEVIANT_SUPPORT_NOT_DEPLOYED; /* or also typecast and nillable */
- }
- }
- break;
- case 1:
- /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(errn == 0) {
- if(eventCode == 0) {
- errn = decodeNBitUnsignedInteger(stream, 8, &(uint32));
- v2gLFA_EVSEFinePositioningSetupParametersType->SignalPulseDuration = (uint8_t)(uint32 + 0);
- } 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({urn:iso:15118:2:2016:MsgDataTypes}SignalPulseDuration) ? */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(eventCode == 0) {
- grammarID = 1587;
- } else {
- errn = EXI_DEVIANT_SUPPORT_NOT_DEPLOYED; /* or also typecast and nillable */
- }
- }
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 1594:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorOrder), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SignalPulseDuration)] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gLFA_EVSEFinePositioningSetupParametersType->SensorOrder.arrayLen < v2gLFA_EVSEFinePositioningSetupParametersType_SensorOrder_ARRAY_SIZE) {
- /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(errn == 0) {
- if(eventCode == 0) {
- errn = decodeNBitUnsignedInteger(stream, 8, &(uint32));
- v2gLFA_EVSEFinePositioningSetupParametersType->SensorOrder.array[v2gLFA_EVSEFinePositioningSetupParametersType->SensorOrder.arrayLen] = (uint8_t)(uint32 + 0);
- v2gLFA_EVSEFinePositioningSetupParametersType->SensorOrder.arrayLen++;
- } else {
- /* Second level event (e.g., xsi:type, xsi:nil, ...) */
- errn = EXI_UNSUPPORTED_EVENT_CODE_CHARACTERISTICS;
- }
- }
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- if(errn == 0) {
- /* valid EE for simple element START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorOrder) ? */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(eventCode == 0) {
- grammarID = 1595;
- } else {
- errn = EXI_DEVIANT_SUPPORT_NOT_DEPLOYED; /* or also typecast and nillable */
- }
- }
- break;
- case 1:
- /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(errn == 0) {
- if(eventCode == 0) {
- errn = decodeNBitUnsignedInteger(stream, 8, &(uint32));
- v2gLFA_EVSEFinePositioningSetupParametersType->SignalPulseDuration = (uint8_t)(uint32 + 0);
- } 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({urn:iso:15118:2:2016:MsgDataTypes}SignalPulseDuration) ? */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(eventCode == 0) {
- grammarID = 1587;
- } else {
- errn = EXI_DEVIANT_SUPPORT_NOT_DEPLOYED; /* or also typecast and nillable */
- }
- }
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 1595:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorOrder), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SignalPulseDuration)] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gLFA_EVSEFinePositioningSetupParametersType->SensorOrder.arrayLen < v2gLFA_EVSEFinePositioningSetupParametersType_SensorOrder_ARRAY_SIZE) {
- /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(errn == 0) {
- if(eventCode == 0) {
- errn = decodeNBitUnsignedInteger(stream, 8, &(uint32));
- v2gLFA_EVSEFinePositioningSetupParametersType->SensorOrder.array[v2gLFA_EVSEFinePositioningSetupParametersType->SensorOrder.arrayLen] = (uint8_t)(uint32 + 0);
- v2gLFA_EVSEFinePositioningSetupParametersType->SensorOrder.arrayLen++;
- } else {
- /* Second level event (e.g., xsi:type, xsi:nil, ...) */
- errn = EXI_UNSUPPORTED_EVENT_CODE_CHARACTERISTICS;
- }
- }
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- if(errn == 0) {
- /* valid EE for simple element START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorOrder) ? */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(eventCode == 0) {
- grammarID = 1596;
- } else {
- errn = EXI_DEVIANT_SUPPORT_NOT_DEPLOYED; /* or also typecast and nillable */
- }
- }
- break;
- case 1:
- /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(errn == 0) {
- if(eventCode == 0) {
- errn = decodeNBitUnsignedInteger(stream, 8, &(uint32));
- v2gLFA_EVSEFinePositioningSetupParametersType->SignalPulseDuration = (uint8_t)(uint32 + 0);
- } 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({urn:iso:15118:2:2016:MsgDataTypes}SignalPulseDuration) ? */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(eventCode == 0) {
- grammarID = 1587;
- } else {
- errn = EXI_DEVIANT_SUPPORT_NOT_DEPLOYED; /* or also typecast and nillable */
- }
- }
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 1596:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorOrder), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SignalPulseDuration)] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gLFA_EVSEFinePositioningSetupParametersType->SensorOrder.arrayLen < v2gLFA_EVSEFinePositioningSetupParametersType_SensorOrder_ARRAY_SIZE) {
- /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(errn == 0) {
- if(eventCode == 0) {
- errn = decodeNBitUnsignedInteger(stream, 8, &(uint32));
- v2gLFA_EVSEFinePositioningSetupParametersType->SensorOrder.array[v2gLFA_EVSEFinePositioningSetupParametersType->SensorOrder.arrayLen] = (uint8_t)(uint32 + 0);
- v2gLFA_EVSEFinePositioningSetupParametersType->SensorOrder.arrayLen++;
- } else {
- /* Second level event (e.g., xsi:type, xsi:nil, ...) */
- errn = EXI_UNSUPPORTED_EVENT_CODE_CHARACTERISTICS;
- }
- }
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- if(errn == 0) {
- /* valid EE for simple element START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorOrder) ? */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(eventCode == 0) {
- grammarID = 1597;
- } else {
- errn = EXI_DEVIANT_SUPPORT_NOT_DEPLOYED; /* or also typecast and nillable */
- }
- }
- break;
- case 1:
- /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(errn == 0) {
- if(eventCode == 0) {
- errn = decodeNBitUnsignedInteger(stream, 8, &(uint32));
- v2gLFA_EVSEFinePositioningSetupParametersType->SignalPulseDuration = (uint8_t)(uint32 + 0);
- } 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({urn:iso:15118:2:2016:MsgDataTypes}SignalPulseDuration) ? */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(eventCode == 0) {
- grammarID = 1587;
- } else {
- errn = EXI_DEVIANT_SUPPORT_NOT_DEPLOYED; /* or also typecast and nillable */
- }
- }
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 1597:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorOrder), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SignalPulseDuration)] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gLFA_EVSEFinePositioningSetupParametersType->SensorOrder.arrayLen < v2gLFA_EVSEFinePositioningSetupParametersType_SensorOrder_ARRAY_SIZE) {
- /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(errn == 0) {
- if(eventCode == 0) {
- errn = decodeNBitUnsignedInteger(stream, 8, &(uint32));
- v2gLFA_EVSEFinePositioningSetupParametersType->SensorOrder.array[v2gLFA_EVSEFinePositioningSetupParametersType->SensorOrder.arrayLen] = (uint8_t)(uint32 + 0);
- v2gLFA_EVSEFinePositioningSetupParametersType->SensorOrder.arrayLen++;
- } else {
- /* Second level event (e.g., xsi:type, xsi:nil, ...) */
- errn = EXI_UNSUPPORTED_EVENT_CODE_CHARACTERISTICS;
- }
- }
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- if(errn == 0) {
- /* valid EE for simple element START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorOrder) ? */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(eventCode == 0) {
- grammarID = 1598;
- } else {
- errn = EXI_DEVIANT_SUPPORT_NOT_DEPLOYED; /* or also typecast and nillable */
- }
- }
- break;
- case 1:
- /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(errn == 0) {
- if(eventCode == 0) {
- errn = decodeNBitUnsignedInteger(stream, 8, &(uint32));
- v2gLFA_EVSEFinePositioningSetupParametersType->SignalPulseDuration = (uint8_t)(uint32 + 0);
- } 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({urn:iso:15118:2:2016:MsgDataTypes}SignalPulseDuration) ? */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(eventCode == 0) {
- grammarID = 1587;
- } else {
- errn = EXI_DEVIANT_SUPPORT_NOT_DEPLOYED; /* or also typecast and nillable */
- }
- }
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 1598:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorOrder), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SignalPulseDuration)] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gLFA_EVSEFinePositioningSetupParametersType->SensorOrder.arrayLen < v2gLFA_EVSEFinePositioningSetupParametersType_SensorOrder_ARRAY_SIZE) {
- /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(errn == 0) {
- if(eventCode == 0) {
- errn = decodeNBitUnsignedInteger(stream, 8, &(uint32));
- v2gLFA_EVSEFinePositioningSetupParametersType->SensorOrder.array[v2gLFA_EVSEFinePositioningSetupParametersType->SensorOrder.arrayLen] = (uint8_t)(uint32 + 0);
- v2gLFA_EVSEFinePositioningSetupParametersType->SensorOrder.arrayLen++;
- } else {
- /* Second level event (e.g., xsi:type, xsi:nil, ...) */
- errn = EXI_UNSUPPORTED_EVENT_CODE_CHARACTERISTICS;
- }
- }
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- if(errn == 0) {
- /* valid EE for simple element START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorOrder) ? */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(eventCode == 0) {
- grammarID = 1599;
- } else {
- errn = EXI_DEVIANT_SUPPORT_NOT_DEPLOYED; /* or also typecast and nillable */
- }
- }
- break;
- case 1:
- /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(errn == 0) {
- if(eventCode == 0) {
- errn = decodeNBitUnsignedInteger(stream, 8, &(uint32));
- v2gLFA_EVSEFinePositioningSetupParametersType->SignalPulseDuration = (uint8_t)(uint32 + 0);
- } 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({urn:iso:15118:2:2016:MsgDataTypes}SignalPulseDuration) ? */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(eventCode == 0) {
- grammarID = 1587;
- } else {
- errn = EXI_DEVIANT_SUPPORT_NOT_DEPLOYED; /* or also typecast and nillable */
- }
- }
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 1599:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorOrder), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SignalPulseDuration)] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gLFA_EVSEFinePositioningSetupParametersType->SensorOrder.arrayLen < v2gLFA_EVSEFinePositioningSetupParametersType_SensorOrder_ARRAY_SIZE) {
- /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(errn == 0) {
- if(eventCode == 0) {
- errn = decodeNBitUnsignedInteger(stream, 8, &(uint32));
- v2gLFA_EVSEFinePositioningSetupParametersType->SensorOrder.array[v2gLFA_EVSEFinePositioningSetupParametersType->SensorOrder.arrayLen] = (uint8_t)(uint32 + 0);
- v2gLFA_EVSEFinePositioningSetupParametersType->SensorOrder.arrayLen++;
- } else {
- /* Second level event (e.g., xsi:type, xsi:nil, ...) */
- errn = EXI_UNSUPPORTED_EVENT_CODE_CHARACTERISTICS;
- }
- }
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- if(errn == 0) {
- /* valid EE for simple element START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorOrder) ? */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(eventCode == 0) {
- grammarID = 1600;
- } else {
- errn = EXI_DEVIANT_SUPPORT_NOT_DEPLOYED; /* or also typecast and nillable */
- }
- }
- break;
- case 1:
- /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(errn == 0) {
- if(eventCode == 0) {
- errn = decodeNBitUnsignedInteger(stream, 8, &(uint32));
- v2gLFA_EVSEFinePositioningSetupParametersType->SignalPulseDuration = (uint8_t)(uint32 + 0);
- } 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({urn:iso:15118:2:2016:MsgDataTypes}SignalPulseDuration) ? */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(eventCode == 0) {
- grammarID = 1587;
- } else {
- errn = EXI_DEVIANT_SUPPORT_NOT_DEPLOYED; /* or also typecast and nillable */
- }
- }
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 1600:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorOrder), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SignalPulseDuration)] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gLFA_EVSEFinePositioningSetupParametersType->SensorOrder.arrayLen < v2gLFA_EVSEFinePositioningSetupParametersType_SensorOrder_ARRAY_SIZE) {
- /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(errn == 0) {
- if(eventCode == 0) {
- errn = decodeNBitUnsignedInteger(stream, 8, &(uint32));
- v2gLFA_EVSEFinePositioningSetupParametersType->SensorOrder.array[v2gLFA_EVSEFinePositioningSetupParametersType->SensorOrder.arrayLen] = (uint8_t)(uint32 + 0);
- v2gLFA_EVSEFinePositioningSetupParametersType->SensorOrder.arrayLen++;
- } else {
- /* Second level event (e.g., xsi:type, xsi:nil, ...) */
- errn = EXI_UNSUPPORTED_EVENT_CODE_CHARACTERISTICS;
- }
- }
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- if(errn == 0) {
- /* valid EE for simple element START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorOrder) ? */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(eventCode == 0) {
- grammarID = 1601;
- } else {
- errn = EXI_DEVIANT_SUPPORT_NOT_DEPLOYED; /* or also typecast and nillable */
- }
- }
- break;
- case 1:
- /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(errn == 0) {
- if(eventCode == 0) {
- errn = decodeNBitUnsignedInteger(stream, 8, &(uint32));
- v2gLFA_EVSEFinePositioningSetupParametersType->SignalPulseDuration = (uint8_t)(uint32 + 0);
- } 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({urn:iso:15118:2:2016:MsgDataTypes}SignalPulseDuration) ? */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(eventCode == 0) {
- grammarID = 1587;
- } else {
- errn = EXI_DEVIANT_SUPPORT_NOT_DEPLOYED; /* or also typecast and nillable */
- }
- }
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 1601:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorOrder), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SignalPulseDuration)] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gLFA_EVSEFinePositioningSetupParametersType->SensorOrder.arrayLen < v2gLFA_EVSEFinePositioningSetupParametersType_SensorOrder_ARRAY_SIZE) {
- /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(errn == 0) {
- if(eventCode == 0) {
- errn = decodeNBitUnsignedInteger(stream, 8, &(uint32));
- v2gLFA_EVSEFinePositioningSetupParametersType->SensorOrder.array[v2gLFA_EVSEFinePositioningSetupParametersType->SensorOrder.arrayLen] = (uint8_t)(uint32 + 0);
- v2gLFA_EVSEFinePositioningSetupParametersType->SensorOrder.arrayLen++;
- } else {
- /* Second level event (e.g., xsi:type, xsi:nil, ...) */
- errn = EXI_UNSUPPORTED_EVENT_CODE_CHARACTERISTICS;
- }
- }
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- if(errn == 0) {
- /* valid EE for simple element START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorOrder) ? */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(eventCode == 0) {
- grammarID = 1602;
- } else {
- errn = EXI_DEVIANT_SUPPORT_NOT_DEPLOYED; /* or also typecast and nillable */
- }
- }
- break;
- case 1:
- /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(errn == 0) {
- if(eventCode == 0) {
- errn = decodeNBitUnsignedInteger(stream, 8, &(uint32));
- v2gLFA_EVSEFinePositioningSetupParametersType->SignalPulseDuration = (uint8_t)(uint32 + 0);
- } 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({urn:iso:15118:2:2016:MsgDataTypes}SignalPulseDuration) ? */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(eventCode == 0) {
- grammarID = 1587;
- } else {
- errn = EXI_DEVIANT_SUPPORT_NOT_DEPLOYED; /* or also typecast and nillable */
- }
- }
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 1602:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorOrder), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SignalPulseDuration)] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gLFA_EVSEFinePositioningSetupParametersType->SensorOrder.arrayLen < v2gLFA_EVSEFinePositioningSetupParametersType_SensorOrder_ARRAY_SIZE) {
- /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(errn == 0) {
- if(eventCode == 0) {
- errn = decodeNBitUnsignedInteger(stream, 8, &(uint32));
- v2gLFA_EVSEFinePositioningSetupParametersType->SensorOrder.array[v2gLFA_EVSEFinePositioningSetupParametersType->SensorOrder.arrayLen] = (uint8_t)(uint32 + 0);
- v2gLFA_EVSEFinePositioningSetupParametersType->SensorOrder.arrayLen++;
- } else {
- /* Second level event (e.g., xsi:type, xsi:nil, ...) */
- errn = EXI_UNSUPPORTED_EVENT_CODE_CHARACTERISTICS;
- }
- }
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- if(errn == 0) {
- /* valid EE for simple element START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorOrder) ? */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(eventCode == 0) {
- grammarID = 1603;
- } else {
- errn = EXI_DEVIANT_SUPPORT_NOT_DEPLOYED; /* or also typecast and nillable */
- }
- }
- break;
- case 1:
- /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(errn == 0) {
- if(eventCode == 0) {
- errn = decodeNBitUnsignedInteger(stream, 8, &(uint32));
- v2gLFA_EVSEFinePositioningSetupParametersType->SignalPulseDuration = (uint8_t)(uint32 + 0);
- } 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({urn:iso:15118:2:2016:MsgDataTypes}SignalPulseDuration) ? */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(eventCode == 0) {
- grammarID = 1587;
- } else {
- errn = EXI_DEVIANT_SUPPORT_NOT_DEPLOYED; /* or also typecast and nillable */
- }
- }
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 1603:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorOrder), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SignalPulseDuration)] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gLFA_EVSEFinePositioningSetupParametersType->SensorOrder.arrayLen < v2gLFA_EVSEFinePositioningSetupParametersType_SensorOrder_ARRAY_SIZE) {
- /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(errn == 0) {
- if(eventCode == 0) {
- errn = decodeNBitUnsignedInteger(stream, 8, &(uint32));
- v2gLFA_EVSEFinePositioningSetupParametersType->SensorOrder.array[v2gLFA_EVSEFinePositioningSetupParametersType->SensorOrder.arrayLen] = (uint8_t)(uint32 + 0);
- v2gLFA_EVSEFinePositioningSetupParametersType->SensorOrder.arrayLen++;
- } else {
- /* Second level event (e.g., xsi:type, xsi:nil, ...) */
- errn = EXI_UNSUPPORTED_EVENT_CODE_CHARACTERISTICS;
- }
- }
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- if(errn == 0) {
- /* valid EE for simple element START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorOrder) ? */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(eventCode == 0) {
- grammarID = 1604;
- } else {
- errn = EXI_DEVIANT_SUPPORT_NOT_DEPLOYED; /* or also typecast and nillable */
- }
- }
- break;
- case 1:
- /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(errn == 0) {
- if(eventCode == 0) {
- errn = decodeNBitUnsignedInteger(stream, 8, &(uint32));
- v2gLFA_EVSEFinePositioningSetupParametersType->SignalPulseDuration = (uint8_t)(uint32 + 0);
- } 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({urn:iso:15118:2:2016:MsgDataTypes}SignalPulseDuration) ? */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(eventCode == 0) {
- grammarID = 1587;
- } else {
- errn = EXI_DEVIANT_SUPPORT_NOT_DEPLOYED; /* or also typecast and nillable */
- }
- }
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 1604:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorOrder), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SignalPulseDuration)] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gLFA_EVSEFinePositioningSetupParametersType->SensorOrder.arrayLen < v2gLFA_EVSEFinePositioningSetupParametersType_SensorOrder_ARRAY_SIZE) {
- /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(errn == 0) {
- if(eventCode == 0) {
- errn = decodeNBitUnsignedInteger(stream, 8, &(uint32));
- v2gLFA_EVSEFinePositioningSetupParametersType->SensorOrder.array[v2gLFA_EVSEFinePositioningSetupParametersType->SensorOrder.arrayLen] = (uint8_t)(uint32 + 0);
- v2gLFA_EVSEFinePositioningSetupParametersType->SensorOrder.arrayLen++;
- } else {
- /* Second level event (e.g., xsi:type, xsi:nil, ...) */
- errn = EXI_UNSUPPORTED_EVENT_CODE_CHARACTERISTICS;
- }
- }
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- if(errn == 0) {
- /* valid EE for simple element START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorOrder) ? */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(eventCode == 0) {
- grammarID = 1605;
- } else {
- errn = EXI_DEVIANT_SUPPORT_NOT_DEPLOYED; /* or also typecast and nillable */
- }
- }
- break;
- case 1:
- /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(errn == 0) {
- if(eventCode == 0) {
- errn = decodeNBitUnsignedInteger(stream, 8, &(uint32));
- v2gLFA_EVSEFinePositioningSetupParametersType->SignalPulseDuration = (uint8_t)(uint32 + 0);
- } 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({urn:iso:15118:2:2016:MsgDataTypes}SignalPulseDuration) ? */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(eventCode == 0) {
- grammarID = 1587;
- } else {
- errn = EXI_DEVIANT_SUPPORT_NOT_DEPLOYED; /* or also typecast and nillable */
- }
- }
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 1605:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorOrder), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SignalPulseDuration)] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gLFA_EVSEFinePositioningSetupParametersType->SensorOrder.arrayLen < v2gLFA_EVSEFinePositioningSetupParametersType_SensorOrder_ARRAY_SIZE) {
- /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(errn == 0) {
- if(eventCode == 0) {
- errn = decodeNBitUnsignedInteger(stream, 8, &(uint32));
- v2gLFA_EVSEFinePositioningSetupParametersType->SensorOrder.array[v2gLFA_EVSEFinePositioningSetupParametersType->SensorOrder.arrayLen] = (uint8_t)(uint32 + 0);
- v2gLFA_EVSEFinePositioningSetupParametersType->SensorOrder.arrayLen++;
- } else {
- /* Second level event (e.g., xsi:type, xsi:nil, ...) */
- errn = EXI_UNSUPPORTED_EVENT_CODE_CHARACTERISTICS;
- }
- }
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- if(errn == 0) {
- /* valid EE for simple element START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorOrder) ? */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(eventCode == 0) {
- grammarID = 1606;
- } else {
- errn = EXI_DEVIANT_SUPPORT_NOT_DEPLOYED; /* or also typecast and nillable */
- }
- }
- break;
- case 1:
- /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(errn == 0) {
- if(eventCode == 0) {
- errn = decodeNBitUnsignedInteger(stream, 8, &(uint32));
- v2gLFA_EVSEFinePositioningSetupParametersType->SignalPulseDuration = (uint8_t)(uint32 + 0);
- } 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({urn:iso:15118:2:2016:MsgDataTypes}SignalPulseDuration) ? */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(eventCode == 0) {
- grammarID = 1587;
- } else {
- errn = EXI_DEVIANT_SUPPORT_NOT_DEPLOYED; /* or also typecast and nillable */
- }
- }
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 1606:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorOrder), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SignalPulseDuration)] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gLFA_EVSEFinePositioningSetupParametersType->SensorOrder.arrayLen < v2gLFA_EVSEFinePositioningSetupParametersType_SensorOrder_ARRAY_SIZE) {
- /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(errn == 0) {
- if(eventCode == 0) {
- errn = decodeNBitUnsignedInteger(stream, 8, &(uint32));
- v2gLFA_EVSEFinePositioningSetupParametersType->SensorOrder.array[v2gLFA_EVSEFinePositioningSetupParametersType->SensorOrder.arrayLen] = (uint8_t)(uint32 + 0);
- v2gLFA_EVSEFinePositioningSetupParametersType->SensorOrder.arrayLen++;
- } else {
- /* Second level event (e.g., xsi:type, xsi:nil, ...) */
- errn = EXI_UNSUPPORTED_EVENT_CODE_CHARACTERISTICS;
- }
- }
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- if(errn == 0) {
- /* valid EE for simple element START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorOrder) ? */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(eventCode == 0) {
- grammarID = 1607;
- } else {
- errn = EXI_DEVIANT_SUPPORT_NOT_DEPLOYED; /* or also typecast and nillable */
- }
- }
- break;
- case 1:
- /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(errn == 0) {
- if(eventCode == 0) {
- errn = decodeNBitUnsignedInteger(stream, 8, &(uint32));
- v2gLFA_EVSEFinePositioningSetupParametersType->SignalPulseDuration = (uint8_t)(uint32 + 0);
- } 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({urn:iso:15118:2:2016:MsgDataTypes}SignalPulseDuration) ? */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(eventCode == 0) {
- grammarID = 1587;
- } else {
- errn = EXI_DEVIANT_SUPPORT_NOT_DEPLOYED; /* or also typecast and nillable */
- }
- }
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 1607:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorOrder), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SignalPulseDuration)] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gLFA_EVSEFinePositioningSetupParametersType->SensorOrder.arrayLen < v2gLFA_EVSEFinePositioningSetupParametersType_SensorOrder_ARRAY_SIZE) {
- /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(errn == 0) {
- if(eventCode == 0) {
- errn = decodeNBitUnsignedInteger(stream, 8, &(uint32));
- v2gLFA_EVSEFinePositioningSetupParametersType->SensorOrder.array[v2gLFA_EVSEFinePositioningSetupParametersType->SensorOrder.arrayLen] = (uint8_t)(uint32 + 0);
- v2gLFA_EVSEFinePositioningSetupParametersType->SensorOrder.arrayLen++;
- } else {
- /* Second level event (e.g., xsi:type, xsi:nil, ...) */
- errn = EXI_UNSUPPORTED_EVENT_CODE_CHARACTERISTICS;
- }
- }
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- if(errn == 0) {
- /* valid EE for simple element START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorOrder) ? */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(eventCode == 0) {
- grammarID = 1608;
- } else {
- errn = EXI_DEVIANT_SUPPORT_NOT_DEPLOYED; /* or also typecast and nillable */
- }
- }
- break;
- case 1:
- /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(errn == 0) {
- if(eventCode == 0) {
- errn = decodeNBitUnsignedInteger(stream, 8, &(uint32));
- v2gLFA_EVSEFinePositioningSetupParametersType->SignalPulseDuration = (uint8_t)(uint32 + 0);
- } 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({urn:iso:15118:2:2016:MsgDataTypes}SignalPulseDuration) ? */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(eventCode == 0) {
- grammarID = 1587;
- } else {
- errn = EXI_DEVIANT_SUPPORT_NOT_DEPLOYED; /* or also typecast and nillable */
- }
- }
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 1608:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorOrder), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SignalPulseDuration)] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gLFA_EVSEFinePositioningSetupParametersType->SensorOrder.arrayLen < v2gLFA_EVSEFinePositioningSetupParametersType_SensorOrder_ARRAY_SIZE) {
- /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(errn == 0) {
- if(eventCode == 0) {
- errn = decodeNBitUnsignedInteger(stream, 8, &(uint32));
- v2gLFA_EVSEFinePositioningSetupParametersType->SensorOrder.array[v2gLFA_EVSEFinePositioningSetupParametersType->SensorOrder.arrayLen] = (uint8_t)(uint32 + 0);
- v2gLFA_EVSEFinePositioningSetupParametersType->SensorOrder.arrayLen++;
- } else {
- /* Second level event (e.g., xsi:type, xsi:nil, ...) */
- errn = EXI_UNSUPPORTED_EVENT_CODE_CHARACTERISTICS;
- }
- }
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- if(errn == 0) {
- /* valid EE for simple element START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorOrder) ? */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(eventCode == 0) {
- grammarID = 1609;
- } else {
- errn = EXI_DEVIANT_SUPPORT_NOT_DEPLOYED; /* or also typecast and nillable */
- }
- }
- break;
- case 1:
- /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(errn == 0) {
- if(eventCode == 0) {
- errn = decodeNBitUnsignedInteger(stream, 8, &(uint32));
- v2gLFA_EVSEFinePositioningSetupParametersType->SignalPulseDuration = (uint8_t)(uint32 + 0);
- } 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({urn:iso:15118:2:2016:MsgDataTypes}SignalPulseDuration) ? */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(eventCode == 0) {
- grammarID = 1587;
- } else {
- errn = EXI_DEVIANT_SUPPORT_NOT_DEPLOYED; /* or also typecast and nillable */
- }
- }
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 1609:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorOrder), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SignalPulseDuration)] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gLFA_EVSEFinePositioningSetupParametersType->SensorOrder.arrayLen < v2gLFA_EVSEFinePositioningSetupParametersType_SensorOrder_ARRAY_SIZE) {
- /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(errn == 0) {
- if(eventCode == 0) {
- errn = decodeNBitUnsignedInteger(stream, 8, &(uint32));
- v2gLFA_EVSEFinePositioningSetupParametersType->SensorOrder.array[v2gLFA_EVSEFinePositioningSetupParametersType->SensorOrder.arrayLen] = (uint8_t)(uint32 + 0);
- v2gLFA_EVSEFinePositioningSetupParametersType->SensorOrder.arrayLen++;
- } else {
- /* Second level event (e.g., xsi:type, xsi:nil, ...) */
- errn = EXI_UNSUPPORTED_EVENT_CODE_CHARACTERISTICS;
- }
- }
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- if(errn == 0) {
- /* valid EE for simple element START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorOrder) ? */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(eventCode == 0) {
- grammarID = 1610;
- } else {
- errn = EXI_DEVIANT_SUPPORT_NOT_DEPLOYED; /* or also typecast and nillable */
- }
- }
- break;
- case 1:
- /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(errn == 0) {
- if(eventCode == 0) {
- errn = decodeNBitUnsignedInteger(stream, 8, &(uint32));
- v2gLFA_EVSEFinePositioningSetupParametersType->SignalPulseDuration = (uint8_t)(uint32 + 0);
- } 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({urn:iso:15118:2:2016:MsgDataTypes}SignalPulseDuration) ? */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(eventCode == 0) {
- grammarID = 1587;
- } else {
- errn = EXI_DEVIANT_SUPPORT_NOT_DEPLOYED; /* or also typecast and nillable */
- }
- }
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 1610:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorOrder), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SignalPulseDuration)] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gLFA_EVSEFinePositioningSetupParametersType->SensorOrder.arrayLen < v2gLFA_EVSEFinePositioningSetupParametersType_SensorOrder_ARRAY_SIZE) {
- /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(errn == 0) {
- if(eventCode == 0) {
- errn = decodeNBitUnsignedInteger(stream, 8, &(uint32));
- v2gLFA_EVSEFinePositioningSetupParametersType->SensorOrder.array[v2gLFA_EVSEFinePositioningSetupParametersType->SensorOrder.arrayLen] = (uint8_t)(uint32 + 0);
- v2gLFA_EVSEFinePositioningSetupParametersType->SensorOrder.arrayLen++;
- } else {
- /* Second level event (e.g., xsi:type, xsi:nil, ...) */
- errn = EXI_UNSUPPORTED_EVENT_CODE_CHARACTERISTICS;
- }
- }
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- if(errn == 0) {
- /* valid EE for simple element START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorOrder) ? */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(eventCode == 0) {
- grammarID = 1611;
- } else {
- errn = EXI_DEVIANT_SUPPORT_NOT_DEPLOYED; /* or also typecast and nillable */
- }
- }
- break;
- case 1:
- /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(errn == 0) {
- if(eventCode == 0) {
- errn = decodeNBitUnsignedInteger(stream, 8, &(uint32));
- v2gLFA_EVSEFinePositioningSetupParametersType->SignalPulseDuration = (uint8_t)(uint32 + 0);
- } 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({urn:iso:15118:2:2016:MsgDataTypes}SignalPulseDuration) ? */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(eventCode == 0) {
- grammarID = 1587;
- } else {
- errn = EXI_DEVIANT_SUPPORT_NOT_DEPLOYED; /* or also typecast and nillable */
- }
- }
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 1611:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorOrder), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SignalPulseDuration)] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gLFA_EVSEFinePositioningSetupParametersType->SensorOrder.arrayLen < v2gLFA_EVSEFinePositioningSetupParametersType_SensorOrder_ARRAY_SIZE) {
- /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(errn == 0) {
- if(eventCode == 0) {
- errn = decodeNBitUnsignedInteger(stream, 8, &(uint32));
- v2gLFA_EVSEFinePositioningSetupParametersType->SensorOrder.array[v2gLFA_EVSEFinePositioningSetupParametersType->SensorOrder.arrayLen] = (uint8_t)(uint32 + 0);
- v2gLFA_EVSEFinePositioningSetupParametersType->SensorOrder.arrayLen++;
- } else {
- /* Second level event (e.g., xsi:type, xsi:nil, ...) */
- errn = EXI_UNSUPPORTED_EVENT_CODE_CHARACTERISTICS;
- }
- }
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- if(errn == 0) {
- /* valid EE for simple element START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorOrder) ? */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(eventCode == 0) {
- grammarID = 1612;
- } else {
- errn = EXI_DEVIANT_SUPPORT_NOT_DEPLOYED; /* or also typecast and nillable */
- }
- }
- break;
- case 1:
- /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(errn == 0) {
- if(eventCode == 0) {
- errn = decodeNBitUnsignedInteger(stream, 8, &(uint32));
- v2gLFA_EVSEFinePositioningSetupParametersType->SignalPulseDuration = (uint8_t)(uint32 + 0);
- } 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({urn:iso:15118:2:2016:MsgDataTypes}SignalPulseDuration) ? */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(eventCode == 0) {
- grammarID = 1587;
- } else {
- errn = EXI_DEVIANT_SUPPORT_NOT_DEPLOYED; /* or also typecast and nillable */
- }
- }
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 1612:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorOrder), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SignalPulseDuration)] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gLFA_EVSEFinePositioningSetupParametersType->SensorOrder.arrayLen < v2gLFA_EVSEFinePositioningSetupParametersType_SensorOrder_ARRAY_SIZE) {
- /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(errn == 0) {
- if(eventCode == 0) {
- errn = decodeNBitUnsignedInteger(stream, 8, &(uint32));
- v2gLFA_EVSEFinePositioningSetupParametersType->SensorOrder.array[v2gLFA_EVSEFinePositioningSetupParametersType->SensorOrder.arrayLen] = (uint8_t)(uint32 + 0);
- v2gLFA_EVSEFinePositioningSetupParametersType->SensorOrder.arrayLen++;
- } else {
- /* Second level event (e.g., xsi:type, xsi:nil, ...) */
- errn = EXI_UNSUPPORTED_EVENT_CODE_CHARACTERISTICS;
- }
- }
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- if(errn == 0) {
- /* valid EE for simple element START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorOrder) ? */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(eventCode == 0) {
- grammarID = 1613;
- } else {
- errn = EXI_DEVIANT_SUPPORT_NOT_DEPLOYED; /* or also typecast and nillable */
- }
- }
- break;
- case 1:
- /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(errn == 0) {
- if(eventCode == 0) {
- errn = decodeNBitUnsignedInteger(stream, 8, &(uint32));
- v2gLFA_EVSEFinePositioningSetupParametersType->SignalPulseDuration = (uint8_t)(uint32 + 0);
- } 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({urn:iso:15118:2:2016:MsgDataTypes}SignalPulseDuration) ? */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(eventCode == 0) {
- grammarID = 1587;
- } else {
- errn = EXI_DEVIANT_SUPPORT_NOT_DEPLOYED; /* or also typecast and nillable */
- }
- }
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 1613:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorOrder), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SignalPulseDuration)] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gLFA_EVSEFinePositioningSetupParametersType->SensorOrder.arrayLen < v2gLFA_EVSEFinePositioningSetupParametersType_SensorOrder_ARRAY_SIZE) {
- /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(errn == 0) {
- if(eventCode == 0) {
- errn = decodeNBitUnsignedInteger(stream, 8, &(uint32));
- v2gLFA_EVSEFinePositioningSetupParametersType->SensorOrder.array[v2gLFA_EVSEFinePositioningSetupParametersType->SensorOrder.arrayLen] = (uint8_t)(uint32 + 0);
- v2gLFA_EVSEFinePositioningSetupParametersType->SensorOrder.arrayLen++;
- } else {
- /* Second level event (e.g., xsi:type, xsi:nil, ...) */
- errn = EXI_UNSUPPORTED_EVENT_CODE_CHARACTERISTICS;
- }
- }
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- if(errn == 0) {
- /* valid EE for simple element START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorOrder) ? */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(eventCode == 0) {
- grammarID = 1614;
- } else {
- errn = EXI_DEVIANT_SUPPORT_NOT_DEPLOYED; /* or also typecast and nillable */
- }
- }
- break;
- case 1:
- /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(errn == 0) {
- if(eventCode == 0) {
- errn = decodeNBitUnsignedInteger(stream, 8, &(uint32));
- v2gLFA_EVSEFinePositioningSetupParametersType->SignalPulseDuration = (uint8_t)(uint32 + 0);
- } 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({urn:iso:15118:2:2016:MsgDataTypes}SignalPulseDuration) ? */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(eventCode == 0) {
- grammarID = 1587;
- } else {
- errn = EXI_DEVIANT_SUPPORT_NOT_DEPLOYED; /* or also typecast and nillable */
- }
- }
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 1614:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorOrder), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SignalPulseDuration)] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gLFA_EVSEFinePositioningSetupParametersType->SensorOrder.arrayLen < v2gLFA_EVSEFinePositioningSetupParametersType_SensorOrder_ARRAY_SIZE) {
- /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(errn == 0) {
- if(eventCode == 0) {
- errn = decodeNBitUnsignedInteger(stream, 8, &(uint32));
- v2gLFA_EVSEFinePositioningSetupParametersType->SensorOrder.array[v2gLFA_EVSEFinePositioningSetupParametersType->SensorOrder.arrayLen] = (uint8_t)(uint32 + 0);
- v2gLFA_EVSEFinePositioningSetupParametersType->SensorOrder.arrayLen++;
- } else {
- /* Second level event (e.g., xsi:type, xsi:nil, ...) */
- errn = EXI_UNSUPPORTED_EVENT_CODE_CHARACTERISTICS;
- }
- }
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- if(errn == 0) {
- /* valid EE for simple element START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorOrder) ? */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(eventCode == 0) {
- grammarID = 1615;
- } else {
- errn = EXI_DEVIANT_SUPPORT_NOT_DEPLOYED; /* or also typecast and nillable */
- }
- }
- break;
- case 1:
- /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(errn == 0) {
- if(eventCode == 0) {
- errn = decodeNBitUnsignedInteger(stream, 8, &(uint32));
- v2gLFA_EVSEFinePositioningSetupParametersType->SignalPulseDuration = (uint8_t)(uint32 + 0);
- } 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({urn:iso:15118:2:2016:MsgDataTypes}SignalPulseDuration) ? */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(eventCode == 0) {
- grammarID = 1587;
- } else {
- errn = EXI_DEVIANT_SUPPORT_NOT_DEPLOYED; /* or also typecast and nillable */
- }
- }
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 1615:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorOrder), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SignalPulseDuration)] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gLFA_EVSEFinePositioningSetupParametersType->SensorOrder.arrayLen < v2gLFA_EVSEFinePositioningSetupParametersType_SensorOrder_ARRAY_SIZE) {
- /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(errn == 0) {
- if(eventCode == 0) {
- errn = decodeNBitUnsignedInteger(stream, 8, &(uint32));
- v2gLFA_EVSEFinePositioningSetupParametersType->SensorOrder.array[v2gLFA_EVSEFinePositioningSetupParametersType->SensorOrder.arrayLen] = (uint8_t)(uint32 + 0);
- v2gLFA_EVSEFinePositioningSetupParametersType->SensorOrder.arrayLen++;
- } else {
- /* Second level event (e.g., xsi:type, xsi:nil, ...) */
- errn = EXI_UNSUPPORTED_EVENT_CODE_CHARACTERISTICS;
- }
- }
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- if(errn == 0) {
- /* valid EE for simple element START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorOrder) ? */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(eventCode == 0) {
- grammarID = 1616;
- } else {
- errn = EXI_DEVIANT_SUPPORT_NOT_DEPLOYED; /* or also typecast and nillable */
- }
- }
- break;
- case 1:
- /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(errn == 0) {
- if(eventCode == 0) {
- errn = decodeNBitUnsignedInteger(stream, 8, &(uint32));
- v2gLFA_EVSEFinePositioningSetupParametersType->SignalPulseDuration = (uint8_t)(uint32 + 0);
- } 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({urn:iso:15118:2:2016:MsgDataTypes}SignalPulseDuration) ? */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(eventCode == 0) {
- grammarID = 1587;
- } else {
- errn = EXI_DEVIANT_SUPPORT_NOT_DEPLOYED; /* or also typecast and nillable */
- }
- }
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 1616:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorOrder), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SignalPulseDuration)] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gLFA_EVSEFinePositioningSetupParametersType->SensorOrder.arrayLen < v2gLFA_EVSEFinePositioningSetupParametersType_SensorOrder_ARRAY_SIZE) {
- /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(errn == 0) {
- if(eventCode == 0) {
- errn = decodeNBitUnsignedInteger(stream, 8, &(uint32));
- v2gLFA_EVSEFinePositioningSetupParametersType->SensorOrder.array[v2gLFA_EVSEFinePositioningSetupParametersType->SensorOrder.arrayLen] = (uint8_t)(uint32 + 0);
- v2gLFA_EVSEFinePositioningSetupParametersType->SensorOrder.arrayLen++;
- } else {
- /* Second level event (e.g., xsi:type, xsi:nil, ...) */
- errn = EXI_UNSUPPORTED_EVENT_CODE_CHARACTERISTICS;
- }
- }
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- if(errn == 0) {
- /* valid EE for simple element START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorOrder) ? */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(eventCode == 0) {
- grammarID = 1617;
- } else {
- errn = EXI_DEVIANT_SUPPORT_NOT_DEPLOYED; /* or also typecast and nillable */
- }
- }
- break;
- case 1:
- /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(errn == 0) {
- if(eventCode == 0) {
- errn = decodeNBitUnsignedInteger(stream, 8, &(uint32));
- v2gLFA_EVSEFinePositioningSetupParametersType->SignalPulseDuration = (uint8_t)(uint32 + 0);
- } 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({urn:iso:15118:2:2016:MsgDataTypes}SignalPulseDuration) ? */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(eventCode == 0) {
- grammarID = 1587;
- } else {
- errn = EXI_DEVIANT_SUPPORT_NOT_DEPLOYED; /* or also typecast and nillable */
- }
- }
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 1617:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorOrder), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SignalPulseDuration)] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gLFA_EVSEFinePositioningSetupParametersType->SensorOrder.arrayLen < v2gLFA_EVSEFinePositioningSetupParametersType_SensorOrder_ARRAY_SIZE) {
- /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(errn == 0) {
- if(eventCode == 0) {
- errn = decodeNBitUnsignedInteger(stream, 8, &(uint32));
- v2gLFA_EVSEFinePositioningSetupParametersType->SensorOrder.array[v2gLFA_EVSEFinePositioningSetupParametersType->SensorOrder.arrayLen] = (uint8_t)(uint32 + 0);
- v2gLFA_EVSEFinePositioningSetupParametersType->SensorOrder.arrayLen++;
- } else {
- /* Second level event (e.g., xsi:type, xsi:nil, ...) */
- errn = EXI_UNSUPPORTED_EVENT_CODE_CHARACTERISTICS;
- }
- }
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- if(errn == 0) {
- /* valid EE for simple element START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorOrder) ? */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(eventCode == 0) {
- grammarID = 1618;
- } else {
- errn = EXI_DEVIANT_SUPPORT_NOT_DEPLOYED; /* or also typecast and nillable */
- }
- }
- break;
- case 1:
- /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(errn == 0) {
- if(eventCode == 0) {
- errn = decodeNBitUnsignedInteger(stream, 8, &(uint32));
- v2gLFA_EVSEFinePositioningSetupParametersType->SignalPulseDuration = (uint8_t)(uint32 + 0);
- } 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({urn:iso:15118:2:2016:MsgDataTypes}SignalPulseDuration) ? */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(eventCode == 0) {
- grammarID = 1587;
- } else {
- errn = EXI_DEVIANT_SUPPORT_NOT_DEPLOYED; /* or also typecast and nillable */
- }
- }
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 1618:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorOrder), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SignalPulseDuration)] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gLFA_EVSEFinePositioningSetupParametersType->SensorOrder.arrayLen < v2gLFA_EVSEFinePositioningSetupParametersType_SensorOrder_ARRAY_SIZE) {
- /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(errn == 0) {
- if(eventCode == 0) {
- errn = decodeNBitUnsignedInteger(stream, 8, &(uint32));
- v2gLFA_EVSEFinePositioningSetupParametersType->SensorOrder.array[v2gLFA_EVSEFinePositioningSetupParametersType->SensorOrder.arrayLen] = (uint8_t)(uint32 + 0);
- v2gLFA_EVSEFinePositioningSetupParametersType->SensorOrder.arrayLen++;
- } else {
- /* Second level event (e.g., xsi:type, xsi:nil, ...) */
- errn = EXI_UNSUPPORTED_EVENT_CODE_CHARACTERISTICS;
- }
- }
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- if(errn == 0) {
- /* valid EE for simple element START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorOrder) ? */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(eventCode == 0) {
- grammarID = 1619;
- } else {
- errn = EXI_DEVIANT_SUPPORT_NOT_DEPLOYED; /* or also typecast and nillable */
- }
- }
- break;
- case 1:
- /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(errn == 0) {
- if(eventCode == 0) {
- errn = decodeNBitUnsignedInteger(stream, 8, &(uint32));
- v2gLFA_EVSEFinePositioningSetupParametersType->SignalPulseDuration = (uint8_t)(uint32 + 0);
- } 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({urn:iso:15118:2:2016:MsgDataTypes}SignalPulseDuration) ? */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(eventCode == 0) {
- grammarID = 1587;
- } else {
- errn = EXI_DEVIANT_SUPPORT_NOT_DEPLOYED; /* or also typecast and nillable */
- }
- }
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 1619:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorOrder), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SignalPulseDuration)] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gLFA_EVSEFinePositioningSetupParametersType->SensorOrder.arrayLen < v2gLFA_EVSEFinePositioningSetupParametersType_SensorOrder_ARRAY_SIZE) {
- /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(errn == 0) {
- if(eventCode == 0) {
- errn = decodeNBitUnsignedInteger(stream, 8, &(uint32));
- v2gLFA_EVSEFinePositioningSetupParametersType->SensorOrder.array[v2gLFA_EVSEFinePositioningSetupParametersType->SensorOrder.arrayLen] = (uint8_t)(uint32 + 0);
- v2gLFA_EVSEFinePositioningSetupParametersType->SensorOrder.arrayLen++;
- } else {
- /* Second level event (e.g., xsi:type, xsi:nil, ...) */
- errn = EXI_UNSUPPORTED_EVENT_CODE_CHARACTERISTICS;
- }
- }
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- if(errn == 0) {
- /* valid EE for simple element START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorOrder) ? */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(eventCode == 0) {
- grammarID = 1620;
- } else {
- errn = EXI_DEVIANT_SUPPORT_NOT_DEPLOYED; /* or also typecast and nillable */
- }
- }
- break;
- case 1:
- /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(errn == 0) {
- if(eventCode == 0) {
- errn = decodeNBitUnsignedInteger(stream, 8, &(uint32));
- v2gLFA_EVSEFinePositioningSetupParametersType->SignalPulseDuration = (uint8_t)(uint32 + 0);
- } 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({urn:iso:15118:2:2016:MsgDataTypes}SignalPulseDuration) ? */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(eventCode == 0) {
- grammarID = 1587;
- } else {
- errn = EXI_DEVIANT_SUPPORT_NOT_DEPLOYED; /* or also typecast and nillable */
- }
- }
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 1620:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorOrder), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SignalPulseDuration)] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gLFA_EVSEFinePositioningSetupParametersType->SensorOrder.arrayLen < v2gLFA_EVSEFinePositioningSetupParametersType_SensorOrder_ARRAY_SIZE) {
- /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(errn == 0) {
- if(eventCode == 0) {
- errn = decodeNBitUnsignedInteger(stream, 8, &(uint32));
- v2gLFA_EVSEFinePositioningSetupParametersType->SensorOrder.array[v2gLFA_EVSEFinePositioningSetupParametersType->SensorOrder.arrayLen] = (uint8_t)(uint32 + 0);
- v2gLFA_EVSEFinePositioningSetupParametersType->SensorOrder.arrayLen++;
- } else {
- /* Second level event (e.g., xsi:type, xsi:nil, ...) */
- errn = EXI_UNSUPPORTED_EVENT_CODE_CHARACTERISTICS;
- }
- }
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- if(errn == 0) {
- /* valid EE for simple element START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorOrder) ? */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(eventCode == 0) {
- grammarID = 1621;
- } else {
- errn = EXI_DEVIANT_SUPPORT_NOT_DEPLOYED; /* or also typecast and nillable */
- }
- }
- break;
- case 1:
- /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(errn == 0) {
- if(eventCode == 0) {
- errn = decodeNBitUnsignedInteger(stream, 8, &(uint32));
- v2gLFA_EVSEFinePositioningSetupParametersType->SignalPulseDuration = (uint8_t)(uint32 + 0);
- } 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({urn:iso:15118:2:2016:MsgDataTypes}SignalPulseDuration) ? */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(eventCode == 0) {
- grammarID = 1587;
- } else {
- errn = EXI_DEVIANT_SUPPORT_NOT_DEPLOYED; /* or also typecast and nillable */
- }
- }
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 1621:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorOrder), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SignalPulseDuration)] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gLFA_EVSEFinePositioningSetupParametersType->SensorOrder.arrayLen < v2gLFA_EVSEFinePositioningSetupParametersType_SensorOrder_ARRAY_SIZE) {
- /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(errn == 0) {
- if(eventCode == 0) {
- errn = decodeNBitUnsignedInteger(stream, 8, &(uint32));
- v2gLFA_EVSEFinePositioningSetupParametersType->SensorOrder.array[v2gLFA_EVSEFinePositioningSetupParametersType->SensorOrder.arrayLen] = (uint8_t)(uint32 + 0);
- v2gLFA_EVSEFinePositioningSetupParametersType->SensorOrder.arrayLen++;
- } else {
- /* Second level event (e.g., xsi:type, xsi:nil, ...) */
- errn = EXI_UNSUPPORTED_EVENT_CODE_CHARACTERISTICS;
- }
- }
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- if(errn == 0) {
- /* valid EE for simple element START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorOrder) ? */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(eventCode == 0) {
- grammarID = 1622;
- } else {
- errn = EXI_DEVIANT_SUPPORT_NOT_DEPLOYED; /* or also typecast and nillable */
- }
- }
- break;
- case 1:
- /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(errn == 0) {
- if(eventCode == 0) {
- errn = decodeNBitUnsignedInteger(stream, 8, &(uint32));
- v2gLFA_EVSEFinePositioningSetupParametersType->SignalPulseDuration = (uint8_t)(uint32 + 0);
- } 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({urn:iso:15118:2:2016:MsgDataTypes}SignalPulseDuration) ? */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(eventCode == 0) {
- grammarID = 1587;
- } else {
- errn = EXI_DEVIANT_SUPPORT_NOT_DEPLOYED; /* or also typecast and nillable */
- }
- }
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 1622:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorOrder), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SignalPulseDuration)] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gLFA_EVSEFinePositioningSetupParametersType->SensorOrder.arrayLen < v2gLFA_EVSEFinePositioningSetupParametersType_SensorOrder_ARRAY_SIZE) {
- /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(errn == 0) {
- if(eventCode == 0) {
- errn = decodeNBitUnsignedInteger(stream, 8, &(uint32));
- v2gLFA_EVSEFinePositioningSetupParametersType->SensorOrder.array[v2gLFA_EVSEFinePositioningSetupParametersType->SensorOrder.arrayLen] = (uint8_t)(uint32 + 0);
- v2gLFA_EVSEFinePositioningSetupParametersType->SensorOrder.arrayLen++;
- } else {
- /* Second level event (e.g., xsi:type, xsi:nil, ...) */
- errn = EXI_UNSUPPORTED_EVENT_CODE_CHARACTERISTICS;
- }
- }
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- if(errn == 0) {
- /* valid EE for simple element START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorOrder) ? */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(eventCode == 0) {
- grammarID = 1623;
- } else {
- errn = EXI_DEVIANT_SUPPORT_NOT_DEPLOYED; /* or also typecast and nillable */
- }
- }
- break;
- case 1:
- /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(errn == 0) {
- if(eventCode == 0) {
- errn = decodeNBitUnsignedInteger(stream, 8, &(uint32));
- v2gLFA_EVSEFinePositioningSetupParametersType->SignalPulseDuration = (uint8_t)(uint32 + 0);
- } 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({urn:iso:15118:2:2016:MsgDataTypes}SignalPulseDuration) ? */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(eventCode == 0) {
- grammarID = 1587;
- } else {
- errn = EXI_DEVIANT_SUPPORT_NOT_DEPLOYED; /* or also typecast and nillable */
- }
- }
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 1623:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorOrder), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SignalPulseDuration)] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gLFA_EVSEFinePositioningSetupParametersType->SensorOrder.arrayLen < v2gLFA_EVSEFinePositioningSetupParametersType_SensorOrder_ARRAY_SIZE) {
- /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(errn == 0) {
- if(eventCode == 0) {
- errn = decodeNBitUnsignedInteger(stream, 8, &(uint32));
- v2gLFA_EVSEFinePositioningSetupParametersType->SensorOrder.array[v2gLFA_EVSEFinePositioningSetupParametersType->SensorOrder.arrayLen] = (uint8_t)(uint32 + 0);
- v2gLFA_EVSEFinePositioningSetupParametersType->SensorOrder.arrayLen++;
- } else {
- /* Second level event (e.g., xsi:type, xsi:nil, ...) */
- errn = EXI_UNSUPPORTED_EVENT_CODE_CHARACTERISTICS;
- }
- }
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- if(errn == 0) {
- /* valid EE for simple element START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorOrder) ? */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(eventCode == 0) {
- grammarID = 1624;
- } else {
- errn = EXI_DEVIANT_SUPPORT_NOT_DEPLOYED; /* or also typecast and nillable */
- }
- }
- break;
- case 1:
- /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(errn == 0) {
- if(eventCode == 0) {
- errn = decodeNBitUnsignedInteger(stream, 8, &(uint32));
- v2gLFA_EVSEFinePositioningSetupParametersType->SignalPulseDuration = (uint8_t)(uint32 + 0);
- } 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({urn:iso:15118:2:2016:MsgDataTypes}SignalPulseDuration) ? */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(eventCode == 0) {
- grammarID = 1587;
- } else {
- errn = EXI_DEVIANT_SUPPORT_NOT_DEPLOYED; /* or also typecast and nillable */
- }
- }
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 1624:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorOrder), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SignalPulseDuration)] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gLFA_EVSEFinePositioningSetupParametersType->SensorOrder.arrayLen < v2gLFA_EVSEFinePositioningSetupParametersType_SensorOrder_ARRAY_SIZE) {
- /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(errn == 0) {
- if(eventCode == 0) {
- errn = decodeNBitUnsignedInteger(stream, 8, &(uint32));
- v2gLFA_EVSEFinePositioningSetupParametersType->SensorOrder.array[v2gLFA_EVSEFinePositioningSetupParametersType->SensorOrder.arrayLen] = (uint8_t)(uint32 + 0);
- v2gLFA_EVSEFinePositioningSetupParametersType->SensorOrder.arrayLen++;
- } else {
- /* Second level event (e.g., xsi:type, xsi:nil, ...) */
- errn = EXI_UNSUPPORTED_EVENT_CODE_CHARACTERISTICS;
- }
- }
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- if(errn == 0) {
- /* valid EE for simple element START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorOrder) ? */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(eventCode == 0) {
- grammarID = 1625;
- } else {
- errn = EXI_DEVIANT_SUPPORT_NOT_DEPLOYED; /* or also typecast and nillable */
- }
- }
- break;
- case 1:
- /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(errn == 0) {
- if(eventCode == 0) {
- errn = decodeNBitUnsignedInteger(stream, 8, &(uint32));
- v2gLFA_EVSEFinePositioningSetupParametersType->SignalPulseDuration = (uint8_t)(uint32 + 0);
- } 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({urn:iso:15118:2:2016:MsgDataTypes}SignalPulseDuration) ? */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(eventCode == 0) {
- grammarID = 1587;
- } else {
- errn = EXI_DEVIANT_SUPPORT_NOT_DEPLOYED; /* or also typecast and nillable */
- }
- }
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 1625:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorOrder), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SignalPulseDuration)] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gLFA_EVSEFinePositioningSetupParametersType->SensorOrder.arrayLen < v2gLFA_EVSEFinePositioningSetupParametersType_SensorOrder_ARRAY_SIZE) {
- /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(errn == 0) {
- if(eventCode == 0) {
- errn = decodeNBitUnsignedInteger(stream, 8, &(uint32));
- v2gLFA_EVSEFinePositioningSetupParametersType->SensorOrder.array[v2gLFA_EVSEFinePositioningSetupParametersType->SensorOrder.arrayLen] = (uint8_t)(uint32 + 0);
- v2gLFA_EVSEFinePositioningSetupParametersType->SensorOrder.arrayLen++;
- } else {
- /* Second level event (e.g., xsi:type, xsi:nil, ...) */
- errn = EXI_UNSUPPORTED_EVENT_CODE_CHARACTERISTICS;
- }
- }
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- if(errn == 0) {
- /* valid EE for simple element START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorOrder) ? */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(eventCode == 0) {
- grammarID = 1626;
- } else {
- errn = EXI_DEVIANT_SUPPORT_NOT_DEPLOYED; /* or also typecast and nillable */
- }
- }
- break;
- case 1:
- /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(errn == 0) {
- if(eventCode == 0) {
- errn = decodeNBitUnsignedInteger(stream, 8, &(uint32));
- v2gLFA_EVSEFinePositioningSetupParametersType->SignalPulseDuration = (uint8_t)(uint32 + 0);
- } 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({urn:iso:15118:2:2016:MsgDataTypes}SignalPulseDuration) ? */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(eventCode == 0) {
- grammarID = 1587;
- } else {
- errn = EXI_DEVIANT_SUPPORT_NOT_DEPLOYED; /* or also typecast and nillable */
- }
- }
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 1626:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorOrder), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SignalPulseDuration)] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gLFA_EVSEFinePositioningSetupParametersType->SensorOrder.arrayLen < v2gLFA_EVSEFinePositioningSetupParametersType_SensorOrder_ARRAY_SIZE) {
- /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(errn == 0) {
- if(eventCode == 0) {
- errn = decodeNBitUnsignedInteger(stream, 8, &(uint32));
- v2gLFA_EVSEFinePositioningSetupParametersType->SensorOrder.array[v2gLFA_EVSEFinePositioningSetupParametersType->SensorOrder.arrayLen] = (uint8_t)(uint32 + 0);
- v2gLFA_EVSEFinePositioningSetupParametersType->SensorOrder.arrayLen++;
- } else {
- /* Second level event (e.g., xsi:type, xsi:nil, ...) */
- errn = EXI_UNSUPPORTED_EVENT_CODE_CHARACTERISTICS;
- }
- }
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- if(errn == 0) {
- /* valid EE for simple element START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorOrder) ? */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(eventCode == 0) {
- grammarID = 1627;
- } else {
- errn = EXI_DEVIANT_SUPPORT_NOT_DEPLOYED; /* or also typecast and nillable */
- }
- }
- break;
- case 1:
- /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(errn == 0) {
- if(eventCode == 0) {
- errn = decodeNBitUnsignedInteger(stream, 8, &(uint32));
- v2gLFA_EVSEFinePositioningSetupParametersType->SignalPulseDuration = (uint8_t)(uint32 + 0);
- } 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({urn:iso:15118:2:2016:MsgDataTypes}SignalPulseDuration) ? */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(eventCode == 0) {
- grammarID = 1587;
- } else {
- errn = EXI_DEVIANT_SUPPORT_NOT_DEPLOYED; /* or also typecast and nillable */
- }
- }
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 1627:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorOrder), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SignalPulseDuration)] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gLFA_EVSEFinePositioningSetupParametersType->SensorOrder.arrayLen < v2gLFA_EVSEFinePositioningSetupParametersType_SensorOrder_ARRAY_SIZE) {
- /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(errn == 0) {
- if(eventCode == 0) {
- errn = decodeNBitUnsignedInteger(stream, 8, &(uint32));
- v2gLFA_EVSEFinePositioningSetupParametersType->SensorOrder.array[v2gLFA_EVSEFinePositioningSetupParametersType->SensorOrder.arrayLen] = (uint8_t)(uint32 + 0);
- v2gLFA_EVSEFinePositioningSetupParametersType->SensorOrder.arrayLen++;
- } else {
- /* Second level event (e.g., xsi:type, xsi:nil, ...) */
- errn = EXI_UNSUPPORTED_EVENT_CODE_CHARACTERISTICS;
- }
- }
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- if(errn == 0) {
- /* valid EE for simple element START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorOrder) ? */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(eventCode == 0) {
- grammarID = 1628;
- } else {
- errn = EXI_DEVIANT_SUPPORT_NOT_DEPLOYED; /* or also typecast and nillable */
- }
- }
- break;
- case 1:
- /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(errn == 0) {
- if(eventCode == 0) {
- errn = decodeNBitUnsignedInteger(stream, 8, &(uint32));
- v2gLFA_EVSEFinePositioningSetupParametersType->SignalPulseDuration = (uint8_t)(uint32 + 0);
- } 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({urn:iso:15118:2:2016:MsgDataTypes}SignalPulseDuration) ? */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(eventCode == 0) {
- grammarID = 1587;
- } else {
- errn = EXI_DEVIANT_SUPPORT_NOT_DEPLOYED; /* or also typecast and nillable */
- }
- }
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 1628:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorOrder), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SignalPulseDuration)] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gLFA_EVSEFinePositioningSetupParametersType->SensorOrder.arrayLen < v2gLFA_EVSEFinePositioningSetupParametersType_SensorOrder_ARRAY_SIZE) {
- /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(errn == 0) {
- if(eventCode == 0) {
- errn = decodeNBitUnsignedInteger(stream, 8, &(uint32));
- v2gLFA_EVSEFinePositioningSetupParametersType->SensorOrder.array[v2gLFA_EVSEFinePositioningSetupParametersType->SensorOrder.arrayLen] = (uint8_t)(uint32 + 0);
- v2gLFA_EVSEFinePositioningSetupParametersType->SensorOrder.arrayLen++;
- } else {
- /* Second level event (e.g., xsi:type, xsi:nil, ...) */
- errn = EXI_UNSUPPORTED_EVENT_CODE_CHARACTERISTICS;
- }
- }
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- if(errn == 0) {
- /* valid EE for simple element START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorOrder) ? */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(eventCode == 0) {
- grammarID = 1629;
- } else {
- errn = EXI_DEVIANT_SUPPORT_NOT_DEPLOYED; /* or also typecast and nillable */
- }
- }
- break;
- case 1:
- /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(errn == 0) {
- if(eventCode == 0) {
- errn = decodeNBitUnsignedInteger(stream, 8, &(uint32));
- v2gLFA_EVSEFinePositioningSetupParametersType->SignalPulseDuration = (uint8_t)(uint32 + 0);
- } 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({urn:iso:15118:2:2016:MsgDataTypes}SignalPulseDuration) ? */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(eventCode == 0) {
- grammarID = 1587;
- } else {
- errn = EXI_DEVIANT_SUPPORT_NOT_DEPLOYED; /* or also typecast and nillable */
- }
- }
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 1629:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorOrder), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SignalPulseDuration)] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gLFA_EVSEFinePositioningSetupParametersType->SensorOrder.arrayLen < v2gLFA_EVSEFinePositioningSetupParametersType_SensorOrder_ARRAY_SIZE) {
- /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(errn == 0) {
- if(eventCode == 0) {
- errn = decodeNBitUnsignedInteger(stream, 8, &(uint32));
- v2gLFA_EVSEFinePositioningSetupParametersType->SensorOrder.array[v2gLFA_EVSEFinePositioningSetupParametersType->SensorOrder.arrayLen] = (uint8_t)(uint32 + 0);
- v2gLFA_EVSEFinePositioningSetupParametersType->SensorOrder.arrayLen++;
- } else {
- /* Second level event (e.g., xsi:type, xsi:nil, ...) */
- errn = EXI_UNSUPPORTED_EVENT_CODE_CHARACTERISTICS;
- }
- }
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- if(errn == 0) {
- /* valid EE for simple element START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorOrder) ? */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(eventCode == 0) {
- grammarID = 1630;
- } else {
- errn = EXI_DEVIANT_SUPPORT_NOT_DEPLOYED; /* or also typecast and nillable */
- }
- }
- break;
- case 1:
- /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(errn == 0) {
- if(eventCode == 0) {
- errn = decodeNBitUnsignedInteger(stream, 8, &(uint32));
- v2gLFA_EVSEFinePositioningSetupParametersType->SignalPulseDuration = (uint8_t)(uint32 + 0);
- } 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({urn:iso:15118:2:2016:MsgDataTypes}SignalPulseDuration) ? */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(eventCode == 0) {
- grammarID = 1587;
- } else {
- errn = EXI_DEVIANT_SUPPORT_NOT_DEPLOYED; /* or also typecast and nillable */
- }
- }
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 1630:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorOrder), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SignalPulseDuration)] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gLFA_EVSEFinePositioningSetupParametersType->SensorOrder.arrayLen < v2gLFA_EVSEFinePositioningSetupParametersType_SensorOrder_ARRAY_SIZE) {
- /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(errn == 0) {
- if(eventCode == 0) {
- errn = decodeNBitUnsignedInteger(stream, 8, &(uint32));
- v2gLFA_EVSEFinePositioningSetupParametersType->SensorOrder.array[v2gLFA_EVSEFinePositioningSetupParametersType->SensorOrder.arrayLen] = (uint8_t)(uint32 + 0);
- v2gLFA_EVSEFinePositioningSetupParametersType->SensorOrder.arrayLen++;
- } else {
- /* Second level event (e.g., xsi:type, xsi:nil, ...) */
- errn = EXI_UNSUPPORTED_EVENT_CODE_CHARACTERISTICS;
- }
- }
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- if(errn == 0) {
- /* valid EE for simple element START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorOrder) ? */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(eventCode == 0) {
- grammarID = 1631;
- } else {
- errn = EXI_DEVIANT_SUPPORT_NOT_DEPLOYED; /* or also typecast and nillable */
- }
- }
- break;
- case 1:
- /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(errn == 0) {
- if(eventCode == 0) {
- errn = decodeNBitUnsignedInteger(stream, 8, &(uint32));
- v2gLFA_EVSEFinePositioningSetupParametersType->SignalPulseDuration = (uint8_t)(uint32 + 0);
- } 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({urn:iso:15118:2:2016:MsgDataTypes}SignalPulseDuration) ? */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(eventCode == 0) {
- grammarID = 1587;
- } else {
- errn = EXI_DEVIANT_SUPPORT_NOT_DEPLOYED; /* or also typecast and nillable */
- }
- }
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 1631:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorOrder), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SignalPulseDuration)] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gLFA_EVSEFinePositioningSetupParametersType->SensorOrder.arrayLen < v2gLFA_EVSEFinePositioningSetupParametersType_SensorOrder_ARRAY_SIZE) {
- /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(errn == 0) {
- if(eventCode == 0) {
- errn = decodeNBitUnsignedInteger(stream, 8, &(uint32));
- v2gLFA_EVSEFinePositioningSetupParametersType->SensorOrder.array[v2gLFA_EVSEFinePositioningSetupParametersType->SensorOrder.arrayLen] = (uint8_t)(uint32 + 0);
- v2gLFA_EVSEFinePositioningSetupParametersType->SensorOrder.arrayLen++;
- } else {
- /* Second level event (e.g., xsi:type, xsi:nil, ...) */
- errn = EXI_UNSUPPORTED_EVENT_CODE_CHARACTERISTICS;
- }
- }
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- if(errn == 0) {
- /* valid EE for simple element START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorOrder) ? */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(eventCode == 0) {
- grammarID = 1632;
- } else {
- errn = EXI_DEVIANT_SUPPORT_NOT_DEPLOYED; /* or also typecast and nillable */
- }
- }
- break;
- case 1:
- /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(errn == 0) {
- if(eventCode == 0) {
- errn = decodeNBitUnsignedInteger(stream, 8, &(uint32));
- v2gLFA_EVSEFinePositioningSetupParametersType->SignalPulseDuration = (uint8_t)(uint32 + 0);
- } 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({urn:iso:15118:2:2016:MsgDataTypes}SignalPulseDuration) ? */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(eventCode == 0) {
- grammarID = 1587;
- } else {
- errn = EXI_DEVIANT_SUPPORT_NOT_DEPLOYED; /* or also typecast and nillable */
- }
- }
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 1632:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorOrder), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SignalPulseDuration)] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gLFA_EVSEFinePositioningSetupParametersType->SensorOrder.arrayLen < v2gLFA_EVSEFinePositioningSetupParametersType_SensorOrder_ARRAY_SIZE) {
- /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(errn == 0) {
- if(eventCode == 0) {
- errn = decodeNBitUnsignedInteger(stream, 8, &(uint32));
- v2gLFA_EVSEFinePositioningSetupParametersType->SensorOrder.array[v2gLFA_EVSEFinePositioningSetupParametersType->SensorOrder.arrayLen] = (uint8_t)(uint32 + 0);
- v2gLFA_EVSEFinePositioningSetupParametersType->SensorOrder.arrayLen++;
- } else {
- /* Second level event (e.g., xsi:type, xsi:nil, ...) */
- errn = EXI_UNSUPPORTED_EVENT_CODE_CHARACTERISTICS;
- }
- }
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- if(errn == 0) {
- /* valid EE for simple element START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorOrder) ? */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(eventCode == 0) {
- grammarID = 1633;
- } else {
- errn = EXI_DEVIANT_SUPPORT_NOT_DEPLOYED; /* or also typecast and nillable */
- }
- }
- break;
- case 1:
- /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(errn == 0) {
- if(eventCode == 0) {
- errn = decodeNBitUnsignedInteger(stream, 8, &(uint32));
- v2gLFA_EVSEFinePositioningSetupParametersType->SignalPulseDuration = (uint8_t)(uint32 + 0);
- } 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({urn:iso:15118:2:2016:MsgDataTypes}SignalPulseDuration) ? */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(eventCode == 0) {
- grammarID = 1587;
- } else {
- errn = EXI_DEVIANT_SUPPORT_NOT_DEPLOYED; /* or also typecast and nillable */
- }
- }
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 1633:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorOrder), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SignalPulseDuration)] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gLFA_EVSEFinePositioningSetupParametersType->SensorOrder.arrayLen < v2gLFA_EVSEFinePositioningSetupParametersType_SensorOrder_ARRAY_SIZE) {
- /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(errn == 0) {
- if(eventCode == 0) {
- errn = decodeNBitUnsignedInteger(stream, 8, &(uint32));
- v2gLFA_EVSEFinePositioningSetupParametersType->SensorOrder.array[v2gLFA_EVSEFinePositioningSetupParametersType->SensorOrder.arrayLen] = (uint8_t)(uint32 + 0);
- v2gLFA_EVSEFinePositioningSetupParametersType->SensorOrder.arrayLen++;
- } else {
- /* Second level event (e.g., xsi:type, xsi:nil, ...) */
- errn = EXI_UNSUPPORTED_EVENT_CODE_CHARACTERISTICS;
- }
- }
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- if(errn == 0) {
- /* valid EE for simple element START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorOrder) ? */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(eventCode == 0) {
- grammarID = 1634;
- } else {
- errn = EXI_DEVIANT_SUPPORT_NOT_DEPLOYED; /* or also typecast and nillable */
- }
- }
- break;
- case 1:
- /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(errn == 0) {
- if(eventCode == 0) {
- errn = decodeNBitUnsignedInteger(stream, 8, &(uint32));
- v2gLFA_EVSEFinePositioningSetupParametersType->SignalPulseDuration = (uint8_t)(uint32 + 0);
- } 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({urn:iso:15118:2:2016:MsgDataTypes}SignalPulseDuration) ? */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(eventCode == 0) {
- grammarID = 1587;
- } else {
- errn = EXI_DEVIANT_SUPPORT_NOT_DEPLOYED; /* or also typecast and nillable */
- }
- }
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 1634:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorOrder), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SignalPulseDuration)] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gLFA_EVSEFinePositioningSetupParametersType->SensorOrder.arrayLen < v2gLFA_EVSEFinePositioningSetupParametersType_SensorOrder_ARRAY_SIZE) {
- /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(errn == 0) {
- if(eventCode == 0) {
- errn = decodeNBitUnsignedInteger(stream, 8, &(uint32));
- v2gLFA_EVSEFinePositioningSetupParametersType->SensorOrder.array[v2gLFA_EVSEFinePositioningSetupParametersType->SensorOrder.arrayLen] = (uint8_t)(uint32 + 0);
- v2gLFA_EVSEFinePositioningSetupParametersType->SensorOrder.arrayLen++;
- } else {
- /* Second level event (e.g., xsi:type, xsi:nil, ...) */
- errn = EXI_UNSUPPORTED_EVENT_CODE_CHARACTERISTICS;
- }
- }
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- if(errn == 0) {
- /* valid EE for simple element START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorOrder) ? */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(eventCode == 0) {
- grammarID = 1635;
- } else {
- errn = EXI_DEVIANT_SUPPORT_NOT_DEPLOYED; /* or also typecast and nillable */
- }
- }
- break;
- case 1:
- /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(errn == 0) {
- if(eventCode == 0) {
- errn = decodeNBitUnsignedInteger(stream, 8, &(uint32));
- v2gLFA_EVSEFinePositioningSetupParametersType->SignalPulseDuration = (uint8_t)(uint32 + 0);
- } 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({urn:iso:15118:2:2016:MsgDataTypes}SignalPulseDuration) ? */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(eventCode == 0) {
- grammarID = 1587;
- } else {
- errn = EXI_DEVIANT_SUPPORT_NOT_DEPLOYED; /* or also typecast and nillable */
- }
- }
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 1635:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorOrder), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SignalPulseDuration)] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gLFA_EVSEFinePositioningSetupParametersType->SensorOrder.arrayLen < v2gLFA_EVSEFinePositioningSetupParametersType_SensorOrder_ARRAY_SIZE) {
- /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(errn == 0) {
- if(eventCode == 0) {
- errn = decodeNBitUnsignedInteger(stream, 8, &(uint32));
- v2gLFA_EVSEFinePositioningSetupParametersType->SensorOrder.array[v2gLFA_EVSEFinePositioningSetupParametersType->SensorOrder.arrayLen] = (uint8_t)(uint32 + 0);
- v2gLFA_EVSEFinePositioningSetupParametersType->SensorOrder.arrayLen++;
- } else {
- /* Second level event (e.g., xsi:type, xsi:nil, ...) */
- errn = EXI_UNSUPPORTED_EVENT_CODE_CHARACTERISTICS;
- }
- }
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- if(errn == 0) {
- /* valid EE for simple element START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorOrder) ? */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(eventCode == 0) {
- grammarID = 1636;
- } else {
- errn = EXI_DEVIANT_SUPPORT_NOT_DEPLOYED; /* or also typecast and nillable */
- }
- }
- break;
- case 1:
- /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(errn == 0) {
- if(eventCode == 0) {
- errn = decodeNBitUnsignedInteger(stream, 8, &(uint32));
- v2gLFA_EVSEFinePositioningSetupParametersType->SignalPulseDuration = (uint8_t)(uint32 + 0);
- } 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({urn:iso:15118:2:2016:MsgDataTypes}SignalPulseDuration) ? */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(eventCode == 0) {
- grammarID = 1587;
- } else {
- errn = EXI_DEVIANT_SUPPORT_NOT_DEPLOYED; /* or also typecast and nillable */
- }
- }
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 1636:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorOrder), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SignalPulseDuration)] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gLFA_EVSEFinePositioningSetupParametersType->SensorOrder.arrayLen < v2gLFA_EVSEFinePositioningSetupParametersType_SensorOrder_ARRAY_SIZE) {
- /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(errn == 0) {
- if(eventCode == 0) {
- errn = decodeNBitUnsignedInteger(stream, 8, &(uint32));
- v2gLFA_EVSEFinePositioningSetupParametersType->SensorOrder.array[v2gLFA_EVSEFinePositioningSetupParametersType->SensorOrder.arrayLen] = (uint8_t)(uint32 + 0);
- v2gLFA_EVSEFinePositioningSetupParametersType->SensorOrder.arrayLen++;
- } else {
- /* Second level event (e.g., xsi:type, xsi:nil, ...) */
- errn = EXI_UNSUPPORTED_EVENT_CODE_CHARACTERISTICS;
- }
- }
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- if(errn == 0) {
- /* valid EE for simple element START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorOrder) ? */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(eventCode == 0) {
- grammarID = 1637;
- } else {
- errn = EXI_DEVIANT_SUPPORT_NOT_DEPLOYED; /* or also typecast and nillable */
- }
- }
- break;
- case 1:
- /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(errn == 0) {
- if(eventCode == 0) {
- errn = decodeNBitUnsignedInteger(stream, 8, &(uint32));
- v2gLFA_EVSEFinePositioningSetupParametersType->SignalPulseDuration = (uint8_t)(uint32 + 0);
- } 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({urn:iso:15118:2:2016:MsgDataTypes}SignalPulseDuration) ? */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(eventCode == 0) {
- grammarID = 1587;
- } else {
- errn = EXI_DEVIANT_SUPPORT_NOT_DEPLOYED; /* or also typecast and nillable */
- }
- }
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 1637:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorOrder), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SignalPulseDuration)] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gLFA_EVSEFinePositioningSetupParametersType->SensorOrder.arrayLen < v2gLFA_EVSEFinePositioningSetupParametersType_SensorOrder_ARRAY_SIZE) {
- /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(errn == 0) {
- if(eventCode == 0) {
- errn = decodeNBitUnsignedInteger(stream, 8, &(uint32));
- v2gLFA_EVSEFinePositioningSetupParametersType->SensorOrder.array[v2gLFA_EVSEFinePositioningSetupParametersType->SensorOrder.arrayLen] = (uint8_t)(uint32 + 0);
- v2gLFA_EVSEFinePositioningSetupParametersType->SensorOrder.arrayLen++;
- } else {
- /* Second level event (e.g., xsi:type, xsi:nil, ...) */
- errn = EXI_UNSUPPORTED_EVENT_CODE_CHARACTERISTICS;
- }
- }
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- if(errn == 0) {
- /* valid EE for simple element START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorOrder) ? */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(eventCode == 0) {
- grammarID = 1638;
- } else {
- errn = EXI_DEVIANT_SUPPORT_NOT_DEPLOYED; /* or also typecast and nillable */
- }
- }
- break;
- case 1:
- /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(errn == 0) {
- if(eventCode == 0) {
- errn = decodeNBitUnsignedInteger(stream, 8, &(uint32));
- v2gLFA_EVSEFinePositioningSetupParametersType->SignalPulseDuration = (uint8_t)(uint32 + 0);
- } 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({urn:iso:15118:2:2016:MsgDataTypes}SignalPulseDuration) ? */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(eventCode == 0) {
- grammarID = 1587;
- } else {
- errn = EXI_DEVIANT_SUPPORT_NOT_DEPLOYED; /* or also typecast and nillable */
- }
- }
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 1638:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorOrder), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SignalPulseDuration)] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gLFA_EVSEFinePositioningSetupParametersType->SensorOrder.arrayLen < v2gLFA_EVSEFinePositioningSetupParametersType_SensorOrder_ARRAY_SIZE) {
- /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(errn == 0) {
- if(eventCode == 0) {
- errn = decodeNBitUnsignedInteger(stream, 8, &(uint32));
- v2gLFA_EVSEFinePositioningSetupParametersType->SensorOrder.array[v2gLFA_EVSEFinePositioningSetupParametersType->SensorOrder.arrayLen] = (uint8_t)(uint32 + 0);
- v2gLFA_EVSEFinePositioningSetupParametersType->SensorOrder.arrayLen++;
- } else {
- /* Second level event (e.g., xsi:type, xsi:nil, ...) */
- errn = EXI_UNSUPPORTED_EVENT_CODE_CHARACTERISTICS;
- }
- }
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- if(errn == 0) {
- /* valid EE for simple element START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorOrder) ? */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(eventCode == 0) {
- grammarID = 1639;
- } else {
- errn = EXI_DEVIANT_SUPPORT_NOT_DEPLOYED; /* or also typecast and nillable */
- }
- }
- break;
- case 1:
- /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(errn == 0) {
- if(eventCode == 0) {
- errn = decodeNBitUnsignedInteger(stream, 8, &(uint32));
- v2gLFA_EVSEFinePositioningSetupParametersType->SignalPulseDuration = (uint8_t)(uint32 + 0);
- } 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({urn:iso:15118:2:2016:MsgDataTypes}SignalPulseDuration) ? */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(eventCode == 0) {
- grammarID = 1587;
- } else {
- errn = EXI_DEVIANT_SUPPORT_NOT_DEPLOYED; /* or also typecast and nillable */
- }
- }
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 1639:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorOrder), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SignalPulseDuration)] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gLFA_EVSEFinePositioningSetupParametersType->SensorOrder.arrayLen < v2gLFA_EVSEFinePositioningSetupParametersType_SensorOrder_ARRAY_SIZE) {
- /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(errn == 0) {
- if(eventCode == 0) {
- errn = decodeNBitUnsignedInteger(stream, 8, &(uint32));
- v2gLFA_EVSEFinePositioningSetupParametersType->SensorOrder.array[v2gLFA_EVSEFinePositioningSetupParametersType->SensorOrder.arrayLen] = (uint8_t)(uint32 + 0);
- v2gLFA_EVSEFinePositioningSetupParametersType->SensorOrder.arrayLen++;
- } else {
- /* Second level event (e.g., xsi:type, xsi:nil, ...) */
- errn = EXI_UNSUPPORTED_EVENT_CODE_CHARACTERISTICS;
- }
- }
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- if(errn == 0) {
- /* valid EE for simple element START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorOrder) ? */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(eventCode == 0) {
- grammarID = 1640;
- } else {
- errn = EXI_DEVIANT_SUPPORT_NOT_DEPLOYED; /* or also typecast and nillable */
- }
- }
- break;
- case 1:
- /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(errn == 0) {
- if(eventCode == 0) {
- errn = decodeNBitUnsignedInteger(stream, 8, &(uint32));
- v2gLFA_EVSEFinePositioningSetupParametersType->SignalPulseDuration = (uint8_t)(uint32 + 0);
- } 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({urn:iso:15118:2:2016:MsgDataTypes}SignalPulseDuration) ? */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(eventCode == 0) {
- grammarID = 1587;
- } else {
- errn = EXI_DEVIANT_SUPPORT_NOT_DEPLOYED; /* or also typecast and nillable */
- }
- }
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 1640:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorOrder), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SignalPulseDuration)] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gLFA_EVSEFinePositioningSetupParametersType->SensorOrder.arrayLen < v2gLFA_EVSEFinePositioningSetupParametersType_SensorOrder_ARRAY_SIZE) {
- /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(errn == 0) {
- if(eventCode == 0) {
- errn = decodeNBitUnsignedInteger(stream, 8, &(uint32));
- v2gLFA_EVSEFinePositioningSetupParametersType->SensorOrder.array[v2gLFA_EVSEFinePositioningSetupParametersType->SensorOrder.arrayLen] = (uint8_t)(uint32 + 0);
- v2gLFA_EVSEFinePositioningSetupParametersType->SensorOrder.arrayLen++;
- } else {
- /* Second level event (e.g., xsi:type, xsi:nil, ...) */
- errn = EXI_UNSUPPORTED_EVENT_CODE_CHARACTERISTICS;
- }
- }
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- if(errn == 0) {
- /* valid EE for simple element START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorOrder) ? */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(eventCode == 0) {
- grammarID = 1641;
- } else {
- errn = EXI_DEVIANT_SUPPORT_NOT_DEPLOYED; /* or also typecast and nillable */
- }
- }
- break;
- case 1:
- /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(errn == 0) {
- if(eventCode == 0) {
- errn = decodeNBitUnsignedInteger(stream, 8, &(uint32));
- v2gLFA_EVSEFinePositioningSetupParametersType->SignalPulseDuration = (uint8_t)(uint32 + 0);
- } 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({urn:iso:15118:2:2016:MsgDataTypes}SignalPulseDuration) ? */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(eventCode == 0) {
- grammarID = 1587;
- } else {
- errn = EXI_DEVIANT_SUPPORT_NOT_DEPLOYED; /* or also typecast and nillable */
- }
- }
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 1641:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorOrder), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SignalPulseDuration)] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gLFA_EVSEFinePositioningSetupParametersType->SensorOrder.arrayLen < v2gLFA_EVSEFinePositioningSetupParametersType_SensorOrder_ARRAY_SIZE) {
- /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(errn == 0) {
- if(eventCode == 0) {
- errn = decodeNBitUnsignedInteger(stream, 8, &(uint32));
- v2gLFA_EVSEFinePositioningSetupParametersType->SensorOrder.array[v2gLFA_EVSEFinePositioningSetupParametersType->SensorOrder.arrayLen] = (uint8_t)(uint32 + 0);
- v2gLFA_EVSEFinePositioningSetupParametersType->SensorOrder.arrayLen++;
- } else {
- /* Second level event (e.g., xsi:type, xsi:nil, ...) */
- errn = EXI_UNSUPPORTED_EVENT_CODE_CHARACTERISTICS;
- }
- }
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- if(errn == 0) {
- /* valid EE for simple element START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorOrder) ? */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(eventCode == 0) {
- grammarID = 1642;
- } else {
- errn = EXI_DEVIANT_SUPPORT_NOT_DEPLOYED; /* or also typecast and nillable */
- }
- }
- break;
- case 1:
- /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(errn == 0) {
- if(eventCode == 0) {
- errn = decodeNBitUnsignedInteger(stream, 8, &(uint32));
- v2gLFA_EVSEFinePositioningSetupParametersType->SignalPulseDuration = (uint8_t)(uint32 + 0);
- } 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({urn:iso:15118:2:2016:MsgDataTypes}SignalPulseDuration) ? */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(eventCode == 0) {
- grammarID = 1587;
- } else {
- errn = EXI_DEVIANT_SUPPORT_NOT_DEPLOYED; /* or also typecast and nillable */
- }
- }
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 1642:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorOrder), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SignalPulseDuration)] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gLFA_EVSEFinePositioningSetupParametersType->SensorOrder.arrayLen < v2gLFA_EVSEFinePositioningSetupParametersType_SensorOrder_ARRAY_SIZE) {
- /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(errn == 0) {
- if(eventCode == 0) {
- errn = decodeNBitUnsignedInteger(stream, 8, &(uint32));
- v2gLFA_EVSEFinePositioningSetupParametersType->SensorOrder.array[v2gLFA_EVSEFinePositioningSetupParametersType->SensorOrder.arrayLen] = (uint8_t)(uint32 + 0);
- v2gLFA_EVSEFinePositioningSetupParametersType->SensorOrder.arrayLen++;
- } else {
- /* Second level event (e.g., xsi:type, xsi:nil, ...) */
- errn = EXI_UNSUPPORTED_EVENT_CODE_CHARACTERISTICS;
- }
- }
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- if(errn == 0) {
- /* valid EE for simple element START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorOrder) ? */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(eventCode == 0) {
- grammarID = 1643;
- } else {
- errn = EXI_DEVIANT_SUPPORT_NOT_DEPLOYED; /* or also typecast and nillable */
- }
- }
- break;
- case 1:
- /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(errn == 0) {
- if(eventCode == 0) {
- errn = decodeNBitUnsignedInteger(stream, 8, &(uint32));
- v2gLFA_EVSEFinePositioningSetupParametersType->SignalPulseDuration = (uint8_t)(uint32 + 0);
- } 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({urn:iso:15118:2:2016:MsgDataTypes}SignalPulseDuration) ? */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(eventCode == 0) {
- grammarID = 1587;
- } else {
- errn = EXI_DEVIANT_SUPPORT_NOT_DEPLOYED; /* or also typecast and nillable */
- }
- }
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 1643:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorOrder), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SignalPulseDuration)] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gLFA_EVSEFinePositioningSetupParametersType->SensorOrder.arrayLen < v2gLFA_EVSEFinePositioningSetupParametersType_SensorOrder_ARRAY_SIZE) {
- /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(errn == 0) {
- if(eventCode == 0) {
- errn = decodeNBitUnsignedInteger(stream, 8, &(uint32));
- v2gLFA_EVSEFinePositioningSetupParametersType->SensorOrder.array[v2gLFA_EVSEFinePositioningSetupParametersType->SensorOrder.arrayLen] = (uint8_t)(uint32 + 0);
- v2gLFA_EVSEFinePositioningSetupParametersType->SensorOrder.arrayLen++;
- } else {
- /* Second level event (e.g., xsi:type, xsi:nil, ...) */
- errn = EXI_UNSUPPORTED_EVENT_CODE_CHARACTERISTICS;
- }
- }
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- if(errn == 0) {
- /* valid EE for simple element START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorOrder) ? */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(eventCode == 0) {
- grammarID = 1644;
- } else {
- errn = EXI_DEVIANT_SUPPORT_NOT_DEPLOYED; /* or also typecast and nillable */
- }
- }
- break;
- case 1:
- /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(errn == 0) {
- if(eventCode == 0) {
- errn = decodeNBitUnsignedInteger(stream, 8, &(uint32));
- v2gLFA_EVSEFinePositioningSetupParametersType->SignalPulseDuration = (uint8_t)(uint32 + 0);
- } 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({urn:iso:15118:2:2016:MsgDataTypes}SignalPulseDuration) ? */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(eventCode == 0) {
- grammarID = 1587;
- } else {
- errn = EXI_DEVIANT_SUPPORT_NOT_DEPLOYED; /* or also typecast and nillable */
- }
- }
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 1644:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorOrder), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SignalPulseDuration)] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gLFA_EVSEFinePositioningSetupParametersType->SensorOrder.arrayLen < v2gLFA_EVSEFinePositioningSetupParametersType_SensorOrder_ARRAY_SIZE) {
- /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(errn == 0) {
- if(eventCode == 0) {
- errn = decodeNBitUnsignedInteger(stream, 8, &(uint32));
- v2gLFA_EVSEFinePositioningSetupParametersType->SensorOrder.array[v2gLFA_EVSEFinePositioningSetupParametersType->SensorOrder.arrayLen] = (uint8_t)(uint32 + 0);
- v2gLFA_EVSEFinePositioningSetupParametersType->SensorOrder.arrayLen++;
- } else {
- /* Second level event (e.g., xsi:type, xsi:nil, ...) */
- errn = EXI_UNSUPPORTED_EVENT_CODE_CHARACTERISTICS;
- }
- }
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- if(errn == 0) {
- /* valid EE for simple element START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorOrder) ? */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(eventCode == 0) {
- grammarID = 1645;
- } else {
- errn = EXI_DEVIANT_SUPPORT_NOT_DEPLOYED; /* or also typecast and nillable */
- }
- }
- break;
- case 1:
- /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(errn == 0) {
- if(eventCode == 0) {
- errn = decodeNBitUnsignedInteger(stream, 8, &(uint32));
- v2gLFA_EVSEFinePositioningSetupParametersType->SignalPulseDuration = (uint8_t)(uint32 + 0);
- } 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({urn:iso:15118:2:2016:MsgDataTypes}SignalPulseDuration) ? */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(eventCode == 0) {
- grammarID = 1587;
- } else {
- errn = EXI_DEVIANT_SUPPORT_NOT_DEPLOYED; /* or also typecast and nillable */
- }
- }
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 1645:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorOrder), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SignalPulseDuration)] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gLFA_EVSEFinePositioningSetupParametersType->SensorOrder.arrayLen < v2gLFA_EVSEFinePositioningSetupParametersType_SensorOrder_ARRAY_SIZE) {
- /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(errn == 0) {
- if(eventCode == 0) {
- errn = decodeNBitUnsignedInteger(stream, 8, &(uint32));
- v2gLFA_EVSEFinePositioningSetupParametersType->SensorOrder.array[v2gLFA_EVSEFinePositioningSetupParametersType->SensorOrder.arrayLen] = (uint8_t)(uint32 + 0);
- v2gLFA_EVSEFinePositioningSetupParametersType->SensorOrder.arrayLen++;
- } else {
- /* Second level event (e.g., xsi:type, xsi:nil, ...) */
- errn = EXI_UNSUPPORTED_EVENT_CODE_CHARACTERISTICS;
- }
- }
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- if(errn == 0) {
- /* valid EE for simple element START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorOrder) ? */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(eventCode == 0) {
- grammarID = 1646;
- } else {
- errn = EXI_DEVIANT_SUPPORT_NOT_DEPLOYED; /* or also typecast and nillable */
- }
- }
- break;
- case 1:
- /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(errn == 0) {
- if(eventCode == 0) {
- errn = decodeNBitUnsignedInteger(stream, 8, &(uint32));
- v2gLFA_EVSEFinePositioningSetupParametersType->SignalPulseDuration = (uint8_t)(uint32 + 0);
- } 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({urn:iso:15118:2:2016:MsgDataTypes}SignalPulseDuration) ? */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(eventCode == 0) {
- grammarID = 1587;
- } else {
- errn = EXI_DEVIANT_SUPPORT_NOT_DEPLOYED; /* or also typecast and nillable */
- }
- }
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 1646:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorOrder), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SignalPulseDuration)] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gLFA_EVSEFinePositioningSetupParametersType->SensorOrder.arrayLen < v2gLFA_EVSEFinePositioningSetupParametersType_SensorOrder_ARRAY_SIZE) {
- /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(errn == 0) {
- if(eventCode == 0) {
- errn = decodeNBitUnsignedInteger(stream, 8, &(uint32));
- v2gLFA_EVSEFinePositioningSetupParametersType->SensorOrder.array[v2gLFA_EVSEFinePositioningSetupParametersType->SensorOrder.arrayLen] = (uint8_t)(uint32 + 0);
- v2gLFA_EVSEFinePositioningSetupParametersType->SensorOrder.arrayLen++;
- } else {
- /* Second level event (e.g., xsi:type, xsi:nil, ...) */
- errn = EXI_UNSUPPORTED_EVENT_CODE_CHARACTERISTICS;
- }
- }
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- if(errn == 0) {
- /* valid EE for simple element START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorOrder) ? */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(eventCode == 0) {
- grammarID = 1647;
- } else {
- errn = EXI_DEVIANT_SUPPORT_NOT_DEPLOYED; /* or also typecast and nillable */
- }
- }
- break;
- case 1:
- /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(errn == 0) {
- if(eventCode == 0) {
- errn = decodeNBitUnsignedInteger(stream, 8, &(uint32));
- v2gLFA_EVSEFinePositioningSetupParametersType->SignalPulseDuration = (uint8_t)(uint32 + 0);
- } 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({urn:iso:15118:2:2016:MsgDataTypes}SignalPulseDuration) ? */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(eventCode == 0) {
- grammarID = 1587;
- } else {
- errn = EXI_DEVIANT_SUPPORT_NOT_DEPLOYED; /* or also typecast and nillable */
- }
- }
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 1647:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorOrder), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SignalPulseDuration)] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gLFA_EVSEFinePositioningSetupParametersType->SensorOrder.arrayLen < v2gLFA_EVSEFinePositioningSetupParametersType_SensorOrder_ARRAY_SIZE) {
- /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(errn == 0) {
- if(eventCode == 0) {
- errn = decodeNBitUnsignedInteger(stream, 8, &(uint32));
- v2gLFA_EVSEFinePositioningSetupParametersType->SensorOrder.array[v2gLFA_EVSEFinePositioningSetupParametersType->SensorOrder.arrayLen] = (uint8_t)(uint32 + 0);
- v2gLFA_EVSEFinePositioningSetupParametersType->SensorOrder.arrayLen++;
- } else {
- /* Second level event (e.g., xsi:type, xsi:nil, ...) */
- errn = EXI_UNSUPPORTED_EVENT_CODE_CHARACTERISTICS;
- }
- }
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- if(errn == 0) {
- /* valid EE for simple element START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorOrder) ? */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(eventCode == 0) {
- grammarID = 1648;
- } else {
- errn = EXI_DEVIANT_SUPPORT_NOT_DEPLOYED; /* or also typecast and nillable */
- }
- }
- break;
- case 1:
- /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(errn == 0) {
- if(eventCode == 0) {
- errn = decodeNBitUnsignedInteger(stream, 8, &(uint32));
- v2gLFA_EVSEFinePositioningSetupParametersType->SignalPulseDuration = (uint8_t)(uint32 + 0);
- } 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({urn:iso:15118:2:2016:MsgDataTypes}SignalPulseDuration) ? */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(eventCode == 0) {
- grammarID = 1587;
- } else {
- errn = EXI_DEVIANT_SUPPORT_NOT_DEPLOYED; /* or also typecast and nillable */
- }
- }
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 1648:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorOrder), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SignalPulseDuration)] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gLFA_EVSEFinePositioningSetupParametersType->SensorOrder.arrayLen < v2gLFA_EVSEFinePositioningSetupParametersType_SensorOrder_ARRAY_SIZE) {
- /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(errn == 0) {
- if(eventCode == 0) {
- errn = decodeNBitUnsignedInteger(stream, 8, &(uint32));
- v2gLFA_EVSEFinePositioningSetupParametersType->SensorOrder.array[v2gLFA_EVSEFinePositioningSetupParametersType->SensorOrder.arrayLen] = (uint8_t)(uint32 + 0);
- v2gLFA_EVSEFinePositioningSetupParametersType->SensorOrder.arrayLen++;
- } else {
- /* Second level event (e.g., xsi:type, xsi:nil, ...) */
- errn = EXI_UNSUPPORTED_EVENT_CODE_CHARACTERISTICS;
- }
- }
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- if(errn == 0) {
- /* valid EE for simple element START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorOrder) ? */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(eventCode == 0) {
- grammarID = 1649;
- } else {
- errn = EXI_DEVIANT_SUPPORT_NOT_DEPLOYED; /* or also typecast and nillable */
- }
- }
- break;
- case 1:
- /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(errn == 0) {
- if(eventCode == 0) {
- errn = decodeNBitUnsignedInteger(stream, 8, &(uint32));
- v2gLFA_EVSEFinePositioningSetupParametersType->SignalPulseDuration = (uint8_t)(uint32 + 0);
- } 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({urn:iso:15118:2:2016:MsgDataTypes}SignalPulseDuration) ? */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(eventCode == 0) {
- grammarID = 1587;
- } else {
- errn = EXI_DEVIANT_SUPPORT_NOT_DEPLOYED; /* or also typecast and nillable */
- }
- }
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 1649:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorOrder), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SignalPulseDuration)] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gLFA_EVSEFinePositioningSetupParametersType->SensorOrder.arrayLen < v2gLFA_EVSEFinePositioningSetupParametersType_SensorOrder_ARRAY_SIZE) {
- /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(errn == 0) {
- if(eventCode == 0) {
- errn = decodeNBitUnsignedInteger(stream, 8, &(uint32));
- v2gLFA_EVSEFinePositioningSetupParametersType->SensorOrder.array[v2gLFA_EVSEFinePositioningSetupParametersType->SensorOrder.arrayLen] = (uint8_t)(uint32 + 0);
- v2gLFA_EVSEFinePositioningSetupParametersType->SensorOrder.arrayLen++;
- } else {
- /* Second level event (e.g., xsi:type, xsi:nil, ...) */
- errn = EXI_UNSUPPORTED_EVENT_CODE_CHARACTERISTICS;
- }
- }
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- if(errn == 0) {
- /* valid EE for simple element START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorOrder) ? */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(eventCode == 0) {
- grammarID = 1650;
- } else {
- errn = EXI_DEVIANT_SUPPORT_NOT_DEPLOYED; /* or also typecast and nillable */
- }
- }
- break;
- case 1:
- /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(errn == 0) {
- if(eventCode == 0) {
- errn = decodeNBitUnsignedInteger(stream, 8, &(uint32));
- v2gLFA_EVSEFinePositioningSetupParametersType->SignalPulseDuration = (uint8_t)(uint32 + 0);
- } 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({urn:iso:15118:2:2016:MsgDataTypes}SignalPulseDuration) ? */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(eventCode == 0) {
- grammarID = 1587;
- } else {
- errn = EXI_DEVIANT_SUPPORT_NOT_DEPLOYED; /* or also typecast and nillable */
- }
- }
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 1650:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorOrder), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SignalPulseDuration)] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gLFA_EVSEFinePositioningSetupParametersType->SensorOrder.arrayLen < v2gLFA_EVSEFinePositioningSetupParametersType_SensorOrder_ARRAY_SIZE) {
- /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(errn == 0) {
- if(eventCode == 0) {
- errn = decodeNBitUnsignedInteger(stream, 8, &(uint32));
- v2gLFA_EVSEFinePositioningSetupParametersType->SensorOrder.array[v2gLFA_EVSEFinePositioningSetupParametersType->SensorOrder.arrayLen] = (uint8_t)(uint32 + 0);
- v2gLFA_EVSEFinePositioningSetupParametersType->SensorOrder.arrayLen++;
- } else {
- /* Second level event (e.g., xsi:type, xsi:nil, ...) */
- errn = EXI_UNSUPPORTED_EVENT_CODE_CHARACTERISTICS;
- }
- }
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- if(errn == 0) {
- /* valid EE for simple element START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorOrder) ? */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(eventCode == 0) {
- grammarID = 1651;
- } else {
- errn = EXI_DEVIANT_SUPPORT_NOT_DEPLOYED; /* or also typecast and nillable */
- }
- }
- break;
- case 1:
- /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(errn == 0) {
- if(eventCode == 0) {
- errn = decodeNBitUnsignedInteger(stream, 8, &(uint32));
- v2gLFA_EVSEFinePositioningSetupParametersType->SignalPulseDuration = (uint8_t)(uint32 + 0);
- } 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({urn:iso:15118:2:2016:MsgDataTypes}SignalPulseDuration) ? */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(eventCode == 0) {
- grammarID = 1587;
- } else {
- errn = EXI_DEVIANT_SUPPORT_NOT_DEPLOYED; /* or also typecast and nillable */
- }
- }
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 1651:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorOrder), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SignalPulseDuration)] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gLFA_EVSEFinePositioningSetupParametersType->SensorOrder.arrayLen < v2gLFA_EVSEFinePositioningSetupParametersType_SensorOrder_ARRAY_SIZE) {
- /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(errn == 0) {
- if(eventCode == 0) {
- errn = decodeNBitUnsignedInteger(stream, 8, &(uint32));
- v2gLFA_EVSEFinePositioningSetupParametersType->SensorOrder.array[v2gLFA_EVSEFinePositioningSetupParametersType->SensorOrder.arrayLen] = (uint8_t)(uint32 + 0);
- v2gLFA_EVSEFinePositioningSetupParametersType->SensorOrder.arrayLen++;
- } else {
- /* Second level event (e.g., xsi:type, xsi:nil, ...) */
- errn = EXI_UNSUPPORTED_EVENT_CODE_CHARACTERISTICS;
- }
- }
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- if(errn == 0) {
- /* valid EE for simple element START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorOrder) ? */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(eventCode == 0) {
- grammarID = 1652;
- } else {
- errn = EXI_DEVIANT_SUPPORT_NOT_DEPLOYED; /* or also typecast and nillable */
- }
- }
- break;
- case 1:
- /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(errn == 0) {
- if(eventCode == 0) {
- errn = decodeNBitUnsignedInteger(stream, 8, &(uint32));
- v2gLFA_EVSEFinePositioningSetupParametersType->SignalPulseDuration = (uint8_t)(uint32 + 0);
- } 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({urn:iso:15118:2:2016:MsgDataTypes}SignalPulseDuration) ? */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(eventCode == 0) {
- grammarID = 1587;
- } else {
- errn = EXI_DEVIANT_SUPPORT_NOT_DEPLOYED; /* or also typecast and nillable */
- }
- }
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 1652:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorOrder), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SignalPulseDuration)] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gLFA_EVSEFinePositioningSetupParametersType->SensorOrder.arrayLen < v2gLFA_EVSEFinePositioningSetupParametersType_SensorOrder_ARRAY_SIZE) {
- /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(errn == 0) {
- if(eventCode == 0) {
- errn = decodeNBitUnsignedInteger(stream, 8, &(uint32));
- v2gLFA_EVSEFinePositioningSetupParametersType->SensorOrder.array[v2gLFA_EVSEFinePositioningSetupParametersType->SensorOrder.arrayLen] = (uint8_t)(uint32 + 0);
- v2gLFA_EVSEFinePositioningSetupParametersType->SensorOrder.arrayLen++;
- } else {
- /* Second level event (e.g., xsi:type, xsi:nil, ...) */
- errn = EXI_UNSUPPORTED_EVENT_CODE_CHARACTERISTICS;
- }
- }
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- if(errn == 0) {
- /* valid EE for simple element START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorOrder) ? */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(eventCode == 0) {
- grammarID = 1653;
- } else {
- errn = EXI_DEVIANT_SUPPORT_NOT_DEPLOYED; /* or also typecast and nillable */
- }
- }
- break;
- case 1:
- /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(errn == 0) {
- if(eventCode == 0) {
- errn = decodeNBitUnsignedInteger(stream, 8, &(uint32));
- v2gLFA_EVSEFinePositioningSetupParametersType->SignalPulseDuration = (uint8_t)(uint32 + 0);
- } 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({urn:iso:15118:2:2016:MsgDataTypes}SignalPulseDuration) ? */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(eventCode == 0) {
- grammarID = 1587;
- } else {
- errn = EXI_DEVIANT_SUPPORT_NOT_DEPLOYED; /* or also typecast and nillable */
- }
- }
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 1653:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorOrder), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SignalPulseDuration)] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gLFA_EVSEFinePositioningSetupParametersType->SensorOrder.arrayLen < v2gLFA_EVSEFinePositioningSetupParametersType_SensorOrder_ARRAY_SIZE) {
- /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(errn == 0) {
- if(eventCode == 0) {
- errn = decodeNBitUnsignedInteger(stream, 8, &(uint32));
- v2gLFA_EVSEFinePositioningSetupParametersType->SensorOrder.array[v2gLFA_EVSEFinePositioningSetupParametersType->SensorOrder.arrayLen] = (uint8_t)(uint32 + 0);
- v2gLFA_EVSEFinePositioningSetupParametersType->SensorOrder.arrayLen++;
- } else {
- /* Second level event (e.g., xsi:type, xsi:nil, ...) */
- errn = EXI_UNSUPPORTED_EVENT_CODE_CHARACTERISTICS;
- }
- }
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- if(errn == 0) {
- /* valid EE for simple element START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorOrder) ? */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(eventCode == 0) {
- grammarID = 1654;
- } else {
- errn = EXI_DEVIANT_SUPPORT_NOT_DEPLOYED; /* or also typecast and nillable */
- }
- }
- break;
- case 1:
- /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(errn == 0) {
- if(eventCode == 0) {
- errn = decodeNBitUnsignedInteger(stream, 8, &(uint32));
- v2gLFA_EVSEFinePositioningSetupParametersType->SignalPulseDuration = (uint8_t)(uint32 + 0);
- } 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({urn:iso:15118:2:2016:MsgDataTypes}SignalPulseDuration) ? */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(eventCode == 0) {
- grammarID = 1587;
- } else {
- errn = EXI_DEVIANT_SUPPORT_NOT_DEPLOYED; /* or also typecast and nillable */
- }
- }
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 1654:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorOrder), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SignalPulseDuration)] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gLFA_EVSEFinePositioningSetupParametersType->SensorOrder.arrayLen < v2gLFA_EVSEFinePositioningSetupParametersType_SensorOrder_ARRAY_SIZE) {
- /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(errn == 0) {
- if(eventCode == 0) {
- errn = decodeNBitUnsignedInteger(stream, 8, &(uint32));
- v2gLFA_EVSEFinePositioningSetupParametersType->SensorOrder.array[v2gLFA_EVSEFinePositioningSetupParametersType->SensorOrder.arrayLen] = (uint8_t)(uint32 + 0);
- v2gLFA_EVSEFinePositioningSetupParametersType->SensorOrder.arrayLen++;
- } else {
- /* Second level event (e.g., xsi:type, xsi:nil, ...) */
- errn = EXI_UNSUPPORTED_EVENT_CODE_CHARACTERISTICS;
- }
- }
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- if(errn == 0) {
- /* valid EE for simple element START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorOrder) ? */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(eventCode == 0) {
- grammarID = 1655;
- } else {
- errn = EXI_DEVIANT_SUPPORT_NOT_DEPLOYED; /* or also typecast and nillable */
- }
- }
- break;
- case 1:
- /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(errn == 0) {
- if(eventCode == 0) {
- errn = decodeNBitUnsignedInteger(stream, 8, &(uint32));
- v2gLFA_EVSEFinePositioningSetupParametersType->SignalPulseDuration = (uint8_t)(uint32 + 0);
- } 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({urn:iso:15118:2:2016:MsgDataTypes}SignalPulseDuration) ? */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(eventCode == 0) {
- grammarID = 1587;
- } else {
- errn = EXI_DEVIANT_SUPPORT_NOT_DEPLOYED; /* or also typecast and nillable */
- }
- }
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 1655:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorOrder), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SignalPulseDuration)] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gLFA_EVSEFinePositioningSetupParametersType->SensorOrder.arrayLen < v2gLFA_EVSEFinePositioningSetupParametersType_SensorOrder_ARRAY_SIZE) {
- /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(errn == 0) {
- if(eventCode == 0) {
- errn = decodeNBitUnsignedInteger(stream, 8, &(uint32));
- v2gLFA_EVSEFinePositioningSetupParametersType->SensorOrder.array[v2gLFA_EVSEFinePositioningSetupParametersType->SensorOrder.arrayLen] = (uint8_t)(uint32 + 0);
- v2gLFA_EVSEFinePositioningSetupParametersType->SensorOrder.arrayLen++;
- } else {
- /* Second level event (e.g., xsi:type, xsi:nil, ...) */
- errn = EXI_UNSUPPORTED_EVENT_CODE_CHARACTERISTICS;
- }
- }
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- if(errn == 0) {
- /* valid EE for simple element START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorOrder) ? */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(eventCode == 0) {
- grammarID = 1656;
- } else {
- errn = EXI_DEVIANT_SUPPORT_NOT_DEPLOYED; /* or also typecast and nillable */
- }
- }
- break;
- case 1:
- /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(errn == 0) {
- if(eventCode == 0) {
- errn = decodeNBitUnsignedInteger(stream, 8, &(uint32));
- v2gLFA_EVSEFinePositioningSetupParametersType->SignalPulseDuration = (uint8_t)(uint32 + 0);
- } 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({urn:iso:15118:2:2016:MsgDataTypes}SignalPulseDuration) ? */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(eventCode == 0) {
- grammarID = 1587;
- } else {
- errn = EXI_DEVIANT_SUPPORT_NOT_DEPLOYED; /* or also typecast and nillable */
- }
- }
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 1656:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorOrder), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SignalPulseDuration)] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gLFA_EVSEFinePositioningSetupParametersType->SensorOrder.arrayLen < v2gLFA_EVSEFinePositioningSetupParametersType_SensorOrder_ARRAY_SIZE) {
- /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(errn == 0) {
- if(eventCode == 0) {
- errn = decodeNBitUnsignedInteger(stream, 8, &(uint32));
- v2gLFA_EVSEFinePositioningSetupParametersType->SensorOrder.array[v2gLFA_EVSEFinePositioningSetupParametersType->SensorOrder.arrayLen] = (uint8_t)(uint32 + 0);
- v2gLFA_EVSEFinePositioningSetupParametersType->SensorOrder.arrayLen++;
- } else {
- /* Second level event (e.g., xsi:type, xsi:nil, ...) */
- errn = EXI_UNSUPPORTED_EVENT_CODE_CHARACTERISTICS;
- }
- }
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- if(errn == 0) {
- /* valid EE for simple element START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorOrder) ? */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(eventCode == 0) {
- grammarID = 1657;
- } else {
- errn = EXI_DEVIANT_SUPPORT_NOT_DEPLOYED; /* or also typecast and nillable */
- }
- }
- break;
- case 1:
- /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(errn == 0) {
- if(eventCode == 0) {
- errn = decodeNBitUnsignedInteger(stream, 8, &(uint32));
- v2gLFA_EVSEFinePositioningSetupParametersType->SignalPulseDuration = (uint8_t)(uint32 + 0);
- } 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({urn:iso:15118:2:2016:MsgDataTypes}SignalPulseDuration) ? */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(eventCode == 0) {
- grammarID = 1587;
- } else {
- errn = EXI_DEVIANT_SUPPORT_NOT_DEPLOYED; /* or also typecast and nillable */
- }
- }
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 1657:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorOrder), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SignalPulseDuration)] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gLFA_EVSEFinePositioningSetupParametersType->SensorOrder.arrayLen < v2gLFA_EVSEFinePositioningSetupParametersType_SensorOrder_ARRAY_SIZE) {
- /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(errn == 0) {
- if(eventCode == 0) {
- errn = decodeNBitUnsignedInteger(stream, 8, &(uint32));
- v2gLFA_EVSEFinePositioningSetupParametersType->SensorOrder.array[v2gLFA_EVSEFinePositioningSetupParametersType->SensorOrder.arrayLen] = (uint8_t)(uint32 + 0);
- v2gLFA_EVSEFinePositioningSetupParametersType->SensorOrder.arrayLen++;
- } else {
- /* Second level event (e.g., xsi:type, xsi:nil, ...) */
- errn = EXI_UNSUPPORTED_EVENT_CODE_CHARACTERISTICS;
- }
- }
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- if(errn == 0) {
- /* valid EE for simple element START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorOrder) ? */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(eventCode == 0) {
- grammarID = 1658;
- } else {
- errn = EXI_DEVIANT_SUPPORT_NOT_DEPLOYED; /* or also typecast and nillable */
- }
- }
- break;
- case 1:
- /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(errn == 0) {
- if(eventCode == 0) {
- errn = decodeNBitUnsignedInteger(stream, 8, &(uint32));
- v2gLFA_EVSEFinePositioningSetupParametersType->SignalPulseDuration = (uint8_t)(uint32 + 0);
- } 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({urn:iso:15118:2:2016:MsgDataTypes}SignalPulseDuration) ? */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(eventCode == 0) {
- grammarID = 1587;
- } else {
- errn = EXI_DEVIANT_SUPPORT_NOT_DEPLOYED; /* or also typecast and nillable */
- }
- }
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 1658:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorOrder), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SignalPulseDuration)] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gLFA_EVSEFinePositioningSetupParametersType->SensorOrder.arrayLen < v2gLFA_EVSEFinePositioningSetupParametersType_SensorOrder_ARRAY_SIZE) {
- /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(errn == 0) {
- if(eventCode == 0) {
- errn = decodeNBitUnsignedInteger(stream, 8, &(uint32));
- v2gLFA_EVSEFinePositioningSetupParametersType->SensorOrder.array[v2gLFA_EVSEFinePositioningSetupParametersType->SensorOrder.arrayLen] = (uint8_t)(uint32 + 0);
- v2gLFA_EVSEFinePositioningSetupParametersType->SensorOrder.arrayLen++;
- } else {
- /* Second level event (e.g., xsi:type, xsi:nil, ...) */
- errn = EXI_UNSUPPORTED_EVENT_CODE_CHARACTERISTICS;
- }
- }
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- if(errn == 0) {
- /* valid EE for simple element START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorOrder) ? */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(eventCode == 0) {
- grammarID = 1659;
- } else {
- errn = EXI_DEVIANT_SUPPORT_NOT_DEPLOYED; /* or also typecast and nillable */
- }
- }
- break;
- case 1:
- /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(errn == 0) {
- if(eventCode == 0) {
- errn = decodeNBitUnsignedInteger(stream, 8, &(uint32));
- v2gLFA_EVSEFinePositioningSetupParametersType->SignalPulseDuration = (uint8_t)(uint32 + 0);
- } 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({urn:iso:15118:2:2016:MsgDataTypes}SignalPulseDuration) ? */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(eventCode == 0) {
- grammarID = 1587;
- } else {
- errn = EXI_DEVIANT_SUPPORT_NOT_DEPLOYED; /* or also typecast and nillable */
- }
- }
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 1659:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorOrder), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SignalPulseDuration)] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gLFA_EVSEFinePositioningSetupParametersType->SensorOrder.arrayLen < v2gLFA_EVSEFinePositioningSetupParametersType_SensorOrder_ARRAY_SIZE) {
- /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(errn == 0) {
- if(eventCode == 0) {
- errn = decodeNBitUnsignedInteger(stream, 8, &(uint32));
- v2gLFA_EVSEFinePositioningSetupParametersType->SensorOrder.array[v2gLFA_EVSEFinePositioningSetupParametersType->SensorOrder.arrayLen] = (uint8_t)(uint32 + 0);
- v2gLFA_EVSEFinePositioningSetupParametersType->SensorOrder.arrayLen++;
- } else {
- /* Second level event (e.g., xsi:type, xsi:nil, ...) */
- errn = EXI_UNSUPPORTED_EVENT_CODE_CHARACTERISTICS;
- }
- }
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- if(errn == 0) {
- /* valid EE for simple element START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorOrder) ? */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(eventCode == 0) {
- grammarID = 1660;
- } else {
- errn = EXI_DEVIANT_SUPPORT_NOT_DEPLOYED; /* or also typecast and nillable */
- }
- }
- break;
- case 1:
- /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(errn == 0) {
- if(eventCode == 0) {
- errn = decodeNBitUnsignedInteger(stream, 8, &(uint32));
- v2gLFA_EVSEFinePositioningSetupParametersType->SignalPulseDuration = (uint8_t)(uint32 + 0);
- } 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({urn:iso:15118:2:2016:MsgDataTypes}SignalPulseDuration) ? */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(eventCode == 0) {
- grammarID = 1587;
- } else {
- errn = EXI_DEVIANT_SUPPORT_NOT_DEPLOYED; /* or also typecast and nillable */
- }
- }
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 1660:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorOrder), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SignalPulseDuration)] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gLFA_EVSEFinePositioningSetupParametersType->SensorOrder.arrayLen < v2gLFA_EVSEFinePositioningSetupParametersType_SensorOrder_ARRAY_SIZE) {
- /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(errn == 0) {
- if(eventCode == 0) {
- errn = decodeNBitUnsignedInteger(stream, 8, &(uint32));
- v2gLFA_EVSEFinePositioningSetupParametersType->SensorOrder.array[v2gLFA_EVSEFinePositioningSetupParametersType->SensorOrder.arrayLen] = (uint8_t)(uint32 + 0);
- v2gLFA_EVSEFinePositioningSetupParametersType->SensorOrder.arrayLen++;
- } else {
- /* Second level event (e.g., xsi:type, xsi:nil, ...) */
- errn = EXI_UNSUPPORTED_EVENT_CODE_CHARACTERISTICS;
- }
- }
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- if(errn == 0) {
- /* valid EE for simple element START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorOrder) ? */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(eventCode == 0) {
- grammarID = 1661;
- } else {
- errn = EXI_DEVIANT_SUPPORT_NOT_DEPLOYED; /* or also typecast and nillable */
- }
- }
- break;
- case 1:
- /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(errn == 0) {
- if(eventCode == 0) {
- errn = decodeNBitUnsignedInteger(stream, 8, &(uint32));
- v2gLFA_EVSEFinePositioningSetupParametersType->SignalPulseDuration = (uint8_t)(uint32 + 0);
- } 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({urn:iso:15118:2:2016:MsgDataTypes}SignalPulseDuration) ? */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(eventCode == 0) {
- grammarID = 1587;
- } else {
- errn = EXI_DEVIANT_SUPPORT_NOT_DEPLOYED; /* or also typecast and nillable */
- }
- }
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 1661:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorOrder), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SignalPulseDuration)] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gLFA_EVSEFinePositioningSetupParametersType->SensorOrder.arrayLen < v2gLFA_EVSEFinePositioningSetupParametersType_SensorOrder_ARRAY_SIZE) {
- /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(errn == 0) {
- if(eventCode == 0) {
- errn = decodeNBitUnsignedInteger(stream, 8, &(uint32));
- v2gLFA_EVSEFinePositioningSetupParametersType->SensorOrder.array[v2gLFA_EVSEFinePositioningSetupParametersType->SensorOrder.arrayLen] = (uint8_t)(uint32 + 0);
- v2gLFA_EVSEFinePositioningSetupParametersType->SensorOrder.arrayLen++;
- } else {
- /* Second level event (e.g., xsi:type, xsi:nil, ...) */
- errn = EXI_UNSUPPORTED_EVENT_CODE_CHARACTERISTICS;
- }
- }
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- if(errn == 0) {
- /* valid EE for simple element START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorOrder) ? */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(eventCode == 0) {
- grammarID = 1662;
- } else {
- errn = EXI_DEVIANT_SUPPORT_NOT_DEPLOYED; /* or also typecast and nillable */
- }
- }
- break;
- case 1:
- /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(errn == 0) {
- if(eventCode == 0) {
- errn = decodeNBitUnsignedInteger(stream, 8, &(uint32));
- v2gLFA_EVSEFinePositioningSetupParametersType->SignalPulseDuration = (uint8_t)(uint32 + 0);
- } 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({urn:iso:15118:2:2016:MsgDataTypes}SignalPulseDuration) ? */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(eventCode == 0) {
- grammarID = 1587;
- } else {
- errn = EXI_DEVIANT_SUPPORT_NOT_DEPLOYED; /* or also typecast and nillable */
- }
- }
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 1662:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorOrder), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SignalPulseDuration)] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gLFA_EVSEFinePositioningSetupParametersType->SensorOrder.arrayLen < v2gLFA_EVSEFinePositioningSetupParametersType_SensorOrder_ARRAY_SIZE) {
- /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(errn == 0) {
- if(eventCode == 0) {
- errn = decodeNBitUnsignedInteger(stream, 8, &(uint32));
- v2gLFA_EVSEFinePositioningSetupParametersType->SensorOrder.array[v2gLFA_EVSEFinePositioningSetupParametersType->SensorOrder.arrayLen] = (uint8_t)(uint32 + 0);
- v2gLFA_EVSEFinePositioningSetupParametersType->SensorOrder.arrayLen++;
- } else {
- /* Second level event (e.g., xsi:type, xsi:nil, ...) */
- errn = EXI_UNSUPPORTED_EVENT_CODE_CHARACTERISTICS;
- }
- }
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- if(errn == 0) {
- /* valid EE for simple element START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorOrder) ? */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(eventCode == 0) {
- grammarID = 1663;
- } else {
- errn = EXI_DEVIANT_SUPPORT_NOT_DEPLOYED; /* or also typecast and nillable */
- }
- }
- break;
- case 1:
- /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(errn == 0) {
- if(eventCode == 0) {
- errn = decodeNBitUnsignedInteger(stream, 8, &(uint32));
- v2gLFA_EVSEFinePositioningSetupParametersType->SignalPulseDuration = (uint8_t)(uint32 + 0);
- } 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({urn:iso:15118:2:2016:MsgDataTypes}SignalPulseDuration) ? */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(eventCode == 0) {
- grammarID = 1587;
- } else {
- errn = EXI_DEVIANT_SUPPORT_NOT_DEPLOYED; /* or also typecast and nillable */
- }
- }
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 1663:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorOrder), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SignalPulseDuration)] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gLFA_EVSEFinePositioningSetupParametersType->SensorOrder.arrayLen < v2gLFA_EVSEFinePositioningSetupParametersType_SensorOrder_ARRAY_SIZE) {
- /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(errn == 0) {
- if(eventCode == 0) {
- errn = decodeNBitUnsignedInteger(stream, 8, &(uint32));
- v2gLFA_EVSEFinePositioningSetupParametersType->SensorOrder.array[v2gLFA_EVSEFinePositioningSetupParametersType->SensorOrder.arrayLen] = (uint8_t)(uint32 + 0);
- v2gLFA_EVSEFinePositioningSetupParametersType->SensorOrder.arrayLen++;
- } else {
- /* Second level event (e.g., xsi:type, xsi:nil, ...) */
- errn = EXI_UNSUPPORTED_EVENT_CODE_CHARACTERISTICS;
- }
- }
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- if(errn == 0) {
- /* valid EE for simple element START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorOrder) ? */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(eventCode == 0) {
- grammarID = 1664;
- } else {
- errn = EXI_DEVIANT_SUPPORT_NOT_DEPLOYED; /* or also typecast and nillable */
- }
- }
- break;
- case 1:
- /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(errn == 0) {
- if(eventCode == 0) {
- errn = decodeNBitUnsignedInteger(stream, 8, &(uint32));
- v2gLFA_EVSEFinePositioningSetupParametersType->SignalPulseDuration = (uint8_t)(uint32 + 0);
- } 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({urn:iso:15118:2:2016:MsgDataTypes}SignalPulseDuration) ? */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(eventCode == 0) {
- grammarID = 1587;
- } else {
- errn = EXI_DEVIANT_SUPPORT_NOT_DEPLOYED; /* or also typecast and nillable */
- }
- }
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 1664:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorOrder), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SignalPulseDuration)] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gLFA_EVSEFinePositioningSetupParametersType->SensorOrder.arrayLen < v2gLFA_EVSEFinePositioningSetupParametersType_SensorOrder_ARRAY_SIZE) {
- /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(errn == 0) {
- if(eventCode == 0) {
- errn = decodeNBitUnsignedInteger(stream, 8, &(uint32));
- v2gLFA_EVSEFinePositioningSetupParametersType->SensorOrder.array[v2gLFA_EVSEFinePositioningSetupParametersType->SensorOrder.arrayLen] = (uint8_t)(uint32 + 0);
- v2gLFA_EVSEFinePositioningSetupParametersType->SensorOrder.arrayLen++;
- } else {
- /* Second level event (e.g., xsi:type, xsi:nil, ...) */
- errn = EXI_UNSUPPORTED_EVENT_CODE_CHARACTERISTICS;
- }
- }
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- if(errn == 0) {
- /* valid EE for simple element START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorOrder) ? */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(eventCode == 0) {
- grammarID = 1665;
- } else {
- errn = EXI_DEVIANT_SUPPORT_NOT_DEPLOYED; /* or also typecast and nillable */
- }
- }
- break;
- case 1:
- /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(errn == 0) {
- if(eventCode == 0) {
- errn = decodeNBitUnsignedInteger(stream, 8, &(uint32));
- v2gLFA_EVSEFinePositioningSetupParametersType->SignalPulseDuration = (uint8_t)(uint32 + 0);
- } 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({urn:iso:15118:2:2016:MsgDataTypes}SignalPulseDuration) ? */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(eventCode == 0) {
- grammarID = 1587;
- } else {
- errn = EXI_DEVIANT_SUPPORT_NOT_DEPLOYED; /* or also typecast and nillable */
- }
- }
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 1665:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorOrder), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SignalPulseDuration)] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gLFA_EVSEFinePositioningSetupParametersType->SensorOrder.arrayLen < v2gLFA_EVSEFinePositioningSetupParametersType_SensorOrder_ARRAY_SIZE) {
- /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(errn == 0) {
- if(eventCode == 0) {
- errn = decodeNBitUnsignedInteger(stream, 8, &(uint32));
- v2gLFA_EVSEFinePositioningSetupParametersType->SensorOrder.array[v2gLFA_EVSEFinePositioningSetupParametersType->SensorOrder.arrayLen] = (uint8_t)(uint32 + 0);
- v2gLFA_EVSEFinePositioningSetupParametersType->SensorOrder.arrayLen++;
- } else {
- /* Second level event (e.g., xsi:type, xsi:nil, ...) */
- errn = EXI_UNSUPPORTED_EVENT_CODE_CHARACTERISTICS;
- }
- }
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- if(errn == 0) {
- /* valid EE for simple element START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorOrder) ? */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(eventCode == 0) {
- grammarID = 1666;
- } else {
- errn = EXI_DEVIANT_SUPPORT_NOT_DEPLOYED; /* or also typecast and nillable */
- }
- }
- break;
- case 1:
- /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(errn == 0) {
- if(eventCode == 0) {
- errn = decodeNBitUnsignedInteger(stream, 8, &(uint32));
- v2gLFA_EVSEFinePositioningSetupParametersType->SignalPulseDuration = (uint8_t)(uint32 + 0);
- } 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({urn:iso:15118:2:2016:MsgDataTypes}SignalPulseDuration) ? */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(eventCode == 0) {
- grammarID = 1587;
- } else {
- errn = EXI_DEVIANT_SUPPORT_NOT_DEPLOYED; /* or also typecast and nillable */
- }
- }
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 1666:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorOrder), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SignalPulseDuration)] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gLFA_EVSEFinePositioningSetupParametersType->SensorOrder.arrayLen < v2gLFA_EVSEFinePositioningSetupParametersType_SensorOrder_ARRAY_SIZE) {
- /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(errn == 0) {
- if(eventCode == 0) {
- errn = decodeNBitUnsignedInteger(stream, 8, &(uint32));
- v2gLFA_EVSEFinePositioningSetupParametersType->SensorOrder.array[v2gLFA_EVSEFinePositioningSetupParametersType->SensorOrder.arrayLen] = (uint8_t)(uint32 + 0);
- v2gLFA_EVSEFinePositioningSetupParametersType->SensorOrder.arrayLen++;
- } else {
- /* Second level event (e.g., xsi:type, xsi:nil, ...) */
- errn = EXI_UNSUPPORTED_EVENT_CODE_CHARACTERISTICS;
- }
- }
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- if(errn == 0) {
- /* valid EE for simple element START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorOrder) ? */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(eventCode == 0) {
- grammarID = 1667;
- } else {
- errn = EXI_DEVIANT_SUPPORT_NOT_DEPLOYED; /* or also typecast and nillable */
- }
- }
- break;
- case 1:
- /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(errn == 0) {
- if(eventCode == 0) {
- errn = decodeNBitUnsignedInteger(stream, 8, &(uint32));
- v2gLFA_EVSEFinePositioningSetupParametersType->SignalPulseDuration = (uint8_t)(uint32 + 0);
- } 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({urn:iso:15118:2:2016:MsgDataTypes}SignalPulseDuration) ? */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(eventCode == 0) {
- grammarID = 1587;
- } else {
- errn = EXI_DEVIANT_SUPPORT_NOT_DEPLOYED; /* or also typecast and nillable */
- }
- }
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 1667:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorOrder), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SignalPulseDuration)] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gLFA_EVSEFinePositioningSetupParametersType->SensorOrder.arrayLen < v2gLFA_EVSEFinePositioningSetupParametersType_SensorOrder_ARRAY_SIZE) {
- /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(errn == 0) {
- if(eventCode == 0) {
- errn = decodeNBitUnsignedInteger(stream, 8, &(uint32));
- v2gLFA_EVSEFinePositioningSetupParametersType->SensorOrder.array[v2gLFA_EVSEFinePositioningSetupParametersType->SensorOrder.arrayLen] = (uint8_t)(uint32 + 0);
- v2gLFA_EVSEFinePositioningSetupParametersType->SensorOrder.arrayLen++;
- } else {
- /* Second level event (e.g., xsi:type, xsi:nil, ...) */
- errn = EXI_UNSUPPORTED_EVENT_CODE_CHARACTERISTICS;
- }
- }
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- if(errn == 0) {
- /* valid EE for simple element START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorOrder) ? */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(eventCode == 0) {
- grammarID = 1668;
- } else {
- errn = EXI_DEVIANT_SUPPORT_NOT_DEPLOYED; /* or also typecast and nillable */
- }
- }
- break;
- case 1:
- /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(errn == 0) {
- if(eventCode == 0) {
- errn = decodeNBitUnsignedInteger(stream, 8, &(uint32));
- v2gLFA_EVSEFinePositioningSetupParametersType->SignalPulseDuration = (uint8_t)(uint32 + 0);
- } 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({urn:iso:15118:2:2016:MsgDataTypes}SignalPulseDuration) ? */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(eventCode == 0) {
- grammarID = 1587;
- } else {
- errn = EXI_DEVIANT_SUPPORT_NOT_DEPLOYED; /* or also typecast and nillable */
- }
- }
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 1668:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorOrder), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SignalPulseDuration)] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gLFA_EVSEFinePositioningSetupParametersType->SensorOrder.arrayLen < v2gLFA_EVSEFinePositioningSetupParametersType_SensorOrder_ARRAY_SIZE) {
- /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(errn == 0) {
- if(eventCode == 0) {
- errn = decodeNBitUnsignedInteger(stream, 8, &(uint32));
- v2gLFA_EVSEFinePositioningSetupParametersType->SensorOrder.array[v2gLFA_EVSEFinePositioningSetupParametersType->SensorOrder.arrayLen] = (uint8_t)(uint32 + 0);
- v2gLFA_EVSEFinePositioningSetupParametersType->SensorOrder.arrayLen++;
- } else {
- /* Second level event (e.g., xsi:type, xsi:nil, ...) */
- errn = EXI_UNSUPPORTED_EVENT_CODE_CHARACTERISTICS;
- }
- }
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- if(errn == 0) {
- /* valid EE for simple element START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorOrder) ? */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(eventCode == 0) {
- grammarID = 1669;
- } else {
- errn = EXI_DEVIANT_SUPPORT_NOT_DEPLOYED; /* or also typecast and nillable */
- }
- }
- break;
- case 1:
- /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(errn == 0) {
- if(eventCode == 0) {
- errn = decodeNBitUnsignedInteger(stream, 8, &(uint32));
- v2gLFA_EVSEFinePositioningSetupParametersType->SignalPulseDuration = (uint8_t)(uint32 + 0);
- } 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({urn:iso:15118:2:2016:MsgDataTypes}SignalPulseDuration) ? */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(eventCode == 0) {
- grammarID = 1587;
- } else {
- errn = EXI_DEVIANT_SUPPORT_NOT_DEPLOYED; /* or also typecast and nillable */
- }
- }
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 1669:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorOrder), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SignalPulseDuration)] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gLFA_EVSEFinePositioningSetupParametersType->SensorOrder.arrayLen < v2gLFA_EVSEFinePositioningSetupParametersType_SensorOrder_ARRAY_SIZE) {
- /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(errn == 0) {
- if(eventCode == 0) {
- errn = decodeNBitUnsignedInteger(stream, 8, &(uint32));
- v2gLFA_EVSEFinePositioningSetupParametersType->SensorOrder.array[v2gLFA_EVSEFinePositioningSetupParametersType->SensorOrder.arrayLen] = (uint8_t)(uint32 + 0);
- v2gLFA_EVSEFinePositioningSetupParametersType->SensorOrder.arrayLen++;
- } else {
- /* Second level event (e.g., xsi:type, xsi:nil, ...) */
- errn = EXI_UNSUPPORTED_EVENT_CODE_CHARACTERISTICS;
- }
- }
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- if(errn == 0) {
- /* valid EE for simple element START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorOrder) ? */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(eventCode == 0) {
- grammarID = 1670;
- } else {
- errn = EXI_DEVIANT_SUPPORT_NOT_DEPLOYED; /* or also typecast and nillable */
- }
- }
- break;
- case 1:
- /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(errn == 0) {
- if(eventCode == 0) {
- errn = decodeNBitUnsignedInteger(stream, 8, &(uint32));
- v2gLFA_EVSEFinePositioningSetupParametersType->SignalPulseDuration = (uint8_t)(uint32 + 0);
- } 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({urn:iso:15118:2:2016:MsgDataTypes}SignalPulseDuration) ? */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(eventCode == 0) {
- grammarID = 1587;
- } else {
- errn = EXI_DEVIANT_SUPPORT_NOT_DEPLOYED; /* or also typecast and nillable */
- }
- }
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 1670:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorOrder), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SignalPulseDuration)] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gLFA_EVSEFinePositioningSetupParametersType->SensorOrder.arrayLen < v2gLFA_EVSEFinePositioningSetupParametersType_SensorOrder_ARRAY_SIZE) {
- /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(errn == 0) {
- if(eventCode == 0) {
- errn = decodeNBitUnsignedInteger(stream, 8, &(uint32));
- v2gLFA_EVSEFinePositioningSetupParametersType->SensorOrder.array[v2gLFA_EVSEFinePositioningSetupParametersType->SensorOrder.arrayLen] = (uint8_t)(uint32 + 0);
- v2gLFA_EVSEFinePositioningSetupParametersType->SensorOrder.arrayLen++;
- } else {
- /* Second level event (e.g., xsi:type, xsi:nil, ...) */
- errn = EXI_UNSUPPORTED_EVENT_CODE_CHARACTERISTICS;
- }
- }
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- if(errn == 0) {
- /* valid EE for simple element START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorOrder) ? */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(eventCode == 0) {
- grammarID = 1671;
- } else {
- errn = EXI_DEVIANT_SUPPORT_NOT_DEPLOYED; /* or also typecast and nillable */
- }
- }
- break;
- case 1:
- /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(errn == 0) {
- if(eventCode == 0) {
- errn = decodeNBitUnsignedInteger(stream, 8, &(uint32));
- v2gLFA_EVSEFinePositioningSetupParametersType->SignalPulseDuration = (uint8_t)(uint32 + 0);
- } 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({urn:iso:15118:2:2016:MsgDataTypes}SignalPulseDuration) ? */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(eventCode == 0) {
- grammarID = 1587;
- } else {
- errn = EXI_DEVIANT_SUPPORT_NOT_DEPLOYED; /* or also typecast and nillable */
- }
- }
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 1671:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorOrder), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SignalPulseDuration)] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gLFA_EVSEFinePositioningSetupParametersType->SensorOrder.arrayLen < v2gLFA_EVSEFinePositioningSetupParametersType_SensorOrder_ARRAY_SIZE) {
- /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(errn == 0) {
- if(eventCode == 0) {
- errn = decodeNBitUnsignedInteger(stream, 8, &(uint32));
- v2gLFA_EVSEFinePositioningSetupParametersType->SensorOrder.array[v2gLFA_EVSEFinePositioningSetupParametersType->SensorOrder.arrayLen] = (uint8_t)(uint32 + 0);
- v2gLFA_EVSEFinePositioningSetupParametersType->SensorOrder.arrayLen++;
- } else {
- /* Second level event (e.g., xsi:type, xsi:nil, ...) */
- errn = EXI_UNSUPPORTED_EVENT_CODE_CHARACTERISTICS;
- }
- }
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- if(errn == 0) {
- /* valid EE for simple element START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorOrder) ? */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(eventCode == 0) {
- grammarID = 1672;
- } else {
- errn = EXI_DEVIANT_SUPPORT_NOT_DEPLOYED; /* or also typecast and nillable */
- }
- }
- break;
- case 1:
- /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(errn == 0) {
- if(eventCode == 0) {
- errn = decodeNBitUnsignedInteger(stream, 8, &(uint32));
- v2gLFA_EVSEFinePositioningSetupParametersType->SignalPulseDuration = (uint8_t)(uint32 + 0);
- } 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({urn:iso:15118:2:2016:MsgDataTypes}SignalPulseDuration) ? */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(eventCode == 0) {
- grammarID = 1587;
- } else {
- errn = EXI_DEVIANT_SUPPORT_NOT_DEPLOYED; /* or also typecast and nillable */
- }
- }
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 1672:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorOrder), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SignalPulseDuration)] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gLFA_EVSEFinePositioningSetupParametersType->SensorOrder.arrayLen < v2gLFA_EVSEFinePositioningSetupParametersType_SensorOrder_ARRAY_SIZE) {
- /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(errn == 0) {
- if(eventCode == 0) {
- errn = decodeNBitUnsignedInteger(stream, 8, &(uint32));
- v2gLFA_EVSEFinePositioningSetupParametersType->SensorOrder.array[v2gLFA_EVSEFinePositioningSetupParametersType->SensorOrder.arrayLen] = (uint8_t)(uint32 + 0);
- v2gLFA_EVSEFinePositioningSetupParametersType->SensorOrder.arrayLen++;
- } else {
- /* Second level event (e.g., xsi:type, xsi:nil, ...) */
- errn = EXI_UNSUPPORTED_EVENT_CODE_CHARACTERISTICS;
- }
- }
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- if(errn == 0) {
- /* valid EE for simple element START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorOrder) ? */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(eventCode == 0) {
- grammarID = 1673;
- } else {
- errn = EXI_DEVIANT_SUPPORT_NOT_DEPLOYED; /* or also typecast and nillable */
- }
- }
- break;
- case 1:
- /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(errn == 0) {
- if(eventCode == 0) {
- errn = decodeNBitUnsignedInteger(stream, 8, &(uint32));
- v2gLFA_EVSEFinePositioningSetupParametersType->SignalPulseDuration = (uint8_t)(uint32 + 0);
- } 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({urn:iso:15118:2:2016:MsgDataTypes}SignalPulseDuration) ? */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(eventCode == 0) {
- grammarID = 1587;
- } else {
- errn = EXI_DEVIANT_SUPPORT_NOT_DEPLOYED; /* or also typecast and nillable */
- }
- }
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 1673:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorOrder), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SignalPulseDuration)] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gLFA_EVSEFinePositioningSetupParametersType->SensorOrder.arrayLen < v2gLFA_EVSEFinePositioningSetupParametersType_SensorOrder_ARRAY_SIZE) {
- /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(errn == 0) {
- if(eventCode == 0) {
- errn = decodeNBitUnsignedInteger(stream, 8, &(uint32));
- v2gLFA_EVSEFinePositioningSetupParametersType->SensorOrder.array[v2gLFA_EVSEFinePositioningSetupParametersType->SensorOrder.arrayLen] = (uint8_t)(uint32 + 0);
- v2gLFA_EVSEFinePositioningSetupParametersType->SensorOrder.arrayLen++;
- } else {
- /* Second level event (e.g., xsi:type, xsi:nil, ...) */
- errn = EXI_UNSUPPORTED_EVENT_CODE_CHARACTERISTICS;
- }
- }
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- if(errn == 0) {
- /* valid EE for simple element START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorOrder) ? */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(eventCode == 0) {
- grammarID = 1674;
- } else {
- errn = EXI_DEVIANT_SUPPORT_NOT_DEPLOYED; /* or also typecast and nillable */
- }
- }
- break;
- case 1:
- /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(errn == 0) {
- if(eventCode == 0) {
- errn = decodeNBitUnsignedInteger(stream, 8, &(uint32));
- v2gLFA_EVSEFinePositioningSetupParametersType->SignalPulseDuration = (uint8_t)(uint32 + 0);
- } 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({urn:iso:15118:2:2016:MsgDataTypes}SignalPulseDuration) ? */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(eventCode == 0) {
- grammarID = 1587;
- } else {
- errn = EXI_DEVIANT_SUPPORT_NOT_DEPLOYED; /* or also typecast and nillable */
- }
- }
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 1674:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorOrder), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SignalPulseDuration)] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gLFA_EVSEFinePositioningSetupParametersType->SensorOrder.arrayLen < v2gLFA_EVSEFinePositioningSetupParametersType_SensorOrder_ARRAY_SIZE) {
- /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(errn == 0) {
- if(eventCode == 0) {
- errn = decodeNBitUnsignedInteger(stream, 8, &(uint32));
- v2gLFA_EVSEFinePositioningSetupParametersType->SensorOrder.array[v2gLFA_EVSEFinePositioningSetupParametersType->SensorOrder.arrayLen] = (uint8_t)(uint32 + 0);
- v2gLFA_EVSEFinePositioningSetupParametersType->SensorOrder.arrayLen++;
- } else {
- /* Second level event (e.g., xsi:type, xsi:nil, ...) */
- errn = EXI_UNSUPPORTED_EVENT_CODE_CHARACTERISTICS;
- }
- }
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- if(errn == 0) {
- /* valid EE for simple element START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorOrder) ? */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(eventCode == 0) {
- grammarID = 1675;
- } else {
- errn = EXI_DEVIANT_SUPPORT_NOT_DEPLOYED; /* or also typecast and nillable */
- }
- }
- break;
- case 1:
- /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(errn == 0) {
- if(eventCode == 0) {
- errn = decodeNBitUnsignedInteger(stream, 8, &(uint32));
- v2gLFA_EVSEFinePositioningSetupParametersType->SignalPulseDuration = (uint8_t)(uint32 + 0);
- } 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({urn:iso:15118:2:2016:MsgDataTypes}SignalPulseDuration) ? */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(eventCode == 0) {
- grammarID = 1587;
- } else {
- errn = EXI_DEVIANT_SUPPORT_NOT_DEPLOYED; /* or also typecast and nillable */
- }
- }
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 1675:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorOrder), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SignalPulseDuration)] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gLFA_EVSEFinePositioningSetupParametersType->SensorOrder.arrayLen < v2gLFA_EVSEFinePositioningSetupParametersType_SensorOrder_ARRAY_SIZE) {
- /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(errn == 0) {
- if(eventCode == 0) {
- errn = decodeNBitUnsignedInteger(stream, 8, &(uint32));
- v2gLFA_EVSEFinePositioningSetupParametersType->SensorOrder.array[v2gLFA_EVSEFinePositioningSetupParametersType->SensorOrder.arrayLen] = (uint8_t)(uint32 + 0);
- v2gLFA_EVSEFinePositioningSetupParametersType->SensorOrder.arrayLen++;
- } else {
- /* Second level event (e.g., xsi:type, xsi:nil, ...) */
- errn = EXI_UNSUPPORTED_EVENT_CODE_CHARACTERISTICS;
- }
- }
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- if(errn == 0) {
- /* valid EE for simple element START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorOrder) ? */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(eventCode == 0) {
- grammarID = 1676;
- } else {
- errn = EXI_DEVIANT_SUPPORT_NOT_DEPLOYED; /* or also typecast and nillable */
- }
- }
- break;
- case 1:
- /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(errn == 0) {
- if(eventCode == 0) {
- errn = decodeNBitUnsignedInteger(stream, 8, &(uint32));
- v2gLFA_EVSEFinePositioningSetupParametersType->SignalPulseDuration = (uint8_t)(uint32 + 0);
- } 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({urn:iso:15118:2:2016:MsgDataTypes}SignalPulseDuration) ? */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(eventCode == 0) {
- grammarID = 1587;
- } else {
- errn = EXI_DEVIANT_SUPPORT_NOT_DEPLOYED; /* or also typecast and nillable */
- }
- }
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 1676:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorOrder), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SignalPulseDuration)] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gLFA_EVSEFinePositioningSetupParametersType->SensorOrder.arrayLen < v2gLFA_EVSEFinePositioningSetupParametersType_SensorOrder_ARRAY_SIZE) {
- /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(errn == 0) {
- if(eventCode == 0) {
- errn = decodeNBitUnsignedInteger(stream, 8, &(uint32));
- v2gLFA_EVSEFinePositioningSetupParametersType->SensorOrder.array[v2gLFA_EVSEFinePositioningSetupParametersType->SensorOrder.arrayLen] = (uint8_t)(uint32 + 0);
- v2gLFA_EVSEFinePositioningSetupParametersType->SensorOrder.arrayLen++;
- } else {
- /* Second level event (e.g., xsi:type, xsi:nil, ...) */
- errn = EXI_UNSUPPORTED_EVENT_CODE_CHARACTERISTICS;
- }
- }
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- if(errn == 0) {
- /* valid EE for simple element START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorOrder) ? */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(eventCode == 0) {
- grammarID = 1677;
- } else {
- errn = EXI_DEVIANT_SUPPORT_NOT_DEPLOYED; /* or also typecast and nillable */
- }
- }
- break;
- case 1:
- /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(errn == 0) {
- if(eventCode == 0) {
- errn = decodeNBitUnsignedInteger(stream, 8, &(uint32));
- v2gLFA_EVSEFinePositioningSetupParametersType->SignalPulseDuration = (uint8_t)(uint32 + 0);
- } 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({urn:iso:15118:2:2016:MsgDataTypes}SignalPulseDuration) ? */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(eventCode == 0) {
- grammarID = 1587;
- } else {
- errn = EXI_DEVIANT_SUPPORT_NOT_DEPLOYED; /* or also typecast and nillable */
- }
- }
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 1677:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorOrder), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SignalPulseDuration)] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gLFA_EVSEFinePositioningSetupParametersType->SensorOrder.arrayLen < v2gLFA_EVSEFinePositioningSetupParametersType_SensorOrder_ARRAY_SIZE) {
- /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(errn == 0) {
- if(eventCode == 0) {
- errn = decodeNBitUnsignedInteger(stream, 8, &(uint32));
- v2gLFA_EVSEFinePositioningSetupParametersType->SensorOrder.array[v2gLFA_EVSEFinePositioningSetupParametersType->SensorOrder.arrayLen] = (uint8_t)(uint32 + 0);
- v2gLFA_EVSEFinePositioningSetupParametersType->SensorOrder.arrayLen++;
- } else {
- /* Second level event (e.g., xsi:type, xsi:nil, ...) */
- errn = EXI_UNSUPPORTED_EVENT_CODE_CHARACTERISTICS;
- }
- }
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- if(errn == 0) {
- /* valid EE for simple element START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorOrder) ? */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(eventCode == 0) {
- grammarID = 1678;
- } else {
- errn = EXI_DEVIANT_SUPPORT_NOT_DEPLOYED; /* or also typecast and nillable */
- }
- }
- break;
- case 1:
- /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(errn == 0) {
- if(eventCode == 0) {
- errn = decodeNBitUnsignedInteger(stream, 8, &(uint32));
- v2gLFA_EVSEFinePositioningSetupParametersType->SignalPulseDuration = (uint8_t)(uint32 + 0);
- } 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({urn:iso:15118:2:2016:MsgDataTypes}SignalPulseDuration) ? */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(eventCode == 0) {
- grammarID = 1587;
- } else {
- errn = EXI_DEVIANT_SUPPORT_NOT_DEPLOYED; /* or also typecast and nillable */
- }
- }
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 1678:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorOrder), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SignalPulseDuration)] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gLFA_EVSEFinePositioningSetupParametersType->SensorOrder.arrayLen < v2gLFA_EVSEFinePositioningSetupParametersType_SensorOrder_ARRAY_SIZE) {
- /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(errn == 0) {
- if(eventCode == 0) {
- errn = decodeNBitUnsignedInteger(stream, 8, &(uint32));
- v2gLFA_EVSEFinePositioningSetupParametersType->SensorOrder.array[v2gLFA_EVSEFinePositioningSetupParametersType->SensorOrder.arrayLen] = (uint8_t)(uint32 + 0);
- v2gLFA_EVSEFinePositioningSetupParametersType->SensorOrder.arrayLen++;
- } else {
- /* Second level event (e.g., xsi:type, xsi:nil, ...) */
- errn = EXI_UNSUPPORTED_EVENT_CODE_CHARACTERISTICS;
- }
- }
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- if(errn == 0) {
- /* valid EE for simple element START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorOrder) ? */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(eventCode == 0) {
- grammarID = 1679;
- } else {
- errn = EXI_DEVIANT_SUPPORT_NOT_DEPLOYED; /* or also typecast and nillable */
- }
- }
- break;
- case 1:
- /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(errn == 0) {
- if(eventCode == 0) {
- errn = decodeNBitUnsignedInteger(stream, 8, &(uint32));
- v2gLFA_EVSEFinePositioningSetupParametersType->SignalPulseDuration = (uint8_t)(uint32 + 0);
- } 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({urn:iso:15118:2:2016:MsgDataTypes}SignalPulseDuration) ? */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(eventCode == 0) {
- grammarID = 1587;
- } else {
- errn = EXI_DEVIANT_SUPPORT_NOT_DEPLOYED; /* or also typecast and nillable */
- }
- }
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 1679:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorOrder), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SignalPulseDuration)] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gLFA_EVSEFinePositioningSetupParametersType->SensorOrder.arrayLen < v2gLFA_EVSEFinePositioningSetupParametersType_SensorOrder_ARRAY_SIZE) {
- /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(errn == 0) {
- if(eventCode == 0) {
- errn = decodeNBitUnsignedInteger(stream, 8, &(uint32));
- v2gLFA_EVSEFinePositioningSetupParametersType->SensorOrder.array[v2gLFA_EVSEFinePositioningSetupParametersType->SensorOrder.arrayLen] = (uint8_t)(uint32 + 0);
- v2gLFA_EVSEFinePositioningSetupParametersType->SensorOrder.arrayLen++;
- } else {
- /* Second level event (e.g., xsi:type, xsi:nil, ...) */
- errn = EXI_UNSUPPORTED_EVENT_CODE_CHARACTERISTICS;
- }
- }
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- if(errn == 0) {
- /* valid EE for simple element START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorOrder) ? */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(eventCode == 0) {
- grammarID = 1680;
- } else {
- errn = EXI_DEVIANT_SUPPORT_NOT_DEPLOYED; /* or also typecast and nillable */
- }
- }
- break;
- case 1:
- /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(errn == 0) {
- if(eventCode == 0) {
- errn = decodeNBitUnsignedInteger(stream, 8, &(uint32));
- v2gLFA_EVSEFinePositioningSetupParametersType->SignalPulseDuration = (uint8_t)(uint32 + 0);
- } 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({urn:iso:15118:2:2016:MsgDataTypes}SignalPulseDuration) ? */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(eventCode == 0) {
- grammarID = 1587;
- } else {
- errn = EXI_DEVIANT_SUPPORT_NOT_DEPLOYED; /* or also typecast and nillable */
- }
- }
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 1680:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorOrder), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SignalPulseDuration)] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gLFA_EVSEFinePositioningSetupParametersType->SensorOrder.arrayLen < v2gLFA_EVSEFinePositioningSetupParametersType_SensorOrder_ARRAY_SIZE) {
- /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(errn == 0) {
- if(eventCode == 0) {
- errn = decodeNBitUnsignedInteger(stream, 8, &(uint32));
- v2gLFA_EVSEFinePositioningSetupParametersType->SensorOrder.array[v2gLFA_EVSEFinePositioningSetupParametersType->SensorOrder.arrayLen] = (uint8_t)(uint32 + 0);
- v2gLFA_EVSEFinePositioningSetupParametersType->SensorOrder.arrayLen++;
- } else {
- /* Second level event (e.g., xsi:type, xsi:nil, ...) */
- errn = EXI_UNSUPPORTED_EVENT_CODE_CHARACTERISTICS;
- }
- }
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- if(errn == 0) {
- /* valid EE for simple element START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorOrder) ? */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(eventCode == 0) {
- grammarID = 1681;
- } else {
- errn = EXI_DEVIANT_SUPPORT_NOT_DEPLOYED; /* or also typecast and nillable */
- }
- }
- break;
- case 1:
- /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(errn == 0) {
- if(eventCode == 0) {
- errn = decodeNBitUnsignedInteger(stream, 8, &(uint32));
- v2gLFA_EVSEFinePositioningSetupParametersType->SignalPulseDuration = (uint8_t)(uint32 + 0);
- } 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({urn:iso:15118:2:2016:MsgDataTypes}SignalPulseDuration) ? */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(eventCode == 0) {
- grammarID = 1587;
- } else {
- errn = EXI_DEVIANT_SUPPORT_NOT_DEPLOYED; /* or also typecast and nillable */
- }
- }
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 1681:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorOrder), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SignalPulseDuration)] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gLFA_EVSEFinePositioningSetupParametersType->SensorOrder.arrayLen < v2gLFA_EVSEFinePositioningSetupParametersType_SensorOrder_ARRAY_SIZE) {
- /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(errn == 0) {
- if(eventCode == 0) {
- errn = decodeNBitUnsignedInteger(stream, 8, &(uint32));
- v2gLFA_EVSEFinePositioningSetupParametersType->SensorOrder.array[v2gLFA_EVSEFinePositioningSetupParametersType->SensorOrder.arrayLen] = (uint8_t)(uint32 + 0);
- v2gLFA_EVSEFinePositioningSetupParametersType->SensorOrder.arrayLen++;
- } else {
- /* Second level event (e.g., xsi:type, xsi:nil, ...) */
- errn = EXI_UNSUPPORTED_EVENT_CODE_CHARACTERISTICS;
- }
- }
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- if(errn == 0) {
- /* valid EE for simple element START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorOrder) ? */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(eventCode == 0) {
- grammarID = 1682;
- } else {
- errn = EXI_DEVIANT_SUPPORT_NOT_DEPLOYED; /* or also typecast and nillable */
- }
- }
- break;
- case 1:
- /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(errn == 0) {
- if(eventCode == 0) {
- errn = decodeNBitUnsignedInteger(stream, 8, &(uint32));
- v2gLFA_EVSEFinePositioningSetupParametersType->SignalPulseDuration = (uint8_t)(uint32 + 0);
- } 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({urn:iso:15118:2:2016:MsgDataTypes}SignalPulseDuration) ? */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(eventCode == 0) {
- grammarID = 1587;
- } else {
- errn = EXI_DEVIANT_SUPPORT_NOT_DEPLOYED; /* or also typecast and nillable */
- }
- }
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 1682:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorOrder), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SignalPulseDuration)] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gLFA_EVSEFinePositioningSetupParametersType->SensorOrder.arrayLen < v2gLFA_EVSEFinePositioningSetupParametersType_SensorOrder_ARRAY_SIZE) {
- /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(errn == 0) {
- if(eventCode == 0) {
- errn = decodeNBitUnsignedInteger(stream, 8, &(uint32));
- v2gLFA_EVSEFinePositioningSetupParametersType->SensorOrder.array[v2gLFA_EVSEFinePositioningSetupParametersType->SensorOrder.arrayLen] = (uint8_t)(uint32 + 0);
- v2gLFA_EVSEFinePositioningSetupParametersType->SensorOrder.arrayLen++;
- } else {
- /* Second level event (e.g., xsi:type, xsi:nil, ...) */
- errn = EXI_UNSUPPORTED_EVENT_CODE_CHARACTERISTICS;
- }
- }
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- if(errn == 0) {
- /* valid EE for simple element START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorOrder) ? */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(eventCode == 0) {
- grammarID = 1683;
- } else {
- errn = EXI_DEVIANT_SUPPORT_NOT_DEPLOYED; /* or also typecast and nillable */
- }
- }
- break;
- case 1:
- /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(errn == 0) {
- if(eventCode == 0) {
- errn = decodeNBitUnsignedInteger(stream, 8, &(uint32));
- v2gLFA_EVSEFinePositioningSetupParametersType->SignalPulseDuration = (uint8_t)(uint32 + 0);
- } 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({urn:iso:15118:2:2016:MsgDataTypes}SignalPulseDuration) ? */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(eventCode == 0) {
- grammarID = 1587;
- } else {
- errn = EXI_DEVIANT_SUPPORT_NOT_DEPLOYED; /* or also typecast and nillable */
- }
- }
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 1683:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorOrder), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SignalPulseDuration)] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gLFA_EVSEFinePositioningSetupParametersType->SensorOrder.arrayLen < v2gLFA_EVSEFinePositioningSetupParametersType_SensorOrder_ARRAY_SIZE) {
- /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(errn == 0) {
- if(eventCode == 0) {
- errn = decodeNBitUnsignedInteger(stream, 8, &(uint32));
- v2gLFA_EVSEFinePositioningSetupParametersType->SensorOrder.array[v2gLFA_EVSEFinePositioningSetupParametersType->SensorOrder.arrayLen] = (uint8_t)(uint32 + 0);
- v2gLFA_EVSEFinePositioningSetupParametersType->SensorOrder.arrayLen++;
- } else {
- /* Second level event (e.g., xsi:type, xsi:nil, ...) */
- errn = EXI_UNSUPPORTED_EVENT_CODE_CHARACTERISTICS;
- }
- }
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- if(errn == 0) {
- /* valid EE for simple element START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorOrder) ? */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(eventCode == 0) {
- grammarID = 1684;
- } else {
- errn = EXI_DEVIANT_SUPPORT_NOT_DEPLOYED; /* or also typecast and nillable */
- }
- }
- break;
- case 1:
- /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(errn == 0) {
- if(eventCode == 0) {
- errn = decodeNBitUnsignedInteger(stream, 8, &(uint32));
- v2gLFA_EVSEFinePositioningSetupParametersType->SignalPulseDuration = (uint8_t)(uint32 + 0);
- } 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({urn:iso:15118:2:2016:MsgDataTypes}SignalPulseDuration) ? */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(eventCode == 0) {
- grammarID = 1587;
- } else {
- errn = EXI_DEVIANT_SUPPORT_NOT_DEPLOYED; /* or also typecast and nillable */
- }
- }
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 1684:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorOrder), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SignalPulseDuration)] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gLFA_EVSEFinePositioningSetupParametersType->SensorOrder.arrayLen < v2gLFA_EVSEFinePositioningSetupParametersType_SensorOrder_ARRAY_SIZE) {
- /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(errn == 0) {
- if(eventCode == 0) {
- errn = decodeNBitUnsignedInteger(stream, 8, &(uint32));
- v2gLFA_EVSEFinePositioningSetupParametersType->SensorOrder.array[v2gLFA_EVSEFinePositioningSetupParametersType->SensorOrder.arrayLen] = (uint8_t)(uint32 + 0);
- v2gLFA_EVSEFinePositioningSetupParametersType->SensorOrder.arrayLen++;
- } else {
- /* Second level event (e.g., xsi:type, xsi:nil, ...) */
- errn = EXI_UNSUPPORTED_EVENT_CODE_CHARACTERISTICS;
- }
- }
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- if(errn == 0) {
- /* valid EE for simple element START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorOrder) ? */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(eventCode == 0) {
- grammarID = 1685;
- } else {
- errn = EXI_DEVIANT_SUPPORT_NOT_DEPLOYED; /* or also typecast and nillable */
- }
- }
- break;
- case 1:
- /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(errn == 0) {
- if(eventCode == 0) {
- errn = decodeNBitUnsignedInteger(stream, 8, &(uint32));
- v2gLFA_EVSEFinePositioningSetupParametersType->SignalPulseDuration = (uint8_t)(uint32 + 0);
- } 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({urn:iso:15118:2:2016:MsgDataTypes}SignalPulseDuration) ? */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(eventCode == 0) {
- grammarID = 1587;
- } else {
- errn = EXI_DEVIANT_SUPPORT_NOT_DEPLOYED; /* or also typecast and nillable */
- }
- }
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 1685:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorOrder), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SignalPulseDuration)] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gLFA_EVSEFinePositioningSetupParametersType->SensorOrder.arrayLen < v2gLFA_EVSEFinePositioningSetupParametersType_SensorOrder_ARRAY_SIZE) {
- /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(errn == 0) {
- if(eventCode == 0) {
- errn = decodeNBitUnsignedInteger(stream, 8, &(uint32));
- v2gLFA_EVSEFinePositioningSetupParametersType->SensorOrder.array[v2gLFA_EVSEFinePositioningSetupParametersType->SensorOrder.arrayLen] = (uint8_t)(uint32 + 0);
- v2gLFA_EVSEFinePositioningSetupParametersType->SensorOrder.arrayLen++;
- } else {
- /* Second level event (e.g., xsi:type, xsi:nil, ...) */
- errn = EXI_UNSUPPORTED_EVENT_CODE_CHARACTERISTICS;
- }
- }
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- if(errn == 0) {
- /* valid EE for simple element START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorOrder) ? */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(eventCode == 0) {
- grammarID = 1686;
- } else {
- errn = EXI_DEVIANT_SUPPORT_NOT_DEPLOYED; /* or also typecast and nillable */
- }
- }
- break;
- case 1:
- /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(errn == 0) {
- if(eventCode == 0) {
- errn = decodeNBitUnsignedInteger(stream, 8, &(uint32));
- v2gLFA_EVSEFinePositioningSetupParametersType->SignalPulseDuration = (uint8_t)(uint32 + 0);
- } 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({urn:iso:15118:2:2016:MsgDataTypes}SignalPulseDuration) ? */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(eventCode == 0) {
- grammarID = 1587;
- } else {
- errn = EXI_DEVIANT_SUPPORT_NOT_DEPLOYED; /* or also typecast and nillable */
- }
- }
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 1686:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorOrder), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SignalPulseDuration)] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gLFA_EVSEFinePositioningSetupParametersType->SensorOrder.arrayLen < v2gLFA_EVSEFinePositioningSetupParametersType_SensorOrder_ARRAY_SIZE) {
- /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(errn == 0) {
- if(eventCode == 0) {
- errn = decodeNBitUnsignedInteger(stream, 8, &(uint32));
- v2gLFA_EVSEFinePositioningSetupParametersType->SensorOrder.array[v2gLFA_EVSEFinePositioningSetupParametersType->SensorOrder.arrayLen] = (uint8_t)(uint32 + 0);
- v2gLFA_EVSEFinePositioningSetupParametersType->SensorOrder.arrayLen++;
- } else {
- /* Second level event (e.g., xsi:type, xsi:nil, ...) */
- errn = EXI_UNSUPPORTED_EVENT_CODE_CHARACTERISTICS;
- }
- }
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- if(errn == 0) {
- /* valid EE for simple element START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorOrder) ? */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(eventCode == 0) {
- grammarID = 1687;
- } else {
- errn = EXI_DEVIANT_SUPPORT_NOT_DEPLOYED; /* or also typecast and nillable */
- }
- }
- break;
- case 1:
- /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(errn == 0) {
- if(eventCode == 0) {
- errn = decodeNBitUnsignedInteger(stream, 8, &(uint32));
- v2gLFA_EVSEFinePositioningSetupParametersType->SignalPulseDuration = (uint8_t)(uint32 + 0);
- } 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({urn:iso:15118:2:2016:MsgDataTypes}SignalPulseDuration) ? */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(eventCode == 0) {
- grammarID = 1587;
- } else {
- errn = EXI_DEVIANT_SUPPORT_NOT_DEPLOYED; /* or also typecast and nillable */
- }
- }
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 1687:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorOrder), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SignalPulseDuration)] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gLFA_EVSEFinePositioningSetupParametersType->SensorOrder.arrayLen < v2gLFA_EVSEFinePositioningSetupParametersType_SensorOrder_ARRAY_SIZE) {
- /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(errn == 0) {
- if(eventCode == 0) {
- errn = decodeNBitUnsignedInteger(stream, 8, &(uint32));
- v2gLFA_EVSEFinePositioningSetupParametersType->SensorOrder.array[v2gLFA_EVSEFinePositioningSetupParametersType->SensorOrder.arrayLen] = (uint8_t)(uint32 + 0);
- v2gLFA_EVSEFinePositioningSetupParametersType->SensorOrder.arrayLen++;
- } else {
- /* Second level event (e.g., xsi:type, xsi:nil, ...) */
- errn = EXI_UNSUPPORTED_EVENT_CODE_CHARACTERISTICS;
- }
- }
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- if(errn == 0) {
- /* valid EE for simple element START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorOrder) ? */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(eventCode == 0) {
- grammarID = 1688;
- } else {
- errn = EXI_DEVIANT_SUPPORT_NOT_DEPLOYED; /* or also typecast and nillable */
- }
- }
- break;
- case 1:
- /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(errn == 0) {
- if(eventCode == 0) {
- errn = decodeNBitUnsignedInteger(stream, 8, &(uint32));
- v2gLFA_EVSEFinePositioningSetupParametersType->SignalPulseDuration = (uint8_t)(uint32 + 0);
- } 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({urn:iso:15118:2:2016:MsgDataTypes}SignalPulseDuration) ? */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(eventCode == 0) {
- grammarID = 1587;
- } else {
- errn = EXI_DEVIANT_SUPPORT_NOT_DEPLOYED; /* or also typecast and nillable */
- }
- }
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 1688:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorOrder), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SignalPulseDuration)] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gLFA_EVSEFinePositioningSetupParametersType->SensorOrder.arrayLen < v2gLFA_EVSEFinePositioningSetupParametersType_SensorOrder_ARRAY_SIZE) {
- /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(errn == 0) {
- if(eventCode == 0) {
- errn = decodeNBitUnsignedInteger(stream, 8, &(uint32));
- v2gLFA_EVSEFinePositioningSetupParametersType->SensorOrder.array[v2gLFA_EVSEFinePositioningSetupParametersType->SensorOrder.arrayLen] = (uint8_t)(uint32 + 0);
- v2gLFA_EVSEFinePositioningSetupParametersType->SensorOrder.arrayLen++;
- } else {
- /* Second level event (e.g., xsi:type, xsi:nil, ...) */
- errn = EXI_UNSUPPORTED_EVENT_CODE_CHARACTERISTICS;
- }
- }
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- if(errn == 0) {
- /* valid EE for simple element START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorOrder) ? */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(eventCode == 0) {
- grammarID = 1689;
- } else {
- errn = EXI_DEVIANT_SUPPORT_NOT_DEPLOYED; /* or also typecast and nillable */
- }
- }
- break;
- case 1:
- /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(errn == 0) {
- if(eventCode == 0) {
- errn = decodeNBitUnsignedInteger(stream, 8, &(uint32));
- v2gLFA_EVSEFinePositioningSetupParametersType->SignalPulseDuration = (uint8_t)(uint32 + 0);
- } 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({urn:iso:15118:2:2016:MsgDataTypes}SignalPulseDuration) ? */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(eventCode == 0) {
- grammarID = 1587;
- } else {
- errn = EXI_DEVIANT_SUPPORT_NOT_DEPLOYED; /* or also typecast and nillable */
- }
- }
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 1689:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorOrder), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SignalPulseDuration)] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gLFA_EVSEFinePositioningSetupParametersType->SensorOrder.arrayLen < v2gLFA_EVSEFinePositioningSetupParametersType_SensorOrder_ARRAY_SIZE) {
- /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(errn == 0) {
- if(eventCode == 0) {
- errn = decodeNBitUnsignedInteger(stream, 8, &(uint32));
- v2gLFA_EVSEFinePositioningSetupParametersType->SensorOrder.array[v2gLFA_EVSEFinePositioningSetupParametersType->SensorOrder.arrayLen] = (uint8_t)(uint32 + 0);
- v2gLFA_EVSEFinePositioningSetupParametersType->SensorOrder.arrayLen++;
- } else {
- /* Second level event (e.g., xsi:type, xsi:nil, ...) */
- errn = EXI_UNSUPPORTED_EVENT_CODE_CHARACTERISTICS;
- }
- }
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- if(errn == 0) {
- /* valid EE for simple element START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorOrder) ? */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(eventCode == 0) {
- grammarID = 1690;
- } else {
- errn = EXI_DEVIANT_SUPPORT_NOT_DEPLOYED; /* or also typecast and nillable */
- }
- }
- break;
- case 1:
- /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(errn == 0) {
- if(eventCode == 0) {
- errn = decodeNBitUnsignedInteger(stream, 8, &(uint32));
- v2gLFA_EVSEFinePositioningSetupParametersType->SignalPulseDuration = (uint8_t)(uint32 + 0);
- } 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({urn:iso:15118:2:2016:MsgDataTypes}SignalPulseDuration) ? */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(eventCode == 0) {
- grammarID = 1587;
- } else {
- errn = EXI_DEVIANT_SUPPORT_NOT_DEPLOYED; /* or also typecast and nillable */
- }
- }
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 1690:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorOrder), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SignalPulseDuration)] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gLFA_EVSEFinePositioningSetupParametersType->SensorOrder.arrayLen < v2gLFA_EVSEFinePositioningSetupParametersType_SensorOrder_ARRAY_SIZE) {
- /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(errn == 0) {
- if(eventCode == 0) {
- errn = decodeNBitUnsignedInteger(stream, 8, &(uint32));
- v2gLFA_EVSEFinePositioningSetupParametersType->SensorOrder.array[v2gLFA_EVSEFinePositioningSetupParametersType->SensorOrder.arrayLen] = (uint8_t)(uint32 + 0);
- v2gLFA_EVSEFinePositioningSetupParametersType->SensorOrder.arrayLen++;
- } else {
- /* Second level event (e.g., xsi:type, xsi:nil, ...) */
- errn = EXI_UNSUPPORTED_EVENT_CODE_CHARACTERISTICS;
- }
- }
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- if(errn == 0) {
- /* valid EE for simple element START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorOrder) ? */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(eventCode == 0) {
- grammarID = 1691;
- } else {
- errn = EXI_DEVIANT_SUPPORT_NOT_DEPLOYED; /* or also typecast and nillable */
- }
- }
- break;
- case 1:
- /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(errn == 0) {
- if(eventCode == 0) {
- errn = decodeNBitUnsignedInteger(stream, 8, &(uint32));
- v2gLFA_EVSEFinePositioningSetupParametersType->SignalPulseDuration = (uint8_t)(uint32 + 0);
- } 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({urn:iso:15118:2:2016:MsgDataTypes}SignalPulseDuration) ? */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(eventCode == 0) {
- grammarID = 1587;
- } else {
- errn = EXI_DEVIANT_SUPPORT_NOT_DEPLOYED; /* or also typecast and nillable */
- }
- }
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 1691:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorOrder), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SignalPulseDuration)] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gLFA_EVSEFinePositioningSetupParametersType->SensorOrder.arrayLen < v2gLFA_EVSEFinePositioningSetupParametersType_SensorOrder_ARRAY_SIZE) {
- /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(errn == 0) {
- if(eventCode == 0) {
- errn = decodeNBitUnsignedInteger(stream, 8, &(uint32));
- v2gLFA_EVSEFinePositioningSetupParametersType->SensorOrder.array[v2gLFA_EVSEFinePositioningSetupParametersType->SensorOrder.arrayLen] = (uint8_t)(uint32 + 0);
- v2gLFA_EVSEFinePositioningSetupParametersType->SensorOrder.arrayLen++;
- } else {
- /* Second level event (e.g., xsi:type, xsi:nil, ...) */
- errn = EXI_UNSUPPORTED_EVENT_CODE_CHARACTERISTICS;
- }
- }
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- if(errn == 0) {
- /* valid EE for simple element START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorOrder) ? */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(eventCode == 0) {
- grammarID = 1692;
- } else {
- errn = EXI_DEVIANT_SUPPORT_NOT_DEPLOYED; /* or also typecast and nillable */
- }
- }
- break;
- case 1:
- /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(errn == 0) {
- if(eventCode == 0) {
- errn = decodeNBitUnsignedInteger(stream, 8, &(uint32));
- v2gLFA_EVSEFinePositioningSetupParametersType->SignalPulseDuration = (uint8_t)(uint32 + 0);
- } 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({urn:iso:15118:2:2016:MsgDataTypes}SignalPulseDuration) ? */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(eventCode == 0) {
- grammarID = 1587;
- } else {
- errn = EXI_DEVIANT_SUPPORT_NOT_DEPLOYED; /* or also typecast and nillable */
- }
- }
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 1692:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorOrder), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SignalPulseDuration)] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gLFA_EVSEFinePositioningSetupParametersType->SensorOrder.arrayLen < v2gLFA_EVSEFinePositioningSetupParametersType_SensorOrder_ARRAY_SIZE) {
- /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(errn == 0) {
- if(eventCode == 0) {
- errn = decodeNBitUnsignedInteger(stream, 8, &(uint32));
- v2gLFA_EVSEFinePositioningSetupParametersType->SensorOrder.array[v2gLFA_EVSEFinePositioningSetupParametersType->SensorOrder.arrayLen] = (uint8_t)(uint32 + 0);
- v2gLFA_EVSEFinePositioningSetupParametersType->SensorOrder.arrayLen++;
- } else {
- /* Second level event (e.g., xsi:type, xsi:nil, ...) */
- errn = EXI_UNSUPPORTED_EVENT_CODE_CHARACTERISTICS;
- }
- }
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- if(errn == 0) {
- /* valid EE for simple element START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorOrder) ? */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(eventCode == 0) {
- grammarID = 1693;
- } else {
- errn = EXI_DEVIANT_SUPPORT_NOT_DEPLOYED; /* or also typecast and nillable */
- }
- }
- break;
- case 1:
- /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(errn == 0) {
- if(eventCode == 0) {
- errn = decodeNBitUnsignedInteger(stream, 8, &(uint32));
- v2gLFA_EVSEFinePositioningSetupParametersType->SignalPulseDuration = (uint8_t)(uint32 + 0);
- } 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({urn:iso:15118:2:2016:MsgDataTypes}SignalPulseDuration) ? */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(eventCode == 0) {
- grammarID = 1587;
- } else {
- errn = EXI_DEVIANT_SUPPORT_NOT_DEPLOYED; /* or also typecast and nillable */
- }
- }
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 1693:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorOrder), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SignalPulseDuration)] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gLFA_EVSEFinePositioningSetupParametersType->SensorOrder.arrayLen < v2gLFA_EVSEFinePositioningSetupParametersType_SensorOrder_ARRAY_SIZE) {
- /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(errn == 0) {
- if(eventCode == 0) {
- errn = decodeNBitUnsignedInteger(stream, 8, &(uint32));
- v2gLFA_EVSEFinePositioningSetupParametersType->SensorOrder.array[v2gLFA_EVSEFinePositioningSetupParametersType->SensorOrder.arrayLen] = (uint8_t)(uint32 + 0);
- v2gLFA_EVSEFinePositioningSetupParametersType->SensorOrder.arrayLen++;
- } else {
- /* Second level event (e.g., xsi:type, xsi:nil, ...) */
- errn = EXI_UNSUPPORTED_EVENT_CODE_CHARACTERISTICS;
- }
- }
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- if(errn == 0) {
- /* valid EE for simple element START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorOrder) ? */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(eventCode == 0) {
- grammarID = 1694;
- } else {
- errn = EXI_DEVIANT_SUPPORT_NOT_DEPLOYED; /* or also typecast and nillable */
- }
- }
- break;
- case 1:
- /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(errn == 0) {
- if(eventCode == 0) {
- errn = decodeNBitUnsignedInteger(stream, 8, &(uint32));
- v2gLFA_EVSEFinePositioningSetupParametersType->SignalPulseDuration = (uint8_t)(uint32 + 0);
- } 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({urn:iso:15118:2:2016:MsgDataTypes}SignalPulseDuration) ? */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(eventCode == 0) {
- grammarID = 1587;
- } else {
- errn = EXI_DEVIANT_SUPPORT_NOT_DEPLOYED; /* or also typecast and nillable */
- }
- }
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 1694:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorOrder), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SignalPulseDuration)] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gLFA_EVSEFinePositioningSetupParametersType->SensorOrder.arrayLen < v2gLFA_EVSEFinePositioningSetupParametersType_SensorOrder_ARRAY_SIZE) {
- /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(errn == 0) {
- if(eventCode == 0) {
- errn = decodeNBitUnsignedInteger(stream, 8, &(uint32));
- v2gLFA_EVSEFinePositioningSetupParametersType->SensorOrder.array[v2gLFA_EVSEFinePositioningSetupParametersType->SensorOrder.arrayLen] = (uint8_t)(uint32 + 0);
- v2gLFA_EVSEFinePositioningSetupParametersType->SensorOrder.arrayLen++;
- } else {
- /* Second level event (e.g., xsi:type, xsi:nil, ...) */
- errn = EXI_UNSUPPORTED_EVENT_CODE_CHARACTERISTICS;
- }
- }
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- if(errn == 0) {
- /* valid EE for simple element START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorOrder) ? */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(eventCode == 0) {
- grammarID = 1695;
- } else {
- errn = EXI_DEVIANT_SUPPORT_NOT_DEPLOYED; /* or also typecast and nillable */
- }
- }
- break;
- case 1:
- /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(errn == 0) {
- if(eventCode == 0) {
- errn = decodeNBitUnsignedInteger(stream, 8, &(uint32));
- v2gLFA_EVSEFinePositioningSetupParametersType->SignalPulseDuration = (uint8_t)(uint32 + 0);
- } 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({urn:iso:15118:2:2016:MsgDataTypes}SignalPulseDuration) ? */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(eventCode == 0) {
- grammarID = 1587;
- } else {
- errn = EXI_DEVIANT_SUPPORT_NOT_DEPLOYED; /* or also typecast and nillable */
- }
- }
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 1695:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorOrder), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SignalPulseDuration)] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gLFA_EVSEFinePositioningSetupParametersType->SensorOrder.arrayLen < v2gLFA_EVSEFinePositioningSetupParametersType_SensorOrder_ARRAY_SIZE) {
- /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(errn == 0) {
- if(eventCode == 0) {
- errn = decodeNBitUnsignedInteger(stream, 8, &(uint32));
- v2gLFA_EVSEFinePositioningSetupParametersType->SensorOrder.array[v2gLFA_EVSEFinePositioningSetupParametersType->SensorOrder.arrayLen] = (uint8_t)(uint32 + 0);
- v2gLFA_EVSEFinePositioningSetupParametersType->SensorOrder.arrayLen++;
- } else {
- /* Second level event (e.g., xsi:type, xsi:nil, ...) */
- errn = EXI_UNSUPPORTED_EVENT_CODE_CHARACTERISTICS;
- }
- }
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- if(errn == 0) {
- /* valid EE for simple element START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorOrder) ? */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(eventCode == 0) {
- grammarID = 1696;
- } else {
- errn = EXI_DEVIANT_SUPPORT_NOT_DEPLOYED; /* or also typecast and nillable */
- }
- }
- break;
- case 1:
- /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(errn == 0) {
- if(eventCode == 0) {
- errn = decodeNBitUnsignedInteger(stream, 8, &(uint32));
- v2gLFA_EVSEFinePositioningSetupParametersType->SignalPulseDuration = (uint8_t)(uint32 + 0);
- } 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({urn:iso:15118:2:2016:MsgDataTypes}SignalPulseDuration) ? */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(eventCode == 0) {
- grammarID = 1587;
- } else {
- errn = EXI_DEVIANT_SUPPORT_NOT_DEPLOYED; /* or also typecast and nillable */
- }
- }
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 1696:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorOrder), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SignalPulseDuration)] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gLFA_EVSEFinePositioningSetupParametersType->SensorOrder.arrayLen < v2gLFA_EVSEFinePositioningSetupParametersType_SensorOrder_ARRAY_SIZE) {
- /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(errn == 0) {
- if(eventCode == 0) {
- errn = decodeNBitUnsignedInteger(stream, 8, &(uint32));
- v2gLFA_EVSEFinePositioningSetupParametersType->SensorOrder.array[v2gLFA_EVSEFinePositioningSetupParametersType->SensorOrder.arrayLen] = (uint8_t)(uint32 + 0);
- v2gLFA_EVSEFinePositioningSetupParametersType->SensorOrder.arrayLen++;
- } else {
- /* Second level event (e.g., xsi:type, xsi:nil, ...) */
- errn = EXI_UNSUPPORTED_EVENT_CODE_CHARACTERISTICS;
- }
- }
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- if(errn == 0) {
- /* valid EE for simple element START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorOrder) ? */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(eventCode == 0) {
- grammarID = 1697;
- } else {
- errn = EXI_DEVIANT_SUPPORT_NOT_DEPLOYED; /* or also typecast and nillable */
- }
- }
- break;
- case 1:
- /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(errn == 0) {
- if(eventCode == 0) {
- errn = decodeNBitUnsignedInteger(stream, 8, &(uint32));
- v2gLFA_EVSEFinePositioningSetupParametersType->SignalPulseDuration = (uint8_t)(uint32 + 0);
- } 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({urn:iso:15118:2:2016:MsgDataTypes}SignalPulseDuration) ? */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(eventCode == 0) {
- grammarID = 1587;
- } else {
- errn = EXI_DEVIANT_SUPPORT_NOT_DEPLOYED; /* or also typecast and nillable */
- }
- }
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 1697:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorOrder), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SignalPulseDuration)] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gLFA_EVSEFinePositioningSetupParametersType->SensorOrder.arrayLen < v2gLFA_EVSEFinePositioningSetupParametersType_SensorOrder_ARRAY_SIZE) {
- /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(errn == 0) {
- if(eventCode == 0) {
- errn = decodeNBitUnsignedInteger(stream, 8, &(uint32));
- v2gLFA_EVSEFinePositioningSetupParametersType->SensorOrder.array[v2gLFA_EVSEFinePositioningSetupParametersType->SensorOrder.arrayLen] = (uint8_t)(uint32 + 0);
- v2gLFA_EVSEFinePositioningSetupParametersType->SensorOrder.arrayLen++;
- } else {
- /* Second level event (e.g., xsi:type, xsi:nil, ...) */
- errn = EXI_UNSUPPORTED_EVENT_CODE_CHARACTERISTICS;
- }
- }
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- if(errn == 0) {
- /* valid EE for simple element START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorOrder) ? */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(eventCode == 0) {
- grammarID = 1698;
- } else {
- errn = EXI_DEVIANT_SUPPORT_NOT_DEPLOYED; /* or also typecast and nillable */
- }
- }
- break;
- case 1:
- /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(errn == 0) {
- if(eventCode == 0) {
- errn = decodeNBitUnsignedInteger(stream, 8, &(uint32));
- v2gLFA_EVSEFinePositioningSetupParametersType->SignalPulseDuration = (uint8_t)(uint32 + 0);
- } 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({urn:iso:15118:2:2016:MsgDataTypes}SignalPulseDuration) ? */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(eventCode == 0) {
- grammarID = 1587;
- } else {
- errn = EXI_DEVIANT_SUPPORT_NOT_DEPLOYED; /* or also typecast and nillable */
- }
- }
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 1698:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorOrder), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SignalPulseDuration)] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gLFA_EVSEFinePositioningSetupParametersType->SensorOrder.arrayLen < v2gLFA_EVSEFinePositioningSetupParametersType_SensorOrder_ARRAY_SIZE) {
- /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(errn == 0) {
- if(eventCode == 0) {
- errn = decodeNBitUnsignedInteger(stream, 8, &(uint32));
- v2gLFA_EVSEFinePositioningSetupParametersType->SensorOrder.array[v2gLFA_EVSEFinePositioningSetupParametersType->SensorOrder.arrayLen] = (uint8_t)(uint32 + 0);
- v2gLFA_EVSEFinePositioningSetupParametersType->SensorOrder.arrayLen++;
- } else {
- /* Second level event (e.g., xsi:type, xsi:nil, ...) */
- errn = EXI_UNSUPPORTED_EVENT_CODE_CHARACTERISTICS;
- }
- }
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- if(errn == 0) {
- /* valid EE for simple element START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorOrder) ? */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(eventCode == 0) {
- grammarID = 1699;
- } else {
- errn = EXI_DEVIANT_SUPPORT_NOT_DEPLOYED; /* or also typecast and nillable */
- }
- }
- break;
- case 1:
- /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(errn == 0) {
- if(eventCode == 0) {
- errn = decodeNBitUnsignedInteger(stream, 8, &(uint32));
- v2gLFA_EVSEFinePositioningSetupParametersType->SignalPulseDuration = (uint8_t)(uint32 + 0);
- } 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({urn:iso:15118:2:2016:MsgDataTypes}SignalPulseDuration) ? */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(eventCode == 0) {
- grammarID = 1587;
- } else {
- errn = EXI_DEVIANT_SUPPORT_NOT_DEPLOYED; /* or also typecast and nillable */
- }
- }
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 1699:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorOrder), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SignalPulseDuration)] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gLFA_EVSEFinePositioningSetupParametersType->SensorOrder.arrayLen < v2gLFA_EVSEFinePositioningSetupParametersType_SensorOrder_ARRAY_SIZE) {
- /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(errn == 0) {
- if(eventCode == 0) {
- errn = decodeNBitUnsignedInteger(stream, 8, &(uint32));
- v2gLFA_EVSEFinePositioningSetupParametersType->SensorOrder.array[v2gLFA_EVSEFinePositioningSetupParametersType->SensorOrder.arrayLen] = (uint8_t)(uint32 + 0);
- v2gLFA_EVSEFinePositioningSetupParametersType->SensorOrder.arrayLen++;
- } else {
- /* Second level event (e.g., xsi:type, xsi:nil, ...) */
- errn = EXI_UNSUPPORTED_EVENT_CODE_CHARACTERISTICS;
- }
- }
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- if(errn == 0) {
- /* valid EE for simple element START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorOrder) ? */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(eventCode == 0) {
- grammarID = 1700;
- } else {
- errn = EXI_DEVIANT_SUPPORT_NOT_DEPLOYED; /* or also typecast and nillable */
- }
- }
- break;
- case 1:
- /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(errn == 0) {
- if(eventCode == 0) {
- errn = decodeNBitUnsignedInteger(stream, 8, &(uint32));
- v2gLFA_EVSEFinePositioningSetupParametersType->SignalPulseDuration = (uint8_t)(uint32 + 0);
- } 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({urn:iso:15118:2:2016:MsgDataTypes}SignalPulseDuration) ? */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(eventCode == 0) {
- grammarID = 1587;
- } else {
- errn = EXI_DEVIANT_SUPPORT_NOT_DEPLOYED; /* or also typecast and nillable */
- }
- }
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 1700:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorOrder), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SignalPulseDuration)] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gLFA_EVSEFinePositioningSetupParametersType->SensorOrder.arrayLen < v2gLFA_EVSEFinePositioningSetupParametersType_SensorOrder_ARRAY_SIZE) {
- /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(errn == 0) {
- if(eventCode == 0) {
- errn = decodeNBitUnsignedInteger(stream, 8, &(uint32));
- v2gLFA_EVSEFinePositioningSetupParametersType->SensorOrder.array[v2gLFA_EVSEFinePositioningSetupParametersType->SensorOrder.arrayLen] = (uint8_t)(uint32 + 0);
- v2gLFA_EVSEFinePositioningSetupParametersType->SensorOrder.arrayLen++;
- } else {
- /* Second level event (e.g., xsi:type, xsi:nil, ...) */
- errn = EXI_UNSUPPORTED_EVENT_CODE_CHARACTERISTICS;
- }
- }
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- if(errn == 0) {
- /* valid EE for simple element START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorOrder) ? */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(eventCode == 0) {
- grammarID = 1701;
- } else {
- errn = EXI_DEVIANT_SUPPORT_NOT_DEPLOYED; /* or also typecast and nillable */
- }
- }
- break;
- case 1:
- /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(errn == 0) {
- if(eventCode == 0) {
- errn = decodeNBitUnsignedInteger(stream, 8, &(uint32));
- v2gLFA_EVSEFinePositioningSetupParametersType->SignalPulseDuration = (uint8_t)(uint32 + 0);
- } 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({urn:iso:15118:2:2016:MsgDataTypes}SignalPulseDuration) ? */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(eventCode == 0) {
- grammarID = 1587;
- } else {
- errn = EXI_DEVIANT_SUPPORT_NOT_DEPLOYED; /* or also typecast and nillable */
- }
- }
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 1701:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorOrder), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SignalPulseDuration)] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gLFA_EVSEFinePositioningSetupParametersType->SensorOrder.arrayLen < v2gLFA_EVSEFinePositioningSetupParametersType_SensorOrder_ARRAY_SIZE) {
- /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(errn == 0) {
- if(eventCode == 0) {
- errn = decodeNBitUnsignedInteger(stream, 8, &(uint32));
- v2gLFA_EVSEFinePositioningSetupParametersType->SensorOrder.array[v2gLFA_EVSEFinePositioningSetupParametersType->SensorOrder.arrayLen] = (uint8_t)(uint32 + 0);
- v2gLFA_EVSEFinePositioningSetupParametersType->SensorOrder.arrayLen++;
- } else {
- /* Second level event (e.g., xsi:type, xsi:nil, ...) */
- errn = EXI_UNSUPPORTED_EVENT_CODE_CHARACTERISTICS;
- }
- }
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- if(errn == 0) {
- /* valid EE for simple element START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorOrder) ? */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(eventCode == 0) {
- grammarID = 1702;
- } else {
- errn = EXI_DEVIANT_SUPPORT_NOT_DEPLOYED; /* or also typecast and nillable */
- }
- }
- break;
- case 1:
- /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(errn == 0) {
- if(eventCode == 0) {
- errn = decodeNBitUnsignedInteger(stream, 8, &(uint32));
- v2gLFA_EVSEFinePositioningSetupParametersType->SignalPulseDuration = (uint8_t)(uint32 + 0);
- } 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({urn:iso:15118:2:2016:MsgDataTypes}SignalPulseDuration) ? */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(eventCode == 0) {
- grammarID = 1587;
- } else {
- errn = EXI_DEVIANT_SUPPORT_NOT_DEPLOYED; /* or also typecast and nillable */
- }
- }
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 1702:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorOrder), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SignalPulseDuration)] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gLFA_EVSEFinePositioningSetupParametersType->SensorOrder.arrayLen < v2gLFA_EVSEFinePositioningSetupParametersType_SensorOrder_ARRAY_SIZE) {
- /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(errn == 0) {
- if(eventCode == 0) {
- errn = decodeNBitUnsignedInteger(stream, 8, &(uint32));
- v2gLFA_EVSEFinePositioningSetupParametersType->SensorOrder.array[v2gLFA_EVSEFinePositioningSetupParametersType->SensorOrder.arrayLen] = (uint8_t)(uint32 + 0);
- v2gLFA_EVSEFinePositioningSetupParametersType->SensorOrder.arrayLen++;
- } else {
- /* Second level event (e.g., xsi:type, xsi:nil, ...) */
- errn = EXI_UNSUPPORTED_EVENT_CODE_CHARACTERISTICS;
- }
- }
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- if(errn == 0) {
- /* valid EE for simple element START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorOrder) ? */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(eventCode == 0) {
- grammarID = 1703;
- } else {
- errn = EXI_DEVIANT_SUPPORT_NOT_DEPLOYED; /* or also typecast and nillable */
- }
- }
- break;
- case 1:
- /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(errn == 0) {
- if(eventCode == 0) {
- errn = decodeNBitUnsignedInteger(stream, 8, &(uint32));
- v2gLFA_EVSEFinePositioningSetupParametersType->SignalPulseDuration = (uint8_t)(uint32 + 0);
- } 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({urn:iso:15118:2:2016:MsgDataTypes}SignalPulseDuration) ? */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(eventCode == 0) {
- grammarID = 1587;
- } else {
- errn = EXI_DEVIANT_SUPPORT_NOT_DEPLOYED; /* or also typecast and nillable */
- }
- }
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 1703:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorOrder), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SignalPulseDuration)] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gLFA_EVSEFinePositioningSetupParametersType->SensorOrder.arrayLen < v2gLFA_EVSEFinePositioningSetupParametersType_SensorOrder_ARRAY_SIZE) {
- /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(errn == 0) {
- if(eventCode == 0) {
- errn = decodeNBitUnsignedInteger(stream, 8, &(uint32));
- v2gLFA_EVSEFinePositioningSetupParametersType->SensorOrder.array[v2gLFA_EVSEFinePositioningSetupParametersType->SensorOrder.arrayLen] = (uint8_t)(uint32 + 0);
- v2gLFA_EVSEFinePositioningSetupParametersType->SensorOrder.arrayLen++;
- } else {
- /* Second level event (e.g., xsi:type, xsi:nil, ...) */
- errn = EXI_UNSUPPORTED_EVENT_CODE_CHARACTERISTICS;
- }
- }
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- if(errn == 0) {
- /* valid EE for simple element START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorOrder) ? */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(eventCode == 0) {
- grammarID = 1704;
- } else {
- errn = EXI_DEVIANT_SUPPORT_NOT_DEPLOYED; /* or also typecast and nillable */
- }
- }
- break;
- case 1:
- /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(errn == 0) {
- if(eventCode == 0) {
- errn = decodeNBitUnsignedInteger(stream, 8, &(uint32));
- v2gLFA_EVSEFinePositioningSetupParametersType->SignalPulseDuration = (uint8_t)(uint32 + 0);
- } 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({urn:iso:15118:2:2016:MsgDataTypes}SignalPulseDuration) ? */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(eventCode == 0) {
- grammarID = 1587;
- } else {
- errn = EXI_DEVIANT_SUPPORT_NOT_DEPLOYED; /* or also typecast and nillable */
- }
- }
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 1704:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorOrder), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SignalPulseDuration)] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gLFA_EVSEFinePositioningSetupParametersType->SensorOrder.arrayLen < v2gLFA_EVSEFinePositioningSetupParametersType_SensorOrder_ARRAY_SIZE) {
- /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(errn == 0) {
- if(eventCode == 0) {
- errn = decodeNBitUnsignedInteger(stream, 8, &(uint32));
- v2gLFA_EVSEFinePositioningSetupParametersType->SensorOrder.array[v2gLFA_EVSEFinePositioningSetupParametersType->SensorOrder.arrayLen] = (uint8_t)(uint32 + 0);
- v2gLFA_EVSEFinePositioningSetupParametersType->SensorOrder.arrayLen++;
- } else {
- /* Second level event (e.g., xsi:type, xsi:nil, ...) */
- errn = EXI_UNSUPPORTED_EVENT_CODE_CHARACTERISTICS;
- }
- }
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- if(errn == 0) {
- /* valid EE for simple element START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorOrder) ? */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(eventCode == 0) {
- grammarID = 1705;
- } else {
- errn = EXI_DEVIANT_SUPPORT_NOT_DEPLOYED; /* or also typecast and nillable */
- }
- }
- break;
- case 1:
- /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(errn == 0) {
- if(eventCode == 0) {
- errn = decodeNBitUnsignedInteger(stream, 8, &(uint32));
- v2gLFA_EVSEFinePositioningSetupParametersType->SignalPulseDuration = (uint8_t)(uint32 + 0);
- } 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({urn:iso:15118:2:2016:MsgDataTypes}SignalPulseDuration) ? */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(eventCode == 0) {
- grammarID = 1587;
- } else {
- errn = EXI_DEVIANT_SUPPORT_NOT_DEPLOYED; /* or also typecast and nillable */
- }
- }
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 1705:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorOrder), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SignalPulseDuration)] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gLFA_EVSEFinePositioningSetupParametersType->SensorOrder.arrayLen < v2gLFA_EVSEFinePositioningSetupParametersType_SensorOrder_ARRAY_SIZE) {
- /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(errn == 0) {
- if(eventCode == 0) {
- errn = decodeNBitUnsignedInteger(stream, 8, &(uint32));
- v2gLFA_EVSEFinePositioningSetupParametersType->SensorOrder.array[v2gLFA_EVSEFinePositioningSetupParametersType->SensorOrder.arrayLen] = (uint8_t)(uint32 + 0);
- v2gLFA_EVSEFinePositioningSetupParametersType->SensorOrder.arrayLen++;
- } else {
- /* Second level event (e.g., xsi:type, xsi:nil, ...) */
- errn = EXI_UNSUPPORTED_EVENT_CODE_CHARACTERISTICS;
- }
- }
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- if(errn == 0) {
- /* valid EE for simple element START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorOrder) ? */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(eventCode == 0) {
- grammarID = 1706;
- } else {
- errn = EXI_DEVIANT_SUPPORT_NOT_DEPLOYED; /* or also typecast and nillable */
- }
- }
- break;
- case 1:
- /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(errn == 0) {
- if(eventCode == 0) {
- errn = decodeNBitUnsignedInteger(stream, 8, &(uint32));
- v2gLFA_EVSEFinePositioningSetupParametersType->SignalPulseDuration = (uint8_t)(uint32 + 0);
- } 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({urn:iso:15118:2:2016:MsgDataTypes}SignalPulseDuration) ? */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(eventCode == 0) {
- grammarID = 1587;
- } else {
- errn = EXI_DEVIANT_SUPPORT_NOT_DEPLOYED; /* or also typecast and nillable */
- }
- }
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 1706:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorOrder), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SignalPulseDuration)] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gLFA_EVSEFinePositioningSetupParametersType->SensorOrder.arrayLen < v2gLFA_EVSEFinePositioningSetupParametersType_SensorOrder_ARRAY_SIZE) {
- /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(errn == 0) {
- if(eventCode == 0) {
- errn = decodeNBitUnsignedInteger(stream, 8, &(uint32));
- v2gLFA_EVSEFinePositioningSetupParametersType->SensorOrder.array[v2gLFA_EVSEFinePositioningSetupParametersType->SensorOrder.arrayLen] = (uint8_t)(uint32 + 0);
- v2gLFA_EVSEFinePositioningSetupParametersType->SensorOrder.arrayLen++;
- } else {
- /* Second level event (e.g., xsi:type, xsi:nil, ...) */
- errn = EXI_UNSUPPORTED_EVENT_CODE_CHARACTERISTICS;
- }
- }
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- if(errn == 0) {
- /* valid EE for simple element START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorOrder) ? */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(eventCode == 0) {
- grammarID = 1707;
- } else {
- errn = EXI_DEVIANT_SUPPORT_NOT_DEPLOYED; /* or also typecast and nillable */
- }
- }
- break;
- case 1:
- /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(errn == 0) {
- if(eventCode == 0) {
- errn = decodeNBitUnsignedInteger(stream, 8, &(uint32));
- v2gLFA_EVSEFinePositioningSetupParametersType->SignalPulseDuration = (uint8_t)(uint32 + 0);
- } 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({urn:iso:15118:2:2016:MsgDataTypes}SignalPulseDuration) ? */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(eventCode == 0) {
- grammarID = 1587;
- } else {
- errn = EXI_DEVIANT_SUPPORT_NOT_DEPLOYED; /* or also typecast and nillable */
- }
- }
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 1707:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorOrder), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SignalPulseDuration)] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gLFA_EVSEFinePositioningSetupParametersType->SensorOrder.arrayLen < v2gLFA_EVSEFinePositioningSetupParametersType_SensorOrder_ARRAY_SIZE) {
- /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(errn == 0) {
- if(eventCode == 0) {
- errn = decodeNBitUnsignedInteger(stream, 8, &(uint32));
- v2gLFA_EVSEFinePositioningSetupParametersType->SensorOrder.array[v2gLFA_EVSEFinePositioningSetupParametersType->SensorOrder.arrayLen] = (uint8_t)(uint32 + 0);
- v2gLFA_EVSEFinePositioningSetupParametersType->SensorOrder.arrayLen++;
- } else {
- /* Second level event (e.g., xsi:type, xsi:nil, ...) */
- errn = EXI_UNSUPPORTED_EVENT_CODE_CHARACTERISTICS;
- }
- }
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- if(errn == 0) {
- /* valid EE for simple element START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorOrder) ? */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(eventCode == 0) {
- grammarID = 1708;
- } else {
- errn = EXI_DEVIANT_SUPPORT_NOT_DEPLOYED; /* or also typecast and nillable */
- }
- }
- break;
- case 1:
- /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(errn == 0) {
- if(eventCode == 0) {
- errn = decodeNBitUnsignedInteger(stream, 8, &(uint32));
- v2gLFA_EVSEFinePositioningSetupParametersType->SignalPulseDuration = (uint8_t)(uint32 + 0);
- } 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({urn:iso:15118:2:2016:MsgDataTypes}SignalPulseDuration) ? */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(eventCode == 0) {
- grammarID = 1587;
- } else {
- errn = EXI_DEVIANT_SUPPORT_NOT_DEPLOYED; /* or also typecast and nillable */
- }
- }
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 1708:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorOrder), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SignalPulseDuration)] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gLFA_EVSEFinePositioningSetupParametersType->SensorOrder.arrayLen < v2gLFA_EVSEFinePositioningSetupParametersType_SensorOrder_ARRAY_SIZE) {
- /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(errn == 0) {
- if(eventCode == 0) {
- errn = decodeNBitUnsignedInteger(stream, 8, &(uint32));
- v2gLFA_EVSEFinePositioningSetupParametersType->SensorOrder.array[v2gLFA_EVSEFinePositioningSetupParametersType->SensorOrder.arrayLen] = (uint8_t)(uint32 + 0);
- v2gLFA_EVSEFinePositioningSetupParametersType->SensorOrder.arrayLen++;
- } else {
- /* Second level event (e.g., xsi:type, xsi:nil, ...) */
- errn = EXI_UNSUPPORTED_EVENT_CODE_CHARACTERISTICS;
- }
- }
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- if(errn == 0) {
- /* valid EE for simple element START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorOrder) ? */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(eventCode == 0) {
- grammarID = 1709;
- } else {
- errn = EXI_DEVIANT_SUPPORT_NOT_DEPLOYED; /* or also typecast and nillable */
- }
- }
- break;
- case 1:
- /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(errn == 0) {
- if(eventCode == 0) {
- errn = decodeNBitUnsignedInteger(stream, 8, &(uint32));
- v2gLFA_EVSEFinePositioningSetupParametersType->SignalPulseDuration = (uint8_t)(uint32 + 0);
- } 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({urn:iso:15118:2:2016:MsgDataTypes}SignalPulseDuration) ? */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(eventCode == 0) {
- grammarID = 1587;
- } else {
- errn = EXI_DEVIANT_SUPPORT_NOT_DEPLOYED; /* or also typecast and nillable */
- }
- }
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 1709:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorOrder), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SignalPulseDuration)] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gLFA_EVSEFinePositioningSetupParametersType->SensorOrder.arrayLen < v2gLFA_EVSEFinePositioningSetupParametersType_SensorOrder_ARRAY_SIZE) {
- /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(errn == 0) {
- if(eventCode == 0) {
- errn = decodeNBitUnsignedInteger(stream, 8, &(uint32));
- v2gLFA_EVSEFinePositioningSetupParametersType->SensorOrder.array[v2gLFA_EVSEFinePositioningSetupParametersType->SensorOrder.arrayLen] = (uint8_t)(uint32 + 0);
- v2gLFA_EVSEFinePositioningSetupParametersType->SensorOrder.arrayLen++;
- } else {
- /* Second level event (e.g., xsi:type, xsi:nil, ...) */
- errn = EXI_UNSUPPORTED_EVENT_CODE_CHARACTERISTICS;
- }
- }
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- if(errn == 0) {
- /* valid EE for simple element START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorOrder) ? */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(eventCode == 0) {
- grammarID = 1710;
- } else {
- errn = EXI_DEVIANT_SUPPORT_NOT_DEPLOYED; /* or also typecast and nillable */
- }
- }
- break;
- case 1:
- /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(errn == 0) {
- if(eventCode == 0) {
- errn = decodeNBitUnsignedInteger(stream, 8, &(uint32));
- v2gLFA_EVSEFinePositioningSetupParametersType->SignalPulseDuration = (uint8_t)(uint32 + 0);
- } 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({urn:iso:15118:2:2016:MsgDataTypes}SignalPulseDuration) ? */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(eventCode == 0) {
- grammarID = 1587;
- } else {
- errn = EXI_DEVIANT_SUPPORT_NOT_DEPLOYED; /* or also typecast and nillable */
- }
- }
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 1710:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorOrder), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SignalPulseDuration)] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gLFA_EVSEFinePositioningSetupParametersType->SensorOrder.arrayLen < v2gLFA_EVSEFinePositioningSetupParametersType_SensorOrder_ARRAY_SIZE) {
- /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(errn == 0) {
- if(eventCode == 0) {
- errn = decodeNBitUnsignedInteger(stream, 8, &(uint32));
- v2gLFA_EVSEFinePositioningSetupParametersType->SensorOrder.array[v2gLFA_EVSEFinePositioningSetupParametersType->SensorOrder.arrayLen] = (uint8_t)(uint32 + 0);
- v2gLFA_EVSEFinePositioningSetupParametersType->SensorOrder.arrayLen++;
- } else {
- /* Second level event (e.g., xsi:type, xsi:nil, ...) */
- errn = EXI_UNSUPPORTED_EVENT_CODE_CHARACTERISTICS;
- }
- }
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- if(errn == 0) {
- /* valid EE for simple element START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorOrder) ? */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(eventCode == 0) {
- grammarID = 1711;
- } else {
- errn = EXI_DEVIANT_SUPPORT_NOT_DEPLOYED; /* or also typecast and nillable */
- }
- }
- break;
- case 1:
- /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(errn == 0) {
- if(eventCode == 0) {
- errn = decodeNBitUnsignedInteger(stream, 8, &(uint32));
- v2gLFA_EVSEFinePositioningSetupParametersType->SignalPulseDuration = (uint8_t)(uint32 + 0);
- } 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({urn:iso:15118:2:2016:MsgDataTypes}SignalPulseDuration) ? */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(eventCode == 0) {
- grammarID = 1587;
- } else {
- errn = EXI_DEVIANT_SUPPORT_NOT_DEPLOYED; /* or also typecast and nillable */
- }
- }
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 1711:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorOrder), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SignalPulseDuration)] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gLFA_EVSEFinePositioningSetupParametersType->SensorOrder.arrayLen < v2gLFA_EVSEFinePositioningSetupParametersType_SensorOrder_ARRAY_SIZE) {
- /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(errn == 0) {
- if(eventCode == 0) {
- errn = decodeNBitUnsignedInteger(stream, 8, &(uint32));
- v2gLFA_EVSEFinePositioningSetupParametersType->SensorOrder.array[v2gLFA_EVSEFinePositioningSetupParametersType->SensorOrder.arrayLen] = (uint8_t)(uint32 + 0);
- v2gLFA_EVSEFinePositioningSetupParametersType->SensorOrder.arrayLen++;
- } else {
- /* Second level event (e.g., xsi:type, xsi:nil, ...) */
- errn = EXI_UNSUPPORTED_EVENT_CODE_CHARACTERISTICS;
- }
- }
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- if(errn == 0) {
- /* valid EE for simple element START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorOrder) ? */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(eventCode == 0) {
- grammarID = 1712;
- } else {
- errn = EXI_DEVIANT_SUPPORT_NOT_DEPLOYED; /* or also typecast and nillable */
- }
- }
- break;
- case 1:
- /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(errn == 0) {
- if(eventCode == 0) {
- errn = decodeNBitUnsignedInteger(stream, 8, &(uint32));
- v2gLFA_EVSEFinePositioningSetupParametersType->SignalPulseDuration = (uint8_t)(uint32 + 0);
- } 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({urn:iso:15118:2:2016:MsgDataTypes}SignalPulseDuration) ? */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(eventCode == 0) {
- grammarID = 1587;
- } else {
- errn = EXI_DEVIANT_SUPPORT_NOT_DEPLOYED; /* or also typecast and nillable */
- }
- }
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 1712:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorOrder), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SignalPulseDuration)] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gLFA_EVSEFinePositioningSetupParametersType->SensorOrder.arrayLen < v2gLFA_EVSEFinePositioningSetupParametersType_SensorOrder_ARRAY_SIZE) {
- /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(errn == 0) {
- if(eventCode == 0) {
- errn = decodeNBitUnsignedInteger(stream, 8, &(uint32));
- v2gLFA_EVSEFinePositioningSetupParametersType->SensorOrder.array[v2gLFA_EVSEFinePositioningSetupParametersType->SensorOrder.arrayLen] = (uint8_t)(uint32 + 0);
- v2gLFA_EVSEFinePositioningSetupParametersType->SensorOrder.arrayLen++;
- } else {
- /* Second level event (e.g., xsi:type, xsi:nil, ...) */
- errn = EXI_UNSUPPORTED_EVENT_CODE_CHARACTERISTICS;
- }
- }
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- if(errn == 0) {
- /* valid EE for simple element START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorOrder) ? */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(eventCode == 0) {
- grammarID = 1713;
- } else {
- errn = EXI_DEVIANT_SUPPORT_NOT_DEPLOYED; /* or also typecast and nillable */
- }
- }
- break;
- case 1:
- /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(errn == 0) {
- if(eventCode == 0) {
- errn = decodeNBitUnsignedInteger(stream, 8, &(uint32));
- v2gLFA_EVSEFinePositioningSetupParametersType->SignalPulseDuration = (uint8_t)(uint32 + 0);
- } 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({urn:iso:15118:2:2016:MsgDataTypes}SignalPulseDuration) ? */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(eventCode == 0) {
- grammarID = 1587;
- } else {
- errn = EXI_DEVIANT_SUPPORT_NOT_DEPLOYED; /* or also typecast and nillable */
- }
- }
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 1713:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorOrder), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SignalPulseDuration)] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gLFA_EVSEFinePositioningSetupParametersType->SensorOrder.arrayLen < v2gLFA_EVSEFinePositioningSetupParametersType_SensorOrder_ARRAY_SIZE) {
- /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(errn == 0) {
- if(eventCode == 0) {
- errn = decodeNBitUnsignedInteger(stream, 8, &(uint32));
- v2gLFA_EVSEFinePositioningSetupParametersType->SensorOrder.array[v2gLFA_EVSEFinePositioningSetupParametersType->SensorOrder.arrayLen] = (uint8_t)(uint32 + 0);
- v2gLFA_EVSEFinePositioningSetupParametersType->SensorOrder.arrayLen++;
- } else {
- /* Second level event (e.g., xsi:type, xsi:nil, ...) */
- errn = EXI_UNSUPPORTED_EVENT_CODE_CHARACTERISTICS;
- }
- }
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- if(errn == 0) {
- /* valid EE for simple element START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorOrder) ? */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(eventCode == 0) {
- grammarID = 1714;
- } else {
- errn = EXI_DEVIANT_SUPPORT_NOT_DEPLOYED; /* or also typecast and nillable */
- }
- }
- break;
- case 1:
- /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(errn == 0) {
- if(eventCode == 0) {
- errn = decodeNBitUnsignedInteger(stream, 8, &(uint32));
- v2gLFA_EVSEFinePositioningSetupParametersType->SignalPulseDuration = (uint8_t)(uint32 + 0);
- } 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({urn:iso:15118:2:2016:MsgDataTypes}SignalPulseDuration) ? */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(eventCode == 0) {
- grammarID = 1587;
- } else {
- errn = EXI_DEVIANT_SUPPORT_NOT_DEPLOYED; /* or also typecast and nillable */
- }
- }
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 1714:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorOrder), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SignalPulseDuration)] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gLFA_EVSEFinePositioningSetupParametersType->SensorOrder.arrayLen < v2gLFA_EVSEFinePositioningSetupParametersType_SensorOrder_ARRAY_SIZE) {
- /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(errn == 0) {
- if(eventCode == 0) {
- errn = decodeNBitUnsignedInteger(stream, 8, &(uint32));
- v2gLFA_EVSEFinePositioningSetupParametersType->SensorOrder.array[v2gLFA_EVSEFinePositioningSetupParametersType->SensorOrder.arrayLen] = (uint8_t)(uint32 + 0);
- v2gLFA_EVSEFinePositioningSetupParametersType->SensorOrder.arrayLen++;
- } else {
- /* Second level event (e.g., xsi:type, xsi:nil, ...) */
- errn = EXI_UNSUPPORTED_EVENT_CODE_CHARACTERISTICS;
- }
- }
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- if(errn == 0) {
- /* valid EE for simple element START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorOrder) ? */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(eventCode == 0) {
- grammarID = 1715;
- } else {
- errn = EXI_DEVIANT_SUPPORT_NOT_DEPLOYED; /* or also typecast and nillable */
- }
- }
- break;
- case 1:
- /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(errn == 0) {
- if(eventCode == 0) {
- errn = decodeNBitUnsignedInteger(stream, 8, &(uint32));
- v2gLFA_EVSEFinePositioningSetupParametersType->SignalPulseDuration = (uint8_t)(uint32 + 0);
- } 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({urn:iso:15118:2:2016:MsgDataTypes}SignalPulseDuration) ? */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(eventCode == 0) {
- grammarID = 1587;
- } else {
- errn = EXI_DEVIANT_SUPPORT_NOT_DEPLOYED; /* or also typecast and nillable */
- }
- }
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 1715:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorOrder), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SignalPulseDuration)] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gLFA_EVSEFinePositioningSetupParametersType->SensorOrder.arrayLen < v2gLFA_EVSEFinePositioningSetupParametersType_SensorOrder_ARRAY_SIZE) {
- /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(errn == 0) {
- if(eventCode == 0) {
- errn = decodeNBitUnsignedInteger(stream, 8, &(uint32));
- v2gLFA_EVSEFinePositioningSetupParametersType->SensorOrder.array[v2gLFA_EVSEFinePositioningSetupParametersType->SensorOrder.arrayLen] = (uint8_t)(uint32 + 0);
- v2gLFA_EVSEFinePositioningSetupParametersType->SensorOrder.arrayLen++;
- } else {
- /* Second level event (e.g., xsi:type, xsi:nil, ...) */
- errn = EXI_UNSUPPORTED_EVENT_CODE_CHARACTERISTICS;
- }
- }
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- if(errn == 0) {
- /* valid EE for simple element START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorOrder) ? */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(eventCode == 0) {
- grammarID = 1716;
- } else {
- errn = EXI_DEVIANT_SUPPORT_NOT_DEPLOYED; /* or also typecast and nillable */
- }
- }
- break;
- case 1:
- /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(errn == 0) {
- if(eventCode == 0) {
- errn = decodeNBitUnsignedInteger(stream, 8, &(uint32));
- v2gLFA_EVSEFinePositioningSetupParametersType->SignalPulseDuration = (uint8_t)(uint32 + 0);
- } 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({urn:iso:15118:2:2016:MsgDataTypes}SignalPulseDuration) ? */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(eventCode == 0) {
- grammarID = 1587;
- } else {
- errn = EXI_DEVIANT_SUPPORT_NOT_DEPLOYED; /* or also typecast and nillable */
- }
- }
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 1716:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorOrder), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SignalPulseDuration)] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gLFA_EVSEFinePositioningSetupParametersType->SensorOrder.arrayLen < v2gLFA_EVSEFinePositioningSetupParametersType_SensorOrder_ARRAY_SIZE) {
- /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(errn == 0) {
- if(eventCode == 0) {
- errn = decodeNBitUnsignedInteger(stream, 8, &(uint32));
- v2gLFA_EVSEFinePositioningSetupParametersType->SensorOrder.array[v2gLFA_EVSEFinePositioningSetupParametersType->SensorOrder.arrayLen] = (uint8_t)(uint32 + 0);
- v2gLFA_EVSEFinePositioningSetupParametersType->SensorOrder.arrayLen++;
- } else {
- /* Second level event (e.g., xsi:type, xsi:nil, ...) */
- errn = EXI_UNSUPPORTED_EVENT_CODE_CHARACTERISTICS;
- }
- }
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- if(errn == 0) {
- /* valid EE for simple element START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorOrder) ? */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(eventCode == 0) {
- grammarID = 1717;
- } else {
- errn = EXI_DEVIANT_SUPPORT_NOT_DEPLOYED; /* or also typecast and nillable */
- }
- }
- break;
- case 1:
- /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(errn == 0) {
- if(eventCode == 0) {
- errn = decodeNBitUnsignedInteger(stream, 8, &(uint32));
- v2gLFA_EVSEFinePositioningSetupParametersType->SignalPulseDuration = (uint8_t)(uint32 + 0);
- } 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({urn:iso:15118:2:2016:MsgDataTypes}SignalPulseDuration) ? */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(eventCode == 0) {
- grammarID = 1587;
- } else {
- errn = EXI_DEVIANT_SUPPORT_NOT_DEPLOYED; /* or also typecast and nillable */
- }
- }
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 1717:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorOrder), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SignalPulseDuration)] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gLFA_EVSEFinePositioningSetupParametersType->SensorOrder.arrayLen < v2gLFA_EVSEFinePositioningSetupParametersType_SensorOrder_ARRAY_SIZE) {
- /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(errn == 0) {
- if(eventCode == 0) {
- errn = decodeNBitUnsignedInteger(stream, 8, &(uint32));
- v2gLFA_EVSEFinePositioningSetupParametersType->SensorOrder.array[v2gLFA_EVSEFinePositioningSetupParametersType->SensorOrder.arrayLen] = (uint8_t)(uint32 + 0);
- v2gLFA_EVSEFinePositioningSetupParametersType->SensorOrder.arrayLen++;
- } else {
- /* Second level event (e.g., xsi:type, xsi:nil, ...) */
- errn = EXI_UNSUPPORTED_EVENT_CODE_CHARACTERISTICS;
- }
- }
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- if(errn == 0) {
- /* valid EE for simple element START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorOrder) ? */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(eventCode == 0) {
- grammarID = 1718;
- } else {
- errn = EXI_DEVIANT_SUPPORT_NOT_DEPLOYED; /* or also typecast and nillable */
- }
- }
- break;
- case 1:
- /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(errn == 0) {
- if(eventCode == 0) {
- errn = decodeNBitUnsignedInteger(stream, 8, &(uint32));
- v2gLFA_EVSEFinePositioningSetupParametersType->SignalPulseDuration = (uint8_t)(uint32 + 0);
- } 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({urn:iso:15118:2:2016:MsgDataTypes}SignalPulseDuration) ? */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(eventCode == 0) {
- grammarID = 1587;
- } else {
- errn = EXI_DEVIANT_SUPPORT_NOT_DEPLOYED; /* or also typecast and nillable */
- }
- }
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 1718:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorOrder), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SignalPulseDuration)] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gLFA_EVSEFinePositioningSetupParametersType->SensorOrder.arrayLen < v2gLFA_EVSEFinePositioningSetupParametersType_SensorOrder_ARRAY_SIZE) {
- /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(errn == 0) {
- if(eventCode == 0) {
- errn = decodeNBitUnsignedInteger(stream, 8, &(uint32));
- v2gLFA_EVSEFinePositioningSetupParametersType->SensorOrder.array[v2gLFA_EVSEFinePositioningSetupParametersType->SensorOrder.arrayLen] = (uint8_t)(uint32 + 0);
- v2gLFA_EVSEFinePositioningSetupParametersType->SensorOrder.arrayLen++;
- } else {
- /* Second level event (e.g., xsi:type, xsi:nil, ...) */
- errn = EXI_UNSUPPORTED_EVENT_CODE_CHARACTERISTICS;
- }
- }
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- if(errn == 0) {
- /* valid EE for simple element START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorOrder) ? */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(eventCode == 0) {
- grammarID = 1719;
- } else {
- errn = EXI_DEVIANT_SUPPORT_NOT_DEPLOYED; /* or also typecast and nillable */
- }
- }
- break;
- case 1:
- /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(errn == 0) {
- if(eventCode == 0) {
- errn = decodeNBitUnsignedInteger(stream, 8, &(uint32));
- v2gLFA_EVSEFinePositioningSetupParametersType->SignalPulseDuration = (uint8_t)(uint32 + 0);
- } 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({urn:iso:15118:2:2016:MsgDataTypes}SignalPulseDuration) ? */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(eventCode == 0) {
- grammarID = 1587;
- } else {
- errn = EXI_DEVIANT_SUPPORT_NOT_DEPLOYED; /* or also typecast and nillable */
- }
- }
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 1719:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorOrder), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SignalPulseDuration)] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gLFA_EVSEFinePositioningSetupParametersType->SensorOrder.arrayLen < v2gLFA_EVSEFinePositioningSetupParametersType_SensorOrder_ARRAY_SIZE) {
- /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(errn == 0) {
- if(eventCode == 0) {
- errn = decodeNBitUnsignedInteger(stream, 8, &(uint32));
- v2gLFA_EVSEFinePositioningSetupParametersType->SensorOrder.array[v2gLFA_EVSEFinePositioningSetupParametersType->SensorOrder.arrayLen] = (uint8_t)(uint32 + 0);
- v2gLFA_EVSEFinePositioningSetupParametersType->SensorOrder.arrayLen++;
- } else {
- /* Second level event (e.g., xsi:type, xsi:nil, ...) */
- errn = EXI_UNSUPPORTED_EVENT_CODE_CHARACTERISTICS;
- }
- }
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- if(errn == 0) {
- /* valid EE for simple element START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorOrder) ? */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(eventCode == 0) {
- grammarID = 1720;
- } else {
- errn = EXI_DEVIANT_SUPPORT_NOT_DEPLOYED; /* or also typecast and nillable */
- }
- }
- break;
- case 1:
- /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(errn == 0) {
- if(eventCode == 0) {
- errn = decodeNBitUnsignedInteger(stream, 8, &(uint32));
- v2gLFA_EVSEFinePositioningSetupParametersType->SignalPulseDuration = (uint8_t)(uint32 + 0);
- } 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({urn:iso:15118:2:2016:MsgDataTypes}SignalPulseDuration) ? */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(eventCode == 0) {
- grammarID = 1587;
- } else {
- errn = EXI_DEVIANT_SUPPORT_NOT_DEPLOYED; /* or also typecast and nillable */
- }
- }
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 1720:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorOrder), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SignalPulseDuration)] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gLFA_EVSEFinePositioningSetupParametersType->SensorOrder.arrayLen < v2gLFA_EVSEFinePositioningSetupParametersType_SensorOrder_ARRAY_SIZE) {
- /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(errn == 0) {
- if(eventCode == 0) {
- errn = decodeNBitUnsignedInteger(stream, 8, &(uint32));
- v2gLFA_EVSEFinePositioningSetupParametersType->SensorOrder.array[v2gLFA_EVSEFinePositioningSetupParametersType->SensorOrder.arrayLen] = (uint8_t)(uint32 + 0);
- v2gLFA_EVSEFinePositioningSetupParametersType->SensorOrder.arrayLen++;
- } else {
- /* Second level event (e.g., xsi:type, xsi:nil, ...) */
- errn = EXI_UNSUPPORTED_EVENT_CODE_CHARACTERISTICS;
- }
- }
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- if(errn == 0) {
- /* valid EE for simple element START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorOrder) ? */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(eventCode == 0) {
- grammarID = 1721;
- } else {
- errn = EXI_DEVIANT_SUPPORT_NOT_DEPLOYED; /* or also typecast and nillable */
- }
- }
- break;
- case 1:
- /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(errn == 0) {
- if(eventCode == 0) {
- errn = decodeNBitUnsignedInteger(stream, 8, &(uint32));
- v2gLFA_EVSEFinePositioningSetupParametersType->SignalPulseDuration = (uint8_t)(uint32 + 0);
- } 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({urn:iso:15118:2:2016:MsgDataTypes}SignalPulseDuration) ? */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(eventCode == 0) {
- grammarID = 1587;
- } else {
- errn = EXI_DEVIANT_SUPPORT_NOT_DEPLOYED; /* or also typecast and nillable */
- }
- }
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 1721:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorOrder), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SignalPulseDuration)] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gLFA_EVSEFinePositioningSetupParametersType->SensorOrder.arrayLen < v2gLFA_EVSEFinePositioningSetupParametersType_SensorOrder_ARRAY_SIZE) {
- /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(errn == 0) {
- if(eventCode == 0) {
- errn = decodeNBitUnsignedInteger(stream, 8, &(uint32));
- v2gLFA_EVSEFinePositioningSetupParametersType->SensorOrder.array[v2gLFA_EVSEFinePositioningSetupParametersType->SensorOrder.arrayLen] = (uint8_t)(uint32 + 0);
- v2gLFA_EVSEFinePositioningSetupParametersType->SensorOrder.arrayLen++;
- } else {
- /* Second level event (e.g., xsi:type, xsi:nil, ...) */
- errn = EXI_UNSUPPORTED_EVENT_CODE_CHARACTERISTICS;
- }
- }
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- if(errn == 0) {
- /* valid EE for simple element START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorOrder) ? */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(eventCode == 0) {
- grammarID = 1722;
- } else {
- errn = EXI_DEVIANT_SUPPORT_NOT_DEPLOYED; /* or also typecast and nillable */
- }
- }
- break;
- case 1:
- /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(errn == 0) {
- if(eventCode == 0) {
- errn = decodeNBitUnsignedInteger(stream, 8, &(uint32));
- v2gLFA_EVSEFinePositioningSetupParametersType->SignalPulseDuration = (uint8_t)(uint32 + 0);
- } 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({urn:iso:15118:2:2016:MsgDataTypes}SignalPulseDuration) ? */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(eventCode == 0) {
- grammarID = 1587;
- } else {
- errn = EXI_DEVIANT_SUPPORT_NOT_DEPLOYED; /* or also typecast and nillable */
- }
- }
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 1722:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorOrder), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SignalPulseDuration)] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gLFA_EVSEFinePositioningSetupParametersType->SensorOrder.arrayLen < v2gLFA_EVSEFinePositioningSetupParametersType_SensorOrder_ARRAY_SIZE) {
- /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(errn == 0) {
- if(eventCode == 0) {
- errn = decodeNBitUnsignedInteger(stream, 8, &(uint32));
- v2gLFA_EVSEFinePositioningSetupParametersType->SensorOrder.array[v2gLFA_EVSEFinePositioningSetupParametersType->SensorOrder.arrayLen] = (uint8_t)(uint32 + 0);
- v2gLFA_EVSEFinePositioningSetupParametersType->SensorOrder.arrayLen++;
- } else {
- /* Second level event (e.g., xsi:type, xsi:nil, ...) */
- errn = EXI_UNSUPPORTED_EVENT_CODE_CHARACTERISTICS;
- }
- }
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- if(errn == 0) {
- /* valid EE for simple element START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorOrder) ? */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(eventCode == 0) {
- grammarID = 1723;
- } else {
- errn = EXI_DEVIANT_SUPPORT_NOT_DEPLOYED; /* or also typecast and nillable */
- }
- }
- break;
- case 1:
- /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(errn == 0) {
- if(eventCode == 0) {
- errn = decodeNBitUnsignedInteger(stream, 8, &(uint32));
- v2gLFA_EVSEFinePositioningSetupParametersType->SignalPulseDuration = (uint8_t)(uint32 + 0);
- } 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({urn:iso:15118:2:2016:MsgDataTypes}SignalPulseDuration) ? */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(eventCode == 0) {
- grammarID = 1587;
- } else {
- errn = EXI_DEVIANT_SUPPORT_NOT_DEPLOYED; /* or also typecast and nillable */
- }
- }
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 1723:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorOrder), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SignalPulseDuration)] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gLFA_EVSEFinePositioningSetupParametersType->SensorOrder.arrayLen < v2gLFA_EVSEFinePositioningSetupParametersType_SensorOrder_ARRAY_SIZE) {
- /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(errn == 0) {
- if(eventCode == 0) {
- errn = decodeNBitUnsignedInteger(stream, 8, &(uint32));
- v2gLFA_EVSEFinePositioningSetupParametersType->SensorOrder.array[v2gLFA_EVSEFinePositioningSetupParametersType->SensorOrder.arrayLen] = (uint8_t)(uint32 + 0);
- v2gLFA_EVSEFinePositioningSetupParametersType->SensorOrder.arrayLen++;
- } else {
- /* Second level event (e.g., xsi:type, xsi:nil, ...) */
- errn = EXI_UNSUPPORTED_EVENT_CODE_CHARACTERISTICS;
- }
- }
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- if(errn == 0) {
- /* valid EE for simple element START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorOrder) ? */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(eventCode == 0) {
- grammarID = 1724;
- } else {
- errn = EXI_DEVIANT_SUPPORT_NOT_DEPLOYED; /* or also typecast and nillable */
- }
- }
- break;
- case 1:
- /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(errn == 0) {
- if(eventCode == 0) {
- errn = decodeNBitUnsignedInteger(stream, 8, &(uint32));
- v2gLFA_EVSEFinePositioningSetupParametersType->SignalPulseDuration = (uint8_t)(uint32 + 0);
- } 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({urn:iso:15118:2:2016:MsgDataTypes}SignalPulseDuration) ? */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(eventCode == 0) {
- grammarID = 1587;
- } else {
- errn = EXI_DEVIANT_SUPPORT_NOT_DEPLOYED; /* or also typecast and nillable */
- }
- }
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 1724:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorOrder), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SignalPulseDuration)] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gLFA_EVSEFinePositioningSetupParametersType->SensorOrder.arrayLen < v2gLFA_EVSEFinePositioningSetupParametersType_SensorOrder_ARRAY_SIZE) {
- /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(errn == 0) {
- if(eventCode == 0) {
- errn = decodeNBitUnsignedInteger(stream, 8, &(uint32));
- v2gLFA_EVSEFinePositioningSetupParametersType->SensorOrder.array[v2gLFA_EVSEFinePositioningSetupParametersType->SensorOrder.arrayLen] = (uint8_t)(uint32 + 0);
- v2gLFA_EVSEFinePositioningSetupParametersType->SensorOrder.arrayLen++;
- } else {
- /* Second level event (e.g., xsi:type, xsi:nil, ...) */
- errn = EXI_UNSUPPORTED_EVENT_CODE_CHARACTERISTICS;
- }
- }
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- if(errn == 0) {
- /* valid EE for simple element START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorOrder) ? */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(eventCode == 0) {
- grammarID = 1725;
- } else {
- errn = EXI_DEVIANT_SUPPORT_NOT_DEPLOYED; /* or also typecast and nillable */
- }
- }
- break;
- case 1:
- /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(errn == 0) {
- if(eventCode == 0) {
- errn = decodeNBitUnsignedInteger(stream, 8, &(uint32));
- v2gLFA_EVSEFinePositioningSetupParametersType->SignalPulseDuration = (uint8_t)(uint32 + 0);
- } 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({urn:iso:15118:2:2016:MsgDataTypes}SignalPulseDuration) ? */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(eventCode == 0) {
- grammarID = 1587;
- } else {
- errn = EXI_DEVIANT_SUPPORT_NOT_DEPLOYED; /* or also typecast and nillable */
- }
- }
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 1725:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorOrder), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SignalPulseDuration)] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gLFA_EVSEFinePositioningSetupParametersType->SensorOrder.arrayLen < v2gLFA_EVSEFinePositioningSetupParametersType_SensorOrder_ARRAY_SIZE) {
- /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(errn == 0) {
- if(eventCode == 0) {
- errn = decodeNBitUnsignedInteger(stream, 8, &(uint32));
- v2gLFA_EVSEFinePositioningSetupParametersType->SensorOrder.array[v2gLFA_EVSEFinePositioningSetupParametersType->SensorOrder.arrayLen] = (uint8_t)(uint32 + 0);
- v2gLFA_EVSEFinePositioningSetupParametersType->SensorOrder.arrayLen++;
- } else {
- /* Second level event (e.g., xsi:type, xsi:nil, ...) */
- errn = EXI_UNSUPPORTED_EVENT_CODE_CHARACTERISTICS;
- }
- }
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- if(errn == 0) {
- /* valid EE for simple element START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorOrder) ? */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(eventCode == 0) {
- grammarID = 1726;
- } else {
- errn = EXI_DEVIANT_SUPPORT_NOT_DEPLOYED; /* or also typecast and nillable */
- }
- }
- break;
- case 1:
- /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(errn == 0) {
- if(eventCode == 0) {
- errn = decodeNBitUnsignedInteger(stream, 8, &(uint32));
- v2gLFA_EVSEFinePositioningSetupParametersType->SignalPulseDuration = (uint8_t)(uint32 + 0);
- } 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({urn:iso:15118:2:2016:MsgDataTypes}SignalPulseDuration) ? */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(eventCode == 0) {
- grammarID = 1587;
- } else {
- errn = EXI_DEVIANT_SUPPORT_NOT_DEPLOYED; /* or also typecast and nillable */
- }
- }
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 1726:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorOrder), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SignalPulseDuration)] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gLFA_EVSEFinePositioningSetupParametersType->SensorOrder.arrayLen < v2gLFA_EVSEFinePositioningSetupParametersType_SensorOrder_ARRAY_SIZE) {
- /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(errn == 0) {
- if(eventCode == 0) {
- errn = decodeNBitUnsignedInteger(stream, 8, &(uint32));
- v2gLFA_EVSEFinePositioningSetupParametersType->SensorOrder.array[v2gLFA_EVSEFinePositioningSetupParametersType->SensorOrder.arrayLen] = (uint8_t)(uint32 + 0);
- v2gLFA_EVSEFinePositioningSetupParametersType->SensorOrder.arrayLen++;
- } else {
- /* Second level event (e.g., xsi:type, xsi:nil, ...) */
- errn = EXI_UNSUPPORTED_EVENT_CODE_CHARACTERISTICS;
- }
- }
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- if(errn == 0) {
- /* valid EE for simple element START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorOrder) ? */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(eventCode == 0) {
- grammarID = 1727;
- } else {
- errn = EXI_DEVIANT_SUPPORT_NOT_DEPLOYED; /* or also typecast and nillable */
- }
- }
- break;
- case 1:
- /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(errn == 0) {
- if(eventCode == 0) {
- errn = decodeNBitUnsignedInteger(stream, 8, &(uint32));
- v2gLFA_EVSEFinePositioningSetupParametersType->SignalPulseDuration = (uint8_t)(uint32 + 0);
- } 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({urn:iso:15118:2:2016:MsgDataTypes}SignalPulseDuration) ? */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(eventCode == 0) {
- grammarID = 1587;
- } else {
- errn = EXI_DEVIANT_SUPPORT_NOT_DEPLOYED; /* or also typecast and nillable */
- }
- }
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 1727:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorOrder), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SignalPulseDuration)] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gLFA_EVSEFinePositioningSetupParametersType->SensorOrder.arrayLen < v2gLFA_EVSEFinePositioningSetupParametersType_SensorOrder_ARRAY_SIZE) {
- /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(errn == 0) {
- if(eventCode == 0) {
- errn = decodeNBitUnsignedInteger(stream, 8, &(uint32));
- v2gLFA_EVSEFinePositioningSetupParametersType->SensorOrder.array[v2gLFA_EVSEFinePositioningSetupParametersType->SensorOrder.arrayLen] = (uint8_t)(uint32 + 0);
- v2gLFA_EVSEFinePositioningSetupParametersType->SensorOrder.arrayLen++;
- } else {
- /* Second level event (e.g., xsi:type, xsi:nil, ...) */
- errn = EXI_UNSUPPORTED_EVENT_CODE_CHARACTERISTICS;
- }
- }
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- if(errn == 0) {
- /* valid EE for simple element START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorOrder) ? */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(eventCode == 0) {
- grammarID = 1728;
- } else {
- errn = EXI_DEVIANT_SUPPORT_NOT_DEPLOYED; /* or also typecast and nillable */
- }
- }
- break;
- case 1:
- /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(errn == 0) {
- if(eventCode == 0) {
- errn = decodeNBitUnsignedInteger(stream, 8, &(uint32));
- v2gLFA_EVSEFinePositioningSetupParametersType->SignalPulseDuration = (uint8_t)(uint32 + 0);
- } 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({urn:iso:15118:2:2016:MsgDataTypes}SignalPulseDuration) ? */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(eventCode == 0) {
- grammarID = 1587;
- } else {
- errn = EXI_DEVIANT_SUPPORT_NOT_DEPLOYED; /* or also typecast and nillable */
- }
- }
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 1728:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorOrder), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SignalPulseDuration)] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gLFA_EVSEFinePositioningSetupParametersType->SensorOrder.arrayLen < v2gLFA_EVSEFinePositioningSetupParametersType_SensorOrder_ARRAY_SIZE) {
- /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(errn == 0) {
- if(eventCode == 0) {
- errn = decodeNBitUnsignedInteger(stream, 8, &(uint32));
- v2gLFA_EVSEFinePositioningSetupParametersType->SensorOrder.array[v2gLFA_EVSEFinePositioningSetupParametersType->SensorOrder.arrayLen] = (uint8_t)(uint32 + 0);
- v2gLFA_EVSEFinePositioningSetupParametersType->SensorOrder.arrayLen++;
- } else {
- /* Second level event (e.g., xsi:type, xsi:nil, ...) */
- errn = EXI_UNSUPPORTED_EVENT_CODE_CHARACTERISTICS;
- }
- }
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- if(errn == 0) {
- /* valid EE for simple element START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorOrder) ? */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(eventCode == 0) {
- grammarID = 1729;
- } else {
- errn = EXI_DEVIANT_SUPPORT_NOT_DEPLOYED; /* or also typecast and nillable */
- }
- }
- break;
- case 1:
- /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(errn == 0) {
- if(eventCode == 0) {
- errn = decodeNBitUnsignedInteger(stream, 8, &(uint32));
- v2gLFA_EVSEFinePositioningSetupParametersType->SignalPulseDuration = (uint8_t)(uint32 + 0);
- } 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({urn:iso:15118:2:2016:MsgDataTypes}SignalPulseDuration) ? */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(eventCode == 0) {
- grammarID = 1587;
- } else {
- errn = EXI_DEVIANT_SUPPORT_NOT_DEPLOYED; /* or also typecast and nillable */
- }
- }
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 1729:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorOrder), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SignalPulseDuration)] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gLFA_EVSEFinePositioningSetupParametersType->SensorOrder.arrayLen < v2gLFA_EVSEFinePositioningSetupParametersType_SensorOrder_ARRAY_SIZE) {
- /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(errn == 0) {
- if(eventCode == 0) {
- errn = decodeNBitUnsignedInteger(stream, 8, &(uint32));
- v2gLFA_EVSEFinePositioningSetupParametersType->SensorOrder.array[v2gLFA_EVSEFinePositioningSetupParametersType->SensorOrder.arrayLen] = (uint8_t)(uint32 + 0);
- v2gLFA_EVSEFinePositioningSetupParametersType->SensorOrder.arrayLen++;
- } else {
- /* Second level event (e.g., xsi:type, xsi:nil, ...) */
- errn = EXI_UNSUPPORTED_EVENT_CODE_CHARACTERISTICS;
- }
- }
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- if(errn == 0) {
- /* valid EE for simple element START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorOrder) ? */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(eventCode == 0) {
- grammarID = 1730;
- } else {
- errn = EXI_DEVIANT_SUPPORT_NOT_DEPLOYED; /* or also typecast and nillable */
- }
- }
- break;
- case 1:
- /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(errn == 0) {
- if(eventCode == 0) {
- errn = decodeNBitUnsignedInteger(stream, 8, &(uint32));
- v2gLFA_EVSEFinePositioningSetupParametersType->SignalPulseDuration = (uint8_t)(uint32 + 0);
- } 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({urn:iso:15118:2:2016:MsgDataTypes}SignalPulseDuration) ? */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(eventCode == 0) {
- grammarID = 1587;
- } else {
- errn = EXI_DEVIANT_SUPPORT_NOT_DEPLOYED; /* or also typecast and nillable */
- }
- }
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 1730:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorOrder), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SignalPulseDuration)] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gLFA_EVSEFinePositioningSetupParametersType->SensorOrder.arrayLen < v2gLFA_EVSEFinePositioningSetupParametersType_SensorOrder_ARRAY_SIZE) {
- /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(errn == 0) {
- if(eventCode == 0) {
- errn = decodeNBitUnsignedInteger(stream, 8, &(uint32));
- v2gLFA_EVSEFinePositioningSetupParametersType->SensorOrder.array[v2gLFA_EVSEFinePositioningSetupParametersType->SensorOrder.arrayLen] = (uint8_t)(uint32 + 0);
- v2gLFA_EVSEFinePositioningSetupParametersType->SensorOrder.arrayLen++;
- } else {
- /* Second level event (e.g., xsi:type, xsi:nil, ...) */
- errn = EXI_UNSUPPORTED_EVENT_CODE_CHARACTERISTICS;
- }
- }
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- if(errn == 0) {
- /* valid EE for simple element START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorOrder) ? */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(eventCode == 0) {
- grammarID = 1731;
- } else {
- errn = EXI_DEVIANT_SUPPORT_NOT_DEPLOYED; /* or also typecast and nillable */
- }
- }
- break;
- case 1:
- /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(errn == 0) {
- if(eventCode == 0) {
- errn = decodeNBitUnsignedInteger(stream, 8, &(uint32));
- v2gLFA_EVSEFinePositioningSetupParametersType->SignalPulseDuration = (uint8_t)(uint32 + 0);
- } 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({urn:iso:15118:2:2016:MsgDataTypes}SignalPulseDuration) ? */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(eventCode == 0) {
- grammarID = 1587;
- } else {
- errn = EXI_DEVIANT_SUPPORT_NOT_DEPLOYED; /* or also typecast and nillable */
- }
- }
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 1731:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorOrder), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SignalPulseDuration)] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gLFA_EVSEFinePositioningSetupParametersType->SensorOrder.arrayLen < v2gLFA_EVSEFinePositioningSetupParametersType_SensorOrder_ARRAY_SIZE) {
- /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(errn == 0) {
- if(eventCode == 0) {
- errn = decodeNBitUnsignedInteger(stream, 8, &(uint32));
- v2gLFA_EVSEFinePositioningSetupParametersType->SensorOrder.array[v2gLFA_EVSEFinePositioningSetupParametersType->SensorOrder.arrayLen] = (uint8_t)(uint32 + 0);
- v2gLFA_EVSEFinePositioningSetupParametersType->SensorOrder.arrayLen++;
- } else {
- /* Second level event (e.g., xsi:type, xsi:nil, ...) */
- errn = EXI_UNSUPPORTED_EVENT_CODE_CHARACTERISTICS;
- }
- }
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- if(errn == 0) {
- /* valid EE for simple element START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorOrder) ? */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(eventCode == 0) {
- grammarID = 1732;
- } else {
- errn = EXI_DEVIANT_SUPPORT_NOT_DEPLOYED; /* or also typecast and nillable */
- }
- }
- break;
- case 1:
- /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(errn == 0) {
- if(eventCode == 0) {
- errn = decodeNBitUnsignedInteger(stream, 8, &(uint32));
- v2gLFA_EVSEFinePositioningSetupParametersType->SignalPulseDuration = (uint8_t)(uint32 + 0);
- } 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({urn:iso:15118:2:2016:MsgDataTypes}SignalPulseDuration) ? */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(eventCode == 0) {
- grammarID = 1587;
- } else {
- errn = EXI_DEVIANT_SUPPORT_NOT_DEPLOYED; /* or also typecast and nillable */
- }
- }
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 1732:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorOrder), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SignalPulseDuration)] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gLFA_EVSEFinePositioningSetupParametersType->SensorOrder.arrayLen < v2gLFA_EVSEFinePositioningSetupParametersType_SensorOrder_ARRAY_SIZE) {
- /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(errn == 0) {
- if(eventCode == 0) {
- errn = decodeNBitUnsignedInteger(stream, 8, &(uint32));
- v2gLFA_EVSEFinePositioningSetupParametersType->SensorOrder.array[v2gLFA_EVSEFinePositioningSetupParametersType->SensorOrder.arrayLen] = (uint8_t)(uint32 + 0);
- v2gLFA_EVSEFinePositioningSetupParametersType->SensorOrder.arrayLen++;
- } else {
- /* Second level event (e.g., xsi:type, xsi:nil, ...) */
- errn = EXI_UNSUPPORTED_EVENT_CODE_CHARACTERISTICS;
- }
- }
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- if(errn == 0) {
- /* valid EE for simple element START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorOrder) ? */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(eventCode == 0) {
- grammarID = 1733;
- } else {
- errn = EXI_DEVIANT_SUPPORT_NOT_DEPLOYED; /* or also typecast and nillable */
- }
- }
- break;
- case 1:
- /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(errn == 0) {
- if(eventCode == 0) {
- errn = decodeNBitUnsignedInteger(stream, 8, &(uint32));
- v2gLFA_EVSEFinePositioningSetupParametersType->SignalPulseDuration = (uint8_t)(uint32 + 0);
- } 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({urn:iso:15118:2:2016:MsgDataTypes}SignalPulseDuration) ? */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(eventCode == 0) {
- grammarID = 1587;
- } else {
- errn = EXI_DEVIANT_SUPPORT_NOT_DEPLOYED; /* or also typecast and nillable */
- }
- }
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 1733:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorOrder), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SignalPulseDuration)] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gLFA_EVSEFinePositioningSetupParametersType->SensorOrder.arrayLen < v2gLFA_EVSEFinePositioningSetupParametersType_SensorOrder_ARRAY_SIZE) {
- /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(errn == 0) {
- if(eventCode == 0) {
- errn = decodeNBitUnsignedInteger(stream, 8, &(uint32));
- v2gLFA_EVSEFinePositioningSetupParametersType->SensorOrder.array[v2gLFA_EVSEFinePositioningSetupParametersType->SensorOrder.arrayLen] = (uint8_t)(uint32 + 0);
- v2gLFA_EVSEFinePositioningSetupParametersType->SensorOrder.arrayLen++;
- } else {
- /* Second level event (e.g., xsi:type, xsi:nil, ...) */
- errn = EXI_UNSUPPORTED_EVENT_CODE_CHARACTERISTICS;
- }
- }
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- if(errn == 0) {
- /* valid EE for simple element START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorOrder) ? */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(eventCode == 0) {
- grammarID = 1734;
- } else {
- errn = EXI_DEVIANT_SUPPORT_NOT_DEPLOYED; /* or also typecast and nillable */
- }
- }
- break;
- case 1:
- /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(errn == 0) {
- if(eventCode == 0) {
- errn = decodeNBitUnsignedInteger(stream, 8, &(uint32));
- v2gLFA_EVSEFinePositioningSetupParametersType->SignalPulseDuration = (uint8_t)(uint32 + 0);
- } 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({urn:iso:15118:2:2016:MsgDataTypes}SignalPulseDuration) ? */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(eventCode == 0) {
- grammarID = 1587;
- } else {
- errn = EXI_DEVIANT_SUPPORT_NOT_DEPLOYED; /* or also typecast and nillable */
- }
- }
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 1734:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorOrder), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SignalPulseDuration)] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gLFA_EVSEFinePositioningSetupParametersType->SensorOrder.arrayLen < v2gLFA_EVSEFinePositioningSetupParametersType_SensorOrder_ARRAY_SIZE) {
- /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(errn == 0) {
- if(eventCode == 0) {
- errn = decodeNBitUnsignedInteger(stream, 8, &(uint32));
- v2gLFA_EVSEFinePositioningSetupParametersType->SensorOrder.array[v2gLFA_EVSEFinePositioningSetupParametersType->SensorOrder.arrayLen] = (uint8_t)(uint32 + 0);
- v2gLFA_EVSEFinePositioningSetupParametersType->SensorOrder.arrayLen++;
- } else {
- /* Second level event (e.g., xsi:type, xsi:nil, ...) */
- errn = EXI_UNSUPPORTED_EVENT_CODE_CHARACTERISTICS;
- }
- }
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- if(errn == 0) {
- /* valid EE for simple element START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorOrder) ? */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(eventCode == 0) {
- grammarID = 1735;
- } else {
- errn = EXI_DEVIANT_SUPPORT_NOT_DEPLOYED; /* or also typecast and nillable */
- }
- }
- break;
- case 1:
- /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(errn == 0) {
- if(eventCode == 0) {
- errn = decodeNBitUnsignedInteger(stream, 8, &(uint32));
- v2gLFA_EVSEFinePositioningSetupParametersType->SignalPulseDuration = (uint8_t)(uint32 + 0);
- } 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({urn:iso:15118:2:2016:MsgDataTypes}SignalPulseDuration) ? */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(eventCode == 0) {
- grammarID = 1587;
- } else {
- errn = EXI_DEVIANT_SUPPORT_NOT_DEPLOYED; /* or also typecast and nillable */
- }
- }
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 1735:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorOrder), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SignalPulseDuration)] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gLFA_EVSEFinePositioningSetupParametersType->SensorOrder.arrayLen < v2gLFA_EVSEFinePositioningSetupParametersType_SensorOrder_ARRAY_SIZE) {
- /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(errn == 0) {
- if(eventCode == 0) {
- errn = decodeNBitUnsignedInteger(stream, 8, &(uint32));
- v2gLFA_EVSEFinePositioningSetupParametersType->SensorOrder.array[v2gLFA_EVSEFinePositioningSetupParametersType->SensorOrder.arrayLen] = (uint8_t)(uint32 + 0);
- v2gLFA_EVSEFinePositioningSetupParametersType->SensorOrder.arrayLen++;
- } else {
- /* Second level event (e.g., xsi:type, xsi:nil, ...) */
- errn = EXI_UNSUPPORTED_EVENT_CODE_CHARACTERISTICS;
- }
- }
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- if(errn == 0) {
- /* valid EE for simple element START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorOrder) ? */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(eventCode == 0) {
- grammarID = 1736;
- } else {
- errn = EXI_DEVIANT_SUPPORT_NOT_DEPLOYED; /* or also typecast and nillable */
- }
- }
- break;
- case 1:
- /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(errn == 0) {
- if(eventCode == 0) {
- errn = decodeNBitUnsignedInteger(stream, 8, &(uint32));
- v2gLFA_EVSEFinePositioningSetupParametersType->SignalPulseDuration = (uint8_t)(uint32 + 0);
- } 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({urn:iso:15118:2:2016:MsgDataTypes}SignalPulseDuration) ? */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(eventCode == 0) {
- grammarID = 1587;
- } else {
- errn = EXI_DEVIANT_SUPPORT_NOT_DEPLOYED; /* or also typecast and nillable */
- }
- }
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 1736:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorOrder), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SignalPulseDuration)] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gLFA_EVSEFinePositioningSetupParametersType->SensorOrder.arrayLen < v2gLFA_EVSEFinePositioningSetupParametersType_SensorOrder_ARRAY_SIZE) {
- /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(errn == 0) {
- if(eventCode == 0) {
- errn = decodeNBitUnsignedInteger(stream, 8, &(uint32));
- v2gLFA_EVSEFinePositioningSetupParametersType->SensorOrder.array[v2gLFA_EVSEFinePositioningSetupParametersType->SensorOrder.arrayLen] = (uint8_t)(uint32 + 0);
- v2gLFA_EVSEFinePositioningSetupParametersType->SensorOrder.arrayLen++;
- } else {
- /* Second level event (e.g., xsi:type, xsi:nil, ...) */
- errn = EXI_UNSUPPORTED_EVENT_CODE_CHARACTERISTICS;
- }
- }
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- if(errn == 0) {
- /* valid EE for simple element START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorOrder) ? */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(eventCode == 0) {
- grammarID = 1737;
- } else {
- errn = EXI_DEVIANT_SUPPORT_NOT_DEPLOYED; /* or also typecast and nillable */
- }
- }
- break;
- case 1:
- /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(errn == 0) {
- if(eventCode == 0) {
- errn = decodeNBitUnsignedInteger(stream, 8, &(uint32));
- v2gLFA_EVSEFinePositioningSetupParametersType->SignalPulseDuration = (uint8_t)(uint32 + 0);
- } 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({urn:iso:15118:2:2016:MsgDataTypes}SignalPulseDuration) ? */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(eventCode == 0) {
- grammarID = 1587;
- } else {
- errn = EXI_DEVIANT_SUPPORT_NOT_DEPLOYED; /* or also typecast and nillable */
- }
- }
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 1737:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorOrder), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SignalPulseDuration)] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gLFA_EVSEFinePositioningSetupParametersType->SensorOrder.arrayLen < v2gLFA_EVSEFinePositioningSetupParametersType_SensorOrder_ARRAY_SIZE) {
- /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(errn == 0) {
- if(eventCode == 0) {
- errn = decodeNBitUnsignedInteger(stream, 8, &(uint32));
- v2gLFA_EVSEFinePositioningSetupParametersType->SensorOrder.array[v2gLFA_EVSEFinePositioningSetupParametersType->SensorOrder.arrayLen] = (uint8_t)(uint32 + 0);
- v2gLFA_EVSEFinePositioningSetupParametersType->SensorOrder.arrayLen++;
- } else {
- /* Second level event (e.g., xsi:type, xsi:nil, ...) */
- errn = EXI_UNSUPPORTED_EVENT_CODE_CHARACTERISTICS;
- }
- }
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- if(errn == 0) {
- /* valid EE for simple element START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorOrder) ? */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(eventCode == 0) {
- grammarID = 1738;
- } else {
- errn = EXI_DEVIANT_SUPPORT_NOT_DEPLOYED; /* or also typecast and nillable */
- }
- }
- break;
- case 1:
- /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(errn == 0) {
- if(eventCode == 0) {
- errn = decodeNBitUnsignedInteger(stream, 8, &(uint32));
- v2gLFA_EVSEFinePositioningSetupParametersType->SignalPulseDuration = (uint8_t)(uint32 + 0);
- } 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({urn:iso:15118:2:2016:MsgDataTypes}SignalPulseDuration) ? */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(eventCode == 0) {
- grammarID = 1587;
- } else {
- errn = EXI_DEVIANT_SUPPORT_NOT_DEPLOYED; /* or also typecast and nillable */
- }
- }
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 1738:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorOrder), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SignalPulseDuration)] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gLFA_EVSEFinePositioningSetupParametersType->SensorOrder.arrayLen < v2gLFA_EVSEFinePositioningSetupParametersType_SensorOrder_ARRAY_SIZE) {
- /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(errn == 0) {
- if(eventCode == 0) {
- errn = decodeNBitUnsignedInteger(stream, 8, &(uint32));
- v2gLFA_EVSEFinePositioningSetupParametersType->SensorOrder.array[v2gLFA_EVSEFinePositioningSetupParametersType->SensorOrder.arrayLen] = (uint8_t)(uint32 + 0);
- v2gLFA_EVSEFinePositioningSetupParametersType->SensorOrder.arrayLen++;
- } else {
- /* Second level event (e.g., xsi:type, xsi:nil, ...) */
- errn = EXI_UNSUPPORTED_EVENT_CODE_CHARACTERISTICS;
- }
- }
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- if(errn == 0) {
- /* valid EE for simple element START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorOrder) ? */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(eventCode == 0) {
- grammarID = 1739;
- } else {
- errn = EXI_DEVIANT_SUPPORT_NOT_DEPLOYED; /* or also typecast and nillable */
- }
- }
- break;
- case 1:
- /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(errn == 0) {
- if(eventCode == 0) {
- errn = decodeNBitUnsignedInteger(stream, 8, &(uint32));
- v2gLFA_EVSEFinePositioningSetupParametersType->SignalPulseDuration = (uint8_t)(uint32 + 0);
- } 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({urn:iso:15118:2:2016:MsgDataTypes}SignalPulseDuration) ? */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(eventCode == 0) {
- grammarID = 1587;
- } else {
- errn = EXI_DEVIANT_SUPPORT_NOT_DEPLOYED; /* or also typecast and nillable */
- }
- }
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 1739:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorOrder), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SignalPulseDuration)] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gLFA_EVSEFinePositioningSetupParametersType->SensorOrder.arrayLen < v2gLFA_EVSEFinePositioningSetupParametersType_SensorOrder_ARRAY_SIZE) {
- /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(errn == 0) {
- if(eventCode == 0) {
- errn = decodeNBitUnsignedInteger(stream, 8, &(uint32));
- v2gLFA_EVSEFinePositioningSetupParametersType->SensorOrder.array[v2gLFA_EVSEFinePositioningSetupParametersType->SensorOrder.arrayLen] = (uint8_t)(uint32 + 0);
- v2gLFA_EVSEFinePositioningSetupParametersType->SensorOrder.arrayLen++;
- } else {
- /* Second level event (e.g., xsi:type, xsi:nil, ...) */
- errn = EXI_UNSUPPORTED_EVENT_CODE_CHARACTERISTICS;
- }
- }
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- if(errn == 0) {
- /* valid EE for simple element START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorOrder) ? */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(eventCode == 0) {
- grammarID = 1740;
- } else {
- errn = EXI_DEVIANT_SUPPORT_NOT_DEPLOYED; /* or also typecast and nillable */
- }
- }
- break;
- case 1:
- /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(errn == 0) {
- if(eventCode == 0) {
- errn = decodeNBitUnsignedInteger(stream, 8, &(uint32));
- v2gLFA_EVSEFinePositioningSetupParametersType->SignalPulseDuration = (uint8_t)(uint32 + 0);
- } 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({urn:iso:15118:2:2016:MsgDataTypes}SignalPulseDuration) ? */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(eventCode == 0) {
- grammarID = 1587;
- } else {
- errn = EXI_DEVIANT_SUPPORT_NOT_DEPLOYED; /* or also typecast and nillable */
- }
- }
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 1740:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorOrder), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SignalPulseDuration)] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gLFA_EVSEFinePositioningSetupParametersType->SensorOrder.arrayLen < v2gLFA_EVSEFinePositioningSetupParametersType_SensorOrder_ARRAY_SIZE) {
- /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(errn == 0) {
- if(eventCode == 0) {
- errn = decodeNBitUnsignedInteger(stream, 8, &(uint32));
- v2gLFA_EVSEFinePositioningSetupParametersType->SensorOrder.array[v2gLFA_EVSEFinePositioningSetupParametersType->SensorOrder.arrayLen] = (uint8_t)(uint32 + 0);
- v2gLFA_EVSEFinePositioningSetupParametersType->SensorOrder.arrayLen++;
- } else {
- /* Second level event (e.g., xsi:type, xsi:nil, ...) */
- errn = EXI_UNSUPPORTED_EVENT_CODE_CHARACTERISTICS;
- }
- }
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- if(errn == 0) {
- /* valid EE for simple element START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorOrder) ? */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(eventCode == 0) {
- grammarID = 1741;
- } else {
- errn = EXI_DEVIANT_SUPPORT_NOT_DEPLOYED; /* or also typecast and nillable */
- }
- }
- break;
- case 1:
- /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(errn == 0) {
- if(eventCode == 0) {
- errn = decodeNBitUnsignedInteger(stream, 8, &(uint32));
- v2gLFA_EVSEFinePositioningSetupParametersType->SignalPulseDuration = (uint8_t)(uint32 + 0);
- } 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({urn:iso:15118:2:2016:MsgDataTypes}SignalPulseDuration) ? */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(eventCode == 0) {
- grammarID = 1587;
- } else {
- errn = EXI_DEVIANT_SUPPORT_NOT_DEPLOYED; /* or also typecast and nillable */
- }
- }
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 1741:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorOrder), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SignalPulseDuration)] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gLFA_EVSEFinePositioningSetupParametersType->SensorOrder.arrayLen < v2gLFA_EVSEFinePositioningSetupParametersType_SensorOrder_ARRAY_SIZE) {
- /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(errn == 0) {
- if(eventCode == 0) {
- errn = decodeNBitUnsignedInteger(stream, 8, &(uint32));
- v2gLFA_EVSEFinePositioningSetupParametersType->SensorOrder.array[v2gLFA_EVSEFinePositioningSetupParametersType->SensorOrder.arrayLen] = (uint8_t)(uint32 + 0);
- v2gLFA_EVSEFinePositioningSetupParametersType->SensorOrder.arrayLen++;
- } else {
- /* Second level event (e.g., xsi:type, xsi:nil, ...) */
- errn = EXI_UNSUPPORTED_EVENT_CODE_CHARACTERISTICS;
- }
- }
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- if(errn == 0) {
- /* valid EE for simple element START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorOrder) ? */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(eventCode == 0) {
- grammarID = 1742;
- } else {
- errn = EXI_DEVIANT_SUPPORT_NOT_DEPLOYED; /* or also typecast and nillable */
- }
- }
- break;
- case 1:
- /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(errn == 0) {
- if(eventCode == 0) {
- errn = decodeNBitUnsignedInteger(stream, 8, &(uint32));
- v2gLFA_EVSEFinePositioningSetupParametersType->SignalPulseDuration = (uint8_t)(uint32 + 0);
- } 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({urn:iso:15118:2:2016:MsgDataTypes}SignalPulseDuration) ? */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(eventCode == 0) {
- grammarID = 1587;
- } else {
- errn = EXI_DEVIANT_SUPPORT_NOT_DEPLOYED; /* or also typecast and nillable */
- }
- }
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 1742:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorOrder), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SignalPulseDuration)] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gLFA_EVSEFinePositioningSetupParametersType->SensorOrder.arrayLen < v2gLFA_EVSEFinePositioningSetupParametersType_SensorOrder_ARRAY_SIZE) {
- /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(errn == 0) {
- if(eventCode == 0) {
- errn = decodeNBitUnsignedInteger(stream, 8, &(uint32));
- v2gLFA_EVSEFinePositioningSetupParametersType->SensorOrder.array[v2gLFA_EVSEFinePositioningSetupParametersType->SensorOrder.arrayLen] = (uint8_t)(uint32 + 0);
- v2gLFA_EVSEFinePositioningSetupParametersType->SensorOrder.arrayLen++;
- } else {
- /* Second level event (e.g., xsi:type, xsi:nil, ...) */
- errn = EXI_UNSUPPORTED_EVENT_CODE_CHARACTERISTICS;
- }
- }
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- if(errn == 0) {
- /* valid EE for simple element START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorOrder) ? */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(eventCode == 0) {
- grammarID = 1743;
- } else {
- errn = EXI_DEVIANT_SUPPORT_NOT_DEPLOYED; /* or also typecast and nillable */
- }
- }
- break;
- case 1:
- /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(errn == 0) {
- if(eventCode == 0) {
- errn = decodeNBitUnsignedInteger(stream, 8, &(uint32));
- v2gLFA_EVSEFinePositioningSetupParametersType->SignalPulseDuration = (uint8_t)(uint32 + 0);
- } 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({urn:iso:15118:2:2016:MsgDataTypes}SignalPulseDuration) ? */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(eventCode == 0) {
- grammarID = 1587;
- } else {
- errn = EXI_DEVIANT_SUPPORT_NOT_DEPLOYED; /* or also typecast and nillable */
- }
- }
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 1743:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorOrder), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SignalPulseDuration)] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gLFA_EVSEFinePositioningSetupParametersType->SensorOrder.arrayLen < v2gLFA_EVSEFinePositioningSetupParametersType_SensorOrder_ARRAY_SIZE) {
- /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(errn == 0) {
- if(eventCode == 0) {
- errn = decodeNBitUnsignedInteger(stream, 8, &(uint32));
- v2gLFA_EVSEFinePositioningSetupParametersType->SensorOrder.array[v2gLFA_EVSEFinePositioningSetupParametersType->SensorOrder.arrayLen] = (uint8_t)(uint32 + 0);
- v2gLFA_EVSEFinePositioningSetupParametersType->SensorOrder.arrayLen++;
- } else {
- /* Second level event (e.g., xsi:type, xsi:nil, ...) */
- errn = EXI_UNSUPPORTED_EVENT_CODE_CHARACTERISTICS;
- }
- }
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- if(errn == 0) {
- /* valid EE for simple element START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorOrder) ? */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(eventCode == 0) {
- grammarID = 1744;
- } else {
- errn = EXI_DEVIANT_SUPPORT_NOT_DEPLOYED; /* or also typecast and nillable */
- }
- }
- break;
- case 1:
- /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(errn == 0) {
- if(eventCode == 0) {
- errn = decodeNBitUnsignedInteger(stream, 8, &(uint32));
- v2gLFA_EVSEFinePositioningSetupParametersType->SignalPulseDuration = (uint8_t)(uint32 + 0);
- } 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({urn:iso:15118:2:2016:MsgDataTypes}SignalPulseDuration) ? */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(eventCode == 0) {
- grammarID = 1587;
- } else {
- errn = EXI_DEVIANT_SUPPORT_NOT_DEPLOYED; /* or also typecast and nillable */
- }
- }
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 1744:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorOrder), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SignalPulseDuration)] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gLFA_EVSEFinePositioningSetupParametersType->SensorOrder.arrayLen < v2gLFA_EVSEFinePositioningSetupParametersType_SensorOrder_ARRAY_SIZE) {
- /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(errn == 0) {
- if(eventCode == 0) {
- errn = decodeNBitUnsignedInteger(stream, 8, &(uint32));
- v2gLFA_EVSEFinePositioningSetupParametersType->SensorOrder.array[v2gLFA_EVSEFinePositioningSetupParametersType->SensorOrder.arrayLen] = (uint8_t)(uint32 + 0);
- v2gLFA_EVSEFinePositioningSetupParametersType->SensorOrder.arrayLen++;
- } else {
- /* Second level event (e.g., xsi:type, xsi:nil, ...) */
- errn = EXI_UNSUPPORTED_EVENT_CODE_CHARACTERISTICS;
- }
- }
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- if(errn == 0) {
- /* valid EE for simple element START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorOrder) ? */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(eventCode == 0) {
- grammarID = 1745;
- } else {
- errn = EXI_DEVIANT_SUPPORT_NOT_DEPLOYED; /* or also typecast and nillable */
- }
- }
- break;
- case 1:
- /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(errn == 0) {
- if(eventCode == 0) {
- errn = decodeNBitUnsignedInteger(stream, 8, &(uint32));
- v2gLFA_EVSEFinePositioningSetupParametersType->SignalPulseDuration = (uint8_t)(uint32 + 0);
- } 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({urn:iso:15118:2:2016:MsgDataTypes}SignalPulseDuration) ? */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(eventCode == 0) {
- grammarID = 1587;
- } else {
- errn = EXI_DEVIANT_SUPPORT_NOT_DEPLOYED; /* or also typecast and nillable */
- }
- }
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 1745:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorOrder), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SignalPulseDuration)] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gLFA_EVSEFinePositioningSetupParametersType->SensorOrder.arrayLen < v2gLFA_EVSEFinePositioningSetupParametersType_SensorOrder_ARRAY_SIZE) {
- /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(errn == 0) {
- if(eventCode == 0) {
- errn = decodeNBitUnsignedInteger(stream, 8, &(uint32));
- v2gLFA_EVSEFinePositioningSetupParametersType->SensorOrder.array[v2gLFA_EVSEFinePositioningSetupParametersType->SensorOrder.arrayLen] = (uint8_t)(uint32 + 0);
- v2gLFA_EVSEFinePositioningSetupParametersType->SensorOrder.arrayLen++;
- } else {
- /* Second level event (e.g., xsi:type, xsi:nil, ...) */
- errn = EXI_UNSUPPORTED_EVENT_CODE_CHARACTERISTICS;
- }
- }
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- if(errn == 0) {
- /* valid EE for simple element START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorOrder) ? */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(eventCode == 0) {
- grammarID = 1746;
- } else {
- errn = EXI_DEVIANT_SUPPORT_NOT_DEPLOYED; /* or also typecast and nillable */
- }
- }
- break;
- case 1:
- /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(errn == 0) {
- if(eventCode == 0) {
- errn = decodeNBitUnsignedInteger(stream, 8, &(uint32));
- v2gLFA_EVSEFinePositioningSetupParametersType->SignalPulseDuration = (uint8_t)(uint32 + 0);
- } 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({urn:iso:15118:2:2016:MsgDataTypes}SignalPulseDuration) ? */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(eventCode == 0) {
- grammarID = 1587;
- } else {
- errn = EXI_DEVIANT_SUPPORT_NOT_DEPLOYED; /* or also typecast and nillable */
- }
- }
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 1746:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorOrder), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SignalPulseDuration)] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gLFA_EVSEFinePositioningSetupParametersType->SensorOrder.arrayLen < v2gLFA_EVSEFinePositioningSetupParametersType_SensorOrder_ARRAY_SIZE) {
- /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(errn == 0) {
- if(eventCode == 0) {
- errn = decodeNBitUnsignedInteger(stream, 8, &(uint32));
- v2gLFA_EVSEFinePositioningSetupParametersType->SensorOrder.array[v2gLFA_EVSEFinePositioningSetupParametersType->SensorOrder.arrayLen] = (uint8_t)(uint32 + 0);
- v2gLFA_EVSEFinePositioningSetupParametersType->SensorOrder.arrayLen++;
- } else {
- /* Second level event (e.g., xsi:type, xsi:nil, ...) */
- errn = EXI_UNSUPPORTED_EVENT_CODE_CHARACTERISTICS;
- }
- }
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- if(errn == 0) {
- /* valid EE for simple element START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorOrder) ? */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(eventCode == 0) {
- grammarID = 1747;
- } else {
- errn = EXI_DEVIANT_SUPPORT_NOT_DEPLOYED; /* or also typecast and nillable */
- }
- }
- break;
- case 1:
- /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(errn == 0) {
- if(eventCode == 0) {
- errn = decodeNBitUnsignedInteger(stream, 8, &(uint32));
- v2gLFA_EVSEFinePositioningSetupParametersType->SignalPulseDuration = (uint8_t)(uint32 + 0);
- } 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({urn:iso:15118:2:2016:MsgDataTypes}SignalPulseDuration) ? */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(eventCode == 0) {
- grammarID = 1587;
- } else {
- errn = EXI_DEVIANT_SUPPORT_NOT_DEPLOYED; /* or also typecast and nillable */
- }
- }
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 1747:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorOrder), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SignalPulseDuration)] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gLFA_EVSEFinePositioningSetupParametersType->SensorOrder.arrayLen < v2gLFA_EVSEFinePositioningSetupParametersType_SensorOrder_ARRAY_SIZE) {
- /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(errn == 0) {
- if(eventCode == 0) {
- errn = decodeNBitUnsignedInteger(stream, 8, &(uint32));
- v2gLFA_EVSEFinePositioningSetupParametersType->SensorOrder.array[v2gLFA_EVSEFinePositioningSetupParametersType->SensorOrder.arrayLen] = (uint8_t)(uint32 + 0);
- v2gLFA_EVSEFinePositioningSetupParametersType->SensorOrder.arrayLen++;
- } else {
- /* Second level event (e.g., xsi:type, xsi:nil, ...) */
- errn = EXI_UNSUPPORTED_EVENT_CODE_CHARACTERISTICS;
- }
- }
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- if(errn == 0) {
- /* valid EE for simple element START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorOrder) ? */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(eventCode == 0) {
- grammarID = 1748;
- } else {
- errn = EXI_DEVIANT_SUPPORT_NOT_DEPLOYED; /* or also typecast and nillable */
- }
- }
- break;
- case 1:
- /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(errn == 0) {
- if(eventCode == 0) {
- errn = decodeNBitUnsignedInteger(stream, 8, &(uint32));
- v2gLFA_EVSEFinePositioningSetupParametersType->SignalPulseDuration = (uint8_t)(uint32 + 0);
- } 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({urn:iso:15118:2:2016:MsgDataTypes}SignalPulseDuration) ? */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(eventCode == 0) {
- grammarID = 1587;
- } else {
- errn = EXI_DEVIANT_SUPPORT_NOT_DEPLOYED; /* or also typecast and nillable */
- }
- }
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 1748:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorOrder), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SignalPulseDuration)] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gLFA_EVSEFinePositioningSetupParametersType->SensorOrder.arrayLen < v2gLFA_EVSEFinePositioningSetupParametersType_SensorOrder_ARRAY_SIZE) {
- /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(errn == 0) {
- if(eventCode == 0) {
- errn = decodeNBitUnsignedInteger(stream, 8, &(uint32));
- v2gLFA_EVSEFinePositioningSetupParametersType->SensorOrder.array[v2gLFA_EVSEFinePositioningSetupParametersType->SensorOrder.arrayLen] = (uint8_t)(uint32 + 0);
- v2gLFA_EVSEFinePositioningSetupParametersType->SensorOrder.arrayLen++;
- } else {
- /* Second level event (e.g., xsi:type, xsi:nil, ...) */
- errn = EXI_UNSUPPORTED_EVENT_CODE_CHARACTERISTICS;
- }
- }
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- if(errn == 0) {
- /* valid EE for simple element START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorOrder) ? */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(eventCode == 0) {
- grammarID = 1749;
- } else {
- errn = EXI_DEVIANT_SUPPORT_NOT_DEPLOYED; /* or also typecast and nillable */
- }
- }
- break;
- case 1:
- /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(errn == 0) {
- if(eventCode == 0) {
- errn = decodeNBitUnsignedInteger(stream, 8, &(uint32));
- v2gLFA_EVSEFinePositioningSetupParametersType->SignalPulseDuration = (uint8_t)(uint32 + 0);
- } 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({urn:iso:15118:2:2016:MsgDataTypes}SignalPulseDuration) ? */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(eventCode == 0) {
- grammarID = 1587;
- } else {
- errn = EXI_DEVIANT_SUPPORT_NOT_DEPLOYED; /* or also typecast and nillable */
- }
- }
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 1749:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorOrder), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SignalPulseDuration)] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gLFA_EVSEFinePositioningSetupParametersType->SensorOrder.arrayLen < v2gLFA_EVSEFinePositioningSetupParametersType_SensorOrder_ARRAY_SIZE) {
- /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(errn == 0) {
- if(eventCode == 0) {
- errn = decodeNBitUnsignedInteger(stream, 8, &(uint32));
- v2gLFA_EVSEFinePositioningSetupParametersType->SensorOrder.array[v2gLFA_EVSEFinePositioningSetupParametersType->SensorOrder.arrayLen] = (uint8_t)(uint32 + 0);
- v2gLFA_EVSEFinePositioningSetupParametersType->SensorOrder.arrayLen++;
- } else {
- /* Second level event (e.g., xsi:type, xsi:nil, ...) */
- errn = EXI_UNSUPPORTED_EVENT_CODE_CHARACTERISTICS;
- }
- }
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- if(errn == 0) {
- /* valid EE for simple element START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorOrder) ? */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(eventCode == 0) {
- grammarID = 1750;
- } else {
- errn = EXI_DEVIANT_SUPPORT_NOT_DEPLOYED; /* or also typecast and nillable */
- }
- }
- break;
- case 1:
- /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(errn == 0) {
- if(eventCode == 0) {
- errn = decodeNBitUnsignedInteger(stream, 8, &(uint32));
- v2gLFA_EVSEFinePositioningSetupParametersType->SignalPulseDuration = (uint8_t)(uint32 + 0);
- } 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({urn:iso:15118:2:2016:MsgDataTypes}SignalPulseDuration) ? */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(eventCode == 0) {
- grammarID = 1587;
- } else {
- errn = EXI_DEVIANT_SUPPORT_NOT_DEPLOYED; /* or also typecast and nillable */
- }
- }
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 1750:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorOrder), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SignalPulseDuration)] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gLFA_EVSEFinePositioningSetupParametersType->SensorOrder.arrayLen < v2gLFA_EVSEFinePositioningSetupParametersType_SensorOrder_ARRAY_SIZE) {
- /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(errn == 0) {
- if(eventCode == 0) {
- errn = decodeNBitUnsignedInteger(stream, 8, &(uint32));
- v2gLFA_EVSEFinePositioningSetupParametersType->SensorOrder.array[v2gLFA_EVSEFinePositioningSetupParametersType->SensorOrder.arrayLen] = (uint8_t)(uint32 + 0);
- v2gLFA_EVSEFinePositioningSetupParametersType->SensorOrder.arrayLen++;
- } else {
- /* Second level event (e.g., xsi:type, xsi:nil, ...) */
- errn = EXI_UNSUPPORTED_EVENT_CODE_CHARACTERISTICS;
- }
- }
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- if(errn == 0) {
- /* valid EE for simple element START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorOrder) ? */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(eventCode == 0) {
- grammarID = 1751;
- } else {
- errn = EXI_DEVIANT_SUPPORT_NOT_DEPLOYED; /* or also typecast and nillable */
- }
- }
- break;
- case 1:
- /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(errn == 0) {
- if(eventCode == 0) {
- errn = decodeNBitUnsignedInteger(stream, 8, &(uint32));
- v2gLFA_EVSEFinePositioningSetupParametersType->SignalPulseDuration = (uint8_t)(uint32 + 0);
- } 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({urn:iso:15118:2:2016:MsgDataTypes}SignalPulseDuration) ? */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(eventCode == 0) {
- grammarID = 1587;
- } else {
- errn = EXI_DEVIANT_SUPPORT_NOT_DEPLOYED; /* or also typecast and nillable */
- }
- }
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 1751:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorOrder), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SignalPulseDuration)] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gLFA_EVSEFinePositioningSetupParametersType->SensorOrder.arrayLen < v2gLFA_EVSEFinePositioningSetupParametersType_SensorOrder_ARRAY_SIZE) {
- /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(errn == 0) {
- if(eventCode == 0) {
- errn = decodeNBitUnsignedInteger(stream, 8, &(uint32));
- v2gLFA_EVSEFinePositioningSetupParametersType->SensorOrder.array[v2gLFA_EVSEFinePositioningSetupParametersType->SensorOrder.arrayLen] = (uint8_t)(uint32 + 0);
- v2gLFA_EVSEFinePositioningSetupParametersType->SensorOrder.arrayLen++;
- } else {
- /* Second level event (e.g., xsi:type, xsi:nil, ...) */
- errn = EXI_UNSUPPORTED_EVENT_CODE_CHARACTERISTICS;
- }
- }
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- if(errn == 0) {
- /* valid EE for simple element START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorOrder) ? */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(eventCode == 0) {
- grammarID = 1752;
- } else {
- errn = EXI_DEVIANT_SUPPORT_NOT_DEPLOYED; /* or also typecast and nillable */
- }
- }
- break;
- case 1:
- /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(errn == 0) {
- if(eventCode == 0) {
- errn = decodeNBitUnsignedInteger(stream, 8, &(uint32));
- v2gLFA_EVSEFinePositioningSetupParametersType->SignalPulseDuration = (uint8_t)(uint32 + 0);
- } 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({urn:iso:15118:2:2016:MsgDataTypes}SignalPulseDuration) ? */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(eventCode == 0) {
- grammarID = 1587;
- } else {
- errn = EXI_DEVIANT_SUPPORT_NOT_DEPLOYED; /* or also typecast and nillable */
- }
- }
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 1752:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorOrder), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SignalPulseDuration)] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gLFA_EVSEFinePositioningSetupParametersType->SensorOrder.arrayLen < v2gLFA_EVSEFinePositioningSetupParametersType_SensorOrder_ARRAY_SIZE) {
- /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(errn == 0) {
- if(eventCode == 0) {
- errn = decodeNBitUnsignedInteger(stream, 8, &(uint32));
- v2gLFA_EVSEFinePositioningSetupParametersType->SensorOrder.array[v2gLFA_EVSEFinePositioningSetupParametersType->SensorOrder.arrayLen] = (uint8_t)(uint32 + 0);
- v2gLFA_EVSEFinePositioningSetupParametersType->SensorOrder.arrayLen++;
- } else {
- /* Second level event (e.g., xsi:type, xsi:nil, ...) */
- errn = EXI_UNSUPPORTED_EVENT_CODE_CHARACTERISTICS;
- }
- }
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- if(errn == 0) {
- /* valid EE for simple element START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorOrder) ? */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(eventCode == 0) {
- grammarID = 1753;
- } else {
- errn = EXI_DEVIANT_SUPPORT_NOT_DEPLOYED; /* or also typecast and nillable */
- }
- }
- break;
- case 1:
- /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(errn == 0) {
- if(eventCode == 0) {
- errn = decodeNBitUnsignedInteger(stream, 8, &(uint32));
- v2gLFA_EVSEFinePositioningSetupParametersType->SignalPulseDuration = (uint8_t)(uint32 + 0);
- } 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({urn:iso:15118:2:2016:MsgDataTypes}SignalPulseDuration) ? */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(eventCode == 0) {
- grammarID = 1587;
- } else {
- errn = EXI_DEVIANT_SUPPORT_NOT_DEPLOYED; /* or also typecast and nillable */
- }
- }
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 1753:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorOrder), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SignalPulseDuration)] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gLFA_EVSEFinePositioningSetupParametersType->SensorOrder.arrayLen < v2gLFA_EVSEFinePositioningSetupParametersType_SensorOrder_ARRAY_SIZE) {
- /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(errn == 0) {
- if(eventCode == 0) {
- errn = decodeNBitUnsignedInteger(stream, 8, &(uint32));
- v2gLFA_EVSEFinePositioningSetupParametersType->SensorOrder.array[v2gLFA_EVSEFinePositioningSetupParametersType->SensorOrder.arrayLen] = (uint8_t)(uint32 + 0);
- v2gLFA_EVSEFinePositioningSetupParametersType->SensorOrder.arrayLen++;
- } else {
- /* Second level event (e.g., xsi:type, xsi:nil, ...) */
- errn = EXI_UNSUPPORTED_EVENT_CODE_CHARACTERISTICS;
- }
- }
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- if(errn == 0) {
- /* valid EE for simple element START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorOrder) ? */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(eventCode == 0) {
- grammarID = 1754;
- } else {
- errn = EXI_DEVIANT_SUPPORT_NOT_DEPLOYED; /* or also typecast and nillable */
- }
- }
- break;
- case 1:
- /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(errn == 0) {
- if(eventCode == 0) {
- errn = decodeNBitUnsignedInteger(stream, 8, &(uint32));
- v2gLFA_EVSEFinePositioningSetupParametersType->SignalPulseDuration = (uint8_t)(uint32 + 0);
- } 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({urn:iso:15118:2:2016:MsgDataTypes}SignalPulseDuration) ? */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(eventCode == 0) {
- grammarID = 1587;
- } else {
- errn = EXI_DEVIANT_SUPPORT_NOT_DEPLOYED; /* or also typecast and nillable */
- }
- }
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 1754:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorOrder), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SignalPulseDuration)] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gLFA_EVSEFinePositioningSetupParametersType->SensorOrder.arrayLen < v2gLFA_EVSEFinePositioningSetupParametersType_SensorOrder_ARRAY_SIZE) {
- /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(errn == 0) {
- if(eventCode == 0) {
- errn = decodeNBitUnsignedInteger(stream, 8, &(uint32));
- v2gLFA_EVSEFinePositioningSetupParametersType->SensorOrder.array[v2gLFA_EVSEFinePositioningSetupParametersType->SensorOrder.arrayLen] = (uint8_t)(uint32 + 0);
- v2gLFA_EVSEFinePositioningSetupParametersType->SensorOrder.arrayLen++;
- } else {
- /* Second level event (e.g., xsi:type, xsi:nil, ...) */
- errn = EXI_UNSUPPORTED_EVENT_CODE_CHARACTERISTICS;
- }
- }
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- if(errn == 0) {
- /* valid EE for simple element START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorOrder) ? */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(eventCode == 0) {
- grammarID = 1755;
- } else {
- errn = EXI_DEVIANT_SUPPORT_NOT_DEPLOYED; /* or also typecast and nillable */
- }
- }
- break;
- case 1:
- /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(errn == 0) {
- if(eventCode == 0) {
- errn = decodeNBitUnsignedInteger(stream, 8, &(uint32));
- v2gLFA_EVSEFinePositioningSetupParametersType->SignalPulseDuration = (uint8_t)(uint32 + 0);
- } 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({urn:iso:15118:2:2016:MsgDataTypes}SignalPulseDuration) ? */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(eventCode == 0) {
- grammarID = 1587;
- } else {
- errn = EXI_DEVIANT_SUPPORT_NOT_DEPLOYED; /* or also typecast and nillable */
- }
- }
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 1755:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorOrder), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SignalPulseDuration)] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gLFA_EVSEFinePositioningSetupParametersType->SensorOrder.arrayLen < v2gLFA_EVSEFinePositioningSetupParametersType_SensorOrder_ARRAY_SIZE) {
- /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(errn == 0) {
- if(eventCode == 0) {
- errn = decodeNBitUnsignedInteger(stream, 8, &(uint32));
- v2gLFA_EVSEFinePositioningSetupParametersType->SensorOrder.array[v2gLFA_EVSEFinePositioningSetupParametersType->SensorOrder.arrayLen] = (uint8_t)(uint32 + 0);
- v2gLFA_EVSEFinePositioningSetupParametersType->SensorOrder.arrayLen++;
- } else {
- /* Second level event (e.g., xsi:type, xsi:nil, ...) */
- errn = EXI_UNSUPPORTED_EVENT_CODE_CHARACTERISTICS;
- }
- }
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- if(errn == 0) {
- /* valid EE for simple element START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorOrder) ? */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(eventCode == 0) {
- grammarID = 1756;
- } else {
- errn = EXI_DEVIANT_SUPPORT_NOT_DEPLOYED; /* or also typecast and nillable */
- }
- }
- break;
- case 1:
- /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(errn == 0) {
- if(eventCode == 0) {
- errn = decodeNBitUnsignedInteger(stream, 8, &(uint32));
- v2gLFA_EVSEFinePositioningSetupParametersType->SignalPulseDuration = (uint8_t)(uint32 + 0);
- } 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({urn:iso:15118:2:2016:MsgDataTypes}SignalPulseDuration) ? */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(eventCode == 0) {
- grammarID = 1587;
- } else {
- errn = EXI_DEVIANT_SUPPORT_NOT_DEPLOYED; /* or also typecast and nillable */
- }
- }
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 1756:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorOrder), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SignalPulseDuration)] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gLFA_EVSEFinePositioningSetupParametersType->SensorOrder.arrayLen < v2gLFA_EVSEFinePositioningSetupParametersType_SensorOrder_ARRAY_SIZE) {
- /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(errn == 0) {
- if(eventCode == 0) {
- errn = decodeNBitUnsignedInteger(stream, 8, &(uint32));
- v2gLFA_EVSEFinePositioningSetupParametersType->SensorOrder.array[v2gLFA_EVSEFinePositioningSetupParametersType->SensorOrder.arrayLen] = (uint8_t)(uint32 + 0);
- v2gLFA_EVSEFinePositioningSetupParametersType->SensorOrder.arrayLen++;
- } else {
- /* Second level event (e.g., xsi:type, xsi:nil, ...) */
- errn = EXI_UNSUPPORTED_EVENT_CODE_CHARACTERISTICS;
- }
- }
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- if(errn == 0) {
- /* valid EE for simple element START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorOrder) ? */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(eventCode == 0) {
- grammarID = 1757;
- } else {
- errn = EXI_DEVIANT_SUPPORT_NOT_DEPLOYED; /* or also typecast and nillable */
- }
- }
- break;
- case 1:
- /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(errn == 0) {
- if(eventCode == 0) {
- errn = decodeNBitUnsignedInteger(stream, 8, &(uint32));
- v2gLFA_EVSEFinePositioningSetupParametersType->SignalPulseDuration = (uint8_t)(uint32 + 0);
- } 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({urn:iso:15118:2:2016:MsgDataTypes}SignalPulseDuration) ? */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(eventCode == 0) {
- grammarID = 1587;
- } else {
- errn = EXI_DEVIANT_SUPPORT_NOT_DEPLOYED; /* or also typecast and nillable */
- }
- }
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 1757:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorOrder), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SignalPulseDuration)] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gLFA_EVSEFinePositioningSetupParametersType->SensorOrder.arrayLen < v2gLFA_EVSEFinePositioningSetupParametersType_SensorOrder_ARRAY_SIZE) {
- /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(errn == 0) {
- if(eventCode == 0) {
- errn = decodeNBitUnsignedInteger(stream, 8, &(uint32));
- v2gLFA_EVSEFinePositioningSetupParametersType->SensorOrder.array[v2gLFA_EVSEFinePositioningSetupParametersType->SensorOrder.arrayLen] = (uint8_t)(uint32 + 0);
- v2gLFA_EVSEFinePositioningSetupParametersType->SensorOrder.arrayLen++;
- } else {
- /* Second level event (e.g., xsi:type, xsi:nil, ...) */
- errn = EXI_UNSUPPORTED_EVENT_CODE_CHARACTERISTICS;
- }
- }
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- if(errn == 0) {
- /* valid EE for simple element START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorOrder) ? */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(eventCode == 0) {
- grammarID = 1758;
- } else {
- errn = EXI_DEVIANT_SUPPORT_NOT_DEPLOYED; /* or also typecast and nillable */
- }
- }
- break;
- case 1:
- /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(errn == 0) {
- if(eventCode == 0) {
- errn = decodeNBitUnsignedInteger(stream, 8, &(uint32));
- v2gLFA_EVSEFinePositioningSetupParametersType->SignalPulseDuration = (uint8_t)(uint32 + 0);
- } 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({urn:iso:15118:2:2016:MsgDataTypes}SignalPulseDuration) ? */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(eventCode == 0) {
- grammarID = 1587;
- } else {
- errn = EXI_DEVIANT_SUPPORT_NOT_DEPLOYED; /* or also typecast and nillable */
- }
- }
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 1758:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorOrder), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SignalPulseDuration)] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gLFA_EVSEFinePositioningSetupParametersType->SensorOrder.arrayLen < v2gLFA_EVSEFinePositioningSetupParametersType_SensorOrder_ARRAY_SIZE) {
- /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(errn == 0) {
- if(eventCode == 0) {
- errn = decodeNBitUnsignedInteger(stream, 8, &(uint32));
- v2gLFA_EVSEFinePositioningSetupParametersType->SensorOrder.array[v2gLFA_EVSEFinePositioningSetupParametersType->SensorOrder.arrayLen] = (uint8_t)(uint32 + 0);
- v2gLFA_EVSEFinePositioningSetupParametersType->SensorOrder.arrayLen++;
- } else {
- /* Second level event (e.g., xsi:type, xsi:nil, ...) */
- errn = EXI_UNSUPPORTED_EVENT_CODE_CHARACTERISTICS;
- }
- }
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- if(errn == 0) {
- /* valid EE for simple element START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorOrder) ? */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(eventCode == 0) {
- grammarID = 1759;
- } else {
- errn = EXI_DEVIANT_SUPPORT_NOT_DEPLOYED; /* or also typecast and nillable */
- }
- }
- break;
- case 1:
- /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(errn == 0) {
- if(eventCode == 0) {
- errn = decodeNBitUnsignedInteger(stream, 8, &(uint32));
- v2gLFA_EVSEFinePositioningSetupParametersType->SignalPulseDuration = (uint8_t)(uint32 + 0);
- } 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({urn:iso:15118:2:2016:MsgDataTypes}SignalPulseDuration) ? */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(eventCode == 0) {
- grammarID = 1587;
- } else {
- errn = EXI_DEVIANT_SUPPORT_NOT_DEPLOYED; /* or also typecast and nillable */
- }
- }
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 1759:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorOrder), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SignalPulseDuration)] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gLFA_EVSEFinePositioningSetupParametersType->SensorOrder.arrayLen < v2gLFA_EVSEFinePositioningSetupParametersType_SensorOrder_ARRAY_SIZE) {
- /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(errn == 0) {
- if(eventCode == 0) {
- errn = decodeNBitUnsignedInteger(stream, 8, &(uint32));
- v2gLFA_EVSEFinePositioningSetupParametersType->SensorOrder.array[v2gLFA_EVSEFinePositioningSetupParametersType->SensorOrder.arrayLen] = (uint8_t)(uint32 + 0);
- v2gLFA_EVSEFinePositioningSetupParametersType->SensorOrder.arrayLen++;
- } else {
- /* Second level event (e.g., xsi:type, xsi:nil, ...) */
- errn = EXI_UNSUPPORTED_EVENT_CODE_CHARACTERISTICS;
- }
- }
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- if(errn == 0) {
- /* valid EE for simple element START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorOrder) ? */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(eventCode == 0) {
- grammarID = 1760;
- } else {
- errn = EXI_DEVIANT_SUPPORT_NOT_DEPLOYED; /* or also typecast and nillable */
- }
- }
- break;
- case 1:
- /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(errn == 0) {
- if(eventCode == 0) {
- errn = decodeNBitUnsignedInteger(stream, 8, &(uint32));
- v2gLFA_EVSEFinePositioningSetupParametersType->SignalPulseDuration = (uint8_t)(uint32 + 0);
- } 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({urn:iso:15118:2:2016:MsgDataTypes}SignalPulseDuration) ? */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(eventCode == 0) {
- grammarID = 1587;
- } else {
- errn = EXI_DEVIANT_SUPPORT_NOT_DEPLOYED; /* or also typecast and nillable */
- }
- }
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 1760:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorOrder), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SignalPulseDuration)] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gLFA_EVSEFinePositioningSetupParametersType->SensorOrder.arrayLen < v2gLFA_EVSEFinePositioningSetupParametersType_SensorOrder_ARRAY_SIZE) {
- /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(errn == 0) {
- if(eventCode == 0) {
- errn = decodeNBitUnsignedInteger(stream, 8, &(uint32));
- v2gLFA_EVSEFinePositioningSetupParametersType->SensorOrder.array[v2gLFA_EVSEFinePositioningSetupParametersType->SensorOrder.arrayLen] = (uint8_t)(uint32 + 0);
- v2gLFA_EVSEFinePositioningSetupParametersType->SensorOrder.arrayLen++;
- } else {
- /* Second level event (e.g., xsi:type, xsi:nil, ...) */
- errn = EXI_UNSUPPORTED_EVENT_CODE_CHARACTERISTICS;
- }
- }
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- if(errn == 0) {
- /* valid EE for simple element START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorOrder) ? */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(eventCode == 0) {
- grammarID = 1761;
- } else {
- errn = EXI_DEVIANT_SUPPORT_NOT_DEPLOYED; /* or also typecast and nillable */
- }
- }
- break;
- case 1:
- /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(errn == 0) {
- if(eventCode == 0) {
- errn = decodeNBitUnsignedInteger(stream, 8, &(uint32));
- v2gLFA_EVSEFinePositioningSetupParametersType->SignalPulseDuration = (uint8_t)(uint32 + 0);
- } 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({urn:iso:15118:2:2016:MsgDataTypes}SignalPulseDuration) ? */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(eventCode == 0) {
- grammarID = 1587;
- } else {
- errn = EXI_DEVIANT_SUPPORT_NOT_DEPLOYED; /* or also typecast and nillable */
- }
- }
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 1761:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorOrder), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SignalPulseDuration)] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gLFA_EVSEFinePositioningSetupParametersType->SensorOrder.arrayLen < v2gLFA_EVSEFinePositioningSetupParametersType_SensorOrder_ARRAY_SIZE) {
- /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(errn == 0) {
- if(eventCode == 0) {
- errn = decodeNBitUnsignedInteger(stream, 8, &(uint32));
- v2gLFA_EVSEFinePositioningSetupParametersType->SensorOrder.array[v2gLFA_EVSEFinePositioningSetupParametersType->SensorOrder.arrayLen] = (uint8_t)(uint32 + 0);
- v2gLFA_EVSEFinePositioningSetupParametersType->SensorOrder.arrayLen++;
- } else {
- /* Second level event (e.g., xsi:type, xsi:nil, ...) */
- errn = EXI_UNSUPPORTED_EVENT_CODE_CHARACTERISTICS;
- }
- }
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- if(errn == 0) {
- /* valid EE for simple element START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorOrder) ? */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(eventCode == 0) {
- grammarID = 1762;
- } else {
- errn = EXI_DEVIANT_SUPPORT_NOT_DEPLOYED; /* or also typecast and nillable */
- }
- }
- break;
- case 1:
- /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(errn == 0) {
- if(eventCode == 0) {
- errn = decodeNBitUnsignedInteger(stream, 8, &(uint32));
- v2gLFA_EVSEFinePositioningSetupParametersType->SignalPulseDuration = (uint8_t)(uint32 + 0);
- } 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({urn:iso:15118:2:2016:MsgDataTypes}SignalPulseDuration) ? */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(eventCode == 0) {
- grammarID = 1587;
- } else {
- errn = EXI_DEVIANT_SUPPORT_NOT_DEPLOYED; /* or also typecast and nillable */
- }
- }
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 1762:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorOrder), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SignalPulseDuration)] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gLFA_EVSEFinePositioningSetupParametersType->SensorOrder.arrayLen < v2gLFA_EVSEFinePositioningSetupParametersType_SensorOrder_ARRAY_SIZE) {
- /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(errn == 0) {
- if(eventCode == 0) {
- errn = decodeNBitUnsignedInteger(stream, 8, &(uint32));
- v2gLFA_EVSEFinePositioningSetupParametersType->SensorOrder.array[v2gLFA_EVSEFinePositioningSetupParametersType->SensorOrder.arrayLen] = (uint8_t)(uint32 + 0);
- v2gLFA_EVSEFinePositioningSetupParametersType->SensorOrder.arrayLen++;
- } else {
- /* Second level event (e.g., xsi:type, xsi:nil, ...) */
- errn = EXI_UNSUPPORTED_EVENT_CODE_CHARACTERISTICS;
- }
- }
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- if(errn == 0) {
- /* valid EE for simple element START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorOrder) ? */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(eventCode == 0) {
- grammarID = 1763;
- } else {
- errn = EXI_DEVIANT_SUPPORT_NOT_DEPLOYED; /* or also typecast and nillable */
- }
- }
- break;
- case 1:
- /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(errn == 0) {
- if(eventCode == 0) {
- errn = decodeNBitUnsignedInteger(stream, 8, &(uint32));
- v2gLFA_EVSEFinePositioningSetupParametersType->SignalPulseDuration = (uint8_t)(uint32 + 0);
- } 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({urn:iso:15118:2:2016:MsgDataTypes}SignalPulseDuration) ? */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(eventCode == 0) {
- grammarID = 1587;
- } else {
- errn = EXI_DEVIANT_SUPPORT_NOT_DEPLOYED; /* or also typecast and nillable */
- }
- }
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 1763:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorOrder), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SignalPulseDuration)] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gLFA_EVSEFinePositioningSetupParametersType->SensorOrder.arrayLen < v2gLFA_EVSEFinePositioningSetupParametersType_SensorOrder_ARRAY_SIZE) {
- /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(errn == 0) {
- if(eventCode == 0) {
- errn = decodeNBitUnsignedInteger(stream, 8, &(uint32));
- v2gLFA_EVSEFinePositioningSetupParametersType->SensorOrder.array[v2gLFA_EVSEFinePositioningSetupParametersType->SensorOrder.arrayLen] = (uint8_t)(uint32 + 0);
- v2gLFA_EVSEFinePositioningSetupParametersType->SensorOrder.arrayLen++;
- } else {
- /* Second level event (e.g., xsi:type, xsi:nil, ...) */
- errn = EXI_UNSUPPORTED_EVENT_CODE_CHARACTERISTICS;
- }
- }
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- if(errn == 0) {
- /* valid EE for simple element START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorOrder) ? */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(eventCode == 0) {
- grammarID = 1764;
- } else {
- errn = EXI_DEVIANT_SUPPORT_NOT_DEPLOYED; /* or also typecast and nillable */
- }
- }
- break;
- case 1:
- /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(errn == 0) {
- if(eventCode == 0) {
- errn = decodeNBitUnsignedInteger(stream, 8, &(uint32));
- v2gLFA_EVSEFinePositioningSetupParametersType->SignalPulseDuration = (uint8_t)(uint32 + 0);
- } 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({urn:iso:15118:2:2016:MsgDataTypes}SignalPulseDuration) ? */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(eventCode == 0) {
- grammarID = 1587;
- } else {
- errn = EXI_DEVIANT_SUPPORT_NOT_DEPLOYED; /* or also typecast and nillable */
- }
- }
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 1764:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorOrder), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SignalPulseDuration)] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gLFA_EVSEFinePositioningSetupParametersType->SensorOrder.arrayLen < v2gLFA_EVSEFinePositioningSetupParametersType_SensorOrder_ARRAY_SIZE) {
- /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(errn == 0) {
- if(eventCode == 0) {
- errn = decodeNBitUnsignedInteger(stream, 8, &(uint32));
- v2gLFA_EVSEFinePositioningSetupParametersType->SensorOrder.array[v2gLFA_EVSEFinePositioningSetupParametersType->SensorOrder.arrayLen] = (uint8_t)(uint32 + 0);
- v2gLFA_EVSEFinePositioningSetupParametersType->SensorOrder.arrayLen++;
- } else {
- /* Second level event (e.g., xsi:type, xsi:nil, ...) */
- errn = EXI_UNSUPPORTED_EVENT_CODE_CHARACTERISTICS;
- }
- }
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- if(errn == 0) {
- /* valid EE for simple element START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorOrder) ? */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(eventCode == 0) {
- grammarID = 1765;
- } else {
- errn = EXI_DEVIANT_SUPPORT_NOT_DEPLOYED; /* or also typecast and nillable */
- }
- }
- break;
- case 1:
- /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(errn == 0) {
- if(eventCode == 0) {
- errn = decodeNBitUnsignedInteger(stream, 8, &(uint32));
- v2gLFA_EVSEFinePositioningSetupParametersType->SignalPulseDuration = (uint8_t)(uint32 + 0);
- } 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({urn:iso:15118:2:2016:MsgDataTypes}SignalPulseDuration) ? */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(eventCode == 0) {
- grammarID = 1587;
- } else {
- errn = EXI_DEVIANT_SUPPORT_NOT_DEPLOYED; /* or also typecast and nillable */
- }
- }
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 1765:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorOrder), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SignalPulseDuration)] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gLFA_EVSEFinePositioningSetupParametersType->SensorOrder.arrayLen < v2gLFA_EVSEFinePositioningSetupParametersType_SensorOrder_ARRAY_SIZE) {
- /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(errn == 0) {
- if(eventCode == 0) {
- errn = decodeNBitUnsignedInteger(stream, 8, &(uint32));
- v2gLFA_EVSEFinePositioningSetupParametersType->SensorOrder.array[v2gLFA_EVSEFinePositioningSetupParametersType->SensorOrder.arrayLen] = (uint8_t)(uint32 + 0);
- v2gLFA_EVSEFinePositioningSetupParametersType->SensorOrder.arrayLen++;
- } else {
- /* Second level event (e.g., xsi:type, xsi:nil, ...) */
- errn = EXI_UNSUPPORTED_EVENT_CODE_CHARACTERISTICS;
- }
- }
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- if(errn == 0) {
- /* valid EE for simple element START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorOrder) ? */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(eventCode == 0) {
- grammarID = 1766;
- } else {
- errn = EXI_DEVIANT_SUPPORT_NOT_DEPLOYED; /* or also typecast and nillable */
- }
- }
- break;
- case 1:
- /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(errn == 0) {
- if(eventCode == 0) {
- errn = decodeNBitUnsignedInteger(stream, 8, &(uint32));
- v2gLFA_EVSEFinePositioningSetupParametersType->SignalPulseDuration = (uint8_t)(uint32 + 0);
- } 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({urn:iso:15118:2:2016:MsgDataTypes}SignalPulseDuration) ? */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(eventCode == 0) {
- grammarID = 1587;
- } else {
- errn = EXI_DEVIANT_SUPPORT_NOT_DEPLOYED; /* or also typecast and nillable */
- }
- }
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 1766:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorOrder), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SignalPulseDuration)] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gLFA_EVSEFinePositioningSetupParametersType->SensorOrder.arrayLen < v2gLFA_EVSEFinePositioningSetupParametersType_SensorOrder_ARRAY_SIZE) {
- /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(errn == 0) {
- if(eventCode == 0) {
- errn = decodeNBitUnsignedInteger(stream, 8, &(uint32));
- v2gLFA_EVSEFinePositioningSetupParametersType->SensorOrder.array[v2gLFA_EVSEFinePositioningSetupParametersType->SensorOrder.arrayLen] = (uint8_t)(uint32 + 0);
- v2gLFA_EVSEFinePositioningSetupParametersType->SensorOrder.arrayLen++;
- } else {
- /* Second level event (e.g., xsi:type, xsi:nil, ...) */
- errn = EXI_UNSUPPORTED_EVENT_CODE_CHARACTERISTICS;
- }
- }
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- if(errn == 0) {
- /* valid EE for simple element START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorOrder) ? */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(eventCode == 0) {
- grammarID = 1767;
- } else {
- errn = EXI_DEVIANT_SUPPORT_NOT_DEPLOYED; /* or also typecast and nillable */
- }
- }
- break;
- case 1:
- /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(errn == 0) {
- if(eventCode == 0) {
- errn = decodeNBitUnsignedInteger(stream, 8, &(uint32));
- v2gLFA_EVSEFinePositioningSetupParametersType->SignalPulseDuration = (uint8_t)(uint32 + 0);
- } 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({urn:iso:15118:2:2016:MsgDataTypes}SignalPulseDuration) ? */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(eventCode == 0) {
- grammarID = 1587;
- } else {
- errn = EXI_DEVIANT_SUPPORT_NOT_DEPLOYED; /* or also typecast and nillable */
- }
- }
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 1767:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorOrder), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SignalPulseDuration)] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gLFA_EVSEFinePositioningSetupParametersType->SensorOrder.arrayLen < v2gLFA_EVSEFinePositioningSetupParametersType_SensorOrder_ARRAY_SIZE) {
- /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(errn == 0) {
- if(eventCode == 0) {
- errn = decodeNBitUnsignedInteger(stream, 8, &(uint32));
- v2gLFA_EVSEFinePositioningSetupParametersType->SensorOrder.array[v2gLFA_EVSEFinePositioningSetupParametersType->SensorOrder.arrayLen] = (uint8_t)(uint32 + 0);
- v2gLFA_EVSEFinePositioningSetupParametersType->SensorOrder.arrayLen++;
- } else {
- /* Second level event (e.g., xsi:type, xsi:nil, ...) */
- errn = EXI_UNSUPPORTED_EVENT_CODE_CHARACTERISTICS;
- }
- }
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- if(errn == 0) {
- /* valid EE for simple element START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorOrder) ? */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(eventCode == 0) {
- grammarID = 1768;
- } else {
- errn = EXI_DEVIANT_SUPPORT_NOT_DEPLOYED; /* or also typecast and nillable */
- }
- }
- break;
- case 1:
- /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(errn == 0) {
- if(eventCode == 0) {
- errn = decodeNBitUnsignedInteger(stream, 8, &(uint32));
- v2gLFA_EVSEFinePositioningSetupParametersType->SignalPulseDuration = (uint8_t)(uint32 + 0);
- } 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({urn:iso:15118:2:2016:MsgDataTypes}SignalPulseDuration) ? */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(eventCode == 0) {
- grammarID = 1587;
- } else {
- errn = EXI_DEVIANT_SUPPORT_NOT_DEPLOYED; /* or also typecast and nillable */
- }
- }
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 1768:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorOrder), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SignalPulseDuration)] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gLFA_EVSEFinePositioningSetupParametersType->SensorOrder.arrayLen < v2gLFA_EVSEFinePositioningSetupParametersType_SensorOrder_ARRAY_SIZE) {
- /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(errn == 0) {
- if(eventCode == 0) {
- errn = decodeNBitUnsignedInteger(stream, 8, &(uint32));
- v2gLFA_EVSEFinePositioningSetupParametersType->SensorOrder.array[v2gLFA_EVSEFinePositioningSetupParametersType->SensorOrder.arrayLen] = (uint8_t)(uint32 + 0);
- v2gLFA_EVSEFinePositioningSetupParametersType->SensorOrder.arrayLen++;
- } else {
- /* Second level event (e.g., xsi:type, xsi:nil, ...) */
- errn = EXI_UNSUPPORTED_EVENT_CODE_CHARACTERISTICS;
- }
- }
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- if(errn == 0) {
- /* valid EE for simple element START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorOrder) ? */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(eventCode == 0) {
- grammarID = 1769;
- } else {
- errn = EXI_DEVIANT_SUPPORT_NOT_DEPLOYED; /* or also typecast and nillable */
- }
- }
- break;
- case 1:
- /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(errn == 0) {
- if(eventCode == 0) {
- errn = decodeNBitUnsignedInteger(stream, 8, &(uint32));
- v2gLFA_EVSEFinePositioningSetupParametersType->SignalPulseDuration = (uint8_t)(uint32 + 0);
- } 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({urn:iso:15118:2:2016:MsgDataTypes}SignalPulseDuration) ? */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(eventCode == 0) {
- grammarID = 1587;
- } else {
- errn = EXI_DEVIANT_SUPPORT_NOT_DEPLOYED; /* or also typecast and nillable */
- }
- }
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 1769:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorOrder), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SignalPulseDuration)] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gLFA_EVSEFinePositioningSetupParametersType->SensorOrder.arrayLen < v2gLFA_EVSEFinePositioningSetupParametersType_SensorOrder_ARRAY_SIZE) {
- /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(errn == 0) {
- if(eventCode == 0) {
- errn = decodeNBitUnsignedInteger(stream, 8, &(uint32));
- v2gLFA_EVSEFinePositioningSetupParametersType->SensorOrder.array[v2gLFA_EVSEFinePositioningSetupParametersType->SensorOrder.arrayLen] = (uint8_t)(uint32 + 0);
- v2gLFA_EVSEFinePositioningSetupParametersType->SensorOrder.arrayLen++;
- } else {
- /* Second level event (e.g., xsi:type, xsi:nil, ...) */
- errn = EXI_UNSUPPORTED_EVENT_CODE_CHARACTERISTICS;
- }
- }
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- if(errn == 0) {
- /* valid EE for simple element START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorOrder) ? */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(eventCode == 0) {
- grammarID = 1770;
- } else {
- errn = EXI_DEVIANT_SUPPORT_NOT_DEPLOYED; /* or also typecast and nillable */
- }
- }
- break;
- case 1:
- /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(errn == 0) {
- if(eventCode == 0) {
- errn = decodeNBitUnsignedInteger(stream, 8, &(uint32));
- v2gLFA_EVSEFinePositioningSetupParametersType->SignalPulseDuration = (uint8_t)(uint32 + 0);
- } 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({urn:iso:15118:2:2016:MsgDataTypes}SignalPulseDuration) ? */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(eventCode == 0) {
- grammarID = 1587;
- } else {
- errn = EXI_DEVIANT_SUPPORT_NOT_DEPLOYED; /* or also typecast and nillable */
- }
- }
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 1770:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorOrder), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SignalPulseDuration)] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gLFA_EVSEFinePositioningSetupParametersType->SensorOrder.arrayLen < v2gLFA_EVSEFinePositioningSetupParametersType_SensorOrder_ARRAY_SIZE) {
- /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(errn == 0) {
- if(eventCode == 0) {
- errn = decodeNBitUnsignedInteger(stream, 8, &(uint32));
- v2gLFA_EVSEFinePositioningSetupParametersType->SensorOrder.array[v2gLFA_EVSEFinePositioningSetupParametersType->SensorOrder.arrayLen] = (uint8_t)(uint32 + 0);
- v2gLFA_EVSEFinePositioningSetupParametersType->SensorOrder.arrayLen++;
- } else {
- /* Second level event (e.g., xsi:type, xsi:nil, ...) */
- errn = EXI_UNSUPPORTED_EVENT_CODE_CHARACTERISTICS;
- }
- }
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- if(errn == 0) {
- /* valid EE for simple element START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorOrder) ? */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(eventCode == 0) {
- grammarID = 1771;
- } else {
- errn = EXI_DEVIANT_SUPPORT_NOT_DEPLOYED; /* or also typecast and nillable */
- }
- }
- break;
- case 1:
- /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(errn == 0) {
- if(eventCode == 0) {
- errn = decodeNBitUnsignedInteger(stream, 8, &(uint32));
- v2gLFA_EVSEFinePositioningSetupParametersType->SignalPulseDuration = (uint8_t)(uint32 + 0);
- } 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({urn:iso:15118:2:2016:MsgDataTypes}SignalPulseDuration) ? */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(eventCode == 0) {
- grammarID = 1587;
- } else {
- errn = EXI_DEVIANT_SUPPORT_NOT_DEPLOYED; /* or also typecast and nillable */
- }
- }
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 1771:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorOrder), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SignalPulseDuration)] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gLFA_EVSEFinePositioningSetupParametersType->SensorOrder.arrayLen < v2gLFA_EVSEFinePositioningSetupParametersType_SensorOrder_ARRAY_SIZE) {
- /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(errn == 0) {
- if(eventCode == 0) {
- errn = decodeNBitUnsignedInteger(stream, 8, &(uint32));
- v2gLFA_EVSEFinePositioningSetupParametersType->SensorOrder.array[v2gLFA_EVSEFinePositioningSetupParametersType->SensorOrder.arrayLen] = (uint8_t)(uint32 + 0);
- v2gLFA_EVSEFinePositioningSetupParametersType->SensorOrder.arrayLen++;
- } else {
- /* Second level event (e.g., xsi:type, xsi:nil, ...) */
- errn = EXI_UNSUPPORTED_EVENT_CODE_CHARACTERISTICS;
- }
- }
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- if(errn == 0) {
- /* valid EE for simple element START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorOrder) ? */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(eventCode == 0) {
- grammarID = 1772;
- } else {
- errn = EXI_DEVIANT_SUPPORT_NOT_DEPLOYED; /* or also typecast and nillable */
- }
- }
- break;
- case 1:
- /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(errn == 0) {
- if(eventCode == 0) {
- errn = decodeNBitUnsignedInteger(stream, 8, &(uint32));
- v2gLFA_EVSEFinePositioningSetupParametersType->SignalPulseDuration = (uint8_t)(uint32 + 0);
- } 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({urn:iso:15118:2:2016:MsgDataTypes}SignalPulseDuration) ? */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(eventCode == 0) {
- grammarID = 1587;
- } else {
- errn = EXI_DEVIANT_SUPPORT_NOT_DEPLOYED; /* or also typecast and nillable */
- }
- }
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 1772:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorOrder), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SignalPulseDuration)] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gLFA_EVSEFinePositioningSetupParametersType->SensorOrder.arrayLen < v2gLFA_EVSEFinePositioningSetupParametersType_SensorOrder_ARRAY_SIZE) {
- /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(errn == 0) {
- if(eventCode == 0) {
- errn = decodeNBitUnsignedInteger(stream, 8, &(uint32));
- v2gLFA_EVSEFinePositioningSetupParametersType->SensorOrder.array[v2gLFA_EVSEFinePositioningSetupParametersType->SensorOrder.arrayLen] = (uint8_t)(uint32 + 0);
- v2gLFA_EVSEFinePositioningSetupParametersType->SensorOrder.arrayLen++;
- } else {
- /* Second level event (e.g., xsi:type, xsi:nil, ...) */
- errn = EXI_UNSUPPORTED_EVENT_CODE_CHARACTERISTICS;
- }
- }
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- if(errn == 0) {
- /* valid EE for simple element START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorOrder) ? */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(eventCode == 0) {
- grammarID = 1773;
- } else {
- errn = EXI_DEVIANT_SUPPORT_NOT_DEPLOYED; /* or also typecast and nillable */
- }
- }
- break;
- case 1:
- /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(errn == 0) {
- if(eventCode == 0) {
- errn = decodeNBitUnsignedInteger(stream, 8, &(uint32));
- v2gLFA_EVSEFinePositioningSetupParametersType->SignalPulseDuration = (uint8_t)(uint32 + 0);
- } 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({urn:iso:15118:2:2016:MsgDataTypes}SignalPulseDuration) ? */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(eventCode == 0) {
- grammarID = 1587;
- } else {
- errn = EXI_DEVIANT_SUPPORT_NOT_DEPLOYED; /* or also typecast and nillable */
- }
- }
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 1773:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorOrder), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SignalPulseDuration)] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gLFA_EVSEFinePositioningSetupParametersType->SensorOrder.arrayLen < v2gLFA_EVSEFinePositioningSetupParametersType_SensorOrder_ARRAY_SIZE) {
- /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(errn == 0) {
- if(eventCode == 0) {
- errn = decodeNBitUnsignedInteger(stream, 8, &(uint32));
- v2gLFA_EVSEFinePositioningSetupParametersType->SensorOrder.array[v2gLFA_EVSEFinePositioningSetupParametersType->SensorOrder.arrayLen] = (uint8_t)(uint32 + 0);
- v2gLFA_EVSEFinePositioningSetupParametersType->SensorOrder.arrayLen++;
- } else {
- /* Second level event (e.g., xsi:type, xsi:nil, ...) */
- errn = EXI_UNSUPPORTED_EVENT_CODE_CHARACTERISTICS;
- }
- }
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- if(errn == 0) {
- /* valid EE for simple element START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorOrder) ? */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(eventCode == 0) {
- grammarID = 1774;
- } else {
- errn = EXI_DEVIANT_SUPPORT_NOT_DEPLOYED; /* or also typecast and nillable */
- }
- }
- break;
- case 1:
- /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(errn == 0) {
- if(eventCode == 0) {
- errn = decodeNBitUnsignedInteger(stream, 8, &(uint32));
- v2gLFA_EVSEFinePositioningSetupParametersType->SignalPulseDuration = (uint8_t)(uint32 + 0);
- } 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({urn:iso:15118:2:2016:MsgDataTypes}SignalPulseDuration) ? */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(eventCode == 0) {
- grammarID = 1587;
- } else {
- errn = EXI_DEVIANT_SUPPORT_NOT_DEPLOYED; /* or also typecast and nillable */
- }
- }
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 1774:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorOrder), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SignalPulseDuration)] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gLFA_EVSEFinePositioningSetupParametersType->SensorOrder.arrayLen < v2gLFA_EVSEFinePositioningSetupParametersType_SensorOrder_ARRAY_SIZE) {
- /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(errn == 0) {
- if(eventCode == 0) {
- errn = decodeNBitUnsignedInteger(stream, 8, &(uint32));
- v2gLFA_EVSEFinePositioningSetupParametersType->SensorOrder.array[v2gLFA_EVSEFinePositioningSetupParametersType->SensorOrder.arrayLen] = (uint8_t)(uint32 + 0);
- v2gLFA_EVSEFinePositioningSetupParametersType->SensorOrder.arrayLen++;
- } else {
- /* Second level event (e.g., xsi:type, xsi:nil, ...) */
- errn = EXI_UNSUPPORTED_EVENT_CODE_CHARACTERISTICS;
- }
- }
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- if(errn == 0) {
- /* valid EE for simple element START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorOrder) ? */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(eventCode == 0) {
- grammarID = 1775;
- } else {
- errn = EXI_DEVIANT_SUPPORT_NOT_DEPLOYED; /* or also typecast and nillable */
- }
- }
- break;
- case 1:
- /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(errn == 0) {
- if(eventCode == 0) {
- errn = decodeNBitUnsignedInteger(stream, 8, &(uint32));
- v2gLFA_EVSEFinePositioningSetupParametersType->SignalPulseDuration = (uint8_t)(uint32 + 0);
- } 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({urn:iso:15118:2:2016:MsgDataTypes}SignalPulseDuration) ? */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(eventCode == 0) {
- grammarID = 1587;
- } else {
- errn = EXI_DEVIANT_SUPPORT_NOT_DEPLOYED; /* or also typecast and nillable */
- }
- }
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 1775:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorOrder), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SignalPulseDuration)] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gLFA_EVSEFinePositioningSetupParametersType->SensorOrder.arrayLen < v2gLFA_EVSEFinePositioningSetupParametersType_SensorOrder_ARRAY_SIZE) {
- /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(errn == 0) {
- if(eventCode == 0) {
- errn = decodeNBitUnsignedInteger(stream, 8, &(uint32));
- v2gLFA_EVSEFinePositioningSetupParametersType->SensorOrder.array[v2gLFA_EVSEFinePositioningSetupParametersType->SensorOrder.arrayLen] = (uint8_t)(uint32 + 0);
- v2gLFA_EVSEFinePositioningSetupParametersType->SensorOrder.arrayLen++;
- } else {
- /* Second level event (e.g., xsi:type, xsi:nil, ...) */
- errn = EXI_UNSUPPORTED_EVENT_CODE_CHARACTERISTICS;
- }
- }
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- if(errn == 0) {
- /* valid EE for simple element START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorOrder) ? */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(eventCode == 0) {
- grammarID = 1776;
- } else {
- errn = EXI_DEVIANT_SUPPORT_NOT_DEPLOYED; /* or also typecast and nillable */
- }
- }
- break;
- case 1:
- /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(errn == 0) {
- if(eventCode == 0) {
- errn = decodeNBitUnsignedInteger(stream, 8, &(uint32));
- v2gLFA_EVSEFinePositioningSetupParametersType->SignalPulseDuration = (uint8_t)(uint32 + 0);
- } 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({urn:iso:15118:2:2016:MsgDataTypes}SignalPulseDuration) ? */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(eventCode == 0) {
- grammarID = 1587;
- } else {
- errn = EXI_DEVIANT_SUPPORT_NOT_DEPLOYED; /* or also typecast and nillable */
- }
- }
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 1776:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorOrder), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SignalPulseDuration)] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gLFA_EVSEFinePositioningSetupParametersType->SensorOrder.arrayLen < v2gLFA_EVSEFinePositioningSetupParametersType_SensorOrder_ARRAY_SIZE) {
- /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(errn == 0) {
- if(eventCode == 0) {
- errn = decodeNBitUnsignedInteger(stream, 8, &(uint32));
- v2gLFA_EVSEFinePositioningSetupParametersType->SensorOrder.array[v2gLFA_EVSEFinePositioningSetupParametersType->SensorOrder.arrayLen] = (uint8_t)(uint32 + 0);
- v2gLFA_EVSEFinePositioningSetupParametersType->SensorOrder.arrayLen++;
- } else {
- /* Second level event (e.g., xsi:type, xsi:nil, ...) */
- errn = EXI_UNSUPPORTED_EVENT_CODE_CHARACTERISTICS;
- }
- }
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- if(errn == 0) {
- /* valid EE for simple element START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorOrder) ? */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(eventCode == 0) {
- grammarID = 1777;
- } else {
- errn = EXI_DEVIANT_SUPPORT_NOT_DEPLOYED; /* or also typecast and nillable */
- }
- }
- break;
- case 1:
- /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(errn == 0) {
- if(eventCode == 0) {
- errn = decodeNBitUnsignedInteger(stream, 8, &(uint32));
- v2gLFA_EVSEFinePositioningSetupParametersType->SignalPulseDuration = (uint8_t)(uint32 + 0);
- } 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({urn:iso:15118:2:2016:MsgDataTypes}SignalPulseDuration) ? */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(eventCode == 0) {
- grammarID = 1587;
- } else {
- errn = EXI_DEVIANT_SUPPORT_NOT_DEPLOYED; /* or also typecast and nillable */
- }
- }
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 1777:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorOrder), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SignalPulseDuration)] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gLFA_EVSEFinePositioningSetupParametersType->SensorOrder.arrayLen < v2gLFA_EVSEFinePositioningSetupParametersType_SensorOrder_ARRAY_SIZE) {
- /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(errn == 0) {
- if(eventCode == 0) {
- errn = decodeNBitUnsignedInteger(stream, 8, &(uint32));
- v2gLFA_EVSEFinePositioningSetupParametersType->SensorOrder.array[v2gLFA_EVSEFinePositioningSetupParametersType->SensorOrder.arrayLen] = (uint8_t)(uint32 + 0);
- v2gLFA_EVSEFinePositioningSetupParametersType->SensorOrder.arrayLen++;
- } else {
- /* Second level event (e.g., xsi:type, xsi:nil, ...) */
- errn = EXI_UNSUPPORTED_EVENT_CODE_CHARACTERISTICS;
- }
- }
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- if(errn == 0) {
- /* valid EE for simple element START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorOrder) ? */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(eventCode == 0) {
- grammarID = 1778;
- } else {
- errn = EXI_DEVIANT_SUPPORT_NOT_DEPLOYED; /* or also typecast and nillable */
- }
- }
- break;
- case 1:
- /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(errn == 0) {
- if(eventCode == 0) {
- errn = decodeNBitUnsignedInteger(stream, 8, &(uint32));
- v2gLFA_EVSEFinePositioningSetupParametersType->SignalPulseDuration = (uint8_t)(uint32 + 0);
- } 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({urn:iso:15118:2:2016:MsgDataTypes}SignalPulseDuration) ? */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(eventCode == 0) {
- grammarID = 1587;
- } else {
- errn = EXI_DEVIANT_SUPPORT_NOT_DEPLOYED; /* or also typecast and nillable */
- }
- }
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 1778:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorOrder), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SignalPulseDuration)] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gLFA_EVSEFinePositioningSetupParametersType->SensorOrder.arrayLen < v2gLFA_EVSEFinePositioningSetupParametersType_SensorOrder_ARRAY_SIZE) {
- /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(errn == 0) {
- if(eventCode == 0) {
- errn = decodeNBitUnsignedInteger(stream, 8, &(uint32));
- v2gLFA_EVSEFinePositioningSetupParametersType->SensorOrder.array[v2gLFA_EVSEFinePositioningSetupParametersType->SensorOrder.arrayLen] = (uint8_t)(uint32 + 0);
- v2gLFA_EVSEFinePositioningSetupParametersType->SensorOrder.arrayLen++;
- } else {
- /* Second level event (e.g., xsi:type, xsi:nil, ...) */
- errn = EXI_UNSUPPORTED_EVENT_CODE_CHARACTERISTICS;
- }
- }
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- if(errn == 0) {
- /* valid EE for simple element START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorOrder) ? */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(eventCode == 0) {
- grammarID = 1779;
- } else {
- errn = EXI_DEVIANT_SUPPORT_NOT_DEPLOYED; /* or also typecast and nillable */
- }
- }
- break;
- case 1:
- /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(errn == 0) {
- if(eventCode == 0) {
- errn = decodeNBitUnsignedInteger(stream, 8, &(uint32));
- v2gLFA_EVSEFinePositioningSetupParametersType->SignalPulseDuration = (uint8_t)(uint32 + 0);
- } 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({urn:iso:15118:2:2016:MsgDataTypes}SignalPulseDuration) ? */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(eventCode == 0) {
- grammarID = 1587;
- } else {
- errn = EXI_DEVIANT_SUPPORT_NOT_DEPLOYED; /* or also typecast and nillable */
- }
- }
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 1779:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorOrder), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SignalPulseDuration)] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gLFA_EVSEFinePositioningSetupParametersType->SensorOrder.arrayLen < v2gLFA_EVSEFinePositioningSetupParametersType_SensorOrder_ARRAY_SIZE) {
- /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(errn == 0) {
- if(eventCode == 0) {
- errn = decodeNBitUnsignedInteger(stream, 8, &(uint32));
- v2gLFA_EVSEFinePositioningSetupParametersType->SensorOrder.array[v2gLFA_EVSEFinePositioningSetupParametersType->SensorOrder.arrayLen] = (uint8_t)(uint32 + 0);
- v2gLFA_EVSEFinePositioningSetupParametersType->SensorOrder.arrayLen++;
- } else {
- /* Second level event (e.g., xsi:type, xsi:nil, ...) */
- errn = EXI_UNSUPPORTED_EVENT_CODE_CHARACTERISTICS;
- }
- }
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- if(errn == 0) {
- /* valid EE for simple element START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorOrder) ? */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(eventCode == 0) {
- grammarID = 1780;
- } else {
- errn = EXI_DEVIANT_SUPPORT_NOT_DEPLOYED; /* or also typecast and nillable */
- }
- }
- break;
- case 1:
- /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(errn == 0) {
- if(eventCode == 0) {
- errn = decodeNBitUnsignedInteger(stream, 8, &(uint32));
- v2gLFA_EVSEFinePositioningSetupParametersType->SignalPulseDuration = (uint8_t)(uint32 + 0);
- } 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({urn:iso:15118:2:2016:MsgDataTypes}SignalPulseDuration) ? */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(eventCode == 0) {
- grammarID = 1587;
- } else {
- errn = EXI_DEVIANT_SUPPORT_NOT_DEPLOYED; /* or also typecast and nillable */
- }
- }
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 1780:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorOrder), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SignalPulseDuration)] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gLFA_EVSEFinePositioningSetupParametersType->SensorOrder.arrayLen < v2gLFA_EVSEFinePositioningSetupParametersType_SensorOrder_ARRAY_SIZE) {
- /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(errn == 0) {
- if(eventCode == 0) {
- errn = decodeNBitUnsignedInteger(stream, 8, &(uint32));
- v2gLFA_EVSEFinePositioningSetupParametersType->SensorOrder.array[v2gLFA_EVSEFinePositioningSetupParametersType->SensorOrder.arrayLen] = (uint8_t)(uint32 + 0);
- v2gLFA_EVSEFinePositioningSetupParametersType->SensorOrder.arrayLen++;
- } else {
- /* Second level event (e.g., xsi:type, xsi:nil, ...) */
- errn = EXI_UNSUPPORTED_EVENT_CODE_CHARACTERISTICS;
- }
- }
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- if(errn == 0) {
- /* valid EE for simple element START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorOrder) ? */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(eventCode == 0) {
- grammarID = 1781;
- } else {
- errn = EXI_DEVIANT_SUPPORT_NOT_DEPLOYED; /* or also typecast and nillable */
- }
- }
- break;
- case 1:
- /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(errn == 0) {
- if(eventCode == 0) {
- errn = decodeNBitUnsignedInteger(stream, 8, &(uint32));
- v2gLFA_EVSEFinePositioningSetupParametersType->SignalPulseDuration = (uint8_t)(uint32 + 0);
- } 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({urn:iso:15118:2:2016:MsgDataTypes}SignalPulseDuration) ? */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(eventCode == 0) {
- grammarID = 1587;
- } else {
- errn = EXI_DEVIANT_SUPPORT_NOT_DEPLOYED; /* or also typecast and nillable */
- }
- }
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 1781:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorOrder), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SignalPulseDuration)] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gLFA_EVSEFinePositioningSetupParametersType->SensorOrder.arrayLen < v2gLFA_EVSEFinePositioningSetupParametersType_SensorOrder_ARRAY_SIZE) {
- /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(errn == 0) {
- if(eventCode == 0) {
- errn = decodeNBitUnsignedInteger(stream, 8, &(uint32));
- v2gLFA_EVSEFinePositioningSetupParametersType->SensorOrder.array[v2gLFA_EVSEFinePositioningSetupParametersType->SensorOrder.arrayLen] = (uint8_t)(uint32 + 0);
- v2gLFA_EVSEFinePositioningSetupParametersType->SensorOrder.arrayLen++;
- } else {
- /* Second level event (e.g., xsi:type, xsi:nil, ...) */
- errn = EXI_UNSUPPORTED_EVENT_CODE_CHARACTERISTICS;
- }
- }
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- if(errn == 0) {
- /* valid EE for simple element START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorOrder) ? */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(eventCode == 0) {
- grammarID = 1782;
- } else {
- errn = EXI_DEVIANT_SUPPORT_NOT_DEPLOYED; /* or also typecast and nillable */
- }
- }
- break;
- case 1:
- /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(errn == 0) {
- if(eventCode == 0) {
- errn = decodeNBitUnsignedInteger(stream, 8, &(uint32));
- v2gLFA_EVSEFinePositioningSetupParametersType->SignalPulseDuration = (uint8_t)(uint32 + 0);
- } 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({urn:iso:15118:2:2016:MsgDataTypes}SignalPulseDuration) ? */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(eventCode == 0) {
- grammarID = 1587;
- } else {
- errn = EXI_DEVIANT_SUPPORT_NOT_DEPLOYED; /* or also typecast and nillable */
- }
- }
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 1782:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorOrder), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SignalPulseDuration)] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gLFA_EVSEFinePositioningSetupParametersType->SensorOrder.arrayLen < v2gLFA_EVSEFinePositioningSetupParametersType_SensorOrder_ARRAY_SIZE) {
- /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(errn == 0) {
- if(eventCode == 0) {
- errn = decodeNBitUnsignedInteger(stream, 8, &(uint32));
- v2gLFA_EVSEFinePositioningSetupParametersType->SensorOrder.array[v2gLFA_EVSEFinePositioningSetupParametersType->SensorOrder.arrayLen] = (uint8_t)(uint32 + 0);
- v2gLFA_EVSEFinePositioningSetupParametersType->SensorOrder.arrayLen++;
- } else {
- /* Second level event (e.g., xsi:type, xsi:nil, ...) */
- errn = EXI_UNSUPPORTED_EVENT_CODE_CHARACTERISTICS;
- }
- }
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- if(errn == 0) {
- /* valid EE for simple element START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorOrder) ? */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(eventCode == 0) {
- grammarID = 1783;
- } else {
- errn = EXI_DEVIANT_SUPPORT_NOT_DEPLOYED; /* or also typecast and nillable */
- }
- }
- break;
- case 1:
- /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(errn == 0) {
- if(eventCode == 0) {
- errn = decodeNBitUnsignedInteger(stream, 8, &(uint32));
- v2gLFA_EVSEFinePositioningSetupParametersType->SignalPulseDuration = (uint8_t)(uint32 + 0);
- } 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({urn:iso:15118:2:2016:MsgDataTypes}SignalPulseDuration) ? */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(eventCode == 0) {
- grammarID = 1587;
- } else {
- errn = EXI_DEVIANT_SUPPORT_NOT_DEPLOYED; /* or also typecast and nillable */
- }
- }
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 1783:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorOrder), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SignalPulseDuration)] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gLFA_EVSEFinePositioningSetupParametersType->SensorOrder.arrayLen < v2gLFA_EVSEFinePositioningSetupParametersType_SensorOrder_ARRAY_SIZE) {
- /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(errn == 0) {
- if(eventCode == 0) {
- errn = decodeNBitUnsignedInteger(stream, 8, &(uint32));
- v2gLFA_EVSEFinePositioningSetupParametersType->SensorOrder.array[v2gLFA_EVSEFinePositioningSetupParametersType->SensorOrder.arrayLen] = (uint8_t)(uint32 + 0);
- v2gLFA_EVSEFinePositioningSetupParametersType->SensorOrder.arrayLen++;
- } else {
- /* Second level event (e.g., xsi:type, xsi:nil, ...) */
- errn = EXI_UNSUPPORTED_EVENT_CODE_CHARACTERISTICS;
- }
- }
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- if(errn == 0) {
- /* valid EE for simple element START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorOrder) ? */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(eventCode == 0) {
- grammarID = 1784;
- } else {
- errn = EXI_DEVIANT_SUPPORT_NOT_DEPLOYED; /* or also typecast and nillable */
- }
- }
- break;
- case 1:
- /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(errn == 0) {
- if(eventCode == 0) {
- errn = decodeNBitUnsignedInteger(stream, 8, &(uint32));
- v2gLFA_EVSEFinePositioningSetupParametersType->SignalPulseDuration = (uint8_t)(uint32 + 0);
- } 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({urn:iso:15118:2:2016:MsgDataTypes}SignalPulseDuration) ? */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(eventCode == 0) {
- grammarID = 1587;
- } else {
- errn = EXI_DEVIANT_SUPPORT_NOT_DEPLOYED; /* or also typecast and nillable */
- }
- }
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 1784:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorOrder), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SignalPulseDuration)] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gLFA_EVSEFinePositioningSetupParametersType->SensorOrder.arrayLen < v2gLFA_EVSEFinePositioningSetupParametersType_SensorOrder_ARRAY_SIZE) {
- /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(errn == 0) {
- if(eventCode == 0) {
- errn = decodeNBitUnsignedInteger(stream, 8, &(uint32));
- v2gLFA_EVSEFinePositioningSetupParametersType->SensorOrder.array[v2gLFA_EVSEFinePositioningSetupParametersType->SensorOrder.arrayLen] = (uint8_t)(uint32 + 0);
- v2gLFA_EVSEFinePositioningSetupParametersType->SensorOrder.arrayLen++;
- } else {
- /* Second level event (e.g., xsi:type, xsi:nil, ...) */
- errn = EXI_UNSUPPORTED_EVENT_CODE_CHARACTERISTICS;
- }
- }
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- if(errn == 0) {
- /* valid EE for simple element START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorOrder) ? */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(eventCode == 0) {
- grammarID = 1785;
- } else {
- errn = EXI_DEVIANT_SUPPORT_NOT_DEPLOYED; /* or also typecast and nillable */
- }
- }
- break;
- case 1:
- /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(errn == 0) {
- if(eventCode == 0) {
- errn = decodeNBitUnsignedInteger(stream, 8, &(uint32));
- v2gLFA_EVSEFinePositioningSetupParametersType->SignalPulseDuration = (uint8_t)(uint32 + 0);
- } 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({urn:iso:15118:2:2016:MsgDataTypes}SignalPulseDuration) ? */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(eventCode == 0) {
- grammarID = 1587;
- } else {
- errn = EXI_DEVIANT_SUPPORT_NOT_DEPLOYED; /* or also typecast and nillable */
- }
- }
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 1785:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorOrder), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SignalPulseDuration)] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gLFA_EVSEFinePositioningSetupParametersType->SensorOrder.arrayLen < v2gLFA_EVSEFinePositioningSetupParametersType_SensorOrder_ARRAY_SIZE) {
- /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(errn == 0) {
- if(eventCode == 0) {
- errn = decodeNBitUnsignedInteger(stream, 8, &(uint32));
- v2gLFA_EVSEFinePositioningSetupParametersType->SensorOrder.array[v2gLFA_EVSEFinePositioningSetupParametersType->SensorOrder.arrayLen] = (uint8_t)(uint32 + 0);
- v2gLFA_EVSEFinePositioningSetupParametersType->SensorOrder.arrayLen++;
- } else {
- /* Second level event (e.g., xsi:type, xsi:nil, ...) */
- errn = EXI_UNSUPPORTED_EVENT_CODE_CHARACTERISTICS;
- }
- }
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- if(errn == 0) {
- /* valid EE for simple element START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorOrder) ? */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(eventCode == 0) {
- grammarID = 1786;
- } else {
- errn = EXI_DEVIANT_SUPPORT_NOT_DEPLOYED; /* or also typecast and nillable */
- }
- }
- break;
- case 1:
- /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(errn == 0) {
- if(eventCode == 0) {
- errn = decodeNBitUnsignedInteger(stream, 8, &(uint32));
- v2gLFA_EVSEFinePositioningSetupParametersType->SignalPulseDuration = (uint8_t)(uint32 + 0);
- } 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({urn:iso:15118:2:2016:MsgDataTypes}SignalPulseDuration) ? */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(eventCode == 0) {
- grammarID = 1587;
- } else {
- errn = EXI_DEVIANT_SUPPORT_NOT_DEPLOYED; /* or also typecast and nillable */
- }
- }
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 1786:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorOrder), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SignalPulseDuration)] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gLFA_EVSEFinePositioningSetupParametersType->SensorOrder.arrayLen < v2gLFA_EVSEFinePositioningSetupParametersType_SensorOrder_ARRAY_SIZE) {
- /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(errn == 0) {
- if(eventCode == 0) {
- errn = decodeNBitUnsignedInteger(stream, 8, &(uint32));
- v2gLFA_EVSEFinePositioningSetupParametersType->SensorOrder.array[v2gLFA_EVSEFinePositioningSetupParametersType->SensorOrder.arrayLen] = (uint8_t)(uint32 + 0);
- v2gLFA_EVSEFinePositioningSetupParametersType->SensorOrder.arrayLen++;
- } else {
- /* Second level event (e.g., xsi:type, xsi:nil, ...) */
- errn = EXI_UNSUPPORTED_EVENT_CODE_CHARACTERISTICS;
- }
- }
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- if(errn == 0) {
- /* valid EE for simple element START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorOrder) ? */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(eventCode == 0) {
- grammarID = 1787;
- } else {
- errn = EXI_DEVIANT_SUPPORT_NOT_DEPLOYED; /* or also typecast and nillable */
- }
- }
- break;
- case 1:
- /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(errn == 0) {
- if(eventCode == 0) {
- errn = decodeNBitUnsignedInteger(stream, 8, &(uint32));
- v2gLFA_EVSEFinePositioningSetupParametersType->SignalPulseDuration = (uint8_t)(uint32 + 0);
- } 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({urn:iso:15118:2:2016:MsgDataTypes}SignalPulseDuration) ? */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(eventCode == 0) {
- grammarID = 1587;
- } else {
- errn = EXI_DEVIANT_SUPPORT_NOT_DEPLOYED; /* or also typecast and nillable */
- }
- }
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 1787:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorOrder), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SignalPulseDuration)] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gLFA_EVSEFinePositioningSetupParametersType->SensorOrder.arrayLen < v2gLFA_EVSEFinePositioningSetupParametersType_SensorOrder_ARRAY_SIZE) {
- /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(errn == 0) {
- if(eventCode == 0) {
- errn = decodeNBitUnsignedInteger(stream, 8, &(uint32));
- v2gLFA_EVSEFinePositioningSetupParametersType->SensorOrder.array[v2gLFA_EVSEFinePositioningSetupParametersType->SensorOrder.arrayLen] = (uint8_t)(uint32 + 0);
- v2gLFA_EVSEFinePositioningSetupParametersType->SensorOrder.arrayLen++;
- } else {
- /* Second level event (e.g., xsi:type, xsi:nil, ...) */
- errn = EXI_UNSUPPORTED_EVENT_CODE_CHARACTERISTICS;
- }
- }
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- if(errn == 0) {
- /* valid EE for simple element START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorOrder) ? */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(eventCode == 0) {
- grammarID = 1788;
- } else {
- errn = EXI_DEVIANT_SUPPORT_NOT_DEPLOYED; /* or also typecast and nillable */
- }
- }
- break;
- case 1:
- /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(errn == 0) {
- if(eventCode == 0) {
- errn = decodeNBitUnsignedInteger(stream, 8, &(uint32));
- v2gLFA_EVSEFinePositioningSetupParametersType->SignalPulseDuration = (uint8_t)(uint32 + 0);
- } 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({urn:iso:15118:2:2016:MsgDataTypes}SignalPulseDuration) ? */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(eventCode == 0) {
- grammarID = 1587;
- } else {
- errn = EXI_DEVIANT_SUPPORT_NOT_DEPLOYED; /* or also typecast and nillable */
- }
- }
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 1788:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorOrder), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SignalPulseDuration)] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gLFA_EVSEFinePositioningSetupParametersType->SensorOrder.arrayLen < v2gLFA_EVSEFinePositioningSetupParametersType_SensorOrder_ARRAY_SIZE) {
- /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(errn == 0) {
- if(eventCode == 0) {
- errn = decodeNBitUnsignedInteger(stream, 8, &(uint32));
- v2gLFA_EVSEFinePositioningSetupParametersType->SensorOrder.array[v2gLFA_EVSEFinePositioningSetupParametersType->SensorOrder.arrayLen] = (uint8_t)(uint32 + 0);
- v2gLFA_EVSEFinePositioningSetupParametersType->SensorOrder.arrayLen++;
- } else {
- /* Second level event (e.g., xsi:type, xsi:nil, ...) */
- errn = EXI_UNSUPPORTED_EVENT_CODE_CHARACTERISTICS;
- }
- }
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- if(errn == 0) {
- /* valid EE for simple element START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorOrder) ? */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(eventCode == 0) {
- grammarID = 1789;
- } else {
- errn = EXI_DEVIANT_SUPPORT_NOT_DEPLOYED; /* or also typecast and nillable */
- }
- }
- break;
- case 1:
- /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(errn == 0) {
- if(eventCode == 0) {
- errn = decodeNBitUnsignedInteger(stream, 8, &(uint32));
- v2gLFA_EVSEFinePositioningSetupParametersType->SignalPulseDuration = (uint8_t)(uint32 + 0);
- } 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({urn:iso:15118:2:2016:MsgDataTypes}SignalPulseDuration) ? */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(eventCode == 0) {
- grammarID = 1587;
- } else {
- errn = EXI_DEVIANT_SUPPORT_NOT_DEPLOYED; /* or also typecast and nillable */
- }
- }
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 1789:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorOrder), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SignalPulseDuration)] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gLFA_EVSEFinePositioningSetupParametersType->SensorOrder.arrayLen < v2gLFA_EVSEFinePositioningSetupParametersType_SensorOrder_ARRAY_SIZE) {
- /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(errn == 0) {
- if(eventCode == 0) {
- errn = decodeNBitUnsignedInteger(stream, 8, &(uint32));
- v2gLFA_EVSEFinePositioningSetupParametersType->SensorOrder.array[v2gLFA_EVSEFinePositioningSetupParametersType->SensorOrder.arrayLen] = (uint8_t)(uint32 + 0);
- v2gLFA_EVSEFinePositioningSetupParametersType->SensorOrder.arrayLen++;
- } else {
- /* Second level event (e.g., xsi:type, xsi:nil, ...) */
- errn = EXI_UNSUPPORTED_EVENT_CODE_CHARACTERISTICS;
- }
- }
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- if(errn == 0) {
- /* valid EE for simple element START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorOrder) ? */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(eventCode == 0) {
- grammarID = 1790;
- } else {
- errn = EXI_DEVIANT_SUPPORT_NOT_DEPLOYED; /* or also typecast and nillable */
- }
- }
- break;
- case 1:
- /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(errn == 0) {
- if(eventCode == 0) {
- errn = decodeNBitUnsignedInteger(stream, 8, &(uint32));
- v2gLFA_EVSEFinePositioningSetupParametersType->SignalPulseDuration = (uint8_t)(uint32 + 0);
- } 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({urn:iso:15118:2:2016:MsgDataTypes}SignalPulseDuration) ? */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(eventCode == 0) {
- grammarID = 1587;
- } else {
- errn = EXI_DEVIANT_SUPPORT_NOT_DEPLOYED; /* or also typecast and nillable */
- }
- }
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 1790:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorOrder), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SignalPulseDuration)] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gLFA_EVSEFinePositioningSetupParametersType->SensorOrder.arrayLen < v2gLFA_EVSEFinePositioningSetupParametersType_SensorOrder_ARRAY_SIZE) {
- /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(errn == 0) {
- if(eventCode == 0) {
- errn = decodeNBitUnsignedInteger(stream, 8, &(uint32));
- v2gLFA_EVSEFinePositioningSetupParametersType->SensorOrder.array[v2gLFA_EVSEFinePositioningSetupParametersType->SensorOrder.arrayLen] = (uint8_t)(uint32 + 0);
- v2gLFA_EVSEFinePositioningSetupParametersType->SensorOrder.arrayLen++;
- } else {
- /* Second level event (e.g., xsi:type, xsi:nil, ...) */
- errn = EXI_UNSUPPORTED_EVENT_CODE_CHARACTERISTICS;
- }
- }
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- if(errn == 0) {
- /* valid EE for simple element START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorOrder) ? */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(eventCode == 0) {
- grammarID = 1791;
- } else {
- errn = EXI_DEVIANT_SUPPORT_NOT_DEPLOYED; /* or also typecast and nillable */
- }
- }
- break;
- case 1:
- /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(errn == 0) {
- if(eventCode == 0) {
- errn = decodeNBitUnsignedInteger(stream, 8, &(uint32));
- v2gLFA_EVSEFinePositioningSetupParametersType->SignalPulseDuration = (uint8_t)(uint32 + 0);
- } 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({urn:iso:15118:2:2016:MsgDataTypes}SignalPulseDuration) ? */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(eventCode == 0) {
- grammarID = 1587;
- } else {
- errn = EXI_DEVIANT_SUPPORT_NOT_DEPLOYED; /* or also typecast and nillable */
- }
- }
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 1791:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorOrder), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SignalPulseDuration)] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gLFA_EVSEFinePositioningSetupParametersType->SensorOrder.arrayLen < v2gLFA_EVSEFinePositioningSetupParametersType_SensorOrder_ARRAY_SIZE) {
- /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(errn == 0) {
- if(eventCode == 0) {
- errn = decodeNBitUnsignedInteger(stream, 8, &(uint32));
- v2gLFA_EVSEFinePositioningSetupParametersType->SensorOrder.array[v2gLFA_EVSEFinePositioningSetupParametersType->SensorOrder.arrayLen] = (uint8_t)(uint32 + 0);
- v2gLFA_EVSEFinePositioningSetupParametersType->SensorOrder.arrayLen++;
- } else {
- /* Second level event (e.g., xsi:type, xsi:nil, ...) */
- errn = EXI_UNSUPPORTED_EVENT_CODE_CHARACTERISTICS;
- }
- }
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- if(errn == 0) {
- /* valid EE for simple element START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorOrder) ? */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(eventCode == 0) {
- grammarID = 1792;
- } else {
- errn = EXI_DEVIANT_SUPPORT_NOT_DEPLOYED; /* or also typecast and nillable */
- }
- }
- break;
- case 1:
- /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(errn == 0) {
- if(eventCode == 0) {
- errn = decodeNBitUnsignedInteger(stream, 8, &(uint32));
- v2gLFA_EVSEFinePositioningSetupParametersType->SignalPulseDuration = (uint8_t)(uint32 + 0);
- } 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({urn:iso:15118:2:2016:MsgDataTypes}SignalPulseDuration) ? */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(eventCode == 0) {
- grammarID = 1587;
- } else {
- errn = EXI_DEVIANT_SUPPORT_NOT_DEPLOYED; /* or also typecast and nillable */
- }
- }
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 1792:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorOrder), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SignalPulseDuration)] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gLFA_EVSEFinePositioningSetupParametersType->SensorOrder.arrayLen < v2gLFA_EVSEFinePositioningSetupParametersType_SensorOrder_ARRAY_SIZE) {
- /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(errn == 0) {
- if(eventCode == 0) {
- errn = decodeNBitUnsignedInteger(stream, 8, &(uint32));
- v2gLFA_EVSEFinePositioningSetupParametersType->SensorOrder.array[v2gLFA_EVSEFinePositioningSetupParametersType->SensorOrder.arrayLen] = (uint8_t)(uint32 + 0);
- v2gLFA_EVSEFinePositioningSetupParametersType->SensorOrder.arrayLen++;
- } else {
- /* Second level event (e.g., xsi:type, xsi:nil, ...) */
- errn = EXI_UNSUPPORTED_EVENT_CODE_CHARACTERISTICS;
- }
- }
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- if(errn == 0) {
- /* valid EE for simple element START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorOrder) ? */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(eventCode == 0) {
- grammarID = 1793;
- } else {
- errn = EXI_DEVIANT_SUPPORT_NOT_DEPLOYED; /* or also typecast and nillable */
- }
- }
- break;
- case 1:
- /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(errn == 0) {
- if(eventCode == 0) {
- errn = decodeNBitUnsignedInteger(stream, 8, &(uint32));
- v2gLFA_EVSEFinePositioningSetupParametersType->SignalPulseDuration = (uint8_t)(uint32 + 0);
- } 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({urn:iso:15118:2:2016:MsgDataTypes}SignalPulseDuration) ? */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(eventCode == 0) {
- grammarID = 1587;
- } else {
- errn = EXI_DEVIANT_SUPPORT_NOT_DEPLOYED; /* or also typecast and nillable */
- }
- }
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 1793:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorOrder), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SignalPulseDuration)] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gLFA_EVSEFinePositioningSetupParametersType->SensorOrder.arrayLen < v2gLFA_EVSEFinePositioningSetupParametersType_SensorOrder_ARRAY_SIZE) {
- /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(errn == 0) {
- if(eventCode == 0) {
- errn = decodeNBitUnsignedInteger(stream, 8, &(uint32));
- v2gLFA_EVSEFinePositioningSetupParametersType->SensorOrder.array[v2gLFA_EVSEFinePositioningSetupParametersType->SensorOrder.arrayLen] = (uint8_t)(uint32 + 0);
- v2gLFA_EVSEFinePositioningSetupParametersType->SensorOrder.arrayLen++;
- } else {
- /* Second level event (e.g., xsi:type, xsi:nil, ...) */
- errn = EXI_UNSUPPORTED_EVENT_CODE_CHARACTERISTICS;
- }
- }
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- if(errn == 0) {
- /* valid EE for simple element START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorOrder) ? */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(eventCode == 0) {
- grammarID = 1794;
- } else {
- errn = EXI_DEVIANT_SUPPORT_NOT_DEPLOYED; /* or also typecast and nillable */
- }
- }
- break;
- case 1:
- /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(errn == 0) {
- if(eventCode == 0) {
- errn = decodeNBitUnsignedInteger(stream, 8, &(uint32));
- v2gLFA_EVSEFinePositioningSetupParametersType->SignalPulseDuration = (uint8_t)(uint32 + 0);
- } 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({urn:iso:15118:2:2016:MsgDataTypes}SignalPulseDuration) ? */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(eventCode == 0) {
- grammarID = 1587;
- } else {
- errn = EXI_DEVIANT_SUPPORT_NOT_DEPLOYED; /* or also typecast and nillable */
- }
- }
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 1794:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorOrder), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SignalPulseDuration)] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gLFA_EVSEFinePositioningSetupParametersType->SensorOrder.arrayLen < v2gLFA_EVSEFinePositioningSetupParametersType_SensorOrder_ARRAY_SIZE) {
- /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(errn == 0) {
- if(eventCode == 0) {
- errn = decodeNBitUnsignedInteger(stream, 8, &(uint32));
- v2gLFA_EVSEFinePositioningSetupParametersType->SensorOrder.array[v2gLFA_EVSEFinePositioningSetupParametersType->SensorOrder.arrayLen] = (uint8_t)(uint32 + 0);
- v2gLFA_EVSEFinePositioningSetupParametersType->SensorOrder.arrayLen++;
- } else {
- /* Second level event (e.g., xsi:type, xsi:nil, ...) */
- errn = EXI_UNSUPPORTED_EVENT_CODE_CHARACTERISTICS;
- }
- }
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- if(errn == 0) {
- /* valid EE for simple element START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorOrder) ? */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(eventCode == 0) {
- grammarID = 1795;
- } else {
- errn = EXI_DEVIANT_SUPPORT_NOT_DEPLOYED; /* or also typecast and nillable */
- }
- }
- break;
- case 1:
- /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(errn == 0) {
- if(eventCode == 0) {
- errn = decodeNBitUnsignedInteger(stream, 8, &(uint32));
- v2gLFA_EVSEFinePositioningSetupParametersType->SignalPulseDuration = (uint8_t)(uint32 + 0);
- } 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({urn:iso:15118:2:2016:MsgDataTypes}SignalPulseDuration) ? */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(eventCode == 0) {
- grammarID = 1587;
- } else {
- errn = EXI_DEVIANT_SUPPORT_NOT_DEPLOYED; /* or also typecast and nillable */
- }
- }
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 1795:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorOrder), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SignalPulseDuration)] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gLFA_EVSEFinePositioningSetupParametersType->SensorOrder.arrayLen < v2gLFA_EVSEFinePositioningSetupParametersType_SensorOrder_ARRAY_SIZE) {
- /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(errn == 0) {
- if(eventCode == 0) {
- errn = decodeNBitUnsignedInteger(stream, 8, &(uint32));
- v2gLFA_EVSEFinePositioningSetupParametersType->SensorOrder.array[v2gLFA_EVSEFinePositioningSetupParametersType->SensorOrder.arrayLen] = (uint8_t)(uint32 + 0);
- v2gLFA_EVSEFinePositioningSetupParametersType->SensorOrder.arrayLen++;
- } else {
- /* Second level event (e.g., xsi:type, xsi:nil, ...) */
- errn = EXI_UNSUPPORTED_EVENT_CODE_CHARACTERISTICS;
- }
- }
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- if(errn == 0) {
- /* valid EE for simple element START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorOrder) ? */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(eventCode == 0) {
- grammarID = 1796;
- } else {
- errn = EXI_DEVIANT_SUPPORT_NOT_DEPLOYED; /* or also typecast and nillable */
- }
- }
- break;
- case 1:
- /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(errn == 0) {
- if(eventCode == 0) {
- errn = decodeNBitUnsignedInteger(stream, 8, &(uint32));
- v2gLFA_EVSEFinePositioningSetupParametersType->SignalPulseDuration = (uint8_t)(uint32 + 0);
- } 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({urn:iso:15118:2:2016:MsgDataTypes}SignalPulseDuration) ? */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(eventCode == 0) {
- grammarID = 1587;
- } else {
- errn = EXI_DEVIANT_SUPPORT_NOT_DEPLOYED; /* or also typecast and nillable */
- }
- }
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 1796:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorOrder), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SignalPulseDuration)] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gLFA_EVSEFinePositioningSetupParametersType->SensorOrder.arrayLen < v2gLFA_EVSEFinePositioningSetupParametersType_SensorOrder_ARRAY_SIZE) {
- /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(errn == 0) {
- if(eventCode == 0) {
- errn = decodeNBitUnsignedInteger(stream, 8, &(uint32));
- v2gLFA_EVSEFinePositioningSetupParametersType->SensorOrder.array[v2gLFA_EVSEFinePositioningSetupParametersType->SensorOrder.arrayLen] = (uint8_t)(uint32 + 0);
- v2gLFA_EVSEFinePositioningSetupParametersType->SensorOrder.arrayLen++;
- } else {
- /* Second level event (e.g., xsi:type, xsi:nil, ...) */
- errn = EXI_UNSUPPORTED_EVENT_CODE_CHARACTERISTICS;
- }
- }
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- if(errn == 0) {
- /* valid EE for simple element START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorOrder) ? */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(eventCode == 0) {
- grammarID = 1797;
- } else {
- errn = EXI_DEVIANT_SUPPORT_NOT_DEPLOYED; /* or also typecast and nillable */
- }
- }
- break;
- case 1:
- /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(errn == 0) {
- if(eventCode == 0) {
- errn = decodeNBitUnsignedInteger(stream, 8, &(uint32));
- v2gLFA_EVSEFinePositioningSetupParametersType->SignalPulseDuration = (uint8_t)(uint32 + 0);
- } 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({urn:iso:15118:2:2016:MsgDataTypes}SignalPulseDuration) ? */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(eventCode == 0) {
- grammarID = 1587;
- } else {
- errn = EXI_DEVIANT_SUPPORT_NOT_DEPLOYED; /* or also typecast and nillable */
- }
- }
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 1797:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorOrder), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SignalPulseDuration)] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gLFA_EVSEFinePositioningSetupParametersType->SensorOrder.arrayLen < v2gLFA_EVSEFinePositioningSetupParametersType_SensorOrder_ARRAY_SIZE) {
- /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(errn == 0) {
- if(eventCode == 0) {
- errn = decodeNBitUnsignedInteger(stream, 8, &(uint32));
- v2gLFA_EVSEFinePositioningSetupParametersType->SensorOrder.array[v2gLFA_EVSEFinePositioningSetupParametersType->SensorOrder.arrayLen] = (uint8_t)(uint32 + 0);
- v2gLFA_EVSEFinePositioningSetupParametersType->SensorOrder.arrayLen++;
- } else {
- /* Second level event (e.g., xsi:type, xsi:nil, ...) */
- errn = EXI_UNSUPPORTED_EVENT_CODE_CHARACTERISTICS;
- }
- }
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- if(errn == 0) {
- /* valid EE for simple element START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorOrder) ? */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(eventCode == 0) {
- grammarID = 1798;
- } else {
- errn = EXI_DEVIANT_SUPPORT_NOT_DEPLOYED; /* or also typecast and nillable */
- }
- }
- break;
- case 1:
- /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(errn == 0) {
- if(eventCode == 0) {
- errn = decodeNBitUnsignedInteger(stream, 8, &(uint32));
- v2gLFA_EVSEFinePositioningSetupParametersType->SignalPulseDuration = (uint8_t)(uint32 + 0);
- } 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({urn:iso:15118:2:2016:MsgDataTypes}SignalPulseDuration) ? */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(eventCode == 0) {
- grammarID = 1587;
- } else {
- errn = EXI_DEVIANT_SUPPORT_NOT_DEPLOYED; /* or also typecast and nillable */
- }
- }
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 1798:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorOrder), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SignalPulseDuration)] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gLFA_EVSEFinePositioningSetupParametersType->SensorOrder.arrayLen < v2gLFA_EVSEFinePositioningSetupParametersType_SensorOrder_ARRAY_SIZE) {
- /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(errn == 0) {
- if(eventCode == 0) {
- errn = decodeNBitUnsignedInteger(stream, 8, &(uint32));
- v2gLFA_EVSEFinePositioningSetupParametersType->SensorOrder.array[v2gLFA_EVSEFinePositioningSetupParametersType->SensorOrder.arrayLen] = (uint8_t)(uint32 + 0);
- v2gLFA_EVSEFinePositioningSetupParametersType->SensorOrder.arrayLen++;
- } else {
- /* Second level event (e.g., xsi:type, xsi:nil, ...) */
- errn = EXI_UNSUPPORTED_EVENT_CODE_CHARACTERISTICS;
- }
- }
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- if(errn == 0) {
- /* valid EE for simple element START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorOrder) ? */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(eventCode == 0) {
- grammarID = 1799;
- } else {
- errn = EXI_DEVIANT_SUPPORT_NOT_DEPLOYED; /* or also typecast and nillable */
- }
- }
- break;
- case 1:
- /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(errn == 0) {
- if(eventCode == 0) {
- errn = decodeNBitUnsignedInteger(stream, 8, &(uint32));
- v2gLFA_EVSEFinePositioningSetupParametersType->SignalPulseDuration = (uint8_t)(uint32 + 0);
- } 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({urn:iso:15118:2:2016:MsgDataTypes}SignalPulseDuration) ? */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(eventCode == 0) {
- grammarID = 1587;
- } else {
- errn = EXI_DEVIANT_SUPPORT_NOT_DEPLOYED; /* or also typecast and nillable */
- }
- }
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 1799:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorOrder), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SignalPulseDuration)] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gLFA_EVSEFinePositioningSetupParametersType->SensorOrder.arrayLen < v2gLFA_EVSEFinePositioningSetupParametersType_SensorOrder_ARRAY_SIZE) {
- /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(errn == 0) {
- if(eventCode == 0) {
- errn = decodeNBitUnsignedInteger(stream, 8, &(uint32));
- v2gLFA_EVSEFinePositioningSetupParametersType->SensorOrder.array[v2gLFA_EVSEFinePositioningSetupParametersType->SensorOrder.arrayLen] = (uint8_t)(uint32 + 0);
- v2gLFA_EVSEFinePositioningSetupParametersType->SensorOrder.arrayLen++;
- } else {
- /* Second level event (e.g., xsi:type, xsi:nil, ...) */
- errn = EXI_UNSUPPORTED_EVENT_CODE_CHARACTERISTICS;
- }
- }
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- if(errn == 0) {
- /* valid EE for simple element START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorOrder) ? */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(eventCode == 0) {
- grammarID = 1800;
- } else {
- errn = EXI_DEVIANT_SUPPORT_NOT_DEPLOYED; /* or also typecast and nillable */
- }
- }
- break;
- case 1:
- /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(errn == 0) {
- if(eventCode == 0) {
- errn = decodeNBitUnsignedInteger(stream, 8, &(uint32));
- v2gLFA_EVSEFinePositioningSetupParametersType->SignalPulseDuration = (uint8_t)(uint32 + 0);
- } 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({urn:iso:15118:2:2016:MsgDataTypes}SignalPulseDuration) ? */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(eventCode == 0) {
- grammarID = 1587;
- } else {
- errn = EXI_DEVIANT_SUPPORT_NOT_DEPLOYED; /* or also typecast and nillable */
- }
- }
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 1800:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorOrder), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SignalPulseDuration)] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gLFA_EVSEFinePositioningSetupParametersType->SensorOrder.arrayLen < v2gLFA_EVSEFinePositioningSetupParametersType_SensorOrder_ARRAY_SIZE) {
- /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(errn == 0) {
- if(eventCode == 0) {
- errn = decodeNBitUnsignedInteger(stream, 8, &(uint32));
- v2gLFA_EVSEFinePositioningSetupParametersType->SensorOrder.array[v2gLFA_EVSEFinePositioningSetupParametersType->SensorOrder.arrayLen] = (uint8_t)(uint32 + 0);
- v2gLFA_EVSEFinePositioningSetupParametersType->SensorOrder.arrayLen++;
- } else {
- /* Second level event (e.g., xsi:type, xsi:nil, ...) */
- errn = EXI_UNSUPPORTED_EVENT_CODE_CHARACTERISTICS;
- }
- }
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- if(errn == 0) {
- /* valid EE for simple element START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorOrder) ? */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(eventCode == 0) {
- grammarID = 1801;
- } else {
- errn = EXI_DEVIANT_SUPPORT_NOT_DEPLOYED; /* or also typecast and nillable */
- }
- }
- break;
- case 1:
- /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(errn == 0) {
- if(eventCode == 0) {
- errn = decodeNBitUnsignedInteger(stream, 8, &(uint32));
- v2gLFA_EVSEFinePositioningSetupParametersType->SignalPulseDuration = (uint8_t)(uint32 + 0);
- } 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({urn:iso:15118:2:2016:MsgDataTypes}SignalPulseDuration) ? */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(eventCode == 0) {
- grammarID = 1587;
- } else {
- errn = EXI_DEVIANT_SUPPORT_NOT_DEPLOYED; /* or also typecast and nillable */
- }
- }
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 1801:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorOrder), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SignalPulseDuration)] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gLFA_EVSEFinePositioningSetupParametersType->SensorOrder.arrayLen < v2gLFA_EVSEFinePositioningSetupParametersType_SensorOrder_ARRAY_SIZE) {
- /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(errn == 0) {
- if(eventCode == 0) {
- errn = decodeNBitUnsignedInteger(stream, 8, &(uint32));
- v2gLFA_EVSEFinePositioningSetupParametersType->SensorOrder.array[v2gLFA_EVSEFinePositioningSetupParametersType->SensorOrder.arrayLen] = (uint8_t)(uint32 + 0);
- v2gLFA_EVSEFinePositioningSetupParametersType->SensorOrder.arrayLen++;
- } else {
- /* Second level event (e.g., xsi:type, xsi:nil, ...) */
- errn = EXI_UNSUPPORTED_EVENT_CODE_CHARACTERISTICS;
- }
- }
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- if(errn == 0) {
- /* valid EE for simple element START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorOrder) ? */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(eventCode == 0) {
- grammarID = 1802;
- } else {
- errn = EXI_DEVIANT_SUPPORT_NOT_DEPLOYED; /* or also typecast and nillable */
- }
- }
- break;
- case 1:
- /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(errn == 0) {
- if(eventCode == 0) {
- errn = decodeNBitUnsignedInteger(stream, 8, &(uint32));
- v2gLFA_EVSEFinePositioningSetupParametersType->SignalPulseDuration = (uint8_t)(uint32 + 0);
- } 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({urn:iso:15118:2:2016:MsgDataTypes}SignalPulseDuration) ? */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(eventCode == 0) {
- grammarID = 1587;
- } else {
- errn = EXI_DEVIANT_SUPPORT_NOT_DEPLOYED; /* or also typecast and nillable */
- }
- }
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 1802:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorOrder), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SignalPulseDuration)] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gLFA_EVSEFinePositioningSetupParametersType->SensorOrder.arrayLen < v2gLFA_EVSEFinePositioningSetupParametersType_SensorOrder_ARRAY_SIZE) {
- /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(errn == 0) {
- if(eventCode == 0) {
- errn = decodeNBitUnsignedInteger(stream, 8, &(uint32));
- v2gLFA_EVSEFinePositioningSetupParametersType->SensorOrder.array[v2gLFA_EVSEFinePositioningSetupParametersType->SensorOrder.arrayLen] = (uint8_t)(uint32 + 0);
- v2gLFA_EVSEFinePositioningSetupParametersType->SensorOrder.arrayLen++;
- } else {
- /* Second level event (e.g., xsi:type, xsi:nil, ...) */
- errn = EXI_UNSUPPORTED_EVENT_CODE_CHARACTERISTICS;
- }
- }
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- if(errn == 0) {
- /* valid EE for simple element START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorOrder) ? */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(eventCode == 0) {
- grammarID = 1803;
- } else {
- errn = EXI_DEVIANT_SUPPORT_NOT_DEPLOYED; /* or also typecast and nillable */
- }
- }
- break;
- case 1:
- /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(errn == 0) {
- if(eventCode == 0) {
- errn = decodeNBitUnsignedInteger(stream, 8, &(uint32));
- v2gLFA_EVSEFinePositioningSetupParametersType->SignalPulseDuration = (uint8_t)(uint32 + 0);
- } 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({urn:iso:15118:2:2016:MsgDataTypes}SignalPulseDuration) ? */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(eventCode == 0) {
- grammarID = 1587;
- } else {
- errn = EXI_DEVIANT_SUPPORT_NOT_DEPLOYED; /* or also typecast and nillable */
- }
- }
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 1803:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorOrder), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SignalPulseDuration)] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gLFA_EVSEFinePositioningSetupParametersType->SensorOrder.arrayLen < v2gLFA_EVSEFinePositioningSetupParametersType_SensorOrder_ARRAY_SIZE) {
- /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(errn == 0) {
- if(eventCode == 0) {
- errn = decodeNBitUnsignedInteger(stream, 8, &(uint32));
- v2gLFA_EVSEFinePositioningSetupParametersType->SensorOrder.array[v2gLFA_EVSEFinePositioningSetupParametersType->SensorOrder.arrayLen] = (uint8_t)(uint32 + 0);
- v2gLFA_EVSEFinePositioningSetupParametersType->SensorOrder.arrayLen++;
- } else {
- /* Second level event (e.g., xsi:type, xsi:nil, ...) */
- errn = EXI_UNSUPPORTED_EVENT_CODE_CHARACTERISTICS;
- }
- }
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- if(errn == 0) {
- /* valid EE for simple element START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorOrder) ? */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(eventCode == 0) {
- grammarID = 1804;
- } else {
- errn = EXI_DEVIANT_SUPPORT_NOT_DEPLOYED; /* or also typecast and nillable */
- }
- }
- break;
- case 1:
- /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(errn == 0) {
- if(eventCode == 0) {
- errn = decodeNBitUnsignedInteger(stream, 8, &(uint32));
- v2gLFA_EVSEFinePositioningSetupParametersType->SignalPulseDuration = (uint8_t)(uint32 + 0);
- } 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({urn:iso:15118:2:2016:MsgDataTypes}SignalPulseDuration) ? */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(eventCode == 0) {
- grammarID = 1587;
- } else {
- errn = EXI_DEVIANT_SUPPORT_NOT_DEPLOYED; /* or also typecast and nillable */
- }
- }
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 1804:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorOrder), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SignalPulseDuration)] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gLFA_EVSEFinePositioningSetupParametersType->SensorOrder.arrayLen < v2gLFA_EVSEFinePositioningSetupParametersType_SensorOrder_ARRAY_SIZE) {
- /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(errn == 0) {
- if(eventCode == 0) {
- errn = decodeNBitUnsignedInteger(stream, 8, &(uint32));
- v2gLFA_EVSEFinePositioningSetupParametersType->SensorOrder.array[v2gLFA_EVSEFinePositioningSetupParametersType->SensorOrder.arrayLen] = (uint8_t)(uint32 + 0);
- v2gLFA_EVSEFinePositioningSetupParametersType->SensorOrder.arrayLen++;
- } else {
- /* Second level event (e.g., xsi:type, xsi:nil, ...) */
- errn = EXI_UNSUPPORTED_EVENT_CODE_CHARACTERISTICS;
- }
- }
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- if(errn == 0) {
- /* valid EE for simple element START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorOrder) ? */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(eventCode == 0) {
- grammarID = 1805;
- } else {
- errn = EXI_DEVIANT_SUPPORT_NOT_DEPLOYED; /* or also typecast and nillable */
- }
- }
- break;
- case 1:
- /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(errn == 0) {
- if(eventCode == 0) {
- errn = decodeNBitUnsignedInteger(stream, 8, &(uint32));
- v2gLFA_EVSEFinePositioningSetupParametersType->SignalPulseDuration = (uint8_t)(uint32 + 0);
- } 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({urn:iso:15118:2:2016:MsgDataTypes}SignalPulseDuration) ? */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(eventCode == 0) {
- grammarID = 1587;
- } else {
- errn = EXI_DEVIANT_SUPPORT_NOT_DEPLOYED; /* or also typecast and nillable */
- }
- }
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 1805:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorOrder), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SignalPulseDuration)] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gLFA_EVSEFinePositioningSetupParametersType->SensorOrder.arrayLen < v2gLFA_EVSEFinePositioningSetupParametersType_SensorOrder_ARRAY_SIZE) {
- /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(errn == 0) {
- if(eventCode == 0) {
- errn = decodeNBitUnsignedInteger(stream, 8, &(uint32));
- v2gLFA_EVSEFinePositioningSetupParametersType->SensorOrder.array[v2gLFA_EVSEFinePositioningSetupParametersType->SensorOrder.arrayLen] = (uint8_t)(uint32 + 0);
- v2gLFA_EVSEFinePositioningSetupParametersType->SensorOrder.arrayLen++;
- } else {
- /* Second level event (e.g., xsi:type, xsi:nil, ...) */
- errn = EXI_UNSUPPORTED_EVENT_CODE_CHARACTERISTICS;
- }
- }
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- if(errn == 0) {
- /* valid EE for simple element START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorOrder) ? */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(eventCode == 0) {
- grammarID = 1806;
- } else {
- errn = EXI_DEVIANT_SUPPORT_NOT_DEPLOYED; /* or also typecast and nillable */
- }
- }
- break;
- case 1:
- /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(errn == 0) {
- if(eventCode == 0) {
- errn = decodeNBitUnsignedInteger(stream, 8, &(uint32));
- v2gLFA_EVSEFinePositioningSetupParametersType->SignalPulseDuration = (uint8_t)(uint32 + 0);
- } 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({urn:iso:15118:2:2016:MsgDataTypes}SignalPulseDuration) ? */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(eventCode == 0) {
- grammarID = 1587;
- } else {
- errn = EXI_DEVIANT_SUPPORT_NOT_DEPLOYED; /* or also typecast and nillable */
- }
- }
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 1806:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorOrder), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SignalPulseDuration)] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gLFA_EVSEFinePositioningSetupParametersType->SensorOrder.arrayLen < v2gLFA_EVSEFinePositioningSetupParametersType_SensorOrder_ARRAY_SIZE) {
- /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(errn == 0) {
- if(eventCode == 0) {
- errn = decodeNBitUnsignedInteger(stream, 8, &(uint32));
- v2gLFA_EVSEFinePositioningSetupParametersType->SensorOrder.array[v2gLFA_EVSEFinePositioningSetupParametersType->SensorOrder.arrayLen] = (uint8_t)(uint32 + 0);
- v2gLFA_EVSEFinePositioningSetupParametersType->SensorOrder.arrayLen++;
- } else {
- /* Second level event (e.g., xsi:type, xsi:nil, ...) */
- errn = EXI_UNSUPPORTED_EVENT_CODE_CHARACTERISTICS;
- }
- }
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- if(errn == 0) {
- /* valid EE for simple element START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorOrder) ? */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(eventCode == 0) {
- grammarID = 1807;
- } else {
- errn = EXI_DEVIANT_SUPPORT_NOT_DEPLOYED; /* or also typecast and nillable */
- }
- }
- break;
- case 1:
- /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(errn == 0) {
- if(eventCode == 0) {
- errn = decodeNBitUnsignedInteger(stream, 8, &(uint32));
- v2gLFA_EVSEFinePositioningSetupParametersType->SignalPulseDuration = (uint8_t)(uint32 + 0);
- } 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({urn:iso:15118:2:2016:MsgDataTypes}SignalPulseDuration) ? */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(eventCode == 0) {
- grammarID = 1587;
- } else {
- errn = EXI_DEVIANT_SUPPORT_NOT_DEPLOYED; /* or also typecast and nillable */
- }
- }
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 1807:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorOrder), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SignalPulseDuration)] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gLFA_EVSEFinePositioningSetupParametersType->SensorOrder.arrayLen < v2gLFA_EVSEFinePositioningSetupParametersType_SensorOrder_ARRAY_SIZE) {
- /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(errn == 0) {
- if(eventCode == 0) {
- errn = decodeNBitUnsignedInteger(stream, 8, &(uint32));
- v2gLFA_EVSEFinePositioningSetupParametersType->SensorOrder.array[v2gLFA_EVSEFinePositioningSetupParametersType->SensorOrder.arrayLen] = (uint8_t)(uint32 + 0);
- v2gLFA_EVSEFinePositioningSetupParametersType->SensorOrder.arrayLen++;
- } else {
- /* Second level event (e.g., xsi:type, xsi:nil, ...) */
- errn = EXI_UNSUPPORTED_EVENT_CODE_CHARACTERISTICS;
- }
- }
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- if(errn == 0) {
- /* valid EE for simple element START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorOrder) ? */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(eventCode == 0) {
- grammarID = 1808;
- } else {
- errn = EXI_DEVIANT_SUPPORT_NOT_DEPLOYED; /* or also typecast and nillable */
- }
- }
- break;
- case 1:
- /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(errn == 0) {
- if(eventCode == 0) {
- errn = decodeNBitUnsignedInteger(stream, 8, &(uint32));
- v2gLFA_EVSEFinePositioningSetupParametersType->SignalPulseDuration = (uint8_t)(uint32 + 0);
- } 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({urn:iso:15118:2:2016:MsgDataTypes}SignalPulseDuration) ? */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(eventCode == 0) {
- grammarID = 1587;
- } else {
- errn = EXI_DEVIANT_SUPPORT_NOT_DEPLOYED; /* or also typecast and nillable */
- }
- }
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 1808:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorOrder), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SignalPulseDuration)] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gLFA_EVSEFinePositioningSetupParametersType->SensorOrder.arrayLen < v2gLFA_EVSEFinePositioningSetupParametersType_SensorOrder_ARRAY_SIZE) {
- /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(errn == 0) {
- if(eventCode == 0) {
- errn = decodeNBitUnsignedInteger(stream, 8, &(uint32));
- v2gLFA_EVSEFinePositioningSetupParametersType->SensorOrder.array[v2gLFA_EVSEFinePositioningSetupParametersType->SensorOrder.arrayLen] = (uint8_t)(uint32 + 0);
- v2gLFA_EVSEFinePositioningSetupParametersType->SensorOrder.arrayLen++;
- } else {
- /* Second level event (e.g., xsi:type, xsi:nil, ...) */
- errn = EXI_UNSUPPORTED_EVENT_CODE_CHARACTERISTICS;
- }
- }
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- if(errn == 0) {
- /* valid EE for simple element START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorOrder) ? */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(eventCode == 0) {
- grammarID = 1809;
- } else {
- errn = EXI_DEVIANT_SUPPORT_NOT_DEPLOYED; /* or also typecast and nillable */
- }
- }
- break;
- case 1:
- /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(errn == 0) {
- if(eventCode == 0) {
- errn = decodeNBitUnsignedInteger(stream, 8, &(uint32));
- v2gLFA_EVSEFinePositioningSetupParametersType->SignalPulseDuration = (uint8_t)(uint32 + 0);
- } 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({urn:iso:15118:2:2016:MsgDataTypes}SignalPulseDuration) ? */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(eventCode == 0) {
- grammarID = 1587;
- } else {
- errn = EXI_DEVIANT_SUPPORT_NOT_DEPLOYED; /* or also typecast and nillable */
- }
- }
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 1809:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorOrder), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SignalPulseDuration)] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gLFA_EVSEFinePositioningSetupParametersType->SensorOrder.arrayLen < v2gLFA_EVSEFinePositioningSetupParametersType_SensorOrder_ARRAY_SIZE) {
- /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(errn == 0) {
- if(eventCode == 0) {
- errn = decodeNBitUnsignedInteger(stream, 8, &(uint32));
- v2gLFA_EVSEFinePositioningSetupParametersType->SensorOrder.array[v2gLFA_EVSEFinePositioningSetupParametersType->SensorOrder.arrayLen] = (uint8_t)(uint32 + 0);
- v2gLFA_EVSEFinePositioningSetupParametersType->SensorOrder.arrayLen++;
- } else {
- /* Second level event (e.g., xsi:type, xsi:nil, ...) */
- errn = EXI_UNSUPPORTED_EVENT_CODE_CHARACTERISTICS;
- }
- }
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- if(errn == 0) {
- /* valid EE for simple element START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorOrder) ? */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(eventCode == 0) {
- grammarID = 1810;
- } else {
- errn = EXI_DEVIANT_SUPPORT_NOT_DEPLOYED; /* or also typecast and nillable */
- }
- }
- break;
- case 1:
- /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(errn == 0) {
- if(eventCode == 0) {
- errn = decodeNBitUnsignedInteger(stream, 8, &(uint32));
- v2gLFA_EVSEFinePositioningSetupParametersType->SignalPulseDuration = (uint8_t)(uint32 + 0);
- } 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({urn:iso:15118:2:2016:MsgDataTypes}SignalPulseDuration) ? */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(eventCode == 0) {
- grammarID = 1587;
- } else {
- errn = EXI_DEVIANT_SUPPORT_NOT_DEPLOYED; /* or also typecast and nillable */
- }
- }
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 1810:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorOrder), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SignalPulseDuration)] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gLFA_EVSEFinePositioningSetupParametersType->SensorOrder.arrayLen < v2gLFA_EVSEFinePositioningSetupParametersType_SensorOrder_ARRAY_SIZE) {
- /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(errn == 0) {
- if(eventCode == 0) {
- errn = decodeNBitUnsignedInteger(stream, 8, &(uint32));
- v2gLFA_EVSEFinePositioningSetupParametersType->SensorOrder.array[v2gLFA_EVSEFinePositioningSetupParametersType->SensorOrder.arrayLen] = (uint8_t)(uint32 + 0);
- v2gLFA_EVSEFinePositioningSetupParametersType->SensorOrder.arrayLen++;
- } else {
- /* Second level event (e.g., xsi:type, xsi:nil, ...) */
- errn = EXI_UNSUPPORTED_EVENT_CODE_CHARACTERISTICS;
- }
- }
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- if(errn == 0) {
- /* valid EE for simple element START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorOrder) ? */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(eventCode == 0) {
- grammarID = 1811;
- } else {
- errn = EXI_DEVIANT_SUPPORT_NOT_DEPLOYED; /* or also typecast and nillable */
- }
- }
- break;
- case 1:
- /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(errn == 0) {
- if(eventCode == 0) {
- errn = decodeNBitUnsignedInteger(stream, 8, &(uint32));
- v2gLFA_EVSEFinePositioningSetupParametersType->SignalPulseDuration = (uint8_t)(uint32 + 0);
- } 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({urn:iso:15118:2:2016:MsgDataTypes}SignalPulseDuration) ? */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(eventCode == 0) {
- grammarID = 1587;
- } else {
- errn = EXI_DEVIANT_SUPPORT_NOT_DEPLOYED; /* or also typecast and nillable */
- }
- }
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 1811:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorOrder), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SignalPulseDuration)] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gLFA_EVSEFinePositioningSetupParametersType->SensorOrder.arrayLen < v2gLFA_EVSEFinePositioningSetupParametersType_SensorOrder_ARRAY_SIZE) {
- /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(errn == 0) {
- if(eventCode == 0) {
- errn = decodeNBitUnsignedInteger(stream, 8, &(uint32));
- v2gLFA_EVSEFinePositioningSetupParametersType->SensorOrder.array[v2gLFA_EVSEFinePositioningSetupParametersType->SensorOrder.arrayLen] = (uint8_t)(uint32 + 0);
- v2gLFA_EVSEFinePositioningSetupParametersType->SensorOrder.arrayLen++;
- } else {
- /* Second level event (e.g., xsi:type, xsi:nil, ...) */
- errn = EXI_UNSUPPORTED_EVENT_CODE_CHARACTERISTICS;
- }
- }
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- if(errn == 0) {
- /* valid EE for simple element START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorOrder) ? */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(eventCode == 0) {
- grammarID = 1812;
- } else {
- errn = EXI_DEVIANT_SUPPORT_NOT_DEPLOYED; /* or also typecast and nillable */
- }
- }
- break;
- case 1:
- /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(errn == 0) {
- if(eventCode == 0) {
- errn = decodeNBitUnsignedInteger(stream, 8, &(uint32));
- v2gLFA_EVSEFinePositioningSetupParametersType->SignalPulseDuration = (uint8_t)(uint32 + 0);
- } 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({urn:iso:15118:2:2016:MsgDataTypes}SignalPulseDuration) ? */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(eventCode == 0) {
- grammarID = 1587;
- } else {
- errn = EXI_DEVIANT_SUPPORT_NOT_DEPLOYED; /* or also typecast and nillable */
- }
- }
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 1812:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorOrder), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SignalPulseDuration)] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gLFA_EVSEFinePositioningSetupParametersType->SensorOrder.arrayLen < v2gLFA_EVSEFinePositioningSetupParametersType_SensorOrder_ARRAY_SIZE) {
- /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(errn == 0) {
- if(eventCode == 0) {
- errn = decodeNBitUnsignedInteger(stream, 8, &(uint32));
- v2gLFA_EVSEFinePositioningSetupParametersType->SensorOrder.array[v2gLFA_EVSEFinePositioningSetupParametersType->SensorOrder.arrayLen] = (uint8_t)(uint32 + 0);
- v2gLFA_EVSEFinePositioningSetupParametersType->SensorOrder.arrayLen++;
- } else {
- /* Second level event (e.g., xsi:type, xsi:nil, ...) */
- errn = EXI_UNSUPPORTED_EVENT_CODE_CHARACTERISTICS;
- }
- }
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- if(errn == 0) {
- /* valid EE for simple element START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorOrder) ? */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(eventCode == 0) {
- grammarID = 1813;
- } else {
- errn = EXI_DEVIANT_SUPPORT_NOT_DEPLOYED; /* or also typecast and nillable */
- }
- }
- break;
- case 1:
- /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(errn == 0) {
- if(eventCode == 0) {
- errn = decodeNBitUnsignedInteger(stream, 8, &(uint32));
- v2gLFA_EVSEFinePositioningSetupParametersType->SignalPulseDuration = (uint8_t)(uint32 + 0);
- } 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({urn:iso:15118:2:2016:MsgDataTypes}SignalPulseDuration) ? */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(eventCode == 0) {
- grammarID = 1587;
- } else {
- errn = EXI_DEVIANT_SUPPORT_NOT_DEPLOYED; /* or also typecast and nillable */
- }
- }
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 1813:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorOrder), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SignalPulseDuration)] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gLFA_EVSEFinePositioningSetupParametersType->SensorOrder.arrayLen < v2gLFA_EVSEFinePositioningSetupParametersType_SensorOrder_ARRAY_SIZE) {
- /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(errn == 0) {
- if(eventCode == 0) {
- errn = decodeNBitUnsignedInteger(stream, 8, &(uint32));
- v2gLFA_EVSEFinePositioningSetupParametersType->SensorOrder.array[v2gLFA_EVSEFinePositioningSetupParametersType->SensorOrder.arrayLen] = (uint8_t)(uint32 + 0);
- v2gLFA_EVSEFinePositioningSetupParametersType->SensorOrder.arrayLen++;
- } else {
- /* Second level event (e.g., xsi:type, xsi:nil, ...) */
- errn = EXI_UNSUPPORTED_EVENT_CODE_CHARACTERISTICS;
- }
- }
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- if(errn == 0) {
- /* valid EE for simple element START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorOrder) ? */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(eventCode == 0) {
- grammarID = 1814;
- } else {
- errn = EXI_DEVIANT_SUPPORT_NOT_DEPLOYED; /* or also typecast and nillable */
- }
- }
- break;
- case 1:
- /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(errn == 0) {
- if(eventCode == 0) {
- errn = decodeNBitUnsignedInteger(stream, 8, &(uint32));
- v2gLFA_EVSEFinePositioningSetupParametersType->SignalPulseDuration = (uint8_t)(uint32 + 0);
- } 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({urn:iso:15118:2:2016:MsgDataTypes}SignalPulseDuration) ? */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(eventCode == 0) {
- grammarID = 1587;
- } else {
- errn = EXI_DEVIANT_SUPPORT_NOT_DEPLOYED; /* or also typecast and nillable */
- }
- }
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 1814:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorOrder), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SignalPulseDuration)] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gLFA_EVSEFinePositioningSetupParametersType->SensorOrder.arrayLen < v2gLFA_EVSEFinePositioningSetupParametersType_SensorOrder_ARRAY_SIZE) {
- /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(errn == 0) {
- if(eventCode == 0) {
- errn = decodeNBitUnsignedInteger(stream, 8, &(uint32));
- v2gLFA_EVSEFinePositioningSetupParametersType->SensorOrder.array[v2gLFA_EVSEFinePositioningSetupParametersType->SensorOrder.arrayLen] = (uint8_t)(uint32 + 0);
- v2gLFA_EVSEFinePositioningSetupParametersType->SensorOrder.arrayLen++;
- } else {
- /* Second level event (e.g., xsi:type, xsi:nil, ...) */
- errn = EXI_UNSUPPORTED_EVENT_CODE_CHARACTERISTICS;
- }
- }
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- if(errn == 0) {
- /* valid EE for simple element START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorOrder) ? */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(eventCode == 0) {
- grammarID = 1815;
- } else {
- errn = EXI_DEVIANT_SUPPORT_NOT_DEPLOYED; /* or also typecast and nillable */
- }
- }
- break;
- case 1:
- /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(errn == 0) {
- if(eventCode == 0) {
- errn = decodeNBitUnsignedInteger(stream, 8, &(uint32));
- v2gLFA_EVSEFinePositioningSetupParametersType->SignalPulseDuration = (uint8_t)(uint32 + 0);
- } 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({urn:iso:15118:2:2016:MsgDataTypes}SignalPulseDuration) ? */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(eventCode == 0) {
- grammarID = 1587;
- } else {
- errn = EXI_DEVIANT_SUPPORT_NOT_DEPLOYED; /* or also typecast and nillable */
- }
- }
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 1815:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorOrder), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SignalPulseDuration)] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gLFA_EVSEFinePositioningSetupParametersType->SensorOrder.arrayLen < v2gLFA_EVSEFinePositioningSetupParametersType_SensorOrder_ARRAY_SIZE) {
- /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(errn == 0) {
- if(eventCode == 0) {
- errn = decodeNBitUnsignedInteger(stream, 8, &(uint32));
- v2gLFA_EVSEFinePositioningSetupParametersType->SensorOrder.array[v2gLFA_EVSEFinePositioningSetupParametersType->SensorOrder.arrayLen] = (uint8_t)(uint32 + 0);
- v2gLFA_EVSEFinePositioningSetupParametersType->SensorOrder.arrayLen++;
- } else {
- /* Second level event (e.g., xsi:type, xsi:nil, ...) */
- errn = EXI_UNSUPPORTED_EVENT_CODE_CHARACTERISTICS;
- }
- }
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- if(errn == 0) {
- /* valid EE for simple element START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorOrder) ? */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(eventCode == 0) {
- grammarID = 1816;
- } else {
- errn = EXI_DEVIANT_SUPPORT_NOT_DEPLOYED; /* or also typecast and nillable */
- }
- }
- break;
- case 1:
- /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(errn == 0) {
- if(eventCode == 0) {
- errn = decodeNBitUnsignedInteger(stream, 8, &(uint32));
- v2gLFA_EVSEFinePositioningSetupParametersType->SignalPulseDuration = (uint8_t)(uint32 + 0);
- } 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({urn:iso:15118:2:2016:MsgDataTypes}SignalPulseDuration) ? */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(eventCode == 0) {
- grammarID = 1587;
- } else {
- errn = EXI_DEVIANT_SUPPORT_NOT_DEPLOYED; /* or also typecast and nillable */
- }
- }
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 1816:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorOrder), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SignalPulseDuration)] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gLFA_EVSEFinePositioningSetupParametersType->SensorOrder.arrayLen < v2gLFA_EVSEFinePositioningSetupParametersType_SensorOrder_ARRAY_SIZE) {
- /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(errn == 0) {
- if(eventCode == 0) {
- errn = decodeNBitUnsignedInteger(stream, 8, &(uint32));
- v2gLFA_EVSEFinePositioningSetupParametersType->SensorOrder.array[v2gLFA_EVSEFinePositioningSetupParametersType->SensorOrder.arrayLen] = (uint8_t)(uint32 + 0);
- v2gLFA_EVSEFinePositioningSetupParametersType->SensorOrder.arrayLen++;
- } else {
- /* Second level event (e.g., xsi:type, xsi:nil, ...) */
- errn = EXI_UNSUPPORTED_EVENT_CODE_CHARACTERISTICS;
- }
- }
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- if(errn == 0) {
- /* valid EE for simple element START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorOrder) ? */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(eventCode == 0) {
- grammarID = 1817;
- } else {
- errn = EXI_DEVIANT_SUPPORT_NOT_DEPLOYED; /* or also typecast and nillable */
- }
- }
- break;
- case 1:
- /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(errn == 0) {
- if(eventCode == 0) {
- errn = decodeNBitUnsignedInteger(stream, 8, &(uint32));
- v2gLFA_EVSEFinePositioningSetupParametersType->SignalPulseDuration = (uint8_t)(uint32 + 0);
- } 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({urn:iso:15118:2:2016:MsgDataTypes}SignalPulseDuration) ? */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(eventCode == 0) {
- grammarID = 1587;
- } else {
- errn = EXI_DEVIANT_SUPPORT_NOT_DEPLOYED; /* or also typecast and nillable */
- }
- }
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 1817:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorOrder), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SignalPulseDuration)] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gLFA_EVSEFinePositioningSetupParametersType->SensorOrder.arrayLen < v2gLFA_EVSEFinePositioningSetupParametersType_SensorOrder_ARRAY_SIZE) {
- /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(errn == 0) {
- if(eventCode == 0) {
- errn = decodeNBitUnsignedInteger(stream, 8, &(uint32));
- v2gLFA_EVSEFinePositioningSetupParametersType->SensorOrder.array[v2gLFA_EVSEFinePositioningSetupParametersType->SensorOrder.arrayLen] = (uint8_t)(uint32 + 0);
- v2gLFA_EVSEFinePositioningSetupParametersType->SensorOrder.arrayLen++;
- } else {
- /* Second level event (e.g., xsi:type, xsi:nil, ...) */
- errn = EXI_UNSUPPORTED_EVENT_CODE_CHARACTERISTICS;
- }
- }
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- if(errn == 0) {
- /* valid EE for simple element START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorOrder) ? */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(eventCode == 0) {
- grammarID = 1818;
- } else {
- errn = EXI_DEVIANT_SUPPORT_NOT_DEPLOYED; /* or also typecast and nillable */
- }
- }
- break;
- case 1:
- /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(errn == 0) {
- if(eventCode == 0) {
- errn = decodeNBitUnsignedInteger(stream, 8, &(uint32));
- v2gLFA_EVSEFinePositioningSetupParametersType->SignalPulseDuration = (uint8_t)(uint32 + 0);
- } 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({urn:iso:15118:2:2016:MsgDataTypes}SignalPulseDuration) ? */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(eventCode == 0) {
- grammarID = 1587;
- } else {
- errn = EXI_DEVIANT_SUPPORT_NOT_DEPLOYED; /* or also typecast and nillable */
- }
- }
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 1818:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorOrder), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SignalPulseDuration)] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gLFA_EVSEFinePositioningSetupParametersType->SensorOrder.arrayLen < v2gLFA_EVSEFinePositioningSetupParametersType_SensorOrder_ARRAY_SIZE) {
- /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(errn == 0) {
- if(eventCode == 0) {
- errn = decodeNBitUnsignedInteger(stream, 8, &(uint32));
- v2gLFA_EVSEFinePositioningSetupParametersType->SensorOrder.array[v2gLFA_EVSEFinePositioningSetupParametersType->SensorOrder.arrayLen] = (uint8_t)(uint32 + 0);
- v2gLFA_EVSEFinePositioningSetupParametersType->SensorOrder.arrayLen++;
- } else {
- /* Second level event (e.g., xsi:type, xsi:nil, ...) */
- errn = EXI_UNSUPPORTED_EVENT_CODE_CHARACTERISTICS;
- }
- }
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- if(errn == 0) {
- /* valid EE for simple element START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorOrder) ? */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(eventCode == 0) {
- grammarID = 1819;
- } else {
- errn = EXI_DEVIANT_SUPPORT_NOT_DEPLOYED; /* or also typecast and nillable */
- }
- }
- break;
- case 1:
- /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(errn == 0) {
- if(eventCode == 0) {
- errn = decodeNBitUnsignedInteger(stream, 8, &(uint32));
- v2gLFA_EVSEFinePositioningSetupParametersType->SignalPulseDuration = (uint8_t)(uint32 + 0);
- } 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({urn:iso:15118:2:2016:MsgDataTypes}SignalPulseDuration) ? */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(eventCode == 0) {
- grammarID = 1587;
- } else {
- errn = EXI_DEVIANT_SUPPORT_NOT_DEPLOYED; /* or also typecast and nillable */
- }
- }
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 1819:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorOrder), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SignalPulseDuration)] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gLFA_EVSEFinePositioningSetupParametersType->SensorOrder.arrayLen < v2gLFA_EVSEFinePositioningSetupParametersType_SensorOrder_ARRAY_SIZE) {
- /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(errn == 0) {
- if(eventCode == 0) {
- errn = decodeNBitUnsignedInteger(stream, 8, &(uint32));
- v2gLFA_EVSEFinePositioningSetupParametersType->SensorOrder.array[v2gLFA_EVSEFinePositioningSetupParametersType->SensorOrder.arrayLen] = (uint8_t)(uint32 + 0);
- v2gLFA_EVSEFinePositioningSetupParametersType->SensorOrder.arrayLen++;
- } else {
- /* Second level event (e.g., xsi:type, xsi:nil, ...) */
- errn = EXI_UNSUPPORTED_EVENT_CODE_CHARACTERISTICS;
- }
- }
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- if(errn == 0) {
- /* valid EE for simple element START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorOrder) ? */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(eventCode == 0) {
- grammarID = 1820;
- } else {
- errn = EXI_DEVIANT_SUPPORT_NOT_DEPLOYED; /* or also typecast and nillable */
- }
- }
- break;
- case 1:
- /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(errn == 0) {
- if(eventCode == 0) {
- errn = decodeNBitUnsignedInteger(stream, 8, &(uint32));
- v2gLFA_EVSEFinePositioningSetupParametersType->SignalPulseDuration = (uint8_t)(uint32 + 0);
- } 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({urn:iso:15118:2:2016:MsgDataTypes}SignalPulseDuration) ? */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(eventCode == 0) {
- grammarID = 1587;
- } else {
- errn = EXI_DEVIANT_SUPPORT_NOT_DEPLOYED; /* or also typecast and nillable */
- }
- }
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 1820:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorOrder), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SignalPulseDuration)] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gLFA_EVSEFinePositioningSetupParametersType->SensorOrder.arrayLen < v2gLFA_EVSEFinePositioningSetupParametersType_SensorOrder_ARRAY_SIZE) {
- /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(errn == 0) {
- if(eventCode == 0) {
- errn = decodeNBitUnsignedInteger(stream, 8, &(uint32));
- v2gLFA_EVSEFinePositioningSetupParametersType->SensorOrder.array[v2gLFA_EVSEFinePositioningSetupParametersType->SensorOrder.arrayLen] = (uint8_t)(uint32 + 0);
- v2gLFA_EVSEFinePositioningSetupParametersType->SensorOrder.arrayLen++;
- } else {
- /* Second level event (e.g., xsi:type, xsi:nil, ...) */
- errn = EXI_UNSUPPORTED_EVENT_CODE_CHARACTERISTICS;
- }
- }
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- if(errn == 0) {
- /* valid EE for simple element START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorOrder) ? */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(eventCode == 0) {
- grammarID = 1821;
- } else {
- errn = EXI_DEVIANT_SUPPORT_NOT_DEPLOYED; /* or also typecast and nillable */
- }
- }
- break;
- case 1:
- /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(errn == 0) {
- if(eventCode == 0) {
- errn = decodeNBitUnsignedInteger(stream, 8, &(uint32));
- v2gLFA_EVSEFinePositioningSetupParametersType->SignalPulseDuration = (uint8_t)(uint32 + 0);
- } 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({urn:iso:15118:2:2016:MsgDataTypes}SignalPulseDuration) ? */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(eventCode == 0) {
- grammarID = 1587;
- } else {
- errn = EXI_DEVIANT_SUPPORT_NOT_DEPLOYED; /* or also typecast and nillable */
- }
- }
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 1821:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorOrder), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SignalPulseDuration)] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gLFA_EVSEFinePositioningSetupParametersType->SensorOrder.arrayLen < v2gLFA_EVSEFinePositioningSetupParametersType_SensorOrder_ARRAY_SIZE) {
- /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(errn == 0) {
- if(eventCode == 0) {
- errn = decodeNBitUnsignedInteger(stream, 8, &(uint32));
- v2gLFA_EVSEFinePositioningSetupParametersType->SensorOrder.array[v2gLFA_EVSEFinePositioningSetupParametersType->SensorOrder.arrayLen] = (uint8_t)(uint32 + 0);
- v2gLFA_EVSEFinePositioningSetupParametersType->SensorOrder.arrayLen++;
- } else {
- /* Second level event (e.g., xsi:type, xsi:nil, ...) */
- errn = EXI_UNSUPPORTED_EVENT_CODE_CHARACTERISTICS;
- }
- }
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- if(errn == 0) {
- /* valid EE for simple element START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorOrder) ? */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(eventCode == 0) {
- grammarID = 1822;
- } else {
- errn = EXI_DEVIANT_SUPPORT_NOT_DEPLOYED; /* or also typecast and nillable */
- }
- }
- break;
- case 1:
- /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(errn == 0) {
- if(eventCode == 0) {
- errn = decodeNBitUnsignedInteger(stream, 8, &(uint32));
- v2gLFA_EVSEFinePositioningSetupParametersType->SignalPulseDuration = (uint8_t)(uint32 + 0);
- } 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({urn:iso:15118:2:2016:MsgDataTypes}SignalPulseDuration) ? */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(eventCode == 0) {
- grammarID = 1587;
- } else {
- errn = EXI_DEVIANT_SUPPORT_NOT_DEPLOYED; /* or also typecast and nillable */
- }
- }
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 1822:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorOrder), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SignalPulseDuration)] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gLFA_EVSEFinePositioningSetupParametersType->SensorOrder.arrayLen < v2gLFA_EVSEFinePositioningSetupParametersType_SensorOrder_ARRAY_SIZE) {
- /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(errn == 0) {
- if(eventCode == 0) {
- errn = decodeNBitUnsignedInteger(stream, 8, &(uint32));
- v2gLFA_EVSEFinePositioningSetupParametersType->SensorOrder.array[v2gLFA_EVSEFinePositioningSetupParametersType->SensorOrder.arrayLen] = (uint8_t)(uint32 + 0);
- v2gLFA_EVSEFinePositioningSetupParametersType->SensorOrder.arrayLen++;
- } else {
- /* Second level event (e.g., xsi:type, xsi:nil, ...) */
- errn = EXI_UNSUPPORTED_EVENT_CODE_CHARACTERISTICS;
- }
- }
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- if(errn == 0) {
- /* valid EE for simple element START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorOrder) ? */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(eventCode == 0) {
- grammarID = 1823;
- } else {
- errn = EXI_DEVIANT_SUPPORT_NOT_DEPLOYED; /* or also typecast and nillable */
- }
- }
- break;
- case 1:
- /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(errn == 0) {
- if(eventCode == 0) {
- errn = decodeNBitUnsignedInteger(stream, 8, &(uint32));
- v2gLFA_EVSEFinePositioningSetupParametersType->SignalPulseDuration = (uint8_t)(uint32 + 0);
- } 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({urn:iso:15118:2:2016:MsgDataTypes}SignalPulseDuration) ? */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(eventCode == 0) {
- grammarID = 1587;
- } else {
- errn = EXI_DEVIANT_SUPPORT_NOT_DEPLOYED; /* or also typecast and nillable */
- }
- }
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 1823:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorOrder), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SignalPulseDuration)] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gLFA_EVSEFinePositioningSetupParametersType->SensorOrder.arrayLen < v2gLFA_EVSEFinePositioningSetupParametersType_SensorOrder_ARRAY_SIZE) {
- /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(errn == 0) {
- if(eventCode == 0) {
- errn = decodeNBitUnsignedInteger(stream, 8, &(uint32));
- v2gLFA_EVSEFinePositioningSetupParametersType->SensorOrder.array[v2gLFA_EVSEFinePositioningSetupParametersType->SensorOrder.arrayLen] = (uint8_t)(uint32 + 0);
- v2gLFA_EVSEFinePositioningSetupParametersType->SensorOrder.arrayLen++;
- } else {
- /* Second level event (e.g., xsi:type, xsi:nil, ...) */
- errn = EXI_UNSUPPORTED_EVENT_CODE_CHARACTERISTICS;
- }
- }
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- if(errn == 0) {
- /* valid EE for simple element START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorOrder) ? */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(eventCode == 0) {
- grammarID = 1824;
- } else {
- errn = EXI_DEVIANT_SUPPORT_NOT_DEPLOYED; /* or also typecast and nillable */
- }
- }
- break;
- case 1:
- /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(errn == 0) {
- if(eventCode == 0) {
- errn = decodeNBitUnsignedInteger(stream, 8, &(uint32));
- v2gLFA_EVSEFinePositioningSetupParametersType->SignalPulseDuration = (uint8_t)(uint32 + 0);
- } 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({urn:iso:15118:2:2016:MsgDataTypes}SignalPulseDuration) ? */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(eventCode == 0) {
- grammarID = 1587;
- } else {
- errn = EXI_DEVIANT_SUPPORT_NOT_DEPLOYED; /* or also typecast and nillable */
- }
- }
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 1824:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorOrder), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SignalPulseDuration)] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gLFA_EVSEFinePositioningSetupParametersType->SensorOrder.arrayLen < v2gLFA_EVSEFinePositioningSetupParametersType_SensorOrder_ARRAY_SIZE) {
- /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(errn == 0) {
- if(eventCode == 0) {
- errn = decodeNBitUnsignedInteger(stream, 8, &(uint32));
- v2gLFA_EVSEFinePositioningSetupParametersType->SensorOrder.array[v2gLFA_EVSEFinePositioningSetupParametersType->SensorOrder.arrayLen] = (uint8_t)(uint32 + 0);
- v2gLFA_EVSEFinePositioningSetupParametersType->SensorOrder.arrayLen++;
- } else {
- /* Second level event (e.g., xsi:type, xsi:nil, ...) */
- errn = EXI_UNSUPPORTED_EVENT_CODE_CHARACTERISTICS;
- }
- }
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- if(errn == 0) {
- /* valid EE for simple element START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorOrder) ? */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(eventCode == 0) {
- grammarID = 1825;
- } else {
- errn = EXI_DEVIANT_SUPPORT_NOT_DEPLOYED; /* or also typecast and nillable */
- }
- }
- break;
- case 1:
- /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(errn == 0) {
- if(eventCode == 0) {
- errn = decodeNBitUnsignedInteger(stream, 8, &(uint32));
- v2gLFA_EVSEFinePositioningSetupParametersType->SignalPulseDuration = (uint8_t)(uint32 + 0);
- } 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({urn:iso:15118:2:2016:MsgDataTypes}SignalPulseDuration) ? */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(eventCode == 0) {
- grammarID = 1587;
- } else {
- errn = EXI_DEVIANT_SUPPORT_NOT_DEPLOYED; /* or also typecast and nillable */
- }
- }
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 1825:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorOrder), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SignalPulseDuration)] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gLFA_EVSEFinePositioningSetupParametersType->SensorOrder.arrayLen < v2gLFA_EVSEFinePositioningSetupParametersType_SensorOrder_ARRAY_SIZE) {
- /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(errn == 0) {
- if(eventCode == 0) {
- errn = decodeNBitUnsignedInteger(stream, 8, &(uint32));
- v2gLFA_EVSEFinePositioningSetupParametersType->SensorOrder.array[v2gLFA_EVSEFinePositioningSetupParametersType->SensorOrder.arrayLen] = (uint8_t)(uint32 + 0);
- v2gLFA_EVSEFinePositioningSetupParametersType->SensorOrder.arrayLen++;
- } else {
- /* Second level event (e.g., xsi:type, xsi:nil, ...) */
- errn = EXI_UNSUPPORTED_EVENT_CODE_CHARACTERISTICS;
- }
- }
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- if(errn == 0) {
- /* valid EE for simple element START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorOrder) ? */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(eventCode == 0) {
- grammarID = 1826;
- } else {
- errn = EXI_DEVIANT_SUPPORT_NOT_DEPLOYED; /* or also typecast and nillable */
- }
- }
- break;
- case 1:
- /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(errn == 0) {
- if(eventCode == 0) {
- errn = decodeNBitUnsignedInteger(stream, 8, &(uint32));
- v2gLFA_EVSEFinePositioningSetupParametersType->SignalPulseDuration = (uint8_t)(uint32 + 0);
- } 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({urn:iso:15118:2:2016:MsgDataTypes}SignalPulseDuration) ? */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(eventCode == 0) {
- grammarID = 1587;
- } else {
- errn = EXI_DEVIANT_SUPPORT_NOT_DEPLOYED; /* or also typecast and nillable */
- }
- }
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 1826:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorOrder), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SignalPulseDuration)] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gLFA_EVSEFinePositioningSetupParametersType->SensorOrder.arrayLen < v2gLFA_EVSEFinePositioningSetupParametersType_SensorOrder_ARRAY_SIZE) {
- /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(errn == 0) {
- if(eventCode == 0) {
- errn = decodeNBitUnsignedInteger(stream, 8, &(uint32));
- v2gLFA_EVSEFinePositioningSetupParametersType->SensorOrder.array[v2gLFA_EVSEFinePositioningSetupParametersType->SensorOrder.arrayLen] = (uint8_t)(uint32 + 0);
- v2gLFA_EVSEFinePositioningSetupParametersType->SensorOrder.arrayLen++;
- } else {
- /* Second level event (e.g., xsi:type, xsi:nil, ...) */
- errn = EXI_UNSUPPORTED_EVENT_CODE_CHARACTERISTICS;
- }
- }
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- if(errn == 0) {
- /* valid EE for simple element START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorOrder) ? */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(eventCode == 0) {
- grammarID = 1827;
- } else {
- errn = EXI_DEVIANT_SUPPORT_NOT_DEPLOYED; /* or also typecast and nillable */
- }
- }
- break;
- case 1:
- /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(errn == 0) {
- if(eventCode == 0) {
- errn = decodeNBitUnsignedInteger(stream, 8, &(uint32));
- v2gLFA_EVSEFinePositioningSetupParametersType->SignalPulseDuration = (uint8_t)(uint32 + 0);
- } 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({urn:iso:15118:2:2016:MsgDataTypes}SignalPulseDuration) ? */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(eventCode == 0) {
- grammarID = 1587;
- } else {
- errn = EXI_DEVIANT_SUPPORT_NOT_DEPLOYED; /* or also typecast and nillable */
- }
- }
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 1827:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorOrder), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SignalPulseDuration)] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gLFA_EVSEFinePositioningSetupParametersType->SensorOrder.arrayLen < v2gLFA_EVSEFinePositioningSetupParametersType_SensorOrder_ARRAY_SIZE) {
- /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(errn == 0) {
- if(eventCode == 0) {
- errn = decodeNBitUnsignedInteger(stream, 8, &(uint32));
- v2gLFA_EVSEFinePositioningSetupParametersType->SensorOrder.array[v2gLFA_EVSEFinePositioningSetupParametersType->SensorOrder.arrayLen] = (uint8_t)(uint32 + 0);
- v2gLFA_EVSEFinePositioningSetupParametersType->SensorOrder.arrayLen++;
- } else {
- /* Second level event (e.g., xsi:type, xsi:nil, ...) */
- errn = EXI_UNSUPPORTED_EVENT_CODE_CHARACTERISTICS;
- }
- }
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- if(errn == 0) {
- /* valid EE for simple element START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorOrder) ? */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(eventCode == 0) {
- grammarID = 1828;
- } else {
- errn = EXI_DEVIANT_SUPPORT_NOT_DEPLOYED; /* or also typecast and nillable */
- }
- }
- break;
- case 1:
- /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(errn == 0) {
- if(eventCode == 0) {
- errn = decodeNBitUnsignedInteger(stream, 8, &(uint32));
- v2gLFA_EVSEFinePositioningSetupParametersType->SignalPulseDuration = (uint8_t)(uint32 + 0);
- } 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({urn:iso:15118:2:2016:MsgDataTypes}SignalPulseDuration) ? */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(eventCode == 0) {
- grammarID = 1587;
- } else {
- errn = EXI_DEVIANT_SUPPORT_NOT_DEPLOYED; /* or also typecast and nillable */
- }
- }
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 1828:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorOrder), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SignalPulseDuration)] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gLFA_EVSEFinePositioningSetupParametersType->SensorOrder.arrayLen < v2gLFA_EVSEFinePositioningSetupParametersType_SensorOrder_ARRAY_SIZE) {
- /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(errn == 0) {
- if(eventCode == 0) {
- errn = decodeNBitUnsignedInteger(stream, 8, &(uint32));
- v2gLFA_EVSEFinePositioningSetupParametersType->SensorOrder.array[v2gLFA_EVSEFinePositioningSetupParametersType->SensorOrder.arrayLen] = (uint8_t)(uint32 + 0);
- v2gLFA_EVSEFinePositioningSetupParametersType->SensorOrder.arrayLen++;
- } else {
- /* Second level event (e.g., xsi:type, xsi:nil, ...) */
- errn = EXI_UNSUPPORTED_EVENT_CODE_CHARACTERISTICS;
- }
- }
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- if(errn == 0) {
- /* valid EE for simple element START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorOrder) ? */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(eventCode == 0) {
- grammarID = 1829;
- } else {
- errn = EXI_DEVIANT_SUPPORT_NOT_DEPLOYED; /* or also typecast and nillable */
- }
- }
- break;
- case 1:
- /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(errn == 0) {
- if(eventCode == 0) {
- errn = decodeNBitUnsignedInteger(stream, 8, &(uint32));
- v2gLFA_EVSEFinePositioningSetupParametersType->SignalPulseDuration = (uint8_t)(uint32 + 0);
- } 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({urn:iso:15118:2:2016:MsgDataTypes}SignalPulseDuration) ? */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(eventCode == 0) {
- grammarID = 1587;
- } else {
- errn = EXI_DEVIANT_SUPPORT_NOT_DEPLOYED; /* or also typecast and nillable */
- }
- }
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 1829:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorOrder), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SignalPulseDuration)] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gLFA_EVSEFinePositioningSetupParametersType->SensorOrder.arrayLen < v2gLFA_EVSEFinePositioningSetupParametersType_SensorOrder_ARRAY_SIZE) {
- /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(errn == 0) {
- if(eventCode == 0) {
- errn = decodeNBitUnsignedInteger(stream, 8, &(uint32));
- v2gLFA_EVSEFinePositioningSetupParametersType->SensorOrder.array[v2gLFA_EVSEFinePositioningSetupParametersType->SensorOrder.arrayLen] = (uint8_t)(uint32 + 0);
- v2gLFA_EVSEFinePositioningSetupParametersType->SensorOrder.arrayLen++;
- } else {
- /* Second level event (e.g., xsi:type, xsi:nil, ...) */
- errn = EXI_UNSUPPORTED_EVENT_CODE_CHARACTERISTICS;
- }
- }
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- if(errn == 0) {
- /* valid EE for simple element START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorOrder) ? */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(eventCode == 0) {
- grammarID = 1830;
- } else {
- errn = EXI_DEVIANT_SUPPORT_NOT_DEPLOYED; /* or also typecast and nillable */
- }
- }
- break;
- case 1:
- /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(errn == 0) {
- if(eventCode == 0) {
- errn = decodeNBitUnsignedInteger(stream, 8, &(uint32));
- v2gLFA_EVSEFinePositioningSetupParametersType->SignalPulseDuration = (uint8_t)(uint32 + 0);
- } 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({urn:iso:15118:2:2016:MsgDataTypes}SignalPulseDuration) ? */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(eventCode == 0) {
- grammarID = 1587;
- } else {
- errn = EXI_DEVIANT_SUPPORT_NOT_DEPLOYED; /* or also typecast and nillable */
- }
- }
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 1830:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorOrder), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SignalPulseDuration)] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gLFA_EVSEFinePositioningSetupParametersType->SensorOrder.arrayLen < v2gLFA_EVSEFinePositioningSetupParametersType_SensorOrder_ARRAY_SIZE) {
- /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(errn == 0) {
- if(eventCode == 0) {
- errn = decodeNBitUnsignedInteger(stream, 8, &(uint32));
- v2gLFA_EVSEFinePositioningSetupParametersType->SensorOrder.array[v2gLFA_EVSEFinePositioningSetupParametersType->SensorOrder.arrayLen] = (uint8_t)(uint32 + 0);
- v2gLFA_EVSEFinePositioningSetupParametersType->SensorOrder.arrayLen++;
- } else {
- /* Second level event (e.g., xsi:type, xsi:nil, ...) */
- errn = EXI_UNSUPPORTED_EVENT_CODE_CHARACTERISTICS;
- }
- }
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- if(errn == 0) {
- /* valid EE for simple element START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorOrder) ? */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(eventCode == 0) {
- grammarID = 1831;
- } else {
- errn = EXI_DEVIANT_SUPPORT_NOT_DEPLOYED; /* or also typecast and nillable */
- }
- }
- break;
- case 1:
- /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(errn == 0) {
- if(eventCode == 0) {
- errn = decodeNBitUnsignedInteger(stream, 8, &(uint32));
- v2gLFA_EVSEFinePositioningSetupParametersType->SignalPulseDuration = (uint8_t)(uint32 + 0);
- } 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({urn:iso:15118:2:2016:MsgDataTypes}SignalPulseDuration) ? */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(eventCode == 0) {
- grammarID = 1587;
- } else {
- errn = EXI_DEVIANT_SUPPORT_NOT_DEPLOYED; /* or also typecast and nillable */
- }
- }
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 1831:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorOrder), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SignalPulseDuration)] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gLFA_EVSEFinePositioningSetupParametersType->SensorOrder.arrayLen < v2gLFA_EVSEFinePositioningSetupParametersType_SensorOrder_ARRAY_SIZE) {
- /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(errn == 0) {
- if(eventCode == 0) {
- errn = decodeNBitUnsignedInteger(stream, 8, &(uint32));
- v2gLFA_EVSEFinePositioningSetupParametersType->SensorOrder.array[v2gLFA_EVSEFinePositioningSetupParametersType->SensorOrder.arrayLen] = (uint8_t)(uint32 + 0);
- v2gLFA_EVSEFinePositioningSetupParametersType->SensorOrder.arrayLen++;
- } else {
- /* Second level event (e.g., xsi:type, xsi:nil, ...) */
- errn = EXI_UNSUPPORTED_EVENT_CODE_CHARACTERISTICS;
- }
- }
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- if(errn == 0) {
- /* valid EE for simple element START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorOrder) ? */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(eventCode == 0) {
- grammarID = 1832;
- } else {
- errn = EXI_DEVIANT_SUPPORT_NOT_DEPLOYED; /* or also typecast and nillable */
- }
- }
- break;
- case 1:
- /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(errn == 0) {
- if(eventCode == 0) {
- errn = decodeNBitUnsignedInteger(stream, 8, &(uint32));
- v2gLFA_EVSEFinePositioningSetupParametersType->SignalPulseDuration = (uint8_t)(uint32 + 0);
- } 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({urn:iso:15118:2:2016:MsgDataTypes}SignalPulseDuration) ? */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(eventCode == 0) {
- grammarID = 1587;
- } else {
- errn = EXI_DEVIANT_SUPPORT_NOT_DEPLOYED; /* or also typecast and nillable */
- }
- }
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 1832:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorOrder), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SignalPulseDuration)] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gLFA_EVSEFinePositioningSetupParametersType->SensorOrder.arrayLen < v2gLFA_EVSEFinePositioningSetupParametersType_SensorOrder_ARRAY_SIZE) {
- /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(errn == 0) {
- if(eventCode == 0) {
- errn = decodeNBitUnsignedInteger(stream, 8, &(uint32));
- v2gLFA_EVSEFinePositioningSetupParametersType->SensorOrder.array[v2gLFA_EVSEFinePositioningSetupParametersType->SensorOrder.arrayLen] = (uint8_t)(uint32 + 0);
- v2gLFA_EVSEFinePositioningSetupParametersType->SensorOrder.arrayLen++;
- } else {
- /* Second level event (e.g., xsi:type, xsi:nil, ...) */
- errn = EXI_UNSUPPORTED_EVENT_CODE_CHARACTERISTICS;
- }
- }
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- if(errn == 0) {
- /* valid EE for simple element START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorOrder) ? */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(eventCode == 0) {
- grammarID = 1833;
- } else {
- errn = EXI_DEVIANT_SUPPORT_NOT_DEPLOYED; /* or also typecast and nillable */
- }
- }
- break;
- case 1:
- /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(errn == 0) {
- if(eventCode == 0) {
- errn = decodeNBitUnsignedInteger(stream, 8, &(uint32));
- v2gLFA_EVSEFinePositioningSetupParametersType->SignalPulseDuration = (uint8_t)(uint32 + 0);
- } 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({urn:iso:15118:2:2016:MsgDataTypes}SignalPulseDuration) ? */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(eventCode == 0) {
- grammarID = 1587;
- } else {
- errn = EXI_DEVIANT_SUPPORT_NOT_DEPLOYED; /* or also typecast and nillable */
- }
- }
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 1833:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorOrder), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SignalPulseDuration)] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gLFA_EVSEFinePositioningSetupParametersType->SensorOrder.arrayLen < v2gLFA_EVSEFinePositioningSetupParametersType_SensorOrder_ARRAY_SIZE) {
- /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(errn == 0) {
- if(eventCode == 0) {
- errn = decodeNBitUnsignedInteger(stream, 8, &(uint32));
- v2gLFA_EVSEFinePositioningSetupParametersType->SensorOrder.array[v2gLFA_EVSEFinePositioningSetupParametersType->SensorOrder.arrayLen] = (uint8_t)(uint32 + 0);
- v2gLFA_EVSEFinePositioningSetupParametersType->SensorOrder.arrayLen++;
- } else {
- /* Second level event (e.g., xsi:type, xsi:nil, ...) */
- errn = EXI_UNSUPPORTED_EVENT_CODE_CHARACTERISTICS;
- }
- }
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- if(errn == 0) {
- /* valid EE for simple element START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorOrder) ? */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(eventCode == 0) {
- grammarID = 1834;
- } else {
- errn = EXI_DEVIANT_SUPPORT_NOT_DEPLOYED; /* or also typecast and nillable */
- }
- }
- break;
- case 1:
- /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(errn == 0) {
- if(eventCode == 0) {
- errn = decodeNBitUnsignedInteger(stream, 8, &(uint32));
- v2gLFA_EVSEFinePositioningSetupParametersType->SignalPulseDuration = (uint8_t)(uint32 + 0);
- } 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({urn:iso:15118:2:2016:MsgDataTypes}SignalPulseDuration) ? */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(eventCode == 0) {
- grammarID = 1587;
- } else {
- errn = EXI_DEVIANT_SUPPORT_NOT_DEPLOYED; /* or also typecast and nillable */
- }
- }
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 1834:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorOrder), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SignalPulseDuration)] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gLFA_EVSEFinePositioningSetupParametersType->SensorOrder.arrayLen < v2gLFA_EVSEFinePositioningSetupParametersType_SensorOrder_ARRAY_SIZE) {
- /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(errn == 0) {
- if(eventCode == 0) {
- errn = decodeNBitUnsignedInteger(stream, 8, &(uint32));
- v2gLFA_EVSEFinePositioningSetupParametersType->SensorOrder.array[v2gLFA_EVSEFinePositioningSetupParametersType->SensorOrder.arrayLen] = (uint8_t)(uint32 + 0);
- v2gLFA_EVSEFinePositioningSetupParametersType->SensorOrder.arrayLen++;
- } else {
- /* Second level event (e.g., xsi:type, xsi:nil, ...) */
- errn = EXI_UNSUPPORTED_EVENT_CODE_CHARACTERISTICS;
- }
- }
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- if(errn == 0) {
- /* valid EE for simple element START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorOrder) ? */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(eventCode == 0) {
- grammarID = 1835;
- } else {
- errn = EXI_DEVIANT_SUPPORT_NOT_DEPLOYED; /* or also typecast and nillable */
- }
- }
- break;
- case 1:
- /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(errn == 0) {
- if(eventCode == 0) {
- errn = decodeNBitUnsignedInteger(stream, 8, &(uint32));
- v2gLFA_EVSEFinePositioningSetupParametersType->SignalPulseDuration = (uint8_t)(uint32 + 0);
- } 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({urn:iso:15118:2:2016:MsgDataTypes}SignalPulseDuration) ? */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(eventCode == 0) {
- grammarID = 1587;
- } else {
- errn = EXI_DEVIANT_SUPPORT_NOT_DEPLOYED; /* or also typecast and nillable */
- }
- }
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 1835:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorOrder), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SignalPulseDuration)] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gLFA_EVSEFinePositioningSetupParametersType->SensorOrder.arrayLen < v2gLFA_EVSEFinePositioningSetupParametersType_SensorOrder_ARRAY_SIZE) {
- /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(errn == 0) {
- if(eventCode == 0) {
- errn = decodeNBitUnsignedInteger(stream, 8, &(uint32));
- v2gLFA_EVSEFinePositioningSetupParametersType->SensorOrder.array[v2gLFA_EVSEFinePositioningSetupParametersType->SensorOrder.arrayLen] = (uint8_t)(uint32 + 0);
- v2gLFA_EVSEFinePositioningSetupParametersType->SensorOrder.arrayLen++;
- } else {
- /* Second level event (e.g., xsi:type, xsi:nil, ...) */
- errn = EXI_UNSUPPORTED_EVENT_CODE_CHARACTERISTICS;
- }
- }
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- if(errn == 0) {
- /* valid EE for simple element START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorOrder) ? */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(eventCode == 0) {
- grammarID = 1836;
- } else {
- errn = EXI_DEVIANT_SUPPORT_NOT_DEPLOYED; /* or also typecast and nillable */
- }
- }
- break;
- case 1:
- /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(errn == 0) {
- if(eventCode == 0) {
- errn = decodeNBitUnsignedInteger(stream, 8, &(uint32));
- v2gLFA_EVSEFinePositioningSetupParametersType->SignalPulseDuration = (uint8_t)(uint32 + 0);
- } 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({urn:iso:15118:2:2016:MsgDataTypes}SignalPulseDuration) ? */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(eventCode == 0) {
- grammarID = 1587;
- } else {
- errn = EXI_DEVIANT_SUPPORT_NOT_DEPLOYED; /* or also typecast and nillable */
- }
- }
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 1836:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorOrder), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SignalPulseDuration)] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gLFA_EVSEFinePositioningSetupParametersType->SensorOrder.arrayLen < v2gLFA_EVSEFinePositioningSetupParametersType_SensorOrder_ARRAY_SIZE) {
- /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(errn == 0) {
- if(eventCode == 0) {
- errn = decodeNBitUnsignedInteger(stream, 8, &(uint32));
- v2gLFA_EVSEFinePositioningSetupParametersType->SensorOrder.array[v2gLFA_EVSEFinePositioningSetupParametersType->SensorOrder.arrayLen] = (uint8_t)(uint32 + 0);
- v2gLFA_EVSEFinePositioningSetupParametersType->SensorOrder.arrayLen++;
- } else {
- /* Second level event (e.g., xsi:type, xsi:nil, ...) */
- errn = EXI_UNSUPPORTED_EVENT_CODE_CHARACTERISTICS;
- }
- }
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- if(errn == 0) {
- /* valid EE for simple element START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorOrder) ? */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(eventCode == 0) {
- grammarID = 1837;
- } else {
- errn = EXI_DEVIANT_SUPPORT_NOT_DEPLOYED; /* or also typecast and nillable */
- }
- }
- break;
- case 1:
- /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(errn == 0) {
- if(eventCode == 0) {
- errn = decodeNBitUnsignedInteger(stream, 8, &(uint32));
- v2gLFA_EVSEFinePositioningSetupParametersType->SignalPulseDuration = (uint8_t)(uint32 + 0);
- } 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({urn:iso:15118:2:2016:MsgDataTypes}SignalPulseDuration) ? */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(eventCode == 0) {
- grammarID = 1587;
- } else {
- errn = EXI_DEVIANT_SUPPORT_NOT_DEPLOYED; /* or also typecast and nillable */
- }
- }
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 1837:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorOrder), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SignalPulseDuration)] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gLFA_EVSEFinePositioningSetupParametersType->SensorOrder.arrayLen < v2gLFA_EVSEFinePositioningSetupParametersType_SensorOrder_ARRAY_SIZE) {
- /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(errn == 0) {
- if(eventCode == 0) {
- errn = decodeNBitUnsignedInteger(stream, 8, &(uint32));
- v2gLFA_EVSEFinePositioningSetupParametersType->SensorOrder.array[v2gLFA_EVSEFinePositioningSetupParametersType->SensorOrder.arrayLen] = (uint8_t)(uint32 + 0);
- v2gLFA_EVSEFinePositioningSetupParametersType->SensorOrder.arrayLen++;
- } else {
- /* Second level event (e.g., xsi:type, xsi:nil, ...) */
- errn = EXI_UNSUPPORTED_EVENT_CODE_CHARACTERISTICS;
- }
- }
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- if(errn == 0) {
- /* valid EE for simple element START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorOrder) ? */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(eventCode == 0) {
- grammarID = 1838;
- } else {
- errn = EXI_DEVIANT_SUPPORT_NOT_DEPLOYED; /* or also typecast and nillable */
- }
- }
- break;
- case 1:
- /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(errn == 0) {
- if(eventCode == 0) {
- errn = decodeNBitUnsignedInteger(stream, 8, &(uint32));
- v2gLFA_EVSEFinePositioningSetupParametersType->SignalPulseDuration = (uint8_t)(uint32 + 0);
- } 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({urn:iso:15118:2:2016:MsgDataTypes}SignalPulseDuration) ? */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(eventCode == 0) {
- grammarID = 1587;
- } else {
- errn = EXI_DEVIANT_SUPPORT_NOT_DEPLOYED; /* or also typecast and nillable */
- }
- }
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 1838:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorOrder), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SignalPulseDuration)] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gLFA_EVSEFinePositioningSetupParametersType->SensorOrder.arrayLen < v2gLFA_EVSEFinePositioningSetupParametersType_SensorOrder_ARRAY_SIZE) {
- /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(errn == 0) {
- if(eventCode == 0) {
- errn = decodeNBitUnsignedInteger(stream, 8, &(uint32));
- v2gLFA_EVSEFinePositioningSetupParametersType->SensorOrder.array[v2gLFA_EVSEFinePositioningSetupParametersType->SensorOrder.arrayLen] = (uint8_t)(uint32 + 0);
- v2gLFA_EVSEFinePositioningSetupParametersType->SensorOrder.arrayLen++;
- } else {
- /* Second level event (e.g., xsi:type, xsi:nil, ...) */
- errn = EXI_UNSUPPORTED_EVENT_CODE_CHARACTERISTICS;
- }
- }
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- if(errn == 0) {
- /* valid EE for simple element START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorOrder) ? */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(eventCode == 0) {
- grammarID = 1839;
- } else {
- errn = EXI_DEVIANT_SUPPORT_NOT_DEPLOYED; /* or also typecast and nillable */
- }
- }
- break;
- case 1:
- /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(errn == 0) {
- if(eventCode == 0) {
- errn = decodeNBitUnsignedInteger(stream, 8, &(uint32));
- v2gLFA_EVSEFinePositioningSetupParametersType->SignalPulseDuration = (uint8_t)(uint32 + 0);
- } 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({urn:iso:15118:2:2016:MsgDataTypes}SignalPulseDuration) ? */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(eventCode == 0) {
- grammarID = 1587;
- } else {
- errn = EXI_DEVIANT_SUPPORT_NOT_DEPLOYED; /* or also typecast and nillable */
- }
- }
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 1839:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorOrder), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SignalPulseDuration)] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gLFA_EVSEFinePositioningSetupParametersType->SensorOrder.arrayLen < v2gLFA_EVSEFinePositioningSetupParametersType_SensorOrder_ARRAY_SIZE) {
- /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(errn == 0) {
- if(eventCode == 0) {
- errn = decodeNBitUnsignedInteger(stream, 8, &(uint32));
- v2gLFA_EVSEFinePositioningSetupParametersType->SensorOrder.array[v2gLFA_EVSEFinePositioningSetupParametersType->SensorOrder.arrayLen] = (uint8_t)(uint32 + 0);
- v2gLFA_EVSEFinePositioningSetupParametersType->SensorOrder.arrayLen++;
- } else {
- /* Second level event (e.g., xsi:type, xsi:nil, ...) */
- errn = EXI_UNSUPPORTED_EVENT_CODE_CHARACTERISTICS;
- }
- }
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- if(errn == 0) {
- /* valid EE for simple element START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorOrder) ? */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(eventCode == 0) {
- grammarID = 1840;
- } else {
- errn = EXI_DEVIANT_SUPPORT_NOT_DEPLOYED; /* or also typecast and nillable */
- }
- }
- break;
- case 1:
- /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(errn == 0) {
- if(eventCode == 0) {
- errn = decodeNBitUnsignedInteger(stream, 8, &(uint32));
- v2gLFA_EVSEFinePositioningSetupParametersType->SignalPulseDuration = (uint8_t)(uint32 + 0);
- } 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({urn:iso:15118:2:2016:MsgDataTypes}SignalPulseDuration) ? */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(eventCode == 0) {
- grammarID = 1587;
- } else {
- errn = EXI_DEVIANT_SUPPORT_NOT_DEPLOYED; /* or also typecast and nillable */
- }
- }
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 1840:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SignalPulseDuration)] */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(errn == 0) {
- if(eventCode == 0) {
- errn = decodeNBitUnsignedInteger(stream, 8, &(uint32));
- v2gLFA_EVSEFinePositioningSetupParametersType->SignalPulseDuration = (uint8_t)(uint32 + 0);
- } 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({urn:iso:15118:2:2016:MsgDataTypes}SignalPulseDuration) ? */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(eventCode == 0) {
- grammarID = 1587;
- } else {
- errn = EXI_DEVIANT_SUPPORT_NOT_DEPLOYED; /* or also typecast and nillable */
- }
- }
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 1587:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SignalSeparationTime)] */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(errn == 0) {
- if(eventCode == 0) {
- errn = decodeNBitUnsignedInteger(stream, 8, &(uint32));
- v2gLFA_EVSEFinePositioningSetupParametersType->SignalSeparationTime = (uint8_t)(uint32 + 0);
- } 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({urn:iso:15118:2:2016:MsgDataTypes}SignalSeparationTime) ? */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(eventCode == 0) {
- grammarID = 1841;
- } else {
- errn = EXI_DEVIANT_SUPPORT_NOT_DEPLOYED; /* or also typecast and nillable */
- }
- }
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 1841:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}PackageSeparationTime)] */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(errn == 0) {
- if(eventCode == 0) {
- errn = decodeNBitUnsignedInteger(stream, 8, &(uint32));
- v2gLFA_EVSEFinePositioningSetupParametersType->PackageSeparationTime = (uint8_t)(uint32 + 0);
- } 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({urn:iso:15118:2:2016:MsgDataTypes}PackageSeparationTime) ? */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(eventCode == 0) {
- grammarID = 1842;
- } else {
- errn = EXI_DEVIANT_SUPPORT_NOT_DEPLOYED; /* or also typecast and nillable */
- }
- }
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 1842:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}AlignmentOffset)] */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- /* First(xsi:type)StartTag[CHARACTERS[UNSIGNED_INTEGER]] */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(errn == 0) {
- if(eventCode == 0) {
- errn = decodeUnsignedInteger16(stream, &v2gLFA_EVSEFinePositioningSetupParametersType->AlignmentOffset);
- } 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({urn:iso:15118:2:2016:MsgDataTypes}AlignmentOffset) ? */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(eventCode == 0) {
- grammarID = 1843;
- } else {
- errn = EXI_DEVIANT_SUPPORT_NOT_DEPLOYED; /* or also typecast and nillable */
- }
- }
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 1843:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SignalFrequency)] */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- /* First(xsi:type)StartTag[CHARACTERS[UNSIGNED_INTEGER]] */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(errn == 0) {
- if(eventCode == 0) {
- errn = decodeUnsignedInteger16(stream, &v2gLFA_EVSEFinePositioningSetupParametersType->SignalFrequency);
- } 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({urn:iso:15118:2:2016:MsgDataTypes}SignalFrequency) ? */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(eventCode == 0) {
- grammarID = 2;
- } else {
- errn = EXI_DEVIANT_SUPPORT_NOT_DEPLOYED; /* or also typecast and nillable */
- }
- }
- 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:2016:MsgDataTypes,MinimumPMaxRequestType', base type name='anyType', content type='ELEMENT', isAbstract='false', hasTypeId='false', final='0', block='0', particle='("urn:iso:15118:2:2016:MsgDataTypes":MinimumPMaxScheduleEntry{1-3})', derivedBy='RESTRICTION'. */
-static int decode_v2gMinimumPMaxRequestType(bitstream_t* stream, struct v2gMinimumPMaxRequestType* v2gMinimumPMaxRequestType) {
- int grammarID = 1844;
- int done = 0;
-
- init_v2gMinimumPMaxRequestType(v2gMinimumPMaxRequestType);
-
- while(!done) {
- switch(grammarID) {
- case 1844:
- /* FirstStartTag[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MinimumPMaxScheduleEntry)] */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gMinimumPMaxRequestType->MinimumPMaxScheduleEntry.arrayLen < v2gMinimumPMaxRequestType_MinimumPMaxScheduleEntry_ARRAY_SIZE) {
- errn = decode_v2gPMaxScheduleEntryType(stream, &v2gMinimumPMaxRequestType->MinimumPMaxScheduleEntry.array[v2gMinimumPMaxRequestType->MinimumPMaxScheduleEntry.arrayLen++]);
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- grammarID = 1845;
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 1845:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MinimumPMaxScheduleEntry), END_ELEMENT] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gMinimumPMaxRequestType->MinimumPMaxScheduleEntry.arrayLen < v2gMinimumPMaxRequestType_MinimumPMaxScheduleEntry_ARRAY_SIZE) {
- errn = decode_v2gPMaxScheduleEntryType(stream, &v2gMinimumPMaxRequestType->MinimumPMaxScheduleEntry.array[v2gMinimumPMaxRequestType->MinimumPMaxScheduleEntry.arrayLen++]);
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- grammarID = 1846;
- break;
- case 1:
- done = 1;
- grammarID = 3;
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 1846:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MinimumPMaxScheduleEntry), END_ELEMENT] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gMinimumPMaxRequestType->MinimumPMaxScheduleEntry.arrayLen < v2gMinimumPMaxRequestType_MinimumPMaxScheduleEntry_ARRAY_SIZE) {
- errn = decode_v2gPMaxScheduleEntryType(stream, &v2gMinimumPMaxRequestType->MinimumPMaxScheduleEntry.array[v2gMinimumPMaxRequestType->MinimumPMaxScheduleEntry.arrayLen++]);
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- grammarID = 2;
- 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='http://www.w3.org/2000/09/xmldsig#,CanonicalizationMethodType', base type name='anyType', content type='MIXED', isAbstract='false', hasTypeId='false', final='0', block='0', particle='((WC[##any]){0-UNBOUNDED})', derivedBy='RESTRICTION'. */
-static int decode_v2gCanonicalizationMethodType(bitstream_t* stream, struct v2gCanonicalizationMethodType* v2gCanonicalizationMethodType) {
- int grammarID = 1847;
- int done = 0;
-
- init_v2gCanonicalizationMethodType(v2gCanonicalizationMethodType);
-
- while(!done) {
- switch(grammarID) {
- case 1847:
- /* FirstStartTag[ATTRIBUTE[STRING](Algorithm)] */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- errn = decodeUnsignedInteger16(stream, &v2gCanonicalizationMethodType->Algorithm.charactersLen);
- if (errn == 0) {
- if (v2gCanonicalizationMethodType->Algorithm.charactersLen >= 2) {
- v2gCanonicalizationMethodType->Algorithm.charactersLen = (uint16_t)(v2gCanonicalizationMethodType->Algorithm.charactersLen - 2); /* string table miss */
- errn = decodeCharacters(stream, v2gCanonicalizationMethodType->Algorithm.charactersLen, v2gCanonicalizationMethodType->Algorithm.characters, v2gCanonicalizationMethodType_Algorithm_CHARACTERS_SIZE);
- } else {
- /* string table hit */
- errn = EXI_ERROR_STRINGVALUES_NOT_SUPPORTED;
- }
- }
- grammarID = 1848;
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 1848:
- /* StartTag[START_ELEMENT_GENERIC, END_ELEMENT, CHARACTERS_GENERIC[STRING]] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- errn = EXI_UNSUPPORTED_EVENT_CODE_CHARACTERISTICS;
- /* TODO unsupported event : START_ELEMENT_GENERIC */
- grammarID = 904;
- break;
- case 1:
- done = 1;
- grammarID = 3;
- break;
- case 2:
- errn = decodeUnsignedInteger16(stream, &v2gCanonicalizationMethodType->ANY.charactersLen);
- if (errn == 0) {
- if (v2gCanonicalizationMethodType->ANY.charactersLen >= 2) {
- v2gCanonicalizationMethodType->ANY.charactersLen = (uint16_t)(v2gCanonicalizationMethodType->ANY.charactersLen - 2); /* string table miss */
- errn = decodeCharacters(stream, v2gCanonicalizationMethodType->ANY.charactersLen, v2gCanonicalizationMethodType->ANY.characters, v2gCanonicalizationMethodType_ANY_CHARACTERS_SIZE);
- } else {
- /* string table hit */
- errn = EXI_ERROR_STRINGVALUES_NOT_SUPPORTED;
- }
- }
- v2gCanonicalizationMethodType->ANY_isUsed = 1u;
- grammarID = 904;
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 904:
- /* Element[START_ELEMENT_GENERIC, END_ELEMENT, CHARACTERS_GENERIC[STRING]] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- errn = EXI_UNSUPPORTED_EVENT_CODE_CHARACTERISTICS;
- /* TODO unsupported event : START_ELEMENT_GENERIC */
- grammarID = 904;
- break;
- case 1:
- done = 1;
- grammarID = 3;
- break;
- case 2:
- errn = decodeUnsignedInteger16(stream, &v2gCanonicalizationMethodType->ANY.charactersLen);
- if (errn == 0) {
- if (v2gCanonicalizationMethodType->ANY.charactersLen >= 2) {
- v2gCanonicalizationMethodType->ANY.charactersLen = (uint16_t)(v2gCanonicalizationMethodType->ANY.charactersLen - 2); /* string table miss */
- errn = decodeCharacters(stream, v2gCanonicalizationMethodType->ANY.charactersLen, v2gCanonicalizationMethodType->ANY.characters, v2gCanonicalizationMethodType_ANY_CHARACTERS_SIZE);
- } else {
- /* string table hit */
- errn = EXI_ERROR_STRINGVALUES_NOT_SUPPORTED;
- }
- }
- v2gCanonicalizationMethodType->ANY_isUsed = 1u;
- grammarID = 904;
- 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:2016:MsgBody,CertificateInstallationReqType', base type name='BodyBaseType', content type='ELEMENT', isAbstract='false', hasTypeId='false', final='0', block='0', particle='("urn:iso:15118:2:2016:MsgBody":OEMProvisioningCert,"urn:iso:15118:2:2016:MsgBody":ListOfRootCertificateIDs)', derivedBy='EXTENSION'. */
-static int decode_v2gCertificateInstallationReqType(bitstream_t* stream, struct v2gCertificateInstallationReqType* v2gCertificateInstallationReqType) {
- int grammarID = 1849;
- int done = 0;
-
- init_v2gCertificateInstallationReqType(v2gCertificateInstallationReqType);
-
- while(!done) {
- switch(grammarID) {
- case 1849:
- /* FirstStartTag[ATTRIBUTE[STRING]({urn:iso:15118:2:2016:MsgBody}Id)] */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- errn = decodeUnsignedInteger16(stream, &v2gCertificateInstallationReqType->Id.charactersLen);
- if (errn == 0) {
- if (v2gCertificateInstallationReqType->Id.charactersLen >= 2) {
- v2gCertificateInstallationReqType->Id.charactersLen = (uint16_t)(v2gCertificateInstallationReqType->Id.charactersLen - 2); /* string table miss */
- errn = decodeCharacters(stream, v2gCertificateInstallationReqType->Id.charactersLen, v2gCertificateInstallationReqType->Id.characters, v2gCertificateInstallationReqType_Id_CHARACTERS_SIZE);
- } else {
- /* string table hit */
- errn = EXI_ERROR_STRINGVALUES_NOT_SUPPORTED;
- }
- }
- grammarID = 1850;
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 1850:
- /* StartTag[START_ELEMENT({urn:iso:15118:2:2016:MsgBody}OEMProvisioningCert)] */
+ case 12:
+ /* FirstStartTag[START_ELEMENT({http://www.w3.org/2000/09/xmldsig#}Modulus)] */
errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
if (errn == 0) {
switch(eventCode) {
@@ -72982,12 +934,12 @@ static int decode_v2gCertificateInstallationReqType(bitstream_t* stream, struct
errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
if(errn == 0) {
if(eventCode == 0) {
- errn = decodeUnsignedInteger16(stream, &v2gCertificateInstallationReqType->OEMProvisioningCert.bytesLen);
+ errn = decodeUnsignedInteger16(stream, &iso2RSAKeyValueType->Modulus.bytesLen);
if (errn == 0) {
- errn = (v2gCertificateInstallationReqType->OEMProvisioningCert.bytesLen) <= v2gCertificateInstallationReqType_OEMProvisioningCert_BYTES_SIZE ? 0 : EXI_ERROR_OUT_OF_BYTE_BUFFER;
+ errn = (iso2RSAKeyValueType->Modulus.bytesLen) <= iso2RSAKeyValueType_Modulus_BYTES_SIZE ? 0 : EXI_ERROR_OUT_OF_BYTE_BUFFER;
}
if (errn == 0) {
- errn = decodeBytes(stream, v2gCertificateInstallationReqType->OEMProvisioningCert.bytesLen, v2gCertificateInstallationReqType->OEMProvisioningCert.bytes);
+ errn = decodeBytes(stream, iso2RSAKeyValueType->Modulus.bytesLen, iso2RSAKeyValueType->Modulus.bytes);
}
} else {
/* Second level event (e.g., xsi:type, xsi:nil, ...) */
@@ -72995,10 +947,10 @@ static int decode_v2gCertificateInstallationReqType(bitstream_t* stream, struct
}
}
if(errn == 0) {
- /* valid EE for simple element START_ELEMENT({urn:iso:15118:2:2016:MsgBody}OEMProvisioningCert) ? */
+ /* valid EE for simple element START_ELEMENT({http://www.w3.org/2000/09/xmldsig#}Modulus) ? */
errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
if(eventCode == 0) {
- grammarID = 1851;
+ grammarID = 13;
} else {
errn = EXI_DEVIANT_SUPPORT_NOT_DEPLOYED; /* or also typecast and nillable */
}
@@ -73010,22148 +962,8 @@ static int decode_v2gCertificateInstallationReqType(bitstream_t* stream, struct
}
}
break;
- case 1851:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgBody}ListOfRootCertificateIDs)] */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- errn = decode_v2gListOfRootCertificateIDsType(stream, &v2gCertificateInstallationReqType->ListOfRootCertificateIDs);
- grammarID = 2;
- 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:2016:MsgBody,VehicleCheckInReqType', base type name='BodyBaseType', content type='ELEMENT', isAbstract='false', hasTypeId='false', final='0', block='0', particle='("urn:iso:15118:2:2016:MsgBody":EVCheckInStatus,"urn:iso:15118:2:2016:MsgBody":ParkingMethod{0-1})', derivedBy='EXTENSION'. */
-static int decode_v2gVehicleCheckInReqType(bitstream_t* stream, struct v2gVehicleCheckInReqType* v2gVehicleCheckInReqType) {
- int grammarID = 1852;
- int done = 0;
-
- init_v2gVehicleCheckInReqType(v2gVehicleCheckInReqType);
-
- while(!done) {
- switch(grammarID) {
- case 1852:
- /* FirstStartTag[START_ELEMENT({urn:iso:15118:2:2016:MsgBody}EVCheckInStatus)] */
- 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);
- v2gVehicleCheckInReqType->EVCheckInStatus = (v2gEVCheckInStatusType) 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({urn:iso:15118:2:2016:MsgBody}EVCheckInStatus) ? */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(eventCode == 0) {
- grammarID = 1853;
- } else {
- errn = EXI_DEVIANT_SUPPORT_NOT_DEPLOYED; /* or also typecast and nillable */
- }
- }
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 1853:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgBody}ParkingMethod), 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, &uint32);
- v2gVehicleCheckInReqType->ParkingMethod = (v2gparkingMethodType) uint32;
- v2gVehicleCheckInReqType->ParkingMethod_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({urn:iso:15118:2:2016:MsgBody}ParkingMethod) ? */
- 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:2016:MsgDataTypes,MV_EVSEFinePositioningParametersType', base type name='EVSEFinePositioningParametersType', content type='ELEMENT', isAbstract='false', hasTypeId='false', final='0', block='0', particle='("urn:iso:15118:2:2016:MsgDataTypes":MagneticVectorList)', derivedBy='EXTENSION'. */
-static int decode_v2gMV_EVSEFinePositioningParametersType(bitstream_t* stream, struct v2gMV_EVSEFinePositioningParametersType* v2gMV_EVSEFinePositioningParametersType) {
- int grammarID = 1854;
- int done = 0;
-
- init_v2gMV_EVSEFinePositioningParametersType(v2gMV_EVSEFinePositioningParametersType);
-
- while(!done) {
- switch(grammarID) {
- case 1854:
- /* FirstStartTag[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MagneticVectorList)] */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- errn = decode_v2gMagneticVectorListType(stream, &v2gMV_EVSEFinePositioningParametersType->MagneticVectorList);
- grammarID = 2;
- 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:2016:MsgBody,PowerDeliveryResType', base type name='V2GResponseType', content type='ELEMENT', isAbstract='false', hasTypeId='false', final='0', block='0', particle='(("urn:iso:15118:2:2016:MsgBody":ResponseCode,"urn:iso:15118:2:2016:MsgBody":EVSEStatus{0-1}),("urn:iso:15118:2:2016:MsgBody":EVSEProcessing))', derivedBy='EXTENSION'. */
-static int decode_v2gPowerDeliveryResType(bitstream_t* stream, struct v2gPowerDeliveryResType* v2gPowerDeliveryResType) {
- int grammarID = 583;
- int done = 0;
-
- init_v2gPowerDeliveryResType(v2gPowerDeliveryResType);
-
- while(!done) {
- switch(grammarID) {
- case 583:
- /* FirstStartTag[START_ELEMENT({urn:iso:15118:2:2016:MsgBody}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, 5, &uint32);
- v2gPowerDeliveryResType->ResponseCode = (v2gresponseCodeType) 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({urn:iso:15118:2:2016:MsgBody}ResponseCode) ? */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(eventCode == 0) {
- grammarID = 584;
- } else {
- errn = EXI_DEVIANT_SUPPORT_NOT_DEPLOYED; /* or also typecast and nillable */
- }
- }
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 584:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgBody}EVSEStatus), START_ELEMENT({urn:iso:15118:2:2016:MsgBody}EVSEProcessing)] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- errn = decode_v2gEVSEStatusType(stream, &v2gPowerDeliveryResType->EVSEStatus);
- v2gPowerDeliveryResType->EVSEStatus_isUsed = 1u;
- grammarID = 585;
- break;
- case 1:
- /* FirstStartTag[CHARACTERS[ENUMERATION]] */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(errn == 0) {
- if(eventCode == 0) {
- errn = decodeNBitUnsignedInteger(stream, 2, &uint32);
- v2gPowerDeliveryResType->EVSEProcessing = (v2gEVSEProcessingType) 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({urn:iso:15118:2:2016:MsgBody}EVSEProcessing) ? */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(eventCode == 0) {
- grammarID = 2;
- } else {
- errn = EXI_DEVIANT_SUPPORT_NOT_DEPLOYED; /* or also typecast and nillable */
- }
- }
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 585:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgBody}EVSEProcessing)] */
- 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);
- v2gPowerDeliveryResType->EVSEProcessing = (v2gEVSEProcessingType) 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({urn:iso:15118:2:2016:MsgBody}EVSEProcessing) ? */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(eventCode == 0) {
- grammarID = 2;
- } else {
- errn = EXI_DEVIANT_SUPPORT_NOT_DEPLOYED; /* or also typecast and nillable */
- }
- }
- 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:2016:MsgDataTypes,EVSEEnergyTransferParameterType', base type name='anyType', content type='EMPTY', isAbstract='true', hasTypeId='false', final='0', block='0', derivedBy='RESTRICTION'. */
-static int decode_v2gEVSEEnergyTransferParameterType(bitstream_t* stream, struct v2gEVSEEnergyTransferParameterType* v2gEVSEEnergyTransferParameterType) {
- int grammarID = 4;
- int done = 0;
-
- init_v2gEVSEEnergyTransferParameterType(v2gEVSEEnergyTransferParameterType);
-
- while(!done) {
- switch(grammarID) {
- case 4:
- /* FirstStartTag[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:2016:MsgDataTypes,DiffieHellmanPublickeyType', base type name='dHpublickeyType', content type='SIMPLE', isAbstract='false', hasTypeId='false', final='0', block='0', derivedBy='EXTENSION'. */
-static int decode_v2gDiffieHellmanPublickeyType(bitstream_t* stream, struct v2gDiffieHellmanPublickeyType* v2gDiffieHellmanPublickeyType) {
- int grammarID = 1855;
- int done = 0;
-
- init_v2gDiffieHellmanPublickeyType(v2gDiffieHellmanPublickeyType);
-
- while(!done) {
- switch(grammarID) {
- case 1855:
- /* FirstStartTag[ATTRIBUTE[STRING]({urn:iso:15118:2:2016:MsgDataTypes}Id)] */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- errn = decodeUnsignedInteger16(stream, &v2gDiffieHellmanPublickeyType->Id.charactersLen);
- if (errn == 0) {
- if (v2gDiffieHellmanPublickeyType->Id.charactersLen >= 2) {
- v2gDiffieHellmanPublickeyType->Id.charactersLen = (uint16_t)(v2gDiffieHellmanPublickeyType->Id.charactersLen - 2); /* string table miss */
- errn = decodeCharacters(stream, v2gDiffieHellmanPublickeyType->Id.charactersLen, v2gDiffieHellmanPublickeyType->Id.characters, v2gDiffieHellmanPublickeyType_Id_CHARACTERS_SIZE);
- } else {
- /* string table hit */
- errn = EXI_ERROR_STRINGVALUES_NOT_SUPPORTED;
- }
- }
- grammarID = 1;
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 1:
- /* StartTag[CHARACTERS[BINARY_BASE64]] */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- errn = decodeUnsignedInteger16(stream, &v2gDiffieHellmanPublickeyType->CONTENT.bytesLen);
- if (errn == 0) {
- errn = (v2gDiffieHellmanPublickeyType->CONTENT.bytesLen) <= v2gDiffieHellmanPublickeyType_CONTENT_BYTES_SIZE ? 0 : EXI_ERROR_OUT_OF_BYTE_BUFFER;
- }
- if (errn == 0) {
- errn = decodeBytes(stream, v2gDiffieHellmanPublickeyType->CONTENT.bytesLen, v2gDiffieHellmanPublickeyType->CONTENT.bytes);
- }
- grammarID = 2;
- 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:2016:MsgBody,V2GResponseType', base type name='BodyBaseType', content type='ELEMENT', isAbstract='true', hasTypeId='false', final='0', block='0', particle='("urn:iso:15118:2:2016:MsgBody":ResponseCode,"urn:iso:15118:2:2016:MsgBody":EVSEStatus{0-1})', derivedBy='EXTENSION'. */
-static int decode_v2gV2GResponseType(bitstream_t* stream, struct v2gV2GResponseType* v2gV2GResponseType) {
- int grammarID = 1856;
- int done = 0;
-
- init_v2gV2GResponseType(v2gV2GResponseType);
-
- while(!done) {
- switch(grammarID) {
- case 1856:
- /* FirstStartTag[START_ELEMENT({urn:iso:15118:2:2016:MsgBody}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, 5, &uint32);
- v2gV2GResponseType->ResponseCode = (v2gresponseCodeType) 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({urn:iso:15118:2:2016:MsgBody}ResponseCode) ? */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(eventCode == 0) {
- grammarID = 1857;
- } else {
- errn = EXI_DEVIANT_SUPPORT_NOT_DEPLOYED; /* or also typecast and nillable */
- }
- }
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 1857:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgBody}EVSEStatus), END_ELEMENT] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- errn = decode_v2gEVSEStatusType(stream, &v2gV2GResponseType->EVSEStatus);
- v2gV2GResponseType->EVSEStatus_isUsed = 1u;
- grammarID = 2;
- 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:2016:MsgBody,CableCheckResType', base type name='V2GResponseType', content type='ELEMENT', isAbstract='false', hasTypeId='false', final='0', block='0', particle='(("urn:iso:15118:2:2016:MsgBody":ResponseCode,"urn:iso:15118:2:2016:MsgBody":EVSEStatus{0-1}),("urn:iso:15118:2:2016:MsgBody":EVSEProcessing))', derivedBy='EXTENSION'. */
-static int decode_v2gCableCheckResType(bitstream_t* stream, struct v2gCableCheckResType* v2gCableCheckResType) {
- int grammarID = 583;
- int done = 0;
-
- init_v2gCableCheckResType(v2gCableCheckResType);
-
- while(!done) {
- switch(grammarID) {
- case 583:
- /* FirstStartTag[START_ELEMENT({urn:iso:15118:2:2016:MsgBody}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, 5, &uint32);
- v2gCableCheckResType->ResponseCode = (v2gresponseCodeType) 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({urn:iso:15118:2:2016:MsgBody}ResponseCode) ? */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(eventCode == 0) {
- grammarID = 584;
- } else {
- errn = EXI_DEVIANT_SUPPORT_NOT_DEPLOYED; /* or also typecast and nillable */
- }
- }
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 584:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgBody}EVSEStatus), START_ELEMENT({urn:iso:15118:2:2016:MsgBody}EVSEProcessing)] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- errn = decode_v2gEVSEStatusType(stream, &v2gCableCheckResType->EVSEStatus);
- v2gCableCheckResType->EVSEStatus_isUsed = 1u;
- grammarID = 585;
- break;
- case 1:
- /* FirstStartTag[CHARACTERS[ENUMERATION]] */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(errn == 0) {
- if(eventCode == 0) {
- errn = decodeNBitUnsignedInteger(stream, 2, &uint32);
- v2gCableCheckResType->EVSEProcessing = (v2gEVSEProcessingType) 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({urn:iso:15118:2:2016:MsgBody}EVSEProcessing) ? */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(eventCode == 0) {
- grammarID = 2;
- } else {
- errn = EXI_DEVIANT_SUPPORT_NOT_DEPLOYED; /* or also typecast and nillable */
- }
- }
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 585:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgBody}EVSEProcessing)] */
- 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);
- v2gCableCheckResType->EVSEProcessing = (v2gEVSEProcessingType) 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({urn:iso:15118:2:2016:MsgBody}EVSEProcessing) ? */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(eventCode == 0) {
- grammarID = 2;
- } else {
- errn = EXI_DEVIANT_SUPPORT_NOT_DEPLOYED; /* or also typecast and nillable */
- }
- }
- 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:2016:MsgDataTypes,SalesTariffEntryType', base type name='EntryType', content type='ELEMENT', isAbstract='false', hasTypeId='false', final='0', block='0', particle='(("urn:iso:15118:2:2016:MsgDataTypes":RelativeTimeInterval),("urn:iso:15118:2:2016:MsgDataTypes":EPriceLevel{0-1},"urn:iso:15118:2:2016:MsgDataTypes":ConsumptionCost{0-3}))', derivedBy='EXTENSION'. */
-static int decode_v2gSalesTariffEntryType(bitstream_t* stream, struct v2gSalesTariffEntryType* v2gSalesTariffEntryType) {
- int grammarID = 1858;
- int done = 0;
-
- init_v2gSalesTariffEntryType(v2gSalesTariffEntryType);
-
- while(!done) {
- switch(grammarID) {
- case 1858:
- /* FirstStartTag[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}RelativeTimeInterval)] */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- errn = decode_v2gRelativeTimeIntervalType(stream, &v2gSalesTariffEntryType->RelativeTimeInterval);
- grammarID = 1859;
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 1859:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}EPriceLevel), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}ConsumptionCost), END_ELEMENT] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(errn == 0) {
- if(eventCode == 0) {
- errn = decodeNBitUnsignedInteger(stream, 8, &(uint32));
- v2gSalesTariffEntryType->EPriceLevel = (uint8_t)(uint32 + 0);
- v2gSalesTariffEntryType->EPriceLevel_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({urn:iso:15118:2:2016:MsgDataTypes}EPriceLevel) ? */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(eventCode == 0) {
- grammarID = 1860;
- } else {
- errn = EXI_DEVIANT_SUPPORT_NOT_DEPLOYED; /* or also typecast and nillable */
- }
- }
- break;
- case 1:
- if (v2gSalesTariffEntryType->ConsumptionCost.arrayLen < v2gSalesTariffEntryType_ConsumptionCost_ARRAY_SIZE) {
- errn = decode_v2gConsumptionCostType(stream, &v2gSalesTariffEntryType->ConsumptionCost.array[v2gSalesTariffEntryType->ConsumptionCost.arrayLen++]);
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- grammarID = 1861;
- break;
- case 2:
- done = 1;
- grammarID = 3;
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 1860:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}ConsumptionCost), END_ELEMENT] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gSalesTariffEntryType->ConsumptionCost.arrayLen < v2gSalesTariffEntryType_ConsumptionCost_ARRAY_SIZE) {
- errn = decode_v2gConsumptionCostType(stream, &v2gSalesTariffEntryType->ConsumptionCost.array[v2gSalesTariffEntryType->ConsumptionCost.arrayLen++]);
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- grammarID = 1861;
- break;
- case 1:
- done = 1;
- grammarID = 3;
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 1861:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}ConsumptionCost), END_ELEMENT] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gSalesTariffEntryType->ConsumptionCost.arrayLen < v2gSalesTariffEntryType_ConsumptionCost_ARRAY_SIZE) {
- errn = decode_v2gConsumptionCostType(stream, &v2gSalesTariffEntryType->ConsumptionCost.array[v2gSalesTariffEntryType->ConsumptionCost.arrayLen++]);
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- grammarID = 1862;
- break;
- case 1:
- done = 1;
- grammarID = 3;
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 1862:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}ConsumptionCost), END_ELEMENT] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gSalesTariffEntryType->ConsumptionCost.arrayLen < v2gSalesTariffEntryType_ConsumptionCost_ARRAY_SIZE) {
- errn = decode_v2gConsumptionCostType(stream, &v2gSalesTariffEntryType->ConsumptionCost.array[v2gSalesTariffEntryType->ConsumptionCost.arrayLen++]);
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- grammarID = 2;
- 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:2016:MsgDataTypes,ChargingProfileType', base type name='anyType', content type='ELEMENT', isAbstract='false', hasTypeId='false', final='0', block='0', particle='("urn:iso:15118:2:2016:MsgDataTypes":ProfileEntry{1-UNBOUNDED})', derivedBy='RESTRICTION'. */
-static int decode_v2gChargingProfileType(bitstream_t* stream, struct v2gChargingProfileType* v2gChargingProfileType) {
- int grammarID = 1863;
- int done = 0;
-
- init_v2gChargingProfileType(v2gChargingProfileType);
-
- while(!done) {
- switch(grammarID) {
- case 1863:
- /* FirstStartTag[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}ProfileEntry)] */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gChargingProfileType->ProfileEntry.arrayLen < v2gChargingProfileType_ProfileEntry_ARRAY_SIZE) {
- errn = decode_v2gPMaxScheduleEntryType(stream, &v2gChargingProfileType->ProfileEntry.array[v2gChargingProfileType->ProfileEntry.arrayLen++]);
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- grammarID = 1864;
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 1864:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}ProfileEntry), END_ELEMENT] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gChargingProfileType->ProfileEntry.arrayLen < v2gChargingProfileType_ProfileEntry_ARRAY_SIZE) {
- errn = decode_v2gPMaxScheduleEntryType(stream, &v2gChargingProfileType->ProfileEntry.array[v2gChargingProfileType->ProfileEntry.arrayLen++]);
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- grammarID = 1864;
- break;
- case 1:
- 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:2016:MsgBody,ServiceDiscoveryResType', base type name='V2GResponseType', content type='ELEMENT', isAbstract='false', hasTypeId='false', final='0', block='0', particle='(("urn:iso:15118:2:2016:MsgBody":ResponseCode,"urn:iso:15118:2:2016:MsgBody":EVSEStatus{0-1}),("urn:iso:15118:2:2016:MsgBody":PaymentOptionList,"urn:iso:15118:2:2016:MsgBody":EnergyTransferServiceList,"urn:iso:15118:2:2016:MsgBody":VASList{0-1}))', derivedBy='EXTENSION'. */
-static int decode_v2gServiceDiscoveryResType(bitstream_t* stream, struct v2gServiceDiscoveryResType* v2gServiceDiscoveryResType) {
- int grammarID = 1865;
- int done = 0;
-
- init_v2gServiceDiscoveryResType(v2gServiceDiscoveryResType);
-
- while(!done) {
- switch(grammarID) {
- case 1865:
- /* FirstStartTag[START_ELEMENT({urn:iso:15118:2:2016:MsgBody}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, 5, &uint32);
- v2gServiceDiscoveryResType->ResponseCode = (v2gresponseCodeType) 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({urn:iso:15118:2:2016:MsgBody}ResponseCode) ? */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(eventCode == 0) {
- grammarID = 1866;
- } else {
- errn = EXI_DEVIANT_SUPPORT_NOT_DEPLOYED; /* or also typecast and nillable */
- }
- }
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 1866:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgBody}EVSEStatus), START_ELEMENT({urn:iso:15118:2:2016:MsgBody}PaymentOptionList)] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- errn = decode_v2gEVSEStatusType(stream, &v2gServiceDiscoveryResType->EVSEStatus);
- v2gServiceDiscoveryResType->EVSEStatus_isUsed = 1u;
- grammarID = 1867;
- break;
- case 1:
- errn = decode_v2gPaymentOptionListType(stream, &v2gServiceDiscoveryResType->PaymentOptionList);
- grammarID = 1868;
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 1867:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgBody}PaymentOptionList)] */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- errn = decode_v2gPaymentOptionListType(stream, &v2gServiceDiscoveryResType->PaymentOptionList);
- grammarID = 1868;
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 1868:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgBody}EnergyTransferServiceList)] */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- errn = decode_v2gServiceListType(stream, &v2gServiceDiscoveryResType->EnergyTransferServiceList);
- grammarID = 1869;
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 1869:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgBody}VASList), END_ELEMENT] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- errn = decode_v2gServiceListType(stream, &v2gServiceDiscoveryResType->VASList);
- v2gServiceDiscoveryResType->VASList_isUsed = 1u;
- grammarID = 2;
- 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:2016:MsgDataTypes,PMaxScheduleType', base type name='anyType', content type='ELEMENT', isAbstract='false', hasTypeId='false', final='0', block='0', particle='("urn:iso:15118:2:2016:MsgDataTypes":PMaxScheduleEntry{1-UNBOUNDED})', derivedBy='RESTRICTION'. */
-static int decode_v2gPMaxScheduleType(bitstream_t* stream, struct v2gPMaxScheduleType* v2gPMaxScheduleType) {
- int grammarID = 1870;
- int done = 0;
-
- init_v2gPMaxScheduleType(v2gPMaxScheduleType);
-
- while(!done) {
- switch(grammarID) {
- case 1870:
- /* FirstStartTag[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}PMaxScheduleEntry)] */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gPMaxScheduleType->PMaxScheduleEntry.arrayLen < v2gPMaxScheduleType_PMaxScheduleEntry_ARRAY_SIZE) {
- errn = decode_v2gPMaxScheduleEntryType(stream, &v2gPMaxScheduleType->PMaxScheduleEntry.array[v2gPMaxScheduleType->PMaxScheduleEntry.arrayLen++]);
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- grammarID = 1871;
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 1871:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}PMaxScheduleEntry), END_ELEMENT] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gPMaxScheduleType->PMaxScheduleEntry.arrayLen < v2gPMaxScheduleType_PMaxScheduleEntry_ARRAY_SIZE) {
- errn = decode_v2gPMaxScheduleEntryType(stream, &v2gPMaxScheduleType->PMaxScheduleEntry.array[v2gPMaxScheduleType->PMaxScheduleEntry.arrayLen++]);
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- grammarID = 1871;
- break;
- case 1:
- 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:2016:MsgDataTypes,SensorPackageType', base type name='anyType', content type='ELEMENT', isAbstract='false', hasTypeId='false', final='0', block='0', particle='("urn:iso:15118:2:2016:MsgDataTypes":PackageIndex,"urn:iso:15118:2:2016:MsgDataTypes":SensorMeasurements{1-255})', derivedBy='RESTRICTION'. */
-static int decode_v2gSensorPackageType(bitstream_t* stream, struct v2gSensorPackageType* v2gSensorPackageType) {
- int grammarID = 1872;
- int done = 0;
-
- init_v2gSensorPackageType(v2gSensorPackageType);
-
- while(!done) {
- switch(grammarID) {
- case 1872:
- /* FirstStartTag[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}PackageIndex)] */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- /* First(xsi:type)StartTag[CHARACTERS[UNSIGNED_INTEGER]] */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(errn == 0) {
- if(eventCode == 0) {
- errn = decodeUnsignedInteger32(stream, &v2gSensorPackageType->PackageIndex);
- } 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({urn:iso:15118:2:2016:MsgDataTypes}PackageIndex) ? */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(eventCode == 0) {
- grammarID = 1873;
- } else {
- errn = EXI_DEVIANT_SUPPORT_NOT_DEPLOYED; /* or also typecast and nillable */
- }
- }
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 1873:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorMeasurements)] */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gSensorPackageType->SensorMeasurements.arrayLen < v2gSensorPackageType_SensorMeasurements_ARRAY_SIZE) {
- errn = decode_v2gSensorMeasurementsType(stream, &v2gSensorPackageType->SensorMeasurements.array[v2gSensorPackageType->SensorMeasurements.arrayLen++]);
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- grammarID = 1874;
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 1874:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorMeasurements), END_ELEMENT] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gSensorPackageType->SensorMeasurements.arrayLen < v2gSensorPackageType_SensorMeasurements_ARRAY_SIZE) {
- errn = decode_v2gSensorMeasurementsType(stream, &v2gSensorPackageType->SensorMeasurements.array[v2gSensorPackageType->SensorMeasurements.arrayLen++]);
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- grammarID = 1875;
- break;
- case 1:
- done = 1;
- grammarID = 3;
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 1875:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorMeasurements), END_ELEMENT] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gSensorPackageType->SensorMeasurements.arrayLen < v2gSensorPackageType_SensorMeasurements_ARRAY_SIZE) {
- errn = decode_v2gSensorMeasurementsType(stream, &v2gSensorPackageType->SensorMeasurements.array[v2gSensorPackageType->SensorMeasurements.arrayLen++]);
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- grammarID = 1876;
- break;
- case 1:
- done = 1;
- grammarID = 3;
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 1876:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorMeasurements), END_ELEMENT] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gSensorPackageType->SensorMeasurements.arrayLen < v2gSensorPackageType_SensorMeasurements_ARRAY_SIZE) {
- errn = decode_v2gSensorMeasurementsType(stream, &v2gSensorPackageType->SensorMeasurements.array[v2gSensorPackageType->SensorMeasurements.arrayLen++]);
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- grammarID = 1877;
- break;
- case 1:
- done = 1;
- grammarID = 3;
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 1877:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorMeasurements), END_ELEMENT] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gSensorPackageType->SensorMeasurements.arrayLen < v2gSensorPackageType_SensorMeasurements_ARRAY_SIZE) {
- errn = decode_v2gSensorMeasurementsType(stream, &v2gSensorPackageType->SensorMeasurements.array[v2gSensorPackageType->SensorMeasurements.arrayLen++]);
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- grammarID = 1878;
- break;
- case 1:
- done = 1;
- grammarID = 3;
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 1878:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorMeasurements), END_ELEMENT] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gSensorPackageType->SensorMeasurements.arrayLen < v2gSensorPackageType_SensorMeasurements_ARRAY_SIZE) {
- errn = decode_v2gSensorMeasurementsType(stream, &v2gSensorPackageType->SensorMeasurements.array[v2gSensorPackageType->SensorMeasurements.arrayLen++]);
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- grammarID = 1879;
- break;
- case 1:
- done = 1;
- grammarID = 3;
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 1879:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorMeasurements), END_ELEMENT] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gSensorPackageType->SensorMeasurements.arrayLen < v2gSensorPackageType_SensorMeasurements_ARRAY_SIZE) {
- errn = decode_v2gSensorMeasurementsType(stream, &v2gSensorPackageType->SensorMeasurements.array[v2gSensorPackageType->SensorMeasurements.arrayLen++]);
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- grammarID = 1880;
- break;
- case 1:
- done = 1;
- grammarID = 3;
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 1880:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorMeasurements), END_ELEMENT] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gSensorPackageType->SensorMeasurements.arrayLen < v2gSensorPackageType_SensorMeasurements_ARRAY_SIZE) {
- errn = decode_v2gSensorMeasurementsType(stream, &v2gSensorPackageType->SensorMeasurements.array[v2gSensorPackageType->SensorMeasurements.arrayLen++]);
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- grammarID = 1881;
- break;
- case 1:
- done = 1;
- grammarID = 3;
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 1881:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorMeasurements), END_ELEMENT] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gSensorPackageType->SensorMeasurements.arrayLen < v2gSensorPackageType_SensorMeasurements_ARRAY_SIZE) {
- errn = decode_v2gSensorMeasurementsType(stream, &v2gSensorPackageType->SensorMeasurements.array[v2gSensorPackageType->SensorMeasurements.arrayLen++]);
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- grammarID = 1882;
- break;
- case 1:
- done = 1;
- grammarID = 3;
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 1882:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorMeasurements), END_ELEMENT] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gSensorPackageType->SensorMeasurements.arrayLen < v2gSensorPackageType_SensorMeasurements_ARRAY_SIZE) {
- errn = decode_v2gSensorMeasurementsType(stream, &v2gSensorPackageType->SensorMeasurements.array[v2gSensorPackageType->SensorMeasurements.arrayLen++]);
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- grammarID = 1883;
- break;
- case 1:
- done = 1;
- grammarID = 3;
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 1883:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorMeasurements), END_ELEMENT] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gSensorPackageType->SensorMeasurements.arrayLen < v2gSensorPackageType_SensorMeasurements_ARRAY_SIZE) {
- errn = decode_v2gSensorMeasurementsType(stream, &v2gSensorPackageType->SensorMeasurements.array[v2gSensorPackageType->SensorMeasurements.arrayLen++]);
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- grammarID = 1884;
- break;
- case 1:
- done = 1;
- grammarID = 3;
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 1884:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorMeasurements), END_ELEMENT] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gSensorPackageType->SensorMeasurements.arrayLen < v2gSensorPackageType_SensorMeasurements_ARRAY_SIZE) {
- errn = decode_v2gSensorMeasurementsType(stream, &v2gSensorPackageType->SensorMeasurements.array[v2gSensorPackageType->SensorMeasurements.arrayLen++]);
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- grammarID = 1885;
- break;
- case 1:
- done = 1;
- grammarID = 3;
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 1885:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorMeasurements), END_ELEMENT] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gSensorPackageType->SensorMeasurements.arrayLen < v2gSensorPackageType_SensorMeasurements_ARRAY_SIZE) {
- errn = decode_v2gSensorMeasurementsType(stream, &v2gSensorPackageType->SensorMeasurements.array[v2gSensorPackageType->SensorMeasurements.arrayLen++]);
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- grammarID = 1886;
- break;
- case 1:
- done = 1;
- grammarID = 3;
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 1886:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorMeasurements), END_ELEMENT] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gSensorPackageType->SensorMeasurements.arrayLen < v2gSensorPackageType_SensorMeasurements_ARRAY_SIZE) {
- errn = decode_v2gSensorMeasurementsType(stream, &v2gSensorPackageType->SensorMeasurements.array[v2gSensorPackageType->SensorMeasurements.arrayLen++]);
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- grammarID = 1887;
- break;
- case 1:
- done = 1;
- grammarID = 3;
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 1887:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorMeasurements), END_ELEMENT] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gSensorPackageType->SensorMeasurements.arrayLen < v2gSensorPackageType_SensorMeasurements_ARRAY_SIZE) {
- errn = decode_v2gSensorMeasurementsType(stream, &v2gSensorPackageType->SensorMeasurements.array[v2gSensorPackageType->SensorMeasurements.arrayLen++]);
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- grammarID = 1888;
- break;
- case 1:
- done = 1;
- grammarID = 3;
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 1888:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorMeasurements), END_ELEMENT] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gSensorPackageType->SensorMeasurements.arrayLen < v2gSensorPackageType_SensorMeasurements_ARRAY_SIZE) {
- errn = decode_v2gSensorMeasurementsType(stream, &v2gSensorPackageType->SensorMeasurements.array[v2gSensorPackageType->SensorMeasurements.arrayLen++]);
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- grammarID = 1889;
- break;
- case 1:
- done = 1;
- grammarID = 3;
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 1889:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorMeasurements), END_ELEMENT] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gSensorPackageType->SensorMeasurements.arrayLen < v2gSensorPackageType_SensorMeasurements_ARRAY_SIZE) {
- errn = decode_v2gSensorMeasurementsType(stream, &v2gSensorPackageType->SensorMeasurements.array[v2gSensorPackageType->SensorMeasurements.arrayLen++]);
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- grammarID = 1890;
- break;
- case 1:
- done = 1;
- grammarID = 3;
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 1890:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorMeasurements), END_ELEMENT] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gSensorPackageType->SensorMeasurements.arrayLen < v2gSensorPackageType_SensorMeasurements_ARRAY_SIZE) {
- errn = decode_v2gSensorMeasurementsType(stream, &v2gSensorPackageType->SensorMeasurements.array[v2gSensorPackageType->SensorMeasurements.arrayLen++]);
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- grammarID = 1891;
- break;
- case 1:
- done = 1;
- grammarID = 3;
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 1891:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorMeasurements), END_ELEMENT] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gSensorPackageType->SensorMeasurements.arrayLen < v2gSensorPackageType_SensorMeasurements_ARRAY_SIZE) {
- errn = decode_v2gSensorMeasurementsType(stream, &v2gSensorPackageType->SensorMeasurements.array[v2gSensorPackageType->SensorMeasurements.arrayLen++]);
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- grammarID = 1892;
- break;
- case 1:
- done = 1;
- grammarID = 3;
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 1892:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorMeasurements), END_ELEMENT] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gSensorPackageType->SensorMeasurements.arrayLen < v2gSensorPackageType_SensorMeasurements_ARRAY_SIZE) {
- errn = decode_v2gSensorMeasurementsType(stream, &v2gSensorPackageType->SensorMeasurements.array[v2gSensorPackageType->SensorMeasurements.arrayLen++]);
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- grammarID = 1893;
- break;
- case 1:
- done = 1;
- grammarID = 3;
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 1893:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorMeasurements), END_ELEMENT] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gSensorPackageType->SensorMeasurements.arrayLen < v2gSensorPackageType_SensorMeasurements_ARRAY_SIZE) {
- errn = decode_v2gSensorMeasurementsType(stream, &v2gSensorPackageType->SensorMeasurements.array[v2gSensorPackageType->SensorMeasurements.arrayLen++]);
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- grammarID = 1894;
- break;
- case 1:
- done = 1;
- grammarID = 3;
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 1894:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorMeasurements), END_ELEMENT] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gSensorPackageType->SensorMeasurements.arrayLen < v2gSensorPackageType_SensorMeasurements_ARRAY_SIZE) {
- errn = decode_v2gSensorMeasurementsType(stream, &v2gSensorPackageType->SensorMeasurements.array[v2gSensorPackageType->SensorMeasurements.arrayLen++]);
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- grammarID = 1895;
- break;
- case 1:
- done = 1;
- grammarID = 3;
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 1895:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorMeasurements), END_ELEMENT] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gSensorPackageType->SensorMeasurements.arrayLen < v2gSensorPackageType_SensorMeasurements_ARRAY_SIZE) {
- errn = decode_v2gSensorMeasurementsType(stream, &v2gSensorPackageType->SensorMeasurements.array[v2gSensorPackageType->SensorMeasurements.arrayLen++]);
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- grammarID = 1896;
- break;
- case 1:
- done = 1;
- grammarID = 3;
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 1896:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorMeasurements), END_ELEMENT] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gSensorPackageType->SensorMeasurements.arrayLen < v2gSensorPackageType_SensorMeasurements_ARRAY_SIZE) {
- errn = decode_v2gSensorMeasurementsType(stream, &v2gSensorPackageType->SensorMeasurements.array[v2gSensorPackageType->SensorMeasurements.arrayLen++]);
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- grammarID = 1897;
- break;
- case 1:
- done = 1;
- grammarID = 3;
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 1897:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorMeasurements), END_ELEMENT] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gSensorPackageType->SensorMeasurements.arrayLen < v2gSensorPackageType_SensorMeasurements_ARRAY_SIZE) {
- errn = decode_v2gSensorMeasurementsType(stream, &v2gSensorPackageType->SensorMeasurements.array[v2gSensorPackageType->SensorMeasurements.arrayLen++]);
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- grammarID = 1898;
- break;
- case 1:
- done = 1;
- grammarID = 3;
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 1898:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorMeasurements), END_ELEMENT] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gSensorPackageType->SensorMeasurements.arrayLen < v2gSensorPackageType_SensorMeasurements_ARRAY_SIZE) {
- errn = decode_v2gSensorMeasurementsType(stream, &v2gSensorPackageType->SensorMeasurements.array[v2gSensorPackageType->SensorMeasurements.arrayLen++]);
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- grammarID = 1899;
- break;
- case 1:
- done = 1;
- grammarID = 3;
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 1899:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorMeasurements), END_ELEMENT] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gSensorPackageType->SensorMeasurements.arrayLen < v2gSensorPackageType_SensorMeasurements_ARRAY_SIZE) {
- errn = decode_v2gSensorMeasurementsType(stream, &v2gSensorPackageType->SensorMeasurements.array[v2gSensorPackageType->SensorMeasurements.arrayLen++]);
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- grammarID = 1900;
- break;
- case 1:
- done = 1;
- grammarID = 3;
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 1900:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorMeasurements), END_ELEMENT] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gSensorPackageType->SensorMeasurements.arrayLen < v2gSensorPackageType_SensorMeasurements_ARRAY_SIZE) {
- errn = decode_v2gSensorMeasurementsType(stream, &v2gSensorPackageType->SensorMeasurements.array[v2gSensorPackageType->SensorMeasurements.arrayLen++]);
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- grammarID = 1901;
- break;
- case 1:
- done = 1;
- grammarID = 3;
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 1901:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorMeasurements), END_ELEMENT] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gSensorPackageType->SensorMeasurements.arrayLen < v2gSensorPackageType_SensorMeasurements_ARRAY_SIZE) {
- errn = decode_v2gSensorMeasurementsType(stream, &v2gSensorPackageType->SensorMeasurements.array[v2gSensorPackageType->SensorMeasurements.arrayLen++]);
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- grammarID = 1902;
- break;
- case 1:
- done = 1;
- grammarID = 3;
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 1902:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorMeasurements), END_ELEMENT] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gSensorPackageType->SensorMeasurements.arrayLen < v2gSensorPackageType_SensorMeasurements_ARRAY_SIZE) {
- errn = decode_v2gSensorMeasurementsType(stream, &v2gSensorPackageType->SensorMeasurements.array[v2gSensorPackageType->SensorMeasurements.arrayLen++]);
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- grammarID = 1903;
- break;
- case 1:
- done = 1;
- grammarID = 3;
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 1903:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorMeasurements), END_ELEMENT] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gSensorPackageType->SensorMeasurements.arrayLen < v2gSensorPackageType_SensorMeasurements_ARRAY_SIZE) {
- errn = decode_v2gSensorMeasurementsType(stream, &v2gSensorPackageType->SensorMeasurements.array[v2gSensorPackageType->SensorMeasurements.arrayLen++]);
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- grammarID = 1904;
- break;
- case 1:
- done = 1;
- grammarID = 3;
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 1904:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorMeasurements), END_ELEMENT] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gSensorPackageType->SensorMeasurements.arrayLen < v2gSensorPackageType_SensorMeasurements_ARRAY_SIZE) {
- errn = decode_v2gSensorMeasurementsType(stream, &v2gSensorPackageType->SensorMeasurements.array[v2gSensorPackageType->SensorMeasurements.arrayLen++]);
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- grammarID = 1905;
- break;
- case 1:
- done = 1;
- grammarID = 3;
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 1905:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorMeasurements), END_ELEMENT] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gSensorPackageType->SensorMeasurements.arrayLen < v2gSensorPackageType_SensorMeasurements_ARRAY_SIZE) {
- errn = decode_v2gSensorMeasurementsType(stream, &v2gSensorPackageType->SensorMeasurements.array[v2gSensorPackageType->SensorMeasurements.arrayLen++]);
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- grammarID = 1906;
- break;
- case 1:
- done = 1;
- grammarID = 3;
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 1906:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorMeasurements), END_ELEMENT] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gSensorPackageType->SensorMeasurements.arrayLen < v2gSensorPackageType_SensorMeasurements_ARRAY_SIZE) {
- errn = decode_v2gSensorMeasurementsType(stream, &v2gSensorPackageType->SensorMeasurements.array[v2gSensorPackageType->SensorMeasurements.arrayLen++]);
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- grammarID = 1907;
- break;
- case 1:
- done = 1;
- grammarID = 3;
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 1907:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorMeasurements), END_ELEMENT] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gSensorPackageType->SensorMeasurements.arrayLen < v2gSensorPackageType_SensorMeasurements_ARRAY_SIZE) {
- errn = decode_v2gSensorMeasurementsType(stream, &v2gSensorPackageType->SensorMeasurements.array[v2gSensorPackageType->SensorMeasurements.arrayLen++]);
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- grammarID = 1908;
- break;
- case 1:
- done = 1;
- grammarID = 3;
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 1908:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorMeasurements), END_ELEMENT] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gSensorPackageType->SensorMeasurements.arrayLen < v2gSensorPackageType_SensorMeasurements_ARRAY_SIZE) {
- errn = decode_v2gSensorMeasurementsType(stream, &v2gSensorPackageType->SensorMeasurements.array[v2gSensorPackageType->SensorMeasurements.arrayLen++]);
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- grammarID = 1909;
- break;
- case 1:
- done = 1;
- grammarID = 3;
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 1909:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorMeasurements), END_ELEMENT] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gSensorPackageType->SensorMeasurements.arrayLen < v2gSensorPackageType_SensorMeasurements_ARRAY_SIZE) {
- errn = decode_v2gSensorMeasurementsType(stream, &v2gSensorPackageType->SensorMeasurements.array[v2gSensorPackageType->SensorMeasurements.arrayLen++]);
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- grammarID = 1910;
- break;
- case 1:
- done = 1;
- grammarID = 3;
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 1910:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorMeasurements), END_ELEMENT] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gSensorPackageType->SensorMeasurements.arrayLen < v2gSensorPackageType_SensorMeasurements_ARRAY_SIZE) {
- errn = decode_v2gSensorMeasurementsType(stream, &v2gSensorPackageType->SensorMeasurements.array[v2gSensorPackageType->SensorMeasurements.arrayLen++]);
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- grammarID = 1911;
- break;
- case 1:
- done = 1;
- grammarID = 3;
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 1911:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorMeasurements), END_ELEMENT] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gSensorPackageType->SensorMeasurements.arrayLen < v2gSensorPackageType_SensorMeasurements_ARRAY_SIZE) {
- errn = decode_v2gSensorMeasurementsType(stream, &v2gSensorPackageType->SensorMeasurements.array[v2gSensorPackageType->SensorMeasurements.arrayLen++]);
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- grammarID = 1912;
- break;
- case 1:
- done = 1;
- grammarID = 3;
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 1912:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorMeasurements), END_ELEMENT] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gSensorPackageType->SensorMeasurements.arrayLen < v2gSensorPackageType_SensorMeasurements_ARRAY_SIZE) {
- errn = decode_v2gSensorMeasurementsType(stream, &v2gSensorPackageType->SensorMeasurements.array[v2gSensorPackageType->SensorMeasurements.arrayLen++]);
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- grammarID = 1913;
- break;
- case 1:
- done = 1;
- grammarID = 3;
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 1913:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorMeasurements), END_ELEMENT] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gSensorPackageType->SensorMeasurements.arrayLen < v2gSensorPackageType_SensorMeasurements_ARRAY_SIZE) {
- errn = decode_v2gSensorMeasurementsType(stream, &v2gSensorPackageType->SensorMeasurements.array[v2gSensorPackageType->SensorMeasurements.arrayLen++]);
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- grammarID = 1914;
- break;
- case 1:
- done = 1;
- grammarID = 3;
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 1914:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorMeasurements), END_ELEMENT] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gSensorPackageType->SensorMeasurements.arrayLen < v2gSensorPackageType_SensorMeasurements_ARRAY_SIZE) {
- errn = decode_v2gSensorMeasurementsType(stream, &v2gSensorPackageType->SensorMeasurements.array[v2gSensorPackageType->SensorMeasurements.arrayLen++]);
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- grammarID = 1915;
- break;
- case 1:
- done = 1;
- grammarID = 3;
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 1915:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorMeasurements), END_ELEMENT] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gSensorPackageType->SensorMeasurements.arrayLen < v2gSensorPackageType_SensorMeasurements_ARRAY_SIZE) {
- errn = decode_v2gSensorMeasurementsType(stream, &v2gSensorPackageType->SensorMeasurements.array[v2gSensorPackageType->SensorMeasurements.arrayLen++]);
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- grammarID = 1916;
- break;
- case 1:
- done = 1;
- grammarID = 3;
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 1916:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorMeasurements), END_ELEMENT] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gSensorPackageType->SensorMeasurements.arrayLen < v2gSensorPackageType_SensorMeasurements_ARRAY_SIZE) {
- errn = decode_v2gSensorMeasurementsType(stream, &v2gSensorPackageType->SensorMeasurements.array[v2gSensorPackageType->SensorMeasurements.arrayLen++]);
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- grammarID = 1917;
- break;
- case 1:
- done = 1;
- grammarID = 3;
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 1917:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorMeasurements), END_ELEMENT] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gSensorPackageType->SensorMeasurements.arrayLen < v2gSensorPackageType_SensorMeasurements_ARRAY_SIZE) {
- errn = decode_v2gSensorMeasurementsType(stream, &v2gSensorPackageType->SensorMeasurements.array[v2gSensorPackageType->SensorMeasurements.arrayLen++]);
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- grammarID = 1918;
- break;
- case 1:
- done = 1;
- grammarID = 3;
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 1918:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorMeasurements), END_ELEMENT] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gSensorPackageType->SensorMeasurements.arrayLen < v2gSensorPackageType_SensorMeasurements_ARRAY_SIZE) {
- errn = decode_v2gSensorMeasurementsType(stream, &v2gSensorPackageType->SensorMeasurements.array[v2gSensorPackageType->SensorMeasurements.arrayLen++]);
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- grammarID = 1919;
- break;
- case 1:
- done = 1;
- grammarID = 3;
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 1919:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorMeasurements), END_ELEMENT] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gSensorPackageType->SensorMeasurements.arrayLen < v2gSensorPackageType_SensorMeasurements_ARRAY_SIZE) {
- errn = decode_v2gSensorMeasurementsType(stream, &v2gSensorPackageType->SensorMeasurements.array[v2gSensorPackageType->SensorMeasurements.arrayLen++]);
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- grammarID = 1920;
- break;
- case 1:
- done = 1;
- grammarID = 3;
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 1920:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorMeasurements), END_ELEMENT] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gSensorPackageType->SensorMeasurements.arrayLen < v2gSensorPackageType_SensorMeasurements_ARRAY_SIZE) {
- errn = decode_v2gSensorMeasurementsType(stream, &v2gSensorPackageType->SensorMeasurements.array[v2gSensorPackageType->SensorMeasurements.arrayLen++]);
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- grammarID = 1921;
- break;
- case 1:
- done = 1;
- grammarID = 3;
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 1921:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorMeasurements), END_ELEMENT] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gSensorPackageType->SensorMeasurements.arrayLen < v2gSensorPackageType_SensorMeasurements_ARRAY_SIZE) {
- errn = decode_v2gSensorMeasurementsType(stream, &v2gSensorPackageType->SensorMeasurements.array[v2gSensorPackageType->SensorMeasurements.arrayLen++]);
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- grammarID = 1922;
- break;
- case 1:
- done = 1;
- grammarID = 3;
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 1922:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorMeasurements), END_ELEMENT] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gSensorPackageType->SensorMeasurements.arrayLen < v2gSensorPackageType_SensorMeasurements_ARRAY_SIZE) {
- errn = decode_v2gSensorMeasurementsType(stream, &v2gSensorPackageType->SensorMeasurements.array[v2gSensorPackageType->SensorMeasurements.arrayLen++]);
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- grammarID = 1923;
- break;
- case 1:
- done = 1;
- grammarID = 3;
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 1923:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorMeasurements), END_ELEMENT] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gSensorPackageType->SensorMeasurements.arrayLen < v2gSensorPackageType_SensorMeasurements_ARRAY_SIZE) {
- errn = decode_v2gSensorMeasurementsType(stream, &v2gSensorPackageType->SensorMeasurements.array[v2gSensorPackageType->SensorMeasurements.arrayLen++]);
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- grammarID = 1924;
- break;
- case 1:
- done = 1;
- grammarID = 3;
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 1924:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorMeasurements), END_ELEMENT] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gSensorPackageType->SensorMeasurements.arrayLen < v2gSensorPackageType_SensorMeasurements_ARRAY_SIZE) {
- errn = decode_v2gSensorMeasurementsType(stream, &v2gSensorPackageType->SensorMeasurements.array[v2gSensorPackageType->SensorMeasurements.arrayLen++]);
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- grammarID = 1925;
- break;
- case 1:
- done = 1;
- grammarID = 3;
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 1925:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorMeasurements), END_ELEMENT] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gSensorPackageType->SensorMeasurements.arrayLen < v2gSensorPackageType_SensorMeasurements_ARRAY_SIZE) {
- errn = decode_v2gSensorMeasurementsType(stream, &v2gSensorPackageType->SensorMeasurements.array[v2gSensorPackageType->SensorMeasurements.arrayLen++]);
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- grammarID = 1926;
- break;
- case 1:
- done = 1;
- grammarID = 3;
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 1926:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorMeasurements), END_ELEMENT] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gSensorPackageType->SensorMeasurements.arrayLen < v2gSensorPackageType_SensorMeasurements_ARRAY_SIZE) {
- errn = decode_v2gSensorMeasurementsType(stream, &v2gSensorPackageType->SensorMeasurements.array[v2gSensorPackageType->SensorMeasurements.arrayLen++]);
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- grammarID = 1927;
- break;
- case 1:
- done = 1;
- grammarID = 3;
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 1927:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorMeasurements), END_ELEMENT] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gSensorPackageType->SensorMeasurements.arrayLen < v2gSensorPackageType_SensorMeasurements_ARRAY_SIZE) {
- errn = decode_v2gSensorMeasurementsType(stream, &v2gSensorPackageType->SensorMeasurements.array[v2gSensorPackageType->SensorMeasurements.arrayLen++]);
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- grammarID = 1928;
- break;
- case 1:
- done = 1;
- grammarID = 3;
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 1928:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorMeasurements), END_ELEMENT] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gSensorPackageType->SensorMeasurements.arrayLen < v2gSensorPackageType_SensorMeasurements_ARRAY_SIZE) {
- errn = decode_v2gSensorMeasurementsType(stream, &v2gSensorPackageType->SensorMeasurements.array[v2gSensorPackageType->SensorMeasurements.arrayLen++]);
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- grammarID = 1929;
- break;
- case 1:
- done = 1;
- grammarID = 3;
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 1929:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorMeasurements), END_ELEMENT] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gSensorPackageType->SensorMeasurements.arrayLen < v2gSensorPackageType_SensorMeasurements_ARRAY_SIZE) {
- errn = decode_v2gSensorMeasurementsType(stream, &v2gSensorPackageType->SensorMeasurements.array[v2gSensorPackageType->SensorMeasurements.arrayLen++]);
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- grammarID = 1930;
- break;
- case 1:
- done = 1;
- grammarID = 3;
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 1930:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorMeasurements), END_ELEMENT] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gSensorPackageType->SensorMeasurements.arrayLen < v2gSensorPackageType_SensorMeasurements_ARRAY_SIZE) {
- errn = decode_v2gSensorMeasurementsType(stream, &v2gSensorPackageType->SensorMeasurements.array[v2gSensorPackageType->SensorMeasurements.arrayLen++]);
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- grammarID = 1931;
- break;
- case 1:
- done = 1;
- grammarID = 3;
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 1931:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorMeasurements), END_ELEMENT] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gSensorPackageType->SensorMeasurements.arrayLen < v2gSensorPackageType_SensorMeasurements_ARRAY_SIZE) {
- errn = decode_v2gSensorMeasurementsType(stream, &v2gSensorPackageType->SensorMeasurements.array[v2gSensorPackageType->SensorMeasurements.arrayLen++]);
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- grammarID = 1932;
- break;
- case 1:
- done = 1;
- grammarID = 3;
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 1932:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorMeasurements), END_ELEMENT] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gSensorPackageType->SensorMeasurements.arrayLen < v2gSensorPackageType_SensorMeasurements_ARRAY_SIZE) {
- errn = decode_v2gSensorMeasurementsType(stream, &v2gSensorPackageType->SensorMeasurements.array[v2gSensorPackageType->SensorMeasurements.arrayLen++]);
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- grammarID = 1933;
- break;
- case 1:
- done = 1;
- grammarID = 3;
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 1933:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorMeasurements), END_ELEMENT] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gSensorPackageType->SensorMeasurements.arrayLen < v2gSensorPackageType_SensorMeasurements_ARRAY_SIZE) {
- errn = decode_v2gSensorMeasurementsType(stream, &v2gSensorPackageType->SensorMeasurements.array[v2gSensorPackageType->SensorMeasurements.arrayLen++]);
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- grammarID = 1934;
- break;
- case 1:
- done = 1;
- grammarID = 3;
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 1934:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorMeasurements), END_ELEMENT] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gSensorPackageType->SensorMeasurements.arrayLen < v2gSensorPackageType_SensorMeasurements_ARRAY_SIZE) {
- errn = decode_v2gSensorMeasurementsType(stream, &v2gSensorPackageType->SensorMeasurements.array[v2gSensorPackageType->SensorMeasurements.arrayLen++]);
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- grammarID = 1935;
- break;
- case 1:
- done = 1;
- grammarID = 3;
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 1935:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorMeasurements), END_ELEMENT] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gSensorPackageType->SensorMeasurements.arrayLen < v2gSensorPackageType_SensorMeasurements_ARRAY_SIZE) {
- errn = decode_v2gSensorMeasurementsType(stream, &v2gSensorPackageType->SensorMeasurements.array[v2gSensorPackageType->SensorMeasurements.arrayLen++]);
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- grammarID = 1936;
- break;
- case 1:
- done = 1;
- grammarID = 3;
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 1936:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorMeasurements), END_ELEMENT] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gSensorPackageType->SensorMeasurements.arrayLen < v2gSensorPackageType_SensorMeasurements_ARRAY_SIZE) {
- errn = decode_v2gSensorMeasurementsType(stream, &v2gSensorPackageType->SensorMeasurements.array[v2gSensorPackageType->SensorMeasurements.arrayLen++]);
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- grammarID = 1937;
- break;
- case 1:
- done = 1;
- grammarID = 3;
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 1937:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorMeasurements), END_ELEMENT] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gSensorPackageType->SensorMeasurements.arrayLen < v2gSensorPackageType_SensorMeasurements_ARRAY_SIZE) {
- errn = decode_v2gSensorMeasurementsType(stream, &v2gSensorPackageType->SensorMeasurements.array[v2gSensorPackageType->SensorMeasurements.arrayLen++]);
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- grammarID = 1938;
- break;
- case 1:
- done = 1;
- grammarID = 3;
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 1938:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorMeasurements), END_ELEMENT] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gSensorPackageType->SensorMeasurements.arrayLen < v2gSensorPackageType_SensorMeasurements_ARRAY_SIZE) {
- errn = decode_v2gSensorMeasurementsType(stream, &v2gSensorPackageType->SensorMeasurements.array[v2gSensorPackageType->SensorMeasurements.arrayLen++]);
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- grammarID = 1939;
- break;
- case 1:
- done = 1;
- grammarID = 3;
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 1939:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorMeasurements), END_ELEMENT] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gSensorPackageType->SensorMeasurements.arrayLen < v2gSensorPackageType_SensorMeasurements_ARRAY_SIZE) {
- errn = decode_v2gSensorMeasurementsType(stream, &v2gSensorPackageType->SensorMeasurements.array[v2gSensorPackageType->SensorMeasurements.arrayLen++]);
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- grammarID = 1940;
- break;
- case 1:
- done = 1;
- grammarID = 3;
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 1940:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorMeasurements), END_ELEMENT] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gSensorPackageType->SensorMeasurements.arrayLen < v2gSensorPackageType_SensorMeasurements_ARRAY_SIZE) {
- errn = decode_v2gSensorMeasurementsType(stream, &v2gSensorPackageType->SensorMeasurements.array[v2gSensorPackageType->SensorMeasurements.arrayLen++]);
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- grammarID = 1941;
- break;
- case 1:
- done = 1;
- grammarID = 3;
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 1941:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorMeasurements), END_ELEMENT] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gSensorPackageType->SensorMeasurements.arrayLen < v2gSensorPackageType_SensorMeasurements_ARRAY_SIZE) {
- errn = decode_v2gSensorMeasurementsType(stream, &v2gSensorPackageType->SensorMeasurements.array[v2gSensorPackageType->SensorMeasurements.arrayLen++]);
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- grammarID = 1942;
- break;
- case 1:
- done = 1;
- grammarID = 3;
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 1942:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorMeasurements), END_ELEMENT] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gSensorPackageType->SensorMeasurements.arrayLen < v2gSensorPackageType_SensorMeasurements_ARRAY_SIZE) {
- errn = decode_v2gSensorMeasurementsType(stream, &v2gSensorPackageType->SensorMeasurements.array[v2gSensorPackageType->SensorMeasurements.arrayLen++]);
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- grammarID = 1943;
- break;
- case 1:
- done = 1;
- grammarID = 3;
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 1943:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorMeasurements), END_ELEMENT] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gSensorPackageType->SensorMeasurements.arrayLen < v2gSensorPackageType_SensorMeasurements_ARRAY_SIZE) {
- errn = decode_v2gSensorMeasurementsType(stream, &v2gSensorPackageType->SensorMeasurements.array[v2gSensorPackageType->SensorMeasurements.arrayLen++]);
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- grammarID = 1944;
- break;
- case 1:
- done = 1;
- grammarID = 3;
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 1944:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorMeasurements), END_ELEMENT] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gSensorPackageType->SensorMeasurements.arrayLen < v2gSensorPackageType_SensorMeasurements_ARRAY_SIZE) {
- errn = decode_v2gSensorMeasurementsType(stream, &v2gSensorPackageType->SensorMeasurements.array[v2gSensorPackageType->SensorMeasurements.arrayLen++]);
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- grammarID = 1945;
- break;
- case 1:
- done = 1;
- grammarID = 3;
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 1945:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorMeasurements), END_ELEMENT] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gSensorPackageType->SensorMeasurements.arrayLen < v2gSensorPackageType_SensorMeasurements_ARRAY_SIZE) {
- errn = decode_v2gSensorMeasurementsType(stream, &v2gSensorPackageType->SensorMeasurements.array[v2gSensorPackageType->SensorMeasurements.arrayLen++]);
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- grammarID = 1946;
- break;
- case 1:
- done = 1;
- grammarID = 3;
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 1946:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorMeasurements), END_ELEMENT] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gSensorPackageType->SensorMeasurements.arrayLen < v2gSensorPackageType_SensorMeasurements_ARRAY_SIZE) {
- errn = decode_v2gSensorMeasurementsType(stream, &v2gSensorPackageType->SensorMeasurements.array[v2gSensorPackageType->SensorMeasurements.arrayLen++]);
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- grammarID = 1947;
- break;
- case 1:
- done = 1;
- grammarID = 3;
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 1947:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorMeasurements), END_ELEMENT] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gSensorPackageType->SensorMeasurements.arrayLen < v2gSensorPackageType_SensorMeasurements_ARRAY_SIZE) {
- errn = decode_v2gSensorMeasurementsType(stream, &v2gSensorPackageType->SensorMeasurements.array[v2gSensorPackageType->SensorMeasurements.arrayLen++]);
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- grammarID = 1948;
- break;
- case 1:
- done = 1;
- grammarID = 3;
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 1948:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorMeasurements), END_ELEMENT] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gSensorPackageType->SensorMeasurements.arrayLen < v2gSensorPackageType_SensorMeasurements_ARRAY_SIZE) {
- errn = decode_v2gSensorMeasurementsType(stream, &v2gSensorPackageType->SensorMeasurements.array[v2gSensorPackageType->SensorMeasurements.arrayLen++]);
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- grammarID = 1949;
- break;
- case 1:
- done = 1;
- grammarID = 3;
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 1949:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorMeasurements), END_ELEMENT] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gSensorPackageType->SensorMeasurements.arrayLen < v2gSensorPackageType_SensorMeasurements_ARRAY_SIZE) {
- errn = decode_v2gSensorMeasurementsType(stream, &v2gSensorPackageType->SensorMeasurements.array[v2gSensorPackageType->SensorMeasurements.arrayLen++]);
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- grammarID = 1950;
- break;
- case 1:
- done = 1;
- grammarID = 3;
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 1950:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorMeasurements), END_ELEMENT] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gSensorPackageType->SensorMeasurements.arrayLen < v2gSensorPackageType_SensorMeasurements_ARRAY_SIZE) {
- errn = decode_v2gSensorMeasurementsType(stream, &v2gSensorPackageType->SensorMeasurements.array[v2gSensorPackageType->SensorMeasurements.arrayLen++]);
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- grammarID = 1951;
- break;
- case 1:
- done = 1;
- grammarID = 3;
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 1951:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorMeasurements), END_ELEMENT] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gSensorPackageType->SensorMeasurements.arrayLen < v2gSensorPackageType_SensorMeasurements_ARRAY_SIZE) {
- errn = decode_v2gSensorMeasurementsType(stream, &v2gSensorPackageType->SensorMeasurements.array[v2gSensorPackageType->SensorMeasurements.arrayLen++]);
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- grammarID = 1952;
- break;
- case 1:
- done = 1;
- grammarID = 3;
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 1952:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorMeasurements), END_ELEMENT] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gSensorPackageType->SensorMeasurements.arrayLen < v2gSensorPackageType_SensorMeasurements_ARRAY_SIZE) {
- errn = decode_v2gSensorMeasurementsType(stream, &v2gSensorPackageType->SensorMeasurements.array[v2gSensorPackageType->SensorMeasurements.arrayLen++]);
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- grammarID = 1953;
- break;
- case 1:
- done = 1;
- grammarID = 3;
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 1953:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorMeasurements), END_ELEMENT] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gSensorPackageType->SensorMeasurements.arrayLen < v2gSensorPackageType_SensorMeasurements_ARRAY_SIZE) {
- errn = decode_v2gSensorMeasurementsType(stream, &v2gSensorPackageType->SensorMeasurements.array[v2gSensorPackageType->SensorMeasurements.arrayLen++]);
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- grammarID = 1954;
- break;
- case 1:
- done = 1;
- grammarID = 3;
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 1954:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorMeasurements), END_ELEMENT] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gSensorPackageType->SensorMeasurements.arrayLen < v2gSensorPackageType_SensorMeasurements_ARRAY_SIZE) {
- errn = decode_v2gSensorMeasurementsType(stream, &v2gSensorPackageType->SensorMeasurements.array[v2gSensorPackageType->SensorMeasurements.arrayLen++]);
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- grammarID = 1955;
- break;
- case 1:
- done = 1;
- grammarID = 3;
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 1955:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorMeasurements), END_ELEMENT] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gSensorPackageType->SensorMeasurements.arrayLen < v2gSensorPackageType_SensorMeasurements_ARRAY_SIZE) {
- errn = decode_v2gSensorMeasurementsType(stream, &v2gSensorPackageType->SensorMeasurements.array[v2gSensorPackageType->SensorMeasurements.arrayLen++]);
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- grammarID = 1956;
- break;
- case 1:
- done = 1;
- grammarID = 3;
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 1956:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorMeasurements), END_ELEMENT] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gSensorPackageType->SensorMeasurements.arrayLen < v2gSensorPackageType_SensorMeasurements_ARRAY_SIZE) {
- errn = decode_v2gSensorMeasurementsType(stream, &v2gSensorPackageType->SensorMeasurements.array[v2gSensorPackageType->SensorMeasurements.arrayLen++]);
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- grammarID = 1957;
- break;
- case 1:
- done = 1;
- grammarID = 3;
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 1957:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorMeasurements), END_ELEMENT] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gSensorPackageType->SensorMeasurements.arrayLen < v2gSensorPackageType_SensorMeasurements_ARRAY_SIZE) {
- errn = decode_v2gSensorMeasurementsType(stream, &v2gSensorPackageType->SensorMeasurements.array[v2gSensorPackageType->SensorMeasurements.arrayLen++]);
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- grammarID = 1958;
- break;
- case 1:
- done = 1;
- grammarID = 3;
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 1958:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorMeasurements), END_ELEMENT] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gSensorPackageType->SensorMeasurements.arrayLen < v2gSensorPackageType_SensorMeasurements_ARRAY_SIZE) {
- errn = decode_v2gSensorMeasurementsType(stream, &v2gSensorPackageType->SensorMeasurements.array[v2gSensorPackageType->SensorMeasurements.arrayLen++]);
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- grammarID = 1959;
- break;
- case 1:
- done = 1;
- grammarID = 3;
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 1959:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorMeasurements), END_ELEMENT] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gSensorPackageType->SensorMeasurements.arrayLen < v2gSensorPackageType_SensorMeasurements_ARRAY_SIZE) {
- errn = decode_v2gSensorMeasurementsType(stream, &v2gSensorPackageType->SensorMeasurements.array[v2gSensorPackageType->SensorMeasurements.arrayLen++]);
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- grammarID = 1960;
- break;
- case 1:
- done = 1;
- grammarID = 3;
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 1960:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorMeasurements), END_ELEMENT] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gSensorPackageType->SensorMeasurements.arrayLen < v2gSensorPackageType_SensorMeasurements_ARRAY_SIZE) {
- errn = decode_v2gSensorMeasurementsType(stream, &v2gSensorPackageType->SensorMeasurements.array[v2gSensorPackageType->SensorMeasurements.arrayLen++]);
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- grammarID = 1961;
- break;
- case 1:
- done = 1;
- grammarID = 3;
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 1961:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorMeasurements), END_ELEMENT] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gSensorPackageType->SensorMeasurements.arrayLen < v2gSensorPackageType_SensorMeasurements_ARRAY_SIZE) {
- errn = decode_v2gSensorMeasurementsType(stream, &v2gSensorPackageType->SensorMeasurements.array[v2gSensorPackageType->SensorMeasurements.arrayLen++]);
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- grammarID = 1962;
- break;
- case 1:
- done = 1;
- grammarID = 3;
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 1962:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorMeasurements), END_ELEMENT] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gSensorPackageType->SensorMeasurements.arrayLen < v2gSensorPackageType_SensorMeasurements_ARRAY_SIZE) {
- errn = decode_v2gSensorMeasurementsType(stream, &v2gSensorPackageType->SensorMeasurements.array[v2gSensorPackageType->SensorMeasurements.arrayLen++]);
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- grammarID = 1963;
- break;
- case 1:
- done = 1;
- grammarID = 3;
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 1963:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorMeasurements), END_ELEMENT] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gSensorPackageType->SensorMeasurements.arrayLen < v2gSensorPackageType_SensorMeasurements_ARRAY_SIZE) {
- errn = decode_v2gSensorMeasurementsType(stream, &v2gSensorPackageType->SensorMeasurements.array[v2gSensorPackageType->SensorMeasurements.arrayLen++]);
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- grammarID = 1964;
- break;
- case 1:
- done = 1;
- grammarID = 3;
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 1964:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorMeasurements), END_ELEMENT] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gSensorPackageType->SensorMeasurements.arrayLen < v2gSensorPackageType_SensorMeasurements_ARRAY_SIZE) {
- errn = decode_v2gSensorMeasurementsType(stream, &v2gSensorPackageType->SensorMeasurements.array[v2gSensorPackageType->SensorMeasurements.arrayLen++]);
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- grammarID = 1965;
- break;
- case 1:
- done = 1;
- grammarID = 3;
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 1965:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorMeasurements), END_ELEMENT] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gSensorPackageType->SensorMeasurements.arrayLen < v2gSensorPackageType_SensorMeasurements_ARRAY_SIZE) {
- errn = decode_v2gSensorMeasurementsType(stream, &v2gSensorPackageType->SensorMeasurements.array[v2gSensorPackageType->SensorMeasurements.arrayLen++]);
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- grammarID = 1966;
- break;
- case 1:
- done = 1;
- grammarID = 3;
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 1966:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorMeasurements), END_ELEMENT] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gSensorPackageType->SensorMeasurements.arrayLen < v2gSensorPackageType_SensorMeasurements_ARRAY_SIZE) {
- errn = decode_v2gSensorMeasurementsType(stream, &v2gSensorPackageType->SensorMeasurements.array[v2gSensorPackageType->SensorMeasurements.arrayLen++]);
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- grammarID = 1967;
- break;
- case 1:
- done = 1;
- grammarID = 3;
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 1967:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorMeasurements), END_ELEMENT] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gSensorPackageType->SensorMeasurements.arrayLen < v2gSensorPackageType_SensorMeasurements_ARRAY_SIZE) {
- errn = decode_v2gSensorMeasurementsType(stream, &v2gSensorPackageType->SensorMeasurements.array[v2gSensorPackageType->SensorMeasurements.arrayLen++]);
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- grammarID = 1968;
- break;
- case 1:
- done = 1;
- grammarID = 3;
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 1968:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorMeasurements), END_ELEMENT] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gSensorPackageType->SensorMeasurements.arrayLen < v2gSensorPackageType_SensorMeasurements_ARRAY_SIZE) {
- errn = decode_v2gSensorMeasurementsType(stream, &v2gSensorPackageType->SensorMeasurements.array[v2gSensorPackageType->SensorMeasurements.arrayLen++]);
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- grammarID = 1969;
- break;
- case 1:
- done = 1;
- grammarID = 3;
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 1969:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorMeasurements), END_ELEMENT] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gSensorPackageType->SensorMeasurements.arrayLen < v2gSensorPackageType_SensorMeasurements_ARRAY_SIZE) {
- errn = decode_v2gSensorMeasurementsType(stream, &v2gSensorPackageType->SensorMeasurements.array[v2gSensorPackageType->SensorMeasurements.arrayLen++]);
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- grammarID = 1970;
- break;
- case 1:
- done = 1;
- grammarID = 3;
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 1970:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorMeasurements), END_ELEMENT] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gSensorPackageType->SensorMeasurements.arrayLen < v2gSensorPackageType_SensorMeasurements_ARRAY_SIZE) {
- errn = decode_v2gSensorMeasurementsType(stream, &v2gSensorPackageType->SensorMeasurements.array[v2gSensorPackageType->SensorMeasurements.arrayLen++]);
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- grammarID = 1971;
- break;
- case 1:
- done = 1;
- grammarID = 3;
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 1971:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorMeasurements), END_ELEMENT] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gSensorPackageType->SensorMeasurements.arrayLen < v2gSensorPackageType_SensorMeasurements_ARRAY_SIZE) {
- errn = decode_v2gSensorMeasurementsType(stream, &v2gSensorPackageType->SensorMeasurements.array[v2gSensorPackageType->SensorMeasurements.arrayLen++]);
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- grammarID = 1972;
- break;
- case 1:
- done = 1;
- grammarID = 3;
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 1972:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorMeasurements), END_ELEMENT] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gSensorPackageType->SensorMeasurements.arrayLen < v2gSensorPackageType_SensorMeasurements_ARRAY_SIZE) {
- errn = decode_v2gSensorMeasurementsType(stream, &v2gSensorPackageType->SensorMeasurements.array[v2gSensorPackageType->SensorMeasurements.arrayLen++]);
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- grammarID = 1973;
- break;
- case 1:
- done = 1;
- grammarID = 3;
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 1973:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorMeasurements), END_ELEMENT] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gSensorPackageType->SensorMeasurements.arrayLen < v2gSensorPackageType_SensorMeasurements_ARRAY_SIZE) {
- errn = decode_v2gSensorMeasurementsType(stream, &v2gSensorPackageType->SensorMeasurements.array[v2gSensorPackageType->SensorMeasurements.arrayLen++]);
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- grammarID = 1974;
- break;
- case 1:
- done = 1;
- grammarID = 3;
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 1974:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorMeasurements), END_ELEMENT] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gSensorPackageType->SensorMeasurements.arrayLen < v2gSensorPackageType_SensorMeasurements_ARRAY_SIZE) {
- errn = decode_v2gSensorMeasurementsType(stream, &v2gSensorPackageType->SensorMeasurements.array[v2gSensorPackageType->SensorMeasurements.arrayLen++]);
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- grammarID = 1975;
- break;
- case 1:
- done = 1;
- grammarID = 3;
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 1975:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorMeasurements), END_ELEMENT] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gSensorPackageType->SensorMeasurements.arrayLen < v2gSensorPackageType_SensorMeasurements_ARRAY_SIZE) {
- errn = decode_v2gSensorMeasurementsType(stream, &v2gSensorPackageType->SensorMeasurements.array[v2gSensorPackageType->SensorMeasurements.arrayLen++]);
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- grammarID = 1976;
- break;
- case 1:
- done = 1;
- grammarID = 3;
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 1976:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorMeasurements), END_ELEMENT] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gSensorPackageType->SensorMeasurements.arrayLen < v2gSensorPackageType_SensorMeasurements_ARRAY_SIZE) {
- errn = decode_v2gSensorMeasurementsType(stream, &v2gSensorPackageType->SensorMeasurements.array[v2gSensorPackageType->SensorMeasurements.arrayLen++]);
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- grammarID = 1977;
- break;
- case 1:
- done = 1;
- grammarID = 3;
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 1977:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorMeasurements), END_ELEMENT] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gSensorPackageType->SensorMeasurements.arrayLen < v2gSensorPackageType_SensorMeasurements_ARRAY_SIZE) {
- errn = decode_v2gSensorMeasurementsType(stream, &v2gSensorPackageType->SensorMeasurements.array[v2gSensorPackageType->SensorMeasurements.arrayLen++]);
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- grammarID = 1978;
- break;
- case 1:
- done = 1;
- grammarID = 3;
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 1978:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorMeasurements), END_ELEMENT] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gSensorPackageType->SensorMeasurements.arrayLen < v2gSensorPackageType_SensorMeasurements_ARRAY_SIZE) {
- errn = decode_v2gSensorMeasurementsType(stream, &v2gSensorPackageType->SensorMeasurements.array[v2gSensorPackageType->SensorMeasurements.arrayLen++]);
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- grammarID = 1979;
- break;
- case 1:
- done = 1;
- grammarID = 3;
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 1979:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorMeasurements), END_ELEMENT] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gSensorPackageType->SensorMeasurements.arrayLen < v2gSensorPackageType_SensorMeasurements_ARRAY_SIZE) {
- errn = decode_v2gSensorMeasurementsType(stream, &v2gSensorPackageType->SensorMeasurements.array[v2gSensorPackageType->SensorMeasurements.arrayLen++]);
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- grammarID = 1980;
- break;
- case 1:
- done = 1;
- grammarID = 3;
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 1980:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorMeasurements), END_ELEMENT] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gSensorPackageType->SensorMeasurements.arrayLen < v2gSensorPackageType_SensorMeasurements_ARRAY_SIZE) {
- errn = decode_v2gSensorMeasurementsType(stream, &v2gSensorPackageType->SensorMeasurements.array[v2gSensorPackageType->SensorMeasurements.arrayLen++]);
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- grammarID = 1981;
- break;
- case 1:
- done = 1;
- grammarID = 3;
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 1981:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorMeasurements), END_ELEMENT] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gSensorPackageType->SensorMeasurements.arrayLen < v2gSensorPackageType_SensorMeasurements_ARRAY_SIZE) {
- errn = decode_v2gSensorMeasurementsType(stream, &v2gSensorPackageType->SensorMeasurements.array[v2gSensorPackageType->SensorMeasurements.arrayLen++]);
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- grammarID = 1982;
- break;
- case 1:
- done = 1;
- grammarID = 3;
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 1982:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorMeasurements), END_ELEMENT] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gSensorPackageType->SensorMeasurements.arrayLen < v2gSensorPackageType_SensorMeasurements_ARRAY_SIZE) {
- errn = decode_v2gSensorMeasurementsType(stream, &v2gSensorPackageType->SensorMeasurements.array[v2gSensorPackageType->SensorMeasurements.arrayLen++]);
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- grammarID = 1983;
- break;
- case 1:
- done = 1;
- grammarID = 3;
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 1983:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorMeasurements), END_ELEMENT] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gSensorPackageType->SensorMeasurements.arrayLen < v2gSensorPackageType_SensorMeasurements_ARRAY_SIZE) {
- errn = decode_v2gSensorMeasurementsType(stream, &v2gSensorPackageType->SensorMeasurements.array[v2gSensorPackageType->SensorMeasurements.arrayLen++]);
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- grammarID = 1984;
- break;
- case 1:
- done = 1;
- grammarID = 3;
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 1984:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorMeasurements), END_ELEMENT] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gSensorPackageType->SensorMeasurements.arrayLen < v2gSensorPackageType_SensorMeasurements_ARRAY_SIZE) {
- errn = decode_v2gSensorMeasurementsType(stream, &v2gSensorPackageType->SensorMeasurements.array[v2gSensorPackageType->SensorMeasurements.arrayLen++]);
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- grammarID = 1985;
- break;
- case 1:
- done = 1;
- grammarID = 3;
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 1985:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorMeasurements), END_ELEMENT] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gSensorPackageType->SensorMeasurements.arrayLen < v2gSensorPackageType_SensorMeasurements_ARRAY_SIZE) {
- errn = decode_v2gSensorMeasurementsType(stream, &v2gSensorPackageType->SensorMeasurements.array[v2gSensorPackageType->SensorMeasurements.arrayLen++]);
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- grammarID = 1986;
- break;
- case 1:
- done = 1;
- grammarID = 3;
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 1986:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorMeasurements), END_ELEMENT] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gSensorPackageType->SensorMeasurements.arrayLen < v2gSensorPackageType_SensorMeasurements_ARRAY_SIZE) {
- errn = decode_v2gSensorMeasurementsType(stream, &v2gSensorPackageType->SensorMeasurements.array[v2gSensorPackageType->SensorMeasurements.arrayLen++]);
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- grammarID = 1987;
- break;
- case 1:
- done = 1;
- grammarID = 3;
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 1987:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorMeasurements), END_ELEMENT] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gSensorPackageType->SensorMeasurements.arrayLen < v2gSensorPackageType_SensorMeasurements_ARRAY_SIZE) {
- errn = decode_v2gSensorMeasurementsType(stream, &v2gSensorPackageType->SensorMeasurements.array[v2gSensorPackageType->SensorMeasurements.arrayLen++]);
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- grammarID = 1988;
- break;
- case 1:
- done = 1;
- grammarID = 3;
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 1988:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorMeasurements), END_ELEMENT] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gSensorPackageType->SensorMeasurements.arrayLen < v2gSensorPackageType_SensorMeasurements_ARRAY_SIZE) {
- errn = decode_v2gSensorMeasurementsType(stream, &v2gSensorPackageType->SensorMeasurements.array[v2gSensorPackageType->SensorMeasurements.arrayLen++]);
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- grammarID = 1989;
- break;
- case 1:
- done = 1;
- grammarID = 3;
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 1989:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorMeasurements), END_ELEMENT] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gSensorPackageType->SensorMeasurements.arrayLen < v2gSensorPackageType_SensorMeasurements_ARRAY_SIZE) {
- errn = decode_v2gSensorMeasurementsType(stream, &v2gSensorPackageType->SensorMeasurements.array[v2gSensorPackageType->SensorMeasurements.arrayLen++]);
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- grammarID = 1990;
- break;
- case 1:
- done = 1;
- grammarID = 3;
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 1990:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorMeasurements), END_ELEMENT] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gSensorPackageType->SensorMeasurements.arrayLen < v2gSensorPackageType_SensorMeasurements_ARRAY_SIZE) {
- errn = decode_v2gSensorMeasurementsType(stream, &v2gSensorPackageType->SensorMeasurements.array[v2gSensorPackageType->SensorMeasurements.arrayLen++]);
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- grammarID = 1991;
- break;
- case 1:
- done = 1;
- grammarID = 3;
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 1991:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorMeasurements), END_ELEMENT] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gSensorPackageType->SensorMeasurements.arrayLen < v2gSensorPackageType_SensorMeasurements_ARRAY_SIZE) {
- errn = decode_v2gSensorMeasurementsType(stream, &v2gSensorPackageType->SensorMeasurements.array[v2gSensorPackageType->SensorMeasurements.arrayLen++]);
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- grammarID = 1992;
- break;
- case 1:
- done = 1;
- grammarID = 3;
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 1992:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorMeasurements), END_ELEMENT] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gSensorPackageType->SensorMeasurements.arrayLen < v2gSensorPackageType_SensorMeasurements_ARRAY_SIZE) {
- errn = decode_v2gSensorMeasurementsType(stream, &v2gSensorPackageType->SensorMeasurements.array[v2gSensorPackageType->SensorMeasurements.arrayLen++]);
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- grammarID = 1993;
- break;
- case 1:
- done = 1;
- grammarID = 3;
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 1993:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorMeasurements), END_ELEMENT] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gSensorPackageType->SensorMeasurements.arrayLen < v2gSensorPackageType_SensorMeasurements_ARRAY_SIZE) {
- errn = decode_v2gSensorMeasurementsType(stream, &v2gSensorPackageType->SensorMeasurements.array[v2gSensorPackageType->SensorMeasurements.arrayLen++]);
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- grammarID = 1994;
- break;
- case 1:
- done = 1;
- grammarID = 3;
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 1994:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorMeasurements), END_ELEMENT] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gSensorPackageType->SensorMeasurements.arrayLen < v2gSensorPackageType_SensorMeasurements_ARRAY_SIZE) {
- errn = decode_v2gSensorMeasurementsType(stream, &v2gSensorPackageType->SensorMeasurements.array[v2gSensorPackageType->SensorMeasurements.arrayLen++]);
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- grammarID = 1995;
- break;
- case 1:
- done = 1;
- grammarID = 3;
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 1995:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorMeasurements), END_ELEMENT] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gSensorPackageType->SensorMeasurements.arrayLen < v2gSensorPackageType_SensorMeasurements_ARRAY_SIZE) {
- errn = decode_v2gSensorMeasurementsType(stream, &v2gSensorPackageType->SensorMeasurements.array[v2gSensorPackageType->SensorMeasurements.arrayLen++]);
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- grammarID = 1996;
- break;
- case 1:
- done = 1;
- grammarID = 3;
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 1996:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorMeasurements), END_ELEMENT] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gSensorPackageType->SensorMeasurements.arrayLen < v2gSensorPackageType_SensorMeasurements_ARRAY_SIZE) {
- errn = decode_v2gSensorMeasurementsType(stream, &v2gSensorPackageType->SensorMeasurements.array[v2gSensorPackageType->SensorMeasurements.arrayLen++]);
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- grammarID = 1997;
- break;
- case 1:
- done = 1;
- grammarID = 3;
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 1997:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorMeasurements), END_ELEMENT] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gSensorPackageType->SensorMeasurements.arrayLen < v2gSensorPackageType_SensorMeasurements_ARRAY_SIZE) {
- errn = decode_v2gSensorMeasurementsType(stream, &v2gSensorPackageType->SensorMeasurements.array[v2gSensorPackageType->SensorMeasurements.arrayLen++]);
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- grammarID = 1998;
- break;
- case 1:
- done = 1;
- grammarID = 3;
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 1998:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorMeasurements), END_ELEMENT] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gSensorPackageType->SensorMeasurements.arrayLen < v2gSensorPackageType_SensorMeasurements_ARRAY_SIZE) {
- errn = decode_v2gSensorMeasurementsType(stream, &v2gSensorPackageType->SensorMeasurements.array[v2gSensorPackageType->SensorMeasurements.arrayLen++]);
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- grammarID = 1999;
- break;
- case 1:
- done = 1;
- grammarID = 3;
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 1999:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorMeasurements), END_ELEMENT] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gSensorPackageType->SensorMeasurements.arrayLen < v2gSensorPackageType_SensorMeasurements_ARRAY_SIZE) {
- errn = decode_v2gSensorMeasurementsType(stream, &v2gSensorPackageType->SensorMeasurements.array[v2gSensorPackageType->SensorMeasurements.arrayLen++]);
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- grammarID = 2000;
- break;
- case 1:
- done = 1;
- grammarID = 3;
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 2000:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorMeasurements), END_ELEMENT] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gSensorPackageType->SensorMeasurements.arrayLen < v2gSensorPackageType_SensorMeasurements_ARRAY_SIZE) {
- errn = decode_v2gSensorMeasurementsType(stream, &v2gSensorPackageType->SensorMeasurements.array[v2gSensorPackageType->SensorMeasurements.arrayLen++]);
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- grammarID = 2001;
- break;
- case 1:
- done = 1;
- grammarID = 3;
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 2001:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorMeasurements), END_ELEMENT] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gSensorPackageType->SensorMeasurements.arrayLen < v2gSensorPackageType_SensorMeasurements_ARRAY_SIZE) {
- errn = decode_v2gSensorMeasurementsType(stream, &v2gSensorPackageType->SensorMeasurements.array[v2gSensorPackageType->SensorMeasurements.arrayLen++]);
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- grammarID = 2002;
- break;
- case 1:
- done = 1;
- grammarID = 3;
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 2002:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorMeasurements), END_ELEMENT] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gSensorPackageType->SensorMeasurements.arrayLen < v2gSensorPackageType_SensorMeasurements_ARRAY_SIZE) {
- errn = decode_v2gSensorMeasurementsType(stream, &v2gSensorPackageType->SensorMeasurements.array[v2gSensorPackageType->SensorMeasurements.arrayLen++]);
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- grammarID = 2003;
- break;
- case 1:
- done = 1;
- grammarID = 3;
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 2003:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorMeasurements), END_ELEMENT] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gSensorPackageType->SensorMeasurements.arrayLen < v2gSensorPackageType_SensorMeasurements_ARRAY_SIZE) {
- errn = decode_v2gSensorMeasurementsType(stream, &v2gSensorPackageType->SensorMeasurements.array[v2gSensorPackageType->SensorMeasurements.arrayLen++]);
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- grammarID = 2004;
- break;
- case 1:
- done = 1;
- grammarID = 3;
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 2004:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorMeasurements), END_ELEMENT] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gSensorPackageType->SensorMeasurements.arrayLen < v2gSensorPackageType_SensorMeasurements_ARRAY_SIZE) {
- errn = decode_v2gSensorMeasurementsType(stream, &v2gSensorPackageType->SensorMeasurements.array[v2gSensorPackageType->SensorMeasurements.arrayLen++]);
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- grammarID = 2005;
- break;
- case 1:
- done = 1;
- grammarID = 3;
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 2005:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorMeasurements), END_ELEMENT] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gSensorPackageType->SensorMeasurements.arrayLen < v2gSensorPackageType_SensorMeasurements_ARRAY_SIZE) {
- errn = decode_v2gSensorMeasurementsType(stream, &v2gSensorPackageType->SensorMeasurements.array[v2gSensorPackageType->SensorMeasurements.arrayLen++]);
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- grammarID = 2006;
- break;
- case 1:
- done = 1;
- grammarID = 3;
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 2006:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorMeasurements), END_ELEMENT] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gSensorPackageType->SensorMeasurements.arrayLen < v2gSensorPackageType_SensorMeasurements_ARRAY_SIZE) {
- errn = decode_v2gSensorMeasurementsType(stream, &v2gSensorPackageType->SensorMeasurements.array[v2gSensorPackageType->SensorMeasurements.arrayLen++]);
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- grammarID = 2007;
- break;
- case 1:
- done = 1;
- grammarID = 3;
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 2007:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorMeasurements), END_ELEMENT] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gSensorPackageType->SensorMeasurements.arrayLen < v2gSensorPackageType_SensorMeasurements_ARRAY_SIZE) {
- errn = decode_v2gSensorMeasurementsType(stream, &v2gSensorPackageType->SensorMeasurements.array[v2gSensorPackageType->SensorMeasurements.arrayLen++]);
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- grammarID = 2008;
- break;
- case 1:
- done = 1;
- grammarID = 3;
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 2008:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorMeasurements), END_ELEMENT] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gSensorPackageType->SensorMeasurements.arrayLen < v2gSensorPackageType_SensorMeasurements_ARRAY_SIZE) {
- errn = decode_v2gSensorMeasurementsType(stream, &v2gSensorPackageType->SensorMeasurements.array[v2gSensorPackageType->SensorMeasurements.arrayLen++]);
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- grammarID = 2009;
- break;
- case 1:
- done = 1;
- grammarID = 3;
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 2009:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorMeasurements), END_ELEMENT] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gSensorPackageType->SensorMeasurements.arrayLen < v2gSensorPackageType_SensorMeasurements_ARRAY_SIZE) {
- errn = decode_v2gSensorMeasurementsType(stream, &v2gSensorPackageType->SensorMeasurements.array[v2gSensorPackageType->SensorMeasurements.arrayLen++]);
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- grammarID = 2010;
- break;
- case 1:
- done = 1;
- grammarID = 3;
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 2010:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorMeasurements), END_ELEMENT] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gSensorPackageType->SensorMeasurements.arrayLen < v2gSensorPackageType_SensorMeasurements_ARRAY_SIZE) {
- errn = decode_v2gSensorMeasurementsType(stream, &v2gSensorPackageType->SensorMeasurements.array[v2gSensorPackageType->SensorMeasurements.arrayLen++]);
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- grammarID = 2011;
- break;
- case 1:
- done = 1;
- grammarID = 3;
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 2011:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorMeasurements), END_ELEMENT] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gSensorPackageType->SensorMeasurements.arrayLen < v2gSensorPackageType_SensorMeasurements_ARRAY_SIZE) {
- errn = decode_v2gSensorMeasurementsType(stream, &v2gSensorPackageType->SensorMeasurements.array[v2gSensorPackageType->SensorMeasurements.arrayLen++]);
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- grammarID = 2012;
- break;
- case 1:
- done = 1;
- grammarID = 3;
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 2012:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorMeasurements), END_ELEMENT] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gSensorPackageType->SensorMeasurements.arrayLen < v2gSensorPackageType_SensorMeasurements_ARRAY_SIZE) {
- errn = decode_v2gSensorMeasurementsType(stream, &v2gSensorPackageType->SensorMeasurements.array[v2gSensorPackageType->SensorMeasurements.arrayLen++]);
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- grammarID = 2013;
- break;
- case 1:
- done = 1;
- grammarID = 3;
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 2013:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorMeasurements), END_ELEMENT] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gSensorPackageType->SensorMeasurements.arrayLen < v2gSensorPackageType_SensorMeasurements_ARRAY_SIZE) {
- errn = decode_v2gSensorMeasurementsType(stream, &v2gSensorPackageType->SensorMeasurements.array[v2gSensorPackageType->SensorMeasurements.arrayLen++]);
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- grammarID = 2014;
- break;
- case 1:
- done = 1;
- grammarID = 3;
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 2014:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorMeasurements), END_ELEMENT] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gSensorPackageType->SensorMeasurements.arrayLen < v2gSensorPackageType_SensorMeasurements_ARRAY_SIZE) {
- errn = decode_v2gSensorMeasurementsType(stream, &v2gSensorPackageType->SensorMeasurements.array[v2gSensorPackageType->SensorMeasurements.arrayLen++]);
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- grammarID = 2015;
- break;
- case 1:
- done = 1;
- grammarID = 3;
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 2015:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorMeasurements), END_ELEMENT] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gSensorPackageType->SensorMeasurements.arrayLen < v2gSensorPackageType_SensorMeasurements_ARRAY_SIZE) {
- errn = decode_v2gSensorMeasurementsType(stream, &v2gSensorPackageType->SensorMeasurements.array[v2gSensorPackageType->SensorMeasurements.arrayLen++]);
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- grammarID = 2016;
- break;
- case 1:
- done = 1;
- grammarID = 3;
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 2016:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorMeasurements), END_ELEMENT] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gSensorPackageType->SensorMeasurements.arrayLen < v2gSensorPackageType_SensorMeasurements_ARRAY_SIZE) {
- errn = decode_v2gSensorMeasurementsType(stream, &v2gSensorPackageType->SensorMeasurements.array[v2gSensorPackageType->SensorMeasurements.arrayLen++]);
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- grammarID = 2017;
- break;
- case 1:
- done = 1;
- grammarID = 3;
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 2017:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorMeasurements), END_ELEMENT] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gSensorPackageType->SensorMeasurements.arrayLen < v2gSensorPackageType_SensorMeasurements_ARRAY_SIZE) {
- errn = decode_v2gSensorMeasurementsType(stream, &v2gSensorPackageType->SensorMeasurements.array[v2gSensorPackageType->SensorMeasurements.arrayLen++]);
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- grammarID = 2018;
- break;
- case 1:
- done = 1;
- grammarID = 3;
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 2018:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorMeasurements), END_ELEMENT] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gSensorPackageType->SensorMeasurements.arrayLen < v2gSensorPackageType_SensorMeasurements_ARRAY_SIZE) {
- errn = decode_v2gSensorMeasurementsType(stream, &v2gSensorPackageType->SensorMeasurements.array[v2gSensorPackageType->SensorMeasurements.arrayLen++]);
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- grammarID = 2019;
- break;
- case 1:
- done = 1;
- grammarID = 3;
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 2019:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorMeasurements), END_ELEMENT] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gSensorPackageType->SensorMeasurements.arrayLen < v2gSensorPackageType_SensorMeasurements_ARRAY_SIZE) {
- errn = decode_v2gSensorMeasurementsType(stream, &v2gSensorPackageType->SensorMeasurements.array[v2gSensorPackageType->SensorMeasurements.arrayLen++]);
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- grammarID = 2020;
- break;
- case 1:
- done = 1;
- grammarID = 3;
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 2020:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorMeasurements), END_ELEMENT] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gSensorPackageType->SensorMeasurements.arrayLen < v2gSensorPackageType_SensorMeasurements_ARRAY_SIZE) {
- errn = decode_v2gSensorMeasurementsType(stream, &v2gSensorPackageType->SensorMeasurements.array[v2gSensorPackageType->SensorMeasurements.arrayLen++]);
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- grammarID = 2021;
- break;
- case 1:
- done = 1;
- grammarID = 3;
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 2021:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorMeasurements), END_ELEMENT] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gSensorPackageType->SensorMeasurements.arrayLen < v2gSensorPackageType_SensorMeasurements_ARRAY_SIZE) {
- errn = decode_v2gSensorMeasurementsType(stream, &v2gSensorPackageType->SensorMeasurements.array[v2gSensorPackageType->SensorMeasurements.arrayLen++]);
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- grammarID = 2022;
- break;
- case 1:
- done = 1;
- grammarID = 3;
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 2022:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorMeasurements), END_ELEMENT] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gSensorPackageType->SensorMeasurements.arrayLen < v2gSensorPackageType_SensorMeasurements_ARRAY_SIZE) {
- errn = decode_v2gSensorMeasurementsType(stream, &v2gSensorPackageType->SensorMeasurements.array[v2gSensorPackageType->SensorMeasurements.arrayLen++]);
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- grammarID = 2023;
- break;
- case 1:
- done = 1;
- grammarID = 3;
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 2023:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorMeasurements), END_ELEMENT] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gSensorPackageType->SensorMeasurements.arrayLen < v2gSensorPackageType_SensorMeasurements_ARRAY_SIZE) {
- errn = decode_v2gSensorMeasurementsType(stream, &v2gSensorPackageType->SensorMeasurements.array[v2gSensorPackageType->SensorMeasurements.arrayLen++]);
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- grammarID = 2024;
- break;
- case 1:
- done = 1;
- grammarID = 3;
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 2024:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorMeasurements), END_ELEMENT] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gSensorPackageType->SensorMeasurements.arrayLen < v2gSensorPackageType_SensorMeasurements_ARRAY_SIZE) {
- errn = decode_v2gSensorMeasurementsType(stream, &v2gSensorPackageType->SensorMeasurements.array[v2gSensorPackageType->SensorMeasurements.arrayLen++]);
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- grammarID = 2025;
- break;
- case 1:
- done = 1;
- grammarID = 3;
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 2025:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorMeasurements), END_ELEMENT] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gSensorPackageType->SensorMeasurements.arrayLen < v2gSensorPackageType_SensorMeasurements_ARRAY_SIZE) {
- errn = decode_v2gSensorMeasurementsType(stream, &v2gSensorPackageType->SensorMeasurements.array[v2gSensorPackageType->SensorMeasurements.arrayLen++]);
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- grammarID = 2026;
- break;
- case 1:
- done = 1;
- grammarID = 3;
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 2026:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorMeasurements), END_ELEMENT] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gSensorPackageType->SensorMeasurements.arrayLen < v2gSensorPackageType_SensorMeasurements_ARRAY_SIZE) {
- errn = decode_v2gSensorMeasurementsType(stream, &v2gSensorPackageType->SensorMeasurements.array[v2gSensorPackageType->SensorMeasurements.arrayLen++]);
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- grammarID = 2027;
- break;
- case 1:
- done = 1;
- grammarID = 3;
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 2027:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorMeasurements), END_ELEMENT] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gSensorPackageType->SensorMeasurements.arrayLen < v2gSensorPackageType_SensorMeasurements_ARRAY_SIZE) {
- errn = decode_v2gSensorMeasurementsType(stream, &v2gSensorPackageType->SensorMeasurements.array[v2gSensorPackageType->SensorMeasurements.arrayLen++]);
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- grammarID = 2028;
- break;
- case 1:
- done = 1;
- grammarID = 3;
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 2028:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorMeasurements), END_ELEMENT] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gSensorPackageType->SensorMeasurements.arrayLen < v2gSensorPackageType_SensorMeasurements_ARRAY_SIZE) {
- errn = decode_v2gSensorMeasurementsType(stream, &v2gSensorPackageType->SensorMeasurements.array[v2gSensorPackageType->SensorMeasurements.arrayLen++]);
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- grammarID = 2029;
- break;
- case 1:
- done = 1;
- grammarID = 3;
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 2029:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorMeasurements), END_ELEMENT] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gSensorPackageType->SensorMeasurements.arrayLen < v2gSensorPackageType_SensorMeasurements_ARRAY_SIZE) {
- errn = decode_v2gSensorMeasurementsType(stream, &v2gSensorPackageType->SensorMeasurements.array[v2gSensorPackageType->SensorMeasurements.arrayLen++]);
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- grammarID = 2030;
- break;
- case 1:
- done = 1;
- grammarID = 3;
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 2030:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorMeasurements), END_ELEMENT] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gSensorPackageType->SensorMeasurements.arrayLen < v2gSensorPackageType_SensorMeasurements_ARRAY_SIZE) {
- errn = decode_v2gSensorMeasurementsType(stream, &v2gSensorPackageType->SensorMeasurements.array[v2gSensorPackageType->SensorMeasurements.arrayLen++]);
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- grammarID = 2031;
- break;
- case 1:
- done = 1;
- grammarID = 3;
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 2031:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorMeasurements), END_ELEMENT] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gSensorPackageType->SensorMeasurements.arrayLen < v2gSensorPackageType_SensorMeasurements_ARRAY_SIZE) {
- errn = decode_v2gSensorMeasurementsType(stream, &v2gSensorPackageType->SensorMeasurements.array[v2gSensorPackageType->SensorMeasurements.arrayLen++]);
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- grammarID = 2032;
- break;
- case 1:
- done = 1;
- grammarID = 3;
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 2032:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorMeasurements), END_ELEMENT] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gSensorPackageType->SensorMeasurements.arrayLen < v2gSensorPackageType_SensorMeasurements_ARRAY_SIZE) {
- errn = decode_v2gSensorMeasurementsType(stream, &v2gSensorPackageType->SensorMeasurements.array[v2gSensorPackageType->SensorMeasurements.arrayLen++]);
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- grammarID = 2033;
- break;
- case 1:
- done = 1;
- grammarID = 3;
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 2033:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorMeasurements), END_ELEMENT] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gSensorPackageType->SensorMeasurements.arrayLen < v2gSensorPackageType_SensorMeasurements_ARRAY_SIZE) {
- errn = decode_v2gSensorMeasurementsType(stream, &v2gSensorPackageType->SensorMeasurements.array[v2gSensorPackageType->SensorMeasurements.arrayLen++]);
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- grammarID = 2034;
- break;
- case 1:
- done = 1;
- grammarID = 3;
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 2034:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorMeasurements), END_ELEMENT] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gSensorPackageType->SensorMeasurements.arrayLen < v2gSensorPackageType_SensorMeasurements_ARRAY_SIZE) {
- errn = decode_v2gSensorMeasurementsType(stream, &v2gSensorPackageType->SensorMeasurements.array[v2gSensorPackageType->SensorMeasurements.arrayLen++]);
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- grammarID = 2035;
- break;
- case 1:
- done = 1;
- grammarID = 3;
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 2035:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorMeasurements), END_ELEMENT] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gSensorPackageType->SensorMeasurements.arrayLen < v2gSensorPackageType_SensorMeasurements_ARRAY_SIZE) {
- errn = decode_v2gSensorMeasurementsType(stream, &v2gSensorPackageType->SensorMeasurements.array[v2gSensorPackageType->SensorMeasurements.arrayLen++]);
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- grammarID = 2036;
- break;
- case 1:
- done = 1;
- grammarID = 3;
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 2036:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorMeasurements), END_ELEMENT] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gSensorPackageType->SensorMeasurements.arrayLen < v2gSensorPackageType_SensorMeasurements_ARRAY_SIZE) {
- errn = decode_v2gSensorMeasurementsType(stream, &v2gSensorPackageType->SensorMeasurements.array[v2gSensorPackageType->SensorMeasurements.arrayLen++]);
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- grammarID = 2037;
- break;
- case 1:
- done = 1;
- grammarID = 3;
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 2037:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorMeasurements), END_ELEMENT] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gSensorPackageType->SensorMeasurements.arrayLen < v2gSensorPackageType_SensorMeasurements_ARRAY_SIZE) {
- errn = decode_v2gSensorMeasurementsType(stream, &v2gSensorPackageType->SensorMeasurements.array[v2gSensorPackageType->SensorMeasurements.arrayLen++]);
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- grammarID = 2038;
- break;
- case 1:
- done = 1;
- grammarID = 3;
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 2038:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorMeasurements), END_ELEMENT] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gSensorPackageType->SensorMeasurements.arrayLen < v2gSensorPackageType_SensorMeasurements_ARRAY_SIZE) {
- errn = decode_v2gSensorMeasurementsType(stream, &v2gSensorPackageType->SensorMeasurements.array[v2gSensorPackageType->SensorMeasurements.arrayLen++]);
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- grammarID = 2039;
- break;
- case 1:
- done = 1;
- grammarID = 3;
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 2039:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorMeasurements), END_ELEMENT] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gSensorPackageType->SensorMeasurements.arrayLen < v2gSensorPackageType_SensorMeasurements_ARRAY_SIZE) {
- errn = decode_v2gSensorMeasurementsType(stream, &v2gSensorPackageType->SensorMeasurements.array[v2gSensorPackageType->SensorMeasurements.arrayLen++]);
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- grammarID = 2040;
- break;
- case 1:
- done = 1;
- grammarID = 3;
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 2040:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorMeasurements), END_ELEMENT] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gSensorPackageType->SensorMeasurements.arrayLen < v2gSensorPackageType_SensorMeasurements_ARRAY_SIZE) {
- errn = decode_v2gSensorMeasurementsType(stream, &v2gSensorPackageType->SensorMeasurements.array[v2gSensorPackageType->SensorMeasurements.arrayLen++]);
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- grammarID = 2041;
- break;
- case 1:
- done = 1;
- grammarID = 3;
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 2041:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorMeasurements), END_ELEMENT] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gSensorPackageType->SensorMeasurements.arrayLen < v2gSensorPackageType_SensorMeasurements_ARRAY_SIZE) {
- errn = decode_v2gSensorMeasurementsType(stream, &v2gSensorPackageType->SensorMeasurements.array[v2gSensorPackageType->SensorMeasurements.arrayLen++]);
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- grammarID = 2042;
- break;
- case 1:
- done = 1;
- grammarID = 3;
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 2042:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorMeasurements), END_ELEMENT] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gSensorPackageType->SensorMeasurements.arrayLen < v2gSensorPackageType_SensorMeasurements_ARRAY_SIZE) {
- errn = decode_v2gSensorMeasurementsType(stream, &v2gSensorPackageType->SensorMeasurements.array[v2gSensorPackageType->SensorMeasurements.arrayLen++]);
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- grammarID = 2043;
- break;
- case 1:
- done = 1;
- grammarID = 3;
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 2043:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorMeasurements), END_ELEMENT] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gSensorPackageType->SensorMeasurements.arrayLen < v2gSensorPackageType_SensorMeasurements_ARRAY_SIZE) {
- errn = decode_v2gSensorMeasurementsType(stream, &v2gSensorPackageType->SensorMeasurements.array[v2gSensorPackageType->SensorMeasurements.arrayLen++]);
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- grammarID = 2044;
- break;
- case 1:
- done = 1;
- grammarID = 3;
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 2044:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorMeasurements), END_ELEMENT] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gSensorPackageType->SensorMeasurements.arrayLen < v2gSensorPackageType_SensorMeasurements_ARRAY_SIZE) {
- errn = decode_v2gSensorMeasurementsType(stream, &v2gSensorPackageType->SensorMeasurements.array[v2gSensorPackageType->SensorMeasurements.arrayLen++]);
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- grammarID = 2045;
- break;
- case 1:
- done = 1;
- grammarID = 3;
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 2045:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorMeasurements), END_ELEMENT] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gSensorPackageType->SensorMeasurements.arrayLen < v2gSensorPackageType_SensorMeasurements_ARRAY_SIZE) {
- errn = decode_v2gSensorMeasurementsType(stream, &v2gSensorPackageType->SensorMeasurements.array[v2gSensorPackageType->SensorMeasurements.arrayLen++]);
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- grammarID = 2046;
- break;
- case 1:
- done = 1;
- grammarID = 3;
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 2046:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorMeasurements), END_ELEMENT] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gSensorPackageType->SensorMeasurements.arrayLen < v2gSensorPackageType_SensorMeasurements_ARRAY_SIZE) {
- errn = decode_v2gSensorMeasurementsType(stream, &v2gSensorPackageType->SensorMeasurements.array[v2gSensorPackageType->SensorMeasurements.arrayLen++]);
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- grammarID = 2047;
- break;
- case 1:
- done = 1;
- grammarID = 3;
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 2047:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorMeasurements), END_ELEMENT] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gSensorPackageType->SensorMeasurements.arrayLen < v2gSensorPackageType_SensorMeasurements_ARRAY_SIZE) {
- errn = decode_v2gSensorMeasurementsType(stream, &v2gSensorPackageType->SensorMeasurements.array[v2gSensorPackageType->SensorMeasurements.arrayLen++]);
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- grammarID = 2048;
- break;
- case 1:
- done = 1;
- grammarID = 3;
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 2048:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorMeasurements), END_ELEMENT] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gSensorPackageType->SensorMeasurements.arrayLen < v2gSensorPackageType_SensorMeasurements_ARRAY_SIZE) {
- errn = decode_v2gSensorMeasurementsType(stream, &v2gSensorPackageType->SensorMeasurements.array[v2gSensorPackageType->SensorMeasurements.arrayLen++]);
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- grammarID = 2049;
- break;
- case 1:
- done = 1;
- grammarID = 3;
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 2049:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorMeasurements), END_ELEMENT] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gSensorPackageType->SensorMeasurements.arrayLen < v2gSensorPackageType_SensorMeasurements_ARRAY_SIZE) {
- errn = decode_v2gSensorMeasurementsType(stream, &v2gSensorPackageType->SensorMeasurements.array[v2gSensorPackageType->SensorMeasurements.arrayLen++]);
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- grammarID = 2050;
- break;
- case 1:
- done = 1;
- grammarID = 3;
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 2050:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorMeasurements), END_ELEMENT] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gSensorPackageType->SensorMeasurements.arrayLen < v2gSensorPackageType_SensorMeasurements_ARRAY_SIZE) {
- errn = decode_v2gSensorMeasurementsType(stream, &v2gSensorPackageType->SensorMeasurements.array[v2gSensorPackageType->SensorMeasurements.arrayLen++]);
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- grammarID = 2051;
- break;
- case 1:
- done = 1;
- grammarID = 3;
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 2051:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorMeasurements), END_ELEMENT] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gSensorPackageType->SensorMeasurements.arrayLen < v2gSensorPackageType_SensorMeasurements_ARRAY_SIZE) {
- errn = decode_v2gSensorMeasurementsType(stream, &v2gSensorPackageType->SensorMeasurements.array[v2gSensorPackageType->SensorMeasurements.arrayLen++]);
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- grammarID = 2052;
- break;
- case 1:
- done = 1;
- grammarID = 3;
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 2052:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorMeasurements), END_ELEMENT] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gSensorPackageType->SensorMeasurements.arrayLen < v2gSensorPackageType_SensorMeasurements_ARRAY_SIZE) {
- errn = decode_v2gSensorMeasurementsType(stream, &v2gSensorPackageType->SensorMeasurements.array[v2gSensorPackageType->SensorMeasurements.arrayLen++]);
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- grammarID = 2053;
- break;
- case 1:
- done = 1;
- grammarID = 3;
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 2053:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorMeasurements), END_ELEMENT] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gSensorPackageType->SensorMeasurements.arrayLen < v2gSensorPackageType_SensorMeasurements_ARRAY_SIZE) {
- errn = decode_v2gSensorMeasurementsType(stream, &v2gSensorPackageType->SensorMeasurements.array[v2gSensorPackageType->SensorMeasurements.arrayLen++]);
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- grammarID = 2054;
- break;
- case 1:
- done = 1;
- grammarID = 3;
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 2054:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorMeasurements), END_ELEMENT] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gSensorPackageType->SensorMeasurements.arrayLen < v2gSensorPackageType_SensorMeasurements_ARRAY_SIZE) {
- errn = decode_v2gSensorMeasurementsType(stream, &v2gSensorPackageType->SensorMeasurements.array[v2gSensorPackageType->SensorMeasurements.arrayLen++]);
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- grammarID = 2055;
- break;
- case 1:
- done = 1;
- grammarID = 3;
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 2055:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorMeasurements), END_ELEMENT] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gSensorPackageType->SensorMeasurements.arrayLen < v2gSensorPackageType_SensorMeasurements_ARRAY_SIZE) {
- errn = decode_v2gSensorMeasurementsType(stream, &v2gSensorPackageType->SensorMeasurements.array[v2gSensorPackageType->SensorMeasurements.arrayLen++]);
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- grammarID = 2056;
- break;
- case 1:
- done = 1;
- grammarID = 3;
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 2056:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorMeasurements), END_ELEMENT] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gSensorPackageType->SensorMeasurements.arrayLen < v2gSensorPackageType_SensorMeasurements_ARRAY_SIZE) {
- errn = decode_v2gSensorMeasurementsType(stream, &v2gSensorPackageType->SensorMeasurements.array[v2gSensorPackageType->SensorMeasurements.arrayLen++]);
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- grammarID = 2057;
- break;
- case 1:
- done = 1;
- grammarID = 3;
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 2057:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorMeasurements), END_ELEMENT] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gSensorPackageType->SensorMeasurements.arrayLen < v2gSensorPackageType_SensorMeasurements_ARRAY_SIZE) {
- errn = decode_v2gSensorMeasurementsType(stream, &v2gSensorPackageType->SensorMeasurements.array[v2gSensorPackageType->SensorMeasurements.arrayLen++]);
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- grammarID = 2058;
- break;
- case 1:
- done = 1;
- grammarID = 3;
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 2058:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorMeasurements), END_ELEMENT] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gSensorPackageType->SensorMeasurements.arrayLen < v2gSensorPackageType_SensorMeasurements_ARRAY_SIZE) {
- errn = decode_v2gSensorMeasurementsType(stream, &v2gSensorPackageType->SensorMeasurements.array[v2gSensorPackageType->SensorMeasurements.arrayLen++]);
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- grammarID = 2059;
- break;
- case 1:
- done = 1;
- grammarID = 3;
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 2059:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorMeasurements), END_ELEMENT] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gSensorPackageType->SensorMeasurements.arrayLen < v2gSensorPackageType_SensorMeasurements_ARRAY_SIZE) {
- errn = decode_v2gSensorMeasurementsType(stream, &v2gSensorPackageType->SensorMeasurements.array[v2gSensorPackageType->SensorMeasurements.arrayLen++]);
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- grammarID = 2060;
- break;
- case 1:
- done = 1;
- grammarID = 3;
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 2060:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorMeasurements), END_ELEMENT] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gSensorPackageType->SensorMeasurements.arrayLen < v2gSensorPackageType_SensorMeasurements_ARRAY_SIZE) {
- errn = decode_v2gSensorMeasurementsType(stream, &v2gSensorPackageType->SensorMeasurements.array[v2gSensorPackageType->SensorMeasurements.arrayLen++]);
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- grammarID = 2061;
- break;
- case 1:
- done = 1;
- grammarID = 3;
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 2061:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorMeasurements), END_ELEMENT] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gSensorPackageType->SensorMeasurements.arrayLen < v2gSensorPackageType_SensorMeasurements_ARRAY_SIZE) {
- errn = decode_v2gSensorMeasurementsType(stream, &v2gSensorPackageType->SensorMeasurements.array[v2gSensorPackageType->SensorMeasurements.arrayLen++]);
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- grammarID = 2062;
- break;
- case 1:
- done = 1;
- grammarID = 3;
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 2062:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorMeasurements), END_ELEMENT] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gSensorPackageType->SensorMeasurements.arrayLen < v2gSensorPackageType_SensorMeasurements_ARRAY_SIZE) {
- errn = decode_v2gSensorMeasurementsType(stream, &v2gSensorPackageType->SensorMeasurements.array[v2gSensorPackageType->SensorMeasurements.arrayLen++]);
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- grammarID = 2063;
- break;
- case 1:
- done = 1;
- grammarID = 3;
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 2063:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorMeasurements), END_ELEMENT] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gSensorPackageType->SensorMeasurements.arrayLen < v2gSensorPackageType_SensorMeasurements_ARRAY_SIZE) {
- errn = decode_v2gSensorMeasurementsType(stream, &v2gSensorPackageType->SensorMeasurements.array[v2gSensorPackageType->SensorMeasurements.arrayLen++]);
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- grammarID = 2064;
- break;
- case 1:
- done = 1;
- grammarID = 3;
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 2064:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorMeasurements), END_ELEMENT] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gSensorPackageType->SensorMeasurements.arrayLen < v2gSensorPackageType_SensorMeasurements_ARRAY_SIZE) {
- errn = decode_v2gSensorMeasurementsType(stream, &v2gSensorPackageType->SensorMeasurements.array[v2gSensorPackageType->SensorMeasurements.arrayLen++]);
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- grammarID = 2065;
- break;
- case 1:
- done = 1;
- grammarID = 3;
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 2065:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorMeasurements), END_ELEMENT] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gSensorPackageType->SensorMeasurements.arrayLen < v2gSensorPackageType_SensorMeasurements_ARRAY_SIZE) {
- errn = decode_v2gSensorMeasurementsType(stream, &v2gSensorPackageType->SensorMeasurements.array[v2gSensorPackageType->SensorMeasurements.arrayLen++]);
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- grammarID = 2066;
- break;
- case 1:
- done = 1;
- grammarID = 3;
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 2066:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorMeasurements), END_ELEMENT] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gSensorPackageType->SensorMeasurements.arrayLen < v2gSensorPackageType_SensorMeasurements_ARRAY_SIZE) {
- errn = decode_v2gSensorMeasurementsType(stream, &v2gSensorPackageType->SensorMeasurements.array[v2gSensorPackageType->SensorMeasurements.arrayLen++]);
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- grammarID = 2067;
- break;
- case 1:
- done = 1;
- grammarID = 3;
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 2067:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorMeasurements), END_ELEMENT] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gSensorPackageType->SensorMeasurements.arrayLen < v2gSensorPackageType_SensorMeasurements_ARRAY_SIZE) {
- errn = decode_v2gSensorMeasurementsType(stream, &v2gSensorPackageType->SensorMeasurements.array[v2gSensorPackageType->SensorMeasurements.arrayLen++]);
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- grammarID = 2068;
- break;
- case 1:
- done = 1;
- grammarID = 3;
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 2068:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorMeasurements), END_ELEMENT] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gSensorPackageType->SensorMeasurements.arrayLen < v2gSensorPackageType_SensorMeasurements_ARRAY_SIZE) {
- errn = decode_v2gSensorMeasurementsType(stream, &v2gSensorPackageType->SensorMeasurements.array[v2gSensorPackageType->SensorMeasurements.arrayLen++]);
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- grammarID = 2069;
- break;
- case 1:
- done = 1;
- grammarID = 3;
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 2069:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorMeasurements), END_ELEMENT] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gSensorPackageType->SensorMeasurements.arrayLen < v2gSensorPackageType_SensorMeasurements_ARRAY_SIZE) {
- errn = decode_v2gSensorMeasurementsType(stream, &v2gSensorPackageType->SensorMeasurements.array[v2gSensorPackageType->SensorMeasurements.arrayLen++]);
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- grammarID = 2070;
- break;
- case 1:
- done = 1;
- grammarID = 3;
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 2070:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorMeasurements), END_ELEMENT] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gSensorPackageType->SensorMeasurements.arrayLen < v2gSensorPackageType_SensorMeasurements_ARRAY_SIZE) {
- errn = decode_v2gSensorMeasurementsType(stream, &v2gSensorPackageType->SensorMeasurements.array[v2gSensorPackageType->SensorMeasurements.arrayLen++]);
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- grammarID = 2071;
- break;
- case 1:
- done = 1;
- grammarID = 3;
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 2071:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorMeasurements), END_ELEMENT] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gSensorPackageType->SensorMeasurements.arrayLen < v2gSensorPackageType_SensorMeasurements_ARRAY_SIZE) {
- errn = decode_v2gSensorMeasurementsType(stream, &v2gSensorPackageType->SensorMeasurements.array[v2gSensorPackageType->SensorMeasurements.arrayLen++]);
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- grammarID = 2072;
- break;
- case 1:
- done = 1;
- grammarID = 3;
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 2072:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorMeasurements), END_ELEMENT] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gSensorPackageType->SensorMeasurements.arrayLen < v2gSensorPackageType_SensorMeasurements_ARRAY_SIZE) {
- errn = decode_v2gSensorMeasurementsType(stream, &v2gSensorPackageType->SensorMeasurements.array[v2gSensorPackageType->SensorMeasurements.arrayLen++]);
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- grammarID = 2073;
- break;
- case 1:
- done = 1;
- grammarID = 3;
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 2073:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorMeasurements), END_ELEMENT] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gSensorPackageType->SensorMeasurements.arrayLen < v2gSensorPackageType_SensorMeasurements_ARRAY_SIZE) {
- errn = decode_v2gSensorMeasurementsType(stream, &v2gSensorPackageType->SensorMeasurements.array[v2gSensorPackageType->SensorMeasurements.arrayLen++]);
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- grammarID = 2074;
- break;
- case 1:
- done = 1;
- grammarID = 3;
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 2074:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorMeasurements), END_ELEMENT] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gSensorPackageType->SensorMeasurements.arrayLen < v2gSensorPackageType_SensorMeasurements_ARRAY_SIZE) {
- errn = decode_v2gSensorMeasurementsType(stream, &v2gSensorPackageType->SensorMeasurements.array[v2gSensorPackageType->SensorMeasurements.arrayLen++]);
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- grammarID = 2075;
- break;
- case 1:
- done = 1;
- grammarID = 3;
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 2075:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorMeasurements), END_ELEMENT] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gSensorPackageType->SensorMeasurements.arrayLen < v2gSensorPackageType_SensorMeasurements_ARRAY_SIZE) {
- errn = decode_v2gSensorMeasurementsType(stream, &v2gSensorPackageType->SensorMeasurements.array[v2gSensorPackageType->SensorMeasurements.arrayLen++]);
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- grammarID = 2076;
- break;
- case 1:
- done = 1;
- grammarID = 3;
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 2076:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorMeasurements), END_ELEMENT] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gSensorPackageType->SensorMeasurements.arrayLen < v2gSensorPackageType_SensorMeasurements_ARRAY_SIZE) {
- errn = decode_v2gSensorMeasurementsType(stream, &v2gSensorPackageType->SensorMeasurements.array[v2gSensorPackageType->SensorMeasurements.arrayLen++]);
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- grammarID = 2077;
- break;
- case 1:
- done = 1;
- grammarID = 3;
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 2077:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorMeasurements), END_ELEMENT] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gSensorPackageType->SensorMeasurements.arrayLen < v2gSensorPackageType_SensorMeasurements_ARRAY_SIZE) {
- errn = decode_v2gSensorMeasurementsType(stream, &v2gSensorPackageType->SensorMeasurements.array[v2gSensorPackageType->SensorMeasurements.arrayLen++]);
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- grammarID = 2078;
- break;
- case 1:
- done = 1;
- grammarID = 3;
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 2078:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorMeasurements), END_ELEMENT] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gSensorPackageType->SensorMeasurements.arrayLen < v2gSensorPackageType_SensorMeasurements_ARRAY_SIZE) {
- errn = decode_v2gSensorMeasurementsType(stream, &v2gSensorPackageType->SensorMeasurements.array[v2gSensorPackageType->SensorMeasurements.arrayLen++]);
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- grammarID = 2079;
- break;
- case 1:
- done = 1;
- grammarID = 3;
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 2079:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorMeasurements), END_ELEMENT] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gSensorPackageType->SensorMeasurements.arrayLen < v2gSensorPackageType_SensorMeasurements_ARRAY_SIZE) {
- errn = decode_v2gSensorMeasurementsType(stream, &v2gSensorPackageType->SensorMeasurements.array[v2gSensorPackageType->SensorMeasurements.arrayLen++]);
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- grammarID = 2080;
- break;
- case 1:
- done = 1;
- grammarID = 3;
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 2080:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorMeasurements), END_ELEMENT] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gSensorPackageType->SensorMeasurements.arrayLen < v2gSensorPackageType_SensorMeasurements_ARRAY_SIZE) {
- errn = decode_v2gSensorMeasurementsType(stream, &v2gSensorPackageType->SensorMeasurements.array[v2gSensorPackageType->SensorMeasurements.arrayLen++]);
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- grammarID = 2081;
- break;
- case 1:
- done = 1;
- grammarID = 3;
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 2081:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorMeasurements), END_ELEMENT] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gSensorPackageType->SensorMeasurements.arrayLen < v2gSensorPackageType_SensorMeasurements_ARRAY_SIZE) {
- errn = decode_v2gSensorMeasurementsType(stream, &v2gSensorPackageType->SensorMeasurements.array[v2gSensorPackageType->SensorMeasurements.arrayLen++]);
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- grammarID = 2082;
- break;
- case 1:
- done = 1;
- grammarID = 3;
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 2082:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorMeasurements), END_ELEMENT] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gSensorPackageType->SensorMeasurements.arrayLen < v2gSensorPackageType_SensorMeasurements_ARRAY_SIZE) {
- errn = decode_v2gSensorMeasurementsType(stream, &v2gSensorPackageType->SensorMeasurements.array[v2gSensorPackageType->SensorMeasurements.arrayLen++]);
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- grammarID = 2083;
- break;
- case 1:
- done = 1;
- grammarID = 3;
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 2083:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorMeasurements), END_ELEMENT] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gSensorPackageType->SensorMeasurements.arrayLen < v2gSensorPackageType_SensorMeasurements_ARRAY_SIZE) {
- errn = decode_v2gSensorMeasurementsType(stream, &v2gSensorPackageType->SensorMeasurements.array[v2gSensorPackageType->SensorMeasurements.arrayLen++]);
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- grammarID = 2084;
- break;
- case 1:
- done = 1;
- grammarID = 3;
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 2084:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorMeasurements), END_ELEMENT] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gSensorPackageType->SensorMeasurements.arrayLen < v2gSensorPackageType_SensorMeasurements_ARRAY_SIZE) {
- errn = decode_v2gSensorMeasurementsType(stream, &v2gSensorPackageType->SensorMeasurements.array[v2gSensorPackageType->SensorMeasurements.arrayLen++]);
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- grammarID = 2085;
- break;
- case 1:
- done = 1;
- grammarID = 3;
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 2085:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorMeasurements), END_ELEMENT] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gSensorPackageType->SensorMeasurements.arrayLen < v2gSensorPackageType_SensorMeasurements_ARRAY_SIZE) {
- errn = decode_v2gSensorMeasurementsType(stream, &v2gSensorPackageType->SensorMeasurements.array[v2gSensorPackageType->SensorMeasurements.arrayLen++]);
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- grammarID = 2086;
- break;
- case 1:
- done = 1;
- grammarID = 3;
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 2086:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorMeasurements), END_ELEMENT] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gSensorPackageType->SensorMeasurements.arrayLen < v2gSensorPackageType_SensorMeasurements_ARRAY_SIZE) {
- errn = decode_v2gSensorMeasurementsType(stream, &v2gSensorPackageType->SensorMeasurements.array[v2gSensorPackageType->SensorMeasurements.arrayLen++]);
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- grammarID = 2087;
- break;
- case 1:
- done = 1;
- grammarID = 3;
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 2087:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorMeasurements), END_ELEMENT] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gSensorPackageType->SensorMeasurements.arrayLen < v2gSensorPackageType_SensorMeasurements_ARRAY_SIZE) {
- errn = decode_v2gSensorMeasurementsType(stream, &v2gSensorPackageType->SensorMeasurements.array[v2gSensorPackageType->SensorMeasurements.arrayLen++]);
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- grammarID = 2088;
- break;
- case 1:
- done = 1;
- grammarID = 3;
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 2088:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorMeasurements), END_ELEMENT] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gSensorPackageType->SensorMeasurements.arrayLen < v2gSensorPackageType_SensorMeasurements_ARRAY_SIZE) {
- errn = decode_v2gSensorMeasurementsType(stream, &v2gSensorPackageType->SensorMeasurements.array[v2gSensorPackageType->SensorMeasurements.arrayLen++]);
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- grammarID = 2089;
- break;
- case 1:
- done = 1;
- grammarID = 3;
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 2089:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorMeasurements), END_ELEMENT] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gSensorPackageType->SensorMeasurements.arrayLen < v2gSensorPackageType_SensorMeasurements_ARRAY_SIZE) {
- errn = decode_v2gSensorMeasurementsType(stream, &v2gSensorPackageType->SensorMeasurements.array[v2gSensorPackageType->SensorMeasurements.arrayLen++]);
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- grammarID = 2090;
- break;
- case 1:
- done = 1;
- grammarID = 3;
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 2090:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorMeasurements), END_ELEMENT] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gSensorPackageType->SensorMeasurements.arrayLen < v2gSensorPackageType_SensorMeasurements_ARRAY_SIZE) {
- errn = decode_v2gSensorMeasurementsType(stream, &v2gSensorPackageType->SensorMeasurements.array[v2gSensorPackageType->SensorMeasurements.arrayLen++]);
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- grammarID = 2091;
- break;
- case 1:
- done = 1;
- grammarID = 3;
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 2091:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorMeasurements), END_ELEMENT] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gSensorPackageType->SensorMeasurements.arrayLen < v2gSensorPackageType_SensorMeasurements_ARRAY_SIZE) {
- errn = decode_v2gSensorMeasurementsType(stream, &v2gSensorPackageType->SensorMeasurements.array[v2gSensorPackageType->SensorMeasurements.arrayLen++]);
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- grammarID = 2092;
- break;
- case 1:
- done = 1;
- grammarID = 3;
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 2092:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorMeasurements), END_ELEMENT] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gSensorPackageType->SensorMeasurements.arrayLen < v2gSensorPackageType_SensorMeasurements_ARRAY_SIZE) {
- errn = decode_v2gSensorMeasurementsType(stream, &v2gSensorPackageType->SensorMeasurements.array[v2gSensorPackageType->SensorMeasurements.arrayLen++]);
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- grammarID = 2093;
- break;
- case 1:
- done = 1;
- grammarID = 3;
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 2093:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorMeasurements), END_ELEMENT] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gSensorPackageType->SensorMeasurements.arrayLen < v2gSensorPackageType_SensorMeasurements_ARRAY_SIZE) {
- errn = decode_v2gSensorMeasurementsType(stream, &v2gSensorPackageType->SensorMeasurements.array[v2gSensorPackageType->SensorMeasurements.arrayLen++]);
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- grammarID = 2094;
- break;
- case 1:
- done = 1;
- grammarID = 3;
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 2094:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorMeasurements), END_ELEMENT] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gSensorPackageType->SensorMeasurements.arrayLen < v2gSensorPackageType_SensorMeasurements_ARRAY_SIZE) {
- errn = decode_v2gSensorMeasurementsType(stream, &v2gSensorPackageType->SensorMeasurements.array[v2gSensorPackageType->SensorMeasurements.arrayLen++]);
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- grammarID = 2095;
- break;
- case 1:
- done = 1;
- grammarID = 3;
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 2095:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorMeasurements), END_ELEMENT] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gSensorPackageType->SensorMeasurements.arrayLen < v2gSensorPackageType_SensorMeasurements_ARRAY_SIZE) {
- errn = decode_v2gSensorMeasurementsType(stream, &v2gSensorPackageType->SensorMeasurements.array[v2gSensorPackageType->SensorMeasurements.arrayLen++]);
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- grammarID = 2096;
- break;
- case 1:
- done = 1;
- grammarID = 3;
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 2096:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorMeasurements), END_ELEMENT] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gSensorPackageType->SensorMeasurements.arrayLen < v2gSensorPackageType_SensorMeasurements_ARRAY_SIZE) {
- errn = decode_v2gSensorMeasurementsType(stream, &v2gSensorPackageType->SensorMeasurements.array[v2gSensorPackageType->SensorMeasurements.arrayLen++]);
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- grammarID = 2097;
- break;
- case 1:
- done = 1;
- grammarID = 3;
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 2097:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorMeasurements), END_ELEMENT] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gSensorPackageType->SensorMeasurements.arrayLen < v2gSensorPackageType_SensorMeasurements_ARRAY_SIZE) {
- errn = decode_v2gSensorMeasurementsType(stream, &v2gSensorPackageType->SensorMeasurements.array[v2gSensorPackageType->SensorMeasurements.arrayLen++]);
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- grammarID = 2098;
- break;
- case 1:
- done = 1;
- grammarID = 3;
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 2098:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorMeasurements), END_ELEMENT] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gSensorPackageType->SensorMeasurements.arrayLen < v2gSensorPackageType_SensorMeasurements_ARRAY_SIZE) {
- errn = decode_v2gSensorMeasurementsType(stream, &v2gSensorPackageType->SensorMeasurements.array[v2gSensorPackageType->SensorMeasurements.arrayLen++]);
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- grammarID = 2099;
- break;
- case 1:
- done = 1;
- grammarID = 3;
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 2099:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorMeasurements), END_ELEMENT] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gSensorPackageType->SensorMeasurements.arrayLen < v2gSensorPackageType_SensorMeasurements_ARRAY_SIZE) {
- errn = decode_v2gSensorMeasurementsType(stream, &v2gSensorPackageType->SensorMeasurements.array[v2gSensorPackageType->SensorMeasurements.arrayLen++]);
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- grammarID = 2100;
- break;
- case 1:
- done = 1;
- grammarID = 3;
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 2100:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorMeasurements), END_ELEMENT] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gSensorPackageType->SensorMeasurements.arrayLen < v2gSensorPackageType_SensorMeasurements_ARRAY_SIZE) {
- errn = decode_v2gSensorMeasurementsType(stream, &v2gSensorPackageType->SensorMeasurements.array[v2gSensorPackageType->SensorMeasurements.arrayLen++]);
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- grammarID = 2101;
- break;
- case 1:
- done = 1;
- grammarID = 3;
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 2101:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorMeasurements), END_ELEMENT] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gSensorPackageType->SensorMeasurements.arrayLen < v2gSensorPackageType_SensorMeasurements_ARRAY_SIZE) {
- errn = decode_v2gSensorMeasurementsType(stream, &v2gSensorPackageType->SensorMeasurements.array[v2gSensorPackageType->SensorMeasurements.arrayLen++]);
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- grammarID = 2102;
- break;
- case 1:
- done = 1;
- grammarID = 3;
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 2102:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorMeasurements), END_ELEMENT] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gSensorPackageType->SensorMeasurements.arrayLen < v2gSensorPackageType_SensorMeasurements_ARRAY_SIZE) {
- errn = decode_v2gSensorMeasurementsType(stream, &v2gSensorPackageType->SensorMeasurements.array[v2gSensorPackageType->SensorMeasurements.arrayLen++]);
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- grammarID = 2103;
- break;
- case 1:
- done = 1;
- grammarID = 3;
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 2103:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorMeasurements), END_ELEMENT] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gSensorPackageType->SensorMeasurements.arrayLen < v2gSensorPackageType_SensorMeasurements_ARRAY_SIZE) {
- errn = decode_v2gSensorMeasurementsType(stream, &v2gSensorPackageType->SensorMeasurements.array[v2gSensorPackageType->SensorMeasurements.arrayLen++]);
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- grammarID = 2104;
- break;
- case 1:
- done = 1;
- grammarID = 3;
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 2104:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorMeasurements), END_ELEMENT] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gSensorPackageType->SensorMeasurements.arrayLen < v2gSensorPackageType_SensorMeasurements_ARRAY_SIZE) {
- errn = decode_v2gSensorMeasurementsType(stream, &v2gSensorPackageType->SensorMeasurements.array[v2gSensorPackageType->SensorMeasurements.arrayLen++]);
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- grammarID = 2105;
- break;
- case 1:
- done = 1;
- grammarID = 3;
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 2105:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorMeasurements), END_ELEMENT] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gSensorPackageType->SensorMeasurements.arrayLen < v2gSensorPackageType_SensorMeasurements_ARRAY_SIZE) {
- errn = decode_v2gSensorMeasurementsType(stream, &v2gSensorPackageType->SensorMeasurements.array[v2gSensorPackageType->SensorMeasurements.arrayLen++]);
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- grammarID = 2106;
- break;
- case 1:
- done = 1;
- grammarID = 3;
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 2106:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorMeasurements), END_ELEMENT] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gSensorPackageType->SensorMeasurements.arrayLen < v2gSensorPackageType_SensorMeasurements_ARRAY_SIZE) {
- errn = decode_v2gSensorMeasurementsType(stream, &v2gSensorPackageType->SensorMeasurements.array[v2gSensorPackageType->SensorMeasurements.arrayLen++]);
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- grammarID = 2107;
- break;
- case 1:
- done = 1;
- grammarID = 3;
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 2107:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorMeasurements), END_ELEMENT] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gSensorPackageType->SensorMeasurements.arrayLen < v2gSensorPackageType_SensorMeasurements_ARRAY_SIZE) {
- errn = decode_v2gSensorMeasurementsType(stream, &v2gSensorPackageType->SensorMeasurements.array[v2gSensorPackageType->SensorMeasurements.arrayLen++]);
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- grammarID = 2108;
- break;
- case 1:
- done = 1;
- grammarID = 3;
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 2108:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorMeasurements), END_ELEMENT] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gSensorPackageType->SensorMeasurements.arrayLen < v2gSensorPackageType_SensorMeasurements_ARRAY_SIZE) {
- errn = decode_v2gSensorMeasurementsType(stream, &v2gSensorPackageType->SensorMeasurements.array[v2gSensorPackageType->SensorMeasurements.arrayLen++]);
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- grammarID = 2109;
- break;
- case 1:
- done = 1;
- grammarID = 3;
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 2109:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorMeasurements), END_ELEMENT] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gSensorPackageType->SensorMeasurements.arrayLen < v2gSensorPackageType_SensorMeasurements_ARRAY_SIZE) {
- errn = decode_v2gSensorMeasurementsType(stream, &v2gSensorPackageType->SensorMeasurements.array[v2gSensorPackageType->SensorMeasurements.arrayLen++]);
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- grammarID = 2110;
- break;
- case 1:
- done = 1;
- grammarID = 3;
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 2110:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorMeasurements), END_ELEMENT] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gSensorPackageType->SensorMeasurements.arrayLen < v2gSensorPackageType_SensorMeasurements_ARRAY_SIZE) {
- errn = decode_v2gSensorMeasurementsType(stream, &v2gSensorPackageType->SensorMeasurements.array[v2gSensorPackageType->SensorMeasurements.arrayLen++]);
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- grammarID = 2111;
- break;
- case 1:
- done = 1;
- grammarID = 3;
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 2111:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorMeasurements), END_ELEMENT] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gSensorPackageType->SensorMeasurements.arrayLen < v2gSensorPackageType_SensorMeasurements_ARRAY_SIZE) {
- errn = decode_v2gSensorMeasurementsType(stream, &v2gSensorPackageType->SensorMeasurements.array[v2gSensorPackageType->SensorMeasurements.arrayLen++]);
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- grammarID = 2112;
- break;
- case 1:
- done = 1;
- grammarID = 3;
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 2112:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorMeasurements), END_ELEMENT] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gSensorPackageType->SensorMeasurements.arrayLen < v2gSensorPackageType_SensorMeasurements_ARRAY_SIZE) {
- errn = decode_v2gSensorMeasurementsType(stream, &v2gSensorPackageType->SensorMeasurements.array[v2gSensorPackageType->SensorMeasurements.arrayLen++]);
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- grammarID = 2113;
- break;
- case 1:
- done = 1;
- grammarID = 3;
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 2113:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorMeasurements), END_ELEMENT] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gSensorPackageType->SensorMeasurements.arrayLen < v2gSensorPackageType_SensorMeasurements_ARRAY_SIZE) {
- errn = decode_v2gSensorMeasurementsType(stream, &v2gSensorPackageType->SensorMeasurements.array[v2gSensorPackageType->SensorMeasurements.arrayLen++]);
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- grammarID = 2114;
- break;
- case 1:
- done = 1;
- grammarID = 3;
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 2114:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorMeasurements), END_ELEMENT] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gSensorPackageType->SensorMeasurements.arrayLen < v2gSensorPackageType_SensorMeasurements_ARRAY_SIZE) {
- errn = decode_v2gSensorMeasurementsType(stream, &v2gSensorPackageType->SensorMeasurements.array[v2gSensorPackageType->SensorMeasurements.arrayLen++]);
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- grammarID = 2115;
- break;
- case 1:
- done = 1;
- grammarID = 3;
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 2115:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorMeasurements), END_ELEMENT] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gSensorPackageType->SensorMeasurements.arrayLen < v2gSensorPackageType_SensorMeasurements_ARRAY_SIZE) {
- errn = decode_v2gSensorMeasurementsType(stream, &v2gSensorPackageType->SensorMeasurements.array[v2gSensorPackageType->SensorMeasurements.arrayLen++]);
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- grammarID = 2116;
- break;
- case 1:
- done = 1;
- grammarID = 3;
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 2116:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorMeasurements), END_ELEMENT] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gSensorPackageType->SensorMeasurements.arrayLen < v2gSensorPackageType_SensorMeasurements_ARRAY_SIZE) {
- errn = decode_v2gSensorMeasurementsType(stream, &v2gSensorPackageType->SensorMeasurements.array[v2gSensorPackageType->SensorMeasurements.arrayLen++]);
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- grammarID = 2117;
- break;
- case 1:
- done = 1;
- grammarID = 3;
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 2117:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorMeasurements), END_ELEMENT] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gSensorPackageType->SensorMeasurements.arrayLen < v2gSensorPackageType_SensorMeasurements_ARRAY_SIZE) {
- errn = decode_v2gSensorMeasurementsType(stream, &v2gSensorPackageType->SensorMeasurements.array[v2gSensorPackageType->SensorMeasurements.arrayLen++]);
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- grammarID = 2118;
- break;
- case 1:
- done = 1;
- grammarID = 3;
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 2118:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorMeasurements), END_ELEMENT] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gSensorPackageType->SensorMeasurements.arrayLen < v2gSensorPackageType_SensorMeasurements_ARRAY_SIZE) {
- errn = decode_v2gSensorMeasurementsType(stream, &v2gSensorPackageType->SensorMeasurements.array[v2gSensorPackageType->SensorMeasurements.arrayLen++]);
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- grammarID = 2119;
- break;
- case 1:
- done = 1;
- grammarID = 3;
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 2119:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorMeasurements), END_ELEMENT] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gSensorPackageType->SensorMeasurements.arrayLen < v2gSensorPackageType_SensorMeasurements_ARRAY_SIZE) {
- errn = decode_v2gSensorMeasurementsType(stream, &v2gSensorPackageType->SensorMeasurements.array[v2gSensorPackageType->SensorMeasurements.arrayLen++]);
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- grammarID = 2120;
- break;
- case 1:
- done = 1;
- grammarID = 3;
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 2120:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorMeasurements), END_ELEMENT] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gSensorPackageType->SensorMeasurements.arrayLen < v2gSensorPackageType_SensorMeasurements_ARRAY_SIZE) {
- errn = decode_v2gSensorMeasurementsType(stream, &v2gSensorPackageType->SensorMeasurements.array[v2gSensorPackageType->SensorMeasurements.arrayLen++]);
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- grammarID = 2121;
- break;
- case 1:
- done = 1;
- grammarID = 3;
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 2121:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorMeasurements), END_ELEMENT] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gSensorPackageType->SensorMeasurements.arrayLen < v2gSensorPackageType_SensorMeasurements_ARRAY_SIZE) {
- errn = decode_v2gSensorMeasurementsType(stream, &v2gSensorPackageType->SensorMeasurements.array[v2gSensorPackageType->SensorMeasurements.arrayLen++]);
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- grammarID = 2122;
- break;
- case 1:
- done = 1;
- grammarID = 3;
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 2122:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorMeasurements), END_ELEMENT] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gSensorPackageType->SensorMeasurements.arrayLen < v2gSensorPackageType_SensorMeasurements_ARRAY_SIZE) {
- errn = decode_v2gSensorMeasurementsType(stream, &v2gSensorPackageType->SensorMeasurements.array[v2gSensorPackageType->SensorMeasurements.arrayLen++]);
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- grammarID = 2123;
- break;
- case 1:
- done = 1;
- grammarID = 3;
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 2123:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorMeasurements), END_ELEMENT] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gSensorPackageType->SensorMeasurements.arrayLen < v2gSensorPackageType_SensorMeasurements_ARRAY_SIZE) {
- errn = decode_v2gSensorMeasurementsType(stream, &v2gSensorPackageType->SensorMeasurements.array[v2gSensorPackageType->SensorMeasurements.arrayLen++]);
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- grammarID = 2124;
- break;
- case 1:
- done = 1;
- grammarID = 3;
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 2124:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorMeasurements), END_ELEMENT] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gSensorPackageType->SensorMeasurements.arrayLen < v2gSensorPackageType_SensorMeasurements_ARRAY_SIZE) {
- errn = decode_v2gSensorMeasurementsType(stream, &v2gSensorPackageType->SensorMeasurements.array[v2gSensorPackageType->SensorMeasurements.arrayLen++]);
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- grammarID = 2125;
- break;
- case 1:
- done = 1;
- grammarID = 3;
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 2125:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorMeasurements), END_ELEMENT] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gSensorPackageType->SensorMeasurements.arrayLen < v2gSensorPackageType_SensorMeasurements_ARRAY_SIZE) {
- errn = decode_v2gSensorMeasurementsType(stream, &v2gSensorPackageType->SensorMeasurements.array[v2gSensorPackageType->SensorMeasurements.arrayLen++]);
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- grammarID = 2126;
- break;
- case 1:
- done = 1;
- grammarID = 3;
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 2126:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorMeasurements), END_ELEMENT] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gSensorPackageType->SensorMeasurements.arrayLen < v2gSensorPackageType_SensorMeasurements_ARRAY_SIZE) {
- errn = decode_v2gSensorMeasurementsType(stream, &v2gSensorPackageType->SensorMeasurements.array[v2gSensorPackageType->SensorMeasurements.arrayLen++]);
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- grammarID = 2127;
- break;
- case 1:
- done = 1;
- grammarID = 3;
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 2127:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorMeasurements), END_ELEMENT] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gSensorPackageType->SensorMeasurements.arrayLen < v2gSensorPackageType_SensorMeasurements_ARRAY_SIZE) {
- errn = decode_v2gSensorMeasurementsType(stream, &v2gSensorPackageType->SensorMeasurements.array[v2gSensorPackageType->SensorMeasurements.arrayLen++]);
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- grammarID = 2;
- 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:2016:MsgDataTypes,DC_EVSEBidirectionalParameterType', base type name='DC_EVSEChargeParameterType', content type='ELEMENT', isAbstract='false', hasTypeId='false', final='0', block='0', particle='(("urn:iso:15118:2:2016:MsgDataTypes":EVSEMaximumChargePower,"urn:iso:15118:2:2016:MsgDataTypes":EVSEMaximumChargeCurrent,"urn:iso:15118:2:2016:MsgDataTypes":EVSEMinimumChargeCurrent,"urn:iso:15118:2:2016:MsgDataTypes":EVSEMaximumVoltage,"urn:iso:15118:2:2016:MsgDataTypes":EVSEMinimumVoltage,"urn:iso:15118:2:2016:MsgDataTypes":EVSECurrentRegulationTolerance{0-1},"urn:iso:15118:2:2016:MsgDataTypes":EVSEPeakCurrentRipple,"urn:iso:15118:2:2016:MsgDataTypes":EVSEEnergyToBeDelivered{0-1}),("urn:iso:15118:2:2016:MsgDataTypes":EVSEMaximumDischargePower,"urn:iso:15118:2:2016:MsgDataTypes":EVSEMaximumDischargeCurrent,"urn:iso:15118:2:2016:MsgDataTypes":EVSEMinimumDischargeCurrent))', derivedBy='EXTENSION'. */
-static int decode_v2gDC_EVSEBidirectionalParameterType(bitstream_t* stream, struct v2gDC_EVSEBidirectionalParameterType* v2gDC_EVSEBidirectionalParameterType) {
- int grammarID = 2128;
- int done = 0;
-
- init_v2gDC_EVSEBidirectionalParameterType(v2gDC_EVSEBidirectionalParameterType);
-
- while(!done) {
- switch(grammarID) {
- case 2128:
- /* FirstStartTag[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}EVSEMaximumChargePower)] */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- errn = decode_v2gPhysicalValueType(stream, &v2gDC_EVSEBidirectionalParameterType->EVSEMaximumChargePower);
- grammarID = 2129;
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 2129:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}EVSEMaximumChargeCurrent)] */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- errn = decode_v2gPhysicalValueType(stream, &v2gDC_EVSEBidirectionalParameterType->EVSEMaximumChargeCurrent);
- grammarID = 2130;
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 2130:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}EVSEMinimumChargeCurrent)] */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- errn = decode_v2gPhysicalValueType(stream, &v2gDC_EVSEBidirectionalParameterType->EVSEMinimumChargeCurrent);
- grammarID = 2131;
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 2131:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}EVSEMaximumVoltage)] */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- errn = decode_v2gPhysicalValueType(stream, &v2gDC_EVSEBidirectionalParameterType->EVSEMaximumVoltage);
- grammarID = 2132;
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 2132:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}EVSEMinimumVoltage)] */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- errn = decode_v2gPhysicalValueType(stream, &v2gDC_EVSEBidirectionalParameterType->EVSEMinimumVoltage);
- grammarID = 2133;
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 2133:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}EVSECurrentRegulationTolerance), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}EVSEPeakCurrentRipple)] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- errn = decode_v2gPhysicalValueType(stream, &v2gDC_EVSEBidirectionalParameterType->EVSECurrentRegulationTolerance);
- v2gDC_EVSEBidirectionalParameterType->EVSECurrentRegulationTolerance_isUsed = 1u;
- grammarID = 2134;
- break;
- case 1:
- errn = decode_v2gPhysicalValueType(stream, &v2gDC_EVSEBidirectionalParameterType->EVSEPeakCurrentRipple);
- grammarID = 2135;
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 2134:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}EVSEPeakCurrentRipple)] */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- errn = decode_v2gPhysicalValueType(stream, &v2gDC_EVSEBidirectionalParameterType->EVSEPeakCurrentRipple);
- grammarID = 2135;
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 2135:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}EVSEEnergyToBeDelivered), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}EVSEMaximumDischargePower)] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- errn = decode_v2gPhysicalValueType(stream, &v2gDC_EVSEBidirectionalParameterType->EVSEEnergyToBeDelivered);
- v2gDC_EVSEBidirectionalParameterType->EVSEEnergyToBeDelivered_isUsed = 1u;
- grammarID = 2136;
- break;
- case 1:
- errn = decode_v2gPhysicalValueType(stream, &v2gDC_EVSEBidirectionalParameterType->EVSEMaximumDischargePower);
- grammarID = 2137;
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 2136:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}EVSEMaximumDischargePower)] */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- errn = decode_v2gPhysicalValueType(stream, &v2gDC_EVSEBidirectionalParameterType->EVSEMaximumDischargePower);
- grammarID = 2137;
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 2137:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}EVSEMaximumDischargeCurrent)] */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- errn = decode_v2gPhysicalValueType(stream, &v2gDC_EVSEBidirectionalParameterType->EVSEMaximumDischargeCurrent);
- grammarID = 2138;
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 2138:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}EVSEMinimumDischargeCurrent)] */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- errn = decode_v2gPhysicalValueType(stream, &v2gDC_EVSEBidirectionalParameterType->EVSEMinimumDischargeCurrent);
- grammarID = 2;
- 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:2016:MsgDataTypes,DC_EVSEChargeParameterType', base type name='EVSEEnergyTransferParameterType', content type='ELEMENT', isAbstract='false', hasTypeId='false', final='0', block='0', particle='("urn:iso:15118:2:2016:MsgDataTypes":EVSEMaximumChargePower,"urn:iso:15118:2:2016:MsgDataTypes":EVSEMaximumChargeCurrent,"urn:iso:15118:2:2016:MsgDataTypes":EVSEMinimumChargeCurrent,"urn:iso:15118:2:2016:MsgDataTypes":EVSEMaximumVoltage,"urn:iso:15118:2:2016:MsgDataTypes":EVSEMinimumVoltage,"urn:iso:15118:2:2016:MsgDataTypes":EVSECurrentRegulationTolerance{0-1},"urn:iso:15118:2:2016:MsgDataTypes":EVSEPeakCurrentRipple,"urn:iso:15118:2:2016:MsgDataTypes":EVSEEnergyToBeDelivered{0-1})', derivedBy='EXTENSION'. */
-static int decode_v2gDC_EVSEChargeParameterType(bitstream_t* stream, struct v2gDC_EVSEChargeParameterType* v2gDC_EVSEChargeParameterType) {
- int grammarID = 2139;
- int done = 0;
-
- init_v2gDC_EVSEChargeParameterType(v2gDC_EVSEChargeParameterType);
-
- while(!done) {
- switch(grammarID) {
- case 2139:
- /* FirstStartTag[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}EVSEMaximumChargePower)] */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- errn = decode_v2gPhysicalValueType(stream, &v2gDC_EVSEChargeParameterType->EVSEMaximumChargePower);
- grammarID = 2140;
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 2140:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}EVSEMaximumChargeCurrent)] */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- errn = decode_v2gPhysicalValueType(stream, &v2gDC_EVSEChargeParameterType->EVSEMaximumChargeCurrent);
- grammarID = 2141;
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 2141:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}EVSEMinimumChargeCurrent)] */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- errn = decode_v2gPhysicalValueType(stream, &v2gDC_EVSEChargeParameterType->EVSEMinimumChargeCurrent);
- grammarID = 2142;
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 2142:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}EVSEMaximumVoltage)] */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- errn = decode_v2gPhysicalValueType(stream, &v2gDC_EVSEChargeParameterType->EVSEMaximumVoltage);
- grammarID = 2143;
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 2143:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}EVSEMinimumVoltage)] */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- errn = decode_v2gPhysicalValueType(stream, &v2gDC_EVSEChargeParameterType->EVSEMinimumVoltage);
- grammarID = 2144;
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 2144:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}EVSECurrentRegulationTolerance), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}EVSEPeakCurrentRipple)] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- errn = decode_v2gPhysicalValueType(stream, &v2gDC_EVSEChargeParameterType->EVSECurrentRegulationTolerance);
- v2gDC_EVSEChargeParameterType->EVSECurrentRegulationTolerance_isUsed = 1u;
- grammarID = 2145;
- break;
- case 1:
- errn = decode_v2gPhysicalValueType(stream, &v2gDC_EVSEChargeParameterType->EVSEPeakCurrentRipple);
- grammarID = 2146;
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 2145:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}EVSEPeakCurrentRipple)] */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- errn = decode_v2gPhysicalValueType(stream, &v2gDC_EVSEChargeParameterType->EVSEPeakCurrentRipple);
- grammarID = 2146;
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 2146:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}EVSEEnergyToBeDelivered), END_ELEMENT] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- errn = decode_v2gPhysicalValueType(stream, &v2gDC_EVSEChargeParameterType->EVSEEnergyToBeDelivered);
- v2gDC_EVSEChargeParameterType->EVSEEnergyToBeDelivered_isUsed = 1u;
- grammarID = 2;
- 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:2016:MsgBody,ConnectChargingDeviceReqType', base type name='BodyBaseType', content type='ELEMENT', isAbstract='false', hasTypeId='false', final='0', block='0', particle='("urn:iso:15118:2:2016:MsgBody":EVElectricalChargingDeviceStatus,"urn:iso:15118:2:2016:MsgBody":EVMechanicalChargingDeviceStatus)', derivedBy='EXTENSION'. */
-static int decode_v2gConnectChargingDeviceReqType(bitstream_t* stream, struct v2gConnectChargingDeviceReqType* v2gConnectChargingDeviceReqType) {
- int grammarID = 2147;
- int done = 0;
-
- init_v2gConnectChargingDeviceReqType(v2gConnectChargingDeviceReqType);
-
- while(!done) {
- switch(grammarID) {
- case 2147:
- /* FirstStartTag[START_ELEMENT({urn:iso:15118:2:2016:MsgBody}EVElectricalChargingDeviceStatus)] */
- 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, 1, &uint32);
- v2gConnectChargingDeviceReqType->EVElectricalChargingDeviceStatus = (v2gelectricalChargingDeviceStatusType) 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({urn:iso:15118:2:2016:MsgBody}EVElectricalChargingDeviceStatus) ? */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(eventCode == 0) {
- grammarID = 917;
- } else {
- errn = EXI_DEVIANT_SUPPORT_NOT_DEPLOYED; /* or also typecast and nillable */
- }
- }
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 917:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgBody}EVMechanicalChargingDeviceStatus)] */
- 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);
- v2gConnectChargingDeviceReqType->EVMechanicalChargingDeviceStatus = (v2gmechanicalChargingDeviceStatusType) 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({urn:iso:15118:2:2016:MsgBody}EVMechanicalChargingDeviceStatus) ? */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(eventCode == 0) {
- grammarID = 2;
- } else {
- errn = EXI_DEVIANT_SUPPORT_NOT_DEPLOYED; /* or also typecast and nillable */
- }
- }
- 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:2016:MsgBody,CertificateUpdateReqType', base type name='BodyBaseType', content type='ELEMENT', isAbstract='false', hasTypeId='false', final='0', block='0', particle='("urn:iso:15118:2:2016:MsgBody":ContractSignatureCertChain,"urn:iso:15118:2:2016:MsgBody":eMAID,"urn:iso:15118:2:2016:MsgBody":ListOfRootCertificateIDs)', derivedBy='EXTENSION'. */
-static int decode_v2gCertificateUpdateReqType(bitstream_t* stream, struct v2gCertificateUpdateReqType* v2gCertificateUpdateReqType) {
- int grammarID = 2148;
- int done = 0;
-
- init_v2gCertificateUpdateReqType(v2gCertificateUpdateReqType);
-
- while(!done) {
- switch(grammarID) {
- case 2148:
- /* FirstStartTag[ATTRIBUTE[STRING]({urn:iso:15118:2:2016:MsgBody}Id)] */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- errn = decodeUnsignedInteger16(stream, &v2gCertificateUpdateReqType->Id.charactersLen);
- if (errn == 0) {
- if (v2gCertificateUpdateReqType->Id.charactersLen >= 2) {
- v2gCertificateUpdateReqType->Id.charactersLen = (uint16_t)(v2gCertificateUpdateReqType->Id.charactersLen - 2); /* string table miss */
- errn = decodeCharacters(stream, v2gCertificateUpdateReqType->Id.charactersLen, v2gCertificateUpdateReqType->Id.characters, v2gCertificateUpdateReqType_Id_CHARACTERS_SIZE);
- } else {
- /* string table hit */
- errn = EXI_ERROR_STRINGVALUES_NOT_SUPPORTED;
- }
- }
- grammarID = 2149;
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 2149:
- /* StartTag[START_ELEMENT({urn:iso:15118:2:2016:MsgBody}ContractSignatureCertChain)] */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- errn = decode_v2gCertificateChainType(stream, &v2gCertificateUpdateReqType->ContractSignatureCertChain);
- grammarID = 2150;
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 2150:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgBody}eMAID)] */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- /* First(xsi:type)StartTag[CHARACTERS[STRING]] */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(errn == 0) {
- if(eventCode == 0) {
- errn = decodeUnsignedInteger16(stream, &v2gCertificateUpdateReqType->eMAID.charactersLen);
- if (errn == 0) {
- if (v2gCertificateUpdateReqType->eMAID.charactersLen >= 2) {
- v2gCertificateUpdateReqType->eMAID.charactersLen = (uint16_t)(v2gCertificateUpdateReqType->eMAID.charactersLen - 2); /* string table miss */
- errn = decodeCharacters(stream, v2gCertificateUpdateReqType->eMAID.charactersLen, v2gCertificateUpdateReqType->eMAID.characters, v2gCertificateUpdateReqType_eMAID_CHARACTERS_SIZE);
- } else {
- /* string table hit */
- errn = EXI_ERROR_STRINGVALUES_NOT_SUPPORTED;
- }
- }
- } 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({urn:iso:15118:2:2016:MsgBody}eMAID) ? */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(eventCode == 0) {
- grammarID = 1851;
- } else {
- errn = EXI_DEVIANT_SUPPORT_NOT_DEPLOYED; /* or also typecast and nillable */
- }
- }
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 1851:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgBody}ListOfRootCertificateIDs)] */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- errn = decode_v2gListOfRootCertificateIDsType(stream, &v2gCertificateUpdateReqType->ListOfRootCertificateIDs);
- grammarID = 2;
- 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='http://www.w3.org/2000/09/xmldsig#,KeyInfoType', base type name='anyType', content type='MIXED', isAbstract='false', hasTypeId='false', final='0', block='0', particle='("http://www.w3.org/2000/09/xmldsig#":KeyName|"http://www.w3.org/2000/09/xmldsig#":KeyValue|"http://www.w3.org/2000/09/xmldsig#":RetrievalMethod|"http://www.w3.org/2000/09/xmldsig#":X509Data|"http://www.w3.org/2000/09/xmldsig#":PGPData|"http://www.w3.org/2000/09/xmldsig#":SPKIData|"http://www.w3.org/2000/09/xmldsig#":MgmtData|(WC[##other:"http://www.w3.org/2000/09/xmldsig#"])){1-UNBOUNDED}', derivedBy='RESTRICTION'. */
-static int decode_v2gKeyInfoType(bitstream_t* stream, struct v2gKeyInfoType* v2gKeyInfoType) {
- int grammarID = 2151;
- int done = 0;
-
- init_v2gKeyInfoType(v2gKeyInfoType);
-
- while(!done) {
- switch(grammarID) {
- case 2151:
- /* FirstStartTag[ATTRIBUTE[STRING](Id), START_ELEMENT({http://www.w3.org/2000/09/xmldsig#}KeyName), START_ELEMENT({http://www.w3.org/2000/09/xmldsig#}KeyValue), START_ELEMENT({http://www.w3.org/2000/09/xmldsig#}RetrievalMethod), START_ELEMENT({http://www.w3.org/2000/09/xmldsig#}X509Data), START_ELEMENT({http://www.w3.org/2000/09/xmldsig#}PGPData), START_ELEMENT({http://www.w3.org/2000/09/xmldsig#}SPKIData), START_ELEMENT({http://www.w3.org/2000/09/xmldsig#}MgmtData), START_ELEMENT_GENERIC, CHARACTERS_GENERIC[STRING]] */
- errn = decodeNBitUnsignedInteger(stream, 4, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- errn = decodeUnsignedInteger16(stream, &v2gKeyInfoType->Id.charactersLen);
- if (errn == 0) {
- if (v2gKeyInfoType->Id.charactersLen >= 2) {
- v2gKeyInfoType->Id.charactersLen = (uint16_t)(v2gKeyInfoType->Id.charactersLen - 2); /* string table miss */
- errn = decodeCharacters(stream, v2gKeyInfoType->Id.charactersLen, v2gKeyInfoType->Id.characters, v2gKeyInfoType_Id_CHARACTERS_SIZE);
- } else {
- /* string table hit */
- errn = EXI_ERROR_STRINGVALUES_NOT_SUPPORTED;
- }
- }
- v2gKeyInfoType->Id_isUsed = 1u;
- grammarID = 2152;
- break;
- case 1:
- if (v2gKeyInfoType->KeyName.arrayLen < v2gKeyInfoType_KeyName_ARRAY_SIZE) {
- /* First(xsi:type)StartTag[CHARACTERS[STRING]] */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(errn == 0) {
- if(eventCode == 0) {
- errn = decodeUnsignedInteger16(stream, &v2gKeyInfoType->KeyName.array[v2gKeyInfoType->KeyName.arrayLen].charactersLen);
- if (errn == 0) {
- if (v2gKeyInfoType->KeyName.array[v2gKeyInfoType->KeyName.arrayLen].charactersLen >= 2) {
- v2gKeyInfoType->KeyName.array[v2gKeyInfoType->KeyName.arrayLen].charactersLen = (uint16_t)(v2gKeyInfoType->KeyName.array[v2gKeyInfoType->KeyName.arrayLen].charactersLen - 2); /* string table miss */
- errn = decodeCharacters(stream, v2gKeyInfoType->KeyName.array[v2gKeyInfoType->KeyName.arrayLen].charactersLen, v2gKeyInfoType->KeyName.array[v2gKeyInfoType->KeyName.arrayLen].characters, v2gKeyInfoType_KeyName_CHARACTERS_SIZE);
- } else {
- /* string table hit */
- errn = EXI_ERROR_STRINGVALUES_NOT_SUPPORTED;
- }
- }
- v2gKeyInfoType->KeyName.arrayLen++;
- } else {
- /* Second level event (e.g., xsi:type, xsi:nil, ...) */
- errn = EXI_UNSUPPORTED_EVENT_CODE_CHARACTERISTICS;
- }
- }
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- if(errn == 0) {
- /* valid EE for simple element START_ELEMENT({http://www.w3.org/2000/09/xmldsig#}KeyName) ? */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(eventCode == 0) {
- grammarID = 2153;
- } else {
- errn = EXI_DEVIANT_SUPPORT_NOT_DEPLOYED; /* or also typecast and nillable */
- }
- }
- break;
- case 2:
- if (v2gKeyInfoType->KeyValue.arrayLen < v2gKeyInfoType_KeyValue_ARRAY_SIZE) {
- errn = decode_v2gKeyValueType(stream, &v2gKeyInfoType->KeyValue.array[v2gKeyInfoType->KeyValue.arrayLen++]);
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- grammarID = 2153;
- break;
- case 3:
- if (v2gKeyInfoType->RetrievalMethod.arrayLen < v2gKeyInfoType_RetrievalMethod_ARRAY_SIZE) {
- errn = decode_v2gRetrievalMethodType(stream, &v2gKeyInfoType->RetrievalMethod.array[v2gKeyInfoType->RetrievalMethod.arrayLen++]);
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- grammarID = 2153;
- break;
- case 4:
- if (v2gKeyInfoType->X509Data.arrayLen < v2gKeyInfoType_X509Data_ARRAY_SIZE) {
- errn = decode_v2gX509DataType(stream, &v2gKeyInfoType->X509Data.array[v2gKeyInfoType->X509Data.arrayLen++]);
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- grammarID = 2153;
- break;
- case 5:
- if (v2gKeyInfoType->PGPData.arrayLen < v2gKeyInfoType_PGPData_ARRAY_SIZE) {
- errn = decode_v2gPGPDataType(stream, &v2gKeyInfoType->PGPData.array[v2gKeyInfoType->PGPData.arrayLen++]);
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- grammarID = 2153;
- break;
- case 6:
- if (v2gKeyInfoType->SPKIData.arrayLen < v2gKeyInfoType_SPKIData_ARRAY_SIZE) {
- errn = decode_v2gSPKIDataType(stream, &v2gKeyInfoType->SPKIData.array[v2gKeyInfoType->SPKIData.arrayLen++]);
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- grammarID = 2153;
- break;
- case 7:
- if (v2gKeyInfoType->MgmtData.arrayLen < v2gKeyInfoType_MgmtData_ARRAY_SIZE) {
- /* First(xsi:type)StartTag[CHARACTERS[STRING]] */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(errn == 0) {
- if(eventCode == 0) {
- errn = decodeUnsignedInteger16(stream, &v2gKeyInfoType->MgmtData.array[v2gKeyInfoType->MgmtData.arrayLen].charactersLen);
- if (errn == 0) {
- if (v2gKeyInfoType->MgmtData.array[v2gKeyInfoType->MgmtData.arrayLen].charactersLen >= 2) {
- v2gKeyInfoType->MgmtData.array[v2gKeyInfoType->MgmtData.arrayLen].charactersLen = (uint16_t)(v2gKeyInfoType->MgmtData.array[v2gKeyInfoType->MgmtData.arrayLen].charactersLen - 2); /* string table miss */
- errn = decodeCharacters(stream, v2gKeyInfoType->MgmtData.array[v2gKeyInfoType->MgmtData.arrayLen].charactersLen, v2gKeyInfoType->MgmtData.array[v2gKeyInfoType->MgmtData.arrayLen].characters, v2gKeyInfoType_MgmtData_CHARACTERS_SIZE);
- } else {
- /* string table hit */
- errn = EXI_ERROR_STRINGVALUES_NOT_SUPPORTED;
- }
- }
- v2gKeyInfoType->MgmtData.arrayLen++;
- } else {
- /* Second level event (e.g., xsi:type, xsi:nil, ...) */
- errn = EXI_UNSUPPORTED_EVENT_CODE_CHARACTERISTICS;
- }
- }
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- if(errn == 0) {
- /* valid EE for simple element START_ELEMENT({http://www.w3.org/2000/09/xmldsig#}MgmtData) ? */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(eventCode == 0) {
- grammarID = 2153;
- } else {
- errn = EXI_DEVIANT_SUPPORT_NOT_DEPLOYED; /* or also typecast and nillable */
- }
- }
- break;
- case 8:
- errn = EXI_UNSUPPORTED_EVENT_CODE_CHARACTERISTICS;
- /* TODO unsupported event : START_ELEMENT_GENERIC */
- grammarID = 2153;
- break;
- case 9:
- errn = decodeUnsignedInteger16(stream, &v2gKeyInfoType->ANY.charactersLen);
- if (errn == 0) {
- if (v2gKeyInfoType->ANY.charactersLen >= 2) {
- v2gKeyInfoType->ANY.charactersLen = (uint16_t)(v2gKeyInfoType->ANY.charactersLen - 2); /* string table miss */
- errn = decodeCharacters(stream, v2gKeyInfoType->ANY.charactersLen, v2gKeyInfoType->ANY.characters, v2gKeyInfoType_ANY_CHARACTERS_SIZE);
- } else {
- /* string table hit */
- errn = EXI_ERROR_STRINGVALUES_NOT_SUPPORTED;
- }
- }
- v2gKeyInfoType->ANY_isUsed = 1u;
- grammarID = 2154;
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 2152:
- /* StartTag[START_ELEMENT({http://www.w3.org/2000/09/xmldsig#}KeyName), START_ELEMENT({http://www.w3.org/2000/09/xmldsig#}KeyValue), START_ELEMENT({http://www.w3.org/2000/09/xmldsig#}RetrievalMethod), START_ELEMENT({http://www.w3.org/2000/09/xmldsig#}X509Data), START_ELEMENT({http://www.w3.org/2000/09/xmldsig#}PGPData), START_ELEMENT({http://www.w3.org/2000/09/xmldsig#}SPKIData), START_ELEMENT({http://www.w3.org/2000/09/xmldsig#}MgmtData), START_ELEMENT_GENERIC, CHARACTERS_GENERIC[STRING]] */
- errn = decodeNBitUnsignedInteger(stream, 4, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gKeyInfoType->KeyName.arrayLen < v2gKeyInfoType_KeyName_ARRAY_SIZE) {
- /* First(xsi:type)StartTag[CHARACTERS[STRING]] */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(errn == 0) {
- if(eventCode == 0) {
- errn = decodeUnsignedInteger16(stream, &v2gKeyInfoType->KeyName.array[v2gKeyInfoType->KeyName.arrayLen].charactersLen);
- if (errn == 0) {
- if (v2gKeyInfoType->KeyName.array[v2gKeyInfoType->KeyName.arrayLen].charactersLen >= 2) {
- v2gKeyInfoType->KeyName.array[v2gKeyInfoType->KeyName.arrayLen].charactersLen = (uint16_t)(v2gKeyInfoType->KeyName.array[v2gKeyInfoType->KeyName.arrayLen].charactersLen - 2); /* string table miss */
- errn = decodeCharacters(stream, v2gKeyInfoType->KeyName.array[v2gKeyInfoType->KeyName.arrayLen].charactersLen, v2gKeyInfoType->KeyName.array[v2gKeyInfoType->KeyName.arrayLen].characters, v2gKeyInfoType_KeyName_CHARACTERS_SIZE);
- } else {
- /* string table hit */
- errn = EXI_ERROR_STRINGVALUES_NOT_SUPPORTED;
- }
- }
- v2gKeyInfoType->KeyName.arrayLen++;
- } else {
- /* Second level event (e.g., xsi:type, xsi:nil, ...) */
- errn = EXI_UNSUPPORTED_EVENT_CODE_CHARACTERISTICS;
- }
- }
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- if(errn == 0) {
- /* valid EE for simple element START_ELEMENT({http://www.w3.org/2000/09/xmldsig#}KeyName) ? */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(eventCode == 0) {
- grammarID = 2153;
- } else {
- errn = EXI_DEVIANT_SUPPORT_NOT_DEPLOYED; /* or also typecast and nillable */
- }
- }
- break;
- case 1:
- if (v2gKeyInfoType->KeyValue.arrayLen < v2gKeyInfoType_KeyValue_ARRAY_SIZE) {
- errn = decode_v2gKeyValueType(stream, &v2gKeyInfoType->KeyValue.array[v2gKeyInfoType->KeyValue.arrayLen++]);
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- grammarID = 2153;
- break;
- case 2:
- if (v2gKeyInfoType->RetrievalMethod.arrayLen < v2gKeyInfoType_RetrievalMethod_ARRAY_SIZE) {
- errn = decode_v2gRetrievalMethodType(stream, &v2gKeyInfoType->RetrievalMethod.array[v2gKeyInfoType->RetrievalMethod.arrayLen++]);
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- grammarID = 2153;
- break;
- case 3:
- if (v2gKeyInfoType->X509Data.arrayLen < v2gKeyInfoType_X509Data_ARRAY_SIZE) {
- errn = decode_v2gX509DataType(stream, &v2gKeyInfoType->X509Data.array[v2gKeyInfoType->X509Data.arrayLen++]);
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- grammarID = 2153;
- break;
- case 4:
- if (v2gKeyInfoType->PGPData.arrayLen < v2gKeyInfoType_PGPData_ARRAY_SIZE) {
- errn = decode_v2gPGPDataType(stream, &v2gKeyInfoType->PGPData.array[v2gKeyInfoType->PGPData.arrayLen++]);
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- grammarID = 2153;
- break;
- case 5:
- if (v2gKeyInfoType->SPKIData.arrayLen < v2gKeyInfoType_SPKIData_ARRAY_SIZE) {
- errn = decode_v2gSPKIDataType(stream, &v2gKeyInfoType->SPKIData.array[v2gKeyInfoType->SPKIData.arrayLen++]);
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- grammarID = 2153;
- break;
- case 6:
- if (v2gKeyInfoType->MgmtData.arrayLen < v2gKeyInfoType_MgmtData_ARRAY_SIZE) {
- /* First(xsi:type)StartTag[CHARACTERS[STRING]] */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(errn == 0) {
- if(eventCode == 0) {
- errn = decodeUnsignedInteger16(stream, &v2gKeyInfoType->MgmtData.array[v2gKeyInfoType->MgmtData.arrayLen].charactersLen);
- if (errn == 0) {
- if (v2gKeyInfoType->MgmtData.array[v2gKeyInfoType->MgmtData.arrayLen].charactersLen >= 2) {
- v2gKeyInfoType->MgmtData.array[v2gKeyInfoType->MgmtData.arrayLen].charactersLen = (uint16_t)(v2gKeyInfoType->MgmtData.array[v2gKeyInfoType->MgmtData.arrayLen].charactersLen - 2); /* string table miss */
- errn = decodeCharacters(stream, v2gKeyInfoType->MgmtData.array[v2gKeyInfoType->MgmtData.arrayLen].charactersLen, v2gKeyInfoType->MgmtData.array[v2gKeyInfoType->MgmtData.arrayLen].characters, v2gKeyInfoType_MgmtData_CHARACTERS_SIZE);
- } else {
- /* string table hit */
- errn = EXI_ERROR_STRINGVALUES_NOT_SUPPORTED;
- }
- }
- v2gKeyInfoType->MgmtData.arrayLen++;
- } else {
- /* Second level event (e.g., xsi:type, xsi:nil, ...) */
- errn = EXI_UNSUPPORTED_EVENT_CODE_CHARACTERISTICS;
- }
- }
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- if(errn == 0) {
- /* valid EE for simple element START_ELEMENT({http://www.w3.org/2000/09/xmldsig#}MgmtData) ? */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(eventCode == 0) {
- grammarID = 2153;
- } else {
- errn = EXI_DEVIANT_SUPPORT_NOT_DEPLOYED; /* or also typecast and nillable */
- }
- }
- break;
- case 7:
- errn = EXI_UNSUPPORTED_EVENT_CODE_CHARACTERISTICS;
- /* TODO unsupported event : START_ELEMENT_GENERIC */
- grammarID = 2153;
- break;
- case 8:
- errn = decodeUnsignedInteger16(stream, &v2gKeyInfoType->ANY.charactersLen);
- if (errn == 0) {
- if (v2gKeyInfoType->ANY.charactersLen >= 2) {
- v2gKeyInfoType->ANY.charactersLen = (uint16_t)(v2gKeyInfoType->ANY.charactersLen - 2); /* string table miss */
- errn = decodeCharacters(stream, v2gKeyInfoType->ANY.charactersLen, v2gKeyInfoType->ANY.characters, v2gKeyInfoType_ANY_CHARACTERS_SIZE);
- } else {
- /* string table hit */
- errn = EXI_ERROR_STRINGVALUES_NOT_SUPPORTED;
- }
- }
- v2gKeyInfoType->ANY_isUsed = 1u;
- grammarID = 2154;
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 2153:
- /* Element[START_ELEMENT({http://www.w3.org/2000/09/xmldsig#}KeyName), START_ELEMENT({http://www.w3.org/2000/09/xmldsig#}KeyValue), START_ELEMENT({http://www.w3.org/2000/09/xmldsig#}RetrievalMethod), START_ELEMENT({http://www.w3.org/2000/09/xmldsig#}X509Data), START_ELEMENT({http://www.w3.org/2000/09/xmldsig#}PGPData), START_ELEMENT({http://www.w3.org/2000/09/xmldsig#}SPKIData), START_ELEMENT({http://www.w3.org/2000/09/xmldsig#}MgmtData), START_ELEMENT_GENERIC, END_ELEMENT, CHARACTERS_GENERIC[STRING]] */
- errn = decodeNBitUnsignedInteger(stream, 4, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gKeyInfoType->KeyName.arrayLen < v2gKeyInfoType_KeyName_ARRAY_SIZE) {
- /* First(xsi:type)StartTag[CHARACTERS[STRING]] */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(errn == 0) {
- if(eventCode == 0) {
- errn = decodeUnsignedInteger16(stream, &v2gKeyInfoType->KeyName.array[v2gKeyInfoType->KeyName.arrayLen].charactersLen);
- if (errn == 0) {
- if (v2gKeyInfoType->KeyName.array[v2gKeyInfoType->KeyName.arrayLen].charactersLen >= 2) {
- v2gKeyInfoType->KeyName.array[v2gKeyInfoType->KeyName.arrayLen].charactersLen = (uint16_t)(v2gKeyInfoType->KeyName.array[v2gKeyInfoType->KeyName.arrayLen].charactersLen - 2); /* string table miss */
- errn = decodeCharacters(stream, v2gKeyInfoType->KeyName.array[v2gKeyInfoType->KeyName.arrayLen].charactersLen, v2gKeyInfoType->KeyName.array[v2gKeyInfoType->KeyName.arrayLen].characters, v2gKeyInfoType_KeyName_CHARACTERS_SIZE);
- } else {
- /* string table hit */
- errn = EXI_ERROR_STRINGVALUES_NOT_SUPPORTED;
- }
- }
- v2gKeyInfoType->KeyName.arrayLen++;
- } else {
- /* Second level event (e.g., xsi:type, xsi:nil, ...) */
- errn = EXI_UNSUPPORTED_EVENT_CODE_CHARACTERISTICS;
- }
- }
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- if(errn == 0) {
- /* valid EE for simple element START_ELEMENT({http://www.w3.org/2000/09/xmldsig#}KeyName) ? */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(eventCode == 0) {
- grammarID = 2153;
- } else {
- errn = EXI_DEVIANT_SUPPORT_NOT_DEPLOYED; /* or also typecast and nillable */
- }
- }
- break;
- case 1:
- if (v2gKeyInfoType->KeyValue.arrayLen < v2gKeyInfoType_KeyValue_ARRAY_SIZE) {
- errn = decode_v2gKeyValueType(stream, &v2gKeyInfoType->KeyValue.array[v2gKeyInfoType->KeyValue.arrayLen++]);
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- grammarID = 2153;
- break;
- case 2:
- if (v2gKeyInfoType->RetrievalMethod.arrayLen < v2gKeyInfoType_RetrievalMethod_ARRAY_SIZE) {
- errn = decode_v2gRetrievalMethodType(stream, &v2gKeyInfoType->RetrievalMethod.array[v2gKeyInfoType->RetrievalMethod.arrayLen++]);
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- grammarID = 2153;
- break;
- case 3:
- if (v2gKeyInfoType->X509Data.arrayLen < v2gKeyInfoType_X509Data_ARRAY_SIZE) {
- errn = decode_v2gX509DataType(stream, &v2gKeyInfoType->X509Data.array[v2gKeyInfoType->X509Data.arrayLen++]);
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- grammarID = 2153;
- break;
- case 4:
- if (v2gKeyInfoType->PGPData.arrayLen < v2gKeyInfoType_PGPData_ARRAY_SIZE) {
- errn = decode_v2gPGPDataType(stream, &v2gKeyInfoType->PGPData.array[v2gKeyInfoType->PGPData.arrayLen++]);
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- grammarID = 2153;
- break;
- case 5:
- if (v2gKeyInfoType->SPKIData.arrayLen < v2gKeyInfoType_SPKIData_ARRAY_SIZE) {
- errn = decode_v2gSPKIDataType(stream, &v2gKeyInfoType->SPKIData.array[v2gKeyInfoType->SPKIData.arrayLen++]);
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- grammarID = 2153;
- break;
- case 6:
- if (v2gKeyInfoType->MgmtData.arrayLen < v2gKeyInfoType_MgmtData_ARRAY_SIZE) {
- /* First(xsi:type)StartTag[CHARACTERS[STRING]] */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(errn == 0) {
- if(eventCode == 0) {
- errn = decodeUnsignedInteger16(stream, &v2gKeyInfoType->MgmtData.array[v2gKeyInfoType->MgmtData.arrayLen].charactersLen);
- if (errn == 0) {
- if (v2gKeyInfoType->MgmtData.array[v2gKeyInfoType->MgmtData.arrayLen].charactersLen >= 2) {
- v2gKeyInfoType->MgmtData.array[v2gKeyInfoType->MgmtData.arrayLen].charactersLen = (uint16_t)(v2gKeyInfoType->MgmtData.array[v2gKeyInfoType->MgmtData.arrayLen].charactersLen - 2); /* string table miss */
- errn = decodeCharacters(stream, v2gKeyInfoType->MgmtData.array[v2gKeyInfoType->MgmtData.arrayLen].charactersLen, v2gKeyInfoType->MgmtData.array[v2gKeyInfoType->MgmtData.arrayLen].characters, v2gKeyInfoType_MgmtData_CHARACTERS_SIZE);
- } else {
- /* string table hit */
- errn = EXI_ERROR_STRINGVALUES_NOT_SUPPORTED;
- }
- }
- v2gKeyInfoType->MgmtData.arrayLen++;
- } else {
- /* Second level event (e.g., xsi:type, xsi:nil, ...) */
- errn = EXI_UNSUPPORTED_EVENT_CODE_CHARACTERISTICS;
- }
- }
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- if(errn == 0) {
- /* valid EE for simple element START_ELEMENT({http://www.w3.org/2000/09/xmldsig#}MgmtData) ? */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(eventCode == 0) {
- grammarID = 2153;
- } else {
- errn = EXI_DEVIANT_SUPPORT_NOT_DEPLOYED; /* or also typecast and nillable */
- }
- }
- break;
- case 7:
- errn = EXI_UNSUPPORTED_EVENT_CODE_CHARACTERISTICS;
- /* TODO unsupported event : START_ELEMENT_GENERIC */
- grammarID = 2153;
- break;
- case 8:
- done = 1;
- grammarID = 3;
- break;
- case 9:
- errn = decodeUnsignedInteger16(stream, &v2gKeyInfoType->ANY.charactersLen);
- if (errn == 0) {
- if (v2gKeyInfoType->ANY.charactersLen >= 2) {
- v2gKeyInfoType->ANY.charactersLen = (uint16_t)(v2gKeyInfoType->ANY.charactersLen - 2); /* string table miss */
- errn = decodeCharacters(stream, v2gKeyInfoType->ANY.charactersLen, v2gKeyInfoType->ANY.characters, v2gKeyInfoType_ANY_CHARACTERS_SIZE);
- } else {
- /* string table hit */
- errn = EXI_ERROR_STRINGVALUES_NOT_SUPPORTED;
- }
- }
- v2gKeyInfoType->ANY_isUsed = 1u;
- grammarID = 2153;
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 2154:
- /* Element[START_ELEMENT({http://www.w3.org/2000/09/xmldsig#}KeyName), START_ELEMENT({http://www.w3.org/2000/09/xmldsig#}KeyValue), START_ELEMENT({http://www.w3.org/2000/09/xmldsig#}RetrievalMethod), START_ELEMENT({http://www.w3.org/2000/09/xmldsig#}X509Data), START_ELEMENT({http://www.w3.org/2000/09/xmldsig#}PGPData), START_ELEMENT({http://www.w3.org/2000/09/xmldsig#}SPKIData), START_ELEMENT({http://www.w3.org/2000/09/xmldsig#}MgmtData), START_ELEMENT_GENERIC, CHARACTERS_GENERIC[STRING]] */
- errn = decodeNBitUnsignedInteger(stream, 4, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gKeyInfoType->KeyName.arrayLen < v2gKeyInfoType_KeyName_ARRAY_SIZE) {
- /* First(xsi:type)StartTag[CHARACTERS[STRING]] */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(errn == 0) {
- if(eventCode == 0) {
- errn = decodeUnsignedInteger16(stream, &v2gKeyInfoType->KeyName.array[v2gKeyInfoType->KeyName.arrayLen].charactersLen);
- if (errn == 0) {
- if (v2gKeyInfoType->KeyName.array[v2gKeyInfoType->KeyName.arrayLen].charactersLen >= 2) {
- v2gKeyInfoType->KeyName.array[v2gKeyInfoType->KeyName.arrayLen].charactersLen = (uint16_t)(v2gKeyInfoType->KeyName.array[v2gKeyInfoType->KeyName.arrayLen].charactersLen - 2); /* string table miss */
- errn = decodeCharacters(stream, v2gKeyInfoType->KeyName.array[v2gKeyInfoType->KeyName.arrayLen].charactersLen, v2gKeyInfoType->KeyName.array[v2gKeyInfoType->KeyName.arrayLen].characters, v2gKeyInfoType_KeyName_CHARACTERS_SIZE);
- } else {
- /* string table hit */
- errn = EXI_ERROR_STRINGVALUES_NOT_SUPPORTED;
- }
- }
- v2gKeyInfoType->KeyName.arrayLen++;
- } else {
- /* Second level event (e.g., xsi:type, xsi:nil, ...) */
- errn = EXI_UNSUPPORTED_EVENT_CODE_CHARACTERISTICS;
- }
- }
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- if(errn == 0) {
- /* valid EE for simple element START_ELEMENT({http://www.w3.org/2000/09/xmldsig#}KeyName) ? */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(eventCode == 0) {
- grammarID = 2153;
- } else {
- errn = EXI_DEVIANT_SUPPORT_NOT_DEPLOYED; /* or also typecast and nillable */
- }
- }
- break;
- case 1:
- if (v2gKeyInfoType->KeyValue.arrayLen < v2gKeyInfoType_KeyValue_ARRAY_SIZE) {
- errn = decode_v2gKeyValueType(stream, &v2gKeyInfoType->KeyValue.array[v2gKeyInfoType->KeyValue.arrayLen++]);
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- grammarID = 2153;
- break;
- case 2:
- if (v2gKeyInfoType->RetrievalMethod.arrayLen < v2gKeyInfoType_RetrievalMethod_ARRAY_SIZE) {
- errn = decode_v2gRetrievalMethodType(stream, &v2gKeyInfoType->RetrievalMethod.array[v2gKeyInfoType->RetrievalMethod.arrayLen++]);
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- grammarID = 2153;
- break;
- case 3:
- if (v2gKeyInfoType->X509Data.arrayLen < v2gKeyInfoType_X509Data_ARRAY_SIZE) {
- errn = decode_v2gX509DataType(stream, &v2gKeyInfoType->X509Data.array[v2gKeyInfoType->X509Data.arrayLen++]);
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- grammarID = 2153;
- break;
- case 4:
- if (v2gKeyInfoType->PGPData.arrayLen < v2gKeyInfoType_PGPData_ARRAY_SIZE) {
- errn = decode_v2gPGPDataType(stream, &v2gKeyInfoType->PGPData.array[v2gKeyInfoType->PGPData.arrayLen++]);
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- grammarID = 2153;
- break;
- case 5:
- if (v2gKeyInfoType->SPKIData.arrayLen < v2gKeyInfoType_SPKIData_ARRAY_SIZE) {
- errn = decode_v2gSPKIDataType(stream, &v2gKeyInfoType->SPKIData.array[v2gKeyInfoType->SPKIData.arrayLen++]);
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- grammarID = 2153;
- break;
- case 6:
- if (v2gKeyInfoType->MgmtData.arrayLen < v2gKeyInfoType_MgmtData_ARRAY_SIZE) {
- /* First(xsi:type)StartTag[CHARACTERS[STRING]] */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(errn == 0) {
- if(eventCode == 0) {
- errn = decodeUnsignedInteger16(stream, &v2gKeyInfoType->MgmtData.array[v2gKeyInfoType->MgmtData.arrayLen].charactersLen);
- if (errn == 0) {
- if (v2gKeyInfoType->MgmtData.array[v2gKeyInfoType->MgmtData.arrayLen].charactersLen >= 2) {
- v2gKeyInfoType->MgmtData.array[v2gKeyInfoType->MgmtData.arrayLen].charactersLen = (uint16_t)(v2gKeyInfoType->MgmtData.array[v2gKeyInfoType->MgmtData.arrayLen].charactersLen - 2); /* string table miss */
- errn = decodeCharacters(stream, v2gKeyInfoType->MgmtData.array[v2gKeyInfoType->MgmtData.arrayLen].charactersLen, v2gKeyInfoType->MgmtData.array[v2gKeyInfoType->MgmtData.arrayLen].characters, v2gKeyInfoType_MgmtData_CHARACTERS_SIZE);
- } else {
- /* string table hit */
- errn = EXI_ERROR_STRINGVALUES_NOT_SUPPORTED;
- }
- }
- v2gKeyInfoType->MgmtData.arrayLen++;
- } else {
- /* Second level event (e.g., xsi:type, xsi:nil, ...) */
- errn = EXI_UNSUPPORTED_EVENT_CODE_CHARACTERISTICS;
- }
- }
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- if(errn == 0) {
- /* valid EE for simple element START_ELEMENT({http://www.w3.org/2000/09/xmldsig#}MgmtData) ? */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(eventCode == 0) {
- grammarID = 2153;
- } else {
- errn = EXI_DEVIANT_SUPPORT_NOT_DEPLOYED; /* or also typecast and nillable */
- }
- }
- break;
- case 7:
- errn = EXI_UNSUPPORTED_EVENT_CODE_CHARACTERISTICS;
- /* TODO unsupported event : START_ELEMENT_GENERIC */
- grammarID = 2153;
- break;
- case 8:
- errn = decodeUnsignedInteger16(stream, &v2gKeyInfoType->ANY.charactersLen);
- if (errn == 0) {
- if (v2gKeyInfoType->ANY.charactersLen >= 2) {
- v2gKeyInfoType->ANY.charactersLen = (uint16_t)(v2gKeyInfoType->ANY.charactersLen - 2); /* string table miss */
- errn = decodeCharacters(stream, v2gKeyInfoType->ANY.charactersLen, v2gKeyInfoType->ANY.characters, v2gKeyInfoType_ANY_CHARACTERS_SIZE);
- } else {
- /* string table hit */
- errn = EXI_ERROR_STRINGVALUES_NOT_SUPPORTED;
- }
- }
- v2gKeyInfoType->ANY_isUsed = 1u;
- grammarID = 2154;
- 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:2016:MsgBody,WeldingDetectionResType', base type name='V2GResponseType', content type='ELEMENT', isAbstract='false', hasTypeId='false', final='0', block='0', particle='(("urn:iso:15118:2:2016:MsgBody":ResponseCode,"urn:iso:15118:2:2016:MsgBody":EVSEStatus{0-1}),("urn:iso:15118:2:2016:MsgBody":EVSEPresentVoltage))', derivedBy='EXTENSION'. */
-static int decode_v2gWeldingDetectionResType(bitstream_t* stream, struct v2gWeldingDetectionResType* v2gWeldingDetectionResType) {
- int grammarID = 1575;
- int done = 0;
-
- init_v2gWeldingDetectionResType(v2gWeldingDetectionResType);
-
- while(!done) {
- switch(grammarID) {
- case 1575:
- /* FirstStartTag[START_ELEMENT({urn:iso:15118:2:2016:MsgBody}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, 5, &uint32);
- v2gWeldingDetectionResType->ResponseCode = (v2gresponseCodeType) 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({urn:iso:15118:2:2016:MsgBody}ResponseCode) ? */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(eventCode == 0) {
- grammarID = 1576;
- } else {
- errn = EXI_DEVIANT_SUPPORT_NOT_DEPLOYED; /* or also typecast and nillable */
- }
- }
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 1576:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgBody}EVSEStatus), START_ELEMENT({urn:iso:15118:2:2016:MsgBody}EVSEPresentVoltage)] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- errn = decode_v2gEVSEStatusType(stream, &v2gWeldingDetectionResType->EVSEStatus);
- v2gWeldingDetectionResType->EVSEStatus_isUsed = 1u;
- grammarID = 1577;
- break;
- case 1:
- errn = decode_v2gPhysicalValueType(stream, &v2gWeldingDetectionResType->EVSEPresentVoltage);
- grammarID = 2;
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 1577:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgBody}EVSEPresentVoltage)] */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- errn = decode_v2gPhysicalValueType(stream, &v2gWeldingDetectionResType->EVSEPresentVoltage);
- grammarID = 2;
- 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:2016:MsgDataTypes,PhysicalValueType', base type name='anyType', content type='ELEMENT', isAbstract='false', hasTypeId='false', final='0', block='0', particle='("urn:iso:15118:2:2016:MsgDataTypes":Exponent,"urn:iso:15118:2:2016:MsgDataTypes":Value)', derivedBy='RESTRICTION'. */
-static int decode_v2gPhysicalValueType(bitstream_t* stream, struct v2gPhysicalValueType* v2gPhysicalValueType) {
- int grammarID = 2155;
- int done = 0;
-
- init_v2gPhysicalValueType(v2gPhysicalValueType);
-
- while(!done) {
- switch(grammarID) {
- case 2155:
- /* FirstStartTag[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}Exponent)] */
- errn = decodeNBitUnsignedInteger(stream, 1, &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, 3, &(uint32));
- v2gPhysicalValueType->Exponent = (int8_t)(uint32 -3);
- } 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({urn:iso:15118:2:2016:MsgDataTypes}Exponent) ? */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(eventCode == 0) {
- grammarID = 2156;
- } else {
- errn = EXI_DEVIANT_SUPPORT_NOT_DEPLOYED; /* or also typecast and nillable */
- }
- }
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 2156:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}Value)] */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- /* First(xsi:type)StartTag[CHARACTERS[INTEGER]] */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(errn == 0) {
- if(eventCode == 0) {
- errn = decodeInteger16(stream, &v2gPhysicalValueType->Value);
- } 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({urn:iso:15118:2:2016:MsgDataTypes}Value) ? */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(eventCode == 0) {
- grammarID = 2;
- } else {
- errn = EXI_DEVIANT_SUPPORT_NOT_DEPLOYED; /* or also typecast and nillable */
- }
- }
- 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:2016:MsgBody,PaymentServiceSelectionReqType', base type name='BodyBaseType', content type='ELEMENT', isAbstract='false', hasTypeId='false', final='0', block='0', particle='("urn:iso:15118:2:2016:MsgBody":SelectedPaymentOption,"urn:iso:15118:2:2016:MsgBody":SelectedEnergyTransferService,"urn:iso:15118:2:2016:MsgBody":SelectedVASList{0-1})', derivedBy='EXTENSION'. */
-static int decode_v2gPaymentServiceSelectionReqType(bitstream_t* stream, struct v2gPaymentServiceSelectionReqType* v2gPaymentServiceSelectionReqType) {
- int grammarID = 2157;
- int done = 0;
-
- init_v2gPaymentServiceSelectionReqType(v2gPaymentServiceSelectionReqType);
-
- while(!done) {
- switch(grammarID) {
- case 2157:
- /* FirstStartTag[START_ELEMENT({urn:iso:15118:2:2016:MsgBody}SelectedPaymentOption)] */
- 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, 1, &uint32);
- v2gPaymentServiceSelectionReqType->SelectedPaymentOption = (v2gpaymentOptionType) 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({urn:iso:15118:2:2016:MsgBody}SelectedPaymentOption) ? */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(eventCode == 0) {
- grammarID = 2158;
- } else {
- errn = EXI_DEVIANT_SUPPORT_NOT_DEPLOYED; /* or also typecast and nillable */
- }
- }
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 2158:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgBody}SelectedEnergyTransferService)] */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- errn = decode_v2gSelectedServiceType(stream, &v2gPaymentServiceSelectionReqType->SelectedEnergyTransferService);
- grammarID = 2159;
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 2159:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgBody}SelectedVASList), END_ELEMENT] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- errn = decode_v2gSelectedServiceListType(stream, &v2gPaymentServiceSelectionReqType->SelectedVASList);
- v2gPaymentServiceSelectionReqType->SelectedVASList_isUsed = 1u;
- grammarID = 2;
- 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:2016:MsgDataTypes,SensorListType', base type name='anyType', content type='ELEMENT', isAbstract='false', hasTypeId='false', final='0', block='0', particle='("urn:iso:15118:2:2016:MsgDataTypes":Sensor{1-255})', derivedBy='RESTRICTION'. */
-static int decode_v2gSensorListType(bitstream_t* stream, struct v2gSensorListType* v2gSensorListType) {
- int grammarID = 2160;
- int done = 0;
-
- init_v2gSensorListType(v2gSensorListType);
-
- while(!done) {
- switch(grammarID) {
- case 2160:
- /* FirstStartTag[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}Sensor)] */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gSensorListType->Sensor.arrayLen < v2gSensorListType_Sensor_ARRAY_SIZE) {
- errn = decode_v2gSensorType(stream, &v2gSensorListType->Sensor.array[v2gSensorListType->Sensor.arrayLen++]);
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- grammarID = 2161;
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 2161:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}Sensor), END_ELEMENT] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gSensorListType->Sensor.arrayLen < v2gSensorListType_Sensor_ARRAY_SIZE) {
- errn = decode_v2gSensorType(stream, &v2gSensorListType->Sensor.array[v2gSensorListType->Sensor.arrayLen++]);
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- grammarID = 2162;
- break;
- case 1:
- done = 1;
- grammarID = 3;
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 2162:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}Sensor), END_ELEMENT] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gSensorListType->Sensor.arrayLen < v2gSensorListType_Sensor_ARRAY_SIZE) {
- errn = decode_v2gSensorType(stream, &v2gSensorListType->Sensor.array[v2gSensorListType->Sensor.arrayLen++]);
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- grammarID = 2163;
- break;
- case 1:
- done = 1;
- grammarID = 3;
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 2163:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}Sensor), END_ELEMENT] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gSensorListType->Sensor.arrayLen < v2gSensorListType_Sensor_ARRAY_SIZE) {
- errn = decode_v2gSensorType(stream, &v2gSensorListType->Sensor.array[v2gSensorListType->Sensor.arrayLen++]);
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- grammarID = 2164;
- break;
- case 1:
- done = 1;
- grammarID = 3;
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 2164:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}Sensor), END_ELEMENT] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gSensorListType->Sensor.arrayLen < v2gSensorListType_Sensor_ARRAY_SIZE) {
- errn = decode_v2gSensorType(stream, &v2gSensorListType->Sensor.array[v2gSensorListType->Sensor.arrayLen++]);
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- grammarID = 2165;
- break;
- case 1:
- done = 1;
- grammarID = 3;
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 2165:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}Sensor), END_ELEMENT] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gSensorListType->Sensor.arrayLen < v2gSensorListType_Sensor_ARRAY_SIZE) {
- errn = decode_v2gSensorType(stream, &v2gSensorListType->Sensor.array[v2gSensorListType->Sensor.arrayLen++]);
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- grammarID = 2166;
- break;
- case 1:
- done = 1;
- grammarID = 3;
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 2166:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}Sensor), END_ELEMENT] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gSensorListType->Sensor.arrayLen < v2gSensorListType_Sensor_ARRAY_SIZE) {
- errn = decode_v2gSensorType(stream, &v2gSensorListType->Sensor.array[v2gSensorListType->Sensor.arrayLen++]);
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- grammarID = 2167;
- break;
- case 1:
- done = 1;
- grammarID = 3;
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 2167:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}Sensor), END_ELEMENT] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gSensorListType->Sensor.arrayLen < v2gSensorListType_Sensor_ARRAY_SIZE) {
- errn = decode_v2gSensorType(stream, &v2gSensorListType->Sensor.array[v2gSensorListType->Sensor.arrayLen++]);
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- grammarID = 2168;
- break;
- case 1:
- done = 1;
- grammarID = 3;
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 2168:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}Sensor), END_ELEMENT] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gSensorListType->Sensor.arrayLen < v2gSensorListType_Sensor_ARRAY_SIZE) {
- errn = decode_v2gSensorType(stream, &v2gSensorListType->Sensor.array[v2gSensorListType->Sensor.arrayLen++]);
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- grammarID = 2169;
- break;
- case 1:
- done = 1;
- grammarID = 3;
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 2169:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}Sensor), END_ELEMENT] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gSensorListType->Sensor.arrayLen < v2gSensorListType_Sensor_ARRAY_SIZE) {
- errn = decode_v2gSensorType(stream, &v2gSensorListType->Sensor.array[v2gSensorListType->Sensor.arrayLen++]);
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- grammarID = 2170;
- break;
- case 1:
- done = 1;
- grammarID = 3;
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 2170:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}Sensor), END_ELEMENT] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gSensorListType->Sensor.arrayLen < v2gSensorListType_Sensor_ARRAY_SIZE) {
- errn = decode_v2gSensorType(stream, &v2gSensorListType->Sensor.array[v2gSensorListType->Sensor.arrayLen++]);
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- grammarID = 2171;
- break;
- case 1:
- done = 1;
- grammarID = 3;
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 2171:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}Sensor), END_ELEMENT] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gSensorListType->Sensor.arrayLen < v2gSensorListType_Sensor_ARRAY_SIZE) {
- errn = decode_v2gSensorType(stream, &v2gSensorListType->Sensor.array[v2gSensorListType->Sensor.arrayLen++]);
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- grammarID = 2172;
- break;
- case 1:
- done = 1;
- grammarID = 3;
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 2172:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}Sensor), END_ELEMENT] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gSensorListType->Sensor.arrayLen < v2gSensorListType_Sensor_ARRAY_SIZE) {
- errn = decode_v2gSensorType(stream, &v2gSensorListType->Sensor.array[v2gSensorListType->Sensor.arrayLen++]);
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- grammarID = 2173;
- break;
- case 1:
- done = 1;
- grammarID = 3;
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 2173:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}Sensor), END_ELEMENT] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gSensorListType->Sensor.arrayLen < v2gSensorListType_Sensor_ARRAY_SIZE) {
- errn = decode_v2gSensorType(stream, &v2gSensorListType->Sensor.array[v2gSensorListType->Sensor.arrayLen++]);
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- grammarID = 2174;
- break;
- case 1:
- done = 1;
- grammarID = 3;
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 2174:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}Sensor), END_ELEMENT] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gSensorListType->Sensor.arrayLen < v2gSensorListType_Sensor_ARRAY_SIZE) {
- errn = decode_v2gSensorType(stream, &v2gSensorListType->Sensor.array[v2gSensorListType->Sensor.arrayLen++]);
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- grammarID = 2175;
- break;
- case 1:
- done = 1;
- grammarID = 3;
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 2175:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}Sensor), END_ELEMENT] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gSensorListType->Sensor.arrayLen < v2gSensorListType_Sensor_ARRAY_SIZE) {
- errn = decode_v2gSensorType(stream, &v2gSensorListType->Sensor.array[v2gSensorListType->Sensor.arrayLen++]);
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- grammarID = 2176;
- break;
- case 1:
- done = 1;
- grammarID = 3;
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 2176:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}Sensor), END_ELEMENT] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gSensorListType->Sensor.arrayLen < v2gSensorListType_Sensor_ARRAY_SIZE) {
- errn = decode_v2gSensorType(stream, &v2gSensorListType->Sensor.array[v2gSensorListType->Sensor.arrayLen++]);
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- grammarID = 2177;
- break;
- case 1:
- done = 1;
- grammarID = 3;
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 2177:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}Sensor), END_ELEMENT] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gSensorListType->Sensor.arrayLen < v2gSensorListType_Sensor_ARRAY_SIZE) {
- errn = decode_v2gSensorType(stream, &v2gSensorListType->Sensor.array[v2gSensorListType->Sensor.arrayLen++]);
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- grammarID = 2178;
- break;
- case 1:
- done = 1;
- grammarID = 3;
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 2178:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}Sensor), END_ELEMENT] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gSensorListType->Sensor.arrayLen < v2gSensorListType_Sensor_ARRAY_SIZE) {
- errn = decode_v2gSensorType(stream, &v2gSensorListType->Sensor.array[v2gSensorListType->Sensor.arrayLen++]);
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- grammarID = 2179;
- break;
- case 1:
- done = 1;
- grammarID = 3;
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 2179:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}Sensor), END_ELEMENT] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gSensorListType->Sensor.arrayLen < v2gSensorListType_Sensor_ARRAY_SIZE) {
- errn = decode_v2gSensorType(stream, &v2gSensorListType->Sensor.array[v2gSensorListType->Sensor.arrayLen++]);
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- grammarID = 2180;
- break;
- case 1:
- done = 1;
- grammarID = 3;
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 2180:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}Sensor), END_ELEMENT] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gSensorListType->Sensor.arrayLen < v2gSensorListType_Sensor_ARRAY_SIZE) {
- errn = decode_v2gSensorType(stream, &v2gSensorListType->Sensor.array[v2gSensorListType->Sensor.arrayLen++]);
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- grammarID = 2181;
- break;
- case 1:
- done = 1;
- grammarID = 3;
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 2181:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}Sensor), END_ELEMENT] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gSensorListType->Sensor.arrayLen < v2gSensorListType_Sensor_ARRAY_SIZE) {
- errn = decode_v2gSensorType(stream, &v2gSensorListType->Sensor.array[v2gSensorListType->Sensor.arrayLen++]);
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- grammarID = 2182;
- break;
- case 1:
- done = 1;
- grammarID = 3;
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 2182:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}Sensor), END_ELEMENT] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gSensorListType->Sensor.arrayLen < v2gSensorListType_Sensor_ARRAY_SIZE) {
- errn = decode_v2gSensorType(stream, &v2gSensorListType->Sensor.array[v2gSensorListType->Sensor.arrayLen++]);
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- grammarID = 2183;
- break;
- case 1:
- done = 1;
- grammarID = 3;
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 2183:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}Sensor), END_ELEMENT] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gSensorListType->Sensor.arrayLen < v2gSensorListType_Sensor_ARRAY_SIZE) {
- errn = decode_v2gSensorType(stream, &v2gSensorListType->Sensor.array[v2gSensorListType->Sensor.arrayLen++]);
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- grammarID = 2184;
- break;
- case 1:
- done = 1;
- grammarID = 3;
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 2184:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}Sensor), END_ELEMENT] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gSensorListType->Sensor.arrayLen < v2gSensorListType_Sensor_ARRAY_SIZE) {
- errn = decode_v2gSensorType(stream, &v2gSensorListType->Sensor.array[v2gSensorListType->Sensor.arrayLen++]);
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- grammarID = 2185;
- break;
- case 1:
- done = 1;
- grammarID = 3;
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 2185:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}Sensor), END_ELEMENT] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gSensorListType->Sensor.arrayLen < v2gSensorListType_Sensor_ARRAY_SIZE) {
- errn = decode_v2gSensorType(stream, &v2gSensorListType->Sensor.array[v2gSensorListType->Sensor.arrayLen++]);
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- grammarID = 2186;
- break;
- case 1:
- done = 1;
- grammarID = 3;
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 2186:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}Sensor), END_ELEMENT] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gSensorListType->Sensor.arrayLen < v2gSensorListType_Sensor_ARRAY_SIZE) {
- errn = decode_v2gSensorType(stream, &v2gSensorListType->Sensor.array[v2gSensorListType->Sensor.arrayLen++]);
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- grammarID = 2187;
- break;
- case 1:
- done = 1;
- grammarID = 3;
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 2187:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}Sensor), END_ELEMENT] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gSensorListType->Sensor.arrayLen < v2gSensorListType_Sensor_ARRAY_SIZE) {
- errn = decode_v2gSensorType(stream, &v2gSensorListType->Sensor.array[v2gSensorListType->Sensor.arrayLen++]);
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- grammarID = 2188;
- break;
- case 1:
- done = 1;
- grammarID = 3;
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 2188:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}Sensor), END_ELEMENT] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gSensorListType->Sensor.arrayLen < v2gSensorListType_Sensor_ARRAY_SIZE) {
- errn = decode_v2gSensorType(stream, &v2gSensorListType->Sensor.array[v2gSensorListType->Sensor.arrayLen++]);
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- grammarID = 2189;
- break;
- case 1:
- done = 1;
- grammarID = 3;
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 2189:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}Sensor), END_ELEMENT] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gSensorListType->Sensor.arrayLen < v2gSensorListType_Sensor_ARRAY_SIZE) {
- errn = decode_v2gSensorType(stream, &v2gSensorListType->Sensor.array[v2gSensorListType->Sensor.arrayLen++]);
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- grammarID = 2190;
- break;
- case 1:
- done = 1;
- grammarID = 3;
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 2190:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}Sensor), END_ELEMENT] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gSensorListType->Sensor.arrayLen < v2gSensorListType_Sensor_ARRAY_SIZE) {
- errn = decode_v2gSensorType(stream, &v2gSensorListType->Sensor.array[v2gSensorListType->Sensor.arrayLen++]);
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- grammarID = 2191;
- break;
- case 1:
- done = 1;
- grammarID = 3;
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 2191:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}Sensor), END_ELEMENT] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gSensorListType->Sensor.arrayLen < v2gSensorListType_Sensor_ARRAY_SIZE) {
- errn = decode_v2gSensorType(stream, &v2gSensorListType->Sensor.array[v2gSensorListType->Sensor.arrayLen++]);
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- grammarID = 2192;
- break;
- case 1:
- done = 1;
- grammarID = 3;
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 2192:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}Sensor), END_ELEMENT] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gSensorListType->Sensor.arrayLen < v2gSensorListType_Sensor_ARRAY_SIZE) {
- errn = decode_v2gSensorType(stream, &v2gSensorListType->Sensor.array[v2gSensorListType->Sensor.arrayLen++]);
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- grammarID = 2193;
- break;
- case 1:
- done = 1;
- grammarID = 3;
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 2193:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}Sensor), END_ELEMENT] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gSensorListType->Sensor.arrayLen < v2gSensorListType_Sensor_ARRAY_SIZE) {
- errn = decode_v2gSensorType(stream, &v2gSensorListType->Sensor.array[v2gSensorListType->Sensor.arrayLen++]);
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- grammarID = 2194;
- break;
- case 1:
- done = 1;
- grammarID = 3;
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 2194:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}Sensor), END_ELEMENT] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gSensorListType->Sensor.arrayLen < v2gSensorListType_Sensor_ARRAY_SIZE) {
- errn = decode_v2gSensorType(stream, &v2gSensorListType->Sensor.array[v2gSensorListType->Sensor.arrayLen++]);
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- grammarID = 2195;
- break;
- case 1:
- done = 1;
- grammarID = 3;
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 2195:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}Sensor), END_ELEMENT] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gSensorListType->Sensor.arrayLen < v2gSensorListType_Sensor_ARRAY_SIZE) {
- errn = decode_v2gSensorType(stream, &v2gSensorListType->Sensor.array[v2gSensorListType->Sensor.arrayLen++]);
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- grammarID = 2196;
- break;
- case 1:
- done = 1;
- grammarID = 3;
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 2196:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}Sensor), END_ELEMENT] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gSensorListType->Sensor.arrayLen < v2gSensorListType_Sensor_ARRAY_SIZE) {
- errn = decode_v2gSensorType(stream, &v2gSensorListType->Sensor.array[v2gSensorListType->Sensor.arrayLen++]);
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- grammarID = 2197;
- break;
- case 1:
- done = 1;
- grammarID = 3;
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 2197:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}Sensor), END_ELEMENT] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gSensorListType->Sensor.arrayLen < v2gSensorListType_Sensor_ARRAY_SIZE) {
- errn = decode_v2gSensorType(stream, &v2gSensorListType->Sensor.array[v2gSensorListType->Sensor.arrayLen++]);
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- grammarID = 2198;
- break;
- case 1:
- done = 1;
- grammarID = 3;
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 2198:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}Sensor), END_ELEMENT] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gSensorListType->Sensor.arrayLen < v2gSensorListType_Sensor_ARRAY_SIZE) {
- errn = decode_v2gSensorType(stream, &v2gSensorListType->Sensor.array[v2gSensorListType->Sensor.arrayLen++]);
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- grammarID = 2199;
- break;
- case 1:
- done = 1;
- grammarID = 3;
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 2199:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}Sensor), END_ELEMENT] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gSensorListType->Sensor.arrayLen < v2gSensorListType_Sensor_ARRAY_SIZE) {
- errn = decode_v2gSensorType(stream, &v2gSensorListType->Sensor.array[v2gSensorListType->Sensor.arrayLen++]);
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- grammarID = 2200;
- break;
- case 1:
- done = 1;
- grammarID = 3;
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 2200:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}Sensor), END_ELEMENT] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gSensorListType->Sensor.arrayLen < v2gSensorListType_Sensor_ARRAY_SIZE) {
- errn = decode_v2gSensorType(stream, &v2gSensorListType->Sensor.array[v2gSensorListType->Sensor.arrayLen++]);
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- grammarID = 2201;
- break;
- case 1:
- done = 1;
- grammarID = 3;
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 2201:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}Sensor), END_ELEMENT] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gSensorListType->Sensor.arrayLen < v2gSensorListType_Sensor_ARRAY_SIZE) {
- errn = decode_v2gSensorType(stream, &v2gSensorListType->Sensor.array[v2gSensorListType->Sensor.arrayLen++]);
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- grammarID = 2202;
- break;
- case 1:
- done = 1;
- grammarID = 3;
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 2202:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}Sensor), END_ELEMENT] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gSensorListType->Sensor.arrayLen < v2gSensorListType_Sensor_ARRAY_SIZE) {
- errn = decode_v2gSensorType(stream, &v2gSensorListType->Sensor.array[v2gSensorListType->Sensor.arrayLen++]);
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- grammarID = 2203;
- break;
- case 1:
- done = 1;
- grammarID = 3;
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 2203:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}Sensor), END_ELEMENT] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gSensorListType->Sensor.arrayLen < v2gSensorListType_Sensor_ARRAY_SIZE) {
- errn = decode_v2gSensorType(stream, &v2gSensorListType->Sensor.array[v2gSensorListType->Sensor.arrayLen++]);
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- grammarID = 2204;
- break;
- case 1:
- done = 1;
- grammarID = 3;
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 2204:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}Sensor), END_ELEMENT] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gSensorListType->Sensor.arrayLen < v2gSensorListType_Sensor_ARRAY_SIZE) {
- errn = decode_v2gSensorType(stream, &v2gSensorListType->Sensor.array[v2gSensorListType->Sensor.arrayLen++]);
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- grammarID = 2205;
- break;
- case 1:
- done = 1;
- grammarID = 3;
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 2205:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}Sensor), END_ELEMENT] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gSensorListType->Sensor.arrayLen < v2gSensorListType_Sensor_ARRAY_SIZE) {
- errn = decode_v2gSensorType(stream, &v2gSensorListType->Sensor.array[v2gSensorListType->Sensor.arrayLen++]);
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- grammarID = 2206;
- break;
- case 1:
- done = 1;
- grammarID = 3;
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 2206:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}Sensor), END_ELEMENT] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gSensorListType->Sensor.arrayLen < v2gSensorListType_Sensor_ARRAY_SIZE) {
- errn = decode_v2gSensorType(stream, &v2gSensorListType->Sensor.array[v2gSensorListType->Sensor.arrayLen++]);
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- grammarID = 2207;
- break;
- case 1:
- done = 1;
- grammarID = 3;
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 2207:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}Sensor), END_ELEMENT] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gSensorListType->Sensor.arrayLen < v2gSensorListType_Sensor_ARRAY_SIZE) {
- errn = decode_v2gSensorType(stream, &v2gSensorListType->Sensor.array[v2gSensorListType->Sensor.arrayLen++]);
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- grammarID = 2208;
- break;
- case 1:
- done = 1;
- grammarID = 3;
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 2208:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}Sensor), END_ELEMENT] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gSensorListType->Sensor.arrayLen < v2gSensorListType_Sensor_ARRAY_SIZE) {
- errn = decode_v2gSensorType(stream, &v2gSensorListType->Sensor.array[v2gSensorListType->Sensor.arrayLen++]);
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- grammarID = 2209;
- break;
- case 1:
- done = 1;
- grammarID = 3;
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 2209:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}Sensor), END_ELEMENT] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gSensorListType->Sensor.arrayLen < v2gSensorListType_Sensor_ARRAY_SIZE) {
- errn = decode_v2gSensorType(stream, &v2gSensorListType->Sensor.array[v2gSensorListType->Sensor.arrayLen++]);
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- grammarID = 2210;
- break;
- case 1:
- done = 1;
- grammarID = 3;
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 2210:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}Sensor), END_ELEMENT] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gSensorListType->Sensor.arrayLen < v2gSensorListType_Sensor_ARRAY_SIZE) {
- errn = decode_v2gSensorType(stream, &v2gSensorListType->Sensor.array[v2gSensorListType->Sensor.arrayLen++]);
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- grammarID = 2211;
- break;
- case 1:
- done = 1;
- grammarID = 3;
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 2211:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}Sensor), END_ELEMENT] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gSensorListType->Sensor.arrayLen < v2gSensorListType_Sensor_ARRAY_SIZE) {
- errn = decode_v2gSensorType(stream, &v2gSensorListType->Sensor.array[v2gSensorListType->Sensor.arrayLen++]);
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- grammarID = 2212;
- break;
- case 1:
- done = 1;
- grammarID = 3;
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 2212:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}Sensor), END_ELEMENT] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gSensorListType->Sensor.arrayLen < v2gSensorListType_Sensor_ARRAY_SIZE) {
- errn = decode_v2gSensorType(stream, &v2gSensorListType->Sensor.array[v2gSensorListType->Sensor.arrayLen++]);
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- grammarID = 2213;
- break;
- case 1:
- done = 1;
- grammarID = 3;
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 2213:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}Sensor), END_ELEMENT] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gSensorListType->Sensor.arrayLen < v2gSensorListType_Sensor_ARRAY_SIZE) {
- errn = decode_v2gSensorType(stream, &v2gSensorListType->Sensor.array[v2gSensorListType->Sensor.arrayLen++]);
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- grammarID = 2214;
- break;
- case 1:
- done = 1;
- grammarID = 3;
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 2214:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}Sensor), END_ELEMENT] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gSensorListType->Sensor.arrayLen < v2gSensorListType_Sensor_ARRAY_SIZE) {
- errn = decode_v2gSensorType(stream, &v2gSensorListType->Sensor.array[v2gSensorListType->Sensor.arrayLen++]);
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- grammarID = 2215;
- break;
- case 1:
- done = 1;
- grammarID = 3;
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 2215:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}Sensor), END_ELEMENT] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gSensorListType->Sensor.arrayLen < v2gSensorListType_Sensor_ARRAY_SIZE) {
- errn = decode_v2gSensorType(stream, &v2gSensorListType->Sensor.array[v2gSensorListType->Sensor.arrayLen++]);
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- grammarID = 2216;
- break;
- case 1:
- done = 1;
- grammarID = 3;
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 2216:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}Sensor), END_ELEMENT] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gSensorListType->Sensor.arrayLen < v2gSensorListType_Sensor_ARRAY_SIZE) {
- errn = decode_v2gSensorType(stream, &v2gSensorListType->Sensor.array[v2gSensorListType->Sensor.arrayLen++]);
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- grammarID = 2217;
- break;
- case 1:
- done = 1;
- grammarID = 3;
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 2217:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}Sensor), END_ELEMENT] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gSensorListType->Sensor.arrayLen < v2gSensorListType_Sensor_ARRAY_SIZE) {
- errn = decode_v2gSensorType(stream, &v2gSensorListType->Sensor.array[v2gSensorListType->Sensor.arrayLen++]);
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- grammarID = 2218;
- break;
- case 1:
- done = 1;
- grammarID = 3;
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 2218:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}Sensor), END_ELEMENT] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gSensorListType->Sensor.arrayLen < v2gSensorListType_Sensor_ARRAY_SIZE) {
- errn = decode_v2gSensorType(stream, &v2gSensorListType->Sensor.array[v2gSensorListType->Sensor.arrayLen++]);
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- grammarID = 2219;
- break;
- case 1:
- done = 1;
- grammarID = 3;
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 2219:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}Sensor), END_ELEMENT] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gSensorListType->Sensor.arrayLen < v2gSensorListType_Sensor_ARRAY_SIZE) {
- errn = decode_v2gSensorType(stream, &v2gSensorListType->Sensor.array[v2gSensorListType->Sensor.arrayLen++]);
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- grammarID = 2220;
- break;
- case 1:
- done = 1;
- grammarID = 3;
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 2220:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}Sensor), END_ELEMENT] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gSensorListType->Sensor.arrayLen < v2gSensorListType_Sensor_ARRAY_SIZE) {
- errn = decode_v2gSensorType(stream, &v2gSensorListType->Sensor.array[v2gSensorListType->Sensor.arrayLen++]);
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- grammarID = 2221;
- break;
- case 1:
- done = 1;
- grammarID = 3;
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 2221:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}Sensor), END_ELEMENT] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gSensorListType->Sensor.arrayLen < v2gSensorListType_Sensor_ARRAY_SIZE) {
- errn = decode_v2gSensorType(stream, &v2gSensorListType->Sensor.array[v2gSensorListType->Sensor.arrayLen++]);
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- grammarID = 2222;
- break;
- case 1:
- done = 1;
- grammarID = 3;
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 2222:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}Sensor), END_ELEMENT] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gSensorListType->Sensor.arrayLen < v2gSensorListType_Sensor_ARRAY_SIZE) {
- errn = decode_v2gSensorType(stream, &v2gSensorListType->Sensor.array[v2gSensorListType->Sensor.arrayLen++]);
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- grammarID = 2223;
- break;
- case 1:
- done = 1;
- grammarID = 3;
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 2223:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}Sensor), END_ELEMENT] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gSensorListType->Sensor.arrayLen < v2gSensorListType_Sensor_ARRAY_SIZE) {
- errn = decode_v2gSensorType(stream, &v2gSensorListType->Sensor.array[v2gSensorListType->Sensor.arrayLen++]);
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- grammarID = 2224;
- break;
- case 1:
- done = 1;
- grammarID = 3;
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 2224:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}Sensor), END_ELEMENT] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gSensorListType->Sensor.arrayLen < v2gSensorListType_Sensor_ARRAY_SIZE) {
- errn = decode_v2gSensorType(stream, &v2gSensorListType->Sensor.array[v2gSensorListType->Sensor.arrayLen++]);
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- grammarID = 2225;
- break;
- case 1:
- done = 1;
- grammarID = 3;
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 2225:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}Sensor), END_ELEMENT] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gSensorListType->Sensor.arrayLen < v2gSensorListType_Sensor_ARRAY_SIZE) {
- errn = decode_v2gSensorType(stream, &v2gSensorListType->Sensor.array[v2gSensorListType->Sensor.arrayLen++]);
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- grammarID = 2226;
- break;
- case 1:
- done = 1;
- grammarID = 3;
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 2226:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}Sensor), END_ELEMENT] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gSensorListType->Sensor.arrayLen < v2gSensorListType_Sensor_ARRAY_SIZE) {
- errn = decode_v2gSensorType(stream, &v2gSensorListType->Sensor.array[v2gSensorListType->Sensor.arrayLen++]);
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- grammarID = 2227;
- break;
- case 1:
- done = 1;
- grammarID = 3;
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 2227:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}Sensor), END_ELEMENT] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gSensorListType->Sensor.arrayLen < v2gSensorListType_Sensor_ARRAY_SIZE) {
- errn = decode_v2gSensorType(stream, &v2gSensorListType->Sensor.array[v2gSensorListType->Sensor.arrayLen++]);
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- grammarID = 2228;
- break;
- case 1:
- done = 1;
- grammarID = 3;
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 2228:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}Sensor), END_ELEMENT] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gSensorListType->Sensor.arrayLen < v2gSensorListType_Sensor_ARRAY_SIZE) {
- errn = decode_v2gSensorType(stream, &v2gSensorListType->Sensor.array[v2gSensorListType->Sensor.arrayLen++]);
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- grammarID = 2229;
- break;
- case 1:
- done = 1;
- grammarID = 3;
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 2229:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}Sensor), END_ELEMENT] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gSensorListType->Sensor.arrayLen < v2gSensorListType_Sensor_ARRAY_SIZE) {
- errn = decode_v2gSensorType(stream, &v2gSensorListType->Sensor.array[v2gSensorListType->Sensor.arrayLen++]);
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- grammarID = 2230;
- break;
- case 1:
- done = 1;
- grammarID = 3;
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 2230:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}Sensor), END_ELEMENT] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gSensorListType->Sensor.arrayLen < v2gSensorListType_Sensor_ARRAY_SIZE) {
- errn = decode_v2gSensorType(stream, &v2gSensorListType->Sensor.array[v2gSensorListType->Sensor.arrayLen++]);
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- grammarID = 2231;
- break;
- case 1:
- done = 1;
- grammarID = 3;
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 2231:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}Sensor), END_ELEMENT] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gSensorListType->Sensor.arrayLen < v2gSensorListType_Sensor_ARRAY_SIZE) {
- errn = decode_v2gSensorType(stream, &v2gSensorListType->Sensor.array[v2gSensorListType->Sensor.arrayLen++]);
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- grammarID = 2232;
- break;
- case 1:
- done = 1;
- grammarID = 3;
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 2232:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}Sensor), END_ELEMENT] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gSensorListType->Sensor.arrayLen < v2gSensorListType_Sensor_ARRAY_SIZE) {
- errn = decode_v2gSensorType(stream, &v2gSensorListType->Sensor.array[v2gSensorListType->Sensor.arrayLen++]);
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- grammarID = 2233;
- break;
- case 1:
- done = 1;
- grammarID = 3;
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 2233:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}Sensor), END_ELEMENT] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gSensorListType->Sensor.arrayLen < v2gSensorListType_Sensor_ARRAY_SIZE) {
- errn = decode_v2gSensorType(stream, &v2gSensorListType->Sensor.array[v2gSensorListType->Sensor.arrayLen++]);
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- grammarID = 2234;
- break;
- case 1:
- done = 1;
- grammarID = 3;
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 2234:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}Sensor), END_ELEMENT] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gSensorListType->Sensor.arrayLen < v2gSensorListType_Sensor_ARRAY_SIZE) {
- errn = decode_v2gSensorType(stream, &v2gSensorListType->Sensor.array[v2gSensorListType->Sensor.arrayLen++]);
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- grammarID = 2235;
- break;
- case 1:
- done = 1;
- grammarID = 3;
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 2235:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}Sensor), END_ELEMENT] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gSensorListType->Sensor.arrayLen < v2gSensorListType_Sensor_ARRAY_SIZE) {
- errn = decode_v2gSensorType(stream, &v2gSensorListType->Sensor.array[v2gSensorListType->Sensor.arrayLen++]);
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- grammarID = 2236;
- break;
- case 1:
- done = 1;
- grammarID = 3;
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 2236:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}Sensor), END_ELEMENT] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gSensorListType->Sensor.arrayLen < v2gSensorListType_Sensor_ARRAY_SIZE) {
- errn = decode_v2gSensorType(stream, &v2gSensorListType->Sensor.array[v2gSensorListType->Sensor.arrayLen++]);
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- grammarID = 2237;
- break;
- case 1:
- done = 1;
- grammarID = 3;
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 2237:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}Sensor), END_ELEMENT] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gSensorListType->Sensor.arrayLen < v2gSensorListType_Sensor_ARRAY_SIZE) {
- errn = decode_v2gSensorType(stream, &v2gSensorListType->Sensor.array[v2gSensorListType->Sensor.arrayLen++]);
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- grammarID = 2238;
- break;
- case 1:
- done = 1;
- grammarID = 3;
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 2238:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}Sensor), END_ELEMENT] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gSensorListType->Sensor.arrayLen < v2gSensorListType_Sensor_ARRAY_SIZE) {
- errn = decode_v2gSensorType(stream, &v2gSensorListType->Sensor.array[v2gSensorListType->Sensor.arrayLen++]);
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- grammarID = 2239;
- break;
- case 1:
- done = 1;
- grammarID = 3;
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 2239:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}Sensor), END_ELEMENT] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gSensorListType->Sensor.arrayLen < v2gSensorListType_Sensor_ARRAY_SIZE) {
- errn = decode_v2gSensorType(stream, &v2gSensorListType->Sensor.array[v2gSensorListType->Sensor.arrayLen++]);
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- grammarID = 2240;
- break;
- case 1:
- done = 1;
- grammarID = 3;
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 2240:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}Sensor), END_ELEMENT] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gSensorListType->Sensor.arrayLen < v2gSensorListType_Sensor_ARRAY_SIZE) {
- errn = decode_v2gSensorType(stream, &v2gSensorListType->Sensor.array[v2gSensorListType->Sensor.arrayLen++]);
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- grammarID = 2241;
- break;
- case 1:
- done = 1;
- grammarID = 3;
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 2241:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}Sensor), END_ELEMENT] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gSensorListType->Sensor.arrayLen < v2gSensorListType_Sensor_ARRAY_SIZE) {
- errn = decode_v2gSensorType(stream, &v2gSensorListType->Sensor.array[v2gSensorListType->Sensor.arrayLen++]);
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- grammarID = 2242;
- break;
- case 1:
- done = 1;
- grammarID = 3;
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 2242:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}Sensor), END_ELEMENT] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gSensorListType->Sensor.arrayLen < v2gSensorListType_Sensor_ARRAY_SIZE) {
- errn = decode_v2gSensorType(stream, &v2gSensorListType->Sensor.array[v2gSensorListType->Sensor.arrayLen++]);
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- grammarID = 2243;
- break;
- case 1:
- done = 1;
- grammarID = 3;
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 2243:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}Sensor), END_ELEMENT] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gSensorListType->Sensor.arrayLen < v2gSensorListType_Sensor_ARRAY_SIZE) {
- errn = decode_v2gSensorType(stream, &v2gSensorListType->Sensor.array[v2gSensorListType->Sensor.arrayLen++]);
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- grammarID = 2244;
- break;
- case 1:
- done = 1;
- grammarID = 3;
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 2244:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}Sensor), END_ELEMENT] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gSensorListType->Sensor.arrayLen < v2gSensorListType_Sensor_ARRAY_SIZE) {
- errn = decode_v2gSensorType(stream, &v2gSensorListType->Sensor.array[v2gSensorListType->Sensor.arrayLen++]);
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- grammarID = 2245;
- break;
- case 1:
- done = 1;
- grammarID = 3;
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 2245:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}Sensor), END_ELEMENT] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gSensorListType->Sensor.arrayLen < v2gSensorListType_Sensor_ARRAY_SIZE) {
- errn = decode_v2gSensorType(stream, &v2gSensorListType->Sensor.array[v2gSensorListType->Sensor.arrayLen++]);
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- grammarID = 2246;
- break;
- case 1:
- done = 1;
- grammarID = 3;
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 2246:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}Sensor), END_ELEMENT] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gSensorListType->Sensor.arrayLen < v2gSensorListType_Sensor_ARRAY_SIZE) {
- errn = decode_v2gSensorType(stream, &v2gSensorListType->Sensor.array[v2gSensorListType->Sensor.arrayLen++]);
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- grammarID = 2247;
- break;
- case 1:
- done = 1;
- grammarID = 3;
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 2247:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}Sensor), END_ELEMENT] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gSensorListType->Sensor.arrayLen < v2gSensorListType_Sensor_ARRAY_SIZE) {
- errn = decode_v2gSensorType(stream, &v2gSensorListType->Sensor.array[v2gSensorListType->Sensor.arrayLen++]);
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- grammarID = 2248;
- break;
- case 1:
- done = 1;
- grammarID = 3;
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 2248:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}Sensor), END_ELEMENT] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gSensorListType->Sensor.arrayLen < v2gSensorListType_Sensor_ARRAY_SIZE) {
- errn = decode_v2gSensorType(stream, &v2gSensorListType->Sensor.array[v2gSensorListType->Sensor.arrayLen++]);
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- grammarID = 2249;
- break;
- case 1:
- done = 1;
- grammarID = 3;
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 2249:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}Sensor), END_ELEMENT] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gSensorListType->Sensor.arrayLen < v2gSensorListType_Sensor_ARRAY_SIZE) {
- errn = decode_v2gSensorType(stream, &v2gSensorListType->Sensor.array[v2gSensorListType->Sensor.arrayLen++]);
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- grammarID = 2250;
- break;
- case 1:
- done = 1;
- grammarID = 3;
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 2250:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}Sensor), END_ELEMENT] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gSensorListType->Sensor.arrayLen < v2gSensorListType_Sensor_ARRAY_SIZE) {
- errn = decode_v2gSensorType(stream, &v2gSensorListType->Sensor.array[v2gSensorListType->Sensor.arrayLen++]);
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- grammarID = 2251;
- break;
- case 1:
- done = 1;
- grammarID = 3;
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 2251:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}Sensor), END_ELEMENT] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gSensorListType->Sensor.arrayLen < v2gSensorListType_Sensor_ARRAY_SIZE) {
- errn = decode_v2gSensorType(stream, &v2gSensorListType->Sensor.array[v2gSensorListType->Sensor.arrayLen++]);
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- grammarID = 2252;
- break;
- case 1:
- done = 1;
- grammarID = 3;
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 2252:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}Sensor), END_ELEMENT] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gSensorListType->Sensor.arrayLen < v2gSensorListType_Sensor_ARRAY_SIZE) {
- errn = decode_v2gSensorType(stream, &v2gSensorListType->Sensor.array[v2gSensorListType->Sensor.arrayLen++]);
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- grammarID = 2253;
- break;
- case 1:
- done = 1;
- grammarID = 3;
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 2253:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}Sensor), END_ELEMENT] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gSensorListType->Sensor.arrayLen < v2gSensorListType_Sensor_ARRAY_SIZE) {
- errn = decode_v2gSensorType(stream, &v2gSensorListType->Sensor.array[v2gSensorListType->Sensor.arrayLen++]);
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- grammarID = 2254;
- break;
- case 1:
- done = 1;
- grammarID = 3;
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 2254:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}Sensor), END_ELEMENT] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gSensorListType->Sensor.arrayLen < v2gSensorListType_Sensor_ARRAY_SIZE) {
- errn = decode_v2gSensorType(stream, &v2gSensorListType->Sensor.array[v2gSensorListType->Sensor.arrayLen++]);
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- grammarID = 2255;
- break;
- case 1:
- done = 1;
- grammarID = 3;
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 2255:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}Sensor), END_ELEMENT] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gSensorListType->Sensor.arrayLen < v2gSensorListType_Sensor_ARRAY_SIZE) {
- errn = decode_v2gSensorType(stream, &v2gSensorListType->Sensor.array[v2gSensorListType->Sensor.arrayLen++]);
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- grammarID = 2256;
- break;
- case 1:
- done = 1;
- grammarID = 3;
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 2256:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}Sensor), END_ELEMENT] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gSensorListType->Sensor.arrayLen < v2gSensorListType_Sensor_ARRAY_SIZE) {
- errn = decode_v2gSensorType(stream, &v2gSensorListType->Sensor.array[v2gSensorListType->Sensor.arrayLen++]);
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- grammarID = 2257;
- break;
- case 1:
- done = 1;
- grammarID = 3;
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 2257:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}Sensor), END_ELEMENT] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gSensorListType->Sensor.arrayLen < v2gSensorListType_Sensor_ARRAY_SIZE) {
- errn = decode_v2gSensorType(stream, &v2gSensorListType->Sensor.array[v2gSensorListType->Sensor.arrayLen++]);
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- grammarID = 2258;
- break;
- case 1:
- done = 1;
- grammarID = 3;
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 2258:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}Sensor), END_ELEMENT] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gSensorListType->Sensor.arrayLen < v2gSensorListType_Sensor_ARRAY_SIZE) {
- errn = decode_v2gSensorType(stream, &v2gSensorListType->Sensor.array[v2gSensorListType->Sensor.arrayLen++]);
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- grammarID = 2259;
- break;
- case 1:
- done = 1;
- grammarID = 3;
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 2259:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}Sensor), END_ELEMENT] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gSensorListType->Sensor.arrayLen < v2gSensorListType_Sensor_ARRAY_SIZE) {
- errn = decode_v2gSensorType(stream, &v2gSensorListType->Sensor.array[v2gSensorListType->Sensor.arrayLen++]);
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- grammarID = 2260;
- break;
- case 1:
- done = 1;
- grammarID = 3;
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 2260:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}Sensor), END_ELEMENT] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gSensorListType->Sensor.arrayLen < v2gSensorListType_Sensor_ARRAY_SIZE) {
- errn = decode_v2gSensorType(stream, &v2gSensorListType->Sensor.array[v2gSensorListType->Sensor.arrayLen++]);
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- grammarID = 2261;
- break;
- case 1:
- done = 1;
- grammarID = 3;
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 2261:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}Sensor), END_ELEMENT] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gSensorListType->Sensor.arrayLen < v2gSensorListType_Sensor_ARRAY_SIZE) {
- errn = decode_v2gSensorType(stream, &v2gSensorListType->Sensor.array[v2gSensorListType->Sensor.arrayLen++]);
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- grammarID = 2262;
- break;
- case 1:
- done = 1;
- grammarID = 3;
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 2262:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}Sensor), END_ELEMENT] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gSensorListType->Sensor.arrayLen < v2gSensorListType_Sensor_ARRAY_SIZE) {
- errn = decode_v2gSensorType(stream, &v2gSensorListType->Sensor.array[v2gSensorListType->Sensor.arrayLen++]);
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- grammarID = 2263;
- break;
- case 1:
- done = 1;
- grammarID = 3;
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 2263:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}Sensor), END_ELEMENT] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gSensorListType->Sensor.arrayLen < v2gSensorListType_Sensor_ARRAY_SIZE) {
- errn = decode_v2gSensorType(stream, &v2gSensorListType->Sensor.array[v2gSensorListType->Sensor.arrayLen++]);
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- grammarID = 2264;
- break;
- case 1:
- done = 1;
- grammarID = 3;
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 2264:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}Sensor), END_ELEMENT] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gSensorListType->Sensor.arrayLen < v2gSensorListType_Sensor_ARRAY_SIZE) {
- errn = decode_v2gSensorType(stream, &v2gSensorListType->Sensor.array[v2gSensorListType->Sensor.arrayLen++]);
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- grammarID = 2265;
- break;
- case 1:
- done = 1;
- grammarID = 3;
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 2265:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}Sensor), END_ELEMENT] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gSensorListType->Sensor.arrayLen < v2gSensorListType_Sensor_ARRAY_SIZE) {
- errn = decode_v2gSensorType(stream, &v2gSensorListType->Sensor.array[v2gSensorListType->Sensor.arrayLen++]);
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- grammarID = 2266;
- break;
- case 1:
- done = 1;
- grammarID = 3;
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 2266:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}Sensor), END_ELEMENT] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gSensorListType->Sensor.arrayLen < v2gSensorListType_Sensor_ARRAY_SIZE) {
- errn = decode_v2gSensorType(stream, &v2gSensorListType->Sensor.array[v2gSensorListType->Sensor.arrayLen++]);
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- grammarID = 2267;
- break;
- case 1:
- done = 1;
- grammarID = 3;
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 2267:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}Sensor), END_ELEMENT] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gSensorListType->Sensor.arrayLen < v2gSensorListType_Sensor_ARRAY_SIZE) {
- errn = decode_v2gSensorType(stream, &v2gSensorListType->Sensor.array[v2gSensorListType->Sensor.arrayLen++]);
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- grammarID = 2268;
- break;
- case 1:
- done = 1;
- grammarID = 3;
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 2268:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}Sensor), END_ELEMENT] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gSensorListType->Sensor.arrayLen < v2gSensorListType_Sensor_ARRAY_SIZE) {
- errn = decode_v2gSensorType(stream, &v2gSensorListType->Sensor.array[v2gSensorListType->Sensor.arrayLen++]);
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- grammarID = 2269;
- break;
- case 1:
- done = 1;
- grammarID = 3;
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 2269:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}Sensor), END_ELEMENT] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gSensorListType->Sensor.arrayLen < v2gSensorListType_Sensor_ARRAY_SIZE) {
- errn = decode_v2gSensorType(stream, &v2gSensorListType->Sensor.array[v2gSensorListType->Sensor.arrayLen++]);
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- grammarID = 2270;
- break;
- case 1:
- done = 1;
- grammarID = 3;
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 2270:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}Sensor), END_ELEMENT] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gSensorListType->Sensor.arrayLen < v2gSensorListType_Sensor_ARRAY_SIZE) {
- errn = decode_v2gSensorType(stream, &v2gSensorListType->Sensor.array[v2gSensorListType->Sensor.arrayLen++]);
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- grammarID = 2271;
- break;
- case 1:
- done = 1;
- grammarID = 3;
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 2271:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}Sensor), END_ELEMENT] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gSensorListType->Sensor.arrayLen < v2gSensorListType_Sensor_ARRAY_SIZE) {
- errn = decode_v2gSensorType(stream, &v2gSensorListType->Sensor.array[v2gSensorListType->Sensor.arrayLen++]);
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- grammarID = 2272;
- break;
- case 1:
- done = 1;
- grammarID = 3;
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 2272:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}Sensor), END_ELEMENT] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gSensorListType->Sensor.arrayLen < v2gSensorListType_Sensor_ARRAY_SIZE) {
- errn = decode_v2gSensorType(stream, &v2gSensorListType->Sensor.array[v2gSensorListType->Sensor.arrayLen++]);
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- grammarID = 2273;
- break;
- case 1:
- done = 1;
- grammarID = 3;
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 2273:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}Sensor), END_ELEMENT] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gSensorListType->Sensor.arrayLen < v2gSensorListType_Sensor_ARRAY_SIZE) {
- errn = decode_v2gSensorType(stream, &v2gSensorListType->Sensor.array[v2gSensorListType->Sensor.arrayLen++]);
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- grammarID = 2274;
- break;
- case 1:
- done = 1;
- grammarID = 3;
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 2274:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}Sensor), END_ELEMENT] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gSensorListType->Sensor.arrayLen < v2gSensorListType_Sensor_ARRAY_SIZE) {
- errn = decode_v2gSensorType(stream, &v2gSensorListType->Sensor.array[v2gSensorListType->Sensor.arrayLen++]);
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- grammarID = 2275;
- break;
- case 1:
- done = 1;
- grammarID = 3;
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 2275:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}Sensor), END_ELEMENT] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gSensorListType->Sensor.arrayLen < v2gSensorListType_Sensor_ARRAY_SIZE) {
- errn = decode_v2gSensorType(stream, &v2gSensorListType->Sensor.array[v2gSensorListType->Sensor.arrayLen++]);
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- grammarID = 2276;
- break;
- case 1:
- done = 1;
- grammarID = 3;
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 2276:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}Sensor), END_ELEMENT] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gSensorListType->Sensor.arrayLen < v2gSensorListType_Sensor_ARRAY_SIZE) {
- errn = decode_v2gSensorType(stream, &v2gSensorListType->Sensor.array[v2gSensorListType->Sensor.arrayLen++]);
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- grammarID = 2277;
- break;
- case 1:
- done = 1;
- grammarID = 3;
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 2277:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}Sensor), END_ELEMENT] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gSensorListType->Sensor.arrayLen < v2gSensorListType_Sensor_ARRAY_SIZE) {
- errn = decode_v2gSensorType(stream, &v2gSensorListType->Sensor.array[v2gSensorListType->Sensor.arrayLen++]);
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- grammarID = 2278;
- break;
- case 1:
- done = 1;
- grammarID = 3;
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 2278:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}Sensor), END_ELEMENT] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gSensorListType->Sensor.arrayLen < v2gSensorListType_Sensor_ARRAY_SIZE) {
- errn = decode_v2gSensorType(stream, &v2gSensorListType->Sensor.array[v2gSensorListType->Sensor.arrayLen++]);
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- grammarID = 2279;
- break;
- case 1:
- done = 1;
- grammarID = 3;
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 2279:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}Sensor), END_ELEMENT] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gSensorListType->Sensor.arrayLen < v2gSensorListType_Sensor_ARRAY_SIZE) {
- errn = decode_v2gSensorType(stream, &v2gSensorListType->Sensor.array[v2gSensorListType->Sensor.arrayLen++]);
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- grammarID = 2280;
- break;
- case 1:
- done = 1;
- grammarID = 3;
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 2280:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}Sensor), END_ELEMENT] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gSensorListType->Sensor.arrayLen < v2gSensorListType_Sensor_ARRAY_SIZE) {
- errn = decode_v2gSensorType(stream, &v2gSensorListType->Sensor.array[v2gSensorListType->Sensor.arrayLen++]);
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- grammarID = 2281;
- break;
- case 1:
- done = 1;
- grammarID = 3;
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 2281:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}Sensor), END_ELEMENT] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gSensorListType->Sensor.arrayLen < v2gSensorListType_Sensor_ARRAY_SIZE) {
- errn = decode_v2gSensorType(stream, &v2gSensorListType->Sensor.array[v2gSensorListType->Sensor.arrayLen++]);
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- grammarID = 2282;
- break;
- case 1:
- done = 1;
- grammarID = 3;
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 2282:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}Sensor), END_ELEMENT] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gSensorListType->Sensor.arrayLen < v2gSensorListType_Sensor_ARRAY_SIZE) {
- errn = decode_v2gSensorType(stream, &v2gSensorListType->Sensor.array[v2gSensorListType->Sensor.arrayLen++]);
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- grammarID = 2283;
- break;
- case 1:
- done = 1;
- grammarID = 3;
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 2283:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}Sensor), END_ELEMENT] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gSensorListType->Sensor.arrayLen < v2gSensorListType_Sensor_ARRAY_SIZE) {
- errn = decode_v2gSensorType(stream, &v2gSensorListType->Sensor.array[v2gSensorListType->Sensor.arrayLen++]);
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- grammarID = 2284;
- break;
- case 1:
- done = 1;
- grammarID = 3;
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 2284:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}Sensor), END_ELEMENT] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gSensorListType->Sensor.arrayLen < v2gSensorListType_Sensor_ARRAY_SIZE) {
- errn = decode_v2gSensorType(stream, &v2gSensorListType->Sensor.array[v2gSensorListType->Sensor.arrayLen++]);
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- grammarID = 2285;
- break;
- case 1:
- done = 1;
- grammarID = 3;
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 2285:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}Sensor), END_ELEMENT] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gSensorListType->Sensor.arrayLen < v2gSensorListType_Sensor_ARRAY_SIZE) {
- errn = decode_v2gSensorType(stream, &v2gSensorListType->Sensor.array[v2gSensorListType->Sensor.arrayLen++]);
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- grammarID = 2286;
- break;
- case 1:
- done = 1;
- grammarID = 3;
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 2286:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}Sensor), END_ELEMENT] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gSensorListType->Sensor.arrayLen < v2gSensorListType_Sensor_ARRAY_SIZE) {
- errn = decode_v2gSensorType(stream, &v2gSensorListType->Sensor.array[v2gSensorListType->Sensor.arrayLen++]);
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- grammarID = 2287;
- break;
- case 1:
- done = 1;
- grammarID = 3;
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 2287:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}Sensor), END_ELEMENT] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gSensorListType->Sensor.arrayLen < v2gSensorListType_Sensor_ARRAY_SIZE) {
- errn = decode_v2gSensorType(stream, &v2gSensorListType->Sensor.array[v2gSensorListType->Sensor.arrayLen++]);
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- grammarID = 2288;
- break;
- case 1:
- done = 1;
- grammarID = 3;
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 2288:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}Sensor), END_ELEMENT] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gSensorListType->Sensor.arrayLen < v2gSensorListType_Sensor_ARRAY_SIZE) {
- errn = decode_v2gSensorType(stream, &v2gSensorListType->Sensor.array[v2gSensorListType->Sensor.arrayLen++]);
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- grammarID = 2289;
- break;
- case 1:
- done = 1;
- grammarID = 3;
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 2289:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}Sensor), END_ELEMENT] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gSensorListType->Sensor.arrayLen < v2gSensorListType_Sensor_ARRAY_SIZE) {
- errn = decode_v2gSensorType(stream, &v2gSensorListType->Sensor.array[v2gSensorListType->Sensor.arrayLen++]);
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- grammarID = 2290;
- break;
- case 1:
- done = 1;
- grammarID = 3;
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 2290:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}Sensor), END_ELEMENT] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gSensorListType->Sensor.arrayLen < v2gSensorListType_Sensor_ARRAY_SIZE) {
- errn = decode_v2gSensorType(stream, &v2gSensorListType->Sensor.array[v2gSensorListType->Sensor.arrayLen++]);
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- grammarID = 2291;
- break;
- case 1:
- done = 1;
- grammarID = 3;
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 2291:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}Sensor), END_ELEMENT] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gSensorListType->Sensor.arrayLen < v2gSensorListType_Sensor_ARRAY_SIZE) {
- errn = decode_v2gSensorType(stream, &v2gSensorListType->Sensor.array[v2gSensorListType->Sensor.arrayLen++]);
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- grammarID = 2292;
- break;
- case 1:
- done = 1;
- grammarID = 3;
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 2292:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}Sensor), END_ELEMENT] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gSensorListType->Sensor.arrayLen < v2gSensorListType_Sensor_ARRAY_SIZE) {
- errn = decode_v2gSensorType(stream, &v2gSensorListType->Sensor.array[v2gSensorListType->Sensor.arrayLen++]);
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- grammarID = 2293;
- break;
- case 1:
- done = 1;
- grammarID = 3;
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 2293:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}Sensor), END_ELEMENT] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gSensorListType->Sensor.arrayLen < v2gSensorListType_Sensor_ARRAY_SIZE) {
- errn = decode_v2gSensorType(stream, &v2gSensorListType->Sensor.array[v2gSensorListType->Sensor.arrayLen++]);
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- grammarID = 2294;
- break;
- case 1:
- done = 1;
- grammarID = 3;
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 2294:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}Sensor), END_ELEMENT] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gSensorListType->Sensor.arrayLen < v2gSensorListType_Sensor_ARRAY_SIZE) {
- errn = decode_v2gSensorType(stream, &v2gSensorListType->Sensor.array[v2gSensorListType->Sensor.arrayLen++]);
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- grammarID = 2295;
- break;
- case 1:
- done = 1;
- grammarID = 3;
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 2295:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}Sensor), END_ELEMENT] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gSensorListType->Sensor.arrayLen < v2gSensorListType_Sensor_ARRAY_SIZE) {
- errn = decode_v2gSensorType(stream, &v2gSensorListType->Sensor.array[v2gSensorListType->Sensor.arrayLen++]);
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- grammarID = 2296;
- break;
- case 1:
- done = 1;
- grammarID = 3;
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 2296:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}Sensor), END_ELEMENT] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gSensorListType->Sensor.arrayLen < v2gSensorListType_Sensor_ARRAY_SIZE) {
- errn = decode_v2gSensorType(stream, &v2gSensorListType->Sensor.array[v2gSensorListType->Sensor.arrayLen++]);
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- grammarID = 2297;
- break;
- case 1:
- done = 1;
- grammarID = 3;
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 2297:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}Sensor), END_ELEMENT] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gSensorListType->Sensor.arrayLen < v2gSensorListType_Sensor_ARRAY_SIZE) {
- errn = decode_v2gSensorType(stream, &v2gSensorListType->Sensor.array[v2gSensorListType->Sensor.arrayLen++]);
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- grammarID = 2298;
- break;
- case 1:
- done = 1;
- grammarID = 3;
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 2298:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}Sensor), END_ELEMENT] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gSensorListType->Sensor.arrayLen < v2gSensorListType_Sensor_ARRAY_SIZE) {
- errn = decode_v2gSensorType(stream, &v2gSensorListType->Sensor.array[v2gSensorListType->Sensor.arrayLen++]);
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- grammarID = 2299;
- break;
- case 1:
- done = 1;
- grammarID = 3;
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 2299:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}Sensor), END_ELEMENT] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gSensorListType->Sensor.arrayLen < v2gSensorListType_Sensor_ARRAY_SIZE) {
- errn = decode_v2gSensorType(stream, &v2gSensorListType->Sensor.array[v2gSensorListType->Sensor.arrayLen++]);
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- grammarID = 2300;
- break;
- case 1:
- done = 1;
- grammarID = 3;
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 2300:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}Sensor), END_ELEMENT] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gSensorListType->Sensor.arrayLen < v2gSensorListType_Sensor_ARRAY_SIZE) {
- errn = decode_v2gSensorType(stream, &v2gSensorListType->Sensor.array[v2gSensorListType->Sensor.arrayLen++]);
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- grammarID = 2301;
- break;
- case 1:
- done = 1;
- grammarID = 3;
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 2301:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}Sensor), END_ELEMENT] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gSensorListType->Sensor.arrayLen < v2gSensorListType_Sensor_ARRAY_SIZE) {
- errn = decode_v2gSensorType(stream, &v2gSensorListType->Sensor.array[v2gSensorListType->Sensor.arrayLen++]);
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- grammarID = 2302;
- break;
- case 1:
- done = 1;
- grammarID = 3;
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 2302:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}Sensor), END_ELEMENT] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gSensorListType->Sensor.arrayLen < v2gSensorListType_Sensor_ARRAY_SIZE) {
- errn = decode_v2gSensorType(stream, &v2gSensorListType->Sensor.array[v2gSensorListType->Sensor.arrayLen++]);
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- grammarID = 2303;
- break;
- case 1:
- done = 1;
- grammarID = 3;
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 2303:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}Sensor), END_ELEMENT] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gSensorListType->Sensor.arrayLen < v2gSensorListType_Sensor_ARRAY_SIZE) {
- errn = decode_v2gSensorType(stream, &v2gSensorListType->Sensor.array[v2gSensorListType->Sensor.arrayLen++]);
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- grammarID = 2304;
- break;
- case 1:
- done = 1;
- grammarID = 3;
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 2304:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}Sensor), END_ELEMENT] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gSensorListType->Sensor.arrayLen < v2gSensorListType_Sensor_ARRAY_SIZE) {
- errn = decode_v2gSensorType(stream, &v2gSensorListType->Sensor.array[v2gSensorListType->Sensor.arrayLen++]);
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- grammarID = 2305;
- break;
- case 1:
- done = 1;
- grammarID = 3;
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 2305:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}Sensor), END_ELEMENT] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gSensorListType->Sensor.arrayLen < v2gSensorListType_Sensor_ARRAY_SIZE) {
- errn = decode_v2gSensorType(stream, &v2gSensorListType->Sensor.array[v2gSensorListType->Sensor.arrayLen++]);
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- grammarID = 2306;
- break;
- case 1:
- done = 1;
- grammarID = 3;
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 2306:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}Sensor), END_ELEMENT] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gSensorListType->Sensor.arrayLen < v2gSensorListType_Sensor_ARRAY_SIZE) {
- errn = decode_v2gSensorType(stream, &v2gSensorListType->Sensor.array[v2gSensorListType->Sensor.arrayLen++]);
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- grammarID = 2307;
- break;
- case 1:
- done = 1;
- grammarID = 3;
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 2307:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}Sensor), END_ELEMENT] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gSensorListType->Sensor.arrayLen < v2gSensorListType_Sensor_ARRAY_SIZE) {
- errn = decode_v2gSensorType(stream, &v2gSensorListType->Sensor.array[v2gSensorListType->Sensor.arrayLen++]);
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- grammarID = 2308;
- break;
- case 1:
- done = 1;
- grammarID = 3;
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 2308:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}Sensor), END_ELEMENT] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gSensorListType->Sensor.arrayLen < v2gSensorListType_Sensor_ARRAY_SIZE) {
- errn = decode_v2gSensorType(stream, &v2gSensorListType->Sensor.array[v2gSensorListType->Sensor.arrayLen++]);
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- grammarID = 2309;
- break;
- case 1:
- done = 1;
- grammarID = 3;
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 2309:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}Sensor), END_ELEMENT] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gSensorListType->Sensor.arrayLen < v2gSensorListType_Sensor_ARRAY_SIZE) {
- errn = decode_v2gSensorType(stream, &v2gSensorListType->Sensor.array[v2gSensorListType->Sensor.arrayLen++]);
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- grammarID = 2310;
- break;
- case 1:
- done = 1;
- grammarID = 3;
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 2310:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}Sensor), END_ELEMENT] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gSensorListType->Sensor.arrayLen < v2gSensorListType_Sensor_ARRAY_SIZE) {
- errn = decode_v2gSensorType(stream, &v2gSensorListType->Sensor.array[v2gSensorListType->Sensor.arrayLen++]);
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- grammarID = 2311;
- break;
- case 1:
- done = 1;
- grammarID = 3;
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 2311:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}Sensor), END_ELEMENT] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gSensorListType->Sensor.arrayLen < v2gSensorListType_Sensor_ARRAY_SIZE) {
- errn = decode_v2gSensorType(stream, &v2gSensorListType->Sensor.array[v2gSensorListType->Sensor.arrayLen++]);
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- grammarID = 2312;
- break;
- case 1:
- done = 1;
- grammarID = 3;
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 2312:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}Sensor), END_ELEMENT] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gSensorListType->Sensor.arrayLen < v2gSensorListType_Sensor_ARRAY_SIZE) {
- errn = decode_v2gSensorType(stream, &v2gSensorListType->Sensor.array[v2gSensorListType->Sensor.arrayLen++]);
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- grammarID = 2313;
- break;
- case 1:
- done = 1;
- grammarID = 3;
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 2313:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}Sensor), END_ELEMENT] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gSensorListType->Sensor.arrayLen < v2gSensorListType_Sensor_ARRAY_SIZE) {
- errn = decode_v2gSensorType(stream, &v2gSensorListType->Sensor.array[v2gSensorListType->Sensor.arrayLen++]);
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- grammarID = 2314;
- break;
- case 1:
- done = 1;
- grammarID = 3;
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 2314:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}Sensor), END_ELEMENT] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gSensorListType->Sensor.arrayLen < v2gSensorListType_Sensor_ARRAY_SIZE) {
- errn = decode_v2gSensorType(stream, &v2gSensorListType->Sensor.array[v2gSensorListType->Sensor.arrayLen++]);
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- grammarID = 2315;
- break;
- case 1:
- done = 1;
- grammarID = 3;
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 2315:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}Sensor), END_ELEMENT] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gSensorListType->Sensor.arrayLen < v2gSensorListType_Sensor_ARRAY_SIZE) {
- errn = decode_v2gSensorType(stream, &v2gSensorListType->Sensor.array[v2gSensorListType->Sensor.arrayLen++]);
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- grammarID = 2316;
- break;
- case 1:
- done = 1;
- grammarID = 3;
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 2316:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}Sensor), END_ELEMENT] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gSensorListType->Sensor.arrayLen < v2gSensorListType_Sensor_ARRAY_SIZE) {
- errn = decode_v2gSensorType(stream, &v2gSensorListType->Sensor.array[v2gSensorListType->Sensor.arrayLen++]);
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- grammarID = 2317;
- break;
- case 1:
- done = 1;
- grammarID = 3;
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 2317:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}Sensor), END_ELEMENT] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gSensorListType->Sensor.arrayLen < v2gSensorListType_Sensor_ARRAY_SIZE) {
- errn = decode_v2gSensorType(stream, &v2gSensorListType->Sensor.array[v2gSensorListType->Sensor.arrayLen++]);
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- grammarID = 2318;
- break;
- case 1:
- done = 1;
- grammarID = 3;
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 2318:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}Sensor), END_ELEMENT] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gSensorListType->Sensor.arrayLen < v2gSensorListType_Sensor_ARRAY_SIZE) {
- errn = decode_v2gSensorType(stream, &v2gSensorListType->Sensor.array[v2gSensorListType->Sensor.arrayLen++]);
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- grammarID = 2319;
- break;
- case 1:
- done = 1;
- grammarID = 3;
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 2319:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}Sensor), END_ELEMENT] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gSensorListType->Sensor.arrayLen < v2gSensorListType_Sensor_ARRAY_SIZE) {
- errn = decode_v2gSensorType(stream, &v2gSensorListType->Sensor.array[v2gSensorListType->Sensor.arrayLen++]);
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- grammarID = 2320;
- break;
- case 1:
- done = 1;
- grammarID = 3;
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 2320:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}Sensor), END_ELEMENT] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gSensorListType->Sensor.arrayLen < v2gSensorListType_Sensor_ARRAY_SIZE) {
- errn = decode_v2gSensorType(stream, &v2gSensorListType->Sensor.array[v2gSensorListType->Sensor.arrayLen++]);
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- grammarID = 2321;
- break;
- case 1:
- done = 1;
- grammarID = 3;
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 2321:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}Sensor), END_ELEMENT] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gSensorListType->Sensor.arrayLen < v2gSensorListType_Sensor_ARRAY_SIZE) {
- errn = decode_v2gSensorType(stream, &v2gSensorListType->Sensor.array[v2gSensorListType->Sensor.arrayLen++]);
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- grammarID = 2322;
- break;
- case 1:
- done = 1;
- grammarID = 3;
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 2322:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}Sensor), END_ELEMENT] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gSensorListType->Sensor.arrayLen < v2gSensorListType_Sensor_ARRAY_SIZE) {
- errn = decode_v2gSensorType(stream, &v2gSensorListType->Sensor.array[v2gSensorListType->Sensor.arrayLen++]);
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- grammarID = 2323;
- break;
- case 1:
- done = 1;
- grammarID = 3;
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 2323:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}Sensor), END_ELEMENT] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gSensorListType->Sensor.arrayLen < v2gSensorListType_Sensor_ARRAY_SIZE) {
- errn = decode_v2gSensorType(stream, &v2gSensorListType->Sensor.array[v2gSensorListType->Sensor.arrayLen++]);
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- grammarID = 2324;
- break;
- case 1:
- done = 1;
- grammarID = 3;
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 2324:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}Sensor), END_ELEMENT] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gSensorListType->Sensor.arrayLen < v2gSensorListType_Sensor_ARRAY_SIZE) {
- errn = decode_v2gSensorType(stream, &v2gSensorListType->Sensor.array[v2gSensorListType->Sensor.arrayLen++]);
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- grammarID = 2325;
- break;
- case 1:
- done = 1;
- grammarID = 3;
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 2325:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}Sensor), END_ELEMENT] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gSensorListType->Sensor.arrayLen < v2gSensorListType_Sensor_ARRAY_SIZE) {
- errn = decode_v2gSensorType(stream, &v2gSensorListType->Sensor.array[v2gSensorListType->Sensor.arrayLen++]);
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- grammarID = 2326;
- break;
- case 1:
- done = 1;
- grammarID = 3;
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 2326:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}Sensor), END_ELEMENT] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gSensorListType->Sensor.arrayLen < v2gSensorListType_Sensor_ARRAY_SIZE) {
- errn = decode_v2gSensorType(stream, &v2gSensorListType->Sensor.array[v2gSensorListType->Sensor.arrayLen++]);
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- grammarID = 2327;
- break;
- case 1:
- done = 1;
- grammarID = 3;
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 2327:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}Sensor), END_ELEMENT] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gSensorListType->Sensor.arrayLen < v2gSensorListType_Sensor_ARRAY_SIZE) {
- errn = decode_v2gSensorType(stream, &v2gSensorListType->Sensor.array[v2gSensorListType->Sensor.arrayLen++]);
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- grammarID = 2328;
- break;
- case 1:
- done = 1;
- grammarID = 3;
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 2328:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}Sensor), END_ELEMENT] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gSensorListType->Sensor.arrayLen < v2gSensorListType_Sensor_ARRAY_SIZE) {
- errn = decode_v2gSensorType(stream, &v2gSensorListType->Sensor.array[v2gSensorListType->Sensor.arrayLen++]);
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- grammarID = 2329;
- break;
- case 1:
- done = 1;
- grammarID = 3;
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 2329:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}Sensor), END_ELEMENT] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gSensorListType->Sensor.arrayLen < v2gSensorListType_Sensor_ARRAY_SIZE) {
- errn = decode_v2gSensorType(stream, &v2gSensorListType->Sensor.array[v2gSensorListType->Sensor.arrayLen++]);
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- grammarID = 2330;
- break;
- case 1:
- done = 1;
- grammarID = 3;
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 2330:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}Sensor), END_ELEMENT] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gSensorListType->Sensor.arrayLen < v2gSensorListType_Sensor_ARRAY_SIZE) {
- errn = decode_v2gSensorType(stream, &v2gSensorListType->Sensor.array[v2gSensorListType->Sensor.arrayLen++]);
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- grammarID = 2331;
- break;
- case 1:
- done = 1;
- grammarID = 3;
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 2331:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}Sensor), END_ELEMENT] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gSensorListType->Sensor.arrayLen < v2gSensorListType_Sensor_ARRAY_SIZE) {
- errn = decode_v2gSensorType(stream, &v2gSensorListType->Sensor.array[v2gSensorListType->Sensor.arrayLen++]);
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- grammarID = 2332;
- break;
- case 1:
- done = 1;
- grammarID = 3;
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 2332:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}Sensor), END_ELEMENT] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gSensorListType->Sensor.arrayLen < v2gSensorListType_Sensor_ARRAY_SIZE) {
- errn = decode_v2gSensorType(stream, &v2gSensorListType->Sensor.array[v2gSensorListType->Sensor.arrayLen++]);
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- grammarID = 2333;
- break;
- case 1:
- done = 1;
- grammarID = 3;
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 2333:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}Sensor), END_ELEMENT] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gSensorListType->Sensor.arrayLen < v2gSensorListType_Sensor_ARRAY_SIZE) {
- errn = decode_v2gSensorType(stream, &v2gSensorListType->Sensor.array[v2gSensorListType->Sensor.arrayLen++]);
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- grammarID = 2334;
- break;
- case 1:
- done = 1;
- grammarID = 3;
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 2334:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}Sensor), END_ELEMENT] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gSensorListType->Sensor.arrayLen < v2gSensorListType_Sensor_ARRAY_SIZE) {
- errn = decode_v2gSensorType(stream, &v2gSensorListType->Sensor.array[v2gSensorListType->Sensor.arrayLen++]);
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- grammarID = 2335;
- break;
- case 1:
- done = 1;
- grammarID = 3;
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 2335:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}Sensor), END_ELEMENT] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gSensorListType->Sensor.arrayLen < v2gSensorListType_Sensor_ARRAY_SIZE) {
- errn = decode_v2gSensorType(stream, &v2gSensorListType->Sensor.array[v2gSensorListType->Sensor.arrayLen++]);
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- grammarID = 2336;
- break;
- case 1:
- done = 1;
- grammarID = 3;
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 2336:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}Sensor), END_ELEMENT] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gSensorListType->Sensor.arrayLen < v2gSensorListType_Sensor_ARRAY_SIZE) {
- errn = decode_v2gSensorType(stream, &v2gSensorListType->Sensor.array[v2gSensorListType->Sensor.arrayLen++]);
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- grammarID = 2337;
- break;
- case 1:
- done = 1;
- grammarID = 3;
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 2337:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}Sensor), END_ELEMENT] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gSensorListType->Sensor.arrayLen < v2gSensorListType_Sensor_ARRAY_SIZE) {
- errn = decode_v2gSensorType(stream, &v2gSensorListType->Sensor.array[v2gSensorListType->Sensor.arrayLen++]);
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- grammarID = 2338;
- break;
- case 1:
- done = 1;
- grammarID = 3;
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 2338:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}Sensor), END_ELEMENT] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gSensorListType->Sensor.arrayLen < v2gSensorListType_Sensor_ARRAY_SIZE) {
- errn = decode_v2gSensorType(stream, &v2gSensorListType->Sensor.array[v2gSensorListType->Sensor.arrayLen++]);
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- grammarID = 2339;
- break;
- case 1:
- done = 1;
- grammarID = 3;
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 2339:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}Sensor), END_ELEMENT] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gSensorListType->Sensor.arrayLen < v2gSensorListType_Sensor_ARRAY_SIZE) {
- errn = decode_v2gSensorType(stream, &v2gSensorListType->Sensor.array[v2gSensorListType->Sensor.arrayLen++]);
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- grammarID = 2340;
- break;
- case 1:
- done = 1;
- grammarID = 3;
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 2340:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}Sensor), END_ELEMENT] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gSensorListType->Sensor.arrayLen < v2gSensorListType_Sensor_ARRAY_SIZE) {
- errn = decode_v2gSensorType(stream, &v2gSensorListType->Sensor.array[v2gSensorListType->Sensor.arrayLen++]);
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- grammarID = 2341;
- break;
- case 1:
- done = 1;
- grammarID = 3;
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 2341:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}Sensor), END_ELEMENT] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gSensorListType->Sensor.arrayLen < v2gSensorListType_Sensor_ARRAY_SIZE) {
- errn = decode_v2gSensorType(stream, &v2gSensorListType->Sensor.array[v2gSensorListType->Sensor.arrayLen++]);
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- grammarID = 2342;
- break;
- case 1:
- done = 1;
- grammarID = 3;
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 2342:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}Sensor), END_ELEMENT] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gSensorListType->Sensor.arrayLen < v2gSensorListType_Sensor_ARRAY_SIZE) {
- errn = decode_v2gSensorType(stream, &v2gSensorListType->Sensor.array[v2gSensorListType->Sensor.arrayLen++]);
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- grammarID = 2343;
- break;
- case 1:
- done = 1;
- grammarID = 3;
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 2343:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}Sensor), END_ELEMENT] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gSensorListType->Sensor.arrayLen < v2gSensorListType_Sensor_ARRAY_SIZE) {
- errn = decode_v2gSensorType(stream, &v2gSensorListType->Sensor.array[v2gSensorListType->Sensor.arrayLen++]);
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- grammarID = 2344;
- break;
- case 1:
- done = 1;
- grammarID = 3;
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 2344:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}Sensor), END_ELEMENT] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gSensorListType->Sensor.arrayLen < v2gSensorListType_Sensor_ARRAY_SIZE) {
- errn = decode_v2gSensorType(stream, &v2gSensorListType->Sensor.array[v2gSensorListType->Sensor.arrayLen++]);
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- grammarID = 2345;
- break;
- case 1:
- done = 1;
- grammarID = 3;
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 2345:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}Sensor), END_ELEMENT] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gSensorListType->Sensor.arrayLen < v2gSensorListType_Sensor_ARRAY_SIZE) {
- errn = decode_v2gSensorType(stream, &v2gSensorListType->Sensor.array[v2gSensorListType->Sensor.arrayLen++]);
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- grammarID = 2346;
- break;
- case 1:
- done = 1;
- grammarID = 3;
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 2346:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}Sensor), END_ELEMENT] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gSensorListType->Sensor.arrayLen < v2gSensorListType_Sensor_ARRAY_SIZE) {
- errn = decode_v2gSensorType(stream, &v2gSensorListType->Sensor.array[v2gSensorListType->Sensor.arrayLen++]);
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- grammarID = 2347;
- break;
- case 1:
- done = 1;
- grammarID = 3;
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 2347:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}Sensor), END_ELEMENT] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gSensorListType->Sensor.arrayLen < v2gSensorListType_Sensor_ARRAY_SIZE) {
- errn = decode_v2gSensorType(stream, &v2gSensorListType->Sensor.array[v2gSensorListType->Sensor.arrayLen++]);
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- grammarID = 2348;
- break;
- case 1:
- done = 1;
- grammarID = 3;
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 2348:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}Sensor), END_ELEMENT] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gSensorListType->Sensor.arrayLen < v2gSensorListType_Sensor_ARRAY_SIZE) {
- errn = decode_v2gSensorType(stream, &v2gSensorListType->Sensor.array[v2gSensorListType->Sensor.arrayLen++]);
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- grammarID = 2349;
- break;
- case 1:
- done = 1;
- grammarID = 3;
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 2349:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}Sensor), END_ELEMENT] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gSensorListType->Sensor.arrayLen < v2gSensorListType_Sensor_ARRAY_SIZE) {
- errn = decode_v2gSensorType(stream, &v2gSensorListType->Sensor.array[v2gSensorListType->Sensor.arrayLen++]);
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- grammarID = 2350;
- break;
- case 1:
- done = 1;
- grammarID = 3;
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 2350:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}Sensor), END_ELEMENT] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gSensorListType->Sensor.arrayLen < v2gSensorListType_Sensor_ARRAY_SIZE) {
- errn = decode_v2gSensorType(stream, &v2gSensorListType->Sensor.array[v2gSensorListType->Sensor.arrayLen++]);
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- grammarID = 2351;
- break;
- case 1:
- done = 1;
- grammarID = 3;
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 2351:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}Sensor), END_ELEMENT] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gSensorListType->Sensor.arrayLen < v2gSensorListType_Sensor_ARRAY_SIZE) {
- errn = decode_v2gSensorType(stream, &v2gSensorListType->Sensor.array[v2gSensorListType->Sensor.arrayLen++]);
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- grammarID = 2352;
- break;
- case 1:
- done = 1;
- grammarID = 3;
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 2352:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}Sensor), END_ELEMENT] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gSensorListType->Sensor.arrayLen < v2gSensorListType_Sensor_ARRAY_SIZE) {
- errn = decode_v2gSensorType(stream, &v2gSensorListType->Sensor.array[v2gSensorListType->Sensor.arrayLen++]);
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- grammarID = 2353;
- break;
- case 1:
- done = 1;
- grammarID = 3;
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 2353:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}Sensor), END_ELEMENT] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gSensorListType->Sensor.arrayLen < v2gSensorListType_Sensor_ARRAY_SIZE) {
- errn = decode_v2gSensorType(stream, &v2gSensorListType->Sensor.array[v2gSensorListType->Sensor.arrayLen++]);
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- grammarID = 2354;
- break;
- case 1:
- done = 1;
- grammarID = 3;
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 2354:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}Sensor), END_ELEMENT] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gSensorListType->Sensor.arrayLen < v2gSensorListType_Sensor_ARRAY_SIZE) {
- errn = decode_v2gSensorType(stream, &v2gSensorListType->Sensor.array[v2gSensorListType->Sensor.arrayLen++]);
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- grammarID = 2355;
- break;
- case 1:
- done = 1;
- grammarID = 3;
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 2355:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}Sensor), END_ELEMENT] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gSensorListType->Sensor.arrayLen < v2gSensorListType_Sensor_ARRAY_SIZE) {
- errn = decode_v2gSensorType(stream, &v2gSensorListType->Sensor.array[v2gSensorListType->Sensor.arrayLen++]);
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- grammarID = 2356;
- break;
- case 1:
- done = 1;
- grammarID = 3;
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 2356:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}Sensor), END_ELEMENT] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gSensorListType->Sensor.arrayLen < v2gSensorListType_Sensor_ARRAY_SIZE) {
- errn = decode_v2gSensorType(stream, &v2gSensorListType->Sensor.array[v2gSensorListType->Sensor.arrayLen++]);
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- grammarID = 2357;
- break;
- case 1:
- done = 1;
- grammarID = 3;
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 2357:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}Sensor), END_ELEMENT] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gSensorListType->Sensor.arrayLen < v2gSensorListType_Sensor_ARRAY_SIZE) {
- errn = decode_v2gSensorType(stream, &v2gSensorListType->Sensor.array[v2gSensorListType->Sensor.arrayLen++]);
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- grammarID = 2358;
- break;
- case 1:
- done = 1;
- grammarID = 3;
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 2358:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}Sensor), END_ELEMENT] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gSensorListType->Sensor.arrayLen < v2gSensorListType_Sensor_ARRAY_SIZE) {
- errn = decode_v2gSensorType(stream, &v2gSensorListType->Sensor.array[v2gSensorListType->Sensor.arrayLen++]);
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- grammarID = 2359;
- break;
- case 1:
- done = 1;
- grammarID = 3;
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 2359:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}Sensor), END_ELEMENT] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gSensorListType->Sensor.arrayLen < v2gSensorListType_Sensor_ARRAY_SIZE) {
- errn = decode_v2gSensorType(stream, &v2gSensorListType->Sensor.array[v2gSensorListType->Sensor.arrayLen++]);
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- grammarID = 2360;
- break;
- case 1:
- done = 1;
- grammarID = 3;
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 2360:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}Sensor), END_ELEMENT] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gSensorListType->Sensor.arrayLen < v2gSensorListType_Sensor_ARRAY_SIZE) {
- errn = decode_v2gSensorType(stream, &v2gSensorListType->Sensor.array[v2gSensorListType->Sensor.arrayLen++]);
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- grammarID = 2361;
- break;
- case 1:
- done = 1;
- grammarID = 3;
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 2361:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}Sensor), END_ELEMENT] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gSensorListType->Sensor.arrayLen < v2gSensorListType_Sensor_ARRAY_SIZE) {
- errn = decode_v2gSensorType(stream, &v2gSensorListType->Sensor.array[v2gSensorListType->Sensor.arrayLen++]);
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- grammarID = 2362;
- break;
- case 1:
- done = 1;
- grammarID = 3;
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 2362:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}Sensor), END_ELEMENT] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gSensorListType->Sensor.arrayLen < v2gSensorListType_Sensor_ARRAY_SIZE) {
- errn = decode_v2gSensorType(stream, &v2gSensorListType->Sensor.array[v2gSensorListType->Sensor.arrayLen++]);
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- grammarID = 2363;
- break;
- case 1:
- done = 1;
- grammarID = 3;
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 2363:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}Sensor), END_ELEMENT] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gSensorListType->Sensor.arrayLen < v2gSensorListType_Sensor_ARRAY_SIZE) {
- errn = decode_v2gSensorType(stream, &v2gSensorListType->Sensor.array[v2gSensorListType->Sensor.arrayLen++]);
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- grammarID = 2364;
- break;
- case 1:
- done = 1;
- grammarID = 3;
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 2364:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}Sensor), END_ELEMENT] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gSensorListType->Sensor.arrayLen < v2gSensorListType_Sensor_ARRAY_SIZE) {
- errn = decode_v2gSensorType(stream, &v2gSensorListType->Sensor.array[v2gSensorListType->Sensor.arrayLen++]);
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- grammarID = 2365;
- break;
- case 1:
- done = 1;
- grammarID = 3;
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 2365:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}Sensor), END_ELEMENT] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gSensorListType->Sensor.arrayLen < v2gSensorListType_Sensor_ARRAY_SIZE) {
- errn = decode_v2gSensorType(stream, &v2gSensorListType->Sensor.array[v2gSensorListType->Sensor.arrayLen++]);
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- grammarID = 2366;
- break;
- case 1:
- done = 1;
- grammarID = 3;
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 2366:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}Sensor), END_ELEMENT] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gSensorListType->Sensor.arrayLen < v2gSensorListType_Sensor_ARRAY_SIZE) {
- errn = decode_v2gSensorType(stream, &v2gSensorListType->Sensor.array[v2gSensorListType->Sensor.arrayLen++]);
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- grammarID = 2367;
- break;
- case 1:
- done = 1;
- grammarID = 3;
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 2367:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}Sensor), END_ELEMENT] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gSensorListType->Sensor.arrayLen < v2gSensorListType_Sensor_ARRAY_SIZE) {
- errn = decode_v2gSensorType(stream, &v2gSensorListType->Sensor.array[v2gSensorListType->Sensor.arrayLen++]);
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- grammarID = 2368;
- break;
- case 1:
- done = 1;
- grammarID = 3;
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 2368:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}Sensor), END_ELEMENT] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gSensorListType->Sensor.arrayLen < v2gSensorListType_Sensor_ARRAY_SIZE) {
- errn = decode_v2gSensorType(stream, &v2gSensorListType->Sensor.array[v2gSensorListType->Sensor.arrayLen++]);
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- grammarID = 2369;
- break;
- case 1:
- done = 1;
- grammarID = 3;
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 2369:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}Sensor), END_ELEMENT] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gSensorListType->Sensor.arrayLen < v2gSensorListType_Sensor_ARRAY_SIZE) {
- errn = decode_v2gSensorType(stream, &v2gSensorListType->Sensor.array[v2gSensorListType->Sensor.arrayLen++]);
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- grammarID = 2370;
- break;
- case 1:
- done = 1;
- grammarID = 3;
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 2370:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}Sensor), END_ELEMENT] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gSensorListType->Sensor.arrayLen < v2gSensorListType_Sensor_ARRAY_SIZE) {
- errn = decode_v2gSensorType(stream, &v2gSensorListType->Sensor.array[v2gSensorListType->Sensor.arrayLen++]);
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- grammarID = 2371;
- break;
- case 1:
- done = 1;
- grammarID = 3;
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 2371:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}Sensor), END_ELEMENT] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gSensorListType->Sensor.arrayLen < v2gSensorListType_Sensor_ARRAY_SIZE) {
- errn = decode_v2gSensorType(stream, &v2gSensorListType->Sensor.array[v2gSensorListType->Sensor.arrayLen++]);
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- grammarID = 2372;
- break;
- case 1:
- done = 1;
- grammarID = 3;
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 2372:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}Sensor), END_ELEMENT] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gSensorListType->Sensor.arrayLen < v2gSensorListType_Sensor_ARRAY_SIZE) {
- errn = decode_v2gSensorType(stream, &v2gSensorListType->Sensor.array[v2gSensorListType->Sensor.arrayLen++]);
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- grammarID = 2373;
- break;
- case 1:
- done = 1;
- grammarID = 3;
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 2373:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}Sensor), END_ELEMENT] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gSensorListType->Sensor.arrayLen < v2gSensorListType_Sensor_ARRAY_SIZE) {
- errn = decode_v2gSensorType(stream, &v2gSensorListType->Sensor.array[v2gSensorListType->Sensor.arrayLen++]);
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- grammarID = 2374;
- break;
- case 1:
- done = 1;
- grammarID = 3;
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 2374:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}Sensor), END_ELEMENT] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gSensorListType->Sensor.arrayLen < v2gSensorListType_Sensor_ARRAY_SIZE) {
- errn = decode_v2gSensorType(stream, &v2gSensorListType->Sensor.array[v2gSensorListType->Sensor.arrayLen++]);
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- grammarID = 2375;
- break;
- case 1:
- done = 1;
- grammarID = 3;
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 2375:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}Sensor), END_ELEMENT] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gSensorListType->Sensor.arrayLen < v2gSensorListType_Sensor_ARRAY_SIZE) {
- errn = decode_v2gSensorType(stream, &v2gSensorListType->Sensor.array[v2gSensorListType->Sensor.arrayLen++]);
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- grammarID = 2376;
- break;
- case 1:
- done = 1;
- grammarID = 3;
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 2376:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}Sensor), END_ELEMENT] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gSensorListType->Sensor.arrayLen < v2gSensorListType_Sensor_ARRAY_SIZE) {
- errn = decode_v2gSensorType(stream, &v2gSensorListType->Sensor.array[v2gSensorListType->Sensor.arrayLen++]);
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- grammarID = 2377;
- break;
- case 1:
- done = 1;
- grammarID = 3;
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 2377:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}Sensor), END_ELEMENT] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gSensorListType->Sensor.arrayLen < v2gSensorListType_Sensor_ARRAY_SIZE) {
- errn = decode_v2gSensorType(stream, &v2gSensorListType->Sensor.array[v2gSensorListType->Sensor.arrayLen++]);
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- grammarID = 2378;
- break;
- case 1:
- done = 1;
- grammarID = 3;
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 2378:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}Sensor), END_ELEMENT] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gSensorListType->Sensor.arrayLen < v2gSensorListType_Sensor_ARRAY_SIZE) {
- errn = decode_v2gSensorType(stream, &v2gSensorListType->Sensor.array[v2gSensorListType->Sensor.arrayLen++]);
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- grammarID = 2379;
- break;
- case 1:
- done = 1;
- grammarID = 3;
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 2379:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}Sensor), END_ELEMENT] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gSensorListType->Sensor.arrayLen < v2gSensorListType_Sensor_ARRAY_SIZE) {
- errn = decode_v2gSensorType(stream, &v2gSensorListType->Sensor.array[v2gSensorListType->Sensor.arrayLen++]);
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- grammarID = 2380;
- break;
- case 1:
- done = 1;
- grammarID = 3;
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 2380:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}Sensor), END_ELEMENT] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gSensorListType->Sensor.arrayLen < v2gSensorListType_Sensor_ARRAY_SIZE) {
- errn = decode_v2gSensorType(stream, &v2gSensorListType->Sensor.array[v2gSensorListType->Sensor.arrayLen++]);
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- grammarID = 2381;
- break;
- case 1:
- done = 1;
- grammarID = 3;
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 2381:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}Sensor), END_ELEMENT] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gSensorListType->Sensor.arrayLen < v2gSensorListType_Sensor_ARRAY_SIZE) {
- errn = decode_v2gSensorType(stream, &v2gSensorListType->Sensor.array[v2gSensorListType->Sensor.arrayLen++]);
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- grammarID = 2382;
- break;
- case 1:
- done = 1;
- grammarID = 3;
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 2382:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}Sensor), END_ELEMENT] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gSensorListType->Sensor.arrayLen < v2gSensorListType_Sensor_ARRAY_SIZE) {
- errn = decode_v2gSensorType(stream, &v2gSensorListType->Sensor.array[v2gSensorListType->Sensor.arrayLen++]);
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- grammarID = 2383;
- break;
- case 1:
- done = 1;
- grammarID = 3;
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 2383:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}Sensor), END_ELEMENT] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gSensorListType->Sensor.arrayLen < v2gSensorListType_Sensor_ARRAY_SIZE) {
- errn = decode_v2gSensorType(stream, &v2gSensorListType->Sensor.array[v2gSensorListType->Sensor.arrayLen++]);
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- grammarID = 2384;
- break;
- case 1:
- done = 1;
- grammarID = 3;
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 2384:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}Sensor), END_ELEMENT] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gSensorListType->Sensor.arrayLen < v2gSensorListType_Sensor_ARRAY_SIZE) {
- errn = decode_v2gSensorType(stream, &v2gSensorListType->Sensor.array[v2gSensorListType->Sensor.arrayLen++]);
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- grammarID = 2385;
- break;
- case 1:
- done = 1;
- grammarID = 3;
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 2385:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}Sensor), END_ELEMENT] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gSensorListType->Sensor.arrayLen < v2gSensorListType_Sensor_ARRAY_SIZE) {
- errn = decode_v2gSensorType(stream, &v2gSensorListType->Sensor.array[v2gSensorListType->Sensor.arrayLen++]);
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- grammarID = 2386;
- break;
- case 1:
- done = 1;
- grammarID = 3;
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 2386:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}Sensor), END_ELEMENT] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gSensorListType->Sensor.arrayLen < v2gSensorListType_Sensor_ARRAY_SIZE) {
- errn = decode_v2gSensorType(stream, &v2gSensorListType->Sensor.array[v2gSensorListType->Sensor.arrayLen++]);
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- grammarID = 2387;
- break;
- case 1:
- done = 1;
- grammarID = 3;
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 2387:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}Sensor), END_ELEMENT] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gSensorListType->Sensor.arrayLen < v2gSensorListType_Sensor_ARRAY_SIZE) {
- errn = decode_v2gSensorType(stream, &v2gSensorListType->Sensor.array[v2gSensorListType->Sensor.arrayLen++]);
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- grammarID = 2388;
- break;
- case 1:
- done = 1;
- grammarID = 3;
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 2388:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}Sensor), END_ELEMENT] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gSensorListType->Sensor.arrayLen < v2gSensorListType_Sensor_ARRAY_SIZE) {
- errn = decode_v2gSensorType(stream, &v2gSensorListType->Sensor.array[v2gSensorListType->Sensor.arrayLen++]);
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- grammarID = 2389;
- break;
- case 1:
- done = 1;
- grammarID = 3;
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 2389:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}Sensor), END_ELEMENT] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gSensorListType->Sensor.arrayLen < v2gSensorListType_Sensor_ARRAY_SIZE) {
- errn = decode_v2gSensorType(stream, &v2gSensorListType->Sensor.array[v2gSensorListType->Sensor.arrayLen++]);
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- grammarID = 2390;
- break;
- case 1:
- done = 1;
- grammarID = 3;
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 2390:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}Sensor), END_ELEMENT] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gSensorListType->Sensor.arrayLen < v2gSensorListType_Sensor_ARRAY_SIZE) {
- errn = decode_v2gSensorType(stream, &v2gSensorListType->Sensor.array[v2gSensorListType->Sensor.arrayLen++]);
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- grammarID = 2391;
- break;
- case 1:
- done = 1;
- grammarID = 3;
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 2391:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}Sensor), END_ELEMENT] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gSensorListType->Sensor.arrayLen < v2gSensorListType_Sensor_ARRAY_SIZE) {
- errn = decode_v2gSensorType(stream, &v2gSensorListType->Sensor.array[v2gSensorListType->Sensor.arrayLen++]);
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- grammarID = 2392;
- break;
- case 1:
- done = 1;
- grammarID = 3;
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 2392:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}Sensor), END_ELEMENT] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gSensorListType->Sensor.arrayLen < v2gSensorListType_Sensor_ARRAY_SIZE) {
- errn = decode_v2gSensorType(stream, &v2gSensorListType->Sensor.array[v2gSensorListType->Sensor.arrayLen++]);
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- grammarID = 2393;
- break;
- case 1:
- done = 1;
- grammarID = 3;
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 2393:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}Sensor), END_ELEMENT] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gSensorListType->Sensor.arrayLen < v2gSensorListType_Sensor_ARRAY_SIZE) {
- errn = decode_v2gSensorType(stream, &v2gSensorListType->Sensor.array[v2gSensorListType->Sensor.arrayLen++]);
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- grammarID = 2394;
- break;
- case 1:
- done = 1;
- grammarID = 3;
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 2394:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}Sensor), END_ELEMENT] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gSensorListType->Sensor.arrayLen < v2gSensorListType_Sensor_ARRAY_SIZE) {
- errn = decode_v2gSensorType(stream, &v2gSensorListType->Sensor.array[v2gSensorListType->Sensor.arrayLen++]);
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- grammarID = 2395;
- break;
- case 1:
- done = 1;
- grammarID = 3;
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 2395:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}Sensor), END_ELEMENT] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gSensorListType->Sensor.arrayLen < v2gSensorListType_Sensor_ARRAY_SIZE) {
- errn = decode_v2gSensorType(stream, &v2gSensorListType->Sensor.array[v2gSensorListType->Sensor.arrayLen++]);
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- grammarID = 2396;
- break;
- case 1:
- done = 1;
- grammarID = 3;
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 2396:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}Sensor), END_ELEMENT] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gSensorListType->Sensor.arrayLen < v2gSensorListType_Sensor_ARRAY_SIZE) {
- errn = decode_v2gSensorType(stream, &v2gSensorListType->Sensor.array[v2gSensorListType->Sensor.arrayLen++]);
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- grammarID = 2397;
- break;
- case 1:
- done = 1;
- grammarID = 3;
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 2397:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}Sensor), END_ELEMENT] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gSensorListType->Sensor.arrayLen < v2gSensorListType_Sensor_ARRAY_SIZE) {
- errn = decode_v2gSensorType(stream, &v2gSensorListType->Sensor.array[v2gSensorListType->Sensor.arrayLen++]);
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- grammarID = 2398;
- break;
- case 1:
- done = 1;
- grammarID = 3;
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 2398:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}Sensor), END_ELEMENT] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gSensorListType->Sensor.arrayLen < v2gSensorListType_Sensor_ARRAY_SIZE) {
- errn = decode_v2gSensorType(stream, &v2gSensorListType->Sensor.array[v2gSensorListType->Sensor.arrayLen++]);
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- grammarID = 2399;
- break;
- case 1:
- done = 1;
- grammarID = 3;
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 2399:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}Sensor), END_ELEMENT] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gSensorListType->Sensor.arrayLen < v2gSensorListType_Sensor_ARRAY_SIZE) {
- errn = decode_v2gSensorType(stream, &v2gSensorListType->Sensor.array[v2gSensorListType->Sensor.arrayLen++]);
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- grammarID = 2400;
- break;
- case 1:
- done = 1;
- grammarID = 3;
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 2400:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}Sensor), END_ELEMENT] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gSensorListType->Sensor.arrayLen < v2gSensorListType_Sensor_ARRAY_SIZE) {
- errn = decode_v2gSensorType(stream, &v2gSensorListType->Sensor.array[v2gSensorListType->Sensor.arrayLen++]);
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- grammarID = 2401;
- break;
- case 1:
- done = 1;
- grammarID = 3;
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 2401:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}Sensor), END_ELEMENT] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gSensorListType->Sensor.arrayLen < v2gSensorListType_Sensor_ARRAY_SIZE) {
- errn = decode_v2gSensorType(stream, &v2gSensorListType->Sensor.array[v2gSensorListType->Sensor.arrayLen++]);
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- grammarID = 2402;
- break;
- case 1:
- done = 1;
- grammarID = 3;
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 2402:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}Sensor), END_ELEMENT] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gSensorListType->Sensor.arrayLen < v2gSensorListType_Sensor_ARRAY_SIZE) {
- errn = decode_v2gSensorType(stream, &v2gSensorListType->Sensor.array[v2gSensorListType->Sensor.arrayLen++]);
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- grammarID = 2403;
- break;
- case 1:
- done = 1;
- grammarID = 3;
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 2403:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}Sensor), END_ELEMENT] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gSensorListType->Sensor.arrayLen < v2gSensorListType_Sensor_ARRAY_SIZE) {
- errn = decode_v2gSensorType(stream, &v2gSensorListType->Sensor.array[v2gSensorListType->Sensor.arrayLen++]);
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- grammarID = 2404;
- break;
- case 1:
- done = 1;
- grammarID = 3;
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 2404:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}Sensor), END_ELEMENT] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gSensorListType->Sensor.arrayLen < v2gSensorListType_Sensor_ARRAY_SIZE) {
- errn = decode_v2gSensorType(stream, &v2gSensorListType->Sensor.array[v2gSensorListType->Sensor.arrayLen++]);
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- grammarID = 2405;
- break;
- case 1:
- done = 1;
- grammarID = 3;
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 2405:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}Sensor), END_ELEMENT] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gSensorListType->Sensor.arrayLen < v2gSensorListType_Sensor_ARRAY_SIZE) {
- errn = decode_v2gSensorType(stream, &v2gSensorListType->Sensor.array[v2gSensorListType->Sensor.arrayLen++]);
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- grammarID = 2406;
- break;
- case 1:
- done = 1;
- grammarID = 3;
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 2406:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}Sensor), END_ELEMENT] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gSensorListType->Sensor.arrayLen < v2gSensorListType_Sensor_ARRAY_SIZE) {
- errn = decode_v2gSensorType(stream, &v2gSensorListType->Sensor.array[v2gSensorListType->Sensor.arrayLen++]);
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- grammarID = 2407;
- break;
- case 1:
- done = 1;
- grammarID = 3;
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 2407:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}Sensor), END_ELEMENT] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gSensorListType->Sensor.arrayLen < v2gSensorListType_Sensor_ARRAY_SIZE) {
- errn = decode_v2gSensorType(stream, &v2gSensorListType->Sensor.array[v2gSensorListType->Sensor.arrayLen++]);
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- grammarID = 2408;
- break;
- case 1:
- done = 1;
- grammarID = 3;
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 2408:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}Sensor), END_ELEMENT] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gSensorListType->Sensor.arrayLen < v2gSensorListType_Sensor_ARRAY_SIZE) {
- errn = decode_v2gSensorType(stream, &v2gSensorListType->Sensor.array[v2gSensorListType->Sensor.arrayLen++]);
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- grammarID = 2409;
- break;
- case 1:
- done = 1;
- grammarID = 3;
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 2409:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}Sensor), END_ELEMENT] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gSensorListType->Sensor.arrayLen < v2gSensorListType_Sensor_ARRAY_SIZE) {
- errn = decode_v2gSensorType(stream, &v2gSensorListType->Sensor.array[v2gSensorListType->Sensor.arrayLen++]);
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- grammarID = 2410;
- break;
- case 1:
- done = 1;
- grammarID = 3;
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 2410:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}Sensor), END_ELEMENT] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gSensorListType->Sensor.arrayLen < v2gSensorListType_Sensor_ARRAY_SIZE) {
- errn = decode_v2gSensorType(stream, &v2gSensorListType->Sensor.array[v2gSensorListType->Sensor.arrayLen++]);
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- grammarID = 2411;
- break;
- case 1:
- done = 1;
- grammarID = 3;
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 2411:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}Sensor), END_ELEMENT] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gSensorListType->Sensor.arrayLen < v2gSensorListType_Sensor_ARRAY_SIZE) {
- errn = decode_v2gSensorType(stream, &v2gSensorListType->Sensor.array[v2gSensorListType->Sensor.arrayLen++]);
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- grammarID = 2412;
- break;
- case 1:
- done = 1;
- grammarID = 3;
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 2412:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}Sensor), END_ELEMENT] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gSensorListType->Sensor.arrayLen < v2gSensorListType_Sensor_ARRAY_SIZE) {
- errn = decode_v2gSensorType(stream, &v2gSensorListType->Sensor.array[v2gSensorListType->Sensor.arrayLen++]);
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- grammarID = 2413;
- break;
- case 1:
- done = 1;
- grammarID = 3;
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 2413:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}Sensor), END_ELEMENT] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gSensorListType->Sensor.arrayLen < v2gSensorListType_Sensor_ARRAY_SIZE) {
- errn = decode_v2gSensorType(stream, &v2gSensorListType->Sensor.array[v2gSensorListType->Sensor.arrayLen++]);
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- grammarID = 2414;
- break;
- case 1:
- done = 1;
- grammarID = 3;
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 2414:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}Sensor), END_ELEMENT] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gSensorListType->Sensor.arrayLen < v2gSensorListType_Sensor_ARRAY_SIZE) {
- errn = decode_v2gSensorType(stream, &v2gSensorListType->Sensor.array[v2gSensorListType->Sensor.arrayLen++]);
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- grammarID = 2;
- 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:2016:MsgBody,PairingReqType', base type name='BodyBaseType', content type='ELEMENT', isAbstract='false', hasTypeId='false', final='0', block='0', particle='("urn:iso:15118:2:2016:MsgBody":EVProcessing,"urn:iso:15118:2:2016:MsgBody":PairingParameters{0-1})', derivedBy='EXTENSION'. */
-static int decode_v2gPairingReqType(bitstream_t* stream, struct v2gPairingReqType* v2gPairingReqType) {
- int grammarID = 2415;
- int done = 0;
-
- init_v2gPairingReqType(v2gPairingReqType);
-
- while(!done) {
- switch(grammarID) {
- case 2415:
- /* FirstStartTag[START_ELEMENT({urn:iso:15118:2:2016:MsgBody}EVProcessing)] */
- 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);
- v2gPairingReqType->EVProcessing = (v2gEVSEProcessingType) 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({urn:iso:15118:2:2016:MsgBody}EVProcessing) ? */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(eventCode == 0) {
- grammarID = 1223;
- } else {
- errn = EXI_DEVIANT_SUPPORT_NOT_DEPLOYED; /* or also typecast and nillable */
- }
- }
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 1223:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgBody}PairingParameters), END_ELEMENT] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- errn = decode_v2gParameterSetType(stream, &v2gPairingReqType->PairingParameters);
- v2gPairingReqType->PairingParameters_isUsed = 1u;
- grammarID = 2;
- 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:2016:MsgBody,DisconnectChargingDeviceReqType', base type name='BodyBaseType', content type='ELEMENT', isAbstract='false', hasTypeId='false', final='0', block='0', particle='("urn:iso:15118:2:2016:MsgBody":EVElectricalChargingDeviceStatus,"urn:iso:15118:2:2016:MsgBody":EVMechanicalChargingDeviceStatus)', derivedBy='EXTENSION'. */
-static int decode_v2gDisconnectChargingDeviceReqType(bitstream_t* stream, struct v2gDisconnectChargingDeviceReqType* v2gDisconnectChargingDeviceReqType) {
- int grammarID = 2147;
- int done = 0;
-
- init_v2gDisconnectChargingDeviceReqType(v2gDisconnectChargingDeviceReqType);
-
- while(!done) {
- switch(grammarID) {
- case 2147:
- /* FirstStartTag[START_ELEMENT({urn:iso:15118:2:2016:MsgBody}EVElectricalChargingDeviceStatus)] */
- 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, 1, &uint32);
- v2gDisconnectChargingDeviceReqType->EVElectricalChargingDeviceStatus = (v2gelectricalChargingDeviceStatusType) 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({urn:iso:15118:2:2016:MsgBody}EVElectricalChargingDeviceStatus) ? */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(eventCode == 0) {
- grammarID = 917;
- } else {
- errn = EXI_DEVIANT_SUPPORT_NOT_DEPLOYED; /* or also typecast and nillable */
- }
- }
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 917:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgBody}EVMechanicalChargingDeviceStatus)] */
- 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);
- v2gDisconnectChargingDeviceReqType->EVMechanicalChargingDeviceStatus = (v2gmechanicalChargingDeviceStatusType) 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({urn:iso:15118:2:2016:MsgBody}EVMechanicalChargingDeviceStatus) ? */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(eventCode == 0) {
- grammarID = 2;
- } else {
- errn = EXI_DEVIANT_SUPPORT_NOT_DEPLOYED; /* or also typecast and nillable */
- }
- }
- 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:2016:MsgDataTypes,ParameterType', base type name='anyType', content type='ELEMENT', isAbstract='false', hasTypeId='false', final='0', block='0', particle='("urn:iso:15118:2:2016:MsgDataTypes":boolValue|"urn:iso:15118:2:2016:MsgDataTypes":byteValue|"urn:iso:15118:2:2016:MsgDataTypes":shortValue|"urn:iso:15118:2:2016:MsgDataTypes":intValue|"urn:iso:15118:2:2016:MsgDataTypes":physicalValue|"urn:iso:15118:2:2016:MsgDataTypes":stringValue)', derivedBy='RESTRICTION'. */
-static int decode_v2gParameterType(bitstream_t* stream, struct v2gParameterType* v2gParameterType) {
- int grammarID = 2416;
- int done = 0;
-
- init_v2gParameterType(v2gParameterType);
-
- while(!done) {
- switch(grammarID) {
- case 2416:
- /* FirstStartTag[ATTRIBUTE[STRING]({urn:iso:15118:2:2016:MsgDataTypes}Name)] */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- errn = decodeUnsignedInteger16(stream, &v2gParameterType->Name.charactersLen);
- if (errn == 0) {
- if (v2gParameterType->Name.charactersLen >= 2) {
- v2gParameterType->Name.charactersLen = (uint16_t)(v2gParameterType->Name.charactersLen - 2); /* string table miss */
- errn = decodeCharacters(stream, v2gParameterType->Name.charactersLen, v2gParameterType->Name.characters, v2gParameterType_Name_CHARACTERS_SIZE);
- } else {
- /* string table hit */
- errn = EXI_ERROR_STRINGVALUES_NOT_SUPPORTED;
- }
- }
- grammarID = 2417;
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 2417:
- /* StartTag[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}boolValue), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}byteValue), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}shortValue), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}intValue), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}physicalValue), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}stringValue)] */
- errn = decodeNBitUnsignedInteger(stream, 3, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- /* FirstStartTag[CHARACTERS[BOOLEAN]] */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(errn == 0) {
- if(eventCode == 0) {
- errn = decodeBoolean(stream, &v2gParameterType->boolValue);
- v2gParameterType->boolValue_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({urn:iso:15118:2:2016:MsgDataTypes}boolValue) ? */
- 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:
- /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(errn == 0) {
- if(eventCode == 0) {
- errn = decodeNBitUnsignedInteger(stream, 8, &(uint32));
- v2gParameterType->byteValue = (int8_t)(uint32 -128);
- v2gParameterType->byteValue_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({urn:iso:15118:2:2016:MsgDataTypes}byteValue) ? */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(eventCode == 0) {
- grammarID = 2;
- } else {
- errn = EXI_DEVIANT_SUPPORT_NOT_DEPLOYED; /* or also typecast and nillable */
- }
- }
- break;
- case 2:
- /* First(xsi:type)StartTag[CHARACTERS[INTEGER]] */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(errn == 0) {
- if(eventCode == 0) {
- errn = decodeInteger16(stream, &v2gParameterType->shortValue);
- v2gParameterType->shortValue_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({urn:iso:15118:2:2016:MsgDataTypes}shortValue) ? */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(eventCode == 0) {
- grammarID = 2;
- } else {
- errn = EXI_DEVIANT_SUPPORT_NOT_DEPLOYED; /* or also typecast and nillable */
- }
- }
- break;
- case 3:
- /* First(xsi:type)StartTag[CHARACTERS[INTEGER]] */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(errn == 0) {
- if(eventCode == 0) {
- errn = decodeInteger32(stream, &v2gParameterType->intValue);
- v2gParameterType->intValue_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({urn:iso:15118:2:2016:MsgDataTypes}intValue) ? */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(eventCode == 0) {
- grammarID = 2;
- } else {
- errn = EXI_DEVIANT_SUPPORT_NOT_DEPLOYED; /* or also typecast and nillable */
- }
- }
- break;
- case 4:
- errn = decode_v2gPhysicalValueType(stream, &v2gParameterType->physicalValue);
- v2gParameterType->physicalValue_isUsed = 1u;
- grammarID = 2;
- break;
- case 5:
- /* First(xsi:type)StartTag[CHARACTERS[STRING]] */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(errn == 0) {
- if(eventCode == 0) {
- errn = decodeUnsignedInteger16(stream, &v2gParameterType->stringValue.charactersLen);
- if (errn == 0) {
- if (v2gParameterType->stringValue.charactersLen >= 2) {
- v2gParameterType->stringValue.charactersLen = (uint16_t)(v2gParameterType->stringValue.charactersLen - 2); /* string table miss */
- errn = decodeCharacters(stream, v2gParameterType->stringValue.charactersLen, v2gParameterType->stringValue.characters, v2gParameterType_stringValue_CHARACTERS_SIZE);
- } else {
- /* string table hit */
- errn = EXI_ERROR_STRINGVALUES_NOT_SUPPORTED;
- }
- }
- v2gParameterType->stringValue_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({urn:iso:15118:2:2016:MsgDataTypes}stringValue) ? */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(eventCode == 0) {
- grammarID = 2;
- } else {
- errn = EXI_DEVIANT_SUPPORT_NOT_DEPLOYED; /* or also typecast and nillable */
- }
- }
- 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:2016:MsgDataTypes,EVSEFinePositioningParametersType', base type name='anyType', content type='EMPTY', isAbstract='true', hasTypeId='false', final='0', block='0', derivedBy='RESTRICTION'. */
-static int decode_v2gEVSEFinePositioningParametersType(bitstream_t* stream, struct v2gEVSEFinePositioningParametersType* v2gEVSEFinePositioningParametersType) {
- int grammarID = 4;
- int done = 0;
-
- init_v2gEVSEFinePositioningParametersType(v2gEVSEFinePositioningParametersType);
-
- while(!done) {
- switch(grammarID) {
- case 4:
- /* FirstStartTag[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:2016:MsgDataTypes,AC_EVSEChargeParameterType', base type name='EVSEEnergyTransferParameterType', content type='ELEMENT', isAbstract='false', hasTypeId='false', final='0', block='0', particle='("urn:iso:15118:2:2016:MsgDataTypes":EVSEMaximumChargeCurrent,"urn:iso:15118:2:2016:MsgDataTypes":EVSENominalVoltage,"urn:iso:15118:2:2016:MsgDataTypes":EVSENominalFrequency)', derivedBy='EXTENSION'. */
-static int decode_v2gAC_EVSEChargeParameterType(bitstream_t* stream, struct v2gAC_EVSEChargeParameterType* v2gAC_EVSEChargeParameterType) {
- int grammarID = 2418;
- int done = 0;
-
- init_v2gAC_EVSEChargeParameterType(v2gAC_EVSEChargeParameterType);
-
- while(!done) {
- switch(grammarID) {
- case 2418:
- /* FirstStartTag[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}EVSEMaximumChargeCurrent)] */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- errn = decode_v2gPhysicalValueType(stream, &v2gAC_EVSEChargeParameterType->EVSEMaximumChargeCurrent);
- grammarID = 2419;
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 2419:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}EVSENominalVoltage)] */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- errn = decode_v2gPhysicalValueType(stream, &v2gAC_EVSEChargeParameterType->EVSENominalVoltage);
- grammarID = 578;
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 578:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}EVSENominalFrequency)] */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- errn = decode_v2gPhysicalValueType(stream, &v2gAC_EVSEChargeParameterType->EVSENominalFrequency);
- grammarID = 2;
- 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:2016:MsgBody,ServiceDiscoveryReqType', base type name='BodyBaseType', content type='ELEMENT', isAbstract='false', hasTypeId='false', final='0', block='0', particle='("urn:iso:15118:2:2016:MsgBody":SupportedServiceIDs{0-1})', derivedBy='EXTENSION'. */
-static int decode_v2gServiceDiscoveryReqType(bitstream_t* stream, struct v2gServiceDiscoveryReqType* v2gServiceDiscoveryReqType) {
- int grammarID = 2420;
- int done = 0;
-
- init_v2gServiceDiscoveryReqType(v2gServiceDiscoveryReqType);
-
- while(!done) {
- switch(grammarID) {
- case 2420:
- /* FirstStartTag[START_ELEMENT({urn:iso:15118:2:2016:MsgBody}SupportedServiceIDs), END_ELEMENT] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- errn = decode_v2gServiceIDListType(stream, &v2gServiceDiscoveryReqType->SupportedServiceIDs);
- v2gServiceDiscoveryReqType->SupportedServiceIDs_isUsed = 1u;
- grammarID = 2;
- 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:2016:MsgBody,ConnectChargingDeviceResType', base type name='V2GResponseType', content type='ELEMENT', isAbstract='false', hasTypeId='false', final='0', block='0', particle='(("urn:iso:15118:2:2016:MsgBody":ResponseCode,"urn:iso:15118:2:2016:MsgBody":EVSEStatus{0-1}),("urn:iso:15118:2:2016:MsgBody":EVSEProcessing,"urn:iso:15118:2:2016:MsgBody":EVSEElectricalChargingDeviceStatus,"urn:iso:15118:2:2016:MsgBody":EVSEMechanicalChargingDeviceStatus))', derivedBy='EXTENSION'. */
-static int decode_v2gConnectChargingDeviceResType(bitstream_t* stream, struct v2gConnectChargingDeviceResType* v2gConnectChargingDeviceResType) {
- int grammarID = 2421;
- int done = 0;
-
- init_v2gConnectChargingDeviceResType(v2gConnectChargingDeviceResType);
-
- while(!done) {
- switch(grammarID) {
- case 2421:
- /* FirstStartTag[START_ELEMENT({urn:iso:15118:2:2016:MsgBody}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, 5, &uint32);
- v2gConnectChargingDeviceResType->ResponseCode = (v2gresponseCodeType) 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({urn:iso:15118:2:2016:MsgBody}ResponseCode) ? */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(eventCode == 0) {
- grammarID = 2422;
- } else {
- errn = EXI_DEVIANT_SUPPORT_NOT_DEPLOYED; /* or also typecast and nillable */
- }
- }
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 2422:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgBody}EVSEStatus), START_ELEMENT({urn:iso:15118:2:2016:MsgBody}EVSEProcessing)] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- errn = decode_v2gEVSEStatusType(stream, &v2gConnectChargingDeviceResType->EVSEStatus);
- v2gConnectChargingDeviceResType->EVSEStatus_isUsed = 1u;
- grammarID = 2423;
- break;
- case 1:
- /* FirstStartTag[CHARACTERS[ENUMERATION]] */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(errn == 0) {
- if(eventCode == 0) {
- errn = decodeNBitUnsignedInteger(stream, 2, &uint32);
- v2gConnectChargingDeviceResType->EVSEProcessing = (v2gEVSEProcessingType) 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({urn:iso:15118:2:2016:MsgBody}EVSEProcessing) ? */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(eventCode == 0) {
- grammarID = 2424;
- } else {
- errn = EXI_DEVIANT_SUPPORT_NOT_DEPLOYED; /* or also typecast and nillable */
- }
- }
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 2423:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgBody}EVSEProcessing)] */
- 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);
- v2gConnectChargingDeviceResType->EVSEProcessing = (v2gEVSEProcessingType) 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({urn:iso:15118:2:2016:MsgBody}EVSEProcessing) ? */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(eventCode == 0) {
- grammarID = 2424;
- } else {
- errn = EXI_DEVIANT_SUPPORT_NOT_DEPLOYED; /* or also typecast and nillable */
- }
- }
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 2424:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgBody}EVSEElectricalChargingDeviceStatus)] */
- 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, 1, &uint32);
- v2gConnectChargingDeviceResType->EVSEElectricalChargingDeviceStatus = (v2gelectricalChargingDeviceStatusType) 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({urn:iso:15118:2:2016:MsgBody}EVSEElectricalChargingDeviceStatus) ? */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(eventCode == 0) {
- grammarID = 1519;
- } else {
- errn = EXI_DEVIANT_SUPPORT_NOT_DEPLOYED; /* or also typecast and nillable */
- }
- }
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 1519:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgBody}EVSEMechanicalChargingDeviceStatus)] */
- 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);
- v2gConnectChargingDeviceResType->EVSEMechanicalChargingDeviceStatus = (v2gmechanicalChargingDeviceStatusType) 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({urn:iso:15118:2:2016:MsgBody}EVSEMechanicalChargingDeviceStatus) ? */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(eventCode == 0) {
- grammarID = 2;
- } else {
- errn = EXI_DEVIANT_SUPPORT_NOT_DEPLOYED; /* or also typecast and nillable */
- }
- }
- 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:2016:MsgBody,PowerDemandReqType', base type name='ChargeLoopReqType', content type='ELEMENT', isAbstract='false', hasTypeId='false', final='0', block='0', particle='(("urn:iso:15118:2:2016:MsgBody":EVTargetEnergyRequest,"urn:iso:15118:2:2016:MsgBody":EVMaximumEnergyRequest{0-1},"urn:iso:15118:2:2016:MsgBody":EVMinimumEnergyRequest{0-1},"urn:iso:15118:2:2016:MsgBody":DisplayParameters{0-1}),("urn:iso:15118:2:2016:MsgBody":EVTargetPower,"urn:iso:15118:2:2016:MsgBody":EVInputPower,"urn:iso:15118:2:2016:MsgBody":PowerDemandParameters{0-1}))', derivedBy='EXTENSION'. */
-static int decode_v2gPowerDemandReqType(bitstream_t* stream, struct v2gPowerDemandReqType* v2gPowerDemandReqType) {
- int grammarID = 2425;
- int done = 0;
-
- init_v2gPowerDemandReqType(v2gPowerDemandReqType);
-
- while(!done) {
- switch(grammarID) {
- case 2425:
- /* FirstStartTag[START_ELEMENT({urn:iso:15118:2:2016:MsgBody}EVTargetEnergyRequest)] */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- errn = decode_v2gPhysicalValueType(stream, &v2gPowerDemandReqType->EVTargetEnergyRequest);
- grammarID = 2426;
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 2426:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgBody}EVMaximumEnergyRequest), START_ELEMENT({urn:iso:15118:2:2016:MsgBody}EVMinimumEnergyRequest), START_ELEMENT({urn:iso:15118:2:2016:MsgBody}DisplayParameters), START_ELEMENT({urn:iso:15118:2:2016:MsgBody}EVTargetPower)] */
- errn = decodeNBitUnsignedInteger(stream, 3, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- errn = decode_v2gPhysicalValueType(stream, &v2gPowerDemandReqType->EVMaximumEnergyRequest);
- v2gPowerDemandReqType->EVMaximumEnergyRequest_isUsed = 1u;
- grammarID = 2427;
- break;
- case 1:
- errn = decode_v2gPhysicalValueType(stream, &v2gPowerDemandReqType->EVMinimumEnergyRequest);
- v2gPowerDemandReqType->EVMinimumEnergyRequest_isUsed = 1u;
- grammarID = 2428;
- break;
- case 2:
- errn = decode_v2gDisplayParametersType(stream, &v2gPowerDemandReqType->DisplayParameters);
- v2gPowerDemandReqType->DisplayParameters_isUsed = 1u;
- grammarID = 2429;
- break;
- case 3:
- errn = decode_v2gPhysicalValueType(stream, &v2gPowerDemandReqType->EVTargetPower);
- grammarID = 2430;
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 2427:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgBody}EVMinimumEnergyRequest), START_ELEMENT({urn:iso:15118:2:2016:MsgBody}DisplayParameters), START_ELEMENT({urn:iso:15118:2:2016:MsgBody}EVTargetPower)] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- errn = decode_v2gPhysicalValueType(stream, &v2gPowerDemandReqType->EVMinimumEnergyRequest);
- v2gPowerDemandReqType->EVMinimumEnergyRequest_isUsed = 1u;
- grammarID = 2428;
- break;
- case 1:
- errn = decode_v2gDisplayParametersType(stream, &v2gPowerDemandReqType->DisplayParameters);
- v2gPowerDemandReqType->DisplayParameters_isUsed = 1u;
- grammarID = 2429;
- break;
- case 2:
- errn = decode_v2gPhysicalValueType(stream, &v2gPowerDemandReqType->EVTargetPower);
- grammarID = 2430;
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 2428:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgBody}DisplayParameters), START_ELEMENT({urn:iso:15118:2:2016:MsgBody}EVTargetPower)] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- errn = decode_v2gDisplayParametersType(stream, &v2gPowerDemandReqType->DisplayParameters);
- v2gPowerDemandReqType->DisplayParameters_isUsed = 1u;
- grammarID = 2429;
- break;
- case 1:
- errn = decode_v2gPhysicalValueType(stream, &v2gPowerDemandReqType->EVTargetPower);
- grammarID = 2430;
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 2429:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgBody}EVTargetPower)] */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- errn = decode_v2gPhysicalValueType(stream, &v2gPowerDemandReqType->EVTargetPower);
- grammarID = 2430;
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 2430:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgBody}EVInputPower)] */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- errn = decode_v2gPhysicalValueType(stream, &v2gPowerDemandReqType->EVInputPower);
- grammarID = 2431;
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 2431:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgBody}PowerDemandParameters), END_ELEMENT] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- errn = decode_v2gParameterSetType(stream, &v2gPowerDemandReqType->PowerDemandParameters);
- v2gPowerDemandReqType->PowerDemandParameters_isUsed = 1u;
- grammarID = 2;
- 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:2016:MsgDataTypes,LFA_EVFinePositioningParametersType', base type name='EVFinePositioningParametersType', content type='ELEMENT', isAbstract='false', hasTypeId='false', final='0', block='0', particle='("urn:iso:15118:2:2016:MsgDataTypes":NumberOfSignalPackages,"urn:iso:15118:2:2016:MsgDataTypes":SensorPackageList)', derivedBy='EXTENSION'. */
-static int decode_v2gLFA_EVFinePositioningParametersType(bitstream_t* stream, struct v2gLFA_EVFinePositioningParametersType* v2gLFA_EVFinePositioningParametersType) {
- int grammarID = 57;
- int done = 0;
-
- init_v2gLFA_EVFinePositioningParametersType(v2gLFA_EVFinePositioningParametersType);
-
- while(!done) {
- switch(grammarID) {
- case 57:
- /* FirstStartTag[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}NumberOfSignalPackages)] */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(errn == 0) {
- if(eventCode == 0) {
- errn = decodeNBitUnsignedInteger(stream, 8, &(uint32));
- v2gLFA_EVFinePositioningParametersType->NumberOfSignalPackages = (uint8_t)(uint32 + 0);
- } 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({urn:iso:15118:2:2016:MsgDataTypes}NumberOfSignalPackages) ? */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(eventCode == 0) {
- grammarID = 58;
- } else {
- errn = EXI_DEVIANT_SUPPORT_NOT_DEPLOYED; /* or also typecast and nillable */
- }
- }
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 58:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorPackageList)] */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- errn = decode_v2gSensorPackageListType(stream, &v2gLFA_EVFinePositioningParametersType->SensorPackageList);
- grammarID = 2;
- 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='http://www.w3.org/2000/09/xmldsig#,TransformType', base type name='anyType', content type='MIXED', isAbstract='false', hasTypeId='false', final='0', block='0', particle='((WC[##other:"http://www.w3.org/2000/09/xmldsig#"])|"http://www.w3.org/2000/09/xmldsig#":XPath){0-UNBOUNDED}', derivedBy='RESTRICTION'. */
-static int decode_v2gTransformType(bitstream_t* stream, struct v2gTransformType* v2gTransformType) {
- int grammarID = 2432;
- int done = 0;
-
- init_v2gTransformType(v2gTransformType);
-
- while(!done) {
- switch(grammarID) {
- case 2432:
- /* FirstStartTag[ATTRIBUTE[STRING](Algorithm)] */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- errn = decodeUnsignedInteger16(stream, &v2gTransformType->Algorithm.charactersLen);
- if (errn == 0) {
- if (v2gTransformType->Algorithm.charactersLen >= 2) {
- v2gTransformType->Algorithm.charactersLen = (uint16_t)(v2gTransformType->Algorithm.charactersLen - 2); /* string table miss */
- errn = decodeCharacters(stream, v2gTransformType->Algorithm.charactersLen, v2gTransformType->Algorithm.characters, v2gTransformType_Algorithm_CHARACTERS_SIZE);
- } else {
- /* string table hit */
- errn = EXI_ERROR_STRINGVALUES_NOT_SUPPORTED;
- }
- }
- grammarID = 2433;
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 2433:
- /* StartTag[START_ELEMENT({http://www.w3.org/2000/09/xmldsig#}XPath), START_ELEMENT_GENERIC, END_ELEMENT, CHARACTERS_GENERIC[STRING]] */
- errn = decodeNBitUnsignedInteger(stream, 3, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gTransformType->XPath.arrayLen < v2gTransformType_XPath_ARRAY_SIZE) {
- /* First(xsi:type)StartTag[CHARACTERS[STRING]] */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(errn == 0) {
- if(eventCode == 0) {
- errn = decodeUnsignedInteger16(stream, &v2gTransformType->XPath.array[v2gTransformType->XPath.arrayLen].charactersLen);
- if (errn == 0) {
- if (v2gTransformType->XPath.array[v2gTransformType->XPath.arrayLen].charactersLen >= 2) {
- v2gTransformType->XPath.array[v2gTransformType->XPath.arrayLen].charactersLen = (uint16_t)(v2gTransformType->XPath.array[v2gTransformType->XPath.arrayLen].charactersLen - 2); /* string table miss */
- errn = decodeCharacters(stream, v2gTransformType->XPath.array[v2gTransformType->XPath.arrayLen].charactersLen, v2gTransformType->XPath.array[v2gTransformType->XPath.arrayLen].characters, v2gTransformType_XPath_CHARACTERS_SIZE);
- } else {
- /* string table hit */
- errn = EXI_ERROR_STRINGVALUES_NOT_SUPPORTED;
- }
- }
- v2gTransformType->XPath.arrayLen++;
- } else {
- /* Second level event (e.g., xsi:type, xsi:nil, ...) */
- errn = EXI_UNSUPPORTED_EVENT_CODE_CHARACTERISTICS;
- }
- }
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- if(errn == 0) {
- /* valid EE for simple element START_ELEMENT({http://www.w3.org/2000/09/xmldsig#}XPath) ? */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(eventCode == 0) {
- grammarID = 2434;
- } else {
- errn = EXI_DEVIANT_SUPPORT_NOT_DEPLOYED; /* or also typecast and nillable */
- }
- }
- break;
- case 1:
- errn = EXI_UNSUPPORTED_EVENT_CODE_CHARACTERISTICS;
- /* TODO unsupported event : START_ELEMENT_GENERIC */
- grammarID = 2434;
- break;
- case 2:
- done = 1;
- grammarID = 3;
- break;
- case 3:
- errn = decodeUnsignedInteger16(stream, &v2gTransformType->ANY.charactersLen);
- if (errn == 0) {
- if (v2gTransformType->ANY.charactersLen >= 2) {
- v2gTransformType->ANY.charactersLen = (uint16_t)(v2gTransformType->ANY.charactersLen - 2); /* string table miss */
- errn = decodeCharacters(stream, v2gTransformType->ANY.charactersLen, v2gTransformType->ANY.characters, v2gTransformType_ANY_CHARACTERS_SIZE);
- } else {
- /* string table hit */
- errn = EXI_ERROR_STRINGVALUES_NOT_SUPPORTED;
- }
- }
- v2gTransformType->ANY_isUsed = 1u;
- grammarID = 2434;
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 2434:
- /* Element[START_ELEMENT({http://www.w3.org/2000/09/xmldsig#}XPath), START_ELEMENT_GENERIC, END_ELEMENT, CHARACTERS_GENERIC[STRING]] */
- errn = decodeNBitUnsignedInteger(stream, 3, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gTransformType->XPath.arrayLen < v2gTransformType_XPath_ARRAY_SIZE) {
- /* First(xsi:type)StartTag[CHARACTERS[STRING]] */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(errn == 0) {
- if(eventCode == 0) {
- errn = decodeUnsignedInteger16(stream, &v2gTransformType->XPath.array[v2gTransformType->XPath.arrayLen].charactersLen);
- if (errn == 0) {
- if (v2gTransformType->XPath.array[v2gTransformType->XPath.arrayLen].charactersLen >= 2) {
- v2gTransformType->XPath.array[v2gTransformType->XPath.arrayLen].charactersLen = (uint16_t)(v2gTransformType->XPath.array[v2gTransformType->XPath.arrayLen].charactersLen - 2); /* string table miss */
- errn = decodeCharacters(stream, v2gTransformType->XPath.array[v2gTransformType->XPath.arrayLen].charactersLen, v2gTransformType->XPath.array[v2gTransformType->XPath.arrayLen].characters, v2gTransformType_XPath_CHARACTERS_SIZE);
- } else {
- /* string table hit */
- errn = EXI_ERROR_STRINGVALUES_NOT_SUPPORTED;
- }
- }
- v2gTransformType->XPath.arrayLen++;
- } else {
- /* Second level event (e.g., xsi:type, xsi:nil, ...) */
- errn = EXI_UNSUPPORTED_EVENT_CODE_CHARACTERISTICS;
- }
- }
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- if(errn == 0) {
- /* valid EE for simple element START_ELEMENT({http://www.w3.org/2000/09/xmldsig#}XPath) ? */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(eventCode == 0) {
- grammarID = 2434;
- } else {
- errn = EXI_DEVIANT_SUPPORT_NOT_DEPLOYED; /* or also typecast and nillable */
- }
- }
- break;
- case 1:
- errn = EXI_UNSUPPORTED_EVENT_CODE_CHARACTERISTICS;
- /* TODO unsupported event : START_ELEMENT_GENERIC */
- grammarID = 2434;
- break;
- case 2:
- done = 1;
- grammarID = 3;
- break;
- case 3:
- errn = decodeUnsignedInteger16(stream, &v2gTransformType->ANY.charactersLen);
- if (errn == 0) {
- if (v2gTransformType->ANY.charactersLen >= 2) {
- v2gTransformType->ANY.charactersLen = (uint16_t)(v2gTransformType->ANY.charactersLen - 2); /* string table miss */
- errn = decodeCharacters(stream, v2gTransformType->ANY.charactersLen, v2gTransformType->ANY.characters, v2gTransformType_ANY_CHARACTERS_SIZE);
- } else {
- /* string table hit */
- errn = EXI_ERROR_STRINGVALUES_NOT_SUPPORTED;
- }
- }
- v2gTransformType->ANY_isUsed = 1u;
- grammarID = 2434;
- 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='http://www.w3.org/2000/09/xmldsig#,ObjectType', base type name='anyType', content type='MIXED', isAbstract='false', hasTypeId='false', final='0', block='0', particle='((WC[##any])){0-UNBOUNDED}', derivedBy='RESTRICTION'. */
-static int decode_v2gObjectType(bitstream_t* stream, struct v2gObjectType* v2gObjectType) {
- int grammarID = 2435;
- int done = 0;
-
- init_v2gObjectType(v2gObjectType);
-
- while(!done) {
- switch(grammarID) {
- case 2435:
- /* FirstStartTag[ATTRIBUTE[STRING](Encoding), ATTRIBUTE[STRING](Id), ATTRIBUTE[STRING](MimeType), START_ELEMENT_GENERIC, END_ELEMENT, CHARACTERS_GENERIC[STRING]] */
- errn = decodeNBitUnsignedInteger(stream, 3, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- errn = decodeUnsignedInteger16(stream, &v2gObjectType->Encoding.charactersLen);
- if (errn == 0) {
- if (v2gObjectType->Encoding.charactersLen >= 2) {
- v2gObjectType->Encoding.charactersLen = (uint16_t)(v2gObjectType->Encoding.charactersLen - 2); /* string table miss */
- errn = decodeCharacters(stream, v2gObjectType->Encoding.charactersLen, v2gObjectType->Encoding.characters, v2gObjectType_Encoding_CHARACTERS_SIZE);
- } else {
- /* string table hit */
- errn = EXI_ERROR_STRINGVALUES_NOT_SUPPORTED;
- }
- }
- v2gObjectType->Encoding_isUsed = 1u;
- grammarID = 2436;
- break;
- case 1:
- errn = decodeUnsignedInteger16(stream, &v2gObjectType->Id.charactersLen);
- if (errn == 0) {
- if (v2gObjectType->Id.charactersLen >= 2) {
- v2gObjectType->Id.charactersLen = (uint16_t)(v2gObjectType->Id.charactersLen - 2); /* string table miss */
- errn = decodeCharacters(stream, v2gObjectType->Id.charactersLen, v2gObjectType->Id.characters, v2gObjectType_Id_CHARACTERS_SIZE);
- } else {
- /* string table hit */
- errn = EXI_ERROR_STRINGVALUES_NOT_SUPPORTED;
- }
- }
- v2gObjectType->Id_isUsed = 1u;
- grammarID = 2437;
- break;
- case 2:
- errn = decodeUnsignedInteger16(stream, &v2gObjectType->MimeType.charactersLen);
- if (errn == 0) {
- if (v2gObjectType->MimeType.charactersLen >= 2) {
- v2gObjectType->MimeType.charactersLen = (uint16_t)(v2gObjectType->MimeType.charactersLen - 2); /* string table miss */
- errn = decodeCharacters(stream, v2gObjectType->MimeType.charactersLen, v2gObjectType->MimeType.characters, v2gObjectType_MimeType_CHARACTERS_SIZE);
- } else {
- /* string table hit */
- errn = EXI_ERROR_STRINGVALUES_NOT_SUPPORTED;
- }
- }
- v2gObjectType->MimeType_isUsed = 1u;
- grammarID = 1848;
- break;
- case 3:
- errn = EXI_UNSUPPORTED_EVENT_CODE_CHARACTERISTICS;
- /* TODO unsupported event : START_ELEMENT_GENERIC */
- grammarID = 904;
- break;
- case 4:
- done = 1;
- grammarID = 3;
- break;
- case 5:
- errn = decodeUnsignedInteger16(stream, &v2gObjectType->ANY.charactersLen);
- if (errn == 0) {
- if (v2gObjectType->ANY.charactersLen >= 2) {
- v2gObjectType->ANY.charactersLen = (uint16_t)(v2gObjectType->ANY.charactersLen - 2); /* string table miss */
- errn = decodeCharacters(stream, v2gObjectType->ANY.charactersLen, v2gObjectType->ANY.characters, v2gObjectType_ANY_CHARACTERS_SIZE);
- } else {
- /* string table hit */
- errn = EXI_ERROR_STRINGVALUES_NOT_SUPPORTED;
- }
- }
- v2gObjectType->ANY_isUsed = 1u;
- grammarID = 904;
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 2436:
- /* StartTag[ATTRIBUTE[STRING](Id), ATTRIBUTE[STRING](MimeType), START_ELEMENT_GENERIC, END_ELEMENT, CHARACTERS_GENERIC[STRING]] */
- errn = decodeNBitUnsignedInteger(stream, 3, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- errn = decodeUnsignedInteger16(stream, &v2gObjectType->Id.charactersLen);
- if (errn == 0) {
- if (v2gObjectType->Id.charactersLen >= 2) {
- v2gObjectType->Id.charactersLen = (uint16_t)(v2gObjectType->Id.charactersLen - 2); /* string table miss */
- errn = decodeCharacters(stream, v2gObjectType->Id.charactersLen, v2gObjectType->Id.characters, v2gObjectType_Id_CHARACTERS_SIZE);
- } else {
- /* string table hit */
- errn = EXI_ERROR_STRINGVALUES_NOT_SUPPORTED;
- }
- }
- v2gObjectType->Id_isUsed = 1u;
- grammarID = 2437;
- break;
- case 1:
- errn = decodeUnsignedInteger16(stream, &v2gObjectType->MimeType.charactersLen);
- if (errn == 0) {
- if (v2gObjectType->MimeType.charactersLen >= 2) {
- v2gObjectType->MimeType.charactersLen = (uint16_t)(v2gObjectType->MimeType.charactersLen - 2); /* string table miss */
- errn = decodeCharacters(stream, v2gObjectType->MimeType.charactersLen, v2gObjectType->MimeType.characters, v2gObjectType_MimeType_CHARACTERS_SIZE);
- } else {
- /* string table hit */
- errn = EXI_ERROR_STRINGVALUES_NOT_SUPPORTED;
- }
- }
- v2gObjectType->MimeType_isUsed = 1u;
- grammarID = 1848;
- break;
- case 2:
- errn = EXI_UNSUPPORTED_EVENT_CODE_CHARACTERISTICS;
- /* TODO unsupported event : START_ELEMENT_GENERIC */
- grammarID = 904;
- break;
- case 3:
- done = 1;
- grammarID = 3;
- break;
- case 4:
- errn = decodeUnsignedInteger16(stream, &v2gObjectType->ANY.charactersLen);
- if (errn == 0) {
- if (v2gObjectType->ANY.charactersLen >= 2) {
- v2gObjectType->ANY.charactersLen = (uint16_t)(v2gObjectType->ANY.charactersLen - 2); /* string table miss */
- errn = decodeCharacters(stream, v2gObjectType->ANY.charactersLen, v2gObjectType->ANY.characters, v2gObjectType_ANY_CHARACTERS_SIZE);
- } else {
- /* string table hit */
- errn = EXI_ERROR_STRINGVALUES_NOT_SUPPORTED;
- }
- }
- v2gObjectType->ANY_isUsed = 1u;
- grammarID = 904;
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 2437:
- /* StartTag[ATTRIBUTE[STRING](MimeType), START_ELEMENT_GENERIC, END_ELEMENT, CHARACTERS_GENERIC[STRING]] */
- errn = decodeNBitUnsignedInteger(stream, 3, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- errn = decodeUnsignedInteger16(stream, &v2gObjectType->MimeType.charactersLen);
- if (errn == 0) {
- if (v2gObjectType->MimeType.charactersLen >= 2) {
- v2gObjectType->MimeType.charactersLen = (uint16_t)(v2gObjectType->MimeType.charactersLen - 2); /* string table miss */
- errn = decodeCharacters(stream, v2gObjectType->MimeType.charactersLen, v2gObjectType->MimeType.characters, v2gObjectType_MimeType_CHARACTERS_SIZE);
- } else {
- /* string table hit */
- errn = EXI_ERROR_STRINGVALUES_NOT_SUPPORTED;
- }
- }
- v2gObjectType->MimeType_isUsed = 1u;
- grammarID = 1848;
- break;
- case 1:
- errn = EXI_UNSUPPORTED_EVENT_CODE_CHARACTERISTICS;
- /* TODO unsupported event : START_ELEMENT_GENERIC */
- grammarID = 904;
- break;
- case 2:
- done = 1;
- grammarID = 3;
- break;
- case 3:
- errn = decodeUnsignedInteger16(stream, &v2gObjectType->ANY.charactersLen);
- if (errn == 0) {
- if (v2gObjectType->ANY.charactersLen >= 2) {
- v2gObjectType->ANY.charactersLen = (uint16_t)(v2gObjectType->ANY.charactersLen - 2); /* string table miss */
- errn = decodeCharacters(stream, v2gObjectType->ANY.charactersLen, v2gObjectType->ANY.characters, v2gObjectType_ANY_CHARACTERS_SIZE);
- } else {
- /* string table hit */
- errn = EXI_ERROR_STRINGVALUES_NOT_SUPPORTED;
- }
- }
- v2gObjectType->ANY_isUsed = 1u;
- grammarID = 904;
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 1848:
- /* StartTag[START_ELEMENT_GENERIC, END_ELEMENT, CHARACTERS_GENERIC[STRING]] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- errn = EXI_UNSUPPORTED_EVENT_CODE_CHARACTERISTICS;
- /* TODO unsupported event : START_ELEMENT_GENERIC */
- grammarID = 904;
- break;
- case 1:
- done = 1;
- grammarID = 3;
- break;
- case 2:
- errn = decodeUnsignedInteger16(stream, &v2gObjectType->ANY.charactersLen);
- if (errn == 0) {
- if (v2gObjectType->ANY.charactersLen >= 2) {
- v2gObjectType->ANY.charactersLen = (uint16_t)(v2gObjectType->ANY.charactersLen - 2); /* string table miss */
- errn = decodeCharacters(stream, v2gObjectType->ANY.charactersLen, v2gObjectType->ANY.characters, v2gObjectType_ANY_CHARACTERS_SIZE);
- } else {
- /* string table hit */
- errn = EXI_ERROR_STRINGVALUES_NOT_SUPPORTED;
- }
- }
- v2gObjectType->ANY_isUsed = 1u;
- grammarID = 904;
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 904:
- /* Element[START_ELEMENT_GENERIC, END_ELEMENT, CHARACTERS_GENERIC[STRING]] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- errn = EXI_UNSUPPORTED_EVENT_CODE_CHARACTERISTICS;
- /* TODO unsupported event : START_ELEMENT_GENERIC */
- grammarID = 904;
- break;
- case 1:
- done = 1;
- grammarID = 3;
- break;
- case 2:
- errn = decodeUnsignedInteger16(stream, &v2gObjectType->ANY.charactersLen);
- if (errn == 0) {
- if (v2gObjectType->ANY.charactersLen >= 2) {
- v2gObjectType->ANY.charactersLen = (uint16_t)(v2gObjectType->ANY.charactersLen - 2); /* string table miss */
- errn = decodeCharacters(stream, v2gObjectType->ANY.charactersLen, v2gObjectType->ANY.characters, v2gObjectType_ANY_CHARACTERS_SIZE);
- } else {
- /* string table hit */
- errn = EXI_ERROR_STRINGVALUES_NOT_SUPPORTED;
- }
- }
- v2gObjectType->ANY_isUsed = 1u;
- grammarID = 904;
- 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:2016:MsgBody,PowerDeliveryReqType', base type name='BodyBaseType', content type='ELEMENT', isAbstract='false', hasTypeId='false', final='0', block='0', particle='("urn:iso:15118:2:2016:MsgBody":ChargeProgress,"urn:iso:15118:2:2016:MsgBody":EVOperation{0-1},"urn:iso:15118:2:2016:MsgBody":SAScheduleTupleID{0-1},"urn:iso:15118:2:2016:MsgBody":ChargingProfile{0-1})', derivedBy='EXTENSION'. */
-static int decode_v2gPowerDeliveryReqType(bitstream_t* stream, struct v2gPowerDeliveryReqType* v2gPowerDeliveryReqType) {
- int grammarID = 2438;
- int done = 0;
-
- init_v2gPowerDeliveryReqType(v2gPowerDeliveryReqType);
-
- while(!done) {
- switch(grammarID) {
- case 2438:
- /* FirstStartTag[START_ELEMENT({urn:iso:15118:2:2016:MsgBody}ChargeProgress)] */
- 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);
- v2gPowerDeliveryReqType->ChargeProgress = (v2gchargeProgressType) 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({urn:iso:15118:2:2016:MsgBody}ChargeProgress) ? */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(eventCode == 0) {
- grammarID = 2439;
- } else {
- errn = EXI_DEVIANT_SUPPORT_NOT_DEPLOYED; /* or also typecast and nillable */
- }
- }
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 2439:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgBody}EVOperation), START_ELEMENT({urn:iso:15118:2:2016:MsgBody}SAScheduleTupleID), START_ELEMENT({urn:iso:15118:2:2016:MsgBody}ChargingProfile), END_ELEMENT] */
- errn = decodeNBitUnsignedInteger(stream, 3, &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, 1, &uint32);
- v2gPowerDeliveryReqType->EVOperation = (v2gEVOperationType) uint32;
- v2gPowerDeliveryReqType->EVOperation_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({urn:iso:15118:2:2016:MsgBody}EVOperation) ? */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(eventCode == 0) {
- grammarID = 2440;
- } else {
- errn = EXI_DEVIANT_SUPPORT_NOT_DEPLOYED; /* or also typecast and nillable */
- }
- }
- break;
- case 1:
- /* FirstStartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(errn == 0) {
- if(eventCode == 0) {
- errn = decodeNBitUnsignedInteger(stream, 8, &(uint32));
- v2gPowerDeliveryReqType->SAScheduleTupleID = (uint8_t)(uint32 + 1);
- v2gPowerDeliveryReqType->SAScheduleTupleID_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({urn:iso:15118:2:2016:MsgBody}SAScheduleTupleID) ? */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(eventCode == 0) {
- grammarID = 2441;
- } else {
- errn = EXI_DEVIANT_SUPPORT_NOT_DEPLOYED; /* or also typecast and nillable */
- }
- }
- break;
- case 2:
- errn = decode_v2gChargingProfileType(stream, &v2gPowerDeliveryReqType->ChargingProfile);
- v2gPowerDeliveryReqType->ChargingProfile_isUsed = 1u;
- grammarID = 2;
- break;
- case 3:
- done = 1;
- grammarID = 3;
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 2440:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgBody}SAScheduleTupleID), START_ELEMENT({urn:iso:15118:2:2016:MsgBody}ChargingProfile), 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));
- v2gPowerDeliveryReqType->SAScheduleTupleID = (uint8_t)(uint32 + 1);
- v2gPowerDeliveryReqType->SAScheduleTupleID_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({urn:iso:15118:2:2016:MsgBody}SAScheduleTupleID) ? */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(eventCode == 0) {
- grammarID = 2441;
- } else {
- errn = EXI_DEVIANT_SUPPORT_NOT_DEPLOYED; /* or also typecast and nillable */
- }
- }
- break;
- case 1:
- errn = decode_v2gChargingProfileType(stream, &v2gPowerDeliveryReqType->ChargingProfile);
- v2gPowerDeliveryReqType->ChargingProfile_isUsed = 1u;
- grammarID = 2;
- break;
- case 2:
- done = 1;
- grammarID = 3;
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 2441:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgBody}ChargingProfile), END_ELEMENT] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- errn = decode_v2gChargingProfileType(stream, &v2gPowerDeliveryReqType->ChargingProfile);
- v2gPowerDeliveryReqType->ChargingProfile_isUsed = 1u;
- grammarID = 2;
- 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:2016:MsgDataTypes,Generic_EVSEFinePositioningParametersType', base type name='EVSEFinePositioningParametersType', content type='ELEMENT', isAbstract='false', hasTypeId='false', final='0', block='0', particle='("urn:iso:15118:2:2016:MsgDataTypes":GenericParameters)', derivedBy='EXTENSION'. */
-static int decode_v2gGeneric_EVSEFinePositioningParametersType(bitstream_t* stream, struct v2gGeneric_EVSEFinePositioningParametersType* v2gGeneric_EVSEFinePositioningParametersType) {
- int grammarID = 586;
- int done = 0;
-
- init_v2gGeneric_EVSEFinePositioningParametersType(v2gGeneric_EVSEFinePositioningParametersType);
-
- while(!done) {
- switch(grammarID) {
- case 586:
- /* FirstStartTag[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}GenericParameters)] */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- errn = decode_v2gParameterSetType(stream, &v2gGeneric_EVSEFinePositioningParametersType->GenericParameters);
- grammarID = 2;
- 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:2016:MsgDataTypes,SensorPackageListType', base type name='anyType', content type='ELEMENT', isAbstract='false', hasTypeId='false', final='0', block='0', particle='("urn:iso:15118:2:2016:MsgDataTypes":SensorPackage{1-255})', derivedBy='RESTRICTION'. */
-static int decode_v2gSensorPackageListType(bitstream_t* stream, struct v2gSensorPackageListType* v2gSensorPackageListType) {
- int grammarID = 2442;
- int done = 0;
-
- init_v2gSensorPackageListType(v2gSensorPackageListType);
-
- while(!done) {
- switch(grammarID) {
- case 2442:
- /* FirstStartTag[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorPackage)] */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gSensorPackageListType->SensorPackage.arrayLen < v2gSensorPackageListType_SensorPackage_ARRAY_SIZE) {
- errn = decode_v2gSensorPackageType(stream, &v2gSensorPackageListType->SensorPackage.array[v2gSensorPackageListType->SensorPackage.arrayLen++]);
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- grammarID = 2443;
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 2443:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorPackage), END_ELEMENT] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gSensorPackageListType->SensorPackage.arrayLen < v2gSensorPackageListType_SensorPackage_ARRAY_SIZE) {
- errn = decode_v2gSensorPackageType(stream, &v2gSensorPackageListType->SensorPackage.array[v2gSensorPackageListType->SensorPackage.arrayLen++]);
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- grammarID = 2444;
- break;
- case 1:
- done = 1;
- grammarID = 3;
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 2444:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorPackage), END_ELEMENT] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gSensorPackageListType->SensorPackage.arrayLen < v2gSensorPackageListType_SensorPackage_ARRAY_SIZE) {
- errn = decode_v2gSensorPackageType(stream, &v2gSensorPackageListType->SensorPackage.array[v2gSensorPackageListType->SensorPackage.arrayLen++]);
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- grammarID = 2445;
- break;
- case 1:
- done = 1;
- grammarID = 3;
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 2445:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorPackage), END_ELEMENT] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gSensorPackageListType->SensorPackage.arrayLen < v2gSensorPackageListType_SensorPackage_ARRAY_SIZE) {
- errn = decode_v2gSensorPackageType(stream, &v2gSensorPackageListType->SensorPackage.array[v2gSensorPackageListType->SensorPackage.arrayLen++]);
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- grammarID = 2446;
- break;
- case 1:
- done = 1;
- grammarID = 3;
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 2446:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorPackage), END_ELEMENT] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gSensorPackageListType->SensorPackage.arrayLen < v2gSensorPackageListType_SensorPackage_ARRAY_SIZE) {
- errn = decode_v2gSensorPackageType(stream, &v2gSensorPackageListType->SensorPackage.array[v2gSensorPackageListType->SensorPackage.arrayLen++]);
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- grammarID = 2447;
- break;
- case 1:
- done = 1;
- grammarID = 3;
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 2447:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorPackage), END_ELEMENT] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gSensorPackageListType->SensorPackage.arrayLen < v2gSensorPackageListType_SensorPackage_ARRAY_SIZE) {
- errn = decode_v2gSensorPackageType(stream, &v2gSensorPackageListType->SensorPackage.array[v2gSensorPackageListType->SensorPackage.arrayLen++]);
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- grammarID = 2448;
- break;
- case 1:
- done = 1;
- grammarID = 3;
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 2448:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorPackage), END_ELEMENT] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gSensorPackageListType->SensorPackage.arrayLen < v2gSensorPackageListType_SensorPackage_ARRAY_SIZE) {
- errn = decode_v2gSensorPackageType(stream, &v2gSensorPackageListType->SensorPackage.array[v2gSensorPackageListType->SensorPackage.arrayLen++]);
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- grammarID = 2449;
- break;
- case 1:
- done = 1;
- grammarID = 3;
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 2449:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorPackage), END_ELEMENT] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gSensorPackageListType->SensorPackage.arrayLen < v2gSensorPackageListType_SensorPackage_ARRAY_SIZE) {
- errn = decode_v2gSensorPackageType(stream, &v2gSensorPackageListType->SensorPackage.array[v2gSensorPackageListType->SensorPackage.arrayLen++]);
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- grammarID = 2450;
- break;
- case 1:
- done = 1;
- grammarID = 3;
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 2450:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorPackage), END_ELEMENT] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gSensorPackageListType->SensorPackage.arrayLen < v2gSensorPackageListType_SensorPackage_ARRAY_SIZE) {
- errn = decode_v2gSensorPackageType(stream, &v2gSensorPackageListType->SensorPackage.array[v2gSensorPackageListType->SensorPackage.arrayLen++]);
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- grammarID = 2451;
- break;
- case 1:
- done = 1;
- grammarID = 3;
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 2451:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorPackage), END_ELEMENT] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gSensorPackageListType->SensorPackage.arrayLen < v2gSensorPackageListType_SensorPackage_ARRAY_SIZE) {
- errn = decode_v2gSensorPackageType(stream, &v2gSensorPackageListType->SensorPackage.array[v2gSensorPackageListType->SensorPackage.arrayLen++]);
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- grammarID = 2452;
- break;
- case 1:
- done = 1;
- grammarID = 3;
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 2452:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorPackage), END_ELEMENT] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gSensorPackageListType->SensorPackage.arrayLen < v2gSensorPackageListType_SensorPackage_ARRAY_SIZE) {
- errn = decode_v2gSensorPackageType(stream, &v2gSensorPackageListType->SensorPackage.array[v2gSensorPackageListType->SensorPackage.arrayLen++]);
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- grammarID = 2453;
- break;
- case 1:
- done = 1;
- grammarID = 3;
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 2453:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorPackage), END_ELEMENT] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gSensorPackageListType->SensorPackage.arrayLen < v2gSensorPackageListType_SensorPackage_ARRAY_SIZE) {
- errn = decode_v2gSensorPackageType(stream, &v2gSensorPackageListType->SensorPackage.array[v2gSensorPackageListType->SensorPackage.arrayLen++]);
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- grammarID = 2454;
- break;
- case 1:
- done = 1;
- grammarID = 3;
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 2454:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorPackage), END_ELEMENT] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gSensorPackageListType->SensorPackage.arrayLen < v2gSensorPackageListType_SensorPackage_ARRAY_SIZE) {
- errn = decode_v2gSensorPackageType(stream, &v2gSensorPackageListType->SensorPackage.array[v2gSensorPackageListType->SensorPackage.arrayLen++]);
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- grammarID = 2455;
- break;
- case 1:
- done = 1;
- grammarID = 3;
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 2455:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorPackage), END_ELEMENT] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gSensorPackageListType->SensorPackage.arrayLen < v2gSensorPackageListType_SensorPackage_ARRAY_SIZE) {
- errn = decode_v2gSensorPackageType(stream, &v2gSensorPackageListType->SensorPackage.array[v2gSensorPackageListType->SensorPackage.arrayLen++]);
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- grammarID = 2456;
- break;
- case 1:
- done = 1;
- grammarID = 3;
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 2456:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorPackage), END_ELEMENT] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gSensorPackageListType->SensorPackage.arrayLen < v2gSensorPackageListType_SensorPackage_ARRAY_SIZE) {
- errn = decode_v2gSensorPackageType(stream, &v2gSensorPackageListType->SensorPackage.array[v2gSensorPackageListType->SensorPackage.arrayLen++]);
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- grammarID = 2457;
- break;
- case 1:
- done = 1;
- grammarID = 3;
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 2457:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorPackage), END_ELEMENT] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gSensorPackageListType->SensorPackage.arrayLen < v2gSensorPackageListType_SensorPackage_ARRAY_SIZE) {
- errn = decode_v2gSensorPackageType(stream, &v2gSensorPackageListType->SensorPackage.array[v2gSensorPackageListType->SensorPackage.arrayLen++]);
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- grammarID = 2458;
- break;
- case 1:
- done = 1;
- grammarID = 3;
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 2458:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorPackage), END_ELEMENT] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gSensorPackageListType->SensorPackage.arrayLen < v2gSensorPackageListType_SensorPackage_ARRAY_SIZE) {
- errn = decode_v2gSensorPackageType(stream, &v2gSensorPackageListType->SensorPackage.array[v2gSensorPackageListType->SensorPackage.arrayLen++]);
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- grammarID = 2459;
- break;
- case 1:
- done = 1;
- grammarID = 3;
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 2459:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorPackage), END_ELEMENT] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gSensorPackageListType->SensorPackage.arrayLen < v2gSensorPackageListType_SensorPackage_ARRAY_SIZE) {
- errn = decode_v2gSensorPackageType(stream, &v2gSensorPackageListType->SensorPackage.array[v2gSensorPackageListType->SensorPackage.arrayLen++]);
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- grammarID = 2460;
- break;
- case 1:
- done = 1;
- grammarID = 3;
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 2460:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorPackage), END_ELEMENT] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gSensorPackageListType->SensorPackage.arrayLen < v2gSensorPackageListType_SensorPackage_ARRAY_SIZE) {
- errn = decode_v2gSensorPackageType(stream, &v2gSensorPackageListType->SensorPackage.array[v2gSensorPackageListType->SensorPackage.arrayLen++]);
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- grammarID = 2461;
- break;
- case 1:
- done = 1;
- grammarID = 3;
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 2461:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorPackage), END_ELEMENT] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gSensorPackageListType->SensorPackage.arrayLen < v2gSensorPackageListType_SensorPackage_ARRAY_SIZE) {
- errn = decode_v2gSensorPackageType(stream, &v2gSensorPackageListType->SensorPackage.array[v2gSensorPackageListType->SensorPackage.arrayLen++]);
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- grammarID = 2462;
- break;
- case 1:
- done = 1;
- grammarID = 3;
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 2462:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorPackage), END_ELEMENT] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gSensorPackageListType->SensorPackage.arrayLen < v2gSensorPackageListType_SensorPackage_ARRAY_SIZE) {
- errn = decode_v2gSensorPackageType(stream, &v2gSensorPackageListType->SensorPackage.array[v2gSensorPackageListType->SensorPackage.arrayLen++]);
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- grammarID = 2463;
- break;
- case 1:
- done = 1;
- grammarID = 3;
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 2463:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorPackage), END_ELEMENT] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gSensorPackageListType->SensorPackage.arrayLen < v2gSensorPackageListType_SensorPackage_ARRAY_SIZE) {
- errn = decode_v2gSensorPackageType(stream, &v2gSensorPackageListType->SensorPackage.array[v2gSensorPackageListType->SensorPackage.arrayLen++]);
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- grammarID = 2464;
- break;
- case 1:
- done = 1;
- grammarID = 3;
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 2464:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorPackage), END_ELEMENT] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gSensorPackageListType->SensorPackage.arrayLen < v2gSensorPackageListType_SensorPackage_ARRAY_SIZE) {
- errn = decode_v2gSensorPackageType(stream, &v2gSensorPackageListType->SensorPackage.array[v2gSensorPackageListType->SensorPackage.arrayLen++]);
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- grammarID = 2465;
- break;
- case 1:
- done = 1;
- grammarID = 3;
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 2465:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorPackage), END_ELEMENT] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gSensorPackageListType->SensorPackage.arrayLen < v2gSensorPackageListType_SensorPackage_ARRAY_SIZE) {
- errn = decode_v2gSensorPackageType(stream, &v2gSensorPackageListType->SensorPackage.array[v2gSensorPackageListType->SensorPackage.arrayLen++]);
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- grammarID = 2466;
- break;
- case 1:
- done = 1;
- grammarID = 3;
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 2466:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorPackage), END_ELEMENT] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gSensorPackageListType->SensorPackage.arrayLen < v2gSensorPackageListType_SensorPackage_ARRAY_SIZE) {
- errn = decode_v2gSensorPackageType(stream, &v2gSensorPackageListType->SensorPackage.array[v2gSensorPackageListType->SensorPackage.arrayLen++]);
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- grammarID = 2467;
- break;
- case 1:
- done = 1;
- grammarID = 3;
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 2467:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorPackage), END_ELEMENT] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gSensorPackageListType->SensorPackage.arrayLen < v2gSensorPackageListType_SensorPackage_ARRAY_SIZE) {
- errn = decode_v2gSensorPackageType(stream, &v2gSensorPackageListType->SensorPackage.array[v2gSensorPackageListType->SensorPackage.arrayLen++]);
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- grammarID = 2468;
- break;
- case 1:
- done = 1;
- grammarID = 3;
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 2468:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorPackage), END_ELEMENT] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gSensorPackageListType->SensorPackage.arrayLen < v2gSensorPackageListType_SensorPackage_ARRAY_SIZE) {
- errn = decode_v2gSensorPackageType(stream, &v2gSensorPackageListType->SensorPackage.array[v2gSensorPackageListType->SensorPackage.arrayLen++]);
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- grammarID = 2469;
- break;
- case 1:
- done = 1;
- grammarID = 3;
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 2469:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorPackage), END_ELEMENT] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gSensorPackageListType->SensorPackage.arrayLen < v2gSensorPackageListType_SensorPackage_ARRAY_SIZE) {
- errn = decode_v2gSensorPackageType(stream, &v2gSensorPackageListType->SensorPackage.array[v2gSensorPackageListType->SensorPackage.arrayLen++]);
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- grammarID = 2470;
- break;
- case 1:
- done = 1;
- grammarID = 3;
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 2470:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorPackage), END_ELEMENT] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gSensorPackageListType->SensorPackage.arrayLen < v2gSensorPackageListType_SensorPackage_ARRAY_SIZE) {
- errn = decode_v2gSensorPackageType(stream, &v2gSensorPackageListType->SensorPackage.array[v2gSensorPackageListType->SensorPackage.arrayLen++]);
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- grammarID = 2471;
- break;
- case 1:
- done = 1;
- grammarID = 3;
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 2471:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorPackage), END_ELEMENT] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gSensorPackageListType->SensorPackage.arrayLen < v2gSensorPackageListType_SensorPackage_ARRAY_SIZE) {
- errn = decode_v2gSensorPackageType(stream, &v2gSensorPackageListType->SensorPackage.array[v2gSensorPackageListType->SensorPackage.arrayLen++]);
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- grammarID = 2472;
- break;
- case 1:
- done = 1;
- grammarID = 3;
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 2472:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorPackage), END_ELEMENT] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gSensorPackageListType->SensorPackage.arrayLen < v2gSensorPackageListType_SensorPackage_ARRAY_SIZE) {
- errn = decode_v2gSensorPackageType(stream, &v2gSensorPackageListType->SensorPackage.array[v2gSensorPackageListType->SensorPackage.arrayLen++]);
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- grammarID = 2473;
- break;
- case 1:
- done = 1;
- grammarID = 3;
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 2473:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorPackage), END_ELEMENT] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gSensorPackageListType->SensorPackage.arrayLen < v2gSensorPackageListType_SensorPackage_ARRAY_SIZE) {
- errn = decode_v2gSensorPackageType(stream, &v2gSensorPackageListType->SensorPackage.array[v2gSensorPackageListType->SensorPackage.arrayLen++]);
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- grammarID = 2474;
- break;
- case 1:
- done = 1;
- grammarID = 3;
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 2474:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorPackage), END_ELEMENT] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gSensorPackageListType->SensorPackage.arrayLen < v2gSensorPackageListType_SensorPackage_ARRAY_SIZE) {
- errn = decode_v2gSensorPackageType(stream, &v2gSensorPackageListType->SensorPackage.array[v2gSensorPackageListType->SensorPackage.arrayLen++]);
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- grammarID = 2475;
- break;
- case 1:
- done = 1;
- grammarID = 3;
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 2475:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorPackage), END_ELEMENT] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gSensorPackageListType->SensorPackage.arrayLen < v2gSensorPackageListType_SensorPackage_ARRAY_SIZE) {
- errn = decode_v2gSensorPackageType(stream, &v2gSensorPackageListType->SensorPackage.array[v2gSensorPackageListType->SensorPackage.arrayLen++]);
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- grammarID = 2476;
- break;
- case 1:
- done = 1;
- grammarID = 3;
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 2476:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorPackage), END_ELEMENT] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gSensorPackageListType->SensorPackage.arrayLen < v2gSensorPackageListType_SensorPackage_ARRAY_SIZE) {
- errn = decode_v2gSensorPackageType(stream, &v2gSensorPackageListType->SensorPackage.array[v2gSensorPackageListType->SensorPackage.arrayLen++]);
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- grammarID = 2477;
- break;
- case 1:
- done = 1;
- grammarID = 3;
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 2477:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorPackage), END_ELEMENT] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gSensorPackageListType->SensorPackage.arrayLen < v2gSensorPackageListType_SensorPackage_ARRAY_SIZE) {
- errn = decode_v2gSensorPackageType(stream, &v2gSensorPackageListType->SensorPackage.array[v2gSensorPackageListType->SensorPackage.arrayLen++]);
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- grammarID = 2478;
- break;
- case 1:
- done = 1;
- grammarID = 3;
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 2478:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorPackage), END_ELEMENT] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gSensorPackageListType->SensorPackage.arrayLen < v2gSensorPackageListType_SensorPackage_ARRAY_SIZE) {
- errn = decode_v2gSensorPackageType(stream, &v2gSensorPackageListType->SensorPackage.array[v2gSensorPackageListType->SensorPackage.arrayLen++]);
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- grammarID = 2479;
- break;
- case 1:
- done = 1;
- grammarID = 3;
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 2479:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorPackage), END_ELEMENT] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gSensorPackageListType->SensorPackage.arrayLen < v2gSensorPackageListType_SensorPackage_ARRAY_SIZE) {
- errn = decode_v2gSensorPackageType(stream, &v2gSensorPackageListType->SensorPackage.array[v2gSensorPackageListType->SensorPackage.arrayLen++]);
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- grammarID = 2480;
- break;
- case 1:
- done = 1;
- grammarID = 3;
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 2480:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorPackage), END_ELEMENT] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gSensorPackageListType->SensorPackage.arrayLen < v2gSensorPackageListType_SensorPackage_ARRAY_SIZE) {
- errn = decode_v2gSensorPackageType(stream, &v2gSensorPackageListType->SensorPackage.array[v2gSensorPackageListType->SensorPackage.arrayLen++]);
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- grammarID = 2481;
- break;
- case 1:
- done = 1;
- grammarID = 3;
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 2481:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorPackage), END_ELEMENT] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gSensorPackageListType->SensorPackage.arrayLen < v2gSensorPackageListType_SensorPackage_ARRAY_SIZE) {
- errn = decode_v2gSensorPackageType(stream, &v2gSensorPackageListType->SensorPackage.array[v2gSensorPackageListType->SensorPackage.arrayLen++]);
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- grammarID = 2482;
- break;
- case 1:
- done = 1;
- grammarID = 3;
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 2482:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorPackage), END_ELEMENT] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gSensorPackageListType->SensorPackage.arrayLen < v2gSensorPackageListType_SensorPackage_ARRAY_SIZE) {
- errn = decode_v2gSensorPackageType(stream, &v2gSensorPackageListType->SensorPackage.array[v2gSensorPackageListType->SensorPackage.arrayLen++]);
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- grammarID = 2483;
- break;
- case 1:
- done = 1;
- grammarID = 3;
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 2483:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorPackage), END_ELEMENT] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gSensorPackageListType->SensorPackage.arrayLen < v2gSensorPackageListType_SensorPackage_ARRAY_SIZE) {
- errn = decode_v2gSensorPackageType(stream, &v2gSensorPackageListType->SensorPackage.array[v2gSensorPackageListType->SensorPackage.arrayLen++]);
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- grammarID = 2484;
- break;
- case 1:
- done = 1;
- grammarID = 3;
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 2484:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorPackage), END_ELEMENT] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gSensorPackageListType->SensorPackage.arrayLen < v2gSensorPackageListType_SensorPackage_ARRAY_SIZE) {
- errn = decode_v2gSensorPackageType(stream, &v2gSensorPackageListType->SensorPackage.array[v2gSensorPackageListType->SensorPackage.arrayLen++]);
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- grammarID = 2485;
- break;
- case 1:
- done = 1;
- grammarID = 3;
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 2485:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorPackage), END_ELEMENT] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gSensorPackageListType->SensorPackage.arrayLen < v2gSensorPackageListType_SensorPackage_ARRAY_SIZE) {
- errn = decode_v2gSensorPackageType(stream, &v2gSensorPackageListType->SensorPackage.array[v2gSensorPackageListType->SensorPackage.arrayLen++]);
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- grammarID = 2486;
- break;
- case 1:
- done = 1;
- grammarID = 3;
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 2486:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorPackage), END_ELEMENT] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gSensorPackageListType->SensorPackage.arrayLen < v2gSensorPackageListType_SensorPackage_ARRAY_SIZE) {
- errn = decode_v2gSensorPackageType(stream, &v2gSensorPackageListType->SensorPackage.array[v2gSensorPackageListType->SensorPackage.arrayLen++]);
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- grammarID = 2487;
- break;
- case 1:
- done = 1;
- grammarID = 3;
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 2487:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorPackage), END_ELEMENT] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gSensorPackageListType->SensorPackage.arrayLen < v2gSensorPackageListType_SensorPackage_ARRAY_SIZE) {
- errn = decode_v2gSensorPackageType(stream, &v2gSensorPackageListType->SensorPackage.array[v2gSensorPackageListType->SensorPackage.arrayLen++]);
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- grammarID = 2488;
- break;
- case 1:
- done = 1;
- grammarID = 3;
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 2488:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorPackage), END_ELEMENT] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gSensorPackageListType->SensorPackage.arrayLen < v2gSensorPackageListType_SensorPackage_ARRAY_SIZE) {
- errn = decode_v2gSensorPackageType(stream, &v2gSensorPackageListType->SensorPackage.array[v2gSensorPackageListType->SensorPackage.arrayLen++]);
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- grammarID = 2489;
- break;
- case 1:
- done = 1;
- grammarID = 3;
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 2489:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorPackage), END_ELEMENT] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gSensorPackageListType->SensorPackage.arrayLen < v2gSensorPackageListType_SensorPackage_ARRAY_SIZE) {
- errn = decode_v2gSensorPackageType(stream, &v2gSensorPackageListType->SensorPackage.array[v2gSensorPackageListType->SensorPackage.arrayLen++]);
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- grammarID = 2490;
- break;
- case 1:
- done = 1;
- grammarID = 3;
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 2490:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorPackage), END_ELEMENT] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gSensorPackageListType->SensorPackage.arrayLen < v2gSensorPackageListType_SensorPackage_ARRAY_SIZE) {
- errn = decode_v2gSensorPackageType(stream, &v2gSensorPackageListType->SensorPackage.array[v2gSensorPackageListType->SensorPackage.arrayLen++]);
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- grammarID = 2491;
- break;
- case 1:
- done = 1;
- grammarID = 3;
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 2491:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorPackage), END_ELEMENT] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gSensorPackageListType->SensorPackage.arrayLen < v2gSensorPackageListType_SensorPackage_ARRAY_SIZE) {
- errn = decode_v2gSensorPackageType(stream, &v2gSensorPackageListType->SensorPackage.array[v2gSensorPackageListType->SensorPackage.arrayLen++]);
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- grammarID = 2492;
- break;
- case 1:
- done = 1;
- grammarID = 3;
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 2492:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorPackage), END_ELEMENT] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gSensorPackageListType->SensorPackage.arrayLen < v2gSensorPackageListType_SensorPackage_ARRAY_SIZE) {
- errn = decode_v2gSensorPackageType(stream, &v2gSensorPackageListType->SensorPackage.array[v2gSensorPackageListType->SensorPackage.arrayLen++]);
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- grammarID = 2493;
- break;
- case 1:
- done = 1;
- grammarID = 3;
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 2493:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorPackage), END_ELEMENT] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gSensorPackageListType->SensorPackage.arrayLen < v2gSensorPackageListType_SensorPackage_ARRAY_SIZE) {
- errn = decode_v2gSensorPackageType(stream, &v2gSensorPackageListType->SensorPackage.array[v2gSensorPackageListType->SensorPackage.arrayLen++]);
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- grammarID = 2494;
- break;
- case 1:
- done = 1;
- grammarID = 3;
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 2494:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorPackage), END_ELEMENT] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gSensorPackageListType->SensorPackage.arrayLen < v2gSensorPackageListType_SensorPackage_ARRAY_SIZE) {
- errn = decode_v2gSensorPackageType(stream, &v2gSensorPackageListType->SensorPackage.array[v2gSensorPackageListType->SensorPackage.arrayLen++]);
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- grammarID = 2495;
- break;
- case 1:
- done = 1;
- grammarID = 3;
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 2495:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorPackage), END_ELEMENT] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gSensorPackageListType->SensorPackage.arrayLen < v2gSensorPackageListType_SensorPackage_ARRAY_SIZE) {
- errn = decode_v2gSensorPackageType(stream, &v2gSensorPackageListType->SensorPackage.array[v2gSensorPackageListType->SensorPackage.arrayLen++]);
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- grammarID = 2496;
- break;
- case 1:
- done = 1;
- grammarID = 3;
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 2496:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorPackage), END_ELEMENT] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gSensorPackageListType->SensorPackage.arrayLen < v2gSensorPackageListType_SensorPackage_ARRAY_SIZE) {
- errn = decode_v2gSensorPackageType(stream, &v2gSensorPackageListType->SensorPackage.array[v2gSensorPackageListType->SensorPackage.arrayLen++]);
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- grammarID = 2497;
- break;
- case 1:
- done = 1;
- grammarID = 3;
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 2497:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorPackage), END_ELEMENT] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gSensorPackageListType->SensorPackage.arrayLen < v2gSensorPackageListType_SensorPackage_ARRAY_SIZE) {
- errn = decode_v2gSensorPackageType(stream, &v2gSensorPackageListType->SensorPackage.array[v2gSensorPackageListType->SensorPackage.arrayLen++]);
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- grammarID = 2498;
- break;
- case 1:
- done = 1;
- grammarID = 3;
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 2498:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorPackage), END_ELEMENT] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gSensorPackageListType->SensorPackage.arrayLen < v2gSensorPackageListType_SensorPackage_ARRAY_SIZE) {
- errn = decode_v2gSensorPackageType(stream, &v2gSensorPackageListType->SensorPackage.array[v2gSensorPackageListType->SensorPackage.arrayLen++]);
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- grammarID = 2499;
- break;
- case 1:
- done = 1;
- grammarID = 3;
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 2499:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorPackage), END_ELEMENT] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gSensorPackageListType->SensorPackage.arrayLen < v2gSensorPackageListType_SensorPackage_ARRAY_SIZE) {
- errn = decode_v2gSensorPackageType(stream, &v2gSensorPackageListType->SensorPackage.array[v2gSensorPackageListType->SensorPackage.arrayLen++]);
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- grammarID = 2500;
- break;
- case 1:
- done = 1;
- grammarID = 3;
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 2500:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorPackage), END_ELEMENT] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gSensorPackageListType->SensorPackage.arrayLen < v2gSensorPackageListType_SensorPackage_ARRAY_SIZE) {
- errn = decode_v2gSensorPackageType(stream, &v2gSensorPackageListType->SensorPackage.array[v2gSensorPackageListType->SensorPackage.arrayLen++]);
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- grammarID = 2501;
- break;
- case 1:
- done = 1;
- grammarID = 3;
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 2501:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorPackage), END_ELEMENT] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gSensorPackageListType->SensorPackage.arrayLen < v2gSensorPackageListType_SensorPackage_ARRAY_SIZE) {
- errn = decode_v2gSensorPackageType(stream, &v2gSensorPackageListType->SensorPackage.array[v2gSensorPackageListType->SensorPackage.arrayLen++]);
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- grammarID = 2502;
- break;
- case 1:
- done = 1;
- grammarID = 3;
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 2502:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorPackage), END_ELEMENT] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gSensorPackageListType->SensorPackage.arrayLen < v2gSensorPackageListType_SensorPackage_ARRAY_SIZE) {
- errn = decode_v2gSensorPackageType(stream, &v2gSensorPackageListType->SensorPackage.array[v2gSensorPackageListType->SensorPackage.arrayLen++]);
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- grammarID = 2503;
- break;
- case 1:
- done = 1;
- grammarID = 3;
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 2503:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorPackage), END_ELEMENT] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gSensorPackageListType->SensorPackage.arrayLen < v2gSensorPackageListType_SensorPackage_ARRAY_SIZE) {
- errn = decode_v2gSensorPackageType(stream, &v2gSensorPackageListType->SensorPackage.array[v2gSensorPackageListType->SensorPackage.arrayLen++]);
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- grammarID = 2504;
- break;
- case 1:
- done = 1;
- grammarID = 3;
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 2504:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorPackage), END_ELEMENT] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gSensorPackageListType->SensorPackage.arrayLen < v2gSensorPackageListType_SensorPackage_ARRAY_SIZE) {
- errn = decode_v2gSensorPackageType(stream, &v2gSensorPackageListType->SensorPackage.array[v2gSensorPackageListType->SensorPackage.arrayLen++]);
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- grammarID = 2505;
- break;
- case 1:
- done = 1;
- grammarID = 3;
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 2505:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorPackage), END_ELEMENT] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gSensorPackageListType->SensorPackage.arrayLen < v2gSensorPackageListType_SensorPackage_ARRAY_SIZE) {
- errn = decode_v2gSensorPackageType(stream, &v2gSensorPackageListType->SensorPackage.array[v2gSensorPackageListType->SensorPackage.arrayLen++]);
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- grammarID = 2506;
- break;
- case 1:
- done = 1;
- grammarID = 3;
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 2506:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorPackage), END_ELEMENT] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gSensorPackageListType->SensorPackage.arrayLen < v2gSensorPackageListType_SensorPackage_ARRAY_SIZE) {
- errn = decode_v2gSensorPackageType(stream, &v2gSensorPackageListType->SensorPackage.array[v2gSensorPackageListType->SensorPackage.arrayLen++]);
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- grammarID = 2507;
- break;
- case 1:
- done = 1;
- grammarID = 3;
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 2507:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorPackage), END_ELEMENT] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gSensorPackageListType->SensorPackage.arrayLen < v2gSensorPackageListType_SensorPackage_ARRAY_SIZE) {
- errn = decode_v2gSensorPackageType(stream, &v2gSensorPackageListType->SensorPackage.array[v2gSensorPackageListType->SensorPackage.arrayLen++]);
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- grammarID = 2508;
- break;
- case 1:
- done = 1;
- grammarID = 3;
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 2508:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorPackage), END_ELEMENT] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gSensorPackageListType->SensorPackage.arrayLen < v2gSensorPackageListType_SensorPackage_ARRAY_SIZE) {
- errn = decode_v2gSensorPackageType(stream, &v2gSensorPackageListType->SensorPackage.array[v2gSensorPackageListType->SensorPackage.arrayLen++]);
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- grammarID = 2509;
- break;
- case 1:
- done = 1;
- grammarID = 3;
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 2509:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorPackage), END_ELEMENT] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gSensorPackageListType->SensorPackage.arrayLen < v2gSensorPackageListType_SensorPackage_ARRAY_SIZE) {
- errn = decode_v2gSensorPackageType(stream, &v2gSensorPackageListType->SensorPackage.array[v2gSensorPackageListType->SensorPackage.arrayLen++]);
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- grammarID = 2510;
- break;
- case 1:
- done = 1;
- grammarID = 3;
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 2510:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorPackage), END_ELEMENT] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gSensorPackageListType->SensorPackage.arrayLen < v2gSensorPackageListType_SensorPackage_ARRAY_SIZE) {
- errn = decode_v2gSensorPackageType(stream, &v2gSensorPackageListType->SensorPackage.array[v2gSensorPackageListType->SensorPackage.arrayLen++]);
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- grammarID = 2511;
- break;
- case 1:
- done = 1;
- grammarID = 3;
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 2511:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorPackage), END_ELEMENT] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gSensorPackageListType->SensorPackage.arrayLen < v2gSensorPackageListType_SensorPackage_ARRAY_SIZE) {
- errn = decode_v2gSensorPackageType(stream, &v2gSensorPackageListType->SensorPackage.array[v2gSensorPackageListType->SensorPackage.arrayLen++]);
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- grammarID = 2512;
- break;
- case 1:
- done = 1;
- grammarID = 3;
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 2512:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorPackage), END_ELEMENT] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gSensorPackageListType->SensorPackage.arrayLen < v2gSensorPackageListType_SensorPackage_ARRAY_SIZE) {
- errn = decode_v2gSensorPackageType(stream, &v2gSensorPackageListType->SensorPackage.array[v2gSensorPackageListType->SensorPackage.arrayLen++]);
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- grammarID = 2513;
- break;
- case 1:
- done = 1;
- grammarID = 3;
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 2513:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorPackage), END_ELEMENT] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gSensorPackageListType->SensorPackage.arrayLen < v2gSensorPackageListType_SensorPackage_ARRAY_SIZE) {
- errn = decode_v2gSensorPackageType(stream, &v2gSensorPackageListType->SensorPackage.array[v2gSensorPackageListType->SensorPackage.arrayLen++]);
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- grammarID = 2514;
- break;
- case 1:
- done = 1;
- grammarID = 3;
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 2514:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorPackage), END_ELEMENT] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gSensorPackageListType->SensorPackage.arrayLen < v2gSensorPackageListType_SensorPackage_ARRAY_SIZE) {
- errn = decode_v2gSensorPackageType(stream, &v2gSensorPackageListType->SensorPackage.array[v2gSensorPackageListType->SensorPackage.arrayLen++]);
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- grammarID = 2515;
- break;
- case 1:
- done = 1;
- grammarID = 3;
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 2515:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorPackage), END_ELEMENT] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gSensorPackageListType->SensorPackage.arrayLen < v2gSensorPackageListType_SensorPackage_ARRAY_SIZE) {
- errn = decode_v2gSensorPackageType(stream, &v2gSensorPackageListType->SensorPackage.array[v2gSensorPackageListType->SensorPackage.arrayLen++]);
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- grammarID = 2516;
- break;
- case 1:
- done = 1;
- grammarID = 3;
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 2516:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorPackage), END_ELEMENT] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gSensorPackageListType->SensorPackage.arrayLen < v2gSensorPackageListType_SensorPackage_ARRAY_SIZE) {
- errn = decode_v2gSensorPackageType(stream, &v2gSensorPackageListType->SensorPackage.array[v2gSensorPackageListType->SensorPackage.arrayLen++]);
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- grammarID = 2517;
- break;
- case 1:
- done = 1;
- grammarID = 3;
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 2517:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorPackage), END_ELEMENT] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gSensorPackageListType->SensorPackage.arrayLen < v2gSensorPackageListType_SensorPackage_ARRAY_SIZE) {
- errn = decode_v2gSensorPackageType(stream, &v2gSensorPackageListType->SensorPackage.array[v2gSensorPackageListType->SensorPackage.arrayLen++]);
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- grammarID = 2518;
- break;
- case 1:
- done = 1;
- grammarID = 3;
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 2518:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorPackage), END_ELEMENT] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gSensorPackageListType->SensorPackage.arrayLen < v2gSensorPackageListType_SensorPackage_ARRAY_SIZE) {
- errn = decode_v2gSensorPackageType(stream, &v2gSensorPackageListType->SensorPackage.array[v2gSensorPackageListType->SensorPackage.arrayLen++]);
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- grammarID = 2519;
- break;
- case 1:
- done = 1;
- grammarID = 3;
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 2519:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorPackage), END_ELEMENT] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gSensorPackageListType->SensorPackage.arrayLen < v2gSensorPackageListType_SensorPackage_ARRAY_SIZE) {
- errn = decode_v2gSensorPackageType(stream, &v2gSensorPackageListType->SensorPackage.array[v2gSensorPackageListType->SensorPackage.arrayLen++]);
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- grammarID = 2520;
- break;
- case 1:
- done = 1;
- grammarID = 3;
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 2520:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorPackage), END_ELEMENT] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gSensorPackageListType->SensorPackage.arrayLen < v2gSensorPackageListType_SensorPackage_ARRAY_SIZE) {
- errn = decode_v2gSensorPackageType(stream, &v2gSensorPackageListType->SensorPackage.array[v2gSensorPackageListType->SensorPackage.arrayLen++]);
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- grammarID = 2521;
- break;
- case 1:
- done = 1;
- grammarID = 3;
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 2521:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorPackage), END_ELEMENT] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gSensorPackageListType->SensorPackage.arrayLen < v2gSensorPackageListType_SensorPackage_ARRAY_SIZE) {
- errn = decode_v2gSensorPackageType(stream, &v2gSensorPackageListType->SensorPackage.array[v2gSensorPackageListType->SensorPackage.arrayLen++]);
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- grammarID = 2522;
- break;
- case 1:
- done = 1;
- grammarID = 3;
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 2522:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorPackage), END_ELEMENT] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gSensorPackageListType->SensorPackage.arrayLen < v2gSensorPackageListType_SensorPackage_ARRAY_SIZE) {
- errn = decode_v2gSensorPackageType(stream, &v2gSensorPackageListType->SensorPackage.array[v2gSensorPackageListType->SensorPackage.arrayLen++]);
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- grammarID = 2523;
- break;
- case 1:
- done = 1;
- grammarID = 3;
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 2523:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorPackage), END_ELEMENT] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gSensorPackageListType->SensorPackage.arrayLen < v2gSensorPackageListType_SensorPackage_ARRAY_SIZE) {
- errn = decode_v2gSensorPackageType(stream, &v2gSensorPackageListType->SensorPackage.array[v2gSensorPackageListType->SensorPackage.arrayLen++]);
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- grammarID = 2524;
- break;
- case 1:
- done = 1;
- grammarID = 3;
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 2524:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorPackage), END_ELEMENT] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gSensorPackageListType->SensorPackage.arrayLen < v2gSensorPackageListType_SensorPackage_ARRAY_SIZE) {
- errn = decode_v2gSensorPackageType(stream, &v2gSensorPackageListType->SensorPackage.array[v2gSensorPackageListType->SensorPackage.arrayLen++]);
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- grammarID = 2525;
- break;
- case 1:
- done = 1;
- grammarID = 3;
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 2525:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorPackage), END_ELEMENT] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gSensorPackageListType->SensorPackage.arrayLen < v2gSensorPackageListType_SensorPackage_ARRAY_SIZE) {
- errn = decode_v2gSensorPackageType(stream, &v2gSensorPackageListType->SensorPackage.array[v2gSensorPackageListType->SensorPackage.arrayLen++]);
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- grammarID = 2526;
- break;
- case 1:
- done = 1;
- grammarID = 3;
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 2526:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorPackage), END_ELEMENT] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gSensorPackageListType->SensorPackage.arrayLen < v2gSensorPackageListType_SensorPackage_ARRAY_SIZE) {
- errn = decode_v2gSensorPackageType(stream, &v2gSensorPackageListType->SensorPackage.array[v2gSensorPackageListType->SensorPackage.arrayLen++]);
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- grammarID = 2527;
- break;
- case 1:
- done = 1;
- grammarID = 3;
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 2527:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorPackage), END_ELEMENT] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gSensorPackageListType->SensorPackage.arrayLen < v2gSensorPackageListType_SensorPackage_ARRAY_SIZE) {
- errn = decode_v2gSensorPackageType(stream, &v2gSensorPackageListType->SensorPackage.array[v2gSensorPackageListType->SensorPackage.arrayLen++]);
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- grammarID = 2528;
- break;
- case 1:
- done = 1;
- grammarID = 3;
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 2528:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorPackage), END_ELEMENT] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gSensorPackageListType->SensorPackage.arrayLen < v2gSensorPackageListType_SensorPackage_ARRAY_SIZE) {
- errn = decode_v2gSensorPackageType(stream, &v2gSensorPackageListType->SensorPackage.array[v2gSensorPackageListType->SensorPackage.arrayLen++]);
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- grammarID = 2529;
- break;
- case 1:
- done = 1;
- grammarID = 3;
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 2529:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorPackage), END_ELEMENT] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gSensorPackageListType->SensorPackage.arrayLen < v2gSensorPackageListType_SensorPackage_ARRAY_SIZE) {
- errn = decode_v2gSensorPackageType(stream, &v2gSensorPackageListType->SensorPackage.array[v2gSensorPackageListType->SensorPackage.arrayLen++]);
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- grammarID = 2530;
- break;
- case 1:
- done = 1;
- grammarID = 3;
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 2530:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorPackage), END_ELEMENT] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gSensorPackageListType->SensorPackage.arrayLen < v2gSensorPackageListType_SensorPackage_ARRAY_SIZE) {
- errn = decode_v2gSensorPackageType(stream, &v2gSensorPackageListType->SensorPackage.array[v2gSensorPackageListType->SensorPackage.arrayLen++]);
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- grammarID = 2531;
- break;
- case 1:
- done = 1;
- grammarID = 3;
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 2531:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorPackage), END_ELEMENT] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gSensorPackageListType->SensorPackage.arrayLen < v2gSensorPackageListType_SensorPackage_ARRAY_SIZE) {
- errn = decode_v2gSensorPackageType(stream, &v2gSensorPackageListType->SensorPackage.array[v2gSensorPackageListType->SensorPackage.arrayLen++]);
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- grammarID = 2532;
- break;
- case 1:
- done = 1;
- grammarID = 3;
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 2532:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorPackage), END_ELEMENT] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gSensorPackageListType->SensorPackage.arrayLen < v2gSensorPackageListType_SensorPackage_ARRAY_SIZE) {
- errn = decode_v2gSensorPackageType(stream, &v2gSensorPackageListType->SensorPackage.array[v2gSensorPackageListType->SensorPackage.arrayLen++]);
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- grammarID = 2533;
- break;
- case 1:
- done = 1;
- grammarID = 3;
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 2533:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorPackage), END_ELEMENT] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gSensorPackageListType->SensorPackage.arrayLen < v2gSensorPackageListType_SensorPackage_ARRAY_SIZE) {
- errn = decode_v2gSensorPackageType(stream, &v2gSensorPackageListType->SensorPackage.array[v2gSensorPackageListType->SensorPackage.arrayLen++]);
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- grammarID = 2534;
- break;
- case 1:
- done = 1;
- grammarID = 3;
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 2534:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorPackage), END_ELEMENT] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gSensorPackageListType->SensorPackage.arrayLen < v2gSensorPackageListType_SensorPackage_ARRAY_SIZE) {
- errn = decode_v2gSensorPackageType(stream, &v2gSensorPackageListType->SensorPackage.array[v2gSensorPackageListType->SensorPackage.arrayLen++]);
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- grammarID = 2535;
- break;
- case 1:
- done = 1;
- grammarID = 3;
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 2535:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorPackage), END_ELEMENT] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gSensorPackageListType->SensorPackage.arrayLen < v2gSensorPackageListType_SensorPackage_ARRAY_SIZE) {
- errn = decode_v2gSensorPackageType(stream, &v2gSensorPackageListType->SensorPackage.array[v2gSensorPackageListType->SensorPackage.arrayLen++]);
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- grammarID = 2536;
- break;
- case 1:
- done = 1;
- grammarID = 3;
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 2536:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorPackage), END_ELEMENT] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gSensorPackageListType->SensorPackage.arrayLen < v2gSensorPackageListType_SensorPackage_ARRAY_SIZE) {
- errn = decode_v2gSensorPackageType(stream, &v2gSensorPackageListType->SensorPackage.array[v2gSensorPackageListType->SensorPackage.arrayLen++]);
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- grammarID = 2537;
- break;
- case 1:
- done = 1;
- grammarID = 3;
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 2537:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorPackage), END_ELEMENT] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gSensorPackageListType->SensorPackage.arrayLen < v2gSensorPackageListType_SensorPackage_ARRAY_SIZE) {
- errn = decode_v2gSensorPackageType(stream, &v2gSensorPackageListType->SensorPackage.array[v2gSensorPackageListType->SensorPackage.arrayLen++]);
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- grammarID = 2538;
- break;
- case 1:
- done = 1;
- grammarID = 3;
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 2538:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorPackage), END_ELEMENT] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gSensorPackageListType->SensorPackage.arrayLen < v2gSensorPackageListType_SensorPackage_ARRAY_SIZE) {
- errn = decode_v2gSensorPackageType(stream, &v2gSensorPackageListType->SensorPackage.array[v2gSensorPackageListType->SensorPackage.arrayLen++]);
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- grammarID = 2539;
- break;
- case 1:
- done = 1;
- grammarID = 3;
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 2539:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorPackage), END_ELEMENT] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gSensorPackageListType->SensorPackage.arrayLen < v2gSensorPackageListType_SensorPackage_ARRAY_SIZE) {
- errn = decode_v2gSensorPackageType(stream, &v2gSensorPackageListType->SensorPackage.array[v2gSensorPackageListType->SensorPackage.arrayLen++]);
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- grammarID = 2540;
- break;
- case 1:
- done = 1;
- grammarID = 3;
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 2540:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorPackage), END_ELEMENT] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gSensorPackageListType->SensorPackage.arrayLen < v2gSensorPackageListType_SensorPackage_ARRAY_SIZE) {
- errn = decode_v2gSensorPackageType(stream, &v2gSensorPackageListType->SensorPackage.array[v2gSensorPackageListType->SensorPackage.arrayLen++]);
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- grammarID = 2541;
- break;
- case 1:
- done = 1;
- grammarID = 3;
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 2541:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorPackage), END_ELEMENT] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gSensorPackageListType->SensorPackage.arrayLen < v2gSensorPackageListType_SensorPackage_ARRAY_SIZE) {
- errn = decode_v2gSensorPackageType(stream, &v2gSensorPackageListType->SensorPackage.array[v2gSensorPackageListType->SensorPackage.arrayLen++]);
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- grammarID = 2542;
- break;
- case 1:
- done = 1;
- grammarID = 3;
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 2542:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorPackage), END_ELEMENT] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gSensorPackageListType->SensorPackage.arrayLen < v2gSensorPackageListType_SensorPackage_ARRAY_SIZE) {
- errn = decode_v2gSensorPackageType(stream, &v2gSensorPackageListType->SensorPackage.array[v2gSensorPackageListType->SensorPackage.arrayLen++]);
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- grammarID = 2543;
- break;
- case 1:
- done = 1;
- grammarID = 3;
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 2543:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorPackage), END_ELEMENT] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gSensorPackageListType->SensorPackage.arrayLen < v2gSensorPackageListType_SensorPackage_ARRAY_SIZE) {
- errn = decode_v2gSensorPackageType(stream, &v2gSensorPackageListType->SensorPackage.array[v2gSensorPackageListType->SensorPackage.arrayLen++]);
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- grammarID = 2544;
- break;
- case 1:
- done = 1;
- grammarID = 3;
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 2544:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorPackage), END_ELEMENT] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gSensorPackageListType->SensorPackage.arrayLen < v2gSensorPackageListType_SensorPackage_ARRAY_SIZE) {
- errn = decode_v2gSensorPackageType(stream, &v2gSensorPackageListType->SensorPackage.array[v2gSensorPackageListType->SensorPackage.arrayLen++]);
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- grammarID = 2545;
- break;
- case 1:
- done = 1;
- grammarID = 3;
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 2545:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorPackage), END_ELEMENT] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gSensorPackageListType->SensorPackage.arrayLen < v2gSensorPackageListType_SensorPackage_ARRAY_SIZE) {
- errn = decode_v2gSensorPackageType(stream, &v2gSensorPackageListType->SensorPackage.array[v2gSensorPackageListType->SensorPackage.arrayLen++]);
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- grammarID = 2546;
- break;
- case 1:
- done = 1;
- grammarID = 3;
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 2546:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorPackage), END_ELEMENT] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gSensorPackageListType->SensorPackage.arrayLen < v2gSensorPackageListType_SensorPackage_ARRAY_SIZE) {
- errn = decode_v2gSensorPackageType(stream, &v2gSensorPackageListType->SensorPackage.array[v2gSensorPackageListType->SensorPackage.arrayLen++]);
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- grammarID = 2547;
- break;
- case 1:
- done = 1;
- grammarID = 3;
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 2547:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorPackage), END_ELEMENT] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gSensorPackageListType->SensorPackage.arrayLen < v2gSensorPackageListType_SensorPackage_ARRAY_SIZE) {
- errn = decode_v2gSensorPackageType(stream, &v2gSensorPackageListType->SensorPackage.array[v2gSensorPackageListType->SensorPackage.arrayLen++]);
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- grammarID = 2548;
- break;
- case 1:
- done = 1;
- grammarID = 3;
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 2548:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorPackage), END_ELEMENT] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gSensorPackageListType->SensorPackage.arrayLen < v2gSensorPackageListType_SensorPackage_ARRAY_SIZE) {
- errn = decode_v2gSensorPackageType(stream, &v2gSensorPackageListType->SensorPackage.array[v2gSensorPackageListType->SensorPackage.arrayLen++]);
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- grammarID = 2549;
- break;
- case 1:
- done = 1;
- grammarID = 3;
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 2549:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorPackage), END_ELEMENT] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gSensorPackageListType->SensorPackage.arrayLen < v2gSensorPackageListType_SensorPackage_ARRAY_SIZE) {
- errn = decode_v2gSensorPackageType(stream, &v2gSensorPackageListType->SensorPackage.array[v2gSensorPackageListType->SensorPackage.arrayLen++]);
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- grammarID = 2550;
- break;
- case 1:
- done = 1;
- grammarID = 3;
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 2550:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorPackage), END_ELEMENT] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gSensorPackageListType->SensorPackage.arrayLen < v2gSensorPackageListType_SensorPackage_ARRAY_SIZE) {
- errn = decode_v2gSensorPackageType(stream, &v2gSensorPackageListType->SensorPackage.array[v2gSensorPackageListType->SensorPackage.arrayLen++]);
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- grammarID = 2551;
- break;
- case 1:
- done = 1;
- grammarID = 3;
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 2551:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorPackage), END_ELEMENT] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gSensorPackageListType->SensorPackage.arrayLen < v2gSensorPackageListType_SensorPackage_ARRAY_SIZE) {
- errn = decode_v2gSensorPackageType(stream, &v2gSensorPackageListType->SensorPackage.array[v2gSensorPackageListType->SensorPackage.arrayLen++]);
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- grammarID = 2552;
- break;
- case 1:
- done = 1;
- grammarID = 3;
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 2552:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorPackage), END_ELEMENT] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gSensorPackageListType->SensorPackage.arrayLen < v2gSensorPackageListType_SensorPackage_ARRAY_SIZE) {
- errn = decode_v2gSensorPackageType(stream, &v2gSensorPackageListType->SensorPackage.array[v2gSensorPackageListType->SensorPackage.arrayLen++]);
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- grammarID = 2553;
- break;
- case 1:
- done = 1;
- grammarID = 3;
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 2553:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorPackage), END_ELEMENT] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gSensorPackageListType->SensorPackage.arrayLen < v2gSensorPackageListType_SensorPackage_ARRAY_SIZE) {
- errn = decode_v2gSensorPackageType(stream, &v2gSensorPackageListType->SensorPackage.array[v2gSensorPackageListType->SensorPackage.arrayLen++]);
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- grammarID = 2554;
- break;
- case 1:
- done = 1;
- grammarID = 3;
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 2554:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorPackage), END_ELEMENT] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gSensorPackageListType->SensorPackage.arrayLen < v2gSensorPackageListType_SensorPackage_ARRAY_SIZE) {
- errn = decode_v2gSensorPackageType(stream, &v2gSensorPackageListType->SensorPackage.array[v2gSensorPackageListType->SensorPackage.arrayLen++]);
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- grammarID = 2555;
- break;
- case 1:
- done = 1;
- grammarID = 3;
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 2555:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorPackage), END_ELEMENT] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gSensorPackageListType->SensorPackage.arrayLen < v2gSensorPackageListType_SensorPackage_ARRAY_SIZE) {
- errn = decode_v2gSensorPackageType(stream, &v2gSensorPackageListType->SensorPackage.array[v2gSensorPackageListType->SensorPackage.arrayLen++]);
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- grammarID = 2556;
- break;
- case 1:
- done = 1;
- grammarID = 3;
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 2556:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorPackage), END_ELEMENT] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gSensorPackageListType->SensorPackage.arrayLen < v2gSensorPackageListType_SensorPackage_ARRAY_SIZE) {
- errn = decode_v2gSensorPackageType(stream, &v2gSensorPackageListType->SensorPackage.array[v2gSensorPackageListType->SensorPackage.arrayLen++]);
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- grammarID = 2557;
- break;
- case 1:
- done = 1;
- grammarID = 3;
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 2557:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorPackage), END_ELEMENT] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gSensorPackageListType->SensorPackage.arrayLen < v2gSensorPackageListType_SensorPackage_ARRAY_SIZE) {
- errn = decode_v2gSensorPackageType(stream, &v2gSensorPackageListType->SensorPackage.array[v2gSensorPackageListType->SensorPackage.arrayLen++]);
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- grammarID = 2558;
- break;
- case 1:
- done = 1;
- grammarID = 3;
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 2558:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorPackage), END_ELEMENT] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gSensorPackageListType->SensorPackage.arrayLen < v2gSensorPackageListType_SensorPackage_ARRAY_SIZE) {
- errn = decode_v2gSensorPackageType(stream, &v2gSensorPackageListType->SensorPackage.array[v2gSensorPackageListType->SensorPackage.arrayLen++]);
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- grammarID = 2559;
- break;
- case 1:
- done = 1;
- grammarID = 3;
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 2559:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorPackage), END_ELEMENT] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gSensorPackageListType->SensorPackage.arrayLen < v2gSensorPackageListType_SensorPackage_ARRAY_SIZE) {
- errn = decode_v2gSensorPackageType(stream, &v2gSensorPackageListType->SensorPackage.array[v2gSensorPackageListType->SensorPackage.arrayLen++]);
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- grammarID = 2560;
- break;
- case 1:
- done = 1;
- grammarID = 3;
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 2560:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorPackage), END_ELEMENT] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gSensorPackageListType->SensorPackage.arrayLen < v2gSensorPackageListType_SensorPackage_ARRAY_SIZE) {
- errn = decode_v2gSensorPackageType(stream, &v2gSensorPackageListType->SensorPackage.array[v2gSensorPackageListType->SensorPackage.arrayLen++]);
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- grammarID = 2561;
- break;
- case 1:
- done = 1;
- grammarID = 3;
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 2561:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorPackage), END_ELEMENT] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gSensorPackageListType->SensorPackage.arrayLen < v2gSensorPackageListType_SensorPackage_ARRAY_SIZE) {
- errn = decode_v2gSensorPackageType(stream, &v2gSensorPackageListType->SensorPackage.array[v2gSensorPackageListType->SensorPackage.arrayLen++]);
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- grammarID = 2562;
- break;
- case 1:
- done = 1;
- grammarID = 3;
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 2562:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorPackage), END_ELEMENT] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gSensorPackageListType->SensorPackage.arrayLen < v2gSensorPackageListType_SensorPackage_ARRAY_SIZE) {
- errn = decode_v2gSensorPackageType(stream, &v2gSensorPackageListType->SensorPackage.array[v2gSensorPackageListType->SensorPackage.arrayLen++]);
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- grammarID = 2563;
- break;
- case 1:
- done = 1;
- grammarID = 3;
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 2563:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorPackage), END_ELEMENT] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gSensorPackageListType->SensorPackage.arrayLen < v2gSensorPackageListType_SensorPackage_ARRAY_SIZE) {
- errn = decode_v2gSensorPackageType(stream, &v2gSensorPackageListType->SensorPackage.array[v2gSensorPackageListType->SensorPackage.arrayLen++]);
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- grammarID = 2564;
- break;
- case 1:
- done = 1;
- grammarID = 3;
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 2564:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorPackage), END_ELEMENT] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gSensorPackageListType->SensorPackage.arrayLen < v2gSensorPackageListType_SensorPackage_ARRAY_SIZE) {
- errn = decode_v2gSensorPackageType(stream, &v2gSensorPackageListType->SensorPackage.array[v2gSensorPackageListType->SensorPackage.arrayLen++]);
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- grammarID = 2565;
- break;
- case 1:
- done = 1;
- grammarID = 3;
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 2565:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorPackage), END_ELEMENT] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gSensorPackageListType->SensorPackage.arrayLen < v2gSensorPackageListType_SensorPackage_ARRAY_SIZE) {
- errn = decode_v2gSensorPackageType(stream, &v2gSensorPackageListType->SensorPackage.array[v2gSensorPackageListType->SensorPackage.arrayLen++]);
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- grammarID = 2566;
- break;
- case 1:
- done = 1;
- grammarID = 3;
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 2566:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorPackage), END_ELEMENT] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gSensorPackageListType->SensorPackage.arrayLen < v2gSensorPackageListType_SensorPackage_ARRAY_SIZE) {
- errn = decode_v2gSensorPackageType(stream, &v2gSensorPackageListType->SensorPackage.array[v2gSensorPackageListType->SensorPackage.arrayLen++]);
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- grammarID = 2567;
- break;
- case 1:
- done = 1;
- grammarID = 3;
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 2567:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorPackage), END_ELEMENT] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gSensorPackageListType->SensorPackage.arrayLen < v2gSensorPackageListType_SensorPackage_ARRAY_SIZE) {
- errn = decode_v2gSensorPackageType(stream, &v2gSensorPackageListType->SensorPackage.array[v2gSensorPackageListType->SensorPackage.arrayLen++]);
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- grammarID = 2568;
- break;
- case 1:
- done = 1;
- grammarID = 3;
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 2568:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorPackage), END_ELEMENT] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gSensorPackageListType->SensorPackage.arrayLen < v2gSensorPackageListType_SensorPackage_ARRAY_SIZE) {
- errn = decode_v2gSensorPackageType(stream, &v2gSensorPackageListType->SensorPackage.array[v2gSensorPackageListType->SensorPackage.arrayLen++]);
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- grammarID = 2569;
- break;
- case 1:
- done = 1;
- grammarID = 3;
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 2569:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorPackage), END_ELEMENT] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gSensorPackageListType->SensorPackage.arrayLen < v2gSensorPackageListType_SensorPackage_ARRAY_SIZE) {
- errn = decode_v2gSensorPackageType(stream, &v2gSensorPackageListType->SensorPackage.array[v2gSensorPackageListType->SensorPackage.arrayLen++]);
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- grammarID = 2570;
- break;
- case 1:
- done = 1;
- grammarID = 3;
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 2570:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorPackage), END_ELEMENT] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gSensorPackageListType->SensorPackage.arrayLen < v2gSensorPackageListType_SensorPackage_ARRAY_SIZE) {
- errn = decode_v2gSensorPackageType(stream, &v2gSensorPackageListType->SensorPackage.array[v2gSensorPackageListType->SensorPackage.arrayLen++]);
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- grammarID = 2571;
- break;
- case 1:
- done = 1;
- grammarID = 3;
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 2571:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorPackage), END_ELEMENT] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gSensorPackageListType->SensorPackage.arrayLen < v2gSensorPackageListType_SensorPackage_ARRAY_SIZE) {
- errn = decode_v2gSensorPackageType(stream, &v2gSensorPackageListType->SensorPackage.array[v2gSensorPackageListType->SensorPackage.arrayLen++]);
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- grammarID = 2572;
- break;
- case 1:
- done = 1;
- grammarID = 3;
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 2572:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorPackage), END_ELEMENT] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gSensorPackageListType->SensorPackage.arrayLen < v2gSensorPackageListType_SensorPackage_ARRAY_SIZE) {
- errn = decode_v2gSensorPackageType(stream, &v2gSensorPackageListType->SensorPackage.array[v2gSensorPackageListType->SensorPackage.arrayLen++]);
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- grammarID = 2573;
- break;
- case 1:
- done = 1;
- grammarID = 3;
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 2573:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorPackage), END_ELEMENT] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gSensorPackageListType->SensorPackage.arrayLen < v2gSensorPackageListType_SensorPackage_ARRAY_SIZE) {
- errn = decode_v2gSensorPackageType(stream, &v2gSensorPackageListType->SensorPackage.array[v2gSensorPackageListType->SensorPackage.arrayLen++]);
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- grammarID = 2574;
- break;
- case 1:
- done = 1;
- grammarID = 3;
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 2574:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorPackage), END_ELEMENT] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gSensorPackageListType->SensorPackage.arrayLen < v2gSensorPackageListType_SensorPackage_ARRAY_SIZE) {
- errn = decode_v2gSensorPackageType(stream, &v2gSensorPackageListType->SensorPackage.array[v2gSensorPackageListType->SensorPackage.arrayLen++]);
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- grammarID = 2575;
- break;
- case 1:
- done = 1;
- grammarID = 3;
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 2575:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorPackage), END_ELEMENT] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gSensorPackageListType->SensorPackage.arrayLen < v2gSensorPackageListType_SensorPackage_ARRAY_SIZE) {
- errn = decode_v2gSensorPackageType(stream, &v2gSensorPackageListType->SensorPackage.array[v2gSensorPackageListType->SensorPackage.arrayLen++]);
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- grammarID = 2576;
- break;
- case 1:
- done = 1;
- grammarID = 3;
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 2576:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorPackage), END_ELEMENT] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gSensorPackageListType->SensorPackage.arrayLen < v2gSensorPackageListType_SensorPackage_ARRAY_SIZE) {
- errn = decode_v2gSensorPackageType(stream, &v2gSensorPackageListType->SensorPackage.array[v2gSensorPackageListType->SensorPackage.arrayLen++]);
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- grammarID = 2577;
- break;
- case 1:
- done = 1;
- grammarID = 3;
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 2577:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorPackage), END_ELEMENT] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gSensorPackageListType->SensorPackage.arrayLen < v2gSensorPackageListType_SensorPackage_ARRAY_SIZE) {
- errn = decode_v2gSensorPackageType(stream, &v2gSensorPackageListType->SensorPackage.array[v2gSensorPackageListType->SensorPackage.arrayLen++]);
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- grammarID = 2578;
- break;
- case 1:
- done = 1;
- grammarID = 3;
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 2578:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorPackage), END_ELEMENT] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gSensorPackageListType->SensorPackage.arrayLen < v2gSensorPackageListType_SensorPackage_ARRAY_SIZE) {
- errn = decode_v2gSensorPackageType(stream, &v2gSensorPackageListType->SensorPackage.array[v2gSensorPackageListType->SensorPackage.arrayLen++]);
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- grammarID = 2579;
- break;
- case 1:
- done = 1;
- grammarID = 3;
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 2579:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorPackage), END_ELEMENT] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gSensorPackageListType->SensorPackage.arrayLen < v2gSensorPackageListType_SensorPackage_ARRAY_SIZE) {
- errn = decode_v2gSensorPackageType(stream, &v2gSensorPackageListType->SensorPackage.array[v2gSensorPackageListType->SensorPackage.arrayLen++]);
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- grammarID = 2580;
- break;
- case 1:
- done = 1;
- grammarID = 3;
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 2580:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorPackage), END_ELEMENT] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gSensorPackageListType->SensorPackage.arrayLen < v2gSensorPackageListType_SensorPackage_ARRAY_SIZE) {
- errn = decode_v2gSensorPackageType(stream, &v2gSensorPackageListType->SensorPackage.array[v2gSensorPackageListType->SensorPackage.arrayLen++]);
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- grammarID = 2581;
- break;
- case 1:
- done = 1;
- grammarID = 3;
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 2581:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorPackage), END_ELEMENT] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gSensorPackageListType->SensorPackage.arrayLen < v2gSensorPackageListType_SensorPackage_ARRAY_SIZE) {
- errn = decode_v2gSensorPackageType(stream, &v2gSensorPackageListType->SensorPackage.array[v2gSensorPackageListType->SensorPackage.arrayLen++]);
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- grammarID = 2582;
- break;
- case 1:
- done = 1;
- grammarID = 3;
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 2582:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorPackage), END_ELEMENT] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gSensorPackageListType->SensorPackage.arrayLen < v2gSensorPackageListType_SensorPackage_ARRAY_SIZE) {
- errn = decode_v2gSensorPackageType(stream, &v2gSensorPackageListType->SensorPackage.array[v2gSensorPackageListType->SensorPackage.arrayLen++]);
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- grammarID = 2583;
- break;
- case 1:
- done = 1;
- grammarID = 3;
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 2583:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorPackage), END_ELEMENT] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gSensorPackageListType->SensorPackage.arrayLen < v2gSensorPackageListType_SensorPackage_ARRAY_SIZE) {
- errn = decode_v2gSensorPackageType(stream, &v2gSensorPackageListType->SensorPackage.array[v2gSensorPackageListType->SensorPackage.arrayLen++]);
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- grammarID = 2584;
- break;
- case 1:
- done = 1;
- grammarID = 3;
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 2584:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorPackage), END_ELEMENT] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gSensorPackageListType->SensorPackage.arrayLen < v2gSensorPackageListType_SensorPackage_ARRAY_SIZE) {
- errn = decode_v2gSensorPackageType(stream, &v2gSensorPackageListType->SensorPackage.array[v2gSensorPackageListType->SensorPackage.arrayLen++]);
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- grammarID = 2585;
- break;
- case 1:
- done = 1;
- grammarID = 3;
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 2585:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorPackage), END_ELEMENT] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gSensorPackageListType->SensorPackage.arrayLen < v2gSensorPackageListType_SensorPackage_ARRAY_SIZE) {
- errn = decode_v2gSensorPackageType(stream, &v2gSensorPackageListType->SensorPackage.array[v2gSensorPackageListType->SensorPackage.arrayLen++]);
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- grammarID = 2586;
- break;
- case 1:
- done = 1;
- grammarID = 3;
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 2586:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorPackage), END_ELEMENT] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gSensorPackageListType->SensorPackage.arrayLen < v2gSensorPackageListType_SensorPackage_ARRAY_SIZE) {
- errn = decode_v2gSensorPackageType(stream, &v2gSensorPackageListType->SensorPackage.array[v2gSensorPackageListType->SensorPackage.arrayLen++]);
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- grammarID = 2587;
- break;
- case 1:
- done = 1;
- grammarID = 3;
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 2587:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorPackage), END_ELEMENT] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gSensorPackageListType->SensorPackage.arrayLen < v2gSensorPackageListType_SensorPackage_ARRAY_SIZE) {
- errn = decode_v2gSensorPackageType(stream, &v2gSensorPackageListType->SensorPackage.array[v2gSensorPackageListType->SensorPackage.arrayLen++]);
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- grammarID = 2588;
- break;
- case 1:
- done = 1;
- grammarID = 3;
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 2588:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorPackage), END_ELEMENT] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gSensorPackageListType->SensorPackage.arrayLen < v2gSensorPackageListType_SensorPackage_ARRAY_SIZE) {
- errn = decode_v2gSensorPackageType(stream, &v2gSensorPackageListType->SensorPackage.array[v2gSensorPackageListType->SensorPackage.arrayLen++]);
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- grammarID = 2589;
- break;
- case 1:
- done = 1;
- grammarID = 3;
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 2589:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorPackage), END_ELEMENT] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gSensorPackageListType->SensorPackage.arrayLen < v2gSensorPackageListType_SensorPackage_ARRAY_SIZE) {
- errn = decode_v2gSensorPackageType(stream, &v2gSensorPackageListType->SensorPackage.array[v2gSensorPackageListType->SensorPackage.arrayLen++]);
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- grammarID = 2590;
- break;
- case 1:
- done = 1;
- grammarID = 3;
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 2590:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorPackage), END_ELEMENT] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gSensorPackageListType->SensorPackage.arrayLen < v2gSensorPackageListType_SensorPackage_ARRAY_SIZE) {
- errn = decode_v2gSensorPackageType(stream, &v2gSensorPackageListType->SensorPackage.array[v2gSensorPackageListType->SensorPackage.arrayLen++]);
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- grammarID = 2591;
- break;
- case 1:
- done = 1;
- grammarID = 3;
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 2591:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorPackage), END_ELEMENT] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gSensorPackageListType->SensorPackage.arrayLen < v2gSensorPackageListType_SensorPackage_ARRAY_SIZE) {
- errn = decode_v2gSensorPackageType(stream, &v2gSensorPackageListType->SensorPackage.array[v2gSensorPackageListType->SensorPackage.arrayLen++]);
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- grammarID = 2592;
- break;
- case 1:
- done = 1;
- grammarID = 3;
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 2592:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorPackage), END_ELEMENT] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gSensorPackageListType->SensorPackage.arrayLen < v2gSensorPackageListType_SensorPackage_ARRAY_SIZE) {
- errn = decode_v2gSensorPackageType(stream, &v2gSensorPackageListType->SensorPackage.array[v2gSensorPackageListType->SensorPackage.arrayLen++]);
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- grammarID = 2593;
- break;
- case 1:
- done = 1;
- grammarID = 3;
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 2593:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorPackage), END_ELEMENT] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gSensorPackageListType->SensorPackage.arrayLen < v2gSensorPackageListType_SensorPackage_ARRAY_SIZE) {
- errn = decode_v2gSensorPackageType(stream, &v2gSensorPackageListType->SensorPackage.array[v2gSensorPackageListType->SensorPackage.arrayLen++]);
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- grammarID = 2594;
- break;
- case 1:
- done = 1;
- grammarID = 3;
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 2594:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorPackage), END_ELEMENT] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gSensorPackageListType->SensorPackage.arrayLen < v2gSensorPackageListType_SensorPackage_ARRAY_SIZE) {
- errn = decode_v2gSensorPackageType(stream, &v2gSensorPackageListType->SensorPackage.array[v2gSensorPackageListType->SensorPackage.arrayLen++]);
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- grammarID = 2595;
- break;
- case 1:
- done = 1;
- grammarID = 3;
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 2595:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorPackage), END_ELEMENT] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gSensorPackageListType->SensorPackage.arrayLen < v2gSensorPackageListType_SensorPackage_ARRAY_SIZE) {
- errn = decode_v2gSensorPackageType(stream, &v2gSensorPackageListType->SensorPackage.array[v2gSensorPackageListType->SensorPackage.arrayLen++]);
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- grammarID = 2596;
- break;
- case 1:
- done = 1;
- grammarID = 3;
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 2596:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorPackage), END_ELEMENT] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gSensorPackageListType->SensorPackage.arrayLen < v2gSensorPackageListType_SensorPackage_ARRAY_SIZE) {
- errn = decode_v2gSensorPackageType(stream, &v2gSensorPackageListType->SensorPackage.array[v2gSensorPackageListType->SensorPackage.arrayLen++]);
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- grammarID = 2597;
- break;
- case 1:
- done = 1;
- grammarID = 3;
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 2597:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorPackage), END_ELEMENT] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gSensorPackageListType->SensorPackage.arrayLen < v2gSensorPackageListType_SensorPackage_ARRAY_SIZE) {
- errn = decode_v2gSensorPackageType(stream, &v2gSensorPackageListType->SensorPackage.array[v2gSensorPackageListType->SensorPackage.arrayLen++]);
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- grammarID = 2598;
- break;
- case 1:
- done = 1;
- grammarID = 3;
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 2598:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorPackage), END_ELEMENT] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gSensorPackageListType->SensorPackage.arrayLen < v2gSensorPackageListType_SensorPackage_ARRAY_SIZE) {
- errn = decode_v2gSensorPackageType(stream, &v2gSensorPackageListType->SensorPackage.array[v2gSensorPackageListType->SensorPackage.arrayLen++]);
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- grammarID = 2599;
- break;
- case 1:
- done = 1;
- grammarID = 3;
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 2599:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorPackage), END_ELEMENT] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gSensorPackageListType->SensorPackage.arrayLen < v2gSensorPackageListType_SensorPackage_ARRAY_SIZE) {
- errn = decode_v2gSensorPackageType(stream, &v2gSensorPackageListType->SensorPackage.array[v2gSensorPackageListType->SensorPackage.arrayLen++]);
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- grammarID = 2600;
- break;
- case 1:
- done = 1;
- grammarID = 3;
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 2600:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorPackage), END_ELEMENT] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gSensorPackageListType->SensorPackage.arrayLen < v2gSensorPackageListType_SensorPackage_ARRAY_SIZE) {
- errn = decode_v2gSensorPackageType(stream, &v2gSensorPackageListType->SensorPackage.array[v2gSensorPackageListType->SensorPackage.arrayLen++]);
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- grammarID = 2601;
- break;
- case 1:
- done = 1;
- grammarID = 3;
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 2601:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorPackage), END_ELEMENT] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gSensorPackageListType->SensorPackage.arrayLen < v2gSensorPackageListType_SensorPackage_ARRAY_SIZE) {
- errn = decode_v2gSensorPackageType(stream, &v2gSensorPackageListType->SensorPackage.array[v2gSensorPackageListType->SensorPackage.arrayLen++]);
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- grammarID = 2602;
- break;
- case 1:
- done = 1;
- grammarID = 3;
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 2602:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorPackage), END_ELEMENT] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gSensorPackageListType->SensorPackage.arrayLen < v2gSensorPackageListType_SensorPackage_ARRAY_SIZE) {
- errn = decode_v2gSensorPackageType(stream, &v2gSensorPackageListType->SensorPackage.array[v2gSensorPackageListType->SensorPackage.arrayLen++]);
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- grammarID = 2603;
- break;
- case 1:
- done = 1;
- grammarID = 3;
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 2603:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorPackage), END_ELEMENT] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gSensorPackageListType->SensorPackage.arrayLen < v2gSensorPackageListType_SensorPackage_ARRAY_SIZE) {
- errn = decode_v2gSensorPackageType(stream, &v2gSensorPackageListType->SensorPackage.array[v2gSensorPackageListType->SensorPackage.arrayLen++]);
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- grammarID = 2604;
- break;
- case 1:
- done = 1;
- grammarID = 3;
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 2604:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorPackage), END_ELEMENT] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gSensorPackageListType->SensorPackage.arrayLen < v2gSensorPackageListType_SensorPackage_ARRAY_SIZE) {
- errn = decode_v2gSensorPackageType(stream, &v2gSensorPackageListType->SensorPackage.array[v2gSensorPackageListType->SensorPackage.arrayLen++]);
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- grammarID = 2605;
- break;
- case 1:
- done = 1;
- grammarID = 3;
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 2605:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorPackage), END_ELEMENT] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gSensorPackageListType->SensorPackage.arrayLen < v2gSensorPackageListType_SensorPackage_ARRAY_SIZE) {
- errn = decode_v2gSensorPackageType(stream, &v2gSensorPackageListType->SensorPackage.array[v2gSensorPackageListType->SensorPackage.arrayLen++]);
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- grammarID = 2606;
- break;
- case 1:
- done = 1;
- grammarID = 3;
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 2606:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorPackage), END_ELEMENT] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gSensorPackageListType->SensorPackage.arrayLen < v2gSensorPackageListType_SensorPackage_ARRAY_SIZE) {
- errn = decode_v2gSensorPackageType(stream, &v2gSensorPackageListType->SensorPackage.array[v2gSensorPackageListType->SensorPackage.arrayLen++]);
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- grammarID = 2607;
- break;
- case 1:
- done = 1;
- grammarID = 3;
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 2607:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorPackage), END_ELEMENT] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gSensorPackageListType->SensorPackage.arrayLen < v2gSensorPackageListType_SensorPackage_ARRAY_SIZE) {
- errn = decode_v2gSensorPackageType(stream, &v2gSensorPackageListType->SensorPackage.array[v2gSensorPackageListType->SensorPackage.arrayLen++]);
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- grammarID = 2608;
- break;
- case 1:
- done = 1;
- grammarID = 3;
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 2608:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorPackage), END_ELEMENT] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gSensorPackageListType->SensorPackage.arrayLen < v2gSensorPackageListType_SensorPackage_ARRAY_SIZE) {
- errn = decode_v2gSensorPackageType(stream, &v2gSensorPackageListType->SensorPackage.array[v2gSensorPackageListType->SensorPackage.arrayLen++]);
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- grammarID = 2609;
- break;
- case 1:
- done = 1;
- grammarID = 3;
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 2609:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorPackage), END_ELEMENT] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gSensorPackageListType->SensorPackage.arrayLen < v2gSensorPackageListType_SensorPackage_ARRAY_SIZE) {
- errn = decode_v2gSensorPackageType(stream, &v2gSensorPackageListType->SensorPackage.array[v2gSensorPackageListType->SensorPackage.arrayLen++]);
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- grammarID = 2610;
- break;
- case 1:
- done = 1;
- grammarID = 3;
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 2610:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorPackage), END_ELEMENT] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gSensorPackageListType->SensorPackage.arrayLen < v2gSensorPackageListType_SensorPackage_ARRAY_SIZE) {
- errn = decode_v2gSensorPackageType(stream, &v2gSensorPackageListType->SensorPackage.array[v2gSensorPackageListType->SensorPackage.arrayLen++]);
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- grammarID = 2611;
- break;
- case 1:
- done = 1;
- grammarID = 3;
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 2611:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorPackage), END_ELEMENT] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gSensorPackageListType->SensorPackage.arrayLen < v2gSensorPackageListType_SensorPackage_ARRAY_SIZE) {
- errn = decode_v2gSensorPackageType(stream, &v2gSensorPackageListType->SensorPackage.array[v2gSensorPackageListType->SensorPackage.arrayLen++]);
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- grammarID = 2612;
- break;
- case 1:
- done = 1;
- grammarID = 3;
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 2612:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorPackage), END_ELEMENT] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gSensorPackageListType->SensorPackage.arrayLen < v2gSensorPackageListType_SensorPackage_ARRAY_SIZE) {
- errn = decode_v2gSensorPackageType(stream, &v2gSensorPackageListType->SensorPackage.array[v2gSensorPackageListType->SensorPackage.arrayLen++]);
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- grammarID = 2613;
- break;
- case 1:
- done = 1;
- grammarID = 3;
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 2613:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorPackage), END_ELEMENT] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gSensorPackageListType->SensorPackage.arrayLen < v2gSensorPackageListType_SensorPackage_ARRAY_SIZE) {
- errn = decode_v2gSensorPackageType(stream, &v2gSensorPackageListType->SensorPackage.array[v2gSensorPackageListType->SensorPackage.arrayLen++]);
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- grammarID = 2614;
- break;
- case 1:
- done = 1;
- grammarID = 3;
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 2614:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorPackage), END_ELEMENT] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gSensorPackageListType->SensorPackage.arrayLen < v2gSensorPackageListType_SensorPackage_ARRAY_SIZE) {
- errn = decode_v2gSensorPackageType(stream, &v2gSensorPackageListType->SensorPackage.array[v2gSensorPackageListType->SensorPackage.arrayLen++]);
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- grammarID = 2615;
- break;
- case 1:
- done = 1;
- grammarID = 3;
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 2615:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorPackage), END_ELEMENT] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gSensorPackageListType->SensorPackage.arrayLen < v2gSensorPackageListType_SensorPackage_ARRAY_SIZE) {
- errn = decode_v2gSensorPackageType(stream, &v2gSensorPackageListType->SensorPackage.array[v2gSensorPackageListType->SensorPackage.arrayLen++]);
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- grammarID = 2616;
- break;
- case 1:
- done = 1;
- grammarID = 3;
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 2616:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorPackage), END_ELEMENT] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gSensorPackageListType->SensorPackage.arrayLen < v2gSensorPackageListType_SensorPackage_ARRAY_SIZE) {
- errn = decode_v2gSensorPackageType(stream, &v2gSensorPackageListType->SensorPackage.array[v2gSensorPackageListType->SensorPackage.arrayLen++]);
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- grammarID = 2617;
- break;
- case 1:
- done = 1;
- grammarID = 3;
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 2617:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorPackage), END_ELEMENT] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gSensorPackageListType->SensorPackage.arrayLen < v2gSensorPackageListType_SensorPackage_ARRAY_SIZE) {
- errn = decode_v2gSensorPackageType(stream, &v2gSensorPackageListType->SensorPackage.array[v2gSensorPackageListType->SensorPackage.arrayLen++]);
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- grammarID = 2618;
- break;
- case 1:
- done = 1;
- grammarID = 3;
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 2618:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorPackage), END_ELEMENT] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gSensorPackageListType->SensorPackage.arrayLen < v2gSensorPackageListType_SensorPackage_ARRAY_SIZE) {
- errn = decode_v2gSensorPackageType(stream, &v2gSensorPackageListType->SensorPackage.array[v2gSensorPackageListType->SensorPackage.arrayLen++]);
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- grammarID = 2619;
- break;
- case 1:
- done = 1;
- grammarID = 3;
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 2619:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorPackage), END_ELEMENT] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gSensorPackageListType->SensorPackage.arrayLen < v2gSensorPackageListType_SensorPackage_ARRAY_SIZE) {
- errn = decode_v2gSensorPackageType(stream, &v2gSensorPackageListType->SensorPackage.array[v2gSensorPackageListType->SensorPackage.arrayLen++]);
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- grammarID = 2620;
- break;
- case 1:
- done = 1;
- grammarID = 3;
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 2620:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorPackage), END_ELEMENT] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gSensorPackageListType->SensorPackage.arrayLen < v2gSensorPackageListType_SensorPackage_ARRAY_SIZE) {
- errn = decode_v2gSensorPackageType(stream, &v2gSensorPackageListType->SensorPackage.array[v2gSensorPackageListType->SensorPackage.arrayLen++]);
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- grammarID = 2621;
- break;
- case 1:
- done = 1;
- grammarID = 3;
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 2621:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorPackage), END_ELEMENT] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gSensorPackageListType->SensorPackage.arrayLen < v2gSensorPackageListType_SensorPackage_ARRAY_SIZE) {
- errn = decode_v2gSensorPackageType(stream, &v2gSensorPackageListType->SensorPackage.array[v2gSensorPackageListType->SensorPackage.arrayLen++]);
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- grammarID = 2622;
- break;
- case 1:
- done = 1;
- grammarID = 3;
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 2622:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorPackage), END_ELEMENT] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gSensorPackageListType->SensorPackage.arrayLen < v2gSensorPackageListType_SensorPackage_ARRAY_SIZE) {
- errn = decode_v2gSensorPackageType(stream, &v2gSensorPackageListType->SensorPackage.array[v2gSensorPackageListType->SensorPackage.arrayLen++]);
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- grammarID = 2623;
- break;
- case 1:
- done = 1;
- grammarID = 3;
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 2623:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorPackage), END_ELEMENT] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gSensorPackageListType->SensorPackage.arrayLen < v2gSensorPackageListType_SensorPackage_ARRAY_SIZE) {
- errn = decode_v2gSensorPackageType(stream, &v2gSensorPackageListType->SensorPackage.array[v2gSensorPackageListType->SensorPackage.arrayLen++]);
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- grammarID = 2624;
- break;
- case 1:
- done = 1;
- grammarID = 3;
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 2624:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorPackage), END_ELEMENT] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gSensorPackageListType->SensorPackage.arrayLen < v2gSensorPackageListType_SensorPackage_ARRAY_SIZE) {
- errn = decode_v2gSensorPackageType(stream, &v2gSensorPackageListType->SensorPackage.array[v2gSensorPackageListType->SensorPackage.arrayLen++]);
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- grammarID = 2625;
- break;
- case 1:
- done = 1;
- grammarID = 3;
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 2625:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorPackage), END_ELEMENT] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gSensorPackageListType->SensorPackage.arrayLen < v2gSensorPackageListType_SensorPackage_ARRAY_SIZE) {
- errn = decode_v2gSensorPackageType(stream, &v2gSensorPackageListType->SensorPackage.array[v2gSensorPackageListType->SensorPackage.arrayLen++]);
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- grammarID = 2626;
- break;
- case 1:
- done = 1;
- grammarID = 3;
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 2626:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorPackage), END_ELEMENT] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gSensorPackageListType->SensorPackage.arrayLen < v2gSensorPackageListType_SensorPackage_ARRAY_SIZE) {
- errn = decode_v2gSensorPackageType(stream, &v2gSensorPackageListType->SensorPackage.array[v2gSensorPackageListType->SensorPackage.arrayLen++]);
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- grammarID = 2627;
- break;
- case 1:
- done = 1;
- grammarID = 3;
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 2627:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorPackage), END_ELEMENT] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gSensorPackageListType->SensorPackage.arrayLen < v2gSensorPackageListType_SensorPackage_ARRAY_SIZE) {
- errn = decode_v2gSensorPackageType(stream, &v2gSensorPackageListType->SensorPackage.array[v2gSensorPackageListType->SensorPackage.arrayLen++]);
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- grammarID = 2628;
- break;
- case 1:
- done = 1;
- grammarID = 3;
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 2628:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorPackage), END_ELEMENT] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gSensorPackageListType->SensorPackage.arrayLen < v2gSensorPackageListType_SensorPackage_ARRAY_SIZE) {
- errn = decode_v2gSensorPackageType(stream, &v2gSensorPackageListType->SensorPackage.array[v2gSensorPackageListType->SensorPackage.arrayLen++]);
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- grammarID = 2629;
- break;
- case 1:
- done = 1;
- grammarID = 3;
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 2629:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorPackage), END_ELEMENT] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gSensorPackageListType->SensorPackage.arrayLen < v2gSensorPackageListType_SensorPackage_ARRAY_SIZE) {
- errn = decode_v2gSensorPackageType(stream, &v2gSensorPackageListType->SensorPackage.array[v2gSensorPackageListType->SensorPackage.arrayLen++]);
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- grammarID = 2630;
- break;
- case 1:
- done = 1;
- grammarID = 3;
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 2630:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorPackage), END_ELEMENT] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gSensorPackageListType->SensorPackage.arrayLen < v2gSensorPackageListType_SensorPackage_ARRAY_SIZE) {
- errn = decode_v2gSensorPackageType(stream, &v2gSensorPackageListType->SensorPackage.array[v2gSensorPackageListType->SensorPackage.arrayLen++]);
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- grammarID = 2631;
- break;
- case 1:
- done = 1;
- grammarID = 3;
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 2631:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorPackage), END_ELEMENT] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gSensorPackageListType->SensorPackage.arrayLen < v2gSensorPackageListType_SensorPackage_ARRAY_SIZE) {
- errn = decode_v2gSensorPackageType(stream, &v2gSensorPackageListType->SensorPackage.array[v2gSensorPackageListType->SensorPackage.arrayLen++]);
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- grammarID = 2632;
- break;
- case 1:
- done = 1;
- grammarID = 3;
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 2632:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorPackage), END_ELEMENT] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gSensorPackageListType->SensorPackage.arrayLen < v2gSensorPackageListType_SensorPackage_ARRAY_SIZE) {
- errn = decode_v2gSensorPackageType(stream, &v2gSensorPackageListType->SensorPackage.array[v2gSensorPackageListType->SensorPackage.arrayLen++]);
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- grammarID = 2633;
- break;
- case 1:
- done = 1;
- grammarID = 3;
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 2633:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorPackage), END_ELEMENT] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gSensorPackageListType->SensorPackage.arrayLen < v2gSensorPackageListType_SensorPackage_ARRAY_SIZE) {
- errn = decode_v2gSensorPackageType(stream, &v2gSensorPackageListType->SensorPackage.array[v2gSensorPackageListType->SensorPackage.arrayLen++]);
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- grammarID = 2634;
- break;
- case 1:
- done = 1;
- grammarID = 3;
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 2634:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorPackage), END_ELEMENT] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gSensorPackageListType->SensorPackage.arrayLen < v2gSensorPackageListType_SensorPackage_ARRAY_SIZE) {
- errn = decode_v2gSensorPackageType(stream, &v2gSensorPackageListType->SensorPackage.array[v2gSensorPackageListType->SensorPackage.arrayLen++]);
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- grammarID = 2635;
- break;
- case 1:
- done = 1;
- grammarID = 3;
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 2635:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorPackage), END_ELEMENT] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gSensorPackageListType->SensorPackage.arrayLen < v2gSensorPackageListType_SensorPackage_ARRAY_SIZE) {
- errn = decode_v2gSensorPackageType(stream, &v2gSensorPackageListType->SensorPackage.array[v2gSensorPackageListType->SensorPackage.arrayLen++]);
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- grammarID = 2636;
- break;
- case 1:
- done = 1;
- grammarID = 3;
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 2636:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorPackage), END_ELEMENT] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gSensorPackageListType->SensorPackage.arrayLen < v2gSensorPackageListType_SensorPackage_ARRAY_SIZE) {
- errn = decode_v2gSensorPackageType(stream, &v2gSensorPackageListType->SensorPackage.array[v2gSensorPackageListType->SensorPackage.arrayLen++]);
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- grammarID = 2637;
- break;
- case 1:
- done = 1;
- grammarID = 3;
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 2637:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorPackage), END_ELEMENT] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gSensorPackageListType->SensorPackage.arrayLen < v2gSensorPackageListType_SensorPackage_ARRAY_SIZE) {
- errn = decode_v2gSensorPackageType(stream, &v2gSensorPackageListType->SensorPackage.array[v2gSensorPackageListType->SensorPackage.arrayLen++]);
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- grammarID = 2638;
- break;
- case 1:
- done = 1;
- grammarID = 3;
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 2638:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorPackage), END_ELEMENT] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gSensorPackageListType->SensorPackage.arrayLen < v2gSensorPackageListType_SensorPackage_ARRAY_SIZE) {
- errn = decode_v2gSensorPackageType(stream, &v2gSensorPackageListType->SensorPackage.array[v2gSensorPackageListType->SensorPackage.arrayLen++]);
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- grammarID = 2639;
- break;
- case 1:
- done = 1;
- grammarID = 3;
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 2639:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorPackage), END_ELEMENT] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gSensorPackageListType->SensorPackage.arrayLen < v2gSensorPackageListType_SensorPackage_ARRAY_SIZE) {
- errn = decode_v2gSensorPackageType(stream, &v2gSensorPackageListType->SensorPackage.array[v2gSensorPackageListType->SensorPackage.arrayLen++]);
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- grammarID = 2640;
- break;
- case 1:
- done = 1;
- grammarID = 3;
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 2640:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorPackage), END_ELEMENT] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gSensorPackageListType->SensorPackage.arrayLen < v2gSensorPackageListType_SensorPackage_ARRAY_SIZE) {
- errn = decode_v2gSensorPackageType(stream, &v2gSensorPackageListType->SensorPackage.array[v2gSensorPackageListType->SensorPackage.arrayLen++]);
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- grammarID = 2641;
- break;
- case 1:
- done = 1;
- grammarID = 3;
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 2641:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorPackage), END_ELEMENT] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gSensorPackageListType->SensorPackage.arrayLen < v2gSensorPackageListType_SensorPackage_ARRAY_SIZE) {
- errn = decode_v2gSensorPackageType(stream, &v2gSensorPackageListType->SensorPackage.array[v2gSensorPackageListType->SensorPackage.arrayLen++]);
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- grammarID = 2642;
- break;
- case 1:
- done = 1;
- grammarID = 3;
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 2642:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorPackage), END_ELEMENT] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gSensorPackageListType->SensorPackage.arrayLen < v2gSensorPackageListType_SensorPackage_ARRAY_SIZE) {
- errn = decode_v2gSensorPackageType(stream, &v2gSensorPackageListType->SensorPackage.array[v2gSensorPackageListType->SensorPackage.arrayLen++]);
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- grammarID = 2643;
- break;
- case 1:
- done = 1;
- grammarID = 3;
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 2643:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorPackage), END_ELEMENT] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gSensorPackageListType->SensorPackage.arrayLen < v2gSensorPackageListType_SensorPackage_ARRAY_SIZE) {
- errn = decode_v2gSensorPackageType(stream, &v2gSensorPackageListType->SensorPackage.array[v2gSensorPackageListType->SensorPackage.arrayLen++]);
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- grammarID = 2644;
- break;
- case 1:
- done = 1;
- grammarID = 3;
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 2644:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorPackage), END_ELEMENT] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gSensorPackageListType->SensorPackage.arrayLen < v2gSensorPackageListType_SensorPackage_ARRAY_SIZE) {
- errn = decode_v2gSensorPackageType(stream, &v2gSensorPackageListType->SensorPackage.array[v2gSensorPackageListType->SensorPackage.arrayLen++]);
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- grammarID = 2645;
- break;
- case 1:
- done = 1;
- grammarID = 3;
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 2645:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorPackage), END_ELEMENT] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gSensorPackageListType->SensorPackage.arrayLen < v2gSensorPackageListType_SensorPackage_ARRAY_SIZE) {
- errn = decode_v2gSensorPackageType(stream, &v2gSensorPackageListType->SensorPackage.array[v2gSensorPackageListType->SensorPackage.arrayLen++]);
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- grammarID = 2646;
- break;
- case 1:
- done = 1;
- grammarID = 3;
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 2646:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorPackage), END_ELEMENT] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gSensorPackageListType->SensorPackage.arrayLen < v2gSensorPackageListType_SensorPackage_ARRAY_SIZE) {
- errn = decode_v2gSensorPackageType(stream, &v2gSensorPackageListType->SensorPackage.array[v2gSensorPackageListType->SensorPackage.arrayLen++]);
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- grammarID = 2647;
- break;
- case 1:
- done = 1;
- grammarID = 3;
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 2647:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorPackage), END_ELEMENT] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gSensorPackageListType->SensorPackage.arrayLen < v2gSensorPackageListType_SensorPackage_ARRAY_SIZE) {
- errn = decode_v2gSensorPackageType(stream, &v2gSensorPackageListType->SensorPackage.array[v2gSensorPackageListType->SensorPackage.arrayLen++]);
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- grammarID = 2648;
- break;
- case 1:
- done = 1;
- grammarID = 3;
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 2648:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorPackage), END_ELEMENT] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gSensorPackageListType->SensorPackage.arrayLen < v2gSensorPackageListType_SensorPackage_ARRAY_SIZE) {
- errn = decode_v2gSensorPackageType(stream, &v2gSensorPackageListType->SensorPackage.array[v2gSensorPackageListType->SensorPackage.arrayLen++]);
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- grammarID = 2649;
- break;
- case 1:
- done = 1;
- grammarID = 3;
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 2649:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorPackage), END_ELEMENT] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gSensorPackageListType->SensorPackage.arrayLen < v2gSensorPackageListType_SensorPackage_ARRAY_SIZE) {
- errn = decode_v2gSensorPackageType(stream, &v2gSensorPackageListType->SensorPackage.array[v2gSensorPackageListType->SensorPackage.arrayLen++]);
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- grammarID = 2650;
- break;
- case 1:
- done = 1;
- grammarID = 3;
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 2650:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorPackage), END_ELEMENT] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gSensorPackageListType->SensorPackage.arrayLen < v2gSensorPackageListType_SensorPackage_ARRAY_SIZE) {
- errn = decode_v2gSensorPackageType(stream, &v2gSensorPackageListType->SensorPackage.array[v2gSensorPackageListType->SensorPackage.arrayLen++]);
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- grammarID = 2651;
- break;
- case 1:
- done = 1;
- grammarID = 3;
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 2651:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorPackage), END_ELEMENT] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gSensorPackageListType->SensorPackage.arrayLen < v2gSensorPackageListType_SensorPackage_ARRAY_SIZE) {
- errn = decode_v2gSensorPackageType(stream, &v2gSensorPackageListType->SensorPackage.array[v2gSensorPackageListType->SensorPackage.arrayLen++]);
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- grammarID = 2652;
- break;
- case 1:
- done = 1;
- grammarID = 3;
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 2652:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorPackage), END_ELEMENT] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gSensorPackageListType->SensorPackage.arrayLen < v2gSensorPackageListType_SensorPackage_ARRAY_SIZE) {
- errn = decode_v2gSensorPackageType(stream, &v2gSensorPackageListType->SensorPackage.array[v2gSensorPackageListType->SensorPackage.arrayLen++]);
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- grammarID = 2653;
- break;
- case 1:
- done = 1;
- grammarID = 3;
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 2653:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorPackage), END_ELEMENT] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gSensorPackageListType->SensorPackage.arrayLen < v2gSensorPackageListType_SensorPackage_ARRAY_SIZE) {
- errn = decode_v2gSensorPackageType(stream, &v2gSensorPackageListType->SensorPackage.array[v2gSensorPackageListType->SensorPackage.arrayLen++]);
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- grammarID = 2654;
- break;
- case 1:
- done = 1;
- grammarID = 3;
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 2654:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorPackage), END_ELEMENT] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gSensorPackageListType->SensorPackage.arrayLen < v2gSensorPackageListType_SensorPackage_ARRAY_SIZE) {
- errn = decode_v2gSensorPackageType(stream, &v2gSensorPackageListType->SensorPackage.array[v2gSensorPackageListType->SensorPackage.arrayLen++]);
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- grammarID = 2655;
- break;
- case 1:
- done = 1;
- grammarID = 3;
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 2655:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorPackage), END_ELEMENT] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gSensorPackageListType->SensorPackage.arrayLen < v2gSensorPackageListType_SensorPackage_ARRAY_SIZE) {
- errn = decode_v2gSensorPackageType(stream, &v2gSensorPackageListType->SensorPackage.array[v2gSensorPackageListType->SensorPackage.arrayLen++]);
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- grammarID = 2656;
- break;
- case 1:
- done = 1;
- grammarID = 3;
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 2656:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorPackage), END_ELEMENT] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gSensorPackageListType->SensorPackage.arrayLen < v2gSensorPackageListType_SensorPackage_ARRAY_SIZE) {
- errn = decode_v2gSensorPackageType(stream, &v2gSensorPackageListType->SensorPackage.array[v2gSensorPackageListType->SensorPackage.arrayLen++]);
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- grammarID = 2657;
- break;
- case 1:
- done = 1;
- grammarID = 3;
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 2657:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorPackage), END_ELEMENT] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gSensorPackageListType->SensorPackage.arrayLen < v2gSensorPackageListType_SensorPackage_ARRAY_SIZE) {
- errn = decode_v2gSensorPackageType(stream, &v2gSensorPackageListType->SensorPackage.array[v2gSensorPackageListType->SensorPackage.arrayLen++]);
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- grammarID = 2658;
- break;
- case 1:
- done = 1;
- grammarID = 3;
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 2658:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorPackage), END_ELEMENT] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gSensorPackageListType->SensorPackage.arrayLen < v2gSensorPackageListType_SensorPackage_ARRAY_SIZE) {
- errn = decode_v2gSensorPackageType(stream, &v2gSensorPackageListType->SensorPackage.array[v2gSensorPackageListType->SensorPackage.arrayLen++]);
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- grammarID = 2659;
- break;
- case 1:
- done = 1;
- grammarID = 3;
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 2659:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorPackage), END_ELEMENT] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gSensorPackageListType->SensorPackage.arrayLen < v2gSensorPackageListType_SensorPackage_ARRAY_SIZE) {
- errn = decode_v2gSensorPackageType(stream, &v2gSensorPackageListType->SensorPackage.array[v2gSensorPackageListType->SensorPackage.arrayLen++]);
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- grammarID = 2660;
- break;
- case 1:
- done = 1;
- grammarID = 3;
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 2660:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorPackage), END_ELEMENT] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gSensorPackageListType->SensorPackage.arrayLen < v2gSensorPackageListType_SensorPackage_ARRAY_SIZE) {
- errn = decode_v2gSensorPackageType(stream, &v2gSensorPackageListType->SensorPackage.array[v2gSensorPackageListType->SensorPackage.arrayLen++]);
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- grammarID = 2661;
- break;
- case 1:
- done = 1;
- grammarID = 3;
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 2661:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorPackage), END_ELEMENT] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gSensorPackageListType->SensorPackage.arrayLen < v2gSensorPackageListType_SensorPackage_ARRAY_SIZE) {
- errn = decode_v2gSensorPackageType(stream, &v2gSensorPackageListType->SensorPackage.array[v2gSensorPackageListType->SensorPackage.arrayLen++]);
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- grammarID = 2662;
- break;
- case 1:
- done = 1;
- grammarID = 3;
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 2662:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorPackage), END_ELEMENT] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gSensorPackageListType->SensorPackage.arrayLen < v2gSensorPackageListType_SensorPackage_ARRAY_SIZE) {
- errn = decode_v2gSensorPackageType(stream, &v2gSensorPackageListType->SensorPackage.array[v2gSensorPackageListType->SensorPackage.arrayLen++]);
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- grammarID = 2663;
- break;
- case 1:
- done = 1;
- grammarID = 3;
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 2663:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorPackage), END_ELEMENT] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gSensorPackageListType->SensorPackage.arrayLen < v2gSensorPackageListType_SensorPackage_ARRAY_SIZE) {
- errn = decode_v2gSensorPackageType(stream, &v2gSensorPackageListType->SensorPackage.array[v2gSensorPackageListType->SensorPackage.arrayLen++]);
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- grammarID = 2664;
- break;
- case 1:
- done = 1;
- grammarID = 3;
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 2664:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorPackage), END_ELEMENT] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gSensorPackageListType->SensorPackage.arrayLen < v2gSensorPackageListType_SensorPackage_ARRAY_SIZE) {
- errn = decode_v2gSensorPackageType(stream, &v2gSensorPackageListType->SensorPackage.array[v2gSensorPackageListType->SensorPackage.arrayLen++]);
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- grammarID = 2665;
- break;
- case 1:
- done = 1;
- grammarID = 3;
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 2665:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorPackage), END_ELEMENT] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gSensorPackageListType->SensorPackage.arrayLen < v2gSensorPackageListType_SensorPackage_ARRAY_SIZE) {
- errn = decode_v2gSensorPackageType(stream, &v2gSensorPackageListType->SensorPackage.array[v2gSensorPackageListType->SensorPackage.arrayLen++]);
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- grammarID = 2666;
- break;
- case 1:
- done = 1;
- grammarID = 3;
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 2666:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorPackage), END_ELEMENT] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gSensorPackageListType->SensorPackage.arrayLen < v2gSensorPackageListType_SensorPackage_ARRAY_SIZE) {
- errn = decode_v2gSensorPackageType(stream, &v2gSensorPackageListType->SensorPackage.array[v2gSensorPackageListType->SensorPackage.arrayLen++]);
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- grammarID = 2667;
- break;
- case 1:
- done = 1;
- grammarID = 3;
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 2667:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorPackage), END_ELEMENT] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gSensorPackageListType->SensorPackage.arrayLen < v2gSensorPackageListType_SensorPackage_ARRAY_SIZE) {
- errn = decode_v2gSensorPackageType(stream, &v2gSensorPackageListType->SensorPackage.array[v2gSensorPackageListType->SensorPackage.arrayLen++]);
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- grammarID = 2668;
- break;
- case 1:
- done = 1;
- grammarID = 3;
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 2668:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorPackage), END_ELEMENT] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gSensorPackageListType->SensorPackage.arrayLen < v2gSensorPackageListType_SensorPackage_ARRAY_SIZE) {
- errn = decode_v2gSensorPackageType(stream, &v2gSensorPackageListType->SensorPackage.array[v2gSensorPackageListType->SensorPackage.arrayLen++]);
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- grammarID = 2669;
- break;
- case 1:
- done = 1;
- grammarID = 3;
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 2669:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorPackage), END_ELEMENT] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gSensorPackageListType->SensorPackage.arrayLen < v2gSensorPackageListType_SensorPackage_ARRAY_SIZE) {
- errn = decode_v2gSensorPackageType(stream, &v2gSensorPackageListType->SensorPackage.array[v2gSensorPackageListType->SensorPackage.arrayLen++]);
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- grammarID = 2670;
- break;
- case 1:
- done = 1;
- grammarID = 3;
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 2670:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorPackage), END_ELEMENT] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gSensorPackageListType->SensorPackage.arrayLen < v2gSensorPackageListType_SensorPackage_ARRAY_SIZE) {
- errn = decode_v2gSensorPackageType(stream, &v2gSensorPackageListType->SensorPackage.array[v2gSensorPackageListType->SensorPackage.arrayLen++]);
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- grammarID = 2671;
- break;
- case 1:
- done = 1;
- grammarID = 3;
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 2671:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorPackage), END_ELEMENT] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gSensorPackageListType->SensorPackage.arrayLen < v2gSensorPackageListType_SensorPackage_ARRAY_SIZE) {
- errn = decode_v2gSensorPackageType(stream, &v2gSensorPackageListType->SensorPackage.array[v2gSensorPackageListType->SensorPackage.arrayLen++]);
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- grammarID = 2672;
- break;
- case 1:
- done = 1;
- grammarID = 3;
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 2672:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorPackage), END_ELEMENT] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gSensorPackageListType->SensorPackage.arrayLen < v2gSensorPackageListType_SensorPackage_ARRAY_SIZE) {
- errn = decode_v2gSensorPackageType(stream, &v2gSensorPackageListType->SensorPackage.array[v2gSensorPackageListType->SensorPackage.arrayLen++]);
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- grammarID = 2673;
- break;
- case 1:
- done = 1;
- grammarID = 3;
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 2673:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorPackage), END_ELEMENT] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gSensorPackageListType->SensorPackage.arrayLen < v2gSensorPackageListType_SensorPackage_ARRAY_SIZE) {
- errn = decode_v2gSensorPackageType(stream, &v2gSensorPackageListType->SensorPackage.array[v2gSensorPackageListType->SensorPackage.arrayLen++]);
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- grammarID = 2674;
- break;
- case 1:
- done = 1;
- grammarID = 3;
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 2674:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorPackage), END_ELEMENT] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gSensorPackageListType->SensorPackage.arrayLen < v2gSensorPackageListType_SensorPackage_ARRAY_SIZE) {
- errn = decode_v2gSensorPackageType(stream, &v2gSensorPackageListType->SensorPackage.array[v2gSensorPackageListType->SensorPackage.arrayLen++]);
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- grammarID = 2675;
- break;
- case 1:
- done = 1;
- grammarID = 3;
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 2675:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorPackage), END_ELEMENT] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gSensorPackageListType->SensorPackage.arrayLen < v2gSensorPackageListType_SensorPackage_ARRAY_SIZE) {
- errn = decode_v2gSensorPackageType(stream, &v2gSensorPackageListType->SensorPackage.array[v2gSensorPackageListType->SensorPackage.arrayLen++]);
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- grammarID = 2676;
- break;
- case 1:
- done = 1;
- grammarID = 3;
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 2676:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorPackage), END_ELEMENT] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gSensorPackageListType->SensorPackage.arrayLen < v2gSensorPackageListType_SensorPackage_ARRAY_SIZE) {
- errn = decode_v2gSensorPackageType(stream, &v2gSensorPackageListType->SensorPackage.array[v2gSensorPackageListType->SensorPackage.arrayLen++]);
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- grammarID = 2677;
- break;
- case 1:
- done = 1;
- grammarID = 3;
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 2677:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorPackage), END_ELEMENT] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gSensorPackageListType->SensorPackage.arrayLen < v2gSensorPackageListType_SensorPackage_ARRAY_SIZE) {
- errn = decode_v2gSensorPackageType(stream, &v2gSensorPackageListType->SensorPackage.array[v2gSensorPackageListType->SensorPackage.arrayLen++]);
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- grammarID = 2678;
- break;
- case 1:
- done = 1;
- grammarID = 3;
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 2678:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorPackage), END_ELEMENT] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gSensorPackageListType->SensorPackage.arrayLen < v2gSensorPackageListType_SensorPackage_ARRAY_SIZE) {
- errn = decode_v2gSensorPackageType(stream, &v2gSensorPackageListType->SensorPackage.array[v2gSensorPackageListType->SensorPackage.arrayLen++]);
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- grammarID = 2679;
- break;
- case 1:
- done = 1;
- grammarID = 3;
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 2679:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorPackage), END_ELEMENT] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gSensorPackageListType->SensorPackage.arrayLen < v2gSensorPackageListType_SensorPackage_ARRAY_SIZE) {
- errn = decode_v2gSensorPackageType(stream, &v2gSensorPackageListType->SensorPackage.array[v2gSensorPackageListType->SensorPackage.arrayLen++]);
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- grammarID = 2680;
- break;
- case 1:
- done = 1;
- grammarID = 3;
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 2680:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorPackage), END_ELEMENT] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gSensorPackageListType->SensorPackage.arrayLen < v2gSensorPackageListType_SensorPackage_ARRAY_SIZE) {
- errn = decode_v2gSensorPackageType(stream, &v2gSensorPackageListType->SensorPackage.array[v2gSensorPackageListType->SensorPackage.arrayLen++]);
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- grammarID = 2681;
- break;
- case 1:
- done = 1;
- grammarID = 3;
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 2681:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorPackage), END_ELEMENT] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gSensorPackageListType->SensorPackage.arrayLen < v2gSensorPackageListType_SensorPackage_ARRAY_SIZE) {
- errn = decode_v2gSensorPackageType(stream, &v2gSensorPackageListType->SensorPackage.array[v2gSensorPackageListType->SensorPackage.arrayLen++]);
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- grammarID = 2682;
- break;
- case 1:
- done = 1;
- grammarID = 3;
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 2682:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorPackage), END_ELEMENT] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gSensorPackageListType->SensorPackage.arrayLen < v2gSensorPackageListType_SensorPackage_ARRAY_SIZE) {
- errn = decode_v2gSensorPackageType(stream, &v2gSensorPackageListType->SensorPackage.array[v2gSensorPackageListType->SensorPackage.arrayLen++]);
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- grammarID = 2683;
- break;
- case 1:
- done = 1;
- grammarID = 3;
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 2683:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorPackage), END_ELEMENT] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gSensorPackageListType->SensorPackage.arrayLen < v2gSensorPackageListType_SensorPackage_ARRAY_SIZE) {
- errn = decode_v2gSensorPackageType(stream, &v2gSensorPackageListType->SensorPackage.array[v2gSensorPackageListType->SensorPackage.arrayLen++]);
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- grammarID = 2684;
- break;
- case 1:
- done = 1;
- grammarID = 3;
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 2684:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorPackage), END_ELEMENT] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gSensorPackageListType->SensorPackage.arrayLen < v2gSensorPackageListType_SensorPackage_ARRAY_SIZE) {
- errn = decode_v2gSensorPackageType(stream, &v2gSensorPackageListType->SensorPackage.array[v2gSensorPackageListType->SensorPackage.arrayLen++]);
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- grammarID = 2685;
- break;
- case 1:
- done = 1;
- grammarID = 3;
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 2685:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorPackage), END_ELEMENT] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gSensorPackageListType->SensorPackage.arrayLen < v2gSensorPackageListType_SensorPackage_ARRAY_SIZE) {
- errn = decode_v2gSensorPackageType(stream, &v2gSensorPackageListType->SensorPackage.array[v2gSensorPackageListType->SensorPackage.arrayLen++]);
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- grammarID = 2686;
- break;
- case 1:
- done = 1;
- grammarID = 3;
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 2686:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorPackage), END_ELEMENT] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gSensorPackageListType->SensorPackage.arrayLen < v2gSensorPackageListType_SensorPackage_ARRAY_SIZE) {
- errn = decode_v2gSensorPackageType(stream, &v2gSensorPackageListType->SensorPackage.array[v2gSensorPackageListType->SensorPackage.arrayLen++]);
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- grammarID = 2687;
- break;
- case 1:
- done = 1;
- grammarID = 3;
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 2687:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorPackage), END_ELEMENT] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gSensorPackageListType->SensorPackage.arrayLen < v2gSensorPackageListType_SensorPackage_ARRAY_SIZE) {
- errn = decode_v2gSensorPackageType(stream, &v2gSensorPackageListType->SensorPackage.array[v2gSensorPackageListType->SensorPackage.arrayLen++]);
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- grammarID = 2688;
- break;
- case 1:
- done = 1;
- grammarID = 3;
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 2688:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorPackage), END_ELEMENT] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gSensorPackageListType->SensorPackage.arrayLen < v2gSensorPackageListType_SensorPackage_ARRAY_SIZE) {
- errn = decode_v2gSensorPackageType(stream, &v2gSensorPackageListType->SensorPackage.array[v2gSensorPackageListType->SensorPackage.arrayLen++]);
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- grammarID = 2689;
- break;
- case 1:
- done = 1;
- grammarID = 3;
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 2689:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorPackage), END_ELEMENT] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gSensorPackageListType->SensorPackage.arrayLen < v2gSensorPackageListType_SensorPackage_ARRAY_SIZE) {
- errn = decode_v2gSensorPackageType(stream, &v2gSensorPackageListType->SensorPackage.array[v2gSensorPackageListType->SensorPackage.arrayLen++]);
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- grammarID = 2690;
- break;
- case 1:
- done = 1;
- grammarID = 3;
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 2690:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorPackage), END_ELEMENT] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gSensorPackageListType->SensorPackage.arrayLen < v2gSensorPackageListType_SensorPackage_ARRAY_SIZE) {
- errn = decode_v2gSensorPackageType(stream, &v2gSensorPackageListType->SensorPackage.array[v2gSensorPackageListType->SensorPackage.arrayLen++]);
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- grammarID = 2691;
- break;
- case 1:
- done = 1;
- grammarID = 3;
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 2691:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorPackage), END_ELEMENT] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gSensorPackageListType->SensorPackage.arrayLen < v2gSensorPackageListType_SensorPackage_ARRAY_SIZE) {
- errn = decode_v2gSensorPackageType(stream, &v2gSensorPackageListType->SensorPackage.array[v2gSensorPackageListType->SensorPackage.arrayLen++]);
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- grammarID = 2692;
- break;
- case 1:
- done = 1;
- grammarID = 3;
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 2692:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorPackage), END_ELEMENT] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gSensorPackageListType->SensorPackage.arrayLen < v2gSensorPackageListType_SensorPackage_ARRAY_SIZE) {
- errn = decode_v2gSensorPackageType(stream, &v2gSensorPackageListType->SensorPackage.array[v2gSensorPackageListType->SensorPackage.arrayLen++]);
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- grammarID = 2693;
- break;
- case 1:
- done = 1;
- grammarID = 3;
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 2693:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorPackage), END_ELEMENT] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gSensorPackageListType->SensorPackage.arrayLen < v2gSensorPackageListType_SensorPackage_ARRAY_SIZE) {
- errn = decode_v2gSensorPackageType(stream, &v2gSensorPackageListType->SensorPackage.array[v2gSensorPackageListType->SensorPackage.arrayLen++]);
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- grammarID = 2694;
- break;
- case 1:
- done = 1;
- grammarID = 3;
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 2694:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorPackage), END_ELEMENT] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gSensorPackageListType->SensorPackage.arrayLen < v2gSensorPackageListType_SensorPackage_ARRAY_SIZE) {
- errn = decode_v2gSensorPackageType(stream, &v2gSensorPackageListType->SensorPackage.array[v2gSensorPackageListType->SensorPackage.arrayLen++]);
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- grammarID = 2695;
- break;
- case 1:
- done = 1;
- grammarID = 3;
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 2695:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorPackage), END_ELEMENT] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gSensorPackageListType->SensorPackage.arrayLen < v2gSensorPackageListType_SensorPackage_ARRAY_SIZE) {
- errn = decode_v2gSensorPackageType(stream, &v2gSensorPackageListType->SensorPackage.array[v2gSensorPackageListType->SensorPackage.arrayLen++]);
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- grammarID = 2696;
- break;
- case 1:
- done = 1;
- grammarID = 3;
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 2696:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorPackage), END_ELEMENT] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gSensorPackageListType->SensorPackage.arrayLen < v2gSensorPackageListType_SensorPackage_ARRAY_SIZE) {
- errn = decode_v2gSensorPackageType(stream, &v2gSensorPackageListType->SensorPackage.array[v2gSensorPackageListType->SensorPackage.arrayLen++]);
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- grammarID = 2;
- 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:2016:MsgBody,PaymentDetailsResType', base type name='V2GResponseType', content type='ELEMENT', isAbstract='false', hasTypeId='false', final='0', block='0', particle='(("urn:iso:15118:2:2016:MsgBody":ResponseCode,"urn:iso:15118:2:2016:MsgBody":EVSEStatus{0-1}),("urn:iso:15118:2:2016:MsgBody":GenChallenge,"urn:iso:15118:2:2016:MsgBody":EVSETimeStamp))', derivedBy='EXTENSION'. */
-static int decode_v2gPaymentDetailsResType(bitstream_t* stream, struct v2gPaymentDetailsResType* v2gPaymentDetailsResType) {
- int grammarID = 2697;
- int done = 0;
-
- init_v2gPaymentDetailsResType(v2gPaymentDetailsResType);
-
- while(!done) {
- switch(grammarID) {
- case 2697:
- /* FirstStartTag[START_ELEMENT({urn:iso:15118:2:2016:MsgBody}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, 5, &uint32);
- v2gPaymentDetailsResType->ResponseCode = (v2gresponseCodeType) 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({urn:iso:15118:2:2016:MsgBody}ResponseCode) ? */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(eventCode == 0) {
- grammarID = 2698;
- } else {
- errn = EXI_DEVIANT_SUPPORT_NOT_DEPLOYED; /* or also typecast and nillable */
- }
- }
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 2698:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgBody}EVSEStatus), START_ELEMENT({urn:iso:15118:2:2016:MsgBody}GenChallenge)] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- errn = decode_v2gEVSEStatusType(stream, &v2gPaymentDetailsResType->EVSEStatus);
- v2gPaymentDetailsResType->EVSEStatus_isUsed = 1u;
- grammarID = 2699;
- break;
- case 1:
- /* FirstStartTag[CHARACTERS[BINARY_BASE64]] */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(errn == 0) {
- if(eventCode == 0) {
- errn = decodeUnsignedInteger16(stream, &v2gPaymentDetailsResType->GenChallenge.bytesLen);
- if (errn == 0) {
- errn = (v2gPaymentDetailsResType->GenChallenge.bytesLen) <= v2gPaymentDetailsResType_GenChallenge_BYTES_SIZE ? 0 : EXI_ERROR_OUT_OF_BYTE_BUFFER;
- }
- if (errn == 0) {
- errn = decodeBytes(stream, v2gPaymentDetailsResType->GenChallenge.bytesLen, v2gPaymentDetailsResType->GenChallenge.bytes);
- }
- } 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({urn:iso:15118:2:2016:MsgBody}GenChallenge) ? */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(eventCode == 0) {
- grammarID = 2700;
- } else {
- errn = EXI_DEVIANT_SUPPORT_NOT_DEPLOYED; /* or also typecast and nillable */
- }
- }
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 2699:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgBody}GenChallenge)] */
+ case 13:
+ /* Element[START_ELEMENT({http://www.w3.org/2000/09/xmldsig#}Exponent)] */
errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
if (errn == 0) {
switch(eventCode) {
@@ -95160,12 +972,12 @@ static int decode_v2gPaymentDetailsResType(bitstream_t* stream, struct v2gPaymen
errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
if(errn == 0) {
if(eventCode == 0) {
- errn = decodeUnsignedInteger16(stream, &v2gPaymentDetailsResType->GenChallenge.bytesLen);
+ errn = decodeUnsignedInteger16(stream, &iso2RSAKeyValueType->Exponent.bytesLen);
if (errn == 0) {
- errn = (v2gPaymentDetailsResType->GenChallenge.bytesLen) <= v2gPaymentDetailsResType_GenChallenge_BYTES_SIZE ? 0 : EXI_ERROR_OUT_OF_BYTE_BUFFER;
+ errn = (iso2RSAKeyValueType->Exponent.bytesLen) <= iso2RSAKeyValueType_Exponent_BYTES_SIZE ? 0 : EXI_ERROR_OUT_OF_BYTE_BUFFER;
}
if (errn == 0) {
- errn = decodeBytes(stream, v2gPaymentDetailsResType->GenChallenge.bytesLen, v2gPaymentDetailsResType->GenChallenge.bytes);
+ errn = decodeBytes(stream, iso2RSAKeyValueType->Exponent.bytesLen, iso2RSAKeyValueType->Exponent.bytes);
}
} else {
/* Second level event (e.g., xsi:type, xsi:nil, ...) */
@@ -95173,10 +985,10 @@ static int decode_v2gPaymentDetailsResType(bitstream_t* stream, struct v2gPaymen
}
}
if(errn == 0) {
- /* valid EE for simple element START_ELEMENT({urn:iso:15118:2:2016:MsgBody}GenChallenge) ? */
+ /* valid EE for simple element START_ELEMENT({http://www.w3.org/2000/09/xmldsig#}Exponent) ? */
errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
if(eventCode == 0) {
- grammarID = 2700;
+ grammarID = 3;
} else {
errn = EXI_DEVIANT_SUPPORT_NOT_DEPLOYED; /* or also typecast and nillable */
}
@@ -95188,6037 +1000,14 @@ static int decode_v2gPaymentDetailsResType(bitstream_t* stream, struct v2gPaymen
}
}
break;
- case 2700:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgBody}EVSETimeStamp)] */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- /* First(xsi:type)StartTag[CHARACTERS[INTEGER]] */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(errn == 0) {
- if(eventCode == 0) {
- errn = decodeInteger64(stream, &v2gPaymentDetailsResType->EVSETimeStamp);
- } 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({urn:iso:15118:2:2016:MsgBody}EVSETimeStamp) ? */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(eventCode == 0) {
- grammarID = 2;
- } else {
- errn = EXI_DEVIANT_SUPPORT_NOT_DEPLOYED; /* or also typecast and nillable */
- }
- }
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 2:
+ case 3:
/* 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:2016:MsgDef,#AnonType_V2G_Message', base type name='anyType', content type='ELEMENT', isAbstract='false', hasTypeId='false', final='0', block='0', particle='("urn:iso:15118:2:2016:MsgDef":Header,"urn:iso:15118:2:2016:MsgDef":Body)', derivedBy='RESTRICTION'. */
-static int decode_v2gAnonType_V2G_Message(bitstream_t* stream, struct v2gAnonType_V2G_Message* v2gAnonType_V2G_Message) {
- int grammarID = 2701;
- int done = 0;
-
- init_v2gAnonType_V2G_Message(v2gAnonType_V2G_Message);
-
- while(!done) {
- switch(grammarID) {
- case 2701:
- /* FirstStartTag[START_ELEMENT({urn:iso:15118:2:2016:MsgDef}Header)] */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- errn = decode_v2gMessageHeaderType(stream, &v2gAnonType_V2G_Message->Header);
- grammarID = 2702;
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 2702:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDef}Body)] */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- errn = decode_v2gBodyType(stream, &v2gAnonType_V2G_Message->Body);
- grammarID = 2;
- 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:2016:MsgBody,AC_BidirectionalControlReqType', base type name='ChargeLoopReqType', content type='ELEMENT', isAbstract='false', hasTypeId='false', final='0', block='0', particle='(("urn:iso:15118:2:2016:MsgBody":EVTargetEnergyRequest,"urn:iso:15118:2:2016:MsgBody":EVMaximumEnergyRequest{0-1},"urn:iso:15118:2:2016:MsgBody":EVMinimumEnergyRequest{0-1},"urn:iso:15118:2:2016:MsgBody":DisplayParameters{0-1}),("urn:iso:15118:2:2016:MsgBody":EVOperation{0-1},"urn:iso:15118:2:2016:MsgBody":EVMaximumChargePower,"urn:iso:15118:2:2016:MsgBody":EVMaximumDischargePower{0-1},"urn:iso:15118:2:2016:MsgBody":EVMaximumChargeCurrent,"urn:iso:15118:2:2016:MsgBody":EVMaximumDischargeCurrent{0-1},"urn:iso:15118:2:2016:MsgBody":EVMinimumChargeCurrent,"urn:iso:15118:2:2016:MsgBody":EVMinimumDischargeCurrent{0-1},"urn:iso:15118:2:2016:MsgBody":EVPresentActivePower,"urn:iso:15118:2:2016:MsgBody":EVPresentReactivePower))', derivedBy='EXTENSION'. */
-static int decode_v2gAC_BidirectionalControlReqType(bitstream_t* stream, struct v2gAC_BidirectionalControlReqType* v2gAC_BidirectionalControlReqType) {
- int grammarID = 2703;
- int done = 0;
-
- init_v2gAC_BidirectionalControlReqType(v2gAC_BidirectionalControlReqType);
-
- while(!done) {
- switch(grammarID) {
- case 2703:
- /* FirstStartTag[START_ELEMENT({urn:iso:15118:2:2016:MsgBody}EVTargetEnergyRequest)] */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- errn = decode_v2gPhysicalValueType(stream, &v2gAC_BidirectionalControlReqType->EVTargetEnergyRequest);
- grammarID = 2704;
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 2704:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgBody}EVMaximumEnergyRequest), START_ELEMENT({urn:iso:15118:2:2016:MsgBody}EVMinimumEnergyRequest), START_ELEMENT({urn:iso:15118:2:2016:MsgBody}DisplayParameters), START_ELEMENT({urn:iso:15118:2:2016:MsgBody}EVOperation), START_ELEMENT({urn:iso:15118:2:2016:MsgBody}EVMaximumChargePower)] */
- errn = decodeNBitUnsignedInteger(stream, 3, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- errn = decode_v2gPhysicalValueType(stream, &v2gAC_BidirectionalControlReqType->EVMaximumEnergyRequest);
- v2gAC_BidirectionalControlReqType->EVMaximumEnergyRequest_isUsed = 1u;
- grammarID = 2705;
- break;
- case 1:
- errn = decode_v2gPhysicalValueType(stream, &v2gAC_BidirectionalControlReqType->EVMinimumEnergyRequest);
- v2gAC_BidirectionalControlReqType->EVMinimumEnergyRequest_isUsed = 1u;
- grammarID = 2706;
- break;
- case 2:
- errn = decode_v2gDisplayParametersType(stream, &v2gAC_BidirectionalControlReqType->DisplayParameters);
- v2gAC_BidirectionalControlReqType->DisplayParameters_isUsed = 1u;
- grammarID = 2707;
- break;
- case 3:
- /* FirstStartTag[CHARACTERS[ENUMERATION]] */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(errn == 0) {
- if(eventCode == 0) {
- errn = decodeNBitUnsignedInteger(stream, 1, &uint32);
- v2gAC_BidirectionalControlReqType->EVOperation = (v2gEVOperationType) uint32;
- v2gAC_BidirectionalControlReqType->EVOperation_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({urn:iso:15118:2:2016:MsgBody}EVOperation) ? */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(eventCode == 0) {
- grammarID = 2708;
- } else {
- errn = EXI_DEVIANT_SUPPORT_NOT_DEPLOYED; /* or also typecast and nillable */
- }
- }
- break;
- case 4:
- errn = decode_v2gPhysicalValueType(stream, &v2gAC_BidirectionalControlReqType->EVMaximumChargePower);
- grammarID = 2709;
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 2705:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgBody}EVMinimumEnergyRequest), START_ELEMENT({urn:iso:15118:2:2016:MsgBody}DisplayParameters), START_ELEMENT({urn:iso:15118:2:2016:MsgBody}EVOperation), START_ELEMENT({urn:iso:15118:2:2016:MsgBody}EVMaximumChargePower)] */
- errn = decodeNBitUnsignedInteger(stream, 3, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- errn = decode_v2gPhysicalValueType(stream, &v2gAC_BidirectionalControlReqType->EVMinimumEnergyRequest);
- v2gAC_BidirectionalControlReqType->EVMinimumEnergyRequest_isUsed = 1u;
- grammarID = 2706;
- break;
- case 1:
- errn = decode_v2gDisplayParametersType(stream, &v2gAC_BidirectionalControlReqType->DisplayParameters);
- v2gAC_BidirectionalControlReqType->DisplayParameters_isUsed = 1u;
- grammarID = 2707;
- break;
- case 2:
- /* FirstStartTag[CHARACTERS[ENUMERATION]] */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(errn == 0) {
- if(eventCode == 0) {
- errn = decodeNBitUnsignedInteger(stream, 1, &uint32);
- v2gAC_BidirectionalControlReqType->EVOperation = (v2gEVOperationType) uint32;
- v2gAC_BidirectionalControlReqType->EVOperation_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({urn:iso:15118:2:2016:MsgBody}EVOperation) ? */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(eventCode == 0) {
- grammarID = 2708;
- } else {
- errn = EXI_DEVIANT_SUPPORT_NOT_DEPLOYED; /* or also typecast and nillable */
- }
- }
- break;
- case 3:
- errn = decode_v2gPhysicalValueType(stream, &v2gAC_BidirectionalControlReqType->EVMaximumChargePower);
- grammarID = 2709;
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 2706:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgBody}DisplayParameters), START_ELEMENT({urn:iso:15118:2:2016:MsgBody}EVOperation), START_ELEMENT({urn:iso:15118:2:2016:MsgBody}EVMaximumChargePower)] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- errn = decode_v2gDisplayParametersType(stream, &v2gAC_BidirectionalControlReqType->DisplayParameters);
- v2gAC_BidirectionalControlReqType->DisplayParameters_isUsed = 1u;
- grammarID = 2707;
- break;
- case 1:
- /* FirstStartTag[CHARACTERS[ENUMERATION]] */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(errn == 0) {
- if(eventCode == 0) {
- errn = decodeNBitUnsignedInteger(stream, 1, &uint32);
- v2gAC_BidirectionalControlReqType->EVOperation = (v2gEVOperationType) uint32;
- v2gAC_BidirectionalControlReqType->EVOperation_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({urn:iso:15118:2:2016:MsgBody}EVOperation) ? */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(eventCode == 0) {
- grammarID = 2708;
- } else {
- errn = EXI_DEVIANT_SUPPORT_NOT_DEPLOYED; /* or also typecast and nillable */
- }
- }
- break;
- case 2:
- errn = decode_v2gPhysicalValueType(stream, &v2gAC_BidirectionalControlReqType->EVMaximumChargePower);
- grammarID = 2709;
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 2707:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgBody}EVOperation), START_ELEMENT({urn:iso:15118:2:2016:MsgBody}EVMaximumChargePower)] */
- 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, 1, &uint32);
- v2gAC_BidirectionalControlReqType->EVOperation = (v2gEVOperationType) uint32;
- v2gAC_BidirectionalControlReqType->EVOperation_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({urn:iso:15118:2:2016:MsgBody}EVOperation) ? */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(eventCode == 0) {
- grammarID = 2708;
- } else {
- errn = EXI_DEVIANT_SUPPORT_NOT_DEPLOYED; /* or also typecast and nillable */
- }
- }
- break;
- case 1:
- errn = decode_v2gPhysicalValueType(stream, &v2gAC_BidirectionalControlReqType->EVMaximumChargePower);
- grammarID = 2709;
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 2708:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgBody}EVMaximumChargePower)] */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- errn = decode_v2gPhysicalValueType(stream, &v2gAC_BidirectionalControlReqType->EVMaximumChargePower);
- grammarID = 2709;
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 2709:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgBody}EVMaximumDischargePower), START_ELEMENT({urn:iso:15118:2:2016:MsgBody}EVMaximumChargeCurrent)] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- errn = decode_v2gPhysicalValueType(stream, &v2gAC_BidirectionalControlReqType->EVMaximumDischargePower);
- v2gAC_BidirectionalControlReqType->EVMaximumDischargePower_isUsed = 1u;
- grammarID = 2710;
- break;
- case 1:
- errn = decode_v2gPhysicalValueType(stream, &v2gAC_BidirectionalControlReqType->EVMaximumChargeCurrent);
- grammarID = 2711;
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 2710:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgBody}EVMaximumChargeCurrent)] */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- errn = decode_v2gPhysicalValueType(stream, &v2gAC_BidirectionalControlReqType->EVMaximumChargeCurrent);
- grammarID = 2711;
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 2711:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgBody}EVMaximumDischargeCurrent), START_ELEMENT({urn:iso:15118:2:2016:MsgBody}EVMinimumChargeCurrent)] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- errn = decode_v2gPhysicalValueType(stream, &v2gAC_BidirectionalControlReqType->EVMaximumDischargeCurrent);
- v2gAC_BidirectionalControlReqType->EVMaximumDischargeCurrent_isUsed = 1u;
- grammarID = 2712;
- break;
- case 1:
- errn = decode_v2gPhysicalValueType(stream, &v2gAC_BidirectionalControlReqType->EVMinimumChargeCurrent);
- grammarID = 2713;
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 2712:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgBody}EVMinimumChargeCurrent)] */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- errn = decode_v2gPhysicalValueType(stream, &v2gAC_BidirectionalControlReqType->EVMinimumChargeCurrent);
- grammarID = 2713;
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 2713:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgBody}EVMinimumDischargeCurrent), START_ELEMENT({urn:iso:15118:2:2016:MsgBody}EVPresentActivePower)] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- errn = decode_v2gPhysicalValueType(stream, &v2gAC_BidirectionalControlReqType->EVMinimumDischargeCurrent);
- v2gAC_BidirectionalControlReqType->EVMinimumDischargeCurrent_isUsed = 1u;
- grammarID = 2714;
- break;
- case 1:
- errn = decode_v2gPhysicalValueType(stream, &v2gAC_BidirectionalControlReqType->EVPresentActivePower);
- grammarID = 2715;
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 2714:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgBody}EVPresentActivePower)] */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- errn = decode_v2gPhysicalValueType(stream, &v2gAC_BidirectionalControlReqType->EVPresentActivePower);
- grammarID = 2715;
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 2715:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgBody}EVPresentReactivePower)] */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- errn = decode_v2gPhysicalValueType(stream, &v2gAC_BidirectionalControlReqType->EVPresentReactivePower);
- grammarID = 2;
- 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:2016:MsgBody,BodyBaseType', base type name='anyType', content type='EMPTY', isAbstract='true', hasTypeId='false', final='0', block='0', derivedBy='RESTRICTION'. */
-static int decode_v2gBodyBaseType(bitstream_t* stream, struct v2gBodyBaseType* v2gBodyBaseType) {
- int grammarID = 4;
- int done = 0;
-
- init_v2gBodyBaseType(v2gBodyBaseType);
-
- while(!done) {
- switch(grammarID) {
- case 4:
- /* FirstStartTag[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:2016:MsgBody,SessionStopReqType', base type name='BodyBaseType', content type='ELEMENT', isAbstract='false', hasTypeId='false', final='0', block='0', particle='("urn:iso:15118:2:2016:MsgBody":ChargingSession)', derivedBy='EXTENSION'. */
-static int decode_v2gSessionStopReqType(bitstream_t* stream, struct v2gSessionStopReqType* v2gSessionStopReqType) {
- int grammarID = 2716;
- int done = 0;
-
- init_v2gSessionStopReqType(v2gSessionStopReqType);
-
- while(!done) {
- switch(grammarID) {
- case 2716:
- /* FirstStartTag[START_ELEMENT({urn:iso:15118:2:2016:MsgBody}ChargingSession)] */
- 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, 1, &uint32);
- v2gSessionStopReqType->ChargingSession = (v2gchargingSessionType) 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({urn:iso:15118:2:2016:MsgBody}ChargingSession) ? */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(eventCode == 0) {
- grammarID = 2;
- } else {
- errn = EXI_DEVIANT_SUPPORT_NOT_DEPLOYED; /* or also typecast and nillable */
- }
- }
- 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:2016:MsgDataTypes,EntryType', base type name='anyType', content type='ELEMENT', isAbstract='true', hasTypeId='false', final='0', block='0', particle='("urn:iso:15118:2:2016:MsgDataTypes":RelativeTimeInterval)', derivedBy='RESTRICTION'. */
-static int decode_v2gEntryType(bitstream_t* stream, struct v2gEntryType* v2gEntryType) {
- int grammarID = 2717;
- int done = 0;
-
- init_v2gEntryType(v2gEntryType);
-
- while(!done) {
- switch(grammarID) {
- case 2717:
- /* FirstStartTag[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}RelativeTimeInterval)] */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- errn = decode_v2gRelativeTimeIntervalType(stream, &v2gEntryType->RelativeTimeInterval);
- grammarID = 2;
- 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:2016:MsgBody,PowerDemandResType', base type name='V2GResponseType', content type='ELEMENT', isAbstract='false', hasTypeId='false', final='0', block='0', particle='(("urn:iso:15118:2:2016:MsgBody":ResponseCode,"urn:iso:15118:2:2016:MsgBody":EVSEStatus{0-1}),("urn:iso:15118:2:2016:MsgBody":EVSEOutputPower,"urn:iso:15118:2:2016:MsgBody":EVSEID,"urn:iso:15118:2:2016:MsgBody":SAScheduleTupleID{0-1},"urn:iso:15118:2:2016:MsgBody":MeterInfo{0-1},"urn:iso:15118:2:2016:MsgBody":ReceiptRequired{0-1},"urn:iso:15118:2:2016:MsgBody":PowerDemandParameters{0-1}))', derivedBy='EXTENSION'. */
-static int decode_v2gPowerDemandResType(bitstream_t* stream, struct v2gPowerDemandResType* v2gPowerDemandResType) {
- int grammarID = 2718;
- int done = 0;
-
- init_v2gPowerDemandResType(v2gPowerDemandResType);
-
- while(!done) {
- switch(grammarID) {
- case 2718:
- /* FirstStartTag[START_ELEMENT({urn:iso:15118:2:2016:MsgBody}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, 5, &uint32);
- v2gPowerDemandResType->ResponseCode = (v2gresponseCodeType) 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({urn:iso:15118:2:2016:MsgBody}ResponseCode) ? */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(eventCode == 0) {
- grammarID = 2719;
- } else {
- errn = EXI_DEVIANT_SUPPORT_NOT_DEPLOYED; /* or also typecast and nillable */
- }
- }
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 2719:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgBody}EVSEStatus), START_ELEMENT({urn:iso:15118:2:2016:MsgBody}EVSEOutputPower)] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- errn = decode_v2gEVSEStatusType(stream, &v2gPowerDemandResType->EVSEStatus);
- v2gPowerDemandResType->EVSEStatus_isUsed = 1u;
- grammarID = 2720;
- break;
- case 1:
- errn = decode_v2gPhysicalValueType(stream, &v2gPowerDemandResType->EVSEOutputPower);
- grammarID = 2721;
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 2720:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgBody}EVSEOutputPower)] */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- errn = decode_v2gPhysicalValueType(stream, &v2gPowerDemandResType->EVSEOutputPower);
- grammarID = 2721;
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 2721:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgBody}EVSEID)] */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- /* FirstStartTag[CHARACTERS[STRING]] */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(errn == 0) {
- if(eventCode == 0) {
- errn = decodeUnsignedInteger16(stream, &v2gPowerDemandResType->EVSEID.charactersLen);
- if (errn == 0) {
- if (v2gPowerDemandResType->EVSEID.charactersLen >= 2) {
- v2gPowerDemandResType->EVSEID.charactersLen = (uint16_t)(v2gPowerDemandResType->EVSEID.charactersLen - 2); /* string table miss */
- errn = decodeCharacters(stream, v2gPowerDemandResType->EVSEID.charactersLen, v2gPowerDemandResType->EVSEID.characters, v2gPowerDemandResType_EVSEID_CHARACTERS_SIZE);
- } else {
- /* string table hit */
- errn = EXI_ERROR_STRINGVALUES_NOT_SUPPORTED;
- }
- }
- } 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({urn:iso:15118:2:2016:MsgBody}EVSEID) ? */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(eventCode == 0) {
- grammarID = 2722;
- } else {
- errn = EXI_DEVIANT_SUPPORT_NOT_DEPLOYED; /* or also typecast and nillable */
- }
- }
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 2722:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgBody}SAScheduleTupleID), START_ELEMENT({urn:iso:15118:2:2016:MsgBody}MeterInfo), START_ELEMENT({urn:iso:15118:2:2016:MsgBody}ReceiptRequired), START_ELEMENT({urn:iso:15118:2:2016:MsgBody}PowerDemandParameters), END_ELEMENT] */
- errn = decodeNBitUnsignedInteger(stream, 3, &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));
- v2gPowerDemandResType->SAScheduleTupleID = (uint8_t)(uint32 + 1);
- v2gPowerDemandResType->SAScheduleTupleID_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({urn:iso:15118:2:2016:MsgBody}SAScheduleTupleID) ? */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(eventCode == 0) {
- grammarID = 2723;
- } else {
- errn = EXI_DEVIANT_SUPPORT_NOT_DEPLOYED; /* or also typecast and nillable */
- }
- }
- break;
- case 1:
- errn = decode_v2gMeterInfoType(stream, &v2gPowerDemandResType->MeterInfo);
- v2gPowerDemandResType->MeterInfo_isUsed = 1u;
- grammarID = 2724;
- break;
- case 2:
- /* FirstStartTag[CHARACTERS[BOOLEAN]] */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(errn == 0) {
- if(eventCode == 0) {
- errn = decodeBoolean(stream, &v2gPowerDemandResType->ReceiptRequired);
- v2gPowerDemandResType->ReceiptRequired_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({urn:iso:15118:2:2016:MsgBody}ReceiptRequired) ? */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(eventCode == 0) {
- grammarID = 2431;
- } else {
- errn = EXI_DEVIANT_SUPPORT_NOT_DEPLOYED; /* or also typecast and nillable */
- }
- }
- break;
- case 3:
- errn = decode_v2gParameterSetType(stream, &v2gPowerDemandResType->PowerDemandParameters);
- v2gPowerDemandResType->PowerDemandParameters_isUsed = 1u;
- grammarID = 2;
- break;
- case 4:
- done = 1;
- grammarID = 3;
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 2723:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgBody}MeterInfo), START_ELEMENT({urn:iso:15118:2:2016:MsgBody}ReceiptRequired), START_ELEMENT({urn:iso:15118:2:2016:MsgBody}PowerDemandParameters), END_ELEMENT] */
- errn = decodeNBitUnsignedInteger(stream, 3, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- errn = decode_v2gMeterInfoType(stream, &v2gPowerDemandResType->MeterInfo);
- v2gPowerDemandResType->MeterInfo_isUsed = 1u;
- grammarID = 2724;
- break;
- case 1:
- /* FirstStartTag[CHARACTERS[BOOLEAN]] */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(errn == 0) {
- if(eventCode == 0) {
- errn = decodeBoolean(stream, &v2gPowerDemandResType->ReceiptRequired);
- v2gPowerDemandResType->ReceiptRequired_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({urn:iso:15118:2:2016:MsgBody}ReceiptRequired) ? */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(eventCode == 0) {
- grammarID = 2431;
- } else {
- errn = EXI_DEVIANT_SUPPORT_NOT_DEPLOYED; /* or also typecast and nillable */
- }
- }
- break;
- case 2:
- errn = decode_v2gParameterSetType(stream, &v2gPowerDemandResType->PowerDemandParameters);
- v2gPowerDemandResType->PowerDemandParameters_isUsed = 1u;
- grammarID = 2;
- break;
- case 3:
- done = 1;
- grammarID = 3;
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 2724:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgBody}ReceiptRequired), START_ELEMENT({urn:iso:15118:2:2016:MsgBody}PowerDemandParameters), END_ELEMENT] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- /* FirstStartTag[CHARACTERS[BOOLEAN]] */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(errn == 0) {
- if(eventCode == 0) {
- errn = decodeBoolean(stream, &v2gPowerDemandResType->ReceiptRequired);
- v2gPowerDemandResType->ReceiptRequired_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({urn:iso:15118:2:2016:MsgBody}ReceiptRequired) ? */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(eventCode == 0) {
- grammarID = 2431;
- } else {
- errn = EXI_DEVIANT_SUPPORT_NOT_DEPLOYED; /* or also typecast and nillable */
- }
- }
- break;
- case 1:
- errn = decode_v2gParameterSetType(stream, &v2gPowerDemandResType->PowerDemandParameters);
- v2gPowerDemandResType->PowerDemandParameters_isUsed = 1u;
- grammarID = 2;
- break;
- case 2:
- done = 1;
- grammarID = 3;
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 2431:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgBody}PowerDemandParameters), END_ELEMENT] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- errn = decode_v2gParameterSetType(stream, &v2gPowerDemandResType->PowerDemandParameters);
- v2gPowerDemandResType->PowerDemandParameters_isUsed = 1u;
- grammarID = 2;
- 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:2016:MsgBody,SessionSetupResType', base type name='V2GResponseType', content type='ELEMENT', isAbstract='false', hasTypeId='false', final='0', block='0', particle='(("urn:iso:15118:2:2016:MsgBody":ResponseCode,"urn:iso:15118:2:2016:MsgBody":EVSEStatus{0-1}),("urn:iso:15118:2:2016:MsgBody":EVSEID,"urn:iso:15118:2:2016:MsgBody":EVSETimeStamp{0-1}))', derivedBy='EXTENSION'. */
-static int decode_v2gSessionSetupResType(bitstream_t* stream, struct v2gSessionSetupResType* v2gSessionSetupResType) {
- int grammarID = 2725;
- int done = 0;
-
- init_v2gSessionSetupResType(v2gSessionSetupResType);
-
- while(!done) {
- switch(grammarID) {
- case 2725:
- /* FirstStartTag[START_ELEMENT({urn:iso:15118:2:2016:MsgBody}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, 5, &uint32);
- v2gSessionSetupResType->ResponseCode = (v2gresponseCodeType) 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({urn:iso:15118:2:2016:MsgBody}ResponseCode) ? */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(eventCode == 0) {
- grammarID = 2726;
- } else {
- errn = EXI_DEVIANT_SUPPORT_NOT_DEPLOYED; /* or also typecast and nillable */
- }
- }
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 2726:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgBody}EVSEStatus), START_ELEMENT({urn:iso:15118:2:2016:MsgBody}EVSEID)] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- errn = decode_v2gEVSEStatusType(stream, &v2gSessionSetupResType->EVSEStatus);
- v2gSessionSetupResType->EVSEStatus_isUsed = 1u;
- grammarID = 2727;
- break;
- case 1:
- /* FirstStartTag[CHARACTERS[STRING]] */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(errn == 0) {
- if(eventCode == 0) {
- errn = decodeUnsignedInteger16(stream, &v2gSessionSetupResType->EVSEID.charactersLen);
- if (errn == 0) {
- if (v2gSessionSetupResType->EVSEID.charactersLen >= 2) {
- v2gSessionSetupResType->EVSEID.charactersLen = (uint16_t)(v2gSessionSetupResType->EVSEID.charactersLen - 2); /* string table miss */
- errn = decodeCharacters(stream, v2gSessionSetupResType->EVSEID.charactersLen, v2gSessionSetupResType->EVSEID.characters, v2gSessionSetupResType_EVSEID_CHARACTERS_SIZE);
- } else {
- /* string table hit */
- errn = EXI_ERROR_STRINGVALUES_NOT_SUPPORTED;
- }
- }
- } 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({urn:iso:15118:2:2016:MsgBody}EVSEID) ? */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(eventCode == 0) {
- grammarID = 2728;
- } else {
- errn = EXI_DEVIANT_SUPPORT_NOT_DEPLOYED; /* or also typecast and nillable */
- }
- }
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 2727:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgBody}EVSEID)] */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- /* FirstStartTag[CHARACTERS[STRING]] */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(errn == 0) {
- if(eventCode == 0) {
- errn = decodeUnsignedInteger16(stream, &v2gSessionSetupResType->EVSEID.charactersLen);
- if (errn == 0) {
- if (v2gSessionSetupResType->EVSEID.charactersLen >= 2) {
- v2gSessionSetupResType->EVSEID.charactersLen = (uint16_t)(v2gSessionSetupResType->EVSEID.charactersLen - 2); /* string table miss */
- errn = decodeCharacters(stream, v2gSessionSetupResType->EVSEID.charactersLen, v2gSessionSetupResType->EVSEID.characters, v2gSessionSetupResType_EVSEID_CHARACTERS_SIZE);
- } else {
- /* string table hit */
- errn = EXI_ERROR_STRINGVALUES_NOT_SUPPORTED;
- }
- }
- } 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({urn:iso:15118:2:2016:MsgBody}EVSEID) ? */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(eventCode == 0) {
- grammarID = 2728;
- } else {
- errn = EXI_DEVIANT_SUPPORT_NOT_DEPLOYED; /* or also typecast and nillable */
- }
- }
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 2728:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgBody}EVSETimeStamp), END_ELEMENT] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- /* First(xsi:type)StartTag[CHARACTERS[INTEGER]] */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(errn == 0) {
- if(eventCode == 0) {
- errn = decodeInteger64(stream, &v2gSessionSetupResType->EVSETimeStamp);
- v2gSessionSetupResType->EVSETimeStamp_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({urn:iso:15118:2:2016:MsgBody}EVSETimeStamp) ? */
- 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:2016:MsgBody,VehicleCheckOutResType', base type name='V2GResponseType', content type='ELEMENT', isAbstract='false', hasTypeId='false', final='0', block='0', particle='(("urn:iso:15118:2:2016:MsgBody":ResponseCode,"urn:iso:15118:2:2016:MsgBody":EVSEStatus{0-1}),("urn:iso:15118:2:2016:MsgBody":EVSECheckOutStatus))', derivedBy='EXTENSION'. */
-static int decode_v2gVehicleCheckOutResType(bitstream_t* stream, struct v2gVehicleCheckOutResType* v2gVehicleCheckOutResType) {
- int grammarID = 2729;
- int done = 0;
-
- init_v2gVehicleCheckOutResType(v2gVehicleCheckOutResType);
-
- while(!done) {
- switch(grammarID) {
- case 2729:
- /* FirstStartTag[START_ELEMENT({urn:iso:15118:2:2016:MsgBody}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, 5, &uint32);
- v2gVehicleCheckOutResType->ResponseCode = (v2gresponseCodeType) 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({urn:iso:15118:2:2016:MsgBody}ResponseCode) ? */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(eventCode == 0) {
- grammarID = 2730;
- } else {
- errn = EXI_DEVIANT_SUPPORT_NOT_DEPLOYED; /* or also typecast and nillable */
- }
- }
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 2730:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgBody}EVSEStatus), START_ELEMENT({urn:iso:15118:2:2016:MsgBody}EVSECheckOutStatus)] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- errn = decode_v2gEVSEStatusType(stream, &v2gVehicleCheckOutResType->EVSEStatus);
- v2gVehicleCheckOutResType->EVSEStatus_isUsed = 1u;
- grammarID = 2731;
- break;
- case 1:
- /* FirstStartTag[CHARACTERS[ENUMERATION]] */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(errn == 0) {
- if(eventCode == 0) {
- errn = decodeNBitUnsignedInteger(stream, 2, &uint32);
- v2gVehicleCheckOutResType->EVSECheckOutStatus = (v2gEVCheckOutStatusType) 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({urn:iso:15118:2:2016:MsgBody}EVSECheckOutStatus) ? */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(eventCode == 0) {
- grammarID = 2;
- } else {
- errn = EXI_DEVIANT_SUPPORT_NOT_DEPLOYED; /* or also typecast and nillable */
- }
- }
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 2731:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgBody}EVSECheckOutStatus)] */
- 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);
- v2gVehicleCheckOutResType->EVSECheckOutStatus = (v2gEVCheckOutStatusType) 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({urn:iso:15118:2:2016:MsgBody}EVSECheckOutStatus) ? */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(eventCode == 0) {
- grammarID = 2;
- } else {
- errn = EXI_DEVIANT_SUPPORT_NOT_DEPLOYED; /* or also typecast and nillable */
- }
- }
- 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='http://www.w3.org/2000/09/xmldsig#,KeyValueType', base type name='anyType', content type='MIXED', isAbstract='false', hasTypeId='false', final='0', block='0', particle='("http://www.w3.org/2000/09/xmldsig#":DSAKeyValue|"http://www.w3.org/2000/09/xmldsig#":RSAKeyValue|(WC[##other:"http://www.w3.org/2000/09/xmldsig#"]))', derivedBy='RESTRICTION'. */
-static int decode_v2gKeyValueType(bitstream_t* stream, struct v2gKeyValueType* v2gKeyValueType) {
- int grammarID = 2732;
- int done = 0;
-
- init_v2gKeyValueType(v2gKeyValueType);
-
- while(!done) {
- switch(grammarID) {
- case 2732:
- /* FirstStartTag[START_ELEMENT({http://www.w3.org/2000/09/xmldsig#}DSAKeyValue), START_ELEMENT({http://www.w3.org/2000/09/xmldsig#}RSAKeyValue), START_ELEMENT_GENERIC, CHARACTERS_GENERIC[STRING]] */
- errn = decodeNBitUnsignedInteger(stream, 3, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- errn = decode_v2gDSAKeyValueType(stream, &v2gKeyValueType->DSAKeyValue);
- v2gKeyValueType->DSAKeyValue_isUsed = 1u;
- grammarID = 2733;
- break;
- case 1:
- errn = decode_v2gRSAKeyValueType(stream, &v2gKeyValueType->RSAKeyValue);
- v2gKeyValueType->RSAKeyValue_isUsed = 1u;
- grammarID = 2733;
- break;
- case 2:
- errn = EXI_UNSUPPORTED_EVENT_CODE_CHARACTERISTICS;
- /* TODO unsupported event : START_ELEMENT_GENERIC */
- grammarID = 2733;
- break;
- case 3:
- errn = decodeUnsignedInteger16(stream, &v2gKeyValueType->ANY.charactersLen);
- if (errn == 0) {
- if (v2gKeyValueType->ANY.charactersLen >= 2) {
- v2gKeyValueType->ANY.charactersLen = (uint16_t)(v2gKeyValueType->ANY.charactersLen - 2); /* string table miss */
- errn = decodeCharacters(stream, v2gKeyValueType->ANY.charactersLen, v2gKeyValueType->ANY.characters, v2gKeyValueType_ANY_CHARACTERS_SIZE);
- } else {
- /* string table hit */
- errn = EXI_ERROR_STRINGVALUES_NOT_SUPPORTED;
- }
- }
- v2gKeyValueType->ANY_isUsed = 1u;
- grammarID = 2734;
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 2733:
- /* Element[END_ELEMENT, CHARACTERS_GENERIC[STRING]] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- done = 1;
- grammarID = 3;
- break;
- case 1:
- errn = decodeUnsignedInteger16(stream, &v2gKeyValueType->ANY.charactersLen);
- if (errn == 0) {
- if (v2gKeyValueType->ANY.charactersLen >= 2) {
- v2gKeyValueType->ANY.charactersLen = (uint16_t)(v2gKeyValueType->ANY.charactersLen - 2); /* string table miss */
- errn = decodeCharacters(stream, v2gKeyValueType->ANY.charactersLen, v2gKeyValueType->ANY.characters, v2gKeyValueType_ANY_CHARACTERS_SIZE);
- } else {
- /* string table hit */
- errn = EXI_ERROR_STRINGVALUES_NOT_SUPPORTED;
- }
- }
- v2gKeyValueType->ANY_isUsed = 1u;
- grammarID = 2733;
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 2734:
- /* Element[START_ELEMENT({http://www.w3.org/2000/09/xmldsig#}DSAKeyValue), START_ELEMENT({http://www.w3.org/2000/09/xmldsig#}RSAKeyValue), START_ELEMENT_GENERIC, CHARACTERS_GENERIC[STRING]] */
- errn = decodeNBitUnsignedInteger(stream, 3, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- errn = decode_v2gDSAKeyValueType(stream, &v2gKeyValueType->DSAKeyValue);
- v2gKeyValueType->DSAKeyValue_isUsed = 1u;
- grammarID = 2733;
- break;
- case 1:
- errn = decode_v2gRSAKeyValueType(stream, &v2gKeyValueType->RSAKeyValue);
- v2gKeyValueType->RSAKeyValue_isUsed = 1u;
- grammarID = 2733;
- break;
- case 2:
- errn = EXI_UNSUPPORTED_EVENT_CODE_CHARACTERISTICS;
- /* TODO unsupported event : START_ELEMENT_GENERIC */
- grammarID = 2733;
- break;
- case 3:
- errn = decodeUnsignedInteger16(stream, &v2gKeyValueType->ANY.charactersLen);
- if (errn == 0) {
- if (v2gKeyValueType->ANY.charactersLen >= 2) {
- v2gKeyValueType->ANY.charactersLen = (uint16_t)(v2gKeyValueType->ANY.charactersLen - 2); /* string table miss */
- errn = decodeCharacters(stream, v2gKeyValueType->ANY.charactersLen, v2gKeyValueType->ANY.characters, v2gKeyValueType_ANY_CHARACTERS_SIZE);
- } else {
- /* string table hit */
- errn = EXI_ERROR_STRINGVALUES_NOT_SUPPORTED;
- }
- }
- v2gKeyValueType->ANY_isUsed = 1u;
- grammarID = 2734;
- 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:2016:MsgDataTypes,EMAIDType', base type name='eMAIDType', content type='SIMPLE', isAbstract='false', hasTypeId='false', final='0', block='0', derivedBy='EXTENSION'. */
-static int decode_v2gEMAIDType(bitstream_t* stream, struct v2gEMAIDType* v2gEMAIDType) {
- int grammarID = 2735;
- int done = 0;
-
- init_v2gEMAIDType(v2gEMAIDType);
-
- while(!done) {
- switch(grammarID) {
- case 2735:
- /* FirstStartTag[ATTRIBUTE[STRING]({urn:iso:15118:2:2016:MsgDataTypes}Id)] */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- errn = decodeUnsignedInteger16(stream, &v2gEMAIDType->Id.charactersLen);
- if (errn == 0) {
- if (v2gEMAIDType->Id.charactersLen >= 2) {
- v2gEMAIDType->Id.charactersLen = (uint16_t)(v2gEMAIDType->Id.charactersLen - 2); /* string table miss */
- errn = decodeCharacters(stream, v2gEMAIDType->Id.charactersLen, v2gEMAIDType->Id.characters, v2gEMAIDType_Id_CHARACTERS_SIZE);
- } else {
- /* string table hit */
- errn = EXI_ERROR_STRINGVALUES_NOT_SUPPORTED;
- }
- }
- grammarID = 2736;
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 2736:
- /* StartTag[CHARACTERS[STRING]] */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- errn = decodeUnsignedInteger16(stream, &v2gEMAIDType->CONTENT.charactersLen);
- if (errn == 0) {
- if (v2gEMAIDType->CONTENT.charactersLen >= 2) {
- v2gEMAIDType->CONTENT.charactersLen = (uint16_t)(v2gEMAIDType->CONTENT.charactersLen - 2); /* string table miss */
- errn = decodeCharacters(stream, v2gEMAIDType->CONTENT.charactersLen, v2gEMAIDType->CONTENT.characters, v2gEMAIDType_CONTENT_CHARACTERS_SIZE);
- } else {
- /* string table hit */
- errn = EXI_ERROR_STRINGVALUES_NOT_SUPPORTED;
- }
- }
- grammarID = 2;
- 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='http://www.w3.org/2000/09/xmldsig#,TransformsType', base type name='anyType', content type='ELEMENT', isAbstract='false', hasTypeId='false', final='0', block='0', particle='("http://www.w3.org/2000/09/xmldsig#":Transform{1-UNBOUNDED})', derivedBy='RESTRICTION'. */
-static int decode_v2gTransformsType(bitstream_t* stream, struct v2gTransformsType* v2gTransformsType) {
- int grammarID = 2737;
- int done = 0;
-
- init_v2gTransformsType(v2gTransformsType);
-
- while(!done) {
- switch(grammarID) {
- case 2737:
- /* FirstStartTag[START_ELEMENT({http://www.w3.org/2000/09/xmldsig#}Transform)] */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gTransformsType->Transform.arrayLen < v2gTransformsType_Transform_ARRAY_SIZE) {
- errn = decode_v2gTransformType(stream, &v2gTransformsType->Transform.array[v2gTransformsType->Transform.arrayLen++]);
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- grammarID = 2738;
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 2738:
- /* Element[START_ELEMENT({http://www.w3.org/2000/09/xmldsig#}Transform), END_ELEMENT] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gTransformsType->Transform.arrayLen < v2gTransformsType_Transform_ARRAY_SIZE) {
- errn = decode_v2gTransformType(stream, &v2gTransformsType->Transform.array[v2gTransformsType->Transform.arrayLen++]);
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- grammarID = 2738;
- break;
- case 1:
- 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:2016:MsgBody,CurrentDemandReqType', base type name='ChargeLoopReqType', content type='ELEMENT', isAbstract='false', hasTypeId='false', final='0', block='0', particle='(("urn:iso:15118:2:2016:MsgBody":EVTargetEnergyRequest,"urn:iso:15118:2:2016:MsgBody":EVMaximumEnergyRequest{0-1},"urn:iso:15118:2:2016:MsgBody":EVMinimumEnergyRequest{0-1},"urn:iso:15118:2:2016:MsgBody":DisplayParameters{0-1}),("urn:iso:15118:2:2016:MsgBody":EVTargetCurrent,"urn:iso:15118:2:2016:MsgBody":EVTargetVoltage,"urn:iso:15118:2:2016:MsgBody":EVMaximumCurrent{0-1},"urn:iso:15118:2:2016:MsgBody":EVMaximumPower{0-1},"urn:iso:15118:2:2016:MsgBody":EVMaximumVoltage{0-1}))', derivedBy='EXTENSION'. */
-static int decode_v2gCurrentDemandReqType(bitstream_t* stream, struct v2gCurrentDemandReqType* v2gCurrentDemandReqType) {
- int grammarID = 2739;
- int done = 0;
-
- init_v2gCurrentDemandReqType(v2gCurrentDemandReqType);
-
- while(!done) {
- switch(grammarID) {
- case 2739:
- /* FirstStartTag[START_ELEMENT({urn:iso:15118:2:2016:MsgBody}EVTargetEnergyRequest)] */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- errn = decode_v2gPhysicalValueType(stream, &v2gCurrentDemandReqType->EVTargetEnergyRequest);
- grammarID = 2740;
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 2740:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgBody}EVMaximumEnergyRequest), START_ELEMENT({urn:iso:15118:2:2016:MsgBody}EVMinimumEnergyRequest), START_ELEMENT({urn:iso:15118:2:2016:MsgBody}DisplayParameters), START_ELEMENT({urn:iso:15118:2:2016:MsgBody}EVTargetCurrent)] */
- errn = decodeNBitUnsignedInteger(stream, 3, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- errn = decode_v2gPhysicalValueType(stream, &v2gCurrentDemandReqType->EVMaximumEnergyRequest);
- v2gCurrentDemandReqType->EVMaximumEnergyRequest_isUsed = 1u;
- grammarID = 2741;
- break;
- case 1:
- errn = decode_v2gPhysicalValueType(stream, &v2gCurrentDemandReqType->EVMinimumEnergyRequest);
- v2gCurrentDemandReqType->EVMinimumEnergyRequest_isUsed = 1u;
- grammarID = 2742;
- break;
- case 2:
- errn = decode_v2gDisplayParametersType(stream, &v2gCurrentDemandReqType->DisplayParameters);
- v2gCurrentDemandReqType->DisplayParameters_isUsed = 1u;
- grammarID = 2743;
- break;
- case 3:
- errn = decode_v2gPhysicalValueType(stream, &v2gCurrentDemandReqType->EVTargetCurrent);
- grammarID = 2744;
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 2741:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgBody}EVMinimumEnergyRequest), START_ELEMENT({urn:iso:15118:2:2016:MsgBody}DisplayParameters), START_ELEMENT({urn:iso:15118:2:2016:MsgBody}EVTargetCurrent)] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- errn = decode_v2gPhysicalValueType(stream, &v2gCurrentDemandReqType->EVMinimumEnergyRequest);
- v2gCurrentDemandReqType->EVMinimumEnergyRequest_isUsed = 1u;
- grammarID = 2742;
- break;
- case 1:
- errn = decode_v2gDisplayParametersType(stream, &v2gCurrentDemandReqType->DisplayParameters);
- v2gCurrentDemandReqType->DisplayParameters_isUsed = 1u;
- grammarID = 2743;
- break;
- case 2:
- errn = decode_v2gPhysicalValueType(stream, &v2gCurrentDemandReqType->EVTargetCurrent);
- grammarID = 2744;
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 2742:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgBody}DisplayParameters), START_ELEMENT({urn:iso:15118:2:2016:MsgBody}EVTargetCurrent)] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- errn = decode_v2gDisplayParametersType(stream, &v2gCurrentDemandReqType->DisplayParameters);
- v2gCurrentDemandReqType->DisplayParameters_isUsed = 1u;
- grammarID = 2743;
- break;
- case 1:
- errn = decode_v2gPhysicalValueType(stream, &v2gCurrentDemandReqType->EVTargetCurrent);
- grammarID = 2744;
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 2743:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgBody}EVTargetCurrent)] */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- errn = decode_v2gPhysicalValueType(stream, &v2gCurrentDemandReqType->EVTargetCurrent);
- grammarID = 2744;
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 2744:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgBody}EVTargetVoltage)] */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- errn = decode_v2gPhysicalValueType(stream, &v2gCurrentDemandReqType->EVTargetVoltage);
- grammarID = 2745;
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 2745:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgBody}EVMaximumCurrent), START_ELEMENT({urn:iso:15118:2:2016:MsgBody}EVMaximumPower), START_ELEMENT({urn:iso:15118:2:2016:MsgBody}EVMaximumVoltage), END_ELEMENT] */
- errn = decodeNBitUnsignedInteger(stream, 3, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- errn = decode_v2gPhysicalValueType(stream, &v2gCurrentDemandReqType->EVMaximumCurrent);
- v2gCurrentDemandReqType->EVMaximumCurrent_isUsed = 1u;
- grammarID = 2746;
- break;
- case 1:
- errn = decode_v2gPhysicalValueType(stream, &v2gCurrentDemandReqType->EVMaximumPower);
- v2gCurrentDemandReqType->EVMaximumPower_isUsed = 1u;
- grammarID = 2747;
- break;
- case 2:
- errn = decode_v2gPhysicalValueType(stream, &v2gCurrentDemandReqType->EVMaximumVoltage);
- v2gCurrentDemandReqType->EVMaximumVoltage_isUsed = 1u;
- grammarID = 2;
- break;
- case 3:
- done = 1;
- grammarID = 3;
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 2746:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgBody}EVMaximumPower), START_ELEMENT({urn:iso:15118:2:2016:MsgBody}EVMaximumVoltage), END_ELEMENT] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- errn = decode_v2gPhysicalValueType(stream, &v2gCurrentDemandReqType->EVMaximumPower);
- v2gCurrentDemandReqType->EVMaximumPower_isUsed = 1u;
- grammarID = 2747;
- break;
- case 1:
- errn = decode_v2gPhysicalValueType(stream, &v2gCurrentDemandReqType->EVMaximumVoltage);
- v2gCurrentDemandReqType->EVMaximumVoltage_isUsed = 1u;
- grammarID = 2;
- break;
- case 2:
- done = 1;
- grammarID = 3;
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 2747:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgBody}EVMaximumVoltage), END_ELEMENT] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- errn = decode_v2gPhysicalValueType(stream, &v2gCurrentDemandReqType->EVMaximumVoltage);
- v2gCurrentDemandReqType->EVMaximumVoltage_isUsed = 1u;
- grammarID = 2;
- 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='http://www.w3.org/2000/09/xmldsig#,RetrievalMethodType', base type name='anyType', content type='ELEMENT', isAbstract='false', hasTypeId='false', final='0', block='0', particle='("http://www.w3.org/2000/09/xmldsig#":Transforms{0-1})', derivedBy='RESTRICTION'. */
-static int decode_v2gRetrievalMethodType(bitstream_t* stream, struct v2gRetrievalMethodType* v2gRetrievalMethodType) {
- int grammarID = 2748;
- int done = 0;
-
- init_v2gRetrievalMethodType(v2gRetrievalMethodType);
-
- while(!done) {
- switch(grammarID) {
- case 2748:
- /* FirstStartTag[ATTRIBUTE[STRING](Type), ATTRIBUTE[STRING](URI), START_ELEMENT({http://www.w3.org/2000/09/xmldsig#}Transforms), END_ELEMENT] */
- errn = decodeNBitUnsignedInteger(stream, 3, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- errn = decodeUnsignedInteger16(stream, &v2gRetrievalMethodType->Type.charactersLen);
- if (errn == 0) {
- if (v2gRetrievalMethodType->Type.charactersLen >= 2) {
- v2gRetrievalMethodType->Type.charactersLen = (uint16_t)(v2gRetrievalMethodType->Type.charactersLen - 2); /* string table miss */
- errn = decodeCharacters(stream, v2gRetrievalMethodType->Type.charactersLen, v2gRetrievalMethodType->Type.characters, v2gRetrievalMethodType_Type_CHARACTERS_SIZE);
- } else {
- /* string table hit */
- errn = EXI_ERROR_STRINGVALUES_NOT_SUPPORTED;
- }
- }
- v2gRetrievalMethodType->Type_isUsed = 1u;
- grammarID = 2749;
- break;
- case 1:
- errn = decodeUnsignedInteger16(stream, &v2gRetrievalMethodType->URI.charactersLen);
- if (errn == 0) {
- if (v2gRetrievalMethodType->URI.charactersLen >= 2) {
- v2gRetrievalMethodType->URI.charactersLen = (uint16_t)(v2gRetrievalMethodType->URI.charactersLen - 2); /* string table miss */
- errn = decodeCharacters(stream, v2gRetrievalMethodType->URI.charactersLen, v2gRetrievalMethodType->URI.characters, v2gRetrievalMethodType_URI_CHARACTERS_SIZE);
- } else {
- /* string table hit */
- errn = EXI_ERROR_STRINGVALUES_NOT_SUPPORTED;
- }
- }
- v2gRetrievalMethodType->URI_isUsed = 1u;
- grammarID = 2750;
- break;
- case 2:
- errn = decode_v2gTransformsType(stream, &v2gRetrievalMethodType->Transforms);
- v2gRetrievalMethodType->Transforms_isUsed = 1u;
- grammarID = 2;
- break;
- case 3:
- done = 1;
- grammarID = 3;
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 2749:
- /* StartTag[ATTRIBUTE[STRING](URI), START_ELEMENT({http://www.w3.org/2000/09/xmldsig#}Transforms), END_ELEMENT] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- errn = decodeUnsignedInteger16(stream, &v2gRetrievalMethodType->URI.charactersLen);
- if (errn == 0) {
- if (v2gRetrievalMethodType->URI.charactersLen >= 2) {
- v2gRetrievalMethodType->URI.charactersLen = (uint16_t)(v2gRetrievalMethodType->URI.charactersLen - 2); /* string table miss */
- errn = decodeCharacters(stream, v2gRetrievalMethodType->URI.charactersLen, v2gRetrievalMethodType->URI.characters, v2gRetrievalMethodType_URI_CHARACTERS_SIZE);
- } else {
- /* string table hit */
- errn = EXI_ERROR_STRINGVALUES_NOT_SUPPORTED;
- }
- }
- v2gRetrievalMethodType->URI_isUsed = 1u;
- grammarID = 2750;
- break;
- case 1:
- errn = decode_v2gTransformsType(stream, &v2gRetrievalMethodType->Transforms);
- v2gRetrievalMethodType->Transforms_isUsed = 1u;
- grammarID = 2;
- break;
- case 2:
- done = 1;
- grammarID = 3;
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 2750:
- /* StartTag[START_ELEMENT({http://www.w3.org/2000/09/xmldsig#}Transforms), END_ELEMENT] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- errn = decode_v2gTransformsType(stream, &v2gRetrievalMethodType->Transforms);
- v2gRetrievalMethodType->Transforms_isUsed = 1u;
- grammarID = 2;
- 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:2016:MsgDataTypes,ServiceListType', base type name='anyType', content type='ELEMENT', isAbstract='false', hasTypeId='false', final='0', block='0', particle='("urn:iso:15118:2:2016:MsgDataTypes":Service{1-8})', derivedBy='RESTRICTION'. */
-static int decode_v2gServiceListType(bitstream_t* stream, struct v2gServiceListType* v2gServiceListType) {
- int grammarID = 2751;
- int done = 0;
-
- init_v2gServiceListType(v2gServiceListType);
-
- while(!done) {
- switch(grammarID) {
- case 2751:
- /* FirstStartTag[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}Service)] */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gServiceListType->Service.arrayLen < v2gServiceListType_Service_ARRAY_SIZE) {
- errn = decode_v2gServiceType(stream, &v2gServiceListType->Service.array[v2gServiceListType->Service.arrayLen++]);
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- grammarID = 2752;
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 2752:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}Service), END_ELEMENT] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gServiceListType->Service.arrayLen < v2gServiceListType_Service_ARRAY_SIZE) {
- errn = decode_v2gServiceType(stream, &v2gServiceListType->Service.array[v2gServiceListType->Service.arrayLen++]);
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- grammarID = 2753;
- break;
- case 1:
- done = 1;
- grammarID = 3;
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 2753:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}Service), END_ELEMENT] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gServiceListType->Service.arrayLen < v2gServiceListType_Service_ARRAY_SIZE) {
- errn = decode_v2gServiceType(stream, &v2gServiceListType->Service.array[v2gServiceListType->Service.arrayLen++]);
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- grammarID = 2754;
- break;
- case 1:
- done = 1;
- grammarID = 3;
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 2754:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}Service), END_ELEMENT] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gServiceListType->Service.arrayLen < v2gServiceListType_Service_ARRAY_SIZE) {
- errn = decode_v2gServiceType(stream, &v2gServiceListType->Service.array[v2gServiceListType->Service.arrayLen++]);
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- grammarID = 2755;
- break;
- case 1:
- done = 1;
- grammarID = 3;
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 2755:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}Service), END_ELEMENT] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gServiceListType->Service.arrayLen < v2gServiceListType_Service_ARRAY_SIZE) {
- errn = decode_v2gServiceType(stream, &v2gServiceListType->Service.array[v2gServiceListType->Service.arrayLen++]);
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- grammarID = 2756;
- break;
- case 1:
- done = 1;
- grammarID = 3;
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 2756:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}Service), END_ELEMENT] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gServiceListType->Service.arrayLen < v2gServiceListType_Service_ARRAY_SIZE) {
- errn = decode_v2gServiceType(stream, &v2gServiceListType->Service.array[v2gServiceListType->Service.arrayLen++]);
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- grammarID = 2757;
- break;
- case 1:
- done = 1;
- grammarID = 3;
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 2757:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}Service), END_ELEMENT] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gServiceListType->Service.arrayLen < v2gServiceListType_Service_ARRAY_SIZE) {
- errn = decode_v2gServiceType(stream, &v2gServiceListType->Service.array[v2gServiceListType->Service.arrayLen++]);
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- grammarID = 2758;
- break;
- case 1:
- done = 1;
- grammarID = 3;
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 2758:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}Service), END_ELEMENT] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gServiceListType->Service.arrayLen < v2gServiceListType_Service_ARRAY_SIZE) {
- errn = decode_v2gServiceType(stream, &v2gServiceListType->Service.array[v2gServiceListType->Service.arrayLen++]);
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- grammarID = 2;
- 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:2016:MsgDataTypes,DC_EVBidirectionalParameterType', base type name='DC_EVChargeParameterType', content type='ELEMENT', isAbstract='false', hasTypeId='false', final='0', block='0', particle='((("urn:iso:15118:2:2016:MsgDataTypes":DepartureTime),("urn:iso:15118:2:2016:MsgDataTypes":EVMaximumChargePower{0-1},"urn:iso:15118:2:2016:MsgDataTypes":EVMinimumChargePower{0-1},"urn:iso:15118:2:2016:MsgDataTypes":EVMaximumChargeCurrent,"urn:iso:15118:2:2016:MsgDataTypes":EVMinimumChargeCurrent,"urn:iso:15118:2:2016:MsgDataTypes":EVMaximumVoltage,"urn:iso:15118:2:2016:MsgDataTypes":EVTargetEnergyRequest{0-1},"urn:iso:15118:2:2016:MsgDataTypes":EVMaximumEnergyRequest{0-1},"urn:iso:15118:2:2016:MsgDataTypes":EVMinimumEnergyRequest{0-1},"urn:iso:15118:2:2016:MsgDataTypes":CurrentSOC{0-1},"urn:iso:15118:2:2016:MsgDataTypes":TargetSOC{0-1},"urn:iso:15118:2:2016:MsgDataTypes":BulkSOC{0-1})),("urn:iso:15118:2:2016:MsgDataTypes":EVMaximumDischargePower{0-1},"urn:iso:15118:2:2016:MsgDataTypes":EVMinimumDischargePower{0-1},"urn:iso:15118:2:2016:MsgDataTypes":EVMaximumDischargeCurrent,"urn:iso:15118:2:2016:MsgDataTypes":EVMinimumDischargeCurrent,"urn:iso:15118:2:2016:MsgDataTypes":EVMinimumVoltage,"urn:iso:15118:2:2016:MsgDataTypes":MinimumSOC{0-1}))', derivedBy='EXTENSION'. */
-static int decode_v2gDC_EVBidirectionalParameterType(bitstream_t* stream, struct v2gDC_EVBidirectionalParameterType* v2gDC_EVBidirectionalParameterType) {
- int grammarID = 2759;
- int done = 0;
-
- init_v2gDC_EVBidirectionalParameterType(v2gDC_EVBidirectionalParameterType);
-
- while(!done) {
- switch(grammarID) {
- case 2759:
- /* FirstStartTag[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}DepartureTime)] */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- /* First(xsi:type)StartTag[CHARACTERS[UNSIGNED_INTEGER]] */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(errn == 0) {
- if(eventCode == 0) {
- errn = decodeUnsignedInteger32(stream, &v2gDC_EVBidirectionalParameterType->DepartureTime);
- } 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({urn:iso:15118:2:2016:MsgDataTypes}DepartureTime) ? */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(eventCode == 0) {
- grammarID = 2760;
- } else {
- errn = EXI_DEVIANT_SUPPORT_NOT_DEPLOYED; /* or also typecast and nillable */
- }
- }
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 2760:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}EVMaximumChargePower), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}EVMinimumChargePower), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}EVMaximumChargeCurrent)] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- errn = decode_v2gPhysicalValueType(stream, &v2gDC_EVBidirectionalParameterType->EVMaximumChargePower);
- v2gDC_EVBidirectionalParameterType->EVMaximumChargePower_isUsed = 1u;
- grammarID = 2761;
- break;
- case 1:
- errn = decode_v2gPhysicalValueType(stream, &v2gDC_EVBidirectionalParameterType->EVMinimumChargePower);
- v2gDC_EVBidirectionalParameterType->EVMinimumChargePower_isUsed = 1u;
- grammarID = 2762;
- break;
- case 2:
- errn = decode_v2gPhysicalValueType(stream, &v2gDC_EVBidirectionalParameterType->EVMaximumChargeCurrent);
- grammarID = 2763;
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 2761:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}EVMinimumChargePower), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}EVMaximumChargeCurrent)] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- errn = decode_v2gPhysicalValueType(stream, &v2gDC_EVBidirectionalParameterType->EVMinimumChargePower);
- v2gDC_EVBidirectionalParameterType->EVMinimumChargePower_isUsed = 1u;
- grammarID = 2762;
- break;
- case 1:
- errn = decode_v2gPhysicalValueType(stream, &v2gDC_EVBidirectionalParameterType->EVMaximumChargeCurrent);
- grammarID = 2763;
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 2762:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}EVMaximumChargeCurrent)] */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- errn = decode_v2gPhysicalValueType(stream, &v2gDC_EVBidirectionalParameterType->EVMaximumChargeCurrent);
- grammarID = 2763;
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 2763:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}EVMinimumChargeCurrent)] */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- errn = decode_v2gPhysicalValueType(stream, &v2gDC_EVBidirectionalParameterType->EVMinimumChargeCurrent);
- grammarID = 2764;
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 2764:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}EVMaximumVoltage)] */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- errn = decode_v2gPhysicalValueType(stream, &v2gDC_EVBidirectionalParameterType->EVMaximumVoltage);
- grammarID = 2765;
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 2765:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}EVTargetEnergyRequest), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}EVMaximumEnergyRequest), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}EVMinimumEnergyRequest), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}CurrentSOC), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}TargetSOC), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}BulkSOC), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}EVMaximumDischargePower), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}EVMinimumDischargePower), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}EVMaximumDischargeCurrent)] */
- errn = decodeNBitUnsignedInteger(stream, 4, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- errn = decode_v2gPhysicalValueType(stream, &v2gDC_EVBidirectionalParameterType->EVTargetEnergyRequest);
- v2gDC_EVBidirectionalParameterType->EVTargetEnergyRequest_isUsed = 1u;
- grammarID = 2766;
- break;
- case 1:
- errn = decode_v2gPhysicalValueType(stream, &v2gDC_EVBidirectionalParameterType->EVMaximumEnergyRequest);
- v2gDC_EVBidirectionalParameterType->EVMaximumEnergyRequest_isUsed = 1u;
- grammarID = 2767;
- break;
- case 2:
- errn = decode_v2gPhysicalValueType(stream, &v2gDC_EVBidirectionalParameterType->EVMinimumEnergyRequest);
- v2gDC_EVBidirectionalParameterType->EVMinimumEnergyRequest_isUsed = 1u;
- grammarID = 2768;
- break;
- case 3:
- /* FirstStartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(errn == 0) {
- if(eventCode == 0) {
- errn = decodeNBitUnsignedInteger(stream, 7, &(uint32));
- v2gDC_EVBidirectionalParameterType->CurrentSOC = (int8_t)(uint32 + 0);
- v2gDC_EVBidirectionalParameterType->CurrentSOC_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({urn:iso:15118:2:2016:MsgDataTypes}CurrentSOC) ? */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(eventCode == 0) {
- grammarID = 2769;
- } else {
- errn = EXI_DEVIANT_SUPPORT_NOT_DEPLOYED; /* or also typecast and nillable */
- }
- }
- break;
- case 4:
- /* FirstStartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(errn == 0) {
- if(eventCode == 0) {
- errn = decodeNBitUnsignedInteger(stream, 7, &(uint32));
- v2gDC_EVBidirectionalParameterType->TargetSOC = (int8_t)(uint32 + 0);
- v2gDC_EVBidirectionalParameterType->TargetSOC_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({urn:iso:15118:2:2016:MsgDataTypes}TargetSOC) ? */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(eventCode == 0) {
- grammarID = 2770;
- } else {
- errn = EXI_DEVIANT_SUPPORT_NOT_DEPLOYED; /* or also typecast and nillable */
- }
- }
- break;
- case 5:
- /* FirstStartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(errn == 0) {
- if(eventCode == 0) {
- errn = decodeNBitUnsignedInteger(stream, 7, &(uint32));
- v2gDC_EVBidirectionalParameterType->BulkSOC = (int8_t)(uint32 + 0);
- v2gDC_EVBidirectionalParameterType->BulkSOC_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({urn:iso:15118:2:2016:MsgDataTypes}BulkSOC) ? */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(eventCode == 0) {
- grammarID = 2771;
- } else {
- errn = EXI_DEVIANT_SUPPORT_NOT_DEPLOYED; /* or also typecast and nillable */
- }
- }
- break;
- case 6:
- errn = decode_v2gPhysicalValueType(stream, &v2gDC_EVBidirectionalParameterType->EVMaximumDischargePower);
- v2gDC_EVBidirectionalParameterType->EVMaximumDischargePower_isUsed = 1u;
- grammarID = 2772;
- break;
- case 7:
- errn = decode_v2gPhysicalValueType(stream, &v2gDC_EVBidirectionalParameterType->EVMinimumDischargePower);
- v2gDC_EVBidirectionalParameterType->EVMinimumDischargePower_isUsed = 1u;
- grammarID = 2773;
- break;
- case 8:
- errn = decode_v2gPhysicalValueType(stream, &v2gDC_EVBidirectionalParameterType->EVMaximumDischargeCurrent);
- grammarID = 2774;
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 2766:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}EVMaximumEnergyRequest), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}EVMinimumEnergyRequest), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}CurrentSOC), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}TargetSOC), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}BulkSOC), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}EVMaximumDischargePower), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}EVMinimumDischargePower), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}EVMaximumDischargeCurrent)] */
- errn = decodeNBitUnsignedInteger(stream, 4, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- errn = decode_v2gPhysicalValueType(stream, &v2gDC_EVBidirectionalParameterType->EVMaximumEnergyRequest);
- v2gDC_EVBidirectionalParameterType->EVMaximumEnergyRequest_isUsed = 1u;
- grammarID = 2767;
- break;
- case 1:
- errn = decode_v2gPhysicalValueType(stream, &v2gDC_EVBidirectionalParameterType->EVMinimumEnergyRequest);
- v2gDC_EVBidirectionalParameterType->EVMinimumEnergyRequest_isUsed = 1u;
- grammarID = 2768;
- break;
- case 2:
- /* FirstStartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(errn == 0) {
- if(eventCode == 0) {
- errn = decodeNBitUnsignedInteger(stream, 7, &(uint32));
- v2gDC_EVBidirectionalParameterType->CurrentSOC = (int8_t)(uint32 + 0);
- v2gDC_EVBidirectionalParameterType->CurrentSOC_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({urn:iso:15118:2:2016:MsgDataTypes}CurrentSOC) ? */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(eventCode == 0) {
- grammarID = 2769;
- } else {
- errn = EXI_DEVIANT_SUPPORT_NOT_DEPLOYED; /* or also typecast and nillable */
- }
- }
- break;
- case 3:
- /* FirstStartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(errn == 0) {
- if(eventCode == 0) {
- errn = decodeNBitUnsignedInteger(stream, 7, &(uint32));
- v2gDC_EVBidirectionalParameterType->TargetSOC = (int8_t)(uint32 + 0);
- v2gDC_EVBidirectionalParameterType->TargetSOC_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({urn:iso:15118:2:2016:MsgDataTypes}TargetSOC) ? */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(eventCode == 0) {
- grammarID = 2770;
- } else {
- errn = EXI_DEVIANT_SUPPORT_NOT_DEPLOYED; /* or also typecast and nillable */
- }
- }
- break;
- case 4:
- /* FirstStartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(errn == 0) {
- if(eventCode == 0) {
- errn = decodeNBitUnsignedInteger(stream, 7, &(uint32));
- v2gDC_EVBidirectionalParameterType->BulkSOC = (int8_t)(uint32 + 0);
- v2gDC_EVBidirectionalParameterType->BulkSOC_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({urn:iso:15118:2:2016:MsgDataTypes}BulkSOC) ? */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(eventCode == 0) {
- grammarID = 2771;
- } else {
- errn = EXI_DEVIANT_SUPPORT_NOT_DEPLOYED; /* or also typecast and nillable */
- }
- }
- break;
- case 5:
- errn = decode_v2gPhysicalValueType(stream, &v2gDC_EVBidirectionalParameterType->EVMaximumDischargePower);
- v2gDC_EVBidirectionalParameterType->EVMaximumDischargePower_isUsed = 1u;
- grammarID = 2772;
- break;
- case 6:
- errn = decode_v2gPhysicalValueType(stream, &v2gDC_EVBidirectionalParameterType->EVMinimumDischargePower);
- v2gDC_EVBidirectionalParameterType->EVMinimumDischargePower_isUsed = 1u;
- grammarID = 2773;
- break;
- case 7:
- errn = decode_v2gPhysicalValueType(stream, &v2gDC_EVBidirectionalParameterType->EVMaximumDischargeCurrent);
- grammarID = 2774;
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 2767:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}EVMinimumEnergyRequest), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}CurrentSOC), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}TargetSOC), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}BulkSOC), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}EVMaximumDischargePower), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}EVMinimumDischargePower), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}EVMaximumDischargeCurrent)] */
- errn = decodeNBitUnsignedInteger(stream, 3, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- errn = decode_v2gPhysicalValueType(stream, &v2gDC_EVBidirectionalParameterType->EVMinimumEnergyRequest);
- v2gDC_EVBidirectionalParameterType->EVMinimumEnergyRequest_isUsed = 1u;
- grammarID = 2768;
- break;
- case 1:
- /* FirstStartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(errn == 0) {
- if(eventCode == 0) {
- errn = decodeNBitUnsignedInteger(stream, 7, &(uint32));
- v2gDC_EVBidirectionalParameterType->CurrentSOC = (int8_t)(uint32 + 0);
- v2gDC_EVBidirectionalParameterType->CurrentSOC_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({urn:iso:15118:2:2016:MsgDataTypes}CurrentSOC) ? */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(eventCode == 0) {
- grammarID = 2769;
- } else {
- errn = EXI_DEVIANT_SUPPORT_NOT_DEPLOYED; /* or also typecast and nillable */
- }
- }
- break;
- case 2:
- /* FirstStartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(errn == 0) {
- if(eventCode == 0) {
- errn = decodeNBitUnsignedInteger(stream, 7, &(uint32));
- v2gDC_EVBidirectionalParameterType->TargetSOC = (int8_t)(uint32 + 0);
- v2gDC_EVBidirectionalParameterType->TargetSOC_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({urn:iso:15118:2:2016:MsgDataTypes}TargetSOC) ? */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(eventCode == 0) {
- grammarID = 2770;
- } else {
- errn = EXI_DEVIANT_SUPPORT_NOT_DEPLOYED; /* or also typecast and nillable */
- }
- }
- break;
- case 3:
- /* FirstStartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(errn == 0) {
- if(eventCode == 0) {
- errn = decodeNBitUnsignedInteger(stream, 7, &(uint32));
- v2gDC_EVBidirectionalParameterType->BulkSOC = (int8_t)(uint32 + 0);
- v2gDC_EVBidirectionalParameterType->BulkSOC_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({urn:iso:15118:2:2016:MsgDataTypes}BulkSOC) ? */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(eventCode == 0) {
- grammarID = 2771;
- } else {
- errn = EXI_DEVIANT_SUPPORT_NOT_DEPLOYED; /* or also typecast and nillable */
- }
- }
- break;
- case 4:
- errn = decode_v2gPhysicalValueType(stream, &v2gDC_EVBidirectionalParameterType->EVMaximumDischargePower);
- v2gDC_EVBidirectionalParameterType->EVMaximumDischargePower_isUsed = 1u;
- grammarID = 2772;
- break;
- case 5:
- errn = decode_v2gPhysicalValueType(stream, &v2gDC_EVBidirectionalParameterType->EVMinimumDischargePower);
- v2gDC_EVBidirectionalParameterType->EVMinimumDischargePower_isUsed = 1u;
- grammarID = 2773;
- break;
- case 6:
- errn = decode_v2gPhysicalValueType(stream, &v2gDC_EVBidirectionalParameterType->EVMaximumDischargeCurrent);
- grammarID = 2774;
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 2768:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}CurrentSOC), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}TargetSOC), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}BulkSOC), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}EVMaximumDischargePower), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}EVMinimumDischargePower), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}EVMaximumDischargeCurrent)] */
- errn = decodeNBitUnsignedInteger(stream, 3, &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, 7, &(uint32));
- v2gDC_EVBidirectionalParameterType->CurrentSOC = (int8_t)(uint32 + 0);
- v2gDC_EVBidirectionalParameterType->CurrentSOC_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({urn:iso:15118:2:2016:MsgDataTypes}CurrentSOC) ? */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(eventCode == 0) {
- grammarID = 2769;
- } else {
- errn = EXI_DEVIANT_SUPPORT_NOT_DEPLOYED; /* or also typecast and nillable */
- }
- }
- break;
- case 1:
- /* FirstStartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(errn == 0) {
- if(eventCode == 0) {
- errn = decodeNBitUnsignedInteger(stream, 7, &(uint32));
- v2gDC_EVBidirectionalParameterType->TargetSOC = (int8_t)(uint32 + 0);
- v2gDC_EVBidirectionalParameterType->TargetSOC_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({urn:iso:15118:2:2016:MsgDataTypes}TargetSOC) ? */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(eventCode == 0) {
- grammarID = 2770;
- } else {
- errn = EXI_DEVIANT_SUPPORT_NOT_DEPLOYED; /* or also typecast and nillable */
- }
- }
- break;
- case 2:
- /* FirstStartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(errn == 0) {
- if(eventCode == 0) {
- errn = decodeNBitUnsignedInteger(stream, 7, &(uint32));
- v2gDC_EVBidirectionalParameterType->BulkSOC = (int8_t)(uint32 + 0);
- v2gDC_EVBidirectionalParameterType->BulkSOC_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({urn:iso:15118:2:2016:MsgDataTypes}BulkSOC) ? */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(eventCode == 0) {
- grammarID = 2771;
- } else {
- errn = EXI_DEVIANT_SUPPORT_NOT_DEPLOYED; /* or also typecast and nillable */
- }
- }
- break;
- case 3:
- errn = decode_v2gPhysicalValueType(stream, &v2gDC_EVBidirectionalParameterType->EVMaximumDischargePower);
- v2gDC_EVBidirectionalParameterType->EVMaximumDischargePower_isUsed = 1u;
- grammarID = 2772;
- break;
- case 4:
- errn = decode_v2gPhysicalValueType(stream, &v2gDC_EVBidirectionalParameterType->EVMinimumDischargePower);
- v2gDC_EVBidirectionalParameterType->EVMinimumDischargePower_isUsed = 1u;
- grammarID = 2773;
- break;
- case 5:
- errn = decode_v2gPhysicalValueType(stream, &v2gDC_EVBidirectionalParameterType->EVMaximumDischargeCurrent);
- grammarID = 2774;
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 2769:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}TargetSOC), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}BulkSOC), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}EVMaximumDischargePower), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}EVMinimumDischargePower), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}EVMaximumDischargeCurrent)] */
- errn = decodeNBitUnsignedInteger(stream, 3, &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, 7, &(uint32));
- v2gDC_EVBidirectionalParameterType->TargetSOC = (int8_t)(uint32 + 0);
- v2gDC_EVBidirectionalParameterType->TargetSOC_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({urn:iso:15118:2:2016:MsgDataTypes}TargetSOC) ? */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(eventCode == 0) {
- grammarID = 2770;
- } else {
- errn = EXI_DEVIANT_SUPPORT_NOT_DEPLOYED; /* or also typecast and nillable */
- }
- }
- break;
- case 1:
- /* FirstStartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(errn == 0) {
- if(eventCode == 0) {
- errn = decodeNBitUnsignedInteger(stream, 7, &(uint32));
- v2gDC_EVBidirectionalParameterType->BulkSOC = (int8_t)(uint32 + 0);
- v2gDC_EVBidirectionalParameterType->BulkSOC_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({urn:iso:15118:2:2016:MsgDataTypes}BulkSOC) ? */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(eventCode == 0) {
- grammarID = 2771;
- } else {
- errn = EXI_DEVIANT_SUPPORT_NOT_DEPLOYED; /* or also typecast and nillable */
- }
- }
- break;
- case 2:
- errn = decode_v2gPhysicalValueType(stream, &v2gDC_EVBidirectionalParameterType->EVMaximumDischargePower);
- v2gDC_EVBidirectionalParameterType->EVMaximumDischargePower_isUsed = 1u;
- grammarID = 2772;
- break;
- case 3:
- errn = decode_v2gPhysicalValueType(stream, &v2gDC_EVBidirectionalParameterType->EVMinimumDischargePower);
- v2gDC_EVBidirectionalParameterType->EVMinimumDischargePower_isUsed = 1u;
- grammarID = 2773;
- break;
- case 4:
- errn = decode_v2gPhysicalValueType(stream, &v2gDC_EVBidirectionalParameterType->EVMaximumDischargeCurrent);
- grammarID = 2774;
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 2770:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}BulkSOC), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}EVMaximumDischargePower), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}EVMinimumDischargePower), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}EVMaximumDischargeCurrent)] */
- errn = decodeNBitUnsignedInteger(stream, 3, &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, 7, &(uint32));
- v2gDC_EVBidirectionalParameterType->BulkSOC = (int8_t)(uint32 + 0);
- v2gDC_EVBidirectionalParameterType->BulkSOC_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({urn:iso:15118:2:2016:MsgDataTypes}BulkSOC) ? */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(eventCode == 0) {
- grammarID = 2771;
- } else {
- errn = EXI_DEVIANT_SUPPORT_NOT_DEPLOYED; /* or also typecast and nillable */
- }
- }
- break;
- case 1:
- errn = decode_v2gPhysicalValueType(stream, &v2gDC_EVBidirectionalParameterType->EVMaximumDischargePower);
- v2gDC_EVBidirectionalParameterType->EVMaximumDischargePower_isUsed = 1u;
- grammarID = 2772;
- break;
- case 2:
- errn = decode_v2gPhysicalValueType(stream, &v2gDC_EVBidirectionalParameterType->EVMinimumDischargePower);
- v2gDC_EVBidirectionalParameterType->EVMinimumDischargePower_isUsed = 1u;
- grammarID = 2773;
- break;
- case 3:
- errn = decode_v2gPhysicalValueType(stream, &v2gDC_EVBidirectionalParameterType->EVMaximumDischargeCurrent);
- grammarID = 2774;
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 2771:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}EVMaximumDischargePower), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}EVMinimumDischargePower), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}EVMaximumDischargeCurrent)] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- errn = decode_v2gPhysicalValueType(stream, &v2gDC_EVBidirectionalParameterType->EVMaximumDischargePower);
- v2gDC_EVBidirectionalParameterType->EVMaximumDischargePower_isUsed = 1u;
- grammarID = 2772;
- break;
- case 1:
- errn = decode_v2gPhysicalValueType(stream, &v2gDC_EVBidirectionalParameterType->EVMinimumDischargePower);
- v2gDC_EVBidirectionalParameterType->EVMinimumDischargePower_isUsed = 1u;
- grammarID = 2773;
- break;
- case 2:
- errn = decode_v2gPhysicalValueType(stream, &v2gDC_EVBidirectionalParameterType->EVMaximumDischargeCurrent);
- grammarID = 2774;
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 2772:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}EVMinimumDischargePower), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}EVMaximumDischargeCurrent)] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- errn = decode_v2gPhysicalValueType(stream, &v2gDC_EVBidirectionalParameterType->EVMinimumDischargePower);
- v2gDC_EVBidirectionalParameterType->EVMinimumDischargePower_isUsed = 1u;
- grammarID = 2773;
- break;
- case 1:
- errn = decode_v2gPhysicalValueType(stream, &v2gDC_EVBidirectionalParameterType->EVMaximumDischargeCurrent);
- grammarID = 2774;
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 2773:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}EVMaximumDischargeCurrent)] */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- errn = decode_v2gPhysicalValueType(stream, &v2gDC_EVBidirectionalParameterType->EVMaximumDischargeCurrent);
- grammarID = 2774;
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 2774:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}EVMinimumDischargeCurrent)] */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- errn = decode_v2gPhysicalValueType(stream, &v2gDC_EVBidirectionalParameterType->EVMinimumDischargeCurrent);
- grammarID = 2775;
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 2775:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}EVMinimumVoltage)] */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- errn = decode_v2gPhysicalValueType(stream, &v2gDC_EVBidirectionalParameterType->EVMinimumVoltage);
- grammarID = 2776;
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 2776:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MinimumSOC), 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, 7, &(uint32));
- v2gDC_EVBidirectionalParameterType->MinimumSOC = (int8_t)(uint32 + 0);
- v2gDC_EVBidirectionalParameterType->MinimumSOC_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({urn:iso:15118:2:2016:MsgDataTypes}MinimumSOC) ? */
- 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:2016:MsgBody,ServiceDetailResType', base type name='V2GResponseType', content type='ELEMENT', isAbstract='false', hasTypeId='false', final='0', block='0', particle='(("urn:iso:15118:2:2016:MsgBody":ResponseCode,"urn:iso:15118:2:2016:MsgBody":EVSEStatus{0-1}),("urn:iso:15118:2:2016:MsgBody":ServiceID,"urn:iso:15118:2:2016:MsgBody":ServiceParameterList{0-1}))', derivedBy='EXTENSION'. */
-static int decode_v2gServiceDetailResType(bitstream_t* stream, struct v2gServiceDetailResType* v2gServiceDetailResType) {
- int grammarID = 2777;
- int done = 0;
-
- init_v2gServiceDetailResType(v2gServiceDetailResType);
-
- while(!done) {
- switch(grammarID) {
- case 2777:
- /* FirstStartTag[START_ELEMENT({urn:iso:15118:2:2016:MsgBody}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, 5, &uint32);
- v2gServiceDetailResType->ResponseCode = (v2gresponseCodeType) 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({urn:iso:15118:2:2016:MsgBody}ResponseCode) ? */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(eventCode == 0) {
- grammarID = 2778;
- } else {
- errn = EXI_DEVIANT_SUPPORT_NOT_DEPLOYED; /* or also typecast and nillable */
- }
- }
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 2778:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgBody}EVSEStatus), START_ELEMENT({urn:iso:15118:2:2016:MsgBody}ServiceID)] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- errn = decode_v2gEVSEStatusType(stream, &v2gServiceDetailResType->EVSEStatus);
- v2gServiceDetailResType->EVSEStatus_isUsed = 1u;
- grammarID = 2779;
- break;
- case 1:
- /* FirstStartTag[CHARACTERS[UNSIGNED_INTEGER]] */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(errn == 0) {
- if(eventCode == 0) {
- errn = decodeUnsignedInteger16(stream, &v2gServiceDetailResType->ServiceID);
- } 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({urn:iso:15118:2:2016:MsgBody}ServiceID) ? */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(eventCode == 0) {
- grammarID = 2780;
- } else {
- errn = EXI_DEVIANT_SUPPORT_NOT_DEPLOYED; /* or also typecast and nillable */
- }
- }
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 2779:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgBody}ServiceID)] */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- /* FirstStartTag[CHARACTERS[UNSIGNED_INTEGER]] */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(errn == 0) {
- if(eventCode == 0) {
- errn = decodeUnsignedInteger16(stream, &v2gServiceDetailResType->ServiceID);
- } 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({urn:iso:15118:2:2016:MsgBody}ServiceID) ? */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(eventCode == 0) {
- grammarID = 2780;
- } else {
- errn = EXI_DEVIANT_SUPPORT_NOT_DEPLOYED; /* or also typecast and nillable */
- }
- }
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 2780:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgBody}ServiceParameterList), END_ELEMENT] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- errn = decode_v2gServiceParameterListType(stream, &v2gServiceDetailResType->ServiceParameterList);
- v2gServiceDetailResType->ServiceParameterList_isUsed = 1u;
- grammarID = 2;
- 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:2016:MsgDataTypes,SelectedServiceListType', base type name='anyType', content type='ELEMENT', isAbstract='false', hasTypeId='false', final='0', block='0', particle='("urn:iso:15118:2:2016:MsgDataTypes":SelectedService{1-16})', derivedBy='RESTRICTION'. */
-static int decode_v2gSelectedServiceListType(bitstream_t* stream, struct v2gSelectedServiceListType* v2gSelectedServiceListType) {
- int grammarID = 2781;
- int done = 0;
-
- init_v2gSelectedServiceListType(v2gSelectedServiceListType);
-
- while(!done) {
- switch(grammarID) {
- case 2781:
- /* FirstStartTag[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SelectedService)] */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gSelectedServiceListType->SelectedService.arrayLen < v2gSelectedServiceListType_SelectedService_ARRAY_SIZE) {
- errn = decode_v2gSelectedServiceType(stream, &v2gSelectedServiceListType->SelectedService.array[v2gSelectedServiceListType->SelectedService.arrayLen++]);
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- grammarID = 2782;
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 2782:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SelectedService), END_ELEMENT] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gSelectedServiceListType->SelectedService.arrayLen < v2gSelectedServiceListType_SelectedService_ARRAY_SIZE) {
- errn = decode_v2gSelectedServiceType(stream, &v2gSelectedServiceListType->SelectedService.array[v2gSelectedServiceListType->SelectedService.arrayLen++]);
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- grammarID = 2783;
- break;
- case 1:
- done = 1;
- grammarID = 3;
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 2783:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SelectedService), END_ELEMENT] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gSelectedServiceListType->SelectedService.arrayLen < v2gSelectedServiceListType_SelectedService_ARRAY_SIZE) {
- errn = decode_v2gSelectedServiceType(stream, &v2gSelectedServiceListType->SelectedService.array[v2gSelectedServiceListType->SelectedService.arrayLen++]);
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- grammarID = 2784;
- break;
- case 1:
- done = 1;
- grammarID = 3;
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 2784:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SelectedService), END_ELEMENT] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gSelectedServiceListType->SelectedService.arrayLen < v2gSelectedServiceListType_SelectedService_ARRAY_SIZE) {
- errn = decode_v2gSelectedServiceType(stream, &v2gSelectedServiceListType->SelectedService.array[v2gSelectedServiceListType->SelectedService.arrayLen++]);
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- grammarID = 2785;
- break;
- case 1:
- done = 1;
- grammarID = 3;
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 2785:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SelectedService), END_ELEMENT] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gSelectedServiceListType->SelectedService.arrayLen < v2gSelectedServiceListType_SelectedService_ARRAY_SIZE) {
- errn = decode_v2gSelectedServiceType(stream, &v2gSelectedServiceListType->SelectedService.array[v2gSelectedServiceListType->SelectedService.arrayLen++]);
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- grammarID = 2786;
- break;
- case 1:
- done = 1;
- grammarID = 3;
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 2786:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SelectedService), END_ELEMENT] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gSelectedServiceListType->SelectedService.arrayLen < v2gSelectedServiceListType_SelectedService_ARRAY_SIZE) {
- errn = decode_v2gSelectedServiceType(stream, &v2gSelectedServiceListType->SelectedService.array[v2gSelectedServiceListType->SelectedService.arrayLen++]);
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- grammarID = 2787;
- break;
- case 1:
- done = 1;
- grammarID = 3;
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 2787:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SelectedService), END_ELEMENT] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gSelectedServiceListType->SelectedService.arrayLen < v2gSelectedServiceListType_SelectedService_ARRAY_SIZE) {
- errn = decode_v2gSelectedServiceType(stream, &v2gSelectedServiceListType->SelectedService.array[v2gSelectedServiceListType->SelectedService.arrayLen++]);
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- grammarID = 2788;
- break;
- case 1:
- done = 1;
- grammarID = 3;
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 2788:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SelectedService), END_ELEMENT] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gSelectedServiceListType->SelectedService.arrayLen < v2gSelectedServiceListType_SelectedService_ARRAY_SIZE) {
- errn = decode_v2gSelectedServiceType(stream, &v2gSelectedServiceListType->SelectedService.array[v2gSelectedServiceListType->SelectedService.arrayLen++]);
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- grammarID = 2789;
- break;
- case 1:
- done = 1;
- grammarID = 3;
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 2789:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SelectedService), END_ELEMENT] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gSelectedServiceListType->SelectedService.arrayLen < v2gSelectedServiceListType_SelectedService_ARRAY_SIZE) {
- errn = decode_v2gSelectedServiceType(stream, &v2gSelectedServiceListType->SelectedService.array[v2gSelectedServiceListType->SelectedService.arrayLen++]);
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- grammarID = 2790;
- break;
- case 1:
- done = 1;
- grammarID = 3;
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 2790:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SelectedService), END_ELEMENT] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gSelectedServiceListType->SelectedService.arrayLen < v2gSelectedServiceListType_SelectedService_ARRAY_SIZE) {
- errn = decode_v2gSelectedServiceType(stream, &v2gSelectedServiceListType->SelectedService.array[v2gSelectedServiceListType->SelectedService.arrayLen++]);
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- grammarID = 2791;
- break;
- case 1:
- done = 1;
- grammarID = 3;
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 2791:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SelectedService), END_ELEMENT] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gSelectedServiceListType->SelectedService.arrayLen < v2gSelectedServiceListType_SelectedService_ARRAY_SIZE) {
- errn = decode_v2gSelectedServiceType(stream, &v2gSelectedServiceListType->SelectedService.array[v2gSelectedServiceListType->SelectedService.arrayLen++]);
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- grammarID = 2792;
- break;
- case 1:
- done = 1;
- grammarID = 3;
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 2792:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SelectedService), END_ELEMENT] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gSelectedServiceListType->SelectedService.arrayLen < v2gSelectedServiceListType_SelectedService_ARRAY_SIZE) {
- errn = decode_v2gSelectedServiceType(stream, &v2gSelectedServiceListType->SelectedService.array[v2gSelectedServiceListType->SelectedService.arrayLen++]);
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- grammarID = 2793;
- break;
- case 1:
- done = 1;
- grammarID = 3;
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 2793:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SelectedService), END_ELEMENT] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gSelectedServiceListType->SelectedService.arrayLen < v2gSelectedServiceListType_SelectedService_ARRAY_SIZE) {
- errn = decode_v2gSelectedServiceType(stream, &v2gSelectedServiceListType->SelectedService.array[v2gSelectedServiceListType->SelectedService.arrayLen++]);
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- grammarID = 2794;
- break;
- case 1:
- done = 1;
- grammarID = 3;
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 2794:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SelectedService), END_ELEMENT] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gSelectedServiceListType->SelectedService.arrayLen < v2gSelectedServiceListType_SelectedService_ARRAY_SIZE) {
- errn = decode_v2gSelectedServiceType(stream, &v2gSelectedServiceListType->SelectedService.array[v2gSelectedServiceListType->SelectedService.arrayLen++]);
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- grammarID = 2795;
- break;
- case 1:
- done = 1;
- grammarID = 3;
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 2795:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SelectedService), END_ELEMENT] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gSelectedServiceListType->SelectedService.arrayLen < v2gSelectedServiceListType_SelectedService_ARRAY_SIZE) {
- errn = decode_v2gSelectedServiceType(stream, &v2gSelectedServiceListType->SelectedService.array[v2gSelectedServiceListType->SelectedService.arrayLen++]);
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- grammarID = 2796;
- break;
- case 1:
- done = 1;
- grammarID = 3;
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 2796:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SelectedService), END_ELEMENT] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gSelectedServiceListType->SelectedService.arrayLen < v2gSelectedServiceListType_SelectedService_ARRAY_SIZE) {
- errn = decode_v2gSelectedServiceType(stream, &v2gSelectedServiceListType->SelectedService.array[v2gSelectedServiceListType->SelectedService.arrayLen++]);
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- grammarID = 2;
- 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:2016:MsgDataTypes,RelativeTimeIntervalType', base type name='anyType', content type='ELEMENT', isAbstract='false', hasTypeId='false', final='0', block='0', particle='("urn:iso:15118:2:2016:MsgDataTypes":start,"urn:iso:15118:2:2016:MsgDataTypes":duration{0-1})', derivedBy='RESTRICTION'. */
-static int decode_v2gRelativeTimeIntervalType(bitstream_t* stream, struct v2gRelativeTimeIntervalType* v2gRelativeTimeIntervalType) {
- int grammarID = 2797;
- int done = 0;
-
- init_v2gRelativeTimeIntervalType(v2gRelativeTimeIntervalType);
-
- while(!done) {
- switch(grammarID) {
- case 2797:
- /* FirstStartTag[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}start)] */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- /* FirstStartTag[CHARACTERS[UNSIGNED_INTEGER]] */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(errn == 0) {
- if(eventCode == 0) {
- errn = decodeUnsignedInteger32(stream, &v2gRelativeTimeIntervalType->start);
- } 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({urn:iso:15118:2:2016:MsgDataTypes}start) ? */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(eventCode == 0) {
- grammarID = 2798;
- } else {
- errn = EXI_DEVIANT_SUPPORT_NOT_DEPLOYED; /* or also typecast and nillable */
- }
- }
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 2798:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}duration), END_ELEMENT] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- /* FirstStartTag[CHARACTERS[UNSIGNED_INTEGER]] */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(errn == 0) {
- if(eventCode == 0) {
- errn = decodeUnsignedInteger32(stream, &v2gRelativeTimeIntervalType->duration);
- v2gRelativeTimeIntervalType->duration_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({urn:iso:15118:2:2016:MsgDataTypes}duration) ? */
- 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:2016:MsgBody,DisconnectChargingDeviceResType', base type name='V2GResponseType', content type='ELEMENT', isAbstract='false', hasTypeId='false', final='0', block='0', particle='(("urn:iso:15118:2:2016:MsgBody":ResponseCode,"urn:iso:15118:2:2016:MsgBody":EVSEStatus{0-1}),("urn:iso:15118:2:2016:MsgBody":EVSEProcessing,"urn:iso:15118:2:2016:MsgBody":EVSEElectricalChargingDeviceStatus,"urn:iso:15118:2:2016:MsgBody":EVSEMechanicalChargingDeviceStatus))', derivedBy='EXTENSION'. */
-static int decode_v2gDisconnectChargingDeviceResType(bitstream_t* stream, struct v2gDisconnectChargingDeviceResType* v2gDisconnectChargingDeviceResType) {
- int grammarID = 2421;
- int done = 0;
-
- init_v2gDisconnectChargingDeviceResType(v2gDisconnectChargingDeviceResType);
-
- while(!done) {
- switch(grammarID) {
- case 2421:
- /* FirstStartTag[START_ELEMENT({urn:iso:15118:2:2016:MsgBody}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, 5, &uint32);
- v2gDisconnectChargingDeviceResType->ResponseCode = (v2gresponseCodeType) 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({urn:iso:15118:2:2016:MsgBody}ResponseCode) ? */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(eventCode == 0) {
- grammarID = 2422;
- } else {
- errn = EXI_DEVIANT_SUPPORT_NOT_DEPLOYED; /* or also typecast and nillable */
- }
- }
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 2422:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgBody}EVSEStatus), START_ELEMENT({urn:iso:15118:2:2016:MsgBody}EVSEProcessing)] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- errn = decode_v2gEVSEStatusType(stream, &v2gDisconnectChargingDeviceResType->EVSEStatus);
- v2gDisconnectChargingDeviceResType->EVSEStatus_isUsed = 1u;
- grammarID = 2423;
- break;
- case 1:
- /* FirstStartTag[CHARACTERS[ENUMERATION]] */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(errn == 0) {
- if(eventCode == 0) {
- errn = decodeNBitUnsignedInteger(stream, 2, &uint32);
- v2gDisconnectChargingDeviceResType->EVSEProcessing = (v2gEVSEProcessingType) 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({urn:iso:15118:2:2016:MsgBody}EVSEProcessing) ? */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(eventCode == 0) {
- grammarID = 2424;
- } else {
- errn = EXI_DEVIANT_SUPPORT_NOT_DEPLOYED; /* or also typecast and nillable */
- }
- }
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 2423:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgBody}EVSEProcessing)] */
- 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);
- v2gDisconnectChargingDeviceResType->EVSEProcessing = (v2gEVSEProcessingType) 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({urn:iso:15118:2:2016:MsgBody}EVSEProcessing) ? */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(eventCode == 0) {
- grammarID = 2424;
- } else {
- errn = EXI_DEVIANT_SUPPORT_NOT_DEPLOYED; /* or also typecast and nillable */
- }
- }
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 2424:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgBody}EVSEElectricalChargingDeviceStatus)] */
- 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, 1, &uint32);
- v2gDisconnectChargingDeviceResType->EVSEElectricalChargingDeviceStatus = (v2gelectricalChargingDeviceStatusType) 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({urn:iso:15118:2:2016:MsgBody}EVSEElectricalChargingDeviceStatus) ? */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(eventCode == 0) {
- grammarID = 1519;
- } else {
- errn = EXI_DEVIANT_SUPPORT_NOT_DEPLOYED; /* or also typecast and nillable */
- }
- }
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 1519:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgBody}EVSEMechanicalChargingDeviceStatus)] */
- 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);
- v2gDisconnectChargingDeviceResType->EVSEMechanicalChargingDeviceStatus = (v2gmechanicalChargingDeviceStatusType) 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({urn:iso:15118:2:2016:MsgBody}EVSEMechanicalChargingDeviceStatus) ? */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(eventCode == 0) {
- grammarID = 2;
- } else {
- errn = EXI_DEVIANT_SUPPORT_NOT_DEPLOYED; /* or also typecast and nillable */
- }
- }
- 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:2016:MsgDataTypes,ContractSignatureEncryptedPrivateKeyType', base type name='encryptedPrivateKeyType', content type='SIMPLE', isAbstract='false', hasTypeId='false', final='0', block='0', derivedBy='EXTENSION'. */
-static int decode_v2gContractSignatureEncryptedPrivateKeyType(bitstream_t* stream, struct v2gContractSignatureEncryptedPrivateKeyType* v2gContractSignatureEncryptedPrivateKeyType) {
- int grammarID = 1855;
- int done = 0;
-
- init_v2gContractSignatureEncryptedPrivateKeyType(v2gContractSignatureEncryptedPrivateKeyType);
-
- while(!done) {
- switch(grammarID) {
- case 1855:
- /* FirstStartTag[ATTRIBUTE[STRING]({urn:iso:15118:2:2016:MsgDataTypes}Id)] */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- errn = decodeUnsignedInteger16(stream, &v2gContractSignatureEncryptedPrivateKeyType->Id.charactersLen);
- if (errn == 0) {
- if (v2gContractSignatureEncryptedPrivateKeyType->Id.charactersLen >= 2) {
- v2gContractSignatureEncryptedPrivateKeyType->Id.charactersLen = (uint16_t)(v2gContractSignatureEncryptedPrivateKeyType->Id.charactersLen - 2); /* string table miss */
- errn = decodeCharacters(stream, v2gContractSignatureEncryptedPrivateKeyType->Id.charactersLen, v2gContractSignatureEncryptedPrivateKeyType->Id.characters, v2gContractSignatureEncryptedPrivateKeyType_Id_CHARACTERS_SIZE);
- } else {
- /* string table hit */
- errn = EXI_ERROR_STRINGVALUES_NOT_SUPPORTED;
- }
- }
- grammarID = 1;
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 1:
- /* StartTag[CHARACTERS[BINARY_BASE64]] */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- errn = decodeUnsignedInteger16(stream, &v2gContractSignatureEncryptedPrivateKeyType->CONTENT.bytesLen);
- if (errn == 0) {
- errn = (v2gContractSignatureEncryptedPrivateKeyType->CONTENT.bytesLen) <= v2gContractSignatureEncryptedPrivateKeyType_CONTENT_BYTES_SIZE ? 0 : EXI_ERROR_OUT_OF_BYTE_BUFFER;
- }
- if (errn == 0) {
- errn = decodeBytes(stream, v2gContractSignatureEncryptedPrivateKeyType->CONTENT.bytesLen, v2gContractSignatureEncryptedPrivateKeyType->CONTENT.bytes);
- }
- grammarID = 2;
- 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:2016:MsgBody,ChargingStatusResType', base type name='V2GResponseType', content type='ELEMENT', isAbstract='false', hasTypeId='false', final='0', block='0', particle='(("urn:iso:15118:2:2016:MsgBody":ResponseCode,"urn:iso:15118:2:2016:MsgBody":EVSEStatus{0-1}),("urn:iso:15118:2:2016:MsgBody":EVSEID,"urn:iso:15118:2:2016:MsgBody":SAScheduleTupleID{0-1},"urn:iso:15118:2:2016:MsgBody":MeterInfo{0-1},"urn:iso:15118:2:2016:MsgBody":ReceiptRequired{0-1},"urn:iso:15118:2:2016:MsgBody":EVSETargetPower{0-1}))', derivedBy='EXTENSION'. */
-static int decode_v2gChargingStatusResType(bitstream_t* stream, struct v2gChargingStatusResType* v2gChargingStatusResType) {
- int grammarID = 2799;
- int done = 0;
-
- init_v2gChargingStatusResType(v2gChargingStatusResType);
-
- while(!done) {
- switch(grammarID) {
- case 2799:
- /* FirstStartTag[START_ELEMENT({urn:iso:15118:2:2016:MsgBody}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, 5, &uint32);
- v2gChargingStatusResType->ResponseCode = (v2gresponseCodeType) 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({urn:iso:15118:2:2016:MsgBody}ResponseCode) ? */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(eventCode == 0) {
- grammarID = 2800;
- } else {
- errn = EXI_DEVIANT_SUPPORT_NOT_DEPLOYED; /* or also typecast and nillable */
- }
- }
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 2800:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgBody}EVSEStatus), START_ELEMENT({urn:iso:15118:2:2016:MsgBody}EVSEID)] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- errn = decode_v2gEVSEStatusType(stream, &v2gChargingStatusResType->EVSEStatus);
- v2gChargingStatusResType->EVSEStatus_isUsed = 1u;
- grammarID = 2801;
- break;
- case 1:
- /* FirstStartTag[CHARACTERS[STRING]] */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(errn == 0) {
- if(eventCode == 0) {
- errn = decodeUnsignedInteger16(stream, &v2gChargingStatusResType->EVSEID.charactersLen);
- if (errn == 0) {
- if (v2gChargingStatusResType->EVSEID.charactersLen >= 2) {
- v2gChargingStatusResType->EVSEID.charactersLen = (uint16_t)(v2gChargingStatusResType->EVSEID.charactersLen - 2); /* string table miss */
- errn = decodeCharacters(stream, v2gChargingStatusResType->EVSEID.charactersLen, v2gChargingStatusResType->EVSEID.characters, v2gChargingStatusResType_EVSEID_CHARACTERS_SIZE);
- } else {
- /* string table hit */
- errn = EXI_ERROR_STRINGVALUES_NOT_SUPPORTED;
- }
- }
- } 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({urn:iso:15118:2:2016:MsgBody}EVSEID) ? */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(eventCode == 0) {
- grammarID = 2802;
- } else {
- errn = EXI_DEVIANT_SUPPORT_NOT_DEPLOYED; /* or also typecast and nillable */
- }
- }
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 2801:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgBody}EVSEID)] */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- /* FirstStartTag[CHARACTERS[STRING]] */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(errn == 0) {
- if(eventCode == 0) {
- errn = decodeUnsignedInteger16(stream, &v2gChargingStatusResType->EVSEID.charactersLen);
- if (errn == 0) {
- if (v2gChargingStatusResType->EVSEID.charactersLen >= 2) {
- v2gChargingStatusResType->EVSEID.charactersLen = (uint16_t)(v2gChargingStatusResType->EVSEID.charactersLen - 2); /* string table miss */
- errn = decodeCharacters(stream, v2gChargingStatusResType->EVSEID.charactersLen, v2gChargingStatusResType->EVSEID.characters, v2gChargingStatusResType_EVSEID_CHARACTERS_SIZE);
- } else {
- /* string table hit */
- errn = EXI_ERROR_STRINGVALUES_NOT_SUPPORTED;
- }
- }
- } 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({urn:iso:15118:2:2016:MsgBody}EVSEID) ? */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(eventCode == 0) {
- grammarID = 2802;
- } else {
- errn = EXI_DEVIANT_SUPPORT_NOT_DEPLOYED; /* or also typecast and nillable */
- }
- }
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 2802:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgBody}SAScheduleTupleID), START_ELEMENT({urn:iso:15118:2:2016:MsgBody}MeterInfo), START_ELEMENT({urn:iso:15118:2:2016:MsgBody}ReceiptRequired), START_ELEMENT({urn:iso:15118:2:2016:MsgBody}EVSETargetPower), END_ELEMENT] */
- errn = decodeNBitUnsignedInteger(stream, 3, &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));
- v2gChargingStatusResType->SAScheduleTupleID = (uint8_t)(uint32 + 1);
- v2gChargingStatusResType->SAScheduleTupleID_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({urn:iso:15118:2:2016:MsgBody}SAScheduleTupleID) ? */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(eventCode == 0) {
- grammarID = 2803;
- } else {
- errn = EXI_DEVIANT_SUPPORT_NOT_DEPLOYED; /* or also typecast and nillable */
- }
- }
- break;
- case 1:
- errn = decode_v2gMeterInfoType(stream, &v2gChargingStatusResType->MeterInfo);
- v2gChargingStatusResType->MeterInfo_isUsed = 1u;
- grammarID = 2804;
- break;
- case 2:
- /* FirstStartTag[CHARACTERS[BOOLEAN]] */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(errn == 0) {
- if(eventCode == 0) {
- errn = decodeBoolean(stream, &v2gChargingStatusResType->ReceiptRequired);
- v2gChargingStatusResType->ReceiptRequired_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({urn:iso:15118:2:2016:MsgBody}ReceiptRequired) ? */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(eventCode == 0) {
- grammarID = 2805;
- } else {
- errn = EXI_DEVIANT_SUPPORT_NOT_DEPLOYED; /* or also typecast and nillable */
- }
- }
- break;
- case 3:
- errn = decode_v2gPhysicalValueType(stream, &v2gChargingStatusResType->EVSETargetPower);
- v2gChargingStatusResType->EVSETargetPower_isUsed = 1u;
- grammarID = 2;
- break;
- case 4:
- done = 1;
- grammarID = 3;
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 2803:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgBody}MeterInfo), START_ELEMENT({urn:iso:15118:2:2016:MsgBody}ReceiptRequired), START_ELEMENT({urn:iso:15118:2:2016:MsgBody}EVSETargetPower), END_ELEMENT] */
- errn = decodeNBitUnsignedInteger(stream, 3, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- errn = decode_v2gMeterInfoType(stream, &v2gChargingStatusResType->MeterInfo);
- v2gChargingStatusResType->MeterInfo_isUsed = 1u;
- grammarID = 2804;
- break;
- case 1:
- /* FirstStartTag[CHARACTERS[BOOLEAN]] */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(errn == 0) {
- if(eventCode == 0) {
- errn = decodeBoolean(stream, &v2gChargingStatusResType->ReceiptRequired);
- v2gChargingStatusResType->ReceiptRequired_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({urn:iso:15118:2:2016:MsgBody}ReceiptRequired) ? */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(eventCode == 0) {
- grammarID = 2805;
- } else {
- errn = EXI_DEVIANT_SUPPORT_NOT_DEPLOYED; /* or also typecast and nillable */
- }
- }
- break;
- case 2:
- errn = decode_v2gPhysicalValueType(stream, &v2gChargingStatusResType->EVSETargetPower);
- v2gChargingStatusResType->EVSETargetPower_isUsed = 1u;
- grammarID = 2;
- break;
- case 3:
- done = 1;
- grammarID = 3;
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 2804:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgBody}ReceiptRequired), START_ELEMENT({urn:iso:15118:2:2016:MsgBody}EVSETargetPower), END_ELEMENT] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- /* FirstStartTag[CHARACTERS[BOOLEAN]] */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(errn == 0) {
- if(eventCode == 0) {
- errn = decodeBoolean(stream, &v2gChargingStatusResType->ReceiptRequired);
- v2gChargingStatusResType->ReceiptRequired_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({urn:iso:15118:2:2016:MsgBody}ReceiptRequired) ? */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(eventCode == 0) {
- grammarID = 2805;
- } else {
- errn = EXI_DEVIANT_SUPPORT_NOT_DEPLOYED; /* or also typecast and nillable */
- }
- }
- break;
- case 1:
- errn = decode_v2gPhysicalValueType(stream, &v2gChargingStatusResType->EVSETargetPower);
- v2gChargingStatusResType->EVSETargetPower_isUsed = 1u;
- grammarID = 2;
- break;
- case 2:
- done = 1;
- grammarID = 3;
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 2805:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgBody}EVSETargetPower), END_ELEMENT] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- errn = decode_v2gPhysicalValueType(stream, &v2gChargingStatusResType->EVSETargetPower);
- v2gChargingStatusResType->EVSETargetPower_isUsed = 1u;
- grammarID = 2;
- 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:2016:MsgBody,PaymentDetailsReqType', base type name='BodyBaseType', content type='ELEMENT', isAbstract='false', hasTypeId='false', final='0', block='0', particle='("urn:iso:15118:2:2016:MsgBody":eMAID,"urn:iso:15118:2:2016:MsgBody":ContractSignatureCertChain)', derivedBy='EXTENSION'. */
-static int decode_v2gPaymentDetailsReqType(bitstream_t* stream, struct v2gPaymentDetailsReqType* v2gPaymentDetailsReqType) {
- int grammarID = 2806;
- int done = 0;
-
- init_v2gPaymentDetailsReqType(v2gPaymentDetailsReqType);
-
- while(!done) {
- switch(grammarID) {
- case 2806:
- /* FirstStartTag[START_ELEMENT({urn:iso:15118:2:2016:MsgBody}eMAID)] */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- /* First(xsi:type)StartTag[CHARACTERS[STRING]] */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(errn == 0) {
- if(eventCode == 0) {
- errn = decodeUnsignedInteger16(stream, &v2gPaymentDetailsReqType->eMAID.charactersLen);
- if (errn == 0) {
- if (v2gPaymentDetailsReqType->eMAID.charactersLen >= 2) {
- v2gPaymentDetailsReqType->eMAID.charactersLen = (uint16_t)(v2gPaymentDetailsReqType->eMAID.charactersLen - 2); /* string table miss */
- errn = decodeCharacters(stream, v2gPaymentDetailsReqType->eMAID.charactersLen, v2gPaymentDetailsReqType->eMAID.characters, v2gPaymentDetailsReqType_eMAID_CHARACTERS_SIZE);
- } else {
- /* string table hit */
- errn = EXI_ERROR_STRINGVALUES_NOT_SUPPORTED;
- }
- }
- } 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({urn:iso:15118:2:2016:MsgBody}eMAID) ? */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(eventCode == 0) {
- grammarID = 2807;
- } else {
- errn = EXI_DEVIANT_SUPPORT_NOT_DEPLOYED; /* or also typecast and nillable */
- }
- }
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 2807:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgBody}ContractSignatureCertChain)] */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- errn = decode_v2gCertificateChainType(stream, &v2gPaymentDetailsReqType->ContractSignatureCertChain);
- grammarID = 2;
- 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:2016:MsgDataTypes,MagneticVectorSetupType', base type name='anyType', content type='ELEMENT', isAbstract='false', hasTypeId='false', final='0', block='0', particle='("urn:iso:15118:2:2016:MsgDataTypes":GAID,"urn:iso:15118:2:2016:MsgDataTypes":FrequencyChannel)', derivedBy='RESTRICTION'. */
-static int decode_v2gMagneticVectorSetupType(bitstream_t* stream, struct v2gMagneticVectorSetupType* v2gMagneticVectorSetupType) {
- int grammarID = 2808;
- int done = 0;
-
- init_v2gMagneticVectorSetupType(v2gMagneticVectorSetupType);
-
- while(!done) {
- switch(grammarID) {
- case 2808:
- /* FirstStartTag[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}GAID)] */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- /* FirstStartTag[CHARACTERS[STRING]] */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(errn == 0) {
- if(eventCode == 0) {
- errn = decodeUnsignedInteger16(stream, &v2gMagneticVectorSetupType->GAID.charactersLen);
- if (errn == 0) {
- if (v2gMagneticVectorSetupType->GAID.charactersLen >= 2) {
- v2gMagneticVectorSetupType->GAID.charactersLen = (uint16_t)(v2gMagneticVectorSetupType->GAID.charactersLen - 2); /* string table miss */
- errn = decodeCharacters(stream, v2gMagneticVectorSetupType->GAID.charactersLen, v2gMagneticVectorSetupType->GAID.characters, v2gMagneticVectorSetupType_GAID_CHARACTERS_SIZE);
- } else {
- /* string table hit */
- errn = EXI_ERROR_STRINGVALUES_NOT_SUPPORTED;
- }
- }
- } 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({urn:iso:15118:2:2016:MsgDataTypes}GAID) ? */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(eventCode == 0) {
- grammarID = 2809;
- } else {
- errn = EXI_DEVIANT_SUPPORT_NOT_DEPLOYED; /* or also typecast and nillable */
- }
- }
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 2809:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}FrequencyChannel)] */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- /* First(xsi:type)StartTag[CHARACTERS[UNSIGNED_INTEGER]] */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(errn == 0) {
- if(eventCode == 0) {
- errn = decodeUnsignedInteger32(stream, &v2gMagneticVectorSetupType->FrequencyChannel);
- } 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({urn:iso:15118:2:2016:MsgDataTypes}FrequencyChannel) ? */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(eventCode == 0) {
- grammarID = 2;
- } else {
- errn = EXI_DEVIANT_SUPPORT_NOT_DEPLOYED; /* or also typecast and nillable */
- }
- }
- 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:2016:MsgDataTypes,DC_EVChargeParameterType', base type name='EVEnergyTransferParameterType', content type='ELEMENT', isAbstract='false', hasTypeId='false', final='0', block='0', particle='(("urn:iso:15118:2:2016:MsgDataTypes":DepartureTime),("urn:iso:15118:2:2016:MsgDataTypes":EVMaximumChargePower{0-1},"urn:iso:15118:2:2016:MsgDataTypes":EVMinimumChargePower{0-1},"urn:iso:15118:2:2016:MsgDataTypes":EVMaximumChargeCurrent,"urn:iso:15118:2:2016:MsgDataTypes":EVMinimumChargeCurrent,"urn:iso:15118:2:2016:MsgDataTypes":EVMaximumVoltage,"urn:iso:15118:2:2016:MsgDataTypes":EVTargetEnergyRequest{0-1},"urn:iso:15118:2:2016:MsgDataTypes":EVMaximumEnergyRequest{0-1},"urn:iso:15118:2:2016:MsgDataTypes":EVMinimumEnergyRequest{0-1},"urn:iso:15118:2:2016:MsgDataTypes":CurrentSOC{0-1},"urn:iso:15118:2:2016:MsgDataTypes":TargetSOC{0-1},"urn:iso:15118:2:2016:MsgDataTypes":BulkSOC{0-1}))', derivedBy='EXTENSION'. */
-static int decode_v2gDC_EVChargeParameterType(bitstream_t* stream, struct v2gDC_EVChargeParameterType* v2gDC_EVChargeParameterType) {
- int grammarID = 2810;
- int done = 0;
-
- init_v2gDC_EVChargeParameterType(v2gDC_EVChargeParameterType);
-
- while(!done) {
- switch(grammarID) {
- case 2810:
- /* FirstStartTag[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}DepartureTime)] */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- /* First(xsi:type)StartTag[CHARACTERS[UNSIGNED_INTEGER]] */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(errn == 0) {
- if(eventCode == 0) {
- errn = decodeUnsignedInteger32(stream, &v2gDC_EVChargeParameterType->DepartureTime);
- } 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({urn:iso:15118:2:2016:MsgDataTypes}DepartureTime) ? */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(eventCode == 0) {
- grammarID = 2811;
- } else {
- errn = EXI_DEVIANT_SUPPORT_NOT_DEPLOYED; /* or also typecast and nillable */
- }
- }
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 2811:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}EVMaximumChargePower), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}EVMinimumChargePower), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}EVMaximumChargeCurrent)] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- errn = decode_v2gPhysicalValueType(stream, &v2gDC_EVChargeParameterType->EVMaximumChargePower);
- v2gDC_EVChargeParameterType->EVMaximumChargePower_isUsed = 1u;
- grammarID = 2812;
- break;
- case 1:
- errn = decode_v2gPhysicalValueType(stream, &v2gDC_EVChargeParameterType->EVMinimumChargePower);
- v2gDC_EVChargeParameterType->EVMinimumChargePower_isUsed = 1u;
- grammarID = 2813;
- break;
- case 2:
- errn = decode_v2gPhysicalValueType(stream, &v2gDC_EVChargeParameterType->EVMaximumChargeCurrent);
- grammarID = 2814;
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 2812:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}EVMinimumChargePower), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}EVMaximumChargeCurrent)] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- errn = decode_v2gPhysicalValueType(stream, &v2gDC_EVChargeParameterType->EVMinimumChargePower);
- v2gDC_EVChargeParameterType->EVMinimumChargePower_isUsed = 1u;
- grammarID = 2813;
- break;
- case 1:
- errn = decode_v2gPhysicalValueType(stream, &v2gDC_EVChargeParameterType->EVMaximumChargeCurrent);
- grammarID = 2814;
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 2813:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}EVMaximumChargeCurrent)] */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- errn = decode_v2gPhysicalValueType(stream, &v2gDC_EVChargeParameterType->EVMaximumChargeCurrent);
- grammarID = 2814;
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 2814:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}EVMinimumChargeCurrent)] */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- errn = decode_v2gPhysicalValueType(stream, &v2gDC_EVChargeParameterType->EVMinimumChargeCurrent);
- grammarID = 2815;
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 2815:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}EVMaximumVoltage)] */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- errn = decode_v2gPhysicalValueType(stream, &v2gDC_EVChargeParameterType->EVMaximumVoltage);
- grammarID = 2816;
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 2816:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}EVTargetEnergyRequest), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}EVMaximumEnergyRequest), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}EVMinimumEnergyRequest), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}CurrentSOC), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}TargetSOC), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}BulkSOC), END_ELEMENT] */
- errn = decodeNBitUnsignedInteger(stream, 3, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- errn = decode_v2gPhysicalValueType(stream, &v2gDC_EVChargeParameterType->EVTargetEnergyRequest);
- v2gDC_EVChargeParameterType->EVTargetEnergyRequest_isUsed = 1u;
- grammarID = 2817;
- break;
- case 1:
- errn = decode_v2gPhysicalValueType(stream, &v2gDC_EVChargeParameterType->EVMaximumEnergyRequest);
- v2gDC_EVChargeParameterType->EVMaximumEnergyRequest_isUsed = 1u;
- grammarID = 2818;
- break;
- case 2:
- errn = decode_v2gPhysicalValueType(stream, &v2gDC_EVChargeParameterType->EVMinimumEnergyRequest);
- v2gDC_EVChargeParameterType->EVMinimumEnergyRequest_isUsed = 1u;
- grammarID = 2819;
- break;
- case 3:
- /* FirstStartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(errn == 0) {
- if(eventCode == 0) {
- errn = decodeNBitUnsignedInteger(stream, 7, &(uint32));
- v2gDC_EVChargeParameterType->CurrentSOC = (int8_t)(uint32 + 0);
- v2gDC_EVChargeParameterType->CurrentSOC_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({urn:iso:15118:2:2016:MsgDataTypes}CurrentSOC) ? */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(eventCode == 0) {
- grammarID = 2820;
- } else {
- errn = EXI_DEVIANT_SUPPORT_NOT_DEPLOYED; /* or also typecast and nillable */
- }
- }
- break;
- case 4:
- /* FirstStartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(errn == 0) {
- if(eventCode == 0) {
- errn = decodeNBitUnsignedInteger(stream, 7, &(uint32));
- v2gDC_EVChargeParameterType->TargetSOC = (int8_t)(uint32 + 0);
- v2gDC_EVChargeParameterType->TargetSOC_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({urn:iso:15118:2:2016:MsgDataTypes}TargetSOC) ? */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(eventCode == 0) {
- grammarID = 2821;
- } else {
- errn = EXI_DEVIANT_SUPPORT_NOT_DEPLOYED; /* or also typecast and nillable */
- }
- }
- break;
- case 5:
- /* FirstStartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(errn == 0) {
- if(eventCode == 0) {
- errn = decodeNBitUnsignedInteger(stream, 7, &(uint32));
- v2gDC_EVChargeParameterType->BulkSOC = (int8_t)(uint32 + 0);
- v2gDC_EVChargeParameterType->BulkSOC_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({urn:iso:15118:2:2016:MsgDataTypes}BulkSOC) ? */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(eventCode == 0) {
- grammarID = 2;
- } else {
- errn = EXI_DEVIANT_SUPPORT_NOT_DEPLOYED; /* or also typecast and nillable */
- }
- }
- break;
- case 6:
- done = 1;
- grammarID = 3;
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 2817:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}EVMaximumEnergyRequest), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}EVMinimumEnergyRequest), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}CurrentSOC), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}TargetSOC), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}BulkSOC), END_ELEMENT] */
- errn = decodeNBitUnsignedInteger(stream, 3, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- errn = decode_v2gPhysicalValueType(stream, &v2gDC_EVChargeParameterType->EVMaximumEnergyRequest);
- v2gDC_EVChargeParameterType->EVMaximumEnergyRequest_isUsed = 1u;
- grammarID = 2818;
- break;
- case 1:
- errn = decode_v2gPhysicalValueType(stream, &v2gDC_EVChargeParameterType->EVMinimumEnergyRequest);
- v2gDC_EVChargeParameterType->EVMinimumEnergyRequest_isUsed = 1u;
- grammarID = 2819;
- break;
- case 2:
- /* FirstStartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(errn == 0) {
- if(eventCode == 0) {
- errn = decodeNBitUnsignedInteger(stream, 7, &(uint32));
- v2gDC_EVChargeParameterType->CurrentSOC = (int8_t)(uint32 + 0);
- v2gDC_EVChargeParameterType->CurrentSOC_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({urn:iso:15118:2:2016:MsgDataTypes}CurrentSOC) ? */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(eventCode == 0) {
- grammarID = 2820;
- } else {
- errn = EXI_DEVIANT_SUPPORT_NOT_DEPLOYED; /* or also typecast and nillable */
- }
- }
- break;
- case 3:
- /* FirstStartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(errn == 0) {
- if(eventCode == 0) {
- errn = decodeNBitUnsignedInteger(stream, 7, &(uint32));
- v2gDC_EVChargeParameterType->TargetSOC = (int8_t)(uint32 + 0);
- v2gDC_EVChargeParameterType->TargetSOC_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({urn:iso:15118:2:2016:MsgDataTypes}TargetSOC) ? */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(eventCode == 0) {
- grammarID = 2821;
- } else {
- errn = EXI_DEVIANT_SUPPORT_NOT_DEPLOYED; /* or also typecast and nillable */
- }
- }
- break;
- case 4:
- /* FirstStartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(errn == 0) {
- if(eventCode == 0) {
- errn = decodeNBitUnsignedInteger(stream, 7, &(uint32));
- v2gDC_EVChargeParameterType->BulkSOC = (int8_t)(uint32 + 0);
- v2gDC_EVChargeParameterType->BulkSOC_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({urn:iso:15118:2:2016:MsgDataTypes}BulkSOC) ? */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(eventCode == 0) {
- grammarID = 2;
- } else {
- errn = EXI_DEVIANT_SUPPORT_NOT_DEPLOYED; /* or also typecast and nillable */
- }
- }
- break;
- case 5:
- done = 1;
- grammarID = 3;
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 2818:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}EVMinimumEnergyRequest), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}CurrentSOC), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}TargetSOC), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}BulkSOC), END_ELEMENT] */
- errn = decodeNBitUnsignedInteger(stream, 3, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- errn = decode_v2gPhysicalValueType(stream, &v2gDC_EVChargeParameterType->EVMinimumEnergyRequest);
- v2gDC_EVChargeParameterType->EVMinimumEnergyRequest_isUsed = 1u;
- grammarID = 2819;
- break;
- case 1:
- /* FirstStartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(errn == 0) {
- if(eventCode == 0) {
- errn = decodeNBitUnsignedInteger(stream, 7, &(uint32));
- v2gDC_EVChargeParameterType->CurrentSOC = (int8_t)(uint32 + 0);
- v2gDC_EVChargeParameterType->CurrentSOC_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({urn:iso:15118:2:2016:MsgDataTypes}CurrentSOC) ? */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(eventCode == 0) {
- grammarID = 2820;
- } else {
- errn = EXI_DEVIANT_SUPPORT_NOT_DEPLOYED; /* or also typecast and nillable */
- }
- }
- break;
- case 2:
- /* FirstStartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(errn == 0) {
- if(eventCode == 0) {
- errn = decodeNBitUnsignedInteger(stream, 7, &(uint32));
- v2gDC_EVChargeParameterType->TargetSOC = (int8_t)(uint32 + 0);
- v2gDC_EVChargeParameterType->TargetSOC_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({urn:iso:15118:2:2016:MsgDataTypes}TargetSOC) ? */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(eventCode == 0) {
- grammarID = 2821;
- } else {
- errn = EXI_DEVIANT_SUPPORT_NOT_DEPLOYED; /* or also typecast and nillable */
- }
- }
- break;
- case 3:
- /* FirstStartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(errn == 0) {
- if(eventCode == 0) {
- errn = decodeNBitUnsignedInteger(stream, 7, &(uint32));
- v2gDC_EVChargeParameterType->BulkSOC = (int8_t)(uint32 + 0);
- v2gDC_EVChargeParameterType->BulkSOC_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({urn:iso:15118:2:2016:MsgDataTypes}BulkSOC) ? */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(eventCode == 0) {
- grammarID = 2;
- } else {
- errn = EXI_DEVIANT_SUPPORT_NOT_DEPLOYED; /* or also typecast and nillable */
- }
- }
- break;
- case 4:
- done = 1;
- grammarID = 3;
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 2819:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}CurrentSOC), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}TargetSOC), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}BulkSOC), END_ELEMENT] */
- errn = decodeNBitUnsignedInteger(stream, 3, &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, 7, &(uint32));
- v2gDC_EVChargeParameterType->CurrentSOC = (int8_t)(uint32 + 0);
- v2gDC_EVChargeParameterType->CurrentSOC_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({urn:iso:15118:2:2016:MsgDataTypes}CurrentSOC) ? */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(eventCode == 0) {
- grammarID = 2820;
- } else {
- errn = EXI_DEVIANT_SUPPORT_NOT_DEPLOYED; /* or also typecast and nillable */
- }
- }
- break;
- case 1:
- /* FirstStartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(errn == 0) {
- if(eventCode == 0) {
- errn = decodeNBitUnsignedInteger(stream, 7, &(uint32));
- v2gDC_EVChargeParameterType->TargetSOC = (int8_t)(uint32 + 0);
- v2gDC_EVChargeParameterType->TargetSOC_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({urn:iso:15118:2:2016:MsgDataTypes}TargetSOC) ? */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(eventCode == 0) {
- grammarID = 2821;
- } else {
- errn = EXI_DEVIANT_SUPPORT_NOT_DEPLOYED; /* or also typecast and nillable */
- }
- }
- break;
- case 2:
- /* FirstStartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(errn == 0) {
- if(eventCode == 0) {
- errn = decodeNBitUnsignedInteger(stream, 7, &(uint32));
- v2gDC_EVChargeParameterType->BulkSOC = (int8_t)(uint32 + 0);
- v2gDC_EVChargeParameterType->BulkSOC_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({urn:iso:15118:2:2016:MsgDataTypes}BulkSOC) ? */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(eventCode == 0) {
- grammarID = 2;
- } else {
- errn = EXI_DEVIANT_SUPPORT_NOT_DEPLOYED; /* or also typecast and nillable */
- }
- }
- break;
- case 3:
- done = 1;
- grammarID = 3;
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 2820:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}TargetSOC), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}BulkSOC), 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, 7, &(uint32));
- v2gDC_EVChargeParameterType->TargetSOC = (int8_t)(uint32 + 0);
- v2gDC_EVChargeParameterType->TargetSOC_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({urn:iso:15118:2:2016:MsgDataTypes}TargetSOC) ? */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(eventCode == 0) {
- grammarID = 2821;
- } else {
- errn = EXI_DEVIANT_SUPPORT_NOT_DEPLOYED; /* or also typecast and nillable */
- }
- }
- break;
- case 1:
- /* FirstStartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(errn == 0) {
- if(eventCode == 0) {
- errn = decodeNBitUnsignedInteger(stream, 7, &(uint32));
- v2gDC_EVChargeParameterType->BulkSOC = (int8_t)(uint32 + 0);
- v2gDC_EVChargeParameterType->BulkSOC_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({urn:iso:15118:2:2016:MsgDataTypes}BulkSOC) ? */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(eventCode == 0) {
- grammarID = 2;
- } else {
- errn = EXI_DEVIANT_SUPPORT_NOT_DEPLOYED; /* or also typecast and nillable */
- }
- }
- break;
- case 2:
- done = 1;
- grammarID = 3;
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 2821:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}BulkSOC), 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, 7, &(uint32));
- v2gDC_EVChargeParameterType->BulkSOC = (int8_t)(uint32 + 0);
- v2gDC_EVChargeParameterType->BulkSOC_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({urn:iso:15118:2:2016:MsgDataTypes}BulkSOC) ? */
- 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='http://www.w3.org/2000/09/xmldsig#,ReferenceType', base type name='anyType', content type='ELEMENT', isAbstract='false', hasTypeId='false', final='0', block='0', particle='("http://www.w3.org/2000/09/xmldsig#":Transforms{0-1},"http://www.w3.org/2000/09/xmldsig#":DigestMethod,"http://www.w3.org/2000/09/xmldsig#":DigestValue)', derivedBy='RESTRICTION'. */
-static int decode_v2gReferenceType(bitstream_t* stream, struct v2gReferenceType* v2gReferenceType) {
- int grammarID = 2822;
- int done = 0;
-
- init_v2gReferenceType(v2gReferenceType);
-
- while(!done) {
- switch(grammarID) {
- case 2822:
- /* FirstStartTag[ATTRIBUTE[STRING](Id), ATTRIBUTE[STRING](Type), ATTRIBUTE[STRING](URI), START_ELEMENT({http://www.w3.org/2000/09/xmldsig#}Transforms), START_ELEMENT({http://www.w3.org/2000/09/xmldsig#}DigestMethod)] */
- errn = decodeNBitUnsignedInteger(stream, 3, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- errn = decodeUnsignedInteger16(stream, &v2gReferenceType->Id.charactersLen);
- if (errn == 0) {
- if (v2gReferenceType->Id.charactersLen >= 2) {
- v2gReferenceType->Id.charactersLen = (uint16_t)(v2gReferenceType->Id.charactersLen - 2); /* string table miss */
- errn = decodeCharacters(stream, v2gReferenceType->Id.charactersLen, v2gReferenceType->Id.characters, v2gReferenceType_Id_CHARACTERS_SIZE);
- } else {
- /* string table hit */
- errn = EXI_ERROR_STRINGVALUES_NOT_SUPPORTED;
- }
- }
- v2gReferenceType->Id_isUsed = 1u;
- grammarID = 2823;
- break;
- case 1:
- errn = decodeUnsignedInteger16(stream, &v2gReferenceType->Type.charactersLen);
- if (errn == 0) {
- if (v2gReferenceType->Type.charactersLen >= 2) {
- v2gReferenceType->Type.charactersLen = (uint16_t)(v2gReferenceType->Type.charactersLen - 2); /* string table miss */
- errn = decodeCharacters(stream, v2gReferenceType->Type.charactersLen, v2gReferenceType->Type.characters, v2gReferenceType_Type_CHARACTERS_SIZE);
- } else {
- /* string table hit */
- errn = EXI_ERROR_STRINGVALUES_NOT_SUPPORTED;
- }
- }
- v2gReferenceType->Type_isUsed = 1u;
- grammarID = 2824;
- break;
- case 2:
- errn = decodeUnsignedInteger16(stream, &v2gReferenceType->URI.charactersLen);
- if (errn == 0) {
- if (v2gReferenceType->URI.charactersLen >= 2) {
- v2gReferenceType->URI.charactersLen = (uint16_t)(v2gReferenceType->URI.charactersLen - 2); /* string table miss */
- errn = decodeCharacters(stream, v2gReferenceType->URI.charactersLen, v2gReferenceType->URI.characters, v2gReferenceType_URI_CHARACTERS_SIZE);
- } else {
- /* string table hit */
- errn = EXI_ERROR_STRINGVALUES_NOT_SUPPORTED;
- }
- }
- v2gReferenceType->URI_isUsed = 1u;
- grammarID = 2825;
- break;
- case 3:
- errn = decode_v2gTransformsType(stream, &v2gReferenceType->Transforms);
- v2gReferenceType->Transforms_isUsed = 1u;
- grammarID = 2826;
- break;
- case 4:
- errn = decode_v2gDigestMethodType(stream, &v2gReferenceType->DigestMethod);
- grammarID = 2827;
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 2823:
- /* StartTag[ATTRIBUTE[STRING](Type), ATTRIBUTE[STRING](URI), START_ELEMENT({http://www.w3.org/2000/09/xmldsig#}Transforms), START_ELEMENT({http://www.w3.org/2000/09/xmldsig#}DigestMethod)] */
- errn = decodeNBitUnsignedInteger(stream, 3, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- errn = decodeUnsignedInteger16(stream, &v2gReferenceType->Type.charactersLen);
- if (errn == 0) {
- if (v2gReferenceType->Type.charactersLen >= 2) {
- v2gReferenceType->Type.charactersLen = (uint16_t)(v2gReferenceType->Type.charactersLen - 2); /* string table miss */
- errn = decodeCharacters(stream, v2gReferenceType->Type.charactersLen, v2gReferenceType->Type.characters, v2gReferenceType_Type_CHARACTERS_SIZE);
- } else {
- /* string table hit */
- errn = EXI_ERROR_STRINGVALUES_NOT_SUPPORTED;
- }
- }
- v2gReferenceType->Type_isUsed = 1u;
- grammarID = 2824;
- break;
- case 1:
- errn = decodeUnsignedInteger16(stream, &v2gReferenceType->URI.charactersLen);
- if (errn == 0) {
- if (v2gReferenceType->URI.charactersLen >= 2) {
- v2gReferenceType->URI.charactersLen = (uint16_t)(v2gReferenceType->URI.charactersLen - 2); /* string table miss */
- errn = decodeCharacters(stream, v2gReferenceType->URI.charactersLen, v2gReferenceType->URI.characters, v2gReferenceType_URI_CHARACTERS_SIZE);
- } else {
- /* string table hit */
- errn = EXI_ERROR_STRINGVALUES_NOT_SUPPORTED;
- }
- }
- v2gReferenceType->URI_isUsed = 1u;
- grammarID = 2825;
- break;
- case 2:
- errn = decode_v2gTransformsType(stream, &v2gReferenceType->Transforms);
- v2gReferenceType->Transforms_isUsed = 1u;
- grammarID = 2826;
- break;
- case 3:
- errn = decode_v2gDigestMethodType(stream, &v2gReferenceType->DigestMethod);
- grammarID = 2827;
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 2824:
- /* StartTag[ATTRIBUTE[STRING](URI), START_ELEMENT({http://www.w3.org/2000/09/xmldsig#}Transforms), START_ELEMENT({http://www.w3.org/2000/09/xmldsig#}DigestMethod)] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- errn = decodeUnsignedInteger16(stream, &v2gReferenceType->URI.charactersLen);
- if (errn == 0) {
- if (v2gReferenceType->URI.charactersLen >= 2) {
- v2gReferenceType->URI.charactersLen = (uint16_t)(v2gReferenceType->URI.charactersLen - 2); /* string table miss */
- errn = decodeCharacters(stream, v2gReferenceType->URI.charactersLen, v2gReferenceType->URI.characters, v2gReferenceType_URI_CHARACTERS_SIZE);
- } else {
- /* string table hit */
- errn = EXI_ERROR_STRINGVALUES_NOT_SUPPORTED;
- }
- }
- v2gReferenceType->URI_isUsed = 1u;
- grammarID = 2825;
- break;
- case 1:
- errn = decode_v2gTransformsType(stream, &v2gReferenceType->Transforms);
- v2gReferenceType->Transforms_isUsed = 1u;
- grammarID = 2826;
- break;
- case 2:
- errn = decode_v2gDigestMethodType(stream, &v2gReferenceType->DigestMethod);
- grammarID = 2827;
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 2825:
- /* StartTag[START_ELEMENT({http://www.w3.org/2000/09/xmldsig#}Transforms), START_ELEMENT({http://www.w3.org/2000/09/xmldsig#}DigestMethod)] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- errn = decode_v2gTransformsType(stream, &v2gReferenceType->Transforms);
- v2gReferenceType->Transforms_isUsed = 1u;
- grammarID = 2826;
- break;
- case 1:
- errn = decode_v2gDigestMethodType(stream, &v2gReferenceType->DigestMethod);
- grammarID = 2827;
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 2826:
- /* Element[START_ELEMENT({http://www.w3.org/2000/09/xmldsig#}DigestMethod)] */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- errn = decode_v2gDigestMethodType(stream, &v2gReferenceType->DigestMethod);
- grammarID = 2827;
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 2827:
- /* Element[START_ELEMENT({http://www.w3.org/2000/09/xmldsig#}DigestValue)] */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- /* FirstStartTag[CHARACTERS[BINARY_BASE64]] */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(errn == 0) {
- if(eventCode == 0) {
- errn = decodeUnsignedInteger16(stream, &v2gReferenceType->DigestValue.bytesLen);
- if (errn == 0) {
- errn = (v2gReferenceType->DigestValue.bytesLen) <= v2gReferenceType_DigestValue_BYTES_SIZE ? 0 : EXI_ERROR_OUT_OF_BYTE_BUFFER;
- }
- if (errn == 0) {
- errn = decodeBytes(stream, v2gReferenceType->DigestValue.bytesLen, v2gReferenceType->DigestValue.bytes);
- }
- } 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({http://www.w3.org/2000/09/xmldsig#}DigestValue) ? */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(eventCode == 0) {
- grammarID = 2;
- } else {
- errn = EXI_DEVIANT_SUPPORT_NOT_DEPLOYED; /* or also typecast and nillable */
- }
- }
- 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:2016:MsgBody,ServiceDetailReqType', base type name='BodyBaseType', content type='ELEMENT', isAbstract='false', hasTypeId='false', final='0', block='0', particle='("urn:iso:15118:2:2016:MsgBody":ServiceID)', derivedBy='EXTENSION'. */
-static int decode_v2gServiceDetailReqType(bitstream_t* stream, struct v2gServiceDetailReqType* v2gServiceDetailReqType) {
- int grammarID = 2828;
- int done = 0;
-
- init_v2gServiceDetailReqType(v2gServiceDetailReqType);
-
- while(!done) {
- switch(grammarID) {
- case 2828:
- /* FirstStartTag[START_ELEMENT({urn:iso:15118:2:2016:MsgBody}ServiceID)] */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- /* FirstStartTag[CHARACTERS[UNSIGNED_INTEGER]] */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(errn == 0) {
- if(eventCode == 0) {
- errn = decodeUnsignedInteger16(stream, &v2gServiceDetailReqType->ServiceID);
- } 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({urn:iso:15118:2:2016:MsgBody}ServiceID) ? */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(eventCode == 0) {
- grammarID = 2;
- } else {
- errn = EXI_DEVIANT_SUPPORT_NOT_DEPLOYED; /* or also typecast and nillable */
- }
- }
- 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:2016:MsgDataTypes,PaymentOptionListType', base type name='anyType', content type='ELEMENT', isAbstract='false', hasTypeId='false', final='0', block='0', particle='("urn:iso:15118:2:2016:MsgDataTypes":PaymentOption{1-2})', derivedBy='RESTRICTION'. */
-static int decode_v2gPaymentOptionListType(bitstream_t* stream, struct v2gPaymentOptionListType* v2gPaymentOptionListType) {
- int grammarID = 2829;
- int done = 0;
-
- init_v2gPaymentOptionListType(v2gPaymentOptionListType);
-
- while(!done) {
- switch(grammarID) {
- case 2829:
- /* FirstStartTag[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}PaymentOption)] */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gPaymentOptionListType->PaymentOption.arrayLen < v2gPaymentOptionListType_PaymentOption_ARRAY_SIZE) {
- /* FirstStartTag[CHARACTERS[ENUMERATION]] */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(errn == 0) {
- if(eventCode == 0) {
- errn = decodeNBitUnsignedInteger(stream, 1, &uint32);
- v2gPaymentOptionListType->PaymentOption.array[v2gPaymentOptionListType->PaymentOption.arrayLen] = (v2gpaymentOptionType) uint32;
- v2gPaymentOptionListType->PaymentOption.arrayLen++;
- } else {
- /* Second level event (e.g., xsi:type, xsi:nil, ...) */
- errn = EXI_UNSUPPORTED_EVENT_CODE_CHARACTERISTICS;
- }
- }
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- if(errn == 0) {
- /* valid EE for simple element START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}PaymentOption) ? */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(eventCode == 0) {
- grammarID = 2830;
- } else {
- errn = EXI_DEVIANT_SUPPORT_NOT_DEPLOYED; /* or also typecast and nillable */
- }
- }
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 2830:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}PaymentOption), END_ELEMENT] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- if (v2gPaymentOptionListType->PaymentOption.arrayLen < v2gPaymentOptionListType_PaymentOption_ARRAY_SIZE) {
- /* FirstStartTag[CHARACTERS[ENUMERATION]] */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(errn == 0) {
- if(eventCode == 0) {
- errn = decodeNBitUnsignedInteger(stream, 1, &uint32);
- v2gPaymentOptionListType->PaymentOption.array[v2gPaymentOptionListType->PaymentOption.arrayLen] = (v2gpaymentOptionType) uint32;
- v2gPaymentOptionListType->PaymentOption.arrayLen++;
- } else {
- /* Second level event (e.g., xsi:type, xsi:nil, ...) */
- errn = EXI_UNSUPPORTED_EVENT_CODE_CHARACTERISTICS;
- }
- }
- } else {
- errn = EXI_ERROR_OUT_OF_BOUNDS;
- }
- if(errn == 0) {
- /* valid EE for simple element START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}PaymentOption) ? */
- 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:2016:MsgBody,CurrentDemandResType', base type name='V2GResponseType', content type='ELEMENT', isAbstract='false', hasTypeId='false', final='0', block='0', particle='(("urn:iso:15118:2:2016:MsgBody":ResponseCode,"urn:iso:15118:2:2016:MsgBody":EVSEStatus{0-1}),("urn:iso:15118:2:2016:MsgBody":EVSEPresentCurrent,"urn:iso:15118:2:2016:MsgBody":EVSEPresentVoltage,"urn:iso:15118:2:2016:MsgBody":EVSEPowerLimitAchieved,"urn:iso:15118:2:2016:MsgBody":EVSECurrentLimitAchieved,"urn:iso:15118:2:2016:MsgBody":EVSEVoltageLimitAchieved,"urn:iso:15118:2:2016:MsgBody":EVSEMaximumPower{0-1},"urn:iso:15118:2:2016:MsgBody":EVSEMaximumCurrent{0-1},"urn:iso:15118:2:2016:MsgBody":EVSEMaximumVoltage{0-1},"urn:iso:15118:2:2016:MsgBody":EVSEID,"urn:iso:15118:2:2016:MsgBody":SAScheduleTupleID{0-1},"urn:iso:15118:2:2016:MsgBody":MeterInfo{0-1},"urn:iso:15118:2:2016:MsgBody":ReceiptRequired{0-1}))', derivedBy='EXTENSION'. */
-static int decode_v2gCurrentDemandResType(bitstream_t* stream, struct v2gCurrentDemandResType* v2gCurrentDemandResType) {
- int grammarID = 2831;
- int done = 0;
-
- init_v2gCurrentDemandResType(v2gCurrentDemandResType);
-
- while(!done) {
- switch(grammarID) {
- case 2831:
- /* FirstStartTag[START_ELEMENT({urn:iso:15118:2:2016:MsgBody}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, 5, &uint32);
- v2gCurrentDemandResType->ResponseCode = (v2gresponseCodeType) 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({urn:iso:15118:2:2016:MsgBody}ResponseCode) ? */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(eventCode == 0) {
- grammarID = 2832;
- } else {
- errn = EXI_DEVIANT_SUPPORT_NOT_DEPLOYED; /* or also typecast and nillable */
- }
- }
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 2832:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgBody}EVSEStatus), START_ELEMENT({urn:iso:15118:2:2016:MsgBody}EVSEPresentCurrent)] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- errn = decode_v2gEVSEStatusType(stream, &v2gCurrentDemandResType->EVSEStatus);
- v2gCurrentDemandResType->EVSEStatus_isUsed = 1u;
- grammarID = 2833;
- break;
- case 1:
- errn = decode_v2gPhysicalValueType(stream, &v2gCurrentDemandResType->EVSEPresentCurrent);
- grammarID = 2834;
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 2833:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgBody}EVSEPresentCurrent)] */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- errn = decode_v2gPhysicalValueType(stream, &v2gCurrentDemandResType->EVSEPresentCurrent);
- grammarID = 2834;
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 2834:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgBody}EVSEPresentVoltage)] */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- errn = decode_v2gPhysicalValueType(stream, &v2gCurrentDemandResType->EVSEPresentVoltage);
- grammarID = 2835;
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 2835:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgBody}EVSEPowerLimitAchieved)] */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- /* FirstStartTag[CHARACTERS[BOOLEAN]] */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(errn == 0) {
- if(eventCode == 0) {
- errn = decodeBoolean(stream, &v2gCurrentDemandResType->EVSEPowerLimitAchieved);
- } 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({urn:iso:15118:2:2016:MsgBody}EVSEPowerLimitAchieved) ? */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(eventCode == 0) {
- grammarID = 2836;
- } else {
- errn = EXI_DEVIANT_SUPPORT_NOT_DEPLOYED; /* or also typecast and nillable */
- }
- }
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 2836:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgBody}EVSECurrentLimitAchieved)] */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- /* FirstStartTag[CHARACTERS[BOOLEAN]] */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(errn == 0) {
- if(eventCode == 0) {
- errn = decodeBoolean(stream, &v2gCurrentDemandResType->EVSECurrentLimitAchieved);
- } 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({urn:iso:15118:2:2016:MsgBody}EVSECurrentLimitAchieved) ? */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(eventCode == 0) {
- grammarID = 2837;
- } else {
- errn = EXI_DEVIANT_SUPPORT_NOT_DEPLOYED; /* or also typecast and nillable */
- }
- }
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 2837:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgBody}EVSEVoltageLimitAchieved)] */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- /* FirstStartTag[CHARACTERS[BOOLEAN]] */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(errn == 0) {
- if(eventCode == 0) {
- errn = decodeBoolean(stream, &v2gCurrentDemandResType->EVSEVoltageLimitAchieved);
- } 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({urn:iso:15118:2:2016:MsgBody}EVSEVoltageLimitAchieved) ? */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(eventCode == 0) {
- grammarID = 2838;
- } else {
- errn = EXI_DEVIANT_SUPPORT_NOT_DEPLOYED; /* or also typecast and nillable */
- }
- }
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 2838:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgBody}EVSEMaximumPower), START_ELEMENT({urn:iso:15118:2:2016:MsgBody}EVSEMaximumCurrent), START_ELEMENT({urn:iso:15118:2:2016:MsgBody}EVSEMaximumVoltage), START_ELEMENT({urn:iso:15118:2:2016:MsgBody}EVSEID)] */
- errn = decodeNBitUnsignedInteger(stream, 3, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- errn = decode_v2gPhysicalValueType(stream, &v2gCurrentDemandResType->EVSEMaximumPower);
- v2gCurrentDemandResType->EVSEMaximumPower_isUsed = 1u;
- grammarID = 2839;
- break;
- case 1:
- errn = decode_v2gPhysicalValueType(stream, &v2gCurrentDemandResType->EVSEMaximumCurrent);
- v2gCurrentDemandResType->EVSEMaximumCurrent_isUsed = 1u;
- grammarID = 2840;
- break;
- case 2:
- errn = decode_v2gPhysicalValueType(stream, &v2gCurrentDemandResType->EVSEMaximumVoltage);
- v2gCurrentDemandResType->EVSEMaximumVoltage_isUsed = 1u;
- grammarID = 1509;
- break;
- case 3:
- /* FirstStartTag[CHARACTERS[STRING]] */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(errn == 0) {
- if(eventCode == 0) {
- errn = decodeUnsignedInteger16(stream, &v2gCurrentDemandResType->EVSEID.charactersLen);
- if (errn == 0) {
- if (v2gCurrentDemandResType->EVSEID.charactersLen >= 2) {
- v2gCurrentDemandResType->EVSEID.charactersLen = (uint16_t)(v2gCurrentDemandResType->EVSEID.charactersLen - 2); /* string table miss */
- errn = decodeCharacters(stream, v2gCurrentDemandResType->EVSEID.charactersLen, v2gCurrentDemandResType->EVSEID.characters, v2gCurrentDemandResType_EVSEID_CHARACTERS_SIZE);
- } else {
- /* string table hit */
- errn = EXI_ERROR_STRINGVALUES_NOT_SUPPORTED;
- }
- }
- } 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({urn:iso:15118:2:2016:MsgBody}EVSEID) ? */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(eventCode == 0) {
- grammarID = 1510;
- } else {
- errn = EXI_DEVIANT_SUPPORT_NOT_DEPLOYED; /* or also typecast and nillable */
- }
- }
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 2839:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgBody}EVSEMaximumCurrent), START_ELEMENT({urn:iso:15118:2:2016:MsgBody}EVSEMaximumVoltage), START_ELEMENT({urn:iso:15118:2:2016:MsgBody}EVSEID)] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- errn = decode_v2gPhysicalValueType(stream, &v2gCurrentDemandResType->EVSEMaximumCurrent);
- v2gCurrentDemandResType->EVSEMaximumCurrent_isUsed = 1u;
- grammarID = 2840;
- break;
- case 1:
- errn = decode_v2gPhysicalValueType(stream, &v2gCurrentDemandResType->EVSEMaximumVoltage);
- v2gCurrentDemandResType->EVSEMaximumVoltage_isUsed = 1u;
- grammarID = 1509;
- break;
- case 2:
- /* FirstStartTag[CHARACTERS[STRING]] */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(errn == 0) {
- if(eventCode == 0) {
- errn = decodeUnsignedInteger16(stream, &v2gCurrentDemandResType->EVSEID.charactersLen);
- if (errn == 0) {
- if (v2gCurrentDemandResType->EVSEID.charactersLen >= 2) {
- v2gCurrentDemandResType->EVSEID.charactersLen = (uint16_t)(v2gCurrentDemandResType->EVSEID.charactersLen - 2); /* string table miss */
- errn = decodeCharacters(stream, v2gCurrentDemandResType->EVSEID.charactersLen, v2gCurrentDemandResType->EVSEID.characters, v2gCurrentDemandResType_EVSEID_CHARACTERS_SIZE);
- } else {
- /* string table hit */
- errn = EXI_ERROR_STRINGVALUES_NOT_SUPPORTED;
- }
- }
- } 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({urn:iso:15118:2:2016:MsgBody}EVSEID) ? */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(eventCode == 0) {
- grammarID = 1510;
- } else {
- errn = EXI_DEVIANT_SUPPORT_NOT_DEPLOYED; /* or also typecast and nillable */
- }
- }
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 2840:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgBody}EVSEMaximumVoltage), START_ELEMENT({urn:iso:15118:2:2016:MsgBody}EVSEID)] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- errn = decode_v2gPhysicalValueType(stream, &v2gCurrentDemandResType->EVSEMaximumVoltage);
- v2gCurrentDemandResType->EVSEMaximumVoltage_isUsed = 1u;
- grammarID = 1509;
- break;
- case 1:
- /* FirstStartTag[CHARACTERS[STRING]] */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(errn == 0) {
- if(eventCode == 0) {
- errn = decodeUnsignedInteger16(stream, &v2gCurrentDemandResType->EVSEID.charactersLen);
- if (errn == 0) {
- if (v2gCurrentDemandResType->EVSEID.charactersLen >= 2) {
- v2gCurrentDemandResType->EVSEID.charactersLen = (uint16_t)(v2gCurrentDemandResType->EVSEID.charactersLen - 2); /* string table miss */
- errn = decodeCharacters(stream, v2gCurrentDemandResType->EVSEID.charactersLen, v2gCurrentDemandResType->EVSEID.characters, v2gCurrentDemandResType_EVSEID_CHARACTERS_SIZE);
- } else {
- /* string table hit */
- errn = EXI_ERROR_STRINGVALUES_NOT_SUPPORTED;
- }
- }
- } 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({urn:iso:15118:2:2016:MsgBody}EVSEID) ? */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(eventCode == 0) {
- grammarID = 1510;
- } else {
- errn = EXI_DEVIANT_SUPPORT_NOT_DEPLOYED; /* or also typecast and nillable */
- }
- }
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 1509:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgBody}EVSEID)] */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- /* FirstStartTag[CHARACTERS[STRING]] */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(errn == 0) {
- if(eventCode == 0) {
- errn = decodeUnsignedInteger16(stream, &v2gCurrentDemandResType->EVSEID.charactersLen);
- if (errn == 0) {
- if (v2gCurrentDemandResType->EVSEID.charactersLen >= 2) {
- v2gCurrentDemandResType->EVSEID.charactersLen = (uint16_t)(v2gCurrentDemandResType->EVSEID.charactersLen - 2); /* string table miss */
- errn = decodeCharacters(stream, v2gCurrentDemandResType->EVSEID.charactersLen, v2gCurrentDemandResType->EVSEID.characters, v2gCurrentDemandResType_EVSEID_CHARACTERS_SIZE);
- } else {
- /* string table hit */
- errn = EXI_ERROR_STRINGVALUES_NOT_SUPPORTED;
- }
- }
- } 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({urn:iso:15118:2:2016:MsgBody}EVSEID) ? */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(eventCode == 0) {
- grammarID = 1510;
- } else {
- errn = EXI_DEVIANT_SUPPORT_NOT_DEPLOYED; /* or also typecast and nillable */
- }
- }
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 1510:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgBody}SAScheduleTupleID), START_ELEMENT({urn:iso:15118:2:2016:MsgBody}MeterInfo), START_ELEMENT({urn:iso:15118:2:2016:MsgBody}ReceiptRequired), END_ELEMENT] */
- errn = decodeNBitUnsignedInteger(stream, 3, &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));
- v2gCurrentDemandResType->SAScheduleTupleID = (uint8_t)(uint32 + 1);
- v2gCurrentDemandResType->SAScheduleTupleID_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({urn:iso:15118:2:2016:MsgBody}SAScheduleTupleID) ? */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(eventCode == 0) {
- grammarID = 1511;
- } else {
- errn = EXI_DEVIANT_SUPPORT_NOT_DEPLOYED; /* or also typecast and nillable */
- }
- }
- break;
- case 1:
- errn = decode_v2gMeterInfoType(stream, &v2gCurrentDemandResType->MeterInfo);
- v2gCurrentDemandResType->MeterInfo_isUsed = 1u;
- grammarID = 1512;
- break;
- case 2:
- /* FirstStartTag[CHARACTERS[BOOLEAN]] */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(errn == 0) {
- if(eventCode == 0) {
- errn = decodeBoolean(stream, &v2gCurrentDemandResType->ReceiptRequired);
- v2gCurrentDemandResType->ReceiptRequired_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({urn:iso:15118:2:2016:MsgBody}ReceiptRequired) ? */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(eventCode == 0) {
- grammarID = 2;
- } else {
- errn = EXI_DEVIANT_SUPPORT_NOT_DEPLOYED; /* or also typecast and nillable */
- }
- }
- break;
- case 3:
- done = 1;
- grammarID = 3;
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 1511:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgBody}MeterInfo), START_ELEMENT({urn:iso:15118:2:2016:MsgBody}ReceiptRequired), END_ELEMENT] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- errn = decode_v2gMeterInfoType(stream, &v2gCurrentDemandResType->MeterInfo);
- v2gCurrentDemandResType->MeterInfo_isUsed = 1u;
- grammarID = 1512;
- break;
- case 1:
- /* FirstStartTag[CHARACTERS[BOOLEAN]] */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(errn == 0) {
- if(eventCode == 0) {
- errn = decodeBoolean(stream, &v2gCurrentDemandResType->ReceiptRequired);
- v2gCurrentDemandResType->ReceiptRequired_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({urn:iso:15118:2:2016:MsgBody}ReceiptRequired) ? */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(eventCode == 0) {
- grammarID = 2;
- } else {
- errn = EXI_DEVIANT_SUPPORT_NOT_DEPLOYED; /* or also typecast and nillable */
- }
- }
- break;
- case 2:
- done = 1;
- grammarID = 3;
- break;
- default:
- errn = EXI_ERROR_UNKOWN_EVENT_CODE;
- break;
- }
- }
- break;
- case 1512:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgBody}ReceiptRequired), END_ELEMENT] */
- errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
- if (errn == 0) {
- switch(eventCode) {
- case 0:
- /* FirstStartTag[CHARACTERS[BOOLEAN]] */
- errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
- if(errn == 0) {
- if(eventCode == 0) {
- errn = decodeBoolean(stream, &v2gCurrentDemandResType->ReceiptRequired);
- v2gCurrentDemandResType->ReceiptRequired_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({urn:iso:15118:2:2016:MsgBody}ReceiptRequired) ? */
- 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;
+ grammarID = 4;
break;
default:
errn = EXI_ERROR_UNKOWN_EVENT_CODE;
@@ -101238,15 +1027,15 @@ static int decode_v2gCurrentDemandResType(bitstream_t* stream, struct v2gCurrent
}
/* Complex type name='urn:iso:15118:2:2016:MsgBody,DC_BidirectionalControlResType', base type name='V2GResponseType', content type='ELEMENT', isAbstract='false', hasTypeId='false', final='0', block='0', particle='(("urn:iso:15118:2:2016:MsgBody":ResponseCode,"urn:iso:15118:2:2016:MsgBody":EVSEStatus{0-1}),("urn:iso:15118:2:2016:MsgBody":EVSEPresentCurrent,"urn:iso:15118:2:2016:MsgBody":EVSEPresentVoltage,"urn:iso:15118:2:2016:MsgBody":EVSEPowerLimitAchieved,"urn:iso:15118:2:2016:MsgBody":EVSECurrentLimitAchieved,"urn:iso:15118:2:2016:MsgBody":EVSEVoltageLimitAchieved,"urn:iso:15118:2:2016:MsgBody":EVSEMaximumChargePower{0-1},"urn:iso:15118:2:2016:MsgBody":EVSEMaximumDischargePower{0-1},"urn:iso:15118:2:2016:MsgBody":EVSEMaximumChargeCurrent{0-1},"urn:iso:15118:2:2016:MsgBody":EVSEMaximumDischargeCurrent{0-1},"urn:iso:15118:2:2016:MsgBody":EVSEMaximumVoltage{0-1},"urn:iso:15118:2:2016:MsgBody":EVSEMinimumVoltage{0-1},"urn:iso:15118:2:2016:MsgBody":EVSEID,"urn:iso:15118:2:2016:MsgBody":SAScheduleTupleID{0-1},"urn:iso:15118:2:2016:MsgBody":MeterInfo{0-1},"urn:iso:15118:2:2016:MsgBody":ReceiptRequired{0-1}))', derivedBy='EXTENSION'. */
-static int decode_v2gDC_BidirectionalControlResType(bitstream_t* stream, struct v2gDC_BidirectionalControlResType* v2gDC_BidirectionalControlResType) {
- int grammarID = 2841;
+static int decode_iso2DC_BidirectionalControlResType(bitstream_t* stream, struct iso2DC_BidirectionalControlResType* iso2DC_BidirectionalControlResType) {
+ int grammarID = 14;
int done = 0;
- init_v2gDC_BidirectionalControlResType(v2gDC_BidirectionalControlResType);
+ init_iso2DC_BidirectionalControlResType(iso2DC_BidirectionalControlResType);
while(!done) {
switch(grammarID) {
- case 2841:
+ case 14:
/* FirstStartTag[START_ELEMENT({urn:iso:15118:2:2016:MsgBody}ResponseCode)] */
errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
if (errn == 0) {
@@ -101257,7 +1046,7 @@ static int decode_v2gDC_BidirectionalControlResType(bitstream_t* stream, struct
if(errn == 0) {
if(eventCode == 0) {
errn = decodeNBitUnsignedInteger(stream, 5, &uint32);
- v2gDC_BidirectionalControlResType->ResponseCode = (v2gresponseCodeType) uint32;
+ iso2DC_BidirectionalControlResType->ResponseCode = (iso2responseCodeType) uint32;
} else {
/* Second level event (e.g., xsi:type, xsi:nil, ...) */
errn = EXI_UNSUPPORTED_EVENT_CODE_CHARACTERISTICS;
@@ -101267,7 +1056,7 @@ static int decode_v2gDC_BidirectionalControlResType(bitstream_t* stream, struct
/* valid EE for simple element START_ELEMENT({urn:iso:15118:2:2016:MsgBody}ResponseCode) ? */
errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
if(eventCode == 0) {
- grammarID = 2842;
+ grammarID = 15;
} else {
errn = EXI_DEVIANT_SUPPORT_NOT_DEPLOYED; /* or also typecast and nillable */
}
@@ -101279,19 +1068,19 @@ static int decode_v2gDC_BidirectionalControlResType(bitstream_t* stream, struct
}
}
break;
- case 2842:
+ case 15:
/* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgBody}EVSEStatus), START_ELEMENT({urn:iso:15118:2:2016:MsgBody}EVSEPresentCurrent)] */
errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
if (errn == 0) {
switch(eventCode) {
case 0:
- errn = decode_v2gEVSEStatusType(stream, &v2gDC_BidirectionalControlResType->EVSEStatus);
- v2gDC_BidirectionalControlResType->EVSEStatus_isUsed = 1u;
- grammarID = 2843;
+ errn = decode_iso2EVSEStatusType(stream, &iso2DC_BidirectionalControlResType->EVSEStatus);
+ iso2DC_BidirectionalControlResType->EVSEStatus_isUsed = 1u;
+ grammarID = 16;
break;
case 1:
- errn = decode_v2gPhysicalValueType(stream, &v2gDC_BidirectionalControlResType->EVSEPresentCurrent);
- grammarID = 2844;
+ errn = decode_iso2PhysicalValueType(stream, &iso2DC_BidirectionalControlResType->EVSEPresentCurrent);
+ grammarID = 17;
break;
default:
errn = EXI_ERROR_UNKOWN_EVENT_CODE;
@@ -101299,14 +1088,14 @@ static int decode_v2gDC_BidirectionalControlResType(bitstream_t* stream, struct
}
}
break;
- case 2843:
+ case 16:
/* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgBody}EVSEPresentCurrent)] */
errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
if (errn == 0) {
switch(eventCode) {
case 0:
- errn = decode_v2gPhysicalValueType(stream, &v2gDC_BidirectionalControlResType->EVSEPresentCurrent);
- grammarID = 2844;
+ errn = decode_iso2PhysicalValueType(stream, &iso2DC_BidirectionalControlResType->EVSEPresentCurrent);
+ grammarID = 17;
break;
default:
errn = EXI_ERROR_UNKOWN_EVENT_CODE;
@@ -101314,14 +1103,14 @@ static int decode_v2gDC_BidirectionalControlResType(bitstream_t* stream, struct
}
}
break;
- case 2844:
+ case 17:
/* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgBody}EVSEPresentVoltage)] */
errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
if (errn == 0) {
switch(eventCode) {
case 0:
- errn = decode_v2gPhysicalValueType(stream, &v2gDC_BidirectionalControlResType->EVSEPresentVoltage);
- grammarID = 2845;
+ errn = decode_iso2PhysicalValueType(stream, &iso2DC_BidirectionalControlResType->EVSEPresentVoltage);
+ grammarID = 18;
break;
default:
errn = EXI_ERROR_UNKOWN_EVENT_CODE;
@@ -101329,7 +1118,7 @@ static int decode_v2gDC_BidirectionalControlResType(bitstream_t* stream, struct
}
}
break;
- case 2845:
+ case 18:
/* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgBody}EVSEPowerLimitAchieved)] */
errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
if (errn == 0) {
@@ -101339,7 +1128,7 @@ static int decode_v2gDC_BidirectionalControlResType(bitstream_t* stream, struct
errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
if(errn == 0) {
if(eventCode == 0) {
- errn = decodeBoolean(stream, &v2gDC_BidirectionalControlResType->EVSEPowerLimitAchieved);
+ errn = decodeBoolean(stream, &iso2DC_BidirectionalControlResType->EVSEPowerLimitAchieved);
} else {
/* Second level event (e.g., xsi:type, xsi:nil, ...) */
errn = EXI_UNSUPPORTED_EVENT_CODE_CHARACTERISTICS;
@@ -101349,7 +1138,7 @@ static int decode_v2gDC_BidirectionalControlResType(bitstream_t* stream, struct
/* valid EE for simple element START_ELEMENT({urn:iso:15118:2:2016:MsgBody}EVSEPowerLimitAchieved) ? */
errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
if(eventCode == 0) {
- grammarID = 2846;
+ grammarID = 19;
} else {
errn = EXI_DEVIANT_SUPPORT_NOT_DEPLOYED; /* or also typecast and nillable */
}
@@ -101361,7 +1150,7 @@ static int decode_v2gDC_BidirectionalControlResType(bitstream_t* stream, struct
}
}
break;
- case 2846:
+ case 19:
/* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgBody}EVSECurrentLimitAchieved)] */
errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
if (errn == 0) {
@@ -101371,7 +1160,7 @@ static int decode_v2gDC_BidirectionalControlResType(bitstream_t* stream, struct
errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
if(errn == 0) {
if(eventCode == 0) {
- errn = decodeBoolean(stream, &v2gDC_BidirectionalControlResType->EVSECurrentLimitAchieved);
+ errn = decodeBoolean(stream, &iso2DC_BidirectionalControlResType->EVSECurrentLimitAchieved);
} else {
/* Second level event (e.g., xsi:type, xsi:nil, ...) */
errn = EXI_UNSUPPORTED_EVENT_CODE_CHARACTERISTICS;
@@ -101381,7 +1170,7 @@ static int decode_v2gDC_BidirectionalControlResType(bitstream_t* stream, struct
/* valid EE for simple element START_ELEMENT({urn:iso:15118:2:2016:MsgBody}EVSECurrentLimitAchieved) ? */
errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
if(eventCode == 0) {
- grammarID = 2847;
+ grammarID = 20;
} else {
errn = EXI_DEVIANT_SUPPORT_NOT_DEPLOYED; /* or also typecast and nillable */
}
@@ -101393,7 +1182,7 @@ static int decode_v2gDC_BidirectionalControlResType(bitstream_t* stream, struct
}
}
break;
- case 2847:
+ case 20:
/* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgBody}EVSEVoltageLimitAchieved)] */
errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
if (errn == 0) {
@@ -101403,7 +1192,7 @@ static int decode_v2gDC_BidirectionalControlResType(bitstream_t* stream, struct
errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
if(errn == 0) {
if(eventCode == 0) {
- errn = decodeBoolean(stream, &v2gDC_BidirectionalControlResType->EVSEVoltageLimitAchieved);
+ errn = decodeBoolean(stream, &iso2DC_BidirectionalControlResType->EVSEVoltageLimitAchieved);
} else {
/* Second level event (e.g., xsi:type, xsi:nil, ...) */
errn = EXI_UNSUPPORTED_EVENT_CODE_CHARACTERISTICS;
@@ -101413,7 +1202,7 @@ static int decode_v2gDC_BidirectionalControlResType(bitstream_t* stream, struct
/* valid EE for simple element START_ELEMENT({urn:iso:15118:2:2016:MsgBody}EVSEVoltageLimitAchieved) ? */
errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
if(eventCode == 0) {
- grammarID = 2848;
+ grammarID = 21;
} else {
errn = EXI_DEVIANT_SUPPORT_NOT_DEPLOYED; /* or also typecast and nillable */
}
@@ -101425,51 +1214,51 @@ static int decode_v2gDC_BidirectionalControlResType(bitstream_t* stream, struct
}
}
break;
- case 2848:
+ case 21:
/* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgBody}EVSEMaximumChargePower), START_ELEMENT({urn:iso:15118:2:2016:MsgBody}EVSEMaximumDischargePower), START_ELEMENT({urn:iso:15118:2:2016:MsgBody}EVSEMaximumChargeCurrent), START_ELEMENT({urn:iso:15118:2:2016:MsgBody}EVSEMaximumDischargeCurrent), START_ELEMENT({urn:iso:15118:2:2016:MsgBody}EVSEMaximumVoltage), START_ELEMENT({urn:iso:15118:2:2016:MsgBody}EVSEMinimumVoltage), START_ELEMENT({urn:iso:15118:2:2016:MsgBody}EVSEID)] */
errn = decodeNBitUnsignedInteger(stream, 3, &eventCode);
if (errn == 0) {
switch(eventCode) {
case 0:
- errn = decode_v2gPhysicalValueType(stream, &v2gDC_BidirectionalControlResType->EVSEMaximumChargePower);
- v2gDC_BidirectionalControlResType->EVSEMaximumChargePower_isUsed = 1u;
- grammarID = 2849;
+ errn = decode_iso2PhysicalValueType(stream, &iso2DC_BidirectionalControlResType->EVSEMaximumChargePower);
+ iso2DC_BidirectionalControlResType->EVSEMaximumChargePower_isUsed = 1u;
+ grammarID = 22;
break;
case 1:
- errn = decode_v2gPhysicalValueType(stream, &v2gDC_BidirectionalControlResType->EVSEMaximumDischargePower);
- v2gDC_BidirectionalControlResType->EVSEMaximumDischargePower_isUsed = 1u;
- grammarID = 2850;
+ errn = decode_iso2PhysicalValueType(stream, &iso2DC_BidirectionalControlResType->EVSEMaximumDischargePower);
+ iso2DC_BidirectionalControlResType->EVSEMaximumDischargePower_isUsed = 1u;
+ grammarID = 23;
break;
case 2:
- errn = decode_v2gPhysicalValueType(stream, &v2gDC_BidirectionalControlResType->EVSEMaximumChargeCurrent);
- v2gDC_BidirectionalControlResType->EVSEMaximumChargeCurrent_isUsed = 1u;
- grammarID = 2851;
+ errn = decode_iso2PhysicalValueType(stream, &iso2DC_BidirectionalControlResType->EVSEMaximumChargeCurrent);
+ iso2DC_BidirectionalControlResType->EVSEMaximumChargeCurrent_isUsed = 1u;
+ grammarID = 24;
break;
case 3:
- errn = decode_v2gPhysicalValueType(stream, &v2gDC_BidirectionalControlResType->EVSEMaximumDischargeCurrent);
- v2gDC_BidirectionalControlResType->EVSEMaximumDischargeCurrent_isUsed = 1u;
- grammarID = 2852;
+ errn = decode_iso2PhysicalValueType(stream, &iso2DC_BidirectionalControlResType->EVSEMaximumDischargeCurrent);
+ iso2DC_BidirectionalControlResType->EVSEMaximumDischargeCurrent_isUsed = 1u;
+ grammarID = 25;
break;
case 4:
- errn = decode_v2gPhysicalValueType(stream, &v2gDC_BidirectionalControlResType->EVSEMaximumVoltage);
- v2gDC_BidirectionalControlResType->EVSEMaximumVoltage_isUsed = 1u;
- grammarID = 2853;
+ errn = decode_iso2PhysicalValueType(stream, &iso2DC_BidirectionalControlResType->EVSEMaximumVoltage);
+ iso2DC_BidirectionalControlResType->EVSEMaximumVoltage_isUsed = 1u;
+ grammarID = 26;
break;
case 5:
- errn = decode_v2gPhysicalValueType(stream, &v2gDC_BidirectionalControlResType->EVSEMinimumVoltage);
- v2gDC_BidirectionalControlResType->EVSEMinimumVoltage_isUsed = 1u;
- grammarID = 1509;
+ errn = decode_iso2PhysicalValueType(stream, &iso2DC_BidirectionalControlResType->EVSEMinimumVoltage);
+ iso2DC_BidirectionalControlResType->EVSEMinimumVoltage_isUsed = 1u;
+ grammarID = 27;
break;
case 6:
/* FirstStartTag[CHARACTERS[STRING]] */
errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
if(errn == 0) {
if(eventCode == 0) {
- errn = decodeUnsignedInteger16(stream, &v2gDC_BidirectionalControlResType->EVSEID.charactersLen);
+ errn = decodeUnsignedInteger16(stream, &iso2DC_BidirectionalControlResType->EVSEID.charactersLen);
if (errn == 0) {
- if (v2gDC_BidirectionalControlResType->EVSEID.charactersLen >= 2) {
- v2gDC_BidirectionalControlResType->EVSEID.charactersLen = (uint16_t)(v2gDC_BidirectionalControlResType->EVSEID.charactersLen - 2); /* string table miss */
- errn = decodeCharacters(stream, v2gDC_BidirectionalControlResType->EVSEID.charactersLen, v2gDC_BidirectionalControlResType->EVSEID.characters, v2gDC_BidirectionalControlResType_EVSEID_CHARACTERS_SIZE);
+ if (iso2DC_BidirectionalControlResType->EVSEID.charactersLen >= 2) {
+ iso2DC_BidirectionalControlResType->EVSEID.charactersLen = (uint16_t)(iso2DC_BidirectionalControlResType->EVSEID.charactersLen - 2); /* string table miss */
+ errn = decodeCharacters(stream, iso2DC_BidirectionalControlResType->EVSEID.charactersLen, iso2DC_BidirectionalControlResType->EVSEID.characters, iso2DC_BidirectionalControlResType_EVSEID_CHARACTERS_SIZE);
} else {
/* string table hit */
errn = EXI_ERROR_STRINGVALUES_NOT_SUPPORTED;
@@ -101484,7 +1273,7 @@ static int decode_v2gDC_BidirectionalControlResType(bitstream_t* stream, struct
/* valid EE for simple element START_ELEMENT({urn:iso:15118:2:2016:MsgBody}EVSEID) ? */
errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
if(eventCode == 0) {
- grammarID = 1510;
+ grammarID = 28;
} else {
errn = EXI_DEVIANT_SUPPORT_NOT_DEPLOYED; /* or also typecast and nillable */
}
@@ -101496,46 +1285,46 @@ static int decode_v2gDC_BidirectionalControlResType(bitstream_t* stream, struct
}
}
break;
- case 2849:
+ case 22:
/* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgBody}EVSEMaximumDischargePower), START_ELEMENT({urn:iso:15118:2:2016:MsgBody}EVSEMaximumChargeCurrent), START_ELEMENT({urn:iso:15118:2:2016:MsgBody}EVSEMaximumDischargeCurrent), START_ELEMENT({urn:iso:15118:2:2016:MsgBody}EVSEMaximumVoltage), START_ELEMENT({urn:iso:15118:2:2016:MsgBody}EVSEMinimumVoltage), START_ELEMENT({urn:iso:15118:2:2016:MsgBody}EVSEID)] */
errn = decodeNBitUnsignedInteger(stream, 3, &eventCode);
if (errn == 0) {
switch(eventCode) {
case 0:
- errn = decode_v2gPhysicalValueType(stream, &v2gDC_BidirectionalControlResType->EVSEMaximumDischargePower);
- v2gDC_BidirectionalControlResType->EVSEMaximumDischargePower_isUsed = 1u;
- grammarID = 2850;
+ errn = decode_iso2PhysicalValueType(stream, &iso2DC_BidirectionalControlResType->EVSEMaximumDischargePower);
+ iso2DC_BidirectionalControlResType->EVSEMaximumDischargePower_isUsed = 1u;
+ grammarID = 23;
break;
case 1:
- errn = decode_v2gPhysicalValueType(stream, &v2gDC_BidirectionalControlResType->EVSEMaximumChargeCurrent);
- v2gDC_BidirectionalControlResType->EVSEMaximumChargeCurrent_isUsed = 1u;
- grammarID = 2851;
+ errn = decode_iso2PhysicalValueType(stream, &iso2DC_BidirectionalControlResType->EVSEMaximumChargeCurrent);
+ iso2DC_BidirectionalControlResType->EVSEMaximumChargeCurrent_isUsed = 1u;
+ grammarID = 24;
break;
case 2:
- errn = decode_v2gPhysicalValueType(stream, &v2gDC_BidirectionalControlResType->EVSEMaximumDischargeCurrent);
- v2gDC_BidirectionalControlResType->EVSEMaximumDischargeCurrent_isUsed = 1u;
- grammarID = 2852;
+ errn = decode_iso2PhysicalValueType(stream, &iso2DC_BidirectionalControlResType->EVSEMaximumDischargeCurrent);
+ iso2DC_BidirectionalControlResType->EVSEMaximumDischargeCurrent_isUsed = 1u;
+ grammarID = 25;
break;
case 3:
- errn = decode_v2gPhysicalValueType(stream, &v2gDC_BidirectionalControlResType->EVSEMaximumVoltage);
- v2gDC_BidirectionalControlResType->EVSEMaximumVoltage_isUsed = 1u;
- grammarID = 2853;
+ errn = decode_iso2PhysicalValueType(stream, &iso2DC_BidirectionalControlResType->EVSEMaximumVoltage);
+ iso2DC_BidirectionalControlResType->EVSEMaximumVoltage_isUsed = 1u;
+ grammarID = 26;
break;
case 4:
- errn = decode_v2gPhysicalValueType(stream, &v2gDC_BidirectionalControlResType->EVSEMinimumVoltage);
- v2gDC_BidirectionalControlResType->EVSEMinimumVoltage_isUsed = 1u;
- grammarID = 1509;
+ errn = decode_iso2PhysicalValueType(stream, &iso2DC_BidirectionalControlResType->EVSEMinimumVoltage);
+ iso2DC_BidirectionalControlResType->EVSEMinimumVoltage_isUsed = 1u;
+ grammarID = 27;
break;
case 5:
/* FirstStartTag[CHARACTERS[STRING]] */
errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
if(errn == 0) {
if(eventCode == 0) {
- errn = decodeUnsignedInteger16(stream, &v2gDC_BidirectionalControlResType->EVSEID.charactersLen);
+ errn = decodeUnsignedInteger16(stream, &iso2DC_BidirectionalControlResType->EVSEID.charactersLen);
if (errn == 0) {
- if (v2gDC_BidirectionalControlResType->EVSEID.charactersLen >= 2) {
- v2gDC_BidirectionalControlResType->EVSEID.charactersLen = (uint16_t)(v2gDC_BidirectionalControlResType->EVSEID.charactersLen - 2); /* string table miss */
- errn = decodeCharacters(stream, v2gDC_BidirectionalControlResType->EVSEID.charactersLen, v2gDC_BidirectionalControlResType->EVSEID.characters, v2gDC_BidirectionalControlResType_EVSEID_CHARACTERS_SIZE);
+ if (iso2DC_BidirectionalControlResType->EVSEID.charactersLen >= 2) {
+ iso2DC_BidirectionalControlResType->EVSEID.charactersLen = (uint16_t)(iso2DC_BidirectionalControlResType->EVSEID.charactersLen - 2); /* string table miss */
+ errn = decodeCharacters(stream, iso2DC_BidirectionalControlResType->EVSEID.charactersLen, iso2DC_BidirectionalControlResType->EVSEID.characters, iso2DC_BidirectionalControlResType_EVSEID_CHARACTERS_SIZE);
} else {
/* string table hit */
errn = EXI_ERROR_STRINGVALUES_NOT_SUPPORTED;
@@ -101550,7 +1339,7 @@ static int decode_v2gDC_BidirectionalControlResType(bitstream_t* stream, struct
/* valid EE for simple element START_ELEMENT({urn:iso:15118:2:2016:MsgBody}EVSEID) ? */
errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
if(eventCode == 0) {
- grammarID = 1510;
+ grammarID = 28;
} else {
errn = EXI_DEVIANT_SUPPORT_NOT_DEPLOYED; /* or also typecast and nillable */
}
@@ -101562,41 +1351,41 @@ static int decode_v2gDC_BidirectionalControlResType(bitstream_t* stream, struct
}
}
break;
- case 2850:
+ case 23:
/* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgBody}EVSEMaximumChargeCurrent), START_ELEMENT({urn:iso:15118:2:2016:MsgBody}EVSEMaximumDischargeCurrent), START_ELEMENT({urn:iso:15118:2:2016:MsgBody}EVSEMaximumVoltage), START_ELEMENT({urn:iso:15118:2:2016:MsgBody}EVSEMinimumVoltage), START_ELEMENT({urn:iso:15118:2:2016:MsgBody}EVSEID)] */
errn = decodeNBitUnsignedInteger(stream, 3, &eventCode);
if (errn == 0) {
switch(eventCode) {
case 0:
- errn = decode_v2gPhysicalValueType(stream, &v2gDC_BidirectionalControlResType->EVSEMaximumChargeCurrent);
- v2gDC_BidirectionalControlResType->EVSEMaximumChargeCurrent_isUsed = 1u;
- grammarID = 2851;
+ errn = decode_iso2PhysicalValueType(stream, &iso2DC_BidirectionalControlResType->EVSEMaximumChargeCurrent);
+ iso2DC_BidirectionalControlResType->EVSEMaximumChargeCurrent_isUsed = 1u;
+ grammarID = 24;
break;
case 1:
- errn = decode_v2gPhysicalValueType(stream, &v2gDC_BidirectionalControlResType->EVSEMaximumDischargeCurrent);
- v2gDC_BidirectionalControlResType->EVSEMaximumDischargeCurrent_isUsed = 1u;
- grammarID = 2852;
+ errn = decode_iso2PhysicalValueType(stream, &iso2DC_BidirectionalControlResType->EVSEMaximumDischargeCurrent);
+ iso2DC_BidirectionalControlResType->EVSEMaximumDischargeCurrent_isUsed = 1u;
+ grammarID = 25;
break;
case 2:
- errn = decode_v2gPhysicalValueType(stream, &v2gDC_BidirectionalControlResType->EVSEMaximumVoltage);
- v2gDC_BidirectionalControlResType->EVSEMaximumVoltage_isUsed = 1u;
- grammarID = 2853;
+ errn = decode_iso2PhysicalValueType(stream, &iso2DC_BidirectionalControlResType->EVSEMaximumVoltage);
+ iso2DC_BidirectionalControlResType->EVSEMaximumVoltage_isUsed = 1u;
+ grammarID = 26;
break;
case 3:
- errn = decode_v2gPhysicalValueType(stream, &v2gDC_BidirectionalControlResType->EVSEMinimumVoltage);
- v2gDC_BidirectionalControlResType->EVSEMinimumVoltage_isUsed = 1u;
- grammarID = 1509;
+ errn = decode_iso2PhysicalValueType(stream, &iso2DC_BidirectionalControlResType->EVSEMinimumVoltage);
+ iso2DC_BidirectionalControlResType->EVSEMinimumVoltage_isUsed = 1u;
+ grammarID = 27;
break;
case 4:
/* FirstStartTag[CHARACTERS[STRING]] */
errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
if(errn == 0) {
if(eventCode == 0) {
- errn = decodeUnsignedInteger16(stream, &v2gDC_BidirectionalControlResType->EVSEID.charactersLen);
+ errn = decodeUnsignedInteger16(stream, &iso2DC_BidirectionalControlResType->EVSEID.charactersLen);
if (errn == 0) {
- if (v2gDC_BidirectionalControlResType->EVSEID.charactersLen >= 2) {
- v2gDC_BidirectionalControlResType->EVSEID.charactersLen = (uint16_t)(v2gDC_BidirectionalControlResType->EVSEID.charactersLen - 2); /* string table miss */
- errn = decodeCharacters(stream, v2gDC_BidirectionalControlResType->EVSEID.charactersLen, v2gDC_BidirectionalControlResType->EVSEID.characters, v2gDC_BidirectionalControlResType_EVSEID_CHARACTERS_SIZE);
+ if (iso2DC_BidirectionalControlResType->EVSEID.charactersLen >= 2) {
+ iso2DC_BidirectionalControlResType->EVSEID.charactersLen = (uint16_t)(iso2DC_BidirectionalControlResType->EVSEID.charactersLen - 2); /* string table miss */
+ errn = decodeCharacters(stream, iso2DC_BidirectionalControlResType->EVSEID.charactersLen, iso2DC_BidirectionalControlResType->EVSEID.characters, iso2DC_BidirectionalControlResType_EVSEID_CHARACTERS_SIZE);
} else {
/* string table hit */
errn = EXI_ERROR_STRINGVALUES_NOT_SUPPORTED;
@@ -101611,7 +1400,7 @@ static int decode_v2gDC_BidirectionalControlResType(bitstream_t* stream, struct
/* valid EE for simple element START_ELEMENT({urn:iso:15118:2:2016:MsgBody}EVSEID) ? */
errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
if(eventCode == 0) {
- grammarID = 1510;
+ grammarID = 28;
} else {
errn = EXI_DEVIANT_SUPPORT_NOT_DEPLOYED; /* or also typecast and nillable */
}
@@ -101623,36 +1412,36 @@ static int decode_v2gDC_BidirectionalControlResType(bitstream_t* stream, struct
}
}
break;
- case 2851:
+ case 24:
/* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgBody}EVSEMaximumDischargeCurrent), START_ELEMENT({urn:iso:15118:2:2016:MsgBody}EVSEMaximumVoltage), START_ELEMENT({urn:iso:15118:2:2016:MsgBody}EVSEMinimumVoltage), START_ELEMENT({urn:iso:15118:2:2016:MsgBody}EVSEID)] */
errn = decodeNBitUnsignedInteger(stream, 3, &eventCode);
if (errn == 0) {
switch(eventCode) {
case 0:
- errn = decode_v2gPhysicalValueType(stream, &v2gDC_BidirectionalControlResType->EVSEMaximumDischargeCurrent);
- v2gDC_BidirectionalControlResType->EVSEMaximumDischargeCurrent_isUsed = 1u;
- grammarID = 2852;
+ errn = decode_iso2PhysicalValueType(stream, &iso2DC_BidirectionalControlResType->EVSEMaximumDischargeCurrent);
+ iso2DC_BidirectionalControlResType->EVSEMaximumDischargeCurrent_isUsed = 1u;
+ grammarID = 25;
break;
case 1:
- errn = decode_v2gPhysicalValueType(stream, &v2gDC_BidirectionalControlResType->EVSEMaximumVoltage);
- v2gDC_BidirectionalControlResType->EVSEMaximumVoltage_isUsed = 1u;
- grammarID = 2853;
+ errn = decode_iso2PhysicalValueType(stream, &iso2DC_BidirectionalControlResType->EVSEMaximumVoltage);
+ iso2DC_BidirectionalControlResType->EVSEMaximumVoltage_isUsed = 1u;
+ grammarID = 26;
break;
case 2:
- errn = decode_v2gPhysicalValueType(stream, &v2gDC_BidirectionalControlResType->EVSEMinimumVoltage);
- v2gDC_BidirectionalControlResType->EVSEMinimumVoltage_isUsed = 1u;
- grammarID = 1509;
+ errn = decode_iso2PhysicalValueType(stream, &iso2DC_BidirectionalControlResType->EVSEMinimumVoltage);
+ iso2DC_BidirectionalControlResType->EVSEMinimumVoltage_isUsed = 1u;
+ grammarID = 27;
break;
case 3:
/* FirstStartTag[CHARACTERS[STRING]] */
errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
if(errn == 0) {
if(eventCode == 0) {
- errn = decodeUnsignedInteger16(stream, &v2gDC_BidirectionalControlResType->EVSEID.charactersLen);
+ errn = decodeUnsignedInteger16(stream, &iso2DC_BidirectionalControlResType->EVSEID.charactersLen);
if (errn == 0) {
- if (v2gDC_BidirectionalControlResType->EVSEID.charactersLen >= 2) {
- v2gDC_BidirectionalControlResType->EVSEID.charactersLen = (uint16_t)(v2gDC_BidirectionalControlResType->EVSEID.charactersLen - 2); /* string table miss */
- errn = decodeCharacters(stream, v2gDC_BidirectionalControlResType->EVSEID.charactersLen, v2gDC_BidirectionalControlResType->EVSEID.characters, v2gDC_BidirectionalControlResType_EVSEID_CHARACTERS_SIZE);
+ if (iso2DC_BidirectionalControlResType->EVSEID.charactersLen >= 2) {
+ iso2DC_BidirectionalControlResType->EVSEID.charactersLen = (uint16_t)(iso2DC_BidirectionalControlResType->EVSEID.charactersLen - 2); /* string table miss */
+ errn = decodeCharacters(stream, iso2DC_BidirectionalControlResType->EVSEID.charactersLen, iso2DC_BidirectionalControlResType->EVSEID.characters, iso2DC_BidirectionalControlResType_EVSEID_CHARACTERS_SIZE);
} else {
/* string table hit */
errn = EXI_ERROR_STRINGVALUES_NOT_SUPPORTED;
@@ -101667,7 +1456,7 @@ static int decode_v2gDC_BidirectionalControlResType(bitstream_t* stream, struct
/* valid EE for simple element START_ELEMENT({urn:iso:15118:2:2016:MsgBody}EVSEID) ? */
errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
if(eventCode == 0) {
- grammarID = 1510;
+ grammarID = 28;
} else {
errn = EXI_DEVIANT_SUPPORT_NOT_DEPLOYED; /* or also typecast and nillable */
}
@@ -101679,31 +1468,31 @@ static int decode_v2gDC_BidirectionalControlResType(bitstream_t* stream, struct
}
}
break;
- case 2852:
+ case 25:
/* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgBody}EVSEMaximumVoltage), START_ELEMENT({urn:iso:15118:2:2016:MsgBody}EVSEMinimumVoltage), START_ELEMENT({urn:iso:15118:2:2016:MsgBody}EVSEID)] */
errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
if (errn == 0) {
switch(eventCode) {
case 0:
- errn = decode_v2gPhysicalValueType(stream, &v2gDC_BidirectionalControlResType->EVSEMaximumVoltage);
- v2gDC_BidirectionalControlResType->EVSEMaximumVoltage_isUsed = 1u;
- grammarID = 2853;
+ errn = decode_iso2PhysicalValueType(stream, &iso2DC_BidirectionalControlResType->EVSEMaximumVoltage);
+ iso2DC_BidirectionalControlResType->EVSEMaximumVoltage_isUsed = 1u;
+ grammarID = 26;
break;
case 1:
- errn = decode_v2gPhysicalValueType(stream, &v2gDC_BidirectionalControlResType->EVSEMinimumVoltage);
- v2gDC_BidirectionalControlResType->EVSEMinimumVoltage_isUsed = 1u;
- grammarID = 1509;
+ errn = decode_iso2PhysicalValueType(stream, &iso2DC_BidirectionalControlResType->EVSEMinimumVoltage);
+ iso2DC_BidirectionalControlResType->EVSEMinimumVoltage_isUsed = 1u;
+ grammarID = 27;
break;
case 2:
/* FirstStartTag[CHARACTERS[STRING]] */
errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
if(errn == 0) {
if(eventCode == 0) {
- errn = decodeUnsignedInteger16(stream, &v2gDC_BidirectionalControlResType->EVSEID.charactersLen);
+ errn = decodeUnsignedInteger16(stream, &iso2DC_BidirectionalControlResType->EVSEID.charactersLen);
if (errn == 0) {
- if (v2gDC_BidirectionalControlResType->EVSEID.charactersLen >= 2) {
- v2gDC_BidirectionalControlResType->EVSEID.charactersLen = (uint16_t)(v2gDC_BidirectionalControlResType->EVSEID.charactersLen - 2); /* string table miss */
- errn = decodeCharacters(stream, v2gDC_BidirectionalControlResType->EVSEID.charactersLen, v2gDC_BidirectionalControlResType->EVSEID.characters, v2gDC_BidirectionalControlResType_EVSEID_CHARACTERS_SIZE);
+ if (iso2DC_BidirectionalControlResType->EVSEID.charactersLen >= 2) {
+ iso2DC_BidirectionalControlResType->EVSEID.charactersLen = (uint16_t)(iso2DC_BidirectionalControlResType->EVSEID.charactersLen - 2); /* string table miss */
+ errn = decodeCharacters(stream, iso2DC_BidirectionalControlResType->EVSEID.charactersLen, iso2DC_BidirectionalControlResType->EVSEID.characters, iso2DC_BidirectionalControlResType_EVSEID_CHARACTERS_SIZE);
} else {
/* string table hit */
errn = EXI_ERROR_STRINGVALUES_NOT_SUPPORTED;
@@ -101718,7 +1507,7 @@ static int decode_v2gDC_BidirectionalControlResType(bitstream_t* stream, struct
/* valid EE for simple element START_ELEMENT({urn:iso:15118:2:2016:MsgBody}EVSEID) ? */
errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
if(eventCode == 0) {
- grammarID = 1510;
+ grammarID = 28;
} else {
errn = EXI_DEVIANT_SUPPORT_NOT_DEPLOYED; /* or also typecast and nillable */
}
@@ -101730,26 +1519,26 @@ static int decode_v2gDC_BidirectionalControlResType(bitstream_t* stream, struct
}
}
break;
- case 2853:
+ case 26:
/* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgBody}EVSEMinimumVoltage), START_ELEMENT({urn:iso:15118:2:2016:MsgBody}EVSEID)] */
errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
if (errn == 0) {
switch(eventCode) {
case 0:
- errn = decode_v2gPhysicalValueType(stream, &v2gDC_BidirectionalControlResType->EVSEMinimumVoltage);
- v2gDC_BidirectionalControlResType->EVSEMinimumVoltage_isUsed = 1u;
- grammarID = 1509;
+ errn = decode_iso2PhysicalValueType(stream, &iso2DC_BidirectionalControlResType->EVSEMinimumVoltage);
+ iso2DC_BidirectionalControlResType->EVSEMinimumVoltage_isUsed = 1u;
+ grammarID = 27;
break;
case 1:
/* FirstStartTag[CHARACTERS[STRING]] */
errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
if(errn == 0) {
if(eventCode == 0) {
- errn = decodeUnsignedInteger16(stream, &v2gDC_BidirectionalControlResType->EVSEID.charactersLen);
+ errn = decodeUnsignedInteger16(stream, &iso2DC_BidirectionalControlResType->EVSEID.charactersLen);
if (errn == 0) {
- if (v2gDC_BidirectionalControlResType->EVSEID.charactersLen >= 2) {
- v2gDC_BidirectionalControlResType->EVSEID.charactersLen = (uint16_t)(v2gDC_BidirectionalControlResType->EVSEID.charactersLen - 2); /* string table miss */
- errn = decodeCharacters(stream, v2gDC_BidirectionalControlResType->EVSEID.charactersLen, v2gDC_BidirectionalControlResType->EVSEID.characters, v2gDC_BidirectionalControlResType_EVSEID_CHARACTERS_SIZE);
+ if (iso2DC_BidirectionalControlResType->EVSEID.charactersLen >= 2) {
+ iso2DC_BidirectionalControlResType->EVSEID.charactersLen = (uint16_t)(iso2DC_BidirectionalControlResType->EVSEID.charactersLen - 2); /* string table miss */
+ errn = decodeCharacters(stream, iso2DC_BidirectionalControlResType->EVSEID.charactersLen, iso2DC_BidirectionalControlResType->EVSEID.characters, iso2DC_BidirectionalControlResType_EVSEID_CHARACTERS_SIZE);
} else {
/* string table hit */
errn = EXI_ERROR_STRINGVALUES_NOT_SUPPORTED;
@@ -101764,7 +1553,7 @@ static int decode_v2gDC_BidirectionalControlResType(bitstream_t* stream, struct
/* valid EE for simple element START_ELEMENT({urn:iso:15118:2:2016:MsgBody}EVSEID) ? */
errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
if(eventCode == 0) {
- grammarID = 1510;
+ grammarID = 28;
} else {
errn = EXI_DEVIANT_SUPPORT_NOT_DEPLOYED; /* or also typecast and nillable */
}
@@ -101776,7 +1565,7 @@ static int decode_v2gDC_BidirectionalControlResType(bitstream_t* stream, struct
}
}
break;
- case 1509:
+ case 27:
/* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgBody}EVSEID)] */
errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
if (errn == 0) {
@@ -101786,11 +1575,11 @@ static int decode_v2gDC_BidirectionalControlResType(bitstream_t* stream, struct
errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
if(errn == 0) {
if(eventCode == 0) {
- errn = decodeUnsignedInteger16(stream, &v2gDC_BidirectionalControlResType->EVSEID.charactersLen);
+ errn = decodeUnsignedInteger16(stream, &iso2DC_BidirectionalControlResType->EVSEID.charactersLen);
if (errn == 0) {
- if (v2gDC_BidirectionalControlResType->EVSEID.charactersLen >= 2) {
- v2gDC_BidirectionalControlResType->EVSEID.charactersLen = (uint16_t)(v2gDC_BidirectionalControlResType->EVSEID.charactersLen - 2); /* string table miss */
- errn = decodeCharacters(stream, v2gDC_BidirectionalControlResType->EVSEID.charactersLen, v2gDC_BidirectionalControlResType->EVSEID.characters, v2gDC_BidirectionalControlResType_EVSEID_CHARACTERS_SIZE);
+ if (iso2DC_BidirectionalControlResType->EVSEID.charactersLen >= 2) {
+ iso2DC_BidirectionalControlResType->EVSEID.charactersLen = (uint16_t)(iso2DC_BidirectionalControlResType->EVSEID.charactersLen - 2); /* string table miss */
+ errn = decodeCharacters(stream, iso2DC_BidirectionalControlResType->EVSEID.charactersLen, iso2DC_BidirectionalControlResType->EVSEID.characters, iso2DC_BidirectionalControlResType_EVSEID_CHARACTERS_SIZE);
} else {
/* string table hit */
errn = EXI_ERROR_STRINGVALUES_NOT_SUPPORTED;
@@ -101805,7 +1594,7 @@ static int decode_v2gDC_BidirectionalControlResType(bitstream_t* stream, struct
/* valid EE for simple element START_ELEMENT({urn:iso:15118:2:2016:MsgBody}EVSEID) ? */
errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
if(eventCode == 0) {
- grammarID = 1510;
+ grammarID = 28;
} else {
errn = EXI_DEVIANT_SUPPORT_NOT_DEPLOYED; /* or also typecast and nillable */
}
@@ -101817,7 +1606,7 @@ static int decode_v2gDC_BidirectionalControlResType(bitstream_t* stream, struct
}
}
break;
- case 1510:
+ case 28:
/* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgBody}SAScheduleTupleID), START_ELEMENT({urn:iso:15118:2:2016:MsgBody}MeterInfo), START_ELEMENT({urn:iso:15118:2:2016:MsgBody}ReceiptRequired), END_ELEMENT] */
errn = decodeNBitUnsignedInteger(stream, 3, &eventCode);
if (errn == 0) {
@@ -101828,8 +1617,8 @@ static int decode_v2gDC_BidirectionalControlResType(bitstream_t* stream, struct
if(errn == 0) {
if(eventCode == 0) {
errn = decodeNBitUnsignedInteger(stream, 8, &(uint32));
- v2gDC_BidirectionalControlResType->SAScheduleTupleID = (uint8_t)(uint32 + 1);
- v2gDC_BidirectionalControlResType->SAScheduleTupleID_isUsed = 1u;
+ iso2DC_BidirectionalControlResType->SAScheduleTupleID = (uint8_t)(uint32 + 1);
+ iso2DC_BidirectionalControlResType->SAScheduleTupleID_isUsed = 1u;
} else {
/* Second level event (e.g., xsi:type, xsi:nil, ...) */
errn = EXI_UNSUPPORTED_EVENT_CODE_CHARACTERISTICS;
@@ -101839,24 +1628,24 @@ static int decode_v2gDC_BidirectionalControlResType(bitstream_t* stream, struct
/* valid EE for simple element START_ELEMENT({urn:iso:15118:2:2016:MsgBody}SAScheduleTupleID) ? */
errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
if(eventCode == 0) {
- grammarID = 1511;
+ grammarID = 29;
} else {
errn = EXI_DEVIANT_SUPPORT_NOT_DEPLOYED; /* or also typecast and nillable */
}
}
break;
case 1:
- errn = decode_v2gMeterInfoType(stream, &v2gDC_BidirectionalControlResType->MeterInfo);
- v2gDC_BidirectionalControlResType->MeterInfo_isUsed = 1u;
- grammarID = 1512;
+ errn = decode_iso2MeterInfoType(stream, &iso2DC_BidirectionalControlResType->MeterInfo);
+ iso2DC_BidirectionalControlResType->MeterInfo_isUsed = 1u;
+ grammarID = 30;
break;
case 2:
/* FirstStartTag[CHARACTERS[BOOLEAN]] */
errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
if(errn == 0) {
if(eventCode == 0) {
- errn = decodeBoolean(stream, &v2gDC_BidirectionalControlResType->ReceiptRequired);
- v2gDC_BidirectionalControlResType->ReceiptRequired_isUsed = 1u;
+ errn = decodeBoolean(stream, &iso2DC_BidirectionalControlResType->ReceiptRequired);
+ iso2DC_BidirectionalControlResType->ReceiptRequired_isUsed = 1u;
} else {
/* Second level event (e.g., xsi:type, xsi:nil, ...) */
errn = EXI_UNSUPPORTED_EVENT_CODE_CHARACTERISTICS;
@@ -101866,7 +1655,7 @@ static int decode_v2gDC_BidirectionalControlResType(bitstream_t* stream, struct
/* valid EE for simple element START_ELEMENT({urn:iso:15118:2:2016:MsgBody}ReceiptRequired) ? */
errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
if(eventCode == 0) {
- grammarID = 2;
+ grammarID = 3;
} else {
errn = EXI_DEVIANT_SUPPORT_NOT_DEPLOYED; /* or also typecast and nillable */
}
@@ -101874,7 +1663,7 @@ static int decode_v2gDC_BidirectionalControlResType(bitstream_t* stream, struct
break;
case 3:
done = 1;
- grammarID = 3;
+ grammarID = 4;
break;
default:
errn = EXI_ERROR_UNKOWN_EVENT_CODE;
@@ -101882,23 +1671,23 @@ static int decode_v2gDC_BidirectionalControlResType(bitstream_t* stream, struct
}
}
break;
- case 1511:
+ case 29:
/* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgBody}MeterInfo), START_ELEMENT({urn:iso:15118:2:2016:MsgBody}ReceiptRequired), END_ELEMENT] */
errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
if (errn == 0) {
switch(eventCode) {
case 0:
- errn = decode_v2gMeterInfoType(stream, &v2gDC_BidirectionalControlResType->MeterInfo);
- v2gDC_BidirectionalControlResType->MeterInfo_isUsed = 1u;
- grammarID = 1512;
+ errn = decode_iso2MeterInfoType(stream, &iso2DC_BidirectionalControlResType->MeterInfo);
+ iso2DC_BidirectionalControlResType->MeterInfo_isUsed = 1u;
+ grammarID = 30;
break;
case 1:
/* FirstStartTag[CHARACTERS[BOOLEAN]] */
errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
if(errn == 0) {
if(eventCode == 0) {
- errn = decodeBoolean(stream, &v2gDC_BidirectionalControlResType->ReceiptRequired);
- v2gDC_BidirectionalControlResType->ReceiptRequired_isUsed = 1u;
+ errn = decodeBoolean(stream, &iso2DC_BidirectionalControlResType->ReceiptRequired);
+ iso2DC_BidirectionalControlResType->ReceiptRequired_isUsed = 1u;
} else {
/* Second level event (e.g., xsi:type, xsi:nil, ...) */
errn = EXI_UNSUPPORTED_EVENT_CODE_CHARACTERISTICS;
@@ -101908,7 +1697,7 @@ static int decode_v2gDC_BidirectionalControlResType(bitstream_t* stream, struct
/* valid EE for simple element START_ELEMENT({urn:iso:15118:2:2016:MsgBody}ReceiptRequired) ? */
errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
if(eventCode == 0) {
- grammarID = 2;
+ grammarID = 3;
} else {
errn = EXI_DEVIANT_SUPPORT_NOT_DEPLOYED; /* or also typecast and nillable */
}
@@ -101916,7 +1705,7 @@ static int decode_v2gDC_BidirectionalControlResType(bitstream_t* stream, struct
break;
case 2:
done = 1;
- grammarID = 3;
+ grammarID = 4;
break;
default:
errn = EXI_ERROR_UNKOWN_EVENT_CODE;
@@ -101924,7 +1713,7 @@ static int decode_v2gDC_BidirectionalControlResType(bitstream_t* stream, struct
}
}
break;
- case 1512:
+ case 30:
/* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgBody}ReceiptRequired), END_ELEMENT] */
errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
if (errn == 0) {
@@ -101934,8 +1723,8 @@ static int decode_v2gDC_BidirectionalControlResType(bitstream_t* stream, struct
errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
if(errn == 0) {
if(eventCode == 0) {
- errn = decodeBoolean(stream, &v2gDC_BidirectionalControlResType->ReceiptRequired);
- v2gDC_BidirectionalControlResType->ReceiptRequired_isUsed = 1u;
+ errn = decodeBoolean(stream, &iso2DC_BidirectionalControlResType->ReceiptRequired);
+ iso2DC_BidirectionalControlResType->ReceiptRequired_isUsed = 1u;
} else {
/* Second level event (e.g., xsi:type, xsi:nil, ...) */
errn = EXI_UNSUPPORTED_EVENT_CODE_CHARACTERISTICS;
@@ -101945,7 +1734,7 @@ static int decode_v2gDC_BidirectionalControlResType(bitstream_t* stream, struct
/* valid EE for simple element START_ELEMENT({urn:iso:15118:2:2016:MsgBody}ReceiptRequired) ? */
errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
if(eventCode == 0) {
- grammarID = 2;
+ grammarID = 3;
} else {
errn = EXI_DEVIANT_SUPPORT_NOT_DEPLOYED; /* or also typecast and nillable */
}
@@ -101953,6 +1742,89 @@ static int decode_v2gDC_BidirectionalControlResType(bitstream_t* stream, struct
break;
case 1:
done = 1;
+ grammarID = 4;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 3:
+ /* Element[END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ done = 1;
+ grammarID = 4;
+ 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:2016:MsgDataTypes,CostType', base type name='anyType', content type='ELEMENT', isAbstract='false', hasTypeId='false', final='0', block='0', particle='("urn:iso:15118:2:2016:MsgDataTypes":costKind,"urn:iso:15118:2:2016:MsgDataTypes":amount)', derivedBy='RESTRICTION'. */
+static int decode_iso2CostType(bitstream_t* stream, struct iso2CostType* iso2CostType) {
+ int grammarID = 31;
+ int done = 0;
+
+ init_iso2CostType(iso2CostType);
+
+ while(!done) {
+ switch(grammarID) {
+ case 31:
+ /* FirstStartTag[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}costKind)] */
+ 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);
+ iso2CostType->costKind = (iso2costKindType) 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({urn:iso:15118:2:2016:MsgDataTypes}costKind) ? */
+ errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
+ if(eventCode == 0) {
+ grammarID = 32;
+ } else {
+ errn = EXI_DEVIANT_SUPPORT_NOT_DEPLOYED; /* or also typecast and nillable */
+ }
+ }
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 32:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}amount)] */
+ errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ errn = decode_iso2PhysicalValueType(stream, &iso2CostType->amount);
grammarID = 3;
break;
default:
@@ -101961,15 +1833,46083 @@ static int decode_v2gDC_BidirectionalControlResType(bitstream_t* stream, struct
}
}
break;
- case 2:
+ case 3:
/* Element[END_ELEMENT] */
errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
if (errn == 0) {
switch(eventCode) {
case 0:
done = 1;
+ grammarID = 4;
+ 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:2016:MsgBody,ChargingStatusResType', base type name='V2GResponseType', content type='ELEMENT', isAbstract='false', hasTypeId='false', final='0', block='0', particle='(("urn:iso:15118:2:2016:MsgBody":ResponseCode,"urn:iso:15118:2:2016:MsgBody":EVSEStatus{0-1}),("urn:iso:15118:2:2016:MsgBody":EVSEID,"urn:iso:15118:2:2016:MsgBody":SAScheduleTupleID{0-1},"urn:iso:15118:2:2016:MsgBody":MeterInfo{0-1},"urn:iso:15118:2:2016:MsgBody":ReceiptRequired{0-1},"urn:iso:15118:2:2016:MsgBody":EVSETargetPower{0-1}))', derivedBy='EXTENSION'. */
+static int decode_iso2ChargingStatusResType(bitstream_t* stream, struct iso2ChargingStatusResType* iso2ChargingStatusResType) {
+ int grammarID = 33;
+ int done = 0;
+
+ init_iso2ChargingStatusResType(iso2ChargingStatusResType);
+
+ while(!done) {
+ switch(grammarID) {
+ case 33:
+ /* FirstStartTag[START_ELEMENT({urn:iso:15118:2:2016:MsgBody}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, 5, &uint32);
+ iso2ChargingStatusResType->ResponseCode = (iso2responseCodeType) 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({urn:iso:15118:2:2016:MsgBody}ResponseCode) ? */
+ errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
+ if(eventCode == 0) {
+ grammarID = 34;
+ } else {
+ errn = EXI_DEVIANT_SUPPORT_NOT_DEPLOYED; /* or also typecast and nillable */
+ }
+ }
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 34:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgBody}EVSEStatus), START_ELEMENT({urn:iso:15118:2:2016:MsgBody}EVSEID)] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ errn = decode_iso2EVSEStatusType(stream, &iso2ChargingStatusResType->EVSEStatus);
+ iso2ChargingStatusResType->EVSEStatus_isUsed = 1u;
+ grammarID = 35;
+ break;
+ case 1:
+ /* FirstStartTag[CHARACTERS[STRING]] */
+ errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
+ if(errn == 0) {
+ if(eventCode == 0) {
+ errn = decodeUnsignedInteger16(stream, &iso2ChargingStatusResType->EVSEID.charactersLen);
+ if (errn == 0) {
+ if (iso2ChargingStatusResType->EVSEID.charactersLen >= 2) {
+ iso2ChargingStatusResType->EVSEID.charactersLen = (uint16_t)(iso2ChargingStatusResType->EVSEID.charactersLen - 2); /* string table miss */
+ errn = decodeCharacters(stream, iso2ChargingStatusResType->EVSEID.charactersLen, iso2ChargingStatusResType->EVSEID.characters, iso2ChargingStatusResType_EVSEID_CHARACTERS_SIZE);
+ } else {
+ /* string table hit */
+ errn = EXI_ERROR_STRINGVALUES_NOT_SUPPORTED;
+ }
+ }
+ } 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({urn:iso:15118:2:2016:MsgBody}EVSEID) ? */
+ errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
+ if(eventCode == 0) {
+ grammarID = 36;
+ } else {
+ errn = EXI_DEVIANT_SUPPORT_NOT_DEPLOYED; /* or also typecast and nillable */
+ }
+ }
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 35:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgBody}EVSEID)] */
+ errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ /* FirstStartTag[CHARACTERS[STRING]] */
+ errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
+ if(errn == 0) {
+ if(eventCode == 0) {
+ errn = decodeUnsignedInteger16(stream, &iso2ChargingStatusResType->EVSEID.charactersLen);
+ if (errn == 0) {
+ if (iso2ChargingStatusResType->EVSEID.charactersLen >= 2) {
+ iso2ChargingStatusResType->EVSEID.charactersLen = (uint16_t)(iso2ChargingStatusResType->EVSEID.charactersLen - 2); /* string table miss */
+ errn = decodeCharacters(stream, iso2ChargingStatusResType->EVSEID.charactersLen, iso2ChargingStatusResType->EVSEID.characters, iso2ChargingStatusResType_EVSEID_CHARACTERS_SIZE);
+ } else {
+ /* string table hit */
+ errn = EXI_ERROR_STRINGVALUES_NOT_SUPPORTED;
+ }
+ }
+ } 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({urn:iso:15118:2:2016:MsgBody}EVSEID) ? */
+ errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
+ if(eventCode == 0) {
+ grammarID = 36;
+ } else {
+ errn = EXI_DEVIANT_SUPPORT_NOT_DEPLOYED; /* or also typecast and nillable */
+ }
+ }
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 36:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgBody}SAScheduleTupleID), START_ELEMENT({urn:iso:15118:2:2016:MsgBody}MeterInfo), START_ELEMENT({urn:iso:15118:2:2016:MsgBody}ReceiptRequired), START_ELEMENT({urn:iso:15118:2:2016:MsgBody}EVSETargetPower), END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 3, &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));
+ iso2ChargingStatusResType->SAScheduleTupleID = (uint8_t)(uint32 + 1);
+ iso2ChargingStatusResType->SAScheduleTupleID_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({urn:iso:15118:2:2016:MsgBody}SAScheduleTupleID) ? */
+ errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
+ if(eventCode == 0) {
+ grammarID = 37;
+ } else {
+ errn = EXI_DEVIANT_SUPPORT_NOT_DEPLOYED; /* or also typecast and nillable */
+ }
+ }
+ break;
+ case 1:
+ errn = decode_iso2MeterInfoType(stream, &iso2ChargingStatusResType->MeterInfo);
+ iso2ChargingStatusResType->MeterInfo_isUsed = 1u;
+ grammarID = 38;
+ break;
+ case 2:
+ /* FirstStartTag[CHARACTERS[BOOLEAN]] */
+ errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
+ if(errn == 0) {
+ if(eventCode == 0) {
+ errn = decodeBoolean(stream, &iso2ChargingStatusResType->ReceiptRequired);
+ iso2ChargingStatusResType->ReceiptRequired_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({urn:iso:15118:2:2016:MsgBody}ReceiptRequired) ? */
+ errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
+ if(eventCode == 0) {
+ grammarID = 39;
+ } else {
+ errn = EXI_DEVIANT_SUPPORT_NOT_DEPLOYED; /* or also typecast and nillable */
+ }
+ }
+ break;
+ case 3:
+ errn = decode_iso2PhysicalValueType(stream, &iso2ChargingStatusResType->EVSETargetPower);
+ iso2ChargingStatusResType->EVSETargetPower_isUsed = 1u;
grammarID = 3;
break;
+ case 4:
+ done = 1;
+ grammarID = 4;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 37:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgBody}MeterInfo), START_ELEMENT({urn:iso:15118:2:2016:MsgBody}ReceiptRequired), START_ELEMENT({urn:iso:15118:2:2016:MsgBody}EVSETargetPower), END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 3, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ errn = decode_iso2MeterInfoType(stream, &iso2ChargingStatusResType->MeterInfo);
+ iso2ChargingStatusResType->MeterInfo_isUsed = 1u;
+ grammarID = 38;
+ break;
+ case 1:
+ /* FirstStartTag[CHARACTERS[BOOLEAN]] */
+ errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
+ if(errn == 0) {
+ if(eventCode == 0) {
+ errn = decodeBoolean(stream, &iso2ChargingStatusResType->ReceiptRequired);
+ iso2ChargingStatusResType->ReceiptRequired_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({urn:iso:15118:2:2016:MsgBody}ReceiptRequired) ? */
+ errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
+ if(eventCode == 0) {
+ grammarID = 39;
+ } else {
+ errn = EXI_DEVIANT_SUPPORT_NOT_DEPLOYED; /* or also typecast and nillable */
+ }
+ }
+ break;
+ case 2:
+ errn = decode_iso2PhysicalValueType(stream, &iso2ChargingStatusResType->EVSETargetPower);
+ iso2ChargingStatusResType->EVSETargetPower_isUsed = 1u;
+ grammarID = 3;
+ break;
+ case 3:
+ done = 1;
+ grammarID = 4;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 38:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgBody}ReceiptRequired), START_ELEMENT({urn:iso:15118:2:2016:MsgBody}EVSETargetPower), END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ /* FirstStartTag[CHARACTERS[BOOLEAN]] */
+ errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
+ if(errn == 0) {
+ if(eventCode == 0) {
+ errn = decodeBoolean(stream, &iso2ChargingStatusResType->ReceiptRequired);
+ iso2ChargingStatusResType->ReceiptRequired_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({urn:iso:15118:2:2016:MsgBody}ReceiptRequired) ? */
+ errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
+ if(eventCode == 0) {
+ grammarID = 39;
+ } else {
+ errn = EXI_DEVIANT_SUPPORT_NOT_DEPLOYED; /* or also typecast and nillable */
+ }
+ }
+ break;
+ case 1:
+ errn = decode_iso2PhysicalValueType(stream, &iso2ChargingStatusResType->EVSETargetPower);
+ iso2ChargingStatusResType->EVSETargetPower_isUsed = 1u;
+ grammarID = 3;
+ break;
+ case 2:
+ done = 1;
+ grammarID = 4;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 39:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgBody}EVSETargetPower), END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ errn = decode_iso2PhysicalValueType(stream, &iso2ChargingStatusResType->EVSETargetPower);
+ iso2ChargingStatusResType->EVSETargetPower_isUsed = 1u;
+ grammarID = 3;
+ break;
+ case 1:
+ done = 1;
+ grammarID = 4;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 3:
+ /* Element[END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ done = 1;
+ grammarID = 4;
+ 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:2016:MsgDataTypes,MeterInfoType', base type name='anyType', content type='ELEMENT', isAbstract='false', hasTypeId='false', final='0', block='0', particle='("urn:iso:15118:2:2016:MsgDataTypes":MeterID,"urn:iso:15118:2:2016:MsgDataTypes":MeterReadingCharged{0-1},"urn:iso:15118:2:2016:MsgDataTypes":MeterReadingDischarged{0-1},"urn:iso:15118:2:2016:MsgDataTypes":SigMeterReading{0-1},"urn:iso:15118:2:2016:MsgDataTypes":MeterStatus{0-1},"urn:iso:15118:2:2016:MsgDataTypes":TMeter{0-1})', derivedBy='RESTRICTION'. */
+static int decode_iso2MeterInfoType(bitstream_t* stream, struct iso2MeterInfoType* iso2MeterInfoType) {
+ int grammarID = 40;
+ int done = 0;
+
+ init_iso2MeterInfoType(iso2MeterInfoType);
+
+ while(!done) {
+ switch(grammarID) {
+ case 40:
+ /* FirstStartTag[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MeterID)] */
+ errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ /* FirstStartTag[CHARACTERS[STRING]] */
+ errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
+ if(errn == 0) {
+ if(eventCode == 0) {
+ errn = decodeUnsignedInteger16(stream, &iso2MeterInfoType->MeterID.charactersLen);
+ if (errn == 0) {
+ if (iso2MeterInfoType->MeterID.charactersLen >= 2) {
+ iso2MeterInfoType->MeterID.charactersLen = (uint16_t)(iso2MeterInfoType->MeterID.charactersLen - 2); /* string table miss */
+ errn = decodeCharacters(stream, iso2MeterInfoType->MeterID.charactersLen, iso2MeterInfoType->MeterID.characters, iso2MeterInfoType_MeterID_CHARACTERS_SIZE);
+ } else {
+ /* string table hit */
+ errn = EXI_ERROR_STRINGVALUES_NOT_SUPPORTED;
+ }
+ }
+ } 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({urn:iso:15118:2:2016:MsgDataTypes}MeterID) ? */
+ errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
+ if(eventCode == 0) {
+ grammarID = 41;
+ } else {
+ errn = EXI_DEVIANT_SUPPORT_NOT_DEPLOYED; /* or also typecast and nillable */
+ }
+ }
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 41:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MeterReadingCharged), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MeterReadingDischarged), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SigMeterReading), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MeterStatus), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}TMeter), END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 3, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ /* First(xsi:type)StartTag[CHARACTERS[UNSIGNED_INTEGER]] */
+ errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
+ if(errn == 0) {
+ if(eventCode == 0) {
+ errn = decodeUnsignedInteger64(stream, &iso2MeterInfoType->MeterReadingCharged);
+ iso2MeterInfoType->MeterReadingCharged_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({urn:iso:15118:2:2016:MsgDataTypes}MeterReadingCharged) ? */
+ errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
+ if(eventCode == 0) {
+ grammarID = 42;
+ } else {
+ errn = EXI_DEVIANT_SUPPORT_NOT_DEPLOYED; /* or also typecast and nillable */
+ }
+ }
+ break;
+ case 1:
+ /* First(xsi:type)StartTag[CHARACTERS[UNSIGNED_INTEGER]] */
+ errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
+ if(errn == 0) {
+ if(eventCode == 0) {
+ errn = decodeUnsignedInteger64(stream, &iso2MeterInfoType->MeterReadingDischarged);
+ iso2MeterInfoType->MeterReadingDischarged_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({urn:iso:15118:2:2016:MsgDataTypes}MeterReadingDischarged) ? */
+ errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
+ if(eventCode == 0) {
+ grammarID = 43;
+ } else {
+ errn = EXI_DEVIANT_SUPPORT_NOT_DEPLOYED; /* or also typecast and nillable */
+ }
+ }
+ break;
+ case 2:
+ /* FirstStartTag[CHARACTERS[BINARY_BASE64]] */
+ errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
+ if(errn == 0) {
+ if(eventCode == 0) {
+ errn = decodeUnsignedInteger16(stream, &iso2MeterInfoType->SigMeterReading.bytesLen);
+ if (errn == 0) {
+ errn = (iso2MeterInfoType->SigMeterReading.bytesLen) <= iso2MeterInfoType_SigMeterReading_BYTES_SIZE ? 0 : EXI_ERROR_OUT_OF_BYTE_BUFFER;
+ }
+ if (errn == 0) {
+ errn = decodeBytes(stream, iso2MeterInfoType->SigMeterReading.bytesLen, iso2MeterInfoType->SigMeterReading.bytes);
+ }
+ iso2MeterInfoType->SigMeterReading_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({urn:iso:15118:2:2016:MsgDataTypes}SigMeterReading) ? */
+ errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
+ if(eventCode == 0) {
+ grammarID = 44;
+ } else {
+ errn = EXI_DEVIANT_SUPPORT_NOT_DEPLOYED; /* or also typecast and nillable */
+ }
+ }
+ break;
+ case 3:
+ /* FirstStartTag[CHARACTERS[INTEGER]] */
+ errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
+ if(errn == 0) {
+ if(eventCode == 0) {
+ errn = decodeInteger16(stream, &iso2MeterInfoType->MeterStatus);
+ iso2MeterInfoType->MeterStatus_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({urn:iso:15118:2:2016:MsgDataTypes}MeterStatus) ? */
+ errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
+ if(eventCode == 0) {
+ grammarID = 45;
+ } else {
+ errn = EXI_DEVIANT_SUPPORT_NOT_DEPLOYED; /* or also typecast and nillable */
+ }
+ }
+ break;
+ case 4:
+ /* First(xsi:type)StartTag[CHARACTERS[INTEGER]] */
+ errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
+ if(errn == 0) {
+ if(eventCode == 0) {
+ errn = decodeInteger64(stream, &iso2MeterInfoType->TMeter);
+ iso2MeterInfoType->TMeter_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({urn:iso:15118:2:2016:MsgDataTypes}TMeter) ? */
+ errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
+ if(eventCode == 0) {
+ grammarID = 3;
+ } else {
+ errn = EXI_DEVIANT_SUPPORT_NOT_DEPLOYED; /* or also typecast and nillable */
+ }
+ }
+ break;
+ case 5:
+ done = 1;
+ grammarID = 4;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 42:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MeterReadingDischarged), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SigMeterReading), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MeterStatus), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}TMeter), END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 3, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ /* First(xsi:type)StartTag[CHARACTERS[UNSIGNED_INTEGER]] */
+ errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
+ if(errn == 0) {
+ if(eventCode == 0) {
+ errn = decodeUnsignedInteger64(stream, &iso2MeterInfoType->MeterReadingDischarged);
+ iso2MeterInfoType->MeterReadingDischarged_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({urn:iso:15118:2:2016:MsgDataTypes}MeterReadingDischarged) ? */
+ errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
+ if(eventCode == 0) {
+ grammarID = 43;
+ } else {
+ errn = EXI_DEVIANT_SUPPORT_NOT_DEPLOYED; /* or also typecast and nillable */
+ }
+ }
+ break;
+ case 1:
+ /* FirstStartTag[CHARACTERS[BINARY_BASE64]] */
+ errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
+ if(errn == 0) {
+ if(eventCode == 0) {
+ errn = decodeUnsignedInteger16(stream, &iso2MeterInfoType->SigMeterReading.bytesLen);
+ if (errn == 0) {
+ errn = (iso2MeterInfoType->SigMeterReading.bytesLen) <= iso2MeterInfoType_SigMeterReading_BYTES_SIZE ? 0 : EXI_ERROR_OUT_OF_BYTE_BUFFER;
+ }
+ if (errn == 0) {
+ errn = decodeBytes(stream, iso2MeterInfoType->SigMeterReading.bytesLen, iso2MeterInfoType->SigMeterReading.bytes);
+ }
+ iso2MeterInfoType->SigMeterReading_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({urn:iso:15118:2:2016:MsgDataTypes}SigMeterReading) ? */
+ errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
+ if(eventCode == 0) {
+ grammarID = 44;
+ } else {
+ errn = EXI_DEVIANT_SUPPORT_NOT_DEPLOYED; /* or also typecast and nillable */
+ }
+ }
+ break;
+ case 2:
+ /* FirstStartTag[CHARACTERS[INTEGER]] */
+ errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
+ if(errn == 0) {
+ if(eventCode == 0) {
+ errn = decodeInteger16(stream, &iso2MeterInfoType->MeterStatus);
+ iso2MeterInfoType->MeterStatus_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({urn:iso:15118:2:2016:MsgDataTypes}MeterStatus) ? */
+ errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
+ if(eventCode == 0) {
+ grammarID = 45;
+ } else {
+ errn = EXI_DEVIANT_SUPPORT_NOT_DEPLOYED; /* or also typecast and nillable */
+ }
+ }
+ break;
+ case 3:
+ /* First(xsi:type)StartTag[CHARACTERS[INTEGER]] */
+ errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
+ if(errn == 0) {
+ if(eventCode == 0) {
+ errn = decodeInteger64(stream, &iso2MeterInfoType->TMeter);
+ iso2MeterInfoType->TMeter_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({urn:iso:15118:2:2016:MsgDataTypes}TMeter) ? */
+ errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
+ if(eventCode == 0) {
+ grammarID = 3;
+ } else {
+ errn = EXI_DEVIANT_SUPPORT_NOT_DEPLOYED; /* or also typecast and nillable */
+ }
+ }
+ break;
+ case 4:
+ done = 1;
+ grammarID = 4;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 43:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SigMeterReading), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MeterStatus), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}TMeter), END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 3, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ /* FirstStartTag[CHARACTERS[BINARY_BASE64]] */
+ errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
+ if(errn == 0) {
+ if(eventCode == 0) {
+ errn = decodeUnsignedInteger16(stream, &iso2MeterInfoType->SigMeterReading.bytesLen);
+ if (errn == 0) {
+ errn = (iso2MeterInfoType->SigMeterReading.bytesLen) <= iso2MeterInfoType_SigMeterReading_BYTES_SIZE ? 0 : EXI_ERROR_OUT_OF_BYTE_BUFFER;
+ }
+ if (errn == 0) {
+ errn = decodeBytes(stream, iso2MeterInfoType->SigMeterReading.bytesLen, iso2MeterInfoType->SigMeterReading.bytes);
+ }
+ iso2MeterInfoType->SigMeterReading_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({urn:iso:15118:2:2016:MsgDataTypes}SigMeterReading) ? */
+ errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
+ if(eventCode == 0) {
+ grammarID = 44;
+ } else {
+ errn = EXI_DEVIANT_SUPPORT_NOT_DEPLOYED; /* or also typecast and nillable */
+ }
+ }
+ break;
+ case 1:
+ /* FirstStartTag[CHARACTERS[INTEGER]] */
+ errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
+ if(errn == 0) {
+ if(eventCode == 0) {
+ errn = decodeInteger16(stream, &iso2MeterInfoType->MeterStatus);
+ iso2MeterInfoType->MeterStatus_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({urn:iso:15118:2:2016:MsgDataTypes}MeterStatus) ? */
+ errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
+ if(eventCode == 0) {
+ grammarID = 45;
+ } else {
+ errn = EXI_DEVIANT_SUPPORT_NOT_DEPLOYED; /* or also typecast and nillable */
+ }
+ }
+ break;
+ case 2:
+ /* First(xsi:type)StartTag[CHARACTERS[INTEGER]] */
+ errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
+ if(errn == 0) {
+ if(eventCode == 0) {
+ errn = decodeInteger64(stream, &iso2MeterInfoType->TMeter);
+ iso2MeterInfoType->TMeter_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({urn:iso:15118:2:2016:MsgDataTypes}TMeter) ? */
+ errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
+ if(eventCode == 0) {
+ grammarID = 3;
+ } else {
+ errn = EXI_DEVIANT_SUPPORT_NOT_DEPLOYED; /* or also typecast and nillable */
+ }
+ }
+ break;
+ case 3:
+ done = 1;
+ grammarID = 4;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 44:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MeterStatus), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}TMeter), END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ /* FirstStartTag[CHARACTERS[INTEGER]] */
+ errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
+ if(errn == 0) {
+ if(eventCode == 0) {
+ errn = decodeInteger16(stream, &iso2MeterInfoType->MeterStatus);
+ iso2MeterInfoType->MeterStatus_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({urn:iso:15118:2:2016:MsgDataTypes}MeterStatus) ? */
+ errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
+ if(eventCode == 0) {
+ grammarID = 45;
+ } else {
+ errn = EXI_DEVIANT_SUPPORT_NOT_DEPLOYED; /* or also typecast and nillable */
+ }
+ }
+ break;
+ case 1:
+ /* First(xsi:type)StartTag[CHARACTERS[INTEGER]] */
+ errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
+ if(errn == 0) {
+ if(eventCode == 0) {
+ errn = decodeInteger64(stream, &iso2MeterInfoType->TMeter);
+ iso2MeterInfoType->TMeter_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({urn:iso:15118:2:2016:MsgDataTypes}TMeter) ? */
+ errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
+ if(eventCode == 0) {
+ grammarID = 3;
+ } else {
+ errn = EXI_DEVIANT_SUPPORT_NOT_DEPLOYED; /* or also typecast and nillable */
+ }
+ }
+ break;
+ case 2:
+ done = 1;
+ grammarID = 4;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 45:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}TMeter), END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ /* First(xsi:type)StartTag[CHARACTERS[INTEGER]] */
+ errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
+ if(errn == 0) {
+ if(eventCode == 0) {
+ errn = decodeInteger64(stream, &iso2MeterInfoType->TMeter);
+ iso2MeterInfoType->TMeter_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({urn:iso:15118:2:2016:MsgDataTypes}TMeter) ? */
+ errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
+ if(eventCode == 0) {
+ grammarID = 3;
+ } else {
+ errn = EXI_DEVIANT_SUPPORT_NOT_DEPLOYED; /* or also typecast and nillable */
+ }
+ }
+ break;
+ case 1:
+ done = 1;
+ grammarID = 4;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 3:
+ /* Element[END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ done = 1;
+ grammarID = 4;
+ 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:2016:MsgDataTypes,AC_EVChargeParameterType', base type name='EVEnergyTransferParameterType', content type='ELEMENT', isAbstract='false', hasTypeId='false', final='0', block='0', particle='(("urn:iso:15118:2:2016:MsgDataTypes":DepartureTime),("urn:iso:15118:2:2016:MsgDataTypes":EVMaximumChargePower,"urn:iso:15118:2:2016:MsgDataTypes":EVMaximumChargeCurrent,"urn:iso:15118:2:2016:MsgDataTypes":EVMinimumChargeCurrent,"urn:iso:15118:2:2016:MsgDataTypes":EVTargetEnergyRequest{0-1},"urn:iso:15118:2:2016:MsgDataTypes":EVMaximumEnergyRequest{0-1},"urn:iso:15118:2:2016:MsgDataTypes":EVMinimumEnergyRequest{0-1},"urn:iso:15118:2:2016:MsgDataTypes":EVMaximumVoltage))', derivedBy='EXTENSION'. */
+static int decode_iso2AC_EVChargeParameterType(bitstream_t* stream, struct iso2AC_EVChargeParameterType* iso2AC_EVChargeParameterType) {
+ int grammarID = 46;
+ int done = 0;
+
+ init_iso2AC_EVChargeParameterType(iso2AC_EVChargeParameterType);
+
+ while(!done) {
+ switch(grammarID) {
+ case 46:
+ /* FirstStartTag[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}DepartureTime)] */
+ errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ /* First(xsi:type)StartTag[CHARACTERS[UNSIGNED_INTEGER]] */
+ errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
+ if(errn == 0) {
+ if(eventCode == 0) {
+ errn = decodeUnsignedInteger32(stream, &iso2AC_EVChargeParameterType->DepartureTime);
+ } 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({urn:iso:15118:2:2016:MsgDataTypes}DepartureTime) ? */
+ errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
+ if(eventCode == 0) {
+ grammarID = 47;
+ } else {
+ errn = EXI_DEVIANT_SUPPORT_NOT_DEPLOYED; /* or also typecast and nillable */
+ }
+ }
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 47:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}EVMaximumChargePower)] */
+ errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ errn = decode_iso2PhysicalValueType(stream, &iso2AC_EVChargeParameterType->EVMaximumChargePower);
+ grammarID = 48;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 48:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}EVMaximumChargeCurrent)] */
+ errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ errn = decode_iso2PhysicalValueType(stream, &iso2AC_EVChargeParameterType->EVMaximumChargeCurrent);
+ grammarID = 49;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 49:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}EVMinimumChargeCurrent)] */
+ errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ errn = decode_iso2PhysicalValueType(stream, &iso2AC_EVChargeParameterType->EVMinimumChargeCurrent);
+ grammarID = 50;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 50:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}EVTargetEnergyRequest), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}EVMaximumEnergyRequest), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}EVMinimumEnergyRequest), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}EVMaximumVoltage)] */
+ errn = decodeNBitUnsignedInteger(stream, 3, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ errn = decode_iso2PhysicalValueType(stream, &iso2AC_EVChargeParameterType->EVTargetEnergyRequest);
+ iso2AC_EVChargeParameterType->EVTargetEnergyRequest_isUsed = 1u;
+ grammarID = 51;
+ break;
+ case 1:
+ errn = decode_iso2PhysicalValueType(stream, &iso2AC_EVChargeParameterType->EVMaximumEnergyRequest);
+ iso2AC_EVChargeParameterType->EVMaximumEnergyRequest_isUsed = 1u;
+ grammarID = 52;
+ break;
+ case 2:
+ errn = decode_iso2PhysicalValueType(stream, &iso2AC_EVChargeParameterType->EVMinimumEnergyRequest);
+ iso2AC_EVChargeParameterType->EVMinimumEnergyRequest_isUsed = 1u;
+ grammarID = 53;
+ break;
+ case 3:
+ errn = decode_iso2PhysicalValueType(stream, &iso2AC_EVChargeParameterType->EVMaximumVoltage);
+ grammarID = 3;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 51:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}EVMaximumEnergyRequest), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}EVMinimumEnergyRequest), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}EVMaximumVoltage)] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ errn = decode_iso2PhysicalValueType(stream, &iso2AC_EVChargeParameterType->EVMaximumEnergyRequest);
+ iso2AC_EVChargeParameterType->EVMaximumEnergyRequest_isUsed = 1u;
+ grammarID = 52;
+ break;
+ case 1:
+ errn = decode_iso2PhysicalValueType(stream, &iso2AC_EVChargeParameterType->EVMinimumEnergyRequest);
+ iso2AC_EVChargeParameterType->EVMinimumEnergyRequest_isUsed = 1u;
+ grammarID = 53;
+ break;
+ case 2:
+ errn = decode_iso2PhysicalValueType(stream, &iso2AC_EVChargeParameterType->EVMaximumVoltage);
+ grammarID = 3;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 52:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}EVMinimumEnergyRequest), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}EVMaximumVoltage)] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ errn = decode_iso2PhysicalValueType(stream, &iso2AC_EVChargeParameterType->EVMinimumEnergyRequest);
+ iso2AC_EVChargeParameterType->EVMinimumEnergyRequest_isUsed = 1u;
+ grammarID = 53;
+ break;
+ case 1:
+ errn = decode_iso2PhysicalValueType(stream, &iso2AC_EVChargeParameterType->EVMaximumVoltage);
+ grammarID = 3;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 53:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}EVMaximumVoltage)] */
+ errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ errn = decode_iso2PhysicalValueType(stream, &iso2AC_EVChargeParameterType->EVMaximumVoltage);
+ grammarID = 3;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 3:
+ /* Element[END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ done = 1;
+ grammarID = 4;
+ 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:2016:MsgDataTypes,AC_EVSEBidirectionalParameterType', base type name='AC_EVSEChargeParameterType', content type='ELEMENT', isAbstract='false', hasTypeId='false', final='0', block='0', particle='(("urn:iso:15118:2:2016:MsgDataTypes":EVSEMaximumChargeCurrent,"urn:iso:15118:2:2016:MsgDataTypes":EVSENominalVoltage,"urn:iso:15118:2:2016:MsgDataTypes":EVSENominalFrequency),("urn:iso:15118:2:2016:MsgDataTypes":EVSEMaximumDischargeCurrent,"urn:iso:15118:2:2016:MsgDataTypes":EVSENominalFrequency))', derivedBy='EXTENSION'. */
+static int decode_iso2AC_EVSEBidirectionalParameterType(bitstream_t* stream, struct iso2AC_EVSEBidirectionalParameterType* iso2AC_EVSEBidirectionalParameterType) {
+ int grammarID = 54;
+ int done = 0;
+
+ init_iso2AC_EVSEBidirectionalParameterType(iso2AC_EVSEBidirectionalParameterType);
+
+ while(!done) {
+ switch(grammarID) {
+ case 54:
+ /* FirstStartTag[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}EVSEMaximumChargeCurrent)] */
+ errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ errn = decode_iso2PhysicalValueType(stream, &iso2AC_EVSEBidirectionalParameterType->EVSEMaximumChargeCurrent);
+ grammarID = 55;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 55:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}EVSENominalVoltage)] */
+ errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ errn = decode_iso2PhysicalValueType(stream, &iso2AC_EVSEBidirectionalParameterType->EVSENominalVoltage);
+ grammarID = 56;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 56:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}EVSENominalFrequency)] */
+ errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ errn = decode_iso2PhysicalValueType(stream, &iso2AC_EVSEBidirectionalParameterType->EVSENominalFrequency);
+ grammarID = 57;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 57:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}EVSEMaximumDischargeCurrent)] */
+ errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ errn = decode_iso2PhysicalValueType(stream, &iso2AC_EVSEBidirectionalParameterType->EVSEMaximumDischargeCurrent);
+ grammarID = 58;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 58:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}EVSENominalFrequency)] */
+ errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ errn = decode_iso2PhysicalValueType(stream, &iso2AC_EVSEBidirectionalParameterType->EVSENominalFrequency);
+ grammarID = 3;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 3:
+ /* Element[END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ done = 1;
+ grammarID = 4;
+ 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:2016:MsgBody,VehicleCheckOutResType', base type name='V2GResponseType', content type='ELEMENT', isAbstract='false', hasTypeId='false', final='0', block='0', particle='(("urn:iso:15118:2:2016:MsgBody":ResponseCode,"urn:iso:15118:2:2016:MsgBody":EVSEStatus{0-1}),("urn:iso:15118:2:2016:MsgBody":EVSECheckOutStatus))', derivedBy='EXTENSION'. */
+static int decode_iso2VehicleCheckOutResType(bitstream_t* stream, struct iso2VehicleCheckOutResType* iso2VehicleCheckOutResType) {
+ int grammarID = 59;
+ int done = 0;
+
+ init_iso2VehicleCheckOutResType(iso2VehicleCheckOutResType);
+
+ while(!done) {
+ switch(grammarID) {
+ case 59:
+ /* FirstStartTag[START_ELEMENT({urn:iso:15118:2:2016:MsgBody}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, 5, &uint32);
+ iso2VehicleCheckOutResType->ResponseCode = (iso2responseCodeType) 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({urn:iso:15118:2:2016:MsgBody}ResponseCode) ? */
+ errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
+ if(eventCode == 0) {
+ grammarID = 60;
+ } else {
+ errn = EXI_DEVIANT_SUPPORT_NOT_DEPLOYED; /* or also typecast and nillable */
+ }
+ }
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 60:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgBody}EVSEStatus), START_ELEMENT({urn:iso:15118:2:2016:MsgBody}EVSECheckOutStatus)] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ errn = decode_iso2EVSEStatusType(stream, &iso2VehicleCheckOutResType->EVSEStatus);
+ iso2VehicleCheckOutResType->EVSEStatus_isUsed = 1u;
+ grammarID = 61;
+ break;
+ case 1:
+ /* FirstStartTag[CHARACTERS[ENUMERATION]] */
+ errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
+ if(errn == 0) {
+ if(eventCode == 0) {
+ errn = decodeNBitUnsignedInteger(stream, 2, &uint32);
+ iso2VehicleCheckOutResType->EVSECheckOutStatus = (iso2EVCheckOutStatusType) 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({urn:iso:15118:2:2016:MsgBody}EVSECheckOutStatus) ? */
+ errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
+ if(eventCode == 0) {
+ grammarID = 3;
+ } else {
+ errn = EXI_DEVIANT_SUPPORT_NOT_DEPLOYED; /* or also typecast and nillable */
+ }
+ }
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 61:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgBody}EVSECheckOutStatus)] */
+ 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);
+ iso2VehicleCheckOutResType->EVSECheckOutStatus = (iso2EVCheckOutStatusType) 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({urn:iso:15118:2:2016:MsgBody}EVSECheckOutStatus) ? */
+ errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
+ if(eventCode == 0) {
+ grammarID = 3;
+ } else {
+ errn = EXI_DEVIANT_SUPPORT_NOT_DEPLOYED; /* or also typecast and nillable */
+ }
+ }
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 3:
+ /* Element[END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ done = 1;
+ grammarID = 4;
+ 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:2016:MsgDataTypes,MagneticVectorListType', base type name='anyType', content type='ELEMENT', isAbstract='false', hasTypeId='false', final='0', block='0', particle='("urn:iso:15118:2:2016:MsgDataTypes":MagneticVector{1-255})', derivedBy='RESTRICTION'. */
+static int decode_iso2MagneticVectorListType(bitstream_t* stream, struct iso2MagneticVectorListType* iso2MagneticVectorListType) {
+ int grammarID = 62;
+ int done = 0;
+
+ init_iso2MagneticVectorListType(iso2MagneticVectorListType);
+
+ while(!done) {
+ switch(grammarID) {
+ case 62:
+ /* FirstStartTag[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MagneticVector)] */
+ errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ if (iso2MagneticVectorListType->MagneticVector.arrayLen < iso2MagneticVectorListType_MagneticVector_ARRAY_SIZE) {
+ errn = decode_iso2MagneticVectorType(stream, &iso2MagneticVectorListType->MagneticVector.array[iso2MagneticVectorListType->MagneticVector.arrayLen++]);
+ } else {
+ errn = EXI_ERROR_OUT_OF_BOUNDS;
+ }
+ grammarID = 63;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 63:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MagneticVector), END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ if (iso2MagneticVectorListType->MagneticVector.arrayLen < iso2MagneticVectorListType_MagneticVector_ARRAY_SIZE) {
+ errn = decode_iso2MagneticVectorType(stream, &iso2MagneticVectorListType->MagneticVector.array[iso2MagneticVectorListType->MagneticVector.arrayLen++]);
+ } else {
+ errn = EXI_ERROR_OUT_OF_BOUNDS;
+ }
+ grammarID = 64;
+ break;
+ case 1:
+ done = 1;
+ grammarID = 4;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 64:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MagneticVector), END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ if (iso2MagneticVectorListType->MagneticVector.arrayLen < iso2MagneticVectorListType_MagneticVector_ARRAY_SIZE) {
+ errn = decode_iso2MagneticVectorType(stream, &iso2MagneticVectorListType->MagneticVector.array[iso2MagneticVectorListType->MagneticVector.arrayLen++]);
+ } else {
+ errn = EXI_ERROR_OUT_OF_BOUNDS;
+ }
+ grammarID = 65;
+ break;
+ case 1:
+ done = 1;
+ grammarID = 4;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 65:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MagneticVector), END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ if (iso2MagneticVectorListType->MagneticVector.arrayLen < iso2MagneticVectorListType_MagneticVector_ARRAY_SIZE) {
+ errn = decode_iso2MagneticVectorType(stream, &iso2MagneticVectorListType->MagneticVector.array[iso2MagneticVectorListType->MagneticVector.arrayLen++]);
+ } else {
+ errn = EXI_ERROR_OUT_OF_BOUNDS;
+ }
+ grammarID = 66;
+ break;
+ case 1:
+ done = 1;
+ grammarID = 4;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 66:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MagneticVector), END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ if (iso2MagneticVectorListType->MagneticVector.arrayLen < iso2MagneticVectorListType_MagneticVector_ARRAY_SIZE) {
+ errn = decode_iso2MagneticVectorType(stream, &iso2MagneticVectorListType->MagneticVector.array[iso2MagneticVectorListType->MagneticVector.arrayLen++]);
+ } else {
+ errn = EXI_ERROR_OUT_OF_BOUNDS;
+ }
+ grammarID = 67;
+ break;
+ case 1:
+ done = 1;
+ grammarID = 4;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 67:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MagneticVector), END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ if (iso2MagneticVectorListType->MagneticVector.arrayLen < iso2MagneticVectorListType_MagneticVector_ARRAY_SIZE) {
+ errn = decode_iso2MagneticVectorType(stream, &iso2MagneticVectorListType->MagneticVector.array[iso2MagneticVectorListType->MagneticVector.arrayLen++]);
+ } else {
+ errn = EXI_ERROR_OUT_OF_BOUNDS;
+ }
+ grammarID = 68;
+ break;
+ case 1:
+ done = 1;
+ grammarID = 4;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 68:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MagneticVector), END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ if (iso2MagneticVectorListType->MagneticVector.arrayLen < iso2MagneticVectorListType_MagneticVector_ARRAY_SIZE) {
+ errn = decode_iso2MagneticVectorType(stream, &iso2MagneticVectorListType->MagneticVector.array[iso2MagneticVectorListType->MagneticVector.arrayLen++]);
+ } else {
+ errn = EXI_ERROR_OUT_OF_BOUNDS;
+ }
+ grammarID = 69;
+ break;
+ case 1:
+ done = 1;
+ grammarID = 4;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 69:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MagneticVector), END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ if (iso2MagneticVectorListType->MagneticVector.arrayLen < iso2MagneticVectorListType_MagneticVector_ARRAY_SIZE) {
+ errn = decode_iso2MagneticVectorType(stream, &iso2MagneticVectorListType->MagneticVector.array[iso2MagneticVectorListType->MagneticVector.arrayLen++]);
+ } else {
+ errn = EXI_ERROR_OUT_OF_BOUNDS;
+ }
+ grammarID = 70;
+ break;
+ case 1:
+ done = 1;
+ grammarID = 4;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 70:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MagneticVector), END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ if (iso2MagneticVectorListType->MagneticVector.arrayLen < iso2MagneticVectorListType_MagneticVector_ARRAY_SIZE) {
+ errn = decode_iso2MagneticVectorType(stream, &iso2MagneticVectorListType->MagneticVector.array[iso2MagneticVectorListType->MagneticVector.arrayLen++]);
+ } else {
+ errn = EXI_ERROR_OUT_OF_BOUNDS;
+ }
+ grammarID = 71;
+ break;
+ case 1:
+ done = 1;
+ grammarID = 4;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 71:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MagneticVector), END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ if (iso2MagneticVectorListType->MagneticVector.arrayLen < iso2MagneticVectorListType_MagneticVector_ARRAY_SIZE) {
+ errn = decode_iso2MagneticVectorType(stream, &iso2MagneticVectorListType->MagneticVector.array[iso2MagneticVectorListType->MagneticVector.arrayLen++]);
+ } else {
+ errn = EXI_ERROR_OUT_OF_BOUNDS;
+ }
+ grammarID = 72;
+ break;
+ case 1:
+ done = 1;
+ grammarID = 4;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 72:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MagneticVector), END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ if (iso2MagneticVectorListType->MagneticVector.arrayLen < iso2MagneticVectorListType_MagneticVector_ARRAY_SIZE) {
+ errn = decode_iso2MagneticVectorType(stream, &iso2MagneticVectorListType->MagneticVector.array[iso2MagneticVectorListType->MagneticVector.arrayLen++]);
+ } else {
+ errn = EXI_ERROR_OUT_OF_BOUNDS;
+ }
+ grammarID = 73;
+ break;
+ case 1:
+ done = 1;
+ grammarID = 4;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 73:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MagneticVector), END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ if (iso2MagneticVectorListType->MagneticVector.arrayLen < iso2MagneticVectorListType_MagneticVector_ARRAY_SIZE) {
+ errn = decode_iso2MagneticVectorType(stream, &iso2MagneticVectorListType->MagneticVector.array[iso2MagneticVectorListType->MagneticVector.arrayLen++]);
+ } else {
+ errn = EXI_ERROR_OUT_OF_BOUNDS;
+ }
+ grammarID = 74;
+ break;
+ case 1:
+ done = 1;
+ grammarID = 4;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 74:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MagneticVector), END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ if (iso2MagneticVectorListType->MagneticVector.arrayLen < iso2MagneticVectorListType_MagneticVector_ARRAY_SIZE) {
+ errn = decode_iso2MagneticVectorType(stream, &iso2MagneticVectorListType->MagneticVector.array[iso2MagneticVectorListType->MagneticVector.arrayLen++]);
+ } else {
+ errn = EXI_ERROR_OUT_OF_BOUNDS;
+ }
+ grammarID = 75;
+ break;
+ case 1:
+ done = 1;
+ grammarID = 4;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 75:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MagneticVector), END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ if (iso2MagneticVectorListType->MagneticVector.arrayLen < iso2MagneticVectorListType_MagneticVector_ARRAY_SIZE) {
+ errn = decode_iso2MagneticVectorType(stream, &iso2MagneticVectorListType->MagneticVector.array[iso2MagneticVectorListType->MagneticVector.arrayLen++]);
+ } else {
+ errn = EXI_ERROR_OUT_OF_BOUNDS;
+ }
+ grammarID = 76;
+ break;
+ case 1:
+ done = 1;
+ grammarID = 4;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 76:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MagneticVector), END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ if (iso2MagneticVectorListType->MagneticVector.arrayLen < iso2MagneticVectorListType_MagneticVector_ARRAY_SIZE) {
+ errn = decode_iso2MagneticVectorType(stream, &iso2MagneticVectorListType->MagneticVector.array[iso2MagneticVectorListType->MagneticVector.arrayLen++]);
+ } else {
+ errn = EXI_ERROR_OUT_OF_BOUNDS;
+ }
+ grammarID = 77;
+ break;
+ case 1:
+ done = 1;
+ grammarID = 4;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 77:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MagneticVector), END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ if (iso2MagneticVectorListType->MagneticVector.arrayLen < iso2MagneticVectorListType_MagneticVector_ARRAY_SIZE) {
+ errn = decode_iso2MagneticVectorType(stream, &iso2MagneticVectorListType->MagneticVector.array[iso2MagneticVectorListType->MagneticVector.arrayLen++]);
+ } else {
+ errn = EXI_ERROR_OUT_OF_BOUNDS;
+ }
+ grammarID = 78;
+ break;
+ case 1:
+ done = 1;
+ grammarID = 4;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 78:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MagneticVector), END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ if (iso2MagneticVectorListType->MagneticVector.arrayLen < iso2MagneticVectorListType_MagneticVector_ARRAY_SIZE) {
+ errn = decode_iso2MagneticVectorType(stream, &iso2MagneticVectorListType->MagneticVector.array[iso2MagneticVectorListType->MagneticVector.arrayLen++]);
+ } else {
+ errn = EXI_ERROR_OUT_OF_BOUNDS;
+ }
+ grammarID = 79;
+ break;
+ case 1:
+ done = 1;
+ grammarID = 4;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 79:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MagneticVector), END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ if (iso2MagneticVectorListType->MagneticVector.arrayLen < iso2MagneticVectorListType_MagneticVector_ARRAY_SIZE) {
+ errn = decode_iso2MagneticVectorType(stream, &iso2MagneticVectorListType->MagneticVector.array[iso2MagneticVectorListType->MagneticVector.arrayLen++]);
+ } else {
+ errn = EXI_ERROR_OUT_OF_BOUNDS;
+ }
+ grammarID = 80;
+ break;
+ case 1:
+ done = 1;
+ grammarID = 4;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 80:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MagneticVector), END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ if (iso2MagneticVectorListType->MagneticVector.arrayLen < iso2MagneticVectorListType_MagneticVector_ARRAY_SIZE) {
+ errn = decode_iso2MagneticVectorType(stream, &iso2MagneticVectorListType->MagneticVector.array[iso2MagneticVectorListType->MagneticVector.arrayLen++]);
+ } else {
+ errn = EXI_ERROR_OUT_OF_BOUNDS;
+ }
+ grammarID = 81;
+ break;
+ case 1:
+ done = 1;
+ grammarID = 4;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 81:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MagneticVector), END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ if (iso2MagneticVectorListType->MagneticVector.arrayLen < iso2MagneticVectorListType_MagneticVector_ARRAY_SIZE) {
+ errn = decode_iso2MagneticVectorType(stream, &iso2MagneticVectorListType->MagneticVector.array[iso2MagneticVectorListType->MagneticVector.arrayLen++]);
+ } else {
+ errn = EXI_ERROR_OUT_OF_BOUNDS;
+ }
+ grammarID = 82;
+ break;
+ case 1:
+ done = 1;
+ grammarID = 4;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 82:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MagneticVector), END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ if (iso2MagneticVectorListType->MagneticVector.arrayLen < iso2MagneticVectorListType_MagneticVector_ARRAY_SIZE) {
+ errn = decode_iso2MagneticVectorType(stream, &iso2MagneticVectorListType->MagneticVector.array[iso2MagneticVectorListType->MagneticVector.arrayLen++]);
+ } else {
+ errn = EXI_ERROR_OUT_OF_BOUNDS;
+ }
+ grammarID = 83;
+ break;
+ case 1:
+ done = 1;
+ grammarID = 4;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 83:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MagneticVector), END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ if (iso2MagneticVectorListType->MagneticVector.arrayLen < iso2MagneticVectorListType_MagneticVector_ARRAY_SIZE) {
+ errn = decode_iso2MagneticVectorType(stream, &iso2MagneticVectorListType->MagneticVector.array[iso2MagneticVectorListType->MagneticVector.arrayLen++]);
+ } else {
+ errn = EXI_ERROR_OUT_OF_BOUNDS;
+ }
+ grammarID = 84;
+ break;
+ case 1:
+ done = 1;
+ grammarID = 4;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 84:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MagneticVector), END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ if (iso2MagneticVectorListType->MagneticVector.arrayLen < iso2MagneticVectorListType_MagneticVector_ARRAY_SIZE) {
+ errn = decode_iso2MagneticVectorType(stream, &iso2MagneticVectorListType->MagneticVector.array[iso2MagneticVectorListType->MagneticVector.arrayLen++]);
+ } else {
+ errn = EXI_ERROR_OUT_OF_BOUNDS;
+ }
+ grammarID = 85;
+ break;
+ case 1:
+ done = 1;
+ grammarID = 4;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 85:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MagneticVector), END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ if (iso2MagneticVectorListType->MagneticVector.arrayLen < iso2MagneticVectorListType_MagneticVector_ARRAY_SIZE) {
+ errn = decode_iso2MagneticVectorType(stream, &iso2MagneticVectorListType->MagneticVector.array[iso2MagneticVectorListType->MagneticVector.arrayLen++]);
+ } else {
+ errn = EXI_ERROR_OUT_OF_BOUNDS;
+ }
+ grammarID = 86;
+ break;
+ case 1:
+ done = 1;
+ grammarID = 4;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 86:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MagneticVector), END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ if (iso2MagneticVectorListType->MagneticVector.arrayLen < iso2MagneticVectorListType_MagneticVector_ARRAY_SIZE) {
+ errn = decode_iso2MagneticVectorType(stream, &iso2MagneticVectorListType->MagneticVector.array[iso2MagneticVectorListType->MagneticVector.arrayLen++]);
+ } else {
+ errn = EXI_ERROR_OUT_OF_BOUNDS;
+ }
+ grammarID = 87;
+ break;
+ case 1:
+ done = 1;
+ grammarID = 4;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 87:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MagneticVector), END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ if (iso2MagneticVectorListType->MagneticVector.arrayLen < iso2MagneticVectorListType_MagneticVector_ARRAY_SIZE) {
+ errn = decode_iso2MagneticVectorType(stream, &iso2MagneticVectorListType->MagneticVector.array[iso2MagneticVectorListType->MagneticVector.arrayLen++]);
+ } else {
+ errn = EXI_ERROR_OUT_OF_BOUNDS;
+ }
+ grammarID = 88;
+ break;
+ case 1:
+ done = 1;
+ grammarID = 4;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 88:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MagneticVector), END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ if (iso2MagneticVectorListType->MagneticVector.arrayLen < iso2MagneticVectorListType_MagneticVector_ARRAY_SIZE) {
+ errn = decode_iso2MagneticVectorType(stream, &iso2MagneticVectorListType->MagneticVector.array[iso2MagneticVectorListType->MagneticVector.arrayLen++]);
+ } else {
+ errn = EXI_ERROR_OUT_OF_BOUNDS;
+ }
+ grammarID = 89;
+ break;
+ case 1:
+ done = 1;
+ grammarID = 4;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 89:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MagneticVector), END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ if (iso2MagneticVectorListType->MagneticVector.arrayLen < iso2MagneticVectorListType_MagneticVector_ARRAY_SIZE) {
+ errn = decode_iso2MagneticVectorType(stream, &iso2MagneticVectorListType->MagneticVector.array[iso2MagneticVectorListType->MagneticVector.arrayLen++]);
+ } else {
+ errn = EXI_ERROR_OUT_OF_BOUNDS;
+ }
+ grammarID = 90;
+ break;
+ case 1:
+ done = 1;
+ grammarID = 4;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 90:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MagneticVector), END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ if (iso2MagneticVectorListType->MagneticVector.arrayLen < iso2MagneticVectorListType_MagneticVector_ARRAY_SIZE) {
+ errn = decode_iso2MagneticVectorType(stream, &iso2MagneticVectorListType->MagneticVector.array[iso2MagneticVectorListType->MagneticVector.arrayLen++]);
+ } else {
+ errn = EXI_ERROR_OUT_OF_BOUNDS;
+ }
+ grammarID = 91;
+ break;
+ case 1:
+ done = 1;
+ grammarID = 4;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 91:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MagneticVector), END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ if (iso2MagneticVectorListType->MagneticVector.arrayLen < iso2MagneticVectorListType_MagneticVector_ARRAY_SIZE) {
+ errn = decode_iso2MagneticVectorType(stream, &iso2MagneticVectorListType->MagneticVector.array[iso2MagneticVectorListType->MagneticVector.arrayLen++]);
+ } else {
+ errn = EXI_ERROR_OUT_OF_BOUNDS;
+ }
+ grammarID = 92;
+ break;
+ case 1:
+ done = 1;
+ grammarID = 4;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 92:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MagneticVector), END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ if (iso2MagneticVectorListType->MagneticVector.arrayLen < iso2MagneticVectorListType_MagneticVector_ARRAY_SIZE) {
+ errn = decode_iso2MagneticVectorType(stream, &iso2MagneticVectorListType->MagneticVector.array[iso2MagneticVectorListType->MagneticVector.arrayLen++]);
+ } else {
+ errn = EXI_ERROR_OUT_OF_BOUNDS;
+ }
+ grammarID = 93;
+ break;
+ case 1:
+ done = 1;
+ grammarID = 4;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 93:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MagneticVector), END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ if (iso2MagneticVectorListType->MagneticVector.arrayLen < iso2MagneticVectorListType_MagneticVector_ARRAY_SIZE) {
+ errn = decode_iso2MagneticVectorType(stream, &iso2MagneticVectorListType->MagneticVector.array[iso2MagneticVectorListType->MagneticVector.arrayLen++]);
+ } else {
+ errn = EXI_ERROR_OUT_OF_BOUNDS;
+ }
+ grammarID = 94;
+ break;
+ case 1:
+ done = 1;
+ grammarID = 4;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 94:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MagneticVector), END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ if (iso2MagneticVectorListType->MagneticVector.arrayLen < iso2MagneticVectorListType_MagneticVector_ARRAY_SIZE) {
+ errn = decode_iso2MagneticVectorType(stream, &iso2MagneticVectorListType->MagneticVector.array[iso2MagneticVectorListType->MagneticVector.arrayLen++]);
+ } else {
+ errn = EXI_ERROR_OUT_OF_BOUNDS;
+ }
+ grammarID = 95;
+ break;
+ case 1:
+ done = 1;
+ grammarID = 4;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 95:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MagneticVector), END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ if (iso2MagneticVectorListType->MagneticVector.arrayLen < iso2MagneticVectorListType_MagneticVector_ARRAY_SIZE) {
+ errn = decode_iso2MagneticVectorType(stream, &iso2MagneticVectorListType->MagneticVector.array[iso2MagneticVectorListType->MagneticVector.arrayLen++]);
+ } else {
+ errn = EXI_ERROR_OUT_OF_BOUNDS;
+ }
+ grammarID = 96;
+ break;
+ case 1:
+ done = 1;
+ grammarID = 4;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 96:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MagneticVector), END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ if (iso2MagneticVectorListType->MagneticVector.arrayLen < iso2MagneticVectorListType_MagneticVector_ARRAY_SIZE) {
+ errn = decode_iso2MagneticVectorType(stream, &iso2MagneticVectorListType->MagneticVector.array[iso2MagneticVectorListType->MagneticVector.arrayLen++]);
+ } else {
+ errn = EXI_ERROR_OUT_OF_BOUNDS;
+ }
+ grammarID = 97;
+ break;
+ case 1:
+ done = 1;
+ grammarID = 4;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 97:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MagneticVector), END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ if (iso2MagneticVectorListType->MagneticVector.arrayLen < iso2MagneticVectorListType_MagneticVector_ARRAY_SIZE) {
+ errn = decode_iso2MagneticVectorType(stream, &iso2MagneticVectorListType->MagneticVector.array[iso2MagneticVectorListType->MagneticVector.arrayLen++]);
+ } else {
+ errn = EXI_ERROR_OUT_OF_BOUNDS;
+ }
+ grammarID = 98;
+ break;
+ case 1:
+ done = 1;
+ grammarID = 4;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 98:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MagneticVector), END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ if (iso2MagneticVectorListType->MagneticVector.arrayLen < iso2MagneticVectorListType_MagneticVector_ARRAY_SIZE) {
+ errn = decode_iso2MagneticVectorType(stream, &iso2MagneticVectorListType->MagneticVector.array[iso2MagneticVectorListType->MagneticVector.arrayLen++]);
+ } else {
+ errn = EXI_ERROR_OUT_OF_BOUNDS;
+ }
+ grammarID = 99;
+ break;
+ case 1:
+ done = 1;
+ grammarID = 4;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 99:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MagneticVector), END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ if (iso2MagneticVectorListType->MagneticVector.arrayLen < iso2MagneticVectorListType_MagneticVector_ARRAY_SIZE) {
+ errn = decode_iso2MagneticVectorType(stream, &iso2MagneticVectorListType->MagneticVector.array[iso2MagneticVectorListType->MagneticVector.arrayLen++]);
+ } else {
+ errn = EXI_ERROR_OUT_OF_BOUNDS;
+ }
+ grammarID = 100;
+ break;
+ case 1:
+ done = 1;
+ grammarID = 4;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 100:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MagneticVector), END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ if (iso2MagneticVectorListType->MagneticVector.arrayLen < iso2MagneticVectorListType_MagneticVector_ARRAY_SIZE) {
+ errn = decode_iso2MagneticVectorType(stream, &iso2MagneticVectorListType->MagneticVector.array[iso2MagneticVectorListType->MagneticVector.arrayLen++]);
+ } else {
+ errn = EXI_ERROR_OUT_OF_BOUNDS;
+ }
+ grammarID = 101;
+ break;
+ case 1:
+ done = 1;
+ grammarID = 4;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 101:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MagneticVector), END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ if (iso2MagneticVectorListType->MagneticVector.arrayLen < iso2MagneticVectorListType_MagneticVector_ARRAY_SIZE) {
+ errn = decode_iso2MagneticVectorType(stream, &iso2MagneticVectorListType->MagneticVector.array[iso2MagneticVectorListType->MagneticVector.arrayLen++]);
+ } else {
+ errn = EXI_ERROR_OUT_OF_BOUNDS;
+ }
+ grammarID = 102;
+ break;
+ case 1:
+ done = 1;
+ grammarID = 4;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 102:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MagneticVector), END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ if (iso2MagneticVectorListType->MagneticVector.arrayLen < iso2MagneticVectorListType_MagneticVector_ARRAY_SIZE) {
+ errn = decode_iso2MagneticVectorType(stream, &iso2MagneticVectorListType->MagneticVector.array[iso2MagneticVectorListType->MagneticVector.arrayLen++]);
+ } else {
+ errn = EXI_ERROR_OUT_OF_BOUNDS;
+ }
+ grammarID = 103;
+ break;
+ case 1:
+ done = 1;
+ grammarID = 4;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 103:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MagneticVector), END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ if (iso2MagneticVectorListType->MagneticVector.arrayLen < iso2MagneticVectorListType_MagneticVector_ARRAY_SIZE) {
+ errn = decode_iso2MagneticVectorType(stream, &iso2MagneticVectorListType->MagneticVector.array[iso2MagneticVectorListType->MagneticVector.arrayLen++]);
+ } else {
+ errn = EXI_ERROR_OUT_OF_BOUNDS;
+ }
+ grammarID = 104;
+ break;
+ case 1:
+ done = 1;
+ grammarID = 4;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 104:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MagneticVector), END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ if (iso2MagneticVectorListType->MagneticVector.arrayLen < iso2MagneticVectorListType_MagneticVector_ARRAY_SIZE) {
+ errn = decode_iso2MagneticVectorType(stream, &iso2MagneticVectorListType->MagneticVector.array[iso2MagneticVectorListType->MagneticVector.arrayLen++]);
+ } else {
+ errn = EXI_ERROR_OUT_OF_BOUNDS;
+ }
+ grammarID = 105;
+ break;
+ case 1:
+ done = 1;
+ grammarID = 4;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 105:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MagneticVector), END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ if (iso2MagneticVectorListType->MagneticVector.arrayLen < iso2MagneticVectorListType_MagneticVector_ARRAY_SIZE) {
+ errn = decode_iso2MagneticVectorType(stream, &iso2MagneticVectorListType->MagneticVector.array[iso2MagneticVectorListType->MagneticVector.arrayLen++]);
+ } else {
+ errn = EXI_ERROR_OUT_OF_BOUNDS;
+ }
+ grammarID = 106;
+ break;
+ case 1:
+ done = 1;
+ grammarID = 4;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 106:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MagneticVector), END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ if (iso2MagneticVectorListType->MagneticVector.arrayLen < iso2MagneticVectorListType_MagneticVector_ARRAY_SIZE) {
+ errn = decode_iso2MagneticVectorType(stream, &iso2MagneticVectorListType->MagneticVector.array[iso2MagneticVectorListType->MagneticVector.arrayLen++]);
+ } else {
+ errn = EXI_ERROR_OUT_OF_BOUNDS;
+ }
+ grammarID = 107;
+ break;
+ case 1:
+ done = 1;
+ grammarID = 4;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 107:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MagneticVector), END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ if (iso2MagneticVectorListType->MagneticVector.arrayLen < iso2MagneticVectorListType_MagneticVector_ARRAY_SIZE) {
+ errn = decode_iso2MagneticVectorType(stream, &iso2MagneticVectorListType->MagneticVector.array[iso2MagneticVectorListType->MagneticVector.arrayLen++]);
+ } else {
+ errn = EXI_ERROR_OUT_OF_BOUNDS;
+ }
+ grammarID = 108;
+ break;
+ case 1:
+ done = 1;
+ grammarID = 4;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 108:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MagneticVector), END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ if (iso2MagneticVectorListType->MagneticVector.arrayLen < iso2MagneticVectorListType_MagneticVector_ARRAY_SIZE) {
+ errn = decode_iso2MagneticVectorType(stream, &iso2MagneticVectorListType->MagneticVector.array[iso2MagneticVectorListType->MagneticVector.arrayLen++]);
+ } else {
+ errn = EXI_ERROR_OUT_OF_BOUNDS;
+ }
+ grammarID = 109;
+ break;
+ case 1:
+ done = 1;
+ grammarID = 4;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 109:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MagneticVector), END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ if (iso2MagneticVectorListType->MagneticVector.arrayLen < iso2MagneticVectorListType_MagneticVector_ARRAY_SIZE) {
+ errn = decode_iso2MagneticVectorType(stream, &iso2MagneticVectorListType->MagneticVector.array[iso2MagneticVectorListType->MagneticVector.arrayLen++]);
+ } else {
+ errn = EXI_ERROR_OUT_OF_BOUNDS;
+ }
+ grammarID = 110;
+ break;
+ case 1:
+ done = 1;
+ grammarID = 4;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 110:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MagneticVector), END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ if (iso2MagneticVectorListType->MagneticVector.arrayLen < iso2MagneticVectorListType_MagneticVector_ARRAY_SIZE) {
+ errn = decode_iso2MagneticVectorType(stream, &iso2MagneticVectorListType->MagneticVector.array[iso2MagneticVectorListType->MagneticVector.arrayLen++]);
+ } else {
+ errn = EXI_ERROR_OUT_OF_BOUNDS;
+ }
+ grammarID = 111;
+ break;
+ case 1:
+ done = 1;
+ grammarID = 4;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 111:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MagneticVector), END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ if (iso2MagneticVectorListType->MagneticVector.arrayLen < iso2MagneticVectorListType_MagneticVector_ARRAY_SIZE) {
+ errn = decode_iso2MagneticVectorType(stream, &iso2MagneticVectorListType->MagneticVector.array[iso2MagneticVectorListType->MagneticVector.arrayLen++]);
+ } else {
+ errn = EXI_ERROR_OUT_OF_BOUNDS;
+ }
+ grammarID = 112;
+ break;
+ case 1:
+ done = 1;
+ grammarID = 4;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 112:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MagneticVector), END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ if (iso2MagneticVectorListType->MagneticVector.arrayLen < iso2MagneticVectorListType_MagneticVector_ARRAY_SIZE) {
+ errn = decode_iso2MagneticVectorType(stream, &iso2MagneticVectorListType->MagneticVector.array[iso2MagneticVectorListType->MagneticVector.arrayLen++]);
+ } else {
+ errn = EXI_ERROR_OUT_OF_BOUNDS;
+ }
+ grammarID = 113;
+ break;
+ case 1:
+ done = 1;
+ grammarID = 4;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 113:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MagneticVector), END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ if (iso2MagneticVectorListType->MagneticVector.arrayLen < iso2MagneticVectorListType_MagneticVector_ARRAY_SIZE) {
+ errn = decode_iso2MagneticVectorType(stream, &iso2MagneticVectorListType->MagneticVector.array[iso2MagneticVectorListType->MagneticVector.arrayLen++]);
+ } else {
+ errn = EXI_ERROR_OUT_OF_BOUNDS;
+ }
+ grammarID = 114;
+ break;
+ case 1:
+ done = 1;
+ grammarID = 4;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 114:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MagneticVector), END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ if (iso2MagneticVectorListType->MagneticVector.arrayLen < iso2MagneticVectorListType_MagneticVector_ARRAY_SIZE) {
+ errn = decode_iso2MagneticVectorType(stream, &iso2MagneticVectorListType->MagneticVector.array[iso2MagneticVectorListType->MagneticVector.arrayLen++]);
+ } else {
+ errn = EXI_ERROR_OUT_OF_BOUNDS;
+ }
+ grammarID = 115;
+ break;
+ case 1:
+ done = 1;
+ grammarID = 4;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 115:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MagneticVector), END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ if (iso2MagneticVectorListType->MagneticVector.arrayLen < iso2MagneticVectorListType_MagneticVector_ARRAY_SIZE) {
+ errn = decode_iso2MagneticVectorType(stream, &iso2MagneticVectorListType->MagneticVector.array[iso2MagneticVectorListType->MagneticVector.arrayLen++]);
+ } else {
+ errn = EXI_ERROR_OUT_OF_BOUNDS;
+ }
+ grammarID = 116;
+ break;
+ case 1:
+ done = 1;
+ grammarID = 4;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 116:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MagneticVector), END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ if (iso2MagneticVectorListType->MagneticVector.arrayLen < iso2MagneticVectorListType_MagneticVector_ARRAY_SIZE) {
+ errn = decode_iso2MagneticVectorType(stream, &iso2MagneticVectorListType->MagneticVector.array[iso2MagneticVectorListType->MagneticVector.arrayLen++]);
+ } else {
+ errn = EXI_ERROR_OUT_OF_BOUNDS;
+ }
+ grammarID = 117;
+ break;
+ case 1:
+ done = 1;
+ grammarID = 4;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 117:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MagneticVector), END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ if (iso2MagneticVectorListType->MagneticVector.arrayLen < iso2MagneticVectorListType_MagneticVector_ARRAY_SIZE) {
+ errn = decode_iso2MagneticVectorType(stream, &iso2MagneticVectorListType->MagneticVector.array[iso2MagneticVectorListType->MagneticVector.arrayLen++]);
+ } else {
+ errn = EXI_ERROR_OUT_OF_BOUNDS;
+ }
+ grammarID = 118;
+ break;
+ case 1:
+ done = 1;
+ grammarID = 4;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 118:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MagneticVector), END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ if (iso2MagneticVectorListType->MagneticVector.arrayLen < iso2MagneticVectorListType_MagneticVector_ARRAY_SIZE) {
+ errn = decode_iso2MagneticVectorType(stream, &iso2MagneticVectorListType->MagneticVector.array[iso2MagneticVectorListType->MagneticVector.arrayLen++]);
+ } else {
+ errn = EXI_ERROR_OUT_OF_BOUNDS;
+ }
+ grammarID = 119;
+ break;
+ case 1:
+ done = 1;
+ grammarID = 4;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 119:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MagneticVector), END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ if (iso2MagneticVectorListType->MagneticVector.arrayLen < iso2MagneticVectorListType_MagneticVector_ARRAY_SIZE) {
+ errn = decode_iso2MagneticVectorType(stream, &iso2MagneticVectorListType->MagneticVector.array[iso2MagneticVectorListType->MagneticVector.arrayLen++]);
+ } else {
+ errn = EXI_ERROR_OUT_OF_BOUNDS;
+ }
+ grammarID = 120;
+ break;
+ case 1:
+ done = 1;
+ grammarID = 4;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 120:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MagneticVector), END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ if (iso2MagneticVectorListType->MagneticVector.arrayLen < iso2MagneticVectorListType_MagneticVector_ARRAY_SIZE) {
+ errn = decode_iso2MagneticVectorType(stream, &iso2MagneticVectorListType->MagneticVector.array[iso2MagneticVectorListType->MagneticVector.arrayLen++]);
+ } else {
+ errn = EXI_ERROR_OUT_OF_BOUNDS;
+ }
+ grammarID = 121;
+ break;
+ case 1:
+ done = 1;
+ grammarID = 4;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 121:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MagneticVector), END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ if (iso2MagneticVectorListType->MagneticVector.arrayLen < iso2MagneticVectorListType_MagneticVector_ARRAY_SIZE) {
+ errn = decode_iso2MagneticVectorType(stream, &iso2MagneticVectorListType->MagneticVector.array[iso2MagneticVectorListType->MagneticVector.arrayLen++]);
+ } else {
+ errn = EXI_ERROR_OUT_OF_BOUNDS;
+ }
+ grammarID = 122;
+ break;
+ case 1:
+ done = 1;
+ grammarID = 4;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 122:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MagneticVector), END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ if (iso2MagneticVectorListType->MagneticVector.arrayLen < iso2MagneticVectorListType_MagneticVector_ARRAY_SIZE) {
+ errn = decode_iso2MagneticVectorType(stream, &iso2MagneticVectorListType->MagneticVector.array[iso2MagneticVectorListType->MagneticVector.arrayLen++]);
+ } else {
+ errn = EXI_ERROR_OUT_OF_BOUNDS;
+ }
+ grammarID = 123;
+ break;
+ case 1:
+ done = 1;
+ grammarID = 4;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 123:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MagneticVector), END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ if (iso2MagneticVectorListType->MagneticVector.arrayLen < iso2MagneticVectorListType_MagneticVector_ARRAY_SIZE) {
+ errn = decode_iso2MagneticVectorType(stream, &iso2MagneticVectorListType->MagneticVector.array[iso2MagneticVectorListType->MagneticVector.arrayLen++]);
+ } else {
+ errn = EXI_ERROR_OUT_OF_BOUNDS;
+ }
+ grammarID = 124;
+ break;
+ case 1:
+ done = 1;
+ grammarID = 4;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 124:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MagneticVector), END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ if (iso2MagneticVectorListType->MagneticVector.arrayLen < iso2MagneticVectorListType_MagneticVector_ARRAY_SIZE) {
+ errn = decode_iso2MagneticVectorType(stream, &iso2MagneticVectorListType->MagneticVector.array[iso2MagneticVectorListType->MagneticVector.arrayLen++]);
+ } else {
+ errn = EXI_ERROR_OUT_OF_BOUNDS;
+ }
+ grammarID = 125;
+ break;
+ case 1:
+ done = 1;
+ grammarID = 4;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 125:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MagneticVector), END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ if (iso2MagneticVectorListType->MagneticVector.arrayLen < iso2MagneticVectorListType_MagneticVector_ARRAY_SIZE) {
+ errn = decode_iso2MagneticVectorType(stream, &iso2MagneticVectorListType->MagneticVector.array[iso2MagneticVectorListType->MagneticVector.arrayLen++]);
+ } else {
+ errn = EXI_ERROR_OUT_OF_BOUNDS;
+ }
+ grammarID = 126;
+ break;
+ case 1:
+ done = 1;
+ grammarID = 4;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 126:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MagneticVector), END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ if (iso2MagneticVectorListType->MagneticVector.arrayLen < iso2MagneticVectorListType_MagneticVector_ARRAY_SIZE) {
+ errn = decode_iso2MagneticVectorType(stream, &iso2MagneticVectorListType->MagneticVector.array[iso2MagneticVectorListType->MagneticVector.arrayLen++]);
+ } else {
+ errn = EXI_ERROR_OUT_OF_BOUNDS;
+ }
+ grammarID = 127;
+ break;
+ case 1:
+ done = 1;
+ grammarID = 4;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 127:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MagneticVector), END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ if (iso2MagneticVectorListType->MagneticVector.arrayLen < iso2MagneticVectorListType_MagneticVector_ARRAY_SIZE) {
+ errn = decode_iso2MagneticVectorType(stream, &iso2MagneticVectorListType->MagneticVector.array[iso2MagneticVectorListType->MagneticVector.arrayLen++]);
+ } else {
+ errn = EXI_ERROR_OUT_OF_BOUNDS;
+ }
+ grammarID = 128;
+ break;
+ case 1:
+ done = 1;
+ grammarID = 4;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 128:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MagneticVector), END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ if (iso2MagneticVectorListType->MagneticVector.arrayLen < iso2MagneticVectorListType_MagneticVector_ARRAY_SIZE) {
+ errn = decode_iso2MagneticVectorType(stream, &iso2MagneticVectorListType->MagneticVector.array[iso2MagneticVectorListType->MagneticVector.arrayLen++]);
+ } else {
+ errn = EXI_ERROR_OUT_OF_BOUNDS;
+ }
+ grammarID = 129;
+ break;
+ case 1:
+ done = 1;
+ grammarID = 4;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 129:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MagneticVector), END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ if (iso2MagneticVectorListType->MagneticVector.arrayLen < iso2MagneticVectorListType_MagneticVector_ARRAY_SIZE) {
+ errn = decode_iso2MagneticVectorType(stream, &iso2MagneticVectorListType->MagneticVector.array[iso2MagneticVectorListType->MagneticVector.arrayLen++]);
+ } else {
+ errn = EXI_ERROR_OUT_OF_BOUNDS;
+ }
+ grammarID = 130;
+ break;
+ case 1:
+ done = 1;
+ grammarID = 4;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 130:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MagneticVector), END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ if (iso2MagneticVectorListType->MagneticVector.arrayLen < iso2MagneticVectorListType_MagneticVector_ARRAY_SIZE) {
+ errn = decode_iso2MagneticVectorType(stream, &iso2MagneticVectorListType->MagneticVector.array[iso2MagneticVectorListType->MagneticVector.arrayLen++]);
+ } else {
+ errn = EXI_ERROR_OUT_OF_BOUNDS;
+ }
+ grammarID = 131;
+ break;
+ case 1:
+ done = 1;
+ grammarID = 4;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 131:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MagneticVector), END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ if (iso2MagneticVectorListType->MagneticVector.arrayLen < iso2MagneticVectorListType_MagneticVector_ARRAY_SIZE) {
+ errn = decode_iso2MagneticVectorType(stream, &iso2MagneticVectorListType->MagneticVector.array[iso2MagneticVectorListType->MagneticVector.arrayLen++]);
+ } else {
+ errn = EXI_ERROR_OUT_OF_BOUNDS;
+ }
+ grammarID = 132;
+ break;
+ case 1:
+ done = 1;
+ grammarID = 4;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 132:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MagneticVector), END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ if (iso2MagneticVectorListType->MagneticVector.arrayLen < iso2MagneticVectorListType_MagneticVector_ARRAY_SIZE) {
+ errn = decode_iso2MagneticVectorType(stream, &iso2MagneticVectorListType->MagneticVector.array[iso2MagneticVectorListType->MagneticVector.arrayLen++]);
+ } else {
+ errn = EXI_ERROR_OUT_OF_BOUNDS;
+ }
+ grammarID = 133;
+ break;
+ case 1:
+ done = 1;
+ grammarID = 4;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 133:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MagneticVector), END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ if (iso2MagneticVectorListType->MagneticVector.arrayLen < iso2MagneticVectorListType_MagneticVector_ARRAY_SIZE) {
+ errn = decode_iso2MagneticVectorType(stream, &iso2MagneticVectorListType->MagneticVector.array[iso2MagneticVectorListType->MagneticVector.arrayLen++]);
+ } else {
+ errn = EXI_ERROR_OUT_OF_BOUNDS;
+ }
+ grammarID = 134;
+ break;
+ case 1:
+ done = 1;
+ grammarID = 4;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 134:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MagneticVector), END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ if (iso2MagneticVectorListType->MagneticVector.arrayLen < iso2MagneticVectorListType_MagneticVector_ARRAY_SIZE) {
+ errn = decode_iso2MagneticVectorType(stream, &iso2MagneticVectorListType->MagneticVector.array[iso2MagneticVectorListType->MagneticVector.arrayLen++]);
+ } else {
+ errn = EXI_ERROR_OUT_OF_BOUNDS;
+ }
+ grammarID = 135;
+ break;
+ case 1:
+ done = 1;
+ grammarID = 4;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 135:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MagneticVector), END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ if (iso2MagneticVectorListType->MagneticVector.arrayLen < iso2MagneticVectorListType_MagneticVector_ARRAY_SIZE) {
+ errn = decode_iso2MagneticVectorType(stream, &iso2MagneticVectorListType->MagneticVector.array[iso2MagneticVectorListType->MagneticVector.arrayLen++]);
+ } else {
+ errn = EXI_ERROR_OUT_OF_BOUNDS;
+ }
+ grammarID = 136;
+ break;
+ case 1:
+ done = 1;
+ grammarID = 4;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 136:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MagneticVector), END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ if (iso2MagneticVectorListType->MagneticVector.arrayLen < iso2MagneticVectorListType_MagneticVector_ARRAY_SIZE) {
+ errn = decode_iso2MagneticVectorType(stream, &iso2MagneticVectorListType->MagneticVector.array[iso2MagneticVectorListType->MagneticVector.arrayLen++]);
+ } else {
+ errn = EXI_ERROR_OUT_OF_BOUNDS;
+ }
+ grammarID = 137;
+ break;
+ case 1:
+ done = 1;
+ grammarID = 4;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 137:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MagneticVector), END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ if (iso2MagneticVectorListType->MagneticVector.arrayLen < iso2MagneticVectorListType_MagneticVector_ARRAY_SIZE) {
+ errn = decode_iso2MagneticVectorType(stream, &iso2MagneticVectorListType->MagneticVector.array[iso2MagneticVectorListType->MagneticVector.arrayLen++]);
+ } else {
+ errn = EXI_ERROR_OUT_OF_BOUNDS;
+ }
+ grammarID = 138;
+ break;
+ case 1:
+ done = 1;
+ grammarID = 4;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 138:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MagneticVector), END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ if (iso2MagneticVectorListType->MagneticVector.arrayLen < iso2MagneticVectorListType_MagneticVector_ARRAY_SIZE) {
+ errn = decode_iso2MagneticVectorType(stream, &iso2MagneticVectorListType->MagneticVector.array[iso2MagneticVectorListType->MagneticVector.arrayLen++]);
+ } else {
+ errn = EXI_ERROR_OUT_OF_BOUNDS;
+ }
+ grammarID = 139;
+ break;
+ case 1:
+ done = 1;
+ grammarID = 4;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 139:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MagneticVector), END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ if (iso2MagneticVectorListType->MagneticVector.arrayLen < iso2MagneticVectorListType_MagneticVector_ARRAY_SIZE) {
+ errn = decode_iso2MagneticVectorType(stream, &iso2MagneticVectorListType->MagneticVector.array[iso2MagneticVectorListType->MagneticVector.arrayLen++]);
+ } else {
+ errn = EXI_ERROR_OUT_OF_BOUNDS;
+ }
+ grammarID = 140;
+ break;
+ case 1:
+ done = 1;
+ grammarID = 4;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 140:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MagneticVector), END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ if (iso2MagneticVectorListType->MagneticVector.arrayLen < iso2MagneticVectorListType_MagneticVector_ARRAY_SIZE) {
+ errn = decode_iso2MagneticVectorType(stream, &iso2MagneticVectorListType->MagneticVector.array[iso2MagneticVectorListType->MagneticVector.arrayLen++]);
+ } else {
+ errn = EXI_ERROR_OUT_OF_BOUNDS;
+ }
+ grammarID = 141;
+ break;
+ case 1:
+ done = 1;
+ grammarID = 4;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 141:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MagneticVector), END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ if (iso2MagneticVectorListType->MagneticVector.arrayLen < iso2MagneticVectorListType_MagneticVector_ARRAY_SIZE) {
+ errn = decode_iso2MagneticVectorType(stream, &iso2MagneticVectorListType->MagneticVector.array[iso2MagneticVectorListType->MagneticVector.arrayLen++]);
+ } else {
+ errn = EXI_ERROR_OUT_OF_BOUNDS;
+ }
+ grammarID = 142;
+ break;
+ case 1:
+ done = 1;
+ grammarID = 4;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 142:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MagneticVector), END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ if (iso2MagneticVectorListType->MagneticVector.arrayLen < iso2MagneticVectorListType_MagneticVector_ARRAY_SIZE) {
+ errn = decode_iso2MagneticVectorType(stream, &iso2MagneticVectorListType->MagneticVector.array[iso2MagneticVectorListType->MagneticVector.arrayLen++]);
+ } else {
+ errn = EXI_ERROR_OUT_OF_BOUNDS;
+ }
+ grammarID = 143;
+ break;
+ case 1:
+ done = 1;
+ grammarID = 4;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 143:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MagneticVector), END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ if (iso2MagneticVectorListType->MagneticVector.arrayLen < iso2MagneticVectorListType_MagneticVector_ARRAY_SIZE) {
+ errn = decode_iso2MagneticVectorType(stream, &iso2MagneticVectorListType->MagneticVector.array[iso2MagneticVectorListType->MagneticVector.arrayLen++]);
+ } else {
+ errn = EXI_ERROR_OUT_OF_BOUNDS;
+ }
+ grammarID = 144;
+ break;
+ case 1:
+ done = 1;
+ grammarID = 4;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 144:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MagneticVector), END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ if (iso2MagneticVectorListType->MagneticVector.arrayLen < iso2MagneticVectorListType_MagneticVector_ARRAY_SIZE) {
+ errn = decode_iso2MagneticVectorType(stream, &iso2MagneticVectorListType->MagneticVector.array[iso2MagneticVectorListType->MagneticVector.arrayLen++]);
+ } else {
+ errn = EXI_ERROR_OUT_OF_BOUNDS;
+ }
+ grammarID = 145;
+ break;
+ case 1:
+ done = 1;
+ grammarID = 4;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 145:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MagneticVector), END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ if (iso2MagneticVectorListType->MagneticVector.arrayLen < iso2MagneticVectorListType_MagneticVector_ARRAY_SIZE) {
+ errn = decode_iso2MagneticVectorType(stream, &iso2MagneticVectorListType->MagneticVector.array[iso2MagneticVectorListType->MagneticVector.arrayLen++]);
+ } else {
+ errn = EXI_ERROR_OUT_OF_BOUNDS;
+ }
+ grammarID = 146;
+ break;
+ case 1:
+ done = 1;
+ grammarID = 4;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 146:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MagneticVector), END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ if (iso2MagneticVectorListType->MagneticVector.arrayLen < iso2MagneticVectorListType_MagneticVector_ARRAY_SIZE) {
+ errn = decode_iso2MagneticVectorType(stream, &iso2MagneticVectorListType->MagneticVector.array[iso2MagneticVectorListType->MagneticVector.arrayLen++]);
+ } else {
+ errn = EXI_ERROR_OUT_OF_BOUNDS;
+ }
+ grammarID = 147;
+ break;
+ case 1:
+ done = 1;
+ grammarID = 4;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 147:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MagneticVector), END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ if (iso2MagneticVectorListType->MagneticVector.arrayLen < iso2MagneticVectorListType_MagneticVector_ARRAY_SIZE) {
+ errn = decode_iso2MagneticVectorType(stream, &iso2MagneticVectorListType->MagneticVector.array[iso2MagneticVectorListType->MagneticVector.arrayLen++]);
+ } else {
+ errn = EXI_ERROR_OUT_OF_BOUNDS;
+ }
+ grammarID = 148;
+ break;
+ case 1:
+ done = 1;
+ grammarID = 4;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 148:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MagneticVector), END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ if (iso2MagneticVectorListType->MagneticVector.arrayLen < iso2MagneticVectorListType_MagneticVector_ARRAY_SIZE) {
+ errn = decode_iso2MagneticVectorType(stream, &iso2MagneticVectorListType->MagneticVector.array[iso2MagneticVectorListType->MagneticVector.arrayLen++]);
+ } else {
+ errn = EXI_ERROR_OUT_OF_BOUNDS;
+ }
+ grammarID = 149;
+ break;
+ case 1:
+ done = 1;
+ grammarID = 4;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 149:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MagneticVector), END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ if (iso2MagneticVectorListType->MagneticVector.arrayLen < iso2MagneticVectorListType_MagneticVector_ARRAY_SIZE) {
+ errn = decode_iso2MagneticVectorType(stream, &iso2MagneticVectorListType->MagneticVector.array[iso2MagneticVectorListType->MagneticVector.arrayLen++]);
+ } else {
+ errn = EXI_ERROR_OUT_OF_BOUNDS;
+ }
+ grammarID = 150;
+ break;
+ case 1:
+ done = 1;
+ grammarID = 4;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 150:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MagneticVector), END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ if (iso2MagneticVectorListType->MagneticVector.arrayLen < iso2MagneticVectorListType_MagneticVector_ARRAY_SIZE) {
+ errn = decode_iso2MagneticVectorType(stream, &iso2MagneticVectorListType->MagneticVector.array[iso2MagneticVectorListType->MagneticVector.arrayLen++]);
+ } else {
+ errn = EXI_ERROR_OUT_OF_BOUNDS;
+ }
+ grammarID = 151;
+ break;
+ case 1:
+ done = 1;
+ grammarID = 4;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 151:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MagneticVector), END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ if (iso2MagneticVectorListType->MagneticVector.arrayLen < iso2MagneticVectorListType_MagneticVector_ARRAY_SIZE) {
+ errn = decode_iso2MagneticVectorType(stream, &iso2MagneticVectorListType->MagneticVector.array[iso2MagneticVectorListType->MagneticVector.arrayLen++]);
+ } else {
+ errn = EXI_ERROR_OUT_OF_BOUNDS;
+ }
+ grammarID = 152;
+ break;
+ case 1:
+ done = 1;
+ grammarID = 4;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 152:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MagneticVector), END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ if (iso2MagneticVectorListType->MagneticVector.arrayLen < iso2MagneticVectorListType_MagneticVector_ARRAY_SIZE) {
+ errn = decode_iso2MagneticVectorType(stream, &iso2MagneticVectorListType->MagneticVector.array[iso2MagneticVectorListType->MagneticVector.arrayLen++]);
+ } else {
+ errn = EXI_ERROR_OUT_OF_BOUNDS;
+ }
+ grammarID = 153;
+ break;
+ case 1:
+ done = 1;
+ grammarID = 4;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 153:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MagneticVector), END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ if (iso2MagneticVectorListType->MagneticVector.arrayLen < iso2MagneticVectorListType_MagneticVector_ARRAY_SIZE) {
+ errn = decode_iso2MagneticVectorType(stream, &iso2MagneticVectorListType->MagneticVector.array[iso2MagneticVectorListType->MagneticVector.arrayLen++]);
+ } else {
+ errn = EXI_ERROR_OUT_OF_BOUNDS;
+ }
+ grammarID = 154;
+ break;
+ case 1:
+ done = 1;
+ grammarID = 4;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 154:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MagneticVector), END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ if (iso2MagneticVectorListType->MagneticVector.arrayLen < iso2MagneticVectorListType_MagneticVector_ARRAY_SIZE) {
+ errn = decode_iso2MagneticVectorType(stream, &iso2MagneticVectorListType->MagneticVector.array[iso2MagneticVectorListType->MagneticVector.arrayLen++]);
+ } else {
+ errn = EXI_ERROR_OUT_OF_BOUNDS;
+ }
+ grammarID = 155;
+ break;
+ case 1:
+ done = 1;
+ grammarID = 4;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 155:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MagneticVector), END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ if (iso2MagneticVectorListType->MagneticVector.arrayLen < iso2MagneticVectorListType_MagneticVector_ARRAY_SIZE) {
+ errn = decode_iso2MagneticVectorType(stream, &iso2MagneticVectorListType->MagneticVector.array[iso2MagneticVectorListType->MagneticVector.arrayLen++]);
+ } else {
+ errn = EXI_ERROR_OUT_OF_BOUNDS;
+ }
+ grammarID = 156;
+ break;
+ case 1:
+ done = 1;
+ grammarID = 4;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 156:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MagneticVector), END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ if (iso2MagneticVectorListType->MagneticVector.arrayLen < iso2MagneticVectorListType_MagneticVector_ARRAY_SIZE) {
+ errn = decode_iso2MagneticVectorType(stream, &iso2MagneticVectorListType->MagneticVector.array[iso2MagneticVectorListType->MagneticVector.arrayLen++]);
+ } else {
+ errn = EXI_ERROR_OUT_OF_BOUNDS;
+ }
+ grammarID = 157;
+ break;
+ case 1:
+ done = 1;
+ grammarID = 4;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 157:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MagneticVector), END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ if (iso2MagneticVectorListType->MagneticVector.arrayLen < iso2MagneticVectorListType_MagneticVector_ARRAY_SIZE) {
+ errn = decode_iso2MagneticVectorType(stream, &iso2MagneticVectorListType->MagneticVector.array[iso2MagneticVectorListType->MagneticVector.arrayLen++]);
+ } else {
+ errn = EXI_ERROR_OUT_OF_BOUNDS;
+ }
+ grammarID = 158;
+ break;
+ case 1:
+ done = 1;
+ grammarID = 4;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 158:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MagneticVector), END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ if (iso2MagneticVectorListType->MagneticVector.arrayLen < iso2MagneticVectorListType_MagneticVector_ARRAY_SIZE) {
+ errn = decode_iso2MagneticVectorType(stream, &iso2MagneticVectorListType->MagneticVector.array[iso2MagneticVectorListType->MagneticVector.arrayLen++]);
+ } else {
+ errn = EXI_ERROR_OUT_OF_BOUNDS;
+ }
+ grammarID = 159;
+ break;
+ case 1:
+ done = 1;
+ grammarID = 4;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 159:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MagneticVector), END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ if (iso2MagneticVectorListType->MagneticVector.arrayLen < iso2MagneticVectorListType_MagneticVector_ARRAY_SIZE) {
+ errn = decode_iso2MagneticVectorType(stream, &iso2MagneticVectorListType->MagneticVector.array[iso2MagneticVectorListType->MagneticVector.arrayLen++]);
+ } else {
+ errn = EXI_ERROR_OUT_OF_BOUNDS;
+ }
+ grammarID = 160;
+ break;
+ case 1:
+ done = 1;
+ grammarID = 4;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 160:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MagneticVector), END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ if (iso2MagneticVectorListType->MagneticVector.arrayLen < iso2MagneticVectorListType_MagneticVector_ARRAY_SIZE) {
+ errn = decode_iso2MagneticVectorType(stream, &iso2MagneticVectorListType->MagneticVector.array[iso2MagneticVectorListType->MagneticVector.arrayLen++]);
+ } else {
+ errn = EXI_ERROR_OUT_OF_BOUNDS;
+ }
+ grammarID = 161;
+ break;
+ case 1:
+ done = 1;
+ grammarID = 4;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 161:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MagneticVector), END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ if (iso2MagneticVectorListType->MagneticVector.arrayLen < iso2MagneticVectorListType_MagneticVector_ARRAY_SIZE) {
+ errn = decode_iso2MagneticVectorType(stream, &iso2MagneticVectorListType->MagneticVector.array[iso2MagneticVectorListType->MagneticVector.arrayLen++]);
+ } else {
+ errn = EXI_ERROR_OUT_OF_BOUNDS;
+ }
+ grammarID = 162;
+ break;
+ case 1:
+ done = 1;
+ grammarID = 4;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 162:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MagneticVector), END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ if (iso2MagneticVectorListType->MagneticVector.arrayLen < iso2MagneticVectorListType_MagneticVector_ARRAY_SIZE) {
+ errn = decode_iso2MagneticVectorType(stream, &iso2MagneticVectorListType->MagneticVector.array[iso2MagneticVectorListType->MagneticVector.arrayLen++]);
+ } else {
+ errn = EXI_ERROR_OUT_OF_BOUNDS;
+ }
+ grammarID = 163;
+ break;
+ case 1:
+ done = 1;
+ grammarID = 4;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 163:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MagneticVector), END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ if (iso2MagneticVectorListType->MagneticVector.arrayLen < iso2MagneticVectorListType_MagneticVector_ARRAY_SIZE) {
+ errn = decode_iso2MagneticVectorType(stream, &iso2MagneticVectorListType->MagneticVector.array[iso2MagneticVectorListType->MagneticVector.arrayLen++]);
+ } else {
+ errn = EXI_ERROR_OUT_OF_BOUNDS;
+ }
+ grammarID = 164;
+ break;
+ case 1:
+ done = 1;
+ grammarID = 4;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 164:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MagneticVector), END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ if (iso2MagneticVectorListType->MagneticVector.arrayLen < iso2MagneticVectorListType_MagneticVector_ARRAY_SIZE) {
+ errn = decode_iso2MagneticVectorType(stream, &iso2MagneticVectorListType->MagneticVector.array[iso2MagneticVectorListType->MagneticVector.arrayLen++]);
+ } else {
+ errn = EXI_ERROR_OUT_OF_BOUNDS;
+ }
+ grammarID = 165;
+ break;
+ case 1:
+ done = 1;
+ grammarID = 4;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 165:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MagneticVector), END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ if (iso2MagneticVectorListType->MagneticVector.arrayLen < iso2MagneticVectorListType_MagneticVector_ARRAY_SIZE) {
+ errn = decode_iso2MagneticVectorType(stream, &iso2MagneticVectorListType->MagneticVector.array[iso2MagneticVectorListType->MagneticVector.arrayLen++]);
+ } else {
+ errn = EXI_ERROR_OUT_OF_BOUNDS;
+ }
+ grammarID = 166;
+ break;
+ case 1:
+ done = 1;
+ grammarID = 4;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 166:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MagneticVector), END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ if (iso2MagneticVectorListType->MagneticVector.arrayLen < iso2MagneticVectorListType_MagneticVector_ARRAY_SIZE) {
+ errn = decode_iso2MagneticVectorType(stream, &iso2MagneticVectorListType->MagneticVector.array[iso2MagneticVectorListType->MagneticVector.arrayLen++]);
+ } else {
+ errn = EXI_ERROR_OUT_OF_BOUNDS;
+ }
+ grammarID = 167;
+ break;
+ case 1:
+ done = 1;
+ grammarID = 4;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 167:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MagneticVector), END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ if (iso2MagneticVectorListType->MagneticVector.arrayLen < iso2MagneticVectorListType_MagneticVector_ARRAY_SIZE) {
+ errn = decode_iso2MagneticVectorType(stream, &iso2MagneticVectorListType->MagneticVector.array[iso2MagneticVectorListType->MagneticVector.arrayLen++]);
+ } else {
+ errn = EXI_ERROR_OUT_OF_BOUNDS;
+ }
+ grammarID = 168;
+ break;
+ case 1:
+ done = 1;
+ grammarID = 4;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 168:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MagneticVector), END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ if (iso2MagneticVectorListType->MagneticVector.arrayLen < iso2MagneticVectorListType_MagneticVector_ARRAY_SIZE) {
+ errn = decode_iso2MagneticVectorType(stream, &iso2MagneticVectorListType->MagneticVector.array[iso2MagneticVectorListType->MagneticVector.arrayLen++]);
+ } else {
+ errn = EXI_ERROR_OUT_OF_BOUNDS;
+ }
+ grammarID = 169;
+ break;
+ case 1:
+ done = 1;
+ grammarID = 4;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 169:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MagneticVector), END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ if (iso2MagneticVectorListType->MagneticVector.arrayLen < iso2MagneticVectorListType_MagneticVector_ARRAY_SIZE) {
+ errn = decode_iso2MagneticVectorType(stream, &iso2MagneticVectorListType->MagneticVector.array[iso2MagneticVectorListType->MagneticVector.arrayLen++]);
+ } else {
+ errn = EXI_ERROR_OUT_OF_BOUNDS;
+ }
+ grammarID = 170;
+ break;
+ case 1:
+ done = 1;
+ grammarID = 4;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 170:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MagneticVector), END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ if (iso2MagneticVectorListType->MagneticVector.arrayLen < iso2MagneticVectorListType_MagneticVector_ARRAY_SIZE) {
+ errn = decode_iso2MagneticVectorType(stream, &iso2MagneticVectorListType->MagneticVector.array[iso2MagneticVectorListType->MagneticVector.arrayLen++]);
+ } else {
+ errn = EXI_ERROR_OUT_OF_BOUNDS;
+ }
+ grammarID = 171;
+ break;
+ case 1:
+ done = 1;
+ grammarID = 4;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 171:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MagneticVector), END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ if (iso2MagneticVectorListType->MagneticVector.arrayLen < iso2MagneticVectorListType_MagneticVector_ARRAY_SIZE) {
+ errn = decode_iso2MagneticVectorType(stream, &iso2MagneticVectorListType->MagneticVector.array[iso2MagneticVectorListType->MagneticVector.arrayLen++]);
+ } else {
+ errn = EXI_ERROR_OUT_OF_BOUNDS;
+ }
+ grammarID = 172;
+ break;
+ case 1:
+ done = 1;
+ grammarID = 4;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 172:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MagneticVector), END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ if (iso2MagneticVectorListType->MagneticVector.arrayLen < iso2MagneticVectorListType_MagneticVector_ARRAY_SIZE) {
+ errn = decode_iso2MagneticVectorType(stream, &iso2MagneticVectorListType->MagneticVector.array[iso2MagneticVectorListType->MagneticVector.arrayLen++]);
+ } else {
+ errn = EXI_ERROR_OUT_OF_BOUNDS;
+ }
+ grammarID = 173;
+ break;
+ case 1:
+ done = 1;
+ grammarID = 4;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 173:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MagneticVector), END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ if (iso2MagneticVectorListType->MagneticVector.arrayLen < iso2MagneticVectorListType_MagneticVector_ARRAY_SIZE) {
+ errn = decode_iso2MagneticVectorType(stream, &iso2MagneticVectorListType->MagneticVector.array[iso2MagneticVectorListType->MagneticVector.arrayLen++]);
+ } else {
+ errn = EXI_ERROR_OUT_OF_BOUNDS;
+ }
+ grammarID = 174;
+ break;
+ case 1:
+ done = 1;
+ grammarID = 4;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 174:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MagneticVector), END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ if (iso2MagneticVectorListType->MagneticVector.arrayLen < iso2MagneticVectorListType_MagneticVector_ARRAY_SIZE) {
+ errn = decode_iso2MagneticVectorType(stream, &iso2MagneticVectorListType->MagneticVector.array[iso2MagneticVectorListType->MagneticVector.arrayLen++]);
+ } else {
+ errn = EXI_ERROR_OUT_OF_BOUNDS;
+ }
+ grammarID = 175;
+ break;
+ case 1:
+ done = 1;
+ grammarID = 4;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 175:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MagneticVector), END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ if (iso2MagneticVectorListType->MagneticVector.arrayLen < iso2MagneticVectorListType_MagneticVector_ARRAY_SIZE) {
+ errn = decode_iso2MagneticVectorType(stream, &iso2MagneticVectorListType->MagneticVector.array[iso2MagneticVectorListType->MagneticVector.arrayLen++]);
+ } else {
+ errn = EXI_ERROR_OUT_OF_BOUNDS;
+ }
+ grammarID = 176;
+ break;
+ case 1:
+ done = 1;
+ grammarID = 4;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 176:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MagneticVector), END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ if (iso2MagneticVectorListType->MagneticVector.arrayLen < iso2MagneticVectorListType_MagneticVector_ARRAY_SIZE) {
+ errn = decode_iso2MagneticVectorType(stream, &iso2MagneticVectorListType->MagneticVector.array[iso2MagneticVectorListType->MagneticVector.arrayLen++]);
+ } else {
+ errn = EXI_ERROR_OUT_OF_BOUNDS;
+ }
+ grammarID = 177;
+ break;
+ case 1:
+ done = 1;
+ grammarID = 4;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 177:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MagneticVector), END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ if (iso2MagneticVectorListType->MagneticVector.arrayLen < iso2MagneticVectorListType_MagneticVector_ARRAY_SIZE) {
+ errn = decode_iso2MagneticVectorType(stream, &iso2MagneticVectorListType->MagneticVector.array[iso2MagneticVectorListType->MagneticVector.arrayLen++]);
+ } else {
+ errn = EXI_ERROR_OUT_OF_BOUNDS;
+ }
+ grammarID = 178;
+ break;
+ case 1:
+ done = 1;
+ grammarID = 4;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 178:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MagneticVector), END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ if (iso2MagneticVectorListType->MagneticVector.arrayLen < iso2MagneticVectorListType_MagneticVector_ARRAY_SIZE) {
+ errn = decode_iso2MagneticVectorType(stream, &iso2MagneticVectorListType->MagneticVector.array[iso2MagneticVectorListType->MagneticVector.arrayLen++]);
+ } else {
+ errn = EXI_ERROR_OUT_OF_BOUNDS;
+ }
+ grammarID = 179;
+ break;
+ case 1:
+ done = 1;
+ grammarID = 4;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 179:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MagneticVector), END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ if (iso2MagneticVectorListType->MagneticVector.arrayLen < iso2MagneticVectorListType_MagneticVector_ARRAY_SIZE) {
+ errn = decode_iso2MagneticVectorType(stream, &iso2MagneticVectorListType->MagneticVector.array[iso2MagneticVectorListType->MagneticVector.arrayLen++]);
+ } else {
+ errn = EXI_ERROR_OUT_OF_BOUNDS;
+ }
+ grammarID = 180;
+ break;
+ case 1:
+ done = 1;
+ grammarID = 4;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 180:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MagneticVector), END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ if (iso2MagneticVectorListType->MagneticVector.arrayLen < iso2MagneticVectorListType_MagneticVector_ARRAY_SIZE) {
+ errn = decode_iso2MagneticVectorType(stream, &iso2MagneticVectorListType->MagneticVector.array[iso2MagneticVectorListType->MagneticVector.arrayLen++]);
+ } else {
+ errn = EXI_ERROR_OUT_OF_BOUNDS;
+ }
+ grammarID = 181;
+ break;
+ case 1:
+ done = 1;
+ grammarID = 4;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 181:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MagneticVector), END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ if (iso2MagneticVectorListType->MagneticVector.arrayLen < iso2MagneticVectorListType_MagneticVector_ARRAY_SIZE) {
+ errn = decode_iso2MagneticVectorType(stream, &iso2MagneticVectorListType->MagneticVector.array[iso2MagneticVectorListType->MagneticVector.arrayLen++]);
+ } else {
+ errn = EXI_ERROR_OUT_OF_BOUNDS;
+ }
+ grammarID = 182;
+ break;
+ case 1:
+ done = 1;
+ grammarID = 4;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 182:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MagneticVector), END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ if (iso2MagneticVectorListType->MagneticVector.arrayLen < iso2MagneticVectorListType_MagneticVector_ARRAY_SIZE) {
+ errn = decode_iso2MagneticVectorType(stream, &iso2MagneticVectorListType->MagneticVector.array[iso2MagneticVectorListType->MagneticVector.arrayLen++]);
+ } else {
+ errn = EXI_ERROR_OUT_OF_BOUNDS;
+ }
+ grammarID = 183;
+ break;
+ case 1:
+ done = 1;
+ grammarID = 4;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 183:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MagneticVector), END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ if (iso2MagneticVectorListType->MagneticVector.arrayLen < iso2MagneticVectorListType_MagneticVector_ARRAY_SIZE) {
+ errn = decode_iso2MagneticVectorType(stream, &iso2MagneticVectorListType->MagneticVector.array[iso2MagneticVectorListType->MagneticVector.arrayLen++]);
+ } else {
+ errn = EXI_ERROR_OUT_OF_BOUNDS;
+ }
+ grammarID = 184;
+ break;
+ case 1:
+ done = 1;
+ grammarID = 4;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 184:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MagneticVector), END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ if (iso2MagneticVectorListType->MagneticVector.arrayLen < iso2MagneticVectorListType_MagneticVector_ARRAY_SIZE) {
+ errn = decode_iso2MagneticVectorType(stream, &iso2MagneticVectorListType->MagneticVector.array[iso2MagneticVectorListType->MagneticVector.arrayLen++]);
+ } else {
+ errn = EXI_ERROR_OUT_OF_BOUNDS;
+ }
+ grammarID = 185;
+ break;
+ case 1:
+ done = 1;
+ grammarID = 4;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 185:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MagneticVector), END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ if (iso2MagneticVectorListType->MagneticVector.arrayLen < iso2MagneticVectorListType_MagneticVector_ARRAY_SIZE) {
+ errn = decode_iso2MagneticVectorType(stream, &iso2MagneticVectorListType->MagneticVector.array[iso2MagneticVectorListType->MagneticVector.arrayLen++]);
+ } else {
+ errn = EXI_ERROR_OUT_OF_BOUNDS;
+ }
+ grammarID = 186;
+ break;
+ case 1:
+ done = 1;
+ grammarID = 4;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 186:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MagneticVector), END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ if (iso2MagneticVectorListType->MagneticVector.arrayLen < iso2MagneticVectorListType_MagneticVector_ARRAY_SIZE) {
+ errn = decode_iso2MagneticVectorType(stream, &iso2MagneticVectorListType->MagneticVector.array[iso2MagneticVectorListType->MagneticVector.arrayLen++]);
+ } else {
+ errn = EXI_ERROR_OUT_OF_BOUNDS;
+ }
+ grammarID = 187;
+ break;
+ case 1:
+ done = 1;
+ grammarID = 4;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 187:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MagneticVector), END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ if (iso2MagneticVectorListType->MagneticVector.arrayLen < iso2MagneticVectorListType_MagneticVector_ARRAY_SIZE) {
+ errn = decode_iso2MagneticVectorType(stream, &iso2MagneticVectorListType->MagneticVector.array[iso2MagneticVectorListType->MagneticVector.arrayLen++]);
+ } else {
+ errn = EXI_ERROR_OUT_OF_BOUNDS;
+ }
+ grammarID = 188;
+ break;
+ case 1:
+ done = 1;
+ grammarID = 4;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 188:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MagneticVector), END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ if (iso2MagneticVectorListType->MagneticVector.arrayLen < iso2MagneticVectorListType_MagneticVector_ARRAY_SIZE) {
+ errn = decode_iso2MagneticVectorType(stream, &iso2MagneticVectorListType->MagneticVector.array[iso2MagneticVectorListType->MagneticVector.arrayLen++]);
+ } else {
+ errn = EXI_ERROR_OUT_OF_BOUNDS;
+ }
+ grammarID = 189;
+ break;
+ case 1:
+ done = 1;
+ grammarID = 4;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 189:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MagneticVector), END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ if (iso2MagneticVectorListType->MagneticVector.arrayLen < iso2MagneticVectorListType_MagneticVector_ARRAY_SIZE) {
+ errn = decode_iso2MagneticVectorType(stream, &iso2MagneticVectorListType->MagneticVector.array[iso2MagneticVectorListType->MagneticVector.arrayLen++]);
+ } else {
+ errn = EXI_ERROR_OUT_OF_BOUNDS;
+ }
+ grammarID = 190;
+ break;
+ case 1:
+ done = 1;
+ grammarID = 4;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 190:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MagneticVector), END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ if (iso2MagneticVectorListType->MagneticVector.arrayLen < iso2MagneticVectorListType_MagneticVector_ARRAY_SIZE) {
+ errn = decode_iso2MagneticVectorType(stream, &iso2MagneticVectorListType->MagneticVector.array[iso2MagneticVectorListType->MagneticVector.arrayLen++]);
+ } else {
+ errn = EXI_ERROR_OUT_OF_BOUNDS;
+ }
+ grammarID = 191;
+ break;
+ case 1:
+ done = 1;
+ grammarID = 4;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 191:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MagneticVector), END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ if (iso2MagneticVectorListType->MagneticVector.arrayLen < iso2MagneticVectorListType_MagneticVector_ARRAY_SIZE) {
+ errn = decode_iso2MagneticVectorType(stream, &iso2MagneticVectorListType->MagneticVector.array[iso2MagneticVectorListType->MagneticVector.arrayLen++]);
+ } else {
+ errn = EXI_ERROR_OUT_OF_BOUNDS;
+ }
+ grammarID = 192;
+ break;
+ case 1:
+ done = 1;
+ grammarID = 4;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 192:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MagneticVector), END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ if (iso2MagneticVectorListType->MagneticVector.arrayLen < iso2MagneticVectorListType_MagneticVector_ARRAY_SIZE) {
+ errn = decode_iso2MagneticVectorType(stream, &iso2MagneticVectorListType->MagneticVector.array[iso2MagneticVectorListType->MagneticVector.arrayLen++]);
+ } else {
+ errn = EXI_ERROR_OUT_OF_BOUNDS;
+ }
+ grammarID = 193;
+ break;
+ case 1:
+ done = 1;
+ grammarID = 4;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 193:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MagneticVector), END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ if (iso2MagneticVectorListType->MagneticVector.arrayLen < iso2MagneticVectorListType_MagneticVector_ARRAY_SIZE) {
+ errn = decode_iso2MagneticVectorType(stream, &iso2MagneticVectorListType->MagneticVector.array[iso2MagneticVectorListType->MagneticVector.arrayLen++]);
+ } else {
+ errn = EXI_ERROR_OUT_OF_BOUNDS;
+ }
+ grammarID = 194;
+ break;
+ case 1:
+ done = 1;
+ grammarID = 4;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 194:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MagneticVector), END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ if (iso2MagneticVectorListType->MagneticVector.arrayLen < iso2MagneticVectorListType_MagneticVector_ARRAY_SIZE) {
+ errn = decode_iso2MagneticVectorType(stream, &iso2MagneticVectorListType->MagneticVector.array[iso2MagneticVectorListType->MagneticVector.arrayLen++]);
+ } else {
+ errn = EXI_ERROR_OUT_OF_BOUNDS;
+ }
+ grammarID = 195;
+ break;
+ case 1:
+ done = 1;
+ grammarID = 4;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 195:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MagneticVector), END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ if (iso2MagneticVectorListType->MagneticVector.arrayLen < iso2MagneticVectorListType_MagneticVector_ARRAY_SIZE) {
+ errn = decode_iso2MagneticVectorType(stream, &iso2MagneticVectorListType->MagneticVector.array[iso2MagneticVectorListType->MagneticVector.arrayLen++]);
+ } else {
+ errn = EXI_ERROR_OUT_OF_BOUNDS;
+ }
+ grammarID = 196;
+ break;
+ case 1:
+ done = 1;
+ grammarID = 4;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 196:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MagneticVector), END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ if (iso2MagneticVectorListType->MagneticVector.arrayLen < iso2MagneticVectorListType_MagneticVector_ARRAY_SIZE) {
+ errn = decode_iso2MagneticVectorType(stream, &iso2MagneticVectorListType->MagneticVector.array[iso2MagneticVectorListType->MagneticVector.arrayLen++]);
+ } else {
+ errn = EXI_ERROR_OUT_OF_BOUNDS;
+ }
+ grammarID = 197;
+ break;
+ case 1:
+ done = 1;
+ grammarID = 4;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 197:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MagneticVector), END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ if (iso2MagneticVectorListType->MagneticVector.arrayLen < iso2MagneticVectorListType_MagneticVector_ARRAY_SIZE) {
+ errn = decode_iso2MagneticVectorType(stream, &iso2MagneticVectorListType->MagneticVector.array[iso2MagneticVectorListType->MagneticVector.arrayLen++]);
+ } else {
+ errn = EXI_ERROR_OUT_OF_BOUNDS;
+ }
+ grammarID = 198;
+ break;
+ case 1:
+ done = 1;
+ grammarID = 4;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 198:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MagneticVector), END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ if (iso2MagneticVectorListType->MagneticVector.arrayLen < iso2MagneticVectorListType_MagneticVector_ARRAY_SIZE) {
+ errn = decode_iso2MagneticVectorType(stream, &iso2MagneticVectorListType->MagneticVector.array[iso2MagneticVectorListType->MagneticVector.arrayLen++]);
+ } else {
+ errn = EXI_ERROR_OUT_OF_BOUNDS;
+ }
+ grammarID = 199;
+ break;
+ case 1:
+ done = 1;
+ grammarID = 4;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 199:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MagneticVector), END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ if (iso2MagneticVectorListType->MagneticVector.arrayLen < iso2MagneticVectorListType_MagneticVector_ARRAY_SIZE) {
+ errn = decode_iso2MagneticVectorType(stream, &iso2MagneticVectorListType->MagneticVector.array[iso2MagneticVectorListType->MagneticVector.arrayLen++]);
+ } else {
+ errn = EXI_ERROR_OUT_OF_BOUNDS;
+ }
+ grammarID = 200;
+ break;
+ case 1:
+ done = 1;
+ grammarID = 4;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 200:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MagneticVector), END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ if (iso2MagneticVectorListType->MagneticVector.arrayLen < iso2MagneticVectorListType_MagneticVector_ARRAY_SIZE) {
+ errn = decode_iso2MagneticVectorType(stream, &iso2MagneticVectorListType->MagneticVector.array[iso2MagneticVectorListType->MagneticVector.arrayLen++]);
+ } else {
+ errn = EXI_ERROR_OUT_OF_BOUNDS;
+ }
+ grammarID = 201;
+ break;
+ case 1:
+ done = 1;
+ grammarID = 4;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 201:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MagneticVector), END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ if (iso2MagneticVectorListType->MagneticVector.arrayLen < iso2MagneticVectorListType_MagneticVector_ARRAY_SIZE) {
+ errn = decode_iso2MagneticVectorType(stream, &iso2MagneticVectorListType->MagneticVector.array[iso2MagneticVectorListType->MagneticVector.arrayLen++]);
+ } else {
+ errn = EXI_ERROR_OUT_OF_BOUNDS;
+ }
+ grammarID = 202;
+ break;
+ case 1:
+ done = 1;
+ grammarID = 4;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 202:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MagneticVector), END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ if (iso2MagneticVectorListType->MagneticVector.arrayLen < iso2MagneticVectorListType_MagneticVector_ARRAY_SIZE) {
+ errn = decode_iso2MagneticVectorType(stream, &iso2MagneticVectorListType->MagneticVector.array[iso2MagneticVectorListType->MagneticVector.arrayLen++]);
+ } else {
+ errn = EXI_ERROR_OUT_OF_BOUNDS;
+ }
+ grammarID = 203;
+ break;
+ case 1:
+ done = 1;
+ grammarID = 4;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 203:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MagneticVector), END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ if (iso2MagneticVectorListType->MagneticVector.arrayLen < iso2MagneticVectorListType_MagneticVector_ARRAY_SIZE) {
+ errn = decode_iso2MagneticVectorType(stream, &iso2MagneticVectorListType->MagneticVector.array[iso2MagneticVectorListType->MagneticVector.arrayLen++]);
+ } else {
+ errn = EXI_ERROR_OUT_OF_BOUNDS;
+ }
+ grammarID = 204;
+ break;
+ case 1:
+ done = 1;
+ grammarID = 4;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 204:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MagneticVector), END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ if (iso2MagneticVectorListType->MagneticVector.arrayLen < iso2MagneticVectorListType_MagneticVector_ARRAY_SIZE) {
+ errn = decode_iso2MagneticVectorType(stream, &iso2MagneticVectorListType->MagneticVector.array[iso2MagneticVectorListType->MagneticVector.arrayLen++]);
+ } else {
+ errn = EXI_ERROR_OUT_OF_BOUNDS;
+ }
+ grammarID = 205;
+ break;
+ case 1:
+ done = 1;
+ grammarID = 4;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 205:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MagneticVector), END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ if (iso2MagneticVectorListType->MagneticVector.arrayLen < iso2MagneticVectorListType_MagneticVector_ARRAY_SIZE) {
+ errn = decode_iso2MagneticVectorType(stream, &iso2MagneticVectorListType->MagneticVector.array[iso2MagneticVectorListType->MagneticVector.arrayLen++]);
+ } else {
+ errn = EXI_ERROR_OUT_OF_BOUNDS;
+ }
+ grammarID = 206;
+ break;
+ case 1:
+ done = 1;
+ grammarID = 4;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 206:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MagneticVector), END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ if (iso2MagneticVectorListType->MagneticVector.arrayLen < iso2MagneticVectorListType_MagneticVector_ARRAY_SIZE) {
+ errn = decode_iso2MagneticVectorType(stream, &iso2MagneticVectorListType->MagneticVector.array[iso2MagneticVectorListType->MagneticVector.arrayLen++]);
+ } else {
+ errn = EXI_ERROR_OUT_OF_BOUNDS;
+ }
+ grammarID = 207;
+ break;
+ case 1:
+ done = 1;
+ grammarID = 4;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 207:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MagneticVector), END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ if (iso2MagneticVectorListType->MagneticVector.arrayLen < iso2MagneticVectorListType_MagneticVector_ARRAY_SIZE) {
+ errn = decode_iso2MagneticVectorType(stream, &iso2MagneticVectorListType->MagneticVector.array[iso2MagneticVectorListType->MagneticVector.arrayLen++]);
+ } else {
+ errn = EXI_ERROR_OUT_OF_BOUNDS;
+ }
+ grammarID = 208;
+ break;
+ case 1:
+ done = 1;
+ grammarID = 4;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 208:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MagneticVector), END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ if (iso2MagneticVectorListType->MagneticVector.arrayLen < iso2MagneticVectorListType_MagneticVector_ARRAY_SIZE) {
+ errn = decode_iso2MagneticVectorType(stream, &iso2MagneticVectorListType->MagneticVector.array[iso2MagneticVectorListType->MagneticVector.arrayLen++]);
+ } else {
+ errn = EXI_ERROR_OUT_OF_BOUNDS;
+ }
+ grammarID = 209;
+ break;
+ case 1:
+ done = 1;
+ grammarID = 4;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 209:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MagneticVector), END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ if (iso2MagneticVectorListType->MagneticVector.arrayLen < iso2MagneticVectorListType_MagneticVector_ARRAY_SIZE) {
+ errn = decode_iso2MagneticVectorType(stream, &iso2MagneticVectorListType->MagneticVector.array[iso2MagneticVectorListType->MagneticVector.arrayLen++]);
+ } else {
+ errn = EXI_ERROR_OUT_OF_BOUNDS;
+ }
+ grammarID = 210;
+ break;
+ case 1:
+ done = 1;
+ grammarID = 4;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 210:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MagneticVector), END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ if (iso2MagneticVectorListType->MagneticVector.arrayLen < iso2MagneticVectorListType_MagneticVector_ARRAY_SIZE) {
+ errn = decode_iso2MagneticVectorType(stream, &iso2MagneticVectorListType->MagneticVector.array[iso2MagneticVectorListType->MagneticVector.arrayLen++]);
+ } else {
+ errn = EXI_ERROR_OUT_OF_BOUNDS;
+ }
+ grammarID = 211;
+ break;
+ case 1:
+ done = 1;
+ grammarID = 4;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 211:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MagneticVector), END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ if (iso2MagneticVectorListType->MagneticVector.arrayLen < iso2MagneticVectorListType_MagneticVector_ARRAY_SIZE) {
+ errn = decode_iso2MagneticVectorType(stream, &iso2MagneticVectorListType->MagneticVector.array[iso2MagneticVectorListType->MagneticVector.arrayLen++]);
+ } else {
+ errn = EXI_ERROR_OUT_OF_BOUNDS;
+ }
+ grammarID = 212;
+ break;
+ case 1:
+ done = 1;
+ grammarID = 4;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 212:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MagneticVector), END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ if (iso2MagneticVectorListType->MagneticVector.arrayLen < iso2MagneticVectorListType_MagneticVector_ARRAY_SIZE) {
+ errn = decode_iso2MagneticVectorType(stream, &iso2MagneticVectorListType->MagneticVector.array[iso2MagneticVectorListType->MagneticVector.arrayLen++]);
+ } else {
+ errn = EXI_ERROR_OUT_OF_BOUNDS;
+ }
+ grammarID = 213;
+ break;
+ case 1:
+ done = 1;
+ grammarID = 4;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 213:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MagneticVector), END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ if (iso2MagneticVectorListType->MagneticVector.arrayLen < iso2MagneticVectorListType_MagneticVector_ARRAY_SIZE) {
+ errn = decode_iso2MagneticVectorType(stream, &iso2MagneticVectorListType->MagneticVector.array[iso2MagneticVectorListType->MagneticVector.arrayLen++]);
+ } else {
+ errn = EXI_ERROR_OUT_OF_BOUNDS;
+ }
+ grammarID = 214;
+ break;
+ case 1:
+ done = 1;
+ grammarID = 4;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 214:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MagneticVector), END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ if (iso2MagneticVectorListType->MagneticVector.arrayLen < iso2MagneticVectorListType_MagneticVector_ARRAY_SIZE) {
+ errn = decode_iso2MagneticVectorType(stream, &iso2MagneticVectorListType->MagneticVector.array[iso2MagneticVectorListType->MagneticVector.arrayLen++]);
+ } else {
+ errn = EXI_ERROR_OUT_OF_BOUNDS;
+ }
+ grammarID = 215;
+ break;
+ case 1:
+ done = 1;
+ grammarID = 4;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 215:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MagneticVector), END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ if (iso2MagneticVectorListType->MagneticVector.arrayLen < iso2MagneticVectorListType_MagneticVector_ARRAY_SIZE) {
+ errn = decode_iso2MagneticVectorType(stream, &iso2MagneticVectorListType->MagneticVector.array[iso2MagneticVectorListType->MagneticVector.arrayLen++]);
+ } else {
+ errn = EXI_ERROR_OUT_OF_BOUNDS;
+ }
+ grammarID = 216;
+ break;
+ case 1:
+ done = 1;
+ grammarID = 4;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 216:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MagneticVector), END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ if (iso2MagneticVectorListType->MagneticVector.arrayLen < iso2MagneticVectorListType_MagneticVector_ARRAY_SIZE) {
+ errn = decode_iso2MagneticVectorType(stream, &iso2MagneticVectorListType->MagneticVector.array[iso2MagneticVectorListType->MagneticVector.arrayLen++]);
+ } else {
+ errn = EXI_ERROR_OUT_OF_BOUNDS;
+ }
+ grammarID = 217;
+ break;
+ case 1:
+ done = 1;
+ grammarID = 4;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 217:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MagneticVector), END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ if (iso2MagneticVectorListType->MagneticVector.arrayLen < iso2MagneticVectorListType_MagneticVector_ARRAY_SIZE) {
+ errn = decode_iso2MagneticVectorType(stream, &iso2MagneticVectorListType->MagneticVector.array[iso2MagneticVectorListType->MagneticVector.arrayLen++]);
+ } else {
+ errn = EXI_ERROR_OUT_OF_BOUNDS;
+ }
+ grammarID = 218;
+ break;
+ case 1:
+ done = 1;
+ grammarID = 4;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 218:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MagneticVector), END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ if (iso2MagneticVectorListType->MagneticVector.arrayLen < iso2MagneticVectorListType_MagneticVector_ARRAY_SIZE) {
+ errn = decode_iso2MagneticVectorType(stream, &iso2MagneticVectorListType->MagneticVector.array[iso2MagneticVectorListType->MagneticVector.arrayLen++]);
+ } else {
+ errn = EXI_ERROR_OUT_OF_BOUNDS;
+ }
+ grammarID = 219;
+ break;
+ case 1:
+ done = 1;
+ grammarID = 4;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 219:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MagneticVector), END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ if (iso2MagneticVectorListType->MagneticVector.arrayLen < iso2MagneticVectorListType_MagneticVector_ARRAY_SIZE) {
+ errn = decode_iso2MagneticVectorType(stream, &iso2MagneticVectorListType->MagneticVector.array[iso2MagneticVectorListType->MagneticVector.arrayLen++]);
+ } else {
+ errn = EXI_ERROR_OUT_OF_BOUNDS;
+ }
+ grammarID = 220;
+ break;
+ case 1:
+ done = 1;
+ grammarID = 4;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 220:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MagneticVector), END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ if (iso2MagneticVectorListType->MagneticVector.arrayLen < iso2MagneticVectorListType_MagneticVector_ARRAY_SIZE) {
+ errn = decode_iso2MagneticVectorType(stream, &iso2MagneticVectorListType->MagneticVector.array[iso2MagneticVectorListType->MagneticVector.arrayLen++]);
+ } else {
+ errn = EXI_ERROR_OUT_OF_BOUNDS;
+ }
+ grammarID = 221;
+ break;
+ case 1:
+ done = 1;
+ grammarID = 4;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 221:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MagneticVector), END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ if (iso2MagneticVectorListType->MagneticVector.arrayLen < iso2MagneticVectorListType_MagneticVector_ARRAY_SIZE) {
+ errn = decode_iso2MagneticVectorType(stream, &iso2MagneticVectorListType->MagneticVector.array[iso2MagneticVectorListType->MagneticVector.arrayLen++]);
+ } else {
+ errn = EXI_ERROR_OUT_OF_BOUNDS;
+ }
+ grammarID = 222;
+ break;
+ case 1:
+ done = 1;
+ grammarID = 4;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 222:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MagneticVector), END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ if (iso2MagneticVectorListType->MagneticVector.arrayLen < iso2MagneticVectorListType_MagneticVector_ARRAY_SIZE) {
+ errn = decode_iso2MagneticVectorType(stream, &iso2MagneticVectorListType->MagneticVector.array[iso2MagneticVectorListType->MagneticVector.arrayLen++]);
+ } else {
+ errn = EXI_ERROR_OUT_OF_BOUNDS;
+ }
+ grammarID = 223;
+ break;
+ case 1:
+ done = 1;
+ grammarID = 4;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 223:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MagneticVector), END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ if (iso2MagneticVectorListType->MagneticVector.arrayLen < iso2MagneticVectorListType_MagneticVector_ARRAY_SIZE) {
+ errn = decode_iso2MagneticVectorType(stream, &iso2MagneticVectorListType->MagneticVector.array[iso2MagneticVectorListType->MagneticVector.arrayLen++]);
+ } else {
+ errn = EXI_ERROR_OUT_OF_BOUNDS;
+ }
+ grammarID = 224;
+ break;
+ case 1:
+ done = 1;
+ grammarID = 4;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 224:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MagneticVector), END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ if (iso2MagneticVectorListType->MagneticVector.arrayLen < iso2MagneticVectorListType_MagneticVector_ARRAY_SIZE) {
+ errn = decode_iso2MagneticVectorType(stream, &iso2MagneticVectorListType->MagneticVector.array[iso2MagneticVectorListType->MagneticVector.arrayLen++]);
+ } else {
+ errn = EXI_ERROR_OUT_OF_BOUNDS;
+ }
+ grammarID = 225;
+ break;
+ case 1:
+ done = 1;
+ grammarID = 4;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 225:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MagneticVector), END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ if (iso2MagneticVectorListType->MagneticVector.arrayLen < iso2MagneticVectorListType_MagneticVector_ARRAY_SIZE) {
+ errn = decode_iso2MagneticVectorType(stream, &iso2MagneticVectorListType->MagneticVector.array[iso2MagneticVectorListType->MagneticVector.arrayLen++]);
+ } else {
+ errn = EXI_ERROR_OUT_OF_BOUNDS;
+ }
+ grammarID = 226;
+ break;
+ case 1:
+ done = 1;
+ grammarID = 4;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 226:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MagneticVector), END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ if (iso2MagneticVectorListType->MagneticVector.arrayLen < iso2MagneticVectorListType_MagneticVector_ARRAY_SIZE) {
+ errn = decode_iso2MagneticVectorType(stream, &iso2MagneticVectorListType->MagneticVector.array[iso2MagneticVectorListType->MagneticVector.arrayLen++]);
+ } else {
+ errn = EXI_ERROR_OUT_OF_BOUNDS;
+ }
+ grammarID = 227;
+ break;
+ case 1:
+ done = 1;
+ grammarID = 4;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 227:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MagneticVector), END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ if (iso2MagneticVectorListType->MagneticVector.arrayLen < iso2MagneticVectorListType_MagneticVector_ARRAY_SIZE) {
+ errn = decode_iso2MagneticVectorType(stream, &iso2MagneticVectorListType->MagneticVector.array[iso2MagneticVectorListType->MagneticVector.arrayLen++]);
+ } else {
+ errn = EXI_ERROR_OUT_OF_BOUNDS;
+ }
+ grammarID = 228;
+ break;
+ case 1:
+ done = 1;
+ grammarID = 4;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 228:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MagneticVector), END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ if (iso2MagneticVectorListType->MagneticVector.arrayLen < iso2MagneticVectorListType_MagneticVector_ARRAY_SIZE) {
+ errn = decode_iso2MagneticVectorType(stream, &iso2MagneticVectorListType->MagneticVector.array[iso2MagneticVectorListType->MagneticVector.arrayLen++]);
+ } else {
+ errn = EXI_ERROR_OUT_OF_BOUNDS;
+ }
+ grammarID = 229;
+ break;
+ case 1:
+ done = 1;
+ grammarID = 4;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 229:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MagneticVector), END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ if (iso2MagneticVectorListType->MagneticVector.arrayLen < iso2MagneticVectorListType_MagneticVector_ARRAY_SIZE) {
+ errn = decode_iso2MagneticVectorType(stream, &iso2MagneticVectorListType->MagneticVector.array[iso2MagneticVectorListType->MagneticVector.arrayLen++]);
+ } else {
+ errn = EXI_ERROR_OUT_OF_BOUNDS;
+ }
+ grammarID = 230;
+ break;
+ case 1:
+ done = 1;
+ grammarID = 4;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 230:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MagneticVector), END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ if (iso2MagneticVectorListType->MagneticVector.arrayLen < iso2MagneticVectorListType_MagneticVector_ARRAY_SIZE) {
+ errn = decode_iso2MagneticVectorType(stream, &iso2MagneticVectorListType->MagneticVector.array[iso2MagneticVectorListType->MagneticVector.arrayLen++]);
+ } else {
+ errn = EXI_ERROR_OUT_OF_BOUNDS;
+ }
+ grammarID = 231;
+ break;
+ case 1:
+ done = 1;
+ grammarID = 4;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 231:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MagneticVector), END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ if (iso2MagneticVectorListType->MagneticVector.arrayLen < iso2MagneticVectorListType_MagneticVector_ARRAY_SIZE) {
+ errn = decode_iso2MagneticVectorType(stream, &iso2MagneticVectorListType->MagneticVector.array[iso2MagneticVectorListType->MagneticVector.arrayLen++]);
+ } else {
+ errn = EXI_ERROR_OUT_OF_BOUNDS;
+ }
+ grammarID = 232;
+ break;
+ case 1:
+ done = 1;
+ grammarID = 4;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 232:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MagneticVector), END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ if (iso2MagneticVectorListType->MagneticVector.arrayLen < iso2MagneticVectorListType_MagneticVector_ARRAY_SIZE) {
+ errn = decode_iso2MagneticVectorType(stream, &iso2MagneticVectorListType->MagneticVector.array[iso2MagneticVectorListType->MagneticVector.arrayLen++]);
+ } else {
+ errn = EXI_ERROR_OUT_OF_BOUNDS;
+ }
+ grammarID = 233;
+ break;
+ case 1:
+ done = 1;
+ grammarID = 4;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 233:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MagneticVector), END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ if (iso2MagneticVectorListType->MagneticVector.arrayLen < iso2MagneticVectorListType_MagneticVector_ARRAY_SIZE) {
+ errn = decode_iso2MagneticVectorType(stream, &iso2MagneticVectorListType->MagneticVector.array[iso2MagneticVectorListType->MagneticVector.arrayLen++]);
+ } else {
+ errn = EXI_ERROR_OUT_OF_BOUNDS;
+ }
+ grammarID = 234;
+ break;
+ case 1:
+ done = 1;
+ grammarID = 4;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 234:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MagneticVector), END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ if (iso2MagneticVectorListType->MagneticVector.arrayLen < iso2MagneticVectorListType_MagneticVector_ARRAY_SIZE) {
+ errn = decode_iso2MagneticVectorType(stream, &iso2MagneticVectorListType->MagneticVector.array[iso2MagneticVectorListType->MagneticVector.arrayLen++]);
+ } else {
+ errn = EXI_ERROR_OUT_OF_BOUNDS;
+ }
+ grammarID = 235;
+ break;
+ case 1:
+ done = 1;
+ grammarID = 4;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 235:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MagneticVector), END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ if (iso2MagneticVectorListType->MagneticVector.arrayLen < iso2MagneticVectorListType_MagneticVector_ARRAY_SIZE) {
+ errn = decode_iso2MagneticVectorType(stream, &iso2MagneticVectorListType->MagneticVector.array[iso2MagneticVectorListType->MagneticVector.arrayLen++]);
+ } else {
+ errn = EXI_ERROR_OUT_OF_BOUNDS;
+ }
+ grammarID = 236;
+ break;
+ case 1:
+ done = 1;
+ grammarID = 4;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 236:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MagneticVector), END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ if (iso2MagneticVectorListType->MagneticVector.arrayLen < iso2MagneticVectorListType_MagneticVector_ARRAY_SIZE) {
+ errn = decode_iso2MagneticVectorType(stream, &iso2MagneticVectorListType->MagneticVector.array[iso2MagneticVectorListType->MagneticVector.arrayLen++]);
+ } else {
+ errn = EXI_ERROR_OUT_OF_BOUNDS;
+ }
+ grammarID = 237;
+ break;
+ case 1:
+ done = 1;
+ grammarID = 4;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 237:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MagneticVector), END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ if (iso2MagneticVectorListType->MagneticVector.arrayLen < iso2MagneticVectorListType_MagneticVector_ARRAY_SIZE) {
+ errn = decode_iso2MagneticVectorType(stream, &iso2MagneticVectorListType->MagneticVector.array[iso2MagneticVectorListType->MagneticVector.arrayLen++]);
+ } else {
+ errn = EXI_ERROR_OUT_OF_BOUNDS;
+ }
+ grammarID = 238;
+ break;
+ case 1:
+ done = 1;
+ grammarID = 4;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 238:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MagneticVector), END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ if (iso2MagneticVectorListType->MagneticVector.arrayLen < iso2MagneticVectorListType_MagneticVector_ARRAY_SIZE) {
+ errn = decode_iso2MagneticVectorType(stream, &iso2MagneticVectorListType->MagneticVector.array[iso2MagneticVectorListType->MagneticVector.arrayLen++]);
+ } else {
+ errn = EXI_ERROR_OUT_OF_BOUNDS;
+ }
+ grammarID = 239;
+ break;
+ case 1:
+ done = 1;
+ grammarID = 4;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 239:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MagneticVector), END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ if (iso2MagneticVectorListType->MagneticVector.arrayLen < iso2MagneticVectorListType_MagneticVector_ARRAY_SIZE) {
+ errn = decode_iso2MagneticVectorType(stream, &iso2MagneticVectorListType->MagneticVector.array[iso2MagneticVectorListType->MagneticVector.arrayLen++]);
+ } else {
+ errn = EXI_ERROR_OUT_OF_BOUNDS;
+ }
+ grammarID = 240;
+ break;
+ case 1:
+ done = 1;
+ grammarID = 4;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 240:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MagneticVector), END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ if (iso2MagneticVectorListType->MagneticVector.arrayLen < iso2MagneticVectorListType_MagneticVector_ARRAY_SIZE) {
+ errn = decode_iso2MagneticVectorType(stream, &iso2MagneticVectorListType->MagneticVector.array[iso2MagneticVectorListType->MagneticVector.arrayLen++]);
+ } else {
+ errn = EXI_ERROR_OUT_OF_BOUNDS;
+ }
+ grammarID = 241;
+ break;
+ case 1:
+ done = 1;
+ grammarID = 4;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 241:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MagneticVector), END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ if (iso2MagneticVectorListType->MagneticVector.arrayLen < iso2MagneticVectorListType_MagneticVector_ARRAY_SIZE) {
+ errn = decode_iso2MagneticVectorType(stream, &iso2MagneticVectorListType->MagneticVector.array[iso2MagneticVectorListType->MagneticVector.arrayLen++]);
+ } else {
+ errn = EXI_ERROR_OUT_OF_BOUNDS;
+ }
+ grammarID = 242;
+ break;
+ case 1:
+ done = 1;
+ grammarID = 4;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 242:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MagneticVector), END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ if (iso2MagneticVectorListType->MagneticVector.arrayLen < iso2MagneticVectorListType_MagneticVector_ARRAY_SIZE) {
+ errn = decode_iso2MagneticVectorType(stream, &iso2MagneticVectorListType->MagneticVector.array[iso2MagneticVectorListType->MagneticVector.arrayLen++]);
+ } else {
+ errn = EXI_ERROR_OUT_OF_BOUNDS;
+ }
+ grammarID = 243;
+ break;
+ case 1:
+ done = 1;
+ grammarID = 4;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 243:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MagneticVector), END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ if (iso2MagneticVectorListType->MagneticVector.arrayLen < iso2MagneticVectorListType_MagneticVector_ARRAY_SIZE) {
+ errn = decode_iso2MagneticVectorType(stream, &iso2MagneticVectorListType->MagneticVector.array[iso2MagneticVectorListType->MagneticVector.arrayLen++]);
+ } else {
+ errn = EXI_ERROR_OUT_OF_BOUNDS;
+ }
+ grammarID = 244;
+ break;
+ case 1:
+ done = 1;
+ grammarID = 4;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 244:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MagneticVector), END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ if (iso2MagneticVectorListType->MagneticVector.arrayLen < iso2MagneticVectorListType_MagneticVector_ARRAY_SIZE) {
+ errn = decode_iso2MagneticVectorType(stream, &iso2MagneticVectorListType->MagneticVector.array[iso2MagneticVectorListType->MagneticVector.arrayLen++]);
+ } else {
+ errn = EXI_ERROR_OUT_OF_BOUNDS;
+ }
+ grammarID = 245;
+ break;
+ case 1:
+ done = 1;
+ grammarID = 4;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 245:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MagneticVector), END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ if (iso2MagneticVectorListType->MagneticVector.arrayLen < iso2MagneticVectorListType_MagneticVector_ARRAY_SIZE) {
+ errn = decode_iso2MagneticVectorType(stream, &iso2MagneticVectorListType->MagneticVector.array[iso2MagneticVectorListType->MagneticVector.arrayLen++]);
+ } else {
+ errn = EXI_ERROR_OUT_OF_BOUNDS;
+ }
+ grammarID = 246;
+ break;
+ case 1:
+ done = 1;
+ grammarID = 4;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 246:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MagneticVector), END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ if (iso2MagneticVectorListType->MagneticVector.arrayLen < iso2MagneticVectorListType_MagneticVector_ARRAY_SIZE) {
+ errn = decode_iso2MagneticVectorType(stream, &iso2MagneticVectorListType->MagneticVector.array[iso2MagneticVectorListType->MagneticVector.arrayLen++]);
+ } else {
+ errn = EXI_ERROR_OUT_OF_BOUNDS;
+ }
+ grammarID = 247;
+ break;
+ case 1:
+ done = 1;
+ grammarID = 4;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 247:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MagneticVector), END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ if (iso2MagneticVectorListType->MagneticVector.arrayLen < iso2MagneticVectorListType_MagneticVector_ARRAY_SIZE) {
+ errn = decode_iso2MagneticVectorType(stream, &iso2MagneticVectorListType->MagneticVector.array[iso2MagneticVectorListType->MagneticVector.arrayLen++]);
+ } else {
+ errn = EXI_ERROR_OUT_OF_BOUNDS;
+ }
+ grammarID = 248;
+ break;
+ case 1:
+ done = 1;
+ grammarID = 4;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 248:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MagneticVector), END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ if (iso2MagneticVectorListType->MagneticVector.arrayLen < iso2MagneticVectorListType_MagneticVector_ARRAY_SIZE) {
+ errn = decode_iso2MagneticVectorType(stream, &iso2MagneticVectorListType->MagneticVector.array[iso2MagneticVectorListType->MagneticVector.arrayLen++]);
+ } else {
+ errn = EXI_ERROR_OUT_OF_BOUNDS;
+ }
+ grammarID = 249;
+ break;
+ case 1:
+ done = 1;
+ grammarID = 4;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 249:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MagneticVector), END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ if (iso2MagneticVectorListType->MagneticVector.arrayLen < iso2MagneticVectorListType_MagneticVector_ARRAY_SIZE) {
+ errn = decode_iso2MagneticVectorType(stream, &iso2MagneticVectorListType->MagneticVector.array[iso2MagneticVectorListType->MagneticVector.arrayLen++]);
+ } else {
+ errn = EXI_ERROR_OUT_OF_BOUNDS;
+ }
+ grammarID = 250;
+ break;
+ case 1:
+ done = 1;
+ grammarID = 4;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 250:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MagneticVector), END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ if (iso2MagneticVectorListType->MagneticVector.arrayLen < iso2MagneticVectorListType_MagneticVector_ARRAY_SIZE) {
+ errn = decode_iso2MagneticVectorType(stream, &iso2MagneticVectorListType->MagneticVector.array[iso2MagneticVectorListType->MagneticVector.arrayLen++]);
+ } else {
+ errn = EXI_ERROR_OUT_OF_BOUNDS;
+ }
+ grammarID = 251;
+ break;
+ case 1:
+ done = 1;
+ grammarID = 4;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 251:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MagneticVector), END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ if (iso2MagneticVectorListType->MagneticVector.arrayLen < iso2MagneticVectorListType_MagneticVector_ARRAY_SIZE) {
+ errn = decode_iso2MagneticVectorType(stream, &iso2MagneticVectorListType->MagneticVector.array[iso2MagneticVectorListType->MagneticVector.arrayLen++]);
+ } else {
+ errn = EXI_ERROR_OUT_OF_BOUNDS;
+ }
+ grammarID = 252;
+ break;
+ case 1:
+ done = 1;
+ grammarID = 4;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 252:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MagneticVector), END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ if (iso2MagneticVectorListType->MagneticVector.arrayLen < iso2MagneticVectorListType_MagneticVector_ARRAY_SIZE) {
+ errn = decode_iso2MagneticVectorType(stream, &iso2MagneticVectorListType->MagneticVector.array[iso2MagneticVectorListType->MagneticVector.arrayLen++]);
+ } else {
+ errn = EXI_ERROR_OUT_OF_BOUNDS;
+ }
+ grammarID = 253;
+ break;
+ case 1:
+ done = 1;
+ grammarID = 4;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 253:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MagneticVector), END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ if (iso2MagneticVectorListType->MagneticVector.arrayLen < iso2MagneticVectorListType_MagneticVector_ARRAY_SIZE) {
+ errn = decode_iso2MagneticVectorType(stream, &iso2MagneticVectorListType->MagneticVector.array[iso2MagneticVectorListType->MagneticVector.arrayLen++]);
+ } else {
+ errn = EXI_ERROR_OUT_OF_BOUNDS;
+ }
+ grammarID = 254;
+ break;
+ case 1:
+ done = 1;
+ grammarID = 4;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 254:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MagneticVector), END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ if (iso2MagneticVectorListType->MagneticVector.arrayLen < iso2MagneticVectorListType_MagneticVector_ARRAY_SIZE) {
+ errn = decode_iso2MagneticVectorType(stream, &iso2MagneticVectorListType->MagneticVector.array[iso2MagneticVectorListType->MagneticVector.arrayLen++]);
+ } else {
+ errn = EXI_ERROR_OUT_OF_BOUNDS;
+ }
+ grammarID = 255;
+ break;
+ case 1:
+ done = 1;
+ grammarID = 4;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 255:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MagneticVector), END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ if (iso2MagneticVectorListType->MagneticVector.arrayLen < iso2MagneticVectorListType_MagneticVector_ARRAY_SIZE) {
+ errn = decode_iso2MagneticVectorType(stream, &iso2MagneticVectorListType->MagneticVector.array[iso2MagneticVectorListType->MagneticVector.arrayLen++]);
+ } else {
+ errn = EXI_ERROR_OUT_OF_BOUNDS;
+ }
+ grammarID = 256;
+ break;
+ case 1:
+ done = 1;
+ grammarID = 4;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 256:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MagneticVector), END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ if (iso2MagneticVectorListType->MagneticVector.arrayLen < iso2MagneticVectorListType_MagneticVector_ARRAY_SIZE) {
+ errn = decode_iso2MagneticVectorType(stream, &iso2MagneticVectorListType->MagneticVector.array[iso2MagneticVectorListType->MagneticVector.arrayLen++]);
+ } else {
+ errn = EXI_ERROR_OUT_OF_BOUNDS;
+ }
+ grammarID = 257;
+ break;
+ case 1:
+ done = 1;
+ grammarID = 4;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 257:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MagneticVector), END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ if (iso2MagneticVectorListType->MagneticVector.arrayLen < iso2MagneticVectorListType_MagneticVector_ARRAY_SIZE) {
+ errn = decode_iso2MagneticVectorType(stream, &iso2MagneticVectorListType->MagneticVector.array[iso2MagneticVectorListType->MagneticVector.arrayLen++]);
+ } else {
+ errn = EXI_ERROR_OUT_OF_BOUNDS;
+ }
+ grammarID = 258;
+ break;
+ case 1:
+ done = 1;
+ grammarID = 4;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 258:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MagneticVector), END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ if (iso2MagneticVectorListType->MagneticVector.arrayLen < iso2MagneticVectorListType_MagneticVector_ARRAY_SIZE) {
+ errn = decode_iso2MagneticVectorType(stream, &iso2MagneticVectorListType->MagneticVector.array[iso2MagneticVectorListType->MagneticVector.arrayLen++]);
+ } else {
+ errn = EXI_ERROR_OUT_OF_BOUNDS;
+ }
+ grammarID = 259;
+ break;
+ case 1:
+ done = 1;
+ grammarID = 4;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 259:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MagneticVector), END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ if (iso2MagneticVectorListType->MagneticVector.arrayLen < iso2MagneticVectorListType_MagneticVector_ARRAY_SIZE) {
+ errn = decode_iso2MagneticVectorType(stream, &iso2MagneticVectorListType->MagneticVector.array[iso2MagneticVectorListType->MagneticVector.arrayLen++]);
+ } else {
+ errn = EXI_ERROR_OUT_OF_BOUNDS;
+ }
+ grammarID = 260;
+ break;
+ case 1:
+ done = 1;
+ grammarID = 4;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 260:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MagneticVector), END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ if (iso2MagneticVectorListType->MagneticVector.arrayLen < iso2MagneticVectorListType_MagneticVector_ARRAY_SIZE) {
+ errn = decode_iso2MagneticVectorType(stream, &iso2MagneticVectorListType->MagneticVector.array[iso2MagneticVectorListType->MagneticVector.arrayLen++]);
+ } else {
+ errn = EXI_ERROR_OUT_OF_BOUNDS;
+ }
+ grammarID = 261;
+ break;
+ case 1:
+ done = 1;
+ grammarID = 4;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 261:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MagneticVector), END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ if (iso2MagneticVectorListType->MagneticVector.arrayLen < iso2MagneticVectorListType_MagneticVector_ARRAY_SIZE) {
+ errn = decode_iso2MagneticVectorType(stream, &iso2MagneticVectorListType->MagneticVector.array[iso2MagneticVectorListType->MagneticVector.arrayLen++]);
+ } else {
+ errn = EXI_ERROR_OUT_OF_BOUNDS;
+ }
+ grammarID = 262;
+ break;
+ case 1:
+ done = 1;
+ grammarID = 4;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 262:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MagneticVector), END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ if (iso2MagneticVectorListType->MagneticVector.arrayLen < iso2MagneticVectorListType_MagneticVector_ARRAY_SIZE) {
+ errn = decode_iso2MagneticVectorType(stream, &iso2MagneticVectorListType->MagneticVector.array[iso2MagneticVectorListType->MagneticVector.arrayLen++]);
+ } else {
+ errn = EXI_ERROR_OUT_OF_BOUNDS;
+ }
+ grammarID = 263;
+ break;
+ case 1:
+ done = 1;
+ grammarID = 4;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 263:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MagneticVector), END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ if (iso2MagneticVectorListType->MagneticVector.arrayLen < iso2MagneticVectorListType_MagneticVector_ARRAY_SIZE) {
+ errn = decode_iso2MagneticVectorType(stream, &iso2MagneticVectorListType->MagneticVector.array[iso2MagneticVectorListType->MagneticVector.arrayLen++]);
+ } else {
+ errn = EXI_ERROR_OUT_OF_BOUNDS;
+ }
+ grammarID = 264;
+ break;
+ case 1:
+ done = 1;
+ grammarID = 4;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 264:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MagneticVector), END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ if (iso2MagneticVectorListType->MagneticVector.arrayLen < iso2MagneticVectorListType_MagneticVector_ARRAY_SIZE) {
+ errn = decode_iso2MagneticVectorType(stream, &iso2MagneticVectorListType->MagneticVector.array[iso2MagneticVectorListType->MagneticVector.arrayLen++]);
+ } else {
+ errn = EXI_ERROR_OUT_OF_BOUNDS;
+ }
+ grammarID = 265;
+ break;
+ case 1:
+ done = 1;
+ grammarID = 4;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 265:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MagneticVector), END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ if (iso2MagneticVectorListType->MagneticVector.arrayLen < iso2MagneticVectorListType_MagneticVector_ARRAY_SIZE) {
+ errn = decode_iso2MagneticVectorType(stream, &iso2MagneticVectorListType->MagneticVector.array[iso2MagneticVectorListType->MagneticVector.arrayLen++]);
+ } else {
+ errn = EXI_ERROR_OUT_OF_BOUNDS;
+ }
+ grammarID = 266;
+ break;
+ case 1:
+ done = 1;
+ grammarID = 4;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 266:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MagneticVector), END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ if (iso2MagneticVectorListType->MagneticVector.arrayLen < iso2MagneticVectorListType_MagneticVector_ARRAY_SIZE) {
+ errn = decode_iso2MagneticVectorType(stream, &iso2MagneticVectorListType->MagneticVector.array[iso2MagneticVectorListType->MagneticVector.arrayLen++]);
+ } else {
+ errn = EXI_ERROR_OUT_OF_BOUNDS;
+ }
+ grammarID = 267;
+ break;
+ case 1:
+ done = 1;
+ grammarID = 4;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 267:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MagneticVector), END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ if (iso2MagneticVectorListType->MagneticVector.arrayLen < iso2MagneticVectorListType_MagneticVector_ARRAY_SIZE) {
+ errn = decode_iso2MagneticVectorType(stream, &iso2MagneticVectorListType->MagneticVector.array[iso2MagneticVectorListType->MagneticVector.arrayLen++]);
+ } else {
+ errn = EXI_ERROR_OUT_OF_BOUNDS;
+ }
+ grammarID = 268;
+ break;
+ case 1:
+ done = 1;
+ grammarID = 4;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 268:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MagneticVector), END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ if (iso2MagneticVectorListType->MagneticVector.arrayLen < iso2MagneticVectorListType_MagneticVector_ARRAY_SIZE) {
+ errn = decode_iso2MagneticVectorType(stream, &iso2MagneticVectorListType->MagneticVector.array[iso2MagneticVectorListType->MagneticVector.arrayLen++]);
+ } else {
+ errn = EXI_ERROR_OUT_OF_BOUNDS;
+ }
+ grammarID = 269;
+ break;
+ case 1:
+ done = 1;
+ grammarID = 4;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 269:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MagneticVector), END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ if (iso2MagneticVectorListType->MagneticVector.arrayLen < iso2MagneticVectorListType_MagneticVector_ARRAY_SIZE) {
+ errn = decode_iso2MagneticVectorType(stream, &iso2MagneticVectorListType->MagneticVector.array[iso2MagneticVectorListType->MagneticVector.arrayLen++]);
+ } else {
+ errn = EXI_ERROR_OUT_OF_BOUNDS;
+ }
+ grammarID = 270;
+ break;
+ case 1:
+ done = 1;
+ grammarID = 4;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 270:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MagneticVector), END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ if (iso2MagneticVectorListType->MagneticVector.arrayLen < iso2MagneticVectorListType_MagneticVector_ARRAY_SIZE) {
+ errn = decode_iso2MagneticVectorType(stream, &iso2MagneticVectorListType->MagneticVector.array[iso2MagneticVectorListType->MagneticVector.arrayLen++]);
+ } else {
+ errn = EXI_ERROR_OUT_OF_BOUNDS;
+ }
+ grammarID = 271;
+ break;
+ case 1:
+ done = 1;
+ grammarID = 4;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 271:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MagneticVector), END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ if (iso2MagneticVectorListType->MagneticVector.arrayLen < iso2MagneticVectorListType_MagneticVector_ARRAY_SIZE) {
+ errn = decode_iso2MagneticVectorType(stream, &iso2MagneticVectorListType->MagneticVector.array[iso2MagneticVectorListType->MagneticVector.arrayLen++]);
+ } else {
+ errn = EXI_ERROR_OUT_OF_BOUNDS;
+ }
+ grammarID = 272;
+ break;
+ case 1:
+ done = 1;
+ grammarID = 4;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 272:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MagneticVector), END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ if (iso2MagneticVectorListType->MagneticVector.arrayLen < iso2MagneticVectorListType_MagneticVector_ARRAY_SIZE) {
+ errn = decode_iso2MagneticVectorType(stream, &iso2MagneticVectorListType->MagneticVector.array[iso2MagneticVectorListType->MagneticVector.arrayLen++]);
+ } else {
+ errn = EXI_ERROR_OUT_OF_BOUNDS;
+ }
+ grammarID = 273;
+ break;
+ case 1:
+ done = 1;
+ grammarID = 4;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 273:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MagneticVector), END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ if (iso2MagneticVectorListType->MagneticVector.arrayLen < iso2MagneticVectorListType_MagneticVector_ARRAY_SIZE) {
+ errn = decode_iso2MagneticVectorType(stream, &iso2MagneticVectorListType->MagneticVector.array[iso2MagneticVectorListType->MagneticVector.arrayLen++]);
+ } else {
+ errn = EXI_ERROR_OUT_OF_BOUNDS;
+ }
+ grammarID = 274;
+ break;
+ case 1:
+ done = 1;
+ grammarID = 4;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 274:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MagneticVector), END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ if (iso2MagneticVectorListType->MagneticVector.arrayLen < iso2MagneticVectorListType_MagneticVector_ARRAY_SIZE) {
+ errn = decode_iso2MagneticVectorType(stream, &iso2MagneticVectorListType->MagneticVector.array[iso2MagneticVectorListType->MagneticVector.arrayLen++]);
+ } else {
+ errn = EXI_ERROR_OUT_OF_BOUNDS;
+ }
+ grammarID = 275;
+ break;
+ case 1:
+ done = 1;
+ grammarID = 4;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 275:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MagneticVector), END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ if (iso2MagneticVectorListType->MagneticVector.arrayLen < iso2MagneticVectorListType_MagneticVector_ARRAY_SIZE) {
+ errn = decode_iso2MagneticVectorType(stream, &iso2MagneticVectorListType->MagneticVector.array[iso2MagneticVectorListType->MagneticVector.arrayLen++]);
+ } else {
+ errn = EXI_ERROR_OUT_OF_BOUNDS;
+ }
+ grammarID = 276;
+ break;
+ case 1:
+ done = 1;
+ grammarID = 4;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 276:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MagneticVector), END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ if (iso2MagneticVectorListType->MagneticVector.arrayLen < iso2MagneticVectorListType_MagneticVector_ARRAY_SIZE) {
+ errn = decode_iso2MagneticVectorType(stream, &iso2MagneticVectorListType->MagneticVector.array[iso2MagneticVectorListType->MagneticVector.arrayLen++]);
+ } else {
+ errn = EXI_ERROR_OUT_OF_BOUNDS;
+ }
+ grammarID = 277;
+ break;
+ case 1:
+ done = 1;
+ grammarID = 4;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 277:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MagneticVector), END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ if (iso2MagneticVectorListType->MagneticVector.arrayLen < iso2MagneticVectorListType_MagneticVector_ARRAY_SIZE) {
+ errn = decode_iso2MagneticVectorType(stream, &iso2MagneticVectorListType->MagneticVector.array[iso2MagneticVectorListType->MagneticVector.arrayLen++]);
+ } else {
+ errn = EXI_ERROR_OUT_OF_BOUNDS;
+ }
+ grammarID = 278;
+ break;
+ case 1:
+ done = 1;
+ grammarID = 4;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 278:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MagneticVector), END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ if (iso2MagneticVectorListType->MagneticVector.arrayLen < iso2MagneticVectorListType_MagneticVector_ARRAY_SIZE) {
+ errn = decode_iso2MagneticVectorType(stream, &iso2MagneticVectorListType->MagneticVector.array[iso2MagneticVectorListType->MagneticVector.arrayLen++]);
+ } else {
+ errn = EXI_ERROR_OUT_OF_BOUNDS;
+ }
+ grammarID = 279;
+ break;
+ case 1:
+ done = 1;
+ grammarID = 4;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 279:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MagneticVector), END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ if (iso2MagneticVectorListType->MagneticVector.arrayLen < iso2MagneticVectorListType_MagneticVector_ARRAY_SIZE) {
+ errn = decode_iso2MagneticVectorType(stream, &iso2MagneticVectorListType->MagneticVector.array[iso2MagneticVectorListType->MagneticVector.arrayLen++]);
+ } else {
+ errn = EXI_ERROR_OUT_OF_BOUNDS;
+ }
+ grammarID = 280;
+ break;
+ case 1:
+ done = 1;
+ grammarID = 4;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 280:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MagneticVector), END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ if (iso2MagneticVectorListType->MagneticVector.arrayLen < iso2MagneticVectorListType_MagneticVector_ARRAY_SIZE) {
+ errn = decode_iso2MagneticVectorType(stream, &iso2MagneticVectorListType->MagneticVector.array[iso2MagneticVectorListType->MagneticVector.arrayLen++]);
+ } else {
+ errn = EXI_ERROR_OUT_OF_BOUNDS;
+ }
+ grammarID = 281;
+ break;
+ case 1:
+ done = 1;
+ grammarID = 4;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 281:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MagneticVector), END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ if (iso2MagneticVectorListType->MagneticVector.arrayLen < iso2MagneticVectorListType_MagneticVector_ARRAY_SIZE) {
+ errn = decode_iso2MagneticVectorType(stream, &iso2MagneticVectorListType->MagneticVector.array[iso2MagneticVectorListType->MagneticVector.arrayLen++]);
+ } else {
+ errn = EXI_ERROR_OUT_OF_BOUNDS;
+ }
+ grammarID = 282;
+ break;
+ case 1:
+ done = 1;
+ grammarID = 4;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 282:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MagneticVector), END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ if (iso2MagneticVectorListType->MagneticVector.arrayLen < iso2MagneticVectorListType_MagneticVector_ARRAY_SIZE) {
+ errn = decode_iso2MagneticVectorType(stream, &iso2MagneticVectorListType->MagneticVector.array[iso2MagneticVectorListType->MagneticVector.arrayLen++]);
+ } else {
+ errn = EXI_ERROR_OUT_OF_BOUNDS;
+ }
+ grammarID = 283;
+ break;
+ case 1:
+ done = 1;
+ grammarID = 4;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 283:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MagneticVector), END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ if (iso2MagneticVectorListType->MagneticVector.arrayLen < iso2MagneticVectorListType_MagneticVector_ARRAY_SIZE) {
+ errn = decode_iso2MagneticVectorType(stream, &iso2MagneticVectorListType->MagneticVector.array[iso2MagneticVectorListType->MagneticVector.arrayLen++]);
+ } else {
+ errn = EXI_ERROR_OUT_OF_BOUNDS;
+ }
+ grammarID = 284;
+ break;
+ case 1:
+ done = 1;
+ grammarID = 4;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 284:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MagneticVector), END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ if (iso2MagneticVectorListType->MagneticVector.arrayLen < iso2MagneticVectorListType_MagneticVector_ARRAY_SIZE) {
+ errn = decode_iso2MagneticVectorType(stream, &iso2MagneticVectorListType->MagneticVector.array[iso2MagneticVectorListType->MagneticVector.arrayLen++]);
+ } else {
+ errn = EXI_ERROR_OUT_OF_BOUNDS;
+ }
+ grammarID = 285;
+ break;
+ case 1:
+ done = 1;
+ grammarID = 4;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 285:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MagneticVector), END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ if (iso2MagneticVectorListType->MagneticVector.arrayLen < iso2MagneticVectorListType_MagneticVector_ARRAY_SIZE) {
+ errn = decode_iso2MagneticVectorType(stream, &iso2MagneticVectorListType->MagneticVector.array[iso2MagneticVectorListType->MagneticVector.arrayLen++]);
+ } else {
+ errn = EXI_ERROR_OUT_OF_BOUNDS;
+ }
+ grammarID = 286;
+ break;
+ case 1:
+ done = 1;
+ grammarID = 4;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 286:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MagneticVector), END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ if (iso2MagneticVectorListType->MagneticVector.arrayLen < iso2MagneticVectorListType_MagneticVector_ARRAY_SIZE) {
+ errn = decode_iso2MagneticVectorType(stream, &iso2MagneticVectorListType->MagneticVector.array[iso2MagneticVectorListType->MagneticVector.arrayLen++]);
+ } else {
+ errn = EXI_ERROR_OUT_OF_BOUNDS;
+ }
+ grammarID = 287;
+ break;
+ case 1:
+ done = 1;
+ grammarID = 4;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 287:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MagneticVector), END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ if (iso2MagneticVectorListType->MagneticVector.arrayLen < iso2MagneticVectorListType_MagneticVector_ARRAY_SIZE) {
+ errn = decode_iso2MagneticVectorType(stream, &iso2MagneticVectorListType->MagneticVector.array[iso2MagneticVectorListType->MagneticVector.arrayLen++]);
+ } else {
+ errn = EXI_ERROR_OUT_OF_BOUNDS;
+ }
+ grammarID = 288;
+ break;
+ case 1:
+ done = 1;
+ grammarID = 4;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 288:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MagneticVector), END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ if (iso2MagneticVectorListType->MagneticVector.arrayLen < iso2MagneticVectorListType_MagneticVector_ARRAY_SIZE) {
+ errn = decode_iso2MagneticVectorType(stream, &iso2MagneticVectorListType->MagneticVector.array[iso2MagneticVectorListType->MagneticVector.arrayLen++]);
+ } else {
+ errn = EXI_ERROR_OUT_OF_BOUNDS;
+ }
+ grammarID = 289;
+ break;
+ case 1:
+ done = 1;
+ grammarID = 4;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 289:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MagneticVector), END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ if (iso2MagneticVectorListType->MagneticVector.arrayLen < iso2MagneticVectorListType_MagneticVector_ARRAY_SIZE) {
+ errn = decode_iso2MagneticVectorType(stream, &iso2MagneticVectorListType->MagneticVector.array[iso2MagneticVectorListType->MagneticVector.arrayLen++]);
+ } else {
+ errn = EXI_ERROR_OUT_OF_BOUNDS;
+ }
+ grammarID = 290;
+ break;
+ case 1:
+ done = 1;
+ grammarID = 4;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 290:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MagneticVector), END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ if (iso2MagneticVectorListType->MagneticVector.arrayLen < iso2MagneticVectorListType_MagneticVector_ARRAY_SIZE) {
+ errn = decode_iso2MagneticVectorType(stream, &iso2MagneticVectorListType->MagneticVector.array[iso2MagneticVectorListType->MagneticVector.arrayLen++]);
+ } else {
+ errn = EXI_ERROR_OUT_OF_BOUNDS;
+ }
+ grammarID = 291;
+ break;
+ case 1:
+ done = 1;
+ grammarID = 4;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 291:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MagneticVector), END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ if (iso2MagneticVectorListType->MagneticVector.arrayLen < iso2MagneticVectorListType_MagneticVector_ARRAY_SIZE) {
+ errn = decode_iso2MagneticVectorType(stream, &iso2MagneticVectorListType->MagneticVector.array[iso2MagneticVectorListType->MagneticVector.arrayLen++]);
+ } else {
+ errn = EXI_ERROR_OUT_OF_BOUNDS;
+ }
+ grammarID = 292;
+ break;
+ case 1:
+ done = 1;
+ grammarID = 4;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 292:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MagneticVector), END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ if (iso2MagneticVectorListType->MagneticVector.arrayLen < iso2MagneticVectorListType_MagneticVector_ARRAY_SIZE) {
+ errn = decode_iso2MagneticVectorType(stream, &iso2MagneticVectorListType->MagneticVector.array[iso2MagneticVectorListType->MagneticVector.arrayLen++]);
+ } else {
+ errn = EXI_ERROR_OUT_OF_BOUNDS;
+ }
+ grammarID = 293;
+ break;
+ case 1:
+ done = 1;
+ grammarID = 4;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 293:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MagneticVector), END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ if (iso2MagneticVectorListType->MagneticVector.arrayLen < iso2MagneticVectorListType_MagneticVector_ARRAY_SIZE) {
+ errn = decode_iso2MagneticVectorType(stream, &iso2MagneticVectorListType->MagneticVector.array[iso2MagneticVectorListType->MagneticVector.arrayLen++]);
+ } else {
+ errn = EXI_ERROR_OUT_OF_BOUNDS;
+ }
+ grammarID = 294;
+ break;
+ case 1:
+ done = 1;
+ grammarID = 4;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 294:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MagneticVector), END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ if (iso2MagneticVectorListType->MagneticVector.arrayLen < iso2MagneticVectorListType_MagneticVector_ARRAY_SIZE) {
+ errn = decode_iso2MagneticVectorType(stream, &iso2MagneticVectorListType->MagneticVector.array[iso2MagneticVectorListType->MagneticVector.arrayLen++]);
+ } else {
+ errn = EXI_ERROR_OUT_OF_BOUNDS;
+ }
+ grammarID = 295;
+ break;
+ case 1:
+ done = 1;
+ grammarID = 4;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 295:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MagneticVector), END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ if (iso2MagneticVectorListType->MagneticVector.arrayLen < iso2MagneticVectorListType_MagneticVector_ARRAY_SIZE) {
+ errn = decode_iso2MagneticVectorType(stream, &iso2MagneticVectorListType->MagneticVector.array[iso2MagneticVectorListType->MagneticVector.arrayLen++]);
+ } else {
+ errn = EXI_ERROR_OUT_OF_BOUNDS;
+ }
+ grammarID = 296;
+ break;
+ case 1:
+ done = 1;
+ grammarID = 4;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 296:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MagneticVector), END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ if (iso2MagneticVectorListType->MagneticVector.arrayLen < iso2MagneticVectorListType_MagneticVector_ARRAY_SIZE) {
+ errn = decode_iso2MagneticVectorType(stream, &iso2MagneticVectorListType->MagneticVector.array[iso2MagneticVectorListType->MagneticVector.arrayLen++]);
+ } else {
+ errn = EXI_ERROR_OUT_OF_BOUNDS;
+ }
+ grammarID = 297;
+ break;
+ case 1:
+ done = 1;
+ grammarID = 4;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 297:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MagneticVector), END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ if (iso2MagneticVectorListType->MagneticVector.arrayLen < iso2MagneticVectorListType_MagneticVector_ARRAY_SIZE) {
+ errn = decode_iso2MagneticVectorType(stream, &iso2MagneticVectorListType->MagneticVector.array[iso2MagneticVectorListType->MagneticVector.arrayLen++]);
+ } else {
+ errn = EXI_ERROR_OUT_OF_BOUNDS;
+ }
+ grammarID = 298;
+ break;
+ case 1:
+ done = 1;
+ grammarID = 4;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 298:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MagneticVector), END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ if (iso2MagneticVectorListType->MagneticVector.arrayLen < iso2MagneticVectorListType_MagneticVector_ARRAY_SIZE) {
+ errn = decode_iso2MagneticVectorType(stream, &iso2MagneticVectorListType->MagneticVector.array[iso2MagneticVectorListType->MagneticVector.arrayLen++]);
+ } else {
+ errn = EXI_ERROR_OUT_OF_BOUNDS;
+ }
+ grammarID = 299;
+ break;
+ case 1:
+ done = 1;
+ grammarID = 4;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 299:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MagneticVector), END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ if (iso2MagneticVectorListType->MagneticVector.arrayLen < iso2MagneticVectorListType_MagneticVector_ARRAY_SIZE) {
+ errn = decode_iso2MagneticVectorType(stream, &iso2MagneticVectorListType->MagneticVector.array[iso2MagneticVectorListType->MagneticVector.arrayLen++]);
+ } else {
+ errn = EXI_ERROR_OUT_OF_BOUNDS;
+ }
+ grammarID = 300;
+ break;
+ case 1:
+ done = 1;
+ grammarID = 4;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 300:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MagneticVector), END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ if (iso2MagneticVectorListType->MagneticVector.arrayLen < iso2MagneticVectorListType_MagneticVector_ARRAY_SIZE) {
+ errn = decode_iso2MagneticVectorType(stream, &iso2MagneticVectorListType->MagneticVector.array[iso2MagneticVectorListType->MagneticVector.arrayLen++]);
+ } else {
+ errn = EXI_ERROR_OUT_OF_BOUNDS;
+ }
+ grammarID = 301;
+ break;
+ case 1:
+ done = 1;
+ grammarID = 4;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 301:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MagneticVector), END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ if (iso2MagneticVectorListType->MagneticVector.arrayLen < iso2MagneticVectorListType_MagneticVector_ARRAY_SIZE) {
+ errn = decode_iso2MagneticVectorType(stream, &iso2MagneticVectorListType->MagneticVector.array[iso2MagneticVectorListType->MagneticVector.arrayLen++]);
+ } else {
+ errn = EXI_ERROR_OUT_OF_BOUNDS;
+ }
+ grammarID = 302;
+ break;
+ case 1:
+ done = 1;
+ grammarID = 4;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 302:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MagneticVector), END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ if (iso2MagneticVectorListType->MagneticVector.arrayLen < iso2MagneticVectorListType_MagneticVector_ARRAY_SIZE) {
+ errn = decode_iso2MagneticVectorType(stream, &iso2MagneticVectorListType->MagneticVector.array[iso2MagneticVectorListType->MagneticVector.arrayLen++]);
+ } else {
+ errn = EXI_ERROR_OUT_OF_BOUNDS;
+ }
+ grammarID = 303;
+ break;
+ case 1:
+ done = 1;
+ grammarID = 4;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 303:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MagneticVector), END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ if (iso2MagneticVectorListType->MagneticVector.arrayLen < iso2MagneticVectorListType_MagneticVector_ARRAY_SIZE) {
+ errn = decode_iso2MagneticVectorType(stream, &iso2MagneticVectorListType->MagneticVector.array[iso2MagneticVectorListType->MagneticVector.arrayLen++]);
+ } else {
+ errn = EXI_ERROR_OUT_OF_BOUNDS;
+ }
+ grammarID = 304;
+ break;
+ case 1:
+ done = 1;
+ grammarID = 4;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 304:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MagneticVector), END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ if (iso2MagneticVectorListType->MagneticVector.arrayLen < iso2MagneticVectorListType_MagneticVector_ARRAY_SIZE) {
+ errn = decode_iso2MagneticVectorType(stream, &iso2MagneticVectorListType->MagneticVector.array[iso2MagneticVectorListType->MagneticVector.arrayLen++]);
+ } else {
+ errn = EXI_ERROR_OUT_OF_BOUNDS;
+ }
+ grammarID = 305;
+ break;
+ case 1:
+ done = 1;
+ grammarID = 4;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 305:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MagneticVector), END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ if (iso2MagneticVectorListType->MagneticVector.arrayLen < iso2MagneticVectorListType_MagneticVector_ARRAY_SIZE) {
+ errn = decode_iso2MagneticVectorType(stream, &iso2MagneticVectorListType->MagneticVector.array[iso2MagneticVectorListType->MagneticVector.arrayLen++]);
+ } else {
+ errn = EXI_ERROR_OUT_OF_BOUNDS;
+ }
+ grammarID = 306;
+ break;
+ case 1:
+ done = 1;
+ grammarID = 4;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 306:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MagneticVector), END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ if (iso2MagneticVectorListType->MagneticVector.arrayLen < iso2MagneticVectorListType_MagneticVector_ARRAY_SIZE) {
+ errn = decode_iso2MagneticVectorType(stream, &iso2MagneticVectorListType->MagneticVector.array[iso2MagneticVectorListType->MagneticVector.arrayLen++]);
+ } else {
+ errn = EXI_ERROR_OUT_OF_BOUNDS;
+ }
+ grammarID = 307;
+ break;
+ case 1:
+ done = 1;
+ grammarID = 4;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 307:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MagneticVector), END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ if (iso2MagneticVectorListType->MagneticVector.arrayLen < iso2MagneticVectorListType_MagneticVector_ARRAY_SIZE) {
+ errn = decode_iso2MagneticVectorType(stream, &iso2MagneticVectorListType->MagneticVector.array[iso2MagneticVectorListType->MagneticVector.arrayLen++]);
+ } else {
+ errn = EXI_ERROR_OUT_OF_BOUNDS;
+ }
+ grammarID = 308;
+ break;
+ case 1:
+ done = 1;
+ grammarID = 4;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 308:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MagneticVector), END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ if (iso2MagneticVectorListType->MagneticVector.arrayLen < iso2MagneticVectorListType_MagneticVector_ARRAY_SIZE) {
+ errn = decode_iso2MagneticVectorType(stream, &iso2MagneticVectorListType->MagneticVector.array[iso2MagneticVectorListType->MagneticVector.arrayLen++]);
+ } else {
+ errn = EXI_ERROR_OUT_OF_BOUNDS;
+ }
+ grammarID = 309;
+ break;
+ case 1:
+ done = 1;
+ grammarID = 4;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 309:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MagneticVector), END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ if (iso2MagneticVectorListType->MagneticVector.arrayLen < iso2MagneticVectorListType_MagneticVector_ARRAY_SIZE) {
+ errn = decode_iso2MagneticVectorType(stream, &iso2MagneticVectorListType->MagneticVector.array[iso2MagneticVectorListType->MagneticVector.arrayLen++]);
+ } else {
+ errn = EXI_ERROR_OUT_OF_BOUNDS;
+ }
+ grammarID = 310;
+ break;
+ case 1:
+ done = 1;
+ grammarID = 4;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 310:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MagneticVector), END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ if (iso2MagneticVectorListType->MagneticVector.arrayLen < iso2MagneticVectorListType_MagneticVector_ARRAY_SIZE) {
+ errn = decode_iso2MagneticVectorType(stream, &iso2MagneticVectorListType->MagneticVector.array[iso2MagneticVectorListType->MagneticVector.arrayLen++]);
+ } else {
+ errn = EXI_ERROR_OUT_OF_BOUNDS;
+ }
+ grammarID = 311;
+ break;
+ case 1:
+ done = 1;
+ grammarID = 4;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 311:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MagneticVector), END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ if (iso2MagneticVectorListType->MagneticVector.arrayLen < iso2MagneticVectorListType_MagneticVector_ARRAY_SIZE) {
+ errn = decode_iso2MagneticVectorType(stream, &iso2MagneticVectorListType->MagneticVector.array[iso2MagneticVectorListType->MagneticVector.arrayLen++]);
+ } else {
+ errn = EXI_ERROR_OUT_OF_BOUNDS;
+ }
+ grammarID = 312;
+ break;
+ case 1:
+ done = 1;
+ grammarID = 4;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 312:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MagneticVector), END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ if (iso2MagneticVectorListType->MagneticVector.arrayLen < iso2MagneticVectorListType_MagneticVector_ARRAY_SIZE) {
+ errn = decode_iso2MagneticVectorType(stream, &iso2MagneticVectorListType->MagneticVector.array[iso2MagneticVectorListType->MagneticVector.arrayLen++]);
+ } else {
+ errn = EXI_ERROR_OUT_OF_BOUNDS;
+ }
+ grammarID = 313;
+ break;
+ case 1:
+ done = 1;
+ grammarID = 4;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 313:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MagneticVector), END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ if (iso2MagneticVectorListType->MagneticVector.arrayLen < iso2MagneticVectorListType_MagneticVector_ARRAY_SIZE) {
+ errn = decode_iso2MagneticVectorType(stream, &iso2MagneticVectorListType->MagneticVector.array[iso2MagneticVectorListType->MagneticVector.arrayLen++]);
+ } else {
+ errn = EXI_ERROR_OUT_OF_BOUNDS;
+ }
+ grammarID = 314;
+ break;
+ case 1:
+ done = 1;
+ grammarID = 4;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 314:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MagneticVector), END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ if (iso2MagneticVectorListType->MagneticVector.arrayLen < iso2MagneticVectorListType_MagneticVector_ARRAY_SIZE) {
+ errn = decode_iso2MagneticVectorType(stream, &iso2MagneticVectorListType->MagneticVector.array[iso2MagneticVectorListType->MagneticVector.arrayLen++]);
+ } else {
+ errn = EXI_ERROR_OUT_OF_BOUNDS;
+ }
+ grammarID = 315;
+ break;
+ case 1:
+ done = 1;
+ grammarID = 4;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 315:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MagneticVector), END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ if (iso2MagneticVectorListType->MagneticVector.arrayLen < iso2MagneticVectorListType_MagneticVector_ARRAY_SIZE) {
+ errn = decode_iso2MagneticVectorType(stream, &iso2MagneticVectorListType->MagneticVector.array[iso2MagneticVectorListType->MagneticVector.arrayLen++]);
+ } else {
+ errn = EXI_ERROR_OUT_OF_BOUNDS;
+ }
+ grammarID = 316;
+ break;
+ case 1:
+ done = 1;
+ grammarID = 4;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 316:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MagneticVector), END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ if (iso2MagneticVectorListType->MagneticVector.arrayLen < iso2MagneticVectorListType_MagneticVector_ARRAY_SIZE) {
+ errn = decode_iso2MagneticVectorType(stream, &iso2MagneticVectorListType->MagneticVector.array[iso2MagneticVectorListType->MagneticVector.arrayLen++]);
+ } else {
+ errn = EXI_ERROR_OUT_OF_BOUNDS;
+ }
+ grammarID = 3;
+ break;
+ case 1:
+ done = 1;
+ grammarID = 4;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 3:
+ /* Element[END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ done = 1;
+ grammarID = 4;
+ 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:2016:MsgBody,CableCheckResType', base type name='V2GResponseType', content type='ELEMENT', isAbstract='false', hasTypeId='false', final='0', block='0', particle='(("urn:iso:15118:2:2016:MsgBody":ResponseCode,"urn:iso:15118:2:2016:MsgBody":EVSEStatus{0-1}),("urn:iso:15118:2:2016:MsgBody":EVSEProcessing))', derivedBy='EXTENSION'. */
+static int decode_iso2CableCheckResType(bitstream_t* stream, struct iso2CableCheckResType* iso2CableCheckResType) {
+ int grammarID = 5;
+ int done = 0;
+
+ init_iso2CableCheckResType(iso2CableCheckResType);
+
+ while(!done) {
+ switch(grammarID) {
+ case 5:
+ /* FirstStartTag[START_ELEMENT({urn:iso:15118:2:2016:MsgBody}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, 5, &uint32);
+ iso2CableCheckResType->ResponseCode = (iso2responseCodeType) 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({urn:iso:15118:2:2016:MsgBody}ResponseCode) ? */
+ errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
+ if(eventCode == 0) {
+ grammarID = 6;
+ } else {
+ errn = EXI_DEVIANT_SUPPORT_NOT_DEPLOYED; /* or also typecast and nillable */
+ }
+ }
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 6:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgBody}EVSEStatus), START_ELEMENT({urn:iso:15118:2:2016:MsgBody}EVSEProcessing)] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ errn = decode_iso2EVSEStatusType(stream, &iso2CableCheckResType->EVSEStatus);
+ iso2CableCheckResType->EVSEStatus_isUsed = 1u;
+ grammarID = 7;
+ break;
+ case 1:
+ /* FirstStartTag[CHARACTERS[ENUMERATION]] */
+ errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
+ if(errn == 0) {
+ if(eventCode == 0) {
+ errn = decodeNBitUnsignedInteger(stream, 2, &uint32);
+ iso2CableCheckResType->EVSEProcessing = (iso2EVSEProcessingType) 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({urn:iso:15118:2:2016:MsgBody}EVSEProcessing) ? */
+ errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
+ if(eventCode == 0) {
+ grammarID = 3;
+ } else {
+ errn = EXI_DEVIANT_SUPPORT_NOT_DEPLOYED; /* or also typecast and nillable */
+ }
+ }
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 7:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgBody}EVSEProcessing)] */
+ 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);
+ iso2CableCheckResType->EVSEProcessing = (iso2EVSEProcessingType) 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({urn:iso:15118:2:2016:MsgBody}EVSEProcessing) ? */
+ errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
+ if(eventCode == 0) {
+ grammarID = 3;
+ } else {
+ errn = EXI_DEVIANT_SUPPORT_NOT_DEPLOYED; /* or also typecast and nillable */
+ }
+ }
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 3:
+ /* Element[END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ done = 1;
+ grammarID = 4;
+ 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:2016:MsgBody,ServiceDiscoveryReqType', base type name='BodyBaseType', content type='ELEMENT', isAbstract='false', hasTypeId='false', final='0', block='0', particle='("urn:iso:15118:2:2016:MsgBody":SupportedServiceIDs{0-1})', derivedBy='EXTENSION'. */
+static int decode_iso2ServiceDiscoveryReqType(bitstream_t* stream, struct iso2ServiceDiscoveryReqType* iso2ServiceDiscoveryReqType) {
+ int grammarID = 317;
+ int done = 0;
+
+ init_iso2ServiceDiscoveryReqType(iso2ServiceDiscoveryReqType);
+
+ while(!done) {
+ switch(grammarID) {
+ case 317:
+ /* FirstStartTag[START_ELEMENT({urn:iso:15118:2:2016:MsgBody}SupportedServiceIDs), END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ errn = decode_iso2ServiceIDListType(stream, &iso2ServiceDiscoveryReqType->SupportedServiceIDs);
+ iso2ServiceDiscoveryReqType->SupportedServiceIDs_isUsed = 1u;
+ grammarID = 3;
+ break;
+ case 1:
+ done = 1;
+ grammarID = 4;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 3:
+ /* Element[END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ done = 1;
+ grammarID = 4;
+ 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:2016:MsgDataTypes,ServiceType', base type name='anyType', content type='ELEMENT', isAbstract='false', hasTypeId='false', final='0', block='0', particle='("urn:iso:15118:2:2016:MsgDataTypes":ServiceID,"urn:iso:15118:2:2016:MsgDataTypes":FreeService)', derivedBy='RESTRICTION'. */
+static int decode_iso2ServiceType(bitstream_t* stream, struct iso2ServiceType* iso2ServiceType) {
+ int grammarID = 318;
+ int done = 0;
+
+ init_iso2ServiceType(iso2ServiceType);
+
+ while(!done) {
+ switch(grammarID) {
+ case 318:
+ /* FirstStartTag[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}ServiceID)] */
+ errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ /* FirstStartTag[CHARACTERS[UNSIGNED_INTEGER]] */
+ errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
+ if(errn == 0) {
+ if(eventCode == 0) {
+ errn = decodeUnsignedInteger16(stream, &iso2ServiceType->ServiceID);
+ } 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({urn:iso:15118:2:2016:MsgDataTypes}ServiceID) ? */
+ errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
+ if(eventCode == 0) {
+ grammarID = 319;
+ } else {
+ errn = EXI_DEVIANT_SUPPORT_NOT_DEPLOYED; /* or also typecast and nillable */
+ }
+ }
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 319:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}FreeService)] */
+ errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ /* FirstStartTag[CHARACTERS[BOOLEAN]] */
+ errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
+ if(errn == 0) {
+ if(eventCode == 0) {
+ errn = decodeBoolean(stream, &iso2ServiceType->FreeService);
+ } 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({urn:iso:15118:2:2016:MsgDataTypes}FreeService) ? */
+ errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
+ if(eventCode == 0) {
+ grammarID = 3;
+ } else {
+ errn = EXI_DEVIANT_SUPPORT_NOT_DEPLOYED; /* or also typecast and nillable */
+ }
+ }
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 3:
+ /* Element[END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ done = 1;
+ grammarID = 4;
+ 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:2016:MsgDataTypes,ServiceParameterListType', base type name='anyType', content type='ELEMENT', isAbstract='false', hasTypeId='false', final='0', block='0', particle='("urn:iso:15118:2:2016:MsgDataTypes":ParameterSet{1-255})', derivedBy='RESTRICTION'. */
+static int decode_iso2ServiceParameterListType(bitstream_t* stream, struct iso2ServiceParameterListType* iso2ServiceParameterListType) {
+ int grammarID = 320;
+ int done = 0;
+
+ init_iso2ServiceParameterListType(iso2ServiceParameterListType);
+
+ while(!done) {
+ switch(grammarID) {
+ case 320:
+ /* FirstStartTag[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}ParameterSet)] */
+ errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ if (iso2ServiceParameterListType->ParameterSet.arrayLen < iso2ServiceParameterListType_ParameterSet_ARRAY_SIZE) {
+ errn = decode_iso2ParameterSetType(stream, &iso2ServiceParameterListType->ParameterSet.array[iso2ServiceParameterListType->ParameterSet.arrayLen++]);
+ } else {
+ errn = EXI_ERROR_OUT_OF_BOUNDS;
+ }
+ grammarID = 321;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 321:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}ParameterSet), END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ if (iso2ServiceParameterListType->ParameterSet.arrayLen < iso2ServiceParameterListType_ParameterSet_ARRAY_SIZE) {
+ errn = decode_iso2ParameterSetType(stream, &iso2ServiceParameterListType->ParameterSet.array[iso2ServiceParameterListType->ParameterSet.arrayLen++]);
+ } else {
+ errn = EXI_ERROR_OUT_OF_BOUNDS;
+ }
+ grammarID = 322;
+ break;
+ case 1:
+ done = 1;
+ grammarID = 4;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 322:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}ParameterSet), END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ if (iso2ServiceParameterListType->ParameterSet.arrayLen < iso2ServiceParameterListType_ParameterSet_ARRAY_SIZE) {
+ errn = decode_iso2ParameterSetType(stream, &iso2ServiceParameterListType->ParameterSet.array[iso2ServiceParameterListType->ParameterSet.arrayLen++]);
+ } else {
+ errn = EXI_ERROR_OUT_OF_BOUNDS;
+ }
+ grammarID = 323;
+ break;
+ case 1:
+ done = 1;
+ grammarID = 4;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 323:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}ParameterSet), END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ if (iso2ServiceParameterListType->ParameterSet.arrayLen < iso2ServiceParameterListType_ParameterSet_ARRAY_SIZE) {
+ errn = decode_iso2ParameterSetType(stream, &iso2ServiceParameterListType->ParameterSet.array[iso2ServiceParameterListType->ParameterSet.arrayLen++]);
+ } else {
+ errn = EXI_ERROR_OUT_OF_BOUNDS;
+ }
+ grammarID = 324;
+ break;
+ case 1:
+ done = 1;
+ grammarID = 4;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 324:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}ParameterSet), END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ if (iso2ServiceParameterListType->ParameterSet.arrayLen < iso2ServiceParameterListType_ParameterSet_ARRAY_SIZE) {
+ errn = decode_iso2ParameterSetType(stream, &iso2ServiceParameterListType->ParameterSet.array[iso2ServiceParameterListType->ParameterSet.arrayLen++]);
+ } else {
+ errn = EXI_ERROR_OUT_OF_BOUNDS;
+ }
+ grammarID = 325;
+ break;
+ case 1:
+ done = 1;
+ grammarID = 4;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 325:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}ParameterSet), END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ if (iso2ServiceParameterListType->ParameterSet.arrayLen < iso2ServiceParameterListType_ParameterSet_ARRAY_SIZE) {
+ errn = decode_iso2ParameterSetType(stream, &iso2ServiceParameterListType->ParameterSet.array[iso2ServiceParameterListType->ParameterSet.arrayLen++]);
+ } else {
+ errn = EXI_ERROR_OUT_OF_BOUNDS;
+ }
+ grammarID = 326;
+ break;
+ case 1:
+ done = 1;
+ grammarID = 4;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 326:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}ParameterSet), END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ if (iso2ServiceParameterListType->ParameterSet.arrayLen < iso2ServiceParameterListType_ParameterSet_ARRAY_SIZE) {
+ errn = decode_iso2ParameterSetType(stream, &iso2ServiceParameterListType->ParameterSet.array[iso2ServiceParameterListType->ParameterSet.arrayLen++]);
+ } else {
+ errn = EXI_ERROR_OUT_OF_BOUNDS;
+ }
+ grammarID = 327;
+ break;
+ case 1:
+ done = 1;
+ grammarID = 4;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 327:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}ParameterSet), END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ if (iso2ServiceParameterListType->ParameterSet.arrayLen < iso2ServiceParameterListType_ParameterSet_ARRAY_SIZE) {
+ errn = decode_iso2ParameterSetType(stream, &iso2ServiceParameterListType->ParameterSet.array[iso2ServiceParameterListType->ParameterSet.arrayLen++]);
+ } else {
+ errn = EXI_ERROR_OUT_OF_BOUNDS;
+ }
+ grammarID = 328;
+ break;
+ case 1:
+ done = 1;
+ grammarID = 4;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 328:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}ParameterSet), END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ if (iso2ServiceParameterListType->ParameterSet.arrayLen < iso2ServiceParameterListType_ParameterSet_ARRAY_SIZE) {
+ errn = decode_iso2ParameterSetType(stream, &iso2ServiceParameterListType->ParameterSet.array[iso2ServiceParameterListType->ParameterSet.arrayLen++]);
+ } else {
+ errn = EXI_ERROR_OUT_OF_BOUNDS;
+ }
+ grammarID = 329;
+ break;
+ case 1:
+ done = 1;
+ grammarID = 4;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 329:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}ParameterSet), END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ if (iso2ServiceParameterListType->ParameterSet.arrayLen < iso2ServiceParameterListType_ParameterSet_ARRAY_SIZE) {
+ errn = decode_iso2ParameterSetType(stream, &iso2ServiceParameterListType->ParameterSet.array[iso2ServiceParameterListType->ParameterSet.arrayLen++]);
+ } else {
+ errn = EXI_ERROR_OUT_OF_BOUNDS;
+ }
+ grammarID = 330;
+ break;
+ case 1:
+ done = 1;
+ grammarID = 4;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 330:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}ParameterSet), END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ if (iso2ServiceParameterListType->ParameterSet.arrayLen < iso2ServiceParameterListType_ParameterSet_ARRAY_SIZE) {
+ errn = decode_iso2ParameterSetType(stream, &iso2ServiceParameterListType->ParameterSet.array[iso2ServiceParameterListType->ParameterSet.arrayLen++]);
+ } else {
+ errn = EXI_ERROR_OUT_OF_BOUNDS;
+ }
+ grammarID = 331;
+ break;
+ case 1:
+ done = 1;
+ grammarID = 4;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 331:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}ParameterSet), END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ if (iso2ServiceParameterListType->ParameterSet.arrayLen < iso2ServiceParameterListType_ParameterSet_ARRAY_SIZE) {
+ errn = decode_iso2ParameterSetType(stream, &iso2ServiceParameterListType->ParameterSet.array[iso2ServiceParameterListType->ParameterSet.arrayLen++]);
+ } else {
+ errn = EXI_ERROR_OUT_OF_BOUNDS;
+ }
+ grammarID = 332;
+ break;
+ case 1:
+ done = 1;
+ grammarID = 4;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 332:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}ParameterSet), END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ if (iso2ServiceParameterListType->ParameterSet.arrayLen < iso2ServiceParameterListType_ParameterSet_ARRAY_SIZE) {
+ errn = decode_iso2ParameterSetType(stream, &iso2ServiceParameterListType->ParameterSet.array[iso2ServiceParameterListType->ParameterSet.arrayLen++]);
+ } else {
+ errn = EXI_ERROR_OUT_OF_BOUNDS;
+ }
+ grammarID = 333;
+ break;
+ case 1:
+ done = 1;
+ grammarID = 4;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 333:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}ParameterSet), END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ if (iso2ServiceParameterListType->ParameterSet.arrayLen < iso2ServiceParameterListType_ParameterSet_ARRAY_SIZE) {
+ errn = decode_iso2ParameterSetType(stream, &iso2ServiceParameterListType->ParameterSet.array[iso2ServiceParameterListType->ParameterSet.arrayLen++]);
+ } else {
+ errn = EXI_ERROR_OUT_OF_BOUNDS;
+ }
+ grammarID = 334;
+ break;
+ case 1:
+ done = 1;
+ grammarID = 4;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 334:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}ParameterSet), END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ if (iso2ServiceParameterListType->ParameterSet.arrayLen < iso2ServiceParameterListType_ParameterSet_ARRAY_SIZE) {
+ errn = decode_iso2ParameterSetType(stream, &iso2ServiceParameterListType->ParameterSet.array[iso2ServiceParameterListType->ParameterSet.arrayLen++]);
+ } else {
+ errn = EXI_ERROR_OUT_OF_BOUNDS;
+ }
+ grammarID = 335;
+ break;
+ case 1:
+ done = 1;
+ grammarID = 4;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 335:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}ParameterSet), END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ if (iso2ServiceParameterListType->ParameterSet.arrayLen < iso2ServiceParameterListType_ParameterSet_ARRAY_SIZE) {
+ errn = decode_iso2ParameterSetType(stream, &iso2ServiceParameterListType->ParameterSet.array[iso2ServiceParameterListType->ParameterSet.arrayLen++]);
+ } else {
+ errn = EXI_ERROR_OUT_OF_BOUNDS;
+ }
+ grammarID = 336;
+ break;
+ case 1:
+ done = 1;
+ grammarID = 4;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 336:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}ParameterSet), END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ if (iso2ServiceParameterListType->ParameterSet.arrayLen < iso2ServiceParameterListType_ParameterSet_ARRAY_SIZE) {
+ errn = decode_iso2ParameterSetType(stream, &iso2ServiceParameterListType->ParameterSet.array[iso2ServiceParameterListType->ParameterSet.arrayLen++]);
+ } else {
+ errn = EXI_ERROR_OUT_OF_BOUNDS;
+ }
+ grammarID = 337;
+ break;
+ case 1:
+ done = 1;
+ grammarID = 4;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 337:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}ParameterSet), END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ if (iso2ServiceParameterListType->ParameterSet.arrayLen < iso2ServiceParameterListType_ParameterSet_ARRAY_SIZE) {
+ errn = decode_iso2ParameterSetType(stream, &iso2ServiceParameterListType->ParameterSet.array[iso2ServiceParameterListType->ParameterSet.arrayLen++]);
+ } else {
+ errn = EXI_ERROR_OUT_OF_BOUNDS;
+ }
+ grammarID = 338;
+ break;
+ case 1:
+ done = 1;
+ grammarID = 4;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 338:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}ParameterSet), END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ if (iso2ServiceParameterListType->ParameterSet.arrayLen < iso2ServiceParameterListType_ParameterSet_ARRAY_SIZE) {
+ errn = decode_iso2ParameterSetType(stream, &iso2ServiceParameterListType->ParameterSet.array[iso2ServiceParameterListType->ParameterSet.arrayLen++]);
+ } else {
+ errn = EXI_ERROR_OUT_OF_BOUNDS;
+ }
+ grammarID = 339;
+ break;
+ case 1:
+ done = 1;
+ grammarID = 4;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 339:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}ParameterSet), END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ if (iso2ServiceParameterListType->ParameterSet.arrayLen < iso2ServiceParameterListType_ParameterSet_ARRAY_SIZE) {
+ errn = decode_iso2ParameterSetType(stream, &iso2ServiceParameterListType->ParameterSet.array[iso2ServiceParameterListType->ParameterSet.arrayLen++]);
+ } else {
+ errn = EXI_ERROR_OUT_OF_BOUNDS;
+ }
+ grammarID = 340;
+ break;
+ case 1:
+ done = 1;
+ grammarID = 4;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 340:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}ParameterSet), END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ if (iso2ServiceParameterListType->ParameterSet.arrayLen < iso2ServiceParameterListType_ParameterSet_ARRAY_SIZE) {
+ errn = decode_iso2ParameterSetType(stream, &iso2ServiceParameterListType->ParameterSet.array[iso2ServiceParameterListType->ParameterSet.arrayLen++]);
+ } else {
+ errn = EXI_ERROR_OUT_OF_BOUNDS;
+ }
+ grammarID = 341;
+ break;
+ case 1:
+ done = 1;
+ grammarID = 4;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 341:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}ParameterSet), END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ if (iso2ServiceParameterListType->ParameterSet.arrayLen < iso2ServiceParameterListType_ParameterSet_ARRAY_SIZE) {
+ errn = decode_iso2ParameterSetType(stream, &iso2ServiceParameterListType->ParameterSet.array[iso2ServiceParameterListType->ParameterSet.arrayLen++]);
+ } else {
+ errn = EXI_ERROR_OUT_OF_BOUNDS;
+ }
+ grammarID = 342;
+ break;
+ case 1:
+ done = 1;
+ grammarID = 4;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 342:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}ParameterSet), END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ if (iso2ServiceParameterListType->ParameterSet.arrayLen < iso2ServiceParameterListType_ParameterSet_ARRAY_SIZE) {
+ errn = decode_iso2ParameterSetType(stream, &iso2ServiceParameterListType->ParameterSet.array[iso2ServiceParameterListType->ParameterSet.arrayLen++]);
+ } else {
+ errn = EXI_ERROR_OUT_OF_BOUNDS;
+ }
+ grammarID = 343;
+ break;
+ case 1:
+ done = 1;
+ grammarID = 4;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 343:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}ParameterSet), END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ if (iso2ServiceParameterListType->ParameterSet.arrayLen < iso2ServiceParameterListType_ParameterSet_ARRAY_SIZE) {
+ errn = decode_iso2ParameterSetType(stream, &iso2ServiceParameterListType->ParameterSet.array[iso2ServiceParameterListType->ParameterSet.arrayLen++]);
+ } else {
+ errn = EXI_ERROR_OUT_OF_BOUNDS;
+ }
+ grammarID = 344;
+ break;
+ case 1:
+ done = 1;
+ grammarID = 4;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 344:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}ParameterSet), END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ if (iso2ServiceParameterListType->ParameterSet.arrayLen < iso2ServiceParameterListType_ParameterSet_ARRAY_SIZE) {
+ errn = decode_iso2ParameterSetType(stream, &iso2ServiceParameterListType->ParameterSet.array[iso2ServiceParameterListType->ParameterSet.arrayLen++]);
+ } else {
+ errn = EXI_ERROR_OUT_OF_BOUNDS;
+ }
+ grammarID = 345;
+ break;
+ case 1:
+ done = 1;
+ grammarID = 4;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 345:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}ParameterSet), END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ if (iso2ServiceParameterListType->ParameterSet.arrayLen < iso2ServiceParameterListType_ParameterSet_ARRAY_SIZE) {
+ errn = decode_iso2ParameterSetType(stream, &iso2ServiceParameterListType->ParameterSet.array[iso2ServiceParameterListType->ParameterSet.arrayLen++]);
+ } else {
+ errn = EXI_ERROR_OUT_OF_BOUNDS;
+ }
+ grammarID = 346;
+ break;
+ case 1:
+ done = 1;
+ grammarID = 4;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 346:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}ParameterSet), END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ if (iso2ServiceParameterListType->ParameterSet.arrayLen < iso2ServiceParameterListType_ParameterSet_ARRAY_SIZE) {
+ errn = decode_iso2ParameterSetType(stream, &iso2ServiceParameterListType->ParameterSet.array[iso2ServiceParameterListType->ParameterSet.arrayLen++]);
+ } else {
+ errn = EXI_ERROR_OUT_OF_BOUNDS;
+ }
+ grammarID = 347;
+ break;
+ case 1:
+ done = 1;
+ grammarID = 4;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 347:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}ParameterSet), END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ if (iso2ServiceParameterListType->ParameterSet.arrayLen < iso2ServiceParameterListType_ParameterSet_ARRAY_SIZE) {
+ errn = decode_iso2ParameterSetType(stream, &iso2ServiceParameterListType->ParameterSet.array[iso2ServiceParameterListType->ParameterSet.arrayLen++]);
+ } else {
+ errn = EXI_ERROR_OUT_OF_BOUNDS;
+ }
+ grammarID = 348;
+ break;
+ case 1:
+ done = 1;
+ grammarID = 4;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 348:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}ParameterSet), END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ if (iso2ServiceParameterListType->ParameterSet.arrayLen < iso2ServiceParameterListType_ParameterSet_ARRAY_SIZE) {
+ errn = decode_iso2ParameterSetType(stream, &iso2ServiceParameterListType->ParameterSet.array[iso2ServiceParameterListType->ParameterSet.arrayLen++]);
+ } else {
+ errn = EXI_ERROR_OUT_OF_BOUNDS;
+ }
+ grammarID = 349;
+ break;
+ case 1:
+ done = 1;
+ grammarID = 4;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 349:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}ParameterSet), END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ if (iso2ServiceParameterListType->ParameterSet.arrayLen < iso2ServiceParameterListType_ParameterSet_ARRAY_SIZE) {
+ errn = decode_iso2ParameterSetType(stream, &iso2ServiceParameterListType->ParameterSet.array[iso2ServiceParameterListType->ParameterSet.arrayLen++]);
+ } else {
+ errn = EXI_ERROR_OUT_OF_BOUNDS;
+ }
+ grammarID = 350;
+ break;
+ case 1:
+ done = 1;
+ grammarID = 4;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 350:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}ParameterSet), END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ if (iso2ServiceParameterListType->ParameterSet.arrayLen < iso2ServiceParameterListType_ParameterSet_ARRAY_SIZE) {
+ errn = decode_iso2ParameterSetType(stream, &iso2ServiceParameterListType->ParameterSet.array[iso2ServiceParameterListType->ParameterSet.arrayLen++]);
+ } else {
+ errn = EXI_ERROR_OUT_OF_BOUNDS;
+ }
+ grammarID = 351;
+ break;
+ case 1:
+ done = 1;
+ grammarID = 4;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 351:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}ParameterSet), END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ if (iso2ServiceParameterListType->ParameterSet.arrayLen < iso2ServiceParameterListType_ParameterSet_ARRAY_SIZE) {
+ errn = decode_iso2ParameterSetType(stream, &iso2ServiceParameterListType->ParameterSet.array[iso2ServiceParameterListType->ParameterSet.arrayLen++]);
+ } else {
+ errn = EXI_ERROR_OUT_OF_BOUNDS;
+ }
+ grammarID = 352;
+ break;
+ case 1:
+ done = 1;
+ grammarID = 4;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 352:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}ParameterSet), END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ if (iso2ServiceParameterListType->ParameterSet.arrayLen < iso2ServiceParameterListType_ParameterSet_ARRAY_SIZE) {
+ errn = decode_iso2ParameterSetType(stream, &iso2ServiceParameterListType->ParameterSet.array[iso2ServiceParameterListType->ParameterSet.arrayLen++]);
+ } else {
+ errn = EXI_ERROR_OUT_OF_BOUNDS;
+ }
+ grammarID = 353;
+ break;
+ case 1:
+ done = 1;
+ grammarID = 4;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 353:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}ParameterSet), END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ if (iso2ServiceParameterListType->ParameterSet.arrayLen < iso2ServiceParameterListType_ParameterSet_ARRAY_SIZE) {
+ errn = decode_iso2ParameterSetType(stream, &iso2ServiceParameterListType->ParameterSet.array[iso2ServiceParameterListType->ParameterSet.arrayLen++]);
+ } else {
+ errn = EXI_ERROR_OUT_OF_BOUNDS;
+ }
+ grammarID = 354;
+ break;
+ case 1:
+ done = 1;
+ grammarID = 4;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 354:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}ParameterSet), END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ if (iso2ServiceParameterListType->ParameterSet.arrayLen < iso2ServiceParameterListType_ParameterSet_ARRAY_SIZE) {
+ errn = decode_iso2ParameterSetType(stream, &iso2ServiceParameterListType->ParameterSet.array[iso2ServiceParameterListType->ParameterSet.arrayLen++]);
+ } else {
+ errn = EXI_ERROR_OUT_OF_BOUNDS;
+ }
+ grammarID = 355;
+ break;
+ case 1:
+ done = 1;
+ grammarID = 4;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 355:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}ParameterSet), END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ if (iso2ServiceParameterListType->ParameterSet.arrayLen < iso2ServiceParameterListType_ParameterSet_ARRAY_SIZE) {
+ errn = decode_iso2ParameterSetType(stream, &iso2ServiceParameterListType->ParameterSet.array[iso2ServiceParameterListType->ParameterSet.arrayLen++]);
+ } else {
+ errn = EXI_ERROR_OUT_OF_BOUNDS;
+ }
+ grammarID = 356;
+ break;
+ case 1:
+ done = 1;
+ grammarID = 4;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 356:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}ParameterSet), END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ if (iso2ServiceParameterListType->ParameterSet.arrayLen < iso2ServiceParameterListType_ParameterSet_ARRAY_SIZE) {
+ errn = decode_iso2ParameterSetType(stream, &iso2ServiceParameterListType->ParameterSet.array[iso2ServiceParameterListType->ParameterSet.arrayLen++]);
+ } else {
+ errn = EXI_ERROR_OUT_OF_BOUNDS;
+ }
+ grammarID = 357;
+ break;
+ case 1:
+ done = 1;
+ grammarID = 4;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 357:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}ParameterSet), END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ if (iso2ServiceParameterListType->ParameterSet.arrayLen < iso2ServiceParameterListType_ParameterSet_ARRAY_SIZE) {
+ errn = decode_iso2ParameterSetType(stream, &iso2ServiceParameterListType->ParameterSet.array[iso2ServiceParameterListType->ParameterSet.arrayLen++]);
+ } else {
+ errn = EXI_ERROR_OUT_OF_BOUNDS;
+ }
+ grammarID = 358;
+ break;
+ case 1:
+ done = 1;
+ grammarID = 4;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 358:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}ParameterSet), END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ if (iso2ServiceParameterListType->ParameterSet.arrayLen < iso2ServiceParameterListType_ParameterSet_ARRAY_SIZE) {
+ errn = decode_iso2ParameterSetType(stream, &iso2ServiceParameterListType->ParameterSet.array[iso2ServiceParameterListType->ParameterSet.arrayLen++]);
+ } else {
+ errn = EXI_ERROR_OUT_OF_BOUNDS;
+ }
+ grammarID = 359;
+ break;
+ case 1:
+ done = 1;
+ grammarID = 4;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 359:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}ParameterSet), END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ if (iso2ServiceParameterListType->ParameterSet.arrayLen < iso2ServiceParameterListType_ParameterSet_ARRAY_SIZE) {
+ errn = decode_iso2ParameterSetType(stream, &iso2ServiceParameterListType->ParameterSet.array[iso2ServiceParameterListType->ParameterSet.arrayLen++]);
+ } else {
+ errn = EXI_ERROR_OUT_OF_BOUNDS;
+ }
+ grammarID = 360;
+ break;
+ case 1:
+ done = 1;
+ grammarID = 4;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 360:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}ParameterSet), END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ if (iso2ServiceParameterListType->ParameterSet.arrayLen < iso2ServiceParameterListType_ParameterSet_ARRAY_SIZE) {
+ errn = decode_iso2ParameterSetType(stream, &iso2ServiceParameterListType->ParameterSet.array[iso2ServiceParameterListType->ParameterSet.arrayLen++]);
+ } else {
+ errn = EXI_ERROR_OUT_OF_BOUNDS;
+ }
+ grammarID = 361;
+ break;
+ case 1:
+ done = 1;
+ grammarID = 4;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 361:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}ParameterSet), END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ if (iso2ServiceParameterListType->ParameterSet.arrayLen < iso2ServiceParameterListType_ParameterSet_ARRAY_SIZE) {
+ errn = decode_iso2ParameterSetType(stream, &iso2ServiceParameterListType->ParameterSet.array[iso2ServiceParameterListType->ParameterSet.arrayLen++]);
+ } else {
+ errn = EXI_ERROR_OUT_OF_BOUNDS;
+ }
+ grammarID = 362;
+ break;
+ case 1:
+ done = 1;
+ grammarID = 4;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 362:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}ParameterSet), END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ if (iso2ServiceParameterListType->ParameterSet.arrayLen < iso2ServiceParameterListType_ParameterSet_ARRAY_SIZE) {
+ errn = decode_iso2ParameterSetType(stream, &iso2ServiceParameterListType->ParameterSet.array[iso2ServiceParameterListType->ParameterSet.arrayLen++]);
+ } else {
+ errn = EXI_ERROR_OUT_OF_BOUNDS;
+ }
+ grammarID = 363;
+ break;
+ case 1:
+ done = 1;
+ grammarID = 4;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 363:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}ParameterSet), END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ if (iso2ServiceParameterListType->ParameterSet.arrayLen < iso2ServiceParameterListType_ParameterSet_ARRAY_SIZE) {
+ errn = decode_iso2ParameterSetType(stream, &iso2ServiceParameterListType->ParameterSet.array[iso2ServiceParameterListType->ParameterSet.arrayLen++]);
+ } else {
+ errn = EXI_ERROR_OUT_OF_BOUNDS;
+ }
+ grammarID = 364;
+ break;
+ case 1:
+ done = 1;
+ grammarID = 4;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 364:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}ParameterSet), END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ if (iso2ServiceParameterListType->ParameterSet.arrayLen < iso2ServiceParameterListType_ParameterSet_ARRAY_SIZE) {
+ errn = decode_iso2ParameterSetType(stream, &iso2ServiceParameterListType->ParameterSet.array[iso2ServiceParameterListType->ParameterSet.arrayLen++]);
+ } else {
+ errn = EXI_ERROR_OUT_OF_BOUNDS;
+ }
+ grammarID = 365;
+ break;
+ case 1:
+ done = 1;
+ grammarID = 4;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 365:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}ParameterSet), END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ if (iso2ServiceParameterListType->ParameterSet.arrayLen < iso2ServiceParameterListType_ParameterSet_ARRAY_SIZE) {
+ errn = decode_iso2ParameterSetType(stream, &iso2ServiceParameterListType->ParameterSet.array[iso2ServiceParameterListType->ParameterSet.arrayLen++]);
+ } else {
+ errn = EXI_ERROR_OUT_OF_BOUNDS;
+ }
+ grammarID = 366;
+ break;
+ case 1:
+ done = 1;
+ grammarID = 4;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 366:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}ParameterSet), END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ if (iso2ServiceParameterListType->ParameterSet.arrayLen < iso2ServiceParameterListType_ParameterSet_ARRAY_SIZE) {
+ errn = decode_iso2ParameterSetType(stream, &iso2ServiceParameterListType->ParameterSet.array[iso2ServiceParameterListType->ParameterSet.arrayLen++]);
+ } else {
+ errn = EXI_ERROR_OUT_OF_BOUNDS;
+ }
+ grammarID = 367;
+ break;
+ case 1:
+ done = 1;
+ grammarID = 4;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 367:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}ParameterSet), END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ if (iso2ServiceParameterListType->ParameterSet.arrayLen < iso2ServiceParameterListType_ParameterSet_ARRAY_SIZE) {
+ errn = decode_iso2ParameterSetType(stream, &iso2ServiceParameterListType->ParameterSet.array[iso2ServiceParameterListType->ParameterSet.arrayLen++]);
+ } else {
+ errn = EXI_ERROR_OUT_OF_BOUNDS;
+ }
+ grammarID = 368;
+ break;
+ case 1:
+ done = 1;
+ grammarID = 4;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 368:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}ParameterSet), END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ if (iso2ServiceParameterListType->ParameterSet.arrayLen < iso2ServiceParameterListType_ParameterSet_ARRAY_SIZE) {
+ errn = decode_iso2ParameterSetType(stream, &iso2ServiceParameterListType->ParameterSet.array[iso2ServiceParameterListType->ParameterSet.arrayLen++]);
+ } else {
+ errn = EXI_ERROR_OUT_OF_BOUNDS;
+ }
+ grammarID = 369;
+ break;
+ case 1:
+ done = 1;
+ grammarID = 4;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 369:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}ParameterSet), END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ if (iso2ServiceParameterListType->ParameterSet.arrayLen < iso2ServiceParameterListType_ParameterSet_ARRAY_SIZE) {
+ errn = decode_iso2ParameterSetType(stream, &iso2ServiceParameterListType->ParameterSet.array[iso2ServiceParameterListType->ParameterSet.arrayLen++]);
+ } else {
+ errn = EXI_ERROR_OUT_OF_BOUNDS;
+ }
+ grammarID = 370;
+ break;
+ case 1:
+ done = 1;
+ grammarID = 4;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 370:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}ParameterSet), END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ if (iso2ServiceParameterListType->ParameterSet.arrayLen < iso2ServiceParameterListType_ParameterSet_ARRAY_SIZE) {
+ errn = decode_iso2ParameterSetType(stream, &iso2ServiceParameterListType->ParameterSet.array[iso2ServiceParameterListType->ParameterSet.arrayLen++]);
+ } else {
+ errn = EXI_ERROR_OUT_OF_BOUNDS;
+ }
+ grammarID = 371;
+ break;
+ case 1:
+ done = 1;
+ grammarID = 4;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 371:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}ParameterSet), END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ if (iso2ServiceParameterListType->ParameterSet.arrayLen < iso2ServiceParameterListType_ParameterSet_ARRAY_SIZE) {
+ errn = decode_iso2ParameterSetType(stream, &iso2ServiceParameterListType->ParameterSet.array[iso2ServiceParameterListType->ParameterSet.arrayLen++]);
+ } else {
+ errn = EXI_ERROR_OUT_OF_BOUNDS;
+ }
+ grammarID = 372;
+ break;
+ case 1:
+ done = 1;
+ grammarID = 4;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 372:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}ParameterSet), END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ if (iso2ServiceParameterListType->ParameterSet.arrayLen < iso2ServiceParameterListType_ParameterSet_ARRAY_SIZE) {
+ errn = decode_iso2ParameterSetType(stream, &iso2ServiceParameterListType->ParameterSet.array[iso2ServiceParameterListType->ParameterSet.arrayLen++]);
+ } else {
+ errn = EXI_ERROR_OUT_OF_BOUNDS;
+ }
+ grammarID = 373;
+ break;
+ case 1:
+ done = 1;
+ grammarID = 4;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 373:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}ParameterSet), END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ if (iso2ServiceParameterListType->ParameterSet.arrayLen < iso2ServiceParameterListType_ParameterSet_ARRAY_SIZE) {
+ errn = decode_iso2ParameterSetType(stream, &iso2ServiceParameterListType->ParameterSet.array[iso2ServiceParameterListType->ParameterSet.arrayLen++]);
+ } else {
+ errn = EXI_ERROR_OUT_OF_BOUNDS;
+ }
+ grammarID = 374;
+ break;
+ case 1:
+ done = 1;
+ grammarID = 4;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 374:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}ParameterSet), END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ if (iso2ServiceParameterListType->ParameterSet.arrayLen < iso2ServiceParameterListType_ParameterSet_ARRAY_SIZE) {
+ errn = decode_iso2ParameterSetType(stream, &iso2ServiceParameterListType->ParameterSet.array[iso2ServiceParameterListType->ParameterSet.arrayLen++]);
+ } else {
+ errn = EXI_ERROR_OUT_OF_BOUNDS;
+ }
+ grammarID = 375;
+ break;
+ case 1:
+ done = 1;
+ grammarID = 4;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 375:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}ParameterSet), END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ if (iso2ServiceParameterListType->ParameterSet.arrayLen < iso2ServiceParameterListType_ParameterSet_ARRAY_SIZE) {
+ errn = decode_iso2ParameterSetType(stream, &iso2ServiceParameterListType->ParameterSet.array[iso2ServiceParameterListType->ParameterSet.arrayLen++]);
+ } else {
+ errn = EXI_ERROR_OUT_OF_BOUNDS;
+ }
+ grammarID = 376;
+ break;
+ case 1:
+ done = 1;
+ grammarID = 4;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 376:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}ParameterSet), END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ if (iso2ServiceParameterListType->ParameterSet.arrayLen < iso2ServiceParameterListType_ParameterSet_ARRAY_SIZE) {
+ errn = decode_iso2ParameterSetType(stream, &iso2ServiceParameterListType->ParameterSet.array[iso2ServiceParameterListType->ParameterSet.arrayLen++]);
+ } else {
+ errn = EXI_ERROR_OUT_OF_BOUNDS;
+ }
+ grammarID = 377;
+ break;
+ case 1:
+ done = 1;
+ grammarID = 4;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 377:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}ParameterSet), END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ if (iso2ServiceParameterListType->ParameterSet.arrayLen < iso2ServiceParameterListType_ParameterSet_ARRAY_SIZE) {
+ errn = decode_iso2ParameterSetType(stream, &iso2ServiceParameterListType->ParameterSet.array[iso2ServiceParameterListType->ParameterSet.arrayLen++]);
+ } else {
+ errn = EXI_ERROR_OUT_OF_BOUNDS;
+ }
+ grammarID = 378;
+ break;
+ case 1:
+ done = 1;
+ grammarID = 4;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 378:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}ParameterSet), END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ if (iso2ServiceParameterListType->ParameterSet.arrayLen < iso2ServiceParameterListType_ParameterSet_ARRAY_SIZE) {
+ errn = decode_iso2ParameterSetType(stream, &iso2ServiceParameterListType->ParameterSet.array[iso2ServiceParameterListType->ParameterSet.arrayLen++]);
+ } else {
+ errn = EXI_ERROR_OUT_OF_BOUNDS;
+ }
+ grammarID = 379;
+ break;
+ case 1:
+ done = 1;
+ grammarID = 4;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 379:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}ParameterSet), END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ if (iso2ServiceParameterListType->ParameterSet.arrayLen < iso2ServiceParameterListType_ParameterSet_ARRAY_SIZE) {
+ errn = decode_iso2ParameterSetType(stream, &iso2ServiceParameterListType->ParameterSet.array[iso2ServiceParameterListType->ParameterSet.arrayLen++]);
+ } else {
+ errn = EXI_ERROR_OUT_OF_BOUNDS;
+ }
+ grammarID = 380;
+ break;
+ case 1:
+ done = 1;
+ grammarID = 4;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 380:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}ParameterSet), END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ if (iso2ServiceParameterListType->ParameterSet.arrayLen < iso2ServiceParameterListType_ParameterSet_ARRAY_SIZE) {
+ errn = decode_iso2ParameterSetType(stream, &iso2ServiceParameterListType->ParameterSet.array[iso2ServiceParameterListType->ParameterSet.arrayLen++]);
+ } else {
+ errn = EXI_ERROR_OUT_OF_BOUNDS;
+ }
+ grammarID = 381;
+ break;
+ case 1:
+ done = 1;
+ grammarID = 4;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 381:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}ParameterSet), END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ if (iso2ServiceParameterListType->ParameterSet.arrayLen < iso2ServiceParameterListType_ParameterSet_ARRAY_SIZE) {
+ errn = decode_iso2ParameterSetType(stream, &iso2ServiceParameterListType->ParameterSet.array[iso2ServiceParameterListType->ParameterSet.arrayLen++]);
+ } else {
+ errn = EXI_ERROR_OUT_OF_BOUNDS;
+ }
+ grammarID = 382;
+ break;
+ case 1:
+ done = 1;
+ grammarID = 4;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 382:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}ParameterSet), END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ if (iso2ServiceParameterListType->ParameterSet.arrayLen < iso2ServiceParameterListType_ParameterSet_ARRAY_SIZE) {
+ errn = decode_iso2ParameterSetType(stream, &iso2ServiceParameterListType->ParameterSet.array[iso2ServiceParameterListType->ParameterSet.arrayLen++]);
+ } else {
+ errn = EXI_ERROR_OUT_OF_BOUNDS;
+ }
+ grammarID = 383;
+ break;
+ case 1:
+ done = 1;
+ grammarID = 4;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 383:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}ParameterSet), END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ if (iso2ServiceParameterListType->ParameterSet.arrayLen < iso2ServiceParameterListType_ParameterSet_ARRAY_SIZE) {
+ errn = decode_iso2ParameterSetType(stream, &iso2ServiceParameterListType->ParameterSet.array[iso2ServiceParameterListType->ParameterSet.arrayLen++]);
+ } else {
+ errn = EXI_ERROR_OUT_OF_BOUNDS;
+ }
+ grammarID = 384;
+ break;
+ case 1:
+ done = 1;
+ grammarID = 4;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 384:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}ParameterSet), END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ if (iso2ServiceParameterListType->ParameterSet.arrayLen < iso2ServiceParameterListType_ParameterSet_ARRAY_SIZE) {
+ errn = decode_iso2ParameterSetType(stream, &iso2ServiceParameterListType->ParameterSet.array[iso2ServiceParameterListType->ParameterSet.arrayLen++]);
+ } else {
+ errn = EXI_ERROR_OUT_OF_BOUNDS;
+ }
+ grammarID = 385;
+ break;
+ case 1:
+ done = 1;
+ grammarID = 4;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 385:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}ParameterSet), END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ if (iso2ServiceParameterListType->ParameterSet.arrayLen < iso2ServiceParameterListType_ParameterSet_ARRAY_SIZE) {
+ errn = decode_iso2ParameterSetType(stream, &iso2ServiceParameterListType->ParameterSet.array[iso2ServiceParameterListType->ParameterSet.arrayLen++]);
+ } else {
+ errn = EXI_ERROR_OUT_OF_BOUNDS;
+ }
+ grammarID = 386;
+ break;
+ case 1:
+ done = 1;
+ grammarID = 4;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 386:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}ParameterSet), END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ if (iso2ServiceParameterListType->ParameterSet.arrayLen < iso2ServiceParameterListType_ParameterSet_ARRAY_SIZE) {
+ errn = decode_iso2ParameterSetType(stream, &iso2ServiceParameterListType->ParameterSet.array[iso2ServiceParameterListType->ParameterSet.arrayLen++]);
+ } else {
+ errn = EXI_ERROR_OUT_OF_BOUNDS;
+ }
+ grammarID = 387;
+ break;
+ case 1:
+ done = 1;
+ grammarID = 4;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 387:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}ParameterSet), END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ if (iso2ServiceParameterListType->ParameterSet.arrayLen < iso2ServiceParameterListType_ParameterSet_ARRAY_SIZE) {
+ errn = decode_iso2ParameterSetType(stream, &iso2ServiceParameterListType->ParameterSet.array[iso2ServiceParameterListType->ParameterSet.arrayLen++]);
+ } else {
+ errn = EXI_ERROR_OUT_OF_BOUNDS;
+ }
+ grammarID = 388;
+ break;
+ case 1:
+ done = 1;
+ grammarID = 4;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 388:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}ParameterSet), END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ if (iso2ServiceParameterListType->ParameterSet.arrayLen < iso2ServiceParameterListType_ParameterSet_ARRAY_SIZE) {
+ errn = decode_iso2ParameterSetType(stream, &iso2ServiceParameterListType->ParameterSet.array[iso2ServiceParameterListType->ParameterSet.arrayLen++]);
+ } else {
+ errn = EXI_ERROR_OUT_OF_BOUNDS;
+ }
+ grammarID = 389;
+ break;
+ case 1:
+ done = 1;
+ grammarID = 4;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 389:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}ParameterSet), END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ if (iso2ServiceParameterListType->ParameterSet.arrayLen < iso2ServiceParameterListType_ParameterSet_ARRAY_SIZE) {
+ errn = decode_iso2ParameterSetType(stream, &iso2ServiceParameterListType->ParameterSet.array[iso2ServiceParameterListType->ParameterSet.arrayLen++]);
+ } else {
+ errn = EXI_ERROR_OUT_OF_BOUNDS;
+ }
+ grammarID = 390;
+ break;
+ case 1:
+ done = 1;
+ grammarID = 4;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 390:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}ParameterSet), END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ if (iso2ServiceParameterListType->ParameterSet.arrayLen < iso2ServiceParameterListType_ParameterSet_ARRAY_SIZE) {
+ errn = decode_iso2ParameterSetType(stream, &iso2ServiceParameterListType->ParameterSet.array[iso2ServiceParameterListType->ParameterSet.arrayLen++]);
+ } else {
+ errn = EXI_ERROR_OUT_OF_BOUNDS;
+ }
+ grammarID = 391;
+ break;
+ case 1:
+ done = 1;
+ grammarID = 4;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 391:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}ParameterSet), END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ if (iso2ServiceParameterListType->ParameterSet.arrayLen < iso2ServiceParameterListType_ParameterSet_ARRAY_SIZE) {
+ errn = decode_iso2ParameterSetType(stream, &iso2ServiceParameterListType->ParameterSet.array[iso2ServiceParameterListType->ParameterSet.arrayLen++]);
+ } else {
+ errn = EXI_ERROR_OUT_OF_BOUNDS;
+ }
+ grammarID = 392;
+ break;
+ case 1:
+ done = 1;
+ grammarID = 4;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 392:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}ParameterSet), END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ if (iso2ServiceParameterListType->ParameterSet.arrayLen < iso2ServiceParameterListType_ParameterSet_ARRAY_SIZE) {
+ errn = decode_iso2ParameterSetType(stream, &iso2ServiceParameterListType->ParameterSet.array[iso2ServiceParameterListType->ParameterSet.arrayLen++]);
+ } else {
+ errn = EXI_ERROR_OUT_OF_BOUNDS;
+ }
+ grammarID = 393;
+ break;
+ case 1:
+ done = 1;
+ grammarID = 4;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 393:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}ParameterSet), END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ if (iso2ServiceParameterListType->ParameterSet.arrayLen < iso2ServiceParameterListType_ParameterSet_ARRAY_SIZE) {
+ errn = decode_iso2ParameterSetType(stream, &iso2ServiceParameterListType->ParameterSet.array[iso2ServiceParameterListType->ParameterSet.arrayLen++]);
+ } else {
+ errn = EXI_ERROR_OUT_OF_BOUNDS;
+ }
+ grammarID = 394;
+ break;
+ case 1:
+ done = 1;
+ grammarID = 4;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 394:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}ParameterSet), END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ if (iso2ServiceParameterListType->ParameterSet.arrayLen < iso2ServiceParameterListType_ParameterSet_ARRAY_SIZE) {
+ errn = decode_iso2ParameterSetType(stream, &iso2ServiceParameterListType->ParameterSet.array[iso2ServiceParameterListType->ParameterSet.arrayLen++]);
+ } else {
+ errn = EXI_ERROR_OUT_OF_BOUNDS;
+ }
+ grammarID = 395;
+ break;
+ case 1:
+ done = 1;
+ grammarID = 4;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 395:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}ParameterSet), END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ if (iso2ServiceParameterListType->ParameterSet.arrayLen < iso2ServiceParameterListType_ParameterSet_ARRAY_SIZE) {
+ errn = decode_iso2ParameterSetType(stream, &iso2ServiceParameterListType->ParameterSet.array[iso2ServiceParameterListType->ParameterSet.arrayLen++]);
+ } else {
+ errn = EXI_ERROR_OUT_OF_BOUNDS;
+ }
+ grammarID = 396;
+ break;
+ case 1:
+ done = 1;
+ grammarID = 4;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 396:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}ParameterSet), END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ if (iso2ServiceParameterListType->ParameterSet.arrayLen < iso2ServiceParameterListType_ParameterSet_ARRAY_SIZE) {
+ errn = decode_iso2ParameterSetType(stream, &iso2ServiceParameterListType->ParameterSet.array[iso2ServiceParameterListType->ParameterSet.arrayLen++]);
+ } else {
+ errn = EXI_ERROR_OUT_OF_BOUNDS;
+ }
+ grammarID = 397;
+ break;
+ case 1:
+ done = 1;
+ grammarID = 4;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 397:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}ParameterSet), END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ if (iso2ServiceParameterListType->ParameterSet.arrayLen < iso2ServiceParameterListType_ParameterSet_ARRAY_SIZE) {
+ errn = decode_iso2ParameterSetType(stream, &iso2ServiceParameterListType->ParameterSet.array[iso2ServiceParameterListType->ParameterSet.arrayLen++]);
+ } else {
+ errn = EXI_ERROR_OUT_OF_BOUNDS;
+ }
+ grammarID = 398;
+ break;
+ case 1:
+ done = 1;
+ grammarID = 4;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 398:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}ParameterSet), END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ if (iso2ServiceParameterListType->ParameterSet.arrayLen < iso2ServiceParameterListType_ParameterSet_ARRAY_SIZE) {
+ errn = decode_iso2ParameterSetType(stream, &iso2ServiceParameterListType->ParameterSet.array[iso2ServiceParameterListType->ParameterSet.arrayLen++]);
+ } else {
+ errn = EXI_ERROR_OUT_OF_BOUNDS;
+ }
+ grammarID = 399;
+ break;
+ case 1:
+ done = 1;
+ grammarID = 4;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 399:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}ParameterSet), END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ if (iso2ServiceParameterListType->ParameterSet.arrayLen < iso2ServiceParameterListType_ParameterSet_ARRAY_SIZE) {
+ errn = decode_iso2ParameterSetType(stream, &iso2ServiceParameterListType->ParameterSet.array[iso2ServiceParameterListType->ParameterSet.arrayLen++]);
+ } else {
+ errn = EXI_ERROR_OUT_OF_BOUNDS;
+ }
+ grammarID = 400;
+ break;
+ case 1:
+ done = 1;
+ grammarID = 4;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 400:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}ParameterSet), END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ if (iso2ServiceParameterListType->ParameterSet.arrayLen < iso2ServiceParameterListType_ParameterSet_ARRAY_SIZE) {
+ errn = decode_iso2ParameterSetType(stream, &iso2ServiceParameterListType->ParameterSet.array[iso2ServiceParameterListType->ParameterSet.arrayLen++]);
+ } else {
+ errn = EXI_ERROR_OUT_OF_BOUNDS;
+ }
+ grammarID = 401;
+ break;
+ case 1:
+ done = 1;
+ grammarID = 4;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 401:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}ParameterSet), END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ if (iso2ServiceParameterListType->ParameterSet.arrayLen < iso2ServiceParameterListType_ParameterSet_ARRAY_SIZE) {
+ errn = decode_iso2ParameterSetType(stream, &iso2ServiceParameterListType->ParameterSet.array[iso2ServiceParameterListType->ParameterSet.arrayLen++]);
+ } else {
+ errn = EXI_ERROR_OUT_OF_BOUNDS;
+ }
+ grammarID = 402;
+ break;
+ case 1:
+ done = 1;
+ grammarID = 4;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 402:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}ParameterSet), END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ if (iso2ServiceParameterListType->ParameterSet.arrayLen < iso2ServiceParameterListType_ParameterSet_ARRAY_SIZE) {
+ errn = decode_iso2ParameterSetType(stream, &iso2ServiceParameterListType->ParameterSet.array[iso2ServiceParameterListType->ParameterSet.arrayLen++]);
+ } else {
+ errn = EXI_ERROR_OUT_OF_BOUNDS;
+ }
+ grammarID = 403;
+ break;
+ case 1:
+ done = 1;
+ grammarID = 4;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 403:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}ParameterSet), END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ if (iso2ServiceParameterListType->ParameterSet.arrayLen < iso2ServiceParameterListType_ParameterSet_ARRAY_SIZE) {
+ errn = decode_iso2ParameterSetType(stream, &iso2ServiceParameterListType->ParameterSet.array[iso2ServiceParameterListType->ParameterSet.arrayLen++]);
+ } else {
+ errn = EXI_ERROR_OUT_OF_BOUNDS;
+ }
+ grammarID = 404;
+ break;
+ case 1:
+ done = 1;
+ grammarID = 4;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 404:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}ParameterSet), END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ if (iso2ServiceParameterListType->ParameterSet.arrayLen < iso2ServiceParameterListType_ParameterSet_ARRAY_SIZE) {
+ errn = decode_iso2ParameterSetType(stream, &iso2ServiceParameterListType->ParameterSet.array[iso2ServiceParameterListType->ParameterSet.arrayLen++]);
+ } else {
+ errn = EXI_ERROR_OUT_OF_BOUNDS;
+ }
+ grammarID = 405;
+ break;
+ case 1:
+ done = 1;
+ grammarID = 4;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 405:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}ParameterSet), END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ if (iso2ServiceParameterListType->ParameterSet.arrayLen < iso2ServiceParameterListType_ParameterSet_ARRAY_SIZE) {
+ errn = decode_iso2ParameterSetType(stream, &iso2ServiceParameterListType->ParameterSet.array[iso2ServiceParameterListType->ParameterSet.arrayLen++]);
+ } else {
+ errn = EXI_ERROR_OUT_OF_BOUNDS;
+ }
+ grammarID = 406;
+ break;
+ case 1:
+ done = 1;
+ grammarID = 4;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 406:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}ParameterSet), END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ if (iso2ServiceParameterListType->ParameterSet.arrayLen < iso2ServiceParameterListType_ParameterSet_ARRAY_SIZE) {
+ errn = decode_iso2ParameterSetType(stream, &iso2ServiceParameterListType->ParameterSet.array[iso2ServiceParameterListType->ParameterSet.arrayLen++]);
+ } else {
+ errn = EXI_ERROR_OUT_OF_BOUNDS;
+ }
+ grammarID = 407;
+ break;
+ case 1:
+ done = 1;
+ grammarID = 4;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 407:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}ParameterSet), END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ if (iso2ServiceParameterListType->ParameterSet.arrayLen < iso2ServiceParameterListType_ParameterSet_ARRAY_SIZE) {
+ errn = decode_iso2ParameterSetType(stream, &iso2ServiceParameterListType->ParameterSet.array[iso2ServiceParameterListType->ParameterSet.arrayLen++]);
+ } else {
+ errn = EXI_ERROR_OUT_OF_BOUNDS;
+ }
+ grammarID = 408;
+ break;
+ case 1:
+ done = 1;
+ grammarID = 4;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 408:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}ParameterSet), END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ if (iso2ServiceParameterListType->ParameterSet.arrayLen < iso2ServiceParameterListType_ParameterSet_ARRAY_SIZE) {
+ errn = decode_iso2ParameterSetType(stream, &iso2ServiceParameterListType->ParameterSet.array[iso2ServiceParameterListType->ParameterSet.arrayLen++]);
+ } else {
+ errn = EXI_ERROR_OUT_OF_BOUNDS;
+ }
+ grammarID = 409;
+ break;
+ case 1:
+ done = 1;
+ grammarID = 4;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 409:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}ParameterSet), END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ if (iso2ServiceParameterListType->ParameterSet.arrayLen < iso2ServiceParameterListType_ParameterSet_ARRAY_SIZE) {
+ errn = decode_iso2ParameterSetType(stream, &iso2ServiceParameterListType->ParameterSet.array[iso2ServiceParameterListType->ParameterSet.arrayLen++]);
+ } else {
+ errn = EXI_ERROR_OUT_OF_BOUNDS;
+ }
+ grammarID = 410;
+ break;
+ case 1:
+ done = 1;
+ grammarID = 4;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 410:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}ParameterSet), END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ if (iso2ServiceParameterListType->ParameterSet.arrayLen < iso2ServiceParameterListType_ParameterSet_ARRAY_SIZE) {
+ errn = decode_iso2ParameterSetType(stream, &iso2ServiceParameterListType->ParameterSet.array[iso2ServiceParameterListType->ParameterSet.arrayLen++]);
+ } else {
+ errn = EXI_ERROR_OUT_OF_BOUNDS;
+ }
+ grammarID = 411;
+ break;
+ case 1:
+ done = 1;
+ grammarID = 4;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 411:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}ParameterSet), END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ if (iso2ServiceParameterListType->ParameterSet.arrayLen < iso2ServiceParameterListType_ParameterSet_ARRAY_SIZE) {
+ errn = decode_iso2ParameterSetType(stream, &iso2ServiceParameterListType->ParameterSet.array[iso2ServiceParameterListType->ParameterSet.arrayLen++]);
+ } else {
+ errn = EXI_ERROR_OUT_OF_BOUNDS;
+ }
+ grammarID = 412;
+ break;
+ case 1:
+ done = 1;
+ grammarID = 4;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 412:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}ParameterSet), END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ if (iso2ServiceParameterListType->ParameterSet.arrayLen < iso2ServiceParameterListType_ParameterSet_ARRAY_SIZE) {
+ errn = decode_iso2ParameterSetType(stream, &iso2ServiceParameterListType->ParameterSet.array[iso2ServiceParameterListType->ParameterSet.arrayLen++]);
+ } else {
+ errn = EXI_ERROR_OUT_OF_BOUNDS;
+ }
+ grammarID = 413;
+ break;
+ case 1:
+ done = 1;
+ grammarID = 4;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 413:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}ParameterSet), END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ if (iso2ServiceParameterListType->ParameterSet.arrayLen < iso2ServiceParameterListType_ParameterSet_ARRAY_SIZE) {
+ errn = decode_iso2ParameterSetType(stream, &iso2ServiceParameterListType->ParameterSet.array[iso2ServiceParameterListType->ParameterSet.arrayLen++]);
+ } else {
+ errn = EXI_ERROR_OUT_OF_BOUNDS;
+ }
+ grammarID = 414;
+ break;
+ case 1:
+ done = 1;
+ grammarID = 4;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 414:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}ParameterSet), END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ if (iso2ServiceParameterListType->ParameterSet.arrayLen < iso2ServiceParameterListType_ParameterSet_ARRAY_SIZE) {
+ errn = decode_iso2ParameterSetType(stream, &iso2ServiceParameterListType->ParameterSet.array[iso2ServiceParameterListType->ParameterSet.arrayLen++]);
+ } else {
+ errn = EXI_ERROR_OUT_OF_BOUNDS;
+ }
+ grammarID = 415;
+ break;
+ case 1:
+ done = 1;
+ grammarID = 4;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 415:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}ParameterSet), END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ if (iso2ServiceParameterListType->ParameterSet.arrayLen < iso2ServiceParameterListType_ParameterSet_ARRAY_SIZE) {
+ errn = decode_iso2ParameterSetType(stream, &iso2ServiceParameterListType->ParameterSet.array[iso2ServiceParameterListType->ParameterSet.arrayLen++]);
+ } else {
+ errn = EXI_ERROR_OUT_OF_BOUNDS;
+ }
+ grammarID = 416;
+ break;
+ case 1:
+ done = 1;
+ grammarID = 4;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 416:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}ParameterSet), END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ if (iso2ServiceParameterListType->ParameterSet.arrayLen < iso2ServiceParameterListType_ParameterSet_ARRAY_SIZE) {
+ errn = decode_iso2ParameterSetType(stream, &iso2ServiceParameterListType->ParameterSet.array[iso2ServiceParameterListType->ParameterSet.arrayLen++]);
+ } else {
+ errn = EXI_ERROR_OUT_OF_BOUNDS;
+ }
+ grammarID = 417;
+ break;
+ case 1:
+ done = 1;
+ grammarID = 4;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 417:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}ParameterSet), END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ if (iso2ServiceParameterListType->ParameterSet.arrayLen < iso2ServiceParameterListType_ParameterSet_ARRAY_SIZE) {
+ errn = decode_iso2ParameterSetType(stream, &iso2ServiceParameterListType->ParameterSet.array[iso2ServiceParameterListType->ParameterSet.arrayLen++]);
+ } else {
+ errn = EXI_ERROR_OUT_OF_BOUNDS;
+ }
+ grammarID = 418;
+ break;
+ case 1:
+ done = 1;
+ grammarID = 4;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 418:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}ParameterSet), END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ if (iso2ServiceParameterListType->ParameterSet.arrayLen < iso2ServiceParameterListType_ParameterSet_ARRAY_SIZE) {
+ errn = decode_iso2ParameterSetType(stream, &iso2ServiceParameterListType->ParameterSet.array[iso2ServiceParameterListType->ParameterSet.arrayLen++]);
+ } else {
+ errn = EXI_ERROR_OUT_OF_BOUNDS;
+ }
+ grammarID = 419;
+ break;
+ case 1:
+ done = 1;
+ grammarID = 4;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 419:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}ParameterSet), END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ if (iso2ServiceParameterListType->ParameterSet.arrayLen < iso2ServiceParameterListType_ParameterSet_ARRAY_SIZE) {
+ errn = decode_iso2ParameterSetType(stream, &iso2ServiceParameterListType->ParameterSet.array[iso2ServiceParameterListType->ParameterSet.arrayLen++]);
+ } else {
+ errn = EXI_ERROR_OUT_OF_BOUNDS;
+ }
+ grammarID = 420;
+ break;
+ case 1:
+ done = 1;
+ grammarID = 4;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 420:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}ParameterSet), END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ if (iso2ServiceParameterListType->ParameterSet.arrayLen < iso2ServiceParameterListType_ParameterSet_ARRAY_SIZE) {
+ errn = decode_iso2ParameterSetType(stream, &iso2ServiceParameterListType->ParameterSet.array[iso2ServiceParameterListType->ParameterSet.arrayLen++]);
+ } else {
+ errn = EXI_ERROR_OUT_OF_BOUNDS;
+ }
+ grammarID = 421;
+ break;
+ case 1:
+ done = 1;
+ grammarID = 4;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 421:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}ParameterSet), END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ if (iso2ServiceParameterListType->ParameterSet.arrayLen < iso2ServiceParameterListType_ParameterSet_ARRAY_SIZE) {
+ errn = decode_iso2ParameterSetType(stream, &iso2ServiceParameterListType->ParameterSet.array[iso2ServiceParameterListType->ParameterSet.arrayLen++]);
+ } else {
+ errn = EXI_ERROR_OUT_OF_BOUNDS;
+ }
+ grammarID = 422;
+ break;
+ case 1:
+ done = 1;
+ grammarID = 4;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 422:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}ParameterSet), END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ if (iso2ServiceParameterListType->ParameterSet.arrayLen < iso2ServiceParameterListType_ParameterSet_ARRAY_SIZE) {
+ errn = decode_iso2ParameterSetType(stream, &iso2ServiceParameterListType->ParameterSet.array[iso2ServiceParameterListType->ParameterSet.arrayLen++]);
+ } else {
+ errn = EXI_ERROR_OUT_OF_BOUNDS;
+ }
+ grammarID = 423;
+ break;
+ case 1:
+ done = 1;
+ grammarID = 4;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 423:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}ParameterSet), END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ if (iso2ServiceParameterListType->ParameterSet.arrayLen < iso2ServiceParameterListType_ParameterSet_ARRAY_SIZE) {
+ errn = decode_iso2ParameterSetType(stream, &iso2ServiceParameterListType->ParameterSet.array[iso2ServiceParameterListType->ParameterSet.arrayLen++]);
+ } else {
+ errn = EXI_ERROR_OUT_OF_BOUNDS;
+ }
+ grammarID = 424;
+ break;
+ case 1:
+ done = 1;
+ grammarID = 4;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 424:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}ParameterSet), END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ if (iso2ServiceParameterListType->ParameterSet.arrayLen < iso2ServiceParameterListType_ParameterSet_ARRAY_SIZE) {
+ errn = decode_iso2ParameterSetType(stream, &iso2ServiceParameterListType->ParameterSet.array[iso2ServiceParameterListType->ParameterSet.arrayLen++]);
+ } else {
+ errn = EXI_ERROR_OUT_OF_BOUNDS;
+ }
+ grammarID = 425;
+ break;
+ case 1:
+ done = 1;
+ grammarID = 4;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 425:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}ParameterSet), END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ if (iso2ServiceParameterListType->ParameterSet.arrayLen < iso2ServiceParameterListType_ParameterSet_ARRAY_SIZE) {
+ errn = decode_iso2ParameterSetType(stream, &iso2ServiceParameterListType->ParameterSet.array[iso2ServiceParameterListType->ParameterSet.arrayLen++]);
+ } else {
+ errn = EXI_ERROR_OUT_OF_BOUNDS;
+ }
+ grammarID = 426;
+ break;
+ case 1:
+ done = 1;
+ grammarID = 4;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 426:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}ParameterSet), END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ if (iso2ServiceParameterListType->ParameterSet.arrayLen < iso2ServiceParameterListType_ParameterSet_ARRAY_SIZE) {
+ errn = decode_iso2ParameterSetType(stream, &iso2ServiceParameterListType->ParameterSet.array[iso2ServiceParameterListType->ParameterSet.arrayLen++]);
+ } else {
+ errn = EXI_ERROR_OUT_OF_BOUNDS;
+ }
+ grammarID = 427;
+ break;
+ case 1:
+ done = 1;
+ grammarID = 4;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 427:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}ParameterSet), END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ if (iso2ServiceParameterListType->ParameterSet.arrayLen < iso2ServiceParameterListType_ParameterSet_ARRAY_SIZE) {
+ errn = decode_iso2ParameterSetType(stream, &iso2ServiceParameterListType->ParameterSet.array[iso2ServiceParameterListType->ParameterSet.arrayLen++]);
+ } else {
+ errn = EXI_ERROR_OUT_OF_BOUNDS;
+ }
+ grammarID = 428;
+ break;
+ case 1:
+ done = 1;
+ grammarID = 4;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 428:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}ParameterSet), END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ if (iso2ServiceParameterListType->ParameterSet.arrayLen < iso2ServiceParameterListType_ParameterSet_ARRAY_SIZE) {
+ errn = decode_iso2ParameterSetType(stream, &iso2ServiceParameterListType->ParameterSet.array[iso2ServiceParameterListType->ParameterSet.arrayLen++]);
+ } else {
+ errn = EXI_ERROR_OUT_OF_BOUNDS;
+ }
+ grammarID = 429;
+ break;
+ case 1:
+ done = 1;
+ grammarID = 4;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 429:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}ParameterSet), END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ if (iso2ServiceParameterListType->ParameterSet.arrayLen < iso2ServiceParameterListType_ParameterSet_ARRAY_SIZE) {
+ errn = decode_iso2ParameterSetType(stream, &iso2ServiceParameterListType->ParameterSet.array[iso2ServiceParameterListType->ParameterSet.arrayLen++]);
+ } else {
+ errn = EXI_ERROR_OUT_OF_BOUNDS;
+ }
+ grammarID = 430;
+ break;
+ case 1:
+ done = 1;
+ grammarID = 4;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 430:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}ParameterSet), END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ if (iso2ServiceParameterListType->ParameterSet.arrayLen < iso2ServiceParameterListType_ParameterSet_ARRAY_SIZE) {
+ errn = decode_iso2ParameterSetType(stream, &iso2ServiceParameterListType->ParameterSet.array[iso2ServiceParameterListType->ParameterSet.arrayLen++]);
+ } else {
+ errn = EXI_ERROR_OUT_OF_BOUNDS;
+ }
+ grammarID = 431;
+ break;
+ case 1:
+ done = 1;
+ grammarID = 4;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 431:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}ParameterSet), END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ if (iso2ServiceParameterListType->ParameterSet.arrayLen < iso2ServiceParameterListType_ParameterSet_ARRAY_SIZE) {
+ errn = decode_iso2ParameterSetType(stream, &iso2ServiceParameterListType->ParameterSet.array[iso2ServiceParameterListType->ParameterSet.arrayLen++]);
+ } else {
+ errn = EXI_ERROR_OUT_OF_BOUNDS;
+ }
+ grammarID = 432;
+ break;
+ case 1:
+ done = 1;
+ grammarID = 4;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 432:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}ParameterSet), END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ if (iso2ServiceParameterListType->ParameterSet.arrayLen < iso2ServiceParameterListType_ParameterSet_ARRAY_SIZE) {
+ errn = decode_iso2ParameterSetType(stream, &iso2ServiceParameterListType->ParameterSet.array[iso2ServiceParameterListType->ParameterSet.arrayLen++]);
+ } else {
+ errn = EXI_ERROR_OUT_OF_BOUNDS;
+ }
+ grammarID = 433;
+ break;
+ case 1:
+ done = 1;
+ grammarID = 4;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 433:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}ParameterSet), END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ if (iso2ServiceParameterListType->ParameterSet.arrayLen < iso2ServiceParameterListType_ParameterSet_ARRAY_SIZE) {
+ errn = decode_iso2ParameterSetType(stream, &iso2ServiceParameterListType->ParameterSet.array[iso2ServiceParameterListType->ParameterSet.arrayLen++]);
+ } else {
+ errn = EXI_ERROR_OUT_OF_BOUNDS;
+ }
+ grammarID = 434;
+ break;
+ case 1:
+ done = 1;
+ grammarID = 4;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 434:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}ParameterSet), END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ if (iso2ServiceParameterListType->ParameterSet.arrayLen < iso2ServiceParameterListType_ParameterSet_ARRAY_SIZE) {
+ errn = decode_iso2ParameterSetType(stream, &iso2ServiceParameterListType->ParameterSet.array[iso2ServiceParameterListType->ParameterSet.arrayLen++]);
+ } else {
+ errn = EXI_ERROR_OUT_OF_BOUNDS;
+ }
+ grammarID = 435;
+ break;
+ case 1:
+ done = 1;
+ grammarID = 4;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 435:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}ParameterSet), END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ if (iso2ServiceParameterListType->ParameterSet.arrayLen < iso2ServiceParameterListType_ParameterSet_ARRAY_SIZE) {
+ errn = decode_iso2ParameterSetType(stream, &iso2ServiceParameterListType->ParameterSet.array[iso2ServiceParameterListType->ParameterSet.arrayLen++]);
+ } else {
+ errn = EXI_ERROR_OUT_OF_BOUNDS;
+ }
+ grammarID = 436;
+ break;
+ case 1:
+ done = 1;
+ grammarID = 4;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 436:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}ParameterSet), END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ if (iso2ServiceParameterListType->ParameterSet.arrayLen < iso2ServiceParameterListType_ParameterSet_ARRAY_SIZE) {
+ errn = decode_iso2ParameterSetType(stream, &iso2ServiceParameterListType->ParameterSet.array[iso2ServiceParameterListType->ParameterSet.arrayLen++]);
+ } else {
+ errn = EXI_ERROR_OUT_OF_BOUNDS;
+ }
+ grammarID = 437;
+ break;
+ case 1:
+ done = 1;
+ grammarID = 4;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 437:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}ParameterSet), END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ if (iso2ServiceParameterListType->ParameterSet.arrayLen < iso2ServiceParameterListType_ParameterSet_ARRAY_SIZE) {
+ errn = decode_iso2ParameterSetType(stream, &iso2ServiceParameterListType->ParameterSet.array[iso2ServiceParameterListType->ParameterSet.arrayLen++]);
+ } else {
+ errn = EXI_ERROR_OUT_OF_BOUNDS;
+ }
+ grammarID = 438;
+ break;
+ case 1:
+ done = 1;
+ grammarID = 4;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 438:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}ParameterSet), END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ if (iso2ServiceParameterListType->ParameterSet.arrayLen < iso2ServiceParameterListType_ParameterSet_ARRAY_SIZE) {
+ errn = decode_iso2ParameterSetType(stream, &iso2ServiceParameterListType->ParameterSet.array[iso2ServiceParameterListType->ParameterSet.arrayLen++]);
+ } else {
+ errn = EXI_ERROR_OUT_OF_BOUNDS;
+ }
+ grammarID = 439;
+ break;
+ case 1:
+ done = 1;
+ grammarID = 4;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 439:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}ParameterSet), END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ if (iso2ServiceParameterListType->ParameterSet.arrayLen < iso2ServiceParameterListType_ParameterSet_ARRAY_SIZE) {
+ errn = decode_iso2ParameterSetType(stream, &iso2ServiceParameterListType->ParameterSet.array[iso2ServiceParameterListType->ParameterSet.arrayLen++]);
+ } else {
+ errn = EXI_ERROR_OUT_OF_BOUNDS;
+ }
+ grammarID = 440;
+ break;
+ case 1:
+ done = 1;
+ grammarID = 4;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 440:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}ParameterSet), END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ if (iso2ServiceParameterListType->ParameterSet.arrayLen < iso2ServiceParameterListType_ParameterSet_ARRAY_SIZE) {
+ errn = decode_iso2ParameterSetType(stream, &iso2ServiceParameterListType->ParameterSet.array[iso2ServiceParameterListType->ParameterSet.arrayLen++]);
+ } else {
+ errn = EXI_ERROR_OUT_OF_BOUNDS;
+ }
+ grammarID = 441;
+ break;
+ case 1:
+ done = 1;
+ grammarID = 4;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 441:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}ParameterSet), END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ if (iso2ServiceParameterListType->ParameterSet.arrayLen < iso2ServiceParameterListType_ParameterSet_ARRAY_SIZE) {
+ errn = decode_iso2ParameterSetType(stream, &iso2ServiceParameterListType->ParameterSet.array[iso2ServiceParameterListType->ParameterSet.arrayLen++]);
+ } else {
+ errn = EXI_ERROR_OUT_OF_BOUNDS;
+ }
+ grammarID = 442;
+ break;
+ case 1:
+ done = 1;
+ grammarID = 4;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 442:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}ParameterSet), END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ if (iso2ServiceParameterListType->ParameterSet.arrayLen < iso2ServiceParameterListType_ParameterSet_ARRAY_SIZE) {
+ errn = decode_iso2ParameterSetType(stream, &iso2ServiceParameterListType->ParameterSet.array[iso2ServiceParameterListType->ParameterSet.arrayLen++]);
+ } else {
+ errn = EXI_ERROR_OUT_OF_BOUNDS;
+ }
+ grammarID = 443;
+ break;
+ case 1:
+ done = 1;
+ grammarID = 4;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 443:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}ParameterSet), END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ if (iso2ServiceParameterListType->ParameterSet.arrayLen < iso2ServiceParameterListType_ParameterSet_ARRAY_SIZE) {
+ errn = decode_iso2ParameterSetType(stream, &iso2ServiceParameterListType->ParameterSet.array[iso2ServiceParameterListType->ParameterSet.arrayLen++]);
+ } else {
+ errn = EXI_ERROR_OUT_OF_BOUNDS;
+ }
+ grammarID = 444;
+ break;
+ case 1:
+ done = 1;
+ grammarID = 4;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 444:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}ParameterSet), END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ if (iso2ServiceParameterListType->ParameterSet.arrayLen < iso2ServiceParameterListType_ParameterSet_ARRAY_SIZE) {
+ errn = decode_iso2ParameterSetType(stream, &iso2ServiceParameterListType->ParameterSet.array[iso2ServiceParameterListType->ParameterSet.arrayLen++]);
+ } else {
+ errn = EXI_ERROR_OUT_OF_BOUNDS;
+ }
+ grammarID = 445;
+ break;
+ case 1:
+ done = 1;
+ grammarID = 4;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 445:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}ParameterSet), END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ if (iso2ServiceParameterListType->ParameterSet.arrayLen < iso2ServiceParameterListType_ParameterSet_ARRAY_SIZE) {
+ errn = decode_iso2ParameterSetType(stream, &iso2ServiceParameterListType->ParameterSet.array[iso2ServiceParameterListType->ParameterSet.arrayLen++]);
+ } else {
+ errn = EXI_ERROR_OUT_OF_BOUNDS;
+ }
+ grammarID = 446;
+ break;
+ case 1:
+ done = 1;
+ grammarID = 4;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 446:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}ParameterSet), END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ if (iso2ServiceParameterListType->ParameterSet.arrayLen < iso2ServiceParameterListType_ParameterSet_ARRAY_SIZE) {
+ errn = decode_iso2ParameterSetType(stream, &iso2ServiceParameterListType->ParameterSet.array[iso2ServiceParameterListType->ParameterSet.arrayLen++]);
+ } else {
+ errn = EXI_ERROR_OUT_OF_BOUNDS;
+ }
+ grammarID = 447;
+ break;
+ case 1:
+ done = 1;
+ grammarID = 4;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 447:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}ParameterSet), END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ if (iso2ServiceParameterListType->ParameterSet.arrayLen < iso2ServiceParameterListType_ParameterSet_ARRAY_SIZE) {
+ errn = decode_iso2ParameterSetType(stream, &iso2ServiceParameterListType->ParameterSet.array[iso2ServiceParameterListType->ParameterSet.arrayLen++]);
+ } else {
+ errn = EXI_ERROR_OUT_OF_BOUNDS;
+ }
+ grammarID = 448;
+ break;
+ case 1:
+ done = 1;
+ grammarID = 4;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 448:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}ParameterSet), END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ if (iso2ServiceParameterListType->ParameterSet.arrayLen < iso2ServiceParameterListType_ParameterSet_ARRAY_SIZE) {
+ errn = decode_iso2ParameterSetType(stream, &iso2ServiceParameterListType->ParameterSet.array[iso2ServiceParameterListType->ParameterSet.arrayLen++]);
+ } else {
+ errn = EXI_ERROR_OUT_OF_BOUNDS;
+ }
+ grammarID = 449;
+ break;
+ case 1:
+ done = 1;
+ grammarID = 4;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 449:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}ParameterSet), END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ if (iso2ServiceParameterListType->ParameterSet.arrayLen < iso2ServiceParameterListType_ParameterSet_ARRAY_SIZE) {
+ errn = decode_iso2ParameterSetType(stream, &iso2ServiceParameterListType->ParameterSet.array[iso2ServiceParameterListType->ParameterSet.arrayLen++]);
+ } else {
+ errn = EXI_ERROR_OUT_OF_BOUNDS;
+ }
+ grammarID = 450;
+ break;
+ case 1:
+ done = 1;
+ grammarID = 4;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 450:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}ParameterSet), END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ if (iso2ServiceParameterListType->ParameterSet.arrayLen < iso2ServiceParameterListType_ParameterSet_ARRAY_SIZE) {
+ errn = decode_iso2ParameterSetType(stream, &iso2ServiceParameterListType->ParameterSet.array[iso2ServiceParameterListType->ParameterSet.arrayLen++]);
+ } else {
+ errn = EXI_ERROR_OUT_OF_BOUNDS;
+ }
+ grammarID = 451;
+ break;
+ case 1:
+ done = 1;
+ grammarID = 4;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 451:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}ParameterSet), END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ if (iso2ServiceParameterListType->ParameterSet.arrayLen < iso2ServiceParameterListType_ParameterSet_ARRAY_SIZE) {
+ errn = decode_iso2ParameterSetType(stream, &iso2ServiceParameterListType->ParameterSet.array[iso2ServiceParameterListType->ParameterSet.arrayLen++]);
+ } else {
+ errn = EXI_ERROR_OUT_OF_BOUNDS;
+ }
+ grammarID = 452;
+ break;
+ case 1:
+ done = 1;
+ grammarID = 4;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 452:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}ParameterSet), END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ if (iso2ServiceParameterListType->ParameterSet.arrayLen < iso2ServiceParameterListType_ParameterSet_ARRAY_SIZE) {
+ errn = decode_iso2ParameterSetType(stream, &iso2ServiceParameterListType->ParameterSet.array[iso2ServiceParameterListType->ParameterSet.arrayLen++]);
+ } else {
+ errn = EXI_ERROR_OUT_OF_BOUNDS;
+ }
+ grammarID = 453;
+ break;
+ case 1:
+ done = 1;
+ grammarID = 4;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 453:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}ParameterSet), END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ if (iso2ServiceParameterListType->ParameterSet.arrayLen < iso2ServiceParameterListType_ParameterSet_ARRAY_SIZE) {
+ errn = decode_iso2ParameterSetType(stream, &iso2ServiceParameterListType->ParameterSet.array[iso2ServiceParameterListType->ParameterSet.arrayLen++]);
+ } else {
+ errn = EXI_ERROR_OUT_OF_BOUNDS;
+ }
+ grammarID = 454;
+ break;
+ case 1:
+ done = 1;
+ grammarID = 4;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 454:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}ParameterSet), END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ if (iso2ServiceParameterListType->ParameterSet.arrayLen < iso2ServiceParameterListType_ParameterSet_ARRAY_SIZE) {
+ errn = decode_iso2ParameterSetType(stream, &iso2ServiceParameterListType->ParameterSet.array[iso2ServiceParameterListType->ParameterSet.arrayLen++]);
+ } else {
+ errn = EXI_ERROR_OUT_OF_BOUNDS;
+ }
+ grammarID = 455;
+ break;
+ case 1:
+ done = 1;
+ grammarID = 4;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 455:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}ParameterSet), END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ if (iso2ServiceParameterListType->ParameterSet.arrayLen < iso2ServiceParameterListType_ParameterSet_ARRAY_SIZE) {
+ errn = decode_iso2ParameterSetType(stream, &iso2ServiceParameterListType->ParameterSet.array[iso2ServiceParameterListType->ParameterSet.arrayLen++]);
+ } else {
+ errn = EXI_ERROR_OUT_OF_BOUNDS;
+ }
+ grammarID = 456;
+ break;
+ case 1:
+ done = 1;
+ grammarID = 4;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 456:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}ParameterSet), END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ if (iso2ServiceParameterListType->ParameterSet.arrayLen < iso2ServiceParameterListType_ParameterSet_ARRAY_SIZE) {
+ errn = decode_iso2ParameterSetType(stream, &iso2ServiceParameterListType->ParameterSet.array[iso2ServiceParameterListType->ParameterSet.arrayLen++]);
+ } else {
+ errn = EXI_ERROR_OUT_OF_BOUNDS;
+ }
+ grammarID = 457;
+ break;
+ case 1:
+ done = 1;
+ grammarID = 4;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 457:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}ParameterSet), END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ if (iso2ServiceParameterListType->ParameterSet.arrayLen < iso2ServiceParameterListType_ParameterSet_ARRAY_SIZE) {
+ errn = decode_iso2ParameterSetType(stream, &iso2ServiceParameterListType->ParameterSet.array[iso2ServiceParameterListType->ParameterSet.arrayLen++]);
+ } else {
+ errn = EXI_ERROR_OUT_OF_BOUNDS;
+ }
+ grammarID = 458;
+ break;
+ case 1:
+ done = 1;
+ grammarID = 4;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 458:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}ParameterSet), END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ if (iso2ServiceParameterListType->ParameterSet.arrayLen < iso2ServiceParameterListType_ParameterSet_ARRAY_SIZE) {
+ errn = decode_iso2ParameterSetType(stream, &iso2ServiceParameterListType->ParameterSet.array[iso2ServiceParameterListType->ParameterSet.arrayLen++]);
+ } else {
+ errn = EXI_ERROR_OUT_OF_BOUNDS;
+ }
+ grammarID = 459;
+ break;
+ case 1:
+ done = 1;
+ grammarID = 4;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 459:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}ParameterSet), END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ if (iso2ServiceParameterListType->ParameterSet.arrayLen < iso2ServiceParameterListType_ParameterSet_ARRAY_SIZE) {
+ errn = decode_iso2ParameterSetType(stream, &iso2ServiceParameterListType->ParameterSet.array[iso2ServiceParameterListType->ParameterSet.arrayLen++]);
+ } else {
+ errn = EXI_ERROR_OUT_OF_BOUNDS;
+ }
+ grammarID = 460;
+ break;
+ case 1:
+ done = 1;
+ grammarID = 4;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 460:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}ParameterSet), END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ if (iso2ServiceParameterListType->ParameterSet.arrayLen < iso2ServiceParameterListType_ParameterSet_ARRAY_SIZE) {
+ errn = decode_iso2ParameterSetType(stream, &iso2ServiceParameterListType->ParameterSet.array[iso2ServiceParameterListType->ParameterSet.arrayLen++]);
+ } else {
+ errn = EXI_ERROR_OUT_OF_BOUNDS;
+ }
+ grammarID = 461;
+ break;
+ case 1:
+ done = 1;
+ grammarID = 4;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 461:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}ParameterSet), END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ if (iso2ServiceParameterListType->ParameterSet.arrayLen < iso2ServiceParameterListType_ParameterSet_ARRAY_SIZE) {
+ errn = decode_iso2ParameterSetType(stream, &iso2ServiceParameterListType->ParameterSet.array[iso2ServiceParameterListType->ParameterSet.arrayLen++]);
+ } else {
+ errn = EXI_ERROR_OUT_OF_BOUNDS;
+ }
+ grammarID = 462;
+ break;
+ case 1:
+ done = 1;
+ grammarID = 4;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 462:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}ParameterSet), END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ if (iso2ServiceParameterListType->ParameterSet.arrayLen < iso2ServiceParameterListType_ParameterSet_ARRAY_SIZE) {
+ errn = decode_iso2ParameterSetType(stream, &iso2ServiceParameterListType->ParameterSet.array[iso2ServiceParameterListType->ParameterSet.arrayLen++]);
+ } else {
+ errn = EXI_ERROR_OUT_OF_BOUNDS;
+ }
+ grammarID = 463;
+ break;
+ case 1:
+ done = 1;
+ grammarID = 4;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 463:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}ParameterSet), END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ if (iso2ServiceParameterListType->ParameterSet.arrayLen < iso2ServiceParameterListType_ParameterSet_ARRAY_SIZE) {
+ errn = decode_iso2ParameterSetType(stream, &iso2ServiceParameterListType->ParameterSet.array[iso2ServiceParameterListType->ParameterSet.arrayLen++]);
+ } else {
+ errn = EXI_ERROR_OUT_OF_BOUNDS;
+ }
+ grammarID = 464;
+ break;
+ case 1:
+ done = 1;
+ grammarID = 4;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 464:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}ParameterSet), END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ if (iso2ServiceParameterListType->ParameterSet.arrayLen < iso2ServiceParameterListType_ParameterSet_ARRAY_SIZE) {
+ errn = decode_iso2ParameterSetType(stream, &iso2ServiceParameterListType->ParameterSet.array[iso2ServiceParameterListType->ParameterSet.arrayLen++]);
+ } else {
+ errn = EXI_ERROR_OUT_OF_BOUNDS;
+ }
+ grammarID = 465;
+ break;
+ case 1:
+ done = 1;
+ grammarID = 4;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 465:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}ParameterSet), END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ if (iso2ServiceParameterListType->ParameterSet.arrayLen < iso2ServiceParameterListType_ParameterSet_ARRAY_SIZE) {
+ errn = decode_iso2ParameterSetType(stream, &iso2ServiceParameterListType->ParameterSet.array[iso2ServiceParameterListType->ParameterSet.arrayLen++]);
+ } else {
+ errn = EXI_ERROR_OUT_OF_BOUNDS;
+ }
+ grammarID = 466;
+ break;
+ case 1:
+ done = 1;
+ grammarID = 4;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 466:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}ParameterSet), END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ if (iso2ServiceParameterListType->ParameterSet.arrayLen < iso2ServiceParameterListType_ParameterSet_ARRAY_SIZE) {
+ errn = decode_iso2ParameterSetType(stream, &iso2ServiceParameterListType->ParameterSet.array[iso2ServiceParameterListType->ParameterSet.arrayLen++]);
+ } else {
+ errn = EXI_ERROR_OUT_OF_BOUNDS;
+ }
+ grammarID = 467;
+ break;
+ case 1:
+ done = 1;
+ grammarID = 4;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 467:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}ParameterSet), END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ if (iso2ServiceParameterListType->ParameterSet.arrayLen < iso2ServiceParameterListType_ParameterSet_ARRAY_SIZE) {
+ errn = decode_iso2ParameterSetType(stream, &iso2ServiceParameterListType->ParameterSet.array[iso2ServiceParameterListType->ParameterSet.arrayLen++]);
+ } else {
+ errn = EXI_ERROR_OUT_OF_BOUNDS;
+ }
+ grammarID = 468;
+ break;
+ case 1:
+ done = 1;
+ grammarID = 4;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 468:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}ParameterSet), END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ if (iso2ServiceParameterListType->ParameterSet.arrayLen < iso2ServiceParameterListType_ParameterSet_ARRAY_SIZE) {
+ errn = decode_iso2ParameterSetType(stream, &iso2ServiceParameterListType->ParameterSet.array[iso2ServiceParameterListType->ParameterSet.arrayLen++]);
+ } else {
+ errn = EXI_ERROR_OUT_OF_BOUNDS;
+ }
+ grammarID = 469;
+ break;
+ case 1:
+ done = 1;
+ grammarID = 4;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 469:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}ParameterSet), END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ if (iso2ServiceParameterListType->ParameterSet.arrayLen < iso2ServiceParameterListType_ParameterSet_ARRAY_SIZE) {
+ errn = decode_iso2ParameterSetType(stream, &iso2ServiceParameterListType->ParameterSet.array[iso2ServiceParameterListType->ParameterSet.arrayLen++]);
+ } else {
+ errn = EXI_ERROR_OUT_OF_BOUNDS;
+ }
+ grammarID = 470;
+ break;
+ case 1:
+ done = 1;
+ grammarID = 4;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 470:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}ParameterSet), END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ if (iso2ServiceParameterListType->ParameterSet.arrayLen < iso2ServiceParameterListType_ParameterSet_ARRAY_SIZE) {
+ errn = decode_iso2ParameterSetType(stream, &iso2ServiceParameterListType->ParameterSet.array[iso2ServiceParameterListType->ParameterSet.arrayLen++]);
+ } else {
+ errn = EXI_ERROR_OUT_OF_BOUNDS;
+ }
+ grammarID = 471;
+ break;
+ case 1:
+ done = 1;
+ grammarID = 4;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 471:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}ParameterSet), END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ if (iso2ServiceParameterListType->ParameterSet.arrayLen < iso2ServiceParameterListType_ParameterSet_ARRAY_SIZE) {
+ errn = decode_iso2ParameterSetType(stream, &iso2ServiceParameterListType->ParameterSet.array[iso2ServiceParameterListType->ParameterSet.arrayLen++]);
+ } else {
+ errn = EXI_ERROR_OUT_OF_BOUNDS;
+ }
+ grammarID = 472;
+ break;
+ case 1:
+ done = 1;
+ grammarID = 4;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 472:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}ParameterSet), END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ if (iso2ServiceParameterListType->ParameterSet.arrayLen < iso2ServiceParameterListType_ParameterSet_ARRAY_SIZE) {
+ errn = decode_iso2ParameterSetType(stream, &iso2ServiceParameterListType->ParameterSet.array[iso2ServiceParameterListType->ParameterSet.arrayLen++]);
+ } else {
+ errn = EXI_ERROR_OUT_OF_BOUNDS;
+ }
+ grammarID = 473;
+ break;
+ case 1:
+ done = 1;
+ grammarID = 4;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 473:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}ParameterSet), END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ if (iso2ServiceParameterListType->ParameterSet.arrayLen < iso2ServiceParameterListType_ParameterSet_ARRAY_SIZE) {
+ errn = decode_iso2ParameterSetType(stream, &iso2ServiceParameterListType->ParameterSet.array[iso2ServiceParameterListType->ParameterSet.arrayLen++]);
+ } else {
+ errn = EXI_ERROR_OUT_OF_BOUNDS;
+ }
+ grammarID = 474;
+ break;
+ case 1:
+ done = 1;
+ grammarID = 4;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 474:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}ParameterSet), END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ if (iso2ServiceParameterListType->ParameterSet.arrayLen < iso2ServiceParameterListType_ParameterSet_ARRAY_SIZE) {
+ errn = decode_iso2ParameterSetType(stream, &iso2ServiceParameterListType->ParameterSet.array[iso2ServiceParameterListType->ParameterSet.arrayLen++]);
+ } else {
+ errn = EXI_ERROR_OUT_OF_BOUNDS;
+ }
+ grammarID = 475;
+ break;
+ case 1:
+ done = 1;
+ grammarID = 4;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 475:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}ParameterSet), END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ if (iso2ServiceParameterListType->ParameterSet.arrayLen < iso2ServiceParameterListType_ParameterSet_ARRAY_SIZE) {
+ errn = decode_iso2ParameterSetType(stream, &iso2ServiceParameterListType->ParameterSet.array[iso2ServiceParameterListType->ParameterSet.arrayLen++]);
+ } else {
+ errn = EXI_ERROR_OUT_OF_BOUNDS;
+ }
+ grammarID = 476;
+ break;
+ case 1:
+ done = 1;
+ grammarID = 4;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 476:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}ParameterSet), END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ if (iso2ServiceParameterListType->ParameterSet.arrayLen < iso2ServiceParameterListType_ParameterSet_ARRAY_SIZE) {
+ errn = decode_iso2ParameterSetType(stream, &iso2ServiceParameterListType->ParameterSet.array[iso2ServiceParameterListType->ParameterSet.arrayLen++]);
+ } else {
+ errn = EXI_ERROR_OUT_OF_BOUNDS;
+ }
+ grammarID = 477;
+ break;
+ case 1:
+ done = 1;
+ grammarID = 4;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 477:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}ParameterSet), END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ if (iso2ServiceParameterListType->ParameterSet.arrayLen < iso2ServiceParameterListType_ParameterSet_ARRAY_SIZE) {
+ errn = decode_iso2ParameterSetType(stream, &iso2ServiceParameterListType->ParameterSet.array[iso2ServiceParameterListType->ParameterSet.arrayLen++]);
+ } else {
+ errn = EXI_ERROR_OUT_OF_BOUNDS;
+ }
+ grammarID = 478;
+ break;
+ case 1:
+ done = 1;
+ grammarID = 4;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 478:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}ParameterSet), END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ if (iso2ServiceParameterListType->ParameterSet.arrayLen < iso2ServiceParameterListType_ParameterSet_ARRAY_SIZE) {
+ errn = decode_iso2ParameterSetType(stream, &iso2ServiceParameterListType->ParameterSet.array[iso2ServiceParameterListType->ParameterSet.arrayLen++]);
+ } else {
+ errn = EXI_ERROR_OUT_OF_BOUNDS;
+ }
+ grammarID = 479;
+ break;
+ case 1:
+ done = 1;
+ grammarID = 4;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 479:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}ParameterSet), END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ if (iso2ServiceParameterListType->ParameterSet.arrayLen < iso2ServiceParameterListType_ParameterSet_ARRAY_SIZE) {
+ errn = decode_iso2ParameterSetType(stream, &iso2ServiceParameterListType->ParameterSet.array[iso2ServiceParameterListType->ParameterSet.arrayLen++]);
+ } else {
+ errn = EXI_ERROR_OUT_OF_BOUNDS;
+ }
+ grammarID = 480;
+ break;
+ case 1:
+ done = 1;
+ grammarID = 4;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 480:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}ParameterSet), END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ if (iso2ServiceParameterListType->ParameterSet.arrayLen < iso2ServiceParameterListType_ParameterSet_ARRAY_SIZE) {
+ errn = decode_iso2ParameterSetType(stream, &iso2ServiceParameterListType->ParameterSet.array[iso2ServiceParameterListType->ParameterSet.arrayLen++]);
+ } else {
+ errn = EXI_ERROR_OUT_OF_BOUNDS;
+ }
+ grammarID = 481;
+ break;
+ case 1:
+ done = 1;
+ grammarID = 4;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 481:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}ParameterSet), END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ if (iso2ServiceParameterListType->ParameterSet.arrayLen < iso2ServiceParameterListType_ParameterSet_ARRAY_SIZE) {
+ errn = decode_iso2ParameterSetType(stream, &iso2ServiceParameterListType->ParameterSet.array[iso2ServiceParameterListType->ParameterSet.arrayLen++]);
+ } else {
+ errn = EXI_ERROR_OUT_OF_BOUNDS;
+ }
+ grammarID = 482;
+ break;
+ case 1:
+ done = 1;
+ grammarID = 4;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 482:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}ParameterSet), END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ if (iso2ServiceParameterListType->ParameterSet.arrayLen < iso2ServiceParameterListType_ParameterSet_ARRAY_SIZE) {
+ errn = decode_iso2ParameterSetType(stream, &iso2ServiceParameterListType->ParameterSet.array[iso2ServiceParameterListType->ParameterSet.arrayLen++]);
+ } else {
+ errn = EXI_ERROR_OUT_OF_BOUNDS;
+ }
+ grammarID = 483;
+ break;
+ case 1:
+ done = 1;
+ grammarID = 4;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 483:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}ParameterSet), END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ if (iso2ServiceParameterListType->ParameterSet.arrayLen < iso2ServiceParameterListType_ParameterSet_ARRAY_SIZE) {
+ errn = decode_iso2ParameterSetType(stream, &iso2ServiceParameterListType->ParameterSet.array[iso2ServiceParameterListType->ParameterSet.arrayLen++]);
+ } else {
+ errn = EXI_ERROR_OUT_OF_BOUNDS;
+ }
+ grammarID = 484;
+ break;
+ case 1:
+ done = 1;
+ grammarID = 4;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 484:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}ParameterSet), END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ if (iso2ServiceParameterListType->ParameterSet.arrayLen < iso2ServiceParameterListType_ParameterSet_ARRAY_SIZE) {
+ errn = decode_iso2ParameterSetType(stream, &iso2ServiceParameterListType->ParameterSet.array[iso2ServiceParameterListType->ParameterSet.arrayLen++]);
+ } else {
+ errn = EXI_ERROR_OUT_OF_BOUNDS;
+ }
+ grammarID = 485;
+ break;
+ case 1:
+ done = 1;
+ grammarID = 4;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 485:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}ParameterSet), END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ if (iso2ServiceParameterListType->ParameterSet.arrayLen < iso2ServiceParameterListType_ParameterSet_ARRAY_SIZE) {
+ errn = decode_iso2ParameterSetType(stream, &iso2ServiceParameterListType->ParameterSet.array[iso2ServiceParameterListType->ParameterSet.arrayLen++]);
+ } else {
+ errn = EXI_ERROR_OUT_OF_BOUNDS;
+ }
+ grammarID = 486;
+ break;
+ case 1:
+ done = 1;
+ grammarID = 4;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 486:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}ParameterSet), END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ if (iso2ServiceParameterListType->ParameterSet.arrayLen < iso2ServiceParameterListType_ParameterSet_ARRAY_SIZE) {
+ errn = decode_iso2ParameterSetType(stream, &iso2ServiceParameterListType->ParameterSet.array[iso2ServiceParameterListType->ParameterSet.arrayLen++]);
+ } else {
+ errn = EXI_ERROR_OUT_OF_BOUNDS;
+ }
+ grammarID = 487;
+ break;
+ case 1:
+ done = 1;
+ grammarID = 4;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 487:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}ParameterSet), END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ if (iso2ServiceParameterListType->ParameterSet.arrayLen < iso2ServiceParameterListType_ParameterSet_ARRAY_SIZE) {
+ errn = decode_iso2ParameterSetType(stream, &iso2ServiceParameterListType->ParameterSet.array[iso2ServiceParameterListType->ParameterSet.arrayLen++]);
+ } else {
+ errn = EXI_ERROR_OUT_OF_BOUNDS;
+ }
+ grammarID = 488;
+ break;
+ case 1:
+ done = 1;
+ grammarID = 4;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 488:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}ParameterSet), END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ if (iso2ServiceParameterListType->ParameterSet.arrayLen < iso2ServiceParameterListType_ParameterSet_ARRAY_SIZE) {
+ errn = decode_iso2ParameterSetType(stream, &iso2ServiceParameterListType->ParameterSet.array[iso2ServiceParameterListType->ParameterSet.arrayLen++]);
+ } else {
+ errn = EXI_ERROR_OUT_OF_BOUNDS;
+ }
+ grammarID = 489;
+ break;
+ case 1:
+ done = 1;
+ grammarID = 4;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 489:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}ParameterSet), END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ if (iso2ServiceParameterListType->ParameterSet.arrayLen < iso2ServiceParameterListType_ParameterSet_ARRAY_SIZE) {
+ errn = decode_iso2ParameterSetType(stream, &iso2ServiceParameterListType->ParameterSet.array[iso2ServiceParameterListType->ParameterSet.arrayLen++]);
+ } else {
+ errn = EXI_ERROR_OUT_OF_BOUNDS;
+ }
+ grammarID = 490;
+ break;
+ case 1:
+ done = 1;
+ grammarID = 4;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 490:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}ParameterSet), END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ if (iso2ServiceParameterListType->ParameterSet.arrayLen < iso2ServiceParameterListType_ParameterSet_ARRAY_SIZE) {
+ errn = decode_iso2ParameterSetType(stream, &iso2ServiceParameterListType->ParameterSet.array[iso2ServiceParameterListType->ParameterSet.arrayLen++]);
+ } else {
+ errn = EXI_ERROR_OUT_OF_BOUNDS;
+ }
+ grammarID = 491;
+ break;
+ case 1:
+ done = 1;
+ grammarID = 4;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 491:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}ParameterSet), END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ if (iso2ServiceParameterListType->ParameterSet.arrayLen < iso2ServiceParameterListType_ParameterSet_ARRAY_SIZE) {
+ errn = decode_iso2ParameterSetType(stream, &iso2ServiceParameterListType->ParameterSet.array[iso2ServiceParameterListType->ParameterSet.arrayLen++]);
+ } else {
+ errn = EXI_ERROR_OUT_OF_BOUNDS;
+ }
+ grammarID = 492;
+ break;
+ case 1:
+ done = 1;
+ grammarID = 4;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 492:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}ParameterSet), END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ if (iso2ServiceParameterListType->ParameterSet.arrayLen < iso2ServiceParameterListType_ParameterSet_ARRAY_SIZE) {
+ errn = decode_iso2ParameterSetType(stream, &iso2ServiceParameterListType->ParameterSet.array[iso2ServiceParameterListType->ParameterSet.arrayLen++]);
+ } else {
+ errn = EXI_ERROR_OUT_OF_BOUNDS;
+ }
+ grammarID = 493;
+ break;
+ case 1:
+ done = 1;
+ grammarID = 4;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 493:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}ParameterSet), END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ if (iso2ServiceParameterListType->ParameterSet.arrayLen < iso2ServiceParameterListType_ParameterSet_ARRAY_SIZE) {
+ errn = decode_iso2ParameterSetType(stream, &iso2ServiceParameterListType->ParameterSet.array[iso2ServiceParameterListType->ParameterSet.arrayLen++]);
+ } else {
+ errn = EXI_ERROR_OUT_OF_BOUNDS;
+ }
+ grammarID = 494;
+ break;
+ case 1:
+ done = 1;
+ grammarID = 4;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 494:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}ParameterSet), END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ if (iso2ServiceParameterListType->ParameterSet.arrayLen < iso2ServiceParameterListType_ParameterSet_ARRAY_SIZE) {
+ errn = decode_iso2ParameterSetType(stream, &iso2ServiceParameterListType->ParameterSet.array[iso2ServiceParameterListType->ParameterSet.arrayLen++]);
+ } else {
+ errn = EXI_ERROR_OUT_OF_BOUNDS;
+ }
+ grammarID = 495;
+ break;
+ case 1:
+ done = 1;
+ grammarID = 4;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 495:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}ParameterSet), END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ if (iso2ServiceParameterListType->ParameterSet.arrayLen < iso2ServiceParameterListType_ParameterSet_ARRAY_SIZE) {
+ errn = decode_iso2ParameterSetType(stream, &iso2ServiceParameterListType->ParameterSet.array[iso2ServiceParameterListType->ParameterSet.arrayLen++]);
+ } else {
+ errn = EXI_ERROR_OUT_OF_BOUNDS;
+ }
+ grammarID = 496;
+ break;
+ case 1:
+ done = 1;
+ grammarID = 4;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 496:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}ParameterSet), END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ if (iso2ServiceParameterListType->ParameterSet.arrayLen < iso2ServiceParameterListType_ParameterSet_ARRAY_SIZE) {
+ errn = decode_iso2ParameterSetType(stream, &iso2ServiceParameterListType->ParameterSet.array[iso2ServiceParameterListType->ParameterSet.arrayLen++]);
+ } else {
+ errn = EXI_ERROR_OUT_OF_BOUNDS;
+ }
+ grammarID = 497;
+ break;
+ case 1:
+ done = 1;
+ grammarID = 4;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 497:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}ParameterSet), END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ if (iso2ServiceParameterListType->ParameterSet.arrayLen < iso2ServiceParameterListType_ParameterSet_ARRAY_SIZE) {
+ errn = decode_iso2ParameterSetType(stream, &iso2ServiceParameterListType->ParameterSet.array[iso2ServiceParameterListType->ParameterSet.arrayLen++]);
+ } else {
+ errn = EXI_ERROR_OUT_OF_BOUNDS;
+ }
+ grammarID = 498;
+ break;
+ case 1:
+ done = 1;
+ grammarID = 4;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 498:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}ParameterSet), END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ if (iso2ServiceParameterListType->ParameterSet.arrayLen < iso2ServiceParameterListType_ParameterSet_ARRAY_SIZE) {
+ errn = decode_iso2ParameterSetType(stream, &iso2ServiceParameterListType->ParameterSet.array[iso2ServiceParameterListType->ParameterSet.arrayLen++]);
+ } else {
+ errn = EXI_ERROR_OUT_OF_BOUNDS;
+ }
+ grammarID = 499;
+ break;
+ case 1:
+ done = 1;
+ grammarID = 4;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 499:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}ParameterSet), END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ if (iso2ServiceParameterListType->ParameterSet.arrayLen < iso2ServiceParameterListType_ParameterSet_ARRAY_SIZE) {
+ errn = decode_iso2ParameterSetType(stream, &iso2ServiceParameterListType->ParameterSet.array[iso2ServiceParameterListType->ParameterSet.arrayLen++]);
+ } else {
+ errn = EXI_ERROR_OUT_OF_BOUNDS;
+ }
+ grammarID = 500;
+ break;
+ case 1:
+ done = 1;
+ grammarID = 4;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 500:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}ParameterSet), END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ if (iso2ServiceParameterListType->ParameterSet.arrayLen < iso2ServiceParameterListType_ParameterSet_ARRAY_SIZE) {
+ errn = decode_iso2ParameterSetType(stream, &iso2ServiceParameterListType->ParameterSet.array[iso2ServiceParameterListType->ParameterSet.arrayLen++]);
+ } else {
+ errn = EXI_ERROR_OUT_OF_BOUNDS;
+ }
+ grammarID = 501;
+ break;
+ case 1:
+ done = 1;
+ grammarID = 4;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 501:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}ParameterSet), END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ if (iso2ServiceParameterListType->ParameterSet.arrayLen < iso2ServiceParameterListType_ParameterSet_ARRAY_SIZE) {
+ errn = decode_iso2ParameterSetType(stream, &iso2ServiceParameterListType->ParameterSet.array[iso2ServiceParameterListType->ParameterSet.arrayLen++]);
+ } else {
+ errn = EXI_ERROR_OUT_OF_BOUNDS;
+ }
+ grammarID = 502;
+ break;
+ case 1:
+ done = 1;
+ grammarID = 4;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 502:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}ParameterSet), END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ if (iso2ServiceParameterListType->ParameterSet.arrayLen < iso2ServiceParameterListType_ParameterSet_ARRAY_SIZE) {
+ errn = decode_iso2ParameterSetType(stream, &iso2ServiceParameterListType->ParameterSet.array[iso2ServiceParameterListType->ParameterSet.arrayLen++]);
+ } else {
+ errn = EXI_ERROR_OUT_OF_BOUNDS;
+ }
+ grammarID = 503;
+ break;
+ case 1:
+ done = 1;
+ grammarID = 4;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 503:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}ParameterSet), END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ if (iso2ServiceParameterListType->ParameterSet.arrayLen < iso2ServiceParameterListType_ParameterSet_ARRAY_SIZE) {
+ errn = decode_iso2ParameterSetType(stream, &iso2ServiceParameterListType->ParameterSet.array[iso2ServiceParameterListType->ParameterSet.arrayLen++]);
+ } else {
+ errn = EXI_ERROR_OUT_OF_BOUNDS;
+ }
+ grammarID = 504;
+ break;
+ case 1:
+ done = 1;
+ grammarID = 4;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 504:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}ParameterSet), END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ if (iso2ServiceParameterListType->ParameterSet.arrayLen < iso2ServiceParameterListType_ParameterSet_ARRAY_SIZE) {
+ errn = decode_iso2ParameterSetType(stream, &iso2ServiceParameterListType->ParameterSet.array[iso2ServiceParameterListType->ParameterSet.arrayLen++]);
+ } else {
+ errn = EXI_ERROR_OUT_OF_BOUNDS;
+ }
+ grammarID = 505;
+ break;
+ case 1:
+ done = 1;
+ grammarID = 4;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 505:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}ParameterSet), END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ if (iso2ServiceParameterListType->ParameterSet.arrayLen < iso2ServiceParameterListType_ParameterSet_ARRAY_SIZE) {
+ errn = decode_iso2ParameterSetType(stream, &iso2ServiceParameterListType->ParameterSet.array[iso2ServiceParameterListType->ParameterSet.arrayLen++]);
+ } else {
+ errn = EXI_ERROR_OUT_OF_BOUNDS;
+ }
+ grammarID = 506;
+ break;
+ case 1:
+ done = 1;
+ grammarID = 4;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 506:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}ParameterSet), END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ if (iso2ServiceParameterListType->ParameterSet.arrayLen < iso2ServiceParameterListType_ParameterSet_ARRAY_SIZE) {
+ errn = decode_iso2ParameterSetType(stream, &iso2ServiceParameterListType->ParameterSet.array[iso2ServiceParameterListType->ParameterSet.arrayLen++]);
+ } else {
+ errn = EXI_ERROR_OUT_OF_BOUNDS;
+ }
+ grammarID = 507;
+ break;
+ case 1:
+ done = 1;
+ grammarID = 4;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 507:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}ParameterSet), END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ if (iso2ServiceParameterListType->ParameterSet.arrayLen < iso2ServiceParameterListType_ParameterSet_ARRAY_SIZE) {
+ errn = decode_iso2ParameterSetType(stream, &iso2ServiceParameterListType->ParameterSet.array[iso2ServiceParameterListType->ParameterSet.arrayLen++]);
+ } else {
+ errn = EXI_ERROR_OUT_OF_BOUNDS;
+ }
+ grammarID = 508;
+ break;
+ case 1:
+ done = 1;
+ grammarID = 4;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 508:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}ParameterSet), END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ if (iso2ServiceParameterListType->ParameterSet.arrayLen < iso2ServiceParameterListType_ParameterSet_ARRAY_SIZE) {
+ errn = decode_iso2ParameterSetType(stream, &iso2ServiceParameterListType->ParameterSet.array[iso2ServiceParameterListType->ParameterSet.arrayLen++]);
+ } else {
+ errn = EXI_ERROR_OUT_OF_BOUNDS;
+ }
+ grammarID = 509;
+ break;
+ case 1:
+ done = 1;
+ grammarID = 4;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 509:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}ParameterSet), END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ if (iso2ServiceParameterListType->ParameterSet.arrayLen < iso2ServiceParameterListType_ParameterSet_ARRAY_SIZE) {
+ errn = decode_iso2ParameterSetType(stream, &iso2ServiceParameterListType->ParameterSet.array[iso2ServiceParameterListType->ParameterSet.arrayLen++]);
+ } else {
+ errn = EXI_ERROR_OUT_OF_BOUNDS;
+ }
+ grammarID = 510;
+ break;
+ case 1:
+ done = 1;
+ grammarID = 4;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 510:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}ParameterSet), END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ if (iso2ServiceParameterListType->ParameterSet.arrayLen < iso2ServiceParameterListType_ParameterSet_ARRAY_SIZE) {
+ errn = decode_iso2ParameterSetType(stream, &iso2ServiceParameterListType->ParameterSet.array[iso2ServiceParameterListType->ParameterSet.arrayLen++]);
+ } else {
+ errn = EXI_ERROR_OUT_OF_BOUNDS;
+ }
+ grammarID = 511;
+ break;
+ case 1:
+ done = 1;
+ grammarID = 4;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 511:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}ParameterSet), END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ if (iso2ServiceParameterListType->ParameterSet.arrayLen < iso2ServiceParameterListType_ParameterSet_ARRAY_SIZE) {
+ errn = decode_iso2ParameterSetType(stream, &iso2ServiceParameterListType->ParameterSet.array[iso2ServiceParameterListType->ParameterSet.arrayLen++]);
+ } else {
+ errn = EXI_ERROR_OUT_OF_BOUNDS;
+ }
+ grammarID = 512;
+ break;
+ case 1:
+ done = 1;
+ grammarID = 4;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 512:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}ParameterSet), END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ if (iso2ServiceParameterListType->ParameterSet.arrayLen < iso2ServiceParameterListType_ParameterSet_ARRAY_SIZE) {
+ errn = decode_iso2ParameterSetType(stream, &iso2ServiceParameterListType->ParameterSet.array[iso2ServiceParameterListType->ParameterSet.arrayLen++]);
+ } else {
+ errn = EXI_ERROR_OUT_OF_BOUNDS;
+ }
+ grammarID = 513;
+ break;
+ case 1:
+ done = 1;
+ grammarID = 4;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 513:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}ParameterSet), END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ if (iso2ServiceParameterListType->ParameterSet.arrayLen < iso2ServiceParameterListType_ParameterSet_ARRAY_SIZE) {
+ errn = decode_iso2ParameterSetType(stream, &iso2ServiceParameterListType->ParameterSet.array[iso2ServiceParameterListType->ParameterSet.arrayLen++]);
+ } else {
+ errn = EXI_ERROR_OUT_OF_BOUNDS;
+ }
+ grammarID = 514;
+ break;
+ case 1:
+ done = 1;
+ grammarID = 4;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 514:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}ParameterSet), END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ if (iso2ServiceParameterListType->ParameterSet.arrayLen < iso2ServiceParameterListType_ParameterSet_ARRAY_SIZE) {
+ errn = decode_iso2ParameterSetType(stream, &iso2ServiceParameterListType->ParameterSet.array[iso2ServiceParameterListType->ParameterSet.arrayLen++]);
+ } else {
+ errn = EXI_ERROR_OUT_OF_BOUNDS;
+ }
+ grammarID = 515;
+ break;
+ case 1:
+ done = 1;
+ grammarID = 4;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 515:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}ParameterSet), END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ if (iso2ServiceParameterListType->ParameterSet.arrayLen < iso2ServiceParameterListType_ParameterSet_ARRAY_SIZE) {
+ errn = decode_iso2ParameterSetType(stream, &iso2ServiceParameterListType->ParameterSet.array[iso2ServiceParameterListType->ParameterSet.arrayLen++]);
+ } else {
+ errn = EXI_ERROR_OUT_OF_BOUNDS;
+ }
+ grammarID = 516;
+ break;
+ case 1:
+ done = 1;
+ grammarID = 4;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 516:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}ParameterSet), END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ if (iso2ServiceParameterListType->ParameterSet.arrayLen < iso2ServiceParameterListType_ParameterSet_ARRAY_SIZE) {
+ errn = decode_iso2ParameterSetType(stream, &iso2ServiceParameterListType->ParameterSet.array[iso2ServiceParameterListType->ParameterSet.arrayLen++]);
+ } else {
+ errn = EXI_ERROR_OUT_OF_BOUNDS;
+ }
+ grammarID = 517;
+ break;
+ case 1:
+ done = 1;
+ grammarID = 4;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 517:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}ParameterSet), END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ if (iso2ServiceParameterListType->ParameterSet.arrayLen < iso2ServiceParameterListType_ParameterSet_ARRAY_SIZE) {
+ errn = decode_iso2ParameterSetType(stream, &iso2ServiceParameterListType->ParameterSet.array[iso2ServiceParameterListType->ParameterSet.arrayLen++]);
+ } else {
+ errn = EXI_ERROR_OUT_OF_BOUNDS;
+ }
+ grammarID = 518;
+ break;
+ case 1:
+ done = 1;
+ grammarID = 4;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 518:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}ParameterSet), END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ if (iso2ServiceParameterListType->ParameterSet.arrayLen < iso2ServiceParameterListType_ParameterSet_ARRAY_SIZE) {
+ errn = decode_iso2ParameterSetType(stream, &iso2ServiceParameterListType->ParameterSet.array[iso2ServiceParameterListType->ParameterSet.arrayLen++]);
+ } else {
+ errn = EXI_ERROR_OUT_OF_BOUNDS;
+ }
+ grammarID = 519;
+ break;
+ case 1:
+ done = 1;
+ grammarID = 4;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 519:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}ParameterSet), END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ if (iso2ServiceParameterListType->ParameterSet.arrayLen < iso2ServiceParameterListType_ParameterSet_ARRAY_SIZE) {
+ errn = decode_iso2ParameterSetType(stream, &iso2ServiceParameterListType->ParameterSet.array[iso2ServiceParameterListType->ParameterSet.arrayLen++]);
+ } else {
+ errn = EXI_ERROR_OUT_OF_BOUNDS;
+ }
+ grammarID = 520;
+ break;
+ case 1:
+ done = 1;
+ grammarID = 4;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 520:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}ParameterSet), END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ if (iso2ServiceParameterListType->ParameterSet.arrayLen < iso2ServiceParameterListType_ParameterSet_ARRAY_SIZE) {
+ errn = decode_iso2ParameterSetType(stream, &iso2ServiceParameterListType->ParameterSet.array[iso2ServiceParameterListType->ParameterSet.arrayLen++]);
+ } else {
+ errn = EXI_ERROR_OUT_OF_BOUNDS;
+ }
+ grammarID = 521;
+ break;
+ case 1:
+ done = 1;
+ grammarID = 4;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 521:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}ParameterSet), END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ if (iso2ServiceParameterListType->ParameterSet.arrayLen < iso2ServiceParameterListType_ParameterSet_ARRAY_SIZE) {
+ errn = decode_iso2ParameterSetType(stream, &iso2ServiceParameterListType->ParameterSet.array[iso2ServiceParameterListType->ParameterSet.arrayLen++]);
+ } else {
+ errn = EXI_ERROR_OUT_OF_BOUNDS;
+ }
+ grammarID = 522;
+ break;
+ case 1:
+ done = 1;
+ grammarID = 4;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 522:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}ParameterSet), END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ if (iso2ServiceParameterListType->ParameterSet.arrayLen < iso2ServiceParameterListType_ParameterSet_ARRAY_SIZE) {
+ errn = decode_iso2ParameterSetType(stream, &iso2ServiceParameterListType->ParameterSet.array[iso2ServiceParameterListType->ParameterSet.arrayLen++]);
+ } else {
+ errn = EXI_ERROR_OUT_OF_BOUNDS;
+ }
+ grammarID = 523;
+ break;
+ case 1:
+ done = 1;
+ grammarID = 4;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 523:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}ParameterSet), END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ if (iso2ServiceParameterListType->ParameterSet.arrayLen < iso2ServiceParameterListType_ParameterSet_ARRAY_SIZE) {
+ errn = decode_iso2ParameterSetType(stream, &iso2ServiceParameterListType->ParameterSet.array[iso2ServiceParameterListType->ParameterSet.arrayLen++]);
+ } else {
+ errn = EXI_ERROR_OUT_OF_BOUNDS;
+ }
+ grammarID = 524;
+ break;
+ case 1:
+ done = 1;
+ grammarID = 4;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 524:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}ParameterSet), END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ if (iso2ServiceParameterListType->ParameterSet.arrayLen < iso2ServiceParameterListType_ParameterSet_ARRAY_SIZE) {
+ errn = decode_iso2ParameterSetType(stream, &iso2ServiceParameterListType->ParameterSet.array[iso2ServiceParameterListType->ParameterSet.arrayLen++]);
+ } else {
+ errn = EXI_ERROR_OUT_OF_BOUNDS;
+ }
+ grammarID = 525;
+ break;
+ case 1:
+ done = 1;
+ grammarID = 4;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 525:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}ParameterSet), END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ if (iso2ServiceParameterListType->ParameterSet.arrayLen < iso2ServiceParameterListType_ParameterSet_ARRAY_SIZE) {
+ errn = decode_iso2ParameterSetType(stream, &iso2ServiceParameterListType->ParameterSet.array[iso2ServiceParameterListType->ParameterSet.arrayLen++]);
+ } else {
+ errn = EXI_ERROR_OUT_OF_BOUNDS;
+ }
+ grammarID = 526;
+ break;
+ case 1:
+ done = 1;
+ grammarID = 4;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 526:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}ParameterSet), END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ if (iso2ServiceParameterListType->ParameterSet.arrayLen < iso2ServiceParameterListType_ParameterSet_ARRAY_SIZE) {
+ errn = decode_iso2ParameterSetType(stream, &iso2ServiceParameterListType->ParameterSet.array[iso2ServiceParameterListType->ParameterSet.arrayLen++]);
+ } else {
+ errn = EXI_ERROR_OUT_OF_BOUNDS;
+ }
+ grammarID = 527;
+ break;
+ case 1:
+ done = 1;
+ grammarID = 4;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 527:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}ParameterSet), END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ if (iso2ServiceParameterListType->ParameterSet.arrayLen < iso2ServiceParameterListType_ParameterSet_ARRAY_SIZE) {
+ errn = decode_iso2ParameterSetType(stream, &iso2ServiceParameterListType->ParameterSet.array[iso2ServiceParameterListType->ParameterSet.arrayLen++]);
+ } else {
+ errn = EXI_ERROR_OUT_OF_BOUNDS;
+ }
+ grammarID = 528;
+ break;
+ case 1:
+ done = 1;
+ grammarID = 4;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 528:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}ParameterSet), END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ if (iso2ServiceParameterListType->ParameterSet.arrayLen < iso2ServiceParameterListType_ParameterSet_ARRAY_SIZE) {
+ errn = decode_iso2ParameterSetType(stream, &iso2ServiceParameterListType->ParameterSet.array[iso2ServiceParameterListType->ParameterSet.arrayLen++]);
+ } else {
+ errn = EXI_ERROR_OUT_OF_BOUNDS;
+ }
+ grammarID = 529;
+ break;
+ case 1:
+ done = 1;
+ grammarID = 4;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 529:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}ParameterSet), END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ if (iso2ServiceParameterListType->ParameterSet.arrayLen < iso2ServiceParameterListType_ParameterSet_ARRAY_SIZE) {
+ errn = decode_iso2ParameterSetType(stream, &iso2ServiceParameterListType->ParameterSet.array[iso2ServiceParameterListType->ParameterSet.arrayLen++]);
+ } else {
+ errn = EXI_ERROR_OUT_OF_BOUNDS;
+ }
+ grammarID = 530;
+ break;
+ case 1:
+ done = 1;
+ grammarID = 4;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 530:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}ParameterSet), END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ if (iso2ServiceParameterListType->ParameterSet.arrayLen < iso2ServiceParameterListType_ParameterSet_ARRAY_SIZE) {
+ errn = decode_iso2ParameterSetType(stream, &iso2ServiceParameterListType->ParameterSet.array[iso2ServiceParameterListType->ParameterSet.arrayLen++]);
+ } else {
+ errn = EXI_ERROR_OUT_OF_BOUNDS;
+ }
+ grammarID = 531;
+ break;
+ case 1:
+ done = 1;
+ grammarID = 4;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 531:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}ParameterSet), END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ if (iso2ServiceParameterListType->ParameterSet.arrayLen < iso2ServiceParameterListType_ParameterSet_ARRAY_SIZE) {
+ errn = decode_iso2ParameterSetType(stream, &iso2ServiceParameterListType->ParameterSet.array[iso2ServiceParameterListType->ParameterSet.arrayLen++]);
+ } else {
+ errn = EXI_ERROR_OUT_OF_BOUNDS;
+ }
+ grammarID = 532;
+ break;
+ case 1:
+ done = 1;
+ grammarID = 4;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 532:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}ParameterSet), END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ if (iso2ServiceParameterListType->ParameterSet.arrayLen < iso2ServiceParameterListType_ParameterSet_ARRAY_SIZE) {
+ errn = decode_iso2ParameterSetType(stream, &iso2ServiceParameterListType->ParameterSet.array[iso2ServiceParameterListType->ParameterSet.arrayLen++]);
+ } else {
+ errn = EXI_ERROR_OUT_OF_BOUNDS;
+ }
+ grammarID = 533;
+ break;
+ case 1:
+ done = 1;
+ grammarID = 4;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 533:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}ParameterSet), END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ if (iso2ServiceParameterListType->ParameterSet.arrayLen < iso2ServiceParameterListType_ParameterSet_ARRAY_SIZE) {
+ errn = decode_iso2ParameterSetType(stream, &iso2ServiceParameterListType->ParameterSet.array[iso2ServiceParameterListType->ParameterSet.arrayLen++]);
+ } else {
+ errn = EXI_ERROR_OUT_OF_BOUNDS;
+ }
+ grammarID = 534;
+ break;
+ case 1:
+ done = 1;
+ grammarID = 4;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 534:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}ParameterSet), END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ if (iso2ServiceParameterListType->ParameterSet.arrayLen < iso2ServiceParameterListType_ParameterSet_ARRAY_SIZE) {
+ errn = decode_iso2ParameterSetType(stream, &iso2ServiceParameterListType->ParameterSet.array[iso2ServiceParameterListType->ParameterSet.arrayLen++]);
+ } else {
+ errn = EXI_ERROR_OUT_OF_BOUNDS;
+ }
+ grammarID = 535;
+ break;
+ case 1:
+ done = 1;
+ grammarID = 4;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 535:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}ParameterSet), END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ if (iso2ServiceParameterListType->ParameterSet.arrayLen < iso2ServiceParameterListType_ParameterSet_ARRAY_SIZE) {
+ errn = decode_iso2ParameterSetType(stream, &iso2ServiceParameterListType->ParameterSet.array[iso2ServiceParameterListType->ParameterSet.arrayLen++]);
+ } else {
+ errn = EXI_ERROR_OUT_OF_BOUNDS;
+ }
+ grammarID = 536;
+ break;
+ case 1:
+ done = 1;
+ grammarID = 4;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 536:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}ParameterSet), END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ if (iso2ServiceParameterListType->ParameterSet.arrayLen < iso2ServiceParameterListType_ParameterSet_ARRAY_SIZE) {
+ errn = decode_iso2ParameterSetType(stream, &iso2ServiceParameterListType->ParameterSet.array[iso2ServiceParameterListType->ParameterSet.arrayLen++]);
+ } else {
+ errn = EXI_ERROR_OUT_OF_BOUNDS;
+ }
+ grammarID = 537;
+ break;
+ case 1:
+ done = 1;
+ grammarID = 4;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 537:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}ParameterSet), END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ if (iso2ServiceParameterListType->ParameterSet.arrayLen < iso2ServiceParameterListType_ParameterSet_ARRAY_SIZE) {
+ errn = decode_iso2ParameterSetType(stream, &iso2ServiceParameterListType->ParameterSet.array[iso2ServiceParameterListType->ParameterSet.arrayLen++]);
+ } else {
+ errn = EXI_ERROR_OUT_OF_BOUNDS;
+ }
+ grammarID = 538;
+ break;
+ case 1:
+ done = 1;
+ grammarID = 4;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 538:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}ParameterSet), END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ if (iso2ServiceParameterListType->ParameterSet.arrayLen < iso2ServiceParameterListType_ParameterSet_ARRAY_SIZE) {
+ errn = decode_iso2ParameterSetType(stream, &iso2ServiceParameterListType->ParameterSet.array[iso2ServiceParameterListType->ParameterSet.arrayLen++]);
+ } else {
+ errn = EXI_ERROR_OUT_OF_BOUNDS;
+ }
+ grammarID = 539;
+ break;
+ case 1:
+ done = 1;
+ grammarID = 4;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 539:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}ParameterSet), END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ if (iso2ServiceParameterListType->ParameterSet.arrayLen < iso2ServiceParameterListType_ParameterSet_ARRAY_SIZE) {
+ errn = decode_iso2ParameterSetType(stream, &iso2ServiceParameterListType->ParameterSet.array[iso2ServiceParameterListType->ParameterSet.arrayLen++]);
+ } else {
+ errn = EXI_ERROR_OUT_OF_BOUNDS;
+ }
+ grammarID = 540;
+ break;
+ case 1:
+ done = 1;
+ grammarID = 4;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 540:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}ParameterSet), END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ if (iso2ServiceParameterListType->ParameterSet.arrayLen < iso2ServiceParameterListType_ParameterSet_ARRAY_SIZE) {
+ errn = decode_iso2ParameterSetType(stream, &iso2ServiceParameterListType->ParameterSet.array[iso2ServiceParameterListType->ParameterSet.arrayLen++]);
+ } else {
+ errn = EXI_ERROR_OUT_OF_BOUNDS;
+ }
+ grammarID = 541;
+ break;
+ case 1:
+ done = 1;
+ grammarID = 4;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 541:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}ParameterSet), END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ if (iso2ServiceParameterListType->ParameterSet.arrayLen < iso2ServiceParameterListType_ParameterSet_ARRAY_SIZE) {
+ errn = decode_iso2ParameterSetType(stream, &iso2ServiceParameterListType->ParameterSet.array[iso2ServiceParameterListType->ParameterSet.arrayLen++]);
+ } else {
+ errn = EXI_ERROR_OUT_OF_BOUNDS;
+ }
+ grammarID = 542;
+ break;
+ case 1:
+ done = 1;
+ grammarID = 4;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 542:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}ParameterSet), END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ if (iso2ServiceParameterListType->ParameterSet.arrayLen < iso2ServiceParameterListType_ParameterSet_ARRAY_SIZE) {
+ errn = decode_iso2ParameterSetType(stream, &iso2ServiceParameterListType->ParameterSet.array[iso2ServiceParameterListType->ParameterSet.arrayLen++]);
+ } else {
+ errn = EXI_ERROR_OUT_OF_BOUNDS;
+ }
+ grammarID = 543;
+ break;
+ case 1:
+ done = 1;
+ grammarID = 4;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 543:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}ParameterSet), END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ if (iso2ServiceParameterListType->ParameterSet.arrayLen < iso2ServiceParameterListType_ParameterSet_ARRAY_SIZE) {
+ errn = decode_iso2ParameterSetType(stream, &iso2ServiceParameterListType->ParameterSet.array[iso2ServiceParameterListType->ParameterSet.arrayLen++]);
+ } else {
+ errn = EXI_ERROR_OUT_OF_BOUNDS;
+ }
+ grammarID = 544;
+ break;
+ case 1:
+ done = 1;
+ grammarID = 4;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 544:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}ParameterSet), END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ if (iso2ServiceParameterListType->ParameterSet.arrayLen < iso2ServiceParameterListType_ParameterSet_ARRAY_SIZE) {
+ errn = decode_iso2ParameterSetType(stream, &iso2ServiceParameterListType->ParameterSet.array[iso2ServiceParameterListType->ParameterSet.arrayLen++]);
+ } else {
+ errn = EXI_ERROR_OUT_OF_BOUNDS;
+ }
+ grammarID = 545;
+ break;
+ case 1:
+ done = 1;
+ grammarID = 4;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 545:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}ParameterSet), END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ if (iso2ServiceParameterListType->ParameterSet.arrayLen < iso2ServiceParameterListType_ParameterSet_ARRAY_SIZE) {
+ errn = decode_iso2ParameterSetType(stream, &iso2ServiceParameterListType->ParameterSet.array[iso2ServiceParameterListType->ParameterSet.arrayLen++]);
+ } else {
+ errn = EXI_ERROR_OUT_OF_BOUNDS;
+ }
+ grammarID = 546;
+ break;
+ case 1:
+ done = 1;
+ grammarID = 4;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 546:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}ParameterSet), END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ if (iso2ServiceParameterListType->ParameterSet.arrayLen < iso2ServiceParameterListType_ParameterSet_ARRAY_SIZE) {
+ errn = decode_iso2ParameterSetType(stream, &iso2ServiceParameterListType->ParameterSet.array[iso2ServiceParameterListType->ParameterSet.arrayLen++]);
+ } else {
+ errn = EXI_ERROR_OUT_OF_BOUNDS;
+ }
+ grammarID = 547;
+ break;
+ case 1:
+ done = 1;
+ grammarID = 4;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 547:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}ParameterSet), END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ if (iso2ServiceParameterListType->ParameterSet.arrayLen < iso2ServiceParameterListType_ParameterSet_ARRAY_SIZE) {
+ errn = decode_iso2ParameterSetType(stream, &iso2ServiceParameterListType->ParameterSet.array[iso2ServiceParameterListType->ParameterSet.arrayLen++]);
+ } else {
+ errn = EXI_ERROR_OUT_OF_BOUNDS;
+ }
+ grammarID = 548;
+ break;
+ case 1:
+ done = 1;
+ grammarID = 4;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 548:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}ParameterSet), END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ if (iso2ServiceParameterListType->ParameterSet.arrayLen < iso2ServiceParameterListType_ParameterSet_ARRAY_SIZE) {
+ errn = decode_iso2ParameterSetType(stream, &iso2ServiceParameterListType->ParameterSet.array[iso2ServiceParameterListType->ParameterSet.arrayLen++]);
+ } else {
+ errn = EXI_ERROR_OUT_OF_BOUNDS;
+ }
+ grammarID = 549;
+ break;
+ case 1:
+ done = 1;
+ grammarID = 4;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 549:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}ParameterSet), END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ if (iso2ServiceParameterListType->ParameterSet.arrayLen < iso2ServiceParameterListType_ParameterSet_ARRAY_SIZE) {
+ errn = decode_iso2ParameterSetType(stream, &iso2ServiceParameterListType->ParameterSet.array[iso2ServiceParameterListType->ParameterSet.arrayLen++]);
+ } else {
+ errn = EXI_ERROR_OUT_OF_BOUNDS;
+ }
+ grammarID = 550;
+ break;
+ case 1:
+ done = 1;
+ grammarID = 4;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 550:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}ParameterSet), END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ if (iso2ServiceParameterListType->ParameterSet.arrayLen < iso2ServiceParameterListType_ParameterSet_ARRAY_SIZE) {
+ errn = decode_iso2ParameterSetType(stream, &iso2ServiceParameterListType->ParameterSet.array[iso2ServiceParameterListType->ParameterSet.arrayLen++]);
+ } else {
+ errn = EXI_ERROR_OUT_OF_BOUNDS;
+ }
+ grammarID = 551;
+ break;
+ case 1:
+ done = 1;
+ grammarID = 4;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 551:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}ParameterSet), END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ if (iso2ServiceParameterListType->ParameterSet.arrayLen < iso2ServiceParameterListType_ParameterSet_ARRAY_SIZE) {
+ errn = decode_iso2ParameterSetType(stream, &iso2ServiceParameterListType->ParameterSet.array[iso2ServiceParameterListType->ParameterSet.arrayLen++]);
+ } else {
+ errn = EXI_ERROR_OUT_OF_BOUNDS;
+ }
+ grammarID = 552;
+ break;
+ case 1:
+ done = 1;
+ grammarID = 4;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 552:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}ParameterSet), END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ if (iso2ServiceParameterListType->ParameterSet.arrayLen < iso2ServiceParameterListType_ParameterSet_ARRAY_SIZE) {
+ errn = decode_iso2ParameterSetType(stream, &iso2ServiceParameterListType->ParameterSet.array[iso2ServiceParameterListType->ParameterSet.arrayLen++]);
+ } else {
+ errn = EXI_ERROR_OUT_OF_BOUNDS;
+ }
+ grammarID = 553;
+ break;
+ case 1:
+ done = 1;
+ grammarID = 4;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 553:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}ParameterSet), END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ if (iso2ServiceParameterListType->ParameterSet.arrayLen < iso2ServiceParameterListType_ParameterSet_ARRAY_SIZE) {
+ errn = decode_iso2ParameterSetType(stream, &iso2ServiceParameterListType->ParameterSet.array[iso2ServiceParameterListType->ParameterSet.arrayLen++]);
+ } else {
+ errn = EXI_ERROR_OUT_OF_BOUNDS;
+ }
+ grammarID = 554;
+ break;
+ case 1:
+ done = 1;
+ grammarID = 4;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 554:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}ParameterSet), END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ if (iso2ServiceParameterListType->ParameterSet.arrayLen < iso2ServiceParameterListType_ParameterSet_ARRAY_SIZE) {
+ errn = decode_iso2ParameterSetType(stream, &iso2ServiceParameterListType->ParameterSet.array[iso2ServiceParameterListType->ParameterSet.arrayLen++]);
+ } else {
+ errn = EXI_ERROR_OUT_OF_BOUNDS;
+ }
+ grammarID = 555;
+ break;
+ case 1:
+ done = 1;
+ grammarID = 4;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 555:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}ParameterSet), END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ if (iso2ServiceParameterListType->ParameterSet.arrayLen < iso2ServiceParameterListType_ParameterSet_ARRAY_SIZE) {
+ errn = decode_iso2ParameterSetType(stream, &iso2ServiceParameterListType->ParameterSet.array[iso2ServiceParameterListType->ParameterSet.arrayLen++]);
+ } else {
+ errn = EXI_ERROR_OUT_OF_BOUNDS;
+ }
+ grammarID = 556;
+ break;
+ case 1:
+ done = 1;
+ grammarID = 4;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 556:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}ParameterSet), END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ if (iso2ServiceParameterListType->ParameterSet.arrayLen < iso2ServiceParameterListType_ParameterSet_ARRAY_SIZE) {
+ errn = decode_iso2ParameterSetType(stream, &iso2ServiceParameterListType->ParameterSet.array[iso2ServiceParameterListType->ParameterSet.arrayLen++]);
+ } else {
+ errn = EXI_ERROR_OUT_OF_BOUNDS;
+ }
+ grammarID = 557;
+ break;
+ case 1:
+ done = 1;
+ grammarID = 4;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 557:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}ParameterSet), END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ if (iso2ServiceParameterListType->ParameterSet.arrayLen < iso2ServiceParameterListType_ParameterSet_ARRAY_SIZE) {
+ errn = decode_iso2ParameterSetType(stream, &iso2ServiceParameterListType->ParameterSet.array[iso2ServiceParameterListType->ParameterSet.arrayLen++]);
+ } else {
+ errn = EXI_ERROR_OUT_OF_BOUNDS;
+ }
+ grammarID = 558;
+ break;
+ case 1:
+ done = 1;
+ grammarID = 4;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 558:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}ParameterSet), END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ if (iso2ServiceParameterListType->ParameterSet.arrayLen < iso2ServiceParameterListType_ParameterSet_ARRAY_SIZE) {
+ errn = decode_iso2ParameterSetType(stream, &iso2ServiceParameterListType->ParameterSet.array[iso2ServiceParameterListType->ParameterSet.arrayLen++]);
+ } else {
+ errn = EXI_ERROR_OUT_OF_BOUNDS;
+ }
+ grammarID = 559;
+ break;
+ case 1:
+ done = 1;
+ grammarID = 4;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 559:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}ParameterSet), END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ if (iso2ServiceParameterListType->ParameterSet.arrayLen < iso2ServiceParameterListType_ParameterSet_ARRAY_SIZE) {
+ errn = decode_iso2ParameterSetType(stream, &iso2ServiceParameterListType->ParameterSet.array[iso2ServiceParameterListType->ParameterSet.arrayLen++]);
+ } else {
+ errn = EXI_ERROR_OUT_OF_BOUNDS;
+ }
+ grammarID = 560;
+ break;
+ case 1:
+ done = 1;
+ grammarID = 4;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 560:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}ParameterSet), END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ if (iso2ServiceParameterListType->ParameterSet.arrayLen < iso2ServiceParameterListType_ParameterSet_ARRAY_SIZE) {
+ errn = decode_iso2ParameterSetType(stream, &iso2ServiceParameterListType->ParameterSet.array[iso2ServiceParameterListType->ParameterSet.arrayLen++]);
+ } else {
+ errn = EXI_ERROR_OUT_OF_BOUNDS;
+ }
+ grammarID = 561;
+ break;
+ case 1:
+ done = 1;
+ grammarID = 4;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 561:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}ParameterSet), END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ if (iso2ServiceParameterListType->ParameterSet.arrayLen < iso2ServiceParameterListType_ParameterSet_ARRAY_SIZE) {
+ errn = decode_iso2ParameterSetType(stream, &iso2ServiceParameterListType->ParameterSet.array[iso2ServiceParameterListType->ParameterSet.arrayLen++]);
+ } else {
+ errn = EXI_ERROR_OUT_OF_BOUNDS;
+ }
+ grammarID = 562;
+ break;
+ case 1:
+ done = 1;
+ grammarID = 4;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 562:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}ParameterSet), END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ if (iso2ServiceParameterListType->ParameterSet.arrayLen < iso2ServiceParameterListType_ParameterSet_ARRAY_SIZE) {
+ errn = decode_iso2ParameterSetType(stream, &iso2ServiceParameterListType->ParameterSet.array[iso2ServiceParameterListType->ParameterSet.arrayLen++]);
+ } else {
+ errn = EXI_ERROR_OUT_OF_BOUNDS;
+ }
+ grammarID = 563;
+ break;
+ case 1:
+ done = 1;
+ grammarID = 4;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 563:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}ParameterSet), END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ if (iso2ServiceParameterListType->ParameterSet.arrayLen < iso2ServiceParameterListType_ParameterSet_ARRAY_SIZE) {
+ errn = decode_iso2ParameterSetType(stream, &iso2ServiceParameterListType->ParameterSet.array[iso2ServiceParameterListType->ParameterSet.arrayLen++]);
+ } else {
+ errn = EXI_ERROR_OUT_OF_BOUNDS;
+ }
+ grammarID = 564;
+ break;
+ case 1:
+ done = 1;
+ grammarID = 4;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 564:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}ParameterSet), END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ if (iso2ServiceParameterListType->ParameterSet.arrayLen < iso2ServiceParameterListType_ParameterSet_ARRAY_SIZE) {
+ errn = decode_iso2ParameterSetType(stream, &iso2ServiceParameterListType->ParameterSet.array[iso2ServiceParameterListType->ParameterSet.arrayLen++]);
+ } else {
+ errn = EXI_ERROR_OUT_OF_BOUNDS;
+ }
+ grammarID = 565;
+ break;
+ case 1:
+ done = 1;
+ grammarID = 4;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 565:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}ParameterSet), END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ if (iso2ServiceParameterListType->ParameterSet.arrayLen < iso2ServiceParameterListType_ParameterSet_ARRAY_SIZE) {
+ errn = decode_iso2ParameterSetType(stream, &iso2ServiceParameterListType->ParameterSet.array[iso2ServiceParameterListType->ParameterSet.arrayLen++]);
+ } else {
+ errn = EXI_ERROR_OUT_OF_BOUNDS;
+ }
+ grammarID = 566;
+ break;
+ case 1:
+ done = 1;
+ grammarID = 4;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 566:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}ParameterSet), END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ if (iso2ServiceParameterListType->ParameterSet.arrayLen < iso2ServiceParameterListType_ParameterSet_ARRAY_SIZE) {
+ errn = decode_iso2ParameterSetType(stream, &iso2ServiceParameterListType->ParameterSet.array[iso2ServiceParameterListType->ParameterSet.arrayLen++]);
+ } else {
+ errn = EXI_ERROR_OUT_OF_BOUNDS;
+ }
+ grammarID = 567;
+ break;
+ case 1:
+ done = 1;
+ grammarID = 4;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 567:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}ParameterSet), END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ if (iso2ServiceParameterListType->ParameterSet.arrayLen < iso2ServiceParameterListType_ParameterSet_ARRAY_SIZE) {
+ errn = decode_iso2ParameterSetType(stream, &iso2ServiceParameterListType->ParameterSet.array[iso2ServiceParameterListType->ParameterSet.arrayLen++]);
+ } else {
+ errn = EXI_ERROR_OUT_OF_BOUNDS;
+ }
+ grammarID = 568;
+ break;
+ case 1:
+ done = 1;
+ grammarID = 4;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 568:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}ParameterSet), END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ if (iso2ServiceParameterListType->ParameterSet.arrayLen < iso2ServiceParameterListType_ParameterSet_ARRAY_SIZE) {
+ errn = decode_iso2ParameterSetType(stream, &iso2ServiceParameterListType->ParameterSet.array[iso2ServiceParameterListType->ParameterSet.arrayLen++]);
+ } else {
+ errn = EXI_ERROR_OUT_OF_BOUNDS;
+ }
+ grammarID = 569;
+ break;
+ case 1:
+ done = 1;
+ grammarID = 4;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 569:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}ParameterSet), END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ if (iso2ServiceParameterListType->ParameterSet.arrayLen < iso2ServiceParameterListType_ParameterSet_ARRAY_SIZE) {
+ errn = decode_iso2ParameterSetType(stream, &iso2ServiceParameterListType->ParameterSet.array[iso2ServiceParameterListType->ParameterSet.arrayLen++]);
+ } else {
+ errn = EXI_ERROR_OUT_OF_BOUNDS;
+ }
+ grammarID = 570;
+ break;
+ case 1:
+ done = 1;
+ grammarID = 4;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 570:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}ParameterSet), END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ if (iso2ServiceParameterListType->ParameterSet.arrayLen < iso2ServiceParameterListType_ParameterSet_ARRAY_SIZE) {
+ errn = decode_iso2ParameterSetType(stream, &iso2ServiceParameterListType->ParameterSet.array[iso2ServiceParameterListType->ParameterSet.arrayLen++]);
+ } else {
+ errn = EXI_ERROR_OUT_OF_BOUNDS;
+ }
+ grammarID = 571;
+ break;
+ case 1:
+ done = 1;
+ grammarID = 4;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 571:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}ParameterSet), END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ if (iso2ServiceParameterListType->ParameterSet.arrayLen < iso2ServiceParameterListType_ParameterSet_ARRAY_SIZE) {
+ errn = decode_iso2ParameterSetType(stream, &iso2ServiceParameterListType->ParameterSet.array[iso2ServiceParameterListType->ParameterSet.arrayLen++]);
+ } else {
+ errn = EXI_ERROR_OUT_OF_BOUNDS;
+ }
+ grammarID = 572;
+ break;
+ case 1:
+ done = 1;
+ grammarID = 4;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 572:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}ParameterSet), END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ if (iso2ServiceParameterListType->ParameterSet.arrayLen < iso2ServiceParameterListType_ParameterSet_ARRAY_SIZE) {
+ errn = decode_iso2ParameterSetType(stream, &iso2ServiceParameterListType->ParameterSet.array[iso2ServiceParameterListType->ParameterSet.arrayLen++]);
+ } else {
+ errn = EXI_ERROR_OUT_OF_BOUNDS;
+ }
+ grammarID = 573;
+ break;
+ case 1:
+ done = 1;
+ grammarID = 4;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 573:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}ParameterSet), END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ if (iso2ServiceParameterListType->ParameterSet.arrayLen < iso2ServiceParameterListType_ParameterSet_ARRAY_SIZE) {
+ errn = decode_iso2ParameterSetType(stream, &iso2ServiceParameterListType->ParameterSet.array[iso2ServiceParameterListType->ParameterSet.arrayLen++]);
+ } else {
+ errn = EXI_ERROR_OUT_OF_BOUNDS;
+ }
+ grammarID = 574;
+ break;
+ case 1:
+ done = 1;
+ grammarID = 4;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 574:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}ParameterSet), END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ if (iso2ServiceParameterListType->ParameterSet.arrayLen < iso2ServiceParameterListType_ParameterSet_ARRAY_SIZE) {
+ errn = decode_iso2ParameterSetType(stream, &iso2ServiceParameterListType->ParameterSet.array[iso2ServiceParameterListType->ParameterSet.arrayLen++]);
+ } else {
+ errn = EXI_ERROR_OUT_OF_BOUNDS;
+ }
+ grammarID = 3;
+ break;
+ case 1:
+ done = 1;
+ grammarID = 4;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 3:
+ /* Element[END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ done = 1;
+ grammarID = 4;
+ 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:2016:MsgDataTypes,PMaxScheduleType', base type name='anyType', content type='ELEMENT', isAbstract='false', hasTypeId='false', final='0', block='0', particle='("urn:iso:15118:2:2016:MsgDataTypes":PMaxScheduleEntry{1-UNBOUNDED})', derivedBy='RESTRICTION'. */
+static int decode_iso2PMaxScheduleType(bitstream_t* stream, struct iso2PMaxScheduleType* iso2PMaxScheduleType) {
+ int grammarID = 575;
+ int done = 0;
+
+ init_iso2PMaxScheduleType(iso2PMaxScheduleType);
+
+ while(!done) {
+ switch(grammarID) {
+ case 575:
+ /* FirstStartTag[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}PMaxScheduleEntry)] */
+ errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ if (iso2PMaxScheduleType->PMaxScheduleEntry.arrayLen < iso2PMaxScheduleType_PMaxScheduleEntry_ARRAY_SIZE) {
+ errn = decode_iso2PMaxScheduleEntryType(stream, &iso2PMaxScheduleType->PMaxScheduleEntry.array[iso2PMaxScheduleType->PMaxScheduleEntry.arrayLen++]);
+ } else {
+ errn = EXI_ERROR_OUT_OF_BOUNDS;
+ }
+ grammarID = 576;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 576:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}PMaxScheduleEntry), END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ if (iso2PMaxScheduleType->PMaxScheduleEntry.arrayLen < iso2PMaxScheduleType_PMaxScheduleEntry_ARRAY_SIZE) {
+ errn = decode_iso2PMaxScheduleEntryType(stream, &iso2PMaxScheduleType->PMaxScheduleEntry.array[iso2PMaxScheduleType->PMaxScheduleEntry.arrayLen++]);
+ } else {
+ errn = EXI_ERROR_OUT_OF_BOUNDS;
+ }
+ grammarID = 576;
+ break;
+ case 1:
+ done = 1;
+ grammarID = 4;
+ 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='http://www.w3.org/2000/09/xmldsig#,SignaturePropertiesType', base type name='anyType', content type='ELEMENT', isAbstract='false', hasTypeId='false', final='0', block='0', particle='("http://www.w3.org/2000/09/xmldsig#":SignatureProperty{1-UNBOUNDED})', derivedBy='RESTRICTION'. */
+static int decode_iso2SignaturePropertiesType(bitstream_t* stream, struct iso2SignaturePropertiesType* iso2SignaturePropertiesType) {
+ int grammarID = 577;
+ int done = 0;
+
+ init_iso2SignaturePropertiesType(iso2SignaturePropertiesType);
+
+ while(!done) {
+ switch(grammarID) {
+ case 577:
+ /* FirstStartTag[ATTRIBUTE[STRING](Id), START_ELEMENT({http://www.w3.org/2000/09/xmldsig#}SignatureProperty)] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ errn = decodeUnsignedInteger16(stream, &iso2SignaturePropertiesType->Id.charactersLen);
+ if (errn == 0) {
+ if (iso2SignaturePropertiesType->Id.charactersLen >= 2) {
+ iso2SignaturePropertiesType->Id.charactersLen = (uint16_t)(iso2SignaturePropertiesType->Id.charactersLen - 2); /* string table miss */
+ errn = decodeCharacters(stream, iso2SignaturePropertiesType->Id.charactersLen, iso2SignaturePropertiesType->Id.characters, iso2SignaturePropertiesType_Id_CHARACTERS_SIZE);
+ } else {
+ /* string table hit */
+ errn = EXI_ERROR_STRINGVALUES_NOT_SUPPORTED;
+ }
+ }
+ iso2SignaturePropertiesType->Id_isUsed = 1u;
+ grammarID = 578;
+ break;
+ case 1:
+ if (iso2SignaturePropertiesType->SignatureProperty.arrayLen < iso2SignaturePropertiesType_SignatureProperty_ARRAY_SIZE) {
+ errn = decode_iso2SignaturePropertyType(stream, &iso2SignaturePropertiesType->SignatureProperty.array[iso2SignaturePropertiesType->SignatureProperty.arrayLen++]);
+ } else {
+ errn = EXI_ERROR_OUT_OF_BOUNDS;
+ }
+ grammarID = 579;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 578:
+ /* StartTag[START_ELEMENT({http://www.w3.org/2000/09/xmldsig#}SignatureProperty)] */
+ errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ if (iso2SignaturePropertiesType->SignatureProperty.arrayLen < iso2SignaturePropertiesType_SignatureProperty_ARRAY_SIZE) {
+ errn = decode_iso2SignaturePropertyType(stream, &iso2SignaturePropertiesType->SignatureProperty.array[iso2SignaturePropertiesType->SignatureProperty.arrayLen++]);
+ } else {
+ errn = EXI_ERROR_OUT_OF_BOUNDS;
+ }
+ grammarID = 579;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 579:
+ /* Element[START_ELEMENT({http://www.w3.org/2000/09/xmldsig#}SignatureProperty), END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ if (iso2SignaturePropertiesType->SignatureProperty.arrayLen < iso2SignaturePropertiesType_SignatureProperty_ARRAY_SIZE) {
+ errn = decode_iso2SignaturePropertyType(stream, &iso2SignaturePropertiesType->SignatureProperty.array[iso2SignaturePropertiesType->SignatureProperty.arrayLen++]);
+ } else {
+ errn = EXI_ERROR_OUT_OF_BOUNDS;
+ }
+ grammarID = 579;
+ break;
+ case 1:
+ done = 1;
+ grammarID = 4;
+ 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:2016:MsgDataTypes,PMaxScheduleEntryType', base type name='EntryType', content type='ELEMENT', isAbstract='false', hasTypeId='false', final='0', block='0', particle='(("urn:iso:15118:2:2016:MsgDataTypes":RelativeTimeInterval),("urn:iso:15118:2:2016:MsgDataTypes":PMax{1-3}))', derivedBy='EXTENSION'. */
+static int decode_iso2PMaxScheduleEntryType(bitstream_t* stream, struct iso2PMaxScheduleEntryType* iso2PMaxScheduleEntryType) {
+ int grammarID = 580;
+ int done = 0;
+
+ init_iso2PMaxScheduleEntryType(iso2PMaxScheduleEntryType);
+
+ while(!done) {
+ switch(grammarID) {
+ case 580:
+ /* FirstStartTag[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}RelativeTimeInterval)] */
+ errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ errn = decode_iso2RelativeTimeIntervalType(stream, &iso2PMaxScheduleEntryType->RelativeTimeInterval);
+ grammarID = 581;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 581:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}PMax)] */
+ errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ if (iso2PMaxScheduleEntryType->PMax.arrayLen < iso2PMaxScheduleEntryType_PMax_ARRAY_SIZE) {
+ errn = decode_iso2PhysicalValueType(stream, &iso2PMaxScheduleEntryType->PMax.array[iso2PMaxScheduleEntryType->PMax.arrayLen++]);
+ } else {
+ errn = EXI_ERROR_OUT_OF_BOUNDS;
+ }
+ grammarID = 582;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 582:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}PMax), END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ if (iso2PMaxScheduleEntryType->PMax.arrayLen < iso2PMaxScheduleEntryType_PMax_ARRAY_SIZE) {
+ errn = decode_iso2PhysicalValueType(stream, &iso2PMaxScheduleEntryType->PMax.array[iso2PMaxScheduleEntryType->PMax.arrayLen++]);
+ } else {
+ errn = EXI_ERROR_OUT_OF_BOUNDS;
+ }
+ grammarID = 583;
+ break;
+ case 1:
+ done = 1;
+ grammarID = 4;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 583:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}PMax), END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ if (iso2PMaxScheduleEntryType->PMax.arrayLen < iso2PMaxScheduleEntryType_PMax_ARRAY_SIZE) {
+ errn = decode_iso2PhysicalValueType(stream, &iso2PMaxScheduleEntryType->PMax.array[iso2PMaxScheduleEntryType->PMax.arrayLen++]);
+ } else {
+ errn = EXI_ERROR_OUT_OF_BOUNDS;
+ }
+ grammarID = 3;
+ break;
+ case 1:
+ done = 1;
+ grammarID = 4;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 3:
+ /* Element[END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ done = 1;
+ grammarID = 4;
+ 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='http://www.w3.org/2000/09/xmldsig#,SignatureType', base type name='anyType', content type='ELEMENT', isAbstract='false', hasTypeId='false', final='0', block='0', particle='("http://www.w3.org/2000/09/xmldsig#":SignedInfo,"http://www.w3.org/2000/09/xmldsig#":SignatureValue,"http://www.w3.org/2000/09/xmldsig#":KeyInfo{0-1},"http://www.w3.org/2000/09/xmldsig#":Object{0-UNBOUNDED})', derivedBy='RESTRICTION'. */
+static int decode_iso2SignatureType(bitstream_t* stream, struct iso2SignatureType* iso2SignatureType) {
+ int grammarID = 584;
+ int done = 0;
+
+ init_iso2SignatureType(iso2SignatureType);
+
+ while(!done) {
+ switch(grammarID) {
+ case 584:
+ /* FirstStartTag[ATTRIBUTE[STRING](Id), START_ELEMENT({http://www.w3.org/2000/09/xmldsig#}SignedInfo)] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ errn = decodeUnsignedInteger16(stream, &iso2SignatureType->Id.charactersLen);
+ if (errn == 0) {
+ if (iso2SignatureType->Id.charactersLen >= 2) {
+ iso2SignatureType->Id.charactersLen = (uint16_t)(iso2SignatureType->Id.charactersLen - 2); /* string table miss */
+ errn = decodeCharacters(stream, iso2SignatureType->Id.charactersLen, iso2SignatureType->Id.characters, iso2SignatureType_Id_CHARACTERS_SIZE);
+ } else {
+ /* string table hit */
+ errn = EXI_ERROR_STRINGVALUES_NOT_SUPPORTED;
+ }
+ }
+ iso2SignatureType->Id_isUsed = 1u;
+ grammarID = 585;
+ break;
+ case 1:
+ errn = decode_iso2SignedInfoType(stream, &iso2SignatureType->SignedInfo);
+ grammarID = 586;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 585:
+ /* StartTag[START_ELEMENT({http://www.w3.org/2000/09/xmldsig#}SignedInfo)] */
+ errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ errn = decode_iso2SignedInfoType(stream, &iso2SignatureType->SignedInfo);
+ grammarID = 586;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 586:
+ /* Element[START_ELEMENT({http://www.w3.org/2000/09/xmldsig#}SignatureValue)] */
+ errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ errn = decode_iso2SignatureValueType(stream, &iso2SignatureType->SignatureValue);
+ grammarID = 587;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 587:
+ /* Element[START_ELEMENT({http://www.w3.org/2000/09/xmldsig#}KeyInfo), START_ELEMENT({http://www.w3.org/2000/09/xmldsig#}Object), END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ errn = decode_iso2KeyInfoType(stream, &iso2SignatureType->KeyInfo);
+ iso2SignatureType->KeyInfo_isUsed = 1u;
+ grammarID = 588;
+ break;
+ case 1:
+ if (iso2SignatureType->Object.arrayLen < iso2SignatureType_Object_ARRAY_SIZE) {
+ errn = decode_iso2ObjectType(stream, &iso2SignatureType->Object.array[iso2SignatureType->Object.arrayLen++]);
+ } else {
+ errn = EXI_ERROR_OUT_OF_BOUNDS;
+ }
+ grammarID = 588;
+ break;
+ case 2:
+ done = 1;
+ grammarID = 4;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 588:
+ /* Element[START_ELEMENT({http://www.w3.org/2000/09/xmldsig#}Object), END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ if (iso2SignatureType->Object.arrayLen < iso2SignatureType_Object_ARRAY_SIZE) {
+ errn = decode_iso2ObjectType(stream, &iso2SignatureType->Object.array[iso2SignatureType->Object.arrayLen++]);
+ } else {
+ errn = EXI_ERROR_OUT_OF_BOUNDS;
+ }
+ grammarID = 588;
+ break;
+ case 1:
+ done = 1;
+ grammarID = 4;
+ 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:2016:MsgBody,VehicleCheckInReqType', base type name='BodyBaseType', content type='ELEMENT', isAbstract='false', hasTypeId='false', final='0', block='0', particle='("urn:iso:15118:2:2016:MsgBody":EVCheckInStatus,"urn:iso:15118:2:2016:MsgBody":ParkingMethod{0-1})', derivedBy='EXTENSION'. */
+static int decode_iso2VehicleCheckInReqType(bitstream_t* stream, struct iso2VehicleCheckInReqType* iso2VehicleCheckInReqType) {
+ int grammarID = 589;
+ int done = 0;
+
+ init_iso2VehicleCheckInReqType(iso2VehicleCheckInReqType);
+
+ while(!done) {
+ switch(grammarID) {
+ case 589:
+ /* FirstStartTag[START_ELEMENT({urn:iso:15118:2:2016:MsgBody}EVCheckInStatus)] */
+ 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);
+ iso2VehicleCheckInReqType->EVCheckInStatus = (iso2EVCheckInStatusType) 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({urn:iso:15118:2:2016:MsgBody}EVCheckInStatus) ? */
+ errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
+ if(eventCode == 0) {
+ grammarID = 590;
+ } else {
+ errn = EXI_DEVIANT_SUPPORT_NOT_DEPLOYED; /* or also typecast and nillable */
+ }
+ }
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 590:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgBody}ParkingMethod), 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, &uint32);
+ iso2VehicleCheckInReqType->ParkingMethod = (iso2parkingMethodType) uint32;
+ iso2VehicleCheckInReqType->ParkingMethod_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({urn:iso:15118:2:2016:MsgBody}ParkingMethod) ? */
+ errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
+ if(eventCode == 0) {
+ grammarID = 3;
+ } else {
+ errn = EXI_DEVIANT_SUPPORT_NOT_DEPLOYED; /* or also typecast and nillable */
+ }
+ }
+ break;
+ case 1:
+ done = 1;
+ grammarID = 4;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 3:
+ /* Element[END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ done = 1;
+ grammarID = 4;
+ 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:2016:MsgBody,ConnectChargingDeviceResType', base type name='V2GResponseType', content type='ELEMENT', isAbstract='false', hasTypeId='false', final='0', block='0', particle='(("urn:iso:15118:2:2016:MsgBody":ResponseCode,"urn:iso:15118:2:2016:MsgBody":EVSEStatus{0-1}),("urn:iso:15118:2:2016:MsgBody":EVSEProcessing,"urn:iso:15118:2:2016:MsgBody":EVSEElectricalChargingDeviceStatus,"urn:iso:15118:2:2016:MsgBody":EVSEMechanicalChargingDeviceStatus))', derivedBy='EXTENSION'. */
+static int decode_iso2ConnectChargingDeviceResType(bitstream_t* stream, struct iso2ConnectChargingDeviceResType* iso2ConnectChargingDeviceResType) {
+ int grammarID = 591;
+ int done = 0;
+
+ init_iso2ConnectChargingDeviceResType(iso2ConnectChargingDeviceResType);
+
+ while(!done) {
+ switch(grammarID) {
+ case 591:
+ /* FirstStartTag[START_ELEMENT({urn:iso:15118:2:2016:MsgBody}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, 5, &uint32);
+ iso2ConnectChargingDeviceResType->ResponseCode = (iso2responseCodeType) 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({urn:iso:15118:2:2016:MsgBody}ResponseCode) ? */
+ errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
+ if(eventCode == 0) {
+ grammarID = 592;
+ } else {
+ errn = EXI_DEVIANT_SUPPORT_NOT_DEPLOYED; /* or also typecast and nillable */
+ }
+ }
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 592:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgBody}EVSEStatus), START_ELEMENT({urn:iso:15118:2:2016:MsgBody}EVSEProcessing)] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ errn = decode_iso2EVSEStatusType(stream, &iso2ConnectChargingDeviceResType->EVSEStatus);
+ iso2ConnectChargingDeviceResType->EVSEStatus_isUsed = 1u;
+ grammarID = 593;
+ break;
+ case 1:
+ /* FirstStartTag[CHARACTERS[ENUMERATION]] */
+ errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
+ if(errn == 0) {
+ if(eventCode == 0) {
+ errn = decodeNBitUnsignedInteger(stream, 2, &uint32);
+ iso2ConnectChargingDeviceResType->EVSEProcessing = (iso2EVSEProcessingType) 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({urn:iso:15118:2:2016:MsgBody}EVSEProcessing) ? */
+ errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
+ if(eventCode == 0) {
+ grammarID = 594;
+ } else {
+ errn = EXI_DEVIANT_SUPPORT_NOT_DEPLOYED; /* or also typecast and nillable */
+ }
+ }
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 593:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgBody}EVSEProcessing)] */
+ 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);
+ iso2ConnectChargingDeviceResType->EVSEProcessing = (iso2EVSEProcessingType) 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({urn:iso:15118:2:2016:MsgBody}EVSEProcessing) ? */
+ errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
+ if(eventCode == 0) {
+ grammarID = 594;
+ } else {
+ errn = EXI_DEVIANT_SUPPORT_NOT_DEPLOYED; /* or also typecast and nillable */
+ }
+ }
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 594:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgBody}EVSEElectricalChargingDeviceStatus)] */
+ 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, 1, &uint32);
+ iso2ConnectChargingDeviceResType->EVSEElectricalChargingDeviceStatus = (iso2electricalChargingDeviceStatusType) 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({urn:iso:15118:2:2016:MsgBody}EVSEElectricalChargingDeviceStatus) ? */
+ errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
+ if(eventCode == 0) {
+ grammarID = 595;
+ } else {
+ errn = EXI_DEVIANT_SUPPORT_NOT_DEPLOYED; /* or also typecast and nillable */
+ }
+ }
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 595:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgBody}EVSEMechanicalChargingDeviceStatus)] */
+ 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);
+ iso2ConnectChargingDeviceResType->EVSEMechanicalChargingDeviceStatus = (iso2mechanicalChargingDeviceStatusType) 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({urn:iso:15118:2:2016:MsgBody}EVSEMechanicalChargingDeviceStatus) ? */
+ errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
+ if(eventCode == 0) {
+ grammarID = 3;
+ } else {
+ errn = EXI_DEVIANT_SUPPORT_NOT_DEPLOYED; /* or also typecast and nillable */
+ }
+ }
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 3:
+ /* Element[END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ done = 1;
+ grammarID = 4;
+ 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:2016:MsgBody,WeldingDetectionResType', base type name='V2GResponseType', content type='ELEMENT', isAbstract='false', hasTypeId='false', final='0', block='0', particle='(("urn:iso:15118:2:2016:MsgBody":ResponseCode,"urn:iso:15118:2:2016:MsgBody":EVSEStatus{0-1}),("urn:iso:15118:2:2016:MsgBody":EVSEPresentVoltage))', derivedBy='EXTENSION'. */
+static int decode_iso2WeldingDetectionResType(bitstream_t* stream, struct iso2WeldingDetectionResType* iso2WeldingDetectionResType) {
+ int grammarID = 596;
+ int done = 0;
+
+ init_iso2WeldingDetectionResType(iso2WeldingDetectionResType);
+
+ while(!done) {
+ switch(grammarID) {
+ case 596:
+ /* FirstStartTag[START_ELEMENT({urn:iso:15118:2:2016:MsgBody}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, 5, &uint32);
+ iso2WeldingDetectionResType->ResponseCode = (iso2responseCodeType) 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({urn:iso:15118:2:2016:MsgBody}ResponseCode) ? */
+ errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
+ if(eventCode == 0) {
+ grammarID = 597;
+ } else {
+ errn = EXI_DEVIANT_SUPPORT_NOT_DEPLOYED; /* or also typecast and nillable */
+ }
+ }
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 597:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgBody}EVSEStatus), START_ELEMENT({urn:iso:15118:2:2016:MsgBody}EVSEPresentVoltage)] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ errn = decode_iso2EVSEStatusType(stream, &iso2WeldingDetectionResType->EVSEStatus);
+ iso2WeldingDetectionResType->EVSEStatus_isUsed = 1u;
+ grammarID = 598;
+ break;
+ case 1:
+ errn = decode_iso2PhysicalValueType(stream, &iso2WeldingDetectionResType->EVSEPresentVoltage);
+ grammarID = 3;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 598:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgBody}EVSEPresentVoltage)] */
+ errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ errn = decode_iso2PhysicalValueType(stream, &iso2WeldingDetectionResType->EVSEPresentVoltage);
+ grammarID = 3;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 3:
+ /* Element[END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ done = 1;
+ grammarID = 4;
+ 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:2016:MsgBody,SessionStopResType', base type name='V2GResponseType', content type='ELEMENT', isAbstract='false', hasTypeId='false', final='0', block='0', particle='("urn:iso:15118:2:2016:MsgBody":ResponseCode,"urn:iso:15118:2:2016:MsgBody":EVSEStatus{0-1})', derivedBy='EXTENSION'. */
+static int decode_iso2SessionStopResType(bitstream_t* stream, struct iso2SessionStopResType* iso2SessionStopResType) {
+ int grammarID = 599;
+ int done = 0;
+
+ init_iso2SessionStopResType(iso2SessionStopResType);
+
+ while(!done) {
+ switch(grammarID) {
+ case 599:
+ /* FirstStartTag[START_ELEMENT({urn:iso:15118:2:2016:MsgBody}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, 5, &uint32);
+ iso2SessionStopResType->ResponseCode = (iso2responseCodeType) 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({urn:iso:15118:2:2016:MsgBody}ResponseCode) ? */
+ errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
+ if(eventCode == 0) {
+ grammarID = 600;
+ } else {
+ errn = EXI_DEVIANT_SUPPORT_NOT_DEPLOYED; /* or also typecast and nillable */
+ }
+ }
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 600:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgBody}EVSEStatus), END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ errn = decode_iso2EVSEStatusType(stream, &iso2SessionStopResType->EVSEStatus);
+ iso2SessionStopResType->EVSEStatus_isUsed = 1u;
+ grammarID = 3;
+ break;
+ case 1:
+ done = 1;
+ grammarID = 4;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 3:
+ /* Element[END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ done = 1;
+ grammarID = 4;
+ 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:2016:MsgBody,VehicleCheckInResType', base type name='V2GResponseType', content type='ELEMENT', isAbstract='false', hasTypeId='false', final='0', block='0', particle='(("urn:iso:15118:2:2016:MsgBody":ResponseCode,"urn:iso:15118:2:2016:MsgBody":EVSEStatus{0-1}),("urn:iso:15118:2:2016:MsgBody":VehicleSpace,"urn:iso:15118:2:2016:MsgBody":TargetOffset{0-1}))', derivedBy='EXTENSION'. */
+static int decode_iso2VehicleCheckInResType(bitstream_t* stream, struct iso2VehicleCheckInResType* iso2VehicleCheckInResType) {
+ int grammarID = 601;
+ int done = 0;
+
+ init_iso2VehicleCheckInResType(iso2VehicleCheckInResType);
+
+ while(!done) {
+ switch(grammarID) {
+ case 601:
+ /* FirstStartTag[START_ELEMENT({urn:iso:15118:2:2016:MsgBody}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, 5, &uint32);
+ iso2VehicleCheckInResType->ResponseCode = (iso2responseCodeType) 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({urn:iso:15118:2:2016:MsgBody}ResponseCode) ? */
+ errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
+ if(eventCode == 0) {
+ grammarID = 602;
+ } else {
+ errn = EXI_DEVIANT_SUPPORT_NOT_DEPLOYED; /* or also typecast and nillable */
+ }
+ }
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 602:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgBody}EVSEStatus), START_ELEMENT({urn:iso:15118:2:2016:MsgBody}VehicleSpace)] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ errn = decode_iso2EVSEStatusType(stream, &iso2VehicleCheckInResType->EVSEStatus);
+ iso2VehicleCheckInResType->EVSEStatus_isUsed = 1u;
+ grammarID = 603;
+ break;
+ case 1:
+ /* First(xsi:type)StartTag[CHARACTERS[UNSIGNED_INTEGER]] */
+ errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
+ if(errn == 0) {
+ if(eventCode == 0) {
+ errn = decodeUnsignedInteger16(stream, &iso2VehicleCheckInResType->VehicleSpace);
+ } 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({urn:iso:15118:2:2016:MsgBody}VehicleSpace) ? */
+ errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
+ if(eventCode == 0) {
+ grammarID = 604;
+ } else {
+ errn = EXI_DEVIANT_SUPPORT_NOT_DEPLOYED; /* or also typecast and nillable */
+ }
+ }
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 603:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgBody}VehicleSpace)] */
+ errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ /* First(xsi:type)StartTag[CHARACTERS[UNSIGNED_INTEGER]] */
+ errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
+ if(errn == 0) {
+ if(eventCode == 0) {
+ errn = decodeUnsignedInteger16(stream, &iso2VehicleCheckInResType->VehicleSpace);
+ } 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({urn:iso:15118:2:2016:MsgBody}VehicleSpace) ? */
+ errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
+ if(eventCode == 0) {
+ grammarID = 604;
+ } else {
+ errn = EXI_DEVIANT_SUPPORT_NOT_DEPLOYED; /* or also typecast and nillable */
+ }
+ }
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 604:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgBody}TargetOffset), END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ errn = decode_iso2TargetPositionType(stream, &iso2VehicleCheckInResType->TargetOffset);
+ iso2VehicleCheckInResType->TargetOffset_isUsed = 1u;
+ grammarID = 3;
+ break;
+ case 1:
+ done = 1;
+ grammarID = 4;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 3:
+ /* Element[END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ done = 1;
+ grammarID = 4;
+ 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:2016:MsgDataTypes,ServiceListType', base type name='anyType', content type='ELEMENT', isAbstract='false', hasTypeId='false', final='0', block='0', particle='("urn:iso:15118:2:2016:MsgDataTypes":Service{1-8})', derivedBy='RESTRICTION'. */
+static int decode_iso2ServiceListType(bitstream_t* stream, struct iso2ServiceListType* iso2ServiceListType) {
+ int grammarID = 605;
+ int done = 0;
+
+ init_iso2ServiceListType(iso2ServiceListType);
+
+ while(!done) {
+ switch(grammarID) {
+ case 605:
+ /* FirstStartTag[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}Service)] */
+ errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ if (iso2ServiceListType->Service.arrayLen < iso2ServiceListType_Service_ARRAY_SIZE) {
+ errn = decode_iso2ServiceType(stream, &iso2ServiceListType->Service.array[iso2ServiceListType->Service.arrayLen++]);
+ } else {
+ errn = EXI_ERROR_OUT_OF_BOUNDS;
+ }
+ grammarID = 606;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 606:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}Service), END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ if (iso2ServiceListType->Service.arrayLen < iso2ServiceListType_Service_ARRAY_SIZE) {
+ errn = decode_iso2ServiceType(stream, &iso2ServiceListType->Service.array[iso2ServiceListType->Service.arrayLen++]);
+ } else {
+ errn = EXI_ERROR_OUT_OF_BOUNDS;
+ }
+ grammarID = 607;
+ break;
+ case 1:
+ done = 1;
+ grammarID = 4;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 607:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}Service), END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ if (iso2ServiceListType->Service.arrayLen < iso2ServiceListType_Service_ARRAY_SIZE) {
+ errn = decode_iso2ServiceType(stream, &iso2ServiceListType->Service.array[iso2ServiceListType->Service.arrayLen++]);
+ } else {
+ errn = EXI_ERROR_OUT_OF_BOUNDS;
+ }
+ grammarID = 608;
+ break;
+ case 1:
+ done = 1;
+ grammarID = 4;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 608:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}Service), END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ if (iso2ServiceListType->Service.arrayLen < iso2ServiceListType_Service_ARRAY_SIZE) {
+ errn = decode_iso2ServiceType(stream, &iso2ServiceListType->Service.array[iso2ServiceListType->Service.arrayLen++]);
+ } else {
+ errn = EXI_ERROR_OUT_OF_BOUNDS;
+ }
+ grammarID = 609;
+ break;
+ case 1:
+ done = 1;
+ grammarID = 4;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 609:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}Service), END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ if (iso2ServiceListType->Service.arrayLen < iso2ServiceListType_Service_ARRAY_SIZE) {
+ errn = decode_iso2ServiceType(stream, &iso2ServiceListType->Service.array[iso2ServiceListType->Service.arrayLen++]);
+ } else {
+ errn = EXI_ERROR_OUT_OF_BOUNDS;
+ }
+ grammarID = 610;
+ break;
+ case 1:
+ done = 1;
+ grammarID = 4;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 610:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}Service), END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ if (iso2ServiceListType->Service.arrayLen < iso2ServiceListType_Service_ARRAY_SIZE) {
+ errn = decode_iso2ServiceType(stream, &iso2ServiceListType->Service.array[iso2ServiceListType->Service.arrayLen++]);
+ } else {
+ errn = EXI_ERROR_OUT_OF_BOUNDS;
+ }
+ grammarID = 611;
+ break;
+ case 1:
+ done = 1;
+ grammarID = 4;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 611:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}Service), END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ if (iso2ServiceListType->Service.arrayLen < iso2ServiceListType_Service_ARRAY_SIZE) {
+ errn = decode_iso2ServiceType(stream, &iso2ServiceListType->Service.array[iso2ServiceListType->Service.arrayLen++]);
+ } else {
+ errn = EXI_ERROR_OUT_OF_BOUNDS;
+ }
+ grammarID = 612;
+ break;
+ case 1:
+ done = 1;
+ grammarID = 4;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 612:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}Service), END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ if (iso2ServiceListType->Service.arrayLen < iso2ServiceListType_Service_ARRAY_SIZE) {
+ errn = decode_iso2ServiceType(stream, &iso2ServiceListType->Service.array[iso2ServiceListType->Service.arrayLen++]);
+ } else {
+ errn = EXI_ERROR_OUT_OF_BOUNDS;
+ }
+ grammarID = 3;
+ break;
+ case 1:
+ done = 1;
+ grammarID = 4;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 3:
+ /* Element[END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ done = 1;
+ grammarID = 4;
+ 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:2016:MsgBody,CertificateUpdateResType', base type name='V2GResponseType', content type='ELEMENT', isAbstract='false', hasTypeId='false', final='0', block='0', particle='(("urn:iso:15118:2:2016:MsgBody":ResponseCode,"urn:iso:15118:2:2016:MsgBody":EVSEStatus{0-1}),("urn:iso:15118:2:2016:MsgBody":SAProvisioningCertificateChain,"urn:iso:15118:2:2016:MsgBody":ContractSignatureCertChain,"urn:iso:15118:2:2016:MsgBody":ContractSignatureEncryptedPrivateKey,"urn:iso:15118:2:2016:MsgBody":DHpublickey,"urn:iso:15118:2:2016:MsgBody":eMAID,"urn:iso:15118:2:2016:MsgBody":RetryCounter{0-1}))', derivedBy='EXTENSION'. */
+static int decode_iso2CertificateUpdateResType(bitstream_t* stream, struct iso2CertificateUpdateResType* iso2CertificateUpdateResType) {
+ int grammarID = 613;
+ int done = 0;
+
+ init_iso2CertificateUpdateResType(iso2CertificateUpdateResType);
+
+ while(!done) {
+ switch(grammarID) {
+ case 613:
+ /* FirstStartTag[START_ELEMENT({urn:iso:15118:2:2016:MsgBody}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, 5, &uint32);
+ iso2CertificateUpdateResType->ResponseCode = (iso2responseCodeType) 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({urn:iso:15118:2:2016:MsgBody}ResponseCode) ? */
+ errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
+ if(eventCode == 0) {
+ grammarID = 614;
+ } else {
+ errn = EXI_DEVIANT_SUPPORT_NOT_DEPLOYED; /* or also typecast and nillable */
+ }
+ }
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 614:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgBody}EVSEStatus), START_ELEMENT({urn:iso:15118:2:2016:MsgBody}SAProvisioningCertificateChain)] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ errn = decode_iso2EVSEStatusType(stream, &iso2CertificateUpdateResType->EVSEStatus);
+ iso2CertificateUpdateResType->EVSEStatus_isUsed = 1u;
+ grammarID = 615;
+ break;
+ case 1:
+ errn = decode_iso2CertificateChainType(stream, &iso2CertificateUpdateResType->SAProvisioningCertificateChain);
+ grammarID = 616;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 615:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgBody}SAProvisioningCertificateChain)] */
+ errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ errn = decode_iso2CertificateChainType(stream, &iso2CertificateUpdateResType->SAProvisioningCertificateChain);
+ grammarID = 616;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 616:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgBody}ContractSignatureCertChain)] */
+ errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ errn = decode_iso2CertificateChainType(stream, &iso2CertificateUpdateResType->ContractSignatureCertChain);
+ grammarID = 617;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 617:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgBody}ContractSignatureEncryptedPrivateKey)] */
+ errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ errn = decode_iso2ContractSignatureEncryptedPrivateKeyType(stream, &iso2CertificateUpdateResType->ContractSignatureEncryptedPrivateKey);
+ grammarID = 618;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 618:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgBody}DHpublickey)] */
+ errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ errn = decode_iso2DiffieHellmanPublickeyType(stream, &iso2CertificateUpdateResType->DHpublickey);
+ grammarID = 619;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 619:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgBody}eMAID)] */
+ errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ errn = decode_iso2EMAIDType(stream, &iso2CertificateUpdateResType->eMAID);
+ grammarID = 620;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 620:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgBody}RetryCounter), END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ /* First(xsi:type)StartTag[CHARACTERS[INTEGER]] */
+ errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
+ if(errn == 0) {
+ if(eventCode == 0) {
+ errn = decodeInteger16(stream, &iso2CertificateUpdateResType->RetryCounter);
+ iso2CertificateUpdateResType->RetryCounter_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({urn:iso:15118:2:2016:MsgBody}RetryCounter) ? */
+ errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
+ if(eventCode == 0) {
+ grammarID = 3;
+ } else {
+ errn = EXI_DEVIANT_SUPPORT_NOT_DEPLOYED; /* or also typecast and nillable */
+ }
+ }
+ break;
+ case 1:
+ done = 1;
+ grammarID = 4;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 3:
+ /* Element[END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ done = 1;
+ grammarID = 4;
+ 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:2016:MsgBody,FinePositioningSetupResType', base type name='V2GResponseType', content type='ELEMENT', isAbstract='false', hasTypeId='false', final='0', block='0', particle='(("urn:iso:15118:2:2016:MsgBody":ResponseCode,"urn:iso:15118:2:2016:MsgBody":EVSEStatus{0-1}),("urn:iso:15118:2:2016:MsgDataTypes":EVSEFinePositioningSetupParameters{0-1}))', derivedBy='EXTENSION'. */
+static int decode_iso2FinePositioningSetupResType(bitstream_t* stream, struct iso2FinePositioningSetupResType* iso2FinePositioningSetupResType) {
+ int grammarID = 621;
+ int done = 0;
+
+ init_iso2FinePositioningSetupResType(iso2FinePositioningSetupResType);
+
+ while(!done) {
+ switch(grammarID) {
+ case 621:
+ /* FirstStartTag[START_ELEMENT({urn:iso:15118:2:2016:MsgBody}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, 5, &uint32);
+ iso2FinePositioningSetupResType->ResponseCode = (iso2responseCodeType) 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({urn:iso:15118:2:2016:MsgBody}ResponseCode) ? */
+ errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
+ if(eventCode == 0) {
+ grammarID = 622;
+ } else {
+ errn = EXI_DEVIANT_SUPPORT_NOT_DEPLOYED; /* or also typecast and nillable */
+ }
+ }
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 622:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgBody}EVSEStatus), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}EVSEFinePositioningSetupParameters), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}LFA_EVSEFinePositioningSetupParameters), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MV_EVSEFinePositioningSetupParameters), END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 3, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ errn = decode_iso2EVSEStatusType(stream, &iso2FinePositioningSetupResType->EVSEStatus);
+ iso2FinePositioningSetupResType->EVSEStatus_isUsed = 1u;
+ grammarID = 623;
+ break;
+ case 1:
+ errn = decode_iso2EVSEFinePositioningSetupParametersType(stream, &iso2FinePositioningSetupResType->EVSEFinePositioningSetupParameters);
+ iso2FinePositioningSetupResType->EVSEFinePositioningSetupParameters_isUsed = 1u;
+ grammarID = 3;
+ break;
+ case 2:
+ errn = decode_iso2LFA_EVSEFinePositioningSetupParametersType(stream, &iso2FinePositioningSetupResType->LFA_EVSEFinePositioningSetupParameters);
+ iso2FinePositioningSetupResType->LFA_EVSEFinePositioningSetupParameters_isUsed = 1u;
+ grammarID = 3;
+ break;
+ case 3:
+ errn = decode_iso2MV_EVSEFinePositioningSetupParametersType(stream, &iso2FinePositioningSetupResType->MV_EVSEFinePositioningSetupParameters);
+ iso2FinePositioningSetupResType->MV_EVSEFinePositioningSetupParameters_isUsed = 1u;
+ grammarID = 3;
+ break;
+ case 4:
+ done = 1;
+ grammarID = 4;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 623:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}EVSEFinePositioningSetupParameters), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}LFA_EVSEFinePositioningSetupParameters), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MV_EVSEFinePositioningSetupParameters), END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 3, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ errn = decode_iso2EVSEFinePositioningSetupParametersType(stream, &iso2FinePositioningSetupResType->EVSEFinePositioningSetupParameters);
+ iso2FinePositioningSetupResType->EVSEFinePositioningSetupParameters_isUsed = 1u;
+ grammarID = 3;
+ break;
+ case 1:
+ errn = decode_iso2LFA_EVSEFinePositioningSetupParametersType(stream, &iso2FinePositioningSetupResType->LFA_EVSEFinePositioningSetupParameters);
+ iso2FinePositioningSetupResType->LFA_EVSEFinePositioningSetupParameters_isUsed = 1u;
+ grammarID = 3;
+ break;
+ case 2:
+ errn = decode_iso2MV_EVSEFinePositioningSetupParametersType(stream, &iso2FinePositioningSetupResType->MV_EVSEFinePositioningSetupParameters);
+ iso2FinePositioningSetupResType->MV_EVSEFinePositioningSetupParameters_isUsed = 1u;
+ grammarID = 3;
+ break;
+ case 3:
+ done = 1;
+ grammarID = 4;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 3:
+ /* Element[END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ done = 1;
+ grammarID = 4;
+ 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:2016:MsgDataTypes,AC_EVBidirectionalParameterType', base type name='AC_EVChargeParameterType', content type='ELEMENT', isAbstract='false', hasTypeId='false', final='0', block='0', particle='((("urn:iso:15118:2:2016:MsgDataTypes":DepartureTime),("urn:iso:15118:2:2016:MsgDataTypes":EVMaximumChargePower,"urn:iso:15118:2:2016:MsgDataTypes":EVMaximumChargeCurrent,"urn:iso:15118:2:2016:MsgDataTypes":EVMinimumChargeCurrent,"urn:iso:15118:2:2016:MsgDataTypes":EVTargetEnergyRequest{0-1},"urn:iso:15118:2:2016:MsgDataTypes":EVMaximumEnergyRequest{0-1},"urn:iso:15118:2:2016:MsgDataTypes":EVMinimumEnergyRequest{0-1},"urn:iso:15118:2:2016:MsgDataTypes":EVMaximumVoltage)),("urn:iso:15118:2:2016:MsgDataTypes":EVMaximumDischargePower,"urn:iso:15118:2:2016:MsgDataTypes":EVMaximumDischargeCurrent,"urn:iso:15118:2:2016:MsgDataTypes":EVMinimumDischargeCurrent))', derivedBy='EXTENSION'. */
+static int decode_iso2AC_EVBidirectionalParameterType(bitstream_t* stream, struct iso2AC_EVBidirectionalParameterType* iso2AC_EVBidirectionalParameterType) {
+ int grammarID = 624;
+ int done = 0;
+
+ init_iso2AC_EVBidirectionalParameterType(iso2AC_EVBidirectionalParameterType);
+
+ while(!done) {
+ switch(grammarID) {
+ case 624:
+ /* FirstStartTag[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}DepartureTime)] */
+ errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ /* First(xsi:type)StartTag[CHARACTERS[UNSIGNED_INTEGER]] */
+ errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
+ if(errn == 0) {
+ if(eventCode == 0) {
+ errn = decodeUnsignedInteger32(stream, &iso2AC_EVBidirectionalParameterType->DepartureTime);
+ } 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({urn:iso:15118:2:2016:MsgDataTypes}DepartureTime) ? */
+ errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
+ if(eventCode == 0) {
+ grammarID = 625;
+ } else {
+ errn = EXI_DEVIANT_SUPPORT_NOT_DEPLOYED; /* or also typecast and nillable */
+ }
+ }
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 625:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}EVMaximumChargePower)] */
+ errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ errn = decode_iso2PhysicalValueType(stream, &iso2AC_EVBidirectionalParameterType->EVMaximumChargePower);
+ grammarID = 626;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 626:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}EVMaximumChargeCurrent)] */
+ errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ errn = decode_iso2PhysicalValueType(stream, &iso2AC_EVBidirectionalParameterType->EVMaximumChargeCurrent);
+ grammarID = 627;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 627:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}EVMinimumChargeCurrent)] */
+ errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ errn = decode_iso2PhysicalValueType(stream, &iso2AC_EVBidirectionalParameterType->EVMinimumChargeCurrent);
+ grammarID = 628;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 628:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}EVTargetEnergyRequest), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}EVMaximumEnergyRequest), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}EVMinimumEnergyRequest), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}EVMaximumVoltage)] */
+ errn = decodeNBitUnsignedInteger(stream, 3, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ errn = decode_iso2PhysicalValueType(stream, &iso2AC_EVBidirectionalParameterType->EVTargetEnergyRequest);
+ iso2AC_EVBidirectionalParameterType->EVTargetEnergyRequest_isUsed = 1u;
+ grammarID = 629;
+ break;
+ case 1:
+ errn = decode_iso2PhysicalValueType(stream, &iso2AC_EVBidirectionalParameterType->EVMaximumEnergyRequest);
+ iso2AC_EVBidirectionalParameterType->EVMaximumEnergyRequest_isUsed = 1u;
+ grammarID = 630;
+ break;
+ case 2:
+ errn = decode_iso2PhysicalValueType(stream, &iso2AC_EVBidirectionalParameterType->EVMinimumEnergyRequest);
+ iso2AC_EVBidirectionalParameterType->EVMinimumEnergyRequest_isUsed = 1u;
+ grammarID = 631;
+ break;
+ case 3:
+ errn = decode_iso2PhysicalValueType(stream, &iso2AC_EVBidirectionalParameterType->EVMaximumVoltage);
+ grammarID = 632;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 629:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}EVMaximumEnergyRequest), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}EVMinimumEnergyRequest), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}EVMaximumVoltage)] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ errn = decode_iso2PhysicalValueType(stream, &iso2AC_EVBidirectionalParameterType->EVMaximumEnergyRequest);
+ iso2AC_EVBidirectionalParameterType->EVMaximumEnergyRequest_isUsed = 1u;
+ grammarID = 630;
+ break;
+ case 1:
+ errn = decode_iso2PhysicalValueType(stream, &iso2AC_EVBidirectionalParameterType->EVMinimumEnergyRequest);
+ iso2AC_EVBidirectionalParameterType->EVMinimumEnergyRequest_isUsed = 1u;
+ grammarID = 631;
+ break;
+ case 2:
+ errn = decode_iso2PhysicalValueType(stream, &iso2AC_EVBidirectionalParameterType->EVMaximumVoltage);
+ grammarID = 632;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 630:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}EVMinimumEnergyRequest), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}EVMaximumVoltage)] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ errn = decode_iso2PhysicalValueType(stream, &iso2AC_EVBidirectionalParameterType->EVMinimumEnergyRequest);
+ iso2AC_EVBidirectionalParameterType->EVMinimumEnergyRequest_isUsed = 1u;
+ grammarID = 631;
+ break;
+ case 1:
+ errn = decode_iso2PhysicalValueType(stream, &iso2AC_EVBidirectionalParameterType->EVMaximumVoltage);
+ grammarID = 632;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 631:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}EVMaximumVoltage)] */
+ errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ errn = decode_iso2PhysicalValueType(stream, &iso2AC_EVBidirectionalParameterType->EVMaximumVoltage);
+ grammarID = 632;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 632:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}EVMaximumDischargePower)] */
+ errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ errn = decode_iso2PhysicalValueType(stream, &iso2AC_EVBidirectionalParameterType->EVMaximumDischargePower);
+ grammarID = 633;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 633:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}EVMaximumDischargeCurrent)] */
+ errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ errn = decode_iso2PhysicalValueType(stream, &iso2AC_EVBidirectionalParameterType->EVMaximumDischargeCurrent);
+ grammarID = 634;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 634:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}EVMinimumDischargeCurrent)] */
+ errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ errn = decode_iso2PhysicalValueType(stream, &iso2AC_EVBidirectionalParameterType->EVMinimumDischargeCurrent);
+ grammarID = 3;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 3:
+ /* Element[END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ done = 1;
+ grammarID = 4;
+ 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:2016:MsgBody,DC_BidirectionalControlReqType', base type name='ChargeLoopReqType', content type='ELEMENT', isAbstract='false', hasTypeId='false', final='0', block='0', particle='(("urn:iso:15118:2:2016:MsgBody":EVTargetEnergyRequest,"urn:iso:15118:2:2016:MsgBody":EVMaximumEnergyRequest{0-1},"urn:iso:15118:2:2016:MsgBody":EVMinimumEnergyRequest{0-1},"urn:iso:15118:2:2016:MsgBody":DisplayParameters{0-1}),("urn:iso:15118:2:2016:MsgBody":EVTargetCurrent,"urn:iso:15118:2:2016:MsgBody":EVTargetVoltage,"urn:iso:15118:2:2016:MsgBody":EVMaximumVoltage,"urn:iso:15118:2:2016:MsgBody":EVMinimumVoltage,"urn:iso:15118:2:2016:MsgBody":EVMaximumChargeCurrent,"urn:iso:15118:2:2016:MsgBody":EVMaximumDischargeCurrent{0-1},"urn:iso:15118:2:2016:MsgBody":EVMaximumChargePower{0-1},"urn:iso:15118:2:2016:MsgBody":EVMaximumDischargePower{0-1}))', derivedBy='EXTENSION'. */
+static int decode_iso2DC_BidirectionalControlReqType(bitstream_t* stream, struct iso2DC_BidirectionalControlReqType* iso2DC_BidirectionalControlReqType) {
+ int grammarID = 635;
+ int done = 0;
+
+ init_iso2DC_BidirectionalControlReqType(iso2DC_BidirectionalControlReqType);
+
+ while(!done) {
+ switch(grammarID) {
+ case 635:
+ /* FirstStartTag[START_ELEMENT({urn:iso:15118:2:2016:MsgBody}EVTargetEnergyRequest)] */
+ errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ errn = decode_iso2PhysicalValueType(stream, &iso2DC_BidirectionalControlReqType->EVTargetEnergyRequest);
+ grammarID = 636;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 636:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgBody}EVMaximumEnergyRequest), START_ELEMENT({urn:iso:15118:2:2016:MsgBody}EVMinimumEnergyRequest), START_ELEMENT({urn:iso:15118:2:2016:MsgBody}DisplayParameters), START_ELEMENT({urn:iso:15118:2:2016:MsgBody}EVTargetCurrent)] */
+ errn = decodeNBitUnsignedInteger(stream, 3, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ errn = decode_iso2PhysicalValueType(stream, &iso2DC_BidirectionalControlReqType->EVMaximumEnergyRequest);
+ iso2DC_BidirectionalControlReqType->EVMaximumEnergyRequest_isUsed = 1u;
+ grammarID = 637;
+ break;
+ case 1:
+ errn = decode_iso2PhysicalValueType(stream, &iso2DC_BidirectionalControlReqType->EVMinimumEnergyRequest);
+ iso2DC_BidirectionalControlReqType->EVMinimumEnergyRequest_isUsed = 1u;
+ grammarID = 638;
+ break;
+ case 2:
+ errn = decode_iso2DisplayParametersType(stream, &iso2DC_BidirectionalControlReqType->DisplayParameters);
+ iso2DC_BidirectionalControlReqType->DisplayParameters_isUsed = 1u;
+ grammarID = 639;
+ break;
+ case 3:
+ errn = decode_iso2PhysicalValueType(stream, &iso2DC_BidirectionalControlReqType->EVTargetCurrent);
+ grammarID = 640;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 637:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgBody}EVMinimumEnergyRequest), START_ELEMENT({urn:iso:15118:2:2016:MsgBody}DisplayParameters), START_ELEMENT({urn:iso:15118:2:2016:MsgBody}EVTargetCurrent)] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ errn = decode_iso2PhysicalValueType(stream, &iso2DC_BidirectionalControlReqType->EVMinimumEnergyRequest);
+ iso2DC_BidirectionalControlReqType->EVMinimumEnergyRequest_isUsed = 1u;
+ grammarID = 638;
+ break;
+ case 1:
+ errn = decode_iso2DisplayParametersType(stream, &iso2DC_BidirectionalControlReqType->DisplayParameters);
+ iso2DC_BidirectionalControlReqType->DisplayParameters_isUsed = 1u;
+ grammarID = 639;
+ break;
+ case 2:
+ errn = decode_iso2PhysicalValueType(stream, &iso2DC_BidirectionalControlReqType->EVTargetCurrent);
+ grammarID = 640;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 638:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgBody}DisplayParameters), START_ELEMENT({urn:iso:15118:2:2016:MsgBody}EVTargetCurrent)] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ errn = decode_iso2DisplayParametersType(stream, &iso2DC_BidirectionalControlReqType->DisplayParameters);
+ iso2DC_BidirectionalControlReqType->DisplayParameters_isUsed = 1u;
+ grammarID = 639;
+ break;
+ case 1:
+ errn = decode_iso2PhysicalValueType(stream, &iso2DC_BidirectionalControlReqType->EVTargetCurrent);
+ grammarID = 640;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 639:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgBody}EVTargetCurrent)] */
+ errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ errn = decode_iso2PhysicalValueType(stream, &iso2DC_BidirectionalControlReqType->EVTargetCurrent);
+ grammarID = 640;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 640:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgBody}EVTargetVoltage)] */
+ errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ errn = decode_iso2PhysicalValueType(stream, &iso2DC_BidirectionalControlReqType->EVTargetVoltage);
+ grammarID = 641;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 641:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgBody}EVMaximumVoltage)] */
+ errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ errn = decode_iso2PhysicalValueType(stream, &iso2DC_BidirectionalControlReqType->EVMaximumVoltage);
+ grammarID = 642;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 642:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgBody}EVMinimumVoltage)] */
+ errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ errn = decode_iso2PhysicalValueType(stream, &iso2DC_BidirectionalControlReqType->EVMinimumVoltage);
+ grammarID = 643;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 643:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgBody}EVMaximumChargeCurrent)] */
+ errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ errn = decode_iso2PhysicalValueType(stream, &iso2DC_BidirectionalControlReqType->EVMaximumChargeCurrent);
+ grammarID = 644;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 644:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgBody}EVMaximumDischargeCurrent), START_ELEMENT({urn:iso:15118:2:2016:MsgBody}EVMaximumChargePower), START_ELEMENT({urn:iso:15118:2:2016:MsgBody}EVMaximumDischargePower), END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 3, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ errn = decode_iso2PhysicalValueType(stream, &iso2DC_BidirectionalControlReqType->EVMaximumDischargeCurrent);
+ iso2DC_BidirectionalControlReqType->EVMaximumDischargeCurrent_isUsed = 1u;
+ grammarID = 645;
+ break;
+ case 1:
+ errn = decode_iso2PhysicalValueType(stream, &iso2DC_BidirectionalControlReqType->EVMaximumChargePower);
+ iso2DC_BidirectionalControlReqType->EVMaximumChargePower_isUsed = 1u;
+ grammarID = 646;
+ break;
+ case 2:
+ errn = decode_iso2PhysicalValueType(stream, &iso2DC_BidirectionalControlReqType->EVMaximumDischargePower);
+ iso2DC_BidirectionalControlReqType->EVMaximumDischargePower_isUsed = 1u;
+ grammarID = 3;
+ break;
+ case 3:
+ done = 1;
+ grammarID = 4;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 645:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgBody}EVMaximumChargePower), START_ELEMENT({urn:iso:15118:2:2016:MsgBody}EVMaximumDischargePower), END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ errn = decode_iso2PhysicalValueType(stream, &iso2DC_BidirectionalControlReqType->EVMaximumChargePower);
+ iso2DC_BidirectionalControlReqType->EVMaximumChargePower_isUsed = 1u;
+ grammarID = 646;
+ break;
+ case 1:
+ errn = decode_iso2PhysicalValueType(stream, &iso2DC_BidirectionalControlReqType->EVMaximumDischargePower);
+ iso2DC_BidirectionalControlReqType->EVMaximumDischargePower_isUsed = 1u;
+ grammarID = 3;
+ break;
+ case 2:
+ done = 1;
+ grammarID = 4;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 646:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgBody}EVMaximumDischargePower), END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ errn = decode_iso2PhysicalValueType(stream, &iso2DC_BidirectionalControlReqType->EVMaximumDischargePower);
+ iso2DC_BidirectionalControlReqType->EVMaximumDischargePower_isUsed = 1u;
+ grammarID = 3;
+ break;
+ case 1:
+ done = 1;
+ grammarID = 4;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 3:
+ /* Element[END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ done = 1;
+ grammarID = 4;
+ 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:2016:MsgBody,CertificateUpdateReqType', base type name='BodyBaseType', content type='ELEMENT', isAbstract='false', hasTypeId='false', final='0', block='0', particle='("urn:iso:15118:2:2016:MsgBody":ContractSignatureCertChain,"urn:iso:15118:2:2016:MsgBody":eMAID,"urn:iso:15118:2:2016:MsgBody":ListOfRootCertificateIDs)', derivedBy='EXTENSION'. */
+static int decode_iso2CertificateUpdateReqType(bitstream_t* stream, struct iso2CertificateUpdateReqType* iso2CertificateUpdateReqType) {
+ int grammarID = 647;
+ int done = 0;
+
+ init_iso2CertificateUpdateReqType(iso2CertificateUpdateReqType);
+
+ while(!done) {
+ switch(grammarID) {
+ case 647:
+ /* FirstStartTag[ATTRIBUTE[STRING]({urn:iso:15118:2:2016:MsgBody}Id)] */
+ errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ errn = decodeUnsignedInteger16(stream, &iso2CertificateUpdateReqType->Id.charactersLen);
+ if (errn == 0) {
+ if (iso2CertificateUpdateReqType->Id.charactersLen >= 2) {
+ iso2CertificateUpdateReqType->Id.charactersLen = (uint16_t)(iso2CertificateUpdateReqType->Id.charactersLen - 2); /* string table miss */
+ errn = decodeCharacters(stream, iso2CertificateUpdateReqType->Id.charactersLen, iso2CertificateUpdateReqType->Id.characters, iso2CertificateUpdateReqType_Id_CHARACTERS_SIZE);
+ } else {
+ /* string table hit */
+ errn = EXI_ERROR_STRINGVALUES_NOT_SUPPORTED;
+ }
+ }
+ grammarID = 648;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 648:
+ /* StartTag[START_ELEMENT({urn:iso:15118:2:2016:MsgBody}ContractSignatureCertChain)] */
+ errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ errn = decode_iso2CertificateChainType(stream, &iso2CertificateUpdateReqType->ContractSignatureCertChain);
+ grammarID = 649;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 649:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgBody}eMAID)] */
+ errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ /* First(xsi:type)StartTag[CHARACTERS[STRING]] */
+ errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
+ if(errn == 0) {
+ if(eventCode == 0) {
+ errn = decodeUnsignedInteger16(stream, &iso2CertificateUpdateReqType->eMAID.charactersLen);
+ if (errn == 0) {
+ if (iso2CertificateUpdateReqType->eMAID.charactersLen >= 2) {
+ iso2CertificateUpdateReqType->eMAID.charactersLen = (uint16_t)(iso2CertificateUpdateReqType->eMAID.charactersLen - 2); /* string table miss */
+ errn = decodeCharacters(stream, iso2CertificateUpdateReqType->eMAID.charactersLen, iso2CertificateUpdateReqType->eMAID.characters, iso2CertificateUpdateReqType_eMAID_CHARACTERS_SIZE);
+ } else {
+ /* string table hit */
+ errn = EXI_ERROR_STRINGVALUES_NOT_SUPPORTED;
+ }
+ }
+ } 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({urn:iso:15118:2:2016:MsgBody}eMAID) ? */
+ errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
+ if(eventCode == 0) {
+ grammarID = 650;
+ } else {
+ errn = EXI_DEVIANT_SUPPORT_NOT_DEPLOYED; /* or also typecast and nillable */
+ }
+ }
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 650:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgBody}ListOfRootCertificateIDs)] */
+ errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ errn = decode_iso2ListOfRootCertificateIDsType(stream, &iso2CertificateUpdateReqType->ListOfRootCertificateIDs);
+ grammarID = 3;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 3:
+ /* Element[END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ done = 1;
+ grammarID = 4;
+ 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:2016:MsgDataTypes,ConsumptionCostType', base type name='anyType', content type='ELEMENT', isAbstract='false', hasTypeId='false', final='0', block='0', particle='("urn:iso:15118:2:2016:MsgDataTypes":startValue,"urn:iso:15118:2:2016:MsgDataTypes":Cost{1-3})', derivedBy='RESTRICTION'. */
+static int decode_iso2ConsumptionCostType(bitstream_t* stream, struct iso2ConsumptionCostType* iso2ConsumptionCostType) {
+ int grammarID = 651;
+ int done = 0;
+
+ init_iso2ConsumptionCostType(iso2ConsumptionCostType);
+
+ while(!done) {
+ switch(grammarID) {
+ case 651:
+ /* FirstStartTag[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}startValue)] */
+ errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ errn = decode_iso2PhysicalValueType(stream, &iso2ConsumptionCostType->startValue);
+ grammarID = 652;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 652:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}Cost)] */
+ errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ if (iso2ConsumptionCostType->Cost.arrayLen < iso2ConsumptionCostType_Cost_ARRAY_SIZE) {
+ errn = decode_iso2CostType(stream, &iso2ConsumptionCostType->Cost.array[iso2ConsumptionCostType->Cost.arrayLen++]);
+ } else {
+ errn = EXI_ERROR_OUT_OF_BOUNDS;
+ }
+ grammarID = 653;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 653:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}Cost), END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ if (iso2ConsumptionCostType->Cost.arrayLen < iso2ConsumptionCostType_Cost_ARRAY_SIZE) {
+ errn = decode_iso2CostType(stream, &iso2ConsumptionCostType->Cost.array[iso2ConsumptionCostType->Cost.arrayLen++]);
+ } else {
+ errn = EXI_ERROR_OUT_OF_BOUNDS;
+ }
+ grammarID = 654;
+ break;
+ case 1:
+ done = 1;
+ grammarID = 4;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 654:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}Cost), END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ if (iso2ConsumptionCostType->Cost.arrayLen < iso2ConsumptionCostType_Cost_ARRAY_SIZE) {
+ errn = decode_iso2CostType(stream, &iso2ConsumptionCostType->Cost.array[iso2ConsumptionCostType->Cost.arrayLen++]);
+ } else {
+ errn = EXI_ERROR_OUT_OF_BOUNDS;
+ }
+ grammarID = 3;
+ break;
+ case 1:
+ done = 1;
+ grammarID = 4;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 3:
+ /* Element[END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ done = 1;
+ grammarID = 4;
+ 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:2016:MsgDataTypes,SAScheduleListType', base type name='anyType', content type='ELEMENT', isAbstract='false', hasTypeId='false', final='0', block='0', particle='("urn:iso:15118:2:2016:MsgDataTypes":SAScheduleTuple{1-3})', derivedBy='RESTRICTION'. */
+static int decode_iso2SAScheduleListType(bitstream_t* stream, struct iso2SAScheduleListType* iso2SAScheduleListType) {
+ int grammarID = 655;
+ int done = 0;
+
+ init_iso2SAScheduleListType(iso2SAScheduleListType);
+
+ while(!done) {
+ switch(grammarID) {
+ case 655:
+ /* FirstStartTag[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SAScheduleTuple)] */
+ errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ if (iso2SAScheduleListType->SAScheduleTuple.arrayLen < iso2SAScheduleListType_SAScheduleTuple_ARRAY_SIZE) {
+ errn = decode_iso2SAScheduleTupleType(stream, &iso2SAScheduleListType->SAScheduleTuple.array[iso2SAScheduleListType->SAScheduleTuple.arrayLen++]);
+ } else {
+ errn = EXI_ERROR_OUT_OF_BOUNDS;
+ }
+ grammarID = 656;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 656:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SAScheduleTuple), END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ if (iso2SAScheduleListType->SAScheduleTuple.arrayLen < iso2SAScheduleListType_SAScheduleTuple_ARRAY_SIZE) {
+ errn = decode_iso2SAScheduleTupleType(stream, &iso2SAScheduleListType->SAScheduleTuple.array[iso2SAScheduleListType->SAScheduleTuple.arrayLen++]);
+ } else {
+ errn = EXI_ERROR_OUT_OF_BOUNDS;
+ }
+ grammarID = 657;
+ break;
+ case 1:
+ done = 1;
+ grammarID = 4;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 657:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SAScheduleTuple), END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ if (iso2SAScheduleListType->SAScheduleTuple.arrayLen < iso2SAScheduleListType_SAScheduleTuple_ARRAY_SIZE) {
+ errn = decode_iso2SAScheduleTupleType(stream, &iso2SAScheduleListType->SAScheduleTuple.array[iso2SAScheduleListType->SAScheduleTuple.arrayLen++]);
+ } else {
+ errn = EXI_ERROR_OUT_OF_BOUNDS;
+ }
+ grammarID = 3;
+ break;
+ case 1:
+ done = 1;
+ grammarID = 4;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 3:
+ /* Element[END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ done = 1;
+ grammarID = 4;
+ 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:2016:MsgDataTypes,MagneticVectorSetupType', base type name='anyType', content type='ELEMENT', isAbstract='false', hasTypeId='false', final='0', block='0', particle='("urn:iso:15118:2:2016:MsgDataTypes":GAID,"urn:iso:15118:2:2016:MsgDataTypes":FrequencyChannel)', derivedBy='RESTRICTION'. */
+static int decode_iso2MagneticVectorSetupType(bitstream_t* stream, struct iso2MagneticVectorSetupType* iso2MagneticVectorSetupType) {
+ int grammarID = 658;
+ int done = 0;
+
+ init_iso2MagneticVectorSetupType(iso2MagneticVectorSetupType);
+
+ while(!done) {
+ switch(grammarID) {
+ case 658:
+ /* FirstStartTag[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}GAID)] */
+ errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ /* FirstStartTag[CHARACTERS[STRING]] */
+ errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
+ if(errn == 0) {
+ if(eventCode == 0) {
+ errn = decodeUnsignedInteger16(stream, &iso2MagneticVectorSetupType->GAID.charactersLen);
+ if (errn == 0) {
+ if (iso2MagneticVectorSetupType->GAID.charactersLen >= 2) {
+ iso2MagneticVectorSetupType->GAID.charactersLen = (uint16_t)(iso2MagneticVectorSetupType->GAID.charactersLen - 2); /* string table miss */
+ errn = decodeCharacters(stream, iso2MagneticVectorSetupType->GAID.charactersLen, iso2MagneticVectorSetupType->GAID.characters, iso2MagneticVectorSetupType_GAID_CHARACTERS_SIZE);
+ } else {
+ /* string table hit */
+ errn = EXI_ERROR_STRINGVALUES_NOT_SUPPORTED;
+ }
+ }
+ } 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({urn:iso:15118:2:2016:MsgDataTypes}GAID) ? */
+ errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
+ if(eventCode == 0) {
+ grammarID = 659;
+ } else {
+ errn = EXI_DEVIANT_SUPPORT_NOT_DEPLOYED; /* or also typecast and nillable */
+ }
+ }
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 659:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}FrequencyChannel)] */
+ errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ /* First(xsi:type)StartTag[CHARACTERS[UNSIGNED_INTEGER]] */
+ errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
+ if(errn == 0) {
+ if(eventCode == 0) {
+ errn = decodeUnsignedInteger32(stream, &iso2MagneticVectorSetupType->FrequencyChannel);
+ } 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({urn:iso:15118:2:2016:MsgDataTypes}FrequencyChannel) ? */
+ errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
+ if(eventCode == 0) {
+ grammarID = 3;
+ } else {
+ errn = EXI_DEVIANT_SUPPORT_NOT_DEPLOYED; /* or also typecast and nillable */
+ }
+ }
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 3:
+ /* Element[END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ done = 1;
+ grammarID = 4;
+ 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:2016:MsgDataTypes,LFA_EVSEFinePositioningSetupParametersType', base type name='EVSEFinePositioningSetupParametersType', content type='ELEMENT', isAbstract='false', hasTypeId='false', final='0', block='0', particle='("urn:iso:15118:2:2016:MsgDataTypes":NumberOfSensors,"urn:iso:15118:2:2016:MsgDataTypes":SensorList,"urn:iso:15118:2:2016:MsgDataTypes":SensorOrder,"urn:iso:15118:2:2016:MsgDataTypes":SignalPulseDuration,"urn:iso:15118:2:2016:MsgDataTypes":SignalSeparationTime,"urn:iso:15118:2:2016:MsgDataTypes":PackageSeparationTime,"urn:iso:15118:2:2016:MsgDataTypes":AlignmentOffset,"urn:iso:15118:2:2016:MsgDataTypes":SignalFrequency)', derivedBy='EXTENSION'. */
+static int decode_iso2LFA_EVSEFinePositioningSetupParametersType(bitstream_t* stream, struct iso2LFA_EVSEFinePositioningSetupParametersType* iso2LFA_EVSEFinePositioningSetupParametersType) {
+ int grammarID = 660;
+ int done = 0;
+
+ init_iso2LFA_EVSEFinePositioningSetupParametersType(iso2LFA_EVSEFinePositioningSetupParametersType);
+
+ while(!done) {
+ switch(grammarID) {
+ case 660:
+ /* FirstStartTag[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}NumberOfSensors)] */
+ errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
+ errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
+ if(errn == 0) {
+ if(eventCode == 0) {
+ errn = decodeNBitUnsignedInteger(stream, 8, &(uint32));
+ iso2LFA_EVSEFinePositioningSetupParametersType->NumberOfSensors = (uint8_t)(uint32 + 0);
+ } 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({urn:iso:15118:2:2016:MsgDataTypes}NumberOfSensors) ? */
+ errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
+ if(eventCode == 0) {
+ grammarID = 661;
+ } else {
+ errn = EXI_DEVIANT_SUPPORT_NOT_DEPLOYED; /* or also typecast and nillable */
+ }
+ }
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 661:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorList)] */
+ errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ errn = decode_iso2SensorListType(stream, &iso2LFA_EVSEFinePositioningSetupParametersType->SensorList);
+ grammarID = 662;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 662:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorOrder)] */
+ errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ errn = decode_iso2SensorOrderListType(stream, &iso2LFA_EVSEFinePositioningSetupParametersType->SensorOrder);
+ grammarID = 663;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 663:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SignalPulseDuration)] */
+ errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
+ errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
+ if(errn == 0) {
+ if(eventCode == 0) {
+ errn = decodeNBitUnsignedInteger(stream, 8, &(uint32));
+ iso2LFA_EVSEFinePositioningSetupParametersType->SignalPulseDuration = (uint8_t)(uint32 + 0);
+ } 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({urn:iso:15118:2:2016:MsgDataTypes}SignalPulseDuration) ? */
+ errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
+ if(eventCode == 0) {
+ grammarID = 664;
+ } else {
+ errn = EXI_DEVIANT_SUPPORT_NOT_DEPLOYED; /* or also typecast and nillable */
+ }
+ }
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 664:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SignalSeparationTime)] */
+ errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
+ errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
+ if(errn == 0) {
+ if(eventCode == 0) {
+ errn = decodeNBitUnsignedInteger(stream, 8, &(uint32));
+ iso2LFA_EVSEFinePositioningSetupParametersType->SignalSeparationTime = (uint8_t)(uint32 + 0);
+ } 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({urn:iso:15118:2:2016:MsgDataTypes}SignalSeparationTime) ? */
+ errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
+ if(eventCode == 0) {
+ grammarID = 665;
+ } else {
+ errn = EXI_DEVIANT_SUPPORT_NOT_DEPLOYED; /* or also typecast and nillable */
+ }
+ }
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 665:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}PackageSeparationTime)] */
+ errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
+ errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
+ if(errn == 0) {
+ if(eventCode == 0) {
+ errn = decodeNBitUnsignedInteger(stream, 8, &(uint32));
+ iso2LFA_EVSEFinePositioningSetupParametersType->PackageSeparationTime = (uint8_t)(uint32 + 0);
+ } 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({urn:iso:15118:2:2016:MsgDataTypes}PackageSeparationTime) ? */
+ errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
+ if(eventCode == 0) {
+ grammarID = 666;
+ } else {
+ errn = EXI_DEVIANT_SUPPORT_NOT_DEPLOYED; /* or also typecast and nillable */
+ }
+ }
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 666:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}AlignmentOffset)] */
+ errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ /* First(xsi:type)StartTag[CHARACTERS[UNSIGNED_INTEGER]] */
+ errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
+ if(errn == 0) {
+ if(eventCode == 0) {
+ errn = decodeUnsignedInteger16(stream, &iso2LFA_EVSEFinePositioningSetupParametersType->AlignmentOffset);
+ } 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({urn:iso:15118:2:2016:MsgDataTypes}AlignmentOffset) ? */
+ errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
+ if(eventCode == 0) {
+ grammarID = 667;
+ } else {
+ errn = EXI_DEVIANT_SUPPORT_NOT_DEPLOYED; /* or also typecast and nillable */
+ }
+ }
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 667:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SignalFrequency)] */
+ errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ /* First(xsi:type)StartTag[CHARACTERS[UNSIGNED_INTEGER]] */
+ errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
+ if(errn == 0) {
+ if(eventCode == 0) {
+ errn = decodeUnsignedInteger16(stream, &iso2LFA_EVSEFinePositioningSetupParametersType->SignalFrequency);
+ } 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({urn:iso:15118:2:2016:MsgDataTypes}SignalFrequency) ? */
+ errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
+ if(eventCode == 0) {
+ grammarID = 3;
+ } else {
+ errn = EXI_DEVIANT_SUPPORT_NOT_DEPLOYED; /* or also typecast and nillable */
+ }
+ }
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 3:
+ /* Element[END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ done = 1;
+ grammarID = 4;
+ 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:2016:MsgDataTypes,PaymentOptionListType', base type name='anyType', content type='ELEMENT', isAbstract='false', hasTypeId='false', final='0', block='0', particle='("urn:iso:15118:2:2016:MsgDataTypes":PaymentOption{1-2})', derivedBy='RESTRICTION'. */
+static int decode_iso2PaymentOptionListType(bitstream_t* stream, struct iso2PaymentOptionListType* iso2PaymentOptionListType) {
+ int grammarID = 668;
+ int done = 0;
+
+ init_iso2PaymentOptionListType(iso2PaymentOptionListType);
+
+ while(!done) {
+ switch(grammarID) {
+ case 668:
+ /* FirstStartTag[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}PaymentOption)] */
+ errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ if (iso2PaymentOptionListType->PaymentOption.arrayLen < iso2PaymentOptionListType_PaymentOption_ARRAY_SIZE) {
+ /* FirstStartTag[CHARACTERS[ENUMERATION]] */
+ errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
+ if(errn == 0) {
+ if(eventCode == 0) {
+ errn = decodeNBitUnsignedInteger(stream, 1, &uint32);
+ iso2PaymentOptionListType->PaymentOption.array[iso2PaymentOptionListType->PaymentOption.arrayLen] = (iso2paymentOptionType) uint32;
+ iso2PaymentOptionListType->PaymentOption.arrayLen++;
+ } else {
+ /* Second level event (e.g., xsi:type, xsi:nil, ...) */
+ errn = EXI_UNSUPPORTED_EVENT_CODE_CHARACTERISTICS;
+ }
+ }
+ } else {
+ errn = EXI_ERROR_OUT_OF_BOUNDS;
+ }
+ if(errn == 0) {
+ /* valid EE for simple element START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}PaymentOption) ? */
+ errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
+ if(eventCode == 0) {
+ grammarID = 669;
+ } else {
+ errn = EXI_DEVIANT_SUPPORT_NOT_DEPLOYED; /* or also typecast and nillable */
+ }
+ }
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 669:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}PaymentOption), END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ if (iso2PaymentOptionListType->PaymentOption.arrayLen < iso2PaymentOptionListType_PaymentOption_ARRAY_SIZE) {
+ /* FirstStartTag[CHARACTERS[ENUMERATION]] */
+ errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
+ if(errn == 0) {
+ if(eventCode == 0) {
+ errn = decodeNBitUnsignedInteger(stream, 1, &uint32);
+ iso2PaymentOptionListType->PaymentOption.array[iso2PaymentOptionListType->PaymentOption.arrayLen] = (iso2paymentOptionType) uint32;
+ iso2PaymentOptionListType->PaymentOption.arrayLen++;
+ } else {
+ /* Second level event (e.g., xsi:type, xsi:nil, ...) */
+ errn = EXI_UNSUPPORTED_EVENT_CODE_CHARACTERISTICS;
+ }
+ }
+ } else {
+ errn = EXI_ERROR_OUT_OF_BOUNDS;
+ }
+ if(errn == 0) {
+ /* valid EE for simple element START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}PaymentOption) ? */
+ errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
+ if(eventCode == 0) {
+ grammarID = 3;
+ } else {
+ errn = EXI_DEVIANT_SUPPORT_NOT_DEPLOYED; /* or also typecast and nillable */
+ }
+ }
+ break;
+ case 1:
+ done = 1;
+ grammarID = 4;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 3:
+ /* Element[END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ done = 1;
+ grammarID = 4;
+ 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:2016:MsgDataTypes,LFA_EVSEFinePositioningParametersType', base type name='EVSEFinePositioningParametersType', content type='ELEMENT', isAbstract='false', hasTypeId='false', final='0', block='0', particle='("urn:iso:15118:2:2016:MsgDataTypes":NumberOfSignalPackages,"urn:iso:15118:2:2016:MsgDataTypes":SensorPackageList)', derivedBy='EXTENSION'. */
+static int decode_iso2LFA_EVSEFinePositioningParametersType(bitstream_t* stream, struct iso2LFA_EVSEFinePositioningParametersType* iso2LFA_EVSEFinePositioningParametersType) {
+ int grammarID = 670;
+ int done = 0;
+
+ init_iso2LFA_EVSEFinePositioningParametersType(iso2LFA_EVSEFinePositioningParametersType);
+
+ while(!done) {
+ switch(grammarID) {
+ case 670:
+ /* FirstStartTag[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}NumberOfSignalPackages)] */
+ errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
+ errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
+ if(errn == 0) {
+ if(eventCode == 0) {
+ errn = decodeNBitUnsignedInteger(stream, 8, &(uint32));
+ iso2LFA_EVSEFinePositioningParametersType->NumberOfSignalPackages = (uint8_t)(uint32 + 0);
+ } 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({urn:iso:15118:2:2016:MsgDataTypes}NumberOfSignalPackages) ? */
+ errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
+ if(eventCode == 0) {
+ grammarID = 671;
+ } else {
+ errn = EXI_DEVIANT_SUPPORT_NOT_DEPLOYED; /* or also typecast and nillable */
+ }
+ }
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 671:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorPackageList)] */
+ errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ errn = decode_iso2SensorPackageListType(stream, &iso2LFA_EVSEFinePositioningParametersType->SensorPackageList);
+ grammarID = 3;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 3:
+ /* Element[END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ done = 1;
+ grammarID = 4;
+ 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:2016:MsgDataTypes,RelativeTimeIntervalType', base type name='anyType', content type='ELEMENT', isAbstract='false', hasTypeId='false', final='0', block='0', particle='("urn:iso:15118:2:2016:MsgDataTypes":start,"urn:iso:15118:2:2016:MsgDataTypes":duration{0-1})', derivedBy='RESTRICTION'. */
+static int decode_iso2RelativeTimeIntervalType(bitstream_t* stream, struct iso2RelativeTimeIntervalType* iso2RelativeTimeIntervalType) {
+ int grammarID = 672;
+ int done = 0;
+
+ init_iso2RelativeTimeIntervalType(iso2RelativeTimeIntervalType);
+
+ while(!done) {
+ switch(grammarID) {
+ case 672:
+ /* FirstStartTag[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}start)] */
+ errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ /* FirstStartTag[CHARACTERS[UNSIGNED_INTEGER]] */
+ errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
+ if(errn == 0) {
+ if(eventCode == 0) {
+ errn = decodeUnsignedInteger32(stream, &iso2RelativeTimeIntervalType->start);
+ } 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({urn:iso:15118:2:2016:MsgDataTypes}start) ? */
+ errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
+ if(eventCode == 0) {
+ grammarID = 673;
+ } else {
+ errn = EXI_DEVIANT_SUPPORT_NOT_DEPLOYED; /* or also typecast and nillable */
+ }
+ }
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 673:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}duration), END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ /* FirstStartTag[CHARACTERS[UNSIGNED_INTEGER]] */
+ errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
+ if(errn == 0) {
+ if(eventCode == 0) {
+ errn = decodeUnsignedInteger32(stream, &iso2RelativeTimeIntervalType->duration);
+ iso2RelativeTimeIntervalType->duration_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({urn:iso:15118:2:2016:MsgDataTypes}duration) ? */
+ errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
+ if(eventCode == 0) {
+ grammarID = 3;
+ } else {
+ errn = EXI_DEVIANT_SUPPORT_NOT_DEPLOYED; /* or also typecast and nillable */
+ }
+ }
+ break;
+ case 1:
+ done = 1;
+ grammarID = 4;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 3:
+ /* Element[END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ done = 1;
+ grammarID = 4;
+ 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:2016:MsgDataTypes,EVFinePositioningParametersType', base type name='anyType', content type='EMPTY', isAbstract='true', hasTypeId='false', final='0', block='0', derivedBy='RESTRICTION'. */
+static int decode_iso2EVFinePositioningParametersType(bitstream_t* stream, struct iso2EVFinePositioningParametersType* iso2EVFinePositioningParametersType) {
+ int grammarID = 674;
+ int done = 0;
+
+ init_iso2EVFinePositioningParametersType(iso2EVFinePositioningParametersType);
+
+ while(!done) {
+ switch(grammarID) {
+ case 674:
+ /* FirstStartTag[END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ done = 1;
+ grammarID = 4;
+ 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:2016:MsgBody,AlignmentCheckReqType', base type name='BodyBaseType', content type='ELEMENT', isAbstract='false', hasTypeId='false', final='0', block='0', particle='("urn:iso:15118:2:2016:MsgBody":EVProcessing,"urn:iso:15118:2:2016:MsgBody":AlignmentCheckParameters{0-1})', derivedBy='EXTENSION'. */
+static int decode_iso2AlignmentCheckReqType(bitstream_t* stream, struct iso2AlignmentCheckReqType* iso2AlignmentCheckReqType) {
+ int grammarID = 675;
+ int done = 0;
+
+ init_iso2AlignmentCheckReqType(iso2AlignmentCheckReqType);
+
+ while(!done) {
+ switch(grammarID) {
+ case 675:
+ /* FirstStartTag[START_ELEMENT({urn:iso:15118:2:2016:MsgBody}EVProcessing)] */
+ 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);
+ iso2AlignmentCheckReqType->EVProcessing = (iso2EVSEProcessingType) 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({urn:iso:15118:2:2016:MsgBody}EVProcessing) ? */
+ errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
+ if(eventCode == 0) {
+ grammarID = 676;
+ } else {
+ errn = EXI_DEVIANT_SUPPORT_NOT_DEPLOYED; /* or also typecast and nillable */
+ }
+ }
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 676:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgBody}AlignmentCheckParameters), END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ errn = decode_iso2ParameterSetType(stream, &iso2AlignmentCheckReqType->AlignmentCheckParameters);
+ iso2AlignmentCheckReqType->AlignmentCheckParameters_isUsed = 1u;
+ grammarID = 3;
+ break;
+ case 1:
+ done = 1;
+ grammarID = 4;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 3:
+ /* Element[END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ done = 1;
+ grammarID = 4;
+ 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:2016:MsgBody,CertificateInstallationReqType', base type name='BodyBaseType', content type='ELEMENT', isAbstract='false', hasTypeId='false', final='0', block='0', particle='("urn:iso:15118:2:2016:MsgBody":OEMProvisioningCert,"urn:iso:15118:2:2016:MsgBody":ListOfRootCertificateIDs)', derivedBy='EXTENSION'. */
+static int decode_iso2CertificateInstallationReqType(bitstream_t* stream, struct iso2CertificateInstallationReqType* iso2CertificateInstallationReqType) {
+ int grammarID = 677;
+ int done = 0;
+
+ init_iso2CertificateInstallationReqType(iso2CertificateInstallationReqType);
+
+ while(!done) {
+ switch(grammarID) {
+ case 677:
+ /* FirstStartTag[ATTRIBUTE[STRING]({urn:iso:15118:2:2016:MsgBody}Id)] */
+ errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ errn = decodeUnsignedInteger16(stream, &iso2CertificateInstallationReqType->Id.charactersLen);
+ if (errn == 0) {
+ if (iso2CertificateInstallationReqType->Id.charactersLen >= 2) {
+ iso2CertificateInstallationReqType->Id.charactersLen = (uint16_t)(iso2CertificateInstallationReqType->Id.charactersLen - 2); /* string table miss */
+ errn = decodeCharacters(stream, iso2CertificateInstallationReqType->Id.charactersLen, iso2CertificateInstallationReqType->Id.characters, iso2CertificateInstallationReqType_Id_CHARACTERS_SIZE);
+ } else {
+ /* string table hit */
+ errn = EXI_ERROR_STRINGVALUES_NOT_SUPPORTED;
+ }
+ }
+ grammarID = 678;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 678:
+ /* StartTag[START_ELEMENT({urn:iso:15118:2:2016:MsgBody}OEMProvisioningCert)] */
+ errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ /* FirstStartTag[CHARACTERS[BINARY_BASE64]] */
+ errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
+ if(errn == 0) {
+ if(eventCode == 0) {
+ errn = decodeUnsignedInteger16(stream, &iso2CertificateInstallationReqType->OEMProvisioningCert.bytesLen);
+ if (errn == 0) {
+ errn = (iso2CertificateInstallationReqType->OEMProvisioningCert.bytesLen) <= iso2CertificateInstallationReqType_OEMProvisioningCert_BYTES_SIZE ? 0 : EXI_ERROR_OUT_OF_BYTE_BUFFER;
+ }
+ if (errn == 0) {
+ errn = decodeBytes(stream, iso2CertificateInstallationReqType->OEMProvisioningCert.bytesLen, iso2CertificateInstallationReqType->OEMProvisioningCert.bytes);
+ }
+ } 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({urn:iso:15118:2:2016:MsgBody}OEMProvisioningCert) ? */
+ errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
+ if(eventCode == 0) {
+ grammarID = 650;
+ } else {
+ errn = EXI_DEVIANT_SUPPORT_NOT_DEPLOYED; /* or also typecast and nillable */
+ }
+ }
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 650:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgBody}ListOfRootCertificateIDs)] */
+ errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ errn = decode_iso2ListOfRootCertificateIDsType(stream, &iso2CertificateInstallationReqType->ListOfRootCertificateIDs);
+ grammarID = 3;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 3:
+ /* Element[END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ done = 1;
+ grammarID = 4;
+ 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='http://www.w3.org/2000/09/xmldsig#,TransformsType', base type name='anyType', content type='ELEMENT', isAbstract='false', hasTypeId='false', final='0', block='0', particle='("http://www.w3.org/2000/09/xmldsig#":Transform{1-UNBOUNDED})', derivedBy='RESTRICTION'. */
+static int decode_iso2TransformsType(bitstream_t* stream, struct iso2TransformsType* iso2TransformsType) {
+ int grammarID = 679;
+ int done = 0;
+
+ init_iso2TransformsType(iso2TransformsType);
+
+ while(!done) {
+ switch(grammarID) {
+ case 679:
+ /* FirstStartTag[START_ELEMENT({http://www.w3.org/2000/09/xmldsig#}Transform)] */
+ errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ if (iso2TransformsType->Transform.arrayLen < iso2TransformsType_Transform_ARRAY_SIZE) {
+ errn = decode_iso2TransformType(stream, &iso2TransformsType->Transform.array[iso2TransformsType->Transform.arrayLen++]);
+ } else {
+ errn = EXI_ERROR_OUT_OF_BOUNDS;
+ }
+ grammarID = 680;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 680:
+ /* Element[START_ELEMENT({http://www.w3.org/2000/09/xmldsig#}Transform), END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ if (iso2TransformsType->Transform.arrayLen < iso2TransformsType_Transform_ARRAY_SIZE) {
+ errn = decode_iso2TransformType(stream, &iso2TransformsType->Transform.array[iso2TransformsType->Transform.arrayLen++]);
+ } else {
+ errn = EXI_ERROR_OUT_OF_BOUNDS;
+ }
+ grammarID = 680;
+ break;
+ case 1:
+ done = 1;
+ grammarID = 4;
+ 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='http://www.w3.org/2000/09/xmldsig#,ObjectType', base type name='anyType', content type='MIXED', isAbstract='false', hasTypeId='false', final='0', block='0', particle='((WC[##any])){0-UNBOUNDED}', derivedBy='RESTRICTION'. */
+static int decode_iso2ObjectType(bitstream_t* stream, struct iso2ObjectType* iso2ObjectType) {
+ int grammarID = 681;
+ int done = 0;
+
+ init_iso2ObjectType(iso2ObjectType);
+
+ while(!done) {
+ switch(grammarID) {
+ case 681:
+ /* FirstStartTag[ATTRIBUTE[STRING](Encoding), ATTRIBUTE[STRING](Id), ATTRIBUTE[STRING](MimeType), START_ELEMENT_GENERIC, END_ELEMENT, CHARACTERS_GENERIC[STRING]] */
+ errn = decodeNBitUnsignedInteger(stream, 3, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ errn = decodeUnsignedInteger16(stream, &iso2ObjectType->Encoding.charactersLen);
+ if (errn == 0) {
+ if (iso2ObjectType->Encoding.charactersLen >= 2) {
+ iso2ObjectType->Encoding.charactersLen = (uint16_t)(iso2ObjectType->Encoding.charactersLen - 2); /* string table miss */
+ errn = decodeCharacters(stream, iso2ObjectType->Encoding.charactersLen, iso2ObjectType->Encoding.characters, iso2ObjectType_Encoding_CHARACTERS_SIZE);
+ } else {
+ /* string table hit */
+ errn = EXI_ERROR_STRINGVALUES_NOT_SUPPORTED;
+ }
+ }
+ iso2ObjectType->Encoding_isUsed = 1u;
+ grammarID = 682;
+ break;
+ case 1:
+ errn = decodeUnsignedInteger16(stream, &iso2ObjectType->Id.charactersLen);
+ if (errn == 0) {
+ if (iso2ObjectType->Id.charactersLen >= 2) {
+ iso2ObjectType->Id.charactersLen = (uint16_t)(iso2ObjectType->Id.charactersLen - 2); /* string table miss */
+ errn = decodeCharacters(stream, iso2ObjectType->Id.charactersLen, iso2ObjectType->Id.characters, iso2ObjectType_Id_CHARACTERS_SIZE);
+ } else {
+ /* string table hit */
+ errn = EXI_ERROR_STRINGVALUES_NOT_SUPPORTED;
+ }
+ }
+ iso2ObjectType->Id_isUsed = 1u;
+ grammarID = 683;
+ break;
+ case 2:
+ errn = decodeUnsignedInteger16(stream, &iso2ObjectType->MimeType.charactersLen);
+ if (errn == 0) {
+ if (iso2ObjectType->MimeType.charactersLen >= 2) {
+ iso2ObjectType->MimeType.charactersLen = (uint16_t)(iso2ObjectType->MimeType.charactersLen - 2); /* string table miss */
+ errn = decodeCharacters(stream, iso2ObjectType->MimeType.charactersLen, iso2ObjectType->MimeType.characters, iso2ObjectType_MimeType_CHARACTERS_SIZE);
+ } else {
+ /* string table hit */
+ errn = EXI_ERROR_STRINGVALUES_NOT_SUPPORTED;
+ }
+ }
+ iso2ObjectType->MimeType_isUsed = 1u;
+ grammarID = 684;
+ break;
+ case 3:
+ errn = EXI_UNSUPPORTED_EVENT_CODE_CHARACTERISTICS;
+ /* TODO unsupported event : START_ELEMENT_GENERIC */
+ grammarID = 685;
+ break;
+ case 4:
+ done = 1;
+ grammarID = 4;
+ break;
+ case 5:
+ errn = decodeUnsignedInteger16(stream, &iso2ObjectType->ANY.charactersLen);
+ if (errn == 0) {
+ if (iso2ObjectType->ANY.charactersLen >= 2) {
+ iso2ObjectType->ANY.charactersLen = (uint16_t)(iso2ObjectType->ANY.charactersLen - 2); /* string table miss */
+ errn = decodeCharacters(stream, iso2ObjectType->ANY.charactersLen, iso2ObjectType->ANY.characters, iso2ObjectType_ANY_CHARACTERS_SIZE);
+ } else {
+ /* string table hit */
+ errn = EXI_ERROR_STRINGVALUES_NOT_SUPPORTED;
+ }
+ }
+ iso2ObjectType->ANY_isUsed = 1u;
+ grammarID = 685;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 682:
+ /* StartTag[ATTRIBUTE[STRING](Id), ATTRIBUTE[STRING](MimeType), START_ELEMENT_GENERIC, END_ELEMENT, CHARACTERS_GENERIC[STRING]] */
+ errn = decodeNBitUnsignedInteger(stream, 3, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ errn = decodeUnsignedInteger16(stream, &iso2ObjectType->Id.charactersLen);
+ if (errn == 0) {
+ if (iso2ObjectType->Id.charactersLen >= 2) {
+ iso2ObjectType->Id.charactersLen = (uint16_t)(iso2ObjectType->Id.charactersLen - 2); /* string table miss */
+ errn = decodeCharacters(stream, iso2ObjectType->Id.charactersLen, iso2ObjectType->Id.characters, iso2ObjectType_Id_CHARACTERS_SIZE);
+ } else {
+ /* string table hit */
+ errn = EXI_ERROR_STRINGVALUES_NOT_SUPPORTED;
+ }
+ }
+ iso2ObjectType->Id_isUsed = 1u;
+ grammarID = 683;
+ break;
+ case 1:
+ errn = decodeUnsignedInteger16(stream, &iso2ObjectType->MimeType.charactersLen);
+ if (errn == 0) {
+ if (iso2ObjectType->MimeType.charactersLen >= 2) {
+ iso2ObjectType->MimeType.charactersLen = (uint16_t)(iso2ObjectType->MimeType.charactersLen - 2); /* string table miss */
+ errn = decodeCharacters(stream, iso2ObjectType->MimeType.charactersLen, iso2ObjectType->MimeType.characters, iso2ObjectType_MimeType_CHARACTERS_SIZE);
+ } else {
+ /* string table hit */
+ errn = EXI_ERROR_STRINGVALUES_NOT_SUPPORTED;
+ }
+ }
+ iso2ObjectType->MimeType_isUsed = 1u;
+ grammarID = 684;
+ break;
+ case 2:
+ errn = EXI_UNSUPPORTED_EVENT_CODE_CHARACTERISTICS;
+ /* TODO unsupported event : START_ELEMENT_GENERIC */
+ grammarID = 685;
+ break;
+ case 3:
+ done = 1;
+ grammarID = 4;
+ break;
+ case 4:
+ errn = decodeUnsignedInteger16(stream, &iso2ObjectType->ANY.charactersLen);
+ if (errn == 0) {
+ if (iso2ObjectType->ANY.charactersLen >= 2) {
+ iso2ObjectType->ANY.charactersLen = (uint16_t)(iso2ObjectType->ANY.charactersLen - 2); /* string table miss */
+ errn = decodeCharacters(stream, iso2ObjectType->ANY.charactersLen, iso2ObjectType->ANY.characters, iso2ObjectType_ANY_CHARACTERS_SIZE);
+ } else {
+ /* string table hit */
+ errn = EXI_ERROR_STRINGVALUES_NOT_SUPPORTED;
+ }
+ }
+ iso2ObjectType->ANY_isUsed = 1u;
+ grammarID = 685;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 683:
+ /* StartTag[ATTRIBUTE[STRING](MimeType), START_ELEMENT_GENERIC, END_ELEMENT, CHARACTERS_GENERIC[STRING]] */
+ errn = decodeNBitUnsignedInteger(stream, 3, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ errn = decodeUnsignedInteger16(stream, &iso2ObjectType->MimeType.charactersLen);
+ if (errn == 0) {
+ if (iso2ObjectType->MimeType.charactersLen >= 2) {
+ iso2ObjectType->MimeType.charactersLen = (uint16_t)(iso2ObjectType->MimeType.charactersLen - 2); /* string table miss */
+ errn = decodeCharacters(stream, iso2ObjectType->MimeType.charactersLen, iso2ObjectType->MimeType.characters, iso2ObjectType_MimeType_CHARACTERS_SIZE);
+ } else {
+ /* string table hit */
+ errn = EXI_ERROR_STRINGVALUES_NOT_SUPPORTED;
+ }
+ }
+ iso2ObjectType->MimeType_isUsed = 1u;
+ grammarID = 684;
+ break;
+ case 1:
+ errn = EXI_UNSUPPORTED_EVENT_CODE_CHARACTERISTICS;
+ /* TODO unsupported event : START_ELEMENT_GENERIC */
+ grammarID = 685;
+ break;
+ case 2:
+ done = 1;
+ grammarID = 4;
+ break;
+ case 3:
+ errn = decodeUnsignedInteger16(stream, &iso2ObjectType->ANY.charactersLen);
+ if (errn == 0) {
+ if (iso2ObjectType->ANY.charactersLen >= 2) {
+ iso2ObjectType->ANY.charactersLen = (uint16_t)(iso2ObjectType->ANY.charactersLen - 2); /* string table miss */
+ errn = decodeCharacters(stream, iso2ObjectType->ANY.charactersLen, iso2ObjectType->ANY.characters, iso2ObjectType_ANY_CHARACTERS_SIZE);
+ } else {
+ /* string table hit */
+ errn = EXI_ERROR_STRINGVALUES_NOT_SUPPORTED;
+ }
+ }
+ iso2ObjectType->ANY_isUsed = 1u;
+ grammarID = 685;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 684:
+ /* StartTag[START_ELEMENT_GENERIC, END_ELEMENT, CHARACTERS_GENERIC[STRING]] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ errn = EXI_UNSUPPORTED_EVENT_CODE_CHARACTERISTICS;
+ /* TODO unsupported event : START_ELEMENT_GENERIC */
+ grammarID = 685;
+ break;
+ case 1:
+ done = 1;
+ grammarID = 4;
+ break;
+ case 2:
+ errn = decodeUnsignedInteger16(stream, &iso2ObjectType->ANY.charactersLen);
+ if (errn == 0) {
+ if (iso2ObjectType->ANY.charactersLen >= 2) {
+ iso2ObjectType->ANY.charactersLen = (uint16_t)(iso2ObjectType->ANY.charactersLen - 2); /* string table miss */
+ errn = decodeCharacters(stream, iso2ObjectType->ANY.charactersLen, iso2ObjectType->ANY.characters, iso2ObjectType_ANY_CHARACTERS_SIZE);
+ } else {
+ /* string table hit */
+ errn = EXI_ERROR_STRINGVALUES_NOT_SUPPORTED;
+ }
+ }
+ iso2ObjectType->ANY_isUsed = 1u;
+ grammarID = 685;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 685:
+ /* Element[START_ELEMENT_GENERIC, END_ELEMENT, CHARACTERS_GENERIC[STRING]] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ errn = EXI_UNSUPPORTED_EVENT_CODE_CHARACTERISTICS;
+ /* TODO unsupported event : START_ELEMENT_GENERIC */
+ grammarID = 685;
+ break;
+ case 1:
+ done = 1;
+ grammarID = 4;
+ break;
+ case 2:
+ errn = decodeUnsignedInteger16(stream, &iso2ObjectType->ANY.charactersLen);
+ if (errn == 0) {
+ if (iso2ObjectType->ANY.charactersLen >= 2) {
+ iso2ObjectType->ANY.charactersLen = (uint16_t)(iso2ObjectType->ANY.charactersLen - 2); /* string table miss */
+ errn = decodeCharacters(stream, iso2ObjectType->ANY.charactersLen, iso2ObjectType->ANY.characters, iso2ObjectType_ANY_CHARACTERS_SIZE);
+ } else {
+ /* string table hit */
+ errn = EXI_ERROR_STRINGVALUES_NOT_SUPPORTED;
+ }
+ }
+ iso2ObjectType->ANY_isUsed = 1u;
+ grammarID = 685;
+ 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:2016:MsgDataTypes,SensorOrderListType', base type name='anyType', content type='ELEMENT', isAbstract='false', hasTypeId='false', final='0', block='0', particle='("urn:iso:15118:2:2016:MsgDataTypes":SensorPosition{1-255})', derivedBy='RESTRICTION'. */
+static int decode_iso2SensorOrderListType(bitstream_t* stream, struct iso2SensorOrderListType* iso2SensorOrderListType) {
+ int grammarID = 686;
+ int done = 0;
+
+ init_iso2SensorOrderListType(iso2SensorOrderListType);
+
+ while(!done) {
+ switch(grammarID) {
+ case 686:
+ /* FirstStartTag[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorPosition)] */
+ errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ if (iso2SensorOrderListType->SensorPosition.arrayLen < iso2SensorOrderListType_SensorPosition_ARRAY_SIZE) {
+ /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
+ errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
+ if(errn == 0) {
+ if(eventCode == 0) {
+ errn = decodeNBitUnsignedInteger(stream, 8, &(uint32));
+ iso2SensorOrderListType->SensorPosition.array[iso2SensorOrderListType->SensorPosition.arrayLen] = (uint8_t)(uint32 + 0);
+ iso2SensorOrderListType->SensorPosition.arrayLen++;
+ } else {
+ /* Second level event (e.g., xsi:type, xsi:nil, ...) */
+ errn = EXI_UNSUPPORTED_EVENT_CODE_CHARACTERISTICS;
+ }
+ }
+ } else {
+ errn = EXI_ERROR_OUT_OF_BOUNDS;
+ }
+ if(errn == 0) {
+ /* valid EE for simple element START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorPosition) ? */
+ errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
+ if(eventCode == 0) {
+ grammarID = 687;
+ } else {
+ errn = EXI_DEVIANT_SUPPORT_NOT_DEPLOYED; /* or also typecast and nillable */
+ }
+ }
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 687:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorPosition), END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ if (iso2SensorOrderListType->SensorPosition.arrayLen < iso2SensorOrderListType_SensorPosition_ARRAY_SIZE) {
+ /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
+ errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
+ if(errn == 0) {
+ if(eventCode == 0) {
+ errn = decodeNBitUnsignedInteger(stream, 8, &(uint32));
+ iso2SensorOrderListType->SensorPosition.array[iso2SensorOrderListType->SensorPosition.arrayLen] = (uint8_t)(uint32 + 0);
+ iso2SensorOrderListType->SensorPosition.arrayLen++;
+ } else {
+ /* Second level event (e.g., xsi:type, xsi:nil, ...) */
+ errn = EXI_UNSUPPORTED_EVENT_CODE_CHARACTERISTICS;
+ }
+ }
+ } else {
+ errn = EXI_ERROR_OUT_OF_BOUNDS;
+ }
+ if(errn == 0) {
+ /* valid EE for simple element START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorPosition) ? */
+ errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
+ if(eventCode == 0) {
+ grammarID = 688;
+ } else {
+ errn = EXI_DEVIANT_SUPPORT_NOT_DEPLOYED; /* or also typecast and nillable */
+ }
+ }
+ break;
+ case 1:
+ done = 1;
+ grammarID = 4;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 688:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorPosition), END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ if (iso2SensorOrderListType->SensorPosition.arrayLen < iso2SensorOrderListType_SensorPosition_ARRAY_SIZE) {
+ /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
+ errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
+ if(errn == 0) {
+ if(eventCode == 0) {
+ errn = decodeNBitUnsignedInteger(stream, 8, &(uint32));
+ iso2SensorOrderListType->SensorPosition.array[iso2SensorOrderListType->SensorPosition.arrayLen] = (uint8_t)(uint32 + 0);
+ iso2SensorOrderListType->SensorPosition.arrayLen++;
+ } else {
+ /* Second level event (e.g., xsi:type, xsi:nil, ...) */
+ errn = EXI_UNSUPPORTED_EVENT_CODE_CHARACTERISTICS;
+ }
+ }
+ } else {
+ errn = EXI_ERROR_OUT_OF_BOUNDS;
+ }
+ if(errn == 0) {
+ /* valid EE for simple element START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorPosition) ? */
+ errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
+ if(eventCode == 0) {
+ grammarID = 689;
+ } else {
+ errn = EXI_DEVIANT_SUPPORT_NOT_DEPLOYED; /* or also typecast and nillable */
+ }
+ }
+ break;
+ case 1:
+ done = 1;
+ grammarID = 4;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 689:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorPosition), END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ if (iso2SensorOrderListType->SensorPosition.arrayLen < iso2SensorOrderListType_SensorPosition_ARRAY_SIZE) {
+ /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
+ errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
+ if(errn == 0) {
+ if(eventCode == 0) {
+ errn = decodeNBitUnsignedInteger(stream, 8, &(uint32));
+ iso2SensorOrderListType->SensorPosition.array[iso2SensorOrderListType->SensorPosition.arrayLen] = (uint8_t)(uint32 + 0);
+ iso2SensorOrderListType->SensorPosition.arrayLen++;
+ } else {
+ /* Second level event (e.g., xsi:type, xsi:nil, ...) */
+ errn = EXI_UNSUPPORTED_EVENT_CODE_CHARACTERISTICS;
+ }
+ }
+ } else {
+ errn = EXI_ERROR_OUT_OF_BOUNDS;
+ }
+ if(errn == 0) {
+ /* valid EE for simple element START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorPosition) ? */
+ errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
+ if(eventCode == 0) {
+ grammarID = 690;
+ } else {
+ errn = EXI_DEVIANT_SUPPORT_NOT_DEPLOYED; /* or also typecast and nillable */
+ }
+ }
+ break;
+ case 1:
+ done = 1;
+ grammarID = 4;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 690:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorPosition), END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ if (iso2SensorOrderListType->SensorPosition.arrayLen < iso2SensorOrderListType_SensorPosition_ARRAY_SIZE) {
+ /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
+ errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
+ if(errn == 0) {
+ if(eventCode == 0) {
+ errn = decodeNBitUnsignedInteger(stream, 8, &(uint32));
+ iso2SensorOrderListType->SensorPosition.array[iso2SensorOrderListType->SensorPosition.arrayLen] = (uint8_t)(uint32 + 0);
+ iso2SensorOrderListType->SensorPosition.arrayLen++;
+ } else {
+ /* Second level event (e.g., xsi:type, xsi:nil, ...) */
+ errn = EXI_UNSUPPORTED_EVENT_CODE_CHARACTERISTICS;
+ }
+ }
+ } else {
+ errn = EXI_ERROR_OUT_OF_BOUNDS;
+ }
+ if(errn == 0) {
+ /* valid EE for simple element START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorPosition) ? */
+ errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
+ if(eventCode == 0) {
+ grammarID = 691;
+ } else {
+ errn = EXI_DEVIANT_SUPPORT_NOT_DEPLOYED; /* or also typecast and nillable */
+ }
+ }
+ break;
+ case 1:
+ done = 1;
+ grammarID = 4;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 691:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorPosition), END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ if (iso2SensorOrderListType->SensorPosition.arrayLen < iso2SensorOrderListType_SensorPosition_ARRAY_SIZE) {
+ /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
+ errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
+ if(errn == 0) {
+ if(eventCode == 0) {
+ errn = decodeNBitUnsignedInteger(stream, 8, &(uint32));
+ iso2SensorOrderListType->SensorPosition.array[iso2SensorOrderListType->SensorPosition.arrayLen] = (uint8_t)(uint32 + 0);
+ iso2SensorOrderListType->SensorPosition.arrayLen++;
+ } else {
+ /* Second level event (e.g., xsi:type, xsi:nil, ...) */
+ errn = EXI_UNSUPPORTED_EVENT_CODE_CHARACTERISTICS;
+ }
+ }
+ } else {
+ errn = EXI_ERROR_OUT_OF_BOUNDS;
+ }
+ if(errn == 0) {
+ /* valid EE for simple element START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorPosition) ? */
+ errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
+ if(eventCode == 0) {
+ grammarID = 692;
+ } else {
+ errn = EXI_DEVIANT_SUPPORT_NOT_DEPLOYED; /* or also typecast and nillable */
+ }
+ }
+ break;
+ case 1:
+ done = 1;
+ grammarID = 4;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 692:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorPosition), END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ if (iso2SensorOrderListType->SensorPosition.arrayLen < iso2SensorOrderListType_SensorPosition_ARRAY_SIZE) {
+ /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
+ errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
+ if(errn == 0) {
+ if(eventCode == 0) {
+ errn = decodeNBitUnsignedInteger(stream, 8, &(uint32));
+ iso2SensorOrderListType->SensorPosition.array[iso2SensorOrderListType->SensorPosition.arrayLen] = (uint8_t)(uint32 + 0);
+ iso2SensorOrderListType->SensorPosition.arrayLen++;
+ } else {
+ /* Second level event (e.g., xsi:type, xsi:nil, ...) */
+ errn = EXI_UNSUPPORTED_EVENT_CODE_CHARACTERISTICS;
+ }
+ }
+ } else {
+ errn = EXI_ERROR_OUT_OF_BOUNDS;
+ }
+ if(errn == 0) {
+ /* valid EE for simple element START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorPosition) ? */
+ errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
+ if(eventCode == 0) {
+ grammarID = 693;
+ } else {
+ errn = EXI_DEVIANT_SUPPORT_NOT_DEPLOYED; /* or also typecast and nillable */
+ }
+ }
+ break;
+ case 1:
+ done = 1;
+ grammarID = 4;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 693:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorPosition), END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ if (iso2SensorOrderListType->SensorPosition.arrayLen < iso2SensorOrderListType_SensorPosition_ARRAY_SIZE) {
+ /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
+ errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
+ if(errn == 0) {
+ if(eventCode == 0) {
+ errn = decodeNBitUnsignedInteger(stream, 8, &(uint32));
+ iso2SensorOrderListType->SensorPosition.array[iso2SensorOrderListType->SensorPosition.arrayLen] = (uint8_t)(uint32 + 0);
+ iso2SensorOrderListType->SensorPosition.arrayLen++;
+ } else {
+ /* Second level event (e.g., xsi:type, xsi:nil, ...) */
+ errn = EXI_UNSUPPORTED_EVENT_CODE_CHARACTERISTICS;
+ }
+ }
+ } else {
+ errn = EXI_ERROR_OUT_OF_BOUNDS;
+ }
+ if(errn == 0) {
+ /* valid EE for simple element START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorPosition) ? */
+ errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
+ if(eventCode == 0) {
+ grammarID = 694;
+ } else {
+ errn = EXI_DEVIANT_SUPPORT_NOT_DEPLOYED; /* or also typecast and nillable */
+ }
+ }
+ break;
+ case 1:
+ done = 1;
+ grammarID = 4;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 694:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorPosition), END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ if (iso2SensorOrderListType->SensorPosition.arrayLen < iso2SensorOrderListType_SensorPosition_ARRAY_SIZE) {
+ /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
+ errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
+ if(errn == 0) {
+ if(eventCode == 0) {
+ errn = decodeNBitUnsignedInteger(stream, 8, &(uint32));
+ iso2SensorOrderListType->SensorPosition.array[iso2SensorOrderListType->SensorPosition.arrayLen] = (uint8_t)(uint32 + 0);
+ iso2SensorOrderListType->SensorPosition.arrayLen++;
+ } else {
+ /* Second level event (e.g., xsi:type, xsi:nil, ...) */
+ errn = EXI_UNSUPPORTED_EVENT_CODE_CHARACTERISTICS;
+ }
+ }
+ } else {
+ errn = EXI_ERROR_OUT_OF_BOUNDS;
+ }
+ if(errn == 0) {
+ /* valid EE for simple element START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorPosition) ? */
+ errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
+ if(eventCode == 0) {
+ grammarID = 695;
+ } else {
+ errn = EXI_DEVIANT_SUPPORT_NOT_DEPLOYED; /* or also typecast and nillable */
+ }
+ }
+ break;
+ case 1:
+ done = 1;
+ grammarID = 4;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 695:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorPosition), END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ if (iso2SensorOrderListType->SensorPosition.arrayLen < iso2SensorOrderListType_SensorPosition_ARRAY_SIZE) {
+ /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
+ errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
+ if(errn == 0) {
+ if(eventCode == 0) {
+ errn = decodeNBitUnsignedInteger(stream, 8, &(uint32));
+ iso2SensorOrderListType->SensorPosition.array[iso2SensorOrderListType->SensorPosition.arrayLen] = (uint8_t)(uint32 + 0);
+ iso2SensorOrderListType->SensorPosition.arrayLen++;
+ } else {
+ /* Second level event (e.g., xsi:type, xsi:nil, ...) */
+ errn = EXI_UNSUPPORTED_EVENT_CODE_CHARACTERISTICS;
+ }
+ }
+ } else {
+ errn = EXI_ERROR_OUT_OF_BOUNDS;
+ }
+ if(errn == 0) {
+ /* valid EE for simple element START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorPosition) ? */
+ errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
+ if(eventCode == 0) {
+ grammarID = 696;
+ } else {
+ errn = EXI_DEVIANT_SUPPORT_NOT_DEPLOYED; /* or also typecast and nillable */
+ }
+ }
+ break;
+ case 1:
+ done = 1;
+ grammarID = 4;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 696:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorPosition), END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ if (iso2SensorOrderListType->SensorPosition.arrayLen < iso2SensorOrderListType_SensorPosition_ARRAY_SIZE) {
+ /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
+ errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
+ if(errn == 0) {
+ if(eventCode == 0) {
+ errn = decodeNBitUnsignedInteger(stream, 8, &(uint32));
+ iso2SensorOrderListType->SensorPosition.array[iso2SensorOrderListType->SensorPosition.arrayLen] = (uint8_t)(uint32 + 0);
+ iso2SensorOrderListType->SensorPosition.arrayLen++;
+ } else {
+ /* Second level event (e.g., xsi:type, xsi:nil, ...) */
+ errn = EXI_UNSUPPORTED_EVENT_CODE_CHARACTERISTICS;
+ }
+ }
+ } else {
+ errn = EXI_ERROR_OUT_OF_BOUNDS;
+ }
+ if(errn == 0) {
+ /* valid EE for simple element START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorPosition) ? */
+ errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
+ if(eventCode == 0) {
+ grammarID = 697;
+ } else {
+ errn = EXI_DEVIANT_SUPPORT_NOT_DEPLOYED; /* or also typecast and nillable */
+ }
+ }
+ break;
+ case 1:
+ done = 1;
+ grammarID = 4;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 697:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorPosition), END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ if (iso2SensorOrderListType->SensorPosition.arrayLen < iso2SensorOrderListType_SensorPosition_ARRAY_SIZE) {
+ /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
+ errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
+ if(errn == 0) {
+ if(eventCode == 0) {
+ errn = decodeNBitUnsignedInteger(stream, 8, &(uint32));
+ iso2SensorOrderListType->SensorPosition.array[iso2SensorOrderListType->SensorPosition.arrayLen] = (uint8_t)(uint32 + 0);
+ iso2SensorOrderListType->SensorPosition.arrayLen++;
+ } else {
+ /* Second level event (e.g., xsi:type, xsi:nil, ...) */
+ errn = EXI_UNSUPPORTED_EVENT_CODE_CHARACTERISTICS;
+ }
+ }
+ } else {
+ errn = EXI_ERROR_OUT_OF_BOUNDS;
+ }
+ if(errn == 0) {
+ /* valid EE for simple element START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorPosition) ? */
+ errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
+ if(eventCode == 0) {
+ grammarID = 698;
+ } else {
+ errn = EXI_DEVIANT_SUPPORT_NOT_DEPLOYED; /* or also typecast and nillable */
+ }
+ }
+ break;
+ case 1:
+ done = 1;
+ grammarID = 4;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 698:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorPosition), END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ if (iso2SensorOrderListType->SensorPosition.arrayLen < iso2SensorOrderListType_SensorPosition_ARRAY_SIZE) {
+ /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
+ errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
+ if(errn == 0) {
+ if(eventCode == 0) {
+ errn = decodeNBitUnsignedInteger(stream, 8, &(uint32));
+ iso2SensorOrderListType->SensorPosition.array[iso2SensorOrderListType->SensorPosition.arrayLen] = (uint8_t)(uint32 + 0);
+ iso2SensorOrderListType->SensorPosition.arrayLen++;
+ } else {
+ /* Second level event (e.g., xsi:type, xsi:nil, ...) */
+ errn = EXI_UNSUPPORTED_EVENT_CODE_CHARACTERISTICS;
+ }
+ }
+ } else {
+ errn = EXI_ERROR_OUT_OF_BOUNDS;
+ }
+ if(errn == 0) {
+ /* valid EE for simple element START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorPosition) ? */
+ errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
+ if(eventCode == 0) {
+ grammarID = 699;
+ } else {
+ errn = EXI_DEVIANT_SUPPORT_NOT_DEPLOYED; /* or also typecast and nillable */
+ }
+ }
+ break;
+ case 1:
+ done = 1;
+ grammarID = 4;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 699:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorPosition), END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ if (iso2SensorOrderListType->SensorPosition.arrayLen < iso2SensorOrderListType_SensorPosition_ARRAY_SIZE) {
+ /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
+ errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
+ if(errn == 0) {
+ if(eventCode == 0) {
+ errn = decodeNBitUnsignedInteger(stream, 8, &(uint32));
+ iso2SensorOrderListType->SensorPosition.array[iso2SensorOrderListType->SensorPosition.arrayLen] = (uint8_t)(uint32 + 0);
+ iso2SensorOrderListType->SensorPosition.arrayLen++;
+ } else {
+ /* Second level event (e.g., xsi:type, xsi:nil, ...) */
+ errn = EXI_UNSUPPORTED_EVENT_CODE_CHARACTERISTICS;
+ }
+ }
+ } else {
+ errn = EXI_ERROR_OUT_OF_BOUNDS;
+ }
+ if(errn == 0) {
+ /* valid EE for simple element START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorPosition) ? */
+ errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
+ if(eventCode == 0) {
+ grammarID = 700;
+ } else {
+ errn = EXI_DEVIANT_SUPPORT_NOT_DEPLOYED; /* or also typecast and nillable */
+ }
+ }
+ break;
+ case 1:
+ done = 1;
+ grammarID = 4;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 700:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorPosition), END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ if (iso2SensorOrderListType->SensorPosition.arrayLen < iso2SensorOrderListType_SensorPosition_ARRAY_SIZE) {
+ /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
+ errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
+ if(errn == 0) {
+ if(eventCode == 0) {
+ errn = decodeNBitUnsignedInteger(stream, 8, &(uint32));
+ iso2SensorOrderListType->SensorPosition.array[iso2SensorOrderListType->SensorPosition.arrayLen] = (uint8_t)(uint32 + 0);
+ iso2SensorOrderListType->SensorPosition.arrayLen++;
+ } else {
+ /* Second level event (e.g., xsi:type, xsi:nil, ...) */
+ errn = EXI_UNSUPPORTED_EVENT_CODE_CHARACTERISTICS;
+ }
+ }
+ } else {
+ errn = EXI_ERROR_OUT_OF_BOUNDS;
+ }
+ if(errn == 0) {
+ /* valid EE for simple element START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorPosition) ? */
+ errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
+ if(eventCode == 0) {
+ grammarID = 701;
+ } else {
+ errn = EXI_DEVIANT_SUPPORT_NOT_DEPLOYED; /* or also typecast and nillable */
+ }
+ }
+ break;
+ case 1:
+ done = 1;
+ grammarID = 4;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 701:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorPosition), END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ if (iso2SensorOrderListType->SensorPosition.arrayLen < iso2SensorOrderListType_SensorPosition_ARRAY_SIZE) {
+ /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
+ errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
+ if(errn == 0) {
+ if(eventCode == 0) {
+ errn = decodeNBitUnsignedInteger(stream, 8, &(uint32));
+ iso2SensorOrderListType->SensorPosition.array[iso2SensorOrderListType->SensorPosition.arrayLen] = (uint8_t)(uint32 + 0);
+ iso2SensorOrderListType->SensorPosition.arrayLen++;
+ } else {
+ /* Second level event (e.g., xsi:type, xsi:nil, ...) */
+ errn = EXI_UNSUPPORTED_EVENT_CODE_CHARACTERISTICS;
+ }
+ }
+ } else {
+ errn = EXI_ERROR_OUT_OF_BOUNDS;
+ }
+ if(errn == 0) {
+ /* valid EE for simple element START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorPosition) ? */
+ errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
+ if(eventCode == 0) {
+ grammarID = 702;
+ } else {
+ errn = EXI_DEVIANT_SUPPORT_NOT_DEPLOYED; /* or also typecast and nillable */
+ }
+ }
+ break;
+ case 1:
+ done = 1;
+ grammarID = 4;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 702:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorPosition), END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ if (iso2SensorOrderListType->SensorPosition.arrayLen < iso2SensorOrderListType_SensorPosition_ARRAY_SIZE) {
+ /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
+ errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
+ if(errn == 0) {
+ if(eventCode == 0) {
+ errn = decodeNBitUnsignedInteger(stream, 8, &(uint32));
+ iso2SensorOrderListType->SensorPosition.array[iso2SensorOrderListType->SensorPosition.arrayLen] = (uint8_t)(uint32 + 0);
+ iso2SensorOrderListType->SensorPosition.arrayLen++;
+ } else {
+ /* Second level event (e.g., xsi:type, xsi:nil, ...) */
+ errn = EXI_UNSUPPORTED_EVENT_CODE_CHARACTERISTICS;
+ }
+ }
+ } else {
+ errn = EXI_ERROR_OUT_OF_BOUNDS;
+ }
+ if(errn == 0) {
+ /* valid EE for simple element START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorPosition) ? */
+ errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
+ if(eventCode == 0) {
+ grammarID = 703;
+ } else {
+ errn = EXI_DEVIANT_SUPPORT_NOT_DEPLOYED; /* or also typecast and nillable */
+ }
+ }
+ break;
+ case 1:
+ done = 1;
+ grammarID = 4;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 703:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorPosition), END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ if (iso2SensorOrderListType->SensorPosition.arrayLen < iso2SensorOrderListType_SensorPosition_ARRAY_SIZE) {
+ /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
+ errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
+ if(errn == 0) {
+ if(eventCode == 0) {
+ errn = decodeNBitUnsignedInteger(stream, 8, &(uint32));
+ iso2SensorOrderListType->SensorPosition.array[iso2SensorOrderListType->SensorPosition.arrayLen] = (uint8_t)(uint32 + 0);
+ iso2SensorOrderListType->SensorPosition.arrayLen++;
+ } else {
+ /* Second level event (e.g., xsi:type, xsi:nil, ...) */
+ errn = EXI_UNSUPPORTED_EVENT_CODE_CHARACTERISTICS;
+ }
+ }
+ } else {
+ errn = EXI_ERROR_OUT_OF_BOUNDS;
+ }
+ if(errn == 0) {
+ /* valid EE for simple element START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorPosition) ? */
+ errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
+ if(eventCode == 0) {
+ grammarID = 704;
+ } else {
+ errn = EXI_DEVIANT_SUPPORT_NOT_DEPLOYED; /* or also typecast and nillable */
+ }
+ }
+ break;
+ case 1:
+ done = 1;
+ grammarID = 4;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 704:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorPosition), END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ if (iso2SensorOrderListType->SensorPosition.arrayLen < iso2SensorOrderListType_SensorPosition_ARRAY_SIZE) {
+ /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
+ errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
+ if(errn == 0) {
+ if(eventCode == 0) {
+ errn = decodeNBitUnsignedInteger(stream, 8, &(uint32));
+ iso2SensorOrderListType->SensorPosition.array[iso2SensorOrderListType->SensorPosition.arrayLen] = (uint8_t)(uint32 + 0);
+ iso2SensorOrderListType->SensorPosition.arrayLen++;
+ } else {
+ /* Second level event (e.g., xsi:type, xsi:nil, ...) */
+ errn = EXI_UNSUPPORTED_EVENT_CODE_CHARACTERISTICS;
+ }
+ }
+ } else {
+ errn = EXI_ERROR_OUT_OF_BOUNDS;
+ }
+ if(errn == 0) {
+ /* valid EE for simple element START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorPosition) ? */
+ errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
+ if(eventCode == 0) {
+ grammarID = 705;
+ } else {
+ errn = EXI_DEVIANT_SUPPORT_NOT_DEPLOYED; /* or also typecast and nillable */
+ }
+ }
+ break;
+ case 1:
+ done = 1;
+ grammarID = 4;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 705:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorPosition), END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ if (iso2SensorOrderListType->SensorPosition.arrayLen < iso2SensorOrderListType_SensorPosition_ARRAY_SIZE) {
+ /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
+ errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
+ if(errn == 0) {
+ if(eventCode == 0) {
+ errn = decodeNBitUnsignedInteger(stream, 8, &(uint32));
+ iso2SensorOrderListType->SensorPosition.array[iso2SensorOrderListType->SensorPosition.arrayLen] = (uint8_t)(uint32 + 0);
+ iso2SensorOrderListType->SensorPosition.arrayLen++;
+ } else {
+ /* Second level event (e.g., xsi:type, xsi:nil, ...) */
+ errn = EXI_UNSUPPORTED_EVENT_CODE_CHARACTERISTICS;
+ }
+ }
+ } else {
+ errn = EXI_ERROR_OUT_OF_BOUNDS;
+ }
+ if(errn == 0) {
+ /* valid EE for simple element START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorPosition) ? */
+ errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
+ if(eventCode == 0) {
+ grammarID = 706;
+ } else {
+ errn = EXI_DEVIANT_SUPPORT_NOT_DEPLOYED; /* or also typecast and nillable */
+ }
+ }
+ break;
+ case 1:
+ done = 1;
+ grammarID = 4;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 706:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorPosition), END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ if (iso2SensorOrderListType->SensorPosition.arrayLen < iso2SensorOrderListType_SensorPosition_ARRAY_SIZE) {
+ /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
+ errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
+ if(errn == 0) {
+ if(eventCode == 0) {
+ errn = decodeNBitUnsignedInteger(stream, 8, &(uint32));
+ iso2SensorOrderListType->SensorPosition.array[iso2SensorOrderListType->SensorPosition.arrayLen] = (uint8_t)(uint32 + 0);
+ iso2SensorOrderListType->SensorPosition.arrayLen++;
+ } else {
+ /* Second level event (e.g., xsi:type, xsi:nil, ...) */
+ errn = EXI_UNSUPPORTED_EVENT_CODE_CHARACTERISTICS;
+ }
+ }
+ } else {
+ errn = EXI_ERROR_OUT_OF_BOUNDS;
+ }
+ if(errn == 0) {
+ /* valid EE for simple element START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorPosition) ? */
+ errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
+ if(eventCode == 0) {
+ grammarID = 707;
+ } else {
+ errn = EXI_DEVIANT_SUPPORT_NOT_DEPLOYED; /* or also typecast and nillable */
+ }
+ }
+ break;
+ case 1:
+ done = 1;
+ grammarID = 4;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 707:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorPosition), END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ if (iso2SensorOrderListType->SensorPosition.arrayLen < iso2SensorOrderListType_SensorPosition_ARRAY_SIZE) {
+ /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
+ errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
+ if(errn == 0) {
+ if(eventCode == 0) {
+ errn = decodeNBitUnsignedInteger(stream, 8, &(uint32));
+ iso2SensorOrderListType->SensorPosition.array[iso2SensorOrderListType->SensorPosition.arrayLen] = (uint8_t)(uint32 + 0);
+ iso2SensorOrderListType->SensorPosition.arrayLen++;
+ } else {
+ /* Second level event (e.g., xsi:type, xsi:nil, ...) */
+ errn = EXI_UNSUPPORTED_EVENT_CODE_CHARACTERISTICS;
+ }
+ }
+ } else {
+ errn = EXI_ERROR_OUT_OF_BOUNDS;
+ }
+ if(errn == 0) {
+ /* valid EE for simple element START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorPosition) ? */
+ errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
+ if(eventCode == 0) {
+ grammarID = 708;
+ } else {
+ errn = EXI_DEVIANT_SUPPORT_NOT_DEPLOYED; /* or also typecast and nillable */
+ }
+ }
+ break;
+ case 1:
+ done = 1;
+ grammarID = 4;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 708:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorPosition), END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ if (iso2SensorOrderListType->SensorPosition.arrayLen < iso2SensorOrderListType_SensorPosition_ARRAY_SIZE) {
+ /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
+ errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
+ if(errn == 0) {
+ if(eventCode == 0) {
+ errn = decodeNBitUnsignedInteger(stream, 8, &(uint32));
+ iso2SensorOrderListType->SensorPosition.array[iso2SensorOrderListType->SensorPosition.arrayLen] = (uint8_t)(uint32 + 0);
+ iso2SensorOrderListType->SensorPosition.arrayLen++;
+ } else {
+ /* Second level event (e.g., xsi:type, xsi:nil, ...) */
+ errn = EXI_UNSUPPORTED_EVENT_CODE_CHARACTERISTICS;
+ }
+ }
+ } else {
+ errn = EXI_ERROR_OUT_OF_BOUNDS;
+ }
+ if(errn == 0) {
+ /* valid EE for simple element START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorPosition) ? */
+ errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
+ if(eventCode == 0) {
+ grammarID = 709;
+ } else {
+ errn = EXI_DEVIANT_SUPPORT_NOT_DEPLOYED; /* or also typecast and nillable */
+ }
+ }
+ break;
+ case 1:
+ done = 1;
+ grammarID = 4;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 709:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorPosition), END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ if (iso2SensorOrderListType->SensorPosition.arrayLen < iso2SensorOrderListType_SensorPosition_ARRAY_SIZE) {
+ /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
+ errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
+ if(errn == 0) {
+ if(eventCode == 0) {
+ errn = decodeNBitUnsignedInteger(stream, 8, &(uint32));
+ iso2SensorOrderListType->SensorPosition.array[iso2SensorOrderListType->SensorPosition.arrayLen] = (uint8_t)(uint32 + 0);
+ iso2SensorOrderListType->SensorPosition.arrayLen++;
+ } else {
+ /* Second level event (e.g., xsi:type, xsi:nil, ...) */
+ errn = EXI_UNSUPPORTED_EVENT_CODE_CHARACTERISTICS;
+ }
+ }
+ } else {
+ errn = EXI_ERROR_OUT_OF_BOUNDS;
+ }
+ if(errn == 0) {
+ /* valid EE for simple element START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorPosition) ? */
+ errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
+ if(eventCode == 0) {
+ grammarID = 710;
+ } else {
+ errn = EXI_DEVIANT_SUPPORT_NOT_DEPLOYED; /* or also typecast and nillable */
+ }
+ }
+ break;
+ case 1:
+ done = 1;
+ grammarID = 4;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 710:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorPosition), END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ if (iso2SensorOrderListType->SensorPosition.arrayLen < iso2SensorOrderListType_SensorPosition_ARRAY_SIZE) {
+ /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
+ errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
+ if(errn == 0) {
+ if(eventCode == 0) {
+ errn = decodeNBitUnsignedInteger(stream, 8, &(uint32));
+ iso2SensorOrderListType->SensorPosition.array[iso2SensorOrderListType->SensorPosition.arrayLen] = (uint8_t)(uint32 + 0);
+ iso2SensorOrderListType->SensorPosition.arrayLen++;
+ } else {
+ /* Second level event (e.g., xsi:type, xsi:nil, ...) */
+ errn = EXI_UNSUPPORTED_EVENT_CODE_CHARACTERISTICS;
+ }
+ }
+ } else {
+ errn = EXI_ERROR_OUT_OF_BOUNDS;
+ }
+ if(errn == 0) {
+ /* valid EE for simple element START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorPosition) ? */
+ errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
+ if(eventCode == 0) {
+ grammarID = 711;
+ } else {
+ errn = EXI_DEVIANT_SUPPORT_NOT_DEPLOYED; /* or also typecast and nillable */
+ }
+ }
+ break;
+ case 1:
+ done = 1;
+ grammarID = 4;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 711:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorPosition), END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ if (iso2SensorOrderListType->SensorPosition.arrayLen < iso2SensorOrderListType_SensorPosition_ARRAY_SIZE) {
+ /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
+ errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
+ if(errn == 0) {
+ if(eventCode == 0) {
+ errn = decodeNBitUnsignedInteger(stream, 8, &(uint32));
+ iso2SensorOrderListType->SensorPosition.array[iso2SensorOrderListType->SensorPosition.arrayLen] = (uint8_t)(uint32 + 0);
+ iso2SensorOrderListType->SensorPosition.arrayLen++;
+ } else {
+ /* Second level event (e.g., xsi:type, xsi:nil, ...) */
+ errn = EXI_UNSUPPORTED_EVENT_CODE_CHARACTERISTICS;
+ }
+ }
+ } else {
+ errn = EXI_ERROR_OUT_OF_BOUNDS;
+ }
+ if(errn == 0) {
+ /* valid EE for simple element START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorPosition) ? */
+ errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
+ if(eventCode == 0) {
+ grammarID = 712;
+ } else {
+ errn = EXI_DEVIANT_SUPPORT_NOT_DEPLOYED; /* or also typecast and nillable */
+ }
+ }
+ break;
+ case 1:
+ done = 1;
+ grammarID = 4;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 712:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorPosition), END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ if (iso2SensorOrderListType->SensorPosition.arrayLen < iso2SensorOrderListType_SensorPosition_ARRAY_SIZE) {
+ /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
+ errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
+ if(errn == 0) {
+ if(eventCode == 0) {
+ errn = decodeNBitUnsignedInteger(stream, 8, &(uint32));
+ iso2SensorOrderListType->SensorPosition.array[iso2SensorOrderListType->SensorPosition.arrayLen] = (uint8_t)(uint32 + 0);
+ iso2SensorOrderListType->SensorPosition.arrayLen++;
+ } else {
+ /* Second level event (e.g., xsi:type, xsi:nil, ...) */
+ errn = EXI_UNSUPPORTED_EVENT_CODE_CHARACTERISTICS;
+ }
+ }
+ } else {
+ errn = EXI_ERROR_OUT_OF_BOUNDS;
+ }
+ if(errn == 0) {
+ /* valid EE for simple element START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorPosition) ? */
+ errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
+ if(eventCode == 0) {
+ grammarID = 713;
+ } else {
+ errn = EXI_DEVIANT_SUPPORT_NOT_DEPLOYED; /* or also typecast and nillable */
+ }
+ }
+ break;
+ case 1:
+ done = 1;
+ grammarID = 4;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 713:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorPosition), END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ if (iso2SensorOrderListType->SensorPosition.arrayLen < iso2SensorOrderListType_SensorPosition_ARRAY_SIZE) {
+ /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
+ errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
+ if(errn == 0) {
+ if(eventCode == 0) {
+ errn = decodeNBitUnsignedInteger(stream, 8, &(uint32));
+ iso2SensorOrderListType->SensorPosition.array[iso2SensorOrderListType->SensorPosition.arrayLen] = (uint8_t)(uint32 + 0);
+ iso2SensorOrderListType->SensorPosition.arrayLen++;
+ } else {
+ /* Second level event (e.g., xsi:type, xsi:nil, ...) */
+ errn = EXI_UNSUPPORTED_EVENT_CODE_CHARACTERISTICS;
+ }
+ }
+ } else {
+ errn = EXI_ERROR_OUT_OF_BOUNDS;
+ }
+ if(errn == 0) {
+ /* valid EE for simple element START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorPosition) ? */
+ errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
+ if(eventCode == 0) {
+ grammarID = 714;
+ } else {
+ errn = EXI_DEVIANT_SUPPORT_NOT_DEPLOYED; /* or also typecast and nillable */
+ }
+ }
+ break;
+ case 1:
+ done = 1;
+ grammarID = 4;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 714:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorPosition), END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ if (iso2SensorOrderListType->SensorPosition.arrayLen < iso2SensorOrderListType_SensorPosition_ARRAY_SIZE) {
+ /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
+ errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
+ if(errn == 0) {
+ if(eventCode == 0) {
+ errn = decodeNBitUnsignedInteger(stream, 8, &(uint32));
+ iso2SensorOrderListType->SensorPosition.array[iso2SensorOrderListType->SensorPosition.arrayLen] = (uint8_t)(uint32 + 0);
+ iso2SensorOrderListType->SensorPosition.arrayLen++;
+ } else {
+ /* Second level event (e.g., xsi:type, xsi:nil, ...) */
+ errn = EXI_UNSUPPORTED_EVENT_CODE_CHARACTERISTICS;
+ }
+ }
+ } else {
+ errn = EXI_ERROR_OUT_OF_BOUNDS;
+ }
+ if(errn == 0) {
+ /* valid EE for simple element START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorPosition) ? */
+ errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
+ if(eventCode == 0) {
+ grammarID = 715;
+ } else {
+ errn = EXI_DEVIANT_SUPPORT_NOT_DEPLOYED; /* or also typecast and nillable */
+ }
+ }
+ break;
+ case 1:
+ done = 1;
+ grammarID = 4;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 715:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorPosition), END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ if (iso2SensorOrderListType->SensorPosition.arrayLen < iso2SensorOrderListType_SensorPosition_ARRAY_SIZE) {
+ /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
+ errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
+ if(errn == 0) {
+ if(eventCode == 0) {
+ errn = decodeNBitUnsignedInteger(stream, 8, &(uint32));
+ iso2SensorOrderListType->SensorPosition.array[iso2SensorOrderListType->SensorPosition.arrayLen] = (uint8_t)(uint32 + 0);
+ iso2SensorOrderListType->SensorPosition.arrayLen++;
+ } else {
+ /* Second level event (e.g., xsi:type, xsi:nil, ...) */
+ errn = EXI_UNSUPPORTED_EVENT_CODE_CHARACTERISTICS;
+ }
+ }
+ } else {
+ errn = EXI_ERROR_OUT_OF_BOUNDS;
+ }
+ if(errn == 0) {
+ /* valid EE for simple element START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorPosition) ? */
+ errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
+ if(eventCode == 0) {
+ grammarID = 716;
+ } else {
+ errn = EXI_DEVIANT_SUPPORT_NOT_DEPLOYED; /* or also typecast and nillable */
+ }
+ }
+ break;
+ case 1:
+ done = 1;
+ grammarID = 4;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 716:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorPosition), END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ if (iso2SensorOrderListType->SensorPosition.arrayLen < iso2SensorOrderListType_SensorPosition_ARRAY_SIZE) {
+ /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
+ errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
+ if(errn == 0) {
+ if(eventCode == 0) {
+ errn = decodeNBitUnsignedInteger(stream, 8, &(uint32));
+ iso2SensorOrderListType->SensorPosition.array[iso2SensorOrderListType->SensorPosition.arrayLen] = (uint8_t)(uint32 + 0);
+ iso2SensorOrderListType->SensorPosition.arrayLen++;
+ } else {
+ /* Second level event (e.g., xsi:type, xsi:nil, ...) */
+ errn = EXI_UNSUPPORTED_EVENT_CODE_CHARACTERISTICS;
+ }
+ }
+ } else {
+ errn = EXI_ERROR_OUT_OF_BOUNDS;
+ }
+ if(errn == 0) {
+ /* valid EE for simple element START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorPosition) ? */
+ errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
+ if(eventCode == 0) {
+ grammarID = 717;
+ } else {
+ errn = EXI_DEVIANT_SUPPORT_NOT_DEPLOYED; /* or also typecast and nillable */
+ }
+ }
+ break;
+ case 1:
+ done = 1;
+ grammarID = 4;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 717:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorPosition), END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ if (iso2SensorOrderListType->SensorPosition.arrayLen < iso2SensorOrderListType_SensorPosition_ARRAY_SIZE) {
+ /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
+ errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
+ if(errn == 0) {
+ if(eventCode == 0) {
+ errn = decodeNBitUnsignedInteger(stream, 8, &(uint32));
+ iso2SensorOrderListType->SensorPosition.array[iso2SensorOrderListType->SensorPosition.arrayLen] = (uint8_t)(uint32 + 0);
+ iso2SensorOrderListType->SensorPosition.arrayLen++;
+ } else {
+ /* Second level event (e.g., xsi:type, xsi:nil, ...) */
+ errn = EXI_UNSUPPORTED_EVENT_CODE_CHARACTERISTICS;
+ }
+ }
+ } else {
+ errn = EXI_ERROR_OUT_OF_BOUNDS;
+ }
+ if(errn == 0) {
+ /* valid EE for simple element START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorPosition) ? */
+ errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
+ if(eventCode == 0) {
+ grammarID = 718;
+ } else {
+ errn = EXI_DEVIANT_SUPPORT_NOT_DEPLOYED; /* or also typecast and nillable */
+ }
+ }
+ break;
+ case 1:
+ done = 1;
+ grammarID = 4;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 718:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorPosition), END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ if (iso2SensorOrderListType->SensorPosition.arrayLen < iso2SensorOrderListType_SensorPosition_ARRAY_SIZE) {
+ /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
+ errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
+ if(errn == 0) {
+ if(eventCode == 0) {
+ errn = decodeNBitUnsignedInteger(stream, 8, &(uint32));
+ iso2SensorOrderListType->SensorPosition.array[iso2SensorOrderListType->SensorPosition.arrayLen] = (uint8_t)(uint32 + 0);
+ iso2SensorOrderListType->SensorPosition.arrayLen++;
+ } else {
+ /* Second level event (e.g., xsi:type, xsi:nil, ...) */
+ errn = EXI_UNSUPPORTED_EVENT_CODE_CHARACTERISTICS;
+ }
+ }
+ } else {
+ errn = EXI_ERROR_OUT_OF_BOUNDS;
+ }
+ if(errn == 0) {
+ /* valid EE for simple element START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorPosition) ? */
+ errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
+ if(eventCode == 0) {
+ grammarID = 719;
+ } else {
+ errn = EXI_DEVIANT_SUPPORT_NOT_DEPLOYED; /* or also typecast and nillable */
+ }
+ }
+ break;
+ case 1:
+ done = 1;
+ grammarID = 4;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 719:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorPosition), END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ if (iso2SensorOrderListType->SensorPosition.arrayLen < iso2SensorOrderListType_SensorPosition_ARRAY_SIZE) {
+ /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
+ errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
+ if(errn == 0) {
+ if(eventCode == 0) {
+ errn = decodeNBitUnsignedInteger(stream, 8, &(uint32));
+ iso2SensorOrderListType->SensorPosition.array[iso2SensorOrderListType->SensorPosition.arrayLen] = (uint8_t)(uint32 + 0);
+ iso2SensorOrderListType->SensorPosition.arrayLen++;
+ } else {
+ /* Second level event (e.g., xsi:type, xsi:nil, ...) */
+ errn = EXI_UNSUPPORTED_EVENT_CODE_CHARACTERISTICS;
+ }
+ }
+ } else {
+ errn = EXI_ERROR_OUT_OF_BOUNDS;
+ }
+ if(errn == 0) {
+ /* valid EE for simple element START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorPosition) ? */
+ errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
+ if(eventCode == 0) {
+ grammarID = 720;
+ } else {
+ errn = EXI_DEVIANT_SUPPORT_NOT_DEPLOYED; /* or also typecast and nillable */
+ }
+ }
+ break;
+ case 1:
+ done = 1;
+ grammarID = 4;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 720:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorPosition), END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ if (iso2SensorOrderListType->SensorPosition.arrayLen < iso2SensorOrderListType_SensorPosition_ARRAY_SIZE) {
+ /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
+ errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
+ if(errn == 0) {
+ if(eventCode == 0) {
+ errn = decodeNBitUnsignedInteger(stream, 8, &(uint32));
+ iso2SensorOrderListType->SensorPosition.array[iso2SensorOrderListType->SensorPosition.arrayLen] = (uint8_t)(uint32 + 0);
+ iso2SensorOrderListType->SensorPosition.arrayLen++;
+ } else {
+ /* Second level event (e.g., xsi:type, xsi:nil, ...) */
+ errn = EXI_UNSUPPORTED_EVENT_CODE_CHARACTERISTICS;
+ }
+ }
+ } else {
+ errn = EXI_ERROR_OUT_OF_BOUNDS;
+ }
+ if(errn == 0) {
+ /* valid EE for simple element START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorPosition) ? */
+ errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
+ if(eventCode == 0) {
+ grammarID = 721;
+ } else {
+ errn = EXI_DEVIANT_SUPPORT_NOT_DEPLOYED; /* or also typecast and nillable */
+ }
+ }
+ break;
+ case 1:
+ done = 1;
+ grammarID = 4;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 721:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorPosition), END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ if (iso2SensorOrderListType->SensorPosition.arrayLen < iso2SensorOrderListType_SensorPosition_ARRAY_SIZE) {
+ /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
+ errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
+ if(errn == 0) {
+ if(eventCode == 0) {
+ errn = decodeNBitUnsignedInteger(stream, 8, &(uint32));
+ iso2SensorOrderListType->SensorPosition.array[iso2SensorOrderListType->SensorPosition.arrayLen] = (uint8_t)(uint32 + 0);
+ iso2SensorOrderListType->SensorPosition.arrayLen++;
+ } else {
+ /* Second level event (e.g., xsi:type, xsi:nil, ...) */
+ errn = EXI_UNSUPPORTED_EVENT_CODE_CHARACTERISTICS;
+ }
+ }
+ } else {
+ errn = EXI_ERROR_OUT_OF_BOUNDS;
+ }
+ if(errn == 0) {
+ /* valid EE for simple element START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorPosition) ? */
+ errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
+ if(eventCode == 0) {
+ grammarID = 722;
+ } else {
+ errn = EXI_DEVIANT_SUPPORT_NOT_DEPLOYED; /* or also typecast and nillable */
+ }
+ }
+ break;
+ case 1:
+ done = 1;
+ grammarID = 4;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 722:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorPosition), END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ if (iso2SensorOrderListType->SensorPosition.arrayLen < iso2SensorOrderListType_SensorPosition_ARRAY_SIZE) {
+ /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
+ errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
+ if(errn == 0) {
+ if(eventCode == 0) {
+ errn = decodeNBitUnsignedInteger(stream, 8, &(uint32));
+ iso2SensorOrderListType->SensorPosition.array[iso2SensorOrderListType->SensorPosition.arrayLen] = (uint8_t)(uint32 + 0);
+ iso2SensorOrderListType->SensorPosition.arrayLen++;
+ } else {
+ /* Second level event (e.g., xsi:type, xsi:nil, ...) */
+ errn = EXI_UNSUPPORTED_EVENT_CODE_CHARACTERISTICS;
+ }
+ }
+ } else {
+ errn = EXI_ERROR_OUT_OF_BOUNDS;
+ }
+ if(errn == 0) {
+ /* valid EE for simple element START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorPosition) ? */
+ errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
+ if(eventCode == 0) {
+ grammarID = 723;
+ } else {
+ errn = EXI_DEVIANT_SUPPORT_NOT_DEPLOYED; /* or also typecast and nillable */
+ }
+ }
+ break;
+ case 1:
+ done = 1;
+ grammarID = 4;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 723:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorPosition), END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ if (iso2SensorOrderListType->SensorPosition.arrayLen < iso2SensorOrderListType_SensorPosition_ARRAY_SIZE) {
+ /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
+ errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
+ if(errn == 0) {
+ if(eventCode == 0) {
+ errn = decodeNBitUnsignedInteger(stream, 8, &(uint32));
+ iso2SensorOrderListType->SensorPosition.array[iso2SensorOrderListType->SensorPosition.arrayLen] = (uint8_t)(uint32 + 0);
+ iso2SensorOrderListType->SensorPosition.arrayLen++;
+ } else {
+ /* Second level event (e.g., xsi:type, xsi:nil, ...) */
+ errn = EXI_UNSUPPORTED_EVENT_CODE_CHARACTERISTICS;
+ }
+ }
+ } else {
+ errn = EXI_ERROR_OUT_OF_BOUNDS;
+ }
+ if(errn == 0) {
+ /* valid EE for simple element START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorPosition) ? */
+ errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
+ if(eventCode == 0) {
+ grammarID = 724;
+ } else {
+ errn = EXI_DEVIANT_SUPPORT_NOT_DEPLOYED; /* or also typecast and nillable */
+ }
+ }
+ break;
+ case 1:
+ done = 1;
+ grammarID = 4;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 724:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorPosition), END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ if (iso2SensorOrderListType->SensorPosition.arrayLen < iso2SensorOrderListType_SensorPosition_ARRAY_SIZE) {
+ /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
+ errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
+ if(errn == 0) {
+ if(eventCode == 0) {
+ errn = decodeNBitUnsignedInteger(stream, 8, &(uint32));
+ iso2SensorOrderListType->SensorPosition.array[iso2SensorOrderListType->SensorPosition.arrayLen] = (uint8_t)(uint32 + 0);
+ iso2SensorOrderListType->SensorPosition.arrayLen++;
+ } else {
+ /* Second level event (e.g., xsi:type, xsi:nil, ...) */
+ errn = EXI_UNSUPPORTED_EVENT_CODE_CHARACTERISTICS;
+ }
+ }
+ } else {
+ errn = EXI_ERROR_OUT_OF_BOUNDS;
+ }
+ if(errn == 0) {
+ /* valid EE for simple element START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorPosition) ? */
+ errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
+ if(eventCode == 0) {
+ grammarID = 725;
+ } else {
+ errn = EXI_DEVIANT_SUPPORT_NOT_DEPLOYED; /* or also typecast and nillable */
+ }
+ }
+ break;
+ case 1:
+ done = 1;
+ grammarID = 4;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 725:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorPosition), END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ if (iso2SensorOrderListType->SensorPosition.arrayLen < iso2SensorOrderListType_SensorPosition_ARRAY_SIZE) {
+ /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
+ errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
+ if(errn == 0) {
+ if(eventCode == 0) {
+ errn = decodeNBitUnsignedInteger(stream, 8, &(uint32));
+ iso2SensorOrderListType->SensorPosition.array[iso2SensorOrderListType->SensorPosition.arrayLen] = (uint8_t)(uint32 + 0);
+ iso2SensorOrderListType->SensorPosition.arrayLen++;
+ } else {
+ /* Second level event (e.g., xsi:type, xsi:nil, ...) */
+ errn = EXI_UNSUPPORTED_EVENT_CODE_CHARACTERISTICS;
+ }
+ }
+ } else {
+ errn = EXI_ERROR_OUT_OF_BOUNDS;
+ }
+ if(errn == 0) {
+ /* valid EE for simple element START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorPosition) ? */
+ errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
+ if(eventCode == 0) {
+ grammarID = 726;
+ } else {
+ errn = EXI_DEVIANT_SUPPORT_NOT_DEPLOYED; /* or also typecast and nillable */
+ }
+ }
+ break;
+ case 1:
+ done = 1;
+ grammarID = 4;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 726:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorPosition), END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ if (iso2SensorOrderListType->SensorPosition.arrayLen < iso2SensorOrderListType_SensorPosition_ARRAY_SIZE) {
+ /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
+ errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
+ if(errn == 0) {
+ if(eventCode == 0) {
+ errn = decodeNBitUnsignedInteger(stream, 8, &(uint32));
+ iso2SensorOrderListType->SensorPosition.array[iso2SensorOrderListType->SensorPosition.arrayLen] = (uint8_t)(uint32 + 0);
+ iso2SensorOrderListType->SensorPosition.arrayLen++;
+ } else {
+ /* Second level event (e.g., xsi:type, xsi:nil, ...) */
+ errn = EXI_UNSUPPORTED_EVENT_CODE_CHARACTERISTICS;
+ }
+ }
+ } else {
+ errn = EXI_ERROR_OUT_OF_BOUNDS;
+ }
+ if(errn == 0) {
+ /* valid EE for simple element START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorPosition) ? */
+ errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
+ if(eventCode == 0) {
+ grammarID = 727;
+ } else {
+ errn = EXI_DEVIANT_SUPPORT_NOT_DEPLOYED; /* or also typecast and nillable */
+ }
+ }
+ break;
+ case 1:
+ done = 1;
+ grammarID = 4;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 727:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorPosition), END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ if (iso2SensorOrderListType->SensorPosition.arrayLen < iso2SensorOrderListType_SensorPosition_ARRAY_SIZE) {
+ /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
+ errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
+ if(errn == 0) {
+ if(eventCode == 0) {
+ errn = decodeNBitUnsignedInteger(stream, 8, &(uint32));
+ iso2SensorOrderListType->SensorPosition.array[iso2SensorOrderListType->SensorPosition.arrayLen] = (uint8_t)(uint32 + 0);
+ iso2SensorOrderListType->SensorPosition.arrayLen++;
+ } else {
+ /* Second level event (e.g., xsi:type, xsi:nil, ...) */
+ errn = EXI_UNSUPPORTED_EVENT_CODE_CHARACTERISTICS;
+ }
+ }
+ } else {
+ errn = EXI_ERROR_OUT_OF_BOUNDS;
+ }
+ if(errn == 0) {
+ /* valid EE for simple element START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorPosition) ? */
+ errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
+ if(eventCode == 0) {
+ grammarID = 728;
+ } else {
+ errn = EXI_DEVIANT_SUPPORT_NOT_DEPLOYED; /* or also typecast and nillable */
+ }
+ }
+ break;
+ case 1:
+ done = 1;
+ grammarID = 4;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 728:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorPosition), END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ if (iso2SensorOrderListType->SensorPosition.arrayLen < iso2SensorOrderListType_SensorPosition_ARRAY_SIZE) {
+ /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
+ errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
+ if(errn == 0) {
+ if(eventCode == 0) {
+ errn = decodeNBitUnsignedInteger(stream, 8, &(uint32));
+ iso2SensorOrderListType->SensorPosition.array[iso2SensorOrderListType->SensorPosition.arrayLen] = (uint8_t)(uint32 + 0);
+ iso2SensorOrderListType->SensorPosition.arrayLen++;
+ } else {
+ /* Second level event (e.g., xsi:type, xsi:nil, ...) */
+ errn = EXI_UNSUPPORTED_EVENT_CODE_CHARACTERISTICS;
+ }
+ }
+ } else {
+ errn = EXI_ERROR_OUT_OF_BOUNDS;
+ }
+ if(errn == 0) {
+ /* valid EE for simple element START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorPosition) ? */
+ errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
+ if(eventCode == 0) {
+ grammarID = 729;
+ } else {
+ errn = EXI_DEVIANT_SUPPORT_NOT_DEPLOYED; /* or also typecast and nillable */
+ }
+ }
+ break;
+ case 1:
+ done = 1;
+ grammarID = 4;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 729:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorPosition), END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ if (iso2SensorOrderListType->SensorPosition.arrayLen < iso2SensorOrderListType_SensorPosition_ARRAY_SIZE) {
+ /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
+ errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
+ if(errn == 0) {
+ if(eventCode == 0) {
+ errn = decodeNBitUnsignedInteger(stream, 8, &(uint32));
+ iso2SensorOrderListType->SensorPosition.array[iso2SensorOrderListType->SensorPosition.arrayLen] = (uint8_t)(uint32 + 0);
+ iso2SensorOrderListType->SensorPosition.arrayLen++;
+ } else {
+ /* Second level event (e.g., xsi:type, xsi:nil, ...) */
+ errn = EXI_UNSUPPORTED_EVENT_CODE_CHARACTERISTICS;
+ }
+ }
+ } else {
+ errn = EXI_ERROR_OUT_OF_BOUNDS;
+ }
+ if(errn == 0) {
+ /* valid EE for simple element START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorPosition) ? */
+ errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
+ if(eventCode == 0) {
+ grammarID = 730;
+ } else {
+ errn = EXI_DEVIANT_SUPPORT_NOT_DEPLOYED; /* or also typecast and nillable */
+ }
+ }
+ break;
+ case 1:
+ done = 1;
+ grammarID = 4;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 730:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorPosition), END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ if (iso2SensorOrderListType->SensorPosition.arrayLen < iso2SensorOrderListType_SensorPosition_ARRAY_SIZE) {
+ /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
+ errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
+ if(errn == 0) {
+ if(eventCode == 0) {
+ errn = decodeNBitUnsignedInteger(stream, 8, &(uint32));
+ iso2SensorOrderListType->SensorPosition.array[iso2SensorOrderListType->SensorPosition.arrayLen] = (uint8_t)(uint32 + 0);
+ iso2SensorOrderListType->SensorPosition.arrayLen++;
+ } else {
+ /* Second level event (e.g., xsi:type, xsi:nil, ...) */
+ errn = EXI_UNSUPPORTED_EVENT_CODE_CHARACTERISTICS;
+ }
+ }
+ } else {
+ errn = EXI_ERROR_OUT_OF_BOUNDS;
+ }
+ if(errn == 0) {
+ /* valid EE for simple element START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorPosition) ? */
+ errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
+ if(eventCode == 0) {
+ grammarID = 731;
+ } else {
+ errn = EXI_DEVIANT_SUPPORT_NOT_DEPLOYED; /* or also typecast and nillable */
+ }
+ }
+ break;
+ case 1:
+ done = 1;
+ grammarID = 4;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 731:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorPosition), END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ if (iso2SensorOrderListType->SensorPosition.arrayLen < iso2SensorOrderListType_SensorPosition_ARRAY_SIZE) {
+ /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
+ errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
+ if(errn == 0) {
+ if(eventCode == 0) {
+ errn = decodeNBitUnsignedInteger(stream, 8, &(uint32));
+ iso2SensorOrderListType->SensorPosition.array[iso2SensorOrderListType->SensorPosition.arrayLen] = (uint8_t)(uint32 + 0);
+ iso2SensorOrderListType->SensorPosition.arrayLen++;
+ } else {
+ /* Second level event (e.g., xsi:type, xsi:nil, ...) */
+ errn = EXI_UNSUPPORTED_EVENT_CODE_CHARACTERISTICS;
+ }
+ }
+ } else {
+ errn = EXI_ERROR_OUT_OF_BOUNDS;
+ }
+ if(errn == 0) {
+ /* valid EE for simple element START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorPosition) ? */
+ errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
+ if(eventCode == 0) {
+ grammarID = 732;
+ } else {
+ errn = EXI_DEVIANT_SUPPORT_NOT_DEPLOYED; /* or also typecast and nillable */
+ }
+ }
+ break;
+ case 1:
+ done = 1;
+ grammarID = 4;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 732:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorPosition), END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ if (iso2SensorOrderListType->SensorPosition.arrayLen < iso2SensorOrderListType_SensorPosition_ARRAY_SIZE) {
+ /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
+ errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
+ if(errn == 0) {
+ if(eventCode == 0) {
+ errn = decodeNBitUnsignedInteger(stream, 8, &(uint32));
+ iso2SensorOrderListType->SensorPosition.array[iso2SensorOrderListType->SensorPosition.arrayLen] = (uint8_t)(uint32 + 0);
+ iso2SensorOrderListType->SensorPosition.arrayLen++;
+ } else {
+ /* Second level event (e.g., xsi:type, xsi:nil, ...) */
+ errn = EXI_UNSUPPORTED_EVENT_CODE_CHARACTERISTICS;
+ }
+ }
+ } else {
+ errn = EXI_ERROR_OUT_OF_BOUNDS;
+ }
+ if(errn == 0) {
+ /* valid EE for simple element START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorPosition) ? */
+ errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
+ if(eventCode == 0) {
+ grammarID = 733;
+ } else {
+ errn = EXI_DEVIANT_SUPPORT_NOT_DEPLOYED; /* or also typecast and nillable */
+ }
+ }
+ break;
+ case 1:
+ done = 1;
+ grammarID = 4;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 733:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorPosition), END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ if (iso2SensorOrderListType->SensorPosition.arrayLen < iso2SensorOrderListType_SensorPosition_ARRAY_SIZE) {
+ /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
+ errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
+ if(errn == 0) {
+ if(eventCode == 0) {
+ errn = decodeNBitUnsignedInteger(stream, 8, &(uint32));
+ iso2SensorOrderListType->SensorPosition.array[iso2SensorOrderListType->SensorPosition.arrayLen] = (uint8_t)(uint32 + 0);
+ iso2SensorOrderListType->SensorPosition.arrayLen++;
+ } else {
+ /* Second level event (e.g., xsi:type, xsi:nil, ...) */
+ errn = EXI_UNSUPPORTED_EVENT_CODE_CHARACTERISTICS;
+ }
+ }
+ } else {
+ errn = EXI_ERROR_OUT_OF_BOUNDS;
+ }
+ if(errn == 0) {
+ /* valid EE for simple element START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorPosition) ? */
+ errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
+ if(eventCode == 0) {
+ grammarID = 734;
+ } else {
+ errn = EXI_DEVIANT_SUPPORT_NOT_DEPLOYED; /* or also typecast and nillable */
+ }
+ }
+ break;
+ case 1:
+ done = 1;
+ grammarID = 4;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 734:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorPosition), END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ if (iso2SensorOrderListType->SensorPosition.arrayLen < iso2SensorOrderListType_SensorPosition_ARRAY_SIZE) {
+ /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
+ errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
+ if(errn == 0) {
+ if(eventCode == 0) {
+ errn = decodeNBitUnsignedInteger(stream, 8, &(uint32));
+ iso2SensorOrderListType->SensorPosition.array[iso2SensorOrderListType->SensorPosition.arrayLen] = (uint8_t)(uint32 + 0);
+ iso2SensorOrderListType->SensorPosition.arrayLen++;
+ } else {
+ /* Second level event (e.g., xsi:type, xsi:nil, ...) */
+ errn = EXI_UNSUPPORTED_EVENT_CODE_CHARACTERISTICS;
+ }
+ }
+ } else {
+ errn = EXI_ERROR_OUT_OF_BOUNDS;
+ }
+ if(errn == 0) {
+ /* valid EE for simple element START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorPosition) ? */
+ errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
+ if(eventCode == 0) {
+ grammarID = 735;
+ } else {
+ errn = EXI_DEVIANT_SUPPORT_NOT_DEPLOYED; /* or also typecast and nillable */
+ }
+ }
+ break;
+ case 1:
+ done = 1;
+ grammarID = 4;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 735:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorPosition), END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ if (iso2SensorOrderListType->SensorPosition.arrayLen < iso2SensorOrderListType_SensorPosition_ARRAY_SIZE) {
+ /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
+ errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
+ if(errn == 0) {
+ if(eventCode == 0) {
+ errn = decodeNBitUnsignedInteger(stream, 8, &(uint32));
+ iso2SensorOrderListType->SensorPosition.array[iso2SensorOrderListType->SensorPosition.arrayLen] = (uint8_t)(uint32 + 0);
+ iso2SensorOrderListType->SensorPosition.arrayLen++;
+ } else {
+ /* Second level event (e.g., xsi:type, xsi:nil, ...) */
+ errn = EXI_UNSUPPORTED_EVENT_CODE_CHARACTERISTICS;
+ }
+ }
+ } else {
+ errn = EXI_ERROR_OUT_OF_BOUNDS;
+ }
+ if(errn == 0) {
+ /* valid EE for simple element START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorPosition) ? */
+ errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
+ if(eventCode == 0) {
+ grammarID = 736;
+ } else {
+ errn = EXI_DEVIANT_SUPPORT_NOT_DEPLOYED; /* or also typecast and nillable */
+ }
+ }
+ break;
+ case 1:
+ done = 1;
+ grammarID = 4;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 736:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorPosition), END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ if (iso2SensorOrderListType->SensorPosition.arrayLen < iso2SensorOrderListType_SensorPosition_ARRAY_SIZE) {
+ /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
+ errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
+ if(errn == 0) {
+ if(eventCode == 0) {
+ errn = decodeNBitUnsignedInteger(stream, 8, &(uint32));
+ iso2SensorOrderListType->SensorPosition.array[iso2SensorOrderListType->SensorPosition.arrayLen] = (uint8_t)(uint32 + 0);
+ iso2SensorOrderListType->SensorPosition.arrayLen++;
+ } else {
+ /* Second level event (e.g., xsi:type, xsi:nil, ...) */
+ errn = EXI_UNSUPPORTED_EVENT_CODE_CHARACTERISTICS;
+ }
+ }
+ } else {
+ errn = EXI_ERROR_OUT_OF_BOUNDS;
+ }
+ if(errn == 0) {
+ /* valid EE for simple element START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorPosition) ? */
+ errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
+ if(eventCode == 0) {
+ grammarID = 737;
+ } else {
+ errn = EXI_DEVIANT_SUPPORT_NOT_DEPLOYED; /* or also typecast and nillable */
+ }
+ }
+ break;
+ case 1:
+ done = 1;
+ grammarID = 4;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 737:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorPosition), END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ if (iso2SensorOrderListType->SensorPosition.arrayLen < iso2SensorOrderListType_SensorPosition_ARRAY_SIZE) {
+ /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
+ errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
+ if(errn == 0) {
+ if(eventCode == 0) {
+ errn = decodeNBitUnsignedInteger(stream, 8, &(uint32));
+ iso2SensorOrderListType->SensorPosition.array[iso2SensorOrderListType->SensorPosition.arrayLen] = (uint8_t)(uint32 + 0);
+ iso2SensorOrderListType->SensorPosition.arrayLen++;
+ } else {
+ /* Second level event (e.g., xsi:type, xsi:nil, ...) */
+ errn = EXI_UNSUPPORTED_EVENT_CODE_CHARACTERISTICS;
+ }
+ }
+ } else {
+ errn = EXI_ERROR_OUT_OF_BOUNDS;
+ }
+ if(errn == 0) {
+ /* valid EE for simple element START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorPosition) ? */
+ errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
+ if(eventCode == 0) {
+ grammarID = 738;
+ } else {
+ errn = EXI_DEVIANT_SUPPORT_NOT_DEPLOYED; /* or also typecast and nillable */
+ }
+ }
+ break;
+ case 1:
+ done = 1;
+ grammarID = 4;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 738:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorPosition), END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ if (iso2SensorOrderListType->SensorPosition.arrayLen < iso2SensorOrderListType_SensorPosition_ARRAY_SIZE) {
+ /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
+ errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
+ if(errn == 0) {
+ if(eventCode == 0) {
+ errn = decodeNBitUnsignedInteger(stream, 8, &(uint32));
+ iso2SensorOrderListType->SensorPosition.array[iso2SensorOrderListType->SensorPosition.arrayLen] = (uint8_t)(uint32 + 0);
+ iso2SensorOrderListType->SensorPosition.arrayLen++;
+ } else {
+ /* Second level event (e.g., xsi:type, xsi:nil, ...) */
+ errn = EXI_UNSUPPORTED_EVENT_CODE_CHARACTERISTICS;
+ }
+ }
+ } else {
+ errn = EXI_ERROR_OUT_OF_BOUNDS;
+ }
+ if(errn == 0) {
+ /* valid EE for simple element START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorPosition) ? */
+ errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
+ if(eventCode == 0) {
+ grammarID = 739;
+ } else {
+ errn = EXI_DEVIANT_SUPPORT_NOT_DEPLOYED; /* or also typecast and nillable */
+ }
+ }
+ break;
+ case 1:
+ done = 1;
+ grammarID = 4;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 739:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorPosition), END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ if (iso2SensorOrderListType->SensorPosition.arrayLen < iso2SensorOrderListType_SensorPosition_ARRAY_SIZE) {
+ /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
+ errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
+ if(errn == 0) {
+ if(eventCode == 0) {
+ errn = decodeNBitUnsignedInteger(stream, 8, &(uint32));
+ iso2SensorOrderListType->SensorPosition.array[iso2SensorOrderListType->SensorPosition.arrayLen] = (uint8_t)(uint32 + 0);
+ iso2SensorOrderListType->SensorPosition.arrayLen++;
+ } else {
+ /* Second level event (e.g., xsi:type, xsi:nil, ...) */
+ errn = EXI_UNSUPPORTED_EVENT_CODE_CHARACTERISTICS;
+ }
+ }
+ } else {
+ errn = EXI_ERROR_OUT_OF_BOUNDS;
+ }
+ if(errn == 0) {
+ /* valid EE for simple element START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorPosition) ? */
+ errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
+ if(eventCode == 0) {
+ grammarID = 740;
+ } else {
+ errn = EXI_DEVIANT_SUPPORT_NOT_DEPLOYED; /* or also typecast and nillable */
+ }
+ }
+ break;
+ case 1:
+ done = 1;
+ grammarID = 4;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 740:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorPosition), END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ if (iso2SensorOrderListType->SensorPosition.arrayLen < iso2SensorOrderListType_SensorPosition_ARRAY_SIZE) {
+ /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
+ errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
+ if(errn == 0) {
+ if(eventCode == 0) {
+ errn = decodeNBitUnsignedInteger(stream, 8, &(uint32));
+ iso2SensorOrderListType->SensorPosition.array[iso2SensorOrderListType->SensorPosition.arrayLen] = (uint8_t)(uint32 + 0);
+ iso2SensorOrderListType->SensorPosition.arrayLen++;
+ } else {
+ /* Second level event (e.g., xsi:type, xsi:nil, ...) */
+ errn = EXI_UNSUPPORTED_EVENT_CODE_CHARACTERISTICS;
+ }
+ }
+ } else {
+ errn = EXI_ERROR_OUT_OF_BOUNDS;
+ }
+ if(errn == 0) {
+ /* valid EE for simple element START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorPosition) ? */
+ errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
+ if(eventCode == 0) {
+ grammarID = 741;
+ } else {
+ errn = EXI_DEVIANT_SUPPORT_NOT_DEPLOYED; /* or also typecast and nillable */
+ }
+ }
+ break;
+ case 1:
+ done = 1;
+ grammarID = 4;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 741:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorPosition), END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ if (iso2SensorOrderListType->SensorPosition.arrayLen < iso2SensorOrderListType_SensorPosition_ARRAY_SIZE) {
+ /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
+ errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
+ if(errn == 0) {
+ if(eventCode == 0) {
+ errn = decodeNBitUnsignedInteger(stream, 8, &(uint32));
+ iso2SensorOrderListType->SensorPosition.array[iso2SensorOrderListType->SensorPosition.arrayLen] = (uint8_t)(uint32 + 0);
+ iso2SensorOrderListType->SensorPosition.arrayLen++;
+ } else {
+ /* Second level event (e.g., xsi:type, xsi:nil, ...) */
+ errn = EXI_UNSUPPORTED_EVENT_CODE_CHARACTERISTICS;
+ }
+ }
+ } else {
+ errn = EXI_ERROR_OUT_OF_BOUNDS;
+ }
+ if(errn == 0) {
+ /* valid EE for simple element START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorPosition) ? */
+ errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
+ if(eventCode == 0) {
+ grammarID = 742;
+ } else {
+ errn = EXI_DEVIANT_SUPPORT_NOT_DEPLOYED; /* or also typecast and nillable */
+ }
+ }
+ break;
+ case 1:
+ done = 1;
+ grammarID = 4;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 742:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorPosition), END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ if (iso2SensorOrderListType->SensorPosition.arrayLen < iso2SensorOrderListType_SensorPosition_ARRAY_SIZE) {
+ /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
+ errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
+ if(errn == 0) {
+ if(eventCode == 0) {
+ errn = decodeNBitUnsignedInteger(stream, 8, &(uint32));
+ iso2SensorOrderListType->SensorPosition.array[iso2SensorOrderListType->SensorPosition.arrayLen] = (uint8_t)(uint32 + 0);
+ iso2SensorOrderListType->SensorPosition.arrayLen++;
+ } else {
+ /* Second level event (e.g., xsi:type, xsi:nil, ...) */
+ errn = EXI_UNSUPPORTED_EVENT_CODE_CHARACTERISTICS;
+ }
+ }
+ } else {
+ errn = EXI_ERROR_OUT_OF_BOUNDS;
+ }
+ if(errn == 0) {
+ /* valid EE for simple element START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorPosition) ? */
+ errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
+ if(eventCode == 0) {
+ grammarID = 743;
+ } else {
+ errn = EXI_DEVIANT_SUPPORT_NOT_DEPLOYED; /* or also typecast and nillable */
+ }
+ }
+ break;
+ case 1:
+ done = 1;
+ grammarID = 4;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 743:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorPosition), END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ if (iso2SensorOrderListType->SensorPosition.arrayLen < iso2SensorOrderListType_SensorPosition_ARRAY_SIZE) {
+ /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
+ errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
+ if(errn == 0) {
+ if(eventCode == 0) {
+ errn = decodeNBitUnsignedInteger(stream, 8, &(uint32));
+ iso2SensorOrderListType->SensorPosition.array[iso2SensorOrderListType->SensorPosition.arrayLen] = (uint8_t)(uint32 + 0);
+ iso2SensorOrderListType->SensorPosition.arrayLen++;
+ } else {
+ /* Second level event (e.g., xsi:type, xsi:nil, ...) */
+ errn = EXI_UNSUPPORTED_EVENT_CODE_CHARACTERISTICS;
+ }
+ }
+ } else {
+ errn = EXI_ERROR_OUT_OF_BOUNDS;
+ }
+ if(errn == 0) {
+ /* valid EE for simple element START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorPosition) ? */
+ errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
+ if(eventCode == 0) {
+ grammarID = 744;
+ } else {
+ errn = EXI_DEVIANT_SUPPORT_NOT_DEPLOYED; /* or also typecast and nillable */
+ }
+ }
+ break;
+ case 1:
+ done = 1;
+ grammarID = 4;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 744:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorPosition), END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ if (iso2SensorOrderListType->SensorPosition.arrayLen < iso2SensorOrderListType_SensorPosition_ARRAY_SIZE) {
+ /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
+ errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
+ if(errn == 0) {
+ if(eventCode == 0) {
+ errn = decodeNBitUnsignedInteger(stream, 8, &(uint32));
+ iso2SensorOrderListType->SensorPosition.array[iso2SensorOrderListType->SensorPosition.arrayLen] = (uint8_t)(uint32 + 0);
+ iso2SensorOrderListType->SensorPosition.arrayLen++;
+ } else {
+ /* Second level event (e.g., xsi:type, xsi:nil, ...) */
+ errn = EXI_UNSUPPORTED_EVENT_CODE_CHARACTERISTICS;
+ }
+ }
+ } else {
+ errn = EXI_ERROR_OUT_OF_BOUNDS;
+ }
+ if(errn == 0) {
+ /* valid EE for simple element START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorPosition) ? */
+ errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
+ if(eventCode == 0) {
+ grammarID = 745;
+ } else {
+ errn = EXI_DEVIANT_SUPPORT_NOT_DEPLOYED; /* or also typecast and nillable */
+ }
+ }
+ break;
+ case 1:
+ done = 1;
+ grammarID = 4;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 745:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorPosition), END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ if (iso2SensorOrderListType->SensorPosition.arrayLen < iso2SensorOrderListType_SensorPosition_ARRAY_SIZE) {
+ /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
+ errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
+ if(errn == 0) {
+ if(eventCode == 0) {
+ errn = decodeNBitUnsignedInteger(stream, 8, &(uint32));
+ iso2SensorOrderListType->SensorPosition.array[iso2SensorOrderListType->SensorPosition.arrayLen] = (uint8_t)(uint32 + 0);
+ iso2SensorOrderListType->SensorPosition.arrayLen++;
+ } else {
+ /* Second level event (e.g., xsi:type, xsi:nil, ...) */
+ errn = EXI_UNSUPPORTED_EVENT_CODE_CHARACTERISTICS;
+ }
+ }
+ } else {
+ errn = EXI_ERROR_OUT_OF_BOUNDS;
+ }
+ if(errn == 0) {
+ /* valid EE for simple element START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorPosition) ? */
+ errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
+ if(eventCode == 0) {
+ grammarID = 746;
+ } else {
+ errn = EXI_DEVIANT_SUPPORT_NOT_DEPLOYED; /* or also typecast and nillable */
+ }
+ }
+ break;
+ case 1:
+ done = 1;
+ grammarID = 4;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 746:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorPosition), END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ if (iso2SensorOrderListType->SensorPosition.arrayLen < iso2SensorOrderListType_SensorPosition_ARRAY_SIZE) {
+ /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
+ errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
+ if(errn == 0) {
+ if(eventCode == 0) {
+ errn = decodeNBitUnsignedInteger(stream, 8, &(uint32));
+ iso2SensorOrderListType->SensorPosition.array[iso2SensorOrderListType->SensorPosition.arrayLen] = (uint8_t)(uint32 + 0);
+ iso2SensorOrderListType->SensorPosition.arrayLen++;
+ } else {
+ /* Second level event (e.g., xsi:type, xsi:nil, ...) */
+ errn = EXI_UNSUPPORTED_EVENT_CODE_CHARACTERISTICS;
+ }
+ }
+ } else {
+ errn = EXI_ERROR_OUT_OF_BOUNDS;
+ }
+ if(errn == 0) {
+ /* valid EE for simple element START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorPosition) ? */
+ errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
+ if(eventCode == 0) {
+ grammarID = 747;
+ } else {
+ errn = EXI_DEVIANT_SUPPORT_NOT_DEPLOYED; /* or also typecast and nillable */
+ }
+ }
+ break;
+ case 1:
+ done = 1;
+ grammarID = 4;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 747:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorPosition), END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ if (iso2SensorOrderListType->SensorPosition.arrayLen < iso2SensorOrderListType_SensorPosition_ARRAY_SIZE) {
+ /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
+ errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
+ if(errn == 0) {
+ if(eventCode == 0) {
+ errn = decodeNBitUnsignedInteger(stream, 8, &(uint32));
+ iso2SensorOrderListType->SensorPosition.array[iso2SensorOrderListType->SensorPosition.arrayLen] = (uint8_t)(uint32 + 0);
+ iso2SensorOrderListType->SensorPosition.arrayLen++;
+ } else {
+ /* Second level event (e.g., xsi:type, xsi:nil, ...) */
+ errn = EXI_UNSUPPORTED_EVENT_CODE_CHARACTERISTICS;
+ }
+ }
+ } else {
+ errn = EXI_ERROR_OUT_OF_BOUNDS;
+ }
+ if(errn == 0) {
+ /* valid EE for simple element START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorPosition) ? */
+ errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
+ if(eventCode == 0) {
+ grammarID = 748;
+ } else {
+ errn = EXI_DEVIANT_SUPPORT_NOT_DEPLOYED; /* or also typecast and nillable */
+ }
+ }
+ break;
+ case 1:
+ done = 1;
+ grammarID = 4;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 748:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorPosition), END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ if (iso2SensorOrderListType->SensorPosition.arrayLen < iso2SensorOrderListType_SensorPosition_ARRAY_SIZE) {
+ /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
+ errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
+ if(errn == 0) {
+ if(eventCode == 0) {
+ errn = decodeNBitUnsignedInteger(stream, 8, &(uint32));
+ iso2SensorOrderListType->SensorPosition.array[iso2SensorOrderListType->SensorPosition.arrayLen] = (uint8_t)(uint32 + 0);
+ iso2SensorOrderListType->SensorPosition.arrayLen++;
+ } else {
+ /* Second level event (e.g., xsi:type, xsi:nil, ...) */
+ errn = EXI_UNSUPPORTED_EVENT_CODE_CHARACTERISTICS;
+ }
+ }
+ } else {
+ errn = EXI_ERROR_OUT_OF_BOUNDS;
+ }
+ if(errn == 0) {
+ /* valid EE for simple element START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorPosition) ? */
+ errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
+ if(eventCode == 0) {
+ grammarID = 749;
+ } else {
+ errn = EXI_DEVIANT_SUPPORT_NOT_DEPLOYED; /* or also typecast and nillable */
+ }
+ }
+ break;
+ case 1:
+ done = 1;
+ grammarID = 4;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 749:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorPosition), END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ if (iso2SensorOrderListType->SensorPosition.arrayLen < iso2SensorOrderListType_SensorPosition_ARRAY_SIZE) {
+ /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
+ errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
+ if(errn == 0) {
+ if(eventCode == 0) {
+ errn = decodeNBitUnsignedInteger(stream, 8, &(uint32));
+ iso2SensorOrderListType->SensorPosition.array[iso2SensorOrderListType->SensorPosition.arrayLen] = (uint8_t)(uint32 + 0);
+ iso2SensorOrderListType->SensorPosition.arrayLen++;
+ } else {
+ /* Second level event (e.g., xsi:type, xsi:nil, ...) */
+ errn = EXI_UNSUPPORTED_EVENT_CODE_CHARACTERISTICS;
+ }
+ }
+ } else {
+ errn = EXI_ERROR_OUT_OF_BOUNDS;
+ }
+ if(errn == 0) {
+ /* valid EE for simple element START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorPosition) ? */
+ errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
+ if(eventCode == 0) {
+ grammarID = 750;
+ } else {
+ errn = EXI_DEVIANT_SUPPORT_NOT_DEPLOYED; /* or also typecast and nillable */
+ }
+ }
+ break;
+ case 1:
+ done = 1;
+ grammarID = 4;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 750:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorPosition), END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ if (iso2SensorOrderListType->SensorPosition.arrayLen < iso2SensorOrderListType_SensorPosition_ARRAY_SIZE) {
+ /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
+ errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
+ if(errn == 0) {
+ if(eventCode == 0) {
+ errn = decodeNBitUnsignedInteger(stream, 8, &(uint32));
+ iso2SensorOrderListType->SensorPosition.array[iso2SensorOrderListType->SensorPosition.arrayLen] = (uint8_t)(uint32 + 0);
+ iso2SensorOrderListType->SensorPosition.arrayLen++;
+ } else {
+ /* Second level event (e.g., xsi:type, xsi:nil, ...) */
+ errn = EXI_UNSUPPORTED_EVENT_CODE_CHARACTERISTICS;
+ }
+ }
+ } else {
+ errn = EXI_ERROR_OUT_OF_BOUNDS;
+ }
+ if(errn == 0) {
+ /* valid EE for simple element START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorPosition) ? */
+ errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
+ if(eventCode == 0) {
+ grammarID = 751;
+ } else {
+ errn = EXI_DEVIANT_SUPPORT_NOT_DEPLOYED; /* or also typecast and nillable */
+ }
+ }
+ break;
+ case 1:
+ done = 1;
+ grammarID = 4;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 751:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorPosition), END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ if (iso2SensorOrderListType->SensorPosition.arrayLen < iso2SensorOrderListType_SensorPosition_ARRAY_SIZE) {
+ /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
+ errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
+ if(errn == 0) {
+ if(eventCode == 0) {
+ errn = decodeNBitUnsignedInteger(stream, 8, &(uint32));
+ iso2SensorOrderListType->SensorPosition.array[iso2SensorOrderListType->SensorPosition.arrayLen] = (uint8_t)(uint32 + 0);
+ iso2SensorOrderListType->SensorPosition.arrayLen++;
+ } else {
+ /* Second level event (e.g., xsi:type, xsi:nil, ...) */
+ errn = EXI_UNSUPPORTED_EVENT_CODE_CHARACTERISTICS;
+ }
+ }
+ } else {
+ errn = EXI_ERROR_OUT_OF_BOUNDS;
+ }
+ if(errn == 0) {
+ /* valid EE for simple element START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorPosition) ? */
+ errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
+ if(eventCode == 0) {
+ grammarID = 752;
+ } else {
+ errn = EXI_DEVIANT_SUPPORT_NOT_DEPLOYED; /* or also typecast and nillable */
+ }
+ }
+ break;
+ case 1:
+ done = 1;
+ grammarID = 4;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 752:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorPosition), END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ if (iso2SensorOrderListType->SensorPosition.arrayLen < iso2SensorOrderListType_SensorPosition_ARRAY_SIZE) {
+ /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
+ errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
+ if(errn == 0) {
+ if(eventCode == 0) {
+ errn = decodeNBitUnsignedInteger(stream, 8, &(uint32));
+ iso2SensorOrderListType->SensorPosition.array[iso2SensorOrderListType->SensorPosition.arrayLen] = (uint8_t)(uint32 + 0);
+ iso2SensorOrderListType->SensorPosition.arrayLen++;
+ } else {
+ /* Second level event (e.g., xsi:type, xsi:nil, ...) */
+ errn = EXI_UNSUPPORTED_EVENT_CODE_CHARACTERISTICS;
+ }
+ }
+ } else {
+ errn = EXI_ERROR_OUT_OF_BOUNDS;
+ }
+ if(errn == 0) {
+ /* valid EE for simple element START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorPosition) ? */
+ errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
+ if(eventCode == 0) {
+ grammarID = 753;
+ } else {
+ errn = EXI_DEVIANT_SUPPORT_NOT_DEPLOYED; /* or also typecast and nillable */
+ }
+ }
+ break;
+ case 1:
+ done = 1;
+ grammarID = 4;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 753:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorPosition), END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ if (iso2SensorOrderListType->SensorPosition.arrayLen < iso2SensorOrderListType_SensorPosition_ARRAY_SIZE) {
+ /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
+ errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
+ if(errn == 0) {
+ if(eventCode == 0) {
+ errn = decodeNBitUnsignedInteger(stream, 8, &(uint32));
+ iso2SensorOrderListType->SensorPosition.array[iso2SensorOrderListType->SensorPosition.arrayLen] = (uint8_t)(uint32 + 0);
+ iso2SensorOrderListType->SensorPosition.arrayLen++;
+ } else {
+ /* Second level event (e.g., xsi:type, xsi:nil, ...) */
+ errn = EXI_UNSUPPORTED_EVENT_CODE_CHARACTERISTICS;
+ }
+ }
+ } else {
+ errn = EXI_ERROR_OUT_OF_BOUNDS;
+ }
+ if(errn == 0) {
+ /* valid EE for simple element START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorPosition) ? */
+ errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
+ if(eventCode == 0) {
+ grammarID = 754;
+ } else {
+ errn = EXI_DEVIANT_SUPPORT_NOT_DEPLOYED; /* or also typecast and nillable */
+ }
+ }
+ break;
+ case 1:
+ done = 1;
+ grammarID = 4;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 754:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorPosition), END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ if (iso2SensorOrderListType->SensorPosition.arrayLen < iso2SensorOrderListType_SensorPosition_ARRAY_SIZE) {
+ /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
+ errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
+ if(errn == 0) {
+ if(eventCode == 0) {
+ errn = decodeNBitUnsignedInteger(stream, 8, &(uint32));
+ iso2SensorOrderListType->SensorPosition.array[iso2SensorOrderListType->SensorPosition.arrayLen] = (uint8_t)(uint32 + 0);
+ iso2SensorOrderListType->SensorPosition.arrayLen++;
+ } else {
+ /* Second level event (e.g., xsi:type, xsi:nil, ...) */
+ errn = EXI_UNSUPPORTED_EVENT_CODE_CHARACTERISTICS;
+ }
+ }
+ } else {
+ errn = EXI_ERROR_OUT_OF_BOUNDS;
+ }
+ if(errn == 0) {
+ /* valid EE for simple element START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorPosition) ? */
+ errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
+ if(eventCode == 0) {
+ grammarID = 755;
+ } else {
+ errn = EXI_DEVIANT_SUPPORT_NOT_DEPLOYED; /* or also typecast and nillable */
+ }
+ }
+ break;
+ case 1:
+ done = 1;
+ grammarID = 4;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 755:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorPosition), END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ if (iso2SensorOrderListType->SensorPosition.arrayLen < iso2SensorOrderListType_SensorPosition_ARRAY_SIZE) {
+ /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
+ errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
+ if(errn == 0) {
+ if(eventCode == 0) {
+ errn = decodeNBitUnsignedInteger(stream, 8, &(uint32));
+ iso2SensorOrderListType->SensorPosition.array[iso2SensorOrderListType->SensorPosition.arrayLen] = (uint8_t)(uint32 + 0);
+ iso2SensorOrderListType->SensorPosition.arrayLen++;
+ } else {
+ /* Second level event (e.g., xsi:type, xsi:nil, ...) */
+ errn = EXI_UNSUPPORTED_EVENT_CODE_CHARACTERISTICS;
+ }
+ }
+ } else {
+ errn = EXI_ERROR_OUT_OF_BOUNDS;
+ }
+ if(errn == 0) {
+ /* valid EE for simple element START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorPosition) ? */
+ errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
+ if(eventCode == 0) {
+ grammarID = 756;
+ } else {
+ errn = EXI_DEVIANT_SUPPORT_NOT_DEPLOYED; /* or also typecast and nillable */
+ }
+ }
+ break;
+ case 1:
+ done = 1;
+ grammarID = 4;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 756:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorPosition), END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ if (iso2SensorOrderListType->SensorPosition.arrayLen < iso2SensorOrderListType_SensorPosition_ARRAY_SIZE) {
+ /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
+ errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
+ if(errn == 0) {
+ if(eventCode == 0) {
+ errn = decodeNBitUnsignedInteger(stream, 8, &(uint32));
+ iso2SensorOrderListType->SensorPosition.array[iso2SensorOrderListType->SensorPosition.arrayLen] = (uint8_t)(uint32 + 0);
+ iso2SensorOrderListType->SensorPosition.arrayLen++;
+ } else {
+ /* Second level event (e.g., xsi:type, xsi:nil, ...) */
+ errn = EXI_UNSUPPORTED_EVENT_CODE_CHARACTERISTICS;
+ }
+ }
+ } else {
+ errn = EXI_ERROR_OUT_OF_BOUNDS;
+ }
+ if(errn == 0) {
+ /* valid EE for simple element START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorPosition) ? */
+ errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
+ if(eventCode == 0) {
+ grammarID = 757;
+ } else {
+ errn = EXI_DEVIANT_SUPPORT_NOT_DEPLOYED; /* or also typecast and nillable */
+ }
+ }
+ break;
+ case 1:
+ done = 1;
+ grammarID = 4;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 757:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorPosition), END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ if (iso2SensorOrderListType->SensorPosition.arrayLen < iso2SensorOrderListType_SensorPosition_ARRAY_SIZE) {
+ /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
+ errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
+ if(errn == 0) {
+ if(eventCode == 0) {
+ errn = decodeNBitUnsignedInteger(stream, 8, &(uint32));
+ iso2SensorOrderListType->SensorPosition.array[iso2SensorOrderListType->SensorPosition.arrayLen] = (uint8_t)(uint32 + 0);
+ iso2SensorOrderListType->SensorPosition.arrayLen++;
+ } else {
+ /* Second level event (e.g., xsi:type, xsi:nil, ...) */
+ errn = EXI_UNSUPPORTED_EVENT_CODE_CHARACTERISTICS;
+ }
+ }
+ } else {
+ errn = EXI_ERROR_OUT_OF_BOUNDS;
+ }
+ if(errn == 0) {
+ /* valid EE for simple element START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorPosition) ? */
+ errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
+ if(eventCode == 0) {
+ grammarID = 758;
+ } else {
+ errn = EXI_DEVIANT_SUPPORT_NOT_DEPLOYED; /* or also typecast and nillable */
+ }
+ }
+ break;
+ case 1:
+ done = 1;
+ grammarID = 4;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 758:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorPosition), END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ if (iso2SensorOrderListType->SensorPosition.arrayLen < iso2SensorOrderListType_SensorPosition_ARRAY_SIZE) {
+ /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
+ errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
+ if(errn == 0) {
+ if(eventCode == 0) {
+ errn = decodeNBitUnsignedInteger(stream, 8, &(uint32));
+ iso2SensorOrderListType->SensorPosition.array[iso2SensorOrderListType->SensorPosition.arrayLen] = (uint8_t)(uint32 + 0);
+ iso2SensorOrderListType->SensorPosition.arrayLen++;
+ } else {
+ /* Second level event (e.g., xsi:type, xsi:nil, ...) */
+ errn = EXI_UNSUPPORTED_EVENT_CODE_CHARACTERISTICS;
+ }
+ }
+ } else {
+ errn = EXI_ERROR_OUT_OF_BOUNDS;
+ }
+ if(errn == 0) {
+ /* valid EE for simple element START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorPosition) ? */
+ errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
+ if(eventCode == 0) {
+ grammarID = 759;
+ } else {
+ errn = EXI_DEVIANT_SUPPORT_NOT_DEPLOYED; /* or also typecast and nillable */
+ }
+ }
+ break;
+ case 1:
+ done = 1;
+ grammarID = 4;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 759:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorPosition), END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ if (iso2SensorOrderListType->SensorPosition.arrayLen < iso2SensorOrderListType_SensorPosition_ARRAY_SIZE) {
+ /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
+ errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
+ if(errn == 0) {
+ if(eventCode == 0) {
+ errn = decodeNBitUnsignedInteger(stream, 8, &(uint32));
+ iso2SensorOrderListType->SensorPosition.array[iso2SensorOrderListType->SensorPosition.arrayLen] = (uint8_t)(uint32 + 0);
+ iso2SensorOrderListType->SensorPosition.arrayLen++;
+ } else {
+ /* Second level event (e.g., xsi:type, xsi:nil, ...) */
+ errn = EXI_UNSUPPORTED_EVENT_CODE_CHARACTERISTICS;
+ }
+ }
+ } else {
+ errn = EXI_ERROR_OUT_OF_BOUNDS;
+ }
+ if(errn == 0) {
+ /* valid EE for simple element START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorPosition) ? */
+ errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
+ if(eventCode == 0) {
+ grammarID = 760;
+ } else {
+ errn = EXI_DEVIANT_SUPPORT_NOT_DEPLOYED; /* or also typecast and nillable */
+ }
+ }
+ break;
+ case 1:
+ done = 1;
+ grammarID = 4;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 760:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorPosition), END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ if (iso2SensorOrderListType->SensorPosition.arrayLen < iso2SensorOrderListType_SensorPosition_ARRAY_SIZE) {
+ /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
+ errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
+ if(errn == 0) {
+ if(eventCode == 0) {
+ errn = decodeNBitUnsignedInteger(stream, 8, &(uint32));
+ iso2SensorOrderListType->SensorPosition.array[iso2SensorOrderListType->SensorPosition.arrayLen] = (uint8_t)(uint32 + 0);
+ iso2SensorOrderListType->SensorPosition.arrayLen++;
+ } else {
+ /* Second level event (e.g., xsi:type, xsi:nil, ...) */
+ errn = EXI_UNSUPPORTED_EVENT_CODE_CHARACTERISTICS;
+ }
+ }
+ } else {
+ errn = EXI_ERROR_OUT_OF_BOUNDS;
+ }
+ if(errn == 0) {
+ /* valid EE for simple element START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorPosition) ? */
+ errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
+ if(eventCode == 0) {
+ grammarID = 761;
+ } else {
+ errn = EXI_DEVIANT_SUPPORT_NOT_DEPLOYED; /* or also typecast and nillable */
+ }
+ }
+ break;
+ case 1:
+ done = 1;
+ grammarID = 4;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 761:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorPosition), END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ if (iso2SensorOrderListType->SensorPosition.arrayLen < iso2SensorOrderListType_SensorPosition_ARRAY_SIZE) {
+ /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
+ errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
+ if(errn == 0) {
+ if(eventCode == 0) {
+ errn = decodeNBitUnsignedInteger(stream, 8, &(uint32));
+ iso2SensorOrderListType->SensorPosition.array[iso2SensorOrderListType->SensorPosition.arrayLen] = (uint8_t)(uint32 + 0);
+ iso2SensorOrderListType->SensorPosition.arrayLen++;
+ } else {
+ /* Second level event (e.g., xsi:type, xsi:nil, ...) */
+ errn = EXI_UNSUPPORTED_EVENT_CODE_CHARACTERISTICS;
+ }
+ }
+ } else {
+ errn = EXI_ERROR_OUT_OF_BOUNDS;
+ }
+ if(errn == 0) {
+ /* valid EE for simple element START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorPosition) ? */
+ errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
+ if(eventCode == 0) {
+ grammarID = 762;
+ } else {
+ errn = EXI_DEVIANT_SUPPORT_NOT_DEPLOYED; /* or also typecast and nillable */
+ }
+ }
+ break;
+ case 1:
+ done = 1;
+ grammarID = 4;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 762:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorPosition), END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ if (iso2SensorOrderListType->SensorPosition.arrayLen < iso2SensorOrderListType_SensorPosition_ARRAY_SIZE) {
+ /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
+ errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
+ if(errn == 0) {
+ if(eventCode == 0) {
+ errn = decodeNBitUnsignedInteger(stream, 8, &(uint32));
+ iso2SensorOrderListType->SensorPosition.array[iso2SensorOrderListType->SensorPosition.arrayLen] = (uint8_t)(uint32 + 0);
+ iso2SensorOrderListType->SensorPosition.arrayLen++;
+ } else {
+ /* Second level event (e.g., xsi:type, xsi:nil, ...) */
+ errn = EXI_UNSUPPORTED_EVENT_CODE_CHARACTERISTICS;
+ }
+ }
+ } else {
+ errn = EXI_ERROR_OUT_OF_BOUNDS;
+ }
+ if(errn == 0) {
+ /* valid EE for simple element START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorPosition) ? */
+ errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
+ if(eventCode == 0) {
+ grammarID = 763;
+ } else {
+ errn = EXI_DEVIANT_SUPPORT_NOT_DEPLOYED; /* or also typecast and nillable */
+ }
+ }
+ break;
+ case 1:
+ done = 1;
+ grammarID = 4;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 763:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorPosition), END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ if (iso2SensorOrderListType->SensorPosition.arrayLen < iso2SensorOrderListType_SensorPosition_ARRAY_SIZE) {
+ /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
+ errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
+ if(errn == 0) {
+ if(eventCode == 0) {
+ errn = decodeNBitUnsignedInteger(stream, 8, &(uint32));
+ iso2SensorOrderListType->SensorPosition.array[iso2SensorOrderListType->SensorPosition.arrayLen] = (uint8_t)(uint32 + 0);
+ iso2SensorOrderListType->SensorPosition.arrayLen++;
+ } else {
+ /* Second level event (e.g., xsi:type, xsi:nil, ...) */
+ errn = EXI_UNSUPPORTED_EVENT_CODE_CHARACTERISTICS;
+ }
+ }
+ } else {
+ errn = EXI_ERROR_OUT_OF_BOUNDS;
+ }
+ if(errn == 0) {
+ /* valid EE for simple element START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorPosition) ? */
+ errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
+ if(eventCode == 0) {
+ grammarID = 764;
+ } else {
+ errn = EXI_DEVIANT_SUPPORT_NOT_DEPLOYED; /* or also typecast and nillable */
+ }
+ }
+ break;
+ case 1:
+ done = 1;
+ grammarID = 4;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 764:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorPosition), END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ if (iso2SensorOrderListType->SensorPosition.arrayLen < iso2SensorOrderListType_SensorPosition_ARRAY_SIZE) {
+ /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
+ errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
+ if(errn == 0) {
+ if(eventCode == 0) {
+ errn = decodeNBitUnsignedInteger(stream, 8, &(uint32));
+ iso2SensorOrderListType->SensorPosition.array[iso2SensorOrderListType->SensorPosition.arrayLen] = (uint8_t)(uint32 + 0);
+ iso2SensorOrderListType->SensorPosition.arrayLen++;
+ } else {
+ /* Second level event (e.g., xsi:type, xsi:nil, ...) */
+ errn = EXI_UNSUPPORTED_EVENT_CODE_CHARACTERISTICS;
+ }
+ }
+ } else {
+ errn = EXI_ERROR_OUT_OF_BOUNDS;
+ }
+ if(errn == 0) {
+ /* valid EE for simple element START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorPosition) ? */
+ errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
+ if(eventCode == 0) {
+ grammarID = 765;
+ } else {
+ errn = EXI_DEVIANT_SUPPORT_NOT_DEPLOYED; /* or also typecast and nillable */
+ }
+ }
+ break;
+ case 1:
+ done = 1;
+ grammarID = 4;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 765:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorPosition), END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ if (iso2SensorOrderListType->SensorPosition.arrayLen < iso2SensorOrderListType_SensorPosition_ARRAY_SIZE) {
+ /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
+ errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
+ if(errn == 0) {
+ if(eventCode == 0) {
+ errn = decodeNBitUnsignedInteger(stream, 8, &(uint32));
+ iso2SensorOrderListType->SensorPosition.array[iso2SensorOrderListType->SensorPosition.arrayLen] = (uint8_t)(uint32 + 0);
+ iso2SensorOrderListType->SensorPosition.arrayLen++;
+ } else {
+ /* Second level event (e.g., xsi:type, xsi:nil, ...) */
+ errn = EXI_UNSUPPORTED_EVENT_CODE_CHARACTERISTICS;
+ }
+ }
+ } else {
+ errn = EXI_ERROR_OUT_OF_BOUNDS;
+ }
+ if(errn == 0) {
+ /* valid EE for simple element START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorPosition) ? */
+ errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
+ if(eventCode == 0) {
+ grammarID = 766;
+ } else {
+ errn = EXI_DEVIANT_SUPPORT_NOT_DEPLOYED; /* or also typecast and nillable */
+ }
+ }
+ break;
+ case 1:
+ done = 1;
+ grammarID = 4;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 766:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorPosition), END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ if (iso2SensorOrderListType->SensorPosition.arrayLen < iso2SensorOrderListType_SensorPosition_ARRAY_SIZE) {
+ /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
+ errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
+ if(errn == 0) {
+ if(eventCode == 0) {
+ errn = decodeNBitUnsignedInteger(stream, 8, &(uint32));
+ iso2SensorOrderListType->SensorPosition.array[iso2SensorOrderListType->SensorPosition.arrayLen] = (uint8_t)(uint32 + 0);
+ iso2SensorOrderListType->SensorPosition.arrayLen++;
+ } else {
+ /* Second level event (e.g., xsi:type, xsi:nil, ...) */
+ errn = EXI_UNSUPPORTED_EVENT_CODE_CHARACTERISTICS;
+ }
+ }
+ } else {
+ errn = EXI_ERROR_OUT_OF_BOUNDS;
+ }
+ if(errn == 0) {
+ /* valid EE for simple element START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorPosition) ? */
+ errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
+ if(eventCode == 0) {
+ grammarID = 767;
+ } else {
+ errn = EXI_DEVIANT_SUPPORT_NOT_DEPLOYED; /* or also typecast and nillable */
+ }
+ }
+ break;
+ case 1:
+ done = 1;
+ grammarID = 4;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 767:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorPosition), END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ if (iso2SensorOrderListType->SensorPosition.arrayLen < iso2SensorOrderListType_SensorPosition_ARRAY_SIZE) {
+ /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
+ errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
+ if(errn == 0) {
+ if(eventCode == 0) {
+ errn = decodeNBitUnsignedInteger(stream, 8, &(uint32));
+ iso2SensorOrderListType->SensorPosition.array[iso2SensorOrderListType->SensorPosition.arrayLen] = (uint8_t)(uint32 + 0);
+ iso2SensorOrderListType->SensorPosition.arrayLen++;
+ } else {
+ /* Second level event (e.g., xsi:type, xsi:nil, ...) */
+ errn = EXI_UNSUPPORTED_EVENT_CODE_CHARACTERISTICS;
+ }
+ }
+ } else {
+ errn = EXI_ERROR_OUT_OF_BOUNDS;
+ }
+ if(errn == 0) {
+ /* valid EE for simple element START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorPosition) ? */
+ errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
+ if(eventCode == 0) {
+ grammarID = 768;
+ } else {
+ errn = EXI_DEVIANT_SUPPORT_NOT_DEPLOYED; /* or also typecast and nillable */
+ }
+ }
+ break;
+ case 1:
+ done = 1;
+ grammarID = 4;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 768:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorPosition), END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ if (iso2SensorOrderListType->SensorPosition.arrayLen < iso2SensorOrderListType_SensorPosition_ARRAY_SIZE) {
+ /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
+ errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
+ if(errn == 0) {
+ if(eventCode == 0) {
+ errn = decodeNBitUnsignedInteger(stream, 8, &(uint32));
+ iso2SensorOrderListType->SensorPosition.array[iso2SensorOrderListType->SensorPosition.arrayLen] = (uint8_t)(uint32 + 0);
+ iso2SensorOrderListType->SensorPosition.arrayLen++;
+ } else {
+ /* Second level event (e.g., xsi:type, xsi:nil, ...) */
+ errn = EXI_UNSUPPORTED_EVENT_CODE_CHARACTERISTICS;
+ }
+ }
+ } else {
+ errn = EXI_ERROR_OUT_OF_BOUNDS;
+ }
+ if(errn == 0) {
+ /* valid EE for simple element START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorPosition) ? */
+ errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
+ if(eventCode == 0) {
+ grammarID = 769;
+ } else {
+ errn = EXI_DEVIANT_SUPPORT_NOT_DEPLOYED; /* or also typecast and nillable */
+ }
+ }
+ break;
+ case 1:
+ done = 1;
+ grammarID = 4;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 769:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorPosition), END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ if (iso2SensorOrderListType->SensorPosition.arrayLen < iso2SensorOrderListType_SensorPosition_ARRAY_SIZE) {
+ /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
+ errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
+ if(errn == 0) {
+ if(eventCode == 0) {
+ errn = decodeNBitUnsignedInteger(stream, 8, &(uint32));
+ iso2SensorOrderListType->SensorPosition.array[iso2SensorOrderListType->SensorPosition.arrayLen] = (uint8_t)(uint32 + 0);
+ iso2SensorOrderListType->SensorPosition.arrayLen++;
+ } else {
+ /* Second level event (e.g., xsi:type, xsi:nil, ...) */
+ errn = EXI_UNSUPPORTED_EVENT_CODE_CHARACTERISTICS;
+ }
+ }
+ } else {
+ errn = EXI_ERROR_OUT_OF_BOUNDS;
+ }
+ if(errn == 0) {
+ /* valid EE for simple element START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorPosition) ? */
+ errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
+ if(eventCode == 0) {
+ grammarID = 770;
+ } else {
+ errn = EXI_DEVIANT_SUPPORT_NOT_DEPLOYED; /* or also typecast and nillable */
+ }
+ }
+ break;
+ case 1:
+ done = 1;
+ grammarID = 4;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 770:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorPosition), END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ if (iso2SensorOrderListType->SensorPosition.arrayLen < iso2SensorOrderListType_SensorPosition_ARRAY_SIZE) {
+ /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
+ errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
+ if(errn == 0) {
+ if(eventCode == 0) {
+ errn = decodeNBitUnsignedInteger(stream, 8, &(uint32));
+ iso2SensorOrderListType->SensorPosition.array[iso2SensorOrderListType->SensorPosition.arrayLen] = (uint8_t)(uint32 + 0);
+ iso2SensorOrderListType->SensorPosition.arrayLen++;
+ } else {
+ /* Second level event (e.g., xsi:type, xsi:nil, ...) */
+ errn = EXI_UNSUPPORTED_EVENT_CODE_CHARACTERISTICS;
+ }
+ }
+ } else {
+ errn = EXI_ERROR_OUT_OF_BOUNDS;
+ }
+ if(errn == 0) {
+ /* valid EE for simple element START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorPosition) ? */
+ errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
+ if(eventCode == 0) {
+ grammarID = 771;
+ } else {
+ errn = EXI_DEVIANT_SUPPORT_NOT_DEPLOYED; /* or also typecast and nillable */
+ }
+ }
+ break;
+ case 1:
+ done = 1;
+ grammarID = 4;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 771:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorPosition), END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ if (iso2SensorOrderListType->SensorPosition.arrayLen < iso2SensorOrderListType_SensorPosition_ARRAY_SIZE) {
+ /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
+ errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
+ if(errn == 0) {
+ if(eventCode == 0) {
+ errn = decodeNBitUnsignedInteger(stream, 8, &(uint32));
+ iso2SensorOrderListType->SensorPosition.array[iso2SensorOrderListType->SensorPosition.arrayLen] = (uint8_t)(uint32 + 0);
+ iso2SensorOrderListType->SensorPosition.arrayLen++;
+ } else {
+ /* Second level event (e.g., xsi:type, xsi:nil, ...) */
+ errn = EXI_UNSUPPORTED_EVENT_CODE_CHARACTERISTICS;
+ }
+ }
+ } else {
+ errn = EXI_ERROR_OUT_OF_BOUNDS;
+ }
+ if(errn == 0) {
+ /* valid EE for simple element START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorPosition) ? */
+ errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
+ if(eventCode == 0) {
+ grammarID = 772;
+ } else {
+ errn = EXI_DEVIANT_SUPPORT_NOT_DEPLOYED; /* or also typecast and nillable */
+ }
+ }
+ break;
+ case 1:
+ done = 1;
+ grammarID = 4;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 772:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorPosition), END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ if (iso2SensorOrderListType->SensorPosition.arrayLen < iso2SensorOrderListType_SensorPosition_ARRAY_SIZE) {
+ /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
+ errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
+ if(errn == 0) {
+ if(eventCode == 0) {
+ errn = decodeNBitUnsignedInteger(stream, 8, &(uint32));
+ iso2SensorOrderListType->SensorPosition.array[iso2SensorOrderListType->SensorPosition.arrayLen] = (uint8_t)(uint32 + 0);
+ iso2SensorOrderListType->SensorPosition.arrayLen++;
+ } else {
+ /* Second level event (e.g., xsi:type, xsi:nil, ...) */
+ errn = EXI_UNSUPPORTED_EVENT_CODE_CHARACTERISTICS;
+ }
+ }
+ } else {
+ errn = EXI_ERROR_OUT_OF_BOUNDS;
+ }
+ if(errn == 0) {
+ /* valid EE for simple element START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorPosition) ? */
+ errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
+ if(eventCode == 0) {
+ grammarID = 773;
+ } else {
+ errn = EXI_DEVIANT_SUPPORT_NOT_DEPLOYED; /* or also typecast and nillable */
+ }
+ }
+ break;
+ case 1:
+ done = 1;
+ grammarID = 4;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 773:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorPosition), END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ if (iso2SensorOrderListType->SensorPosition.arrayLen < iso2SensorOrderListType_SensorPosition_ARRAY_SIZE) {
+ /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
+ errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
+ if(errn == 0) {
+ if(eventCode == 0) {
+ errn = decodeNBitUnsignedInteger(stream, 8, &(uint32));
+ iso2SensorOrderListType->SensorPosition.array[iso2SensorOrderListType->SensorPosition.arrayLen] = (uint8_t)(uint32 + 0);
+ iso2SensorOrderListType->SensorPosition.arrayLen++;
+ } else {
+ /* Second level event (e.g., xsi:type, xsi:nil, ...) */
+ errn = EXI_UNSUPPORTED_EVENT_CODE_CHARACTERISTICS;
+ }
+ }
+ } else {
+ errn = EXI_ERROR_OUT_OF_BOUNDS;
+ }
+ if(errn == 0) {
+ /* valid EE for simple element START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorPosition) ? */
+ errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
+ if(eventCode == 0) {
+ grammarID = 774;
+ } else {
+ errn = EXI_DEVIANT_SUPPORT_NOT_DEPLOYED; /* or also typecast and nillable */
+ }
+ }
+ break;
+ case 1:
+ done = 1;
+ grammarID = 4;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 774:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorPosition), END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ if (iso2SensorOrderListType->SensorPosition.arrayLen < iso2SensorOrderListType_SensorPosition_ARRAY_SIZE) {
+ /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
+ errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
+ if(errn == 0) {
+ if(eventCode == 0) {
+ errn = decodeNBitUnsignedInteger(stream, 8, &(uint32));
+ iso2SensorOrderListType->SensorPosition.array[iso2SensorOrderListType->SensorPosition.arrayLen] = (uint8_t)(uint32 + 0);
+ iso2SensorOrderListType->SensorPosition.arrayLen++;
+ } else {
+ /* Second level event (e.g., xsi:type, xsi:nil, ...) */
+ errn = EXI_UNSUPPORTED_EVENT_CODE_CHARACTERISTICS;
+ }
+ }
+ } else {
+ errn = EXI_ERROR_OUT_OF_BOUNDS;
+ }
+ if(errn == 0) {
+ /* valid EE for simple element START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorPosition) ? */
+ errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
+ if(eventCode == 0) {
+ grammarID = 775;
+ } else {
+ errn = EXI_DEVIANT_SUPPORT_NOT_DEPLOYED; /* or also typecast and nillable */
+ }
+ }
+ break;
+ case 1:
+ done = 1;
+ grammarID = 4;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 775:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorPosition), END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ if (iso2SensorOrderListType->SensorPosition.arrayLen < iso2SensorOrderListType_SensorPosition_ARRAY_SIZE) {
+ /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
+ errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
+ if(errn == 0) {
+ if(eventCode == 0) {
+ errn = decodeNBitUnsignedInteger(stream, 8, &(uint32));
+ iso2SensorOrderListType->SensorPosition.array[iso2SensorOrderListType->SensorPosition.arrayLen] = (uint8_t)(uint32 + 0);
+ iso2SensorOrderListType->SensorPosition.arrayLen++;
+ } else {
+ /* Second level event (e.g., xsi:type, xsi:nil, ...) */
+ errn = EXI_UNSUPPORTED_EVENT_CODE_CHARACTERISTICS;
+ }
+ }
+ } else {
+ errn = EXI_ERROR_OUT_OF_BOUNDS;
+ }
+ if(errn == 0) {
+ /* valid EE for simple element START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorPosition) ? */
+ errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
+ if(eventCode == 0) {
+ grammarID = 776;
+ } else {
+ errn = EXI_DEVIANT_SUPPORT_NOT_DEPLOYED; /* or also typecast and nillable */
+ }
+ }
+ break;
+ case 1:
+ done = 1;
+ grammarID = 4;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 776:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorPosition), END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ if (iso2SensorOrderListType->SensorPosition.arrayLen < iso2SensorOrderListType_SensorPosition_ARRAY_SIZE) {
+ /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
+ errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
+ if(errn == 0) {
+ if(eventCode == 0) {
+ errn = decodeNBitUnsignedInteger(stream, 8, &(uint32));
+ iso2SensorOrderListType->SensorPosition.array[iso2SensorOrderListType->SensorPosition.arrayLen] = (uint8_t)(uint32 + 0);
+ iso2SensorOrderListType->SensorPosition.arrayLen++;
+ } else {
+ /* Second level event (e.g., xsi:type, xsi:nil, ...) */
+ errn = EXI_UNSUPPORTED_EVENT_CODE_CHARACTERISTICS;
+ }
+ }
+ } else {
+ errn = EXI_ERROR_OUT_OF_BOUNDS;
+ }
+ if(errn == 0) {
+ /* valid EE for simple element START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorPosition) ? */
+ errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
+ if(eventCode == 0) {
+ grammarID = 777;
+ } else {
+ errn = EXI_DEVIANT_SUPPORT_NOT_DEPLOYED; /* or also typecast and nillable */
+ }
+ }
+ break;
+ case 1:
+ done = 1;
+ grammarID = 4;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 777:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorPosition), END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ if (iso2SensorOrderListType->SensorPosition.arrayLen < iso2SensorOrderListType_SensorPosition_ARRAY_SIZE) {
+ /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
+ errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
+ if(errn == 0) {
+ if(eventCode == 0) {
+ errn = decodeNBitUnsignedInteger(stream, 8, &(uint32));
+ iso2SensorOrderListType->SensorPosition.array[iso2SensorOrderListType->SensorPosition.arrayLen] = (uint8_t)(uint32 + 0);
+ iso2SensorOrderListType->SensorPosition.arrayLen++;
+ } else {
+ /* Second level event (e.g., xsi:type, xsi:nil, ...) */
+ errn = EXI_UNSUPPORTED_EVENT_CODE_CHARACTERISTICS;
+ }
+ }
+ } else {
+ errn = EXI_ERROR_OUT_OF_BOUNDS;
+ }
+ if(errn == 0) {
+ /* valid EE for simple element START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorPosition) ? */
+ errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
+ if(eventCode == 0) {
+ grammarID = 778;
+ } else {
+ errn = EXI_DEVIANT_SUPPORT_NOT_DEPLOYED; /* or also typecast and nillable */
+ }
+ }
+ break;
+ case 1:
+ done = 1;
+ grammarID = 4;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 778:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorPosition), END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ if (iso2SensorOrderListType->SensorPosition.arrayLen < iso2SensorOrderListType_SensorPosition_ARRAY_SIZE) {
+ /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
+ errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
+ if(errn == 0) {
+ if(eventCode == 0) {
+ errn = decodeNBitUnsignedInteger(stream, 8, &(uint32));
+ iso2SensorOrderListType->SensorPosition.array[iso2SensorOrderListType->SensorPosition.arrayLen] = (uint8_t)(uint32 + 0);
+ iso2SensorOrderListType->SensorPosition.arrayLen++;
+ } else {
+ /* Second level event (e.g., xsi:type, xsi:nil, ...) */
+ errn = EXI_UNSUPPORTED_EVENT_CODE_CHARACTERISTICS;
+ }
+ }
+ } else {
+ errn = EXI_ERROR_OUT_OF_BOUNDS;
+ }
+ if(errn == 0) {
+ /* valid EE for simple element START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorPosition) ? */
+ errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
+ if(eventCode == 0) {
+ grammarID = 779;
+ } else {
+ errn = EXI_DEVIANT_SUPPORT_NOT_DEPLOYED; /* or also typecast and nillable */
+ }
+ }
+ break;
+ case 1:
+ done = 1;
+ grammarID = 4;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 779:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorPosition), END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ if (iso2SensorOrderListType->SensorPosition.arrayLen < iso2SensorOrderListType_SensorPosition_ARRAY_SIZE) {
+ /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
+ errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
+ if(errn == 0) {
+ if(eventCode == 0) {
+ errn = decodeNBitUnsignedInteger(stream, 8, &(uint32));
+ iso2SensorOrderListType->SensorPosition.array[iso2SensorOrderListType->SensorPosition.arrayLen] = (uint8_t)(uint32 + 0);
+ iso2SensorOrderListType->SensorPosition.arrayLen++;
+ } else {
+ /* Second level event (e.g., xsi:type, xsi:nil, ...) */
+ errn = EXI_UNSUPPORTED_EVENT_CODE_CHARACTERISTICS;
+ }
+ }
+ } else {
+ errn = EXI_ERROR_OUT_OF_BOUNDS;
+ }
+ if(errn == 0) {
+ /* valid EE for simple element START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorPosition) ? */
+ errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
+ if(eventCode == 0) {
+ grammarID = 780;
+ } else {
+ errn = EXI_DEVIANT_SUPPORT_NOT_DEPLOYED; /* or also typecast and nillable */
+ }
+ }
+ break;
+ case 1:
+ done = 1;
+ grammarID = 4;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 780:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorPosition), END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ if (iso2SensorOrderListType->SensorPosition.arrayLen < iso2SensorOrderListType_SensorPosition_ARRAY_SIZE) {
+ /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
+ errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
+ if(errn == 0) {
+ if(eventCode == 0) {
+ errn = decodeNBitUnsignedInteger(stream, 8, &(uint32));
+ iso2SensorOrderListType->SensorPosition.array[iso2SensorOrderListType->SensorPosition.arrayLen] = (uint8_t)(uint32 + 0);
+ iso2SensorOrderListType->SensorPosition.arrayLen++;
+ } else {
+ /* Second level event (e.g., xsi:type, xsi:nil, ...) */
+ errn = EXI_UNSUPPORTED_EVENT_CODE_CHARACTERISTICS;
+ }
+ }
+ } else {
+ errn = EXI_ERROR_OUT_OF_BOUNDS;
+ }
+ if(errn == 0) {
+ /* valid EE for simple element START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorPosition) ? */
+ errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
+ if(eventCode == 0) {
+ grammarID = 781;
+ } else {
+ errn = EXI_DEVIANT_SUPPORT_NOT_DEPLOYED; /* or also typecast and nillable */
+ }
+ }
+ break;
+ case 1:
+ done = 1;
+ grammarID = 4;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 781:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorPosition), END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ if (iso2SensorOrderListType->SensorPosition.arrayLen < iso2SensorOrderListType_SensorPosition_ARRAY_SIZE) {
+ /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
+ errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
+ if(errn == 0) {
+ if(eventCode == 0) {
+ errn = decodeNBitUnsignedInteger(stream, 8, &(uint32));
+ iso2SensorOrderListType->SensorPosition.array[iso2SensorOrderListType->SensorPosition.arrayLen] = (uint8_t)(uint32 + 0);
+ iso2SensorOrderListType->SensorPosition.arrayLen++;
+ } else {
+ /* Second level event (e.g., xsi:type, xsi:nil, ...) */
+ errn = EXI_UNSUPPORTED_EVENT_CODE_CHARACTERISTICS;
+ }
+ }
+ } else {
+ errn = EXI_ERROR_OUT_OF_BOUNDS;
+ }
+ if(errn == 0) {
+ /* valid EE for simple element START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorPosition) ? */
+ errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
+ if(eventCode == 0) {
+ grammarID = 782;
+ } else {
+ errn = EXI_DEVIANT_SUPPORT_NOT_DEPLOYED; /* or also typecast and nillable */
+ }
+ }
+ break;
+ case 1:
+ done = 1;
+ grammarID = 4;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 782:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorPosition), END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ if (iso2SensorOrderListType->SensorPosition.arrayLen < iso2SensorOrderListType_SensorPosition_ARRAY_SIZE) {
+ /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
+ errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
+ if(errn == 0) {
+ if(eventCode == 0) {
+ errn = decodeNBitUnsignedInteger(stream, 8, &(uint32));
+ iso2SensorOrderListType->SensorPosition.array[iso2SensorOrderListType->SensorPosition.arrayLen] = (uint8_t)(uint32 + 0);
+ iso2SensorOrderListType->SensorPosition.arrayLen++;
+ } else {
+ /* Second level event (e.g., xsi:type, xsi:nil, ...) */
+ errn = EXI_UNSUPPORTED_EVENT_CODE_CHARACTERISTICS;
+ }
+ }
+ } else {
+ errn = EXI_ERROR_OUT_OF_BOUNDS;
+ }
+ if(errn == 0) {
+ /* valid EE for simple element START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorPosition) ? */
+ errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
+ if(eventCode == 0) {
+ grammarID = 783;
+ } else {
+ errn = EXI_DEVIANT_SUPPORT_NOT_DEPLOYED; /* or also typecast and nillable */
+ }
+ }
+ break;
+ case 1:
+ done = 1;
+ grammarID = 4;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 783:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorPosition), END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ if (iso2SensorOrderListType->SensorPosition.arrayLen < iso2SensorOrderListType_SensorPosition_ARRAY_SIZE) {
+ /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
+ errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
+ if(errn == 0) {
+ if(eventCode == 0) {
+ errn = decodeNBitUnsignedInteger(stream, 8, &(uint32));
+ iso2SensorOrderListType->SensorPosition.array[iso2SensorOrderListType->SensorPosition.arrayLen] = (uint8_t)(uint32 + 0);
+ iso2SensorOrderListType->SensorPosition.arrayLen++;
+ } else {
+ /* Second level event (e.g., xsi:type, xsi:nil, ...) */
+ errn = EXI_UNSUPPORTED_EVENT_CODE_CHARACTERISTICS;
+ }
+ }
+ } else {
+ errn = EXI_ERROR_OUT_OF_BOUNDS;
+ }
+ if(errn == 0) {
+ /* valid EE for simple element START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorPosition) ? */
+ errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
+ if(eventCode == 0) {
+ grammarID = 784;
+ } else {
+ errn = EXI_DEVIANT_SUPPORT_NOT_DEPLOYED; /* or also typecast and nillable */
+ }
+ }
+ break;
+ case 1:
+ done = 1;
+ grammarID = 4;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 784:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorPosition), END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ if (iso2SensorOrderListType->SensorPosition.arrayLen < iso2SensorOrderListType_SensorPosition_ARRAY_SIZE) {
+ /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
+ errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
+ if(errn == 0) {
+ if(eventCode == 0) {
+ errn = decodeNBitUnsignedInteger(stream, 8, &(uint32));
+ iso2SensorOrderListType->SensorPosition.array[iso2SensorOrderListType->SensorPosition.arrayLen] = (uint8_t)(uint32 + 0);
+ iso2SensorOrderListType->SensorPosition.arrayLen++;
+ } else {
+ /* Second level event (e.g., xsi:type, xsi:nil, ...) */
+ errn = EXI_UNSUPPORTED_EVENT_CODE_CHARACTERISTICS;
+ }
+ }
+ } else {
+ errn = EXI_ERROR_OUT_OF_BOUNDS;
+ }
+ if(errn == 0) {
+ /* valid EE for simple element START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorPosition) ? */
+ errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
+ if(eventCode == 0) {
+ grammarID = 785;
+ } else {
+ errn = EXI_DEVIANT_SUPPORT_NOT_DEPLOYED; /* or also typecast and nillable */
+ }
+ }
+ break;
+ case 1:
+ done = 1;
+ grammarID = 4;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 785:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorPosition), END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ if (iso2SensorOrderListType->SensorPosition.arrayLen < iso2SensorOrderListType_SensorPosition_ARRAY_SIZE) {
+ /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
+ errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
+ if(errn == 0) {
+ if(eventCode == 0) {
+ errn = decodeNBitUnsignedInteger(stream, 8, &(uint32));
+ iso2SensorOrderListType->SensorPosition.array[iso2SensorOrderListType->SensorPosition.arrayLen] = (uint8_t)(uint32 + 0);
+ iso2SensorOrderListType->SensorPosition.arrayLen++;
+ } else {
+ /* Second level event (e.g., xsi:type, xsi:nil, ...) */
+ errn = EXI_UNSUPPORTED_EVENT_CODE_CHARACTERISTICS;
+ }
+ }
+ } else {
+ errn = EXI_ERROR_OUT_OF_BOUNDS;
+ }
+ if(errn == 0) {
+ /* valid EE for simple element START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorPosition) ? */
+ errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
+ if(eventCode == 0) {
+ grammarID = 786;
+ } else {
+ errn = EXI_DEVIANT_SUPPORT_NOT_DEPLOYED; /* or also typecast and nillable */
+ }
+ }
+ break;
+ case 1:
+ done = 1;
+ grammarID = 4;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 786:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorPosition), END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ if (iso2SensorOrderListType->SensorPosition.arrayLen < iso2SensorOrderListType_SensorPosition_ARRAY_SIZE) {
+ /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
+ errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
+ if(errn == 0) {
+ if(eventCode == 0) {
+ errn = decodeNBitUnsignedInteger(stream, 8, &(uint32));
+ iso2SensorOrderListType->SensorPosition.array[iso2SensorOrderListType->SensorPosition.arrayLen] = (uint8_t)(uint32 + 0);
+ iso2SensorOrderListType->SensorPosition.arrayLen++;
+ } else {
+ /* Second level event (e.g., xsi:type, xsi:nil, ...) */
+ errn = EXI_UNSUPPORTED_EVENT_CODE_CHARACTERISTICS;
+ }
+ }
+ } else {
+ errn = EXI_ERROR_OUT_OF_BOUNDS;
+ }
+ if(errn == 0) {
+ /* valid EE for simple element START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorPosition) ? */
+ errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
+ if(eventCode == 0) {
+ grammarID = 787;
+ } else {
+ errn = EXI_DEVIANT_SUPPORT_NOT_DEPLOYED; /* or also typecast and nillable */
+ }
+ }
+ break;
+ case 1:
+ done = 1;
+ grammarID = 4;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 787:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorPosition), END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ if (iso2SensorOrderListType->SensorPosition.arrayLen < iso2SensorOrderListType_SensorPosition_ARRAY_SIZE) {
+ /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
+ errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
+ if(errn == 0) {
+ if(eventCode == 0) {
+ errn = decodeNBitUnsignedInteger(stream, 8, &(uint32));
+ iso2SensorOrderListType->SensorPosition.array[iso2SensorOrderListType->SensorPosition.arrayLen] = (uint8_t)(uint32 + 0);
+ iso2SensorOrderListType->SensorPosition.arrayLen++;
+ } else {
+ /* Second level event (e.g., xsi:type, xsi:nil, ...) */
+ errn = EXI_UNSUPPORTED_EVENT_CODE_CHARACTERISTICS;
+ }
+ }
+ } else {
+ errn = EXI_ERROR_OUT_OF_BOUNDS;
+ }
+ if(errn == 0) {
+ /* valid EE for simple element START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorPosition) ? */
+ errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
+ if(eventCode == 0) {
+ grammarID = 788;
+ } else {
+ errn = EXI_DEVIANT_SUPPORT_NOT_DEPLOYED; /* or also typecast and nillable */
+ }
+ }
+ break;
+ case 1:
+ done = 1;
+ grammarID = 4;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 788:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorPosition), END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ if (iso2SensorOrderListType->SensorPosition.arrayLen < iso2SensorOrderListType_SensorPosition_ARRAY_SIZE) {
+ /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
+ errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
+ if(errn == 0) {
+ if(eventCode == 0) {
+ errn = decodeNBitUnsignedInteger(stream, 8, &(uint32));
+ iso2SensorOrderListType->SensorPosition.array[iso2SensorOrderListType->SensorPosition.arrayLen] = (uint8_t)(uint32 + 0);
+ iso2SensorOrderListType->SensorPosition.arrayLen++;
+ } else {
+ /* Second level event (e.g., xsi:type, xsi:nil, ...) */
+ errn = EXI_UNSUPPORTED_EVENT_CODE_CHARACTERISTICS;
+ }
+ }
+ } else {
+ errn = EXI_ERROR_OUT_OF_BOUNDS;
+ }
+ if(errn == 0) {
+ /* valid EE for simple element START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorPosition) ? */
+ errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
+ if(eventCode == 0) {
+ grammarID = 789;
+ } else {
+ errn = EXI_DEVIANT_SUPPORT_NOT_DEPLOYED; /* or also typecast and nillable */
+ }
+ }
+ break;
+ case 1:
+ done = 1;
+ grammarID = 4;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 789:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorPosition), END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ if (iso2SensorOrderListType->SensorPosition.arrayLen < iso2SensorOrderListType_SensorPosition_ARRAY_SIZE) {
+ /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
+ errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
+ if(errn == 0) {
+ if(eventCode == 0) {
+ errn = decodeNBitUnsignedInteger(stream, 8, &(uint32));
+ iso2SensorOrderListType->SensorPosition.array[iso2SensorOrderListType->SensorPosition.arrayLen] = (uint8_t)(uint32 + 0);
+ iso2SensorOrderListType->SensorPosition.arrayLen++;
+ } else {
+ /* Second level event (e.g., xsi:type, xsi:nil, ...) */
+ errn = EXI_UNSUPPORTED_EVENT_CODE_CHARACTERISTICS;
+ }
+ }
+ } else {
+ errn = EXI_ERROR_OUT_OF_BOUNDS;
+ }
+ if(errn == 0) {
+ /* valid EE for simple element START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorPosition) ? */
+ errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
+ if(eventCode == 0) {
+ grammarID = 790;
+ } else {
+ errn = EXI_DEVIANT_SUPPORT_NOT_DEPLOYED; /* or also typecast and nillable */
+ }
+ }
+ break;
+ case 1:
+ done = 1;
+ grammarID = 4;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 790:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorPosition), END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ if (iso2SensorOrderListType->SensorPosition.arrayLen < iso2SensorOrderListType_SensorPosition_ARRAY_SIZE) {
+ /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
+ errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
+ if(errn == 0) {
+ if(eventCode == 0) {
+ errn = decodeNBitUnsignedInteger(stream, 8, &(uint32));
+ iso2SensorOrderListType->SensorPosition.array[iso2SensorOrderListType->SensorPosition.arrayLen] = (uint8_t)(uint32 + 0);
+ iso2SensorOrderListType->SensorPosition.arrayLen++;
+ } else {
+ /* Second level event (e.g., xsi:type, xsi:nil, ...) */
+ errn = EXI_UNSUPPORTED_EVENT_CODE_CHARACTERISTICS;
+ }
+ }
+ } else {
+ errn = EXI_ERROR_OUT_OF_BOUNDS;
+ }
+ if(errn == 0) {
+ /* valid EE for simple element START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorPosition) ? */
+ errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
+ if(eventCode == 0) {
+ grammarID = 791;
+ } else {
+ errn = EXI_DEVIANT_SUPPORT_NOT_DEPLOYED; /* or also typecast and nillable */
+ }
+ }
+ break;
+ case 1:
+ done = 1;
+ grammarID = 4;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 791:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorPosition), END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ if (iso2SensorOrderListType->SensorPosition.arrayLen < iso2SensorOrderListType_SensorPosition_ARRAY_SIZE) {
+ /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
+ errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
+ if(errn == 0) {
+ if(eventCode == 0) {
+ errn = decodeNBitUnsignedInteger(stream, 8, &(uint32));
+ iso2SensorOrderListType->SensorPosition.array[iso2SensorOrderListType->SensorPosition.arrayLen] = (uint8_t)(uint32 + 0);
+ iso2SensorOrderListType->SensorPosition.arrayLen++;
+ } else {
+ /* Second level event (e.g., xsi:type, xsi:nil, ...) */
+ errn = EXI_UNSUPPORTED_EVENT_CODE_CHARACTERISTICS;
+ }
+ }
+ } else {
+ errn = EXI_ERROR_OUT_OF_BOUNDS;
+ }
+ if(errn == 0) {
+ /* valid EE for simple element START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorPosition) ? */
+ errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
+ if(eventCode == 0) {
+ grammarID = 792;
+ } else {
+ errn = EXI_DEVIANT_SUPPORT_NOT_DEPLOYED; /* or also typecast and nillable */
+ }
+ }
+ break;
+ case 1:
+ done = 1;
+ grammarID = 4;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 792:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorPosition), END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ if (iso2SensorOrderListType->SensorPosition.arrayLen < iso2SensorOrderListType_SensorPosition_ARRAY_SIZE) {
+ /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
+ errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
+ if(errn == 0) {
+ if(eventCode == 0) {
+ errn = decodeNBitUnsignedInteger(stream, 8, &(uint32));
+ iso2SensorOrderListType->SensorPosition.array[iso2SensorOrderListType->SensorPosition.arrayLen] = (uint8_t)(uint32 + 0);
+ iso2SensorOrderListType->SensorPosition.arrayLen++;
+ } else {
+ /* Second level event (e.g., xsi:type, xsi:nil, ...) */
+ errn = EXI_UNSUPPORTED_EVENT_CODE_CHARACTERISTICS;
+ }
+ }
+ } else {
+ errn = EXI_ERROR_OUT_OF_BOUNDS;
+ }
+ if(errn == 0) {
+ /* valid EE for simple element START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorPosition) ? */
+ errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
+ if(eventCode == 0) {
+ grammarID = 793;
+ } else {
+ errn = EXI_DEVIANT_SUPPORT_NOT_DEPLOYED; /* or also typecast and nillable */
+ }
+ }
+ break;
+ case 1:
+ done = 1;
+ grammarID = 4;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 793:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorPosition), END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ if (iso2SensorOrderListType->SensorPosition.arrayLen < iso2SensorOrderListType_SensorPosition_ARRAY_SIZE) {
+ /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
+ errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
+ if(errn == 0) {
+ if(eventCode == 0) {
+ errn = decodeNBitUnsignedInteger(stream, 8, &(uint32));
+ iso2SensorOrderListType->SensorPosition.array[iso2SensorOrderListType->SensorPosition.arrayLen] = (uint8_t)(uint32 + 0);
+ iso2SensorOrderListType->SensorPosition.arrayLen++;
+ } else {
+ /* Second level event (e.g., xsi:type, xsi:nil, ...) */
+ errn = EXI_UNSUPPORTED_EVENT_CODE_CHARACTERISTICS;
+ }
+ }
+ } else {
+ errn = EXI_ERROR_OUT_OF_BOUNDS;
+ }
+ if(errn == 0) {
+ /* valid EE for simple element START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorPosition) ? */
+ errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
+ if(eventCode == 0) {
+ grammarID = 794;
+ } else {
+ errn = EXI_DEVIANT_SUPPORT_NOT_DEPLOYED; /* or also typecast and nillable */
+ }
+ }
+ break;
+ case 1:
+ done = 1;
+ grammarID = 4;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 794:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorPosition), END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ if (iso2SensorOrderListType->SensorPosition.arrayLen < iso2SensorOrderListType_SensorPosition_ARRAY_SIZE) {
+ /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
+ errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
+ if(errn == 0) {
+ if(eventCode == 0) {
+ errn = decodeNBitUnsignedInteger(stream, 8, &(uint32));
+ iso2SensorOrderListType->SensorPosition.array[iso2SensorOrderListType->SensorPosition.arrayLen] = (uint8_t)(uint32 + 0);
+ iso2SensorOrderListType->SensorPosition.arrayLen++;
+ } else {
+ /* Second level event (e.g., xsi:type, xsi:nil, ...) */
+ errn = EXI_UNSUPPORTED_EVENT_CODE_CHARACTERISTICS;
+ }
+ }
+ } else {
+ errn = EXI_ERROR_OUT_OF_BOUNDS;
+ }
+ if(errn == 0) {
+ /* valid EE for simple element START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorPosition) ? */
+ errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
+ if(eventCode == 0) {
+ grammarID = 795;
+ } else {
+ errn = EXI_DEVIANT_SUPPORT_NOT_DEPLOYED; /* or also typecast and nillable */
+ }
+ }
+ break;
+ case 1:
+ done = 1;
+ grammarID = 4;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 795:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorPosition), END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ if (iso2SensorOrderListType->SensorPosition.arrayLen < iso2SensorOrderListType_SensorPosition_ARRAY_SIZE) {
+ /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
+ errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
+ if(errn == 0) {
+ if(eventCode == 0) {
+ errn = decodeNBitUnsignedInteger(stream, 8, &(uint32));
+ iso2SensorOrderListType->SensorPosition.array[iso2SensorOrderListType->SensorPosition.arrayLen] = (uint8_t)(uint32 + 0);
+ iso2SensorOrderListType->SensorPosition.arrayLen++;
+ } else {
+ /* Second level event (e.g., xsi:type, xsi:nil, ...) */
+ errn = EXI_UNSUPPORTED_EVENT_CODE_CHARACTERISTICS;
+ }
+ }
+ } else {
+ errn = EXI_ERROR_OUT_OF_BOUNDS;
+ }
+ if(errn == 0) {
+ /* valid EE for simple element START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorPosition) ? */
+ errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
+ if(eventCode == 0) {
+ grammarID = 796;
+ } else {
+ errn = EXI_DEVIANT_SUPPORT_NOT_DEPLOYED; /* or also typecast and nillable */
+ }
+ }
+ break;
+ case 1:
+ done = 1;
+ grammarID = 4;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 796:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorPosition), END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ if (iso2SensorOrderListType->SensorPosition.arrayLen < iso2SensorOrderListType_SensorPosition_ARRAY_SIZE) {
+ /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
+ errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
+ if(errn == 0) {
+ if(eventCode == 0) {
+ errn = decodeNBitUnsignedInteger(stream, 8, &(uint32));
+ iso2SensorOrderListType->SensorPosition.array[iso2SensorOrderListType->SensorPosition.arrayLen] = (uint8_t)(uint32 + 0);
+ iso2SensorOrderListType->SensorPosition.arrayLen++;
+ } else {
+ /* Second level event (e.g., xsi:type, xsi:nil, ...) */
+ errn = EXI_UNSUPPORTED_EVENT_CODE_CHARACTERISTICS;
+ }
+ }
+ } else {
+ errn = EXI_ERROR_OUT_OF_BOUNDS;
+ }
+ if(errn == 0) {
+ /* valid EE for simple element START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorPosition) ? */
+ errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
+ if(eventCode == 0) {
+ grammarID = 797;
+ } else {
+ errn = EXI_DEVIANT_SUPPORT_NOT_DEPLOYED; /* or also typecast and nillable */
+ }
+ }
+ break;
+ case 1:
+ done = 1;
+ grammarID = 4;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 797:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorPosition), END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ if (iso2SensorOrderListType->SensorPosition.arrayLen < iso2SensorOrderListType_SensorPosition_ARRAY_SIZE) {
+ /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
+ errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
+ if(errn == 0) {
+ if(eventCode == 0) {
+ errn = decodeNBitUnsignedInteger(stream, 8, &(uint32));
+ iso2SensorOrderListType->SensorPosition.array[iso2SensorOrderListType->SensorPosition.arrayLen] = (uint8_t)(uint32 + 0);
+ iso2SensorOrderListType->SensorPosition.arrayLen++;
+ } else {
+ /* Second level event (e.g., xsi:type, xsi:nil, ...) */
+ errn = EXI_UNSUPPORTED_EVENT_CODE_CHARACTERISTICS;
+ }
+ }
+ } else {
+ errn = EXI_ERROR_OUT_OF_BOUNDS;
+ }
+ if(errn == 0) {
+ /* valid EE for simple element START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorPosition) ? */
+ errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
+ if(eventCode == 0) {
+ grammarID = 798;
+ } else {
+ errn = EXI_DEVIANT_SUPPORT_NOT_DEPLOYED; /* or also typecast and nillable */
+ }
+ }
+ break;
+ case 1:
+ done = 1;
+ grammarID = 4;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 798:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorPosition), END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ if (iso2SensorOrderListType->SensorPosition.arrayLen < iso2SensorOrderListType_SensorPosition_ARRAY_SIZE) {
+ /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
+ errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
+ if(errn == 0) {
+ if(eventCode == 0) {
+ errn = decodeNBitUnsignedInteger(stream, 8, &(uint32));
+ iso2SensorOrderListType->SensorPosition.array[iso2SensorOrderListType->SensorPosition.arrayLen] = (uint8_t)(uint32 + 0);
+ iso2SensorOrderListType->SensorPosition.arrayLen++;
+ } else {
+ /* Second level event (e.g., xsi:type, xsi:nil, ...) */
+ errn = EXI_UNSUPPORTED_EVENT_CODE_CHARACTERISTICS;
+ }
+ }
+ } else {
+ errn = EXI_ERROR_OUT_OF_BOUNDS;
+ }
+ if(errn == 0) {
+ /* valid EE for simple element START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorPosition) ? */
+ errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
+ if(eventCode == 0) {
+ grammarID = 799;
+ } else {
+ errn = EXI_DEVIANT_SUPPORT_NOT_DEPLOYED; /* or also typecast and nillable */
+ }
+ }
+ break;
+ case 1:
+ done = 1;
+ grammarID = 4;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 799:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorPosition), END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ if (iso2SensorOrderListType->SensorPosition.arrayLen < iso2SensorOrderListType_SensorPosition_ARRAY_SIZE) {
+ /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
+ errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
+ if(errn == 0) {
+ if(eventCode == 0) {
+ errn = decodeNBitUnsignedInteger(stream, 8, &(uint32));
+ iso2SensorOrderListType->SensorPosition.array[iso2SensorOrderListType->SensorPosition.arrayLen] = (uint8_t)(uint32 + 0);
+ iso2SensorOrderListType->SensorPosition.arrayLen++;
+ } else {
+ /* Second level event (e.g., xsi:type, xsi:nil, ...) */
+ errn = EXI_UNSUPPORTED_EVENT_CODE_CHARACTERISTICS;
+ }
+ }
+ } else {
+ errn = EXI_ERROR_OUT_OF_BOUNDS;
+ }
+ if(errn == 0) {
+ /* valid EE for simple element START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorPosition) ? */
+ errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
+ if(eventCode == 0) {
+ grammarID = 800;
+ } else {
+ errn = EXI_DEVIANT_SUPPORT_NOT_DEPLOYED; /* or also typecast and nillable */
+ }
+ }
+ break;
+ case 1:
+ done = 1;
+ grammarID = 4;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 800:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorPosition), END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ if (iso2SensorOrderListType->SensorPosition.arrayLen < iso2SensorOrderListType_SensorPosition_ARRAY_SIZE) {
+ /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
+ errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
+ if(errn == 0) {
+ if(eventCode == 0) {
+ errn = decodeNBitUnsignedInteger(stream, 8, &(uint32));
+ iso2SensorOrderListType->SensorPosition.array[iso2SensorOrderListType->SensorPosition.arrayLen] = (uint8_t)(uint32 + 0);
+ iso2SensorOrderListType->SensorPosition.arrayLen++;
+ } else {
+ /* Second level event (e.g., xsi:type, xsi:nil, ...) */
+ errn = EXI_UNSUPPORTED_EVENT_CODE_CHARACTERISTICS;
+ }
+ }
+ } else {
+ errn = EXI_ERROR_OUT_OF_BOUNDS;
+ }
+ if(errn == 0) {
+ /* valid EE for simple element START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorPosition) ? */
+ errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
+ if(eventCode == 0) {
+ grammarID = 801;
+ } else {
+ errn = EXI_DEVIANT_SUPPORT_NOT_DEPLOYED; /* or also typecast and nillable */
+ }
+ }
+ break;
+ case 1:
+ done = 1;
+ grammarID = 4;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 801:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorPosition), END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ if (iso2SensorOrderListType->SensorPosition.arrayLen < iso2SensorOrderListType_SensorPosition_ARRAY_SIZE) {
+ /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
+ errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
+ if(errn == 0) {
+ if(eventCode == 0) {
+ errn = decodeNBitUnsignedInteger(stream, 8, &(uint32));
+ iso2SensorOrderListType->SensorPosition.array[iso2SensorOrderListType->SensorPosition.arrayLen] = (uint8_t)(uint32 + 0);
+ iso2SensorOrderListType->SensorPosition.arrayLen++;
+ } else {
+ /* Second level event (e.g., xsi:type, xsi:nil, ...) */
+ errn = EXI_UNSUPPORTED_EVENT_CODE_CHARACTERISTICS;
+ }
+ }
+ } else {
+ errn = EXI_ERROR_OUT_OF_BOUNDS;
+ }
+ if(errn == 0) {
+ /* valid EE for simple element START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorPosition) ? */
+ errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
+ if(eventCode == 0) {
+ grammarID = 802;
+ } else {
+ errn = EXI_DEVIANT_SUPPORT_NOT_DEPLOYED; /* or also typecast and nillable */
+ }
+ }
+ break;
+ case 1:
+ done = 1;
+ grammarID = 4;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 802:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorPosition), END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ if (iso2SensorOrderListType->SensorPosition.arrayLen < iso2SensorOrderListType_SensorPosition_ARRAY_SIZE) {
+ /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
+ errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
+ if(errn == 0) {
+ if(eventCode == 0) {
+ errn = decodeNBitUnsignedInteger(stream, 8, &(uint32));
+ iso2SensorOrderListType->SensorPosition.array[iso2SensorOrderListType->SensorPosition.arrayLen] = (uint8_t)(uint32 + 0);
+ iso2SensorOrderListType->SensorPosition.arrayLen++;
+ } else {
+ /* Second level event (e.g., xsi:type, xsi:nil, ...) */
+ errn = EXI_UNSUPPORTED_EVENT_CODE_CHARACTERISTICS;
+ }
+ }
+ } else {
+ errn = EXI_ERROR_OUT_OF_BOUNDS;
+ }
+ if(errn == 0) {
+ /* valid EE for simple element START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorPosition) ? */
+ errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
+ if(eventCode == 0) {
+ grammarID = 803;
+ } else {
+ errn = EXI_DEVIANT_SUPPORT_NOT_DEPLOYED; /* or also typecast and nillable */
+ }
+ }
+ break;
+ case 1:
+ done = 1;
+ grammarID = 4;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 803:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorPosition), END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ if (iso2SensorOrderListType->SensorPosition.arrayLen < iso2SensorOrderListType_SensorPosition_ARRAY_SIZE) {
+ /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
+ errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
+ if(errn == 0) {
+ if(eventCode == 0) {
+ errn = decodeNBitUnsignedInteger(stream, 8, &(uint32));
+ iso2SensorOrderListType->SensorPosition.array[iso2SensorOrderListType->SensorPosition.arrayLen] = (uint8_t)(uint32 + 0);
+ iso2SensorOrderListType->SensorPosition.arrayLen++;
+ } else {
+ /* Second level event (e.g., xsi:type, xsi:nil, ...) */
+ errn = EXI_UNSUPPORTED_EVENT_CODE_CHARACTERISTICS;
+ }
+ }
+ } else {
+ errn = EXI_ERROR_OUT_OF_BOUNDS;
+ }
+ if(errn == 0) {
+ /* valid EE for simple element START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorPosition) ? */
+ errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
+ if(eventCode == 0) {
+ grammarID = 804;
+ } else {
+ errn = EXI_DEVIANT_SUPPORT_NOT_DEPLOYED; /* or also typecast and nillable */
+ }
+ }
+ break;
+ case 1:
+ done = 1;
+ grammarID = 4;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 804:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorPosition), END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ if (iso2SensorOrderListType->SensorPosition.arrayLen < iso2SensorOrderListType_SensorPosition_ARRAY_SIZE) {
+ /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
+ errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
+ if(errn == 0) {
+ if(eventCode == 0) {
+ errn = decodeNBitUnsignedInteger(stream, 8, &(uint32));
+ iso2SensorOrderListType->SensorPosition.array[iso2SensorOrderListType->SensorPosition.arrayLen] = (uint8_t)(uint32 + 0);
+ iso2SensorOrderListType->SensorPosition.arrayLen++;
+ } else {
+ /* Second level event (e.g., xsi:type, xsi:nil, ...) */
+ errn = EXI_UNSUPPORTED_EVENT_CODE_CHARACTERISTICS;
+ }
+ }
+ } else {
+ errn = EXI_ERROR_OUT_OF_BOUNDS;
+ }
+ if(errn == 0) {
+ /* valid EE for simple element START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorPosition) ? */
+ errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
+ if(eventCode == 0) {
+ grammarID = 805;
+ } else {
+ errn = EXI_DEVIANT_SUPPORT_NOT_DEPLOYED; /* or also typecast and nillable */
+ }
+ }
+ break;
+ case 1:
+ done = 1;
+ grammarID = 4;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 805:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorPosition), END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ if (iso2SensorOrderListType->SensorPosition.arrayLen < iso2SensorOrderListType_SensorPosition_ARRAY_SIZE) {
+ /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
+ errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
+ if(errn == 0) {
+ if(eventCode == 0) {
+ errn = decodeNBitUnsignedInteger(stream, 8, &(uint32));
+ iso2SensorOrderListType->SensorPosition.array[iso2SensorOrderListType->SensorPosition.arrayLen] = (uint8_t)(uint32 + 0);
+ iso2SensorOrderListType->SensorPosition.arrayLen++;
+ } else {
+ /* Second level event (e.g., xsi:type, xsi:nil, ...) */
+ errn = EXI_UNSUPPORTED_EVENT_CODE_CHARACTERISTICS;
+ }
+ }
+ } else {
+ errn = EXI_ERROR_OUT_OF_BOUNDS;
+ }
+ if(errn == 0) {
+ /* valid EE for simple element START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorPosition) ? */
+ errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
+ if(eventCode == 0) {
+ grammarID = 806;
+ } else {
+ errn = EXI_DEVIANT_SUPPORT_NOT_DEPLOYED; /* or also typecast and nillable */
+ }
+ }
+ break;
+ case 1:
+ done = 1;
+ grammarID = 4;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 806:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorPosition), END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ if (iso2SensorOrderListType->SensorPosition.arrayLen < iso2SensorOrderListType_SensorPosition_ARRAY_SIZE) {
+ /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
+ errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
+ if(errn == 0) {
+ if(eventCode == 0) {
+ errn = decodeNBitUnsignedInteger(stream, 8, &(uint32));
+ iso2SensorOrderListType->SensorPosition.array[iso2SensorOrderListType->SensorPosition.arrayLen] = (uint8_t)(uint32 + 0);
+ iso2SensorOrderListType->SensorPosition.arrayLen++;
+ } else {
+ /* Second level event (e.g., xsi:type, xsi:nil, ...) */
+ errn = EXI_UNSUPPORTED_EVENT_CODE_CHARACTERISTICS;
+ }
+ }
+ } else {
+ errn = EXI_ERROR_OUT_OF_BOUNDS;
+ }
+ if(errn == 0) {
+ /* valid EE for simple element START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorPosition) ? */
+ errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
+ if(eventCode == 0) {
+ grammarID = 807;
+ } else {
+ errn = EXI_DEVIANT_SUPPORT_NOT_DEPLOYED; /* or also typecast and nillable */
+ }
+ }
+ break;
+ case 1:
+ done = 1;
+ grammarID = 4;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 807:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorPosition), END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ if (iso2SensorOrderListType->SensorPosition.arrayLen < iso2SensorOrderListType_SensorPosition_ARRAY_SIZE) {
+ /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
+ errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
+ if(errn == 0) {
+ if(eventCode == 0) {
+ errn = decodeNBitUnsignedInteger(stream, 8, &(uint32));
+ iso2SensorOrderListType->SensorPosition.array[iso2SensorOrderListType->SensorPosition.arrayLen] = (uint8_t)(uint32 + 0);
+ iso2SensorOrderListType->SensorPosition.arrayLen++;
+ } else {
+ /* Second level event (e.g., xsi:type, xsi:nil, ...) */
+ errn = EXI_UNSUPPORTED_EVENT_CODE_CHARACTERISTICS;
+ }
+ }
+ } else {
+ errn = EXI_ERROR_OUT_OF_BOUNDS;
+ }
+ if(errn == 0) {
+ /* valid EE for simple element START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorPosition) ? */
+ errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
+ if(eventCode == 0) {
+ grammarID = 808;
+ } else {
+ errn = EXI_DEVIANT_SUPPORT_NOT_DEPLOYED; /* or also typecast and nillable */
+ }
+ }
+ break;
+ case 1:
+ done = 1;
+ grammarID = 4;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 808:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorPosition), END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ if (iso2SensorOrderListType->SensorPosition.arrayLen < iso2SensorOrderListType_SensorPosition_ARRAY_SIZE) {
+ /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
+ errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
+ if(errn == 0) {
+ if(eventCode == 0) {
+ errn = decodeNBitUnsignedInteger(stream, 8, &(uint32));
+ iso2SensorOrderListType->SensorPosition.array[iso2SensorOrderListType->SensorPosition.arrayLen] = (uint8_t)(uint32 + 0);
+ iso2SensorOrderListType->SensorPosition.arrayLen++;
+ } else {
+ /* Second level event (e.g., xsi:type, xsi:nil, ...) */
+ errn = EXI_UNSUPPORTED_EVENT_CODE_CHARACTERISTICS;
+ }
+ }
+ } else {
+ errn = EXI_ERROR_OUT_OF_BOUNDS;
+ }
+ if(errn == 0) {
+ /* valid EE for simple element START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorPosition) ? */
+ errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
+ if(eventCode == 0) {
+ grammarID = 809;
+ } else {
+ errn = EXI_DEVIANT_SUPPORT_NOT_DEPLOYED; /* or also typecast and nillable */
+ }
+ }
+ break;
+ case 1:
+ done = 1;
+ grammarID = 4;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 809:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorPosition), END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ if (iso2SensorOrderListType->SensorPosition.arrayLen < iso2SensorOrderListType_SensorPosition_ARRAY_SIZE) {
+ /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
+ errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
+ if(errn == 0) {
+ if(eventCode == 0) {
+ errn = decodeNBitUnsignedInteger(stream, 8, &(uint32));
+ iso2SensorOrderListType->SensorPosition.array[iso2SensorOrderListType->SensorPosition.arrayLen] = (uint8_t)(uint32 + 0);
+ iso2SensorOrderListType->SensorPosition.arrayLen++;
+ } else {
+ /* Second level event (e.g., xsi:type, xsi:nil, ...) */
+ errn = EXI_UNSUPPORTED_EVENT_CODE_CHARACTERISTICS;
+ }
+ }
+ } else {
+ errn = EXI_ERROR_OUT_OF_BOUNDS;
+ }
+ if(errn == 0) {
+ /* valid EE for simple element START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorPosition) ? */
+ errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
+ if(eventCode == 0) {
+ grammarID = 810;
+ } else {
+ errn = EXI_DEVIANT_SUPPORT_NOT_DEPLOYED; /* or also typecast and nillable */
+ }
+ }
+ break;
+ case 1:
+ done = 1;
+ grammarID = 4;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 810:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorPosition), END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ if (iso2SensorOrderListType->SensorPosition.arrayLen < iso2SensorOrderListType_SensorPosition_ARRAY_SIZE) {
+ /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
+ errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
+ if(errn == 0) {
+ if(eventCode == 0) {
+ errn = decodeNBitUnsignedInteger(stream, 8, &(uint32));
+ iso2SensorOrderListType->SensorPosition.array[iso2SensorOrderListType->SensorPosition.arrayLen] = (uint8_t)(uint32 + 0);
+ iso2SensorOrderListType->SensorPosition.arrayLen++;
+ } else {
+ /* Second level event (e.g., xsi:type, xsi:nil, ...) */
+ errn = EXI_UNSUPPORTED_EVENT_CODE_CHARACTERISTICS;
+ }
+ }
+ } else {
+ errn = EXI_ERROR_OUT_OF_BOUNDS;
+ }
+ if(errn == 0) {
+ /* valid EE for simple element START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorPosition) ? */
+ errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
+ if(eventCode == 0) {
+ grammarID = 811;
+ } else {
+ errn = EXI_DEVIANT_SUPPORT_NOT_DEPLOYED; /* or also typecast and nillable */
+ }
+ }
+ break;
+ case 1:
+ done = 1;
+ grammarID = 4;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 811:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorPosition), END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ if (iso2SensorOrderListType->SensorPosition.arrayLen < iso2SensorOrderListType_SensorPosition_ARRAY_SIZE) {
+ /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
+ errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
+ if(errn == 0) {
+ if(eventCode == 0) {
+ errn = decodeNBitUnsignedInteger(stream, 8, &(uint32));
+ iso2SensorOrderListType->SensorPosition.array[iso2SensorOrderListType->SensorPosition.arrayLen] = (uint8_t)(uint32 + 0);
+ iso2SensorOrderListType->SensorPosition.arrayLen++;
+ } else {
+ /* Second level event (e.g., xsi:type, xsi:nil, ...) */
+ errn = EXI_UNSUPPORTED_EVENT_CODE_CHARACTERISTICS;
+ }
+ }
+ } else {
+ errn = EXI_ERROR_OUT_OF_BOUNDS;
+ }
+ if(errn == 0) {
+ /* valid EE for simple element START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorPosition) ? */
+ errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
+ if(eventCode == 0) {
+ grammarID = 812;
+ } else {
+ errn = EXI_DEVIANT_SUPPORT_NOT_DEPLOYED; /* or also typecast and nillable */
+ }
+ }
+ break;
+ case 1:
+ done = 1;
+ grammarID = 4;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 812:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorPosition), END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ if (iso2SensorOrderListType->SensorPosition.arrayLen < iso2SensorOrderListType_SensorPosition_ARRAY_SIZE) {
+ /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
+ errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
+ if(errn == 0) {
+ if(eventCode == 0) {
+ errn = decodeNBitUnsignedInteger(stream, 8, &(uint32));
+ iso2SensorOrderListType->SensorPosition.array[iso2SensorOrderListType->SensorPosition.arrayLen] = (uint8_t)(uint32 + 0);
+ iso2SensorOrderListType->SensorPosition.arrayLen++;
+ } else {
+ /* Second level event (e.g., xsi:type, xsi:nil, ...) */
+ errn = EXI_UNSUPPORTED_EVENT_CODE_CHARACTERISTICS;
+ }
+ }
+ } else {
+ errn = EXI_ERROR_OUT_OF_BOUNDS;
+ }
+ if(errn == 0) {
+ /* valid EE for simple element START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorPosition) ? */
+ errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
+ if(eventCode == 0) {
+ grammarID = 813;
+ } else {
+ errn = EXI_DEVIANT_SUPPORT_NOT_DEPLOYED; /* or also typecast and nillable */
+ }
+ }
+ break;
+ case 1:
+ done = 1;
+ grammarID = 4;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 813:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorPosition), END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ if (iso2SensorOrderListType->SensorPosition.arrayLen < iso2SensorOrderListType_SensorPosition_ARRAY_SIZE) {
+ /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
+ errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
+ if(errn == 0) {
+ if(eventCode == 0) {
+ errn = decodeNBitUnsignedInteger(stream, 8, &(uint32));
+ iso2SensorOrderListType->SensorPosition.array[iso2SensorOrderListType->SensorPosition.arrayLen] = (uint8_t)(uint32 + 0);
+ iso2SensorOrderListType->SensorPosition.arrayLen++;
+ } else {
+ /* Second level event (e.g., xsi:type, xsi:nil, ...) */
+ errn = EXI_UNSUPPORTED_EVENT_CODE_CHARACTERISTICS;
+ }
+ }
+ } else {
+ errn = EXI_ERROR_OUT_OF_BOUNDS;
+ }
+ if(errn == 0) {
+ /* valid EE for simple element START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorPosition) ? */
+ errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
+ if(eventCode == 0) {
+ grammarID = 814;
+ } else {
+ errn = EXI_DEVIANT_SUPPORT_NOT_DEPLOYED; /* or also typecast and nillable */
+ }
+ }
+ break;
+ case 1:
+ done = 1;
+ grammarID = 4;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 814:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorPosition), END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ if (iso2SensorOrderListType->SensorPosition.arrayLen < iso2SensorOrderListType_SensorPosition_ARRAY_SIZE) {
+ /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
+ errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
+ if(errn == 0) {
+ if(eventCode == 0) {
+ errn = decodeNBitUnsignedInteger(stream, 8, &(uint32));
+ iso2SensorOrderListType->SensorPosition.array[iso2SensorOrderListType->SensorPosition.arrayLen] = (uint8_t)(uint32 + 0);
+ iso2SensorOrderListType->SensorPosition.arrayLen++;
+ } else {
+ /* Second level event (e.g., xsi:type, xsi:nil, ...) */
+ errn = EXI_UNSUPPORTED_EVENT_CODE_CHARACTERISTICS;
+ }
+ }
+ } else {
+ errn = EXI_ERROR_OUT_OF_BOUNDS;
+ }
+ if(errn == 0) {
+ /* valid EE for simple element START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorPosition) ? */
+ errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
+ if(eventCode == 0) {
+ grammarID = 815;
+ } else {
+ errn = EXI_DEVIANT_SUPPORT_NOT_DEPLOYED; /* or also typecast and nillable */
+ }
+ }
+ break;
+ case 1:
+ done = 1;
+ grammarID = 4;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 815:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorPosition), END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ if (iso2SensorOrderListType->SensorPosition.arrayLen < iso2SensorOrderListType_SensorPosition_ARRAY_SIZE) {
+ /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
+ errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
+ if(errn == 0) {
+ if(eventCode == 0) {
+ errn = decodeNBitUnsignedInteger(stream, 8, &(uint32));
+ iso2SensorOrderListType->SensorPosition.array[iso2SensorOrderListType->SensorPosition.arrayLen] = (uint8_t)(uint32 + 0);
+ iso2SensorOrderListType->SensorPosition.arrayLen++;
+ } else {
+ /* Second level event (e.g., xsi:type, xsi:nil, ...) */
+ errn = EXI_UNSUPPORTED_EVENT_CODE_CHARACTERISTICS;
+ }
+ }
+ } else {
+ errn = EXI_ERROR_OUT_OF_BOUNDS;
+ }
+ if(errn == 0) {
+ /* valid EE for simple element START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorPosition) ? */
+ errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
+ if(eventCode == 0) {
+ grammarID = 816;
+ } else {
+ errn = EXI_DEVIANT_SUPPORT_NOT_DEPLOYED; /* or also typecast and nillable */
+ }
+ }
+ break;
+ case 1:
+ done = 1;
+ grammarID = 4;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 816:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorPosition), END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ if (iso2SensorOrderListType->SensorPosition.arrayLen < iso2SensorOrderListType_SensorPosition_ARRAY_SIZE) {
+ /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
+ errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
+ if(errn == 0) {
+ if(eventCode == 0) {
+ errn = decodeNBitUnsignedInteger(stream, 8, &(uint32));
+ iso2SensorOrderListType->SensorPosition.array[iso2SensorOrderListType->SensorPosition.arrayLen] = (uint8_t)(uint32 + 0);
+ iso2SensorOrderListType->SensorPosition.arrayLen++;
+ } else {
+ /* Second level event (e.g., xsi:type, xsi:nil, ...) */
+ errn = EXI_UNSUPPORTED_EVENT_CODE_CHARACTERISTICS;
+ }
+ }
+ } else {
+ errn = EXI_ERROR_OUT_OF_BOUNDS;
+ }
+ if(errn == 0) {
+ /* valid EE for simple element START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorPosition) ? */
+ errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
+ if(eventCode == 0) {
+ grammarID = 817;
+ } else {
+ errn = EXI_DEVIANT_SUPPORT_NOT_DEPLOYED; /* or also typecast and nillable */
+ }
+ }
+ break;
+ case 1:
+ done = 1;
+ grammarID = 4;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 817:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorPosition), END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ if (iso2SensorOrderListType->SensorPosition.arrayLen < iso2SensorOrderListType_SensorPosition_ARRAY_SIZE) {
+ /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
+ errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
+ if(errn == 0) {
+ if(eventCode == 0) {
+ errn = decodeNBitUnsignedInteger(stream, 8, &(uint32));
+ iso2SensorOrderListType->SensorPosition.array[iso2SensorOrderListType->SensorPosition.arrayLen] = (uint8_t)(uint32 + 0);
+ iso2SensorOrderListType->SensorPosition.arrayLen++;
+ } else {
+ /* Second level event (e.g., xsi:type, xsi:nil, ...) */
+ errn = EXI_UNSUPPORTED_EVENT_CODE_CHARACTERISTICS;
+ }
+ }
+ } else {
+ errn = EXI_ERROR_OUT_OF_BOUNDS;
+ }
+ if(errn == 0) {
+ /* valid EE for simple element START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorPosition) ? */
+ errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
+ if(eventCode == 0) {
+ grammarID = 818;
+ } else {
+ errn = EXI_DEVIANT_SUPPORT_NOT_DEPLOYED; /* or also typecast and nillable */
+ }
+ }
+ break;
+ case 1:
+ done = 1;
+ grammarID = 4;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 818:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorPosition), END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ if (iso2SensorOrderListType->SensorPosition.arrayLen < iso2SensorOrderListType_SensorPosition_ARRAY_SIZE) {
+ /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
+ errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
+ if(errn == 0) {
+ if(eventCode == 0) {
+ errn = decodeNBitUnsignedInteger(stream, 8, &(uint32));
+ iso2SensorOrderListType->SensorPosition.array[iso2SensorOrderListType->SensorPosition.arrayLen] = (uint8_t)(uint32 + 0);
+ iso2SensorOrderListType->SensorPosition.arrayLen++;
+ } else {
+ /* Second level event (e.g., xsi:type, xsi:nil, ...) */
+ errn = EXI_UNSUPPORTED_EVENT_CODE_CHARACTERISTICS;
+ }
+ }
+ } else {
+ errn = EXI_ERROR_OUT_OF_BOUNDS;
+ }
+ if(errn == 0) {
+ /* valid EE for simple element START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorPosition) ? */
+ errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
+ if(eventCode == 0) {
+ grammarID = 819;
+ } else {
+ errn = EXI_DEVIANT_SUPPORT_NOT_DEPLOYED; /* or also typecast and nillable */
+ }
+ }
+ break;
+ case 1:
+ done = 1;
+ grammarID = 4;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 819:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorPosition), END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ if (iso2SensorOrderListType->SensorPosition.arrayLen < iso2SensorOrderListType_SensorPosition_ARRAY_SIZE) {
+ /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
+ errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
+ if(errn == 0) {
+ if(eventCode == 0) {
+ errn = decodeNBitUnsignedInteger(stream, 8, &(uint32));
+ iso2SensorOrderListType->SensorPosition.array[iso2SensorOrderListType->SensorPosition.arrayLen] = (uint8_t)(uint32 + 0);
+ iso2SensorOrderListType->SensorPosition.arrayLen++;
+ } else {
+ /* Second level event (e.g., xsi:type, xsi:nil, ...) */
+ errn = EXI_UNSUPPORTED_EVENT_CODE_CHARACTERISTICS;
+ }
+ }
+ } else {
+ errn = EXI_ERROR_OUT_OF_BOUNDS;
+ }
+ if(errn == 0) {
+ /* valid EE for simple element START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorPosition) ? */
+ errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
+ if(eventCode == 0) {
+ grammarID = 820;
+ } else {
+ errn = EXI_DEVIANT_SUPPORT_NOT_DEPLOYED; /* or also typecast and nillable */
+ }
+ }
+ break;
+ case 1:
+ done = 1;
+ grammarID = 4;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 820:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorPosition), END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ if (iso2SensorOrderListType->SensorPosition.arrayLen < iso2SensorOrderListType_SensorPosition_ARRAY_SIZE) {
+ /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
+ errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
+ if(errn == 0) {
+ if(eventCode == 0) {
+ errn = decodeNBitUnsignedInteger(stream, 8, &(uint32));
+ iso2SensorOrderListType->SensorPosition.array[iso2SensorOrderListType->SensorPosition.arrayLen] = (uint8_t)(uint32 + 0);
+ iso2SensorOrderListType->SensorPosition.arrayLen++;
+ } else {
+ /* Second level event (e.g., xsi:type, xsi:nil, ...) */
+ errn = EXI_UNSUPPORTED_EVENT_CODE_CHARACTERISTICS;
+ }
+ }
+ } else {
+ errn = EXI_ERROR_OUT_OF_BOUNDS;
+ }
+ if(errn == 0) {
+ /* valid EE for simple element START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorPosition) ? */
+ errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
+ if(eventCode == 0) {
+ grammarID = 821;
+ } else {
+ errn = EXI_DEVIANT_SUPPORT_NOT_DEPLOYED; /* or also typecast and nillable */
+ }
+ }
+ break;
+ case 1:
+ done = 1;
+ grammarID = 4;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 821:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorPosition), END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ if (iso2SensorOrderListType->SensorPosition.arrayLen < iso2SensorOrderListType_SensorPosition_ARRAY_SIZE) {
+ /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
+ errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
+ if(errn == 0) {
+ if(eventCode == 0) {
+ errn = decodeNBitUnsignedInteger(stream, 8, &(uint32));
+ iso2SensorOrderListType->SensorPosition.array[iso2SensorOrderListType->SensorPosition.arrayLen] = (uint8_t)(uint32 + 0);
+ iso2SensorOrderListType->SensorPosition.arrayLen++;
+ } else {
+ /* Second level event (e.g., xsi:type, xsi:nil, ...) */
+ errn = EXI_UNSUPPORTED_EVENT_CODE_CHARACTERISTICS;
+ }
+ }
+ } else {
+ errn = EXI_ERROR_OUT_OF_BOUNDS;
+ }
+ if(errn == 0) {
+ /* valid EE for simple element START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorPosition) ? */
+ errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
+ if(eventCode == 0) {
+ grammarID = 822;
+ } else {
+ errn = EXI_DEVIANT_SUPPORT_NOT_DEPLOYED; /* or also typecast and nillable */
+ }
+ }
+ break;
+ case 1:
+ done = 1;
+ grammarID = 4;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 822:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorPosition), END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ if (iso2SensorOrderListType->SensorPosition.arrayLen < iso2SensorOrderListType_SensorPosition_ARRAY_SIZE) {
+ /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
+ errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
+ if(errn == 0) {
+ if(eventCode == 0) {
+ errn = decodeNBitUnsignedInteger(stream, 8, &(uint32));
+ iso2SensorOrderListType->SensorPosition.array[iso2SensorOrderListType->SensorPosition.arrayLen] = (uint8_t)(uint32 + 0);
+ iso2SensorOrderListType->SensorPosition.arrayLen++;
+ } else {
+ /* Second level event (e.g., xsi:type, xsi:nil, ...) */
+ errn = EXI_UNSUPPORTED_EVENT_CODE_CHARACTERISTICS;
+ }
+ }
+ } else {
+ errn = EXI_ERROR_OUT_OF_BOUNDS;
+ }
+ if(errn == 0) {
+ /* valid EE for simple element START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorPosition) ? */
+ errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
+ if(eventCode == 0) {
+ grammarID = 823;
+ } else {
+ errn = EXI_DEVIANT_SUPPORT_NOT_DEPLOYED; /* or also typecast and nillable */
+ }
+ }
+ break;
+ case 1:
+ done = 1;
+ grammarID = 4;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 823:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorPosition), END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ if (iso2SensorOrderListType->SensorPosition.arrayLen < iso2SensorOrderListType_SensorPosition_ARRAY_SIZE) {
+ /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
+ errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
+ if(errn == 0) {
+ if(eventCode == 0) {
+ errn = decodeNBitUnsignedInteger(stream, 8, &(uint32));
+ iso2SensorOrderListType->SensorPosition.array[iso2SensorOrderListType->SensorPosition.arrayLen] = (uint8_t)(uint32 + 0);
+ iso2SensorOrderListType->SensorPosition.arrayLen++;
+ } else {
+ /* Second level event (e.g., xsi:type, xsi:nil, ...) */
+ errn = EXI_UNSUPPORTED_EVENT_CODE_CHARACTERISTICS;
+ }
+ }
+ } else {
+ errn = EXI_ERROR_OUT_OF_BOUNDS;
+ }
+ if(errn == 0) {
+ /* valid EE for simple element START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorPosition) ? */
+ errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
+ if(eventCode == 0) {
+ grammarID = 824;
+ } else {
+ errn = EXI_DEVIANT_SUPPORT_NOT_DEPLOYED; /* or also typecast and nillable */
+ }
+ }
+ break;
+ case 1:
+ done = 1;
+ grammarID = 4;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 824:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorPosition), END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ if (iso2SensorOrderListType->SensorPosition.arrayLen < iso2SensorOrderListType_SensorPosition_ARRAY_SIZE) {
+ /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
+ errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
+ if(errn == 0) {
+ if(eventCode == 0) {
+ errn = decodeNBitUnsignedInteger(stream, 8, &(uint32));
+ iso2SensorOrderListType->SensorPosition.array[iso2SensorOrderListType->SensorPosition.arrayLen] = (uint8_t)(uint32 + 0);
+ iso2SensorOrderListType->SensorPosition.arrayLen++;
+ } else {
+ /* Second level event (e.g., xsi:type, xsi:nil, ...) */
+ errn = EXI_UNSUPPORTED_EVENT_CODE_CHARACTERISTICS;
+ }
+ }
+ } else {
+ errn = EXI_ERROR_OUT_OF_BOUNDS;
+ }
+ if(errn == 0) {
+ /* valid EE for simple element START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorPosition) ? */
+ errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
+ if(eventCode == 0) {
+ grammarID = 825;
+ } else {
+ errn = EXI_DEVIANT_SUPPORT_NOT_DEPLOYED; /* or also typecast and nillable */
+ }
+ }
+ break;
+ case 1:
+ done = 1;
+ grammarID = 4;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 825:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorPosition), END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ if (iso2SensorOrderListType->SensorPosition.arrayLen < iso2SensorOrderListType_SensorPosition_ARRAY_SIZE) {
+ /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
+ errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
+ if(errn == 0) {
+ if(eventCode == 0) {
+ errn = decodeNBitUnsignedInteger(stream, 8, &(uint32));
+ iso2SensorOrderListType->SensorPosition.array[iso2SensorOrderListType->SensorPosition.arrayLen] = (uint8_t)(uint32 + 0);
+ iso2SensorOrderListType->SensorPosition.arrayLen++;
+ } else {
+ /* Second level event (e.g., xsi:type, xsi:nil, ...) */
+ errn = EXI_UNSUPPORTED_EVENT_CODE_CHARACTERISTICS;
+ }
+ }
+ } else {
+ errn = EXI_ERROR_OUT_OF_BOUNDS;
+ }
+ if(errn == 0) {
+ /* valid EE for simple element START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorPosition) ? */
+ errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
+ if(eventCode == 0) {
+ grammarID = 826;
+ } else {
+ errn = EXI_DEVIANT_SUPPORT_NOT_DEPLOYED; /* or also typecast and nillable */
+ }
+ }
+ break;
+ case 1:
+ done = 1;
+ grammarID = 4;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 826:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorPosition), END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ if (iso2SensorOrderListType->SensorPosition.arrayLen < iso2SensorOrderListType_SensorPosition_ARRAY_SIZE) {
+ /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
+ errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
+ if(errn == 0) {
+ if(eventCode == 0) {
+ errn = decodeNBitUnsignedInteger(stream, 8, &(uint32));
+ iso2SensorOrderListType->SensorPosition.array[iso2SensorOrderListType->SensorPosition.arrayLen] = (uint8_t)(uint32 + 0);
+ iso2SensorOrderListType->SensorPosition.arrayLen++;
+ } else {
+ /* Second level event (e.g., xsi:type, xsi:nil, ...) */
+ errn = EXI_UNSUPPORTED_EVENT_CODE_CHARACTERISTICS;
+ }
+ }
+ } else {
+ errn = EXI_ERROR_OUT_OF_BOUNDS;
+ }
+ if(errn == 0) {
+ /* valid EE for simple element START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorPosition) ? */
+ errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
+ if(eventCode == 0) {
+ grammarID = 827;
+ } else {
+ errn = EXI_DEVIANT_SUPPORT_NOT_DEPLOYED; /* or also typecast and nillable */
+ }
+ }
+ break;
+ case 1:
+ done = 1;
+ grammarID = 4;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 827:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorPosition), END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ if (iso2SensorOrderListType->SensorPosition.arrayLen < iso2SensorOrderListType_SensorPosition_ARRAY_SIZE) {
+ /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
+ errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
+ if(errn == 0) {
+ if(eventCode == 0) {
+ errn = decodeNBitUnsignedInteger(stream, 8, &(uint32));
+ iso2SensorOrderListType->SensorPosition.array[iso2SensorOrderListType->SensorPosition.arrayLen] = (uint8_t)(uint32 + 0);
+ iso2SensorOrderListType->SensorPosition.arrayLen++;
+ } else {
+ /* Second level event (e.g., xsi:type, xsi:nil, ...) */
+ errn = EXI_UNSUPPORTED_EVENT_CODE_CHARACTERISTICS;
+ }
+ }
+ } else {
+ errn = EXI_ERROR_OUT_OF_BOUNDS;
+ }
+ if(errn == 0) {
+ /* valid EE for simple element START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorPosition) ? */
+ errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
+ if(eventCode == 0) {
+ grammarID = 828;
+ } else {
+ errn = EXI_DEVIANT_SUPPORT_NOT_DEPLOYED; /* or also typecast and nillable */
+ }
+ }
+ break;
+ case 1:
+ done = 1;
+ grammarID = 4;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 828:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorPosition), END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ if (iso2SensorOrderListType->SensorPosition.arrayLen < iso2SensorOrderListType_SensorPosition_ARRAY_SIZE) {
+ /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
+ errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
+ if(errn == 0) {
+ if(eventCode == 0) {
+ errn = decodeNBitUnsignedInteger(stream, 8, &(uint32));
+ iso2SensorOrderListType->SensorPosition.array[iso2SensorOrderListType->SensorPosition.arrayLen] = (uint8_t)(uint32 + 0);
+ iso2SensorOrderListType->SensorPosition.arrayLen++;
+ } else {
+ /* Second level event (e.g., xsi:type, xsi:nil, ...) */
+ errn = EXI_UNSUPPORTED_EVENT_CODE_CHARACTERISTICS;
+ }
+ }
+ } else {
+ errn = EXI_ERROR_OUT_OF_BOUNDS;
+ }
+ if(errn == 0) {
+ /* valid EE for simple element START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorPosition) ? */
+ errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
+ if(eventCode == 0) {
+ grammarID = 829;
+ } else {
+ errn = EXI_DEVIANT_SUPPORT_NOT_DEPLOYED; /* or also typecast and nillable */
+ }
+ }
+ break;
+ case 1:
+ done = 1;
+ grammarID = 4;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 829:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorPosition), END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ if (iso2SensorOrderListType->SensorPosition.arrayLen < iso2SensorOrderListType_SensorPosition_ARRAY_SIZE) {
+ /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
+ errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
+ if(errn == 0) {
+ if(eventCode == 0) {
+ errn = decodeNBitUnsignedInteger(stream, 8, &(uint32));
+ iso2SensorOrderListType->SensorPosition.array[iso2SensorOrderListType->SensorPosition.arrayLen] = (uint8_t)(uint32 + 0);
+ iso2SensorOrderListType->SensorPosition.arrayLen++;
+ } else {
+ /* Second level event (e.g., xsi:type, xsi:nil, ...) */
+ errn = EXI_UNSUPPORTED_EVENT_CODE_CHARACTERISTICS;
+ }
+ }
+ } else {
+ errn = EXI_ERROR_OUT_OF_BOUNDS;
+ }
+ if(errn == 0) {
+ /* valid EE for simple element START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorPosition) ? */
+ errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
+ if(eventCode == 0) {
+ grammarID = 830;
+ } else {
+ errn = EXI_DEVIANT_SUPPORT_NOT_DEPLOYED; /* or also typecast and nillable */
+ }
+ }
+ break;
+ case 1:
+ done = 1;
+ grammarID = 4;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 830:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorPosition), END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ if (iso2SensorOrderListType->SensorPosition.arrayLen < iso2SensorOrderListType_SensorPosition_ARRAY_SIZE) {
+ /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
+ errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
+ if(errn == 0) {
+ if(eventCode == 0) {
+ errn = decodeNBitUnsignedInteger(stream, 8, &(uint32));
+ iso2SensorOrderListType->SensorPosition.array[iso2SensorOrderListType->SensorPosition.arrayLen] = (uint8_t)(uint32 + 0);
+ iso2SensorOrderListType->SensorPosition.arrayLen++;
+ } else {
+ /* Second level event (e.g., xsi:type, xsi:nil, ...) */
+ errn = EXI_UNSUPPORTED_EVENT_CODE_CHARACTERISTICS;
+ }
+ }
+ } else {
+ errn = EXI_ERROR_OUT_OF_BOUNDS;
+ }
+ if(errn == 0) {
+ /* valid EE for simple element START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorPosition) ? */
+ errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
+ if(eventCode == 0) {
+ grammarID = 831;
+ } else {
+ errn = EXI_DEVIANT_SUPPORT_NOT_DEPLOYED; /* or also typecast and nillable */
+ }
+ }
+ break;
+ case 1:
+ done = 1;
+ grammarID = 4;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 831:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorPosition), END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ if (iso2SensorOrderListType->SensorPosition.arrayLen < iso2SensorOrderListType_SensorPosition_ARRAY_SIZE) {
+ /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
+ errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
+ if(errn == 0) {
+ if(eventCode == 0) {
+ errn = decodeNBitUnsignedInteger(stream, 8, &(uint32));
+ iso2SensorOrderListType->SensorPosition.array[iso2SensorOrderListType->SensorPosition.arrayLen] = (uint8_t)(uint32 + 0);
+ iso2SensorOrderListType->SensorPosition.arrayLen++;
+ } else {
+ /* Second level event (e.g., xsi:type, xsi:nil, ...) */
+ errn = EXI_UNSUPPORTED_EVENT_CODE_CHARACTERISTICS;
+ }
+ }
+ } else {
+ errn = EXI_ERROR_OUT_OF_BOUNDS;
+ }
+ if(errn == 0) {
+ /* valid EE for simple element START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorPosition) ? */
+ errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
+ if(eventCode == 0) {
+ grammarID = 832;
+ } else {
+ errn = EXI_DEVIANT_SUPPORT_NOT_DEPLOYED; /* or also typecast and nillable */
+ }
+ }
+ break;
+ case 1:
+ done = 1;
+ grammarID = 4;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 832:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorPosition), END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ if (iso2SensorOrderListType->SensorPosition.arrayLen < iso2SensorOrderListType_SensorPosition_ARRAY_SIZE) {
+ /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
+ errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
+ if(errn == 0) {
+ if(eventCode == 0) {
+ errn = decodeNBitUnsignedInteger(stream, 8, &(uint32));
+ iso2SensorOrderListType->SensorPosition.array[iso2SensorOrderListType->SensorPosition.arrayLen] = (uint8_t)(uint32 + 0);
+ iso2SensorOrderListType->SensorPosition.arrayLen++;
+ } else {
+ /* Second level event (e.g., xsi:type, xsi:nil, ...) */
+ errn = EXI_UNSUPPORTED_EVENT_CODE_CHARACTERISTICS;
+ }
+ }
+ } else {
+ errn = EXI_ERROR_OUT_OF_BOUNDS;
+ }
+ if(errn == 0) {
+ /* valid EE for simple element START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorPosition) ? */
+ errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
+ if(eventCode == 0) {
+ grammarID = 833;
+ } else {
+ errn = EXI_DEVIANT_SUPPORT_NOT_DEPLOYED; /* or also typecast and nillable */
+ }
+ }
+ break;
+ case 1:
+ done = 1;
+ grammarID = 4;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 833:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorPosition), END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ if (iso2SensorOrderListType->SensorPosition.arrayLen < iso2SensorOrderListType_SensorPosition_ARRAY_SIZE) {
+ /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
+ errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
+ if(errn == 0) {
+ if(eventCode == 0) {
+ errn = decodeNBitUnsignedInteger(stream, 8, &(uint32));
+ iso2SensorOrderListType->SensorPosition.array[iso2SensorOrderListType->SensorPosition.arrayLen] = (uint8_t)(uint32 + 0);
+ iso2SensorOrderListType->SensorPosition.arrayLen++;
+ } else {
+ /* Second level event (e.g., xsi:type, xsi:nil, ...) */
+ errn = EXI_UNSUPPORTED_EVENT_CODE_CHARACTERISTICS;
+ }
+ }
+ } else {
+ errn = EXI_ERROR_OUT_OF_BOUNDS;
+ }
+ if(errn == 0) {
+ /* valid EE for simple element START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorPosition) ? */
+ errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
+ if(eventCode == 0) {
+ grammarID = 834;
+ } else {
+ errn = EXI_DEVIANT_SUPPORT_NOT_DEPLOYED; /* or also typecast and nillable */
+ }
+ }
+ break;
+ case 1:
+ done = 1;
+ grammarID = 4;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 834:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorPosition), END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ if (iso2SensorOrderListType->SensorPosition.arrayLen < iso2SensorOrderListType_SensorPosition_ARRAY_SIZE) {
+ /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
+ errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
+ if(errn == 0) {
+ if(eventCode == 0) {
+ errn = decodeNBitUnsignedInteger(stream, 8, &(uint32));
+ iso2SensorOrderListType->SensorPosition.array[iso2SensorOrderListType->SensorPosition.arrayLen] = (uint8_t)(uint32 + 0);
+ iso2SensorOrderListType->SensorPosition.arrayLen++;
+ } else {
+ /* Second level event (e.g., xsi:type, xsi:nil, ...) */
+ errn = EXI_UNSUPPORTED_EVENT_CODE_CHARACTERISTICS;
+ }
+ }
+ } else {
+ errn = EXI_ERROR_OUT_OF_BOUNDS;
+ }
+ if(errn == 0) {
+ /* valid EE for simple element START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorPosition) ? */
+ errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
+ if(eventCode == 0) {
+ grammarID = 835;
+ } else {
+ errn = EXI_DEVIANT_SUPPORT_NOT_DEPLOYED; /* or also typecast and nillable */
+ }
+ }
+ break;
+ case 1:
+ done = 1;
+ grammarID = 4;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 835:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorPosition), END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ if (iso2SensorOrderListType->SensorPosition.arrayLen < iso2SensorOrderListType_SensorPosition_ARRAY_SIZE) {
+ /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
+ errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
+ if(errn == 0) {
+ if(eventCode == 0) {
+ errn = decodeNBitUnsignedInteger(stream, 8, &(uint32));
+ iso2SensorOrderListType->SensorPosition.array[iso2SensorOrderListType->SensorPosition.arrayLen] = (uint8_t)(uint32 + 0);
+ iso2SensorOrderListType->SensorPosition.arrayLen++;
+ } else {
+ /* Second level event (e.g., xsi:type, xsi:nil, ...) */
+ errn = EXI_UNSUPPORTED_EVENT_CODE_CHARACTERISTICS;
+ }
+ }
+ } else {
+ errn = EXI_ERROR_OUT_OF_BOUNDS;
+ }
+ if(errn == 0) {
+ /* valid EE for simple element START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorPosition) ? */
+ errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
+ if(eventCode == 0) {
+ grammarID = 836;
+ } else {
+ errn = EXI_DEVIANT_SUPPORT_NOT_DEPLOYED; /* or also typecast and nillable */
+ }
+ }
+ break;
+ case 1:
+ done = 1;
+ grammarID = 4;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 836:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorPosition), END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ if (iso2SensorOrderListType->SensorPosition.arrayLen < iso2SensorOrderListType_SensorPosition_ARRAY_SIZE) {
+ /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
+ errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
+ if(errn == 0) {
+ if(eventCode == 0) {
+ errn = decodeNBitUnsignedInteger(stream, 8, &(uint32));
+ iso2SensorOrderListType->SensorPosition.array[iso2SensorOrderListType->SensorPosition.arrayLen] = (uint8_t)(uint32 + 0);
+ iso2SensorOrderListType->SensorPosition.arrayLen++;
+ } else {
+ /* Second level event (e.g., xsi:type, xsi:nil, ...) */
+ errn = EXI_UNSUPPORTED_EVENT_CODE_CHARACTERISTICS;
+ }
+ }
+ } else {
+ errn = EXI_ERROR_OUT_OF_BOUNDS;
+ }
+ if(errn == 0) {
+ /* valid EE for simple element START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorPosition) ? */
+ errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
+ if(eventCode == 0) {
+ grammarID = 837;
+ } else {
+ errn = EXI_DEVIANT_SUPPORT_NOT_DEPLOYED; /* or also typecast and nillable */
+ }
+ }
+ break;
+ case 1:
+ done = 1;
+ grammarID = 4;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 837:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorPosition), END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ if (iso2SensorOrderListType->SensorPosition.arrayLen < iso2SensorOrderListType_SensorPosition_ARRAY_SIZE) {
+ /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
+ errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
+ if(errn == 0) {
+ if(eventCode == 0) {
+ errn = decodeNBitUnsignedInteger(stream, 8, &(uint32));
+ iso2SensorOrderListType->SensorPosition.array[iso2SensorOrderListType->SensorPosition.arrayLen] = (uint8_t)(uint32 + 0);
+ iso2SensorOrderListType->SensorPosition.arrayLen++;
+ } else {
+ /* Second level event (e.g., xsi:type, xsi:nil, ...) */
+ errn = EXI_UNSUPPORTED_EVENT_CODE_CHARACTERISTICS;
+ }
+ }
+ } else {
+ errn = EXI_ERROR_OUT_OF_BOUNDS;
+ }
+ if(errn == 0) {
+ /* valid EE for simple element START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorPosition) ? */
+ errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
+ if(eventCode == 0) {
+ grammarID = 838;
+ } else {
+ errn = EXI_DEVIANT_SUPPORT_NOT_DEPLOYED; /* or also typecast and nillable */
+ }
+ }
+ break;
+ case 1:
+ done = 1;
+ grammarID = 4;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 838:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorPosition), END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ if (iso2SensorOrderListType->SensorPosition.arrayLen < iso2SensorOrderListType_SensorPosition_ARRAY_SIZE) {
+ /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
+ errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
+ if(errn == 0) {
+ if(eventCode == 0) {
+ errn = decodeNBitUnsignedInteger(stream, 8, &(uint32));
+ iso2SensorOrderListType->SensorPosition.array[iso2SensorOrderListType->SensorPosition.arrayLen] = (uint8_t)(uint32 + 0);
+ iso2SensorOrderListType->SensorPosition.arrayLen++;
+ } else {
+ /* Second level event (e.g., xsi:type, xsi:nil, ...) */
+ errn = EXI_UNSUPPORTED_EVENT_CODE_CHARACTERISTICS;
+ }
+ }
+ } else {
+ errn = EXI_ERROR_OUT_OF_BOUNDS;
+ }
+ if(errn == 0) {
+ /* valid EE for simple element START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorPosition) ? */
+ errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
+ if(eventCode == 0) {
+ grammarID = 839;
+ } else {
+ errn = EXI_DEVIANT_SUPPORT_NOT_DEPLOYED; /* or also typecast and nillable */
+ }
+ }
+ break;
+ case 1:
+ done = 1;
+ grammarID = 4;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 839:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorPosition), END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ if (iso2SensorOrderListType->SensorPosition.arrayLen < iso2SensorOrderListType_SensorPosition_ARRAY_SIZE) {
+ /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
+ errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
+ if(errn == 0) {
+ if(eventCode == 0) {
+ errn = decodeNBitUnsignedInteger(stream, 8, &(uint32));
+ iso2SensorOrderListType->SensorPosition.array[iso2SensorOrderListType->SensorPosition.arrayLen] = (uint8_t)(uint32 + 0);
+ iso2SensorOrderListType->SensorPosition.arrayLen++;
+ } else {
+ /* Second level event (e.g., xsi:type, xsi:nil, ...) */
+ errn = EXI_UNSUPPORTED_EVENT_CODE_CHARACTERISTICS;
+ }
+ }
+ } else {
+ errn = EXI_ERROR_OUT_OF_BOUNDS;
+ }
+ if(errn == 0) {
+ /* valid EE for simple element START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorPosition) ? */
+ errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
+ if(eventCode == 0) {
+ grammarID = 840;
+ } else {
+ errn = EXI_DEVIANT_SUPPORT_NOT_DEPLOYED; /* or also typecast and nillable */
+ }
+ }
+ break;
+ case 1:
+ done = 1;
+ grammarID = 4;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 840:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorPosition), END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ if (iso2SensorOrderListType->SensorPosition.arrayLen < iso2SensorOrderListType_SensorPosition_ARRAY_SIZE) {
+ /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
+ errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
+ if(errn == 0) {
+ if(eventCode == 0) {
+ errn = decodeNBitUnsignedInteger(stream, 8, &(uint32));
+ iso2SensorOrderListType->SensorPosition.array[iso2SensorOrderListType->SensorPosition.arrayLen] = (uint8_t)(uint32 + 0);
+ iso2SensorOrderListType->SensorPosition.arrayLen++;
+ } else {
+ /* Second level event (e.g., xsi:type, xsi:nil, ...) */
+ errn = EXI_UNSUPPORTED_EVENT_CODE_CHARACTERISTICS;
+ }
+ }
+ } else {
+ errn = EXI_ERROR_OUT_OF_BOUNDS;
+ }
+ if(errn == 0) {
+ /* valid EE for simple element START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorPosition) ? */
+ errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
+ if(eventCode == 0) {
+ grammarID = 841;
+ } else {
+ errn = EXI_DEVIANT_SUPPORT_NOT_DEPLOYED; /* or also typecast and nillable */
+ }
+ }
+ break;
+ case 1:
+ done = 1;
+ grammarID = 4;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 841:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorPosition), END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ if (iso2SensorOrderListType->SensorPosition.arrayLen < iso2SensorOrderListType_SensorPosition_ARRAY_SIZE) {
+ /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
+ errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
+ if(errn == 0) {
+ if(eventCode == 0) {
+ errn = decodeNBitUnsignedInteger(stream, 8, &(uint32));
+ iso2SensorOrderListType->SensorPosition.array[iso2SensorOrderListType->SensorPosition.arrayLen] = (uint8_t)(uint32 + 0);
+ iso2SensorOrderListType->SensorPosition.arrayLen++;
+ } else {
+ /* Second level event (e.g., xsi:type, xsi:nil, ...) */
+ errn = EXI_UNSUPPORTED_EVENT_CODE_CHARACTERISTICS;
+ }
+ }
+ } else {
+ errn = EXI_ERROR_OUT_OF_BOUNDS;
+ }
+ if(errn == 0) {
+ /* valid EE for simple element START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorPosition) ? */
+ errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
+ if(eventCode == 0) {
+ grammarID = 842;
+ } else {
+ errn = EXI_DEVIANT_SUPPORT_NOT_DEPLOYED; /* or also typecast and nillable */
+ }
+ }
+ break;
+ case 1:
+ done = 1;
+ grammarID = 4;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 842:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorPosition), END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ if (iso2SensorOrderListType->SensorPosition.arrayLen < iso2SensorOrderListType_SensorPosition_ARRAY_SIZE) {
+ /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
+ errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
+ if(errn == 0) {
+ if(eventCode == 0) {
+ errn = decodeNBitUnsignedInteger(stream, 8, &(uint32));
+ iso2SensorOrderListType->SensorPosition.array[iso2SensorOrderListType->SensorPosition.arrayLen] = (uint8_t)(uint32 + 0);
+ iso2SensorOrderListType->SensorPosition.arrayLen++;
+ } else {
+ /* Second level event (e.g., xsi:type, xsi:nil, ...) */
+ errn = EXI_UNSUPPORTED_EVENT_CODE_CHARACTERISTICS;
+ }
+ }
+ } else {
+ errn = EXI_ERROR_OUT_OF_BOUNDS;
+ }
+ if(errn == 0) {
+ /* valid EE for simple element START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorPosition) ? */
+ errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
+ if(eventCode == 0) {
+ grammarID = 843;
+ } else {
+ errn = EXI_DEVIANT_SUPPORT_NOT_DEPLOYED; /* or also typecast and nillable */
+ }
+ }
+ break;
+ case 1:
+ done = 1;
+ grammarID = 4;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 843:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorPosition), END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ if (iso2SensorOrderListType->SensorPosition.arrayLen < iso2SensorOrderListType_SensorPosition_ARRAY_SIZE) {
+ /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
+ errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
+ if(errn == 0) {
+ if(eventCode == 0) {
+ errn = decodeNBitUnsignedInteger(stream, 8, &(uint32));
+ iso2SensorOrderListType->SensorPosition.array[iso2SensorOrderListType->SensorPosition.arrayLen] = (uint8_t)(uint32 + 0);
+ iso2SensorOrderListType->SensorPosition.arrayLen++;
+ } else {
+ /* Second level event (e.g., xsi:type, xsi:nil, ...) */
+ errn = EXI_UNSUPPORTED_EVENT_CODE_CHARACTERISTICS;
+ }
+ }
+ } else {
+ errn = EXI_ERROR_OUT_OF_BOUNDS;
+ }
+ if(errn == 0) {
+ /* valid EE for simple element START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorPosition) ? */
+ errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
+ if(eventCode == 0) {
+ grammarID = 844;
+ } else {
+ errn = EXI_DEVIANT_SUPPORT_NOT_DEPLOYED; /* or also typecast and nillable */
+ }
+ }
+ break;
+ case 1:
+ done = 1;
+ grammarID = 4;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 844:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorPosition), END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ if (iso2SensorOrderListType->SensorPosition.arrayLen < iso2SensorOrderListType_SensorPosition_ARRAY_SIZE) {
+ /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
+ errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
+ if(errn == 0) {
+ if(eventCode == 0) {
+ errn = decodeNBitUnsignedInteger(stream, 8, &(uint32));
+ iso2SensorOrderListType->SensorPosition.array[iso2SensorOrderListType->SensorPosition.arrayLen] = (uint8_t)(uint32 + 0);
+ iso2SensorOrderListType->SensorPosition.arrayLen++;
+ } else {
+ /* Second level event (e.g., xsi:type, xsi:nil, ...) */
+ errn = EXI_UNSUPPORTED_EVENT_CODE_CHARACTERISTICS;
+ }
+ }
+ } else {
+ errn = EXI_ERROR_OUT_OF_BOUNDS;
+ }
+ if(errn == 0) {
+ /* valid EE for simple element START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorPosition) ? */
+ errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
+ if(eventCode == 0) {
+ grammarID = 845;
+ } else {
+ errn = EXI_DEVIANT_SUPPORT_NOT_DEPLOYED; /* or also typecast and nillable */
+ }
+ }
+ break;
+ case 1:
+ done = 1;
+ grammarID = 4;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 845:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorPosition), END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ if (iso2SensorOrderListType->SensorPosition.arrayLen < iso2SensorOrderListType_SensorPosition_ARRAY_SIZE) {
+ /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
+ errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
+ if(errn == 0) {
+ if(eventCode == 0) {
+ errn = decodeNBitUnsignedInteger(stream, 8, &(uint32));
+ iso2SensorOrderListType->SensorPosition.array[iso2SensorOrderListType->SensorPosition.arrayLen] = (uint8_t)(uint32 + 0);
+ iso2SensorOrderListType->SensorPosition.arrayLen++;
+ } else {
+ /* Second level event (e.g., xsi:type, xsi:nil, ...) */
+ errn = EXI_UNSUPPORTED_EVENT_CODE_CHARACTERISTICS;
+ }
+ }
+ } else {
+ errn = EXI_ERROR_OUT_OF_BOUNDS;
+ }
+ if(errn == 0) {
+ /* valid EE for simple element START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorPosition) ? */
+ errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
+ if(eventCode == 0) {
+ grammarID = 846;
+ } else {
+ errn = EXI_DEVIANT_SUPPORT_NOT_DEPLOYED; /* or also typecast and nillable */
+ }
+ }
+ break;
+ case 1:
+ done = 1;
+ grammarID = 4;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 846:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorPosition), END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ if (iso2SensorOrderListType->SensorPosition.arrayLen < iso2SensorOrderListType_SensorPosition_ARRAY_SIZE) {
+ /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
+ errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
+ if(errn == 0) {
+ if(eventCode == 0) {
+ errn = decodeNBitUnsignedInteger(stream, 8, &(uint32));
+ iso2SensorOrderListType->SensorPosition.array[iso2SensorOrderListType->SensorPosition.arrayLen] = (uint8_t)(uint32 + 0);
+ iso2SensorOrderListType->SensorPosition.arrayLen++;
+ } else {
+ /* Second level event (e.g., xsi:type, xsi:nil, ...) */
+ errn = EXI_UNSUPPORTED_EVENT_CODE_CHARACTERISTICS;
+ }
+ }
+ } else {
+ errn = EXI_ERROR_OUT_OF_BOUNDS;
+ }
+ if(errn == 0) {
+ /* valid EE for simple element START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorPosition) ? */
+ errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
+ if(eventCode == 0) {
+ grammarID = 847;
+ } else {
+ errn = EXI_DEVIANT_SUPPORT_NOT_DEPLOYED; /* or also typecast and nillable */
+ }
+ }
+ break;
+ case 1:
+ done = 1;
+ grammarID = 4;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 847:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorPosition), END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ if (iso2SensorOrderListType->SensorPosition.arrayLen < iso2SensorOrderListType_SensorPosition_ARRAY_SIZE) {
+ /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
+ errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
+ if(errn == 0) {
+ if(eventCode == 0) {
+ errn = decodeNBitUnsignedInteger(stream, 8, &(uint32));
+ iso2SensorOrderListType->SensorPosition.array[iso2SensorOrderListType->SensorPosition.arrayLen] = (uint8_t)(uint32 + 0);
+ iso2SensorOrderListType->SensorPosition.arrayLen++;
+ } else {
+ /* Second level event (e.g., xsi:type, xsi:nil, ...) */
+ errn = EXI_UNSUPPORTED_EVENT_CODE_CHARACTERISTICS;
+ }
+ }
+ } else {
+ errn = EXI_ERROR_OUT_OF_BOUNDS;
+ }
+ if(errn == 0) {
+ /* valid EE for simple element START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorPosition) ? */
+ errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
+ if(eventCode == 0) {
+ grammarID = 848;
+ } else {
+ errn = EXI_DEVIANT_SUPPORT_NOT_DEPLOYED; /* or also typecast and nillable */
+ }
+ }
+ break;
+ case 1:
+ done = 1;
+ grammarID = 4;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 848:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorPosition), END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ if (iso2SensorOrderListType->SensorPosition.arrayLen < iso2SensorOrderListType_SensorPosition_ARRAY_SIZE) {
+ /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
+ errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
+ if(errn == 0) {
+ if(eventCode == 0) {
+ errn = decodeNBitUnsignedInteger(stream, 8, &(uint32));
+ iso2SensorOrderListType->SensorPosition.array[iso2SensorOrderListType->SensorPosition.arrayLen] = (uint8_t)(uint32 + 0);
+ iso2SensorOrderListType->SensorPosition.arrayLen++;
+ } else {
+ /* Second level event (e.g., xsi:type, xsi:nil, ...) */
+ errn = EXI_UNSUPPORTED_EVENT_CODE_CHARACTERISTICS;
+ }
+ }
+ } else {
+ errn = EXI_ERROR_OUT_OF_BOUNDS;
+ }
+ if(errn == 0) {
+ /* valid EE for simple element START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorPosition) ? */
+ errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
+ if(eventCode == 0) {
+ grammarID = 849;
+ } else {
+ errn = EXI_DEVIANT_SUPPORT_NOT_DEPLOYED; /* or also typecast and nillable */
+ }
+ }
+ break;
+ case 1:
+ done = 1;
+ grammarID = 4;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 849:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorPosition), END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ if (iso2SensorOrderListType->SensorPosition.arrayLen < iso2SensorOrderListType_SensorPosition_ARRAY_SIZE) {
+ /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
+ errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
+ if(errn == 0) {
+ if(eventCode == 0) {
+ errn = decodeNBitUnsignedInteger(stream, 8, &(uint32));
+ iso2SensorOrderListType->SensorPosition.array[iso2SensorOrderListType->SensorPosition.arrayLen] = (uint8_t)(uint32 + 0);
+ iso2SensorOrderListType->SensorPosition.arrayLen++;
+ } else {
+ /* Second level event (e.g., xsi:type, xsi:nil, ...) */
+ errn = EXI_UNSUPPORTED_EVENT_CODE_CHARACTERISTICS;
+ }
+ }
+ } else {
+ errn = EXI_ERROR_OUT_OF_BOUNDS;
+ }
+ if(errn == 0) {
+ /* valid EE for simple element START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorPosition) ? */
+ errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
+ if(eventCode == 0) {
+ grammarID = 850;
+ } else {
+ errn = EXI_DEVIANT_SUPPORT_NOT_DEPLOYED; /* or also typecast and nillable */
+ }
+ }
+ break;
+ case 1:
+ done = 1;
+ grammarID = 4;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 850:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorPosition), END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ if (iso2SensorOrderListType->SensorPosition.arrayLen < iso2SensorOrderListType_SensorPosition_ARRAY_SIZE) {
+ /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
+ errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
+ if(errn == 0) {
+ if(eventCode == 0) {
+ errn = decodeNBitUnsignedInteger(stream, 8, &(uint32));
+ iso2SensorOrderListType->SensorPosition.array[iso2SensorOrderListType->SensorPosition.arrayLen] = (uint8_t)(uint32 + 0);
+ iso2SensorOrderListType->SensorPosition.arrayLen++;
+ } else {
+ /* Second level event (e.g., xsi:type, xsi:nil, ...) */
+ errn = EXI_UNSUPPORTED_EVENT_CODE_CHARACTERISTICS;
+ }
+ }
+ } else {
+ errn = EXI_ERROR_OUT_OF_BOUNDS;
+ }
+ if(errn == 0) {
+ /* valid EE for simple element START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorPosition) ? */
+ errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
+ if(eventCode == 0) {
+ grammarID = 851;
+ } else {
+ errn = EXI_DEVIANT_SUPPORT_NOT_DEPLOYED; /* or also typecast and nillable */
+ }
+ }
+ break;
+ case 1:
+ done = 1;
+ grammarID = 4;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 851:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorPosition), END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ if (iso2SensorOrderListType->SensorPosition.arrayLen < iso2SensorOrderListType_SensorPosition_ARRAY_SIZE) {
+ /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
+ errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
+ if(errn == 0) {
+ if(eventCode == 0) {
+ errn = decodeNBitUnsignedInteger(stream, 8, &(uint32));
+ iso2SensorOrderListType->SensorPosition.array[iso2SensorOrderListType->SensorPosition.arrayLen] = (uint8_t)(uint32 + 0);
+ iso2SensorOrderListType->SensorPosition.arrayLen++;
+ } else {
+ /* Second level event (e.g., xsi:type, xsi:nil, ...) */
+ errn = EXI_UNSUPPORTED_EVENT_CODE_CHARACTERISTICS;
+ }
+ }
+ } else {
+ errn = EXI_ERROR_OUT_OF_BOUNDS;
+ }
+ if(errn == 0) {
+ /* valid EE for simple element START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorPosition) ? */
+ errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
+ if(eventCode == 0) {
+ grammarID = 852;
+ } else {
+ errn = EXI_DEVIANT_SUPPORT_NOT_DEPLOYED; /* or also typecast and nillable */
+ }
+ }
+ break;
+ case 1:
+ done = 1;
+ grammarID = 4;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 852:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorPosition), END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ if (iso2SensorOrderListType->SensorPosition.arrayLen < iso2SensorOrderListType_SensorPosition_ARRAY_SIZE) {
+ /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
+ errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
+ if(errn == 0) {
+ if(eventCode == 0) {
+ errn = decodeNBitUnsignedInteger(stream, 8, &(uint32));
+ iso2SensorOrderListType->SensorPosition.array[iso2SensorOrderListType->SensorPosition.arrayLen] = (uint8_t)(uint32 + 0);
+ iso2SensorOrderListType->SensorPosition.arrayLen++;
+ } else {
+ /* Second level event (e.g., xsi:type, xsi:nil, ...) */
+ errn = EXI_UNSUPPORTED_EVENT_CODE_CHARACTERISTICS;
+ }
+ }
+ } else {
+ errn = EXI_ERROR_OUT_OF_BOUNDS;
+ }
+ if(errn == 0) {
+ /* valid EE for simple element START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorPosition) ? */
+ errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
+ if(eventCode == 0) {
+ grammarID = 853;
+ } else {
+ errn = EXI_DEVIANT_SUPPORT_NOT_DEPLOYED; /* or also typecast and nillable */
+ }
+ }
+ break;
+ case 1:
+ done = 1;
+ grammarID = 4;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 853:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorPosition), END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ if (iso2SensorOrderListType->SensorPosition.arrayLen < iso2SensorOrderListType_SensorPosition_ARRAY_SIZE) {
+ /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
+ errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
+ if(errn == 0) {
+ if(eventCode == 0) {
+ errn = decodeNBitUnsignedInteger(stream, 8, &(uint32));
+ iso2SensorOrderListType->SensorPosition.array[iso2SensorOrderListType->SensorPosition.arrayLen] = (uint8_t)(uint32 + 0);
+ iso2SensorOrderListType->SensorPosition.arrayLen++;
+ } else {
+ /* Second level event (e.g., xsi:type, xsi:nil, ...) */
+ errn = EXI_UNSUPPORTED_EVENT_CODE_CHARACTERISTICS;
+ }
+ }
+ } else {
+ errn = EXI_ERROR_OUT_OF_BOUNDS;
+ }
+ if(errn == 0) {
+ /* valid EE for simple element START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorPosition) ? */
+ errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
+ if(eventCode == 0) {
+ grammarID = 854;
+ } else {
+ errn = EXI_DEVIANT_SUPPORT_NOT_DEPLOYED; /* or also typecast and nillable */
+ }
+ }
+ break;
+ case 1:
+ done = 1;
+ grammarID = 4;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 854:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorPosition), END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ if (iso2SensorOrderListType->SensorPosition.arrayLen < iso2SensorOrderListType_SensorPosition_ARRAY_SIZE) {
+ /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
+ errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
+ if(errn == 0) {
+ if(eventCode == 0) {
+ errn = decodeNBitUnsignedInteger(stream, 8, &(uint32));
+ iso2SensorOrderListType->SensorPosition.array[iso2SensorOrderListType->SensorPosition.arrayLen] = (uint8_t)(uint32 + 0);
+ iso2SensorOrderListType->SensorPosition.arrayLen++;
+ } else {
+ /* Second level event (e.g., xsi:type, xsi:nil, ...) */
+ errn = EXI_UNSUPPORTED_EVENT_CODE_CHARACTERISTICS;
+ }
+ }
+ } else {
+ errn = EXI_ERROR_OUT_OF_BOUNDS;
+ }
+ if(errn == 0) {
+ /* valid EE for simple element START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorPosition) ? */
+ errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
+ if(eventCode == 0) {
+ grammarID = 855;
+ } else {
+ errn = EXI_DEVIANT_SUPPORT_NOT_DEPLOYED; /* or also typecast and nillable */
+ }
+ }
+ break;
+ case 1:
+ done = 1;
+ grammarID = 4;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 855:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorPosition), END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ if (iso2SensorOrderListType->SensorPosition.arrayLen < iso2SensorOrderListType_SensorPosition_ARRAY_SIZE) {
+ /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
+ errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
+ if(errn == 0) {
+ if(eventCode == 0) {
+ errn = decodeNBitUnsignedInteger(stream, 8, &(uint32));
+ iso2SensorOrderListType->SensorPosition.array[iso2SensorOrderListType->SensorPosition.arrayLen] = (uint8_t)(uint32 + 0);
+ iso2SensorOrderListType->SensorPosition.arrayLen++;
+ } else {
+ /* Second level event (e.g., xsi:type, xsi:nil, ...) */
+ errn = EXI_UNSUPPORTED_EVENT_CODE_CHARACTERISTICS;
+ }
+ }
+ } else {
+ errn = EXI_ERROR_OUT_OF_BOUNDS;
+ }
+ if(errn == 0) {
+ /* valid EE for simple element START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorPosition) ? */
+ errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
+ if(eventCode == 0) {
+ grammarID = 856;
+ } else {
+ errn = EXI_DEVIANT_SUPPORT_NOT_DEPLOYED; /* or also typecast and nillable */
+ }
+ }
+ break;
+ case 1:
+ done = 1;
+ grammarID = 4;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 856:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorPosition), END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ if (iso2SensorOrderListType->SensorPosition.arrayLen < iso2SensorOrderListType_SensorPosition_ARRAY_SIZE) {
+ /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
+ errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
+ if(errn == 0) {
+ if(eventCode == 0) {
+ errn = decodeNBitUnsignedInteger(stream, 8, &(uint32));
+ iso2SensorOrderListType->SensorPosition.array[iso2SensorOrderListType->SensorPosition.arrayLen] = (uint8_t)(uint32 + 0);
+ iso2SensorOrderListType->SensorPosition.arrayLen++;
+ } else {
+ /* Second level event (e.g., xsi:type, xsi:nil, ...) */
+ errn = EXI_UNSUPPORTED_EVENT_CODE_CHARACTERISTICS;
+ }
+ }
+ } else {
+ errn = EXI_ERROR_OUT_OF_BOUNDS;
+ }
+ if(errn == 0) {
+ /* valid EE for simple element START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorPosition) ? */
+ errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
+ if(eventCode == 0) {
+ grammarID = 857;
+ } else {
+ errn = EXI_DEVIANT_SUPPORT_NOT_DEPLOYED; /* or also typecast and nillable */
+ }
+ }
+ break;
+ case 1:
+ done = 1;
+ grammarID = 4;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 857:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorPosition), END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ if (iso2SensorOrderListType->SensorPosition.arrayLen < iso2SensorOrderListType_SensorPosition_ARRAY_SIZE) {
+ /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
+ errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
+ if(errn == 0) {
+ if(eventCode == 0) {
+ errn = decodeNBitUnsignedInteger(stream, 8, &(uint32));
+ iso2SensorOrderListType->SensorPosition.array[iso2SensorOrderListType->SensorPosition.arrayLen] = (uint8_t)(uint32 + 0);
+ iso2SensorOrderListType->SensorPosition.arrayLen++;
+ } else {
+ /* Second level event (e.g., xsi:type, xsi:nil, ...) */
+ errn = EXI_UNSUPPORTED_EVENT_CODE_CHARACTERISTICS;
+ }
+ }
+ } else {
+ errn = EXI_ERROR_OUT_OF_BOUNDS;
+ }
+ if(errn == 0) {
+ /* valid EE for simple element START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorPosition) ? */
+ errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
+ if(eventCode == 0) {
+ grammarID = 858;
+ } else {
+ errn = EXI_DEVIANT_SUPPORT_NOT_DEPLOYED; /* or also typecast and nillable */
+ }
+ }
+ break;
+ case 1:
+ done = 1;
+ grammarID = 4;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 858:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorPosition), END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ if (iso2SensorOrderListType->SensorPosition.arrayLen < iso2SensorOrderListType_SensorPosition_ARRAY_SIZE) {
+ /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
+ errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
+ if(errn == 0) {
+ if(eventCode == 0) {
+ errn = decodeNBitUnsignedInteger(stream, 8, &(uint32));
+ iso2SensorOrderListType->SensorPosition.array[iso2SensorOrderListType->SensorPosition.arrayLen] = (uint8_t)(uint32 + 0);
+ iso2SensorOrderListType->SensorPosition.arrayLen++;
+ } else {
+ /* Second level event (e.g., xsi:type, xsi:nil, ...) */
+ errn = EXI_UNSUPPORTED_EVENT_CODE_CHARACTERISTICS;
+ }
+ }
+ } else {
+ errn = EXI_ERROR_OUT_OF_BOUNDS;
+ }
+ if(errn == 0) {
+ /* valid EE for simple element START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorPosition) ? */
+ errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
+ if(eventCode == 0) {
+ grammarID = 859;
+ } else {
+ errn = EXI_DEVIANT_SUPPORT_NOT_DEPLOYED; /* or also typecast and nillable */
+ }
+ }
+ break;
+ case 1:
+ done = 1;
+ grammarID = 4;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 859:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorPosition), END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ if (iso2SensorOrderListType->SensorPosition.arrayLen < iso2SensorOrderListType_SensorPosition_ARRAY_SIZE) {
+ /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
+ errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
+ if(errn == 0) {
+ if(eventCode == 0) {
+ errn = decodeNBitUnsignedInteger(stream, 8, &(uint32));
+ iso2SensorOrderListType->SensorPosition.array[iso2SensorOrderListType->SensorPosition.arrayLen] = (uint8_t)(uint32 + 0);
+ iso2SensorOrderListType->SensorPosition.arrayLen++;
+ } else {
+ /* Second level event (e.g., xsi:type, xsi:nil, ...) */
+ errn = EXI_UNSUPPORTED_EVENT_CODE_CHARACTERISTICS;
+ }
+ }
+ } else {
+ errn = EXI_ERROR_OUT_OF_BOUNDS;
+ }
+ if(errn == 0) {
+ /* valid EE for simple element START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorPosition) ? */
+ errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
+ if(eventCode == 0) {
+ grammarID = 860;
+ } else {
+ errn = EXI_DEVIANT_SUPPORT_NOT_DEPLOYED; /* or also typecast and nillable */
+ }
+ }
+ break;
+ case 1:
+ done = 1;
+ grammarID = 4;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 860:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorPosition), END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ if (iso2SensorOrderListType->SensorPosition.arrayLen < iso2SensorOrderListType_SensorPosition_ARRAY_SIZE) {
+ /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
+ errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
+ if(errn == 0) {
+ if(eventCode == 0) {
+ errn = decodeNBitUnsignedInteger(stream, 8, &(uint32));
+ iso2SensorOrderListType->SensorPosition.array[iso2SensorOrderListType->SensorPosition.arrayLen] = (uint8_t)(uint32 + 0);
+ iso2SensorOrderListType->SensorPosition.arrayLen++;
+ } else {
+ /* Second level event (e.g., xsi:type, xsi:nil, ...) */
+ errn = EXI_UNSUPPORTED_EVENT_CODE_CHARACTERISTICS;
+ }
+ }
+ } else {
+ errn = EXI_ERROR_OUT_OF_BOUNDS;
+ }
+ if(errn == 0) {
+ /* valid EE for simple element START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorPosition) ? */
+ errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
+ if(eventCode == 0) {
+ grammarID = 861;
+ } else {
+ errn = EXI_DEVIANT_SUPPORT_NOT_DEPLOYED; /* or also typecast and nillable */
+ }
+ }
+ break;
+ case 1:
+ done = 1;
+ grammarID = 4;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 861:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorPosition), END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ if (iso2SensorOrderListType->SensorPosition.arrayLen < iso2SensorOrderListType_SensorPosition_ARRAY_SIZE) {
+ /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
+ errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
+ if(errn == 0) {
+ if(eventCode == 0) {
+ errn = decodeNBitUnsignedInteger(stream, 8, &(uint32));
+ iso2SensorOrderListType->SensorPosition.array[iso2SensorOrderListType->SensorPosition.arrayLen] = (uint8_t)(uint32 + 0);
+ iso2SensorOrderListType->SensorPosition.arrayLen++;
+ } else {
+ /* Second level event (e.g., xsi:type, xsi:nil, ...) */
+ errn = EXI_UNSUPPORTED_EVENT_CODE_CHARACTERISTICS;
+ }
+ }
+ } else {
+ errn = EXI_ERROR_OUT_OF_BOUNDS;
+ }
+ if(errn == 0) {
+ /* valid EE for simple element START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorPosition) ? */
+ errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
+ if(eventCode == 0) {
+ grammarID = 862;
+ } else {
+ errn = EXI_DEVIANT_SUPPORT_NOT_DEPLOYED; /* or also typecast and nillable */
+ }
+ }
+ break;
+ case 1:
+ done = 1;
+ grammarID = 4;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 862:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorPosition), END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ if (iso2SensorOrderListType->SensorPosition.arrayLen < iso2SensorOrderListType_SensorPosition_ARRAY_SIZE) {
+ /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
+ errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
+ if(errn == 0) {
+ if(eventCode == 0) {
+ errn = decodeNBitUnsignedInteger(stream, 8, &(uint32));
+ iso2SensorOrderListType->SensorPosition.array[iso2SensorOrderListType->SensorPosition.arrayLen] = (uint8_t)(uint32 + 0);
+ iso2SensorOrderListType->SensorPosition.arrayLen++;
+ } else {
+ /* Second level event (e.g., xsi:type, xsi:nil, ...) */
+ errn = EXI_UNSUPPORTED_EVENT_CODE_CHARACTERISTICS;
+ }
+ }
+ } else {
+ errn = EXI_ERROR_OUT_OF_BOUNDS;
+ }
+ if(errn == 0) {
+ /* valid EE for simple element START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorPosition) ? */
+ errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
+ if(eventCode == 0) {
+ grammarID = 863;
+ } else {
+ errn = EXI_DEVIANT_SUPPORT_NOT_DEPLOYED; /* or also typecast and nillable */
+ }
+ }
+ break;
+ case 1:
+ done = 1;
+ grammarID = 4;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 863:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorPosition), END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ if (iso2SensorOrderListType->SensorPosition.arrayLen < iso2SensorOrderListType_SensorPosition_ARRAY_SIZE) {
+ /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
+ errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
+ if(errn == 0) {
+ if(eventCode == 0) {
+ errn = decodeNBitUnsignedInteger(stream, 8, &(uint32));
+ iso2SensorOrderListType->SensorPosition.array[iso2SensorOrderListType->SensorPosition.arrayLen] = (uint8_t)(uint32 + 0);
+ iso2SensorOrderListType->SensorPosition.arrayLen++;
+ } else {
+ /* Second level event (e.g., xsi:type, xsi:nil, ...) */
+ errn = EXI_UNSUPPORTED_EVENT_CODE_CHARACTERISTICS;
+ }
+ }
+ } else {
+ errn = EXI_ERROR_OUT_OF_BOUNDS;
+ }
+ if(errn == 0) {
+ /* valid EE for simple element START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorPosition) ? */
+ errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
+ if(eventCode == 0) {
+ grammarID = 864;
+ } else {
+ errn = EXI_DEVIANT_SUPPORT_NOT_DEPLOYED; /* or also typecast and nillable */
+ }
+ }
+ break;
+ case 1:
+ done = 1;
+ grammarID = 4;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 864:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorPosition), END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ if (iso2SensorOrderListType->SensorPosition.arrayLen < iso2SensorOrderListType_SensorPosition_ARRAY_SIZE) {
+ /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
+ errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
+ if(errn == 0) {
+ if(eventCode == 0) {
+ errn = decodeNBitUnsignedInteger(stream, 8, &(uint32));
+ iso2SensorOrderListType->SensorPosition.array[iso2SensorOrderListType->SensorPosition.arrayLen] = (uint8_t)(uint32 + 0);
+ iso2SensorOrderListType->SensorPosition.arrayLen++;
+ } else {
+ /* Second level event (e.g., xsi:type, xsi:nil, ...) */
+ errn = EXI_UNSUPPORTED_EVENT_CODE_CHARACTERISTICS;
+ }
+ }
+ } else {
+ errn = EXI_ERROR_OUT_OF_BOUNDS;
+ }
+ if(errn == 0) {
+ /* valid EE for simple element START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorPosition) ? */
+ errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
+ if(eventCode == 0) {
+ grammarID = 865;
+ } else {
+ errn = EXI_DEVIANT_SUPPORT_NOT_DEPLOYED; /* or also typecast and nillable */
+ }
+ }
+ break;
+ case 1:
+ done = 1;
+ grammarID = 4;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 865:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorPosition), END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ if (iso2SensorOrderListType->SensorPosition.arrayLen < iso2SensorOrderListType_SensorPosition_ARRAY_SIZE) {
+ /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
+ errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
+ if(errn == 0) {
+ if(eventCode == 0) {
+ errn = decodeNBitUnsignedInteger(stream, 8, &(uint32));
+ iso2SensorOrderListType->SensorPosition.array[iso2SensorOrderListType->SensorPosition.arrayLen] = (uint8_t)(uint32 + 0);
+ iso2SensorOrderListType->SensorPosition.arrayLen++;
+ } else {
+ /* Second level event (e.g., xsi:type, xsi:nil, ...) */
+ errn = EXI_UNSUPPORTED_EVENT_CODE_CHARACTERISTICS;
+ }
+ }
+ } else {
+ errn = EXI_ERROR_OUT_OF_BOUNDS;
+ }
+ if(errn == 0) {
+ /* valid EE for simple element START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorPosition) ? */
+ errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
+ if(eventCode == 0) {
+ grammarID = 866;
+ } else {
+ errn = EXI_DEVIANT_SUPPORT_NOT_DEPLOYED; /* or also typecast and nillable */
+ }
+ }
+ break;
+ case 1:
+ done = 1;
+ grammarID = 4;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 866:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorPosition), END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ if (iso2SensorOrderListType->SensorPosition.arrayLen < iso2SensorOrderListType_SensorPosition_ARRAY_SIZE) {
+ /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
+ errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
+ if(errn == 0) {
+ if(eventCode == 0) {
+ errn = decodeNBitUnsignedInteger(stream, 8, &(uint32));
+ iso2SensorOrderListType->SensorPosition.array[iso2SensorOrderListType->SensorPosition.arrayLen] = (uint8_t)(uint32 + 0);
+ iso2SensorOrderListType->SensorPosition.arrayLen++;
+ } else {
+ /* Second level event (e.g., xsi:type, xsi:nil, ...) */
+ errn = EXI_UNSUPPORTED_EVENT_CODE_CHARACTERISTICS;
+ }
+ }
+ } else {
+ errn = EXI_ERROR_OUT_OF_BOUNDS;
+ }
+ if(errn == 0) {
+ /* valid EE for simple element START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorPosition) ? */
+ errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
+ if(eventCode == 0) {
+ grammarID = 867;
+ } else {
+ errn = EXI_DEVIANT_SUPPORT_NOT_DEPLOYED; /* or also typecast and nillable */
+ }
+ }
+ break;
+ case 1:
+ done = 1;
+ grammarID = 4;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 867:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorPosition), END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ if (iso2SensorOrderListType->SensorPosition.arrayLen < iso2SensorOrderListType_SensorPosition_ARRAY_SIZE) {
+ /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
+ errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
+ if(errn == 0) {
+ if(eventCode == 0) {
+ errn = decodeNBitUnsignedInteger(stream, 8, &(uint32));
+ iso2SensorOrderListType->SensorPosition.array[iso2SensorOrderListType->SensorPosition.arrayLen] = (uint8_t)(uint32 + 0);
+ iso2SensorOrderListType->SensorPosition.arrayLen++;
+ } else {
+ /* Second level event (e.g., xsi:type, xsi:nil, ...) */
+ errn = EXI_UNSUPPORTED_EVENT_CODE_CHARACTERISTICS;
+ }
+ }
+ } else {
+ errn = EXI_ERROR_OUT_OF_BOUNDS;
+ }
+ if(errn == 0) {
+ /* valid EE for simple element START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorPosition) ? */
+ errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
+ if(eventCode == 0) {
+ grammarID = 868;
+ } else {
+ errn = EXI_DEVIANT_SUPPORT_NOT_DEPLOYED; /* or also typecast and nillable */
+ }
+ }
+ break;
+ case 1:
+ done = 1;
+ grammarID = 4;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 868:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorPosition), END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ if (iso2SensorOrderListType->SensorPosition.arrayLen < iso2SensorOrderListType_SensorPosition_ARRAY_SIZE) {
+ /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
+ errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
+ if(errn == 0) {
+ if(eventCode == 0) {
+ errn = decodeNBitUnsignedInteger(stream, 8, &(uint32));
+ iso2SensorOrderListType->SensorPosition.array[iso2SensorOrderListType->SensorPosition.arrayLen] = (uint8_t)(uint32 + 0);
+ iso2SensorOrderListType->SensorPosition.arrayLen++;
+ } else {
+ /* Second level event (e.g., xsi:type, xsi:nil, ...) */
+ errn = EXI_UNSUPPORTED_EVENT_CODE_CHARACTERISTICS;
+ }
+ }
+ } else {
+ errn = EXI_ERROR_OUT_OF_BOUNDS;
+ }
+ if(errn == 0) {
+ /* valid EE for simple element START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorPosition) ? */
+ errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
+ if(eventCode == 0) {
+ grammarID = 869;
+ } else {
+ errn = EXI_DEVIANT_SUPPORT_NOT_DEPLOYED; /* or also typecast and nillable */
+ }
+ }
+ break;
+ case 1:
+ done = 1;
+ grammarID = 4;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 869:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorPosition), END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ if (iso2SensorOrderListType->SensorPosition.arrayLen < iso2SensorOrderListType_SensorPosition_ARRAY_SIZE) {
+ /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
+ errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
+ if(errn == 0) {
+ if(eventCode == 0) {
+ errn = decodeNBitUnsignedInteger(stream, 8, &(uint32));
+ iso2SensorOrderListType->SensorPosition.array[iso2SensorOrderListType->SensorPosition.arrayLen] = (uint8_t)(uint32 + 0);
+ iso2SensorOrderListType->SensorPosition.arrayLen++;
+ } else {
+ /* Second level event (e.g., xsi:type, xsi:nil, ...) */
+ errn = EXI_UNSUPPORTED_EVENT_CODE_CHARACTERISTICS;
+ }
+ }
+ } else {
+ errn = EXI_ERROR_OUT_OF_BOUNDS;
+ }
+ if(errn == 0) {
+ /* valid EE for simple element START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorPosition) ? */
+ errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
+ if(eventCode == 0) {
+ grammarID = 870;
+ } else {
+ errn = EXI_DEVIANT_SUPPORT_NOT_DEPLOYED; /* or also typecast and nillable */
+ }
+ }
+ break;
+ case 1:
+ done = 1;
+ grammarID = 4;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 870:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorPosition), END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ if (iso2SensorOrderListType->SensorPosition.arrayLen < iso2SensorOrderListType_SensorPosition_ARRAY_SIZE) {
+ /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
+ errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
+ if(errn == 0) {
+ if(eventCode == 0) {
+ errn = decodeNBitUnsignedInteger(stream, 8, &(uint32));
+ iso2SensorOrderListType->SensorPosition.array[iso2SensorOrderListType->SensorPosition.arrayLen] = (uint8_t)(uint32 + 0);
+ iso2SensorOrderListType->SensorPosition.arrayLen++;
+ } else {
+ /* Second level event (e.g., xsi:type, xsi:nil, ...) */
+ errn = EXI_UNSUPPORTED_EVENT_CODE_CHARACTERISTICS;
+ }
+ }
+ } else {
+ errn = EXI_ERROR_OUT_OF_BOUNDS;
+ }
+ if(errn == 0) {
+ /* valid EE for simple element START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorPosition) ? */
+ errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
+ if(eventCode == 0) {
+ grammarID = 871;
+ } else {
+ errn = EXI_DEVIANT_SUPPORT_NOT_DEPLOYED; /* or also typecast and nillable */
+ }
+ }
+ break;
+ case 1:
+ done = 1;
+ grammarID = 4;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 871:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorPosition), END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ if (iso2SensorOrderListType->SensorPosition.arrayLen < iso2SensorOrderListType_SensorPosition_ARRAY_SIZE) {
+ /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
+ errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
+ if(errn == 0) {
+ if(eventCode == 0) {
+ errn = decodeNBitUnsignedInteger(stream, 8, &(uint32));
+ iso2SensorOrderListType->SensorPosition.array[iso2SensorOrderListType->SensorPosition.arrayLen] = (uint8_t)(uint32 + 0);
+ iso2SensorOrderListType->SensorPosition.arrayLen++;
+ } else {
+ /* Second level event (e.g., xsi:type, xsi:nil, ...) */
+ errn = EXI_UNSUPPORTED_EVENT_CODE_CHARACTERISTICS;
+ }
+ }
+ } else {
+ errn = EXI_ERROR_OUT_OF_BOUNDS;
+ }
+ if(errn == 0) {
+ /* valid EE for simple element START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorPosition) ? */
+ errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
+ if(eventCode == 0) {
+ grammarID = 872;
+ } else {
+ errn = EXI_DEVIANT_SUPPORT_NOT_DEPLOYED; /* or also typecast and nillable */
+ }
+ }
+ break;
+ case 1:
+ done = 1;
+ grammarID = 4;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 872:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorPosition), END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ if (iso2SensorOrderListType->SensorPosition.arrayLen < iso2SensorOrderListType_SensorPosition_ARRAY_SIZE) {
+ /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
+ errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
+ if(errn == 0) {
+ if(eventCode == 0) {
+ errn = decodeNBitUnsignedInteger(stream, 8, &(uint32));
+ iso2SensorOrderListType->SensorPosition.array[iso2SensorOrderListType->SensorPosition.arrayLen] = (uint8_t)(uint32 + 0);
+ iso2SensorOrderListType->SensorPosition.arrayLen++;
+ } else {
+ /* Second level event (e.g., xsi:type, xsi:nil, ...) */
+ errn = EXI_UNSUPPORTED_EVENT_CODE_CHARACTERISTICS;
+ }
+ }
+ } else {
+ errn = EXI_ERROR_OUT_OF_BOUNDS;
+ }
+ if(errn == 0) {
+ /* valid EE for simple element START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorPosition) ? */
+ errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
+ if(eventCode == 0) {
+ grammarID = 873;
+ } else {
+ errn = EXI_DEVIANT_SUPPORT_NOT_DEPLOYED; /* or also typecast and nillable */
+ }
+ }
+ break;
+ case 1:
+ done = 1;
+ grammarID = 4;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 873:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorPosition), END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ if (iso2SensorOrderListType->SensorPosition.arrayLen < iso2SensorOrderListType_SensorPosition_ARRAY_SIZE) {
+ /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
+ errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
+ if(errn == 0) {
+ if(eventCode == 0) {
+ errn = decodeNBitUnsignedInteger(stream, 8, &(uint32));
+ iso2SensorOrderListType->SensorPosition.array[iso2SensorOrderListType->SensorPosition.arrayLen] = (uint8_t)(uint32 + 0);
+ iso2SensorOrderListType->SensorPosition.arrayLen++;
+ } else {
+ /* Second level event (e.g., xsi:type, xsi:nil, ...) */
+ errn = EXI_UNSUPPORTED_EVENT_CODE_CHARACTERISTICS;
+ }
+ }
+ } else {
+ errn = EXI_ERROR_OUT_OF_BOUNDS;
+ }
+ if(errn == 0) {
+ /* valid EE for simple element START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorPosition) ? */
+ errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
+ if(eventCode == 0) {
+ grammarID = 874;
+ } else {
+ errn = EXI_DEVIANT_SUPPORT_NOT_DEPLOYED; /* or also typecast and nillable */
+ }
+ }
+ break;
+ case 1:
+ done = 1;
+ grammarID = 4;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 874:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorPosition), END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ if (iso2SensorOrderListType->SensorPosition.arrayLen < iso2SensorOrderListType_SensorPosition_ARRAY_SIZE) {
+ /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
+ errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
+ if(errn == 0) {
+ if(eventCode == 0) {
+ errn = decodeNBitUnsignedInteger(stream, 8, &(uint32));
+ iso2SensorOrderListType->SensorPosition.array[iso2SensorOrderListType->SensorPosition.arrayLen] = (uint8_t)(uint32 + 0);
+ iso2SensorOrderListType->SensorPosition.arrayLen++;
+ } else {
+ /* Second level event (e.g., xsi:type, xsi:nil, ...) */
+ errn = EXI_UNSUPPORTED_EVENT_CODE_CHARACTERISTICS;
+ }
+ }
+ } else {
+ errn = EXI_ERROR_OUT_OF_BOUNDS;
+ }
+ if(errn == 0) {
+ /* valid EE for simple element START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorPosition) ? */
+ errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
+ if(eventCode == 0) {
+ grammarID = 875;
+ } else {
+ errn = EXI_DEVIANT_SUPPORT_NOT_DEPLOYED; /* or also typecast and nillable */
+ }
+ }
+ break;
+ case 1:
+ done = 1;
+ grammarID = 4;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 875:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorPosition), END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ if (iso2SensorOrderListType->SensorPosition.arrayLen < iso2SensorOrderListType_SensorPosition_ARRAY_SIZE) {
+ /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
+ errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
+ if(errn == 0) {
+ if(eventCode == 0) {
+ errn = decodeNBitUnsignedInteger(stream, 8, &(uint32));
+ iso2SensorOrderListType->SensorPosition.array[iso2SensorOrderListType->SensorPosition.arrayLen] = (uint8_t)(uint32 + 0);
+ iso2SensorOrderListType->SensorPosition.arrayLen++;
+ } else {
+ /* Second level event (e.g., xsi:type, xsi:nil, ...) */
+ errn = EXI_UNSUPPORTED_EVENT_CODE_CHARACTERISTICS;
+ }
+ }
+ } else {
+ errn = EXI_ERROR_OUT_OF_BOUNDS;
+ }
+ if(errn == 0) {
+ /* valid EE for simple element START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorPosition) ? */
+ errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
+ if(eventCode == 0) {
+ grammarID = 876;
+ } else {
+ errn = EXI_DEVIANT_SUPPORT_NOT_DEPLOYED; /* or also typecast and nillable */
+ }
+ }
+ break;
+ case 1:
+ done = 1;
+ grammarID = 4;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 876:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorPosition), END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ if (iso2SensorOrderListType->SensorPosition.arrayLen < iso2SensorOrderListType_SensorPosition_ARRAY_SIZE) {
+ /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
+ errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
+ if(errn == 0) {
+ if(eventCode == 0) {
+ errn = decodeNBitUnsignedInteger(stream, 8, &(uint32));
+ iso2SensorOrderListType->SensorPosition.array[iso2SensorOrderListType->SensorPosition.arrayLen] = (uint8_t)(uint32 + 0);
+ iso2SensorOrderListType->SensorPosition.arrayLen++;
+ } else {
+ /* Second level event (e.g., xsi:type, xsi:nil, ...) */
+ errn = EXI_UNSUPPORTED_EVENT_CODE_CHARACTERISTICS;
+ }
+ }
+ } else {
+ errn = EXI_ERROR_OUT_OF_BOUNDS;
+ }
+ if(errn == 0) {
+ /* valid EE for simple element START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorPosition) ? */
+ errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
+ if(eventCode == 0) {
+ grammarID = 877;
+ } else {
+ errn = EXI_DEVIANT_SUPPORT_NOT_DEPLOYED; /* or also typecast and nillable */
+ }
+ }
+ break;
+ case 1:
+ done = 1;
+ grammarID = 4;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 877:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorPosition), END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ if (iso2SensorOrderListType->SensorPosition.arrayLen < iso2SensorOrderListType_SensorPosition_ARRAY_SIZE) {
+ /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
+ errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
+ if(errn == 0) {
+ if(eventCode == 0) {
+ errn = decodeNBitUnsignedInteger(stream, 8, &(uint32));
+ iso2SensorOrderListType->SensorPosition.array[iso2SensorOrderListType->SensorPosition.arrayLen] = (uint8_t)(uint32 + 0);
+ iso2SensorOrderListType->SensorPosition.arrayLen++;
+ } else {
+ /* Second level event (e.g., xsi:type, xsi:nil, ...) */
+ errn = EXI_UNSUPPORTED_EVENT_CODE_CHARACTERISTICS;
+ }
+ }
+ } else {
+ errn = EXI_ERROR_OUT_OF_BOUNDS;
+ }
+ if(errn == 0) {
+ /* valid EE for simple element START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorPosition) ? */
+ errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
+ if(eventCode == 0) {
+ grammarID = 878;
+ } else {
+ errn = EXI_DEVIANT_SUPPORT_NOT_DEPLOYED; /* or also typecast and nillable */
+ }
+ }
+ break;
+ case 1:
+ done = 1;
+ grammarID = 4;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 878:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorPosition), END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ if (iso2SensorOrderListType->SensorPosition.arrayLen < iso2SensorOrderListType_SensorPosition_ARRAY_SIZE) {
+ /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
+ errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
+ if(errn == 0) {
+ if(eventCode == 0) {
+ errn = decodeNBitUnsignedInteger(stream, 8, &(uint32));
+ iso2SensorOrderListType->SensorPosition.array[iso2SensorOrderListType->SensorPosition.arrayLen] = (uint8_t)(uint32 + 0);
+ iso2SensorOrderListType->SensorPosition.arrayLen++;
+ } else {
+ /* Second level event (e.g., xsi:type, xsi:nil, ...) */
+ errn = EXI_UNSUPPORTED_EVENT_CODE_CHARACTERISTICS;
+ }
+ }
+ } else {
+ errn = EXI_ERROR_OUT_OF_BOUNDS;
+ }
+ if(errn == 0) {
+ /* valid EE for simple element START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorPosition) ? */
+ errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
+ if(eventCode == 0) {
+ grammarID = 879;
+ } else {
+ errn = EXI_DEVIANT_SUPPORT_NOT_DEPLOYED; /* or also typecast and nillable */
+ }
+ }
+ break;
+ case 1:
+ done = 1;
+ grammarID = 4;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 879:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorPosition), END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ if (iso2SensorOrderListType->SensorPosition.arrayLen < iso2SensorOrderListType_SensorPosition_ARRAY_SIZE) {
+ /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
+ errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
+ if(errn == 0) {
+ if(eventCode == 0) {
+ errn = decodeNBitUnsignedInteger(stream, 8, &(uint32));
+ iso2SensorOrderListType->SensorPosition.array[iso2SensorOrderListType->SensorPosition.arrayLen] = (uint8_t)(uint32 + 0);
+ iso2SensorOrderListType->SensorPosition.arrayLen++;
+ } else {
+ /* Second level event (e.g., xsi:type, xsi:nil, ...) */
+ errn = EXI_UNSUPPORTED_EVENT_CODE_CHARACTERISTICS;
+ }
+ }
+ } else {
+ errn = EXI_ERROR_OUT_OF_BOUNDS;
+ }
+ if(errn == 0) {
+ /* valid EE for simple element START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorPosition) ? */
+ errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
+ if(eventCode == 0) {
+ grammarID = 880;
+ } else {
+ errn = EXI_DEVIANT_SUPPORT_NOT_DEPLOYED; /* or also typecast and nillable */
+ }
+ }
+ break;
+ case 1:
+ done = 1;
+ grammarID = 4;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 880:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorPosition), END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ if (iso2SensorOrderListType->SensorPosition.arrayLen < iso2SensorOrderListType_SensorPosition_ARRAY_SIZE) {
+ /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
+ errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
+ if(errn == 0) {
+ if(eventCode == 0) {
+ errn = decodeNBitUnsignedInteger(stream, 8, &(uint32));
+ iso2SensorOrderListType->SensorPosition.array[iso2SensorOrderListType->SensorPosition.arrayLen] = (uint8_t)(uint32 + 0);
+ iso2SensorOrderListType->SensorPosition.arrayLen++;
+ } else {
+ /* Second level event (e.g., xsi:type, xsi:nil, ...) */
+ errn = EXI_UNSUPPORTED_EVENT_CODE_CHARACTERISTICS;
+ }
+ }
+ } else {
+ errn = EXI_ERROR_OUT_OF_BOUNDS;
+ }
+ if(errn == 0) {
+ /* valid EE for simple element START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorPosition) ? */
+ errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
+ if(eventCode == 0) {
+ grammarID = 881;
+ } else {
+ errn = EXI_DEVIANT_SUPPORT_NOT_DEPLOYED; /* or also typecast and nillable */
+ }
+ }
+ break;
+ case 1:
+ done = 1;
+ grammarID = 4;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 881:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorPosition), END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ if (iso2SensorOrderListType->SensorPosition.arrayLen < iso2SensorOrderListType_SensorPosition_ARRAY_SIZE) {
+ /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
+ errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
+ if(errn == 0) {
+ if(eventCode == 0) {
+ errn = decodeNBitUnsignedInteger(stream, 8, &(uint32));
+ iso2SensorOrderListType->SensorPosition.array[iso2SensorOrderListType->SensorPosition.arrayLen] = (uint8_t)(uint32 + 0);
+ iso2SensorOrderListType->SensorPosition.arrayLen++;
+ } else {
+ /* Second level event (e.g., xsi:type, xsi:nil, ...) */
+ errn = EXI_UNSUPPORTED_EVENT_CODE_CHARACTERISTICS;
+ }
+ }
+ } else {
+ errn = EXI_ERROR_OUT_OF_BOUNDS;
+ }
+ if(errn == 0) {
+ /* valid EE for simple element START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorPosition) ? */
+ errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
+ if(eventCode == 0) {
+ grammarID = 882;
+ } else {
+ errn = EXI_DEVIANT_SUPPORT_NOT_DEPLOYED; /* or also typecast and nillable */
+ }
+ }
+ break;
+ case 1:
+ done = 1;
+ grammarID = 4;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 882:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorPosition), END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ if (iso2SensorOrderListType->SensorPosition.arrayLen < iso2SensorOrderListType_SensorPosition_ARRAY_SIZE) {
+ /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
+ errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
+ if(errn == 0) {
+ if(eventCode == 0) {
+ errn = decodeNBitUnsignedInteger(stream, 8, &(uint32));
+ iso2SensorOrderListType->SensorPosition.array[iso2SensorOrderListType->SensorPosition.arrayLen] = (uint8_t)(uint32 + 0);
+ iso2SensorOrderListType->SensorPosition.arrayLen++;
+ } else {
+ /* Second level event (e.g., xsi:type, xsi:nil, ...) */
+ errn = EXI_UNSUPPORTED_EVENT_CODE_CHARACTERISTICS;
+ }
+ }
+ } else {
+ errn = EXI_ERROR_OUT_OF_BOUNDS;
+ }
+ if(errn == 0) {
+ /* valid EE for simple element START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorPosition) ? */
+ errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
+ if(eventCode == 0) {
+ grammarID = 883;
+ } else {
+ errn = EXI_DEVIANT_SUPPORT_NOT_DEPLOYED; /* or also typecast and nillable */
+ }
+ }
+ break;
+ case 1:
+ done = 1;
+ grammarID = 4;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 883:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorPosition), END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ if (iso2SensorOrderListType->SensorPosition.arrayLen < iso2SensorOrderListType_SensorPosition_ARRAY_SIZE) {
+ /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
+ errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
+ if(errn == 0) {
+ if(eventCode == 0) {
+ errn = decodeNBitUnsignedInteger(stream, 8, &(uint32));
+ iso2SensorOrderListType->SensorPosition.array[iso2SensorOrderListType->SensorPosition.arrayLen] = (uint8_t)(uint32 + 0);
+ iso2SensorOrderListType->SensorPosition.arrayLen++;
+ } else {
+ /* Second level event (e.g., xsi:type, xsi:nil, ...) */
+ errn = EXI_UNSUPPORTED_EVENT_CODE_CHARACTERISTICS;
+ }
+ }
+ } else {
+ errn = EXI_ERROR_OUT_OF_BOUNDS;
+ }
+ if(errn == 0) {
+ /* valid EE for simple element START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorPosition) ? */
+ errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
+ if(eventCode == 0) {
+ grammarID = 884;
+ } else {
+ errn = EXI_DEVIANT_SUPPORT_NOT_DEPLOYED; /* or also typecast and nillable */
+ }
+ }
+ break;
+ case 1:
+ done = 1;
+ grammarID = 4;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 884:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorPosition), END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ if (iso2SensorOrderListType->SensorPosition.arrayLen < iso2SensorOrderListType_SensorPosition_ARRAY_SIZE) {
+ /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
+ errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
+ if(errn == 0) {
+ if(eventCode == 0) {
+ errn = decodeNBitUnsignedInteger(stream, 8, &(uint32));
+ iso2SensorOrderListType->SensorPosition.array[iso2SensorOrderListType->SensorPosition.arrayLen] = (uint8_t)(uint32 + 0);
+ iso2SensorOrderListType->SensorPosition.arrayLen++;
+ } else {
+ /* Second level event (e.g., xsi:type, xsi:nil, ...) */
+ errn = EXI_UNSUPPORTED_EVENT_CODE_CHARACTERISTICS;
+ }
+ }
+ } else {
+ errn = EXI_ERROR_OUT_OF_BOUNDS;
+ }
+ if(errn == 0) {
+ /* valid EE for simple element START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorPosition) ? */
+ errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
+ if(eventCode == 0) {
+ grammarID = 885;
+ } else {
+ errn = EXI_DEVIANT_SUPPORT_NOT_DEPLOYED; /* or also typecast and nillable */
+ }
+ }
+ break;
+ case 1:
+ done = 1;
+ grammarID = 4;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 885:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorPosition), END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ if (iso2SensorOrderListType->SensorPosition.arrayLen < iso2SensorOrderListType_SensorPosition_ARRAY_SIZE) {
+ /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
+ errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
+ if(errn == 0) {
+ if(eventCode == 0) {
+ errn = decodeNBitUnsignedInteger(stream, 8, &(uint32));
+ iso2SensorOrderListType->SensorPosition.array[iso2SensorOrderListType->SensorPosition.arrayLen] = (uint8_t)(uint32 + 0);
+ iso2SensorOrderListType->SensorPosition.arrayLen++;
+ } else {
+ /* Second level event (e.g., xsi:type, xsi:nil, ...) */
+ errn = EXI_UNSUPPORTED_EVENT_CODE_CHARACTERISTICS;
+ }
+ }
+ } else {
+ errn = EXI_ERROR_OUT_OF_BOUNDS;
+ }
+ if(errn == 0) {
+ /* valid EE for simple element START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorPosition) ? */
+ errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
+ if(eventCode == 0) {
+ grammarID = 886;
+ } else {
+ errn = EXI_DEVIANT_SUPPORT_NOT_DEPLOYED; /* or also typecast and nillable */
+ }
+ }
+ break;
+ case 1:
+ done = 1;
+ grammarID = 4;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 886:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorPosition), END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ if (iso2SensorOrderListType->SensorPosition.arrayLen < iso2SensorOrderListType_SensorPosition_ARRAY_SIZE) {
+ /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
+ errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
+ if(errn == 0) {
+ if(eventCode == 0) {
+ errn = decodeNBitUnsignedInteger(stream, 8, &(uint32));
+ iso2SensorOrderListType->SensorPosition.array[iso2SensorOrderListType->SensorPosition.arrayLen] = (uint8_t)(uint32 + 0);
+ iso2SensorOrderListType->SensorPosition.arrayLen++;
+ } else {
+ /* Second level event (e.g., xsi:type, xsi:nil, ...) */
+ errn = EXI_UNSUPPORTED_EVENT_CODE_CHARACTERISTICS;
+ }
+ }
+ } else {
+ errn = EXI_ERROR_OUT_OF_BOUNDS;
+ }
+ if(errn == 0) {
+ /* valid EE for simple element START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorPosition) ? */
+ errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
+ if(eventCode == 0) {
+ grammarID = 887;
+ } else {
+ errn = EXI_DEVIANT_SUPPORT_NOT_DEPLOYED; /* or also typecast and nillable */
+ }
+ }
+ break;
+ case 1:
+ done = 1;
+ grammarID = 4;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 887:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorPosition), END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ if (iso2SensorOrderListType->SensorPosition.arrayLen < iso2SensorOrderListType_SensorPosition_ARRAY_SIZE) {
+ /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
+ errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
+ if(errn == 0) {
+ if(eventCode == 0) {
+ errn = decodeNBitUnsignedInteger(stream, 8, &(uint32));
+ iso2SensorOrderListType->SensorPosition.array[iso2SensorOrderListType->SensorPosition.arrayLen] = (uint8_t)(uint32 + 0);
+ iso2SensorOrderListType->SensorPosition.arrayLen++;
+ } else {
+ /* Second level event (e.g., xsi:type, xsi:nil, ...) */
+ errn = EXI_UNSUPPORTED_EVENT_CODE_CHARACTERISTICS;
+ }
+ }
+ } else {
+ errn = EXI_ERROR_OUT_OF_BOUNDS;
+ }
+ if(errn == 0) {
+ /* valid EE for simple element START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorPosition) ? */
+ errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
+ if(eventCode == 0) {
+ grammarID = 888;
+ } else {
+ errn = EXI_DEVIANT_SUPPORT_NOT_DEPLOYED; /* or also typecast and nillable */
+ }
+ }
+ break;
+ case 1:
+ done = 1;
+ grammarID = 4;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 888:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorPosition), END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ if (iso2SensorOrderListType->SensorPosition.arrayLen < iso2SensorOrderListType_SensorPosition_ARRAY_SIZE) {
+ /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
+ errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
+ if(errn == 0) {
+ if(eventCode == 0) {
+ errn = decodeNBitUnsignedInteger(stream, 8, &(uint32));
+ iso2SensorOrderListType->SensorPosition.array[iso2SensorOrderListType->SensorPosition.arrayLen] = (uint8_t)(uint32 + 0);
+ iso2SensorOrderListType->SensorPosition.arrayLen++;
+ } else {
+ /* Second level event (e.g., xsi:type, xsi:nil, ...) */
+ errn = EXI_UNSUPPORTED_EVENT_CODE_CHARACTERISTICS;
+ }
+ }
+ } else {
+ errn = EXI_ERROR_OUT_OF_BOUNDS;
+ }
+ if(errn == 0) {
+ /* valid EE for simple element START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorPosition) ? */
+ errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
+ if(eventCode == 0) {
+ grammarID = 889;
+ } else {
+ errn = EXI_DEVIANT_SUPPORT_NOT_DEPLOYED; /* or also typecast and nillable */
+ }
+ }
+ break;
+ case 1:
+ done = 1;
+ grammarID = 4;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 889:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorPosition), END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ if (iso2SensorOrderListType->SensorPosition.arrayLen < iso2SensorOrderListType_SensorPosition_ARRAY_SIZE) {
+ /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
+ errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
+ if(errn == 0) {
+ if(eventCode == 0) {
+ errn = decodeNBitUnsignedInteger(stream, 8, &(uint32));
+ iso2SensorOrderListType->SensorPosition.array[iso2SensorOrderListType->SensorPosition.arrayLen] = (uint8_t)(uint32 + 0);
+ iso2SensorOrderListType->SensorPosition.arrayLen++;
+ } else {
+ /* Second level event (e.g., xsi:type, xsi:nil, ...) */
+ errn = EXI_UNSUPPORTED_EVENT_CODE_CHARACTERISTICS;
+ }
+ }
+ } else {
+ errn = EXI_ERROR_OUT_OF_BOUNDS;
+ }
+ if(errn == 0) {
+ /* valid EE for simple element START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorPosition) ? */
+ errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
+ if(eventCode == 0) {
+ grammarID = 890;
+ } else {
+ errn = EXI_DEVIANT_SUPPORT_NOT_DEPLOYED; /* or also typecast and nillable */
+ }
+ }
+ break;
+ case 1:
+ done = 1;
+ grammarID = 4;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 890:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorPosition), END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ if (iso2SensorOrderListType->SensorPosition.arrayLen < iso2SensorOrderListType_SensorPosition_ARRAY_SIZE) {
+ /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
+ errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
+ if(errn == 0) {
+ if(eventCode == 0) {
+ errn = decodeNBitUnsignedInteger(stream, 8, &(uint32));
+ iso2SensorOrderListType->SensorPosition.array[iso2SensorOrderListType->SensorPosition.arrayLen] = (uint8_t)(uint32 + 0);
+ iso2SensorOrderListType->SensorPosition.arrayLen++;
+ } else {
+ /* Second level event (e.g., xsi:type, xsi:nil, ...) */
+ errn = EXI_UNSUPPORTED_EVENT_CODE_CHARACTERISTICS;
+ }
+ }
+ } else {
+ errn = EXI_ERROR_OUT_OF_BOUNDS;
+ }
+ if(errn == 0) {
+ /* valid EE for simple element START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorPosition) ? */
+ errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
+ if(eventCode == 0) {
+ grammarID = 891;
+ } else {
+ errn = EXI_DEVIANT_SUPPORT_NOT_DEPLOYED; /* or also typecast and nillable */
+ }
+ }
+ break;
+ case 1:
+ done = 1;
+ grammarID = 4;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 891:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorPosition), END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ if (iso2SensorOrderListType->SensorPosition.arrayLen < iso2SensorOrderListType_SensorPosition_ARRAY_SIZE) {
+ /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
+ errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
+ if(errn == 0) {
+ if(eventCode == 0) {
+ errn = decodeNBitUnsignedInteger(stream, 8, &(uint32));
+ iso2SensorOrderListType->SensorPosition.array[iso2SensorOrderListType->SensorPosition.arrayLen] = (uint8_t)(uint32 + 0);
+ iso2SensorOrderListType->SensorPosition.arrayLen++;
+ } else {
+ /* Second level event (e.g., xsi:type, xsi:nil, ...) */
+ errn = EXI_UNSUPPORTED_EVENT_CODE_CHARACTERISTICS;
+ }
+ }
+ } else {
+ errn = EXI_ERROR_OUT_OF_BOUNDS;
+ }
+ if(errn == 0) {
+ /* valid EE for simple element START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorPosition) ? */
+ errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
+ if(eventCode == 0) {
+ grammarID = 892;
+ } else {
+ errn = EXI_DEVIANT_SUPPORT_NOT_DEPLOYED; /* or also typecast and nillable */
+ }
+ }
+ break;
+ case 1:
+ done = 1;
+ grammarID = 4;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 892:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorPosition), END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ if (iso2SensorOrderListType->SensorPosition.arrayLen < iso2SensorOrderListType_SensorPosition_ARRAY_SIZE) {
+ /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
+ errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
+ if(errn == 0) {
+ if(eventCode == 0) {
+ errn = decodeNBitUnsignedInteger(stream, 8, &(uint32));
+ iso2SensorOrderListType->SensorPosition.array[iso2SensorOrderListType->SensorPosition.arrayLen] = (uint8_t)(uint32 + 0);
+ iso2SensorOrderListType->SensorPosition.arrayLen++;
+ } else {
+ /* Second level event (e.g., xsi:type, xsi:nil, ...) */
+ errn = EXI_UNSUPPORTED_EVENT_CODE_CHARACTERISTICS;
+ }
+ }
+ } else {
+ errn = EXI_ERROR_OUT_OF_BOUNDS;
+ }
+ if(errn == 0) {
+ /* valid EE for simple element START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorPosition) ? */
+ errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
+ if(eventCode == 0) {
+ grammarID = 893;
+ } else {
+ errn = EXI_DEVIANT_SUPPORT_NOT_DEPLOYED; /* or also typecast and nillable */
+ }
+ }
+ break;
+ case 1:
+ done = 1;
+ grammarID = 4;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 893:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorPosition), END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ if (iso2SensorOrderListType->SensorPosition.arrayLen < iso2SensorOrderListType_SensorPosition_ARRAY_SIZE) {
+ /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
+ errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
+ if(errn == 0) {
+ if(eventCode == 0) {
+ errn = decodeNBitUnsignedInteger(stream, 8, &(uint32));
+ iso2SensorOrderListType->SensorPosition.array[iso2SensorOrderListType->SensorPosition.arrayLen] = (uint8_t)(uint32 + 0);
+ iso2SensorOrderListType->SensorPosition.arrayLen++;
+ } else {
+ /* Second level event (e.g., xsi:type, xsi:nil, ...) */
+ errn = EXI_UNSUPPORTED_EVENT_CODE_CHARACTERISTICS;
+ }
+ }
+ } else {
+ errn = EXI_ERROR_OUT_OF_BOUNDS;
+ }
+ if(errn == 0) {
+ /* valid EE for simple element START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorPosition) ? */
+ errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
+ if(eventCode == 0) {
+ grammarID = 894;
+ } else {
+ errn = EXI_DEVIANT_SUPPORT_NOT_DEPLOYED; /* or also typecast and nillable */
+ }
+ }
+ break;
+ case 1:
+ done = 1;
+ grammarID = 4;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 894:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorPosition), END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ if (iso2SensorOrderListType->SensorPosition.arrayLen < iso2SensorOrderListType_SensorPosition_ARRAY_SIZE) {
+ /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
+ errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
+ if(errn == 0) {
+ if(eventCode == 0) {
+ errn = decodeNBitUnsignedInteger(stream, 8, &(uint32));
+ iso2SensorOrderListType->SensorPosition.array[iso2SensorOrderListType->SensorPosition.arrayLen] = (uint8_t)(uint32 + 0);
+ iso2SensorOrderListType->SensorPosition.arrayLen++;
+ } else {
+ /* Second level event (e.g., xsi:type, xsi:nil, ...) */
+ errn = EXI_UNSUPPORTED_EVENT_CODE_CHARACTERISTICS;
+ }
+ }
+ } else {
+ errn = EXI_ERROR_OUT_OF_BOUNDS;
+ }
+ if(errn == 0) {
+ /* valid EE for simple element START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorPosition) ? */
+ errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
+ if(eventCode == 0) {
+ grammarID = 895;
+ } else {
+ errn = EXI_DEVIANT_SUPPORT_NOT_DEPLOYED; /* or also typecast and nillable */
+ }
+ }
+ break;
+ case 1:
+ done = 1;
+ grammarID = 4;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 895:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorPosition), END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ if (iso2SensorOrderListType->SensorPosition.arrayLen < iso2SensorOrderListType_SensorPosition_ARRAY_SIZE) {
+ /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
+ errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
+ if(errn == 0) {
+ if(eventCode == 0) {
+ errn = decodeNBitUnsignedInteger(stream, 8, &(uint32));
+ iso2SensorOrderListType->SensorPosition.array[iso2SensorOrderListType->SensorPosition.arrayLen] = (uint8_t)(uint32 + 0);
+ iso2SensorOrderListType->SensorPosition.arrayLen++;
+ } else {
+ /* Second level event (e.g., xsi:type, xsi:nil, ...) */
+ errn = EXI_UNSUPPORTED_EVENT_CODE_CHARACTERISTICS;
+ }
+ }
+ } else {
+ errn = EXI_ERROR_OUT_OF_BOUNDS;
+ }
+ if(errn == 0) {
+ /* valid EE for simple element START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorPosition) ? */
+ errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
+ if(eventCode == 0) {
+ grammarID = 896;
+ } else {
+ errn = EXI_DEVIANT_SUPPORT_NOT_DEPLOYED; /* or also typecast and nillable */
+ }
+ }
+ break;
+ case 1:
+ done = 1;
+ grammarID = 4;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 896:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorPosition), END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ if (iso2SensorOrderListType->SensorPosition.arrayLen < iso2SensorOrderListType_SensorPosition_ARRAY_SIZE) {
+ /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
+ errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
+ if(errn == 0) {
+ if(eventCode == 0) {
+ errn = decodeNBitUnsignedInteger(stream, 8, &(uint32));
+ iso2SensorOrderListType->SensorPosition.array[iso2SensorOrderListType->SensorPosition.arrayLen] = (uint8_t)(uint32 + 0);
+ iso2SensorOrderListType->SensorPosition.arrayLen++;
+ } else {
+ /* Second level event (e.g., xsi:type, xsi:nil, ...) */
+ errn = EXI_UNSUPPORTED_EVENT_CODE_CHARACTERISTICS;
+ }
+ }
+ } else {
+ errn = EXI_ERROR_OUT_OF_BOUNDS;
+ }
+ if(errn == 0) {
+ /* valid EE for simple element START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorPosition) ? */
+ errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
+ if(eventCode == 0) {
+ grammarID = 897;
+ } else {
+ errn = EXI_DEVIANT_SUPPORT_NOT_DEPLOYED; /* or also typecast and nillable */
+ }
+ }
+ break;
+ case 1:
+ done = 1;
+ grammarID = 4;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 897:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorPosition), END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ if (iso2SensorOrderListType->SensorPosition.arrayLen < iso2SensorOrderListType_SensorPosition_ARRAY_SIZE) {
+ /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
+ errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
+ if(errn == 0) {
+ if(eventCode == 0) {
+ errn = decodeNBitUnsignedInteger(stream, 8, &(uint32));
+ iso2SensorOrderListType->SensorPosition.array[iso2SensorOrderListType->SensorPosition.arrayLen] = (uint8_t)(uint32 + 0);
+ iso2SensorOrderListType->SensorPosition.arrayLen++;
+ } else {
+ /* Second level event (e.g., xsi:type, xsi:nil, ...) */
+ errn = EXI_UNSUPPORTED_EVENT_CODE_CHARACTERISTICS;
+ }
+ }
+ } else {
+ errn = EXI_ERROR_OUT_OF_BOUNDS;
+ }
+ if(errn == 0) {
+ /* valid EE for simple element START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorPosition) ? */
+ errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
+ if(eventCode == 0) {
+ grammarID = 898;
+ } else {
+ errn = EXI_DEVIANT_SUPPORT_NOT_DEPLOYED; /* or also typecast and nillable */
+ }
+ }
+ break;
+ case 1:
+ done = 1;
+ grammarID = 4;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 898:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorPosition), END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ if (iso2SensorOrderListType->SensorPosition.arrayLen < iso2SensorOrderListType_SensorPosition_ARRAY_SIZE) {
+ /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
+ errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
+ if(errn == 0) {
+ if(eventCode == 0) {
+ errn = decodeNBitUnsignedInteger(stream, 8, &(uint32));
+ iso2SensorOrderListType->SensorPosition.array[iso2SensorOrderListType->SensorPosition.arrayLen] = (uint8_t)(uint32 + 0);
+ iso2SensorOrderListType->SensorPosition.arrayLen++;
+ } else {
+ /* Second level event (e.g., xsi:type, xsi:nil, ...) */
+ errn = EXI_UNSUPPORTED_EVENT_CODE_CHARACTERISTICS;
+ }
+ }
+ } else {
+ errn = EXI_ERROR_OUT_OF_BOUNDS;
+ }
+ if(errn == 0) {
+ /* valid EE for simple element START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorPosition) ? */
+ errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
+ if(eventCode == 0) {
+ grammarID = 899;
+ } else {
+ errn = EXI_DEVIANT_SUPPORT_NOT_DEPLOYED; /* or also typecast and nillable */
+ }
+ }
+ break;
+ case 1:
+ done = 1;
+ grammarID = 4;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 899:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorPosition), END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ if (iso2SensorOrderListType->SensorPosition.arrayLen < iso2SensorOrderListType_SensorPosition_ARRAY_SIZE) {
+ /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
+ errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
+ if(errn == 0) {
+ if(eventCode == 0) {
+ errn = decodeNBitUnsignedInteger(stream, 8, &(uint32));
+ iso2SensorOrderListType->SensorPosition.array[iso2SensorOrderListType->SensorPosition.arrayLen] = (uint8_t)(uint32 + 0);
+ iso2SensorOrderListType->SensorPosition.arrayLen++;
+ } else {
+ /* Second level event (e.g., xsi:type, xsi:nil, ...) */
+ errn = EXI_UNSUPPORTED_EVENT_CODE_CHARACTERISTICS;
+ }
+ }
+ } else {
+ errn = EXI_ERROR_OUT_OF_BOUNDS;
+ }
+ if(errn == 0) {
+ /* valid EE for simple element START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorPosition) ? */
+ errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
+ if(eventCode == 0) {
+ grammarID = 900;
+ } else {
+ errn = EXI_DEVIANT_SUPPORT_NOT_DEPLOYED; /* or also typecast and nillable */
+ }
+ }
+ break;
+ case 1:
+ done = 1;
+ grammarID = 4;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 900:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorPosition), END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ if (iso2SensorOrderListType->SensorPosition.arrayLen < iso2SensorOrderListType_SensorPosition_ARRAY_SIZE) {
+ /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
+ errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
+ if(errn == 0) {
+ if(eventCode == 0) {
+ errn = decodeNBitUnsignedInteger(stream, 8, &(uint32));
+ iso2SensorOrderListType->SensorPosition.array[iso2SensorOrderListType->SensorPosition.arrayLen] = (uint8_t)(uint32 + 0);
+ iso2SensorOrderListType->SensorPosition.arrayLen++;
+ } else {
+ /* Second level event (e.g., xsi:type, xsi:nil, ...) */
+ errn = EXI_UNSUPPORTED_EVENT_CODE_CHARACTERISTICS;
+ }
+ }
+ } else {
+ errn = EXI_ERROR_OUT_OF_BOUNDS;
+ }
+ if(errn == 0) {
+ /* valid EE for simple element START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorPosition) ? */
+ errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
+ if(eventCode == 0) {
+ grammarID = 901;
+ } else {
+ errn = EXI_DEVIANT_SUPPORT_NOT_DEPLOYED; /* or also typecast and nillable */
+ }
+ }
+ break;
+ case 1:
+ done = 1;
+ grammarID = 4;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 901:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorPosition), END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ if (iso2SensorOrderListType->SensorPosition.arrayLen < iso2SensorOrderListType_SensorPosition_ARRAY_SIZE) {
+ /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
+ errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
+ if(errn == 0) {
+ if(eventCode == 0) {
+ errn = decodeNBitUnsignedInteger(stream, 8, &(uint32));
+ iso2SensorOrderListType->SensorPosition.array[iso2SensorOrderListType->SensorPosition.arrayLen] = (uint8_t)(uint32 + 0);
+ iso2SensorOrderListType->SensorPosition.arrayLen++;
+ } else {
+ /* Second level event (e.g., xsi:type, xsi:nil, ...) */
+ errn = EXI_UNSUPPORTED_EVENT_CODE_CHARACTERISTICS;
+ }
+ }
+ } else {
+ errn = EXI_ERROR_OUT_OF_BOUNDS;
+ }
+ if(errn == 0) {
+ /* valid EE for simple element START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorPosition) ? */
+ errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
+ if(eventCode == 0) {
+ grammarID = 902;
+ } else {
+ errn = EXI_DEVIANT_SUPPORT_NOT_DEPLOYED; /* or also typecast and nillable */
+ }
+ }
+ break;
+ case 1:
+ done = 1;
+ grammarID = 4;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 902:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorPosition), END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ if (iso2SensorOrderListType->SensorPosition.arrayLen < iso2SensorOrderListType_SensorPosition_ARRAY_SIZE) {
+ /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
+ errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
+ if(errn == 0) {
+ if(eventCode == 0) {
+ errn = decodeNBitUnsignedInteger(stream, 8, &(uint32));
+ iso2SensorOrderListType->SensorPosition.array[iso2SensorOrderListType->SensorPosition.arrayLen] = (uint8_t)(uint32 + 0);
+ iso2SensorOrderListType->SensorPosition.arrayLen++;
+ } else {
+ /* Second level event (e.g., xsi:type, xsi:nil, ...) */
+ errn = EXI_UNSUPPORTED_EVENT_CODE_CHARACTERISTICS;
+ }
+ }
+ } else {
+ errn = EXI_ERROR_OUT_OF_BOUNDS;
+ }
+ if(errn == 0) {
+ /* valid EE for simple element START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorPosition) ? */
+ errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
+ if(eventCode == 0) {
+ grammarID = 903;
+ } else {
+ errn = EXI_DEVIANT_SUPPORT_NOT_DEPLOYED; /* or also typecast and nillable */
+ }
+ }
+ break;
+ case 1:
+ done = 1;
+ grammarID = 4;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 903:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorPosition), END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ if (iso2SensorOrderListType->SensorPosition.arrayLen < iso2SensorOrderListType_SensorPosition_ARRAY_SIZE) {
+ /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
+ errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
+ if(errn == 0) {
+ if(eventCode == 0) {
+ errn = decodeNBitUnsignedInteger(stream, 8, &(uint32));
+ iso2SensorOrderListType->SensorPosition.array[iso2SensorOrderListType->SensorPosition.arrayLen] = (uint8_t)(uint32 + 0);
+ iso2SensorOrderListType->SensorPosition.arrayLen++;
+ } else {
+ /* Second level event (e.g., xsi:type, xsi:nil, ...) */
+ errn = EXI_UNSUPPORTED_EVENT_CODE_CHARACTERISTICS;
+ }
+ }
+ } else {
+ errn = EXI_ERROR_OUT_OF_BOUNDS;
+ }
+ if(errn == 0) {
+ /* valid EE for simple element START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorPosition) ? */
+ errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
+ if(eventCode == 0) {
+ grammarID = 904;
+ } else {
+ errn = EXI_DEVIANT_SUPPORT_NOT_DEPLOYED; /* or also typecast and nillable */
+ }
+ }
+ break;
+ case 1:
+ done = 1;
+ grammarID = 4;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 904:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorPosition), END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ if (iso2SensorOrderListType->SensorPosition.arrayLen < iso2SensorOrderListType_SensorPosition_ARRAY_SIZE) {
+ /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
+ errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
+ if(errn == 0) {
+ if(eventCode == 0) {
+ errn = decodeNBitUnsignedInteger(stream, 8, &(uint32));
+ iso2SensorOrderListType->SensorPosition.array[iso2SensorOrderListType->SensorPosition.arrayLen] = (uint8_t)(uint32 + 0);
+ iso2SensorOrderListType->SensorPosition.arrayLen++;
+ } else {
+ /* Second level event (e.g., xsi:type, xsi:nil, ...) */
+ errn = EXI_UNSUPPORTED_EVENT_CODE_CHARACTERISTICS;
+ }
+ }
+ } else {
+ errn = EXI_ERROR_OUT_OF_BOUNDS;
+ }
+ if(errn == 0) {
+ /* valid EE for simple element START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorPosition) ? */
+ errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
+ if(eventCode == 0) {
+ grammarID = 905;
+ } else {
+ errn = EXI_DEVIANT_SUPPORT_NOT_DEPLOYED; /* or also typecast and nillable */
+ }
+ }
+ break;
+ case 1:
+ done = 1;
+ grammarID = 4;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 905:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorPosition), END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ if (iso2SensorOrderListType->SensorPosition.arrayLen < iso2SensorOrderListType_SensorPosition_ARRAY_SIZE) {
+ /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
+ errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
+ if(errn == 0) {
+ if(eventCode == 0) {
+ errn = decodeNBitUnsignedInteger(stream, 8, &(uint32));
+ iso2SensorOrderListType->SensorPosition.array[iso2SensorOrderListType->SensorPosition.arrayLen] = (uint8_t)(uint32 + 0);
+ iso2SensorOrderListType->SensorPosition.arrayLen++;
+ } else {
+ /* Second level event (e.g., xsi:type, xsi:nil, ...) */
+ errn = EXI_UNSUPPORTED_EVENT_CODE_CHARACTERISTICS;
+ }
+ }
+ } else {
+ errn = EXI_ERROR_OUT_OF_BOUNDS;
+ }
+ if(errn == 0) {
+ /* valid EE for simple element START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorPosition) ? */
+ errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
+ if(eventCode == 0) {
+ grammarID = 906;
+ } else {
+ errn = EXI_DEVIANT_SUPPORT_NOT_DEPLOYED; /* or also typecast and nillable */
+ }
+ }
+ break;
+ case 1:
+ done = 1;
+ grammarID = 4;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 906:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorPosition), END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ if (iso2SensorOrderListType->SensorPosition.arrayLen < iso2SensorOrderListType_SensorPosition_ARRAY_SIZE) {
+ /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
+ errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
+ if(errn == 0) {
+ if(eventCode == 0) {
+ errn = decodeNBitUnsignedInteger(stream, 8, &(uint32));
+ iso2SensorOrderListType->SensorPosition.array[iso2SensorOrderListType->SensorPosition.arrayLen] = (uint8_t)(uint32 + 0);
+ iso2SensorOrderListType->SensorPosition.arrayLen++;
+ } else {
+ /* Second level event (e.g., xsi:type, xsi:nil, ...) */
+ errn = EXI_UNSUPPORTED_EVENT_CODE_CHARACTERISTICS;
+ }
+ }
+ } else {
+ errn = EXI_ERROR_OUT_OF_BOUNDS;
+ }
+ if(errn == 0) {
+ /* valid EE for simple element START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorPosition) ? */
+ errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
+ if(eventCode == 0) {
+ grammarID = 907;
+ } else {
+ errn = EXI_DEVIANT_SUPPORT_NOT_DEPLOYED; /* or also typecast and nillable */
+ }
+ }
+ break;
+ case 1:
+ done = 1;
+ grammarID = 4;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 907:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorPosition), END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ if (iso2SensorOrderListType->SensorPosition.arrayLen < iso2SensorOrderListType_SensorPosition_ARRAY_SIZE) {
+ /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
+ errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
+ if(errn == 0) {
+ if(eventCode == 0) {
+ errn = decodeNBitUnsignedInteger(stream, 8, &(uint32));
+ iso2SensorOrderListType->SensorPosition.array[iso2SensorOrderListType->SensorPosition.arrayLen] = (uint8_t)(uint32 + 0);
+ iso2SensorOrderListType->SensorPosition.arrayLen++;
+ } else {
+ /* Second level event (e.g., xsi:type, xsi:nil, ...) */
+ errn = EXI_UNSUPPORTED_EVENT_CODE_CHARACTERISTICS;
+ }
+ }
+ } else {
+ errn = EXI_ERROR_OUT_OF_BOUNDS;
+ }
+ if(errn == 0) {
+ /* valid EE for simple element START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorPosition) ? */
+ errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
+ if(eventCode == 0) {
+ grammarID = 908;
+ } else {
+ errn = EXI_DEVIANT_SUPPORT_NOT_DEPLOYED; /* or also typecast and nillable */
+ }
+ }
+ break;
+ case 1:
+ done = 1;
+ grammarID = 4;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 908:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorPosition), END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ if (iso2SensorOrderListType->SensorPosition.arrayLen < iso2SensorOrderListType_SensorPosition_ARRAY_SIZE) {
+ /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
+ errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
+ if(errn == 0) {
+ if(eventCode == 0) {
+ errn = decodeNBitUnsignedInteger(stream, 8, &(uint32));
+ iso2SensorOrderListType->SensorPosition.array[iso2SensorOrderListType->SensorPosition.arrayLen] = (uint8_t)(uint32 + 0);
+ iso2SensorOrderListType->SensorPosition.arrayLen++;
+ } else {
+ /* Second level event (e.g., xsi:type, xsi:nil, ...) */
+ errn = EXI_UNSUPPORTED_EVENT_CODE_CHARACTERISTICS;
+ }
+ }
+ } else {
+ errn = EXI_ERROR_OUT_OF_BOUNDS;
+ }
+ if(errn == 0) {
+ /* valid EE for simple element START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorPosition) ? */
+ errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
+ if(eventCode == 0) {
+ grammarID = 909;
+ } else {
+ errn = EXI_DEVIANT_SUPPORT_NOT_DEPLOYED; /* or also typecast and nillable */
+ }
+ }
+ break;
+ case 1:
+ done = 1;
+ grammarID = 4;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 909:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorPosition), END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ if (iso2SensorOrderListType->SensorPosition.arrayLen < iso2SensorOrderListType_SensorPosition_ARRAY_SIZE) {
+ /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
+ errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
+ if(errn == 0) {
+ if(eventCode == 0) {
+ errn = decodeNBitUnsignedInteger(stream, 8, &(uint32));
+ iso2SensorOrderListType->SensorPosition.array[iso2SensorOrderListType->SensorPosition.arrayLen] = (uint8_t)(uint32 + 0);
+ iso2SensorOrderListType->SensorPosition.arrayLen++;
+ } else {
+ /* Second level event (e.g., xsi:type, xsi:nil, ...) */
+ errn = EXI_UNSUPPORTED_EVENT_CODE_CHARACTERISTICS;
+ }
+ }
+ } else {
+ errn = EXI_ERROR_OUT_OF_BOUNDS;
+ }
+ if(errn == 0) {
+ /* valid EE for simple element START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorPosition) ? */
+ errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
+ if(eventCode == 0) {
+ grammarID = 910;
+ } else {
+ errn = EXI_DEVIANT_SUPPORT_NOT_DEPLOYED; /* or also typecast and nillable */
+ }
+ }
+ break;
+ case 1:
+ done = 1;
+ grammarID = 4;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 910:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorPosition), END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ if (iso2SensorOrderListType->SensorPosition.arrayLen < iso2SensorOrderListType_SensorPosition_ARRAY_SIZE) {
+ /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
+ errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
+ if(errn == 0) {
+ if(eventCode == 0) {
+ errn = decodeNBitUnsignedInteger(stream, 8, &(uint32));
+ iso2SensorOrderListType->SensorPosition.array[iso2SensorOrderListType->SensorPosition.arrayLen] = (uint8_t)(uint32 + 0);
+ iso2SensorOrderListType->SensorPosition.arrayLen++;
+ } else {
+ /* Second level event (e.g., xsi:type, xsi:nil, ...) */
+ errn = EXI_UNSUPPORTED_EVENT_CODE_CHARACTERISTICS;
+ }
+ }
+ } else {
+ errn = EXI_ERROR_OUT_OF_BOUNDS;
+ }
+ if(errn == 0) {
+ /* valid EE for simple element START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorPosition) ? */
+ errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
+ if(eventCode == 0) {
+ grammarID = 911;
+ } else {
+ errn = EXI_DEVIANT_SUPPORT_NOT_DEPLOYED; /* or also typecast and nillable */
+ }
+ }
+ break;
+ case 1:
+ done = 1;
+ grammarID = 4;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 911:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorPosition), END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ if (iso2SensorOrderListType->SensorPosition.arrayLen < iso2SensorOrderListType_SensorPosition_ARRAY_SIZE) {
+ /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
+ errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
+ if(errn == 0) {
+ if(eventCode == 0) {
+ errn = decodeNBitUnsignedInteger(stream, 8, &(uint32));
+ iso2SensorOrderListType->SensorPosition.array[iso2SensorOrderListType->SensorPosition.arrayLen] = (uint8_t)(uint32 + 0);
+ iso2SensorOrderListType->SensorPosition.arrayLen++;
+ } else {
+ /* Second level event (e.g., xsi:type, xsi:nil, ...) */
+ errn = EXI_UNSUPPORTED_EVENT_CODE_CHARACTERISTICS;
+ }
+ }
+ } else {
+ errn = EXI_ERROR_OUT_OF_BOUNDS;
+ }
+ if(errn == 0) {
+ /* valid EE for simple element START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorPosition) ? */
+ errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
+ if(eventCode == 0) {
+ grammarID = 912;
+ } else {
+ errn = EXI_DEVIANT_SUPPORT_NOT_DEPLOYED; /* or also typecast and nillable */
+ }
+ }
+ break;
+ case 1:
+ done = 1;
+ grammarID = 4;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 912:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorPosition), END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ if (iso2SensorOrderListType->SensorPosition.arrayLen < iso2SensorOrderListType_SensorPosition_ARRAY_SIZE) {
+ /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
+ errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
+ if(errn == 0) {
+ if(eventCode == 0) {
+ errn = decodeNBitUnsignedInteger(stream, 8, &(uint32));
+ iso2SensorOrderListType->SensorPosition.array[iso2SensorOrderListType->SensorPosition.arrayLen] = (uint8_t)(uint32 + 0);
+ iso2SensorOrderListType->SensorPosition.arrayLen++;
+ } else {
+ /* Second level event (e.g., xsi:type, xsi:nil, ...) */
+ errn = EXI_UNSUPPORTED_EVENT_CODE_CHARACTERISTICS;
+ }
+ }
+ } else {
+ errn = EXI_ERROR_OUT_OF_BOUNDS;
+ }
+ if(errn == 0) {
+ /* valid EE for simple element START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorPosition) ? */
+ errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
+ if(eventCode == 0) {
+ grammarID = 913;
+ } else {
+ errn = EXI_DEVIANT_SUPPORT_NOT_DEPLOYED; /* or also typecast and nillable */
+ }
+ }
+ break;
+ case 1:
+ done = 1;
+ grammarID = 4;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 913:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorPosition), END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ if (iso2SensorOrderListType->SensorPosition.arrayLen < iso2SensorOrderListType_SensorPosition_ARRAY_SIZE) {
+ /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
+ errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
+ if(errn == 0) {
+ if(eventCode == 0) {
+ errn = decodeNBitUnsignedInteger(stream, 8, &(uint32));
+ iso2SensorOrderListType->SensorPosition.array[iso2SensorOrderListType->SensorPosition.arrayLen] = (uint8_t)(uint32 + 0);
+ iso2SensorOrderListType->SensorPosition.arrayLen++;
+ } else {
+ /* Second level event (e.g., xsi:type, xsi:nil, ...) */
+ errn = EXI_UNSUPPORTED_EVENT_CODE_CHARACTERISTICS;
+ }
+ }
+ } else {
+ errn = EXI_ERROR_OUT_OF_BOUNDS;
+ }
+ if(errn == 0) {
+ /* valid EE for simple element START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorPosition) ? */
+ errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
+ if(eventCode == 0) {
+ grammarID = 914;
+ } else {
+ errn = EXI_DEVIANT_SUPPORT_NOT_DEPLOYED; /* or also typecast and nillable */
+ }
+ }
+ break;
+ case 1:
+ done = 1;
+ grammarID = 4;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 914:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorPosition), END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ if (iso2SensorOrderListType->SensorPosition.arrayLen < iso2SensorOrderListType_SensorPosition_ARRAY_SIZE) {
+ /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
+ errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
+ if(errn == 0) {
+ if(eventCode == 0) {
+ errn = decodeNBitUnsignedInteger(stream, 8, &(uint32));
+ iso2SensorOrderListType->SensorPosition.array[iso2SensorOrderListType->SensorPosition.arrayLen] = (uint8_t)(uint32 + 0);
+ iso2SensorOrderListType->SensorPosition.arrayLen++;
+ } else {
+ /* Second level event (e.g., xsi:type, xsi:nil, ...) */
+ errn = EXI_UNSUPPORTED_EVENT_CODE_CHARACTERISTICS;
+ }
+ }
+ } else {
+ errn = EXI_ERROR_OUT_OF_BOUNDS;
+ }
+ if(errn == 0) {
+ /* valid EE for simple element START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorPosition) ? */
+ errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
+ if(eventCode == 0) {
+ grammarID = 915;
+ } else {
+ errn = EXI_DEVIANT_SUPPORT_NOT_DEPLOYED; /* or also typecast and nillable */
+ }
+ }
+ break;
+ case 1:
+ done = 1;
+ grammarID = 4;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 915:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorPosition), END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ if (iso2SensorOrderListType->SensorPosition.arrayLen < iso2SensorOrderListType_SensorPosition_ARRAY_SIZE) {
+ /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
+ errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
+ if(errn == 0) {
+ if(eventCode == 0) {
+ errn = decodeNBitUnsignedInteger(stream, 8, &(uint32));
+ iso2SensorOrderListType->SensorPosition.array[iso2SensorOrderListType->SensorPosition.arrayLen] = (uint8_t)(uint32 + 0);
+ iso2SensorOrderListType->SensorPosition.arrayLen++;
+ } else {
+ /* Second level event (e.g., xsi:type, xsi:nil, ...) */
+ errn = EXI_UNSUPPORTED_EVENT_CODE_CHARACTERISTICS;
+ }
+ }
+ } else {
+ errn = EXI_ERROR_OUT_OF_BOUNDS;
+ }
+ if(errn == 0) {
+ /* valid EE for simple element START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorPosition) ? */
+ errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
+ if(eventCode == 0) {
+ grammarID = 916;
+ } else {
+ errn = EXI_DEVIANT_SUPPORT_NOT_DEPLOYED; /* or also typecast and nillable */
+ }
+ }
+ break;
+ case 1:
+ done = 1;
+ grammarID = 4;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 916:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorPosition), END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ if (iso2SensorOrderListType->SensorPosition.arrayLen < iso2SensorOrderListType_SensorPosition_ARRAY_SIZE) {
+ /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
+ errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
+ if(errn == 0) {
+ if(eventCode == 0) {
+ errn = decodeNBitUnsignedInteger(stream, 8, &(uint32));
+ iso2SensorOrderListType->SensorPosition.array[iso2SensorOrderListType->SensorPosition.arrayLen] = (uint8_t)(uint32 + 0);
+ iso2SensorOrderListType->SensorPosition.arrayLen++;
+ } else {
+ /* Second level event (e.g., xsi:type, xsi:nil, ...) */
+ errn = EXI_UNSUPPORTED_EVENT_CODE_CHARACTERISTICS;
+ }
+ }
+ } else {
+ errn = EXI_ERROR_OUT_OF_BOUNDS;
+ }
+ if(errn == 0) {
+ /* valid EE for simple element START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorPosition) ? */
+ errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
+ if(eventCode == 0) {
+ grammarID = 917;
+ } else {
+ errn = EXI_DEVIANT_SUPPORT_NOT_DEPLOYED; /* or also typecast and nillable */
+ }
+ }
+ break;
+ case 1:
+ done = 1;
+ grammarID = 4;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 917:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorPosition), END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ if (iso2SensorOrderListType->SensorPosition.arrayLen < iso2SensorOrderListType_SensorPosition_ARRAY_SIZE) {
+ /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
+ errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
+ if(errn == 0) {
+ if(eventCode == 0) {
+ errn = decodeNBitUnsignedInteger(stream, 8, &(uint32));
+ iso2SensorOrderListType->SensorPosition.array[iso2SensorOrderListType->SensorPosition.arrayLen] = (uint8_t)(uint32 + 0);
+ iso2SensorOrderListType->SensorPosition.arrayLen++;
+ } else {
+ /* Second level event (e.g., xsi:type, xsi:nil, ...) */
+ errn = EXI_UNSUPPORTED_EVENT_CODE_CHARACTERISTICS;
+ }
+ }
+ } else {
+ errn = EXI_ERROR_OUT_OF_BOUNDS;
+ }
+ if(errn == 0) {
+ /* valid EE for simple element START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorPosition) ? */
+ errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
+ if(eventCode == 0) {
+ grammarID = 918;
+ } else {
+ errn = EXI_DEVIANT_SUPPORT_NOT_DEPLOYED; /* or also typecast and nillable */
+ }
+ }
+ break;
+ case 1:
+ done = 1;
+ grammarID = 4;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 918:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorPosition), END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ if (iso2SensorOrderListType->SensorPosition.arrayLen < iso2SensorOrderListType_SensorPosition_ARRAY_SIZE) {
+ /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
+ errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
+ if(errn == 0) {
+ if(eventCode == 0) {
+ errn = decodeNBitUnsignedInteger(stream, 8, &(uint32));
+ iso2SensorOrderListType->SensorPosition.array[iso2SensorOrderListType->SensorPosition.arrayLen] = (uint8_t)(uint32 + 0);
+ iso2SensorOrderListType->SensorPosition.arrayLen++;
+ } else {
+ /* Second level event (e.g., xsi:type, xsi:nil, ...) */
+ errn = EXI_UNSUPPORTED_EVENT_CODE_CHARACTERISTICS;
+ }
+ }
+ } else {
+ errn = EXI_ERROR_OUT_OF_BOUNDS;
+ }
+ if(errn == 0) {
+ /* valid EE for simple element START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorPosition) ? */
+ errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
+ if(eventCode == 0) {
+ grammarID = 919;
+ } else {
+ errn = EXI_DEVIANT_SUPPORT_NOT_DEPLOYED; /* or also typecast and nillable */
+ }
+ }
+ break;
+ case 1:
+ done = 1;
+ grammarID = 4;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 919:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorPosition), END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ if (iso2SensorOrderListType->SensorPosition.arrayLen < iso2SensorOrderListType_SensorPosition_ARRAY_SIZE) {
+ /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
+ errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
+ if(errn == 0) {
+ if(eventCode == 0) {
+ errn = decodeNBitUnsignedInteger(stream, 8, &(uint32));
+ iso2SensorOrderListType->SensorPosition.array[iso2SensorOrderListType->SensorPosition.arrayLen] = (uint8_t)(uint32 + 0);
+ iso2SensorOrderListType->SensorPosition.arrayLen++;
+ } else {
+ /* Second level event (e.g., xsi:type, xsi:nil, ...) */
+ errn = EXI_UNSUPPORTED_EVENT_CODE_CHARACTERISTICS;
+ }
+ }
+ } else {
+ errn = EXI_ERROR_OUT_OF_BOUNDS;
+ }
+ if(errn == 0) {
+ /* valid EE for simple element START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorPosition) ? */
+ errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
+ if(eventCode == 0) {
+ grammarID = 920;
+ } else {
+ errn = EXI_DEVIANT_SUPPORT_NOT_DEPLOYED; /* or also typecast and nillable */
+ }
+ }
+ break;
+ case 1:
+ done = 1;
+ grammarID = 4;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 920:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorPosition), END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ if (iso2SensorOrderListType->SensorPosition.arrayLen < iso2SensorOrderListType_SensorPosition_ARRAY_SIZE) {
+ /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
+ errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
+ if(errn == 0) {
+ if(eventCode == 0) {
+ errn = decodeNBitUnsignedInteger(stream, 8, &(uint32));
+ iso2SensorOrderListType->SensorPosition.array[iso2SensorOrderListType->SensorPosition.arrayLen] = (uint8_t)(uint32 + 0);
+ iso2SensorOrderListType->SensorPosition.arrayLen++;
+ } else {
+ /* Second level event (e.g., xsi:type, xsi:nil, ...) */
+ errn = EXI_UNSUPPORTED_EVENT_CODE_CHARACTERISTICS;
+ }
+ }
+ } else {
+ errn = EXI_ERROR_OUT_OF_BOUNDS;
+ }
+ if(errn == 0) {
+ /* valid EE for simple element START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorPosition) ? */
+ errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
+ if(eventCode == 0) {
+ grammarID = 921;
+ } else {
+ errn = EXI_DEVIANT_SUPPORT_NOT_DEPLOYED; /* or also typecast and nillable */
+ }
+ }
+ break;
+ case 1:
+ done = 1;
+ grammarID = 4;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 921:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorPosition), END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ if (iso2SensorOrderListType->SensorPosition.arrayLen < iso2SensorOrderListType_SensorPosition_ARRAY_SIZE) {
+ /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
+ errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
+ if(errn == 0) {
+ if(eventCode == 0) {
+ errn = decodeNBitUnsignedInteger(stream, 8, &(uint32));
+ iso2SensorOrderListType->SensorPosition.array[iso2SensorOrderListType->SensorPosition.arrayLen] = (uint8_t)(uint32 + 0);
+ iso2SensorOrderListType->SensorPosition.arrayLen++;
+ } else {
+ /* Second level event (e.g., xsi:type, xsi:nil, ...) */
+ errn = EXI_UNSUPPORTED_EVENT_CODE_CHARACTERISTICS;
+ }
+ }
+ } else {
+ errn = EXI_ERROR_OUT_OF_BOUNDS;
+ }
+ if(errn == 0) {
+ /* valid EE for simple element START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorPosition) ? */
+ errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
+ if(eventCode == 0) {
+ grammarID = 922;
+ } else {
+ errn = EXI_DEVIANT_SUPPORT_NOT_DEPLOYED; /* or also typecast and nillable */
+ }
+ }
+ break;
+ case 1:
+ done = 1;
+ grammarID = 4;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 922:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorPosition), END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ if (iso2SensorOrderListType->SensorPosition.arrayLen < iso2SensorOrderListType_SensorPosition_ARRAY_SIZE) {
+ /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
+ errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
+ if(errn == 0) {
+ if(eventCode == 0) {
+ errn = decodeNBitUnsignedInteger(stream, 8, &(uint32));
+ iso2SensorOrderListType->SensorPosition.array[iso2SensorOrderListType->SensorPosition.arrayLen] = (uint8_t)(uint32 + 0);
+ iso2SensorOrderListType->SensorPosition.arrayLen++;
+ } else {
+ /* Second level event (e.g., xsi:type, xsi:nil, ...) */
+ errn = EXI_UNSUPPORTED_EVENT_CODE_CHARACTERISTICS;
+ }
+ }
+ } else {
+ errn = EXI_ERROR_OUT_OF_BOUNDS;
+ }
+ if(errn == 0) {
+ /* valid EE for simple element START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorPosition) ? */
+ errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
+ if(eventCode == 0) {
+ grammarID = 923;
+ } else {
+ errn = EXI_DEVIANT_SUPPORT_NOT_DEPLOYED; /* or also typecast and nillable */
+ }
+ }
+ break;
+ case 1:
+ done = 1;
+ grammarID = 4;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 923:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorPosition), END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ if (iso2SensorOrderListType->SensorPosition.arrayLen < iso2SensorOrderListType_SensorPosition_ARRAY_SIZE) {
+ /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
+ errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
+ if(errn == 0) {
+ if(eventCode == 0) {
+ errn = decodeNBitUnsignedInteger(stream, 8, &(uint32));
+ iso2SensorOrderListType->SensorPosition.array[iso2SensorOrderListType->SensorPosition.arrayLen] = (uint8_t)(uint32 + 0);
+ iso2SensorOrderListType->SensorPosition.arrayLen++;
+ } else {
+ /* Second level event (e.g., xsi:type, xsi:nil, ...) */
+ errn = EXI_UNSUPPORTED_EVENT_CODE_CHARACTERISTICS;
+ }
+ }
+ } else {
+ errn = EXI_ERROR_OUT_OF_BOUNDS;
+ }
+ if(errn == 0) {
+ /* valid EE for simple element START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorPosition) ? */
+ errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
+ if(eventCode == 0) {
+ grammarID = 924;
+ } else {
+ errn = EXI_DEVIANT_SUPPORT_NOT_DEPLOYED; /* or also typecast and nillable */
+ }
+ }
+ break;
+ case 1:
+ done = 1;
+ grammarID = 4;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 924:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorPosition), END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ if (iso2SensorOrderListType->SensorPosition.arrayLen < iso2SensorOrderListType_SensorPosition_ARRAY_SIZE) {
+ /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
+ errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
+ if(errn == 0) {
+ if(eventCode == 0) {
+ errn = decodeNBitUnsignedInteger(stream, 8, &(uint32));
+ iso2SensorOrderListType->SensorPosition.array[iso2SensorOrderListType->SensorPosition.arrayLen] = (uint8_t)(uint32 + 0);
+ iso2SensorOrderListType->SensorPosition.arrayLen++;
+ } else {
+ /* Second level event (e.g., xsi:type, xsi:nil, ...) */
+ errn = EXI_UNSUPPORTED_EVENT_CODE_CHARACTERISTICS;
+ }
+ }
+ } else {
+ errn = EXI_ERROR_OUT_OF_BOUNDS;
+ }
+ if(errn == 0) {
+ /* valid EE for simple element START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorPosition) ? */
+ errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
+ if(eventCode == 0) {
+ grammarID = 925;
+ } else {
+ errn = EXI_DEVIANT_SUPPORT_NOT_DEPLOYED; /* or also typecast and nillable */
+ }
+ }
+ break;
+ case 1:
+ done = 1;
+ grammarID = 4;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 925:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorPosition), END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ if (iso2SensorOrderListType->SensorPosition.arrayLen < iso2SensorOrderListType_SensorPosition_ARRAY_SIZE) {
+ /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
+ errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
+ if(errn == 0) {
+ if(eventCode == 0) {
+ errn = decodeNBitUnsignedInteger(stream, 8, &(uint32));
+ iso2SensorOrderListType->SensorPosition.array[iso2SensorOrderListType->SensorPosition.arrayLen] = (uint8_t)(uint32 + 0);
+ iso2SensorOrderListType->SensorPosition.arrayLen++;
+ } else {
+ /* Second level event (e.g., xsi:type, xsi:nil, ...) */
+ errn = EXI_UNSUPPORTED_EVENT_CODE_CHARACTERISTICS;
+ }
+ }
+ } else {
+ errn = EXI_ERROR_OUT_OF_BOUNDS;
+ }
+ if(errn == 0) {
+ /* valid EE for simple element START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorPosition) ? */
+ errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
+ if(eventCode == 0) {
+ grammarID = 926;
+ } else {
+ errn = EXI_DEVIANT_SUPPORT_NOT_DEPLOYED; /* or also typecast and nillable */
+ }
+ }
+ break;
+ case 1:
+ done = 1;
+ grammarID = 4;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 926:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorPosition), END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ if (iso2SensorOrderListType->SensorPosition.arrayLen < iso2SensorOrderListType_SensorPosition_ARRAY_SIZE) {
+ /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
+ errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
+ if(errn == 0) {
+ if(eventCode == 0) {
+ errn = decodeNBitUnsignedInteger(stream, 8, &(uint32));
+ iso2SensorOrderListType->SensorPosition.array[iso2SensorOrderListType->SensorPosition.arrayLen] = (uint8_t)(uint32 + 0);
+ iso2SensorOrderListType->SensorPosition.arrayLen++;
+ } else {
+ /* Second level event (e.g., xsi:type, xsi:nil, ...) */
+ errn = EXI_UNSUPPORTED_EVENT_CODE_CHARACTERISTICS;
+ }
+ }
+ } else {
+ errn = EXI_ERROR_OUT_OF_BOUNDS;
+ }
+ if(errn == 0) {
+ /* valid EE for simple element START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorPosition) ? */
+ errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
+ if(eventCode == 0) {
+ grammarID = 927;
+ } else {
+ errn = EXI_DEVIANT_SUPPORT_NOT_DEPLOYED; /* or also typecast and nillable */
+ }
+ }
+ break;
+ case 1:
+ done = 1;
+ grammarID = 4;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 927:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorPosition), END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ if (iso2SensorOrderListType->SensorPosition.arrayLen < iso2SensorOrderListType_SensorPosition_ARRAY_SIZE) {
+ /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
+ errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
+ if(errn == 0) {
+ if(eventCode == 0) {
+ errn = decodeNBitUnsignedInteger(stream, 8, &(uint32));
+ iso2SensorOrderListType->SensorPosition.array[iso2SensorOrderListType->SensorPosition.arrayLen] = (uint8_t)(uint32 + 0);
+ iso2SensorOrderListType->SensorPosition.arrayLen++;
+ } else {
+ /* Second level event (e.g., xsi:type, xsi:nil, ...) */
+ errn = EXI_UNSUPPORTED_EVENT_CODE_CHARACTERISTICS;
+ }
+ }
+ } else {
+ errn = EXI_ERROR_OUT_OF_BOUNDS;
+ }
+ if(errn == 0) {
+ /* valid EE for simple element START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorPosition) ? */
+ errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
+ if(eventCode == 0) {
+ grammarID = 928;
+ } else {
+ errn = EXI_DEVIANT_SUPPORT_NOT_DEPLOYED; /* or also typecast and nillable */
+ }
+ }
+ break;
+ case 1:
+ done = 1;
+ grammarID = 4;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 928:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorPosition), END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ if (iso2SensorOrderListType->SensorPosition.arrayLen < iso2SensorOrderListType_SensorPosition_ARRAY_SIZE) {
+ /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
+ errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
+ if(errn == 0) {
+ if(eventCode == 0) {
+ errn = decodeNBitUnsignedInteger(stream, 8, &(uint32));
+ iso2SensorOrderListType->SensorPosition.array[iso2SensorOrderListType->SensorPosition.arrayLen] = (uint8_t)(uint32 + 0);
+ iso2SensorOrderListType->SensorPosition.arrayLen++;
+ } else {
+ /* Second level event (e.g., xsi:type, xsi:nil, ...) */
+ errn = EXI_UNSUPPORTED_EVENT_CODE_CHARACTERISTICS;
+ }
+ }
+ } else {
+ errn = EXI_ERROR_OUT_OF_BOUNDS;
+ }
+ if(errn == 0) {
+ /* valid EE for simple element START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorPosition) ? */
+ errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
+ if(eventCode == 0) {
+ grammarID = 929;
+ } else {
+ errn = EXI_DEVIANT_SUPPORT_NOT_DEPLOYED; /* or also typecast and nillable */
+ }
+ }
+ break;
+ case 1:
+ done = 1;
+ grammarID = 4;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 929:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorPosition), END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ if (iso2SensorOrderListType->SensorPosition.arrayLen < iso2SensorOrderListType_SensorPosition_ARRAY_SIZE) {
+ /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
+ errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
+ if(errn == 0) {
+ if(eventCode == 0) {
+ errn = decodeNBitUnsignedInteger(stream, 8, &(uint32));
+ iso2SensorOrderListType->SensorPosition.array[iso2SensorOrderListType->SensorPosition.arrayLen] = (uint8_t)(uint32 + 0);
+ iso2SensorOrderListType->SensorPosition.arrayLen++;
+ } else {
+ /* Second level event (e.g., xsi:type, xsi:nil, ...) */
+ errn = EXI_UNSUPPORTED_EVENT_CODE_CHARACTERISTICS;
+ }
+ }
+ } else {
+ errn = EXI_ERROR_OUT_OF_BOUNDS;
+ }
+ if(errn == 0) {
+ /* valid EE for simple element START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorPosition) ? */
+ errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
+ if(eventCode == 0) {
+ grammarID = 930;
+ } else {
+ errn = EXI_DEVIANT_SUPPORT_NOT_DEPLOYED; /* or also typecast and nillable */
+ }
+ }
+ break;
+ case 1:
+ done = 1;
+ grammarID = 4;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 930:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorPosition), END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ if (iso2SensorOrderListType->SensorPosition.arrayLen < iso2SensorOrderListType_SensorPosition_ARRAY_SIZE) {
+ /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
+ errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
+ if(errn == 0) {
+ if(eventCode == 0) {
+ errn = decodeNBitUnsignedInteger(stream, 8, &(uint32));
+ iso2SensorOrderListType->SensorPosition.array[iso2SensorOrderListType->SensorPosition.arrayLen] = (uint8_t)(uint32 + 0);
+ iso2SensorOrderListType->SensorPosition.arrayLen++;
+ } else {
+ /* Second level event (e.g., xsi:type, xsi:nil, ...) */
+ errn = EXI_UNSUPPORTED_EVENT_CODE_CHARACTERISTICS;
+ }
+ }
+ } else {
+ errn = EXI_ERROR_OUT_OF_BOUNDS;
+ }
+ if(errn == 0) {
+ /* valid EE for simple element START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorPosition) ? */
+ errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
+ if(eventCode == 0) {
+ grammarID = 931;
+ } else {
+ errn = EXI_DEVIANT_SUPPORT_NOT_DEPLOYED; /* or also typecast and nillable */
+ }
+ }
+ break;
+ case 1:
+ done = 1;
+ grammarID = 4;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 931:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorPosition), END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ if (iso2SensorOrderListType->SensorPosition.arrayLen < iso2SensorOrderListType_SensorPosition_ARRAY_SIZE) {
+ /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
+ errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
+ if(errn == 0) {
+ if(eventCode == 0) {
+ errn = decodeNBitUnsignedInteger(stream, 8, &(uint32));
+ iso2SensorOrderListType->SensorPosition.array[iso2SensorOrderListType->SensorPosition.arrayLen] = (uint8_t)(uint32 + 0);
+ iso2SensorOrderListType->SensorPosition.arrayLen++;
+ } else {
+ /* Second level event (e.g., xsi:type, xsi:nil, ...) */
+ errn = EXI_UNSUPPORTED_EVENT_CODE_CHARACTERISTICS;
+ }
+ }
+ } else {
+ errn = EXI_ERROR_OUT_OF_BOUNDS;
+ }
+ if(errn == 0) {
+ /* valid EE for simple element START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorPosition) ? */
+ errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
+ if(eventCode == 0) {
+ grammarID = 932;
+ } else {
+ errn = EXI_DEVIANT_SUPPORT_NOT_DEPLOYED; /* or also typecast and nillable */
+ }
+ }
+ break;
+ case 1:
+ done = 1;
+ grammarID = 4;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 932:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorPosition), END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ if (iso2SensorOrderListType->SensorPosition.arrayLen < iso2SensorOrderListType_SensorPosition_ARRAY_SIZE) {
+ /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
+ errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
+ if(errn == 0) {
+ if(eventCode == 0) {
+ errn = decodeNBitUnsignedInteger(stream, 8, &(uint32));
+ iso2SensorOrderListType->SensorPosition.array[iso2SensorOrderListType->SensorPosition.arrayLen] = (uint8_t)(uint32 + 0);
+ iso2SensorOrderListType->SensorPosition.arrayLen++;
+ } else {
+ /* Second level event (e.g., xsi:type, xsi:nil, ...) */
+ errn = EXI_UNSUPPORTED_EVENT_CODE_CHARACTERISTICS;
+ }
+ }
+ } else {
+ errn = EXI_ERROR_OUT_OF_BOUNDS;
+ }
+ if(errn == 0) {
+ /* valid EE for simple element START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorPosition) ? */
+ errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
+ if(eventCode == 0) {
+ grammarID = 933;
+ } else {
+ errn = EXI_DEVIANT_SUPPORT_NOT_DEPLOYED; /* or also typecast and nillable */
+ }
+ }
+ break;
+ case 1:
+ done = 1;
+ grammarID = 4;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 933:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorPosition), END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ if (iso2SensorOrderListType->SensorPosition.arrayLen < iso2SensorOrderListType_SensorPosition_ARRAY_SIZE) {
+ /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
+ errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
+ if(errn == 0) {
+ if(eventCode == 0) {
+ errn = decodeNBitUnsignedInteger(stream, 8, &(uint32));
+ iso2SensorOrderListType->SensorPosition.array[iso2SensorOrderListType->SensorPosition.arrayLen] = (uint8_t)(uint32 + 0);
+ iso2SensorOrderListType->SensorPosition.arrayLen++;
+ } else {
+ /* Second level event (e.g., xsi:type, xsi:nil, ...) */
+ errn = EXI_UNSUPPORTED_EVENT_CODE_CHARACTERISTICS;
+ }
+ }
+ } else {
+ errn = EXI_ERROR_OUT_OF_BOUNDS;
+ }
+ if(errn == 0) {
+ /* valid EE for simple element START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorPosition) ? */
+ errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
+ if(eventCode == 0) {
+ grammarID = 934;
+ } else {
+ errn = EXI_DEVIANT_SUPPORT_NOT_DEPLOYED; /* or also typecast and nillable */
+ }
+ }
+ break;
+ case 1:
+ done = 1;
+ grammarID = 4;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 934:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorPosition), END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ if (iso2SensorOrderListType->SensorPosition.arrayLen < iso2SensorOrderListType_SensorPosition_ARRAY_SIZE) {
+ /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
+ errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
+ if(errn == 0) {
+ if(eventCode == 0) {
+ errn = decodeNBitUnsignedInteger(stream, 8, &(uint32));
+ iso2SensorOrderListType->SensorPosition.array[iso2SensorOrderListType->SensorPosition.arrayLen] = (uint8_t)(uint32 + 0);
+ iso2SensorOrderListType->SensorPosition.arrayLen++;
+ } else {
+ /* Second level event (e.g., xsi:type, xsi:nil, ...) */
+ errn = EXI_UNSUPPORTED_EVENT_CODE_CHARACTERISTICS;
+ }
+ }
+ } else {
+ errn = EXI_ERROR_OUT_OF_BOUNDS;
+ }
+ if(errn == 0) {
+ /* valid EE for simple element START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorPosition) ? */
+ errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
+ if(eventCode == 0) {
+ grammarID = 935;
+ } else {
+ errn = EXI_DEVIANT_SUPPORT_NOT_DEPLOYED; /* or also typecast and nillable */
+ }
+ }
+ break;
+ case 1:
+ done = 1;
+ grammarID = 4;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 935:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorPosition), END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ if (iso2SensorOrderListType->SensorPosition.arrayLen < iso2SensorOrderListType_SensorPosition_ARRAY_SIZE) {
+ /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
+ errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
+ if(errn == 0) {
+ if(eventCode == 0) {
+ errn = decodeNBitUnsignedInteger(stream, 8, &(uint32));
+ iso2SensorOrderListType->SensorPosition.array[iso2SensorOrderListType->SensorPosition.arrayLen] = (uint8_t)(uint32 + 0);
+ iso2SensorOrderListType->SensorPosition.arrayLen++;
+ } else {
+ /* Second level event (e.g., xsi:type, xsi:nil, ...) */
+ errn = EXI_UNSUPPORTED_EVENT_CODE_CHARACTERISTICS;
+ }
+ }
+ } else {
+ errn = EXI_ERROR_OUT_OF_BOUNDS;
+ }
+ if(errn == 0) {
+ /* valid EE for simple element START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorPosition) ? */
+ errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
+ if(eventCode == 0) {
+ grammarID = 936;
+ } else {
+ errn = EXI_DEVIANT_SUPPORT_NOT_DEPLOYED; /* or also typecast and nillable */
+ }
+ }
+ break;
+ case 1:
+ done = 1;
+ grammarID = 4;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 936:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorPosition), END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ if (iso2SensorOrderListType->SensorPosition.arrayLen < iso2SensorOrderListType_SensorPosition_ARRAY_SIZE) {
+ /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
+ errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
+ if(errn == 0) {
+ if(eventCode == 0) {
+ errn = decodeNBitUnsignedInteger(stream, 8, &(uint32));
+ iso2SensorOrderListType->SensorPosition.array[iso2SensorOrderListType->SensorPosition.arrayLen] = (uint8_t)(uint32 + 0);
+ iso2SensorOrderListType->SensorPosition.arrayLen++;
+ } else {
+ /* Second level event (e.g., xsi:type, xsi:nil, ...) */
+ errn = EXI_UNSUPPORTED_EVENT_CODE_CHARACTERISTICS;
+ }
+ }
+ } else {
+ errn = EXI_ERROR_OUT_OF_BOUNDS;
+ }
+ if(errn == 0) {
+ /* valid EE for simple element START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorPosition) ? */
+ errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
+ if(eventCode == 0) {
+ grammarID = 937;
+ } else {
+ errn = EXI_DEVIANT_SUPPORT_NOT_DEPLOYED; /* or also typecast and nillable */
+ }
+ }
+ break;
+ case 1:
+ done = 1;
+ grammarID = 4;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 937:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorPosition), END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ if (iso2SensorOrderListType->SensorPosition.arrayLen < iso2SensorOrderListType_SensorPosition_ARRAY_SIZE) {
+ /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
+ errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
+ if(errn == 0) {
+ if(eventCode == 0) {
+ errn = decodeNBitUnsignedInteger(stream, 8, &(uint32));
+ iso2SensorOrderListType->SensorPosition.array[iso2SensorOrderListType->SensorPosition.arrayLen] = (uint8_t)(uint32 + 0);
+ iso2SensorOrderListType->SensorPosition.arrayLen++;
+ } else {
+ /* Second level event (e.g., xsi:type, xsi:nil, ...) */
+ errn = EXI_UNSUPPORTED_EVENT_CODE_CHARACTERISTICS;
+ }
+ }
+ } else {
+ errn = EXI_ERROR_OUT_OF_BOUNDS;
+ }
+ if(errn == 0) {
+ /* valid EE for simple element START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorPosition) ? */
+ errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
+ if(eventCode == 0) {
+ grammarID = 938;
+ } else {
+ errn = EXI_DEVIANT_SUPPORT_NOT_DEPLOYED; /* or also typecast and nillable */
+ }
+ }
+ break;
+ case 1:
+ done = 1;
+ grammarID = 4;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 938:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorPosition), END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ if (iso2SensorOrderListType->SensorPosition.arrayLen < iso2SensorOrderListType_SensorPosition_ARRAY_SIZE) {
+ /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
+ errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
+ if(errn == 0) {
+ if(eventCode == 0) {
+ errn = decodeNBitUnsignedInteger(stream, 8, &(uint32));
+ iso2SensorOrderListType->SensorPosition.array[iso2SensorOrderListType->SensorPosition.arrayLen] = (uint8_t)(uint32 + 0);
+ iso2SensorOrderListType->SensorPosition.arrayLen++;
+ } else {
+ /* Second level event (e.g., xsi:type, xsi:nil, ...) */
+ errn = EXI_UNSUPPORTED_EVENT_CODE_CHARACTERISTICS;
+ }
+ }
+ } else {
+ errn = EXI_ERROR_OUT_OF_BOUNDS;
+ }
+ if(errn == 0) {
+ /* valid EE for simple element START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorPosition) ? */
+ errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
+ if(eventCode == 0) {
+ grammarID = 939;
+ } else {
+ errn = EXI_DEVIANT_SUPPORT_NOT_DEPLOYED; /* or also typecast and nillable */
+ }
+ }
+ break;
+ case 1:
+ done = 1;
+ grammarID = 4;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 939:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorPosition), END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ if (iso2SensorOrderListType->SensorPosition.arrayLen < iso2SensorOrderListType_SensorPosition_ARRAY_SIZE) {
+ /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
+ errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
+ if(errn == 0) {
+ if(eventCode == 0) {
+ errn = decodeNBitUnsignedInteger(stream, 8, &(uint32));
+ iso2SensorOrderListType->SensorPosition.array[iso2SensorOrderListType->SensorPosition.arrayLen] = (uint8_t)(uint32 + 0);
+ iso2SensorOrderListType->SensorPosition.arrayLen++;
+ } else {
+ /* Second level event (e.g., xsi:type, xsi:nil, ...) */
+ errn = EXI_UNSUPPORTED_EVENT_CODE_CHARACTERISTICS;
+ }
+ }
+ } else {
+ errn = EXI_ERROR_OUT_OF_BOUNDS;
+ }
+ if(errn == 0) {
+ /* valid EE for simple element START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorPosition) ? */
+ errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
+ if(eventCode == 0) {
+ grammarID = 940;
+ } else {
+ errn = EXI_DEVIANT_SUPPORT_NOT_DEPLOYED; /* or also typecast and nillable */
+ }
+ }
+ break;
+ case 1:
+ done = 1;
+ grammarID = 4;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 940:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorPosition), END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ if (iso2SensorOrderListType->SensorPosition.arrayLen < iso2SensorOrderListType_SensorPosition_ARRAY_SIZE) {
+ /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
+ errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
+ if(errn == 0) {
+ if(eventCode == 0) {
+ errn = decodeNBitUnsignedInteger(stream, 8, &(uint32));
+ iso2SensorOrderListType->SensorPosition.array[iso2SensorOrderListType->SensorPosition.arrayLen] = (uint8_t)(uint32 + 0);
+ iso2SensorOrderListType->SensorPosition.arrayLen++;
+ } else {
+ /* Second level event (e.g., xsi:type, xsi:nil, ...) */
+ errn = EXI_UNSUPPORTED_EVENT_CODE_CHARACTERISTICS;
+ }
+ }
+ } else {
+ errn = EXI_ERROR_OUT_OF_BOUNDS;
+ }
+ if(errn == 0) {
+ /* valid EE for simple element START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorPosition) ? */
+ errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
+ if(eventCode == 0) {
+ grammarID = 3;
+ } else {
+ errn = EXI_DEVIANT_SUPPORT_NOT_DEPLOYED; /* or also typecast and nillable */
+ }
+ }
+ break;
+ case 1:
+ done = 1;
+ grammarID = 4;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 3:
+ /* Element[END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ done = 1;
+ grammarID = 4;
+ 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:2016:MsgBody,ChargeParameterDiscoveryReqType', base type name='BodyBaseType', content type='ELEMENT', isAbstract='false', hasTypeId='false', final='0', block='0', particle='("urn:iso:15118:2:2016:MsgBody":MaxSupportingPoints{0-1},"urn:iso:15118:2:2016:MsgDataTypes":EVEnergyTransferParameter,"urn:iso:15118:2:2016:MsgBody":MinimumPMaxRequest{0-1})', derivedBy='EXTENSION'. */
+static int decode_iso2ChargeParameterDiscoveryReqType(bitstream_t* stream, struct iso2ChargeParameterDiscoveryReqType* iso2ChargeParameterDiscoveryReqType) {
+ int grammarID = 941;
+ int done = 0;
+
+ init_iso2ChargeParameterDiscoveryReqType(iso2ChargeParameterDiscoveryReqType);
+
+ while(!done) {
+ switch(grammarID) {
+ case 941:
+ /* FirstStartTag[START_ELEMENT({urn:iso:15118:2:2016:MsgBody}MaxSupportingPoints), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}AC_EVBidirectionalParameter), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}AC_EVChargeParameter), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}DC_EVBidirectionalParameter), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}DC_EVChargeParameter), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}EVEnergyTransferParameter), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}WPT_EVChargeParameter)] */
+ errn = decodeNBitUnsignedInteger(stream, 3, &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, 10, &(uint32));
+ iso2ChargeParameterDiscoveryReqType->MaxSupportingPoints = (uint16_t)(uint32 + 12);
+ iso2ChargeParameterDiscoveryReqType->MaxSupportingPoints_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({urn:iso:15118:2:2016:MsgBody}MaxSupportingPoints) ? */
+ errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
+ if(eventCode == 0) {
+ grammarID = 942;
+ } else {
+ errn = EXI_DEVIANT_SUPPORT_NOT_DEPLOYED; /* or also typecast and nillable */
+ }
+ }
+ break;
+ case 1:
+ errn = decode_iso2AC_EVBidirectionalParameterType(stream, &iso2ChargeParameterDiscoveryReqType->AC_EVBidirectionalParameter);
+ iso2ChargeParameterDiscoveryReqType->AC_EVBidirectionalParameter_isUsed = 1u;
+ grammarID = 943;
+ break;
+ case 2:
+ errn = decode_iso2AC_EVChargeParameterType(stream, &iso2ChargeParameterDiscoveryReqType->AC_EVChargeParameter);
+ iso2ChargeParameterDiscoveryReqType->AC_EVChargeParameter_isUsed = 1u;
+ grammarID = 943;
+ break;
+ case 3:
+ errn = decode_iso2DC_EVBidirectionalParameterType(stream, &iso2ChargeParameterDiscoveryReqType->DC_EVBidirectionalParameter);
+ iso2ChargeParameterDiscoveryReqType->DC_EVBidirectionalParameter_isUsed = 1u;
+ grammarID = 943;
+ break;
+ case 4:
+ errn = decode_iso2DC_EVChargeParameterType(stream, &iso2ChargeParameterDiscoveryReqType->DC_EVChargeParameter);
+ iso2ChargeParameterDiscoveryReqType->DC_EVChargeParameter_isUsed = 1u;
+ grammarID = 943;
+ break;
+ case 5:
+ errn = decode_iso2EVEnergyTransferParameterType(stream, &iso2ChargeParameterDiscoveryReqType->EVEnergyTransferParameter);
+ iso2ChargeParameterDiscoveryReqType->EVEnergyTransferParameter_isUsed = 1u;
+ grammarID = 943;
+ break;
+ case 6:
+ errn = decode_iso2WPT_EVChargeParameterType(stream, &iso2ChargeParameterDiscoveryReqType->WPT_EVChargeParameter);
+ iso2ChargeParameterDiscoveryReqType->WPT_EVChargeParameter_isUsed = 1u;
+ grammarID = 943;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 942:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}AC_EVBidirectionalParameter), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}AC_EVChargeParameter), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}DC_EVBidirectionalParameter), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}DC_EVChargeParameter), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}EVEnergyTransferParameter), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}WPT_EVChargeParameter)] */
+ errn = decodeNBitUnsignedInteger(stream, 3, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ errn = decode_iso2AC_EVBidirectionalParameterType(stream, &iso2ChargeParameterDiscoveryReqType->AC_EVBidirectionalParameter);
+ iso2ChargeParameterDiscoveryReqType->AC_EVBidirectionalParameter_isUsed = 1u;
+ grammarID = 943;
+ break;
+ case 1:
+ errn = decode_iso2AC_EVChargeParameterType(stream, &iso2ChargeParameterDiscoveryReqType->AC_EVChargeParameter);
+ iso2ChargeParameterDiscoveryReqType->AC_EVChargeParameter_isUsed = 1u;
+ grammarID = 943;
+ break;
+ case 2:
+ errn = decode_iso2DC_EVBidirectionalParameterType(stream, &iso2ChargeParameterDiscoveryReqType->DC_EVBidirectionalParameter);
+ iso2ChargeParameterDiscoveryReqType->DC_EVBidirectionalParameter_isUsed = 1u;
+ grammarID = 943;
+ break;
+ case 3:
+ errn = decode_iso2DC_EVChargeParameterType(stream, &iso2ChargeParameterDiscoveryReqType->DC_EVChargeParameter);
+ iso2ChargeParameterDiscoveryReqType->DC_EVChargeParameter_isUsed = 1u;
+ grammarID = 943;
+ break;
+ case 4:
+ errn = decode_iso2EVEnergyTransferParameterType(stream, &iso2ChargeParameterDiscoveryReqType->EVEnergyTransferParameter);
+ iso2ChargeParameterDiscoveryReqType->EVEnergyTransferParameter_isUsed = 1u;
+ grammarID = 943;
+ break;
+ case 5:
+ errn = decode_iso2WPT_EVChargeParameterType(stream, &iso2ChargeParameterDiscoveryReqType->WPT_EVChargeParameter);
+ iso2ChargeParameterDiscoveryReqType->WPT_EVChargeParameter_isUsed = 1u;
+ grammarID = 943;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 943:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgBody}MinimumPMaxRequest), END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ errn = decode_iso2MinimumPMaxRequestType(stream, &iso2ChargeParameterDiscoveryReqType->MinimumPMaxRequest);
+ iso2ChargeParameterDiscoveryReqType->MinimumPMaxRequest_isUsed = 1u;
+ grammarID = 3;
+ break;
+ case 1:
+ done = 1;
+ grammarID = 4;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 3:
+ /* Element[END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ done = 1;
+ grammarID = 4;
+ 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:2016:MsgDataTypes,ParameterType', base type name='anyType', content type='ELEMENT', isAbstract='false', hasTypeId='false', final='0', block='0', particle='("urn:iso:15118:2:2016:MsgDataTypes":boolValue|"urn:iso:15118:2:2016:MsgDataTypes":byteValue|"urn:iso:15118:2:2016:MsgDataTypes":shortValue|"urn:iso:15118:2:2016:MsgDataTypes":intValue|"urn:iso:15118:2:2016:MsgDataTypes":physicalValue|"urn:iso:15118:2:2016:MsgDataTypes":stringValue)', derivedBy='RESTRICTION'. */
+static int decode_iso2ParameterType(bitstream_t* stream, struct iso2ParameterType* iso2ParameterType) {
+ int grammarID = 944;
+ int done = 0;
+
+ init_iso2ParameterType(iso2ParameterType);
+
+ while(!done) {
+ switch(grammarID) {
+ case 944:
+ /* FirstStartTag[ATTRIBUTE[STRING]({urn:iso:15118:2:2016:MsgDataTypes}Name)] */
+ errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ errn = decodeUnsignedInteger16(stream, &iso2ParameterType->Name.charactersLen);
+ if (errn == 0) {
+ if (iso2ParameterType->Name.charactersLen >= 2) {
+ iso2ParameterType->Name.charactersLen = (uint16_t)(iso2ParameterType->Name.charactersLen - 2); /* string table miss */
+ errn = decodeCharacters(stream, iso2ParameterType->Name.charactersLen, iso2ParameterType->Name.characters, iso2ParameterType_Name_CHARACTERS_SIZE);
+ } else {
+ /* string table hit */
+ errn = EXI_ERROR_STRINGVALUES_NOT_SUPPORTED;
+ }
+ }
+ grammarID = 945;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 945:
+ /* StartTag[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}boolValue), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}byteValue), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}shortValue), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}intValue), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}physicalValue), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}stringValue)] */
+ errn = decodeNBitUnsignedInteger(stream, 3, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ /* FirstStartTag[CHARACTERS[BOOLEAN]] */
+ errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
+ if(errn == 0) {
+ if(eventCode == 0) {
+ errn = decodeBoolean(stream, &iso2ParameterType->boolValue);
+ iso2ParameterType->boolValue_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({urn:iso:15118:2:2016:MsgDataTypes}boolValue) ? */
+ errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
+ if(eventCode == 0) {
+ grammarID = 3;
+ } else {
+ errn = EXI_DEVIANT_SUPPORT_NOT_DEPLOYED; /* or also typecast and nillable */
+ }
+ }
+ break;
+ case 1:
+ /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
+ errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
+ if(errn == 0) {
+ if(eventCode == 0) {
+ errn = decodeNBitUnsignedInteger(stream, 8, &(uint32));
+ iso2ParameterType->byteValue = (int8_t)(uint32 -128);
+ iso2ParameterType->byteValue_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({urn:iso:15118:2:2016:MsgDataTypes}byteValue) ? */
+ errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
+ if(eventCode == 0) {
+ grammarID = 3;
+ } else {
+ errn = EXI_DEVIANT_SUPPORT_NOT_DEPLOYED; /* or also typecast and nillable */
+ }
+ }
+ break;
+ case 2:
+ /* First(xsi:type)StartTag[CHARACTERS[INTEGER]] */
+ errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
+ if(errn == 0) {
+ if(eventCode == 0) {
+ errn = decodeInteger16(stream, &iso2ParameterType->shortValue);
+ iso2ParameterType->shortValue_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({urn:iso:15118:2:2016:MsgDataTypes}shortValue) ? */
+ errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
+ if(eventCode == 0) {
+ grammarID = 3;
+ } else {
+ errn = EXI_DEVIANT_SUPPORT_NOT_DEPLOYED; /* or also typecast and nillable */
+ }
+ }
+ break;
+ case 3:
+ /* First(xsi:type)StartTag[CHARACTERS[INTEGER]] */
+ errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
+ if(errn == 0) {
+ if(eventCode == 0) {
+ errn = decodeInteger32(stream, &iso2ParameterType->intValue);
+ iso2ParameterType->intValue_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({urn:iso:15118:2:2016:MsgDataTypes}intValue) ? */
+ errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
+ if(eventCode == 0) {
+ grammarID = 3;
+ } else {
+ errn = EXI_DEVIANT_SUPPORT_NOT_DEPLOYED; /* or also typecast and nillable */
+ }
+ }
+ break;
+ case 4:
+ errn = decode_iso2PhysicalValueType(stream, &iso2ParameterType->physicalValue);
+ iso2ParameterType->physicalValue_isUsed = 1u;
+ grammarID = 3;
+ break;
+ case 5:
+ /* First(xsi:type)StartTag[CHARACTERS[STRING]] */
+ errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
+ if(errn == 0) {
+ if(eventCode == 0) {
+ errn = decodeUnsignedInteger16(stream, &iso2ParameterType->stringValue.charactersLen);
+ if (errn == 0) {
+ if (iso2ParameterType->stringValue.charactersLen >= 2) {
+ iso2ParameterType->stringValue.charactersLen = (uint16_t)(iso2ParameterType->stringValue.charactersLen - 2); /* string table miss */
+ errn = decodeCharacters(stream, iso2ParameterType->stringValue.charactersLen, iso2ParameterType->stringValue.characters, iso2ParameterType_stringValue_CHARACTERS_SIZE);
+ } else {
+ /* string table hit */
+ errn = EXI_ERROR_STRINGVALUES_NOT_SUPPORTED;
+ }
+ }
+ iso2ParameterType->stringValue_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({urn:iso:15118:2:2016:MsgDataTypes}stringValue) ? */
+ errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
+ if(eventCode == 0) {
+ grammarID = 3;
+ } else {
+ errn = EXI_DEVIANT_SUPPORT_NOT_DEPLOYED; /* or also typecast and nillable */
+ }
+ }
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 3:
+ /* Element[END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ done = 1;
+ grammarID = 4;
+ 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:2016:MsgBody,SessionStopReqType', base type name='BodyBaseType', content type='ELEMENT', isAbstract='false', hasTypeId='false', final='0', block='0', particle='("urn:iso:15118:2:2016:MsgBody":ChargingSession)', derivedBy='EXTENSION'. */
+static int decode_iso2SessionStopReqType(bitstream_t* stream, struct iso2SessionStopReqType* iso2SessionStopReqType) {
+ int grammarID = 946;
+ int done = 0;
+
+ init_iso2SessionStopReqType(iso2SessionStopReqType);
+
+ while(!done) {
+ switch(grammarID) {
+ case 946:
+ /* FirstStartTag[START_ELEMENT({urn:iso:15118:2:2016:MsgBody}ChargingSession)] */
+ 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, 1, &uint32);
+ iso2SessionStopReqType->ChargingSession = (iso2chargingSessionType) 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({urn:iso:15118:2:2016:MsgBody}ChargingSession) ? */
+ errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
+ if(eventCode == 0) {
+ grammarID = 3;
+ } else {
+ errn = EXI_DEVIANT_SUPPORT_NOT_DEPLOYED; /* or also typecast and nillable */
+ }
+ }
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 3:
+ /* Element[END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ done = 1;
+ grammarID = 4;
+ 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:2016:MsgDataTypes,SensorMeasurementsType', base type name='anyType', content type='ELEMENT', isAbstract='false', hasTypeId='false', final='0', block='0', particle='("urn:iso:15118:2:2016:MsgDataTypes":SensorID,"urn:iso:15118:2:2016:MsgDataTypes":EffectiveRadiatedPower,"urn:iso:15118:2:2016:MsgDataTypes":MeasurementDataList)', derivedBy='RESTRICTION'. */
+static int decode_iso2SensorMeasurementsType(bitstream_t* stream, struct iso2SensorMeasurementsType* iso2SensorMeasurementsType) {
+ int grammarID = 947;
+ int done = 0;
+
+ init_iso2SensorMeasurementsType(iso2SensorMeasurementsType);
+
+ while(!done) {
+ switch(grammarID) {
+ case 947:
+ /* FirstStartTag[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorID)] */
+ errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
+ errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
+ if(errn == 0) {
+ if(eventCode == 0) {
+ errn = decodeNBitUnsignedInteger(stream, 8, &(uint32));
+ iso2SensorMeasurementsType->SensorID = (uint8_t)(uint32 + 0);
+ } 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({urn:iso:15118:2:2016:MsgDataTypes}SensorID) ? */
+ errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
+ if(eventCode == 0) {
+ grammarID = 948;
+ } else {
+ errn = EXI_DEVIANT_SUPPORT_NOT_DEPLOYED; /* or also typecast and nillable */
+ }
+ }
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 948:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}EffectiveRadiatedPower)] */
+ errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
+ errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
+ if(errn == 0) {
+ if(eventCode == 0) {
+ errn = decodeNBitUnsignedInteger(stream, 8, &(uint32));
+ iso2SensorMeasurementsType->EffectiveRadiatedPower = (int8_t)(uint32 -128);
+ } 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({urn:iso:15118:2:2016:MsgDataTypes}EffectiveRadiatedPower) ? */
+ errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
+ if(eventCode == 0) {
+ grammarID = 949;
+ } else {
+ errn = EXI_DEVIANT_SUPPORT_NOT_DEPLOYED; /* or also typecast and nillable */
+ }
+ }
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 949:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MeasurementDataList)] */
+ errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ errn = decode_iso2MeasurementDataListType(stream, &iso2SensorMeasurementsType->MeasurementDataList);
+ grammarID = 3;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 3:
+ /* Element[END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ done = 1;
+ grammarID = 4;
+ 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:2016:MsgDataTypes,DC_EVSEChargeParameterType', base type name='EVSEEnergyTransferParameterType', content type='ELEMENT', isAbstract='false', hasTypeId='false', final='0', block='0', particle='("urn:iso:15118:2:2016:MsgDataTypes":EVSEMaximumChargePower,"urn:iso:15118:2:2016:MsgDataTypes":EVSEMaximumChargeCurrent,"urn:iso:15118:2:2016:MsgDataTypes":EVSEMinimumChargeCurrent,"urn:iso:15118:2:2016:MsgDataTypes":EVSEMaximumVoltage,"urn:iso:15118:2:2016:MsgDataTypes":EVSEMinimumVoltage,"urn:iso:15118:2:2016:MsgDataTypes":EVSECurrentRegulationTolerance{0-1},"urn:iso:15118:2:2016:MsgDataTypes":EVSEPeakCurrentRipple,"urn:iso:15118:2:2016:MsgDataTypes":EVSEEnergyToBeDelivered{0-1})', derivedBy='EXTENSION'. */
+static int decode_iso2DC_EVSEChargeParameterType(bitstream_t* stream, struct iso2DC_EVSEChargeParameterType* iso2DC_EVSEChargeParameterType) {
+ int grammarID = 950;
+ int done = 0;
+
+ init_iso2DC_EVSEChargeParameterType(iso2DC_EVSEChargeParameterType);
+
+ while(!done) {
+ switch(grammarID) {
+ case 950:
+ /* FirstStartTag[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}EVSEMaximumChargePower)] */
+ errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ errn = decode_iso2PhysicalValueType(stream, &iso2DC_EVSEChargeParameterType->EVSEMaximumChargePower);
+ grammarID = 951;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 951:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}EVSEMaximumChargeCurrent)] */
+ errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ errn = decode_iso2PhysicalValueType(stream, &iso2DC_EVSEChargeParameterType->EVSEMaximumChargeCurrent);
+ grammarID = 952;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 952:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}EVSEMinimumChargeCurrent)] */
+ errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ errn = decode_iso2PhysicalValueType(stream, &iso2DC_EVSEChargeParameterType->EVSEMinimumChargeCurrent);
+ grammarID = 953;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 953:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}EVSEMaximumVoltage)] */
+ errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ errn = decode_iso2PhysicalValueType(stream, &iso2DC_EVSEChargeParameterType->EVSEMaximumVoltage);
+ grammarID = 954;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 954:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}EVSEMinimumVoltage)] */
+ errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ errn = decode_iso2PhysicalValueType(stream, &iso2DC_EVSEChargeParameterType->EVSEMinimumVoltage);
+ grammarID = 955;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 955:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}EVSECurrentRegulationTolerance), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}EVSEPeakCurrentRipple)] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ errn = decode_iso2PhysicalValueType(stream, &iso2DC_EVSEChargeParameterType->EVSECurrentRegulationTolerance);
+ iso2DC_EVSEChargeParameterType->EVSECurrentRegulationTolerance_isUsed = 1u;
+ grammarID = 956;
+ break;
+ case 1:
+ errn = decode_iso2PhysicalValueType(stream, &iso2DC_EVSEChargeParameterType->EVSEPeakCurrentRipple);
+ grammarID = 957;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 956:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}EVSEPeakCurrentRipple)] */
+ errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ errn = decode_iso2PhysicalValueType(stream, &iso2DC_EVSEChargeParameterType->EVSEPeakCurrentRipple);
+ grammarID = 957;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 957:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}EVSEEnergyToBeDelivered), END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ errn = decode_iso2PhysicalValueType(stream, &iso2DC_EVSEChargeParameterType->EVSEEnergyToBeDelivered);
+ iso2DC_EVSEChargeParameterType->EVSEEnergyToBeDelivered_isUsed = 1u;
+ grammarID = 3;
+ break;
+ case 1:
+ done = 1;
+ grammarID = 4;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 3:
+ /* Element[END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ done = 1;
+ grammarID = 4;
+ 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:2016:MsgDataTypes,SensorPackageListType', base type name='anyType', content type='ELEMENT', isAbstract='false', hasTypeId='false', final='0', block='0', particle='("urn:iso:15118:2:2016:MsgDataTypes":SensorPackage{1-255})', derivedBy='RESTRICTION'. */
+static int decode_iso2SensorPackageListType(bitstream_t* stream, struct iso2SensorPackageListType* iso2SensorPackageListType) {
+ int grammarID = 958;
+ int done = 0;
+
+ init_iso2SensorPackageListType(iso2SensorPackageListType);
+
+ while(!done) {
+ switch(grammarID) {
+ case 958:
+ /* FirstStartTag[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorPackage)] */
+ errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ if (iso2SensorPackageListType->SensorPackage.arrayLen < iso2SensorPackageListType_SensorPackage_ARRAY_SIZE) {
+ errn = decode_iso2SensorPackageType(stream, &iso2SensorPackageListType->SensorPackage.array[iso2SensorPackageListType->SensorPackage.arrayLen++]);
+ } else {
+ errn = EXI_ERROR_OUT_OF_BOUNDS;
+ }
+ grammarID = 959;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 959:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorPackage), END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ if (iso2SensorPackageListType->SensorPackage.arrayLen < iso2SensorPackageListType_SensorPackage_ARRAY_SIZE) {
+ errn = decode_iso2SensorPackageType(stream, &iso2SensorPackageListType->SensorPackage.array[iso2SensorPackageListType->SensorPackage.arrayLen++]);
+ } else {
+ errn = EXI_ERROR_OUT_OF_BOUNDS;
+ }
+ grammarID = 960;
+ break;
+ case 1:
+ done = 1;
+ grammarID = 4;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 960:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorPackage), END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ if (iso2SensorPackageListType->SensorPackage.arrayLen < iso2SensorPackageListType_SensorPackage_ARRAY_SIZE) {
+ errn = decode_iso2SensorPackageType(stream, &iso2SensorPackageListType->SensorPackage.array[iso2SensorPackageListType->SensorPackage.arrayLen++]);
+ } else {
+ errn = EXI_ERROR_OUT_OF_BOUNDS;
+ }
+ grammarID = 961;
+ break;
+ case 1:
+ done = 1;
+ grammarID = 4;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 961:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorPackage), END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ if (iso2SensorPackageListType->SensorPackage.arrayLen < iso2SensorPackageListType_SensorPackage_ARRAY_SIZE) {
+ errn = decode_iso2SensorPackageType(stream, &iso2SensorPackageListType->SensorPackage.array[iso2SensorPackageListType->SensorPackage.arrayLen++]);
+ } else {
+ errn = EXI_ERROR_OUT_OF_BOUNDS;
+ }
+ grammarID = 962;
+ break;
+ case 1:
+ done = 1;
+ grammarID = 4;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 962:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorPackage), END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ if (iso2SensorPackageListType->SensorPackage.arrayLen < iso2SensorPackageListType_SensorPackage_ARRAY_SIZE) {
+ errn = decode_iso2SensorPackageType(stream, &iso2SensorPackageListType->SensorPackage.array[iso2SensorPackageListType->SensorPackage.arrayLen++]);
+ } else {
+ errn = EXI_ERROR_OUT_OF_BOUNDS;
+ }
+ grammarID = 963;
+ break;
+ case 1:
+ done = 1;
+ grammarID = 4;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 963:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorPackage), END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ if (iso2SensorPackageListType->SensorPackage.arrayLen < iso2SensorPackageListType_SensorPackage_ARRAY_SIZE) {
+ errn = decode_iso2SensorPackageType(stream, &iso2SensorPackageListType->SensorPackage.array[iso2SensorPackageListType->SensorPackage.arrayLen++]);
+ } else {
+ errn = EXI_ERROR_OUT_OF_BOUNDS;
+ }
+ grammarID = 964;
+ break;
+ case 1:
+ done = 1;
+ grammarID = 4;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 964:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorPackage), END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ if (iso2SensorPackageListType->SensorPackage.arrayLen < iso2SensorPackageListType_SensorPackage_ARRAY_SIZE) {
+ errn = decode_iso2SensorPackageType(stream, &iso2SensorPackageListType->SensorPackage.array[iso2SensorPackageListType->SensorPackage.arrayLen++]);
+ } else {
+ errn = EXI_ERROR_OUT_OF_BOUNDS;
+ }
+ grammarID = 965;
+ break;
+ case 1:
+ done = 1;
+ grammarID = 4;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 965:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorPackage), END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ if (iso2SensorPackageListType->SensorPackage.arrayLen < iso2SensorPackageListType_SensorPackage_ARRAY_SIZE) {
+ errn = decode_iso2SensorPackageType(stream, &iso2SensorPackageListType->SensorPackage.array[iso2SensorPackageListType->SensorPackage.arrayLen++]);
+ } else {
+ errn = EXI_ERROR_OUT_OF_BOUNDS;
+ }
+ grammarID = 966;
+ break;
+ case 1:
+ done = 1;
+ grammarID = 4;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 966:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorPackage), END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ if (iso2SensorPackageListType->SensorPackage.arrayLen < iso2SensorPackageListType_SensorPackage_ARRAY_SIZE) {
+ errn = decode_iso2SensorPackageType(stream, &iso2SensorPackageListType->SensorPackage.array[iso2SensorPackageListType->SensorPackage.arrayLen++]);
+ } else {
+ errn = EXI_ERROR_OUT_OF_BOUNDS;
+ }
+ grammarID = 967;
+ break;
+ case 1:
+ done = 1;
+ grammarID = 4;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 967:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorPackage), END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ if (iso2SensorPackageListType->SensorPackage.arrayLen < iso2SensorPackageListType_SensorPackage_ARRAY_SIZE) {
+ errn = decode_iso2SensorPackageType(stream, &iso2SensorPackageListType->SensorPackage.array[iso2SensorPackageListType->SensorPackage.arrayLen++]);
+ } else {
+ errn = EXI_ERROR_OUT_OF_BOUNDS;
+ }
+ grammarID = 968;
+ break;
+ case 1:
+ done = 1;
+ grammarID = 4;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 968:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorPackage), END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ if (iso2SensorPackageListType->SensorPackage.arrayLen < iso2SensorPackageListType_SensorPackage_ARRAY_SIZE) {
+ errn = decode_iso2SensorPackageType(stream, &iso2SensorPackageListType->SensorPackage.array[iso2SensorPackageListType->SensorPackage.arrayLen++]);
+ } else {
+ errn = EXI_ERROR_OUT_OF_BOUNDS;
+ }
+ grammarID = 969;
+ break;
+ case 1:
+ done = 1;
+ grammarID = 4;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 969:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorPackage), END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ if (iso2SensorPackageListType->SensorPackage.arrayLen < iso2SensorPackageListType_SensorPackage_ARRAY_SIZE) {
+ errn = decode_iso2SensorPackageType(stream, &iso2SensorPackageListType->SensorPackage.array[iso2SensorPackageListType->SensorPackage.arrayLen++]);
+ } else {
+ errn = EXI_ERROR_OUT_OF_BOUNDS;
+ }
+ grammarID = 970;
+ break;
+ case 1:
+ done = 1;
+ grammarID = 4;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 970:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorPackage), END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ if (iso2SensorPackageListType->SensorPackage.arrayLen < iso2SensorPackageListType_SensorPackage_ARRAY_SIZE) {
+ errn = decode_iso2SensorPackageType(stream, &iso2SensorPackageListType->SensorPackage.array[iso2SensorPackageListType->SensorPackage.arrayLen++]);
+ } else {
+ errn = EXI_ERROR_OUT_OF_BOUNDS;
+ }
+ grammarID = 971;
+ break;
+ case 1:
+ done = 1;
+ grammarID = 4;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 971:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorPackage), END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ if (iso2SensorPackageListType->SensorPackage.arrayLen < iso2SensorPackageListType_SensorPackage_ARRAY_SIZE) {
+ errn = decode_iso2SensorPackageType(stream, &iso2SensorPackageListType->SensorPackage.array[iso2SensorPackageListType->SensorPackage.arrayLen++]);
+ } else {
+ errn = EXI_ERROR_OUT_OF_BOUNDS;
+ }
+ grammarID = 972;
+ break;
+ case 1:
+ done = 1;
+ grammarID = 4;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 972:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorPackage), END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ if (iso2SensorPackageListType->SensorPackage.arrayLen < iso2SensorPackageListType_SensorPackage_ARRAY_SIZE) {
+ errn = decode_iso2SensorPackageType(stream, &iso2SensorPackageListType->SensorPackage.array[iso2SensorPackageListType->SensorPackage.arrayLen++]);
+ } else {
+ errn = EXI_ERROR_OUT_OF_BOUNDS;
+ }
+ grammarID = 973;
+ break;
+ case 1:
+ done = 1;
+ grammarID = 4;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 973:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorPackage), END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ if (iso2SensorPackageListType->SensorPackage.arrayLen < iso2SensorPackageListType_SensorPackage_ARRAY_SIZE) {
+ errn = decode_iso2SensorPackageType(stream, &iso2SensorPackageListType->SensorPackage.array[iso2SensorPackageListType->SensorPackage.arrayLen++]);
+ } else {
+ errn = EXI_ERROR_OUT_OF_BOUNDS;
+ }
+ grammarID = 974;
+ break;
+ case 1:
+ done = 1;
+ grammarID = 4;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 974:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorPackage), END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ if (iso2SensorPackageListType->SensorPackage.arrayLen < iso2SensorPackageListType_SensorPackage_ARRAY_SIZE) {
+ errn = decode_iso2SensorPackageType(stream, &iso2SensorPackageListType->SensorPackage.array[iso2SensorPackageListType->SensorPackage.arrayLen++]);
+ } else {
+ errn = EXI_ERROR_OUT_OF_BOUNDS;
+ }
+ grammarID = 975;
+ break;
+ case 1:
+ done = 1;
+ grammarID = 4;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 975:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorPackage), END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ if (iso2SensorPackageListType->SensorPackage.arrayLen < iso2SensorPackageListType_SensorPackage_ARRAY_SIZE) {
+ errn = decode_iso2SensorPackageType(stream, &iso2SensorPackageListType->SensorPackage.array[iso2SensorPackageListType->SensorPackage.arrayLen++]);
+ } else {
+ errn = EXI_ERROR_OUT_OF_BOUNDS;
+ }
+ grammarID = 976;
+ break;
+ case 1:
+ done = 1;
+ grammarID = 4;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 976:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorPackage), END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ if (iso2SensorPackageListType->SensorPackage.arrayLen < iso2SensorPackageListType_SensorPackage_ARRAY_SIZE) {
+ errn = decode_iso2SensorPackageType(stream, &iso2SensorPackageListType->SensorPackage.array[iso2SensorPackageListType->SensorPackage.arrayLen++]);
+ } else {
+ errn = EXI_ERROR_OUT_OF_BOUNDS;
+ }
+ grammarID = 977;
+ break;
+ case 1:
+ done = 1;
+ grammarID = 4;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 977:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorPackage), END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ if (iso2SensorPackageListType->SensorPackage.arrayLen < iso2SensorPackageListType_SensorPackage_ARRAY_SIZE) {
+ errn = decode_iso2SensorPackageType(stream, &iso2SensorPackageListType->SensorPackage.array[iso2SensorPackageListType->SensorPackage.arrayLen++]);
+ } else {
+ errn = EXI_ERROR_OUT_OF_BOUNDS;
+ }
+ grammarID = 978;
+ break;
+ case 1:
+ done = 1;
+ grammarID = 4;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 978:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorPackage), END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ if (iso2SensorPackageListType->SensorPackage.arrayLen < iso2SensorPackageListType_SensorPackage_ARRAY_SIZE) {
+ errn = decode_iso2SensorPackageType(stream, &iso2SensorPackageListType->SensorPackage.array[iso2SensorPackageListType->SensorPackage.arrayLen++]);
+ } else {
+ errn = EXI_ERROR_OUT_OF_BOUNDS;
+ }
+ grammarID = 979;
+ break;
+ case 1:
+ done = 1;
+ grammarID = 4;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 979:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorPackage), END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ if (iso2SensorPackageListType->SensorPackage.arrayLen < iso2SensorPackageListType_SensorPackage_ARRAY_SIZE) {
+ errn = decode_iso2SensorPackageType(stream, &iso2SensorPackageListType->SensorPackage.array[iso2SensorPackageListType->SensorPackage.arrayLen++]);
+ } else {
+ errn = EXI_ERROR_OUT_OF_BOUNDS;
+ }
+ grammarID = 980;
+ break;
+ case 1:
+ done = 1;
+ grammarID = 4;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 980:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorPackage), END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ if (iso2SensorPackageListType->SensorPackage.arrayLen < iso2SensorPackageListType_SensorPackage_ARRAY_SIZE) {
+ errn = decode_iso2SensorPackageType(stream, &iso2SensorPackageListType->SensorPackage.array[iso2SensorPackageListType->SensorPackage.arrayLen++]);
+ } else {
+ errn = EXI_ERROR_OUT_OF_BOUNDS;
+ }
+ grammarID = 981;
+ break;
+ case 1:
+ done = 1;
+ grammarID = 4;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 981:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorPackage), END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ if (iso2SensorPackageListType->SensorPackage.arrayLen < iso2SensorPackageListType_SensorPackage_ARRAY_SIZE) {
+ errn = decode_iso2SensorPackageType(stream, &iso2SensorPackageListType->SensorPackage.array[iso2SensorPackageListType->SensorPackage.arrayLen++]);
+ } else {
+ errn = EXI_ERROR_OUT_OF_BOUNDS;
+ }
+ grammarID = 982;
+ break;
+ case 1:
+ done = 1;
+ grammarID = 4;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 982:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorPackage), END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ if (iso2SensorPackageListType->SensorPackage.arrayLen < iso2SensorPackageListType_SensorPackage_ARRAY_SIZE) {
+ errn = decode_iso2SensorPackageType(stream, &iso2SensorPackageListType->SensorPackage.array[iso2SensorPackageListType->SensorPackage.arrayLen++]);
+ } else {
+ errn = EXI_ERROR_OUT_OF_BOUNDS;
+ }
+ grammarID = 983;
+ break;
+ case 1:
+ done = 1;
+ grammarID = 4;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 983:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorPackage), END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ if (iso2SensorPackageListType->SensorPackage.arrayLen < iso2SensorPackageListType_SensorPackage_ARRAY_SIZE) {
+ errn = decode_iso2SensorPackageType(stream, &iso2SensorPackageListType->SensorPackage.array[iso2SensorPackageListType->SensorPackage.arrayLen++]);
+ } else {
+ errn = EXI_ERROR_OUT_OF_BOUNDS;
+ }
+ grammarID = 984;
+ break;
+ case 1:
+ done = 1;
+ grammarID = 4;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 984:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorPackage), END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ if (iso2SensorPackageListType->SensorPackage.arrayLen < iso2SensorPackageListType_SensorPackage_ARRAY_SIZE) {
+ errn = decode_iso2SensorPackageType(stream, &iso2SensorPackageListType->SensorPackage.array[iso2SensorPackageListType->SensorPackage.arrayLen++]);
+ } else {
+ errn = EXI_ERROR_OUT_OF_BOUNDS;
+ }
+ grammarID = 985;
+ break;
+ case 1:
+ done = 1;
+ grammarID = 4;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 985:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorPackage), END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ if (iso2SensorPackageListType->SensorPackage.arrayLen < iso2SensorPackageListType_SensorPackage_ARRAY_SIZE) {
+ errn = decode_iso2SensorPackageType(stream, &iso2SensorPackageListType->SensorPackage.array[iso2SensorPackageListType->SensorPackage.arrayLen++]);
+ } else {
+ errn = EXI_ERROR_OUT_OF_BOUNDS;
+ }
+ grammarID = 986;
+ break;
+ case 1:
+ done = 1;
+ grammarID = 4;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 986:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorPackage), END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ if (iso2SensorPackageListType->SensorPackage.arrayLen < iso2SensorPackageListType_SensorPackage_ARRAY_SIZE) {
+ errn = decode_iso2SensorPackageType(stream, &iso2SensorPackageListType->SensorPackage.array[iso2SensorPackageListType->SensorPackage.arrayLen++]);
+ } else {
+ errn = EXI_ERROR_OUT_OF_BOUNDS;
+ }
+ grammarID = 987;
+ break;
+ case 1:
+ done = 1;
+ grammarID = 4;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 987:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorPackage), END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ if (iso2SensorPackageListType->SensorPackage.arrayLen < iso2SensorPackageListType_SensorPackage_ARRAY_SIZE) {
+ errn = decode_iso2SensorPackageType(stream, &iso2SensorPackageListType->SensorPackage.array[iso2SensorPackageListType->SensorPackage.arrayLen++]);
+ } else {
+ errn = EXI_ERROR_OUT_OF_BOUNDS;
+ }
+ grammarID = 988;
+ break;
+ case 1:
+ done = 1;
+ grammarID = 4;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 988:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorPackage), END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ if (iso2SensorPackageListType->SensorPackage.arrayLen < iso2SensorPackageListType_SensorPackage_ARRAY_SIZE) {
+ errn = decode_iso2SensorPackageType(stream, &iso2SensorPackageListType->SensorPackage.array[iso2SensorPackageListType->SensorPackage.arrayLen++]);
+ } else {
+ errn = EXI_ERROR_OUT_OF_BOUNDS;
+ }
+ grammarID = 989;
+ break;
+ case 1:
+ done = 1;
+ grammarID = 4;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 989:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorPackage), END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ if (iso2SensorPackageListType->SensorPackage.arrayLen < iso2SensorPackageListType_SensorPackage_ARRAY_SIZE) {
+ errn = decode_iso2SensorPackageType(stream, &iso2SensorPackageListType->SensorPackage.array[iso2SensorPackageListType->SensorPackage.arrayLen++]);
+ } else {
+ errn = EXI_ERROR_OUT_OF_BOUNDS;
+ }
+ grammarID = 990;
+ break;
+ case 1:
+ done = 1;
+ grammarID = 4;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 990:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorPackage), END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ if (iso2SensorPackageListType->SensorPackage.arrayLen < iso2SensorPackageListType_SensorPackage_ARRAY_SIZE) {
+ errn = decode_iso2SensorPackageType(stream, &iso2SensorPackageListType->SensorPackage.array[iso2SensorPackageListType->SensorPackage.arrayLen++]);
+ } else {
+ errn = EXI_ERROR_OUT_OF_BOUNDS;
+ }
+ grammarID = 991;
+ break;
+ case 1:
+ done = 1;
+ grammarID = 4;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 991:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorPackage), END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ if (iso2SensorPackageListType->SensorPackage.arrayLen < iso2SensorPackageListType_SensorPackage_ARRAY_SIZE) {
+ errn = decode_iso2SensorPackageType(stream, &iso2SensorPackageListType->SensorPackage.array[iso2SensorPackageListType->SensorPackage.arrayLen++]);
+ } else {
+ errn = EXI_ERROR_OUT_OF_BOUNDS;
+ }
+ grammarID = 992;
+ break;
+ case 1:
+ done = 1;
+ grammarID = 4;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 992:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorPackage), END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ if (iso2SensorPackageListType->SensorPackage.arrayLen < iso2SensorPackageListType_SensorPackage_ARRAY_SIZE) {
+ errn = decode_iso2SensorPackageType(stream, &iso2SensorPackageListType->SensorPackage.array[iso2SensorPackageListType->SensorPackage.arrayLen++]);
+ } else {
+ errn = EXI_ERROR_OUT_OF_BOUNDS;
+ }
+ grammarID = 993;
+ break;
+ case 1:
+ done = 1;
+ grammarID = 4;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 993:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorPackage), END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ if (iso2SensorPackageListType->SensorPackage.arrayLen < iso2SensorPackageListType_SensorPackage_ARRAY_SIZE) {
+ errn = decode_iso2SensorPackageType(stream, &iso2SensorPackageListType->SensorPackage.array[iso2SensorPackageListType->SensorPackage.arrayLen++]);
+ } else {
+ errn = EXI_ERROR_OUT_OF_BOUNDS;
+ }
+ grammarID = 994;
+ break;
+ case 1:
+ done = 1;
+ grammarID = 4;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 994:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorPackage), END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ if (iso2SensorPackageListType->SensorPackage.arrayLen < iso2SensorPackageListType_SensorPackage_ARRAY_SIZE) {
+ errn = decode_iso2SensorPackageType(stream, &iso2SensorPackageListType->SensorPackage.array[iso2SensorPackageListType->SensorPackage.arrayLen++]);
+ } else {
+ errn = EXI_ERROR_OUT_OF_BOUNDS;
+ }
+ grammarID = 995;
+ break;
+ case 1:
+ done = 1;
+ grammarID = 4;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 995:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorPackage), END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ if (iso2SensorPackageListType->SensorPackage.arrayLen < iso2SensorPackageListType_SensorPackage_ARRAY_SIZE) {
+ errn = decode_iso2SensorPackageType(stream, &iso2SensorPackageListType->SensorPackage.array[iso2SensorPackageListType->SensorPackage.arrayLen++]);
+ } else {
+ errn = EXI_ERROR_OUT_OF_BOUNDS;
+ }
+ grammarID = 996;
+ break;
+ case 1:
+ done = 1;
+ grammarID = 4;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 996:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorPackage), END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ if (iso2SensorPackageListType->SensorPackage.arrayLen < iso2SensorPackageListType_SensorPackage_ARRAY_SIZE) {
+ errn = decode_iso2SensorPackageType(stream, &iso2SensorPackageListType->SensorPackage.array[iso2SensorPackageListType->SensorPackage.arrayLen++]);
+ } else {
+ errn = EXI_ERROR_OUT_OF_BOUNDS;
+ }
+ grammarID = 997;
+ break;
+ case 1:
+ done = 1;
+ grammarID = 4;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 997:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorPackage), END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ if (iso2SensorPackageListType->SensorPackage.arrayLen < iso2SensorPackageListType_SensorPackage_ARRAY_SIZE) {
+ errn = decode_iso2SensorPackageType(stream, &iso2SensorPackageListType->SensorPackage.array[iso2SensorPackageListType->SensorPackage.arrayLen++]);
+ } else {
+ errn = EXI_ERROR_OUT_OF_BOUNDS;
+ }
+ grammarID = 998;
+ break;
+ case 1:
+ done = 1;
+ grammarID = 4;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 998:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorPackage), END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ if (iso2SensorPackageListType->SensorPackage.arrayLen < iso2SensorPackageListType_SensorPackage_ARRAY_SIZE) {
+ errn = decode_iso2SensorPackageType(stream, &iso2SensorPackageListType->SensorPackage.array[iso2SensorPackageListType->SensorPackage.arrayLen++]);
+ } else {
+ errn = EXI_ERROR_OUT_OF_BOUNDS;
+ }
+ grammarID = 999;
+ break;
+ case 1:
+ done = 1;
+ grammarID = 4;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 999:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorPackage), END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ if (iso2SensorPackageListType->SensorPackage.arrayLen < iso2SensorPackageListType_SensorPackage_ARRAY_SIZE) {
+ errn = decode_iso2SensorPackageType(stream, &iso2SensorPackageListType->SensorPackage.array[iso2SensorPackageListType->SensorPackage.arrayLen++]);
+ } else {
+ errn = EXI_ERROR_OUT_OF_BOUNDS;
+ }
+ grammarID = 1000;
+ break;
+ case 1:
+ done = 1;
+ grammarID = 4;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 1000:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorPackage), END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ if (iso2SensorPackageListType->SensorPackage.arrayLen < iso2SensorPackageListType_SensorPackage_ARRAY_SIZE) {
+ errn = decode_iso2SensorPackageType(stream, &iso2SensorPackageListType->SensorPackage.array[iso2SensorPackageListType->SensorPackage.arrayLen++]);
+ } else {
+ errn = EXI_ERROR_OUT_OF_BOUNDS;
+ }
+ grammarID = 1001;
+ break;
+ case 1:
+ done = 1;
+ grammarID = 4;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 1001:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorPackage), END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ if (iso2SensorPackageListType->SensorPackage.arrayLen < iso2SensorPackageListType_SensorPackage_ARRAY_SIZE) {
+ errn = decode_iso2SensorPackageType(stream, &iso2SensorPackageListType->SensorPackage.array[iso2SensorPackageListType->SensorPackage.arrayLen++]);
+ } else {
+ errn = EXI_ERROR_OUT_OF_BOUNDS;
+ }
+ grammarID = 1002;
+ break;
+ case 1:
+ done = 1;
+ grammarID = 4;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 1002:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorPackage), END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ if (iso2SensorPackageListType->SensorPackage.arrayLen < iso2SensorPackageListType_SensorPackage_ARRAY_SIZE) {
+ errn = decode_iso2SensorPackageType(stream, &iso2SensorPackageListType->SensorPackage.array[iso2SensorPackageListType->SensorPackage.arrayLen++]);
+ } else {
+ errn = EXI_ERROR_OUT_OF_BOUNDS;
+ }
+ grammarID = 1003;
+ break;
+ case 1:
+ done = 1;
+ grammarID = 4;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 1003:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorPackage), END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ if (iso2SensorPackageListType->SensorPackage.arrayLen < iso2SensorPackageListType_SensorPackage_ARRAY_SIZE) {
+ errn = decode_iso2SensorPackageType(stream, &iso2SensorPackageListType->SensorPackage.array[iso2SensorPackageListType->SensorPackage.arrayLen++]);
+ } else {
+ errn = EXI_ERROR_OUT_OF_BOUNDS;
+ }
+ grammarID = 1004;
+ break;
+ case 1:
+ done = 1;
+ grammarID = 4;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 1004:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorPackage), END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ if (iso2SensorPackageListType->SensorPackage.arrayLen < iso2SensorPackageListType_SensorPackage_ARRAY_SIZE) {
+ errn = decode_iso2SensorPackageType(stream, &iso2SensorPackageListType->SensorPackage.array[iso2SensorPackageListType->SensorPackage.arrayLen++]);
+ } else {
+ errn = EXI_ERROR_OUT_OF_BOUNDS;
+ }
+ grammarID = 1005;
+ break;
+ case 1:
+ done = 1;
+ grammarID = 4;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 1005:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorPackage), END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ if (iso2SensorPackageListType->SensorPackage.arrayLen < iso2SensorPackageListType_SensorPackage_ARRAY_SIZE) {
+ errn = decode_iso2SensorPackageType(stream, &iso2SensorPackageListType->SensorPackage.array[iso2SensorPackageListType->SensorPackage.arrayLen++]);
+ } else {
+ errn = EXI_ERROR_OUT_OF_BOUNDS;
+ }
+ grammarID = 1006;
+ break;
+ case 1:
+ done = 1;
+ grammarID = 4;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 1006:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorPackage), END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ if (iso2SensorPackageListType->SensorPackage.arrayLen < iso2SensorPackageListType_SensorPackage_ARRAY_SIZE) {
+ errn = decode_iso2SensorPackageType(stream, &iso2SensorPackageListType->SensorPackage.array[iso2SensorPackageListType->SensorPackage.arrayLen++]);
+ } else {
+ errn = EXI_ERROR_OUT_OF_BOUNDS;
+ }
+ grammarID = 1007;
+ break;
+ case 1:
+ done = 1;
+ grammarID = 4;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 1007:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorPackage), END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ if (iso2SensorPackageListType->SensorPackage.arrayLen < iso2SensorPackageListType_SensorPackage_ARRAY_SIZE) {
+ errn = decode_iso2SensorPackageType(stream, &iso2SensorPackageListType->SensorPackage.array[iso2SensorPackageListType->SensorPackage.arrayLen++]);
+ } else {
+ errn = EXI_ERROR_OUT_OF_BOUNDS;
+ }
+ grammarID = 1008;
+ break;
+ case 1:
+ done = 1;
+ grammarID = 4;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 1008:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorPackage), END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ if (iso2SensorPackageListType->SensorPackage.arrayLen < iso2SensorPackageListType_SensorPackage_ARRAY_SIZE) {
+ errn = decode_iso2SensorPackageType(stream, &iso2SensorPackageListType->SensorPackage.array[iso2SensorPackageListType->SensorPackage.arrayLen++]);
+ } else {
+ errn = EXI_ERROR_OUT_OF_BOUNDS;
+ }
+ grammarID = 1009;
+ break;
+ case 1:
+ done = 1;
+ grammarID = 4;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 1009:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorPackage), END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ if (iso2SensorPackageListType->SensorPackage.arrayLen < iso2SensorPackageListType_SensorPackage_ARRAY_SIZE) {
+ errn = decode_iso2SensorPackageType(stream, &iso2SensorPackageListType->SensorPackage.array[iso2SensorPackageListType->SensorPackage.arrayLen++]);
+ } else {
+ errn = EXI_ERROR_OUT_OF_BOUNDS;
+ }
+ grammarID = 1010;
+ break;
+ case 1:
+ done = 1;
+ grammarID = 4;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 1010:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorPackage), END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ if (iso2SensorPackageListType->SensorPackage.arrayLen < iso2SensorPackageListType_SensorPackage_ARRAY_SIZE) {
+ errn = decode_iso2SensorPackageType(stream, &iso2SensorPackageListType->SensorPackage.array[iso2SensorPackageListType->SensorPackage.arrayLen++]);
+ } else {
+ errn = EXI_ERROR_OUT_OF_BOUNDS;
+ }
+ grammarID = 1011;
+ break;
+ case 1:
+ done = 1;
+ grammarID = 4;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 1011:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorPackage), END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ if (iso2SensorPackageListType->SensorPackage.arrayLen < iso2SensorPackageListType_SensorPackage_ARRAY_SIZE) {
+ errn = decode_iso2SensorPackageType(stream, &iso2SensorPackageListType->SensorPackage.array[iso2SensorPackageListType->SensorPackage.arrayLen++]);
+ } else {
+ errn = EXI_ERROR_OUT_OF_BOUNDS;
+ }
+ grammarID = 1012;
+ break;
+ case 1:
+ done = 1;
+ grammarID = 4;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 1012:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorPackage), END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ if (iso2SensorPackageListType->SensorPackage.arrayLen < iso2SensorPackageListType_SensorPackage_ARRAY_SIZE) {
+ errn = decode_iso2SensorPackageType(stream, &iso2SensorPackageListType->SensorPackage.array[iso2SensorPackageListType->SensorPackage.arrayLen++]);
+ } else {
+ errn = EXI_ERROR_OUT_OF_BOUNDS;
+ }
+ grammarID = 1013;
+ break;
+ case 1:
+ done = 1;
+ grammarID = 4;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 1013:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorPackage), END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ if (iso2SensorPackageListType->SensorPackage.arrayLen < iso2SensorPackageListType_SensorPackage_ARRAY_SIZE) {
+ errn = decode_iso2SensorPackageType(stream, &iso2SensorPackageListType->SensorPackage.array[iso2SensorPackageListType->SensorPackage.arrayLen++]);
+ } else {
+ errn = EXI_ERROR_OUT_OF_BOUNDS;
+ }
+ grammarID = 1014;
+ break;
+ case 1:
+ done = 1;
+ grammarID = 4;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 1014:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorPackage), END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ if (iso2SensorPackageListType->SensorPackage.arrayLen < iso2SensorPackageListType_SensorPackage_ARRAY_SIZE) {
+ errn = decode_iso2SensorPackageType(stream, &iso2SensorPackageListType->SensorPackage.array[iso2SensorPackageListType->SensorPackage.arrayLen++]);
+ } else {
+ errn = EXI_ERROR_OUT_OF_BOUNDS;
+ }
+ grammarID = 1015;
+ break;
+ case 1:
+ done = 1;
+ grammarID = 4;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 1015:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorPackage), END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ if (iso2SensorPackageListType->SensorPackage.arrayLen < iso2SensorPackageListType_SensorPackage_ARRAY_SIZE) {
+ errn = decode_iso2SensorPackageType(stream, &iso2SensorPackageListType->SensorPackage.array[iso2SensorPackageListType->SensorPackage.arrayLen++]);
+ } else {
+ errn = EXI_ERROR_OUT_OF_BOUNDS;
+ }
+ grammarID = 1016;
+ break;
+ case 1:
+ done = 1;
+ grammarID = 4;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 1016:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorPackage), END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ if (iso2SensorPackageListType->SensorPackage.arrayLen < iso2SensorPackageListType_SensorPackage_ARRAY_SIZE) {
+ errn = decode_iso2SensorPackageType(stream, &iso2SensorPackageListType->SensorPackage.array[iso2SensorPackageListType->SensorPackage.arrayLen++]);
+ } else {
+ errn = EXI_ERROR_OUT_OF_BOUNDS;
+ }
+ grammarID = 1017;
+ break;
+ case 1:
+ done = 1;
+ grammarID = 4;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 1017:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorPackage), END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ if (iso2SensorPackageListType->SensorPackage.arrayLen < iso2SensorPackageListType_SensorPackage_ARRAY_SIZE) {
+ errn = decode_iso2SensorPackageType(stream, &iso2SensorPackageListType->SensorPackage.array[iso2SensorPackageListType->SensorPackage.arrayLen++]);
+ } else {
+ errn = EXI_ERROR_OUT_OF_BOUNDS;
+ }
+ grammarID = 1018;
+ break;
+ case 1:
+ done = 1;
+ grammarID = 4;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 1018:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorPackage), END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ if (iso2SensorPackageListType->SensorPackage.arrayLen < iso2SensorPackageListType_SensorPackage_ARRAY_SIZE) {
+ errn = decode_iso2SensorPackageType(stream, &iso2SensorPackageListType->SensorPackage.array[iso2SensorPackageListType->SensorPackage.arrayLen++]);
+ } else {
+ errn = EXI_ERROR_OUT_OF_BOUNDS;
+ }
+ grammarID = 1019;
+ break;
+ case 1:
+ done = 1;
+ grammarID = 4;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 1019:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorPackage), END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ if (iso2SensorPackageListType->SensorPackage.arrayLen < iso2SensorPackageListType_SensorPackage_ARRAY_SIZE) {
+ errn = decode_iso2SensorPackageType(stream, &iso2SensorPackageListType->SensorPackage.array[iso2SensorPackageListType->SensorPackage.arrayLen++]);
+ } else {
+ errn = EXI_ERROR_OUT_OF_BOUNDS;
+ }
+ grammarID = 1020;
+ break;
+ case 1:
+ done = 1;
+ grammarID = 4;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 1020:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorPackage), END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ if (iso2SensorPackageListType->SensorPackage.arrayLen < iso2SensorPackageListType_SensorPackage_ARRAY_SIZE) {
+ errn = decode_iso2SensorPackageType(stream, &iso2SensorPackageListType->SensorPackage.array[iso2SensorPackageListType->SensorPackage.arrayLen++]);
+ } else {
+ errn = EXI_ERROR_OUT_OF_BOUNDS;
+ }
+ grammarID = 1021;
+ break;
+ case 1:
+ done = 1;
+ grammarID = 4;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 1021:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorPackage), END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ if (iso2SensorPackageListType->SensorPackage.arrayLen < iso2SensorPackageListType_SensorPackage_ARRAY_SIZE) {
+ errn = decode_iso2SensorPackageType(stream, &iso2SensorPackageListType->SensorPackage.array[iso2SensorPackageListType->SensorPackage.arrayLen++]);
+ } else {
+ errn = EXI_ERROR_OUT_OF_BOUNDS;
+ }
+ grammarID = 1022;
+ break;
+ case 1:
+ done = 1;
+ grammarID = 4;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 1022:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorPackage), END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ if (iso2SensorPackageListType->SensorPackage.arrayLen < iso2SensorPackageListType_SensorPackage_ARRAY_SIZE) {
+ errn = decode_iso2SensorPackageType(stream, &iso2SensorPackageListType->SensorPackage.array[iso2SensorPackageListType->SensorPackage.arrayLen++]);
+ } else {
+ errn = EXI_ERROR_OUT_OF_BOUNDS;
+ }
+ grammarID = 1023;
+ break;
+ case 1:
+ done = 1;
+ grammarID = 4;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 1023:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorPackage), END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ if (iso2SensorPackageListType->SensorPackage.arrayLen < iso2SensorPackageListType_SensorPackage_ARRAY_SIZE) {
+ errn = decode_iso2SensorPackageType(stream, &iso2SensorPackageListType->SensorPackage.array[iso2SensorPackageListType->SensorPackage.arrayLen++]);
+ } else {
+ errn = EXI_ERROR_OUT_OF_BOUNDS;
+ }
+ grammarID = 1024;
+ break;
+ case 1:
+ done = 1;
+ grammarID = 4;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 1024:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorPackage), END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ if (iso2SensorPackageListType->SensorPackage.arrayLen < iso2SensorPackageListType_SensorPackage_ARRAY_SIZE) {
+ errn = decode_iso2SensorPackageType(stream, &iso2SensorPackageListType->SensorPackage.array[iso2SensorPackageListType->SensorPackage.arrayLen++]);
+ } else {
+ errn = EXI_ERROR_OUT_OF_BOUNDS;
+ }
+ grammarID = 1025;
+ break;
+ case 1:
+ done = 1;
+ grammarID = 4;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 1025:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorPackage), END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ if (iso2SensorPackageListType->SensorPackage.arrayLen < iso2SensorPackageListType_SensorPackage_ARRAY_SIZE) {
+ errn = decode_iso2SensorPackageType(stream, &iso2SensorPackageListType->SensorPackage.array[iso2SensorPackageListType->SensorPackage.arrayLen++]);
+ } else {
+ errn = EXI_ERROR_OUT_OF_BOUNDS;
+ }
+ grammarID = 1026;
+ break;
+ case 1:
+ done = 1;
+ grammarID = 4;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 1026:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorPackage), END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ if (iso2SensorPackageListType->SensorPackage.arrayLen < iso2SensorPackageListType_SensorPackage_ARRAY_SIZE) {
+ errn = decode_iso2SensorPackageType(stream, &iso2SensorPackageListType->SensorPackage.array[iso2SensorPackageListType->SensorPackage.arrayLen++]);
+ } else {
+ errn = EXI_ERROR_OUT_OF_BOUNDS;
+ }
+ grammarID = 1027;
+ break;
+ case 1:
+ done = 1;
+ grammarID = 4;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 1027:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorPackage), END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ if (iso2SensorPackageListType->SensorPackage.arrayLen < iso2SensorPackageListType_SensorPackage_ARRAY_SIZE) {
+ errn = decode_iso2SensorPackageType(stream, &iso2SensorPackageListType->SensorPackage.array[iso2SensorPackageListType->SensorPackage.arrayLen++]);
+ } else {
+ errn = EXI_ERROR_OUT_OF_BOUNDS;
+ }
+ grammarID = 1028;
+ break;
+ case 1:
+ done = 1;
+ grammarID = 4;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 1028:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorPackage), END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ if (iso2SensorPackageListType->SensorPackage.arrayLen < iso2SensorPackageListType_SensorPackage_ARRAY_SIZE) {
+ errn = decode_iso2SensorPackageType(stream, &iso2SensorPackageListType->SensorPackage.array[iso2SensorPackageListType->SensorPackage.arrayLen++]);
+ } else {
+ errn = EXI_ERROR_OUT_OF_BOUNDS;
+ }
+ grammarID = 1029;
+ break;
+ case 1:
+ done = 1;
+ grammarID = 4;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 1029:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorPackage), END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ if (iso2SensorPackageListType->SensorPackage.arrayLen < iso2SensorPackageListType_SensorPackage_ARRAY_SIZE) {
+ errn = decode_iso2SensorPackageType(stream, &iso2SensorPackageListType->SensorPackage.array[iso2SensorPackageListType->SensorPackage.arrayLen++]);
+ } else {
+ errn = EXI_ERROR_OUT_OF_BOUNDS;
+ }
+ grammarID = 1030;
+ break;
+ case 1:
+ done = 1;
+ grammarID = 4;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 1030:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorPackage), END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ if (iso2SensorPackageListType->SensorPackage.arrayLen < iso2SensorPackageListType_SensorPackage_ARRAY_SIZE) {
+ errn = decode_iso2SensorPackageType(stream, &iso2SensorPackageListType->SensorPackage.array[iso2SensorPackageListType->SensorPackage.arrayLen++]);
+ } else {
+ errn = EXI_ERROR_OUT_OF_BOUNDS;
+ }
+ grammarID = 1031;
+ break;
+ case 1:
+ done = 1;
+ grammarID = 4;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 1031:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorPackage), END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ if (iso2SensorPackageListType->SensorPackage.arrayLen < iso2SensorPackageListType_SensorPackage_ARRAY_SIZE) {
+ errn = decode_iso2SensorPackageType(stream, &iso2SensorPackageListType->SensorPackage.array[iso2SensorPackageListType->SensorPackage.arrayLen++]);
+ } else {
+ errn = EXI_ERROR_OUT_OF_BOUNDS;
+ }
+ grammarID = 1032;
+ break;
+ case 1:
+ done = 1;
+ grammarID = 4;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 1032:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorPackage), END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ if (iso2SensorPackageListType->SensorPackage.arrayLen < iso2SensorPackageListType_SensorPackage_ARRAY_SIZE) {
+ errn = decode_iso2SensorPackageType(stream, &iso2SensorPackageListType->SensorPackage.array[iso2SensorPackageListType->SensorPackage.arrayLen++]);
+ } else {
+ errn = EXI_ERROR_OUT_OF_BOUNDS;
+ }
+ grammarID = 1033;
+ break;
+ case 1:
+ done = 1;
+ grammarID = 4;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 1033:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorPackage), END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ if (iso2SensorPackageListType->SensorPackage.arrayLen < iso2SensorPackageListType_SensorPackage_ARRAY_SIZE) {
+ errn = decode_iso2SensorPackageType(stream, &iso2SensorPackageListType->SensorPackage.array[iso2SensorPackageListType->SensorPackage.arrayLen++]);
+ } else {
+ errn = EXI_ERROR_OUT_OF_BOUNDS;
+ }
+ grammarID = 1034;
+ break;
+ case 1:
+ done = 1;
+ grammarID = 4;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 1034:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorPackage), END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ if (iso2SensorPackageListType->SensorPackage.arrayLen < iso2SensorPackageListType_SensorPackage_ARRAY_SIZE) {
+ errn = decode_iso2SensorPackageType(stream, &iso2SensorPackageListType->SensorPackage.array[iso2SensorPackageListType->SensorPackage.arrayLen++]);
+ } else {
+ errn = EXI_ERROR_OUT_OF_BOUNDS;
+ }
+ grammarID = 1035;
+ break;
+ case 1:
+ done = 1;
+ grammarID = 4;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 1035:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorPackage), END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ if (iso2SensorPackageListType->SensorPackage.arrayLen < iso2SensorPackageListType_SensorPackage_ARRAY_SIZE) {
+ errn = decode_iso2SensorPackageType(stream, &iso2SensorPackageListType->SensorPackage.array[iso2SensorPackageListType->SensorPackage.arrayLen++]);
+ } else {
+ errn = EXI_ERROR_OUT_OF_BOUNDS;
+ }
+ grammarID = 1036;
+ break;
+ case 1:
+ done = 1;
+ grammarID = 4;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 1036:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorPackage), END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ if (iso2SensorPackageListType->SensorPackage.arrayLen < iso2SensorPackageListType_SensorPackage_ARRAY_SIZE) {
+ errn = decode_iso2SensorPackageType(stream, &iso2SensorPackageListType->SensorPackage.array[iso2SensorPackageListType->SensorPackage.arrayLen++]);
+ } else {
+ errn = EXI_ERROR_OUT_OF_BOUNDS;
+ }
+ grammarID = 1037;
+ break;
+ case 1:
+ done = 1;
+ grammarID = 4;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 1037:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorPackage), END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ if (iso2SensorPackageListType->SensorPackage.arrayLen < iso2SensorPackageListType_SensorPackage_ARRAY_SIZE) {
+ errn = decode_iso2SensorPackageType(stream, &iso2SensorPackageListType->SensorPackage.array[iso2SensorPackageListType->SensorPackage.arrayLen++]);
+ } else {
+ errn = EXI_ERROR_OUT_OF_BOUNDS;
+ }
+ grammarID = 1038;
+ break;
+ case 1:
+ done = 1;
+ grammarID = 4;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 1038:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorPackage), END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ if (iso2SensorPackageListType->SensorPackage.arrayLen < iso2SensorPackageListType_SensorPackage_ARRAY_SIZE) {
+ errn = decode_iso2SensorPackageType(stream, &iso2SensorPackageListType->SensorPackage.array[iso2SensorPackageListType->SensorPackage.arrayLen++]);
+ } else {
+ errn = EXI_ERROR_OUT_OF_BOUNDS;
+ }
+ grammarID = 1039;
+ break;
+ case 1:
+ done = 1;
+ grammarID = 4;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 1039:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorPackage), END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ if (iso2SensorPackageListType->SensorPackage.arrayLen < iso2SensorPackageListType_SensorPackage_ARRAY_SIZE) {
+ errn = decode_iso2SensorPackageType(stream, &iso2SensorPackageListType->SensorPackage.array[iso2SensorPackageListType->SensorPackage.arrayLen++]);
+ } else {
+ errn = EXI_ERROR_OUT_OF_BOUNDS;
+ }
+ grammarID = 1040;
+ break;
+ case 1:
+ done = 1;
+ grammarID = 4;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 1040:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorPackage), END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ if (iso2SensorPackageListType->SensorPackage.arrayLen < iso2SensorPackageListType_SensorPackage_ARRAY_SIZE) {
+ errn = decode_iso2SensorPackageType(stream, &iso2SensorPackageListType->SensorPackage.array[iso2SensorPackageListType->SensorPackage.arrayLen++]);
+ } else {
+ errn = EXI_ERROR_OUT_OF_BOUNDS;
+ }
+ grammarID = 1041;
+ break;
+ case 1:
+ done = 1;
+ grammarID = 4;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 1041:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorPackage), END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ if (iso2SensorPackageListType->SensorPackage.arrayLen < iso2SensorPackageListType_SensorPackage_ARRAY_SIZE) {
+ errn = decode_iso2SensorPackageType(stream, &iso2SensorPackageListType->SensorPackage.array[iso2SensorPackageListType->SensorPackage.arrayLen++]);
+ } else {
+ errn = EXI_ERROR_OUT_OF_BOUNDS;
+ }
+ grammarID = 1042;
+ break;
+ case 1:
+ done = 1;
+ grammarID = 4;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 1042:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorPackage), END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ if (iso2SensorPackageListType->SensorPackage.arrayLen < iso2SensorPackageListType_SensorPackage_ARRAY_SIZE) {
+ errn = decode_iso2SensorPackageType(stream, &iso2SensorPackageListType->SensorPackage.array[iso2SensorPackageListType->SensorPackage.arrayLen++]);
+ } else {
+ errn = EXI_ERROR_OUT_OF_BOUNDS;
+ }
+ grammarID = 1043;
+ break;
+ case 1:
+ done = 1;
+ grammarID = 4;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 1043:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorPackage), END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ if (iso2SensorPackageListType->SensorPackage.arrayLen < iso2SensorPackageListType_SensorPackage_ARRAY_SIZE) {
+ errn = decode_iso2SensorPackageType(stream, &iso2SensorPackageListType->SensorPackage.array[iso2SensorPackageListType->SensorPackage.arrayLen++]);
+ } else {
+ errn = EXI_ERROR_OUT_OF_BOUNDS;
+ }
+ grammarID = 1044;
+ break;
+ case 1:
+ done = 1;
+ grammarID = 4;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 1044:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorPackage), END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ if (iso2SensorPackageListType->SensorPackage.arrayLen < iso2SensorPackageListType_SensorPackage_ARRAY_SIZE) {
+ errn = decode_iso2SensorPackageType(stream, &iso2SensorPackageListType->SensorPackage.array[iso2SensorPackageListType->SensorPackage.arrayLen++]);
+ } else {
+ errn = EXI_ERROR_OUT_OF_BOUNDS;
+ }
+ grammarID = 1045;
+ break;
+ case 1:
+ done = 1;
+ grammarID = 4;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 1045:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorPackage), END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ if (iso2SensorPackageListType->SensorPackage.arrayLen < iso2SensorPackageListType_SensorPackage_ARRAY_SIZE) {
+ errn = decode_iso2SensorPackageType(stream, &iso2SensorPackageListType->SensorPackage.array[iso2SensorPackageListType->SensorPackage.arrayLen++]);
+ } else {
+ errn = EXI_ERROR_OUT_OF_BOUNDS;
+ }
+ grammarID = 1046;
+ break;
+ case 1:
+ done = 1;
+ grammarID = 4;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 1046:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorPackage), END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ if (iso2SensorPackageListType->SensorPackage.arrayLen < iso2SensorPackageListType_SensorPackage_ARRAY_SIZE) {
+ errn = decode_iso2SensorPackageType(stream, &iso2SensorPackageListType->SensorPackage.array[iso2SensorPackageListType->SensorPackage.arrayLen++]);
+ } else {
+ errn = EXI_ERROR_OUT_OF_BOUNDS;
+ }
+ grammarID = 1047;
+ break;
+ case 1:
+ done = 1;
+ grammarID = 4;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 1047:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorPackage), END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ if (iso2SensorPackageListType->SensorPackage.arrayLen < iso2SensorPackageListType_SensorPackage_ARRAY_SIZE) {
+ errn = decode_iso2SensorPackageType(stream, &iso2SensorPackageListType->SensorPackage.array[iso2SensorPackageListType->SensorPackage.arrayLen++]);
+ } else {
+ errn = EXI_ERROR_OUT_OF_BOUNDS;
+ }
+ grammarID = 1048;
+ break;
+ case 1:
+ done = 1;
+ grammarID = 4;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 1048:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorPackage), END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ if (iso2SensorPackageListType->SensorPackage.arrayLen < iso2SensorPackageListType_SensorPackage_ARRAY_SIZE) {
+ errn = decode_iso2SensorPackageType(stream, &iso2SensorPackageListType->SensorPackage.array[iso2SensorPackageListType->SensorPackage.arrayLen++]);
+ } else {
+ errn = EXI_ERROR_OUT_OF_BOUNDS;
+ }
+ grammarID = 1049;
+ break;
+ case 1:
+ done = 1;
+ grammarID = 4;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 1049:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorPackage), END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ if (iso2SensorPackageListType->SensorPackage.arrayLen < iso2SensorPackageListType_SensorPackage_ARRAY_SIZE) {
+ errn = decode_iso2SensorPackageType(stream, &iso2SensorPackageListType->SensorPackage.array[iso2SensorPackageListType->SensorPackage.arrayLen++]);
+ } else {
+ errn = EXI_ERROR_OUT_OF_BOUNDS;
+ }
+ grammarID = 1050;
+ break;
+ case 1:
+ done = 1;
+ grammarID = 4;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 1050:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorPackage), END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ if (iso2SensorPackageListType->SensorPackage.arrayLen < iso2SensorPackageListType_SensorPackage_ARRAY_SIZE) {
+ errn = decode_iso2SensorPackageType(stream, &iso2SensorPackageListType->SensorPackage.array[iso2SensorPackageListType->SensorPackage.arrayLen++]);
+ } else {
+ errn = EXI_ERROR_OUT_OF_BOUNDS;
+ }
+ grammarID = 1051;
+ break;
+ case 1:
+ done = 1;
+ grammarID = 4;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 1051:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorPackage), END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ if (iso2SensorPackageListType->SensorPackage.arrayLen < iso2SensorPackageListType_SensorPackage_ARRAY_SIZE) {
+ errn = decode_iso2SensorPackageType(stream, &iso2SensorPackageListType->SensorPackage.array[iso2SensorPackageListType->SensorPackage.arrayLen++]);
+ } else {
+ errn = EXI_ERROR_OUT_OF_BOUNDS;
+ }
+ grammarID = 1052;
+ break;
+ case 1:
+ done = 1;
+ grammarID = 4;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 1052:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorPackage), END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ if (iso2SensorPackageListType->SensorPackage.arrayLen < iso2SensorPackageListType_SensorPackage_ARRAY_SIZE) {
+ errn = decode_iso2SensorPackageType(stream, &iso2SensorPackageListType->SensorPackage.array[iso2SensorPackageListType->SensorPackage.arrayLen++]);
+ } else {
+ errn = EXI_ERROR_OUT_OF_BOUNDS;
+ }
+ grammarID = 1053;
+ break;
+ case 1:
+ done = 1;
+ grammarID = 4;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 1053:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorPackage), END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ if (iso2SensorPackageListType->SensorPackage.arrayLen < iso2SensorPackageListType_SensorPackage_ARRAY_SIZE) {
+ errn = decode_iso2SensorPackageType(stream, &iso2SensorPackageListType->SensorPackage.array[iso2SensorPackageListType->SensorPackage.arrayLen++]);
+ } else {
+ errn = EXI_ERROR_OUT_OF_BOUNDS;
+ }
+ grammarID = 1054;
+ break;
+ case 1:
+ done = 1;
+ grammarID = 4;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 1054:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorPackage), END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ if (iso2SensorPackageListType->SensorPackage.arrayLen < iso2SensorPackageListType_SensorPackage_ARRAY_SIZE) {
+ errn = decode_iso2SensorPackageType(stream, &iso2SensorPackageListType->SensorPackage.array[iso2SensorPackageListType->SensorPackage.arrayLen++]);
+ } else {
+ errn = EXI_ERROR_OUT_OF_BOUNDS;
+ }
+ grammarID = 1055;
+ break;
+ case 1:
+ done = 1;
+ grammarID = 4;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 1055:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorPackage), END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ if (iso2SensorPackageListType->SensorPackage.arrayLen < iso2SensorPackageListType_SensorPackage_ARRAY_SIZE) {
+ errn = decode_iso2SensorPackageType(stream, &iso2SensorPackageListType->SensorPackage.array[iso2SensorPackageListType->SensorPackage.arrayLen++]);
+ } else {
+ errn = EXI_ERROR_OUT_OF_BOUNDS;
+ }
+ grammarID = 1056;
+ break;
+ case 1:
+ done = 1;
+ grammarID = 4;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 1056:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorPackage), END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ if (iso2SensorPackageListType->SensorPackage.arrayLen < iso2SensorPackageListType_SensorPackage_ARRAY_SIZE) {
+ errn = decode_iso2SensorPackageType(stream, &iso2SensorPackageListType->SensorPackage.array[iso2SensorPackageListType->SensorPackage.arrayLen++]);
+ } else {
+ errn = EXI_ERROR_OUT_OF_BOUNDS;
+ }
+ grammarID = 1057;
+ break;
+ case 1:
+ done = 1;
+ grammarID = 4;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 1057:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorPackage), END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ if (iso2SensorPackageListType->SensorPackage.arrayLen < iso2SensorPackageListType_SensorPackage_ARRAY_SIZE) {
+ errn = decode_iso2SensorPackageType(stream, &iso2SensorPackageListType->SensorPackage.array[iso2SensorPackageListType->SensorPackage.arrayLen++]);
+ } else {
+ errn = EXI_ERROR_OUT_OF_BOUNDS;
+ }
+ grammarID = 1058;
+ break;
+ case 1:
+ done = 1;
+ grammarID = 4;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 1058:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorPackage), END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ if (iso2SensorPackageListType->SensorPackage.arrayLen < iso2SensorPackageListType_SensorPackage_ARRAY_SIZE) {
+ errn = decode_iso2SensorPackageType(stream, &iso2SensorPackageListType->SensorPackage.array[iso2SensorPackageListType->SensorPackage.arrayLen++]);
+ } else {
+ errn = EXI_ERROR_OUT_OF_BOUNDS;
+ }
+ grammarID = 1059;
+ break;
+ case 1:
+ done = 1;
+ grammarID = 4;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 1059:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorPackage), END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ if (iso2SensorPackageListType->SensorPackage.arrayLen < iso2SensorPackageListType_SensorPackage_ARRAY_SIZE) {
+ errn = decode_iso2SensorPackageType(stream, &iso2SensorPackageListType->SensorPackage.array[iso2SensorPackageListType->SensorPackage.arrayLen++]);
+ } else {
+ errn = EXI_ERROR_OUT_OF_BOUNDS;
+ }
+ grammarID = 1060;
+ break;
+ case 1:
+ done = 1;
+ grammarID = 4;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 1060:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorPackage), END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ if (iso2SensorPackageListType->SensorPackage.arrayLen < iso2SensorPackageListType_SensorPackage_ARRAY_SIZE) {
+ errn = decode_iso2SensorPackageType(stream, &iso2SensorPackageListType->SensorPackage.array[iso2SensorPackageListType->SensorPackage.arrayLen++]);
+ } else {
+ errn = EXI_ERROR_OUT_OF_BOUNDS;
+ }
+ grammarID = 1061;
+ break;
+ case 1:
+ done = 1;
+ grammarID = 4;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 1061:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorPackage), END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ if (iso2SensorPackageListType->SensorPackage.arrayLen < iso2SensorPackageListType_SensorPackage_ARRAY_SIZE) {
+ errn = decode_iso2SensorPackageType(stream, &iso2SensorPackageListType->SensorPackage.array[iso2SensorPackageListType->SensorPackage.arrayLen++]);
+ } else {
+ errn = EXI_ERROR_OUT_OF_BOUNDS;
+ }
+ grammarID = 1062;
+ break;
+ case 1:
+ done = 1;
+ grammarID = 4;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 1062:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorPackage), END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ if (iso2SensorPackageListType->SensorPackage.arrayLen < iso2SensorPackageListType_SensorPackage_ARRAY_SIZE) {
+ errn = decode_iso2SensorPackageType(stream, &iso2SensorPackageListType->SensorPackage.array[iso2SensorPackageListType->SensorPackage.arrayLen++]);
+ } else {
+ errn = EXI_ERROR_OUT_OF_BOUNDS;
+ }
+ grammarID = 1063;
+ break;
+ case 1:
+ done = 1;
+ grammarID = 4;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 1063:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorPackage), END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ if (iso2SensorPackageListType->SensorPackage.arrayLen < iso2SensorPackageListType_SensorPackage_ARRAY_SIZE) {
+ errn = decode_iso2SensorPackageType(stream, &iso2SensorPackageListType->SensorPackage.array[iso2SensorPackageListType->SensorPackage.arrayLen++]);
+ } else {
+ errn = EXI_ERROR_OUT_OF_BOUNDS;
+ }
+ grammarID = 1064;
+ break;
+ case 1:
+ done = 1;
+ grammarID = 4;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 1064:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorPackage), END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ if (iso2SensorPackageListType->SensorPackage.arrayLen < iso2SensorPackageListType_SensorPackage_ARRAY_SIZE) {
+ errn = decode_iso2SensorPackageType(stream, &iso2SensorPackageListType->SensorPackage.array[iso2SensorPackageListType->SensorPackage.arrayLen++]);
+ } else {
+ errn = EXI_ERROR_OUT_OF_BOUNDS;
+ }
+ grammarID = 1065;
+ break;
+ case 1:
+ done = 1;
+ grammarID = 4;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 1065:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorPackage), END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ if (iso2SensorPackageListType->SensorPackage.arrayLen < iso2SensorPackageListType_SensorPackage_ARRAY_SIZE) {
+ errn = decode_iso2SensorPackageType(stream, &iso2SensorPackageListType->SensorPackage.array[iso2SensorPackageListType->SensorPackage.arrayLen++]);
+ } else {
+ errn = EXI_ERROR_OUT_OF_BOUNDS;
+ }
+ grammarID = 1066;
+ break;
+ case 1:
+ done = 1;
+ grammarID = 4;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 1066:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorPackage), END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ if (iso2SensorPackageListType->SensorPackage.arrayLen < iso2SensorPackageListType_SensorPackage_ARRAY_SIZE) {
+ errn = decode_iso2SensorPackageType(stream, &iso2SensorPackageListType->SensorPackage.array[iso2SensorPackageListType->SensorPackage.arrayLen++]);
+ } else {
+ errn = EXI_ERROR_OUT_OF_BOUNDS;
+ }
+ grammarID = 1067;
+ break;
+ case 1:
+ done = 1;
+ grammarID = 4;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 1067:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorPackage), END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ if (iso2SensorPackageListType->SensorPackage.arrayLen < iso2SensorPackageListType_SensorPackage_ARRAY_SIZE) {
+ errn = decode_iso2SensorPackageType(stream, &iso2SensorPackageListType->SensorPackage.array[iso2SensorPackageListType->SensorPackage.arrayLen++]);
+ } else {
+ errn = EXI_ERROR_OUT_OF_BOUNDS;
+ }
+ grammarID = 1068;
+ break;
+ case 1:
+ done = 1;
+ grammarID = 4;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 1068:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorPackage), END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ if (iso2SensorPackageListType->SensorPackage.arrayLen < iso2SensorPackageListType_SensorPackage_ARRAY_SIZE) {
+ errn = decode_iso2SensorPackageType(stream, &iso2SensorPackageListType->SensorPackage.array[iso2SensorPackageListType->SensorPackage.arrayLen++]);
+ } else {
+ errn = EXI_ERROR_OUT_OF_BOUNDS;
+ }
+ grammarID = 1069;
+ break;
+ case 1:
+ done = 1;
+ grammarID = 4;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 1069:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorPackage), END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ if (iso2SensorPackageListType->SensorPackage.arrayLen < iso2SensorPackageListType_SensorPackage_ARRAY_SIZE) {
+ errn = decode_iso2SensorPackageType(stream, &iso2SensorPackageListType->SensorPackage.array[iso2SensorPackageListType->SensorPackage.arrayLen++]);
+ } else {
+ errn = EXI_ERROR_OUT_OF_BOUNDS;
+ }
+ grammarID = 1070;
+ break;
+ case 1:
+ done = 1;
+ grammarID = 4;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 1070:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorPackage), END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ if (iso2SensorPackageListType->SensorPackage.arrayLen < iso2SensorPackageListType_SensorPackage_ARRAY_SIZE) {
+ errn = decode_iso2SensorPackageType(stream, &iso2SensorPackageListType->SensorPackage.array[iso2SensorPackageListType->SensorPackage.arrayLen++]);
+ } else {
+ errn = EXI_ERROR_OUT_OF_BOUNDS;
+ }
+ grammarID = 1071;
+ break;
+ case 1:
+ done = 1;
+ grammarID = 4;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 1071:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorPackage), END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ if (iso2SensorPackageListType->SensorPackage.arrayLen < iso2SensorPackageListType_SensorPackage_ARRAY_SIZE) {
+ errn = decode_iso2SensorPackageType(stream, &iso2SensorPackageListType->SensorPackage.array[iso2SensorPackageListType->SensorPackage.arrayLen++]);
+ } else {
+ errn = EXI_ERROR_OUT_OF_BOUNDS;
+ }
+ grammarID = 1072;
+ break;
+ case 1:
+ done = 1;
+ grammarID = 4;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 1072:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorPackage), END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ if (iso2SensorPackageListType->SensorPackage.arrayLen < iso2SensorPackageListType_SensorPackage_ARRAY_SIZE) {
+ errn = decode_iso2SensorPackageType(stream, &iso2SensorPackageListType->SensorPackage.array[iso2SensorPackageListType->SensorPackage.arrayLen++]);
+ } else {
+ errn = EXI_ERROR_OUT_OF_BOUNDS;
+ }
+ grammarID = 1073;
+ break;
+ case 1:
+ done = 1;
+ grammarID = 4;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 1073:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorPackage), END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ if (iso2SensorPackageListType->SensorPackage.arrayLen < iso2SensorPackageListType_SensorPackage_ARRAY_SIZE) {
+ errn = decode_iso2SensorPackageType(stream, &iso2SensorPackageListType->SensorPackage.array[iso2SensorPackageListType->SensorPackage.arrayLen++]);
+ } else {
+ errn = EXI_ERROR_OUT_OF_BOUNDS;
+ }
+ grammarID = 1074;
+ break;
+ case 1:
+ done = 1;
+ grammarID = 4;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 1074:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorPackage), END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ if (iso2SensorPackageListType->SensorPackage.arrayLen < iso2SensorPackageListType_SensorPackage_ARRAY_SIZE) {
+ errn = decode_iso2SensorPackageType(stream, &iso2SensorPackageListType->SensorPackage.array[iso2SensorPackageListType->SensorPackage.arrayLen++]);
+ } else {
+ errn = EXI_ERROR_OUT_OF_BOUNDS;
+ }
+ grammarID = 1075;
+ break;
+ case 1:
+ done = 1;
+ grammarID = 4;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 1075:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorPackage), END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ if (iso2SensorPackageListType->SensorPackage.arrayLen < iso2SensorPackageListType_SensorPackage_ARRAY_SIZE) {
+ errn = decode_iso2SensorPackageType(stream, &iso2SensorPackageListType->SensorPackage.array[iso2SensorPackageListType->SensorPackage.arrayLen++]);
+ } else {
+ errn = EXI_ERROR_OUT_OF_BOUNDS;
+ }
+ grammarID = 1076;
+ break;
+ case 1:
+ done = 1;
+ grammarID = 4;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 1076:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorPackage), END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ if (iso2SensorPackageListType->SensorPackage.arrayLen < iso2SensorPackageListType_SensorPackage_ARRAY_SIZE) {
+ errn = decode_iso2SensorPackageType(stream, &iso2SensorPackageListType->SensorPackage.array[iso2SensorPackageListType->SensorPackage.arrayLen++]);
+ } else {
+ errn = EXI_ERROR_OUT_OF_BOUNDS;
+ }
+ grammarID = 1077;
+ break;
+ case 1:
+ done = 1;
+ grammarID = 4;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 1077:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorPackage), END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ if (iso2SensorPackageListType->SensorPackage.arrayLen < iso2SensorPackageListType_SensorPackage_ARRAY_SIZE) {
+ errn = decode_iso2SensorPackageType(stream, &iso2SensorPackageListType->SensorPackage.array[iso2SensorPackageListType->SensorPackage.arrayLen++]);
+ } else {
+ errn = EXI_ERROR_OUT_OF_BOUNDS;
+ }
+ grammarID = 1078;
+ break;
+ case 1:
+ done = 1;
+ grammarID = 4;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 1078:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorPackage), END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ if (iso2SensorPackageListType->SensorPackage.arrayLen < iso2SensorPackageListType_SensorPackage_ARRAY_SIZE) {
+ errn = decode_iso2SensorPackageType(stream, &iso2SensorPackageListType->SensorPackage.array[iso2SensorPackageListType->SensorPackage.arrayLen++]);
+ } else {
+ errn = EXI_ERROR_OUT_OF_BOUNDS;
+ }
+ grammarID = 1079;
+ break;
+ case 1:
+ done = 1;
+ grammarID = 4;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 1079:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorPackage), END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ if (iso2SensorPackageListType->SensorPackage.arrayLen < iso2SensorPackageListType_SensorPackage_ARRAY_SIZE) {
+ errn = decode_iso2SensorPackageType(stream, &iso2SensorPackageListType->SensorPackage.array[iso2SensorPackageListType->SensorPackage.arrayLen++]);
+ } else {
+ errn = EXI_ERROR_OUT_OF_BOUNDS;
+ }
+ grammarID = 1080;
+ break;
+ case 1:
+ done = 1;
+ grammarID = 4;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 1080:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorPackage), END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ if (iso2SensorPackageListType->SensorPackage.arrayLen < iso2SensorPackageListType_SensorPackage_ARRAY_SIZE) {
+ errn = decode_iso2SensorPackageType(stream, &iso2SensorPackageListType->SensorPackage.array[iso2SensorPackageListType->SensorPackage.arrayLen++]);
+ } else {
+ errn = EXI_ERROR_OUT_OF_BOUNDS;
+ }
+ grammarID = 1081;
+ break;
+ case 1:
+ done = 1;
+ grammarID = 4;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 1081:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorPackage), END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ if (iso2SensorPackageListType->SensorPackage.arrayLen < iso2SensorPackageListType_SensorPackage_ARRAY_SIZE) {
+ errn = decode_iso2SensorPackageType(stream, &iso2SensorPackageListType->SensorPackage.array[iso2SensorPackageListType->SensorPackage.arrayLen++]);
+ } else {
+ errn = EXI_ERROR_OUT_OF_BOUNDS;
+ }
+ grammarID = 1082;
+ break;
+ case 1:
+ done = 1;
+ grammarID = 4;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 1082:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorPackage), END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ if (iso2SensorPackageListType->SensorPackage.arrayLen < iso2SensorPackageListType_SensorPackage_ARRAY_SIZE) {
+ errn = decode_iso2SensorPackageType(stream, &iso2SensorPackageListType->SensorPackage.array[iso2SensorPackageListType->SensorPackage.arrayLen++]);
+ } else {
+ errn = EXI_ERROR_OUT_OF_BOUNDS;
+ }
+ grammarID = 1083;
+ break;
+ case 1:
+ done = 1;
+ grammarID = 4;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 1083:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorPackage), END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ if (iso2SensorPackageListType->SensorPackage.arrayLen < iso2SensorPackageListType_SensorPackage_ARRAY_SIZE) {
+ errn = decode_iso2SensorPackageType(stream, &iso2SensorPackageListType->SensorPackage.array[iso2SensorPackageListType->SensorPackage.arrayLen++]);
+ } else {
+ errn = EXI_ERROR_OUT_OF_BOUNDS;
+ }
+ grammarID = 1084;
+ break;
+ case 1:
+ done = 1;
+ grammarID = 4;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 1084:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorPackage), END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ if (iso2SensorPackageListType->SensorPackage.arrayLen < iso2SensorPackageListType_SensorPackage_ARRAY_SIZE) {
+ errn = decode_iso2SensorPackageType(stream, &iso2SensorPackageListType->SensorPackage.array[iso2SensorPackageListType->SensorPackage.arrayLen++]);
+ } else {
+ errn = EXI_ERROR_OUT_OF_BOUNDS;
+ }
+ grammarID = 1085;
+ break;
+ case 1:
+ done = 1;
+ grammarID = 4;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 1085:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorPackage), END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ if (iso2SensorPackageListType->SensorPackage.arrayLen < iso2SensorPackageListType_SensorPackage_ARRAY_SIZE) {
+ errn = decode_iso2SensorPackageType(stream, &iso2SensorPackageListType->SensorPackage.array[iso2SensorPackageListType->SensorPackage.arrayLen++]);
+ } else {
+ errn = EXI_ERROR_OUT_OF_BOUNDS;
+ }
+ grammarID = 1086;
+ break;
+ case 1:
+ done = 1;
+ grammarID = 4;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 1086:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorPackage), END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ if (iso2SensorPackageListType->SensorPackage.arrayLen < iso2SensorPackageListType_SensorPackage_ARRAY_SIZE) {
+ errn = decode_iso2SensorPackageType(stream, &iso2SensorPackageListType->SensorPackage.array[iso2SensorPackageListType->SensorPackage.arrayLen++]);
+ } else {
+ errn = EXI_ERROR_OUT_OF_BOUNDS;
+ }
+ grammarID = 1087;
+ break;
+ case 1:
+ done = 1;
+ grammarID = 4;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 1087:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorPackage), END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ if (iso2SensorPackageListType->SensorPackage.arrayLen < iso2SensorPackageListType_SensorPackage_ARRAY_SIZE) {
+ errn = decode_iso2SensorPackageType(stream, &iso2SensorPackageListType->SensorPackage.array[iso2SensorPackageListType->SensorPackage.arrayLen++]);
+ } else {
+ errn = EXI_ERROR_OUT_OF_BOUNDS;
+ }
+ grammarID = 1088;
+ break;
+ case 1:
+ done = 1;
+ grammarID = 4;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 1088:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorPackage), END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ if (iso2SensorPackageListType->SensorPackage.arrayLen < iso2SensorPackageListType_SensorPackage_ARRAY_SIZE) {
+ errn = decode_iso2SensorPackageType(stream, &iso2SensorPackageListType->SensorPackage.array[iso2SensorPackageListType->SensorPackage.arrayLen++]);
+ } else {
+ errn = EXI_ERROR_OUT_OF_BOUNDS;
+ }
+ grammarID = 1089;
+ break;
+ case 1:
+ done = 1;
+ grammarID = 4;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 1089:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorPackage), END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ if (iso2SensorPackageListType->SensorPackage.arrayLen < iso2SensorPackageListType_SensorPackage_ARRAY_SIZE) {
+ errn = decode_iso2SensorPackageType(stream, &iso2SensorPackageListType->SensorPackage.array[iso2SensorPackageListType->SensorPackage.arrayLen++]);
+ } else {
+ errn = EXI_ERROR_OUT_OF_BOUNDS;
+ }
+ grammarID = 1090;
+ break;
+ case 1:
+ done = 1;
+ grammarID = 4;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 1090:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorPackage), END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ if (iso2SensorPackageListType->SensorPackage.arrayLen < iso2SensorPackageListType_SensorPackage_ARRAY_SIZE) {
+ errn = decode_iso2SensorPackageType(stream, &iso2SensorPackageListType->SensorPackage.array[iso2SensorPackageListType->SensorPackage.arrayLen++]);
+ } else {
+ errn = EXI_ERROR_OUT_OF_BOUNDS;
+ }
+ grammarID = 1091;
+ break;
+ case 1:
+ done = 1;
+ grammarID = 4;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 1091:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorPackage), END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ if (iso2SensorPackageListType->SensorPackage.arrayLen < iso2SensorPackageListType_SensorPackage_ARRAY_SIZE) {
+ errn = decode_iso2SensorPackageType(stream, &iso2SensorPackageListType->SensorPackage.array[iso2SensorPackageListType->SensorPackage.arrayLen++]);
+ } else {
+ errn = EXI_ERROR_OUT_OF_BOUNDS;
+ }
+ grammarID = 1092;
+ break;
+ case 1:
+ done = 1;
+ grammarID = 4;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 1092:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorPackage), END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ if (iso2SensorPackageListType->SensorPackage.arrayLen < iso2SensorPackageListType_SensorPackage_ARRAY_SIZE) {
+ errn = decode_iso2SensorPackageType(stream, &iso2SensorPackageListType->SensorPackage.array[iso2SensorPackageListType->SensorPackage.arrayLen++]);
+ } else {
+ errn = EXI_ERROR_OUT_OF_BOUNDS;
+ }
+ grammarID = 1093;
+ break;
+ case 1:
+ done = 1;
+ grammarID = 4;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 1093:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorPackage), END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ if (iso2SensorPackageListType->SensorPackage.arrayLen < iso2SensorPackageListType_SensorPackage_ARRAY_SIZE) {
+ errn = decode_iso2SensorPackageType(stream, &iso2SensorPackageListType->SensorPackage.array[iso2SensorPackageListType->SensorPackage.arrayLen++]);
+ } else {
+ errn = EXI_ERROR_OUT_OF_BOUNDS;
+ }
+ grammarID = 1094;
+ break;
+ case 1:
+ done = 1;
+ grammarID = 4;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 1094:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorPackage), END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ if (iso2SensorPackageListType->SensorPackage.arrayLen < iso2SensorPackageListType_SensorPackage_ARRAY_SIZE) {
+ errn = decode_iso2SensorPackageType(stream, &iso2SensorPackageListType->SensorPackage.array[iso2SensorPackageListType->SensorPackage.arrayLen++]);
+ } else {
+ errn = EXI_ERROR_OUT_OF_BOUNDS;
+ }
+ grammarID = 1095;
+ break;
+ case 1:
+ done = 1;
+ grammarID = 4;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 1095:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorPackage), END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ if (iso2SensorPackageListType->SensorPackage.arrayLen < iso2SensorPackageListType_SensorPackage_ARRAY_SIZE) {
+ errn = decode_iso2SensorPackageType(stream, &iso2SensorPackageListType->SensorPackage.array[iso2SensorPackageListType->SensorPackage.arrayLen++]);
+ } else {
+ errn = EXI_ERROR_OUT_OF_BOUNDS;
+ }
+ grammarID = 1096;
+ break;
+ case 1:
+ done = 1;
+ grammarID = 4;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 1096:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorPackage), END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ if (iso2SensorPackageListType->SensorPackage.arrayLen < iso2SensorPackageListType_SensorPackage_ARRAY_SIZE) {
+ errn = decode_iso2SensorPackageType(stream, &iso2SensorPackageListType->SensorPackage.array[iso2SensorPackageListType->SensorPackage.arrayLen++]);
+ } else {
+ errn = EXI_ERROR_OUT_OF_BOUNDS;
+ }
+ grammarID = 1097;
+ break;
+ case 1:
+ done = 1;
+ grammarID = 4;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 1097:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorPackage), END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ if (iso2SensorPackageListType->SensorPackage.arrayLen < iso2SensorPackageListType_SensorPackage_ARRAY_SIZE) {
+ errn = decode_iso2SensorPackageType(stream, &iso2SensorPackageListType->SensorPackage.array[iso2SensorPackageListType->SensorPackage.arrayLen++]);
+ } else {
+ errn = EXI_ERROR_OUT_OF_BOUNDS;
+ }
+ grammarID = 1098;
+ break;
+ case 1:
+ done = 1;
+ grammarID = 4;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 1098:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorPackage), END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ if (iso2SensorPackageListType->SensorPackage.arrayLen < iso2SensorPackageListType_SensorPackage_ARRAY_SIZE) {
+ errn = decode_iso2SensorPackageType(stream, &iso2SensorPackageListType->SensorPackage.array[iso2SensorPackageListType->SensorPackage.arrayLen++]);
+ } else {
+ errn = EXI_ERROR_OUT_OF_BOUNDS;
+ }
+ grammarID = 1099;
+ break;
+ case 1:
+ done = 1;
+ grammarID = 4;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 1099:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorPackage), END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ if (iso2SensorPackageListType->SensorPackage.arrayLen < iso2SensorPackageListType_SensorPackage_ARRAY_SIZE) {
+ errn = decode_iso2SensorPackageType(stream, &iso2SensorPackageListType->SensorPackage.array[iso2SensorPackageListType->SensorPackage.arrayLen++]);
+ } else {
+ errn = EXI_ERROR_OUT_OF_BOUNDS;
+ }
+ grammarID = 1100;
+ break;
+ case 1:
+ done = 1;
+ grammarID = 4;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 1100:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorPackage), END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ if (iso2SensorPackageListType->SensorPackage.arrayLen < iso2SensorPackageListType_SensorPackage_ARRAY_SIZE) {
+ errn = decode_iso2SensorPackageType(stream, &iso2SensorPackageListType->SensorPackage.array[iso2SensorPackageListType->SensorPackage.arrayLen++]);
+ } else {
+ errn = EXI_ERROR_OUT_OF_BOUNDS;
+ }
+ grammarID = 1101;
+ break;
+ case 1:
+ done = 1;
+ grammarID = 4;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 1101:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorPackage), END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ if (iso2SensorPackageListType->SensorPackage.arrayLen < iso2SensorPackageListType_SensorPackage_ARRAY_SIZE) {
+ errn = decode_iso2SensorPackageType(stream, &iso2SensorPackageListType->SensorPackage.array[iso2SensorPackageListType->SensorPackage.arrayLen++]);
+ } else {
+ errn = EXI_ERROR_OUT_OF_BOUNDS;
+ }
+ grammarID = 1102;
+ break;
+ case 1:
+ done = 1;
+ grammarID = 4;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 1102:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorPackage), END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ if (iso2SensorPackageListType->SensorPackage.arrayLen < iso2SensorPackageListType_SensorPackage_ARRAY_SIZE) {
+ errn = decode_iso2SensorPackageType(stream, &iso2SensorPackageListType->SensorPackage.array[iso2SensorPackageListType->SensorPackage.arrayLen++]);
+ } else {
+ errn = EXI_ERROR_OUT_OF_BOUNDS;
+ }
+ grammarID = 1103;
+ break;
+ case 1:
+ done = 1;
+ grammarID = 4;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 1103:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorPackage), END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ if (iso2SensorPackageListType->SensorPackage.arrayLen < iso2SensorPackageListType_SensorPackage_ARRAY_SIZE) {
+ errn = decode_iso2SensorPackageType(stream, &iso2SensorPackageListType->SensorPackage.array[iso2SensorPackageListType->SensorPackage.arrayLen++]);
+ } else {
+ errn = EXI_ERROR_OUT_OF_BOUNDS;
+ }
+ grammarID = 1104;
+ break;
+ case 1:
+ done = 1;
+ grammarID = 4;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 1104:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorPackage), END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ if (iso2SensorPackageListType->SensorPackage.arrayLen < iso2SensorPackageListType_SensorPackage_ARRAY_SIZE) {
+ errn = decode_iso2SensorPackageType(stream, &iso2SensorPackageListType->SensorPackage.array[iso2SensorPackageListType->SensorPackage.arrayLen++]);
+ } else {
+ errn = EXI_ERROR_OUT_OF_BOUNDS;
+ }
+ grammarID = 1105;
+ break;
+ case 1:
+ done = 1;
+ grammarID = 4;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 1105:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorPackage), END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ if (iso2SensorPackageListType->SensorPackage.arrayLen < iso2SensorPackageListType_SensorPackage_ARRAY_SIZE) {
+ errn = decode_iso2SensorPackageType(stream, &iso2SensorPackageListType->SensorPackage.array[iso2SensorPackageListType->SensorPackage.arrayLen++]);
+ } else {
+ errn = EXI_ERROR_OUT_OF_BOUNDS;
+ }
+ grammarID = 1106;
+ break;
+ case 1:
+ done = 1;
+ grammarID = 4;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 1106:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorPackage), END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ if (iso2SensorPackageListType->SensorPackage.arrayLen < iso2SensorPackageListType_SensorPackage_ARRAY_SIZE) {
+ errn = decode_iso2SensorPackageType(stream, &iso2SensorPackageListType->SensorPackage.array[iso2SensorPackageListType->SensorPackage.arrayLen++]);
+ } else {
+ errn = EXI_ERROR_OUT_OF_BOUNDS;
+ }
+ grammarID = 1107;
+ break;
+ case 1:
+ done = 1;
+ grammarID = 4;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 1107:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorPackage), END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ if (iso2SensorPackageListType->SensorPackage.arrayLen < iso2SensorPackageListType_SensorPackage_ARRAY_SIZE) {
+ errn = decode_iso2SensorPackageType(stream, &iso2SensorPackageListType->SensorPackage.array[iso2SensorPackageListType->SensorPackage.arrayLen++]);
+ } else {
+ errn = EXI_ERROR_OUT_OF_BOUNDS;
+ }
+ grammarID = 1108;
+ break;
+ case 1:
+ done = 1;
+ grammarID = 4;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 1108:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorPackage), END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ if (iso2SensorPackageListType->SensorPackage.arrayLen < iso2SensorPackageListType_SensorPackage_ARRAY_SIZE) {
+ errn = decode_iso2SensorPackageType(stream, &iso2SensorPackageListType->SensorPackage.array[iso2SensorPackageListType->SensorPackage.arrayLen++]);
+ } else {
+ errn = EXI_ERROR_OUT_OF_BOUNDS;
+ }
+ grammarID = 1109;
+ break;
+ case 1:
+ done = 1;
+ grammarID = 4;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 1109:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorPackage), END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ if (iso2SensorPackageListType->SensorPackage.arrayLen < iso2SensorPackageListType_SensorPackage_ARRAY_SIZE) {
+ errn = decode_iso2SensorPackageType(stream, &iso2SensorPackageListType->SensorPackage.array[iso2SensorPackageListType->SensorPackage.arrayLen++]);
+ } else {
+ errn = EXI_ERROR_OUT_OF_BOUNDS;
+ }
+ grammarID = 1110;
+ break;
+ case 1:
+ done = 1;
+ grammarID = 4;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 1110:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorPackage), END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ if (iso2SensorPackageListType->SensorPackage.arrayLen < iso2SensorPackageListType_SensorPackage_ARRAY_SIZE) {
+ errn = decode_iso2SensorPackageType(stream, &iso2SensorPackageListType->SensorPackage.array[iso2SensorPackageListType->SensorPackage.arrayLen++]);
+ } else {
+ errn = EXI_ERROR_OUT_OF_BOUNDS;
+ }
+ grammarID = 1111;
+ break;
+ case 1:
+ done = 1;
+ grammarID = 4;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 1111:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorPackage), END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ if (iso2SensorPackageListType->SensorPackage.arrayLen < iso2SensorPackageListType_SensorPackage_ARRAY_SIZE) {
+ errn = decode_iso2SensorPackageType(stream, &iso2SensorPackageListType->SensorPackage.array[iso2SensorPackageListType->SensorPackage.arrayLen++]);
+ } else {
+ errn = EXI_ERROR_OUT_OF_BOUNDS;
+ }
+ grammarID = 1112;
+ break;
+ case 1:
+ done = 1;
+ grammarID = 4;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 1112:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorPackage), END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ if (iso2SensorPackageListType->SensorPackage.arrayLen < iso2SensorPackageListType_SensorPackage_ARRAY_SIZE) {
+ errn = decode_iso2SensorPackageType(stream, &iso2SensorPackageListType->SensorPackage.array[iso2SensorPackageListType->SensorPackage.arrayLen++]);
+ } else {
+ errn = EXI_ERROR_OUT_OF_BOUNDS;
+ }
+ grammarID = 1113;
+ break;
+ case 1:
+ done = 1;
+ grammarID = 4;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 1113:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorPackage), END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ if (iso2SensorPackageListType->SensorPackage.arrayLen < iso2SensorPackageListType_SensorPackage_ARRAY_SIZE) {
+ errn = decode_iso2SensorPackageType(stream, &iso2SensorPackageListType->SensorPackage.array[iso2SensorPackageListType->SensorPackage.arrayLen++]);
+ } else {
+ errn = EXI_ERROR_OUT_OF_BOUNDS;
+ }
+ grammarID = 1114;
+ break;
+ case 1:
+ done = 1;
+ grammarID = 4;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 1114:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorPackage), END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ if (iso2SensorPackageListType->SensorPackage.arrayLen < iso2SensorPackageListType_SensorPackage_ARRAY_SIZE) {
+ errn = decode_iso2SensorPackageType(stream, &iso2SensorPackageListType->SensorPackage.array[iso2SensorPackageListType->SensorPackage.arrayLen++]);
+ } else {
+ errn = EXI_ERROR_OUT_OF_BOUNDS;
+ }
+ grammarID = 1115;
+ break;
+ case 1:
+ done = 1;
+ grammarID = 4;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 1115:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorPackage), END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ if (iso2SensorPackageListType->SensorPackage.arrayLen < iso2SensorPackageListType_SensorPackage_ARRAY_SIZE) {
+ errn = decode_iso2SensorPackageType(stream, &iso2SensorPackageListType->SensorPackage.array[iso2SensorPackageListType->SensorPackage.arrayLen++]);
+ } else {
+ errn = EXI_ERROR_OUT_OF_BOUNDS;
+ }
+ grammarID = 1116;
+ break;
+ case 1:
+ done = 1;
+ grammarID = 4;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 1116:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorPackage), END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ if (iso2SensorPackageListType->SensorPackage.arrayLen < iso2SensorPackageListType_SensorPackage_ARRAY_SIZE) {
+ errn = decode_iso2SensorPackageType(stream, &iso2SensorPackageListType->SensorPackage.array[iso2SensorPackageListType->SensorPackage.arrayLen++]);
+ } else {
+ errn = EXI_ERROR_OUT_OF_BOUNDS;
+ }
+ grammarID = 1117;
+ break;
+ case 1:
+ done = 1;
+ grammarID = 4;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 1117:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorPackage), END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ if (iso2SensorPackageListType->SensorPackage.arrayLen < iso2SensorPackageListType_SensorPackage_ARRAY_SIZE) {
+ errn = decode_iso2SensorPackageType(stream, &iso2SensorPackageListType->SensorPackage.array[iso2SensorPackageListType->SensorPackage.arrayLen++]);
+ } else {
+ errn = EXI_ERROR_OUT_OF_BOUNDS;
+ }
+ grammarID = 1118;
+ break;
+ case 1:
+ done = 1;
+ grammarID = 4;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 1118:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorPackage), END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ if (iso2SensorPackageListType->SensorPackage.arrayLen < iso2SensorPackageListType_SensorPackage_ARRAY_SIZE) {
+ errn = decode_iso2SensorPackageType(stream, &iso2SensorPackageListType->SensorPackage.array[iso2SensorPackageListType->SensorPackage.arrayLen++]);
+ } else {
+ errn = EXI_ERROR_OUT_OF_BOUNDS;
+ }
+ grammarID = 1119;
+ break;
+ case 1:
+ done = 1;
+ grammarID = 4;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 1119:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorPackage), END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ if (iso2SensorPackageListType->SensorPackage.arrayLen < iso2SensorPackageListType_SensorPackage_ARRAY_SIZE) {
+ errn = decode_iso2SensorPackageType(stream, &iso2SensorPackageListType->SensorPackage.array[iso2SensorPackageListType->SensorPackage.arrayLen++]);
+ } else {
+ errn = EXI_ERROR_OUT_OF_BOUNDS;
+ }
+ grammarID = 1120;
+ break;
+ case 1:
+ done = 1;
+ grammarID = 4;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 1120:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorPackage), END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ if (iso2SensorPackageListType->SensorPackage.arrayLen < iso2SensorPackageListType_SensorPackage_ARRAY_SIZE) {
+ errn = decode_iso2SensorPackageType(stream, &iso2SensorPackageListType->SensorPackage.array[iso2SensorPackageListType->SensorPackage.arrayLen++]);
+ } else {
+ errn = EXI_ERROR_OUT_OF_BOUNDS;
+ }
+ grammarID = 1121;
+ break;
+ case 1:
+ done = 1;
+ grammarID = 4;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 1121:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorPackage), END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ if (iso2SensorPackageListType->SensorPackage.arrayLen < iso2SensorPackageListType_SensorPackage_ARRAY_SIZE) {
+ errn = decode_iso2SensorPackageType(stream, &iso2SensorPackageListType->SensorPackage.array[iso2SensorPackageListType->SensorPackage.arrayLen++]);
+ } else {
+ errn = EXI_ERROR_OUT_OF_BOUNDS;
+ }
+ grammarID = 1122;
+ break;
+ case 1:
+ done = 1;
+ grammarID = 4;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 1122:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorPackage), END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ if (iso2SensorPackageListType->SensorPackage.arrayLen < iso2SensorPackageListType_SensorPackage_ARRAY_SIZE) {
+ errn = decode_iso2SensorPackageType(stream, &iso2SensorPackageListType->SensorPackage.array[iso2SensorPackageListType->SensorPackage.arrayLen++]);
+ } else {
+ errn = EXI_ERROR_OUT_OF_BOUNDS;
+ }
+ grammarID = 1123;
+ break;
+ case 1:
+ done = 1;
+ grammarID = 4;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 1123:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorPackage), END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ if (iso2SensorPackageListType->SensorPackage.arrayLen < iso2SensorPackageListType_SensorPackage_ARRAY_SIZE) {
+ errn = decode_iso2SensorPackageType(stream, &iso2SensorPackageListType->SensorPackage.array[iso2SensorPackageListType->SensorPackage.arrayLen++]);
+ } else {
+ errn = EXI_ERROR_OUT_OF_BOUNDS;
+ }
+ grammarID = 1124;
+ break;
+ case 1:
+ done = 1;
+ grammarID = 4;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 1124:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorPackage), END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ if (iso2SensorPackageListType->SensorPackage.arrayLen < iso2SensorPackageListType_SensorPackage_ARRAY_SIZE) {
+ errn = decode_iso2SensorPackageType(stream, &iso2SensorPackageListType->SensorPackage.array[iso2SensorPackageListType->SensorPackage.arrayLen++]);
+ } else {
+ errn = EXI_ERROR_OUT_OF_BOUNDS;
+ }
+ grammarID = 1125;
+ break;
+ case 1:
+ done = 1;
+ grammarID = 4;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 1125:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorPackage), END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ if (iso2SensorPackageListType->SensorPackage.arrayLen < iso2SensorPackageListType_SensorPackage_ARRAY_SIZE) {
+ errn = decode_iso2SensorPackageType(stream, &iso2SensorPackageListType->SensorPackage.array[iso2SensorPackageListType->SensorPackage.arrayLen++]);
+ } else {
+ errn = EXI_ERROR_OUT_OF_BOUNDS;
+ }
+ grammarID = 1126;
+ break;
+ case 1:
+ done = 1;
+ grammarID = 4;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 1126:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorPackage), END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ if (iso2SensorPackageListType->SensorPackage.arrayLen < iso2SensorPackageListType_SensorPackage_ARRAY_SIZE) {
+ errn = decode_iso2SensorPackageType(stream, &iso2SensorPackageListType->SensorPackage.array[iso2SensorPackageListType->SensorPackage.arrayLen++]);
+ } else {
+ errn = EXI_ERROR_OUT_OF_BOUNDS;
+ }
+ grammarID = 1127;
+ break;
+ case 1:
+ done = 1;
+ grammarID = 4;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 1127:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorPackage), END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ if (iso2SensorPackageListType->SensorPackage.arrayLen < iso2SensorPackageListType_SensorPackage_ARRAY_SIZE) {
+ errn = decode_iso2SensorPackageType(stream, &iso2SensorPackageListType->SensorPackage.array[iso2SensorPackageListType->SensorPackage.arrayLen++]);
+ } else {
+ errn = EXI_ERROR_OUT_OF_BOUNDS;
+ }
+ grammarID = 1128;
+ break;
+ case 1:
+ done = 1;
+ grammarID = 4;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 1128:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorPackage), END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ if (iso2SensorPackageListType->SensorPackage.arrayLen < iso2SensorPackageListType_SensorPackage_ARRAY_SIZE) {
+ errn = decode_iso2SensorPackageType(stream, &iso2SensorPackageListType->SensorPackage.array[iso2SensorPackageListType->SensorPackage.arrayLen++]);
+ } else {
+ errn = EXI_ERROR_OUT_OF_BOUNDS;
+ }
+ grammarID = 1129;
+ break;
+ case 1:
+ done = 1;
+ grammarID = 4;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 1129:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorPackage), END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ if (iso2SensorPackageListType->SensorPackage.arrayLen < iso2SensorPackageListType_SensorPackage_ARRAY_SIZE) {
+ errn = decode_iso2SensorPackageType(stream, &iso2SensorPackageListType->SensorPackage.array[iso2SensorPackageListType->SensorPackage.arrayLen++]);
+ } else {
+ errn = EXI_ERROR_OUT_OF_BOUNDS;
+ }
+ grammarID = 1130;
+ break;
+ case 1:
+ done = 1;
+ grammarID = 4;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 1130:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorPackage), END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ if (iso2SensorPackageListType->SensorPackage.arrayLen < iso2SensorPackageListType_SensorPackage_ARRAY_SIZE) {
+ errn = decode_iso2SensorPackageType(stream, &iso2SensorPackageListType->SensorPackage.array[iso2SensorPackageListType->SensorPackage.arrayLen++]);
+ } else {
+ errn = EXI_ERROR_OUT_OF_BOUNDS;
+ }
+ grammarID = 1131;
+ break;
+ case 1:
+ done = 1;
+ grammarID = 4;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 1131:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorPackage), END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ if (iso2SensorPackageListType->SensorPackage.arrayLen < iso2SensorPackageListType_SensorPackage_ARRAY_SIZE) {
+ errn = decode_iso2SensorPackageType(stream, &iso2SensorPackageListType->SensorPackage.array[iso2SensorPackageListType->SensorPackage.arrayLen++]);
+ } else {
+ errn = EXI_ERROR_OUT_OF_BOUNDS;
+ }
+ grammarID = 1132;
+ break;
+ case 1:
+ done = 1;
+ grammarID = 4;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 1132:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorPackage), END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ if (iso2SensorPackageListType->SensorPackage.arrayLen < iso2SensorPackageListType_SensorPackage_ARRAY_SIZE) {
+ errn = decode_iso2SensorPackageType(stream, &iso2SensorPackageListType->SensorPackage.array[iso2SensorPackageListType->SensorPackage.arrayLen++]);
+ } else {
+ errn = EXI_ERROR_OUT_OF_BOUNDS;
+ }
+ grammarID = 1133;
+ break;
+ case 1:
+ done = 1;
+ grammarID = 4;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 1133:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorPackage), END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ if (iso2SensorPackageListType->SensorPackage.arrayLen < iso2SensorPackageListType_SensorPackage_ARRAY_SIZE) {
+ errn = decode_iso2SensorPackageType(stream, &iso2SensorPackageListType->SensorPackage.array[iso2SensorPackageListType->SensorPackage.arrayLen++]);
+ } else {
+ errn = EXI_ERROR_OUT_OF_BOUNDS;
+ }
+ grammarID = 1134;
+ break;
+ case 1:
+ done = 1;
+ grammarID = 4;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 1134:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorPackage), END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ if (iso2SensorPackageListType->SensorPackage.arrayLen < iso2SensorPackageListType_SensorPackage_ARRAY_SIZE) {
+ errn = decode_iso2SensorPackageType(stream, &iso2SensorPackageListType->SensorPackage.array[iso2SensorPackageListType->SensorPackage.arrayLen++]);
+ } else {
+ errn = EXI_ERROR_OUT_OF_BOUNDS;
+ }
+ grammarID = 1135;
+ break;
+ case 1:
+ done = 1;
+ grammarID = 4;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 1135:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorPackage), END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ if (iso2SensorPackageListType->SensorPackage.arrayLen < iso2SensorPackageListType_SensorPackage_ARRAY_SIZE) {
+ errn = decode_iso2SensorPackageType(stream, &iso2SensorPackageListType->SensorPackage.array[iso2SensorPackageListType->SensorPackage.arrayLen++]);
+ } else {
+ errn = EXI_ERROR_OUT_OF_BOUNDS;
+ }
+ grammarID = 1136;
+ break;
+ case 1:
+ done = 1;
+ grammarID = 4;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 1136:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorPackage), END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ if (iso2SensorPackageListType->SensorPackage.arrayLen < iso2SensorPackageListType_SensorPackage_ARRAY_SIZE) {
+ errn = decode_iso2SensorPackageType(stream, &iso2SensorPackageListType->SensorPackage.array[iso2SensorPackageListType->SensorPackage.arrayLen++]);
+ } else {
+ errn = EXI_ERROR_OUT_OF_BOUNDS;
+ }
+ grammarID = 1137;
+ break;
+ case 1:
+ done = 1;
+ grammarID = 4;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 1137:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorPackage), END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ if (iso2SensorPackageListType->SensorPackage.arrayLen < iso2SensorPackageListType_SensorPackage_ARRAY_SIZE) {
+ errn = decode_iso2SensorPackageType(stream, &iso2SensorPackageListType->SensorPackage.array[iso2SensorPackageListType->SensorPackage.arrayLen++]);
+ } else {
+ errn = EXI_ERROR_OUT_OF_BOUNDS;
+ }
+ grammarID = 1138;
+ break;
+ case 1:
+ done = 1;
+ grammarID = 4;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 1138:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorPackage), END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ if (iso2SensorPackageListType->SensorPackage.arrayLen < iso2SensorPackageListType_SensorPackage_ARRAY_SIZE) {
+ errn = decode_iso2SensorPackageType(stream, &iso2SensorPackageListType->SensorPackage.array[iso2SensorPackageListType->SensorPackage.arrayLen++]);
+ } else {
+ errn = EXI_ERROR_OUT_OF_BOUNDS;
+ }
+ grammarID = 1139;
+ break;
+ case 1:
+ done = 1;
+ grammarID = 4;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 1139:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorPackage), END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ if (iso2SensorPackageListType->SensorPackage.arrayLen < iso2SensorPackageListType_SensorPackage_ARRAY_SIZE) {
+ errn = decode_iso2SensorPackageType(stream, &iso2SensorPackageListType->SensorPackage.array[iso2SensorPackageListType->SensorPackage.arrayLen++]);
+ } else {
+ errn = EXI_ERROR_OUT_OF_BOUNDS;
+ }
+ grammarID = 1140;
+ break;
+ case 1:
+ done = 1;
+ grammarID = 4;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 1140:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorPackage), END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ if (iso2SensorPackageListType->SensorPackage.arrayLen < iso2SensorPackageListType_SensorPackage_ARRAY_SIZE) {
+ errn = decode_iso2SensorPackageType(stream, &iso2SensorPackageListType->SensorPackage.array[iso2SensorPackageListType->SensorPackage.arrayLen++]);
+ } else {
+ errn = EXI_ERROR_OUT_OF_BOUNDS;
+ }
+ grammarID = 1141;
+ break;
+ case 1:
+ done = 1;
+ grammarID = 4;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 1141:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorPackage), END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ if (iso2SensorPackageListType->SensorPackage.arrayLen < iso2SensorPackageListType_SensorPackage_ARRAY_SIZE) {
+ errn = decode_iso2SensorPackageType(stream, &iso2SensorPackageListType->SensorPackage.array[iso2SensorPackageListType->SensorPackage.arrayLen++]);
+ } else {
+ errn = EXI_ERROR_OUT_OF_BOUNDS;
+ }
+ grammarID = 1142;
+ break;
+ case 1:
+ done = 1;
+ grammarID = 4;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 1142:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorPackage), END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ if (iso2SensorPackageListType->SensorPackage.arrayLen < iso2SensorPackageListType_SensorPackage_ARRAY_SIZE) {
+ errn = decode_iso2SensorPackageType(stream, &iso2SensorPackageListType->SensorPackage.array[iso2SensorPackageListType->SensorPackage.arrayLen++]);
+ } else {
+ errn = EXI_ERROR_OUT_OF_BOUNDS;
+ }
+ grammarID = 1143;
+ break;
+ case 1:
+ done = 1;
+ grammarID = 4;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 1143:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorPackage), END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ if (iso2SensorPackageListType->SensorPackage.arrayLen < iso2SensorPackageListType_SensorPackage_ARRAY_SIZE) {
+ errn = decode_iso2SensorPackageType(stream, &iso2SensorPackageListType->SensorPackage.array[iso2SensorPackageListType->SensorPackage.arrayLen++]);
+ } else {
+ errn = EXI_ERROR_OUT_OF_BOUNDS;
+ }
+ grammarID = 1144;
+ break;
+ case 1:
+ done = 1;
+ grammarID = 4;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 1144:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorPackage), END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ if (iso2SensorPackageListType->SensorPackage.arrayLen < iso2SensorPackageListType_SensorPackage_ARRAY_SIZE) {
+ errn = decode_iso2SensorPackageType(stream, &iso2SensorPackageListType->SensorPackage.array[iso2SensorPackageListType->SensorPackage.arrayLen++]);
+ } else {
+ errn = EXI_ERROR_OUT_OF_BOUNDS;
+ }
+ grammarID = 1145;
+ break;
+ case 1:
+ done = 1;
+ grammarID = 4;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 1145:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorPackage), END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ if (iso2SensorPackageListType->SensorPackage.arrayLen < iso2SensorPackageListType_SensorPackage_ARRAY_SIZE) {
+ errn = decode_iso2SensorPackageType(stream, &iso2SensorPackageListType->SensorPackage.array[iso2SensorPackageListType->SensorPackage.arrayLen++]);
+ } else {
+ errn = EXI_ERROR_OUT_OF_BOUNDS;
+ }
+ grammarID = 1146;
+ break;
+ case 1:
+ done = 1;
+ grammarID = 4;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 1146:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorPackage), END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ if (iso2SensorPackageListType->SensorPackage.arrayLen < iso2SensorPackageListType_SensorPackage_ARRAY_SIZE) {
+ errn = decode_iso2SensorPackageType(stream, &iso2SensorPackageListType->SensorPackage.array[iso2SensorPackageListType->SensorPackage.arrayLen++]);
+ } else {
+ errn = EXI_ERROR_OUT_OF_BOUNDS;
+ }
+ grammarID = 1147;
+ break;
+ case 1:
+ done = 1;
+ grammarID = 4;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 1147:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorPackage), END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ if (iso2SensorPackageListType->SensorPackage.arrayLen < iso2SensorPackageListType_SensorPackage_ARRAY_SIZE) {
+ errn = decode_iso2SensorPackageType(stream, &iso2SensorPackageListType->SensorPackage.array[iso2SensorPackageListType->SensorPackage.arrayLen++]);
+ } else {
+ errn = EXI_ERROR_OUT_OF_BOUNDS;
+ }
+ grammarID = 1148;
+ break;
+ case 1:
+ done = 1;
+ grammarID = 4;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 1148:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorPackage), END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ if (iso2SensorPackageListType->SensorPackage.arrayLen < iso2SensorPackageListType_SensorPackage_ARRAY_SIZE) {
+ errn = decode_iso2SensorPackageType(stream, &iso2SensorPackageListType->SensorPackage.array[iso2SensorPackageListType->SensorPackage.arrayLen++]);
+ } else {
+ errn = EXI_ERROR_OUT_OF_BOUNDS;
+ }
+ grammarID = 1149;
+ break;
+ case 1:
+ done = 1;
+ grammarID = 4;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 1149:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorPackage), END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ if (iso2SensorPackageListType->SensorPackage.arrayLen < iso2SensorPackageListType_SensorPackage_ARRAY_SIZE) {
+ errn = decode_iso2SensorPackageType(stream, &iso2SensorPackageListType->SensorPackage.array[iso2SensorPackageListType->SensorPackage.arrayLen++]);
+ } else {
+ errn = EXI_ERROR_OUT_OF_BOUNDS;
+ }
+ grammarID = 1150;
+ break;
+ case 1:
+ done = 1;
+ grammarID = 4;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 1150:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorPackage), END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ if (iso2SensorPackageListType->SensorPackage.arrayLen < iso2SensorPackageListType_SensorPackage_ARRAY_SIZE) {
+ errn = decode_iso2SensorPackageType(stream, &iso2SensorPackageListType->SensorPackage.array[iso2SensorPackageListType->SensorPackage.arrayLen++]);
+ } else {
+ errn = EXI_ERROR_OUT_OF_BOUNDS;
+ }
+ grammarID = 1151;
+ break;
+ case 1:
+ done = 1;
+ grammarID = 4;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 1151:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorPackage), END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ if (iso2SensorPackageListType->SensorPackage.arrayLen < iso2SensorPackageListType_SensorPackage_ARRAY_SIZE) {
+ errn = decode_iso2SensorPackageType(stream, &iso2SensorPackageListType->SensorPackage.array[iso2SensorPackageListType->SensorPackage.arrayLen++]);
+ } else {
+ errn = EXI_ERROR_OUT_OF_BOUNDS;
+ }
+ grammarID = 1152;
+ break;
+ case 1:
+ done = 1;
+ grammarID = 4;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 1152:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorPackage), END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ if (iso2SensorPackageListType->SensorPackage.arrayLen < iso2SensorPackageListType_SensorPackage_ARRAY_SIZE) {
+ errn = decode_iso2SensorPackageType(stream, &iso2SensorPackageListType->SensorPackage.array[iso2SensorPackageListType->SensorPackage.arrayLen++]);
+ } else {
+ errn = EXI_ERROR_OUT_OF_BOUNDS;
+ }
+ grammarID = 1153;
+ break;
+ case 1:
+ done = 1;
+ grammarID = 4;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 1153:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorPackage), END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ if (iso2SensorPackageListType->SensorPackage.arrayLen < iso2SensorPackageListType_SensorPackage_ARRAY_SIZE) {
+ errn = decode_iso2SensorPackageType(stream, &iso2SensorPackageListType->SensorPackage.array[iso2SensorPackageListType->SensorPackage.arrayLen++]);
+ } else {
+ errn = EXI_ERROR_OUT_OF_BOUNDS;
+ }
+ grammarID = 1154;
+ break;
+ case 1:
+ done = 1;
+ grammarID = 4;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 1154:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorPackage), END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ if (iso2SensorPackageListType->SensorPackage.arrayLen < iso2SensorPackageListType_SensorPackage_ARRAY_SIZE) {
+ errn = decode_iso2SensorPackageType(stream, &iso2SensorPackageListType->SensorPackage.array[iso2SensorPackageListType->SensorPackage.arrayLen++]);
+ } else {
+ errn = EXI_ERROR_OUT_OF_BOUNDS;
+ }
+ grammarID = 1155;
+ break;
+ case 1:
+ done = 1;
+ grammarID = 4;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 1155:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorPackage), END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ if (iso2SensorPackageListType->SensorPackage.arrayLen < iso2SensorPackageListType_SensorPackage_ARRAY_SIZE) {
+ errn = decode_iso2SensorPackageType(stream, &iso2SensorPackageListType->SensorPackage.array[iso2SensorPackageListType->SensorPackage.arrayLen++]);
+ } else {
+ errn = EXI_ERROR_OUT_OF_BOUNDS;
+ }
+ grammarID = 1156;
+ break;
+ case 1:
+ done = 1;
+ grammarID = 4;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 1156:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorPackage), END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ if (iso2SensorPackageListType->SensorPackage.arrayLen < iso2SensorPackageListType_SensorPackage_ARRAY_SIZE) {
+ errn = decode_iso2SensorPackageType(stream, &iso2SensorPackageListType->SensorPackage.array[iso2SensorPackageListType->SensorPackage.arrayLen++]);
+ } else {
+ errn = EXI_ERROR_OUT_OF_BOUNDS;
+ }
+ grammarID = 1157;
+ break;
+ case 1:
+ done = 1;
+ grammarID = 4;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 1157:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorPackage), END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ if (iso2SensorPackageListType->SensorPackage.arrayLen < iso2SensorPackageListType_SensorPackage_ARRAY_SIZE) {
+ errn = decode_iso2SensorPackageType(stream, &iso2SensorPackageListType->SensorPackage.array[iso2SensorPackageListType->SensorPackage.arrayLen++]);
+ } else {
+ errn = EXI_ERROR_OUT_OF_BOUNDS;
+ }
+ grammarID = 1158;
+ break;
+ case 1:
+ done = 1;
+ grammarID = 4;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 1158:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorPackage), END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ if (iso2SensorPackageListType->SensorPackage.arrayLen < iso2SensorPackageListType_SensorPackage_ARRAY_SIZE) {
+ errn = decode_iso2SensorPackageType(stream, &iso2SensorPackageListType->SensorPackage.array[iso2SensorPackageListType->SensorPackage.arrayLen++]);
+ } else {
+ errn = EXI_ERROR_OUT_OF_BOUNDS;
+ }
+ grammarID = 1159;
+ break;
+ case 1:
+ done = 1;
+ grammarID = 4;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 1159:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorPackage), END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ if (iso2SensorPackageListType->SensorPackage.arrayLen < iso2SensorPackageListType_SensorPackage_ARRAY_SIZE) {
+ errn = decode_iso2SensorPackageType(stream, &iso2SensorPackageListType->SensorPackage.array[iso2SensorPackageListType->SensorPackage.arrayLen++]);
+ } else {
+ errn = EXI_ERROR_OUT_OF_BOUNDS;
+ }
+ grammarID = 1160;
+ break;
+ case 1:
+ done = 1;
+ grammarID = 4;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 1160:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorPackage), END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ if (iso2SensorPackageListType->SensorPackage.arrayLen < iso2SensorPackageListType_SensorPackage_ARRAY_SIZE) {
+ errn = decode_iso2SensorPackageType(stream, &iso2SensorPackageListType->SensorPackage.array[iso2SensorPackageListType->SensorPackage.arrayLen++]);
+ } else {
+ errn = EXI_ERROR_OUT_OF_BOUNDS;
+ }
+ grammarID = 1161;
+ break;
+ case 1:
+ done = 1;
+ grammarID = 4;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 1161:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorPackage), END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ if (iso2SensorPackageListType->SensorPackage.arrayLen < iso2SensorPackageListType_SensorPackage_ARRAY_SIZE) {
+ errn = decode_iso2SensorPackageType(stream, &iso2SensorPackageListType->SensorPackage.array[iso2SensorPackageListType->SensorPackage.arrayLen++]);
+ } else {
+ errn = EXI_ERROR_OUT_OF_BOUNDS;
+ }
+ grammarID = 1162;
+ break;
+ case 1:
+ done = 1;
+ grammarID = 4;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 1162:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorPackage), END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ if (iso2SensorPackageListType->SensorPackage.arrayLen < iso2SensorPackageListType_SensorPackage_ARRAY_SIZE) {
+ errn = decode_iso2SensorPackageType(stream, &iso2SensorPackageListType->SensorPackage.array[iso2SensorPackageListType->SensorPackage.arrayLen++]);
+ } else {
+ errn = EXI_ERROR_OUT_OF_BOUNDS;
+ }
+ grammarID = 1163;
+ break;
+ case 1:
+ done = 1;
+ grammarID = 4;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 1163:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorPackage), END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ if (iso2SensorPackageListType->SensorPackage.arrayLen < iso2SensorPackageListType_SensorPackage_ARRAY_SIZE) {
+ errn = decode_iso2SensorPackageType(stream, &iso2SensorPackageListType->SensorPackage.array[iso2SensorPackageListType->SensorPackage.arrayLen++]);
+ } else {
+ errn = EXI_ERROR_OUT_OF_BOUNDS;
+ }
+ grammarID = 1164;
+ break;
+ case 1:
+ done = 1;
+ grammarID = 4;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 1164:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorPackage), END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ if (iso2SensorPackageListType->SensorPackage.arrayLen < iso2SensorPackageListType_SensorPackage_ARRAY_SIZE) {
+ errn = decode_iso2SensorPackageType(stream, &iso2SensorPackageListType->SensorPackage.array[iso2SensorPackageListType->SensorPackage.arrayLen++]);
+ } else {
+ errn = EXI_ERROR_OUT_OF_BOUNDS;
+ }
+ grammarID = 1165;
+ break;
+ case 1:
+ done = 1;
+ grammarID = 4;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 1165:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorPackage), END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ if (iso2SensorPackageListType->SensorPackage.arrayLen < iso2SensorPackageListType_SensorPackage_ARRAY_SIZE) {
+ errn = decode_iso2SensorPackageType(stream, &iso2SensorPackageListType->SensorPackage.array[iso2SensorPackageListType->SensorPackage.arrayLen++]);
+ } else {
+ errn = EXI_ERROR_OUT_OF_BOUNDS;
+ }
+ grammarID = 1166;
+ break;
+ case 1:
+ done = 1;
+ grammarID = 4;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 1166:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorPackage), END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ if (iso2SensorPackageListType->SensorPackage.arrayLen < iso2SensorPackageListType_SensorPackage_ARRAY_SIZE) {
+ errn = decode_iso2SensorPackageType(stream, &iso2SensorPackageListType->SensorPackage.array[iso2SensorPackageListType->SensorPackage.arrayLen++]);
+ } else {
+ errn = EXI_ERROR_OUT_OF_BOUNDS;
+ }
+ grammarID = 1167;
+ break;
+ case 1:
+ done = 1;
+ grammarID = 4;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 1167:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorPackage), END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ if (iso2SensorPackageListType->SensorPackage.arrayLen < iso2SensorPackageListType_SensorPackage_ARRAY_SIZE) {
+ errn = decode_iso2SensorPackageType(stream, &iso2SensorPackageListType->SensorPackage.array[iso2SensorPackageListType->SensorPackage.arrayLen++]);
+ } else {
+ errn = EXI_ERROR_OUT_OF_BOUNDS;
+ }
+ grammarID = 1168;
+ break;
+ case 1:
+ done = 1;
+ grammarID = 4;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 1168:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorPackage), END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ if (iso2SensorPackageListType->SensorPackage.arrayLen < iso2SensorPackageListType_SensorPackage_ARRAY_SIZE) {
+ errn = decode_iso2SensorPackageType(stream, &iso2SensorPackageListType->SensorPackage.array[iso2SensorPackageListType->SensorPackage.arrayLen++]);
+ } else {
+ errn = EXI_ERROR_OUT_OF_BOUNDS;
+ }
+ grammarID = 1169;
+ break;
+ case 1:
+ done = 1;
+ grammarID = 4;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 1169:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorPackage), END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ if (iso2SensorPackageListType->SensorPackage.arrayLen < iso2SensorPackageListType_SensorPackage_ARRAY_SIZE) {
+ errn = decode_iso2SensorPackageType(stream, &iso2SensorPackageListType->SensorPackage.array[iso2SensorPackageListType->SensorPackage.arrayLen++]);
+ } else {
+ errn = EXI_ERROR_OUT_OF_BOUNDS;
+ }
+ grammarID = 1170;
+ break;
+ case 1:
+ done = 1;
+ grammarID = 4;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 1170:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorPackage), END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ if (iso2SensorPackageListType->SensorPackage.arrayLen < iso2SensorPackageListType_SensorPackage_ARRAY_SIZE) {
+ errn = decode_iso2SensorPackageType(stream, &iso2SensorPackageListType->SensorPackage.array[iso2SensorPackageListType->SensorPackage.arrayLen++]);
+ } else {
+ errn = EXI_ERROR_OUT_OF_BOUNDS;
+ }
+ grammarID = 1171;
+ break;
+ case 1:
+ done = 1;
+ grammarID = 4;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 1171:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorPackage), END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ if (iso2SensorPackageListType->SensorPackage.arrayLen < iso2SensorPackageListType_SensorPackage_ARRAY_SIZE) {
+ errn = decode_iso2SensorPackageType(stream, &iso2SensorPackageListType->SensorPackage.array[iso2SensorPackageListType->SensorPackage.arrayLen++]);
+ } else {
+ errn = EXI_ERROR_OUT_OF_BOUNDS;
+ }
+ grammarID = 1172;
+ break;
+ case 1:
+ done = 1;
+ grammarID = 4;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 1172:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorPackage), END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ if (iso2SensorPackageListType->SensorPackage.arrayLen < iso2SensorPackageListType_SensorPackage_ARRAY_SIZE) {
+ errn = decode_iso2SensorPackageType(stream, &iso2SensorPackageListType->SensorPackage.array[iso2SensorPackageListType->SensorPackage.arrayLen++]);
+ } else {
+ errn = EXI_ERROR_OUT_OF_BOUNDS;
+ }
+ grammarID = 1173;
+ break;
+ case 1:
+ done = 1;
+ grammarID = 4;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 1173:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorPackage), END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ if (iso2SensorPackageListType->SensorPackage.arrayLen < iso2SensorPackageListType_SensorPackage_ARRAY_SIZE) {
+ errn = decode_iso2SensorPackageType(stream, &iso2SensorPackageListType->SensorPackage.array[iso2SensorPackageListType->SensorPackage.arrayLen++]);
+ } else {
+ errn = EXI_ERROR_OUT_OF_BOUNDS;
+ }
+ grammarID = 1174;
+ break;
+ case 1:
+ done = 1;
+ grammarID = 4;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 1174:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorPackage), END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ if (iso2SensorPackageListType->SensorPackage.arrayLen < iso2SensorPackageListType_SensorPackage_ARRAY_SIZE) {
+ errn = decode_iso2SensorPackageType(stream, &iso2SensorPackageListType->SensorPackage.array[iso2SensorPackageListType->SensorPackage.arrayLen++]);
+ } else {
+ errn = EXI_ERROR_OUT_OF_BOUNDS;
+ }
+ grammarID = 1175;
+ break;
+ case 1:
+ done = 1;
+ grammarID = 4;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 1175:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorPackage), END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ if (iso2SensorPackageListType->SensorPackage.arrayLen < iso2SensorPackageListType_SensorPackage_ARRAY_SIZE) {
+ errn = decode_iso2SensorPackageType(stream, &iso2SensorPackageListType->SensorPackage.array[iso2SensorPackageListType->SensorPackage.arrayLen++]);
+ } else {
+ errn = EXI_ERROR_OUT_OF_BOUNDS;
+ }
+ grammarID = 1176;
+ break;
+ case 1:
+ done = 1;
+ grammarID = 4;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 1176:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorPackage), END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ if (iso2SensorPackageListType->SensorPackage.arrayLen < iso2SensorPackageListType_SensorPackage_ARRAY_SIZE) {
+ errn = decode_iso2SensorPackageType(stream, &iso2SensorPackageListType->SensorPackage.array[iso2SensorPackageListType->SensorPackage.arrayLen++]);
+ } else {
+ errn = EXI_ERROR_OUT_OF_BOUNDS;
+ }
+ grammarID = 1177;
+ break;
+ case 1:
+ done = 1;
+ grammarID = 4;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 1177:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorPackage), END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ if (iso2SensorPackageListType->SensorPackage.arrayLen < iso2SensorPackageListType_SensorPackage_ARRAY_SIZE) {
+ errn = decode_iso2SensorPackageType(stream, &iso2SensorPackageListType->SensorPackage.array[iso2SensorPackageListType->SensorPackage.arrayLen++]);
+ } else {
+ errn = EXI_ERROR_OUT_OF_BOUNDS;
+ }
+ grammarID = 1178;
+ break;
+ case 1:
+ done = 1;
+ grammarID = 4;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 1178:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorPackage), END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ if (iso2SensorPackageListType->SensorPackage.arrayLen < iso2SensorPackageListType_SensorPackage_ARRAY_SIZE) {
+ errn = decode_iso2SensorPackageType(stream, &iso2SensorPackageListType->SensorPackage.array[iso2SensorPackageListType->SensorPackage.arrayLen++]);
+ } else {
+ errn = EXI_ERROR_OUT_OF_BOUNDS;
+ }
+ grammarID = 1179;
+ break;
+ case 1:
+ done = 1;
+ grammarID = 4;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 1179:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorPackage), END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ if (iso2SensorPackageListType->SensorPackage.arrayLen < iso2SensorPackageListType_SensorPackage_ARRAY_SIZE) {
+ errn = decode_iso2SensorPackageType(stream, &iso2SensorPackageListType->SensorPackage.array[iso2SensorPackageListType->SensorPackage.arrayLen++]);
+ } else {
+ errn = EXI_ERROR_OUT_OF_BOUNDS;
+ }
+ grammarID = 1180;
+ break;
+ case 1:
+ done = 1;
+ grammarID = 4;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 1180:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorPackage), END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ if (iso2SensorPackageListType->SensorPackage.arrayLen < iso2SensorPackageListType_SensorPackage_ARRAY_SIZE) {
+ errn = decode_iso2SensorPackageType(stream, &iso2SensorPackageListType->SensorPackage.array[iso2SensorPackageListType->SensorPackage.arrayLen++]);
+ } else {
+ errn = EXI_ERROR_OUT_OF_BOUNDS;
+ }
+ grammarID = 1181;
+ break;
+ case 1:
+ done = 1;
+ grammarID = 4;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 1181:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorPackage), END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ if (iso2SensorPackageListType->SensorPackage.arrayLen < iso2SensorPackageListType_SensorPackage_ARRAY_SIZE) {
+ errn = decode_iso2SensorPackageType(stream, &iso2SensorPackageListType->SensorPackage.array[iso2SensorPackageListType->SensorPackage.arrayLen++]);
+ } else {
+ errn = EXI_ERROR_OUT_OF_BOUNDS;
+ }
+ grammarID = 1182;
+ break;
+ case 1:
+ done = 1;
+ grammarID = 4;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 1182:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorPackage), END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ if (iso2SensorPackageListType->SensorPackage.arrayLen < iso2SensorPackageListType_SensorPackage_ARRAY_SIZE) {
+ errn = decode_iso2SensorPackageType(stream, &iso2SensorPackageListType->SensorPackage.array[iso2SensorPackageListType->SensorPackage.arrayLen++]);
+ } else {
+ errn = EXI_ERROR_OUT_OF_BOUNDS;
+ }
+ grammarID = 1183;
+ break;
+ case 1:
+ done = 1;
+ grammarID = 4;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 1183:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorPackage), END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ if (iso2SensorPackageListType->SensorPackage.arrayLen < iso2SensorPackageListType_SensorPackage_ARRAY_SIZE) {
+ errn = decode_iso2SensorPackageType(stream, &iso2SensorPackageListType->SensorPackage.array[iso2SensorPackageListType->SensorPackage.arrayLen++]);
+ } else {
+ errn = EXI_ERROR_OUT_OF_BOUNDS;
+ }
+ grammarID = 1184;
+ break;
+ case 1:
+ done = 1;
+ grammarID = 4;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 1184:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorPackage), END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ if (iso2SensorPackageListType->SensorPackage.arrayLen < iso2SensorPackageListType_SensorPackage_ARRAY_SIZE) {
+ errn = decode_iso2SensorPackageType(stream, &iso2SensorPackageListType->SensorPackage.array[iso2SensorPackageListType->SensorPackage.arrayLen++]);
+ } else {
+ errn = EXI_ERROR_OUT_OF_BOUNDS;
+ }
+ grammarID = 1185;
+ break;
+ case 1:
+ done = 1;
+ grammarID = 4;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 1185:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorPackage), END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ if (iso2SensorPackageListType->SensorPackage.arrayLen < iso2SensorPackageListType_SensorPackage_ARRAY_SIZE) {
+ errn = decode_iso2SensorPackageType(stream, &iso2SensorPackageListType->SensorPackage.array[iso2SensorPackageListType->SensorPackage.arrayLen++]);
+ } else {
+ errn = EXI_ERROR_OUT_OF_BOUNDS;
+ }
+ grammarID = 1186;
+ break;
+ case 1:
+ done = 1;
+ grammarID = 4;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 1186:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorPackage), END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ if (iso2SensorPackageListType->SensorPackage.arrayLen < iso2SensorPackageListType_SensorPackage_ARRAY_SIZE) {
+ errn = decode_iso2SensorPackageType(stream, &iso2SensorPackageListType->SensorPackage.array[iso2SensorPackageListType->SensorPackage.arrayLen++]);
+ } else {
+ errn = EXI_ERROR_OUT_OF_BOUNDS;
+ }
+ grammarID = 1187;
+ break;
+ case 1:
+ done = 1;
+ grammarID = 4;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 1187:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorPackage), END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ if (iso2SensorPackageListType->SensorPackage.arrayLen < iso2SensorPackageListType_SensorPackage_ARRAY_SIZE) {
+ errn = decode_iso2SensorPackageType(stream, &iso2SensorPackageListType->SensorPackage.array[iso2SensorPackageListType->SensorPackage.arrayLen++]);
+ } else {
+ errn = EXI_ERROR_OUT_OF_BOUNDS;
+ }
+ grammarID = 1188;
+ break;
+ case 1:
+ done = 1;
+ grammarID = 4;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 1188:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorPackage), END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ if (iso2SensorPackageListType->SensorPackage.arrayLen < iso2SensorPackageListType_SensorPackage_ARRAY_SIZE) {
+ errn = decode_iso2SensorPackageType(stream, &iso2SensorPackageListType->SensorPackage.array[iso2SensorPackageListType->SensorPackage.arrayLen++]);
+ } else {
+ errn = EXI_ERROR_OUT_OF_BOUNDS;
+ }
+ grammarID = 1189;
+ break;
+ case 1:
+ done = 1;
+ grammarID = 4;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 1189:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorPackage), END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ if (iso2SensorPackageListType->SensorPackage.arrayLen < iso2SensorPackageListType_SensorPackage_ARRAY_SIZE) {
+ errn = decode_iso2SensorPackageType(stream, &iso2SensorPackageListType->SensorPackage.array[iso2SensorPackageListType->SensorPackage.arrayLen++]);
+ } else {
+ errn = EXI_ERROR_OUT_OF_BOUNDS;
+ }
+ grammarID = 1190;
+ break;
+ case 1:
+ done = 1;
+ grammarID = 4;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 1190:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorPackage), END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ if (iso2SensorPackageListType->SensorPackage.arrayLen < iso2SensorPackageListType_SensorPackage_ARRAY_SIZE) {
+ errn = decode_iso2SensorPackageType(stream, &iso2SensorPackageListType->SensorPackage.array[iso2SensorPackageListType->SensorPackage.arrayLen++]);
+ } else {
+ errn = EXI_ERROR_OUT_OF_BOUNDS;
+ }
+ grammarID = 1191;
+ break;
+ case 1:
+ done = 1;
+ grammarID = 4;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 1191:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorPackage), END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ if (iso2SensorPackageListType->SensorPackage.arrayLen < iso2SensorPackageListType_SensorPackage_ARRAY_SIZE) {
+ errn = decode_iso2SensorPackageType(stream, &iso2SensorPackageListType->SensorPackage.array[iso2SensorPackageListType->SensorPackage.arrayLen++]);
+ } else {
+ errn = EXI_ERROR_OUT_OF_BOUNDS;
+ }
+ grammarID = 1192;
+ break;
+ case 1:
+ done = 1;
+ grammarID = 4;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 1192:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorPackage), END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ if (iso2SensorPackageListType->SensorPackage.arrayLen < iso2SensorPackageListType_SensorPackage_ARRAY_SIZE) {
+ errn = decode_iso2SensorPackageType(stream, &iso2SensorPackageListType->SensorPackage.array[iso2SensorPackageListType->SensorPackage.arrayLen++]);
+ } else {
+ errn = EXI_ERROR_OUT_OF_BOUNDS;
+ }
+ grammarID = 1193;
+ break;
+ case 1:
+ done = 1;
+ grammarID = 4;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 1193:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorPackage), END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ if (iso2SensorPackageListType->SensorPackage.arrayLen < iso2SensorPackageListType_SensorPackage_ARRAY_SIZE) {
+ errn = decode_iso2SensorPackageType(stream, &iso2SensorPackageListType->SensorPackage.array[iso2SensorPackageListType->SensorPackage.arrayLen++]);
+ } else {
+ errn = EXI_ERROR_OUT_OF_BOUNDS;
+ }
+ grammarID = 1194;
+ break;
+ case 1:
+ done = 1;
+ grammarID = 4;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 1194:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorPackage), END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ if (iso2SensorPackageListType->SensorPackage.arrayLen < iso2SensorPackageListType_SensorPackage_ARRAY_SIZE) {
+ errn = decode_iso2SensorPackageType(stream, &iso2SensorPackageListType->SensorPackage.array[iso2SensorPackageListType->SensorPackage.arrayLen++]);
+ } else {
+ errn = EXI_ERROR_OUT_OF_BOUNDS;
+ }
+ grammarID = 1195;
+ break;
+ case 1:
+ done = 1;
+ grammarID = 4;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 1195:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorPackage), END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ if (iso2SensorPackageListType->SensorPackage.arrayLen < iso2SensorPackageListType_SensorPackage_ARRAY_SIZE) {
+ errn = decode_iso2SensorPackageType(stream, &iso2SensorPackageListType->SensorPackage.array[iso2SensorPackageListType->SensorPackage.arrayLen++]);
+ } else {
+ errn = EXI_ERROR_OUT_OF_BOUNDS;
+ }
+ grammarID = 1196;
+ break;
+ case 1:
+ done = 1;
+ grammarID = 4;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 1196:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorPackage), END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ if (iso2SensorPackageListType->SensorPackage.arrayLen < iso2SensorPackageListType_SensorPackage_ARRAY_SIZE) {
+ errn = decode_iso2SensorPackageType(stream, &iso2SensorPackageListType->SensorPackage.array[iso2SensorPackageListType->SensorPackage.arrayLen++]);
+ } else {
+ errn = EXI_ERROR_OUT_OF_BOUNDS;
+ }
+ grammarID = 1197;
+ break;
+ case 1:
+ done = 1;
+ grammarID = 4;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 1197:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorPackage), END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ if (iso2SensorPackageListType->SensorPackage.arrayLen < iso2SensorPackageListType_SensorPackage_ARRAY_SIZE) {
+ errn = decode_iso2SensorPackageType(stream, &iso2SensorPackageListType->SensorPackage.array[iso2SensorPackageListType->SensorPackage.arrayLen++]);
+ } else {
+ errn = EXI_ERROR_OUT_OF_BOUNDS;
+ }
+ grammarID = 1198;
+ break;
+ case 1:
+ done = 1;
+ grammarID = 4;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 1198:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorPackage), END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ if (iso2SensorPackageListType->SensorPackage.arrayLen < iso2SensorPackageListType_SensorPackage_ARRAY_SIZE) {
+ errn = decode_iso2SensorPackageType(stream, &iso2SensorPackageListType->SensorPackage.array[iso2SensorPackageListType->SensorPackage.arrayLen++]);
+ } else {
+ errn = EXI_ERROR_OUT_OF_BOUNDS;
+ }
+ grammarID = 1199;
+ break;
+ case 1:
+ done = 1;
+ grammarID = 4;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 1199:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorPackage), END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ if (iso2SensorPackageListType->SensorPackage.arrayLen < iso2SensorPackageListType_SensorPackage_ARRAY_SIZE) {
+ errn = decode_iso2SensorPackageType(stream, &iso2SensorPackageListType->SensorPackage.array[iso2SensorPackageListType->SensorPackage.arrayLen++]);
+ } else {
+ errn = EXI_ERROR_OUT_OF_BOUNDS;
+ }
+ grammarID = 1200;
+ break;
+ case 1:
+ done = 1;
+ grammarID = 4;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 1200:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorPackage), END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ if (iso2SensorPackageListType->SensorPackage.arrayLen < iso2SensorPackageListType_SensorPackage_ARRAY_SIZE) {
+ errn = decode_iso2SensorPackageType(stream, &iso2SensorPackageListType->SensorPackage.array[iso2SensorPackageListType->SensorPackage.arrayLen++]);
+ } else {
+ errn = EXI_ERROR_OUT_OF_BOUNDS;
+ }
+ grammarID = 1201;
+ break;
+ case 1:
+ done = 1;
+ grammarID = 4;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 1201:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorPackage), END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ if (iso2SensorPackageListType->SensorPackage.arrayLen < iso2SensorPackageListType_SensorPackage_ARRAY_SIZE) {
+ errn = decode_iso2SensorPackageType(stream, &iso2SensorPackageListType->SensorPackage.array[iso2SensorPackageListType->SensorPackage.arrayLen++]);
+ } else {
+ errn = EXI_ERROR_OUT_OF_BOUNDS;
+ }
+ grammarID = 1202;
+ break;
+ case 1:
+ done = 1;
+ grammarID = 4;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 1202:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorPackage), END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ if (iso2SensorPackageListType->SensorPackage.arrayLen < iso2SensorPackageListType_SensorPackage_ARRAY_SIZE) {
+ errn = decode_iso2SensorPackageType(stream, &iso2SensorPackageListType->SensorPackage.array[iso2SensorPackageListType->SensorPackage.arrayLen++]);
+ } else {
+ errn = EXI_ERROR_OUT_OF_BOUNDS;
+ }
+ grammarID = 1203;
+ break;
+ case 1:
+ done = 1;
+ grammarID = 4;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 1203:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorPackage), END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ if (iso2SensorPackageListType->SensorPackage.arrayLen < iso2SensorPackageListType_SensorPackage_ARRAY_SIZE) {
+ errn = decode_iso2SensorPackageType(stream, &iso2SensorPackageListType->SensorPackage.array[iso2SensorPackageListType->SensorPackage.arrayLen++]);
+ } else {
+ errn = EXI_ERROR_OUT_OF_BOUNDS;
+ }
+ grammarID = 1204;
+ break;
+ case 1:
+ done = 1;
+ grammarID = 4;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 1204:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorPackage), END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ if (iso2SensorPackageListType->SensorPackage.arrayLen < iso2SensorPackageListType_SensorPackage_ARRAY_SIZE) {
+ errn = decode_iso2SensorPackageType(stream, &iso2SensorPackageListType->SensorPackage.array[iso2SensorPackageListType->SensorPackage.arrayLen++]);
+ } else {
+ errn = EXI_ERROR_OUT_OF_BOUNDS;
+ }
+ grammarID = 1205;
+ break;
+ case 1:
+ done = 1;
+ grammarID = 4;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 1205:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorPackage), END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ if (iso2SensorPackageListType->SensorPackage.arrayLen < iso2SensorPackageListType_SensorPackage_ARRAY_SIZE) {
+ errn = decode_iso2SensorPackageType(stream, &iso2SensorPackageListType->SensorPackage.array[iso2SensorPackageListType->SensorPackage.arrayLen++]);
+ } else {
+ errn = EXI_ERROR_OUT_OF_BOUNDS;
+ }
+ grammarID = 1206;
+ break;
+ case 1:
+ done = 1;
+ grammarID = 4;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 1206:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorPackage), END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ if (iso2SensorPackageListType->SensorPackage.arrayLen < iso2SensorPackageListType_SensorPackage_ARRAY_SIZE) {
+ errn = decode_iso2SensorPackageType(stream, &iso2SensorPackageListType->SensorPackage.array[iso2SensorPackageListType->SensorPackage.arrayLen++]);
+ } else {
+ errn = EXI_ERROR_OUT_OF_BOUNDS;
+ }
+ grammarID = 1207;
+ break;
+ case 1:
+ done = 1;
+ grammarID = 4;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 1207:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorPackage), END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ if (iso2SensorPackageListType->SensorPackage.arrayLen < iso2SensorPackageListType_SensorPackage_ARRAY_SIZE) {
+ errn = decode_iso2SensorPackageType(stream, &iso2SensorPackageListType->SensorPackage.array[iso2SensorPackageListType->SensorPackage.arrayLen++]);
+ } else {
+ errn = EXI_ERROR_OUT_OF_BOUNDS;
+ }
+ grammarID = 1208;
+ break;
+ case 1:
+ done = 1;
+ grammarID = 4;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 1208:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorPackage), END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ if (iso2SensorPackageListType->SensorPackage.arrayLen < iso2SensorPackageListType_SensorPackage_ARRAY_SIZE) {
+ errn = decode_iso2SensorPackageType(stream, &iso2SensorPackageListType->SensorPackage.array[iso2SensorPackageListType->SensorPackage.arrayLen++]);
+ } else {
+ errn = EXI_ERROR_OUT_OF_BOUNDS;
+ }
+ grammarID = 1209;
+ break;
+ case 1:
+ done = 1;
+ grammarID = 4;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 1209:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorPackage), END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ if (iso2SensorPackageListType->SensorPackage.arrayLen < iso2SensorPackageListType_SensorPackage_ARRAY_SIZE) {
+ errn = decode_iso2SensorPackageType(stream, &iso2SensorPackageListType->SensorPackage.array[iso2SensorPackageListType->SensorPackage.arrayLen++]);
+ } else {
+ errn = EXI_ERROR_OUT_OF_BOUNDS;
+ }
+ grammarID = 1210;
+ break;
+ case 1:
+ done = 1;
+ grammarID = 4;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 1210:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorPackage), END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ if (iso2SensorPackageListType->SensorPackage.arrayLen < iso2SensorPackageListType_SensorPackage_ARRAY_SIZE) {
+ errn = decode_iso2SensorPackageType(stream, &iso2SensorPackageListType->SensorPackage.array[iso2SensorPackageListType->SensorPackage.arrayLen++]);
+ } else {
+ errn = EXI_ERROR_OUT_OF_BOUNDS;
+ }
+ grammarID = 1211;
+ break;
+ case 1:
+ done = 1;
+ grammarID = 4;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 1211:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorPackage), END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ if (iso2SensorPackageListType->SensorPackage.arrayLen < iso2SensorPackageListType_SensorPackage_ARRAY_SIZE) {
+ errn = decode_iso2SensorPackageType(stream, &iso2SensorPackageListType->SensorPackage.array[iso2SensorPackageListType->SensorPackage.arrayLen++]);
+ } else {
+ errn = EXI_ERROR_OUT_OF_BOUNDS;
+ }
+ grammarID = 1212;
+ break;
+ case 1:
+ done = 1;
+ grammarID = 4;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 1212:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorPackage), END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ if (iso2SensorPackageListType->SensorPackage.arrayLen < iso2SensorPackageListType_SensorPackage_ARRAY_SIZE) {
+ errn = decode_iso2SensorPackageType(stream, &iso2SensorPackageListType->SensorPackage.array[iso2SensorPackageListType->SensorPackage.arrayLen++]);
+ } else {
+ errn = EXI_ERROR_OUT_OF_BOUNDS;
+ }
+ grammarID = 3;
+ break;
+ case 1:
+ done = 1;
+ grammarID = 4;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 3:
+ /* Element[END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ done = 1;
+ grammarID = 4;
+ 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:2016:MsgDataTypes,MeasurementDataListType', base type name='anyType', content type='ELEMENT', isAbstract='false', hasTypeId='false', final='0', block='0', particle='("urn:iso:15118:2:2016:MsgDataTypes":MeasurementData{1-255})', derivedBy='RESTRICTION'. */
+static int decode_iso2MeasurementDataListType(bitstream_t* stream, struct iso2MeasurementDataListType* iso2MeasurementDataListType) {
+ int grammarID = 1213;
+ int done = 0;
+
+ init_iso2MeasurementDataListType(iso2MeasurementDataListType);
+
+ while(!done) {
+ switch(grammarID) {
+ case 1213:
+ /* FirstStartTag[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MeasurementData)] */
+ errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ if (iso2MeasurementDataListType->MeasurementData.arrayLen < iso2MeasurementDataListType_MeasurementData_ARRAY_SIZE) {
+ /* First(xsi:type)StartTag[CHARACTERS[UNSIGNED_INTEGER]] */
+ errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
+ if(errn == 0) {
+ if(eventCode == 0) {
+ errn = decodeUnsignedInteger16(stream, &iso2MeasurementDataListType->MeasurementData.array[iso2MeasurementDataListType->MeasurementData.arrayLen]);
+ iso2MeasurementDataListType->MeasurementData.arrayLen++;
+ } else {
+ /* Second level event (e.g., xsi:type, xsi:nil, ...) */
+ errn = EXI_UNSUPPORTED_EVENT_CODE_CHARACTERISTICS;
+ }
+ }
+ } else {
+ errn = EXI_ERROR_OUT_OF_BOUNDS;
+ }
+ if(errn == 0) {
+ /* valid EE for simple element START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MeasurementData) ? */
+ errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
+ if(eventCode == 0) {
+ grammarID = 1214;
+ } else {
+ errn = EXI_DEVIANT_SUPPORT_NOT_DEPLOYED; /* or also typecast and nillable */
+ }
+ }
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 1214:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MeasurementData), END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ if (iso2MeasurementDataListType->MeasurementData.arrayLen < iso2MeasurementDataListType_MeasurementData_ARRAY_SIZE) {
+ /* First(xsi:type)StartTag[CHARACTERS[UNSIGNED_INTEGER]] */
+ errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
+ if(errn == 0) {
+ if(eventCode == 0) {
+ errn = decodeUnsignedInteger16(stream, &iso2MeasurementDataListType->MeasurementData.array[iso2MeasurementDataListType->MeasurementData.arrayLen]);
+ iso2MeasurementDataListType->MeasurementData.arrayLen++;
+ } else {
+ /* Second level event (e.g., xsi:type, xsi:nil, ...) */
+ errn = EXI_UNSUPPORTED_EVENT_CODE_CHARACTERISTICS;
+ }
+ }
+ } else {
+ errn = EXI_ERROR_OUT_OF_BOUNDS;
+ }
+ if(errn == 0) {
+ /* valid EE for simple element START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MeasurementData) ? */
+ errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
+ if(eventCode == 0) {
+ grammarID = 1215;
+ } else {
+ errn = EXI_DEVIANT_SUPPORT_NOT_DEPLOYED; /* or also typecast and nillable */
+ }
+ }
+ break;
+ case 1:
+ done = 1;
+ grammarID = 4;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 1215:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MeasurementData), END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ if (iso2MeasurementDataListType->MeasurementData.arrayLen < iso2MeasurementDataListType_MeasurementData_ARRAY_SIZE) {
+ /* First(xsi:type)StartTag[CHARACTERS[UNSIGNED_INTEGER]] */
+ errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
+ if(errn == 0) {
+ if(eventCode == 0) {
+ errn = decodeUnsignedInteger16(stream, &iso2MeasurementDataListType->MeasurementData.array[iso2MeasurementDataListType->MeasurementData.arrayLen]);
+ iso2MeasurementDataListType->MeasurementData.arrayLen++;
+ } else {
+ /* Second level event (e.g., xsi:type, xsi:nil, ...) */
+ errn = EXI_UNSUPPORTED_EVENT_CODE_CHARACTERISTICS;
+ }
+ }
+ } else {
+ errn = EXI_ERROR_OUT_OF_BOUNDS;
+ }
+ if(errn == 0) {
+ /* valid EE for simple element START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MeasurementData) ? */
+ errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
+ if(eventCode == 0) {
+ grammarID = 1216;
+ } else {
+ errn = EXI_DEVIANT_SUPPORT_NOT_DEPLOYED; /* or also typecast and nillable */
+ }
+ }
+ break;
+ case 1:
+ done = 1;
+ grammarID = 4;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 1216:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MeasurementData), END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ if (iso2MeasurementDataListType->MeasurementData.arrayLen < iso2MeasurementDataListType_MeasurementData_ARRAY_SIZE) {
+ /* First(xsi:type)StartTag[CHARACTERS[UNSIGNED_INTEGER]] */
+ errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
+ if(errn == 0) {
+ if(eventCode == 0) {
+ errn = decodeUnsignedInteger16(stream, &iso2MeasurementDataListType->MeasurementData.array[iso2MeasurementDataListType->MeasurementData.arrayLen]);
+ iso2MeasurementDataListType->MeasurementData.arrayLen++;
+ } else {
+ /* Second level event (e.g., xsi:type, xsi:nil, ...) */
+ errn = EXI_UNSUPPORTED_EVENT_CODE_CHARACTERISTICS;
+ }
+ }
+ } else {
+ errn = EXI_ERROR_OUT_OF_BOUNDS;
+ }
+ if(errn == 0) {
+ /* valid EE for simple element START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MeasurementData) ? */
+ errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
+ if(eventCode == 0) {
+ grammarID = 1217;
+ } else {
+ errn = EXI_DEVIANT_SUPPORT_NOT_DEPLOYED; /* or also typecast and nillable */
+ }
+ }
+ break;
+ case 1:
+ done = 1;
+ grammarID = 4;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 1217:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MeasurementData), END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ if (iso2MeasurementDataListType->MeasurementData.arrayLen < iso2MeasurementDataListType_MeasurementData_ARRAY_SIZE) {
+ /* First(xsi:type)StartTag[CHARACTERS[UNSIGNED_INTEGER]] */
+ errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
+ if(errn == 0) {
+ if(eventCode == 0) {
+ errn = decodeUnsignedInteger16(stream, &iso2MeasurementDataListType->MeasurementData.array[iso2MeasurementDataListType->MeasurementData.arrayLen]);
+ iso2MeasurementDataListType->MeasurementData.arrayLen++;
+ } else {
+ /* Second level event (e.g., xsi:type, xsi:nil, ...) */
+ errn = EXI_UNSUPPORTED_EVENT_CODE_CHARACTERISTICS;
+ }
+ }
+ } else {
+ errn = EXI_ERROR_OUT_OF_BOUNDS;
+ }
+ if(errn == 0) {
+ /* valid EE for simple element START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MeasurementData) ? */
+ errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
+ if(eventCode == 0) {
+ grammarID = 1218;
+ } else {
+ errn = EXI_DEVIANT_SUPPORT_NOT_DEPLOYED; /* or also typecast and nillable */
+ }
+ }
+ break;
+ case 1:
+ done = 1;
+ grammarID = 4;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 1218:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MeasurementData), END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ if (iso2MeasurementDataListType->MeasurementData.arrayLen < iso2MeasurementDataListType_MeasurementData_ARRAY_SIZE) {
+ /* First(xsi:type)StartTag[CHARACTERS[UNSIGNED_INTEGER]] */
+ errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
+ if(errn == 0) {
+ if(eventCode == 0) {
+ errn = decodeUnsignedInteger16(stream, &iso2MeasurementDataListType->MeasurementData.array[iso2MeasurementDataListType->MeasurementData.arrayLen]);
+ iso2MeasurementDataListType->MeasurementData.arrayLen++;
+ } else {
+ /* Second level event (e.g., xsi:type, xsi:nil, ...) */
+ errn = EXI_UNSUPPORTED_EVENT_CODE_CHARACTERISTICS;
+ }
+ }
+ } else {
+ errn = EXI_ERROR_OUT_OF_BOUNDS;
+ }
+ if(errn == 0) {
+ /* valid EE for simple element START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MeasurementData) ? */
+ errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
+ if(eventCode == 0) {
+ grammarID = 1219;
+ } else {
+ errn = EXI_DEVIANT_SUPPORT_NOT_DEPLOYED; /* or also typecast and nillable */
+ }
+ }
+ break;
+ case 1:
+ done = 1;
+ grammarID = 4;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 1219:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MeasurementData), END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ if (iso2MeasurementDataListType->MeasurementData.arrayLen < iso2MeasurementDataListType_MeasurementData_ARRAY_SIZE) {
+ /* First(xsi:type)StartTag[CHARACTERS[UNSIGNED_INTEGER]] */
+ errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
+ if(errn == 0) {
+ if(eventCode == 0) {
+ errn = decodeUnsignedInteger16(stream, &iso2MeasurementDataListType->MeasurementData.array[iso2MeasurementDataListType->MeasurementData.arrayLen]);
+ iso2MeasurementDataListType->MeasurementData.arrayLen++;
+ } else {
+ /* Second level event (e.g., xsi:type, xsi:nil, ...) */
+ errn = EXI_UNSUPPORTED_EVENT_CODE_CHARACTERISTICS;
+ }
+ }
+ } else {
+ errn = EXI_ERROR_OUT_OF_BOUNDS;
+ }
+ if(errn == 0) {
+ /* valid EE for simple element START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MeasurementData) ? */
+ errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
+ if(eventCode == 0) {
+ grammarID = 1220;
+ } else {
+ errn = EXI_DEVIANT_SUPPORT_NOT_DEPLOYED; /* or also typecast and nillable */
+ }
+ }
+ break;
+ case 1:
+ done = 1;
+ grammarID = 4;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 1220:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MeasurementData), END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ if (iso2MeasurementDataListType->MeasurementData.arrayLen < iso2MeasurementDataListType_MeasurementData_ARRAY_SIZE) {
+ /* First(xsi:type)StartTag[CHARACTERS[UNSIGNED_INTEGER]] */
+ errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
+ if(errn == 0) {
+ if(eventCode == 0) {
+ errn = decodeUnsignedInteger16(stream, &iso2MeasurementDataListType->MeasurementData.array[iso2MeasurementDataListType->MeasurementData.arrayLen]);
+ iso2MeasurementDataListType->MeasurementData.arrayLen++;
+ } else {
+ /* Second level event (e.g., xsi:type, xsi:nil, ...) */
+ errn = EXI_UNSUPPORTED_EVENT_CODE_CHARACTERISTICS;
+ }
+ }
+ } else {
+ errn = EXI_ERROR_OUT_OF_BOUNDS;
+ }
+ if(errn == 0) {
+ /* valid EE for simple element START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MeasurementData) ? */
+ errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
+ if(eventCode == 0) {
+ grammarID = 1221;
+ } else {
+ errn = EXI_DEVIANT_SUPPORT_NOT_DEPLOYED; /* or also typecast and nillable */
+ }
+ }
+ break;
+ case 1:
+ done = 1;
+ grammarID = 4;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 1221:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MeasurementData), END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ if (iso2MeasurementDataListType->MeasurementData.arrayLen < iso2MeasurementDataListType_MeasurementData_ARRAY_SIZE) {
+ /* First(xsi:type)StartTag[CHARACTERS[UNSIGNED_INTEGER]] */
+ errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
+ if(errn == 0) {
+ if(eventCode == 0) {
+ errn = decodeUnsignedInteger16(stream, &iso2MeasurementDataListType->MeasurementData.array[iso2MeasurementDataListType->MeasurementData.arrayLen]);
+ iso2MeasurementDataListType->MeasurementData.arrayLen++;
+ } else {
+ /* Second level event (e.g., xsi:type, xsi:nil, ...) */
+ errn = EXI_UNSUPPORTED_EVENT_CODE_CHARACTERISTICS;
+ }
+ }
+ } else {
+ errn = EXI_ERROR_OUT_OF_BOUNDS;
+ }
+ if(errn == 0) {
+ /* valid EE for simple element START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MeasurementData) ? */
+ errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
+ if(eventCode == 0) {
+ grammarID = 1222;
+ } else {
+ errn = EXI_DEVIANT_SUPPORT_NOT_DEPLOYED; /* or also typecast and nillable */
+ }
+ }
+ break;
+ case 1:
+ done = 1;
+ grammarID = 4;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 1222:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MeasurementData), END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ if (iso2MeasurementDataListType->MeasurementData.arrayLen < iso2MeasurementDataListType_MeasurementData_ARRAY_SIZE) {
+ /* First(xsi:type)StartTag[CHARACTERS[UNSIGNED_INTEGER]] */
+ errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
+ if(errn == 0) {
+ if(eventCode == 0) {
+ errn = decodeUnsignedInteger16(stream, &iso2MeasurementDataListType->MeasurementData.array[iso2MeasurementDataListType->MeasurementData.arrayLen]);
+ iso2MeasurementDataListType->MeasurementData.arrayLen++;
+ } else {
+ /* Second level event (e.g., xsi:type, xsi:nil, ...) */
+ errn = EXI_UNSUPPORTED_EVENT_CODE_CHARACTERISTICS;
+ }
+ }
+ } else {
+ errn = EXI_ERROR_OUT_OF_BOUNDS;
+ }
+ if(errn == 0) {
+ /* valid EE for simple element START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MeasurementData) ? */
+ errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
+ if(eventCode == 0) {
+ grammarID = 1223;
+ } else {
+ errn = EXI_DEVIANT_SUPPORT_NOT_DEPLOYED; /* or also typecast and nillable */
+ }
+ }
+ break;
+ case 1:
+ done = 1;
+ grammarID = 4;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 1223:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MeasurementData), END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ if (iso2MeasurementDataListType->MeasurementData.arrayLen < iso2MeasurementDataListType_MeasurementData_ARRAY_SIZE) {
+ /* First(xsi:type)StartTag[CHARACTERS[UNSIGNED_INTEGER]] */
+ errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
+ if(errn == 0) {
+ if(eventCode == 0) {
+ errn = decodeUnsignedInteger16(stream, &iso2MeasurementDataListType->MeasurementData.array[iso2MeasurementDataListType->MeasurementData.arrayLen]);
+ iso2MeasurementDataListType->MeasurementData.arrayLen++;
+ } else {
+ /* Second level event (e.g., xsi:type, xsi:nil, ...) */
+ errn = EXI_UNSUPPORTED_EVENT_CODE_CHARACTERISTICS;
+ }
+ }
+ } else {
+ errn = EXI_ERROR_OUT_OF_BOUNDS;
+ }
+ if(errn == 0) {
+ /* valid EE for simple element START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MeasurementData) ? */
+ errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
+ if(eventCode == 0) {
+ grammarID = 1224;
+ } else {
+ errn = EXI_DEVIANT_SUPPORT_NOT_DEPLOYED; /* or also typecast and nillable */
+ }
+ }
+ break;
+ case 1:
+ done = 1;
+ grammarID = 4;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 1224:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MeasurementData), END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ if (iso2MeasurementDataListType->MeasurementData.arrayLen < iso2MeasurementDataListType_MeasurementData_ARRAY_SIZE) {
+ /* First(xsi:type)StartTag[CHARACTERS[UNSIGNED_INTEGER]] */
+ errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
+ if(errn == 0) {
+ if(eventCode == 0) {
+ errn = decodeUnsignedInteger16(stream, &iso2MeasurementDataListType->MeasurementData.array[iso2MeasurementDataListType->MeasurementData.arrayLen]);
+ iso2MeasurementDataListType->MeasurementData.arrayLen++;
+ } else {
+ /* Second level event (e.g., xsi:type, xsi:nil, ...) */
+ errn = EXI_UNSUPPORTED_EVENT_CODE_CHARACTERISTICS;
+ }
+ }
+ } else {
+ errn = EXI_ERROR_OUT_OF_BOUNDS;
+ }
+ if(errn == 0) {
+ /* valid EE for simple element START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MeasurementData) ? */
+ errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
+ if(eventCode == 0) {
+ grammarID = 1225;
+ } else {
+ errn = EXI_DEVIANT_SUPPORT_NOT_DEPLOYED; /* or also typecast and nillable */
+ }
+ }
+ break;
+ case 1:
+ done = 1;
+ grammarID = 4;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 1225:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MeasurementData), END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ if (iso2MeasurementDataListType->MeasurementData.arrayLen < iso2MeasurementDataListType_MeasurementData_ARRAY_SIZE) {
+ /* First(xsi:type)StartTag[CHARACTERS[UNSIGNED_INTEGER]] */
+ errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
+ if(errn == 0) {
+ if(eventCode == 0) {
+ errn = decodeUnsignedInteger16(stream, &iso2MeasurementDataListType->MeasurementData.array[iso2MeasurementDataListType->MeasurementData.arrayLen]);
+ iso2MeasurementDataListType->MeasurementData.arrayLen++;
+ } else {
+ /* Second level event (e.g., xsi:type, xsi:nil, ...) */
+ errn = EXI_UNSUPPORTED_EVENT_CODE_CHARACTERISTICS;
+ }
+ }
+ } else {
+ errn = EXI_ERROR_OUT_OF_BOUNDS;
+ }
+ if(errn == 0) {
+ /* valid EE for simple element START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MeasurementData) ? */
+ errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
+ if(eventCode == 0) {
+ grammarID = 1226;
+ } else {
+ errn = EXI_DEVIANT_SUPPORT_NOT_DEPLOYED; /* or also typecast and nillable */
+ }
+ }
+ break;
+ case 1:
+ done = 1;
+ grammarID = 4;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 1226:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MeasurementData), END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ if (iso2MeasurementDataListType->MeasurementData.arrayLen < iso2MeasurementDataListType_MeasurementData_ARRAY_SIZE) {
+ /* First(xsi:type)StartTag[CHARACTERS[UNSIGNED_INTEGER]] */
+ errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
+ if(errn == 0) {
+ if(eventCode == 0) {
+ errn = decodeUnsignedInteger16(stream, &iso2MeasurementDataListType->MeasurementData.array[iso2MeasurementDataListType->MeasurementData.arrayLen]);
+ iso2MeasurementDataListType->MeasurementData.arrayLen++;
+ } else {
+ /* Second level event (e.g., xsi:type, xsi:nil, ...) */
+ errn = EXI_UNSUPPORTED_EVENT_CODE_CHARACTERISTICS;
+ }
+ }
+ } else {
+ errn = EXI_ERROR_OUT_OF_BOUNDS;
+ }
+ if(errn == 0) {
+ /* valid EE for simple element START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MeasurementData) ? */
+ errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
+ if(eventCode == 0) {
+ grammarID = 1227;
+ } else {
+ errn = EXI_DEVIANT_SUPPORT_NOT_DEPLOYED; /* or also typecast and nillable */
+ }
+ }
+ break;
+ case 1:
+ done = 1;
+ grammarID = 4;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 1227:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MeasurementData), END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ if (iso2MeasurementDataListType->MeasurementData.arrayLen < iso2MeasurementDataListType_MeasurementData_ARRAY_SIZE) {
+ /* First(xsi:type)StartTag[CHARACTERS[UNSIGNED_INTEGER]] */
+ errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
+ if(errn == 0) {
+ if(eventCode == 0) {
+ errn = decodeUnsignedInteger16(stream, &iso2MeasurementDataListType->MeasurementData.array[iso2MeasurementDataListType->MeasurementData.arrayLen]);
+ iso2MeasurementDataListType->MeasurementData.arrayLen++;
+ } else {
+ /* Second level event (e.g., xsi:type, xsi:nil, ...) */
+ errn = EXI_UNSUPPORTED_EVENT_CODE_CHARACTERISTICS;
+ }
+ }
+ } else {
+ errn = EXI_ERROR_OUT_OF_BOUNDS;
+ }
+ if(errn == 0) {
+ /* valid EE for simple element START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MeasurementData) ? */
+ errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
+ if(eventCode == 0) {
+ grammarID = 1228;
+ } else {
+ errn = EXI_DEVIANT_SUPPORT_NOT_DEPLOYED; /* or also typecast and nillable */
+ }
+ }
+ break;
+ case 1:
+ done = 1;
+ grammarID = 4;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 1228:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MeasurementData), END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ if (iso2MeasurementDataListType->MeasurementData.arrayLen < iso2MeasurementDataListType_MeasurementData_ARRAY_SIZE) {
+ /* First(xsi:type)StartTag[CHARACTERS[UNSIGNED_INTEGER]] */
+ errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
+ if(errn == 0) {
+ if(eventCode == 0) {
+ errn = decodeUnsignedInteger16(stream, &iso2MeasurementDataListType->MeasurementData.array[iso2MeasurementDataListType->MeasurementData.arrayLen]);
+ iso2MeasurementDataListType->MeasurementData.arrayLen++;
+ } else {
+ /* Second level event (e.g., xsi:type, xsi:nil, ...) */
+ errn = EXI_UNSUPPORTED_EVENT_CODE_CHARACTERISTICS;
+ }
+ }
+ } else {
+ errn = EXI_ERROR_OUT_OF_BOUNDS;
+ }
+ if(errn == 0) {
+ /* valid EE for simple element START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MeasurementData) ? */
+ errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
+ if(eventCode == 0) {
+ grammarID = 1229;
+ } else {
+ errn = EXI_DEVIANT_SUPPORT_NOT_DEPLOYED; /* or also typecast and nillable */
+ }
+ }
+ break;
+ case 1:
+ done = 1;
+ grammarID = 4;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 1229:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MeasurementData), END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ if (iso2MeasurementDataListType->MeasurementData.arrayLen < iso2MeasurementDataListType_MeasurementData_ARRAY_SIZE) {
+ /* First(xsi:type)StartTag[CHARACTERS[UNSIGNED_INTEGER]] */
+ errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
+ if(errn == 0) {
+ if(eventCode == 0) {
+ errn = decodeUnsignedInteger16(stream, &iso2MeasurementDataListType->MeasurementData.array[iso2MeasurementDataListType->MeasurementData.arrayLen]);
+ iso2MeasurementDataListType->MeasurementData.arrayLen++;
+ } else {
+ /* Second level event (e.g., xsi:type, xsi:nil, ...) */
+ errn = EXI_UNSUPPORTED_EVENT_CODE_CHARACTERISTICS;
+ }
+ }
+ } else {
+ errn = EXI_ERROR_OUT_OF_BOUNDS;
+ }
+ if(errn == 0) {
+ /* valid EE for simple element START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MeasurementData) ? */
+ errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
+ if(eventCode == 0) {
+ grammarID = 1230;
+ } else {
+ errn = EXI_DEVIANT_SUPPORT_NOT_DEPLOYED; /* or also typecast and nillable */
+ }
+ }
+ break;
+ case 1:
+ done = 1;
+ grammarID = 4;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 1230:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MeasurementData), END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ if (iso2MeasurementDataListType->MeasurementData.arrayLen < iso2MeasurementDataListType_MeasurementData_ARRAY_SIZE) {
+ /* First(xsi:type)StartTag[CHARACTERS[UNSIGNED_INTEGER]] */
+ errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
+ if(errn == 0) {
+ if(eventCode == 0) {
+ errn = decodeUnsignedInteger16(stream, &iso2MeasurementDataListType->MeasurementData.array[iso2MeasurementDataListType->MeasurementData.arrayLen]);
+ iso2MeasurementDataListType->MeasurementData.arrayLen++;
+ } else {
+ /* Second level event (e.g., xsi:type, xsi:nil, ...) */
+ errn = EXI_UNSUPPORTED_EVENT_CODE_CHARACTERISTICS;
+ }
+ }
+ } else {
+ errn = EXI_ERROR_OUT_OF_BOUNDS;
+ }
+ if(errn == 0) {
+ /* valid EE for simple element START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MeasurementData) ? */
+ errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
+ if(eventCode == 0) {
+ grammarID = 1231;
+ } else {
+ errn = EXI_DEVIANT_SUPPORT_NOT_DEPLOYED; /* or also typecast and nillable */
+ }
+ }
+ break;
+ case 1:
+ done = 1;
+ grammarID = 4;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 1231:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MeasurementData), END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ if (iso2MeasurementDataListType->MeasurementData.arrayLen < iso2MeasurementDataListType_MeasurementData_ARRAY_SIZE) {
+ /* First(xsi:type)StartTag[CHARACTERS[UNSIGNED_INTEGER]] */
+ errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
+ if(errn == 0) {
+ if(eventCode == 0) {
+ errn = decodeUnsignedInteger16(stream, &iso2MeasurementDataListType->MeasurementData.array[iso2MeasurementDataListType->MeasurementData.arrayLen]);
+ iso2MeasurementDataListType->MeasurementData.arrayLen++;
+ } else {
+ /* Second level event (e.g., xsi:type, xsi:nil, ...) */
+ errn = EXI_UNSUPPORTED_EVENT_CODE_CHARACTERISTICS;
+ }
+ }
+ } else {
+ errn = EXI_ERROR_OUT_OF_BOUNDS;
+ }
+ if(errn == 0) {
+ /* valid EE for simple element START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MeasurementData) ? */
+ errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
+ if(eventCode == 0) {
+ grammarID = 1232;
+ } else {
+ errn = EXI_DEVIANT_SUPPORT_NOT_DEPLOYED; /* or also typecast and nillable */
+ }
+ }
+ break;
+ case 1:
+ done = 1;
+ grammarID = 4;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 1232:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MeasurementData), END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ if (iso2MeasurementDataListType->MeasurementData.arrayLen < iso2MeasurementDataListType_MeasurementData_ARRAY_SIZE) {
+ /* First(xsi:type)StartTag[CHARACTERS[UNSIGNED_INTEGER]] */
+ errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
+ if(errn == 0) {
+ if(eventCode == 0) {
+ errn = decodeUnsignedInteger16(stream, &iso2MeasurementDataListType->MeasurementData.array[iso2MeasurementDataListType->MeasurementData.arrayLen]);
+ iso2MeasurementDataListType->MeasurementData.arrayLen++;
+ } else {
+ /* Second level event (e.g., xsi:type, xsi:nil, ...) */
+ errn = EXI_UNSUPPORTED_EVENT_CODE_CHARACTERISTICS;
+ }
+ }
+ } else {
+ errn = EXI_ERROR_OUT_OF_BOUNDS;
+ }
+ if(errn == 0) {
+ /* valid EE for simple element START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MeasurementData) ? */
+ errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
+ if(eventCode == 0) {
+ grammarID = 1233;
+ } else {
+ errn = EXI_DEVIANT_SUPPORT_NOT_DEPLOYED; /* or also typecast and nillable */
+ }
+ }
+ break;
+ case 1:
+ done = 1;
+ grammarID = 4;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 1233:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MeasurementData), END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ if (iso2MeasurementDataListType->MeasurementData.arrayLen < iso2MeasurementDataListType_MeasurementData_ARRAY_SIZE) {
+ /* First(xsi:type)StartTag[CHARACTERS[UNSIGNED_INTEGER]] */
+ errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
+ if(errn == 0) {
+ if(eventCode == 0) {
+ errn = decodeUnsignedInteger16(stream, &iso2MeasurementDataListType->MeasurementData.array[iso2MeasurementDataListType->MeasurementData.arrayLen]);
+ iso2MeasurementDataListType->MeasurementData.arrayLen++;
+ } else {
+ /* Second level event (e.g., xsi:type, xsi:nil, ...) */
+ errn = EXI_UNSUPPORTED_EVENT_CODE_CHARACTERISTICS;
+ }
+ }
+ } else {
+ errn = EXI_ERROR_OUT_OF_BOUNDS;
+ }
+ if(errn == 0) {
+ /* valid EE for simple element START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MeasurementData) ? */
+ errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
+ if(eventCode == 0) {
+ grammarID = 1234;
+ } else {
+ errn = EXI_DEVIANT_SUPPORT_NOT_DEPLOYED; /* or also typecast and nillable */
+ }
+ }
+ break;
+ case 1:
+ done = 1;
+ grammarID = 4;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 1234:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MeasurementData), END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ if (iso2MeasurementDataListType->MeasurementData.arrayLen < iso2MeasurementDataListType_MeasurementData_ARRAY_SIZE) {
+ /* First(xsi:type)StartTag[CHARACTERS[UNSIGNED_INTEGER]] */
+ errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
+ if(errn == 0) {
+ if(eventCode == 0) {
+ errn = decodeUnsignedInteger16(stream, &iso2MeasurementDataListType->MeasurementData.array[iso2MeasurementDataListType->MeasurementData.arrayLen]);
+ iso2MeasurementDataListType->MeasurementData.arrayLen++;
+ } else {
+ /* Second level event (e.g., xsi:type, xsi:nil, ...) */
+ errn = EXI_UNSUPPORTED_EVENT_CODE_CHARACTERISTICS;
+ }
+ }
+ } else {
+ errn = EXI_ERROR_OUT_OF_BOUNDS;
+ }
+ if(errn == 0) {
+ /* valid EE for simple element START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MeasurementData) ? */
+ errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
+ if(eventCode == 0) {
+ grammarID = 1235;
+ } else {
+ errn = EXI_DEVIANT_SUPPORT_NOT_DEPLOYED; /* or also typecast and nillable */
+ }
+ }
+ break;
+ case 1:
+ done = 1;
+ grammarID = 4;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 1235:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MeasurementData), END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ if (iso2MeasurementDataListType->MeasurementData.arrayLen < iso2MeasurementDataListType_MeasurementData_ARRAY_SIZE) {
+ /* First(xsi:type)StartTag[CHARACTERS[UNSIGNED_INTEGER]] */
+ errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
+ if(errn == 0) {
+ if(eventCode == 0) {
+ errn = decodeUnsignedInteger16(stream, &iso2MeasurementDataListType->MeasurementData.array[iso2MeasurementDataListType->MeasurementData.arrayLen]);
+ iso2MeasurementDataListType->MeasurementData.arrayLen++;
+ } else {
+ /* Second level event (e.g., xsi:type, xsi:nil, ...) */
+ errn = EXI_UNSUPPORTED_EVENT_CODE_CHARACTERISTICS;
+ }
+ }
+ } else {
+ errn = EXI_ERROR_OUT_OF_BOUNDS;
+ }
+ if(errn == 0) {
+ /* valid EE for simple element START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MeasurementData) ? */
+ errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
+ if(eventCode == 0) {
+ grammarID = 1236;
+ } else {
+ errn = EXI_DEVIANT_SUPPORT_NOT_DEPLOYED; /* or also typecast and nillable */
+ }
+ }
+ break;
+ case 1:
+ done = 1;
+ grammarID = 4;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 1236:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MeasurementData), END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ if (iso2MeasurementDataListType->MeasurementData.arrayLen < iso2MeasurementDataListType_MeasurementData_ARRAY_SIZE) {
+ /* First(xsi:type)StartTag[CHARACTERS[UNSIGNED_INTEGER]] */
+ errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
+ if(errn == 0) {
+ if(eventCode == 0) {
+ errn = decodeUnsignedInteger16(stream, &iso2MeasurementDataListType->MeasurementData.array[iso2MeasurementDataListType->MeasurementData.arrayLen]);
+ iso2MeasurementDataListType->MeasurementData.arrayLen++;
+ } else {
+ /* Second level event (e.g., xsi:type, xsi:nil, ...) */
+ errn = EXI_UNSUPPORTED_EVENT_CODE_CHARACTERISTICS;
+ }
+ }
+ } else {
+ errn = EXI_ERROR_OUT_OF_BOUNDS;
+ }
+ if(errn == 0) {
+ /* valid EE for simple element START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MeasurementData) ? */
+ errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
+ if(eventCode == 0) {
+ grammarID = 1237;
+ } else {
+ errn = EXI_DEVIANT_SUPPORT_NOT_DEPLOYED; /* or also typecast and nillable */
+ }
+ }
+ break;
+ case 1:
+ done = 1;
+ grammarID = 4;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 1237:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MeasurementData), END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ if (iso2MeasurementDataListType->MeasurementData.arrayLen < iso2MeasurementDataListType_MeasurementData_ARRAY_SIZE) {
+ /* First(xsi:type)StartTag[CHARACTERS[UNSIGNED_INTEGER]] */
+ errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
+ if(errn == 0) {
+ if(eventCode == 0) {
+ errn = decodeUnsignedInteger16(stream, &iso2MeasurementDataListType->MeasurementData.array[iso2MeasurementDataListType->MeasurementData.arrayLen]);
+ iso2MeasurementDataListType->MeasurementData.arrayLen++;
+ } else {
+ /* Second level event (e.g., xsi:type, xsi:nil, ...) */
+ errn = EXI_UNSUPPORTED_EVENT_CODE_CHARACTERISTICS;
+ }
+ }
+ } else {
+ errn = EXI_ERROR_OUT_OF_BOUNDS;
+ }
+ if(errn == 0) {
+ /* valid EE for simple element START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MeasurementData) ? */
+ errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
+ if(eventCode == 0) {
+ grammarID = 1238;
+ } else {
+ errn = EXI_DEVIANT_SUPPORT_NOT_DEPLOYED; /* or also typecast and nillable */
+ }
+ }
+ break;
+ case 1:
+ done = 1;
+ grammarID = 4;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 1238:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MeasurementData), END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ if (iso2MeasurementDataListType->MeasurementData.arrayLen < iso2MeasurementDataListType_MeasurementData_ARRAY_SIZE) {
+ /* First(xsi:type)StartTag[CHARACTERS[UNSIGNED_INTEGER]] */
+ errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
+ if(errn == 0) {
+ if(eventCode == 0) {
+ errn = decodeUnsignedInteger16(stream, &iso2MeasurementDataListType->MeasurementData.array[iso2MeasurementDataListType->MeasurementData.arrayLen]);
+ iso2MeasurementDataListType->MeasurementData.arrayLen++;
+ } else {
+ /* Second level event (e.g., xsi:type, xsi:nil, ...) */
+ errn = EXI_UNSUPPORTED_EVENT_CODE_CHARACTERISTICS;
+ }
+ }
+ } else {
+ errn = EXI_ERROR_OUT_OF_BOUNDS;
+ }
+ if(errn == 0) {
+ /* valid EE for simple element START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MeasurementData) ? */
+ errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
+ if(eventCode == 0) {
+ grammarID = 1239;
+ } else {
+ errn = EXI_DEVIANT_SUPPORT_NOT_DEPLOYED; /* or also typecast and nillable */
+ }
+ }
+ break;
+ case 1:
+ done = 1;
+ grammarID = 4;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 1239:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MeasurementData), END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ if (iso2MeasurementDataListType->MeasurementData.arrayLen < iso2MeasurementDataListType_MeasurementData_ARRAY_SIZE) {
+ /* First(xsi:type)StartTag[CHARACTERS[UNSIGNED_INTEGER]] */
+ errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
+ if(errn == 0) {
+ if(eventCode == 0) {
+ errn = decodeUnsignedInteger16(stream, &iso2MeasurementDataListType->MeasurementData.array[iso2MeasurementDataListType->MeasurementData.arrayLen]);
+ iso2MeasurementDataListType->MeasurementData.arrayLen++;
+ } else {
+ /* Second level event (e.g., xsi:type, xsi:nil, ...) */
+ errn = EXI_UNSUPPORTED_EVENT_CODE_CHARACTERISTICS;
+ }
+ }
+ } else {
+ errn = EXI_ERROR_OUT_OF_BOUNDS;
+ }
+ if(errn == 0) {
+ /* valid EE for simple element START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MeasurementData) ? */
+ errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
+ if(eventCode == 0) {
+ grammarID = 1240;
+ } else {
+ errn = EXI_DEVIANT_SUPPORT_NOT_DEPLOYED; /* or also typecast and nillable */
+ }
+ }
+ break;
+ case 1:
+ done = 1;
+ grammarID = 4;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 1240:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MeasurementData), END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ if (iso2MeasurementDataListType->MeasurementData.arrayLen < iso2MeasurementDataListType_MeasurementData_ARRAY_SIZE) {
+ /* First(xsi:type)StartTag[CHARACTERS[UNSIGNED_INTEGER]] */
+ errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
+ if(errn == 0) {
+ if(eventCode == 0) {
+ errn = decodeUnsignedInteger16(stream, &iso2MeasurementDataListType->MeasurementData.array[iso2MeasurementDataListType->MeasurementData.arrayLen]);
+ iso2MeasurementDataListType->MeasurementData.arrayLen++;
+ } else {
+ /* Second level event (e.g., xsi:type, xsi:nil, ...) */
+ errn = EXI_UNSUPPORTED_EVENT_CODE_CHARACTERISTICS;
+ }
+ }
+ } else {
+ errn = EXI_ERROR_OUT_OF_BOUNDS;
+ }
+ if(errn == 0) {
+ /* valid EE for simple element START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MeasurementData) ? */
+ errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
+ if(eventCode == 0) {
+ grammarID = 1241;
+ } else {
+ errn = EXI_DEVIANT_SUPPORT_NOT_DEPLOYED; /* or also typecast and nillable */
+ }
+ }
+ break;
+ case 1:
+ done = 1;
+ grammarID = 4;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 1241:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MeasurementData), END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ if (iso2MeasurementDataListType->MeasurementData.arrayLen < iso2MeasurementDataListType_MeasurementData_ARRAY_SIZE) {
+ /* First(xsi:type)StartTag[CHARACTERS[UNSIGNED_INTEGER]] */
+ errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
+ if(errn == 0) {
+ if(eventCode == 0) {
+ errn = decodeUnsignedInteger16(stream, &iso2MeasurementDataListType->MeasurementData.array[iso2MeasurementDataListType->MeasurementData.arrayLen]);
+ iso2MeasurementDataListType->MeasurementData.arrayLen++;
+ } else {
+ /* Second level event (e.g., xsi:type, xsi:nil, ...) */
+ errn = EXI_UNSUPPORTED_EVENT_CODE_CHARACTERISTICS;
+ }
+ }
+ } else {
+ errn = EXI_ERROR_OUT_OF_BOUNDS;
+ }
+ if(errn == 0) {
+ /* valid EE for simple element START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MeasurementData) ? */
+ errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
+ if(eventCode == 0) {
+ grammarID = 1242;
+ } else {
+ errn = EXI_DEVIANT_SUPPORT_NOT_DEPLOYED; /* or also typecast and nillable */
+ }
+ }
+ break;
+ case 1:
+ done = 1;
+ grammarID = 4;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 1242:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MeasurementData), END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ if (iso2MeasurementDataListType->MeasurementData.arrayLen < iso2MeasurementDataListType_MeasurementData_ARRAY_SIZE) {
+ /* First(xsi:type)StartTag[CHARACTERS[UNSIGNED_INTEGER]] */
+ errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
+ if(errn == 0) {
+ if(eventCode == 0) {
+ errn = decodeUnsignedInteger16(stream, &iso2MeasurementDataListType->MeasurementData.array[iso2MeasurementDataListType->MeasurementData.arrayLen]);
+ iso2MeasurementDataListType->MeasurementData.arrayLen++;
+ } else {
+ /* Second level event (e.g., xsi:type, xsi:nil, ...) */
+ errn = EXI_UNSUPPORTED_EVENT_CODE_CHARACTERISTICS;
+ }
+ }
+ } else {
+ errn = EXI_ERROR_OUT_OF_BOUNDS;
+ }
+ if(errn == 0) {
+ /* valid EE for simple element START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MeasurementData) ? */
+ errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
+ if(eventCode == 0) {
+ grammarID = 1243;
+ } else {
+ errn = EXI_DEVIANT_SUPPORT_NOT_DEPLOYED; /* or also typecast and nillable */
+ }
+ }
+ break;
+ case 1:
+ done = 1;
+ grammarID = 4;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 1243:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MeasurementData), END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ if (iso2MeasurementDataListType->MeasurementData.arrayLen < iso2MeasurementDataListType_MeasurementData_ARRAY_SIZE) {
+ /* First(xsi:type)StartTag[CHARACTERS[UNSIGNED_INTEGER]] */
+ errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
+ if(errn == 0) {
+ if(eventCode == 0) {
+ errn = decodeUnsignedInteger16(stream, &iso2MeasurementDataListType->MeasurementData.array[iso2MeasurementDataListType->MeasurementData.arrayLen]);
+ iso2MeasurementDataListType->MeasurementData.arrayLen++;
+ } else {
+ /* Second level event (e.g., xsi:type, xsi:nil, ...) */
+ errn = EXI_UNSUPPORTED_EVENT_CODE_CHARACTERISTICS;
+ }
+ }
+ } else {
+ errn = EXI_ERROR_OUT_OF_BOUNDS;
+ }
+ if(errn == 0) {
+ /* valid EE for simple element START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MeasurementData) ? */
+ errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
+ if(eventCode == 0) {
+ grammarID = 1244;
+ } else {
+ errn = EXI_DEVIANT_SUPPORT_NOT_DEPLOYED; /* or also typecast and nillable */
+ }
+ }
+ break;
+ case 1:
+ done = 1;
+ grammarID = 4;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 1244:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MeasurementData), END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ if (iso2MeasurementDataListType->MeasurementData.arrayLen < iso2MeasurementDataListType_MeasurementData_ARRAY_SIZE) {
+ /* First(xsi:type)StartTag[CHARACTERS[UNSIGNED_INTEGER]] */
+ errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
+ if(errn == 0) {
+ if(eventCode == 0) {
+ errn = decodeUnsignedInteger16(stream, &iso2MeasurementDataListType->MeasurementData.array[iso2MeasurementDataListType->MeasurementData.arrayLen]);
+ iso2MeasurementDataListType->MeasurementData.arrayLen++;
+ } else {
+ /* Second level event (e.g., xsi:type, xsi:nil, ...) */
+ errn = EXI_UNSUPPORTED_EVENT_CODE_CHARACTERISTICS;
+ }
+ }
+ } else {
+ errn = EXI_ERROR_OUT_OF_BOUNDS;
+ }
+ if(errn == 0) {
+ /* valid EE for simple element START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MeasurementData) ? */
+ errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
+ if(eventCode == 0) {
+ grammarID = 1245;
+ } else {
+ errn = EXI_DEVIANT_SUPPORT_NOT_DEPLOYED; /* or also typecast and nillable */
+ }
+ }
+ break;
+ case 1:
+ done = 1;
+ grammarID = 4;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 1245:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MeasurementData), END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ if (iso2MeasurementDataListType->MeasurementData.arrayLen < iso2MeasurementDataListType_MeasurementData_ARRAY_SIZE) {
+ /* First(xsi:type)StartTag[CHARACTERS[UNSIGNED_INTEGER]] */
+ errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
+ if(errn == 0) {
+ if(eventCode == 0) {
+ errn = decodeUnsignedInteger16(stream, &iso2MeasurementDataListType->MeasurementData.array[iso2MeasurementDataListType->MeasurementData.arrayLen]);
+ iso2MeasurementDataListType->MeasurementData.arrayLen++;
+ } else {
+ /* Second level event (e.g., xsi:type, xsi:nil, ...) */
+ errn = EXI_UNSUPPORTED_EVENT_CODE_CHARACTERISTICS;
+ }
+ }
+ } else {
+ errn = EXI_ERROR_OUT_OF_BOUNDS;
+ }
+ if(errn == 0) {
+ /* valid EE for simple element START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MeasurementData) ? */
+ errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
+ if(eventCode == 0) {
+ grammarID = 1246;
+ } else {
+ errn = EXI_DEVIANT_SUPPORT_NOT_DEPLOYED; /* or also typecast and nillable */
+ }
+ }
+ break;
+ case 1:
+ done = 1;
+ grammarID = 4;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 1246:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MeasurementData), END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ if (iso2MeasurementDataListType->MeasurementData.arrayLen < iso2MeasurementDataListType_MeasurementData_ARRAY_SIZE) {
+ /* First(xsi:type)StartTag[CHARACTERS[UNSIGNED_INTEGER]] */
+ errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
+ if(errn == 0) {
+ if(eventCode == 0) {
+ errn = decodeUnsignedInteger16(stream, &iso2MeasurementDataListType->MeasurementData.array[iso2MeasurementDataListType->MeasurementData.arrayLen]);
+ iso2MeasurementDataListType->MeasurementData.arrayLen++;
+ } else {
+ /* Second level event (e.g., xsi:type, xsi:nil, ...) */
+ errn = EXI_UNSUPPORTED_EVENT_CODE_CHARACTERISTICS;
+ }
+ }
+ } else {
+ errn = EXI_ERROR_OUT_OF_BOUNDS;
+ }
+ if(errn == 0) {
+ /* valid EE for simple element START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MeasurementData) ? */
+ errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
+ if(eventCode == 0) {
+ grammarID = 1247;
+ } else {
+ errn = EXI_DEVIANT_SUPPORT_NOT_DEPLOYED; /* or also typecast and nillable */
+ }
+ }
+ break;
+ case 1:
+ done = 1;
+ grammarID = 4;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 1247:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MeasurementData), END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ if (iso2MeasurementDataListType->MeasurementData.arrayLen < iso2MeasurementDataListType_MeasurementData_ARRAY_SIZE) {
+ /* First(xsi:type)StartTag[CHARACTERS[UNSIGNED_INTEGER]] */
+ errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
+ if(errn == 0) {
+ if(eventCode == 0) {
+ errn = decodeUnsignedInteger16(stream, &iso2MeasurementDataListType->MeasurementData.array[iso2MeasurementDataListType->MeasurementData.arrayLen]);
+ iso2MeasurementDataListType->MeasurementData.arrayLen++;
+ } else {
+ /* Second level event (e.g., xsi:type, xsi:nil, ...) */
+ errn = EXI_UNSUPPORTED_EVENT_CODE_CHARACTERISTICS;
+ }
+ }
+ } else {
+ errn = EXI_ERROR_OUT_OF_BOUNDS;
+ }
+ if(errn == 0) {
+ /* valid EE for simple element START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MeasurementData) ? */
+ errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
+ if(eventCode == 0) {
+ grammarID = 1248;
+ } else {
+ errn = EXI_DEVIANT_SUPPORT_NOT_DEPLOYED; /* or also typecast and nillable */
+ }
+ }
+ break;
+ case 1:
+ done = 1;
+ grammarID = 4;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 1248:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MeasurementData), END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ if (iso2MeasurementDataListType->MeasurementData.arrayLen < iso2MeasurementDataListType_MeasurementData_ARRAY_SIZE) {
+ /* First(xsi:type)StartTag[CHARACTERS[UNSIGNED_INTEGER]] */
+ errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
+ if(errn == 0) {
+ if(eventCode == 0) {
+ errn = decodeUnsignedInteger16(stream, &iso2MeasurementDataListType->MeasurementData.array[iso2MeasurementDataListType->MeasurementData.arrayLen]);
+ iso2MeasurementDataListType->MeasurementData.arrayLen++;
+ } else {
+ /* Second level event (e.g., xsi:type, xsi:nil, ...) */
+ errn = EXI_UNSUPPORTED_EVENT_CODE_CHARACTERISTICS;
+ }
+ }
+ } else {
+ errn = EXI_ERROR_OUT_OF_BOUNDS;
+ }
+ if(errn == 0) {
+ /* valid EE for simple element START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MeasurementData) ? */
+ errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
+ if(eventCode == 0) {
+ grammarID = 1249;
+ } else {
+ errn = EXI_DEVIANT_SUPPORT_NOT_DEPLOYED; /* or also typecast and nillable */
+ }
+ }
+ break;
+ case 1:
+ done = 1;
+ grammarID = 4;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 1249:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MeasurementData), END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ if (iso2MeasurementDataListType->MeasurementData.arrayLen < iso2MeasurementDataListType_MeasurementData_ARRAY_SIZE) {
+ /* First(xsi:type)StartTag[CHARACTERS[UNSIGNED_INTEGER]] */
+ errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
+ if(errn == 0) {
+ if(eventCode == 0) {
+ errn = decodeUnsignedInteger16(stream, &iso2MeasurementDataListType->MeasurementData.array[iso2MeasurementDataListType->MeasurementData.arrayLen]);
+ iso2MeasurementDataListType->MeasurementData.arrayLen++;
+ } else {
+ /* Second level event (e.g., xsi:type, xsi:nil, ...) */
+ errn = EXI_UNSUPPORTED_EVENT_CODE_CHARACTERISTICS;
+ }
+ }
+ } else {
+ errn = EXI_ERROR_OUT_OF_BOUNDS;
+ }
+ if(errn == 0) {
+ /* valid EE for simple element START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MeasurementData) ? */
+ errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
+ if(eventCode == 0) {
+ grammarID = 1250;
+ } else {
+ errn = EXI_DEVIANT_SUPPORT_NOT_DEPLOYED; /* or also typecast and nillable */
+ }
+ }
+ break;
+ case 1:
+ done = 1;
+ grammarID = 4;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 1250:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MeasurementData), END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ if (iso2MeasurementDataListType->MeasurementData.arrayLen < iso2MeasurementDataListType_MeasurementData_ARRAY_SIZE) {
+ /* First(xsi:type)StartTag[CHARACTERS[UNSIGNED_INTEGER]] */
+ errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
+ if(errn == 0) {
+ if(eventCode == 0) {
+ errn = decodeUnsignedInteger16(stream, &iso2MeasurementDataListType->MeasurementData.array[iso2MeasurementDataListType->MeasurementData.arrayLen]);
+ iso2MeasurementDataListType->MeasurementData.arrayLen++;
+ } else {
+ /* Second level event (e.g., xsi:type, xsi:nil, ...) */
+ errn = EXI_UNSUPPORTED_EVENT_CODE_CHARACTERISTICS;
+ }
+ }
+ } else {
+ errn = EXI_ERROR_OUT_OF_BOUNDS;
+ }
+ if(errn == 0) {
+ /* valid EE for simple element START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MeasurementData) ? */
+ errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
+ if(eventCode == 0) {
+ grammarID = 1251;
+ } else {
+ errn = EXI_DEVIANT_SUPPORT_NOT_DEPLOYED; /* or also typecast and nillable */
+ }
+ }
+ break;
+ case 1:
+ done = 1;
+ grammarID = 4;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 1251:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MeasurementData), END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ if (iso2MeasurementDataListType->MeasurementData.arrayLen < iso2MeasurementDataListType_MeasurementData_ARRAY_SIZE) {
+ /* First(xsi:type)StartTag[CHARACTERS[UNSIGNED_INTEGER]] */
+ errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
+ if(errn == 0) {
+ if(eventCode == 0) {
+ errn = decodeUnsignedInteger16(stream, &iso2MeasurementDataListType->MeasurementData.array[iso2MeasurementDataListType->MeasurementData.arrayLen]);
+ iso2MeasurementDataListType->MeasurementData.arrayLen++;
+ } else {
+ /* Second level event (e.g., xsi:type, xsi:nil, ...) */
+ errn = EXI_UNSUPPORTED_EVENT_CODE_CHARACTERISTICS;
+ }
+ }
+ } else {
+ errn = EXI_ERROR_OUT_OF_BOUNDS;
+ }
+ if(errn == 0) {
+ /* valid EE for simple element START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MeasurementData) ? */
+ errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
+ if(eventCode == 0) {
+ grammarID = 1252;
+ } else {
+ errn = EXI_DEVIANT_SUPPORT_NOT_DEPLOYED; /* or also typecast and nillable */
+ }
+ }
+ break;
+ case 1:
+ done = 1;
+ grammarID = 4;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 1252:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MeasurementData), END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ if (iso2MeasurementDataListType->MeasurementData.arrayLen < iso2MeasurementDataListType_MeasurementData_ARRAY_SIZE) {
+ /* First(xsi:type)StartTag[CHARACTERS[UNSIGNED_INTEGER]] */
+ errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
+ if(errn == 0) {
+ if(eventCode == 0) {
+ errn = decodeUnsignedInteger16(stream, &iso2MeasurementDataListType->MeasurementData.array[iso2MeasurementDataListType->MeasurementData.arrayLen]);
+ iso2MeasurementDataListType->MeasurementData.arrayLen++;
+ } else {
+ /* Second level event (e.g., xsi:type, xsi:nil, ...) */
+ errn = EXI_UNSUPPORTED_EVENT_CODE_CHARACTERISTICS;
+ }
+ }
+ } else {
+ errn = EXI_ERROR_OUT_OF_BOUNDS;
+ }
+ if(errn == 0) {
+ /* valid EE for simple element START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MeasurementData) ? */
+ errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
+ if(eventCode == 0) {
+ grammarID = 1253;
+ } else {
+ errn = EXI_DEVIANT_SUPPORT_NOT_DEPLOYED; /* or also typecast and nillable */
+ }
+ }
+ break;
+ case 1:
+ done = 1;
+ grammarID = 4;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 1253:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MeasurementData), END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ if (iso2MeasurementDataListType->MeasurementData.arrayLen < iso2MeasurementDataListType_MeasurementData_ARRAY_SIZE) {
+ /* First(xsi:type)StartTag[CHARACTERS[UNSIGNED_INTEGER]] */
+ errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
+ if(errn == 0) {
+ if(eventCode == 0) {
+ errn = decodeUnsignedInteger16(stream, &iso2MeasurementDataListType->MeasurementData.array[iso2MeasurementDataListType->MeasurementData.arrayLen]);
+ iso2MeasurementDataListType->MeasurementData.arrayLen++;
+ } else {
+ /* Second level event (e.g., xsi:type, xsi:nil, ...) */
+ errn = EXI_UNSUPPORTED_EVENT_CODE_CHARACTERISTICS;
+ }
+ }
+ } else {
+ errn = EXI_ERROR_OUT_OF_BOUNDS;
+ }
+ if(errn == 0) {
+ /* valid EE for simple element START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MeasurementData) ? */
+ errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
+ if(eventCode == 0) {
+ grammarID = 1254;
+ } else {
+ errn = EXI_DEVIANT_SUPPORT_NOT_DEPLOYED; /* or also typecast and nillable */
+ }
+ }
+ break;
+ case 1:
+ done = 1;
+ grammarID = 4;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 1254:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MeasurementData), END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ if (iso2MeasurementDataListType->MeasurementData.arrayLen < iso2MeasurementDataListType_MeasurementData_ARRAY_SIZE) {
+ /* First(xsi:type)StartTag[CHARACTERS[UNSIGNED_INTEGER]] */
+ errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
+ if(errn == 0) {
+ if(eventCode == 0) {
+ errn = decodeUnsignedInteger16(stream, &iso2MeasurementDataListType->MeasurementData.array[iso2MeasurementDataListType->MeasurementData.arrayLen]);
+ iso2MeasurementDataListType->MeasurementData.arrayLen++;
+ } else {
+ /* Second level event (e.g., xsi:type, xsi:nil, ...) */
+ errn = EXI_UNSUPPORTED_EVENT_CODE_CHARACTERISTICS;
+ }
+ }
+ } else {
+ errn = EXI_ERROR_OUT_OF_BOUNDS;
+ }
+ if(errn == 0) {
+ /* valid EE for simple element START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MeasurementData) ? */
+ errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
+ if(eventCode == 0) {
+ grammarID = 1255;
+ } else {
+ errn = EXI_DEVIANT_SUPPORT_NOT_DEPLOYED; /* or also typecast and nillable */
+ }
+ }
+ break;
+ case 1:
+ done = 1;
+ grammarID = 4;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 1255:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MeasurementData), END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ if (iso2MeasurementDataListType->MeasurementData.arrayLen < iso2MeasurementDataListType_MeasurementData_ARRAY_SIZE) {
+ /* First(xsi:type)StartTag[CHARACTERS[UNSIGNED_INTEGER]] */
+ errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
+ if(errn == 0) {
+ if(eventCode == 0) {
+ errn = decodeUnsignedInteger16(stream, &iso2MeasurementDataListType->MeasurementData.array[iso2MeasurementDataListType->MeasurementData.arrayLen]);
+ iso2MeasurementDataListType->MeasurementData.arrayLen++;
+ } else {
+ /* Second level event (e.g., xsi:type, xsi:nil, ...) */
+ errn = EXI_UNSUPPORTED_EVENT_CODE_CHARACTERISTICS;
+ }
+ }
+ } else {
+ errn = EXI_ERROR_OUT_OF_BOUNDS;
+ }
+ if(errn == 0) {
+ /* valid EE for simple element START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MeasurementData) ? */
+ errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
+ if(eventCode == 0) {
+ grammarID = 1256;
+ } else {
+ errn = EXI_DEVIANT_SUPPORT_NOT_DEPLOYED; /* or also typecast and nillable */
+ }
+ }
+ break;
+ case 1:
+ done = 1;
+ grammarID = 4;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 1256:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MeasurementData), END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ if (iso2MeasurementDataListType->MeasurementData.arrayLen < iso2MeasurementDataListType_MeasurementData_ARRAY_SIZE) {
+ /* First(xsi:type)StartTag[CHARACTERS[UNSIGNED_INTEGER]] */
+ errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
+ if(errn == 0) {
+ if(eventCode == 0) {
+ errn = decodeUnsignedInteger16(stream, &iso2MeasurementDataListType->MeasurementData.array[iso2MeasurementDataListType->MeasurementData.arrayLen]);
+ iso2MeasurementDataListType->MeasurementData.arrayLen++;
+ } else {
+ /* Second level event (e.g., xsi:type, xsi:nil, ...) */
+ errn = EXI_UNSUPPORTED_EVENT_CODE_CHARACTERISTICS;
+ }
+ }
+ } else {
+ errn = EXI_ERROR_OUT_OF_BOUNDS;
+ }
+ if(errn == 0) {
+ /* valid EE for simple element START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MeasurementData) ? */
+ errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
+ if(eventCode == 0) {
+ grammarID = 1257;
+ } else {
+ errn = EXI_DEVIANT_SUPPORT_NOT_DEPLOYED; /* or also typecast and nillable */
+ }
+ }
+ break;
+ case 1:
+ done = 1;
+ grammarID = 4;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 1257:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MeasurementData), END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ if (iso2MeasurementDataListType->MeasurementData.arrayLen < iso2MeasurementDataListType_MeasurementData_ARRAY_SIZE) {
+ /* First(xsi:type)StartTag[CHARACTERS[UNSIGNED_INTEGER]] */
+ errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
+ if(errn == 0) {
+ if(eventCode == 0) {
+ errn = decodeUnsignedInteger16(stream, &iso2MeasurementDataListType->MeasurementData.array[iso2MeasurementDataListType->MeasurementData.arrayLen]);
+ iso2MeasurementDataListType->MeasurementData.arrayLen++;
+ } else {
+ /* Second level event (e.g., xsi:type, xsi:nil, ...) */
+ errn = EXI_UNSUPPORTED_EVENT_CODE_CHARACTERISTICS;
+ }
+ }
+ } else {
+ errn = EXI_ERROR_OUT_OF_BOUNDS;
+ }
+ if(errn == 0) {
+ /* valid EE for simple element START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MeasurementData) ? */
+ errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
+ if(eventCode == 0) {
+ grammarID = 1258;
+ } else {
+ errn = EXI_DEVIANT_SUPPORT_NOT_DEPLOYED; /* or also typecast and nillable */
+ }
+ }
+ break;
+ case 1:
+ done = 1;
+ grammarID = 4;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 1258:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MeasurementData), END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ if (iso2MeasurementDataListType->MeasurementData.arrayLen < iso2MeasurementDataListType_MeasurementData_ARRAY_SIZE) {
+ /* First(xsi:type)StartTag[CHARACTERS[UNSIGNED_INTEGER]] */
+ errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
+ if(errn == 0) {
+ if(eventCode == 0) {
+ errn = decodeUnsignedInteger16(stream, &iso2MeasurementDataListType->MeasurementData.array[iso2MeasurementDataListType->MeasurementData.arrayLen]);
+ iso2MeasurementDataListType->MeasurementData.arrayLen++;
+ } else {
+ /* Second level event (e.g., xsi:type, xsi:nil, ...) */
+ errn = EXI_UNSUPPORTED_EVENT_CODE_CHARACTERISTICS;
+ }
+ }
+ } else {
+ errn = EXI_ERROR_OUT_OF_BOUNDS;
+ }
+ if(errn == 0) {
+ /* valid EE for simple element START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MeasurementData) ? */
+ errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
+ if(eventCode == 0) {
+ grammarID = 1259;
+ } else {
+ errn = EXI_DEVIANT_SUPPORT_NOT_DEPLOYED; /* or also typecast and nillable */
+ }
+ }
+ break;
+ case 1:
+ done = 1;
+ grammarID = 4;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 1259:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MeasurementData), END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ if (iso2MeasurementDataListType->MeasurementData.arrayLen < iso2MeasurementDataListType_MeasurementData_ARRAY_SIZE) {
+ /* First(xsi:type)StartTag[CHARACTERS[UNSIGNED_INTEGER]] */
+ errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
+ if(errn == 0) {
+ if(eventCode == 0) {
+ errn = decodeUnsignedInteger16(stream, &iso2MeasurementDataListType->MeasurementData.array[iso2MeasurementDataListType->MeasurementData.arrayLen]);
+ iso2MeasurementDataListType->MeasurementData.arrayLen++;
+ } else {
+ /* Second level event (e.g., xsi:type, xsi:nil, ...) */
+ errn = EXI_UNSUPPORTED_EVENT_CODE_CHARACTERISTICS;
+ }
+ }
+ } else {
+ errn = EXI_ERROR_OUT_OF_BOUNDS;
+ }
+ if(errn == 0) {
+ /* valid EE for simple element START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MeasurementData) ? */
+ errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
+ if(eventCode == 0) {
+ grammarID = 1260;
+ } else {
+ errn = EXI_DEVIANT_SUPPORT_NOT_DEPLOYED; /* or also typecast and nillable */
+ }
+ }
+ break;
+ case 1:
+ done = 1;
+ grammarID = 4;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 1260:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MeasurementData), END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ if (iso2MeasurementDataListType->MeasurementData.arrayLen < iso2MeasurementDataListType_MeasurementData_ARRAY_SIZE) {
+ /* First(xsi:type)StartTag[CHARACTERS[UNSIGNED_INTEGER]] */
+ errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
+ if(errn == 0) {
+ if(eventCode == 0) {
+ errn = decodeUnsignedInteger16(stream, &iso2MeasurementDataListType->MeasurementData.array[iso2MeasurementDataListType->MeasurementData.arrayLen]);
+ iso2MeasurementDataListType->MeasurementData.arrayLen++;
+ } else {
+ /* Second level event (e.g., xsi:type, xsi:nil, ...) */
+ errn = EXI_UNSUPPORTED_EVENT_CODE_CHARACTERISTICS;
+ }
+ }
+ } else {
+ errn = EXI_ERROR_OUT_OF_BOUNDS;
+ }
+ if(errn == 0) {
+ /* valid EE for simple element START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MeasurementData) ? */
+ errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
+ if(eventCode == 0) {
+ grammarID = 1261;
+ } else {
+ errn = EXI_DEVIANT_SUPPORT_NOT_DEPLOYED; /* or also typecast and nillable */
+ }
+ }
+ break;
+ case 1:
+ done = 1;
+ grammarID = 4;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 1261:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MeasurementData), END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ if (iso2MeasurementDataListType->MeasurementData.arrayLen < iso2MeasurementDataListType_MeasurementData_ARRAY_SIZE) {
+ /* First(xsi:type)StartTag[CHARACTERS[UNSIGNED_INTEGER]] */
+ errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
+ if(errn == 0) {
+ if(eventCode == 0) {
+ errn = decodeUnsignedInteger16(stream, &iso2MeasurementDataListType->MeasurementData.array[iso2MeasurementDataListType->MeasurementData.arrayLen]);
+ iso2MeasurementDataListType->MeasurementData.arrayLen++;
+ } else {
+ /* Second level event (e.g., xsi:type, xsi:nil, ...) */
+ errn = EXI_UNSUPPORTED_EVENT_CODE_CHARACTERISTICS;
+ }
+ }
+ } else {
+ errn = EXI_ERROR_OUT_OF_BOUNDS;
+ }
+ if(errn == 0) {
+ /* valid EE for simple element START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MeasurementData) ? */
+ errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
+ if(eventCode == 0) {
+ grammarID = 1262;
+ } else {
+ errn = EXI_DEVIANT_SUPPORT_NOT_DEPLOYED; /* or also typecast and nillable */
+ }
+ }
+ break;
+ case 1:
+ done = 1;
+ grammarID = 4;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 1262:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MeasurementData), END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ if (iso2MeasurementDataListType->MeasurementData.arrayLen < iso2MeasurementDataListType_MeasurementData_ARRAY_SIZE) {
+ /* First(xsi:type)StartTag[CHARACTERS[UNSIGNED_INTEGER]] */
+ errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
+ if(errn == 0) {
+ if(eventCode == 0) {
+ errn = decodeUnsignedInteger16(stream, &iso2MeasurementDataListType->MeasurementData.array[iso2MeasurementDataListType->MeasurementData.arrayLen]);
+ iso2MeasurementDataListType->MeasurementData.arrayLen++;
+ } else {
+ /* Second level event (e.g., xsi:type, xsi:nil, ...) */
+ errn = EXI_UNSUPPORTED_EVENT_CODE_CHARACTERISTICS;
+ }
+ }
+ } else {
+ errn = EXI_ERROR_OUT_OF_BOUNDS;
+ }
+ if(errn == 0) {
+ /* valid EE for simple element START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MeasurementData) ? */
+ errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
+ if(eventCode == 0) {
+ grammarID = 1263;
+ } else {
+ errn = EXI_DEVIANT_SUPPORT_NOT_DEPLOYED; /* or also typecast and nillable */
+ }
+ }
+ break;
+ case 1:
+ done = 1;
+ grammarID = 4;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 1263:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MeasurementData), END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ if (iso2MeasurementDataListType->MeasurementData.arrayLen < iso2MeasurementDataListType_MeasurementData_ARRAY_SIZE) {
+ /* First(xsi:type)StartTag[CHARACTERS[UNSIGNED_INTEGER]] */
+ errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
+ if(errn == 0) {
+ if(eventCode == 0) {
+ errn = decodeUnsignedInteger16(stream, &iso2MeasurementDataListType->MeasurementData.array[iso2MeasurementDataListType->MeasurementData.arrayLen]);
+ iso2MeasurementDataListType->MeasurementData.arrayLen++;
+ } else {
+ /* Second level event (e.g., xsi:type, xsi:nil, ...) */
+ errn = EXI_UNSUPPORTED_EVENT_CODE_CHARACTERISTICS;
+ }
+ }
+ } else {
+ errn = EXI_ERROR_OUT_OF_BOUNDS;
+ }
+ if(errn == 0) {
+ /* valid EE for simple element START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MeasurementData) ? */
+ errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
+ if(eventCode == 0) {
+ grammarID = 1264;
+ } else {
+ errn = EXI_DEVIANT_SUPPORT_NOT_DEPLOYED; /* or also typecast and nillable */
+ }
+ }
+ break;
+ case 1:
+ done = 1;
+ grammarID = 4;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 1264:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MeasurementData), END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ if (iso2MeasurementDataListType->MeasurementData.arrayLen < iso2MeasurementDataListType_MeasurementData_ARRAY_SIZE) {
+ /* First(xsi:type)StartTag[CHARACTERS[UNSIGNED_INTEGER]] */
+ errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
+ if(errn == 0) {
+ if(eventCode == 0) {
+ errn = decodeUnsignedInteger16(stream, &iso2MeasurementDataListType->MeasurementData.array[iso2MeasurementDataListType->MeasurementData.arrayLen]);
+ iso2MeasurementDataListType->MeasurementData.arrayLen++;
+ } else {
+ /* Second level event (e.g., xsi:type, xsi:nil, ...) */
+ errn = EXI_UNSUPPORTED_EVENT_CODE_CHARACTERISTICS;
+ }
+ }
+ } else {
+ errn = EXI_ERROR_OUT_OF_BOUNDS;
+ }
+ if(errn == 0) {
+ /* valid EE for simple element START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MeasurementData) ? */
+ errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
+ if(eventCode == 0) {
+ grammarID = 1265;
+ } else {
+ errn = EXI_DEVIANT_SUPPORT_NOT_DEPLOYED; /* or also typecast and nillable */
+ }
+ }
+ break;
+ case 1:
+ done = 1;
+ grammarID = 4;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 1265:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MeasurementData), END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ if (iso2MeasurementDataListType->MeasurementData.arrayLen < iso2MeasurementDataListType_MeasurementData_ARRAY_SIZE) {
+ /* First(xsi:type)StartTag[CHARACTERS[UNSIGNED_INTEGER]] */
+ errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
+ if(errn == 0) {
+ if(eventCode == 0) {
+ errn = decodeUnsignedInteger16(stream, &iso2MeasurementDataListType->MeasurementData.array[iso2MeasurementDataListType->MeasurementData.arrayLen]);
+ iso2MeasurementDataListType->MeasurementData.arrayLen++;
+ } else {
+ /* Second level event (e.g., xsi:type, xsi:nil, ...) */
+ errn = EXI_UNSUPPORTED_EVENT_CODE_CHARACTERISTICS;
+ }
+ }
+ } else {
+ errn = EXI_ERROR_OUT_OF_BOUNDS;
+ }
+ if(errn == 0) {
+ /* valid EE for simple element START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MeasurementData) ? */
+ errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
+ if(eventCode == 0) {
+ grammarID = 1266;
+ } else {
+ errn = EXI_DEVIANT_SUPPORT_NOT_DEPLOYED; /* or also typecast and nillable */
+ }
+ }
+ break;
+ case 1:
+ done = 1;
+ grammarID = 4;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 1266:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MeasurementData), END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ if (iso2MeasurementDataListType->MeasurementData.arrayLen < iso2MeasurementDataListType_MeasurementData_ARRAY_SIZE) {
+ /* First(xsi:type)StartTag[CHARACTERS[UNSIGNED_INTEGER]] */
+ errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
+ if(errn == 0) {
+ if(eventCode == 0) {
+ errn = decodeUnsignedInteger16(stream, &iso2MeasurementDataListType->MeasurementData.array[iso2MeasurementDataListType->MeasurementData.arrayLen]);
+ iso2MeasurementDataListType->MeasurementData.arrayLen++;
+ } else {
+ /* Second level event (e.g., xsi:type, xsi:nil, ...) */
+ errn = EXI_UNSUPPORTED_EVENT_CODE_CHARACTERISTICS;
+ }
+ }
+ } else {
+ errn = EXI_ERROR_OUT_OF_BOUNDS;
+ }
+ if(errn == 0) {
+ /* valid EE for simple element START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MeasurementData) ? */
+ errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
+ if(eventCode == 0) {
+ grammarID = 1267;
+ } else {
+ errn = EXI_DEVIANT_SUPPORT_NOT_DEPLOYED; /* or also typecast and nillable */
+ }
+ }
+ break;
+ case 1:
+ done = 1;
+ grammarID = 4;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 1267:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MeasurementData), END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ if (iso2MeasurementDataListType->MeasurementData.arrayLen < iso2MeasurementDataListType_MeasurementData_ARRAY_SIZE) {
+ /* First(xsi:type)StartTag[CHARACTERS[UNSIGNED_INTEGER]] */
+ errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
+ if(errn == 0) {
+ if(eventCode == 0) {
+ errn = decodeUnsignedInteger16(stream, &iso2MeasurementDataListType->MeasurementData.array[iso2MeasurementDataListType->MeasurementData.arrayLen]);
+ iso2MeasurementDataListType->MeasurementData.arrayLen++;
+ } else {
+ /* Second level event (e.g., xsi:type, xsi:nil, ...) */
+ errn = EXI_UNSUPPORTED_EVENT_CODE_CHARACTERISTICS;
+ }
+ }
+ } else {
+ errn = EXI_ERROR_OUT_OF_BOUNDS;
+ }
+ if(errn == 0) {
+ /* valid EE for simple element START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MeasurementData) ? */
+ errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
+ if(eventCode == 0) {
+ grammarID = 1268;
+ } else {
+ errn = EXI_DEVIANT_SUPPORT_NOT_DEPLOYED; /* or also typecast and nillable */
+ }
+ }
+ break;
+ case 1:
+ done = 1;
+ grammarID = 4;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 1268:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MeasurementData), END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ if (iso2MeasurementDataListType->MeasurementData.arrayLen < iso2MeasurementDataListType_MeasurementData_ARRAY_SIZE) {
+ /* First(xsi:type)StartTag[CHARACTERS[UNSIGNED_INTEGER]] */
+ errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
+ if(errn == 0) {
+ if(eventCode == 0) {
+ errn = decodeUnsignedInteger16(stream, &iso2MeasurementDataListType->MeasurementData.array[iso2MeasurementDataListType->MeasurementData.arrayLen]);
+ iso2MeasurementDataListType->MeasurementData.arrayLen++;
+ } else {
+ /* Second level event (e.g., xsi:type, xsi:nil, ...) */
+ errn = EXI_UNSUPPORTED_EVENT_CODE_CHARACTERISTICS;
+ }
+ }
+ } else {
+ errn = EXI_ERROR_OUT_OF_BOUNDS;
+ }
+ if(errn == 0) {
+ /* valid EE for simple element START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MeasurementData) ? */
+ errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
+ if(eventCode == 0) {
+ grammarID = 1269;
+ } else {
+ errn = EXI_DEVIANT_SUPPORT_NOT_DEPLOYED; /* or also typecast and nillable */
+ }
+ }
+ break;
+ case 1:
+ done = 1;
+ grammarID = 4;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 1269:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MeasurementData), END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ if (iso2MeasurementDataListType->MeasurementData.arrayLen < iso2MeasurementDataListType_MeasurementData_ARRAY_SIZE) {
+ /* First(xsi:type)StartTag[CHARACTERS[UNSIGNED_INTEGER]] */
+ errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
+ if(errn == 0) {
+ if(eventCode == 0) {
+ errn = decodeUnsignedInteger16(stream, &iso2MeasurementDataListType->MeasurementData.array[iso2MeasurementDataListType->MeasurementData.arrayLen]);
+ iso2MeasurementDataListType->MeasurementData.arrayLen++;
+ } else {
+ /* Second level event (e.g., xsi:type, xsi:nil, ...) */
+ errn = EXI_UNSUPPORTED_EVENT_CODE_CHARACTERISTICS;
+ }
+ }
+ } else {
+ errn = EXI_ERROR_OUT_OF_BOUNDS;
+ }
+ if(errn == 0) {
+ /* valid EE for simple element START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MeasurementData) ? */
+ errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
+ if(eventCode == 0) {
+ grammarID = 1270;
+ } else {
+ errn = EXI_DEVIANT_SUPPORT_NOT_DEPLOYED; /* or also typecast and nillable */
+ }
+ }
+ break;
+ case 1:
+ done = 1;
+ grammarID = 4;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 1270:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MeasurementData), END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ if (iso2MeasurementDataListType->MeasurementData.arrayLen < iso2MeasurementDataListType_MeasurementData_ARRAY_SIZE) {
+ /* First(xsi:type)StartTag[CHARACTERS[UNSIGNED_INTEGER]] */
+ errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
+ if(errn == 0) {
+ if(eventCode == 0) {
+ errn = decodeUnsignedInteger16(stream, &iso2MeasurementDataListType->MeasurementData.array[iso2MeasurementDataListType->MeasurementData.arrayLen]);
+ iso2MeasurementDataListType->MeasurementData.arrayLen++;
+ } else {
+ /* Second level event (e.g., xsi:type, xsi:nil, ...) */
+ errn = EXI_UNSUPPORTED_EVENT_CODE_CHARACTERISTICS;
+ }
+ }
+ } else {
+ errn = EXI_ERROR_OUT_OF_BOUNDS;
+ }
+ if(errn == 0) {
+ /* valid EE for simple element START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MeasurementData) ? */
+ errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
+ if(eventCode == 0) {
+ grammarID = 1271;
+ } else {
+ errn = EXI_DEVIANT_SUPPORT_NOT_DEPLOYED; /* or also typecast and nillable */
+ }
+ }
+ break;
+ case 1:
+ done = 1;
+ grammarID = 4;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 1271:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MeasurementData), END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ if (iso2MeasurementDataListType->MeasurementData.arrayLen < iso2MeasurementDataListType_MeasurementData_ARRAY_SIZE) {
+ /* First(xsi:type)StartTag[CHARACTERS[UNSIGNED_INTEGER]] */
+ errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
+ if(errn == 0) {
+ if(eventCode == 0) {
+ errn = decodeUnsignedInteger16(stream, &iso2MeasurementDataListType->MeasurementData.array[iso2MeasurementDataListType->MeasurementData.arrayLen]);
+ iso2MeasurementDataListType->MeasurementData.arrayLen++;
+ } else {
+ /* Second level event (e.g., xsi:type, xsi:nil, ...) */
+ errn = EXI_UNSUPPORTED_EVENT_CODE_CHARACTERISTICS;
+ }
+ }
+ } else {
+ errn = EXI_ERROR_OUT_OF_BOUNDS;
+ }
+ if(errn == 0) {
+ /* valid EE for simple element START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MeasurementData) ? */
+ errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
+ if(eventCode == 0) {
+ grammarID = 1272;
+ } else {
+ errn = EXI_DEVIANT_SUPPORT_NOT_DEPLOYED; /* or also typecast and nillable */
+ }
+ }
+ break;
+ case 1:
+ done = 1;
+ grammarID = 4;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 1272:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MeasurementData), END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ if (iso2MeasurementDataListType->MeasurementData.arrayLen < iso2MeasurementDataListType_MeasurementData_ARRAY_SIZE) {
+ /* First(xsi:type)StartTag[CHARACTERS[UNSIGNED_INTEGER]] */
+ errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
+ if(errn == 0) {
+ if(eventCode == 0) {
+ errn = decodeUnsignedInteger16(stream, &iso2MeasurementDataListType->MeasurementData.array[iso2MeasurementDataListType->MeasurementData.arrayLen]);
+ iso2MeasurementDataListType->MeasurementData.arrayLen++;
+ } else {
+ /* Second level event (e.g., xsi:type, xsi:nil, ...) */
+ errn = EXI_UNSUPPORTED_EVENT_CODE_CHARACTERISTICS;
+ }
+ }
+ } else {
+ errn = EXI_ERROR_OUT_OF_BOUNDS;
+ }
+ if(errn == 0) {
+ /* valid EE for simple element START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MeasurementData) ? */
+ errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
+ if(eventCode == 0) {
+ grammarID = 1273;
+ } else {
+ errn = EXI_DEVIANT_SUPPORT_NOT_DEPLOYED; /* or also typecast and nillable */
+ }
+ }
+ break;
+ case 1:
+ done = 1;
+ grammarID = 4;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 1273:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MeasurementData), END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ if (iso2MeasurementDataListType->MeasurementData.arrayLen < iso2MeasurementDataListType_MeasurementData_ARRAY_SIZE) {
+ /* First(xsi:type)StartTag[CHARACTERS[UNSIGNED_INTEGER]] */
+ errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
+ if(errn == 0) {
+ if(eventCode == 0) {
+ errn = decodeUnsignedInteger16(stream, &iso2MeasurementDataListType->MeasurementData.array[iso2MeasurementDataListType->MeasurementData.arrayLen]);
+ iso2MeasurementDataListType->MeasurementData.arrayLen++;
+ } else {
+ /* Second level event (e.g., xsi:type, xsi:nil, ...) */
+ errn = EXI_UNSUPPORTED_EVENT_CODE_CHARACTERISTICS;
+ }
+ }
+ } else {
+ errn = EXI_ERROR_OUT_OF_BOUNDS;
+ }
+ if(errn == 0) {
+ /* valid EE for simple element START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MeasurementData) ? */
+ errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
+ if(eventCode == 0) {
+ grammarID = 1274;
+ } else {
+ errn = EXI_DEVIANT_SUPPORT_NOT_DEPLOYED; /* or also typecast and nillable */
+ }
+ }
+ break;
+ case 1:
+ done = 1;
+ grammarID = 4;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 1274:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MeasurementData), END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ if (iso2MeasurementDataListType->MeasurementData.arrayLen < iso2MeasurementDataListType_MeasurementData_ARRAY_SIZE) {
+ /* First(xsi:type)StartTag[CHARACTERS[UNSIGNED_INTEGER]] */
+ errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
+ if(errn == 0) {
+ if(eventCode == 0) {
+ errn = decodeUnsignedInteger16(stream, &iso2MeasurementDataListType->MeasurementData.array[iso2MeasurementDataListType->MeasurementData.arrayLen]);
+ iso2MeasurementDataListType->MeasurementData.arrayLen++;
+ } else {
+ /* Second level event (e.g., xsi:type, xsi:nil, ...) */
+ errn = EXI_UNSUPPORTED_EVENT_CODE_CHARACTERISTICS;
+ }
+ }
+ } else {
+ errn = EXI_ERROR_OUT_OF_BOUNDS;
+ }
+ if(errn == 0) {
+ /* valid EE for simple element START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MeasurementData) ? */
+ errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
+ if(eventCode == 0) {
+ grammarID = 1275;
+ } else {
+ errn = EXI_DEVIANT_SUPPORT_NOT_DEPLOYED; /* or also typecast and nillable */
+ }
+ }
+ break;
+ case 1:
+ done = 1;
+ grammarID = 4;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 1275:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MeasurementData), END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ if (iso2MeasurementDataListType->MeasurementData.arrayLen < iso2MeasurementDataListType_MeasurementData_ARRAY_SIZE) {
+ /* First(xsi:type)StartTag[CHARACTERS[UNSIGNED_INTEGER]] */
+ errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
+ if(errn == 0) {
+ if(eventCode == 0) {
+ errn = decodeUnsignedInteger16(stream, &iso2MeasurementDataListType->MeasurementData.array[iso2MeasurementDataListType->MeasurementData.arrayLen]);
+ iso2MeasurementDataListType->MeasurementData.arrayLen++;
+ } else {
+ /* Second level event (e.g., xsi:type, xsi:nil, ...) */
+ errn = EXI_UNSUPPORTED_EVENT_CODE_CHARACTERISTICS;
+ }
+ }
+ } else {
+ errn = EXI_ERROR_OUT_OF_BOUNDS;
+ }
+ if(errn == 0) {
+ /* valid EE for simple element START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MeasurementData) ? */
+ errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
+ if(eventCode == 0) {
+ grammarID = 1276;
+ } else {
+ errn = EXI_DEVIANT_SUPPORT_NOT_DEPLOYED; /* or also typecast and nillable */
+ }
+ }
+ break;
+ case 1:
+ done = 1;
+ grammarID = 4;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 1276:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MeasurementData), END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ if (iso2MeasurementDataListType->MeasurementData.arrayLen < iso2MeasurementDataListType_MeasurementData_ARRAY_SIZE) {
+ /* First(xsi:type)StartTag[CHARACTERS[UNSIGNED_INTEGER]] */
+ errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
+ if(errn == 0) {
+ if(eventCode == 0) {
+ errn = decodeUnsignedInteger16(stream, &iso2MeasurementDataListType->MeasurementData.array[iso2MeasurementDataListType->MeasurementData.arrayLen]);
+ iso2MeasurementDataListType->MeasurementData.arrayLen++;
+ } else {
+ /* Second level event (e.g., xsi:type, xsi:nil, ...) */
+ errn = EXI_UNSUPPORTED_EVENT_CODE_CHARACTERISTICS;
+ }
+ }
+ } else {
+ errn = EXI_ERROR_OUT_OF_BOUNDS;
+ }
+ if(errn == 0) {
+ /* valid EE for simple element START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MeasurementData) ? */
+ errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
+ if(eventCode == 0) {
+ grammarID = 1277;
+ } else {
+ errn = EXI_DEVIANT_SUPPORT_NOT_DEPLOYED; /* or also typecast and nillable */
+ }
+ }
+ break;
+ case 1:
+ done = 1;
+ grammarID = 4;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 1277:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MeasurementData), END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ if (iso2MeasurementDataListType->MeasurementData.arrayLen < iso2MeasurementDataListType_MeasurementData_ARRAY_SIZE) {
+ /* First(xsi:type)StartTag[CHARACTERS[UNSIGNED_INTEGER]] */
+ errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
+ if(errn == 0) {
+ if(eventCode == 0) {
+ errn = decodeUnsignedInteger16(stream, &iso2MeasurementDataListType->MeasurementData.array[iso2MeasurementDataListType->MeasurementData.arrayLen]);
+ iso2MeasurementDataListType->MeasurementData.arrayLen++;
+ } else {
+ /* Second level event (e.g., xsi:type, xsi:nil, ...) */
+ errn = EXI_UNSUPPORTED_EVENT_CODE_CHARACTERISTICS;
+ }
+ }
+ } else {
+ errn = EXI_ERROR_OUT_OF_BOUNDS;
+ }
+ if(errn == 0) {
+ /* valid EE for simple element START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MeasurementData) ? */
+ errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
+ if(eventCode == 0) {
+ grammarID = 1278;
+ } else {
+ errn = EXI_DEVIANT_SUPPORT_NOT_DEPLOYED; /* or also typecast and nillable */
+ }
+ }
+ break;
+ case 1:
+ done = 1;
+ grammarID = 4;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 1278:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MeasurementData), END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ if (iso2MeasurementDataListType->MeasurementData.arrayLen < iso2MeasurementDataListType_MeasurementData_ARRAY_SIZE) {
+ /* First(xsi:type)StartTag[CHARACTERS[UNSIGNED_INTEGER]] */
+ errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
+ if(errn == 0) {
+ if(eventCode == 0) {
+ errn = decodeUnsignedInteger16(stream, &iso2MeasurementDataListType->MeasurementData.array[iso2MeasurementDataListType->MeasurementData.arrayLen]);
+ iso2MeasurementDataListType->MeasurementData.arrayLen++;
+ } else {
+ /* Second level event (e.g., xsi:type, xsi:nil, ...) */
+ errn = EXI_UNSUPPORTED_EVENT_CODE_CHARACTERISTICS;
+ }
+ }
+ } else {
+ errn = EXI_ERROR_OUT_OF_BOUNDS;
+ }
+ if(errn == 0) {
+ /* valid EE for simple element START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MeasurementData) ? */
+ errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
+ if(eventCode == 0) {
+ grammarID = 1279;
+ } else {
+ errn = EXI_DEVIANT_SUPPORT_NOT_DEPLOYED; /* or also typecast and nillable */
+ }
+ }
+ break;
+ case 1:
+ done = 1;
+ grammarID = 4;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 1279:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MeasurementData), END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ if (iso2MeasurementDataListType->MeasurementData.arrayLen < iso2MeasurementDataListType_MeasurementData_ARRAY_SIZE) {
+ /* First(xsi:type)StartTag[CHARACTERS[UNSIGNED_INTEGER]] */
+ errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
+ if(errn == 0) {
+ if(eventCode == 0) {
+ errn = decodeUnsignedInteger16(stream, &iso2MeasurementDataListType->MeasurementData.array[iso2MeasurementDataListType->MeasurementData.arrayLen]);
+ iso2MeasurementDataListType->MeasurementData.arrayLen++;
+ } else {
+ /* Second level event (e.g., xsi:type, xsi:nil, ...) */
+ errn = EXI_UNSUPPORTED_EVENT_CODE_CHARACTERISTICS;
+ }
+ }
+ } else {
+ errn = EXI_ERROR_OUT_OF_BOUNDS;
+ }
+ if(errn == 0) {
+ /* valid EE for simple element START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MeasurementData) ? */
+ errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
+ if(eventCode == 0) {
+ grammarID = 1280;
+ } else {
+ errn = EXI_DEVIANT_SUPPORT_NOT_DEPLOYED; /* or also typecast and nillable */
+ }
+ }
+ break;
+ case 1:
+ done = 1;
+ grammarID = 4;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 1280:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MeasurementData), END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ if (iso2MeasurementDataListType->MeasurementData.arrayLen < iso2MeasurementDataListType_MeasurementData_ARRAY_SIZE) {
+ /* First(xsi:type)StartTag[CHARACTERS[UNSIGNED_INTEGER]] */
+ errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
+ if(errn == 0) {
+ if(eventCode == 0) {
+ errn = decodeUnsignedInteger16(stream, &iso2MeasurementDataListType->MeasurementData.array[iso2MeasurementDataListType->MeasurementData.arrayLen]);
+ iso2MeasurementDataListType->MeasurementData.arrayLen++;
+ } else {
+ /* Second level event (e.g., xsi:type, xsi:nil, ...) */
+ errn = EXI_UNSUPPORTED_EVENT_CODE_CHARACTERISTICS;
+ }
+ }
+ } else {
+ errn = EXI_ERROR_OUT_OF_BOUNDS;
+ }
+ if(errn == 0) {
+ /* valid EE for simple element START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MeasurementData) ? */
+ errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
+ if(eventCode == 0) {
+ grammarID = 1281;
+ } else {
+ errn = EXI_DEVIANT_SUPPORT_NOT_DEPLOYED; /* or also typecast and nillable */
+ }
+ }
+ break;
+ case 1:
+ done = 1;
+ grammarID = 4;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 1281:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MeasurementData), END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ if (iso2MeasurementDataListType->MeasurementData.arrayLen < iso2MeasurementDataListType_MeasurementData_ARRAY_SIZE) {
+ /* First(xsi:type)StartTag[CHARACTERS[UNSIGNED_INTEGER]] */
+ errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
+ if(errn == 0) {
+ if(eventCode == 0) {
+ errn = decodeUnsignedInteger16(stream, &iso2MeasurementDataListType->MeasurementData.array[iso2MeasurementDataListType->MeasurementData.arrayLen]);
+ iso2MeasurementDataListType->MeasurementData.arrayLen++;
+ } else {
+ /* Second level event (e.g., xsi:type, xsi:nil, ...) */
+ errn = EXI_UNSUPPORTED_EVENT_CODE_CHARACTERISTICS;
+ }
+ }
+ } else {
+ errn = EXI_ERROR_OUT_OF_BOUNDS;
+ }
+ if(errn == 0) {
+ /* valid EE for simple element START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MeasurementData) ? */
+ errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
+ if(eventCode == 0) {
+ grammarID = 1282;
+ } else {
+ errn = EXI_DEVIANT_SUPPORT_NOT_DEPLOYED; /* or also typecast and nillable */
+ }
+ }
+ break;
+ case 1:
+ done = 1;
+ grammarID = 4;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 1282:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MeasurementData), END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ if (iso2MeasurementDataListType->MeasurementData.arrayLen < iso2MeasurementDataListType_MeasurementData_ARRAY_SIZE) {
+ /* First(xsi:type)StartTag[CHARACTERS[UNSIGNED_INTEGER]] */
+ errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
+ if(errn == 0) {
+ if(eventCode == 0) {
+ errn = decodeUnsignedInteger16(stream, &iso2MeasurementDataListType->MeasurementData.array[iso2MeasurementDataListType->MeasurementData.arrayLen]);
+ iso2MeasurementDataListType->MeasurementData.arrayLen++;
+ } else {
+ /* Second level event (e.g., xsi:type, xsi:nil, ...) */
+ errn = EXI_UNSUPPORTED_EVENT_CODE_CHARACTERISTICS;
+ }
+ }
+ } else {
+ errn = EXI_ERROR_OUT_OF_BOUNDS;
+ }
+ if(errn == 0) {
+ /* valid EE for simple element START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MeasurementData) ? */
+ errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
+ if(eventCode == 0) {
+ grammarID = 1283;
+ } else {
+ errn = EXI_DEVIANT_SUPPORT_NOT_DEPLOYED; /* or also typecast and nillable */
+ }
+ }
+ break;
+ case 1:
+ done = 1;
+ grammarID = 4;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 1283:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MeasurementData), END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ if (iso2MeasurementDataListType->MeasurementData.arrayLen < iso2MeasurementDataListType_MeasurementData_ARRAY_SIZE) {
+ /* First(xsi:type)StartTag[CHARACTERS[UNSIGNED_INTEGER]] */
+ errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
+ if(errn == 0) {
+ if(eventCode == 0) {
+ errn = decodeUnsignedInteger16(stream, &iso2MeasurementDataListType->MeasurementData.array[iso2MeasurementDataListType->MeasurementData.arrayLen]);
+ iso2MeasurementDataListType->MeasurementData.arrayLen++;
+ } else {
+ /* Second level event (e.g., xsi:type, xsi:nil, ...) */
+ errn = EXI_UNSUPPORTED_EVENT_CODE_CHARACTERISTICS;
+ }
+ }
+ } else {
+ errn = EXI_ERROR_OUT_OF_BOUNDS;
+ }
+ if(errn == 0) {
+ /* valid EE for simple element START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MeasurementData) ? */
+ errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
+ if(eventCode == 0) {
+ grammarID = 1284;
+ } else {
+ errn = EXI_DEVIANT_SUPPORT_NOT_DEPLOYED; /* or also typecast and nillable */
+ }
+ }
+ break;
+ case 1:
+ done = 1;
+ grammarID = 4;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 1284:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MeasurementData), END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ if (iso2MeasurementDataListType->MeasurementData.arrayLen < iso2MeasurementDataListType_MeasurementData_ARRAY_SIZE) {
+ /* First(xsi:type)StartTag[CHARACTERS[UNSIGNED_INTEGER]] */
+ errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
+ if(errn == 0) {
+ if(eventCode == 0) {
+ errn = decodeUnsignedInteger16(stream, &iso2MeasurementDataListType->MeasurementData.array[iso2MeasurementDataListType->MeasurementData.arrayLen]);
+ iso2MeasurementDataListType->MeasurementData.arrayLen++;
+ } else {
+ /* Second level event (e.g., xsi:type, xsi:nil, ...) */
+ errn = EXI_UNSUPPORTED_EVENT_CODE_CHARACTERISTICS;
+ }
+ }
+ } else {
+ errn = EXI_ERROR_OUT_OF_BOUNDS;
+ }
+ if(errn == 0) {
+ /* valid EE for simple element START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MeasurementData) ? */
+ errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
+ if(eventCode == 0) {
+ grammarID = 1285;
+ } else {
+ errn = EXI_DEVIANT_SUPPORT_NOT_DEPLOYED; /* or also typecast and nillable */
+ }
+ }
+ break;
+ case 1:
+ done = 1;
+ grammarID = 4;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 1285:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MeasurementData), END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ if (iso2MeasurementDataListType->MeasurementData.arrayLen < iso2MeasurementDataListType_MeasurementData_ARRAY_SIZE) {
+ /* First(xsi:type)StartTag[CHARACTERS[UNSIGNED_INTEGER]] */
+ errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
+ if(errn == 0) {
+ if(eventCode == 0) {
+ errn = decodeUnsignedInteger16(stream, &iso2MeasurementDataListType->MeasurementData.array[iso2MeasurementDataListType->MeasurementData.arrayLen]);
+ iso2MeasurementDataListType->MeasurementData.arrayLen++;
+ } else {
+ /* Second level event (e.g., xsi:type, xsi:nil, ...) */
+ errn = EXI_UNSUPPORTED_EVENT_CODE_CHARACTERISTICS;
+ }
+ }
+ } else {
+ errn = EXI_ERROR_OUT_OF_BOUNDS;
+ }
+ if(errn == 0) {
+ /* valid EE for simple element START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MeasurementData) ? */
+ errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
+ if(eventCode == 0) {
+ grammarID = 1286;
+ } else {
+ errn = EXI_DEVIANT_SUPPORT_NOT_DEPLOYED; /* or also typecast and nillable */
+ }
+ }
+ break;
+ case 1:
+ done = 1;
+ grammarID = 4;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 1286:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MeasurementData), END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ if (iso2MeasurementDataListType->MeasurementData.arrayLen < iso2MeasurementDataListType_MeasurementData_ARRAY_SIZE) {
+ /* First(xsi:type)StartTag[CHARACTERS[UNSIGNED_INTEGER]] */
+ errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
+ if(errn == 0) {
+ if(eventCode == 0) {
+ errn = decodeUnsignedInteger16(stream, &iso2MeasurementDataListType->MeasurementData.array[iso2MeasurementDataListType->MeasurementData.arrayLen]);
+ iso2MeasurementDataListType->MeasurementData.arrayLen++;
+ } else {
+ /* Second level event (e.g., xsi:type, xsi:nil, ...) */
+ errn = EXI_UNSUPPORTED_EVENT_CODE_CHARACTERISTICS;
+ }
+ }
+ } else {
+ errn = EXI_ERROR_OUT_OF_BOUNDS;
+ }
+ if(errn == 0) {
+ /* valid EE for simple element START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MeasurementData) ? */
+ errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
+ if(eventCode == 0) {
+ grammarID = 1287;
+ } else {
+ errn = EXI_DEVIANT_SUPPORT_NOT_DEPLOYED; /* or also typecast and nillable */
+ }
+ }
+ break;
+ case 1:
+ done = 1;
+ grammarID = 4;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 1287:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MeasurementData), END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ if (iso2MeasurementDataListType->MeasurementData.arrayLen < iso2MeasurementDataListType_MeasurementData_ARRAY_SIZE) {
+ /* First(xsi:type)StartTag[CHARACTERS[UNSIGNED_INTEGER]] */
+ errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
+ if(errn == 0) {
+ if(eventCode == 0) {
+ errn = decodeUnsignedInteger16(stream, &iso2MeasurementDataListType->MeasurementData.array[iso2MeasurementDataListType->MeasurementData.arrayLen]);
+ iso2MeasurementDataListType->MeasurementData.arrayLen++;
+ } else {
+ /* Second level event (e.g., xsi:type, xsi:nil, ...) */
+ errn = EXI_UNSUPPORTED_EVENT_CODE_CHARACTERISTICS;
+ }
+ }
+ } else {
+ errn = EXI_ERROR_OUT_OF_BOUNDS;
+ }
+ if(errn == 0) {
+ /* valid EE for simple element START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MeasurementData) ? */
+ errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
+ if(eventCode == 0) {
+ grammarID = 1288;
+ } else {
+ errn = EXI_DEVIANT_SUPPORT_NOT_DEPLOYED; /* or also typecast and nillable */
+ }
+ }
+ break;
+ case 1:
+ done = 1;
+ grammarID = 4;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 1288:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MeasurementData), END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ if (iso2MeasurementDataListType->MeasurementData.arrayLen < iso2MeasurementDataListType_MeasurementData_ARRAY_SIZE) {
+ /* First(xsi:type)StartTag[CHARACTERS[UNSIGNED_INTEGER]] */
+ errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
+ if(errn == 0) {
+ if(eventCode == 0) {
+ errn = decodeUnsignedInteger16(stream, &iso2MeasurementDataListType->MeasurementData.array[iso2MeasurementDataListType->MeasurementData.arrayLen]);
+ iso2MeasurementDataListType->MeasurementData.arrayLen++;
+ } else {
+ /* Second level event (e.g., xsi:type, xsi:nil, ...) */
+ errn = EXI_UNSUPPORTED_EVENT_CODE_CHARACTERISTICS;
+ }
+ }
+ } else {
+ errn = EXI_ERROR_OUT_OF_BOUNDS;
+ }
+ if(errn == 0) {
+ /* valid EE for simple element START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MeasurementData) ? */
+ errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
+ if(eventCode == 0) {
+ grammarID = 1289;
+ } else {
+ errn = EXI_DEVIANT_SUPPORT_NOT_DEPLOYED; /* or also typecast and nillable */
+ }
+ }
+ break;
+ case 1:
+ done = 1;
+ grammarID = 4;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 1289:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MeasurementData), END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ if (iso2MeasurementDataListType->MeasurementData.arrayLen < iso2MeasurementDataListType_MeasurementData_ARRAY_SIZE) {
+ /* First(xsi:type)StartTag[CHARACTERS[UNSIGNED_INTEGER]] */
+ errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
+ if(errn == 0) {
+ if(eventCode == 0) {
+ errn = decodeUnsignedInteger16(stream, &iso2MeasurementDataListType->MeasurementData.array[iso2MeasurementDataListType->MeasurementData.arrayLen]);
+ iso2MeasurementDataListType->MeasurementData.arrayLen++;
+ } else {
+ /* Second level event (e.g., xsi:type, xsi:nil, ...) */
+ errn = EXI_UNSUPPORTED_EVENT_CODE_CHARACTERISTICS;
+ }
+ }
+ } else {
+ errn = EXI_ERROR_OUT_OF_BOUNDS;
+ }
+ if(errn == 0) {
+ /* valid EE for simple element START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MeasurementData) ? */
+ errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
+ if(eventCode == 0) {
+ grammarID = 1290;
+ } else {
+ errn = EXI_DEVIANT_SUPPORT_NOT_DEPLOYED; /* or also typecast and nillable */
+ }
+ }
+ break;
+ case 1:
+ done = 1;
+ grammarID = 4;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 1290:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MeasurementData), END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ if (iso2MeasurementDataListType->MeasurementData.arrayLen < iso2MeasurementDataListType_MeasurementData_ARRAY_SIZE) {
+ /* First(xsi:type)StartTag[CHARACTERS[UNSIGNED_INTEGER]] */
+ errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
+ if(errn == 0) {
+ if(eventCode == 0) {
+ errn = decodeUnsignedInteger16(stream, &iso2MeasurementDataListType->MeasurementData.array[iso2MeasurementDataListType->MeasurementData.arrayLen]);
+ iso2MeasurementDataListType->MeasurementData.arrayLen++;
+ } else {
+ /* Second level event (e.g., xsi:type, xsi:nil, ...) */
+ errn = EXI_UNSUPPORTED_EVENT_CODE_CHARACTERISTICS;
+ }
+ }
+ } else {
+ errn = EXI_ERROR_OUT_OF_BOUNDS;
+ }
+ if(errn == 0) {
+ /* valid EE for simple element START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MeasurementData) ? */
+ errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
+ if(eventCode == 0) {
+ grammarID = 1291;
+ } else {
+ errn = EXI_DEVIANT_SUPPORT_NOT_DEPLOYED; /* or also typecast and nillable */
+ }
+ }
+ break;
+ case 1:
+ done = 1;
+ grammarID = 4;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 1291:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MeasurementData), END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ if (iso2MeasurementDataListType->MeasurementData.arrayLen < iso2MeasurementDataListType_MeasurementData_ARRAY_SIZE) {
+ /* First(xsi:type)StartTag[CHARACTERS[UNSIGNED_INTEGER]] */
+ errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
+ if(errn == 0) {
+ if(eventCode == 0) {
+ errn = decodeUnsignedInteger16(stream, &iso2MeasurementDataListType->MeasurementData.array[iso2MeasurementDataListType->MeasurementData.arrayLen]);
+ iso2MeasurementDataListType->MeasurementData.arrayLen++;
+ } else {
+ /* Second level event (e.g., xsi:type, xsi:nil, ...) */
+ errn = EXI_UNSUPPORTED_EVENT_CODE_CHARACTERISTICS;
+ }
+ }
+ } else {
+ errn = EXI_ERROR_OUT_OF_BOUNDS;
+ }
+ if(errn == 0) {
+ /* valid EE for simple element START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MeasurementData) ? */
+ errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
+ if(eventCode == 0) {
+ grammarID = 1292;
+ } else {
+ errn = EXI_DEVIANT_SUPPORT_NOT_DEPLOYED; /* or also typecast and nillable */
+ }
+ }
+ break;
+ case 1:
+ done = 1;
+ grammarID = 4;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 1292:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MeasurementData), END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ if (iso2MeasurementDataListType->MeasurementData.arrayLen < iso2MeasurementDataListType_MeasurementData_ARRAY_SIZE) {
+ /* First(xsi:type)StartTag[CHARACTERS[UNSIGNED_INTEGER]] */
+ errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
+ if(errn == 0) {
+ if(eventCode == 0) {
+ errn = decodeUnsignedInteger16(stream, &iso2MeasurementDataListType->MeasurementData.array[iso2MeasurementDataListType->MeasurementData.arrayLen]);
+ iso2MeasurementDataListType->MeasurementData.arrayLen++;
+ } else {
+ /* Second level event (e.g., xsi:type, xsi:nil, ...) */
+ errn = EXI_UNSUPPORTED_EVENT_CODE_CHARACTERISTICS;
+ }
+ }
+ } else {
+ errn = EXI_ERROR_OUT_OF_BOUNDS;
+ }
+ if(errn == 0) {
+ /* valid EE for simple element START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MeasurementData) ? */
+ errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
+ if(eventCode == 0) {
+ grammarID = 1293;
+ } else {
+ errn = EXI_DEVIANT_SUPPORT_NOT_DEPLOYED; /* or also typecast and nillable */
+ }
+ }
+ break;
+ case 1:
+ done = 1;
+ grammarID = 4;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 1293:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MeasurementData), END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ if (iso2MeasurementDataListType->MeasurementData.arrayLen < iso2MeasurementDataListType_MeasurementData_ARRAY_SIZE) {
+ /* First(xsi:type)StartTag[CHARACTERS[UNSIGNED_INTEGER]] */
+ errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
+ if(errn == 0) {
+ if(eventCode == 0) {
+ errn = decodeUnsignedInteger16(stream, &iso2MeasurementDataListType->MeasurementData.array[iso2MeasurementDataListType->MeasurementData.arrayLen]);
+ iso2MeasurementDataListType->MeasurementData.arrayLen++;
+ } else {
+ /* Second level event (e.g., xsi:type, xsi:nil, ...) */
+ errn = EXI_UNSUPPORTED_EVENT_CODE_CHARACTERISTICS;
+ }
+ }
+ } else {
+ errn = EXI_ERROR_OUT_OF_BOUNDS;
+ }
+ if(errn == 0) {
+ /* valid EE for simple element START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MeasurementData) ? */
+ errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
+ if(eventCode == 0) {
+ grammarID = 1294;
+ } else {
+ errn = EXI_DEVIANT_SUPPORT_NOT_DEPLOYED; /* or also typecast and nillable */
+ }
+ }
+ break;
+ case 1:
+ done = 1;
+ grammarID = 4;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 1294:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MeasurementData), END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ if (iso2MeasurementDataListType->MeasurementData.arrayLen < iso2MeasurementDataListType_MeasurementData_ARRAY_SIZE) {
+ /* First(xsi:type)StartTag[CHARACTERS[UNSIGNED_INTEGER]] */
+ errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
+ if(errn == 0) {
+ if(eventCode == 0) {
+ errn = decodeUnsignedInteger16(stream, &iso2MeasurementDataListType->MeasurementData.array[iso2MeasurementDataListType->MeasurementData.arrayLen]);
+ iso2MeasurementDataListType->MeasurementData.arrayLen++;
+ } else {
+ /* Second level event (e.g., xsi:type, xsi:nil, ...) */
+ errn = EXI_UNSUPPORTED_EVENT_CODE_CHARACTERISTICS;
+ }
+ }
+ } else {
+ errn = EXI_ERROR_OUT_OF_BOUNDS;
+ }
+ if(errn == 0) {
+ /* valid EE for simple element START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MeasurementData) ? */
+ errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
+ if(eventCode == 0) {
+ grammarID = 1295;
+ } else {
+ errn = EXI_DEVIANT_SUPPORT_NOT_DEPLOYED; /* or also typecast and nillable */
+ }
+ }
+ break;
+ case 1:
+ done = 1;
+ grammarID = 4;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 1295:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MeasurementData), END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ if (iso2MeasurementDataListType->MeasurementData.arrayLen < iso2MeasurementDataListType_MeasurementData_ARRAY_SIZE) {
+ /* First(xsi:type)StartTag[CHARACTERS[UNSIGNED_INTEGER]] */
+ errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
+ if(errn == 0) {
+ if(eventCode == 0) {
+ errn = decodeUnsignedInteger16(stream, &iso2MeasurementDataListType->MeasurementData.array[iso2MeasurementDataListType->MeasurementData.arrayLen]);
+ iso2MeasurementDataListType->MeasurementData.arrayLen++;
+ } else {
+ /* Second level event (e.g., xsi:type, xsi:nil, ...) */
+ errn = EXI_UNSUPPORTED_EVENT_CODE_CHARACTERISTICS;
+ }
+ }
+ } else {
+ errn = EXI_ERROR_OUT_OF_BOUNDS;
+ }
+ if(errn == 0) {
+ /* valid EE for simple element START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MeasurementData) ? */
+ errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
+ if(eventCode == 0) {
+ grammarID = 1296;
+ } else {
+ errn = EXI_DEVIANT_SUPPORT_NOT_DEPLOYED; /* or also typecast and nillable */
+ }
+ }
+ break;
+ case 1:
+ done = 1;
+ grammarID = 4;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 1296:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MeasurementData), END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ if (iso2MeasurementDataListType->MeasurementData.arrayLen < iso2MeasurementDataListType_MeasurementData_ARRAY_SIZE) {
+ /* First(xsi:type)StartTag[CHARACTERS[UNSIGNED_INTEGER]] */
+ errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
+ if(errn == 0) {
+ if(eventCode == 0) {
+ errn = decodeUnsignedInteger16(stream, &iso2MeasurementDataListType->MeasurementData.array[iso2MeasurementDataListType->MeasurementData.arrayLen]);
+ iso2MeasurementDataListType->MeasurementData.arrayLen++;
+ } else {
+ /* Second level event (e.g., xsi:type, xsi:nil, ...) */
+ errn = EXI_UNSUPPORTED_EVENT_CODE_CHARACTERISTICS;
+ }
+ }
+ } else {
+ errn = EXI_ERROR_OUT_OF_BOUNDS;
+ }
+ if(errn == 0) {
+ /* valid EE for simple element START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MeasurementData) ? */
+ errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
+ if(eventCode == 0) {
+ grammarID = 1297;
+ } else {
+ errn = EXI_DEVIANT_SUPPORT_NOT_DEPLOYED; /* or also typecast and nillable */
+ }
+ }
+ break;
+ case 1:
+ done = 1;
+ grammarID = 4;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 1297:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MeasurementData), END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ if (iso2MeasurementDataListType->MeasurementData.arrayLen < iso2MeasurementDataListType_MeasurementData_ARRAY_SIZE) {
+ /* First(xsi:type)StartTag[CHARACTERS[UNSIGNED_INTEGER]] */
+ errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
+ if(errn == 0) {
+ if(eventCode == 0) {
+ errn = decodeUnsignedInteger16(stream, &iso2MeasurementDataListType->MeasurementData.array[iso2MeasurementDataListType->MeasurementData.arrayLen]);
+ iso2MeasurementDataListType->MeasurementData.arrayLen++;
+ } else {
+ /* Second level event (e.g., xsi:type, xsi:nil, ...) */
+ errn = EXI_UNSUPPORTED_EVENT_CODE_CHARACTERISTICS;
+ }
+ }
+ } else {
+ errn = EXI_ERROR_OUT_OF_BOUNDS;
+ }
+ if(errn == 0) {
+ /* valid EE for simple element START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MeasurementData) ? */
+ errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
+ if(eventCode == 0) {
+ grammarID = 1298;
+ } else {
+ errn = EXI_DEVIANT_SUPPORT_NOT_DEPLOYED; /* or also typecast and nillable */
+ }
+ }
+ break;
+ case 1:
+ done = 1;
+ grammarID = 4;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 1298:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MeasurementData), END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ if (iso2MeasurementDataListType->MeasurementData.arrayLen < iso2MeasurementDataListType_MeasurementData_ARRAY_SIZE) {
+ /* First(xsi:type)StartTag[CHARACTERS[UNSIGNED_INTEGER]] */
+ errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
+ if(errn == 0) {
+ if(eventCode == 0) {
+ errn = decodeUnsignedInteger16(stream, &iso2MeasurementDataListType->MeasurementData.array[iso2MeasurementDataListType->MeasurementData.arrayLen]);
+ iso2MeasurementDataListType->MeasurementData.arrayLen++;
+ } else {
+ /* Second level event (e.g., xsi:type, xsi:nil, ...) */
+ errn = EXI_UNSUPPORTED_EVENT_CODE_CHARACTERISTICS;
+ }
+ }
+ } else {
+ errn = EXI_ERROR_OUT_OF_BOUNDS;
+ }
+ if(errn == 0) {
+ /* valid EE for simple element START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MeasurementData) ? */
+ errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
+ if(eventCode == 0) {
+ grammarID = 1299;
+ } else {
+ errn = EXI_DEVIANT_SUPPORT_NOT_DEPLOYED; /* or also typecast and nillable */
+ }
+ }
+ break;
+ case 1:
+ done = 1;
+ grammarID = 4;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 1299:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MeasurementData), END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ if (iso2MeasurementDataListType->MeasurementData.arrayLen < iso2MeasurementDataListType_MeasurementData_ARRAY_SIZE) {
+ /* First(xsi:type)StartTag[CHARACTERS[UNSIGNED_INTEGER]] */
+ errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
+ if(errn == 0) {
+ if(eventCode == 0) {
+ errn = decodeUnsignedInteger16(stream, &iso2MeasurementDataListType->MeasurementData.array[iso2MeasurementDataListType->MeasurementData.arrayLen]);
+ iso2MeasurementDataListType->MeasurementData.arrayLen++;
+ } else {
+ /* Second level event (e.g., xsi:type, xsi:nil, ...) */
+ errn = EXI_UNSUPPORTED_EVENT_CODE_CHARACTERISTICS;
+ }
+ }
+ } else {
+ errn = EXI_ERROR_OUT_OF_BOUNDS;
+ }
+ if(errn == 0) {
+ /* valid EE for simple element START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MeasurementData) ? */
+ errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
+ if(eventCode == 0) {
+ grammarID = 1300;
+ } else {
+ errn = EXI_DEVIANT_SUPPORT_NOT_DEPLOYED; /* or also typecast and nillable */
+ }
+ }
+ break;
+ case 1:
+ done = 1;
+ grammarID = 4;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 1300:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MeasurementData), END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ if (iso2MeasurementDataListType->MeasurementData.arrayLen < iso2MeasurementDataListType_MeasurementData_ARRAY_SIZE) {
+ /* First(xsi:type)StartTag[CHARACTERS[UNSIGNED_INTEGER]] */
+ errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
+ if(errn == 0) {
+ if(eventCode == 0) {
+ errn = decodeUnsignedInteger16(stream, &iso2MeasurementDataListType->MeasurementData.array[iso2MeasurementDataListType->MeasurementData.arrayLen]);
+ iso2MeasurementDataListType->MeasurementData.arrayLen++;
+ } else {
+ /* Second level event (e.g., xsi:type, xsi:nil, ...) */
+ errn = EXI_UNSUPPORTED_EVENT_CODE_CHARACTERISTICS;
+ }
+ }
+ } else {
+ errn = EXI_ERROR_OUT_OF_BOUNDS;
+ }
+ if(errn == 0) {
+ /* valid EE for simple element START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MeasurementData) ? */
+ errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
+ if(eventCode == 0) {
+ grammarID = 1301;
+ } else {
+ errn = EXI_DEVIANT_SUPPORT_NOT_DEPLOYED; /* or also typecast and nillable */
+ }
+ }
+ break;
+ case 1:
+ done = 1;
+ grammarID = 4;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 1301:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MeasurementData), END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ if (iso2MeasurementDataListType->MeasurementData.arrayLen < iso2MeasurementDataListType_MeasurementData_ARRAY_SIZE) {
+ /* First(xsi:type)StartTag[CHARACTERS[UNSIGNED_INTEGER]] */
+ errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
+ if(errn == 0) {
+ if(eventCode == 0) {
+ errn = decodeUnsignedInteger16(stream, &iso2MeasurementDataListType->MeasurementData.array[iso2MeasurementDataListType->MeasurementData.arrayLen]);
+ iso2MeasurementDataListType->MeasurementData.arrayLen++;
+ } else {
+ /* Second level event (e.g., xsi:type, xsi:nil, ...) */
+ errn = EXI_UNSUPPORTED_EVENT_CODE_CHARACTERISTICS;
+ }
+ }
+ } else {
+ errn = EXI_ERROR_OUT_OF_BOUNDS;
+ }
+ if(errn == 0) {
+ /* valid EE for simple element START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MeasurementData) ? */
+ errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
+ if(eventCode == 0) {
+ grammarID = 1302;
+ } else {
+ errn = EXI_DEVIANT_SUPPORT_NOT_DEPLOYED; /* or also typecast and nillable */
+ }
+ }
+ break;
+ case 1:
+ done = 1;
+ grammarID = 4;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 1302:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MeasurementData), END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ if (iso2MeasurementDataListType->MeasurementData.arrayLen < iso2MeasurementDataListType_MeasurementData_ARRAY_SIZE) {
+ /* First(xsi:type)StartTag[CHARACTERS[UNSIGNED_INTEGER]] */
+ errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
+ if(errn == 0) {
+ if(eventCode == 0) {
+ errn = decodeUnsignedInteger16(stream, &iso2MeasurementDataListType->MeasurementData.array[iso2MeasurementDataListType->MeasurementData.arrayLen]);
+ iso2MeasurementDataListType->MeasurementData.arrayLen++;
+ } else {
+ /* Second level event (e.g., xsi:type, xsi:nil, ...) */
+ errn = EXI_UNSUPPORTED_EVENT_CODE_CHARACTERISTICS;
+ }
+ }
+ } else {
+ errn = EXI_ERROR_OUT_OF_BOUNDS;
+ }
+ if(errn == 0) {
+ /* valid EE for simple element START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MeasurementData) ? */
+ errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
+ if(eventCode == 0) {
+ grammarID = 1303;
+ } else {
+ errn = EXI_DEVIANT_SUPPORT_NOT_DEPLOYED; /* or also typecast and nillable */
+ }
+ }
+ break;
+ case 1:
+ done = 1;
+ grammarID = 4;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 1303:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MeasurementData), END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ if (iso2MeasurementDataListType->MeasurementData.arrayLen < iso2MeasurementDataListType_MeasurementData_ARRAY_SIZE) {
+ /* First(xsi:type)StartTag[CHARACTERS[UNSIGNED_INTEGER]] */
+ errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
+ if(errn == 0) {
+ if(eventCode == 0) {
+ errn = decodeUnsignedInteger16(stream, &iso2MeasurementDataListType->MeasurementData.array[iso2MeasurementDataListType->MeasurementData.arrayLen]);
+ iso2MeasurementDataListType->MeasurementData.arrayLen++;
+ } else {
+ /* Second level event (e.g., xsi:type, xsi:nil, ...) */
+ errn = EXI_UNSUPPORTED_EVENT_CODE_CHARACTERISTICS;
+ }
+ }
+ } else {
+ errn = EXI_ERROR_OUT_OF_BOUNDS;
+ }
+ if(errn == 0) {
+ /* valid EE for simple element START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MeasurementData) ? */
+ errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
+ if(eventCode == 0) {
+ grammarID = 1304;
+ } else {
+ errn = EXI_DEVIANT_SUPPORT_NOT_DEPLOYED; /* or also typecast and nillable */
+ }
+ }
+ break;
+ case 1:
+ done = 1;
+ grammarID = 4;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 1304:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MeasurementData), END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ if (iso2MeasurementDataListType->MeasurementData.arrayLen < iso2MeasurementDataListType_MeasurementData_ARRAY_SIZE) {
+ /* First(xsi:type)StartTag[CHARACTERS[UNSIGNED_INTEGER]] */
+ errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
+ if(errn == 0) {
+ if(eventCode == 0) {
+ errn = decodeUnsignedInteger16(stream, &iso2MeasurementDataListType->MeasurementData.array[iso2MeasurementDataListType->MeasurementData.arrayLen]);
+ iso2MeasurementDataListType->MeasurementData.arrayLen++;
+ } else {
+ /* Second level event (e.g., xsi:type, xsi:nil, ...) */
+ errn = EXI_UNSUPPORTED_EVENT_CODE_CHARACTERISTICS;
+ }
+ }
+ } else {
+ errn = EXI_ERROR_OUT_OF_BOUNDS;
+ }
+ if(errn == 0) {
+ /* valid EE for simple element START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MeasurementData) ? */
+ errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
+ if(eventCode == 0) {
+ grammarID = 1305;
+ } else {
+ errn = EXI_DEVIANT_SUPPORT_NOT_DEPLOYED; /* or also typecast and nillable */
+ }
+ }
+ break;
+ case 1:
+ done = 1;
+ grammarID = 4;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 1305:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MeasurementData), END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ if (iso2MeasurementDataListType->MeasurementData.arrayLen < iso2MeasurementDataListType_MeasurementData_ARRAY_SIZE) {
+ /* First(xsi:type)StartTag[CHARACTERS[UNSIGNED_INTEGER]] */
+ errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
+ if(errn == 0) {
+ if(eventCode == 0) {
+ errn = decodeUnsignedInteger16(stream, &iso2MeasurementDataListType->MeasurementData.array[iso2MeasurementDataListType->MeasurementData.arrayLen]);
+ iso2MeasurementDataListType->MeasurementData.arrayLen++;
+ } else {
+ /* Second level event (e.g., xsi:type, xsi:nil, ...) */
+ errn = EXI_UNSUPPORTED_EVENT_CODE_CHARACTERISTICS;
+ }
+ }
+ } else {
+ errn = EXI_ERROR_OUT_OF_BOUNDS;
+ }
+ if(errn == 0) {
+ /* valid EE for simple element START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MeasurementData) ? */
+ errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
+ if(eventCode == 0) {
+ grammarID = 1306;
+ } else {
+ errn = EXI_DEVIANT_SUPPORT_NOT_DEPLOYED; /* or also typecast and nillable */
+ }
+ }
+ break;
+ case 1:
+ done = 1;
+ grammarID = 4;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 1306:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MeasurementData), END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ if (iso2MeasurementDataListType->MeasurementData.arrayLen < iso2MeasurementDataListType_MeasurementData_ARRAY_SIZE) {
+ /* First(xsi:type)StartTag[CHARACTERS[UNSIGNED_INTEGER]] */
+ errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
+ if(errn == 0) {
+ if(eventCode == 0) {
+ errn = decodeUnsignedInteger16(stream, &iso2MeasurementDataListType->MeasurementData.array[iso2MeasurementDataListType->MeasurementData.arrayLen]);
+ iso2MeasurementDataListType->MeasurementData.arrayLen++;
+ } else {
+ /* Second level event (e.g., xsi:type, xsi:nil, ...) */
+ errn = EXI_UNSUPPORTED_EVENT_CODE_CHARACTERISTICS;
+ }
+ }
+ } else {
+ errn = EXI_ERROR_OUT_OF_BOUNDS;
+ }
+ if(errn == 0) {
+ /* valid EE for simple element START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MeasurementData) ? */
+ errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
+ if(eventCode == 0) {
+ grammarID = 1307;
+ } else {
+ errn = EXI_DEVIANT_SUPPORT_NOT_DEPLOYED; /* or also typecast and nillable */
+ }
+ }
+ break;
+ case 1:
+ done = 1;
+ grammarID = 4;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 1307:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MeasurementData), END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ if (iso2MeasurementDataListType->MeasurementData.arrayLen < iso2MeasurementDataListType_MeasurementData_ARRAY_SIZE) {
+ /* First(xsi:type)StartTag[CHARACTERS[UNSIGNED_INTEGER]] */
+ errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
+ if(errn == 0) {
+ if(eventCode == 0) {
+ errn = decodeUnsignedInteger16(stream, &iso2MeasurementDataListType->MeasurementData.array[iso2MeasurementDataListType->MeasurementData.arrayLen]);
+ iso2MeasurementDataListType->MeasurementData.arrayLen++;
+ } else {
+ /* Second level event (e.g., xsi:type, xsi:nil, ...) */
+ errn = EXI_UNSUPPORTED_EVENT_CODE_CHARACTERISTICS;
+ }
+ }
+ } else {
+ errn = EXI_ERROR_OUT_OF_BOUNDS;
+ }
+ if(errn == 0) {
+ /* valid EE for simple element START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MeasurementData) ? */
+ errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
+ if(eventCode == 0) {
+ grammarID = 1308;
+ } else {
+ errn = EXI_DEVIANT_SUPPORT_NOT_DEPLOYED; /* or also typecast and nillable */
+ }
+ }
+ break;
+ case 1:
+ done = 1;
+ grammarID = 4;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 1308:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MeasurementData), END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ if (iso2MeasurementDataListType->MeasurementData.arrayLen < iso2MeasurementDataListType_MeasurementData_ARRAY_SIZE) {
+ /* First(xsi:type)StartTag[CHARACTERS[UNSIGNED_INTEGER]] */
+ errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
+ if(errn == 0) {
+ if(eventCode == 0) {
+ errn = decodeUnsignedInteger16(stream, &iso2MeasurementDataListType->MeasurementData.array[iso2MeasurementDataListType->MeasurementData.arrayLen]);
+ iso2MeasurementDataListType->MeasurementData.arrayLen++;
+ } else {
+ /* Second level event (e.g., xsi:type, xsi:nil, ...) */
+ errn = EXI_UNSUPPORTED_EVENT_CODE_CHARACTERISTICS;
+ }
+ }
+ } else {
+ errn = EXI_ERROR_OUT_OF_BOUNDS;
+ }
+ if(errn == 0) {
+ /* valid EE for simple element START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MeasurementData) ? */
+ errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
+ if(eventCode == 0) {
+ grammarID = 1309;
+ } else {
+ errn = EXI_DEVIANT_SUPPORT_NOT_DEPLOYED; /* or also typecast and nillable */
+ }
+ }
+ break;
+ case 1:
+ done = 1;
+ grammarID = 4;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 1309:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MeasurementData), END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ if (iso2MeasurementDataListType->MeasurementData.arrayLen < iso2MeasurementDataListType_MeasurementData_ARRAY_SIZE) {
+ /* First(xsi:type)StartTag[CHARACTERS[UNSIGNED_INTEGER]] */
+ errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
+ if(errn == 0) {
+ if(eventCode == 0) {
+ errn = decodeUnsignedInteger16(stream, &iso2MeasurementDataListType->MeasurementData.array[iso2MeasurementDataListType->MeasurementData.arrayLen]);
+ iso2MeasurementDataListType->MeasurementData.arrayLen++;
+ } else {
+ /* Second level event (e.g., xsi:type, xsi:nil, ...) */
+ errn = EXI_UNSUPPORTED_EVENT_CODE_CHARACTERISTICS;
+ }
+ }
+ } else {
+ errn = EXI_ERROR_OUT_OF_BOUNDS;
+ }
+ if(errn == 0) {
+ /* valid EE for simple element START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MeasurementData) ? */
+ errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
+ if(eventCode == 0) {
+ grammarID = 1310;
+ } else {
+ errn = EXI_DEVIANT_SUPPORT_NOT_DEPLOYED; /* or also typecast and nillable */
+ }
+ }
+ break;
+ case 1:
+ done = 1;
+ grammarID = 4;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 1310:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MeasurementData), END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ if (iso2MeasurementDataListType->MeasurementData.arrayLen < iso2MeasurementDataListType_MeasurementData_ARRAY_SIZE) {
+ /* First(xsi:type)StartTag[CHARACTERS[UNSIGNED_INTEGER]] */
+ errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
+ if(errn == 0) {
+ if(eventCode == 0) {
+ errn = decodeUnsignedInteger16(stream, &iso2MeasurementDataListType->MeasurementData.array[iso2MeasurementDataListType->MeasurementData.arrayLen]);
+ iso2MeasurementDataListType->MeasurementData.arrayLen++;
+ } else {
+ /* Second level event (e.g., xsi:type, xsi:nil, ...) */
+ errn = EXI_UNSUPPORTED_EVENT_CODE_CHARACTERISTICS;
+ }
+ }
+ } else {
+ errn = EXI_ERROR_OUT_OF_BOUNDS;
+ }
+ if(errn == 0) {
+ /* valid EE for simple element START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MeasurementData) ? */
+ errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
+ if(eventCode == 0) {
+ grammarID = 1311;
+ } else {
+ errn = EXI_DEVIANT_SUPPORT_NOT_DEPLOYED; /* or also typecast and nillable */
+ }
+ }
+ break;
+ case 1:
+ done = 1;
+ grammarID = 4;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 1311:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MeasurementData), END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ if (iso2MeasurementDataListType->MeasurementData.arrayLen < iso2MeasurementDataListType_MeasurementData_ARRAY_SIZE) {
+ /* First(xsi:type)StartTag[CHARACTERS[UNSIGNED_INTEGER]] */
+ errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
+ if(errn == 0) {
+ if(eventCode == 0) {
+ errn = decodeUnsignedInteger16(stream, &iso2MeasurementDataListType->MeasurementData.array[iso2MeasurementDataListType->MeasurementData.arrayLen]);
+ iso2MeasurementDataListType->MeasurementData.arrayLen++;
+ } else {
+ /* Second level event (e.g., xsi:type, xsi:nil, ...) */
+ errn = EXI_UNSUPPORTED_EVENT_CODE_CHARACTERISTICS;
+ }
+ }
+ } else {
+ errn = EXI_ERROR_OUT_OF_BOUNDS;
+ }
+ if(errn == 0) {
+ /* valid EE for simple element START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MeasurementData) ? */
+ errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
+ if(eventCode == 0) {
+ grammarID = 1312;
+ } else {
+ errn = EXI_DEVIANT_SUPPORT_NOT_DEPLOYED; /* or also typecast and nillable */
+ }
+ }
+ break;
+ case 1:
+ done = 1;
+ grammarID = 4;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 1312:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MeasurementData), END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ if (iso2MeasurementDataListType->MeasurementData.arrayLen < iso2MeasurementDataListType_MeasurementData_ARRAY_SIZE) {
+ /* First(xsi:type)StartTag[CHARACTERS[UNSIGNED_INTEGER]] */
+ errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
+ if(errn == 0) {
+ if(eventCode == 0) {
+ errn = decodeUnsignedInteger16(stream, &iso2MeasurementDataListType->MeasurementData.array[iso2MeasurementDataListType->MeasurementData.arrayLen]);
+ iso2MeasurementDataListType->MeasurementData.arrayLen++;
+ } else {
+ /* Second level event (e.g., xsi:type, xsi:nil, ...) */
+ errn = EXI_UNSUPPORTED_EVENT_CODE_CHARACTERISTICS;
+ }
+ }
+ } else {
+ errn = EXI_ERROR_OUT_OF_BOUNDS;
+ }
+ if(errn == 0) {
+ /* valid EE for simple element START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MeasurementData) ? */
+ errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
+ if(eventCode == 0) {
+ grammarID = 1313;
+ } else {
+ errn = EXI_DEVIANT_SUPPORT_NOT_DEPLOYED; /* or also typecast and nillable */
+ }
+ }
+ break;
+ case 1:
+ done = 1;
+ grammarID = 4;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 1313:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MeasurementData), END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ if (iso2MeasurementDataListType->MeasurementData.arrayLen < iso2MeasurementDataListType_MeasurementData_ARRAY_SIZE) {
+ /* First(xsi:type)StartTag[CHARACTERS[UNSIGNED_INTEGER]] */
+ errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
+ if(errn == 0) {
+ if(eventCode == 0) {
+ errn = decodeUnsignedInteger16(stream, &iso2MeasurementDataListType->MeasurementData.array[iso2MeasurementDataListType->MeasurementData.arrayLen]);
+ iso2MeasurementDataListType->MeasurementData.arrayLen++;
+ } else {
+ /* Second level event (e.g., xsi:type, xsi:nil, ...) */
+ errn = EXI_UNSUPPORTED_EVENT_CODE_CHARACTERISTICS;
+ }
+ }
+ } else {
+ errn = EXI_ERROR_OUT_OF_BOUNDS;
+ }
+ if(errn == 0) {
+ /* valid EE for simple element START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MeasurementData) ? */
+ errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
+ if(eventCode == 0) {
+ grammarID = 1314;
+ } else {
+ errn = EXI_DEVIANT_SUPPORT_NOT_DEPLOYED; /* or also typecast and nillable */
+ }
+ }
+ break;
+ case 1:
+ done = 1;
+ grammarID = 4;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 1314:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MeasurementData), END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ if (iso2MeasurementDataListType->MeasurementData.arrayLen < iso2MeasurementDataListType_MeasurementData_ARRAY_SIZE) {
+ /* First(xsi:type)StartTag[CHARACTERS[UNSIGNED_INTEGER]] */
+ errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
+ if(errn == 0) {
+ if(eventCode == 0) {
+ errn = decodeUnsignedInteger16(stream, &iso2MeasurementDataListType->MeasurementData.array[iso2MeasurementDataListType->MeasurementData.arrayLen]);
+ iso2MeasurementDataListType->MeasurementData.arrayLen++;
+ } else {
+ /* Second level event (e.g., xsi:type, xsi:nil, ...) */
+ errn = EXI_UNSUPPORTED_EVENT_CODE_CHARACTERISTICS;
+ }
+ }
+ } else {
+ errn = EXI_ERROR_OUT_OF_BOUNDS;
+ }
+ if(errn == 0) {
+ /* valid EE for simple element START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MeasurementData) ? */
+ errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
+ if(eventCode == 0) {
+ grammarID = 1315;
+ } else {
+ errn = EXI_DEVIANT_SUPPORT_NOT_DEPLOYED; /* or also typecast and nillable */
+ }
+ }
+ break;
+ case 1:
+ done = 1;
+ grammarID = 4;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 1315:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MeasurementData), END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ if (iso2MeasurementDataListType->MeasurementData.arrayLen < iso2MeasurementDataListType_MeasurementData_ARRAY_SIZE) {
+ /* First(xsi:type)StartTag[CHARACTERS[UNSIGNED_INTEGER]] */
+ errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
+ if(errn == 0) {
+ if(eventCode == 0) {
+ errn = decodeUnsignedInteger16(stream, &iso2MeasurementDataListType->MeasurementData.array[iso2MeasurementDataListType->MeasurementData.arrayLen]);
+ iso2MeasurementDataListType->MeasurementData.arrayLen++;
+ } else {
+ /* Second level event (e.g., xsi:type, xsi:nil, ...) */
+ errn = EXI_UNSUPPORTED_EVENT_CODE_CHARACTERISTICS;
+ }
+ }
+ } else {
+ errn = EXI_ERROR_OUT_OF_BOUNDS;
+ }
+ if(errn == 0) {
+ /* valid EE for simple element START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MeasurementData) ? */
+ errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
+ if(eventCode == 0) {
+ grammarID = 1316;
+ } else {
+ errn = EXI_DEVIANT_SUPPORT_NOT_DEPLOYED; /* or also typecast and nillable */
+ }
+ }
+ break;
+ case 1:
+ done = 1;
+ grammarID = 4;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 1316:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MeasurementData), END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ if (iso2MeasurementDataListType->MeasurementData.arrayLen < iso2MeasurementDataListType_MeasurementData_ARRAY_SIZE) {
+ /* First(xsi:type)StartTag[CHARACTERS[UNSIGNED_INTEGER]] */
+ errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
+ if(errn == 0) {
+ if(eventCode == 0) {
+ errn = decodeUnsignedInteger16(stream, &iso2MeasurementDataListType->MeasurementData.array[iso2MeasurementDataListType->MeasurementData.arrayLen]);
+ iso2MeasurementDataListType->MeasurementData.arrayLen++;
+ } else {
+ /* Second level event (e.g., xsi:type, xsi:nil, ...) */
+ errn = EXI_UNSUPPORTED_EVENT_CODE_CHARACTERISTICS;
+ }
+ }
+ } else {
+ errn = EXI_ERROR_OUT_OF_BOUNDS;
+ }
+ if(errn == 0) {
+ /* valid EE for simple element START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MeasurementData) ? */
+ errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
+ if(eventCode == 0) {
+ grammarID = 1317;
+ } else {
+ errn = EXI_DEVIANT_SUPPORT_NOT_DEPLOYED; /* or also typecast and nillable */
+ }
+ }
+ break;
+ case 1:
+ done = 1;
+ grammarID = 4;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 1317:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MeasurementData), END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ if (iso2MeasurementDataListType->MeasurementData.arrayLen < iso2MeasurementDataListType_MeasurementData_ARRAY_SIZE) {
+ /* First(xsi:type)StartTag[CHARACTERS[UNSIGNED_INTEGER]] */
+ errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
+ if(errn == 0) {
+ if(eventCode == 0) {
+ errn = decodeUnsignedInteger16(stream, &iso2MeasurementDataListType->MeasurementData.array[iso2MeasurementDataListType->MeasurementData.arrayLen]);
+ iso2MeasurementDataListType->MeasurementData.arrayLen++;
+ } else {
+ /* Second level event (e.g., xsi:type, xsi:nil, ...) */
+ errn = EXI_UNSUPPORTED_EVENT_CODE_CHARACTERISTICS;
+ }
+ }
+ } else {
+ errn = EXI_ERROR_OUT_OF_BOUNDS;
+ }
+ if(errn == 0) {
+ /* valid EE for simple element START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MeasurementData) ? */
+ errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
+ if(eventCode == 0) {
+ grammarID = 1318;
+ } else {
+ errn = EXI_DEVIANT_SUPPORT_NOT_DEPLOYED; /* or also typecast and nillable */
+ }
+ }
+ break;
+ case 1:
+ done = 1;
+ grammarID = 4;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 1318:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MeasurementData), END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ if (iso2MeasurementDataListType->MeasurementData.arrayLen < iso2MeasurementDataListType_MeasurementData_ARRAY_SIZE) {
+ /* First(xsi:type)StartTag[CHARACTERS[UNSIGNED_INTEGER]] */
+ errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
+ if(errn == 0) {
+ if(eventCode == 0) {
+ errn = decodeUnsignedInteger16(stream, &iso2MeasurementDataListType->MeasurementData.array[iso2MeasurementDataListType->MeasurementData.arrayLen]);
+ iso2MeasurementDataListType->MeasurementData.arrayLen++;
+ } else {
+ /* Second level event (e.g., xsi:type, xsi:nil, ...) */
+ errn = EXI_UNSUPPORTED_EVENT_CODE_CHARACTERISTICS;
+ }
+ }
+ } else {
+ errn = EXI_ERROR_OUT_OF_BOUNDS;
+ }
+ if(errn == 0) {
+ /* valid EE for simple element START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MeasurementData) ? */
+ errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
+ if(eventCode == 0) {
+ grammarID = 1319;
+ } else {
+ errn = EXI_DEVIANT_SUPPORT_NOT_DEPLOYED; /* or also typecast and nillable */
+ }
+ }
+ break;
+ case 1:
+ done = 1;
+ grammarID = 4;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 1319:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MeasurementData), END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ if (iso2MeasurementDataListType->MeasurementData.arrayLen < iso2MeasurementDataListType_MeasurementData_ARRAY_SIZE) {
+ /* First(xsi:type)StartTag[CHARACTERS[UNSIGNED_INTEGER]] */
+ errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
+ if(errn == 0) {
+ if(eventCode == 0) {
+ errn = decodeUnsignedInteger16(stream, &iso2MeasurementDataListType->MeasurementData.array[iso2MeasurementDataListType->MeasurementData.arrayLen]);
+ iso2MeasurementDataListType->MeasurementData.arrayLen++;
+ } else {
+ /* Second level event (e.g., xsi:type, xsi:nil, ...) */
+ errn = EXI_UNSUPPORTED_EVENT_CODE_CHARACTERISTICS;
+ }
+ }
+ } else {
+ errn = EXI_ERROR_OUT_OF_BOUNDS;
+ }
+ if(errn == 0) {
+ /* valid EE for simple element START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MeasurementData) ? */
+ errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
+ if(eventCode == 0) {
+ grammarID = 1320;
+ } else {
+ errn = EXI_DEVIANT_SUPPORT_NOT_DEPLOYED; /* or also typecast and nillable */
+ }
+ }
+ break;
+ case 1:
+ done = 1;
+ grammarID = 4;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 1320:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MeasurementData), END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ if (iso2MeasurementDataListType->MeasurementData.arrayLen < iso2MeasurementDataListType_MeasurementData_ARRAY_SIZE) {
+ /* First(xsi:type)StartTag[CHARACTERS[UNSIGNED_INTEGER]] */
+ errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
+ if(errn == 0) {
+ if(eventCode == 0) {
+ errn = decodeUnsignedInteger16(stream, &iso2MeasurementDataListType->MeasurementData.array[iso2MeasurementDataListType->MeasurementData.arrayLen]);
+ iso2MeasurementDataListType->MeasurementData.arrayLen++;
+ } else {
+ /* Second level event (e.g., xsi:type, xsi:nil, ...) */
+ errn = EXI_UNSUPPORTED_EVENT_CODE_CHARACTERISTICS;
+ }
+ }
+ } else {
+ errn = EXI_ERROR_OUT_OF_BOUNDS;
+ }
+ if(errn == 0) {
+ /* valid EE for simple element START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MeasurementData) ? */
+ errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
+ if(eventCode == 0) {
+ grammarID = 1321;
+ } else {
+ errn = EXI_DEVIANT_SUPPORT_NOT_DEPLOYED; /* or also typecast and nillable */
+ }
+ }
+ break;
+ case 1:
+ done = 1;
+ grammarID = 4;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 1321:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MeasurementData), END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ if (iso2MeasurementDataListType->MeasurementData.arrayLen < iso2MeasurementDataListType_MeasurementData_ARRAY_SIZE) {
+ /* First(xsi:type)StartTag[CHARACTERS[UNSIGNED_INTEGER]] */
+ errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
+ if(errn == 0) {
+ if(eventCode == 0) {
+ errn = decodeUnsignedInteger16(stream, &iso2MeasurementDataListType->MeasurementData.array[iso2MeasurementDataListType->MeasurementData.arrayLen]);
+ iso2MeasurementDataListType->MeasurementData.arrayLen++;
+ } else {
+ /* Second level event (e.g., xsi:type, xsi:nil, ...) */
+ errn = EXI_UNSUPPORTED_EVENT_CODE_CHARACTERISTICS;
+ }
+ }
+ } else {
+ errn = EXI_ERROR_OUT_OF_BOUNDS;
+ }
+ if(errn == 0) {
+ /* valid EE for simple element START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MeasurementData) ? */
+ errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
+ if(eventCode == 0) {
+ grammarID = 1322;
+ } else {
+ errn = EXI_DEVIANT_SUPPORT_NOT_DEPLOYED; /* or also typecast and nillable */
+ }
+ }
+ break;
+ case 1:
+ done = 1;
+ grammarID = 4;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 1322:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MeasurementData), END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ if (iso2MeasurementDataListType->MeasurementData.arrayLen < iso2MeasurementDataListType_MeasurementData_ARRAY_SIZE) {
+ /* First(xsi:type)StartTag[CHARACTERS[UNSIGNED_INTEGER]] */
+ errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
+ if(errn == 0) {
+ if(eventCode == 0) {
+ errn = decodeUnsignedInteger16(stream, &iso2MeasurementDataListType->MeasurementData.array[iso2MeasurementDataListType->MeasurementData.arrayLen]);
+ iso2MeasurementDataListType->MeasurementData.arrayLen++;
+ } else {
+ /* Second level event (e.g., xsi:type, xsi:nil, ...) */
+ errn = EXI_UNSUPPORTED_EVENT_CODE_CHARACTERISTICS;
+ }
+ }
+ } else {
+ errn = EXI_ERROR_OUT_OF_BOUNDS;
+ }
+ if(errn == 0) {
+ /* valid EE for simple element START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MeasurementData) ? */
+ errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
+ if(eventCode == 0) {
+ grammarID = 1323;
+ } else {
+ errn = EXI_DEVIANT_SUPPORT_NOT_DEPLOYED; /* or also typecast and nillable */
+ }
+ }
+ break;
+ case 1:
+ done = 1;
+ grammarID = 4;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 1323:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MeasurementData), END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ if (iso2MeasurementDataListType->MeasurementData.arrayLen < iso2MeasurementDataListType_MeasurementData_ARRAY_SIZE) {
+ /* First(xsi:type)StartTag[CHARACTERS[UNSIGNED_INTEGER]] */
+ errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
+ if(errn == 0) {
+ if(eventCode == 0) {
+ errn = decodeUnsignedInteger16(stream, &iso2MeasurementDataListType->MeasurementData.array[iso2MeasurementDataListType->MeasurementData.arrayLen]);
+ iso2MeasurementDataListType->MeasurementData.arrayLen++;
+ } else {
+ /* Second level event (e.g., xsi:type, xsi:nil, ...) */
+ errn = EXI_UNSUPPORTED_EVENT_CODE_CHARACTERISTICS;
+ }
+ }
+ } else {
+ errn = EXI_ERROR_OUT_OF_BOUNDS;
+ }
+ if(errn == 0) {
+ /* valid EE for simple element START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MeasurementData) ? */
+ errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
+ if(eventCode == 0) {
+ grammarID = 1324;
+ } else {
+ errn = EXI_DEVIANT_SUPPORT_NOT_DEPLOYED; /* or also typecast and nillable */
+ }
+ }
+ break;
+ case 1:
+ done = 1;
+ grammarID = 4;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 1324:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MeasurementData), END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ if (iso2MeasurementDataListType->MeasurementData.arrayLen < iso2MeasurementDataListType_MeasurementData_ARRAY_SIZE) {
+ /* First(xsi:type)StartTag[CHARACTERS[UNSIGNED_INTEGER]] */
+ errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
+ if(errn == 0) {
+ if(eventCode == 0) {
+ errn = decodeUnsignedInteger16(stream, &iso2MeasurementDataListType->MeasurementData.array[iso2MeasurementDataListType->MeasurementData.arrayLen]);
+ iso2MeasurementDataListType->MeasurementData.arrayLen++;
+ } else {
+ /* Second level event (e.g., xsi:type, xsi:nil, ...) */
+ errn = EXI_UNSUPPORTED_EVENT_CODE_CHARACTERISTICS;
+ }
+ }
+ } else {
+ errn = EXI_ERROR_OUT_OF_BOUNDS;
+ }
+ if(errn == 0) {
+ /* valid EE for simple element START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MeasurementData) ? */
+ errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
+ if(eventCode == 0) {
+ grammarID = 1325;
+ } else {
+ errn = EXI_DEVIANT_SUPPORT_NOT_DEPLOYED; /* or also typecast and nillable */
+ }
+ }
+ break;
+ case 1:
+ done = 1;
+ grammarID = 4;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 1325:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MeasurementData), END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ if (iso2MeasurementDataListType->MeasurementData.arrayLen < iso2MeasurementDataListType_MeasurementData_ARRAY_SIZE) {
+ /* First(xsi:type)StartTag[CHARACTERS[UNSIGNED_INTEGER]] */
+ errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
+ if(errn == 0) {
+ if(eventCode == 0) {
+ errn = decodeUnsignedInteger16(stream, &iso2MeasurementDataListType->MeasurementData.array[iso2MeasurementDataListType->MeasurementData.arrayLen]);
+ iso2MeasurementDataListType->MeasurementData.arrayLen++;
+ } else {
+ /* Second level event (e.g., xsi:type, xsi:nil, ...) */
+ errn = EXI_UNSUPPORTED_EVENT_CODE_CHARACTERISTICS;
+ }
+ }
+ } else {
+ errn = EXI_ERROR_OUT_OF_BOUNDS;
+ }
+ if(errn == 0) {
+ /* valid EE for simple element START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MeasurementData) ? */
+ errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
+ if(eventCode == 0) {
+ grammarID = 1326;
+ } else {
+ errn = EXI_DEVIANT_SUPPORT_NOT_DEPLOYED; /* or also typecast and nillable */
+ }
+ }
+ break;
+ case 1:
+ done = 1;
+ grammarID = 4;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 1326:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MeasurementData), END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ if (iso2MeasurementDataListType->MeasurementData.arrayLen < iso2MeasurementDataListType_MeasurementData_ARRAY_SIZE) {
+ /* First(xsi:type)StartTag[CHARACTERS[UNSIGNED_INTEGER]] */
+ errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
+ if(errn == 0) {
+ if(eventCode == 0) {
+ errn = decodeUnsignedInteger16(stream, &iso2MeasurementDataListType->MeasurementData.array[iso2MeasurementDataListType->MeasurementData.arrayLen]);
+ iso2MeasurementDataListType->MeasurementData.arrayLen++;
+ } else {
+ /* Second level event (e.g., xsi:type, xsi:nil, ...) */
+ errn = EXI_UNSUPPORTED_EVENT_CODE_CHARACTERISTICS;
+ }
+ }
+ } else {
+ errn = EXI_ERROR_OUT_OF_BOUNDS;
+ }
+ if(errn == 0) {
+ /* valid EE for simple element START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MeasurementData) ? */
+ errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
+ if(eventCode == 0) {
+ grammarID = 1327;
+ } else {
+ errn = EXI_DEVIANT_SUPPORT_NOT_DEPLOYED; /* or also typecast and nillable */
+ }
+ }
+ break;
+ case 1:
+ done = 1;
+ grammarID = 4;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 1327:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MeasurementData), END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ if (iso2MeasurementDataListType->MeasurementData.arrayLen < iso2MeasurementDataListType_MeasurementData_ARRAY_SIZE) {
+ /* First(xsi:type)StartTag[CHARACTERS[UNSIGNED_INTEGER]] */
+ errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
+ if(errn == 0) {
+ if(eventCode == 0) {
+ errn = decodeUnsignedInteger16(stream, &iso2MeasurementDataListType->MeasurementData.array[iso2MeasurementDataListType->MeasurementData.arrayLen]);
+ iso2MeasurementDataListType->MeasurementData.arrayLen++;
+ } else {
+ /* Second level event (e.g., xsi:type, xsi:nil, ...) */
+ errn = EXI_UNSUPPORTED_EVENT_CODE_CHARACTERISTICS;
+ }
+ }
+ } else {
+ errn = EXI_ERROR_OUT_OF_BOUNDS;
+ }
+ if(errn == 0) {
+ /* valid EE for simple element START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MeasurementData) ? */
+ errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
+ if(eventCode == 0) {
+ grammarID = 1328;
+ } else {
+ errn = EXI_DEVIANT_SUPPORT_NOT_DEPLOYED; /* or also typecast and nillable */
+ }
+ }
+ break;
+ case 1:
+ done = 1;
+ grammarID = 4;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 1328:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MeasurementData), END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ if (iso2MeasurementDataListType->MeasurementData.arrayLen < iso2MeasurementDataListType_MeasurementData_ARRAY_SIZE) {
+ /* First(xsi:type)StartTag[CHARACTERS[UNSIGNED_INTEGER]] */
+ errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
+ if(errn == 0) {
+ if(eventCode == 0) {
+ errn = decodeUnsignedInteger16(stream, &iso2MeasurementDataListType->MeasurementData.array[iso2MeasurementDataListType->MeasurementData.arrayLen]);
+ iso2MeasurementDataListType->MeasurementData.arrayLen++;
+ } else {
+ /* Second level event (e.g., xsi:type, xsi:nil, ...) */
+ errn = EXI_UNSUPPORTED_EVENT_CODE_CHARACTERISTICS;
+ }
+ }
+ } else {
+ errn = EXI_ERROR_OUT_OF_BOUNDS;
+ }
+ if(errn == 0) {
+ /* valid EE for simple element START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MeasurementData) ? */
+ errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
+ if(eventCode == 0) {
+ grammarID = 1329;
+ } else {
+ errn = EXI_DEVIANT_SUPPORT_NOT_DEPLOYED; /* or also typecast and nillable */
+ }
+ }
+ break;
+ case 1:
+ done = 1;
+ grammarID = 4;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 1329:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MeasurementData), END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ if (iso2MeasurementDataListType->MeasurementData.arrayLen < iso2MeasurementDataListType_MeasurementData_ARRAY_SIZE) {
+ /* First(xsi:type)StartTag[CHARACTERS[UNSIGNED_INTEGER]] */
+ errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
+ if(errn == 0) {
+ if(eventCode == 0) {
+ errn = decodeUnsignedInteger16(stream, &iso2MeasurementDataListType->MeasurementData.array[iso2MeasurementDataListType->MeasurementData.arrayLen]);
+ iso2MeasurementDataListType->MeasurementData.arrayLen++;
+ } else {
+ /* Second level event (e.g., xsi:type, xsi:nil, ...) */
+ errn = EXI_UNSUPPORTED_EVENT_CODE_CHARACTERISTICS;
+ }
+ }
+ } else {
+ errn = EXI_ERROR_OUT_OF_BOUNDS;
+ }
+ if(errn == 0) {
+ /* valid EE for simple element START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MeasurementData) ? */
+ errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
+ if(eventCode == 0) {
+ grammarID = 1330;
+ } else {
+ errn = EXI_DEVIANT_SUPPORT_NOT_DEPLOYED; /* or also typecast and nillable */
+ }
+ }
+ break;
+ case 1:
+ done = 1;
+ grammarID = 4;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 1330:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MeasurementData), END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ if (iso2MeasurementDataListType->MeasurementData.arrayLen < iso2MeasurementDataListType_MeasurementData_ARRAY_SIZE) {
+ /* First(xsi:type)StartTag[CHARACTERS[UNSIGNED_INTEGER]] */
+ errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
+ if(errn == 0) {
+ if(eventCode == 0) {
+ errn = decodeUnsignedInteger16(stream, &iso2MeasurementDataListType->MeasurementData.array[iso2MeasurementDataListType->MeasurementData.arrayLen]);
+ iso2MeasurementDataListType->MeasurementData.arrayLen++;
+ } else {
+ /* Second level event (e.g., xsi:type, xsi:nil, ...) */
+ errn = EXI_UNSUPPORTED_EVENT_CODE_CHARACTERISTICS;
+ }
+ }
+ } else {
+ errn = EXI_ERROR_OUT_OF_BOUNDS;
+ }
+ if(errn == 0) {
+ /* valid EE for simple element START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MeasurementData) ? */
+ errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
+ if(eventCode == 0) {
+ grammarID = 1331;
+ } else {
+ errn = EXI_DEVIANT_SUPPORT_NOT_DEPLOYED; /* or also typecast and nillable */
+ }
+ }
+ break;
+ case 1:
+ done = 1;
+ grammarID = 4;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 1331:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MeasurementData), END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ if (iso2MeasurementDataListType->MeasurementData.arrayLen < iso2MeasurementDataListType_MeasurementData_ARRAY_SIZE) {
+ /* First(xsi:type)StartTag[CHARACTERS[UNSIGNED_INTEGER]] */
+ errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
+ if(errn == 0) {
+ if(eventCode == 0) {
+ errn = decodeUnsignedInteger16(stream, &iso2MeasurementDataListType->MeasurementData.array[iso2MeasurementDataListType->MeasurementData.arrayLen]);
+ iso2MeasurementDataListType->MeasurementData.arrayLen++;
+ } else {
+ /* Second level event (e.g., xsi:type, xsi:nil, ...) */
+ errn = EXI_UNSUPPORTED_EVENT_CODE_CHARACTERISTICS;
+ }
+ }
+ } else {
+ errn = EXI_ERROR_OUT_OF_BOUNDS;
+ }
+ if(errn == 0) {
+ /* valid EE for simple element START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MeasurementData) ? */
+ errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
+ if(eventCode == 0) {
+ grammarID = 1332;
+ } else {
+ errn = EXI_DEVIANT_SUPPORT_NOT_DEPLOYED; /* or also typecast and nillable */
+ }
+ }
+ break;
+ case 1:
+ done = 1;
+ grammarID = 4;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 1332:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MeasurementData), END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ if (iso2MeasurementDataListType->MeasurementData.arrayLen < iso2MeasurementDataListType_MeasurementData_ARRAY_SIZE) {
+ /* First(xsi:type)StartTag[CHARACTERS[UNSIGNED_INTEGER]] */
+ errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
+ if(errn == 0) {
+ if(eventCode == 0) {
+ errn = decodeUnsignedInteger16(stream, &iso2MeasurementDataListType->MeasurementData.array[iso2MeasurementDataListType->MeasurementData.arrayLen]);
+ iso2MeasurementDataListType->MeasurementData.arrayLen++;
+ } else {
+ /* Second level event (e.g., xsi:type, xsi:nil, ...) */
+ errn = EXI_UNSUPPORTED_EVENT_CODE_CHARACTERISTICS;
+ }
+ }
+ } else {
+ errn = EXI_ERROR_OUT_OF_BOUNDS;
+ }
+ if(errn == 0) {
+ /* valid EE for simple element START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MeasurementData) ? */
+ errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
+ if(eventCode == 0) {
+ grammarID = 1333;
+ } else {
+ errn = EXI_DEVIANT_SUPPORT_NOT_DEPLOYED; /* or also typecast and nillable */
+ }
+ }
+ break;
+ case 1:
+ done = 1;
+ grammarID = 4;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 1333:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MeasurementData), END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ if (iso2MeasurementDataListType->MeasurementData.arrayLen < iso2MeasurementDataListType_MeasurementData_ARRAY_SIZE) {
+ /* First(xsi:type)StartTag[CHARACTERS[UNSIGNED_INTEGER]] */
+ errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
+ if(errn == 0) {
+ if(eventCode == 0) {
+ errn = decodeUnsignedInteger16(stream, &iso2MeasurementDataListType->MeasurementData.array[iso2MeasurementDataListType->MeasurementData.arrayLen]);
+ iso2MeasurementDataListType->MeasurementData.arrayLen++;
+ } else {
+ /* Second level event (e.g., xsi:type, xsi:nil, ...) */
+ errn = EXI_UNSUPPORTED_EVENT_CODE_CHARACTERISTICS;
+ }
+ }
+ } else {
+ errn = EXI_ERROR_OUT_OF_BOUNDS;
+ }
+ if(errn == 0) {
+ /* valid EE for simple element START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MeasurementData) ? */
+ errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
+ if(eventCode == 0) {
+ grammarID = 1334;
+ } else {
+ errn = EXI_DEVIANT_SUPPORT_NOT_DEPLOYED; /* or also typecast and nillable */
+ }
+ }
+ break;
+ case 1:
+ done = 1;
+ grammarID = 4;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 1334:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MeasurementData), END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ if (iso2MeasurementDataListType->MeasurementData.arrayLen < iso2MeasurementDataListType_MeasurementData_ARRAY_SIZE) {
+ /* First(xsi:type)StartTag[CHARACTERS[UNSIGNED_INTEGER]] */
+ errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
+ if(errn == 0) {
+ if(eventCode == 0) {
+ errn = decodeUnsignedInteger16(stream, &iso2MeasurementDataListType->MeasurementData.array[iso2MeasurementDataListType->MeasurementData.arrayLen]);
+ iso2MeasurementDataListType->MeasurementData.arrayLen++;
+ } else {
+ /* Second level event (e.g., xsi:type, xsi:nil, ...) */
+ errn = EXI_UNSUPPORTED_EVENT_CODE_CHARACTERISTICS;
+ }
+ }
+ } else {
+ errn = EXI_ERROR_OUT_OF_BOUNDS;
+ }
+ if(errn == 0) {
+ /* valid EE for simple element START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MeasurementData) ? */
+ errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
+ if(eventCode == 0) {
+ grammarID = 1335;
+ } else {
+ errn = EXI_DEVIANT_SUPPORT_NOT_DEPLOYED; /* or also typecast and nillable */
+ }
+ }
+ break;
+ case 1:
+ done = 1;
+ grammarID = 4;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 1335:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MeasurementData), END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ if (iso2MeasurementDataListType->MeasurementData.arrayLen < iso2MeasurementDataListType_MeasurementData_ARRAY_SIZE) {
+ /* First(xsi:type)StartTag[CHARACTERS[UNSIGNED_INTEGER]] */
+ errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
+ if(errn == 0) {
+ if(eventCode == 0) {
+ errn = decodeUnsignedInteger16(stream, &iso2MeasurementDataListType->MeasurementData.array[iso2MeasurementDataListType->MeasurementData.arrayLen]);
+ iso2MeasurementDataListType->MeasurementData.arrayLen++;
+ } else {
+ /* Second level event (e.g., xsi:type, xsi:nil, ...) */
+ errn = EXI_UNSUPPORTED_EVENT_CODE_CHARACTERISTICS;
+ }
+ }
+ } else {
+ errn = EXI_ERROR_OUT_OF_BOUNDS;
+ }
+ if(errn == 0) {
+ /* valid EE for simple element START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MeasurementData) ? */
+ errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
+ if(eventCode == 0) {
+ grammarID = 1336;
+ } else {
+ errn = EXI_DEVIANT_SUPPORT_NOT_DEPLOYED; /* or also typecast and nillable */
+ }
+ }
+ break;
+ case 1:
+ done = 1;
+ grammarID = 4;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 1336:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MeasurementData), END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ if (iso2MeasurementDataListType->MeasurementData.arrayLen < iso2MeasurementDataListType_MeasurementData_ARRAY_SIZE) {
+ /* First(xsi:type)StartTag[CHARACTERS[UNSIGNED_INTEGER]] */
+ errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
+ if(errn == 0) {
+ if(eventCode == 0) {
+ errn = decodeUnsignedInteger16(stream, &iso2MeasurementDataListType->MeasurementData.array[iso2MeasurementDataListType->MeasurementData.arrayLen]);
+ iso2MeasurementDataListType->MeasurementData.arrayLen++;
+ } else {
+ /* Second level event (e.g., xsi:type, xsi:nil, ...) */
+ errn = EXI_UNSUPPORTED_EVENT_CODE_CHARACTERISTICS;
+ }
+ }
+ } else {
+ errn = EXI_ERROR_OUT_OF_BOUNDS;
+ }
+ if(errn == 0) {
+ /* valid EE for simple element START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MeasurementData) ? */
+ errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
+ if(eventCode == 0) {
+ grammarID = 1337;
+ } else {
+ errn = EXI_DEVIANT_SUPPORT_NOT_DEPLOYED; /* or also typecast and nillable */
+ }
+ }
+ break;
+ case 1:
+ done = 1;
+ grammarID = 4;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 1337:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MeasurementData), END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ if (iso2MeasurementDataListType->MeasurementData.arrayLen < iso2MeasurementDataListType_MeasurementData_ARRAY_SIZE) {
+ /* First(xsi:type)StartTag[CHARACTERS[UNSIGNED_INTEGER]] */
+ errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
+ if(errn == 0) {
+ if(eventCode == 0) {
+ errn = decodeUnsignedInteger16(stream, &iso2MeasurementDataListType->MeasurementData.array[iso2MeasurementDataListType->MeasurementData.arrayLen]);
+ iso2MeasurementDataListType->MeasurementData.arrayLen++;
+ } else {
+ /* Second level event (e.g., xsi:type, xsi:nil, ...) */
+ errn = EXI_UNSUPPORTED_EVENT_CODE_CHARACTERISTICS;
+ }
+ }
+ } else {
+ errn = EXI_ERROR_OUT_OF_BOUNDS;
+ }
+ if(errn == 0) {
+ /* valid EE for simple element START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MeasurementData) ? */
+ errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
+ if(eventCode == 0) {
+ grammarID = 1338;
+ } else {
+ errn = EXI_DEVIANT_SUPPORT_NOT_DEPLOYED; /* or also typecast and nillable */
+ }
+ }
+ break;
+ case 1:
+ done = 1;
+ grammarID = 4;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 1338:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MeasurementData), END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ if (iso2MeasurementDataListType->MeasurementData.arrayLen < iso2MeasurementDataListType_MeasurementData_ARRAY_SIZE) {
+ /* First(xsi:type)StartTag[CHARACTERS[UNSIGNED_INTEGER]] */
+ errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
+ if(errn == 0) {
+ if(eventCode == 0) {
+ errn = decodeUnsignedInteger16(stream, &iso2MeasurementDataListType->MeasurementData.array[iso2MeasurementDataListType->MeasurementData.arrayLen]);
+ iso2MeasurementDataListType->MeasurementData.arrayLen++;
+ } else {
+ /* Second level event (e.g., xsi:type, xsi:nil, ...) */
+ errn = EXI_UNSUPPORTED_EVENT_CODE_CHARACTERISTICS;
+ }
+ }
+ } else {
+ errn = EXI_ERROR_OUT_OF_BOUNDS;
+ }
+ if(errn == 0) {
+ /* valid EE for simple element START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MeasurementData) ? */
+ errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
+ if(eventCode == 0) {
+ grammarID = 1339;
+ } else {
+ errn = EXI_DEVIANT_SUPPORT_NOT_DEPLOYED; /* or also typecast and nillable */
+ }
+ }
+ break;
+ case 1:
+ done = 1;
+ grammarID = 4;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 1339:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MeasurementData), END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ if (iso2MeasurementDataListType->MeasurementData.arrayLen < iso2MeasurementDataListType_MeasurementData_ARRAY_SIZE) {
+ /* First(xsi:type)StartTag[CHARACTERS[UNSIGNED_INTEGER]] */
+ errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
+ if(errn == 0) {
+ if(eventCode == 0) {
+ errn = decodeUnsignedInteger16(stream, &iso2MeasurementDataListType->MeasurementData.array[iso2MeasurementDataListType->MeasurementData.arrayLen]);
+ iso2MeasurementDataListType->MeasurementData.arrayLen++;
+ } else {
+ /* Second level event (e.g., xsi:type, xsi:nil, ...) */
+ errn = EXI_UNSUPPORTED_EVENT_CODE_CHARACTERISTICS;
+ }
+ }
+ } else {
+ errn = EXI_ERROR_OUT_OF_BOUNDS;
+ }
+ if(errn == 0) {
+ /* valid EE for simple element START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MeasurementData) ? */
+ errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
+ if(eventCode == 0) {
+ grammarID = 1340;
+ } else {
+ errn = EXI_DEVIANT_SUPPORT_NOT_DEPLOYED; /* or also typecast and nillable */
+ }
+ }
+ break;
+ case 1:
+ done = 1;
+ grammarID = 4;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 1340:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MeasurementData), END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ if (iso2MeasurementDataListType->MeasurementData.arrayLen < iso2MeasurementDataListType_MeasurementData_ARRAY_SIZE) {
+ /* First(xsi:type)StartTag[CHARACTERS[UNSIGNED_INTEGER]] */
+ errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
+ if(errn == 0) {
+ if(eventCode == 0) {
+ errn = decodeUnsignedInteger16(stream, &iso2MeasurementDataListType->MeasurementData.array[iso2MeasurementDataListType->MeasurementData.arrayLen]);
+ iso2MeasurementDataListType->MeasurementData.arrayLen++;
+ } else {
+ /* Second level event (e.g., xsi:type, xsi:nil, ...) */
+ errn = EXI_UNSUPPORTED_EVENT_CODE_CHARACTERISTICS;
+ }
+ }
+ } else {
+ errn = EXI_ERROR_OUT_OF_BOUNDS;
+ }
+ if(errn == 0) {
+ /* valid EE for simple element START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MeasurementData) ? */
+ errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
+ if(eventCode == 0) {
+ grammarID = 1341;
+ } else {
+ errn = EXI_DEVIANT_SUPPORT_NOT_DEPLOYED; /* or also typecast and nillable */
+ }
+ }
+ break;
+ case 1:
+ done = 1;
+ grammarID = 4;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 1341:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MeasurementData), END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ if (iso2MeasurementDataListType->MeasurementData.arrayLen < iso2MeasurementDataListType_MeasurementData_ARRAY_SIZE) {
+ /* First(xsi:type)StartTag[CHARACTERS[UNSIGNED_INTEGER]] */
+ errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
+ if(errn == 0) {
+ if(eventCode == 0) {
+ errn = decodeUnsignedInteger16(stream, &iso2MeasurementDataListType->MeasurementData.array[iso2MeasurementDataListType->MeasurementData.arrayLen]);
+ iso2MeasurementDataListType->MeasurementData.arrayLen++;
+ } else {
+ /* Second level event (e.g., xsi:type, xsi:nil, ...) */
+ errn = EXI_UNSUPPORTED_EVENT_CODE_CHARACTERISTICS;
+ }
+ }
+ } else {
+ errn = EXI_ERROR_OUT_OF_BOUNDS;
+ }
+ if(errn == 0) {
+ /* valid EE for simple element START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MeasurementData) ? */
+ errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
+ if(eventCode == 0) {
+ grammarID = 1342;
+ } else {
+ errn = EXI_DEVIANT_SUPPORT_NOT_DEPLOYED; /* or also typecast and nillable */
+ }
+ }
+ break;
+ case 1:
+ done = 1;
+ grammarID = 4;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 1342:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MeasurementData), END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ if (iso2MeasurementDataListType->MeasurementData.arrayLen < iso2MeasurementDataListType_MeasurementData_ARRAY_SIZE) {
+ /* First(xsi:type)StartTag[CHARACTERS[UNSIGNED_INTEGER]] */
+ errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
+ if(errn == 0) {
+ if(eventCode == 0) {
+ errn = decodeUnsignedInteger16(stream, &iso2MeasurementDataListType->MeasurementData.array[iso2MeasurementDataListType->MeasurementData.arrayLen]);
+ iso2MeasurementDataListType->MeasurementData.arrayLen++;
+ } else {
+ /* Second level event (e.g., xsi:type, xsi:nil, ...) */
+ errn = EXI_UNSUPPORTED_EVENT_CODE_CHARACTERISTICS;
+ }
+ }
+ } else {
+ errn = EXI_ERROR_OUT_OF_BOUNDS;
+ }
+ if(errn == 0) {
+ /* valid EE for simple element START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MeasurementData) ? */
+ errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
+ if(eventCode == 0) {
+ grammarID = 1343;
+ } else {
+ errn = EXI_DEVIANT_SUPPORT_NOT_DEPLOYED; /* or also typecast and nillable */
+ }
+ }
+ break;
+ case 1:
+ done = 1;
+ grammarID = 4;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 1343:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MeasurementData), END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ if (iso2MeasurementDataListType->MeasurementData.arrayLen < iso2MeasurementDataListType_MeasurementData_ARRAY_SIZE) {
+ /* First(xsi:type)StartTag[CHARACTERS[UNSIGNED_INTEGER]] */
+ errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
+ if(errn == 0) {
+ if(eventCode == 0) {
+ errn = decodeUnsignedInteger16(stream, &iso2MeasurementDataListType->MeasurementData.array[iso2MeasurementDataListType->MeasurementData.arrayLen]);
+ iso2MeasurementDataListType->MeasurementData.arrayLen++;
+ } else {
+ /* Second level event (e.g., xsi:type, xsi:nil, ...) */
+ errn = EXI_UNSUPPORTED_EVENT_CODE_CHARACTERISTICS;
+ }
+ }
+ } else {
+ errn = EXI_ERROR_OUT_OF_BOUNDS;
+ }
+ if(errn == 0) {
+ /* valid EE for simple element START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MeasurementData) ? */
+ errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
+ if(eventCode == 0) {
+ grammarID = 1344;
+ } else {
+ errn = EXI_DEVIANT_SUPPORT_NOT_DEPLOYED; /* or also typecast and nillable */
+ }
+ }
+ break;
+ case 1:
+ done = 1;
+ grammarID = 4;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 1344:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MeasurementData), END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ if (iso2MeasurementDataListType->MeasurementData.arrayLen < iso2MeasurementDataListType_MeasurementData_ARRAY_SIZE) {
+ /* First(xsi:type)StartTag[CHARACTERS[UNSIGNED_INTEGER]] */
+ errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
+ if(errn == 0) {
+ if(eventCode == 0) {
+ errn = decodeUnsignedInteger16(stream, &iso2MeasurementDataListType->MeasurementData.array[iso2MeasurementDataListType->MeasurementData.arrayLen]);
+ iso2MeasurementDataListType->MeasurementData.arrayLen++;
+ } else {
+ /* Second level event (e.g., xsi:type, xsi:nil, ...) */
+ errn = EXI_UNSUPPORTED_EVENT_CODE_CHARACTERISTICS;
+ }
+ }
+ } else {
+ errn = EXI_ERROR_OUT_OF_BOUNDS;
+ }
+ if(errn == 0) {
+ /* valid EE for simple element START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MeasurementData) ? */
+ errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
+ if(eventCode == 0) {
+ grammarID = 1345;
+ } else {
+ errn = EXI_DEVIANT_SUPPORT_NOT_DEPLOYED; /* or also typecast and nillable */
+ }
+ }
+ break;
+ case 1:
+ done = 1;
+ grammarID = 4;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 1345:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MeasurementData), END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ if (iso2MeasurementDataListType->MeasurementData.arrayLen < iso2MeasurementDataListType_MeasurementData_ARRAY_SIZE) {
+ /* First(xsi:type)StartTag[CHARACTERS[UNSIGNED_INTEGER]] */
+ errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
+ if(errn == 0) {
+ if(eventCode == 0) {
+ errn = decodeUnsignedInteger16(stream, &iso2MeasurementDataListType->MeasurementData.array[iso2MeasurementDataListType->MeasurementData.arrayLen]);
+ iso2MeasurementDataListType->MeasurementData.arrayLen++;
+ } else {
+ /* Second level event (e.g., xsi:type, xsi:nil, ...) */
+ errn = EXI_UNSUPPORTED_EVENT_CODE_CHARACTERISTICS;
+ }
+ }
+ } else {
+ errn = EXI_ERROR_OUT_OF_BOUNDS;
+ }
+ if(errn == 0) {
+ /* valid EE for simple element START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MeasurementData) ? */
+ errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
+ if(eventCode == 0) {
+ grammarID = 1346;
+ } else {
+ errn = EXI_DEVIANT_SUPPORT_NOT_DEPLOYED; /* or also typecast and nillable */
+ }
+ }
+ break;
+ case 1:
+ done = 1;
+ grammarID = 4;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 1346:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MeasurementData), END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ if (iso2MeasurementDataListType->MeasurementData.arrayLen < iso2MeasurementDataListType_MeasurementData_ARRAY_SIZE) {
+ /* First(xsi:type)StartTag[CHARACTERS[UNSIGNED_INTEGER]] */
+ errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
+ if(errn == 0) {
+ if(eventCode == 0) {
+ errn = decodeUnsignedInteger16(stream, &iso2MeasurementDataListType->MeasurementData.array[iso2MeasurementDataListType->MeasurementData.arrayLen]);
+ iso2MeasurementDataListType->MeasurementData.arrayLen++;
+ } else {
+ /* Second level event (e.g., xsi:type, xsi:nil, ...) */
+ errn = EXI_UNSUPPORTED_EVENT_CODE_CHARACTERISTICS;
+ }
+ }
+ } else {
+ errn = EXI_ERROR_OUT_OF_BOUNDS;
+ }
+ if(errn == 0) {
+ /* valid EE for simple element START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MeasurementData) ? */
+ errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
+ if(eventCode == 0) {
+ grammarID = 1347;
+ } else {
+ errn = EXI_DEVIANT_SUPPORT_NOT_DEPLOYED; /* or also typecast and nillable */
+ }
+ }
+ break;
+ case 1:
+ done = 1;
+ grammarID = 4;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 1347:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MeasurementData), END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ if (iso2MeasurementDataListType->MeasurementData.arrayLen < iso2MeasurementDataListType_MeasurementData_ARRAY_SIZE) {
+ /* First(xsi:type)StartTag[CHARACTERS[UNSIGNED_INTEGER]] */
+ errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
+ if(errn == 0) {
+ if(eventCode == 0) {
+ errn = decodeUnsignedInteger16(stream, &iso2MeasurementDataListType->MeasurementData.array[iso2MeasurementDataListType->MeasurementData.arrayLen]);
+ iso2MeasurementDataListType->MeasurementData.arrayLen++;
+ } else {
+ /* Second level event (e.g., xsi:type, xsi:nil, ...) */
+ errn = EXI_UNSUPPORTED_EVENT_CODE_CHARACTERISTICS;
+ }
+ }
+ } else {
+ errn = EXI_ERROR_OUT_OF_BOUNDS;
+ }
+ if(errn == 0) {
+ /* valid EE for simple element START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MeasurementData) ? */
+ errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
+ if(eventCode == 0) {
+ grammarID = 1348;
+ } else {
+ errn = EXI_DEVIANT_SUPPORT_NOT_DEPLOYED; /* or also typecast and nillable */
+ }
+ }
+ break;
+ case 1:
+ done = 1;
+ grammarID = 4;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 1348:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MeasurementData), END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ if (iso2MeasurementDataListType->MeasurementData.arrayLen < iso2MeasurementDataListType_MeasurementData_ARRAY_SIZE) {
+ /* First(xsi:type)StartTag[CHARACTERS[UNSIGNED_INTEGER]] */
+ errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
+ if(errn == 0) {
+ if(eventCode == 0) {
+ errn = decodeUnsignedInteger16(stream, &iso2MeasurementDataListType->MeasurementData.array[iso2MeasurementDataListType->MeasurementData.arrayLen]);
+ iso2MeasurementDataListType->MeasurementData.arrayLen++;
+ } else {
+ /* Second level event (e.g., xsi:type, xsi:nil, ...) */
+ errn = EXI_UNSUPPORTED_EVENT_CODE_CHARACTERISTICS;
+ }
+ }
+ } else {
+ errn = EXI_ERROR_OUT_OF_BOUNDS;
+ }
+ if(errn == 0) {
+ /* valid EE for simple element START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MeasurementData) ? */
+ errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
+ if(eventCode == 0) {
+ grammarID = 1349;
+ } else {
+ errn = EXI_DEVIANT_SUPPORT_NOT_DEPLOYED; /* or also typecast and nillable */
+ }
+ }
+ break;
+ case 1:
+ done = 1;
+ grammarID = 4;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 1349:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MeasurementData), END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ if (iso2MeasurementDataListType->MeasurementData.arrayLen < iso2MeasurementDataListType_MeasurementData_ARRAY_SIZE) {
+ /* First(xsi:type)StartTag[CHARACTERS[UNSIGNED_INTEGER]] */
+ errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
+ if(errn == 0) {
+ if(eventCode == 0) {
+ errn = decodeUnsignedInteger16(stream, &iso2MeasurementDataListType->MeasurementData.array[iso2MeasurementDataListType->MeasurementData.arrayLen]);
+ iso2MeasurementDataListType->MeasurementData.arrayLen++;
+ } else {
+ /* Second level event (e.g., xsi:type, xsi:nil, ...) */
+ errn = EXI_UNSUPPORTED_EVENT_CODE_CHARACTERISTICS;
+ }
+ }
+ } else {
+ errn = EXI_ERROR_OUT_OF_BOUNDS;
+ }
+ if(errn == 0) {
+ /* valid EE for simple element START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MeasurementData) ? */
+ errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
+ if(eventCode == 0) {
+ grammarID = 1350;
+ } else {
+ errn = EXI_DEVIANT_SUPPORT_NOT_DEPLOYED; /* or also typecast and nillable */
+ }
+ }
+ break;
+ case 1:
+ done = 1;
+ grammarID = 4;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 1350:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MeasurementData), END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ if (iso2MeasurementDataListType->MeasurementData.arrayLen < iso2MeasurementDataListType_MeasurementData_ARRAY_SIZE) {
+ /* First(xsi:type)StartTag[CHARACTERS[UNSIGNED_INTEGER]] */
+ errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
+ if(errn == 0) {
+ if(eventCode == 0) {
+ errn = decodeUnsignedInteger16(stream, &iso2MeasurementDataListType->MeasurementData.array[iso2MeasurementDataListType->MeasurementData.arrayLen]);
+ iso2MeasurementDataListType->MeasurementData.arrayLen++;
+ } else {
+ /* Second level event (e.g., xsi:type, xsi:nil, ...) */
+ errn = EXI_UNSUPPORTED_EVENT_CODE_CHARACTERISTICS;
+ }
+ }
+ } else {
+ errn = EXI_ERROR_OUT_OF_BOUNDS;
+ }
+ if(errn == 0) {
+ /* valid EE for simple element START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MeasurementData) ? */
+ errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
+ if(eventCode == 0) {
+ grammarID = 1351;
+ } else {
+ errn = EXI_DEVIANT_SUPPORT_NOT_DEPLOYED; /* or also typecast and nillable */
+ }
+ }
+ break;
+ case 1:
+ done = 1;
+ grammarID = 4;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 1351:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MeasurementData), END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ if (iso2MeasurementDataListType->MeasurementData.arrayLen < iso2MeasurementDataListType_MeasurementData_ARRAY_SIZE) {
+ /* First(xsi:type)StartTag[CHARACTERS[UNSIGNED_INTEGER]] */
+ errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
+ if(errn == 0) {
+ if(eventCode == 0) {
+ errn = decodeUnsignedInteger16(stream, &iso2MeasurementDataListType->MeasurementData.array[iso2MeasurementDataListType->MeasurementData.arrayLen]);
+ iso2MeasurementDataListType->MeasurementData.arrayLen++;
+ } else {
+ /* Second level event (e.g., xsi:type, xsi:nil, ...) */
+ errn = EXI_UNSUPPORTED_EVENT_CODE_CHARACTERISTICS;
+ }
+ }
+ } else {
+ errn = EXI_ERROR_OUT_OF_BOUNDS;
+ }
+ if(errn == 0) {
+ /* valid EE for simple element START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MeasurementData) ? */
+ errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
+ if(eventCode == 0) {
+ grammarID = 1352;
+ } else {
+ errn = EXI_DEVIANT_SUPPORT_NOT_DEPLOYED; /* or also typecast and nillable */
+ }
+ }
+ break;
+ case 1:
+ done = 1;
+ grammarID = 4;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 1352:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MeasurementData), END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ if (iso2MeasurementDataListType->MeasurementData.arrayLen < iso2MeasurementDataListType_MeasurementData_ARRAY_SIZE) {
+ /* First(xsi:type)StartTag[CHARACTERS[UNSIGNED_INTEGER]] */
+ errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
+ if(errn == 0) {
+ if(eventCode == 0) {
+ errn = decodeUnsignedInteger16(stream, &iso2MeasurementDataListType->MeasurementData.array[iso2MeasurementDataListType->MeasurementData.arrayLen]);
+ iso2MeasurementDataListType->MeasurementData.arrayLen++;
+ } else {
+ /* Second level event (e.g., xsi:type, xsi:nil, ...) */
+ errn = EXI_UNSUPPORTED_EVENT_CODE_CHARACTERISTICS;
+ }
+ }
+ } else {
+ errn = EXI_ERROR_OUT_OF_BOUNDS;
+ }
+ if(errn == 0) {
+ /* valid EE for simple element START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MeasurementData) ? */
+ errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
+ if(eventCode == 0) {
+ grammarID = 1353;
+ } else {
+ errn = EXI_DEVIANT_SUPPORT_NOT_DEPLOYED; /* or also typecast and nillable */
+ }
+ }
+ break;
+ case 1:
+ done = 1;
+ grammarID = 4;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 1353:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MeasurementData), END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ if (iso2MeasurementDataListType->MeasurementData.arrayLen < iso2MeasurementDataListType_MeasurementData_ARRAY_SIZE) {
+ /* First(xsi:type)StartTag[CHARACTERS[UNSIGNED_INTEGER]] */
+ errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
+ if(errn == 0) {
+ if(eventCode == 0) {
+ errn = decodeUnsignedInteger16(stream, &iso2MeasurementDataListType->MeasurementData.array[iso2MeasurementDataListType->MeasurementData.arrayLen]);
+ iso2MeasurementDataListType->MeasurementData.arrayLen++;
+ } else {
+ /* Second level event (e.g., xsi:type, xsi:nil, ...) */
+ errn = EXI_UNSUPPORTED_EVENT_CODE_CHARACTERISTICS;
+ }
+ }
+ } else {
+ errn = EXI_ERROR_OUT_OF_BOUNDS;
+ }
+ if(errn == 0) {
+ /* valid EE for simple element START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MeasurementData) ? */
+ errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
+ if(eventCode == 0) {
+ grammarID = 1354;
+ } else {
+ errn = EXI_DEVIANT_SUPPORT_NOT_DEPLOYED; /* or also typecast and nillable */
+ }
+ }
+ break;
+ case 1:
+ done = 1;
+ grammarID = 4;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 1354:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MeasurementData), END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ if (iso2MeasurementDataListType->MeasurementData.arrayLen < iso2MeasurementDataListType_MeasurementData_ARRAY_SIZE) {
+ /* First(xsi:type)StartTag[CHARACTERS[UNSIGNED_INTEGER]] */
+ errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
+ if(errn == 0) {
+ if(eventCode == 0) {
+ errn = decodeUnsignedInteger16(stream, &iso2MeasurementDataListType->MeasurementData.array[iso2MeasurementDataListType->MeasurementData.arrayLen]);
+ iso2MeasurementDataListType->MeasurementData.arrayLen++;
+ } else {
+ /* Second level event (e.g., xsi:type, xsi:nil, ...) */
+ errn = EXI_UNSUPPORTED_EVENT_CODE_CHARACTERISTICS;
+ }
+ }
+ } else {
+ errn = EXI_ERROR_OUT_OF_BOUNDS;
+ }
+ if(errn == 0) {
+ /* valid EE for simple element START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MeasurementData) ? */
+ errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
+ if(eventCode == 0) {
+ grammarID = 1355;
+ } else {
+ errn = EXI_DEVIANT_SUPPORT_NOT_DEPLOYED; /* or also typecast and nillable */
+ }
+ }
+ break;
+ case 1:
+ done = 1;
+ grammarID = 4;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 1355:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MeasurementData), END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ if (iso2MeasurementDataListType->MeasurementData.arrayLen < iso2MeasurementDataListType_MeasurementData_ARRAY_SIZE) {
+ /* First(xsi:type)StartTag[CHARACTERS[UNSIGNED_INTEGER]] */
+ errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
+ if(errn == 0) {
+ if(eventCode == 0) {
+ errn = decodeUnsignedInteger16(stream, &iso2MeasurementDataListType->MeasurementData.array[iso2MeasurementDataListType->MeasurementData.arrayLen]);
+ iso2MeasurementDataListType->MeasurementData.arrayLen++;
+ } else {
+ /* Second level event (e.g., xsi:type, xsi:nil, ...) */
+ errn = EXI_UNSUPPORTED_EVENT_CODE_CHARACTERISTICS;
+ }
+ }
+ } else {
+ errn = EXI_ERROR_OUT_OF_BOUNDS;
+ }
+ if(errn == 0) {
+ /* valid EE for simple element START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MeasurementData) ? */
+ errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
+ if(eventCode == 0) {
+ grammarID = 1356;
+ } else {
+ errn = EXI_DEVIANT_SUPPORT_NOT_DEPLOYED; /* or also typecast and nillable */
+ }
+ }
+ break;
+ case 1:
+ done = 1;
+ grammarID = 4;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 1356:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MeasurementData), END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ if (iso2MeasurementDataListType->MeasurementData.arrayLen < iso2MeasurementDataListType_MeasurementData_ARRAY_SIZE) {
+ /* First(xsi:type)StartTag[CHARACTERS[UNSIGNED_INTEGER]] */
+ errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
+ if(errn == 0) {
+ if(eventCode == 0) {
+ errn = decodeUnsignedInteger16(stream, &iso2MeasurementDataListType->MeasurementData.array[iso2MeasurementDataListType->MeasurementData.arrayLen]);
+ iso2MeasurementDataListType->MeasurementData.arrayLen++;
+ } else {
+ /* Second level event (e.g., xsi:type, xsi:nil, ...) */
+ errn = EXI_UNSUPPORTED_EVENT_CODE_CHARACTERISTICS;
+ }
+ }
+ } else {
+ errn = EXI_ERROR_OUT_OF_BOUNDS;
+ }
+ if(errn == 0) {
+ /* valid EE for simple element START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MeasurementData) ? */
+ errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
+ if(eventCode == 0) {
+ grammarID = 1357;
+ } else {
+ errn = EXI_DEVIANT_SUPPORT_NOT_DEPLOYED; /* or also typecast and nillable */
+ }
+ }
+ break;
+ case 1:
+ done = 1;
+ grammarID = 4;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 1357:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MeasurementData), END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ if (iso2MeasurementDataListType->MeasurementData.arrayLen < iso2MeasurementDataListType_MeasurementData_ARRAY_SIZE) {
+ /* First(xsi:type)StartTag[CHARACTERS[UNSIGNED_INTEGER]] */
+ errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
+ if(errn == 0) {
+ if(eventCode == 0) {
+ errn = decodeUnsignedInteger16(stream, &iso2MeasurementDataListType->MeasurementData.array[iso2MeasurementDataListType->MeasurementData.arrayLen]);
+ iso2MeasurementDataListType->MeasurementData.arrayLen++;
+ } else {
+ /* Second level event (e.g., xsi:type, xsi:nil, ...) */
+ errn = EXI_UNSUPPORTED_EVENT_CODE_CHARACTERISTICS;
+ }
+ }
+ } else {
+ errn = EXI_ERROR_OUT_OF_BOUNDS;
+ }
+ if(errn == 0) {
+ /* valid EE for simple element START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MeasurementData) ? */
+ errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
+ if(eventCode == 0) {
+ grammarID = 1358;
+ } else {
+ errn = EXI_DEVIANT_SUPPORT_NOT_DEPLOYED; /* or also typecast and nillable */
+ }
+ }
+ break;
+ case 1:
+ done = 1;
+ grammarID = 4;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 1358:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MeasurementData), END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ if (iso2MeasurementDataListType->MeasurementData.arrayLen < iso2MeasurementDataListType_MeasurementData_ARRAY_SIZE) {
+ /* First(xsi:type)StartTag[CHARACTERS[UNSIGNED_INTEGER]] */
+ errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
+ if(errn == 0) {
+ if(eventCode == 0) {
+ errn = decodeUnsignedInteger16(stream, &iso2MeasurementDataListType->MeasurementData.array[iso2MeasurementDataListType->MeasurementData.arrayLen]);
+ iso2MeasurementDataListType->MeasurementData.arrayLen++;
+ } else {
+ /* Second level event (e.g., xsi:type, xsi:nil, ...) */
+ errn = EXI_UNSUPPORTED_EVENT_CODE_CHARACTERISTICS;
+ }
+ }
+ } else {
+ errn = EXI_ERROR_OUT_OF_BOUNDS;
+ }
+ if(errn == 0) {
+ /* valid EE for simple element START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MeasurementData) ? */
+ errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
+ if(eventCode == 0) {
+ grammarID = 1359;
+ } else {
+ errn = EXI_DEVIANT_SUPPORT_NOT_DEPLOYED; /* or also typecast and nillable */
+ }
+ }
+ break;
+ case 1:
+ done = 1;
+ grammarID = 4;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 1359:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MeasurementData), END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ if (iso2MeasurementDataListType->MeasurementData.arrayLen < iso2MeasurementDataListType_MeasurementData_ARRAY_SIZE) {
+ /* First(xsi:type)StartTag[CHARACTERS[UNSIGNED_INTEGER]] */
+ errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
+ if(errn == 0) {
+ if(eventCode == 0) {
+ errn = decodeUnsignedInteger16(stream, &iso2MeasurementDataListType->MeasurementData.array[iso2MeasurementDataListType->MeasurementData.arrayLen]);
+ iso2MeasurementDataListType->MeasurementData.arrayLen++;
+ } else {
+ /* Second level event (e.g., xsi:type, xsi:nil, ...) */
+ errn = EXI_UNSUPPORTED_EVENT_CODE_CHARACTERISTICS;
+ }
+ }
+ } else {
+ errn = EXI_ERROR_OUT_OF_BOUNDS;
+ }
+ if(errn == 0) {
+ /* valid EE for simple element START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MeasurementData) ? */
+ errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
+ if(eventCode == 0) {
+ grammarID = 1360;
+ } else {
+ errn = EXI_DEVIANT_SUPPORT_NOT_DEPLOYED; /* or also typecast and nillable */
+ }
+ }
+ break;
+ case 1:
+ done = 1;
+ grammarID = 4;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 1360:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MeasurementData), END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ if (iso2MeasurementDataListType->MeasurementData.arrayLen < iso2MeasurementDataListType_MeasurementData_ARRAY_SIZE) {
+ /* First(xsi:type)StartTag[CHARACTERS[UNSIGNED_INTEGER]] */
+ errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
+ if(errn == 0) {
+ if(eventCode == 0) {
+ errn = decodeUnsignedInteger16(stream, &iso2MeasurementDataListType->MeasurementData.array[iso2MeasurementDataListType->MeasurementData.arrayLen]);
+ iso2MeasurementDataListType->MeasurementData.arrayLen++;
+ } else {
+ /* Second level event (e.g., xsi:type, xsi:nil, ...) */
+ errn = EXI_UNSUPPORTED_EVENT_CODE_CHARACTERISTICS;
+ }
+ }
+ } else {
+ errn = EXI_ERROR_OUT_OF_BOUNDS;
+ }
+ if(errn == 0) {
+ /* valid EE for simple element START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MeasurementData) ? */
+ errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
+ if(eventCode == 0) {
+ grammarID = 1361;
+ } else {
+ errn = EXI_DEVIANT_SUPPORT_NOT_DEPLOYED; /* or also typecast and nillable */
+ }
+ }
+ break;
+ case 1:
+ done = 1;
+ grammarID = 4;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 1361:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MeasurementData), END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ if (iso2MeasurementDataListType->MeasurementData.arrayLen < iso2MeasurementDataListType_MeasurementData_ARRAY_SIZE) {
+ /* First(xsi:type)StartTag[CHARACTERS[UNSIGNED_INTEGER]] */
+ errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
+ if(errn == 0) {
+ if(eventCode == 0) {
+ errn = decodeUnsignedInteger16(stream, &iso2MeasurementDataListType->MeasurementData.array[iso2MeasurementDataListType->MeasurementData.arrayLen]);
+ iso2MeasurementDataListType->MeasurementData.arrayLen++;
+ } else {
+ /* Second level event (e.g., xsi:type, xsi:nil, ...) */
+ errn = EXI_UNSUPPORTED_EVENT_CODE_CHARACTERISTICS;
+ }
+ }
+ } else {
+ errn = EXI_ERROR_OUT_OF_BOUNDS;
+ }
+ if(errn == 0) {
+ /* valid EE for simple element START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MeasurementData) ? */
+ errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
+ if(eventCode == 0) {
+ grammarID = 1362;
+ } else {
+ errn = EXI_DEVIANT_SUPPORT_NOT_DEPLOYED; /* or also typecast and nillable */
+ }
+ }
+ break;
+ case 1:
+ done = 1;
+ grammarID = 4;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 1362:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MeasurementData), END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ if (iso2MeasurementDataListType->MeasurementData.arrayLen < iso2MeasurementDataListType_MeasurementData_ARRAY_SIZE) {
+ /* First(xsi:type)StartTag[CHARACTERS[UNSIGNED_INTEGER]] */
+ errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
+ if(errn == 0) {
+ if(eventCode == 0) {
+ errn = decodeUnsignedInteger16(stream, &iso2MeasurementDataListType->MeasurementData.array[iso2MeasurementDataListType->MeasurementData.arrayLen]);
+ iso2MeasurementDataListType->MeasurementData.arrayLen++;
+ } else {
+ /* Second level event (e.g., xsi:type, xsi:nil, ...) */
+ errn = EXI_UNSUPPORTED_EVENT_CODE_CHARACTERISTICS;
+ }
+ }
+ } else {
+ errn = EXI_ERROR_OUT_OF_BOUNDS;
+ }
+ if(errn == 0) {
+ /* valid EE for simple element START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MeasurementData) ? */
+ errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
+ if(eventCode == 0) {
+ grammarID = 1363;
+ } else {
+ errn = EXI_DEVIANT_SUPPORT_NOT_DEPLOYED; /* or also typecast and nillable */
+ }
+ }
+ break;
+ case 1:
+ done = 1;
+ grammarID = 4;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 1363:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MeasurementData), END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ if (iso2MeasurementDataListType->MeasurementData.arrayLen < iso2MeasurementDataListType_MeasurementData_ARRAY_SIZE) {
+ /* First(xsi:type)StartTag[CHARACTERS[UNSIGNED_INTEGER]] */
+ errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
+ if(errn == 0) {
+ if(eventCode == 0) {
+ errn = decodeUnsignedInteger16(stream, &iso2MeasurementDataListType->MeasurementData.array[iso2MeasurementDataListType->MeasurementData.arrayLen]);
+ iso2MeasurementDataListType->MeasurementData.arrayLen++;
+ } else {
+ /* Second level event (e.g., xsi:type, xsi:nil, ...) */
+ errn = EXI_UNSUPPORTED_EVENT_CODE_CHARACTERISTICS;
+ }
+ }
+ } else {
+ errn = EXI_ERROR_OUT_OF_BOUNDS;
+ }
+ if(errn == 0) {
+ /* valid EE for simple element START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MeasurementData) ? */
+ errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
+ if(eventCode == 0) {
+ grammarID = 1364;
+ } else {
+ errn = EXI_DEVIANT_SUPPORT_NOT_DEPLOYED; /* or also typecast and nillable */
+ }
+ }
+ break;
+ case 1:
+ done = 1;
+ grammarID = 4;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 1364:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MeasurementData), END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ if (iso2MeasurementDataListType->MeasurementData.arrayLen < iso2MeasurementDataListType_MeasurementData_ARRAY_SIZE) {
+ /* First(xsi:type)StartTag[CHARACTERS[UNSIGNED_INTEGER]] */
+ errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
+ if(errn == 0) {
+ if(eventCode == 0) {
+ errn = decodeUnsignedInteger16(stream, &iso2MeasurementDataListType->MeasurementData.array[iso2MeasurementDataListType->MeasurementData.arrayLen]);
+ iso2MeasurementDataListType->MeasurementData.arrayLen++;
+ } else {
+ /* Second level event (e.g., xsi:type, xsi:nil, ...) */
+ errn = EXI_UNSUPPORTED_EVENT_CODE_CHARACTERISTICS;
+ }
+ }
+ } else {
+ errn = EXI_ERROR_OUT_OF_BOUNDS;
+ }
+ if(errn == 0) {
+ /* valid EE for simple element START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MeasurementData) ? */
+ errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
+ if(eventCode == 0) {
+ grammarID = 1365;
+ } else {
+ errn = EXI_DEVIANT_SUPPORT_NOT_DEPLOYED; /* or also typecast and nillable */
+ }
+ }
+ break;
+ case 1:
+ done = 1;
+ grammarID = 4;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 1365:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MeasurementData), END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ if (iso2MeasurementDataListType->MeasurementData.arrayLen < iso2MeasurementDataListType_MeasurementData_ARRAY_SIZE) {
+ /* First(xsi:type)StartTag[CHARACTERS[UNSIGNED_INTEGER]] */
+ errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
+ if(errn == 0) {
+ if(eventCode == 0) {
+ errn = decodeUnsignedInteger16(stream, &iso2MeasurementDataListType->MeasurementData.array[iso2MeasurementDataListType->MeasurementData.arrayLen]);
+ iso2MeasurementDataListType->MeasurementData.arrayLen++;
+ } else {
+ /* Second level event (e.g., xsi:type, xsi:nil, ...) */
+ errn = EXI_UNSUPPORTED_EVENT_CODE_CHARACTERISTICS;
+ }
+ }
+ } else {
+ errn = EXI_ERROR_OUT_OF_BOUNDS;
+ }
+ if(errn == 0) {
+ /* valid EE for simple element START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MeasurementData) ? */
+ errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
+ if(eventCode == 0) {
+ grammarID = 1366;
+ } else {
+ errn = EXI_DEVIANT_SUPPORT_NOT_DEPLOYED; /* or also typecast and nillable */
+ }
+ }
+ break;
+ case 1:
+ done = 1;
+ grammarID = 4;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 1366:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MeasurementData), END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ if (iso2MeasurementDataListType->MeasurementData.arrayLen < iso2MeasurementDataListType_MeasurementData_ARRAY_SIZE) {
+ /* First(xsi:type)StartTag[CHARACTERS[UNSIGNED_INTEGER]] */
+ errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
+ if(errn == 0) {
+ if(eventCode == 0) {
+ errn = decodeUnsignedInteger16(stream, &iso2MeasurementDataListType->MeasurementData.array[iso2MeasurementDataListType->MeasurementData.arrayLen]);
+ iso2MeasurementDataListType->MeasurementData.arrayLen++;
+ } else {
+ /* Second level event (e.g., xsi:type, xsi:nil, ...) */
+ errn = EXI_UNSUPPORTED_EVENT_CODE_CHARACTERISTICS;
+ }
+ }
+ } else {
+ errn = EXI_ERROR_OUT_OF_BOUNDS;
+ }
+ if(errn == 0) {
+ /* valid EE for simple element START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MeasurementData) ? */
+ errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
+ if(eventCode == 0) {
+ grammarID = 1367;
+ } else {
+ errn = EXI_DEVIANT_SUPPORT_NOT_DEPLOYED; /* or also typecast and nillable */
+ }
+ }
+ break;
+ case 1:
+ done = 1;
+ grammarID = 4;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 1367:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MeasurementData), END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ if (iso2MeasurementDataListType->MeasurementData.arrayLen < iso2MeasurementDataListType_MeasurementData_ARRAY_SIZE) {
+ /* First(xsi:type)StartTag[CHARACTERS[UNSIGNED_INTEGER]] */
+ errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
+ if(errn == 0) {
+ if(eventCode == 0) {
+ errn = decodeUnsignedInteger16(stream, &iso2MeasurementDataListType->MeasurementData.array[iso2MeasurementDataListType->MeasurementData.arrayLen]);
+ iso2MeasurementDataListType->MeasurementData.arrayLen++;
+ } else {
+ /* Second level event (e.g., xsi:type, xsi:nil, ...) */
+ errn = EXI_UNSUPPORTED_EVENT_CODE_CHARACTERISTICS;
+ }
+ }
+ } else {
+ errn = EXI_ERROR_OUT_OF_BOUNDS;
+ }
+ if(errn == 0) {
+ /* valid EE for simple element START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MeasurementData) ? */
+ errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
+ if(eventCode == 0) {
+ grammarID = 1368;
+ } else {
+ errn = EXI_DEVIANT_SUPPORT_NOT_DEPLOYED; /* or also typecast and nillable */
+ }
+ }
+ break;
+ case 1:
+ done = 1;
+ grammarID = 4;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 1368:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MeasurementData), END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ if (iso2MeasurementDataListType->MeasurementData.arrayLen < iso2MeasurementDataListType_MeasurementData_ARRAY_SIZE) {
+ /* First(xsi:type)StartTag[CHARACTERS[UNSIGNED_INTEGER]] */
+ errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
+ if(errn == 0) {
+ if(eventCode == 0) {
+ errn = decodeUnsignedInteger16(stream, &iso2MeasurementDataListType->MeasurementData.array[iso2MeasurementDataListType->MeasurementData.arrayLen]);
+ iso2MeasurementDataListType->MeasurementData.arrayLen++;
+ } else {
+ /* Second level event (e.g., xsi:type, xsi:nil, ...) */
+ errn = EXI_UNSUPPORTED_EVENT_CODE_CHARACTERISTICS;
+ }
+ }
+ } else {
+ errn = EXI_ERROR_OUT_OF_BOUNDS;
+ }
+ if(errn == 0) {
+ /* valid EE for simple element START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MeasurementData) ? */
+ errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
+ if(eventCode == 0) {
+ grammarID = 1369;
+ } else {
+ errn = EXI_DEVIANT_SUPPORT_NOT_DEPLOYED; /* or also typecast and nillable */
+ }
+ }
+ break;
+ case 1:
+ done = 1;
+ grammarID = 4;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 1369:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MeasurementData), END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ if (iso2MeasurementDataListType->MeasurementData.arrayLen < iso2MeasurementDataListType_MeasurementData_ARRAY_SIZE) {
+ /* First(xsi:type)StartTag[CHARACTERS[UNSIGNED_INTEGER]] */
+ errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
+ if(errn == 0) {
+ if(eventCode == 0) {
+ errn = decodeUnsignedInteger16(stream, &iso2MeasurementDataListType->MeasurementData.array[iso2MeasurementDataListType->MeasurementData.arrayLen]);
+ iso2MeasurementDataListType->MeasurementData.arrayLen++;
+ } else {
+ /* Second level event (e.g., xsi:type, xsi:nil, ...) */
+ errn = EXI_UNSUPPORTED_EVENT_CODE_CHARACTERISTICS;
+ }
+ }
+ } else {
+ errn = EXI_ERROR_OUT_OF_BOUNDS;
+ }
+ if(errn == 0) {
+ /* valid EE for simple element START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MeasurementData) ? */
+ errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
+ if(eventCode == 0) {
+ grammarID = 1370;
+ } else {
+ errn = EXI_DEVIANT_SUPPORT_NOT_DEPLOYED; /* or also typecast and nillable */
+ }
+ }
+ break;
+ case 1:
+ done = 1;
+ grammarID = 4;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 1370:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MeasurementData), END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ if (iso2MeasurementDataListType->MeasurementData.arrayLen < iso2MeasurementDataListType_MeasurementData_ARRAY_SIZE) {
+ /* First(xsi:type)StartTag[CHARACTERS[UNSIGNED_INTEGER]] */
+ errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
+ if(errn == 0) {
+ if(eventCode == 0) {
+ errn = decodeUnsignedInteger16(stream, &iso2MeasurementDataListType->MeasurementData.array[iso2MeasurementDataListType->MeasurementData.arrayLen]);
+ iso2MeasurementDataListType->MeasurementData.arrayLen++;
+ } else {
+ /* Second level event (e.g., xsi:type, xsi:nil, ...) */
+ errn = EXI_UNSUPPORTED_EVENT_CODE_CHARACTERISTICS;
+ }
+ }
+ } else {
+ errn = EXI_ERROR_OUT_OF_BOUNDS;
+ }
+ if(errn == 0) {
+ /* valid EE for simple element START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MeasurementData) ? */
+ errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
+ if(eventCode == 0) {
+ grammarID = 1371;
+ } else {
+ errn = EXI_DEVIANT_SUPPORT_NOT_DEPLOYED; /* or also typecast and nillable */
+ }
+ }
+ break;
+ case 1:
+ done = 1;
+ grammarID = 4;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 1371:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MeasurementData), END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ if (iso2MeasurementDataListType->MeasurementData.arrayLen < iso2MeasurementDataListType_MeasurementData_ARRAY_SIZE) {
+ /* First(xsi:type)StartTag[CHARACTERS[UNSIGNED_INTEGER]] */
+ errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
+ if(errn == 0) {
+ if(eventCode == 0) {
+ errn = decodeUnsignedInteger16(stream, &iso2MeasurementDataListType->MeasurementData.array[iso2MeasurementDataListType->MeasurementData.arrayLen]);
+ iso2MeasurementDataListType->MeasurementData.arrayLen++;
+ } else {
+ /* Second level event (e.g., xsi:type, xsi:nil, ...) */
+ errn = EXI_UNSUPPORTED_EVENT_CODE_CHARACTERISTICS;
+ }
+ }
+ } else {
+ errn = EXI_ERROR_OUT_OF_BOUNDS;
+ }
+ if(errn == 0) {
+ /* valid EE for simple element START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MeasurementData) ? */
+ errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
+ if(eventCode == 0) {
+ grammarID = 1372;
+ } else {
+ errn = EXI_DEVIANT_SUPPORT_NOT_DEPLOYED; /* or also typecast and nillable */
+ }
+ }
+ break;
+ case 1:
+ done = 1;
+ grammarID = 4;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 1372:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MeasurementData), END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ if (iso2MeasurementDataListType->MeasurementData.arrayLen < iso2MeasurementDataListType_MeasurementData_ARRAY_SIZE) {
+ /* First(xsi:type)StartTag[CHARACTERS[UNSIGNED_INTEGER]] */
+ errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
+ if(errn == 0) {
+ if(eventCode == 0) {
+ errn = decodeUnsignedInteger16(stream, &iso2MeasurementDataListType->MeasurementData.array[iso2MeasurementDataListType->MeasurementData.arrayLen]);
+ iso2MeasurementDataListType->MeasurementData.arrayLen++;
+ } else {
+ /* Second level event (e.g., xsi:type, xsi:nil, ...) */
+ errn = EXI_UNSUPPORTED_EVENT_CODE_CHARACTERISTICS;
+ }
+ }
+ } else {
+ errn = EXI_ERROR_OUT_OF_BOUNDS;
+ }
+ if(errn == 0) {
+ /* valid EE for simple element START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MeasurementData) ? */
+ errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
+ if(eventCode == 0) {
+ grammarID = 1373;
+ } else {
+ errn = EXI_DEVIANT_SUPPORT_NOT_DEPLOYED; /* or also typecast and nillable */
+ }
+ }
+ break;
+ case 1:
+ done = 1;
+ grammarID = 4;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 1373:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MeasurementData), END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ if (iso2MeasurementDataListType->MeasurementData.arrayLen < iso2MeasurementDataListType_MeasurementData_ARRAY_SIZE) {
+ /* First(xsi:type)StartTag[CHARACTERS[UNSIGNED_INTEGER]] */
+ errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
+ if(errn == 0) {
+ if(eventCode == 0) {
+ errn = decodeUnsignedInteger16(stream, &iso2MeasurementDataListType->MeasurementData.array[iso2MeasurementDataListType->MeasurementData.arrayLen]);
+ iso2MeasurementDataListType->MeasurementData.arrayLen++;
+ } else {
+ /* Second level event (e.g., xsi:type, xsi:nil, ...) */
+ errn = EXI_UNSUPPORTED_EVENT_CODE_CHARACTERISTICS;
+ }
+ }
+ } else {
+ errn = EXI_ERROR_OUT_OF_BOUNDS;
+ }
+ if(errn == 0) {
+ /* valid EE for simple element START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MeasurementData) ? */
+ errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
+ if(eventCode == 0) {
+ grammarID = 1374;
+ } else {
+ errn = EXI_DEVIANT_SUPPORT_NOT_DEPLOYED; /* or also typecast and nillable */
+ }
+ }
+ break;
+ case 1:
+ done = 1;
+ grammarID = 4;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 1374:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MeasurementData), END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ if (iso2MeasurementDataListType->MeasurementData.arrayLen < iso2MeasurementDataListType_MeasurementData_ARRAY_SIZE) {
+ /* First(xsi:type)StartTag[CHARACTERS[UNSIGNED_INTEGER]] */
+ errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
+ if(errn == 0) {
+ if(eventCode == 0) {
+ errn = decodeUnsignedInteger16(stream, &iso2MeasurementDataListType->MeasurementData.array[iso2MeasurementDataListType->MeasurementData.arrayLen]);
+ iso2MeasurementDataListType->MeasurementData.arrayLen++;
+ } else {
+ /* Second level event (e.g., xsi:type, xsi:nil, ...) */
+ errn = EXI_UNSUPPORTED_EVENT_CODE_CHARACTERISTICS;
+ }
+ }
+ } else {
+ errn = EXI_ERROR_OUT_OF_BOUNDS;
+ }
+ if(errn == 0) {
+ /* valid EE for simple element START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MeasurementData) ? */
+ errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
+ if(eventCode == 0) {
+ grammarID = 1375;
+ } else {
+ errn = EXI_DEVIANT_SUPPORT_NOT_DEPLOYED; /* or also typecast and nillable */
+ }
+ }
+ break;
+ case 1:
+ done = 1;
+ grammarID = 4;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 1375:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MeasurementData), END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ if (iso2MeasurementDataListType->MeasurementData.arrayLen < iso2MeasurementDataListType_MeasurementData_ARRAY_SIZE) {
+ /* First(xsi:type)StartTag[CHARACTERS[UNSIGNED_INTEGER]] */
+ errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
+ if(errn == 0) {
+ if(eventCode == 0) {
+ errn = decodeUnsignedInteger16(stream, &iso2MeasurementDataListType->MeasurementData.array[iso2MeasurementDataListType->MeasurementData.arrayLen]);
+ iso2MeasurementDataListType->MeasurementData.arrayLen++;
+ } else {
+ /* Second level event (e.g., xsi:type, xsi:nil, ...) */
+ errn = EXI_UNSUPPORTED_EVENT_CODE_CHARACTERISTICS;
+ }
+ }
+ } else {
+ errn = EXI_ERROR_OUT_OF_BOUNDS;
+ }
+ if(errn == 0) {
+ /* valid EE for simple element START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MeasurementData) ? */
+ errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
+ if(eventCode == 0) {
+ grammarID = 1376;
+ } else {
+ errn = EXI_DEVIANT_SUPPORT_NOT_DEPLOYED; /* or also typecast and nillable */
+ }
+ }
+ break;
+ case 1:
+ done = 1;
+ grammarID = 4;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 1376:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MeasurementData), END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ if (iso2MeasurementDataListType->MeasurementData.arrayLen < iso2MeasurementDataListType_MeasurementData_ARRAY_SIZE) {
+ /* First(xsi:type)StartTag[CHARACTERS[UNSIGNED_INTEGER]] */
+ errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
+ if(errn == 0) {
+ if(eventCode == 0) {
+ errn = decodeUnsignedInteger16(stream, &iso2MeasurementDataListType->MeasurementData.array[iso2MeasurementDataListType->MeasurementData.arrayLen]);
+ iso2MeasurementDataListType->MeasurementData.arrayLen++;
+ } else {
+ /* Second level event (e.g., xsi:type, xsi:nil, ...) */
+ errn = EXI_UNSUPPORTED_EVENT_CODE_CHARACTERISTICS;
+ }
+ }
+ } else {
+ errn = EXI_ERROR_OUT_OF_BOUNDS;
+ }
+ if(errn == 0) {
+ /* valid EE for simple element START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MeasurementData) ? */
+ errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
+ if(eventCode == 0) {
+ grammarID = 1377;
+ } else {
+ errn = EXI_DEVIANT_SUPPORT_NOT_DEPLOYED; /* or also typecast and nillable */
+ }
+ }
+ break;
+ case 1:
+ done = 1;
+ grammarID = 4;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 1377:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MeasurementData), END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ if (iso2MeasurementDataListType->MeasurementData.arrayLen < iso2MeasurementDataListType_MeasurementData_ARRAY_SIZE) {
+ /* First(xsi:type)StartTag[CHARACTERS[UNSIGNED_INTEGER]] */
+ errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
+ if(errn == 0) {
+ if(eventCode == 0) {
+ errn = decodeUnsignedInteger16(stream, &iso2MeasurementDataListType->MeasurementData.array[iso2MeasurementDataListType->MeasurementData.arrayLen]);
+ iso2MeasurementDataListType->MeasurementData.arrayLen++;
+ } else {
+ /* Second level event (e.g., xsi:type, xsi:nil, ...) */
+ errn = EXI_UNSUPPORTED_EVENT_CODE_CHARACTERISTICS;
+ }
+ }
+ } else {
+ errn = EXI_ERROR_OUT_OF_BOUNDS;
+ }
+ if(errn == 0) {
+ /* valid EE for simple element START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MeasurementData) ? */
+ errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
+ if(eventCode == 0) {
+ grammarID = 1378;
+ } else {
+ errn = EXI_DEVIANT_SUPPORT_NOT_DEPLOYED; /* or also typecast and nillable */
+ }
+ }
+ break;
+ case 1:
+ done = 1;
+ grammarID = 4;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 1378:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MeasurementData), END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ if (iso2MeasurementDataListType->MeasurementData.arrayLen < iso2MeasurementDataListType_MeasurementData_ARRAY_SIZE) {
+ /* First(xsi:type)StartTag[CHARACTERS[UNSIGNED_INTEGER]] */
+ errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
+ if(errn == 0) {
+ if(eventCode == 0) {
+ errn = decodeUnsignedInteger16(stream, &iso2MeasurementDataListType->MeasurementData.array[iso2MeasurementDataListType->MeasurementData.arrayLen]);
+ iso2MeasurementDataListType->MeasurementData.arrayLen++;
+ } else {
+ /* Second level event (e.g., xsi:type, xsi:nil, ...) */
+ errn = EXI_UNSUPPORTED_EVENT_CODE_CHARACTERISTICS;
+ }
+ }
+ } else {
+ errn = EXI_ERROR_OUT_OF_BOUNDS;
+ }
+ if(errn == 0) {
+ /* valid EE for simple element START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MeasurementData) ? */
+ errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
+ if(eventCode == 0) {
+ grammarID = 1379;
+ } else {
+ errn = EXI_DEVIANT_SUPPORT_NOT_DEPLOYED; /* or also typecast and nillable */
+ }
+ }
+ break;
+ case 1:
+ done = 1;
+ grammarID = 4;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 1379:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MeasurementData), END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ if (iso2MeasurementDataListType->MeasurementData.arrayLen < iso2MeasurementDataListType_MeasurementData_ARRAY_SIZE) {
+ /* First(xsi:type)StartTag[CHARACTERS[UNSIGNED_INTEGER]] */
+ errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
+ if(errn == 0) {
+ if(eventCode == 0) {
+ errn = decodeUnsignedInteger16(stream, &iso2MeasurementDataListType->MeasurementData.array[iso2MeasurementDataListType->MeasurementData.arrayLen]);
+ iso2MeasurementDataListType->MeasurementData.arrayLen++;
+ } else {
+ /* Second level event (e.g., xsi:type, xsi:nil, ...) */
+ errn = EXI_UNSUPPORTED_EVENT_CODE_CHARACTERISTICS;
+ }
+ }
+ } else {
+ errn = EXI_ERROR_OUT_OF_BOUNDS;
+ }
+ if(errn == 0) {
+ /* valid EE for simple element START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MeasurementData) ? */
+ errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
+ if(eventCode == 0) {
+ grammarID = 1380;
+ } else {
+ errn = EXI_DEVIANT_SUPPORT_NOT_DEPLOYED; /* or also typecast and nillable */
+ }
+ }
+ break;
+ case 1:
+ done = 1;
+ grammarID = 4;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 1380:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MeasurementData), END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ if (iso2MeasurementDataListType->MeasurementData.arrayLen < iso2MeasurementDataListType_MeasurementData_ARRAY_SIZE) {
+ /* First(xsi:type)StartTag[CHARACTERS[UNSIGNED_INTEGER]] */
+ errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
+ if(errn == 0) {
+ if(eventCode == 0) {
+ errn = decodeUnsignedInteger16(stream, &iso2MeasurementDataListType->MeasurementData.array[iso2MeasurementDataListType->MeasurementData.arrayLen]);
+ iso2MeasurementDataListType->MeasurementData.arrayLen++;
+ } else {
+ /* Second level event (e.g., xsi:type, xsi:nil, ...) */
+ errn = EXI_UNSUPPORTED_EVENT_CODE_CHARACTERISTICS;
+ }
+ }
+ } else {
+ errn = EXI_ERROR_OUT_OF_BOUNDS;
+ }
+ if(errn == 0) {
+ /* valid EE for simple element START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MeasurementData) ? */
+ errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
+ if(eventCode == 0) {
+ grammarID = 1381;
+ } else {
+ errn = EXI_DEVIANT_SUPPORT_NOT_DEPLOYED; /* or also typecast and nillable */
+ }
+ }
+ break;
+ case 1:
+ done = 1;
+ grammarID = 4;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 1381:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MeasurementData), END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ if (iso2MeasurementDataListType->MeasurementData.arrayLen < iso2MeasurementDataListType_MeasurementData_ARRAY_SIZE) {
+ /* First(xsi:type)StartTag[CHARACTERS[UNSIGNED_INTEGER]] */
+ errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
+ if(errn == 0) {
+ if(eventCode == 0) {
+ errn = decodeUnsignedInteger16(stream, &iso2MeasurementDataListType->MeasurementData.array[iso2MeasurementDataListType->MeasurementData.arrayLen]);
+ iso2MeasurementDataListType->MeasurementData.arrayLen++;
+ } else {
+ /* Second level event (e.g., xsi:type, xsi:nil, ...) */
+ errn = EXI_UNSUPPORTED_EVENT_CODE_CHARACTERISTICS;
+ }
+ }
+ } else {
+ errn = EXI_ERROR_OUT_OF_BOUNDS;
+ }
+ if(errn == 0) {
+ /* valid EE for simple element START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MeasurementData) ? */
+ errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
+ if(eventCode == 0) {
+ grammarID = 1382;
+ } else {
+ errn = EXI_DEVIANT_SUPPORT_NOT_DEPLOYED; /* or also typecast and nillable */
+ }
+ }
+ break;
+ case 1:
+ done = 1;
+ grammarID = 4;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 1382:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MeasurementData), END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ if (iso2MeasurementDataListType->MeasurementData.arrayLen < iso2MeasurementDataListType_MeasurementData_ARRAY_SIZE) {
+ /* First(xsi:type)StartTag[CHARACTERS[UNSIGNED_INTEGER]] */
+ errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
+ if(errn == 0) {
+ if(eventCode == 0) {
+ errn = decodeUnsignedInteger16(stream, &iso2MeasurementDataListType->MeasurementData.array[iso2MeasurementDataListType->MeasurementData.arrayLen]);
+ iso2MeasurementDataListType->MeasurementData.arrayLen++;
+ } else {
+ /* Second level event (e.g., xsi:type, xsi:nil, ...) */
+ errn = EXI_UNSUPPORTED_EVENT_CODE_CHARACTERISTICS;
+ }
+ }
+ } else {
+ errn = EXI_ERROR_OUT_OF_BOUNDS;
+ }
+ if(errn == 0) {
+ /* valid EE for simple element START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MeasurementData) ? */
+ errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
+ if(eventCode == 0) {
+ grammarID = 1383;
+ } else {
+ errn = EXI_DEVIANT_SUPPORT_NOT_DEPLOYED; /* or also typecast and nillable */
+ }
+ }
+ break;
+ case 1:
+ done = 1;
+ grammarID = 4;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 1383:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MeasurementData), END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ if (iso2MeasurementDataListType->MeasurementData.arrayLen < iso2MeasurementDataListType_MeasurementData_ARRAY_SIZE) {
+ /* First(xsi:type)StartTag[CHARACTERS[UNSIGNED_INTEGER]] */
+ errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
+ if(errn == 0) {
+ if(eventCode == 0) {
+ errn = decodeUnsignedInteger16(stream, &iso2MeasurementDataListType->MeasurementData.array[iso2MeasurementDataListType->MeasurementData.arrayLen]);
+ iso2MeasurementDataListType->MeasurementData.arrayLen++;
+ } else {
+ /* Second level event (e.g., xsi:type, xsi:nil, ...) */
+ errn = EXI_UNSUPPORTED_EVENT_CODE_CHARACTERISTICS;
+ }
+ }
+ } else {
+ errn = EXI_ERROR_OUT_OF_BOUNDS;
+ }
+ if(errn == 0) {
+ /* valid EE for simple element START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MeasurementData) ? */
+ errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
+ if(eventCode == 0) {
+ grammarID = 1384;
+ } else {
+ errn = EXI_DEVIANT_SUPPORT_NOT_DEPLOYED; /* or also typecast and nillable */
+ }
+ }
+ break;
+ case 1:
+ done = 1;
+ grammarID = 4;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 1384:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MeasurementData), END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ if (iso2MeasurementDataListType->MeasurementData.arrayLen < iso2MeasurementDataListType_MeasurementData_ARRAY_SIZE) {
+ /* First(xsi:type)StartTag[CHARACTERS[UNSIGNED_INTEGER]] */
+ errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
+ if(errn == 0) {
+ if(eventCode == 0) {
+ errn = decodeUnsignedInteger16(stream, &iso2MeasurementDataListType->MeasurementData.array[iso2MeasurementDataListType->MeasurementData.arrayLen]);
+ iso2MeasurementDataListType->MeasurementData.arrayLen++;
+ } else {
+ /* Second level event (e.g., xsi:type, xsi:nil, ...) */
+ errn = EXI_UNSUPPORTED_EVENT_CODE_CHARACTERISTICS;
+ }
+ }
+ } else {
+ errn = EXI_ERROR_OUT_OF_BOUNDS;
+ }
+ if(errn == 0) {
+ /* valid EE for simple element START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MeasurementData) ? */
+ errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
+ if(eventCode == 0) {
+ grammarID = 1385;
+ } else {
+ errn = EXI_DEVIANT_SUPPORT_NOT_DEPLOYED; /* or also typecast and nillable */
+ }
+ }
+ break;
+ case 1:
+ done = 1;
+ grammarID = 4;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 1385:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MeasurementData), END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ if (iso2MeasurementDataListType->MeasurementData.arrayLen < iso2MeasurementDataListType_MeasurementData_ARRAY_SIZE) {
+ /* First(xsi:type)StartTag[CHARACTERS[UNSIGNED_INTEGER]] */
+ errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
+ if(errn == 0) {
+ if(eventCode == 0) {
+ errn = decodeUnsignedInteger16(stream, &iso2MeasurementDataListType->MeasurementData.array[iso2MeasurementDataListType->MeasurementData.arrayLen]);
+ iso2MeasurementDataListType->MeasurementData.arrayLen++;
+ } else {
+ /* Second level event (e.g., xsi:type, xsi:nil, ...) */
+ errn = EXI_UNSUPPORTED_EVENT_CODE_CHARACTERISTICS;
+ }
+ }
+ } else {
+ errn = EXI_ERROR_OUT_OF_BOUNDS;
+ }
+ if(errn == 0) {
+ /* valid EE for simple element START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MeasurementData) ? */
+ errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
+ if(eventCode == 0) {
+ grammarID = 1386;
+ } else {
+ errn = EXI_DEVIANT_SUPPORT_NOT_DEPLOYED; /* or also typecast and nillable */
+ }
+ }
+ break;
+ case 1:
+ done = 1;
+ grammarID = 4;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 1386:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MeasurementData), END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ if (iso2MeasurementDataListType->MeasurementData.arrayLen < iso2MeasurementDataListType_MeasurementData_ARRAY_SIZE) {
+ /* First(xsi:type)StartTag[CHARACTERS[UNSIGNED_INTEGER]] */
+ errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
+ if(errn == 0) {
+ if(eventCode == 0) {
+ errn = decodeUnsignedInteger16(stream, &iso2MeasurementDataListType->MeasurementData.array[iso2MeasurementDataListType->MeasurementData.arrayLen]);
+ iso2MeasurementDataListType->MeasurementData.arrayLen++;
+ } else {
+ /* Second level event (e.g., xsi:type, xsi:nil, ...) */
+ errn = EXI_UNSUPPORTED_EVENT_CODE_CHARACTERISTICS;
+ }
+ }
+ } else {
+ errn = EXI_ERROR_OUT_OF_BOUNDS;
+ }
+ if(errn == 0) {
+ /* valid EE for simple element START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MeasurementData) ? */
+ errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
+ if(eventCode == 0) {
+ grammarID = 1387;
+ } else {
+ errn = EXI_DEVIANT_SUPPORT_NOT_DEPLOYED; /* or also typecast and nillable */
+ }
+ }
+ break;
+ case 1:
+ done = 1;
+ grammarID = 4;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 1387:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MeasurementData), END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ if (iso2MeasurementDataListType->MeasurementData.arrayLen < iso2MeasurementDataListType_MeasurementData_ARRAY_SIZE) {
+ /* First(xsi:type)StartTag[CHARACTERS[UNSIGNED_INTEGER]] */
+ errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
+ if(errn == 0) {
+ if(eventCode == 0) {
+ errn = decodeUnsignedInteger16(stream, &iso2MeasurementDataListType->MeasurementData.array[iso2MeasurementDataListType->MeasurementData.arrayLen]);
+ iso2MeasurementDataListType->MeasurementData.arrayLen++;
+ } else {
+ /* Second level event (e.g., xsi:type, xsi:nil, ...) */
+ errn = EXI_UNSUPPORTED_EVENT_CODE_CHARACTERISTICS;
+ }
+ }
+ } else {
+ errn = EXI_ERROR_OUT_OF_BOUNDS;
+ }
+ if(errn == 0) {
+ /* valid EE for simple element START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MeasurementData) ? */
+ errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
+ if(eventCode == 0) {
+ grammarID = 1388;
+ } else {
+ errn = EXI_DEVIANT_SUPPORT_NOT_DEPLOYED; /* or also typecast and nillable */
+ }
+ }
+ break;
+ case 1:
+ done = 1;
+ grammarID = 4;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 1388:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MeasurementData), END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ if (iso2MeasurementDataListType->MeasurementData.arrayLen < iso2MeasurementDataListType_MeasurementData_ARRAY_SIZE) {
+ /* First(xsi:type)StartTag[CHARACTERS[UNSIGNED_INTEGER]] */
+ errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
+ if(errn == 0) {
+ if(eventCode == 0) {
+ errn = decodeUnsignedInteger16(stream, &iso2MeasurementDataListType->MeasurementData.array[iso2MeasurementDataListType->MeasurementData.arrayLen]);
+ iso2MeasurementDataListType->MeasurementData.arrayLen++;
+ } else {
+ /* Second level event (e.g., xsi:type, xsi:nil, ...) */
+ errn = EXI_UNSUPPORTED_EVENT_CODE_CHARACTERISTICS;
+ }
+ }
+ } else {
+ errn = EXI_ERROR_OUT_OF_BOUNDS;
+ }
+ if(errn == 0) {
+ /* valid EE for simple element START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MeasurementData) ? */
+ errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
+ if(eventCode == 0) {
+ grammarID = 1389;
+ } else {
+ errn = EXI_DEVIANT_SUPPORT_NOT_DEPLOYED; /* or also typecast and nillable */
+ }
+ }
+ break;
+ case 1:
+ done = 1;
+ grammarID = 4;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 1389:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MeasurementData), END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ if (iso2MeasurementDataListType->MeasurementData.arrayLen < iso2MeasurementDataListType_MeasurementData_ARRAY_SIZE) {
+ /* First(xsi:type)StartTag[CHARACTERS[UNSIGNED_INTEGER]] */
+ errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
+ if(errn == 0) {
+ if(eventCode == 0) {
+ errn = decodeUnsignedInteger16(stream, &iso2MeasurementDataListType->MeasurementData.array[iso2MeasurementDataListType->MeasurementData.arrayLen]);
+ iso2MeasurementDataListType->MeasurementData.arrayLen++;
+ } else {
+ /* Second level event (e.g., xsi:type, xsi:nil, ...) */
+ errn = EXI_UNSUPPORTED_EVENT_CODE_CHARACTERISTICS;
+ }
+ }
+ } else {
+ errn = EXI_ERROR_OUT_OF_BOUNDS;
+ }
+ if(errn == 0) {
+ /* valid EE for simple element START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MeasurementData) ? */
+ errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
+ if(eventCode == 0) {
+ grammarID = 1390;
+ } else {
+ errn = EXI_DEVIANT_SUPPORT_NOT_DEPLOYED; /* or also typecast and nillable */
+ }
+ }
+ break;
+ case 1:
+ done = 1;
+ grammarID = 4;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 1390:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MeasurementData), END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ if (iso2MeasurementDataListType->MeasurementData.arrayLen < iso2MeasurementDataListType_MeasurementData_ARRAY_SIZE) {
+ /* First(xsi:type)StartTag[CHARACTERS[UNSIGNED_INTEGER]] */
+ errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
+ if(errn == 0) {
+ if(eventCode == 0) {
+ errn = decodeUnsignedInteger16(stream, &iso2MeasurementDataListType->MeasurementData.array[iso2MeasurementDataListType->MeasurementData.arrayLen]);
+ iso2MeasurementDataListType->MeasurementData.arrayLen++;
+ } else {
+ /* Second level event (e.g., xsi:type, xsi:nil, ...) */
+ errn = EXI_UNSUPPORTED_EVENT_CODE_CHARACTERISTICS;
+ }
+ }
+ } else {
+ errn = EXI_ERROR_OUT_OF_BOUNDS;
+ }
+ if(errn == 0) {
+ /* valid EE for simple element START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MeasurementData) ? */
+ errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
+ if(eventCode == 0) {
+ grammarID = 1391;
+ } else {
+ errn = EXI_DEVIANT_SUPPORT_NOT_DEPLOYED; /* or also typecast and nillable */
+ }
+ }
+ break;
+ case 1:
+ done = 1;
+ grammarID = 4;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 1391:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MeasurementData), END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ if (iso2MeasurementDataListType->MeasurementData.arrayLen < iso2MeasurementDataListType_MeasurementData_ARRAY_SIZE) {
+ /* First(xsi:type)StartTag[CHARACTERS[UNSIGNED_INTEGER]] */
+ errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
+ if(errn == 0) {
+ if(eventCode == 0) {
+ errn = decodeUnsignedInteger16(stream, &iso2MeasurementDataListType->MeasurementData.array[iso2MeasurementDataListType->MeasurementData.arrayLen]);
+ iso2MeasurementDataListType->MeasurementData.arrayLen++;
+ } else {
+ /* Second level event (e.g., xsi:type, xsi:nil, ...) */
+ errn = EXI_UNSUPPORTED_EVENT_CODE_CHARACTERISTICS;
+ }
+ }
+ } else {
+ errn = EXI_ERROR_OUT_OF_BOUNDS;
+ }
+ if(errn == 0) {
+ /* valid EE for simple element START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MeasurementData) ? */
+ errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
+ if(eventCode == 0) {
+ grammarID = 1392;
+ } else {
+ errn = EXI_DEVIANT_SUPPORT_NOT_DEPLOYED; /* or also typecast and nillable */
+ }
+ }
+ break;
+ case 1:
+ done = 1;
+ grammarID = 4;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 1392:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MeasurementData), END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ if (iso2MeasurementDataListType->MeasurementData.arrayLen < iso2MeasurementDataListType_MeasurementData_ARRAY_SIZE) {
+ /* First(xsi:type)StartTag[CHARACTERS[UNSIGNED_INTEGER]] */
+ errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
+ if(errn == 0) {
+ if(eventCode == 0) {
+ errn = decodeUnsignedInteger16(stream, &iso2MeasurementDataListType->MeasurementData.array[iso2MeasurementDataListType->MeasurementData.arrayLen]);
+ iso2MeasurementDataListType->MeasurementData.arrayLen++;
+ } else {
+ /* Second level event (e.g., xsi:type, xsi:nil, ...) */
+ errn = EXI_UNSUPPORTED_EVENT_CODE_CHARACTERISTICS;
+ }
+ }
+ } else {
+ errn = EXI_ERROR_OUT_OF_BOUNDS;
+ }
+ if(errn == 0) {
+ /* valid EE for simple element START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MeasurementData) ? */
+ errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
+ if(eventCode == 0) {
+ grammarID = 1393;
+ } else {
+ errn = EXI_DEVIANT_SUPPORT_NOT_DEPLOYED; /* or also typecast and nillable */
+ }
+ }
+ break;
+ case 1:
+ done = 1;
+ grammarID = 4;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 1393:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MeasurementData), END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ if (iso2MeasurementDataListType->MeasurementData.arrayLen < iso2MeasurementDataListType_MeasurementData_ARRAY_SIZE) {
+ /* First(xsi:type)StartTag[CHARACTERS[UNSIGNED_INTEGER]] */
+ errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
+ if(errn == 0) {
+ if(eventCode == 0) {
+ errn = decodeUnsignedInteger16(stream, &iso2MeasurementDataListType->MeasurementData.array[iso2MeasurementDataListType->MeasurementData.arrayLen]);
+ iso2MeasurementDataListType->MeasurementData.arrayLen++;
+ } else {
+ /* Second level event (e.g., xsi:type, xsi:nil, ...) */
+ errn = EXI_UNSUPPORTED_EVENT_CODE_CHARACTERISTICS;
+ }
+ }
+ } else {
+ errn = EXI_ERROR_OUT_OF_BOUNDS;
+ }
+ if(errn == 0) {
+ /* valid EE for simple element START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MeasurementData) ? */
+ errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
+ if(eventCode == 0) {
+ grammarID = 1394;
+ } else {
+ errn = EXI_DEVIANT_SUPPORT_NOT_DEPLOYED; /* or also typecast and nillable */
+ }
+ }
+ break;
+ case 1:
+ done = 1;
+ grammarID = 4;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 1394:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MeasurementData), END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ if (iso2MeasurementDataListType->MeasurementData.arrayLen < iso2MeasurementDataListType_MeasurementData_ARRAY_SIZE) {
+ /* First(xsi:type)StartTag[CHARACTERS[UNSIGNED_INTEGER]] */
+ errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
+ if(errn == 0) {
+ if(eventCode == 0) {
+ errn = decodeUnsignedInteger16(stream, &iso2MeasurementDataListType->MeasurementData.array[iso2MeasurementDataListType->MeasurementData.arrayLen]);
+ iso2MeasurementDataListType->MeasurementData.arrayLen++;
+ } else {
+ /* Second level event (e.g., xsi:type, xsi:nil, ...) */
+ errn = EXI_UNSUPPORTED_EVENT_CODE_CHARACTERISTICS;
+ }
+ }
+ } else {
+ errn = EXI_ERROR_OUT_OF_BOUNDS;
+ }
+ if(errn == 0) {
+ /* valid EE for simple element START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MeasurementData) ? */
+ errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
+ if(eventCode == 0) {
+ grammarID = 1395;
+ } else {
+ errn = EXI_DEVIANT_SUPPORT_NOT_DEPLOYED; /* or also typecast and nillable */
+ }
+ }
+ break;
+ case 1:
+ done = 1;
+ grammarID = 4;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 1395:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MeasurementData), END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ if (iso2MeasurementDataListType->MeasurementData.arrayLen < iso2MeasurementDataListType_MeasurementData_ARRAY_SIZE) {
+ /* First(xsi:type)StartTag[CHARACTERS[UNSIGNED_INTEGER]] */
+ errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
+ if(errn == 0) {
+ if(eventCode == 0) {
+ errn = decodeUnsignedInteger16(stream, &iso2MeasurementDataListType->MeasurementData.array[iso2MeasurementDataListType->MeasurementData.arrayLen]);
+ iso2MeasurementDataListType->MeasurementData.arrayLen++;
+ } else {
+ /* Second level event (e.g., xsi:type, xsi:nil, ...) */
+ errn = EXI_UNSUPPORTED_EVENT_CODE_CHARACTERISTICS;
+ }
+ }
+ } else {
+ errn = EXI_ERROR_OUT_OF_BOUNDS;
+ }
+ if(errn == 0) {
+ /* valid EE for simple element START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MeasurementData) ? */
+ errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
+ if(eventCode == 0) {
+ grammarID = 1396;
+ } else {
+ errn = EXI_DEVIANT_SUPPORT_NOT_DEPLOYED; /* or also typecast and nillable */
+ }
+ }
+ break;
+ case 1:
+ done = 1;
+ grammarID = 4;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 1396:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MeasurementData), END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ if (iso2MeasurementDataListType->MeasurementData.arrayLen < iso2MeasurementDataListType_MeasurementData_ARRAY_SIZE) {
+ /* First(xsi:type)StartTag[CHARACTERS[UNSIGNED_INTEGER]] */
+ errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
+ if(errn == 0) {
+ if(eventCode == 0) {
+ errn = decodeUnsignedInteger16(stream, &iso2MeasurementDataListType->MeasurementData.array[iso2MeasurementDataListType->MeasurementData.arrayLen]);
+ iso2MeasurementDataListType->MeasurementData.arrayLen++;
+ } else {
+ /* Second level event (e.g., xsi:type, xsi:nil, ...) */
+ errn = EXI_UNSUPPORTED_EVENT_CODE_CHARACTERISTICS;
+ }
+ }
+ } else {
+ errn = EXI_ERROR_OUT_OF_BOUNDS;
+ }
+ if(errn == 0) {
+ /* valid EE for simple element START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MeasurementData) ? */
+ errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
+ if(eventCode == 0) {
+ grammarID = 1397;
+ } else {
+ errn = EXI_DEVIANT_SUPPORT_NOT_DEPLOYED; /* or also typecast and nillable */
+ }
+ }
+ break;
+ case 1:
+ done = 1;
+ grammarID = 4;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 1397:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MeasurementData), END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ if (iso2MeasurementDataListType->MeasurementData.arrayLen < iso2MeasurementDataListType_MeasurementData_ARRAY_SIZE) {
+ /* First(xsi:type)StartTag[CHARACTERS[UNSIGNED_INTEGER]] */
+ errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
+ if(errn == 0) {
+ if(eventCode == 0) {
+ errn = decodeUnsignedInteger16(stream, &iso2MeasurementDataListType->MeasurementData.array[iso2MeasurementDataListType->MeasurementData.arrayLen]);
+ iso2MeasurementDataListType->MeasurementData.arrayLen++;
+ } else {
+ /* Second level event (e.g., xsi:type, xsi:nil, ...) */
+ errn = EXI_UNSUPPORTED_EVENT_CODE_CHARACTERISTICS;
+ }
+ }
+ } else {
+ errn = EXI_ERROR_OUT_OF_BOUNDS;
+ }
+ if(errn == 0) {
+ /* valid EE for simple element START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MeasurementData) ? */
+ errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
+ if(eventCode == 0) {
+ grammarID = 1398;
+ } else {
+ errn = EXI_DEVIANT_SUPPORT_NOT_DEPLOYED; /* or also typecast and nillable */
+ }
+ }
+ break;
+ case 1:
+ done = 1;
+ grammarID = 4;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 1398:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MeasurementData), END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ if (iso2MeasurementDataListType->MeasurementData.arrayLen < iso2MeasurementDataListType_MeasurementData_ARRAY_SIZE) {
+ /* First(xsi:type)StartTag[CHARACTERS[UNSIGNED_INTEGER]] */
+ errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
+ if(errn == 0) {
+ if(eventCode == 0) {
+ errn = decodeUnsignedInteger16(stream, &iso2MeasurementDataListType->MeasurementData.array[iso2MeasurementDataListType->MeasurementData.arrayLen]);
+ iso2MeasurementDataListType->MeasurementData.arrayLen++;
+ } else {
+ /* Second level event (e.g., xsi:type, xsi:nil, ...) */
+ errn = EXI_UNSUPPORTED_EVENT_CODE_CHARACTERISTICS;
+ }
+ }
+ } else {
+ errn = EXI_ERROR_OUT_OF_BOUNDS;
+ }
+ if(errn == 0) {
+ /* valid EE for simple element START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MeasurementData) ? */
+ errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
+ if(eventCode == 0) {
+ grammarID = 1399;
+ } else {
+ errn = EXI_DEVIANT_SUPPORT_NOT_DEPLOYED; /* or also typecast and nillable */
+ }
+ }
+ break;
+ case 1:
+ done = 1;
+ grammarID = 4;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 1399:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MeasurementData), END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ if (iso2MeasurementDataListType->MeasurementData.arrayLen < iso2MeasurementDataListType_MeasurementData_ARRAY_SIZE) {
+ /* First(xsi:type)StartTag[CHARACTERS[UNSIGNED_INTEGER]] */
+ errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
+ if(errn == 0) {
+ if(eventCode == 0) {
+ errn = decodeUnsignedInteger16(stream, &iso2MeasurementDataListType->MeasurementData.array[iso2MeasurementDataListType->MeasurementData.arrayLen]);
+ iso2MeasurementDataListType->MeasurementData.arrayLen++;
+ } else {
+ /* Second level event (e.g., xsi:type, xsi:nil, ...) */
+ errn = EXI_UNSUPPORTED_EVENT_CODE_CHARACTERISTICS;
+ }
+ }
+ } else {
+ errn = EXI_ERROR_OUT_OF_BOUNDS;
+ }
+ if(errn == 0) {
+ /* valid EE for simple element START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MeasurementData) ? */
+ errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
+ if(eventCode == 0) {
+ grammarID = 1400;
+ } else {
+ errn = EXI_DEVIANT_SUPPORT_NOT_DEPLOYED; /* or also typecast and nillable */
+ }
+ }
+ break;
+ case 1:
+ done = 1;
+ grammarID = 4;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 1400:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MeasurementData), END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ if (iso2MeasurementDataListType->MeasurementData.arrayLen < iso2MeasurementDataListType_MeasurementData_ARRAY_SIZE) {
+ /* First(xsi:type)StartTag[CHARACTERS[UNSIGNED_INTEGER]] */
+ errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
+ if(errn == 0) {
+ if(eventCode == 0) {
+ errn = decodeUnsignedInteger16(stream, &iso2MeasurementDataListType->MeasurementData.array[iso2MeasurementDataListType->MeasurementData.arrayLen]);
+ iso2MeasurementDataListType->MeasurementData.arrayLen++;
+ } else {
+ /* Second level event (e.g., xsi:type, xsi:nil, ...) */
+ errn = EXI_UNSUPPORTED_EVENT_CODE_CHARACTERISTICS;
+ }
+ }
+ } else {
+ errn = EXI_ERROR_OUT_OF_BOUNDS;
+ }
+ if(errn == 0) {
+ /* valid EE for simple element START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MeasurementData) ? */
+ errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
+ if(eventCode == 0) {
+ grammarID = 1401;
+ } else {
+ errn = EXI_DEVIANT_SUPPORT_NOT_DEPLOYED; /* or also typecast and nillable */
+ }
+ }
+ break;
+ case 1:
+ done = 1;
+ grammarID = 4;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 1401:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MeasurementData), END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ if (iso2MeasurementDataListType->MeasurementData.arrayLen < iso2MeasurementDataListType_MeasurementData_ARRAY_SIZE) {
+ /* First(xsi:type)StartTag[CHARACTERS[UNSIGNED_INTEGER]] */
+ errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
+ if(errn == 0) {
+ if(eventCode == 0) {
+ errn = decodeUnsignedInteger16(stream, &iso2MeasurementDataListType->MeasurementData.array[iso2MeasurementDataListType->MeasurementData.arrayLen]);
+ iso2MeasurementDataListType->MeasurementData.arrayLen++;
+ } else {
+ /* Second level event (e.g., xsi:type, xsi:nil, ...) */
+ errn = EXI_UNSUPPORTED_EVENT_CODE_CHARACTERISTICS;
+ }
+ }
+ } else {
+ errn = EXI_ERROR_OUT_OF_BOUNDS;
+ }
+ if(errn == 0) {
+ /* valid EE for simple element START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MeasurementData) ? */
+ errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
+ if(eventCode == 0) {
+ grammarID = 1402;
+ } else {
+ errn = EXI_DEVIANT_SUPPORT_NOT_DEPLOYED; /* or also typecast and nillable */
+ }
+ }
+ break;
+ case 1:
+ done = 1;
+ grammarID = 4;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 1402:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MeasurementData), END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ if (iso2MeasurementDataListType->MeasurementData.arrayLen < iso2MeasurementDataListType_MeasurementData_ARRAY_SIZE) {
+ /* First(xsi:type)StartTag[CHARACTERS[UNSIGNED_INTEGER]] */
+ errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
+ if(errn == 0) {
+ if(eventCode == 0) {
+ errn = decodeUnsignedInteger16(stream, &iso2MeasurementDataListType->MeasurementData.array[iso2MeasurementDataListType->MeasurementData.arrayLen]);
+ iso2MeasurementDataListType->MeasurementData.arrayLen++;
+ } else {
+ /* Second level event (e.g., xsi:type, xsi:nil, ...) */
+ errn = EXI_UNSUPPORTED_EVENT_CODE_CHARACTERISTICS;
+ }
+ }
+ } else {
+ errn = EXI_ERROR_OUT_OF_BOUNDS;
+ }
+ if(errn == 0) {
+ /* valid EE for simple element START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MeasurementData) ? */
+ errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
+ if(eventCode == 0) {
+ grammarID = 1403;
+ } else {
+ errn = EXI_DEVIANT_SUPPORT_NOT_DEPLOYED; /* or also typecast and nillable */
+ }
+ }
+ break;
+ case 1:
+ done = 1;
+ grammarID = 4;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 1403:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MeasurementData), END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ if (iso2MeasurementDataListType->MeasurementData.arrayLen < iso2MeasurementDataListType_MeasurementData_ARRAY_SIZE) {
+ /* First(xsi:type)StartTag[CHARACTERS[UNSIGNED_INTEGER]] */
+ errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
+ if(errn == 0) {
+ if(eventCode == 0) {
+ errn = decodeUnsignedInteger16(stream, &iso2MeasurementDataListType->MeasurementData.array[iso2MeasurementDataListType->MeasurementData.arrayLen]);
+ iso2MeasurementDataListType->MeasurementData.arrayLen++;
+ } else {
+ /* Second level event (e.g., xsi:type, xsi:nil, ...) */
+ errn = EXI_UNSUPPORTED_EVENT_CODE_CHARACTERISTICS;
+ }
+ }
+ } else {
+ errn = EXI_ERROR_OUT_OF_BOUNDS;
+ }
+ if(errn == 0) {
+ /* valid EE for simple element START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MeasurementData) ? */
+ errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
+ if(eventCode == 0) {
+ grammarID = 1404;
+ } else {
+ errn = EXI_DEVIANT_SUPPORT_NOT_DEPLOYED; /* or also typecast and nillable */
+ }
+ }
+ break;
+ case 1:
+ done = 1;
+ grammarID = 4;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 1404:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MeasurementData), END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ if (iso2MeasurementDataListType->MeasurementData.arrayLen < iso2MeasurementDataListType_MeasurementData_ARRAY_SIZE) {
+ /* First(xsi:type)StartTag[CHARACTERS[UNSIGNED_INTEGER]] */
+ errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
+ if(errn == 0) {
+ if(eventCode == 0) {
+ errn = decodeUnsignedInteger16(stream, &iso2MeasurementDataListType->MeasurementData.array[iso2MeasurementDataListType->MeasurementData.arrayLen]);
+ iso2MeasurementDataListType->MeasurementData.arrayLen++;
+ } else {
+ /* Second level event (e.g., xsi:type, xsi:nil, ...) */
+ errn = EXI_UNSUPPORTED_EVENT_CODE_CHARACTERISTICS;
+ }
+ }
+ } else {
+ errn = EXI_ERROR_OUT_OF_BOUNDS;
+ }
+ if(errn == 0) {
+ /* valid EE for simple element START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MeasurementData) ? */
+ errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
+ if(eventCode == 0) {
+ grammarID = 1405;
+ } else {
+ errn = EXI_DEVIANT_SUPPORT_NOT_DEPLOYED; /* or also typecast and nillable */
+ }
+ }
+ break;
+ case 1:
+ done = 1;
+ grammarID = 4;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 1405:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MeasurementData), END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ if (iso2MeasurementDataListType->MeasurementData.arrayLen < iso2MeasurementDataListType_MeasurementData_ARRAY_SIZE) {
+ /* First(xsi:type)StartTag[CHARACTERS[UNSIGNED_INTEGER]] */
+ errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
+ if(errn == 0) {
+ if(eventCode == 0) {
+ errn = decodeUnsignedInteger16(stream, &iso2MeasurementDataListType->MeasurementData.array[iso2MeasurementDataListType->MeasurementData.arrayLen]);
+ iso2MeasurementDataListType->MeasurementData.arrayLen++;
+ } else {
+ /* Second level event (e.g., xsi:type, xsi:nil, ...) */
+ errn = EXI_UNSUPPORTED_EVENT_CODE_CHARACTERISTICS;
+ }
+ }
+ } else {
+ errn = EXI_ERROR_OUT_OF_BOUNDS;
+ }
+ if(errn == 0) {
+ /* valid EE for simple element START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MeasurementData) ? */
+ errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
+ if(eventCode == 0) {
+ grammarID = 1406;
+ } else {
+ errn = EXI_DEVIANT_SUPPORT_NOT_DEPLOYED; /* or also typecast and nillable */
+ }
+ }
+ break;
+ case 1:
+ done = 1;
+ grammarID = 4;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 1406:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MeasurementData), END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ if (iso2MeasurementDataListType->MeasurementData.arrayLen < iso2MeasurementDataListType_MeasurementData_ARRAY_SIZE) {
+ /* First(xsi:type)StartTag[CHARACTERS[UNSIGNED_INTEGER]] */
+ errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
+ if(errn == 0) {
+ if(eventCode == 0) {
+ errn = decodeUnsignedInteger16(stream, &iso2MeasurementDataListType->MeasurementData.array[iso2MeasurementDataListType->MeasurementData.arrayLen]);
+ iso2MeasurementDataListType->MeasurementData.arrayLen++;
+ } else {
+ /* Second level event (e.g., xsi:type, xsi:nil, ...) */
+ errn = EXI_UNSUPPORTED_EVENT_CODE_CHARACTERISTICS;
+ }
+ }
+ } else {
+ errn = EXI_ERROR_OUT_OF_BOUNDS;
+ }
+ if(errn == 0) {
+ /* valid EE for simple element START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MeasurementData) ? */
+ errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
+ if(eventCode == 0) {
+ grammarID = 1407;
+ } else {
+ errn = EXI_DEVIANT_SUPPORT_NOT_DEPLOYED; /* or also typecast and nillable */
+ }
+ }
+ break;
+ case 1:
+ done = 1;
+ grammarID = 4;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 1407:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MeasurementData), END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ if (iso2MeasurementDataListType->MeasurementData.arrayLen < iso2MeasurementDataListType_MeasurementData_ARRAY_SIZE) {
+ /* First(xsi:type)StartTag[CHARACTERS[UNSIGNED_INTEGER]] */
+ errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
+ if(errn == 0) {
+ if(eventCode == 0) {
+ errn = decodeUnsignedInteger16(stream, &iso2MeasurementDataListType->MeasurementData.array[iso2MeasurementDataListType->MeasurementData.arrayLen]);
+ iso2MeasurementDataListType->MeasurementData.arrayLen++;
+ } else {
+ /* Second level event (e.g., xsi:type, xsi:nil, ...) */
+ errn = EXI_UNSUPPORTED_EVENT_CODE_CHARACTERISTICS;
+ }
+ }
+ } else {
+ errn = EXI_ERROR_OUT_OF_BOUNDS;
+ }
+ if(errn == 0) {
+ /* valid EE for simple element START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MeasurementData) ? */
+ errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
+ if(eventCode == 0) {
+ grammarID = 1408;
+ } else {
+ errn = EXI_DEVIANT_SUPPORT_NOT_DEPLOYED; /* or also typecast and nillable */
+ }
+ }
+ break;
+ case 1:
+ done = 1;
+ grammarID = 4;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 1408:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MeasurementData), END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ if (iso2MeasurementDataListType->MeasurementData.arrayLen < iso2MeasurementDataListType_MeasurementData_ARRAY_SIZE) {
+ /* First(xsi:type)StartTag[CHARACTERS[UNSIGNED_INTEGER]] */
+ errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
+ if(errn == 0) {
+ if(eventCode == 0) {
+ errn = decodeUnsignedInteger16(stream, &iso2MeasurementDataListType->MeasurementData.array[iso2MeasurementDataListType->MeasurementData.arrayLen]);
+ iso2MeasurementDataListType->MeasurementData.arrayLen++;
+ } else {
+ /* Second level event (e.g., xsi:type, xsi:nil, ...) */
+ errn = EXI_UNSUPPORTED_EVENT_CODE_CHARACTERISTICS;
+ }
+ }
+ } else {
+ errn = EXI_ERROR_OUT_OF_BOUNDS;
+ }
+ if(errn == 0) {
+ /* valid EE for simple element START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MeasurementData) ? */
+ errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
+ if(eventCode == 0) {
+ grammarID = 1409;
+ } else {
+ errn = EXI_DEVIANT_SUPPORT_NOT_DEPLOYED; /* or also typecast and nillable */
+ }
+ }
+ break;
+ case 1:
+ done = 1;
+ grammarID = 4;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 1409:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MeasurementData), END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ if (iso2MeasurementDataListType->MeasurementData.arrayLen < iso2MeasurementDataListType_MeasurementData_ARRAY_SIZE) {
+ /* First(xsi:type)StartTag[CHARACTERS[UNSIGNED_INTEGER]] */
+ errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
+ if(errn == 0) {
+ if(eventCode == 0) {
+ errn = decodeUnsignedInteger16(stream, &iso2MeasurementDataListType->MeasurementData.array[iso2MeasurementDataListType->MeasurementData.arrayLen]);
+ iso2MeasurementDataListType->MeasurementData.arrayLen++;
+ } else {
+ /* Second level event (e.g., xsi:type, xsi:nil, ...) */
+ errn = EXI_UNSUPPORTED_EVENT_CODE_CHARACTERISTICS;
+ }
+ }
+ } else {
+ errn = EXI_ERROR_OUT_OF_BOUNDS;
+ }
+ if(errn == 0) {
+ /* valid EE for simple element START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MeasurementData) ? */
+ errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
+ if(eventCode == 0) {
+ grammarID = 1410;
+ } else {
+ errn = EXI_DEVIANT_SUPPORT_NOT_DEPLOYED; /* or also typecast and nillable */
+ }
+ }
+ break;
+ case 1:
+ done = 1;
+ grammarID = 4;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 1410:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MeasurementData), END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ if (iso2MeasurementDataListType->MeasurementData.arrayLen < iso2MeasurementDataListType_MeasurementData_ARRAY_SIZE) {
+ /* First(xsi:type)StartTag[CHARACTERS[UNSIGNED_INTEGER]] */
+ errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
+ if(errn == 0) {
+ if(eventCode == 0) {
+ errn = decodeUnsignedInteger16(stream, &iso2MeasurementDataListType->MeasurementData.array[iso2MeasurementDataListType->MeasurementData.arrayLen]);
+ iso2MeasurementDataListType->MeasurementData.arrayLen++;
+ } else {
+ /* Second level event (e.g., xsi:type, xsi:nil, ...) */
+ errn = EXI_UNSUPPORTED_EVENT_CODE_CHARACTERISTICS;
+ }
+ }
+ } else {
+ errn = EXI_ERROR_OUT_OF_BOUNDS;
+ }
+ if(errn == 0) {
+ /* valid EE for simple element START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MeasurementData) ? */
+ errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
+ if(eventCode == 0) {
+ grammarID = 1411;
+ } else {
+ errn = EXI_DEVIANT_SUPPORT_NOT_DEPLOYED; /* or also typecast and nillable */
+ }
+ }
+ break;
+ case 1:
+ done = 1;
+ grammarID = 4;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 1411:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MeasurementData), END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ if (iso2MeasurementDataListType->MeasurementData.arrayLen < iso2MeasurementDataListType_MeasurementData_ARRAY_SIZE) {
+ /* First(xsi:type)StartTag[CHARACTERS[UNSIGNED_INTEGER]] */
+ errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
+ if(errn == 0) {
+ if(eventCode == 0) {
+ errn = decodeUnsignedInteger16(stream, &iso2MeasurementDataListType->MeasurementData.array[iso2MeasurementDataListType->MeasurementData.arrayLen]);
+ iso2MeasurementDataListType->MeasurementData.arrayLen++;
+ } else {
+ /* Second level event (e.g., xsi:type, xsi:nil, ...) */
+ errn = EXI_UNSUPPORTED_EVENT_CODE_CHARACTERISTICS;
+ }
+ }
+ } else {
+ errn = EXI_ERROR_OUT_OF_BOUNDS;
+ }
+ if(errn == 0) {
+ /* valid EE for simple element START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MeasurementData) ? */
+ errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
+ if(eventCode == 0) {
+ grammarID = 1412;
+ } else {
+ errn = EXI_DEVIANT_SUPPORT_NOT_DEPLOYED; /* or also typecast and nillable */
+ }
+ }
+ break;
+ case 1:
+ done = 1;
+ grammarID = 4;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 1412:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MeasurementData), END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ if (iso2MeasurementDataListType->MeasurementData.arrayLen < iso2MeasurementDataListType_MeasurementData_ARRAY_SIZE) {
+ /* First(xsi:type)StartTag[CHARACTERS[UNSIGNED_INTEGER]] */
+ errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
+ if(errn == 0) {
+ if(eventCode == 0) {
+ errn = decodeUnsignedInteger16(stream, &iso2MeasurementDataListType->MeasurementData.array[iso2MeasurementDataListType->MeasurementData.arrayLen]);
+ iso2MeasurementDataListType->MeasurementData.arrayLen++;
+ } else {
+ /* Second level event (e.g., xsi:type, xsi:nil, ...) */
+ errn = EXI_UNSUPPORTED_EVENT_CODE_CHARACTERISTICS;
+ }
+ }
+ } else {
+ errn = EXI_ERROR_OUT_OF_BOUNDS;
+ }
+ if(errn == 0) {
+ /* valid EE for simple element START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MeasurementData) ? */
+ errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
+ if(eventCode == 0) {
+ grammarID = 1413;
+ } else {
+ errn = EXI_DEVIANT_SUPPORT_NOT_DEPLOYED; /* or also typecast and nillable */
+ }
+ }
+ break;
+ case 1:
+ done = 1;
+ grammarID = 4;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 1413:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MeasurementData), END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ if (iso2MeasurementDataListType->MeasurementData.arrayLen < iso2MeasurementDataListType_MeasurementData_ARRAY_SIZE) {
+ /* First(xsi:type)StartTag[CHARACTERS[UNSIGNED_INTEGER]] */
+ errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
+ if(errn == 0) {
+ if(eventCode == 0) {
+ errn = decodeUnsignedInteger16(stream, &iso2MeasurementDataListType->MeasurementData.array[iso2MeasurementDataListType->MeasurementData.arrayLen]);
+ iso2MeasurementDataListType->MeasurementData.arrayLen++;
+ } else {
+ /* Second level event (e.g., xsi:type, xsi:nil, ...) */
+ errn = EXI_UNSUPPORTED_EVENT_CODE_CHARACTERISTICS;
+ }
+ }
+ } else {
+ errn = EXI_ERROR_OUT_OF_BOUNDS;
+ }
+ if(errn == 0) {
+ /* valid EE for simple element START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MeasurementData) ? */
+ errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
+ if(eventCode == 0) {
+ grammarID = 1414;
+ } else {
+ errn = EXI_DEVIANT_SUPPORT_NOT_DEPLOYED; /* or also typecast and nillable */
+ }
+ }
+ break;
+ case 1:
+ done = 1;
+ grammarID = 4;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 1414:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MeasurementData), END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ if (iso2MeasurementDataListType->MeasurementData.arrayLen < iso2MeasurementDataListType_MeasurementData_ARRAY_SIZE) {
+ /* First(xsi:type)StartTag[CHARACTERS[UNSIGNED_INTEGER]] */
+ errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
+ if(errn == 0) {
+ if(eventCode == 0) {
+ errn = decodeUnsignedInteger16(stream, &iso2MeasurementDataListType->MeasurementData.array[iso2MeasurementDataListType->MeasurementData.arrayLen]);
+ iso2MeasurementDataListType->MeasurementData.arrayLen++;
+ } else {
+ /* Second level event (e.g., xsi:type, xsi:nil, ...) */
+ errn = EXI_UNSUPPORTED_EVENT_CODE_CHARACTERISTICS;
+ }
+ }
+ } else {
+ errn = EXI_ERROR_OUT_OF_BOUNDS;
+ }
+ if(errn == 0) {
+ /* valid EE for simple element START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MeasurementData) ? */
+ errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
+ if(eventCode == 0) {
+ grammarID = 1415;
+ } else {
+ errn = EXI_DEVIANT_SUPPORT_NOT_DEPLOYED; /* or also typecast and nillable */
+ }
+ }
+ break;
+ case 1:
+ done = 1;
+ grammarID = 4;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 1415:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MeasurementData), END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ if (iso2MeasurementDataListType->MeasurementData.arrayLen < iso2MeasurementDataListType_MeasurementData_ARRAY_SIZE) {
+ /* First(xsi:type)StartTag[CHARACTERS[UNSIGNED_INTEGER]] */
+ errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
+ if(errn == 0) {
+ if(eventCode == 0) {
+ errn = decodeUnsignedInteger16(stream, &iso2MeasurementDataListType->MeasurementData.array[iso2MeasurementDataListType->MeasurementData.arrayLen]);
+ iso2MeasurementDataListType->MeasurementData.arrayLen++;
+ } else {
+ /* Second level event (e.g., xsi:type, xsi:nil, ...) */
+ errn = EXI_UNSUPPORTED_EVENT_CODE_CHARACTERISTICS;
+ }
+ }
+ } else {
+ errn = EXI_ERROR_OUT_OF_BOUNDS;
+ }
+ if(errn == 0) {
+ /* valid EE for simple element START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MeasurementData) ? */
+ errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
+ if(eventCode == 0) {
+ grammarID = 1416;
+ } else {
+ errn = EXI_DEVIANT_SUPPORT_NOT_DEPLOYED; /* or also typecast and nillable */
+ }
+ }
+ break;
+ case 1:
+ done = 1;
+ grammarID = 4;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 1416:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MeasurementData), END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ if (iso2MeasurementDataListType->MeasurementData.arrayLen < iso2MeasurementDataListType_MeasurementData_ARRAY_SIZE) {
+ /* First(xsi:type)StartTag[CHARACTERS[UNSIGNED_INTEGER]] */
+ errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
+ if(errn == 0) {
+ if(eventCode == 0) {
+ errn = decodeUnsignedInteger16(stream, &iso2MeasurementDataListType->MeasurementData.array[iso2MeasurementDataListType->MeasurementData.arrayLen]);
+ iso2MeasurementDataListType->MeasurementData.arrayLen++;
+ } else {
+ /* Second level event (e.g., xsi:type, xsi:nil, ...) */
+ errn = EXI_UNSUPPORTED_EVENT_CODE_CHARACTERISTICS;
+ }
+ }
+ } else {
+ errn = EXI_ERROR_OUT_OF_BOUNDS;
+ }
+ if(errn == 0) {
+ /* valid EE for simple element START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MeasurementData) ? */
+ errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
+ if(eventCode == 0) {
+ grammarID = 1417;
+ } else {
+ errn = EXI_DEVIANT_SUPPORT_NOT_DEPLOYED; /* or also typecast and nillable */
+ }
+ }
+ break;
+ case 1:
+ done = 1;
+ grammarID = 4;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 1417:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MeasurementData), END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ if (iso2MeasurementDataListType->MeasurementData.arrayLen < iso2MeasurementDataListType_MeasurementData_ARRAY_SIZE) {
+ /* First(xsi:type)StartTag[CHARACTERS[UNSIGNED_INTEGER]] */
+ errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
+ if(errn == 0) {
+ if(eventCode == 0) {
+ errn = decodeUnsignedInteger16(stream, &iso2MeasurementDataListType->MeasurementData.array[iso2MeasurementDataListType->MeasurementData.arrayLen]);
+ iso2MeasurementDataListType->MeasurementData.arrayLen++;
+ } else {
+ /* Second level event (e.g., xsi:type, xsi:nil, ...) */
+ errn = EXI_UNSUPPORTED_EVENT_CODE_CHARACTERISTICS;
+ }
+ }
+ } else {
+ errn = EXI_ERROR_OUT_OF_BOUNDS;
+ }
+ if(errn == 0) {
+ /* valid EE for simple element START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MeasurementData) ? */
+ errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
+ if(eventCode == 0) {
+ grammarID = 1418;
+ } else {
+ errn = EXI_DEVIANT_SUPPORT_NOT_DEPLOYED; /* or also typecast and nillable */
+ }
+ }
+ break;
+ case 1:
+ done = 1;
+ grammarID = 4;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 1418:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MeasurementData), END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ if (iso2MeasurementDataListType->MeasurementData.arrayLen < iso2MeasurementDataListType_MeasurementData_ARRAY_SIZE) {
+ /* First(xsi:type)StartTag[CHARACTERS[UNSIGNED_INTEGER]] */
+ errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
+ if(errn == 0) {
+ if(eventCode == 0) {
+ errn = decodeUnsignedInteger16(stream, &iso2MeasurementDataListType->MeasurementData.array[iso2MeasurementDataListType->MeasurementData.arrayLen]);
+ iso2MeasurementDataListType->MeasurementData.arrayLen++;
+ } else {
+ /* Second level event (e.g., xsi:type, xsi:nil, ...) */
+ errn = EXI_UNSUPPORTED_EVENT_CODE_CHARACTERISTICS;
+ }
+ }
+ } else {
+ errn = EXI_ERROR_OUT_OF_BOUNDS;
+ }
+ if(errn == 0) {
+ /* valid EE for simple element START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MeasurementData) ? */
+ errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
+ if(eventCode == 0) {
+ grammarID = 1419;
+ } else {
+ errn = EXI_DEVIANT_SUPPORT_NOT_DEPLOYED; /* or also typecast and nillable */
+ }
+ }
+ break;
+ case 1:
+ done = 1;
+ grammarID = 4;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 1419:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MeasurementData), END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ if (iso2MeasurementDataListType->MeasurementData.arrayLen < iso2MeasurementDataListType_MeasurementData_ARRAY_SIZE) {
+ /* First(xsi:type)StartTag[CHARACTERS[UNSIGNED_INTEGER]] */
+ errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
+ if(errn == 0) {
+ if(eventCode == 0) {
+ errn = decodeUnsignedInteger16(stream, &iso2MeasurementDataListType->MeasurementData.array[iso2MeasurementDataListType->MeasurementData.arrayLen]);
+ iso2MeasurementDataListType->MeasurementData.arrayLen++;
+ } else {
+ /* Second level event (e.g., xsi:type, xsi:nil, ...) */
+ errn = EXI_UNSUPPORTED_EVENT_CODE_CHARACTERISTICS;
+ }
+ }
+ } else {
+ errn = EXI_ERROR_OUT_OF_BOUNDS;
+ }
+ if(errn == 0) {
+ /* valid EE for simple element START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MeasurementData) ? */
+ errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
+ if(eventCode == 0) {
+ grammarID = 1420;
+ } else {
+ errn = EXI_DEVIANT_SUPPORT_NOT_DEPLOYED; /* or also typecast and nillable */
+ }
+ }
+ break;
+ case 1:
+ done = 1;
+ grammarID = 4;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 1420:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MeasurementData), END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ if (iso2MeasurementDataListType->MeasurementData.arrayLen < iso2MeasurementDataListType_MeasurementData_ARRAY_SIZE) {
+ /* First(xsi:type)StartTag[CHARACTERS[UNSIGNED_INTEGER]] */
+ errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
+ if(errn == 0) {
+ if(eventCode == 0) {
+ errn = decodeUnsignedInteger16(stream, &iso2MeasurementDataListType->MeasurementData.array[iso2MeasurementDataListType->MeasurementData.arrayLen]);
+ iso2MeasurementDataListType->MeasurementData.arrayLen++;
+ } else {
+ /* Second level event (e.g., xsi:type, xsi:nil, ...) */
+ errn = EXI_UNSUPPORTED_EVENT_CODE_CHARACTERISTICS;
+ }
+ }
+ } else {
+ errn = EXI_ERROR_OUT_OF_BOUNDS;
+ }
+ if(errn == 0) {
+ /* valid EE for simple element START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MeasurementData) ? */
+ errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
+ if(eventCode == 0) {
+ grammarID = 1421;
+ } else {
+ errn = EXI_DEVIANT_SUPPORT_NOT_DEPLOYED; /* or also typecast and nillable */
+ }
+ }
+ break;
+ case 1:
+ done = 1;
+ grammarID = 4;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 1421:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MeasurementData), END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ if (iso2MeasurementDataListType->MeasurementData.arrayLen < iso2MeasurementDataListType_MeasurementData_ARRAY_SIZE) {
+ /* First(xsi:type)StartTag[CHARACTERS[UNSIGNED_INTEGER]] */
+ errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
+ if(errn == 0) {
+ if(eventCode == 0) {
+ errn = decodeUnsignedInteger16(stream, &iso2MeasurementDataListType->MeasurementData.array[iso2MeasurementDataListType->MeasurementData.arrayLen]);
+ iso2MeasurementDataListType->MeasurementData.arrayLen++;
+ } else {
+ /* Second level event (e.g., xsi:type, xsi:nil, ...) */
+ errn = EXI_UNSUPPORTED_EVENT_CODE_CHARACTERISTICS;
+ }
+ }
+ } else {
+ errn = EXI_ERROR_OUT_OF_BOUNDS;
+ }
+ if(errn == 0) {
+ /* valid EE for simple element START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MeasurementData) ? */
+ errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
+ if(eventCode == 0) {
+ grammarID = 1422;
+ } else {
+ errn = EXI_DEVIANT_SUPPORT_NOT_DEPLOYED; /* or also typecast and nillable */
+ }
+ }
+ break;
+ case 1:
+ done = 1;
+ grammarID = 4;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 1422:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MeasurementData), END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ if (iso2MeasurementDataListType->MeasurementData.arrayLen < iso2MeasurementDataListType_MeasurementData_ARRAY_SIZE) {
+ /* First(xsi:type)StartTag[CHARACTERS[UNSIGNED_INTEGER]] */
+ errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
+ if(errn == 0) {
+ if(eventCode == 0) {
+ errn = decodeUnsignedInteger16(stream, &iso2MeasurementDataListType->MeasurementData.array[iso2MeasurementDataListType->MeasurementData.arrayLen]);
+ iso2MeasurementDataListType->MeasurementData.arrayLen++;
+ } else {
+ /* Second level event (e.g., xsi:type, xsi:nil, ...) */
+ errn = EXI_UNSUPPORTED_EVENT_CODE_CHARACTERISTICS;
+ }
+ }
+ } else {
+ errn = EXI_ERROR_OUT_OF_BOUNDS;
+ }
+ if(errn == 0) {
+ /* valid EE for simple element START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MeasurementData) ? */
+ errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
+ if(eventCode == 0) {
+ grammarID = 1423;
+ } else {
+ errn = EXI_DEVIANT_SUPPORT_NOT_DEPLOYED; /* or also typecast and nillable */
+ }
+ }
+ break;
+ case 1:
+ done = 1;
+ grammarID = 4;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 1423:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MeasurementData), END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ if (iso2MeasurementDataListType->MeasurementData.arrayLen < iso2MeasurementDataListType_MeasurementData_ARRAY_SIZE) {
+ /* First(xsi:type)StartTag[CHARACTERS[UNSIGNED_INTEGER]] */
+ errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
+ if(errn == 0) {
+ if(eventCode == 0) {
+ errn = decodeUnsignedInteger16(stream, &iso2MeasurementDataListType->MeasurementData.array[iso2MeasurementDataListType->MeasurementData.arrayLen]);
+ iso2MeasurementDataListType->MeasurementData.arrayLen++;
+ } else {
+ /* Second level event (e.g., xsi:type, xsi:nil, ...) */
+ errn = EXI_UNSUPPORTED_EVENT_CODE_CHARACTERISTICS;
+ }
+ }
+ } else {
+ errn = EXI_ERROR_OUT_OF_BOUNDS;
+ }
+ if(errn == 0) {
+ /* valid EE for simple element START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MeasurementData) ? */
+ errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
+ if(eventCode == 0) {
+ grammarID = 1424;
+ } else {
+ errn = EXI_DEVIANT_SUPPORT_NOT_DEPLOYED; /* or also typecast and nillable */
+ }
+ }
+ break;
+ case 1:
+ done = 1;
+ grammarID = 4;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 1424:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MeasurementData), END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ if (iso2MeasurementDataListType->MeasurementData.arrayLen < iso2MeasurementDataListType_MeasurementData_ARRAY_SIZE) {
+ /* First(xsi:type)StartTag[CHARACTERS[UNSIGNED_INTEGER]] */
+ errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
+ if(errn == 0) {
+ if(eventCode == 0) {
+ errn = decodeUnsignedInteger16(stream, &iso2MeasurementDataListType->MeasurementData.array[iso2MeasurementDataListType->MeasurementData.arrayLen]);
+ iso2MeasurementDataListType->MeasurementData.arrayLen++;
+ } else {
+ /* Second level event (e.g., xsi:type, xsi:nil, ...) */
+ errn = EXI_UNSUPPORTED_EVENT_CODE_CHARACTERISTICS;
+ }
+ }
+ } else {
+ errn = EXI_ERROR_OUT_OF_BOUNDS;
+ }
+ if(errn == 0) {
+ /* valid EE for simple element START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MeasurementData) ? */
+ errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
+ if(eventCode == 0) {
+ grammarID = 1425;
+ } else {
+ errn = EXI_DEVIANT_SUPPORT_NOT_DEPLOYED; /* or also typecast and nillable */
+ }
+ }
+ break;
+ case 1:
+ done = 1;
+ grammarID = 4;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 1425:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MeasurementData), END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ if (iso2MeasurementDataListType->MeasurementData.arrayLen < iso2MeasurementDataListType_MeasurementData_ARRAY_SIZE) {
+ /* First(xsi:type)StartTag[CHARACTERS[UNSIGNED_INTEGER]] */
+ errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
+ if(errn == 0) {
+ if(eventCode == 0) {
+ errn = decodeUnsignedInteger16(stream, &iso2MeasurementDataListType->MeasurementData.array[iso2MeasurementDataListType->MeasurementData.arrayLen]);
+ iso2MeasurementDataListType->MeasurementData.arrayLen++;
+ } else {
+ /* Second level event (e.g., xsi:type, xsi:nil, ...) */
+ errn = EXI_UNSUPPORTED_EVENT_CODE_CHARACTERISTICS;
+ }
+ }
+ } else {
+ errn = EXI_ERROR_OUT_OF_BOUNDS;
+ }
+ if(errn == 0) {
+ /* valid EE for simple element START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MeasurementData) ? */
+ errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
+ if(eventCode == 0) {
+ grammarID = 1426;
+ } else {
+ errn = EXI_DEVIANT_SUPPORT_NOT_DEPLOYED; /* or also typecast and nillable */
+ }
+ }
+ break;
+ case 1:
+ done = 1;
+ grammarID = 4;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 1426:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MeasurementData), END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ if (iso2MeasurementDataListType->MeasurementData.arrayLen < iso2MeasurementDataListType_MeasurementData_ARRAY_SIZE) {
+ /* First(xsi:type)StartTag[CHARACTERS[UNSIGNED_INTEGER]] */
+ errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
+ if(errn == 0) {
+ if(eventCode == 0) {
+ errn = decodeUnsignedInteger16(stream, &iso2MeasurementDataListType->MeasurementData.array[iso2MeasurementDataListType->MeasurementData.arrayLen]);
+ iso2MeasurementDataListType->MeasurementData.arrayLen++;
+ } else {
+ /* Second level event (e.g., xsi:type, xsi:nil, ...) */
+ errn = EXI_UNSUPPORTED_EVENT_CODE_CHARACTERISTICS;
+ }
+ }
+ } else {
+ errn = EXI_ERROR_OUT_OF_BOUNDS;
+ }
+ if(errn == 0) {
+ /* valid EE for simple element START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MeasurementData) ? */
+ errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
+ if(eventCode == 0) {
+ grammarID = 1427;
+ } else {
+ errn = EXI_DEVIANT_SUPPORT_NOT_DEPLOYED; /* or also typecast and nillable */
+ }
+ }
+ break;
+ case 1:
+ done = 1;
+ grammarID = 4;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 1427:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MeasurementData), END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ if (iso2MeasurementDataListType->MeasurementData.arrayLen < iso2MeasurementDataListType_MeasurementData_ARRAY_SIZE) {
+ /* First(xsi:type)StartTag[CHARACTERS[UNSIGNED_INTEGER]] */
+ errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
+ if(errn == 0) {
+ if(eventCode == 0) {
+ errn = decodeUnsignedInteger16(stream, &iso2MeasurementDataListType->MeasurementData.array[iso2MeasurementDataListType->MeasurementData.arrayLen]);
+ iso2MeasurementDataListType->MeasurementData.arrayLen++;
+ } else {
+ /* Second level event (e.g., xsi:type, xsi:nil, ...) */
+ errn = EXI_UNSUPPORTED_EVENT_CODE_CHARACTERISTICS;
+ }
+ }
+ } else {
+ errn = EXI_ERROR_OUT_OF_BOUNDS;
+ }
+ if(errn == 0) {
+ /* valid EE for simple element START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MeasurementData) ? */
+ errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
+ if(eventCode == 0) {
+ grammarID = 1428;
+ } else {
+ errn = EXI_DEVIANT_SUPPORT_NOT_DEPLOYED; /* or also typecast and nillable */
+ }
+ }
+ break;
+ case 1:
+ done = 1;
+ grammarID = 4;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 1428:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MeasurementData), END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ if (iso2MeasurementDataListType->MeasurementData.arrayLen < iso2MeasurementDataListType_MeasurementData_ARRAY_SIZE) {
+ /* First(xsi:type)StartTag[CHARACTERS[UNSIGNED_INTEGER]] */
+ errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
+ if(errn == 0) {
+ if(eventCode == 0) {
+ errn = decodeUnsignedInteger16(stream, &iso2MeasurementDataListType->MeasurementData.array[iso2MeasurementDataListType->MeasurementData.arrayLen]);
+ iso2MeasurementDataListType->MeasurementData.arrayLen++;
+ } else {
+ /* Second level event (e.g., xsi:type, xsi:nil, ...) */
+ errn = EXI_UNSUPPORTED_EVENT_CODE_CHARACTERISTICS;
+ }
+ }
+ } else {
+ errn = EXI_ERROR_OUT_OF_BOUNDS;
+ }
+ if(errn == 0) {
+ /* valid EE for simple element START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MeasurementData) ? */
+ errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
+ if(eventCode == 0) {
+ grammarID = 1429;
+ } else {
+ errn = EXI_DEVIANT_SUPPORT_NOT_DEPLOYED; /* or also typecast and nillable */
+ }
+ }
+ break;
+ case 1:
+ done = 1;
+ grammarID = 4;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 1429:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MeasurementData), END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ if (iso2MeasurementDataListType->MeasurementData.arrayLen < iso2MeasurementDataListType_MeasurementData_ARRAY_SIZE) {
+ /* First(xsi:type)StartTag[CHARACTERS[UNSIGNED_INTEGER]] */
+ errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
+ if(errn == 0) {
+ if(eventCode == 0) {
+ errn = decodeUnsignedInteger16(stream, &iso2MeasurementDataListType->MeasurementData.array[iso2MeasurementDataListType->MeasurementData.arrayLen]);
+ iso2MeasurementDataListType->MeasurementData.arrayLen++;
+ } else {
+ /* Second level event (e.g., xsi:type, xsi:nil, ...) */
+ errn = EXI_UNSUPPORTED_EVENT_CODE_CHARACTERISTICS;
+ }
+ }
+ } else {
+ errn = EXI_ERROR_OUT_OF_BOUNDS;
+ }
+ if(errn == 0) {
+ /* valid EE for simple element START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MeasurementData) ? */
+ errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
+ if(eventCode == 0) {
+ grammarID = 1430;
+ } else {
+ errn = EXI_DEVIANT_SUPPORT_NOT_DEPLOYED; /* or also typecast and nillable */
+ }
+ }
+ break;
+ case 1:
+ done = 1;
+ grammarID = 4;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 1430:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MeasurementData), END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ if (iso2MeasurementDataListType->MeasurementData.arrayLen < iso2MeasurementDataListType_MeasurementData_ARRAY_SIZE) {
+ /* First(xsi:type)StartTag[CHARACTERS[UNSIGNED_INTEGER]] */
+ errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
+ if(errn == 0) {
+ if(eventCode == 0) {
+ errn = decodeUnsignedInteger16(stream, &iso2MeasurementDataListType->MeasurementData.array[iso2MeasurementDataListType->MeasurementData.arrayLen]);
+ iso2MeasurementDataListType->MeasurementData.arrayLen++;
+ } else {
+ /* Second level event (e.g., xsi:type, xsi:nil, ...) */
+ errn = EXI_UNSUPPORTED_EVENT_CODE_CHARACTERISTICS;
+ }
+ }
+ } else {
+ errn = EXI_ERROR_OUT_OF_BOUNDS;
+ }
+ if(errn == 0) {
+ /* valid EE for simple element START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MeasurementData) ? */
+ errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
+ if(eventCode == 0) {
+ grammarID = 1431;
+ } else {
+ errn = EXI_DEVIANT_SUPPORT_NOT_DEPLOYED; /* or also typecast and nillable */
+ }
+ }
+ break;
+ case 1:
+ done = 1;
+ grammarID = 4;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 1431:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MeasurementData), END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ if (iso2MeasurementDataListType->MeasurementData.arrayLen < iso2MeasurementDataListType_MeasurementData_ARRAY_SIZE) {
+ /* First(xsi:type)StartTag[CHARACTERS[UNSIGNED_INTEGER]] */
+ errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
+ if(errn == 0) {
+ if(eventCode == 0) {
+ errn = decodeUnsignedInteger16(stream, &iso2MeasurementDataListType->MeasurementData.array[iso2MeasurementDataListType->MeasurementData.arrayLen]);
+ iso2MeasurementDataListType->MeasurementData.arrayLen++;
+ } else {
+ /* Second level event (e.g., xsi:type, xsi:nil, ...) */
+ errn = EXI_UNSUPPORTED_EVENT_CODE_CHARACTERISTICS;
+ }
+ }
+ } else {
+ errn = EXI_ERROR_OUT_OF_BOUNDS;
+ }
+ if(errn == 0) {
+ /* valid EE for simple element START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MeasurementData) ? */
+ errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
+ if(eventCode == 0) {
+ grammarID = 1432;
+ } else {
+ errn = EXI_DEVIANT_SUPPORT_NOT_DEPLOYED; /* or also typecast and nillable */
+ }
+ }
+ break;
+ case 1:
+ done = 1;
+ grammarID = 4;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 1432:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MeasurementData), END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ if (iso2MeasurementDataListType->MeasurementData.arrayLen < iso2MeasurementDataListType_MeasurementData_ARRAY_SIZE) {
+ /* First(xsi:type)StartTag[CHARACTERS[UNSIGNED_INTEGER]] */
+ errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
+ if(errn == 0) {
+ if(eventCode == 0) {
+ errn = decodeUnsignedInteger16(stream, &iso2MeasurementDataListType->MeasurementData.array[iso2MeasurementDataListType->MeasurementData.arrayLen]);
+ iso2MeasurementDataListType->MeasurementData.arrayLen++;
+ } else {
+ /* Second level event (e.g., xsi:type, xsi:nil, ...) */
+ errn = EXI_UNSUPPORTED_EVENT_CODE_CHARACTERISTICS;
+ }
+ }
+ } else {
+ errn = EXI_ERROR_OUT_OF_BOUNDS;
+ }
+ if(errn == 0) {
+ /* valid EE for simple element START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MeasurementData) ? */
+ errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
+ if(eventCode == 0) {
+ grammarID = 1433;
+ } else {
+ errn = EXI_DEVIANT_SUPPORT_NOT_DEPLOYED; /* or also typecast and nillable */
+ }
+ }
+ break;
+ case 1:
+ done = 1;
+ grammarID = 4;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 1433:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MeasurementData), END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ if (iso2MeasurementDataListType->MeasurementData.arrayLen < iso2MeasurementDataListType_MeasurementData_ARRAY_SIZE) {
+ /* First(xsi:type)StartTag[CHARACTERS[UNSIGNED_INTEGER]] */
+ errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
+ if(errn == 0) {
+ if(eventCode == 0) {
+ errn = decodeUnsignedInteger16(stream, &iso2MeasurementDataListType->MeasurementData.array[iso2MeasurementDataListType->MeasurementData.arrayLen]);
+ iso2MeasurementDataListType->MeasurementData.arrayLen++;
+ } else {
+ /* Second level event (e.g., xsi:type, xsi:nil, ...) */
+ errn = EXI_UNSUPPORTED_EVENT_CODE_CHARACTERISTICS;
+ }
+ }
+ } else {
+ errn = EXI_ERROR_OUT_OF_BOUNDS;
+ }
+ if(errn == 0) {
+ /* valid EE for simple element START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MeasurementData) ? */
+ errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
+ if(eventCode == 0) {
+ grammarID = 1434;
+ } else {
+ errn = EXI_DEVIANT_SUPPORT_NOT_DEPLOYED; /* or also typecast and nillable */
+ }
+ }
+ break;
+ case 1:
+ done = 1;
+ grammarID = 4;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 1434:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MeasurementData), END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ if (iso2MeasurementDataListType->MeasurementData.arrayLen < iso2MeasurementDataListType_MeasurementData_ARRAY_SIZE) {
+ /* First(xsi:type)StartTag[CHARACTERS[UNSIGNED_INTEGER]] */
+ errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
+ if(errn == 0) {
+ if(eventCode == 0) {
+ errn = decodeUnsignedInteger16(stream, &iso2MeasurementDataListType->MeasurementData.array[iso2MeasurementDataListType->MeasurementData.arrayLen]);
+ iso2MeasurementDataListType->MeasurementData.arrayLen++;
+ } else {
+ /* Second level event (e.g., xsi:type, xsi:nil, ...) */
+ errn = EXI_UNSUPPORTED_EVENT_CODE_CHARACTERISTICS;
+ }
+ }
+ } else {
+ errn = EXI_ERROR_OUT_OF_BOUNDS;
+ }
+ if(errn == 0) {
+ /* valid EE for simple element START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MeasurementData) ? */
+ errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
+ if(eventCode == 0) {
+ grammarID = 1435;
+ } else {
+ errn = EXI_DEVIANT_SUPPORT_NOT_DEPLOYED; /* or also typecast and nillable */
+ }
+ }
+ break;
+ case 1:
+ done = 1;
+ grammarID = 4;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 1435:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MeasurementData), END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ if (iso2MeasurementDataListType->MeasurementData.arrayLen < iso2MeasurementDataListType_MeasurementData_ARRAY_SIZE) {
+ /* First(xsi:type)StartTag[CHARACTERS[UNSIGNED_INTEGER]] */
+ errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
+ if(errn == 0) {
+ if(eventCode == 0) {
+ errn = decodeUnsignedInteger16(stream, &iso2MeasurementDataListType->MeasurementData.array[iso2MeasurementDataListType->MeasurementData.arrayLen]);
+ iso2MeasurementDataListType->MeasurementData.arrayLen++;
+ } else {
+ /* Second level event (e.g., xsi:type, xsi:nil, ...) */
+ errn = EXI_UNSUPPORTED_EVENT_CODE_CHARACTERISTICS;
+ }
+ }
+ } else {
+ errn = EXI_ERROR_OUT_OF_BOUNDS;
+ }
+ if(errn == 0) {
+ /* valid EE for simple element START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MeasurementData) ? */
+ errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
+ if(eventCode == 0) {
+ grammarID = 1436;
+ } else {
+ errn = EXI_DEVIANT_SUPPORT_NOT_DEPLOYED; /* or also typecast and nillable */
+ }
+ }
+ break;
+ case 1:
+ done = 1;
+ grammarID = 4;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 1436:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MeasurementData), END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ if (iso2MeasurementDataListType->MeasurementData.arrayLen < iso2MeasurementDataListType_MeasurementData_ARRAY_SIZE) {
+ /* First(xsi:type)StartTag[CHARACTERS[UNSIGNED_INTEGER]] */
+ errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
+ if(errn == 0) {
+ if(eventCode == 0) {
+ errn = decodeUnsignedInteger16(stream, &iso2MeasurementDataListType->MeasurementData.array[iso2MeasurementDataListType->MeasurementData.arrayLen]);
+ iso2MeasurementDataListType->MeasurementData.arrayLen++;
+ } else {
+ /* Second level event (e.g., xsi:type, xsi:nil, ...) */
+ errn = EXI_UNSUPPORTED_EVENT_CODE_CHARACTERISTICS;
+ }
+ }
+ } else {
+ errn = EXI_ERROR_OUT_OF_BOUNDS;
+ }
+ if(errn == 0) {
+ /* valid EE for simple element START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MeasurementData) ? */
+ errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
+ if(eventCode == 0) {
+ grammarID = 1437;
+ } else {
+ errn = EXI_DEVIANT_SUPPORT_NOT_DEPLOYED; /* or also typecast and nillable */
+ }
+ }
+ break;
+ case 1:
+ done = 1;
+ grammarID = 4;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 1437:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MeasurementData), END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ if (iso2MeasurementDataListType->MeasurementData.arrayLen < iso2MeasurementDataListType_MeasurementData_ARRAY_SIZE) {
+ /* First(xsi:type)StartTag[CHARACTERS[UNSIGNED_INTEGER]] */
+ errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
+ if(errn == 0) {
+ if(eventCode == 0) {
+ errn = decodeUnsignedInteger16(stream, &iso2MeasurementDataListType->MeasurementData.array[iso2MeasurementDataListType->MeasurementData.arrayLen]);
+ iso2MeasurementDataListType->MeasurementData.arrayLen++;
+ } else {
+ /* Second level event (e.g., xsi:type, xsi:nil, ...) */
+ errn = EXI_UNSUPPORTED_EVENT_CODE_CHARACTERISTICS;
+ }
+ }
+ } else {
+ errn = EXI_ERROR_OUT_OF_BOUNDS;
+ }
+ if(errn == 0) {
+ /* valid EE for simple element START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MeasurementData) ? */
+ errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
+ if(eventCode == 0) {
+ grammarID = 1438;
+ } else {
+ errn = EXI_DEVIANT_SUPPORT_NOT_DEPLOYED; /* or also typecast and nillable */
+ }
+ }
+ break;
+ case 1:
+ done = 1;
+ grammarID = 4;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 1438:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MeasurementData), END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ if (iso2MeasurementDataListType->MeasurementData.arrayLen < iso2MeasurementDataListType_MeasurementData_ARRAY_SIZE) {
+ /* First(xsi:type)StartTag[CHARACTERS[UNSIGNED_INTEGER]] */
+ errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
+ if(errn == 0) {
+ if(eventCode == 0) {
+ errn = decodeUnsignedInteger16(stream, &iso2MeasurementDataListType->MeasurementData.array[iso2MeasurementDataListType->MeasurementData.arrayLen]);
+ iso2MeasurementDataListType->MeasurementData.arrayLen++;
+ } else {
+ /* Second level event (e.g., xsi:type, xsi:nil, ...) */
+ errn = EXI_UNSUPPORTED_EVENT_CODE_CHARACTERISTICS;
+ }
+ }
+ } else {
+ errn = EXI_ERROR_OUT_OF_BOUNDS;
+ }
+ if(errn == 0) {
+ /* valid EE for simple element START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MeasurementData) ? */
+ errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
+ if(eventCode == 0) {
+ grammarID = 1439;
+ } else {
+ errn = EXI_DEVIANT_SUPPORT_NOT_DEPLOYED; /* or also typecast and nillable */
+ }
+ }
+ break;
+ case 1:
+ done = 1;
+ grammarID = 4;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 1439:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MeasurementData), END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ if (iso2MeasurementDataListType->MeasurementData.arrayLen < iso2MeasurementDataListType_MeasurementData_ARRAY_SIZE) {
+ /* First(xsi:type)StartTag[CHARACTERS[UNSIGNED_INTEGER]] */
+ errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
+ if(errn == 0) {
+ if(eventCode == 0) {
+ errn = decodeUnsignedInteger16(stream, &iso2MeasurementDataListType->MeasurementData.array[iso2MeasurementDataListType->MeasurementData.arrayLen]);
+ iso2MeasurementDataListType->MeasurementData.arrayLen++;
+ } else {
+ /* Second level event (e.g., xsi:type, xsi:nil, ...) */
+ errn = EXI_UNSUPPORTED_EVENT_CODE_CHARACTERISTICS;
+ }
+ }
+ } else {
+ errn = EXI_ERROR_OUT_OF_BOUNDS;
+ }
+ if(errn == 0) {
+ /* valid EE for simple element START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MeasurementData) ? */
+ errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
+ if(eventCode == 0) {
+ grammarID = 1440;
+ } else {
+ errn = EXI_DEVIANT_SUPPORT_NOT_DEPLOYED; /* or also typecast and nillable */
+ }
+ }
+ break;
+ case 1:
+ done = 1;
+ grammarID = 4;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 1440:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MeasurementData), END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ if (iso2MeasurementDataListType->MeasurementData.arrayLen < iso2MeasurementDataListType_MeasurementData_ARRAY_SIZE) {
+ /* First(xsi:type)StartTag[CHARACTERS[UNSIGNED_INTEGER]] */
+ errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
+ if(errn == 0) {
+ if(eventCode == 0) {
+ errn = decodeUnsignedInteger16(stream, &iso2MeasurementDataListType->MeasurementData.array[iso2MeasurementDataListType->MeasurementData.arrayLen]);
+ iso2MeasurementDataListType->MeasurementData.arrayLen++;
+ } else {
+ /* Second level event (e.g., xsi:type, xsi:nil, ...) */
+ errn = EXI_UNSUPPORTED_EVENT_CODE_CHARACTERISTICS;
+ }
+ }
+ } else {
+ errn = EXI_ERROR_OUT_OF_BOUNDS;
+ }
+ if(errn == 0) {
+ /* valid EE for simple element START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MeasurementData) ? */
+ errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
+ if(eventCode == 0) {
+ grammarID = 1441;
+ } else {
+ errn = EXI_DEVIANT_SUPPORT_NOT_DEPLOYED; /* or also typecast and nillable */
+ }
+ }
+ break;
+ case 1:
+ done = 1;
+ grammarID = 4;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 1441:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MeasurementData), END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ if (iso2MeasurementDataListType->MeasurementData.arrayLen < iso2MeasurementDataListType_MeasurementData_ARRAY_SIZE) {
+ /* First(xsi:type)StartTag[CHARACTERS[UNSIGNED_INTEGER]] */
+ errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
+ if(errn == 0) {
+ if(eventCode == 0) {
+ errn = decodeUnsignedInteger16(stream, &iso2MeasurementDataListType->MeasurementData.array[iso2MeasurementDataListType->MeasurementData.arrayLen]);
+ iso2MeasurementDataListType->MeasurementData.arrayLen++;
+ } else {
+ /* Second level event (e.g., xsi:type, xsi:nil, ...) */
+ errn = EXI_UNSUPPORTED_EVENT_CODE_CHARACTERISTICS;
+ }
+ }
+ } else {
+ errn = EXI_ERROR_OUT_OF_BOUNDS;
+ }
+ if(errn == 0) {
+ /* valid EE for simple element START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MeasurementData) ? */
+ errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
+ if(eventCode == 0) {
+ grammarID = 1442;
+ } else {
+ errn = EXI_DEVIANT_SUPPORT_NOT_DEPLOYED; /* or also typecast and nillable */
+ }
+ }
+ break;
+ case 1:
+ done = 1;
+ grammarID = 4;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 1442:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MeasurementData), END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ if (iso2MeasurementDataListType->MeasurementData.arrayLen < iso2MeasurementDataListType_MeasurementData_ARRAY_SIZE) {
+ /* First(xsi:type)StartTag[CHARACTERS[UNSIGNED_INTEGER]] */
+ errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
+ if(errn == 0) {
+ if(eventCode == 0) {
+ errn = decodeUnsignedInteger16(stream, &iso2MeasurementDataListType->MeasurementData.array[iso2MeasurementDataListType->MeasurementData.arrayLen]);
+ iso2MeasurementDataListType->MeasurementData.arrayLen++;
+ } else {
+ /* Second level event (e.g., xsi:type, xsi:nil, ...) */
+ errn = EXI_UNSUPPORTED_EVENT_CODE_CHARACTERISTICS;
+ }
+ }
+ } else {
+ errn = EXI_ERROR_OUT_OF_BOUNDS;
+ }
+ if(errn == 0) {
+ /* valid EE for simple element START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MeasurementData) ? */
+ errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
+ if(eventCode == 0) {
+ grammarID = 1443;
+ } else {
+ errn = EXI_DEVIANT_SUPPORT_NOT_DEPLOYED; /* or also typecast and nillable */
+ }
+ }
+ break;
+ case 1:
+ done = 1;
+ grammarID = 4;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 1443:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MeasurementData), END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ if (iso2MeasurementDataListType->MeasurementData.arrayLen < iso2MeasurementDataListType_MeasurementData_ARRAY_SIZE) {
+ /* First(xsi:type)StartTag[CHARACTERS[UNSIGNED_INTEGER]] */
+ errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
+ if(errn == 0) {
+ if(eventCode == 0) {
+ errn = decodeUnsignedInteger16(stream, &iso2MeasurementDataListType->MeasurementData.array[iso2MeasurementDataListType->MeasurementData.arrayLen]);
+ iso2MeasurementDataListType->MeasurementData.arrayLen++;
+ } else {
+ /* Second level event (e.g., xsi:type, xsi:nil, ...) */
+ errn = EXI_UNSUPPORTED_EVENT_CODE_CHARACTERISTICS;
+ }
+ }
+ } else {
+ errn = EXI_ERROR_OUT_OF_BOUNDS;
+ }
+ if(errn == 0) {
+ /* valid EE for simple element START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MeasurementData) ? */
+ errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
+ if(eventCode == 0) {
+ grammarID = 1444;
+ } else {
+ errn = EXI_DEVIANT_SUPPORT_NOT_DEPLOYED; /* or also typecast and nillable */
+ }
+ }
+ break;
+ case 1:
+ done = 1;
+ grammarID = 4;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 1444:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MeasurementData), END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ if (iso2MeasurementDataListType->MeasurementData.arrayLen < iso2MeasurementDataListType_MeasurementData_ARRAY_SIZE) {
+ /* First(xsi:type)StartTag[CHARACTERS[UNSIGNED_INTEGER]] */
+ errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
+ if(errn == 0) {
+ if(eventCode == 0) {
+ errn = decodeUnsignedInteger16(stream, &iso2MeasurementDataListType->MeasurementData.array[iso2MeasurementDataListType->MeasurementData.arrayLen]);
+ iso2MeasurementDataListType->MeasurementData.arrayLen++;
+ } else {
+ /* Second level event (e.g., xsi:type, xsi:nil, ...) */
+ errn = EXI_UNSUPPORTED_EVENT_CODE_CHARACTERISTICS;
+ }
+ }
+ } else {
+ errn = EXI_ERROR_OUT_OF_BOUNDS;
+ }
+ if(errn == 0) {
+ /* valid EE for simple element START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MeasurementData) ? */
+ errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
+ if(eventCode == 0) {
+ grammarID = 1445;
+ } else {
+ errn = EXI_DEVIANT_SUPPORT_NOT_DEPLOYED; /* or also typecast and nillable */
+ }
+ }
+ break;
+ case 1:
+ done = 1;
+ grammarID = 4;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 1445:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MeasurementData), END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ if (iso2MeasurementDataListType->MeasurementData.arrayLen < iso2MeasurementDataListType_MeasurementData_ARRAY_SIZE) {
+ /* First(xsi:type)StartTag[CHARACTERS[UNSIGNED_INTEGER]] */
+ errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
+ if(errn == 0) {
+ if(eventCode == 0) {
+ errn = decodeUnsignedInteger16(stream, &iso2MeasurementDataListType->MeasurementData.array[iso2MeasurementDataListType->MeasurementData.arrayLen]);
+ iso2MeasurementDataListType->MeasurementData.arrayLen++;
+ } else {
+ /* Second level event (e.g., xsi:type, xsi:nil, ...) */
+ errn = EXI_UNSUPPORTED_EVENT_CODE_CHARACTERISTICS;
+ }
+ }
+ } else {
+ errn = EXI_ERROR_OUT_OF_BOUNDS;
+ }
+ if(errn == 0) {
+ /* valid EE for simple element START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MeasurementData) ? */
+ errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
+ if(eventCode == 0) {
+ grammarID = 1446;
+ } else {
+ errn = EXI_DEVIANT_SUPPORT_NOT_DEPLOYED; /* or also typecast and nillable */
+ }
+ }
+ break;
+ case 1:
+ done = 1;
+ grammarID = 4;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 1446:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MeasurementData), END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ if (iso2MeasurementDataListType->MeasurementData.arrayLen < iso2MeasurementDataListType_MeasurementData_ARRAY_SIZE) {
+ /* First(xsi:type)StartTag[CHARACTERS[UNSIGNED_INTEGER]] */
+ errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
+ if(errn == 0) {
+ if(eventCode == 0) {
+ errn = decodeUnsignedInteger16(stream, &iso2MeasurementDataListType->MeasurementData.array[iso2MeasurementDataListType->MeasurementData.arrayLen]);
+ iso2MeasurementDataListType->MeasurementData.arrayLen++;
+ } else {
+ /* Second level event (e.g., xsi:type, xsi:nil, ...) */
+ errn = EXI_UNSUPPORTED_EVENT_CODE_CHARACTERISTICS;
+ }
+ }
+ } else {
+ errn = EXI_ERROR_OUT_OF_BOUNDS;
+ }
+ if(errn == 0) {
+ /* valid EE for simple element START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MeasurementData) ? */
+ errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
+ if(eventCode == 0) {
+ grammarID = 1447;
+ } else {
+ errn = EXI_DEVIANT_SUPPORT_NOT_DEPLOYED; /* or also typecast and nillable */
+ }
+ }
+ break;
+ case 1:
+ done = 1;
+ grammarID = 4;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 1447:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MeasurementData), END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ if (iso2MeasurementDataListType->MeasurementData.arrayLen < iso2MeasurementDataListType_MeasurementData_ARRAY_SIZE) {
+ /* First(xsi:type)StartTag[CHARACTERS[UNSIGNED_INTEGER]] */
+ errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
+ if(errn == 0) {
+ if(eventCode == 0) {
+ errn = decodeUnsignedInteger16(stream, &iso2MeasurementDataListType->MeasurementData.array[iso2MeasurementDataListType->MeasurementData.arrayLen]);
+ iso2MeasurementDataListType->MeasurementData.arrayLen++;
+ } else {
+ /* Second level event (e.g., xsi:type, xsi:nil, ...) */
+ errn = EXI_UNSUPPORTED_EVENT_CODE_CHARACTERISTICS;
+ }
+ }
+ } else {
+ errn = EXI_ERROR_OUT_OF_BOUNDS;
+ }
+ if(errn == 0) {
+ /* valid EE for simple element START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MeasurementData) ? */
+ errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
+ if(eventCode == 0) {
+ grammarID = 1448;
+ } else {
+ errn = EXI_DEVIANT_SUPPORT_NOT_DEPLOYED; /* or also typecast and nillable */
+ }
+ }
+ break;
+ case 1:
+ done = 1;
+ grammarID = 4;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 1448:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MeasurementData), END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ if (iso2MeasurementDataListType->MeasurementData.arrayLen < iso2MeasurementDataListType_MeasurementData_ARRAY_SIZE) {
+ /* First(xsi:type)StartTag[CHARACTERS[UNSIGNED_INTEGER]] */
+ errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
+ if(errn == 0) {
+ if(eventCode == 0) {
+ errn = decodeUnsignedInteger16(stream, &iso2MeasurementDataListType->MeasurementData.array[iso2MeasurementDataListType->MeasurementData.arrayLen]);
+ iso2MeasurementDataListType->MeasurementData.arrayLen++;
+ } else {
+ /* Second level event (e.g., xsi:type, xsi:nil, ...) */
+ errn = EXI_UNSUPPORTED_EVENT_CODE_CHARACTERISTICS;
+ }
+ }
+ } else {
+ errn = EXI_ERROR_OUT_OF_BOUNDS;
+ }
+ if(errn == 0) {
+ /* valid EE for simple element START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MeasurementData) ? */
+ errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
+ if(eventCode == 0) {
+ grammarID = 1449;
+ } else {
+ errn = EXI_DEVIANT_SUPPORT_NOT_DEPLOYED; /* or also typecast and nillable */
+ }
+ }
+ break;
+ case 1:
+ done = 1;
+ grammarID = 4;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 1449:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MeasurementData), END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ if (iso2MeasurementDataListType->MeasurementData.arrayLen < iso2MeasurementDataListType_MeasurementData_ARRAY_SIZE) {
+ /* First(xsi:type)StartTag[CHARACTERS[UNSIGNED_INTEGER]] */
+ errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
+ if(errn == 0) {
+ if(eventCode == 0) {
+ errn = decodeUnsignedInteger16(stream, &iso2MeasurementDataListType->MeasurementData.array[iso2MeasurementDataListType->MeasurementData.arrayLen]);
+ iso2MeasurementDataListType->MeasurementData.arrayLen++;
+ } else {
+ /* Second level event (e.g., xsi:type, xsi:nil, ...) */
+ errn = EXI_UNSUPPORTED_EVENT_CODE_CHARACTERISTICS;
+ }
+ }
+ } else {
+ errn = EXI_ERROR_OUT_OF_BOUNDS;
+ }
+ if(errn == 0) {
+ /* valid EE for simple element START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MeasurementData) ? */
+ errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
+ if(eventCode == 0) {
+ grammarID = 1450;
+ } else {
+ errn = EXI_DEVIANT_SUPPORT_NOT_DEPLOYED; /* or also typecast and nillable */
+ }
+ }
+ break;
+ case 1:
+ done = 1;
+ grammarID = 4;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 1450:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MeasurementData), END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ if (iso2MeasurementDataListType->MeasurementData.arrayLen < iso2MeasurementDataListType_MeasurementData_ARRAY_SIZE) {
+ /* First(xsi:type)StartTag[CHARACTERS[UNSIGNED_INTEGER]] */
+ errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
+ if(errn == 0) {
+ if(eventCode == 0) {
+ errn = decodeUnsignedInteger16(stream, &iso2MeasurementDataListType->MeasurementData.array[iso2MeasurementDataListType->MeasurementData.arrayLen]);
+ iso2MeasurementDataListType->MeasurementData.arrayLen++;
+ } else {
+ /* Second level event (e.g., xsi:type, xsi:nil, ...) */
+ errn = EXI_UNSUPPORTED_EVENT_CODE_CHARACTERISTICS;
+ }
+ }
+ } else {
+ errn = EXI_ERROR_OUT_OF_BOUNDS;
+ }
+ if(errn == 0) {
+ /* valid EE for simple element START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MeasurementData) ? */
+ errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
+ if(eventCode == 0) {
+ grammarID = 1451;
+ } else {
+ errn = EXI_DEVIANT_SUPPORT_NOT_DEPLOYED; /* or also typecast and nillable */
+ }
+ }
+ break;
+ case 1:
+ done = 1;
+ grammarID = 4;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 1451:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MeasurementData), END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ if (iso2MeasurementDataListType->MeasurementData.arrayLen < iso2MeasurementDataListType_MeasurementData_ARRAY_SIZE) {
+ /* First(xsi:type)StartTag[CHARACTERS[UNSIGNED_INTEGER]] */
+ errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
+ if(errn == 0) {
+ if(eventCode == 0) {
+ errn = decodeUnsignedInteger16(stream, &iso2MeasurementDataListType->MeasurementData.array[iso2MeasurementDataListType->MeasurementData.arrayLen]);
+ iso2MeasurementDataListType->MeasurementData.arrayLen++;
+ } else {
+ /* Second level event (e.g., xsi:type, xsi:nil, ...) */
+ errn = EXI_UNSUPPORTED_EVENT_CODE_CHARACTERISTICS;
+ }
+ }
+ } else {
+ errn = EXI_ERROR_OUT_OF_BOUNDS;
+ }
+ if(errn == 0) {
+ /* valid EE for simple element START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MeasurementData) ? */
+ errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
+ if(eventCode == 0) {
+ grammarID = 1452;
+ } else {
+ errn = EXI_DEVIANT_SUPPORT_NOT_DEPLOYED; /* or also typecast and nillable */
+ }
+ }
+ break;
+ case 1:
+ done = 1;
+ grammarID = 4;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 1452:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MeasurementData), END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ if (iso2MeasurementDataListType->MeasurementData.arrayLen < iso2MeasurementDataListType_MeasurementData_ARRAY_SIZE) {
+ /* First(xsi:type)StartTag[CHARACTERS[UNSIGNED_INTEGER]] */
+ errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
+ if(errn == 0) {
+ if(eventCode == 0) {
+ errn = decodeUnsignedInteger16(stream, &iso2MeasurementDataListType->MeasurementData.array[iso2MeasurementDataListType->MeasurementData.arrayLen]);
+ iso2MeasurementDataListType->MeasurementData.arrayLen++;
+ } else {
+ /* Second level event (e.g., xsi:type, xsi:nil, ...) */
+ errn = EXI_UNSUPPORTED_EVENT_CODE_CHARACTERISTICS;
+ }
+ }
+ } else {
+ errn = EXI_ERROR_OUT_OF_BOUNDS;
+ }
+ if(errn == 0) {
+ /* valid EE for simple element START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MeasurementData) ? */
+ errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
+ if(eventCode == 0) {
+ grammarID = 1453;
+ } else {
+ errn = EXI_DEVIANT_SUPPORT_NOT_DEPLOYED; /* or also typecast and nillable */
+ }
+ }
+ break;
+ case 1:
+ done = 1;
+ grammarID = 4;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 1453:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MeasurementData), END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ if (iso2MeasurementDataListType->MeasurementData.arrayLen < iso2MeasurementDataListType_MeasurementData_ARRAY_SIZE) {
+ /* First(xsi:type)StartTag[CHARACTERS[UNSIGNED_INTEGER]] */
+ errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
+ if(errn == 0) {
+ if(eventCode == 0) {
+ errn = decodeUnsignedInteger16(stream, &iso2MeasurementDataListType->MeasurementData.array[iso2MeasurementDataListType->MeasurementData.arrayLen]);
+ iso2MeasurementDataListType->MeasurementData.arrayLen++;
+ } else {
+ /* Second level event (e.g., xsi:type, xsi:nil, ...) */
+ errn = EXI_UNSUPPORTED_EVENT_CODE_CHARACTERISTICS;
+ }
+ }
+ } else {
+ errn = EXI_ERROR_OUT_OF_BOUNDS;
+ }
+ if(errn == 0) {
+ /* valid EE for simple element START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MeasurementData) ? */
+ errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
+ if(eventCode == 0) {
+ grammarID = 1454;
+ } else {
+ errn = EXI_DEVIANT_SUPPORT_NOT_DEPLOYED; /* or also typecast and nillable */
+ }
+ }
+ break;
+ case 1:
+ done = 1;
+ grammarID = 4;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 1454:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MeasurementData), END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ if (iso2MeasurementDataListType->MeasurementData.arrayLen < iso2MeasurementDataListType_MeasurementData_ARRAY_SIZE) {
+ /* First(xsi:type)StartTag[CHARACTERS[UNSIGNED_INTEGER]] */
+ errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
+ if(errn == 0) {
+ if(eventCode == 0) {
+ errn = decodeUnsignedInteger16(stream, &iso2MeasurementDataListType->MeasurementData.array[iso2MeasurementDataListType->MeasurementData.arrayLen]);
+ iso2MeasurementDataListType->MeasurementData.arrayLen++;
+ } else {
+ /* Second level event (e.g., xsi:type, xsi:nil, ...) */
+ errn = EXI_UNSUPPORTED_EVENT_CODE_CHARACTERISTICS;
+ }
+ }
+ } else {
+ errn = EXI_ERROR_OUT_OF_BOUNDS;
+ }
+ if(errn == 0) {
+ /* valid EE for simple element START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MeasurementData) ? */
+ errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
+ if(eventCode == 0) {
+ grammarID = 1455;
+ } else {
+ errn = EXI_DEVIANT_SUPPORT_NOT_DEPLOYED; /* or also typecast and nillable */
+ }
+ }
+ break;
+ case 1:
+ done = 1;
+ grammarID = 4;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 1455:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MeasurementData), END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ if (iso2MeasurementDataListType->MeasurementData.arrayLen < iso2MeasurementDataListType_MeasurementData_ARRAY_SIZE) {
+ /* First(xsi:type)StartTag[CHARACTERS[UNSIGNED_INTEGER]] */
+ errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
+ if(errn == 0) {
+ if(eventCode == 0) {
+ errn = decodeUnsignedInteger16(stream, &iso2MeasurementDataListType->MeasurementData.array[iso2MeasurementDataListType->MeasurementData.arrayLen]);
+ iso2MeasurementDataListType->MeasurementData.arrayLen++;
+ } else {
+ /* Second level event (e.g., xsi:type, xsi:nil, ...) */
+ errn = EXI_UNSUPPORTED_EVENT_CODE_CHARACTERISTICS;
+ }
+ }
+ } else {
+ errn = EXI_ERROR_OUT_OF_BOUNDS;
+ }
+ if(errn == 0) {
+ /* valid EE for simple element START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MeasurementData) ? */
+ errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
+ if(eventCode == 0) {
+ grammarID = 1456;
+ } else {
+ errn = EXI_DEVIANT_SUPPORT_NOT_DEPLOYED; /* or also typecast and nillable */
+ }
+ }
+ break;
+ case 1:
+ done = 1;
+ grammarID = 4;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 1456:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MeasurementData), END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ if (iso2MeasurementDataListType->MeasurementData.arrayLen < iso2MeasurementDataListType_MeasurementData_ARRAY_SIZE) {
+ /* First(xsi:type)StartTag[CHARACTERS[UNSIGNED_INTEGER]] */
+ errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
+ if(errn == 0) {
+ if(eventCode == 0) {
+ errn = decodeUnsignedInteger16(stream, &iso2MeasurementDataListType->MeasurementData.array[iso2MeasurementDataListType->MeasurementData.arrayLen]);
+ iso2MeasurementDataListType->MeasurementData.arrayLen++;
+ } else {
+ /* Second level event (e.g., xsi:type, xsi:nil, ...) */
+ errn = EXI_UNSUPPORTED_EVENT_CODE_CHARACTERISTICS;
+ }
+ }
+ } else {
+ errn = EXI_ERROR_OUT_OF_BOUNDS;
+ }
+ if(errn == 0) {
+ /* valid EE for simple element START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MeasurementData) ? */
+ errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
+ if(eventCode == 0) {
+ grammarID = 1457;
+ } else {
+ errn = EXI_DEVIANT_SUPPORT_NOT_DEPLOYED; /* or also typecast and nillable */
+ }
+ }
+ break;
+ case 1:
+ done = 1;
+ grammarID = 4;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 1457:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MeasurementData), END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ if (iso2MeasurementDataListType->MeasurementData.arrayLen < iso2MeasurementDataListType_MeasurementData_ARRAY_SIZE) {
+ /* First(xsi:type)StartTag[CHARACTERS[UNSIGNED_INTEGER]] */
+ errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
+ if(errn == 0) {
+ if(eventCode == 0) {
+ errn = decodeUnsignedInteger16(stream, &iso2MeasurementDataListType->MeasurementData.array[iso2MeasurementDataListType->MeasurementData.arrayLen]);
+ iso2MeasurementDataListType->MeasurementData.arrayLen++;
+ } else {
+ /* Second level event (e.g., xsi:type, xsi:nil, ...) */
+ errn = EXI_UNSUPPORTED_EVENT_CODE_CHARACTERISTICS;
+ }
+ }
+ } else {
+ errn = EXI_ERROR_OUT_OF_BOUNDS;
+ }
+ if(errn == 0) {
+ /* valid EE for simple element START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MeasurementData) ? */
+ errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
+ if(eventCode == 0) {
+ grammarID = 1458;
+ } else {
+ errn = EXI_DEVIANT_SUPPORT_NOT_DEPLOYED; /* or also typecast and nillable */
+ }
+ }
+ break;
+ case 1:
+ done = 1;
+ grammarID = 4;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 1458:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MeasurementData), END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ if (iso2MeasurementDataListType->MeasurementData.arrayLen < iso2MeasurementDataListType_MeasurementData_ARRAY_SIZE) {
+ /* First(xsi:type)StartTag[CHARACTERS[UNSIGNED_INTEGER]] */
+ errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
+ if(errn == 0) {
+ if(eventCode == 0) {
+ errn = decodeUnsignedInteger16(stream, &iso2MeasurementDataListType->MeasurementData.array[iso2MeasurementDataListType->MeasurementData.arrayLen]);
+ iso2MeasurementDataListType->MeasurementData.arrayLen++;
+ } else {
+ /* Second level event (e.g., xsi:type, xsi:nil, ...) */
+ errn = EXI_UNSUPPORTED_EVENT_CODE_CHARACTERISTICS;
+ }
+ }
+ } else {
+ errn = EXI_ERROR_OUT_OF_BOUNDS;
+ }
+ if(errn == 0) {
+ /* valid EE for simple element START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MeasurementData) ? */
+ errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
+ if(eventCode == 0) {
+ grammarID = 1459;
+ } else {
+ errn = EXI_DEVIANT_SUPPORT_NOT_DEPLOYED; /* or also typecast and nillable */
+ }
+ }
+ break;
+ case 1:
+ done = 1;
+ grammarID = 4;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 1459:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MeasurementData), END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ if (iso2MeasurementDataListType->MeasurementData.arrayLen < iso2MeasurementDataListType_MeasurementData_ARRAY_SIZE) {
+ /* First(xsi:type)StartTag[CHARACTERS[UNSIGNED_INTEGER]] */
+ errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
+ if(errn == 0) {
+ if(eventCode == 0) {
+ errn = decodeUnsignedInteger16(stream, &iso2MeasurementDataListType->MeasurementData.array[iso2MeasurementDataListType->MeasurementData.arrayLen]);
+ iso2MeasurementDataListType->MeasurementData.arrayLen++;
+ } else {
+ /* Second level event (e.g., xsi:type, xsi:nil, ...) */
+ errn = EXI_UNSUPPORTED_EVENT_CODE_CHARACTERISTICS;
+ }
+ }
+ } else {
+ errn = EXI_ERROR_OUT_OF_BOUNDS;
+ }
+ if(errn == 0) {
+ /* valid EE for simple element START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MeasurementData) ? */
+ errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
+ if(eventCode == 0) {
+ grammarID = 1460;
+ } else {
+ errn = EXI_DEVIANT_SUPPORT_NOT_DEPLOYED; /* or also typecast and nillable */
+ }
+ }
+ break;
+ case 1:
+ done = 1;
+ grammarID = 4;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 1460:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MeasurementData), END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ if (iso2MeasurementDataListType->MeasurementData.arrayLen < iso2MeasurementDataListType_MeasurementData_ARRAY_SIZE) {
+ /* First(xsi:type)StartTag[CHARACTERS[UNSIGNED_INTEGER]] */
+ errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
+ if(errn == 0) {
+ if(eventCode == 0) {
+ errn = decodeUnsignedInteger16(stream, &iso2MeasurementDataListType->MeasurementData.array[iso2MeasurementDataListType->MeasurementData.arrayLen]);
+ iso2MeasurementDataListType->MeasurementData.arrayLen++;
+ } else {
+ /* Second level event (e.g., xsi:type, xsi:nil, ...) */
+ errn = EXI_UNSUPPORTED_EVENT_CODE_CHARACTERISTICS;
+ }
+ }
+ } else {
+ errn = EXI_ERROR_OUT_OF_BOUNDS;
+ }
+ if(errn == 0) {
+ /* valid EE for simple element START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MeasurementData) ? */
+ errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
+ if(eventCode == 0) {
+ grammarID = 1461;
+ } else {
+ errn = EXI_DEVIANT_SUPPORT_NOT_DEPLOYED; /* or also typecast and nillable */
+ }
+ }
+ break;
+ case 1:
+ done = 1;
+ grammarID = 4;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 1461:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MeasurementData), END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ if (iso2MeasurementDataListType->MeasurementData.arrayLen < iso2MeasurementDataListType_MeasurementData_ARRAY_SIZE) {
+ /* First(xsi:type)StartTag[CHARACTERS[UNSIGNED_INTEGER]] */
+ errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
+ if(errn == 0) {
+ if(eventCode == 0) {
+ errn = decodeUnsignedInteger16(stream, &iso2MeasurementDataListType->MeasurementData.array[iso2MeasurementDataListType->MeasurementData.arrayLen]);
+ iso2MeasurementDataListType->MeasurementData.arrayLen++;
+ } else {
+ /* Second level event (e.g., xsi:type, xsi:nil, ...) */
+ errn = EXI_UNSUPPORTED_EVENT_CODE_CHARACTERISTICS;
+ }
+ }
+ } else {
+ errn = EXI_ERROR_OUT_OF_BOUNDS;
+ }
+ if(errn == 0) {
+ /* valid EE for simple element START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MeasurementData) ? */
+ errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
+ if(eventCode == 0) {
+ grammarID = 1462;
+ } else {
+ errn = EXI_DEVIANT_SUPPORT_NOT_DEPLOYED; /* or also typecast and nillable */
+ }
+ }
+ break;
+ case 1:
+ done = 1;
+ grammarID = 4;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 1462:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MeasurementData), END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ if (iso2MeasurementDataListType->MeasurementData.arrayLen < iso2MeasurementDataListType_MeasurementData_ARRAY_SIZE) {
+ /* First(xsi:type)StartTag[CHARACTERS[UNSIGNED_INTEGER]] */
+ errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
+ if(errn == 0) {
+ if(eventCode == 0) {
+ errn = decodeUnsignedInteger16(stream, &iso2MeasurementDataListType->MeasurementData.array[iso2MeasurementDataListType->MeasurementData.arrayLen]);
+ iso2MeasurementDataListType->MeasurementData.arrayLen++;
+ } else {
+ /* Second level event (e.g., xsi:type, xsi:nil, ...) */
+ errn = EXI_UNSUPPORTED_EVENT_CODE_CHARACTERISTICS;
+ }
+ }
+ } else {
+ errn = EXI_ERROR_OUT_OF_BOUNDS;
+ }
+ if(errn == 0) {
+ /* valid EE for simple element START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MeasurementData) ? */
+ errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
+ if(eventCode == 0) {
+ grammarID = 1463;
+ } else {
+ errn = EXI_DEVIANT_SUPPORT_NOT_DEPLOYED; /* or also typecast and nillable */
+ }
+ }
+ break;
+ case 1:
+ done = 1;
+ grammarID = 4;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 1463:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MeasurementData), END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ if (iso2MeasurementDataListType->MeasurementData.arrayLen < iso2MeasurementDataListType_MeasurementData_ARRAY_SIZE) {
+ /* First(xsi:type)StartTag[CHARACTERS[UNSIGNED_INTEGER]] */
+ errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
+ if(errn == 0) {
+ if(eventCode == 0) {
+ errn = decodeUnsignedInteger16(stream, &iso2MeasurementDataListType->MeasurementData.array[iso2MeasurementDataListType->MeasurementData.arrayLen]);
+ iso2MeasurementDataListType->MeasurementData.arrayLen++;
+ } else {
+ /* Second level event (e.g., xsi:type, xsi:nil, ...) */
+ errn = EXI_UNSUPPORTED_EVENT_CODE_CHARACTERISTICS;
+ }
+ }
+ } else {
+ errn = EXI_ERROR_OUT_OF_BOUNDS;
+ }
+ if(errn == 0) {
+ /* valid EE for simple element START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MeasurementData) ? */
+ errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
+ if(eventCode == 0) {
+ grammarID = 1464;
+ } else {
+ errn = EXI_DEVIANT_SUPPORT_NOT_DEPLOYED; /* or also typecast and nillable */
+ }
+ }
+ break;
+ case 1:
+ done = 1;
+ grammarID = 4;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 1464:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MeasurementData), END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ if (iso2MeasurementDataListType->MeasurementData.arrayLen < iso2MeasurementDataListType_MeasurementData_ARRAY_SIZE) {
+ /* First(xsi:type)StartTag[CHARACTERS[UNSIGNED_INTEGER]] */
+ errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
+ if(errn == 0) {
+ if(eventCode == 0) {
+ errn = decodeUnsignedInteger16(stream, &iso2MeasurementDataListType->MeasurementData.array[iso2MeasurementDataListType->MeasurementData.arrayLen]);
+ iso2MeasurementDataListType->MeasurementData.arrayLen++;
+ } else {
+ /* Second level event (e.g., xsi:type, xsi:nil, ...) */
+ errn = EXI_UNSUPPORTED_EVENT_CODE_CHARACTERISTICS;
+ }
+ }
+ } else {
+ errn = EXI_ERROR_OUT_OF_BOUNDS;
+ }
+ if(errn == 0) {
+ /* valid EE for simple element START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MeasurementData) ? */
+ errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
+ if(eventCode == 0) {
+ grammarID = 1465;
+ } else {
+ errn = EXI_DEVIANT_SUPPORT_NOT_DEPLOYED; /* or also typecast and nillable */
+ }
+ }
+ break;
+ case 1:
+ done = 1;
+ grammarID = 4;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 1465:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MeasurementData), END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ if (iso2MeasurementDataListType->MeasurementData.arrayLen < iso2MeasurementDataListType_MeasurementData_ARRAY_SIZE) {
+ /* First(xsi:type)StartTag[CHARACTERS[UNSIGNED_INTEGER]] */
+ errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
+ if(errn == 0) {
+ if(eventCode == 0) {
+ errn = decodeUnsignedInteger16(stream, &iso2MeasurementDataListType->MeasurementData.array[iso2MeasurementDataListType->MeasurementData.arrayLen]);
+ iso2MeasurementDataListType->MeasurementData.arrayLen++;
+ } else {
+ /* Second level event (e.g., xsi:type, xsi:nil, ...) */
+ errn = EXI_UNSUPPORTED_EVENT_CODE_CHARACTERISTICS;
+ }
+ }
+ } else {
+ errn = EXI_ERROR_OUT_OF_BOUNDS;
+ }
+ if(errn == 0) {
+ /* valid EE for simple element START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MeasurementData) ? */
+ errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
+ if(eventCode == 0) {
+ grammarID = 1466;
+ } else {
+ errn = EXI_DEVIANT_SUPPORT_NOT_DEPLOYED; /* or also typecast and nillable */
+ }
+ }
+ break;
+ case 1:
+ done = 1;
+ grammarID = 4;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 1466:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MeasurementData), END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ if (iso2MeasurementDataListType->MeasurementData.arrayLen < iso2MeasurementDataListType_MeasurementData_ARRAY_SIZE) {
+ /* First(xsi:type)StartTag[CHARACTERS[UNSIGNED_INTEGER]] */
+ errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
+ if(errn == 0) {
+ if(eventCode == 0) {
+ errn = decodeUnsignedInteger16(stream, &iso2MeasurementDataListType->MeasurementData.array[iso2MeasurementDataListType->MeasurementData.arrayLen]);
+ iso2MeasurementDataListType->MeasurementData.arrayLen++;
+ } else {
+ /* Second level event (e.g., xsi:type, xsi:nil, ...) */
+ errn = EXI_UNSUPPORTED_EVENT_CODE_CHARACTERISTICS;
+ }
+ }
+ } else {
+ errn = EXI_ERROR_OUT_OF_BOUNDS;
+ }
+ if(errn == 0) {
+ /* valid EE for simple element START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MeasurementData) ? */
+ errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
+ if(eventCode == 0) {
+ grammarID = 1467;
+ } else {
+ errn = EXI_DEVIANT_SUPPORT_NOT_DEPLOYED; /* or also typecast and nillable */
+ }
+ }
+ break;
+ case 1:
+ done = 1;
+ grammarID = 4;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 1467:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MeasurementData), END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ if (iso2MeasurementDataListType->MeasurementData.arrayLen < iso2MeasurementDataListType_MeasurementData_ARRAY_SIZE) {
+ /* First(xsi:type)StartTag[CHARACTERS[UNSIGNED_INTEGER]] */
+ errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
+ if(errn == 0) {
+ if(eventCode == 0) {
+ errn = decodeUnsignedInteger16(stream, &iso2MeasurementDataListType->MeasurementData.array[iso2MeasurementDataListType->MeasurementData.arrayLen]);
+ iso2MeasurementDataListType->MeasurementData.arrayLen++;
+ } else {
+ /* Second level event (e.g., xsi:type, xsi:nil, ...) */
+ errn = EXI_UNSUPPORTED_EVENT_CODE_CHARACTERISTICS;
+ }
+ }
+ } else {
+ errn = EXI_ERROR_OUT_OF_BOUNDS;
+ }
+ if(errn == 0) {
+ /* valid EE for simple element START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MeasurementData) ? */
+ errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
+ if(eventCode == 0) {
+ grammarID = 3;
+ } else {
+ errn = EXI_DEVIANT_SUPPORT_NOT_DEPLOYED; /* or also typecast and nillable */
+ }
+ }
+ break;
+ case 1:
+ done = 1;
+ grammarID = 4;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 3:
+ /* Element[END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ done = 1;
+ grammarID = 4;
+ 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:2016:MsgDataTypes,CertificateChainType', base type name='anyType', content type='ELEMENT', isAbstract='false', hasTypeId='false', final='0', block='0', particle='("urn:iso:15118:2:2016:MsgDataTypes":Certificate,"urn:iso:15118:2:2016:MsgDataTypes":SubCertificates{0-1})', derivedBy='RESTRICTION'. */
+static int decode_iso2CertificateChainType(bitstream_t* stream, struct iso2CertificateChainType* iso2CertificateChainType) {
+ int grammarID = 1468;
+ int done = 0;
+
+ init_iso2CertificateChainType(iso2CertificateChainType);
+
+ while(!done) {
+ switch(grammarID) {
+ case 1468:
+ /* FirstStartTag[ATTRIBUTE[STRING]({urn:iso:15118:2:2016:MsgDataTypes}Id), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}Certificate)] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ errn = decodeUnsignedInteger16(stream, &iso2CertificateChainType->Id.charactersLen);
+ if (errn == 0) {
+ if (iso2CertificateChainType->Id.charactersLen >= 2) {
+ iso2CertificateChainType->Id.charactersLen = (uint16_t)(iso2CertificateChainType->Id.charactersLen - 2); /* string table miss */
+ errn = decodeCharacters(stream, iso2CertificateChainType->Id.charactersLen, iso2CertificateChainType->Id.characters, iso2CertificateChainType_Id_CHARACTERS_SIZE);
+ } else {
+ /* string table hit */
+ errn = EXI_ERROR_STRINGVALUES_NOT_SUPPORTED;
+ }
+ }
+ iso2CertificateChainType->Id_isUsed = 1u;
+ grammarID = 1469;
+ break;
+ case 1:
+ /* FirstStartTag[CHARACTERS[BINARY_BASE64]] */
+ errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
+ if(errn == 0) {
+ if(eventCode == 0) {
+ errn = decodeUnsignedInteger16(stream, &iso2CertificateChainType->Certificate.bytesLen);
+ if (errn == 0) {
+ errn = (iso2CertificateChainType->Certificate.bytesLen) <= iso2CertificateChainType_Certificate_BYTES_SIZE ? 0 : EXI_ERROR_OUT_OF_BYTE_BUFFER;
+ }
+ if (errn == 0) {
+ errn = decodeBytes(stream, iso2CertificateChainType->Certificate.bytesLen, iso2CertificateChainType->Certificate.bytes);
+ }
+ } 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({urn:iso:15118:2:2016:MsgDataTypes}Certificate) ? */
+ errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
+ if(eventCode == 0) {
+ grammarID = 1470;
+ } else {
+ errn = EXI_DEVIANT_SUPPORT_NOT_DEPLOYED; /* or also typecast and nillable */
+ }
+ }
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 1469:
+ /* StartTag[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}Certificate)] */
+ errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ /* FirstStartTag[CHARACTERS[BINARY_BASE64]] */
+ errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
+ if(errn == 0) {
+ if(eventCode == 0) {
+ errn = decodeUnsignedInteger16(stream, &iso2CertificateChainType->Certificate.bytesLen);
+ if (errn == 0) {
+ errn = (iso2CertificateChainType->Certificate.bytesLen) <= iso2CertificateChainType_Certificate_BYTES_SIZE ? 0 : EXI_ERROR_OUT_OF_BYTE_BUFFER;
+ }
+ if (errn == 0) {
+ errn = decodeBytes(stream, iso2CertificateChainType->Certificate.bytesLen, iso2CertificateChainType->Certificate.bytes);
+ }
+ } 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({urn:iso:15118:2:2016:MsgDataTypes}Certificate) ? */
+ errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
+ if(eventCode == 0) {
+ grammarID = 1470;
+ } else {
+ errn = EXI_DEVIANT_SUPPORT_NOT_DEPLOYED; /* or also typecast and nillable */
+ }
+ }
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 1470:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SubCertificates), END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ errn = decode_iso2SubCertificatesType(stream, &iso2CertificateChainType->SubCertificates);
+ iso2CertificateChainType->SubCertificates_isUsed = 1u;
+ grammarID = 3;
+ break;
+ case 1:
+ done = 1;
+ grammarID = 4;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 3:
+ /* Element[END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ done = 1;
+ grammarID = 4;
+ 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='http://www.w3.org/2000/09/xmldsig#,SignaturePropertyType', base type name='anyType', content type='MIXED', isAbstract='false', hasTypeId='false', final='0', block='0', particle='((WC[##other:"http://www.w3.org/2000/09/xmldsig#"])){1-UNBOUNDED}', derivedBy='RESTRICTION'. */
+static int decode_iso2SignaturePropertyType(bitstream_t* stream, struct iso2SignaturePropertyType* iso2SignaturePropertyType) {
+ int grammarID = 1471;
+ int done = 0;
+
+ init_iso2SignaturePropertyType(iso2SignaturePropertyType);
+
+ while(!done) {
+ switch(grammarID) {
+ case 1471:
+ /* FirstStartTag[ATTRIBUTE[STRING](Id), ATTRIBUTE[STRING](Target)] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ errn = decodeUnsignedInteger16(stream, &iso2SignaturePropertyType->Id.charactersLen);
+ if (errn == 0) {
+ if (iso2SignaturePropertyType->Id.charactersLen >= 2) {
+ iso2SignaturePropertyType->Id.charactersLen = (uint16_t)(iso2SignaturePropertyType->Id.charactersLen - 2); /* string table miss */
+ errn = decodeCharacters(stream, iso2SignaturePropertyType->Id.charactersLen, iso2SignaturePropertyType->Id.characters, iso2SignaturePropertyType_Id_CHARACTERS_SIZE);
+ } else {
+ /* string table hit */
+ errn = EXI_ERROR_STRINGVALUES_NOT_SUPPORTED;
+ }
+ }
+ iso2SignaturePropertyType->Id_isUsed = 1u;
+ grammarID = 1472;
+ break;
+ case 1:
+ errn = decodeUnsignedInteger16(stream, &iso2SignaturePropertyType->Target.charactersLen);
+ if (errn == 0) {
+ if (iso2SignaturePropertyType->Target.charactersLen >= 2) {
+ iso2SignaturePropertyType->Target.charactersLen = (uint16_t)(iso2SignaturePropertyType->Target.charactersLen - 2); /* string table miss */
+ errn = decodeCharacters(stream, iso2SignaturePropertyType->Target.charactersLen, iso2SignaturePropertyType->Target.characters, iso2SignaturePropertyType_Target_CHARACTERS_SIZE);
+ } else {
+ /* string table hit */
+ errn = EXI_ERROR_STRINGVALUES_NOT_SUPPORTED;
+ }
+ }
+ grammarID = 1473;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 1472:
+ /* StartTag[ATTRIBUTE[STRING](Target)] */
+ errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ errn = decodeUnsignedInteger16(stream, &iso2SignaturePropertyType->Target.charactersLen);
+ if (errn == 0) {
+ if (iso2SignaturePropertyType->Target.charactersLen >= 2) {
+ iso2SignaturePropertyType->Target.charactersLen = (uint16_t)(iso2SignaturePropertyType->Target.charactersLen - 2); /* string table miss */
+ errn = decodeCharacters(stream, iso2SignaturePropertyType->Target.charactersLen, iso2SignaturePropertyType->Target.characters, iso2SignaturePropertyType_Target_CHARACTERS_SIZE);
+ } else {
+ /* string table hit */
+ errn = EXI_ERROR_STRINGVALUES_NOT_SUPPORTED;
+ }
+ }
+ grammarID = 1473;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 1473:
+ /* StartTag[START_ELEMENT_GENERIC, CHARACTERS_GENERIC[STRING]] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ errn = EXI_UNSUPPORTED_EVENT_CODE_CHARACTERISTICS;
+ /* TODO unsupported event : START_ELEMENT_GENERIC */
+ grammarID = 685;
+ break;
+ case 1:
+ errn = decodeUnsignedInteger16(stream, &iso2SignaturePropertyType->ANY.charactersLen);
+ if (errn == 0) {
+ if (iso2SignaturePropertyType->ANY.charactersLen >= 2) {
+ iso2SignaturePropertyType->ANY.charactersLen = (uint16_t)(iso2SignaturePropertyType->ANY.charactersLen - 2); /* string table miss */
+ errn = decodeCharacters(stream, iso2SignaturePropertyType->ANY.charactersLen, iso2SignaturePropertyType->ANY.characters, iso2SignaturePropertyType_ANY_CHARACTERS_SIZE);
+ } else {
+ /* string table hit */
+ errn = EXI_ERROR_STRINGVALUES_NOT_SUPPORTED;
+ }
+ }
+ iso2SignaturePropertyType->ANY_isUsed = 1u;
+ grammarID = 1474;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 685:
+ /* Element[START_ELEMENT_GENERIC, END_ELEMENT, CHARACTERS_GENERIC[STRING]] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ errn = EXI_UNSUPPORTED_EVENT_CODE_CHARACTERISTICS;
+ /* TODO unsupported event : START_ELEMENT_GENERIC */
+ grammarID = 685;
+ break;
+ case 1:
+ done = 1;
+ grammarID = 4;
+ break;
+ case 2:
+ errn = decodeUnsignedInteger16(stream, &iso2SignaturePropertyType->ANY.charactersLen);
+ if (errn == 0) {
+ if (iso2SignaturePropertyType->ANY.charactersLen >= 2) {
+ iso2SignaturePropertyType->ANY.charactersLen = (uint16_t)(iso2SignaturePropertyType->ANY.charactersLen - 2); /* string table miss */
+ errn = decodeCharacters(stream, iso2SignaturePropertyType->ANY.charactersLen, iso2SignaturePropertyType->ANY.characters, iso2SignaturePropertyType_ANY_CHARACTERS_SIZE);
+ } else {
+ /* string table hit */
+ errn = EXI_ERROR_STRINGVALUES_NOT_SUPPORTED;
+ }
+ }
+ iso2SignaturePropertyType->ANY_isUsed = 1u;
+ grammarID = 685;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 1474:
+ /* Element[START_ELEMENT_GENERIC, CHARACTERS_GENERIC[STRING]] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ errn = EXI_UNSUPPORTED_EVENT_CODE_CHARACTERISTICS;
+ /* TODO unsupported event : START_ELEMENT_GENERIC */
+ grammarID = 685;
+ break;
+ case 1:
+ errn = decodeUnsignedInteger16(stream, &iso2SignaturePropertyType->ANY.charactersLen);
+ if (errn == 0) {
+ if (iso2SignaturePropertyType->ANY.charactersLen >= 2) {
+ iso2SignaturePropertyType->ANY.charactersLen = (uint16_t)(iso2SignaturePropertyType->ANY.charactersLen - 2); /* string table miss */
+ errn = decodeCharacters(stream, iso2SignaturePropertyType->ANY.charactersLen, iso2SignaturePropertyType->ANY.characters, iso2SignaturePropertyType_ANY_CHARACTERS_SIZE);
+ } else {
+ /* string table hit */
+ errn = EXI_ERROR_STRINGVALUES_NOT_SUPPORTED;
+ }
+ }
+ iso2SignaturePropertyType->ANY_isUsed = 1u;
+ grammarID = 1474;
+ 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='http://www.w3.org/2000/09/xmldsig#,TransformType', base type name='anyType', content type='MIXED', isAbstract='false', hasTypeId='false', final='0', block='0', particle='((WC[##other:"http://www.w3.org/2000/09/xmldsig#"])|"http://www.w3.org/2000/09/xmldsig#":XPath){0-UNBOUNDED}', derivedBy='RESTRICTION'. */
+static int decode_iso2TransformType(bitstream_t* stream, struct iso2TransformType* iso2TransformType) {
+ int grammarID = 1475;
+ int done = 0;
+
+ init_iso2TransformType(iso2TransformType);
+
+ while(!done) {
+ switch(grammarID) {
+ case 1475:
+ /* FirstStartTag[ATTRIBUTE[STRING](Algorithm)] */
+ errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ errn = decodeUnsignedInteger16(stream, &iso2TransformType->Algorithm.charactersLen);
+ if (errn == 0) {
+ if (iso2TransformType->Algorithm.charactersLen >= 2) {
+ iso2TransformType->Algorithm.charactersLen = (uint16_t)(iso2TransformType->Algorithm.charactersLen - 2); /* string table miss */
+ errn = decodeCharacters(stream, iso2TransformType->Algorithm.charactersLen, iso2TransformType->Algorithm.characters, iso2TransformType_Algorithm_CHARACTERS_SIZE);
+ } else {
+ /* string table hit */
+ errn = EXI_ERROR_STRINGVALUES_NOT_SUPPORTED;
+ }
+ }
+ grammarID = 1476;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 1476:
+ /* StartTag[START_ELEMENT({http://www.w3.org/2000/09/xmldsig#}XPath), START_ELEMENT_GENERIC, END_ELEMENT, CHARACTERS_GENERIC[STRING]] */
+ errn = decodeNBitUnsignedInteger(stream, 3, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ if (iso2TransformType->XPath.arrayLen < iso2TransformType_XPath_ARRAY_SIZE) {
+ /* First(xsi:type)StartTag[CHARACTERS[STRING]] */
+ errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
+ if(errn == 0) {
+ if(eventCode == 0) {
+ errn = decodeUnsignedInteger16(stream, &iso2TransformType->XPath.array[iso2TransformType->XPath.arrayLen].charactersLen);
+ if (errn == 0) {
+ if (iso2TransformType->XPath.array[iso2TransformType->XPath.arrayLen].charactersLen >= 2) {
+ iso2TransformType->XPath.array[iso2TransformType->XPath.arrayLen].charactersLen = (uint16_t)(iso2TransformType->XPath.array[iso2TransformType->XPath.arrayLen].charactersLen - 2); /* string table miss */
+ errn = decodeCharacters(stream, iso2TransformType->XPath.array[iso2TransformType->XPath.arrayLen].charactersLen, iso2TransformType->XPath.array[iso2TransformType->XPath.arrayLen].characters, iso2TransformType_XPath_CHARACTERS_SIZE);
+ } else {
+ /* string table hit */
+ errn = EXI_ERROR_STRINGVALUES_NOT_SUPPORTED;
+ }
+ }
+ iso2TransformType->XPath.arrayLen++;
+ } else {
+ /* Second level event (e.g., xsi:type, xsi:nil, ...) */
+ errn = EXI_UNSUPPORTED_EVENT_CODE_CHARACTERISTICS;
+ }
+ }
+ } else {
+ errn = EXI_ERROR_OUT_OF_BOUNDS;
+ }
+ if(errn == 0) {
+ /* valid EE for simple element START_ELEMENT({http://www.w3.org/2000/09/xmldsig#}XPath) ? */
+ errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
+ if(eventCode == 0) {
+ grammarID = 1477;
+ } else {
+ errn = EXI_DEVIANT_SUPPORT_NOT_DEPLOYED; /* or also typecast and nillable */
+ }
+ }
+ break;
+ case 1:
+ errn = EXI_UNSUPPORTED_EVENT_CODE_CHARACTERISTICS;
+ /* TODO unsupported event : START_ELEMENT_GENERIC */
+ grammarID = 1477;
+ break;
+ case 2:
+ done = 1;
+ grammarID = 4;
+ break;
+ case 3:
+ errn = decodeUnsignedInteger16(stream, &iso2TransformType->ANY.charactersLen);
+ if (errn == 0) {
+ if (iso2TransformType->ANY.charactersLen >= 2) {
+ iso2TransformType->ANY.charactersLen = (uint16_t)(iso2TransformType->ANY.charactersLen - 2); /* string table miss */
+ errn = decodeCharacters(stream, iso2TransformType->ANY.charactersLen, iso2TransformType->ANY.characters, iso2TransformType_ANY_CHARACTERS_SIZE);
+ } else {
+ /* string table hit */
+ errn = EXI_ERROR_STRINGVALUES_NOT_SUPPORTED;
+ }
+ }
+ iso2TransformType->ANY_isUsed = 1u;
+ grammarID = 1477;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 1477:
+ /* Element[START_ELEMENT({http://www.w3.org/2000/09/xmldsig#}XPath), START_ELEMENT_GENERIC, END_ELEMENT, CHARACTERS_GENERIC[STRING]] */
+ errn = decodeNBitUnsignedInteger(stream, 3, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ if (iso2TransformType->XPath.arrayLen < iso2TransformType_XPath_ARRAY_SIZE) {
+ /* First(xsi:type)StartTag[CHARACTERS[STRING]] */
+ errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
+ if(errn == 0) {
+ if(eventCode == 0) {
+ errn = decodeUnsignedInteger16(stream, &iso2TransformType->XPath.array[iso2TransformType->XPath.arrayLen].charactersLen);
+ if (errn == 0) {
+ if (iso2TransformType->XPath.array[iso2TransformType->XPath.arrayLen].charactersLen >= 2) {
+ iso2TransformType->XPath.array[iso2TransformType->XPath.arrayLen].charactersLen = (uint16_t)(iso2TransformType->XPath.array[iso2TransformType->XPath.arrayLen].charactersLen - 2); /* string table miss */
+ errn = decodeCharacters(stream, iso2TransformType->XPath.array[iso2TransformType->XPath.arrayLen].charactersLen, iso2TransformType->XPath.array[iso2TransformType->XPath.arrayLen].characters, iso2TransformType_XPath_CHARACTERS_SIZE);
+ } else {
+ /* string table hit */
+ errn = EXI_ERROR_STRINGVALUES_NOT_SUPPORTED;
+ }
+ }
+ iso2TransformType->XPath.arrayLen++;
+ } else {
+ /* Second level event (e.g., xsi:type, xsi:nil, ...) */
+ errn = EXI_UNSUPPORTED_EVENT_CODE_CHARACTERISTICS;
+ }
+ }
+ } else {
+ errn = EXI_ERROR_OUT_OF_BOUNDS;
+ }
+ if(errn == 0) {
+ /* valid EE for simple element START_ELEMENT({http://www.w3.org/2000/09/xmldsig#}XPath) ? */
+ errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
+ if(eventCode == 0) {
+ grammarID = 1477;
+ } else {
+ errn = EXI_DEVIANT_SUPPORT_NOT_DEPLOYED; /* or also typecast and nillable */
+ }
+ }
+ break;
+ case 1:
+ errn = EXI_UNSUPPORTED_EVENT_CODE_CHARACTERISTICS;
+ /* TODO unsupported event : START_ELEMENT_GENERIC */
+ grammarID = 1477;
+ break;
+ case 2:
+ done = 1;
+ grammarID = 4;
+ break;
+ case 3:
+ errn = decodeUnsignedInteger16(stream, &iso2TransformType->ANY.charactersLen);
+ if (errn == 0) {
+ if (iso2TransformType->ANY.charactersLen >= 2) {
+ iso2TransformType->ANY.charactersLen = (uint16_t)(iso2TransformType->ANY.charactersLen - 2); /* string table miss */
+ errn = decodeCharacters(stream, iso2TransformType->ANY.charactersLen, iso2TransformType->ANY.characters, iso2TransformType_ANY_CHARACTERS_SIZE);
+ } else {
+ /* string table hit */
+ errn = EXI_ERROR_STRINGVALUES_NOT_SUPPORTED;
+ }
+ }
+ iso2TransformType->ANY_isUsed = 1u;
+ grammarID = 1477;
+ 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:2016:MsgDataTypes,EMAIDType', base type name='eMAIDType', content type='SIMPLE', isAbstract='false', hasTypeId='false', final='0', block='0', derivedBy='EXTENSION'. */
+static int decode_iso2EMAIDType(bitstream_t* stream, struct iso2EMAIDType* iso2EMAIDType) {
+ int grammarID = 1478;
+ int done = 0;
+
+ init_iso2EMAIDType(iso2EMAIDType);
+
+ while(!done) {
+ switch(grammarID) {
+ case 1478:
+ /* FirstStartTag[ATTRIBUTE[STRING]({urn:iso:15118:2:2016:MsgDataTypes}Id)] */
+ errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ errn = decodeUnsignedInteger16(stream, &iso2EMAIDType->Id.charactersLen);
+ if (errn == 0) {
+ if (iso2EMAIDType->Id.charactersLen >= 2) {
+ iso2EMAIDType->Id.charactersLen = (uint16_t)(iso2EMAIDType->Id.charactersLen - 2); /* string table miss */
+ errn = decodeCharacters(stream, iso2EMAIDType->Id.charactersLen, iso2EMAIDType->Id.characters, iso2EMAIDType_Id_CHARACTERS_SIZE);
+ } else {
+ /* string table hit */
+ errn = EXI_ERROR_STRINGVALUES_NOT_SUPPORTED;
+ }
+ }
+ grammarID = 1479;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 1479:
+ /* StartTag[CHARACTERS[STRING]] */
+ errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ errn = decodeUnsignedInteger16(stream, &iso2EMAIDType->CONTENT.charactersLen);
+ if (errn == 0) {
+ if (iso2EMAIDType->CONTENT.charactersLen >= 2) {
+ iso2EMAIDType->CONTENT.charactersLen = (uint16_t)(iso2EMAIDType->CONTENT.charactersLen - 2); /* string table miss */
+ errn = decodeCharacters(stream, iso2EMAIDType->CONTENT.charactersLen, iso2EMAIDType->CONTENT.characters, iso2EMAIDType_CONTENT_CHARACTERS_SIZE);
+ } else {
+ /* string table hit */
+ errn = EXI_ERROR_STRINGVALUES_NOT_SUPPORTED;
+ }
+ }
+ grammarID = 3;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 3:
+ /* Element[END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ done = 1;
+ grammarID = 4;
+ 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='http://www.w3.org/2000/09/xmldsig#,DSAKeyValueType', base type name='anyType', content type='ELEMENT', isAbstract='false', hasTypeId='false', final='0', block='0', particle='(("http://www.w3.org/2000/09/xmldsig#":P,"http://www.w3.org/2000/09/xmldsig#":Q){0-1},"http://www.w3.org/2000/09/xmldsig#":G{0-1},"http://www.w3.org/2000/09/xmldsig#":Y,"http://www.w3.org/2000/09/xmldsig#":J{0-1},("http://www.w3.org/2000/09/xmldsig#":Seed,"http://www.w3.org/2000/09/xmldsig#":PgenCounter){0-1})', derivedBy='RESTRICTION'. */
+static int decode_iso2DSAKeyValueType(bitstream_t* stream, struct iso2DSAKeyValueType* iso2DSAKeyValueType) {
+ int grammarID = 1480;
+ int done = 0;
+
+ init_iso2DSAKeyValueType(iso2DSAKeyValueType);
+
+ while(!done) {
+ switch(grammarID) {
+ case 1480:
+ /* FirstStartTag[START_ELEMENT({http://www.w3.org/2000/09/xmldsig#}P), START_ELEMENT({http://www.w3.org/2000/09/xmldsig#}G), START_ELEMENT({http://www.w3.org/2000/09/xmldsig#}Y)] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ /* FirstStartTag[CHARACTERS[BINARY_BASE64]] */
+ errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
+ if(errn == 0) {
+ if(eventCode == 0) {
+ errn = decodeUnsignedInteger16(stream, &iso2DSAKeyValueType->P.bytesLen);
+ if (errn == 0) {
+ errn = (iso2DSAKeyValueType->P.bytesLen) <= iso2DSAKeyValueType_P_BYTES_SIZE ? 0 : EXI_ERROR_OUT_OF_BYTE_BUFFER;
+ }
+ if (errn == 0) {
+ errn = decodeBytes(stream, iso2DSAKeyValueType->P.bytesLen, iso2DSAKeyValueType->P.bytes);
+ }
+ iso2DSAKeyValueType->P_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({http://www.w3.org/2000/09/xmldsig#}P) ? */
+ errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
+ if(eventCode == 0) {
+ grammarID = 1481;
+ } else {
+ errn = EXI_DEVIANT_SUPPORT_NOT_DEPLOYED; /* or also typecast and nillable */
+ }
+ }
+ break;
+ case 1:
+ /* FirstStartTag[CHARACTERS[BINARY_BASE64]] */
+ errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
+ if(errn == 0) {
+ if(eventCode == 0) {
+ errn = decodeUnsignedInteger16(stream, &iso2DSAKeyValueType->G.bytesLen);
+ if (errn == 0) {
+ errn = (iso2DSAKeyValueType->G.bytesLen) <= iso2DSAKeyValueType_G_BYTES_SIZE ? 0 : EXI_ERROR_OUT_OF_BYTE_BUFFER;
+ }
+ if (errn == 0) {
+ errn = decodeBytes(stream, iso2DSAKeyValueType->G.bytesLen, iso2DSAKeyValueType->G.bytes);
+ }
+ iso2DSAKeyValueType->G_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({http://www.w3.org/2000/09/xmldsig#}G) ? */
+ errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
+ if(eventCode == 0) {
+ grammarID = 1482;
+ } else {
+ errn = EXI_DEVIANT_SUPPORT_NOT_DEPLOYED; /* or also typecast and nillable */
+ }
+ }
+ break;
+ case 2:
+ /* FirstStartTag[CHARACTERS[BINARY_BASE64]] */
+ errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
+ if(errn == 0) {
+ if(eventCode == 0) {
+ errn = decodeUnsignedInteger16(stream, &iso2DSAKeyValueType->Y.bytesLen);
+ if (errn == 0) {
+ errn = (iso2DSAKeyValueType->Y.bytesLen) <= iso2DSAKeyValueType_Y_BYTES_SIZE ? 0 : EXI_ERROR_OUT_OF_BYTE_BUFFER;
+ }
+ if (errn == 0) {
+ errn = decodeBytes(stream, iso2DSAKeyValueType->Y.bytesLen, iso2DSAKeyValueType->Y.bytes);
+ }
+ } 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({http://www.w3.org/2000/09/xmldsig#}Y) ? */
+ errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
+ if(eventCode == 0) {
+ grammarID = 1483;
+ } else {
+ errn = EXI_DEVIANT_SUPPORT_NOT_DEPLOYED; /* or also typecast and nillable */
+ }
+ }
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 1481:
+ /* Element[START_ELEMENT({http://www.w3.org/2000/09/xmldsig#}Q)] */
+ errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ /* FirstStartTag[CHARACTERS[BINARY_BASE64]] */
+ errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
+ if(errn == 0) {
+ if(eventCode == 0) {
+ errn = decodeUnsignedInteger16(stream, &iso2DSAKeyValueType->Q.bytesLen);
+ if (errn == 0) {
+ errn = (iso2DSAKeyValueType->Q.bytesLen) <= iso2DSAKeyValueType_Q_BYTES_SIZE ? 0 : EXI_ERROR_OUT_OF_BYTE_BUFFER;
+ }
+ if (errn == 0) {
+ errn = decodeBytes(stream, iso2DSAKeyValueType->Q.bytesLen, iso2DSAKeyValueType->Q.bytes);
+ }
+ iso2DSAKeyValueType->Q_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({http://www.w3.org/2000/09/xmldsig#}Q) ? */
+ errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
+ if(eventCode == 0) {
+ grammarID = 1484;
+ } else {
+ errn = EXI_DEVIANT_SUPPORT_NOT_DEPLOYED; /* or also typecast and nillable */
+ }
+ }
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 1484:
+ /* Element[START_ELEMENT({http://www.w3.org/2000/09/xmldsig#}G), START_ELEMENT({http://www.w3.org/2000/09/xmldsig#}Y)] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ /* FirstStartTag[CHARACTERS[BINARY_BASE64]] */
+ errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
+ if(errn == 0) {
+ if(eventCode == 0) {
+ errn = decodeUnsignedInteger16(stream, &iso2DSAKeyValueType->G.bytesLen);
+ if (errn == 0) {
+ errn = (iso2DSAKeyValueType->G.bytesLen) <= iso2DSAKeyValueType_G_BYTES_SIZE ? 0 : EXI_ERROR_OUT_OF_BYTE_BUFFER;
+ }
+ if (errn == 0) {
+ errn = decodeBytes(stream, iso2DSAKeyValueType->G.bytesLen, iso2DSAKeyValueType->G.bytes);
+ }
+ iso2DSAKeyValueType->G_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({http://www.w3.org/2000/09/xmldsig#}G) ? */
+ errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
+ if(eventCode == 0) {
+ grammarID = 1482;
+ } else {
+ errn = EXI_DEVIANT_SUPPORT_NOT_DEPLOYED; /* or also typecast and nillable */
+ }
+ }
+ break;
+ case 1:
+ /* FirstStartTag[CHARACTERS[BINARY_BASE64]] */
+ errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
+ if(errn == 0) {
+ if(eventCode == 0) {
+ errn = decodeUnsignedInteger16(stream, &iso2DSAKeyValueType->Y.bytesLen);
+ if (errn == 0) {
+ errn = (iso2DSAKeyValueType->Y.bytesLen) <= iso2DSAKeyValueType_Y_BYTES_SIZE ? 0 : EXI_ERROR_OUT_OF_BYTE_BUFFER;
+ }
+ if (errn == 0) {
+ errn = decodeBytes(stream, iso2DSAKeyValueType->Y.bytesLen, iso2DSAKeyValueType->Y.bytes);
+ }
+ } 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({http://www.w3.org/2000/09/xmldsig#}Y) ? */
+ errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
+ if(eventCode == 0) {
+ grammarID = 1483;
+ } else {
+ errn = EXI_DEVIANT_SUPPORT_NOT_DEPLOYED; /* or also typecast and nillable */
+ }
+ }
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 1482:
+ /* Element[START_ELEMENT({http://www.w3.org/2000/09/xmldsig#}Y)] */
+ errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ /* FirstStartTag[CHARACTERS[BINARY_BASE64]] */
+ errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
+ if(errn == 0) {
+ if(eventCode == 0) {
+ errn = decodeUnsignedInteger16(stream, &iso2DSAKeyValueType->Y.bytesLen);
+ if (errn == 0) {
+ errn = (iso2DSAKeyValueType->Y.bytesLen) <= iso2DSAKeyValueType_Y_BYTES_SIZE ? 0 : EXI_ERROR_OUT_OF_BYTE_BUFFER;
+ }
+ if (errn == 0) {
+ errn = decodeBytes(stream, iso2DSAKeyValueType->Y.bytesLen, iso2DSAKeyValueType->Y.bytes);
+ }
+ } 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({http://www.w3.org/2000/09/xmldsig#}Y) ? */
+ errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
+ if(eventCode == 0) {
+ grammarID = 1483;
+ } else {
+ errn = EXI_DEVIANT_SUPPORT_NOT_DEPLOYED; /* or also typecast and nillable */
+ }
+ }
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 1483:
+ /* Element[START_ELEMENT({http://www.w3.org/2000/09/xmldsig#}J), START_ELEMENT({http://www.w3.org/2000/09/xmldsig#}Seed), END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ /* FirstStartTag[CHARACTERS[BINARY_BASE64]] */
+ errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
+ if(errn == 0) {
+ if(eventCode == 0) {
+ errn = decodeUnsignedInteger16(stream, &iso2DSAKeyValueType->J.bytesLen);
+ if (errn == 0) {
+ errn = (iso2DSAKeyValueType->J.bytesLen) <= iso2DSAKeyValueType_J_BYTES_SIZE ? 0 : EXI_ERROR_OUT_OF_BYTE_BUFFER;
+ }
+ if (errn == 0) {
+ errn = decodeBytes(stream, iso2DSAKeyValueType->J.bytesLen, iso2DSAKeyValueType->J.bytes);
+ }
+ iso2DSAKeyValueType->J_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({http://www.w3.org/2000/09/xmldsig#}J) ? */
+ errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
+ if(eventCode == 0) {
+ grammarID = 1485;
+ } else {
+ errn = EXI_DEVIANT_SUPPORT_NOT_DEPLOYED; /* or also typecast and nillable */
+ }
+ }
+ break;
+ case 1:
+ /* FirstStartTag[CHARACTERS[BINARY_BASE64]] */
+ errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
+ if(errn == 0) {
+ if(eventCode == 0) {
+ errn = decodeUnsignedInteger16(stream, &iso2DSAKeyValueType->Seed.bytesLen);
+ if (errn == 0) {
+ errn = (iso2DSAKeyValueType->Seed.bytesLen) <= iso2DSAKeyValueType_Seed_BYTES_SIZE ? 0 : EXI_ERROR_OUT_OF_BYTE_BUFFER;
+ }
+ if (errn == 0) {
+ errn = decodeBytes(stream, iso2DSAKeyValueType->Seed.bytesLen, iso2DSAKeyValueType->Seed.bytes);
+ }
+ iso2DSAKeyValueType->Seed_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({http://www.w3.org/2000/09/xmldsig#}Seed) ? */
+ errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
+ if(eventCode == 0) {
+ grammarID = 1486;
+ } else {
+ errn = EXI_DEVIANT_SUPPORT_NOT_DEPLOYED; /* or also typecast and nillable */
+ }
+ }
+ break;
+ case 2:
+ done = 1;
+ grammarID = 4;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 1485:
+ /* Element[START_ELEMENT({http://www.w3.org/2000/09/xmldsig#}Seed), END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ /* FirstStartTag[CHARACTERS[BINARY_BASE64]] */
+ errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
+ if(errn == 0) {
+ if(eventCode == 0) {
+ errn = decodeUnsignedInteger16(stream, &iso2DSAKeyValueType->Seed.bytesLen);
+ if (errn == 0) {
+ errn = (iso2DSAKeyValueType->Seed.bytesLen) <= iso2DSAKeyValueType_Seed_BYTES_SIZE ? 0 : EXI_ERROR_OUT_OF_BYTE_BUFFER;
+ }
+ if (errn == 0) {
+ errn = decodeBytes(stream, iso2DSAKeyValueType->Seed.bytesLen, iso2DSAKeyValueType->Seed.bytes);
+ }
+ iso2DSAKeyValueType->Seed_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({http://www.w3.org/2000/09/xmldsig#}Seed) ? */
+ errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
+ if(eventCode == 0) {
+ grammarID = 1486;
+ } else {
+ errn = EXI_DEVIANT_SUPPORT_NOT_DEPLOYED; /* or also typecast and nillable */
+ }
+ }
+ break;
+ case 1:
+ done = 1;
+ grammarID = 4;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 1486:
+ /* Element[START_ELEMENT({http://www.w3.org/2000/09/xmldsig#}PgenCounter)] */
+ errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ /* FirstStartTag[CHARACTERS[BINARY_BASE64]] */
+ errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
+ if(errn == 0) {
+ if(eventCode == 0) {
+ errn = decodeUnsignedInteger16(stream, &iso2DSAKeyValueType->PgenCounter.bytesLen);
+ if (errn == 0) {
+ errn = (iso2DSAKeyValueType->PgenCounter.bytesLen) <= iso2DSAKeyValueType_PgenCounter_BYTES_SIZE ? 0 : EXI_ERROR_OUT_OF_BYTE_BUFFER;
+ }
+ if (errn == 0) {
+ errn = decodeBytes(stream, iso2DSAKeyValueType->PgenCounter.bytesLen, iso2DSAKeyValueType->PgenCounter.bytes);
+ }
+ iso2DSAKeyValueType->PgenCounter_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({http://www.w3.org/2000/09/xmldsig#}PgenCounter) ? */
+ errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
+ if(eventCode == 0) {
+ grammarID = 3;
+ } else {
+ errn = EXI_DEVIANT_SUPPORT_NOT_DEPLOYED; /* or also typecast and nillable */
+ }
+ }
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 3:
+ /* Element[END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ done = 1;
+ grammarID = 4;
+ 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:2016:MsgDataTypes,EntryType', base type name='anyType', content type='ELEMENT', isAbstract='true', hasTypeId='false', final='0', block='0', particle='("urn:iso:15118:2:2016:MsgDataTypes":RelativeTimeInterval)', derivedBy='RESTRICTION'. */
+static int decode_iso2EntryType(bitstream_t* stream, struct iso2EntryType* iso2EntryType) {
+ int grammarID = 1487;
+ int done = 0;
+
+ init_iso2EntryType(iso2EntryType);
+
+ while(!done) {
+ switch(grammarID) {
+ case 1487:
+ /* FirstStartTag[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}RelativeTimeInterval)] */
+ errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ errn = decode_iso2RelativeTimeIntervalType(stream, &iso2EntryType->RelativeTimeInterval);
+ grammarID = 3;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 3:
+ /* Element[END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ done = 1;
+ grammarID = 4;
+ 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:2016:MsgHeader,MessageHeaderType', base type name='anyType', content type='ELEMENT', isAbstract='false', hasTypeId='false', final='0', block='0', particle='("urn:iso:15118:2:2016:MsgHeader":SessionID,"http://www.w3.org/2000/09/xmldsig#":Signature{0-1})', derivedBy='RESTRICTION'. */
+static int decode_iso2MessageHeaderType(bitstream_t* stream, struct iso2MessageHeaderType* iso2MessageHeaderType) {
+ int grammarID = 1488;
+ int done = 0;
+
+ init_iso2MessageHeaderType(iso2MessageHeaderType);
+
+ while(!done) {
+ switch(grammarID) {
+ case 1488:
+ /* FirstStartTag[START_ELEMENT({urn:iso:15118:2:2016:MsgHeader}SessionID)] */
+ errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ /* FirstStartTag[CHARACTERS[BINARY_HEX]] */
+ errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
+ if(errn == 0) {
+ if(eventCode == 0) {
+ errn = decodeUnsignedInteger16(stream, &iso2MessageHeaderType->SessionID.bytesLen);
+ if (errn == 0) {
+ errn = (iso2MessageHeaderType->SessionID.bytesLen) <= iso2MessageHeaderType_SessionID_BYTES_SIZE ? 0 : EXI_ERROR_OUT_OF_BYTE_BUFFER;
+ }
+ if (errn == 0) {
+ errn = decodeBytes(stream, iso2MessageHeaderType->SessionID.bytesLen, iso2MessageHeaderType->SessionID.bytes);
+ }
+ } 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({urn:iso:15118:2:2016:MsgHeader}SessionID) ? */
+ errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
+ if(eventCode == 0) {
+ grammarID = 1489;
+ } else {
+ errn = EXI_DEVIANT_SUPPORT_NOT_DEPLOYED; /* or also typecast and nillable */
+ }
+ }
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 1489:
+ /* Element[START_ELEMENT({http://www.w3.org/2000/09/xmldsig#}Signature), END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ errn = decode_iso2SignatureType(stream, &iso2MessageHeaderType->Signature);
+ iso2MessageHeaderType->Signature_isUsed = 1u;
+ grammarID = 3;
+ break;
+ case 1:
+ done = 1;
+ grammarID = 4;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 3:
+ /* Element[END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ done = 1;
+ grammarID = 4;
+ break;
default:
errn = EXI_ERROR_UNKOWN_EVENT_CODE;
break;
@@ -101988,15 +47928,15 @@ static int decode_v2gDC_BidirectionalControlResType(bitstream_t* stream, struct
}
/* Complex type name='urn:iso:15118:2:2016:MsgDataTypes,WPT_EVChargeParameterType', base type name='EVEnergyTransferParameterType', content type='ELEMENT', isAbstract='false', hasTypeId='false', final='0', block='0', particle='(("urn:iso:15118:2:2016:MsgDataTypes":DepartureTime),("urn:iso:15118:2:2016:MsgDataTypes":EVMaximumPower,"urn:iso:15118:2:2016:MsgDataTypes":EVMinimumPower,"urn:iso:15118:2:2016:MsgDataTypes":EVTargetEnergyRequest{0-1},"urn:iso:15118:2:2016:MsgDataTypes":EVMaximumEnergyRequest{0-1},"urn:iso:15118:2:2016:MsgDataTypes":EVMinimumEnergyRequest{0-1}))', derivedBy='EXTENSION'. */
-static int decode_v2gWPT_EVChargeParameterType(bitstream_t* stream, struct v2gWPT_EVChargeParameterType* v2gWPT_EVChargeParameterType) {
- int grammarID = 2854;
+static int decode_iso2WPT_EVChargeParameterType(bitstream_t* stream, struct iso2WPT_EVChargeParameterType* iso2WPT_EVChargeParameterType) {
+ int grammarID = 1490;
int done = 0;
- init_v2gWPT_EVChargeParameterType(v2gWPT_EVChargeParameterType);
+ init_iso2WPT_EVChargeParameterType(iso2WPT_EVChargeParameterType);
while(!done) {
switch(grammarID) {
- case 2854:
+ case 1490:
/* FirstStartTag[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}DepartureTime)] */
errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
if (errn == 0) {
@@ -102006,7 +47946,7 @@ static int decode_v2gWPT_EVChargeParameterType(bitstream_t* stream, struct v2gWP
errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
if(errn == 0) {
if(eventCode == 0) {
- errn = decodeUnsignedInteger32(stream, &v2gWPT_EVChargeParameterType->DepartureTime);
+ errn = decodeUnsignedInteger32(stream, &iso2WPT_EVChargeParameterType->DepartureTime);
} else {
/* Second level event (e.g., xsi:type, xsi:nil, ...) */
errn = EXI_UNSUPPORTED_EVENT_CODE_CHARACTERISTICS;
@@ -102016,7 +47956,7 @@ static int decode_v2gWPT_EVChargeParameterType(bitstream_t* stream, struct v2gWP
/* valid EE for simple element START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}DepartureTime) ? */
errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
if(eventCode == 0) {
- grammarID = 2855;
+ grammarID = 1491;
} else {
errn = EXI_DEVIANT_SUPPORT_NOT_DEPLOYED; /* or also typecast and nillable */
}
@@ -102028,14 +47968,14 @@ static int decode_v2gWPT_EVChargeParameterType(bitstream_t* stream, struct v2gWP
}
}
break;
- case 2855:
+ case 1491:
/* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}EVMaximumPower)] */
errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
if (errn == 0) {
switch(eventCode) {
case 0:
- errn = decode_v2gPhysicalValueType(stream, &v2gWPT_EVChargeParameterType->EVMaximumPower);
- grammarID = 2856;
+ errn = decode_iso2PhysicalValueType(stream, &iso2WPT_EVChargeParameterType->EVMaximumPower);
+ grammarID = 1492;
break;
default:
errn = EXI_ERROR_UNKOWN_EVENT_CODE;
@@ -102043,14 +47983,14 @@ static int decode_v2gWPT_EVChargeParameterType(bitstream_t* stream, struct v2gWP
}
}
break;
- case 2856:
+ case 1492:
/* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}EVMinimumPower)] */
errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
if (errn == 0) {
switch(eventCode) {
case 0:
- errn = decode_v2gPhysicalValueType(stream, &v2gWPT_EVChargeParameterType->EVMinimumPower);
- grammarID = 2857;
+ errn = decode_iso2PhysicalValueType(stream, &iso2WPT_EVChargeParameterType->EVMinimumPower);
+ grammarID = 1493;
break;
default:
errn = EXI_ERROR_UNKOWN_EVENT_CODE;
@@ -102058,29 +47998,29 @@ static int decode_v2gWPT_EVChargeParameterType(bitstream_t* stream, struct v2gWP
}
}
break;
- case 2857:
+ case 1493:
/* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}EVTargetEnergyRequest), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}EVMaximumEnergyRequest), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}EVMinimumEnergyRequest), END_ELEMENT] */
errn = decodeNBitUnsignedInteger(stream, 3, &eventCode);
if (errn == 0) {
switch(eventCode) {
case 0:
- errn = decode_v2gPhysicalValueType(stream, &v2gWPT_EVChargeParameterType->EVTargetEnergyRequest);
- v2gWPT_EVChargeParameterType->EVTargetEnergyRequest_isUsed = 1u;
- grammarID = 2858;
+ errn = decode_iso2PhysicalValueType(stream, &iso2WPT_EVChargeParameterType->EVTargetEnergyRequest);
+ iso2WPT_EVChargeParameterType->EVTargetEnergyRequest_isUsed = 1u;
+ grammarID = 1494;
break;
case 1:
- errn = decode_v2gPhysicalValueType(stream, &v2gWPT_EVChargeParameterType->EVMaximumEnergyRequest);
- v2gWPT_EVChargeParameterType->EVMaximumEnergyRequest_isUsed = 1u;
- grammarID = 2859;
+ errn = decode_iso2PhysicalValueType(stream, &iso2WPT_EVChargeParameterType->EVMaximumEnergyRequest);
+ iso2WPT_EVChargeParameterType->EVMaximumEnergyRequest_isUsed = 1u;
+ grammarID = 1495;
break;
case 2:
- errn = decode_v2gPhysicalValueType(stream, &v2gWPT_EVChargeParameterType->EVMinimumEnergyRequest);
- v2gWPT_EVChargeParameterType->EVMinimumEnergyRequest_isUsed = 1u;
- grammarID = 2;
+ errn = decode_iso2PhysicalValueType(stream, &iso2WPT_EVChargeParameterType->EVMinimumEnergyRequest);
+ iso2WPT_EVChargeParameterType->EVMinimumEnergyRequest_isUsed = 1u;
+ grammarID = 3;
break;
case 3:
done = 1;
- grammarID = 3;
+ grammarID = 4;
break;
default:
errn = EXI_ERROR_UNKOWN_EVENT_CODE;
@@ -102088,24 +48028,24 @@ static int decode_v2gWPT_EVChargeParameterType(bitstream_t* stream, struct v2gWP
}
}
break;
- case 2858:
+ case 1494:
/* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}EVMaximumEnergyRequest), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}EVMinimumEnergyRequest), END_ELEMENT] */
errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
if (errn == 0) {
switch(eventCode) {
case 0:
- errn = decode_v2gPhysicalValueType(stream, &v2gWPT_EVChargeParameterType->EVMaximumEnergyRequest);
- v2gWPT_EVChargeParameterType->EVMaximumEnergyRequest_isUsed = 1u;
- grammarID = 2859;
+ errn = decode_iso2PhysicalValueType(stream, &iso2WPT_EVChargeParameterType->EVMaximumEnergyRequest);
+ iso2WPT_EVChargeParameterType->EVMaximumEnergyRequest_isUsed = 1u;
+ grammarID = 1495;
break;
case 1:
- errn = decode_v2gPhysicalValueType(stream, &v2gWPT_EVChargeParameterType->EVMinimumEnergyRequest);
- v2gWPT_EVChargeParameterType->EVMinimumEnergyRequest_isUsed = 1u;
- grammarID = 2;
+ errn = decode_iso2PhysicalValueType(stream, &iso2WPT_EVChargeParameterType->EVMinimumEnergyRequest);
+ iso2WPT_EVChargeParameterType->EVMinimumEnergyRequest_isUsed = 1u;
+ grammarID = 3;
break;
case 2:
done = 1;
- grammarID = 3;
+ grammarID = 4;
break;
default:
errn = EXI_ERROR_UNKOWN_EVENT_CODE;
@@ -102113,19 +48053,19 @@ static int decode_v2gWPT_EVChargeParameterType(bitstream_t* stream, struct v2gWP
}
}
break;
- case 2859:
+ case 1495:
/* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}EVMinimumEnergyRequest), END_ELEMENT] */
errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
if (errn == 0) {
switch(eventCode) {
case 0:
- errn = decode_v2gPhysicalValueType(stream, &v2gWPT_EVChargeParameterType->EVMinimumEnergyRequest);
- v2gWPT_EVChargeParameterType->EVMinimumEnergyRequest_isUsed = 1u;
- grammarID = 2;
+ errn = decode_iso2PhysicalValueType(stream, &iso2WPT_EVChargeParameterType->EVMinimumEnergyRequest);
+ iso2WPT_EVChargeParameterType->EVMinimumEnergyRequest_isUsed = 1u;
+ grammarID = 3;
break;
case 1:
done = 1;
- grammarID = 3;
+ grammarID = 4;
break;
default:
errn = EXI_ERROR_UNKOWN_EVENT_CODE;
@@ -102133,15 +48073,11126 @@ static int decode_v2gWPT_EVChargeParameterType(bitstream_t* stream, struct v2gWP
}
}
break;
- case 2:
+ case 3:
/* Element[END_ELEMENT] */
errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
if (errn == 0) {
switch(eventCode) {
case 0:
done = 1;
+ grammarID = 4;
+ 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:2016:MsgBody,DisconnectChargingDeviceReqType', base type name='BodyBaseType', content type='ELEMENT', isAbstract='false', hasTypeId='false', final='0', block='0', particle='("urn:iso:15118:2:2016:MsgBody":EVElectricalChargingDeviceStatus,"urn:iso:15118:2:2016:MsgBody":EVMechanicalChargingDeviceStatus)', derivedBy='EXTENSION'. */
+static int decode_iso2DisconnectChargingDeviceReqType(bitstream_t* stream, struct iso2DisconnectChargingDeviceReqType* iso2DisconnectChargingDeviceReqType) {
+ int grammarID = 1496;
+ int done = 0;
+
+ init_iso2DisconnectChargingDeviceReqType(iso2DisconnectChargingDeviceReqType);
+
+ while(!done) {
+ switch(grammarID) {
+ case 1496:
+ /* FirstStartTag[START_ELEMENT({urn:iso:15118:2:2016:MsgBody}EVElectricalChargingDeviceStatus)] */
+ 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, 1, &uint32);
+ iso2DisconnectChargingDeviceReqType->EVElectricalChargingDeviceStatus = (iso2electricalChargingDeviceStatusType) 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({urn:iso:15118:2:2016:MsgBody}EVElectricalChargingDeviceStatus) ? */
+ errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
+ if(eventCode == 0) {
+ grammarID = 1497;
+ } else {
+ errn = EXI_DEVIANT_SUPPORT_NOT_DEPLOYED; /* or also typecast and nillable */
+ }
+ }
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 1497:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgBody}EVMechanicalChargingDeviceStatus)] */
+ 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);
+ iso2DisconnectChargingDeviceReqType->EVMechanicalChargingDeviceStatus = (iso2mechanicalChargingDeviceStatusType) 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({urn:iso:15118:2:2016:MsgBody}EVMechanicalChargingDeviceStatus) ? */
+ errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
+ if(eventCode == 0) {
+ grammarID = 3;
+ } else {
+ errn = EXI_DEVIANT_SUPPORT_NOT_DEPLOYED; /* or also typecast and nillable */
+ }
+ }
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 3:
+ /* Element[END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ done = 1;
+ grammarID = 4;
+ 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:2016:MsgBody,ChargeLoopReqType', base type name='BodyBaseType', content type='ELEMENT', isAbstract='true', hasTypeId='false', final='0', block='0', particle='("urn:iso:15118:2:2016:MsgBody":EVTargetEnergyRequest,"urn:iso:15118:2:2016:MsgBody":EVMaximumEnergyRequest{0-1},"urn:iso:15118:2:2016:MsgBody":EVMinimumEnergyRequest{0-1},"urn:iso:15118:2:2016:MsgBody":DisplayParameters{0-1})', derivedBy='EXTENSION'. */
+static int decode_iso2ChargeLoopReqType(bitstream_t* stream, struct iso2ChargeLoopReqType* iso2ChargeLoopReqType) {
+ int grammarID = 1498;
+ int done = 0;
+
+ init_iso2ChargeLoopReqType(iso2ChargeLoopReqType);
+
+ while(!done) {
+ switch(grammarID) {
+ case 1498:
+ /* FirstStartTag[START_ELEMENT({urn:iso:15118:2:2016:MsgBody}EVTargetEnergyRequest)] */
+ errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ errn = decode_iso2PhysicalValueType(stream, &iso2ChargeLoopReqType->EVTargetEnergyRequest);
+ grammarID = 1499;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 1499:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgBody}EVMaximumEnergyRequest), START_ELEMENT({urn:iso:15118:2:2016:MsgBody}EVMinimumEnergyRequest), START_ELEMENT({urn:iso:15118:2:2016:MsgBody}DisplayParameters), END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 3, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ errn = decode_iso2PhysicalValueType(stream, &iso2ChargeLoopReqType->EVMaximumEnergyRequest);
+ iso2ChargeLoopReqType->EVMaximumEnergyRequest_isUsed = 1u;
+ grammarID = 1500;
+ break;
+ case 1:
+ errn = decode_iso2PhysicalValueType(stream, &iso2ChargeLoopReqType->EVMinimumEnergyRequest);
+ iso2ChargeLoopReqType->EVMinimumEnergyRequest_isUsed = 1u;
+ grammarID = 1501;
+ break;
+ case 2:
+ errn = decode_iso2DisplayParametersType(stream, &iso2ChargeLoopReqType->DisplayParameters);
+ iso2ChargeLoopReqType->DisplayParameters_isUsed = 1u;
grammarID = 3;
break;
+ case 3:
+ done = 1;
+ grammarID = 4;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 1500:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgBody}EVMinimumEnergyRequest), START_ELEMENT({urn:iso:15118:2:2016:MsgBody}DisplayParameters), END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ errn = decode_iso2PhysicalValueType(stream, &iso2ChargeLoopReqType->EVMinimumEnergyRequest);
+ iso2ChargeLoopReqType->EVMinimumEnergyRequest_isUsed = 1u;
+ grammarID = 1501;
+ break;
+ case 1:
+ errn = decode_iso2DisplayParametersType(stream, &iso2ChargeLoopReqType->DisplayParameters);
+ iso2ChargeLoopReqType->DisplayParameters_isUsed = 1u;
+ grammarID = 3;
+ break;
+ case 2:
+ done = 1;
+ grammarID = 4;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 1501:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgBody}DisplayParameters), END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ errn = decode_iso2DisplayParametersType(stream, &iso2ChargeLoopReqType->DisplayParameters);
+ iso2ChargeLoopReqType->DisplayParameters_isUsed = 1u;
+ grammarID = 3;
+ break;
+ case 1:
+ done = 1;
+ grammarID = 4;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 3:
+ /* Element[END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ done = 1;
+ grammarID = 4;
+ 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:2016:MsgBody,V2GRequestType', base type name='anyType', content type='EMPTY', isAbstract='true', hasTypeId='false', final='0', block='0', derivedBy='RESTRICTION'. */
+static int decode_iso2V2GRequestType(bitstream_t* stream, struct iso2V2GRequestType* iso2V2GRequestType) {
+ int grammarID = 674;
+ int done = 0;
+
+ init_iso2V2GRequestType(iso2V2GRequestType);
+
+ while(!done) {
+ switch(grammarID) {
+ case 674:
+ /* FirstStartTag[END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ done = 1;
+ grammarID = 4;
+ 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:2016:MsgBody,MeteringReceiptResType', base type name='V2GResponseType', content type='ELEMENT', isAbstract='false', hasTypeId='false', final='0', block='0', particle='("urn:iso:15118:2:2016:MsgBody":ResponseCode,"urn:iso:15118:2:2016:MsgBody":EVSEStatus{0-1})', derivedBy='EXTENSION'. */
+static int decode_iso2MeteringReceiptResType(bitstream_t* stream, struct iso2MeteringReceiptResType* iso2MeteringReceiptResType) {
+ int grammarID = 599;
+ int done = 0;
+
+ init_iso2MeteringReceiptResType(iso2MeteringReceiptResType);
+
+ while(!done) {
+ switch(grammarID) {
+ case 599:
+ /* FirstStartTag[START_ELEMENT({urn:iso:15118:2:2016:MsgBody}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, 5, &uint32);
+ iso2MeteringReceiptResType->ResponseCode = (iso2responseCodeType) 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({urn:iso:15118:2:2016:MsgBody}ResponseCode) ? */
+ errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
+ if(eventCode == 0) {
+ grammarID = 600;
+ } else {
+ errn = EXI_DEVIANT_SUPPORT_NOT_DEPLOYED; /* or also typecast and nillable */
+ }
+ }
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 600:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgBody}EVSEStatus), END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ errn = decode_iso2EVSEStatusType(stream, &iso2MeteringReceiptResType->EVSEStatus);
+ iso2MeteringReceiptResType->EVSEStatus_isUsed = 1u;
+ grammarID = 3;
+ break;
+ case 1:
+ done = 1;
+ grammarID = 4;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 3:
+ /* Element[END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ done = 1;
+ grammarID = 4;
+ 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:2016:MsgBody,SessionSetupResType', base type name='V2GResponseType', content type='ELEMENT', isAbstract='false', hasTypeId='false', final='0', block='0', particle='(("urn:iso:15118:2:2016:MsgBody":ResponseCode,"urn:iso:15118:2:2016:MsgBody":EVSEStatus{0-1}),("urn:iso:15118:2:2016:MsgBody":EVSEID,"urn:iso:15118:2:2016:MsgBody":EVSETimeStamp{0-1}))', derivedBy='EXTENSION'. */
+static int decode_iso2SessionSetupResType(bitstream_t* stream, struct iso2SessionSetupResType* iso2SessionSetupResType) {
+ int grammarID = 1502;
+ int done = 0;
+
+ init_iso2SessionSetupResType(iso2SessionSetupResType);
+
+ while(!done) {
+ switch(grammarID) {
+ case 1502:
+ /* FirstStartTag[START_ELEMENT({urn:iso:15118:2:2016:MsgBody}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, 5, &uint32);
+ iso2SessionSetupResType->ResponseCode = (iso2responseCodeType) 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({urn:iso:15118:2:2016:MsgBody}ResponseCode) ? */
+ errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
+ if(eventCode == 0) {
+ grammarID = 1503;
+ } else {
+ errn = EXI_DEVIANT_SUPPORT_NOT_DEPLOYED; /* or also typecast and nillable */
+ }
+ }
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 1503:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgBody}EVSEStatus), START_ELEMENT({urn:iso:15118:2:2016:MsgBody}EVSEID)] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ errn = decode_iso2EVSEStatusType(stream, &iso2SessionSetupResType->EVSEStatus);
+ iso2SessionSetupResType->EVSEStatus_isUsed = 1u;
+ grammarID = 1504;
+ break;
+ case 1:
+ /* FirstStartTag[CHARACTERS[STRING]] */
+ errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
+ if(errn == 0) {
+ if(eventCode == 0) {
+ errn = decodeUnsignedInteger16(stream, &iso2SessionSetupResType->EVSEID.charactersLen);
+ if (errn == 0) {
+ if (iso2SessionSetupResType->EVSEID.charactersLen >= 2) {
+ iso2SessionSetupResType->EVSEID.charactersLen = (uint16_t)(iso2SessionSetupResType->EVSEID.charactersLen - 2); /* string table miss */
+ errn = decodeCharacters(stream, iso2SessionSetupResType->EVSEID.charactersLen, iso2SessionSetupResType->EVSEID.characters, iso2SessionSetupResType_EVSEID_CHARACTERS_SIZE);
+ } else {
+ /* string table hit */
+ errn = EXI_ERROR_STRINGVALUES_NOT_SUPPORTED;
+ }
+ }
+ } 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({urn:iso:15118:2:2016:MsgBody}EVSEID) ? */
+ errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
+ if(eventCode == 0) {
+ grammarID = 1505;
+ } else {
+ errn = EXI_DEVIANT_SUPPORT_NOT_DEPLOYED; /* or also typecast and nillable */
+ }
+ }
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 1504:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgBody}EVSEID)] */
+ errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ /* FirstStartTag[CHARACTERS[STRING]] */
+ errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
+ if(errn == 0) {
+ if(eventCode == 0) {
+ errn = decodeUnsignedInteger16(stream, &iso2SessionSetupResType->EVSEID.charactersLen);
+ if (errn == 0) {
+ if (iso2SessionSetupResType->EVSEID.charactersLen >= 2) {
+ iso2SessionSetupResType->EVSEID.charactersLen = (uint16_t)(iso2SessionSetupResType->EVSEID.charactersLen - 2); /* string table miss */
+ errn = decodeCharacters(stream, iso2SessionSetupResType->EVSEID.charactersLen, iso2SessionSetupResType->EVSEID.characters, iso2SessionSetupResType_EVSEID_CHARACTERS_SIZE);
+ } else {
+ /* string table hit */
+ errn = EXI_ERROR_STRINGVALUES_NOT_SUPPORTED;
+ }
+ }
+ } 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({urn:iso:15118:2:2016:MsgBody}EVSEID) ? */
+ errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
+ if(eventCode == 0) {
+ grammarID = 1505;
+ } else {
+ errn = EXI_DEVIANT_SUPPORT_NOT_DEPLOYED; /* or also typecast and nillable */
+ }
+ }
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 1505:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgBody}EVSETimeStamp), END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ /* First(xsi:type)StartTag[CHARACTERS[INTEGER]] */
+ errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
+ if(errn == 0) {
+ if(eventCode == 0) {
+ errn = decodeInteger64(stream, &iso2SessionSetupResType->EVSETimeStamp);
+ iso2SessionSetupResType->EVSETimeStamp_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({urn:iso:15118:2:2016:MsgBody}EVSETimeStamp) ? */
+ errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
+ if(eventCode == 0) {
+ grammarID = 3;
+ } else {
+ errn = EXI_DEVIANT_SUPPORT_NOT_DEPLOYED; /* or also typecast and nillable */
+ }
+ }
+ break;
+ case 1:
+ done = 1;
+ grammarID = 4;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 3:
+ /* Element[END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ done = 1;
+ grammarID = 4;
+ 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:2016:MsgBody,AC_BidirectionalControlReqType', base type name='ChargeLoopReqType', content type='ELEMENT', isAbstract='false', hasTypeId='false', final='0', block='0', particle='(("urn:iso:15118:2:2016:MsgBody":EVTargetEnergyRequest,"urn:iso:15118:2:2016:MsgBody":EVMaximumEnergyRequest{0-1},"urn:iso:15118:2:2016:MsgBody":EVMinimumEnergyRequest{0-1},"urn:iso:15118:2:2016:MsgBody":DisplayParameters{0-1}),("urn:iso:15118:2:2016:MsgBody":EVOperation{0-1},"urn:iso:15118:2:2016:MsgBody":EVMaximumChargePower,"urn:iso:15118:2:2016:MsgBody":EVMaximumDischargePower{0-1},"urn:iso:15118:2:2016:MsgBody":EVMaximumChargeCurrent,"urn:iso:15118:2:2016:MsgBody":EVMaximumDischargeCurrent{0-1},"urn:iso:15118:2:2016:MsgBody":EVMinimumChargeCurrent,"urn:iso:15118:2:2016:MsgBody":EVMinimumDischargeCurrent{0-1},"urn:iso:15118:2:2016:MsgBody":EVPresentActivePower,"urn:iso:15118:2:2016:MsgBody":EVPresentReactivePower))', derivedBy='EXTENSION'. */
+static int decode_iso2AC_BidirectionalControlReqType(bitstream_t* stream, struct iso2AC_BidirectionalControlReqType* iso2AC_BidirectionalControlReqType) {
+ int grammarID = 1506;
+ int done = 0;
+
+ init_iso2AC_BidirectionalControlReqType(iso2AC_BidirectionalControlReqType);
+
+ while(!done) {
+ switch(grammarID) {
+ case 1506:
+ /* FirstStartTag[START_ELEMENT({urn:iso:15118:2:2016:MsgBody}EVTargetEnergyRequest)] */
+ errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ errn = decode_iso2PhysicalValueType(stream, &iso2AC_BidirectionalControlReqType->EVTargetEnergyRequest);
+ grammarID = 1507;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 1507:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgBody}EVMaximumEnergyRequest), START_ELEMENT({urn:iso:15118:2:2016:MsgBody}EVMinimumEnergyRequest), START_ELEMENT({urn:iso:15118:2:2016:MsgBody}DisplayParameters), START_ELEMENT({urn:iso:15118:2:2016:MsgBody}EVOperation), START_ELEMENT({urn:iso:15118:2:2016:MsgBody}EVMaximumChargePower)] */
+ errn = decodeNBitUnsignedInteger(stream, 3, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ errn = decode_iso2PhysicalValueType(stream, &iso2AC_BidirectionalControlReqType->EVMaximumEnergyRequest);
+ iso2AC_BidirectionalControlReqType->EVMaximumEnergyRequest_isUsed = 1u;
+ grammarID = 1508;
+ break;
+ case 1:
+ errn = decode_iso2PhysicalValueType(stream, &iso2AC_BidirectionalControlReqType->EVMinimumEnergyRequest);
+ iso2AC_BidirectionalControlReqType->EVMinimumEnergyRequest_isUsed = 1u;
+ grammarID = 1509;
+ break;
+ case 2:
+ errn = decode_iso2DisplayParametersType(stream, &iso2AC_BidirectionalControlReqType->DisplayParameters);
+ iso2AC_BidirectionalControlReqType->DisplayParameters_isUsed = 1u;
+ grammarID = 1510;
+ break;
+ case 3:
+ /* FirstStartTag[CHARACTERS[ENUMERATION]] */
+ errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
+ if(errn == 0) {
+ if(eventCode == 0) {
+ errn = decodeNBitUnsignedInteger(stream, 1, &uint32);
+ iso2AC_BidirectionalControlReqType->EVOperation = (iso2EVOperationType) uint32;
+ iso2AC_BidirectionalControlReqType->EVOperation_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({urn:iso:15118:2:2016:MsgBody}EVOperation) ? */
+ errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
+ if(eventCode == 0) {
+ grammarID = 1511;
+ } else {
+ errn = EXI_DEVIANT_SUPPORT_NOT_DEPLOYED; /* or also typecast and nillable */
+ }
+ }
+ break;
+ case 4:
+ errn = decode_iso2PhysicalValueType(stream, &iso2AC_BidirectionalControlReqType->EVMaximumChargePower);
+ grammarID = 1512;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 1508:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgBody}EVMinimumEnergyRequest), START_ELEMENT({urn:iso:15118:2:2016:MsgBody}DisplayParameters), START_ELEMENT({urn:iso:15118:2:2016:MsgBody}EVOperation), START_ELEMENT({urn:iso:15118:2:2016:MsgBody}EVMaximumChargePower)] */
+ errn = decodeNBitUnsignedInteger(stream, 3, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ errn = decode_iso2PhysicalValueType(stream, &iso2AC_BidirectionalControlReqType->EVMinimumEnergyRequest);
+ iso2AC_BidirectionalControlReqType->EVMinimumEnergyRequest_isUsed = 1u;
+ grammarID = 1509;
+ break;
+ case 1:
+ errn = decode_iso2DisplayParametersType(stream, &iso2AC_BidirectionalControlReqType->DisplayParameters);
+ iso2AC_BidirectionalControlReqType->DisplayParameters_isUsed = 1u;
+ grammarID = 1510;
+ break;
+ case 2:
+ /* FirstStartTag[CHARACTERS[ENUMERATION]] */
+ errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
+ if(errn == 0) {
+ if(eventCode == 0) {
+ errn = decodeNBitUnsignedInteger(stream, 1, &uint32);
+ iso2AC_BidirectionalControlReqType->EVOperation = (iso2EVOperationType) uint32;
+ iso2AC_BidirectionalControlReqType->EVOperation_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({urn:iso:15118:2:2016:MsgBody}EVOperation) ? */
+ errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
+ if(eventCode == 0) {
+ grammarID = 1511;
+ } else {
+ errn = EXI_DEVIANT_SUPPORT_NOT_DEPLOYED; /* or also typecast and nillable */
+ }
+ }
+ break;
+ case 3:
+ errn = decode_iso2PhysicalValueType(stream, &iso2AC_BidirectionalControlReqType->EVMaximumChargePower);
+ grammarID = 1512;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 1509:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgBody}DisplayParameters), START_ELEMENT({urn:iso:15118:2:2016:MsgBody}EVOperation), START_ELEMENT({urn:iso:15118:2:2016:MsgBody}EVMaximumChargePower)] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ errn = decode_iso2DisplayParametersType(stream, &iso2AC_BidirectionalControlReqType->DisplayParameters);
+ iso2AC_BidirectionalControlReqType->DisplayParameters_isUsed = 1u;
+ grammarID = 1510;
+ break;
+ case 1:
+ /* FirstStartTag[CHARACTERS[ENUMERATION]] */
+ errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
+ if(errn == 0) {
+ if(eventCode == 0) {
+ errn = decodeNBitUnsignedInteger(stream, 1, &uint32);
+ iso2AC_BidirectionalControlReqType->EVOperation = (iso2EVOperationType) uint32;
+ iso2AC_BidirectionalControlReqType->EVOperation_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({urn:iso:15118:2:2016:MsgBody}EVOperation) ? */
+ errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
+ if(eventCode == 0) {
+ grammarID = 1511;
+ } else {
+ errn = EXI_DEVIANT_SUPPORT_NOT_DEPLOYED; /* or also typecast and nillable */
+ }
+ }
+ break;
+ case 2:
+ errn = decode_iso2PhysicalValueType(stream, &iso2AC_BidirectionalControlReqType->EVMaximumChargePower);
+ grammarID = 1512;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 1510:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgBody}EVOperation), START_ELEMENT({urn:iso:15118:2:2016:MsgBody}EVMaximumChargePower)] */
+ 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, 1, &uint32);
+ iso2AC_BidirectionalControlReqType->EVOperation = (iso2EVOperationType) uint32;
+ iso2AC_BidirectionalControlReqType->EVOperation_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({urn:iso:15118:2:2016:MsgBody}EVOperation) ? */
+ errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
+ if(eventCode == 0) {
+ grammarID = 1511;
+ } else {
+ errn = EXI_DEVIANT_SUPPORT_NOT_DEPLOYED; /* or also typecast and nillable */
+ }
+ }
+ break;
+ case 1:
+ errn = decode_iso2PhysicalValueType(stream, &iso2AC_BidirectionalControlReqType->EVMaximumChargePower);
+ grammarID = 1512;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 1511:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgBody}EVMaximumChargePower)] */
+ errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ errn = decode_iso2PhysicalValueType(stream, &iso2AC_BidirectionalControlReqType->EVMaximumChargePower);
+ grammarID = 1512;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 1512:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgBody}EVMaximumDischargePower), START_ELEMENT({urn:iso:15118:2:2016:MsgBody}EVMaximumChargeCurrent)] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ errn = decode_iso2PhysicalValueType(stream, &iso2AC_BidirectionalControlReqType->EVMaximumDischargePower);
+ iso2AC_BidirectionalControlReqType->EVMaximumDischargePower_isUsed = 1u;
+ grammarID = 1513;
+ break;
+ case 1:
+ errn = decode_iso2PhysicalValueType(stream, &iso2AC_BidirectionalControlReqType->EVMaximumChargeCurrent);
+ grammarID = 1514;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 1513:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgBody}EVMaximumChargeCurrent)] */
+ errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ errn = decode_iso2PhysicalValueType(stream, &iso2AC_BidirectionalControlReqType->EVMaximumChargeCurrent);
+ grammarID = 1514;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 1514:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgBody}EVMaximumDischargeCurrent), START_ELEMENT({urn:iso:15118:2:2016:MsgBody}EVMinimumChargeCurrent)] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ errn = decode_iso2PhysicalValueType(stream, &iso2AC_BidirectionalControlReqType->EVMaximumDischargeCurrent);
+ iso2AC_BidirectionalControlReqType->EVMaximumDischargeCurrent_isUsed = 1u;
+ grammarID = 1515;
+ break;
+ case 1:
+ errn = decode_iso2PhysicalValueType(stream, &iso2AC_BidirectionalControlReqType->EVMinimumChargeCurrent);
+ grammarID = 1516;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 1515:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgBody}EVMinimumChargeCurrent)] */
+ errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ errn = decode_iso2PhysicalValueType(stream, &iso2AC_BidirectionalControlReqType->EVMinimumChargeCurrent);
+ grammarID = 1516;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 1516:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgBody}EVMinimumDischargeCurrent), START_ELEMENT({urn:iso:15118:2:2016:MsgBody}EVPresentActivePower)] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ errn = decode_iso2PhysicalValueType(stream, &iso2AC_BidirectionalControlReqType->EVMinimumDischargeCurrent);
+ iso2AC_BidirectionalControlReqType->EVMinimumDischargeCurrent_isUsed = 1u;
+ grammarID = 1517;
+ break;
+ case 1:
+ errn = decode_iso2PhysicalValueType(stream, &iso2AC_BidirectionalControlReqType->EVPresentActivePower);
+ grammarID = 1518;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 1517:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgBody}EVPresentActivePower)] */
+ errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ errn = decode_iso2PhysicalValueType(stream, &iso2AC_BidirectionalControlReqType->EVPresentActivePower);
+ grammarID = 1518;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 1518:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgBody}EVPresentReactivePower)] */
+ errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ errn = decode_iso2PhysicalValueType(stream, &iso2AC_BidirectionalControlReqType->EVPresentReactivePower);
+ grammarID = 3;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 3:
+ /* Element[END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ done = 1;
+ grammarID = 4;
+ 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:2016:MsgDataTypes,MV_EVSEFinePositioningParametersType', base type name='EVSEFinePositioningParametersType', content type='ELEMENT', isAbstract='false', hasTypeId='false', final='0', block='0', particle='("urn:iso:15118:2:2016:MsgDataTypes":MagneticVectorList)', derivedBy='EXTENSION'. */
+static int decode_iso2MV_EVSEFinePositioningParametersType(bitstream_t* stream, struct iso2MV_EVSEFinePositioningParametersType* iso2MV_EVSEFinePositioningParametersType) {
+ int grammarID = 1519;
+ int done = 0;
+
+ init_iso2MV_EVSEFinePositioningParametersType(iso2MV_EVSEFinePositioningParametersType);
+
+ while(!done) {
+ switch(grammarID) {
+ case 1519:
+ /* FirstStartTag[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MagneticVectorList)] */
+ errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ errn = decode_iso2MagneticVectorListType(stream, &iso2MV_EVSEFinePositioningParametersType->MagneticVectorList);
+ grammarID = 3;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 3:
+ /* Element[END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ done = 1;
+ grammarID = 4;
+ 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='http://www.w3.org/2000/09/xmldsig#,ReferenceType', base type name='anyType', content type='ELEMENT', isAbstract='false', hasTypeId='false', final='0', block='0', particle='("http://www.w3.org/2000/09/xmldsig#":Transforms{0-1},"http://www.w3.org/2000/09/xmldsig#":DigestMethod,"http://www.w3.org/2000/09/xmldsig#":DigestValue)', derivedBy='RESTRICTION'. */
+static int decode_iso2ReferenceType(bitstream_t* stream, struct iso2ReferenceType* iso2ReferenceType) {
+ int grammarID = 1520;
+ int done = 0;
+
+ init_iso2ReferenceType(iso2ReferenceType);
+
+ while(!done) {
+ switch(grammarID) {
+ case 1520:
+ /* FirstStartTag[ATTRIBUTE[STRING](Id), ATTRIBUTE[STRING](Type), ATTRIBUTE[STRING](URI), START_ELEMENT({http://www.w3.org/2000/09/xmldsig#}Transforms), START_ELEMENT({http://www.w3.org/2000/09/xmldsig#}DigestMethod)] */
+ errn = decodeNBitUnsignedInteger(stream, 3, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ errn = decodeUnsignedInteger16(stream, &iso2ReferenceType->Id.charactersLen);
+ if (errn == 0) {
+ if (iso2ReferenceType->Id.charactersLen >= 2) {
+ iso2ReferenceType->Id.charactersLen = (uint16_t)(iso2ReferenceType->Id.charactersLen - 2); /* string table miss */
+ errn = decodeCharacters(stream, iso2ReferenceType->Id.charactersLen, iso2ReferenceType->Id.characters, iso2ReferenceType_Id_CHARACTERS_SIZE);
+ } else {
+ /* string table hit */
+ errn = EXI_ERROR_STRINGVALUES_NOT_SUPPORTED;
+ }
+ }
+ iso2ReferenceType->Id_isUsed = 1u;
+ grammarID = 1521;
+ break;
+ case 1:
+ errn = decodeUnsignedInteger16(stream, &iso2ReferenceType->Type.charactersLen);
+ if (errn == 0) {
+ if (iso2ReferenceType->Type.charactersLen >= 2) {
+ iso2ReferenceType->Type.charactersLen = (uint16_t)(iso2ReferenceType->Type.charactersLen - 2); /* string table miss */
+ errn = decodeCharacters(stream, iso2ReferenceType->Type.charactersLen, iso2ReferenceType->Type.characters, iso2ReferenceType_Type_CHARACTERS_SIZE);
+ } else {
+ /* string table hit */
+ errn = EXI_ERROR_STRINGVALUES_NOT_SUPPORTED;
+ }
+ }
+ iso2ReferenceType->Type_isUsed = 1u;
+ grammarID = 1522;
+ break;
+ case 2:
+ errn = decodeUnsignedInteger16(stream, &iso2ReferenceType->URI.charactersLen);
+ if (errn == 0) {
+ if (iso2ReferenceType->URI.charactersLen >= 2) {
+ iso2ReferenceType->URI.charactersLen = (uint16_t)(iso2ReferenceType->URI.charactersLen - 2); /* string table miss */
+ errn = decodeCharacters(stream, iso2ReferenceType->URI.charactersLen, iso2ReferenceType->URI.characters, iso2ReferenceType_URI_CHARACTERS_SIZE);
+ } else {
+ /* string table hit */
+ errn = EXI_ERROR_STRINGVALUES_NOT_SUPPORTED;
+ }
+ }
+ iso2ReferenceType->URI_isUsed = 1u;
+ grammarID = 1523;
+ break;
+ case 3:
+ errn = decode_iso2TransformsType(stream, &iso2ReferenceType->Transforms);
+ iso2ReferenceType->Transforms_isUsed = 1u;
+ grammarID = 1524;
+ break;
+ case 4:
+ errn = decode_iso2DigestMethodType(stream, &iso2ReferenceType->DigestMethod);
+ grammarID = 1525;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 1521:
+ /* StartTag[ATTRIBUTE[STRING](Type), ATTRIBUTE[STRING](URI), START_ELEMENT({http://www.w3.org/2000/09/xmldsig#}Transforms), START_ELEMENT({http://www.w3.org/2000/09/xmldsig#}DigestMethod)] */
+ errn = decodeNBitUnsignedInteger(stream, 3, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ errn = decodeUnsignedInteger16(stream, &iso2ReferenceType->Type.charactersLen);
+ if (errn == 0) {
+ if (iso2ReferenceType->Type.charactersLen >= 2) {
+ iso2ReferenceType->Type.charactersLen = (uint16_t)(iso2ReferenceType->Type.charactersLen - 2); /* string table miss */
+ errn = decodeCharacters(stream, iso2ReferenceType->Type.charactersLen, iso2ReferenceType->Type.characters, iso2ReferenceType_Type_CHARACTERS_SIZE);
+ } else {
+ /* string table hit */
+ errn = EXI_ERROR_STRINGVALUES_NOT_SUPPORTED;
+ }
+ }
+ iso2ReferenceType->Type_isUsed = 1u;
+ grammarID = 1522;
+ break;
+ case 1:
+ errn = decodeUnsignedInteger16(stream, &iso2ReferenceType->URI.charactersLen);
+ if (errn == 0) {
+ if (iso2ReferenceType->URI.charactersLen >= 2) {
+ iso2ReferenceType->URI.charactersLen = (uint16_t)(iso2ReferenceType->URI.charactersLen - 2); /* string table miss */
+ errn = decodeCharacters(stream, iso2ReferenceType->URI.charactersLen, iso2ReferenceType->URI.characters, iso2ReferenceType_URI_CHARACTERS_SIZE);
+ } else {
+ /* string table hit */
+ errn = EXI_ERROR_STRINGVALUES_NOT_SUPPORTED;
+ }
+ }
+ iso2ReferenceType->URI_isUsed = 1u;
+ grammarID = 1523;
+ break;
+ case 2:
+ errn = decode_iso2TransformsType(stream, &iso2ReferenceType->Transforms);
+ iso2ReferenceType->Transforms_isUsed = 1u;
+ grammarID = 1524;
+ break;
+ case 3:
+ errn = decode_iso2DigestMethodType(stream, &iso2ReferenceType->DigestMethod);
+ grammarID = 1525;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 1522:
+ /* StartTag[ATTRIBUTE[STRING](URI), START_ELEMENT({http://www.w3.org/2000/09/xmldsig#}Transforms), START_ELEMENT({http://www.w3.org/2000/09/xmldsig#}DigestMethod)] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ errn = decodeUnsignedInteger16(stream, &iso2ReferenceType->URI.charactersLen);
+ if (errn == 0) {
+ if (iso2ReferenceType->URI.charactersLen >= 2) {
+ iso2ReferenceType->URI.charactersLen = (uint16_t)(iso2ReferenceType->URI.charactersLen - 2); /* string table miss */
+ errn = decodeCharacters(stream, iso2ReferenceType->URI.charactersLen, iso2ReferenceType->URI.characters, iso2ReferenceType_URI_CHARACTERS_SIZE);
+ } else {
+ /* string table hit */
+ errn = EXI_ERROR_STRINGVALUES_NOT_SUPPORTED;
+ }
+ }
+ iso2ReferenceType->URI_isUsed = 1u;
+ grammarID = 1523;
+ break;
+ case 1:
+ errn = decode_iso2TransformsType(stream, &iso2ReferenceType->Transforms);
+ iso2ReferenceType->Transforms_isUsed = 1u;
+ grammarID = 1524;
+ break;
+ case 2:
+ errn = decode_iso2DigestMethodType(stream, &iso2ReferenceType->DigestMethod);
+ grammarID = 1525;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 1523:
+ /* StartTag[START_ELEMENT({http://www.w3.org/2000/09/xmldsig#}Transforms), START_ELEMENT({http://www.w3.org/2000/09/xmldsig#}DigestMethod)] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ errn = decode_iso2TransformsType(stream, &iso2ReferenceType->Transforms);
+ iso2ReferenceType->Transforms_isUsed = 1u;
+ grammarID = 1524;
+ break;
+ case 1:
+ errn = decode_iso2DigestMethodType(stream, &iso2ReferenceType->DigestMethod);
+ grammarID = 1525;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 1524:
+ /* Element[START_ELEMENT({http://www.w3.org/2000/09/xmldsig#}DigestMethod)] */
+ errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ errn = decode_iso2DigestMethodType(stream, &iso2ReferenceType->DigestMethod);
+ grammarID = 1525;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 1525:
+ /* Element[START_ELEMENT({http://www.w3.org/2000/09/xmldsig#}DigestValue)] */
+ errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ /* FirstStartTag[CHARACTERS[BINARY_BASE64]] */
+ errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
+ if(errn == 0) {
+ if(eventCode == 0) {
+ errn = decodeUnsignedInteger16(stream, &iso2ReferenceType->DigestValue.bytesLen);
+ if (errn == 0) {
+ errn = (iso2ReferenceType->DigestValue.bytesLen) <= iso2ReferenceType_DigestValue_BYTES_SIZE ? 0 : EXI_ERROR_OUT_OF_BYTE_BUFFER;
+ }
+ if (errn == 0) {
+ errn = decodeBytes(stream, iso2ReferenceType->DigestValue.bytesLen, iso2ReferenceType->DigestValue.bytes);
+ }
+ } 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({http://www.w3.org/2000/09/xmldsig#}DigestValue) ? */
+ errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
+ if(eventCode == 0) {
+ grammarID = 3;
+ } else {
+ errn = EXI_DEVIANT_SUPPORT_NOT_DEPLOYED; /* or also typecast and nillable */
+ }
+ }
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 3:
+ /* Element[END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ done = 1;
+ grammarID = 4;
+ 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:2016:MsgDataTypes,EVSEEnergyTransferParameterType', base type name='anyType', content type='EMPTY', isAbstract='true', hasTypeId='false', final='0', block='0', derivedBy='RESTRICTION'. */
+static int decode_iso2EVSEEnergyTransferParameterType(bitstream_t* stream, struct iso2EVSEEnergyTransferParameterType* iso2EVSEEnergyTransferParameterType) {
+ int grammarID = 674;
+ int done = 0;
+
+ init_iso2EVSEEnergyTransferParameterType(iso2EVSEEnergyTransferParameterType);
+
+ while(!done) {
+ switch(grammarID) {
+ case 674:
+ /* FirstStartTag[END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ done = 1;
+ grammarID = 4;
+ 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:2016:MsgBody,MeteringReceiptReqType', base type name='BodyBaseType', content type='ELEMENT', isAbstract='false', hasTypeId='false', final='0', block='0', particle='("urn:iso:15118:2:2016:MsgBody":SessionID,"urn:iso:15118:2:2016:MsgBody":SAScheduleTupleID{0-1},"urn:iso:15118:2:2016:MsgBody":MeterInfo)', derivedBy='EXTENSION'. */
+static int decode_iso2MeteringReceiptReqType(bitstream_t* stream, struct iso2MeteringReceiptReqType* iso2MeteringReceiptReqType) {
+ int grammarID = 1526;
+ int done = 0;
+
+ init_iso2MeteringReceiptReqType(iso2MeteringReceiptReqType);
+
+ while(!done) {
+ switch(grammarID) {
+ case 1526:
+ /* FirstStartTag[ATTRIBUTE[STRING]({urn:iso:15118:2:2016:MsgBody}Id)] */
+ errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ errn = decodeUnsignedInteger16(stream, &iso2MeteringReceiptReqType->Id.charactersLen);
+ if (errn == 0) {
+ if (iso2MeteringReceiptReqType->Id.charactersLen >= 2) {
+ iso2MeteringReceiptReqType->Id.charactersLen = (uint16_t)(iso2MeteringReceiptReqType->Id.charactersLen - 2); /* string table miss */
+ errn = decodeCharacters(stream, iso2MeteringReceiptReqType->Id.charactersLen, iso2MeteringReceiptReqType->Id.characters, iso2MeteringReceiptReqType_Id_CHARACTERS_SIZE);
+ } else {
+ /* string table hit */
+ errn = EXI_ERROR_STRINGVALUES_NOT_SUPPORTED;
+ }
+ }
+ grammarID = 1527;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 1527:
+ /* StartTag[START_ELEMENT({urn:iso:15118:2:2016:MsgBody}SessionID)] */
+ errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ /* FirstStartTag[CHARACTERS[BINARY_HEX]] */
+ errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
+ if(errn == 0) {
+ if(eventCode == 0) {
+ errn = decodeUnsignedInteger16(stream, &iso2MeteringReceiptReqType->SessionID.bytesLen);
+ if (errn == 0) {
+ errn = (iso2MeteringReceiptReqType->SessionID.bytesLen) <= iso2MeteringReceiptReqType_SessionID_BYTES_SIZE ? 0 : EXI_ERROR_OUT_OF_BYTE_BUFFER;
+ }
+ if (errn == 0) {
+ errn = decodeBytes(stream, iso2MeteringReceiptReqType->SessionID.bytesLen, iso2MeteringReceiptReqType->SessionID.bytes);
+ }
+ } 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({urn:iso:15118:2:2016:MsgBody}SessionID) ? */
+ errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
+ if(eventCode == 0) {
+ grammarID = 1528;
+ } else {
+ errn = EXI_DEVIANT_SUPPORT_NOT_DEPLOYED; /* or also typecast and nillable */
+ }
+ }
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 1528:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgBody}SAScheduleTupleID), START_ELEMENT({urn:iso:15118:2:2016:MsgBody}MeterInfo)] */
+ 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));
+ iso2MeteringReceiptReqType->SAScheduleTupleID = (uint8_t)(uint32 + 1);
+ iso2MeteringReceiptReqType->SAScheduleTupleID_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({urn:iso:15118:2:2016:MsgBody}SAScheduleTupleID) ? */
+ errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
+ if(eventCode == 0) {
+ grammarID = 1529;
+ } else {
+ errn = EXI_DEVIANT_SUPPORT_NOT_DEPLOYED; /* or also typecast and nillable */
+ }
+ }
+ break;
+ case 1:
+ errn = decode_iso2MeterInfoType(stream, &iso2MeteringReceiptReqType->MeterInfo);
+ grammarID = 3;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 1529:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgBody}MeterInfo)] */
+ errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ errn = decode_iso2MeterInfoType(stream, &iso2MeteringReceiptReqType->MeterInfo);
+ grammarID = 3;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 3:
+ /* Element[END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ done = 1;
+ grammarID = 4;
+ 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='http://www.w3.org/2000/09/xmldsig#,KeyValueType', base type name='anyType', content type='MIXED', isAbstract='false', hasTypeId='false', final='0', block='0', particle='("http://www.w3.org/2000/09/xmldsig#":DSAKeyValue|"http://www.w3.org/2000/09/xmldsig#":RSAKeyValue|(WC[##other:"http://www.w3.org/2000/09/xmldsig#"]))', derivedBy='RESTRICTION'. */
+static int decode_iso2KeyValueType(bitstream_t* stream, struct iso2KeyValueType* iso2KeyValueType) {
+ int grammarID = 1530;
+ int done = 0;
+
+ init_iso2KeyValueType(iso2KeyValueType);
+
+ while(!done) {
+ switch(grammarID) {
+ case 1530:
+ /* FirstStartTag[START_ELEMENT({http://www.w3.org/2000/09/xmldsig#}DSAKeyValue), START_ELEMENT({http://www.w3.org/2000/09/xmldsig#}RSAKeyValue), START_ELEMENT_GENERIC, CHARACTERS_GENERIC[STRING]] */
+ errn = decodeNBitUnsignedInteger(stream, 3, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ errn = decode_iso2DSAKeyValueType(stream, &iso2KeyValueType->DSAKeyValue);
+ iso2KeyValueType->DSAKeyValue_isUsed = 1u;
+ grammarID = 1531;
+ break;
+ case 1:
+ errn = decode_iso2RSAKeyValueType(stream, &iso2KeyValueType->RSAKeyValue);
+ iso2KeyValueType->RSAKeyValue_isUsed = 1u;
+ grammarID = 1531;
+ break;
+ case 2:
+ errn = EXI_UNSUPPORTED_EVENT_CODE_CHARACTERISTICS;
+ /* TODO unsupported event : START_ELEMENT_GENERIC */
+ grammarID = 1531;
+ break;
+ case 3:
+ errn = decodeUnsignedInteger16(stream, &iso2KeyValueType->ANY.charactersLen);
+ if (errn == 0) {
+ if (iso2KeyValueType->ANY.charactersLen >= 2) {
+ iso2KeyValueType->ANY.charactersLen = (uint16_t)(iso2KeyValueType->ANY.charactersLen - 2); /* string table miss */
+ errn = decodeCharacters(stream, iso2KeyValueType->ANY.charactersLen, iso2KeyValueType->ANY.characters, iso2KeyValueType_ANY_CHARACTERS_SIZE);
+ } else {
+ /* string table hit */
+ errn = EXI_ERROR_STRINGVALUES_NOT_SUPPORTED;
+ }
+ }
+ iso2KeyValueType->ANY_isUsed = 1u;
+ grammarID = 1532;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 1531:
+ /* Element[END_ELEMENT, CHARACTERS_GENERIC[STRING]] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ done = 1;
+ grammarID = 4;
+ break;
+ case 1:
+ errn = decodeUnsignedInteger16(stream, &iso2KeyValueType->ANY.charactersLen);
+ if (errn == 0) {
+ if (iso2KeyValueType->ANY.charactersLen >= 2) {
+ iso2KeyValueType->ANY.charactersLen = (uint16_t)(iso2KeyValueType->ANY.charactersLen - 2); /* string table miss */
+ errn = decodeCharacters(stream, iso2KeyValueType->ANY.charactersLen, iso2KeyValueType->ANY.characters, iso2KeyValueType_ANY_CHARACTERS_SIZE);
+ } else {
+ /* string table hit */
+ errn = EXI_ERROR_STRINGVALUES_NOT_SUPPORTED;
+ }
+ }
+ iso2KeyValueType->ANY_isUsed = 1u;
+ grammarID = 1531;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 1532:
+ /* Element[START_ELEMENT({http://www.w3.org/2000/09/xmldsig#}DSAKeyValue), START_ELEMENT({http://www.w3.org/2000/09/xmldsig#}RSAKeyValue), START_ELEMENT_GENERIC, CHARACTERS_GENERIC[STRING]] */
+ errn = decodeNBitUnsignedInteger(stream, 3, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ errn = decode_iso2DSAKeyValueType(stream, &iso2KeyValueType->DSAKeyValue);
+ iso2KeyValueType->DSAKeyValue_isUsed = 1u;
+ grammarID = 1531;
+ break;
+ case 1:
+ errn = decode_iso2RSAKeyValueType(stream, &iso2KeyValueType->RSAKeyValue);
+ iso2KeyValueType->RSAKeyValue_isUsed = 1u;
+ grammarID = 1531;
+ break;
+ case 2:
+ errn = EXI_UNSUPPORTED_EVENT_CODE_CHARACTERISTICS;
+ /* TODO unsupported event : START_ELEMENT_GENERIC */
+ grammarID = 1531;
+ break;
+ case 3:
+ errn = decodeUnsignedInteger16(stream, &iso2KeyValueType->ANY.charactersLen);
+ if (errn == 0) {
+ if (iso2KeyValueType->ANY.charactersLen >= 2) {
+ iso2KeyValueType->ANY.charactersLen = (uint16_t)(iso2KeyValueType->ANY.charactersLen - 2); /* string table miss */
+ errn = decodeCharacters(stream, iso2KeyValueType->ANY.charactersLen, iso2KeyValueType->ANY.characters, iso2KeyValueType_ANY_CHARACTERS_SIZE);
+ } else {
+ /* string table hit */
+ errn = EXI_ERROR_STRINGVALUES_NOT_SUPPORTED;
+ }
+ }
+ iso2KeyValueType->ANY_isUsed = 1u;
+ grammarID = 1532;
+ 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:2016:MsgDataTypes,SensorListType', base type name='anyType', content type='ELEMENT', isAbstract='false', hasTypeId='false', final='0', block='0', particle='("urn:iso:15118:2:2016:MsgDataTypes":Sensor{1-255})', derivedBy='RESTRICTION'. */
+static int decode_iso2SensorListType(bitstream_t* stream, struct iso2SensorListType* iso2SensorListType) {
+ int grammarID = 1533;
+ int done = 0;
+
+ init_iso2SensorListType(iso2SensorListType);
+
+ while(!done) {
+ switch(grammarID) {
+ case 1533:
+ /* FirstStartTag[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}Sensor)] */
+ errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ if (iso2SensorListType->Sensor.arrayLen < iso2SensorListType_Sensor_ARRAY_SIZE) {
+ errn = decode_iso2SensorType(stream, &iso2SensorListType->Sensor.array[iso2SensorListType->Sensor.arrayLen++]);
+ } else {
+ errn = EXI_ERROR_OUT_OF_BOUNDS;
+ }
+ grammarID = 1534;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 1534:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}Sensor), END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ if (iso2SensorListType->Sensor.arrayLen < iso2SensorListType_Sensor_ARRAY_SIZE) {
+ errn = decode_iso2SensorType(stream, &iso2SensorListType->Sensor.array[iso2SensorListType->Sensor.arrayLen++]);
+ } else {
+ errn = EXI_ERROR_OUT_OF_BOUNDS;
+ }
+ grammarID = 1535;
+ break;
+ case 1:
+ done = 1;
+ grammarID = 4;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 1535:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}Sensor), END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ if (iso2SensorListType->Sensor.arrayLen < iso2SensorListType_Sensor_ARRAY_SIZE) {
+ errn = decode_iso2SensorType(stream, &iso2SensorListType->Sensor.array[iso2SensorListType->Sensor.arrayLen++]);
+ } else {
+ errn = EXI_ERROR_OUT_OF_BOUNDS;
+ }
+ grammarID = 1536;
+ break;
+ case 1:
+ done = 1;
+ grammarID = 4;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 1536:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}Sensor), END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ if (iso2SensorListType->Sensor.arrayLen < iso2SensorListType_Sensor_ARRAY_SIZE) {
+ errn = decode_iso2SensorType(stream, &iso2SensorListType->Sensor.array[iso2SensorListType->Sensor.arrayLen++]);
+ } else {
+ errn = EXI_ERROR_OUT_OF_BOUNDS;
+ }
+ grammarID = 1537;
+ break;
+ case 1:
+ done = 1;
+ grammarID = 4;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 1537:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}Sensor), END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ if (iso2SensorListType->Sensor.arrayLen < iso2SensorListType_Sensor_ARRAY_SIZE) {
+ errn = decode_iso2SensorType(stream, &iso2SensorListType->Sensor.array[iso2SensorListType->Sensor.arrayLen++]);
+ } else {
+ errn = EXI_ERROR_OUT_OF_BOUNDS;
+ }
+ grammarID = 1538;
+ break;
+ case 1:
+ done = 1;
+ grammarID = 4;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 1538:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}Sensor), END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ if (iso2SensorListType->Sensor.arrayLen < iso2SensorListType_Sensor_ARRAY_SIZE) {
+ errn = decode_iso2SensorType(stream, &iso2SensorListType->Sensor.array[iso2SensorListType->Sensor.arrayLen++]);
+ } else {
+ errn = EXI_ERROR_OUT_OF_BOUNDS;
+ }
+ grammarID = 1539;
+ break;
+ case 1:
+ done = 1;
+ grammarID = 4;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 1539:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}Sensor), END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ if (iso2SensorListType->Sensor.arrayLen < iso2SensorListType_Sensor_ARRAY_SIZE) {
+ errn = decode_iso2SensorType(stream, &iso2SensorListType->Sensor.array[iso2SensorListType->Sensor.arrayLen++]);
+ } else {
+ errn = EXI_ERROR_OUT_OF_BOUNDS;
+ }
+ grammarID = 1540;
+ break;
+ case 1:
+ done = 1;
+ grammarID = 4;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 1540:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}Sensor), END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ if (iso2SensorListType->Sensor.arrayLen < iso2SensorListType_Sensor_ARRAY_SIZE) {
+ errn = decode_iso2SensorType(stream, &iso2SensorListType->Sensor.array[iso2SensorListType->Sensor.arrayLen++]);
+ } else {
+ errn = EXI_ERROR_OUT_OF_BOUNDS;
+ }
+ grammarID = 1541;
+ break;
+ case 1:
+ done = 1;
+ grammarID = 4;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 1541:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}Sensor), END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ if (iso2SensorListType->Sensor.arrayLen < iso2SensorListType_Sensor_ARRAY_SIZE) {
+ errn = decode_iso2SensorType(stream, &iso2SensorListType->Sensor.array[iso2SensorListType->Sensor.arrayLen++]);
+ } else {
+ errn = EXI_ERROR_OUT_OF_BOUNDS;
+ }
+ grammarID = 1542;
+ break;
+ case 1:
+ done = 1;
+ grammarID = 4;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 1542:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}Sensor), END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ if (iso2SensorListType->Sensor.arrayLen < iso2SensorListType_Sensor_ARRAY_SIZE) {
+ errn = decode_iso2SensorType(stream, &iso2SensorListType->Sensor.array[iso2SensorListType->Sensor.arrayLen++]);
+ } else {
+ errn = EXI_ERROR_OUT_OF_BOUNDS;
+ }
+ grammarID = 1543;
+ break;
+ case 1:
+ done = 1;
+ grammarID = 4;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 1543:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}Sensor), END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ if (iso2SensorListType->Sensor.arrayLen < iso2SensorListType_Sensor_ARRAY_SIZE) {
+ errn = decode_iso2SensorType(stream, &iso2SensorListType->Sensor.array[iso2SensorListType->Sensor.arrayLen++]);
+ } else {
+ errn = EXI_ERROR_OUT_OF_BOUNDS;
+ }
+ grammarID = 1544;
+ break;
+ case 1:
+ done = 1;
+ grammarID = 4;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 1544:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}Sensor), END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ if (iso2SensorListType->Sensor.arrayLen < iso2SensorListType_Sensor_ARRAY_SIZE) {
+ errn = decode_iso2SensorType(stream, &iso2SensorListType->Sensor.array[iso2SensorListType->Sensor.arrayLen++]);
+ } else {
+ errn = EXI_ERROR_OUT_OF_BOUNDS;
+ }
+ grammarID = 1545;
+ break;
+ case 1:
+ done = 1;
+ grammarID = 4;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 1545:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}Sensor), END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ if (iso2SensorListType->Sensor.arrayLen < iso2SensorListType_Sensor_ARRAY_SIZE) {
+ errn = decode_iso2SensorType(stream, &iso2SensorListType->Sensor.array[iso2SensorListType->Sensor.arrayLen++]);
+ } else {
+ errn = EXI_ERROR_OUT_OF_BOUNDS;
+ }
+ grammarID = 1546;
+ break;
+ case 1:
+ done = 1;
+ grammarID = 4;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 1546:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}Sensor), END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ if (iso2SensorListType->Sensor.arrayLen < iso2SensorListType_Sensor_ARRAY_SIZE) {
+ errn = decode_iso2SensorType(stream, &iso2SensorListType->Sensor.array[iso2SensorListType->Sensor.arrayLen++]);
+ } else {
+ errn = EXI_ERROR_OUT_OF_BOUNDS;
+ }
+ grammarID = 1547;
+ break;
+ case 1:
+ done = 1;
+ grammarID = 4;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 1547:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}Sensor), END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ if (iso2SensorListType->Sensor.arrayLen < iso2SensorListType_Sensor_ARRAY_SIZE) {
+ errn = decode_iso2SensorType(stream, &iso2SensorListType->Sensor.array[iso2SensorListType->Sensor.arrayLen++]);
+ } else {
+ errn = EXI_ERROR_OUT_OF_BOUNDS;
+ }
+ grammarID = 1548;
+ break;
+ case 1:
+ done = 1;
+ grammarID = 4;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 1548:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}Sensor), END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ if (iso2SensorListType->Sensor.arrayLen < iso2SensorListType_Sensor_ARRAY_SIZE) {
+ errn = decode_iso2SensorType(stream, &iso2SensorListType->Sensor.array[iso2SensorListType->Sensor.arrayLen++]);
+ } else {
+ errn = EXI_ERROR_OUT_OF_BOUNDS;
+ }
+ grammarID = 1549;
+ break;
+ case 1:
+ done = 1;
+ grammarID = 4;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 1549:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}Sensor), END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ if (iso2SensorListType->Sensor.arrayLen < iso2SensorListType_Sensor_ARRAY_SIZE) {
+ errn = decode_iso2SensorType(stream, &iso2SensorListType->Sensor.array[iso2SensorListType->Sensor.arrayLen++]);
+ } else {
+ errn = EXI_ERROR_OUT_OF_BOUNDS;
+ }
+ grammarID = 1550;
+ break;
+ case 1:
+ done = 1;
+ grammarID = 4;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 1550:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}Sensor), END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ if (iso2SensorListType->Sensor.arrayLen < iso2SensorListType_Sensor_ARRAY_SIZE) {
+ errn = decode_iso2SensorType(stream, &iso2SensorListType->Sensor.array[iso2SensorListType->Sensor.arrayLen++]);
+ } else {
+ errn = EXI_ERROR_OUT_OF_BOUNDS;
+ }
+ grammarID = 1551;
+ break;
+ case 1:
+ done = 1;
+ grammarID = 4;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 1551:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}Sensor), END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ if (iso2SensorListType->Sensor.arrayLen < iso2SensorListType_Sensor_ARRAY_SIZE) {
+ errn = decode_iso2SensorType(stream, &iso2SensorListType->Sensor.array[iso2SensorListType->Sensor.arrayLen++]);
+ } else {
+ errn = EXI_ERROR_OUT_OF_BOUNDS;
+ }
+ grammarID = 1552;
+ break;
+ case 1:
+ done = 1;
+ grammarID = 4;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 1552:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}Sensor), END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ if (iso2SensorListType->Sensor.arrayLen < iso2SensorListType_Sensor_ARRAY_SIZE) {
+ errn = decode_iso2SensorType(stream, &iso2SensorListType->Sensor.array[iso2SensorListType->Sensor.arrayLen++]);
+ } else {
+ errn = EXI_ERROR_OUT_OF_BOUNDS;
+ }
+ grammarID = 1553;
+ break;
+ case 1:
+ done = 1;
+ grammarID = 4;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 1553:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}Sensor), END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ if (iso2SensorListType->Sensor.arrayLen < iso2SensorListType_Sensor_ARRAY_SIZE) {
+ errn = decode_iso2SensorType(stream, &iso2SensorListType->Sensor.array[iso2SensorListType->Sensor.arrayLen++]);
+ } else {
+ errn = EXI_ERROR_OUT_OF_BOUNDS;
+ }
+ grammarID = 1554;
+ break;
+ case 1:
+ done = 1;
+ grammarID = 4;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 1554:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}Sensor), END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ if (iso2SensorListType->Sensor.arrayLen < iso2SensorListType_Sensor_ARRAY_SIZE) {
+ errn = decode_iso2SensorType(stream, &iso2SensorListType->Sensor.array[iso2SensorListType->Sensor.arrayLen++]);
+ } else {
+ errn = EXI_ERROR_OUT_OF_BOUNDS;
+ }
+ grammarID = 1555;
+ break;
+ case 1:
+ done = 1;
+ grammarID = 4;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 1555:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}Sensor), END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ if (iso2SensorListType->Sensor.arrayLen < iso2SensorListType_Sensor_ARRAY_SIZE) {
+ errn = decode_iso2SensorType(stream, &iso2SensorListType->Sensor.array[iso2SensorListType->Sensor.arrayLen++]);
+ } else {
+ errn = EXI_ERROR_OUT_OF_BOUNDS;
+ }
+ grammarID = 1556;
+ break;
+ case 1:
+ done = 1;
+ grammarID = 4;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 1556:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}Sensor), END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ if (iso2SensorListType->Sensor.arrayLen < iso2SensorListType_Sensor_ARRAY_SIZE) {
+ errn = decode_iso2SensorType(stream, &iso2SensorListType->Sensor.array[iso2SensorListType->Sensor.arrayLen++]);
+ } else {
+ errn = EXI_ERROR_OUT_OF_BOUNDS;
+ }
+ grammarID = 1557;
+ break;
+ case 1:
+ done = 1;
+ grammarID = 4;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 1557:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}Sensor), END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ if (iso2SensorListType->Sensor.arrayLen < iso2SensorListType_Sensor_ARRAY_SIZE) {
+ errn = decode_iso2SensorType(stream, &iso2SensorListType->Sensor.array[iso2SensorListType->Sensor.arrayLen++]);
+ } else {
+ errn = EXI_ERROR_OUT_OF_BOUNDS;
+ }
+ grammarID = 1558;
+ break;
+ case 1:
+ done = 1;
+ grammarID = 4;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 1558:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}Sensor), END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ if (iso2SensorListType->Sensor.arrayLen < iso2SensorListType_Sensor_ARRAY_SIZE) {
+ errn = decode_iso2SensorType(stream, &iso2SensorListType->Sensor.array[iso2SensorListType->Sensor.arrayLen++]);
+ } else {
+ errn = EXI_ERROR_OUT_OF_BOUNDS;
+ }
+ grammarID = 1559;
+ break;
+ case 1:
+ done = 1;
+ grammarID = 4;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 1559:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}Sensor), END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ if (iso2SensorListType->Sensor.arrayLen < iso2SensorListType_Sensor_ARRAY_SIZE) {
+ errn = decode_iso2SensorType(stream, &iso2SensorListType->Sensor.array[iso2SensorListType->Sensor.arrayLen++]);
+ } else {
+ errn = EXI_ERROR_OUT_OF_BOUNDS;
+ }
+ grammarID = 1560;
+ break;
+ case 1:
+ done = 1;
+ grammarID = 4;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 1560:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}Sensor), END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ if (iso2SensorListType->Sensor.arrayLen < iso2SensorListType_Sensor_ARRAY_SIZE) {
+ errn = decode_iso2SensorType(stream, &iso2SensorListType->Sensor.array[iso2SensorListType->Sensor.arrayLen++]);
+ } else {
+ errn = EXI_ERROR_OUT_OF_BOUNDS;
+ }
+ grammarID = 1561;
+ break;
+ case 1:
+ done = 1;
+ grammarID = 4;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 1561:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}Sensor), END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ if (iso2SensorListType->Sensor.arrayLen < iso2SensorListType_Sensor_ARRAY_SIZE) {
+ errn = decode_iso2SensorType(stream, &iso2SensorListType->Sensor.array[iso2SensorListType->Sensor.arrayLen++]);
+ } else {
+ errn = EXI_ERROR_OUT_OF_BOUNDS;
+ }
+ grammarID = 1562;
+ break;
+ case 1:
+ done = 1;
+ grammarID = 4;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 1562:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}Sensor), END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ if (iso2SensorListType->Sensor.arrayLen < iso2SensorListType_Sensor_ARRAY_SIZE) {
+ errn = decode_iso2SensorType(stream, &iso2SensorListType->Sensor.array[iso2SensorListType->Sensor.arrayLen++]);
+ } else {
+ errn = EXI_ERROR_OUT_OF_BOUNDS;
+ }
+ grammarID = 1563;
+ break;
+ case 1:
+ done = 1;
+ grammarID = 4;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 1563:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}Sensor), END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ if (iso2SensorListType->Sensor.arrayLen < iso2SensorListType_Sensor_ARRAY_SIZE) {
+ errn = decode_iso2SensorType(stream, &iso2SensorListType->Sensor.array[iso2SensorListType->Sensor.arrayLen++]);
+ } else {
+ errn = EXI_ERROR_OUT_OF_BOUNDS;
+ }
+ grammarID = 1564;
+ break;
+ case 1:
+ done = 1;
+ grammarID = 4;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 1564:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}Sensor), END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ if (iso2SensorListType->Sensor.arrayLen < iso2SensorListType_Sensor_ARRAY_SIZE) {
+ errn = decode_iso2SensorType(stream, &iso2SensorListType->Sensor.array[iso2SensorListType->Sensor.arrayLen++]);
+ } else {
+ errn = EXI_ERROR_OUT_OF_BOUNDS;
+ }
+ grammarID = 1565;
+ break;
+ case 1:
+ done = 1;
+ grammarID = 4;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 1565:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}Sensor), END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ if (iso2SensorListType->Sensor.arrayLen < iso2SensorListType_Sensor_ARRAY_SIZE) {
+ errn = decode_iso2SensorType(stream, &iso2SensorListType->Sensor.array[iso2SensorListType->Sensor.arrayLen++]);
+ } else {
+ errn = EXI_ERROR_OUT_OF_BOUNDS;
+ }
+ grammarID = 1566;
+ break;
+ case 1:
+ done = 1;
+ grammarID = 4;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 1566:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}Sensor), END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ if (iso2SensorListType->Sensor.arrayLen < iso2SensorListType_Sensor_ARRAY_SIZE) {
+ errn = decode_iso2SensorType(stream, &iso2SensorListType->Sensor.array[iso2SensorListType->Sensor.arrayLen++]);
+ } else {
+ errn = EXI_ERROR_OUT_OF_BOUNDS;
+ }
+ grammarID = 1567;
+ break;
+ case 1:
+ done = 1;
+ grammarID = 4;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 1567:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}Sensor), END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ if (iso2SensorListType->Sensor.arrayLen < iso2SensorListType_Sensor_ARRAY_SIZE) {
+ errn = decode_iso2SensorType(stream, &iso2SensorListType->Sensor.array[iso2SensorListType->Sensor.arrayLen++]);
+ } else {
+ errn = EXI_ERROR_OUT_OF_BOUNDS;
+ }
+ grammarID = 1568;
+ break;
+ case 1:
+ done = 1;
+ grammarID = 4;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 1568:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}Sensor), END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ if (iso2SensorListType->Sensor.arrayLen < iso2SensorListType_Sensor_ARRAY_SIZE) {
+ errn = decode_iso2SensorType(stream, &iso2SensorListType->Sensor.array[iso2SensorListType->Sensor.arrayLen++]);
+ } else {
+ errn = EXI_ERROR_OUT_OF_BOUNDS;
+ }
+ grammarID = 1569;
+ break;
+ case 1:
+ done = 1;
+ grammarID = 4;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 1569:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}Sensor), END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ if (iso2SensorListType->Sensor.arrayLen < iso2SensorListType_Sensor_ARRAY_SIZE) {
+ errn = decode_iso2SensorType(stream, &iso2SensorListType->Sensor.array[iso2SensorListType->Sensor.arrayLen++]);
+ } else {
+ errn = EXI_ERROR_OUT_OF_BOUNDS;
+ }
+ grammarID = 1570;
+ break;
+ case 1:
+ done = 1;
+ grammarID = 4;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 1570:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}Sensor), END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ if (iso2SensorListType->Sensor.arrayLen < iso2SensorListType_Sensor_ARRAY_SIZE) {
+ errn = decode_iso2SensorType(stream, &iso2SensorListType->Sensor.array[iso2SensorListType->Sensor.arrayLen++]);
+ } else {
+ errn = EXI_ERROR_OUT_OF_BOUNDS;
+ }
+ grammarID = 1571;
+ break;
+ case 1:
+ done = 1;
+ grammarID = 4;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 1571:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}Sensor), END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ if (iso2SensorListType->Sensor.arrayLen < iso2SensorListType_Sensor_ARRAY_SIZE) {
+ errn = decode_iso2SensorType(stream, &iso2SensorListType->Sensor.array[iso2SensorListType->Sensor.arrayLen++]);
+ } else {
+ errn = EXI_ERROR_OUT_OF_BOUNDS;
+ }
+ grammarID = 1572;
+ break;
+ case 1:
+ done = 1;
+ grammarID = 4;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 1572:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}Sensor), END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ if (iso2SensorListType->Sensor.arrayLen < iso2SensorListType_Sensor_ARRAY_SIZE) {
+ errn = decode_iso2SensorType(stream, &iso2SensorListType->Sensor.array[iso2SensorListType->Sensor.arrayLen++]);
+ } else {
+ errn = EXI_ERROR_OUT_OF_BOUNDS;
+ }
+ grammarID = 1573;
+ break;
+ case 1:
+ done = 1;
+ grammarID = 4;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 1573:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}Sensor), END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ if (iso2SensorListType->Sensor.arrayLen < iso2SensorListType_Sensor_ARRAY_SIZE) {
+ errn = decode_iso2SensorType(stream, &iso2SensorListType->Sensor.array[iso2SensorListType->Sensor.arrayLen++]);
+ } else {
+ errn = EXI_ERROR_OUT_OF_BOUNDS;
+ }
+ grammarID = 1574;
+ break;
+ case 1:
+ done = 1;
+ grammarID = 4;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 1574:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}Sensor), END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ if (iso2SensorListType->Sensor.arrayLen < iso2SensorListType_Sensor_ARRAY_SIZE) {
+ errn = decode_iso2SensorType(stream, &iso2SensorListType->Sensor.array[iso2SensorListType->Sensor.arrayLen++]);
+ } else {
+ errn = EXI_ERROR_OUT_OF_BOUNDS;
+ }
+ grammarID = 1575;
+ break;
+ case 1:
+ done = 1;
+ grammarID = 4;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 1575:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}Sensor), END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ if (iso2SensorListType->Sensor.arrayLen < iso2SensorListType_Sensor_ARRAY_SIZE) {
+ errn = decode_iso2SensorType(stream, &iso2SensorListType->Sensor.array[iso2SensorListType->Sensor.arrayLen++]);
+ } else {
+ errn = EXI_ERROR_OUT_OF_BOUNDS;
+ }
+ grammarID = 1576;
+ break;
+ case 1:
+ done = 1;
+ grammarID = 4;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 1576:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}Sensor), END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ if (iso2SensorListType->Sensor.arrayLen < iso2SensorListType_Sensor_ARRAY_SIZE) {
+ errn = decode_iso2SensorType(stream, &iso2SensorListType->Sensor.array[iso2SensorListType->Sensor.arrayLen++]);
+ } else {
+ errn = EXI_ERROR_OUT_OF_BOUNDS;
+ }
+ grammarID = 1577;
+ break;
+ case 1:
+ done = 1;
+ grammarID = 4;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 1577:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}Sensor), END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ if (iso2SensorListType->Sensor.arrayLen < iso2SensorListType_Sensor_ARRAY_SIZE) {
+ errn = decode_iso2SensorType(stream, &iso2SensorListType->Sensor.array[iso2SensorListType->Sensor.arrayLen++]);
+ } else {
+ errn = EXI_ERROR_OUT_OF_BOUNDS;
+ }
+ grammarID = 1578;
+ break;
+ case 1:
+ done = 1;
+ grammarID = 4;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 1578:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}Sensor), END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ if (iso2SensorListType->Sensor.arrayLen < iso2SensorListType_Sensor_ARRAY_SIZE) {
+ errn = decode_iso2SensorType(stream, &iso2SensorListType->Sensor.array[iso2SensorListType->Sensor.arrayLen++]);
+ } else {
+ errn = EXI_ERROR_OUT_OF_BOUNDS;
+ }
+ grammarID = 1579;
+ break;
+ case 1:
+ done = 1;
+ grammarID = 4;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 1579:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}Sensor), END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ if (iso2SensorListType->Sensor.arrayLen < iso2SensorListType_Sensor_ARRAY_SIZE) {
+ errn = decode_iso2SensorType(stream, &iso2SensorListType->Sensor.array[iso2SensorListType->Sensor.arrayLen++]);
+ } else {
+ errn = EXI_ERROR_OUT_OF_BOUNDS;
+ }
+ grammarID = 1580;
+ break;
+ case 1:
+ done = 1;
+ grammarID = 4;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 1580:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}Sensor), END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ if (iso2SensorListType->Sensor.arrayLen < iso2SensorListType_Sensor_ARRAY_SIZE) {
+ errn = decode_iso2SensorType(stream, &iso2SensorListType->Sensor.array[iso2SensorListType->Sensor.arrayLen++]);
+ } else {
+ errn = EXI_ERROR_OUT_OF_BOUNDS;
+ }
+ grammarID = 1581;
+ break;
+ case 1:
+ done = 1;
+ grammarID = 4;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 1581:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}Sensor), END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ if (iso2SensorListType->Sensor.arrayLen < iso2SensorListType_Sensor_ARRAY_SIZE) {
+ errn = decode_iso2SensorType(stream, &iso2SensorListType->Sensor.array[iso2SensorListType->Sensor.arrayLen++]);
+ } else {
+ errn = EXI_ERROR_OUT_OF_BOUNDS;
+ }
+ grammarID = 1582;
+ break;
+ case 1:
+ done = 1;
+ grammarID = 4;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 1582:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}Sensor), END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ if (iso2SensorListType->Sensor.arrayLen < iso2SensorListType_Sensor_ARRAY_SIZE) {
+ errn = decode_iso2SensorType(stream, &iso2SensorListType->Sensor.array[iso2SensorListType->Sensor.arrayLen++]);
+ } else {
+ errn = EXI_ERROR_OUT_OF_BOUNDS;
+ }
+ grammarID = 1583;
+ break;
+ case 1:
+ done = 1;
+ grammarID = 4;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 1583:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}Sensor), END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ if (iso2SensorListType->Sensor.arrayLen < iso2SensorListType_Sensor_ARRAY_SIZE) {
+ errn = decode_iso2SensorType(stream, &iso2SensorListType->Sensor.array[iso2SensorListType->Sensor.arrayLen++]);
+ } else {
+ errn = EXI_ERROR_OUT_OF_BOUNDS;
+ }
+ grammarID = 1584;
+ break;
+ case 1:
+ done = 1;
+ grammarID = 4;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 1584:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}Sensor), END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ if (iso2SensorListType->Sensor.arrayLen < iso2SensorListType_Sensor_ARRAY_SIZE) {
+ errn = decode_iso2SensorType(stream, &iso2SensorListType->Sensor.array[iso2SensorListType->Sensor.arrayLen++]);
+ } else {
+ errn = EXI_ERROR_OUT_OF_BOUNDS;
+ }
+ grammarID = 1585;
+ break;
+ case 1:
+ done = 1;
+ grammarID = 4;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 1585:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}Sensor), END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ if (iso2SensorListType->Sensor.arrayLen < iso2SensorListType_Sensor_ARRAY_SIZE) {
+ errn = decode_iso2SensorType(stream, &iso2SensorListType->Sensor.array[iso2SensorListType->Sensor.arrayLen++]);
+ } else {
+ errn = EXI_ERROR_OUT_OF_BOUNDS;
+ }
+ grammarID = 1586;
+ break;
+ case 1:
+ done = 1;
+ grammarID = 4;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 1586:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}Sensor), END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ if (iso2SensorListType->Sensor.arrayLen < iso2SensorListType_Sensor_ARRAY_SIZE) {
+ errn = decode_iso2SensorType(stream, &iso2SensorListType->Sensor.array[iso2SensorListType->Sensor.arrayLen++]);
+ } else {
+ errn = EXI_ERROR_OUT_OF_BOUNDS;
+ }
+ grammarID = 1587;
+ break;
+ case 1:
+ done = 1;
+ grammarID = 4;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 1587:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}Sensor), END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ if (iso2SensorListType->Sensor.arrayLen < iso2SensorListType_Sensor_ARRAY_SIZE) {
+ errn = decode_iso2SensorType(stream, &iso2SensorListType->Sensor.array[iso2SensorListType->Sensor.arrayLen++]);
+ } else {
+ errn = EXI_ERROR_OUT_OF_BOUNDS;
+ }
+ grammarID = 1588;
+ break;
+ case 1:
+ done = 1;
+ grammarID = 4;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 1588:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}Sensor), END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ if (iso2SensorListType->Sensor.arrayLen < iso2SensorListType_Sensor_ARRAY_SIZE) {
+ errn = decode_iso2SensorType(stream, &iso2SensorListType->Sensor.array[iso2SensorListType->Sensor.arrayLen++]);
+ } else {
+ errn = EXI_ERROR_OUT_OF_BOUNDS;
+ }
+ grammarID = 1589;
+ break;
+ case 1:
+ done = 1;
+ grammarID = 4;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 1589:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}Sensor), END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ if (iso2SensorListType->Sensor.arrayLen < iso2SensorListType_Sensor_ARRAY_SIZE) {
+ errn = decode_iso2SensorType(stream, &iso2SensorListType->Sensor.array[iso2SensorListType->Sensor.arrayLen++]);
+ } else {
+ errn = EXI_ERROR_OUT_OF_BOUNDS;
+ }
+ grammarID = 1590;
+ break;
+ case 1:
+ done = 1;
+ grammarID = 4;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 1590:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}Sensor), END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ if (iso2SensorListType->Sensor.arrayLen < iso2SensorListType_Sensor_ARRAY_SIZE) {
+ errn = decode_iso2SensorType(stream, &iso2SensorListType->Sensor.array[iso2SensorListType->Sensor.arrayLen++]);
+ } else {
+ errn = EXI_ERROR_OUT_OF_BOUNDS;
+ }
+ grammarID = 1591;
+ break;
+ case 1:
+ done = 1;
+ grammarID = 4;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 1591:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}Sensor), END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ if (iso2SensorListType->Sensor.arrayLen < iso2SensorListType_Sensor_ARRAY_SIZE) {
+ errn = decode_iso2SensorType(stream, &iso2SensorListType->Sensor.array[iso2SensorListType->Sensor.arrayLen++]);
+ } else {
+ errn = EXI_ERROR_OUT_OF_BOUNDS;
+ }
+ grammarID = 1592;
+ break;
+ case 1:
+ done = 1;
+ grammarID = 4;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 1592:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}Sensor), END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ if (iso2SensorListType->Sensor.arrayLen < iso2SensorListType_Sensor_ARRAY_SIZE) {
+ errn = decode_iso2SensorType(stream, &iso2SensorListType->Sensor.array[iso2SensorListType->Sensor.arrayLen++]);
+ } else {
+ errn = EXI_ERROR_OUT_OF_BOUNDS;
+ }
+ grammarID = 1593;
+ break;
+ case 1:
+ done = 1;
+ grammarID = 4;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 1593:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}Sensor), END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ if (iso2SensorListType->Sensor.arrayLen < iso2SensorListType_Sensor_ARRAY_SIZE) {
+ errn = decode_iso2SensorType(stream, &iso2SensorListType->Sensor.array[iso2SensorListType->Sensor.arrayLen++]);
+ } else {
+ errn = EXI_ERROR_OUT_OF_BOUNDS;
+ }
+ grammarID = 1594;
+ break;
+ case 1:
+ done = 1;
+ grammarID = 4;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 1594:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}Sensor), END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ if (iso2SensorListType->Sensor.arrayLen < iso2SensorListType_Sensor_ARRAY_SIZE) {
+ errn = decode_iso2SensorType(stream, &iso2SensorListType->Sensor.array[iso2SensorListType->Sensor.arrayLen++]);
+ } else {
+ errn = EXI_ERROR_OUT_OF_BOUNDS;
+ }
+ grammarID = 1595;
+ break;
+ case 1:
+ done = 1;
+ grammarID = 4;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 1595:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}Sensor), END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ if (iso2SensorListType->Sensor.arrayLen < iso2SensorListType_Sensor_ARRAY_SIZE) {
+ errn = decode_iso2SensorType(stream, &iso2SensorListType->Sensor.array[iso2SensorListType->Sensor.arrayLen++]);
+ } else {
+ errn = EXI_ERROR_OUT_OF_BOUNDS;
+ }
+ grammarID = 1596;
+ break;
+ case 1:
+ done = 1;
+ grammarID = 4;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 1596:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}Sensor), END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ if (iso2SensorListType->Sensor.arrayLen < iso2SensorListType_Sensor_ARRAY_SIZE) {
+ errn = decode_iso2SensorType(stream, &iso2SensorListType->Sensor.array[iso2SensorListType->Sensor.arrayLen++]);
+ } else {
+ errn = EXI_ERROR_OUT_OF_BOUNDS;
+ }
+ grammarID = 1597;
+ break;
+ case 1:
+ done = 1;
+ grammarID = 4;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 1597:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}Sensor), END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ if (iso2SensorListType->Sensor.arrayLen < iso2SensorListType_Sensor_ARRAY_SIZE) {
+ errn = decode_iso2SensorType(stream, &iso2SensorListType->Sensor.array[iso2SensorListType->Sensor.arrayLen++]);
+ } else {
+ errn = EXI_ERROR_OUT_OF_BOUNDS;
+ }
+ grammarID = 1598;
+ break;
+ case 1:
+ done = 1;
+ grammarID = 4;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 1598:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}Sensor), END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ if (iso2SensorListType->Sensor.arrayLen < iso2SensorListType_Sensor_ARRAY_SIZE) {
+ errn = decode_iso2SensorType(stream, &iso2SensorListType->Sensor.array[iso2SensorListType->Sensor.arrayLen++]);
+ } else {
+ errn = EXI_ERROR_OUT_OF_BOUNDS;
+ }
+ grammarID = 1599;
+ break;
+ case 1:
+ done = 1;
+ grammarID = 4;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 1599:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}Sensor), END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ if (iso2SensorListType->Sensor.arrayLen < iso2SensorListType_Sensor_ARRAY_SIZE) {
+ errn = decode_iso2SensorType(stream, &iso2SensorListType->Sensor.array[iso2SensorListType->Sensor.arrayLen++]);
+ } else {
+ errn = EXI_ERROR_OUT_OF_BOUNDS;
+ }
+ grammarID = 1600;
+ break;
+ case 1:
+ done = 1;
+ grammarID = 4;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 1600:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}Sensor), END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ if (iso2SensorListType->Sensor.arrayLen < iso2SensorListType_Sensor_ARRAY_SIZE) {
+ errn = decode_iso2SensorType(stream, &iso2SensorListType->Sensor.array[iso2SensorListType->Sensor.arrayLen++]);
+ } else {
+ errn = EXI_ERROR_OUT_OF_BOUNDS;
+ }
+ grammarID = 1601;
+ break;
+ case 1:
+ done = 1;
+ grammarID = 4;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 1601:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}Sensor), END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ if (iso2SensorListType->Sensor.arrayLen < iso2SensorListType_Sensor_ARRAY_SIZE) {
+ errn = decode_iso2SensorType(stream, &iso2SensorListType->Sensor.array[iso2SensorListType->Sensor.arrayLen++]);
+ } else {
+ errn = EXI_ERROR_OUT_OF_BOUNDS;
+ }
+ grammarID = 1602;
+ break;
+ case 1:
+ done = 1;
+ grammarID = 4;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 1602:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}Sensor), END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ if (iso2SensorListType->Sensor.arrayLen < iso2SensorListType_Sensor_ARRAY_SIZE) {
+ errn = decode_iso2SensorType(stream, &iso2SensorListType->Sensor.array[iso2SensorListType->Sensor.arrayLen++]);
+ } else {
+ errn = EXI_ERROR_OUT_OF_BOUNDS;
+ }
+ grammarID = 1603;
+ break;
+ case 1:
+ done = 1;
+ grammarID = 4;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 1603:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}Sensor), END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ if (iso2SensorListType->Sensor.arrayLen < iso2SensorListType_Sensor_ARRAY_SIZE) {
+ errn = decode_iso2SensorType(stream, &iso2SensorListType->Sensor.array[iso2SensorListType->Sensor.arrayLen++]);
+ } else {
+ errn = EXI_ERROR_OUT_OF_BOUNDS;
+ }
+ grammarID = 1604;
+ break;
+ case 1:
+ done = 1;
+ grammarID = 4;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 1604:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}Sensor), END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ if (iso2SensorListType->Sensor.arrayLen < iso2SensorListType_Sensor_ARRAY_SIZE) {
+ errn = decode_iso2SensorType(stream, &iso2SensorListType->Sensor.array[iso2SensorListType->Sensor.arrayLen++]);
+ } else {
+ errn = EXI_ERROR_OUT_OF_BOUNDS;
+ }
+ grammarID = 1605;
+ break;
+ case 1:
+ done = 1;
+ grammarID = 4;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 1605:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}Sensor), END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ if (iso2SensorListType->Sensor.arrayLen < iso2SensorListType_Sensor_ARRAY_SIZE) {
+ errn = decode_iso2SensorType(stream, &iso2SensorListType->Sensor.array[iso2SensorListType->Sensor.arrayLen++]);
+ } else {
+ errn = EXI_ERROR_OUT_OF_BOUNDS;
+ }
+ grammarID = 1606;
+ break;
+ case 1:
+ done = 1;
+ grammarID = 4;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 1606:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}Sensor), END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ if (iso2SensorListType->Sensor.arrayLen < iso2SensorListType_Sensor_ARRAY_SIZE) {
+ errn = decode_iso2SensorType(stream, &iso2SensorListType->Sensor.array[iso2SensorListType->Sensor.arrayLen++]);
+ } else {
+ errn = EXI_ERROR_OUT_OF_BOUNDS;
+ }
+ grammarID = 1607;
+ break;
+ case 1:
+ done = 1;
+ grammarID = 4;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 1607:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}Sensor), END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ if (iso2SensorListType->Sensor.arrayLen < iso2SensorListType_Sensor_ARRAY_SIZE) {
+ errn = decode_iso2SensorType(stream, &iso2SensorListType->Sensor.array[iso2SensorListType->Sensor.arrayLen++]);
+ } else {
+ errn = EXI_ERROR_OUT_OF_BOUNDS;
+ }
+ grammarID = 1608;
+ break;
+ case 1:
+ done = 1;
+ grammarID = 4;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 1608:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}Sensor), END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ if (iso2SensorListType->Sensor.arrayLen < iso2SensorListType_Sensor_ARRAY_SIZE) {
+ errn = decode_iso2SensorType(stream, &iso2SensorListType->Sensor.array[iso2SensorListType->Sensor.arrayLen++]);
+ } else {
+ errn = EXI_ERROR_OUT_OF_BOUNDS;
+ }
+ grammarID = 1609;
+ break;
+ case 1:
+ done = 1;
+ grammarID = 4;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 1609:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}Sensor), END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ if (iso2SensorListType->Sensor.arrayLen < iso2SensorListType_Sensor_ARRAY_SIZE) {
+ errn = decode_iso2SensorType(stream, &iso2SensorListType->Sensor.array[iso2SensorListType->Sensor.arrayLen++]);
+ } else {
+ errn = EXI_ERROR_OUT_OF_BOUNDS;
+ }
+ grammarID = 1610;
+ break;
+ case 1:
+ done = 1;
+ grammarID = 4;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 1610:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}Sensor), END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ if (iso2SensorListType->Sensor.arrayLen < iso2SensorListType_Sensor_ARRAY_SIZE) {
+ errn = decode_iso2SensorType(stream, &iso2SensorListType->Sensor.array[iso2SensorListType->Sensor.arrayLen++]);
+ } else {
+ errn = EXI_ERROR_OUT_OF_BOUNDS;
+ }
+ grammarID = 1611;
+ break;
+ case 1:
+ done = 1;
+ grammarID = 4;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 1611:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}Sensor), END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ if (iso2SensorListType->Sensor.arrayLen < iso2SensorListType_Sensor_ARRAY_SIZE) {
+ errn = decode_iso2SensorType(stream, &iso2SensorListType->Sensor.array[iso2SensorListType->Sensor.arrayLen++]);
+ } else {
+ errn = EXI_ERROR_OUT_OF_BOUNDS;
+ }
+ grammarID = 1612;
+ break;
+ case 1:
+ done = 1;
+ grammarID = 4;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 1612:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}Sensor), END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ if (iso2SensorListType->Sensor.arrayLen < iso2SensorListType_Sensor_ARRAY_SIZE) {
+ errn = decode_iso2SensorType(stream, &iso2SensorListType->Sensor.array[iso2SensorListType->Sensor.arrayLen++]);
+ } else {
+ errn = EXI_ERROR_OUT_OF_BOUNDS;
+ }
+ grammarID = 1613;
+ break;
+ case 1:
+ done = 1;
+ grammarID = 4;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 1613:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}Sensor), END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ if (iso2SensorListType->Sensor.arrayLen < iso2SensorListType_Sensor_ARRAY_SIZE) {
+ errn = decode_iso2SensorType(stream, &iso2SensorListType->Sensor.array[iso2SensorListType->Sensor.arrayLen++]);
+ } else {
+ errn = EXI_ERROR_OUT_OF_BOUNDS;
+ }
+ grammarID = 1614;
+ break;
+ case 1:
+ done = 1;
+ grammarID = 4;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 1614:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}Sensor), END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ if (iso2SensorListType->Sensor.arrayLen < iso2SensorListType_Sensor_ARRAY_SIZE) {
+ errn = decode_iso2SensorType(stream, &iso2SensorListType->Sensor.array[iso2SensorListType->Sensor.arrayLen++]);
+ } else {
+ errn = EXI_ERROR_OUT_OF_BOUNDS;
+ }
+ grammarID = 1615;
+ break;
+ case 1:
+ done = 1;
+ grammarID = 4;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 1615:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}Sensor), END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ if (iso2SensorListType->Sensor.arrayLen < iso2SensorListType_Sensor_ARRAY_SIZE) {
+ errn = decode_iso2SensorType(stream, &iso2SensorListType->Sensor.array[iso2SensorListType->Sensor.arrayLen++]);
+ } else {
+ errn = EXI_ERROR_OUT_OF_BOUNDS;
+ }
+ grammarID = 1616;
+ break;
+ case 1:
+ done = 1;
+ grammarID = 4;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 1616:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}Sensor), END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ if (iso2SensorListType->Sensor.arrayLen < iso2SensorListType_Sensor_ARRAY_SIZE) {
+ errn = decode_iso2SensorType(stream, &iso2SensorListType->Sensor.array[iso2SensorListType->Sensor.arrayLen++]);
+ } else {
+ errn = EXI_ERROR_OUT_OF_BOUNDS;
+ }
+ grammarID = 1617;
+ break;
+ case 1:
+ done = 1;
+ grammarID = 4;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 1617:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}Sensor), END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ if (iso2SensorListType->Sensor.arrayLen < iso2SensorListType_Sensor_ARRAY_SIZE) {
+ errn = decode_iso2SensorType(stream, &iso2SensorListType->Sensor.array[iso2SensorListType->Sensor.arrayLen++]);
+ } else {
+ errn = EXI_ERROR_OUT_OF_BOUNDS;
+ }
+ grammarID = 1618;
+ break;
+ case 1:
+ done = 1;
+ grammarID = 4;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 1618:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}Sensor), END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ if (iso2SensorListType->Sensor.arrayLen < iso2SensorListType_Sensor_ARRAY_SIZE) {
+ errn = decode_iso2SensorType(stream, &iso2SensorListType->Sensor.array[iso2SensorListType->Sensor.arrayLen++]);
+ } else {
+ errn = EXI_ERROR_OUT_OF_BOUNDS;
+ }
+ grammarID = 1619;
+ break;
+ case 1:
+ done = 1;
+ grammarID = 4;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 1619:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}Sensor), END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ if (iso2SensorListType->Sensor.arrayLen < iso2SensorListType_Sensor_ARRAY_SIZE) {
+ errn = decode_iso2SensorType(stream, &iso2SensorListType->Sensor.array[iso2SensorListType->Sensor.arrayLen++]);
+ } else {
+ errn = EXI_ERROR_OUT_OF_BOUNDS;
+ }
+ grammarID = 1620;
+ break;
+ case 1:
+ done = 1;
+ grammarID = 4;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 1620:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}Sensor), END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ if (iso2SensorListType->Sensor.arrayLen < iso2SensorListType_Sensor_ARRAY_SIZE) {
+ errn = decode_iso2SensorType(stream, &iso2SensorListType->Sensor.array[iso2SensorListType->Sensor.arrayLen++]);
+ } else {
+ errn = EXI_ERROR_OUT_OF_BOUNDS;
+ }
+ grammarID = 1621;
+ break;
+ case 1:
+ done = 1;
+ grammarID = 4;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 1621:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}Sensor), END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ if (iso2SensorListType->Sensor.arrayLen < iso2SensorListType_Sensor_ARRAY_SIZE) {
+ errn = decode_iso2SensorType(stream, &iso2SensorListType->Sensor.array[iso2SensorListType->Sensor.arrayLen++]);
+ } else {
+ errn = EXI_ERROR_OUT_OF_BOUNDS;
+ }
+ grammarID = 1622;
+ break;
+ case 1:
+ done = 1;
+ grammarID = 4;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 1622:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}Sensor), END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ if (iso2SensorListType->Sensor.arrayLen < iso2SensorListType_Sensor_ARRAY_SIZE) {
+ errn = decode_iso2SensorType(stream, &iso2SensorListType->Sensor.array[iso2SensorListType->Sensor.arrayLen++]);
+ } else {
+ errn = EXI_ERROR_OUT_OF_BOUNDS;
+ }
+ grammarID = 1623;
+ break;
+ case 1:
+ done = 1;
+ grammarID = 4;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 1623:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}Sensor), END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ if (iso2SensorListType->Sensor.arrayLen < iso2SensorListType_Sensor_ARRAY_SIZE) {
+ errn = decode_iso2SensorType(stream, &iso2SensorListType->Sensor.array[iso2SensorListType->Sensor.arrayLen++]);
+ } else {
+ errn = EXI_ERROR_OUT_OF_BOUNDS;
+ }
+ grammarID = 1624;
+ break;
+ case 1:
+ done = 1;
+ grammarID = 4;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 1624:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}Sensor), END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ if (iso2SensorListType->Sensor.arrayLen < iso2SensorListType_Sensor_ARRAY_SIZE) {
+ errn = decode_iso2SensorType(stream, &iso2SensorListType->Sensor.array[iso2SensorListType->Sensor.arrayLen++]);
+ } else {
+ errn = EXI_ERROR_OUT_OF_BOUNDS;
+ }
+ grammarID = 1625;
+ break;
+ case 1:
+ done = 1;
+ grammarID = 4;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 1625:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}Sensor), END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ if (iso2SensorListType->Sensor.arrayLen < iso2SensorListType_Sensor_ARRAY_SIZE) {
+ errn = decode_iso2SensorType(stream, &iso2SensorListType->Sensor.array[iso2SensorListType->Sensor.arrayLen++]);
+ } else {
+ errn = EXI_ERROR_OUT_OF_BOUNDS;
+ }
+ grammarID = 1626;
+ break;
+ case 1:
+ done = 1;
+ grammarID = 4;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 1626:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}Sensor), END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ if (iso2SensorListType->Sensor.arrayLen < iso2SensorListType_Sensor_ARRAY_SIZE) {
+ errn = decode_iso2SensorType(stream, &iso2SensorListType->Sensor.array[iso2SensorListType->Sensor.arrayLen++]);
+ } else {
+ errn = EXI_ERROR_OUT_OF_BOUNDS;
+ }
+ grammarID = 1627;
+ break;
+ case 1:
+ done = 1;
+ grammarID = 4;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 1627:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}Sensor), END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ if (iso2SensorListType->Sensor.arrayLen < iso2SensorListType_Sensor_ARRAY_SIZE) {
+ errn = decode_iso2SensorType(stream, &iso2SensorListType->Sensor.array[iso2SensorListType->Sensor.arrayLen++]);
+ } else {
+ errn = EXI_ERROR_OUT_OF_BOUNDS;
+ }
+ grammarID = 1628;
+ break;
+ case 1:
+ done = 1;
+ grammarID = 4;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 1628:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}Sensor), END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ if (iso2SensorListType->Sensor.arrayLen < iso2SensorListType_Sensor_ARRAY_SIZE) {
+ errn = decode_iso2SensorType(stream, &iso2SensorListType->Sensor.array[iso2SensorListType->Sensor.arrayLen++]);
+ } else {
+ errn = EXI_ERROR_OUT_OF_BOUNDS;
+ }
+ grammarID = 1629;
+ break;
+ case 1:
+ done = 1;
+ grammarID = 4;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 1629:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}Sensor), END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ if (iso2SensorListType->Sensor.arrayLen < iso2SensorListType_Sensor_ARRAY_SIZE) {
+ errn = decode_iso2SensorType(stream, &iso2SensorListType->Sensor.array[iso2SensorListType->Sensor.arrayLen++]);
+ } else {
+ errn = EXI_ERROR_OUT_OF_BOUNDS;
+ }
+ grammarID = 1630;
+ break;
+ case 1:
+ done = 1;
+ grammarID = 4;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 1630:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}Sensor), END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ if (iso2SensorListType->Sensor.arrayLen < iso2SensorListType_Sensor_ARRAY_SIZE) {
+ errn = decode_iso2SensorType(stream, &iso2SensorListType->Sensor.array[iso2SensorListType->Sensor.arrayLen++]);
+ } else {
+ errn = EXI_ERROR_OUT_OF_BOUNDS;
+ }
+ grammarID = 1631;
+ break;
+ case 1:
+ done = 1;
+ grammarID = 4;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 1631:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}Sensor), END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ if (iso2SensorListType->Sensor.arrayLen < iso2SensorListType_Sensor_ARRAY_SIZE) {
+ errn = decode_iso2SensorType(stream, &iso2SensorListType->Sensor.array[iso2SensorListType->Sensor.arrayLen++]);
+ } else {
+ errn = EXI_ERROR_OUT_OF_BOUNDS;
+ }
+ grammarID = 1632;
+ break;
+ case 1:
+ done = 1;
+ grammarID = 4;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 1632:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}Sensor), END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ if (iso2SensorListType->Sensor.arrayLen < iso2SensorListType_Sensor_ARRAY_SIZE) {
+ errn = decode_iso2SensorType(stream, &iso2SensorListType->Sensor.array[iso2SensorListType->Sensor.arrayLen++]);
+ } else {
+ errn = EXI_ERROR_OUT_OF_BOUNDS;
+ }
+ grammarID = 1633;
+ break;
+ case 1:
+ done = 1;
+ grammarID = 4;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 1633:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}Sensor), END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ if (iso2SensorListType->Sensor.arrayLen < iso2SensorListType_Sensor_ARRAY_SIZE) {
+ errn = decode_iso2SensorType(stream, &iso2SensorListType->Sensor.array[iso2SensorListType->Sensor.arrayLen++]);
+ } else {
+ errn = EXI_ERROR_OUT_OF_BOUNDS;
+ }
+ grammarID = 1634;
+ break;
+ case 1:
+ done = 1;
+ grammarID = 4;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 1634:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}Sensor), END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ if (iso2SensorListType->Sensor.arrayLen < iso2SensorListType_Sensor_ARRAY_SIZE) {
+ errn = decode_iso2SensorType(stream, &iso2SensorListType->Sensor.array[iso2SensorListType->Sensor.arrayLen++]);
+ } else {
+ errn = EXI_ERROR_OUT_OF_BOUNDS;
+ }
+ grammarID = 1635;
+ break;
+ case 1:
+ done = 1;
+ grammarID = 4;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 1635:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}Sensor), END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ if (iso2SensorListType->Sensor.arrayLen < iso2SensorListType_Sensor_ARRAY_SIZE) {
+ errn = decode_iso2SensorType(stream, &iso2SensorListType->Sensor.array[iso2SensorListType->Sensor.arrayLen++]);
+ } else {
+ errn = EXI_ERROR_OUT_OF_BOUNDS;
+ }
+ grammarID = 1636;
+ break;
+ case 1:
+ done = 1;
+ grammarID = 4;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 1636:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}Sensor), END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ if (iso2SensorListType->Sensor.arrayLen < iso2SensorListType_Sensor_ARRAY_SIZE) {
+ errn = decode_iso2SensorType(stream, &iso2SensorListType->Sensor.array[iso2SensorListType->Sensor.arrayLen++]);
+ } else {
+ errn = EXI_ERROR_OUT_OF_BOUNDS;
+ }
+ grammarID = 1637;
+ break;
+ case 1:
+ done = 1;
+ grammarID = 4;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 1637:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}Sensor), END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ if (iso2SensorListType->Sensor.arrayLen < iso2SensorListType_Sensor_ARRAY_SIZE) {
+ errn = decode_iso2SensorType(stream, &iso2SensorListType->Sensor.array[iso2SensorListType->Sensor.arrayLen++]);
+ } else {
+ errn = EXI_ERROR_OUT_OF_BOUNDS;
+ }
+ grammarID = 1638;
+ break;
+ case 1:
+ done = 1;
+ grammarID = 4;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 1638:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}Sensor), END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ if (iso2SensorListType->Sensor.arrayLen < iso2SensorListType_Sensor_ARRAY_SIZE) {
+ errn = decode_iso2SensorType(stream, &iso2SensorListType->Sensor.array[iso2SensorListType->Sensor.arrayLen++]);
+ } else {
+ errn = EXI_ERROR_OUT_OF_BOUNDS;
+ }
+ grammarID = 1639;
+ break;
+ case 1:
+ done = 1;
+ grammarID = 4;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 1639:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}Sensor), END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ if (iso2SensorListType->Sensor.arrayLen < iso2SensorListType_Sensor_ARRAY_SIZE) {
+ errn = decode_iso2SensorType(stream, &iso2SensorListType->Sensor.array[iso2SensorListType->Sensor.arrayLen++]);
+ } else {
+ errn = EXI_ERROR_OUT_OF_BOUNDS;
+ }
+ grammarID = 1640;
+ break;
+ case 1:
+ done = 1;
+ grammarID = 4;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 1640:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}Sensor), END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ if (iso2SensorListType->Sensor.arrayLen < iso2SensorListType_Sensor_ARRAY_SIZE) {
+ errn = decode_iso2SensorType(stream, &iso2SensorListType->Sensor.array[iso2SensorListType->Sensor.arrayLen++]);
+ } else {
+ errn = EXI_ERROR_OUT_OF_BOUNDS;
+ }
+ grammarID = 1641;
+ break;
+ case 1:
+ done = 1;
+ grammarID = 4;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 1641:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}Sensor), END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ if (iso2SensorListType->Sensor.arrayLen < iso2SensorListType_Sensor_ARRAY_SIZE) {
+ errn = decode_iso2SensorType(stream, &iso2SensorListType->Sensor.array[iso2SensorListType->Sensor.arrayLen++]);
+ } else {
+ errn = EXI_ERROR_OUT_OF_BOUNDS;
+ }
+ grammarID = 1642;
+ break;
+ case 1:
+ done = 1;
+ grammarID = 4;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 1642:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}Sensor), END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ if (iso2SensorListType->Sensor.arrayLen < iso2SensorListType_Sensor_ARRAY_SIZE) {
+ errn = decode_iso2SensorType(stream, &iso2SensorListType->Sensor.array[iso2SensorListType->Sensor.arrayLen++]);
+ } else {
+ errn = EXI_ERROR_OUT_OF_BOUNDS;
+ }
+ grammarID = 1643;
+ break;
+ case 1:
+ done = 1;
+ grammarID = 4;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 1643:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}Sensor), END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ if (iso2SensorListType->Sensor.arrayLen < iso2SensorListType_Sensor_ARRAY_SIZE) {
+ errn = decode_iso2SensorType(stream, &iso2SensorListType->Sensor.array[iso2SensorListType->Sensor.arrayLen++]);
+ } else {
+ errn = EXI_ERROR_OUT_OF_BOUNDS;
+ }
+ grammarID = 1644;
+ break;
+ case 1:
+ done = 1;
+ grammarID = 4;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 1644:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}Sensor), END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ if (iso2SensorListType->Sensor.arrayLen < iso2SensorListType_Sensor_ARRAY_SIZE) {
+ errn = decode_iso2SensorType(stream, &iso2SensorListType->Sensor.array[iso2SensorListType->Sensor.arrayLen++]);
+ } else {
+ errn = EXI_ERROR_OUT_OF_BOUNDS;
+ }
+ grammarID = 1645;
+ break;
+ case 1:
+ done = 1;
+ grammarID = 4;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 1645:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}Sensor), END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ if (iso2SensorListType->Sensor.arrayLen < iso2SensorListType_Sensor_ARRAY_SIZE) {
+ errn = decode_iso2SensorType(stream, &iso2SensorListType->Sensor.array[iso2SensorListType->Sensor.arrayLen++]);
+ } else {
+ errn = EXI_ERROR_OUT_OF_BOUNDS;
+ }
+ grammarID = 1646;
+ break;
+ case 1:
+ done = 1;
+ grammarID = 4;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 1646:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}Sensor), END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ if (iso2SensorListType->Sensor.arrayLen < iso2SensorListType_Sensor_ARRAY_SIZE) {
+ errn = decode_iso2SensorType(stream, &iso2SensorListType->Sensor.array[iso2SensorListType->Sensor.arrayLen++]);
+ } else {
+ errn = EXI_ERROR_OUT_OF_BOUNDS;
+ }
+ grammarID = 1647;
+ break;
+ case 1:
+ done = 1;
+ grammarID = 4;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 1647:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}Sensor), END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ if (iso2SensorListType->Sensor.arrayLen < iso2SensorListType_Sensor_ARRAY_SIZE) {
+ errn = decode_iso2SensorType(stream, &iso2SensorListType->Sensor.array[iso2SensorListType->Sensor.arrayLen++]);
+ } else {
+ errn = EXI_ERROR_OUT_OF_BOUNDS;
+ }
+ grammarID = 1648;
+ break;
+ case 1:
+ done = 1;
+ grammarID = 4;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 1648:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}Sensor), END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ if (iso2SensorListType->Sensor.arrayLen < iso2SensorListType_Sensor_ARRAY_SIZE) {
+ errn = decode_iso2SensorType(stream, &iso2SensorListType->Sensor.array[iso2SensorListType->Sensor.arrayLen++]);
+ } else {
+ errn = EXI_ERROR_OUT_OF_BOUNDS;
+ }
+ grammarID = 1649;
+ break;
+ case 1:
+ done = 1;
+ grammarID = 4;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 1649:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}Sensor), END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ if (iso2SensorListType->Sensor.arrayLen < iso2SensorListType_Sensor_ARRAY_SIZE) {
+ errn = decode_iso2SensorType(stream, &iso2SensorListType->Sensor.array[iso2SensorListType->Sensor.arrayLen++]);
+ } else {
+ errn = EXI_ERROR_OUT_OF_BOUNDS;
+ }
+ grammarID = 1650;
+ break;
+ case 1:
+ done = 1;
+ grammarID = 4;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 1650:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}Sensor), END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ if (iso2SensorListType->Sensor.arrayLen < iso2SensorListType_Sensor_ARRAY_SIZE) {
+ errn = decode_iso2SensorType(stream, &iso2SensorListType->Sensor.array[iso2SensorListType->Sensor.arrayLen++]);
+ } else {
+ errn = EXI_ERROR_OUT_OF_BOUNDS;
+ }
+ grammarID = 1651;
+ break;
+ case 1:
+ done = 1;
+ grammarID = 4;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 1651:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}Sensor), END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ if (iso2SensorListType->Sensor.arrayLen < iso2SensorListType_Sensor_ARRAY_SIZE) {
+ errn = decode_iso2SensorType(stream, &iso2SensorListType->Sensor.array[iso2SensorListType->Sensor.arrayLen++]);
+ } else {
+ errn = EXI_ERROR_OUT_OF_BOUNDS;
+ }
+ grammarID = 1652;
+ break;
+ case 1:
+ done = 1;
+ grammarID = 4;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 1652:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}Sensor), END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ if (iso2SensorListType->Sensor.arrayLen < iso2SensorListType_Sensor_ARRAY_SIZE) {
+ errn = decode_iso2SensorType(stream, &iso2SensorListType->Sensor.array[iso2SensorListType->Sensor.arrayLen++]);
+ } else {
+ errn = EXI_ERROR_OUT_OF_BOUNDS;
+ }
+ grammarID = 1653;
+ break;
+ case 1:
+ done = 1;
+ grammarID = 4;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 1653:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}Sensor), END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ if (iso2SensorListType->Sensor.arrayLen < iso2SensorListType_Sensor_ARRAY_SIZE) {
+ errn = decode_iso2SensorType(stream, &iso2SensorListType->Sensor.array[iso2SensorListType->Sensor.arrayLen++]);
+ } else {
+ errn = EXI_ERROR_OUT_OF_BOUNDS;
+ }
+ grammarID = 1654;
+ break;
+ case 1:
+ done = 1;
+ grammarID = 4;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 1654:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}Sensor), END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ if (iso2SensorListType->Sensor.arrayLen < iso2SensorListType_Sensor_ARRAY_SIZE) {
+ errn = decode_iso2SensorType(stream, &iso2SensorListType->Sensor.array[iso2SensorListType->Sensor.arrayLen++]);
+ } else {
+ errn = EXI_ERROR_OUT_OF_BOUNDS;
+ }
+ grammarID = 1655;
+ break;
+ case 1:
+ done = 1;
+ grammarID = 4;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 1655:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}Sensor), END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ if (iso2SensorListType->Sensor.arrayLen < iso2SensorListType_Sensor_ARRAY_SIZE) {
+ errn = decode_iso2SensorType(stream, &iso2SensorListType->Sensor.array[iso2SensorListType->Sensor.arrayLen++]);
+ } else {
+ errn = EXI_ERROR_OUT_OF_BOUNDS;
+ }
+ grammarID = 1656;
+ break;
+ case 1:
+ done = 1;
+ grammarID = 4;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 1656:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}Sensor), END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ if (iso2SensorListType->Sensor.arrayLen < iso2SensorListType_Sensor_ARRAY_SIZE) {
+ errn = decode_iso2SensorType(stream, &iso2SensorListType->Sensor.array[iso2SensorListType->Sensor.arrayLen++]);
+ } else {
+ errn = EXI_ERROR_OUT_OF_BOUNDS;
+ }
+ grammarID = 1657;
+ break;
+ case 1:
+ done = 1;
+ grammarID = 4;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 1657:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}Sensor), END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ if (iso2SensorListType->Sensor.arrayLen < iso2SensorListType_Sensor_ARRAY_SIZE) {
+ errn = decode_iso2SensorType(stream, &iso2SensorListType->Sensor.array[iso2SensorListType->Sensor.arrayLen++]);
+ } else {
+ errn = EXI_ERROR_OUT_OF_BOUNDS;
+ }
+ grammarID = 1658;
+ break;
+ case 1:
+ done = 1;
+ grammarID = 4;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 1658:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}Sensor), END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ if (iso2SensorListType->Sensor.arrayLen < iso2SensorListType_Sensor_ARRAY_SIZE) {
+ errn = decode_iso2SensorType(stream, &iso2SensorListType->Sensor.array[iso2SensorListType->Sensor.arrayLen++]);
+ } else {
+ errn = EXI_ERROR_OUT_OF_BOUNDS;
+ }
+ grammarID = 1659;
+ break;
+ case 1:
+ done = 1;
+ grammarID = 4;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 1659:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}Sensor), END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ if (iso2SensorListType->Sensor.arrayLen < iso2SensorListType_Sensor_ARRAY_SIZE) {
+ errn = decode_iso2SensorType(stream, &iso2SensorListType->Sensor.array[iso2SensorListType->Sensor.arrayLen++]);
+ } else {
+ errn = EXI_ERROR_OUT_OF_BOUNDS;
+ }
+ grammarID = 1660;
+ break;
+ case 1:
+ done = 1;
+ grammarID = 4;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 1660:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}Sensor), END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ if (iso2SensorListType->Sensor.arrayLen < iso2SensorListType_Sensor_ARRAY_SIZE) {
+ errn = decode_iso2SensorType(stream, &iso2SensorListType->Sensor.array[iso2SensorListType->Sensor.arrayLen++]);
+ } else {
+ errn = EXI_ERROR_OUT_OF_BOUNDS;
+ }
+ grammarID = 1661;
+ break;
+ case 1:
+ done = 1;
+ grammarID = 4;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 1661:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}Sensor), END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ if (iso2SensorListType->Sensor.arrayLen < iso2SensorListType_Sensor_ARRAY_SIZE) {
+ errn = decode_iso2SensorType(stream, &iso2SensorListType->Sensor.array[iso2SensorListType->Sensor.arrayLen++]);
+ } else {
+ errn = EXI_ERROR_OUT_OF_BOUNDS;
+ }
+ grammarID = 1662;
+ break;
+ case 1:
+ done = 1;
+ grammarID = 4;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 1662:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}Sensor), END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ if (iso2SensorListType->Sensor.arrayLen < iso2SensorListType_Sensor_ARRAY_SIZE) {
+ errn = decode_iso2SensorType(stream, &iso2SensorListType->Sensor.array[iso2SensorListType->Sensor.arrayLen++]);
+ } else {
+ errn = EXI_ERROR_OUT_OF_BOUNDS;
+ }
+ grammarID = 1663;
+ break;
+ case 1:
+ done = 1;
+ grammarID = 4;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 1663:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}Sensor), END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ if (iso2SensorListType->Sensor.arrayLen < iso2SensorListType_Sensor_ARRAY_SIZE) {
+ errn = decode_iso2SensorType(stream, &iso2SensorListType->Sensor.array[iso2SensorListType->Sensor.arrayLen++]);
+ } else {
+ errn = EXI_ERROR_OUT_OF_BOUNDS;
+ }
+ grammarID = 1664;
+ break;
+ case 1:
+ done = 1;
+ grammarID = 4;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 1664:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}Sensor), END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ if (iso2SensorListType->Sensor.arrayLen < iso2SensorListType_Sensor_ARRAY_SIZE) {
+ errn = decode_iso2SensorType(stream, &iso2SensorListType->Sensor.array[iso2SensorListType->Sensor.arrayLen++]);
+ } else {
+ errn = EXI_ERROR_OUT_OF_BOUNDS;
+ }
+ grammarID = 1665;
+ break;
+ case 1:
+ done = 1;
+ grammarID = 4;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 1665:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}Sensor), END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ if (iso2SensorListType->Sensor.arrayLen < iso2SensorListType_Sensor_ARRAY_SIZE) {
+ errn = decode_iso2SensorType(stream, &iso2SensorListType->Sensor.array[iso2SensorListType->Sensor.arrayLen++]);
+ } else {
+ errn = EXI_ERROR_OUT_OF_BOUNDS;
+ }
+ grammarID = 1666;
+ break;
+ case 1:
+ done = 1;
+ grammarID = 4;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 1666:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}Sensor), END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ if (iso2SensorListType->Sensor.arrayLen < iso2SensorListType_Sensor_ARRAY_SIZE) {
+ errn = decode_iso2SensorType(stream, &iso2SensorListType->Sensor.array[iso2SensorListType->Sensor.arrayLen++]);
+ } else {
+ errn = EXI_ERROR_OUT_OF_BOUNDS;
+ }
+ grammarID = 1667;
+ break;
+ case 1:
+ done = 1;
+ grammarID = 4;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 1667:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}Sensor), END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ if (iso2SensorListType->Sensor.arrayLen < iso2SensorListType_Sensor_ARRAY_SIZE) {
+ errn = decode_iso2SensorType(stream, &iso2SensorListType->Sensor.array[iso2SensorListType->Sensor.arrayLen++]);
+ } else {
+ errn = EXI_ERROR_OUT_OF_BOUNDS;
+ }
+ grammarID = 1668;
+ break;
+ case 1:
+ done = 1;
+ grammarID = 4;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 1668:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}Sensor), END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ if (iso2SensorListType->Sensor.arrayLen < iso2SensorListType_Sensor_ARRAY_SIZE) {
+ errn = decode_iso2SensorType(stream, &iso2SensorListType->Sensor.array[iso2SensorListType->Sensor.arrayLen++]);
+ } else {
+ errn = EXI_ERROR_OUT_OF_BOUNDS;
+ }
+ grammarID = 1669;
+ break;
+ case 1:
+ done = 1;
+ grammarID = 4;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 1669:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}Sensor), END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ if (iso2SensorListType->Sensor.arrayLen < iso2SensorListType_Sensor_ARRAY_SIZE) {
+ errn = decode_iso2SensorType(stream, &iso2SensorListType->Sensor.array[iso2SensorListType->Sensor.arrayLen++]);
+ } else {
+ errn = EXI_ERROR_OUT_OF_BOUNDS;
+ }
+ grammarID = 1670;
+ break;
+ case 1:
+ done = 1;
+ grammarID = 4;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 1670:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}Sensor), END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ if (iso2SensorListType->Sensor.arrayLen < iso2SensorListType_Sensor_ARRAY_SIZE) {
+ errn = decode_iso2SensorType(stream, &iso2SensorListType->Sensor.array[iso2SensorListType->Sensor.arrayLen++]);
+ } else {
+ errn = EXI_ERROR_OUT_OF_BOUNDS;
+ }
+ grammarID = 1671;
+ break;
+ case 1:
+ done = 1;
+ grammarID = 4;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 1671:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}Sensor), END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ if (iso2SensorListType->Sensor.arrayLen < iso2SensorListType_Sensor_ARRAY_SIZE) {
+ errn = decode_iso2SensorType(stream, &iso2SensorListType->Sensor.array[iso2SensorListType->Sensor.arrayLen++]);
+ } else {
+ errn = EXI_ERROR_OUT_OF_BOUNDS;
+ }
+ grammarID = 1672;
+ break;
+ case 1:
+ done = 1;
+ grammarID = 4;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 1672:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}Sensor), END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ if (iso2SensorListType->Sensor.arrayLen < iso2SensorListType_Sensor_ARRAY_SIZE) {
+ errn = decode_iso2SensorType(stream, &iso2SensorListType->Sensor.array[iso2SensorListType->Sensor.arrayLen++]);
+ } else {
+ errn = EXI_ERROR_OUT_OF_BOUNDS;
+ }
+ grammarID = 1673;
+ break;
+ case 1:
+ done = 1;
+ grammarID = 4;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 1673:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}Sensor), END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ if (iso2SensorListType->Sensor.arrayLen < iso2SensorListType_Sensor_ARRAY_SIZE) {
+ errn = decode_iso2SensorType(stream, &iso2SensorListType->Sensor.array[iso2SensorListType->Sensor.arrayLen++]);
+ } else {
+ errn = EXI_ERROR_OUT_OF_BOUNDS;
+ }
+ grammarID = 1674;
+ break;
+ case 1:
+ done = 1;
+ grammarID = 4;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 1674:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}Sensor), END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ if (iso2SensorListType->Sensor.arrayLen < iso2SensorListType_Sensor_ARRAY_SIZE) {
+ errn = decode_iso2SensorType(stream, &iso2SensorListType->Sensor.array[iso2SensorListType->Sensor.arrayLen++]);
+ } else {
+ errn = EXI_ERROR_OUT_OF_BOUNDS;
+ }
+ grammarID = 1675;
+ break;
+ case 1:
+ done = 1;
+ grammarID = 4;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 1675:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}Sensor), END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ if (iso2SensorListType->Sensor.arrayLen < iso2SensorListType_Sensor_ARRAY_SIZE) {
+ errn = decode_iso2SensorType(stream, &iso2SensorListType->Sensor.array[iso2SensorListType->Sensor.arrayLen++]);
+ } else {
+ errn = EXI_ERROR_OUT_OF_BOUNDS;
+ }
+ grammarID = 1676;
+ break;
+ case 1:
+ done = 1;
+ grammarID = 4;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 1676:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}Sensor), END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ if (iso2SensorListType->Sensor.arrayLen < iso2SensorListType_Sensor_ARRAY_SIZE) {
+ errn = decode_iso2SensorType(stream, &iso2SensorListType->Sensor.array[iso2SensorListType->Sensor.arrayLen++]);
+ } else {
+ errn = EXI_ERROR_OUT_OF_BOUNDS;
+ }
+ grammarID = 1677;
+ break;
+ case 1:
+ done = 1;
+ grammarID = 4;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 1677:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}Sensor), END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ if (iso2SensorListType->Sensor.arrayLen < iso2SensorListType_Sensor_ARRAY_SIZE) {
+ errn = decode_iso2SensorType(stream, &iso2SensorListType->Sensor.array[iso2SensorListType->Sensor.arrayLen++]);
+ } else {
+ errn = EXI_ERROR_OUT_OF_BOUNDS;
+ }
+ grammarID = 1678;
+ break;
+ case 1:
+ done = 1;
+ grammarID = 4;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 1678:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}Sensor), END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ if (iso2SensorListType->Sensor.arrayLen < iso2SensorListType_Sensor_ARRAY_SIZE) {
+ errn = decode_iso2SensorType(stream, &iso2SensorListType->Sensor.array[iso2SensorListType->Sensor.arrayLen++]);
+ } else {
+ errn = EXI_ERROR_OUT_OF_BOUNDS;
+ }
+ grammarID = 1679;
+ break;
+ case 1:
+ done = 1;
+ grammarID = 4;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 1679:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}Sensor), END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ if (iso2SensorListType->Sensor.arrayLen < iso2SensorListType_Sensor_ARRAY_SIZE) {
+ errn = decode_iso2SensorType(stream, &iso2SensorListType->Sensor.array[iso2SensorListType->Sensor.arrayLen++]);
+ } else {
+ errn = EXI_ERROR_OUT_OF_BOUNDS;
+ }
+ grammarID = 1680;
+ break;
+ case 1:
+ done = 1;
+ grammarID = 4;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 1680:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}Sensor), END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ if (iso2SensorListType->Sensor.arrayLen < iso2SensorListType_Sensor_ARRAY_SIZE) {
+ errn = decode_iso2SensorType(stream, &iso2SensorListType->Sensor.array[iso2SensorListType->Sensor.arrayLen++]);
+ } else {
+ errn = EXI_ERROR_OUT_OF_BOUNDS;
+ }
+ grammarID = 1681;
+ break;
+ case 1:
+ done = 1;
+ grammarID = 4;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 1681:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}Sensor), END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ if (iso2SensorListType->Sensor.arrayLen < iso2SensorListType_Sensor_ARRAY_SIZE) {
+ errn = decode_iso2SensorType(stream, &iso2SensorListType->Sensor.array[iso2SensorListType->Sensor.arrayLen++]);
+ } else {
+ errn = EXI_ERROR_OUT_OF_BOUNDS;
+ }
+ grammarID = 1682;
+ break;
+ case 1:
+ done = 1;
+ grammarID = 4;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 1682:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}Sensor), END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ if (iso2SensorListType->Sensor.arrayLen < iso2SensorListType_Sensor_ARRAY_SIZE) {
+ errn = decode_iso2SensorType(stream, &iso2SensorListType->Sensor.array[iso2SensorListType->Sensor.arrayLen++]);
+ } else {
+ errn = EXI_ERROR_OUT_OF_BOUNDS;
+ }
+ grammarID = 1683;
+ break;
+ case 1:
+ done = 1;
+ grammarID = 4;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 1683:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}Sensor), END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ if (iso2SensorListType->Sensor.arrayLen < iso2SensorListType_Sensor_ARRAY_SIZE) {
+ errn = decode_iso2SensorType(stream, &iso2SensorListType->Sensor.array[iso2SensorListType->Sensor.arrayLen++]);
+ } else {
+ errn = EXI_ERROR_OUT_OF_BOUNDS;
+ }
+ grammarID = 1684;
+ break;
+ case 1:
+ done = 1;
+ grammarID = 4;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 1684:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}Sensor), END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ if (iso2SensorListType->Sensor.arrayLen < iso2SensorListType_Sensor_ARRAY_SIZE) {
+ errn = decode_iso2SensorType(stream, &iso2SensorListType->Sensor.array[iso2SensorListType->Sensor.arrayLen++]);
+ } else {
+ errn = EXI_ERROR_OUT_OF_BOUNDS;
+ }
+ grammarID = 1685;
+ break;
+ case 1:
+ done = 1;
+ grammarID = 4;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 1685:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}Sensor), END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ if (iso2SensorListType->Sensor.arrayLen < iso2SensorListType_Sensor_ARRAY_SIZE) {
+ errn = decode_iso2SensorType(stream, &iso2SensorListType->Sensor.array[iso2SensorListType->Sensor.arrayLen++]);
+ } else {
+ errn = EXI_ERROR_OUT_OF_BOUNDS;
+ }
+ grammarID = 1686;
+ break;
+ case 1:
+ done = 1;
+ grammarID = 4;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 1686:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}Sensor), END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ if (iso2SensorListType->Sensor.arrayLen < iso2SensorListType_Sensor_ARRAY_SIZE) {
+ errn = decode_iso2SensorType(stream, &iso2SensorListType->Sensor.array[iso2SensorListType->Sensor.arrayLen++]);
+ } else {
+ errn = EXI_ERROR_OUT_OF_BOUNDS;
+ }
+ grammarID = 1687;
+ break;
+ case 1:
+ done = 1;
+ grammarID = 4;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 1687:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}Sensor), END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ if (iso2SensorListType->Sensor.arrayLen < iso2SensorListType_Sensor_ARRAY_SIZE) {
+ errn = decode_iso2SensorType(stream, &iso2SensorListType->Sensor.array[iso2SensorListType->Sensor.arrayLen++]);
+ } else {
+ errn = EXI_ERROR_OUT_OF_BOUNDS;
+ }
+ grammarID = 1688;
+ break;
+ case 1:
+ done = 1;
+ grammarID = 4;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 1688:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}Sensor), END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ if (iso2SensorListType->Sensor.arrayLen < iso2SensorListType_Sensor_ARRAY_SIZE) {
+ errn = decode_iso2SensorType(stream, &iso2SensorListType->Sensor.array[iso2SensorListType->Sensor.arrayLen++]);
+ } else {
+ errn = EXI_ERROR_OUT_OF_BOUNDS;
+ }
+ grammarID = 1689;
+ break;
+ case 1:
+ done = 1;
+ grammarID = 4;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 1689:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}Sensor), END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ if (iso2SensorListType->Sensor.arrayLen < iso2SensorListType_Sensor_ARRAY_SIZE) {
+ errn = decode_iso2SensorType(stream, &iso2SensorListType->Sensor.array[iso2SensorListType->Sensor.arrayLen++]);
+ } else {
+ errn = EXI_ERROR_OUT_OF_BOUNDS;
+ }
+ grammarID = 1690;
+ break;
+ case 1:
+ done = 1;
+ grammarID = 4;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 1690:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}Sensor), END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ if (iso2SensorListType->Sensor.arrayLen < iso2SensorListType_Sensor_ARRAY_SIZE) {
+ errn = decode_iso2SensorType(stream, &iso2SensorListType->Sensor.array[iso2SensorListType->Sensor.arrayLen++]);
+ } else {
+ errn = EXI_ERROR_OUT_OF_BOUNDS;
+ }
+ grammarID = 1691;
+ break;
+ case 1:
+ done = 1;
+ grammarID = 4;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 1691:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}Sensor), END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ if (iso2SensorListType->Sensor.arrayLen < iso2SensorListType_Sensor_ARRAY_SIZE) {
+ errn = decode_iso2SensorType(stream, &iso2SensorListType->Sensor.array[iso2SensorListType->Sensor.arrayLen++]);
+ } else {
+ errn = EXI_ERROR_OUT_OF_BOUNDS;
+ }
+ grammarID = 1692;
+ break;
+ case 1:
+ done = 1;
+ grammarID = 4;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 1692:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}Sensor), END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ if (iso2SensorListType->Sensor.arrayLen < iso2SensorListType_Sensor_ARRAY_SIZE) {
+ errn = decode_iso2SensorType(stream, &iso2SensorListType->Sensor.array[iso2SensorListType->Sensor.arrayLen++]);
+ } else {
+ errn = EXI_ERROR_OUT_OF_BOUNDS;
+ }
+ grammarID = 1693;
+ break;
+ case 1:
+ done = 1;
+ grammarID = 4;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 1693:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}Sensor), END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ if (iso2SensorListType->Sensor.arrayLen < iso2SensorListType_Sensor_ARRAY_SIZE) {
+ errn = decode_iso2SensorType(stream, &iso2SensorListType->Sensor.array[iso2SensorListType->Sensor.arrayLen++]);
+ } else {
+ errn = EXI_ERROR_OUT_OF_BOUNDS;
+ }
+ grammarID = 1694;
+ break;
+ case 1:
+ done = 1;
+ grammarID = 4;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 1694:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}Sensor), END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ if (iso2SensorListType->Sensor.arrayLen < iso2SensorListType_Sensor_ARRAY_SIZE) {
+ errn = decode_iso2SensorType(stream, &iso2SensorListType->Sensor.array[iso2SensorListType->Sensor.arrayLen++]);
+ } else {
+ errn = EXI_ERROR_OUT_OF_BOUNDS;
+ }
+ grammarID = 1695;
+ break;
+ case 1:
+ done = 1;
+ grammarID = 4;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 1695:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}Sensor), END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ if (iso2SensorListType->Sensor.arrayLen < iso2SensorListType_Sensor_ARRAY_SIZE) {
+ errn = decode_iso2SensorType(stream, &iso2SensorListType->Sensor.array[iso2SensorListType->Sensor.arrayLen++]);
+ } else {
+ errn = EXI_ERROR_OUT_OF_BOUNDS;
+ }
+ grammarID = 1696;
+ break;
+ case 1:
+ done = 1;
+ grammarID = 4;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 1696:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}Sensor), END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ if (iso2SensorListType->Sensor.arrayLen < iso2SensorListType_Sensor_ARRAY_SIZE) {
+ errn = decode_iso2SensorType(stream, &iso2SensorListType->Sensor.array[iso2SensorListType->Sensor.arrayLen++]);
+ } else {
+ errn = EXI_ERROR_OUT_OF_BOUNDS;
+ }
+ grammarID = 1697;
+ break;
+ case 1:
+ done = 1;
+ grammarID = 4;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 1697:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}Sensor), END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ if (iso2SensorListType->Sensor.arrayLen < iso2SensorListType_Sensor_ARRAY_SIZE) {
+ errn = decode_iso2SensorType(stream, &iso2SensorListType->Sensor.array[iso2SensorListType->Sensor.arrayLen++]);
+ } else {
+ errn = EXI_ERROR_OUT_OF_BOUNDS;
+ }
+ grammarID = 1698;
+ break;
+ case 1:
+ done = 1;
+ grammarID = 4;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 1698:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}Sensor), END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ if (iso2SensorListType->Sensor.arrayLen < iso2SensorListType_Sensor_ARRAY_SIZE) {
+ errn = decode_iso2SensorType(stream, &iso2SensorListType->Sensor.array[iso2SensorListType->Sensor.arrayLen++]);
+ } else {
+ errn = EXI_ERROR_OUT_OF_BOUNDS;
+ }
+ grammarID = 1699;
+ break;
+ case 1:
+ done = 1;
+ grammarID = 4;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 1699:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}Sensor), END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ if (iso2SensorListType->Sensor.arrayLen < iso2SensorListType_Sensor_ARRAY_SIZE) {
+ errn = decode_iso2SensorType(stream, &iso2SensorListType->Sensor.array[iso2SensorListType->Sensor.arrayLen++]);
+ } else {
+ errn = EXI_ERROR_OUT_OF_BOUNDS;
+ }
+ grammarID = 1700;
+ break;
+ case 1:
+ done = 1;
+ grammarID = 4;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 1700:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}Sensor), END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ if (iso2SensorListType->Sensor.arrayLen < iso2SensorListType_Sensor_ARRAY_SIZE) {
+ errn = decode_iso2SensorType(stream, &iso2SensorListType->Sensor.array[iso2SensorListType->Sensor.arrayLen++]);
+ } else {
+ errn = EXI_ERROR_OUT_OF_BOUNDS;
+ }
+ grammarID = 1701;
+ break;
+ case 1:
+ done = 1;
+ grammarID = 4;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 1701:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}Sensor), END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ if (iso2SensorListType->Sensor.arrayLen < iso2SensorListType_Sensor_ARRAY_SIZE) {
+ errn = decode_iso2SensorType(stream, &iso2SensorListType->Sensor.array[iso2SensorListType->Sensor.arrayLen++]);
+ } else {
+ errn = EXI_ERROR_OUT_OF_BOUNDS;
+ }
+ grammarID = 1702;
+ break;
+ case 1:
+ done = 1;
+ grammarID = 4;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 1702:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}Sensor), END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ if (iso2SensorListType->Sensor.arrayLen < iso2SensorListType_Sensor_ARRAY_SIZE) {
+ errn = decode_iso2SensorType(stream, &iso2SensorListType->Sensor.array[iso2SensorListType->Sensor.arrayLen++]);
+ } else {
+ errn = EXI_ERROR_OUT_OF_BOUNDS;
+ }
+ grammarID = 1703;
+ break;
+ case 1:
+ done = 1;
+ grammarID = 4;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 1703:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}Sensor), END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ if (iso2SensorListType->Sensor.arrayLen < iso2SensorListType_Sensor_ARRAY_SIZE) {
+ errn = decode_iso2SensorType(stream, &iso2SensorListType->Sensor.array[iso2SensorListType->Sensor.arrayLen++]);
+ } else {
+ errn = EXI_ERROR_OUT_OF_BOUNDS;
+ }
+ grammarID = 1704;
+ break;
+ case 1:
+ done = 1;
+ grammarID = 4;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 1704:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}Sensor), END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ if (iso2SensorListType->Sensor.arrayLen < iso2SensorListType_Sensor_ARRAY_SIZE) {
+ errn = decode_iso2SensorType(stream, &iso2SensorListType->Sensor.array[iso2SensorListType->Sensor.arrayLen++]);
+ } else {
+ errn = EXI_ERROR_OUT_OF_BOUNDS;
+ }
+ grammarID = 1705;
+ break;
+ case 1:
+ done = 1;
+ grammarID = 4;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 1705:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}Sensor), END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ if (iso2SensorListType->Sensor.arrayLen < iso2SensorListType_Sensor_ARRAY_SIZE) {
+ errn = decode_iso2SensorType(stream, &iso2SensorListType->Sensor.array[iso2SensorListType->Sensor.arrayLen++]);
+ } else {
+ errn = EXI_ERROR_OUT_OF_BOUNDS;
+ }
+ grammarID = 1706;
+ break;
+ case 1:
+ done = 1;
+ grammarID = 4;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 1706:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}Sensor), END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ if (iso2SensorListType->Sensor.arrayLen < iso2SensorListType_Sensor_ARRAY_SIZE) {
+ errn = decode_iso2SensorType(stream, &iso2SensorListType->Sensor.array[iso2SensorListType->Sensor.arrayLen++]);
+ } else {
+ errn = EXI_ERROR_OUT_OF_BOUNDS;
+ }
+ grammarID = 1707;
+ break;
+ case 1:
+ done = 1;
+ grammarID = 4;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 1707:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}Sensor), END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ if (iso2SensorListType->Sensor.arrayLen < iso2SensorListType_Sensor_ARRAY_SIZE) {
+ errn = decode_iso2SensorType(stream, &iso2SensorListType->Sensor.array[iso2SensorListType->Sensor.arrayLen++]);
+ } else {
+ errn = EXI_ERROR_OUT_OF_BOUNDS;
+ }
+ grammarID = 1708;
+ break;
+ case 1:
+ done = 1;
+ grammarID = 4;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 1708:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}Sensor), END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ if (iso2SensorListType->Sensor.arrayLen < iso2SensorListType_Sensor_ARRAY_SIZE) {
+ errn = decode_iso2SensorType(stream, &iso2SensorListType->Sensor.array[iso2SensorListType->Sensor.arrayLen++]);
+ } else {
+ errn = EXI_ERROR_OUT_OF_BOUNDS;
+ }
+ grammarID = 1709;
+ break;
+ case 1:
+ done = 1;
+ grammarID = 4;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 1709:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}Sensor), END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ if (iso2SensorListType->Sensor.arrayLen < iso2SensorListType_Sensor_ARRAY_SIZE) {
+ errn = decode_iso2SensorType(stream, &iso2SensorListType->Sensor.array[iso2SensorListType->Sensor.arrayLen++]);
+ } else {
+ errn = EXI_ERROR_OUT_OF_BOUNDS;
+ }
+ grammarID = 1710;
+ break;
+ case 1:
+ done = 1;
+ grammarID = 4;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 1710:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}Sensor), END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ if (iso2SensorListType->Sensor.arrayLen < iso2SensorListType_Sensor_ARRAY_SIZE) {
+ errn = decode_iso2SensorType(stream, &iso2SensorListType->Sensor.array[iso2SensorListType->Sensor.arrayLen++]);
+ } else {
+ errn = EXI_ERROR_OUT_OF_BOUNDS;
+ }
+ grammarID = 1711;
+ break;
+ case 1:
+ done = 1;
+ grammarID = 4;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 1711:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}Sensor), END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ if (iso2SensorListType->Sensor.arrayLen < iso2SensorListType_Sensor_ARRAY_SIZE) {
+ errn = decode_iso2SensorType(stream, &iso2SensorListType->Sensor.array[iso2SensorListType->Sensor.arrayLen++]);
+ } else {
+ errn = EXI_ERROR_OUT_OF_BOUNDS;
+ }
+ grammarID = 1712;
+ break;
+ case 1:
+ done = 1;
+ grammarID = 4;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 1712:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}Sensor), END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ if (iso2SensorListType->Sensor.arrayLen < iso2SensorListType_Sensor_ARRAY_SIZE) {
+ errn = decode_iso2SensorType(stream, &iso2SensorListType->Sensor.array[iso2SensorListType->Sensor.arrayLen++]);
+ } else {
+ errn = EXI_ERROR_OUT_OF_BOUNDS;
+ }
+ grammarID = 1713;
+ break;
+ case 1:
+ done = 1;
+ grammarID = 4;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 1713:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}Sensor), END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ if (iso2SensorListType->Sensor.arrayLen < iso2SensorListType_Sensor_ARRAY_SIZE) {
+ errn = decode_iso2SensorType(stream, &iso2SensorListType->Sensor.array[iso2SensorListType->Sensor.arrayLen++]);
+ } else {
+ errn = EXI_ERROR_OUT_OF_BOUNDS;
+ }
+ grammarID = 1714;
+ break;
+ case 1:
+ done = 1;
+ grammarID = 4;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 1714:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}Sensor), END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ if (iso2SensorListType->Sensor.arrayLen < iso2SensorListType_Sensor_ARRAY_SIZE) {
+ errn = decode_iso2SensorType(stream, &iso2SensorListType->Sensor.array[iso2SensorListType->Sensor.arrayLen++]);
+ } else {
+ errn = EXI_ERROR_OUT_OF_BOUNDS;
+ }
+ grammarID = 1715;
+ break;
+ case 1:
+ done = 1;
+ grammarID = 4;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 1715:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}Sensor), END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ if (iso2SensorListType->Sensor.arrayLen < iso2SensorListType_Sensor_ARRAY_SIZE) {
+ errn = decode_iso2SensorType(stream, &iso2SensorListType->Sensor.array[iso2SensorListType->Sensor.arrayLen++]);
+ } else {
+ errn = EXI_ERROR_OUT_OF_BOUNDS;
+ }
+ grammarID = 1716;
+ break;
+ case 1:
+ done = 1;
+ grammarID = 4;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 1716:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}Sensor), END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ if (iso2SensorListType->Sensor.arrayLen < iso2SensorListType_Sensor_ARRAY_SIZE) {
+ errn = decode_iso2SensorType(stream, &iso2SensorListType->Sensor.array[iso2SensorListType->Sensor.arrayLen++]);
+ } else {
+ errn = EXI_ERROR_OUT_OF_BOUNDS;
+ }
+ grammarID = 1717;
+ break;
+ case 1:
+ done = 1;
+ grammarID = 4;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 1717:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}Sensor), END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ if (iso2SensorListType->Sensor.arrayLen < iso2SensorListType_Sensor_ARRAY_SIZE) {
+ errn = decode_iso2SensorType(stream, &iso2SensorListType->Sensor.array[iso2SensorListType->Sensor.arrayLen++]);
+ } else {
+ errn = EXI_ERROR_OUT_OF_BOUNDS;
+ }
+ grammarID = 1718;
+ break;
+ case 1:
+ done = 1;
+ grammarID = 4;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 1718:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}Sensor), END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ if (iso2SensorListType->Sensor.arrayLen < iso2SensorListType_Sensor_ARRAY_SIZE) {
+ errn = decode_iso2SensorType(stream, &iso2SensorListType->Sensor.array[iso2SensorListType->Sensor.arrayLen++]);
+ } else {
+ errn = EXI_ERROR_OUT_OF_BOUNDS;
+ }
+ grammarID = 1719;
+ break;
+ case 1:
+ done = 1;
+ grammarID = 4;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 1719:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}Sensor), END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ if (iso2SensorListType->Sensor.arrayLen < iso2SensorListType_Sensor_ARRAY_SIZE) {
+ errn = decode_iso2SensorType(stream, &iso2SensorListType->Sensor.array[iso2SensorListType->Sensor.arrayLen++]);
+ } else {
+ errn = EXI_ERROR_OUT_OF_BOUNDS;
+ }
+ grammarID = 1720;
+ break;
+ case 1:
+ done = 1;
+ grammarID = 4;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 1720:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}Sensor), END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ if (iso2SensorListType->Sensor.arrayLen < iso2SensorListType_Sensor_ARRAY_SIZE) {
+ errn = decode_iso2SensorType(stream, &iso2SensorListType->Sensor.array[iso2SensorListType->Sensor.arrayLen++]);
+ } else {
+ errn = EXI_ERROR_OUT_OF_BOUNDS;
+ }
+ grammarID = 1721;
+ break;
+ case 1:
+ done = 1;
+ grammarID = 4;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 1721:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}Sensor), END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ if (iso2SensorListType->Sensor.arrayLen < iso2SensorListType_Sensor_ARRAY_SIZE) {
+ errn = decode_iso2SensorType(stream, &iso2SensorListType->Sensor.array[iso2SensorListType->Sensor.arrayLen++]);
+ } else {
+ errn = EXI_ERROR_OUT_OF_BOUNDS;
+ }
+ grammarID = 1722;
+ break;
+ case 1:
+ done = 1;
+ grammarID = 4;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 1722:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}Sensor), END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ if (iso2SensorListType->Sensor.arrayLen < iso2SensorListType_Sensor_ARRAY_SIZE) {
+ errn = decode_iso2SensorType(stream, &iso2SensorListType->Sensor.array[iso2SensorListType->Sensor.arrayLen++]);
+ } else {
+ errn = EXI_ERROR_OUT_OF_BOUNDS;
+ }
+ grammarID = 1723;
+ break;
+ case 1:
+ done = 1;
+ grammarID = 4;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 1723:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}Sensor), END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ if (iso2SensorListType->Sensor.arrayLen < iso2SensorListType_Sensor_ARRAY_SIZE) {
+ errn = decode_iso2SensorType(stream, &iso2SensorListType->Sensor.array[iso2SensorListType->Sensor.arrayLen++]);
+ } else {
+ errn = EXI_ERROR_OUT_OF_BOUNDS;
+ }
+ grammarID = 1724;
+ break;
+ case 1:
+ done = 1;
+ grammarID = 4;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 1724:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}Sensor), END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ if (iso2SensorListType->Sensor.arrayLen < iso2SensorListType_Sensor_ARRAY_SIZE) {
+ errn = decode_iso2SensorType(stream, &iso2SensorListType->Sensor.array[iso2SensorListType->Sensor.arrayLen++]);
+ } else {
+ errn = EXI_ERROR_OUT_OF_BOUNDS;
+ }
+ grammarID = 1725;
+ break;
+ case 1:
+ done = 1;
+ grammarID = 4;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 1725:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}Sensor), END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ if (iso2SensorListType->Sensor.arrayLen < iso2SensorListType_Sensor_ARRAY_SIZE) {
+ errn = decode_iso2SensorType(stream, &iso2SensorListType->Sensor.array[iso2SensorListType->Sensor.arrayLen++]);
+ } else {
+ errn = EXI_ERROR_OUT_OF_BOUNDS;
+ }
+ grammarID = 1726;
+ break;
+ case 1:
+ done = 1;
+ grammarID = 4;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 1726:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}Sensor), END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ if (iso2SensorListType->Sensor.arrayLen < iso2SensorListType_Sensor_ARRAY_SIZE) {
+ errn = decode_iso2SensorType(stream, &iso2SensorListType->Sensor.array[iso2SensorListType->Sensor.arrayLen++]);
+ } else {
+ errn = EXI_ERROR_OUT_OF_BOUNDS;
+ }
+ grammarID = 1727;
+ break;
+ case 1:
+ done = 1;
+ grammarID = 4;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 1727:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}Sensor), END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ if (iso2SensorListType->Sensor.arrayLen < iso2SensorListType_Sensor_ARRAY_SIZE) {
+ errn = decode_iso2SensorType(stream, &iso2SensorListType->Sensor.array[iso2SensorListType->Sensor.arrayLen++]);
+ } else {
+ errn = EXI_ERROR_OUT_OF_BOUNDS;
+ }
+ grammarID = 1728;
+ break;
+ case 1:
+ done = 1;
+ grammarID = 4;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 1728:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}Sensor), END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ if (iso2SensorListType->Sensor.arrayLen < iso2SensorListType_Sensor_ARRAY_SIZE) {
+ errn = decode_iso2SensorType(stream, &iso2SensorListType->Sensor.array[iso2SensorListType->Sensor.arrayLen++]);
+ } else {
+ errn = EXI_ERROR_OUT_OF_BOUNDS;
+ }
+ grammarID = 1729;
+ break;
+ case 1:
+ done = 1;
+ grammarID = 4;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 1729:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}Sensor), END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ if (iso2SensorListType->Sensor.arrayLen < iso2SensorListType_Sensor_ARRAY_SIZE) {
+ errn = decode_iso2SensorType(stream, &iso2SensorListType->Sensor.array[iso2SensorListType->Sensor.arrayLen++]);
+ } else {
+ errn = EXI_ERROR_OUT_OF_BOUNDS;
+ }
+ grammarID = 1730;
+ break;
+ case 1:
+ done = 1;
+ grammarID = 4;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 1730:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}Sensor), END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ if (iso2SensorListType->Sensor.arrayLen < iso2SensorListType_Sensor_ARRAY_SIZE) {
+ errn = decode_iso2SensorType(stream, &iso2SensorListType->Sensor.array[iso2SensorListType->Sensor.arrayLen++]);
+ } else {
+ errn = EXI_ERROR_OUT_OF_BOUNDS;
+ }
+ grammarID = 1731;
+ break;
+ case 1:
+ done = 1;
+ grammarID = 4;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 1731:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}Sensor), END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ if (iso2SensorListType->Sensor.arrayLen < iso2SensorListType_Sensor_ARRAY_SIZE) {
+ errn = decode_iso2SensorType(stream, &iso2SensorListType->Sensor.array[iso2SensorListType->Sensor.arrayLen++]);
+ } else {
+ errn = EXI_ERROR_OUT_OF_BOUNDS;
+ }
+ grammarID = 1732;
+ break;
+ case 1:
+ done = 1;
+ grammarID = 4;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 1732:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}Sensor), END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ if (iso2SensorListType->Sensor.arrayLen < iso2SensorListType_Sensor_ARRAY_SIZE) {
+ errn = decode_iso2SensorType(stream, &iso2SensorListType->Sensor.array[iso2SensorListType->Sensor.arrayLen++]);
+ } else {
+ errn = EXI_ERROR_OUT_OF_BOUNDS;
+ }
+ grammarID = 1733;
+ break;
+ case 1:
+ done = 1;
+ grammarID = 4;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 1733:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}Sensor), END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ if (iso2SensorListType->Sensor.arrayLen < iso2SensorListType_Sensor_ARRAY_SIZE) {
+ errn = decode_iso2SensorType(stream, &iso2SensorListType->Sensor.array[iso2SensorListType->Sensor.arrayLen++]);
+ } else {
+ errn = EXI_ERROR_OUT_OF_BOUNDS;
+ }
+ grammarID = 1734;
+ break;
+ case 1:
+ done = 1;
+ grammarID = 4;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 1734:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}Sensor), END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ if (iso2SensorListType->Sensor.arrayLen < iso2SensorListType_Sensor_ARRAY_SIZE) {
+ errn = decode_iso2SensorType(stream, &iso2SensorListType->Sensor.array[iso2SensorListType->Sensor.arrayLen++]);
+ } else {
+ errn = EXI_ERROR_OUT_OF_BOUNDS;
+ }
+ grammarID = 1735;
+ break;
+ case 1:
+ done = 1;
+ grammarID = 4;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 1735:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}Sensor), END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ if (iso2SensorListType->Sensor.arrayLen < iso2SensorListType_Sensor_ARRAY_SIZE) {
+ errn = decode_iso2SensorType(stream, &iso2SensorListType->Sensor.array[iso2SensorListType->Sensor.arrayLen++]);
+ } else {
+ errn = EXI_ERROR_OUT_OF_BOUNDS;
+ }
+ grammarID = 1736;
+ break;
+ case 1:
+ done = 1;
+ grammarID = 4;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 1736:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}Sensor), END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ if (iso2SensorListType->Sensor.arrayLen < iso2SensorListType_Sensor_ARRAY_SIZE) {
+ errn = decode_iso2SensorType(stream, &iso2SensorListType->Sensor.array[iso2SensorListType->Sensor.arrayLen++]);
+ } else {
+ errn = EXI_ERROR_OUT_OF_BOUNDS;
+ }
+ grammarID = 1737;
+ break;
+ case 1:
+ done = 1;
+ grammarID = 4;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 1737:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}Sensor), END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ if (iso2SensorListType->Sensor.arrayLen < iso2SensorListType_Sensor_ARRAY_SIZE) {
+ errn = decode_iso2SensorType(stream, &iso2SensorListType->Sensor.array[iso2SensorListType->Sensor.arrayLen++]);
+ } else {
+ errn = EXI_ERROR_OUT_OF_BOUNDS;
+ }
+ grammarID = 1738;
+ break;
+ case 1:
+ done = 1;
+ grammarID = 4;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 1738:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}Sensor), END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ if (iso2SensorListType->Sensor.arrayLen < iso2SensorListType_Sensor_ARRAY_SIZE) {
+ errn = decode_iso2SensorType(stream, &iso2SensorListType->Sensor.array[iso2SensorListType->Sensor.arrayLen++]);
+ } else {
+ errn = EXI_ERROR_OUT_OF_BOUNDS;
+ }
+ grammarID = 1739;
+ break;
+ case 1:
+ done = 1;
+ grammarID = 4;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 1739:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}Sensor), END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ if (iso2SensorListType->Sensor.arrayLen < iso2SensorListType_Sensor_ARRAY_SIZE) {
+ errn = decode_iso2SensorType(stream, &iso2SensorListType->Sensor.array[iso2SensorListType->Sensor.arrayLen++]);
+ } else {
+ errn = EXI_ERROR_OUT_OF_BOUNDS;
+ }
+ grammarID = 1740;
+ break;
+ case 1:
+ done = 1;
+ grammarID = 4;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 1740:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}Sensor), END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ if (iso2SensorListType->Sensor.arrayLen < iso2SensorListType_Sensor_ARRAY_SIZE) {
+ errn = decode_iso2SensorType(stream, &iso2SensorListType->Sensor.array[iso2SensorListType->Sensor.arrayLen++]);
+ } else {
+ errn = EXI_ERROR_OUT_OF_BOUNDS;
+ }
+ grammarID = 1741;
+ break;
+ case 1:
+ done = 1;
+ grammarID = 4;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 1741:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}Sensor), END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ if (iso2SensorListType->Sensor.arrayLen < iso2SensorListType_Sensor_ARRAY_SIZE) {
+ errn = decode_iso2SensorType(stream, &iso2SensorListType->Sensor.array[iso2SensorListType->Sensor.arrayLen++]);
+ } else {
+ errn = EXI_ERROR_OUT_OF_BOUNDS;
+ }
+ grammarID = 1742;
+ break;
+ case 1:
+ done = 1;
+ grammarID = 4;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 1742:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}Sensor), END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ if (iso2SensorListType->Sensor.arrayLen < iso2SensorListType_Sensor_ARRAY_SIZE) {
+ errn = decode_iso2SensorType(stream, &iso2SensorListType->Sensor.array[iso2SensorListType->Sensor.arrayLen++]);
+ } else {
+ errn = EXI_ERROR_OUT_OF_BOUNDS;
+ }
+ grammarID = 1743;
+ break;
+ case 1:
+ done = 1;
+ grammarID = 4;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 1743:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}Sensor), END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ if (iso2SensorListType->Sensor.arrayLen < iso2SensorListType_Sensor_ARRAY_SIZE) {
+ errn = decode_iso2SensorType(stream, &iso2SensorListType->Sensor.array[iso2SensorListType->Sensor.arrayLen++]);
+ } else {
+ errn = EXI_ERROR_OUT_OF_BOUNDS;
+ }
+ grammarID = 1744;
+ break;
+ case 1:
+ done = 1;
+ grammarID = 4;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 1744:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}Sensor), END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ if (iso2SensorListType->Sensor.arrayLen < iso2SensorListType_Sensor_ARRAY_SIZE) {
+ errn = decode_iso2SensorType(stream, &iso2SensorListType->Sensor.array[iso2SensorListType->Sensor.arrayLen++]);
+ } else {
+ errn = EXI_ERROR_OUT_OF_BOUNDS;
+ }
+ grammarID = 1745;
+ break;
+ case 1:
+ done = 1;
+ grammarID = 4;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 1745:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}Sensor), END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ if (iso2SensorListType->Sensor.arrayLen < iso2SensorListType_Sensor_ARRAY_SIZE) {
+ errn = decode_iso2SensorType(stream, &iso2SensorListType->Sensor.array[iso2SensorListType->Sensor.arrayLen++]);
+ } else {
+ errn = EXI_ERROR_OUT_OF_BOUNDS;
+ }
+ grammarID = 1746;
+ break;
+ case 1:
+ done = 1;
+ grammarID = 4;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 1746:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}Sensor), END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ if (iso2SensorListType->Sensor.arrayLen < iso2SensorListType_Sensor_ARRAY_SIZE) {
+ errn = decode_iso2SensorType(stream, &iso2SensorListType->Sensor.array[iso2SensorListType->Sensor.arrayLen++]);
+ } else {
+ errn = EXI_ERROR_OUT_OF_BOUNDS;
+ }
+ grammarID = 1747;
+ break;
+ case 1:
+ done = 1;
+ grammarID = 4;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 1747:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}Sensor), END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ if (iso2SensorListType->Sensor.arrayLen < iso2SensorListType_Sensor_ARRAY_SIZE) {
+ errn = decode_iso2SensorType(stream, &iso2SensorListType->Sensor.array[iso2SensorListType->Sensor.arrayLen++]);
+ } else {
+ errn = EXI_ERROR_OUT_OF_BOUNDS;
+ }
+ grammarID = 1748;
+ break;
+ case 1:
+ done = 1;
+ grammarID = 4;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 1748:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}Sensor), END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ if (iso2SensorListType->Sensor.arrayLen < iso2SensorListType_Sensor_ARRAY_SIZE) {
+ errn = decode_iso2SensorType(stream, &iso2SensorListType->Sensor.array[iso2SensorListType->Sensor.arrayLen++]);
+ } else {
+ errn = EXI_ERROR_OUT_OF_BOUNDS;
+ }
+ grammarID = 1749;
+ break;
+ case 1:
+ done = 1;
+ grammarID = 4;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 1749:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}Sensor), END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ if (iso2SensorListType->Sensor.arrayLen < iso2SensorListType_Sensor_ARRAY_SIZE) {
+ errn = decode_iso2SensorType(stream, &iso2SensorListType->Sensor.array[iso2SensorListType->Sensor.arrayLen++]);
+ } else {
+ errn = EXI_ERROR_OUT_OF_BOUNDS;
+ }
+ grammarID = 1750;
+ break;
+ case 1:
+ done = 1;
+ grammarID = 4;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 1750:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}Sensor), END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ if (iso2SensorListType->Sensor.arrayLen < iso2SensorListType_Sensor_ARRAY_SIZE) {
+ errn = decode_iso2SensorType(stream, &iso2SensorListType->Sensor.array[iso2SensorListType->Sensor.arrayLen++]);
+ } else {
+ errn = EXI_ERROR_OUT_OF_BOUNDS;
+ }
+ grammarID = 1751;
+ break;
+ case 1:
+ done = 1;
+ grammarID = 4;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 1751:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}Sensor), END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ if (iso2SensorListType->Sensor.arrayLen < iso2SensorListType_Sensor_ARRAY_SIZE) {
+ errn = decode_iso2SensorType(stream, &iso2SensorListType->Sensor.array[iso2SensorListType->Sensor.arrayLen++]);
+ } else {
+ errn = EXI_ERROR_OUT_OF_BOUNDS;
+ }
+ grammarID = 1752;
+ break;
+ case 1:
+ done = 1;
+ grammarID = 4;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 1752:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}Sensor), END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ if (iso2SensorListType->Sensor.arrayLen < iso2SensorListType_Sensor_ARRAY_SIZE) {
+ errn = decode_iso2SensorType(stream, &iso2SensorListType->Sensor.array[iso2SensorListType->Sensor.arrayLen++]);
+ } else {
+ errn = EXI_ERROR_OUT_OF_BOUNDS;
+ }
+ grammarID = 1753;
+ break;
+ case 1:
+ done = 1;
+ grammarID = 4;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 1753:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}Sensor), END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ if (iso2SensorListType->Sensor.arrayLen < iso2SensorListType_Sensor_ARRAY_SIZE) {
+ errn = decode_iso2SensorType(stream, &iso2SensorListType->Sensor.array[iso2SensorListType->Sensor.arrayLen++]);
+ } else {
+ errn = EXI_ERROR_OUT_OF_BOUNDS;
+ }
+ grammarID = 1754;
+ break;
+ case 1:
+ done = 1;
+ grammarID = 4;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 1754:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}Sensor), END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ if (iso2SensorListType->Sensor.arrayLen < iso2SensorListType_Sensor_ARRAY_SIZE) {
+ errn = decode_iso2SensorType(stream, &iso2SensorListType->Sensor.array[iso2SensorListType->Sensor.arrayLen++]);
+ } else {
+ errn = EXI_ERROR_OUT_OF_BOUNDS;
+ }
+ grammarID = 1755;
+ break;
+ case 1:
+ done = 1;
+ grammarID = 4;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 1755:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}Sensor), END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ if (iso2SensorListType->Sensor.arrayLen < iso2SensorListType_Sensor_ARRAY_SIZE) {
+ errn = decode_iso2SensorType(stream, &iso2SensorListType->Sensor.array[iso2SensorListType->Sensor.arrayLen++]);
+ } else {
+ errn = EXI_ERROR_OUT_OF_BOUNDS;
+ }
+ grammarID = 1756;
+ break;
+ case 1:
+ done = 1;
+ grammarID = 4;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 1756:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}Sensor), END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ if (iso2SensorListType->Sensor.arrayLen < iso2SensorListType_Sensor_ARRAY_SIZE) {
+ errn = decode_iso2SensorType(stream, &iso2SensorListType->Sensor.array[iso2SensorListType->Sensor.arrayLen++]);
+ } else {
+ errn = EXI_ERROR_OUT_OF_BOUNDS;
+ }
+ grammarID = 1757;
+ break;
+ case 1:
+ done = 1;
+ grammarID = 4;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 1757:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}Sensor), END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ if (iso2SensorListType->Sensor.arrayLen < iso2SensorListType_Sensor_ARRAY_SIZE) {
+ errn = decode_iso2SensorType(stream, &iso2SensorListType->Sensor.array[iso2SensorListType->Sensor.arrayLen++]);
+ } else {
+ errn = EXI_ERROR_OUT_OF_BOUNDS;
+ }
+ grammarID = 1758;
+ break;
+ case 1:
+ done = 1;
+ grammarID = 4;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 1758:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}Sensor), END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ if (iso2SensorListType->Sensor.arrayLen < iso2SensorListType_Sensor_ARRAY_SIZE) {
+ errn = decode_iso2SensorType(stream, &iso2SensorListType->Sensor.array[iso2SensorListType->Sensor.arrayLen++]);
+ } else {
+ errn = EXI_ERROR_OUT_OF_BOUNDS;
+ }
+ grammarID = 1759;
+ break;
+ case 1:
+ done = 1;
+ grammarID = 4;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 1759:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}Sensor), END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ if (iso2SensorListType->Sensor.arrayLen < iso2SensorListType_Sensor_ARRAY_SIZE) {
+ errn = decode_iso2SensorType(stream, &iso2SensorListType->Sensor.array[iso2SensorListType->Sensor.arrayLen++]);
+ } else {
+ errn = EXI_ERROR_OUT_OF_BOUNDS;
+ }
+ grammarID = 1760;
+ break;
+ case 1:
+ done = 1;
+ grammarID = 4;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 1760:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}Sensor), END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ if (iso2SensorListType->Sensor.arrayLen < iso2SensorListType_Sensor_ARRAY_SIZE) {
+ errn = decode_iso2SensorType(stream, &iso2SensorListType->Sensor.array[iso2SensorListType->Sensor.arrayLen++]);
+ } else {
+ errn = EXI_ERROR_OUT_OF_BOUNDS;
+ }
+ grammarID = 1761;
+ break;
+ case 1:
+ done = 1;
+ grammarID = 4;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 1761:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}Sensor), END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ if (iso2SensorListType->Sensor.arrayLen < iso2SensorListType_Sensor_ARRAY_SIZE) {
+ errn = decode_iso2SensorType(stream, &iso2SensorListType->Sensor.array[iso2SensorListType->Sensor.arrayLen++]);
+ } else {
+ errn = EXI_ERROR_OUT_OF_BOUNDS;
+ }
+ grammarID = 1762;
+ break;
+ case 1:
+ done = 1;
+ grammarID = 4;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 1762:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}Sensor), END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ if (iso2SensorListType->Sensor.arrayLen < iso2SensorListType_Sensor_ARRAY_SIZE) {
+ errn = decode_iso2SensorType(stream, &iso2SensorListType->Sensor.array[iso2SensorListType->Sensor.arrayLen++]);
+ } else {
+ errn = EXI_ERROR_OUT_OF_BOUNDS;
+ }
+ grammarID = 1763;
+ break;
+ case 1:
+ done = 1;
+ grammarID = 4;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 1763:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}Sensor), END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ if (iso2SensorListType->Sensor.arrayLen < iso2SensorListType_Sensor_ARRAY_SIZE) {
+ errn = decode_iso2SensorType(stream, &iso2SensorListType->Sensor.array[iso2SensorListType->Sensor.arrayLen++]);
+ } else {
+ errn = EXI_ERROR_OUT_OF_BOUNDS;
+ }
+ grammarID = 1764;
+ break;
+ case 1:
+ done = 1;
+ grammarID = 4;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 1764:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}Sensor), END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ if (iso2SensorListType->Sensor.arrayLen < iso2SensorListType_Sensor_ARRAY_SIZE) {
+ errn = decode_iso2SensorType(stream, &iso2SensorListType->Sensor.array[iso2SensorListType->Sensor.arrayLen++]);
+ } else {
+ errn = EXI_ERROR_OUT_OF_BOUNDS;
+ }
+ grammarID = 1765;
+ break;
+ case 1:
+ done = 1;
+ grammarID = 4;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 1765:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}Sensor), END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ if (iso2SensorListType->Sensor.arrayLen < iso2SensorListType_Sensor_ARRAY_SIZE) {
+ errn = decode_iso2SensorType(stream, &iso2SensorListType->Sensor.array[iso2SensorListType->Sensor.arrayLen++]);
+ } else {
+ errn = EXI_ERROR_OUT_OF_BOUNDS;
+ }
+ grammarID = 1766;
+ break;
+ case 1:
+ done = 1;
+ grammarID = 4;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 1766:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}Sensor), END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ if (iso2SensorListType->Sensor.arrayLen < iso2SensorListType_Sensor_ARRAY_SIZE) {
+ errn = decode_iso2SensorType(stream, &iso2SensorListType->Sensor.array[iso2SensorListType->Sensor.arrayLen++]);
+ } else {
+ errn = EXI_ERROR_OUT_OF_BOUNDS;
+ }
+ grammarID = 1767;
+ break;
+ case 1:
+ done = 1;
+ grammarID = 4;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 1767:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}Sensor), END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ if (iso2SensorListType->Sensor.arrayLen < iso2SensorListType_Sensor_ARRAY_SIZE) {
+ errn = decode_iso2SensorType(stream, &iso2SensorListType->Sensor.array[iso2SensorListType->Sensor.arrayLen++]);
+ } else {
+ errn = EXI_ERROR_OUT_OF_BOUNDS;
+ }
+ grammarID = 1768;
+ break;
+ case 1:
+ done = 1;
+ grammarID = 4;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 1768:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}Sensor), END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ if (iso2SensorListType->Sensor.arrayLen < iso2SensorListType_Sensor_ARRAY_SIZE) {
+ errn = decode_iso2SensorType(stream, &iso2SensorListType->Sensor.array[iso2SensorListType->Sensor.arrayLen++]);
+ } else {
+ errn = EXI_ERROR_OUT_OF_BOUNDS;
+ }
+ grammarID = 1769;
+ break;
+ case 1:
+ done = 1;
+ grammarID = 4;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 1769:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}Sensor), END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ if (iso2SensorListType->Sensor.arrayLen < iso2SensorListType_Sensor_ARRAY_SIZE) {
+ errn = decode_iso2SensorType(stream, &iso2SensorListType->Sensor.array[iso2SensorListType->Sensor.arrayLen++]);
+ } else {
+ errn = EXI_ERROR_OUT_OF_BOUNDS;
+ }
+ grammarID = 1770;
+ break;
+ case 1:
+ done = 1;
+ grammarID = 4;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 1770:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}Sensor), END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ if (iso2SensorListType->Sensor.arrayLen < iso2SensorListType_Sensor_ARRAY_SIZE) {
+ errn = decode_iso2SensorType(stream, &iso2SensorListType->Sensor.array[iso2SensorListType->Sensor.arrayLen++]);
+ } else {
+ errn = EXI_ERROR_OUT_OF_BOUNDS;
+ }
+ grammarID = 1771;
+ break;
+ case 1:
+ done = 1;
+ grammarID = 4;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 1771:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}Sensor), END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ if (iso2SensorListType->Sensor.arrayLen < iso2SensorListType_Sensor_ARRAY_SIZE) {
+ errn = decode_iso2SensorType(stream, &iso2SensorListType->Sensor.array[iso2SensorListType->Sensor.arrayLen++]);
+ } else {
+ errn = EXI_ERROR_OUT_OF_BOUNDS;
+ }
+ grammarID = 1772;
+ break;
+ case 1:
+ done = 1;
+ grammarID = 4;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 1772:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}Sensor), END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ if (iso2SensorListType->Sensor.arrayLen < iso2SensorListType_Sensor_ARRAY_SIZE) {
+ errn = decode_iso2SensorType(stream, &iso2SensorListType->Sensor.array[iso2SensorListType->Sensor.arrayLen++]);
+ } else {
+ errn = EXI_ERROR_OUT_OF_BOUNDS;
+ }
+ grammarID = 1773;
+ break;
+ case 1:
+ done = 1;
+ grammarID = 4;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 1773:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}Sensor), END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ if (iso2SensorListType->Sensor.arrayLen < iso2SensorListType_Sensor_ARRAY_SIZE) {
+ errn = decode_iso2SensorType(stream, &iso2SensorListType->Sensor.array[iso2SensorListType->Sensor.arrayLen++]);
+ } else {
+ errn = EXI_ERROR_OUT_OF_BOUNDS;
+ }
+ grammarID = 1774;
+ break;
+ case 1:
+ done = 1;
+ grammarID = 4;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 1774:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}Sensor), END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ if (iso2SensorListType->Sensor.arrayLen < iso2SensorListType_Sensor_ARRAY_SIZE) {
+ errn = decode_iso2SensorType(stream, &iso2SensorListType->Sensor.array[iso2SensorListType->Sensor.arrayLen++]);
+ } else {
+ errn = EXI_ERROR_OUT_OF_BOUNDS;
+ }
+ grammarID = 1775;
+ break;
+ case 1:
+ done = 1;
+ grammarID = 4;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 1775:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}Sensor), END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ if (iso2SensorListType->Sensor.arrayLen < iso2SensorListType_Sensor_ARRAY_SIZE) {
+ errn = decode_iso2SensorType(stream, &iso2SensorListType->Sensor.array[iso2SensorListType->Sensor.arrayLen++]);
+ } else {
+ errn = EXI_ERROR_OUT_OF_BOUNDS;
+ }
+ grammarID = 1776;
+ break;
+ case 1:
+ done = 1;
+ grammarID = 4;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 1776:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}Sensor), END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ if (iso2SensorListType->Sensor.arrayLen < iso2SensorListType_Sensor_ARRAY_SIZE) {
+ errn = decode_iso2SensorType(stream, &iso2SensorListType->Sensor.array[iso2SensorListType->Sensor.arrayLen++]);
+ } else {
+ errn = EXI_ERROR_OUT_OF_BOUNDS;
+ }
+ grammarID = 1777;
+ break;
+ case 1:
+ done = 1;
+ grammarID = 4;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 1777:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}Sensor), END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ if (iso2SensorListType->Sensor.arrayLen < iso2SensorListType_Sensor_ARRAY_SIZE) {
+ errn = decode_iso2SensorType(stream, &iso2SensorListType->Sensor.array[iso2SensorListType->Sensor.arrayLen++]);
+ } else {
+ errn = EXI_ERROR_OUT_OF_BOUNDS;
+ }
+ grammarID = 1778;
+ break;
+ case 1:
+ done = 1;
+ grammarID = 4;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 1778:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}Sensor), END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ if (iso2SensorListType->Sensor.arrayLen < iso2SensorListType_Sensor_ARRAY_SIZE) {
+ errn = decode_iso2SensorType(stream, &iso2SensorListType->Sensor.array[iso2SensorListType->Sensor.arrayLen++]);
+ } else {
+ errn = EXI_ERROR_OUT_OF_BOUNDS;
+ }
+ grammarID = 1779;
+ break;
+ case 1:
+ done = 1;
+ grammarID = 4;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 1779:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}Sensor), END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ if (iso2SensorListType->Sensor.arrayLen < iso2SensorListType_Sensor_ARRAY_SIZE) {
+ errn = decode_iso2SensorType(stream, &iso2SensorListType->Sensor.array[iso2SensorListType->Sensor.arrayLen++]);
+ } else {
+ errn = EXI_ERROR_OUT_OF_BOUNDS;
+ }
+ grammarID = 1780;
+ break;
+ case 1:
+ done = 1;
+ grammarID = 4;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 1780:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}Sensor), END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ if (iso2SensorListType->Sensor.arrayLen < iso2SensorListType_Sensor_ARRAY_SIZE) {
+ errn = decode_iso2SensorType(stream, &iso2SensorListType->Sensor.array[iso2SensorListType->Sensor.arrayLen++]);
+ } else {
+ errn = EXI_ERROR_OUT_OF_BOUNDS;
+ }
+ grammarID = 1781;
+ break;
+ case 1:
+ done = 1;
+ grammarID = 4;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 1781:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}Sensor), END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ if (iso2SensorListType->Sensor.arrayLen < iso2SensorListType_Sensor_ARRAY_SIZE) {
+ errn = decode_iso2SensorType(stream, &iso2SensorListType->Sensor.array[iso2SensorListType->Sensor.arrayLen++]);
+ } else {
+ errn = EXI_ERROR_OUT_OF_BOUNDS;
+ }
+ grammarID = 1782;
+ break;
+ case 1:
+ done = 1;
+ grammarID = 4;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 1782:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}Sensor), END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ if (iso2SensorListType->Sensor.arrayLen < iso2SensorListType_Sensor_ARRAY_SIZE) {
+ errn = decode_iso2SensorType(stream, &iso2SensorListType->Sensor.array[iso2SensorListType->Sensor.arrayLen++]);
+ } else {
+ errn = EXI_ERROR_OUT_OF_BOUNDS;
+ }
+ grammarID = 1783;
+ break;
+ case 1:
+ done = 1;
+ grammarID = 4;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 1783:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}Sensor), END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ if (iso2SensorListType->Sensor.arrayLen < iso2SensorListType_Sensor_ARRAY_SIZE) {
+ errn = decode_iso2SensorType(stream, &iso2SensorListType->Sensor.array[iso2SensorListType->Sensor.arrayLen++]);
+ } else {
+ errn = EXI_ERROR_OUT_OF_BOUNDS;
+ }
+ grammarID = 1784;
+ break;
+ case 1:
+ done = 1;
+ grammarID = 4;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 1784:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}Sensor), END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ if (iso2SensorListType->Sensor.arrayLen < iso2SensorListType_Sensor_ARRAY_SIZE) {
+ errn = decode_iso2SensorType(stream, &iso2SensorListType->Sensor.array[iso2SensorListType->Sensor.arrayLen++]);
+ } else {
+ errn = EXI_ERROR_OUT_OF_BOUNDS;
+ }
+ grammarID = 1785;
+ break;
+ case 1:
+ done = 1;
+ grammarID = 4;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 1785:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}Sensor), END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ if (iso2SensorListType->Sensor.arrayLen < iso2SensorListType_Sensor_ARRAY_SIZE) {
+ errn = decode_iso2SensorType(stream, &iso2SensorListType->Sensor.array[iso2SensorListType->Sensor.arrayLen++]);
+ } else {
+ errn = EXI_ERROR_OUT_OF_BOUNDS;
+ }
+ grammarID = 1786;
+ break;
+ case 1:
+ done = 1;
+ grammarID = 4;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 1786:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}Sensor), END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ if (iso2SensorListType->Sensor.arrayLen < iso2SensorListType_Sensor_ARRAY_SIZE) {
+ errn = decode_iso2SensorType(stream, &iso2SensorListType->Sensor.array[iso2SensorListType->Sensor.arrayLen++]);
+ } else {
+ errn = EXI_ERROR_OUT_OF_BOUNDS;
+ }
+ grammarID = 1787;
+ break;
+ case 1:
+ done = 1;
+ grammarID = 4;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 1787:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}Sensor), END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ if (iso2SensorListType->Sensor.arrayLen < iso2SensorListType_Sensor_ARRAY_SIZE) {
+ errn = decode_iso2SensorType(stream, &iso2SensorListType->Sensor.array[iso2SensorListType->Sensor.arrayLen++]);
+ } else {
+ errn = EXI_ERROR_OUT_OF_BOUNDS;
+ }
+ grammarID = 3;
+ break;
+ case 1:
+ done = 1;
+ grammarID = 4;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 3:
+ /* Element[END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ done = 1;
+ grammarID = 4;
+ 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:2016:MsgBody,CurrentDemandReqType', base type name='ChargeLoopReqType', content type='ELEMENT', isAbstract='false', hasTypeId='false', final='0', block='0', particle='(("urn:iso:15118:2:2016:MsgBody":EVTargetEnergyRequest,"urn:iso:15118:2:2016:MsgBody":EVMaximumEnergyRequest{0-1},"urn:iso:15118:2:2016:MsgBody":EVMinimumEnergyRequest{0-1},"urn:iso:15118:2:2016:MsgBody":DisplayParameters{0-1}),("urn:iso:15118:2:2016:MsgBody":EVTargetCurrent,"urn:iso:15118:2:2016:MsgBody":EVTargetVoltage,"urn:iso:15118:2:2016:MsgBody":EVMaximumCurrent{0-1},"urn:iso:15118:2:2016:MsgBody":EVMaximumPower{0-1},"urn:iso:15118:2:2016:MsgBody":EVMaximumVoltage{0-1}))', derivedBy='EXTENSION'. */
+static int decode_iso2CurrentDemandReqType(bitstream_t* stream, struct iso2CurrentDemandReqType* iso2CurrentDemandReqType) {
+ int grammarID = 1788;
+ int done = 0;
+
+ init_iso2CurrentDemandReqType(iso2CurrentDemandReqType);
+
+ while(!done) {
+ switch(grammarID) {
+ case 1788:
+ /* FirstStartTag[START_ELEMENT({urn:iso:15118:2:2016:MsgBody}EVTargetEnergyRequest)] */
+ errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ errn = decode_iso2PhysicalValueType(stream, &iso2CurrentDemandReqType->EVTargetEnergyRequest);
+ grammarID = 1789;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 1789:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgBody}EVMaximumEnergyRequest), START_ELEMENT({urn:iso:15118:2:2016:MsgBody}EVMinimumEnergyRequest), START_ELEMENT({urn:iso:15118:2:2016:MsgBody}DisplayParameters), START_ELEMENT({urn:iso:15118:2:2016:MsgBody}EVTargetCurrent)] */
+ errn = decodeNBitUnsignedInteger(stream, 3, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ errn = decode_iso2PhysicalValueType(stream, &iso2CurrentDemandReqType->EVMaximumEnergyRequest);
+ iso2CurrentDemandReqType->EVMaximumEnergyRequest_isUsed = 1u;
+ grammarID = 1790;
+ break;
+ case 1:
+ errn = decode_iso2PhysicalValueType(stream, &iso2CurrentDemandReqType->EVMinimumEnergyRequest);
+ iso2CurrentDemandReqType->EVMinimumEnergyRequest_isUsed = 1u;
+ grammarID = 1791;
+ break;
+ case 2:
+ errn = decode_iso2DisplayParametersType(stream, &iso2CurrentDemandReqType->DisplayParameters);
+ iso2CurrentDemandReqType->DisplayParameters_isUsed = 1u;
+ grammarID = 1792;
+ break;
+ case 3:
+ errn = decode_iso2PhysicalValueType(stream, &iso2CurrentDemandReqType->EVTargetCurrent);
+ grammarID = 1793;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 1790:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgBody}EVMinimumEnergyRequest), START_ELEMENT({urn:iso:15118:2:2016:MsgBody}DisplayParameters), START_ELEMENT({urn:iso:15118:2:2016:MsgBody}EVTargetCurrent)] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ errn = decode_iso2PhysicalValueType(stream, &iso2CurrentDemandReqType->EVMinimumEnergyRequest);
+ iso2CurrentDemandReqType->EVMinimumEnergyRequest_isUsed = 1u;
+ grammarID = 1791;
+ break;
+ case 1:
+ errn = decode_iso2DisplayParametersType(stream, &iso2CurrentDemandReqType->DisplayParameters);
+ iso2CurrentDemandReqType->DisplayParameters_isUsed = 1u;
+ grammarID = 1792;
+ break;
+ case 2:
+ errn = decode_iso2PhysicalValueType(stream, &iso2CurrentDemandReqType->EVTargetCurrent);
+ grammarID = 1793;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 1791:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgBody}DisplayParameters), START_ELEMENT({urn:iso:15118:2:2016:MsgBody}EVTargetCurrent)] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ errn = decode_iso2DisplayParametersType(stream, &iso2CurrentDemandReqType->DisplayParameters);
+ iso2CurrentDemandReqType->DisplayParameters_isUsed = 1u;
+ grammarID = 1792;
+ break;
+ case 1:
+ errn = decode_iso2PhysicalValueType(stream, &iso2CurrentDemandReqType->EVTargetCurrent);
+ grammarID = 1793;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 1792:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgBody}EVTargetCurrent)] */
+ errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ errn = decode_iso2PhysicalValueType(stream, &iso2CurrentDemandReqType->EVTargetCurrent);
+ grammarID = 1793;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 1793:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgBody}EVTargetVoltage)] */
+ errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ errn = decode_iso2PhysicalValueType(stream, &iso2CurrentDemandReqType->EVTargetVoltage);
+ grammarID = 1794;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 1794:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgBody}EVMaximumCurrent), START_ELEMENT({urn:iso:15118:2:2016:MsgBody}EVMaximumPower), START_ELEMENT({urn:iso:15118:2:2016:MsgBody}EVMaximumVoltage), END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 3, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ errn = decode_iso2PhysicalValueType(stream, &iso2CurrentDemandReqType->EVMaximumCurrent);
+ iso2CurrentDemandReqType->EVMaximumCurrent_isUsed = 1u;
+ grammarID = 1795;
+ break;
+ case 1:
+ errn = decode_iso2PhysicalValueType(stream, &iso2CurrentDemandReqType->EVMaximumPower);
+ iso2CurrentDemandReqType->EVMaximumPower_isUsed = 1u;
+ grammarID = 1796;
+ break;
+ case 2:
+ errn = decode_iso2PhysicalValueType(stream, &iso2CurrentDemandReqType->EVMaximumVoltage);
+ iso2CurrentDemandReqType->EVMaximumVoltage_isUsed = 1u;
+ grammarID = 3;
+ break;
+ case 3:
+ done = 1;
+ grammarID = 4;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 1795:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgBody}EVMaximumPower), START_ELEMENT({urn:iso:15118:2:2016:MsgBody}EVMaximumVoltage), END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ errn = decode_iso2PhysicalValueType(stream, &iso2CurrentDemandReqType->EVMaximumPower);
+ iso2CurrentDemandReqType->EVMaximumPower_isUsed = 1u;
+ grammarID = 1796;
+ break;
+ case 1:
+ errn = decode_iso2PhysicalValueType(stream, &iso2CurrentDemandReqType->EVMaximumVoltage);
+ iso2CurrentDemandReqType->EVMaximumVoltage_isUsed = 1u;
+ grammarID = 3;
+ break;
+ case 2:
+ done = 1;
+ grammarID = 4;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 1796:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgBody}EVMaximumVoltage), END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ errn = decode_iso2PhysicalValueType(stream, &iso2CurrentDemandReqType->EVMaximumVoltage);
+ iso2CurrentDemandReqType->EVMaximumVoltage_isUsed = 1u;
+ grammarID = 3;
+ break;
+ case 1:
+ done = 1;
+ grammarID = 4;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 3:
+ /* Element[END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ done = 1;
+ grammarID = 4;
+ 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:2016:MsgBody,FinePositioningSetupReqType', base type name='BodyBaseType', content type='ELEMENT', isAbstract='false', hasTypeId='false', final='0', block='0', particle='("urn:iso:15118:2:2016:MsgDataTypes":EVFinePositioningSetupParameters{0-1})', derivedBy='EXTENSION'. */
+static int decode_iso2FinePositioningSetupReqType(bitstream_t* stream, struct iso2FinePositioningSetupReqType* iso2FinePositioningSetupReqType) {
+ int grammarID = 1797;
+ int done = 0;
+
+ init_iso2FinePositioningSetupReqType(iso2FinePositioningSetupReqType);
+
+ while(!done) {
+ switch(grammarID) {
+ case 1797:
+ /* FirstStartTag[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}EVFinePositioningSetupParameters), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}LFA_EVFinePositioningSetupParameters), END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ errn = decode_iso2EVFinePositioningSetupParametersType(stream, &iso2FinePositioningSetupReqType->EVFinePositioningSetupParameters);
+ iso2FinePositioningSetupReqType->EVFinePositioningSetupParameters_isUsed = 1u;
+ grammarID = 3;
+ break;
+ case 1:
+ errn = decode_iso2LFA_EVFinePositioningSetupParametersType(stream, &iso2FinePositioningSetupReqType->LFA_EVFinePositioningSetupParameters);
+ iso2FinePositioningSetupReqType->LFA_EVFinePositioningSetupParameters_isUsed = 1u;
+ grammarID = 3;
+ break;
+ case 2:
+ done = 1;
+ grammarID = 4;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 3:
+ /* Element[END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ done = 1;
+ grammarID = 4;
+ 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:2016:MsgDataTypes,LFA_EVFinePositioningSetupParametersType', base type name='EVFinePositioningSetupParametersType', content type='ELEMENT', isAbstract='false', hasTypeId='false', final='0', block='0', particle='("urn:iso:15118:2:2016:MsgDataTypes":NumberOfSensors,"urn:iso:15118:2:2016:MsgDataTypes":SensorList,"urn:iso:15118:2:2016:MsgDataTypes":SensorOrder,"urn:iso:15118:2:2016:MsgDataTypes":SignalPulseDuration,"urn:iso:15118:2:2016:MsgDataTypes":SignalSeparationTime,"urn:iso:15118:2:2016:MsgDataTypes":PackageSeparationTime,"urn:iso:15118:2:2016:MsgDataTypes":AlignmentOffset)', derivedBy='EXTENSION'. */
+static int decode_iso2LFA_EVFinePositioningSetupParametersType(bitstream_t* stream, struct iso2LFA_EVFinePositioningSetupParametersType* iso2LFA_EVFinePositioningSetupParametersType) {
+ int grammarID = 1798;
+ int done = 0;
+
+ init_iso2LFA_EVFinePositioningSetupParametersType(iso2LFA_EVFinePositioningSetupParametersType);
+
+ while(!done) {
+ switch(grammarID) {
+ case 1798:
+ /* FirstStartTag[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}NumberOfSensors)] */
+ errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
+ errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
+ if(errn == 0) {
+ if(eventCode == 0) {
+ errn = decodeNBitUnsignedInteger(stream, 8, &(uint32));
+ iso2LFA_EVFinePositioningSetupParametersType->NumberOfSensors = (uint8_t)(uint32 + 0);
+ } 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({urn:iso:15118:2:2016:MsgDataTypes}NumberOfSensors) ? */
+ errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
+ if(eventCode == 0) {
+ grammarID = 1799;
+ } else {
+ errn = EXI_DEVIANT_SUPPORT_NOT_DEPLOYED; /* or also typecast and nillable */
+ }
+ }
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 1799:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorList)] */
+ errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ errn = decode_iso2SensorListType(stream, &iso2LFA_EVFinePositioningSetupParametersType->SensorList);
+ grammarID = 1800;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 1800:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorOrder)] */
+ errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ errn = decode_iso2SensorOrderListType(stream, &iso2LFA_EVFinePositioningSetupParametersType->SensorOrder);
+ grammarID = 1801;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 1801:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SignalPulseDuration)] */
+ errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
+ errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
+ if(errn == 0) {
+ if(eventCode == 0) {
+ errn = decodeNBitUnsignedInteger(stream, 8, &(uint32));
+ iso2LFA_EVFinePositioningSetupParametersType->SignalPulseDuration = (uint8_t)(uint32 + 0);
+ } 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({urn:iso:15118:2:2016:MsgDataTypes}SignalPulseDuration) ? */
+ errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
+ if(eventCode == 0) {
+ grammarID = 1802;
+ } else {
+ errn = EXI_DEVIANT_SUPPORT_NOT_DEPLOYED; /* or also typecast and nillable */
+ }
+ }
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 1802:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SignalSeparationTime)] */
+ errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
+ errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
+ if(errn == 0) {
+ if(eventCode == 0) {
+ errn = decodeNBitUnsignedInteger(stream, 8, &(uint32));
+ iso2LFA_EVFinePositioningSetupParametersType->SignalSeparationTime = (uint8_t)(uint32 + 0);
+ } 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({urn:iso:15118:2:2016:MsgDataTypes}SignalSeparationTime) ? */
+ errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
+ if(eventCode == 0) {
+ grammarID = 1803;
+ } else {
+ errn = EXI_DEVIANT_SUPPORT_NOT_DEPLOYED; /* or also typecast and nillable */
+ }
+ }
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 1803:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}PackageSeparationTime)] */
+ errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
+ errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
+ if(errn == 0) {
+ if(eventCode == 0) {
+ errn = decodeNBitUnsignedInteger(stream, 8, &(uint32));
+ iso2LFA_EVFinePositioningSetupParametersType->PackageSeparationTime = (uint8_t)(uint32 + 0);
+ } 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({urn:iso:15118:2:2016:MsgDataTypes}PackageSeparationTime) ? */
+ errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
+ if(eventCode == 0) {
+ grammarID = 1804;
+ } else {
+ errn = EXI_DEVIANT_SUPPORT_NOT_DEPLOYED; /* or also typecast and nillable */
+ }
+ }
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 1804:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}AlignmentOffset)] */
+ errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ /* First(xsi:type)StartTag[CHARACTERS[UNSIGNED_INTEGER]] */
+ errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
+ if(errn == 0) {
+ if(eventCode == 0) {
+ errn = decodeUnsignedInteger16(stream, &iso2LFA_EVFinePositioningSetupParametersType->AlignmentOffset);
+ } 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({urn:iso:15118:2:2016:MsgDataTypes}AlignmentOffset) ? */
+ errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
+ if(eventCode == 0) {
+ grammarID = 3;
+ } else {
+ errn = EXI_DEVIANT_SUPPORT_NOT_DEPLOYED; /* or also typecast and nillable */
+ }
+ }
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 3:
+ /* Element[END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ done = 1;
+ grammarID = 4;
+ 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:2016:MsgDataTypes,SAScheduleTupleType', base type name='anyType', content type='ELEMENT', isAbstract='false', hasTypeId='false', final='0', block='0', particle='("urn:iso:15118:2:2016:MsgDataTypes":SAScheduleTupleID,"urn:iso:15118:2:2016:MsgDataTypes":PMaxSchedule,"urn:iso:15118:2:2016:MsgDataTypes":PMaxDischargeSchedule{0-1},"urn:iso:15118:2:2016:MsgDataTypes":SalesTariff{0-1},"urn:iso:15118:2:2016:MsgDataTypes":BuyBackTariff{0-1})', derivedBy='RESTRICTION'. */
+static int decode_iso2SAScheduleTupleType(bitstream_t* stream, struct iso2SAScheduleTupleType* iso2SAScheduleTupleType) {
+ int grammarID = 1805;
+ int done = 0;
+
+ init_iso2SAScheduleTupleType(iso2SAScheduleTupleType);
+
+ while(!done) {
+ switch(grammarID) {
+ case 1805:
+ /* FirstStartTag[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SAScheduleTupleID)] */
+ errn = decodeNBitUnsignedInteger(stream, 1, &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));
+ iso2SAScheduleTupleType->SAScheduleTupleID = (uint8_t)(uint32 + 1);
+ } 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({urn:iso:15118:2:2016:MsgDataTypes}SAScheduleTupleID) ? */
+ errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
+ if(eventCode == 0) {
+ grammarID = 1806;
+ } else {
+ errn = EXI_DEVIANT_SUPPORT_NOT_DEPLOYED; /* or also typecast and nillable */
+ }
+ }
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 1806:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}PMaxSchedule)] */
+ errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ errn = decode_iso2PMaxScheduleType(stream, &iso2SAScheduleTupleType->PMaxSchedule);
+ grammarID = 1807;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 1807:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}PMaxDischargeSchedule), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SalesTariff), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}BuyBackTariff), END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 3, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ errn = decode_iso2PMaxScheduleType(stream, &iso2SAScheduleTupleType->PMaxDischargeSchedule);
+ iso2SAScheduleTupleType->PMaxDischargeSchedule_isUsed = 1u;
+ grammarID = 1808;
+ break;
+ case 1:
+ errn = decode_iso2SalesTariffType(stream, &iso2SAScheduleTupleType->SalesTariff);
+ iso2SAScheduleTupleType->SalesTariff_isUsed = 1u;
+ grammarID = 1809;
+ break;
+ case 2:
+ errn = decode_iso2SalesTariffType(stream, &iso2SAScheduleTupleType->BuyBackTariff);
+ iso2SAScheduleTupleType->BuyBackTariff_isUsed = 1u;
+ grammarID = 3;
+ break;
+ case 3:
+ done = 1;
+ grammarID = 4;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 1808:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SalesTariff), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}BuyBackTariff), END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ errn = decode_iso2SalesTariffType(stream, &iso2SAScheduleTupleType->SalesTariff);
+ iso2SAScheduleTupleType->SalesTariff_isUsed = 1u;
+ grammarID = 1809;
+ break;
+ case 1:
+ errn = decode_iso2SalesTariffType(stream, &iso2SAScheduleTupleType->BuyBackTariff);
+ iso2SAScheduleTupleType->BuyBackTariff_isUsed = 1u;
+ grammarID = 3;
+ break;
+ case 2:
+ done = 1;
+ grammarID = 4;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 1809:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}BuyBackTariff), END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ errn = decode_iso2SalesTariffType(stream, &iso2SAScheduleTupleType->BuyBackTariff);
+ iso2SAScheduleTupleType->BuyBackTariff_isUsed = 1u;
+ grammarID = 3;
+ break;
+ case 1:
+ done = 1;
+ grammarID = 4;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 3:
+ /* Element[END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ done = 1;
+ grammarID = 4;
+ 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:2016:MsgDataTypes,WPT_EVSEChargeParameterType', base type name='EVSEEnergyTransferParameterType', content type='ELEMENT', isAbstract='false', hasTypeId='false', final='0', block='0', particle='("urn:iso:15118:2:2016:MsgDataTypes":EVSEMaximumPower,"urn:iso:15118:2:2016:MsgDataTypes":EVSEMinimumPower)', derivedBy='EXTENSION'. */
+static int decode_iso2WPT_EVSEChargeParameterType(bitstream_t* stream, struct iso2WPT_EVSEChargeParameterType* iso2WPT_EVSEChargeParameterType) {
+ int grammarID = 1810;
+ int done = 0;
+
+ init_iso2WPT_EVSEChargeParameterType(iso2WPT_EVSEChargeParameterType);
+
+ while(!done) {
+ switch(grammarID) {
+ case 1810:
+ /* FirstStartTag[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}EVSEMaximumPower)] */
+ errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ errn = decode_iso2PhysicalValueType(stream, &iso2WPT_EVSEChargeParameterType->EVSEMaximumPower);
+ grammarID = 1811;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 1811:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}EVSEMinimumPower)] */
+ errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ errn = decode_iso2PhysicalValueType(stream, &iso2WPT_EVSEChargeParameterType->EVSEMinimumPower);
+ grammarID = 3;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 3:
+ /* Element[END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ done = 1;
+ grammarID = 4;
+ 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:2016:MsgBody,FinePositioningResType', base type name='V2GResponseType', content type='ELEMENT', isAbstract='false', hasTypeId='false', final='0', block='0', particle='(("urn:iso:15118:2:2016:MsgBody":ResponseCode,"urn:iso:15118:2:2016:MsgBody":EVSEStatus{0-1}),("urn:iso:15118:2:2016:MsgBody":EVSEProcessing,"urn:iso:15118:2:2016:MsgDataTypes":EVSEFinePositioningParameters{0-1}))', derivedBy='EXTENSION'. */
+static int decode_iso2FinePositioningResType(bitstream_t* stream, struct iso2FinePositioningResType* iso2FinePositioningResType) {
+ int grammarID = 1812;
+ int done = 0;
+
+ init_iso2FinePositioningResType(iso2FinePositioningResType);
+
+ while(!done) {
+ switch(grammarID) {
+ case 1812:
+ /* FirstStartTag[START_ELEMENT({urn:iso:15118:2:2016:MsgBody}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, 5, &uint32);
+ iso2FinePositioningResType->ResponseCode = (iso2responseCodeType) 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({urn:iso:15118:2:2016:MsgBody}ResponseCode) ? */
+ errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
+ if(eventCode == 0) {
+ grammarID = 1813;
+ } else {
+ errn = EXI_DEVIANT_SUPPORT_NOT_DEPLOYED; /* or also typecast and nillable */
+ }
+ }
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 1813:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgBody}EVSEStatus), START_ELEMENT({urn:iso:15118:2:2016:MsgBody}EVSEProcessing)] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ errn = decode_iso2EVSEStatusType(stream, &iso2FinePositioningResType->EVSEStatus);
+ iso2FinePositioningResType->EVSEStatus_isUsed = 1u;
+ grammarID = 1814;
+ break;
+ case 1:
+ /* FirstStartTag[CHARACTERS[ENUMERATION]] */
+ errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
+ if(errn == 0) {
+ if(eventCode == 0) {
+ errn = decodeNBitUnsignedInteger(stream, 2, &uint32);
+ iso2FinePositioningResType->EVSEProcessing = (iso2EVSEProcessingType) 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({urn:iso:15118:2:2016:MsgBody}EVSEProcessing) ? */
+ errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
+ if(eventCode == 0) {
+ grammarID = 1815;
+ } else {
+ errn = EXI_DEVIANT_SUPPORT_NOT_DEPLOYED; /* or also typecast and nillable */
+ }
+ }
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 1814:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgBody}EVSEProcessing)] */
+ 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);
+ iso2FinePositioningResType->EVSEProcessing = (iso2EVSEProcessingType) 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({urn:iso:15118:2:2016:MsgBody}EVSEProcessing) ? */
+ errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
+ if(eventCode == 0) {
+ grammarID = 1815;
+ } else {
+ errn = EXI_DEVIANT_SUPPORT_NOT_DEPLOYED; /* or also typecast and nillable */
+ }
+ }
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 1815:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}EVSEFinePositioningParameters), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}Generic_EVSEFinePositioningParameters), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}LFA_EVSEFinePositioningParameters), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MV_EVSEFinePositioningParameters), END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 3, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ errn = decode_iso2EVSEFinePositioningParametersType(stream, &iso2FinePositioningResType->EVSEFinePositioningParameters);
+ iso2FinePositioningResType->EVSEFinePositioningParameters_isUsed = 1u;
+ grammarID = 3;
+ break;
+ case 1:
+ errn = decode_iso2Generic_EVSEFinePositioningParametersType(stream, &iso2FinePositioningResType->Generic_EVSEFinePositioningParameters);
+ iso2FinePositioningResType->Generic_EVSEFinePositioningParameters_isUsed = 1u;
+ grammarID = 3;
+ break;
+ case 2:
+ errn = decode_iso2LFA_EVSEFinePositioningParametersType(stream, &iso2FinePositioningResType->LFA_EVSEFinePositioningParameters);
+ iso2FinePositioningResType->LFA_EVSEFinePositioningParameters_isUsed = 1u;
+ grammarID = 3;
+ break;
+ case 3:
+ errn = decode_iso2MV_EVSEFinePositioningParametersType(stream, &iso2FinePositioningResType->MV_EVSEFinePositioningParameters);
+ iso2FinePositioningResType->MV_EVSEFinePositioningParameters_isUsed = 1u;
+ grammarID = 3;
+ break;
+ case 4:
+ done = 1;
+ grammarID = 4;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 3:
+ /* Element[END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ done = 1;
+ grammarID = 4;
+ 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:2016:MsgBody,BodyBaseType', base type name='anyType', content type='EMPTY', isAbstract='true', hasTypeId='false', final='0', block='0', derivedBy='RESTRICTION'. */
+static int decode_iso2BodyBaseType(bitstream_t* stream, struct iso2BodyBaseType* iso2BodyBaseType) {
+ int grammarID = 674;
+ int done = 0;
+
+ init_iso2BodyBaseType(iso2BodyBaseType);
+
+ while(!done) {
+ switch(grammarID) {
+ case 674:
+ /* FirstStartTag[END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ done = 1;
+ grammarID = 4;
+ 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:2016:MsgBody,ServiceDetailResType', base type name='V2GResponseType', content type='ELEMENT', isAbstract='false', hasTypeId='false', final='0', block='0', particle='(("urn:iso:15118:2:2016:MsgBody":ResponseCode,"urn:iso:15118:2:2016:MsgBody":EVSEStatus{0-1}),("urn:iso:15118:2:2016:MsgBody":ServiceID,"urn:iso:15118:2:2016:MsgBody":ServiceParameterList{0-1}))', derivedBy='EXTENSION'. */
+static int decode_iso2ServiceDetailResType(bitstream_t* stream, struct iso2ServiceDetailResType* iso2ServiceDetailResType) {
+ int grammarID = 1816;
+ int done = 0;
+
+ init_iso2ServiceDetailResType(iso2ServiceDetailResType);
+
+ while(!done) {
+ switch(grammarID) {
+ case 1816:
+ /* FirstStartTag[START_ELEMENT({urn:iso:15118:2:2016:MsgBody}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, 5, &uint32);
+ iso2ServiceDetailResType->ResponseCode = (iso2responseCodeType) 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({urn:iso:15118:2:2016:MsgBody}ResponseCode) ? */
+ errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
+ if(eventCode == 0) {
+ grammarID = 1817;
+ } else {
+ errn = EXI_DEVIANT_SUPPORT_NOT_DEPLOYED; /* or also typecast and nillable */
+ }
+ }
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 1817:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgBody}EVSEStatus), START_ELEMENT({urn:iso:15118:2:2016:MsgBody}ServiceID)] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ errn = decode_iso2EVSEStatusType(stream, &iso2ServiceDetailResType->EVSEStatus);
+ iso2ServiceDetailResType->EVSEStatus_isUsed = 1u;
+ grammarID = 1818;
+ break;
+ case 1:
+ /* FirstStartTag[CHARACTERS[UNSIGNED_INTEGER]] */
+ errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
+ if(errn == 0) {
+ if(eventCode == 0) {
+ errn = decodeUnsignedInteger16(stream, &iso2ServiceDetailResType->ServiceID);
+ } 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({urn:iso:15118:2:2016:MsgBody}ServiceID) ? */
+ errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
+ if(eventCode == 0) {
+ grammarID = 1819;
+ } else {
+ errn = EXI_DEVIANT_SUPPORT_NOT_DEPLOYED; /* or also typecast and nillable */
+ }
+ }
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 1818:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgBody}ServiceID)] */
+ errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ /* FirstStartTag[CHARACTERS[UNSIGNED_INTEGER]] */
+ errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
+ if(errn == 0) {
+ if(eventCode == 0) {
+ errn = decodeUnsignedInteger16(stream, &iso2ServiceDetailResType->ServiceID);
+ } 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({urn:iso:15118:2:2016:MsgBody}ServiceID) ? */
+ errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
+ if(eventCode == 0) {
+ grammarID = 1819;
+ } else {
+ errn = EXI_DEVIANT_SUPPORT_NOT_DEPLOYED; /* or also typecast and nillable */
+ }
+ }
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 1819:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgBody}ServiceParameterList), END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ errn = decode_iso2ServiceParameterListType(stream, &iso2ServiceDetailResType->ServiceParameterList);
+ iso2ServiceDetailResType->ServiceParameterList_isUsed = 1u;
+ grammarID = 3;
+ break;
+ case 1:
+ done = 1;
+ grammarID = 4;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 3:
+ /* Element[END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ done = 1;
+ grammarID = 4;
+ 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:2016:MsgBody,PowerDeliveryReqType', base type name='BodyBaseType', content type='ELEMENT', isAbstract='false', hasTypeId='false', final='0', block='0', particle='("urn:iso:15118:2:2016:MsgBody":ChargeProgress,"urn:iso:15118:2:2016:MsgBody":EVOperation{0-1},"urn:iso:15118:2:2016:MsgBody":SAScheduleTupleID{0-1},"urn:iso:15118:2:2016:MsgBody":ChargingProfile{0-1})', derivedBy='EXTENSION'. */
+static int decode_iso2PowerDeliveryReqType(bitstream_t* stream, struct iso2PowerDeliveryReqType* iso2PowerDeliveryReqType) {
+ int grammarID = 1820;
+ int done = 0;
+
+ init_iso2PowerDeliveryReqType(iso2PowerDeliveryReqType);
+
+ while(!done) {
+ switch(grammarID) {
+ case 1820:
+ /* FirstStartTag[START_ELEMENT({urn:iso:15118:2:2016:MsgBody}ChargeProgress)] */
+ 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);
+ iso2PowerDeliveryReqType->ChargeProgress = (iso2chargeProgressType) 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({urn:iso:15118:2:2016:MsgBody}ChargeProgress) ? */
+ errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
+ if(eventCode == 0) {
+ grammarID = 1821;
+ } else {
+ errn = EXI_DEVIANT_SUPPORT_NOT_DEPLOYED; /* or also typecast and nillable */
+ }
+ }
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 1821:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgBody}EVOperation), START_ELEMENT({urn:iso:15118:2:2016:MsgBody}SAScheduleTupleID), START_ELEMENT({urn:iso:15118:2:2016:MsgBody}ChargingProfile), END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 3, &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, 1, &uint32);
+ iso2PowerDeliveryReqType->EVOperation = (iso2EVOperationType) uint32;
+ iso2PowerDeliveryReqType->EVOperation_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({urn:iso:15118:2:2016:MsgBody}EVOperation) ? */
+ errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
+ if(eventCode == 0) {
+ grammarID = 1822;
+ } else {
+ errn = EXI_DEVIANT_SUPPORT_NOT_DEPLOYED; /* or also typecast and nillable */
+ }
+ }
+ break;
+ case 1:
+ /* FirstStartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
+ errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
+ if(errn == 0) {
+ if(eventCode == 0) {
+ errn = decodeNBitUnsignedInteger(stream, 8, &(uint32));
+ iso2PowerDeliveryReqType->SAScheduleTupleID = (uint8_t)(uint32 + 1);
+ iso2PowerDeliveryReqType->SAScheduleTupleID_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({urn:iso:15118:2:2016:MsgBody}SAScheduleTupleID) ? */
+ errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
+ if(eventCode == 0) {
+ grammarID = 1823;
+ } else {
+ errn = EXI_DEVIANT_SUPPORT_NOT_DEPLOYED; /* or also typecast and nillable */
+ }
+ }
+ break;
+ case 2:
+ errn = decode_iso2ChargingProfileType(stream, &iso2PowerDeliveryReqType->ChargingProfile);
+ iso2PowerDeliveryReqType->ChargingProfile_isUsed = 1u;
+ grammarID = 3;
+ break;
+ case 3:
+ done = 1;
+ grammarID = 4;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 1822:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgBody}SAScheduleTupleID), START_ELEMENT({urn:iso:15118:2:2016:MsgBody}ChargingProfile), 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));
+ iso2PowerDeliveryReqType->SAScheduleTupleID = (uint8_t)(uint32 + 1);
+ iso2PowerDeliveryReqType->SAScheduleTupleID_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({urn:iso:15118:2:2016:MsgBody}SAScheduleTupleID) ? */
+ errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
+ if(eventCode == 0) {
+ grammarID = 1823;
+ } else {
+ errn = EXI_DEVIANT_SUPPORT_NOT_DEPLOYED; /* or also typecast and nillable */
+ }
+ }
+ break;
+ case 1:
+ errn = decode_iso2ChargingProfileType(stream, &iso2PowerDeliveryReqType->ChargingProfile);
+ iso2PowerDeliveryReqType->ChargingProfile_isUsed = 1u;
+ grammarID = 3;
+ break;
+ case 2:
+ done = 1;
+ grammarID = 4;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 1823:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgBody}ChargingProfile), END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ errn = decode_iso2ChargingProfileType(stream, &iso2PowerDeliveryReqType->ChargingProfile);
+ iso2PowerDeliveryReqType->ChargingProfile_isUsed = 1u;
+ grammarID = 3;
+ break;
+ case 1:
+ done = 1;
+ grammarID = 4;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 3:
+ /* Element[END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ done = 1;
+ grammarID = 4;
+ 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:2016:MsgBody,PairingResType', base type name='V2GResponseType', content type='ELEMENT', isAbstract='false', hasTypeId='false', final='0', block='0', particle='(("urn:iso:15118:2:2016:MsgBody":ResponseCode,"urn:iso:15118:2:2016:MsgBody":EVSEStatus{0-1}),("urn:iso:15118:2:2016:MsgBody":EVSEProcessing,"urn:iso:15118:2:2016:MsgBody":PairingParameters{0-1}))', derivedBy='EXTENSION'. */
+static int decode_iso2PairingResType(bitstream_t* stream, struct iso2PairingResType* iso2PairingResType) {
+ int grammarID = 1824;
+ int done = 0;
+
+ init_iso2PairingResType(iso2PairingResType);
+
+ while(!done) {
+ switch(grammarID) {
+ case 1824:
+ /* FirstStartTag[START_ELEMENT({urn:iso:15118:2:2016:MsgBody}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, 5, &uint32);
+ iso2PairingResType->ResponseCode = (iso2responseCodeType) 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({urn:iso:15118:2:2016:MsgBody}ResponseCode) ? */
+ errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
+ if(eventCode == 0) {
+ grammarID = 1825;
+ } else {
+ errn = EXI_DEVIANT_SUPPORT_NOT_DEPLOYED; /* or also typecast and nillable */
+ }
+ }
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 1825:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgBody}EVSEStatus), START_ELEMENT({urn:iso:15118:2:2016:MsgBody}EVSEProcessing)] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ errn = decode_iso2EVSEStatusType(stream, &iso2PairingResType->EVSEStatus);
+ iso2PairingResType->EVSEStatus_isUsed = 1u;
+ grammarID = 1826;
+ break;
+ case 1:
+ /* FirstStartTag[CHARACTERS[ENUMERATION]] */
+ errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
+ if(errn == 0) {
+ if(eventCode == 0) {
+ errn = decodeNBitUnsignedInteger(stream, 2, &uint32);
+ iso2PairingResType->EVSEProcessing = (iso2EVSEProcessingType) 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({urn:iso:15118:2:2016:MsgBody}EVSEProcessing) ? */
+ errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
+ if(eventCode == 0) {
+ grammarID = 1827;
+ } else {
+ errn = EXI_DEVIANT_SUPPORT_NOT_DEPLOYED; /* or also typecast and nillable */
+ }
+ }
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 1826:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgBody}EVSEProcessing)] */
+ 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);
+ iso2PairingResType->EVSEProcessing = (iso2EVSEProcessingType) 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({urn:iso:15118:2:2016:MsgBody}EVSEProcessing) ? */
+ errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
+ if(eventCode == 0) {
+ grammarID = 1827;
+ } else {
+ errn = EXI_DEVIANT_SUPPORT_NOT_DEPLOYED; /* or also typecast and nillable */
+ }
+ }
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 1827:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgBody}PairingParameters), END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ errn = decode_iso2ParameterSetType(stream, &iso2PairingResType->PairingParameters);
+ iso2PairingResType->PairingParameters_isUsed = 1u;
+ grammarID = 3;
+ break;
+ case 1:
+ done = 1;
+ grammarID = 4;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 3:
+ /* Element[END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ done = 1;
+ grammarID = 4;
+ 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:2016:MsgBody,AuthorizationReqType', base type name='BodyBaseType', content type='ELEMENT', isAbstract='false', hasTypeId='false', final='0', block='0', particle='("urn:iso:15118:2:2016:MsgBody":GenChallenge{0-1})', derivedBy='EXTENSION'. */
+static int decode_iso2AuthorizationReqType(bitstream_t* stream, struct iso2AuthorizationReqType* iso2AuthorizationReqType) {
+ int grammarID = 1828;
+ int done = 0;
+
+ init_iso2AuthorizationReqType(iso2AuthorizationReqType);
+
+ while(!done) {
+ switch(grammarID) {
+ case 1828:
+ /* FirstStartTag[ATTRIBUTE[STRING]({urn:iso:15118:2:2016:MsgBody}Id), START_ELEMENT({urn:iso:15118:2:2016:MsgBody}GenChallenge), END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ errn = decodeUnsignedInteger16(stream, &iso2AuthorizationReqType->Id.charactersLen);
+ if (errn == 0) {
+ if (iso2AuthorizationReqType->Id.charactersLen >= 2) {
+ iso2AuthorizationReqType->Id.charactersLen = (uint16_t)(iso2AuthorizationReqType->Id.charactersLen - 2); /* string table miss */
+ errn = decodeCharacters(stream, iso2AuthorizationReqType->Id.charactersLen, iso2AuthorizationReqType->Id.characters, iso2AuthorizationReqType_Id_CHARACTERS_SIZE);
+ } else {
+ /* string table hit */
+ errn = EXI_ERROR_STRINGVALUES_NOT_SUPPORTED;
+ }
+ }
+ iso2AuthorizationReqType->Id_isUsed = 1u;
+ grammarID = 1829;
+ break;
+ case 1:
+ /* FirstStartTag[CHARACTERS[BINARY_BASE64]] */
+ errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
+ if(errn == 0) {
+ if(eventCode == 0) {
+ errn = decodeUnsignedInteger16(stream, &iso2AuthorizationReqType->GenChallenge.bytesLen);
+ if (errn == 0) {
+ errn = (iso2AuthorizationReqType->GenChallenge.bytesLen) <= iso2AuthorizationReqType_GenChallenge_BYTES_SIZE ? 0 : EXI_ERROR_OUT_OF_BYTE_BUFFER;
+ }
+ if (errn == 0) {
+ errn = decodeBytes(stream, iso2AuthorizationReqType->GenChallenge.bytesLen, iso2AuthorizationReqType->GenChallenge.bytes);
+ }
+ iso2AuthorizationReqType->GenChallenge_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({urn:iso:15118:2:2016:MsgBody}GenChallenge) ? */
+ errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
+ if(eventCode == 0) {
+ grammarID = 3;
+ } else {
+ errn = EXI_DEVIANT_SUPPORT_NOT_DEPLOYED; /* or also typecast and nillable */
+ }
+ }
+ break;
+ case 2:
+ done = 1;
+ grammarID = 4;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 1829:
+ /* StartTag[START_ELEMENT({urn:iso:15118:2:2016:MsgBody}GenChallenge), END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ /* FirstStartTag[CHARACTERS[BINARY_BASE64]] */
+ errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
+ if(errn == 0) {
+ if(eventCode == 0) {
+ errn = decodeUnsignedInteger16(stream, &iso2AuthorizationReqType->GenChallenge.bytesLen);
+ if (errn == 0) {
+ errn = (iso2AuthorizationReqType->GenChallenge.bytesLen) <= iso2AuthorizationReqType_GenChallenge_BYTES_SIZE ? 0 : EXI_ERROR_OUT_OF_BYTE_BUFFER;
+ }
+ if (errn == 0) {
+ errn = decodeBytes(stream, iso2AuthorizationReqType->GenChallenge.bytesLen, iso2AuthorizationReqType->GenChallenge.bytes);
+ }
+ iso2AuthorizationReqType->GenChallenge_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({urn:iso:15118:2:2016:MsgBody}GenChallenge) ? */
+ errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
+ if(eventCode == 0) {
+ grammarID = 3;
+ } else {
+ errn = EXI_DEVIANT_SUPPORT_NOT_DEPLOYED; /* or also typecast and nillable */
+ }
+ }
+ break;
+ case 1:
+ done = 1;
+ grammarID = 4;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 3:
+ /* Element[END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ done = 1;
+ grammarID = 4;
+ 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:2016:MsgDataTypes,ParameterSetType', base type name='anyType', content type='ELEMENT', isAbstract='false', hasTypeId='false', final='0', block='0', particle='("urn:iso:15118:2:2016:MsgDataTypes":ParameterSetID,"urn:iso:15118:2:2016:MsgDataTypes":Parameter{1-16})', derivedBy='RESTRICTION'. */
+static int decode_iso2ParameterSetType(bitstream_t* stream, struct iso2ParameterSetType* iso2ParameterSetType) {
+ int grammarID = 1830;
+ int done = 0;
+
+ init_iso2ParameterSetType(iso2ParameterSetType);
+
+ while(!done) {
+ switch(grammarID) {
+ case 1830:
+ /* FirstStartTag[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}ParameterSetID)] */
+ errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ /* First(xsi:type)StartTag[CHARACTERS[UNSIGNED_INTEGER]] */
+ errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
+ if(errn == 0) {
+ if(eventCode == 0) {
+ errn = decodeUnsignedInteger16(stream, &iso2ParameterSetType->ParameterSetID);
+ } 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({urn:iso:15118:2:2016:MsgDataTypes}ParameterSetID) ? */
+ errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
+ if(eventCode == 0) {
+ grammarID = 1831;
+ } else {
+ errn = EXI_DEVIANT_SUPPORT_NOT_DEPLOYED; /* or also typecast and nillable */
+ }
+ }
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 1831:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}Parameter)] */
+ errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ if (iso2ParameterSetType->Parameter.arrayLen < iso2ParameterSetType_Parameter_ARRAY_SIZE) {
+ errn = decode_iso2ParameterType(stream, &iso2ParameterSetType->Parameter.array[iso2ParameterSetType->Parameter.arrayLen++]);
+ } else {
+ errn = EXI_ERROR_OUT_OF_BOUNDS;
+ }
+ grammarID = 1832;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 1832:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}Parameter), END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ if (iso2ParameterSetType->Parameter.arrayLen < iso2ParameterSetType_Parameter_ARRAY_SIZE) {
+ errn = decode_iso2ParameterType(stream, &iso2ParameterSetType->Parameter.array[iso2ParameterSetType->Parameter.arrayLen++]);
+ } else {
+ errn = EXI_ERROR_OUT_OF_BOUNDS;
+ }
+ grammarID = 1833;
+ break;
+ case 1:
+ done = 1;
+ grammarID = 4;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 1833:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}Parameter), END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ if (iso2ParameterSetType->Parameter.arrayLen < iso2ParameterSetType_Parameter_ARRAY_SIZE) {
+ errn = decode_iso2ParameterType(stream, &iso2ParameterSetType->Parameter.array[iso2ParameterSetType->Parameter.arrayLen++]);
+ } else {
+ errn = EXI_ERROR_OUT_OF_BOUNDS;
+ }
+ grammarID = 1834;
+ break;
+ case 1:
+ done = 1;
+ grammarID = 4;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 1834:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}Parameter), END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ if (iso2ParameterSetType->Parameter.arrayLen < iso2ParameterSetType_Parameter_ARRAY_SIZE) {
+ errn = decode_iso2ParameterType(stream, &iso2ParameterSetType->Parameter.array[iso2ParameterSetType->Parameter.arrayLen++]);
+ } else {
+ errn = EXI_ERROR_OUT_OF_BOUNDS;
+ }
+ grammarID = 1835;
+ break;
+ case 1:
+ done = 1;
+ grammarID = 4;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 1835:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}Parameter), END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ if (iso2ParameterSetType->Parameter.arrayLen < iso2ParameterSetType_Parameter_ARRAY_SIZE) {
+ errn = decode_iso2ParameterType(stream, &iso2ParameterSetType->Parameter.array[iso2ParameterSetType->Parameter.arrayLen++]);
+ } else {
+ errn = EXI_ERROR_OUT_OF_BOUNDS;
+ }
+ grammarID = 1836;
+ break;
+ case 1:
+ done = 1;
+ grammarID = 4;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 1836:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}Parameter), END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ if (iso2ParameterSetType->Parameter.arrayLen < iso2ParameterSetType_Parameter_ARRAY_SIZE) {
+ errn = decode_iso2ParameterType(stream, &iso2ParameterSetType->Parameter.array[iso2ParameterSetType->Parameter.arrayLen++]);
+ } else {
+ errn = EXI_ERROR_OUT_OF_BOUNDS;
+ }
+ grammarID = 1837;
+ break;
+ case 1:
+ done = 1;
+ grammarID = 4;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 1837:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}Parameter), END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ if (iso2ParameterSetType->Parameter.arrayLen < iso2ParameterSetType_Parameter_ARRAY_SIZE) {
+ errn = decode_iso2ParameterType(stream, &iso2ParameterSetType->Parameter.array[iso2ParameterSetType->Parameter.arrayLen++]);
+ } else {
+ errn = EXI_ERROR_OUT_OF_BOUNDS;
+ }
+ grammarID = 1838;
+ break;
+ case 1:
+ done = 1;
+ grammarID = 4;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 1838:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}Parameter), END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ if (iso2ParameterSetType->Parameter.arrayLen < iso2ParameterSetType_Parameter_ARRAY_SIZE) {
+ errn = decode_iso2ParameterType(stream, &iso2ParameterSetType->Parameter.array[iso2ParameterSetType->Parameter.arrayLen++]);
+ } else {
+ errn = EXI_ERROR_OUT_OF_BOUNDS;
+ }
+ grammarID = 1839;
+ break;
+ case 1:
+ done = 1;
+ grammarID = 4;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 1839:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}Parameter), END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ if (iso2ParameterSetType->Parameter.arrayLen < iso2ParameterSetType_Parameter_ARRAY_SIZE) {
+ errn = decode_iso2ParameterType(stream, &iso2ParameterSetType->Parameter.array[iso2ParameterSetType->Parameter.arrayLen++]);
+ } else {
+ errn = EXI_ERROR_OUT_OF_BOUNDS;
+ }
+ grammarID = 1840;
+ break;
+ case 1:
+ done = 1;
+ grammarID = 4;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 1840:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}Parameter), END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ if (iso2ParameterSetType->Parameter.arrayLen < iso2ParameterSetType_Parameter_ARRAY_SIZE) {
+ errn = decode_iso2ParameterType(stream, &iso2ParameterSetType->Parameter.array[iso2ParameterSetType->Parameter.arrayLen++]);
+ } else {
+ errn = EXI_ERROR_OUT_OF_BOUNDS;
+ }
+ grammarID = 1841;
+ break;
+ case 1:
+ done = 1;
+ grammarID = 4;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 1841:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}Parameter), END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ if (iso2ParameterSetType->Parameter.arrayLen < iso2ParameterSetType_Parameter_ARRAY_SIZE) {
+ errn = decode_iso2ParameterType(stream, &iso2ParameterSetType->Parameter.array[iso2ParameterSetType->Parameter.arrayLen++]);
+ } else {
+ errn = EXI_ERROR_OUT_OF_BOUNDS;
+ }
+ grammarID = 1842;
+ break;
+ case 1:
+ done = 1;
+ grammarID = 4;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 1842:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}Parameter), END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ if (iso2ParameterSetType->Parameter.arrayLen < iso2ParameterSetType_Parameter_ARRAY_SIZE) {
+ errn = decode_iso2ParameterType(stream, &iso2ParameterSetType->Parameter.array[iso2ParameterSetType->Parameter.arrayLen++]);
+ } else {
+ errn = EXI_ERROR_OUT_OF_BOUNDS;
+ }
+ grammarID = 1843;
+ break;
+ case 1:
+ done = 1;
+ grammarID = 4;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 1843:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}Parameter), END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ if (iso2ParameterSetType->Parameter.arrayLen < iso2ParameterSetType_Parameter_ARRAY_SIZE) {
+ errn = decode_iso2ParameterType(stream, &iso2ParameterSetType->Parameter.array[iso2ParameterSetType->Parameter.arrayLen++]);
+ } else {
+ errn = EXI_ERROR_OUT_OF_BOUNDS;
+ }
+ grammarID = 1844;
+ break;
+ case 1:
+ done = 1;
+ grammarID = 4;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 1844:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}Parameter), END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ if (iso2ParameterSetType->Parameter.arrayLen < iso2ParameterSetType_Parameter_ARRAY_SIZE) {
+ errn = decode_iso2ParameterType(stream, &iso2ParameterSetType->Parameter.array[iso2ParameterSetType->Parameter.arrayLen++]);
+ } else {
+ errn = EXI_ERROR_OUT_OF_BOUNDS;
+ }
+ grammarID = 1845;
+ break;
+ case 1:
+ done = 1;
+ grammarID = 4;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 1845:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}Parameter), END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ if (iso2ParameterSetType->Parameter.arrayLen < iso2ParameterSetType_Parameter_ARRAY_SIZE) {
+ errn = decode_iso2ParameterType(stream, &iso2ParameterSetType->Parameter.array[iso2ParameterSetType->Parameter.arrayLen++]);
+ } else {
+ errn = EXI_ERROR_OUT_OF_BOUNDS;
+ }
+ grammarID = 1846;
+ break;
+ case 1:
+ done = 1;
+ grammarID = 4;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 1846:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}Parameter), END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ if (iso2ParameterSetType->Parameter.arrayLen < iso2ParameterSetType_Parameter_ARRAY_SIZE) {
+ errn = decode_iso2ParameterType(stream, &iso2ParameterSetType->Parameter.array[iso2ParameterSetType->Parameter.arrayLen++]);
+ } else {
+ errn = EXI_ERROR_OUT_OF_BOUNDS;
+ }
+ grammarID = 3;
+ break;
+ case 1:
+ done = 1;
+ grammarID = 4;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 3:
+ /* Element[END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ done = 1;
+ grammarID = 4;
+ 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='http://www.w3.org/2000/09/xmldsig#,SPKIDataType', base type name='anyType', content type='ELEMENT', isAbstract='false', hasTypeId='false', final='0', block='0', particle='("http://www.w3.org/2000/09/xmldsig#":SPKISexp,(WC[##other:"http://www.w3.org/2000/09/xmldsig#"]){0-1}){1-UNBOUNDED}', derivedBy='RESTRICTION'. */
+static int decode_iso2SPKIDataType(bitstream_t* stream, struct iso2SPKIDataType* iso2SPKIDataType) {
+ int grammarID = 1847;
+ int done = 0;
+
+ init_iso2SPKIDataType(iso2SPKIDataType);
+
+ while(!done) {
+ switch(grammarID) {
+ case 1847:
+ /* FirstStartTag[START_ELEMENT({http://www.w3.org/2000/09/xmldsig#}SPKISexp)] */
+ errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ if (iso2SPKIDataType->SPKISexp.arrayLen < iso2SPKIDataType_SPKISexp_ARRAY_SIZE) {
+ /* First(xsi:type)StartTag[CHARACTERS[BINARY_BASE64]] */
+ errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
+ if(errn == 0) {
+ if(eventCode == 0) {
+ errn = decodeUnsignedInteger16(stream, &iso2SPKIDataType->SPKISexp.array[iso2SPKIDataType->SPKISexp.arrayLen].bytesLen);
+ if (errn == 0) {
+ errn = (iso2SPKIDataType->SPKISexp.array[iso2SPKIDataType->SPKISexp.arrayLen].bytesLen) <= iso2SPKIDataType_SPKISexp_BYTES_SIZE ? 0 : EXI_ERROR_OUT_OF_BYTE_BUFFER;
+ }
+ if (errn == 0) {
+ errn = decodeBytes(stream, iso2SPKIDataType->SPKISexp.array[iso2SPKIDataType->SPKISexp.arrayLen].bytesLen, iso2SPKIDataType->SPKISexp.array[iso2SPKIDataType->SPKISexp.arrayLen].bytes);
+ }
+ iso2SPKIDataType->SPKISexp.arrayLen++;
+ } else {
+ /* Second level event (e.g., xsi:type, xsi:nil, ...) */
+ errn = EXI_UNSUPPORTED_EVENT_CODE_CHARACTERISTICS;
+ }
+ }
+ } else {
+ errn = EXI_ERROR_OUT_OF_BOUNDS;
+ }
+ if(errn == 0) {
+ /* valid EE for simple element START_ELEMENT({http://www.w3.org/2000/09/xmldsig#}SPKISexp) ? */
+ errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
+ if(eventCode == 0) {
+ grammarID = 1848;
+ } else {
+ errn = EXI_DEVIANT_SUPPORT_NOT_DEPLOYED; /* or also typecast and nillable */
+ }
+ }
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 1848:
+ /* Element[START_ELEMENT({http://www.w3.org/2000/09/xmldsig#}SPKISexp), START_ELEMENT_GENERIC, END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ if (iso2SPKIDataType->SPKISexp.arrayLen < iso2SPKIDataType_SPKISexp_ARRAY_SIZE) {
+ /* First(xsi:type)StartTag[CHARACTERS[BINARY_BASE64]] */
+ errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
+ if(errn == 0) {
+ if(eventCode == 0) {
+ errn = decodeUnsignedInteger16(stream, &iso2SPKIDataType->SPKISexp.array[iso2SPKIDataType->SPKISexp.arrayLen].bytesLen);
+ if (errn == 0) {
+ errn = (iso2SPKIDataType->SPKISexp.array[iso2SPKIDataType->SPKISexp.arrayLen].bytesLen) <= iso2SPKIDataType_SPKISexp_BYTES_SIZE ? 0 : EXI_ERROR_OUT_OF_BYTE_BUFFER;
+ }
+ if (errn == 0) {
+ errn = decodeBytes(stream, iso2SPKIDataType->SPKISexp.array[iso2SPKIDataType->SPKISexp.arrayLen].bytesLen, iso2SPKIDataType->SPKISexp.array[iso2SPKIDataType->SPKISexp.arrayLen].bytes);
+ }
+ iso2SPKIDataType->SPKISexp.arrayLen++;
+ } else {
+ /* Second level event (e.g., xsi:type, xsi:nil, ...) */
+ errn = EXI_UNSUPPORTED_EVENT_CODE_CHARACTERISTICS;
+ }
+ }
+ } else {
+ errn = EXI_ERROR_OUT_OF_BOUNDS;
+ }
+ if(errn == 0) {
+ /* valid EE for simple element START_ELEMENT({http://www.w3.org/2000/09/xmldsig#}SPKISexp) ? */
+ errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
+ if(eventCode == 0) {
+ grammarID = 1848;
+ } else {
+ errn = EXI_DEVIANT_SUPPORT_NOT_DEPLOYED; /* or also typecast and nillable */
+ }
+ }
+ break;
+ case 1:
+ errn = EXI_UNSUPPORTED_EVENT_CODE_CHARACTERISTICS;
+ /* TODO unsupported event : START_ELEMENT_GENERIC */
+ grammarID = 1849;
+ break;
+ case 2:
+ done = 1;
+ grammarID = 4;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 1849:
+ /* Element[START_ELEMENT({http://www.w3.org/2000/09/xmldsig#}SPKISexp), END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ if (iso2SPKIDataType->SPKISexp.arrayLen < iso2SPKIDataType_SPKISexp_ARRAY_SIZE) {
+ /* First(xsi:type)StartTag[CHARACTERS[BINARY_BASE64]] */
+ errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
+ if(errn == 0) {
+ if(eventCode == 0) {
+ errn = decodeUnsignedInteger16(stream, &iso2SPKIDataType->SPKISexp.array[iso2SPKIDataType->SPKISexp.arrayLen].bytesLen);
+ if (errn == 0) {
+ errn = (iso2SPKIDataType->SPKISexp.array[iso2SPKIDataType->SPKISexp.arrayLen].bytesLen) <= iso2SPKIDataType_SPKISexp_BYTES_SIZE ? 0 : EXI_ERROR_OUT_OF_BYTE_BUFFER;
+ }
+ if (errn == 0) {
+ errn = decodeBytes(stream, iso2SPKIDataType->SPKISexp.array[iso2SPKIDataType->SPKISexp.arrayLen].bytesLen, iso2SPKIDataType->SPKISexp.array[iso2SPKIDataType->SPKISexp.arrayLen].bytes);
+ }
+ iso2SPKIDataType->SPKISexp.arrayLen++;
+ } else {
+ /* Second level event (e.g., xsi:type, xsi:nil, ...) */
+ errn = EXI_UNSUPPORTED_EVENT_CODE_CHARACTERISTICS;
+ }
+ }
+ } else {
+ errn = EXI_ERROR_OUT_OF_BOUNDS;
+ }
+ if(errn == 0) {
+ /* valid EE for simple element START_ELEMENT({http://www.w3.org/2000/09/xmldsig#}SPKISexp) ? */
+ errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
+ if(eventCode == 0) {
+ grammarID = 1848;
+ } else {
+ errn = EXI_DEVIANT_SUPPORT_NOT_DEPLOYED; /* or also typecast and nillable */
+ }
+ }
+ break;
+ case 1:
+ done = 1;
+ grammarID = 4;
+ 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:2016:MsgBody,PaymentDetailsResType', base type name='V2GResponseType', content type='ELEMENT', isAbstract='false', hasTypeId='false', final='0', block='0', particle='(("urn:iso:15118:2:2016:MsgBody":ResponseCode,"urn:iso:15118:2:2016:MsgBody":EVSEStatus{0-1}),("urn:iso:15118:2:2016:MsgBody":GenChallenge,"urn:iso:15118:2:2016:MsgBody":EVSETimeStamp))', derivedBy='EXTENSION'. */
+static int decode_iso2PaymentDetailsResType(bitstream_t* stream, struct iso2PaymentDetailsResType* iso2PaymentDetailsResType) {
+ int grammarID = 1850;
+ int done = 0;
+
+ init_iso2PaymentDetailsResType(iso2PaymentDetailsResType);
+
+ while(!done) {
+ switch(grammarID) {
+ case 1850:
+ /* FirstStartTag[START_ELEMENT({urn:iso:15118:2:2016:MsgBody}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, 5, &uint32);
+ iso2PaymentDetailsResType->ResponseCode = (iso2responseCodeType) 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({urn:iso:15118:2:2016:MsgBody}ResponseCode) ? */
+ errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
+ if(eventCode == 0) {
+ grammarID = 1851;
+ } else {
+ errn = EXI_DEVIANT_SUPPORT_NOT_DEPLOYED; /* or also typecast and nillable */
+ }
+ }
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 1851:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgBody}EVSEStatus), START_ELEMENT({urn:iso:15118:2:2016:MsgBody}GenChallenge)] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ errn = decode_iso2EVSEStatusType(stream, &iso2PaymentDetailsResType->EVSEStatus);
+ iso2PaymentDetailsResType->EVSEStatus_isUsed = 1u;
+ grammarID = 1852;
+ break;
+ case 1:
+ /* FirstStartTag[CHARACTERS[BINARY_BASE64]] */
+ errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
+ if(errn == 0) {
+ if(eventCode == 0) {
+ errn = decodeUnsignedInteger16(stream, &iso2PaymentDetailsResType->GenChallenge.bytesLen);
+ if (errn == 0) {
+ errn = (iso2PaymentDetailsResType->GenChallenge.bytesLen) <= iso2PaymentDetailsResType_GenChallenge_BYTES_SIZE ? 0 : EXI_ERROR_OUT_OF_BYTE_BUFFER;
+ }
+ if (errn == 0) {
+ errn = decodeBytes(stream, iso2PaymentDetailsResType->GenChallenge.bytesLen, iso2PaymentDetailsResType->GenChallenge.bytes);
+ }
+ } 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({urn:iso:15118:2:2016:MsgBody}GenChallenge) ? */
+ errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
+ if(eventCode == 0) {
+ grammarID = 1853;
+ } else {
+ errn = EXI_DEVIANT_SUPPORT_NOT_DEPLOYED; /* or also typecast and nillable */
+ }
+ }
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 1852:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgBody}GenChallenge)] */
+ errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ /* FirstStartTag[CHARACTERS[BINARY_BASE64]] */
+ errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
+ if(errn == 0) {
+ if(eventCode == 0) {
+ errn = decodeUnsignedInteger16(stream, &iso2PaymentDetailsResType->GenChallenge.bytesLen);
+ if (errn == 0) {
+ errn = (iso2PaymentDetailsResType->GenChallenge.bytesLen) <= iso2PaymentDetailsResType_GenChallenge_BYTES_SIZE ? 0 : EXI_ERROR_OUT_OF_BYTE_BUFFER;
+ }
+ if (errn == 0) {
+ errn = decodeBytes(stream, iso2PaymentDetailsResType->GenChallenge.bytesLen, iso2PaymentDetailsResType->GenChallenge.bytes);
+ }
+ } 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({urn:iso:15118:2:2016:MsgBody}GenChallenge) ? */
+ errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
+ if(eventCode == 0) {
+ grammarID = 1853;
+ } else {
+ errn = EXI_DEVIANT_SUPPORT_NOT_DEPLOYED; /* or also typecast and nillable */
+ }
+ }
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 1853:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgBody}EVSETimeStamp)] */
+ errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ /* First(xsi:type)StartTag[CHARACTERS[INTEGER]] */
+ errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
+ if(errn == 0) {
+ if(eventCode == 0) {
+ errn = decodeInteger64(stream, &iso2PaymentDetailsResType->EVSETimeStamp);
+ } 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({urn:iso:15118:2:2016:MsgBody}EVSETimeStamp) ? */
+ errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
+ if(eventCode == 0) {
+ grammarID = 3;
+ } else {
+ errn = EXI_DEVIANT_SUPPORT_NOT_DEPLOYED; /* or also typecast and nillable */
+ }
+ }
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 3:
+ /* Element[END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ done = 1;
+ grammarID = 4;
+ 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='http://www.w3.org/2000/09/xmldsig#,SignatureMethodType', base type name='anyType', content type='MIXED', isAbstract='false', hasTypeId='false', final='0', block='0', particle='("http://www.w3.org/2000/09/xmldsig#":HMACOutputLength{0-1},(WC[##other:"http://www.w3.org/2000/09/xmldsig#"]){0-UNBOUNDED})', derivedBy='RESTRICTION'. */
+static int decode_iso2SignatureMethodType(bitstream_t* stream, struct iso2SignatureMethodType* iso2SignatureMethodType) {
+ int grammarID = 1854;
+ int done = 0;
+
+ init_iso2SignatureMethodType(iso2SignatureMethodType);
+
+ while(!done) {
+ switch(grammarID) {
+ case 1854:
+ /* FirstStartTag[ATTRIBUTE[STRING](Algorithm)] */
+ errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ errn = decodeUnsignedInteger16(stream, &iso2SignatureMethodType->Algorithm.charactersLen);
+ if (errn == 0) {
+ if (iso2SignatureMethodType->Algorithm.charactersLen >= 2) {
+ iso2SignatureMethodType->Algorithm.charactersLen = (uint16_t)(iso2SignatureMethodType->Algorithm.charactersLen - 2); /* string table miss */
+ errn = decodeCharacters(stream, iso2SignatureMethodType->Algorithm.charactersLen, iso2SignatureMethodType->Algorithm.characters, iso2SignatureMethodType_Algorithm_CHARACTERS_SIZE);
+ } else {
+ /* string table hit */
+ errn = EXI_ERROR_STRINGVALUES_NOT_SUPPORTED;
+ }
+ }
+ grammarID = 1855;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 1855:
+ /* StartTag[START_ELEMENT({http://www.w3.org/2000/09/xmldsig#}HMACOutputLength), START_ELEMENT_GENERIC, END_ELEMENT, CHARACTERS_GENERIC[STRING]] */
+ errn = decodeNBitUnsignedInteger(stream, 3, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ /* FirstStartTag[CHARACTERS[INTEGER]] */
+ errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
+ if(errn == 0) {
+ if(eventCode == 0) {
+ errn = decodeInteger64(stream, &iso2SignatureMethodType->HMACOutputLength);
+ iso2SignatureMethodType->HMACOutputLength_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({http://www.w3.org/2000/09/xmldsig#}HMACOutputLength) ? */
+ errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
+ if(eventCode == 0) {
+ grammarID = 685;
+ } else {
+ errn = EXI_DEVIANT_SUPPORT_NOT_DEPLOYED; /* or also typecast and nillable */
+ }
+ }
+ break;
+ case 1:
+ errn = EXI_UNSUPPORTED_EVENT_CODE_CHARACTERISTICS;
+ /* TODO unsupported event : START_ELEMENT_GENERIC */
+ grammarID = 685;
+ break;
+ case 2:
+ done = 1;
+ grammarID = 4;
+ break;
+ case 3:
+ errn = decodeUnsignedInteger16(stream, &iso2SignatureMethodType->ANY.charactersLen);
+ if (errn == 0) {
+ if (iso2SignatureMethodType->ANY.charactersLen >= 2) {
+ iso2SignatureMethodType->ANY.charactersLen = (uint16_t)(iso2SignatureMethodType->ANY.charactersLen - 2); /* string table miss */
+ errn = decodeCharacters(stream, iso2SignatureMethodType->ANY.charactersLen, iso2SignatureMethodType->ANY.characters, iso2SignatureMethodType_ANY_CHARACTERS_SIZE);
+ } else {
+ /* string table hit */
+ errn = EXI_ERROR_STRINGVALUES_NOT_SUPPORTED;
+ }
+ }
+ iso2SignatureMethodType->ANY_isUsed = 1u;
+ grammarID = 1856;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 685:
+ /* Element[START_ELEMENT_GENERIC, END_ELEMENT, CHARACTERS_GENERIC[STRING]] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ errn = EXI_UNSUPPORTED_EVENT_CODE_CHARACTERISTICS;
+ /* TODO unsupported event : START_ELEMENT_GENERIC */
+ grammarID = 685;
+ break;
+ case 1:
+ done = 1;
+ grammarID = 4;
+ break;
+ case 2:
+ errn = decodeUnsignedInteger16(stream, &iso2SignatureMethodType->ANY.charactersLen);
+ if (errn == 0) {
+ if (iso2SignatureMethodType->ANY.charactersLen >= 2) {
+ iso2SignatureMethodType->ANY.charactersLen = (uint16_t)(iso2SignatureMethodType->ANY.charactersLen - 2); /* string table miss */
+ errn = decodeCharacters(stream, iso2SignatureMethodType->ANY.charactersLen, iso2SignatureMethodType->ANY.characters, iso2SignatureMethodType_ANY_CHARACTERS_SIZE);
+ } else {
+ /* string table hit */
+ errn = EXI_ERROR_STRINGVALUES_NOT_SUPPORTED;
+ }
+ }
+ iso2SignatureMethodType->ANY_isUsed = 1u;
+ grammarID = 685;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 1856:
+ /* Element[START_ELEMENT({http://www.w3.org/2000/09/xmldsig#}HMACOutputLength), START_ELEMENT_GENERIC, END_ELEMENT, CHARACTERS_GENERIC[STRING]] */
+ errn = decodeNBitUnsignedInteger(stream, 3, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ /* FirstStartTag[CHARACTERS[INTEGER]] */
+ errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
+ if(errn == 0) {
+ if(eventCode == 0) {
+ errn = decodeInteger64(stream, &iso2SignatureMethodType->HMACOutputLength);
+ iso2SignatureMethodType->HMACOutputLength_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({http://www.w3.org/2000/09/xmldsig#}HMACOutputLength) ? */
+ errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
+ if(eventCode == 0) {
+ grammarID = 685;
+ } else {
+ errn = EXI_DEVIANT_SUPPORT_NOT_DEPLOYED; /* or also typecast and nillable */
+ }
+ }
+ break;
+ case 1:
+ errn = EXI_UNSUPPORTED_EVENT_CODE_CHARACTERISTICS;
+ /* TODO unsupported event : START_ELEMENT_GENERIC */
+ grammarID = 685;
+ break;
+ case 2:
+ done = 1;
+ grammarID = 4;
+ break;
+ case 3:
+ errn = decodeUnsignedInteger16(stream, &iso2SignatureMethodType->ANY.charactersLen);
+ if (errn == 0) {
+ if (iso2SignatureMethodType->ANY.charactersLen >= 2) {
+ iso2SignatureMethodType->ANY.charactersLen = (uint16_t)(iso2SignatureMethodType->ANY.charactersLen - 2); /* string table miss */
+ errn = decodeCharacters(stream, iso2SignatureMethodType->ANY.charactersLen, iso2SignatureMethodType->ANY.characters, iso2SignatureMethodType_ANY_CHARACTERS_SIZE);
+ } else {
+ /* string table hit */
+ errn = EXI_ERROR_STRINGVALUES_NOT_SUPPORTED;
+ }
+ }
+ iso2SignatureMethodType->ANY_isUsed = 1u;
+ grammarID = 1856;
+ 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:2016:MsgBody,AC_BidirectionalControlResType', base type name='V2GResponseType', content type='ELEMENT', isAbstract='false', hasTypeId='false', final='0', block='0', particle='(("urn:iso:15118:2:2016:MsgBody":ResponseCode,"urn:iso:15118:2:2016:MsgBody":EVSEStatus{0-1}),("urn:iso:15118:2:2016:MsgBody":EVSEProcessing,"urn:iso:15118:2:2016:MsgBody":EVSETargetPower,"urn:iso:15118:2:2016:MsgBody":EVSETargetReactivePower,"urn:iso:15118:2:2016:MsgBody":EVSEID,"urn:iso:15118:2:2016:MsgBody":SAScheduleTupleID{0-1},"urn:iso:15118:2:2016:MsgBody":MeterInfo{0-1},"urn:iso:15118:2:2016:MsgBody":ReceiptRequired{0-1}))', derivedBy='EXTENSION'. */
+static int decode_iso2AC_BidirectionalControlResType(bitstream_t* stream, struct iso2AC_BidirectionalControlResType* iso2AC_BidirectionalControlResType) {
+ int grammarID = 1857;
+ int done = 0;
+
+ init_iso2AC_BidirectionalControlResType(iso2AC_BidirectionalControlResType);
+
+ while(!done) {
+ switch(grammarID) {
+ case 1857:
+ /* FirstStartTag[START_ELEMENT({urn:iso:15118:2:2016:MsgBody}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, 5, &uint32);
+ iso2AC_BidirectionalControlResType->ResponseCode = (iso2responseCodeType) 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({urn:iso:15118:2:2016:MsgBody}ResponseCode) ? */
+ errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
+ if(eventCode == 0) {
+ grammarID = 1858;
+ } else {
+ errn = EXI_DEVIANT_SUPPORT_NOT_DEPLOYED; /* or also typecast and nillable */
+ }
+ }
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 1858:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgBody}EVSEStatus), START_ELEMENT({urn:iso:15118:2:2016:MsgBody}EVSEProcessing)] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ errn = decode_iso2EVSEStatusType(stream, &iso2AC_BidirectionalControlResType->EVSEStatus);
+ iso2AC_BidirectionalControlResType->EVSEStatus_isUsed = 1u;
+ grammarID = 1859;
+ break;
+ case 1:
+ /* FirstStartTag[CHARACTERS[ENUMERATION]] */
+ errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
+ if(errn == 0) {
+ if(eventCode == 0) {
+ errn = decodeNBitUnsignedInteger(stream, 2, &uint32);
+ iso2AC_BidirectionalControlResType->EVSEProcessing = (iso2EVSEProcessingType) 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({urn:iso:15118:2:2016:MsgBody}EVSEProcessing) ? */
+ errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
+ if(eventCode == 0) {
+ grammarID = 1860;
+ } else {
+ errn = EXI_DEVIANT_SUPPORT_NOT_DEPLOYED; /* or also typecast and nillable */
+ }
+ }
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 1859:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgBody}EVSEProcessing)] */
+ 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);
+ iso2AC_BidirectionalControlResType->EVSEProcessing = (iso2EVSEProcessingType) 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({urn:iso:15118:2:2016:MsgBody}EVSEProcessing) ? */
+ errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
+ if(eventCode == 0) {
+ grammarID = 1860;
+ } else {
+ errn = EXI_DEVIANT_SUPPORT_NOT_DEPLOYED; /* or also typecast and nillable */
+ }
+ }
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 1860:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgBody}EVSETargetPower)] */
+ errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ errn = decode_iso2PhysicalValueType(stream, &iso2AC_BidirectionalControlResType->EVSETargetPower);
+ grammarID = 1861;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 1861:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgBody}EVSETargetReactivePower)] */
+ errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ errn = decode_iso2PhysicalValueType(stream, &iso2AC_BidirectionalControlResType->EVSETargetReactivePower);
+ grammarID = 27;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 27:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgBody}EVSEID)] */
+ errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ /* FirstStartTag[CHARACTERS[STRING]] */
+ errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
+ if(errn == 0) {
+ if(eventCode == 0) {
+ errn = decodeUnsignedInteger16(stream, &iso2AC_BidirectionalControlResType->EVSEID.charactersLen);
+ if (errn == 0) {
+ if (iso2AC_BidirectionalControlResType->EVSEID.charactersLen >= 2) {
+ iso2AC_BidirectionalControlResType->EVSEID.charactersLen = (uint16_t)(iso2AC_BidirectionalControlResType->EVSEID.charactersLen - 2); /* string table miss */
+ errn = decodeCharacters(stream, iso2AC_BidirectionalControlResType->EVSEID.charactersLen, iso2AC_BidirectionalControlResType->EVSEID.characters, iso2AC_BidirectionalControlResType_EVSEID_CHARACTERS_SIZE);
+ } else {
+ /* string table hit */
+ errn = EXI_ERROR_STRINGVALUES_NOT_SUPPORTED;
+ }
+ }
+ } 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({urn:iso:15118:2:2016:MsgBody}EVSEID) ? */
+ errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
+ if(eventCode == 0) {
+ grammarID = 28;
+ } else {
+ errn = EXI_DEVIANT_SUPPORT_NOT_DEPLOYED; /* or also typecast and nillable */
+ }
+ }
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 28:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgBody}SAScheduleTupleID), START_ELEMENT({urn:iso:15118:2:2016:MsgBody}MeterInfo), START_ELEMENT({urn:iso:15118:2:2016:MsgBody}ReceiptRequired), END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 3, &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));
+ iso2AC_BidirectionalControlResType->SAScheduleTupleID = (uint8_t)(uint32 + 1);
+ iso2AC_BidirectionalControlResType->SAScheduleTupleID_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({urn:iso:15118:2:2016:MsgBody}SAScheduleTupleID) ? */
+ errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
+ if(eventCode == 0) {
+ grammarID = 29;
+ } else {
+ errn = EXI_DEVIANT_SUPPORT_NOT_DEPLOYED; /* or also typecast and nillable */
+ }
+ }
+ break;
+ case 1:
+ errn = decode_iso2MeterInfoType(stream, &iso2AC_BidirectionalControlResType->MeterInfo);
+ iso2AC_BidirectionalControlResType->MeterInfo_isUsed = 1u;
+ grammarID = 30;
+ break;
+ case 2:
+ /* FirstStartTag[CHARACTERS[BOOLEAN]] */
+ errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
+ if(errn == 0) {
+ if(eventCode == 0) {
+ errn = decodeBoolean(stream, &iso2AC_BidirectionalControlResType->ReceiptRequired);
+ iso2AC_BidirectionalControlResType->ReceiptRequired_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({urn:iso:15118:2:2016:MsgBody}ReceiptRequired) ? */
+ errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
+ if(eventCode == 0) {
+ grammarID = 3;
+ } else {
+ errn = EXI_DEVIANT_SUPPORT_NOT_DEPLOYED; /* or also typecast and nillable */
+ }
+ }
+ break;
+ case 3:
+ done = 1;
+ grammarID = 4;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 29:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgBody}MeterInfo), START_ELEMENT({urn:iso:15118:2:2016:MsgBody}ReceiptRequired), END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ errn = decode_iso2MeterInfoType(stream, &iso2AC_BidirectionalControlResType->MeterInfo);
+ iso2AC_BidirectionalControlResType->MeterInfo_isUsed = 1u;
+ grammarID = 30;
+ break;
+ case 1:
+ /* FirstStartTag[CHARACTERS[BOOLEAN]] */
+ errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
+ if(errn == 0) {
+ if(eventCode == 0) {
+ errn = decodeBoolean(stream, &iso2AC_BidirectionalControlResType->ReceiptRequired);
+ iso2AC_BidirectionalControlResType->ReceiptRequired_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({urn:iso:15118:2:2016:MsgBody}ReceiptRequired) ? */
+ errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
+ if(eventCode == 0) {
+ grammarID = 3;
+ } else {
+ errn = EXI_DEVIANT_SUPPORT_NOT_DEPLOYED; /* or also typecast and nillable */
+ }
+ }
+ break;
+ case 2:
+ done = 1;
+ grammarID = 4;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 30:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgBody}ReceiptRequired), END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ /* FirstStartTag[CHARACTERS[BOOLEAN]] */
+ errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
+ if(errn == 0) {
+ if(eventCode == 0) {
+ errn = decodeBoolean(stream, &iso2AC_BidirectionalControlResType->ReceiptRequired);
+ iso2AC_BidirectionalControlResType->ReceiptRequired_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({urn:iso:15118:2:2016:MsgBody}ReceiptRequired) ? */
+ errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
+ if(eventCode == 0) {
+ grammarID = 3;
+ } else {
+ errn = EXI_DEVIANT_SUPPORT_NOT_DEPLOYED; /* or also typecast and nillable */
+ }
+ }
+ break;
+ case 1:
+ done = 1;
+ grammarID = 4;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 3:
+ /* Element[END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ done = 1;
+ grammarID = 4;
+ 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:2016:MsgBody,VehicleCheckOutReqType', base type name='BodyBaseType', content type='ELEMENT', isAbstract='false', hasTypeId='false', final='0', block='0', particle='("urn:iso:15118:2:2016:MsgBody":EVCheckOutStatus,"urn:iso:15118:2:2016:MsgBody":CheckOutTime)', derivedBy='EXTENSION'. */
+static int decode_iso2VehicleCheckOutReqType(bitstream_t* stream, struct iso2VehicleCheckOutReqType* iso2VehicleCheckOutReqType) {
+ int grammarID = 1862;
+ int done = 0;
+
+ init_iso2VehicleCheckOutReqType(iso2VehicleCheckOutReqType);
+
+ while(!done) {
+ switch(grammarID) {
+ case 1862:
+ /* FirstStartTag[START_ELEMENT({urn:iso:15118:2:2016:MsgBody}EVCheckOutStatus)] */
+ 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);
+ iso2VehicleCheckOutReqType->EVCheckOutStatus = (iso2EVCheckOutStatusType) 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({urn:iso:15118:2:2016:MsgBody}EVCheckOutStatus) ? */
+ errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
+ if(eventCode == 0) {
+ grammarID = 1863;
+ } else {
+ errn = EXI_DEVIANT_SUPPORT_NOT_DEPLOYED; /* or also typecast and nillable */
+ }
+ }
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 1863:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgBody}CheckOutTime)] */
+ errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ /* First(xsi:type)StartTag[CHARACTERS[UNSIGNED_INTEGER]] */
+ errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
+ if(errn == 0) {
+ if(eventCode == 0) {
+ errn = decodeUnsignedInteger64(stream, &iso2VehicleCheckOutReqType->CheckOutTime);
+ } 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({urn:iso:15118:2:2016:MsgBody}CheckOutTime) ? */
+ errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
+ if(eventCode == 0) {
+ grammarID = 3;
+ } else {
+ errn = EXI_DEVIANT_SUPPORT_NOT_DEPLOYED; /* or also typecast and nillable */
+ }
+ }
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 3:
+ /* Element[END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ done = 1;
+ grammarID = 4;
+ 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:2016:MsgBody,WeldingDetectionReqType', base type name='BodyBaseType', content type='EMPTY', isAbstract='false', hasTypeId='false', final='0', block='0', derivedBy='EXTENSION'. */
+static int decode_iso2WeldingDetectionReqType(bitstream_t* stream, struct iso2WeldingDetectionReqType* iso2WeldingDetectionReqType) {
+ int grammarID = 674;
+ int done = 0;
+
+ init_iso2WeldingDetectionReqType(iso2WeldingDetectionReqType);
+
+ while(!done) {
+ switch(grammarID) {
+ case 674:
+ /* FirstStartTag[END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ done = 1;
+ grammarID = 4;
+ 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:2016:MsgBody,AlignmentCheckResType', base type name='V2GResponseType', content type='ELEMENT', isAbstract='false', hasTypeId='false', final='0', block='0', particle='(("urn:iso:15118:2:2016:MsgBody":ResponseCode,"urn:iso:15118:2:2016:MsgBody":EVSEStatus{0-1}),("urn:iso:15118:2:2016:MsgBody":EVSEProcessing,"urn:iso:15118:2:2016:MsgBody":AlignmentCheckParameters{0-1}))', derivedBy='EXTENSION'. */
+static int decode_iso2AlignmentCheckResType(bitstream_t* stream, struct iso2AlignmentCheckResType* iso2AlignmentCheckResType) {
+ int grammarID = 1864;
+ int done = 0;
+
+ init_iso2AlignmentCheckResType(iso2AlignmentCheckResType);
+
+ while(!done) {
+ switch(grammarID) {
+ case 1864:
+ /* FirstStartTag[START_ELEMENT({urn:iso:15118:2:2016:MsgBody}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, 5, &uint32);
+ iso2AlignmentCheckResType->ResponseCode = (iso2responseCodeType) 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({urn:iso:15118:2:2016:MsgBody}ResponseCode) ? */
+ errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
+ if(eventCode == 0) {
+ grammarID = 1865;
+ } else {
+ errn = EXI_DEVIANT_SUPPORT_NOT_DEPLOYED; /* or also typecast and nillable */
+ }
+ }
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 1865:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgBody}EVSEStatus), START_ELEMENT({urn:iso:15118:2:2016:MsgBody}EVSEProcessing)] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ errn = decode_iso2EVSEStatusType(stream, &iso2AlignmentCheckResType->EVSEStatus);
+ iso2AlignmentCheckResType->EVSEStatus_isUsed = 1u;
+ grammarID = 1866;
+ break;
+ case 1:
+ /* FirstStartTag[CHARACTERS[ENUMERATION]] */
+ errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
+ if(errn == 0) {
+ if(eventCode == 0) {
+ errn = decodeNBitUnsignedInteger(stream, 2, &uint32);
+ iso2AlignmentCheckResType->EVSEProcessing = (iso2EVSEProcessingType) 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({urn:iso:15118:2:2016:MsgBody}EVSEProcessing) ? */
+ errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
+ if(eventCode == 0) {
+ grammarID = 676;
+ } else {
+ errn = EXI_DEVIANT_SUPPORT_NOT_DEPLOYED; /* or also typecast and nillable */
+ }
+ }
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 1866:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgBody}EVSEProcessing)] */
+ 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);
+ iso2AlignmentCheckResType->EVSEProcessing = (iso2EVSEProcessingType) 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({urn:iso:15118:2:2016:MsgBody}EVSEProcessing) ? */
+ errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
+ if(eventCode == 0) {
+ grammarID = 676;
+ } else {
+ errn = EXI_DEVIANT_SUPPORT_NOT_DEPLOYED; /* or also typecast and nillable */
+ }
+ }
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 676:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgBody}AlignmentCheckParameters), END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ errn = decode_iso2ParameterSetType(stream, &iso2AlignmentCheckResType->AlignmentCheckParameters);
+ iso2AlignmentCheckResType->AlignmentCheckParameters_isUsed = 1u;
+ grammarID = 3;
+ break;
+ case 1:
+ done = 1;
+ grammarID = 4;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 3:
+ /* Element[END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ done = 1;
+ grammarID = 4;
+ 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:2016:MsgBody,PowerDemandReqType', base type name='ChargeLoopReqType', content type='ELEMENT', isAbstract='false', hasTypeId='false', final='0', block='0', particle='(("urn:iso:15118:2:2016:MsgBody":EVTargetEnergyRequest,"urn:iso:15118:2:2016:MsgBody":EVMaximumEnergyRequest{0-1},"urn:iso:15118:2:2016:MsgBody":EVMinimumEnergyRequest{0-1},"urn:iso:15118:2:2016:MsgBody":DisplayParameters{0-1}),("urn:iso:15118:2:2016:MsgBody":EVTargetPower,"urn:iso:15118:2:2016:MsgBody":EVInputPower,"urn:iso:15118:2:2016:MsgBody":PowerDemandParameters{0-1}))', derivedBy='EXTENSION'. */
+static int decode_iso2PowerDemandReqType(bitstream_t* stream, struct iso2PowerDemandReqType* iso2PowerDemandReqType) {
+ int grammarID = 1867;
+ int done = 0;
+
+ init_iso2PowerDemandReqType(iso2PowerDemandReqType);
+
+ while(!done) {
+ switch(grammarID) {
+ case 1867:
+ /* FirstStartTag[START_ELEMENT({urn:iso:15118:2:2016:MsgBody}EVTargetEnergyRequest)] */
+ errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ errn = decode_iso2PhysicalValueType(stream, &iso2PowerDemandReqType->EVTargetEnergyRequest);
+ grammarID = 1868;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 1868:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgBody}EVMaximumEnergyRequest), START_ELEMENT({urn:iso:15118:2:2016:MsgBody}EVMinimumEnergyRequest), START_ELEMENT({urn:iso:15118:2:2016:MsgBody}DisplayParameters), START_ELEMENT({urn:iso:15118:2:2016:MsgBody}EVTargetPower)] */
+ errn = decodeNBitUnsignedInteger(stream, 3, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ errn = decode_iso2PhysicalValueType(stream, &iso2PowerDemandReqType->EVMaximumEnergyRequest);
+ iso2PowerDemandReqType->EVMaximumEnergyRequest_isUsed = 1u;
+ grammarID = 1869;
+ break;
+ case 1:
+ errn = decode_iso2PhysicalValueType(stream, &iso2PowerDemandReqType->EVMinimumEnergyRequest);
+ iso2PowerDemandReqType->EVMinimumEnergyRequest_isUsed = 1u;
+ grammarID = 1870;
+ break;
+ case 2:
+ errn = decode_iso2DisplayParametersType(stream, &iso2PowerDemandReqType->DisplayParameters);
+ iso2PowerDemandReqType->DisplayParameters_isUsed = 1u;
+ grammarID = 1871;
+ break;
+ case 3:
+ errn = decode_iso2PhysicalValueType(stream, &iso2PowerDemandReqType->EVTargetPower);
+ grammarID = 1872;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 1869:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgBody}EVMinimumEnergyRequest), START_ELEMENT({urn:iso:15118:2:2016:MsgBody}DisplayParameters), START_ELEMENT({urn:iso:15118:2:2016:MsgBody}EVTargetPower)] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ errn = decode_iso2PhysicalValueType(stream, &iso2PowerDemandReqType->EVMinimumEnergyRequest);
+ iso2PowerDemandReqType->EVMinimumEnergyRequest_isUsed = 1u;
+ grammarID = 1870;
+ break;
+ case 1:
+ errn = decode_iso2DisplayParametersType(stream, &iso2PowerDemandReqType->DisplayParameters);
+ iso2PowerDemandReqType->DisplayParameters_isUsed = 1u;
+ grammarID = 1871;
+ break;
+ case 2:
+ errn = decode_iso2PhysicalValueType(stream, &iso2PowerDemandReqType->EVTargetPower);
+ grammarID = 1872;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 1870:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgBody}DisplayParameters), START_ELEMENT({urn:iso:15118:2:2016:MsgBody}EVTargetPower)] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ errn = decode_iso2DisplayParametersType(stream, &iso2PowerDemandReqType->DisplayParameters);
+ iso2PowerDemandReqType->DisplayParameters_isUsed = 1u;
+ grammarID = 1871;
+ break;
+ case 1:
+ errn = decode_iso2PhysicalValueType(stream, &iso2PowerDemandReqType->EVTargetPower);
+ grammarID = 1872;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 1871:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgBody}EVTargetPower)] */
+ errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ errn = decode_iso2PhysicalValueType(stream, &iso2PowerDemandReqType->EVTargetPower);
+ grammarID = 1872;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 1872:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgBody}EVInputPower)] */
+ errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ errn = decode_iso2PhysicalValueType(stream, &iso2PowerDemandReqType->EVInputPower);
+ grammarID = 1873;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 1873:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgBody}PowerDemandParameters), END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ errn = decode_iso2ParameterSetType(stream, &iso2PowerDemandReqType->PowerDemandParameters);
+ iso2PowerDemandReqType->PowerDemandParameters_isUsed = 1u;
+ grammarID = 3;
+ break;
+ case 1:
+ done = 1;
+ grammarID = 4;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 3:
+ /* Element[END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ done = 1;
+ grammarID = 4;
+ 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:2016:MsgDataTypes,MinimumPMaxRequestType', base type name='anyType', content type='ELEMENT', isAbstract='false', hasTypeId='false', final='0', block='0', particle='("urn:iso:15118:2:2016:MsgDataTypes":MinimumPMaxScheduleEntry{1-3})', derivedBy='RESTRICTION'. */
+static int decode_iso2MinimumPMaxRequestType(bitstream_t* stream, struct iso2MinimumPMaxRequestType* iso2MinimumPMaxRequestType) {
+ int grammarID = 1874;
+ int done = 0;
+
+ init_iso2MinimumPMaxRequestType(iso2MinimumPMaxRequestType);
+
+ while(!done) {
+ switch(grammarID) {
+ case 1874:
+ /* FirstStartTag[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MinimumPMaxScheduleEntry)] */
+ errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ if (iso2MinimumPMaxRequestType->MinimumPMaxScheduleEntry.arrayLen < iso2MinimumPMaxRequestType_MinimumPMaxScheduleEntry_ARRAY_SIZE) {
+ errn = decode_iso2PMaxScheduleEntryType(stream, &iso2MinimumPMaxRequestType->MinimumPMaxScheduleEntry.array[iso2MinimumPMaxRequestType->MinimumPMaxScheduleEntry.arrayLen++]);
+ } else {
+ errn = EXI_ERROR_OUT_OF_BOUNDS;
+ }
+ grammarID = 1875;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 1875:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MinimumPMaxScheduleEntry), END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ if (iso2MinimumPMaxRequestType->MinimumPMaxScheduleEntry.arrayLen < iso2MinimumPMaxRequestType_MinimumPMaxScheduleEntry_ARRAY_SIZE) {
+ errn = decode_iso2PMaxScheduleEntryType(stream, &iso2MinimumPMaxRequestType->MinimumPMaxScheduleEntry.array[iso2MinimumPMaxRequestType->MinimumPMaxScheduleEntry.arrayLen++]);
+ } else {
+ errn = EXI_ERROR_OUT_OF_BOUNDS;
+ }
+ grammarID = 1876;
+ break;
+ case 1:
+ done = 1;
+ grammarID = 4;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 1876:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MinimumPMaxScheduleEntry), END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ if (iso2MinimumPMaxRequestType->MinimumPMaxScheduleEntry.arrayLen < iso2MinimumPMaxRequestType_MinimumPMaxScheduleEntry_ARRAY_SIZE) {
+ errn = decode_iso2PMaxScheduleEntryType(stream, &iso2MinimumPMaxRequestType->MinimumPMaxScheduleEntry.array[iso2MinimumPMaxRequestType->MinimumPMaxScheduleEntry.arrayLen++]);
+ } else {
+ errn = EXI_ERROR_OUT_OF_BOUNDS;
+ }
+ grammarID = 3;
+ break;
+ case 1:
+ done = 1;
+ grammarID = 4;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 3:
+ /* Element[END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ done = 1;
+ grammarID = 4;
+ 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:2016:MsgBody,DisconnectChargingDeviceResType', base type name='V2GResponseType', content type='ELEMENT', isAbstract='false', hasTypeId='false', final='0', block='0', particle='(("urn:iso:15118:2:2016:MsgBody":ResponseCode,"urn:iso:15118:2:2016:MsgBody":EVSEStatus{0-1}),("urn:iso:15118:2:2016:MsgBody":EVSEProcessing,"urn:iso:15118:2:2016:MsgBody":EVSEElectricalChargingDeviceStatus,"urn:iso:15118:2:2016:MsgBody":EVSEMechanicalChargingDeviceStatus))', derivedBy='EXTENSION'. */
+static int decode_iso2DisconnectChargingDeviceResType(bitstream_t* stream, struct iso2DisconnectChargingDeviceResType* iso2DisconnectChargingDeviceResType) {
+ int grammarID = 591;
+ int done = 0;
+
+ init_iso2DisconnectChargingDeviceResType(iso2DisconnectChargingDeviceResType);
+
+ while(!done) {
+ switch(grammarID) {
+ case 591:
+ /* FirstStartTag[START_ELEMENT({urn:iso:15118:2:2016:MsgBody}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, 5, &uint32);
+ iso2DisconnectChargingDeviceResType->ResponseCode = (iso2responseCodeType) 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({urn:iso:15118:2:2016:MsgBody}ResponseCode) ? */
+ errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
+ if(eventCode == 0) {
+ grammarID = 592;
+ } else {
+ errn = EXI_DEVIANT_SUPPORT_NOT_DEPLOYED; /* or also typecast and nillable */
+ }
+ }
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 592:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgBody}EVSEStatus), START_ELEMENT({urn:iso:15118:2:2016:MsgBody}EVSEProcessing)] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ errn = decode_iso2EVSEStatusType(stream, &iso2DisconnectChargingDeviceResType->EVSEStatus);
+ iso2DisconnectChargingDeviceResType->EVSEStatus_isUsed = 1u;
+ grammarID = 593;
+ break;
+ case 1:
+ /* FirstStartTag[CHARACTERS[ENUMERATION]] */
+ errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
+ if(errn == 0) {
+ if(eventCode == 0) {
+ errn = decodeNBitUnsignedInteger(stream, 2, &uint32);
+ iso2DisconnectChargingDeviceResType->EVSEProcessing = (iso2EVSEProcessingType) 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({urn:iso:15118:2:2016:MsgBody}EVSEProcessing) ? */
+ errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
+ if(eventCode == 0) {
+ grammarID = 594;
+ } else {
+ errn = EXI_DEVIANT_SUPPORT_NOT_DEPLOYED; /* or also typecast and nillable */
+ }
+ }
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 593:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgBody}EVSEProcessing)] */
+ 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);
+ iso2DisconnectChargingDeviceResType->EVSEProcessing = (iso2EVSEProcessingType) 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({urn:iso:15118:2:2016:MsgBody}EVSEProcessing) ? */
+ errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
+ if(eventCode == 0) {
+ grammarID = 594;
+ } else {
+ errn = EXI_DEVIANT_SUPPORT_NOT_DEPLOYED; /* or also typecast and nillable */
+ }
+ }
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 594:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgBody}EVSEElectricalChargingDeviceStatus)] */
+ 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, 1, &uint32);
+ iso2DisconnectChargingDeviceResType->EVSEElectricalChargingDeviceStatus = (iso2electricalChargingDeviceStatusType) 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({urn:iso:15118:2:2016:MsgBody}EVSEElectricalChargingDeviceStatus) ? */
+ errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
+ if(eventCode == 0) {
+ grammarID = 595;
+ } else {
+ errn = EXI_DEVIANT_SUPPORT_NOT_DEPLOYED; /* or also typecast and nillable */
+ }
+ }
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 595:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgBody}EVSEMechanicalChargingDeviceStatus)] */
+ 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);
+ iso2DisconnectChargingDeviceResType->EVSEMechanicalChargingDeviceStatus = (iso2mechanicalChargingDeviceStatusType) 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({urn:iso:15118:2:2016:MsgBody}EVSEMechanicalChargingDeviceStatus) ? */
+ errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
+ if(eventCode == 0) {
+ grammarID = 3;
+ } else {
+ errn = EXI_DEVIANT_SUPPORT_NOT_DEPLOYED; /* or also typecast and nillable */
+ }
+ }
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 3:
+ /* Element[END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ done = 1;
+ grammarID = 4;
+ break;
default:
errn = EXI_ERROR_UNKOWN_EVENT_CODE;
break;
@@ -102160,15 +59211,15 @@ static int decode_v2gWPT_EVChargeParameterType(bitstream_t* stream, struct v2gWP
}
/* Complex type name='urn:iso:15118:2:2016:MsgBody,SessionSetupReqType', base type name='BodyBaseType', content type='ELEMENT', isAbstract='false', hasTypeId='false', final='0', block='0', particle='("urn:iso:15118:2:2016:MsgBody":EVCCID)', derivedBy='EXTENSION'. */
-static int decode_v2gSessionSetupReqType(bitstream_t* stream, struct v2gSessionSetupReqType* v2gSessionSetupReqType) {
- int grammarID = 2860;
+static int decode_iso2SessionSetupReqType(bitstream_t* stream, struct iso2SessionSetupReqType* iso2SessionSetupReqType) {
+ int grammarID = 1877;
int done = 0;
- init_v2gSessionSetupReqType(v2gSessionSetupReqType);
+ init_iso2SessionSetupReqType(iso2SessionSetupReqType);
while(!done) {
switch(grammarID) {
- case 2860:
+ case 1877:
/* FirstStartTag[START_ELEMENT({urn:iso:15118:2:2016:MsgBody}EVCCID)] */
errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
if (errn == 0) {
@@ -102178,12 +59229,12 @@ static int decode_v2gSessionSetupReqType(bitstream_t* stream, struct v2gSessionS
errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
if(errn == 0) {
if(eventCode == 0) {
- errn = decodeUnsignedInteger16(stream, &v2gSessionSetupReqType->EVCCID.bytesLen);
+ errn = decodeUnsignedInteger16(stream, &iso2SessionSetupReqType->EVCCID.bytesLen);
if (errn == 0) {
- errn = (v2gSessionSetupReqType->EVCCID.bytesLen) <= v2gSessionSetupReqType_EVCCID_BYTES_SIZE ? 0 : EXI_ERROR_OUT_OF_BYTE_BUFFER;
+ errn = (iso2SessionSetupReqType->EVCCID.bytesLen) <= iso2SessionSetupReqType_EVCCID_BYTES_SIZE ? 0 : EXI_ERROR_OUT_OF_BYTE_BUFFER;
}
if (errn == 0) {
- errn = decodeBytes(stream, v2gSessionSetupReqType->EVCCID.bytesLen, v2gSessionSetupReqType->EVCCID.bytes);
+ errn = decodeBytes(stream, iso2SessionSetupReqType->EVCCID.bytesLen, iso2SessionSetupReqType->EVCCID.bytes);
}
} else {
/* Second level event (e.g., xsi:type, xsi:nil, ...) */
@@ -102194,7 +59245,7 @@ static int decode_v2gSessionSetupReqType(bitstream_t* stream, struct v2gSessionS
/* valid EE for simple element START_ELEMENT({urn:iso:15118:2:2016:MsgBody}EVCCID) ? */
errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
if(eventCode == 0) {
- grammarID = 2;
+ grammarID = 3;
} else {
errn = EXI_DEVIANT_SUPPORT_NOT_DEPLOYED; /* or also typecast and nillable */
}
@@ -102206,13 +59257,89 @@ static int decode_v2gSessionSetupReqType(bitstream_t* stream, struct v2gSessionS
}
}
break;
- case 2:
+ case 3:
/* Element[END_ELEMENT] */
errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
if (errn == 0) {
switch(eventCode) {
case 0:
done = 1;
+ grammarID = 4;
+ 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:2016:MsgBody,PaymentDetailsReqType', base type name='BodyBaseType', content type='ELEMENT', isAbstract='false', hasTypeId='false', final='0', block='0', particle='("urn:iso:15118:2:2016:MsgBody":eMAID,"urn:iso:15118:2:2016:MsgBody":ContractSignatureCertChain)', derivedBy='EXTENSION'. */
+static int decode_iso2PaymentDetailsReqType(bitstream_t* stream, struct iso2PaymentDetailsReqType* iso2PaymentDetailsReqType) {
+ int grammarID = 1878;
+ int done = 0;
+
+ init_iso2PaymentDetailsReqType(iso2PaymentDetailsReqType);
+
+ while(!done) {
+ switch(grammarID) {
+ case 1878:
+ /* FirstStartTag[START_ELEMENT({urn:iso:15118:2:2016:MsgBody}eMAID)] */
+ errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ /* First(xsi:type)StartTag[CHARACTERS[STRING]] */
+ errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
+ if(errn == 0) {
+ if(eventCode == 0) {
+ errn = decodeUnsignedInteger16(stream, &iso2PaymentDetailsReqType->eMAID.charactersLen);
+ if (errn == 0) {
+ if (iso2PaymentDetailsReqType->eMAID.charactersLen >= 2) {
+ iso2PaymentDetailsReqType->eMAID.charactersLen = (uint16_t)(iso2PaymentDetailsReqType->eMAID.charactersLen - 2); /* string table miss */
+ errn = decodeCharacters(stream, iso2PaymentDetailsReqType->eMAID.charactersLen, iso2PaymentDetailsReqType->eMAID.characters, iso2PaymentDetailsReqType_eMAID_CHARACTERS_SIZE);
+ } else {
+ /* string table hit */
+ errn = EXI_ERROR_STRINGVALUES_NOT_SUPPORTED;
+ }
+ }
+ } 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({urn:iso:15118:2:2016:MsgBody}eMAID) ? */
+ errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
+ if(eventCode == 0) {
+ grammarID = 1879;
+ } else {
+ errn = EXI_DEVIANT_SUPPORT_NOT_DEPLOYED; /* or also typecast and nillable */
+ }
+ }
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 1879:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgBody}ContractSignatureCertChain)] */
+ errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ errn = decode_iso2CertificateChainType(stream, &iso2PaymentDetailsReqType->ContractSignatureCertChain);
grammarID = 3;
break;
default:
@@ -102221,6 +59348,4763 @@ static int decode_v2gSessionSetupReqType(bitstream_t* stream, struct v2gSessionS
}
}
break;
+ case 3:
+ /* Element[END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ done = 1;
+ grammarID = 4;
+ 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:2016:MsgDataTypes,Generic_EVFinePositioningParametersType', base type name='EVFinePositioningParametersType', content type='ELEMENT', isAbstract='false', hasTypeId='false', final='0', block='0', particle='("urn:iso:15118:2:2016:MsgDataTypes":GenericParameters)', derivedBy='EXTENSION'. */
+static int decode_iso2Generic_EVFinePositioningParametersType(bitstream_t* stream, struct iso2Generic_EVFinePositioningParametersType* iso2Generic_EVFinePositioningParametersType) {
+ int grammarID = 1880;
+ int done = 0;
+
+ init_iso2Generic_EVFinePositioningParametersType(iso2Generic_EVFinePositioningParametersType);
+
+ while(!done) {
+ switch(grammarID) {
+ case 1880:
+ /* FirstStartTag[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}GenericParameters)] */
+ errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ errn = decode_iso2ParameterSetType(stream, &iso2Generic_EVFinePositioningParametersType->GenericParameters);
+ grammarID = 3;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 3:
+ /* Element[END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ done = 1;
+ grammarID = 4;
+ 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:2016:MsgBody,ConnectChargingDeviceReqType', base type name='BodyBaseType', content type='ELEMENT', isAbstract='false', hasTypeId='false', final='0', block='0', particle='("urn:iso:15118:2:2016:MsgBody":EVElectricalChargingDeviceStatus,"urn:iso:15118:2:2016:MsgBody":EVMechanicalChargingDeviceStatus)', derivedBy='EXTENSION'. */
+static int decode_iso2ConnectChargingDeviceReqType(bitstream_t* stream, struct iso2ConnectChargingDeviceReqType* iso2ConnectChargingDeviceReqType) {
+ int grammarID = 1496;
+ int done = 0;
+
+ init_iso2ConnectChargingDeviceReqType(iso2ConnectChargingDeviceReqType);
+
+ while(!done) {
+ switch(grammarID) {
+ case 1496:
+ /* FirstStartTag[START_ELEMENT({urn:iso:15118:2:2016:MsgBody}EVElectricalChargingDeviceStatus)] */
+ 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, 1, &uint32);
+ iso2ConnectChargingDeviceReqType->EVElectricalChargingDeviceStatus = (iso2electricalChargingDeviceStatusType) 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({urn:iso:15118:2:2016:MsgBody}EVElectricalChargingDeviceStatus) ? */
+ errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
+ if(eventCode == 0) {
+ grammarID = 1497;
+ } else {
+ errn = EXI_DEVIANT_SUPPORT_NOT_DEPLOYED; /* or also typecast and nillable */
+ }
+ }
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 1497:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgBody}EVMechanicalChargingDeviceStatus)] */
+ 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);
+ iso2ConnectChargingDeviceReqType->EVMechanicalChargingDeviceStatus = (iso2mechanicalChargingDeviceStatusType) 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({urn:iso:15118:2:2016:MsgBody}EVMechanicalChargingDeviceStatus) ? */
+ errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
+ if(eventCode == 0) {
+ grammarID = 3;
+ } else {
+ errn = EXI_DEVIANT_SUPPORT_NOT_DEPLOYED; /* or also typecast and nillable */
+ }
+ }
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 3:
+ /* Element[END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ done = 1;
+ grammarID = 4;
+ 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:2016:MsgDataTypes,AC_EVSEChargeParameterType', base type name='EVSEEnergyTransferParameterType', content type='ELEMENT', isAbstract='false', hasTypeId='false', final='0', block='0', particle='("urn:iso:15118:2:2016:MsgDataTypes":EVSEMaximumChargeCurrent,"urn:iso:15118:2:2016:MsgDataTypes":EVSENominalVoltage,"urn:iso:15118:2:2016:MsgDataTypes":EVSENominalFrequency)', derivedBy='EXTENSION'. */
+static int decode_iso2AC_EVSEChargeParameterType(bitstream_t* stream, struct iso2AC_EVSEChargeParameterType* iso2AC_EVSEChargeParameterType) {
+ int grammarID = 1881;
+ int done = 0;
+
+ init_iso2AC_EVSEChargeParameterType(iso2AC_EVSEChargeParameterType);
+
+ while(!done) {
+ switch(grammarID) {
+ case 1881:
+ /* FirstStartTag[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}EVSEMaximumChargeCurrent)] */
+ errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ errn = decode_iso2PhysicalValueType(stream, &iso2AC_EVSEChargeParameterType->EVSEMaximumChargeCurrent);
+ grammarID = 1882;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 1882:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}EVSENominalVoltage)] */
+ errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ errn = decode_iso2PhysicalValueType(stream, &iso2AC_EVSEChargeParameterType->EVSENominalVoltage);
+ grammarID = 58;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 58:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}EVSENominalFrequency)] */
+ errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ errn = decode_iso2PhysicalValueType(stream, &iso2AC_EVSEChargeParameterType->EVSENominalFrequency);
+ grammarID = 3;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 3:
+ /* Element[END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ done = 1;
+ grammarID = 4;
+ 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:2016:MsgDataTypes,SalesTariffEntryType', base type name='EntryType', content type='ELEMENT', isAbstract='false', hasTypeId='false', final='0', block='0', particle='(("urn:iso:15118:2:2016:MsgDataTypes":RelativeTimeInterval),("urn:iso:15118:2:2016:MsgDataTypes":EPriceLevel{0-1},"urn:iso:15118:2:2016:MsgDataTypes":ConsumptionCost{0-3}))', derivedBy='EXTENSION'. */
+static int decode_iso2SalesTariffEntryType(bitstream_t* stream, struct iso2SalesTariffEntryType* iso2SalesTariffEntryType) {
+ int grammarID = 1883;
+ int done = 0;
+
+ init_iso2SalesTariffEntryType(iso2SalesTariffEntryType);
+
+ while(!done) {
+ switch(grammarID) {
+ case 1883:
+ /* FirstStartTag[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}RelativeTimeInterval)] */
+ errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ errn = decode_iso2RelativeTimeIntervalType(stream, &iso2SalesTariffEntryType->RelativeTimeInterval);
+ grammarID = 1884;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 1884:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}EPriceLevel), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}ConsumptionCost), END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
+ errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
+ if(errn == 0) {
+ if(eventCode == 0) {
+ errn = decodeNBitUnsignedInteger(stream, 8, &(uint32));
+ iso2SalesTariffEntryType->EPriceLevel = (uint8_t)(uint32 + 0);
+ iso2SalesTariffEntryType->EPriceLevel_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({urn:iso:15118:2:2016:MsgDataTypes}EPriceLevel) ? */
+ errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
+ if(eventCode == 0) {
+ grammarID = 1885;
+ } else {
+ errn = EXI_DEVIANT_SUPPORT_NOT_DEPLOYED; /* or also typecast and nillable */
+ }
+ }
+ break;
+ case 1:
+ if (iso2SalesTariffEntryType->ConsumptionCost.arrayLen < iso2SalesTariffEntryType_ConsumptionCost_ARRAY_SIZE) {
+ errn = decode_iso2ConsumptionCostType(stream, &iso2SalesTariffEntryType->ConsumptionCost.array[iso2SalesTariffEntryType->ConsumptionCost.arrayLen++]);
+ } else {
+ errn = EXI_ERROR_OUT_OF_BOUNDS;
+ }
+ grammarID = 1886;
+ break;
+ case 2:
+ done = 1;
+ grammarID = 4;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 1885:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}ConsumptionCost), END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ if (iso2SalesTariffEntryType->ConsumptionCost.arrayLen < iso2SalesTariffEntryType_ConsumptionCost_ARRAY_SIZE) {
+ errn = decode_iso2ConsumptionCostType(stream, &iso2SalesTariffEntryType->ConsumptionCost.array[iso2SalesTariffEntryType->ConsumptionCost.arrayLen++]);
+ } else {
+ errn = EXI_ERROR_OUT_OF_BOUNDS;
+ }
+ grammarID = 1886;
+ break;
+ case 1:
+ done = 1;
+ grammarID = 4;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 1886:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}ConsumptionCost), END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ if (iso2SalesTariffEntryType->ConsumptionCost.arrayLen < iso2SalesTariffEntryType_ConsumptionCost_ARRAY_SIZE) {
+ errn = decode_iso2ConsumptionCostType(stream, &iso2SalesTariffEntryType->ConsumptionCost.array[iso2SalesTariffEntryType->ConsumptionCost.arrayLen++]);
+ } else {
+ errn = EXI_ERROR_OUT_OF_BOUNDS;
+ }
+ grammarID = 1887;
+ break;
+ case 1:
+ done = 1;
+ grammarID = 4;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 1887:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}ConsumptionCost), END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ if (iso2SalesTariffEntryType->ConsumptionCost.arrayLen < iso2SalesTariffEntryType_ConsumptionCost_ARRAY_SIZE) {
+ errn = decode_iso2ConsumptionCostType(stream, &iso2SalesTariffEntryType->ConsumptionCost.array[iso2SalesTariffEntryType->ConsumptionCost.arrayLen++]);
+ } else {
+ errn = EXI_ERROR_OUT_OF_BOUNDS;
+ }
+ grammarID = 3;
+ break;
+ case 1:
+ done = 1;
+ grammarID = 4;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 3:
+ /* Element[END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ done = 1;
+ grammarID = 4;
+ 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:2016:MsgDataTypes,DC_EVSEBidirectionalParameterType', base type name='DC_EVSEChargeParameterType', content type='ELEMENT', isAbstract='false', hasTypeId='false', final='0', block='0', particle='(("urn:iso:15118:2:2016:MsgDataTypes":EVSEMaximumChargePower,"urn:iso:15118:2:2016:MsgDataTypes":EVSEMaximumChargeCurrent,"urn:iso:15118:2:2016:MsgDataTypes":EVSEMinimumChargeCurrent,"urn:iso:15118:2:2016:MsgDataTypes":EVSEMaximumVoltage,"urn:iso:15118:2:2016:MsgDataTypes":EVSEMinimumVoltage,"urn:iso:15118:2:2016:MsgDataTypes":EVSECurrentRegulationTolerance{0-1},"urn:iso:15118:2:2016:MsgDataTypes":EVSEPeakCurrentRipple,"urn:iso:15118:2:2016:MsgDataTypes":EVSEEnergyToBeDelivered{0-1}),("urn:iso:15118:2:2016:MsgDataTypes":EVSEMaximumDischargePower,"urn:iso:15118:2:2016:MsgDataTypes":EVSEMaximumDischargeCurrent,"urn:iso:15118:2:2016:MsgDataTypes":EVSEMinimumDischargeCurrent))', derivedBy='EXTENSION'. */
+static int decode_iso2DC_EVSEBidirectionalParameterType(bitstream_t* stream, struct iso2DC_EVSEBidirectionalParameterType* iso2DC_EVSEBidirectionalParameterType) {
+ int grammarID = 1888;
+ int done = 0;
+
+ init_iso2DC_EVSEBidirectionalParameterType(iso2DC_EVSEBidirectionalParameterType);
+
+ while(!done) {
+ switch(grammarID) {
+ case 1888:
+ /* FirstStartTag[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}EVSEMaximumChargePower)] */
+ errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ errn = decode_iso2PhysicalValueType(stream, &iso2DC_EVSEBidirectionalParameterType->EVSEMaximumChargePower);
+ grammarID = 1889;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 1889:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}EVSEMaximumChargeCurrent)] */
+ errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ errn = decode_iso2PhysicalValueType(stream, &iso2DC_EVSEBidirectionalParameterType->EVSEMaximumChargeCurrent);
+ grammarID = 1890;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 1890:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}EVSEMinimumChargeCurrent)] */
+ errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ errn = decode_iso2PhysicalValueType(stream, &iso2DC_EVSEBidirectionalParameterType->EVSEMinimumChargeCurrent);
+ grammarID = 1891;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 1891:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}EVSEMaximumVoltage)] */
+ errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ errn = decode_iso2PhysicalValueType(stream, &iso2DC_EVSEBidirectionalParameterType->EVSEMaximumVoltage);
+ grammarID = 1892;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 1892:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}EVSEMinimumVoltage)] */
+ errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ errn = decode_iso2PhysicalValueType(stream, &iso2DC_EVSEBidirectionalParameterType->EVSEMinimumVoltage);
+ grammarID = 1893;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 1893:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}EVSECurrentRegulationTolerance), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}EVSEPeakCurrentRipple)] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ errn = decode_iso2PhysicalValueType(stream, &iso2DC_EVSEBidirectionalParameterType->EVSECurrentRegulationTolerance);
+ iso2DC_EVSEBidirectionalParameterType->EVSECurrentRegulationTolerance_isUsed = 1u;
+ grammarID = 1894;
+ break;
+ case 1:
+ errn = decode_iso2PhysicalValueType(stream, &iso2DC_EVSEBidirectionalParameterType->EVSEPeakCurrentRipple);
+ grammarID = 1895;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 1894:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}EVSEPeakCurrentRipple)] */
+ errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ errn = decode_iso2PhysicalValueType(stream, &iso2DC_EVSEBidirectionalParameterType->EVSEPeakCurrentRipple);
+ grammarID = 1895;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 1895:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}EVSEEnergyToBeDelivered), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}EVSEMaximumDischargePower)] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ errn = decode_iso2PhysicalValueType(stream, &iso2DC_EVSEBidirectionalParameterType->EVSEEnergyToBeDelivered);
+ iso2DC_EVSEBidirectionalParameterType->EVSEEnergyToBeDelivered_isUsed = 1u;
+ grammarID = 1896;
+ break;
+ case 1:
+ errn = decode_iso2PhysicalValueType(stream, &iso2DC_EVSEBidirectionalParameterType->EVSEMaximumDischargePower);
+ grammarID = 1897;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 1896:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}EVSEMaximumDischargePower)] */
+ errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ errn = decode_iso2PhysicalValueType(stream, &iso2DC_EVSEBidirectionalParameterType->EVSEMaximumDischargePower);
+ grammarID = 1897;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 1897:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}EVSEMaximumDischargeCurrent)] */
+ errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ errn = decode_iso2PhysicalValueType(stream, &iso2DC_EVSEBidirectionalParameterType->EVSEMaximumDischargeCurrent);
+ grammarID = 1898;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 1898:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}EVSEMinimumDischargeCurrent)] */
+ errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ errn = decode_iso2PhysicalValueType(stream, &iso2DC_EVSEBidirectionalParameterType->EVSEMinimumDischargeCurrent);
+ grammarID = 3;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 3:
+ /* Element[END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ done = 1;
+ grammarID = 4;
+ 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='http://www.w3.org/2000/09/xmldsig#,CanonicalizationMethodType', base type name='anyType', content type='MIXED', isAbstract='false', hasTypeId='false', final='0', block='0', particle='((WC[##any]){0-UNBOUNDED})', derivedBy='RESTRICTION'. */
+static int decode_iso2CanonicalizationMethodType(bitstream_t* stream, struct iso2CanonicalizationMethodType* iso2CanonicalizationMethodType) {
+ int grammarID = 1899;
+ int done = 0;
+
+ init_iso2CanonicalizationMethodType(iso2CanonicalizationMethodType);
+
+ while(!done) {
+ switch(grammarID) {
+ case 1899:
+ /* FirstStartTag[ATTRIBUTE[STRING](Algorithm)] */
+ errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ errn = decodeUnsignedInteger16(stream, &iso2CanonicalizationMethodType->Algorithm.charactersLen);
+ if (errn == 0) {
+ if (iso2CanonicalizationMethodType->Algorithm.charactersLen >= 2) {
+ iso2CanonicalizationMethodType->Algorithm.charactersLen = (uint16_t)(iso2CanonicalizationMethodType->Algorithm.charactersLen - 2); /* string table miss */
+ errn = decodeCharacters(stream, iso2CanonicalizationMethodType->Algorithm.charactersLen, iso2CanonicalizationMethodType->Algorithm.characters, iso2CanonicalizationMethodType_Algorithm_CHARACTERS_SIZE);
+ } else {
+ /* string table hit */
+ errn = EXI_ERROR_STRINGVALUES_NOT_SUPPORTED;
+ }
+ }
+ grammarID = 684;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 684:
+ /* StartTag[START_ELEMENT_GENERIC, END_ELEMENT, CHARACTERS_GENERIC[STRING]] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ errn = EXI_UNSUPPORTED_EVENT_CODE_CHARACTERISTICS;
+ /* TODO unsupported event : START_ELEMENT_GENERIC */
+ grammarID = 685;
+ break;
+ case 1:
+ done = 1;
+ grammarID = 4;
+ break;
+ case 2:
+ errn = decodeUnsignedInteger16(stream, &iso2CanonicalizationMethodType->ANY.charactersLen);
+ if (errn == 0) {
+ if (iso2CanonicalizationMethodType->ANY.charactersLen >= 2) {
+ iso2CanonicalizationMethodType->ANY.charactersLen = (uint16_t)(iso2CanonicalizationMethodType->ANY.charactersLen - 2); /* string table miss */
+ errn = decodeCharacters(stream, iso2CanonicalizationMethodType->ANY.charactersLen, iso2CanonicalizationMethodType->ANY.characters, iso2CanonicalizationMethodType_ANY_CHARACTERS_SIZE);
+ } else {
+ /* string table hit */
+ errn = EXI_ERROR_STRINGVALUES_NOT_SUPPORTED;
+ }
+ }
+ iso2CanonicalizationMethodType->ANY_isUsed = 1u;
+ grammarID = 685;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 685:
+ /* Element[START_ELEMENT_GENERIC, END_ELEMENT, CHARACTERS_GENERIC[STRING]] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ errn = EXI_UNSUPPORTED_EVENT_CODE_CHARACTERISTICS;
+ /* TODO unsupported event : START_ELEMENT_GENERIC */
+ grammarID = 685;
+ break;
+ case 1:
+ done = 1;
+ grammarID = 4;
+ break;
+ case 2:
+ errn = decodeUnsignedInteger16(stream, &iso2CanonicalizationMethodType->ANY.charactersLen);
+ if (errn == 0) {
+ if (iso2CanonicalizationMethodType->ANY.charactersLen >= 2) {
+ iso2CanonicalizationMethodType->ANY.charactersLen = (uint16_t)(iso2CanonicalizationMethodType->ANY.charactersLen - 2); /* string table miss */
+ errn = decodeCharacters(stream, iso2CanonicalizationMethodType->ANY.charactersLen, iso2CanonicalizationMethodType->ANY.characters, iso2CanonicalizationMethodType_ANY_CHARACTERS_SIZE);
+ } else {
+ /* string table hit */
+ errn = EXI_ERROR_STRINGVALUES_NOT_SUPPORTED;
+ }
+ }
+ iso2CanonicalizationMethodType->ANY_isUsed = 1u;
+ grammarID = 685;
+ 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:2016:MsgDataTypes,DisplayParametersType', base type name='anyType', content type='ELEMENT', isAbstract='false', hasTypeId='false', final='0', block='0', particle='("urn:iso:15118:2:2016:MsgDataTypes":CurrentRange{0-1},"urn:iso:15118:2:2016:MsgDataTypes":CurrentSOC{0-1},"urn:iso:15118:2:2016:MsgDataTypes":TargetSOC{0-1},"urn:iso:15118:2:2016:MsgDataTypes":BulkSOC{0-1},"urn:iso:15118:2:2016:MsgDataTypes":MinimumSOC{0-1},"urn:iso:15118:2:2016:MsgDataTypes":ChargingPerformance{0-1},"urn:iso:15118:2:2016:MsgDataTypes":RemainingTimeToTargetSOC{0-1},"urn:iso:15118:2:2016:MsgDataTypes":RemainingTimeToBulkSOC{0-1},"urn:iso:15118:2:2016:MsgDataTypes":RemainingTimeToMinimumSOC{0-1},"urn:iso:15118:2:2016:MsgDataTypes":ChargingComplete{0-1},"urn:iso:15118:2:2016:MsgDataTypes":BulkChargingComplete{0-1},"urn:iso:15118:2:2016:MsgDataTypes":InletHot{0-1})', derivedBy='RESTRICTION'. */
+static int decode_iso2DisplayParametersType(bitstream_t* stream, struct iso2DisplayParametersType* iso2DisplayParametersType) {
+ int grammarID = 1900;
+ int done = 0;
+
+ init_iso2DisplayParametersType(iso2DisplayParametersType);
+
+ while(!done) {
+ switch(grammarID) {
+ case 1900:
+ /* FirstStartTag[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}CurrentRange), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}CurrentSOC), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}TargetSOC), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}BulkSOC), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MinimumSOC), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}ChargingPerformance), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}RemainingTimeToTargetSOC), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}RemainingTimeToBulkSOC), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}RemainingTimeToMinimumSOC), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}ChargingComplete), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}BulkChargingComplete), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}InletHot), END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 4, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ /* First(xsi:type)StartTag[CHARACTERS[UNSIGNED_INTEGER]] */
+ errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
+ if(errn == 0) {
+ if(eventCode == 0) {
+ errn = decodeUnsignedInteger16(stream, &iso2DisplayParametersType->CurrentRange);
+ iso2DisplayParametersType->CurrentRange_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({urn:iso:15118:2:2016:MsgDataTypes}CurrentRange) ? */
+ errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
+ if(eventCode == 0) {
+ grammarID = 1901;
+ } else {
+ errn = EXI_DEVIANT_SUPPORT_NOT_DEPLOYED; /* or also typecast and nillable */
+ }
+ }
+ break;
+ case 1:
+ /* FirstStartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
+ errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
+ if(errn == 0) {
+ if(eventCode == 0) {
+ errn = decodeNBitUnsignedInteger(stream, 7, &(uint32));
+ iso2DisplayParametersType->CurrentSOC = (int8_t)(uint32 + 0);
+ iso2DisplayParametersType->CurrentSOC_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({urn:iso:15118:2:2016:MsgDataTypes}CurrentSOC) ? */
+ errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
+ if(eventCode == 0) {
+ grammarID = 1902;
+ } else {
+ errn = EXI_DEVIANT_SUPPORT_NOT_DEPLOYED; /* or also typecast and nillable */
+ }
+ }
+ break;
+ case 2:
+ /* FirstStartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
+ errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
+ if(errn == 0) {
+ if(eventCode == 0) {
+ errn = decodeNBitUnsignedInteger(stream, 7, &(uint32));
+ iso2DisplayParametersType->TargetSOC = (int8_t)(uint32 + 0);
+ iso2DisplayParametersType->TargetSOC_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({urn:iso:15118:2:2016:MsgDataTypes}TargetSOC) ? */
+ errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
+ if(eventCode == 0) {
+ grammarID = 1903;
+ } else {
+ errn = EXI_DEVIANT_SUPPORT_NOT_DEPLOYED; /* or also typecast and nillable */
+ }
+ }
+ break;
+ case 3:
+ /* FirstStartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
+ errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
+ if(errn == 0) {
+ if(eventCode == 0) {
+ errn = decodeNBitUnsignedInteger(stream, 7, &(uint32));
+ iso2DisplayParametersType->BulkSOC = (int8_t)(uint32 + 0);
+ iso2DisplayParametersType->BulkSOC_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({urn:iso:15118:2:2016:MsgDataTypes}BulkSOC) ? */
+ errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
+ if(eventCode == 0) {
+ grammarID = 1904;
+ } else {
+ errn = EXI_DEVIANT_SUPPORT_NOT_DEPLOYED; /* or also typecast and nillable */
+ }
+ }
+ break;
+ case 4:
+ /* FirstStartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
+ errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
+ if(errn == 0) {
+ if(eventCode == 0) {
+ errn = decodeNBitUnsignedInteger(stream, 7, &(uint32));
+ iso2DisplayParametersType->MinimumSOC = (int8_t)(uint32 + 0);
+ iso2DisplayParametersType->MinimumSOC_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({urn:iso:15118:2:2016:MsgDataTypes}MinimumSOC) ? */
+ errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
+ if(eventCode == 0) {
+ grammarID = 1905;
+ } else {
+ errn = EXI_DEVIANT_SUPPORT_NOT_DEPLOYED; /* or also typecast and nillable */
+ }
+ }
+ break;
+ case 5:
+ errn = decode_iso2PhysicalValueType(stream, &iso2DisplayParametersType->ChargingPerformance);
+ iso2DisplayParametersType->ChargingPerformance_isUsed = 1u;
+ grammarID = 1906;
+ break;
+ case 6:
+ /* FirstStartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
+ errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
+ if(errn == 0) {
+ if(eventCode == 0) {
+ errn = decodeNBitUnsignedInteger(stream, 7, &(uint32));
+ iso2DisplayParametersType->RemainingTimeToTargetSOC = (int8_t)(uint32 + 0);
+ iso2DisplayParametersType->RemainingTimeToTargetSOC_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({urn:iso:15118:2:2016:MsgDataTypes}RemainingTimeToTargetSOC) ? */
+ errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
+ if(eventCode == 0) {
+ grammarID = 1907;
+ } else {
+ errn = EXI_DEVIANT_SUPPORT_NOT_DEPLOYED; /* or also typecast and nillable */
+ }
+ }
+ break;
+ case 7:
+ /* FirstStartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
+ errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
+ if(errn == 0) {
+ if(eventCode == 0) {
+ errn = decodeNBitUnsignedInteger(stream, 7, &(uint32));
+ iso2DisplayParametersType->RemainingTimeToBulkSOC = (int8_t)(uint32 + 0);
+ iso2DisplayParametersType->RemainingTimeToBulkSOC_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({urn:iso:15118:2:2016:MsgDataTypes}RemainingTimeToBulkSOC) ? */
+ errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
+ if(eventCode == 0) {
+ grammarID = 1908;
+ } else {
+ errn = EXI_DEVIANT_SUPPORT_NOT_DEPLOYED; /* or also typecast and nillable */
+ }
+ }
+ break;
+ case 8:
+ /* FirstStartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
+ errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
+ if(errn == 0) {
+ if(eventCode == 0) {
+ errn = decodeNBitUnsignedInteger(stream, 7, &(uint32));
+ iso2DisplayParametersType->RemainingTimeToMinimumSOC = (int8_t)(uint32 + 0);
+ iso2DisplayParametersType->RemainingTimeToMinimumSOC_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({urn:iso:15118:2:2016:MsgDataTypes}RemainingTimeToMinimumSOC) ? */
+ errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
+ if(eventCode == 0) {
+ grammarID = 1909;
+ } else {
+ errn = EXI_DEVIANT_SUPPORT_NOT_DEPLOYED; /* or also typecast and nillable */
+ }
+ }
+ break;
+ case 9:
+ /* FirstStartTag[CHARACTERS[BOOLEAN]] */
+ errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
+ if(errn == 0) {
+ if(eventCode == 0) {
+ errn = decodeBoolean(stream, &iso2DisplayParametersType->ChargingComplete);
+ iso2DisplayParametersType->ChargingComplete_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({urn:iso:15118:2:2016:MsgDataTypes}ChargingComplete) ? */
+ errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
+ if(eventCode == 0) {
+ grammarID = 1910;
+ } else {
+ errn = EXI_DEVIANT_SUPPORT_NOT_DEPLOYED; /* or also typecast and nillable */
+ }
+ }
+ break;
+ case 10:
+ /* FirstStartTag[CHARACTERS[BOOLEAN]] */
+ errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
+ if(errn == 0) {
+ if(eventCode == 0) {
+ errn = decodeBoolean(stream, &iso2DisplayParametersType->BulkChargingComplete);
+ iso2DisplayParametersType->BulkChargingComplete_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({urn:iso:15118:2:2016:MsgDataTypes}BulkChargingComplete) ? */
+ errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
+ if(eventCode == 0) {
+ grammarID = 1911;
+ } else {
+ errn = EXI_DEVIANT_SUPPORT_NOT_DEPLOYED; /* or also typecast and nillable */
+ }
+ }
+ break;
+ case 11:
+ /* FirstStartTag[CHARACTERS[BOOLEAN]] */
+ errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
+ if(errn == 0) {
+ if(eventCode == 0) {
+ errn = decodeBoolean(stream, &iso2DisplayParametersType->InletHot);
+ iso2DisplayParametersType->InletHot_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({urn:iso:15118:2:2016:MsgDataTypes}InletHot) ? */
+ errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
+ if(eventCode == 0) {
+ grammarID = 3;
+ } else {
+ errn = EXI_DEVIANT_SUPPORT_NOT_DEPLOYED; /* or also typecast and nillable */
+ }
+ }
+ break;
+ case 12:
+ done = 1;
+ grammarID = 4;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 1901:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}CurrentSOC), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}TargetSOC), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}BulkSOC), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MinimumSOC), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}ChargingPerformance), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}RemainingTimeToTargetSOC), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}RemainingTimeToBulkSOC), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}RemainingTimeToMinimumSOC), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}ChargingComplete), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}BulkChargingComplete), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}InletHot), END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 4, &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, 7, &(uint32));
+ iso2DisplayParametersType->CurrentSOC = (int8_t)(uint32 + 0);
+ iso2DisplayParametersType->CurrentSOC_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({urn:iso:15118:2:2016:MsgDataTypes}CurrentSOC) ? */
+ errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
+ if(eventCode == 0) {
+ grammarID = 1902;
+ } else {
+ errn = EXI_DEVIANT_SUPPORT_NOT_DEPLOYED; /* or also typecast and nillable */
+ }
+ }
+ break;
+ case 1:
+ /* FirstStartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
+ errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
+ if(errn == 0) {
+ if(eventCode == 0) {
+ errn = decodeNBitUnsignedInteger(stream, 7, &(uint32));
+ iso2DisplayParametersType->TargetSOC = (int8_t)(uint32 + 0);
+ iso2DisplayParametersType->TargetSOC_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({urn:iso:15118:2:2016:MsgDataTypes}TargetSOC) ? */
+ errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
+ if(eventCode == 0) {
+ grammarID = 1903;
+ } else {
+ errn = EXI_DEVIANT_SUPPORT_NOT_DEPLOYED; /* or also typecast and nillable */
+ }
+ }
+ break;
+ case 2:
+ /* FirstStartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
+ errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
+ if(errn == 0) {
+ if(eventCode == 0) {
+ errn = decodeNBitUnsignedInteger(stream, 7, &(uint32));
+ iso2DisplayParametersType->BulkSOC = (int8_t)(uint32 + 0);
+ iso2DisplayParametersType->BulkSOC_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({urn:iso:15118:2:2016:MsgDataTypes}BulkSOC) ? */
+ errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
+ if(eventCode == 0) {
+ grammarID = 1904;
+ } else {
+ errn = EXI_DEVIANT_SUPPORT_NOT_DEPLOYED; /* or also typecast and nillable */
+ }
+ }
+ break;
+ case 3:
+ /* FirstStartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
+ errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
+ if(errn == 0) {
+ if(eventCode == 0) {
+ errn = decodeNBitUnsignedInteger(stream, 7, &(uint32));
+ iso2DisplayParametersType->MinimumSOC = (int8_t)(uint32 + 0);
+ iso2DisplayParametersType->MinimumSOC_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({urn:iso:15118:2:2016:MsgDataTypes}MinimumSOC) ? */
+ errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
+ if(eventCode == 0) {
+ grammarID = 1905;
+ } else {
+ errn = EXI_DEVIANT_SUPPORT_NOT_DEPLOYED; /* or also typecast and nillable */
+ }
+ }
+ break;
+ case 4:
+ errn = decode_iso2PhysicalValueType(stream, &iso2DisplayParametersType->ChargingPerformance);
+ iso2DisplayParametersType->ChargingPerformance_isUsed = 1u;
+ grammarID = 1906;
+ break;
+ case 5:
+ /* FirstStartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
+ errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
+ if(errn == 0) {
+ if(eventCode == 0) {
+ errn = decodeNBitUnsignedInteger(stream, 7, &(uint32));
+ iso2DisplayParametersType->RemainingTimeToTargetSOC = (int8_t)(uint32 + 0);
+ iso2DisplayParametersType->RemainingTimeToTargetSOC_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({urn:iso:15118:2:2016:MsgDataTypes}RemainingTimeToTargetSOC) ? */
+ errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
+ if(eventCode == 0) {
+ grammarID = 1907;
+ } else {
+ errn = EXI_DEVIANT_SUPPORT_NOT_DEPLOYED; /* or also typecast and nillable */
+ }
+ }
+ break;
+ case 6:
+ /* FirstStartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
+ errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
+ if(errn == 0) {
+ if(eventCode == 0) {
+ errn = decodeNBitUnsignedInteger(stream, 7, &(uint32));
+ iso2DisplayParametersType->RemainingTimeToBulkSOC = (int8_t)(uint32 + 0);
+ iso2DisplayParametersType->RemainingTimeToBulkSOC_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({urn:iso:15118:2:2016:MsgDataTypes}RemainingTimeToBulkSOC) ? */
+ errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
+ if(eventCode == 0) {
+ grammarID = 1908;
+ } else {
+ errn = EXI_DEVIANT_SUPPORT_NOT_DEPLOYED; /* or also typecast and nillable */
+ }
+ }
+ break;
+ case 7:
+ /* FirstStartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
+ errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
+ if(errn == 0) {
+ if(eventCode == 0) {
+ errn = decodeNBitUnsignedInteger(stream, 7, &(uint32));
+ iso2DisplayParametersType->RemainingTimeToMinimumSOC = (int8_t)(uint32 + 0);
+ iso2DisplayParametersType->RemainingTimeToMinimumSOC_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({urn:iso:15118:2:2016:MsgDataTypes}RemainingTimeToMinimumSOC) ? */
+ errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
+ if(eventCode == 0) {
+ grammarID = 1909;
+ } else {
+ errn = EXI_DEVIANT_SUPPORT_NOT_DEPLOYED; /* or also typecast and nillable */
+ }
+ }
+ break;
+ case 8:
+ /* FirstStartTag[CHARACTERS[BOOLEAN]] */
+ errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
+ if(errn == 0) {
+ if(eventCode == 0) {
+ errn = decodeBoolean(stream, &iso2DisplayParametersType->ChargingComplete);
+ iso2DisplayParametersType->ChargingComplete_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({urn:iso:15118:2:2016:MsgDataTypes}ChargingComplete) ? */
+ errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
+ if(eventCode == 0) {
+ grammarID = 1910;
+ } else {
+ errn = EXI_DEVIANT_SUPPORT_NOT_DEPLOYED; /* or also typecast and nillable */
+ }
+ }
+ break;
+ case 9:
+ /* FirstStartTag[CHARACTERS[BOOLEAN]] */
+ errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
+ if(errn == 0) {
+ if(eventCode == 0) {
+ errn = decodeBoolean(stream, &iso2DisplayParametersType->BulkChargingComplete);
+ iso2DisplayParametersType->BulkChargingComplete_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({urn:iso:15118:2:2016:MsgDataTypes}BulkChargingComplete) ? */
+ errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
+ if(eventCode == 0) {
+ grammarID = 1911;
+ } else {
+ errn = EXI_DEVIANT_SUPPORT_NOT_DEPLOYED; /* or also typecast and nillable */
+ }
+ }
+ break;
+ case 10:
+ /* FirstStartTag[CHARACTERS[BOOLEAN]] */
+ errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
+ if(errn == 0) {
+ if(eventCode == 0) {
+ errn = decodeBoolean(stream, &iso2DisplayParametersType->InletHot);
+ iso2DisplayParametersType->InletHot_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({urn:iso:15118:2:2016:MsgDataTypes}InletHot) ? */
+ errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
+ if(eventCode == 0) {
+ grammarID = 3;
+ } else {
+ errn = EXI_DEVIANT_SUPPORT_NOT_DEPLOYED; /* or also typecast and nillable */
+ }
+ }
+ break;
+ case 11:
+ done = 1;
+ grammarID = 4;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 1902:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}TargetSOC), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}BulkSOC), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MinimumSOC), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}ChargingPerformance), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}RemainingTimeToTargetSOC), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}RemainingTimeToBulkSOC), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}RemainingTimeToMinimumSOC), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}ChargingComplete), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}BulkChargingComplete), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}InletHot), END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 4, &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, 7, &(uint32));
+ iso2DisplayParametersType->TargetSOC = (int8_t)(uint32 + 0);
+ iso2DisplayParametersType->TargetSOC_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({urn:iso:15118:2:2016:MsgDataTypes}TargetSOC) ? */
+ errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
+ if(eventCode == 0) {
+ grammarID = 1903;
+ } else {
+ errn = EXI_DEVIANT_SUPPORT_NOT_DEPLOYED; /* or also typecast and nillable */
+ }
+ }
+ break;
+ case 1:
+ /* FirstStartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
+ errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
+ if(errn == 0) {
+ if(eventCode == 0) {
+ errn = decodeNBitUnsignedInteger(stream, 7, &(uint32));
+ iso2DisplayParametersType->BulkSOC = (int8_t)(uint32 + 0);
+ iso2DisplayParametersType->BulkSOC_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({urn:iso:15118:2:2016:MsgDataTypes}BulkSOC) ? */
+ errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
+ if(eventCode == 0) {
+ grammarID = 1904;
+ } else {
+ errn = EXI_DEVIANT_SUPPORT_NOT_DEPLOYED; /* or also typecast and nillable */
+ }
+ }
+ break;
+ case 2:
+ /* FirstStartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
+ errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
+ if(errn == 0) {
+ if(eventCode == 0) {
+ errn = decodeNBitUnsignedInteger(stream, 7, &(uint32));
+ iso2DisplayParametersType->MinimumSOC = (int8_t)(uint32 + 0);
+ iso2DisplayParametersType->MinimumSOC_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({urn:iso:15118:2:2016:MsgDataTypes}MinimumSOC) ? */
+ errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
+ if(eventCode == 0) {
+ grammarID = 1905;
+ } else {
+ errn = EXI_DEVIANT_SUPPORT_NOT_DEPLOYED; /* or also typecast and nillable */
+ }
+ }
+ break;
+ case 3:
+ errn = decode_iso2PhysicalValueType(stream, &iso2DisplayParametersType->ChargingPerformance);
+ iso2DisplayParametersType->ChargingPerformance_isUsed = 1u;
+ grammarID = 1906;
+ break;
+ case 4:
+ /* FirstStartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
+ errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
+ if(errn == 0) {
+ if(eventCode == 0) {
+ errn = decodeNBitUnsignedInteger(stream, 7, &(uint32));
+ iso2DisplayParametersType->RemainingTimeToTargetSOC = (int8_t)(uint32 + 0);
+ iso2DisplayParametersType->RemainingTimeToTargetSOC_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({urn:iso:15118:2:2016:MsgDataTypes}RemainingTimeToTargetSOC) ? */
+ errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
+ if(eventCode == 0) {
+ grammarID = 1907;
+ } else {
+ errn = EXI_DEVIANT_SUPPORT_NOT_DEPLOYED; /* or also typecast and nillable */
+ }
+ }
+ break;
+ case 5:
+ /* FirstStartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
+ errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
+ if(errn == 0) {
+ if(eventCode == 0) {
+ errn = decodeNBitUnsignedInteger(stream, 7, &(uint32));
+ iso2DisplayParametersType->RemainingTimeToBulkSOC = (int8_t)(uint32 + 0);
+ iso2DisplayParametersType->RemainingTimeToBulkSOC_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({urn:iso:15118:2:2016:MsgDataTypes}RemainingTimeToBulkSOC) ? */
+ errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
+ if(eventCode == 0) {
+ grammarID = 1908;
+ } else {
+ errn = EXI_DEVIANT_SUPPORT_NOT_DEPLOYED; /* or also typecast and nillable */
+ }
+ }
+ break;
+ case 6:
+ /* FirstStartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
+ errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
+ if(errn == 0) {
+ if(eventCode == 0) {
+ errn = decodeNBitUnsignedInteger(stream, 7, &(uint32));
+ iso2DisplayParametersType->RemainingTimeToMinimumSOC = (int8_t)(uint32 + 0);
+ iso2DisplayParametersType->RemainingTimeToMinimumSOC_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({urn:iso:15118:2:2016:MsgDataTypes}RemainingTimeToMinimumSOC) ? */
+ errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
+ if(eventCode == 0) {
+ grammarID = 1909;
+ } else {
+ errn = EXI_DEVIANT_SUPPORT_NOT_DEPLOYED; /* or also typecast and nillable */
+ }
+ }
+ break;
+ case 7:
+ /* FirstStartTag[CHARACTERS[BOOLEAN]] */
+ errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
+ if(errn == 0) {
+ if(eventCode == 0) {
+ errn = decodeBoolean(stream, &iso2DisplayParametersType->ChargingComplete);
+ iso2DisplayParametersType->ChargingComplete_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({urn:iso:15118:2:2016:MsgDataTypes}ChargingComplete) ? */
+ errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
+ if(eventCode == 0) {
+ grammarID = 1910;
+ } else {
+ errn = EXI_DEVIANT_SUPPORT_NOT_DEPLOYED; /* or also typecast and nillable */
+ }
+ }
+ break;
+ case 8:
+ /* FirstStartTag[CHARACTERS[BOOLEAN]] */
+ errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
+ if(errn == 0) {
+ if(eventCode == 0) {
+ errn = decodeBoolean(stream, &iso2DisplayParametersType->BulkChargingComplete);
+ iso2DisplayParametersType->BulkChargingComplete_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({urn:iso:15118:2:2016:MsgDataTypes}BulkChargingComplete) ? */
+ errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
+ if(eventCode == 0) {
+ grammarID = 1911;
+ } else {
+ errn = EXI_DEVIANT_SUPPORT_NOT_DEPLOYED; /* or also typecast and nillable */
+ }
+ }
+ break;
+ case 9:
+ /* FirstStartTag[CHARACTERS[BOOLEAN]] */
+ errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
+ if(errn == 0) {
+ if(eventCode == 0) {
+ errn = decodeBoolean(stream, &iso2DisplayParametersType->InletHot);
+ iso2DisplayParametersType->InletHot_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({urn:iso:15118:2:2016:MsgDataTypes}InletHot) ? */
+ errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
+ if(eventCode == 0) {
+ grammarID = 3;
+ } else {
+ errn = EXI_DEVIANT_SUPPORT_NOT_DEPLOYED; /* or also typecast and nillable */
+ }
+ }
+ break;
+ case 10:
+ done = 1;
+ grammarID = 4;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 1903:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}BulkSOC), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MinimumSOC), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}ChargingPerformance), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}RemainingTimeToTargetSOC), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}RemainingTimeToBulkSOC), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}RemainingTimeToMinimumSOC), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}ChargingComplete), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}BulkChargingComplete), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}InletHot), END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 4, &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, 7, &(uint32));
+ iso2DisplayParametersType->BulkSOC = (int8_t)(uint32 + 0);
+ iso2DisplayParametersType->BulkSOC_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({urn:iso:15118:2:2016:MsgDataTypes}BulkSOC) ? */
+ errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
+ if(eventCode == 0) {
+ grammarID = 1904;
+ } else {
+ errn = EXI_DEVIANT_SUPPORT_NOT_DEPLOYED; /* or also typecast and nillable */
+ }
+ }
+ break;
+ case 1:
+ /* FirstStartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
+ errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
+ if(errn == 0) {
+ if(eventCode == 0) {
+ errn = decodeNBitUnsignedInteger(stream, 7, &(uint32));
+ iso2DisplayParametersType->MinimumSOC = (int8_t)(uint32 + 0);
+ iso2DisplayParametersType->MinimumSOC_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({urn:iso:15118:2:2016:MsgDataTypes}MinimumSOC) ? */
+ errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
+ if(eventCode == 0) {
+ grammarID = 1905;
+ } else {
+ errn = EXI_DEVIANT_SUPPORT_NOT_DEPLOYED; /* or also typecast and nillable */
+ }
+ }
+ break;
+ case 2:
+ errn = decode_iso2PhysicalValueType(stream, &iso2DisplayParametersType->ChargingPerformance);
+ iso2DisplayParametersType->ChargingPerformance_isUsed = 1u;
+ grammarID = 1906;
+ break;
+ case 3:
+ /* FirstStartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
+ errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
+ if(errn == 0) {
+ if(eventCode == 0) {
+ errn = decodeNBitUnsignedInteger(stream, 7, &(uint32));
+ iso2DisplayParametersType->RemainingTimeToTargetSOC = (int8_t)(uint32 + 0);
+ iso2DisplayParametersType->RemainingTimeToTargetSOC_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({urn:iso:15118:2:2016:MsgDataTypes}RemainingTimeToTargetSOC) ? */
+ errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
+ if(eventCode == 0) {
+ grammarID = 1907;
+ } else {
+ errn = EXI_DEVIANT_SUPPORT_NOT_DEPLOYED; /* or also typecast and nillable */
+ }
+ }
+ break;
+ case 4:
+ /* FirstStartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
+ errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
+ if(errn == 0) {
+ if(eventCode == 0) {
+ errn = decodeNBitUnsignedInteger(stream, 7, &(uint32));
+ iso2DisplayParametersType->RemainingTimeToBulkSOC = (int8_t)(uint32 + 0);
+ iso2DisplayParametersType->RemainingTimeToBulkSOC_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({urn:iso:15118:2:2016:MsgDataTypes}RemainingTimeToBulkSOC) ? */
+ errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
+ if(eventCode == 0) {
+ grammarID = 1908;
+ } else {
+ errn = EXI_DEVIANT_SUPPORT_NOT_DEPLOYED; /* or also typecast and nillable */
+ }
+ }
+ break;
+ case 5:
+ /* FirstStartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
+ errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
+ if(errn == 0) {
+ if(eventCode == 0) {
+ errn = decodeNBitUnsignedInteger(stream, 7, &(uint32));
+ iso2DisplayParametersType->RemainingTimeToMinimumSOC = (int8_t)(uint32 + 0);
+ iso2DisplayParametersType->RemainingTimeToMinimumSOC_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({urn:iso:15118:2:2016:MsgDataTypes}RemainingTimeToMinimumSOC) ? */
+ errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
+ if(eventCode == 0) {
+ grammarID = 1909;
+ } else {
+ errn = EXI_DEVIANT_SUPPORT_NOT_DEPLOYED; /* or also typecast and nillable */
+ }
+ }
+ break;
+ case 6:
+ /* FirstStartTag[CHARACTERS[BOOLEAN]] */
+ errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
+ if(errn == 0) {
+ if(eventCode == 0) {
+ errn = decodeBoolean(stream, &iso2DisplayParametersType->ChargingComplete);
+ iso2DisplayParametersType->ChargingComplete_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({urn:iso:15118:2:2016:MsgDataTypes}ChargingComplete) ? */
+ errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
+ if(eventCode == 0) {
+ grammarID = 1910;
+ } else {
+ errn = EXI_DEVIANT_SUPPORT_NOT_DEPLOYED; /* or also typecast and nillable */
+ }
+ }
+ break;
+ case 7:
+ /* FirstStartTag[CHARACTERS[BOOLEAN]] */
+ errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
+ if(errn == 0) {
+ if(eventCode == 0) {
+ errn = decodeBoolean(stream, &iso2DisplayParametersType->BulkChargingComplete);
+ iso2DisplayParametersType->BulkChargingComplete_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({urn:iso:15118:2:2016:MsgDataTypes}BulkChargingComplete) ? */
+ errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
+ if(eventCode == 0) {
+ grammarID = 1911;
+ } else {
+ errn = EXI_DEVIANT_SUPPORT_NOT_DEPLOYED; /* or also typecast and nillable */
+ }
+ }
+ break;
+ case 8:
+ /* FirstStartTag[CHARACTERS[BOOLEAN]] */
+ errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
+ if(errn == 0) {
+ if(eventCode == 0) {
+ errn = decodeBoolean(stream, &iso2DisplayParametersType->InletHot);
+ iso2DisplayParametersType->InletHot_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({urn:iso:15118:2:2016:MsgDataTypes}InletHot) ? */
+ errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
+ if(eventCode == 0) {
+ grammarID = 3;
+ } else {
+ errn = EXI_DEVIANT_SUPPORT_NOT_DEPLOYED; /* or also typecast and nillable */
+ }
+ }
+ break;
+ case 9:
+ done = 1;
+ grammarID = 4;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 1904:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MinimumSOC), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}ChargingPerformance), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}RemainingTimeToTargetSOC), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}RemainingTimeToBulkSOC), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}RemainingTimeToMinimumSOC), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}ChargingComplete), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}BulkChargingComplete), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}InletHot), END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 4, &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, 7, &(uint32));
+ iso2DisplayParametersType->MinimumSOC = (int8_t)(uint32 + 0);
+ iso2DisplayParametersType->MinimumSOC_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({urn:iso:15118:2:2016:MsgDataTypes}MinimumSOC) ? */
+ errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
+ if(eventCode == 0) {
+ grammarID = 1905;
+ } else {
+ errn = EXI_DEVIANT_SUPPORT_NOT_DEPLOYED; /* or also typecast and nillable */
+ }
+ }
+ break;
+ case 1:
+ errn = decode_iso2PhysicalValueType(stream, &iso2DisplayParametersType->ChargingPerformance);
+ iso2DisplayParametersType->ChargingPerformance_isUsed = 1u;
+ grammarID = 1906;
+ break;
+ case 2:
+ /* FirstStartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
+ errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
+ if(errn == 0) {
+ if(eventCode == 0) {
+ errn = decodeNBitUnsignedInteger(stream, 7, &(uint32));
+ iso2DisplayParametersType->RemainingTimeToTargetSOC = (int8_t)(uint32 + 0);
+ iso2DisplayParametersType->RemainingTimeToTargetSOC_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({urn:iso:15118:2:2016:MsgDataTypes}RemainingTimeToTargetSOC) ? */
+ errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
+ if(eventCode == 0) {
+ grammarID = 1907;
+ } else {
+ errn = EXI_DEVIANT_SUPPORT_NOT_DEPLOYED; /* or also typecast and nillable */
+ }
+ }
+ break;
+ case 3:
+ /* FirstStartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
+ errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
+ if(errn == 0) {
+ if(eventCode == 0) {
+ errn = decodeNBitUnsignedInteger(stream, 7, &(uint32));
+ iso2DisplayParametersType->RemainingTimeToBulkSOC = (int8_t)(uint32 + 0);
+ iso2DisplayParametersType->RemainingTimeToBulkSOC_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({urn:iso:15118:2:2016:MsgDataTypes}RemainingTimeToBulkSOC) ? */
+ errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
+ if(eventCode == 0) {
+ grammarID = 1908;
+ } else {
+ errn = EXI_DEVIANT_SUPPORT_NOT_DEPLOYED; /* or also typecast and nillable */
+ }
+ }
+ break;
+ case 4:
+ /* FirstStartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
+ errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
+ if(errn == 0) {
+ if(eventCode == 0) {
+ errn = decodeNBitUnsignedInteger(stream, 7, &(uint32));
+ iso2DisplayParametersType->RemainingTimeToMinimumSOC = (int8_t)(uint32 + 0);
+ iso2DisplayParametersType->RemainingTimeToMinimumSOC_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({urn:iso:15118:2:2016:MsgDataTypes}RemainingTimeToMinimumSOC) ? */
+ errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
+ if(eventCode == 0) {
+ grammarID = 1909;
+ } else {
+ errn = EXI_DEVIANT_SUPPORT_NOT_DEPLOYED; /* or also typecast and nillable */
+ }
+ }
+ break;
+ case 5:
+ /* FirstStartTag[CHARACTERS[BOOLEAN]] */
+ errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
+ if(errn == 0) {
+ if(eventCode == 0) {
+ errn = decodeBoolean(stream, &iso2DisplayParametersType->ChargingComplete);
+ iso2DisplayParametersType->ChargingComplete_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({urn:iso:15118:2:2016:MsgDataTypes}ChargingComplete) ? */
+ errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
+ if(eventCode == 0) {
+ grammarID = 1910;
+ } else {
+ errn = EXI_DEVIANT_SUPPORT_NOT_DEPLOYED; /* or also typecast and nillable */
+ }
+ }
+ break;
+ case 6:
+ /* FirstStartTag[CHARACTERS[BOOLEAN]] */
+ errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
+ if(errn == 0) {
+ if(eventCode == 0) {
+ errn = decodeBoolean(stream, &iso2DisplayParametersType->BulkChargingComplete);
+ iso2DisplayParametersType->BulkChargingComplete_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({urn:iso:15118:2:2016:MsgDataTypes}BulkChargingComplete) ? */
+ errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
+ if(eventCode == 0) {
+ grammarID = 1911;
+ } else {
+ errn = EXI_DEVIANT_SUPPORT_NOT_DEPLOYED; /* or also typecast and nillable */
+ }
+ }
+ break;
+ case 7:
+ /* FirstStartTag[CHARACTERS[BOOLEAN]] */
+ errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
+ if(errn == 0) {
+ if(eventCode == 0) {
+ errn = decodeBoolean(stream, &iso2DisplayParametersType->InletHot);
+ iso2DisplayParametersType->InletHot_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({urn:iso:15118:2:2016:MsgDataTypes}InletHot) ? */
+ errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
+ if(eventCode == 0) {
+ grammarID = 3;
+ } else {
+ errn = EXI_DEVIANT_SUPPORT_NOT_DEPLOYED; /* or also typecast and nillable */
+ }
+ }
+ break;
+ case 8:
+ done = 1;
+ grammarID = 4;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 1905:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}ChargingPerformance), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}RemainingTimeToTargetSOC), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}RemainingTimeToBulkSOC), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}RemainingTimeToMinimumSOC), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}ChargingComplete), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}BulkChargingComplete), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}InletHot), END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 4, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ errn = decode_iso2PhysicalValueType(stream, &iso2DisplayParametersType->ChargingPerformance);
+ iso2DisplayParametersType->ChargingPerformance_isUsed = 1u;
+ grammarID = 1906;
+ break;
+ case 1:
+ /* FirstStartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
+ errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
+ if(errn == 0) {
+ if(eventCode == 0) {
+ errn = decodeNBitUnsignedInteger(stream, 7, &(uint32));
+ iso2DisplayParametersType->RemainingTimeToTargetSOC = (int8_t)(uint32 + 0);
+ iso2DisplayParametersType->RemainingTimeToTargetSOC_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({urn:iso:15118:2:2016:MsgDataTypes}RemainingTimeToTargetSOC) ? */
+ errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
+ if(eventCode == 0) {
+ grammarID = 1907;
+ } else {
+ errn = EXI_DEVIANT_SUPPORT_NOT_DEPLOYED; /* or also typecast and nillable */
+ }
+ }
+ break;
+ case 2:
+ /* FirstStartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
+ errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
+ if(errn == 0) {
+ if(eventCode == 0) {
+ errn = decodeNBitUnsignedInteger(stream, 7, &(uint32));
+ iso2DisplayParametersType->RemainingTimeToBulkSOC = (int8_t)(uint32 + 0);
+ iso2DisplayParametersType->RemainingTimeToBulkSOC_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({urn:iso:15118:2:2016:MsgDataTypes}RemainingTimeToBulkSOC) ? */
+ errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
+ if(eventCode == 0) {
+ grammarID = 1908;
+ } else {
+ errn = EXI_DEVIANT_SUPPORT_NOT_DEPLOYED; /* or also typecast and nillable */
+ }
+ }
+ break;
+ case 3:
+ /* FirstStartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
+ errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
+ if(errn == 0) {
+ if(eventCode == 0) {
+ errn = decodeNBitUnsignedInteger(stream, 7, &(uint32));
+ iso2DisplayParametersType->RemainingTimeToMinimumSOC = (int8_t)(uint32 + 0);
+ iso2DisplayParametersType->RemainingTimeToMinimumSOC_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({urn:iso:15118:2:2016:MsgDataTypes}RemainingTimeToMinimumSOC) ? */
+ errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
+ if(eventCode == 0) {
+ grammarID = 1909;
+ } else {
+ errn = EXI_DEVIANT_SUPPORT_NOT_DEPLOYED; /* or also typecast and nillable */
+ }
+ }
+ break;
+ case 4:
+ /* FirstStartTag[CHARACTERS[BOOLEAN]] */
+ errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
+ if(errn == 0) {
+ if(eventCode == 0) {
+ errn = decodeBoolean(stream, &iso2DisplayParametersType->ChargingComplete);
+ iso2DisplayParametersType->ChargingComplete_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({urn:iso:15118:2:2016:MsgDataTypes}ChargingComplete) ? */
+ errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
+ if(eventCode == 0) {
+ grammarID = 1910;
+ } else {
+ errn = EXI_DEVIANT_SUPPORT_NOT_DEPLOYED; /* or also typecast and nillable */
+ }
+ }
+ break;
+ case 5:
+ /* FirstStartTag[CHARACTERS[BOOLEAN]] */
+ errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
+ if(errn == 0) {
+ if(eventCode == 0) {
+ errn = decodeBoolean(stream, &iso2DisplayParametersType->BulkChargingComplete);
+ iso2DisplayParametersType->BulkChargingComplete_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({urn:iso:15118:2:2016:MsgDataTypes}BulkChargingComplete) ? */
+ errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
+ if(eventCode == 0) {
+ grammarID = 1911;
+ } else {
+ errn = EXI_DEVIANT_SUPPORT_NOT_DEPLOYED; /* or also typecast and nillable */
+ }
+ }
+ break;
+ case 6:
+ /* FirstStartTag[CHARACTERS[BOOLEAN]] */
+ errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
+ if(errn == 0) {
+ if(eventCode == 0) {
+ errn = decodeBoolean(stream, &iso2DisplayParametersType->InletHot);
+ iso2DisplayParametersType->InletHot_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({urn:iso:15118:2:2016:MsgDataTypes}InletHot) ? */
+ errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
+ if(eventCode == 0) {
+ grammarID = 3;
+ } else {
+ errn = EXI_DEVIANT_SUPPORT_NOT_DEPLOYED; /* or also typecast and nillable */
+ }
+ }
+ break;
+ case 7:
+ done = 1;
+ grammarID = 4;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 1906:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}RemainingTimeToTargetSOC), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}RemainingTimeToBulkSOC), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}RemainingTimeToMinimumSOC), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}ChargingComplete), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}BulkChargingComplete), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}InletHot), END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 3, &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, 7, &(uint32));
+ iso2DisplayParametersType->RemainingTimeToTargetSOC = (int8_t)(uint32 + 0);
+ iso2DisplayParametersType->RemainingTimeToTargetSOC_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({urn:iso:15118:2:2016:MsgDataTypes}RemainingTimeToTargetSOC) ? */
+ errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
+ if(eventCode == 0) {
+ grammarID = 1907;
+ } else {
+ errn = EXI_DEVIANT_SUPPORT_NOT_DEPLOYED; /* or also typecast and nillable */
+ }
+ }
+ break;
+ case 1:
+ /* FirstStartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
+ errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
+ if(errn == 0) {
+ if(eventCode == 0) {
+ errn = decodeNBitUnsignedInteger(stream, 7, &(uint32));
+ iso2DisplayParametersType->RemainingTimeToBulkSOC = (int8_t)(uint32 + 0);
+ iso2DisplayParametersType->RemainingTimeToBulkSOC_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({urn:iso:15118:2:2016:MsgDataTypes}RemainingTimeToBulkSOC) ? */
+ errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
+ if(eventCode == 0) {
+ grammarID = 1908;
+ } else {
+ errn = EXI_DEVIANT_SUPPORT_NOT_DEPLOYED; /* or also typecast and nillable */
+ }
+ }
+ break;
+ case 2:
+ /* FirstStartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
+ errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
+ if(errn == 0) {
+ if(eventCode == 0) {
+ errn = decodeNBitUnsignedInteger(stream, 7, &(uint32));
+ iso2DisplayParametersType->RemainingTimeToMinimumSOC = (int8_t)(uint32 + 0);
+ iso2DisplayParametersType->RemainingTimeToMinimumSOC_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({urn:iso:15118:2:2016:MsgDataTypes}RemainingTimeToMinimumSOC) ? */
+ errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
+ if(eventCode == 0) {
+ grammarID = 1909;
+ } else {
+ errn = EXI_DEVIANT_SUPPORT_NOT_DEPLOYED; /* or also typecast and nillable */
+ }
+ }
+ break;
+ case 3:
+ /* FirstStartTag[CHARACTERS[BOOLEAN]] */
+ errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
+ if(errn == 0) {
+ if(eventCode == 0) {
+ errn = decodeBoolean(stream, &iso2DisplayParametersType->ChargingComplete);
+ iso2DisplayParametersType->ChargingComplete_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({urn:iso:15118:2:2016:MsgDataTypes}ChargingComplete) ? */
+ errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
+ if(eventCode == 0) {
+ grammarID = 1910;
+ } else {
+ errn = EXI_DEVIANT_SUPPORT_NOT_DEPLOYED; /* or also typecast and nillable */
+ }
+ }
+ break;
+ case 4:
+ /* FirstStartTag[CHARACTERS[BOOLEAN]] */
+ errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
+ if(errn == 0) {
+ if(eventCode == 0) {
+ errn = decodeBoolean(stream, &iso2DisplayParametersType->BulkChargingComplete);
+ iso2DisplayParametersType->BulkChargingComplete_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({urn:iso:15118:2:2016:MsgDataTypes}BulkChargingComplete) ? */
+ errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
+ if(eventCode == 0) {
+ grammarID = 1911;
+ } else {
+ errn = EXI_DEVIANT_SUPPORT_NOT_DEPLOYED; /* or also typecast and nillable */
+ }
+ }
+ break;
+ case 5:
+ /* FirstStartTag[CHARACTERS[BOOLEAN]] */
+ errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
+ if(errn == 0) {
+ if(eventCode == 0) {
+ errn = decodeBoolean(stream, &iso2DisplayParametersType->InletHot);
+ iso2DisplayParametersType->InletHot_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({urn:iso:15118:2:2016:MsgDataTypes}InletHot) ? */
+ errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
+ if(eventCode == 0) {
+ grammarID = 3;
+ } else {
+ errn = EXI_DEVIANT_SUPPORT_NOT_DEPLOYED; /* or also typecast and nillable */
+ }
+ }
+ break;
+ case 6:
+ done = 1;
+ grammarID = 4;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 1907:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}RemainingTimeToBulkSOC), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}RemainingTimeToMinimumSOC), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}ChargingComplete), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}BulkChargingComplete), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}InletHot), END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 3, &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, 7, &(uint32));
+ iso2DisplayParametersType->RemainingTimeToBulkSOC = (int8_t)(uint32 + 0);
+ iso2DisplayParametersType->RemainingTimeToBulkSOC_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({urn:iso:15118:2:2016:MsgDataTypes}RemainingTimeToBulkSOC) ? */
+ errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
+ if(eventCode == 0) {
+ grammarID = 1908;
+ } else {
+ errn = EXI_DEVIANT_SUPPORT_NOT_DEPLOYED; /* or also typecast and nillable */
+ }
+ }
+ break;
+ case 1:
+ /* FirstStartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
+ errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
+ if(errn == 0) {
+ if(eventCode == 0) {
+ errn = decodeNBitUnsignedInteger(stream, 7, &(uint32));
+ iso2DisplayParametersType->RemainingTimeToMinimumSOC = (int8_t)(uint32 + 0);
+ iso2DisplayParametersType->RemainingTimeToMinimumSOC_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({urn:iso:15118:2:2016:MsgDataTypes}RemainingTimeToMinimumSOC) ? */
+ errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
+ if(eventCode == 0) {
+ grammarID = 1909;
+ } else {
+ errn = EXI_DEVIANT_SUPPORT_NOT_DEPLOYED; /* or also typecast and nillable */
+ }
+ }
+ break;
+ case 2:
+ /* FirstStartTag[CHARACTERS[BOOLEAN]] */
+ errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
+ if(errn == 0) {
+ if(eventCode == 0) {
+ errn = decodeBoolean(stream, &iso2DisplayParametersType->ChargingComplete);
+ iso2DisplayParametersType->ChargingComplete_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({urn:iso:15118:2:2016:MsgDataTypes}ChargingComplete) ? */
+ errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
+ if(eventCode == 0) {
+ grammarID = 1910;
+ } else {
+ errn = EXI_DEVIANT_SUPPORT_NOT_DEPLOYED; /* or also typecast and nillable */
+ }
+ }
+ break;
+ case 3:
+ /* FirstStartTag[CHARACTERS[BOOLEAN]] */
+ errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
+ if(errn == 0) {
+ if(eventCode == 0) {
+ errn = decodeBoolean(stream, &iso2DisplayParametersType->BulkChargingComplete);
+ iso2DisplayParametersType->BulkChargingComplete_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({urn:iso:15118:2:2016:MsgDataTypes}BulkChargingComplete) ? */
+ errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
+ if(eventCode == 0) {
+ grammarID = 1911;
+ } else {
+ errn = EXI_DEVIANT_SUPPORT_NOT_DEPLOYED; /* or also typecast and nillable */
+ }
+ }
+ break;
+ case 4:
+ /* FirstStartTag[CHARACTERS[BOOLEAN]] */
+ errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
+ if(errn == 0) {
+ if(eventCode == 0) {
+ errn = decodeBoolean(stream, &iso2DisplayParametersType->InletHot);
+ iso2DisplayParametersType->InletHot_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({urn:iso:15118:2:2016:MsgDataTypes}InletHot) ? */
+ errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
+ if(eventCode == 0) {
+ grammarID = 3;
+ } else {
+ errn = EXI_DEVIANT_SUPPORT_NOT_DEPLOYED; /* or also typecast and nillable */
+ }
+ }
+ break;
+ case 5:
+ done = 1;
+ grammarID = 4;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 1908:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}RemainingTimeToMinimumSOC), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}ChargingComplete), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}BulkChargingComplete), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}InletHot), END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 3, &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, 7, &(uint32));
+ iso2DisplayParametersType->RemainingTimeToMinimumSOC = (int8_t)(uint32 + 0);
+ iso2DisplayParametersType->RemainingTimeToMinimumSOC_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({urn:iso:15118:2:2016:MsgDataTypes}RemainingTimeToMinimumSOC) ? */
+ errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
+ if(eventCode == 0) {
+ grammarID = 1909;
+ } else {
+ errn = EXI_DEVIANT_SUPPORT_NOT_DEPLOYED; /* or also typecast and nillable */
+ }
+ }
+ break;
+ case 1:
+ /* FirstStartTag[CHARACTERS[BOOLEAN]] */
+ errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
+ if(errn == 0) {
+ if(eventCode == 0) {
+ errn = decodeBoolean(stream, &iso2DisplayParametersType->ChargingComplete);
+ iso2DisplayParametersType->ChargingComplete_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({urn:iso:15118:2:2016:MsgDataTypes}ChargingComplete) ? */
+ errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
+ if(eventCode == 0) {
+ grammarID = 1910;
+ } else {
+ errn = EXI_DEVIANT_SUPPORT_NOT_DEPLOYED; /* or also typecast and nillable */
+ }
+ }
+ break;
+ case 2:
+ /* FirstStartTag[CHARACTERS[BOOLEAN]] */
+ errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
+ if(errn == 0) {
+ if(eventCode == 0) {
+ errn = decodeBoolean(stream, &iso2DisplayParametersType->BulkChargingComplete);
+ iso2DisplayParametersType->BulkChargingComplete_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({urn:iso:15118:2:2016:MsgDataTypes}BulkChargingComplete) ? */
+ errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
+ if(eventCode == 0) {
+ grammarID = 1911;
+ } else {
+ errn = EXI_DEVIANT_SUPPORT_NOT_DEPLOYED; /* or also typecast and nillable */
+ }
+ }
+ break;
+ case 3:
+ /* FirstStartTag[CHARACTERS[BOOLEAN]] */
+ errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
+ if(errn == 0) {
+ if(eventCode == 0) {
+ errn = decodeBoolean(stream, &iso2DisplayParametersType->InletHot);
+ iso2DisplayParametersType->InletHot_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({urn:iso:15118:2:2016:MsgDataTypes}InletHot) ? */
+ errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
+ if(eventCode == 0) {
+ grammarID = 3;
+ } else {
+ errn = EXI_DEVIANT_SUPPORT_NOT_DEPLOYED; /* or also typecast and nillable */
+ }
+ }
+ break;
+ case 4:
+ done = 1;
+ grammarID = 4;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 1909:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}ChargingComplete), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}BulkChargingComplete), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}InletHot), END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 3, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ /* FirstStartTag[CHARACTERS[BOOLEAN]] */
+ errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
+ if(errn == 0) {
+ if(eventCode == 0) {
+ errn = decodeBoolean(stream, &iso2DisplayParametersType->ChargingComplete);
+ iso2DisplayParametersType->ChargingComplete_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({urn:iso:15118:2:2016:MsgDataTypes}ChargingComplete) ? */
+ errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
+ if(eventCode == 0) {
+ grammarID = 1910;
+ } else {
+ errn = EXI_DEVIANT_SUPPORT_NOT_DEPLOYED; /* or also typecast and nillable */
+ }
+ }
+ break;
+ case 1:
+ /* FirstStartTag[CHARACTERS[BOOLEAN]] */
+ errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
+ if(errn == 0) {
+ if(eventCode == 0) {
+ errn = decodeBoolean(stream, &iso2DisplayParametersType->BulkChargingComplete);
+ iso2DisplayParametersType->BulkChargingComplete_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({urn:iso:15118:2:2016:MsgDataTypes}BulkChargingComplete) ? */
+ errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
+ if(eventCode == 0) {
+ grammarID = 1911;
+ } else {
+ errn = EXI_DEVIANT_SUPPORT_NOT_DEPLOYED; /* or also typecast and nillable */
+ }
+ }
+ break;
+ case 2:
+ /* FirstStartTag[CHARACTERS[BOOLEAN]] */
+ errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
+ if(errn == 0) {
+ if(eventCode == 0) {
+ errn = decodeBoolean(stream, &iso2DisplayParametersType->InletHot);
+ iso2DisplayParametersType->InletHot_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({urn:iso:15118:2:2016:MsgDataTypes}InletHot) ? */
+ errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
+ if(eventCode == 0) {
+ grammarID = 3;
+ } else {
+ errn = EXI_DEVIANT_SUPPORT_NOT_DEPLOYED; /* or also typecast and nillable */
+ }
+ }
+ break;
+ case 3:
+ done = 1;
+ grammarID = 4;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 1910:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}BulkChargingComplete), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}InletHot), END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ /* FirstStartTag[CHARACTERS[BOOLEAN]] */
+ errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
+ if(errn == 0) {
+ if(eventCode == 0) {
+ errn = decodeBoolean(stream, &iso2DisplayParametersType->BulkChargingComplete);
+ iso2DisplayParametersType->BulkChargingComplete_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({urn:iso:15118:2:2016:MsgDataTypes}BulkChargingComplete) ? */
+ errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
+ if(eventCode == 0) {
+ grammarID = 1911;
+ } else {
+ errn = EXI_DEVIANT_SUPPORT_NOT_DEPLOYED; /* or also typecast and nillable */
+ }
+ }
+ break;
+ case 1:
+ /* FirstStartTag[CHARACTERS[BOOLEAN]] */
+ errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
+ if(errn == 0) {
+ if(eventCode == 0) {
+ errn = decodeBoolean(stream, &iso2DisplayParametersType->InletHot);
+ iso2DisplayParametersType->InletHot_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({urn:iso:15118:2:2016:MsgDataTypes}InletHot) ? */
+ errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
+ if(eventCode == 0) {
+ grammarID = 3;
+ } else {
+ errn = EXI_DEVIANT_SUPPORT_NOT_DEPLOYED; /* or also typecast and nillable */
+ }
+ }
+ break;
+ case 2:
+ done = 1;
+ grammarID = 4;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 1911:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}InletHot), END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ /* FirstStartTag[CHARACTERS[BOOLEAN]] */
+ errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
+ if(errn == 0) {
+ if(eventCode == 0) {
+ errn = decodeBoolean(stream, &iso2DisplayParametersType->InletHot);
+ iso2DisplayParametersType->InletHot_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({urn:iso:15118:2:2016:MsgDataTypes}InletHot) ? */
+ errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
+ if(eventCode == 0) {
+ grammarID = 3;
+ } else {
+ errn = EXI_DEVIANT_SUPPORT_NOT_DEPLOYED; /* or also typecast and nillable */
+ }
+ }
+ break;
+ case 1:
+ done = 1;
+ grammarID = 4;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 3:
+ /* Element[END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ done = 1;
+ grammarID = 4;
+ 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:2016:MsgDataTypes,DC_EVBidirectionalParameterType', base type name='DC_EVChargeParameterType', content type='ELEMENT', isAbstract='false', hasTypeId='false', final='0', block='0', particle='((("urn:iso:15118:2:2016:MsgDataTypes":DepartureTime),("urn:iso:15118:2:2016:MsgDataTypes":EVMaximumChargePower{0-1},"urn:iso:15118:2:2016:MsgDataTypes":EVMinimumChargePower{0-1},"urn:iso:15118:2:2016:MsgDataTypes":EVMaximumChargeCurrent,"urn:iso:15118:2:2016:MsgDataTypes":EVMinimumChargeCurrent,"urn:iso:15118:2:2016:MsgDataTypes":EVMaximumVoltage,"urn:iso:15118:2:2016:MsgDataTypes":EVTargetEnergyRequest{0-1},"urn:iso:15118:2:2016:MsgDataTypes":EVMaximumEnergyRequest{0-1},"urn:iso:15118:2:2016:MsgDataTypes":EVMinimumEnergyRequest{0-1},"urn:iso:15118:2:2016:MsgDataTypes":CurrentSOC{0-1},"urn:iso:15118:2:2016:MsgDataTypes":TargetSOC{0-1},"urn:iso:15118:2:2016:MsgDataTypes":BulkSOC{0-1})),("urn:iso:15118:2:2016:MsgDataTypes":EVMaximumDischargePower{0-1},"urn:iso:15118:2:2016:MsgDataTypes":EVMinimumDischargePower{0-1},"urn:iso:15118:2:2016:MsgDataTypes":EVMaximumDischargeCurrent,"urn:iso:15118:2:2016:MsgDataTypes":EVMinimumDischargeCurrent,"urn:iso:15118:2:2016:MsgDataTypes":EVMinimumVoltage,"urn:iso:15118:2:2016:MsgDataTypes":MinimumSOC{0-1}))', derivedBy='EXTENSION'. */
+static int decode_iso2DC_EVBidirectionalParameterType(bitstream_t* stream, struct iso2DC_EVBidirectionalParameterType* iso2DC_EVBidirectionalParameterType) {
+ int grammarID = 1912;
+ int done = 0;
+
+ init_iso2DC_EVBidirectionalParameterType(iso2DC_EVBidirectionalParameterType);
+
+ while(!done) {
+ switch(grammarID) {
+ case 1912:
+ /* FirstStartTag[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}DepartureTime)] */
+ errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ /* First(xsi:type)StartTag[CHARACTERS[UNSIGNED_INTEGER]] */
+ errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
+ if(errn == 0) {
+ if(eventCode == 0) {
+ errn = decodeUnsignedInteger32(stream, &iso2DC_EVBidirectionalParameterType->DepartureTime);
+ } 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({urn:iso:15118:2:2016:MsgDataTypes}DepartureTime) ? */
+ errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
+ if(eventCode == 0) {
+ grammarID = 1913;
+ } else {
+ errn = EXI_DEVIANT_SUPPORT_NOT_DEPLOYED; /* or also typecast and nillable */
+ }
+ }
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 1913:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}EVMaximumChargePower), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}EVMinimumChargePower), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}EVMaximumChargeCurrent)] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ errn = decode_iso2PhysicalValueType(stream, &iso2DC_EVBidirectionalParameterType->EVMaximumChargePower);
+ iso2DC_EVBidirectionalParameterType->EVMaximumChargePower_isUsed = 1u;
+ grammarID = 1914;
+ break;
+ case 1:
+ errn = decode_iso2PhysicalValueType(stream, &iso2DC_EVBidirectionalParameterType->EVMinimumChargePower);
+ iso2DC_EVBidirectionalParameterType->EVMinimumChargePower_isUsed = 1u;
+ grammarID = 1915;
+ break;
+ case 2:
+ errn = decode_iso2PhysicalValueType(stream, &iso2DC_EVBidirectionalParameterType->EVMaximumChargeCurrent);
+ grammarID = 1916;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 1914:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}EVMinimumChargePower), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}EVMaximumChargeCurrent)] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ errn = decode_iso2PhysicalValueType(stream, &iso2DC_EVBidirectionalParameterType->EVMinimumChargePower);
+ iso2DC_EVBidirectionalParameterType->EVMinimumChargePower_isUsed = 1u;
+ grammarID = 1915;
+ break;
+ case 1:
+ errn = decode_iso2PhysicalValueType(stream, &iso2DC_EVBidirectionalParameterType->EVMaximumChargeCurrent);
+ grammarID = 1916;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 1915:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}EVMaximumChargeCurrent)] */
+ errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ errn = decode_iso2PhysicalValueType(stream, &iso2DC_EVBidirectionalParameterType->EVMaximumChargeCurrent);
+ grammarID = 1916;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 1916:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}EVMinimumChargeCurrent)] */
+ errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ errn = decode_iso2PhysicalValueType(stream, &iso2DC_EVBidirectionalParameterType->EVMinimumChargeCurrent);
+ grammarID = 1917;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 1917:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}EVMaximumVoltage)] */
+ errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ errn = decode_iso2PhysicalValueType(stream, &iso2DC_EVBidirectionalParameterType->EVMaximumVoltage);
+ grammarID = 1918;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 1918:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}EVTargetEnergyRequest), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}EVMaximumEnergyRequest), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}EVMinimumEnergyRequest), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}CurrentSOC), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}TargetSOC), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}BulkSOC), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}EVMaximumDischargePower), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}EVMinimumDischargePower), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}EVMaximumDischargeCurrent)] */
+ errn = decodeNBitUnsignedInteger(stream, 4, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ errn = decode_iso2PhysicalValueType(stream, &iso2DC_EVBidirectionalParameterType->EVTargetEnergyRequest);
+ iso2DC_EVBidirectionalParameterType->EVTargetEnergyRequest_isUsed = 1u;
+ grammarID = 1919;
+ break;
+ case 1:
+ errn = decode_iso2PhysicalValueType(stream, &iso2DC_EVBidirectionalParameterType->EVMaximumEnergyRequest);
+ iso2DC_EVBidirectionalParameterType->EVMaximumEnergyRequest_isUsed = 1u;
+ grammarID = 1920;
+ break;
+ case 2:
+ errn = decode_iso2PhysicalValueType(stream, &iso2DC_EVBidirectionalParameterType->EVMinimumEnergyRequest);
+ iso2DC_EVBidirectionalParameterType->EVMinimumEnergyRequest_isUsed = 1u;
+ grammarID = 1921;
+ break;
+ case 3:
+ /* FirstStartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
+ errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
+ if(errn == 0) {
+ if(eventCode == 0) {
+ errn = decodeNBitUnsignedInteger(stream, 7, &(uint32));
+ iso2DC_EVBidirectionalParameterType->CurrentSOC = (int8_t)(uint32 + 0);
+ iso2DC_EVBidirectionalParameterType->CurrentSOC_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({urn:iso:15118:2:2016:MsgDataTypes}CurrentSOC) ? */
+ errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
+ if(eventCode == 0) {
+ grammarID = 1922;
+ } else {
+ errn = EXI_DEVIANT_SUPPORT_NOT_DEPLOYED; /* or also typecast and nillable */
+ }
+ }
+ break;
+ case 4:
+ /* FirstStartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
+ errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
+ if(errn == 0) {
+ if(eventCode == 0) {
+ errn = decodeNBitUnsignedInteger(stream, 7, &(uint32));
+ iso2DC_EVBidirectionalParameterType->TargetSOC = (int8_t)(uint32 + 0);
+ iso2DC_EVBidirectionalParameterType->TargetSOC_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({urn:iso:15118:2:2016:MsgDataTypes}TargetSOC) ? */
+ errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
+ if(eventCode == 0) {
+ grammarID = 1923;
+ } else {
+ errn = EXI_DEVIANT_SUPPORT_NOT_DEPLOYED; /* or also typecast and nillable */
+ }
+ }
+ break;
+ case 5:
+ /* FirstStartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
+ errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
+ if(errn == 0) {
+ if(eventCode == 0) {
+ errn = decodeNBitUnsignedInteger(stream, 7, &(uint32));
+ iso2DC_EVBidirectionalParameterType->BulkSOC = (int8_t)(uint32 + 0);
+ iso2DC_EVBidirectionalParameterType->BulkSOC_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({urn:iso:15118:2:2016:MsgDataTypes}BulkSOC) ? */
+ errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
+ if(eventCode == 0) {
+ grammarID = 1924;
+ } else {
+ errn = EXI_DEVIANT_SUPPORT_NOT_DEPLOYED; /* or also typecast and nillable */
+ }
+ }
+ break;
+ case 6:
+ errn = decode_iso2PhysicalValueType(stream, &iso2DC_EVBidirectionalParameterType->EVMaximumDischargePower);
+ iso2DC_EVBidirectionalParameterType->EVMaximumDischargePower_isUsed = 1u;
+ grammarID = 1925;
+ break;
+ case 7:
+ errn = decode_iso2PhysicalValueType(stream, &iso2DC_EVBidirectionalParameterType->EVMinimumDischargePower);
+ iso2DC_EVBidirectionalParameterType->EVMinimumDischargePower_isUsed = 1u;
+ grammarID = 1926;
+ break;
+ case 8:
+ errn = decode_iso2PhysicalValueType(stream, &iso2DC_EVBidirectionalParameterType->EVMaximumDischargeCurrent);
+ grammarID = 1927;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 1919:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}EVMaximumEnergyRequest), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}EVMinimumEnergyRequest), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}CurrentSOC), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}TargetSOC), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}BulkSOC), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}EVMaximumDischargePower), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}EVMinimumDischargePower), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}EVMaximumDischargeCurrent)] */
+ errn = decodeNBitUnsignedInteger(stream, 4, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ errn = decode_iso2PhysicalValueType(stream, &iso2DC_EVBidirectionalParameterType->EVMaximumEnergyRequest);
+ iso2DC_EVBidirectionalParameterType->EVMaximumEnergyRequest_isUsed = 1u;
+ grammarID = 1920;
+ break;
+ case 1:
+ errn = decode_iso2PhysicalValueType(stream, &iso2DC_EVBidirectionalParameterType->EVMinimumEnergyRequest);
+ iso2DC_EVBidirectionalParameterType->EVMinimumEnergyRequest_isUsed = 1u;
+ grammarID = 1921;
+ break;
+ case 2:
+ /* FirstStartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
+ errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
+ if(errn == 0) {
+ if(eventCode == 0) {
+ errn = decodeNBitUnsignedInteger(stream, 7, &(uint32));
+ iso2DC_EVBidirectionalParameterType->CurrentSOC = (int8_t)(uint32 + 0);
+ iso2DC_EVBidirectionalParameterType->CurrentSOC_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({urn:iso:15118:2:2016:MsgDataTypes}CurrentSOC) ? */
+ errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
+ if(eventCode == 0) {
+ grammarID = 1922;
+ } else {
+ errn = EXI_DEVIANT_SUPPORT_NOT_DEPLOYED; /* or also typecast and nillable */
+ }
+ }
+ break;
+ case 3:
+ /* FirstStartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
+ errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
+ if(errn == 0) {
+ if(eventCode == 0) {
+ errn = decodeNBitUnsignedInteger(stream, 7, &(uint32));
+ iso2DC_EVBidirectionalParameterType->TargetSOC = (int8_t)(uint32 + 0);
+ iso2DC_EVBidirectionalParameterType->TargetSOC_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({urn:iso:15118:2:2016:MsgDataTypes}TargetSOC) ? */
+ errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
+ if(eventCode == 0) {
+ grammarID = 1923;
+ } else {
+ errn = EXI_DEVIANT_SUPPORT_NOT_DEPLOYED; /* or also typecast and nillable */
+ }
+ }
+ break;
+ case 4:
+ /* FirstStartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
+ errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
+ if(errn == 0) {
+ if(eventCode == 0) {
+ errn = decodeNBitUnsignedInteger(stream, 7, &(uint32));
+ iso2DC_EVBidirectionalParameterType->BulkSOC = (int8_t)(uint32 + 0);
+ iso2DC_EVBidirectionalParameterType->BulkSOC_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({urn:iso:15118:2:2016:MsgDataTypes}BulkSOC) ? */
+ errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
+ if(eventCode == 0) {
+ grammarID = 1924;
+ } else {
+ errn = EXI_DEVIANT_SUPPORT_NOT_DEPLOYED; /* or also typecast and nillable */
+ }
+ }
+ break;
+ case 5:
+ errn = decode_iso2PhysicalValueType(stream, &iso2DC_EVBidirectionalParameterType->EVMaximumDischargePower);
+ iso2DC_EVBidirectionalParameterType->EVMaximumDischargePower_isUsed = 1u;
+ grammarID = 1925;
+ break;
+ case 6:
+ errn = decode_iso2PhysicalValueType(stream, &iso2DC_EVBidirectionalParameterType->EVMinimumDischargePower);
+ iso2DC_EVBidirectionalParameterType->EVMinimumDischargePower_isUsed = 1u;
+ grammarID = 1926;
+ break;
+ case 7:
+ errn = decode_iso2PhysicalValueType(stream, &iso2DC_EVBidirectionalParameterType->EVMaximumDischargeCurrent);
+ grammarID = 1927;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 1920:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}EVMinimumEnergyRequest), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}CurrentSOC), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}TargetSOC), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}BulkSOC), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}EVMaximumDischargePower), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}EVMinimumDischargePower), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}EVMaximumDischargeCurrent)] */
+ errn = decodeNBitUnsignedInteger(stream, 3, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ errn = decode_iso2PhysicalValueType(stream, &iso2DC_EVBidirectionalParameterType->EVMinimumEnergyRequest);
+ iso2DC_EVBidirectionalParameterType->EVMinimumEnergyRequest_isUsed = 1u;
+ grammarID = 1921;
+ break;
+ case 1:
+ /* FirstStartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
+ errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
+ if(errn == 0) {
+ if(eventCode == 0) {
+ errn = decodeNBitUnsignedInteger(stream, 7, &(uint32));
+ iso2DC_EVBidirectionalParameterType->CurrentSOC = (int8_t)(uint32 + 0);
+ iso2DC_EVBidirectionalParameterType->CurrentSOC_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({urn:iso:15118:2:2016:MsgDataTypes}CurrentSOC) ? */
+ errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
+ if(eventCode == 0) {
+ grammarID = 1922;
+ } else {
+ errn = EXI_DEVIANT_SUPPORT_NOT_DEPLOYED; /* or also typecast and nillable */
+ }
+ }
+ break;
+ case 2:
+ /* FirstStartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
+ errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
+ if(errn == 0) {
+ if(eventCode == 0) {
+ errn = decodeNBitUnsignedInteger(stream, 7, &(uint32));
+ iso2DC_EVBidirectionalParameterType->TargetSOC = (int8_t)(uint32 + 0);
+ iso2DC_EVBidirectionalParameterType->TargetSOC_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({urn:iso:15118:2:2016:MsgDataTypes}TargetSOC) ? */
+ errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
+ if(eventCode == 0) {
+ grammarID = 1923;
+ } else {
+ errn = EXI_DEVIANT_SUPPORT_NOT_DEPLOYED; /* or also typecast and nillable */
+ }
+ }
+ break;
+ case 3:
+ /* FirstStartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
+ errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
+ if(errn == 0) {
+ if(eventCode == 0) {
+ errn = decodeNBitUnsignedInteger(stream, 7, &(uint32));
+ iso2DC_EVBidirectionalParameterType->BulkSOC = (int8_t)(uint32 + 0);
+ iso2DC_EVBidirectionalParameterType->BulkSOC_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({urn:iso:15118:2:2016:MsgDataTypes}BulkSOC) ? */
+ errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
+ if(eventCode == 0) {
+ grammarID = 1924;
+ } else {
+ errn = EXI_DEVIANT_SUPPORT_NOT_DEPLOYED; /* or also typecast and nillable */
+ }
+ }
+ break;
+ case 4:
+ errn = decode_iso2PhysicalValueType(stream, &iso2DC_EVBidirectionalParameterType->EVMaximumDischargePower);
+ iso2DC_EVBidirectionalParameterType->EVMaximumDischargePower_isUsed = 1u;
+ grammarID = 1925;
+ break;
+ case 5:
+ errn = decode_iso2PhysicalValueType(stream, &iso2DC_EVBidirectionalParameterType->EVMinimumDischargePower);
+ iso2DC_EVBidirectionalParameterType->EVMinimumDischargePower_isUsed = 1u;
+ grammarID = 1926;
+ break;
+ case 6:
+ errn = decode_iso2PhysicalValueType(stream, &iso2DC_EVBidirectionalParameterType->EVMaximumDischargeCurrent);
+ grammarID = 1927;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 1921:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}CurrentSOC), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}TargetSOC), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}BulkSOC), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}EVMaximumDischargePower), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}EVMinimumDischargePower), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}EVMaximumDischargeCurrent)] */
+ errn = decodeNBitUnsignedInteger(stream, 3, &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, 7, &(uint32));
+ iso2DC_EVBidirectionalParameterType->CurrentSOC = (int8_t)(uint32 + 0);
+ iso2DC_EVBidirectionalParameterType->CurrentSOC_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({urn:iso:15118:2:2016:MsgDataTypes}CurrentSOC) ? */
+ errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
+ if(eventCode == 0) {
+ grammarID = 1922;
+ } else {
+ errn = EXI_DEVIANT_SUPPORT_NOT_DEPLOYED; /* or also typecast and nillable */
+ }
+ }
+ break;
+ case 1:
+ /* FirstStartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
+ errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
+ if(errn == 0) {
+ if(eventCode == 0) {
+ errn = decodeNBitUnsignedInteger(stream, 7, &(uint32));
+ iso2DC_EVBidirectionalParameterType->TargetSOC = (int8_t)(uint32 + 0);
+ iso2DC_EVBidirectionalParameterType->TargetSOC_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({urn:iso:15118:2:2016:MsgDataTypes}TargetSOC) ? */
+ errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
+ if(eventCode == 0) {
+ grammarID = 1923;
+ } else {
+ errn = EXI_DEVIANT_SUPPORT_NOT_DEPLOYED; /* or also typecast and nillable */
+ }
+ }
+ break;
+ case 2:
+ /* FirstStartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
+ errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
+ if(errn == 0) {
+ if(eventCode == 0) {
+ errn = decodeNBitUnsignedInteger(stream, 7, &(uint32));
+ iso2DC_EVBidirectionalParameterType->BulkSOC = (int8_t)(uint32 + 0);
+ iso2DC_EVBidirectionalParameterType->BulkSOC_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({urn:iso:15118:2:2016:MsgDataTypes}BulkSOC) ? */
+ errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
+ if(eventCode == 0) {
+ grammarID = 1924;
+ } else {
+ errn = EXI_DEVIANT_SUPPORT_NOT_DEPLOYED; /* or also typecast and nillable */
+ }
+ }
+ break;
+ case 3:
+ errn = decode_iso2PhysicalValueType(stream, &iso2DC_EVBidirectionalParameterType->EVMaximumDischargePower);
+ iso2DC_EVBidirectionalParameterType->EVMaximumDischargePower_isUsed = 1u;
+ grammarID = 1925;
+ break;
+ case 4:
+ errn = decode_iso2PhysicalValueType(stream, &iso2DC_EVBidirectionalParameterType->EVMinimumDischargePower);
+ iso2DC_EVBidirectionalParameterType->EVMinimumDischargePower_isUsed = 1u;
+ grammarID = 1926;
+ break;
+ case 5:
+ errn = decode_iso2PhysicalValueType(stream, &iso2DC_EVBidirectionalParameterType->EVMaximumDischargeCurrent);
+ grammarID = 1927;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 1922:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}TargetSOC), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}BulkSOC), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}EVMaximumDischargePower), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}EVMinimumDischargePower), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}EVMaximumDischargeCurrent)] */
+ errn = decodeNBitUnsignedInteger(stream, 3, &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, 7, &(uint32));
+ iso2DC_EVBidirectionalParameterType->TargetSOC = (int8_t)(uint32 + 0);
+ iso2DC_EVBidirectionalParameterType->TargetSOC_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({urn:iso:15118:2:2016:MsgDataTypes}TargetSOC) ? */
+ errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
+ if(eventCode == 0) {
+ grammarID = 1923;
+ } else {
+ errn = EXI_DEVIANT_SUPPORT_NOT_DEPLOYED; /* or also typecast and nillable */
+ }
+ }
+ break;
+ case 1:
+ /* FirstStartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
+ errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
+ if(errn == 0) {
+ if(eventCode == 0) {
+ errn = decodeNBitUnsignedInteger(stream, 7, &(uint32));
+ iso2DC_EVBidirectionalParameterType->BulkSOC = (int8_t)(uint32 + 0);
+ iso2DC_EVBidirectionalParameterType->BulkSOC_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({urn:iso:15118:2:2016:MsgDataTypes}BulkSOC) ? */
+ errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
+ if(eventCode == 0) {
+ grammarID = 1924;
+ } else {
+ errn = EXI_DEVIANT_SUPPORT_NOT_DEPLOYED; /* or also typecast and nillable */
+ }
+ }
+ break;
+ case 2:
+ errn = decode_iso2PhysicalValueType(stream, &iso2DC_EVBidirectionalParameterType->EVMaximumDischargePower);
+ iso2DC_EVBidirectionalParameterType->EVMaximumDischargePower_isUsed = 1u;
+ grammarID = 1925;
+ break;
+ case 3:
+ errn = decode_iso2PhysicalValueType(stream, &iso2DC_EVBidirectionalParameterType->EVMinimumDischargePower);
+ iso2DC_EVBidirectionalParameterType->EVMinimumDischargePower_isUsed = 1u;
+ grammarID = 1926;
+ break;
+ case 4:
+ errn = decode_iso2PhysicalValueType(stream, &iso2DC_EVBidirectionalParameterType->EVMaximumDischargeCurrent);
+ grammarID = 1927;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 1923:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}BulkSOC), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}EVMaximumDischargePower), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}EVMinimumDischargePower), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}EVMaximumDischargeCurrent)] */
+ errn = decodeNBitUnsignedInteger(stream, 3, &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, 7, &(uint32));
+ iso2DC_EVBidirectionalParameterType->BulkSOC = (int8_t)(uint32 + 0);
+ iso2DC_EVBidirectionalParameterType->BulkSOC_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({urn:iso:15118:2:2016:MsgDataTypes}BulkSOC) ? */
+ errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
+ if(eventCode == 0) {
+ grammarID = 1924;
+ } else {
+ errn = EXI_DEVIANT_SUPPORT_NOT_DEPLOYED; /* or also typecast and nillable */
+ }
+ }
+ break;
+ case 1:
+ errn = decode_iso2PhysicalValueType(stream, &iso2DC_EVBidirectionalParameterType->EVMaximumDischargePower);
+ iso2DC_EVBidirectionalParameterType->EVMaximumDischargePower_isUsed = 1u;
+ grammarID = 1925;
+ break;
+ case 2:
+ errn = decode_iso2PhysicalValueType(stream, &iso2DC_EVBidirectionalParameterType->EVMinimumDischargePower);
+ iso2DC_EVBidirectionalParameterType->EVMinimumDischargePower_isUsed = 1u;
+ grammarID = 1926;
+ break;
+ case 3:
+ errn = decode_iso2PhysicalValueType(stream, &iso2DC_EVBidirectionalParameterType->EVMaximumDischargeCurrent);
+ grammarID = 1927;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 1924:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}EVMaximumDischargePower), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}EVMinimumDischargePower), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}EVMaximumDischargeCurrent)] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ errn = decode_iso2PhysicalValueType(stream, &iso2DC_EVBidirectionalParameterType->EVMaximumDischargePower);
+ iso2DC_EVBidirectionalParameterType->EVMaximumDischargePower_isUsed = 1u;
+ grammarID = 1925;
+ break;
+ case 1:
+ errn = decode_iso2PhysicalValueType(stream, &iso2DC_EVBidirectionalParameterType->EVMinimumDischargePower);
+ iso2DC_EVBidirectionalParameterType->EVMinimumDischargePower_isUsed = 1u;
+ grammarID = 1926;
+ break;
+ case 2:
+ errn = decode_iso2PhysicalValueType(stream, &iso2DC_EVBidirectionalParameterType->EVMaximumDischargeCurrent);
+ grammarID = 1927;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 1925:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}EVMinimumDischargePower), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}EVMaximumDischargeCurrent)] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ errn = decode_iso2PhysicalValueType(stream, &iso2DC_EVBidirectionalParameterType->EVMinimumDischargePower);
+ iso2DC_EVBidirectionalParameterType->EVMinimumDischargePower_isUsed = 1u;
+ grammarID = 1926;
+ break;
+ case 1:
+ errn = decode_iso2PhysicalValueType(stream, &iso2DC_EVBidirectionalParameterType->EVMaximumDischargeCurrent);
+ grammarID = 1927;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 1926:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}EVMaximumDischargeCurrent)] */
+ errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ errn = decode_iso2PhysicalValueType(stream, &iso2DC_EVBidirectionalParameterType->EVMaximumDischargeCurrent);
+ grammarID = 1927;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 1927:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}EVMinimumDischargeCurrent)] */
+ errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ errn = decode_iso2PhysicalValueType(stream, &iso2DC_EVBidirectionalParameterType->EVMinimumDischargeCurrent);
+ grammarID = 1928;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 1928:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}EVMinimumVoltage)] */
+ errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ errn = decode_iso2PhysicalValueType(stream, &iso2DC_EVBidirectionalParameterType->EVMinimumVoltage);
+ grammarID = 1929;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 1929:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MinimumSOC), 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, 7, &(uint32));
+ iso2DC_EVBidirectionalParameterType->MinimumSOC = (int8_t)(uint32 + 0);
+ iso2DC_EVBidirectionalParameterType->MinimumSOC_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({urn:iso:15118:2:2016:MsgDataTypes}MinimumSOC) ? */
+ errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
+ if(eventCode == 0) {
+ grammarID = 3;
+ } else {
+ errn = EXI_DEVIANT_SUPPORT_NOT_DEPLOYED; /* or also typecast and nillable */
+ }
+ }
+ break;
+ case 1:
+ done = 1;
+ grammarID = 4;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 3:
+ /* Element[END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ done = 1;
+ grammarID = 4;
+ 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:2016:MsgBody,PaymentServiceSelectionReqType', base type name='BodyBaseType', content type='ELEMENT', isAbstract='false', hasTypeId='false', final='0', block='0', particle='("urn:iso:15118:2:2016:MsgBody":SelectedPaymentOption,"urn:iso:15118:2:2016:MsgBody":SelectedEnergyTransferService,"urn:iso:15118:2:2016:MsgBody":SelectedVASList{0-1})', derivedBy='EXTENSION'. */
+static int decode_iso2PaymentServiceSelectionReqType(bitstream_t* stream, struct iso2PaymentServiceSelectionReqType* iso2PaymentServiceSelectionReqType) {
+ int grammarID = 1930;
+ int done = 0;
+
+ init_iso2PaymentServiceSelectionReqType(iso2PaymentServiceSelectionReqType);
+
+ while(!done) {
+ switch(grammarID) {
+ case 1930:
+ /* FirstStartTag[START_ELEMENT({urn:iso:15118:2:2016:MsgBody}SelectedPaymentOption)] */
+ 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, 1, &uint32);
+ iso2PaymentServiceSelectionReqType->SelectedPaymentOption = (iso2paymentOptionType) 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({urn:iso:15118:2:2016:MsgBody}SelectedPaymentOption) ? */
+ errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
+ if(eventCode == 0) {
+ grammarID = 1931;
+ } else {
+ errn = EXI_DEVIANT_SUPPORT_NOT_DEPLOYED; /* or also typecast and nillable */
+ }
+ }
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 1931:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgBody}SelectedEnergyTransferService)] */
+ errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ errn = decode_iso2SelectedServiceType(stream, &iso2PaymentServiceSelectionReqType->SelectedEnergyTransferService);
+ grammarID = 1932;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 1932:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgBody}SelectedVASList), END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ errn = decode_iso2SelectedServiceListType(stream, &iso2PaymentServiceSelectionReqType->SelectedVASList);
+ iso2PaymentServiceSelectionReqType->SelectedVASList_isUsed = 1u;
+ grammarID = 3;
+ break;
+ case 1:
+ done = 1;
+ grammarID = 4;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 3:
+ /* Element[END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ done = 1;
+ grammarID = 4;
+ 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:2016:MsgDataTypes,MagneticVectorType', base type name='anyType', content type='ELEMENT', isAbstract='false', hasTypeId='false', final='0', block='0', particle='("urn:iso:15118:2:2016:MsgDataTypes":GAID,"urn:iso:15118:2:2016:MsgDataTypes":Distance,"urn:iso:15118:2:2016:MsgDataTypes":AngleGAtoVA,"urn:iso:15118:2:2016:MsgDataTypes":RotationVAtoGA,"urn:iso:15118:2:2016:MsgDataTypes":FODStatus)', derivedBy='RESTRICTION'. */
+static int decode_iso2MagneticVectorType(bitstream_t* stream, struct iso2MagneticVectorType* iso2MagneticVectorType) {
+ int grammarID = 1933;
+ int done = 0;
+
+ init_iso2MagneticVectorType(iso2MagneticVectorType);
+
+ while(!done) {
+ switch(grammarID) {
+ case 1933:
+ /* FirstStartTag[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}GAID)] */
+ errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ /* FirstStartTag[CHARACTERS[STRING]] */
+ errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
+ if(errn == 0) {
+ if(eventCode == 0) {
+ errn = decodeUnsignedInteger16(stream, &iso2MagneticVectorType->GAID.charactersLen);
+ if (errn == 0) {
+ if (iso2MagneticVectorType->GAID.charactersLen >= 2) {
+ iso2MagneticVectorType->GAID.charactersLen = (uint16_t)(iso2MagneticVectorType->GAID.charactersLen - 2); /* string table miss */
+ errn = decodeCharacters(stream, iso2MagneticVectorType->GAID.charactersLen, iso2MagneticVectorType->GAID.characters, iso2MagneticVectorType_GAID_CHARACTERS_SIZE);
+ } else {
+ /* string table hit */
+ errn = EXI_ERROR_STRINGVALUES_NOT_SUPPORTED;
+ }
+ }
+ } 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({urn:iso:15118:2:2016:MsgDataTypes}GAID) ? */
+ errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
+ if(eventCode == 0) {
+ grammarID = 1934;
+ } else {
+ errn = EXI_DEVIANT_SUPPORT_NOT_DEPLOYED; /* or also typecast and nillable */
+ }
+ }
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 1934:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}Distance)] */
+ errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ /* First(xsi:type)StartTag[CHARACTERS[UNSIGNED_INTEGER]] */
+ errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
+ if(errn == 0) {
+ if(eventCode == 0) {
+ errn = decodeUnsignedInteger16(stream, &iso2MagneticVectorType->Distance);
+ } 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({urn:iso:15118:2:2016:MsgDataTypes}Distance) ? */
+ errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
+ if(eventCode == 0) {
+ grammarID = 1935;
+ } else {
+ errn = EXI_DEVIANT_SUPPORT_NOT_DEPLOYED; /* or also typecast and nillable */
+ }
+ }
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 1935:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}AngleGAtoVA)] */
+ errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ errn = decode_iso2PhysicalValueType(stream, &iso2MagneticVectorType->AngleGAtoVA);
+ grammarID = 1936;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 1936:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}RotationVAtoGA)] */
+ errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ errn = decode_iso2PhysicalValueType(stream, &iso2MagneticVectorType->RotationVAtoGA);
+ grammarID = 1937;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 1937:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}FODStatus)] */
+ 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);
+ iso2MagneticVectorType->FODStatus = (iso2FODStatusType) 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({urn:iso:15118:2:2016:MsgDataTypes}FODStatus) ? */
+ errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
+ if(eventCode == 0) {
+ grammarID = 3;
+ } else {
+ errn = EXI_DEVIANT_SUPPORT_NOT_DEPLOYED; /* or also typecast and nillable */
+ }
+ }
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 3:
+ /* Element[END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ done = 1;
+ grammarID = 4;
+ 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:2016:MsgDataTypes,PhysicalValueType', base type name='anyType', content type='ELEMENT', isAbstract='false', hasTypeId='false', final='0', block='0', particle='("urn:iso:15118:2:2016:MsgDataTypes":Exponent,"urn:iso:15118:2:2016:MsgDataTypes":Value)', derivedBy='RESTRICTION'. */
+static int decode_iso2PhysicalValueType(bitstream_t* stream, struct iso2PhysicalValueType* iso2PhysicalValueType) {
+ int grammarID = 1938;
+ int done = 0;
+
+ init_iso2PhysicalValueType(iso2PhysicalValueType);
+
+ while(!done) {
+ switch(grammarID) {
+ case 1938:
+ /* FirstStartTag[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}Exponent)] */
+ errn = decodeNBitUnsignedInteger(stream, 1, &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, 3, &(uint32));
+ iso2PhysicalValueType->Exponent = (int8_t)(uint32 -3);
+ } 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({urn:iso:15118:2:2016:MsgDataTypes}Exponent) ? */
+ errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
+ if(eventCode == 0) {
+ grammarID = 1939;
+ } else {
+ errn = EXI_DEVIANT_SUPPORT_NOT_DEPLOYED; /* or also typecast and nillable */
+ }
+ }
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 1939:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}Value)] */
+ errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ /* First(xsi:type)StartTag[CHARACTERS[INTEGER]] */
+ errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
+ if(errn == 0) {
+ if(eventCode == 0) {
+ errn = decodeInteger16(stream, &iso2PhysicalValueType->Value);
+ } 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({urn:iso:15118:2:2016:MsgDataTypes}Value) ? */
+ errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
+ if(eventCode == 0) {
+ grammarID = 3;
+ } else {
+ errn = EXI_DEVIANT_SUPPORT_NOT_DEPLOYED; /* or also typecast and nillable */
+ }
+ }
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 3:
+ /* Element[END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ done = 1;
+ grammarID = 4;
+ 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:2016:MsgBody,SystemStatusReqType', base type name='BodyBaseType', content type='ELEMENT', isAbstract='false', hasTypeId='false', final='0', block='0', particle='("urn:iso:15118:2:2016:MsgBody":OperationMode,"urn:iso:15118:2:2016:MsgBody":EVMechanicalChargingDeviceStatus)', derivedBy='EXTENSION'. */
+static int decode_iso2SystemStatusReqType(bitstream_t* stream, struct iso2SystemStatusReqType* iso2SystemStatusReqType) {
+ int grammarID = 1940;
+ int done = 0;
+
+ init_iso2SystemStatusReqType(iso2SystemStatusReqType);
+
+ while(!done) {
+ switch(grammarID) {
+ case 1940:
+ /* FirstStartTag[START_ELEMENT({urn:iso:15118:2:2016:MsgBody}OperationMode)] */
+ 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, 1, &uint32);
+ iso2SystemStatusReqType->OperationMode = (iso2operationModeType) 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({urn:iso:15118:2:2016:MsgBody}OperationMode) ? */
+ errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
+ if(eventCode == 0) {
+ grammarID = 1497;
+ } else {
+ errn = EXI_DEVIANT_SUPPORT_NOT_DEPLOYED; /* or also typecast and nillable */
+ }
+ }
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 1497:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgBody}EVMechanicalChargingDeviceStatus)] */
+ 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);
+ iso2SystemStatusReqType->EVMechanicalChargingDeviceStatus = (iso2mechanicalChargingDeviceStatusType) 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({urn:iso:15118:2:2016:MsgBody}EVMechanicalChargingDeviceStatus) ? */
+ errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
+ if(eventCode == 0) {
+ grammarID = 3;
+ } else {
+ errn = EXI_DEVIANT_SUPPORT_NOT_DEPLOYED; /* or also typecast and nillable */
+ }
+ }
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 3:
+ /* Element[END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ done = 1;
+ grammarID = 4;
+ 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:2016:MsgBody,SystemStatusResType', base type name='V2GResponseType', content type='ELEMENT', isAbstract='false', hasTypeId='false', final='0', block='0', particle='(("urn:iso:15118:2:2016:MsgBody":ResponseCode,"urn:iso:15118:2:2016:MsgBody":EVSEStatus{0-1}),("urn:iso:15118:2:2016:MsgBody":OperationMode,"urn:iso:15118:2:2016:MsgBody":EVSEMechanicalChargingDeviceStatus))', derivedBy='EXTENSION'. */
+static int decode_iso2SystemStatusResType(bitstream_t* stream, struct iso2SystemStatusResType* iso2SystemStatusResType) {
+ int grammarID = 1941;
+ int done = 0;
+
+ init_iso2SystemStatusResType(iso2SystemStatusResType);
+
+ while(!done) {
+ switch(grammarID) {
+ case 1941:
+ /* FirstStartTag[START_ELEMENT({urn:iso:15118:2:2016:MsgBody}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, 5, &uint32);
+ iso2SystemStatusResType->ResponseCode = (iso2responseCodeType) 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({urn:iso:15118:2:2016:MsgBody}ResponseCode) ? */
+ errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
+ if(eventCode == 0) {
+ grammarID = 1942;
+ } else {
+ errn = EXI_DEVIANT_SUPPORT_NOT_DEPLOYED; /* or also typecast and nillable */
+ }
+ }
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 1942:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgBody}EVSEStatus), START_ELEMENT({urn:iso:15118:2:2016:MsgBody}OperationMode)] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ errn = decode_iso2EVSEStatusType(stream, &iso2SystemStatusResType->EVSEStatus);
+ iso2SystemStatusResType->EVSEStatus_isUsed = 1u;
+ grammarID = 1943;
+ break;
+ case 1:
+ /* FirstStartTag[CHARACTERS[ENUMERATION]] */
+ errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
+ if(errn == 0) {
+ if(eventCode == 0) {
+ errn = decodeNBitUnsignedInteger(stream, 1, &uint32);
+ iso2SystemStatusResType->OperationMode = (iso2operationModeType) 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({urn:iso:15118:2:2016:MsgBody}OperationMode) ? */
+ errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
+ if(eventCode == 0) {
+ grammarID = 595;
+ } else {
+ errn = EXI_DEVIANT_SUPPORT_NOT_DEPLOYED; /* or also typecast and nillable */
+ }
+ }
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 1943:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgBody}OperationMode)] */
+ 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, 1, &uint32);
+ iso2SystemStatusResType->OperationMode = (iso2operationModeType) 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({urn:iso:15118:2:2016:MsgBody}OperationMode) ? */
+ errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
+ if(eventCode == 0) {
+ grammarID = 595;
+ } else {
+ errn = EXI_DEVIANT_SUPPORT_NOT_DEPLOYED; /* or also typecast and nillable */
+ }
+ }
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 595:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgBody}EVSEMechanicalChargingDeviceStatus)] */
+ 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);
+ iso2SystemStatusResType->EVSEMechanicalChargingDeviceStatus = (iso2mechanicalChargingDeviceStatusType) 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({urn:iso:15118:2:2016:MsgBody}EVSEMechanicalChargingDeviceStatus) ? */
+ errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
+ if(eventCode == 0) {
+ grammarID = 3;
+ } else {
+ errn = EXI_DEVIANT_SUPPORT_NOT_DEPLOYED; /* or also typecast and nillable */
+ }
+ }
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 3:
+ /* Element[END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ done = 1;
+ grammarID = 4;
+ 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:2016:MsgDataTypes,EVSEFinePositioningSetupParametersType', base type name='anyType', content type='EMPTY', isAbstract='true', hasTypeId='false', final='0', block='0', derivedBy='RESTRICTION'. */
+static int decode_iso2EVSEFinePositioningSetupParametersType(bitstream_t* stream, struct iso2EVSEFinePositioningSetupParametersType* iso2EVSEFinePositioningSetupParametersType) {
+ int grammarID = 674;
+ int done = 0;
+
+ init_iso2EVSEFinePositioningSetupParametersType(iso2EVSEFinePositioningSetupParametersType);
+
+ while(!done) {
+ switch(grammarID) {
+ case 674:
+ /* FirstStartTag[END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ done = 1;
+ grammarID = 4;
+ 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:2016:MsgBody,V2GResponseType', base type name='BodyBaseType', content type='ELEMENT', isAbstract='true', hasTypeId='false', final='0', block='0', particle='("urn:iso:15118:2:2016:MsgBody":ResponseCode,"urn:iso:15118:2:2016:MsgBody":EVSEStatus{0-1})', derivedBy='EXTENSION'. */
+static int decode_iso2V2GResponseType(bitstream_t* stream, struct iso2V2GResponseType* iso2V2GResponseType) {
+ int grammarID = 599;
+ int done = 0;
+
+ init_iso2V2GResponseType(iso2V2GResponseType);
+
+ while(!done) {
+ switch(grammarID) {
+ case 599:
+ /* FirstStartTag[START_ELEMENT({urn:iso:15118:2:2016:MsgBody}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, 5, &uint32);
+ iso2V2GResponseType->ResponseCode = (iso2responseCodeType) 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({urn:iso:15118:2:2016:MsgBody}ResponseCode) ? */
+ errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
+ if(eventCode == 0) {
+ grammarID = 600;
+ } else {
+ errn = EXI_DEVIANT_SUPPORT_NOT_DEPLOYED; /* or also typecast and nillable */
+ }
+ }
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 600:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgBody}EVSEStatus), END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ errn = decode_iso2EVSEStatusType(stream, &iso2V2GResponseType->EVSEStatus);
+ iso2V2GResponseType->EVSEStatus_isUsed = 1u;
+ grammarID = 3;
+ break;
+ case 1:
+ done = 1;
+ grammarID = 4;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 3:
+ /* Element[END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ done = 1;
+ grammarID = 4;
+ 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:2016:MsgBody,BodyType', base type name='anyType', content type='ELEMENT', isAbstract='false', hasTypeId='false', final='0', block='0', particle='("urn:iso:15118:2:2016:MsgBody":BodyElement)', derivedBy='RESTRICTION'. */
+static int decode_iso2BodyType(bitstream_t* stream, struct iso2BodyType* iso2BodyType) {
+ int grammarID = 1944;
+ int done = 0;
+
+ init_iso2BodyType(iso2BodyType);
+
+ while(!done) {
+ switch(grammarID) {
+ case 1944:
+ /* FirstStartTag[START_ELEMENT({urn:iso:15118:2:2016:MsgBody}AC_BidirectionalControlReq), START_ELEMENT({urn:iso:15118:2:2016:MsgBody}AC_BidirectionalControlRes), START_ELEMENT({urn:iso:15118:2:2016:MsgBody}AlignmentCheckReq), START_ELEMENT({urn:iso:15118:2:2016:MsgBody}AlignmentCheckRes), START_ELEMENT({urn:iso:15118:2:2016:MsgBody}AuthorizationReq), START_ELEMENT({urn:iso:15118:2:2016:MsgBody}AuthorizationRes), START_ELEMENT({urn:iso:15118:2:2016:MsgBody}BodyElement), START_ELEMENT({urn:iso:15118:2:2016:MsgBody}CableCheckReq), START_ELEMENT({urn:iso:15118:2:2016:MsgBody}CableCheckRes), START_ELEMENT({urn:iso:15118:2:2016:MsgBody}CertificateInstallationReq), START_ELEMENT({urn:iso:15118:2:2016:MsgBody}CertificateInstallationRes), START_ELEMENT({urn:iso:15118:2:2016:MsgBody}CertificateUpdateReq), START_ELEMENT({urn:iso:15118:2:2016:MsgBody}CertificateUpdateRes), START_ELEMENT({urn:iso:15118:2:2016:MsgBody}ChargeParameterDiscoveryReq), START_ELEMENT({urn:iso:15118:2:2016:MsgBody}ChargeParameterDiscoveryRes), START_ELEMENT({urn:iso:15118:2:2016:MsgBody}ChargingStatusReq), START_ELEMENT({urn:iso:15118:2:2016:MsgBody}ChargingStatusRes), START_ELEMENT({urn:iso:15118:2:2016:MsgBody}ConnectChargingDeviceReq), START_ELEMENT({urn:iso:15118:2:2016:MsgBody}ConnectChargingDeviceRes), START_ELEMENT({urn:iso:15118:2:2016:MsgBody}CurrentDemandReq), START_ELEMENT({urn:iso:15118:2:2016:MsgBody}CurrentDemandRes), START_ELEMENT({urn:iso:15118:2:2016:MsgBody}DC_BidirectionalControlReq), START_ELEMENT({urn:iso:15118:2:2016:MsgBody}DC_BidirectionalControlRes), START_ELEMENT({urn:iso:15118:2:2016:MsgBody}DisconnectChargingDeviceReq), START_ELEMENT({urn:iso:15118:2:2016:MsgBody}DisconnectChargingDeviceRes), START_ELEMENT({urn:iso:15118:2:2016:MsgBody}FinePositioningReq), START_ELEMENT({urn:iso:15118:2:2016:MsgBody}FinePositioningRes), START_ELEMENT({urn:iso:15118:2:2016:MsgBody}FinePositioningSetupReq), START_ELEMENT({urn:iso:15118:2:2016:MsgBody}FinePositioningSetupRes), START_ELEMENT({urn:iso:15118:2:2016:MsgBody}MeteringReceiptReq), START_ELEMENT({urn:iso:15118:2:2016:MsgBody}MeteringReceiptRes), START_ELEMENT({urn:iso:15118:2:2016:MsgBody}PairingReq), START_ELEMENT({urn:iso:15118:2:2016:MsgBody}PairingRes), START_ELEMENT({urn:iso:15118:2:2016:MsgBody}PaymentDetailsReq), START_ELEMENT({urn:iso:15118:2:2016:MsgBody}PaymentDetailsRes), START_ELEMENT({urn:iso:15118:2:2016:MsgBody}PaymentServiceSelectionReq), START_ELEMENT({urn:iso:15118:2:2016:MsgBody}PaymentServiceSelectionRes), START_ELEMENT({urn:iso:15118:2:2016:MsgBody}PowerDeliveryReq), START_ELEMENT({urn:iso:15118:2:2016:MsgBody}PowerDeliveryRes), START_ELEMENT({urn:iso:15118:2:2016:MsgBody}PowerDemandReq), START_ELEMENT({urn:iso:15118:2:2016:MsgBody}PowerDemandRes), START_ELEMENT({urn:iso:15118:2:2016:MsgBody}PreChargeReq), START_ELEMENT({urn:iso:15118:2:2016:MsgBody}PreChargeRes), START_ELEMENT({urn:iso:15118:2:2016:MsgBody}ServiceDetailReq), START_ELEMENT({urn:iso:15118:2:2016:MsgBody}ServiceDetailRes), START_ELEMENT({urn:iso:15118:2:2016:MsgBody}ServiceDiscoveryReq), START_ELEMENT({urn:iso:15118:2:2016:MsgBody}ServiceDiscoveryRes), START_ELEMENT({urn:iso:15118:2:2016:MsgBody}SessionSetupReq), START_ELEMENT({urn:iso:15118:2:2016:MsgBody}SessionSetupRes), START_ELEMENT({urn:iso:15118:2:2016:MsgBody}SessionStopReq), START_ELEMENT({urn:iso:15118:2:2016:MsgBody}SessionStopRes), START_ELEMENT({urn:iso:15118:2:2016:MsgBody}SystemStatusReq), START_ELEMENT({urn:iso:15118:2:2016:MsgBody}SystemStatusRes), START_ELEMENT({urn:iso:15118:2:2016:MsgBody}V2GRequest), START_ELEMENT({urn:iso:15118:2:2016:MsgBody}V2GResponse), START_ELEMENT({urn:iso:15118:2:2016:MsgBody}VehicleCheckInReq), START_ELEMENT({urn:iso:15118:2:2016:MsgBody}VehicleCheckInRes), START_ELEMENT({urn:iso:15118:2:2016:MsgBody}VehicleCheckOutReq), START_ELEMENT({urn:iso:15118:2:2016:MsgBody}VehicleCheckOutRes), START_ELEMENT({urn:iso:15118:2:2016:MsgBody}WeldingDetectionReq), START_ELEMENT({urn:iso:15118:2:2016:MsgBody}WeldingDetectionRes)] */
+ errn = decodeNBitUnsignedInteger(stream, 6, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ errn = decode_iso2AC_BidirectionalControlReqType(stream, &iso2BodyType->AC_BidirectionalControlReq);
+ iso2BodyType->AC_BidirectionalControlReq_isUsed = 1u;
+ grammarID = 3;
+ break;
+ case 1:
+ errn = decode_iso2AC_BidirectionalControlResType(stream, &iso2BodyType->AC_BidirectionalControlRes);
+ iso2BodyType->AC_BidirectionalControlRes_isUsed = 1u;
+ grammarID = 3;
+ break;
+ case 2:
+ errn = decode_iso2AlignmentCheckReqType(stream, &iso2BodyType->AlignmentCheckReq);
+ iso2BodyType->AlignmentCheckReq_isUsed = 1u;
+ grammarID = 3;
+ break;
+ case 3:
+ errn = decode_iso2AlignmentCheckResType(stream, &iso2BodyType->AlignmentCheckRes);
+ iso2BodyType->AlignmentCheckRes_isUsed = 1u;
+ grammarID = 3;
+ break;
+ case 4:
+ errn = decode_iso2AuthorizationReqType(stream, &iso2BodyType->AuthorizationReq);
+ iso2BodyType->AuthorizationReq_isUsed = 1u;
+ grammarID = 3;
+ break;
+ case 5:
+ errn = decode_iso2AuthorizationResType(stream, &iso2BodyType->AuthorizationRes);
+ iso2BodyType->AuthorizationRes_isUsed = 1u;
+ grammarID = 3;
+ break;
+ case 6:
+ errn = decode_iso2BodyBaseType(stream, &iso2BodyType->BodyElement);
+ iso2BodyType->BodyElement_isUsed = 1u;
+ grammarID = 3;
+ break;
+ case 7:
+ errn = decode_iso2CableCheckReqType(stream, &iso2BodyType->CableCheckReq);
+ iso2BodyType->CableCheckReq_isUsed = 1u;
+ grammarID = 3;
+ break;
+ case 8:
+ errn = decode_iso2CableCheckResType(stream, &iso2BodyType->CableCheckRes);
+ iso2BodyType->CableCheckRes_isUsed = 1u;
+ grammarID = 3;
+ break;
+ case 9:
+ errn = decode_iso2CertificateInstallationReqType(stream, &iso2BodyType->CertificateInstallationReq);
+ iso2BodyType->CertificateInstallationReq_isUsed = 1u;
+ grammarID = 3;
+ break;
+ case 10:
+ errn = decode_iso2CertificateInstallationResType(stream, &iso2BodyType->CertificateInstallationRes);
+ iso2BodyType->CertificateInstallationRes_isUsed = 1u;
+ grammarID = 3;
+ break;
+ case 11:
+ errn = decode_iso2CertificateUpdateReqType(stream, &iso2BodyType->CertificateUpdateReq);
+ iso2BodyType->CertificateUpdateReq_isUsed = 1u;
+ grammarID = 3;
+ break;
+ case 12:
+ errn = decode_iso2CertificateUpdateResType(stream, &iso2BodyType->CertificateUpdateRes);
+ iso2BodyType->CertificateUpdateRes_isUsed = 1u;
+ grammarID = 3;
+ break;
+ case 13:
+ errn = decode_iso2ChargeParameterDiscoveryReqType(stream, &iso2BodyType->ChargeParameterDiscoveryReq);
+ iso2BodyType->ChargeParameterDiscoveryReq_isUsed = 1u;
+ grammarID = 3;
+ break;
+ case 14:
+ errn = decode_iso2ChargeParameterDiscoveryResType(stream, &iso2BodyType->ChargeParameterDiscoveryRes);
+ iso2BodyType->ChargeParameterDiscoveryRes_isUsed = 1u;
+ grammarID = 3;
+ break;
+ case 15:
+ errn = decode_iso2ChargingStatusReqType(stream, &iso2BodyType->ChargingStatusReq);
+ iso2BodyType->ChargingStatusReq_isUsed = 1u;
+ grammarID = 3;
+ break;
+ case 16:
+ errn = decode_iso2ChargingStatusResType(stream, &iso2BodyType->ChargingStatusRes);
+ iso2BodyType->ChargingStatusRes_isUsed = 1u;
+ grammarID = 3;
+ break;
+ case 17:
+ errn = decode_iso2ConnectChargingDeviceReqType(stream, &iso2BodyType->ConnectChargingDeviceReq);
+ iso2BodyType->ConnectChargingDeviceReq_isUsed = 1u;
+ grammarID = 3;
+ break;
+ case 18:
+ errn = decode_iso2ConnectChargingDeviceResType(stream, &iso2BodyType->ConnectChargingDeviceRes);
+ iso2BodyType->ConnectChargingDeviceRes_isUsed = 1u;
+ grammarID = 3;
+ break;
+ case 19:
+ errn = decode_iso2CurrentDemandReqType(stream, &iso2BodyType->CurrentDemandReq);
+ iso2BodyType->CurrentDemandReq_isUsed = 1u;
+ grammarID = 3;
+ break;
+ case 20:
+ errn = decode_iso2CurrentDemandResType(stream, &iso2BodyType->CurrentDemandRes);
+ iso2BodyType->CurrentDemandRes_isUsed = 1u;
+ grammarID = 3;
+ break;
+ case 21:
+ errn = decode_iso2DC_BidirectionalControlReqType(stream, &iso2BodyType->DC_BidirectionalControlReq);
+ iso2BodyType->DC_BidirectionalControlReq_isUsed = 1u;
+ grammarID = 3;
+ break;
+ case 22:
+ errn = decode_iso2DC_BidirectionalControlResType(stream, &iso2BodyType->DC_BidirectionalControlRes);
+ iso2BodyType->DC_BidirectionalControlRes_isUsed = 1u;
+ grammarID = 3;
+ break;
+ case 23:
+ errn = decode_iso2DisconnectChargingDeviceReqType(stream, &iso2BodyType->DisconnectChargingDeviceReq);
+ iso2BodyType->DisconnectChargingDeviceReq_isUsed = 1u;
+ grammarID = 3;
+ break;
+ case 24:
+ errn = decode_iso2DisconnectChargingDeviceResType(stream, &iso2BodyType->DisconnectChargingDeviceRes);
+ iso2BodyType->DisconnectChargingDeviceRes_isUsed = 1u;
+ grammarID = 3;
+ break;
+ case 25:
+ errn = decode_iso2FinePositioningReqType(stream, &iso2BodyType->FinePositioningReq);
+ iso2BodyType->FinePositioningReq_isUsed = 1u;
+ grammarID = 3;
+ break;
+ case 26:
+ errn = decode_iso2FinePositioningResType(stream, &iso2BodyType->FinePositioningRes);
+ iso2BodyType->FinePositioningRes_isUsed = 1u;
+ grammarID = 3;
+ break;
+ case 27:
+ errn = decode_iso2FinePositioningSetupReqType(stream, &iso2BodyType->FinePositioningSetupReq);
+ iso2BodyType->FinePositioningSetupReq_isUsed = 1u;
+ grammarID = 3;
+ break;
+ case 28:
+ errn = decode_iso2FinePositioningSetupResType(stream, &iso2BodyType->FinePositioningSetupRes);
+ iso2BodyType->FinePositioningSetupRes_isUsed = 1u;
+ grammarID = 3;
+ break;
+ case 29:
+ errn = decode_iso2MeteringReceiptReqType(stream, &iso2BodyType->MeteringReceiptReq);
+ iso2BodyType->MeteringReceiptReq_isUsed = 1u;
+ grammarID = 3;
+ break;
+ case 30:
+ errn = decode_iso2MeteringReceiptResType(stream, &iso2BodyType->MeteringReceiptRes);
+ iso2BodyType->MeteringReceiptRes_isUsed = 1u;
+ grammarID = 3;
+ break;
+ case 31:
+ errn = decode_iso2PairingReqType(stream, &iso2BodyType->PairingReq);
+ iso2BodyType->PairingReq_isUsed = 1u;
+ grammarID = 3;
+ break;
+ case 32:
+ errn = decode_iso2PairingResType(stream, &iso2BodyType->PairingRes);
+ iso2BodyType->PairingRes_isUsed = 1u;
+ grammarID = 3;
+ break;
+ case 33:
+ errn = decode_iso2PaymentDetailsReqType(stream, &iso2BodyType->PaymentDetailsReq);
+ iso2BodyType->PaymentDetailsReq_isUsed = 1u;
+ grammarID = 3;
+ break;
+ case 34:
+ errn = decode_iso2PaymentDetailsResType(stream, &iso2BodyType->PaymentDetailsRes);
+ iso2BodyType->PaymentDetailsRes_isUsed = 1u;
+ grammarID = 3;
+ break;
+ case 35:
+ errn = decode_iso2PaymentServiceSelectionReqType(stream, &iso2BodyType->PaymentServiceSelectionReq);
+ iso2BodyType->PaymentServiceSelectionReq_isUsed = 1u;
+ grammarID = 3;
+ break;
+ case 36:
+ errn = decode_iso2PaymentServiceSelectionResType(stream, &iso2BodyType->PaymentServiceSelectionRes);
+ iso2BodyType->PaymentServiceSelectionRes_isUsed = 1u;
+ grammarID = 3;
+ break;
+ case 37:
+ errn = decode_iso2PowerDeliveryReqType(stream, &iso2BodyType->PowerDeliveryReq);
+ iso2BodyType->PowerDeliveryReq_isUsed = 1u;
+ grammarID = 3;
+ break;
+ case 38:
+ errn = decode_iso2PowerDeliveryResType(stream, &iso2BodyType->PowerDeliveryRes);
+ iso2BodyType->PowerDeliveryRes_isUsed = 1u;
+ grammarID = 3;
+ break;
+ case 39:
+ errn = decode_iso2PowerDemandReqType(stream, &iso2BodyType->PowerDemandReq);
+ iso2BodyType->PowerDemandReq_isUsed = 1u;
+ grammarID = 3;
+ break;
+ case 40:
+ errn = decode_iso2PowerDemandResType(stream, &iso2BodyType->PowerDemandRes);
+ iso2BodyType->PowerDemandRes_isUsed = 1u;
+ grammarID = 3;
+ break;
+ case 41:
+ errn = decode_iso2PreChargeReqType(stream, &iso2BodyType->PreChargeReq);
+ iso2BodyType->PreChargeReq_isUsed = 1u;
+ grammarID = 3;
+ break;
+ case 42:
+ errn = decode_iso2PreChargeResType(stream, &iso2BodyType->PreChargeRes);
+ iso2BodyType->PreChargeRes_isUsed = 1u;
+ grammarID = 3;
+ break;
+ case 43:
+ errn = decode_iso2ServiceDetailReqType(stream, &iso2BodyType->ServiceDetailReq);
+ iso2BodyType->ServiceDetailReq_isUsed = 1u;
+ grammarID = 3;
+ break;
+ case 44:
+ errn = decode_iso2ServiceDetailResType(stream, &iso2BodyType->ServiceDetailRes);
+ iso2BodyType->ServiceDetailRes_isUsed = 1u;
+ grammarID = 3;
+ break;
+ case 45:
+ errn = decode_iso2ServiceDiscoveryReqType(stream, &iso2BodyType->ServiceDiscoveryReq);
+ iso2BodyType->ServiceDiscoveryReq_isUsed = 1u;
+ grammarID = 3;
+ break;
+ case 46:
+ errn = decode_iso2ServiceDiscoveryResType(stream, &iso2BodyType->ServiceDiscoveryRes);
+ iso2BodyType->ServiceDiscoveryRes_isUsed = 1u;
+ grammarID = 3;
+ break;
+ case 47:
+ errn = decode_iso2SessionSetupReqType(stream, &iso2BodyType->SessionSetupReq);
+ iso2BodyType->SessionSetupReq_isUsed = 1u;
+ grammarID = 3;
+ break;
+ case 48:
+ errn = decode_iso2SessionSetupResType(stream, &iso2BodyType->SessionSetupRes);
+ iso2BodyType->SessionSetupRes_isUsed = 1u;
+ grammarID = 3;
+ break;
+ case 49:
+ errn = decode_iso2SessionStopReqType(stream, &iso2BodyType->SessionStopReq);
+ iso2BodyType->SessionStopReq_isUsed = 1u;
+ grammarID = 3;
+ break;
+ case 50:
+ errn = decode_iso2SessionStopResType(stream, &iso2BodyType->SessionStopRes);
+ iso2BodyType->SessionStopRes_isUsed = 1u;
+ grammarID = 3;
+ break;
+ case 51:
+ errn = decode_iso2SystemStatusReqType(stream, &iso2BodyType->SystemStatusReq);
+ iso2BodyType->SystemStatusReq_isUsed = 1u;
+ grammarID = 3;
+ break;
+ case 52:
+ errn = decode_iso2SystemStatusResType(stream, &iso2BodyType->SystemStatusRes);
+ iso2BodyType->SystemStatusRes_isUsed = 1u;
+ grammarID = 3;
+ break;
+ case 53:
+ errn = decode_iso2BodyBaseType(stream, &iso2BodyType->V2GRequest);
+ iso2BodyType->V2GRequest_isUsed = 1u;
+ grammarID = 3;
+ break;
+ case 54:
+ errn = decode_iso2V2GResponseType(stream, &iso2BodyType->V2GResponse);
+ iso2BodyType->V2GResponse_isUsed = 1u;
+ grammarID = 3;
+ break;
+ case 55:
+ errn = decode_iso2VehicleCheckInReqType(stream, &iso2BodyType->VehicleCheckInReq);
+ iso2BodyType->VehicleCheckInReq_isUsed = 1u;
+ grammarID = 3;
+ break;
+ case 56:
+ errn = decode_iso2VehicleCheckInResType(stream, &iso2BodyType->VehicleCheckInRes);
+ iso2BodyType->VehicleCheckInRes_isUsed = 1u;
+ grammarID = 3;
+ break;
+ case 57:
+ errn = decode_iso2VehicleCheckOutReqType(stream, &iso2BodyType->VehicleCheckOutReq);
+ iso2BodyType->VehicleCheckOutReq_isUsed = 1u;
+ grammarID = 3;
+ break;
+ case 58:
+ errn = decode_iso2VehicleCheckOutResType(stream, &iso2BodyType->VehicleCheckOutRes);
+ iso2BodyType->VehicleCheckOutRes_isUsed = 1u;
+ grammarID = 3;
+ break;
+ case 59:
+ errn = decode_iso2WeldingDetectionReqType(stream, &iso2BodyType->WeldingDetectionReq);
+ iso2BodyType->WeldingDetectionReq_isUsed = 1u;
+ grammarID = 3;
+ break;
+ case 60:
+ errn = decode_iso2WeldingDetectionResType(stream, &iso2BodyType->WeldingDetectionRes);
+ iso2BodyType->WeldingDetectionRes_isUsed = 1u;
+ grammarID = 3;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 3:
+ /* Element[END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ done = 1;
+ grammarID = 4;
+ 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:2016:MsgBody,PreChargeResType', base type name='V2GResponseType', content type='ELEMENT', isAbstract='false', hasTypeId='false', final='0', block='0', particle='(("urn:iso:15118:2:2016:MsgBody":ResponseCode,"urn:iso:15118:2:2016:MsgBody":EVSEStatus{0-1}),("urn:iso:15118:2:2016:MsgBody":EVSEPresentVoltage))', derivedBy='EXTENSION'. */
+static int decode_iso2PreChargeResType(bitstream_t* stream, struct iso2PreChargeResType* iso2PreChargeResType) {
+ int grammarID = 596;
+ int done = 0;
+
+ init_iso2PreChargeResType(iso2PreChargeResType);
+
+ while(!done) {
+ switch(grammarID) {
+ case 596:
+ /* FirstStartTag[START_ELEMENT({urn:iso:15118:2:2016:MsgBody}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, 5, &uint32);
+ iso2PreChargeResType->ResponseCode = (iso2responseCodeType) 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({urn:iso:15118:2:2016:MsgBody}ResponseCode) ? */
+ errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
+ if(eventCode == 0) {
+ grammarID = 597;
+ } else {
+ errn = EXI_DEVIANT_SUPPORT_NOT_DEPLOYED; /* or also typecast and nillable */
+ }
+ }
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 597:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgBody}EVSEStatus), START_ELEMENT({urn:iso:15118:2:2016:MsgBody}EVSEPresentVoltage)] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ errn = decode_iso2EVSEStatusType(stream, &iso2PreChargeResType->EVSEStatus);
+ iso2PreChargeResType->EVSEStatus_isUsed = 1u;
+ grammarID = 598;
+ break;
+ case 1:
+ errn = decode_iso2PhysicalValueType(stream, &iso2PreChargeResType->EVSEPresentVoltage);
+ grammarID = 3;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 598:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgBody}EVSEPresentVoltage)] */
+ errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ errn = decode_iso2PhysicalValueType(stream, &iso2PreChargeResType->EVSEPresentVoltage);
+ grammarID = 3;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 3:
+ /* Element[END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ done = 1;
+ grammarID = 4;
+ 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:2016:MsgDataTypes,EVSEFinePositioningParametersType', base type name='anyType', content type='EMPTY', isAbstract='true', hasTypeId='false', final='0', block='0', derivedBy='RESTRICTION'. */
+static int decode_iso2EVSEFinePositioningParametersType(bitstream_t* stream, struct iso2EVSEFinePositioningParametersType* iso2EVSEFinePositioningParametersType) {
+ int grammarID = 674;
+ int done = 0;
+
+ init_iso2EVSEFinePositioningParametersType(iso2EVSEFinePositioningParametersType);
+
+ while(!done) {
+ switch(grammarID) {
+ case 674:
+ /* FirstStartTag[END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ done = 1;
+ grammarID = 4;
+ 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:2016:MsgBody,PaymentServiceSelectionResType', base type name='V2GResponseType', content type='ELEMENT', isAbstract='false', hasTypeId='false', final='0', block='0', particle='("urn:iso:15118:2:2016:MsgBody":ResponseCode,"urn:iso:15118:2:2016:MsgBody":EVSEStatus{0-1})', derivedBy='EXTENSION'. */
+static int decode_iso2PaymentServiceSelectionResType(bitstream_t* stream, struct iso2PaymentServiceSelectionResType* iso2PaymentServiceSelectionResType) {
+ int grammarID = 599;
+ int done = 0;
+
+ init_iso2PaymentServiceSelectionResType(iso2PaymentServiceSelectionResType);
+
+ while(!done) {
+ switch(grammarID) {
+ case 599:
+ /* FirstStartTag[START_ELEMENT({urn:iso:15118:2:2016:MsgBody}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, 5, &uint32);
+ iso2PaymentServiceSelectionResType->ResponseCode = (iso2responseCodeType) 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({urn:iso:15118:2:2016:MsgBody}ResponseCode) ? */
+ errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
+ if(eventCode == 0) {
+ grammarID = 600;
+ } else {
+ errn = EXI_DEVIANT_SUPPORT_NOT_DEPLOYED; /* or also typecast and nillable */
+ }
+ }
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 600:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgBody}EVSEStatus), END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ errn = decode_iso2EVSEStatusType(stream, &iso2PaymentServiceSelectionResType->EVSEStatus);
+ iso2PaymentServiceSelectionResType->EVSEStatus_isUsed = 1u;
+ grammarID = 3;
+ break;
+ case 1:
+ done = 1;
+ grammarID = 4;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 3:
+ /* Element[END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ done = 1;
+ grammarID = 4;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
default:
errn = EXI_ERROR_UNKOWN_GRAMMAR_ID;
break;
@@ -102233,31 +64117,31 @@ static int decode_v2gSessionSetupReqType(bitstream_t* stream, struct v2gSessionS
}
/* Complex type name='http://www.w3.org/2000/09/xmldsig#,DigestMethodType', base type name='anyType', content type='MIXED', isAbstract='false', hasTypeId='false', final='0', block='0', particle='((WC[##other:"http://www.w3.org/2000/09/xmldsig#"]){0-UNBOUNDED})', derivedBy='RESTRICTION'. */
-static int decode_v2gDigestMethodType(bitstream_t* stream, struct v2gDigestMethodType* v2gDigestMethodType) {
- int grammarID = 1847;
+static int decode_iso2DigestMethodType(bitstream_t* stream, struct iso2DigestMethodType* iso2DigestMethodType) {
+ int grammarID = 1899;
int done = 0;
- init_v2gDigestMethodType(v2gDigestMethodType);
+ init_iso2DigestMethodType(iso2DigestMethodType);
while(!done) {
switch(grammarID) {
- case 1847:
+ case 1899:
/* FirstStartTag[ATTRIBUTE[STRING](Algorithm)] */
errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
if (errn == 0) {
switch(eventCode) {
case 0:
- errn = decodeUnsignedInteger16(stream, &v2gDigestMethodType->Algorithm.charactersLen);
+ errn = decodeUnsignedInteger16(stream, &iso2DigestMethodType->Algorithm.charactersLen);
if (errn == 0) {
- if (v2gDigestMethodType->Algorithm.charactersLen >= 2) {
- v2gDigestMethodType->Algorithm.charactersLen = (uint16_t)(v2gDigestMethodType->Algorithm.charactersLen - 2); /* string table miss */
- errn = decodeCharacters(stream, v2gDigestMethodType->Algorithm.charactersLen, v2gDigestMethodType->Algorithm.characters, v2gDigestMethodType_Algorithm_CHARACTERS_SIZE);
+ if (iso2DigestMethodType->Algorithm.charactersLen >= 2) {
+ iso2DigestMethodType->Algorithm.charactersLen = (uint16_t)(iso2DigestMethodType->Algorithm.charactersLen - 2); /* string table miss */
+ errn = decodeCharacters(stream, iso2DigestMethodType->Algorithm.charactersLen, iso2DigestMethodType->Algorithm.characters, iso2DigestMethodType_Algorithm_CHARACTERS_SIZE);
} else {
/* string table hit */
errn = EXI_ERROR_STRINGVALUES_NOT_SUPPORTED;
}
}
- grammarID = 1848;
+ grammarID = 684;
break;
default:
errn = EXI_ERROR_UNKOWN_EVENT_CODE;
@@ -102265,7 +64149,7 @@ static int decode_v2gDigestMethodType(bitstream_t* stream, struct v2gDigestMetho
}
}
break;
- case 1848:
+ case 684:
/* StartTag[START_ELEMENT_GENERIC, END_ELEMENT, CHARACTERS_GENERIC[STRING]] */
errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
if (errn == 0) {
@@ -102273,25 +64157,25 @@ static int decode_v2gDigestMethodType(bitstream_t* stream, struct v2gDigestMetho
case 0:
errn = EXI_UNSUPPORTED_EVENT_CODE_CHARACTERISTICS;
/* TODO unsupported event : START_ELEMENT_GENERIC */
- grammarID = 904;
+ grammarID = 685;
break;
case 1:
done = 1;
- grammarID = 3;
+ grammarID = 4;
break;
case 2:
- errn = decodeUnsignedInteger16(stream, &v2gDigestMethodType->ANY.charactersLen);
+ errn = decodeUnsignedInteger16(stream, &iso2DigestMethodType->ANY.charactersLen);
if (errn == 0) {
- if (v2gDigestMethodType->ANY.charactersLen >= 2) {
- v2gDigestMethodType->ANY.charactersLen = (uint16_t)(v2gDigestMethodType->ANY.charactersLen - 2); /* string table miss */
- errn = decodeCharacters(stream, v2gDigestMethodType->ANY.charactersLen, v2gDigestMethodType->ANY.characters, v2gDigestMethodType_ANY_CHARACTERS_SIZE);
+ if (iso2DigestMethodType->ANY.charactersLen >= 2) {
+ iso2DigestMethodType->ANY.charactersLen = (uint16_t)(iso2DigestMethodType->ANY.charactersLen - 2); /* string table miss */
+ errn = decodeCharacters(stream, iso2DigestMethodType->ANY.charactersLen, iso2DigestMethodType->ANY.characters, iso2DigestMethodType_ANY_CHARACTERS_SIZE);
} else {
/* string table hit */
errn = EXI_ERROR_STRINGVALUES_NOT_SUPPORTED;
}
}
- v2gDigestMethodType->ANY_isUsed = 1u;
- grammarID = 904;
+ iso2DigestMethodType->ANY_isUsed = 1u;
+ grammarID = 685;
break;
default:
errn = EXI_ERROR_UNKOWN_EVENT_CODE;
@@ -102299,7 +64183,7 @@ static int decode_v2gDigestMethodType(bitstream_t* stream, struct v2gDigestMetho
}
}
break;
- case 904:
+ case 685:
/* Element[START_ELEMENT_GENERIC, END_ELEMENT, CHARACTERS_GENERIC[STRING]] */
errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
if (errn == 0) {
@@ -102307,25 +64191,18611 @@ static int decode_v2gDigestMethodType(bitstream_t* stream, struct v2gDigestMetho
case 0:
errn = EXI_UNSUPPORTED_EVENT_CODE_CHARACTERISTICS;
/* TODO unsupported event : START_ELEMENT_GENERIC */
- grammarID = 904;
+ grammarID = 685;
break;
case 1:
done = 1;
- grammarID = 3;
+ grammarID = 4;
break;
case 2:
- errn = decodeUnsignedInteger16(stream, &v2gDigestMethodType->ANY.charactersLen);
+ errn = decodeUnsignedInteger16(stream, &iso2DigestMethodType->ANY.charactersLen);
if (errn == 0) {
- if (v2gDigestMethodType->ANY.charactersLen >= 2) {
- v2gDigestMethodType->ANY.charactersLen = (uint16_t)(v2gDigestMethodType->ANY.charactersLen - 2); /* string table miss */
- errn = decodeCharacters(stream, v2gDigestMethodType->ANY.charactersLen, v2gDigestMethodType->ANY.characters, v2gDigestMethodType_ANY_CHARACTERS_SIZE);
+ if (iso2DigestMethodType->ANY.charactersLen >= 2) {
+ iso2DigestMethodType->ANY.charactersLen = (uint16_t)(iso2DigestMethodType->ANY.charactersLen - 2); /* string table miss */
+ errn = decodeCharacters(stream, iso2DigestMethodType->ANY.charactersLen, iso2DigestMethodType->ANY.characters, iso2DigestMethodType_ANY_CHARACTERS_SIZE);
} else {
/* string table hit */
errn = EXI_ERROR_STRINGVALUES_NOT_SUPPORTED;
}
}
- v2gDigestMethodType->ANY_isUsed = 1u;
- grammarID = 904;
+ iso2DigestMethodType->ANY_isUsed = 1u;
+ grammarID = 685;
+ 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:2016:MsgDataTypes,TargetPositionType', base type name='anyType', content type='ELEMENT', isAbstract='false', hasTypeId='false', final='0', block='0', particle='("urn:iso:15118:2:2016:MsgDataTypes":TargetOffsetX,"urn:iso:15118:2:2016:MsgDataTypes":TargetOffsetY)', derivedBy='RESTRICTION'. */
+static int decode_iso2TargetPositionType(bitstream_t* stream, struct iso2TargetPositionType* iso2TargetPositionType) {
+ int grammarID = 1945;
+ int done = 0;
+
+ init_iso2TargetPositionType(iso2TargetPositionType);
+
+ while(!done) {
+ switch(grammarID) {
+ case 1945:
+ /* FirstStartTag[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}TargetOffsetX)] */
+ errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ /* First(xsi:type)StartTag[CHARACTERS[UNSIGNED_INTEGER]] */
+ errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
+ if(errn == 0) {
+ if(eventCode == 0) {
+ errn = decodeUnsignedInteger16(stream, &iso2TargetPositionType->TargetOffsetX);
+ } 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({urn:iso:15118:2:2016:MsgDataTypes}TargetOffsetX) ? */
+ errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
+ if(eventCode == 0) {
+ grammarID = 1946;
+ } else {
+ errn = EXI_DEVIANT_SUPPORT_NOT_DEPLOYED; /* or also typecast and nillable */
+ }
+ }
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 1946:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}TargetOffsetY)] */
+ errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ /* First(xsi:type)StartTag[CHARACTERS[UNSIGNED_INTEGER]] */
+ errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
+ if(errn == 0) {
+ if(eventCode == 0) {
+ errn = decodeUnsignedInteger16(stream, &iso2TargetPositionType->TargetOffsetY);
+ } 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({urn:iso:15118:2:2016:MsgDataTypes}TargetOffsetY) ? */
+ errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
+ if(eventCode == 0) {
+ grammarID = 3;
+ } else {
+ errn = EXI_DEVIANT_SUPPORT_NOT_DEPLOYED; /* or also typecast and nillable */
+ }
+ }
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 3:
+ /* Element[END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ done = 1;
+ grammarID = 4;
+ 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:2016:MsgDataTypes,LFA_EVFinePositioningParametersType', base type name='EVFinePositioningParametersType', content type='ELEMENT', isAbstract='false', hasTypeId='false', final='0', block='0', particle='("urn:iso:15118:2:2016:MsgDataTypes":NumberOfSignalPackages,"urn:iso:15118:2:2016:MsgDataTypes":SensorPackageList)', derivedBy='EXTENSION'. */
+static int decode_iso2LFA_EVFinePositioningParametersType(bitstream_t* stream, struct iso2LFA_EVFinePositioningParametersType* iso2LFA_EVFinePositioningParametersType) {
+ int grammarID = 670;
+ int done = 0;
+
+ init_iso2LFA_EVFinePositioningParametersType(iso2LFA_EVFinePositioningParametersType);
+
+ while(!done) {
+ switch(grammarID) {
+ case 670:
+ /* FirstStartTag[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}NumberOfSignalPackages)] */
+ errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
+ errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
+ if(errn == 0) {
+ if(eventCode == 0) {
+ errn = decodeNBitUnsignedInteger(stream, 8, &(uint32));
+ iso2LFA_EVFinePositioningParametersType->NumberOfSignalPackages = (uint8_t)(uint32 + 0);
+ } 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({urn:iso:15118:2:2016:MsgDataTypes}NumberOfSignalPackages) ? */
+ errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
+ if(eventCode == 0) {
+ grammarID = 671;
+ } else {
+ errn = EXI_DEVIANT_SUPPORT_NOT_DEPLOYED; /* or also typecast and nillable */
+ }
+ }
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 671:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorPackageList)] */
+ errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ errn = decode_iso2SensorPackageListType(stream, &iso2LFA_EVFinePositioningParametersType->SensorPackageList);
+ grammarID = 3;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 3:
+ /* Element[END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ done = 1;
+ grammarID = 4;
+ 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:2016:MsgDataTypes,DC_EVChargeParameterType', base type name='EVEnergyTransferParameterType', content type='ELEMENT', isAbstract='false', hasTypeId='false', final='0', block='0', particle='(("urn:iso:15118:2:2016:MsgDataTypes":DepartureTime),("urn:iso:15118:2:2016:MsgDataTypes":EVMaximumChargePower{0-1},"urn:iso:15118:2:2016:MsgDataTypes":EVMinimumChargePower{0-1},"urn:iso:15118:2:2016:MsgDataTypes":EVMaximumChargeCurrent,"urn:iso:15118:2:2016:MsgDataTypes":EVMinimumChargeCurrent,"urn:iso:15118:2:2016:MsgDataTypes":EVMaximumVoltage,"urn:iso:15118:2:2016:MsgDataTypes":EVTargetEnergyRequest{0-1},"urn:iso:15118:2:2016:MsgDataTypes":EVMaximumEnergyRequest{0-1},"urn:iso:15118:2:2016:MsgDataTypes":EVMinimumEnergyRequest{0-1},"urn:iso:15118:2:2016:MsgDataTypes":CurrentSOC{0-1},"urn:iso:15118:2:2016:MsgDataTypes":TargetSOC{0-1},"urn:iso:15118:2:2016:MsgDataTypes":BulkSOC{0-1}))', derivedBy='EXTENSION'. */
+static int decode_iso2DC_EVChargeParameterType(bitstream_t* stream, struct iso2DC_EVChargeParameterType* iso2DC_EVChargeParameterType) {
+ int grammarID = 1947;
+ int done = 0;
+
+ init_iso2DC_EVChargeParameterType(iso2DC_EVChargeParameterType);
+
+ while(!done) {
+ switch(grammarID) {
+ case 1947:
+ /* FirstStartTag[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}DepartureTime)] */
+ errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ /* First(xsi:type)StartTag[CHARACTERS[UNSIGNED_INTEGER]] */
+ errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
+ if(errn == 0) {
+ if(eventCode == 0) {
+ errn = decodeUnsignedInteger32(stream, &iso2DC_EVChargeParameterType->DepartureTime);
+ } 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({urn:iso:15118:2:2016:MsgDataTypes}DepartureTime) ? */
+ errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
+ if(eventCode == 0) {
+ grammarID = 1948;
+ } else {
+ errn = EXI_DEVIANT_SUPPORT_NOT_DEPLOYED; /* or also typecast and nillable */
+ }
+ }
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 1948:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}EVMaximumChargePower), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}EVMinimumChargePower), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}EVMaximumChargeCurrent)] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ errn = decode_iso2PhysicalValueType(stream, &iso2DC_EVChargeParameterType->EVMaximumChargePower);
+ iso2DC_EVChargeParameterType->EVMaximumChargePower_isUsed = 1u;
+ grammarID = 1949;
+ break;
+ case 1:
+ errn = decode_iso2PhysicalValueType(stream, &iso2DC_EVChargeParameterType->EVMinimumChargePower);
+ iso2DC_EVChargeParameterType->EVMinimumChargePower_isUsed = 1u;
+ grammarID = 1950;
+ break;
+ case 2:
+ errn = decode_iso2PhysicalValueType(stream, &iso2DC_EVChargeParameterType->EVMaximumChargeCurrent);
+ grammarID = 1951;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 1949:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}EVMinimumChargePower), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}EVMaximumChargeCurrent)] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ errn = decode_iso2PhysicalValueType(stream, &iso2DC_EVChargeParameterType->EVMinimumChargePower);
+ iso2DC_EVChargeParameterType->EVMinimumChargePower_isUsed = 1u;
+ grammarID = 1950;
+ break;
+ case 1:
+ errn = decode_iso2PhysicalValueType(stream, &iso2DC_EVChargeParameterType->EVMaximumChargeCurrent);
+ grammarID = 1951;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 1950:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}EVMaximumChargeCurrent)] */
+ errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ errn = decode_iso2PhysicalValueType(stream, &iso2DC_EVChargeParameterType->EVMaximumChargeCurrent);
+ grammarID = 1951;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 1951:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}EVMinimumChargeCurrent)] */
+ errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ errn = decode_iso2PhysicalValueType(stream, &iso2DC_EVChargeParameterType->EVMinimumChargeCurrent);
+ grammarID = 1952;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 1952:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}EVMaximumVoltage)] */
+ errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ errn = decode_iso2PhysicalValueType(stream, &iso2DC_EVChargeParameterType->EVMaximumVoltage);
+ grammarID = 1953;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 1953:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}EVTargetEnergyRequest), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}EVMaximumEnergyRequest), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}EVMinimumEnergyRequest), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}CurrentSOC), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}TargetSOC), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}BulkSOC), END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 3, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ errn = decode_iso2PhysicalValueType(stream, &iso2DC_EVChargeParameterType->EVTargetEnergyRequest);
+ iso2DC_EVChargeParameterType->EVTargetEnergyRequest_isUsed = 1u;
+ grammarID = 1954;
+ break;
+ case 1:
+ errn = decode_iso2PhysicalValueType(stream, &iso2DC_EVChargeParameterType->EVMaximumEnergyRequest);
+ iso2DC_EVChargeParameterType->EVMaximumEnergyRequest_isUsed = 1u;
+ grammarID = 1955;
+ break;
+ case 2:
+ errn = decode_iso2PhysicalValueType(stream, &iso2DC_EVChargeParameterType->EVMinimumEnergyRequest);
+ iso2DC_EVChargeParameterType->EVMinimumEnergyRequest_isUsed = 1u;
+ grammarID = 1956;
+ break;
+ case 3:
+ /* FirstStartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
+ errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
+ if(errn == 0) {
+ if(eventCode == 0) {
+ errn = decodeNBitUnsignedInteger(stream, 7, &(uint32));
+ iso2DC_EVChargeParameterType->CurrentSOC = (int8_t)(uint32 + 0);
+ iso2DC_EVChargeParameterType->CurrentSOC_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({urn:iso:15118:2:2016:MsgDataTypes}CurrentSOC) ? */
+ errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
+ if(eventCode == 0) {
+ grammarID = 1957;
+ } else {
+ errn = EXI_DEVIANT_SUPPORT_NOT_DEPLOYED; /* or also typecast and nillable */
+ }
+ }
+ break;
+ case 4:
+ /* FirstStartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
+ errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
+ if(errn == 0) {
+ if(eventCode == 0) {
+ errn = decodeNBitUnsignedInteger(stream, 7, &(uint32));
+ iso2DC_EVChargeParameterType->TargetSOC = (int8_t)(uint32 + 0);
+ iso2DC_EVChargeParameterType->TargetSOC_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({urn:iso:15118:2:2016:MsgDataTypes}TargetSOC) ? */
+ errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
+ if(eventCode == 0) {
+ grammarID = 1958;
+ } else {
+ errn = EXI_DEVIANT_SUPPORT_NOT_DEPLOYED; /* or also typecast and nillable */
+ }
+ }
+ break;
+ case 5:
+ /* FirstStartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
+ errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
+ if(errn == 0) {
+ if(eventCode == 0) {
+ errn = decodeNBitUnsignedInteger(stream, 7, &(uint32));
+ iso2DC_EVChargeParameterType->BulkSOC = (int8_t)(uint32 + 0);
+ iso2DC_EVChargeParameterType->BulkSOC_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({urn:iso:15118:2:2016:MsgDataTypes}BulkSOC) ? */
+ errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
+ if(eventCode == 0) {
+ grammarID = 3;
+ } else {
+ errn = EXI_DEVIANT_SUPPORT_NOT_DEPLOYED; /* or also typecast and nillable */
+ }
+ }
+ break;
+ case 6:
+ done = 1;
+ grammarID = 4;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 1954:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}EVMaximumEnergyRequest), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}EVMinimumEnergyRequest), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}CurrentSOC), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}TargetSOC), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}BulkSOC), END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 3, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ errn = decode_iso2PhysicalValueType(stream, &iso2DC_EVChargeParameterType->EVMaximumEnergyRequest);
+ iso2DC_EVChargeParameterType->EVMaximumEnergyRequest_isUsed = 1u;
+ grammarID = 1955;
+ break;
+ case 1:
+ errn = decode_iso2PhysicalValueType(stream, &iso2DC_EVChargeParameterType->EVMinimumEnergyRequest);
+ iso2DC_EVChargeParameterType->EVMinimumEnergyRequest_isUsed = 1u;
+ grammarID = 1956;
+ break;
+ case 2:
+ /* FirstStartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
+ errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
+ if(errn == 0) {
+ if(eventCode == 0) {
+ errn = decodeNBitUnsignedInteger(stream, 7, &(uint32));
+ iso2DC_EVChargeParameterType->CurrentSOC = (int8_t)(uint32 + 0);
+ iso2DC_EVChargeParameterType->CurrentSOC_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({urn:iso:15118:2:2016:MsgDataTypes}CurrentSOC) ? */
+ errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
+ if(eventCode == 0) {
+ grammarID = 1957;
+ } else {
+ errn = EXI_DEVIANT_SUPPORT_NOT_DEPLOYED; /* or also typecast and nillable */
+ }
+ }
+ break;
+ case 3:
+ /* FirstStartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
+ errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
+ if(errn == 0) {
+ if(eventCode == 0) {
+ errn = decodeNBitUnsignedInteger(stream, 7, &(uint32));
+ iso2DC_EVChargeParameterType->TargetSOC = (int8_t)(uint32 + 0);
+ iso2DC_EVChargeParameterType->TargetSOC_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({urn:iso:15118:2:2016:MsgDataTypes}TargetSOC) ? */
+ errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
+ if(eventCode == 0) {
+ grammarID = 1958;
+ } else {
+ errn = EXI_DEVIANT_SUPPORT_NOT_DEPLOYED; /* or also typecast and nillable */
+ }
+ }
+ break;
+ case 4:
+ /* FirstStartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
+ errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
+ if(errn == 0) {
+ if(eventCode == 0) {
+ errn = decodeNBitUnsignedInteger(stream, 7, &(uint32));
+ iso2DC_EVChargeParameterType->BulkSOC = (int8_t)(uint32 + 0);
+ iso2DC_EVChargeParameterType->BulkSOC_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({urn:iso:15118:2:2016:MsgDataTypes}BulkSOC) ? */
+ errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
+ if(eventCode == 0) {
+ grammarID = 3;
+ } else {
+ errn = EXI_DEVIANT_SUPPORT_NOT_DEPLOYED; /* or also typecast and nillable */
+ }
+ }
+ break;
+ case 5:
+ done = 1;
+ grammarID = 4;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 1955:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}EVMinimumEnergyRequest), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}CurrentSOC), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}TargetSOC), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}BulkSOC), END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 3, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ errn = decode_iso2PhysicalValueType(stream, &iso2DC_EVChargeParameterType->EVMinimumEnergyRequest);
+ iso2DC_EVChargeParameterType->EVMinimumEnergyRequest_isUsed = 1u;
+ grammarID = 1956;
+ break;
+ case 1:
+ /* FirstStartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
+ errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
+ if(errn == 0) {
+ if(eventCode == 0) {
+ errn = decodeNBitUnsignedInteger(stream, 7, &(uint32));
+ iso2DC_EVChargeParameterType->CurrentSOC = (int8_t)(uint32 + 0);
+ iso2DC_EVChargeParameterType->CurrentSOC_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({urn:iso:15118:2:2016:MsgDataTypes}CurrentSOC) ? */
+ errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
+ if(eventCode == 0) {
+ grammarID = 1957;
+ } else {
+ errn = EXI_DEVIANT_SUPPORT_NOT_DEPLOYED; /* or also typecast and nillable */
+ }
+ }
+ break;
+ case 2:
+ /* FirstStartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
+ errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
+ if(errn == 0) {
+ if(eventCode == 0) {
+ errn = decodeNBitUnsignedInteger(stream, 7, &(uint32));
+ iso2DC_EVChargeParameterType->TargetSOC = (int8_t)(uint32 + 0);
+ iso2DC_EVChargeParameterType->TargetSOC_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({urn:iso:15118:2:2016:MsgDataTypes}TargetSOC) ? */
+ errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
+ if(eventCode == 0) {
+ grammarID = 1958;
+ } else {
+ errn = EXI_DEVIANT_SUPPORT_NOT_DEPLOYED; /* or also typecast and nillable */
+ }
+ }
+ break;
+ case 3:
+ /* FirstStartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
+ errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
+ if(errn == 0) {
+ if(eventCode == 0) {
+ errn = decodeNBitUnsignedInteger(stream, 7, &(uint32));
+ iso2DC_EVChargeParameterType->BulkSOC = (int8_t)(uint32 + 0);
+ iso2DC_EVChargeParameterType->BulkSOC_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({urn:iso:15118:2:2016:MsgDataTypes}BulkSOC) ? */
+ errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
+ if(eventCode == 0) {
+ grammarID = 3;
+ } else {
+ errn = EXI_DEVIANT_SUPPORT_NOT_DEPLOYED; /* or also typecast and nillable */
+ }
+ }
+ break;
+ case 4:
+ done = 1;
+ grammarID = 4;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 1956:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}CurrentSOC), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}TargetSOC), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}BulkSOC), END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 3, &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, 7, &(uint32));
+ iso2DC_EVChargeParameterType->CurrentSOC = (int8_t)(uint32 + 0);
+ iso2DC_EVChargeParameterType->CurrentSOC_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({urn:iso:15118:2:2016:MsgDataTypes}CurrentSOC) ? */
+ errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
+ if(eventCode == 0) {
+ grammarID = 1957;
+ } else {
+ errn = EXI_DEVIANT_SUPPORT_NOT_DEPLOYED; /* or also typecast and nillable */
+ }
+ }
+ break;
+ case 1:
+ /* FirstStartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
+ errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
+ if(errn == 0) {
+ if(eventCode == 0) {
+ errn = decodeNBitUnsignedInteger(stream, 7, &(uint32));
+ iso2DC_EVChargeParameterType->TargetSOC = (int8_t)(uint32 + 0);
+ iso2DC_EVChargeParameterType->TargetSOC_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({urn:iso:15118:2:2016:MsgDataTypes}TargetSOC) ? */
+ errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
+ if(eventCode == 0) {
+ grammarID = 1958;
+ } else {
+ errn = EXI_DEVIANT_SUPPORT_NOT_DEPLOYED; /* or also typecast and nillable */
+ }
+ }
+ break;
+ case 2:
+ /* FirstStartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
+ errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
+ if(errn == 0) {
+ if(eventCode == 0) {
+ errn = decodeNBitUnsignedInteger(stream, 7, &(uint32));
+ iso2DC_EVChargeParameterType->BulkSOC = (int8_t)(uint32 + 0);
+ iso2DC_EVChargeParameterType->BulkSOC_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({urn:iso:15118:2:2016:MsgDataTypes}BulkSOC) ? */
+ errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
+ if(eventCode == 0) {
+ grammarID = 3;
+ } else {
+ errn = EXI_DEVIANT_SUPPORT_NOT_DEPLOYED; /* or also typecast and nillable */
+ }
+ }
+ break;
+ case 3:
+ done = 1;
+ grammarID = 4;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 1957:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}TargetSOC), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}BulkSOC), 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, 7, &(uint32));
+ iso2DC_EVChargeParameterType->TargetSOC = (int8_t)(uint32 + 0);
+ iso2DC_EVChargeParameterType->TargetSOC_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({urn:iso:15118:2:2016:MsgDataTypes}TargetSOC) ? */
+ errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
+ if(eventCode == 0) {
+ grammarID = 1958;
+ } else {
+ errn = EXI_DEVIANT_SUPPORT_NOT_DEPLOYED; /* or also typecast and nillable */
+ }
+ }
+ break;
+ case 1:
+ /* FirstStartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
+ errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
+ if(errn == 0) {
+ if(eventCode == 0) {
+ errn = decodeNBitUnsignedInteger(stream, 7, &(uint32));
+ iso2DC_EVChargeParameterType->BulkSOC = (int8_t)(uint32 + 0);
+ iso2DC_EVChargeParameterType->BulkSOC_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({urn:iso:15118:2:2016:MsgDataTypes}BulkSOC) ? */
+ errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
+ if(eventCode == 0) {
+ grammarID = 3;
+ } else {
+ errn = EXI_DEVIANT_SUPPORT_NOT_DEPLOYED; /* or also typecast and nillable */
+ }
+ }
+ break;
+ case 2:
+ done = 1;
+ grammarID = 4;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 1958:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}BulkSOC), 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, 7, &(uint32));
+ iso2DC_EVChargeParameterType->BulkSOC = (int8_t)(uint32 + 0);
+ iso2DC_EVChargeParameterType->BulkSOC_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({urn:iso:15118:2:2016:MsgDataTypes}BulkSOC) ? */
+ errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
+ if(eventCode == 0) {
+ grammarID = 3;
+ } else {
+ errn = EXI_DEVIANT_SUPPORT_NOT_DEPLOYED; /* or also typecast and nillable */
+ }
+ }
+ break;
+ case 1:
+ done = 1;
+ grammarID = 4;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 3:
+ /* Element[END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ done = 1;
+ grammarID = 4;
+ 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:2016:MsgBody,ServiceDetailReqType', base type name='BodyBaseType', content type='ELEMENT', isAbstract='false', hasTypeId='false', final='0', block='0', particle='("urn:iso:15118:2:2016:MsgBody":ServiceID)', derivedBy='EXTENSION'. */
+static int decode_iso2ServiceDetailReqType(bitstream_t* stream, struct iso2ServiceDetailReqType* iso2ServiceDetailReqType) {
+ int grammarID = 1959;
+ int done = 0;
+
+ init_iso2ServiceDetailReqType(iso2ServiceDetailReqType);
+
+ while(!done) {
+ switch(grammarID) {
+ case 1959:
+ /* FirstStartTag[START_ELEMENT({urn:iso:15118:2:2016:MsgBody}ServiceID)] */
+ errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ /* FirstStartTag[CHARACTERS[UNSIGNED_INTEGER]] */
+ errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
+ if(errn == 0) {
+ if(eventCode == 0) {
+ errn = decodeUnsignedInteger16(stream, &iso2ServiceDetailReqType->ServiceID);
+ } 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({urn:iso:15118:2:2016:MsgBody}ServiceID) ? */
+ errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
+ if(eventCode == 0) {
+ grammarID = 3;
+ } else {
+ errn = EXI_DEVIANT_SUPPORT_NOT_DEPLOYED; /* or also typecast and nillable */
+ }
+ }
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 3:
+ /* Element[END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ done = 1;
+ grammarID = 4;
+ 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:2016:MsgBody,PreChargeReqType', base type name='BodyBaseType', content type='ELEMENT', isAbstract='false', hasTypeId='false', final='0', block='0', particle='("urn:iso:15118:2:2016:MsgBody":EVTargetVoltage,"urn:iso:15118:2:2016:MsgBody":EVTargetCurrent)', derivedBy='EXTENSION'. */
+static int decode_iso2PreChargeReqType(bitstream_t* stream, struct iso2PreChargeReqType* iso2PreChargeReqType) {
+ int grammarID = 1960;
+ int done = 0;
+
+ init_iso2PreChargeReqType(iso2PreChargeReqType);
+
+ while(!done) {
+ switch(grammarID) {
+ case 1960:
+ /* FirstStartTag[START_ELEMENT({urn:iso:15118:2:2016:MsgBody}EVTargetVoltage)] */
+ errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ errn = decode_iso2PhysicalValueType(stream, &iso2PreChargeReqType->EVTargetVoltage);
+ grammarID = 1961;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 1961:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgBody}EVTargetCurrent)] */
+ errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ errn = decode_iso2PhysicalValueType(stream, &iso2PreChargeReqType->EVTargetCurrent);
+ grammarID = 3;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 3:
+ /* Element[END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ done = 1;
+ grammarID = 4;
+ 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='http://www.w3.org/2000/09/xmldsig#,ManifestType', base type name='anyType', content type='ELEMENT', isAbstract='false', hasTypeId='false', final='0', block='0', particle='("http://www.w3.org/2000/09/xmldsig#":Reference{1-UNBOUNDED})', derivedBy='RESTRICTION'. */
+static int decode_iso2ManifestType(bitstream_t* stream, struct iso2ManifestType* iso2ManifestType) {
+ int grammarID = 1962;
+ int done = 0;
+
+ init_iso2ManifestType(iso2ManifestType);
+
+ while(!done) {
+ switch(grammarID) {
+ case 1962:
+ /* FirstStartTag[ATTRIBUTE[STRING](Id), START_ELEMENT({http://www.w3.org/2000/09/xmldsig#}Reference)] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ errn = decodeUnsignedInteger16(stream, &iso2ManifestType->Id.charactersLen);
+ if (errn == 0) {
+ if (iso2ManifestType->Id.charactersLen >= 2) {
+ iso2ManifestType->Id.charactersLen = (uint16_t)(iso2ManifestType->Id.charactersLen - 2); /* string table miss */
+ errn = decodeCharacters(stream, iso2ManifestType->Id.charactersLen, iso2ManifestType->Id.characters, iso2ManifestType_Id_CHARACTERS_SIZE);
+ } else {
+ /* string table hit */
+ errn = EXI_ERROR_STRINGVALUES_NOT_SUPPORTED;
+ }
+ }
+ iso2ManifestType->Id_isUsed = 1u;
+ grammarID = 1963;
+ break;
+ case 1:
+ if (iso2ManifestType->Reference.arrayLen < iso2ManifestType_Reference_ARRAY_SIZE) {
+ errn = decode_iso2ReferenceType(stream, &iso2ManifestType->Reference.array[iso2ManifestType->Reference.arrayLen++]);
+ } else {
+ errn = EXI_ERROR_OUT_OF_BOUNDS;
+ }
+ grammarID = 1964;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 1963:
+ /* StartTag[START_ELEMENT({http://www.w3.org/2000/09/xmldsig#}Reference)] */
+ errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ if (iso2ManifestType->Reference.arrayLen < iso2ManifestType_Reference_ARRAY_SIZE) {
+ errn = decode_iso2ReferenceType(stream, &iso2ManifestType->Reference.array[iso2ManifestType->Reference.arrayLen++]);
+ } else {
+ errn = EXI_ERROR_OUT_OF_BOUNDS;
+ }
+ grammarID = 1964;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 1964:
+ /* Element[START_ELEMENT({http://www.w3.org/2000/09/xmldsig#}Reference), END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ if (iso2ManifestType->Reference.arrayLen < iso2ManifestType_Reference_ARRAY_SIZE) {
+ errn = decode_iso2ReferenceType(stream, &iso2ManifestType->Reference.array[iso2ManifestType->Reference.arrayLen++]);
+ } else {
+ errn = EXI_ERROR_OUT_OF_BOUNDS;
+ }
+ grammarID = 1964;
+ break;
+ case 1:
+ done = 1;
+ grammarID = 4;
+ 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:2016:MsgDef,#AnonType_V2G_Message', base type name='anyType', content type='ELEMENT', isAbstract='false', hasTypeId='false', final='0', block='0', particle='("urn:iso:15118:2:2016:MsgDef":Header,"urn:iso:15118:2:2016:MsgDef":Body)', derivedBy='RESTRICTION'. */
+static int decode_iso2AnonType_V2G_Message(bitstream_t* stream, struct iso2AnonType_V2G_Message* iso2AnonType_V2G_Message) {
+ int grammarID = 1965;
+ int done = 0;
+
+ init_iso2AnonType_V2G_Message(iso2AnonType_V2G_Message);
+
+ while(!done) {
+ switch(grammarID) {
+ case 1965:
+ /* FirstStartTag[START_ELEMENT({urn:iso:15118:2:2016:MsgDef}Header)] */
+ errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ errn = decode_iso2MessageHeaderType(stream, &iso2AnonType_V2G_Message->Header);
+ grammarID = 1966;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 1966:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDef}Body)] */
+ errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ errn = decode_iso2BodyType(stream, &iso2AnonType_V2G_Message->Body);
+ grammarID = 3;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 3:
+ /* Element[END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ done = 1;
+ grammarID = 4;
+ 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:2016:MsgDataTypes,SelectedServiceListType', base type name='anyType', content type='ELEMENT', isAbstract='false', hasTypeId='false', final='0', block='0', particle='("urn:iso:15118:2:2016:MsgDataTypes":SelectedService{1-16})', derivedBy='RESTRICTION'. */
+static int decode_iso2SelectedServiceListType(bitstream_t* stream, struct iso2SelectedServiceListType* iso2SelectedServiceListType) {
+ int grammarID = 1967;
+ int done = 0;
+
+ init_iso2SelectedServiceListType(iso2SelectedServiceListType);
+
+ while(!done) {
+ switch(grammarID) {
+ case 1967:
+ /* FirstStartTag[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SelectedService)] */
+ errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ if (iso2SelectedServiceListType->SelectedService.arrayLen < iso2SelectedServiceListType_SelectedService_ARRAY_SIZE) {
+ errn = decode_iso2SelectedServiceType(stream, &iso2SelectedServiceListType->SelectedService.array[iso2SelectedServiceListType->SelectedService.arrayLen++]);
+ } else {
+ errn = EXI_ERROR_OUT_OF_BOUNDS;
+ }
+ grammarID = 1968;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 1968:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SelectedService), END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ if (iso2SelectedServiceListType->SelectedService.arrayLen < iso2SelectedServiceListType_SelectedService_ARRAY_SIZE) {
+ errn = decode_iso2SelectedServiceType(stream, &iso2SelectedServiceListType->SelectedService.array[iso2SelectedServiceListType->SelectedService.arrayLen++]);
+ } else {
+ errn = EXI_ERROR_OUT_OF_BOUNDS;
+ }
+ grammarID = 1969;
+ break;
+ case 1:
+ done = 1;
+ grammarID = 4;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 1969:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SelectedService), END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ if (iso2SelectedServiceListType->SelectedService.arrayLen < iso2SelectedServiceListType_SelectedService_ARRAY_SIZE) {
+ errn = decode_iso2SelectedServiceType(stream, &iso2SelectedServiceListType->SelectedService.array[iso2SelectedServiceListType->SelectedService.arrayLen++]);
+ } else {
+ errn = EXI_ERROR_OUT_OF_BOUNDS;
+ }
+ grammarID = 1970;
+ break;
+ case 1:
+ done = 1;
+ grammarID = 4;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 1970:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SelectedService), END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ if (iso2SelectedServiceListType->SelectedService.arrayLen < iso2SelectedServiceListType_SelectedService_ARRAY_SIZE) {
+ errn = decode_iso2SelectedServiceType(stream, &iso2SelectedServiceListType->SelectedService.array[iso2SelectedServiceListType->SelectedService.arrayLen++]);
+ } else {
+ errn = EXI_ERROR_OUT_OF_BOUNDS;
+ }
+ grammarID = 1971;
+ break;
+ case 1:
+ done = 1;
+ grammarID = 4;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 1971:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SelectedService), END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ if (iso2SelectedServiceListType->SelectedService.arrayLen < iso2SelectedServiceListType_SelectedService_ARRAY_SIZE) {
+ errn = decode_iso2SelectedServiceType(stream, &iso2SelectedServiceListType->SelectedService.array[iso2SelectedServiceListType->SelectedService.arrayLen++]);
+ } else {
+ errn = EXI_ERROR_OUT_OF_BOUNDS;
+ }
+ grammarID = 1972;
+ break;
+ case 1:
+ done = 1;
+ grammarID = 4;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 1972:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SelectedService), END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ if (iso2SelectedServiceListType->SelectedService.arrayLen < iso2SelectedServiceListType_SelectedService_ARRAY_SIZE) {
+ errn = decode_iso2SelectedServiceType(stream, &iso2SelectedServiceListType->SelectedService.array[iso2SelectedServiceListType->SelectedService.arrayLen++]);
+ } else {
+ errn = EXI_ERROR_OUT_OF_BOUNDS;
+ }
+ grammarID = 1973;
+ break;
+ case 1:
+ done = 1;
+ grammarID = 4;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 1973:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SelectedService), END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ if (iso2SelectedServiceListType->SelectedService.arrayLen < iso2SelectedServiceListType_SelectedService_ARRAY_SIZE) {
+ errn = decode_iso2SelectedServiceType(stream, &iso2SelectedServiceListType->SelectedService.array[iso2SelectedServiceListType->SelectedService.arrayLen++]);
+ } else {
+ errn = EXI_ERROR_OUT_OF_BOUNDS;
+ }
+ grammarID = 1974;
+ break;
+ case 1:
+ done = 1;
+ grammarID = 4;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 1974:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SelectedService), END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ if (iso2SelectedServiceListType->SelectedService.arrayLen < iso2SelectedServiceListType_SelectedService_ARRAY_SIZE) {
+ errn = decode_iso2SelectedServiceType(stream, &iso2SelectedServiceListType->SelectedService.array[iso2SelectedServiceListType->SelectedService.arrayLen++]);
+ } else {
+ errn = EXI_ERROR_OUT_OF_BOUNDS;
+ }
+ grammarID = 1975;
+ break;
+ case 1:
+ done = 1;
+ grammarID = 4;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 1975:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SelectedService), END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ if (iso2SelectedServiceListType->SelectedService.arrayLen < iso2SelectedServiceListType_SelectedService_ARRAY_SIZE) {
+ errn = decode_iso2SelectedServiceType(stream, &iso2SelectedServiceListType->SelectedService.array[iso2SelectedServiceListType->SelectedService.arrayLen++]);
+ } else {
+ errn = EXI_ERROR_OUT_OF_BOUNDS;
+ }
+ grammarID = 1976;
+ break;
+ case 1:
+ done = 1;
+ grammarID = 4;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 1976:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SelectedService), END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ if (iso2SelectedServiceListType->SelectedService.arrayLen < iso2SelectedServiceListType_SelectedService_ARRAY_SIZE) {
+ errn = decode_iso2SelectedServiceType(stream, &iso2SelectedServiceListType->SelectedService.array[iso2SelectedServiceListType->SelectedService.arrayLen++]);
+ } else {
+ errn = EXI_ERROR_OUT_OF_BOUNDS;
+ }
+ grammarID = 1977;
+ break;
+ case 1:
+ done = 1;
+ grammarID = 4;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 1977:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SelectedService), END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ if (iso2SelectedServiceListType->SelectedService.arrayLen < iso2SelectedServiceListType_SelectedService_ARRAY_SIZE) {
+ errn = decode_iso2SelectedServiceType(stream, &iso2SelectedServiceListType->SelectedService.array[iso2SelectedServiceListType->SelectedService.arrayLen++]);
+ } else {
+ errn = EXI_ERROR_OUT_OF_BOUNDS;
+ }
+ grammarID = 1978;
+ break;
+ case 1:
+ done = 1;
+ grammarID = 4;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 1978:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SelectedService), END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ if (iso2SelectedServiceListType->SelectedService.arrayLen < iso2SelectedServiceListType_SelectedService_ARRAY_SIZE) {
+ errn = decode_iso2SelectedServiceType(stream, &iso2SelectedServiceListType->SelectedService.array[iso2SelectedServiceListType->SelectedService.arrayLen++]);
+ } else {
+ errn = EXI_ERROR_OUT_OF_BOUNDS;
+ }
+ grammarID = 1979;
+ break;
+ case 1:
+ done = 1;
+ grammarID = 4;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 1979:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SelectedService), END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ if (iso2SelectedServiceListType->SelectedService.arrayLen < iso2SelectedServiceListType_SelectedService_ARRAY_SIZE) {
+ errn = decode_iso2SelectedServiceType(stream, &iso2SelectedServiceListType->SelectedService.array[iso2SelectedServiceListType->SelectedService.arrayLen++]);
+ } else {
+ errn = EXI_ERROR_OUT_OF_BOUNDS;
+ }
+ grammarID = 1980;
+ break;
+ case 1:
+ done = 1;
+ grammarID = 4;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 1980:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SelectedService), END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ if (iso2SelectedServiceListType->SelectedService.arrayLen < iso2SelectedServiceListType_SelectedService_ARRAY_SIZE) {
+ errn = decode_iso2SelectedServiceType(stream, &iso2SelectedServiceListType->SelectedService.array[iso2SelectedServiceListType->SelectedService.arrayLen++]);
+ } else {
+ errn = EXI_ERROR_OUT_OF_BOUNDS;
+ }
+ grammarID = 1981;
+ break;
+ case 1:
+ done = 1;
+ grammarID = 4;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 1981:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SelectedService), END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ if (iso2SelectedServiceListType->SelectedService.arrayLen < iso2SelectedServiceListType_SelectedService_ARRAY_SIZE) {
+ errn = decode_iso2SelectedServiceType(stream, &iso2SelectedServiceListType->SelectedService.array[iso2SelectedServiceListType->SelectedService.arrayLen++]);
+ } else {
+ errn = EXI_ERROR_OUT_OF_BOUNDS;
+ }
+ grammarID = 1982;
+ break;
+ case 1:
+ done = 1;
+ grammarID = 4;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 1982:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SelectedService), END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ if (iso2SelectedServiceListType->SelectedService.arrayLen < iso2SelectedServiceListType_SelectedService_ARRAY_SIZE) {
+ errn = decode_iso2SelectedServiceType(stream, &iso2SelectedServiceListType->SelectedService.array[iso2SelectedServiceListType->SelectedService.arrayLen++]);
+ } else {
+ errn = EXI_ERROR_OUT_OF_BOUNDS;
+ }
+ grammarID = 3;
+ break;
+ case 1:
+ done = 1;
+ grammarID = 4;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 3:
+ /* Element[END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ done = 1;
+ grammarID = 4;
+ 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:2016:MsgDataTypes,Generic_EVSEFinePositioningParametersType', base type name='EVSEFinePositioningParametersType', content type='ELEMENT', isAbstract='false', hasTypeId='false', final='0', block='0', particle='("urn:iso:15118:2:2016:MsgDataTypes":GenericParameters)', derivedBy='EXTENSION'. */
+static int decode_iso2Generic_EVSEFinePositioningParametersType(bitstream_t* stream, struct iso2Generic_EVSEFinePositioningParametersType* iso2Generic_EVSEFinePositioningParametersType) {
+ int grammarID = 1880;
+ int done = 0;
+
+ init_iso2Generic_EVSEFinePositioningParametersType(iso2Generic_EVSEFinePositioningParametersType);
+
+ while(!done) {
+ switch(grammarID) {
+ case 1880:
+ /* FirstStartTag[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}GenericParameters)] */
+ errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ errn = decode_iso2ParameterSetType(stream, &iso2Generic_EVSEFinePositioningParametersType->GenericParameters);
+ grammarID = 3;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 3:
+ /* Element[END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ done = 1;
+ grammarID = 4;
+ 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:2016:MsgDataTypes,CartesianCoordinatesType', base type name='anyType', content type='ELEMENT', isAbstract='false', hasTypeId='false', final='0', block='0', particle='("urn:iso:15118:2:2016:MsgDataTypes":XCoordinate,"urn:iso:15118:2:2016:MsgDataTypes":YCoordinate,"urn:iso:15118:2:2016:MsgDataTypes":ZCoordinate)', derivedBy='RESTRICTION'. */
+static int decode_iso2CartesianCoordinatesType(bitstream_t* stream, struct iso2CartesianCoordinatesType* iso2CartesianCoordinatesType) {
+ int grammarID = 1983;
+ int done = 0;
+
+ init_iso2CartesianCoordinatesType(iso2CartesianCoordinatesType);
+
+ while(!done) {
+ switch(grammarID) {
+ case 1983:
+ /* FirstStartTag[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}XCoordinate)] */
+ errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ /* First(xsi:type)StartTag[CHARACTERS[INTEGER]] */
+ errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
+ if(errn == 0) {
+ if(eventCode == 0) {
+ errn = decodeInteger16(stream, &iso2CartesianCoordinatesType->XCoordinate);
+ } 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({urn:iso:15118:2:2016:MsgDataTypes}XCoordinate) ? */
+ errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
+ if(eventCode == 0) {
+ grammarID = 1984;
+ } else {
+ errn = EXI_DEVIANT_SUPPORT_NOT_DEPLOYED; /* or also typecast and nillable */
+ }
+ }
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 1984:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}YCoordinate)] */
+ errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ /* First(xsi:type)StartTag[CHARACTERS[INTEGER]] */
+ errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
+ if(errn == 0) {
+ if(eventCode == 0) {
+ errn = decodeInteger16(stream, &iso2CartesianCoordinatesType->YCoordinate);
+ } 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({urn:iso:15118:2:2016:MsgDataTypes}YCoordinate) ? */
+ errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
+ if(eventCode == 0) {
+ grammarID = 1985;
+ } else {
+ errn = EXI_DEVIANT_SUPPORT_NOT_DEPLOYED; /* or also typecast and nillable */
+ }
+ }
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 1985:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}ZCoordinate)] */
+ errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ /* First(xsi:type)StartTag[CHARACTERS[INTEGER]] */
+ errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
+ if(errn == 0) {
+ if(eventCode == 0) {
+ errn = decodeInteger16(stream, &iso2CartesianCoordinatesType->ZCoordinate);
+ } 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({urn:iso:15118:2:2016:MsgDataTypes}ZCoordinate) ? */
+ errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
+ if(eventCode == 0) {
+ grammarID = 3;
+ } else {
+ errn = EXI_DEVIANT_SUPPORT_NOT_DEPLOYED; /* or also typecast and nillable */
+ }
+ }
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 3:
+ /* Element[END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ done = 1;
+ grammarID = 4;
+ 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='http://www.w3.org/2000/09/xmldsig#,KeyInfoType', base type name='anyType', content type='MIXED', isAbstract='false', hasTypeId='false', final='0', block='0', particle='("http://www.w3.org/2000/09/xmldsig#":KeyName|"http://www.w3.org/2000/09/xmldsig#":KeyValue|"http://www.w3.org/2000/09/xmldsig#":RetrievalMethod|"http://www.w3.org/2000/09/xmldsig#":X509Data|"http://www.w3.org/2000/09/xmldsig#":PGPData|"http://www.w3.org/2000/09/xmldsig#":SPKIData|"http://www.w3.org/2000/09/xmldsig#":MgmtData|(WC[##other:"http://www.w3.org/2000/09/xmldsig#"])){1-UNBOUNDED}', derivedBy='RESTRICTION'. */
+static int decode_iso2KeyInfoType(bitstream_t* stream, struct iso2KeyInfoType* iso2KeyInfoType) {
+ int grammarID = 1986;
+ int done = 0;
+
+ init_iso2KeyInfoType(iso2KeyInfoType);
+
+ while(!done) {
+ switch(grammarID) {
+ case 1986:
+ /* FirstStartTag[ATTRIBUTE[STRING](Id), START_ELEMENT({http://www.w3.org/2000/09/xmldsig#}KeyName), START_ELEMENT({http://www.w3.org/2000/09/xmldsig#}KeyValue), START_ELEMENT({http://www.w3.org/2000/09/xmldsig#}RetrievalMethod), START_ELEMENT({http://www.w3.org/2000/09/xmldsig#}X509Data), START_ELEMENT({http://www.w3.org/2000/09/xmldsig#}PGPData), START_ELEMENT({http://www.w3.org/2000/09/xmldsig#}SPKIData), START_ELEMENT({http://www.w3.org/2000/09/xmldsig#}MgmtData), START_ELEMENT_GENERIC, CHARACTERS_GENERIC[STRING]] */
+ errn = decodeNBitUnsignedInteger(stream, 4, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ errn = decodeUnsignedInteger16(stream, &iso2KeyInfoType->Id.charactersLen);
+ if (errn == 0) {
+ if (iso2KeyInfoType->Id.charactersLen >= 2) {
+ iso2KeyInfoType->Id.charactersLen = (uint16_t)(iso2KeyInfoType->Id.charactersLen - 2); /* string table miss */
+ errn = decodeCharacters(stream, iso2KeyInfoType->Id.charactersLen, iso2KeyInfoType->Id.characters, iso2KeyInfoType_Id_CHARACTERS_SIZE);
+ } else {
+ /* string table hit */
+ errn = EXI_ERROR_STRINGVALUES_NOT_SUPPORTED;
+ }
+ }
+ iso2KeyInfoType->Id_isUsed = 1u;
+ grammarID = 1987;
+ break;
+ case 1:
+ if (iso2KeyInfoType->KeyName.arrayLen < iso2KeyInfoType_KeyName_ARRAY_SIZE) {
+ /* First(xsi:type)StartTag[CHARACTERS[STRING]] */
+ errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
+ if(errn == 0) {
+ if(eventCode == 0) {
+ errn = decodeUnsignedInteger16(stream, &iso2KeyInfoType->KeyName.array[iso2KeyInfoType->KeyName.arrayLen].charactersLen);
+ if (errn == 0) {
+ if (iso2KeyInfoType->KeyName.array[iso2KeyInfoType->KeyName.arrayLen].charactersLen >= 2) {
+ iso2KeyInfoType->KeyName.array[iso2KeyInfoType->KeyName.arrayLen].charactersLen = (uint16_t)(iso2KeyInfoType->KeyName.array[iso2KeyInfoType->KeyName.arrayLen].charactersLen - 2); /* string table miss */
+ errn = decodeCharacters(stream, iso2KeyInfoType->KeyName.array[iso2KeyInfoType->KeyName.arrayLen].charactersLen, iso2KeyInfoType->KeyName.array[iso2KeyInfoType->KeyName.arrayLen].characters, iso2KeyInfoType_KeyName_CHARACTERS_SIZE);
+ } else {
+ /* string table hit */
+ errn = EXI_ERROR_STRINGVALUES_NOT_SUPPORTED;
+ }
+ }
+ iso2KeyInfoType->KeyName.arrayLen++;
+ } else {
+ /* Second level event (e.g., xsi:type, xsi:nil, ...) */
+ errn = EXI_UNSUPPORTED_EVENT_CODE_CHARACTERISTICS;
+ }
+ }
+ } else {
+ errn = EXI_ERROR_OUT_OF_BOUNDS;
+ }
+ if(errn == 0) {
+ /* valid EE for simple element START_ELEMENT({http://www.w3.org/2000/09/xmldsig#}KeyName) ? */
+ errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
+ if(eventCode == 0) {
+ grammarID = 1988;
+ } else {
+ errn = EXI_DEVIANT_SUPPORT_NOT_DEPLOYED; /* or also typecast and nillable */
+ }
+ }
+ break;
+ case 2:
+ if (iso2KeyInfoType->KeyValue.arrayLen < iso2KeyInfoType_KeyValue_ARRAY_SIZE) {
+ errn = decode_iso2KeyValueType(stream, &iso2KeyInfoType->KeyValue.array[iso2KeyInfoType->KeyValue.arrayLen++]);
+ } else {
+ errn = EXI_ERROR_OUT_OF_BOUNDS;
+ }
+ grammarID = 1988;
+ break;
+ case 3:
+ if (iso2KeyInfoType->RetrievalMethod.arrayLen < iso2KeyInfoType_RetrievalMethod_ARRAY_SIZE) {
+ errn = decode_iso2RetrievalMethodType(stream, &iso2KeyInfoType->RetrievalMethod.array[iso2KeyInfoType->RetrievalMethod.arrayLen++]);
+ } else {
+ errn = EXI_ERROR_OUT_OF_BOUNDS;
+ }
+ grammarID = 1988;
+ break;
+ case 4:
+ if (iso2KeyInfoType->X509Data.arrayLen < iso2KeyInfoType_X509Data_ARRAY_SIZE) {
+ errn = decode_iso2X509DataType(stream, &iso2KeyInfoType->X509Data.array[iso2KeyInfoType->X509Data.arrayLen++]);
+ } else {
+ errn = EXI_ERROR_OUT_OF_BOUNDS;
+ }
+ grammarID = 1988;
+ break;
+ case 5:
+ if (iso2KeyInfoType->PGPData.arrayLen < iso2KeyInfoType_PGPData_ARRAY_SIZE) {
+ errn = decode_iso2PGPDataType(stream, &iso2KeyInfoType->PGPData.array[iso2KeyInfoType->PGPData.arrayLen++]);
+ } else {
+ errn = EXI_ERROR_OUT_OF_BOUNDS;
+ }
+ grammarID = 1988;
+ break;
+ case 6:
+ if (iso2KeyInfoType->SPKIData.arrayLen < iso2KeyInfoType_SPKIData_ARRAY_SIZE) {
+ errn = decode_iso2SPKIDataType(stream, &iso2KeyInfoType->SPKIData.array[iso2KeyInfoType->SPKIData.arrayLen++]);
+ } else {
+ errn = EXI_ERROR_OUT_OF_BOUNDS;
+ }
+ grammarID = 1988;
+ break;
+ case 7:
+ if (iso2KeyInfoType->MgmtData.arrayLen < iso2KeyInfoType_MgmtData_ARRAY_SIZE) {
+ /* First(xsi:type)StartTag[CHARACTERS[STRING]] */
+ errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
+ if(errn == 0) {
+ if(eventCode == 0) {
+ errn = decodeUnsignedInteger16(stream, &iso2KeyInfoType->MgmtData.array[iso2KeyInfoType->MgmtData.arrayLen].charactersLen);
+ if (errn == 0) {
+ if (iso2KeyInfoType->MgmtData.array[iso2KeyInfoType->MgmtData.arrayLen].charactersLen >= 2) {
+ iso2KeyInfoType->MgmtData.array[iso2KeyInfoType->MgmtData.arrayLen].charactersLen = (uint16_t)(iso2KeyInfoType->MgmtData.array[iso2KeyInfoType->MgmtData.arrayLen].charactersLen - 2); /* string table miss */
+ errn = decodeCharacters(stream, iso2KeyInfoType->MgmtData.array[iso2KeyInfoType->MgmtData.arrayLen].charactersLen, iso2KeyInfoType->MgmtData.array[iso2KeyInfoType->MgmtData.arrayLen].characters, iso2KeyInfoType_MgmtData_CHARACTERS_SIZE);
+ } else {
+ /* string table hit */
+ errn = EXI_ERROR_STRINGVALUES_NOT_SUPPORTED;
+ }
+ }
+ iso2KeyInfoType->MgmtData.arrayLen++;
+ } else {
+ /* Second level event (e.g., xsi:type, xsi:nil, ...) */
+ errn = EXI_UNSUPPORTED_EVENT_CODE_CHARACTERISTICS;
+ }
+ }
+ } else {
+ errn = EXI_ERROR_OUT_OF_BOUNDS;
+ }
+ if(errn == 0) {
+ /* valid EE for simple element START_ELEMENT({http://www.w3.org/2000/09/xmldsig#}MgmtData) ? */
+ errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
+ if(eventCode == 0) {
+ grammarID = 1988;
+ } else {
+ errn = EXI_DEVIANT_SUPPORT_NOT_DEPLOYED; /* or also typecast and nillable */
+ }
+ }
+ break;
+ case 8:
+ errn = EXI_UNSUPPORTED_EVENT_CODE_CHARACTERISTICS;
+ /* TODO unsupported event : START_ELEMENT_GENERIC */
+ grammarID = 1988;
+ break;
+ case 9:
+ errn = decodeUnsignedInteger16(stream, &iso2KeyInfoType->ANY.charactersLen);
+ if (errn == 0) {
+ if (iso2KeyInfoType->ANY.charactersLen >= 2) {
+ iso2KeyInfoType->ANY.charactersLen = (uint16_t)(iso2KeyInfoType->ANY.charactersLen - 2); /* string table miss */
+ errn = decodeCharacters(stream, iso2KeyInfoType->ANY.charactersLen, iso2KeyInfoType->ANY.characters, iso2KeyInfoType_ANY_CHARACTERS_SIZE);
+ } else {
+ /* string table hit */
+ errn = EXI_ERROR_STRINGVALUES_NOT_SUPPORTED;
+ }
+ }
+ iso2KeyInfoType->ANY_isUsed = 1u;
+ grammarID = 1989;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 1987:
+ /* StartTag[START_ELEMENT({http://www.w3.org/2000/09/xmldsig#}KeyName), START_ELEMENT({http://www.w3.org/2000/09/xmldsig#}KeyValue), START_ELEMENT({http://www.w3.org/2000/09/xmldsig#}RetrievalMethod), START_ELEMENT({http://www.w3.org/2000/09/xmldsig#}X509Data), START_ELEMENT({http://www.w3.org/2000/09/xmldsig#}PGPData), START_ELEMENT({http://www.w3.org/2000/09/xmldsig#}SPKIData), START_ELEMENT({http://www.w3.org/2000/09/xmldsig#}MgmtData), START_ELEMENT_GENERIC, CHARACTERS_GENERIC[STRING]] */
+ errn = decodeNBitUnsignedInteger(stream, 4, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ if (iso2KeyInfoType->KeyName.arrayLen < iso2KeyInfoType_KeyName_ARRAY_SIZE) {
+ /* First(xsi:type)StartTag[CHARACTERS[STRING]] */
+ errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
+ if(errn == 0) {
+ if(eventCode == 0) {
+ errn = decodeUnsignedInteger16(stream, &iso2KeyInfoType->KeyName.array[iso2KeyInfoType->KeyName.arrayLen].charactersLen);
+ if (errn == 0) {
+ if (iso2KeyInfoType->KeyName.array[iso2KeyInfoType->KeyName.arrayLen].charactersLen >= 2) {
+ iso2KeyInfoType->KeyName.array[iso2KeyInfoType->KeyName.arrayLen].charactersLen = (uint16_t)(iso2KeyInfoType->KeyName.array[iso2KeyInfoType->KeyName.arrayLen].charactersLen - 2); /* string table miss */
+ errn = decodeCharacters(stream, iso2KeyInfoType->KeyName.array[iso2KeyInfoType->KeyName.arrayLen].charactersLen, iso2KeyInfoType->KeyName.array[iso2KeyInfoType->KeyName.arrayLen].characters, iso2KeyInfoType_KeyName_CHARACTERS_SIZE);
+ } else {
+ /* string table hit */
+ errn = EXI_ERROR_STRINGVALUES_NOT_SUPPORTED;
+ }
+ }
+ iso2KeyInfoType->KeyName.arrayLen++;
+ } else {
+ /* Second level event (e.g., xsi:type, xsi:nil, ...) */
+ errn = EXI_UNSUPPORTED_EVENT_CODE_CHARACTERISTICS;
+ }
+ }
+ } else {
+ errn = EXI_ERROR_OUT_OF_BOUNDS;
+ }
+ if(errn == 0) {
+ /* valid EE for simple element START_ELEMENT({http://www.w3.org/2000/09/xmldsig#}KeyName) ? */
+ errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
+ if(eventCode == 0) {
+ grammarID = 1988;
+ } else {
+ errn = EXI_DEVIANT_SUPPORT_NOT_DEPLOYED; /* or also typecast and nillable */
+ }
+ }
+ break;
+ case 1:
+ if (iso2KeyInfoType->KeyValue.arrayLen < iso2KeyInfoType_KeyValue_ARRAY_SIZE) {
+ errn = decode_iso2KeyValueType(stream, &iso2KeyInfoType->KeyValue.array[iso2KeyInfoType->KeyValue.arrayLen++]);
+ } else {
+ errn = EXI_ERROR_OUT_OF_BOUNDS;
+ }
+ grammarID = 1988;
+ break;
+ case 2:
+ if (iso2KeyInfoType->RetrievalMethod.arrayLen < iso2KeyInfoType_RetrievalMethod_ARRAY_SIZE) {
+ errn = decode_iso2RetrievalMethodType(stream, &iso2KeyInfoType->RetrievalMethod.array[iso2KeyInfoType->RetrievalMethod.arrayLen++]);
+ } else {
+ errn = EXI_ERROR_OUT_OF_BOUNDS;
+ }
+ grammarID = 1988;
+ break;
+ case 3:
+ if (iso2KeyInfoType->X509Data.arrayLen < iso2KeyInfoType_X509Data_ARRAY_SIZE) {
+ errn = decode_iso2X509DataType(stream, &iso2KeyInfoType->X509Data.array[iso2KeyInfoType->X509Data.arrayLen++]);
+ } else {
+ errn = EXI_ERROR_OUT_OF_BOUNDS;
+ }
+ grammarID = 1988;
+ break;
+ case 4:
+ if (iso2KeyInfoType->PGPData.arrayLen < iso2KeyInfoType_PGPData_ARRAY_SIZE) {
+ errn = decode_iso2PGPDataType(stream, &iso2KeyInfoType->PGPData.array[iso2KeyInfoType->PGPData.arrayLen++]);
+ } else {
+ errn = EXI_ERROR_OUT_OF_BOUNDS;
+ }
+ grammarID = 1988;
+ break;
+ case 5:
+ if (iso2KeyInfoType->SPKIData.arrayLen < iso2KeyInfoType_SPKIData_ARRAY_SIZE) {
+ errn = decode_iso2SPKIDataType(stream, &iso2KeyInfoType->SPKIData.array[iso2KeyInfoType->SPKIData.arrayLen++]);
+ } else {
+ errn = EXI_ERROR_OUT_OF_BOUNDS;
+ }
+ grammarID = 1988;
+ break;
+ case 6:
+ if (iso2KeyInfoType->MgmtData.arrayLen < iso2KeyInfoType_MgmtData_ARRAY_SIZE) {
+ /* First(xsi:type)StartTag[CHARACTERS[STRING]] */
+ errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
+ if(errn == 0) {
+ if(eventCode == 0) {
+ errn = decodeUnsignedInteger16(stream, &iso2KeyInfoType->MgmtData.array[iso2KeyInfoType->MgmtData.arrayLen].charactersLen);
+ if (errn == 0) {
+ if (iso2KeyInfoType->MgmtData.array[iso2KeyInfoType->MgmtData.arrayLen].charactersLen >= 2) {
+ iso2KeyInfoType->MgmtData.array[iso2KeyInfoType->MgmtData.arrayLen].charactersLen = (uint16_t)(iso2KeyInfoType->MgmtData.array[iso2KeyInfoType->MgmtData.arrayLen].charactersLen - 2); /* string table miss */
+ errn = decodeCharacters(stream, iso2KeyInfoType->MgmtData.array[iso2KeyInfoType->MgmtData.arrayLen].charactersLen, iso2KeyInfoType->MgmtData.array[iso2KeyInfoType->MgmtData.arrayLen].characters, iso2KeyInfoType_MgmtData_CHARACTERS_SIZE);
+ } else {
+ /* string table hit */
+ errn = EXI_ERROR_STRINGVALUES_NOT_SUPPORTED;
+ }
+ }
+ iso2KeyInfoType->MgmtData.arrayLen++;
+ } else {
+ /* Second level event (e.g., xsi:type, xsi:nil, ...) */
+ errn = EXI_UNSUPPORTED_EVENT_CODE_CHARACTERISTICS;
+ }
+ }
+ } else {
+ errn = EXI_ERROR_OUT_OF_BOUNDS;
+ }
+ if(errn == 0) {
+ /* valid EE for simple element START_ELEMENT({http://www.w3.org/2000/09/xmldsig#}MgmtData) ? */
+ errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
+ if(eventCode == 0) {
+ grammarID = 1988;
+ } else {
+ errn = EXI_DEVIANT_SUPPORT_NOT_DEPLOYED; /* or also typecast and nillable */
+ }
+ }
+ break;
+ case 7:
+ errn = EXI_UNSUPPORTED_EVENT_CODE_CHARACTERISTICS;
+ /* TODO unsupported event : START_ELEMENT_GENERIC */
+ grammarID = 1988;
+ break;
+ case 8:
+ errn = decodeUnsignedInteger16(stream, &iso2KeyInfoType->ANY.charactersLen);
+ if (errn == 0) {
+ if (iso2KeyInfoType->ANY.charactersLen >= 2) {
+ iso2KeyInfoType->ANY.charactersLen = (uint16_t)(iso2KeyInfoType->ANY.charactersLen - 2); /* string table miss */
+ errn = decodeCharacters(stream, iso2KeyInfoType->ANY.charactersLen, iso2KeyInfoType->ANY.characters, iso2KeyInfoType_ANY_CHARACTERS_SIZE);
+ } else {
+ /* string table hit */
+ errn = EXI_ERROR_STRINGVALUES_NOT_SUPPORTED;
+ }
+ }
+ iso2KeyInfoType->ANY_isUsed = 1u;
+ grammarID = 1989;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 1988:
+ /* Element[START_ELEMENT({http://www.w3.org/2000/09/xmldsig#}KeyName), START_ELEMENT({http://www.w3.org/2000/09/xmldsig#}KeyValue), START_ELEMENT({http://www.w3.org/2000/09/xmldsig#}RetrievalMethod), START_ELEMENT({http://www.w3.org/2000/09/xmldsig#}X509Data), START_ELEMENT({http://www.w3.org/2000/09/xmldsig#}PGPData), START_ELEMENT({http://www.w3.org/2000/09/xmldsig#}SPKIData), START_ELEMENT({http://www.w3.org/2000/09/xmldsig#}MgmtData), START_ELEMENT_GENERIC, END_ELEMENT, CHARACTERS_GENERIC[STRING]] */
+ errn = decodeNBitUnsignedInteger(stream, 4, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ if (iso2KeyInfoType->KeyName.arrayLen < iso2KeyInfoType_KeyName_ARRAY_SIZE) {
+ /* First(xsi:type)StartTag[CHARACTERS[STRING]] */
+ errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
+ if(errn == 0) {
+ if(eventCode == 0) {
+ errn = decodeUnsignedInteger16(stream, &iso2KeyInfoType->KeyName.array[iso2KeyInfoType->KeyName.arrayLen].charactersLen);
+ if (errn == 0) {
+ if (iso2KeyInfoType->KeyName.array[iso2KeyInfoType->KeyName.arrayLen].charactersLen >= 2) {
+ iso2KeyInfoType->KeyName.array[iso2KeyInfoType->KeyName.arrayLen].charactersLen = (uint16_t)(iso2KeyInfoType->KeyName.array[iso2KeyInfoType->KeyName.arrayLen].charactersLen - 2); /* string table miss */
+ errn = decodeCharacters(stream, iso2KeyInfoType->KeyName.array[iso2KeyInfoType->KeyName.arrayLen].charactersLen, iso2KeyInfoType->KeyName.array[iso2KeyInfoType->KeyName.arrayLen].characters, iso2KeyInfoType_KeyName_CHARACTERS_SIZE);
+ } else {
+ /* string table hit */
+ errn = EXI_ERROR_STRINGVALUES_NOT_SUPPORTED;
+ }
+ }
+ iso2KeyInfoType->KeyName.arrayLen++;
+ } else {
+ /* Second level event (e.g., xsi:type, xsi:nil, ...) */
+ errn = EXI_UNSUPPORTED_EVENT_CODE_CHARACTERISTICS;
+ }
+ }
+ } else {
+ errn = EXI_ERROR_OUT_OF_BOUNDS;
+ }
+ if(errn == 0) {
+ /* valid EE for simple element START_ELEMENT({http://www.w3.org/2000/09/xmldsig#}KeyName) ? */
+ errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
+ if(eventCode == 0) {
+ grammarID = 1988;
+ } else {
+ errn = EXI_DEVIANT_SUPPORT_NOT_DEPLOYED; /* or also typecast and nillable */
+ }
+ }
+ break;
+ case 1:
+ if (iso2KeyInfoType->KeyValue.arrayLen < iso2KeyInfoType_KeyValue_ARRAY_SIZE) {
+ errn = decode_iso2KeyValueType(stream, &iso2KeyInfoType->KeyValue.array[iso2KeyInfoType->KeyValue.arrayLen++]);
+ } else {
+ errn = EXI_ERROR_OUT_OF_BOUNDS;
+ }
+ grammarID = 1988;
+ break;
+ case 2:
+ if (iso2KeyInfoType->RetrievalMethod.arrayLen < iso2KeyInfoType_RetrievalMethod_ARRAY_SIZE) {
+ errn = decode_iso2RetrievalMethodType(stream, &iso2KeyInfoType->RetrievalMethod.array[iso2KeyInfoType->RetrievalMethod.arrayLen++]);
+ } else {
+ errn = EXI_ERROR_OUT_OF_BOUNDS;
+ }
+ grammarID = 1988;
+ break;
+ case 3:
+ if (iso2KeyInfoType->X509Data.arrayLen < iso2KeyInfoType_X509Data_ARRAY_SIZE) {
+ errn = decode_iso2X509DataType(stream, &iso2KeyInfoType->X509Data.array[iso2KeyInfoType->X509Data.arrayLen++]);
+ } else {
+ errn = EXI_ERROR_OUT_OF_BOUNDS;
+ }
+ grammarID = 1988;
+ break;
+ case 4:
+ if (iso2KeyInfoType->PGPData.arrayLen < iso2KeyInfoType_PGPData_ARRAY_SIZE) {
+ errn = decode_iso2PGPDataType(stream, &iso2KeyInfoType->PGPData.array[iso2KeyInfoType->PGPData.arrayLen++]);
+ } else {
+ errn = EXI_ERROR_OUT_OF_BOUNDS;
+ }
+ grammarID = 1988;
+ break;
+ case 5:
+ if (iso2KeyInfoType->SPKIData.arrayLen < iso2KeyInfoType_SPKIData_ARRAY_SIZE) {
+ errn = decode_iso2SPKIDataType(stream, &iso2KeyInfoType->SPKIData.array[iso2KeyInfoType->SPKIData.arrayLen++]);
+ } else {
+ errn = EXI_ERROR_OUT_OF_BOUNDS;
+ }
+ grammarID = 1988;
+ break;
+ case 6:
+ if (iso2KeyInfoType->MgmtData.arrayLen < iso2KeyInfoType_MgmtData_ARRAY_SIZE) {
+ /* First(xsi:type)StartTag[CHARACTERS[STRING]] */
+ errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
+ if(errn == 0) {
+ if(eventCode == 0) {
+ errn = decodeUnsignedInteger16(stream, &iso2KeyInfoType->MgmtData.array[iso2KeyInfoType->MgmtData.arrayLen].charactersLen);
+ if (errn == 0) {
+ if (iso2KeyInfoType->MgmtData.array[iso2KeyInfoType->MgmtData.arrayLen].charactersLen >= 2) {
+ iso2KeyInfoType->MgmtData.array[iso2KeyInfoType->MgmtData.arrayLen].charactersLen = (uint16_t)(iso2KeyInfoType->MgmtData.array[iso2KeyInfoType->MgmtData.arrayLen].charactersLen - 2); /* string table miss */
+ errn = decodeCharacters(stream, iso2KeyInfoType->MgmtData.array[iso2KeyInfoType->MgmtData.arrayLen].charactersLen, iso2KeyInfoType->MgmtData.array[iso2KeyInfoType->MgmtData.arrayLen].characters, iso2KeyInfoType_MgmtData_CHARACTERS_SIZE);
+ } else {
+ /* string table hit */
+ errn = EXI_ERROR_STRINGVALUES_NOT_SUPPORTED;
+ }
+ }
+ iso2KeyInfoType->MgmtData.arrayLen++;
+ } else {
+ /* Second level event (e.g., xsi:type, xsi:nil, ...) */
+ errn = EXI_UNSUPPORTED_EVENT_CODE_CHARACTERISTICS;
+ }
+ }
+ } else {
+ errn = EXI_ERROR_OUT_OF_BOUNDS;
+ }
+ if(errn == 0) {
+ /* valid EE for simple element START_ELEMENT({http://www.w3.org/2000/09/xmldsig#}MgmtData) ? */
+ errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
+ if(eventCode == 0) {
+ grammarID = 1988;
+ } else {
+ errn = EXI_DEVIANT_SUPPORT_NOT_DEPLOYED; /* or also typecast and nillable */
+ }
+ }
+ break;
+ case 7:
+ errn = EXI_UNSUPPORTED_EVENT_CODE_CHARACTERISTICS;
+ /* TODO unsupported event : START_ELEMENT_GENERIC */
+ grammarID = 1988;
+ break;
+ case 8:
+ done = 1;
+ grammarID = 4;
+ break;
+ case 9:
+ errn = decodeUnsignedInteger16(stream, &iso2KeyInfoType->ANY.charactersLen);
+ if (errn == 0) {
+ if (iso2KeyInfoType->ANY.charactersLen >= 2) {
+ iso2KeyInfoType->ANY.charactersLen = (uint16_t)(iso2KeyInfoType->ANY.charactersLen - 2); /* string table miss */
+ errn = decodeCharacters(stream, iso2KeyInfoType->ANY.charactersLen, iso2KeyInfoType->ANY.characters, iso2KeyInfoType_ANY_CHARACTERS_SIZE);
+ } else {
+ /* string table hit */
+ errn = EXI_ERROR_STRINGVALUES_NOT_SUPPORTED;
+ }
+ }
+ iso2KeyInfoType->ANY_isUsed = 1u;
+ grammarID = 1988;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 1989:
+ /* Element[START_ELEMENT({http://www.w3.org/2000/09/xmldsig#}KeyName), START_ELEMENT({http://www.w3.org/2000/09/xmldsig#}KeyValue), START_ELEMENT({http://www.w3.org/2000/09/xmldsig#}RetrievalMethod), START_ELEMENT({http://www.w3.org/2000/09/xmldsig#}X509Data), START_ELEMENT({http://www.w3.org/2000/09/xmldsig#}PGPData), START_ELEMENT({http://www.w3.org/2000/09/xmldsig#}SPKIData), START_ELEMENT({http://www.w3.org/2000/09/xmldsig#}MgmtData), START_ELEMENT_GENERIC, CHARACTERS_GENERIC[STRING]] */
+ errn = decodeNBitUnsignedInteger(stream, 4, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ if (iso2KeyInfoType->KeyName.arrayLen < iso2KeyInfoType_KeyName_ARRAY_SIZE) {
+ /* First(xsi:type)StartTag[CHARACTERS[STRING]] */
+ errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
+ if(errn == 0) {
+ if(eventCode == 0) {
+ errn = decodeUnsignedInteger16(stream, &iso2KeyInfoType->KeyName.array[iso2KeyInfoType->KeyName.arrayLen].charactersLen);
+ if (errn == 0) {
+ if (iso2KeyInfoType->KeyName.array[iso2KeyInfoType->KeyName.arrayLen].charactersLen >= 2) {
+ iso2KeyInfoType->KeyName.array[iso2KeyInfoType->KeyName.arrayLen].charactersLen = (uint16_t)(iso2KeyInfoType->KeyName.array[iso2KeyInfoType->KeyName.arrayLen].charactersLen - 2); /* string table miss */
+ errn = decodeCharacters(stream, iso2KeyInfoType->KeyName.array[iso2KeyInfoType->KeyName.arrayLen].charactersLen, iso2KeyInfoType->KeyName.array[iso2KeyInfoType->KeyName.arrayLen].characters, iso2KeyInfoType_KeyName_CHARACTERS_SIZE);
+ } else {
+ /* string table hit */
+ errn = EXI_ERROR_STRINGVALUES_NOT_SUPPORTED;
+ }
+ }
+ iso2KeyInfoType->KeyName.arrayLen++;
+ } else {
+ /* Second level event (e.g., xsi:type, xsi:nil, ...) */
+ errn = EXI_UNSUPPORTED_EVENT_CODE_CHARACTERISTICS;
+ }
+ }
+ } else {
+ errn = EXI_ERROR_OUT_OF_BOUNDS;
+ }
+ if(errn == 0) {
+ /* valid EE for simple element START_ELEMENT({http://www.w3.org/2000/09/xmldsig#}KeyName) ? */
+ errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
+ if(eventCode == 0) {
+ grammarID = 1988;
+ } else {
+ errn = EXI_DEVIANT_SUPPORT_NOT_DEPLOYED; /* or also typecast and nillable */
+ }
+ }
+ break;
+ case 1:
+ if (iso2KeyInfoType->KeyValue.arrayLen < iso2KeyInfoType_KeyValue_ARRAY_SIZE) {
+ errn = decode_iso2KeyValueType(stream, &iso2KeyInfoType->KeyValue.array[iso2KeyInfoType->KeyValue.arrayLen++]);
+ } else {
+ errn = EXI_ERROR_OUT_OF_BOUNDS;
+ }
+ grammarID = 1988;
+ break;
+ case 2:
+ if (iso2KeyInfoType->RetrievalMethod.arrayLen < iso2KeyInfoType_RetrievalMethod_ARRAY_SIZE) {
+ errn = decode_iso2RetrievalMethodType(stream, &iso2KeyInfoType->RetrievalMethod.array[iso2KeyInfoType->RetrievalMethod.arrayLen++]);
+ } else {
+ errn = EXI_ERROR_OUT_OF_BOUNDS;
+ }
+ grammarID = 1988;
+ break;
+ case 3:
+ if (iso2KeyInfoType->X509Data.arrayLen < iso2KeyInfoType_X509Data_ARRAY_SIZE) {
+ errn = decode_iso2X509DataType(stream, &iso2KeyInfoType->X509Data.array[iso2KeyInfoType->X509Data.arrayLen++]);
+ } else {
+ errn = EXI_ERROR_OUT_OF_BOUNDS;
+ }
+ grammarID = 1988;
+ break;
+ case 4:
+ if (iso2KeyInfoType->PGPData.arrayLen < iso2KeyInfoType_PGPData_ARRAY_SIZE) {
+ errn = decode_iso2PGPDataType(stream, &iso2KeyInfoType->PGPData.array[iso2KeyInfoType->PGPData.arrayLen++]);
+ } else {
+ errn = EXI_ERROR_OUT_OF_BOUNDS;
+ }
+ grammarID = 1988;
+ break;
+ case 5:
+ if (iso2KeyInfoType->SPKIData.arrayLen < iso2KeyInfoType_SPKIData_ARRAY_SIZE) {
+ errn = decode_iso2SPKIDataType(stream, &iso2KeyInfoType->SPKIData.array[iso2KeyInfoType->SPKIData.arrayLen++]);
+ } else {
+ errn = EXI_ERROR_OUT_OF_BOUNDS;
+ }
+ grammarID = 1988;
+ break;
+ case 6:
+ if (iso2KeyInfoType->MgmtData.arrayLen < iso2KeyInfoType_MgmtData_ARRAY_SIZE) {
+ /* First(xsi:type)StartTag[CHARACTERS[STRING]] */
+ errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
+ if(errn == 0) {
+ if(eventCode == 0) {
+ errn = decodeUnsignedInteger16(stream, &iso2KeyInfoType->MgmtData.array[iso2KeyInfoType->MgmtData.arrayLen].charactersLen);
+ if (errn == 0) {
+ if (iso2KeyInfoType->MgmtData.array[iso2KeyInfoType->MgmtData.arrayLen].charactersLen >= 2) {
+ iso2KeyInfoType->MgmtData.array[iso2KeyInfoType->MgmtData.arrayLen].charactersLen = (uint16_t)(iso2KeyInfoType->MgmtData.array[iso2KeyInfoType->MgmtData.arrayLen].charactersLen - 2); /* string table miss */
+ errn = decodeCharacters(stream, iso2KeyInfoType->MgmtData.array[iso2KeyInfoType->MgmtData.arrayLen].charactersLen, iso2KeyInfoType->MgmtData.array[iso2KeyInfoType->MgmtData.arrayLen].characters, iso2KeyInfoType_MgmtData_CHARACTERS_SIZE);
+ } else {
+ /* string table hit */
+ errn = EXI_ERROR_STRINGVALUES_NOT_SUPPORTED;
+ }
+ }
+ iso2KeyInfoType->MgmtData.arrayLen++;
+ } else {
+ /* Second level event (e.g., xsi:type, xsi:nil, ...) */
+ errn = EXI_UNSUPPORTED_EVENT_CODE_CHARACTERISTICS;
+ }
+ }
+ } else {
+ errn = EXI_ERROR_OUT_OF_BOUNDS;
+ }
+ if(errn == 0) {
+ /* valid EE for simple element START_ELEMENT({http://www.w3.org/2000/09/xmldsig#}MgmtData) ? */
+ errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
+ if(eventCode == 0) {
+ grammarID = 1988;
+ } else {
+ errn = EXI_DEVIANT_SUPPORT_NOT_DEPLOYED; /* or also typecast and nillable */
+ }
+ }
+ break;
+ case 7:
+ errn = EXI_UNSUPPORTED_EVENT_CODE_CHARACTERISTICS;
+ /* TODO unsupported event : START_ELEMENT_GENERIC */
+ grammarID = 1988;
+ break;
+ case 8:
+ errn = decodeUnsignedInteger16(stream, &iso2KeyInfoType->ANY.charactersLen);
+ if (errn == 0) {
+ if (iso2KeyInfoType->ANY.charactersLen >= 2) {
+ iso2KeyInfoType->ANY.charactersLen = (uint16_t)(iso2KeyInfoType->ANY.charactersLen - 2); /* string table miss */
+ errn = decodeCharacters(stream, iso2KeyInfoType->ANY.charactersLen, iso2KeyInfoType->ANY.characters, iso2KeyInfoType_ANY_CHARACTERS_SIZE);
+ } else {
+ /* string table hit */
+ errn = EXI_ERROR_STRINGVALUES_NOT_SUPPORTED;
+ }
+ }
+ iso2KeyInfoType->ANY_isUsed = 1u;
+ grammarID = 1989;
+ 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:2016:MsgDataTypes,SubCertificatesType', base type name='anyType', content type='ELEMENT', isAbstract='false', hasTypeId='false', final='0', block='0', particle='("urn:iso:15118:2:2016:MsgDataTypes":Certificate{1-4})', derivedBy='RESTRICTION'. */
+static int decode_iso2SubCertificatesType(bitstream_t* stream, struct iso2SubCertificatesType* iso2SubCertificatesType) {
+ int grammarID = 1990;
+ int done = 0;
+
+ init_iso2SubCertificatesType(iso2SubCertificatesType);
+
+ while(!done) {
+ switch(grammarID) {
+ case 1990:
+ /* FirstStartTag[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}Certificate)] */
+ errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ if (iso2SubCertificatesType->Certificate.arrayLen < iso2SubCertificatesType_Certificate_ARRAY_SIZE) {
+ /* FirstStartTag[CHARACTERS[BINARY_BASE64]] */
+ errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
+ if(errn == 0) {
+ if(eventCode == 0) {
+ errn = decodeUnsignedInteger16(stream, &iso2SubCertificatesType->Certificate.array[iso2SubCertificatesType->Certificate.arrayLen].bytesLen);
+ if (errn == 0) {
+ errn = (iso2SubCertificatesType->Certificate.array[iso2SubCertificatesType->Certificate.arrayLen].bytesLen) <= iso2SubCertificatesType_Certificate_BYTES_SIZE ? 0 : EXI_ERROR_OUT_OF_BYTE_BUFFER;
+ }
+ if (errn == 0) {
+ errn = decodeBytes(stream, iso2SubCertificatesType->Certificate.array[iso2SubCertificatesType->Certificate.arrayLen].bytesLen, iso2SubCertificatesType->Certificate.array[iso2SubCertificatesType->Certificate.arrayLen].bytes);
+ }
+ iso2SubCertificatesType->Certificate.arrayLen++;
+ } else {
+ /* Second level event (e.g., xsi:type, xsi:nil, ...) */
+ errn = EXI_UNSUPPORTED_EVENT_CODE_CHARACTERISTICS;
+ }
+ }
+ } else {
+ errn = EXI_ERROR_OUT_OF_BOUNDS;
+ }
+ if(errn == 0) {
+ /* valid EE for simple element START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}Certificate) ? */
+ errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
+ if(eventCode == 0) {
+ grammarID = 1991;
+ } else {
+ errn = EXI_DEVIANT_SUPPORT_NOT_DEPLOYED; /* or also typecast and nillable */
+ }
+ }
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 1991:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}Certificate), END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ if (iso2SubCertificatesType->Certificate.arrayLen < iso2SubCertificatesType_Certificate_ARRAY_SIZE) {
+ /* FirstStartTag[CHARACTERS[BINARY_BASE64]] */
+ errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
+ if(errn == 0) {
+ if(eventCode == 0) {
+ errn = decodeUnsignedInteger16(stream, &iso2SubCertificatesType->Certificate.array[iso2SubCertificatesType->Certificate.arrayLen].bytesLen);
+ if (errn == 0) {
+ errn = (iso2SubCertificatesType->Certificate.array[iso2SubCertificatesType->Certificate.arrayLen].bytesLen) <= iso2SubCertificatesType_Certificate_BYTES_SIZE ? 0 : EXI_ERROR_OUT_OF_BYTE_BUFFER;
+ }
+ if (errn == 0) {
+ errn = decodeBytes(stream, iso2SubCertificatesType->Certificate.array[iso2SubCertificatesType->Certificate.arrayLen].bytesLen, iso2SubCertificatesType->Certificate.array[iso2SubCertificatesType->Certificate.arrayLen].bytes);
+ }
+ iso2SubCertificatesType->Certificate.arrayLen++;
+ } else {
+ /* Second level event (e.g., xsi:type, xsi:nil, ...) */
+ errn = EXI_UNSUPPORTED_EVENT_CODE_CHARACTERISTICS;
+ }
+ }
+ } else {
+ errn = EXI_ERROR_OUT_OF_BOUNDS;
+ }
+ if(errn == 0) {
+ /* valid EE for simple element START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}Certificate) ? */
+ errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
+ if(eventCode == 0) {
+ grammarID = 1992;
+ } else {
+ errn = EXI_DEVIANT_SUPPORT_NOT_DEPLOYED; /* or also typecast and nillable */
+ }
+ }
+ break;
+ case 1:
+ done = 1;
+ grammarID = 4;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 1992:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}Certificate), END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ if (iso2SubCertificatesType->Certificate.arrayLen < iso2SubCertificatesType_Certificate_ARRAY_SIZE) {
+ /* FirstStartTag[CHARACTERS[BINARY_BASE64]] */
+ errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
+ if(errn == 0) {
+ if(eventCode == 0) {
+ errn = decodeUnsignedInteger16(stream, &iso2SubCertificatesType->Certificate.array[iso2SubCertificatesType->Certificate.arrayLen].bytesLen);
+ if (errn == 0) {
+ errn = (iso2SubCertificatesType->Certificate.array[iso2SubCertificatesType->Certificate.arrayLen].bytesLen) <= iso2SubCertificatesType_Certificate_BYTES_SIZE ? 0 : EXI_ERROR_OUT_OF_BYTE_BUFFER;
+ }
+ if (errn == 0) {
+ errn = decodeBytes(stream, iso2SubCertificatesType->Certificate.array[iso2SubCertificatesType->Certificate.arrayLen].bytesLen, iso2SubCertificatesType->Certificate.array[iso2SubCertificatesType->Certificate.arrayLen].bytes);
+ }
+ iso2SubCertificatesType->Certificate.arrayLen++;
+ } else {
+ /* Second level event (e.g., xsi:type, xsi:nil, ...) */
+ errn = EXI_UNSUPPORTED_EVENT_CODE_CHARACTERISTICS;
+ }
+ }
+ } else {
+ errn = EXI_ERROR_OUT_OF_BOUNDS;
+ }
+ if(errn == 0) {
+ /* valid EE for simple element START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}Certificate) ? */
+ errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
+ if(eventCode == 0) {
+ grammarID = 1993;
+ } else {
+ errn = EXI_DEVIANT_SUPPORT_NOT_DEPLOYED; /* or also typecast and nillable */
+ }
+ }
+ break;
+ case 1:
+ done = 1;
+ grammarID = 4;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 1993:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}Certificate), END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ if (iso2SubCertificatesType->Certificate.arrayLen < iso2SubCertificatesType_Certificate_ARRAY_SIZE) {
+ /* FirstStartTag[CHARACTERS[BINARY_BASE64]] */
+ errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
+ if(errn == 0) {
+ if(eventCode == 0) {
+ errn = decodeUnsignedInteger16(stream, &iso2SubCertificatesType->Certificate.array[iso2SubCertificatesType->Certificate.arrayLen].bytesLen);
+ if (errn == 0) {
+ errn = (iso2SubCertificatesType->Certificate.array[iso2SubCertificatesType->Certificate.arrayLen].bytesLen) <= iso2SubCertificatesType_Certificate_BYTES_SIZE ? 0 : EXI_ERROR_OUT_OF_BYTE_BUFFER;
+ }
+ if (errn == 0) {
+ errn = decodeBytes(stream, iso2SubCertificatesType->Certificate.array[iso2SubCertificatesType->Certificate.arrayLen].bytesLen, iso2SubCertificatesType->Certificate.array[iso2SubCertificatesType->Certificate.arrayLen].bytes);
+ }
+ iso2SubCertificatesType->Certificate.arrayLen++;
+ } else {
+ /* Second level event (e.g., xsi:type, xsi:nil, ...) */
+ errn = EXI_UNSUPPORTED_EVENT_CODE_CHARACTERISTICS;
+ }
+ }
+ } else {
+ errn = EXI_ERROR_OUT_OF_BOUNDS;
+ }
+ if(errn == 0) {
+ /* valid EE for simple element START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}Certificate) ? */
+ errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
+ if(eventCode == 0) {
+ grammarID = 3;
+ } else {
+ errn = EXI_DEVIANT_SUPPORT_NOT_DEPLOYED; /* or also typecast and nillable */
+ }
+ }
+ break;
+ case 1:
+ done = 1;
+ grammarID = 4;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 3:
+ /* Element[END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ done = 1;
+ grammarID = 4;
+ 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:2016:MsgDataTypes,ListOfRootCertificateIDsType', base type name='anyType', content type='ELEMENT', isAbstract='false', hasTypeId='false', final='0', block='0', particle='("urn:iso:15118:2:2016:MsgDataTypes":RootCertificateID{1-20})', derivedBy='RESTRICTION'. */
+static int decode_iso2ListOfRootCertificateIDsType(bitstream_t* stream, struct iso2ListOfRootCertificateIDsType* iso2ListOfRootCertificateIDsType) {
+ int grammarID = 1994;
+ int done = 0;
+
+ init_iso2ListOfRootCertificateIDsType(iso2ListOfRootCertificateIDsType);
+
+ while(!done) {
+ switch(grammarID) {
+ case 1994:
+ /* FirstStartTag[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}RootCertificateID)] */
+ errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ if (iso2ListOfRootCertificateIDsType->RootCertificateID.arrayLen < iso2ListOfRootCertificateIDsType_RootCertificateID_ARRAY_SIZE) {
+ errn = decode_iso2X509IssuerSerialType(stream, &iso2ListOfRootCertificateIDsType->RootCertificateID.array[iso2ListOfRootCertificateIDsType->RootCertificateID.arrayLen++]);
+ } else {
+ errn = EXI_ERROR_OUT_OF_BOUNDS;
+ }
+ grammarID = 1995;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 1995:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}RootCertificateID), END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ if (iso2ListOfRootCertificateIDsType->RootCertificateID.arrayLen < iso2ListOfRootCertificateIDsType_RootCertificateID_ARRAY_SIZE) {
+ errn = decode_iso2X509IssuerSerialType(stream, &iso2ListOfRootCertificateIDsType->RootCertificateID.array[iso2ListOfRootCertificateIDsType->RootCertificateID.arrayLen++]);
+ } else {
+ errn = EXI_ERROR_OUT_OF_BOUNDS;
+ }
+ grammarID = 1996;
+ break;
+ case 1:
+ done = 1;
+ grammarID = 4;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 1996:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}RootCertificateID), END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ if (iso2ListOfRootCertificateIDsType->RootCertificateID.arrayLen < iso2ListOfRootCertificateIDsType_RootCertificateID_ARRAY_SIZE) {
+ errn = decode_iso2X509IssuerSerialType(stream, &iso2ListOfRootCertificateIDsType->RootCertificateID.array[iso2ListOfRootCertificateIDsType->RootCertificateID.arrayLen++]);
+ } else {
+ errn = EXI_ERROR_OUT_OF_BOUNDS;
+ }
+ grammarID = 1997;
+ break;
+ case 1:
+ done = 1;
+ grammarID = 4;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 1997:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}RootCertificateID), END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ if (iso2ListOfRootCertificateIDsType->RootCertificateID.arrayLen < iso2ListOfRootCertificateIDsType_RootCertificateID_ARRAY_SIZE) {
+ errn = decode_iso2X509IssuerSerialType(stream, &iso2ListOfRootCertificateIDsType->RootCertificateID.array[iso2ListOfRootCertificateIDsType->RootCertificateID.arrayLen++]);
+ } else {
+ errn = EXI_ERROR_OUT_OF_BOUNDS;
+ }
+ grammarID = 1998;
+ break;
+ case 1:
+ done = 1;
+ grammarID = 4;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 1998:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}RootCertificateID), END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ if (iso2ListOfRootCertificateIDsType->RootCertificateID.arrayLen < iso2ListOfRootCertificateIDsType_RootCertificateID_ARRAY_SIZE) {
+ errn = decode_iso2X509IssuerSerialType(stream, &iso2ListOfRootCertificateIDsType->RootCertificateID.array[iso2ListOfRootCertificateIDsType->RootCertificateID.arrayLen++]);
+ } else {
+ errn = EXI_ERROR_OUT_OF_BOUNDS;
+ }
+ grammarID = 1999;
+ break;
+ case 1:
+ done = 1;
+ grammarID = 4;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 1999:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}RootCertificateID), END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ if (iso2ListOfRootCertificateIDsType->RootCertificateID.arrayLen < iso2ListOfRootCertificateIDsType_RootCertificateID_ARRAY_SIZE) {
+ errn = decode_iso2X509IssuerSerialType(stream, &iso2ListOfRootCertificateIDsType->RootCertificateID.array[iso2ListOfRootCertificateIDsType->RootCertificateID.arrayLen++]);
+ } else {
+ errn = EXI_ERROR_OUT_OF_BOUNDS;
+ }
+ grammarID = 2000;
+ break;
+ case 1:
+ done = 1;
+ grammarID = 4;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 2000:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}RootCertificateID), END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ if (iso2ListOfRootCertificateIDsType->RootCertificateID.arrayLen < iso2ListOfRootCertificateIDsType_RootCertificateID_ARRAY_SIZE) {
+ errn = decode_iso2X509IssuerSerialType(stream, &iso2ListOfRootCertificateIDsType->RootCertificateID.array[iso2ListOfRootCertificateIDsType->RootCertificateID.arrayLen++]);
+ } else {
+ errn = EXI_ERROR_OUT_OF_BOUNDS;
+ }
+ grammarID = 2001;
+ break;
+ case 1:
+ done = 1;
+ grammarID = 4;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 2001:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}RootCertificateID), END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ if (iso2ListOfRootCertificateIDsType->RootCertificateID.arrayLen < iso2ListOfRootCertificateIDsType_RootCertificateID_ARRAY_SIZE) {
+ errn = decode_iso2X509IssuerSerialType(stream, &iso2ListOfRootCertificateIDsType->RootCertificateID.array[iso2ListOfRootCertificateIDsType->RootCertificateID.arrayLen++]);
+ } else {
+ errn = EXI_ERROR_OUT_OF_BOUNDS;
+ }
+ grammarID = 2002;
+ break;
+ case 1:
+ done = 1;
+ grammarID = 4;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 2002:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}RootCertificateID), END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ if (iso2ListOfRootCertificateIDsType->RootCertificateID.arrayLen < iso2ListOfRootCertificateIDsType_RootCertificateID_ARRAY_SIZE) {
+ errn = decode_iso2X509IssuerSerialType(stream, &iso2ListOfRootCertificateIDsType->RootCertificateID.array[iso2ListOfRootCertificateIDsType->RootCertificateID.arrayLen++]);
+ } else {
+ errn = EXI_ERROR_OUT_OF_BOUNDS;
+ }
+ grammarID = 2003;
+ break;
+ case 1:
+ done = 1;
+ grammarID = 4;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 2003:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}RootCertificateID), END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ if (iso2ListOfRootCertificateIDsType->RootCertificateID.arrayLen < iso2ListOfRootCertificateIDsType_RootCertificateID_ARRAY_SIZE) {
+ errn = decode_iso2X509IssuerSerialType(stream, &iso2ListOfRootCertificateIDsType->RootCertificateID.array[iso2ListOfRootCertificateIDsType->RootCertificateID.arrayLen++]);
+ } else {
+ errn = EXI_ERROR_OUT_OF_BOUNDS;
+ }
+ grammarID = 2004;
+ break;
+ case 1:
+ done = 1;
+ grammarID = 4;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 2004:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}RootCertificateID), END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ if (iso2ListOfRootCertificateIDsType->RootCertificateID.arrayLen < iso2ListOfRootCertificateIDsType_RootCertificateID_ARRAY_SIZE) {
+ errn = decode_iso2X509IssuerSerialType(stream, &iso2ListOfRootCertificateIDsType->RootCertificateID.array[iso2ListOfRootCertificateIDsType->RootCertificateID.arrayLen++]);
+ } else {
+ errn = EXI_ERROR_OUT_OF_BOUNDS;
+ }
+ grammarID = 2005;
+ break;
+ case 1:
+ done = 1;
+ grammarID = 4;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 2005:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}RootCertificateID), END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ if (iso2ListOfRootCertificateIDsType->RootCertificateID.arrayLen < iso2ListOfRootCertificateIDsType_RootCertificateID_ARRAY_SIZE) {
+ errn = decode_iso2X509IssuerSerialType(stream, &iso2ListOfRootCertificateIDsType->RootCertificateID.array[iso2ListOfRootCertificateIDsType->RootCertificateID.arrayLen++]);
+ } else {
+ errn = EXI_ERROR_OUT_OF_BOUNDS;
+ }
+ grammarID = 2006;
+ break;
+ case 1:
+ done = 1;
+ grammarID = 4;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 2006:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}RootCertificateID), END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ if (iso2ListOfRootCertificateIDsType->RootCertificateID.arrayLen < iso2ListOfRootCertificateIDsType_RootCertificateID_ARRAY_SIZE) {
+ errn = decode_iso2X509IssuerSerialType(stream, &iso2ListOfRootCertificateIDsType->RootCertificateID.array[iso2ListOfRootCertificateIDsType->RootCertificateID.arrayLen++]);
+ } else {
+ errn = EXI_ERROR_OUT_OF_BOUNDS;
+ }
+ grammarID = 2007;
+ break;
+ case 1:
+ done = 1;
+ grammarID = 4;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 2007:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}RootCertificateID), END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ if (iso2ListOfRootCertificateIDsType->RootCertificateID.arrayLen < iso2ListOfRootCertificateIDsType_RootCertificateID_ARRAY_SIZE) {
+ errn = decode_iso2X509IssuerSerialType(stream, &iso2ListOfRootCertificateIDsType->RootCertificateID.array[iso2ListOfRootCertificateIDsType->RootCertificateID.arrayLen++]);
+ } else {
+ errn = EXI_ERROR_OUT_OF_BOUNDS;
+ }
+ grammarID = 2008;
+ break;
+ case 1:
+ done = 1;
+ grammarID = 4;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 2008:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}RootCertificateID), END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ if (iso2ListOfRootCertificateIDsType->RootCertificateID.arrayLen < iso2ListOfRootCertificateIDsType_RootCertificateID_ARRAY_SIZE) {
+ errn = decode_iso2X509IssuerSerialType(stream, &iso2ListOfRootCertificateIDsType->RootCertificateID.array[iso2ListOfRootCertificateIDsType->RootCertificateID.arrayLen++]);
+ } else {
+ errn = EXI_ERROR_OUT_OF_BOUNDS;
+ }
+ grammarID = 2009;
+ break;
+ case 1:
+ done = 1;
+ grammarID = 4;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 2009:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}RootCertificateID), END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ if (iso2ListOfRootCertificateIDsType->RootCertificateID.arrayLen < iso2ListOfRootCertificateIDsType_RootCertificateID_ARRAY_SIZE) {
+ errn = decode_iso2X509IssuerSerialType(stream, &iso2ListOfRootCertificateIDsType->RootCertificateID.array[iso2ListOfRootCertificateIDsType->RootCertificateID.arrayLen++]);
+ } else {
+ errn = EXI_ERROR_OUT_OF_BOUNDS;
+ }
+ grammarID = 2010;
+ break;
+ case 1:
+ done = 1;
+ grammarID = 4;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 2010:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}RootCertificateID), END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ if (iso2ListOfRootCertificateIDsType->RootCertificateID.arrayLen < iso2ListOfRootCertificateIDsType_RootCertificateID_ARRAY_SIZE) {
+ errn = decode_iso2X509IssuerSerialType(stream, &iso2ListOfRootCertificateIDsType->RootCertificateID.array[iso2ListOfRootCertificateIDsType->RootCertificateID.arrayLen++]);
+ } else {
+ errn = EXI_ERROR_OUT_OF_BOUNDS;
+ }
+ grammarID = 2011;
+ break;
+ case 1:
+ done = 1;
+ grammarID = 4;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 2011:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}RootCertificateID), END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ if (iso2ListOfRootCertificateIDsType->RootCertificateID.arrayLen < iso2ListOfRootCertificateIDsType_RootCertificateID_ARRAY_SIZE) {
+ errn = decode_iso2X509IssuerSerialType(stream, &iso2ListOfRootCertificateIDsType->RootCertificateID.array[iso2ListOfRootCertificateIDsType->RootCertificateID.arrayLen++]);
+ } else {
+ errn = EXI_ERROR_OUT_OF_BOUNDS;
+ }
+ grammarID = 2012;
+ break;
+ case 1:
+ done = 1;
+ grammarID = 4;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 2012:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}RootCertificateID), END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ if (iso2ListOfRootCertificateIDsType->RootCertificateID.arrayLen < iso2ListOfRootCertificateIDsType_RootCertificateID_ARRAY_SIZE) {
+ errn = decode_iso2X509IssuerSerialType(stream, &iso2ListOfRootCertificateIDsType->RootCertificateID.array[iso2ListOfRootCertificateIDsType->RootCertificateID.arrayLen++]);
+ } else {
+ errn = EXI_ERROR_OUT_OF_BOUNDS;
+ }
+ grammarID = 2013;
+ break;
+ case 1:
+ done = 1;
+ grammarID = 4;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 2013:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}RootCertificateID), END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ if (iso2ListOfRootCertificateIDsType->RootCertificateID.arrayLen < iso2ListOfRootCertificateIDsType_RootCertificateID_ARRAY_SIZE) {
+ errn = decode_iso2X509IssuerSerialType(stream, &iso2ListOfRootCertificateIDsType->RootCertificateID.array[iso2ListOfRootCertificateIDsType->RootCertificateID.arrayLen++]);
+ } else {
+ errn = EXI_ERROR_OUT_OF_BOUNDS;
+ }
+ grammarID = 3;
+ break;
+ case 1:
+ done = 1;
+ grammarID = 4;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 3:
+ /* Element[END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ done = 1;
+ grammarID = 4;
+ 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:2016:MsgDataTypes,EVEnergyTransferParameterType', base type name='anyType', content type='ELEMENT', isAbstract='true', hasTypeId='false', final='0', block='0', particle='("urn:iso:15118:2:2016:MsgDataTypes":DepartureTime)', derivedBy='RESTRICTION'. */
+static int decode_iso2EVEnergyTransferParameterType(bitstream_t* stream, struct iso2EVEnergyTransferParameterType* iso2EVEnergyTransferParameterType) {
+ int grammarID = 2014;
+ int done = 0;
+
+ init_iso2EVEnergyTransferParameterType(iso2EVEnergyTransferParameterType);
+
+ while(!done) {
+ switch(grammarID) {
+ case 2014:
+ /* FirstStartTag[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}DepartureTime)] */
+ errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ /* First(xsi:type)StartTag[CHARACTERS[UNSIGNED_INTEGER]] */
+ errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
+ if(errn == 0) {
+ if(eventCode == 0) {
+ errn = decodeUnsignedInteger32(stream, &iso2EVEnergyTransferParameterType->DepartureTime);
+ } 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({urn:iso:15118:2:2016:MsgDataTypes}DepartureTime) ? */
+ errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
+ if(eventCode == 0) {
+ grammarID = 3;
+ } else {
+ errn = EXI_DEVIANT_SUPPORT_NOT_DEPLOYED; /* or also typecast and nillable */
+ }
+ }
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 3:
+ /* Element[END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ done = 1;
+ grammarID = 4;
+ 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:2016:MsgDataTypes,ContractSignatureEncryptedPrivateKeyType', base type name='encryptedPrivateKeyType', content type='SIMPLE', isAbstract='false', hasTypeId='false', final='0', block='0', derivedBy='EXTENSION'. */
+static int decode_iso2ContractSignatureEncryptedPrivateKeyType(bitstream_t* stream, struct iso2ContractSignatureEncryptedPrivateKeyType* iso2ContractSignatureEncryptedPrivateKeyType) {
+ int grammarID = 2015;
+ int done = 0;
+
+ init_iso2ContractSignatureEncryptedPrivateKeyType(iso2ContractSignatureEncryptedPrivateKeyType);
+
+ while(!done) {
+ switch(grammarID) {
+ case 2015:
+ /* FirstStartTag[ATTRIBUTE[STRING]({urn:iso:15118:2:2016:MsgDataTypes}Id)] */
+ errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ errn = decodeUnsignedInteger16(stream, &iso2ContractSignatureEncryptedPrivateKeyType->Id.charactersLen);
+ if (errn == 0) {
+ if (iso2ContractSignatureEncryptedPrivateKeyType->Id.charactersLen >= 2) {
+ iso2ContractSignatureEncryptedPrivateKeyType->Id.charactersLen = (uint16_t)(iso2ContractSignatureEncryptedPrivateKeyType->Id.charactersLen - 2); /* string table miss */
+ errn = decodeCharacters(stream, iso2ContractSignatureEncryptedPrivateKeyType->Id.charactersLen, iso2ContractSignatureEncryptedPrivateKeyType->Id.characters, iso2ContractSignatureEncryptedPrivateKeyType_Id_CHARACTERS_SIZE);
+ } else {
+ /* string table hit */
+ errn = EXI_ERROR_STRINGVALUES_NOT_SUPPORTED;
+ }
+ }
+ grammarID = 2016;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 2016:
+ /* StartTag[CHARACTERS[BINARY_BASE64]] */
+ errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ errn = decodeUnsignedInteger16(stream, &iso2ContractSignatureEncryptedPrivateKeyType->CONTENT.bytesLen);
+ if (errn == 0) {
+ errn = (iso2ContractSignatureEncryptedPrivateKeyType->CONTENT.bytesLen) <= iso2ContractSignatureEncryptedPrivateKeyType_CONTENT_BYTES_SIZE ? 0 : EXI_ERROR_OUT_OF_BYTE_BUFFER;
+ }
+ if (errn == 0) {
+ errn = decodeBytes(stream, iso2ContractSignatureEncryptedPrivateKeyType->CONTENT.bytesLen, iso2ContractSignatureEncryptedPrivateKeyType->CONTENT.bytes);
+ }
+ grammarID = 3;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 3:
+ /* Element[END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ done = 1;
+ grammarID = 4;
+ 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:2016:MsgDataTypes,MagneticVectorSetupListType', base type name='anyType', content type='ELEMENT', isAbstract='false', hasTypeId='false', final='0', block='0', particle='("urn:iso:15118:2:2016:MsgDataTypes":MagneticVectorSetup{1-255})', derivedBy='RESTRICTION'. */
+static int decode_iso2MagneticVectorSetupListType(bitstream_t* stream, struct iso2MagneticVectorSetupListType* iso2MagneticVectorSetupListType) {
+ int grammarID = 2017;
+ int done = 0;
+
+ init_iso2MagneticVectorSetupListType(iso2MagneticVectorSetupListType);
+
+ while(!done) {
+ switch(grammarID) {
+ case 2017:
+ /* FirstStartTag[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MagneticVectorSetup)] */
+ errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ if (iso2MagneticVectorSetupListType->MagneticVectorSetup.arrayLen < iso2MagneticVectorSetupListType_MagneticVectorSetup_ARRAY_SIZE) {
+ errn = decode_iso2MagneticVectorSetupType(stream, &iso2MagneticVectorSetupListType->MagneticVectorSetup.array[iso2MagneticVectorSetupListType->MagneticVectorSetup.arrayLen++]);
+ } else {
+ errn = EXI_ERROR_OUT_OF_BOUNDS;
+ }
+ grammarID = 2018;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 2018:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MagneticVectorSetup), END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ if (iso2MagneticVectorSetupListType->MagneticVectorSetup.arrayLen < iso2MagneticVectorSetupListType_MagneticVectorSetup_ARRAY_SIZE) {
+ errn = decode_iso2MagneticVectorSetupType(stream, &iso2MagneticVectorSetupListType->MagneticVectorSetup.array[iso2MagneticVectorSetupListType->MagneticVectorSetup.arrayLen++]);
+ } else {
+ errn = EXI_ERROR_OUT_OF_BOUNDS;
+ }
+ grammarID = 2019;
+ break;
+ case 1:
+ done = 1;
+ grammarID = 4;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 2019:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MagneticVectorSetup), END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ if (iso2MagneticVectorSetupListType->MagneticVectorSetup.arrayLen < iso2MagneticVectorSetupListType_MagneticVectorSetup_ARRAY_SIZE) {
+ errn = decode_iso2MagneticVectorSetupType(stream, &iso2MagneticVectorSetupListType->MagneticVectorSetup.array[iso2MagneticVectorSetupListType->MagneticVectorSetup.arrayLen++]);
+ } else {
+ errn = EXI_ERROR_OUT_OF_BOUNDS;
+ }
+ grammarID = 2020;
+ break;
+ case 1:
+ done = 1;
+ grammarID = 4;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 2020:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MagneticVectorSetup), END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ if (iso2MagneticVectorSetupListType->MagneticVectorSetup.arrayLen < iso2MagneticVectorSetupListType_MagneticVectorSetup_ARRAY_SIZE) {
+ errn = decode_iso2MagneticVectorSetupType(stream, &iso2MagneticVectorSetupListType->MagneticVectorSetup.array[iso2MagneticVectorSetupListType->MagneticVectorSetup.arrayLen++]);
+ } else {
+ errn = EXI_ERROR_OUT_OF_BOUNDS;
+ }
+ grammarID = 2021;
+ break;
+ case 1:
+ done = 1;
+ grammarID = 4;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 2021:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MagneticVectorSetup), END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ if (iso2MagneticVectorSetupListType->MagneticVectorSetup.arrayLen < iso2MagneticVectorSetupListType_MagneticVectorSetup_ARRAY_SIZE) {
+ errn = decode_iso2MagneticVectorSetupType(stream, &iso2MagneticVectorSetupListType->MagneticVectorSetup.array[iso2MagneticVectorSetupListType->MagneticVectorSetup.arrayLen++]);
+ } else {
+ errn = EXI_ERROR_OUT_OF_BOUNDS;
+ }
+ grammarID = 2022;
+ break;
+ case 1:
+ done = 1;
+ grammarID = 4;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 2022:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MagneticVectorSetup), END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ if (iso2MagneticVectorSetupListType->MagneticVectorSetup.arrayLen < iso2MagneticVectorSetupListType_MagneticVectorSetup_ARRAY_SIZE) {
+ errn = decode_iso2MagneticVectorSetupType(stream, &iso2MagneticVectorSetupListType->MagneticVectorSetup.array[iso2MagneticVectorSetupListType->MagneticVectorSetup.arrayLen++]);
+ } else {
+ errn = EXI_ERROR_OUT_OF_BOUNDS;
+ }
+ grammarID = 2023;
+ break;
+ case 1:
+ done = 1;
+ grammarID = 4;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 2023:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MagneticVectorSetup), END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ if (iso2MagneticVectorSetupListType->MagneticVectorSetup.arrayLen < iso2MagneticVectorSetupListType_MagneticVectorSetup_ARRAY_SIZE) {
+ errn = decode_iso2MagneticVectorSetupType(stream, &iso2MagneticVectorSetupListType->MagneticVectorSetup.array[iso2MagneticVectorSetupListType->MagneticVectorSetup.arrayLen++]);
+ } else {
+ errn = EXI_ERROR_OUT_OF_BOUNDS;
+ }
+ grammarID = 2024;
+ break;
+ case 1:
+ done = 1;
+ grammarID = 4;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 2024:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MagneticVectorSetup), END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ if (iso2MagneticVectorSetupListType->MagneticVectorSetup.arrayLen < iso2MagneticVectorSetupListType_MagneticVectorSetup_ARRAY_SIZE) {
+ errn = decode_iso2MagneticVectorSetupType(stream, &iso2MagneticVectorSetupListType->MagneticVectorSetup.array[iso2MagneticVectorSetupListType->MagneticVectorSetup.arrayLen++]);
+ } else {
+ errn = EXI_ERROR_OUT_OF_BOUNDS;
+ }
+ grammarID = 2025;
+ break;
+ case 1:
+ done = 1;
+ grammarID = 4;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 2025:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MagneticVectorSetup), END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ if (iso2MagneticVectorSetupListType->MagneticVectorSetup.arrayLen < iso2MagneticVectorSetupListType_MagneticVectorSetup_ARRAY_SIZE) {
+ errn = decode_iso2MagneticVectorSetupType(stream, &iso2MagneticVectorSetupListType->MagneticVectorSetup.array[iso2MagneticVectorSetupListType->MagneticVectorSetup.arrayLen++]);
+ } else {
+ errn = EXI_ERROR_OUT_OF_BOUNDS;
+ }
+ grammarID = 2026;
+ break;
+ case 1:
+ done = 1;
+ grammarID = 4;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 2026:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MagneticVectorSetup), END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ if (iso2MagneticVectorSetupListType->MagneticVectorSetup.arrayLen < iso2MagneticVectorSetupListType_MagneticVectorSetup_ARRAY_SIZE) {
+ errn = decode_iso2MagneticVectorSetupType(stream, &iso2MagneticVectorSetupListType->MagneticVectorSetup.array[iso2MagneticVectorSetupListType->MagneticVectorSetup.arrayLen++]);
+ } else {
+ errn = EXI_ERROR_OUT_OF_BOUNDS;
+ }
+ grammarID = 2027;
+ break;
+ case 1:
+ done = 1;
+ grammarID = 4;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 2027:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MagneticVectorSetup), END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ if (iso2MagneticVectorSetupListType->MagneticVectorSetup.arrayLen < iso2MagneticVectorSetupListType_MagneticVectorSetup_ARRAY_SIZE) {
+ errn = decode_iso2MagneticVectorSetupType(stream, &iso2MagneticVectorSetupListType->MagneticVectorSetup.array[iso2MagneticVectorSetupListType->MagneticVectorSetup.arrayLen++]);
+ } else {
+ errn = EXI_ERROR_OUT_OF_BOUNDS;
+ }
+ grammarID = 2028;
+ break;
+ case 1:
+ done = 1;
+ grammarID = 4;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 2028:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MagneticVectorSetup), END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ if (iso2MagneticVectorSetupListType->MagneticVectorSetup.arrayLen < iso2MagneticVectorSetupListType_MagneticVectorSetup_ARRAY_SIZE) {
+ errn = decode_iso2MagneticVectorSetupType(stream, &iso2MagneticVectorSetupListType->MagneticVectorSetup.array[iso2MagneticVectorSetupListType->MagneticVectorSetup.arrayLen++]);
+ } else {
+ errn = EXI_ERROR_OUT_OF_BOUNDS;
+ }
+ grammarID = 2029;
+ break;
+ case 1:
+ done = 1;
+ grammarID = 4;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 2029:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MagneticVectorSetup), END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ if (iso2MagneticVectorSetupListType->MagneticVectorSetup.arrayLen < iso2MagneticVectorSetupListType_MagneticVectorSetup_ARRAY_SIZE) {
+ errn = decode_iso2MagneticVectorSetupType(stream, &iso2MagneticVectorSetupListType->MagneticVectorSetup.array[iso2MagneticVectorSetupListType->MagneticVectorSetup.arrayLen++]);
+ } else {
+ errn = EXI_ERROR_OUT_OF_BOUNDS;
+ }
+ grammarID = 2030;
+ break;
+ case 1:
+ done = 1;
+ grammarID = 4;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 2030:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MagneticVectorSetup), END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ if (iso2MagneticVectorSetupListType->MagneticVectorSetup.arrayLen < iso2MagneticVectorSetupListType_MagneticVectorSetup_ARRAY_SIZE) {
+ errn = decode_iso2MagneticVectorSetupType(stream, &iso2MagneticVectorSetupListType->MagneticVectorSetup.array[iso2MagneticVectorSetupListType->MagneticVectorSetup.arrayLen++]);
+ } else {
+ errn = EXI_ERROR_OUT_OF_BOUNDS;
+ }
+ grammarID = 2031;
+ break;
+ case 1:
+ done = 1;
+ grammarID = 4;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 2031:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MagneticVectorSetup), END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ if (iso2MagneticVectorSetupListType->MagneticVectorSetup.arrayLen < iso2MagneticVectorSetupListType_MagneticVectorSetup_ARRAY_SIZE) {
+ errn = decode_iso2MagneticVectorSetupType(stream, &iso2MagneticVectorSetupListType->MagneticVectorSetup.array[iso2MagneticVectorSetupListType->MagneticVectorSetup.arrayLen++]);
+ } else {
+ errn = EXI_ERROR_OUT_OF_BOUNDS;
+ }
+ grammarID = 2032;
+ break;
+ case 1:
+ done = 1;
+ grammarID = 4;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 2032:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MagneticVectorSetup), END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ if (iso2MagneticVectorSetupListType->MagneticVectorSetup.arrayLen < iso2MagneticVectorSetupListType_MagneticVectorSetup_ARRAY_SIZE) {
+ errn = decode_iso2MagneticVectorSetupType(stream, &iso2MagneticVectorSetupListType->MagneticVectorSetup.array[iso2MagneticVectorSetupListType->MagneticVectorSetup.arrayLen++]);
+ } else {
+ errn = EXI_ERROR_OUT_OF_BOUNDS;
+ }
+ grammarID = 2033;
+ break;
+ case 1:
+ done = 1;
+ grammarID = 4;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 2033:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MagneticVectorSetup), END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ if (iso2MagneticVectorSetupListType->MagneticVectorSetup.arrayLen < iso2MagneticVectorSetupListType_MagneticVectorSetup_ARRAY_SIZE) {
+ errn = decode_iso2MagneticVectorSetupType(stream, &iso2MagneticVectorSetupListType->MagneticVectorSetup.array[iso2MagneticVectorSetupListType->MagneticVectorSetup.arrayLen++]);
+ } else {
+ errn = EXI_ERROR_OUT_OF_BOUNDS;
+ }
+ grammarID = 2034;
+ break;
+ case 1:
+ done = 1;
+ grammarID = 4;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 2034:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MagneticVectorSetup), END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ if (iso2MagneticVectorSetupListType->MagneticVectorSetup.arrayLen < iso2MagneticVectorSetupListType_MagneticVectorSetup_ARRAY_SIZE) {
+ errn = decode_iso2MagneticVectorSetupType(stream, &iso2MagneticVectorSetupListType->MagneticVectorSetup.array[iso2MagneticVectorSetupListType->MagneticVectorSetup.arrayLen++]);
+ } else {
+ errn = EXI_ERROR_OUT_OF_BOUNDS;
+ }
+ grammarID = 2035;
+ break;
+ case 1:
+ done = 1;
+ grammarID = 4;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 2035:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MagneticVectorSetup), END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ if (iso2MagneticVectorSetupListType->MagneticVectorSetup.arrayLen < iso2MagneticVectorSetupListType_MagneticVectorSetup_ARRAY_SIZE) {
+ errn = decode_iso2MagneticVectorSetupType(stream, &iso2MagneticVectorSetupListType->MagneticVectorSetup.array[iso2MagneticVectorSetupListType->MagneticVectorSetup.arrayLen++]);
+ } else {
+ errn = EXI_ERROR_OUT_OF_BOUNDS;
+ }
+ grammarID = 2036;
+ break;
+ case 1:
+ done = 1;
+ grammarID = 4;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 2036:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MagneticVectorSetup), END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ if (iso2MagneticVectorSetupListType->MagneticVectorSetup.arrayLen < iso2MagneticVectorSetupListType_MagneticVectorSetup_ARRAY_SIZE) {
+ errn = decode_iso2MagneticVectorSetupType(stream, &iso2MagneticVectorSetupListType->MagneticVectorSetup.array[iso2MagneticVectorSetupListType->MagneticVectorSetup.arrayLen++]);
+ } else {
+ errn = EXI_ERROR_OUT_OF_BOUNDS;
+ }
+ grammarID = 2037;
+ break;
+ case 1:
+ done = 1;
+ grammarID = 4;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 2037:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MagneticVectorSetup), END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ if (iso2MagneticVectorSetupListType->MagneticVectorSetup.arrayLen < iso2MagneticVectorSetupListType_MagneticVectorSetup_ARRAY_SIZE) {
+ errn = decode_iso2MagneticVectorSetupType(stream, &iso2MagneticVectorSetupListType->MagneticVectorSetup.array[iso2MagneticVectorSetupListType->MagneticVectorSetup.arrayLen++]);
+ } else {
+ errn = EXI_ERROR_OUT_OF_BOUNDS;
+ }
+ grammarID = 2038;
+ break;
+ case 1:
+ done = 1;
+ grammarID = 4;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 2038:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MagneticVectorSetup), END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ if (iso2MagneticVectorSetupListType->MagneticVectorSetup.arrayLen < iso2MagneticVectorSetupListType_MagneticVectorSetup_ARRAY_SIZE) {
+ errn = decode_iso2MagneticVectorSetupType(stream, &iso2MagneticVectorSetupListType->MagneticVectorSetup.array[iso2MagneticVectorSetupListType->MagneticVectorSetup.arrayLen++]);
+ } else {
+ errn = EXI_ERROR_OUT_OF_BOUNDS;
+ }
+ grammarID = 2039;
+ break;
+ case 1:
+ done = 1;
+ grammarID = 4;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 2039:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MagneticVectorSetup), END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ if (iso2MagneticVectorSetupListType->MagneticVectorSetup.arrayLen < iso2MagneticVectorSetupListType_MagneticVectorSetup_ARRAY_SIZE) {
+ errn = decode_iso2MagneticVectorSetupType(stream, &iso2MagneticVectorSetupListType->MagneticVectorSetup.array[iso2MagneticVectorSetupListType->MagneticVectorSetup.arrayLen++]);
+ } else {
+ errn = EXI_ERROR_OUT_OF_BOUNDS;
+ }
+ grammarID = 2040;
+ break;
+ case 1:
+ done = 1;
+ grammarID = 4;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 2040:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MagneticVectorSetup), END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ if (iso2MagneticVectorSetupListType->MagneticVectorSetup.arrayLen < iso2MagneticVectorSetupListType_MagneticVectorSetup_ARRAY_SIZE) {
+ errn = decode_iso2MagneticVectorSetupType(stream, &iso2MagneticVectorSetupListType->MagneticVectorSetup.array[iso2MagneticVectorSetupListType->MagneticVectorSetup.arrayLen++]);
+ } else {
+ errn = EXI_ERROR_OUT_OF_BOUNDS;
+ }
+ grammarID = 2041;
+ break;
+ case 1:
+ done = 1;
+ grammarID = 4;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 2041:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MagneticVectorSetup), END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ if (iso2MagneticVectorSetupListType->MagneticVectorSetup.arrayLen < iso2MagneticVectorSetupListType_MagneticVectorSetup_ARRAY_SIZE) {
+ errn = decode_iso2MagneticVectorSetupType(stream, &iso2MagneticVectorSetupListType->MagneticVectorSetup.array[iso2MagneticVectorSetupListType->MagneticVectorSetup.arrayLen++]);
+ } else {
+ errn = EXI_ERROR_OUT_OF_BOUNDS;
+ }
+ grammarID = 2042;
+ break;
+ case 1:
+ done = 1;
+ grammarID = 4;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 2042:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MagneticVectorSetup), END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ if (iso2MagneticVectorSetupListType->MagneticVectorSetup.arrayLen < iso2MagneticVectorSetupListType_MagneticVectorSetup_ARRAY_SIZE) {
+ errn = decode_iso2MagneticVectorSetupType(stream, &iso2MagneticVectorSetupListType->MagneticVectorSetup.array[iso2MagneticVectorSetupListType->MagneticVectorSetup.arrayLen++]);
+ } else {
+ errn = EXI_ERROR_OUT_OF_BOUNDS;
+ }
+ grammarID = 2043;
+ break;
+ case 1:
+ done = 1;
+ grammarID = 4;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 2043:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MagneticVectorSetup), END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ if (iso2MagneticVectorSetupListType->MagneticVectorSetup.arrayLen < iso2MagneticVectorSetupListType_MagneticVectorSetup_ARRAY_SIZE) {
+ errn = decode_iso2MagneticVectorSetupType(stream, &iso2MagneticVectorSetupListType->MagneticVectorSetup.array[iso2MagneticVectorSetupListType->MagneticVectorSetup.arrayLen++]);
+ } else {
+ errn = EXI_ERROR_OUT_OF_BOUNDS;
+ }
+ grammarID = 2044;
+ break;
+ case 1:
+ done = 1;
+ grammarID = 4;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 2044:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MagneticVectorSetup), END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ if (iso2MagneticVectorSetupListType->MagneticVectorSetup.arrayLen < iso2MagneticVectorSetupListType_MagneticVectorSetup_ARRAY_SIZE) {
+ errn = decode_iso2MagneticVectorSetupType(stream, &iso2MagneticVectorSetupListType->MagneticVectorSetup.array[iso2MagneticVectorSetupListType->MagneticVectorSetup.arrayLen++]);
+ } else {
+ errn = EXI_ERROR_OUT_OF_BOUNDS;
+ }
+ grammarID = 2045;
+ break;
+ case 1:
+ done = 1;
+ grammarID = 4;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 2045:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MagneticVectorSetup), END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ if (iso2MagneticVectorSetupListType->MagneticVectorSetup.arrayLen < iso2MagneticVectorSetupListType_MagneticVectorSetup_ARRAY_SIZE) {
+ errn = decode_iso2MagneticVectorSetupType(stream, &iso2MagneticVectorSetupListType->MagneticVectorSetup.array[iso2MagneticVectorSetupListType->MagneticVectorSetup.arrayLen++]);
+ } else {
+ errn = EXI_ERROR_OUT_OF_BOUNDS;
+ }
+ grammarID = 2046;
+ break;
+ case 1:
+ done = 1;
+ grammarID = 4;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 2046:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MagneticVectorSetup), END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ if (iso2MagneticVectorSetupListType->MagneticVectorSetup.arrayLen < iso2MagneticVectorSetupListType_MagneticVectorSetup_ARRAY_SIZE) {
+ errn = decode_iso2MagneticVectorSetupType(stream, &iso2MagneticVectorSetupListType->MagneticVectorSetup.array[iso2MagneticVectorSetupListType->MagneticVectorSetup.arrayLen++]);
+ } else {
+ errn = EXI_ERROR_OUT_OF_BOUNDS;
+ }
+ grammarID = 2047;
+ break;
+ case 1:
+ done = 1;
+ grammarID = 4;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 2047:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MagneticVectorSetup), END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ if (iso2MagneticVectorSetupListType->MagneticVectorSetup.arrayLen < iso2MagneticVectorSetupListType_MagneticVectorSetup_ARRAY_SIZE) {
+ errn = decode_iso2MagneticVectorSetupType(stream, &iso2MagneticVectorSetupListType->MagneticVectorSetup.array[iso2MagneticVectorSetupListType->MagneticVectorSetup.arrayLen++]);
+ } else {
+ errn = EXI_ERROR_OUT_OF_BOUNDS;
+ }
+ grammarID = 2048;
+ break;
+ case 1:
+ done = 1;
+ grammarID = 4;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 2048:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MagneticVectorSetup), END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ if (iso2MagneticVectorSetupListType->MagneticVectorSetup.arrayLen < iso2MagneticVectorSetupListType_MagneticVectorSetup_ARRAY_SIZE) {
+ errn = decode_iso2MagneticVectorSetupType(stream, &iso2MagneticVectorSetupListType->MagneticVectorSetup.array[iso2MagneticVectorSetupListType->MagneticVectorSetup.arrayLen++]);
+ } else {
+ errn = EXI_ERROR_OUT_OF_BOUNDS;
+ }
+ grammarID = 2049;
+ break;
+ case 1:
+ done = 1;
+ grammarID = 4;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 2049:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MagneticVectorSetup), END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ if (iso2MagneticVectorSetupListType->MagneticVectorSetup.arrayLen < iso2MagneticVectorSetupListType_MagneticVectorSetup_ARRAY_SIZE) {
+ errn = decode_iso2MagneticVectorSetupType(stream, &iso2MagneticVectorSetupListType->MagneticVectorSetup.array[iso2MagneticVectorSetupListType->MagneticVectorSetup.arrayLen++]);
+ } else {
+ errn = EXI_ERROR_OUT_OF_BOUNDS;
+ }
+ grammarID = 2050;
+ break;
+ case 1:
+ done = 1;
+ grammarID = 4;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 2050:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MagneticVectorSetup), END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ if (iso2MagneticVectorSetupListType->MagneticVectorSetup.arrayLen < iso2MagneticVectorSetupListType_MagneticVectorSetup_ARRAY_SIZE) {
+ errn = decode_iso2MagneticVectorSetupType(stream, &iso2MagneticVectorSetupListType->MagneticVectorSetup.array[iso2MagneticVectorSetupListType->MagneticVectorSetup.arrayLen++]);
+ } else {
+ errn = EXI_ERROR_OUT_OF_BOUNDS;
+ }
+ grammarID = 2051;
+ break;
+ case 1:
+ done = 1;
+ grammarID = 4;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 2051:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MagneticVectorSetup), END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ if (iso2MagneticVectorSetupListType->MagneticVectorSetup.arrayLen < iso2MagneticVectorSetupListType_MagneticVectorSetup_ARRAY_SIZE) {
+ errn = decode_iso2MagneticVectorSetupType(stream, &iso2MagneticVectorSetupListType->MagneticVectorSetup.array[iso2MagneticVectorSetupListType->MagneticVectorSetup.arrayLen++]);
+ } else {
+ errn = EXI_ERROR_OUT_OF_BOUNDS;
+ }
+ grammarID = 2052;
+ break;
+ case 1:
+ done = 1;
+ grammarID = 4;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 2052:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MagneticVectorSetup), END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ if (iso2MagneticVectorSetupListType->MagneticVectorSetup.arrayLen < iso2MagneticVectorSetupListType_MagneticVectorSetup_ARRAY_SIZE) {
+ errn = decode_iso2MagneticVectorSetupType(stream, &iso2MagneticVectorSetupListType->MagneticVectorSetup.array[iso2MagneticVectorSetupListType->MagneticVectorSetup.arrayLen++]);
+ } else {
+ errn = EXI_ERROR_OUT_OF_BOUNDS;
+ }
+ grammarID = 2053;
+ break;
+ case 1:
+ done = 1;
+ grammarID = 4;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 2053:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MagneticVectorSetup), END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ if (iso2MagneticVectorSetupListType->MagneticVectorSetup.arrayLen < iso2MagneticVectorSetupListType_MagneticVectorSetup_ARRAY_SIZE) {
+ errn = decode_iso2MagneticVectorSetupType(stream, &iso2MagneticVectorSetupListType->MagneticVectorSetup.array[iso2MagneticVectorSetupListType->MagneticVectorSetup.arrayLen++]);
+ } else {
+ errn = EXI_ERROR_OUT_OF_BOUNDS;
+ }
+ grammarID = 2054;
+ break;
+ case 1:
+ done = 1;
+ grammarID = 4;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 2054:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MagneticVectorSetup), END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ if (iso2MagneticVectorSetupListType->MagneticVectorSetup.arrayLen < iso2MagneticVectorSetupListType_MagneticVectorSetup_ARRAY_SIZE) {
+ errn = decode_iso2MagneticVectorSetupType(stream, &iso2MagneticVectorSetupListType->MagneticVectorSetup.array[iso2MagneticVectorSetupListType->MagneticVectorSetup.arrayLen++]);
+ } else {
+ errn = EXI_ERROR_OUT_OF_BOUNDS;
+ }
+ grammarID = 2055;
+ break;
+ case 1:
+ done = 1;
+ grammarID = 4;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 2055:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MagneticVectorSetup), END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ if (iso2MagneticVectorSetupListType->MagneticVectorSetup.arrayLen < iso2MagneticVectorSetupListType_MagneticVectorSetup_ARRAY_SIZE) {
+ errn = decode_iso2MagneticVectorSetupType(stream, &iso2MagneticVectorSetupListType->MagneticVectorSetup.array[iso2MagneticVectorSetupListType->MagneticVectorSetup.arrayLen++]);
+ } else {
+ errn = EXI_ERROR_OUT_OF_BOUNDS;
+ }
+ grammarID = 2056;
+ break;
+ case 1:
+ done = 1;
+ grammarID = 4;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 2056:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MagneticVectorSetup), END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ if (iso2MagneticVectorSetupListType->MagneticVectorSetup.arrayLen < iso2MagneticVectorSetupListType_MagneticVectorSetup_ARRAY_SIZE) {
+ errn = decode_iso2MagneticVectorSetupType(stream, &iso2MagneticVectorSetupListType->MagneticVectorSetup.array[iso2MagneticVectorSetupListType->MagneticVectorSetup.arrayLen++]);
+ } else {
+ errn = EXI_ERROR_OUT_OF_BOUNDS;
+ }
+ grammarID = 2057;
+ break;
+ case 1:
+ done = 1;
+ grammarID = 4;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 2057:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MagneticVectorSetup), END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ if (iso2MagneticVectorSetupListType->MagneticVectorSetup.arrayLen < iso2MagneticVectorSetupListType_MagneticVectorSetup_ARRAY_SIZE) {
+ errn = decode_iso2MagneticVectorSetupType(stream, &iso2MagneticVectorSetupListType->MagneticVectorSetup.array[iso2MagneticVectorSetupListType->MagneticVectorSetup.arrayLen++]);
+ } else {
+ errn = EXI_ERROR_OUT_OF_BOUNDS;
+ }
+ grammarID = 2058;
+ break;
+ case 1:
+ done = 1;
+ grammarID = 4;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 2058:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MagneticVectorSetup), END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ if (iso2MagneticVectorSetupListType->MagneticVectorSetup.arrayLen < iso2MagneticVectorSetupListType_MagneticVectorSetup_ARRAY_SIZE) {
+ errn = decode_iso2MagneticVectorSetupType(stream, &iso2MagneticVectorSetupListType->MagneticVectorSetup.array[iso2MagneticVectorSetupListType->MagneticVectorSetup.arrayLen++]);
+ } else {
+ errn = EXI_ERROR_OUT_OF_BOUNDS;
+ }
+ grammarID = 2059;
+ break;
+ case 1:
+ done = 1;
+ grammarID = 4;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 2059:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MagneticVectorSetup), END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ if (iso2MagneticVectorSetupListType->MagneticVectorSetup.arrayLen < iso2MagneticVectorSetupListType_MagneticVectorSetup_ARRAY_SIZE) {
+ errn = decode_iso2MagneticVectorSetupType(stream, &iso2MagneticVectorSetupListType->MagneticVectorSetup.array[iso2MagneticVectorSetupListType->MagneticVectorSetup.arrayLen++]);
+ } else {
+ errn = EXI_ERROR_OUT_OF_BOUNDS;
+ }
+ grammarID = 2060;
+ break;
+ case 1:
+ done = 1;
+ grammarID = 4;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 2060:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MagneticVectorSetup), END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ if (iso2MagneticVectorSetupListType->MagneticVectorSetup.arrayLen < iso2MagneticVectorSetupListType_MagneticVectorSetup_ARRAY_SIZE) {
+ errn = decode_iso2MagneticVectorSetupType(stream, &iso2MagneticVectorSetupListType->MagneticVectorSetup.array[iso2MagneticVectorSetupListType->MagneticVectorSetup.arrayLen++]);
+ } else {
+ errn = EXI_ERROR_OUT_OF_BOUNDS;
+ }
+ grammarID = 2061;
+ break;
+ case 1:
+ done = 1;
+ grammarID = 4;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 2061:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MagneticVectorSetup), END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ if (iso2MagneticVectorSetupListType->MagneticVectorSetup.arrayLen < iso2MagneticVectorSetupListType_MagneticVectorSetup_ARRAY_SIZE) {
+ errn = decode_iso2MagneticVectorSetupType(stream, &iso2MagneticVectorSetupListType->MagneticVectorSetup.array[iso2MagneticVectorSetupListType->MagneticVectorSetup.arrayLen++]);
+ } else {
+ errn = EXI_ERROR_OUT_OF_BOUNDS;
+ }
+ grammarID = 2062;
+ break;
+ case 1:
+ done = 1;
+ grammarID = 4;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 2062:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MagneticVectorSetup), END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ if (iso2MagneticVectorSetupListType->MagneticVectorSetup.arrayLen < iso2MagneticVectorSetupListType_MagneticVectorSetup_ARRAY_SIZE) {
+ errn = decode_iso2MagneticVectorSetupType(stream, &iso2MagneticVectorSetupListType->MagneticVectorSetup.array[iso2MagneticVectorSetupListType->MagneticVectorSetup.arrayLen++]);
+ } else {
+ errn = EXI_ERROR_OUT_OF_BOUNDS;
+ }
+ grammarID = 2063;
+ break;
+ case 1:
+ done = 1;
+ grammarID = 4;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 2063:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MagneticVectorSetup), END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ if (iso2MagneticVectorSetupListType->MagneticVectorSetup.arrayLen < iso2MagneticVectorSetupListType_MagneticVectorSetup_ARRAY_SIZE) {
+ errn = decode_iso2MagneticVectorSetupType(stream, &iso2MagneticVectorSetupListType->MagneticVectorSetup.array[iso2MagneticVectorSetupListType->MagneticVectorSetup.arrayLen++]);
+ } else {
+ errn = EXI_ERROR_OUT_OF_BOUNDS;
+ }
+ grammarID = 2064;
+ break;
+ case 1:
+ done = 1;
+ grammarID = 4;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 2064:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MagneticVectorSetup), END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ if (iso2MagneticVectorSetupListType->MagneticVectorSetup.arrayLen < iso2MagneticVectorSetupListType_MagneticVectorSetup_ARRAY_SIZE) {
+ errn = decode_iso2MagneticVectorSetupType(stream, &iso2MagneticVectorSetupListType->MagneticVectorSetup.array[iso2MagneticVectorSetupListType->MagneticVectorSetup.arrayLen++]);
+ } else {
+ errn = EXI_ERROR_OUT_OF_BOUNDS;
+ }
+ grammarID = 2065;
+ break;
+ case 1:
+ done = 1;
+ grammarID = 4;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 2065:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MagneticVectorSetup), END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ if (iso2MagneticVectorSetupListType->MagneticVectorSetup.arrayLen < iso2MagneticVectorSetupListType_MagneticVectorSetup_ARRAY_SIZE) {
+ errn = decode_iso2MagneticVectorSetupType(stream, &iso2MagneticVectorSetupListType->MagneticVectorSetup.array[iso2MagneticVectorSetupListType->MagneticVectorSetup.arrayLen++]);
+ } else {
+ errn = EXI_ERROR_OUT_OF_BOUNDS;
+ }
+ grammarID = 2066;
+ break;
+ case 1:
+ done = 1;
+ grammarID = 4;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 2066:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MagneticVectorSetup), END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ if (iso2MagneticVectorSetupListType->MagneticVectorSetup.arrayLen < iso2MagneticVectorSetupListType_MagneticVectorSetup_ARRAY_SIZE) {
+ errn = decode_iso2MagneticVectorSetupType(stream, &iso2MagneticVectorSetupListType->MagneticVectorSetup.array[iso2MagneticVectorSetupListType->MagneticVectorSetup.arrayLen++]);
+ } else {
+ errn = EXI_ERROR_OUT_OF_BOUNDS;
+ }
+ grammarID = 2067;
+ break;
+ case 1:
+ done = 1;
+ grammarID = 4;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 2067:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MagneticVectorSetup), END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ if (iso2MagneticVectorSetupListType->MagneticVectorSetup.arrayLen < iso2MagneticVectorSetupListType_MagneticVectorSetup_ARRAY_SIZE) {
+ errn = decode_iso2MagneticVectorSetupType(stream, &iso2MagneticVectorSetupListType->MagneticVectorSetup.array[iso2MagneticVectorSetupListType->MagneticVectorSetup.arrayLen++]);
+ } else {
+ errn = EXI_ERROR_OUT_OF_BOUNDS;
+ }
+ grammarID = 2068;
+ break;
+ case 1:
+ done = 1;
+ grammarID = 4;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 2068:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MagneticVectorSetup), END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ if (iso2MagneticVectorSetupListType->MagneticVectorSetup.arrayLen < iso2MagneticVectorSetupListType_MagneticVectorSetup_ARRAY_SIZE) {
+ errn = decode_iso2MagneticVectorSetupType(stream, &iso2MagneticVectorSetupListType->MagneticVectorSetup.array[iso2MagneticVectorSetupListType->MagneticVectorSetup.arrayLen++]);
+ } else {
+ errn = EXI_ERROR_OUT_OF_BOUNDS;
+ }
+ grammarID = 2069;
+ break;
+ case 1:
+ done = 1;
+ grammarID = 4;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 2069:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MagneticVectorSetup), END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ if (iso2MagneticVectorSetupListType->MagneticVectorSetup.arrayLen < iso2MagneticVectorSetupListType_MagneticVectorSetup_ARRAY_SIZE) {
+ errn = decode_iso2MagneticVectorSetupType(stream, &iso2MagneticVectorSetupListType->MagneticVectorSetup.array[iso2MagneticVectorSetupListType->MagneticVectorSetup.arrayLen++]);
+ } else {
+ errn = EXI_ERROR_OUT_OF_BOUNDS;
+ }
+ grammarID = 2070;
+ break;
+ case 1:
+ done = 1;
+ grammarID = 4;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 2070:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MagneticVectorSetup), END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ if (iso2MagneticVectorSetupListType->MagneticVectorSetup.arrayLen < iso2MagneticVectorSetupListType_MagneticVectorSetup_ARRAY_SIZE) {
+ errn = decode_iso2MagneticVectorSetupType(stream, &iso2MagneticVectorSetupListType->MagneticVectorSetup.array[iso2MagneticVectorSetupListType->MagneticVectorSetup.arrayLen++]);
+ } else {
+ errn = EXI_ERROR_OUT_OF_BOUNDS;
+ }
+ grammarID = 2071;
+ break;
+ case 1:
+ done = 1;
+ grammarID = 4;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 2071:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MagneticVectorSetup), END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ if (iso2MagneticVectorSetupListType->MagneticVectorSetup.arrayLen < iso2MagneticVectorSetupListType_MagneticVectorSetup_ARRAY_SIZE) {
+ errn = decode_iso2MagneticVectorSetupType(stream, &iso2MagneticVectorSetupListType->MagneticVectorSetup.array[iso2MagneticVectorSetupListType->MagneticVectorSetup.arrayLen++]);
+ } else {
+ errn = EXI_ERROR_OUT_OF_BOUNDS;
+ }
+ grammarID = 2072;
+ break;
+ case 1:
+ done = 1;
+ grammarID = 4;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 2072:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MagneticVectorSetup), END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ if (iso2MagneticVectorSetupListType->MagneticVectorSetup.arrayLen < iso2MagneticVectorSetupListType_MagneticVectorSetup_ARRAY_SIZE) {
+ errn = decode_iso2MagneticVectorSetupType(stream, &iso2MagneticVectorSetupListType->MagneticVectorSetup.array[iso2MagneticVectorSetupListType->MagneticVectorSetup.arrayLen++]);
+ } else {
+ errn = EXI_ERROR_OUT_OF_BOUNDS;
+ }
+ grammarID = 2073;
+ break;
+ case 1:
+ done = 1;
+ grammarID = 4;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 2073:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MagneticVectorSetup), END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ if (iso2MagneticVectorSetupListType->MagneticVectorSetup.arrayLen < iso2MagneticVectorSetupListType_MagneticVectorSetup_ARRAY_SIZE) {
+ errn = decode_iso2MagneticVectorSetupType(stream, &iso2MagneticVectorSetupListType->MagneticVectorSetup.array[iso2MagneticVectorSetupListType->MagneticVectorSetup.arrayLen++]);
+ } else {
+ errn = EXI_ERROR_OUT_OF_BOUNDS;
+ }
+ grammarID = 2074;
+ break;
+ case 1:
+ done = 1;
+ grammarID = 4;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 2074:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MagneticVectorSetup), END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ if (iso2MagneticVectorSetupListType->MagneticVectorSetup.arrayLen < iso2MagneticVectorSetupListType_MagneticVectorSetup_ARRAY_SIZE) {
+ errn = decode_iso2MagneticVectorSetupType(stream, &iso2MagneticVectorSetupListType->MagneticVectorSetup.array[iso2MagneticVectorSetupListType->MagneticVectorSetup.arrayLen++]);
+ } else {
+ errn = EXI_ERROR_OUT_OF_BOUNDS;
+ }
+ grammarID = 2075;
+ break;
+ case 1:
+ done = 1;
+ grammarID = 4;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 2075:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MagneticVectorSetup), END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ if (iso2MagneticVectorSetupListType->MagneticVectorSetup.arrayLen < iso2MagneticVectorSetupListType_MagneticVectorSetup_ARRAY_SIZE) {
+ errn = decode_iso2MagneticVectorSetupType(stream, &iso2MagneticVectorSetupListType->MagneticVectorSetup.array[iso2MagneticVectorSetupListType->MagneticVectorSetup.arrayLen++]);
+ } else {
+ errn = EXI_ERROR_OUT_OF_BOUNDS;
+ }
+ grammarID = 2076;
+ break;
+ case 1:
+ done = 1;
+ grammarID = 4;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 2076:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MagneticVectorSetup), END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ if (iso2MagneticVectorSetupListType->MagneticVectorSetup.arrayLen < iso2MagneticVectorSetupListType_MagneticVectorSetup_ARRAY_SIZE) {
+ errn = decode_iso2MagneticVectorSetupType(stream, &iso2MagneticVectorSetupListType->MagneticVectorSetup.array[iso2MagneticVectorSetupListType->MagneticVectorSetup.arrayLen++]);
+ } else {
+ errn = EXI_ERROR_OUT_OF_BOUNDS;
+ }
+ grammarID = 2077;
+ break;
+ case 1:
+ done = 1;
+ grammarID = 4;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 2077:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MagneticVectorSetup), END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ if (iso2MagneticVectorSetupListType->MagneticVectorSetup.arrayLen < iso2MagneticVectorSetupListType_MagneticVectorSetup_ARRAY_SIZE) {
+ errn = decode_iso2MagneticVectorSetupType(stream, &iso2MagneticVectorSetupListType->MagneticVectorSetup.array[iso2MagneticVectorSetupListType->MagneticVectorSetup.arrayLen++]);
+ } else {
+ errn = EXI_ERROR_OUT_OF_BOUNDS;
+ }
+ grammarID = 2078;
+ break;
+ case 1:
+ done = 1;
+ grammarID = 4;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 2078:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MagneticVectorSetup), END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ if (iso2MagneticVectorSetupListType->MagneticVectorSetup.arrayLen < iso2MagneticVectorSetupListType_MagneticVectorSetup_ARRAY_SIZE) {
+ errn = decode_iso2MagneticVectorSetupType(stream, &iso2MagneticVectorSetupListType->MagneticVectorSetup.array[iso2MagneticVectorSetupListType->MagneticVectorSetup.arrayLen++]);
+ } else {
+ errn = EXI_ERROR_OUT_OF_BOUNDS;
+ }
+ grammarID = 2079;
+ break;
+ case 1:
+ done = 1;
+ grammarID = 4;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 2079:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MagneticVectorSetup), END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ if (iso2MagneticVectorSetupListType->MagneticVectorSetup.arrayLen < iso2MagneticVectorSetupListType_MagneticVectorSetup_ARRAY_SIZE) {
+ errn = decode_iso2MagneticVectorSetupType(stream, &iso2MagneticVectorSetupListType->MagneticVectorSetup.array[iso2MagneticVectorSetupListType->MagneticVectorSetup.arrayLen++]);
+ } else {
+ errn = EXI_ERROR_OUT_OF_BOUNDS;
+ }
+ grammarID = 2080;
+ break;
+ case 1:
+ done = 1;
+ grammarID = 4;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 2080:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MagneticVectorSetup), END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ if (iso2MagneticVectorSetupListType->MagneticVectorSetup.arrayLen < iso2MagneticVectorSetupListType_MagneticVectorSetup_ARRAY_SIZE) {
+ errn = decode_iso2MagneticVectorSetupType(stream, &iso2MagneticVectorSetupListType->MagneticVectorSetup.array[iso2MagneticVectorSetupListType->MagneticVectorSetup.arrayLen++]);
+ } else {
+ errn = EXI_ERROR_OUT_OF_BOUNDS;
+ }
+ grammarID = 2081;
+ break;
+ case 1:
+ done = 1;
+ grammarID = 4;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 2081:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MagneticVectorSetup), END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ if (iso2MagneticVectorSetupListType->MagneticVectorSetup.arrayLen < iso2MagneticVectorSetupListType_MagneticVectorSetup_ARRAY_SIZE) {
+ errn = decode_iso2MagneticVectorSetupType(stream, &iso2MagneticVectorSetupListType->MagneticVectorSetup.array[iso2MagneticVectorSetupListType->MagneticVectorSetup.arrayLen++]);
+ } else {
+ errn = EXI_ERROR_OUT_OF_BOUNDS;
+ }
+ grammarID = 2082;
+ break;
+ case 1:
+ done = 1;
+ grammarID = 4;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 2082:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MagneticVectorSetup), END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ if (iso2MagneticVectorSetupListType->MagneticVectorSetup.arrayLen < iso2MagneticVectorSetupListType_MagneticVectorSetup_ARRAY_SIZE) {
+ errn = decode_iso2MagneticVectorSetupType(stream, &iso2MagneticVectorSetupListType->MagneticVectorSetup.array[iso2MagneticVectorSetupListType->MagneticVectorSetup.arrayLen++]);
+ } else {
+ errn = EXI_ERROR_OUT_OF_BOUNDS;
+ }
+ grammarID = 2083;
+ break;
+ case 1:
+ done = 1;
+ grammarID = 4;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 2083:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MagneticVectorSetup), END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ if (iso2MagneticVectorSetupListType->MagneticVectorSetup.arrayLen < iso2MagneticVectorSetupListType_MagneticVectorSetup_ARRAY_SIZE) {
+ errn = decode_iso2MagneticVectorSetupType(stream, &iso2MagneticVectorSetupListType->MagneticVectorSetup.array[iso2MagneticVectorSetupListType->MagneticVectorSetup.arrayLen++]);
+ } else {
+ errn = EXI_ERROR_OUT_OF_BOUNDS;
+ }
+ grammarID = 2084;
+ break;
+ case 1:
+ done = 1;
+ grammarID = 4;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 2084:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MagneticVectorSetup), END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ if (iso2MagneticVectorSetupListType->MagneticVectorSetup.arrayLen < iso2MagneticVectorSetupListType_MagneticVectorSetup_ARRAY_SIZE) {
+ errn = decode_iso2MagneticVectorSetupType(stream, &iso2MagneticVectorSetupListType->MagneticVectorSetup.array[iso2MagneticVectorSetupListType->MagneticVectorSetup.arrayLen++]);
+ } else {
+ errn = EXI_ERROR_OUT_OF_BOUNDS;
+ }
+ grammarID = 2085;
+ break;
+ case 1:
+ done = 1;
+ grammarID = 4;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 2085:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MagneticVectorSetup), END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ if (iso2MagneticVectorSetupListType->MagneticVectorSetup.arrayLen < iso2MagneticVectorSetupListType_MagneticVectorSetup_ARRAY_SIZE) {
+ errn = decode_iso2MagneticVectorSetupType(stream, &iso2MagneticVectorSetupListType->MagneticVectorSetup.array[iso2MagneticVectorSetupListType->MagneticVectorSetup.arrayLen++]);
+ } else {
+ errn = EXI_ERROR_OUT_OF_BOUNDS;
+ }
+ grammarID = 2086;
+ break;
+ case 1:
+ done = 1;
+ grammarID = 4;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 2086:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MagneticVectorSetup), END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ if (iso2MagneticVectorSetupListType->MagneticVectorSetup.arrayLen < iso2MagneticVectorSetupListType_MagneticVectorSetup_ARRAY_SIZE) {
+ errn = decode_iso2MagneticVectorSetupType(stream, &iso2MagneticVectorSetupListType->MagneticVectorSetup.array[iso2MagneticVectorSetupListType->MagneticVectorSetup.arrayLen++]);
+ } else {
+ errn = EXI_ERROR_OUT_OF_BOUNDS;
+ }
+ grammarID = 2087;
+ break;
+ case 1:
+ done = 1;
+ grammarID = 4;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 2087:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MagneticVectorSetup), END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ if (iso2MagneticVectorSetupListType->MagneticVectorSetup.arrayLen < iso2MagneticVectorSetupListType_MagneticVectorSetup_ARRAY_SIZE) {
+ errn = decode_iso2MagneticVectorSetupType(stream, &iso2MagneticVectorSetupListType->MagneticVectorSetup.array[iso2MagneticVectorSetupListType->MagneticVectorSetup.arrayLen++]);
+ } else {
+ errn = EXI_ERROR_OUT_OF_BOUNDS;
+ }
+ grammarID = 2088;
+ break;
+ case 1:
+ done = 1;
+ grammarID = 4;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 2088:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MagneticVectorSetup), END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ if (iso2MagneticVectorSetupListType->MagneticVectorSetup.arrayLen < iso2MagneticVectorSetupListType_MagneticVectorSetup_ARRAY_SIZE) {
+ errn = decode_iso2MagneticVectorSetupType(stream, &iso2MagneticVectorSetupListType->MagneticVectorSetup.array[iso2MagneticVectorSetupListType->MagneticVectorSetup.arrayLen++]);
+ } else {
+ errn = EXI_ERROR_OUT_OF_BOUNDS;
+ }
+ grammarID = 2089;
+ break;
+ case 1:
+ done = 1;
+ grammarID = 4;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 2089:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MagneticVectorSetup), END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ if (iso2MagneticVectorSetupListType->MagneticVectorSetup.arrayLen < iso2MagneticVectorSetupListType_MagneticVectorSetup_ARRAY_SIZE) {
+ errn = decode_iso2MagneticVectorSetupType(stream, &iso2MagneticVectorSetupListType->MagneticVectorSetup.array[iso2MagneticVectorSetupListType->MagneticVectorSetup.arrayLen++]);
+ } else {
+ errn = EXI_ERROR_OUT_OF_BOUNDS;
+ }
+ grammarID = 2090;
+ break;
+ case 1:
+ done = 1;
+ grammarID = 4;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 2090:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MagneticVectorSetup), END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ if (iso2MagneticVectorSetupListType->MagneticVectorSetup.arrayLen < iso2MagneticVectorSetupListType_MagneticVectorSetup_ARRAY_SIZE) {
+ errn = decode_iso2MagneticVectorSetupType(stream, &iso2MagneticVectorSetupListType->MagneticVectorSetup.array[iso2MagneticVectorSetupListType->MagneticVectorSetup.arrayLen++]);
+ } else {
+ errn = EXI_ERROR_OUT_OF_BOUNDS;
+ }
+ grammarID = 2091;
+ break;
+ case 1:
+ done = 1;
+ grammarID = 4;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 2091:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MagneticVectorSetup), END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ if (iso2MagneticVectorSetupListType->MagneticVectorSetup.arrayLen < iso2MagneticVectorSetupListType_MagneticVectorSetup_ARRAY_SIZE) {
+ errn = decode_iso2MagneticVectorSetupType(stream, &iso2MagneticVectorSetupListType->MagneticVectorSetup.array[iso2MagneticVectorSetupListType->MagneticVectorSetup.arrayLen++]);
+ } else {
+ errn = EXI_ERROR_OUT_OF_BOUNDS;
+ }
+ grammarID = 2092;
+ break;
+ case 1:
+ done = 1;
+ grammarID = 4;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 2092:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MagneticVectorSetup), END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ if (iso2MagneticVectorSetupListType->MagneticVectorSetup.arrayLen < iso2MagneticVectorSetupListType_MagneticVectorSetup_ARRAY_SIZE) {
+ errn = decode_iso2MagneticVectorSetupType(stream, &iso2MagneticVectorSetupListType->MagneticVectorSetup.array[iso2MagneticVectorSetupListType->MagneticVectorSetup.arrayLen++]);
+ } else {
+ errn = EXI_ERROR_OUT_OF_BOUNDS;
+ }
+ grammarID = 2093;
+ break;
+ case 1:
+ done = 1;
+ grammarID = 4;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 2093:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MagneticVectorSetup), END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ if (iso2MagneticVectorSetupListType->MagneticVectorSetup.arrayLen < iso2MagneticVectorSetupListType_MagneticVectorSetup_ARRAY_SIZE) {
+ errn = decode_iso2MagneticVectorSetupType(stream, &iso2MagneticVectorSetupListType->MagneticVectorSetup.array[iso2MagneticVectorSetupListType->MagneticVectorSetup.arrayLen++]);
+ } else {
+ errn = EXI_ERROR_OUT_OF_BOUNDS;
+ }
+ grammarID = 2094;
+ break;
+ case 1:
+ done = 1;
+ grammarID = 4;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 2094:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MagneticVectorSetup), END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ if (iso2MagneticVectorSetupListType->MagneticVectorSetup.arrayLen < iso2MagneticVectorSetupListType_MagneticVectorSetup_ARRAY_SIZE) {
+ errn = decode_iso2MagneticVectorSetupType(stream, &iso2MagneticVectorSetupListType->MagneticVectorSetup.array[iso2MagneticVectorSetupListType->MagneticVectorSetup.arrayLen++]);
+ } else {
+ errn = EXI_ERROR_OUT_OF_BOUNDS;
+ }
+ grammarID = 2095;
+ break;
+ case 1:
+ done = 1;
+ grammarID = 4;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 2095:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MagneticVectorSetup), END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ if (iso2MagneticVectorSetupListType->MagneticVectorSetup.arrayLen < iso2MagneticVectorSetupListType_MagneticVectorSetup_ARRAY_SIZE) {
+ errn = decode_iso2MagneticVectorSetupType(stream, &iso2MagneticVectorSetupListType->MagneticVectorSetup.array[iso2MagneticVectorSetupListType->MagneticVectorSetup.arrayLen++]);
+ } else {
+ errn = EXI_ERROR_OUT_OF_BOUNDS;
+ }
+ grammarID = 2096;
+ break;
+ case 1:
+ done = 1;
+ grammarID = 4;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 2096:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MagneticVectorSetup), END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ if (iso2MagneticVectorSetupListType->MagneticVectorSetup.arrayLen < iso2MagneticVectorSetupListType_MagneticVectorSetup_ARRAY_SIZE) {
+ errn = decode_iso2MagneticVectorSetupType(stream, &iso2MagneticVectorSetupListType->MagneticVectorSetup.array[iso2MagneticVectorSetupListType->MagneticVectorSetup.arrayLen++]);
+ } else {
+ errn = EXI_ERROR_OUT_OF_BOUNDS;
+ }
+ grammarID = 2097;
+ break;
+ case 1:
+ done = 1;
+ grammarID = 4;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 2097:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MagneticVectorSetup), END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ if (iso2MagneticVectorSetupListType->MagneticVectorSetup.arrayLen < iso2MagneticVectorSetupListType_MagneticVectorSetup_ARRAY_SIZE) {
+ errn = decode_iso2MagneticVectorSetupType(stream, &iso2MagneticVectorSetupListType->MagneticVectorSetup.array[iso2MagneticVectorSetupListType->MagneticVectorSetup.arrayLen++]);
+ } else {
+ errn = EXI_ERROR_OUT_OF_BOUNDS;
+ }
+ grammarID = 2098;
+ break;
+ case 1:
+ done = 1;
+ grammarID = 4;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 2098:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MagneticVectorSetup), END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ if (iso2MagneticVectorSetupListType->MagneticVectorSetup.arrayLen < iso2MagneticVectorSetupListType_MagneticVectorSetup_ARRAY_SIZE) {
+ errn = decode_iso2MagneticVectorSetupType(stream, &iso2MagneticVectorSetupListType->MagneticVectorSetup.array[iso2MagneticVectorSetupListType->MagneticVectorSetup.arrayLen++]);
+ } else {
+ errn = EXI_ERROR_OUT_OF_BOUNDS;
+ }
+ grammarID = 2099;
+ break;
+ case 1:
+ done = 1;
+ grammarID = 4;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 2099:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MagneticVectorSetup), END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ if (iso2MagneticVectorSetupListType->MagneticVectorSetup.arrayLen < iso2MagneticVectorSetupListType_MagneticVectorSetup_ARRAY_SIZE) {
+ errn = decode_iso2MagneticVectorSetupType(stream, &iso2MagneticVectorSetupListType->MagneticVectorSetup.array[iso2MagneticVectorSetupListType->MagneticVectorSetup.arrayLen++]);
+ } else {
+ errn = EXI_ERROR_OUT_OF_BOUNDS;
+ }
+ grammarID = 2100;
+ break;
+ case 1:
+ done = 1;
+ grammarID = 4;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 2100:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MagneticVectorSetup), END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ if (iso2MagneticVectorSetupListType->MagneticVectorSetup.arrayLen < iso2MagneticVectorSetupListType_MagneticVectorSetup_ARRAY_SIZE) {
+ errn = decode_iso2MagneticVectorSetupType(stream, &iso2MagneticVectorSetupListType->MagneticVectorSetup.array[iso2MagneticVectorSetupListType->MagneticVectorSetup.arrayLen++]);
+ } else {
+ errn = EXI_ERROR_OUT_OF_BOUNDS;
+ }
+ grammarID = 2101;
+ break;
+ case 1:
+ done = 1;
+ grammarID = 4;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 2101:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MagneticVectorSetup), END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ if (iso2MagneticVectorSetupListType->MagneticVectorSetup.arrayLen < iso2MagneticVectorSetupListType_MagneticVectorSetup_ARRAY_SIZE) {
+ errn = decode_iso2MagneticVectorSetupType(stream, &iso2MagneticVectorSetupListType->MagneticVectorSetup.array[iso2MagneticVectorSetupListType->MagneticVectorSetup.arrayLen++]);
+ } else {
+ errn = EXI_ERROR_OUT_OF_BOUNDS;
+ }
+ grammarID = 2102;
+ break;
+ case 1:
+ done = 1;
+ grammarID = 4;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 2102:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MagneticVectorSetup), END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ if (iso2MagneticVectorSetupListType->MagneticVectorSetup.arrayLen < iso2MagneticVectorSetupListType_MagneticVectorSetup_ARRAY_SIZE) {
+ errn = decode_iso2MagneticVectorSetupType(stream, &iso2MagneticVectorSetupListType->MagneticVectorSetup.array[iso2MagneticVectorSetupListType->MagneticVectorSetup.arrayLen++]);
+ } else {
+ errn = EXI_ERROR_OUT_OF_BOUNDS;
+ }
+ grammarID = 2103;
+ break;
+ case 1:
+ done = 1;
+ grammarID = 4;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 2103:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MagneticVectorSetup), END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ if (iso2MagneticVectorSetupListType->MagneticVectorSetup.arrayLen < iso2MagneticVectorSetupListType_MagneticVectorSetup_ARRAY_SIZE) {
+ errn = decode_iso2MagneticVectorSetupType(stream, &iso2MagneticVectorSetupListType->MagneticVectorSetup.array[iso2MagneticVectorSetupListType->MagneticVectorSetup.arrayLen++]);
+ } else {
+ errn = EXI_ERROR_OUT_OF_BOUNDS;
+ }
+ grammarID = 2104;
+ break;
+ case 1:
+ done = 1;
+ grammarID = 4;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 2104:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MagneticVectorSetup), END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ if (iso2MagneticVectorSetupListType->MagneticVectorSetup.arrayLen < iso2MagneticVectorSetupListType_MagneticVectorSetup_ARRAY_SIZE) {
+ errn = decode_iso2MagneticVectorSetupType(stream, &iso2MagneticVectorSetupListType->MagneticVectorSetup.array[iso2MagneticVectorSetupListType->MagneticVectorSetup.arrayLen++]);
+ } else {
+ errn = EXI_ERROR_OUT_OF_BOUNDS;
+ }
+ grammarID = 2105;
+ break;
+ case 1:
+ done = 1;
+ grammarID = 4;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 2105:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MagneticVectorSetup), END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ if (iso2MagneticVectorSetupListType->MagneticVectorSetup.arrayLen < iso2MagneticVectorSetupListType_MagneticVectorSetup_ARRAY_SIZE) {
+ errn = decode_iso2MagneticVectorSetupType(stream, &iso2MagneticVectorSetupListType->MagneticVectorSetup.array[iso2MagneticVectorSetupListType->MagneticVectorSetup.arrayLen++]);
+ } else {
+ errn = EXI_ERROR_OUT_OF_BOUNDS;
+ }
+ grammarID = 2106;
+ break;
+ case 1:
+ done = 1;
+ grammarID = 4;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 2106:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MagneticVectorSetup), END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ if (iso2MagneticVectorSetupListType->MagneticVectorSetup.arrayLen < iso2MagneticVectorSetupListType_MagneticVectorSetup_ARRAY_SIZE) {
+ errn = decode_iso2MagneticVectorSetupType(stream, &iso2MagneticVectorSetupListType->MagneticVectorSetup.array[iso2MagneticVectorSetupListType->MagneticVectorSetup.arrayLen++]);
+ } else {
+ errn = EXI_ERROR_OUT_OF_BOUNDS;
+ }
+ grammarID = 2107;
+ break;
+ case 1:
+ done = 1;
+ grammarID = 4;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 2107:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MagneticVectorSetup), END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ if (iso2MagneticVectorSetupListType->MagneticVectorSetup.arrayLen < iso2MagneticVectorSetupListType_MagneticVectorSetup_ARRAY_SIZE) {
+ errn = decode_iso2MagneticVectorSetupType(stream, &iso2MagneticVectorSetupListType->MagneticVectorSetup.array[iso2MagneticVectorSetupListType->MagneticVectorSetup.arrayLen++]);
+ } else {
+ errn = EXI_ERROR_OUT_OF_BOUNDS;
+ }
+ grammarID = 2108;
+ break;
+ case 1:
+ done = 1;
+ grammarID = 4;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 2108:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MagneticVectorSetup), END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ if (iso2MagneticVectorSetupListType->MagneticVectorSetup.arrayLen < iso2MagneticVectorSetupListType_MagneticVectorSetup_ARRAY_SIZE) {
+ errn = decode_iso2MagneticVectorSetupType(stream, &iso2MagneticVectorSetupListType->MagneticVectorSetup.array[iso2MagneticVectorSetupListType->MagneticVectorSetup.arrayLen++]);
+ } else {
+ errn = EXI_ERROR_OUT_OF_BOUNDS;
+ }
+ grammarID = 2109;
+ break;
+ case 1:
+ done = 1;
+ grammarID = 4;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 2109:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MagneticVectorSetup), END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ if (iso2MagneticVectorSetupListType->MagneticVectorSetup.arrayLen < iso2MagneticVectorSetupListType_MagneticVectorSetup_ARRAY_SIZE) {
+ errn = decode_iso2MagneticVectorSetupType(stream, &iso2MagneticVectorSetupListType->MagneticVectorSetup.array[iso2MagneticVectorSetupListType->MagneticVectorSetup.arrayLen++]);
+ } else {
+ errn = EXI_ERROR_OUT_OF_BOUNDS;
+ }
+ grammarID = 2110;
+ break;
+ case 1:
+ done = 1;
+ grammarID = 4;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 2110:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MagneticVectorSetup), END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ if (iso2MagneticVectorSetupListType->MagneticVectorSetup.arrayLen < iso2MagneticVectorSetupListType_MagneticVectorSetup_ARRAY_SIZE) {
+ errn = decode_iso2MagneticVectorSetupType(stream, &iso2MagneticVectorSetupListType->MagneticVectorSetup.array[iso2MagneticVectorSetupListType->MagneticVectorSetup.arrayLen++]);
+ } else {
+ errn = EXI_ERROR_OUT_OF_BOUNDS;
+ }
+ grammarID = 2111;
+ break;
+ case 1:
+ done = 1;
+ grammarID = 4;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 2111:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MagneticVectorSetup), END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ if (iso2MagneticVectorSetupListType->MagneticVectorSetup.arrayLen < iso2MagneticVectorSetupListType_MagneticVectorSetup_ARRAY_SIZE) {
+ errn = decode_iso2MagneticVectorSetupType(stream, &iso2MagneticVectorSetupListType->MagneticVectorSetup.array[iso2MagneticVectorSetupListType->MagneticVectorSetup.arrayLen++]);
+ } else {
+ errn = EXI_ERROR_OUT_OF_BOUNDS;
+ }
+ grammarID = 2112;
+ break;
+ case 1:
+ done = 1;
+ grammarID = 4;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 2112:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MagneticVectorSetup), END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ if (iso2MagneticVectorSetupListType->MagneticVectorSetup.arrayLen < iso2MagneticVectorSetupListType_MagneticVectorSetup_ARRAY_SIZE) {
+ errn = decode_iso2MagneticVectorSetupType(stream, &iso2MagneticVectorSetupListType->MagneticVectorSetup.array[iso2MagneticVectorSetupListType->MagneticVectorSetup.arrayLen++]);
+ } else {
+ errn = EXI_ERROR_OUT_OF_BOUNDS;
+ }
+ grammarID = 2113;
+ break;
+ case 1:
+ done = 1;
+ grammarID = 4;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 2113:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MagneticVectorSetup), END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ if (iso2MagneticVectorSetupListType->MagneticVectorSetup.arrayLen < iso2MagneticVectorSetupListType_MagneticVectorSetup_ARRAY_SIZE) {
+ errn = decode_iso2MagneticVectorSetupType(stream, &iso2MagneticVectorSetupListType->MagneticVectorSetup.array[iso2MagneticVectorSetupListType->MagneticVectorSetup.arrayLen++]);
+ } else {
+ errn = EXI_ERROR_OUT_OF_BOUNDS;
+ }
+ grammarID = 2114;
+ break;
+ case 1:
+ done = 1;
+ grammarID = 4;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 2114:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MagneticVectorSetup), END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ if (iso2MagneticVectorSetupListType->MagneticVectorSetup.arrayLen < iso2MagneticVectorSetupListType_MagneticVectorSetup_ARRAY_SIZE) {
+ errn = decode_iso2MagneticVectorSetupType(stream, &iso2MagneticVectorSetupListType->MagneticVectorSetup.array[iso2MagneticVectorSetupListType->MagneticVectorSetup.arrayLen++]);
+ } else {
+ errn = EXI_ERROR_OUT_OF_BOUNDS;
+ }
+ grammarID = 2115;
+ break;
+ case 1:
+ done = 1;
+ grammarID = 4;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 2115:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MagneticVectorSetup), END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ if (iso2MagneticVectorSetupListType->MagneticVectorSetup.arrayLen < iso2MagneticVectorSetupListType_MagneticVectorSetup_ARRAY_SIZE) {
+ errn = decode_iso2MagneticVectorSetupType(stream, &iso2MagneticVectorSetupListType->MagneticVectorSetup.array[iso2MagneticVectorSetupListType->MagneticVectorSetup.arrayLen++]);
+ } else {
+ errn = EXI_ERROR_OUT_OF_BOUNDS;
+ }
+ grammarID = 2116;
+ break;
+ case 1:
+ done = 1;
+ grammarID = 4;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 2116:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MagneticVectorSetup), END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ if (iso2MagneticVectorSetupListType->MagneticVectorSetup.arrayLen < iso2MagneticVectorSetupListType_MagneticVectorSetup_ARRAY_SIZE) {
+ errn = decode_iso2MagneticVectorSetupType(stream, &iso2MagneticVectorSetupListType->MagneticVectorSetup.array[iso2MagneticVectorSetupListType->MagneticVectorSetup.arrayLen++]);
+ } else {
+ errn = EXI_ERROR_OUT_OF_BOUNDS;
+ }
+ grammarID = 2117;
+ break;
+ case 1:
+ done = 1;
+ grammarID = 4;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 2117:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MagneticVectorSetup), END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ if (iso2MagneticVectorSetupListType->MagneticVectorSetup.arrayLen < iso2MagneticVectorSetupListType_MagneticVectorSetup_ARRAY_SIZE) {
+ errn = decode_iso2MagneticVectorSetupType(stream, &iso2MagneticVectorSetupListType->MagneticVectorSetup.array[iso2MagneticVectorSetupListType->MagneticVectorSetup.arrayLen++]);
+ } else {
+ errn = EXI_ERROR_OUT_OF_BOUNDS;
+ }
+ grammarID = 2118;
+ break;
+ case 1:
+ done = 1;
+ grammarID = 4;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 2118:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MagneticVectorSetup), END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ if (iso2MagneticVectorSetupListType->MagneticVectorSetup.arrayLen < iso2MagneticVectorSetupListType_MagneticVectorSetup_ARRAY_SIZE) {
+ errn = decode_iso2MagneticVectorSetupType(stream, &iso2MagneticVectorSetupListType->MagneticVectorSetup.array[iso2MagneticVectorSetupListType->MagneticVectorSetup.arrayLen++]);
+ } else {
+ errn = EXI_ERROR_OUT_OF_BOUNDS;
+ }
+ grammarID = 2119;
+ break;
+ case 1:
+ done = 1;
+ grammarID = 4;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 2119:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MagneticVectorSetup), END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ if (iso2MagneticVectorSetupListType->MagneticVectorSetup.arrayLen < iso2MagneticVectorSetupListType_MagneticVectorSetup_ARRAY_SIZE) {
+ errn = decode_iso2MagneticVectorSetupType(stream, &iso2MagneticVectorSetupListType->MagneticVectorSetup.array[iso2MagneticVectorSetupListType->MagneticVectorSetup.arrayLen++]);
+ } else {
+ errn = EXI_ERROR_OUT_OF_BOUNDS;
+ }
+ grammarID = 2120;
+ break;
+ case 1:
+ done = 1;
+ grammarID = 4;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 2120:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MagneticVectorSetup), END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ if (iso2MagneticVectorSetupListType->MagneticVectorSetup.arrayLen < iso2MagneticVectorSetupListType_MagneticVectorSetup_ARRAY_SIZE) {
+ errn = decode_iso2MagneticVectorSetupType(stream, &iso2MagneticVectorSetupListType->MagneticVectorSetup.array[iso2MagneticVectorSetupListType->MagneticVectorSetup.arrayLen++]);
+ } else {
+ errn = EXI_ERROR_OUT_OF_BOUNDS;
+ }
+ grammarID = 2121;
+ break;
+ case 1:
+ done = 1;
+ grammarID = 4;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 2121:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MagneticVectorSetup), END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ if (iso2MagneticVectorSetupListType->MagneticVectorSetup.arrayLen < iso2MagneticVectorSetupListType_MagneticVectorSetup_ARRAY_SIZE) {
+ errn = decode_iso2MagneticVectorSetupType(stream, &iso2MagneticVectorSetupListType->MagneticVectorSetup.array[iso2MagneticVectorSetupListType->MagneticVectorSetup.arrayLen++]);
+ } else {
+ errn = EXI_ERROR_OUT_OF_BOUNDS;
+ }
+ grammarID = 2122;
+ break;
+ case 1:
+ done = 1;
+ grammarID = 4;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 2122:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MagneticVectorSetup), END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ if (iso2MagneticVectorSetupListType->MagneticVectorSetup.arrayLen < iso2MagneticVectorSetupListType_MagneticVectorSetup_ARRAY_SIZE) {
+ errn = decode_iso2MagneticVectorSetupType(stream, &iso2MagneticVectorSetupListType->MagneticVectorSetup.array[iso2MagneticVectorSetupListType->MagneticVectorSetup.arrayLen++]);
+ } else {
+ errn = EXI_ERROR_OUT_OF_BOUNDS;
+ }
+ grammarID = 2123;
+ break;
+ case 1:
+ done = 1;
+ grammarID = 4;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 2123:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MagneticVectorSetup), END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ if (iso2MagneticVectorSetupListType->MagneticVectorSetup.arrayLen < iso2MagneticVectorSetupListType_MagneticVectorSetup_ARRAY_SIZE) {
+ errn = decode_iso2MagneticVectorSetupType(stream, &iso2MagneticVectorSetupListType->MagneticVectorSetup.array[iso2MagneticVectorSetupListType->MagneticVectorSetup.arrayLen++]);
+ } else {
+ errn = EXI_ERROR_OUT_OF_BOUNDS;
+ }
+ grammarID = 2124;
+ break;
+ case 1:
+ done = 1;
+ grammarID = 4;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 2124:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MagneticVectorSetup), END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ if (iso2MagneticVectorSetupListType->MagneticVectorSetup.arrayLen < iso2MagneticVectorSetupListType_MagneticVectorSetup_ARRAY_SIZE) {
+ errn = decode_iso2MagneticVectorSetupType(stream, &iso2MagneticVectorSetupListType->MagneticVectorSetup.array[iso2MagneticVectorSetupListType->MagneticVectorSetup.arrayLen++]);
+ } else {
+ errn = EXI_ERROR_OUT_OF_BOUNDS;
+ }
+ grammarID = 2125;
+ break;
+ case 1:
+ done = 1;
+ grammarID = 4;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 2125:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MagneticVectorSetup), END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ if (iso2MagneticVectorSetupListType->MagneticVectorSetup.arrayLen < iso2MagneticVectorSetupListType_MagneticVectorSetup_ARRAY_SIZE) {
+ errn = decode_iso2MagneticVectorSetupType(stream, &iso2MagneticVectorSetupListType->MagneticVectorSetup.array[iso2MagneticVectorSetupListType->MagneticVectorSetup.arrayLen++]);
+ } else {
+ errn = EXI_ERROR_OUT_OF_BOUNDS;
+ }
+ grammarID = 2126;
+ break;
+ case 1:
+ done = 1;
+ grammarID = 4;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 2126:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MagneticVectorSetup), END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ if (iso2MagneticVectorSetupListType->MagneticVectorSetup.arrayLen < iso2MagneticVectorSetupListType_MagneticVectorSetup_ARRAY_SIZE) {
+ errn = decode_iso2MagneticVectorSetupType(stream, &iso2MagneticVectorSetupListType->MagneticVectorSetup.array[iso2MagneticVectorSetupListType->MagneticVectorSetup.arrayLen++]);
+ } else {
+ errn = EXI_ERROR_OUT_OF_BOUNDS;
+ }
+ grammarID = 2127;
+ break;
+ case 1:
+ done = 1;
+ grammarID = 4;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 2127:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MagneticVectorSetup), END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ if (iso2MagneticVectorSetupListType->MagneticVectorSetup.arrayLen < iso2MagneticVectorSetupListType_MagneticVectorSetup_ARRAY_SIZE) {
+ errn = decode_iso2MagneticVectorSetupType(stream, &iso2MagneticVectorSetupListType->MagneticVectorSetup.array[iso2MagneticVectorSetupListType->MagneticVectorSetup.arrayLen++]);
+ } else {
+ errn = EXI_ERROR_OUT_OF_BOUNDS;
+ }
+ grammarID = 2128;
+ break;
+ case 1:
+ done = 1;
+ grammarID = 4;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 2128:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MagneticVectorSetup), END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ if (iso2MagneticVectorSetupListType->MagneticVectorSetup.arrayLen < iso2MagneticVectorSetupListType_MagneticVectorSetup_ARRAY_SIZE) {
+ errn = decode_iso2MagneticVectorSetupType(stream, &iso2MagneticVectorSetupListType->MagneticVectorSetup.array[iso2MagneticVectorSetupListType->MagneticVectorSetup.arrayLen++]);
+ } else {
+ errn = EXI_ERROR_OUT_OF_BOUNDS;
+ }
+ grammarID = 2129;
+ break;
+ case 1:
+ done = 1;
+ grammarID = 4;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 2129:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MagneticVectorSetup), END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ if (iso2MagneticVectorSetupListType->MagneticVectorSetup.arrayLen < iso2MagneticVectorSetupListType_MagneticVectorSetup_ARRAY_SIZE) {
+ errn = decode_iso2MagneticVectorSetupType(stream, &iso2MagneticVectorSetupListType->MagneticVectorSetup.array[iso2MagneticVectorSetupListType->MagneticVectorSetup.arrayLen++]);
+ } else {
+ errn = EXI_ERROR_OUT_OF_BOUNDS;
+ }
+ grammarID = 2130;
+ break;
+ case 1:
+ done = 1;
+ grammarID = 4;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 2130:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MagneticVectorSetup), END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ if (iso2MagneticVectorSetupListType->MagneticVectorSetup.arrayLen < iso2MagneticVectorSetupListType_MagneticVectorSetup_ARRAY_SIZE) {
+ errn = decode_iso2MagneticVectorSetupType(stream, &iso2MagneticVectorSetupListType->MagneticVectorSetup.array[iso2MagneticVectorSetupListType->MagneticVectorSetup.arrayLen++]);
+ } else {
+ errn = EXI_ERROR_OUT_OF_BOUNDS;
+ }
+ grammarID = 2131;
+ break;
+ case 1:
+ done = 1;
+ grammarID = 4;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 2131:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MagneticVectorSetup), END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ if (iso2MagneticVectorSetupListType->MagneticVectorSetup.arrayLen < iso2MagneticVectorSetupListType_MagneticVectorSetup_ARRAY_SIZE) {
+ errn = decode_iso2MagneticVectorSetupType(stream, &iso2MagneticVectorSetupListType->MagneticVectorSetup.array[iso2MagneticVectorSetupListType->MagneticVectorSetup.arrayLen++]);
+ } else {
+ errn = EXI_ERROR_OUT_OF_BOUNDS;
+ }
+ grammarID = 2132;
+ break;
+ case 1:
+ done = 1;
+ grammarID = 4;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 2132:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MagneticVectorSetup), END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ if (iso2MagneticVectorSetupListType->MagneticVectorSetup.arrayLen < iso2MagneticVectorSetupListType_MagneticVectorSetup_ARRAY_SIZE) {
+ errn = decode_iso2MagneticVectorSetupType(stream, &iso2MagneticVectorSetupListType->MagneticVectorSetup.array[iso2MagneticVectorSetupListType->MagneticVectorSetup.arrayLen++]);
+ } else {
+ errn = EXI_ERROR_OUT_OF_BOUNDS;
+ }
+ grammarID = 2133;
+ break;
+ case 1:
+ done = 1;
+ grammarID = 4;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 2133:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MagneticVectorSetup), END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ if (iso2MagneticVectorSetupListType->MagneticVectorSetup.arrayLen < iso2MagneticVectorSetupListType_MagneticVectorSetup_ARRAY_SIZE) {
+ errn = decode_iso2MagneticVectorSetupType(stream, &iso2MagneticVectorSetupListType->MagneticVectorSetup.array[iso2MagneticVectorSetupListType->MagneticVectorSetup.arrayLen++]);
+ } else {
+ errn = EXI_ERROR_OUT_OF_BOUNDS;
+ }
+ grammarID = 2134;
+ break;
+ case 1:
+ done = 1;
+ grammarID = 4;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 2134:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MagneticVectorSetup), END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ if (iso2MagneticVectorSetupListType->MagneticVectorSetup.arrayLen < iso2MagneticVectorSetupListType_MagneticVectorSetup_ARRAY_SIZE) {
+ errn = decode_iso2MagneticVectorSetupType(stream, &iso2MagneticVectorSetupListType->MagneticVectorSetup.array[iso2MagneticVectorSetupListType->MagneticVectorSetup.arrayLen++]);
+ } else {
+ errn = EXI_ERROR_OUT_OF_BOUNDS;
+ }
+ grammarID = 2135;
+ break;
+ case 1:
+ done = 1;
+ grammarID = 4;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 2135:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MagneticVectorSetup), END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ if (iso2MagneticVectorSetupListType->MagneticVectorSetup.arrayLen < iso2MagneticVectorSetupListType_MagneticVectorSetup_ARRAY_SIZE) {
+ errn = decode_iso2MagneticVectorSetupType(stream, &iso2MagneticVectorSetupListType->MagneticVectorSetup.array[iso2MagneticVectorSetupListType->MagneticVectorSetup.arrayLen++]);
+ } else {
+ errn = EXI_ERROR_OUT_OF_BOUNDS;
+ }
+ grammarID = 2136;
+ break;
+ case 1:
+ done = 1;
+ grammarID = 4;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 2136:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MagneticVectorSetup), END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ if (iso2MagneticVectorSetupListType->MagneticVectorSetup.arrayLen < iso2MagneticVectorSetupListType_MagneticVectorSetup_ARRAY_SIZE) {
+ errn = decode_iso2MagneticVectorSetupType(stream, &iso2MagneticVectorSetupListType->MagneticVectorSetup.array[iso2MagneticVectorSetupListType->MagneticVectorSetup.arrayLen++]);
+ } else {
+ errn = EXI_ERROR_OUT_OF_BOUNDS;
+ }
+ grammarID = 2137;
+ break;
+ case 1:
+ done = 1;
+ grammarID = 4;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 2137:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MagneticVectorSetup), END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ if (iso2MagneticVectorSetupListType->MagneticVectorSetup.arrayLen < iso2MagneticVectorSetupListType_MagneticVectorSetup_ARRAY_SIZE) {
+ errn = decode_iso2MagneticVectorSetupType(stream, &iso2MagneticVectorSetupListType->MagneticVectorSetup.array[iso2MagneticVectorSetupListType->MagneticVectorSetup.arrayLen++]);
+ } else {
+ errn = EXI_ERROR_OUT_OF_BOUNDS;
+ }
+ grammarID = 2138;
+ break;
+ case 1:
+ done = 1;
+ grammarID = 4;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 2138:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MagneticVectorSetup), END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ if (iso2MagneticVectorSetupListType->MagneticVectorSetup.arrayLen < iso2MagneticVectorSetupListType_MagneticVectorSetup_ARRAY_SIZE) {
+ errn = decode_iso2MagneticVectorSetupType(stream, &iso2MagneticVectorSetupListType->MagneticVectorSetup.array[iso2MagneticVectorSetupListType->MagneticVectorSetup.arrayLen++]);
+ } else {
+ errn = EXI_ERROR_OUT_OF_BOUNDS;
+ }
+ grammarID = 2139;
+ break;
+ case 1:
+ done = 1;
+ grammarID = 4;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 2139:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MagneticVectorSetup), END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ if (iso2MagneticVectorSetupListType->MagneticVectorSetup.arrayLen < iso2MagneticVectorSetupListType_MagneticVectorSetup_ARRAY_SIZE) {
+ errn = decode_iso2MagneticVectorSetupType(stream, &iso2MagneticVectorSetupListType->MagneticVectorSetup.array[iso2MagneticVectorSetupListType->MagneticVectorSetup.arrayLen++]);
+ } else {
+ errn = EXI_ERROR_OUT_OF_BOUNDS;
+ }
+ grammarID = 2140;
+ break;
+ case 1:
+ done = 1;
+ grammarID = 4;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 2140:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MagneticVectorSetup), END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ if (iso2MagneticVectorSetupListType->MagneticVectorSetup.arrayLen < iso2MagneticVectorSetupListType_MagneticVectorSetup_ARRAY_SIZE) {
+ errn = decode_iso2MagneticVectorSetupType(stream, &iso2MagneticVectorSetupListType->MagneticVectorSetup.array[iso2MagneticVectorSetupListType->MagneticVectorSetup.arrayLen++]);
+ } else {
+ errn = EXI_ERROR_OUT_OF_BOUNDS;
+ }
+ grammarID = 2141;
+ break;
+ case 1:
+ done = 1;
+ grammarID = 4;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 2141:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MagneticVectorSetup), END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ if (iso2MagneticVectorSetupListType->MagneticVectorSetup.arrayLen < iso2MagneticVectorSetupListType_MagneticVectorSetup_ARRAY_SIZE) {
+ errn = decode_iso2MagneticVectorSetupType(stream, &iso2MagneticVectorSetupListType->MagneticVectorSetup.array[iso2MagneticVectorSetupListType->MagneticVectorSetup.arrayLen++]);
+ } else {
+ errn = EXI_ERROR_OUT_OF_BOUNDS;
+ }
+ grammarID = 2142;
+ break;
+ case 1:
+ done = 1;
+ grammarID = 4;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 2142:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MagneticVectorSetup), END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ if (iso2MagneticVectorSetupListType->MagneticVectorSetup.arrayLen < iso2MagneticVectorSetupListType_MagneticVectorSetup_ARRAY_SIZE) {
+ errn = decode_iso2MagneticVectorSetupType(stream, &iso2MagneticVectorSetupListType->MagneticVectorSetup.array[iso2MagneticVectorSetupListType->MagneticVectorSetup.arrayLen++]);
+ } else {
+ errn = EXI_ERROR_OUT_OF_BOUNDS;
+ }
+ grammarID = 2143;
+ break;
+ case 1:
+ done = 1;
+ grammarID = 4;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 2143:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MagneticVectorSetup), END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ if (iso2MagneticVectorSetupListType->MagneticVectorSetup.arrayLen < iso2MagneticVectorSetupListType_MagneticVectorSetup_ARRAY_SIZE) {
+ errn = decode_iso2MagneticVectorSetupType(stream, &iso2MagneticVectorSetupListType->MagneticVectorSetup.array[iso2MagneticVectorSetupListType->MagneticVectorSetup.arrayLen++]);
+ } else {
+ errn = EXI_ERROR_OUT_OF_BOUNDS;
+ }
+ grammarID = 2144;
+ break;
+ case 1:
+ done = 1;
+ grammarID = 4;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 2144:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MagneticVectorSetup), END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ if (iso2MagneticVectorSetupListType->MagneticVectorSetup.arrayLen < iso2MagneticVectorSetupListType_MagneticVectorSetup_ARRAY_SIZE) {
+ errn = decode_iso2MagneticVectorSetupType(stream, &iso2MagneticVectorSetupListType->MagneticVectorSetup.array[iso2MagneticVectorSetupListType->MagneticVectorSetup.arrayLen++]);
+ } else {
+ errn = EXI_ERROR_OUT_OF_BOUNDS;
+ }
+ grammarID = 2145;
+ break;
+ case 1:
+ done = 1;
+ grammarID = 4;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 2145:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MagneticVectorSetup), END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ if (iso2MagneticVectorSetupListType->MagneticVectorSetup.arrayLen < iso2MagneticVectorSetupListType_MagneticVectorSetup_ARRAY_SIZE) {
+ errn = decode_iso2MagneticVectorSetupType(stream, &iso2MagneticVectorSetupListType->MagneticVectorSetup.array[iso2MagneticVectorSetupListType->MagneticVectorSetup.arrayLen++]);
+ } else {
+ errn = EXI_ERROR_OUT_OF_BOUNDS;
+ }
+ grammarID = 2146;
+ break;
+ case 1:
+ done = 1;
+ grammarID = 4;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 2146:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MagneticVectorSetup), END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ if (iso2MagneticVectorSetupListType->MagneticVectorSetup.arrayLen < iso2MagneticVectorSetupListType_MagneticVectorSetup_ARRAY_SIZE) {
+ errn = decode_iso2MagneticVectorSetupType(stream, &iso2MagneticVectorSetupListType->MagneticVectorSetup.array[iso2MagneticVectorSetupListType->MagneticVectorSetup.arrayLen++]);
+ } else {
+ errn = EXI_ERROR_OUT_OF_BOUNDS;
+ }
+ grammarID = 2147;
+ break;
+ case 1:
+ done = 1;
+ grammarID = 4;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 2147:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MagneticVectorSetup), END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ if (iso2MagneticVectorSetupListType->MagneticVectorSetup.arrayLen < iso2MagneticVectorSetupListType_MagneticVectorSetup_ARRAY_SIZE) {
+ errn = decode_iso2MagneticVectorSetupType(stream, &iso2MagneticVectorSetupListType->MagneticVectorSetup.array[iso2MagneticVectorSetupListType->MagneticVectorSetup.arrayLen++]);
+ } else {
+ errn = EXI_ERROR_OUT_OF_BOUNDS;
+ }
+ grammarID = 2148;
+ break;
+ case 1:
+ done = 1;
+ grammarID = 4;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 2148:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MagneticVectorSetup), END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ if (iso2MagneticVectorSetupListType->MagneticVectorSetup.arrayLen < iso2MagneticVectorSetupListType_MagneticVectorSetup_ARRAY_SIZE) {
+ errn = decode_iso2MagneticVectorSetupType(stream, &iso2MagneticVectorSetupListType->MagneticVectorSetup.array[iso2MagneticVectorSetupListType->MagneticVectorSetup.arrayLen++]);
+ } else {
+ errn = EXI_ERROR_OUT_OF_BOUNDS;
+ }
+ grammarID = 2149;
+ break;
+ case 1:
+ done = 1;
+ grammarID = 4;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 2149:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MagneticVectorSetup), END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ if (iso2MagneticVectorSetupListType->MagneticVectorSetup.arrayLen < iso2MagneticVectorSetupListType_MagneticVectorSetup_ARRAY_SIZE) {
+ errn = decode_iso2MagneticVectorSetupType(stream, &iso2MagneticVectorSetupListType->MagneticVectorSetup.array[iso2MagneticVectorSetupListType->MagneticVectorSetup.arrayLen++]);
+ } else {
+ errn = EXI_ERROR_OUT_OF_BOUNDS;
+ }
+ grammarID = 2150;
+ break;
+ case 1:
+ done = 1;
+ grammarID = 4;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 2150:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MagneticVectorSetup), END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ if (iso2MagneticVectorSetupListType->MagneticVectorSetup.arrayLen < iso2MagneticVectorSetupListType_MagneticVectorSetup_ARRAY_SIZE) {
+ errn = decode_iso2MagneticVectorSetupType(stream, &iso2MagneticVectorSetupListType->MagneticVectorSetup.array[iso2MagneticVectorSetupListType->MagneticVectorSetup.arrayLen++]);
+ } else {
+ errn = EXI_ERROR_OUT_OF_BOUNDS;
+ }
+ grammarID = 2151;
+ break;
+ case 1:
+ done = 1;
+ grammarID = 4;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 2151:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MagneticVectorSetup), END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ if (iso2MagneticVectorSetupListType->MagneticVectorSetup.arrayLen < iso2MagneticVectorSetupListType_MagneticVectorSetup_ARRAY_SIZE) {
+ errn = decode_iso2MagneticVectorSetupType(stream, &iso2MagneticVectorSetupListType->MagneticVectorSetup.array[iso2MagneticVectorSetupListType->MagneticVectorSetup.arrayLen++]);
+ } else {
+ errn = EXI_ERROR_OUT_OF_BOUNDS;
+ }
+ grammarID = 2152;
+ break;
+ case 1:
+ done = 1;
+ grammarID = 4;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 2152:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MagneticVectorSetup), END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ if (iso2MagneticVectorSetupListType->MagneticVectorSetup.arrayLen < iso2MagneticVectorSetupListType_MagneticVectorSetup_ARRAY_SIZE) {
+ errn = decode_iso2MagneticVectorSetupType(stream, &iso2MagneticVectorSetupListType->MagneticVectorSetup.array[iso2MagneticVectorSetupListType->MagneticVectorSetup.arrayLen++]);
+ } else {
+ errn = EXI_ERROR_OUT_OF_BOUNDS;
+ }
+ grammarID = 2153;
+ break;
+ case 1:
+ done = 1;
+ grammarID = 4;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 2153:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MagneticVectorSetup), END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ if (iso2MagneticVectorSetupListType->MagneticVectorSetup.arrayLen < iso2MagneticVectorSetupListType_MagneticVectorSetup_ARRAY_SIZE) {
+ errn = decode_iso2MagneticVectorSetupType(stream, &iso2MagneticVectorSetupListType->MagneticVectorSetup.array[iso2MagneticVectorSetupListType->MagneticVectorSetup.arrayLen++]);
+ } else {
+ errn = EXI_ERROR_OUT_OF_BOUNDS;
+ }
+ grammarID = 2154;
+ break;
+ case 1:
+ done = 1;
+ grammarID = 4;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 2154:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MagneticVectorSetup), END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ if (iso2MagneticVectorSetupListType->MagneticVectorSetup.arrayLen < iso2MagneticVectorSetupListType_MagneticVectorSetup_ARRAY_SIZE) {
+ errn = decode_iso2MagneticVectorSetupType(stream, &iso2MagneticVectorSetupListType->MagneticVectorSetup.array[iso2MagneticVectorSetupListType->MagneticVectorSetup.arrayLen++]);
+ } else {
+ errn = EXI_ERROR_OUT_OF_BOUNDS;
+ }
+ grammarID = 2155;
+ break;
+ case 1:
+ done = 1;
+ grammarID = 4;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 2155:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MagneticVectorSetup), END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ if (iso2MagneticVectorSetupListType->MagneticVectorSetup.arrayLen < iso2MagneticVectorSetupListType_MagneticVectorSetup_ARRAY_SIZE) {
+ errn = decode_iso2MagneticVectorSetupType(stream, &iso2MagneticVectorSetupListType->MagneticVectorSetup.array[iso2MagneticVectorSetupListType->MagneticVectorSetup.arrayLen++]);
+ } else {
+ errn = EXI_ERROR_OUT_OF_BOUNDS;
+ }
+ grammarID = 2156;
+ break;
+ case 1:
+ done = 1;
+ grammarID = 4;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 2156:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MagneticVectorSetup), END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ if (iso2MagneticVectorSetupListType->MagneticVectorSetup.arrayLen < iso2MagneticVectorSetupListType_MagneticVectorSetup_ARRAY_SIZE) {
+ errn = decode_iso2MagneticVectorSetupType(stream, &iso2MagneticVectorSetupListType->MagneticVectorSetup.array[iso2MagneticVectorSetupListType->MagneticVectorSetup.arrayLen++]);
+ } else {
+ errn = EXI_ERROR_OUT_OF_BOUNDS;
+ }
+ grammarID = 2157;
+ break;
+ case 1:
+ done = 1;
+ grammarID = 4;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 2157:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MagneticVectorSetup), END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ if (iso2MagneticVectorSetupListType->MagneticVectorSetup.arrayLen < iso2MagneticVectorSetupListType_MagneticVectorSetup_ARRAY_SIZE) {
+ errn = decode_iso2MagneticVectorSetupType(stream, &iso2MagneticVectorSetupListType->MagneticVectorSetup.array[iso2MagneticVectorSetupListType->MagneticVectorSetup.arrayLen++]);
+ } else {
+ errn = EXI_ERROR_OUT_OF_BOUNDS;
+ }
+ grammarID = 2158;
+ break;
+ case 1:
+ done = 1;
+ grammarID = 4;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 2158:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MagneticVectorSetup), END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ if (iso2MagneticVectorSetupListType->MagneticVectorSetup.arrayLen < iso2MagneticVectorSetupListType_MagneticVectorSetup_ARRAY_SIZE) {
+ errn = decode_iso2MagneticVectorSetupType(stream, &iso2MagneticVectorSetupListType->MagneticVectorSetup.array[iso2MagneticVectorSetupListType->MagneticVectorSetup.arrayLen++]);
+ } else {
+ errn = EXI_ERROR_OUT_OF_BOUNDS;
+ }
+ grammarID = 2159;
+ break;
+ case 1:
+ done = 1;
+ grammarID = 4;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 2159:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MagneticVectorSetup), END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ if (iso2MagneticVectorSetupListType->MagneticVectorSetup.arrayLen < iso2MagneticVectorSetupListType_MagneticVectorSetup_ARRAY_SIZE) {
+ errn = decode_iso2MagneticVectorSetupType(stream, &iso2MagneticVectorSetupListType->MagneticVectorSetup.array[iso2MagneticVectorSetupListType->MagneticVectorSetup.arrayLen++]);
+ } else {
+ errn = EXI_ERROR_OUT_OF_BOUNDS;
+ }
+ grammarID = 2160;
+ break;
+ case 1:
+ done = 1;
+ grammarID = 4;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 2160:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MagneticVectorSetup), END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ if (iso2MagneticVectorSetupListType->MagneticVectorSetup.arrayLen < iso2MagneticVectorSetupListType_MagneticVectorSetup_ARRAY_SIZE) {
+ errn = decode_iso2MagneticVectorSetupType(stream, &iso2MagneticVectorSetupListType->MagneticVectorSetup.array[iso2MagneticVectorSetupListType->MagneticVectorSetup.arrayLen++]);
+ } else {
+ errn = EXI_ERROR_OUT_OF_BOUNDS;
+ }
+ grammarID = 2161;
+ break;
+ case 1:
+ done = 1;
+ grammarID = 4;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 2161:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MagneticVectorSetup), END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ if (iso2MagneticVectorSetupListType->MagneticVectorSetup.arrayLen < iso2MagneticVectorSetupListType_MagneticVectorSetup_ARRAY_SIZE) {
+ errn = decode_iso2MagneticVectorSetupType(stream, &iso2MagneticVectorSetupListType->MagneticVectorSetup.array[iso2MagneticVectorSetupListType->MagneticVectorSetup.arrayLen++]);
+ } else {
+ errn = EXI_ERROR_OUT_OF_BOUNDS;
+ }
+ grammarID = 2162;
+ break;
+ case 1:
+ done = 1;
+ grammarID = 4;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 2162:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MagneticVectorSetup), END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ if (iso2MagneticVectorSetupListType->MagneticVectorSetup.arrayLen < iso2MagneticVectorSetupListType_MagneticVectorSetup_ARRAY_SIZE) {
+ errn = decode_iso2MagneticVectorSetupType(stream, &iso2MagneticVectorSetupListType->MagneticVectorSetup.array[iso2MagneticVectorSetupListType->MagneticVectorSetup.arrayLen++]);
+ } else {
+ errn = EXI_ERROR_OUT_OF_BOUNDS;
+ }
+ grammarID = 2163;
+ break;
+ case 1:
+ done = 1;
+ grammarID = 4;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 2163:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MagneticVectorSetup), END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ if (iso2MagneticVectorSetupListType->MagneticVectorSetup.arrayLen < iso2MagneticVectorSetupListType_MagneticVectorSetup_ARRAY_SIZE) {
+ errn = decode_iso2MagneticVectorSetupType(stream, &iso2MagneticVectorSetupListType->MagneticVectorSetup.array[iso2MagneticVectorSetupListType->MagneticVectorSetup.arrayLen++]);
+ } else {
+ errn = EXI_ERROR_OUT_OF_BOUNDS;
+ }
+ grammarID = 2164;
+ break;
+ case 1:
+ done = 1;
+ grammarID = 4;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 2164:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MagneticVectorSetup), END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ if (iso2MagneticVectorSetupListType->MagneticVectorSetup.arrayLen < iso2MagneticVectorSetupListType_MagneticVectorSetup_ARRAY_SIZE) {
+ errn = decode_iso2MagneticVectorSetupType(stream, &iso2MagneticVectorSetupListType->MagneticVectorSetup.array[iso2MagneticVectorSetupListType->MagneticVectorSetup.arrayLen++]);
+ } else {
+ errn = EXI_ERROR_OUT_OF_BOUNDS;
+ }
+ grammarID = 2165;
+ break;
+ case 1:
+ done = 1;
+ grammarID = 4;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 2165:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MagneticVectorSetup), END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ if (iso2MagneticVectorSetupListType->MagneticVectorSetup.arrayLen < iso2MagneticVectorSetupListType_MagneticVectorSetup_ARRAY_SIZE) {
+ errn = decode_iso2MagneticVectorSetupType(stream, &iso2MagneticVectorSetupListType->MagneticVectorSetup.array[iso2MagneticVectorSetupListType->MagneticVectorSetup.arrayLen++]);
+ } else {
+ errn = EXI_ERROR_OUT_OF_BOUNDS;
+ }
+ grammarID = 2166;
+ break;
+ case 1:
+ done = 1;
+ grammarID = 4;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 2166:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MagneticVectorSetup), END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ if (iso2MagneticVectorSetupListType->MagneticVectorSetup.arrayLen < iso2MagneticVectorSetupListType_MagneticVectorSetup_ARRAY_SIZE) {
+ errn = decode_iso2MagneticVectorSetupType(stream, &iso2MagneticVectorSetupListType->MagneticVectorSetup.array[iso2MagneticVectorSetupListType->MagneticVectorSetup.arrayLen++]);
+ } else {
+ errn = EXI_ERROR_OUT_OF_BOUNDS;
+ }
+ grammarID = 2167;
+ break;
+ case 1:
+ done = 1;
+ grammarID = 4;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 2167:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MagneticVectorSetup), END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ if (iso2MagneticVectorSetupListType->MagneticVectorSetup.arrayLen < iso2MagneticVectorSetupListType_MagneticVectorSetup_ARRAY_SIZE) {
+ errn = decode_iso2MagneticVectorSetupType(stream, &iso2MagneticVectorSetupListType->MagneticVectorSetup.array[iso2MagneticVectorSetupListType->MagneticVectorSetup.arrayLen++]);
+ } else {
+ errn = EXI_ERROR_OUT_OF_BOUNDS;
+ }
+ grammarID = 2168;
+ break;
+ case 1:
+ done = 1;
+ grammarID = 4;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 2168:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MagneticVectorSetup), END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ if (iso2MagneticVectorSetupListType->MagneticVectorSetup.arrayLen < iso2MagneticVectorSetupListType_MagneticVectorSetup_ARRAY_SIZE) {
+ errn = decode_iso2MagneticVectorSetupType(stream, &iso2MagneticVectorSetupListType->MagneticVectorSetup.array[iso2MagneticVectorSetupListType->MagneticVectorSetup.arrayLen++]);
+ } else {
+ errn = EXI_ERROR_OUT_OF_BOUNDS;
+ }
+ grammarID = 2169;
+ break;
+ case 1:
+ done = 1;
+ grammarID = 4;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 2169:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MagneticVectorSetup), END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ if (iso2MagneticVectorSetupListType->MagneticVectorSetup.arrayLen < iso2MagneticVectorSetupListType_MagneticVectorSetup_ARRAY_SIZE) {
+ errn = decode_iso2MagneticVectorSetupType(stream, &iso2MagneticVectorSetupListType->MagneticVectorSetup.array[iso2MagneticVectorSetupListType->MagneticVectorSetup.arrayLen++]);
+ } else {
+ errn = EXI_ERROR_OUT_OF_BOUNDS;
+ }
+ grammarID = 2170;
+ break;
+ case 1:
+ done = 1;
+ grammarID = 4;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 2170:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MagneticVectorSetup), END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ if (iso2MagneticVectorSetupListType->MagneticVectorSetup.arrayLen < iso2MagneticVectorSetupListType_MagneticVectorSetup_ARRAY_SIZE) {
+ errn = decode_iso2MagneticVectorSetupType(stream, &iso2MagneticVectorSetupListType->MagneticVectorSetup.array[iso2MagneticVectorSetupListType->MagneticVectorSetup.arrayLen++]);
+ } else {
+ errn = EXI_ERROR_OUT_OF_BOUNDS;
+ }
+ grammarID = 2171;
+ break;
+ case 1:
+ done = 1;
+ grammarID = 4;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 2171:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MagneticVectorSetup), END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ if (iso2MagneticVectorSetupListType->MagneticVectorSetup.arrayLen < iso2MagneticVectorSetupListType_MagneticVectorSetup_ARRAY_SIZE) {
+ errn = decode_iso2MagneticVectorSetupType(stream, &iso2MagneticVectorSetupListType->MagneticVectorSetup.array[iso2MagneticVectorSetupListType->MagneticVectorSetup.arrayLen++]);
+ } else {
+ errn = EXI_ERROR_OUT_OF_BOUNDS;
+ }
+ grammarID = 2172;
+ break;
+ case 1:
+ done = 1;
+ grammarID = 4;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 2172:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MagneticVectorSetup), END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ if (iso2MagneticVectorSetupListType->MagneticVectorSetup.arrayLen < iso2MagneticVectorSetupListType_MagneticVectorSetup_ARRAY_SIZE) {
+ errn = decode_iso2MagneticVectorSetupType(stream, &iso2MagneticVectorSetupListType->MagneticVectorSetup.array[iso2MagneticVectorSetupListType->MagneticVectorSetup.arrayLen++]);
+ } else {
+ errn = EXI_ERROR_OUT_OF_BOUNDS;
+ }
+ grammarID = 2173;
+ break;
+ case 1:
+ done = 1;
+ grammarID = 4;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 2173:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MagneticVectorSetup), END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ if (iso2MagneticVectorSetupListType->MagneticVectorSetup.arrayLen < iso2MagneticVectorSetupListType_MagneticVectorSetup_ARRAY_SIZE) {
+ errn = decode_iso2MagneticVectorSetupType(stream, &iso2MagneticVectorSetupListType->MagneticVectorSetup.array[iso2MagneticVectorSetupListType->MagneticVectorSetup.arrayLen++]);
+ } else {
+ errn = EXI_ERROR_OUT_OF_BOUNDS;
+ }
+ grammarID = 2174;
+ break;
+ case 1:
+ done = 1;
+ grammarID = 4;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 2174:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MagneticVectorSetup), END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ if (iso2MagneticVectorSetupListType->MagneticVectorSetup.arrayLen < iso2MagneticVectorSetupListType_MagneticVectorSetup_ARRAY_SIZE) {
+ errn = decode_iso2MagneticVectorSetupType(stream, &iso2MagneticVectorSetupListType->MagneticVectorSetup.array[iso2MagneticVectorSetupListType->MagneticVectorSetup.arrayLen++]);
+ } else {
+ errn = EXI_ERROR_OUT_OF_BOUNDS;
+ }
+ grammarID = 2175;
+ break;
+ case 1:
+ done = 1;
+ grammarID = 4;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 2175:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MagneticVectorSetup), END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ if (iso2MagneticVectorSetupListType->MagneticVectorSetup.arrayLen < iso2MagneticVectorSetupListType_MagneticVectorSetup_ARRAY_SIZE) {
+ errn = decode_iso2MagneticVectorSetupType(stream, &iso2MagneticVectorSetupListType->MagneticVectorSetup.array[iso2MagneticVectorSetupListType->MagneticVectorSetup.arrayLen++]);
+ } else {
+ errn = EXI_ERROR_OUT_OF_BOUNDS;
+ }
+ grammarID = 2176;
+ break;
+ case 1:
+ done = 1;
+ grammarID = 4;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 2176:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MagneticVectorSetup), END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ if (iso2MagneticVectorSetupListType->MagneticVectorSetup.arrayLen < iso2MagneticVectorSetupListType_MagneticVectorSetup_ARRAY_SIZE) {
+ errn = decode_iso2MagneticVectorSetupType(stream, &iso2MagneticVectorSetupListType->MagneticVectorSetup.array[iso2MagneticVectorSetupListType->MagneticVectorSetup.arrayLen++]);
+ } else {
+ errn = EXI_ERROR_OUT_OF_BOUNDS;
+ }
+ grammarID = 2177;
+ break;
+ case 1:
+ done = 1;
+ grammarID = 4;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 2177:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MagneticVectorSetup), END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ if (iso2MagneticVectorSetupListType->MagneticVectorSetup.arrayLen < iso2MagneticVectorSetupListType_MagneticVectorSetup_ARRAY_SIZE) {
+ errn = decode_iso2MagneticVectorSetupType(stream, &iso2MagneticVectorSetupListType->MagneticVectorSetup.array[iso2MagneticVectorSetupListType->MagneticVectorSetup.arrayLen++]);
+ } else {
+ errn = EXI_ERROR_OUT_OF_BOUNDS;
+ }
+ grammarID = 2178;
+ break;
+ case 1:
+ done = 1;
+ grammarID = 4;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 2178:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MagneticVectorSetup), END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ if (iso2MagneticVectorSetupListType->MagneticVectorSetup.arrayLen < iso2MagneticVectorSetupListType_MagneticVectorSetup_ARRAY_SIZE) {
+ errn = decode_iso2MagneticVectorSetupType(stream, &iso2MagneticVectorSetupListType->MagneticVectorSetup.array[iso2MagneticVectorSetupListType->MagneticVectorSetup.arrayLen++]);
+ } else {
+ errn = EXI_ERROR_OUT_OF_BOUNDS;
+ }
+ grammarID = 2179;
+ break;
+ case 1:
+ done = 1;
+ grammarID = 4;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 2179:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MagneticVectorSetup), END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ if (iso2MagneticVectorSetupListType->MagneticVectorSetup.arrayLen < iso2MagneticVectorSetupListType_MagneticVectorSetup_ARRAY_SIZE) {
+ errn = decode_iso2MagneticVectorSetupType(stream, &iso2MagneticVectorSetupListType->MagneticVectorSetup.array[iso2MagneticVectorSetupListType->MagneticVectorSetup.arrayLen++]);
+ } else {
+ errn = EXI_ERROR_OUT_OF_BOUNDS;
+ }
+ grammarID = 2180;
+ break;
+ case 1:
+ done = 1;
+ grammarID = 4;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 2180:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MagneticVectorSetup), END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ if (iso2MagneticVectorSetupListType->MagneticVectorSetup.arrayLen < iso2MagneticVectorSetupListType_MagneticVectorSetup_ARRAY_SIZE) {
+ errn = decode_iso2MagneticVectorSetupType(stream, &iso2MagneticVectorSetupListType->MagneticVectorSetup.array[iso2MagneticVectorSetupListType->MagneticVectorSetup.arrayLen++]);
+ } else {
+ errn = EXI_ERROR_OUT_OF_BOUNDS;
+ }
+ grammarID = 2181;
+ break;
+ case 1:
+ done = 1;
+ grammarID = 4;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 2181:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MagneticVectorSetup), END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ if (iso2MagneticVectorSetupListType->MagneticVectorSetup.arrayLen < iso2MagneticVectorSetupListType_MagneticVectorSetup_ARRAY_SIZE) {
+ errn = decode_iso2MagneticVectorSetupType(stream, &iso2MagneticVectorSetupListType->MagneticVectorSetup.array[iso2MagneticVectorSetupListType->MagneticVectorSetup.arrayLen++]);
+ } else {
+ errn = EXI_ERROR_OUT_OF_BOUNDS;
+ }
+ grammarID = 2182;
+ break;
+ case 1:
+ done = 1;
+ grammarID = 4;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 2182:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MagneticVectorSetup), END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ if (iso2MagneticVectorSetupListType->MagneticVectorSetup.arrayLen < iso2MagneticVectorSetupListType_MagneticVectorSetup_ARRAY_SIZE) {
+ errn = decode_iso2MagneticVectorSetupType(stream, &iso2MagneticVectorSetupListType->MagneticVectorSetup.array[iso2MagneticVectorSetupListType->MagneticVectorSetup.arrayLen++]);
+ } else {
+ errn = EXI_ERROR_OUT_OF_BOUNDS;
+ }
+ grammarID = 2183;
+ break;
+ case 1:
+ done = 1;
+ grammarID = 4;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 2183:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MagneticVectorSetup), END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ if (iso2MagneticVectorSetupListType->MagneticVectorSetup.arrayLen < iso2MagneticVectorSetupListType_MagneticVectorSetup_ARRAY_SIZE) {
+ errn = decode_iso2MagneticVectorSetupType(stream, &iso2MagneticVectorSetupListType->MagneticVectorSetup.array[iso2MagneticVectorSetupListType->MagneticVectorSetup.arrayLen++]);
+ } else {
+ errn = EXI_ERROR_OUT_OF_BOUNDS;
+ }
+ grammarID = 2184;
+ break;
+ case 1:
+ done = 1;
+ grammarID = 4;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 2184:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MagneticVectorSetup), END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ if (iso2MagneticVectorSetupListType->MagneticVectorSetup.arrayLen < iso2MagneticVectorSetupListType_MagneticVectorSetup_ARRAY_SIZE) {
+ errn = decode_iso2MagneticVectorSetupType(stream, &iso2MagneticVectorSetupListType->MagneticVectorSetup.array[iso2MagneticVectorSetupListType->MagneticVectorSetup.arrayLen++]);
+ } else {
+ errn = EXI_ERROR_OUT_OF_BOUNDS;
+ }
+ grammarID = 2185;
+ break;
+ case 1:
+ done = 1;
+ grammarID = 4;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 2185:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MagneticVectorSetup), END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ if (iso2MagneticVectorSetupListType->MagneticVectorSetup.arrayLen < iso2MagneticVectorSetupListType_MagneticVectorSetup_ARRAY_SIZE) {
+ errn = decode_iso2MagneticVectorSetupType(stream, &iso2MagneticVectorSetupListType->MagneticVectorSetup.array[iso2MagneticVectorSetupListType->MagneticVectorSetup.arrayLen++]);
+ } else {
+ errn = EXI_ERROR_OUT_OF_BOUNDS;
+ }
+ grammarID = 2186;
+ break;
+ case 1:
+ done = 1;
+ grammarID = 4;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 2186:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MagneticVectorSetup), END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ if (iso2MagneticVectorSetupListType->MagneticVectorSetup.arrayLen < iso2MagneticVectorSetupListType_MagneticVectorSetup_ARRAY_SIZE) {
+ errn = decode_iso2MagneticVectorSetupType(stream, &iso2MagneticVectorSetupListType->MagneticVectorSetup.array[iso2MagneticVectorSetupListType->MagneticVectorSetup.arrayLen++]);
+ } else {
+ errn = EXI_ERROR_OUT_OF_BOUNDS;
+ }
+ grammarID = 2187;
+ break;
+ case 1:
+ done = 1;
+ grammarID = 4;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 2187:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MagneticVectorSetup), END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ if (iso2MagneticVectorSetupListType->MagneticVectorSetup.arrayLen < iso2MagneticVectorSetupListType_MagneticVectorSetup_ARRAY_SIZE) {
+ errn = decode_iso2MagneticVectorSetupType(stream, &iso2MagneticVectorSetupListType->MagneticVectorSetup.array[iso2MagneticVectorSetupListType->MagneticVectorSetup.arrayLen++]);
+ } else {
+ errn = EXI_ERROR_OUT_OF_BOUNDS;
+ }
+ grammarID = 2188;
+ break;
+ case 1:
+ done = 1;
+ grammarID = 4;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 2188:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MagneticVectorSetup), END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ if (iso2MagneticVectorSetupListType->MagneticVectorSetup.arrayLen < iso2MagneticVectorSetupListType_MagneticVectorSetup_ARRAY_SIZE) {
+ errn = decode_iso2MagneticVectorSetupType(stream, &iso2MagneticVectorSetupListType->MagneticVectorSetup.array[iso2MagneticVectorSetupListType->MagneticVectorSetup.arrayLen++]);
+ } else {
+ errn = EXI_ERROR_OUT_OF_BOUNDS;
+ }
+ grammarID = 2189;
+ break;
+ case 1:
+ done = 1;
+ grammarID = 4;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 2189:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MagneticVectorSetup), END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ if (iso2MagneticVectorSetupListType->MagneticVectorSetup.arrayLen < iso2MagneticVectorSetupListType_MagneticVectorSetup_ARRAY_SIZE) {
+ errn = decode_iso2MagneticVectorSetupType(stream, &iso2MagneticVectorSetupListType->MagneticVectorSetup.array[iso2MagneticVectorSetupListType->MagneticVectorSetup.arrayLen++]);
+ } else {
+ errn = EXI_ERROR_OUT_OF_BOUNDS;
+ }
+ grammarID = 2190;
+ break;
+ case 1:
+ done = 1;
+ grammarID = 4;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 2190:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MagneticVectorSetup), END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ if (iso2MagneticVectorSetupListType->MagneticVectorSetup.arrayLen < iso2MagneticVectorSetupListType_MagneticVectorSetup_ARRAY_SIZE) {
+ errn = decode_iso2MagneticVectorSetupType(stream, &iso2MagneticVectorSetupListType->MagneticVectorSetup.array[iso2MagneticVectorSetupListType->MagneticVectorSetup.arrayLen++]);
+ } else {
+ errn = EXI_ERROR_OUT_OF_BOUNDS;
+ }
+ grammarID = 2191;
+ break;
+ case 1:
+ done = 1;
+ grammarID = 4;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 2191:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MagneticVectorSetup), END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ if (iso2MagneticVectorSetupListType->MagneticVectorSetup.arrayLen < iso2MagneticVectorSetupListType_MagneticVectorSetup_ARRAY_SIZE) {
+ errn = decode_iso2MagneticVectorSetupType(stream, &iso2MagneticVectorSetupListType->MagneticVectorSetup.array[iso2MagneticVectorSetupListType->MagneticVectorSetup.arrayLen++]);
+ } else {
+ errn = EXI_ERROR_OUT_OF_BOUNDS;
+ }
+ grammarID = 2192;
+ break;
+ case 1:
+ done = 1;
+ grammarID = 4;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 2192:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MagneticVectorSetup), END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ if (iso2MagneticVectorSetupListType->MagneticVectorSetup.arrayLen < iso2MagneticVectorSetupListType_MagneticVectorSetup_ARRAY_SIZE) {
+ errn = decode_iso2MagneticVectorSetupType(stream, &iso2MagneticVectorSetupListType->MagneticVectorSetup.array[iso2MagneticVectorSetupListType->MagneticVectorSetup.arrayLen++]);
+ } else {
+ errn = EXI_ERROR_OUT_OF_BOUNDS;
+ }
+ grammarID = 2193;
+ break;
+ case 1:
+ done = 1;
+ grammarID = 4;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 2193:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MagneticVectorSetup), END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ if (iso2MagneticVectorSetupListType->MagneticVectorSetup.arrayLen < iso2MagneticVectorSetupListType_MagneticVectorSetup_ARRAY_SIZE) {
+ errn = decode_iso2MagneticVectorSetupType(stream, &iso2MagneticVectorSetupListType->MagneticVectorSetup.array[iso2MagneticVectorSetupListType->MagneticVectorSetup.arrayLen++]);
+ } else {
+ errn = EXI_ERROR_OUT_OF_BOUNDS;
+ }
+ grammarID = 2194;
+ break;
+ case 1:
+ done = 1;
+ grammarID = 4;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 2194:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MagneticVectorSetup), END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ if (iso2MagneticVectorSetupListType->MagneticVectorSetup.arrayLen < iso2MagneticVectorSetupListType_MagneticVectorSetup_ARRAY_SIZE) {
+ errn = decode_iso2MagneticVectorSetupType(stream, &iso2MagneticVectorSetupListType->MagneticVectorSetup.array[iso2MagneticVectorSetupListType->MagneticVectorSetup.arrayLen++]);
+ } else {
+ errn = EXI_ERROR_OUT_OF_BOUNDS;
+ }
+ grammarID = 2195;
+ break;
+ case 1:
+ done = 1;
+ grammarID = 4;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 2195:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MagneticVectorSetup), END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ if (iso2MagneticVectorSetupListType->MagneticVectorSetup.arrayLen < iso2MagneticVectorSetupListType_MagneticVectorSetup_ARRAY_SIZE) {
+ errn = decode_iso2MagneticVectorSetupType(stream, &iso2MagneticVectorSetupListType->MagneticVectorSetup.array[iso2MagneticVectorSetupListType->MagneticVectorSetup.arrayLen++]);
+ } else {
+ errn = EXI_ERROR_OUT_OF_BOUNDS;
+ }
+ grammarID = 2196;
+ break;
+ case 1:
+ done = 1;
+ grammarID = 4;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 2196:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MagneticVectorSetup), END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ if (iso2MagneticVectorSetupListType->MagneticVectorSetup.arrayLen < iso2MagneticVectorSetupListType_MagneticVectorSetup_ARRAY_SIZE) {
+ errn = decode_iso2MagneticVectorSetupType(stream, &iso2MagneticVectorSetupListType->MagneticVectorSetup.array[iso2MagneticVectorSetupListType->MagneticVectorSetup.arrayLen++]);
+ } else {
+ errn = EXI_ERROR_OUT_OF_BOUNDS;
+ }
+ grammarID = 2197;
+ break;
+ case 1:
+ done = 1;
+ grammarID = 4;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 2197:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MagneticVectorSetup), END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ if (iso2MagneticVectorSetupListType->MagneticVectorSetup.arrayLen < iso2MagneticVectorSetupListType_MagneticVectorSetup_ARRAY_SIZE) {
+ errn = decode_iso2MagneticVectorSetupType(stream, &iso2MagneticVectorSetupListType->MagneticVectorSetup.array[iso2MagneticVectorSetupListType->MagneticVectorSetup.arrayLen++]);
+ } else {
+ errn = EXI_ERROR_OUT_OF_BOUNDS;
+ }
+ grammarID = 2198;
+ break;
+ case 1:
+ done = 1;
+ grammarID = 4;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 2198:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MagneticVectorSetup), END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ if (iso2MagneticVectorSetupListType->MagneticVectorSetup.arrayLen < iso2MagneticVectorSetupListType_MagneticVectorSetup_ARRAY_SIZE) {
+ errn = decode_iso2MagneticVectorSetupType(stream, &iso2MagneticVectorSetupListType->MagneticVectorSetup.array[iso2MagneticVectorSetupListType->MagneticVectorSetup.arrayLen++]);
+ } else {
+ errn = EXI_ERROR_OUT_OF_BOUNDS;
+ }
+ grammarID = 2199;
+ break;
+ case 1:
+ done = 1;
+ grammarID = 4;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 2199:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MagneticVectorSetup), END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ if (iso2MagneticVectorSetupListType->MagneticVectorSetup.arrayLen < iso2MagneticVectorSetupListType_MagneticVectorSetup_ARRAY_SIZE) {
+ errn = decode_iso2MagneticVectorSetupType(stream, &iso2MagneticVectorSetupListType->MagneticVectorSetup.array[iso2MagneticVectorSetupListType->MagneticVectorSetup.arrayLen++]);
+ } else {
+ errn = EXI_ERROR_OUT_OF_BOUNDS;
+ }
+ grammarID = 2200;
+ break;
+ case 1:
+ done = 1;
+ grammarID = 4;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 2200:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MagneticVectorSetup), END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ if (iso2MagneticVectorSetupListType->MagneticVectorSetup.arrayLen < iso2MagneticVectorSetupListType_MagneticVectorSetup_ARRAY_SIZE) {
+ errn = decode_iso2MagneticVectorSetupType(stream, &iso2MagneticVectorSetupListType->MagneticVectorSetup.array[iso2MagneticVectorSetupListType->MagneticVectorSetup.arrayLen++]);
+ } else {
+ errn = EXI_ERROR_OUT_OF_BOUNDS;
+ }
+ grammarID = 2201;
+ break;
+ case 1:
+ done = 1;
+ grammarID = 4;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 2201:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MagneticVectorSetup), END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ if (iso2MagneticVectorSetupListType->MagneticVectorSetup.arrayLen < iso2MagneticVectorSetupListType_MagneticVectorSetup_ARRAY_SIZE) {
+ errn = decode_iso2MagneticVectorSetupType(stream, &iso2MagneticVectorSetupListType->MagneticVectorSetup.array[iso2MagneticVectorSetupListType->MagneticVectorSetup.arrayLen++]);
+ } else {
+ errn = EXI_ERROR_OUT_OF_BOUNDS;
+ }
+ grammarID = 2202;
+ break;
+ case 1:
+ done = 1;
+ grammarID = 4;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 2202:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MagneticVectorSetup), END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ if (iso2MagneticVectorSetupListType->MagneticVectorSetup.arrayLen < iso2MagneticVectorSetupListType_MagneticVectorSetup_ARRAY_SIZE) {
+ errn = decode_iso2MagneticVectorSetupType(stream, &iso2MagneticVectorSetupListType->MagneticVectorSetup.array[iso2MagneticVectorSetupListType->MagneticVectorSetup.arrayLen++]);
+ } else {
+ errn = EXI_ERROR_OUT_OF_BOUNDS;
+ }
+ grammarID = 2203;
+ break;
+ case 1:
+ done = 1;
+ grammarID = 4;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 2203:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MagneticVectorSetup), END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ if (iso2MagneticVectorSetupListType->MagneticVectorSetup.arrayLen < iso2MagneticVectorSetupListType_MagneticVectorSetup_ARRAY_SIZE) {
+ errn = decode_iso2MagneticVectorSetupType(stream, &iso2MagneticVectorSetupListType->MagneticVectorSetup.array[iso2MagneticVectorSetupListType->MagneticVectorSetup.arrayLen++]);
+ } else {
+ errn = EXI_ERROR_OUT_OF_BOUNDS;
+ }
+ grammarID = 2204;
+ break;
+ case 1:
+ done = 1;
+ grammarID = 4;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 2204:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MagneticVectorSetup), END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ if (iso2MagneticVectorSetupListType->MagneticVectorSetup.arrayLen < iso2MagneticVectorSetupListType_MagneticVectorSetup_ARRAY_SIZE) {
+ errn = decode_iso2MagneticVectorSetupType(stream, &iso2MagneticVectorSetupListType->MagneticVectorSetup.array[iso2MagneticVectorSetupListType->MagneticVectorSetup.arrayLen++]);
+ } else {
+ errn = EXI_ERROR_OUT_OF_BOUNDS;
+ }
+ grammarID = 2205;
+ break;
+ case 1:
+ done = 1;
+ grammarID = 4;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 2205:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MagneticVectorSetup), END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ if (iso2MagneticVectorSetupListType->MagneticVectorSetup.arrayLen < iso2MagneticVectorSetupListType_MagneticVectorSetup_ARRAY_SIZE) {
+ errn = decode_iso2MagneticVectorSetupType(stream, &iso2MagneticVectorSetupListType->MagneticVectorSetup.array[iso2MagneticVectorSetupListType->MagneticVectorSetup.arrayLen++]);
+ } else {
+ errn = EXI_ERROR_OUT_OF_BOUNDS;
+ }
+ grammarID = 2206;
+ break;
+ case 1:
+ done = 1;
+ grammarID = 4;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 2206:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MagneticVectorSetup), END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ if (iso2MagneticVectorSetupListType->MagneticVectorSetup.arrayLen < iso2MagneticVectorSetupListType_MagneticVectorSetup_ARRAY_SIZE) {
+ errn = decode_iso2MagneticVectorSetupType(stream, &iso2MagneticVectorSetupListType->MagneticVectorSetup.array[iso2MagneticVectorSetupListType->MagneticVectorSetup.arrayLen++]);
+ } else {
+ errn = EXI_ERROR_OUT_OF_BOUNDS;
+ }
+ grammarID = 2207;
+ break;
+ case 1:
+ done = 1;
+ grammarID = 4;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 2207:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MagneticVectorSetup), END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ if (iso2MagneticVectorSetupListType->MagneticVectorSetup.arrayLen < iso2MagneticVectorSetupListType_MagneticVectorSetup_ARRAY_SIZE) {
+ errn = decode_iso2MagneticVectorSetupType(stream, &iso2MagneticVectorSetupListType->MagneticVectorSetup.array[iso2MagneticVectorSetupListType->MagneticVectorSetup.arrayLen++]);
+ } else {
+ errn = EXI_ERROR_OUT_OF_BOUNDS;
+ }
+ grammarID = 2208;
+ break;
+ case 1:
+ done = 1;
+ grammarID = 4;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 2208:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MagneticVectorSetup), END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ if (iso2MagneticVectorSetupListType->MagneticVectorSetup.arrayLen < iso2MagneticVectorSetupListType_MagneticVectorSetup_ARRAY_SIZE) {
+ errn = decode_iso2MagneticVectorSetupType(stream, &iso2MagneticVectorSetupListType->MagneticVectorSetup.array[iso2MagneticVectorSetupListType->MagneticVectorSetup.arrayLen++]);
+ } else {
+ errn = EXI_ERROR_OUT_OF_BOUNDS;
+ }
+ grammarID = 2209;
+ break;
+ case 1:
+ done = 1;
+ grammarID = 4;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 2209:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MagneticVectorSetup), END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ if (iso2MagneticVectorSetupListType->MagneticVectorSetup.arrayLen < iso2MagneticVectorSetupListType_MagneticVectorSetup_ARRAY_SIZE) {
+ errn = decode_iso2MagneticVectorSetupType(stream, &iso2MagneticVectorSetupListType->MagneticVectorSetup.array[iso2MagneticVectorSetupListType->MagneticVectorSetup.arrayLen++]);
+ } else {
+ errn = EXI_ERROR_OUT_OF_BOUNDS;
+ }
+ grammarID = 2210;
+ break;
+ case 1:
+ done = 1;
+ grammarID = 4;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 2210:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MagneticVectorSetup), END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ if (iso2MagneticVectorSetupListType->MagneticVectorSetup.arrayLen < iso2MagneticVectorSetupListType_MagneticVectorSetup_ARRAY_SIZE) {
+ errn = decode_iso2MagneticVectorSetupType(stream, &iso2MagneticVectorSetupListType->MagneticVectorSetup.array[iso2MagneticVectorSetupListType->MagneticVectorSetup.arrayLen++]);
+ } else {
+ errn = EXI_ERROR_OUT_OF_BOUNDS;
+ }
+ grammarID = 2211;
+ break;
+ case 1:
+ done = 1;
+ grammarID = 4;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 2211:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MagneticVectorSetup), END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ if (iso2MagneticVectorSetupListType->MagneticVectorSetup.arrayLen < iso2MagneticVectorSetupListType_MagneticVectorSetup_ARRAY_SIZE) {
+ errn = decode_iso2MagneticVectorSetupType(stream, &iso2MagneticVectorSetupListType->MagneticVectorSetup.array[iso2MagneticVectorSetupListType->MagneticVectorSetup.arrayLen++]);
+ } else {
+ errn = EXI_ERROR_OUT_OF_BOUNDS;
+ }
+ grammarID = 2212;
+ break;
+ case 1:
+ done = 1;
+ grammarID = 4;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 2212:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MagneticVectorSetup), END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ if (iso2MagneticVectorSetupListType->MagneticVectorSetup.arrayLen < iso2MagneticVectorSetupListType_MagneticVectorSetup_ARRAY_SIZE) {
+ errn = decode_iso2MagneticVectorSetupType(stream, &iso2MagneticVectorSetupListType->MagneticVectorSetup.array[iso2MagneticVectorSetupListType->MagneticVectorSetup.arrayLen++]);
+ } else {
+ errn = EXI_ERROR_OUT_OF_BOUNDS;
+ }
+ grammarID = 2213;
+ break;
+ case 1:
+ done = 1;
+ grammarID = 4;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 2213:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MagneticVectorSetup), END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ if (iso2MagneticVectorSetupListType->MagneticVectorSetup.arrayLen < iso2MagneticVectorSetupListType_MagneticVectorSetup_ARRAY_SIZE) {
+ errn = decode_iso2MagneticVectorSetupType(stream, &iso2MagneticVectorSetupListType->MagneticVectorSetup.array[iso2MagneticVectorSetupListType->MagneticVectorSetup.arrayLen++]);
+ } else {
+ errn = EXI_ERROR_OUT_OF_BOUNDS;
+ }
+ grammarID = 2214;
+ break;
+ case 1:
+ done = 1;
+ grammarID = 4;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 2214:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MagneticVectorSetup), END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ if (iso2MagneticVectorSetupListType->MagneticVectorSetup.arrayLen < iso2MagneticVectorSetupListType_MagneticVectorSetup_ARRAY_SIZE) {
+ errn = decode_iso2MagneticVectorSetupType(stream, &iso2MagneticVectorSetupListType->MagneticVectorSetup.array[iso2MagneticVectorSetupListType->MagneticVectorSetup.arrayLen++]);
+ } else {
+ errn = EXI_ERROR_OUT_OF_BOUNDS;
+ }
+ grammarID = 2215;
+ break;
+ case 1:
+ done = 1;
+ grammarID = 4;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 2215:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MagneticVectorSetup), END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ if (iso2MagneticVectorSetupListType->MagneticVectorSetup.arrayLen < iso2MagneticVectorSetupListType_MagneticVectorSetup_ARRAY_SIZE) {
+ errn = decode_iso2MagneticVectorSetupType(stream, &iso2MagneticVectorSetupListType->MagneticVectorSetup.array[iso2MagneticVectorSetupListType->MagneticVectorSetup.arrayLen++]);
+ } else {
+ errn = EXI_ERROR_OUT_OF_BOUNDS;
+ }
+ grammarID = 2216;
+ break;
+ case 1:
+ done = 1;
+ grammarID = 4;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 2216:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MagneticVectorSetup), END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ if (iso2MagneticVectorSetupListType->MagneticVectorSetup.arrayLen < iso2MagneticVectorSetupListType_MagneticVectorSetup_ARRAY_SIZE) {
+ errn = decode_iso2MagneticVectorSetupType(stream, &iso2MagneticVectorSetupListType->MagneticVectorSetup.array[iso2MagneticVectorSetupListType->MagneticVectorSetup.arrayLen++]);
+ } else {
+ errn = EXI_ERROR_OUT_OF_BOUNDS;
+ }
+ grammarID = 2217;
+ break;
+ case 1:
+ done = 1;
+ grammarID = 4;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 2217:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MagneticVectorSetup), END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ if (iso2MagneticVectorSetupListType->MagneticVectorSetup.arrayLen < iso2MagneticVectorSetupListType_MagneticVectorSetup_ARRAY_SIZE) {
+ errn = decode_iso2MagneticVectorSetupType(stream, &iso2MagneticVectorSetupListType->MagneticVectorSetup.array[iso2MagneticVectorSetupListType->MagneticVectorSetup.arrayLen++]);
+ } else {
+ errn = EXI_ERROR_OUT_OF_BOUNDS;
+ }
+ grammarID = 2218;
+ break;
+ case 1:
+ done = 1;
+ grammarID = 4;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 2218:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MagneticVectorSetup), END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ if (iso2MagneticVectorSetupListType->MagneticVectorSetup.arrayLen < iso2MagneticVectorSetupListType_MagneticVectorSetup_ARRAY_SIZE) {
+ errn = decode_iso2MagneticVectorSetupType(stream, &iso2MagneticVectorSetupListType->MagneticVectorSetup.array[iso2MagneticVectorSetupListType->MagneticVectorSetup.arrayLen++]);
+ } else {
+ errn = EXI_ERROR_OUT_OF_BOUNDS;
+ }
+ grammarID = 2219;
+ break;
+ case 1:
+ done = 1;
+ grammarID = 4;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 2219:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MagneticVectorSetup), END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ if (iso2MagneticVectorSetupListType->MagneticVectorSetup.arrayLen < iso2MagneticVectorSetupListType_MagneticVectorSetup_ARRAY_SIZE) {
+ errn = decode_iso2MagneticVectorSetupType(stream, &iso2MagneticVectorSetupListType->MagneticVectorSetup.array[iso2MagneticVectorSetupListType->MagneticVectorSetup.arrayLen++]);
+ } else {
+ errn = EXI_ERROR_OUT_OF_BOUNDS;
+ }
+ grammarID = 2220;
+ break;
+ case 1:
+ done = 1;
+ grammarID = 4;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 2220:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MagneticVectorSetup), END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ if (iso2MagneticVectorSetupListType->MagneticVectorSetup.arrayLen < iso2MagneticVectorSetupListType_MagneticVectorSetup_ARRAY_SIZE) {
+ errn = decode_iso2MagneticVectorSetupType(stream, &iso2MagneticVectorSetupListType->MagneticVectorSetup.array[iso2MagneticVectorSetupListType->MagneticVectorSetup.arrayLen++]);
+ } else {
+ errn = EXI_ERROR_OUT_OF_BOUNDS;
+ }
+ grammarID = 2221;
+ break;
+ case 1:
+ done = 1;
+ grammarID = 4;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 2221:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MagneticVectorSetup), END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ if (iso2MagneticVectorSetupListType->MagneticVectorSetup.arrayLen < iso2MagneticVectorSetupListType_MagneticVectorSetup_ARRAY_SIZE) {
+ errn = decode_iso2MagneticVectorSetupType(stream, &iso2MagneticVectorSetupListType->MagneticVectorSetup.array[iso2MagneticVectorSetupListType->MagneticVectorSetup.arrayLen++]);
+ } else {
+ errn = EXI_ERROR_OUT_OF_BOUNDS;
+ }
+ grammarID = 2222;
+ break;
+ case 1:
+ done = 1;
+ grammarID = 4;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 2222:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MagneticVectorSetup), END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ if (iso2MagneticVectorSetupListType->MagneticVectorSetup.arrayLen < iso2MagneticVectorSetupListType_MagneticVectorSetup_ARRAY_SIZE) {
+ errn = decode_iso2MagneticVectorSetupType(stream, &iso2MagneticVectorSetupListType->MagneticVectorSetup.array[iso2MagneticVectorSetupListType->MagneticVectorSetup.arrayLen++]);
+ } else {
+ errn = EXI_ERROR_OUT_OF_BOUNDS;
+ }
+ grammarID = 2223;
+ break;
+ case 1:
+ done = 1;
+ grammarID = 4;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 2223:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MagneticVectorSetup), END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ if (iso2MagneticVectorSetupListType->MagneticVectorSetup.arrayLen < iso2MagneticVectorSetupListType_MagneticVectorSetup_ARRAY_SIZE) {
+ errn = decode_iso2MagneticVectorSetupType(stream, &iso2MagneticVectorSetupListType->MagneticVectorSetup.array[iso2MagneticVectorSetupListType->MagneticVectorSetup.arrayLen++]);
+ } else {
+ errn = EXI_ERROR_OUT_OF_BOUNDS;
+ }
+ grammarID = 2224;
+ break;
+ case 1:
+ done = 1;
+ grammarID = 4;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 2224:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MagneticVectorSetup), END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ if (iso2MagneticVectorSetupListType->MagneticVectorSetup.arrayLen < iso2MagneticVectorSetupListType_MagneticVectorSetup_ARRAY_SIZE) {
+ errn = decode_iso2MagneticVectorSetupType(stream, &iso2MagneticVectorSetupListType->MagneticVectorSetup.array[iso2MagneticVectorSetupListType->MagneticVectorSetup.arrayLen++]);
+ } else {
+ errn = EXI_ERROR_OUT_OF_BOUNDS;
+ }
+ grammarID = 2225;
+ break;
+ case 1:
+ done = 1;
+ grammarID = 4;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 2225:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MagneticVectorSetup), END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ if (iso2MagneticVectorSetupListType->MagneticVectorSetup.arrayLen < iso2MagneticVectorSetupListType_MagneticVectorSetup_ARRAY_SIZE) {
+ errn = decode_iso2MagneticVectorSetupType(stream, &iso2MagneticVectorSetupListType->MagneticVectorSetup.array[iso2MagneticVectorSetupListType->MagneticVectorSetup.arrayLen++]);
+ } else {
+ errn = EXI_ERROR_OUT_OF_BOUNDS;
+ }
+ grammarID = 2226;
+ break;
+ case 1:
+ done = 1;
+ grammarID = 4;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 2226:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MagneticVectorSetup), END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ if (iso2MagneticVectorSetupListType->MagneticVectorSetup.arrayLen < iso2MagneticVectorSetupListType_MagneticVectorSetup_ARRAY_SIZE) {
+ errn = decode_iso2MagneticVectorSetupType(stream, &iso2MagneticVectorSetupListType->MagneticVectorSetup.array[iso2MagneticVectorSetupListType->MagneticVectorSetup.arrayLen++]);
+ } else {
+ errn = EXI_ERROR_OUT_OF_BOUNDS;
+ }
+ grammarID = 2227;
+ break;
+ case 1:
+ done = 1;
+ grammarID = 4;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 2227:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MagneticVectorSetup), END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ if (iso2MagneticVectorSetupListType->MagneticVectorSetup.arrayLen < iso2MagneticVectorSetupListType_MagneticVectorSetup_ARRAY_SIZE) {
+ errn = decode_iso2MagneticVectorSetupType(stream, &iso2MagneticVectorSetupListType->MagneticVectorSetup.array[iso2MagneticVectorSetupListType->MagneticVectorSetup.arrayLen++]);
+ } else {
+ errn = EXI_ERROR_OUT_OF_BOUNDS;
+ }
+ grammarID = 2228;
+ break;
+ case 1:
+ done = 1;
+ grammarID = 4;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 2228:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MagneticVectorSetup), END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ if (iso2MagneticVectorSetupListType->MagneticVectorSetup.arrayLen < iso2MagneticVectorSetupListType_MagneticVectorSetup_ARRAY_SIZE) {
+ errn = decode_iso2MagneticVectorSetupType(stream, &iso2MagneticVectorSetupListType->MagneticVectorSetup.array[iso2MagneticVectorSetupListType->MagneticVectorSetup.arrayLen++]);
+ } else {
+ errn = EXI_ERROR_OUT_OF_BOUNDS;
+ }
+ grammarID = 2229;
+ break;
+ case 1:
+ done = 1;
+ grammarID = 4;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 2229:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MagneticVectorSetup), END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ if (iso2MagneticVectorSetupListType->MagneticVectorSetup.arrayLen < iso2MagneticVectorSetupListType_MagneticVectorSetup_ARRAY_SIZE) {
+ errn = decode_iso2MagneticVectorSetupType(stream, &iso2MagneticVectorSetupListType->MagneticVectorSetup.array[iso2MagneticVectorSetupListType->MagneticVectorSetup.arrayLen++]);
+ } else {
+ errn = EXI_ERROR_OUT_OF_BOUNDS;
+ }
+ grammarID = 2230;
+ break;
+ case 1:
+ done = 1;
+ grammarID = 4;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 2230:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MagneticVectorSetup), END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ if (iso2MagneticVectorSetupListType->MagneticVectorSetup.arrayLen < iso2MagneticVectorSetupListType_MagneticVectorSetup_ARRAY_SIZE) {
+ errn = decode_iso2MagneticVectorSetupType(stream, &iso2MagneticVectorSetupListType->MagneticVectorSetup.array[iso2MagneticVectorSetupListType->MagneticVectorSetup.arrayLen++]);
+ } else {
+ errn = EXI_ERROR_OUT_OF_BOUNDS;
+ }
+ grammarID = 2231;
+ break;
+ case 1:
+ done = 1;
+ grammarID = 4;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 2231:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MagneticVectorSetup), END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ if (iso2MagneticVectorSetupListType->MagneticVectorSetup.arrayLen < iso2MagneticVectorSetupListType_MagneticVectorSetup_ARRAY_SIZE) {
+ errn = decode_iso2MagneticVectorSetupType(stream, &iso2MagneticVectorSetupListType->MagneticVectorSetup.array[iso2MagneticVectorSetupListType->MagneticVectorSetup.arrayLen++]);
+ } else {
+ errn = EXI_ERROR_OUT_OF_BOUNDS;
+ }
+ grammarID = 2232;
+ break;
+ case 1:
+ done = 1;
+ grammarID = 4;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 2232:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MagneticVectorSetup), END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ if (iso2MagneticVectorSetupListType->MagneticVectorSetup.arrayLen < iso2MagneticVectorSetupListType_MagneticVectorSetup_ARRAY_SIZE) {
+ errn = decode_iso2MagneticVectorSetupType(stream, &iso2MagneticVectorSetupListType->MagneticVectorSetup.array[iso2MagneticVectorSetupListType->MagneticVectorSetup.arrayLen++]);
+ } else {
+ errn = EXI_ERROR_OUT_OF_BOUNDS;
+ }
+ grammarID = 2233;
+ break;
+ case 1:
+ done = 1;
+ grammarID = 4;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 2233:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MagneticVectorSetup), END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ if (iso2MagneticVectorSetupListType->MagneticVectorSetup.arrayLen < iso2MagneticVectorSetupListType_MagneticVectorSetup_ARRAY_SIZE) {
+ errn = decode_iso2MagneticVectorSetupType(stream, &iso2MagneticVectorSetupListType->MagneticVectorSetup.array[iso2MagneticVectorSetupListType->MagneticVectorSetup.arrayLen++]);
+ } else {
+ errn = EXI_ERROR_OUT_OF_BOUNDS;
+ }
+ grammarID = 2234;
+ break;
+ case 1:
+ done = 1;
+ grammarID = 4;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 2234:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MagneticVectorSetup), END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ if (iso2MagneticVectorSetupListType->MagneticVectorSetup.arrayLen < iso2MagneticVectorSetupListType_MagneticVectorSetup_ARRAY_SIZE) {
+ errn = decode_iso2MagneticVectorSetupType(stream, &iso2MagneticVectorSetupListType->MagneticVectorSetup.array[iso2MagneticVectorSetupListType->MagneticVectorSetup.arrayLen++]);
+ } else {
+ errn = EXI_ERROR_OUT_OF_BOUNDS;
+ }
+ grammarID = 2235;
+ break;
+ case 1:
+ done = 1;
+ grammarID = 4;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 2235:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MagneticVectorSetup), END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ if (iso2MagneticVectorSetupListType->MagneticVectorSetup.arrayLen < iso2MagneticVectorSetupListType_MagneticVectorSetup_ARRAY_SIZE) {
+ errn = decode_iso2MagneticVectorSetupType(stream, &iso2MagneticVectorSetupListType->MagneticVectorSetup.array[iso2MagneticVectorSetupListType->MagneticVectorSetup.arrayLen++]);
+ } else {
+ errn = EXI_ERROR_OUT_OF_BOUNDS;
+ }
+ grammarID = 2236;
+ break;
+ case 1:
+ done = 1;
+ grammarID = 4;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 2236:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MagneticVectorSetup), END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ if (iso2MagneticVectorSetupListType->MagneticVectorSetup.arrayLen < iso2MagneticVectorSetupListType_MagneticVectorSetup_ARRAY_SIZE) {
+ errn = decode_iso2MagneticVectorSetupType(stream, &iso2MagneticVectorSetupListType->MagneticVectorSetup.array[iso2MagneticVectorSetupListType->MagneticVectorSetup.arrayLen++]);
+ } else {
+ errn = EXI_ERROR_OUT_OF_BOUNDS;
+ }
+ grammarID = 2237;
+ break;
+ case 1:
+ done = 1;
+ grammarID = 4;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 2237:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MagneticVectorSetup), END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ if (iso2MagneticVectorSetupListType->MagneticVectorSetup.arrayLen < iso2MagneticVectorSetupListType_MagneticVectorSetup_ARRAY_SIZE) {
+ errn = decode_iso2MagneticVectorSetupType(stream, &iso2MagneticVectorSetupListType->MagneticVectorSetup.array[iso2MagneticVectorSetupListType->MagneticVectorSetup.arrayLen++]);
+ } else {
+ errn = EXI_ERROR_OUT_OF_BOUNDS;
+ }
+ grammarID = 2238;
+ break;
+ case 1:
+ done = 1;
+ grammarID = 4;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 2238:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MagneticVectorSetup), END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ if (iso2MagneticVectorSetupListType->MagneticVectorSetup.arrayLen < iso2MagneticVectorSetupListType_MagneticVectorSetup_ARRAY_SIZE) {
+ errn = decode_iso2MagneticVectorSetupType(stream, &iso2MagneticVectorSetupListType->MagneticVectorSetup.array[iso2MagneticVectorSetupListType->MagneticVectorSetup.arrayLen++]);
+ } else {
+ errn = EXI_ERROR_OUT_OF_BOUNDS;
+ }
+ grammarID = 2239;
+ break;
+ case 1:
+ done = 1;
+ grammarID = 4;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 2239:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MagneticVectorSetup), END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ if (iso2MagneticVectorSetupListType->MagneticVectorSetup.arrayLen < iso2MagneticVectorSetupListType_MagneticVectorSetup_ARRAY_SIZE) {
+ errn = decode_iso2MagneticVectorSetupType(stream, &iso2MagneticVectorSetupListType->MagneticVectorSetup.array[iso2MagneticVectorSetupListType->MagneticVectorSetup.arrayLen++]);
+ } else {
+ errn = EXI_ERROR_OUT_OF_BOUNDS;
+ }
+ grammarID = 2240;
+ break;
+ case 1:
+ done = 1;
+ grammarID = 4;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 2240:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MagneticVectorSetup), END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ if (iso2MagneticVectorSetupListType->MagneticVectorSetup.arrayLen < iso2MagneticVectorSetupListType_MagneticVectorSetup_ARRAY_SIZE) {
+ errn = decode_iso2MagneticVectorSetupType(stream, &iso2MagneticVectorSetupListType->MagneticVectorSetup.array[iso2MagneticVectorSetupListType->MagneticVectorSetup.arrayLen++]);
+ } else {
+ errn = EXI_ERROR_OUT_OF_BOUNDS;
+ }
+ grammarID = 2241;
+ break;
+ case 1:
+ done = 1;
+ grammarID = 4;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 2241:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MagneticVectorSetup), END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ if (iso2MagneticVectorSetupListType->MagneticVectorSetup.arrayLen < iso2MagneticVectorSetupListType_MagneticVectorSetup_ARRAY_SIZE) {
+ errn = decode_iso2MagneticVectorSetupType(stream, &iso2MagneticVectorSetupListType->MagneticVectorSetup.array[iso2MagneticVectorSetupListType->MagneticVectorSetup.arrayLen++]);
+ } else {
+ errn = EXI_ERROR_OUT_OF_BOUNDS;
+ }
+ grammarID = 2242;
+ break;
+ case 1:
+ done = 1;
+ grammarID = 4;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 2242:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MagneticVectorSetup), END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ if (iso2MagneticVectorSetupListType->MagneticVectorSetup.arrayLen < iso2MagneticVectorSetupListType_MagneticVectorSetup_ARRAY_SIZE) {
+ errn = decode_iso2MagneticVectorSetupType(stream, &iso2MagneticVectorSetupListType->MagneticVectorSetup.array[iso2MagneticVectorSetupListType->MagneticVectorSetup.arrayLen++]);
+ } else {
+ errn = EXI_ERROR_OUT_OF_BOUNDS;
+ }
+ grammarID = 2243;
+ break;
+ case 1:
+ done = 1;
+ grammarID = 4;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 2243:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MagneticVectorSetup), END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ if (iso2MagneticVectorSetupListType->MagneticVectorSetup.arrayLen < iso2MagneticVectorSetupListType_MagneticVectorSetup_ARRAY_SIZE) {
+ errn = decode_iso2MagneticVectorSetupType(stream, &iso2MagneticVectorSetupListType->MagneticVectorSetup.array[iso2MagneticVectorSetupListType->MagneticVectorSetup.arrayLen++]);
+ } else {
+ errn = EXI_ERROR_OUT_OF_BOUNDS;
+ }
+ grammarID = 2244;
+ break;
+ case 1:
+ done = 1;
+ grammarID = 4;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 2244:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MagneticVectorSetup), END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ if (iso2MagneticVectorSetupListType->MagneticVectorSetup.arrayLen < iso2MagneticVectorSetupListType_MagneticVectorSetup_ARRAY_SIZE) {
+ errn = decode_iso2MagneticVectorSetupType(stream, &iso2MagneticVectorSetupListType->MagneticVectorSetup.array[iso2MagneticVectorSetupListType->MagneticVectorSetup.arrayLen++]);
+ } else {
+ errn = EXI_ERROR_OUT_OF_BOUNDS;
+ }
+ grammarID = 2245;
+ break;
+ case 1:
+ done = 1;
+ grammarID = 4;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 2245:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MagneticVectorSetup), END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ if (iso2MagneticVectorSetupListType->MagneticVectorSetup.arrayLen < iso2MagneticVectorSetupListType_MagneticVectorSetup_ARRAY_SIZE) {
+ errn = decode_iso2MagneticVectorSetupType(stream, &iso2MagneticVectorSetupListType->MagneticVectorSetup.array[iso2MagneticVectorSetupListType->MagneticVectorSetup.arrayLen++]);
+ } else {
+ errn = EXI_ERROR_OUT_OF_BOUNDS;
+ }
+ grammarID = 2246;
+ break;
+ case 1:
+ done = 1;
+ grammarID = 4;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 2246:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MagneticVectorSetup), END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ if (iso2MagneticVectorSetupListType->MagneticVectorSetup.arrayLen < iso2MagneticVectorSetupListType_MagneticVectorSetup_ARRAY_SIZE) {
+ errn = decode_iso2MagneticVectorSetupType(stream, &iso2MagneticVectorSetupListType->MagneticVectorSetup.array[iso2MagneticVectorSetupListType->MagneticVectorSetup.arrayLen++]);
+ } else {
+ errn = EXI_ERROR_OUT_OF_BOUNDS;
+ }
+ grammarID = 2247;
+ break;
+ case 1:
+ done = 1;
+ grammarID = 4;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 2247:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MagneticVectorSetup), END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ if (iso2MagneticVectorSetupListType->MagneticVectorSetup.arrayLen < iso2MagneticVectorSetupListType_MagneticVectorSetup_ARRAY_SIZE) {
+ errn = decode_iso2MagneticVectorSetupType(stream, &iso2MagneticVectorSetupListType->MagneticVectorSetup.array[iso2MagneticVectorSetupListType->MagneticVectorSetup.arrayLen++]);
+ } else {
+ errn = EXI_ERROR_OUT_OF_BOUNDS;
+ }
+ grammarID = 2248;
+ break;
+ case 1:
+ done = 1;
+ grammarID = 4;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 2248:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MagneticVectorSetup), END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ if (iso2MagneticVectorSetupListType->MagneticVectorSetup.arrayLen < iso2MagneticVectorSetupListType_MagneticVectorSetup_ARRAY_SIZE) {
+ errn = decode_iso2MagneticVectorSetupType(stream, &iso2MagneticVectorSetupListType->MagneticVectorSetup.array[iso2MagneticVectorSetupListType->MagneticVectorSetup.arrayLen++]);
+ } else {
+ errn = EXI_ERROR_OUT_OF_BOUNDS;
+ }
+ grammarID = 2249;
+ break;
+ case 1:
+ done = 1;
+ grammarID = 4;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 2249:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MagneticVectorSetup), END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ if (iso2MagneticVectorSetupListType->MagneticVectorSetup.arrayLen < iso2MagneticVectorSetupListType_MagneticVectorSetup_ARRAY_SIZE) {
+ errn = decode_iso2MagneticVectorSetupType(stream, &iso2MagneticVectorSetupListType->MagneticVectorSetup.array[iso2MagneticVectorSetupListType->MagneticVectorSetup.arrayLen++]);
+ } else {
+ errn = EXI_ERROR_OUT_OF_BOUNDS;
+ }
+ grammarID = 2250;
+ break;
+ case 1:
+ done = 1;
+ grammarID = 4;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 2250:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MagneticVectorSetup), END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ if (iso2MagneticVectorSetupListType->MagneticVectorSetup.arrayLen < iso2MagneticVectorSetupListType_MagneticVectorSetup_ARRAY_SIZE) {
+ errn = decode_iso2MagneticVectorSetupType(stream, &iso2MagneticVectorSetupListType->MagneticVectorSetup.array[iso2MagneticVectorSetupListType->MagneticVectorSetup.arrayLen++]);
+ } else {
+ errn = EXI_ERROR_OUT_OF_BOUNDS;
+ }
+ grammarID = 2251;
+ break;
+ case 1:
+ done = 1;
+ grammarID = 4;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 2251:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MagneticVectorSetup), END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ if (iso2MagneticVectorSetupListType->MagneticVectorSetup.arrayLen < iso2MagneticVectorSetupListType_MagneticVectorSetup_ARRAY_SIZE) {
+ errn = decode_iso2MagneticVectorSetupType(stream, &iso2MagneticVectorSetupListType->MagneticVectorSetup.array[iso2MagneticVectorSetupListType->MagneticVectorSetup.arrayLen++]);
+ } else {
+ errn = EXI_ERROR_OUT_OF_BOUNDS;
+ }
+ grammarID = 2252;
+ break;
+ case 1:
+ done = 1;
+ grammarID = 4;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 2252:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MagneticVectorSetup), END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ if (iso2MagneticVectorSetupListType->MagneticVectorSetup.arrayLen < iso2MagneticVectorSetupListType_MagneticVectorSetup_ARRAY_SIZE) {
+ errn = decode_iso2MagneticVectorSetupType(stream, &iso2MagneticVectorSetupListType->MagneticVectorSetup.array[iso2MagneticVectorSetupListType->MagneticVectorSetup.arrayLen++]);
+ } else {
+ errn = EXI_ERROR_OUT_OF_BOUNDS;
+ }
+ grammarID = 2253;
+ break;
+ case 1:
+ done = 1;
+ grammarID = 4;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 2253:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MagneticVectorSetup), END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ if (iso2MagneticVectorSetupListType->MagneticVectorSetup.arrayLen < iso2MagneticVectorSetupListType_MagneticVectorSetup_ARRAY_SIZE) {
+ errn = decode_iso2MagneticVectorSetupType(stream, &iso2MagneticVectorSetupListType->MagneticVectorSetup.array[iso2MagneticVectorSetupListType->MagneticVectorSetup.arrayLen++]);
+ } else {
+ errn = EXI_ERROR_OUT_OF_BOUNDS;
+ }
+ grammarID = 2254;
+ break;
+ case 1:
+ done = 1;
+ grammarID = 4;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 2254:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MagneticVectorSetup), END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ if (iso2MagneticVectorSetupListType->MagneticVectorSetup.arrayLen < iso2MagneticVectorSetupListType_MagneticVectorSetup_ARRAY_SIZE) {
+ errn = decode_iso2MagneticVectorSetupType(stream, &iso2MagneticVectorSetupListType->MagneticVectorSetup.array[iso2MagneticVectorSetupListType->MagneticVectorSetup.arrayLen++]);
+ } else {
+ errn = EXI_ERROR_OUT_OF_BOUNDS;
+ }
+ grammarID = 2255;
+ break;
+ case 1:
+ done = 1;
+ grammarID = 4;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 2255:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MagneticVectorSetup), END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ if (iso2MagneticVectorSetupListType->MagneticVectorSetup.arrayLen < iso2MagneticVectorSetupListType_MagneticVectorSetup_ARRAY_SIZE) {
+ errn = decode_iso2MagneticVectorSetupType(stream, &iso2MagneticVectorSetupListType->MagneticVectorSetup.array[iso2MagneticVectorSetupListType->MagneticVectorSetup.arrayLen++]);
+ } else {
+ errn = EXI_ERROR_OUT_OF_BOUNDS;
+ }
+ grammarID = 2256;
+ break;
+ case 1:
+ done = 1;
+ grammarID = 4;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 2256:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MagneticVectorSetup), END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ if (iso2MagneticVectorSetupListType->MagneticVectorSetup.arrayLen < iso2MagneticVectorSetupListType_MagneticVectorSetup_ARRAY_SIZE) {
+ errn = decode_iso2MagneticVectorSetupType(stream, &iso2MagneticVectorSetupListType->MagneticVectorSetup.array[iso2MagneticVectorSetupListType->MagneticVectorSetup.arrayLen++]);
+ } else {
+ errn = EXI_ERROR_OUT_OF_BOUNDS;
+ }
+ grammarID = 2257;
+ break;
+ case 1:
+ done = 1;
+ grammarID = 4;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 2257:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MagneticVectorSetup), END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ if (iso2MagneticVectorSetupListType->MagneticVectorSetup.arrayLen < iso2MagneticVectorSetupListType_MagneticVectorSetup_ARRAY_SIZE) {
+ errn = decode_iso2MagneticVectorSetupType(stream, &iso2MagneticVectorSetupListType->MagneticVectorSetup.array[iso2MagneticVectorSetupListType->MagneticVectorSetup.arrayLen++]);
+ } else {
+ errn = EXI_ERROR_OUT_OF_BOUNDS;
+ }
+ grammarID = 2258;
+ break;
+ case 1:
+ done = 1;
+ grammarID = 4;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 2258:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MagneticVectorSetup), END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ if (iso2MagneticVectorSetupListType->MagneticVectorSetup.arrayLen < iso2MagneticVectorSetupListType_MagneticVectorSetup_ARRAY_SIZE) {
+ errn = decode_iso2MagneticVectorSetupType(stream, &iso2MagneticVectorSetupListType->MagneticVectorSetup.array[iso2MagneticVectorSetupListType->MagneticVectorSetup.arrayLen++]);
+ } else {
+ errn = EXI_ERROR_OUT_OF_BOUNDS;
+ }
+ grammarID = 2259;
+ break;
+ case 1:
+ done = 1;
+ grammarID = 4;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 2259:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MagneticVectorSetup), END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ if (iso2MagneticVectorSetupListType->MagneticVectorSetup.arrayLen < iso2MagneticVectorSetupListType_MagneticVectorSetup_ARRAY_SIZE) {
+ errn = decode_iso2MagneticVectorSetupType(stream, &iso2MagneticVectorSetupListType->MagneticVectorSetup.array[iso2MagneticVectorSetupListType->MagneticVectorSetup.arrayLen++]);
+ } else {
+ errn = EXI_ERROR_OUT_OF_BOUNDS;
+ }
+ grammarID = 2260;
+ break;
+ case 1:
+ done = 1;
+ grammarID = 4;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 2260:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MagneticVectorSetup), END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ if (iso2MagneticVectorSetupListType->MagneticVectorSetup.arrayLen < iso2MagneticVectorSetupListType_MagneticVectorSetup_ARRAY_SIZE) {
+ errn = decode_iso2MagneticVectorSetupType(stream, &iso2MagneticVectorSetupListType->MagneticVectorSetup.array[iso2MagneticVectorSetupListType->MagneticVectorSetup.arrayLen++]);
+ } else {
+ errn = EXI_ERROR_OUT_OF_BOUNDS;
+ }
+ grammarID = 2261;
+ break;
+ case 1:
+ done = 1;
+ grammarID = 4;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 2261:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MagneticVectorSetup), END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ if (iso2MagneticVectorSetupListType->MagneticVectorSetup.arrayLen < iso2MagneticVectorSetupListType_MagneticVectorSetup_ARRAY_SIZE) {
+ errn = decode_iso2MagneticVectorSetupType(stream, &iso2MagneticVectorSetupListType->MagneticVectorSetup.array[iso2MagneticVectorSetupListType->MagneticVectorSetup.arrayLen++]);
+ } else {
+ errn = EXI_ERROR_OUT_OF_BOUNDS;
+ }
+ grammarID = 2262;
+ break;
+ case 1:
+ done = 1;
+ grammarID = 4;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 2262:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MagneticVectorSetup), END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ if (iso2MagneticVectorSetupListType->MagneticVectorSetup.arrayLen < iso2MagneticVectorSetupListType_MagneticVectorSetup_ARRAY_SIZE) {
+ errn = decode_iso2MagneticVectorSetupType(stream, &iso2MagneticVectorSetupListType->MagneticVectorSetup.array[iso2MagneticVectorSetupListType->MagneticVectorSetup.arrayLen++]);
+ } else {
+ errn = EXI_ERROR_OUT_OF_BOUNDS;
+ }
+ grammarID = 2263;
+ break;
+ case 1:
+ done = 1;
+ grammarID = 4;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 2263:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MagneticVectorSetup), END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ if (iso2MagneticVectorSetupListType->MagneticVectorSetup.arrayLen < iso2MagneticVectorSetupListType_MagneticVectorSetup_ARRAY_SIZE) {
+ errn = decode_iso2MagneticVectorSetupType(stream, &iso2MagneticVectorSetupListType->MagneticVectorSetup.array[iso2MagneticVectorSetupListType->MagneticVectorSetup.arrayLen++]);
+ } else {
+ errn = EXI_ERROR_OUT_OF_BOUNDS;
+ }
+ grammarID = 2264;
+ break;
+ case 1:
+ done = 1;
+ grammarID = 4;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 2264:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MagneticVectorSetup), END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ if (iso2MagneticVectorSetupListType->MagneticVectorSetup.arrayLen < iso2MagneticVectorSetupListType_MagneticVectorSetup_ARRAY_SIZE) {
+ errn = decode_iso2MagneticVectorSetupType(stream, &iso2MagneticVectorSetupListType->MagneticVectorSetup.array[iso2MagneticVectorSetupListType->MagneticVectorSetup.arrayLen++]);
+ } else {
+ errn = EXI_ERROR_OUT_OF_BOUNDS;
+ }
+ grammarID = 2265;
+ break;
+ case 1:
+ done = 1;
+ grammarID = 4;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 2265:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MagneticVectorSetup), END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ if (iso2MagneticVectorSetupListType->MagneticVectorSetup.arrayLen < iso2MagneticVectorSetupListType_MagneticVectorSetup_ARRAY_SIZE) {
+ errn = decode_iso2MagneticVectorSetupType(stream, &iso2MagneticVectorSetupListType->MagneticVectorSetup.array[iso2MagneticVectorSetupListType->MagneticVectorSetup.arrayLen++]);
+ } else {
+ errn = EXI_ERROR_OUT_OF_BOUNDS;
+ }
+ grammarID = 2266;
+ break;
+ case 1:
+ done = 1;
+ grammarID = 4;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 2266:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MagneticVectorSetup), END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ if (iso2MagneticVectorSetupListType->MagneticVectorSetup.arrayLen < iso2MagneticVectorSetupListType_MagneticVectorSetup_ARRAY_SIZE) {
+ errn = decode_iso2MagneticVectorSetupType(stream, &iso2MagneticVectorSetupListType->MagneticVectorSetup.array[iso2MagneticVectorSetupListType->MagneticVectorSetup.arrayLen++]);
+ } else {
+ errn = EXI_ERROR_OUT_OF_BOUNDS;
+ }
+ grammarID = 2267;
+ break;
+ case 1:
+ done = 1;
+ grammarID = 4;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 2267:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MagneticVectorSetup), END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ if (iso2MagneticVectorSetupListType->MagneticVectorSetup.arrayLen < iso2MagneticVectorSetupListType_MagneticVectorSetup_ARRAY_SIZE) {
+ errn = decode_iso2MagneticVectorSetupType(stream, &iso2MagneticVectorSetupListType->MagneticVectorSetup.array[iso2MagneticVectorSetupListType->MagneticVectorSetup.arrayLen++]);
+ } else {
+ errn = EXI_ERROR_OUT_OF_BOUNDS;
+ }
+ grammarID = 2268;
+ break;
+ case 1:
+ done = 1;
+ grammarID = 4;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 2268:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MagneticVectorSetup), END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ if (iso2MagneticVectorSetupListType->MagneticVectorSetup.arrayLen < iso2MagneticVectorSetupListType_MagneticVectorSetup_ARRAY_SIZE) {
+ errn = decode_iso2MagneticVectorSetupType(stream, &iso2MagneticVectorSetupListType->MagneticVectorSetup.array[iso2MagneticVectorSetupListType->MagneticVectorSetup.arrayLen++]);
+ } else {
+ errn = EXI_ERROR_OUT_OF_BOUNDS;
+ }
+ grammarID = 2269;
+ break;
+ case 1:
+ done = 1;
+ grammarID = 4;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 2269:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MagneticVectorSetup), END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ if (iso2MagneticVectorSetupListType->MagneticVectorSetup.arrayLen < iso2MagneticVectorSetupListType_MagneticVectorSetup_ARRAY_SIZE) {
+ errn = decode_iso2MagneticVectorSetupType(stream, &iso2MagneticVectorSetupListType->MagneticVectorSetup.array[iso2MagneticVectorSetupListType->MagneticVectorSetup.arrayLen++]);
+ } else {
+ errn = EXI_ERROR_OUT_OF_BOUNDS;
+ }
+ grammarID = 2270;
+ break;
+ case 1:
+ done = 1;
+ grammarID = 4;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 2270:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MagneticVectorSetup), END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ if (iso2MagneticVectorSetupListType->MagneticVectorSetup.arrayLen < iso2MagneticVectorSetupListType_MagneticVectorSetup_ARRAY_SIZE) {
+ errn = decode_iso2MagneticVectorSetupType(stream, &iso2MagneticVectorSetupListType->MagneticVectorSetup.array[iso2MagneticVectorSetupListType->MagneticVectorSetup.arrayLen++]);
+ } else {
+ errn = EXI_ERROR_OUT_OF_BOUNDS;
+ }
+ grammarID = 2271;
+ break;
+ case 1:
+ done = 1;
+ grammarID = 4;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 2271:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MagneticVectorSetup), END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ if (iso2MagneticVectorSetupListType->MagneticVectorSetup.arrayLen < iso2MagneticVectorSetupListType_MagneticVectorSetup_ARRAY_SIZE) {
+ errn = decode_iso2MagneticVectorSetupType(stream, &iso2MagneticVectorSetupListType->MagneticVectorSetup.array[iso2MagneticVectorSetupListType->MagneticVectorSetup.arrayLen++]);
+ } else {
+ errn = EXI_ERROR_OUT_OF_BOUNDS;
+ }
+ grammarID = 3;
+ break;
+ case 1:
+ done = 1;
+ grammarID = 4;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 3:
+ /* Element[END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ done = 1;
+ grammarID = 4;
+ 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:2016:MsgBody,PairingReqType', base type name='BodyBaseType', content type='ELEMENT', isAbstract='false', hasTypeId='false', final='0', block='0', particle='("urn:iso:15118:2:2016:MsgBody":EVProcessing,"urn:iso:15118:2:2016:MsgBody":PairingParameters{0-1})', derivedBy='EXTENSION'. */
+static int decode_iso2PairingReqType(bitstream_t* stream, struct iso2PairingReqType* iso2PairingReqType) {
+ int grammarID = 2272;
+ int done = 0;
+
+ init_iso2PairingReqType(iso2PairingReqType);
+
+ while(!done) {
+ switch(grammarID) {
+ case 2272:
+ /* FirstStartTag[START_ELEMENT({urn:iso:15118:2:2016:MsgBody}EVProcessing)] */
+ 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);
+ iso2PairingReqType->EVProcessing = (iso2EVSEProcessingType) 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({urn:iso:15118:2:2016:MsgBody}EVProcessing) ? */
+ errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
+ if(eventCode == 0) {
+ grammarID = 1827;
+ } else {
+ errn = EXI_DEVIANT_SUPPORT_NOT_DEPLOYED; /* or also typecast and nillable */
+ }
+ }
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 1827:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgBody}PairingParameters), END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ errn = decode_iso2ParameterSetType(stream, &iso2PairingReqType->PairingParameters);
+ iso2PairingReqType->PairingParameters_isUsed = 1u;
+ grammarID = 3;
+ break;
+ case 1:
+ done = 1;
+ grammarID = 4;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 3:
+ /* Element[END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ done = 1;
+ grammarID = 4;
+ 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:2016:MsgBody,CurrentDemandResType', base type name='V2GResponseType', content type='ELEMENT', isAbstract='false', hasTypeId='false', final='0', block='0', particle='(("urn:iso:15118:2:2016:MsgBody":ResponseCode,"urn:iso:15118:2:2016:MsgBody":EVSEStatus{0-1}),("urn:iso:15118:2:2016:MsgBody":EVSEPresentCurrent,"urn:iso:15118:2:2016:MsgBody":EVSEPresentVoltage,"urn:iso:15118:2:2016:MsgBody":EVSEPowerLimitAchieved,"urn:iso:15118:2:2016:MsgBody":EVSECurrentLimitAchieved,"urn:iso:15118:2:2016:MsgBody":EVSEVoltageLimitAchieved,"urn:iso:15118:2:2016:MsgBody":EVSEMaximumPower{0-1},"urn:iso:15118:2:2016:MsgBody":EVSEMaximumCurrent{0-1},"urn:iso:15118:2:2016:MsgBody":EVSEMaximumVoltage{0-1},"urn:iso:15118:2:2016:MsgBody":EVSEID,"urn:iso:15118:2:2016:MsgBody":SAScheduleTupleID{0-1},"urn:iso:15118:2:2016:MsgBody":MeterInfo{0-1},"urn:iso:15118:2:2016:MsgBody":ReceiptRequired{0-1}))', derivedBy='EXTENSION'. */
+static int decode_iso2CurrentDemandResType(bitstream_t* stream, struct iso2CurrentDemandResType* iso2CurrentDemandResType) {
+ int grammarID = 2273;
+ int done = 0;
+
+ init_iso2CurrentDemandResType(iso2CurrentDemandResType);
+
+ while(!done) {
+ switch(grammarID) {
+ case 2273:
+ /* FirstStartTag[START_ELEMENT({urn:iso:15118:2:2016:MsgBody}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, 5, &uint32);
+ iso2CurrentDemandResType->ResponseCode = (iso2responseCodeType) 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({urn:iso:15118:2:2016:MsgBody}ResponseCode) ? */
+ errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
+ if(eventCode == 0) {
+ grammarID = 2274;
+ } else {
+ errn = EXI_DEVIANT_SUPPORT_NOT_DEPLOYED; /* or also typecast and nillable */
+ }
+ }
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 2274:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgBody}EVSEStatus), START_ELEMENT({urn:iso:15118:2:2016:MsgBody}EVSEPresentCurrent)] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ errn = decode_iso2EVSEStatusType(stream, &iso2CurrentDemandResType->EVSEStatus);
+ iso2CurrentDemandResType->EVSEStatus_isUsed = 1u;
+ grammarID = 2275;
+ break;
+ case 1:
+ errn = decode_iso2PhysicalValueType(stream, &iso2CurrentDemandResType->EVSEPresentCurrent);
+ grammarID = 2276;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 2275:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgBody}EVSEPresentCurrent)] */
+ errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ errn = decode_iso2PhysicalValueType(stream, &iso2CurrentDemandResType->EVSEPresentCurrent);
+ grammarID = 2276;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 2276:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgBody}EVSEPresentVoltage)] */
+ errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ errn = decode_iso2PhysicalValueType(stream, &iso2CurrentDemandResType->EVSEPresentVoltage);
+ grammarID = 2277;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 2277:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgBody}EVSEPowerLimitAchieved)] */
+ errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ /* FirstStartTag[CHARACTERS[BOOLEAN]] */
+ errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
+ if(errn == 0) {
+ if(eventCode == 0) {
+ errn = decodeBoolean(stream, &iso2CurrentDemandResType->EVSEPowerLimitAchieved);
+ } 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({urn:iso:15118:2:2016:MsgBody}EVSEPowerLimitAchieved) ? */
+ errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
+ if(eventCode == 0) {
+ grammarID = 2278;
+ } else {
+ errn = EXI_DEVIANT_SUPPORT_NOT_DEPLOYED; /* or also typecast and nillable */
+ }
+ }
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 2278:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgBody}EVSECurrentLimitAchieved)] */
+ errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ /* FirstStartTag[CHARACTERS[BOOLEAN]] */
+ errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
+ if(errn == 0) {
+ if(eventCode == 0) {
+ errn = decodeBoolean(stream, &iso2CurrentDemandResType->EVSECurrentLimitAchieved);
+ } 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({urn:iso:15118:2:2016:MsgBody}EVSECurrentLimitAchieved) ? */
+ errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
+ if(eventCode == 0) {
+ grammarID = 2279;
+ } else {
+ errn = EXI_DEVIANT_SUPPORT_NOT_DEPLOYED; /* or also typecast and nillable */
+ }
+ }
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 2279:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgBody}EVSEVoltageLimitAchieved)] */
+ errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ /* FirstStartTag[CHARACTERS[BOOLEAN]] */
+ errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
+ if(errn == 0) {
+ if(eventCode == 0) {
+ errn = decodeBoolean(stream, &iso2CurrentDemandResType->EVSEVoltageLimitAchieved);
+ } 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({urn:iso:15118:2:2016:MsgBody}EVSEVoltageLimitAchieved) ? */
+ errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
+ if(eventCode == 0) {
+ grammarID = 2280;
+ } else {
+ errn = EXI_DEVIANT_SUPPORT_NOT_DEPLOYED; /* or also typecast and nillable */
+ }
+ }
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 2280:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgBody}EVSEMaximumPower), START_ELEMENT({urn:iso:15118:2:2016:MsgBody}EVSEMaximumCurrent), START_ELEMENT({urn:iso:15118:2:2016:MsgBody}EVSEMaximumVoltage), START_ELEMENT({urn:iso:15118:2:2016:MsgBody}EVSEID)] */
+ errn = decodeNBitUnsignedInteger(stream, 3, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ errn = decode_iso2PhysicalValueType(stream, &iso2CurrentDemandResType->EVSEMaximumPower);
+ iso2CurrentDemandResType->EVSEMaximumPower_isUsed = 1u;
+ grammarID = 2281;
+ break;
+ case 1:
+ errn = decode_iso2PhysicalValueType(stream, &iso2CurrentDemandResType->EVSEMaximumCurrent);
+ iso2CurrentDemandResType->EVSEMaximumCurrent_isUsed = 1u;
+ grammarID = 2282;
+ break;
+ case 2:
+ errn = decode_iso2PhysicalValueType(stream, &iso2CurrentDemandResType->EVSEMaximumVoltage);
+ iso2CurrentDemandResType->EVSEMaximumVoltage_isUsed = 1u;
+ grammarID = 27;
+ break;
+ case 3:
+ /* FirstStartTag[CHARACTERS[STRING]] */
+ errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
+ if(errn == 0) {
+ if(eventCode == 0) {
+ errn = decodeUnsignedInteger16(stream, &iso2CurrentDemandResType->EVSEID.charactersLen);
+ if (errn == 0) {
+ if (iso2CurrentDemandResType->EVSEID.charactersLen >= 2) {
+ iso2CurrentDemandResType->EVSEID.charactersLen = (uint16_t)(iso2CurrentDemandResType->EVSEID.charactersLen - 2); /* string table miss */
+ errn = decodeCharacters(stream, iso2CurrentDemandResType->EVSEID.charactersLen, iso2CurrentDemandResType->EVSEID.characters, iso2CurrentDemandResType_EVSEID_CHARACTERS_SIZE);
+ } else {
+ /* string table hit */
+ errn = EXI_ERROR_STRINGVALUES_NOT_SUPPORTED;
+ }
+ }
+ } 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({urn:iso:15118:2:2016:MsgBody}EVSEID) ? */
+ errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
+ if(eventCode == 0) {
+ grammarID = 28;
+ } else {
+ errn = EXI_DEVIANT_SUPPORT_NOT_DEPLOYED; /* or also typecast and nillable */
+ }
+ }
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 2281:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgBody}EVSEMaximumCurrent), START_ELEMENT({urn:iso:15118:2:2016:MsgBody}EVSEMaximumVoltage), START_ELEMENT({urn:iso:15118:2:2016:MsgBody}EVSEID)] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ errn = decode_iso2PhysicalValueType(stream, &iso2CurrentDemandResType->EVSEMaximumCurrent);
+ iso2CurrentDemandResType->EVSEMaximumCurrent_isUsed = 1u;
+ grammarID = 2282;
+ break;
+ case 1:
+ errn = decode_iso2PhysicalValueType(stream, &iso2CurrentDemandResType->EVSEMaximumVoltage);
+ iso2CurrentDemandResType->EVSEMaximumVoltage_isUsed = 1u;
+ grammarID = 27;
+ break;
+ case 2:
+ /* FirstStartTag[CHARACTERS[STRING]] */
+ errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
+ if(errn == 0) {
+ if(eventCode == 0) {
+ errn = decodeUnsignedInteger16(stream, &iso2CurrentDemandResType->EVSEID.charactersLen);
+ if (errn == 0) {
+ if (iso2CurrentDemandResType->EVSEID.charactersLen >= 2) {
+ iso2CurrentDemandResType->EVSEID.charactersLen = (uint16_t)(iso2CurrentDemandResType->EVSEID.charactersLen - 2); /* string table miss */
+ errn = decodeCharacters(stream, iso2CurrentDemandResType->EVSEID.charactersLen, iso2CurrentDemandResType->EVSEID.characters, iso2CurrentDemandResType_EVSEID_CHARACTERS_SIZE);
+ } else {
+ /* string table hit */
+ errn = EXI_ERROR_STRINGVALUES_NOT_SUPPORTED;
+ }
+ }
+ } 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({urn:iso:15118:2:2016:MsgBody}EVSEID) ? */
+ errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
+ if(eventCode == 0) {
+ grammarID = 28;
+ } else {
+ errn = EXI_DEVIANT_SUPPORT_NOT_DEPLOYED; /* or also typecast and nillable */
+ }
+ }
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 2282:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgBody}EVSEMaximumVoltage), START_ELEMENT({urn:iso:15118:2:2016:MsgBody}EVSEID)] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ errn = decode_iso2PhysicalValueType(stream, &iso2CurrentDemandResType->EVSEMaximumVoltage);
+ iso2CurrentDemandResType->EVSEMaximumVoltage_isUsed = 1u;
+ grammarID = 27;
+ break;
+ case 1:
+ /* FirstStartTag[CHARACTERS[STRING]] */
+ errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
+ if(errn == 0) {
+ if(eventCode == 0) {
+ errn = decodeUnsignedInteger16(stream, &iso2CurrentDemandResType->EVSEID.charactersLen);
+ if (errn == 0) {
+ if (iso2CurrentDemandResType->EVSEID.charactersLen >= 2) {
+ iso2CurrentDemandResType->EVSEID.charactersLen = (uint16_t)(iso2CurrentDemandResType->EVSEID.charactersLen - 2); /* string table miss */
+ errn = decodeCharacters(stream, iso2CurrentDemandResType->EVSEID.charactersLen, iso2CurrentDemandResType->EVSEID.characters, iso2CurrentDemandResType_EVSEID_CHARACTERS_SIZE);
+ } else {
+ /* string table hit */
+ errn = EXI_ERROR_STRINGVALUES_NOT_SUPPORTED;
+ }
+ }
+ } 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({urn:iso:15118:2:2016:MsgBody}EVSEID) ? */
+ errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
+ if(eventCode == 0) {
+ grammarID = 28;
+ } else {
+ errn = EXI_DEVIANT_SUPPORT_NOT_DEPLOYED; /* or also typecast and nillable */
+ }
+ }
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 27:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgBody}EVSEID)] */
+ errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ /* FirstStartTag[CHARACTERS[STRING]] */
+ errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
+ if(errn == 0) {
+ if(eventCode == 0) {
+ errn = decodeUnsignedInteger16(stream, &iso2CurrentDemandResType->EVSEID.charactersLen);
+ if (errn == 0) {
+ if (iso2CurrentDemandResType->EVSEID.charactersLen >= 2) {
+ iso2CurrentDemandResType->EVSEID.charactersLen = (uint16_t)(iso2CurrentDemandResType->EVSEID.charactersLen - 2); /* string table miss */
+ errn = decodeCharacters(stream, iso2CurrentDemandResType->EVSEID.charactersLen, iso2CurrentDemandResType->EVSEID.characters, iso2CurrentDemandResType_EVSEID_CHARACTERS_SIZE);
+ } else {
+ /* string table hit */
+ errn = EXI_ERROR_STRINGVALUES_NOT_SUPPORTED;
+ }
+ }
+ } 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({urn:iso:15118:2:2016:MsgBody}EVSEID) ? */
+ errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
+ if(eventCode == 0) {
+ grammarID = 28;
+ } else {
+ errn = EXI_DEVIANT_SUPPORT_NOT_DEPLOYED; /* or also typecast and nillable */
+ }
+ }
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 28:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgBody}SAScheduleTupleID), START_ELEMENT({urn:iso:15118:2:2016:MsgBody}MeterInfo), START_ELEMENT({urn:iso:15118:2:2016:MsgBody}ReceiptRequired), END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 3, &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));
+ iso2CurrentDemandResType->SAScheduleTupleID = (uint8_t)(uint32 + 1);
+ iso2CurrentDemandResType->SAScheduleTupleID_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({urn:iso:15118:2:2016:MsgBody}SAScheduleTupleID) ? */
+ errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
+ if(eventCode == 0) {
+ grammarID = 29;
+ } else {
+ errn = EXI_DEVIANT_SUPPORT_NOT_DEPLOYED; /* or also typecast and nillable */
+ }
+ }
+ break;
+ case 1:
+ errn = decode_iso2MeterInfoType(stream, &iso2CurrentDemandResType->MeterInfo);
+ iso2CurrentDemandResType->MeterInfo_isUsed = 1u;
+ grammarID = 30;
+ break;
+ case 2:
+ /* FirstStartTag[CHARACTERS[BOOLEAN]] */
+ errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
+ if(errn == 0) {
+ if(eventCode == 0) {
+ errn = decodeBoolean(stream, &iso2CurrentDemandResType->ReceiptRequired);
+ iso2CurrentDemandResType->ReceiptRequired_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({urn:iso:15118:2:2016:MsgBody}ReceiptRequired) ? */
+ errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
+ if(eventCode == 0) {
+ grammarID = 3;
+ } else {
+ errn = EXI_DEVIANT_SUPPORT_NOT_DEPLOYED; /* or also typecast and nillable */
+ }
+ }
+ break;
+ case 3:
+ done = 1;
+ grammarID = 4;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 29:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgBody}MeterInfo), START_ELEMENT({urn:iso:15118:2:2016:MsgBody}ReceiptRequired), END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ errn = decode_iso2MeterInfoType(stream, &iso2CurrentDemandResType->MeterInfo);
+ iso2CurrentDemandResType->MeterInfo_isUsed = 1u;
+ grammarID = 30;
+ break;
+ case 1:
+ /* FirstStartTag[CHARACTERS[BOOLEAN]] */
+ errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
+ if(errn == 0) {
+ if(eventCode == 0) {
+ errn = decodeBoolean(stream, &iso2CurrentDemandResType->ReceiptRequired);
+ iso2CurrentDemandResType->ReceiptRequired_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({urn:iso:15118:2:2016:MsgBody}ReceiptRequired) ? */
+ errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
+ if(eventCode == 0) {
+ grammarID = 3;
+ } else {
+ errn = EXI_DEVIANT_SUPPORT_NOT_DEPLOYED; /* or also typecast and nillable */
+ }
+ }
+ break;
+ case 2:
+ done = 1;
+ grammarID = 4;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 30:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgBody}ReceiptRequired), END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ /* FirstStartTag[CHARACTERS[BOOLEAN]] */
+ errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
+ if(errn == 0) {
+ if(eventCode == 0) {
+ errn = decodeBoolean(stream, &iso2CurrentDemandResType->ReceiptRequired);
+ iso2CurrentDemandResType->ReceiptRequired_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({urn:iso:15118:2:2016:MsgBody}ReceiptRequired) ? */
+ errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
+ if(eventCode == 0) {
+ grammarID = 3;
+ } else {
+ errn = EXI_DEVIANT_SUPPORT_NOT_DEPLOYED; /* or also typecast and nillable */
+ }
+ }
+ break;
+ case 1:
+ done = 1;
+ grammarID = 4;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 3:
+ /* Element[END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ done = 1;
+ grammarID = 4;
+ 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='http://www.w3.org/2000/09/xmldsig#,X509IssuerSerialType', base type name='anyType', content type='ELEMENT', isAbstract='false', hasTypeId='false', final='0', block='0', particle='("http://www.w3.org/2000/09/xmldsig#":X509IssuerName,"http://www.w3.org/2000/09/xmldsig#":X509SerialNumber)', derivedBy='RESTRICTION'. */
+static int decode_iso2X509IssuerSerialType(bitstream_t* stream, struct iso2X509IssuerSerialType* iso2X509IssuerSerialType) {
+ int grammarID = 2283;
+ int done = 0;
+
+ init_iso2X509IssuerSerialType(iso2X509IssuerSerialType);
+
+ while(!done) {
+ switch(grammarID) {
+ case 2283:
+ /* FirstStartTag[START_ELEMENT({http://www.w3.org/2000/09/xmldsig#}X509IssuerName)] */
+ errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ /* First(xsi:type)StartTag[CHARACTERS[STRING]] */
+ errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
+ if(errn == 0) {
+ if(eventCode == 0) {
+ errn = decodeUnsignedInteger16(stream, &iso2X509IssuerSerialType->X509IssuerName.charactersLen);
+ if (errn == 0) {
+ if (iso2X509IssuerSerialType->X509IssuerName.charactersLen >= 2) {
+ iso2X509IssuerSerialType->X509IssuerName.charactersLen = (uint16_t)(iso2X509IssuerSerialType->X509IssuerName.charactersLen - 2); /* string table miss */
+ errn = decodeCharacters(stream, iso2X509IssuerSerialType->X509IssuerName.charactersLen, iso2X509IssuerSerialType->X509IssuerName.characters, iso2X509IssuerSerialType_X509IssuerName_CHARACTERS_SIZE);
+ } else {
+ /* string table hit */
+ errn = EXI_ERROR_STRINGVALUES_NOT_SUPPORTED;
+ }
+ }
+ } 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({http://www.w3.org/2000/09/xmldsig#}X509IssuerName) ? */
+ errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
+ if(eventCode == 0) {
+ grammarID = 2284;
+ } else {
+ errn = EXI_DEVIANT_SUPPORT_NOT_DEPLOYED; /* or also typecast and nillable */
+ }
+ }
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 2284:
+ /* Element[START_ELEMENT({http://www.w3.org/2000/09/xmldsig#}X509SerialNumber)] */
+ errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ /* First(xsi:type)StartTag[CHARACTERS[INTEGER]] */
+ errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
+ if(errn == 0) {
+ if(eventCode == 0) {
+ errn = decodeInteger64(stream, &iso2X509IssuerSerialType->X509SerialNumber);
+ } 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({http://www.w3.org/2000/09/xmldsig#}X509SerialNumber) ? */
+ errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
+ if(eventCode == 0) {
+ grammarID = 3;
+ } else {
+ errn = EXI_DEVIANT_SUPPORT_NOT_DEPLOYED; /* or also typecast and nillable */
+ }
+ }
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 3:
+ /* Element[END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ done = 1;
+ grammarID = 4;
+ 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:2016:MsgBody,ChargingStatusReqType', base type name='ChargeLoopReqType', content type='ELEMENT', isAbstract='false', hasTypeId='false', final='0', block='0', particle='(("urn:iso:15118:2:2016:MsgBody":EVTargetEnergyRequest,"urn:iso:15118:2:2016:MsgBody":EVMaximumEnergyRequest{0-1},"urn:iso:15118:2:2016:MsgBody":EVMinimumEnergyRequest{0-1},"urn:iso:15118:2:2016:MsgBody":DisplayParameters{0-1}),("urn:iso:15118:2:2016:MsgBody":EVMaximumChargePower{0-1},"urn:iso:15118:2:2016:MsgBody":EVMaximumChargeCurrent{0-1},"urn:iso:15118:2:2016:MsgBody":EVMinimumChargeCurrent{0-1}))', derivedBy='EXTENSION'. */
+static int decode_iso2ChargingStatusReqType(bitstream_t* stream, struct iso2ChargingStatusReqType* iso2ChargingStatusReqType) {
+ int grammarID = 2285;
+ int done = 0;
+
+ init_iso2ChargingStatusReqType(iso2ChargingStatusReqType);
+
+ while(!done) {
+ switch(grammarID) {
+ case 2285:
+ /* FirstStartTag[START_ELEMENT({urn:iso:15118:2:2016:MsgBody}EVTargetEnergyRequest)] */
+ errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ errn = decode_iso2PhysicalValueType(stream, &iso2ChargingStatusReqType->EVTargetEnergyRequest);
+ grammarID = 2286;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 2286:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgBody}EVMaximumEnergyRequest), START_ELEMENT({urn:iso:15118:2:2016:MsgBody}EVMinimumEnergyRequest), START_ELEMENT({urn:iso:15118:2:2016:MsgBody}DisplayParameters), START_ELEMENT({urn:iso:15118:2:2016:MsgBody}EVMaximumChargePower), START_ELEMENT({urn:iso:15118:2:2016:MsgBody}EVMaximumChargeCurrent), START_ELEMENT({urn:iso:15118:2:2016:MsgBody}EVMinimumChargeCurrent), END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 3, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ errn = decode_iso2PhysicalValueType(stream, &iso2ChargingStatusReqType->EVMaximumEnergyRequest);
+ iso2ChargingStatusReqType->EVMaximumEnergyRequest_isUsed = 1u;
+ grammarID = 2287;
+ break;
+ case 1:
+ errn = decode_iso2PhysicalValueType(stream, &iso2ChargingStatusReqType->EVMinimumEnergyRequest);
+ iso2ChargingStatusReqType->EVMinimumEnergyRequest_isUsed = 1u;
+ grammarID = 2288;
+ break;
+ case 2:
+ errn = decode_iso2DisplayParametersType(stream, &iso2ChargingStatusReqType->DisplayParameters);
+ iso2ChargingStatusReqType->DisplayParameters_isUsed = 1u;
+ grammarID = 2289;
+ break;
+ case 3:
+ errn = decode_iso2PhysicalValueType(stream, &iso2ChargingStatusReqType->EVMaximumChargePower);
+ iso2ChargingStatusReqType->EVMaximumChargePower_isUsed = 1u;
+ grammarID = 2290;
+ break;
+ case 4:
+ errn = decode_iso2PhysicalValueType(stream, &iso2ChargingStatusReqType->EVMaximumChargeCurrent);
+ iso2ChargingStatusReqType->EVMaximumChargeCurrent_isUsed = 1u;
+ grammarID = 2291;
+ break;
+ case 5:
+ errn = decode_iso2PhysicalValueType(stream, &iso2ChargingStatusReqType->EVMinimumChargeCurrent);
+ iso2ChargingStatusReqType->EVMinimumChargeCurrent_isUsed = 1u;
+ grammarID = 3;
+ break;
+ case 6:
+ done = 1;
+ grammarID = 4;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 2287:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgBody}EVMinimumEnergyRequest), START_ELEMENT({urn:iso:15118:2:2016:MsgBody}DisplayParameters), START_ELEMENT({urn:iso:15118:2:2016:MsgBody}EVMaximumChargePower), START_ELEMENT({urn:iso:15118:2:2016:MsgBody}EVMaximumChargeCurrent), START_ELEMENT({urn:iso:15118:2:2016:MsgBody}EVMinimumChargeCurrent), END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 3, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ errn = decode_iso2PhysicalValueType(stream, &iso2ChargingStatusReqType->EVMinimumEnergyRequest);
+ iso2ChargingStatusReqType->EVMinimumEnergyRequest_isUsed = 1u;
+ grammarID = 2288;
+ break;
+ case 1:
+ errn = decode_iso2DisplayParametersType(stream, &iso2ChargingStatusReqType->DisplayParameters);
+ iso2ChargingStatusReqType->DisplayParameters_isUsed = 1u;
+ grammarID = 2289;
+ break;
+ case 2:
+ errn = decode_iso2PhysicalValueType(stream, &iso2ChargingStatusReqType->EVMaximumChargePower);
+ iso2ChargingStatusReqType->EVMaximumChargePower_isUsed = 1u;
+ grammarID = 2290;
+ break;
+ case 3:
+ errn = decode_iso2PhysicalValueType(stream, &iso2ChargingStatusReqType->EVMaximumChargeCurrent);
+ iso2ChargingStatusReqType->EVMaximumChargeCurrent_isUsed = 1u;
+ grammarID = 2291;
+ break;
+ case 4:
+ errn = decode_iso2PhysicalValueType(stream, &iso2ChargingStatusReqType->EVMinimumChargeCurrent);
+ iso2ChargingStatusReqType->EVMinimumChargeCurrent_isUsed = 1u;
+ grammarID = 3;
+ break;
+ case 5:
+ done = 1;
+ grammarID = 4;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 2288:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgBody}DisplayParameters), START_ELEMENT({urn:iso:15118:2:2016:MsgBody}EVMaximumChargePower), START_ELEMENT({urn:iso:15118:2:2016:MsgBody}EVMaximumChargeCurrent), START_ELEMENT({urn:iso:15118:2:2016:MsgBody}EVMinimumChargeCurrent), END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 3, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ errn = decode_iso2DisplayParametersType(stream, &iso2ChargingStatusReqType->DisplayParameters);
+ iso2ChargingStatusReqType->DisplayParameters_isUsed = 1u;
+ grammarID = 2289;
+ break;
+ case 1:
+ errn = decode_iso2PhysicalValueType(stream, &iso2ChargingStatusReqType->EVMaximumChargePower);
+ iso2ChargingStatusReqType->EVMaximumChargePower_isUsed = 1u;
+ grammarID = 2290;
+ break;
+ case 2:
+ errn = decode_iso2PhysicalValueType(stream, &iso2ChargingStatusReqType->EVMaximumChargeCurrent);
+ iso2ChargingStatusReqType->EVMaximumChargeCurrent_isUsed = 1u;
+ grammarID = 2291;
+ break;
+ case 3:
+ errn = decode_iso2PhysicalValueType(stream, &iso2ChargingStatusReqType->EVMinimumChargeCurrent);
+ iso2ChargingStatusReqType->EVMinimumChargeCurrent_isUsed = 1u;
+ grammarID = 3;
+ break;
+ case 4:
+ done = 1;
+ grammarID = 4;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 2289:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgBody}EVMaximumChargePower), START_ELEMENT({urn:iso:15118:2:2016:MsgBody}EVMaximumChargeCurrent), START_ELEMENT({urn:iso:15118:2:2016:MsgBody}EVMinimumChargeCurrent), END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 3, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ errn = decode_iso2PhysicalValueType(stream, &iso2ChargingStatusReqType->EVMaximumChargePower);
+ iso2ChargingStatusReqType->EVMaximumChargePower_isUsed = 1u;
+ grammarID = 2290;
+ break;
+ case 1:
+ errn = decode_iso2PhysicalValueType(stream, &iso2ChargingStatusReqType->EVMaximumChargeCurrent);
+ iso2ChargingStatusReqType->EVMaximumChargeCurrent_isUsed = 1u;
+ grammarID = 2291;
+ break;
+ case 2:
+ errn = decode_iso2PhysicalValueType(stream, &iso2ChargingStatusReqType->EVMinimumChargeCurrent);
+ iso2ChargingStatusReqType->EVMinimumChargeCurrent_isUsed = 1u;
+ grammarID = 3;
+ break;
+ case 3:
+ done = 1;
+ grammarID = 4;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 2290:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgBody}EVMaximumChargeCurrent), START_ELEMENT({urn:iso:15118:2:2016:MsgBody}EVMinimumChargeCurrent), END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ errn = decode_iso2PhysicalValueType(stream, &iso2ChargingStatusReqType->EVMaximumChargeCurrent);
+ iso2ChargingStatusReqType->EVMaximumChargeCurrent_isUsed = 1u;
+ grammarID = 2291;
+ break;
+ case 1:
+ errn = decode_iso2PhysicalValueType(stream, &iso2ChargingStatusReqType->EVMinimumChargeCurrent);
+ iso2ChargingStatusReqType->EVMinimumChargeCurrent_isUsed = 1u;
+ grammarID = 3;
+ break;
+ case 2:
+ done = 1;
+ grammarID = 4;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 2291:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgBody}EVMinimumChargeCurrent), END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ errn = decode_iso2PhysicalValueType(stream, &iso2ChargingStatusReqType->EVMinimumChargeCurrent);
+ iso2ChargingStatusReqType->EVMinimumChargeCurrent_isUsed = 1u;
+ grammarID = 3;
+ break;
+ case 1:
+ done = 1;
+ grammarID = 4;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 3:
+ /* Element[END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ done = 1;
+ grammarID = 4;
+ 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:2016:MsgBody,CertificateInstallationResType', base type name='V2GResponseType', content type='ELEMENT', isAbstract='false', hasTypeId='false', final='0', block='0', particle='(("urn:iso:15118:2:2016:MsgBody":ResponseCode,"urn:iso:15118:2:2016:MsgBody":EVSEStatus{0-1}),("urn:iso:15118:2:2016:MsgBody":SAProvisioningCertificateChain,"urn:iso:15118:2:2016:MsgBody":ContractSignatureCertChain,"urn:iso:15118:2:2016:MsgBody":ContractSignatureEncryptedPrivateKey,"urn:iso:15118:2:2016:MsgBody":DHpublickey,"urn:iso:15118:2:2016:MsgBody":eMAID))', derivedBy='EXTENSION'. */
+static int decode_iso2CertificateInstallationResType(bitstream_t* stream, struct iso2CertificateInstallationResType* iso2CertificateInstallationResType) {
+ int grammarID = 2292;
+ int done = 0;
+
+ init_iso2CertificateInstallationResType(iso2CertificateInstallationResType);
+
+ while(!done) {
+ switch(grammarID) {
+ case 2292:
+ /* FirstStartTag[START_ELEMENT({urn:iso:15118:2:2016:MsgBody}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, 5, &uint32);
+ iso2CertificateInstallationResType->ResponseCode = (iso2responseCodeType) 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({urn:iso:15118:2:2016:MsgBody}ResponseCode) ? */
+ errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
+ if(eventCode == 0) {
+ grammarID = 2293;
+ } else {
+ errn = EXI_DEVIANT_SUPPORT_NOT_DEPLOYED; /* or also typecast and nillable */
+ }
+ }
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 2293:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgBody}EVSEStatus), START_ELEMENT({urn:iso:15118:2:2016:MsgBody}SAProvisioningCertificateChain)] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ errn = decode_iso2EVSEStatusType(stream, &iso2CertificateInstallationResType->EVSEStatus);
+ iso2CertificateInstallationResType->EVSEStatus_isUsed = 1u;
+ grammarID = 2294;
+ break;
+ case 1:
+ errn = decode_iso2CertificateChainType(stream, &iso2CertificateInstallationResType->SAProvisioningCertificateChain);
+ grammarID = 2295;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 2294:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgBody}SAProvisioningCertificateChain)] */
+ errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ errn = decode_iso2CertificateChainType(stream, &iso2CertificateInstallationResType->SAProvisioningCertificateChain);
+ grammarID = 2295;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 2295:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgBody}ContractSignatureCertChain)] */
+ errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ errn = decode_iso2CertificateChainType(stream, &iso2CertificateInstallationResType->ContractSignatureCertChain);
+ grammarID = 2296;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 2296:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgBody}ContractSignatureEncryptedPrivateKey)] */
+ errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ errn = decode_iso2ContractSignatureEncryptedPrivateKeyType(stream, &iso2CertificateInstallationResType->ContractSignatureEncryptedPrivateKey);
+ grammarID = 2297;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 2297:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgBody}DHpublickey)] */
+ errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ errn = decode_iso2DiffieHellmanPublickeyType(stream, &iso2CertificateInstallationResType->DHpublickey);
+ grammarID = 2298;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 2298:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgBody}eMAID)] */
+ errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ errn = decode_iso2EMAIDType(stream, &iso2CertificateInstallationResType->eMAID);
+ grammarID = 3;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 3:
+ /* Element[END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ done = 1;
+ grammarID = 4;
+ 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:2016:MsgDataTypes,SensorPackageType', base type name='anyType', content type='ELEMENT', isAbstract='false', hasTypeId='false', final='0', block='0', particle='("urn:iso:15118:2:2016:MsgDataTypes":PackageIndex,"urn:iso:15118:2:2016:MsgDataTypes":SensorMeasurements{1-255})', derivedBy='RESTRICTION'. */
+static int decode_iso2SensorPackageType(bitstream_t* stream, struct iso2SensorPackageType* iso2SensorPackageType) {
+ int grammarID = 2299;
+ int done = 0;
+
+ init_iso2SensorPackageType(iso2SensorPackageType);
+
+ while(!done) {
+ switch(grammarID) {
+ case 2299:
+ /* FirstStartTag[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}PackageIndex)] */
+ errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ /* First(xsi:type)StartTag[CHARACTERS[UNSIGNED_INTEGER]] */
+ errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
+ if(errn == 0) {
+ if(eventCode == 0) {
+ errn = decodeUnsignedInteger32(stream, &iso2SensorPackageType->PackageIndex);
+ } 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({urn:iso:15118:2:2016:MsgDataTypes}PackageIndex) ? */
+ errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
+ if(eventCode == 0) {
+ grammarID = 2300;
+ } else {
+ errn = EXI_DEVIANT_SUPPORT_NOT_DEPLOYED; /* or also typecast and nillable */
+ }
+ }
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 2300:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorMeasurements)] */
+ errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ if (iso2SensorPackageType->SensorMeasurements.arrayLen < iso2SensorPackageType_SensorMeasurements_ARRAY_SIZE) {
+ errn = decode_iso2SensorMeasurementsType(stream, &iso2SensorPackageType->SensorMeasurements.array[iso2SensorPackageType->SensorMeasurements.arrayLen++]);
+ } else {
+ errn = EXI_ERROR_OUT_OF_BOUNDS;
+ }
+ grammarID = 2301;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 2301:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorMeasurements), END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ if (iso2SensorPackageType->SensorMeasurements.arrayLen < iso2SensorPackageType_SensorMeasurements_ARRAY_SIZE) {
+ errn = decode_iso2SensorMeasurementsType(stream, &iso2SensorPackageType->SensorMeasurements.array[iso2SensorPackageType->SensorMeasurements.arrayLen++]);
+ } else {
+ errn = EXI_ERROR_OUT_OF_BOUNDS;
+ }
+ grammarID = 2302;
+ break;
+ case 1:
+ done = 1;
+ grammarID = 4;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 2302:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorMeasurements), END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ if (iso2SensorPackageType->SensorMeasurements.arrayLen < iso2SensorPackageType_SensorMeasurements_ARRAY_SIZE) {
+ errn = decode_iso2SensorMeasurementsType(stream, &iso2SensorPackageType->SensorMeasurements.array[iso2SensorPackageType->SensorMeasurements.arrayLen++]);
+ } else {
+ errn = EXI_ERROR_OUT_OF_BOUNDS;
+ }
+ grammarID = 2303;
+ break;
+ case 1:
+ done = 1;
+ grammarID = 4;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 2303:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorMeasurements), END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ if (iso2SensorPackageType->SensorMeasurements.arrayLen < iso2SensorPackageType_SensorMeasurements_ARRAY_SIZE) {
+ errn = decode_iso2SensorMeasurementsType(stream, &iso2SensorPackageType->SensorMeasurements.array[iso2SensorPackageType->SensorMeasurements.arrayLen++]);
+ } else {
+ errn = EXI_ERROR_OUT_OF_BOUNDS;
+ }
+ grammarID = 2304;
+ break;
+ case 1:
+ done = 1;
+ grammarID = 4;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 2304:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorMeasurements), END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ if (iso2SensorPackageType->SensorMeasurements.arrayLen < iso2SensorPackageType_SensorMeasurements_ARRAY_SIZE) {
+ errn = decode_iso2SensorMeasurementsType(stream, &iso2SensorPackageType->SensorMeasurements.array[iso2SensorPackageType->SensorMeasurements.arrayLen++]);
+ } else {
+ errn = EXI_ERROR_OUT_OF_BOUNDS;
+ }
+ grammarID = 2305;
+ break;
+ case 1:
+ done = 1;
+ grammarID = 4;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 2305:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorMeasurements), END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ if (iso2SensorPackageType->SensorMeasurements.arrayLen < iso2SensorPackageType_SensorMeasurements_ARRAY_SIZE) {
+ errn = decode_iso2SensorMeasurementsType(stream, &iso2SensorPackageType->SensorMeasurements.array[iso2SensorPackageType->SensorMeasurements.arrayLen++]);
+ } else {
+ errn = EXI_ERROR_OUT_OF_BOUNDS;
+ }
+ grammarID = 2306;
+ break;
+ case 1:
+ done = 1;
+ grammarID = 4;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 2306:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorMeasurements), END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ if (iso2SensorPackageType->SensorMeasurements.arrayLen < iso2SensorPackageType_SensorMeasurements_ARRAY_SIZE) {
+ errn = decode_iso2SensorMeasurementsType(stream, &iso2SensorPackageType->SensorMeasurements.array[iso2SensorPackageType->SensorMeasurements.arrayLen++]);
+ } else {
+ errn = EXI_ERROR_OUT_OF_BOUNDS;
+ }
+ grammarID = 2307;
+ break;
+ case 1:
+ done = 1;
+ grammarID = 4;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 2307:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorMeasurements), END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ if (iso2SensorPackageType->SensorMeasurements.arrayLen < iso2SensorPackageType_SensorMeasurements_ARRAY_SIZE) {
+ errn = decode_iso2SensorMeasurementsType(stream, &iso2SensorPackageType->SensorMeasurements.array[iso2SensorPackageType->SensorMeasurements.arrayLen++]);
+ } else {
+ errn = EXI_ERROR_OUT_OF_BOUNDS;
+ }
+ grammarID = 2308;
+ break;
+ case 1:
+ done = 1;
+ grammarID = 4;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 2308:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorMeasurements), END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ if (iso2SensorPackageType->SensorMeasurements.arrayLen < iso2SensorPackageType_SensorMeasurements_ARRAY_SIZE) {
+ errn = decode_iso2SensorMeasurementsType(stream, &iso2SensorPackageType->SensorMeasurements.array[iso2SensorPackageType->SensorMeasurements.arrayLen++]);
+ } else {
+ errn = EXI_ERROR_OUT_OF_BOUNDS;
+ }
+ grammarID = 2309;
+ break;
+ case 1:
+ done = 1;
+ grammarID = 4;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 2309:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorMeasurements), END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ if (iso2SensorPackageType->SensorMeasurements.arrayLen < iso2SensorPackageType_SensorMeasurements_ARRAY_SIZE) {
+ errn = decode_iso2SensorMeasurementsType(stream, &iso2SensorPackageType->SensorMeasurements.array[iso2SensorPackageType->SensorMeasurements.arrayLen++]);
+ } else {
+ errn = EXI_ERROR_OUT_OF_BOUNDS;
+ }
+ grammarID = 2310;
+ break;
+ case 1:
+ done = 1;
+ grammarID = 4;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 2310:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorMeasurements), END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ if (iso2SensorPackageType->SensorMeasurements.arrayLen < iso2SensorPackageType_SensorMeasurements_ARRAY_SIZE) {
+ errn = decode_iso2SensorMeasurementsType(stream, &iso2SensorPackageType->SensorMeasurements.array[iso2SensorPackageType->SensorMeasurements.arrayLen++]);
+ } else {
+ errn = EXI_ERROR_OUT_OF_BOUNDS;
+ }
+ grammarID = 2311;
+ break;
+ case 1:
+ done = 1;
+ grammarID = 4;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 2311:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorMeasurements), END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ if (iso2SensorPackageType->SensorMeasurements.arrayLen < iso2SensorPackageType_SensorMeasurements_ARRAY_SIZE) {
+ errn = decode_iso2SensorMeasurementsType(stream, &iso2SensorPackageType->SensorMeasurements.array[iso2SensorPackageType->SensorMeasurements.arrayLen++]);
+ } else {
+ errn = EXI_ERROR_OUT_OF_BOUNDS;
+ }
+ grammarID = 2312;
+ break;
+ case 1:
+ done = 1;
+ grammarID = 4;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 2312:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorMeasurements), END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ if (iso2SensorPackageType->SensorMeasurements.arrayLen < iso2SensorPackageType_SensorMeasurements_ARRAY_SIZE) {
+ errn = decode_iso2SensorMeasurementsType(stream, &iso2SensorPackageType->SensorMeasurements.array[iso2SensorPackageType->SensorMeasurements.arrayLen++]);
+ } else {
+ errn = EXI_ERROR_OUT_OF_BOUNDS;
+ }
+ grammarID = 2313;
+ break;
+ case 1:
+ done = 1;
+ grammarID = 4;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 2313:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorMeasurements), END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ if (iso2SensorPackageType->SensorMeasurements.arrayLen < iso2SensorPackageType_SensorMeasurements_ARRAY_SIZE) {
+ errn = decode_iso2SensorMeasurementsType(stream, &iso2SensorPackageType->SensorMeasurements.array[iso2SensorPackageType->SensorMeasurements.arrayLen++]);
+ } else {
+ errn = EXI_ERROR_OUT_OF_BOUNDS;
+ }
+ grammarID = 2314;
+ break;
+ case 1:
+ done = 1;
+ grammarID = 4;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 2314:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorMeasurements), END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ if (iso2SensorPackageType->SensorMeasurements.arrayLen < iso2SensorPackageType_SensorMeasurements_ARRAY_SIZE) {
+ errn = decode_iso2SensorMeasurementsType(stream, &iso2SensorPackageType->SensorMeasurements.array[iso2SensorPackageType->SensorMeasurements.arrayLen++]);
+ } else {
+ errn = EXI_ERROR_OUT_OF_BOUNDS;
+ }
+ grammarID = 2315;
+ break;
+ case 1:
+ done = 1;
+ grammarID = 4;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 2315:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorMeasurements), END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ if (iso2SensorPackageType->SensorMeasurements.arrayLen < iso2SensorPackageType_SensorMeasurements_ARRAY_SIZE) {
+ errn = decode_iso2SensorMeasurementsType(stream, &iso2SensorPackageType->SensorMeasurements.array[iso2SensorPackageType->SensorMeasurements.arrayLen++]);
+ } else {
+ errn = EXI_ERROR_OUT_OF_BOUNDS;
+ }
+ grammarID = 2316;
+ break;
+ case 1:
+ done = 1;
+ grammarID = 4;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 2316:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorMeasurements), END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ if (iso2SensorPackageType->SensorMeasurements.arrayLen < iso2SensorPackageType_SensorMeasurements_ARRAY_SIZE) {
+ errn = decode_iso2SensorMeasurementsType(stream, &iso2SensorPackageType->SensorMeasurements.array[iso2SensorPackageType->SensorMeasurements.arrayLen++]);
+ } else {
+ errn = EXI_ERROR_OUT_OF_BOUNDS;
+ }
+ grammarID = 2317;
+ break;
+ case 1:
+ done = 1;
+ grammarID = 4;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 2317:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorMeasurements), END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ if (iso2SensorPackageType->SensorMeasurements.arrayLen < iso2SensorPackageType_SensorMeasurements_ARRAY_SIZE) {
+ errn = decode_iso2SensorMeasurementsType(stream, &iso2SensorPackageType->SensorMeasurements.array[iso2SensorPackageType->SensorMeasurements.arrayLen++]);
+ } else {
+ errn = EXI_ERROR_OUT_OF_BOUNDS;
+ }
+ grammarID = 2318;
+ break;
+ case 1:
+ done = 1;
+ grammarID = 4;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 2318:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorMeasurements), END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ if (iso2SensorPackageType->SensorMeasurements.arrayLen < iso2SensorPackageType_SensorMeasurements_ARRAY_SIZE) {
+ errn = decode_iso2SensorMeasurementsType(stream, &iso2SensorPackageType->SensorMeasurements.array[iso2SensorPackageType->SensorMeasurements.arrayLen++]);
+ } else {
+ errn = EXI_ERROR_OUT_OF_BOUNDS;
+ }
+ grammarID = 2319;
+ break;
+ case 1:
+ done = 1;
+ grammarID = 4;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 2319:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorMeasurements), END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ if (iso2SensorPackageType->SensorMeasurements.arrayLen < iso2SensorPackageType_SensorMeasurements_ARRAY_SIZE) {
+ errn = decode_iso2SensorMeasurementsType(stream, &iso2SensorPackageType->SensorMeasurements.array[iso2SensorPackageType->SensorMeasurements.arrayLen++]);
+ } else {
+ errn = EXI_ERROR_OUT_OF_BOUNDS;
+ }
+ grammarID = 2320;
+ break;
+ case 1:
+ done = 1;
+ grammarID = 4;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 2320:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorMeasurements), END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ if (iso2SensorPackageType->SensorMeasurements.arrayLen < iso2SensorPackageType_SensorMeasurements_ARRAY_SIZE) {
+ errn = decode_iso2SensorMeasurementsType(stream, &iso2SensorPackageType->SensorMeasurements.array[iso2SensorPackageType->SensorMeasurements.arrayLen++]);
+ } else {
+ errn = EXI_ERROR_OUT_OF_BOUNDS;
+ }
+ grammarID = 2321;
+ break;
+ case 1:
+ done = 1;
+ grammarID = 4;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 2321:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorMeasurements), END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ if (iso2SensorPackageType->SensorMeasurements.arrayLen < iso2SensorPackageType_SensorMeasurements_ARRAY_SIZE) {
+ errn = decode_iso2SensorMeasurementsType(stream, &iso2SensorPackageType->SensorMeasurements.array[iso2SensorPackageType->SensorMeasurements.arrayLen++]);
+ } else {
+ errn = EXI_ERROR_OUT_OF_BOUNDS;
+ }
+ grammarID = 2322;
+ break;
+ case 1:
+ done = 1;
+ grammarID = 4;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 2322:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorMeasurements), END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ if (iso2SensorPackageType->SensorMeasurements.arrayLen < iso2SensorPackageType_SensorMeasurements_ARRAY_SIZE) {
+ errn = decode_iso2SensorMeasurementsType(stream, &iso2SensorPackageType->SensorMeasurements.array[iso2SensorPackageType->SensorMeasurements.arrayLen++]);
+ } else {
+ errn = EXI_ERROR_OUT_OF_BOUNDS;
+ }
+ grammarID = 2323;
+ break;
+ case 1:
+ done = 1;
+ grammarID = 4;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 2323:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorMeasurements), END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ if (iso2SensorPackageType->SensorMeasurements.arrayLen < iso2SensorPackageType_SensorMeasurements_ARRAY_SIZE) {
+ errn = decode_iso2SensorMeasurementsType(stream, &iso2SensorPackageType->SensorMeasurements.array[iso2SensorPackageType->SensorMeasurements.arrayLen++]);
+ } else {
+ errn = EXI_ERROR_OUT_OF_BOUNDS;
+ }
+ grammarID = 2324;
+ break;
+ case 1:
+ done = 1;
+ grammarID = 4;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 2324:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorMeasurements), END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ if (iso2SensorPackageType->SensorMeasurements.arrayLen < iso2SensorPackageType_SensorMeasurements_ARRAY_SIZE) {
+ errn = decode_iso2SensorMeasurementsType(stream, &iso2SensorPackageType->SensorMeasurements.array[iso2SensorPackageType->SensorMeasurements.arrayLen++]);
+ } else {
+ errn = EXI_ERROR_OUT_OF_BOUNDS;
+ }
+ grammarID = 2325;
+ break;
+ case 1:
+ done = 1;
+ grammarID = 4;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 2325:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorMeasurements), END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ if (iso2SensorPackageType->SensorMeasurements.arrayLen < iso2SensorPackageType_SensorMeasurements_ARRAY_SIZE) {
+ errn = decode_iso2SensorMeasurementsType(stream, &iso2SensorPackageType->SensorMeasurements.array[iso2SensorPackageType->SensorMeasurements.arrayLen++]);
+ } else {
+ errn = EXI_ERROR_OUT_OF_BOUNDS;
+ }
+ grammarID = 2326;
+ break;
+ case 1:
+ done = 1;
+ grammarID = 4;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 2326:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorMeasurements), END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ if (iso2SensorPackageType->SensorMeasurements.arrayLen < iso2SensorPackageType_SensorMeasurements_ARRAY_SIZE) {
+ errn = decode_iso2SensorMeasurementsType(stream, &iso2SensorPackageType->SensorMeasurements.array[iso2SensorPackageType->SensorMeasurements.arrayLen++]);
+ } else {
+ errn = EXI_ERROR_OUT_OF_BOUNDS;
+ }
+ grammarID = 2327;
+ break;
+ case 1:
+ done = 1;
+ grammarID = 4;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 2327:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorMeasurements), END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ if (iso2SensorPackageType->SensorMeasurements.arrayLen < iso2SensorPackageType_SensorMeasurements_ARRAY_SIZE) {
+ errn = decode_iso2SensorMeasurementsType(stream, &iso2SensorPackageType->SensorMeasurements.array[iso2SensorPackageType->SensorMeasurements.arrayLen++]);
+ } else {
+ errn = EXI_ERROR_OUT_OF_BOUNDS;
+ }
+ grammarID = 2328;
+ break;
+ case 1:
+ done = 1;
+ grammarID = 4;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 2328:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorMeasurements), END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ if (iso2SensorPackageType->SensorMeasurements.arrayLen < iso2SensorPackageType_SensorMeasurements_ARRAY_SIZE) {
+ errn = decode_iso2SensorMeasurementsType(stream, &iso2SensorPackageType->SensorMeasurements.array[iso2SensorPackageType->SensorMeasurements.arrayLen++]);
+ } else {
+ errn = EXI_ERROR_OUT_OF_BOUNDS;
+ }
+ grammarID = 2329;
+ break;
+ case 1:
+ done = 1;
+ grammarID = 4;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 2329:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorMeasurements), END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ if (iso2SensorPackageType->SensorMeasurements.arrayLen < iso2SensorPackageType_SensorMeasurements_ARRAY_SIZE) {
+ errn = decode_iso2SensorMeasurementsType(stream, &iso2SensorPackageType->SensorMeasurements.array[iso2SensorPackageType->SensorMeasurements.arrayLen++]);
+ } else {
+ errn = EXI_ERROR_OUT_OF_BOUNDS;
+ }
+ grammarID = 2330;
+ break;
+ case 1:
+ done = 1;
+ grammarID = 4;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 2330:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorMeasurements), END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ if (iso2SensorPackageType->SensorMeasurements.arrayLen < iso2SensorPackageType_SensorMeasurements_ARRAY_SIZE) {
+ errn = decode_iso2SensorMeasurementsType(stream, &iso2SensorPackageType->SensorMeasurements.array[iso2SensorPackageType->SensorMeasurements.arrayLen++]);
+ } else {
+ errn = EXI_ERROR_OUT_OF_BOUNDS;
+ }
+ grammarID = 2331;
+ break;
+ case 1:
+ done = 1;
+ grammarID = 4;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 2331:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorMeasurements), END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ if (iso2SensorPackageType->SensorMeasurements.arrayLen < iso2SensorPackageType_SensorMeasurements_ARRAY_SIZE) {
+ errn = decode_iso2SensorMeasurementsType(stream, &iso2SensorPackageType->SensorMeasurements.array[iso2SensorPackageType->SensorMeasurements.arrayLen++]);
+ } else {
+ errn = EXI_ERROR_OUT_OF_BOUNDS;
+ }
+ grammarID = 2332;
+ break;
+ case 1:
+ done = 1;
+ grammarID = 4;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 2332:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorMeasurements), END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ if (iso2SensorPackageType->SensorMeasurements.arrayLen < iso2SensorPackageType_SensorMeasurements_ARRAY_SIZE) {
+ errn = decode_iso2SensorMeasurementsType(stream, &iso2SensorPackageType->SensorMeasurements.array[iso2SensorPackageType->SensorMeasurements.arrayLen++]);
+ } else {
+ errn = EXI_ERROR_OUT_OF_BOUNDS;
+ }
+ grammarID = 2333;
+ break;
+ case 1:
+ done = 1;
+ grammarID = 4;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 2333:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorMeasurements), END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ if (iso2SensorPackageType->SensorMeasurements.arrayLen < iso2SensorPackageType_SensorMeasurements_ARRAY_SIZE) {
+ errn = decode_iso2SensorMeasurementsType(stream, &iso2SensorPackageType->SensorMeasurements.array[iso2SensorPackageType->SensorMeasurements.arrayLen++]);
+ } else {
+ errn = EXI_ERROR_OUT_OF_BOUNDS;
+ }
+ grammarID = 2334;
+ break;
+ case 1:
+ done = 1;
+ grammarID = 4;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 2334:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorMeasurements), END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ if (iso2SensorPackageType->SensorMeasurements.arrayLen < iso2SensorPackageType_SensorMeasurements_ARRAY_SIZE) {
+ errn = decode_iso2SensorMeasurementsType(stream, &iso2SensorPackageType->SensorMeasurements.array[iso2SensorPackageType->SensorMeasurements.arrayLen++]);
+ } else {
+ errn = EXI_ERROR_OUT_OF_BOUNDS;
+ }
+ grammarID = 2335;
+ break;
+ case 1:
+ done = 1;
+ grammarID = 4;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 2335:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorMeasurements), END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ if (iso2SensorPackageType->SensorMeasurements.arrayLen < iso2SensorPackageType_SensorMeasurements_ARRAY_SIZE) {
+ errn = decode_iso2SensorMeasurementsType(stream, &iso2SensorPackageType->SensorMeasurements.array[iso2SensorPackageType->SensorMeasurements.arrayLen++]);
+ } else {
+ errn = EXI_ERROR_OUT_OF_BOUNDS;
+ }
+ grammarID = 2336;
+ break;
+ case 1:
+ done = 1;
+ grammarID = 4;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 2336:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorMeasurements), END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ if (iso2SensorPackageType->SensorMeasurements.arrayLen < iso2SensorPackageType_SensorMeasurements_ARRAY_SIZE) {
+ errn = decode_iso2SensorMeasurementsType(stream, &iso2SensorPackageType->SensorMeasurements.array[iso2SensorPackageType->SensorMeasurements.arrayLen++]);
+ } else {
+ errn = EXI_ERROR_OUT_OF_BOUNDS;
+ }
+ grammarID = 2337;
+ break;
+ case 1:
+ done = 1;
+ grammarID = 4;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 2337:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorMeasurements), END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ if (iso2SensorPackageType->SensorMeasurements.arrayLen < iso2SensorPackageType_SensorMeasurements_ARRAY_SIZE) {
+ errn = decode_iso2SensorMeasurementsType(stream, &iso2SensorPackageType->SensorMeasurements.array[iso2SensorPackageType->SensorMeasurements.arrayLen++]);
+ } else {
+ errn = EXI_ERROR_OUT_OF_BOUNDS;
+ }
+ grammarID = 2338;
+ break;
+ case 1:
+ done = 1;
+ grammarID = 4;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 2338:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorMeasurements), END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ if (iso2SensorPackageType->SensorMeasurements.arrayLen < iso2SensorPackageType_SensorMeasurements_ARRAY_SIZE) {
+ errn = decode_iso2SensorMeasurementsType(stream, &iso2SensorPackageType->SensorMeasurements.array[iso2SensorPackageType->SensorMeasurements.arrayLen++]);
+ } else {
+ errn = EXI_ERROR_OUT_OF_BOUNDS;
+ }
+ grammarID = 2339;
+ break;
+ case 1:
+ done = 1;
+ grammarID = 4;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 2339:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorMeasurements), END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ if (iso2SensorPackageType->SensorMeasurements.arrayLen < iso2SensorPackageType_SensorMeasurements_ARRAY_SIZE) {
+ errn = decode_iso2SensorMeasurementsType(stream, &iso2SensorPackageType->SensorMeasurements.array[iso2SensorPackageType->SensorMeasurements.arrayLen++]);
+ } else {
+ errn = EXI_ERROR_OUT_OF_BOUNDS;
+ }
+ grammarID = 2340;
+ break;
+ case 1:
+ done = 1;
+ grammarID = 4;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 2340:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorMeasurements), END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ if (iso2SensorPackageType->SensorMeasurements.arrayLen < iso2SensorPackageType_SensorMeasurements_ARRAY_SIZE) {
+ errn = decode_iso2SensorMeasurementsType(stream, &iso2SensorPackageType->SensorMeasurements.array[iso2SensorPackageType->SensorMeasurements.arrayLen++]);
+ } else {
+ errn = EXI_ERROR_OUT_OF_BOUNDS;
+ }
+ grammarID = 2341;
+ break;
+ case 1:
+ done = 1;
+ grammarID = 4;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 2341:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorMeasurements), END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ if (iso2SensorPackageType->SensorMeasurements.arrayLen < iso2SensorPackageType_SensorMeasurements_ARRAY_SIZE) {
+ errn = decode_iso2SensorMeasurementsType(stream, &iso2SensorPackageType->SensorMeasurements.array[iso2SensorPackageType->SensorMeasurements.arrayLen++]);
+ } else {
+ errn = EXI_ERROR_OUT_OF_BOUNDS;
+ }
+ grammarID = 2342;
+ break;
+ case 1:
+ done = 1;
+ grammarID = 4;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 2342:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorMeasurements), END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ if (iso2SensorPackageType->SensorMeasurements.arrayLen < iso2SensorPackageType_SensorMeasurements_ARRAY_SIZE) {
+ errn = decode_iso2SensorMeasurementsType(stream, &iso2SensorPackageType->SensorMeasurements.array[iso2SensorPackageType->SensorMeasurements.arrayLen++]);
+ } else {
+ errn = EXI_ERROR_OUT_OF_BOUNDS;
+ }
+ grammarID = 2343;
+ break;
+ case 1:
+ done = 1;
+ grammarID = 4;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 2343:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorMeasurements), END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ if (iso2SensorPackageType->SensorMeasurements.arrayLen < iso2SensorPackageType_SensorMeasurements_ARRAY_SIZE) {
+ errn = decode_iso2SensorMeasurementsType(stream, &iso2SensorPackageType->SensorMeasurements.array[iso2SensorPackageType->SensorMeasurements.arrayLen++]);
+ } else {
+ errn = EXI_ERROR_OUT_OF_BOUNDS;
+ }
+ grammarID = 2344;
+ break;
+ case 1:
+ done = 1;
+ grammarID = 4;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 2344:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorMeasurements), END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ if (iso2SensorPackageType->SensorMeasurements.arrayLen < iso2SensorPackageType_SensorMeasurements_ARRAY_SIZE) {
+ errn = decode_iso2SensorMeasurementsType(stream, &iso2SensorPackageType->SensorMeasurements.array[iso2SensorPackageType->SensorMeasurements.arrayLen++]);
+ } else {
+ errn = EXI_ERROR_OUT_OF_BOUNDS;
+ }
+ grammarID = 2345;
+ break;
+ case 1:
+ done = 1;
+ grammarID = 4;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 2345:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorMeasurements), END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ if (iso2SensorPackageType->SensorMeasurements.arrayLen < iso2SensorPackageType_SensorMeasurements_ARRAY_SIZE) {
+ errn = decode_iso2SensorMeasurementsType(stream, &iso2SensorPackageType->SensorMeasurements.array[iso2SensorPackageType->SensorMeasurements.arrayLen++]);
+ } else {
+ errn = EXI_ERROR_OUT_OF_BOUNDS;
+ }
+ grammarID = 2346;
+ break;
+ case 1:
+ done = 1;
+ grammarID = 4;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 2346:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorMeasurements), END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ if (iso2SensorPackageType->SensorMeasurements.arrayLen < iso2SensorPackageType_SensorMeasurements_ARRAY_SIZE) {
+ errn = decode_iso2SensorMeasurementsType(stream, &iso2SensorPackageType->SensorMeasurements.array[iso2SensorPackageType->SensorMeasurements.arrayLen++]);
+ } else {
+ errn = EXI_ERROR_OUT_OF_BOUNDS;
+ }
+ grammarID = 2347;
+ break;
+ case 1:
+ done = 1;
+ grammarID = 4;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 2347:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorMeasurements), END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ if (iso2SensorPackageType->SensorMeasurements.arrayLen < iso2SensorPackageType_SensorMeasurements_ARRAY_SIZE) {
+ errn = decode_iso2SensorMeasurementsType(stream, &iso2SensorPackageType->SensorMeasurements.array[iso2SensorPackageType->SensorMeasurements.arrayLen++]);
+ } else {
+ errn = EXI_ERROR_OUT_OF_BOUNDS;
+ }
+ grammarID = 2348;
+ break;
+ case 1:
+ done = 1;
+ grammarID = 4;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 2348:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorMeasurements), END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ if (iso2SensorPackageType->SensorMeasurements.arrayLen < iso2SensorPackageType_SensorMeasurements_ARRAY_SIZE) {
+ errn = decode_iso2SensorMeasurementsType(stream, &iso2SensorPackageType->SensorMeasurements.array[iso2SensorPackageType->SensorMeasurements.arrayLen++]);
+ } else {
+ errn = EXI_ERROR_OUT_OF_BOUNDS;
+ }
+ grammarID = 2349;
+ break;
+ case 1:
+ done = 1;
+ grammarID = 4;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 2349:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorMeasurements), END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ if (iso2SensorPackageType->SensorMeasurements.arrayLen < iso2SensorPackageType_SensorMeasurements_ARRAY_SIZE) {
+ errn = decode_iso2SensorMeasurementsType(stream, &iso2SensorPackageType->SensorMeasurements.array[iso2SensorPackageType->SensorMeasurements.arrayLen++]);
+ } else {
+ errn = EXI_ERROR_OUT_OF_BOUNDS;
+ }
+ grammarID = 2350;
+ break;
+ case 1:
+ done = 1;
+ grammarID = 4;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 2350:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorMeasurements), END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ if (iso2SensorPackageType->SensorMeasurements.arrayLen < iso2SensorPackageType_SensorMeasurements_ARRAY_SIZE) {
+ errn = decode_iso2SensorMeasurementsType(stream, &iso2SensorPackageType->SensorMeasurements.array[iso2SensorPackageType->SensorMeasurements.arrayLen++]);
+ } else {
+ errn = EXI_ERROR_OUT_OF_BOUNDS;
+ }
+ grammarID = 2351;
+ break;
+ case 1:
+ done = 1;
+ grammarID = 4;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 2351:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorMeasurements), END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ if (iso2SensorPackageType->SensorMeasurements.arrayLen < iso2SensorPackageType_SensorMeasurements_ARRAY_SIZE) {
+ errn = decode_iso2SensorMeasurementsType(stream, &iso2SensorPackageType->SensorMeasurements.array[iso2SensorPackageType->SensorMeasurements.arrayLen++]);
+ } else {
+ errn = EXI_ERROR_OUT_OF_BOUNDS;
+ }
+ grammarID = 2352;
+ break;
+ case 1:
+ done = 1;
+ grammarID = 4;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 2352:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorMeasurements), END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ if (iso2SensorPackageType->SensorMeasurements.arrayLen < iso2SensorPackageType_SensorMeasurements_ARRAY_SIZE) {
+ errn = decode_iso2SensorMeasurementsType(stream, &iso2SensorPackageType->SensorMeasurements.array[iso2SensorPackageType->SensorMeasurements.arrayLen++]);
+ } else {
+ errn = EXI_ERROR_OUT_OF_BOUNDS;
+ }
+ grammarID = 2353;
+ break;
+ case 1:
+ done = 1;
+ grammarID = 4;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 2353:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorMeasurements), END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ if (iso2SensorPackageType->SensorMeasurements.arrayLen < iso2SensorPackageType_SensorMeasurements_ARRAY_SIZE) {
+ errn = decode_iso2SensorMeasurementsType(stream, &iso2SensorPackageType->SensorMeasurements.array[iso2SensorPackageType->SensorMeasurements.arrayLen++]);
+ } else {
+ errn = EXI_ERROR_OUT_OF_BOUNDS;
+ }
+ grammarID = 2354;
+ break;
+ case 1:
+ done = 1;
+ grammarID = 4;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 2354:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorMeasurements), END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ if (iso2SensorPackageType->SensorMeasurements.arrayLen < iso2SensorPackageType_SensorMeasurements_ARRAY_SIZE) {
+ errn = decode_iso2SensorMeasurementsType(stream, &iso2SensorPackageType->SensorMeasurements.array[iso2SensorPackageType->SensorMeasurements.arrayLen++]);
+ } else {
+ errn = EXI_ERROR_OUT_OF_BOUNDS;
+ }
+ grammarID = 2355;
+ break;
+ case 1:
+ done = 1;
+ grammarID = 4;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 2355:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorMeasurements), END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ if (iso2SensorPackageType->SensorMeasurements.arrayLen < iso2SensorPackageType_SensorMeasurements_ARRAY_SIZE) {
+ errn = decode_iso2SensorMeasurementsType(stream, &iso2SensorPackageType->SensorMeasurements.array[iso2SensorPackageType->SensorMeasurements.arrayLen++]);
+ } else {
+ errn = EXI_ERROR_OUT_OF_BOUNDS;
+ }
+ grammarID = 2356;
+ break;
+ case 1:
+ done = 1;
+ grammarID = 4;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 2356:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorMeasurements), END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ if (iso2SensorPackageType->SensorMeasurements.arrayLen < iso2SensorPackageType_SensorMeasurements_ARRAY_SIZE) {
+ errn = decode_iso2SensorMeasurementsType(stream, &iso2SensorPackageType->SensorMeasurements.array[iso2SensorPackageType->SensorMeasurements.arrayLen++]);
+ } else {
+ errn = EXI_ERROR_OUT_OF_BOUNDS;
+ }
+ grammarID = 2357;
+ break;
+ case 1:
+ done = 1;
+ grammarID = 4;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 2357:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorMeasurements), END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ if (iso2SensorPackageType->SensorMeasurements.arrayLen < iso2SensorPackageType_SensorMeasurements_ARRAY_SIZE) {
+ errn = decode_iso2SensorMeasurementsType(stream, &iso2SensorPackageType->SensorMeasurements.array[iso2SensorPackageType->SensorMeasurements.arrayLen++]);
+ } else {
+ errn = EXI_ERROR_OUT_OF_BOUNDS;
+ }
+ grammarID = 2358;
+ break;
+ case 1:
+ done = 1;
+ grammarID = 4;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 2358:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorMeasurements), END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ if (iso2SensorPackageType->SensorMeasurements.arrayLen < iso2SensorPackageType_SensorMeasurements_ARRAY_SIZE) {
+ errn = decode_iso2SensorMeasurementsType(stream, &iso2SensorPackageType->SensorMeasurements.array[iso2SensorPackageType->SensorMeasurements.arrayLen++]);
+ } else {
+ errn = EXI_ERROR_OUT_OF_BOUNDS;
+ }
+ grammarID = 2359;
+ break;
+ case 1:
+ done = 1;
+ grammarID = 4;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 2359:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorMeasurements), END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ if (iso2SensorPackageType->SensorMeasurements.arrayLen < iso2SensorPackageType_SensorMeasurements_ARRAY_SIZE) {
+ errn = decode_iso2SensorMeasurementsType(stream, &iso2SensorPackageType->SensorMeasurements.array[iso2SensorPackageType->SensorMeasurements.arrayLen++]);
+ } else {
+ errn = EXI_ERROR_OUT_OF_BOUNDS;
+ }
+ grammarID = 2360;
+ break;
+ case 1:
+ done = 1;
+ grammarID = 4;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 2360:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorMeasurements), END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ if (iso2SensorPackageType->SensorMeasurements.arrayLen < iso2SensorPackageType_SensorMeasurements_ARRAY_SIZE) {
+ errn = decode_iso2SensorMeasurementsType(stream, &iso2SensorPackageType->SensorMeasurements.array[iso2SensorPackageType->SensorMeasurements.arrayLen++]);
+ } else {
+ errn = EXI_ERROR_OUT_OF_BOUNDS;
+ }
+ grammarID = 2361;
+ break;
+ case 1:
+ done = 1;
+ grammarID = 4;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 2361:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorMeasurements), END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ if (iso2SensorPackageType->SensorMeasurements.arrayLen < iso2SensorPackageType_SensorMeasurements_ARRAY_SIZE) {
+ errn = decode_iso2SensorMeasurementsType(stream, &iso2SensorPackageType->SensorMeasurements.array[iso2SensorPackageType->SensorMeasurements.arrayLen++]);
+ } else {
+ errn = EXI_ERROR_OUT_OF_BOUNDS;
+ }
+ grammarID = 2362;
+ break;
+ case 1:
+ done = 1;
+ grammarID = 4;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 2362:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorMeasurements), END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ if (iso2SensorPackageType->SensorMeasurements.arrayLen < iso2SensorPackageType_SensorMeasurements_ARRAY_SIZE) {
+ errn = decode_iso2SensorMeasurementsType(stream, &iso2SensorPackageType->SensorMeasurements.array[iso2SensorPackageType->SensorMeasurements.arrayLen++]);
+ } else {
+ errn = EXI_ERROR_OUT_OF_BOUNDS;
+ }
+ grammarID = 2363;
+ break;
+ case 1:
+ done = 1;
+ grammarID = 4;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 2363:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorMeasurements), END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ if (iso2SensorPackageType->SensorMeasurements.arrayLen < iso2SensorPackageType_SensorMeasurements_ARRAY_SIZE) {
+ errn = decode_iso2SensorMeasurementsType(stream, &iso2SensorPackageType->SensorMeasurements.array[iso2SensorPackageType->SensorMeasurements.arrayLen++]);
+ } else {
+ errn = EXI_ERROR_OUT_OF_BOUNDS;
+ }
+ grammarID = 2364;
+ break;
+ case 1:
+ done = 1;
+ grammarID = 4;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 2364:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorMeasurements), END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ if (iso2SensorPackageType->SensorMeasurements.arrayLen < iso2SensorPackageType_SensorMeasurements_ARRAY_SIZE) {
+ errn = decode_iso2SensorMeasurementsType(stream, &iso2SensorPackageType->SensorMeasurements.array[iso2SensorPackageType->SensorMeasurements.arrayLen++]);
+ } else {
+ errn = EXI_ERROR_OUT_OF_BOUNDS;
+ }
+ grammarID = 2365;
+ break;
+ case 1:
+ done = 1;
+ grammarID = 4;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 2365:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorMeasurements), END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ if (iso2SensorPackageType->SensorMeasurements.arrayLen < iso2SensorPackageType_SensorMeasurements_ARRAY_SIZE) {
+ errn = decode_iso2SensorMeasurementsType(stream, &iso2SensorPackageType->SensorMeasurements.array[iso2SensorPackageType->SensorMeasurements.arrayLen++]);
+ } else {
+ errn = EXI_ERROR_OUT_OF_BOUNDS;
+ }
+ grammarID = 2366;
+ break;
+ case 1:
+ done = 1;
+ grammarID = 4;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 2366:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorMeasurements), END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ if (iso2SensorPackageType->SensorMeasurements.arrayLen < iso2SensorPackageType_SensorMeasurements_ARRAY_SIZE) {
+ errn = decode_iso2SensorMeasurementsType(stream, &iso2SensorPackageType->SensorMeasurements.array[iso2SensorPackageType->SensorMeasurements.arrayLen++]);
+ } else {
+ errn = EXI_ERROR_OUT_OF_BOUNDS;
+ }
+ grammarID = 2367;
+ break;
+ case 1:
+ done = 1;
+ grammarID = 4;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 2367:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorMeasurements), END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ if (iso2SensorPackageType->SensorMeasurements.arrayLen < iso2SensorPackageType_SensorMeasurements_ARRAY_SIZE) {
+ errn = decode_iso2SensorMeasurementsType(stream, &iso2SensorPackageType->SensorMeasurements.array[iso2SensorPackageType->SensorMeasurements.arrayLen++]);
+ } else {
+ errn = EXI_ERROR_OUT_OF_BOUNDS;
+ }
+ grammarID = 2368;
+ break;
+ case 1:
+ done = 1;
+ grammarID = 4;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 2368:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorMeasurements), END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ if (iso2SensorPackageType->SensorMeasurements.arrayLen < iso2SensorPackageType_SensorMeasurements_ARRAY_SIZE) {
+ errn = decode_iso2SensorMeasurementsType(stream, &iso2SensorPackageType->SensorMeasurements.array[iso2SensorPackageType->SensorMeasurements.arrayLen++]);
+ } else {
+ errn = EXI_ERROR_OUT_OF_BOUNDS;
+ }
+ grammarID = 2369;
+ break;
+ case 1:
+ done = 1;
+ grammarID = 4;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 2369:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorMeasurements), END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ if (iso2SensorPackageType->SensorMeasurements.arrayLen < iso2SensorPackageType_SensorMeasurements_ARRAY_SIZE) {
+ errn = decode_iso2SensorMeasurementsType(stream, &iso2SensorPackageType->SensorMeasurements.array[iso2SensorPackageType->SensorMeasurements.arrayLen++]);
+ } else {
+ errn = EXI_ERROR_OUT_OF_BOUNDS;
+ }
+ grammarID = 2370;
+ break;
+ case 1:
+ done = 1;
+ grammarID = 4;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 2370:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorMeasurements), END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ if (iso2SensorPackageType->SensorMeasurements.arrayLen < iso2SensorPackageType_SensorMeasurements_ARRAY_SIZE) {
+ errn = decode_iso2SensorMeasurementsType(stream, &iso2SensorPackageType->SensorMeasurements.array[iso2SensorPackageType->SensorMeasurements.arrayLen++]);
+ } else {
+ errn = EXI_ERROR_OUT_OF_BOUNDS;
+ }
+ grammarID = 2371;
+ break;
+ case 1:
+ done = 1;
+ grammarID = 4;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 2371:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorMeasurements), END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ if (iso2SensorPackageType->SensorMeasurements.arrayLen < iso2SensorPackageType_SensorMeasurements_ARRAY_SIZE) {
+ errn = decode_iso2SensorMeasurementsType(stream, &iso2SensorPackageType->SensorMeasurements.array[iso2SensorPackageType->SensorMeasurements.arrayLen++]);
+ } else {
+ errn = EXI_ERROR_OUT_OF_BOUNDS;
+ }
+ grammarID = 2372;
+ break;
+ case 1:
+ done = 1;
+ grammarID = 4;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 2372:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorMeasurements), END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ if (iso2SensorPackageType->SensorMeasurements.arrayLen < iso2SensorPackageType_SensorMeasurements_ARRAY_SIZE) {
+ errn = decode_iso2SensorMeasurementsType(stream, &iso2SensorPackageType->SensorMeasurements.array[iso2SensorPackageType->SensorMeasurements.arrayLen++]);
+ } else {
+ errn = EXI_ERROR_OUT_OF_BOUNDS;
+ }
+ grammarID = 2373;
+ break;
+ case 1:
+ done = 1;
+ grammarID = 4;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 2373:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorMeasurements), END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ if (iso2SensorPackageType->SensorMeasurements.arrayLen < iso2SensorPackageType_SensorMeasurements_ARRAY_SIZE) {
+ errn = decode_iso2SensorMeasurementsType(stream, &iso2SensorPackageType->SensorMeasurements.array[iso2SensorPackageType->SensorMeasurements.arrayLen++]);
+ } else {
+ errn = EXI_ERROR_OUT_OF_BOUNDS;
+ }
+ grammarID = 2374;
+ break;
+ case 1:
+ done = 1;
+ grammarID = 4;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 2374:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorMeasurements), END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ if (iso2SensorPackageType->SensorMeasurements.arrayLen < iso2SensorPackageType_SensorMeasurements_ARRAY_SIZE) {
+ errn = decode_iso2SensorMeasurementsType(stream, &iso2SensorPackageType->SensorMeasurements.array[iso2SensorPackageType->SensorMeasurements.arrayLen++]);
+ } else {
+ errn = EXI_ERROR_OUT_OF_BOUNDS;
+ }
+ grammarID = 2375;
+ break;
+ case 1:
+ done = 1;
+ grammarID = 4;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 2375:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorMeasurements), END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ if (iso2SensorPackageType->SensorMeasurements.arrayLen < iso2SensorPackageType_SensorMeasurements_ARRAY_SIZE) {
+ errn = decode_iso2SensorMeasurementsType(stream, &iso2SensorPackageType->SensorMeasurements.array[iso2SensorPackageType->SensorMeasurements.arrayLen++]);
+ } else {
+ errn = EXI_ERROR_OUT_OF_BOUNDS;
+ }
+ grammarID = 2376;
+ break;
+ case 1:
+ done = 1;
+ grammarID = 4;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 2376:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorMeasurements), END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ if (iso2SensorPackageType->SensorMeasurements.arrayLen < iso2SensorPackageType_SensorMeasurements_ARRAY_SIZE) {
+ errn = decode_iso2SensorMeasurementsType(stream, &iso2SensorPackageType->SensorMeasurements.array[iso2SensorPackageType->SensorMeasurements.arrayLen++]);
+ } else {
+ errn = EXI_ERROR_OUT_OF_BOUNDS;
+ }
+ grammarID = 2377;
+ break;
+ case 1:
+ done = 1;
+ grammarID = 4;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 2377:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorMeasurements), END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ if (iso2SensorPackageType->SensorMeasurements.arrayLen < iso2SensorPackageType_SensorMeasurements_ARRAY_SIZE) {
+ errn = decode_iso2SensorMeasurementsType(stream, &iso2SensorPackageType->SensorMeasurements.array[iso2SensorPackageType->SensorMeasurements.arrayLen++]);
+ } else {
+ errn = EXI_ERROR_OUT_OF_BOUNDS;
+ }
+ grammarID = 2378;
+ break;
+ case 1:
+ done = 1;
+ grammarID = 4;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 2378:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorMeasurements), END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ if (iso2SensorPackageType->SensorMeasurements.arrayLen < iso2SensorPackageType_SensorMeasurements_ARRAY_SIZE) {
+ errn = decode_iso2SensorMeasurementsType(stream, &iso2SensorPackageType->SensorMeasurements.array[iso2SensorPackageType->SensorMeasurements.arrayLen++]);
+ } else {
+ errn = EXI_ERROR_OUT_OF_BOUNDS;
+ }
+ grammarID = 2379;
+ break;
+ case 1:
+ done = 1;
+ grammarID = 4;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 2379:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorMeasurements), END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ if (iso2SensorPackageType->SensorMeasurements.arrayLen < iso2SensorPackageType_SensorMeasurements_ARRAY_SIZE) {
+ errn = decode_iso2SensorMeasurementsType(stream, &iso2SensorPackageType->SensorMeasurements.array[iso2SensorPackageType->SensorMeasurements.arrayLen++]);
+ } else {
+ errn = EXI_ERROR_OUT_OF_BOUNDS;
+ }
+ grammarID = 2380;
+ break;
+ case 1:
+ done = 1;
+ grammarID = 4;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 2380:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorMeasurements), END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ if (iso2SensorPackageType->SensorMeasurements.arrayLen < iso2SensorPackageType_SensorMeasurements_ARRAY_SIZE) {
+ errn = decode_iso2SensorMeasurementsType(stream, &iso2SensorPackageType->SensorMeasurements.array[iso2SensorPackageType->SensorMeasurements.arrayLen++]);
+ } else {
+ errn = EXI_ERROR_OUT_OF_BOUNDS;
+ }
+ grammarID = 2381;
+ break;
+ case 1:
+ done = 1;
+ grammarID = 4;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 2381:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorMeasurements), END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ if (iso2SensorPackageType->SensorMeasurements.arrayLen < iso2SensorPackageType_SensorMeasurements_ARRAY_SIZE) {
+ errn = decode_iso2SensorMeasurementsType(stream, &iso2SensorPackageType->SensorMeasurements.array[iso2SensorPackageType->SensorMeasurements.arrayLen++]);
+ } else {
+ errn = EXI_ERROR_OUT_OF_BOUNDS;
+ }
+ grammarID = 2382;
+ break;
+ case 1:
+ done = 1;
+ grammarID = 4;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 2382:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorMeasurements), END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ if (iso2SensorPackageType->SensorMeasurements.arrayLen < iso2SensorPackageType_SensorMeasurements_ARRAY_SIZE) {
+ errn = decode_iso2SensorMeasurementsType(stream, &iso2SensorPackageType->SensorMeasurements.array[iso2SensorPackageType->SensorMeasurements.arrayLen++]);
+ } else {
+ errn = EXI_ERROR_OUT_OF_BOUNDS;
+ }
+ grammarID = 2383;
+ break;
+ case 1:
+ done = 1;
+ grammarID = 4;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 2383:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorMeasurements), END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ if (iso2SensorPackageType->SensorMeasurements.arrayLen < iso2SensorPackageType_SensorMeasurements_ARRAY_SIZE) {
+ errn = decode_iso2SensorMeasurementsType(stream, &iso2SensorPackageType->SensorMeasurements.array[iso2SensorPackageType->SensorMeasurements.arrayLen++]);
+ } else {
+ errn = EXI_ERROR_OUT_OF_BOUNDS;
+ }
+ grammarID = 2384;
+ break;
+ case 1:
+ done = 1;
+ grammarID = 4;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 2384:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorMeasurements), END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ if (iso2SensorPackageType->SensorMeasurements.arrayLen < iso2SensorPackageType_SensorMeasurements_ARRAY_SIZE) {
+ errn = decode_iso2SensorMeasurementsType(stream, &iso2SensorPackageType->SensorMeasurements.array[iso2SensorPackageType->SensorMeasurements.arrayLen++]);
+ } else {
+ errn = EXI_ERROR_OUT_OF_BOUNDS;
+ }
+ grammarID = 2385;
+ break;
+ case 1:
+ done = 1;
+ grammarID = 4;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 2385:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorMeasurements), END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ if (iso2SensorPackageType->SensorMeasurements.arrayLen < iso2SensorPackageType_SensorMeasurements_ARRAY_SIZE) {
+ errn = decode_iso2SensorMeasurementsType(stream, &iso2SensorPackageType->SensorMeasurements.array[iso2SensorPackageType->SensorMeasurements.arrayLen++]);
+ } else {
+ errn = EXI_ERROR_OUT_OF_BOUNDS;
+ }
+ grammarID = 2386;
+ break;
+ case 1:
+ done = 1;
+ grammarID = 4;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 2386:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorMeasurements), END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ if (iso2SensorPackageType->SensorMeasurements.arrayLen < iso2SensorPackageType_SensorMeasurements_ARRAY_SIZE) {
+ errn = decode_iso2SensorMeasurementsType(stream, &iso2SensorPackageType->SensorMeasurements.array[iso2SensorPackageType->SensorMeasurements.arrayLen++]);
+ } else {
+ errn = EXI_ERROR_OUT_OF_BOUNDS;
+ }
+ grammarID = 2387;
+ break;
+ case 1:
+ done = 1;
+ grammarID = 4;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 2387:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorMeasurements), END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ if (iso2SensorPackageType->SensorMeasurements.arrayLen < iso2SensorPackageType_SensorMeasurements_ARRAY_SIZE) {
+ errn = decode_iso2SensorMeasurementsType(stream, &iso2SensorPackageType->SensorMeasurements.array[iso2SensorPackageType->SensorMeasurements.arrayLen++]);
+ } else {
+ errn = EXI_ERROR_OUT_OF_BOUNDS;
+ }
+ grammarID = 2388;
+ break;
+ case 1:
+ done = 1;
+ grammarID = 4;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 2388:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorMeasurements), END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ if (iso2SensorPackageType->SensorMeasurements.arrayLen < iso2SensorPackageType_SensorMeasurements_ARRAY_SIZE) {
+ errn = decode_iso2SensorMeasurementsType(stream, &iso2SensorPackageType->SensorMeasurements.array[iso2SensorPackageType->SensorMeasurements.arrayLen++]);
+ } else {
+ errn = EXI_ERROR_OUT_OF_BOUNDS;
+ }
+ grammarID = 2389;
+ break;
+ case 1:
+ done = 1;
+ grammarID = 4;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 2389:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorMeasurements), END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ if (iso2SensorPackageType->SensorMeasurements.arrayLen < iso2SensorPackageType_SensorMeasurements_ARRAY_SIZE) {
+ errn = decode_iso2SensorMeasurementsType(stream, &iso2SensorPackageType->SensorMeasurements.array[iso2SensorPackageType->SensorMeasurements.arrayLen++]);
+ } else {
+ errn = EXI_ERROR_OUT_OF_BOUNDS;
+ }
+ grammarID = 2390;
+ break;
+ case 1:
+ done = 1;
+ grammarID = 4;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 2390:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorMeasurements), END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ if (iso2SensorPackageType->SensorMeasurements.arrayLen < iso2SensorPackageType_SensorMeasurements_ARRAY_SIZE) {
+ errn = decode_iso2SensorMeasurementsType(stream, &iso2SensorPackageType->SensorMeasurements.array[iso2SensorPackageType->SensorMeasurements.arrayLen++]);
+ } else {
+ errn = EXI_ERROR_OUT_OF_BOUNDS;
+ }
+ grammarID = 2391;
+ break;
+ case 1:
+ done = 1;
+ grammarID = 4;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 2391:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorMeasurements), END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ if (iso2SensorPackageType->SensorMeasurements.arrayLen < iso2SensorPackageType_SensorMeasurements_ARRAY_SIZE) {
+ errn = decode_iso2SensorMeasurementsType(stream, &iso2SensorPackageType->SensorMeasurements.array[iso2SensorPackageType->SensorMeasurements.arrayLen++]);
+ } else {
+ errn = EXI_ERROR_OUT_OF_BOUNDS;
+ }
+ grammarID = 2392;
+ break;
+ case 1:
+ done = 1;
+ grammarID = 4;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 2392:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorMeasurements), END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ if (iso2SensorPackageType->SensorMeasurements.arrayLen < iso2SensorPackageType_SensorMeasurements_ARRAY_SIZE) {
+ errn = decode_iso2SensorMeasurementsType(stream, &iso2SensorPackageType->SensorMeasurements.array[iso2SensorPackageType->SensorMeasurements.arrayLen++]);
+ } else {
+ errn = EXI_ERROR_OUT_OF_BOUNDS;
+ }
+ grammarID = 2393;
+ break;
+ case 1:
+ done = 1;
+ grammarID = 4;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 2393:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorMeasurements), END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ if (iso2SensorPackageType->SensorMeasurements.arrayLen < iso2SensorPackageType_SensorMeasurements_ARRAY_SIZE) {
+ errn = decode_iso2SensorMeasurementsType(stream, &iso2SensorPackageType->SensorMeasurements.array[iso2SensorPackageType->SensorMeasurements.arrayLen++]);
+ } else {
+ errn = EXI_ERROR_OUT_OF_BOUNDS;
+ }
+ grammarID = 2394;
+ break;
+ case 1:
+ done = 1;
+ grammarID = 4;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 2394:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorMeasurements), END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ if (iso2SensorPackageType->SensorMeasurements.arrayLen < iso2SensorPackageType_SensorMeasurements_ARRAY_SIZE) {
+ errn = decode_iso2SensorMeasurementsType(stream, &iso2SensorPackageType->SensorMeasurements.array[iso2SensorPackageType->SensorMeasurements.arrayLen++]);
+ } else {
+ errn = EXI_ERROR_OUT_OF_BOUNDS;
+ }
+ grammarID = 2395;
+ break;
+ case 1:
+ done = 1;
+ grammarID = 4;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 2395:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorMeasurements), END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ if (iso2SensorPackageType->SensorMeasurements.arrayLen < iso2SensorPackageType_SensorMeasurements_ARRAY_SIZE) {
+ errn = decode_iso2SensorMeasurementsType(stream, &iso2SensorPackageType->SensorMeasurements.array[iso2SensorPackageType->SensorMeasurements.arrayLen++]);
+ } else {
+ errn = EXI_ERROR_OUT_OF_BOUNDS;
+ }
+ grammarID = 2396;
+ break;
+ case 1:
+ done = 1;
+ grammarID = 4;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 2396:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorMeasurements), END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ if (iso2SensorPackageType->SensorMeasurements.arrayLen < iso2SensorPackageType_SensorMeasurements_ARRAY_SIZE) {
+ errn = decode_iso2SensorMeasurementsType(stream, &iso2SensorPackageType->SensorMeasurements.array[iso2SensorPackageType->SensorMeasurements.arrayLen++]);
+ } else {
+ errn = EXI_ERROR_OUT_OF_BOUNDS;
+ }
+ grammarID = 2397;
+ break;
+ case 1:
+ done = 1;
+ grammarID = 4;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 2397:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorMeasurements), END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ if (iso2SensorPackageType->SensorMeasurements.arrayLen < iso2SensorPackageType_SensorMeasurements_ARRAY_SIZE) {
+ errn = decode_iso2SensorMeasurementsType(stream, &iso2SensorPackageType->SensorMeasurements.array[iso2SensorPackageType->SensorMeasurements.arrayLen++]);
+ } else {
+ errn = EXI_ERROR_OUT_OF_BOUNDS;
+ }
+ grammarID = 2398;
+ break;
+ case 1:
+ done = 1;
+ grammarID = 4;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 2398:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorMeasurements), END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ if (iso2SensorPackageType->SensorMeasurements.arrayLen < iso2SensorPackageType_SensorMeasurements_ARRAY_SIZE) {
+ errn = decode_iso2SensorMeasurementsType(stream, &iso2SensorPackageType->SensorMeasurements.array[iso2SensorPackageType->SensorMeasurements.arrayLen++]);
+ } else {
+ errn = EXI_ERROR_OUT_OF_BOUNDS;
+ }
+ grammarID = 2399;
+ break;
+ case 1:
+ done = 1;
+ grammarID = 4;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 2399:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorMeasurements), END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ if (iso2SensorPackageType->SensorMeasurements.arrayLen < iso2SensorPackageType_SensorMeasurements_ARRAY_SIZE) {
+ errn = decode_iso2SensorMeasurementsType(stream, &iso2SensorPackageType->SensorMeasurements.array[iso2SensorPackageType->SensorMeasurements.arrayLen++]);
+ } else {
+ errn = EXI_ERROR_OUT_OF_BOUNDS;
+ }
+ grammarID = 2400;
+ break;
+ case 1:
+ done = 1;
+ grammarID = 4;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 2400:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorMeasurements), END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ if (iso2SensorPackageType->SensorMeasurements.arrayLen < iso2SensorPackageType_SensorMeasurements_ARRAY_SIZE) {
+ errn = decode_iso2SensorMeasurementsType(stream, &iso2SensorPackageType->SensorMeasurements.array[iso2SensorPackageType->SensorMeasurements.arrayLen++]);
+ } else {
+ errn = EXI_ERROR_OUT_OF_BOUNDS;
+ }
+ grammarID = 2401;
+ break;
+ case 1:
+ done = 1;
+ grammarID = 4;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 2401:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorMeasurements), END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ if (iso2SensorPackageType->SensorMeasurements.arrayLen < iso2SensorPackageType_SensorMeasurements_ARRAY_SIZE) {
+ errn = decode_iso2SensorMeasurementsType(stream, &iso2SensorPackageType->SensorMeasurements.array[iso2SensorPackageType->SensorMeasurements.arrayLen++]);
+ } else {
+ errn = EXI_ERROR_OUT_OF_BOUNDS;
+ }
+ grammarID = 2402;
+ break;
+ case 1:
+ done = 1;
+ grammarID = 4;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 2402:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorMeasurements), END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ if (iso2SensorPackageType->SensorMeasurements.arrayLen < iso2SensorPackageType_SensorMeasurements_ARRAY_SIZE) {
+ errn = decode_iso2SensorMeasurementsType(stream, &iso2SensorPackageType->SensorMeasurements.array[iso2SensorPackageType->SensorMeasurements.arrayLen++]);
+ } else {
+ errn = EXI_ERROR_OUT_OF_BOUNDS;
+ }
+ grammarID = 2403;
+ break;
+ case 1:
+ done = 1;
+ grammarID = 4;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 2403:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorMeasurements), END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ if (iso2SensorPackageType->SensorMeasurements.arrayLen < iso2SensorPackageType_SensorMeasurements_ARRAY_SIZE) {
+ errn = decode_iso2SensorMeasurementsType(stream, &iso2SensorPackageType->SensorMeasurements.array[iso2SensorPackageType->SensorMeasurements.arrayLen++]);
+ } else {
+ errn = EXI_ERROR_OUT_OF_BOUNDS;
+ }
+ grammarID = 2404;
+ break;
+ case 1:
+ done = 1;
+ grammarID = 4;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 2404:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorMeasurements), END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ if (iso2SensorPackageType->SensorMeasurements.arrayLen < iso2SensorPackageType_SensorMeasurements_ARRAY_SIZE) {
+ errn = decode_iso2SensorMeasurementsType(stream, &iso2SensorPackageType->SensorMeasurements.array[iso2SensorPackageType->SensorMeasurements.arrayLen++]);
+ } else {
+ errn = EXI_ERROR_OUT_OF_BOUNDS;
+ }
+ grammarID = 2405;
+ break;
+ case 1:
+ done = 1;
+ grammarID = 4;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 2405:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorMeasurements), END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ if (iso2SensorPackageType->SensorMeasurements.arrayLen < iso2SensorPackageType_SensorMeasurements_ARRAY_SIZE) {
+ errn = decode_iso2SensorMeasurementsType(stream, &iso2SensorPackageType->SensorMeasurements.array[iso2SensorPackageType->SensorMeasurements.arrayLen++]);
+ } else {
+ errn = EXI_ERROR_OUT_OF_BOUNDS;
+ }
+ grammarID = 2406;
+ break;
+ case 1:
+ done = 1;
+ grammarID = 4;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 2406:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorMeasurements), END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ if (iso2SensorPackageType->SensorMeasurements.arrayLen < iso2SensorPackageType_SensorMeasurements_ARRAY_SIZE) {
+ errn = decode_iso2SensorMeasurementsType(stream, &iso2SensorPackageType->SensorMeasurements.array[iso2SensorPackageType->SensorMeasurements.arrayLen++]);
+ } else {
+ errn = EXI_ERROR_OUT_OF_BOUNDS;
+ }
+ grammarID = 2407;
+ break;
+ case 1:
+ done = 1;
+ grammarID = 4;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 2407:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorMeasurements), END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ if (iso2SensorPackageType->SensorMeasurements.arrayLen < iso2SensorPackageType_SensorMeasurements_ARRAY_SIZE) {
+ errn = decode_iso2SensorMeasurementsType(stream, &iso2SensorPackageType->SensorMeasurements.array[iso2SensorPackageType->SensorMeasurements.arrayLen++]);
+ } else {
+ errn = EXI_ERROR_OUT_OF_BOUNDS;
+ }
+ grammarID = 2408;
+ break;
+ case 1:
+ done = 1;
+ grammarID = 4;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 2408:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorMeasurements), END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ if (iso2SensorPackageType->SensorMeasurements.arrayLen < iso2SensorPackageType_SensorMeasurements_ARRAY_SIZE) {
+ errn = decode_iso2SensorMeasurementsType(stream, &iso2SensorPackageType->SensorMeasurements.array[iso2SensorPackageType->SensorMeasurements.arrayLen++]);
+ } else {
+ errn = EXI_ERROR_OUT_OF_BOUNDS;
+ }
+ grammarID = 2409;
+ break;
+ case 1:
+ done = 1;
+ grammarID = 4;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 2409:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorMeasurements), END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ if (iso2SensorPackageType->SensorMeasurements.arrayLen < iso2SensorPackageType_SensorMeasurements_ARRAY_SIZE) {
+ errn = decode_iso2SensorMeasurementsType(stream, &iso2SensorPackageType->SensorMeasurements.array[iso2SensorPackageType->SensorMeasurements.arrayLen++]);
+ } else {
+ errn = EXI_ERROR_OUT_OF_BOUNDS;
+ }
+ grammarID = 2410;
+ break;
+ case 1:
+ done = 1;
+ grammarID = 4;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 2410:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorMeasurements), END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ if (iso2SensorPackageType->SensorMeasurements.arrayLen < iso2SensorPackageType_SensorMeasurements_ARRAY_SIZE) {
+ errn = decode_iso2SensorMeasurementsType(stream, &iso2SensorPackageType->SensorMeasurements.array[iso2SensorPackageType->SensorMeasurements.arrayLen++]);
+ } else {
+ errn = EXI_ERROR_OUT_OF_BOUNDS;
+ }
+ grammarID = 2411;
+ break;
+ case 1:
+ done = 1;
+ grammarID = 4;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 2411:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorMeasurements), END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ if (iso2SensorPackageType->SensorMeasurements.arrayLen < iso2SensorPackageType_SensorMeasurements_ARRAY_SIZE) {
+ errn = decode_iso2SensorMeasurementsType(stream, &iso2SensorPackageType->SensorMeasurements.array[iso2SensorPackageType->SensorMeasurements.arrayLen++]);
+ } else {
+ errn = EXI_ERROR_OUT_OF_BOUNDS;
+ }
+ grammarID = 2412;
+ break;
+ case 1:
+ done = 1;
+ grammarID = 4;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 2412:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorMeasurements), END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ if (iso2SensorPackageType->SensorMeasurements.arrayLen < iso2SensorPackageType_SensorMeasurements_ARRAY_SIZE) {
+ errn = decode_iso2SensorMeasurementsType(stream, &iso2SensorPackageType->SensorMeasurements.array[iso2SensorPackageType->SensorMeasurements.arrayLen++]);
+ } else {
+ errn = EXI_ERROR_OUT_OF_BOUNDS;
+ }
+ grammarID = 2413;
+ break;
+ case 1:
+ done = 1;
+ grammarID = 4;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 2413:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorMeasurements), END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ if (iso2SensorPackageType->SensorMeasurements.arrayLen < iso2SensorPackageType_SensorMeasurements_ARRAY_SIZE) {
+ errn = decode_iso2SensorMeasurementsType(stream, &iso2SensorPackageType->SensorMeasurements.array[iso2SensorPackageType->SensorMeasurements.arrayLen++]);
+ } else {
+ errn = EXI_ERROR_OUT_OF_BOUNDS;
+ }
+ grammarID = 2414;
+ break;
+ case 1:
+ done = 1;
+ grammarID = 4;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 2414:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorMeasurements), END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ if (iso2SensorPackageType->SensorMeasurements.arrayLen < iso2SensorPackageType_SensorMeasurements_ARRAY_SIZE) {
+ errn = decode_iso2SensorMeasurementsType(stream, &iso2SensorPackageType->SensorMeasurements.array[iso2SensorPackageType->SensorMeasurements.arrayLen++]);
+ } else {
+ errn = EXI_ERROR_OUT_OF_BOUNDS;
+ }
+ grammarID = 2415;
+ break;
+ case 1:
+ done = 1;
+ grammarID = 4;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 2415:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorMeasurements), END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ if (iso2SensorPackageType->SensorMeasurements.arrayLen < iso2SensorPackageType_SensorMeasurements_ARRAY_SIZE) {
+ errn = decode_iso2SensorMeasurementsType(stream, &iso2SensorPackageType->SensorMeasurements.array[iso2SensorPackageType->SensorMeasurements.arrayLen++]);
+ } else {
+ errn = EXI_ERROR_OUT_OF_BOUNDS;
+ }
+ grammarID = 2416;
+ break;
+ case 1:
+ done = 1;
+ grammarID = 4;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 2416:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorMeasurements), END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ if (iso2SensorPackageType->SensorMeasurements.arrayLen < iso2SensorPackageType_SensorMeasurements_ARRAY_SIZE) {
+ errn = decode_iso2SensorMeasurementsType(stream, &iso2SensorPackageType->SensorMeasurements.array[iso2SensorPackageType->SensorMeasurements.arrayLen++]);
+ } else {
+ errn = EXI_ERROR_OUT_OF_BOUNDS;
+ }
+ grammarID = 2417;
+ break;
+ case 1:
+ done = 1;
+ grammarID = 4;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 2417:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorMeasurements), END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ if (iso2SensorPackageType->SensorMeasurements.arrayLen < iso2SensorPackageType_SensorMeasurements_ARRAY_SIZE) {
+ errn = decode_iso2SensorMeasurementsType(stream, &iso2SensorPackageType->SensorMeasurements.array[iso2SensorPackageType->SensorMeasurements.arrayLen++]);
+ } else {
+ errn = EXI_ERROR_OUT_OF_BOUNDS;
+ }
+ grammarID = 2418;
+ break;
+ case 1:
+ done = 1;
+ grammarID = 4;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 2418:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorMeasurements), END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ if (iso2SensorPackageType->SensorMeasurements.arrayLen < iso2SensorPackageType_SensorMeasurements_ARRAY_SIZE) {
+ errn = decode_iso2SensorMeasurementsType(stream, &iso2SensorPackageType->SensorMeasurements.array[iso2SensorPackageType->SensorMeasurements.arrayLen++]);
+ } else {
+ errn = EXI_ERROR_OUT_OF_BOUNDS;
+ }
+ grammarID = 2419;
+ break;
+ case 1:
+ done = 1;
+ grammarID = 4;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 2419:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorMeasurements), END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ if (iso2SensorPackageType->SensorMeasurements.arrayLen < iso2SensorPackageType_SensorMeasurements_ARRAY_SIZE) {
+ errn = decode_iso2SensorMeasurementsType(stream, &iso2SensorPackageType->SensorMeasurements.array[iso2SensorPackageType->SensorMeasurements.arrayLen++]);
+ } else {
+ errn = EXI_ERROR_OUT_OF_BOUNDS;
+ }
+ grammarID = 2420;
+ break;
+ case 1:
+ done = 1;
+ grammarID = 4;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 2420:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorMeasurements), END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ if (iso2SensorPackageType->SensorMeasurements.arrayLen < iso2SensorPackageType_SensorMeasurements_ARRAY_SIZE) {
+ errn = decode_iso2SensorMeasurementsType(stream, &iso2SensorPackageType->SensorMeasurements.array[iso2SensorPackageType->SensorMeasurements.arrayLen++]);
+ } else {
+ errn = EXI_ERROR_OUT_OF_BOUNDS;
+ }
+ grammarID = 2421;
+ break;
+ case 1:
+ done = 1;
+ grammarID = 4;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 2421:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorMeasurements), END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ if (iso2SensorPackageType->SensorMeasurements.arrayLen < iso2SensorPackageType_SensorMeasurements_ARRAY_SIZE) {
+ errn = decode_iso2SensorMeasurementsType(stream, &iso2SensorPackageType->SensorMeasurements.array[iso2SensorPackageType->SensorMeasurements.arrayLen++]);
+ } else {
+ errn = EXI_ERROR_OUT_OF_BOUNDS;
+ }
+ grammarID = 2422;
+ break;
+ case 1:
+ done = 1;
+ grammarID = 4;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 2422:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorMeasurements), END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ if (iso2SensorPackageType->SensorMeasurements.arrayLen < iso2SensorPackageType_SensorMeasurements_ARRAY_SIZE) {
+ errn = decode_iso2SensorMeasurementsType(stream, &iso2SensorPackageType->SensorMeasurements.array[iso2SensorPackageType->SensorMeasurements.arrayLen++]);
+ } else {
+ errn = EXI_ERROR_OUT_OF_BOUNDS;
+ }
+ grammarID = 2423;
+ break;
+ case 1:
+ done = 1;
+ grammarID = 4;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 2423:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorMeasurements), END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ if (iso2SensorPackageType->SensorMeasurements.arrayLen < iso2SensorPackageType_SensorMeasurements_ARRAY_SIZE) {
+ errn = decode_iso2SensorMeasurementsType(stream, &iso2SensorPackageType->SensorMeasurements.array[iso2SensorPackageType->SensorMeasurements.arrayLen++]);
+ } else {
+ errn = EXI_ERROR_OUT_OF_BOUNDS;
+ }
+ grammarID = 2424;
+ break;
+ case 1:
+ done = 1;
+ grammarID = 4;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 2424:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorMeasurements), END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ if (iso2SensorPackageType->SensorMeasurements.arrayLen < iso2SensorPackageType_SensorMeasurements_ARRAY_SIZE) {
+ errn = decode_iso2SensorMeasurementsType(stream, &iso2SensorPackageType->SensorMeasurements.array[iso2SensorPackageType->SensorMeasurements.arrayLen++]);
+ } else {
+ errn = EXI_ERROR_OUT_OF_BOUNDS;
+ }
+ grammarID = 2425;
+ break;
+ case 1:
+ done = 1;
+ grammarID = 4;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 2425:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorMeasurements), END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ if (iso2SensorPackageType->SensorMeasurements.arrayLen < iso2SensorPackageType_SensorMeasurements_ARRAY_SIZE) {
+ errn = decode_iso2SensorMeasurementsType(stream, &iso2SensorPackageType->SensorMeasurements.array[iso2SensorPackageType->SensorMeasurements.arrayLen++]);
+ } else {
+ errn = EXI_ERROR_OUT_OF_BOUNDS;
+ }
+ grammarID = 2426;
+ break;
+ case 1:
+ done = 1;
+ grammarID = 4;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 2426:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorMeasurements), END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ if (iso2SensorPackageType->SensorMeasurements.arrayLen < iso2SensorPackageType_SensorMeasurements_ARRAY_SIZE) {
+ errn = decode_iso2SensorMeasurementsType(stream, &iso2SensorPackageType->SensorMeasurements.array[iso2SensorPackageType->SensorMeasurements.arrayLen++]);
+ } else {
+ errn = EXI_ERROR_OUT_OF_BOUNDS;
+ }
+ grammarID = 2427;
+ break;
+ case 1:
+ done = 1;
+ grammarID = 4;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 2427:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorMeasurements), END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ if (iso2SensorPackageType->SensorMeasurements.arrayLen < iso2SensorPackageType_SensorMeasurements_ARRAY_SIZE) {
+ errn = decode_iso2SensorMeasurementsType(stream, &iso2SensorPackageType->SensorMeasurements.array[iso2SensorPackageType->SensorMeasurements.arrayLen++]);
+ } else {
+ errn = EXI_ERROR_OUT_OF_BOUNDS;
+ }
+ grammarID = 2428;
+ break;
+ case 1:
+ done = 1;
+ grammarID = 4;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 2428:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorMeasurements), END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ if (iso2SensorPackageType->SensorMeasurements.arrayLen < iso2SensorPackageType_SensorMeasurements_ARRAY_SIZE) {
+ errn = decode_iso2SensorMeasurementsType(stream, &iso2SensorPackageType->SensorMeasurements.array[iso2SensorPackageType->SensorMeasurements.arrayLen++]);
+ } else {
+ errn = EXI_ERROR_OUT_OF_BOUNDS;
+ }
+ grammarID = 2429;
+ break;
+ case 1:
+ done = 1;
+ grammarID = 4;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 2429:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorMeasurements), END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ if (iso2SensorPackageType->SensorMeasurements.arrayLen < iso2SensorPackageType_SensorMeasurements_ARRAY_SIZE) {
+ errn = decode_iso2SensorMeasurementsType(stream, &iso2SensorPackageType->SensorMeasurements.array[iso2SensorPackageType->SensorMeasurements.arrayLen++]);
+ } else {
+ errn = EXI_ERROR_OUT_OF_BOUNDS;
+ }
+ grammarID = 2430;
+ break;
+ case 1:
+ done = 1;
+ grammarID = 4;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 2430:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorMeasurements), END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ if (iso2SensorPackageType->SensorMeasurements.arrayLen < iso2SensorPackageType_SensorMeasurements_ARRAY_SIZE) {
+ errn = decode_iso2SensorMeasurementsType(stream, &iso2SensorPackageType->SensorMeasurements.array[iso2SensorPackageType->SensorMeasurements.arrayLen++]);
+ } else {
+ errn = EXI_ERROR_OUT_OF_BOUNDS;
+ }
+ grammarID = 2431;
+ break;
+ case 1:
+ done = 1;
+ grammarID = 4;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 2431:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorMeasurements), END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ if (iso2SensorPackageType->SensorMeasurements.arrayLen < iso2SensorPackageType_SensorMeasurements_ARRAY_SIZE) {
+ errn = decode_iso2SensorMeasurementsType(stream, &iso2SensorPackageType->SensorMeasurements.array[iso2SensorPackageType->SensorMeasurements.arrayLen++]);
+ } else {
+ errn = EXI_ERROR_OUT_OF_BOUNDS;
+ }
+ grammarID = 2432;
+ break;
+ case 1:
+ done = 1;
+ grammarID = 4;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 2432:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorMeasurements), END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ if (iso2SensorPackageType->SensorMeasurements.arrayLen < iso2SensorPackageType_SensorMeasurements_ARRAY_SIZE) {
+ errn = decode_iso2SensorMeasurementsType(stream, &iso2SensorPackageType->SensorMeasurements.array[iso2SensorPackageType->SensorMeasurements.arrayLen++]);
+ } else {
+ errn = EXI_ERROR_OUT_OF_BOUNDS;
+ }
+ grammarID = 2433;
+ break;
+ case 1:
+ done = 1;
+ grammarID = 4;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 2433:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorMeasurements), END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ if (iso2SensorPackageType->SensorMeasurements.arrayLen < iso2SensorPackageType_SensorMeasurements_ARRAY_SIZE) {
+ errn = decode_iso2SensorMeasurementsType(stream, &iso2SensorPackageType->SensorMeasurements.array[iso2SensorPackageType->SensorMeasurements.arrayLen++]);
+ } else {
+ errn = EXI_ERROR_OUT_OF_BOUNDS;
+ }
+ grammarID = 2434;
+ break;
+ case 1:
+ done = 1;
+ grammarID = 4;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 2434:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorMeasurements), END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ if (iso2SensorPackageType->SensorMeasurements.arrayLen < iso2SensorPackageType_SensorMeasurements_ARRAY_SIZE) {
+ errn = decode_iso2SensorMeasurementsType(stream, &iso2SensorPackageType->SensorMeasurements.array[iso2SensorPackageType->SensorMeasurements.arrayLen++]);
+ } else {
+ errn = EXI_ERROR_OUT_OF_BOUNDS;
+ }
+ grammarID = 2435;
+ break;
+ case 1:
+ done = 1;
+ grammarID = 4;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 2435:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorMeasurements), END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ if (iso2SensorPackageType->SensorMeasurements.arrayLen < iso2SensorPackageType_SensorMeasurements_ARRAY_SIZE) {
+ errn = decode_iso2SensorMeasurementsType(stream, &iso2SensorPackageType->SensorMeasurements.array[iso2SensorPackageType->SensorMeasurements.arrayLen++]);
+ } else {
+ errn = EXI_ERROR_OUT_OF_BOUNDS;
+ }
+ grammarID = 2436;
+ break;
+ case 1:
+ done = 1;
+ grammarID = 4;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 2436:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorMeasurements), END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ if (iso2SensorPackageType->SensorMeasurements.arrayLen < iso2SensorPackageType_SensorMeasurements_ARRAY_SIZE) {
+ errn = decode_iso2SensorMeasurementsType(stream, &iso2SensorPackageType->SensorMeasurements.array[iso2SensorPackageType->SensorMeasurements.arrayLen++]);
+ } else {
+ errn = EXI_ERROR_OUT_OF_BOUNDS;
+ }
+ grammarID = 2437;
+ break;
+ case 1:
+ done = 1;
+ grammarID = 4;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 2437:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorMeasurements), END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ if (iso2SensorPackageType->SensorMeasurements.arrayLen < iso2SensorPackageType_SensorMeasurements_ARRAY_SIZE) {
+ errn = decode_iso2SensorMeasurementsType(stream, &iso2SensorPackageType->SensorMeasurements.array[iso2SensorPackageType->SensorMeasurements.arrayLen++]);
+ } else {
+ errn = EXI_ERROR_OUT_OF_BOUNDS;
+ }
+ grammarID = 2438;
+ break;
+ case 1:
+ done = 1;
+ grammarID = 4;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 2438:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorMeasurements), END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ if (iso2SensorPackageType->SensorMeasurements.arrayLen < iso2SensorPackageType_SensorMeasurements_ARRAY_SIZE) {
+ errn = decode_iso2SensorMeasurementsType(stream, &iso2SensorPackageType->SensorMeasurements.array[iso2SensorPackageType->SensorMeasurements.arrayLen++]);
+ } else {
+ errn = EXI_ERROR_OUT_OF_BOUNDS;
+ }
+ grammarID = 2439;
+ break;
+ case 1:
+ done = 1;
+ grammarID = 4;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 2439:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorMeasurements), END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ if (iso2SensorPackageType->SensorMeasurements.arrayLen < iso2SensorPackageType_SensorMeasurements_ARRAY_SIZE) {
+ errn = decode_iso2SensorMeasurementsType(stream, &iso2SensorPackageType->SensorMeasurements.array[iso2SensorPackageType->SensorMeasurements.arrayLen++]);
+ } else {
+ errn = EXI_ERROR_OUT_OF_BOUNDS;
+ }
+ grammarID = 2440;
+ break;
+ case 1:
+ done = 1;
+ grammarID = 4;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 2440:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorMeasurements), END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ if (iso2SensorPackageType->SensorMeasurements.arrayLen < iso2SensorPackageType_SensorMeasurements_ARRAY_SIZE) {
+ errn = decode_iso2SensorMeasurementsType(stream, &iso2SensorPackageType->SensorMeasurements.array[iso2SensorPackageType->SensorMeasurements.arrayLen++]);
+ } else {
+ errn = EXI_ERROR_OUT_OF_BOUNDS;
+ }
+ grammarID = 2441;
+ break;
+ case 1:
+ done = 1;
+ grammarID = 4;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 2441:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorMeasurements), END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ if (iso2SensorPackageType->SensorMeasurements.arrayLen < iso2SensorPackageType_SensorMeasurements_ARRAY_SIZE) {
+ errn = decode_iso2SensorMeasurementsType(stream, &iso2SensorPackageType->SensorMeasurements.array[iso2SensorPackageType->SensorMeasurements.arrayLen++]);
+ } else {
+ errn = EXI_ERROR_OUT_OF_BOUNDS;
+ }
+ grammarID = 2442;
+ break;
+ case 1:
+ done = 1;
+ grammarID = 4;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 2442:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorMeasurements), END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ if (iso2SensorPackageType->SensorMeasurements.arrayLen < iso2SensorPackageType_SensorMeasurements_ARRAY_SIZE) {
+ errn = decode_iso2SensorMeasurementsType(stream, &iso2SensorPackageType->SensorMeasurements.array[iso2SensorPackageType->SensorMeasurements.arrayLen++]);
+ } else {
+ errn = EXI_ERROR_OUT_OF_BOUNDS;
+ }
+ grammarID = 2443;
+ break;
+ case 1:
+ done = 1;
+ grammarID = 4;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 2443:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorMeasurements), END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ if (iso2SensorPackageType->SensorMeasurements.arrayLen < iso2SensorPackageType_SensorMeasurements_ARRAY_SIZE) {
+ errn = decode_iso2SensorMeasurementsType(stream, &iso2SensorPackageType->SensorMeasurements.array[iso2SensorPackageType->SensorMeasurements.arrayLen++]);
+ } else {
+ errn = EXI_ERROR_OUT_OF_BOUNDS;
+ }
+ grammarID = 2444;
+ break;
+ case 1:
+ done = 1;
+ grammarID = 4;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 2444:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorMeasurements), END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ if (iso2SensorPackageType->SensorMeasurements.arrayLen < iso2SensorPackageType_SensorMeasurements_ARRAY_SIZE) {
+ errn = decode_iso2SensorMeasurementsType(stream, &iso2SensorPackageType->SensorMeasurements.array[iso2SensorPackageType->SensorMeasurements.arrayLen++]);
+ } else {
+ errn = EXI_ERROR_OUT_OF_BOUNDS;
+ }
+ grammarID = 2445;
+ break;
+ case 1:
+ done = 1;
+ grammarID = 4;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 2445:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorMeasurements), END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ if (iso2SensorPackageType->SensorMeasurements.arrayLen < iso2SensorPackageType_SensorMeasurements_ARRAY_SIZE) {
+ errn = decode_iso2SensorMeasurementsType(stream, &iso2SensorPackageType->SensorMeasurements.array[iso2SensorPackageType->SensorMeasurements.arrayLen++]);
+ } else {
+ errn = EXI_ERROR_OUT_OF_BOUNDS;
+ }
+ grammarID = 2446;
+ break;
+ case 1:
+ done = 1;
+ grammarID = 4;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 2446:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorMeasurements), END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ if (iso2SensorPackageType->SensorMeasurements.arrayLen < iso2SensorPackageType_SensorMeasurements_ARRAY_SIZE) {
+ errn = decode_iso2SensorMeasurementsType(stream, &iso2SensorPackageType->SensorMeasurements.array[iso2SensorPackageType->SensorMeasurements.arrayLen++]);
+ } else {
+ errn = EXI_ERROR_OUT_OF_BOUNDS;
+ }
+ grammarID = 2447;
+ break;
+ case 1:
+ done = 1;
+ grammarID = 4;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 2447:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorMeasurements), END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ if (iso2SensorPackageType->SensorMeasurements.arrayLen < iso2SensorPackageType_SensorMeasurements_ARRAY_SIZE) {
+ errn = decode_iso2SensorMeasurementsType(stream, &iso2SensorPackageType->SensorMeasurements.array[iso2SensorPackageType->SensorMeasurements.arrayLen++]);
+ } else {
+ errn = EXI_ERROR_OUT_OF_BOUNDS;
+ }
+ grammarID = 2448;
+ break;
+ case 1:
+ done = 1;
+ grammarID = 4;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 2448:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorMeasurements), END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ if (iso2SensorPackageType->SensorMeasurements.arrayLen < iso2SensorPackageType_SensorMeasurements_ARRAY_SIZE) {
+ errn = decode_iso2SensorMeasurementsType(stream, &iso2SensorPackageType->SensorMeasurements.array[iso2SensorPackageType->SensorMeasurements.arrayLen++]);
+ } else {
+ errn = EXI_ERROR_OUT_OF_BOUNDS;
+ }
+ grammarID = 2449;
+ break;
+ case 1:
+ done = 1;
+ grammarID = 4;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 2449:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorMeasurements), END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ if (iso2SensorPackageType->SensorMeasurements.arrayLen < iso2SensorPackageType_SensorMeasurements_ARRAY_SIZE) {
+ errn = decode_iso2SensorMeasurementsType(stream, &iso2SensorPackageType->SensorMeasurements.array[iso2SensorPackageType->SensorMeasurements.arrayLen++]);
+ } else {
+ errn = EXI_ERROR_OUT_OF_BOUNDS;
+ }
+ grammarID = 2450;
+ break;
+ case 1:
+ done = 1;
+ grammarID = 4;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 2450:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorMeasurements), END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ if (iso2SensorPackageType->SensorMeasurements.arrayLen < iso2SensorPackageType_SensorMeasurements_ARRAY_SIZE) {
+ errn = decode_iso2SensorMeasurementsType(stream, &iso2SensorPackageType->SensorMeasurements.array[iso2SensorPackageType->SensorMeasurements.arrayLen++]);
+ } else {
+ errn = EXI_ERROR_OUT_OF_BOUNDS;
+ }
+ grammarID = 2451;
+ break;
+ case 1:
+ done = 1;
+ grammarID = 4;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 2451:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorMeasurements), END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ if (iso2SensorPackageType->SensorMeasurements.arrayLen < iso2SensorPackageType_SensorMeasurements_ARRAY_SIZE) {
+ errn = decode_iso2SensorMeasurementsType(stream, &iso2SensorPackageType->SensorMeasurements.array[iso2SensorPackageType->SensorMeasurements.arrayLen++]);
+ } else {
+ errn = EXI_ERROR_OUT_OF_BOUNDS;
+ }
+ grammarID = 2452;
+ break;
+ case 1:
+ done = 1;
+ grammarID = 4;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 2452:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorMeasurements), END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ if (iso2SensorPackageType->SensorMeasurements.arrayLen < iso2SensorPackageType_SensorMeasurements_ARRAY_SIZE) {
+ errn = decode_iso2SensorMeasurementsType(stream, &iso2SensorPackageType->SensorMeasurements.array[iso2SensorPackageType->SensorMeasurements.arrayLen++]);
+ } else {
+ errn = EXI_ERROR_OUT_OF_BOUNDS;
+ }
+ grammarID = 2453;
+ break;
+ case 1:
+ done = 1;
+ grammarID = 4;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 2453:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorMeasurements), END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ if (iso2SensorPackageType->SensorMeasurements.arrayLen < iso2SensorPackageType_SensorMeasurements_ARRAY_SIZE) {
+ errn = decode_iso2SensorMeasurementsType(stream, &iso2SensorPackageType->SensorMeasurements.array[iso2SensorPackageType->SensorMeasurements.arrayLen++]);
+ } else {
+ errn = EXI_ERROR_OUT_OF_BOUNDS;
+ }
+ grammarID = 2454;
+ break;
+ case 1:
+ done = 1;
+ grammarID = 4;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 2454:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorMeasurements), END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ if (iso2SensorPackageType->SensorMeasurements.arrayLen < iso2SensorPackageType_SensorMeasurements_ARRAY_SIZE) {
+ errn = decode_iso2SensorMeasurementsType(stream, &iso2SensorPackageType->SensorMeasurements.array[iso2SensorPackageType->SensorMeasurements.arrayLen++]);
+ } else {
+ errn = EXI_ERROR_OUT_OF_BOUNDS;
+ }
+ grammarID = 2455;
+ break;
+ case 1:
+ done = 1;
+ grammarID = 4;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 2455:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorMeasurements), END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ if (iso2SensorPackageType->SensorMeasurements.arrayLen < iso2SensorPackageType_SensorMeasurements_ARRAY_SIZE) {
+ errn = decode_iso2SensorMeasurementsType(stream, &iso2SensorPackageType->SensorMeasurements.array[iso2SensorPackageType->SensorMeasurements.arrayLen++]);
+ } else {
+ errn = EXI_ERROR_OUT_OF_BOUNDS;
+ }
+ grammarID = 2456;
+ break;
+ case 1:
+ done = 1;
+ grammarID = 4;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 2456:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorMeasurements), END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ if (iso2SensorPackageType->SensorMeasurements.arrayLen < iso2SensorPackageType_SensorMeasurements_ARRAY_SIZE) {
+ errn = decode_iso2SensorMeasurementsType(stream, &iso2SensorPackageType->SensorMeasurements.array[iso2SensorPackageType->SensorMeasurements.arrayLen++]);
+ } else {
+ errn = EXI_ERROR_OUT_OF_BOUNDS;
+ }
+ grammarID = 2457;
+ break;
+ case 1:
+ done = 1;
+ grammarID = 4;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 2457:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorMeasurements), END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ if (iso2SensorPackageType->SensorMeasurements.arrayLen < iso2SensorPackageType_SensorMeasurements_ARRAY_SIZE) {
+ errn = decode_iso2SensorMeasurementsType(stream, &iso2SensorPackageType->SensorMeasurements.array[iso2SensorPackageType->SensorMeasurements.arrayLen++]);
+ } else {
+ errn = EXI_ERROR_OUT_OF_BOUNDS;
+ }
+ grammarID = 2458;
+ break;
+ case 1:
+ done = 1;
+ grammarID = 4;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 2458:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorMeasurements), END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ if (iso2SensorPackageType->SensorMeasurements.arrayLen < iso2SensorPackageType_SensorMeasurements_ARRAY_SIZE) {
+ errn = decode_iso2SensorMeasurementsType(stream, &iso2SensorPackageType->SensorMeasurements.array[iso2SensorPackageType->SensorMeasurements.arrayLen++]);
+ } else {
+ errn = EXI_ERROR_OUT_OF_BOUNDS;
+ }
+ grammarID = 2459;
+ break;
+ case 1:
+ done = 1;
+ grammarID = 4;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 2459:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorMeasurements), END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ if (iso2SensorPackageType->SensorMeasurements.arrayLen < iso2SensorPackageType_SensorMeasurements_ARRAY_SIZE) {
+ errn = decode_iso2SensorMeasurementsType(stream, &iso2SensorPackageType->SensorMeasurements.array[iso2SensorPackageType->SensorMeasurements.arrayLen++]);
+ } else {
+ errn = EXI_ERROR_OUT_OF_BOUNDS;
+ }
+ grammarID = 2460;
+ break;
+ case 1:
+ done = 1;
+ grammarID = 4;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 2460:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorMeasurements), END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ if (iso2SensorPackageType->SensorMeasurements.arrayLen < iso2SensorPackageType_SensorMeasurements_ARRAY_SIZE) {
+ errn = decode_iso2SensorMeasurementsType(stream, &iso2SensorPackageType->SensorMeasurements.array[iso2SensorPackageType->SensorMeasurements.arrayLen++]);
+ } else {
+ errn = EXI_ERROR_OUT_OF_BOUNDS;
+ }
+ grammarID = 2461;
+ break;
+ case 1:
+ done = 1;
+ grammarID = 4;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 2461:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorMeasurements), END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ if (iso2SensorPackageType->SensorMeasurements.arrayLen < iso2SensorPackageType_SensorMeasurements_ARRAY_SIZE) {
+ errn = decode_iso2SensorMeasurementsType(stream, &iso2SensorPackageType->SensorMeasurements.array[iso2SensorPackageType->SensorMeasurements.arrayLen++]);
+ } else {
+ errn = EXI_ERROR_OUT_OF_BOUNDS;
+ }
+ grammarID = 2462;
+ break;
+ case 1:
+ done = 1;
+ grammarID = 4;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 2462:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorMeasurements), END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ if (iso2SensorPackageType->SensorMeasurements.arrayLen < iso2SensorPackageType_SensorMeasurements_ARRAY_SIZE) {
+ errn = decode_iso2SensorMeasurementsType(stream, &iso2SensorPackageType->SensorMeasurements.array[iso2SensorPackageType->SensorMeasurements.arrayLen++]);
+ } else {
+ errn = EXI_ERROR_OUT_OF_BOUNDS;
+ }
+ grammarID = 2463;
+ break;
+ case 1:
+ done = 1;
+ grammarID = 4;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 2463:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorMeasurements), END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ if (iso2SensorPackageType->SensorMeasurements.arrayLen < iso2SensorPackageType_SensorMeasurements_ARRAY_SIZE) {
+ errn = decode_iso2SensorMeasurementsType(stream, &iso2SensorPackageType->SensorMeasurements.array[iso2SensorPackageType->SensorMeasurements.arrayLen++]);
+ } else {
+ errn = EXI_ERROR_OUT_OF_BOUNDS;
+ }
+ grammarID = 2464;
+ break;
+ case 1:
+ done = 1;
+ grammarID = 4;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 2464:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorMeasurements), END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ if (iso2SensorPackageType->SensorMeasurements.arrayLen < iso2SensorPackageType_SensorMeasurements_ARRAY_SIZE) {
+ errn = decode_iso2SensorMeasurementsType(stream, &iso2SensorPackageType->SensorMeasurements.array[iso2SensorPackageType->SensorMeasurements.arrayLen++]);
+ } else {
+ errn = EXI_ERROR_OUT_OF_BOUNDS;
+ }
+ grammarID = 2465;
+ break;
+ case 1:
+ done = 1;
+ grammarID = 4;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 2465:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorMeasurements), END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ if (iso2SensorPackageType->SensorMeasurements.arrayLen < iso2SensorPackageType_SensorMeasurements_ARRAY_SIZE) {
+ errn = decode_iso2SensorMeasurementsType(stream, &iso2SensorPackageType->SensorMeasurements.array[iso2SensorPackageType->SensorMeasurements.arrayLen++]);
+ } else {
+ errn = EXI_ERROR_OUT_OF_BOUNDS;
+ }
+ grammarID = 2466;
+ break;
+ case 1:
+ done = 1;
+ grammarID = 4;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 2466:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorMeasurements), END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ if (iso2SensorPackageType->SensorMeasurements.arrayLen < iso2SensorPackageType_SensorMeasurements_ARRAY_SIZE) {
+ errn = decode_iso2SensorMeasurementsType(stream, &iso2SensorPackageType->SensorMeasurements.array[iso2SensorPackageType->SensorMeasurements.arrayLen++]);
+ } else {
+ errn = EXI_ERROR_OUT_OF_BOUNDS;
+ }
+ grammarID = 2467;
+ break;
+ case 1:
+ done = 1;
+ grammarID = 4;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 2467:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorMeasurements), END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ if (iso2SensorPackageType->SensorMeasurements.arrayLen < iso2SensorPackageType_SensorMeasurements_ARRAY_SIZE) {
+ errn = decode_iso2SensorMeasurementsType(stream, &iso2SensorPackageType->SensorMeasurements.array[iso2SensorPackageType->SensorMeasurements.arrayLen++]);
+ } else {
+ errn = EXI_ERROR_OUT_OF_BOUNDS;
+ }
+ grammarID = 2468;
+ break;
+ case 1:
+ done = 1;
+ grammarID = 4;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 2468:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorMeasurements), END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ if (iso2SensorPackageType->SensorMeasurements.arrayLen < iso2SensorPackageType_SensorMeasurements_ARRAY_SIZE) {
+ errn = decode_iso2SensorMeasurementsType(stream, &iso2SensorPackageType->SensorMeasurements.array[iso2SensorPackageType->SensorMeasurements.arrayLen++]);
+ } else {
+ errn = EXI_ERROR_OUT_OF_BOUNDS;
+ }
+ grammarID = 2469;
+ break;
+ case 1:
+ done = 1;
+ grammarID = 4;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 2469:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorMeasurements), END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ if (iso2SensorPackageType->SensorMeasurements.arrayLen < iso2SensorPackageType_SensorMeasurements_ARRAY_SIZE) {
+ errn = decode_iso2SensorMeasurementsType(stream, &iso2SensorPackageType->SensorMeasurements.array[iso2SensorPackageType->SensorMeasurements.arrayLen++]);
+ } else {
+ errn = EXI_ERROR_OUT_OF_BOUNDS;
+ }
+ grammarID = 2470;
+ break;
+ case 1:
+ done = 1;
+ grammarID = 4;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 2470:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorMeasurements), END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ if (iso2SensorPackageType->SensorMeasurements.arrayLen < iso2SensorPackageType_SensorMeasurements_ARRAY_SIZE) {
+ errn = decode_iso2SensorMeasurementsType(stream, &iso2SensorPackageType->SensorMeasurements.array[iso2SensorPackageType->SensorMeasurements.arrayLen++]);
+ } else {
+ errn = EXI_ERROR_OUT_OF_BOUNDS;
+ }
+ grammarID = 2471;
+ break;
+ case 1:
+ done = 1;
+ grammarID = 4;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 2471:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorMeasurements), END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ if (iso2SensorPackageType->SensorMeasurements.arrayLen < iso2SensorPackageType_SensorMeasurements_ARRAY_SIZE) {
+ errn = decode_iso2SensorMeasurementsType(stream, &iso2SensorPackageType->SensorMeasurements.array[iso2SensorPackageType->SensorMeasurements.arrayLen++]);
+ } else {
+ errn = EXI_ERROR_OUT_OF_BOUNDS;
+ }
+ grammarID = 2472;
+ break;
+ case 1:
+ done = 1;
+ grammarID = 4;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 2472:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorMeasurements), END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ if (iso2SensorPackageType->SensorMeasurements.arrayLen < iso2SensorPackageType_SensorMeasurements_ARRAY_SIZE) {
+ errn = decode_iso2SensorMeasurementsType(stream, &iso2SensorPackageType->SensorMeasurements.array[iso2SensorPackageType->SensorMeasurements.arrayLen++]);
+ } else {
+ errn = EXI_ERROR_OUT_OF_BOUNDS;
+ }
+ grammarID = 2473;
+ break;
+ case 1:
+ done = 1;
+ grammarID = 4;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 2473:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorMeasurements), END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ if (iso2SensorPackageType->SensorMeasurements.arrayLen < iso2SensorPackageType_SensorMeasurements_ARRAY_SIZE) {
+ errn = decode_iso2SensorMeasurementsType(stream, &iso2SensorPackageType->SensorMeasurements.array[iso2SensorPackageType->SensorMeasurements.arrayLen++]);
+ } else {
+ errn = EXI_ERROR_OUT_OF_BOUNDS;
+ }
+ grammarID = 2474;
+ break;
+ case 1:
+ done = 1;
+ grammarID = 4;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 2474:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorMeasurements), END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ if (iso2SensorPackageType->SensorMeasurements.arrayLen < iso2SensorPackageType_SensorMeasurements_ARRAY_SIZE) {
+ errn = decode_iso2SensorMeasurementsType(stream, &iso2SensorPackageType->SensorMeasurements.array[iso2SensorPackageType->SensorMeasurements.arrayLen++]);
+ } else {
+ errn = EXI_ERROR_OUT_OF_BOUNDS;
+ }
+ grammarID = 2475;
+ break;
+ case 1:
+ done = 1;
+ grammarID = 4;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 2475:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorMeasurements), END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ if (iso2SensorPackageType->SensorMeasurements.arrayLen < iso2SensorPackageType_SensorMeasurements_ARRAY_SIZE) {
+ errn = decode_iso2SensorMeasurementsType(stream, &iso2SensorPackageType->SensorMeasurements.array[iso2SensorPackageType->SensorMeasurements.arrayLen++]);
+ } else {
+ errn = EXI_ERROR_OUT_OF_BOUNDS;
+ }
+ grammarID = 2476;
+ break;
+ case 1:
+ done = 1;
+ grammarID = 4;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 2476:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorMeasurements), END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ if (iso2SensorPackageType->SensorMeasurements.arrayLen < iso2SensorPackageType_SensorMeasurements_ARRAY_SIZE) {
+ errn = decode_iso2SensorMeasurementsType(stream, &iso2SensorPackageType->SensorMeasurements.array[iso2SensorPackageType->SensorMeasurements.arrayLen++]);
+ } else {
+ errn = EXI_ERROR_OUT_OF_BOUNDS;
+ }
+ grammarID = 2477;
+ break;
+ case 1:
+ done = 1;
+ grammarID = 4;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 2477:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorMeasurements), END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ if (iso2SensorPackageType->SensorMeasurements.arrayLen < iso2SensorPackageType_SensorMeasurements_ARRAY_SIZE) {
+ errn = decode_iso2SensorMeasurementsType(stream, &iso2SensorPackageType->SensorMeasurements.array[iso2SensorPackageType->SensorMeasurements.arrayLen++]);
+ } else {
+ errn = EXI_ERROR_OUT_OF_BOUNDS;
+ }
+ grammarID = 2478;
+ break;
+ case 1:
+ done = 1;
+ grammarID = 4;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 2478:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorMeasurements), END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ if (iso2SensorPackageType->SensorMeasurements.arrayLen < iso2SensorPackageType_SensorMeasurements_ARRAY_SIZE) {
+ errn = decode_iso2SensorMeasurementsType(stream, &iso2SensorPackageType->SensorMeasurements.array[iso2SensorPackageType->SensorMeasurements.arrayLen++]);
+ } else {
+ errn = EXI_ERROR_OUT_OF_BOUNDS;
+ }
+ grammarID = 2479;
+ break;
+ case 1:
+ done = 1;
+ grammarID = 4;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 2479:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorMeasurements), END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ if (iso2SensorPackageType->SensorMeasurements.arrayLen < iso2SensorPackageType_SensorMeasurements_ARRAY_SIZE) {
+ errn = decode_iso2SensorMeasurementsType(stream, &iso2SensorPackageType->SensorMeasurements.array[iso2SensorPackageType->SensorMeasurements.arrayLen++]);
+ } else {
+ errn = EXI_ERROR_OUT_OF_BOUNDS;
+ }
+ grammarID = 2480;
+ break;
+ case 1:
+ done = 1;
+ grammarID = 4;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 2480:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorMeasurements), END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ if (iso2SensorPackageType->SensorMeasurements.arrayLen < iso2SensorPackageType_SensorMeasurements_ARRAY_SIZE) {
+ errn = decode_iso2SensorMeasurementsType(stream, &iso2SensorPackageType->SensorMeasurements.array[iso2SensorPackageType->SensorMeasurements.arrayLen++]);
+ } else {
+ errn = EXI_ERROR_OUT_OF_BOUNDS;
+ }
+ grammarID = 2481;
+ break;
+ case 1:
+ done = 1;
+ grammarID = 4;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 2481:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorMeasurements), END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ if (iso2SensorPackageType->SensorMeasurements.arrayLen < iso2SensorPackageType_SensorMeasurements_ARRAY_SIZE) {
+ errn = decode_iso2SensorMeasurementsType(stream, &iso2SensorPackageType->SensorMeasurements.array[iso2SensorPackageType->SensorMeasurements.arrayLen++]);
+ } else {
+ errn = EXI_ERROR_OUT_OF_BOUNDS;
+ }
+ grammarID = 2482;
+ break;
+ case 1:
+ done = 1;
+ grammarID = 4;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 2482:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorMeasurements), END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ if (iso2SensorPackageType->SensorMeasurements.arrayLen < iso2SensorPackageType_SensorMeasurements_ARRAY_SIZE) {
+ errn = decode_iso2SensorMeasurementsType(stream, &iso2SensorPackageType->SensorMeasurements.array[iso2SensorPackageType->SensorMeasurements.arrayLen++]);
+ } else {
+ errn = EXI_ERROR_OUT_OF_BOUNDS;
+ }
+ grammarID = 2483;
+ break;
+ case 1:
+ done = 1;
+ grammarID = 4;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 2483:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorMeasurements), END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ if (iso2SensorPackageType->SensorMeasurements.arrayLen < iso2SensorPackageType_SensorMeasurements_ARRAY_SIZE) {
+ errn = decode_iso2SensorMeasurementsType(stream, &iso2SensorPackageType->SensorMeasurements.array[iso2SensorPackageType->SensorMeasurements.arrayLen++]);
+ } else {
+ errn = EXI_ERROR_OUT_OF_BOUNDS;
+ }
+ grammarID = 2484;
+ break;
+ case 1:
+ done = 1;
+ grammarID = 4;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 2484:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorMeasurements), END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ if (iso2SensorPackageType->SensorMeasurements.arrayLen < iso2SensorPackageType_SensorMeasurements_ARRAY_SIZE) {
+ errn = decode_iso2SensorMeasurementsType(stream, &iso2SensorPackageType->SensorMeasurements.array[iso2SensorPackageType->SensorMeasurements.arrayLen++]);
+ } else {
+ errn = EXI_ERROR_OUT_OF_BOUNDS;
+ }
+ grammarID = 2485;
+ break;
+ case 1:
+ done = 1;
+ grammarID = 4;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 2485:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorMeasurements), END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ if (iso2SensorPackageType->SensorMeasurements.arrayLen < iso2SensorPackageType_SensorMeasurements_ARRAY_SIZE) {
+ errn = decode_iso2SensorMeasurementsType(stream, &iso2SensorPackageType->SensorMeasurements.array[iso2SensorPackageType->SensorMeasurements.arrayLen++]);
+ } else {
+ errn = EXI_ERROR_OUT_OF_BOUNDS;
+ }
+ grammarID = 2486;
+ break;
+ case 1:
+ done = 1;
+ grammarID = 4;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 2486:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorMeasurements), END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ if (iso2SensorPackageType->SensorMeasurements.arrayLen < iso2SensorPackageType_SensorMeasurements_ARRAY_SIZE) {
+ errn = decode_iso2SensorMeasurementsType(stream, &iso2SensorPackageType->SensorMeasurements.array[iso2SensorPackageType->SensorMeasurements.arrayLen++]);
+ } else {
+ errn = EXI_ERROR_OUT_OF_BOUNDS;
+ }
+ grammarID = 2487;
+ break;
+ case 1:
+ done = 1;
+ grammarID = 4;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 2487:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorMeasurements), END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ if (iso2SensorPackageType->SensorMeasurements.arrayLen < iso2SensorPackageType_SensorMeasurements_ARRAY_SIZE) {
+ errn = decode_iso2SensorMeasurementsType(stream, &iso2SensorPackageType->SensorMeasurements.array[iso2SensorPackageType->SensorMeasurements.arrayLen++]);
+ } else {
+ errn = EXI_ERROR_OUT_OF_BOUNDS;
+ }
+ grammarID = 2488;
+ break;
+ case 1:
+ done = 1;
+ grammarID = 4;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 2488:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorMeasurements), END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ if (iso2SensorPackageType->SensorMeasurements.arrayLen < iso2SensorPackageType_SensorMeasurements_ARRAY_SIZE) {
+ errn = decode_iso2SensorMeasurementsType(stream, &iso2SensorPackageType->SensorMeasurements.array[iso2SensorPackageType->SensorMeasurements.arrayLen++]);
+ } else {
+ errn = EXI_ERROR_OUT_OF_BOUNDS;
+ }
+ grammarID = 2489;
+ break;
+ case 1:
+ done = 1;
+ grammarID = 4;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 2489:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorMeasurements), END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ if (iso2SensorPackageType->SensorMeasurements.arrayLen < iso2SensorPackageType_SensorMeasurements_ARRAY_SIZE) {
+ errn = decode_iso2SensorMeasurementsType(stream, &iso2SensorPackageType->SensorMeasurements.array[iso2SensorPackageType->SensorMeasurements.arrayLen++]);
+ } else {
+ errn = EXI_ERROR_OUT_OF_BOUNDS;
+ }
+ grammarID = 2490;
+ break;
+ case 1:
+ done = 1;
+ grammarID = 4;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 2490:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorMeasurements), END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ if (iso2SensorPackageType->SensorMeasurements.arrayLen < iso2SensorPackageType_SensorMeasurements_ARRAY_SIZE) {
+ errn = decode_iso2SensorMeasurementsType(stream, &iso2SensorPackageType->SensorMeasurements.array[iso2SensorPackageType->SensorMeasurements.arrayLen++]);
+ } else {
+ errn = EXI_ERROR_OUT_OF_BOUNDS;
+ }
+ grammarID = 2491;
+ break;
+ case 1:
+ done = 1;
+ grammarID = 4;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 2491:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorMeasurements), END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ if (iso2SensorPackageType->SensorMeasurements.arrayLen < iso2SensorPackageType_SensorMeasurements_ARRAY_SIZE) {
+ errn = decode_iso2SensorMeasurementsType(stream, &iso2SensorPackageType->SensorMeasurements.array[iso2SensorPackageType->SensorMeasurements.arrayLen++]);
+ } else {
+ errn = EXI_ERROR_OUT_OF_BOUNDS;
+ }
+ grammarID = 2492;
+ break;
+ case 1:
+ done = 1;
+ grammarID = 4;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 2492:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorMeasurements), END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ if (iso2SensorPackageType->SensorMeasurements.arrayLen < iso2SensorPackageType_SensorMeasurements_ARRAY_SIZE) {
+ errn = decode_iso2SensorMeasurementsType(stream, &iso2SensorPackageType->SensorMeasurements.array[iso2SensorPackageType->SensorMeasurements.arrayLen++]);
+ } else {
+ errn = EXI_ERROR_OUT_OF_BOUNDS;
+ }
+ grammarID = 2493;
+ break;
+ case 1:
+ done = 1;
+ grammarID = 4;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 2493:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorMeasurements), END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ if (iso2SensorPackageType->SensorMeasurements.arrayLen < iso2SensorPackageType_SensorMeasurements_ARRAY_SIZE) {
+ errn = decode_iso2SensorMeasurementsType(stream, &iso2SensorPackageType->SensorMeasurements.array[iso2SensorPackageType->SensorMeasurements.arrayLen++]);
+ } else {
+ errn = EXI_ERROR_OUT_OF_BOUNDS;
+ }
+ grammarID = 2494;
+ break;
+ case 1:
+ done = 1;
+ grammarID = 4;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 2494:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorMeasurements), END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ if (iso2SensorPackageType->SensorMeasurements.arrayLen < iso2SensorPackageType_SensorMeasurements_ARRAY_SIZE) {
+ errn = decode_iso2SensorMeasurementsType(stream, &iso2SensorPackageType->SensorMeasurements.array[iso2SensorPackageType->SensorMeasurements.arrayLen++]);
+ } else {
+ errn = EXI_ERROR_OUT_OF_BOUNDS;
+ }
+ grammarID = 2495;
+ break;
+ case 1:
+ done = 1;
+ grammarID = 4;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 2495:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorMeasurements), END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ if (iso2SensorPackageType->SensorMeasurements.arrayLen < iso2SensorPackageType_SensorMeasurements_ARRAY_SIZE) {
+ errn = decode_iso2SensorMeasurementsType(stream, &iso2SensorPackageType->SensorMeasurements.array[iso2SensorPackageType->SensorMeasurements.arrayLen++]);
+ } else {
+ errn = EXI_ERROR_OUT_OF_BOUNDS;
+ }
+ grammarID = 2496;
+ break;
+ case 1:
+ done = 1;
+ grammarID = 4;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 2496:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorMeasurements), END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ if (iso2SensorPackageType->SensorMeasurements.arrayLen < iso2SensorPackageType_SensorMeasurements_ARRAY_SIZE) {
+ errn = decode_iso2SensorMeasurementsType(stream, &iso2SensorPackageType->SensorMeasurements.array[iso2SensorPackageType->SensorMeasurements.arrayLen++]);
+ } else {
+ errn = EXI_ERROR_OUT_OF_BOUNDS;
+ }
+ grammarID = 2497;
+ break;
+ case 1:
+ done = 1;
+ grammarID = 4;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 2497:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorMeasurements), END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ if (iso2SensorPackageType->SensorMeasurements.arrayLen < iso2SensorPackageType_SensorMeasurements_ARRAY_SIZE) {
+ errn = decode_iso2SensorMeasurementsType(stream, &iso2SensorPackageType->SensorMeasurements.array[iso2SensorPackageType->SensorMeasurements.arrayLen++]);
+ } else {
+ errn = EXI_ERROR_OUT_OF_BOUNDS;
+ }
+ grammarID = 2498;
+ break;
+ case 1:
+ done = 1;
+ grammarID = 4;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 2498:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorMeasurements), END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ if (iso2SensorPackageType->SensorMeasurements.arrayLen < iso2SensorPackageType_SensorMeasurements_ARRAY_SIZE) {
+ errn = decode_iso2SensorMeasurementsType(stream, &iso2SensorPackageType->SensorMeasurements.array[iso2SensorPackageType->SensorMeasurements.arrayLen++]);
+ } else {
+ errn = EXI_ERROR_OUT_OF_BOUNDS;
+ }
+ grammarID = 2499;
+ break;
+ case 1:
+ done = 1;
+ grammarID = 4;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 2499:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorMeasurements), END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ if (iso2SensorPackageType->SensorMeasurements.arrayLen < iso2SensorPackageType_SensorMeasurements_ARRAY_SIZE) {
+ errn = decode_iso2SensorMeasurementsType(stream, &iso2SensorPackageType->SensorMeasurements.array[iso2SensorPackageType->SensorMeasurements.arrayLen++]);
+ } else {
+ errn = EXI_ERROR_OUT_OF_BOUNDS;
+ }
+ grammarID = 2500;
+ break;
+ case 1:
+ done = 1;
+ grammarID = 4;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 2500:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorMeasurements), END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ if (iso2SensorPackageType->SensorMeasurements.arrayLen < iso2SensorPackageType_SensorMeasurements_ARRAY_SIZE) {
+ errn = decode_iso2SensorMeasurementsType(stream, &iso2SensorPackageType->SensorMeasurements.array[iso2SensorPackageType->SensorMeasurements.arrayLen++]);
+ } else {
+ errn = EXI_ERROR_OUT_OF_BOUNDS;
+ }
+ grammarID = 2501;
+ break;
+ case 1:
+ done = 1;
+ grammarID = 4;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 2501:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorMeasurements), END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ if (iso2SensorPackageType->SensorMeasurements.arrayLen < iso2SensorPackageType_SensorMeasurements_ARRAY_SIZE) {
+ errn = decode_iso2SensorMeasurementsType(stream, &iso2SensorPackageType->SensorMeasurements.array[iso2SensorPackageType->SensorMeasurements.arrayLen++]);
+ } else {
+ errn = EXI_ERROR_OUT_OF_BOUNDS;
+ }
+ grammarID = 2502;
+ break;
+ case 1:
+ done = 1;
+ grammarID = 4;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 2502:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorMeasurements), END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ if (iso2SensorPackageType->SensorMeasurements.arrayLen < iso2SensorPackageType_SensorMeasurements_ARRAY_SIZE) {
+ errn = decode_iso2SensorMeasurementsType(stream, &iso2SensorPackageType->SensorMeasurements.array[iso2SensorPackageType->SensorMeasurements.arrayLen++]);
+ } else {
+ errn = EXI_ERROR_OUT_OF_BOUNDS;
+ }
+ grammarID = 2503;
+ break;
+ case 1:
+ done = 1;
+ grammarID = 4;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 2503:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorMeasurements), END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ if (iso2SensorPackageType->SensorMeasurements.arrayLen < iso2SensorPackageType_SensorMeasurements_ARRAY_SIZE) {
+ errn = decode_iso2SensorMeasurementsType(stream, &iso2SensorPackageType->SensorMeasurements.array[iso2SensorPackageType->SensorMeasurements.arrayLen++]);
+ } else {
+ errn = EXI_ERROR_OUT_OF_BOUNDS;
+ }
+ grammarID = 2504;
+ break;
+ case 1:
+ done = 1;
+ grammarID = 4;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 2504:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorMeasurements), END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ if (iso2SensorPackageType->SensorMeasurements.arrayLen < iso2SensorPackageType_SensorMeasurements_ARRAY_SIZE) {
+ errn = decode_iso2SensorMeasurementsType(stream, &iso2SensorPackageType->SensorMeasurements.array[iso2SensorPackageType->SensorMeasurements.arrayLen++]);
+ } else {
+ errn = EXI_ERROR_OUT_OF_BOUNDS;
+ }
+ grammarID = 2505;
+ break;
+ case 1:
+ done = 1;
+ grammarID = 4;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 2505:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorMeasurements), END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ if (iso2SensorPackageType->SensorMeasurements.arrayLen < iso2SensorPackageType_SensorMeasurements_ARRAY_SIZE) {
+ errn = decode_iso2SensorMeasurementsType(stream, &iso2SensorPackageType->SensorMeasurements.array[iso2SensorPackageType->SensorMeasurements.arrayLen++]);
+ } else {
+ errn = EXI_ERROR_OUT_OF_BOUNDS;
+ }
+ grammarID = 2506;
+ break;
+ case 1:
+ done = 1;
+ grammarID = 4;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 2506:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorMeasurements), END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ if (iso2SensorPackageType->SensorMeasurements.arrayLen < iso2SensorPackageType_SensorMeasurements_ARRAY_SIZE) {
+ errn = decode_iso2SensorMeasurementsType(stream, &iso2SensorPackageType->SensorMeasurements.array[iso2SensorPackageType->SensorMeasurements.arrayLen++]);
+ } else {
+ errn = EXI_ERROR_OUT_OF_BOUNDS;
+ }
+ grammarID = 2507;
+ break;
+ case 1:
+ done = 1;
+ grammarID = 4;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 2507:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorMeasurements), END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ if (iso2SensorPackageType->SensorMeasurements.arrayLen < iso2SensorPackageType_SensorMeasurements_ARRAY_SIZE) {
+ errn = decode_iso2SensorMeasurementsType(stream, &iso2SensorPackageType->SensorMeasurements.array[iso2SensorPackageType->SensorMeasurements.arrayLen++]);
+ } else {
+ errn = EXI_ERROR_OUT_OF_BOUNDS;
+ }
+ grammarID = 2508;
+ break;
+ case 1:
+ done = 1;
+ grammarID = 4;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 2508:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorMeasurements), END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ if (iso2SensorPackageType->SensorMeasurements.arrayLen < iso2SensorPackageType_SensorMeasurements_ARRAY_SIZE) {
+ errn = decode_iso2SensorMeasurementsType(stream, &iso2SensorPackageType->SensorMeasurements.array[iso2SensorPackageType->SensorMeasurements.arrayLen++]);
+ } else {
+ errn = EXI_ERROR_OUT_OF_BOUNDS;
+ }
+ grammarID = 2509;
+ break;
+ case 1:
+ done = 1;
+ grammarID = 4;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 2509:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorMeasurements), END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ if (iso2SensorPackageType->SensorMeasurements.arrayLen < iso2SensorPackageType_SensorMeasurements_ARRAY_SIZE) {
+ errn = decode_iso2SensorMeasurementsType(stream, &iso2SensorPackageType->SensorMeasurements.array[iso2SensorPackageType->SensorMeasurements.arrayLen++]);
+ } else {
+ errn = EXI_ERROR_OUT_OF_BOUNDS;
+ }
+ grammarID = 2510;
+ break;
+ case 1:
+ done = 1;
+ grammarID = 4;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 2510:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorMeasurements), END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ if (iso2SensorPackageType->SensorMeasurements.arrayLen < iso2SensorPackageType_SensorMeasurements_ARRAY_SIZE) {
+ errn = decode_iso2SensorMeasurementsType(stream, &iso2SensorPackageType->SensorMeasurements.array[iso2SensorPackageType->SensorMeasurements.arrayLen++]);
+ } else {
+ errn = EXI_ERROR_OUT_OF_BOUNDS;
+ }
+ grammarID = 2511;
+ break;
+ case 1:
+ done = 1;
+ grammarID = 4;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 2511:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorMeasurements), END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ if (iso2SensorPackageType->SensorMeasurements.arrayLen < iso2SensorPackageType_SensorMeasurements_ARRAY_SIZE) {
+ errn = decode_iso2SensorMeasurementsType(stream, &iso2SensorPackageType->SensorMeasurements.array[iso2SensorPackageType->SensorMeasurements.arrayLen++]);
+ } else {
+ errn = EXI_ERROR_OUT_OF_BOUNDS;
+ }
+ grammarID = 2512;
+ break;
+ case 1:
+ done = 1;
+ grammarID = 4;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 2512:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorMeasurements), END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ if (iso2SensorPackageType->SensorMeasurements.arrayLen < iso2SensorPackageType_SensorMeasurements_ARRAY_SIZE) {
+ errn = decode_iso2SensorMeasurementsType(stream, &iso2SensorPackageType->SensorMeasurements.array[iso2SensorPackageType->SensorMeasurements.arrayLen++]);
+ } else {
+ errn = EXI_ERROR_OUT_OF_BOUNDS;
+ }
+ grammarID = 2513;
+ break;
+ case 1:
+ done = 1;
+ grammarID = 4;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 2513:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorMeasurements), END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ if (iso2SensorPackageType->SensorMeasurements.arrayLen < iso2SensorPackageType_SensorMeasurements_ARRAY_SIZE) {
+ errn = decode_iso2SensorMeasurementsType(stream, &iso2SensorPackageType->SensorMeasurements.array[iso2SensorPackageType->SensorMeasurements.arrayLen++]);
+ } else {
+ errn = EXI_ERROR_OUT_OF_BOUNDS;
+ }
+ grammarID = 2514;
+ break;
+ case 1:
+ done = 1;
+ grammarID = 4;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 2514:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorMeasurements), END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ if (iso2SensorPackageType->SensorMeasurements.arrayLen < iso2SensorPackageType_SensorMeasurements_ARRAY_SIZE) {
+ errn = decode_iso2SensorMeasurementsType(stream, &iso2SensorPackageType->SensorMeasurements.array[iso2SensorPackageType->SensorMeasurements.arrayLen++]);
+ } else {
+ errn = EXI_ERROR_OUT_OF_BOUNDS;
+ }
+ grammarID = 2515;
+ break;
+ case 1:
+ done = 1;
+ grammarID = 4;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 2515:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorMeasurements), END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ if (iso2SensorPackageType->SensorMeasurements.arrayLen < iso2SensorPackageType_SensorMeasurements_ARRAY_SIZE) {
+ errn = decode_iso2SensorMeasurementsType(stream, &iso2SensorPackageType->SensorMeasurements.array[iso2SensorPackageType->SensorMeasurements.arrayLen++]);
+ } else {
+ errn = EXI_ERROR_OUT_OF_BOUNDS;
+ }
+ grammarID = 2516;
+ break;
+ case 1:
+ done = 1;
+ grammarID = 4;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 2516:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorMeasurements), END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ if (iso2SensorPackageType->SensorMeasurements.arrayLen < iso2SensorPackageType_SensorMeasurements_ARRAY_SIZE) {
+ errn = decode_iso2SensorMeasurementsType(stream, &iso2SensorPackageType->SensorMeasurements.array[iso2SensorPackageType->SensorMeasurements.arrayLen++]);
+ } else {
+ errn = EXI_ERROR_OUT_OF_BOUNDS;
+ }
+ grammarID = 2517;
+ break;
+ case 1:
+ done = 1;
+ grammarID = 4;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 2517:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorMeasurements), END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ if (iso2SensorPackageType->SensorMeasurements.arrayLen < iso2SensorPackageType_SensorMeasurements_ARRAY_SIZE) {
+ errn = decode_iso2SensorMeasurementsType(stream, &iso2SensorPackageType->SensorMeasurements.array[iso2SensorPackageType->SensorMeasurements.arrayLen++]);
+ } else {
+ errn = EXI_ERROR_OUT_OF_BOUNDS;
+ }
+ grammarID = 2518;
+ break;
+ case 1:
+ done = 1;
+ grammarID = 4;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 2518:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorMeasurements), END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ if (iso2SensorPackageType->SensorMeasurements.arrayLen < iso2SensorPackageType_SensorMeasurements_ARRAY_SIZE) {
+ errn = decode_iso2SensorMeasurementsType(stream, &iso2SensorPackageType->SensorMeasurements.array[iso2SensorPackageType->SensorMeasurements.arrayLen++]);
+ } else {
+ errn = EXI_ERROR_OUT_OF_BOUNDS;
+ }
+ grammarID = 2519;
+ break;
+ case 1:
+ done = 1;
+ grammarID = 4;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 2519:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorMeasurements), END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ if (iso2SensorPackageType->SensorMeasurements.arrayLen < iso2SensorPackageType_SensorMeasurements_ARRAY_SIZE) {
+ errn = decode_iso2SensorMeasurementsType(stream, &iso2SensorPackageType->SensorMeasurements.array[iso2SensorPackageType->SensorMeasurements.arrayLen++]);
+ } else {
+ errn = EXI_ERROR_OUT_OF_BOUNDS;
+ }
+ grammarID = 2520;
+ break;
+ case 1:
+ done = 1;
+ grammarID = 4;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 2520:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorMeasurements), END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ if (iso2SensorPackageType->SensorMeasurements.arrayLen < iso2SensorPackageType_SensorMeasurements_ARRAY_SIZE) {
+ errn = decode_iso2SensorMeasurementsType(stream, &iso2SensorPackageType->SensorMeasurements.array[iso2SensorPackageType->SensorMeasurements.arrayLen++]);
+ } else {
+ errn = EXI_ERROR_OUT_OF_BOUNDS;
+ }
+ grammarID = 2521;
+ break;
+ case 1:
+ done = 1;
+ grammarID = 4;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 2521:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorMeasurements), END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ if (iso2SensorPackageType->SensorMeasurements.arrayLen < iso2SensorPackageType_SensorMeasurements_ARRAY_SIZE) {
+ errn = decode_iso2SensorMeasurementsType(stream, &iso2SensorPackageType->SensorMeasurements.array[iso2SensorPackageType->SensorMeasurements.arrayLen++]);
+ } else {
+ errn = EXI_ERROR_OUT_OF_BOUNDS;
+ }
+ grammarID = 2522;
+ break;
+ case 1:
+ done = 1;
+ grammarID = 4;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 2522:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorMeasurements), END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ if (iso2SensorPackageType->SensorMeasurements.arrayLen < iso2SensorPackageType_SensorMeasurements_ARRAY_SIZE) {
+ errn = decode_iso2SensorMeasurementsType(stream, &iso2SensorPackageType->SensorMeasurements.array[iso2SensorPackageType->SensorMeasurements.arrayLen++]);
+ } else {
+ errn = EXI_ERROR_OUT_OF_BOUNDS;
+ }
+ grammarID = 2523;
+ break;
+ case 1:
+ done = 1;
+ grammarID = 4;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 2523:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorMeasurements), END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ if (iso2SensorPackageType->SensorMeasurements.arrayLen < iso2SensorPackageType_SensorMeasurements_ARRAY_SIZE) {
+ errn = decode_iso2SensorMeasurementsType(stream, &iso2SensorPackageType->SensorMeasurements.array[iso2SensorPackageType->SensorMeasurements.arrayLen++]);
+ } else {
+ errn = EXI_ERROR_OUT_OF_BOUNDS;
+ }
+ grammarID = 2524;
+ break;
+ case 1:
+ done = 1;
+ grammarID = 4;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 2524:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorMeasurements), END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ if (iso2SensorPackageType->SensorMeasurements.arrayLen < iso2SensorPackageType_SensorMeasurements_ARRAY_SIZE) {
+ errn = decode_iso2SensorMeasurementsType(stream, &iso2SensorPackageType->SensorMeasurements.array[iso2SensorPackageType->SensorMeasurements.arrayLen++]);
+ } else {
+ errn = EXI_ERROR_OUT_OF_BOUNDS;
+ }
+ grammarID = 2525;
+ break;
+ case 1:
+ done = 1;
+ grammarID = 4;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 2525:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorMeasurements), END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ if (iso2SensorPackageType->SensorMeasurements.arrayLen < iso2SensorPackageType_SensorMeasurements_ARRAY_SIZE) {
+ errn = decode_iso2SensorMeasurementsType(stream, &iso2SensorPackageType->SensorMeasurements.array[iso2SensorPackageType->SensorMeasurements.arrayLen++]);
+ } else {
+ errn = EXI_ERROR_OUT_OF_BOUNDS;
+ }
+ grammarID = 2526;
+ break;
+ case 1:
+ done = 1;
+ grammarID = 4;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 2526:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorMeasurements), END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ if (iso2SensorPackageType->SensorMeasurements.arrayLen < iso2SensorPackageType_SensorMeasurements_ARRAY_SIZE) {
+ errn = decode_iso2SensorMeasurementsType(stream, &iso2SensorPackageType->SensorMeasurements.array[iso2SensorPackageType->SensorMeasurements.arrayLen++]);
+ } else {
+ errn = EXI_ERROR_OUT_OF_BOUNDS;
+ }
+ grammarID = 2527;
+ break;
+ case 1:
+ done = 1;
+ grammarID = 4;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 2527:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorMeasurements), END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ if (iso2SensorPackageType->SensorMeasurements.arrayLen < iso2SensorPackageType_SensorMeasurements_ARRAY_SIZE) {
+ errn = decode_iso2SensorMeasurementsType(stream, &iso2SensorPackageType->SensorMeasurements.array[iso2SensorPackageType->SensorMeasurements.arrayLen++]);
+ } else {
+ errn = EXI_ERROR_OUT_OF_BOUNDS;
+ }
+ grammarID = 2528;
+ break;
+ case 1:
+ done = 1;
+ grammarID = 4;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 2528:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorMeasurements), END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ if (iso2SensorPackageType->SensorMeasurements.arrayLen < iso2SensorPackageType_SensorMeasurements_ARRAY_SIZE) {
+ errn = decode_iso2SensorMeasurementsType(stream, &iso2SensorPackageType->SensorMeasurements.array[iso2SensorPackageType->SensorMeasurements.arrayLen++]);
+ } else {
+ errn = EXI_ERROR_OUT_OF_BOUNDS;
+ }
+ grammarID = 2529;
+ break;
+ case 1:
+ done = 1;
+ grammarID = 4;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 2529:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorMeasurements), END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ if (iso2SensorPackageType->SensorMeasurements.arrayLen < iso2SensorPackageType_SensorMeasurements_ARRAY_SIZE) {
+ errn = decode_iso2SensorMeasurementsType(stream, &iso2SensorPackageType->SensorMeasurements.array[iso2SensorPackageType->SensorMeasurements.arrayLen++]);
+ } else {
+ errn = EXI_ERROR_OUT_OF_BOUNDS;
+ }
+ grammarID = 2530;
+ break;
+ case 1:
+ done = 1;
+ grammarID = 4;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 2530:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorMeasurements), END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ if (iso2SensorPackageType->SensorMeasurements.arrayLen < iso2SensorPackageType_SensorMeasurements_ARRAY_SIZE) {
+ errn = decode_iso2SensorMeasurementsType(stream, &iso2SensorPackageType->SensorMeasurements.array[iso2SensorPackageType->SensorMeasurements.arrayLen++]);
+ } else {
+ errn = EXI_ERROR_OUT_OF_BOUNDS;
+ }
+ grammarID = 2531;
+ break;
+ case 1:
+ done = 1;
+ grammarID = 4;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 2531:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorMeasurements), END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ if (iso2SensorPackageType->SensorMeasurements.arrayLen < iso2SensorPackageType_SensorMeasurements_ARRAY_SIZE) {
+ errn = decode_iso2SensorMeasurementsType(stream, &iso2SensorPackageType->SensorMeasurements.array[iso2SensorPackageType->SensorMeasurements.arrayLen++]);
+ } else {
+ errn = EXI_ERROR_OUT_OF_BOUNDS;
+ }
+ grammarID = 2532;
+ break;
+ case 1:
+ done = 1;
+ grammarID = 4;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 2532:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorMeasurements), END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ if (iso2SensorPackageType->SensorMeasurements.arrayLen < iso2SensorPackageType_SensorMeasurements_ARRAY_SIZE) {
+ errn = decode_iso2SensorMeasurementsType(stream, &iso2SensorPackageType->SensorMeasurements.array[iso2SensorPackageType->SensorMeasurements.arrayLen++]);
+ } else {
+ errn = EXI_ERROR_OUT_OF_BOUNDS;
+ }
+ grammarID = 2533;
+ break;
+ case 1:
+ done = 1;
+ grammarID = 4;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 2533:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorMeasurements), END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ if (iso2SensorPackageType->SensorMeasurements.arrayLen < iso2SensorPackageType_SensorMeasurements_ARRAY_SIZE) {
+ errn = decode_iso2SensorMeasurementsType(stream, &iso2SensorPackageType->SensorMeasurements.array[iso2SensorPackageType->SensorMeasurements.arrayLen++]);
+ } else {
+ errn = EXI_ERROR_OUT_OF_BOUNDS;
+ }
+ grammarID = 2534;
+ break;
+ case 1:
+ done = 1;
+ grammarID = 4;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 2534:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorMeasurements), END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ if (iso2SensorPackageType->SensorMeasurements.arrayLen < iso2SensorPackageType_SensorMeasurements_ARRAY_SIZE) {
+ errn = decode_iso2SensorMeasurementsType(stream, &iso2SensorPackageType->SensorMeasurements.array[iso2SensorPackageType->SensorMeasurements.arrayLen++]);
+ } else {
+ errn = EXI_ERROR_OUT_OF_BOUNDS;
+ }
+ grammarID = 2535;
+ break;
+ case 1:
+ done = 1;
+ grammarID = 4;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 2535:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorMeasurements), END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ if (iso2SensorPackageType->SensorMeasurements.arrayLen < iso2SensorPackageType_SensorMeasurements_ARRAY_SIZE) {
+ errn = decode_iso2SensorMeasurementsType(stream, &iso2SensorPackageType->SensorMeasurements.array[iso2SensorPackageType->SensorMeasurements.arrayLen++]);
+ } else {
+ errn = EXI_ERROR_OUT_OF_BOUNDS;
+ }
+ grammarID = 2536;
+ break;
+ case 1:
+ done = 1;
+ grammarID = 4;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 2536:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorMeasurements), END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ if (iso2SensorPackageType->SensorMeasurements.arrayLen < iso2SensorPackageType_SensorMeasurements_ARRAY_SIZE) {
+ errn = decode_iso2SensorMeasurementsType(stream, &iso2SensorPackageType->SensorMeasurements.array[iso2SensorPackageType->SensorMeasurements.arrayLen++]);
+ } else {
+ errn = EXI_ERROR_OUT_OF_BOUNDS;
+ }
+ grammarID = 2537;
+ break;
+ case 1:
+ done = 1;
+ grammarID = 4;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 2537:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorMeasurements), END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ if (iso2SensorPackageType->SensorMeasurements.arrayLen < iso2SensorPackageType_SensorMeasurements_ARRAY_SIZE) {
+ errn = decode_iso2SensorMeasurementsType(stream, &iso2SensorPackageType->SensorMeasurements.array[iso2SensorPackageType->SensorMeasurements.arrayLen++]);
+ } else {
+ errn = EXI_ERROR_OUT_OF_BOUNDS;
+ }
+ grammarID = 2538;
+ break;
+ case 1:
+ done = 1;
+ grammarID = 4;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 2538:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorMeasurements), END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ if (iso2SensorPackageType->SensorMeasurements.arrayLen < iso2SensorPackageType_SensorMeasurements_ARRAY_SIZE) {
+ errn = decode_iso2SensorMeasurementsType(stream, &iso2SensorPackageType->SensorMeasurements.array[iso2SensorPackageType->SensorMeasurements.arrayLen++]);
+ } else {
+ errn = EXI_ERROR_OUT_OF_BOUNDS;
+ }
+ grammarID = 2539;
+ break;
+ case 1:
+ done = 1;
+ grammarID = 4;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 2539:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorMeasurements), END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ if (iso2SensorPackageType->SensorMeasurements.arrayLen < iso2SensorPackageType_SensorMeasurements_ARRAY_SIZE) {
+ errn = decode_iso2SensorMeasurementsType(stream, &iso2SensorPackageType->SensorMeasurements.array[iso2SensorPackageType->SensorMeasurements.arrayLen++]);
+ } else {
+ errn = EXI_ERROR_OUT_OF_BOUNDS;
+ }
+ grammarID = 2540;
+ break;
+ case 1:
+ done = 1;
+ grammarID = 4;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 2540:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorMeasurements), END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ if (iso2SensorPackageType->SensorMeasurements.arrayLen < iso2SensorPackageType_SensorMeasurements_ARRAY_SIZE) {
+ errn = decode_iso2SensorMeasurementsType(stream, &iso2SensorPackageType->SensorMeasurements.array[iso2SensorPackageType->SensorMeasurements.arrayLen++]);
+ } else {
+ errn = EXI_ERROR_OUT_OF_BOUNDS;
+ }
+ grammarID = 2541;
+ break;
+ case 1:
+ done = 1;
+ grammarID = 4;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 2541:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorMeasurements), END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ if (iso2SensorPackageType->SensorMeasurements.arrayLen < iso2SensorPackageType_SensorMeasurements_ARRAY_SIZE) {
+ errn = decode_iso2SensorMeasurementsType(stream, &iso2SensorPackageType->SensorMeasurements.array[iso2SensorPackageType->SensorMeasurements.arrayLen++]);
+ } else {
+ errn = EXI_ERROR_OUT_OF_BOUNDS;
+ }
+ grammarID = 2542;
+ break;
+ case 1:
+ done = 1;
+ grammarID = 4;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 2542:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorMeasurements), END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ if (iso2SensorPackageType->SensorMeasurements.arrayLen < iso2SensorPackageType_SensorMeasurements_ARRAY_SIZE) {
+ errn = decode_iso2SensorMeasurementsType(stream, &iso2SensorPackageType->SensorMeasurements.array[iso2SensorPackageType->SensorMeasurements.arrayLen++]);
+ } else {
+ errn = EXI_ERROR_OUT_OF_BOUNDS;
+ }
+ grammarID = 2543;
+ break;
+ case 1:
+ done = 1;
+ grammarID = 4;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 2543:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorMeasurements), END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ if (iso2SensorPackageType->SensorMeasurements.arrayLen < iso2SensorPackageType_SensorMeasurements_ARRAY_SIZE) {
+ errn = decode_iso2SensorMeasurementsType(stream, &iso2SensorPackageType->SensorMeasurements.array[iso2SensorPackageType->SensorMeasurements.arrayLen++]);
+ } else {
+ errn = EXI_ERROR_OUT_OF_BOUNDS;
+ }
+ grammarID = 2544;
+ break;
+ case 1:
+ done = 1;
+ grammarID = 4;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 2544:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorMeasurements), END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ if (iso2SensorPackageType->SensorMeasurements.arrayLen < iso2SensorPackageType_SensorMeasurements_ARRAY_SIZE) {
+ errn = decode_iso2SensorMeasurementsType(stream, &iso2SensorPackageType->SensorMeasurements.array[iso2SensorPackageType->SensorMeasurements.arrayLen++]);
+ } else {
+ errn = EXI_ERROR_OUT_OF_BOUNDS;
+ }
+ grammarID = 2545;
+ break;
+ case 1:
+ done = 1;
+ grammarID = 4;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 2545:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorMeasurements), END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ if (iso2SensorPackageType->SensorMeasurements.arrayLen < iso2SensorPackageType_SensorMeasurements_ARRAY_SIZE) {
+ errn = decode_iso2SensorMeasurementsType(stream, &iso2SensorPackageType->SensorMeasurements.array[iso2SensorPackageType->SensorMeasurements.arrayLen++]);
+ } else {
+ errn = EXI_ERROR_OUT_OF_BOUNDS;
+ }
+ grammarID = 2546;
+ break;
+ case 1:
+ done = 1;
+ grammarID = 4;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 2546:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorMeasurements), END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ if (iso2SensorPackageType->SensorMeasurements.arrayLen < iso2SensorPackageType_SensorMeasurements_ARRAY_SIZE) {
+ errn = decode_iso2SensorMeasurementsType(stream, &iso2SensorPackageType->SensorMeasurements.array[iso2SensorPackageType->SensorMeasurements.arrayLen++]);
+ } else {
+ errn = EXI_ERROR_OUT_OF_BOUNDS;
+ }
+ grammarID = 2547;
+ break;
+ case 1:
+ done = 1;
+ grammarID = 4;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 2547:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorMeasurements), END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ if (iso2SensorPackageType->SensorMeasurements.arrayLen < iso2SensorPackageType_SensorMeasurements_ARRAY_SIZE) {
+ errn = decode_iso2SensorMeasurementsType(stream, &iso2SensorPackageType->SensorMeasurements.array[iso2SensorPackageType->SensorMeasurements.arrayLen++]);
+ } else {
+ errn = EXI_ERROR_OUT_OF_BOUNDS;
+ }
+ grammarID = 2548;
+ break;
+ case 1:
+ done = 1;
+ grammarID = 4;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 2548:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorMeasurements), END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ if (iso2SensorPackageType->SensorMeasurements.arrayLen < iso2SensorPackageType_SensorMeasurements_ARRAY_SIZE) {
+ errn = decode_iso2SensorMeasurementsType(stream, &iso2SensorPackageType->SensorMeasurements.array[iso2SensorPackageType->SensorMeasurements.arrayLen++]);
+ } else {
+ errn = EXI_ERROR_OUT_OF_BOUNDS;
+ }
+ grammarID = 2549;
+ break;
+ case 1:
+ done = 1;
+ grammarID = 4;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 2549:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorMeasurements), END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ if (iso2SensorPackageType->SensorMeasurements.arrayLen < iso2SensorPackageType_SensorMeasurements_ARRAY_SIZE) {
+ errn = decode_iso2SensorMeasurementsType(stream, &iso2SensorPackageType->SensorMeasurements.array[iso2SensorPackageType->SensorMeasurements.arrayLen++]);
+ } else {
+ errn = EXI_ERROR_OUT_OF_BOUNDS;
+ }
+ grammarID = 2550;
+ break;
+ case 1:
+ done = 1;
+ grammarID = 4;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 2550:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorMeasurements), END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ if (iso2SensorPackageType->SensorMeasurements.arrayLen < iso2SensorPackageType_SensorMeasurements_ARRAY_SIZE) {
+ errn = decode_iso2SensorMeasurementsType(stream, &iso2SensorPackageType->SensorMeasurements.array[iso2SensorPackageType->SensorMeasurements.arrayLen++]);
+ } else {
+ errn = EXI_ERROR_OUT_OF_BOUNDS;
+ }
+ grammarID = 2551;
+ break;
+ case 1:
+ done = 1;
+ grammarID = 4;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 2551:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorMeasurements), END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ if (iso2SensorPackageType->SensorMeasurements.arrayLen < iso2SensorPackageType_SensorMeasurements_ARRAY_SIZE) {
+ errn = decode_iso2SensorMeasurementsType(stream, &iso2SensorPackageType->SensorMeasurements.array[iso2SensorPackageType->SensorMeasurements.arrayLen++]);
+ } else {
+ errn = EXI_ERROR_OUT_OF_BOUNDS;
+ }
+ grammarID = 2552;
+ break;
+ case 1:
+ done = 1;
+ grammarID = 4;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 2552:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorMeasurements), END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ if (iso2SensorPackageType->SensorMeasurements.arrayLen < iso2SensorPackageType_SensorMeasurements_ARRAY_SIZE) {
+ errn = decode_iso2SensorMeasurementsType(stream, &iso2SensorPackageType->SensorMeasurements.array[iso2SensorPackageType->SensorMeasurements.arrayLen++]);
+ } else {
+ errn = EXI_ERROR_OUT_OF_BOUNDS;
+ }
+ grammarID = 2553;
+ break;
+ case 1:
+ done = 1;
+ grammarID = 4;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 2553:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorMeasurements), END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ if (iso2SensorPackageType->SensorMeasurements.arrayLen < iso2SensorPackageType_SensorMeasurements_ARRAY_SIZE) {
+ errn = decode_iso2SensorMeasurementsType(stream, &iso2SensorPackageType->SensorMeasurements.array[iso2SensorPackageType->SensorMeasurements.arrayLen++]);
+ } else {
+ errn = EXI_ERROR_OUT_OF_BOUNDS;
+ }
+ grammarID = 2554;
+ break;
+ case 1:
+ done = 1;
+ grammarID = 4;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 2554:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorMeasurements), END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ if (iso2SensorPackageType->SensorMeasurements.arrayLen < iso2SensorPackageType_SensorMeasurements_ARRAY_SIZE) {
+ errn = decode_iso2SensorMeasurementsType(stream, &iso2SensorPackageType->SensorMeasurements.array[iso2SensorPackageType->SensorMeasurements.arrayLen++]);
+ } else {
+ errn = EXI_ERROR_OUT_OF_BOUNDS;
+ }
+ grammarID = 3;
+ break;
+ case 1:
+ done = 1;
+ grammarID = 4;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 3:
+ /* Element[END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ done = 1;
+ grammarID = 4;
+ 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='http://www.w3.org/2000/09/xmldsig#,PGPDataType', base type name='anyType', content type='ELEMENT', isAbstract='false', hasTypeId='false', final='0', block='0', particle='(("http://www.w3.org/2000/09/xmldsig#":PGPKeyID,"http://www.w3.org/2000/09/xmldsig#":PGPKeyPacket{0-1},(WC[##other:"http://www.w3.org/2000/09/xmldsig#"]){0-UNBOUNDED})|("http://www.w3.org/2000/09/xmldsig#":PGPKeyPacket,(WC[##other:"http://www.w3.org/2000/09/xmldsig#"]){0-UNBOUNDED}))', derivedBy='RESTRICTION'. */
+static int decode_iso2PGPDataType(bitstream_t* stream, struct iso2PGPDataType* iso2PGPDataType) {
+ int grammarID = 2555;
+ int done = 0;
+
+ init_iso2PGPDataType(iso2PGPDataType);
+
+ while(!done) {
+ switch(grammarID) {
+ case 2555:
+ /* FirstStartTag[START_ELEMENT({http://www.w3.org/2000/09/xmldsig#}PGPKeyID), START_ELEMENT({http://www.w3.org/2000/09/xmldsig#}PGPKeyPacket)] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ /* First(xsi:type)StartTag[CHARACTERS[BINARY_BASE64]] */
+ errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
+ if(errn == 0) {
+ if(eventCode == 0) {
+ errn = decodeUnsignedInteger16(stream, &iso2PGPDataType->PGPKeyID.bytesLen);
+ if (errn == 0) {
+ errn = (iso2PGPDataType->PGPKeyID.bytesLen) <= iso2PGPDataType_PGPKeyID_BYTES_SIZE ? 0 : EXI_ERROR_OUT_OF_BYTE_BUFFER;
+ }
+ if (errn == 0) {
+ errn = decodeBytes(stream, iso2PGPDataType->PGPKeyID.bytesLen, iso2PGPDataType->PGPKeyID.bytes);
+ }
+ iso2PGPDataType->PGPKeyID_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({http://www.w3.org/2000/09/xmldsig#}PGPKeyID) ? */
+ errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
+ if(eventCode == 0) {
+ grammarID = 2556;
+ } else {
+ errn = EXI_DEVIANT_SUPPORT_NOT_DEPLOYED; /* or also typecast and nillable */
+ }
+ }
+ break;
+ case 1:
+ /* First(xsi:type)StartTag[CHARACTERS[BINARY_BASE64]] */
+ errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
+ if(errn == 0) {
+ if(eventCode == 0) {
+ errn = decodeUnsignedInteger16(stream, &iso2PGPDataType->PGPKeyPacket.bytesLen);
+ if (errn == 0) {
+ errn = (iso2PGPDataType->PGPKeyPacket.bytesLen) <= iso2PGPDataType_PGPKeyPacket_BYTES_SIZE ? 0 : EXI_ERROR_OUT_OF_BYTE_BUFFER;
+ }
+ if (errn == 0) {
+ errn = decodeBytes(stream, iso2PGPDataType->PGPKeyPacket.bytesLen, iso2PGPDataType->PGPKeyPacket.bytes);
+ }
+ iso2PGPDataType->PGPKeyPacket_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({http://www.w3.org/2000/09/xmldsig#}PGPKeyPacket) ? */
+ errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
+ if(eventCode == 0) {
+ grammarID = 2557;
+ } else {
+ errn = EXI_DEVIANT_SUPPORT_NOT_DEPLOYED; /* or also typecast and nillable */
+ }
+ }
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 2556:
+ /* Element[START_ELEMENT({http://www.w3.org/2000/09/xmldsig#}PGPKeyPacket), START_ELEMENT_GENERIC, END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ /* First(xsi:type)StartTag[CHARACTERS[BINARY_BASE64]] */
+ errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
+ if(errn == 0) {
+ if(eventCode == 0) {
+ errn = decodeUnsignedInteger16(stream, &iso2PGPDataType->PGPKeyPacket.bytesLen);
+ if (errn == 0) {
+ errn = (iso2PGPDataType->PGPKeyPacket.bytesLen) <= iso2PGPDataType_PGPKeyPacket_BYTES_SIZE ? 0 : EXI_ERROR_OUT_OF_BYTE_BUFFER;
+ }
+ if (errn == 0) {
+ errn = decodeBytes(stream, iso2PGPDataType->PGPKeyPacket.bytesLen, iso2PGPDataType->PGPKeyPacket.bytes);
+ }
+ iso2PGPDataType->PGPKeyPacket_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({http://www.w3.org/2000/09/xmldsig#}PGPKeyPacket) ? */
+ errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
+ if(eventCode == 0) {
+ grammarID = 2557;
+ } else {
+ errn = EXI_DEVIANT_SUPPORT_NOT_DEPLOYED; /* or also typecast and nillable */
+ }
+ }
+ break;
+ case 1:
+ errn = EXI_UNSUPPORTED_EVENT_CODE_CHARACTERISTICS;
+ /* TODO unsupported event : START_ELEMENT_GENERIC */
+ grammarID = 2557;
+ break;
+ case 2:
+ done = 1;
+ grammarID = 4;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 2557:
+ /* Element[START_ELEMENT_GENERIC, END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ errn = EXI_UNSUPPORTED_EVENT_CODE_CHARACTERISTICS;
+ /* TODO unsupported event : START_ELEMENT_GENERIC */
+ grammarID = 2557;
+ break;
+ case 1:
+ done = 1;
+ grammarID = 4;
+ 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:2016:MsgBody,ServiceDiscoveryResType', base type name='V2GResponseType', content type='ELEMENT', isAbstract='false', hasTypeId='false', final='0', block='0', particle='(("urn:iso:15118:2:2016:MsgBody":ResponseCode,"urn:iso:15118:2:2016:MsgBody":EVSEStatus{0-1}),("urn:iso:15118:2:2016:MsgBody":PaymentOptionList,"urn:iso:15118:2:2016:MsgBody":EnergyTransferServiceList,"urn:iso:15118:2:2016:MsgBody":VASList{0-1}))', derivedBy='EXTENSION'. */
+static int decode_iso2ServiceDiscoveryResType(bitstream_t* stream, struct iso2ServiceDiscoveryResType* iso2ServiceDiscoveryResType) {
+ int grammarID = 2558;
+ int done = 0;
+
+ init_iso2ServiceDiscoveryResType(iso2ServiceDiscoveryResType);
+
+ while(!done) {
+ switch(grammarID) {
+ case 2558:
+ /* FirstStartTag[START_ELEMENT({urn:iso:15118:2:2016:MsgBody}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, 5, &uint32);
+ iso2ServiceDiscoveryResType->ResponseCode = (iso2responseCodeType) 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({urn:iso:15118:2:2016:MsgBody}ResponseCode) ? */
+ errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
+ if(eventCode == 0) {
+ grammarID = 2559;
+ } else {
+ errn = EXI_DEVIANT_SUPPORT_NOT_DEPLOYED; /* or also typecast and nillable */
+ }
+ }
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 2559:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgBody}EVSEStatus), START_ELEMENT({urn:iso:15118:2:2016:MsgBody}PaymentOptionList)] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ errn = decode_iso2EVSEStatusType(stream, &iso2ServiceDiscoveryResType->EVSEStatus);
+ iso2ServiceDiscoveryResType->EVSEStatus_isUsed = 1u;
+ grammarID = 2560;
+ break;
+ case 1:
+ errn = decode_iso2PaymentOptionListType(stream, &iso2ServiceDiscoveryResType->PaymentOptionList);
+ grammarID = 2561;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 2560:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgBody}PaymentOptionList)] */
+ errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ errn = decode_iso2PaymentOptionListType(stream, &iso2ServiceDiscoveryResType->PaymentOptionList);
+ grammarID = 2561;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 2561:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgBody}EnergyTransferServiceList)] */
+ errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ errn = decode_iso2ServiceListType(stream, &iso2ServiceDiscoveryResType->EnergyTransferServiceList);
+ grammarID = 2562;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 2562:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgBody}VASList), END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ errn = decode_iso2ServiceListType(stream, &iso2ServiceDiscoveryResType->VASList);
+ iso2ServiceDiscoveryResType->VASList_isUsed = 1u;
+ grammarID = 3;
+ break;
+ case 1:
+ done = 1;
+ grammarID = 4;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 3:
+ /* Element[END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ done = 1;
+ grammarID = 4;
+ 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:2016:MsgDataTypes,ServiceIDListType', base type name='anyType', content type='ELEMENT', isAbstract='false', hasTypeId='false', final='0', block='0', particle='("urn:iso:15118:2:2016:MsgDataTypes":ServiceID{1-10})', derivedBy='RESTRICTION'. */
+static int decode_iso2ServiceIDListType(bitstream_t* stream, struct iso2ServiceIDListType* iso2ServiceIDListType) {
+ int grammarID = 2563;
+ int done = 0;
+
+ init_iso2ServiceIDListType(iso2ServiceIDListType);
+
+ while(!done) {
+ switch(grammarID) {
+ case 2563:
+ /* FirstStartTag[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}ServiceID)] */
+ errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ if (iso2ServiceIDListType->ServiceID.arrayLen < iso2ServiceIDListType_ServiceID_ARRAY_SIZE) {
+ /* FirstStartTag[CHARACTERS[UNSIGNED_INTEGER]] */
+ errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
+ if(errn == 0) {
+ if(eventCode == 0) {
+ errn = decodeUnsignedInteger16(stream, &iso2ServiceIDListType->ServiceID.array[iso2ServiceIDListType->ServiceID.arrayLen]);
+ iso2ServiceIDListType->ServiceID.arrayLen++;
+ } else {
+ /* Second level event (e.g., xsi:type, xsi:nil, ...) */
+ errn = EXI_UNSUPPORTED_EVENT_CODE_CHARACTERISTICS;
+ }
+ }
+ } else {
+ errn = EXI_ERROR_OUT_OF_BOUNDS;
+ }
+ if(errn == 0) {
+ /* valid EE for simple element START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}ServiceID) ? */
+ errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
+ if(eventCode == 0) {
+ grammarID = 2564;
+ } else {
+ errn = EXI_DEVIANT_SUPPORT_NOT_DEPLOYED; /* or also typecast and nillable */
+ }
+ }
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 2564:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}ServiceID), END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ if (iso2ServiceIDListType->ServiceID.arrayLen < iso2ServiceIDListType_ServiceID_ARRAY_SIZE) {
+ /* FirstStartTag[CHARACTERS[UNSIGNED_INTEGER]] */
+ errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
+ if(errn == 0) {
+ if(eventCode == 0) {
+ errn = decodeUnsignedInteger16(stream, &iso2ServiceIDListType->ServiceID.array[iso2ServiceIDListType->ServiceID.arrayLen]);
+ iso2ServiceIDListType->ServiceID.arrayLen++;
+ } else {
+ /* Second level event (e.g., xsi:type, xsi:nil, ...) */
+ errn = EXI_UNSUPPORTED_EVENT_CODE_CHARACTERISTICS;
+ }
+ }
+ } else {
+ errn = EXI_ERROR_OUT_OF_BOUNDS;
+ }
+ if(errn == 0) {
+ /* valid EE for simple element START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}ServiceID) ? */
+ errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
+ if(eventCode == 0) {
+ grammarID = 2565;
+ } else {
+ errn = EXI_DEVIANT_SUPPORT_NOT_DEPLOYED; /* or also typecast and nillable */
+ }
+ }
+ break;
+ case 1:
+ done = 1;
+ grammarID = 4;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 2565:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}ServiceID), END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ if (iso2ServiceIDListType->ServiceID.arrayLen < iso2ServiceIDListType_ServiceID_ARRAY_SIZE) {
+ /* FirstStartTag[CHARACTERS[UNSIGNED_INTEGER]] */
+ errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
+ if(errn == 0) {
+ if(eventCode == 0) {
+ errn = decodeUnsignedInteger16(stream, &iso2ServiceIDListType->ServiceID.array[iso2ServiceIDListType->ServiceID.arrayLen]);
+ iso2ServiceIDListType->ServiceID.arrayLen++;
+ } else {
+ /* Second level event (e.g., xsi:type, xsi:nil, ...) */
+ errn = EXI_UNSUPPORTED_EVENT_CODE_CHARACTERISTICS;
+ }
+ }
+ } else {
+ errn = EXI_ERROR_OUT_OF_BOUNDS;
+ }
+ if(errn == 0) {
+ /* valid EE for simple element START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}ServiceID) ? */
+ errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
+ if(eventCode == 0) {
+ grammarID = 2566;
+ } else {
+ errn = EXI_DEVIANT_SUPPORT_NOT_DEPLOYED; /* or also typecast and nillable */
+ }
+ }
+ break;
+ case 1:
+ done = 1;
+ grammarID = 4;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 2566:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}ServiceID), END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ if (iso2ServiceIDListType->ServiceID.arrayLen < iso2ServiceIDListType_ServiceID_ARRAY_SIZE) {
+ /* FirstStartTag[CHARACTERS[UNSIGNED_INTEGER]] */
+ errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
+ if(errn == 0) {
+ if(eventCode == 0) {
+ errn = decodeUnsignedInteger16(stream, &iso2ServiceIDListType->ServiceID.array[iso2ServiceIDListType->ServiceID.arrayLen]);
+ iso2ServiceIDListType->ServiceID.arrayLen++;
+ } else {
+ /* Second level event (e.g., xsi:type, xsi:nil, ...) */
+ errn = EXI_UNSUPPORTED_EVENT_CODE_CHARACTERISTICS;
+ }
+ }
+ } else {
+ errn = EXI_ERROR_OUT_OF_BOUNDS;
+ }
+ if(errn == 0) {
+ /* valid EE for simple element START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}ServiceID) ? */
+ errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
+ if(eventCode == 0) {
+ grammarID = 2567;
+ } else {
+ errn = EXI_DEVIANT_SUPPORT_NOT_DEPLOYED; /* or also typecast and nillable */
+ }
+ }
+ break;
+ case 1:
+ done = 1;
+ grammarID = 4;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 2567:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}ServiceID), END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ if (iso2ServiceIDListType->ServiceID.arrayLen < iso2ServiceIDListType_ServiceID_ARRAY_SIZE) {
+ /* FirstStartTag[CHARACTERS[UNSIGNED_INTEGER]] */
+ errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
+ if(errn == 0) {
+ if(eventCode == 0) {
+ errn = decodeUnsignedInteger16(stream, &iso2ServiceIDListType->ServiceID.array[iso2ServiceIDListType->ServiceID.arrayLen]);
+ iso2ServiceIDListType->ServiceID.arrayLen++;
+ } else {
+ /* Second level event (e.g., xsi:type, xsi:nil, ...) */
+ errn = EXI_UNSUPPORTED_EVENT_CODE_CHARACTERISTICS;
+ }
+ }
+ } else {
+ errn = EXI_ERROR_OUT_OF_BOUNDS;
+ }
+ if(errn == 0) {
+ /* valid EE for simple element START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}ServiceID) ? */
+ errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
+ if(eventCode == 0) {
+ grammarID = 2568;
+ } else {
+ errn = EXI_DEVIANT_SUPPORT_NOT_DEPLOYED; /* or also typecast and nillable */
+ }
+ }
+ break;
+ case 1:
+ done = 1;
+ grammarID = 4;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 2568:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}ServiceID), END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ if (iso2ServiceIDListType->ServiceID.arrayLen < iso2ServiceIDListType_ServiceID_ARRAY_SIZE) {
+ /* FirstStartTag[CHARACTERS[UNSIGNED_INTEGER]] */
+ errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
+ if(errn == 0) {
+ if(eventCode == 0) {
+ errn = decodeUnsignedInteger16(stream, &iso2ServiceIDListType->ServiceID.array[iso2ServiceIDListType->ServiceID.arrayLen]);
+ iso2ServiceIDListType->ServiceID.arrayLen++;
+ } else {
+ /* Second level event (e.g., xsi:type, xsi:nil, ...) */
+ errn = EXI_UNSUPPORTED_EVENT_CODE_CHARACTERISTICS;
+ }
+ }
+ } else {
+ errn = EXI_ERROR_OUT_OF_BOUNDS;
+ }
+ if(errn == 0) {
+ /* valid EE for simple element START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}ServiceID) ? */
+ errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
+ if(eventCode == 0) {
+ grammarID = 2569;
+ } else {
+ errn = EXI_DEVIANT_SUPPORT_NOT_DEPLOYED; /* or also typecast and nillable */
+ }
+ }
+ break;
+ case 1:
+ done = 1;
+ grammarID = 4;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 2569:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}ServiceID), END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ if (iso2ServiceIDListType->ServiceID.arrayLen < iso2ServiceIDListType_ServiceID_ARRAY_SIZE) {
+ /* FirstStartTag[CHARACTERS[UNSIGNED_INTEGER]] */
+ errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
+ if(errn == 0) {
+ if(eventCode == 0) {
+ errn = decodeUnsignedInteger16(stream, &iso2ServiceIDListType->ServiceID.array[iso2ServiceIDListType->ServiceID.arrayLen]);
+ iso2ServiceIDListType->ServiceID.arrayLen++;
+ } else {
+ /* Second level event (e.g., xsi:type, xsi:nil, ...) */
+ errn = EXI_UNSUPPORTED_EVENT_CODE_CHARACTERISTICS;
+ }
+ }
+ } else {
+ errn = EXI_ERROR_OUT_OF_BOUNDS;
+ }
+ if(errn == 0) {
+ /* valid EE for simple element START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}ServiceID) ? */
+ errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
+ if(eventCode == 0) {
+ grammarID = 2570;
+ } else {
+ errn = EXI_DEVIANT_SUPPORT_NOT_DEPLOYED; /* or also typecast and nillable */
+ }
+ }
+ break;
+ case 1:
+ done = 1;
+ grammarID = 4;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 2570:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}ServiceID), END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ if (iso2ServiceIDListType->ServiceID.arrayLen < iso2ServiceIDListType_ServiceID_ARRAY_SIZE) {
+ /* FirstStartTag[CHARACTERS[UNSIGNED_INTEGER]] */
+ errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
+ if(errn == 0) {
+ if(eventCode == 0) {
+ errn = decodeUnsignedInteger16(stream, &iso2ServiceIDListType->ServiceID.array[iso2ServiceIDListType->ServiceID.arrayLen]);
+ iso2ServiceIDListType->ServiceID.arrayLen++;
+ } else {
+ /* Second level event (e.g., xsi:type, xsi:nil, ...) */
+ errn = EXI_UNSUPPORTED_EVENT_CODE_CHARACTERISTICS;
+ }
+ }
+ } else {
+ errn = EXI_ERROR_OUT_OF_BOUNDS;
+ }
+ if(errn == 0) {
+ /* valid EE for simple element START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}ServiceID) ? */
+ errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
+ if(eventCode == 0) {
+ grammarID = 2571;
+ } else {
+ errn = EXI_DEVIANT_SUPPORT_NOT_DEPLOYED; /* or also typecast and nillable */
+ }
+ }
+ break;
+ case 1:
+ done = 1;
+ grammarID = 4;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 2571:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}ServiceID), END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ if (iso2ServiceIDListType->ServiceID.arrayLen < iso2ServiceIDListType_ServiceID_ARRAY_SIZE) {
+ /* FirstStartTag[CHARACTERS[UNSIGNED_INTEGER]] */
+ errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
+ if(errn == 0) {
+ if(eventCode == 0) {
+ errn = decodeUnsignedInteger16(stream, &iso2ServiceIDListType->ServiceID.array[iso2ServiceIDListType->ServiceID.arrayLen]);
+ iso2ServiceIDListType->ServiceID.arrayLen++;
+ } else {
+ /* Second level event (e.g., xsi:type, xsi:nil, ...) */
+ errn = EXI_UNSUPPORTED_EVENT_CODE_CHARACTERISTICS;
+ }
+ }
+ } else {
+ errn = EXI_ERROR_OUT_OF_BOUNDS;
+ }
+ if(errn == 0) {
+ /* valid EE for simple element START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}ServiceID) ? */
+ errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
+ if(eventCode == 0) {
+ grammarID = 2572;
+ } else {
+ errn = EXI_DEVIANT_SUPPORT_NOT_DEPLOYED; /* or also typecast and nillable */
+ }
+ }
+ break;
+ case 1:
+ done = 1;
+ grammarID = 4;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 2572:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}ServiceID), END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ if (iso2ServiceIDListType->ServiceID.arrayLen < iso2ServiceIDListType_ServiceID_ARRAY_SIZE) {
+ /* FirstStartTag[CHARACTERS[UNSIGNED_INTEGER]] */
+ errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
+ if(errn == 0) {
+ if(eventCode == 0) {
+ errn = decodeUnsignedInteger16(stream, &iso2ServiceIDListType->ServiceID.array[iso2ServiceIDListType->ServiceID.arrayLen]);
+ iso2ServiceIDListType->ServiceID.arrayLen++;
+ } else {
+ /* Second level event (e.g., xsi:type, xsi:nil, ...) */
+ errn = EXI_UNSUPPORTED_EVENT_CODE_CHARACTERISTICS;
+ }
+ }
+ } else {
+ errn = EXI_ERROR_OUT_OF_BOUNDS;
+ }
+ if(errn == 0) {
+ /* valid EE for simple element START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}ServiceID) ? */
+ errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
+ if(eventCode == 0) {
+ grammarID = 3;
+ } else {
+ errn = EXI_DEVIANT_SUPPORT_NOT_DEPLOYED; /* or also typecast and nillable */
+ }
+ }
+ break;
+ case 1:
+ done = 1;
+ grammarID = 4;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 3:
+ /* Element[END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ done = 1;
+ grammarID = 4;
+ 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:2016:MsgDataTypes,EVFinePositioningSetupParametersType', base type name='anyType', content type='EMPTY', isAbstract='true', hasTypeId='false', final='0', block='0', derivedBy='RESTRICTION'. */
+static int decode_iso2EVFinePositioningSetupParametersType(bitstream_t* stream, struct iso2EVFinePositioningSetupParametersType* iso2EVFinePositioningSetupParametersType) {
+ int grammarID = 674;
+ int done = 0;
+
+ init_iso2EVFinePositioningSetupParametersType(iso2EVFinePositioningSetupParametersType);
+
+ while(!done) {
+ switch(grammarID) {
+ case 674:
+ /* FirstStartTag[END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ done = 1;
+ grammarID = 4;
+ 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:2016:MsgBody,ChargeParameterDiscoveryResType', base type name='V2GResponseType', content type='ELEMENT', isAbstract='false', hasTypeId='false', final='0', block='0', particle='(("urn:iso:15118:2:2016:MsgBody":ResponseCode,"urn:iso:15118:2:2016:MsgBody":EVSEStatus{0-1}),("urn:iso:15118:2:2016:MsgBody":EVSEProcessing,"urn:iso:15118:2:2016:MsgBody":SAScheduleList{0-1},"urn:iso:15118:2:2016:MsgDataTypes":EVSEEnergyTransferParameter))', derivedBy='EXTENSION'. */
+static int decode_iso2ChargeParameterDiscoveryResType(bitstream_t* stream, struct iso2ChargeParameterDiscoveryResType* iso2ChargeParameterDiscoveryResType) {
+ int grammarID = 2573;
+ int done = 0;
+
+ init_iso2ChargeParameterDiscoveryResType(iso2ChargeParameterDiscoveryResType);
+
+ while(!done) {
+ switch(grammarID) {
+ case 2573:
+ /* FirstStartTag[START_ELEMENT({urn:iso:15118:2:2016:MsgBody}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, 5, &uint32);
+ iso2ChargeParameterDiscoveryResType->ResponseCode = (iso2responseCodeType) 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({urn:iso:15118:2:2016:MsgBody}ResponseCode) ? */
+ errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
+ if(eventCode == 0) {
+ grammarID = 2574;
+ } else {
+ errn = EXI_DEVIANT_SUPPORT_NOT_DEPLOYED; /* or also typecast and nillable */
+ }
+ }
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 2574:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgBody}EVSEStatus), START_ELEMENT({urn:iso:15118:2:2016:MsgBody}EVSEProcessing)] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ errn = decode_iso2EVSEStatusType(stream, &iso2ChargeParameterDiscoveryResType->EVSEStatus);
+ iso2ChargeParameterDiscoveryResType->EVSEStatus_isUsed = 1u;
+ grammarID = 2575;
+ break;
+ case 1:
+ /* FirstStartTag[CHARACTERS[ENUMERATION]] */
+ errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
+ if(errn == 0) {
+ if(eventCode == 0) {
+ errn = decodeNBitUnsignedInteger(stream, 2, &uint32);
+ iso2ChargeParameterDiscoveryResType->EVSEProcessing = (iso2EVSEProcessingType) 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({urn:iso:15118:2:2016:MsgBody}EVSEProcessing) ? */
+ errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
+ if(eventCode == 0) {
+ grammarID = 2576;
+ } else {
+ errn = EXI_DEVIANT_SUPPORT_NOT_DEPLOYED; /* or also typecast and nillable */
+ }
+ }
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 2575:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgBody}EVSEProcessing)] */
+ 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);
+ iso2ChargeParameterDiscoveryResType->EVSEProcessing = (iso2EVSEProcessingType) 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({urn:iso:15118:2:2016:MsgBody}EVSEProcessing) ? */
+ errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
+ if(eventCode == 0) {
+ grammarID = 2576;
+ } else {
+ errn = EXI_DEVIANT_SUPPORT_NOT_DEPLOYED; /* or also typecast and nillable */
+ }
+ }
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 2576:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgBody}SAScheduleList), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}AC_EVSEBidirectionalParameter), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}AC_EVSEChargeParameter), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}DC_EVSEBidirectionalParameter), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}DC_EVSEChargeParameter), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}EVSEEnergyTransferParameter), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}WPT_EVSEChargeParameter)] */
+ errn = decodeNBitUnsignedInteger(stream, 3, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ errn = decode_iso2SAScheduleListType(stream, &iso2ChargeParameterDiscoveryResType->SAScheduleList);
+ iso2ChargeParameterDiscoveryResType->SAScheduleList_isUsed = 1u;
+ grammarID = 2577;
+ break;
+ case 1:
+ errn = decode_iso2AC_EVSEBidirectionalParameterType(stream, &iso2ChargeParameterDiscoveryResType->AC_EVSEBidirectionalParameter);
+ iso2ChargeParameterDiscoveryResType->AC_EVSEBidirectionalParameter_isUsed = 1u;
+ grammarID = 3;
+ break;
+ case 2:
+ errn = decode_iso2AC_EVSEChargeParameterType(stream, &iso2ChargeParameterDiscoveryResType->AC_EVSEChargeParameter);
+ iso2ChargeParameterDiscoveryResType->AC_EVSEChargeParameter_isUsed = 1u;
+ grammarID = 3;
+ break;
+ case 3:
+ errn = decode_iso2DC_EVSEBidirectionalParameterType(stream, &iso2ChargeParameterDiscoveryResType->DC_EVSEBidirectionalParameter);
+ iso2ChargeParameterDiscoveryResType->DC_EVSEBidirectionalParameter_isUsed = 1u;
+ grammarID = 3;
+ break;
+ case 4:
+ errn = decode_iso2DC_EVSEChargeParameterType(stream, &iso2ChargeParameterDiscoveryResType->DC_EVSEChargeParameter);
+ iso2ChargeParameterDiscoveryResType->DC_EVSEChargeParameter_isUsed = 1u;
+ grammarID = 3;
+ break;
+ case 5:
+ errn = decode_iso2EVSEEnergyTransferParameterType(stream, &iso2ChargeParameterDiscoveryResType->EVSEEnergyTransferParameter);
+ iso2ChargeParameterDiscoveryResType->EVSEEnergyTransferParameter_isUsed = 1u;
+ grammarID = 3;
+ break;
+ case 6:
+ errn = decode_iso2WPT_EVSEChargeParameterType(stream, &iso2ChargeParameterDiscoveryResType->WPT_EVSEChargeParameter);
+ iso2ChargeParameterDiscoveryResType->WPT_EVSEChargeParameter_isUsed = 1u;
+ grammarID = 3;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 2577:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}AC_EVSEBidirectionalParameter), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}AC_EVSEChargeParameter), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}DC_EVSEBidirectionalParameter), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}DC_EVSEChargeParameter), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}EVSEEnergyTransferParameter), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}WPT_EVSEChargeParameter)] */
+ errn = decodeNBitUnsignedInteger(stream, 3, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ errn = decode_iso2AC_EVSEBidirectionalParameterType(stream, &iso2ChargeParameterDiscoveryResType->AC_EVSEBidirectionalParameter);
+ iso2ChargeParameterDiscoveryResType->AC_EVSEBidirectionalParameter_isUsed = 1u;
+ grammarID = 3;
+ break;
+ case 1:
+ errn = decode_iso2AC_EVSEChargeParameterType(stream, &iso2ChargeParameterDiscoveryResType->AC_EVSEChargeParameter);
+ iso2ChargeParameterDiscoveryResType->AC_EVSEChargeParameter_isUsed = 1u;
+ grammarID = 3;
+ break;
+ case 2:
+ errn = decode_iso2DC_EVSEBidirectionalParameterType(stream, &iso2ChargeParameterDiscoveryResType->DC_EVSEBidirectionalParameter);
+ iso2ChargeParameterDiscoveryResType->DC_EVSEBidirectionalParameter_isUsed = 1u;
+ grammarID = 3;
+ break;
+ case 3:
+ errn = decode_iso2DC_EVSEChargeParameterType(stream, &iso2ChargeParameterDiscoveryResType->DC_EVSEChargeParameter);
+ iso2ChargeParameterDiscoveryResType->DC_EVSEChargeParameter_isUsed = 1u;
+ grammarID = 3;
+ break;
+ case 4:
+ errn = decode_iso2EVSEEnergyTransferParameterType(stream, &iso2ChargeParameterDiscoveryResType->EVSEEnergyTransferParameter);
+ iso2ChargeParameterDiscoveryResType->EVSEEnergyTransferParameter_isUsed = 1u;
+ grammarID = 3;
+ break;
+ case 5:
+ errn = decode_iso2WPT_EVSEChargeParameterType(stream, &iso2ChargeParameterDiscoveryResType->WPT_EVSEChargeParameter);
+ iso2ChargeParameterDiscoveryResType->WPT_EVSEChargeParameter_isUsed = 1u;
+ grammarID = 3;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 3:
+ /* Element[END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ done = 1;
+ grammarID = 4;
+ 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:2016:MsgBody,PowerDemandResType', base type name='V2GResponseType', content type='ELEMENT', isAbstract='false', hasTypeId='false', final='0', block='0', particle='(("urn:iso:15118:2:2016:MsgBody":ResponseCode,"urn:iso:15118:2:2016:MsgBody":EVSEStatus{0-1}),("urn:iso:15118:2:2016:MsgBody":EVSEOutputPower,"urn:iso:15118:2:2016:MsgBody":EVSEID,"urn:iso:15118:2:2016:MsgBody":SAScheduleTupleID{0-1},"urn:iso:15118:2:2016:MsgBody":MeterInfo{0-1},"urn:iso:15118:2:2016:MsgBody":ReceiptRequired{0-1},"urn:iso:15118:2:2016:MsgBody":PowerDemandParameters{0-1}))', derivedBy='EXTENSION'. */
+static int decode_iso2PowerDemandResType(bitstream_t* stream, struct iso2PowerDemandResType* iso2PowerDemandResType) {
+ int grammarID = 2578;
+ int done = 0;
+
+ init_iso2PowerDemandResType(iso2PowerDemandResType);
+
+ while(!done) {
+ switch(grammarID) {
+ case 2578:
+ /* FirstStartTag[START_ELEMENT({urn:iso:15118:2:2016:MsgBody}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, 5, &uint32);
+ iso2PowerDemandResType->ResponseCode = (iso2responseCodeType) 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({urn:iso:15118:2:2016:MsgBody}ResponseCode) ? */
+ errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
+ if(eventCode == 0) {
+ grammarID = 2579;
+ } else {
+ errn = EXI_DEVIANT_SUPPORT_NOT_DEPLOYED; /* or also typecast and nillable */
+ }
+ }
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 2579:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgBody}EVSEStatus), START_ELEMENT({urn:iso:15118:2:2016:MsgBody}EVSEOutputPower)] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ errn = decode_iso2EVSEStatusType(stream, &iso2PowerDemandResType->EVSEStatus);
+ iso2PowerDemandResType->EVSEStatus_isUsed = 1u;
+ grammarID = 2580;
+ break;
+ case 1:
+ errn = decode_iso2PhysicalValueType(stream, &iso2PowerDemandResType->EVSEOutputPower);
+ grammarID = 2581;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 2580:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgBody}EVSEOutputPower)] */
+ errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ errn = decode_iso2PhysicalValueType(stream, &iso2PowerDemandResType->EVSEOutputPower);
+ grammarID = 2581;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 2581:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgBody}EVSEID)] */
+ errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ /* FirstStartTag[CHARACTERS[STRING]] */
+ errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
+ if(errn == 0) {
+ if(eventCode == 0) {
+ errn = decodeUnsignedInteger16(stream, &iso2PowerDemandResType->EVSEID.charactersLen);
+ if (errn == 0) {
+ if (iso2PowerDemandResType->EVSEID.charactersLen >= 2) {
+ iso2PowerDemandResType->EVSEID.charactersLen = (uint16_t)(iso2PowerDemandResType->EVSEID.charactersLen - 2); /* string table miss */
+ errn = decodeCharacters(stream, iso2PowerDemandResType->EVSEID.charactersLen, iso2PowerDemandResType->EVSEID.characters, iso2PowerDemandResType_EVSEID_CHARACTERS_SIZE);
+ } else {
+ /* string table hit */
+ errn = EXI_ERROR_STRINGVALUES_NOT_SUPPORTED;
+ }
+ }
+ } 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({urn:iso:15118:2:2016:MsgBody}EVSEID) ? */
+ errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
+ if(eventCode == 0) {
+ grammarID = 2582;
+ } else {
+ errn = EXI_DEVIANT_SUPPORT_NOT_DEPLOYED; /* or also typecast and nillable */
+ }
+ }
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 2582:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgBody}SAScheduleTupleID), START_ELEMENT({urn:iso:15118:2:2016:MsgBody}MeterInfo), START_ELEMENT({urn:iso:15118:2:2016:MsgBody}ReceiptRequired), START_ELEMENT({urn:iso:15118:2:2016:MsgBody}PowerDemandParameters), END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 3, &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));
+ iso2PowerDemandResType->SAScheduleTupleID = (uint8_t)(uint32 + 1);
+ iso2PowerDemandResType->SAScheduleTupleID_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({urn:iso:15118:2:2016:MsgBody}SAScheduleTupleID) ? */
+ errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
+ if(eventCode == 0) {
+ grammarID = 2583;
+ } else {
+ errn = EXI_DEVIANT_SUPPORT_NOT_DEPLOYED; /* or also typecast and nillable */
+ }
+ }
+ break;
+ case 1:
+ errn = decode_iso2MeterInfoType(stream, &iso2PowerDemandResType->MeterInfo);
+ iso2PowerDemandResType->MeterInfo_isUsed = 1u;
+ grammarID = 2584;
+ break;
+ case 2:
+ /* FirstStartTag[CHARACTERS[BOOLEAN]] */
+ errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
+ if(errn == 0) {
+ if(eventCode == 0) {
+ errn = decodeBoolean(stream, &iso2PowerDemandResType->ReceiptRequired);
+ iso2PowerDemandResType->ReceiptRequired_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({urn:iso:15118:2:2016:MsgBody}ReceiptRequired) ? */
+ errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
+ if(eventCode == 0) {
+ grammarID = 1873;
+ } else {
+ errn = EXI_DEVIANT_SUPPORT_NOT_DEPLOYED; /* or also typecast and nillable */
+ }
+ }
+ break;
+ case 3:
+ errn = decode_iso2ParameterSetType(stream, &iso2PowerDemandResType->PowerDemandParameters);
+ iso2PowerDemandResType->PowerDemandParameters_isUsed = 1u;
+ grammarID = 3;
+ break;
+ case 4:
+ done = 1;
+ grammarID = 4;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 2583:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgBody}MeterInfo), START_ELEMENT({urn:iso:15118:2:2016:MsgBody}ReceiptRequired), START_ELEMENT({urn:iso:15118:2:2016:MsgBody}PowerDemandParameters), END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 3, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ errn = decode_iso2MeterInfoType(stream, &iso2PowerDemandResType->MeterInfo);
+ iso2PowerDemandResType->MeterInfo_isUsed = 1u;
+ grammarID = 2584;
+ break;
+ case 1:
+ /* FirstStartTag[CHARACTERS[BOOLEAN]] */
+ errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
+ if(errn == 0) {
+ if(eventCode == 0) {
+ errn = decodeBoolean(stream, &iso2PowerDemandResType->ReceiptRequired);
+ iso2PowerDemandResType->ReceiptRequired_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({urn:iso:15118:2:2016:MsgBody}ReceiptRequired) ? */
+ errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
+ if(eventCode == 0) {
+ grammarID = 1873;
+ } else {
+ errn = EXI_DEVIANT_SUPPORT_NOT_DEPLOYED; /* or also typecast and nillable */
+ }
+ }
+ break;
+ case 2:
+ errn = decode_iso2ParameterSetType(stream, &iso2PowerDemandResType->PowerDemandParameters);
+ iso2PowerDemandResType->PowerDemandParameters_isUsed = 1u;
+ grammarID = 3;
+ break;
+ case 3:
+ done = 1;
+ grammarID = 4;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 2584:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgBody}ReceiptRequired), START_ELEMENT({urn:iso:15118:2:2016:MsgBody}PowerDemandParameters), END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ /* FirstStartTag[CHARACTERS[BOOLEAN]] */
+ errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
+ if(errn == 0) {
+ if(eventCode == 0) {
+ errn = decodeBoolean(stream, &iso2PowerDemandResType->ReceiptRequired);
+ iso2PowerDemandResType->ReceiptRequired_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({urn:iso:15118:2:2016:MsgBody}ReceiptRequired) ? */
+ errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
+ if(eventCode == 0) {
+ grammarID = 1873;
+ } else {
+ errn = EXI_DEVIANT_SUPPORT_NOT_DEPLOYED; /* or also typecast and nillable */
+ }
+ }
+ break;
+ case 1:
+ errn = decode_iso2ParameterSetType(stream, &iso2PowerDemandResType->PowerDemandParameters);
+ iso2PowerDemandResType->PowerDemandParameters_isUsed = 1u;
+ grammarID = 3;
+ break;
+ case 2:
+ done = 1;
+ grammarID = 4;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 1873:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgBody}PowerDemandParameters), END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ errn = decode_iso2ParameterSetType(stream, &iso2PowerDemandResType->PowerDemandParameters);
+ iso2PowerDemandResType->PowerDemandParameters_isUsed = 1u;
+ grammarID = 3;
+ break;
+ case 1:
+ done = 1;
+ grammarID = 4;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 3:
+ /* Element[END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ done = 1;
+ grammarID = 4;
+ 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:2016:MsgDataTypes,ChargingProfileType', base type name='anyType', content type='ELEMENT', isAbstract='false', hasTypeId='false', final='0', block='0', particle='("urn:iso:15118:2:2016:MsgDataTypes":ProfileEntry{1-UNBOUNDED})', derivedBy='RESTRICTION'. */
+static int decode_iso2ChargingProfileType(bitstream_t* stream, struct iso2ChargingProfileType* iso2ChargingProfileType) {
+ int grammarID = 2585;
+ int done = 0;
+
+ init_iso2ChargingProfileType(iso2ChargingProfileType);
+
+ while(!done) {
+ switch(grammarID) {
+ case 2585:
+ /* FirstStartTag[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}ProfileEntry)] */
+ errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ if (iso2ChargingProfileType->ProfileEntry.arrayLen < iso2ChargingProfileType_ProfileEntry_ARRAY_SIZE) {
+ errn = decode_iso2PMaxScheduleEntryType(stream, &iso2ChargingProfileType->ProfileEntry.array[iso2ChargingProfileType->ProfileEntry.arrayLen++]);
+ } else {
+ errn = EXI_ERROR_OUT_OF_BOUNDS;
+ }
+ grammarID = 2586;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 2586:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}ProfileEntry), END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ if (iso2ChargingProfileType->ProfileEntry.arrayLen < iso2ChargingProfileType_ProfileEntry_ARRAY_SIZE) {
+ errn = decode_iso2PMaxScheduleEntryType(stream, &iso2ChargingProfileType->ProfileEntry.array[iso2ChargingProfileType->ProfileEntry.arrayLen++]);
+ } else {
+ errn = EXI_ERROR_OUT_OF_BOUNDS;
+ }
+ grammarID = 2586;
+ break;
+ case 1:
+ done = 1;
+ grammarID = 4;
+ 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:2016:MsgBody,FinePositioningReqType', base type name='BodyBaseType', content type='ELEMENT', isAbstract='false', hasTypeId='false', final='0', block='0', particle='("urn:iso:15118:2:2016:MsgBody":EVProcessing,"urn:iso:15118:2:2016:MsgDataTypes":EVFinePositioningParameters{0-1})', derivedBy='EXTENSION'. */
+static int decode_iso2FinePositioningReqType(bitstream_t* stream, struct iso2FinePositioningReqType* iso2FinePositioningReqType) {
+ int grammarID = 2587;
+ int done = 0;
+
+ init_iso2FinePositioningReqType(iso2FinePositioningReqType);
+
+ while(!done) {
+ switch(grammarID) {
+ case 2587:
+ /* FirstStartTag[START_ELEMENT({urn:iso:15118:2:2016:MsgBody}EVProcessing)] */
+ 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);
+ iso2FinePositioningReqType->EVProcessing = (iso2EVSEProcessingType) 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({urn:iso:15118:2:2016:MsgBody}EVProcessing) ? */
+ errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
+ if(eventCode == 0) {
+ grammarID = 2588;
+ } else {
+ errn = EXI_DEVIANT_SUPPORT_NOT_DEPLOYED; /* or also typecast and nillable */
+ }
+ }
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 2588:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}EVFinePositioningParameters), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}Generic_EVFinePositioningParameters), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}LFA_EVFinePositioningParameters), END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 3, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ errn = decode_iso2EVFinePositioningParametersType(stream, &iso2FinePositioningReqType->EVFinePositioningParameters);
+ iso2FinePositioningReqType->EVFinePositioningParameters_isUsed = 1u;
+ grammarID = 3;
+ break;
+ case 1:
+ errn = decode_iso2Generic_EVFinePositioningParametersType(stream, &iso2FinePositioningReqType->Generic_EVFinePositioningParameters);
+ iso2FinePositioningReqType->Generic_EVFinePositioningParameters_isUsed = 1u;
+ grammarID = 3;
+ break;
+ case 2:
+ errn = decode_iso2LFA_EVFinePositioningParametersType(stream, &iso2FinePositioningReqType->LFA_EVFinePositioningParameters);
+ iso2FinePositioningReqType->LFA_EVFinePositioningParameters_isUsed = 1u;
+ grammarID = 3;
+ break;
+ case 3:
+ done = 1;
+ grammarID = 4;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 3:
+ /* Element[END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ done = 1;
+ grammarID = 4;
+ 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:2016:MsgDataTypes,SalesTariffType', base type name='anyType', content type='ELEMENT', isAbstract='false', hasTypeId='false', final='0', block='0', particle='("urn:iso:15118:2:2016:MsgDataTypes":SalesTariffID,"urn:iso:15118:2:2016:MsgDataTypes":SalesTariffDescription{0-1},"urn:iso:15118:2:2016:MsgDataTypes":NumEPriceLevels{0-1},"urn:iso:15118:2:2016:MsgDataTypes":SalesTariffEntry{1-UNBOUNDED})', derivedBy='RESTRICTION'. */
+static int decode_iso2SalesTariffType(bitstream_t* stream, struct iso2SalesTariffType* iso2SalesTariffType) {
+ int grammarID = 2589;
+ int done = 0;
+
+ init_iso2SalesTariffType(iso2SalesTariffType);
+
+ while(!done) {
+ switch(grammarID) {
+ case 2589:
+ /* FirstStartTag[ATTRIBUTE[STRING]({urn:iso:15118:2:2016:MsgDataTypes}Id)] */
+ errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ errn = decodeUnsignedInteger16(stream, &iso2SalesTariffType->Id.charactersLen);
+ if (errn == 0) {
+ if (iso2SalesTariffType->Id.charactersLen >= 2) {
+ iso2SalesTariffType->Id.charactersLen = (uint16_t)(iso2SalesTariffType->Id.charactersLen - 2); /* string table miss */
+ errn = decodeCharacters(stream, iso2SalesTariffType->Id.charactersLen, iso2SalesTariffType->Id.characters, iso2SalesTariffType_Id_CHARACTERS_SIZE);
+ } else {
+ /* string table hit */
+ errn = EXI_ERROR_STRINGVALUES_NOT_SUPPORTED;
+ }
+ }
+ grammarID = 2590;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 2590:
+ /* StartTag[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SalesTariffID)] */
+ errn = decodeNBitUnsignedInteger(stream, 1, &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));
+ iso2SalesTariffType->SalesTariffID = (uint8_t)(uint32 + 1);
+ } 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({urn:iso:15118:2:2016:MsgDataTypes}SalesTariffID) ? */
+ errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
+ if(eventCode == 0) {
+ grammarID = 2591;
+ } else {
+ errn = EXI_DEVIANT_SUPPORT_NOT_DEPLOYED; /* or also typecast and nillable */
+ }
+ }
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 2591:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SalesTariffDescription), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}NumEPriceLevels), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SalesTariffEntry)] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ /* FirstStartTag[CHARACTERS[STRING]] */
+ errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
+ if(errn == 0) {
+ if(eventCode == 0) {
+ errn = decodeUnsignedInteger16(stream, &iso2SalesTariffType->SalesTariffDescription.charactersLen);
+ if (errn == 0) {
+ if (iso2SalesTariffType->SalesTariffDescription.charactersLen >= 2) {
+ iso2SalesTariffType->SalesTariffDescription.charactersLen = (uint16_t)(iso2SalesTariffType->SalesTariffDescription.charactersLen - 2); /* string table miss */
+ errn = decodeCharacters(stream, iso2SalesTariffType->SalesTariffDescription.charactersLen, iso2SalesTariffType->SalesTariffDescription.characters, iso2SalesTariffType_SalesTariffDescription_CHARACTERS_SIZE);
+ } else {
+ /* string table hit */
+ errn = EXI_ERROR_STRINGVALUES_NOT_SUPPORTED;
+ }
+ }
+ iso2SalesTariffType->SalesTariffDescription_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({urn:iso:15118:2:2016:MsgDataTypes}SalesTariffDescription) ? */
+ errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
+ if(eventCode == 0) {
+ grammarID = 2592;
+ } else {
+ errn = EXI_DEVIANT_SUPPORT_NOT_DEPLOYED; /* or also typecast and nillable */
+ }
+ }
+ break;
+ case 1:
+ /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
+ errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
+ if(errn == 0) {
+ if(eventCode == 0) {
+ errn = decodeNBitUnsignedInteger(stream, 8, &(uint32));
+ iso2SalesTariffType->NumEPriceLevels = (uint8_t)(uint32 + 0);
+ iso2SalesTariffType->NumEPriceLevels_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({urn:iso:15118:2:2016:MsgDataTypes}NumEPriceLevels) ? */
+ errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
+ if(eventCode == 0) {
+ grammarID = 2593;
+ } else {
+ errn = EXI_DEVIANT_SUPPORT_NOT_DEPLOYED; /* or also typecast and nillable */
+ }
+ }
+ break;
+ case 2:
+ if (iso2SalesTariffType->SalesTariffEntry.arrayLen < iso2SalesTariffType_SalesTariffEntry_ARRAY_SIZE) {
+ errn = decode_iso2SalesTariffEntryType(stream, &iso2SalesTariffType->SalesTariffEntry.array[iso2SalesTariffType->SalesTariffEntry.arrayLen++]);
+ } else {
+ errn = EXI_ERROR_OUT_OF_BOUNDS;
+ }
+ grammarID = 2594;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 2592:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}NumEPriceLevels), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SalesTariffEntry)] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
+ errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
+ if(errn == 0) {
+ if(eventCode == 0) {
+ errn = decodeNBitUnsignedInteger(stream, 8, &(uint32));
+ iso2SalesTariffType->NumEPriceLevels = (uint8_t)(uint32 + 0);
+ iso2SalesTariffType->NumEPriceLevels_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({urn:iso:15118:2:2016:MsgDataTypes}NumEPriceLevels) ? */
+ errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
+ if(eventCode == 0) {
+ grammarID = 2593;
+ } else {
+ errn = EXI_DEVIANT_SUPPORT_NOT_DEPLOYED; /* or also typecast and nillable */
+ }
+ }
+ break;
+ case 1:
+ if (iso2SalesTariffType->SalesTariffEntry.arrayLen < iso2SalesTariffType_SalesTariffEntry_ARRAY_SIZE) {
+ errn = decode_iso2SalesTariffEntryType(stream, &iso2SalesTariffType->SalesTariffEntry.array[iso2SalesTariffType->SalesTariffEntry.arrayLen++]);
+ } else {
+ errn = EXI_ERROR_OUT_OF_BOUNDS;
+ }
+ grammarID = 2594;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 2593:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SalesTariffEntry)] */
+ errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ if (iso2SalesTariffType->SalesTariffEntry.arrayLen < iso2SalesTariffType_SalesTariffEntry_ARRAY_SIZE) {
+ errn = decode_iso2SalesTariffEntryType(stream, &iso2SalesTariffType->SalesTariffEntry.array[iso2SalesTariffType->SalesTariffEntry.arrayLen++]);
+ } else {
+ errn = EXI_ERROR_OUT_OF_BOUNDS;
+ }
+ grammarID = 2594;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 2594:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SalesTariffEntry), END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ if (iso2SalesTariffType->SalesTariffEntry.arrayLen < iso2SalesTariffType_SalesTariffEntry_ARRAY_SIZE) {
+ errn = decode_iso2SalesTariffEntryType(stream, &iso2SalesTariffType->SalesTariffEntry.array[iso2SalesTariffType->SalesTariffEntry.arrayLen++]);
+ } else {
+ errn = EXI_ERROR_OUT_OF_BOUNDS;
+ }
+ grammarID = 2594;
+ break;
+ case 1:
+ done = 1;
+ grammarID = 4;
+ 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:2016:MsgDataTypes,SensorType', base type name='anyType', content type='ELEMENT', isAbstract='false', hasTypeId='false', final='0', block='0', particle='("urn:iso:15118:2:2016:MsgDataTypes":SensorID,"urn:iso:15118:2:2016:MsgDataTypes":SensorPosition,"urn:iso:15118:2:2016:MsgDataTypes":SensorOrientation)', derivedBy='RESTRICTION'. */
+static int decode_iso2SensorType(bitstream_t* stream, struct iso2SensorType* iso2SensorType) {
+ int grammarID = 2595;
+ int done = 0;
+
+ init_iso2SensorType(iso2SensorType);
+
+ while(!done) {
+ switch(grammarID) {
+ case 2595:
+ /* FirstStartTag[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorID)] */
+ errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
+ errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
+ if(errn == 0) {
+ if(eventCode == 0) {
+ errn = decodeNBitUnsignedInteger(stream, 8, &(uint32));
+ iso2SensorType->SensorID = (uint8_t)(uint32 + 0);
+ } 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({urn:iso:15118:2:2016:MsgDataTypes}SensorID) ? */
+ errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
+ if(eventCode == 0) {
+ grammarID = 2596;
+ } else {
+ errn = EXI_DEVIANT_SUPPORT_NOT_DEPLOYED; /* or also typecast and nillable */
+ }
+ }
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 2596:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorPosition)] */
+ errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ errn = decode_iso2CartesianCoordinatesType(stream, &iso2SensorType->SensorPosition);
+ grammarID = 2597;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 2597:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorOrientation)] */
+ errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ errn = decode_iso2CartesianCoordinatesType(stream, &iso2SensorType->SensorOrientation);
+ grammarID = 3;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 3:
+ /* Element[END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ done = 1;
+ grammarID = 4;
+ 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='http://www.w3.org/2000/09/xmldsig#,SignatureValueType', base type name='base64Binary', content type='SIMPLE', isAbstract='false', hasTypeId='false', final='0', block='0', derivedBy='EXTENSION'. */
+static int decode_iso2SignatureValueType(bitstream_t* stream, struct iso2SignatureValueType* iso2SignatureValueType) {
+ int grammarID = 2598;
+ int done = 0;
+
+ init_iso2SignatureValueType(iso2SignatureValueType);
+
+ while(!done) {
+ switch(grammarID) {
+ case 2598:
+ /* FirstStartTag[ATTRIBUTE[STRING](Id), CHARACTERS[BINARY_BASE64]] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ errn = decodeUnsignedInteger16(stream, &iso2SignatureValueType->Id.charactersLen);
+ if (errn == 0) {
+ if (iso2SignatureValueType->Id.charactersLen >= 2) {
+ iso2SignatureValueType->Id.charactersLen = (uint16_t)(iso2SignatureValueType->Id.charactersLen - 2); /* string table miss */
+ errn = decodeCharacters(stream, iso2SignatureValueType->Id.charactersLen, iso2SignatureValueType->Id.characters, iso2SignatureValueType_Id_CHARACTERS_SIZE);
+ } else {
+ /* string table hit */
+ errn = EXI_ERROR_STRINGVALUES_NOT_SUPPORTED;
+ }
+ }
+ iso2SignatureValueType->Id_isUsed = 1u;
+ grammarID = 2016;
+ break;
+ case 1:
+ errn = decodeUnsignedInteger16(stream, &iso2SignatureValueType->CONTENT.bytesLen);
+ if (errn == 0) {
+ errn = (iso2SignatureValueType->CONTENT.bytesLen) <= iso2SignatureValueType_CONTENT_BYTES_SIZE ? 0 : EXI_ERROR_OUT_OF_BYTE_BUFFER;
+ }
+ if (errn == 0) {
+ errn = decodeBytes(stream, iso2SignatureValueType->CONTENT.bytesLen, iso2SignatureValueType->CONTENT.bytes);
+ }
+ grammarID = 3;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 2016:
+ /* StartTag[CHARACTERS[BINARY_BASE64]] */
+ errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ errn = decodeUnsignedInteger16(stream, &iso2SignatureValueType->CONTENT.bytesLen);
+ if (errn == 0) {
+ errn = (iso2SignatureValueType->CONTENT.bytesLen) <= iso2SignatureValueType_CONTENT_BYTES_SIZE ? 0 : EXI_ERROR_OUT_OF_BYTE_BUFFER;
+ }
+ if (errn == 0) {
+ errn = decodeBytes(stream, iso2SignatureValueType->CONTENT.bytesLen, iso2SignatureValueType->CONTENT.bytes);
+ }
+ grammarID = 3;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 3:
+ /* Element[END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ done = 1;
+ grammarID = 4;
+ 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='http://www.w3.org/2000/09/xmldsig#,SignedInfoType', base type name='anyType', content type='ELEMENT', isAbstract='false', hasTypeId='false', final='0', block='0', particle='("http://www.w3.org/2000/09/xmldsig#":CanonicalizationMethod,"http://www.w3.org/2000/09/xmldsig#":SignatureMethod,"http://www.w3.org/2000/09/xmldsig#":Reference{1-UNBOUNDED})', derivedBy='RESTRICTION'. */
+static int decode_iso2SignedInfoType(bitstream_t* stream, struct iso2SignedInfoType* iso2SignedInfoType) {
+ int grammarID = 2599;
+ int done = 0;
+
+ init_iso2SignedInfoType(iso2SignedInfoType);
+
+ while(!done) {
+ switch(grammarID) {
+ case 2599:
+ /* FirstStartTag[ATTRIBUTE[STRING](Id), START_ELEMENT({http://www.w3.org/2000/09/xmldsig#}CanonicalizationMethod)] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ errn = decodeUnsignedInteger16(stream, &iso2SignedInfoType->Id.charactersLen);
+ if (errn == 0) {
+ if (iso2SignedInfoType->Id.charactersLen >= 2) {
+ iso2SignedInfoType->Id.charactersLen = (uint16_t)(iso2SignedInfoType->Id.charactersLen - 2); /* string table miss */
+ errn = decodeCharacters(stream, iso2SignedInfoType->Id.charactersLen, iso2SignedInfoType->Id.characters, iso2SignedInfoType_Id_CHARACTERS_SIZE);
+ } else {
+ /* string table hit */
+ errn = EXI_ERROR_STRINGVALUES_NOT_SUPPORTED;
+ }
+ }
+ iso2SignedInfoType->Id_isUsed = 1u;
+ grammarID = 2600;
+ break;
+ case 1:
+ errn = decode_iso2CanonicalizationMethodType(stream, &iso2SignedInfoType->CanonicalizationMethod);
+ grammarID = 2601;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 2600:
+ /* StartTag[START_ELEMENT({http://www.w3.org/2000/09/xmldsig#}CanonicalizationMethod)] */
+ errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ errn = decode_iso2CanonicalizationMethodType(stream, &iso2SignedInfoType->CanonicalizationMethod);
+ grammarID = 2601;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 2601:
+ /* Element[START_ELEMENT({http://www.w3.org/2000/09/xmldsig#}SignatureMethod)] */
+ errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ errn = decode_iso2SignatureMethodType(stream, &iso2SignedInfoType->SignatureMethod);
+ grammarID = 2602;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 2602:
+ /* Element[START_ELEMENT({http://www.w3.org/2000/09/xmldsig#}Reference)] */
+ errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ if (iso2SignedInfoType->Reference.arrayLen < iso2SignedInfoType_Reference_ARRAY_SIZE) {
+ errn = decode_iso2ReferenceType(stream, &iso2SignedInfoType->Reference.array[iso2SignedInfoType->Reference.arrayLen++]);
+ } else {
+ errn = EXI_ERROR_OUT_OF_BOUNDS;
+ }
+ grammarID = 1964;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 1964:
+ /* Element[START_ELEMENT({http://www.w3.org/2000/09/xmldsig#}Reference), END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ if (iso2SignedInfoType->Reference.arrayLen < iso2SignedInfoType_Reference_ARRAY_SIZE) {
+ errn = decode_iso2ReferenceType(stream, &iso2SignedInfoType->Reference.array[iso2SignedInfoType->Reference.arrayLen++]);
+ } else {
+ errn = EXI_ERROR_OUT_OF_BOUNDS;
+ }
+ grammarID = 1964;
+ break;
+ case 1:
+ done = 1;
+ grammarID = 4;
+ 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:2016:MsgBody,PowerDeliveryResType', base type name='V2GResponseType', content type='ELEMENT', isAbstract='false', hasTypeId='false', final='0', block='0', particle='(("urn:iso:15118:2:2016:MsgBody":ResponseCode,"urn:iso:15118:2:2016:MsgBody":EVSEStatus{0-1}),("urn:iso:15118:2:2016:MsgBody":EVSEProcessing))', derivedBy='EXTENSION'. */
+static int decode_iso2PowerDeliveryResType(bitstream_t* stream, struct iso2PowerDeliveryResType* iso2PowerDeliveryResType) {
+ int grammarID = 5;
+ int done = 0;
+
+ init_iso2PowerDeliveryResType(iso2PowerDeliveryResType);
+
+ while(!done) {
+ switch(grammarID) {
+ case 5:
+ /* FirstStartTag[START_ELEMENT({urn:iso:15118:2:2016:MsgBody}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, 5, &uint32);
+ iso2PowerDeliveryResType->ResponseCode = (iso2responseCodeType) 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({urn:iso:15118:2:2016:MsgBody}ResponseCode) ? */
+ errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
+ if(eventCode == 0) {
+ grammarID = 6;
+ } else {
+ errn = EXI_DEVIANT_SUPPORT_NOT_DEPLOYED; /* or also typecast and nillable */
+ }
+ }
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 6:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgBody}EVSEStatus), START_ELEMENT({urn:iso:15118:2:2016:MsgBody}EVSEProcessing)] */
+ errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ errn = decode_iso2EVSEStatusType(stream, &iso2PowerDeliveryResType->EVSEStatus);
+ iso2PowerDeliveryResType->EVSEStatus_isUsed = 1u;
+ grammarID = 7;
+ break;
+ case 1:
+ /* FirstStartTag[CHARACTERS[ENUMERATION]] */
+ errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
+ if(errn == 0) {
+ if(eventCode == 0) {
+ errn = decodeNBitUnsignedInteger(stream, 2, &uint32);
+ iso2PowerDeliveryResType->EVSEProcessing = (iso2EVSEProcessingType) 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({urn:iso:15118:2:2016:MsgBody}EVSEProcessing) ? */
+ errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
+ if(eventCode == 0) {
+ grammarID = 3;
+ } else {
+ errn = EXI_DEVIANT_SUPPORT_NOT_DEPLOYED; /* or also typecast and nillable */
+ }
+ }
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 7:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgBody}EVSEProcessing)] */
+ 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);
+ iso2PowerDeliveryResType->EVSEProcessing = (iso2EVSEProcessingType) 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({urn:iso:15118:2:2016:MsgBody}EVSEProcessing) ? */
+ errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
+ if(eventCode == 0) {
+ grammarID = 3;
+ } else {
+ errn = EXI_DEVIANT_SUPPORT_NOT_DEPLOYED; /* or also typecast and nillable */
+ }
+ }
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 3:
+ /* Element[END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ done = 1;
+ grammarID = 4;
+ 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:2016:MsgBody,CableCheckReqType', base type name='BodyBaseType', content type='EMPTY', isAbstract='false', hasTypeId='false', final='0', block='0', derivedBy='EXTENSION'. */
+static int decode_iso2CableCheckReqType(bitstream_t* stream, struct iso2CableCheckReqType* iso2CableCheckReqType) {
+ int grammarID = 674;
+ int done = 0;
+
+ init_iso2CableCheckReqType(iso2CableCheckReqType);
+
+ while(!done) {
+ switch(grammarID) {
+ case 674:
+ /* FirstStartTag[END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ done = 1;
+ grammarID = 4;
+ 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:2016:MsgDataTypes,SelectedServiceType', base type name='anyType', content type='ELEMENT', isAbstract='false', hasTypeId='false', final='0', block='0', particle='("urn:iso:15118:2:2016:MsgDataTypes":ServiceID,"urn:iso:15118:2:2016:MsgDataTypes":ParameterSetID)', derivedBy='RESTRICTION'. */
+static int decode_iso2SelectedServiceType(bitstream_t* stream, struct iso2SelectedServiceType* iso2SelectedServiceType) {
+ int grammarID = 2603;
+ int done = 0;
+
+ init_iso2SelectedServiceType(iso2SelectedServiceType);
+
+ while(!done) {
+ switch(grammarID) {
+ case 2603:
+ /* FirstStartTag[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}ServiceID)] */
+ errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ /* FirstStartTag[CHARACTERS[UNSIGNED_INTEGER]] */
+ errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
+ if(errn == 0) {
+ if(eventCode == 0) {
+ errn = decodeUnsignedInteger16(stream, &iso2SelectedServiceType->ServiceID);
+ } 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({urn:iso:15118:2:2016:MsgDataTypes}ServiceID) ? */
+ errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
+ if(eventCode == 0) {
+ grammarID = 2604;
+ } else {
+ errn = EXI_DEVIANT_SUPPORT_NOT_DEPLOYED; /* or also typecast and nillable */
+ }
+ }
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 2604:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}ParameterSetID)] */
+ errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ /* First(xsi:type)StartTag[CHARACTERS[UNSIGNED_INTEGER]] */
+ errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
+ if(errn == 0) {
+ if(eventCode == 0) {
+ errn = decodeUnsignedInteger16(stream, &iso2SelectedServiceType->ParameterSetID);
+ } 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({urn:iso:15118:2:2016:MsgDataTypes}ParameterSetID) ? */
+ errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
+ if(eventCode == 0) {
+ grammarID = 3;
+ } else {
+ errn = EXI_DEVIANT_SUPPORT_NOT_DEPLOYED; /* or also typecast and nillable */
+ }
+ }
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 3:
+ /* Element[END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ done = 1;
+ grammarID = 4;
+ 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:2016:MsgDataTypes,DiffieHellmanPublickeyType', base type name='dHpublickeyType', content type='SIMPLE', isAbstract='false', hasTypeId='false', final='0', block='0', derivedBy='EXTENSION'. */
+static int decode_iso2DiffieHellmanPublickeyType(bitstream_t* stream, struct iso2DiffieHellmanPublickeyType* iso2DiffieHellmanPublickeyType) {
+ int grammarID = 2015;
+ int done = 0;
+
+ init_iso2DiffieHellmanPublickeyType(iso2DiffieHellmanPublickeyType);
+
+ while(!done) {
+ switch(grammarID) {
+ case 2015:
+ /* FirstStartTag[ATTRIBUTE[STRING]({urn:iso:15118:2:2016:MsgDataTypes}Id)] */
+ errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ errn = decodeUnsignedInteger16(stream, &iso2DiffieHellmanPublickeyType->Id.charactersLen);
+ if (errn == 0) {
+ if (iso2DiffieHellmanPublickeyType->Id.charactersLen >= 2) {
+ iso2DiffieHellmanPublickeyType->Id.charactersLen = (uint16_t)(iso2DiffieHellmanPublickeyType->Id.charactersLen - 2); /* string table miss */
+ errn = decodeCharacters(stream, iso2DiffieHellmanPublickeyType->Id.charactersLen, iso2DiffieHellmanPublickeyType->Id.characters, iso2DiffieHellmanPublickeyType_Id_CHARACTERS_SIZE);
+ } else {
+ /* string table hit */
+ errn = EXI_ERROR_STRINGVALUES_NOT_SUPPORTED;
+ }
+ }
+ grammarID = 2016;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 2016:
+ /* StartTag[CHARACTERS[BINARY_BASE64]] */
+ errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ errn = decodeUnsignedInteger16(stream, &iso2DiffieHellmanPublickeyType->CONTENT.bytesLen);
+ if (errn == 0) {
+ errn = (iso2DiffieHellmanPublickeyType->CONTENT.bytesLen) <= iso2DiffieHellmanPublickeyType_CONTENT_BYTES_SIZE ? 0 : EXI_ERROR_OUT_OF_BYTE_BUFFER;
+ }
+ if (errn == 0) {
+ errn = decodeBytes(stream, iso2DiffieHellmanPublickeyType->CONTENT.bytesLen, iso2DiffieHellmanPublickeyType->CONTENT.bytes);
+ }
+ grammarID = 3;
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 3:
+ /* Element[END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ done = 1;
+ grammarID = 4;
+ 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:2016:MsgDataTypes,EVSEStatusType', base type name='anyType', content type='ELEMENT', isAbstract='false', hasTypeId='false', final='0', block='0', particle='("urn:iso:15118:2:2016:MsgDataTypes":NotificationMaxDelay,"urn:iso:15118:2:2016:MsgDataTypes":EVSENotification)', derivedBy='RESTRICTION'. */
+static int decode_iso2EVSEStatusType(bitstream_t* stream, struct iso2EVSEStatusType* iso2EVSEStatusType) {
+ int grammarID = 2605;
+ int done = 0;
+
+ init_iso2EVSEStatusType(iso2EVSEStatusType);
+
+ while(!done) {
+ switch(grammarID) {
+ case 2605:
+ /* FirstStartTag[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}NotificationMaxDelay)] */
+ errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ /* First(xsi:type)StartTag[CHARACTERS[UNSIGNED_INTEGER]] */
+ errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
+ if(errn == 0) {
+ if(eventCode == 0) {
+ errn = decodeUnsignedInteger16(stream, &iso2EVSEStatusType->NotificationMaxDelay);
+ } 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({urn:iso:15118:2:2016:MsgDataTypes}NotificationMaxDelay) ? */
+ errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
+ if(eventCode == 0) {
+ grammarID = 2606;
+ } else {
+ errn = EXI_DEVIANT_SUPPORT_NOT_DEPLOYED; /* or also typecast and nillable */
+ }
+ }
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 2606:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}EVSENotification)] */
+ 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, 1, &uint32);
+ iso2EVSEStatusType->EVSENotification = (iso2EVSENotificationType) 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({urn:iso:15118:2:2016:MsgDataTypes}EVSENotification) ? */
+ errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
+ if(eventCode == 0) {
+ grammarID = 3;
+ } else {
+ errn = EXI_DEVIANT_SUPPORT_NOT_DEPLOYED; /* or also typecast and nillable */
+ }
+ }
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_EVENT_CODE;
+ break;
+ }
+ }
+ break;
+ case 3:
+ /* Element[END_ELEMENT] */
+ errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
+ if (errn == 0) {
+ switch(eventCode) {
+ case 0:
+ done = 1;
+ grammarID = 4;
break;
default:
errn = EXI_ERROR_UNKOWN_EVENT_CODE;
@@ -102347,183 +82817,183 @@ static int decode_v2gDigestMethodType(bitstream_t* stream, struct v2gDigestMetho
-int decode_v2gExiDocument(bitstream_t* stream, struct v2gEXIDocument* exiDoc) {
+int decode_iso2ExiDocument(bitstream_t* stream, struct iso2EXIDocument* exiDoc) {
errn = readEXIHeader(stream);
if(errn == 0) {
- /* DocContent[START_ELEMENT({urn:iso:15118:2:2016:MsgBody}AC_BidirectionalControlReq), START_ELEMENT({urn:iso:15118:2:2016:MsgBody}AC_BidirectionalControlRes), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}AC_EVBidirectionalParameter), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}AC_EVChargeParameter), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}AC_EVSEBidirectionalParameter), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}AC_EVSEChargeParameter), START_ELEMENT({urn:iso:15118:2:2016:MsgBody}AlignmentCheckReq), START_ELEMENT({urn:iso:15118:2:2016:MsgBody}AlignmentCheckRes), START_ELEMENT({urn:iso:15118:2:2016:MsgBody}AuthorizationReq), START_ELEMENT({urn:iso:15118:2:2016:MsgBody}AuthorizationRes), START_ELEMENT({urn:iso:15118:2:2016:MsgBody}BodyElement), START_ELEMENT({urn:iso:15118:2:2016:MsgBody}CableCheckReq), START_ELEMENT({urn:iso:15118:2:2016:MsgBody}CableCheckRes), START_ELEMENT({http://www.w3.org/2000/09/xmldsig#}CanonicalizationMethod), START_ELEMENT({urn:iso:15118:2:2016:MsgBody}CertificateInstallationReq), START_ELEMENT({urn:iso:15118:2:2016:MsgBody}CertificateInstallationRes), START_ELEMENT({urn:iso:15118:2:2016:MsgBody}CertificateUpdateReq), START_ELEMENT({urn:iso:15118:2:2016:MsgBody}CertificateUpdateRes), START_ELEMENT({urn:iso:15118:2:2016:MsgBody}ChargeParameterDiscoveryReq), START_ELEMENT({urn:iso:15118:2:2016:MsgBody}ChargeParameterDiscoveryRes), START_ELEMENT({urn:iso:15118:2:2016:MsgBody}ChargingStatusReq), START_ELEMENT({urn:iso:15118:2:2016:MsgBody}ChargingStatusRes), START_ELEMENT({urn:iso:15118:2:2016:MsgBody}ConnectChargingDeviceReq), START_ELEMENT({urn:iso:15118:2:2016:MsgBody}ConnectChargingDeviceRes), START_ELEMENT({urn:iso:15118:2:2016:MsgBody}CurrentDemandReq), START_ELEMENT({urn:iso:15118:2:2016:MsgBody}CurrentDemandRes), START_ELEMENT({urn:iso:15118:2:2016:MsgBody}DC_BidirectionalControlReq), START_ELEMENT({urn:iso:15118:2:2016:MsgBody}DC_BidirectionalControlRes), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}DC_EVBidirectionalParameter), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}DC_EVChargeParameter), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}DC_EVSEBidirectionalParameter), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}DC_EVSEChargeParameter), START_ELEMENT({http://www.w3.org/2000/09/xmldsig#}DSAKeyValue), START_ELEMENT({http://www.w3.org/2000/09/xmldsig#}DigestMethod), START_ELEMENT({http://www.w3.org/2000/09/xmldsig#}DigestValue), START_ELEMENT({urn:iso:15118:2:2016:MsgBody}DisconnectChargingDeviceReq), START_ELEMENT({urn:iso:15118:2:2016:MsgBody}DisconnectChargingDeviceRes), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}EVEnergyTransferParameter), START_ELEMENT({urn:iso:15118:2:2016:MsgBody}EVErrorInformation), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}EVFinePositioningParameters), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}EVFinePositioningSetupParameters), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}EVSEEnergyTransferParameter), START_ELEMENT({urn:iso:15118:2:2016:MsgBody}EVSEErrorInformation), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}EVSEFinePositioningParameters), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}EVSEFinePositioningSetupParameters), START_ELEMENT({urn:iso:15118:2:2016:MsgBody}ErrorInformation), START_ELEMENT({urn:iso:15118:2:2016:MsgBody}FinePositioningReq), START_ELEMENT({urn:iso:15118:2:2016:MsgBody}FinePositioningRes), START_ELEMENT({urn:iso:15118:2:2016:MsgBody}FinePositioningSetupReq), START_ELEMENT({urn:iso:15118:2:2016:MsgBody}FinePositioningSetupRes), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}Generic_EVFinePositioningParameters), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}Generic_EVSEFinePositioningParameters), START_ELEMENT({http://www.w3.org/2000/09/xmldsig#}KeyInfo), START_ELEMENT({http://www.w3.org/2000/09/xmldsig#}KeyName), START_ELEMENT({http://www.w3.org/2000/09/xmldsig#}KeyValue), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}LFA_EVFinePositioningParameters), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}LFA_EVFinePositioningSetupParameters), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}LFA_EVSEFinePositioningSetupParameters), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}LF_EVSEFinePositioningParameters), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MV_EVSEFinePositioningParameters), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MV_EVSEFinePositioningSetupParameters), START_ELEMENT({http://www.w3.org/2000/09/xmldsig#}Manifest), START_ELEMENT({urn:iso:15118:2:2016:MsgBody}MeteringReceiptReq), START_ELEMENT({urn:iso:15118:2:2016:MsgBody}MeteringReceiptRes), START_ELEMENT({http://www.w3.org/2000/09/xmldsig#}MgmtData), START_ELEMENT({http://www.w3.org/2000/09/xmldsig#}Object), START_ELEMENT({http://www.w3.org/2000/09/xmldsig#}PGPData), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}PMaxScheduleEntry), START_ELEMENT({urn:iso:15118:2:2016:MsgBody}PairingReq), START_ELEMENT({urn:iso:15118:2:2016:MsgBody}PairingRes), START_ELEMENT({urn:iso:15118:2:2016:MsgBody}PaymentDetailsReq), START_ELEMENT({urn:iso:15118:2:2016:MsgBody}PaymentDetailsRes), START_ELEMENT({urn:iso:15118:2:2016:MsgBody}PaymentServiceSelectionReq), START_ELEMENT({urn:iso:15118:2:2016:MsgBody}PaymentServiceSelectionRes), START_ELEMENT({urn:iso:15118:2:2016:MsgBody}PowerDeliveryReq), START_ELEMENT({urn:iso:15118:2:2016:MsgBody}PowerDeliveryRes), START_ELEMENT({urn:iso:15118:2:2016:MsgBody}PowerDemandReq), START_ELEMENT({urn:iso:15118:2:2016:MsgBody}PowerDemandRes), START_ELEMENT({urn:iso:15118:2:2016:MsgBody}PreChargeReq), START_ELEMENT({urn:iso:15118:2:2016:MsgBody}PreChargeRes), START_ELEMENT({http://www.w3.org/2000/09/xmldsig#}RSAKeyValue), START_ELEMENT({http://www.w3.org/2000/09/xmldsig#}Reference), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}RelativeTimeInterval), START_ELEMENT({http://www.w3.org/2000/09/xmldsig#}RetrievalMethod), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SAScheduleList), START_ELEMENT({http://www.w3.org/2000/09/xmldsig#}SPKIData), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SalesTariffEntry), START_ELEMENT({urn:iso:15118:2:2016:MsgBody}ServiceDetailReq), START_ELEMENT({urn:iso:15118:2:2016:MsgBody}ServiceDetailRes), START_ELEMENT({urn:iso:15118:2:2016:MsgBody}ServiceDiscoveryReq), START_ELEMENT({urn:iso:15118:2:2016:MsgBody}ServiceDiscoveryRes), START_ELEMENT({urn:iso:15118:2:2016:MsgBody}SessionSetupReq), START_ELEMENT({urn:iso:15118:2:2016:MsgBody}SessionSetupRes), START_ELEMENT({urn:iso:15118:2:2016:MsgBody}SessionStopReq), START_ELEMENT({urn:iso:15118:2:2016:MsgBody}SessionStopRes), START_ELEMENT({http://www.w3.org/2000/09/xmldsig#}Signature), START_ELEMENT({http://www.w3.org/2000/09/xmldsig#}SignatureMethod), START_ELEMENT({http://www.w3.org/2000/09/xmldsig#}SignatureProperties), START_ELEMENT({http://www.w3.org/2000/09/xmldsig#}SignatureProperty), START_ELEMENT({http://www.w3.org/2000/09/xmldsig#}SignatureValue), START_ELEMENT({http://www.w3.org/2000/09/xmldsig#}SignedInfo), START_ELEMENT({urn:iso:15118:2:2016:MsgBody}SystemStatusReq), START_ELEMENT({urn:iso:15118:2:2016:MsgBody}SystemStatusRes), START_ELEMENT({http://www.w3.org/2000/09/xmldsig#}Transform), START_ELEMENT({http://www.w3.org/2000/09/xmldsig#}Transforms), START_ELEMENT({urn:iso:15118:2:2016:MsgBody}V2GRequest), START_ELEMENT({urn:iso:15118:2:2016:MsgBody}V2GResponse), START_ELEMENT({urn:iso:15118:2:2016:MsgDef}V2G_Message), START_ELEMENT({urn:iso:15118:2:2016:MsgBody}VehicleCheckInReq), START_ELEMENT({urn:iso:15118:2:2016:MsgBody}VehicleCheckInRes), START_ELEMENT({urn:iso:15118:2:2016:MsgBody}VehicleCheckOutReq), START_ELEMENT({urn:iso:15118:2:2016:MsgBody}VehicleCheckOutRes), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}WPT_EVChargeParameter), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}WPT_EVSEChargeParameter), START_ELEMENT({urn:iso:15118:2:2016:MsgBody}WeldingDetectionReq), START_ELEMENT({urn:iso:15118:2:2016:MsgBody}WeldingDetectionRes), START_ELEMENT({http://www.w3.org/2000/09/xmldsig#}X509Data), START_ELEMENT_GENERIC] */
- init_v2gEXIDocument(exiDoc);
+ /* DocContent[START_ELEMENT({urn:iso:15118:2:2016:MsgBody}AC_BidirectionalControlReq), START_ELEMENT({urn:iso:15118:2:2016:MsgBody}AC_BidirectionalControlRes), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}AC_EVBidirectionalParameter), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}AC_EVChargeParameter), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}AC_EVSEBidirectionalParameter), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}AC_EVSEChargeParameter), START_ELEMENT({urn:iso:15118:2:2016:MsgBody}AlignmentCheckReq), START_ELEMENT({urn:iso:15118:2:2016:MsgBody}AlignmentCheckRes), START_ELEMENT({urn:iso:15118:2:2016:MsgBody}AuthorizationReq), START_ELEMENT({urn:iso:15118:2:2016:MsgBody}AuthorizationRes), START_ELEMENT({urn:iso:15118:2:2016:MsgBody}BodyElement), START_ELEMENT({urn:iso:15118:2:2016:MsgBody}CableCheckReq), START_ELEMENT({urn:iso:15118:2:2016:MsgBody}CableCheckRes), START_ELEMENT({http://www.w3.org/2000/09/xmldsig#}CanonicalizationMethod), START_ELEMENT({urn:iso:15118:2:2016:MsgBody}CertificateInstallationReq), START_ELEMENT({urn:iso:15118:2:2016:MsgBody}CertificateInstallationRes), START_ELEMENT({urn:iso:15118:2:2016:MsgBody}CertificateUpdateReq), START_ELEMENT({urn:iso:15118:2:2016:MsgBody}CertificateUpdateRes), START_ELEMENT({urn:iso:15118:2:2016:MsgBody}ChargeParameterDiscoveryReq), START_ELEMENT({urn:iso:15118:2:2016:MsgBody}ChargeParameterDiscoveryRes), START_ELEMENT({urn:iso:15118:2:2016:MsgBody}ChargingStatusReq), START_ELEMENT({urn:iso:15118:2:2016:MsgBody}ChargingStatusRes), START_ELEMENT({urn:iso:15118:2:2016:MsgBody}ConnectChargingDeviceReq), START_ELEMENT({urn:iso:15118:2:2016:MsgBody}ConnectChargingDeviceRes), START_ELEMENT({urn:iso:15118:2:2016:MsgBody}CurrentDemandReq), START_ELEMENT({urn:iso:15118:2:2016:MsgBody}CurrentDemandRes), START_ELEMENT({urn:iso:15118:2:2016:MsgBody}DC_BidirectionalControlReq), START_ELEMENT({urn:iso:15118:2:2016:MsgBody}DC_BidirectionalControlRes), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}DC_EVBidirectionalParameter), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}DC_EVChargeParameter), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}DC_EVSEBidirectionalParameter), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}DC_EVSEChargeParameter), START_ELEMENT({http://www.w3.org/2000/09/xmldsig#}DSAKeyValue), START_ELEMENT({http://www.w3.org/2000/09/xmldsig#}DigestMethod), START_ELEMENT({http://www.w3.org/2000/09/xmldsig#}DigestValue), START_ELEMENT({urn:iso:15118:2:2016:MsgBody}DisconnectChargingDeviceReq), START_ELEMENT({urn:iso:15118:2:2016:MsgBody}DisconnectChargingDeviceRes), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}EVEnergyTransferParameter), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}EVFinePositioningParameters), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}EVFinePositioningSetupParameters), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}EVSEEnergyTransferParameter), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}EVSEFinePositioningParameters), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}EVSEFinePositioningSetupParameters), START_ELEMENT({urn:iso:15118:2:2016:MsgBody}FinePositioningReq), START_ELEMENT({urn:iso:15118:2:2016:MsgBody}FinePositioningRes), START_ELEMENT({urn:iso:15118:2:2016:MsgBody}FinePositioningSetupReq), START_ELEMENT({urn:iso:15118:2:2016:MsgBody}FinePositioningSetupRes), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}Generic_EVFinePositioningParameters), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}Generic_EVSEFinePositioningParameters), START_ELEMENT({http://www.w3.org/2000/09/xmldsig#}KeyInfo), START_ELEMENT({http://www.w3.org/2000/09/xmldsig#}KeyName), START_ELEMENT({http://www.w3.org/2000/09/xmldsig#}KeyValue), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}LFA_EVFinePositioningParameters), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}LFA_EVFinePositioningSetupParameters), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}LFA_EVSEFinePositioningParameters), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}LFA_EVSEFinePositioningSetupParameters), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MV_EVSEFinePositioningParameters), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MV_EVSEFinePositioningSetupParameters), START_ELEMENT({http://www.w3.org/2000/09/xmldsig#}Manifest), START_ELEMENT({urn:iso:15118:2:2016:MsgBody}MeteringReceiptReq), START_ELEMENT({urn:iso:15118:2:2016:MsgBody}MeteringReceiptRes), START_ELEMENT({http://www.w3.org/2000/09/xmldsig#}MgmtData), START_ELEMENT({http://www.w3.org/2000/09/xmldsig#}Object), START_ELEMENT({http://www.w3.org/2000/09/xmldsig#}PGPData), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}PMaxScheduleEntry), START_ELEMENT({urn:iso:15118:2:2016:MsgBody}PairingReq), START_ELEMENT({urn:iso:15118:2:2016:MsgBody}PairingRes), START_ELEMENT({urn:iso:15118:2:2016:MsgBody}PaymentDetailsReq), START_ELEMENT({urn:iso:15118:2:2016:MsgBody}PaymentDetailsRes), START_ELEMENT({urn:iso:15118:2:2016:MsgBody}PaymentServiceSelectionReq), START_ELEMENT({urn:iso:15118:2:2016:MsgBody}PaymentServiceSelectionRes), START_ELEMENT({urn:iso:15118:2:2016:MsgBody}PowerDeliveryReq), START_ELEMENT({urn:iso:15118:2:2016:MsgBody}PowerDeliveryRes), START_ELEMENT({urn:iso:15118:2:2016:MsgBody}PowerDemandReq), START_ELEMENT({urn:iso:15118:2:2016:MsgBody}PowerDemandRes), START_ELEMENT({urn:iso:15118:2:2016:MsgBody}PreChargeReq), START_ELEMENT({urn:iso:15118:2:2016:MsgBody}PreChargeRes), START_ELEMENT({http://www.w3.org/2000/09/xmldsig#}RSAKeyValue), START_ELEMENT({http://www.w3.org/2000/09/xmldsig#}Reference), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}RelativeTimeInterval), START_ELEMENT({http://www.w3.org/2000/09/xmldsig#}RetrievalMethod), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SAScheduleList), START_ELEMENT({http://www.w3.org/2000/09/xmldsig#}SPKIData), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SalesTariffEntry), START_ELEMENT({urn:iso:15118:2:2016:MsgBody}ServiceDetailReq), START_ELEMENT({urn:iso:15118:2:2016:MsgBody}ServiceDetailRes), START_ELEMENT({urn:iso:15118:2:2016:MsgBody}ServiceDiscoveryReq), START_ELEMENT({urn:iso:15118:2:2016:MsgBody}ServiceDiscoveryRes), START_ELEMENT({urn:iso:15118:2:2016:MsgBody}SessionSetupReq), START_ELEMENT({urn:iso:15118:2:2016:MsgBody}SessionSetupRes), START_ELEMENT({urn:iso:15118:2:2016:MsgBody}SessionStopReq), START_ELEMENT({urn:iso:15118:2:2016:MsgBody}SessionStopRes), START_ELEMENT({http://www.w3.org/2000/09/xmldsig#}Signature), START_ELEMENT({http://www.w3.org/2000/09/xmldsig#}SignatureMethod), START_ELEMENT({http://www.w3.org/2000/09/xmldsig#}SignatureProperties), START_ELEMENT({http://www.w3.org/2000/09/xmldsig#}SignatureProperty), START_ELEMENT({http://www.w3.org/2000/09/xmldsig#}SignatureValue), START_ELEMENT({http://www.w3.org/2000/09/xmldsig#}SignedInfo), START_ELEMENT({urn:iso:15118:2:2016:MsgBody}SystemStatusReq), START_ELEMENT({urn:iso:15118:2:2016:MsgBody}SystemStatusRes), START_ELEMENT({http://www.w3.org/2000/09/xmldsig#}Transform), START_ELEMENT({http://www.w3.org/2000/09/xmldsig#}Transforms), START_ELEMENT({urn:iso:15118:2:2016:MsgBody}V2GRequest), START_ELEMENT({urn:iso:15118:2:2016:MsgBody}V2GResponse), START_ELEMENT({urn:iso:15118:2:2016:MsgDef}V2G_Message), START_ELEMENT({urn:iso:15118:2:2016:MsgBody}VehicleCheckInReq), START_ELEMENT({urn:iso:15118:2:2016:MsgBody}VehicleCheckInRes), START_ELEMENT({urn:iso:15118:2:2016:MsgBody}VehicleCheckOutReq), START_ELEMENT({urn:iso:15118:2:2016:MsgBody}VehicleCheckOutRes), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}WPT_EVChargeParameter), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}WPT_EVSEChargeParameter), START_ELEMENT({urn:iso:15118:2:2016:MsgBody}WeldingDetectionReq), START_ELEMENT({urn:iso:15118:2:2016:MsgBody}WeldingDetectionRes), START_ELEMENT({http://www.w3.org/2000/09/xmldsig#}X509Data), START_ELEMENT_GENERIC] */
+ init_iso2EXIDocument(exiDoc);
errn = decodeNBitUnsignedInteger(stream, 7, &eventCode);
if(errn == 0) {
switch(eventCode) {
case 0:
/* START_ELEMENT({urn:iso:15118:2:2016:MsgBody}AC_BidirectionalControlReq) */
- errn = decode_v2gAC_BidirectionalControlReqType(stream, &exiDoc->AC_BidirectionalControlReq);
+ errn = decode_iso2AC_BidirectionalControlReqType(stream, &exiDoc->AC_BidirectionalControlReq);
exiDoc->AC_BidirectionalControlReq_isUsed = 1u;
break;
case 1:
/* START_ELEMENT({urn:iso:15118:2:2016:MsgBody}AC_BidirectionalControlRes) */
- errn = decode_v2gAC_BidirectionalControlResType(stream, &exiDoc->AC_BidirectionalControlRes);
+ errn = decode_iso2AC_BidirectionalControlResType(stream, &exiDoc->AC_BidirectionalControlRes);
exiDoc->AC_BidirectionalControlRes_isUsed = 1u;
break;
case 2:
/* START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}AC_EVBidirectionalParameter) */
- errn = decode_v2gAC_EVBidirectionalParameterType(stream, &exiDoc->AC_EVBidirectionalParameter);
+ errn = decode_iso2AC_EVBidirectionalParameterType(stream, &exiDoc->AC_EVBidirectionalParameter);
exiDoc->AC_EVBidirectionalParameter_isUsed = 1u;
break;
case 3:
/* START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}AC_EVChargeParameter) */
- errn = decode_v2gAC_EVChargeParameterType(stream, &exiDoc->AC_EVChargeParameter);
+ errn = decode_iso2AC_EVChargeParameterType(stream, &exiDoc->AC_EVChargeParameter);
exiDoc->AC_EVChargeParameter_isUsed = 1u;
break;
case 4:
/* START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}AC_EVSEBidirectionalParameter) */
- errn = decode_v2gAC_EVSEBidirectionalParameterType(stream, &exiDoc->AC_EVSEBidirectionalParameter);
+ errn = decode_iso2AC_EVSEBidirectionalParameterType(stream, &exiDoc->AC_EVSEBidirectionalParameter);
exiDoc->AC_EVSEBidirectionalParameter_isUsed = 1u;
break;
case 5:
/* START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}AC_EVSEChargeParameter) */
- errn = decode_v2gAC_EVSEChargeParameterType(stream, &exiDoc->AC_EVSEChargeParameter);
+ errn = decode_iso2AC_EVSEChargeParameterType(stream, &exiDoc->AC_EVSEChargeParameter);
exiDoc->AC_EVSEChargeParameter_isUsed = 1u;
break;
case 6:
/* START_ELEMENT({urn:iso:15118:2:2016:MsgBody}AlignmentCheckReq) */
- errn = decode_v2gAlignmentCheckReqType(stream, &exiDoc->AlignmentCheckReq);
+ errn = decode_iso2AlignmentCheckReqType(stream, &exiDoc->AlignmentCheckReq);
exiDoc->AlignmentCheckReq_isUsed = 1u;
break;
case 7:
/* START_ELEMENT({urn:iso:15118:2:2016:MsgBody}AlignmentCheckRes) */
- errn = decode_v2gAlignmentCheckResType(stream, &exiDoc->AlignmentCheckRes);
+ errn = decode_iso2AlignmentCheckResType(stream, &exiDoc->AlignmentCheckRes);
exiDoc->AlignmentCheckRes_isUsed = 1u;
break;
case 8:
/* START_ELEMENT({urn:iso:15118:2:2016:MsgBody}AuthorizationReq) */
- errn = decode_v2gAuthorizationReqType(stream, &exiDoc->AuthorizationReq);
+ errn = decode_iso2AuthorizationReqType(stream, &exiDoc->AuthorizationReq);
exiDoc->AuthorizationReq_isUsed = 1u;
break;
case 9:
/* START_ELEMENT({urn:iso:15118:2:2016:MsgBody}AuthorizationRes) */
- errn = decode_v2gAuthorizationResType(stream, &exiDoc->AuthorizationRes);
+ errn = decode_iso2AuthorizationResType(stream, &exiDoc->AuthorizationRes);
exiDoc->AuthorizationRes_isUsed = 1u;
break;
case 10:
/* START_ELEMENT({urn:iso:15118:2:2016:MsgBody}BodyElement) */
- errn = decode_v2gBodyBaseType(stream, &exiDoc->BodyElement);
+ errn = decode_iso2BodyBaseType(stream, &exiDoc->BodyElement);
exiDoc->BodyElement_isUsed = 1u;
break;
case 11:
/* START_ELEMENT({urn:iso:15118:2:2016:MsgBody}CableCheckReq) */
- errn = decode_v2gBodyBaseType(stream, &exiDoc->CableCheckReq);
+ errn = decode_iso2CableCheckReqType(stream, &exiDoc->CableCheckReq);
exiDoc->CableCheckReq_isUsed = 1u;
break;
case 12:
/* START_ELEMENT({urn:iso:15118:2:2016:MsgBody}CableCheckRes) */
- errn = decode_v2gCableCheckResType(stream, &exiDoc->CableCheckRes);
+ errn = decode_iso2CableCheckResType(stream, &exiDoc->CableCheckRes);
exiDoc->CableCheckRes_isUsed = 1u;
break;
case 13:
/* START_ELEMENT({http://www.w3.org/2000/09/xmldsig#}CanonicalizationMethod) */
- errn = decode_v2gCanonicalizationMethodType(stream, &exiDoc->CanonicalizationMethod);
+ errn = decode_iso2CanonicalizationMethodType(stream, &exiDoc->CanonicalizationMethod);
exiDoc->CanonicalizationMethod_isUsed = 1u;
break;
case 14:
/* START_ELEMENT({urn:iso:15118:2:2016:MsgBody}CertificateInstallationReq) */
- errn = decode_v2gCertificateInstallationReqType(stream, &exiDoc->CertificateInstallationReq);
+ errn = decode_iso2CertificateInstallationReqType(stream, &exiDoc->CertificateInstallationReq);
exiDoc->CertificateInstallationReq_isUsed = 1u;
break;
case 15:
/* START_ELEMENT({urn:iso:15118:2:2016:MsgBody}CertificateInstallationRes) */
- errn = decode_v2gCertificateInstallationResType(stream, &exiDoc->CertificateInstallationRes);
+ errn = decode_iso2CertificateInstallationResType(stream, &exiDoc->CertificateInstallationRes);
exiDoc->CertificateInstallationRes_isUsed = 1u;
break;
case 16:
/* START_ELEMENT({urn:iso:15118:2:2016:MsgBody}CertificateUpdateReq) */
- errn = decode_v2gCertificateUpdateReqType(stream, &exiDoc->CertificateUpdateReq);
+ errn = decode_iso2CertificateUpdateReqType(stream, &exiDoc->CertificateUpdateReq);
exiDoc->CertificateUpdateReq_isUsed = 1u;
break;
case 17:
/* START_ELEMENT({urn:iso:15118:2:2016:MsgBody}CertificateUpdateRes) */
- errn = decode_v2gCertificateUpdateResType(stream, &exiDoc->CertificateUpdateRes);
+ errn = decode_iso2CertificateUpdateResType(stream, &exiDoc->CertificateUpdateRes);
exiDoc->CertificateUpdateRes_isUsed = 1u;
break;
case 18:
/* START_ELEMENT({urn:iso:15118:2:2016:MsgBody}ChargeParameterDiscoveryReq) */
- errn = decode_v2gChargeParameterDiscoveryReqType(stream, &exiDoc->ChargeParameterDiscoveryReq);
+ errn = decode_iso2ChargeParameterDiscoveryReqType(stream, &exiDoc->ChargeParameterDiscoveryReq);
exiDoc->ChargeParameterDiscoveryReq_isUsed = 1u;
break;
case 19:
/* START_ELEMENT({urn:iso:15118:2:2016:MsgBody}ChargeParameterDiscoveryRes) */
- errn = decode_v2gChargeParameterDiscoveryResType(stream, &exiDoc->ChargeParameterDiscoveryRes);
+ errn = decode_iso2ChargeParameterDiscoveryResType(stream, &exiDoc->ChargeParameterDiscoveryRes);
exiDoc->ChargeParameterDiscoveryRes_isUsed = 1u;
break;
case 20:
/* START_ELEMENT({urn:iso:15118:2:2016:MsgBody}ChargingStatusReq) */
- errn = decode_v2gChargingStatusReqType(stream, &exiDoc->ChargingStatusReq);
+ errn = decode_iso2ChargingStatusReqType(stream, &exiDoc->ChargingStatusReq);
exiDoc->ChargingStatusReq_isUsed = 1u;
break;
case 21:
/* START_ELEMENT({urn:iso:15118:2:2016:MsgBody}ChargingStatusRes) */
- errn = decode_v2gChargingStatusResType(stream, &exiDoc->ChargingStatusRes);
+ errn = decode_iso2ChargingStatusResType(stream, &exiDoc->ChargingStatusRes);
exiDoc->ChargingStatusRes_isUsed = 1u;
break;
case 22:
/* START_ELEMENT({urn:iso:15118:2:2016:MsgBody}ConnectChargingDeviceReq) */
- errn = decode_v2gConnectChargingDeviceReqType(stream, &exiDoc->ConnectChargingDeviceReq);
+ errn = decode_iso2ConnectChargingDeviceReqType(stream, &exiDoc->ConnectChargingDeviceReq);
exiDoc->ConnectChargingDeviceReq_isUsed = 1u;
break;
case 23:
/* START_ELEMENT({urn:iso:15118:2:2016:MsgBody}ConnectChargingDeviceRes) */
- errn = decode_v2gConnectChargingDeviceResType(stream, &exiDoc->ConnectChargingDeviceRes);
+ errn = decode_iso2ConnectChargingDeviceResType(stream, &exiDoc->ConnectChargingDeviceRes);
exiDoc->ConnectChargingDeviceRes_isUsed = 1u;
break;
case 24:
/* START_ELEMENT({urn:iso:15118:2:2016:MsgBody}CurrentDemandReq) */
- errn = decode_v2gCurrentDemandReqType(stream, &exiDoc->CurrentDemandReq);
+ errn = decode_iso2CurrentDemandReqType(stream, &exiDoc->CurrentDemandReq);
exiDoc->CurrentDemandReq_isUsed = 1u;
break;
case 25:
/* START_ELEMENT({urn:iso:15118:2:2016:MsgBody}CurrentDemandRes) */
- errn = decode_v2gCurrentDemandResType(stream, &exiDoc->CurrentDemandRes);
+ errn = decode_iso2CurrentDemandResType(stream, &exiDoc->CurrentDemandRes);
exiDoc->CurrentDemandRes_isUsed = 1u;
break;
case 26:
/* START_ELEMENT({urn:iso:15118:2:2016:MsgBody}DC_BidirectionalControlReq) */
- errn = decode_v2gDC_BidirectionalControlReqType(stream, &exiDoc->DC_BidirectionalControlReq);
+ errn = decode_iso2DC_BidirectionalControlReqType(stream, &exiDoc->DC_BidirectionalControlReq);
exiDoc->DC_BidirectionalControlReq_isUsed = 1u;
break;
case 27:
/* START_ELEMENT({urn:iso:15118:2:2016:MsgBody}DC_BidirectionalControlRes) */
- errn = decode_v2gDC_BidirectionalControlResType(stream, &exiDoc->DC_BidirectionalControlRes);
+ errn = decode_iso2DC_BidirectionalControlResType(stream, &exiDoc->DC_BidirectionalControlRes);
exiDoc->DC_BidirectionalControlRes_isUsed = 1u;
break;
case 28:
/* START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}DC_EVBidirectionalParameter) */
- errn = decode_v2gDC_EVBidirectionalParameterType(stream, &exiDoc->DC_EVBidirectionalParameter);
+ errn = decode_iso2DC_EVBidirectionalParameterType(stream, &exiDoc->DC_EVBidirectionalParameter);
exiDoc->DC_EVBidirectionalParameter_isUsed = 1u;
break;
case 29:
/* START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}DC_EVChargeParameter) */
- errn = decode_v2gDC_EVChargeParameterType(stream, &exiDoc->DC_EVChargeParameter);
+ errn = decode_iso2DC_EVChargeParameterType(stream, &exiDoc->DC_EVChargeParameter);
exiDoc->DC_EVChargeParameter_isUsed = 1u;
break;
case 30:
/* START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}DC_EVSEBidirectionalParameter) */
- errn = decode_v2gDC_EVSEBidirectionalParameterType(stream, &exiDoc->DC_EVSEBidirectionalParameter);
+ errn = decode_iso2DC_EVSEBidirectionalParameterType(stream, &exiDoc->DC_EVSEBidirectionalParameter);
exiDoc->DC_EVSEBidirectionalParameter_isUsed = 1u;
break;
case 31:
/* START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}DC_EVSEChargeParameter) */
- errn = decode_v2gDC_EVSEChargeParameterType(stream, &exiDoc->DC_EVSEChargeParameter);
+ errn = decode_iso2DC_EVSEChargeParameterType(stream, &exiDoc->DC_EVSEChargeParameter);
exiDoc->DC_EVSEChargeParameter_isUsed = 1u;
break;
case 32:
/* START_ELEMENT({http://www.w3.org/2000/09/xmldsig#}DSAKeyValue) */
- errn = decode_v2gDSAKeyValueType(stream, &exiDoc->DSAKeyValue);
+ errn = decode_iso2DSAKeyValueType(stream, &exiDoc->DSAKeyValue);
exiDoc->DSAKeyValue_isUsed = 1u;
break;
case 33:
/* START_ELEMENT({http://www.w3.org/2000/09/xmldsig#}DigestMethod) */
- errn = decode_v2gDigestMethodType(stream, &exiDoc->DigestMethod);
+ errn = decode_iso2DigestMethodType(stream, &exiDoc->DigestMethod);
exiDoc->DigestMethod_isUsed = 1u;
break;
case 34:
@@ -102548,95 +83018,80 @@ int decode_v2gExiDocument(bitstream_t* stream, struct v2gEXIDocument* exiDoc) {
break;
case 35:
/* START_ELEMENT({urn:iso:15118:2:2016:MsgBody}DisconnectChargingDeviceReq) */
- errn = decode_v2gDisconnectChargingDeviceReqType(stream, &exiDoc->DisconnectChargingDeviceReq);
+ errn = decode_iso2DisconnectChargingDeviceReqType(stream, &exiDoc->DisconnectChargingDeviceReq);
exiDoc->DisconnectChargingDeviceReq_isUsed = 1u;
break;
case 36:
/* START_ELEMENT({urn:iso:15118:2:2016:MsgBody}DisconnectChargingDeviceRes) */
- errn = decode_v2gDisconnectChargingDeviceResType(stream, &exiDoc->DisconnectChargingDeviceRes);
+ errn = decode_iso2DisconnectChargingDeviceResType(stream, &exiDoc->DisconnectChargingDeviceRes);
exiDoc->DisconnectChargingDeviceRes_isUsed = 1u;
break;
case 37:
/* START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}EVEnergyTransferParameter) */
- errn = decode_v2gEVEnergyTransferParameterType(stream, &exiDoc->EVEnergyTransferParameter);
+ errn = decode_iso2EVEnergyTransferParameterType(stream, &exiDoc->EVEnergyTransferParameter);
exiDoc->EVEnergyTransferParameter_isUsed = 1u;
break;
case 38:
- /* START_ELEMENT({urn:iso:15118:2:2016:MsgBody}EVErrorInformation) */
- errn = decode_v2gEVErrorInformationType(stream, &exiDoc->EVErrorInformation);
- exiDoc->EVErrorInformation_isUsed = 1u;
- break;
- case 39:
/* START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}EVFinePositioningParameters) */
- errn = decode_v2gEVFinePositioningParametersType(stream, &exiDoc->EVFinePositioningParameters);
+ errn = decode_iso2EVFinePositioningParametersType(stream, &exiDoc->EVFinePositioningParameters);
exiDoc->EVFinePositioningParameters_isUsed = 1u;
break;
- case 40:
+ case 39:
/* START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}EVFinePositioningSetupParameters) */
- errn = decode_v2gEVFinePositioningSetupParametersType(stream, &exiDoc->EVFinePositioningSetupParameters);
+ errn = decode_iso2EVFinePositioningSetupParametersType(stream, &exiDoc->EVFinePositioningSetupParameters);
exiDoc->EVFinePositioningSetupParameters_isUsed = 1u;
break;
- case 41:
+ case 40:
/* START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}EVSEEnergyTransferParameter) */
- errn = decode_v2gEVSEEnergyTransferParameterType(stream, &exiDoc->EVSEEnergyTransferParameter);
+ errn = decode_iso2EVSEEnergyTransferParameterType(stream, &exiDoc->EVSEEnergyTransferParameter);
exiDoc->EVSEEnergyTransferParameter_isUsed = 1u;
break;
- case 42:
- /* START_ELEMENT({urn:iso:15118:2:2016:MsgBody}EVSEErrorInformation) */
- errn = decode_v2gEVSEErrorInformationType(stream, &exiDoc->EVSEErrorInformation);
- exiDoc->EVSEErrorInformation_isUsed = 1u;
- break;
- case 43:
+ case 41:
/* START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}EVSEFinePositioningParameters) */
- errn = decode_v2gEVSEFinePositioningParametersType(stream, &exiDoc->EVSEFinePositioningParameters);
+ errn = decode_iso2EVSEFinePositioningParametersType(stream, &exiDoc->EVSEFinePositioningParameters);
exiDoc->EVSEFinePositioningParameters_isUsed = 1u;
break;
- case 44:
+ case 42:
/* START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}EVSEFinePositioningSetupParameters) */
- errn = decode_v2gEVSEFinePositioningSetupParametersType(stream, &exiDoc->EVSEFinePositioningSetupParameters);
+ errn = decode_iso2EVSEFinePositioningSetupParametersType(stream, &exiDoc->EVSEFinePositioningSetupParameters);
exiDoc->EVSEFinePositioningSetupParameters_isUsed = 1u;
break;
- case 45:
- /* START_ELEMENT({urn:iso:15118:2:2016:MsgBody}ErrorInformation) */
- errn = decode_v2gBodyBaseType(stream, &exiDoc->ErrorInformation);
- exiDoc->ErrorInformation_isUsed = 1u;
- break;
- case 46:
+ case 43:
/* START_ELEMENT({urn:iso:15118:2:2016:MsgBody}FinePositioningReq) */
- errn = decode_v2gFinePositioningReqType(stream, &exiDoc->FinePositioningReq);
+ errn = decode_iso2FinePositioningReqType(stream, &exiDoc->FinePositioningReq);
exiDoc->FinePositioningReq_isUsed = 1u;
break;
- case 47:
+ case 44:
/* START_ELEMENT({urn:iso:15118:2:2016:MsgBody}FinePositioningRes) */
- errn = decode_v2gFinePositioningResType(stream, &exiDoc->FinePositioningRes);
+ errn = decode_iso2FinePositioningResType(stream, &exiDoc->FinePositioningRes);
exiDoc->FinePositioningRes_isUsed = 1u;
break;
- case 48:
+ case 45:
/* START_ELEMENT({urn:iso:15118:2:2016:MsgBody}FinePositioningSetupReq) */
- errn = decode_v2gFinePositioningSetupReqType(stream, &exiDoc->FinePositioningSetupReq);
+ errn = decode_iso2FinePositioningSetupReqType(stream, &exiDoc->FinePositioningSetupReq);
exiDoc->FinePositioningSetupReq_isUsed = 1u;
break;
- case 49:
+ case 46:
/* START_ELEMENT({urn:iso:15118:2:2016:MsgBody}FinePositioningSetupRes) */
- errn = decode_v2gFinePositioningSetupResType(stream, &exiDoc->FinePositioningSetupRes);
+ errn = decode_iso2FinePositioningSetupResType(stream, &exiDoc->FinePositioningSetupRes);
exiDoc->FinePositioningSetupRes_isUsed = 1u;
break;
- case 50:
+ case 47:
/* START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}Generic_EVFinePositioningParameters) */
- errn = decode_v2gGeneric_EVFinePositioningParametersType(stream, &exiDoc->Generic_EVFinePositioningParameters);
+ errn = decode_iso2Generic_EVFinePositioningParametersType(stream, &exiDoc->Generic_EVFinePositioningParameters);
exiDoc->Generic_EVFinePositioningParameters_isUsed = 1u;
break;
- case 51:
+ case 48:
/* START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}Generic_EVSEFinePositioningParameters) */
- errn = decode_v2gGeneric_EVSEFinePositioningParametersType(stream, &exiDoc->Generic_EVSEFinePositioningParameters);
+ errn = decode_iso2Generic_EVSEFinePositioningParametersType(stream, &exiDoc->Generic_EVSEFinePositioningParameters);
exiDoc->Generic_EVSEFinePositioningParameters_isUsed = 1u;
break;
- case 52:
+ case 49:
/* START_ELEMENT({http://www.w3.org/2000/09/xmldsig#}KeyInfo) */
- errn = decode_v2gKeyInfoType(stream, &exiDoc->KeyInfo);
+ errn = decode_iso2KeyInfoType(stream, &exiDoc->KeyInfo);
exiDoc->KeyInfo_isUsed = 1u;
break;
- case 53:
+ case 50:
/* START_ELEMENT({http://www.w3.org/2000/09/xmldsig#}KeyName) */
/* First(xsi:type)StartTag[CHARACTERS[STRING]] */
errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
@@ -102659,57 +83114,57 @@ int decode_v2gExiDocument(bitstream_t* stream, struct v2gEXIDocument* exiDoc) {
}
}
break;
- case 54:
+ case 51:
/* START_ELEMENT({http://www.w3.org/2000/09/xmldsig#}KeyValue) */
- errn = decode_v2gKeyValueType(stream, &exiDoc->KeyValue);
+ errn = decode_iso2KeyValueType(stream, &exiDoc->KeyValue);
exiDoc->KeyValue_isUsed = 1u;
break;
- case 55:
+ case 52:
/* START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}LFA_EVFinePositioningParameters) */
- errn = decode_v2gLFA_EVFinePositioningParametersType(stream, &exiDoc->LFA_EVFinePositioningParameters);
+ errn = decode_iso2LFA_EVFinePositioningParametersType(stream, &exiDoc->LFA_EVFinePositioningParameters);
exiDoc->LFA_EVFinePositioningParameters_isUsed = 1u;
break;
- case 56:
+ case 53:
/* START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}LFA_EVFinePositioningSetupParameters) */
- errn = decode_v2gLFA_EVFinePositioningSetupParametersType(stream, &exiDoc->LFA_EVFinePositioningSetupParameters);
+ errn = decode_iso2LFA_EVFinePositioningSetupParametersType(stream, &exiDoc->LFA_EVFinePositioningSetupParameters);
exiDoc->LFA_EVFinePositioningSetupParameters_isUsed = 1u;
break;
- case 57:
+ case 54:
+ /* START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}LFA_EVSEFinePositioningParameters) */
+ errn = decode_iso2LFA_EVSEFinePositioningParametersType(stream, &exiDoc->LFA_EVSEFinePositioningParameters);
+ exiDoc->LFA_EVSEFinePositioningParameters_isUsed = 1u;
+ break;
+ case 55:
/* START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}LFA_EVSEFinePositioningSetupParameters) */
- errn = decode_v2gLFA_EVSEFinePositioningSetupParametersType(stream, &exiDoc->LFA_EVSEFinePositioningSetupParameters);
+ errn = decode_iso2LFA_EVSEFinePositioningSetupParametersType(stream, &exiDoc->LFA_EVSEFinePositioningSetupParameters);
exiDoc->LFA_EVSEFinePositioningSetupParameters_isUsed = 1u;
break;
- case 58:
- /* START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}LF_EVSEFinePositioningParameters) */
- errn = decode_v2gLF_EVSEFinePositioningParametersType(stream, &exiDoc->LF_EVSEFinePositioningParameters);
- exiDoc->LF_EVSEFinePositioningParameters_isUsed = 1u;
- break;
- case 59:
+ case 56:
/* START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MV_EVSEFinePositioningParameters) */
- errn = decode_v2gMV_EVSEFinePositioningParametersType(stream, &exiDoc->MV_EVSEFinePositioningParameters);
+ errn = decode_iso2MV_EVSEFinePositioningParametersType(stream, &exiDoc->MV_EVSEFinePositioningParameters);
exiDoc->MV_EVSEFinePositioningParameters_isUsed = 1u;
break;
- case 60:
+ case 57:
/* START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MV_EVSEFinePositioningSetupParameters) */
- errn = decode_v2gMV_EVSEFinePositioningSetupParametersType(stream, &exiDoc->MV_EVSEFinePositioningSetupParameters);
+ errn = decode_iso2MV_EVSEFinePositioningSetupParametersType(stream, &exiDoc->MV_EVSEFinePositioningSetupParameters);
exiDoc->MV_EVSEFinePositioningSetupParameters_isUsed = 1u;
break;
- case 61:
+ case 58:
/* START_ELEMENT({http://www.w3.org/2000/09/xmldsig#}Manifest) */
- errn = decode_v2gManifestType(stream, &exiDoc->Manifest);
+ errn = decode_iso2ManifestType(stream, &exiDoc->Manifest);
exiDoc->Manifest_isUsed = 1u;
break;
- case 62:
+ case 59:
/* START_ELEMENT({urn:iso:15118:2:2016:MsgBody}MeteringReceiptReq) */
- errn = decode_v2gMeteringReceiptReqType(stream, &exiDoc->MeteringReceiptReq);
+ errn = decode_iso2MeteringReceiptReqType(stream, &exiDoc->MeteringReceiptReq);
exiDoc->MeteringReceiptReq_isUsed = 1u;
break;
- case 63:
+ case 60:
/* START_ELEMENT({urn:iso:15118:2:2016:MsgBody}MeteringReceiptRes) */
- errn = decode_v2gV2GResponseType(stream, &exiDoc->MeteringReceiptRes);
+ errn = decode_iso2MeteringReceiptResType(stream, &exiDoc->MeteringReceiptRes);
exiDoc->MeteringReceiptRes_isUsed = 1u;
break;
- case 64:
+ case 61:
/* START_ELEMENT({http://www.w3.org/2000/09/xmldsig#}MgmtData) */
/* First(xsi:type)StartTag[CHARACTERS[STRING]] */
errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
@@ -102732,264 +83187,264 @@ int decode_v2gExiDocument(bitstream_t* stream, struct v2gEXIDocument* exiDoc) {
}
}
break;
- case 65:
+ case 62:
/* START_ELEMENT({http://www.w3.org/2000/09/xmldsig#}Object) */
- errn = decode_v2gObjectType(stream, &exiDoc->Object);
+ errn = decode_iso2ObjectType(stream, &exiDoc->Object);
exiDoc->Object_isUsed = 1u;
break;
- case 66:
+ case 63:
/* START_ELEMENT({http://www.w3.org/2000/09/xmldsig#}PGPData) */
- errn = decode_v2gPGPDataType(stream, &exiDoc->PGPData);
+ errn = decode_iso2PGPDataType(stream, &exiDoc->PGPData);
exiDoc->PGPData_isUsed = 1u;
break;
- case 67:
+ case 64:
/* START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}PMaxScheduleEntry) */
- errn = decode_v2gPMaxScheduleEntryType(stream, &exiDoc->PMaxScheduleEntry);
+ errn = decode_iso2PMaxScheduleEntryType(stream, &exiDoc->PMaxScheduleEntry);
exiDoc->PMaxScheduleEntry_isUsed = 1u;
break;
- case 68:
+ case 65:
/* START_ELEMENT({urn:iso:15118:2:2016:MsgBody}PairingReq) */
- errn = decode_v2gPairingReqType(stream, &exiDoc->PairingReq);
+ errn = decode_iso2PairingReqType(stream, &exiDoc->PairingReq);
exiDoc->PairingReq_isUsed = 1u;
break;
- case 69:
+ case 66:
/* START_ELEMENT({urn:iso:15118:2:2016:MsgBody}PairingRes) */
- errn = decode_v2gPairingResType(stream, &exiDoc->PairingRes);
+ errn = decode_iso2PairingResType(stream, &exiDoc->PairingRes);
exiDoc->PairingRes_isUsed = 1u;
break;
- case 70:
+ case 67:
/* START_ELEMENT({urn:iso:15118:2:2016:MsgBody}PaymentDetailsReq) */
- errn = decode_v2gPaymentDetailsReqType(stream, &exiDoc->PaymentDetailsReq);
+ errn = decode_iso2PaymentDetailsReqType(stream, &exiDoc->PaymentDetailsReq);
exiDoc->PaymentDetailsReq_isUsed = 1u;
break;
- case 71:
+ case 68:
/* START_ELEMENT({urn:iso:15118:2:2016:MsgBody}PaymentDetailsRes) */
- errn = decode_v2gPaymentDetailsResType(stream, &exiDoc->PaymentDetailsRes);
+ errn = decode_iso2PaymentDetailsResType(stream, &exiDoc->PaymentDetailsRes);
exiDoc->PaymentDetailsRes_isUsed = 1u;
break;
- case 72:
+ case 69:
/* START_ELEMENT({urn:iso:15118:2:2016:MsgBody}PaymentServiceSelectionReq) */
- errn = decode_v2gPaymentServiceSelectionReqType(stream, &exiDoc->PaymentServiceSelectionReq);
+ errn = decode_iso2PaymentServiceSelectionReqType(stream, &exiDoc->PaymentServiceSelectionReq);
exiDoc->PaymentServiceSelectionReq_isUsed = 1u;
break;
- case 73:
+ case 70:
/* START_ELEMENT({urn:iso:15118:2:2016:MsgBody}PaymentServiceSelectionRes) */
- errn = decode_v2gV2GResponseType(stream, &exiDoc->PaymentServiceSelectionRes);
+ errn = decode_iso2PaymentServiceSelectionResType(stream, &exiDoc->PaymentServiceSelectionRes);
exiDoc->PaymentServiceSelectionRes_isUsed = 1u;
break;
- case 74:
+ case 71:
/* START_ELEMENT({urn:iso:15118:2:2016:MsgBody}PowerDeliveryReq) */
- errn = decode_v2gPowerDeliveryReqType(stream, &exiDoc->PowerDeliveryReq);
+ errn = decode_iso2PowerDeliveryReqType(stream, &exiDoc->PowerDeliveryReq);
exiDoc->PowerDeliveryReq_isUsed = 1u;
break;
- case 75:
+ case 72:
/* START_ELEMENT({urn:iso:15118:2:2016:MsgBody}PowerDeliveryRes) */
- errn = decode_v2gPowerDeliveryResType(stream, &exiDoc->PowerDeliveryRes);
+ errn = decode_iso2PowerDeliveryResType(stream, &exiDoc->PowerDeliveryRes);
exiDoc->PowerDeliveryRes_isUsed = 1u;
break;
- case 76:
+ case 73:
/* START_ELEMENT({urn:iso:15118:2:2016:MsgBody}PowerDemandReq) */
- errn = decode_v2gPowerDemandReqType(stream, &exiDoc->PowerDemandReq);
+ errn = decode_iso2PowerDemandReqType(stream, &exiDoc->PowerDemandReq);
exiDoc->PowerDemandReq_isUsed = 1u;
break;
- case 77:
+ case 74:
/* START_ELEMENT({urn:iso:15118:2:2016:MsgBody}PowerDemandRes) */
- errn = decode_v2gPowerDemandResType(stream, &exiDoc->PowerDemandRes);
+ errn = decode_iso2PowerDemandResType(stream, &exiDoc->PowerDemandRes);
exiDoc->PowerDemandRes_isUsed = 1u;
break;
- case 78:
+ case 75:
/* START_ELEMENT({urn:iso:15118:2:2016:MsgBody}PreChargeReq) */
- errn = decode_v2gPreChargeReqType(stream, &exiDoc->PreChargeReq);
+ errn = decode_iso2PreChargeReqType(stream, &exiDoc->PreChargeReq);
exiDoc->PreChargeReq_isUsed = 1u;
break;
- case 79:
+ case 76:
/* START_ELEMENT({urn:iso:15118:2:2016:MsgBody}PreChargeRes) */
- errn = decode_v2gPreChargeResType(stream, &exiDoc->PreChargeRes);
+ errn = decode_iso2PreChargeResType(stream, &exiDoc->PreChargeRes);
exiDoc->PreChargeRes_isUsed = 1u;
break;
- case 80:
+ case 77:
/* START_ELEMENT({http://www.w3.org/2000/09/xmldsig#}RSAKeyValue) */
- errn = decode_v2gRSAKeyValueType(stream, &exiDoc->RSAKeyValue);
+ errn = decode_iso2RSAKeyValueType(stream, &exiDoc->RSAKeyValue);
exiDoc->RSAKeyValue_isUsed = 1u;
break;
- case 81:
+ case 78:
/* START_ELEMENT({http://www.w3.org/2000/09/xmldsig#}Reference) */
- errn = decode_v2gReferenceType(stream, &exiDoc->Reference);
+ errn = decode_iso2ReferenceType(stream, &exiDoc->Reference);
exiDoc->Reference_isUsed = 1u;
break;
- case 82:
+ case 79:
/* START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}RelativeTimeInterval) */
- errn = decode_v2gRelativeTimeIntervalType(stream, &exiDoc->RelativeTimeInterval);
+ errn = decode_iso2RelativeTimeIntervalType(stream, &exiDoc->RelativeTimeInterval);
exiDoc->RelativeTimeInterval_isUsed = 1u;
break;
- case 83:
+ case 80:
/* START_ELEMENT({http://www.w3.org/2000/09/xmldsig#}RetrievalMethod) */
- errn = decode_v2gRetrievalMethodType(stream, &exiDoc->RetrievalMethod);
+ errn = decode_iso2RetrievalMethodType(stream, &exiDoc->RetrievalMethod);
exiDoc->RetrievalMethod_isUsed = 1u;
break;
- case 84:
+ case 81:
/* START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SAScheduleList) */
- errn = decode_v2gSAScheduleListType(stream, &exiDoc->SAScheduleList);
+ errn = decode_iso2SAScheduleListType(stream, &exiDoc->SAScheduleList);
exiDoc->SAScheduleList_isUsed = 1u;
break;
- case 85:
+ case 82:
/* START_ELEMENT({http://www.w3.org/2000/09/xmldsig#}SPKIData) */
- errn = decode_v2gSPKIDataType(stream, &exiDoc->SPKIData);
+ errn = decode_iso2SPKIDataType(stream, &exiDoc->SPKIData);
exiDoc->SPKIData_isUsed = 1u;
break;
- case 86:
+ case 83:
/* START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SalesTariffEntry) */
- errn = decode_v2gSalesTariffEntryType(stream, &exiDoc->SalesTariffEntry);
+ errn = decode_iso2SalesTariffEntryType(stream, &exiDoc->SalesTariffEntry);
exiDoc->SalesTariffEntry_isUsed = 1u;
break;
- case 87:
+ case 84:
/* START_ELEMENT({urn:iso:15118:2:2016:MsgBody}ServiceDetailReq) */
- errn = decode_v2gServiceDetailReqType(stream, &exiDoc->ServiceDetailReq);
+ errn = decode_iso2ServiceDetailReqType(stream, &exiDoc->ServiceDetailReq);
exiDoc->ServiceDetailReq_isUsed = 1u;
break;
- case 88:
+ case 85:
/* START_ELEMENT({urn:iso:15118:2:2016:MsgBody}ServiceDetailRes) */
- errn = decode_v2gServiceDetailResType(stream, &exiDoc->ServiceDetailRes);
+ errn = decode_iso2ServiceDetailResType(stream, &exiDoc->ServiceDetailRes);
exiDoc->ServiceDetailRes_isUsed = 1u;
break;
- case 89:
+ case 86:
/* START_ELEMENT({urn:iso:15118:2:2016:MsgBody}ServiceDiscoveryReq) */
- errn = decode_v2gServiceDiscoveryReqType(stream, &exiDoc->ServiceDiscoveryReq);
+ errn = decode_iso2ServiceDiscoveryReqType(stream, &exiDoc->ServiceDiscoveryReq);
exiDoc->ServiceDiscoveryReq_isUsed = 1u;
break;
- case 90:
+ case 87:
/* START_ELEMENT({urn:iso:15118:2:2016:MsgBody}ServiceDiscoveryRes) */
- errn = decode_v2gServiceDiscoveryResType(stream, &exiDoc->ServiceDiscoveryRes);
+ errn = decode_iso2ServiceDiscoveryResType(stream, &exiDoc->ServiceDiscoveryRes);
exiDoc->ServiceDiscoveryRes_isUsed = 1u;
break;
- case 91:
+ case 88:
/* START_ELEMENT({urn:iso:15118:2:2016:MsgBody}SessionSetupReq) */
- errn = decode_v2gSessionSetupReqType(stream, &exiDoc->SessionSetupReq);
+ errn = decode_iso2SessionSetupReqType(stream, &exiDoc->SessionSetupReq);
exiDoc->SessionSetupReq_isUsed = 1u;
break;
- case 92:
+ case 89:
/* START_ELEMENT({urn:iso:15118:2:2016:MsgBody}SessionSetupRes) */
- errn = decode_v2gSessionSetupResType(stream, &exiDoc->SessionSetupRes);
+ errn = decode_iso2SessionSetupResType(stream, &exiDoc->SessionSetupRes);
exiDoc->SessionSetupRes_isUsed = 1u;
break;
- case 93:
+ case 90:
/* START_ELEMENT({urn:iso:15118:2:2016:MsgBody}SessionStopReq) */
- errn = decode_v2gSessionStopReqType(stream, &exiDoc->SessionStopReq);
+ errn = decode_iso2SessionStopReqType(stream, &exiDoc->SessionStopReq);
exiDoc->SessionStopReq_isUsed = 1u;
break;
- case 94:
+ case 91:
/* START_ELEMENT({urn:iso:15118:2:2016:MsgBody}SessionStopRes) */
- errn = decode_v2gV2GResponseType(stream, &exiDoc->SessionStopRes);
+ errn = decode_iso2SessionStopResType(stream, &exiDoc->SessionStopRes);
exiDoc->SessionStopRes_isUsed = 1u;
break;
- case 95:
+ case 92:
/* START_ELEMENT({http://www.w3.org/2000/09/xmldsig#}Signature) */
- errn = decode_v2gSignatureType(stream, &exiDoc->Signature);
+ errn = decode_iso2SignatureType(stream, &exiDoc->Signature);
exiDoc->Signature_isUsed = 1u;
break;
- case 96:
+ case 93:
/* START_ELEMENT({http://www.w3.org/2000/09/xmldsig#}SignatureMethod) */
- errn = decode_v2gSignatureMethodType(stream, &exiDoc->SignatureMethod);
+ errn = decode_iso2SignatureMethodType(stream, &exiDoc->SignatureMethod);
exiDoc->SignatureMethod_isUsed = 1u;
break;
- case 97:
+ case 94:
/* START_ELEMENT({http://www.w3.org/2000/09/xmldsig#}SignatureProperties) */
- errn = decode_v2gSignaturePropertiesType(stream, &exiDoc->SignatureProperties);
+ errn = decode_iso2SignaturePropertiesType(stream, &exiDoc->SignatureProperties);
exiDoc->SignatureProperties_isUsed = 1u;
break;
- case 98:
+ case 95:
/* START_ELEMENT({http://www.w3.org/2000/09/xmldsig#}SignatureProperty) */
- errn = decode_v2gSignaturePropertyType(stream, &exiDoc->SignatureProperty);
+ errn = decode_iso2SignaturePropertyType(stream, &exiDoc->SignatureProperty);
exiDoc->SignatureProperty_isUsed = 1u;
break;
- case 99:
+ case 96:
/* START_ELEMENT({http://www.w3.org/2000/09/xmldsig#}SignatureValue) */
- errn = decode_v2gSignatureValueType(stream, &exiDoc->SignatureValue);
+ errn = decode_iso2SignatureValueType(stream, &exiDoc->SignatureValue);
exiDoc->SignatureValue_isUsed = 1u;
break;
- case 100:
+ case 97:
/* START_ELEMENT({http://www.w3.org/2000/09/xmldsig#}SignedInfo) */
- errn = decode_v2gSignedInfoType(stream, &exiDoc->SignedInfo);
+ errn = decode_iso2SignedInfoType(stream, &exiDoc->SignedInfo);
exiDoc->SignedInfo_isUsed = 1u;
break;
- case 101:
+ case 98:
/* START_ELEMENT({urn:iso:15118:2:2016:MsgBody}SystemStatusReq) */
- errn = decode_v2gSystemStatusReqType(stream, &exiDoc->SystemStatusReq);
+ errn = decode_iso2SystemStatusReqType(stream, &exiDoc->SystemStatusReq);
exiDoc->SystemStatusReq_isUsed = 1u;
break;
- case 102:
+ case 99:
/* START_ELEMENT({urn:iso:15118:2:2016:MsgBody}SystemStatusRes) */
- errn = decode_v2gSystemStatusResType(stream, &exiDoc->SystemStatusRes);
+ errn = decode_iso2SystemStatusResType(stream, &exiDoc->SystemStatusRes);
exiDoc->SystemStatusRes_isUsed = 1u;
break;
- case 103:
+ case 100:
/* START_ELEMENT({http://www.w3.org/2000/09/xmldsig#}Transform) */
- errn = decode_v2gTransformType(stream, &exiDoc->Transform);
+ errn = decode_iso2TransformType(stream, &exiDoc->Transform);
exiDoc->Transform_isUsed = 1u;
break;
- case 104:
+ case 101:
/* START_ELEMENT({http://www.w3.org/2000/09/xmldsig#}Transforms) */
- errn = decode_v2gTransformsType(stream, &exiDoc->Transforms);
+ errn = decode_iso2TransformsType(stream, &exiDoc->Transforms);
exiDoc->Transforms_isUsed = 1u;
break;
- case 105:
+ case 102:
/* START_ELEMENT({urn:iso:15118:2:2016:MsgBody}V2GRequest) */
- errn = decode_v2gBodyBaseType(stream, &exiDoc->V2GRequest);
+ errn = decode_iso2BodyBaseType(stream, &exiDoc->V2GRequest);
exiDoc->V2GRequest_isUsed = 1u;
break;
- case 106:
+ case 103:
/* START_ELEMENT({urn:iso:15118:2:2016:MsgBody}V2GResponse) */
- errn = decode_v2gV2GResponseType(stream, &exiDoc->V2GResponse);
+ errn = decode_iso2V2GResponseType(stream, &exiDoc->V2GResponse);
exiDoc->V2GResponse_isUsed = 1u;
break;
- case 107:
+ case 104:
/* START_ELEMENT({urn:iso:15118:2:2016:MsgDef}V2G_Message) */
- errn = decode_v2gAnonType_V2G_Message(stream, &exiDoc->V2G_Message);
+ errn = decode_iso2AnonType_V2G_Message(stream, &exiDoc->V2G_Message);
exiDoc->V2G_Message_isUsed = 1u;
break;
- case 108:
+ case 105:
/* START_ELEMENT({urn:iso:15118:2:2016:MsgBody}VehicleCheckInReq) */
- errn = decode_v2gVehicleCheckInReqType(stream, &exiDoc->VehicleCheckInReq);
+ errn = decode_iso2VehicleCheckInReqType(stream, &exiDoc->VehicleCheckInReq);
exiDoc->VehicleCheckInReq_isUsed = 1u;
break;
- case 109:
+ case 106:
/* START_ELEMENT({urn:iso:15118:2:2016:MsgBody}VehicleCheckInRes) */
- errn = decode_v2gVehicleCheckInResType(stream, &exiDoc->VehicleCheckInRes);
+ errn = decode_iso2VehicleCheckInResType(stream, &exiDoc->VehicleCheckInRes);
exiDoc->VehicleCheckInRes_isUsed = 1u;
break;
- case 110:
+ case 107:
/* START_ELEMENT({urn:iso:15118:2:2016:MsgBody}VehicleCheckOutReq) */
- errn = decode_v2gVehicleCheckOutReqType(stream, &exiDoc->VehicleCheckOutReq);
+ errn = decode_iso2VehicleCheckOutReqType(stream, &exiDoc->VehicleCheckOutReq);
exiDoc->VehicleCheckOutReq_isUsed = 1u;
break;
- case 111:
+ case 108:
/* START_ELEMENT({urn:iso:15118:2:2016:MsgBody}VehicleCheckOutRes) */
- errn = decode_v2gVehicleCheckOutResType(stream, &exiDoc->VehicleCheckOutRes);
+ errn = decode_iso2VehicleCheckOutResType(stream, &exiDoc->VehicleCheckOutRes);
exiDoc->VehicleCheckOutRes_isUsed = 1u;
break;
- case 112:
+ case 109:
/* START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}WPT_EVChargeParameter) */
- errn = decode_v2gWPT_EVChargeParameterType(stream, &exiDoc->WPT_EVChargeParameter);
+ errn = decode_iso2WPT_EVChargeParameterType(stream, &exiDoc->WPT_EVChargeParameter);
exiDoc->WPT_EVChargeParameter_isUsed = 1u;
break;
- case 113:
+ case 110:
/* START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}WPT_EVSEChargeParameter) */
- errn = decode_v2gWPT_EVSEChargeParameterType(stream, &exiDoc->WPT_EVSEChargeParameter);
+ errn = decode_iso2WPT_EVSEChargeParameterType(stream, &exiDoc->WPT_EVSEChargeParameter);
exiDoc->WPT_EVSEChargeParameter_isUsed = 1u;
break;
- case 114:
+ case 111:
/* START_ELEMENT({urn:iso:15118:2:2016:MsgBody}WeldingDetectionReq) */
- errn = decode_v2gBodyBaseType(stream, &exiDoc->WeldingDetectionReq);
+ errn = decode_iso2WeldingDetectionReqType(stream, &exiDoc->WeldingDetectionReq);
exiDoc->WeldingDetectionReq_isUsed = 1u;
break;
- case 115:
+ case 112:
/* START_ELEMENT({urn:iso:15118:2:2016:MsgBody}WeldingDetectionRes) */
- errn = decode_v2gWeldingDetectionResType(stream, &exiDoc->WeldingDetectionRes);
+ errn = decode_iso2WeldingDetectionResType(stream, &exiDoc->WeldingDetectionRes);
exiDoc->WeldingDetectionRes_isUsed = 1u;
break;
- case 116:
+ case 113:
/* START_ELEMENT({http://www.w3.org/2000/09/xmldsig#}X509Data) */
- errn = decode_v2gX509DataType(stream, &exiDoc->X509Data);
+ errn = decode_iso2X509DataType(stream, &exiDoc->X509Data);
exiDoc->X509Data_isUsed = 1u;
break;
default:
@@ -103007,44 +83462,44 @@ int decode_v2gExiDocument(bitstream_t* stream, struct v2gEXIDocument* exiDoc) {
return errn;
}
-#if DEPLOY_ISO_CODEC_FRAGMENT == SUPPORT_YES
-int decode_v2gExiFragment(bitstream_t* stream, struct v2gEXIFragment* exiFrag) {
+#if DEPLOY_ISO2_CODEC_FRAGMENT == SUPPORT_YES
+int decode_iso2ExiFragment(bitstream_t* stream, struct iso2EXIFragment* exiFrag) {
errn = readEXIHeader(stream);
if(errn == 0) {
- /* FragmentContent[START_ELEMENT({urn:iso:15118:2:2016:MsgBody}AC_BidirectionalControlReq), START_ELEMENT({urn:iso:15118:2:2016:MsgBody}AC_BidirectionalControlRes), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}AC_EVBidirectionalParameter), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}AC_EVChargeParameter), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}AC_EVSEBidirectionalParameter), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}AC_EVSEChargeParameter), START_ELEMENT({urn:iso:15118:2:2016:MsgBody}AlignmentCheckParameters), START_ELEMENT({urn:iso:15118:2:2016:MsgBody}AlignmentCheckReq), START_ELEMENT({urn:iso:15118:2:2016:MsgBody}AlignmentCheckRes), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}AlignmentOffset), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}AngleGAtoVA), START_ELEMENT({urn:iso:15118:2:2016:MsgBody}AuthorizationReq), START_ELEMENT({urn:iso:15118:2:2016:MsgBody}AuthorizationRes), START_ELEMENT({urn:iso:15118:2:2016:MsgDef}Body), START_ELEMENT({urn:iso:15118:2:2016:MsgBody}BodyElement), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}BulkChargingComplete), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}BulkSOC), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}BuyBackTariff), START_ELEMENT({urn:iso:15118:2:2016:MsgBody}CableCheckReq), START_ELEMENT({urn:iso:15118:2:2016:MsgBody}CableCheckRes), START_ELEMENT({http://www.w3.org/2000/09/xmldsig#}CanonicalizationMethod), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}Certificate), START_ELEMENT({urn:iso:15118:2:2016:MsgBody}CertificateInstallationReq), START_ELEMENT({urn:iso:15118:2:2016:MsgBody}CertificateInstallationRes), START_ELEMENT({urn:iso:15118:2:2016:MsgBody}CertificateUpdateReq), START_ELEMENT({urn:iso:15118:2:2016:MsgBody}CertificateUpdateRes), START_ELEMENT({urn:iso:15118:2:2016:MsgBody}ChargeParameterDiscoveryReq), START_ELEMENT({urn:iso:15118:2:2016:MsgBody}ChargeParameterDiscoveryRes), START_ELEMENT({urn:iso:15118:2:2016:MsgBody}ChargeProgress), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}ChargingComplete), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}ChargingPerformance), START_ELEMENT({urn:iso:15118:2:2016:MsgBody}ChargingProfile), START_ELEMENT({urn:iso:15118:2:2016:MsgBody}ChargingSession), START_ELEMENT({urn:iso:15118:2:2016:MsgBody}ChargingStatusReq), START_ELEMENT({urn:iso:15118:2:2016:MsgBody}ChargingStatusRes), START_ELEMENT({urn:iso:15118:2:2016:MsgBody}CheckOutTime), START_ELEMENT({urn:iso:15118:2:2016:MsgBody}ConnectChargingDeviceReq), START_ELEMENT({urn:iso:15118:2:2016:MsgBody}ConnectChargingDeviceRes), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}ConsumptionCost), START_ELEMENT({urn:iso:15118:2:2016:MsgBody}ContractSignatureCertChain), START_ELEMENT({urn:iso:15118:2:2016:MsgBody}ContractSignatureEncryptedPrivateKey), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}Cost), START_ELEMENT({urn:iso:15118:2:2016:MsgBody}CurrentDemandReq), START_ELEMENT({urn:iso:15118:2:2016:MsgBody}CurrentDemandRes), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}CurrentRange), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}CurrentSOC), START_ELEMENT({urn:iso:15118:2:2016:MsgBody}DC_BidirectionalControlReq), START_ELEMENT({urn:iso:15118:2:2016:MsgBody}DC_BidirectionalControlRes), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}DC_EVBidirectionalParameter), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}DC_EVChargeParameter), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}DC_EVSEBidirectionalParameter), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}DC_EVSEChargeParameter), START_ELEMENT({urn:iso:15118:2:2016:MsgBody}DHpublickey), START_ELEMENT({http://www.w3.org/2000/09/xmldsig#}DSAKeyValue), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}DepartureTime), START_ELEMENT({http://www.w3.org/2000/09/xmldsig#}DigestMethod), START_ELEMENT({http://www.w3.org/2000/09/xmldsig#}DigestValue), START_ELEMENT({urn:iso:15118:2:2016:MsgBody}DisconnectChargingDeviceReq), START_ELEMENT({urn:iso:15118:2:2016:MsgBody}DisconnectChargingDeviceRes), START_ELEMENT({urn:iso:15118:2:2016:MsgBody}DisplayParameters), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}Distance), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}EPriceLevel), START_ELEMENT({urn:iso:15118:2:2016:MsgBody}EVCCID), START_ELEMENT({urn:iso:15118:2:2016:MsgBody}EVCheckInStatus), START_ELEMENT({urn:iso:15118:2:2016:MsgBody}EVCheckOutStatus), START_ELEMENT({urn:iso:15118:2:2016:MsgBody}EVElectricalChargingDeviceStatus), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}EVEnergyTransferParameter), START_ELEMENT({urn:iso:15118:2:2016:MsgBody}EVErrorInformation), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}EVFinePositioningParameters), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}EVFinePositioningSetupParameters), START_ELEMENT({urn:iso:15118:2:2016:MsgBody}EVInputPower), START_ELEMENT({urn:iso:15118:2:2016:MsgBody}EVMaximumChargeCurrent), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}EVMaximumChargeCurrent), START_ELEMENT({urn:iso:15118:2:2016:MsgBody}EVMaximumChargePower), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}EVMaximumChargePower), START_ELEMENT({urn:iso:15118:2:2016:MsgBody}EVMaximumCurrent), START_ELEMENT({urn:iso:15118:2:2016:MsgBody}EVMaximumDischargeCurrent), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}EVMaximumDischargeCurrent), START_ELEMENT({urn:iso:15118:2:2016:MsgBody}EVMaximumDischargePower), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}EVMaximumDischargePower), START_ELEMENT({urn:iso:15118:2:2016:MsgBody}EVMaximumEnergyRequest), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}EVMaximumEnergyRequest), START_ELEMENT({urn:iso:15118:2:2016:MsgBody}EVMaximumPower), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}EVMaximumPower), START_ELEMENT({urn:iso:15118:2:2016:MsgBody}EVMaximumVoltage), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}EVMaximumVoltage), START_ELEMENT({urn:iso:15118:2:2016:MsgBody}EVMechanicalChargingDeviceStatus), START_ELEMENT({urn:iso:15118:2:2016:MsgBody}EVMinimumChargeCurrent), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}EVMinimumChargeCurrent), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}EVMinimumChargePower), START_ELEMENT({urn:iso:15118:2:2016:MsgBody}EVMinimumDischargeCurrent), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}EVMinimumDischargeCurrent), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}EVMinimumDischargePower), START_ELEMENT({urn:iso:15118:2:2016:MsgBody}EVMinimumEnergyRequest), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}EVMinimumEnergyRequest), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}EVMinimumPower), START_ELEMENT({urn:iso:15118:2:2016:MsgBody}EVMinimumVoltage), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}EVMinimumVoltage), START_ELEMENT({urn:iso:15118:2:2016:MsgBody}EVOperation), START_ELEMENT({urn:iso:15118:2:2016:MsgBody}EVPresentActivePower), START_ELEMENT({urn:iso:15118:2:2016:MsgBody}EVPresentReactivePower), START_ELEMENT({urn:iso:15118:2:2016:MsgBody}EVProcessing), START_ELEMENT({urn:iso:15118:2:2016:MsgBody}EVSECheckOutStatus), START_ELEMENT({urn:iso:15118:2:2016:MsgBody}EVSECurrentLimitAchieved), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}EVSECurrentRegulationTolerance), START_ELEMENT({urn:iso:15118:2:2016:MsgBody}EVSEElectricalChargingDeviceStatus), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}EVSEEnergyToBeDelivered), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}EVSEEnergyTransferParameter), START_ELEMENT({urn:iso:15118:2:2016:MsgBody}EVSEErrorInformation), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}EVSEFinePositioningParameters), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}EVSEFinePositioningSetupParameters), START_ELEMENT({urn:iso:15118:2:2016:MsgBody}EVSEID), START_ELEMENT({urn:iso:15118:2:2016:MsgBody}EVSEMaximumChargeCurrent), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}EVSEMaximumChargeCurrent), START_ELEMENT({urn:iso:15118:2:2016:MsgBody}EVSEMaximumChargePower), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}EVSEMaximumChargePower), START_ELEMENT({urn:iso:15118:2:2016:MsgBody}EVSEMaximumCurrent), START_ELEMENT({urn:iso:15118:2:2016:MsgBody}EVSEMaximumDischargeCurrent), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}EVSEMaximumDischargeCurrent), START_ELEMENT({urn:iso:15118:2:2016:MsgBody}EVSEMaximumDischargePower), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}EVSEMaximumDischargePower), START_ELEMENT({urn:iso:15118:2:2016:MsgBody}EVSEMaximumPower), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}EVSEMaximumPower), START_ELEMENT({urn:iso:15118:2:2016:MsgBody}EVSEMaximumVoltage), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}EVSEMaximumVoltage), START_ELEMENT({urn:iso:15118:2:2016:MsgBody}EVSEMechanicalChargingDeviceStatus), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}EVSEMinimumChargeCurrent), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}EVSEMinimumDischargeCurrent), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}EVSEMinimumPower), START_ELEMENT({urn:iso:15118:2:2016:MsgBody}EVSEMinimumVoltage), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}EVSEMinimumVoltage), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}EVSENominalFrequency), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}EVSENominalVoltage), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}EVSENotification), START_ELEMENT({urn:iso:15118:2:2016:MsgBody}EVSEOutputPower), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}EVSEPeakCurrentRipple), START_ELEMENT({urn:iso:15118:2:2016:MsgBody}EVSEPowerLimitAchieved), START_ELEMENT({urn:iso:15118:2:2016:MsgBody}EVSEPresentCurrent), START_ELEMENT({urn:iso:15118:2:2016:MsgBody}EVSEPresentVoltage), START_ELEMENT({urn:iso:15118:2:2016:MsgBody}EVSEProcessing), START_ELEMENT({urn:iso:15118:2:2016:MsgBody}EVSEStatus), START_ELEMENT({urn:iso:15118:2:2016:MsgBody}EVSETargetPower), START_ELEMENT({urn:iso:15118:2:2016:MsgBody}EVSETargetReactivePower), START_ELEMENT({urn:iso:15118:2:2016:MsgBody}EVSETimeStamp), START_ELEMENT({urn:iso:15118:2:2016:MsgBody}EVSEVoltageLimitAchieved), START_ELEMENT({urn:iso:15118:2:2016:MsgBody}EVTargetCurrent), START_ELEMENT({urn:iso:15118:2:2016:MsgBody}EVTargetEnergyRequest), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}EVTargetEnergyRequest), START_ELEMENT({urn:iso:15118:2:2016:MsgBody}EVTargetPower), START_ELEMENT({urn:iso:15118:2:2016:MsgBody}EVTargetVoltage), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}EffectiveRadiatedPower), START_ELEMENT({urn:iso:15118:2:2016:MsgBody}EnergyTransferServiceList), START_ELEMENT({urn:iso:15118:2:2016:MsgBody}ErrorCode), START_ELEMENT({urn:iso:15118:2:2016:MsgBody}ErrorInformation), START_ELEMENT({http://www.w3.org/2000/09/xmldsig#}Exponent), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}Exponent), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}FODStatus), START_ELEMENT({urn:iso:15118:2:2016:MsgBody}FinePositioningReq), START_ELEMENT({urn:iso:15118:2:2016:MsgBody}FinePositioningRes), START_ELEMENT({urn:iso:15118:2:2016:MsgBody}FinePositioningSetupReq), START_ELEMENT({urn:iso:15118:2:2016:MsgBody}FinePositioningSetupRes), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}FreeService), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}FrequencyChannel), START_ELEMENT({http://www.w3.org/2000/09/xmldsig#}G), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}GAID), START_ELEMENT({urn:iso:15118:2:2016:MsgBody}GenChallenge), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}GenericParameters), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}Generic_EVFinePositioningParameters), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}Generic_EVSEFinePositioningParameters), START_ELEMENT({http://www.w3.org/2000/09/xmldsig#}HMACOutputLength), START_ELEMENT({urn:iso:15118:2:2016:MsgDef}Header), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}InletHot), START_ELEMENT({http://www.w3.org/2000/09/xmldsig#}J), START_ELEMENT({http://www.w3.org/2000/09/xmldsig#}KeyInfo), START_ELEMENT({http://www.w3.org/2000/09/xmldsig#}KeyName), START_ELEMENT({http://www.w3.org/2000/09/xmldsig#}KeyValue), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}LFA_EVFinePositioningParameters), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}LFA_EVFinePositioningSetupParameters), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}LFA_EVSEFinePositioningSetupParameters), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}LF_EVSEFinePositioningParameters), START_ELEMENT({urn:iso:15118:2:2016:MsgBody}ListOfRootCertificateIDs), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MV_EVSEFinePositioningParameters), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MV_EVSEFinePositioningSetupParameters), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MagneticVector), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MagneticVectorList), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MagneticVectorSetup), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MagneticVectorSetupList), START_ELEMENT({http://www.w3.org/2000/09/xmldsig#}Manifest), START_ELEMENT({urn:iso:15118:2:2016:MsgBody}MaxSupportingPoints), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MeasurementData), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MeterID), START_ELEMENT({urn:iso:15118:2:2016:MsgBody}MeterInfo), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MeterReadingCharged), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MeterReadingDischarged), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MeterStatus), START_ELEMENT({urn:iso:15118:2:2016:MsgBody}MeteringReceiptReq), START_ELEMENT({urn:iso:15118:2:2016:MsgBody}MeteringReceiptRes), START_ELEMENT({http://www.w3.org/2000/09/xmldsig#}MgmtData), START_ELEMENT({urn:iso:15118:2:2016:MsgBody}MinimumPMaxRequest), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MinimumPMaxScheduleEntry), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MinimumSOC), START_ELEMENT({http://www.w3.org/2000/09/xmldsig#}Modulus), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}NotificationMaxDelay), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}NumEPriceLevels), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}NumberOfSensors), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}NumberOfSignalPackages), START_ELEMENT({urn:iso:15118:2:2016:MsgBody}OEMProvisioningCert), START_ELEMENT({http://www.w3.org/2000/09/xmldsig#}Object), START_ELEMENT({urn:iso:15118:2:2016:MsgBody}OperationMode), START_ELEMENT({http://www.w3.org/2000/09/xmldsig#}P), START_ELEMENT({http://www.w3.org/2000/09/xmldsig#}PGPData), START_ELEMENT({http://www.w3.org/2000/09/xmldsig#}PGPKeyID), START_ELEMENT({http://www.w3.org/2000/09/xmldsig#}PGPKeyPacket), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}PMax), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}PMaxDischargeSchedule), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}PMaxSchedule), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}PMaxScheduleEntry), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}PackageIndex), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}PackageSeparationTime), START_ELEMENT({urn:iso:15118:2:2016:MsgBody}PairingParameters), START_ELEMENT({urn:iso:15118:2:2016:MsgBody}PairingReq), START_ELEMENT({urn:iso:15118:2:2016:MsgBody}PairingRes), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}Parameter), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}ParameterSet), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}ParameterSetID), START_ELEMENT({urn:iso:15118:2:2016:MsgBody}ParkingMethod), START_ELEMENT({urn:iso:15118:2:2016:MsgBody}PaymentDetailsReq), START_ELEMENT({urn:iso:15118:2:2016:MsgBody}PaymentDetailsRes), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}PaymentOption), START_ELEMENT({urn:iso:15118:2:2016:MsgBody}PaymentOptionList), START_ELEMENT({urn:iso:15118:2:2016:MsgBody}PaymentServiceSelectionReq), START_ELEMENT({urn:iso:15118:2:2016:MsgBody}PaymentServiceSelectionRes), START_ELEMENT({http://www.w3.org/2000/09/xmldsig#}PgenCounter), START_ELEMENT({urn:iso:15118:2:2016:MsgBody}PowerDeliveryReq), START_ELEMENT({urn:iso:15118:2:2016:MsgBody}PowerDeliveryRes), START_ELEMENT({urn:iso:15118:2:2016:MsgBody}PowerDemandParameters), START_ELEMENT({urn:iso:15118:2:2016:MsgBody}PowerDemandReq), START_ELEMENT({urn:iso:15118:2:2016:MsgBody}PowerDemandRes), START_ELEMENT({urn:iso:15118:2:2016:MsgBody}PreChargeReq), START_ELEMENT({urn:iso:15118:2:2016:MsgBody}PreChargeRes), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}ProfileEntry), START_ELEMENT({http://www.w3.org/2000/09/xmldsig#}Q), START_ELEMENT({http://www.w3.org/2000/09/xmldsig#}RSAKeyValue), START_ELEMENT({urn:iso:15118:2:2016:MsgBody}ReceiptRequired), START_ELEMENT({http://www.w3.org/2000/09/xmldsig#}Reference), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}RelativeTimeInterval), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}RemainingTimeToBulkSOC), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}RemainingTimeToMinimumSOC), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}RemainingTimeToTargetSOC), START_ELEMENT({urn:iso:15118:2:2016:MsgBody}ResponseCode), START_ELEMENT({http://www.w3.org/2000/09/xmldsig#}RetrievalMethod), START_ELEMENT({urn:iso:15118:2:2016:MsgBody}RetryCounter), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}RootCertificateID), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}RotationVAtoGA), START_ELEMENT({urn:iso:15118:2:2016:MsgBody}SAProvisioningCertificateChain), START_ELEMENT({urn:iso:15118:2:2016:MsgBody}SAScheduleList), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SAScheduleList), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SAScheduleTuple), START_ELEMENT({urn:iso:15118:2:2016:MsgBody}SAScheduleTupleID), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SAScheduleTupleID), START_ELEMENT({http://www.w3.org/2000/09/xmldsig#}SPKIData), START_ELEMENT({http://www.w3.org/2000/09/xmldsig#}SPKISexp), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SalesTariff), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SalesTariffDescription), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SalesTariffEntry), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SalesTariffID), START_ELEMENT({http://www.w3.org/2000/09/xmldsig#}Seed), START_ELEMENT({urn:iso:15118:2:2016:MsgBody}SelectedEnergyTransferService), START_ELEMENT({urn:iso:15118:2:2016:MsgBody}SelectedPaymentOption), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SelectedService), START_ELEMENT({urn:iso:15118:2:2016:MsgBody}SelectedVASList), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}Sensor), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorID), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorList), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorMeasurements), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorOrder), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorOrientation), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorPackage), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorPackageList), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorPosition), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}Service), START_ELEMENT({urn:iso:15118:2:2016:MsgBody}ServiceDetailReq), START_ELEMENT({urn:iso:15118:2:2016:MsgBody}ServiceDetailRes), START_ELEMENT({urn:iso:15118:2:2016:MsgBody}ServiceDiscoveryReq), START_ELEMENT({urn:iso:15118:2:2016:MsgBody}ServiceDiscoveryRes), START_ELEMENT({urn:iso:15118:2:2016:MsgBody}ServiceID), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}ServiceID), START_ELEMENT({urn:iso:15118:2:2016:MsgBody}ServiceParameterList), START_ELEMENT({urn:iso:15118:2:2016:MsgBody}SessionID), START_ELEMENT({urn:iso:15118:2:2016:MsgHeader}SessionID), START_ELEMENT({urn:iso:15118:2:2016:MsgBody}SessionSetupReq), START_ELEMENT({urn:iso:15118:2:2016:MsgBody}SessionSetupRes), START_ELEMENT({urn:iso:15118:2:2016:MsgBody}SessionStopReq), START_ELEMENT({urn:iso:15118:2:2016:MsgBody}SessionStopRes), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SigMeterReading), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SignalFrequency), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SignalPulseDuration), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SignalSeparationTime), START_ELEMENT({http://www.w3.org/2000/09/xmldsig#}Signature), START_ELEMENT({http://www.w3.org/2000/09/xmldsig#}SignatureMethod), START_ELEMENT({http://www.w3.org/2000/09/xmldsig#}SignatureProperties), START_ELEMENT({http://www.w3.org/2000/09/xmldsig#}SignatureProperty), START_ELEMENT({http://www.w3.org/2000/09/xmldsig#}SignatureValue), START_ELEMENT({http://www.w3.org/2000/09/xmldsig#}SignedInfo), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SubCertificates), START_ELEMENT({urn:iso:15118:2:2016:MsgBody}SupportedServiceIDs), START_ELEMENT({urn:iso:15118:2:2016:MsgBody}SystemStatusReq), START_ELEMENT({urn:iso:15118:2:2016:MsgBody}SystemStatusRes), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}TMeter), START_ELEMENT({urn:iso:15118:2:2016:MsgBody}TargetOffset), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}TargetOffsetX), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}TargetOffsetY), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}TargetSOC), START_ELEMENT({http://www.w3.org/2000/09/xmldsig#}Transform), START_ELEMENT({http://www.w3.org/2000/09/xmldsig#}Transforms), START_ELEMENT({urn:iso:15118:2:2016:MsgBody}V2GRequest), START_ELEMENT({urn:iso:15118:2:2016:MsgBody}V2GResponse), START_ELEMENT({urn:iso:15118:2:2016:MsgDef}V2G_Message), START_ELEMENT({urn:iso:15118:2:2016:MsgBody}VASList), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}Value), START_ELEMENT({urn:iso:15118:2:2016:MsgBody}VehicleCheckInReq), START_ELEMENT({urn:iso:15118:2:2016:MsgBody}VehicleCheckInRes), START_ELEMENT({urn:iso:15118:2:2016:MsgBody}VehicleCheckOutReq), START_ELEMENT({urn:iso:15118:2:2016:MsgBody}VehicleCheckOutRes), START_ELEMENT({urn:iso:15118:2:2016:MsgBody}VehicleSpace), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}WPT_EVChargeParameter), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}WPT_EVSEChargeParameter), START_ELEMENT({urn:iso:15118:2:2016:MsgBody}WeldingDetectionReq), START_ELEMENT({urn:iso:15118:2:2016:MsgBody}WeldingDetectionRes), START_ELEMENT({http://www.w3.org/2000/09/xmldsig#}X509CRL), START_ELEMENT({http://www.w3.org/2000/09/xmldsig#}X509Certificate), START_ELEMENT({http://www.w3.org/2000/09/xmldsig#}X509Data), START_ELEMENT({http://www.w3.org/2000/09/xmldsig#}X509IssuerName), START_ELEMENT({http://www.w3.org/2000/09/xmldsig#}X509IssuerSerial), START_ELEMENT({http://www.w3.org/2000/09/xmldsig#}X509SKI), START_ELEMENT({http://www.w3.org/2000/09/xmldsig#}X509SerialNumber), START_ELEMENT({http://www.w3.org/2000/09/xmldsig#}X509SubjectName), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}XCoordinate), START_ELEMENT({http://www.w3.org/2000/09/xmldsig#}XPath), START_ELEMENT({http://www.w3.org/2000/09/xmldsig#}Y), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}YCoordinate), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}ZCoordinate), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}amount), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}boolValue), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}byteValue), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}costKind), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}duration), START_ELEMENT({urn:iso:15118:2:2016:MsgBody}eMAID), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}intValue), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}physicalValue), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}shortValue), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}start), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}startValue), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}stringValue), START_ELEMENT_GENERIC, END_DOCUMENT] */
- init_v2gEXIFragment(exiFrag);
+ /* FragmentContent[START_ELEMENT({urn:iso:15118:2:2016:MsgBody}AC_BidirectionalControlReq), START_ELEMENT({urn:iso:15118:2:2016:MsgBody}AC_BidirectionalControlRes), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}AC_EVBidirectionalParameter), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}AC_EVChargeParameter), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}AC_EVSEBidirectionalParameter), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}AC_EVSEChargeParameter), START_ELEMENT({urn:iso:15118:2:2016:MsgBody}AlignmentCheckParameters), START_ELEMENT({urn:iso:15118:2:2016:MsgBody}AlignmentCheckReq), START_ELEMENT({urn:iso:15118:2:2016:MsgBody}AlignmentCheckRes), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}AlignmentOffset), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}AngleGAtoVA), START_ELEMENT({urn:iso:15118:2:2016:MsgBody}AuthorizationReq), START_ELEMENT({urn:iso:15118:2:2016:MsgBody}AuthorizationRes), START_ELEMENT({urn:iso:15118:2:2016:MsgDef}Body), START_ELEMENT({urn:iso:15118:2:2016:MsgBody}BodyElement), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}BulkChargingComplete), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}BulkSOC), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}BuyBackTariff), START_ELEMENT({urn:iso:15118:2:2016:MsgBody}CableCheckReq), START_ELEMENT({urn:iso:15118:2:2016:MsgBody}CableCheckRes), START_ELEMENT({http://www.w3.org/2000/09/xmldsig#}CanonicalizationMethod), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}Certificate), START_ELEMENT({urn:iso:15118:2:2016:MsgBody}CertificateInstallationReq), START_ELEMENT({urn:iso:15118:2:2016:MsgBody}CertificateInstallationRes), START_ELEMENT({urn:iso:15118:2:2016:MsgBody}CertificateUpdateReq), START_ELEMENT({urn:iso:15118:2:2016:MsgBody}CertificateUpdateRes), START_ELEMENT({urn:iso:15118:2:2016:MsgBody}ChargeParameterDiscoveryReq), START_ELEMENT({urn:iso:15118:2:2016:MsgBody}ChargeParameterDiscoveryRes), START_ELEMENT({urn:iso:15118:2:2016:MsgBody}ChargeProgress), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}ChargingComplete), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}ChargingPerformance), START_ELEMENT({urn:iso:15118:2:2016:MsgBody}ChargingProfile), START_ELEMENT({urn:iso:15118:2:2016:MsgBody}ChargingSession), START_ELEMENT({urn:iso:15118:2:2016:MsgBody}ChargingStatusReq), START_ELEMENT({urn:iso:15118:2:2016:MsgBody}ChargingStatusRes), START_ELEMENT({urn:iso:15118:2:2016:MsgBody}CheckOutTime), START_ELEMENT({urn:iso:15118:2:2016:MsgBody}ConnectChargingDeviceReq), START_ELEMENT({urn:iso:15118:2:2016:MsgBody}ConnectChargingDeviceRes), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}ConsumptionCost), START_ELEMENT({urn:iso:15118:2:2016:MsgBody}ContractSignatureCertChain), START_ELEMENT({urn:iso:15118:2:2016:MsgBody}ContractSignatureEncryptedPrivateKey), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}Cost), START_ELEMENT({urn:iso:15118:2:2016:MsgBody}CurrentDemandReq), START_ELEMENT({urn:iso:15118:2:2016:MsgBody}CurrentDemandRes), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}CurrentRange), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}CurrentSOC), START_ELEMENT({urn:iso:15118:2:2016:MsgBody}DC_BidirectionalControlReq), START_ELEMENT({urn:iso:15118:2:2016:MsgBody}DC_BidirectionalControlRes), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}DC_EVBidirectionalParameter), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}DC_EVChargeParameter), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}DC_EVSEBidirectionalParameter), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}DC_EVSEChargeParameter), START_ELEMENT({urn:iso:15118:2:2016:MsgBody}DHpublickey), START_ELEMENT({http://www.w3.org/2000/09/xmldsig#}DSAKeyValue), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}DepartureTime), START_ELEMENT({http://www.w3.org/2000/09/xmldsig#}DigestMethod), START_ELEMENT({http://www.w3.org/2000/09/xmldsig#}DigestValue), START_ELEMENT({urn:iso:15118:2:2016:MsgBody}DisconnectChargingDeviceReq), START_ELEMENT({urn:iso:15118:2:2016:MsgBody}DisconnectChargingDeviceRes), START_ELEMENT({urn:iso:15118:2:2016:MsgBody}DisplayParameters), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}Distance), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}EPriceLevel), START_ELEMENT({urn:iso:15118:2:2016:MsgBody}EVCCID), START_ELEMENT({urn:iso:15118:2:2016:MsgBody}EVCheckInStatus), START_ELEMENT({urn:iso:15118:2:2016:MsgBody}EVCheckOutStatus), START_ELEMENT({urn:iso:15118:2:2016:MsgBody}EVElectricalChargingDeviceStatus), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}EVEnergyTransferParameter), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}EVFinePositioningParameters), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}EVFinePositioningSetupParameters), START_ELEMENT({urn:iso:15118:2:2016:MsgBody}EVInputPower), START_ELEMENT({urn:iso:15118:2:2016:MsgBody}EVMaximumChargeCurrent), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}EVMaximumChargeCurrent), START_ELEMENT({urn:iso:15118:2:2016:MsgBody}EVMaximumChargePower), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}EVMaximumChargePower), START_ELEMENT({urn:iso:15118:2:2016:MsgBody}EVMaximumCurrent), START_ELEMENT({urn:iso:15118:2:2016:MsgBody}EVMaximumDischargeCurrent), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}EVMaximumDischargeCurrent), START_ELEMENT({urn:iso:15118:2:2016:MsgBody}EVMaximumDischargePower), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}EVMaximumDischargePower), START_ELEMENT({urn:iso:15118:2:2016:MsgBody}EVMaximumEnergyRequest), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}EVMaximumEnergyRequest), START_ELEMENT({urn:iso:15118:2:2016:MsgBody}EVMaximumPower), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}EVMaximumPower), START_ELEMENT({urn:iso:15118:2:2016:MsgBody}EVMaximumVoltage), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}EVMaximumVoltage), START_ELEMENT({urn:iso:15118:2:2016:MsgBody}EVMechanicalChargingDeviceStatus), START_ELEMENT({urn:iso:15118:2:2016:MsgBody}EVMinimumChargeCurrent), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}EVMinimumChargeCurrent), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}EVMinimumChargePower), START_ELEMENT({urn:iso:15118:2:2016:MsgBody}EVMinimumDischargeCurrent), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}EVMinimumDischargeCurrent), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}EVMinimumDischargePower), START_ELEMENT({urn:iso:15118:2:2016:MsgBody}EVMinimumEnergyRequest), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}EVMinimumEnergyRequest), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}EVMinimumPower), START_ELEMENT({urn:iso:15118:2:2016:MsgBody}EVMinimumVoltage), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}EVMinimumVoltage), START_ELEMENT({urn:iso:15118:2:2016:MsgBody}EVOperation), START_ELEMENT({urn:iso:15118:2:2016:MsgBody}EVPresentActivePower), START_ELEMENT({urn:iso:15118:2:2016:MsgBody}EVPresentReactivePower), START_ELEMENT({urn:iso:15118:2:2016:MsgBody}EVProcessing), START_ELEMENT({urn:iso:15118:2:2016:MsgBody}EVSECheckOutStatus), START_ELEMENT({urn:iso:15118:2:2016:MsgBody}EVSECurrentLimitAchieved), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}EVSECurrentRegulationTolerance), START_ELEMENT({urn:iso:15118:2:2016:MsgBody}EVSEElectricalChargingDeviceStatus), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}EVSEEnergyToBeDelivered), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}EVSEEnergyTransferParameter), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}EVSEFinePositioningParameters), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}EVSEFinePositioningSetupParameters), START_ELEMENT({urn:iso:15118:2:2016:MsgBody}EVSEID), START_ELEMENT({urn:iso:15118:2:2016:MsgBody}EVSEMaximumChargeCurrent), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}EVSEMaximumChargeCurrent), START_ELEMENT({urn:iso:15118:2:2016:MsgBody}EVSEMaximumChargePower), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}EVSEMaximumChargePower), START_ELEMENT({urn:iso:15118:2:2016:MsgBody}EVSEMaximumCurrent), START_ELEMENT({urn:iso:15118:2:2016:MsgBody}EVSEMaximumDischargeCurrent), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}EVSEMaximumDischargeCurrent), START_ELEMENT({urn:iso:15118:2:2016:MsgBody}EVSEMaximumDischargePower), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}EVSEMaximumDischargePower), START_ELEMENT({urn:iso:15118:2:2016:MsgBody}EVSEMaximumPower), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}EVSEMaximumPower), START_ELEMENT({urn:iso:15118:2:2016:MsgBody}EVSEMaximumVoltage), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}EVSEMaximumVoltage), START_ELEMENT({urn:iso:15118:2:2016:MsgBody}EVSEMechanicalChargingDeviceStatus), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}EVSEMinimumChargeCurrent), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}EVSEMinimumDischargeCurrent), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}EVSEMinimumPower), START_ELEMENT({urn:iso:15118:2:2016:MsgBody}EVSEMinimumVoltage), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}EVSEMinimumVoltage), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}EVSENominalFrequency), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}EVSENominalVoltage), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}EVSENotification), START_ELEMENT({urn:iso:15118:2:2016:MsgBody}EVSEOutputPower), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}EVSEPeakCurrentRipple), START_ELEMENT({urn:iso:15118:2:2016:MsgBody}EVSEPowerLimitAchieved), START_ELEMENT({urn:iso:15118:2:2016:MsgBody}EVSEPresentCurrent), START_ELEMENT({urn:iso:15118:2:2016:MsgBody}EVSEPresentVoltage), START_ELEMENT({urn:iso:15118:2:2016:MsgBody}EVSEProcessing), START_ELEMENT({urn:iso:15118:2:2016:MsgBody}EVSEStatus), START_ELEMENT({urn:iso:15118:2:2016:MsgBody}EVSETargetPower), START_ELEMENT({urn:iso:15118:2:2016:MsgBody}EVSETargetReactivePower), START_ELEMENT({urn:iso:15118:2:2016:MsgBody}EVSETimeStamp), START_ELEMENT({urn:iso:15118:2:2016:MsgBody}EVSEVoltageLimitAchieved), START_ELEMENT({urn:iso:15118:2:2016:MsgBody}EVTargetCurrent), START_ELEMENT({urn:iso:15118:2:2016:MsgBody}EVTargetEnergyRequest), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}EVTargetEnergyRequest), START_ELEMENT({urn:iso:15118:2:2016:MsgBody}EVTargetPower), START_ELEMENT({urn:iso:15118:2:2016:MsgBody}EVTargetVoltage), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}EffectiveRadiatedPower), START_ELEMENT({urn:iso:15118:2:2016:MsgBody}EnergyTransferServiceList), START_ELEMENT({http://www.w3.org/2000/09/xmldsig#}Exponent), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}Exponent), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}FODStatus), START_ELEMENT({urn:iso:15118:2:2016:MsgBody}FinePositioningReq), START_ELEMENT({urn:iso:15118:2:2016:MsgBody}FinePositioningRes), START_ELEMENT({urn:iso:15118:2:2016:MsgBody}FinePositioningSetupReq), START_ELEMENT({urn:iso:15118:2:2016:MsgBody}FinePositioningSetupRes), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}FreeService), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}FrequencyChannel), START_ELEMENT({http://www.w3.org/2000/09/xmldsig#}G), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}GAID), START_ELEMENT({urn:iso:15118:2:2016:MsgBody}GenChallenge), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}GenericParameters), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}Generic_EVFinePositioningParameters), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}Generic_EVSEFinePositioningParameters), START_ELEMENT({http://www.w3.org/2000/09/xmldsig#}HMACOutputLength), START_ELEMENT({urn:iso:15118:2:2016:MsgDef}Header), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}InletHot), START_ELEMENT({http://www.w3.org/2000/09/xmldsig#}J), START_ELEMENT({http://www.w3.org/2000/09/xmldsig#}KeyInfo), START_ELEMENT({http://www.w3.org/2000/09/xmldsig#}KeyName), START_ELEMENT({http://www.w3.org/2000/09/xmldsig#}KeyValue), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}LFA_EVFinePositioningParameters), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}LFA_EVFinePositioningSetupParameters), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}LFA_EVSEFinePositioningParameters), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}LFA_EVSEFinePositioningSetupParameters), START_ELEMENT({urn:iso:15118:2:2016:MsgBody}ListOfRootCertificateIDs), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MV_EVSEFinePositioningParameters), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MV_EVSEFinePositioningSetupParameters), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MagneticVector), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MagneticVectorList), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MagneticVectorSetup), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MagneticVectorSetupList), START_ELEMENT({http://www.w3.org/2000/09/xmldsig#}Manifest), START_ELEMENT({urn:iso:15118:2:2016:MsgBody}MaxSupportingPoints), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MeasurementData), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MeasurementDataList), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MeterID), START_ELEMENT({urn:iso:15118:2:2016:MsgBody}MeterInfo), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MeterReadingCharged), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MeterReadingDischarged), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MeterStatus), START_ELEMENT({urn:iso:15118:2:2016:MsgBody}MeteringReceiptReq), START_ELEMENT({urn:iso:15118:2:2016:MsgBody}MeteringReceiptRes), START_ELEMENT({http://www.w3.org/2000/09/xmldsig#}MgmtData), START_ELEMENT({urn:iso:15118:2:2016:MsgBody}MinimumPMaxRequest), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MinimumPMaxScheduleEntry), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MinimumSOC), START_ELEMENT({http://www.w3.org/2000/09/xmldsig#}Modulus), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}NotificationMaxDelay), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}NumEPriceLevels), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}NumberOfSensors), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}NumberOfSignalPackages), START_ELEMENT({urn:iso:15118:2:2016:MsgBody}OEMProvisioningCert), START_ELEMENT({http://www.w3.org/2000/09/xmldsig#}Object), START_ELEMENT({urn:iso:15118:2:2016:MsgBody}OperationMode), START_ELEMENT({http://www.w3.org/2000/09/xmldsig#}P), START_ELEMENT({http://www.w3.org/2000/09/xmldsig#}PGPData), START_ELEMENT({http://www.w3.org/2000/09/xmldsig#}PGPKeyID), START_ELEMENT({http://www.w3.org/2000/09/xmldsig#}PGPKeyPacket), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}PMax), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}PMaxDischargeSchedule), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}PMaxSchedule), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}PMaxScheduleEntry), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}PackageIndex), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}PackageSeparationTime), START_ELEMENT({urn:iso:15118:2:2016:MsgBody}PairingParameters), START_ELEMENT({urn:iso:15118:2:2016:MsgBody}PairingReq), START_ELEMENT({urn:iso:15118:2:2016:MsgBody}PairingRes), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}Parameter), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}ParameterSet), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}ParameterSetID), START_ELEMENT({urn:iso:15118:2:2016:MsgBody}ParkingMethod), START_ELEMENT({urn:iso:15118:2:2016:MsgBody}PaymentDetailsReq), START_ELEMENT({urn:iso:15118:2:2016:MsgBody}PaymentDetailsRes), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}PaymentOption), START_ELEMENT({urn:iso:15118:2:2016:MsgBody}PaymentOptionList), START_ELEMENT({urn:iso:15118:2:2016:MsgBody}PaymentServiceSelectionReq), START_ELEMENT({urn:iso:15118:2:2016:MsgBody}PaymentServiceSelectionRes), START_ELEMENT({http://www.w3.org/2000/09/xmldsig#}PgenCounter), START_ELEMENT({urn:iso:15118:2:2016:MsgBody}PowerDeliveryReq), START_ELEMENT({urn:iso:15118:2:2016:MsgBody}PowerDeliveryRes), START_ELEMENT({urn:iso:15118:2:2016:MsgBody}PowerDemandParameters), START_ELEMENT({urn:iso:15118:2:2016:MsgBody}PowerDemandReq), START_ELEMENT({urn:iso:15118:2:2016:MsgBody}PowerDemandRes), START_ELEMENT({urn:iso:15118:2:2016:MsgBody}PreChargeReq), START_ELEMENT({urn:iso:15118:2:2016:MsgBody}PreChargeRes), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}ProfileEntry), START_ELEMENT({http://www.w3.org/2000/09/xmldsig#}Q), START_ELEMENT({http://www.w3.org/2000/09/xmldsig#}RSAKeyValue), START_ELEMENT({urn:iso:15118:2:2016:MsgBody}ReceiptRequired), START_ELEMENT({http://www.w3.org/2000/09/xmldsig#}Reference), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}RelativeTimeInterval), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}RemainingTimeToBulkSOC), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}RemainingTimeToMinimumSOC), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}RemainingTimeToTargetSOC), START_ELEMENT({urn:iso:15118:2:2016:MsgBody}ResponseCode), START_ELEMENT({http://www.w3.org/2000/09/xmldsig#}RetrievalMethod), START_ELEMENT({urn:iso:15118:2:2016:MsgBody}RetryCounter), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}RootCertificateID), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}RotationVAtoGA), START_ELEMENT({urn:iso:15118:2:2016:MsgBody}SAProvisioningCertificateChain), START_ELEMENT({urn:iso:15118:2:2016:MsgBody}SAScheduleList), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SAScheduleList), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SAScheduleTuple), START_ELEMENT({urn:iso:15118:2:2016:MsgBody}SAScheduleTupleID), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SAScheduleTupleID), START_ELEMENT({http://www.w3.org/2000/09/xmldsig#}SPKIData), START_ELEMENT({http://www.w3.org/2000/09/xmldsig#}SPKISexp), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SalesTariff), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SalesTariffDescription), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SalesTariffEntry), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SalesTariffID), START_ELEMENT({http://www.w3.org/2000/09/xmldsig#}Seed), START_ELEMENT({urn:iso:15118:2:2016:MsgBody}SelectedEnergyTransferService), START_ELEMENT({urn:iso:15118:2:2016:MsgBody}SelectedPaymentOption), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SelectedService), START_ELEMENT({urn:iso:15118:2:2016:MsgBody}SelectedVASList), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}Sensor), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorID), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorList), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorMeasurements), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorOrder), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorOrientation), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorPackage), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorPackageList), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorPosition), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}Service), START_ELEMENT({urn:iso:15118:2:2016:MsgBody}ServiceDetailReq), START_ELEMENT({urn:iso:15118:2:2016:MsgBody}ServiceDetailRes), START_ELEMENT({urn:iso:15118:2:2016:MsgBody}ServiceDiscoveryReq), START_ELEMENT({urn:iso:15118:2:2016:MsgBody}ServiceDiscoveryRes), START_ELEMENT({urn:iso:15118:2:2016:MsgBody}ServiceID), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}ServiceID), START_ELEMENT({urn:iso:15118:2:2016:MsgBody}ServiceParameterList), START_ELEMENT({urn:iso:15118:2:2016:MsgBody}SessionID), START_ELEMENT({urn:iso:15118:2:2016:MsgHeader}SessionID), START_ELEMENT({urn:iso:15118:2:2016:MsgBody}SessionSetupReq), START_ELEMENT({urn:iso:15118:2:2016:MsgBody}SessionSetupRes), START_ELEMENT({urn:iso:15118:2:2016:MsgBody}SessionStopReq), START_ELEMENT({urn:iso:15118:2:2016:MsgBody}SessionStopRes), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SigMeterReading), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SignalFrequency), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SignalPulseDuration), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SignalSeparationTime), START_ELEMENT({http://www.w3.org/2000/09/xmldsig#}Signature), START_ELEMENT({http://www.w3.org/2000/09/xmldsig#}SignatureMethod), START_ELEMENT({http://www.w3.org/2000/09/xmldsig#}SignatureProperties), START_ELEMENT({http://www.w3.org/2000/09/xmldsig#}SignatureProperty), START_ELEMENT({http://www.w3.org/2000/09/xmldsig#}SignatureValue), START_ELEMENT({http://www.w3.org/2000/09/xmldsig#}SignedInfo), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SubCertificates), START_ELEMENT({urn:iso:15118:2:2016:MsgBody}SupportedServiceIDs), START_ELEMENT({urn:iso:15118:2:2016:MsgBody}SystemStatusReq), START_ELEMENT({urn:iso:15118:2:2016:MsgBody}SystemStatusRes), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}TMeter), START_ELEMENT({urn:iso:15118:2:2016:MsgBody}TargetOffset), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}TargetOffsetX), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}TargetOffsetY), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}TargetSOC), START_ELEMENT({http://www.w3.org/2000/09/xmldsig#}Transform), START_ELEMENT({http://www.w3.org/2000/09/xmldsig#}Transforms), START_ELEMENT({urn:iso:15118:2:2016:MsgBody}V2GRequest), START_ELEMENT({urn:iso:15118:2:2016:MsgBody}V2GResponse), START_ELEMENT({urn:iso:15118:2:2016:MsgDef}V2G_Message), START_ELEMENT({urn:iso:15118:2:2016:MsgBody}VASList), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}Value), START_ELEMENT({urn:iso:15118:2:2016:MsgBody}VehicleCheckInReq), START_ELEMENT({urn:iso:15118:2:2016:MsgBody}VehicleCheckInRes), START_ELEMENT({urn:iso:15118:2:2016:MsgBody}VehicleCheckOutReq), START_ELEMENT({urn:iso:15118:2:2016:MsgBody}VehicleCheckOutRes), START_ELEMENT({urn:iso:15118:2:2016:MsgBody}VehicleSpace), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}WPT_EVChargeParameter), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}WPT_EVSEChargeParameter), START_ELEMENT({urn:iso:15118:2:2016:MsgBody}WeldingDetectionReq), START_ELEMENT({urn:iso:15118:2:2016:MsgBody}WeldingDetectionRes), START_ELEMENT({http://www.w3.org/2000/09/xmldsig#}X509CRL), START_ELEMENT({http://www.w3.org/2000/09/xmldsig#}X509Certificate), START_ELEMENT({http://www.w3.org/2000/09/xmldsig#}X509Data), START_ELEMENT({http://www.w3.org/2000/09/xmldsig#}X509IssuerName), START_ELEMENT({http://www.w3.org/2000/09/xmldsig#}X509IssuerSerial), START_ELEMENT({http://www.w3.org/2000/09/xmldsig#}X509SKI), START_ELEMENT({http://www.w3.org/2000/09/xmldsig#}X509SerialNumber), START_ELEMENT({http://www.w3.org/2000/09/xmldsig#}X509SubjectName), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}XCoordinate), START_ELEMENT({http://www.w3.org/2000/09/xmldsig#}XPath), START_ELEMENT({http://www.w3.org/2000/09/xmldsig#}Y), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}YCoordinate), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}ZCoordinate), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}amount), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}boolValue), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}byteValue), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}costKind), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}duration), START_ELEMENT({urn:iso:15118:2:2016:MsgBody}eMAID), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}intValue), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}physicalValue), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}shortValue), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}start), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}startValue), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}stringValue), START_ELEMENT_GENERIC, END_DOCUMENT] */
+ init_iso2EXIFragment(exiFrag);
errn = decodeNBitUnsignedInteger(stream, 9, &eventCode);
if(errn == 0) {
switch(eventCode) {
case 0:
/* START_ELEMENT({urn:iso:15118:2:2016:MsgBody}AC_BidirectionalControlReq) */
- errn = decode_v2gAC_BidirectionalControlReqType(stream, &exiFrag->AC_BidirectionalControlReq);
+ errn = decode_iso2AC_BidirectionalControlReqType(stream, &exiFrag->AC_BidirectionalControlReq);
exiFrag->AC_BidirectionalControlReq_isUsed = 1u;
break;
case 1:
/* START_ELEMENT({urn:iso:15118:2:2016:MsgBody}AC_BidirectionalControlRes) */
- errn = decode_v2gAC_BidirectionalControlResType(stream, &exiFrag->AC_BidirectionalControlRes);
+ errn = decode_iso2AC_BidirectionalControlResType(stream, &exiFrag->AC_BidirectionalControlRes);
exiFrag->AC_BidirectionalControlRes_isUsed = 1u;
break;
case 2:
/* START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}AC_EVBidirectionalParameter) */
- errn = decode_v2gAC_EVBidirectionalParameterType(stream, &exiFrag->AC_EVBidirectionalParameter);
+ errn = decode_iso2AC_EVBidirectionalParameterType(stream, &exiFrag->AC_EVBidirectionalParameter);
exiFrag->AC_EVBidirectionalParameter_isUsed = 1u;
break;
case 3:
/* START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}AC_EVChargeParameter) */
- errn = decode_v2gAC_EVChargeParameterType(stream, &exiFrag->AC_EVChargeParameter);
+ errn = decode_iso2AC_EVChargeParameterType(stream, &exiFrag->AC_EVChargeParameter);
exiFrag->AC_EVChargeParameter_isUsed = 1u;
break;
case 4:
/* START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}AC_EVSEBidirectionalParameter) */
- errn = decode_v2gAC_EVSEBidirectionalParameterType(stream, &exiFrag->AC_EVSEBidirectionalParameter);
+ errn = decode_iso2AC_EVSEBidirectionalParameterType(stream, &exiFrag->AC_EVSEBidirectionalParameter);
exiFrag->AC_EVSEBidirectionalParameter_isUsed = 1u;
break;
case 5:
/* START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}AC_EVSEChargeParameter) */
- errn = decode_v2gAC_EVSEChargeParameterType(stream, &exiFrag->AC_EVSEChargeParameter);
+ errn = decode_iso2AC_EVSEChargeParameterType(stream, &exiFrag->AC_EVSEChargeParameter);
exiFrag->AC_EVSEChargeParameter_isUsed = 1u;
break;
case 6:
@@ -103053,12 +83508,12 @@ int decode_v2gExiFragment(bitstream_t* stream, struct v2gEXIFragment* exiFrag) {
break;
case 7:
/* START_ELEMENT({urn:iso:15118:2:2016:MsgBody}AlignmentCheckReq) */
- errn = decode_v2gAlignmentCheckReqType(stream, &exiFrag->AlignmentCheckReq);
+ errn = decode_iso2AlignmentCheckReqType(stream, &exiFrag->AlignmentCheckReq);
exiFrag->AlignmentCheckReq_isUsed = 1u;
break;
case 8:
/* START_ELEMENT({urn:iso:15118:2:2016:MsgBody}AlignmentCheckRes) */
- errn = decode_v2gAlignmentCheckResType(stream, &exiFrag->AlignmentCheckRes);
+ errn = decode_iso2AlignmentCheckResType(stream, &exiFrag->AlignmentCheckRes);
exiFrag->AlignmentCheckRes_isUsed = 1u;
break;
case 9:
@@ -103067,27 +83522,27 @@ int decode_v2gExiFragment(bitstream_t* stream, struct v2gEXIFragment* exiFrag) {
break;
case 10:
/* START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}AngleGAtoVA) */
- errn = decode_v2gPhysicalValueType(stream, &exiFrag->AngleGAtoVA);
+ errn = decode_iso2PhysicalValueType(stream, &exiFrag->AngleGAtoVA);
exiFrag->AngleGAtoVA_isUsed = 1u;
break;
case 11:
/* START_ELEMENT({urn:iso:15118:2:2016:MsgBody}AuthorizationReq) */
- errn = decode_v2gAuthorizationReqType(stream, &exiFrag->AuthorizationReq);
+ errn = decode_iso2AuthorizationReqType(stream, &exiFrag->AuthorizationReq);
exiFrag->AuthorizationReq_isUsed = 1u;
break;
case 12:
/* START_ELEMENT({urn:iso:15118:2:2016:MsgBody}AuthorizationRes) */
- errn = decode_v2gAuthorizationResType(stream, &exiFrag->AuthorizationRes);
+ errn = decode_iso2AuthorizationResType(stream, &exiFrag->AuthorizationRes);
exiFrag->AuthorizationRes_isUsed = 1u;
break;
case 13:
/* START_ELEMENT({urn:iso:15118:2:2016:MsgDef}Body) */
- errn = decode_v2gBodyType(stream, &exiFrag->Body);
+ errn = decode_iso2BodyType(stream, &exiFrag->Body);
exiFrag->Body_isUsed = 1u;
break;
case 14:
/* START_ELEMENT({urn:iso:15118:2:2016:MsgBody}BodyElement) */
- errn = decode_v2gBodyBaseType(stream, &exiFrag->BodyElement);
+ errn = decode_iso2BodyBaseType(stream, &exiFrag->BodyElement);
exiFrag->BodyElement_isUsed = 1u;
break;
case 15:
@@ -103110,22 +83565,22 @@ int decode_v2gExiFragment(bitstream_t* stream, struct v2gEXIFragment* exiFrag) {
break;
case 17:
/* START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}BuyBackTariff) */
- errn = decode_v2gSalesTariffType(stream, &exiFrag->BuyBackTariff);
+ errn = decode_iso2SalesTariffType(stream, &exiFrag->BuyBackTariff);
exiFrag->BuyBackTariff_isUsed = 1u;
break;
case 18:
/* START_ELEMENT({urn:iso:15118:2:2016:MsgBody}CableCheckReq) */
- errn = decode_v2gBodyBaseType(stream, &exiFrag->CableCheckReq);
+ errn = decode_iso2CableCheckReqType(stream, &exiFrag->CableCheckReq);
exiFrag->CableCheckReq_isUsed = 1u;
break;
case 19:
/* START_ELEMENT({urn:iso:15118:2:2016:MsgBody}CableCheckRes) */
- errn = decode_v2gCableCheckResType(stream, &exiFrag->CableCheckRes);
+ errn = decode_iso2CableCheckResType(stream, &exiFrag->CableCheckRes);
exiFrag->CableCheckRes_isUsed = 1u;
break;
case 20:
/* START_ELEMENT({http://www.w3.org/2000/09/xmldsig#}CanonicalizationMethod) */
- errn = decode_v2gCanonicalizationMethodType(stream, &exiFrag->CanonicalizationMethod);
+ errn = decode_iso2CanonicalizationMethodType(stream, &exiFrag->CanonicalizationMethod);
exiFrag->CanonicalizationMethod_isUsed = 1u;
break;
case 21:
@@ -103134,32 +83589,32 @@ int decode_v2gExiFragment(bitstream_t* stream, struct v2gEXIFragment* exiFrag) {
break;
case 22:
/* START_ELEMENT({urn:iso:15118:2:2016:MsgBody}CertificateInstallationReq) */
- errn = decode_v2gCertificateInstallationReqType(stream, &exiFrag->CertificateInstallationReq);
+ errn = decode_iso2CertificateInstallationReqType(stream, &exiFrag->CertificateInstallationReq);
exiFrag->CertificateInstallationReq_isUsed = 1u;
break;
case 23:
/* START_ELEMENT({urn:iso:15118:2:2016:MsgBody}CertificateInstallationRes) */
- errn = decode_v2gCertificateInstallationResType(stream, &exiFrag->CertificateInstallationRes);
+ errn = decode_iso2CertificateInstallationResType(stream, &exiFrag->CertificateInstallationRes);
exiFrag->CertificateInstallationRes_isUsed = 1u;
break;
case 24:
/* START_ELEMENT({urn:iso:15118:2:2016:MsgBody}CertificateUpdateReq) */
- errn = decode_v2gCertificateUpdateReqType(stream, &exiFrag->CertificateUpdateReq);
+ errn = decode_iso2CertificateUpdateReqType(stream, &exiFrag->CertificateUpdateReq);
exiFrag->CertificateUpdateReq_isUsed = 1u;
break;
case 25:
/* START_ELEMENT({urn:iso:15118:2:2016:MsgBody}CertificateUpdateRes) */
- errn = decode_v2gCertificateUpdateResType(stream, &exiFrag->CertificateUpdateRes);
+ errn = decode_iso2CertificateUpdateResType(stream, &exiFrag->CertificateUpdateRes);
exiFrag->CertificateUpdateRes_isUsed = 1u;
break;
case 26:
/* START_ELEMENT({urn:iso:15118:2:2016:MsgBody}ChargeParameterDiscoveryReq) */
- errn = decode_v2gChargeParameterDiscoveryReqType(stream, &exiFrag->ChargeParameterDiscoveryReq);
+ errn = decode_iso2ChargeParameterDiscoveryReqType(stream, &exiFrag->ChargeParameterDiscoveryReq);
exiFrag->ChargeParameterDiscoveryReq_isUsed = 1u;
break;
case 27:
/* START_ELEMENT({urn:iso:15118:2:2016:MsgBody}ChargeParameterDiscoveryRes) */
- errn = decode_v2gChargeParameterDiscoveryResType(stream, &exiFrag->ChargeParameterDiscoveryRes);
+ errn = decode_iso2ChargeParameterDiscoveryResType(stream, &exiFrag->ChargeParameterDiscoveryRes);
exiFrag->ChargeParameterDiscoveryRes_isUsed = 1u;
break;
case 28:
@@ -103169,7 +83624,7 @@ int decode_v2gExiFragment(bitstream_t* stream, struct v2gEXIFragment* exiFrag) {
if(errn == 0) {
if(eventCode == 0) {
errn = decodeNBitUnsignedInteger(stream, 2, &uint32);
- exiFrag->ChargeProgress = (v2gchargeProgressType) uint32;
+ exiFrag->ChargeProgress = (iso2chargeProgressType) uint32;
exiFrag->ChargeProgress_isUsed = 1u;
} else {
/* Second level event (e.g., xsi:type, xsi:nil, ...) */
@@ -103193,12 +83648,12 @@ int decode_v2gExiFragment(bitstream_t* stream, struct v2gEXIFragment* exiFrag) {
break;
case 30:
/* START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}ChargingPerformance) */
- errn = decode_v2gPhysicalValueType(stream, &exiFrag->ChargingPerformance);
+ errn = decode_iso2PhysicalValueType(stream, &exiFrag->ChargingPerformance);
exiFrag->ChargingPerformance_isUsed = 1u;
break;
case 31:
/* START_ELEMENT({urn:iso:15118:2:2016:MsgBody}ChargingProfile) */
- errn = decode_v2gChargingProfileType(stream, &exiFrag->ChargingProfile);
+ errn = decode_iso2ChargingProfileType(stream, &exiFrag->ChargingProfile);
exiFrag->ChargingProfile_isUsed = 1u;
break;
case 32:
@@ -103208,7 +83663,7 @@ int decode_v2gExiFragment(bitstream_t* stream, struct v2gEXIFragment* exiFrag) {
if(errn == 0) {
if(eventCode == 0) {
errn = decodeNBitUnsignedInteger(stream, 1, &uint32);
- exiFrag->ChargingSession = (v2gchargingSessionType) uint32;
+ exiFrag->ChargingSession = (iso2chargingSessionType) uint32;
exiFrag->ChargingSession_isUsed = 1u;
} else {
/* Second level event (e.g., xsi:type, xsi:nil, ...) */
@@ -103218,12 +83673,12 @@ int decode_v2gExiFragment(bitstream_t* stream, struct v2gEXIFragment* exiFrag) {
break;
case 33:
/* START_ELEMENT({urn:iso:15118:2:2016:MsgBody}ChargingStatusReq) */
- errn = decode_v2gChargingStatusReqType(stream, &exiFrag->ChargingStatusReq);
+ errn = decode_iso2ChargingStatusReqType(stream, &exiFrag->ChargingStatusReq);
exiFrag->ChargingStatusReq_isUsed = 1u;
break;
case 34:
/* START_ELEMENT({urn:iso:15118:2:2016:MsgBody}ChargingStatusRes) */
- errn = decode_v2gChargingStatusResType(stream, &exiFrag->ChargingStatusRes);
+ errn = decode_iso2ChargingStatusResType(stream, &exiFrag->ChargingStatusRes);
exiFrag->ChargingStatusRes_isUsed = 1u;
break;
case 35:
@@ -103242,17 +83697,17 @@ int decode_v2gExiFragment(bitstream_t* stream, struct v2gEXIFragment* exiFrag) {
break;
case 36:
/* START_ELEMENT({urn:iso:15118:2:2016:MsgBody}ConnectChargingDeviceReq) */
- errn = decode_v2gConnectChargingDeviceReqType(stream, &exiFrag->ConnectChargingDeviceReq);
+ errn = decode_iso2ConnectChargingDeviceReqType(stream, &exiFrag->ConnectChargingDeviceReq);
exiFrag->ConnectChargingDeviceReq_isUsed = 1u;
break;
case 37:
/* START_ELEMENT({urn:iso:15118:2:2016:MsgBody}ConnectChargingDeviceRes) */
- errn = decode_v2gConnectChargingDeviceResType(stream, &exiFrag->ConnectChargingDeviceRes);
+ errn = decode_iso2ConnectChargingDeviceResType(stream, &exiFrag->ConnectChargingDeviceRes);
exiFrag->ConnectChargingDeviceRes_isUsed = 1u;
break;
case 38:
/* START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}ConsumptionCost) */
- errn = decode_v2gConsumptionCostType(stream, &exiFrag->ConsumptionCost);
+ errn = decode_iso2ConsumptionCostType(stream, &exiFrag->ConsumptionCost);
exiFrag->ConsumptionCost_isUsed = 1u;
break;
case 39:
@@ -103265,17 +83720,17 @@ int decode_v2gExiFragment(bitstream_t* stream, struct v2gEXIFragment* exiFrag) {
break;
case 41:
/* START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}Cost) */
- errn = decode_v2gCostType(stream, &exiFrag->Cost);
+ errn = decode_iso2CostType(stream, &exiFrag->Cost);
exiFrag->Cost_isUsed = 1u;
break;
case 42:
/* START_ELEMENT({urn:iso:15118:2:2016:MsgBody}CurrentDemandReq) */
- errn = decode_v2gCurrentDemandReqType(stream, &exiFrag->CurrentDemandReq);
+ errn = decode_iso2CurrentDemandReqType(stream, &exiFrag->CurrentDemandReq);
exiFrag->CurrentDemandReq_isUsed = 1u;
break;
case 43:
/* START_ELEMENT({urn:iso:15118:2:2016:MsgBody}CurrentDemandRes) */
- errn = decode_v2gCurrentDemandResType(stream, &exiFrag->CurrentDemandRes);
+ errn = decode_iso2CurrentDemandResType(stream, &exiFrag->CurrentDemandRes);
exiFrag->CurrentDemandRes_isUsed = 1u;
break;
case 44:
@@ -103298,32 +83753,32 @@ int decode_v2gExiFragment(bitstream_t* stream, struct v2gEXIFragment* exiFrag) {
break;
case 46:
/* START_ELEMENT({urn:iso:15118:2:2016:MsgBody}DC_BidirectionalControlReq) */
- errn = decode_v2gDC_BidirectionalControlReqType(stream, &exiFrag->DC_BidirectionalControlReq);
+ errn = decode_iso2DC_BidirectionalControlReqType(stream, &exiFrag->DC_BidirectionalControlReq);
exiFrag->DC_BidirectionalControlReq_isUsed = 1u;
break;
case 47:
/* START_ELEMENT({urn:iso:15118:2:2016:MsgBody}DC_BidirectionalControlRes) */
- errn = decode_v2gDC_BidirectionalControlResType(stream, &exiFrag->DC_BidirectionalControlRes);
+ errn = decode_iso2DC_BidirectionalControlResType(stream, &exiFrag->DC_BidirectionalControlRes);
exiFrag->DC_BidirectionalControlRes_isUsed = 1u;
break;
case 48:
/* START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}DC_EVBidirectionalParameter) */
- errn = decode_v2gDC_EVBidirectionalParameterType(stream, &exiFrag->DC_EVBidirectionalParameter);
+ errn = decode_iso2DC_EVBidirectionalParameterType(stream, &exiFrag->DC_EVBidirectionalParameter);
exiFrag->DC_EVBidirectionalParameter_isUsed = 1u;
break;
case 49:
/* START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}DC_EVChargeParameter) */
- errn = decode_v2gDC_EVChargeParameterType(stream, &exiFrag->DC_EVChargeParameter);
+ errn = decode_iso2DC_EVChargeParameterType(stream, &exiFrag->DC_EVChargeParameter);
exiFrag->DC_EVChargeParameter_isUsed = 1u;
break;
case 50:
/* START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}DC_EVSEBidirectionalParameter) */
- errn = decode_v2gDC_EVSEBidirectionalParameterType(stream, &exiFrag->DC_EVSEBidirectionalParameter);
+ errn = decode_iso2DC_EVSEBidirectionalParameterType(stream, &exiFrag->DC_EVSEBidirectionalParameter);
exiFrag->DC_EVSEBidirectionalParameter_isUsed = 1u;
break;
case 51:
/* START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}DC_EVSEChargeParameter) */
- errn = decode_v2gDC_EVSEChargeParameterType(stream, &exiFrag->DC_EVSEChargeParameter);
+ errn = decode_iso2DC_EVSEChargeParameterType(stream, &exiFrag->DC_EVSEChargeParameter);
exiFrag->DC_EVSEChargeParameter_isUsed = 1u;
break;
case 52:
@@ -103332,7 +83787,7 @@ int decode_v2gExiFragment(bitstream_t* stream, struct v2gEXIFragment* exiFrag) {
break;
case 53:
/* START_ELEMENT({http://www.w3.org/2000/09/xmldsig#}DSAKeyValue) */
- errn = decode_v2gDSAKeyValueType(stream, &exiFrag->DSAKeyValue);
+ errn = decode_iso2DSAKeyValueType(stream, &exiFrag->DSAKeyValue);
exiFrag->DSAKeyValue_isUsed = 1u;
break;
case 54:
@@ -103351,7 +83806,7 @@ int decode_v2gExiFragment(bitstream_t* stream, struct v2gEXIFragment* exiFrag) {
break;
case 55:
/* START_ELEMENT({http://www.w3.org/2000/09/xmldsig#}DigestMethod) */
- errn = decode_v2gDigestMethodType(stream, &exiFrag->DigestMethod);
+ errn = decode_iso2DigestMethodType(stream, &exiFrag->DigestMethod);
exiFrag->DigestMethod_isUsed = 1u;
break;
case 56:
@@ -103376,23 +83831,32 @@ int decode_v2gExiFragment(bitstream_t* stream, struct v2gEXIFragment* exiFrag) {
break;
case 57:
/* START_ELEMENT({urn:iso:15118:2:2016:MsgBody}DisconnectChargingDeviceReq) */
- errn = decode_v2gDisconnectChargingDeviceReqType(stream, &exiFrag->DisconnectChargingDeviceReq);
+ errn = decode_iso2DisconnectChargingDeviceReqType(stream, &exiFrag->DisconnectChargingDeviceReq);
exiFrag->DisconnectChargingDeviceReq_isUsed = 1u;
break;
case 58:
/* START_ELEMENT({urn:iso:15118:2:2016:MsgBody}DisconnectChargingDeviceRes) */
- errn = decode_v2gDisconnectChargingDeviceResType(stream, &exiFrag->DisconnectChargingDeviceRes);
+ errn = decode_iso2DisconnectChargingDeviceResType(stream, &exiFrag->DisconnectChargingDeviceRes);
exiFrag->DisconnectChargingDeviceRes_isUsed = 1u;
break;
case 59:
/* START_ELEMENT({urn:iso:15118:2:2016:MsgBody}DisplayParameters) */
- errn = decode_v2gDisplayParametersType(stream, &exiFrag->DisplayParameters);
+ errn = decode_iso2DisplayParametersType(stream, &exiFrag->DisplayParameters);
exiFrag->DisplayParameters_isUsed = 1u;
break;
case 60:
/* START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}Distance) */
- errn = decode_v2gPhysicalValueType(stream, &exiFrag->Distance);
- exiFrag->Distance_isUsed = 1u;
+ /* First(xsi:type)StartTag[CHARACTERS[UNSIGNED_INTEGER]] */
+ errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
+ if(errn == 0) {
+ if(eventCode == 0) {
+ errn = decodeUnsignedInteger16(stream, &exiFrag->Distance);
+ exiFrag->Distance_isUsed = 1u;
+ } else {
+ /* Second level event (e.g., xsi:type, xsi:nil, ...) */
+ errn = EXI_UNSUPPORTED_EVENT_CODE_CHARACTERISTICS;
+ }
+ }
break;
case 61:
/* START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}EPriceLevel) */
@@ -103436,7 +83900,7 @@ int decode_v2gExiFragment(bitstream_t* stream, struct v2gEXIFragment* exiFrag) {
if(errn == 0) {
if(eventCode == 0) {
errn = decodeNBitUnsignedInteger(stream, 2, &uint32);
- exiFrag->EVCheckInStatus = (v2gEVCheckInStatusType) uint32;
+ exiFrag->EVCheckInStatus = (iso2EVCheckInStatusType) uint32;
exiFrag->EVCheckInStatus_isUsed = 1u;
} else {
/* Second level event (e.g., xsi:type, xsi:nil, ...) */
@@ -103451,7 +83915,7 @@ int decode_v2gExiFragment(bitstream_t* stream, struct v2gEXIFragment* exiFrag) {
if(errn == 0) {
if(eventCode == 0) {
errn = decodeNBitUnsignedInteger(stream, 2, &uint32);
- exiFrag->EVCheckOutStatus = (v2gEVCheckOutStatusType) uint32;
+ exiFrag->EVCheckOutStatus = (iso2EVCheckOutStatusType) uint32;
exiFrag->EVCheckOutStatus_isUsed = 1u;
} else {
/* Second level event (e.g., xsi:type, xsi:nil, ...) */
@@ -103465,167 +83929,162 @@ int decode_v2gExiFragment(bitstream_t* stream, struct v2gEXIFragment* exiFrag) {
break;
case 66:
/* START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}EVEnergyTransferParameter) */
- errn = decode_v2gEVEnergyTransferParameterType(stream, &exiFrag->EVEnergyTransferParameter);
+ errn = decode_iso2EVEnergyTransferParameterType(stream, &exiFrag->EVEnergyTransferParameter);
exiFrag->EVEnergyTransferParameter_isUsed = 1u;
break;
case 67:
- /* START_ELEMENT({urn:iso:15118:2:2016:MsgBody}EVErrorInformation) */
- errn = decode_v2gEVErrorInformationType(stream, &exiFrag->EVErrorInformation);
- exiFrag->EVErrorInformation_isUsed = 1u;
- break;
- case 68:
/* START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}EVFinePositioningParameters) */
- errn = decode_v2gEVFinePositioningParametersType(stream, &exiFrag->EVFinePositioningParameters);
+ errn = decode_iso2EVFinePositioningParametersType(stream, &exiFrag->EVFinePositioningParameters);
exiFrag->EVFinePositioningParameters_isUsed = 1u;
break;
- case 69:
+ case 68:
/* START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}EVFinePositioningSetupParameters) */
- errn = decode_v2gEVFinePositioningSetupParametersType(stream, &exiFrag->EVFinePositioningSetupParameters);
+ errn = decode_iso2EVFinePositioningSetupParametersType(stream, &exiFrag->EVFinePositioningSetupParameters);
exiFrag->EVFinePositioningSetupParameters_isUsed = 1u;
break;
- case 70:
+ case 69:
/* START_ELEMENT({urn:iso:15118:2:2016:MsgBody}EVInputPower) */
- errn = decode_v2gPhysicalValueType(stream, &exiFrag->EVInputPower);
+ errn = decode_iso2PhysicalValueType(stream, &exiFrag->EVInputPower);
exiFrag->EVInputPower_isUsed = 1u;
break;
- case 71:
+ case 70:
/* START_ELEMENT({urn:iso:15118:2:2016:MsgBody}EVMaximumChargeCurrent) */
errn = EXI_UNSUPPORTED_FRAGMENT_ELEMENT; /* overlapping name EVMaximumChargeCurrent */
break;
- case 72:
+ case 71:
/* START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}EVMaximumChargeCurrent) */
errn = EXI_UNSUPPORTED_FRAGMENT_ELEMENT; /* overlapping name EVMaximumChargeCurrent */
break;
- case 73:
+ case 72:
/* START_ELEMENT({urn:iso:15118:2:2016:MsgBody}EVMaximumChargePower) */
errn = EXI_UNSUPPORTED_FRAGMENT_ELEMENT; /* overlapping name EVMaximumChargePower */
break;
- case 74:
+ case 73:
/* START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}EVMaximumChargePower) */
errn = EXI_UNSUPPORTED_FRAGMENT_ELEMENT; /* overlapping name EVMaximumChargePower */
break;
- case 75:
+ case 74:
/* START_ELEMENT({urn:iso:15118:2:2016:MsgBody}EVMaximumCurrent) */
- errn = decode_v2gPhysicalValueType(stream, &exiFrag->EVMaximumCurrent);
+ errn = decode_iso2PhysicalValueType(stream, &exiFrag->EVMaximumCurrent);
exiFrag->EVMaximumCurrent_isUsed = 1u;
break;
- case 76:
+ case 75:
/* START_ELEMENT({urn:iso:15118:2:2016:MsgBody}EVMaximumDischargeCurrent) */
errn = EXI_UNSUPPORTED_FRAGMENT_ELEMENT; /* overlapping name EVMaximumDischargeCurrent */
break;
- case 77:
+ case 76:
/* START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}EVMaximumDischargeCurrent) */
errn = EXI_UNSUPPORTED_FRAGMENT_ELEMENT; /* overlapping name EVMaximumDischargeCurrent */
break;
- case 78:
+ case 77:
/* START_ELEMENT({urn:iso:15118:2:2016:MsgBody}EVMaximumDischargePower) */
errn = EXI_UNSUPPORTED_FRAGMENT_ELEMENT; /* overlapping name EVMaximumDischargePower */
break;
- case 79:
+ case 78:
/* START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}EVMaximumDischargePower) */
errn = EXI_UNSUPPORTED_FRAGMENT_ELEMENT; /* overlapping name EVMaximumDischargePower */
break;
- case 80:
+ case 79:
/* START_ELEMENT({urn:iso:15118:2:2016:MsgBody}EVMaximumEnergyRequest) */
errn = EXI_UNSUPPORTED_FRAGMENT_ELEMENT; /* overlapping name EVMaximumEnergyRequest */
break;
- case 81:
+ case 80:
/* START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}EVMaximumEnergyRequest) */
errn = EXI_UNSUPPORTED_FRAGMENT_ELEMENT; /* overlapping name EVMaximumEnergyRequest */
break;
- case 82:
+ case 81:
/* START_ELEMENT({urn:iso:15118:2:2016:MsgBody}EVMaximumPower) */
errn = EXI_UNSUPPORTED_FRAGMENT_ELEMENT; /* overlapping name EVMaximumPower */
break;
- case 83:
+ case 82:
/* START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}EVMaximumPower) */
errn = EXI_UNSUPPORTED_FRAGMENT_ELEMENT; /* overlapping name EVMaximumPower */
break;
- case 84:
+ case 83:
/* START_ELEMENT({urn:iso:15118:2:2016:MsgBody}EVMaximumVoltage) */
errn = EXI_UNSUPPORTED_FRAGMENT_ELEMENT; /* overlapping name EVMaximumVoltage */
break;
- case 85:
+ case 84:
/* START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}EVMaximumVoltage) */
errn = EXI_UNSUPPORTED_FRAGMENT_ELEMENT; /* overlapping name EVMaximumVoltage */
break;
- case 86:
+ case 85:
/* START_ELEMENT({urn:iso:15118:2:2016:MsgBody}EVMechanicalChargingDeviceStatus) */
errn = EXI_UNSUPPORTED_FRAGMENT_ELEMENT; /* overlapping name EVMechanicalChargingDeviceStatus */
break;
- case 87:
+ case 86:
/* START_ELEMENT({urn:iso:15118:2:2016:MsgBody}EVMinimumChargeCurrent) */
errn = EXI_UNSUPPORTED_FRAGMENT_ELEMENT; /* overlapping name EVMinimumChargeCurrent */
break;
- case 88:
+ case 87:
/* START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}EVMinimumChargeCurrent) */
errn = EXI_UNSUPPORTED_FRAGMENT_ELEMENT; /* overlapping name EVMinimumChargeCurrent */
break;
- case 89:
+ case 88:
/* START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}EVMinimumChargePower) */
- errn = decode_v2gPhysicalValueType(stream, &exiFrag->EVMinimumChargePower);
+ errn = decode_iso2PhysicalValueType(stream, &exiFrag->EVMinimumChargePower);
exiFrag->EVMinimumChargePower_isUsed = 1u;
break;
- case 90:
+ case 89:
/* START_ELEMENT({urn:iso:15118:2:2016:MsgBody}EVMinimumDischargeCurrent) */
errn = EXI_UNSUPPORTED_FRAGMENT_ELEMENT; /* overlapping name EVMinimumDischargeCurrent */
break;
- case 91:
+ case 90:
/* START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}EVMinimumDischargeCurrent) */
errn = EXI_UNSUPPORTED_FRAGMENT_ELEMENT; /* overlapping name EVMinimumDischargeCurrent */
break;
- case 92:
+ case 91:
/* START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}EVMinimumDischargePower) */
- errn = decode_v2gPhysicalValueType(stream, &exiFrag->EVMinimumDischargePower);
+ errn = decode_iso2PhysicalValueType(stream, &exiFrag->EVMinimumDischargePower);
exiFrag->EVMinimumDischargePower_isUsed = 1u;
break;
- case 93:
+ case 92:
/* START_ELEMENT({urn:iso:15118:2:2016:MsgBody}EVMinimumEnergyRequest) */
errn = EXI_UNSUPPORTED_FRAGMENT_ELEMENT; /* overlapping name EVMinimumEnergyRequest */
break;
- case 94:
+ case 93:
/* START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}EVMinimumEnergyRequest) */
errn = EXI_UNSUPPORTED_FRAGMENT_ELEMENT; /* overlapping name EVMinimumEnergyRequest */
break;
- case 95:
+ case 94:
/* START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}EVMinimumPower) */
- errn = decode_v2gPhysicalValueType(stream, &exiFrag->EVMinimumPower);
+ errn = decode_iso2PhysicalValueType(stream, &exiFrag->EVMinimumPower);
exiFrag->EVMinimumPower_isUsed = 1u;
break;
- case 96:
+ case 95:
/* START_ELEMENT({urn:iso:15118:2:2016:MsgBody}EVMinimumVoltage) */
errn = EXI_UNSUPPORTED_FRAGMENT_ELEMENT; /* overlapping name EVMinimumVoltage */
break;
- case 97:
+ case 96:
/* START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}EVMinimumVoltage) */
errn = EXI_UNSUPPORTED_FRAGMENT_ELEMENT; /* overlapping name EVMinimumVoltage */
break;
- case 98:
+ case 97:
/* START_ELEMENT({urn:iso:15118:2:2016:MsgBody}EVOperation) */
errn = EXI_UNSUPPORTED_FRAGMENT_ELEMENT; /* overlapping name EVOperation */
break;
- case 99:
+ case 98:
/* START_ELEMENT({urn:iso:15118:2:2016:MsgBody}EVPresentActivePower) */
- errn = decode_v2gPhysicalValueType(stream, &exiFrag->EVPresentActivePower);
+ errn = decode_iso2PhysicalValueType(stream, &exiFrag->EVPresentActivePower);
exiFrag->EVPresentActivePower_isUsed = 1u;
break;
- case 100:
+ case 99:
/* START_ELEMENT({urn:iso:15118:2:2016:MsgBody}EVPresentReactivePower) */
- errn = decode_v2gPhysicalValueType(stream, &exiFrag->EVPresentReactivePower);
+ errn = decode_iso2PhysicalValueType(stream, &exiFrag->EVPresentReactivePower);
exiFrag->EVPresentReactivePower_isUsed = 1u;
break;
- case 101:
+ case 100:
/* START_ELEMENT({urn:iso:15118:2:2016:MsgBody}EVProcessing) */
errn = EXI_UNSUPPORTED_FRAGMENT_ELEMENT; /* overlapping name EVProcessing */
break;
- case 102:
+ case 101:
/* START_ELEMENT({urn:iso:15118:2:2016:MsgBody}EVSECheckOutStatus) */
/* FirstStartTag[CHARACTERS[ENUMERATION]] */
errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
if(errn == 0) {
if(eventCode == 0) {
errn = decodeNBitUnsignedInteger(stream, 2, &uint32);
- exiFrag->EVSECheckOutStatus = (v2gEVCheckOutStatusType) uint32;
+ exiFrag->EVSECheckOutStatus = (iso2EVCheckOutStatusType) uint32;
exiFrag->EVSECheckOutStatus_isUsed = 1u;
} else {
/* Second level event (e.g., xsi:type, xsi:nil, ...) */
@@ -103633,145 +84092,140 @@ int decode_v2gExiFragment(bitstream_t* stream, struct v2gEXIFragment* exiFrag) {
}
}
break;
- case 103:
+ case 102:
/* START_ELEMENT({urn:iso:15118:2:2016:MsgBody}EVSECurrentLimitAchieved) */
errn = EXI_UNSUPPORTED_FRAGMENT_ELEMENT; /* overlapping name EVSECurrentLimitAchieved */
break;
- case 104:
+ case 103:
/* START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}EVSECurrentRegulationTolerance) */
- errn = decode_v2gPhysicalValueType(stream, &exiFrag->EVSECurrentRegulationTolerance);
+ errn = decode_iso2PhysicalValueType(stream, &exiFrag->EVSECurrentRegulationTolerance);
exiFrag->EVSECurrentRegulationTolerance_isUsed = 1u;
break;
- case 105:
+ case 104:
/* START_ELEMENT({urn:iso:15118:2:2016:MsgBody}EVSEElectricalChargingDeviceStatus) */
errn = EXI_UNSUPPORTED_FRAGMENT_ELEMENT; /* overlapping name EVSEElectricalChargingDeviceStatus */
break;
- case 106:
+ case 105:
/* START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}EVSEEnergyToBeDelivered) */
- errn = decode_v2gPhysicalValueType(stream, &exiFrag->EVSEEnergyToBeDelivered);
+ errn = decode_iso2PhysicalValueType(stream, &exiFrag->EVSEEnergyToBeDelivered);
exiFrag->EVSEEnergyToBeDelivered_isUsed = 1u;
break;
- case 107:
+ case 106:
/* START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}EVSEEnergyTransferParameter) */
- errn = decode_v2gEVSEEnergyTransferParameterType(stream, &exiFrag->EVSEEnergyTransferParameter);
+ errn = decode_iso2EVSEEnergyTransferParameterType(stream, &exiFrag->EVSEEnergyTransferParameter);
exiFrag->EVSEEnergyTransferParameter_isUsed = 1u;
break;
- case 108:
- /* START_ELEMENT({urn:iso:15118:2:2016:MsgBody}EVSEErrorInformation) */
- errn = decode_v2gEVSEErrorInformationType(stream, &exiFrag->EVSEErrorInformation);
- exiFrag->EVSEErrorInformation_isUsed = 1u;
- break;
- case 109:
+ case 107:
/* START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}EVSEFinePositioningParameters) */
- errn = decode_v2gEVSEFinePositioningParametersType(stream, &exiFrag->EVSEFinePositioningParameters);
+ errn = decode_iso2EVSEFinePositioningParametersType(stream, &exiFrag->EVSEFinePositioningParameters);
exiFrag->EVSEFinePositioningParameters_isUsed = 1u;
break;
- case 110:
+ case 108:
/* START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}EVSEFinePositioningSetupParameters) */
- errn = decode_v2gEVSEFinePositioningSetupParametersType(stream, &exiFrag->EVSEFinePositioningSetupParameters);
+ errn = decode_iso2EVSEFinePositioningSetupParametersType(stream, &exiFrag->EVSEFinePositioningSetupParameters);
exiFrag->EVSEFinePositioningSetupParameters_isUsed = 1u;
break;
- case 111:
+ case 109:
/* START_ELEMENT({urn:iso:15118:2:2016:MsgBody}EVSEID) */
errn = EXI_UNSUPPORTED_FRAGMENT_ELEMENT; /* overlapping name EVSEID */
break;
- case 112:
+ case 110:
/* START_ELEMENT({urn:iso:15118:2:2016:MsgBody}EVSEMaximumChargeCurrent) */
errn = EXI_UNSUPPORTED_FRAGMENT_ELEMENT; /* overlapping name EVSEMaximumChargeCurrent */
break;
- case 113:
+ case 111:
/* START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}EVSEMaximumChargeCurrent) */
errn = EXI_UNSUPPORTED_FRAGMENT_ELEMENT; /* overlapping name EVSEMaximumChargeCurrent */
break;
- case 114:
+ case 112:
/* START_ELEMENT({urn:iso:15118:2:2016:MsgBody}EVSEMaximumChargePower) */
errn = EXI_UNSUPPORTED_FRAGMENT_ELEMENT; /* overlapping name EVSEMaximumChargePower */
break;
- case 115:
+ case 113:
/* START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}EVSEMaximumChargePower) */
errn = EXI_UNSUPPORTED_FRAGMENT_ELEMENT; /* overlapping name EVSEMaximumChargePower */
break;
- case 116:
+ case 114:
/* START_ELEMENT({urn:iso:15118:2:2016:MsgBody}EVSEMaximumCurrent) */
- errn = decode_v2gPhysicalValueType(stream, &exiFrag->EVSEMaximumCurrent);
+ errn = decode_iso2PhysicalValueType(stream, &exiFrag->EVSEMaximumCurrent);
exiFrag->EVSEMaximumCurrent_isUsed = 1u;
break;
- case 117:
+ case 115:
/* START_ELEMENT({urn:iso:15118:2:2016:MsgBody}EVSEMaximumDischargeCurrent) */
errn = EXI_UNSUPPORTED_FRAGMENT_ELEMENT; /* overlapping name EVSEMaximumDischargeCurrent */
break;
- case 118:
+ case 116:
/* START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}EVSEMaximumDischargeCurrent) */
errn = EXI_UNSUPPORTED_FRAGMENT_ELEMENT; /* overlapping name EVSEMaximumDischargeCurrent */
break;
- case 119:
+ case 117:
/* START_ELEMENT({urn:iso:15118:2:2016:MsgBody}EVSEMaximumDischargePower) */
errn = EXI_UNSUPPORTED_FRAGMENT_ELEMENT; /* overlapping name EVSEMaximumDischargePower */
break;
- case 120:
+ case 118:
/* START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}EVSEMaximumDischargePower) */
errn = EXI_UNSUPPORTED_FRAGMENT_ELEMENT; /* overlapping name EVSEMaximumDischargePower */
break;
- case 121:
+ case 119:
/* START_ELEMENT({urn:iso:15118:2:2016:MsgBody}EVSEMaximumPower) */
errn = EXI_UNSUPPORTED_FRAGMENT_ELEMENT; /* overlapping name EVSEMaximumPower */
break;
- case 122:
+ case 120:
/* START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}EVSEMaximumPower) */
errn = EXI_UNSUPPORTED_FRAGMENT_ELEMENT; /* overlapping name EVSEMaximumPower */
break;
- case 123:
+ case 121:
/* START_ELEMENT({urn:iso:15118:2:2016:MsgBody}EVSEMaximumVoltage) */
errn = EXI_UNSUPPORTED_FRAGMENT_ELEMENT; /* overlapping name EVSEMaximumVoltage */
break;
- case 124:
+ case 122:
/* START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}EVSEMaximumVoltage) */
errn = EXI_UNSUPPORTED_FRAGMENT_ELEMENT; /* overlapping name EVSEMaximumVoltage */
break;
- case 125:
+ case 123:
/* START_ELEMENT({urn:iso:15118:2:2016:MsgBody}EVSEMechanicalChargingDeviceStatus) */
errn = EXI_UNSUPPORTED_FRAGMENT_ELEMENT; /* overlapping name EVSEMechanicalChargingDeviceStatus */
break;
- case 126:
+ case 124:
/* START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}EVSEMinimumChargeCurrent) */
- errn = decode_v2gPhysicalValueType(stream, &exiFrag->EVSEMinimumChargeCurrent);
+ errn = decode_iso2PhysicalValueType(stream, &exiFrag->EVSEMinimumChargeCurrent);
exiFrag->EVSEMinimumChargeCurrent_isUsed = 1u;
break;
- case 127:
+ case 125:
/* START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}EVSEMinimumDischargeCurrent) */
- errn = decode_v2gPhysicalValueType(stream, &exiFrag->EVSEMinimumDischargeCurrent);
+ errn = decode_iso2PhysicalValueType(stream, &exiFrag->EVSEMinimumDischargeCurrent);
exiFrag->EVSEMinimumDischargeCurrent_isUsed = 1u;
break;
- case 128:
+ case 126:
/* START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}EVSEMinimumPower) */
- errn = decode_v2gPhysicalValueType(stream, &exiFrag->EVSEMinimumPower);
+ errn = decode_iso2PhysicalValueType(stream, &exiFrag->EVSEMinimumPower);
exiFrag->EVSEMinimumPower_isUsed = 1u;
break;
- case 129:
+ case 127:
/* START_ELEMENT({urn:iso:15118:2:2016:MsgBody}EVSEMinimumVoltage) */
errn = EXI_UNSUPPORTED_FRAGMENT_ELEMENT; /* overlapping name EVSEMinimumVoltage */
break;
- case 130:
+ case 128:
/* START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}EVSEMinimumVoltage) */
errn = EXI_UNSUPPORTED_FRAGMENT_ELEMENT; /* overlapping name EVSEMinimumVoltage */
break;
- case 131:
+ case 129:
/* START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}EVSENominalFrequency) */
errn = EXI_UNSUPPORTED_FRAGMENT_ELEMENT; /* overlapping name EVSENominalFrequency */
break;
- case 132:
+ case 130:
/* START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}EVSENominalVoltage) */
- errn = decode_v2gPhysicalValueType(stream, &exiFrag->EVSENominalVoltage);
+ errn = decode_iso2PhysicalValueType(stream, &exiFrag->EVSENominalVoltage);
exiFrag->EVSENominalVoltage_isUsed = 1u;
break;
- case 133:
+ case 131:
/* START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}EVSENotification) */
/* FirstStartTag[CHARACTERS[ENUMERATION]] */
errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
if(errn == 0) {
if(eventCode == 0) {
errn = decodeNBitUnsignedInteger(stream, 1, &uint32);
- exiFrag->EVSENotification = (v2gEVSENotificationType) uint32;
+ exiFrag->EVSENotification = (iso2EVSENotificationType) uint32;
exiFrag->EVSENotification_isUsed = 1u;
} else {
/* Second level event (e.g., xsi:type, xsi:nil, ...) */
@@ -103779,76 +84233,76 @@ int decode_v2gExiFragment(bitstream_t* stream, struct v2gEXIFragment* exiFrag) {
}
}
break;
- case 134:
+ case 132:
/* START_ELEMENT({urn:iso:15118:2:2016:MsgBody}EVSEOutputPower) */
- errn = decode_v2gPhysicalValueType(stream, &exiFrag->EVSEOutputPower);
+ errn = decode_iso2PhysicalValueType(stream, &exiFrag->EVSEOutputPower);
exiFrag->EVSEOutputPower_isUsed = 1u;
break;
- case 135:
+ case 133:
/* START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}EVSEPeakCurrentRipple) */
- errn = decode_v2gPhysicalValueType(stream, &exiFrag->EVSEPeakCurrentRipple);
+ errn = decode_iso2PhysicalValueType(stream, &exiFrag->EVSEPeakCurrentRipple);
exiFrag->EVSEPeakCurrentRipple_isUsed = 1u;
break;
- case 136:
+ case 134:
/* START_ELEMENT({urn:iso:15118:2:2016:MsgBody}EVSEPowerLimitAchieved) */
errn = EXI_UNSUPPORTED_FRAGMENT_ELEMENT; /* overlapping name EVSEPowerLimitAchieved */
break;
- case 137:
+ case 135:
/* START_ELEMENT({urn:iso:15118:2:2016:MsgBody}EVSEPresentCurrent) */
errn = EXI_UNSUPPORTED_FRAGMENT_ELEMENT; /* overlapping name EVSEPresentCurrent */
break;
- case 138:
+ case 136:
/* START_ELEMENT({urn:iso:15118:2:2016:MsgBody}EVSEPresentVoltage) */
errn = EXI_UNSUPPORTED_FRAGMENT_ELEMENT; /* overlapping name EVSEPresentVoltage */
break;
- case 139:
+ case 137:
/* START_ELEMENT({urn:iso:15118:2:2016:MsgBody}EVSEProcessing) */
errn = EXI_UNSUPPORTED_FRAGMENT_ELEMENT; /* overlapping name EVSEProcessing */
break;
- case 140:
+ case 138:
/* START_ELEMENT({urn:iso:15118:2:2016:MsgBody}EVSEStatus) */
- errn = decode_v2gEVSEStatusType(stream, &exiFrag->EVSEStatus);
+ errn = decode_iso2EVSEStatusType(stream, &exiFrag->EVSEStatus);
exiFrag->EVSEStatus_isUsed = 1u;
break;
- case 141:
+ case 139:
/* START_ELEMENT({urn:iso:15118:2:2016:MsgBody}EVSETargetPower) */
errn = EXI_UNSUPPORTED_FRAGMENT_ELEMENT; /* overlapping name EVSETargetPower */
break;
- case 142:
+ case 140:
/* START_ELEMENT({urn:iso:15118:2:2016:MsgBody}EVSETargetReactivePower) */
- errn = decode_v2gPhysicalValueType(stream, &exiFrag->EVSETargetReactivePower);
+ errn = decode_iso2PhysicalValueType(stream, &exiFrag->EVSETargetReactivePower);
exiFrag->EVSETargetReactivePower_isUsed = 1u;
break;
- case 143:
+ case 141:
/* START_ELEMENT({urn:iso:15118:2:2016:MsgBody}EVSETimeStamp) */
errn = EXI_UNSUPPORTED_FRAGMENT_ELEMENT; /* overlapping name EVSETimeStamp */
break;
- case 144:
+ case 142:
/* START_ELEMENT({urn:iso:15118:2:2016:MsgBody}EVSEVoltageLimitAchieved) */
errn = EXI_UNSUPPORTED_FRAGMENT_ELEMENT; /* overlapping name EVSEVoltageLimitAchieved */
break;
- case 145:
+ case 143:
/* START_ELEMENT({urn:iso:15118:2:2016:MsgBody}EVTargetCurrent) */
errn = EXI_UNSUPPORTED_FRAGMENT_ELEMENT; /* overlapping name EVTargetCurrent */
break;
- case 146:
+ case 144:
/* START_ELEMENT({urn:iso:15118:2:2016:MsgBody}EVTargetEnergyRequest) */
errn = EXI_UNSUPPORTED_FRAGMENT_ELEMENT; /* overlapping name EVTargetEnergyRequest */
break;
- case 147:
+ case 145:
/* START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}EVTargetEnergyRequest) */
errn = EXI_UNSUPPORTED_FRAGMENT_ELEMENT; /* overlapping name EVTargetEnergyRequest */
break;
- case 148:
+ case 146:
/* START_ELEMENT({urn:iso:15118:2:2016:MsgBody}EVTargetPower) */
- errn = decode_v2gPhysicalValueType(stream, &exiFrag->EVTargetPower);
+ errn = decode_iso2PhysicalValueType(stream, &exiFrag->EVTargetPower);
exiFrag->EVTargetPower_isUsed = 1u;
break;
- case 149:
+ case 147:
/* START_ELEMENT({urn:iso:15118:2:2016:MsgBody}EVTargetVoltage) */
errn = EXI_UNSUPPORTED_FRAGMENT_ELEMENT; /* overlapping name EVTargetVoltage */
break;
- case 150:
+ case 148:
/* START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}EffectiveRadiatedPower) */
/* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
@@ -103863,36 +84317,27 @@ int decode_v2gExiFragment(bitstream_t* stream, struct v2gEXIFragment* exiFrag) {
}
}
break;
- case 151:
+ case 149:
/* START_ELEMENT({urn:iso:15118:2:2016:MsgBody}EnergyTransferServiceList) */
- errn = decode_v2gServiceListType(stream, &exiFrag->EnergyTransferServiceList);
+ errn = decode_iso2ServiceListType(stream, &exiFrag->EnergyTransferServiceList);
exiFrag->EnergyTransferServiceList_isUsed = 1u;
break;
- case 152:
- /* START_ELEMENT({urn:iso:15118:2:2016:MsgBody}ErrorCode) */
- errn = EXI_UNSUPPORTED_FRAGMENT_ELEMENT; /* overlapping name ErrorCode */
- break;
- case 153:
- /* START_ELEMENT({urn:iso:15118:2:2016:MsgBody}ErrorInformation) */
- errn = decode_v2gBodyBaseType(stream, &exiFrag->ErrorInformation);
- exiFrag->ErrorInformation_isUsed = 1u;
- break;
- case 154:
+ case 150:
/* START_ELEMENT({http://www.w3.org/2000/09/xmldsig#}Exponent) */
errn = EXI_UNSUPPORTED_FRAGMENT_ELEMENT; /* overlapping name Exponent */
break;
- case 155:
+ case 151:
/* START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}Exponent) */
errn = EXI_UNSUPPORTED_FRAGMENT_ELEMENT; /* overlapping name Exponent */
break;
- case 156:
+ case 152:
/* START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}FODStatus) */
/* FirstStartTag[CHARACTERS[ENUMERATION]] */
errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
if(errn == 0) {
if(eventCode == 0) {
errn = decodeNBitUnsignedInteger(stream, 2, &uint32);
- exiFrag->FODStatus = (v2gFODStatusType) uint32;
+ exiFrag->FODStatus = (iso2FODStatusType) uint32;
exiFrag->FODStatus_isUsed = 1u;
} else {
/* Second level event (e.g., xsi:type, xsi:nil, ...) */
@@ -103900,27 +84345,27 @@ int decode_v2gExiFragment(bitstream_t* stream, struct v2gEXIFragment* exiFrag) {
}
}
break;
- case 157:
+ case 153:
/* START_ELEMENT({urn:iso:15118:2:2016:MsgBody}FinePositioningReq) */
- errn = decode_v2gFinePositioningReqType(stream, &exiFrag->FinePositioningReq);
+ errn = decode_iso2FinePositioningReqType(stream, &exiFrag->FinePositioningReq);
exiFrag->FinePositioningReq_isUsed = 1u;
break;
- case 158:
+ case 154:
/* START_ELEMENT({urn:iso:15118:2:2016:MsgBody}FinePositioningRes) */
- errn = decode_v2gFinePositioningResType(stream, &exiFrag->FinePositioningRes);
+ errn = decode_iso2FinePositioningResType(stream, &exiFrag->FinePositioningRes);
exiFrag->FinePositioningRes_isUsed = 1u;
break;
- case 159:
+ case 155:
/* START_ELEMENT({urn:iso:15118:2:2016:MsgBody}FinePositioningSetupReq) */
- errn = decode_v2gFinePositioningSetupReqType(stream, &exiFrag->FinePositioningSetupReq);
+ errn = decode_iso2FinePositioningSetupReqType(stream, &exiFrag->FinePositioningSetupReq);
exiFrag->FinePositioningSetupReq_isUsed = 1u;
break;
- case 160:
+ case 156:
/* START_ELEMENT({urn:iso:15118:2:2016:MsgBody}FinePositioningSetupRes) */
- errn = decode_v2gFinePositioningSetupResType(stream, &exiFrag->FinePositioningSetupRes);
+ errn = decode_iso2FinePositioningSetupResType(stream, &exiFrag->FinePositioningSetupRes);
exiFrag->FinePositioningSetupRes_isUsed = 1u;
break;
- case 161:
+ case 157:
/* START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}FreeService) */
/* FirstStartTag[CHARACTERS[BOOLEAN]] */
errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
@@ -103934,11 +84379,11 @@ int decode_v2gExiFragment(bitstream_t* stream, struct v2gEXIFragment* exiFrag) {
}
}
break;
- case 162:
+ case 158:
/* START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}FrequencyChannel) */
errn = EXI_UNSUPPORTED_FRAGMENT_ELEMENT; /* overlapping name FrequencyChannel */
break;
- case 163:
+ case 159:
/* START_ELEMENT({http://www.w3.org/2000/09/xmldsig#}G) */
/* FirstStartTag[CHARACTERS[BINARY_BASE64]] */
errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
@@ -103958,29 +84403,29 @@ int decode_v2gExiFragment(bitstream_t* stream, struct v2gEXIFragment* exiFrag) {
}
}
break;
- case 164:
+ case 160:
/* START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}GAID) */
errn = EXI_UNSUPPORTED_FRAGMENT_ELEMENT; /* overlapping name GAID */
break;
- case 165:
+ case 161:
/* START_ELEMENT({urn:iso:15118:2:2016:MsgBody}GenChallenge) */
errn = EXI_UNSUPPORTED_FRAGMENT_ELEMENT; /* overlapping name GenChallenge */
break;
- case 166:
+ case 162:
/* START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}GenericParameters) */
errn = EXI_UNSUPPORTED_FRAGMENT_ELEMENT; /* overlapping name GenericParameters */
break;
- case 167:
+ case 163:
/* START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}Generic_EVFinePositioningParameters) */
- errn = decode_v2gGeneric_EVFinePositioningParametersType(stream, &exiFrag->Generic_EVFinePositioningParameters);
+ errn = decode_iso2Generic_EVFinePositioningParametersType(stream, &exiFrag->Generic_EVFinePositioningParameters);
exiFrag->Generic_EVFinePositioningParameters_isUsed = 1u;
break;
- case 168:
+ case 164:
/* START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}Generic_EVSEFinePositioningParameters) */
- errn = decode_v2gGeneric_EVSEFinePositioningParametersType(stream, &exiFrag->Generic_EVSEFinePositioningParameters);
+ errn = decode_iso2Generic_EVSEFinePositioningParametersType(stream, &exiFrag->Generic_EVSEFinePositioningParameters);
exiFrag->Generic_EVSEFinePositioningParameters_isUsed = 1u;
break;
- case 169:
+ case 165:
/* START_ELEMENT({http://www.w3.org/2000/09/xmldsig#}HMACOutputLength) */
/* FirstStartTag[CHARACTERS[INTEGER]] */
errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
@@ -103994,12 +84439,12 @@ int decode_v2gExiFragment(bitstream_t* stream, struct v2gEXIFragment* exiFrag) {
}
}
break;
- case 170:
+ case 166:
/* START_ELEMENT({urn:iso:15118:2:2016:MsgDef}Header) */
- errn = decode_v2gMessageHeaderType(stream, &exiFrag->Header);
+ errn = decode_iso2MessageHeaderType(stream, &exiFrag->Header);
exiFrag->Header_isUsed = 1u;
break;
- case 171:
+ case 167:
/* START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}InletHot) */
/* FirstStartTag[CHARACTERS[BOOLEAN]] */
errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
@@ -104013,7 +84458,7 @@ int decode_v2gExiFragment(bitstream_t* stream, struct v2gEXIFragment* exiFrag) {
}
}
break;
- case 172:
+ case 168:
/* START_ELEMENT({http://www.w3.org/2000/09/xmldsig#}J) */
/* FirstStartTag[CHARACTERS[BINARY_BASE64]] */
errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
@@ -104033,12 +84478,12 @@ int decode_v2gExiFragment(bitstream_t* stream, struct v2gEXIFragment* exiFrag) {
}
}
break;
- case 173:
+ case 169:
/* START_ELEMENT({http://www.w3.org/2000/09/xmldsig#}KeyInfo) */
- errn = decode_v2gKeyInfoType(stream, &exiFrag->KeyInfo);
+ errn = decode_iso2KeyInfoType(stream, &exiFrag->KeyInfo);
exiFrag->KeyInfo_isUsed = 1u;
break;
- case 174:
+ case 170:
/* START_ELEMENT({http://www.w3.org/2000/09/xmldsig#}KeyName) */
/* First(xsi:type)StartTag[CHARACTERS[STRING]] */
errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
@@ -104061,71 +84506,71 @@ int decode_v2gExiFragment(bitstream_t* stream, struct v2gEXIFragment* exiFrag) {
}
}
break;
- case 175:
+ case 171:
/* START_ELEMENT({http://www.w3.org/2000/09/xmldsig#}KeyValue) */
- errn = decode_v2gKeyValueType(stream, &exiFrag->KeyValue);
+ errn = decode_iso2KeyValueType(stream, &exiFrag->KeyValue);
exiFrag->KeyValue_isUsed = 1u;
break;
- case 176:
+ case 172:
/* START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}LFA_EVFinePositioningParameters) */
- errn = decode_v2gLFA_EVFinePositioningParametersType(stream, &exiFrag->LFA_EVFinePositioningParameters);
+ errn = decode_iso2LFA_EVFinePositioningParametersType(stream, &exiFrag->LFA_EVFinePositioningParameters);
exiFrag->LFA_EVFinePositioningParameters_isUsed = 1u;
break;
- case 177:
+ case 173:
/* START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}LFA_EVFinePositioningSetupParameters) */
- errn = decode_v2gLFA_EVFinePositioningSetupParametersType(stream, &exiFrag->LFA_EVFinePositioningSetupParameters);
+ errn = decode_iso2LFA_EVFinePositioningSetupParametersType(stream, &exiFrag->LFA_EVFinePositioningSetupParameters);
exiFrag->LFA_EVFinePositioningSetupParameters_isUsed = 1u;
break;
- case 178:
+ case 174:
+ /* START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}LFA_EVSEFinePositioningParameters) */
+ errn = decode_iso2LFA_EVSEFinePositioningParametersType(stream, &exiFrag->LFA_EVSEFinePositioningParameters);
+ exiFrag->LFA_EVSEFinePositioningParameters_isUsed = 1u;
+ break;
+ case 175:
/* START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}LFA_EVSEFinePositioningSetupParameters) */
- errn = decode_v2gLFA_EVSEFinePositioningSetupParametersType(stream, &exiFrag->LFA_EVSEFinePositioningSetupParameters);
+ errn = decode_iso2LFA_EVSEFinePositioningSetupParametersType(stream, &exiFrag->LFA_EVSEFinePositioningSetupParameters);
exiFrag->LFA_EVSEFinePositioningSetupParameters_isUsed = 1u;
break;
- case 179:
- /* START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}LF_EVSEFinePositioningParameters) */
- errn = decode_v2gLF_EVSEFinePositioningParametersType(stream, &exiFrag->LF_EVSEFinePositioningParameters);
- exiFrag->LF_EVSEFinePositioningParameters_isUsed = 1u;
- break;
- case 180:
+ case 176:
/* START_ELEMENT({urn:iso:15118:2:2016:MsgBody}ListOfRootCertificateIDs) */
errn = EXI_UNSUPPORTED_FRAGMENT_ELEMENT; /* overlapping name ListOfRootCertificateIDs */
break;
- case 181:
+ case 177:
/* START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MV_EVSEFinePositioningParameters) */
- errn = decode_v2gMV_EVSEFinePositioningParametersType(stream, &exiFrag->MV_EVSEFinePositioningParameters);
+ errn = decode_iso2MV_EVSEFinePositioningParametersType(stream, &exiFrag->MV_EVSEFinePositioningParameters);
exiFrag->MV_EVSEFinePositioningParameters_isUsed = 1u;
break;
- case 182:
+ case 178:
/* START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MV_EVSEFinePositioningSetupParameters) */
- errn = decode_v2gMV_EVSEFinePositioningSetupParametersType(stream, &exiFrag->MV_EVSEFinePositioningSetupParameters);
+ errn = decode_iso2MV_EVSEFinePositioningSetupParametersType(stream, &exiFrag->MV_EVSEFinePositioningSetupParameters);
exiFrag->MV_EVSEFinePositioningSetupParameters_isUsed = 1u;
break;
- case 183:
+ case 179:
/* START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MagneticVector) */
- errn = decode_v2gMagneticVectorType(stream, &exiFrag->MagneticVector);
+ errn = decode_iso2MagneticVectorType(stream, &exiFrag->MagneticVector);
exiFrag->MagneticVector_isUsed = 1u;
break;
- case 184:
+ case 180:
/* START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MagneticVectorList) */
- errn = decode_v2gMagneticVectorListType(stream, &exiFrag->MagneticVectorList);
+ errn = decode_iso2MagneticVectorListType(stream, &exiFrag->MagneticVectorList);
exiFrag->MagneticVectorList_isUsed = 1u;
break;
- case 185:
+ case 181:
/* START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MagneticVectorSetup) */
- errn = decode_v2gMagneticVectorSetupType(stream, &exiFrag->MagneticVectorSetup);
+ errn = decode_iso2MagneticVectorSetupType(stream, &exiFrag->MagneticVectorSetup);
exiFrag->MagneticVectorSetup_isUsed = 1u;
break;
- case 186:
+ case 182:
/* START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MagneticVectorSetupList) */
- errn = decode_v2gMagneticVectorSetupListType(stream, &exiFrag->MagneticVectorSetupList);
+ errn = decode_iso2MagneticVectorSetupListType(stream, &exiFrag->MagneticVectorSetupList);
exiFrag->MagneticVectorSetupList_isUsed = 1u;
break;
- case 187:
+ case 183:
/* START_ELEMENT({http://www.w3.org/2000/09/xmldsig#}Manifest) */
- errn = decode_v2gManifestType(stream, &exiFrag->Manifest);
+ errn = decode_iso2ManifestType(stream, &exiFrag->Manifest);
exiFrag->Manifest_isUsed = 1u;
break;
- case 188:
+ case 184:
/* START_ELEMENT({urn:iso:15118:2:2016:MsgBody}MaxSupportingPoints) */
/* FirstStartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
@@ -104140,7 +84585,7 @@ int decode_v2gExiFragment(bitstream_t* stream, struct v2gEXIFragment* exiFrag) {
}
}
break;
- case 189:
+ case 185:
/* START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MeasurementData) */
/* First(xsi:type)StartTag[CHARACTERS[UNSIGNED_INTEGER]] */
errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
@@ -104154,7 +84599,12 @@ int decode_v2gExiFragment(bitstream_t* stream, struct v2gEXIFragment* exiFrag) {
}
}
break;
- case 190:
+ case 186:
+ /* START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MeasurementDataList) */
+ errn = decode_iso2MeasurementDataListType(stream, &exiFrag->MeasurementDataList);
+ exiFrag->MeasurementDataList_isUsed = 1u;
+ break;
+ case 187:
/* START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MeterID) */
/* FirstStartTag[CHARACTERS[STRING]] */
errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
@@ -104177,11 +84627,11 @@ int decode_v2gExiFragment(bitstream_t* stream, struct v2gEXIFragment* exiFrag) {
}
}
break;
- case 191:
+ case 188:
/* START_ELEMENT({urn:iso:15118:2:2016:MsgBody}MeterInfo) */
errn = EXI_UNSUPPORTED_FRAGMENT_ELEMENT; /* overlapping name MeterInfo */
break;
- case 192:
+ case 189:
/* START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MeterReadingCharged) */
/* First(xsi:type)StartTag[CHARACTERS[UNSIGNED_INTEGER]] */
errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
@@ -104195,7 +84645,7 @@ int decode_v2gExiFragment(bitstream_t* stream, struct v2gEXIFragment* exiFrag) {
}
}
break;
- case 193:
+ case 190:
/* START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MeterReadingDischarged) */
/* First(xsi:type)StartTag[CHARACTERS[UNSIGNED_INTEGER]] */
errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
@@ -104209,7 +84659,7 @@ int decode_v2gExiFragment(bitstream_t* stream, struct v2gEXIFragment* exiFrag) {
}
}
break;
- case 194:
+ case 191:
/* START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MeterStatus) */
/* FirstStartTag[CHARACTERS[INTEGER]] */
errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
@@ -104223,17 +84673,17 @@ int decode_v2gExiFragment(bitstream_t* stream, struct v2gEXIFragment* exiFrag) {
}
}
break;
- case 195:
+ case 192:
/* START_ELEMENT({urn:iso:15118:2:2016:MsgBody}MeteringReceiptReq) */
- errn = decode_v2gMeteringReceiptReqType(stream, &exiFrag->MeteringReceiptReq);
+ errn = decode_iso2MeteringReceiptReqType(stream, &exiFrag->MeteringReceiptReq);
exiFrag->MeteringReceiptReq_isUsed = 1u;
break;
- case 196:
+ case 193:
/* START_ELEMENT({urn:iso:15118:2:2016:MsgBody}MeteringReceiptRes) */
- errn = decode_v2gV2GResponseType(stream, &exiFrag->MeteringReceiptRes);
+ errn = decode_iso2MeteringReceiptResType(stream, &exiFrag->MeteringReceiptRes);
exiFrag->MeteringReceiptRes_isUsed = 1u;
break;
- case 197:
+ case 194:
/* START_ELEMENT({http://www.w3.org/2000/09/xmldsig#}MgmtData) */
/* First(xsi:type)StartTag[CHARACTERS[STRING]] */
errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
@@ -104256,21 +84706,21 @@ int decode_v2gExiFragment(bitstream_t* stream, struct v2gEXIFragment* exiFrag) {
}
}
break;
- case 198:
+ case 195:
/* START_ELEMENT({urn:iso:15118:2:2016:MsgBody}MinimumPMaxRequest) */
- errn = decode_v2gMinimumPMaxRequestType(stream, &exiFrag->MinimumPMaxRequest);
+ errn = decode_iso2MinimumPMaxRequestType(stream, &exiFrag->MinimumPMaxRequest);
exiFrag->MinimumPMaxRequest_isUsed = 1u;
break;
- case 199:
+ case 196:
/* START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MinimumPMaxScheduleEntry) */
- errn = decode_v2gPMaxScheduleEntryType(stream, &exiFrag->MinimumPMaxScheduleEntry);
+ errn = decode_iso2PMaxScheduleEntryType(stream, &exiFrag->MinimumPMaxScheduleEntry);
exiFrag->MinimumPMaxScheduleEntry_isUsed = 1u;
break;
- case 200:
+ case 197:
/* START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MinimumSOC) */
errn = EXI_UNSUPPORTED_FRAGMENT_ELEMENT; /* overlapping name MinimumSOC */
break;
- case 201:
+ case 198:
/* START_ELEMENT({http://www.w3.org/2000/09/xmldsig#}Modulus) */
/* FirstStartTag[CHARACTERS[BINARY_BASE64]] */
errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
@@ -104290,7 +84740,7 @@ int decode_v2gExiFragment(bitstream_t* stream, struct v2gEXIFragment* exiFrag) {
}
}
break;
- case 202:
+ case 199:
/* START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}NotificationMaxDelay) */
/* First(xsi:type)StartTag[CHARACTERS[UNSIGNED_INTEGER]] */
errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
@@ -104304,7 +84754,7 @@ int decode_v2gExiFragment(bitstream_t* stream, struct v2gEXIFragment* exiFrag) {
}
}
break;
- case 203:
+ case 200:
/* START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}NumEPriceLevels) */
/* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
@@ -104319,15 +84769,15 @@ int decode_v2gExiFragment(bitstream_t* stream, struct v2gEXIFragment* exiFrag) {
}
}
break;
- case 204:
+ case 201:
/* START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}NumberOfSensors) */
errn = EXI_UNSUPPORTED_FRAGMENT_ELEMENT; /* overlapping name NumberOfSensors */
break;
- case 205:
+ case 202:
/* START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}NumberOfSignalPackages) */
errn = EXI_UNSUPPORTED_FRAGMENT_ELEMENT; /* overlapping name NumberOfSignalPackages */
break;
- case 206:
+ case 203:
/* START_ELEMENT({urn:iso:15118:2:2016:MsgBody}OEMProvisioningCert) */
/* FirstStartTag[CHARACTERS[BINARY_BASE64]] */
errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
@@ -104347,16 +84797,16 @@ int decode_v2gExiFragment(bitstream_t* stream, struct v2gEXIFragment* exiFrag) {
}
}
break;
- case 207:
+ case 204:
/* START_ELEMENT({http://www.w3.org/2000/09/xmldsig#}Object) */
- errn = decode_v2gObjectType(stream, &exiFrag->Object);
+ errn = decode_iso2ObjectType(stream, &exiFrag->Object);
exiFrag->Object_isUsed = 1u;
break;
- case 208:
+ case 205:
/* START_ELEMENT({urn:iso:15118:2:2016:MsgBody}OperationMode) */
errn = EXI_UNSUPPORTED_FRAGMENT_ELEMENT; /* overlapping name OperationMode */
break;
- case 209:
+ case 206:
/* START_ELEMENT({http://www.w3.org/2000/09/xmldsig#}P) */
/* FirstStartTag[CHARACTERS[BINARY_BASE64]] */
errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
@@ -104376,12 +84826,12 @@ int decode_v2gExiFragment(bitstream_t* stream, struct v2gEXIFragment* exiFrag) {
}
}
break;
- case 210:
+ case 207:
/* START_ELEMENT({http://www.w3.org/2000/09/xmldsig#}PGPData) */
- errn = decode_v2gPGPDataType(stream, &exiFrag->PGPData);
+ errn = decode_iso2PGPDataType(stream, &exiFrag->PGPData);
exiFrag->PGPData_isUsed = 1u;
break;
- case 211:
+ case 208:
/* START_ELEMENT({http://www.w3.org/2000/09/xmldsig#}PGPKeyID) */
/* First(xsi:type)StartTag[CHARACTERS[BINARY_BASE64]] */
errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
@@ -104401,31 +84851,31 @@ int decode_v2gExiFragment(bitstream_t* stream, struct v2gEXIFragment* exiFrag) {
}
}
break;
- case 212:
+ case 209:
/* START_ELEMENT({http://www.w3.org/2000/09/xmldsig#}PGPKeyPacket) */
errn = EXI_UNSUPPORTED_FRAGMENT_ELEMENT; /* overlapping name PGPKeyPacket */
break;
- case 213:
+ case 210:
/* START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}PMax) */
- errn = decode_v2gPhysicalValueType(stream, &exiFrag->PMax);
+ errn = decode_iso2PhysicalValueType(stream, &exiFrag->PMax);
exiFrag->PMax_isUsed = 1u;
break;
- case 214:
+ case 211:
/* START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}PMaxDischargeSchedule) */
- errn = decode_v2gPMaxScheduleType(stream, &exiFrag->PMaxDischargeSchedule);
+ errn = decode_iso2PMaxScheduleType(stream, &exiFrag->PMaxDischargeSchedule);
exiFrag->PMaxDischargeSchedule_isUsed = 1u;
break;
- case 215:
+ case 212:
/* START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}PMaxSchedule) */
- errn = decode_v2gPMaxScheduleType(stream, &exiFrag->PMaxSchedule);
+ errn = decode_iso2PMaxScheduleType(stream, &exiFrag->PMaxSchedule);
exiFrag->PMaxSchedule_isUsed = 1u;
break;
- case 216:
+ case 213:
/* START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}PMaxScheduleEntry) */
- errn = decode_v2gPMaxScheduleEntryType(stream, &exiFrag->PMaxScheduleEntry);
+ errn = decode_iso2PMaxScheduleEntryType(stream, &exiFrag->PMaxScheduleEntry);
exiFrag->PMaxScheduleEntry_isUsed = 1u;
break;
- case 217:
+ case 214:
/* START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}PackageIndex) */
/* First(xsi:type)StartTag[CHARACTERS[UNSIGNED_INTEGER]] */
errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
@@ -104439,46 +84889,46 @@ int decode_v2gExiFragment(bitstream_t* stream, struct v2gEXIFragment* exiFrag) {
}
}
break;
- case 218:
+ case 215:
/* START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}PackageSeparationTime) */
errn = EXI_UNSUPPORTED_FRAGMENT_ELEMENT; /* overlapping name PackageSeparationTime */
break;
- case 219:
+ case 216:
/* START_ELEMENT({urn:iso:15118:2:2016:MsgBody}PairingParameters) */
errn = EXI_UNSUPPORTED_FRAGMENT_ELEMENT; /* overlapping name PairingParameters */
break;
- case 220:
+ case 217:
/* START_ELEMENT({urn:iso:15118:2:2016:MsgBody}PairingReq) */
- errn = decode_v2gPairingReqType(stream, &exiFrag->PairingReq);
+ errn = decode_iso2PairingReqType(stream, &exiFrag->PairingReq);
exiFrag->PairingReq_isUsed = 1u;
break;
- case 221:
+ case 218:
/* START_ELEMENT({urn:iso:15118:2:2016:MsgBody}PairingRes) */
- errn = decode_v2gPairingResType(stream, &exiFrag->PairingRes);
+ errn = decode_iso2PairingResType(stream, &exiFrag->PairingRes);
exiFrag->PairingRes_isUsed = 1u;
break;
- case 222:
+ case 219:
/* START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}Parameter) */
- errn = decode_v2gParameterType(stream, &exiFrag->Parameter);
+ errn = decode_iso2ParameterType(stream, &exiFrag->Parameter);
exiFrag->Parameter_isUsed = 1u;
break;
- case 223:
+ case 220:
/* START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}ParameterSet) */
- errn = decode_v2gParameterSetType(stream, &exiFrag->ParameterSet);
+ errn = decode_iso2ParameterSetType(stream, &exiFrag->ParameterSet);
exiFrag->ParameterSet_isUsed = 1u;
break;
- case 224:
+ case 221:
/* START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}ParameterSetID) */
errn = EXI_UNSUPPORTED_FRAGMENT_ELEMENT; /* overlapping name ParameterSetID */
break;
- case 225:
+ case 222:
/* START_ELEMENT({urn:iso:15118:2:2016:MsgBody}ParkingMethod) */
/* FirstStartTag[CHARACTERS[ENUMERATION]] */
errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
if(errn == 0) {
if(eventCode == 0) {
errn = decodeNBitUnsignedInteger(stream, 2, &uint32);
- exiFrag->ParkingMethod = (v2gparkingMethodType) uint32;
+ exiFrag->ParkingMethod = (iso2parkingMethodType) uint32;
exiFrag->ParkingMethod_isUsed = 1u;
} else {
/* Second level event (e.g., xsi:type, xsi:nil, ...) */
@@ -104486,24 +84936,24 @@ int decode_v2gExiFragment(bitstream_t* stream, struct v2gEXIFragment* exiFrag) {
}
}
break;
- case 226:
+ case 223:
/* START_ELEMENT({urn:iso:15118:2:2016:MsgBody}PaymentDetailsReq) */
- errn = decode_v2gPaymentDetailsReqType(stream, &exiFrag->PaymentDetailsReq);
+ errn = decode_iso2PaymentDetailsReqType(stream, &exiFrag->PaymentDetailsReq);
exiFrag->PaymentDetailsReq_isUsed = 1u;
break;
- case 227:
+ case 224:
/* START_ELEMENT({urn:iso:15118:2:2016:MsgBody}PaymentDetailsRes) */
- errn = decode_v2gPaymentDetailsResType(stream, &exiFrag->PaymentDetailsRes);
+ errn = decode_iso2PaymentDetailsResType(stream, &exiFrag->PaymentDetailsRes);
exiFrag->PaymentDetailsRes_isUsed = 1u;
break;
- case 228:
+ case 225:
/* START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}PaymentOption) */
/* FirstStartTag[CHARACTERS[ENUMERATION]] */
errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
if(errn == 0) {
if(eventCode == 0) {
errn = decodeNBitUnsignedInteger(stream, 1, &uint32);
- exiFrag->PaymentOption = (v2gpaymentOptionType) uint32;
+ exiFrag->PaymentOption = (iso2paymentOptionType) uint32;
exiFrag->PaymentOption_isUsed = 1u;
} else {
/* Second level event (e.g., xsi:type, xsi:nil, ...) */
@@ -104511,22 +84961,22 @@ int decode_v2gExiFragment(bitstream_t* stream, struct v2gEXIFragment* exiFrag) {
}
}
break;
- case 229:
+ case 226:
/* START_ELEMENT({urn:iso:15118:2:2016:MsgBody}PaymentOptionList) */
- errn = decode_v2gPaymentOptionListType(stream, &exiFrag->PaymentOptionList);
+ errn = decode_iso2PaymentOptionListType(stream, &exiFrag->PaymentOptionList);
exiFrag->PaymentOptionList_isUsed = 1u;
break;
- case 230:
+ case 227:
/* START_ELEMENT({urn:iso:15118:2:2016:MsgBody}PaymentServiceSelectionReq) */
- errn = decode_v2gPaymentServiceSelectionReqType(stream, &exiFrag->PaymentServiceSelectionReq);
+ errn = decode_iso2PaymentServiceSelectionReqType(stream, &exiFrag->PaymentServiceSelectionReq);
exiFrag->PaymentServiceSelectionReq_isUsed = 1u;
break;
- case 231:
+ case 228:
/* START_ELEMENT({urn:iso:15118:2:2016:MsgBody}PaymentServiceSelectionRes) */
- errn = decode_v2gV2GResponseType(stream, &exiFrag->PaymentServiceSelectionRes);
+ errn = decode_iso2PaymentServiceSelectionResType(stream, &exiFrag->PaymentServiceSelectionRes);
exiFrag->PaymentServiceSelectionRes_isUsed = 1u;
break;
- case 232:
+ case 229:
/* START_ELEMENT({http://www.w3.org/2000/09/xmldsig#}PgenCounter) */
/* FirstStartTag[CHARACTERS[BINARY_BASE64]] */
errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
@@ -104546,46 +84996,46 @@ int decode_v2gExiFragment(bitstream_t* stream, struct v2gEXIFragment* exiFrag) {
}
}
break;
- case 233:
+ case 230:
/* START_ELEMENT({urn:iso:15118:2:2016:MsgBody}PowerDeliveryReq) */
- errn = decode_v2gPowerDeliveryReqType(stream, &exiFrag->PowerDeliveryReq);
+ errn = decode_iso2PowerDeliveryReqType(stream, &exiFrag->PowerDeliveryReq);
exiFrag->PowerDeliveryReq_isUsed = 1u;
break;
- case 234:
+ case 231:
/* START_ELEMENT({urn:iso:15118:2:2016:MsgBody}PowerDeliveryRes) */
- errn = decode_v2gPowerDeliveryResType(stream, &exiFrag->PowerDeliveryRes);
+ errn = decode_iso2PowerDeliveryResType(stream, &exiFrag->PowerDeliveryRes);
exiFrag->PowerDeliveryRes_isUsed = 1u;
break;
- case 235:
+ case 232:
/* START_ELEMENT({urn:iso:15118:2:2016:MsgBody}PowerDemandParameters) */
errn = EXI_UNSUPPORTED_FRAGMENT_ELEMENT; /* overlapping name PowerDemandParameters */
break;
- case 236:
+ case 233:
/* START_ELEMENT({urn:iso:15118:2:2016:MsgBody}PowerDemandReq) */
- errn = decode_v2gPowerDemandReqType(stream, &exiFrag->PowerDemandReq);
+ errn = decode_iso2PowerDemandReqType(stream, &exiFrag->PowerDemandReq);
exiFrag->PowerDemandReq_isUsed = 1u;
break;
- case 237:
+ case 234:
/* START_ELEMENT({urn:iso:15118:2:2016:MsgBody}PowerDemandRes) */
- errn = decode_v2gPowerDemandResType(stream, &exiFrag->PowerDemandRes);
+ errn = decode_iso2PowerDemandResType(stream, &exiFrag->PowerDemandRes);
exiFrag->PowerDemandRes_isUsed = 1u;
break;
- case 238:
+ case 235:
/* START_ELEMENT({urn:iso:15118:2:2016:MsgBody}PreChargeReq) */
- errn = decode_v2gPreChargeReqType(stream, &exiFrag->PreChargeReq);
+ errn = decode_iso2PreChargeReqType(stream, &exiFrag->PreChargeReq);
exiFrag->PreChargeReq_isUsed = 1u;
break;
- case 239:
+ case 236:
/* START_ELEMENT({urn:iso:15118:2:2016:MsgBody}PreChargeRes) */
- errn = decode_v2gPreChargeResType(stream, &exiFrag->PreChargeRes);
+ errn = decode_iso2PreChargeResType(stream, &exiFrag->PreChargeRes);
exiFrag->PreChargeRes_isUsed = 1u;
break;
- case 240:
+ case 237:
/* START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}ProfileEntry) */
- errn = decode_v2gPMaxScheduleEntryType(stream, &exiFrag->ProfileEntry);
+ errn = decode_iso2PMaxScheduleEntryType(stream, &exiFrag->ProfileEntry);
exiFrag->ProfileEntry_isUsed = 1u;
break;
- case 241:
+ case 238:
/* START_ELEMENT({http://www.w3.org/2000/09/xmldsig#}Q) */
/* FirstStartTag[CHARACTERS[BINARY_BASE64]] */
errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
@@ -104605,25 +85055,25 @@ int decode_v2gExiFragment(bitstream_t* stream, struct v2gEXIFragment* exiFrag) {
}
}
break;
- case 242:
+ case 239:
/* START_ELEMENT({http://www.w3.org/2000/09/xmldsig#}RSAKeyValue) */
- errn = decode_v2gRSAKeyValueType(stream, &exiFrag->RSAKeyValue);
+ errn = decode_iso2RSAKeyValueType(stream, &exiFrag->RSAKeyValue);
exiFrag->RSAKeyValue_isUsed = 1u;
break;
- case 243:
+ case 240:
/* START_ELEMENT({urn:iso:15118:2:2016:MsgBody}ReceiptRequired) */
errn = EXI_UNSUPPORTED_FRAGMENT_ELEMENT; /* overlapping name ReceiptRequired */
break;
- case 244:
+ case 241:
/* START_ELEMENT({http://www.w3.org/2000/09/xmldsig#}Reference) */
- errn = decode_v2gReferenceType(stream, &exiFrag->Reference);
+ errn = decode_iso2ReferenceType(stream, &exiFrag->Reference);
exiFrag->Reference_isUsed = 1u;
break;
- case 245:
+ case 242:
/* START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}RelativeTimeInterval) */
errn = EXI_UNSUPPORTED_FRAGMENT_ELEMENT; /* overlapping name RelativeTimeInterval */
break;
- case 246:
+ case 243:
/* START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}RemainingTimeToBulkSOC) */
/* FirstStartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
@@ -104638,7 +85088,7 @@ int decode_v2gExiFragment(bitstream_t* stream, struct v2gEXIFragment* exiFrag) {
}
}
break;
- case 247:
+ case 244:
/* START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}RemainingTimeToMinimumSOC) */
/* FirstStartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
@@ -104653,7 +85103,7 @@ int decode_v2gExiFragment(bitstream_t* stream, struct v2gEXIFragment* exiFrag) {
}
}
break;
- case 248:
+ case 245:
/* START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}RemainingTimeToTargetSOC) */
/* FirstStartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
@@ -104668,14 +85118,14 @@ int decode_v2gExiFragment(bitstream_t* stream, struct v2gEXIFragment* exiFrag) {
}
}
break;
- case 249:
+ case 246:
/* START_ELEMENT({urn:iso:15118:2:2016:MsgBody}ResponseCode) */
/* FirstStartTag[CHARACTERS[ENUMERATION]] */
errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
if(errn == 0) {
if(eventCode == 0) {
errn = decodeNBitUnsignedInteger(stream, 5, &uint32);
- exiFrag->ResponseCode = (v2gresponseCodeType) uint32;
+ exiFrag->ResponseCode = (iso2responseCodeType) uint32;
exiFrag->ResponseCode_isUsed = 1u;
} else {
/* Second level event (e.g., xsi:type, xsi:nil, ...) */
@@ -104683,12 +85133,12 @@ int decode_v2gExiFragment(bitstream_t* stream, struct v2gEXIFragment* exiFrag) {
}
}
break;
- case 250:
+ case 247:
/* START_ELEMENT({http://www.w3.org/2000/09/xmldsig#}RetrievalMethod) */
- errn = decode_v2gRetrievalMethodType(stream, &exiFrag->RetrievalMethod);
+ errn = decode_iso2RetrievalMethodType(stream, &exiFrag->RetrievalMethod);
exiFrag->RetrievalMethod_isUsed = 1u;
break;
- case 251:
+ case 248:
/* START_ELEMENT({urn:iso:15118:2:2016:MsgBody}RetryCounter) */
/* First(xsi:type)StartTag[CHARACTERS[INTEGER]] */
errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
@@ -104702,47 +85152,47 @@ int decode_v2gExiFragment(bitstream_t* stream, struct v2gEXIFragment* exiFrag) {
}
}
break;
- case 252:
+ case 249:
/* START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}RootCertificateID) */
- errn = decode_v2gX509IssuerSerialType(stream, &exiFrag->RootCertificateID);
+ errn = decode_iso2X509IssuerSerialType(stream, &exiFrag->RootCertificateID);
exiFrag->RootCertificateID_isUsed = 1u;
break;
- case 253:
+ case 250:
/* START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}RotationVAtoGA) */
- errn = decode_v2gPhysicalValueType(stream, &exiFrag->RotationVAtoGA);
+ errn = decode_iso2PhysicalValueType(stream, &exiFrag->RotationVAtoGA);
exiFrag->RotationVAtoGA_isUsed = 1u;
break;
- case 254:
+ case 251:
/* START_ELEMENT({urn:iso:15118:2:2016:MsgBody}SAProvisioningCertificateChain) */
errn = EXI_UNSUPPORTED_FRAGMENT_ELEMENT; /* overlapping name SAProvisioningCertificateChain */
break;
- case 255:
+ case 252:
/* START_ELEMENT({urn:iso:15118:2:2016:MsgBody}SAScheduleList) */
errn = EXI_UNSUPPORTED_FRAGMENT_ELEMENT; /* overlapping name SAScheduleList */
break;
- case 256:
+ case 253:
/* START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SAScheduleList) */
errn = EXI_UNSUPPORTED_FRAGMENT_ELEMENT; /* overlapping name SAScheduleList */
break;
- case 257:
+ case 254:
/* START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SAScheduleTuple) */
- errn = decode_v2gSAScheduleTupleType(stream, &exiFrag->SAScheduleTuple);
+ errn = decode_iso2SAScheduleTupleType(stream, &exiFrag->SAScheduleTuple);
exiFrag->SAScheduleTuple_isUsed = 1u;
break;
- case 258:
+ case 255:
/* START_ELEMENT({urn:iso:15118:2:2016:MsgBody}SAScheduleTupleID) */
errn = EXI_UNSUPPORTED_FRAGMENT_ELEMENT; /* overlapping name SAScheduleTupleID */
break;
- case 259:
+ case 256:
/* START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SAScheduleTupleID) */
errn = EXI_UNSUPPORTED_FRAGMENT_ELEMENT; /* overlapping name SAScheduleTupleID */
break;
- case 260:
+ case 257:
/* START_ELEMENT({http://www.w3.org/2000/09/xmldsig#}SPKIData) */
- errn = decode_v2gSPKIDataType(stream, &exiFrag->SPKIData);
+ errn = decode_iso2SPKIDataType(stream, &exiFrag->SPKIData);
exiFrag->SPKIData_isUsed = 1u;
break;
- case 261:
+ case 258:
/* START_ELEMENT({http://www.w3.org/2000/09/xmldsig#}SPKISexp) */
/* First(xsi:type)StartTag[CHARACTERS[BINARY_BASE64]] */
errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
@@ -104762,12 +85212,12 @@ int decode_v2gExiFragment(bitstream_t* stream, struct v2gEXIFragment* exiFrag) {
}
}
break;
- case 262:
+ case 259:
/* START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SalesTariff) */
- errn = decode_v2gSalesTariffType(stream, &exiFrag->SalesTariff);
+ errn = decode_iso2SalesTariffType(stream, &exiFrag->SalesTariff);
exiFrag->SalesTariff_isUsed = 1u;
break;
- case 263:
+ case 260:
/* START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SalesTariffDescription) */
/* FirstStartTag[CHARACTERS[STRING]] */
errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
@@ -104790,12 +85240,12 @@ int decode_v2gExiFragment(bitstream_t* stream, struct v2gEXIFragment* exiFrag) {
}
}
break;
- case 264:
+ case 261:
/* START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SalesTariffEntry) */
- errn = decode_v2gSalesTariffEntryType(stream, &exiFrag->SalesTariffEntry);
+ errn = decode_iso2SalesTariffEntryType(stream, &exiFrag->SalesTariffEntry);
exiFrag->SalesTariffEntry_isUsed = 1u;
break;
- case 265:
+ case 262:
/* START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SalesTariffID) */
/* FirstStartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
@@ -104810,7 +85260,7 @@ int decode_v2gExiFragment(bitstream_t* stream, struct v2gEXIFragment* exiFrag) {
}
}
break;
- case 266:
+ case 263:
/* START_ELEMENT({http://www.w3.org/2000/09/xmldsig#}Seed) */
/* FirstStartTag[CHARACTERS[BINARY_BASE64]] */
errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
@@ -104830,19 +85280,19 @@ int decode_v2gExiFragment(bitstream_t* stream, struct v2gEXIFragment* exiFrag) {
}
}
break;
- case 267:
+ case 264:
/* START_ELEMENT({urn:iso:15118:2:2016:MsgBody}SelectedEnergyTransferService) */
- errn = decode_v2gSelectedServiceType(stream, &exiFrag->SelectedEnergyTransferService);
+ errn = decode_iso2SelectedServiceType(stream, &exiFrag->SelectedEnergyTransferService);
exiFrag->SelectedEnergyTransferService_isUsed = 1u;
break;
- case 268:
+ case 265:
/* START_ELEMENT({urn:iso:15118:2:2016:MsgBody}SelectedPaymentOption) */
/* FirstStartTag[CHARACTERS[ENUMERATION]] */
errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
if(errn == 0) {
if(eventCode == 0) {
errn = decodeNBitUnsignedInteger(stream, 1, &uint32);
- exiFrag->SelectedPaymentOption = (v2gpaymentOptionType) uint32;
+ exiFrag->SelectedPaymentOption = (iso2paymentOptionType) uint32;
exiFrag->SelectedPaymentOption_isUsed = 1u;
} else {
/* Second level event (e.g., xsi:type, xsi:nil, ...) */
@@ -104850,124 +85300,123 @@ int decode_v2gExiFragment(bitstream_t* stream, struct v2gEXIFragment* exiFrag) {
}
}
break;
- case 269:
+ case 266:
/* START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SelectedService) */
- errn = decode_v2gSelectedServiceType(stream, &exiFrag->SelectedService);
+ errn = decode_iso2SelectedServiceType(stream, &exiFrag->SelectedService);
exiFrag->SelectedService_isUsed = 1u;
break;
- case 270:
+ case 267:
/* START_ELEMENT({urn:iso:15118:2:2016:MsgBody}SelectedVASList) */
- errn = decode_v2gSelectedServiceListType(stream, &exiFrag->SelectedVASList);
+ errn = decode_iso2SelectedServiceListType(stream, &exiFrag->SelectedVASList);
exiFrag->SelectedVASList_isUsed = 1u;
break;
- case 271:
+ case 268:
/* START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}Sensor) */
- errn = decode_v2gSensorType(stream, &exiFrag->Sensor);
+ errn = decode_iso2SensorType(stream, &exiFrag->Sensor);
exiFrag->Sensor_isUsed = 1u;
break;
- case 272:
+ case 269:
/* START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorID) */
errn = EXI_UNSUPPORTED_FRAGMENT_ELEMENT; /* overlapping name SensorID */
break;
- case 273:
+ case 270:
/* START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorList) */
errn = EXI_UNSUPPORTED_FRAGMENT_ELEMENT; /* overlapping name SensorList */
break;
- case 274:
+ case 271:
/* START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorMeasurements) */
- errn = decode_v2gSensorMeasurementsType(stream, &exiFrag->SensorMeasurements);
+ errn = decode_iso2SensorMeasurementsType(stream, &exiFrag->SensorMeasurements);
exiFrag->SensorMeasurements_isUsed = 1u;
break;
- case 275:
+ case 272:
/* START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorOrder) */
errn = EXI_UNSUPPORTED_FRAGMENT_ELEMENT; /* overlapping name SensorOrder */
break;
- case 276:
+ case 273:
/* START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorOrientation) */
- errn = decode_v2gCartesianCoordinatesType(stream, &exiFrag->SensorOrientation);
+ errn = decode_iso2CartesianCoordinatesType(stream, &exiFrag->SensorOrientation);
exiFrag->SensorOrientation_isUsed = 1u;
break;
- case 277:
+ case 274:
/* START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorPackage) */
- errn = decode_v2gSensorPackageType(stream, &exiFrag->SensorPackage);
+ errn = decode_iso2SensorPackageType(stream, &exiFrag->SensorPackage);
exiFrag->SensorPackage_isUsed = 1u;
break;
- case 278:
+ case 275:
/* START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorPackageList) */
errn = EXI_UNSUPPORTED_FRAGMENT_ELEMENT; /* overlapping name SensorPackageList */
break;
- case 279:
+ case 276:
/* START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorPosition) */
- errn = decode_v2gCartesianCoordinatesType(stream, &exiFrag->SensorPosition);
- exiFrag->SensorPosition_isUsed = 1u;
+ errn = EXI_UNSUPPORTED_FRAGMENT_ELEMENT; /* overlapping name SensorPosition */
break;
- case 280:
+ case 277:
/* START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}Service) */
- errn = decode_v2gServiceType(stream, &exiFrag->Service);
+ errn = decode_iso2ServiceType(stream, &exiFrag->Service);
exiFrag->Service_isUsed = 1u;
break;
- case 281:
+ case 278:
/* START_ELEMENT({urn:iso:15118:2:2016:MsgBody}ServiceDetailReq) */
- errn = decode_v2gServiceDetailReqType(stream, &exiFrag->ServiceDetailReq);
+ errn = decode_iso2ServiceDetailReqType(stream, &exiFrag->ServiceDetailReq);
exiFrag->ServiceDetailReq_isUsed = 1u;
break;
- case 282:
+ case 279:
/* START_ELEMENT({urn:iso:15118:2:2016:MsgBody}ServiceDetailRes) */
- errn = decode_v2gServiceDetailResType(stream, &exiFrag->ServiceDetailRes);
+ errn = decode_iso2ServiceDetailResType(stream, &exiFrag->ServiceDetailRes);
exiFrag->ServiceDetailRes_isUsed = 1u;
break;
- case 283:
+ case 280:
/* START_ELEMENT({urn:iso:15118:2:2016:MsgBody}ServiceDiscoveryReq) */
- errn = decode_v2gServiceDiscoveryReqType(stream, &exiFrag->ServiceDiscoveryReq);
+ errn = decode_iso2ServiceDiscoveryReqType(stream, &exiFrag->ServiceDiscoveryReq);
exiFrag->ServiceDiscoveryReq_isUsed = 1u;
break;
- case 284:
+ case 281:
/* START_ELEMENT({urn:iso:15118:2:2016:MsgBody}ServiceDiscoveryRes) */
- errn = decode_v2gServiceDiscoveryResType(stream, &exiFrag->ServiceDiscoveryRes);
+ errn = decode_iso2ServiceDiscoveryResType(stream, &exiFrag->ServiceDiscoveryRes);
exiFrag->ServiceDiscoveryRes_isUsed = 1u;
break;
- case 285:
+ case 282:
/* START_ELEMENT({urn:iso:15118:2:2016:MsgBody}ServiceID) */
errn = EXI_UNSUPPORTED_FRAGMENT_ELEMENT; /* overlapping name ServiceID */
break;
- case 286:
+ case 283:
/* START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}ServiceID) */
errn = EXI_UNSUPPORTED_FRAGMENT_ELEMENT; /* overlapping name ServiceID */
break;
- case 287:
+ case 284:
/* START_ELEMENT({urn:iso:15118:2:2016:MsgBody}ServiceParameterList) */
- errn = decode_v2gServiceParameterListType(stream, &exiFrag->ServiceParameterList);
+ errn = decode_iso2ServiceParameterListType(stream, &exiFrag->ServiceParameterList);
exiFrag->ServiceParameterList_isUsed = 1u;
break;
- case 288:
+ case 285:
/* START_ELEMENT({urn:iso:15118:2:2016:MsgBody}SessionID) */
errn = EXI_UNSUPPORTED_FRAGMENT_ELEMENT; /* overlapping name SessionID */
break;
- case 289:
+ case 286:
/* START_ELEMENT({urn:iso:15118:2:2016:MsgHeader}SessionID) */
errn = EXI_UNSUPPORTED_FRAGMENT_ELEMENT; /* overlapping name SessionID */
break;
- case 290:
+ case 287:
/* START_ELEMENT({urn:iso:15118:2:2016:MsgBody}SessionSetupReq) */
- errn = decode_v2gSessionSetupReqType(stream, &exiFrag->SessionSetupReq);
+ errn = decode_iso2SessionSetupReqType(stream, &exiFrag->SessionSetupReq);
exiFrag->SessionSetupReq_isUsed = 1u;
break;
- case 291:
+ case 288:
/* START_ELEMENT({urn:iso:15118:2:2016:MsgBody}SessionSetupRes) */
- errn = decode_v2gSessionSetupResType(stream, &exiFrag->SessionSetupRes);
+ errn = decode_iso2SessionSetupResType(stream, &exiFrag->SessionSetupRes);
exiFrag->SessionSetupRes_isUsed = 1u;
break;
- case 292:
+ case 289:
/* START_ELEMENT({urn:iso:15118:2:2016:MsgBody}SessionStopReq) */
- errn = decode_v2gSessionStopReqType(stream, &exiFrag->SessionStopReq);
+ errn = decode_iso2SessionStopReqType(stream, &exiFrag->SessionStopReq);
exiFrag->SessionStopReq_isUsed = 1u;
break;
- case 293:
+ case 290:
/* START_ELEMENT({urn:iso:15118:2:2016:MsgBody}SessionStopRes) */
- errn = decode_v2gV2GResponseType(stream, &exiFrag->SessionStopRes);
+ errn = decode_iso2SessionStopResType(stream, &exiFrag->SessionStopRes);
exiFrag->SessionStopRes_isUsed = 1u;
break;
- case 294:
+ case 291:
/* START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SigMeterReading) */
/* FirstStartTag[CHARACTERS[BINARY_BASE64]] */
errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
@@ -104987,7 +85436,7 @@ int decode_v2gExiFragment(bitstream_t* stream, struct v2gEXIFragment* exiFrag) {
}
}
break;
- case 295:
+ case 292:
/* START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SignalFrequency) */
/* First(xsi:type)StartTag[CHARACTERS[UNSIGNED_INTEGER]] */
errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
@@ -105001,65 +85450,65 @@ int decode_v2gExiFragment(bitstream_t* stream, struct v2gEXIFragment* exiFrag) {
}
}
break;
- case 296:
+ case 293:
/* START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SignalPulseDuration) */
errn = EXI_UNSUPPORTED_FRAGMENT_ELEMENT; /* overlapping name SignalPulseDuration */
break;
- case 297:
+ case 294:
/* START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SignalSeparationTime) */
errn = EXI_UNSUPPORTED_FRAGMENT_ELEMENT; /* overlapping name SignalSeparationTime */
break;
- case 298:
+ case 295:
/* START_ELEMENT({http://www.w3.org/2000/09/xmldsig#}Signature) */
- errn = decode_v2gSignatureType(stream, &exiFrag->Signature);
+ errn = decode_iso2SignatureType(stream, &exiFrag->Signature);
exiFrag->Signature_isUsed = 1u;
break;
- case 299:
+ case 296:
/* START_ELEMENT({http://www.w3.org/2000/09/xmldsig#}SignatureMethod) */
- errn = decode_v2gSignatureMethodType(stream, &exiFrag->SignatureMethod);
+ errn = decode_iso2SignatureMethodType(stream, &exiFrag->SignatureMethod);
exiFrag->SignatureMethod_isUsed = 1u;
break;
- case 300:
+ case 297:
/* START_ELEMENT({http://www.w3.org/2000/09/xmldsig#}SignatureProperties) */
- errn = decode_v2gSignaturePropertiesType(stream, &exiFrag->SignatureProperties);
+ errn = decode_iso2SignaturePropertiesType(stream, &exiFrag->SignatureProperties);
exiFrag->SignatureProperties_isUsed = 1u;
break;
- case 301:
+ case 298:
/* START_ELEMENT({http://www.w3.org/2000/09/xmldsig#}SignatureProperty) */
- errn = decode_v2gSignaturePropertyType(stream, &exiFrag->SignatureProperty);
+ errn = decode_iso2SignaturePropertyType(stream, &exiFrag->SignatureProperty);
exiFrag->SignatureProperty_isUsed = 1u;
break;
- case 302:
+ case 299:
/* START_ELEMENT({http://www.w3.org/2000/09/xmldsig#}SignatureValue) */
- errn = decode_v2gSignatureValueType(stream, &exiFrag->SignatureValue);
+ errn = decode_iso2SignatureValueType(stream, &exiFrag->SignatureValue);
exiFrag->SignatureValue_isUsed = 1u;
break;
- case 303:
+ case 300:
/* START_ELEMENT({http://www.w3.org/2000/09/xmldsig#}SignedInfo) */
- errn = decode_v2gSignedInfoType(stream, &exiFrag->SignedInfo);
+ errn = decode_iso2SignedInfoType(stream, &exiFrag->SignedInfo);
exiFrag->SignedInfo_isUsed = 1u;
break;
- case 304:
+ case 301:
/* START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SubCertificates) */
- errn = decode_v2gSubCertificatesType(stream, &exiFrag->SubCertificates);
+ errn = decode_iso2SubCertificatesType(stream, &exiFrag->SubCertificates);
exiFrag->SubCertificates_isUsed = 1u;
break;
- case 305:
+ case 302:
/* START_ELEMENT({urn:iso:15118:2:2016:MsgBody}SupportedServiceIDs) */
- errn = decode_v2gServiceIDListType(stream, &exiFrag->SupportedServiceIDs);
+ errn = decode_iso2ServiceIDListType(stream, &exiFrag->SupportedServiceIDs);
exiFrag->SupportedServiceIDs_isUsed = 1u;
break;
- case 306:
+ case 303:
/* START_ELEMENT({urn:iso:15118:2:2016:MsgBody}SystemStatusReq) */
- errn = decode_v2gSystemStatusReqType(stream, &exiFrag->SystemStatusReq);
+ errn = decode_iso2SystemStatusReqType(stream, &exiFrag->SystemStatusReq);
exiFrag->SystemStatusReq_isUsed = 1u;
break;
- case 307:
+ case 304:
/* START_ELEMENT({urn:iso:15118:2:2016:MsgBody}SystemStatusRes) */
- errn = decode_v2gSystemStatusResType(stream, &exiFrag->SystemStatusRes);
+ errn = decode_iso2SystemStatusResType(stream, &exiFrag->SystemStatusRes);
exiFrag->SystemStatusRes_isUsed = 1u;
break;
- case 308:
+ case 305:
/* START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}TMeter) */
/* First(xsi:type)StartTag[CHARACTERS[INTEGER]] */
errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
@@ -105073,12 +85522,12 @@ int decode_v2gExiFragment(bitstream_t* stream, struct v2gEXIFragment* exiFrag) {
}
}
break;
- case 309:
+ case 306:
/* START_ELEMENT({urn:iso:15118:2:2016:MsgBody}TargetOffset) */
- errn = decode_v2gTargetPositionType(stream, &exiFrag->TargetOffset);
+ errn = decode_iso2TargetPositionType(stream, &exiFrag->TargetOffset);
exiFrag->TargetOffset_isUsed = 1u;
break;
- case 310:
+ case 307:
/* START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}TargetOffsetX) */
/* First(xsi:type)StartTag[CHARACTERS[UNSIGNED_INTEGER]] */
errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
@@ -105092,7 +85541,7 @@ int decode_v2gExiFragment(bitstream_t* stream, struct v2gEXIFragment* exiFrag) {
}
}
break;
- case 311:
+ case 308:
/* START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}TargetOffsetY) */
/* First(xsi:type)StartTag[CHARACTERS[UNSIGNED_INTEGER]] */
errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
@@ -105106,41 +85555,41 @@ int decode_v2gExiFragment(bitstream_t* stream, struct v2gEXIFragment* exiFrag) {
}
}
break;
- case 312:
+ case 309:
/* START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}TargetSOC) */
errn = EXI_UNSUPPORTED_FRAGMENT_ELEMENT; /* overlapping name TargetSOC */
break;
- case 313:
+ case 310:
/* START_ELEMENT({http://www.w3.org/2000/09/xmldsig#}Transform) */
- errn = decode_v2gTransformType(stream, &exiFrag->Transform);
+ errn = decode_iso2TransformType(stream, &exiFrag->Transform);
exiFrag->Transform_isUsed = 1u;
break;
- case 314:
+ case 311:
/* START_ELEMENT({http://www.w3.org/2000/09/xmldsig#}Transforms) */
- errn = decode_v2gTransformsType(stream, &exiFrag->Transforms);
+ errn = decode_iso2TransformsType(stream, &exiFrag->Transforms);
exiFrag->Transforms_isUsed = 1u;
break;
- case 315:
+ case 312:
/* START_ELEMENT({urn:iso:15118:2:2016:MsgBody}V2GRequest) */
- errn = decode_v2gBodyBaseType(stream, &exiFrag->V2GRequest);
+ errn = decode_iso2BodyBaseType(stream, &exiFrag->V2GRequest);
exiFrag->V2GRequest_isUsed = 1u;
break;
- case 316:
+ case 313:
/* START_ELEMENT({urn:iso:15118:2:2016:MsgBody}V2GResponse) */
- errn = decode_v2gV2GResponseType(stream, &exiFrag->V2GResponse);
+ errn = decode_iso2V2GResponseType(stream, &exiFrag->V2GResponse);
exiFrag->V2GResponse_isUsed = 1u;
break;
- case 317:
+ case 314:
/* START_ELEMENT({urn:iso:15118:2:2016:MsgDef}V2G_Message) */
- errn = decode_v2gAnonType_V2G_Message(stream, &exiFrag->V2G_Message);
+ errn = decode_iso2AnonType_V2G_Message(stream, &exiFrag->V2G_Message);
exiFrag->V2G_Message_isUsed = 1u;
break;
- case 318:
+ case 315:
/* START_ELEMENT({urn:iso:15118:2:2016:MsgBody}VASList) */
- errn = decode_v2gServiceListType(stream, &exiFrag->VASList);
+ errn = decode_iso2ServiceListType(stream, &exiFrag->VASList);
exiFrag->VASList_isUsed = 1u;
break;
- case 319:
+ case 316:
/* START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}Value) */
/* First(xsi:type)StartTag[CHARACTERS[INTEGER]] */
errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
@@ -105154,27 +85603,27 @@ int decode_v2gExiFragment(bitstream_t* stream, struct v2gEXIFragment* exiFrag) {
}
}
break;
- case 320:
+ case 317:
/* START_ELEMENT({urn:iso:15118:2:2016:MsgBody}VehicleCheckInReq) */
- errn = decode_v2gVehicleCheckInReqType(stream, &exiFrag->VehicleCheckInReq);
+ errn = decode_iso2VehicleCheckInReqType(stream, &exiFrag->VehicleCheckInReq);
exiFrag->VehicleCheckInReq_isUsed = 1u;
break;
- case 321:
+ case 318:
/* START_ELEMENT({urn:iso:15118:2:2016:MsgBody}VehicleCheckInRes) */
- errn = decode_v2gVehicleCheckInResType(stream, &exiFrag->VehicleCheckInRes);
+ errn = decode_iso2VehicleCheckInResType(stream, &exiFrag->VehicleCheckInRes);
exiFrag->VehicleCheckInRes_isUsed = 1u;
break;
- case 322:
+ case 319:
/* START_ELEMENT({urn:iso:15118:2:2016:MsgBody}VehicleCheckOutReq) */
- errn = decode_v2gVehicleCheckOutReqType(stream, &exiFrag->VehicleCheckOutReq);
+ errn = decode_iso2VehicleCheckOutReqType(stream, &exiFrag->VehicleCheckOutReq);
exiFrag->VehicleCheckOutReq_isUsed = 1u;
break;
- case 323:
+ case 320:
/* START_ELEMENT({urn:iso:15118:2:2016:MsgBody}VehicleCheckOutRes) */
- errn = decode_v2gVehicleCheckOutResType(stream, &exiFrag->VehicleCheckOutRes);
+ errn = decode_iso2VehicleCheckOutResType(stream, &exiFrag->VehicleCheckOutRes);
exiFrag->VehicleCheckOutRes_isUsed = 1u;
break;
- case 324:
+ case 321:
/* START_ELEMENT({urn:iso:15118:2:2016:MsgBody}VehicleSpace) */
/* First(xsi:type)StartTag[CHARACTERS[UNSIGNED_INTEGER]] */
errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
@@ -105188,27 +85637,27 @@ int decode_v2gExiFragment(bitstream_t* stream, struct v2gEXIFragment* exiFrag) {
}
}
break;
- case 325:
+ case 322:
/* START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}WPT_EVChargeParameter) */
- errn = decode_v2gWPT_EVChargeParameterType(stream, &exiFrag->WPT_EVChargeParameter);
+ errn = decode_iso2WPT_EVChargeParameterType(stream, &exiFrag->WPT_EVChargeParameter);
exiFrag->WPT_EVChargeParameter_isUsed = 1u;
break;
- case 326:
+ case 323:
/* START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}WPT_EVSEChargeParameter) */
- errn = decode_v2gWPT_EVSEChargeParameterType(stream, &exiFrag->WPT_EVSEChargeParameter);
+ errn = decode_iso2WPT_EVSEChargeParameterType(stream, &exiFrag->WPT_EVSEChargeParameter);
exiFrag->WPT_EVSEChargeParameter_isUsed = 1u;
break;
- case 327:
+ case 324:
/* START_ELEMENT({urn:iso:15118:2:2016:MsgBody}WeldingDetectionReq) */
- errn = decode_v2gBodyBaseType(stream, &exiFrag->WeldingDetectionReq);
+ errn = decode_iso2WeldingDetectionReqType(stream, &exiFrag->WeldingDetectionReq);
exiFrag->WeldingDetectionReq_isUsed = 1u;
break;
- case 328:
+ case 325:
/* START_ELEMENT({urn:iso:15118:2:2016:MsgBody}WeldingDetectionRes) */
- errn = decode_v2gWeldingDetectionResType(stream, &exiFrag->WeldingDetectionRes);
+ errn = decode_iso2WeldingDetectionResType(stream, &exiFrag->WeldingDetectionRes);
exiFrag->WeldingDetectionRes_isUsed = 1u;
break;
- case 329:
+ case 326:
/* START_ELEMENT({http://www.w3.org/2000/09/xmldsig#}X509CRL) */
/* First(xsi:type)StartTag[CHARACTERS[BINARY_BASE64]] */
errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
@@ -105228,7 +85677,7 @@ int decode_v2gExiFragment(bitstream_t* stream, struct v2gEXIFragment* exiFrag) {
}
}
break;
- case 330:
+ case 327:
/* START_ELEMENT({http://www.w3.org/2000/09/xmldsig#}X509Certificate) */
/* First(xsi:type)StartTag[CHARACTERS[BINARY_BASE64]] */
errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
@@ -105248,12 +85697,12 @@ int decode_v2gExiFragment(bitstream_t* stream, struct v2gEXIFragment* exiFrag) {
}
}
break;
- case 331:
+ case 328:
/* START_ELEMENT({http://www.w3.org/2000/09/xmldsig#}X509Data) */
- errn = decode_v2gX509DataType(stream, &exiFrag->X509Data);
+ errn = decode_iso2X509DataType(stream, &exiFrag->X509Data);
exiFrag->X509Data_isUsed = 1u;
break;
- case 332:
+ case 329:
/* START_ELEMENT({http://www.w3.org/2000/09/xmldsig#}X509IssuerName) */
/* First(xsi:type)StartTag[CHARACTERS[STRING]] */
errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
@@ -105276,12 +85725,12 @@ int decode_v2gExiFragment(bitstream_t* stream, struct v2gEXIFragment* exiFrag) {
}
}
break;
- case 333:
+ case 330:
/* START_ELEMENT({http://www.w3.org/2000/09/xmldsig#}X509IssuerSerial) */
- errn = decode_v2gX509IssuerSerialType(stream, &exiFrag->X509IssuerSerial);
+ errn = decode_iso2X509IssuerSerialType(stream, &exiFrag->X509IssuerSerial);
exiFrag->X509IssuerSerial_isUsed = 1u;
break;
- case 334:
+ case 331:
/* START_ELEMENT({http://www.w3.org/2000/09/xmldsig#}X509SKI) */
/* First(xsi:type)StartTag[CHARACTERS[BINARY_BASE64]] */
errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
@@ -105301,7 +85750,7 @@ int decode_v2gExiFragment(bitstream_t* stream, struct v2gEXIFragment* exiFrag) {
}
}
break;
- case 335:
+ case 332:
/* START_ELEMENT({http://www.w3.org/2000/09/xmldsig#}X509SerialNumber) */
/* First(xsi:type)StartTag[CHARACTERS[INTEGER]] */
errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
@@ -105315,7 +85764,7 @@ int decode_v2gExiFragment(bitstream_t* stream, struct v2gEXIFragment* exiFrag) {
}
}
break;
- case 336:
+ case 333:
/* START_ELEMENT({http://www.w3.org/2000/09/xmldsig#}X509SubjectName) */
/* First(xsi:type)StartTag[CHARACTERS[STRING]] */
errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
@@ -105338,7 +85787,7 @@ int decode_v2gExiFragment(bitstream_t* stream, struct v2gEXIFragment* exiFrag) {
}
}
break;
- case 337:
+ case 334:
/* START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}XCoordinate) */
/* First(xsi:type)StartTag[CHARACTERS[INTEGER]] */
errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
@@ -105352,7 +85801,7 @@ int decode_v2gExiFragment(bitstream_t* stream, struct v2gEXIFragment* exiFrag) {
}
}
break;
- case 338:
+ case 335:
/* START_ELEMENT({http://www.w3.org/2000/09/xmldsig#}XPath) */
/* First(xsi:type)StartTag[CHARACTERS[STRING]] */
errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
@@ -105375,7 +85824,7 @@ int decode_v2gExiFragment(bitstream_t* stream, struct v2gEXIFragment* exiFrag) {
}
}
break;
- case 339:
+ case 336:
/* START_ELEMENT({http://www.w3.org/2000/09/xmldsig#}Y) */
/* FirstStartTag[CHARACTERS[BINARY_BASE64]] */
errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
@@ -105395,7 +85844,7 @@ int decode_v2gExiFragment(bitstream_t* stream, struct v2gEXIFragment* exiFrag) {
}
}
break;
- case 340:
+ case 337:
/* START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}YCoordinate) */
/* First(xsi:type)StartTag[CHARACTERS[INTEGER]] */
errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
@@ -105409,7 +85858,7 @@ int decode_v2gExiFragment(bitstream_t* stream, struct v2gEXIFragment* exiFrag) {
}
}
break;
- case 341:
+ case 338:
/* START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}ZCoordinate) */
/* First(xsi:type)StartTag[CHARACTERS[INTEGER]] */
errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
@@ -105423,12 +85872,12 @@ int decode_v2gExiFragment(bitstream_t* stream, struct v2gEXIFragment* exiFrag) {
}
}
break;
- case 342:
+ case 339:
/* START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}amount) */
- errn = decode_v2gPhysicalValueType(stream, &exiFrag->amount);
+ errn = decode_iso2PhysicalValueType(stream, &exiFrag->amount);
exiFrag->amount_isUsed = 1u;
break;
- case 343:
+ case 340:
/* START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}boolValue) */
/* FirstStartTag[CHARACTERS[BOOLEAN]] */
errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
@@ -105442,7 +85891,7 @@ int decode_v2gExiFragment(bitstream_t* stream, struct v2gEXIFragment* exiFrag) {
}
}
break;
- case 344:
+ case 341:
/* START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}byteValue) */
/* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
@@ -105457,14 +85906,14 @@ int decode_v2gExiFragment(bitstream_t* stream, struct v2gEXIFragment* exiFrag) {
}
}
break;
- case 345:
+ case 342:
/* START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}costKind) */
/* FirstStartTag[CHARACTERS[ENUMERATION]] */
errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
if(errn == 0) {
if(eventCode == 0) {
errn = decodeNBitUnsignedInteger(stream, 2, &uint32);
- exiFrag->costKind = (v2gcostKindType) uint32;
+ exiFrag->costKind = (iso2costKindType) uint32;
exiFrag->costKind_isUsed = 1u;
} else {
/* Second level event (e.g., xsi:type, xsi:nil, ...) */
@@ -105472,7 +85921,7 @@ int decode_v2gExiFragment(bitstream_t* stream, struct v2gEXIFragment* exiFrag) {
}
}
break;
- case 346:
+ case 343:
/* START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}duration) */
/* FirstStartTag[CHARACTERS[UNSIGNED_INTEGER]] */
errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
@@ -105486,11 +85935,11 @@ int decode_v2gExiFragment(bitstream_t* stream, struct v2gEXIFragment* exiFrag) {
}
}
break;
- case 347:
+ case 344:
/* START_ELEMENT({urn:iso:15118:2:2016:MsgBody}eMAID) */
errn = EXI_UNSUPPORTED_FRAGMENT_ELEMENT; /* overlapping name eMAID */
break;
- case 348:
+ case 345:
/* START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}intValue) */
/* First(xsi:type)StartTag[CHARACTERS[INTEGER]] */
errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
@@ -105504,12 +85953,12 @@ int decode_v2gExiFragment(bitstream_t* stream, struct v2gEXIFragment* exiFrag) {
}
}
break;
- case 349:
+ case 346:
/* START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}physicalValue) */
- errn = decode_v2gPhysicalValueType(stream, &exiFrag->physicalValue);
+ errn = decode_iso2PhysicalValueType(stream, &exiFrag->physicalValue);
exiFrag->physicalValue_isUsed = 1u;
break;
- case 350:
+ case 347:
/* START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}shortValue) */
/* First(xsi:type)StartTag[CHARACTERS[INTEGER]] */
errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
@@ -105523,7 +85972,7 @@ int decode_v2gExiFragment(bitstream_t* stream, struct v2gEXIFragment* exiFrag) {
}
}
break;
- case 351:
+ case 348:
/* START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}start) */
/* FirstStartTag[CHARACTERS[UNSIGNED_INTEGER]] */
errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
@@ -105537,12 +85986,12 @@ int decode_v2gExiFragment(bitstream_t* stream, struct v2gEXIFragment* exiFrag) {
}
}
break;
- case 352:
+ case 349:
/* START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}startValue) */
- errn = decode_v2gPhysicalValueType(stream, &exiFrag->startValue);
+ errn = decode_iso2PhysicalValueType(stream, &exiFrag->startValue);
exiFrag->startValue_isUsed = 1u;
break;
- case 353:
+ case 350:
/* START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}stringValue) */
/* First(xsi:type)StartTag[CHARACTERS[STRING]] */
errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
@@ -105573,24 +86022,21 @@ int decode_v2gExiFragment(bitstream_t* stream, struct v2gEXIFragment* exiFrag) {
if(errn == 0) {
/* EndDocument */
errn = decodeNBitUnsignedInteger(stream, 9, &eventCode);
- if (eventCode != 355) {
+ if (eventCode != 352) {
errn = EXI_UNSUPPORTED_FRAGMENT_ELEMENT;
}
}
}
- (void)exiFrag; /* avoid unused warning */
- (void)decode_v2gChargeLoopReqType;
- (void)decode_v2gV2GRequestType;
- (void)decode_v2gEntryType;
+ (void)exiFrag; /* avoid unused warning */
return errn;
}
-#endif /* DEPLOY_ISO_CODEC_FRAGMENT */
+#endif /* DEPLOY_ISO2_CODEC_FRAGMENT */
-#endif /* DEPLOY_ISO_CODEC */
+#endif /* DEPLOY_ISO2_CODEC */
#endif
diff --git a/src/iso2/iso2EXIDatatypesDecoder.h b/src/iso2/iso2EXIDatatypesDecoder.h
new file mode 100644
index 0000000..2183cfa
--- /dev/null
+++ b/src/iso2/iso2EXIDatatypesDecoder.h
@@ -0,0 +1,64 @@
+/*
+ * Copyright (C) 2007-2017 Siemens AG
+ *
+ * This program is free software: you can redistribute it and/or modify
+ * it under the terms of the GNU Lesser General Public License as published
+ * by the Free Software Foundation, either version 3 of the License, or
+ * (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ * GNU Lesser General Public License for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public License
+ * along with this program. If not, see .
+ */
+
+/*******************************************************************
+ *
+ * @author Daniel.Peintner.EXT@siemens.com
+ * @version 2017-03-23
+ * @contact Joerg.Heuer@siemens.com
+ *
+ * Code generated by EXIdizer
+ * Schema: V2G_CI_MsgDef.xsd
+ *
+ *
+ ********************************************************************/
+
+
+
+/**
+ * \file EXIDatatypesDecoder.h
+ * \brief Decoder for datatype definitions
+ *
+ */
+
+#ifndef EXI_iso2_DATATYPES_DECODER_H
+#define EXI_iso2_DATATYPES_DECODER_H
+
+#ifdef __cplusplus
+extern "C" {
+#endif
+
+#if DEPLOY_ISO2_CODEC == SUPPORT_YES
+
+#include
+
+#include "EXITypes.h"
+#include "iso2EXIDatatypes.h"
+
+int decode_iso2ExiDocument(bitstream_t* stream, struct iso2EXIDocument* exiDoc);
+
+#if DEPLOY_ISO2_CODEC_FRAGMENT == SUPPORT_YES
+int decode_iso2ExiFragment(bitstream_t* stream, struct iso2EXIFragment* exiFrag);
+#endif /* DEPLOY_ISO2_CODEC_FRAGMENT */
+
+#endif /* DEPLOY_ISO2_CODEC */
+
+#ifdef __cplusplus
+}
+#endif
+
+#endif
diff --git a/src/codec/v2gEXIDatatypesEncoder.c b/src/iso2/iso2EXIDatatypesEncoder.c
similarity index 51%
rename from src/codec/v2gEXIDatatypesEncoder.c
rename to src/iso2/iso2EXIDatatypesEncoder.c
index e121ca9..d4b4757 100644
--- a/src/codec/v2gEXIDatatypesEncoder.c
+++ b/src/iso2/iso2EXIDatatypesEncoder.c
@@ -18,7 +18,7 @@
/*******************************************************************
*
* @author Daniel.Peintner.EXT@siemens.com
- * @version 2017-03-02
+ * @version 2017-03-23
* @contact Joerg.Heuer@siemens.com
*
* Code generated by EXIdizer
@@ -30,176 +30,181 @@
-#include "v2gEXIDatatypesEncoder.h"
+#include "iso2EXIDatatypesEncoder.h"
#include "EncoderChannel.h"
#include "EXIHeaderEncoder.h"
-#include "v2gEXIDatatypes.h"
+#include "iso2EXIDatatypes.h"
#include "ErrorCodes.h"
-#ifndef EXI_v2g_DATATYPES_ENCODER_C
-#define EXI_v2g_DATATYPES_ENCODER_C
+#ifndef EXI_iso2_DATATYPES_ENCODER_C
+#define EXI_iso2_DATATYPES_ENCODER_C
-#if DEPLOY_ISO_CODEC == SUPPORT_YES
+#if DEPLOY_ISO2_CODEC == SUPPORT_YES
static int errn;
/* Forward Declarations */
-static int encode_v2gSignatureValueType(bitstream_t* stream, struct v2gSignatureValueType* v2gSignatureValueType);
-static int encode_v2gEVSEFinePositioningSetupParametersType(bitstream_t* stream, struct v2gEVSEFinePositioningSetupParametersType* v2gEVSEFinePositioningSetupParametersType);
-static int encode_v2gAlignmentCheckResType(bitstream_t* stream, struct v2gAlignmentCheckResType* v2gAlignmentCheckResType);
-static int encode_v2gSalesTariffType(bitstream_t* stream, struct v2gSalesTariffType* v2gSalesTariffType);
-static int encode_v2gFinePositioningSetupReqType(bitstream_t* stream, struct v2gFinePositioningSetupReqType* v2gFinePositioningSetupReqType);
-static int encode_v2gSubCertificatesType(bitstream_t* stream, struct v2gSubCertificatesType* v2gSubCertificatesType);
-static int encode_v2gCertificateInstallationResType(bitstream_t* stream, struct v2gCertificateInstallationResType* v2gCertificateInstallationResType);
-static int encode_v2gMeterInfoType(bitstream_t* stream, struct v2gMeterInfoType* v2gMeterInfoType);
-static int encode_v2gChargeLoopReqType(bitstream_t* stream, struct v2gChargeLoopReqType* v2gChargeLoopReqType);
-static int encode_v2gMessageHeaderType(bitstream_t* stream, struct v2gMessageHeaderType* v2gMessageHeaderType);
-static int encode_v2gSignatureType(bitstream_t* stream, struct v2gSignatureType* v2gSignatureType);
-static int encode_v2gBodyType(bitstream_t* stream, struct v2gBodyType* v2gBodyType);
-static int encode_v2gFinePositioningReqType(bitstream_t* stream, struct v2gFinePositioningReqType* v2gFinePositioningReqType);
-static int encode_v2gPMaxScheduleEntryType(bitstream_t* stream, struct v2gPMaxScheduleEntryType* v2gPMaxScheduleEntryType);
-static int encode_v2gPreChargeReqType(bitstream_t* stream, struct v2gPreChargeReqType* v2gPreChargeReqType);
-static int encode_v2gVehicleCheckInResType(bitstream_t* stream, struct v2gVehicleCheckInResType* v2gVehicleCheckInResType);
-static int encode_v2gV2GRequestType(bitstream_t* stream, struct v2gV2GRequestType* v2gV2GRequestType);
-static int encode_v2gLF_EVSEFinePositioningParametersType(bitstream_t* stream, struct v2gLF_EVSEFinePositioningParametersType* v2gLF_EVSEFinePositioningParametersType);
-static int encode_v2gSignaturePropertiesType(bitstream_t* stream, struct v2gSignaturePropertiesType* v2gSignaturePropertiesType);
-static int encode_v2gMagneticVectorSetupListType(bitstream_t* stream, struct v2gMagneticVectorSetupListType* v2gMagneticVectorSetupListType);
-static int encode_v2gSensorMeasurementsType(bitstream_t* stream, struct v2gSensorMeasurementsType* v2gSensorMeasurementsType);
-static int encode_v2gAC_EVSEBidirectionalParameterType(bitstream_t* stream, struct v2gAC_EVSEBidirectionalParameterType* v2gAC_EVSEBidirectionalParameterType);
-static int encode_v2gConsumptionCostType(bitstream_t* stream, struct v2gConsumptionCostType* v2gConsumptionCostType);
-static int encode_v2gAuthorizationResType(bitstream_t* stream, struct v2gAuthorizationResType* v2gAuthorizationResType);
-static int encode_v2gGeneric_EVFinePositioningParametersType(bitstream_t* stream, struct v2gGeneric_EVFinePositioningParametersType* v2gGeneric_EVFinePositioningParametersType);
-static int encode_v2gEVSEStatusType(bitstream_t* stream, struct v2gEVSEStatusType* v2gEVSEStatusType);
-static int encode_v2gX509IssuerSerialType(bitstream_t* stream, struct v2gX509IssuerSerialType* v2gX509IssuerSerialType);
-static int encode_v2gAC_EVBidirectionalParameterType(bitstream_t* stream, struct v2gAC_EVBidirectionalParameterType* v2gAC_EVBidirectionalParameterType);
-static int encode_v2gEVFinePositioningSetupParametersType(bitstream_t* stream, struct v2gEVFinePositioningSetupParametersType* v2gEVFinePositioningSetupParametersType);
-static int encode_v2gMV_EVSEFinePositioningSetupParametersType(bitstream_t* stream, struct v2gMV_EVSEFinePositioningSetupParametersType* v2gMV_EVSEFinePositioningSetupParametersType);
-static int encode_v2gMeteringReceiptReqType(bitstream_t* stream, struct v2gMeteringReceiptReqType* v2gMeteringReceiptReqType);
-static int encode_v2gAuthorizationReqType(bitstream_t* stream, struct v2gAuthorizationReqType* v2gAuthorizationReqType);
-static int encode_v2gChargingStatusReqType(bitstream_t* stream, struct v2gChargingStatusReqType* v2gChargingStatusReqType);
-static int encode_v2gManifestType(bitstream_t* stream, struct v2gManifestType* v2gManifestType);
-static int encode_v2gSensorType(bitstream_t* stream, struct v2gSensorType* v2gSensorType);
-static int encode_v2gAC_EVChargeParameterType(bitstream_t* stream, struct v2gAC_EVChargeParameterType* v2gAC_EVChargeParameterType);
-static int encode_v2gMagneticVectorListType(bitstream_t* stream, struct v2gMagneticVectorListType* v2gMagneticVectorListType);
-static int encode_v2gAlignmentCheckReqType(bitstream_t* stream, struct v2gAlignmentCheckReqType* v2gAlignmentCheckReqType);
-static int encode_v2gEVSEErrorInformationType(bitstream_t* stream, struct v2gEVSEErrorInformationType* v2gEVSEErrorInformationType);
-static int encode_v2gWPT_EVSEChargeParameterType(bitstream_t* stream, struct v2gWPT_EVSEChargeParameterType* v2gWPT_EVSEChargeParameterType);
-static int encode_v2gDisplayParametersType(bitstream_t* stream, struct v2gDisplayParametersType* v2gDisplayParametersType);
-static int encode_v2gSignatureMethodType(bitstream_t* stream, struct v2gSignatureMethodType* v2gSignatureMethodType);
-static int encode_v2gTargetPositionType(bitstream_t* stream, struct v2gTargetPositionType* v2gTargetPositionType);
-static int encode_v2gEVFinePositioningParametersType(bitstream_t* stream, struct v2gEVFinePositioningParametersType* v2gEVFinePositioningParametersType);
-static int encode_v2gVehicleCheckOutReqType(bitstream_t* stream, struct v2gVehicleCheckOutReqType* v2gVehicleCheckOutReqType);
-static int encode_v2gFinePositioningSetupResType(bitstream_t* stream, struct v2gFinePositioningSetupResType* v2gFinePositioningSetupResType);
-static int encode_v2gSAScheduleListType(bitstream_t* stream, struct v2gSAScheduleListType* v2gSAScheduleListType);
-static int encode_v2gSystemStatusReqType(bitstream_t* stream, struct v2gSystemStatusReqType* v2gSystemStatusReqType);
-static int encode_v2gCertificateChainType(bitstream_t* stream, struct v2gCertificateChainType* v2gCertificateChainType);
-static int encode_v2gCostType(bitstream_t* stream, struct v2gCostType* v2gCostType);
-static int encode_v2gServiceType(bitstream_t* stream, struct v2gServiceType* v2gServiceType);
-static int encode_v2gServiceParameterListType(bitstream_t* stream, struct v2gServiceParameterListType* v2gServiceParameterListType);
-static int encode_v2gSignedInfoType(bitstream_t* stream, struct v2gSignedInfoType* v2gSignedInfoType);
-static int encode_v2gEVErrorInformationType(bitstream_t* stream, struct v2gEVErrorInformationType* v2gEVErrorInformationType);
-static int encode_v2gListOfRootCertificateIDsType(bitstream_t* stream, struct v2gListOfRootCertificateIDsType* v2gListOfRootCertificateIDsType);
-static int encode_v2gSPKIDataType(bitstream_t* stream, struct v2gSPKIDataType* v2gSPKIDataType);
-static int encode_v2gDC_BidirectionalControlReqType(bitstream_t* stream, struct v2gDC_BidirectionalControlReqType* v2gDC_BidirectionalControlReqType);
-static int encode_v2gPairingResType(bitstream_t* stream, struct v2gPairingResType* v2gPairingResType);
-static int encode_v2gCartesianCoordinatesType(bitstream_t* stream, struct v2gCartesianCoordinatesType* v2gCartesianCoordinatesType);
-static int encode_v2gChargeParameterDiscoveryReqType(bitstream_t* stream, struct v2gChargeParameterDiscoveryReqType* v2gChargeParameterDiscoveryReqType);
-static int encode_v2gChargeParameterDiscoveryResType(bitstream_t* stream, struct v2gChargeParameterDiscoveryResType* v2gChargeParameterDiscoveryResType);
-static int encode_v2gRSAKeyValueType(bitstream_t* stream, struct v2gRSAKeyValueType* v2gRSAKeyValueType);
-static int encode_v2gLFA_EVFinePositioningSetupParametersType(bitstream_t* stream, struct v2gLFA_EVFinePositioningSetupParametersType* v2gLFA_EVFinePositioningSetupParametersType);
-static int encode_v2gSelectedServiceType(bitstream_t* stream, struct v2gSelectedServiceType* v2gSelectedServiceType);
-static int encode_v2gSignaturePropertyType(bitstream_t* stream, struct v2gSignaturePropertyType* v2gSignaturePropertyType);
-static int encode_v2gAC_BidirectionalControlResType(bitstream_t* stream, struct v2gAC_BidirectionalControlResType* v2gAC_BidirectionalControlResType);
-static int encode_v2gPGPDataType(bitstream_t* stream, struct v2gPGPDataType* v2gPGPDataType);
-static int encode_v2gSystemStatusResType(bitstream_t* stream, struct v2gSystemStatusResType* v2gSystemStatusResType);
-static int encode_v2gCertificateUpdateResType(bitstream_t* stream, struct v2gCertificateUpdateResType* v2gCertificateUpdateResType);
-static int encode_v2gParameterSetType(bitstream_t* stream, struct v2gParameterSetType* v2gParameterSetType);
-static int encode_v2gSAScheduleTupleType(bitstream_t* stream, struct v2gSAScheduleTupleType* v2gSAScheduleTupleType);
-static int encode_v2gDSAKeyValueType(bitstream_t* stream, struct v2gDSAKeyValueType* v2gDSAKeyValueType);
-static int encode_v2gMagneticVectorType(bitstream_t* stream, struct v2gMagneticVectorType* v2gMagneticVectorType);
-static int encode_v2gServiceIDListType(bitstream_t* stream, struct v2gServiceIDListType* v2gServiceIDListType);
-static int encode_v2gX509DataType(bitstream_t* stream, struct v2gX509DataType* v2gX509DataType);
-static int encode_v2gEVEnergyTransferParameterType(bitstream_t* stream, struct v2gEVEnergyTransferParameterType* v2gEVEnergyTransferParameterType);
-static int encode_v2gPreChargeResType(bitstream_t* stream, struct v2gPreChargeResType* v2gPreChargeResType);
-static int encode_v2gFinePositioningResType(bitstream_t* stream, struct v2gFinePositioningResType* v2gFinePositioningResType);
-static int encode_v2gLFA_EVSEFinePositioningSetupParametersType(bitstream_t* stream, struct v2gLFA_EVSEFinePositioningSetupParametersType* v2gLFA_EVSEFinePositioningSetupParametersType);
-static int encode_v2gMinimumPMaxRequestType(bitstream_t* stream, struct v2gMinimumPMaxRequestType* v2gMinimumPMaxRequestType);
-static int encode_v2gCanonicalizationMethodType(bitstream_t* stream, struct v2gCanonicalizationMethodType* v2gCanonicalizationMethodType);
-static int encode_v2gCertificateInstallationReqType(bitstream_t* stream, struct v2gCertificateInstallationReqType* v2gCertificateInstallationReqType);
-static int encode_v2gVehicleCheckInReqType(bitstream_t* stream, struct v2gVehicleCheckInReqType* v2gVehicleCheckInReqType);
-static int encode_v2gMV_EVSEFinePositioningParametersType(bitstream_t* stream, struct v2gMV_EVSEFinePositioningParametersType* v2gMV_EVSEFinePositioningParametersType);
-static int encode_v2gPowerDeliveryResType(bitstream_t* stream, struct v2gPowerDeliveryResType* v2gPowerDeliveryResType);
-static int encode_v2gEVSEEnergyTransferParameterType(bitstream_t* stream, struct v2gEVSEEnergyTransferParameterType* v2gEVSEEnergyTransferParameterType);
-static int encode_v2gDiffieHellmanPublickeyType(bitstream_t* stream, struct v2gDiffieHellmanPublickeyType* v2gDiffieHellmanPublickeyType);
-static int encode_v2gV2GResponseType(bitstream_t* stream, struct v2gV2GResponseType* v2gV2GResponseType);
-static int encode_v2gCableCheckResType(bitstream_t* stream, struct v2gCableCheckResType* v2gCableCheckResType);
-static int encode_v2gSalesTariffEntryType(bitstream_t* stream, struct v2gSalesTariffEntryType* v2gSalesTariffEntryType);
-static int encode_v2gChargingProfileType(bitstream_t* stream, struct v2gChargingProfileType* v2gChargingProfileType);
-static int encode_v2gServiceDiscoveryResType(bitstream_t* stream, struct v2gServiceDiscoveryResType* v2gServiceDiscoveryResType);
-static int encode_v2gPMaxScheduleType(bitstream_t* stream, struct v2gPMaxScheduleType* v2gPMaxScheduleType);
-static int encode_v2gSensorPackageType(bitstream_t* stream, struct v2gSensorPackageType* v2gSensorPackageType);
-static int encode_v2gDC_EVSEBidirectionalParameterType(bitstream_t* stream, struct v2gDC_EVSEBidirectionalParameterType* v2gDC_EVSEBidirectionalParameterType);
-static int encode_v2gDC_EVSEChargeParameterType(bitstream_t* stream, struct v2gDC_EVSEChargeParameterType* v2gDC_EVSEChargeParameterType);
-static int encode_v2gConnectChargingDeviceReqType(bitstream_t* stream, struct v2gConnectChargingDeviceReqType* v2gConnectChargingDeviceReqType);
-static int encode_v2gCertificateUpdateReqType(bitstream_t* stream, struct v2gCertificateUpdateReqType* v2gCertificateUpdateReqType);
-static int encode_v2gKeyInfoType(bitstream_t* stream, struct v2gKeyInfoType* v2gKeyInfoType);
-static int encode_v2gWeldingDetectionResType(bitstream_t* stream, struct v2gWeldingDetectionResType* v2gWeldingDetectionResType);
-static int encode_v2gPhysicalValueType(bitstream_t* stream, struct v2gPhysicalValueType* v2gPhysicalValueType);
-static int encode_v2gPaymentServiceSelectionReqType(bitstream_t* stream, struct v2gPaymentServiceSelectionReqType* v2gPaymentServiceSelectionReqType);
-static int encode_v2gSensorListType(bitstream_t* stream, struct v2gSensorListType* v2gSensorListType);
-static int encode_v2gPairingReqType(bitstream_t* stream, struct v2gPairingReqType* v2gPairingReqType);
-static int encode_v2gDisconnectChargingDeviceReqType(bitstream_t* stream, struct v2gDisconnectChargingDeviceReqType* v2gDisconnectChargingDeviceReqType);
-static int encode_v2gParameterType(bitstream_t* stream, struct v2gParameterType* v2gParameterType);
-static int encode_v2gEVSEFinePositioningParametersType(bitstream_t* stream, struct v2gEVSEFinePositioningParametersType* v2gEVSEFinePositioningParametersType);
-static int encode_v2gAC_EVSEChargeParameterType(bitstream_t* stream, struct v2gAC_EVSEChargeParameterType* v2gAC_EVSEChargeParameterType);
-static int encode_v2gServiceDiscoveryReqType(bitstream_t* stream, struct v2gServiceDiscoveryReqType* v2gServiceDiscoveryReqType);
-static int encode_v2gConnectChargingDeviceResType(bitstream_t* stream, struct v2gConnectChargingDeviceResType* v2gConnectChargingDeviceResType);
-static int encode_v2gPowerDemandReqType(bitstream_t* stream, struct v2gPowerDemandReqType* v2gPowerDemandReqType);
-static int encode_v2gLFA_EVFinePositioningParametersType(bitstream_t* stream, struct v2gLFA_EVFinePositioningParametersType* v2gLFA_EVFinePositioningParametersType);
-static int encode_v2gTransformType(bitstream_t* stream, struct v2gTransformType* v2gTransformType);
-static int encode_v2gObjectType(bitstream_t* stream, struct v2gObjectType* v2gObjectType);
-static int encode_v2gPowerDeliveryReqType(bitstream_t* stream, struct v2gPowerDeliveryReqType* v2gPowerDeliveryReqType);
-static int encode_v2gGeneric_EVSEFinePositioningParametersType(bitstream_t* stream, struct v2gGeneric_EVSEFinePositioningParametersType* v2gGeneric_EVSEFinePositioningParametersType);
-static int encode_v2gSensorPackageListType(bitstream_t* stream, struct v2gSensorPackageListType* v2gSensorPackageListType);
-static int encode_v2gPaymentDetailsResType(bitstream_t* stream, struct v2gPaymentDetailsResType* v2gPaymentDetailsResType);
-static int encode_v2gAnonType_V2G_Message(bitstream_t* stream, struct v2gAnonType_V2G_Message* v2gAnonType_V2G_Message);
-static int encode_v2gAC_BidirectionalControlReqType(bitstream_t* stream, struct v2gAC_BidirectionalControlReqType* v2gAC_BidirectionalControlReqType);
-static int encode_v2gBodyBaseType(bitstream_t* stream, struct v2gBodyBaseType* v2gBodyBaseType);
-static int encode_v2gSessionStopReqType(bitstream_t* stream, struct v2gSessionStopReqType* v2gSessionStopReqType);
-static int encode_v2gEntryType(bitstream_t* stream, struct v2gEntryType* v2gEntryType);
-static int encode_v2gPowerDemandResType(bitstream_t* stream, struct v2gPowerDemandResType* v2gPowerDemandResType);
-static int encode_v2gSessionSetupResType(bitstream_t* stream, struct v2gSessionSetupResType* v2gSessionSetupResType);
-static int encode_v2gVehicleCheckOutResType(bitstream_t* stream, struct v2gVehicleCheckOutResType* v2gVehicleCheckOutResType);
-static int encode_v2gKeyValueType(bitstream_t* stream, struct v2gKeyValueType* v2gKeyValueType);
-static int encode_v2gEMAIDType(bitstream_t* stream, struct v2gEMAIDType* v2gEMAIDType);
-static int encode_v2gTransformsType(bitstream_t* stream, struct v2gTransformsType* v2gTransformsType);
-static int encode_v2gCurrentDemandReqType(bitstream_t* stream, struct v2gCurrentDemandReqType* v2gCurrentDemandReqType);
-static int encode_v2gRetrievalMethodType(bitstream_t* stream, struct v2gRetrievalMethodType* v2gRetrievalMethodType);
-static int encode_v2gServiceListType(bitstream_t* stream, struct v2gServiceListType* v2gServiceListType);
-static int encode_v2gDC_EVBidirectionalParameterType(bitstream_t* stream, struct v2gDC_EVBidirectionalParameterType* v2gDC_EVBidirectionalParameterType);
-static int encode_v2gServiceDetailResType(bitstream_t* stream, struct v2gServiceDetailResType* v2gServiceDetailResType);
-static int encode_v2gSelectedServiceListType(bitstream_t* stream, struct v2gSelectedServiceListType* v2gSelectedServiceListType);
-static int encode_v2gRelativeTimeIntervalType(bitstream_t* stream, struct v2gRelativeTimeIntervalType* v2gRelativeTimeIntervalType);
-static int encode_v2gDisconnectChargingDeviceResType(bitstream_t* stream, struct v2gDisconnectChargingDeviceResType* v2gDisconnectChargingDeviceResType);
-static int encode_v2gContractSignatureEncryptedPrivateKeyType(bitstream_t* stream, struct v2gContractSignatureEncryptedPrivateKeyType* v2gContractSignatureEncryptedPrivateKeyType);
-static int encode_v2gChargingStatusResType(bitstream_t* stream, struct v2gChargingStatusResType* v2gChargingStatusResType);
-static int encode_v2gPaymentDetailsReqType(bitstream_t* stream, struct v2gPaymentDetailsReqType* v2gPaymentDetailsReqType);
-static int encode_v2gMagneticVectorSetupType(bitstream_t* stream, struct v2gMagneticVectorSetupType* v2gMagneticVectorSetupType);
-static int encode_v2gDC_EVChargeParameterType(bitstream_t* stream, struct v2gDC_EVChargeParameterType* v2gDC_EVChargeParameterType);
-static int encode_v2gReferenceType(bitstream_t* stream, struct v2gReferenceType* v2gReferenceType);
-static int encode_v2gServiceDetailReqType(bitstream_t* stream, struct v2gServiceDetailReqType* v2gServiceDetailReqType);
-static int encode_v2gPaymentOptionListType(bitstream_t* stream, struct v2gPaymentOptionListType* v2gPaymentOptionListType);
-static int encode_v2gCurrentDemandResType(bitstream_t* stream, struct v2gCurrentDemandResType* v2gCurrentDemandResType);
-static int encode_v2gDC_BidirectionalControlResType(bitstream_t* stream, struct v2gDC_BidirectionalControlResType* v2gDC_BidirectionalControlResType);
-static int encode_v2gWPT_EVChargeParameterType(bitstream_t* stream, struct v2gWPT_EVChargeParameterType* v2gWPT_EVChargeParameterType);
-static int encode_v2gSessionSetupReqType(bitstream_t* stream, struct v2gSessionSetupReqType* v2gSessionSetupReqType);
-static int encode_v2gDigestMethodType(bitstream_t* stream, struct v2gDigestMethodType* v2gDigestMethodType);
+static int encode_iso2RetrievalMethodType(bitstream_t* stream, struct iso2RetrievalMethodType* iso2RetrievalMethodType);
+static int encode_iso2AuthorizationResType(bitstream_t* stream, struct iso2AuthorizationResType* iso2AuthorizationResType);
+static int encode_iso2MV_EVSEFinePositioningSetupParametersType(bitstream_t* stream, struct iso2MV_EVSEFinePositioningSetupParametersType* iso2MV_EVSEFinePositioningSetupParametersType);
+static int encode_iso2X509DataType(bitstream_t* stream, struct iso2X509DataType* iso2X509DataType);
+static int encode_iso2RSAKeyValueType(bitstream_t* stream, struct iso2RSAKeyValueType* iso2RSAKeyValueType);
+static int encode_iso2DC_BidirectionalControlResType(bitstream_t* stream, struct iso2DC_BidirectionalControlResType* iso2DC_BidirectionalControlResType);
+static int encode_iso2CostType(bitstream_t* stream, struct iso2CostType* iso2CostType);
+static int encode_iso2ChargingStatusResType(bitstream_t* stream, struct iso2ChargingStatusResType* iso2ChargingStatusResType);
+static int encode_iso2MeterInfoType(bitstream_t* stream, struct iso2MeterInfoType* iso2MeterInfoType);
+static int encode_iso2AC_EVChargeParameterType(bitstream_t* stream, struct iso2AC_EVChargeParameterType* iso2AC_EVChargeParameterType);
+static int encode_iso2AC_EVSEBidirectionalParameterType(bitstream_t* stream, struct iso2AC_EVSEBidirectionalParameterType* iso2AC_EVSEBidirectionalParameterType);
+static int encode_iso2VehicleCheckOutResType(bitstream_t* stream, struct iso2VehicleCheckOutResType* iso2VehicleCheckOutResType);
+static int encode_iso2MagneticVectorListType(bitstream_t* stream, struct iso2MagneticVectorListType* iso2MagneticVectorListType);
+static int encode_iso2CableCheckResType(bitstream_t* stream, struct iso2CableCheckResType* iso2CableCheckResType);
+static int encode_iso2ServiceDiscoveryReqType(bitstream_t* stream, struct iso2ServiceDiscoveryReqType* iso2ServiceDiscoveryReqType);
+static int encode_iso2ServiceType(bitstream_t* stream, struct iso2ServiceType* iso2ServiceType);
+static int encode_iso2ServiceParameterListType(bitstream_t* stream, struct iso2ServiceParameterListType* iso2ServiceParameterListType);
+static int encode_iso2PMaxScheduleType(bitstream_t* stream, struct iso2PMaxScheduleType* iso2PMaxScheduleType);
+static int encode_iso2SignaturePropertiesType(bitstream_t* stream, struct iso2SignaturePropertiesType* iso2SignaturePropertiesType);
+static int encode_iso2PMaxScheduleEntryType(bitstream_t* stream, struct iso2PMaxScheduleEntryType* iso2PMaxScheduleEntryType);
+static int encode_iso2SignatureType(bitstream_t* stream, struct iso2SignatureType* iso2SignatureType);
+static int encode_iso2VehicleCheckInReqType(bitstream_t* stream, struct iso2VehicleCheckInReqType* iso2VehicleCheckInReqType);
+static int encode_iso2ConnectChargingDeviceResType(bitstream_t* stream, struct iso2ConnectChargingDeviceResType* iso2ConnectChargingDeviceResType);
+static int encode_iso2WeldingDetectionResType(bitstream_t* stream, struct iso2WeldingDetectionResType* iso2WeldingDetectionResType);
+static int encode_iso2SessionStopResType(bitstream_t* stream, struct iso2SessionStopResType* iso2SessionStopResType);
+static int encode_iso2VehicleCheckInResType(bitstream_t* stream, struct iso2VehicleCheckInResType* iso2VehicleCheckInResType);
+static int encode_iso2ServiceListType(bitstream_t* stream, struct iso2ServiceListType* iso2ServiceListType);
+static int encode_iso2CertificateUpdateResType(bitstream_t* stream, struct iso2CertificateUpdateResType* iso2CertificateUpdateResType);
+static int encode_iso2FinePositioningSetupResType(bitstream_t* stream, struct iso2FinePositioningSetupResType* iso2FinePositioningSetupResType);
+static int encode_iso2AC_EVBidirectionalParameterType(bitstream_t* stream, struct iso2AC_EVBidirectionalParameterType* iso2AC_EVBidirectionalParameterType);
+static int encode_iso2DC_BidirectionalControlReqType(bitstream_t* stream, struct iso2DC_BidirectionalControlReqType* iso2DC_BidirectionalControlReqType);
+static int encode_iso2CertificateUpdateReqType(bitstream_t* stream, struct iso2CertificateUpdateReqType* iso2CertificateUpdateReqType);
+static int encode_iso2ConsumptionCostType(bitstream_t* stream, struct iso2ConsumptionCostType* iso2ConsumptionCostType);
+static int encode_iso2SAScheduleListType(bitstream_t* stream, struct iso2SAScheduleListType* iso2SAScheduleListType);
+static int encode_iso2MagneticVectorSetupType(bitstream_t* stream, struct iso2MagneticVectorSetupType* iso2MagneticVectorSetupType);
+static int encode_iso2LFA_EVSEFinePositioningSetupParametersType(bitstream_t* stream, struct iso2LFA_EVSEFinePositioningSetupParametersType* iso2LFA_EVSEFinePositioningSetupParametersType);
+static int encode_iso2PaymentOptionListType(bitstream_t* stream, struct iso2PaymentOptionListType* iso2PaymentOptionListType);
+static int encode_iso2LFA_EVSEFinePositioningParametersType(bitstream_t* stream, struct iso2LFA_EVSEFinePositioningParametersType* iso2LFA_EVSEFinePositioningParametersType);
+static int encode_iso2RelativeTimeIntervalType(bitstream_t* stream, struct iso2RelativeTimeIntervalType* iso2RelativeTimeIntervalType);
+static int encode_iso2EVFinePositioningParametersType(bitstream_t* stream, struct iso2EVFinePositioningParametersType* iso2EVFinePositioningParametersType);
+static int encode_iso2AlignmentCheckReqType(bitstream_t* stream, struct iso2AlignmentCheckReqType* iso2AlignmentCheckReqType);
+static int encode_iso2CertificateInstallationReqType(bitstream_t* stream, struct iso2CertificateInstallationReqType* iso2CertificateInstallationReqType);
+static int encode_iso2TransformsType(bitstream_t* stream, struct iso2TransformsType* iso2TransformsType);
+static int encode_iso2ObjectType(bitstream_t* stream, struct iso2ObjectType* iso2ObjectType);
+static int encode_iso2SensorOrderListType(bitstream_t* stream, struct iso2SensorOrderListType* iso2SensorOrderListType);
+static int encode_iso2ChargeParameterDiscoveryReqType(bitstream_t* stream, struct iso2ChargeParameterDiscoveryReqType* iso2ChargeParameterDiscoveryReqType);
+static int encode_iso2ParameterType(bitstream_t* stream, struct iso2ParameterType* iso2ParameterType);
+static int encode_iso2SessionStopReqType(bitstream_t* stream, struct iso2SessionStopReqType* iso2SessionStopReqType);
+static int encode_iso2SensorMeasurementsType(bitstream_t* stream, struct iso2SensorMeasurementsType* iso2SensorMeasurementsType);
+static int encode_iso2DC_EVSEChargeParameterType(bitstream_t* stream, struct iso2DC_EVSEChargeParameterType* iso2DC_EVSEChargeParameterType);
+static int encode_iso2SensorPackageListType(bitstream_t* stream, struct iso2SensorPackageListType* iso2SensorPackageListType);
+static int encode_iso2MeasurementDataListType(bitstream_t* stream, struct iso2MeasurementDataListType* iso2MeasurementDataListType);
+static int encode_iso2CertificateChainType(bitstream_t* stream, struct iso2CertificateChainType* iso2CertificateChainType);
+static int encode_iso2SignaturePropertyType(bitstream_t* stream, struct iso2SignaturePropertyType* iso2SignaturePropertyType);
+static int encode_iso2TransformType(bitstream_t* stream, struct iso2TransformType* iso2TransformType);
+static int encode_iso2EMAIDType(bitstream_t* stream, struct iso2EMAIDType* iso2EMAIDType);
+static int encode_iso2DSAKeyValueType(bitstream_t* stream, struct iso2DSAKeyValueType* iso2DSAKeyValueType);
+static int encode_iso2EntryType(bitstream_t* stream, struct iso2EntryType* iso2EntryType);
+static int encode_iso2MessageHeaderType(bitstream_t* stream, struct iso2MessageHeaderType* iso2MessageHeaderType);
+static int encode_iso2WPT_EVChargeParameterType(bitstream_t* stream, struct iso2WPT_EVChargeParameterType* iso2WPT_EVChargeParameterType);
+static int encode_iso2DisconnectChargingDeviceReqType(bitstream_t* stream, struct iso2DisconnectChargingDeviceReqType* iso2DisconnectChargingDeviceReqType);
+static int encode_iso2ChargeLoopReqType(bitstream_t* stream, struct iso2ChargeLoopReqType* iso2ChargeLoopReqType);
+static int encode_iso2V2GRequestType(bitstream_t* stream, struct iso2V2GRequestType* iso2V2GRequestType);
+static int encode_iso2MeteringReceiptResType(bitstream_t* stream, struct iso2MeteringReceiptResType* iso2MeteringReceiptResType);
+static int encode_iso2SessionSetupResType(bitstream_t* stream, struct iso2SessionSetupResType* iso2SessionSetupResType);
+static int encode_iso2AC_BidirectionalControlReqType(bitstream_t* stream, struct iso2AC_BidirectionalControlReqType* iso2AC_BidirectionalControlReqType);
+static int encode_iso2MV_EVSEFinePositioningParametersType(bitstream_t* stream, struct iso2MV_EVSEFinePositioningParametersType* iso2MV_EVSEFinePositioningParametersType);
+static int encode_iso2ReferenceType(bitstream_t* stream, struct iso2ReferenceType* iso2ReferenceType);
+static int encode_iso2EVSEEnergyTransferParameterType(bitstream_t* stream, struct iso2EVSEEnergyTransferParameterType* iso2EVSEEnergyTransferParameterType);
+static int encode_iso2MeteringReceiptReqType(bitstream_t* stream, struct iso2MeteringReceiptReqType* iso2MeteringReceiptReqType);
+static int encode_iso2KeyValueType(bitstream_t* stream, struct iso2KeyValueType* iso2KeyValueType);
+static int encode_iso2SensorListType(bitstream_t* stream, struct iso2SensorListType* iso2SensorListType);
+static int encode_iso2CurrentDemandReqType(bitstream_t* stream, struct iso2CurrentDemandReqType* iso2CurrentDemandReqType);
+static int encode_iso2FinePositioningSetupReqType(bitstream_t* stream, struct iso2FinePositioningSetupReqType* iso2FinePositioningSetupReqType);
+static int encode_iso2LFA_EVFinePositioningSetupParametersType(bitstream_t* stream, struct iso2LFA_EVFinePositioningSetupParametersType* iso2LFA_EVFinePositioningSetupParametersType);
+static int encode_iso2SAScheduleTupleType(bitstream_t* stream, struct iso2SAScheduleTupleType* iso2SAScheduleTupleType);
+static int encode_iso2WPT_EVSEChargeParameterType(bitstream_t* stream, struct iso2WPT_EVSEChargeParameterType* iso2WPT_EVSEChargeParameterType);
+static int encode_iso2FinePositioningResType(bitstream_t* stream, struct iso2FinePositioningResType* iso2FinePositioningResType);
+static int encode_iso2BodyBaseType(bitstream_t* stream, struct iso2BodyBaseType* iso2BodyBaseType);
+static int encode_iso2ServiceDetailResType(bitstream_t* stream, struct iso2ServiceDetailResType* iso2ServiceDetailResType);
+static int encode_iso2PowerDeliveryReqType(bitstream_t* stream, struct iso2PowerDeliveryReqType* iso2PowerDeliveryReqType);
+static int encode_iso2PairingResType(bitstream_t* stream, struct iso2PairingResType* iso2PairingResType);
+static int encode_iso2AuthorizationReqType(bitstream_t* stream, struct iso2AuthorizationReqType* iso2AuthorizationReqType);
+static int encode_iso2ParameterSetType(bitstream_t* stream, struct iso2ParameterSetType* iso2ParameterSetType);
+static int encode_iso2SPKIDataType(bitstream_t* stream, struct iso2SPKIDataType* iso2SPKIDataType);
+static int encode_iso2PaymentDetailsResType(bitstream_t* stream, struct iso2PaymentDetailsResType* iso2PaymentDetailsResType);
+static int encode_iso2SignatureMethodType(bitstream_t* stream, struct iso2SignatureMethodType* iso2SignatureMethodType);
+static int encode_iso2AC_BidirectionalControlResType(bitstream_t* stream, struct iso2AC_BidirectionalControlResType* iso2AC_BidirectionalControlResType);
+static int encode_iso2VehicleCheckOutReqType(bitstream_t* stream, struct iso2VehicleCheckOutReqType* iso2VehicleCheckOutReqType);
+static int encode_iso2WeldingDetectionReqType(bitstream_t* stream, struct iso2WeldingDetectionReqType* iso2WeldingDetectionReqType);
+static int encode_iso2AlignmentCheckResType(bitstream_t* stream, struct iso2AlignmentCheckResType* iso2AlignmentCheckResType);
+static int encode_iso2PowerDemandReqType(bitstream_t* stream, struct iso2PowerDemandReqType* iso2PowerDemandReqType);
+static int encode_iso2MinimumPMaxRequestType(bitstream_t* stream, struct iso2MinimumPMaxRequestType* iso2MinimumPMaxRequestType);
+static int encode_iso2DisconnectChargingDeviceResType(bitstream_t* stream, struct iso2DisconnectChargingDeviceResType* iso2DisconnectChargingDeviceResType);
+static int encode_iso2SessionSetupReqType(bitstream_t* stream, struct iso2SessionSetupReqType* iso2SessionSetupReqType);
+static int encode_iso2PaymentDetailsReqType(bitstream_t* stream, struct iso2PaymentDetailsReqType* iso2PaymentDetailsReqType);
+static int encode_iso2Generic_EVFinePositioningParametersType(bitstream_t* stream, struct iso2Generic_EVFinePositioningParametersType* iso2Generic_EVFinePositioningParametersType);
+static int encode_iso2ConnectChargingDeviceReqType(bitstream_t* stream, struct iso2ConnectChargingDeviceReqType* iso2ConnectChargingDeviceReqType);
+static int encode_iso2AC_EVSEChargeParameterType(bitstream_t* stream, struct iso2AC_EVSEChargeParameterType* iso2AC_EVSEChargeParameterType);
+static int encode_iso2SalesTariffEntryType(bitstream_t* stream, struct iso2SalesTariffEntryType* iso2SalesTariffEntryType);
+static int encode_iso2DC_EVSEBidirectionalParameterType(bitstream_t* stream, struct iso2DC_EVSEBidirectionalParameterType* iso2DC_EVSEBidirectionalParameterType);
+static int encode_iso2CanonicalizationMethodType(bitstream_t* stream, struct iso2CanonicalizationMethodType* iso2CanonicalizationMethodType);
+static int encode_iso2DisplayParametersType(bitstream_t* stream, struct iso2DisplayParametersType* iso2DisplayParametersType);
+static int encode_iso2DC_EVBidirectionalParameterType(bitstream_t* stream, struct iso2DC_EVBidirectionalParameterType* iso2DC_EVBidirectionalParameterType);
+static int encode_iso2PaymentServiceSelectionReqType(bitstream_t* stream, struct iso2PaymentServiceSelectionReqType* iso2PaymentServiceSelectionReqType);
+static int encode_iso2MagneticVectorType(bitstream_t* stream, struct iso2MagneticVectorType* iso2MagneticVectorType);
+static int encode_iso2PhysicalValueType(bitstream_t* stream, struct iso2PhysicalValueType* iso2PhysicalValueType);
+static int encode_iso2SystemStatusReqType(bitstream_t* stream, struct iso2SystemStatusReqType* iso2SystemStatusReqType);
+static int encode_iso2SystemStatusResType(bitstream_t* stream, struct iso2SystemStatusResType* iso2SystemStatusResType);
+static int encode_iso2EVSEFinePositioningSetupParametersType(bitstream_t* stream, struct iso2EVSEFinePositioningSetupParametersType* iso2EVSEFinePositioningSetupParametersType);
+static int encode_iso2V2GResponseType(bitstream_t* stream, struct iso2V2GResponseType* iso2V2GResponseType);
+static int encode_iso2BodyType(bitstream_t* stream, struct iso2BodyType* iso2BodyType);
+static int encode_iso2PreChargeResType(bitstream_t* stream, struct iso2PreChargeResType* iso2PreChargeResType);
+static int encode_iso2EVSEFinePositioningParametersType(bitstream_t* stream, struct iso2EVSEFinePositioningParametersType* iso2EVSEFinePositioningParametersType);
+static int encode_iso2PaymentServiceSelectionResType(bitstream_t* stream, struct iso2PaymentServiceSelectionResType* iso2PaymentServiceSelectionResType);
+static int encode_iso2DigestMethodType(bitstream_t* stream, struct iso2DigestMethodType* iso2DigestMethodType);
+static int encode_iso2TargetPositionType(bitstream_t* stream, struct iso2TargetPositionType* iso2TargetPositionType);
+static int encode_iso2LFA_EVFinePositioningParametersType(bitstream_t* stream, struct iso2LFA_EVFinePositioningParametersType* iso2LFA_EVFinePositioningParametersType);
+static int encode_iso2DC_EVChargeParameterType(bitstream_t* stream, struct iso2DC_EVChargeParameterType* iso2DC_EVChargeParameterType);
+static int encode_iso2ServiceDetailReqType(bitstream_t* stream, struct iso2ServiceDetailReqType* iso2ServiceDetailReqType);
+static int encode_iso2PreChargeReqType(bitstream_t* stream, struct iso2PreChargeReqType* iso2PreChargeReqType);
+static int encode_iso2ManifestType(bitstream_t* stream, struct iso2ManifestType* iso2ManifestType);
+static int encode_iso2AnonType_V2G_Message(bitstream_t* stream, struct iso2AnonType_V2G_Message* iso2AnonType_V2G_Message);
+static int encode_iso2SelectedServiceListType(bitstream_t* stream, struct iso2SelectedServiceListType* iso2SelectedServiceListType);
+static int encode_iso2Generic_EVSEFinePositioningParametersType(bitstream_t* stream, struct iso2Generic_EVSEFinePositioningParametersType* iso2Generic_EVSEFinePositioningParametersType);
+static int encode_iso2CartesianCoordinatesType(bitstream_t* stream, struct iso2CartesianCoordinatesType* iso2CartesianCoordinatesType);
+static int encode_iso2KeyInfoType(bitstream_t* stream, struct iso2KeyInfoType* iso2KeyInfoType);
+static int encode_iso2SubCertificatesType(bitstream_t* stream, struct iso2SubCertificatesType* iso2SubCertificatesType);
+static int encode_iso2ListOfRootCertificateIDsType(bitstream_t* stream, struct iso2ListOfRootCertificateIDsType* iso2ListOfRootCertificateIDsType);
+static int encode_iso2EVEnergyTransferParameterType(bitstream_t* stream, struct iso2EVEnergyTransferParameterType* iso2EVEnergyTransferParameterType);
+static int encode_iso2ContractSignatureEncryptedPrivateKeyType(bitstream_t* stream, struct iso2ContractSignatureEncryptedPrivateKeyType* iso2ContractSignatureEncryptedPrivateKeyType);
+static int encode_iso2MagneticVectorSetupListType(bitstream_t* stream, struct iso2MagneticVectorSetupListType* iso2MagneticVectorSetupListType);
+static int encode_iso2PairingReqType(bitstream_t* stream, struct iso2PairingReqType* iso2PairingReqType);
+static int encode_iso2CurrentDemandResType(bitstream_t* stream, struct iso2CurrentDemandResType* iso2CurrentDemandResType);
+static int encode_iso2X509IssuerSerialType(bitstream_t* stream, struct iso2X509IssuerSerialType* iso2X509IssuerSerialType);
+static int encode_iso2ChargingStatusReqType(bitstream_t* stream, struct iso2ChargingStatusReqType* iso2ChargingStatusReqType);
+static int encode_iso2CertificateInstallationResType(bitstream_t* stream, struct iso2CertificateInstallationResType* iso2CertificateInstallationResType);
+static int encode_iso2SensorPackageType(bitstream_t* stream, struct iso2SensorPackageType* iso2SensorPackageType);
+static int encode_iso2PGPDataType(bitstream_t* stream, struct iso2PGPDataType* iso2PGPDataType);
+static int encode_iso2ServiceDiscoveryResType(bitstream_t* stream, struct iso2ServiceDiscoveryResType* iso2ServiceDiscoveryResType);
+static int encode_iso2ServiceIDListType(bitstream_t* stream, struct iso2ServiceIDListType* iso2ServiceIDListType);
+static int encode_iso2EVFinePositioningSetupParametersType(bitstream_t* stream, struct iso2EVFinePositioningSetupParametersType* iso2EVFinePositioningSetupParametersType);
+static int encode_iso2ChargeParameterDiscoveryResType(bitstream_t* stream, struct iso2ChargeParameterDiscoveryResType* iso2ChargeParameterDiscoveryResType);
+static int encode_iso2PowerDemandResType(bitstream_t* stream, struct iso2PowerDemandResType* iso2PowerDemandResType);
+static int encode_iso2ChargingProfileType(bitstream_t* stream, struct iso2ChargingProfileType* iso2ChargingProfileType);
+static int encode_iso2FinePositioningReqType(bitstream_t* stream, struct iso2FinePositioningReqType* iso2FinePositioningReqType);
+static int encode_iso2SalesTariffType(bitstream_t* stream, struct iso2SalesTariffType* iso2SalesTariffType);
+static int encode_iso2SensorType(bitstream_t* stream, struct iso2SensorType* iso2SensorType);
+static int encode_iso2SignatureValueType(bitstream_t* stream, struct iso2SignatureValueType* iso2SignatureValueType);
+static int encode_iso2SignedInfoType(bitstream_t* stream, struct iso2SignedInfoType* iso2SignedInfoType);
+static int encode_iso2PowerDeliveryResType(bitstream_t* stream, struct iso2PowerDeliveryResType* iso2PowerDeliveryResType);
+static int encode_iso2CableCheckReqType(bitstream_t* stream, struct iso2CableCheckReqType* iso2CableCheckReqType);
+static int encode_iso2SelectedServiceType(bitstream_t* stream, struct iso2SelectedServiceType* iso2SelectedServiceType);
+static int encode_iso2DiffieHellmanPublickeyType(bitstream_t* stream, struct iso2DiffieHellmanPublickeyType* iso2DiffieHellmanPublickeyType);
+static int encode_iso2EVSEStatusType(bitstream_t* stream, struct iso2EVSEStatusType* iso2EVSEStatusType);
-
/* Complex type name='http://www.w3.org/2000/09/xmldsig#,SignatureValueType', base type name='base64Binary', content type='SIMPLE', isAbstract='false', hasTypeId='false', final='0', block='0', derivedBy='EXTENSION'. */
-static int encode_v2gSignatureValueType(bitstream_t* stream, struct v2gSignatureValueType* v2gSignatureValueType) {
+
/* Complex type name='http://www.w3.org/2000/09/xmldsig#,RetrievalMethodType', base type name='anyType', content type='ELEMENT', isAbstract='false', hasTypeId='false', final='0', block='0', particle='("http://www.w3.org/2000/09/xmldsig#":Transforms{0-1})', derivedBy='RESTRICTION'. */
+static int encode_iso2RetrievalMethodType(bitstream_t* stream, struct iso2RetrievalMethodType* iso2RetrievalMethodType) {
int grammarID = 0;
int done = 0;
@@ -207,13157 +212,97 @@ static int encode_v2gSignatureValueType(bitstream_t* stream, struct v2gSignature
while(!done) {
switch(grammarID) {
case 0:
- /* FirstStartTag[ATTRIBUTE[STRING](Id), CHARACTERS[BINARY_BASE64]] */
- if ( v2gSignatureValueType->Id_isUsed == 1u ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ /* FirstStartTag[ATTRIBUTE[STRING](Type), ATTRIBUTE[STRING](URI), START_ELEMENT({http://www.w3.org/2000/09/xmldsig#}Transforms), END_ELEMENT] */
+ if ( iso2RetrievalMethodType->Type_isUsed == 1u ) {
+ errn = encodeNBitUnsignedInteger(stream, 3, 0);
if(errn == 0) {
/* encode string as string table miss (+2 len)*/
- errn = encodeUnsignedInteger16(stream, (uint16_t)(v2gSignatureValueType->Id.charactersLen + 2));
+ errn = encodeUnsignedInteger16(stream, (uint16_t)(iso2RetrievalMethodType->Type.charactersLen + 2));
if (errn == 0) {
- errn = encodeCharacters(stream, v2gSignatureValueType->Id.characters, v2gSignatureValueType->Id.charactersLen);
+ errn = encodeCharacters(stream, iso2RetrievalMethodType->Type.characters, iso2RetrievalMethodType->Type.charactersLen);
}
}
grammarID = 1;
- } else if (1==1) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ } else if ( iso2RetrievalMethodType->URI_isUsed == 1u ) {
+ errn = encodeNBitUnsignedInteger(stream, 3, 1);
if(errn == 0) {
- errn = encodeUnsignedInteger16(stream, (uint16_t)(v2gSignatureValueType->CONTENT.bytesLen));
+ /* encode string as string table miss (+2 len)*/
+ errn = encodeUnsignedInteger16(stream, (uint16_t)(iso2RetrievalMethodType->URI.charactersLen + 2));
if (errn == 0) {
- errn = encodeBytes(stream, v2gSignatureValueType->CONTENT.bytes, v2gSignatureValueType->CONTENT.bytesLen);
+ errn = encodeCharacters(stream, iso2RetrievalMethodType->URI.characters, iso2RetrievalMethodType->URI.charactersLen);
}
}
grammarID = 2;
+ } else if ( iso2RetrievalMethodType->Transforms_isUsed == 1u ) {
+ errn = encodeNBitUnsignedInteger(stream, 3, 2);
+ if(errn == 0) {
+ errn = encode_iso2TransformsType(stream, &iso2RetrievalMethodType->Transforms );
+ }
+ grammarID = 3;
+ } else if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 3, 3);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
} else {
errn = EXI_ERROR_UNKOWN_EVENT;
}
break;
case 1:
- /* StartTag[CHARACTERS[BINARY_BASE64]] */
- if (1==1) {
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- if(errn == 0) {
- errn = encodeUnsignedInteger16(stream, (uint16_t)(v2gSignatureValueType->CONTENT.bytesLen));
- if (errn == 0) {
- errn = encodeBytes(stream, v2gSignatureValueType->CONTENT.bytes, v2gSignatureValueType->CONTENT.bytesLen);
- }
- }
- grammarID = 2;
- } 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:2016:MsgDataTypes,EVSEFinePositioningSetupParametersType', base type name='anyType', content type='EMPTY', isAbstract='true', hasTypeId='false', final='0', block='0', derivedBy='RESTRICTION'. */
-static int encode_v2gEVSEFinePositioningSetupParametersType(bitstream_t* stream, struct v2gEVSEFinePositioningSetupParametersType* v2gEVSEFinePositioningSetupParametersType) {
- int grammarID = 4;
- int done = 0;
-
-
- while(!done) {
- switch(grammarID) {
- case 4:
- /* FirstStartTag[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:2016:MsgBody,AlignmentCheckResType', base type name='V2GResponseType', content type='ELEMENT', isAbstract='false', hasTypeId='false', final='0', block='0', particle='(("urn:iso:15118:2:2016:MsgBody":ResponseCode,"urn:iso:15118:2:2016:MsgBody":EVSEStatus{0-1}),("urn:iso:15118:2:2016:MsgBody":EVSEProcessing,"urn:iso:15118:2:2016:MsgBody":AlignmentCheckParameters{0-1}))', derivedBy='EXTENSION'. */
-static int encode_v2gAlignmentCheckResType(bitstream_t* stream, struct v2gAlignmentCheckResType* v2gAlignmentCheckResType) {
- int grammarID = 5;
- int done = 0;
-
-
- while(!done) {
- switch(grammarID) {
- case 5:
- /* FirstStartTag[START_ELEMENT({urn:iso:15118:2:2016:MsgBody}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, 5, v2gAlignmentCheckResType->ResponseCode);
- /* valid EE */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- }
- }
- grammarID = 6;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 6:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgBody}EVSEStatus), START_ELEMENT({urn:iso:15118:2:2016:MsgBody}EVSEProcessing)] */
- if ( v2gAlignmentCheckResType->EVSEStatus_isUsed == 1u ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- errn = encode_v2gEVSEStatusType(stream, &v2gAlignmentCheckResType->EVSEStatus );
- }
- grammarID = 7;
- } else if ( 1 == 1 ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- /* FirstStartTag[CHARACTERS[ENUMERATION]] */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- if(errn == 0) {
- errn = encodeNBitUnsignedInteger(stream, 2, v2gAlignmentCheckResType->EVSEProcessing);
- /* valid EE */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- }
- }
- grammarID = 8;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 7:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgBody}EVSEProcessing)] */
- 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, v2gAlignmentCheckResType->EVSEProcessing);
- /* valid EE */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- }
- }
- grammarID = 8;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 8:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgBody}AlignmentCheckParameters), END_ELEMENT] */
- if ( v2gAlignmentCheckResType->AlignmentCheckParameters_isUsed == 1u ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- errn = encode_v2gParameterSetType(stream, &v2gAlignmentCheckResType->AlignmentCheckParameters );
- }
- 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:2016:MsgDataTypes,SalesTariffType', base type name='anyType', content type='ELEMENT', isAbstract='false', hasTypeId='false', final='0', block='0', particle='("urn:iso:15118:2:2016:MsgDataTypes":SalesTariffID,"urn:iso:15118:2:2016:MsgDataTypes":SalesTariffDescription{0-1},"urn:iso:15118:2:2016:MsgDataTypes":NumEPriceLevels{0-1},"urn:iso:15118:2:2016:MsgDataTypes":SalesTariffEntry{1-UNBOUNDED})', derivedBy='RESTRICTION'. */
-static int encode_v2gSalesTariffType(bitstream_t* stream, struct v2gSalesTariffType* v2gSalesTariffType) {
- int grammarID = 9;
- int done = 0;
-
- unsigned int v2gSalesTariffType_SalesTariffEntry_currArrayIndex = 0;
-
- while(!done) {
- switch(grammarID) {
- case 9:
- /* FirstStartTag[ATTRIBUTE[STRING]({urn:iso:15118:2:2016:MsgDataTypes}Id)] */
- if (1==1) {
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- if(errn == 0) {
- /* encode string as string table miss (+2 len)*/
- errn = encodeUnsignedInteger16(stream, (uint16_t)(v2gSalesTariffType->Id.charactersLen + 2));
- if (errn == 0) {
- errn = encodeCharacters(stream, v2gSalesTariffType->Id.characters, v2gSalesTariffType->Id.charactersLen);
- }
- }
- grammarID = 10;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 10:
- /* StartTag[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SalesTariffID)] */
- if ( 1 == 1 ) {
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- if(errn == 0) {
- /* FirstStartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- if(errn == 0) {
- errn = encodeNBitUnsignedInteger(stream, 8, (uint32_t)(v2gSalesTariffType->SalesTariffID - 1));
- /* valid EE */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- }
- }
- grammarID = 11;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 11:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SalesTariffDescription), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}NumEPriceLevels), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SalesTariffEntry)] */
- if ( v2gSalesTariffType->SalesTariffDescription_isUsed == 1u ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- /* FirstStartTag[CHARACTERS[STRING]] */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- if(errn == 0) {
- /* encode string as string table miss (+2 len)*/
- errn = encodeUnsignedInteger16(stream, (uint16_t)(v2gSalesTariffType->SalesTariffDescription.charactersLen + 2));
- if (errn == 0) {
- errn = encodeCharacters(stream, v2gSalesTariffType->SalesTariffDescription.characters, v2gSalesTariffType->SalesTariffDescription.charactersLen);
- }
- /* valid EE */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- }
- }
- grammarID = 12;
- } else if ( v2gSalesTariffType->NumEPriceLevels_isUsed == 1u ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- if(errn == 0) {
- errn = encodeNBitUnsignedInteger(stream, 8, (uint32_t)(v2gSalesTariffType->NumEPriceLevels - 0));
- /* valid EE */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- }
- }
- grammarID = 13;
- } else if (v2gSalesTariffType_SalesTariffEntry_currArrayIndex < v2gSalesTariffType->SalesTariffEntry.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 2);
- if(errn == 0) {
- errn = encode_v2gSalesTariffEntryType(stream, &v2gSalesTariffType->SalesTariffEntry.array [v2gSalesTariffType_SalesTariffEntry_currArrayIndex++]);
- }
- grammarID = 14;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 12:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}NumEPriceLevels), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SalesTariffEntry)] */
- if ( v2gSalesTariffType->NumEPriceLevels_isUsed == 1u ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- if(errn == 0) {
- errn = encodeNBitUnsignedInteger(stream, 8, (uint32_t)(v2gSalesTariffType->NumEPriceLevels - 0));
- /* valid EE */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- }
- }
- grammarID = 13;
- } else if (v2gSalesTariffType_SalesTariffEntry_currArrayIndex < v2gSalesTariffType->SalesTariffEntry.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- errn = encode_v2gSalesTariffEntryType(stream, &v2gSalesTariffType->SalesTariffEntry.array [v2gSalesTariffType_SalesTariffEntry_currArrayIndex++]);
- }
- grammarID = 14;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 13:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SalesTariffEntry)] */
- if (v2gSalesTariffType_SalesTariffEntry_currArrayIndex < v2gSalesTariffType->SalesTariffEntry.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- if(errn == 0) {
- errn = encode_v2gSalesTariffEntryType(stream, &v2gSalesTariffType->SalesTariffEntry.array [v2gSalesTariffType_SalesTariffEntry_currArrayIndex++]);
- }
- grammarID = 14;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 14:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SalesTariffEntry), END_ELEMENT] */
- if (v2gSalesTariffType_SalesTariffEntry_currArrayIndex < v2gSalesTariffType->SalesTariffEntry.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- errn = encode_v2gSalesTariffEntryType(stream, &v2gSalesTariffType->SalesTariffEntry.array [v2gSalesTariffType_SalesTariffEntry_currArrayIndex++]);
- }
- grammarID = 14;
- } else if (1==1) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- 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:2016:MsgBody,FinePositioningSetupReqType', base type name='BodyBaseType', content type='ELEMENT', isAbstract='false', hasTypeId='false', final='0', block='0', particle='("urn:iso:15118:2:2016:MsgDataTypes":EVFinePositioningSetupParameters{0-1})', derivedBy='EXTENSION'. */
-static int encode_v2gFinePositioningSetupReqType(bitstream_t* stream, struct v2gFinePositioningSetupReqType* v2gFinePositioningSetupReqType) {
- int grammarID = 15;
- int done = 0;
-
-
- while(!done) {
- switch(grammarID) {
- case 15:
- /* FirstStartTag[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}EVFinePositioningSetupParameters), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}LFA_EVFinePositioningSetupParameters), END_ELEMENT] */
- if ( v2gFinePositioningSetupReqType->EVFinePositioningSetupParameters_isUsed == 1u ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- errn = encode_v2gEVFinePositioningSetupParametersType(stream, &v2gFinePositioningSetupReqType->EVFinePositioningSetupParameters );
- }
- grammarID = 2;
- } else if ( v2gFinePositioningSetupReqType->LFA_EVFinePositioningSetupParameters_isUsed == 1u ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- errn = encode_v2gLFA_EVFinePositioningSetupParametersType(stream, &v2gFinePositioningSetupReqType->LFA_EVFinePositioningSetupParameters );
- }
- grammarID = 2;
- } else if (1==1) {
- errn = encodeNBitUnsignedInteger(stream, 2, 2);
- 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:2016:MsgDataTypes,SubCertificatesType', base type name='anyType', content type='ELEMENT', isAbstract='false', hasTypeId='false', final='0', block='0', particle='("urn:iso:15118:2:2016:MsgDataTypes":Certificate{1-4})', derivedBy='RESTRICTION'. */
-static int encode_v2gSubCertificatesType(bitstream_t* stream, struct v2gSubCertificatesType* v2gSubCertificatesType) {
- int grammarID = 16;
- int done = 0;
-
- unsigned int v2gSubCertificatesType_Certificate_currArrayIndex = 0;
-
- while(!done) {
- switch(grammarID) {
- case 16:
- /* FirstStartTag[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}Certificate)] */
- if (v2gSubCertificatesType_Certificate_currArrayIndex < v2gSubCertificatesType->Certificate.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- if(errn == 0) {
- /* FirstStartTag[CHARACTERS[BINARY_BASE64]] */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- if(errn == 0) {
- errn = encodeUnsignedInteger16(stream, (uint16_t)(v2gSubCertificatesType->Certificate.array[v2gSubCertificatesType_Certificate_currArrayIndex].bytesLen));
- if (errn == 0) {
- errn = encodeBytes(stream, v2gSubCertificatesType->Certificate.array[v2gSubCertificatesType_Certificate_currArrayIndex].bytes, v2gSubCertificatesType->Certificate.array[v2gSubCertificatesType_Certificate_currArrayIndex].bytesLen);
- v2gSubCertificatesType_Certificate_currArrayIndex++;
- }
- /* valid EE */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- }
- }
- grammarID = 17;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 17:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}Certificate), END_ELEMENT] */
- if (v2gSubCertificatesType_Certificate_currArrayIndex < v2gSubCertificatesType->Certificate.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- /* FirstStartTag[CHARACTERS[BINARY_BASE64]] */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- if(errn == 0) {
- errn = encodeUnsignedInteger16(stream, (uint16_t)(v2gSubCertificatesType->Certificate.array[v2gSubCertificatesType_Certificate_currArrayIndex].bytesLen));
- if (errn == 0) {
- errn = encodeBytes(stream, v2gSubCertificatesType->Certificate.array[v2gSubCertificatesType_Certificate_currArrayIndex].bytes, v2gSubCertificatesType->Certificate.array[v2gSubCertificatesType_Certificate_currArrayIndex].bytesLen);
- v2gSubCertificatesType_Certificate_currArrayIndex++;
- }
- /* valid EE */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- }
- }
- grammarID = 18;
- } else if (1==1) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- done = 1;
- }
- grammarID = 3;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 18:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}Certificate), END_ELEMENT] */
- if (v2gSubCertificatesType_Certificate_currArrayIndex < v2gSubCertificatesType->Certificate.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- /* FirstStartTag[CHARACTERS[BINARY_BASE64]] */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- if(errn == 0) {
- errn = encodeUnsignedInteger16(stream, (uint16_t)(v2gSubCertificatesType->Certificate.array[v2gSubCertificatesType_Certificate_currArrayIndex].bytesLen));
- if (errn == 0) {
- errn = encodeBytes(stream, v2gSubCertificatesType->Certificate.array[v2gSubCertificatesType_Certificate_currArrayIndex].bytes, v2gSubCertificatesType->Certificate.array[v2gSubCertificatesType_Certificate_currArrayIndex].bytesLen);
- v2gSubCertificatesType_Certificate_currArrayIndex++;
- }
- /* valid EE */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- }
- }
- grammarID = 19;
- } else if (1==1) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- done = 1;
- }
- grammarID = 3;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 19:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}Certificate), END_ELEMENT] */
- if (v2gSubCertificatesType_Certificate_currArrayIndex < v2gSubCertificatesType->Certificate.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- /* FirstStartTag[CHARACTERS[BINARY_BASE64]] */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- if(errn == 0) {
- errn = encodeUnsignedInteger16(stream, (uint16_t)(v2gSubCertificatesType->Certificate.array[v2gSubCertificatesType_Certificate_currArrayIndex].bytesLen));
- if (errn == 0) {
- errn = encodeBytes(stream, v2gSubCertificatesType->Certificate.array[v2gSubCertificatesType_Certificate_currArrayIndex].bytes, v2gSubCertificatesType->Certificate.array[v2gSubCertificatesType_Certificate_currArrayIndex].bytesLen);
- v2gSubCertificatesType_Certificate_currArrayIndex++;
- }
- /* 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:2016:MsgBody,CertificateInstallationResType', base type name='V2GResponseType', content type='ELEMENT', isAbstract='false', hasTypeId='false', final='0', block='0', particle='(("urn:iso:15118:2:2016:MsgBody":ResponseCode,"urn:iso:15118:2:2016:MsgBody":EVSEStatus{0-1}),("urn:iso:15118:2:2016:MsgBody":SAProvisioningCertificateChain,"urn:iso:15118:2:2016:MsgBody":ContractSignatureCertChain,"urn:iso:15118:2:2016:MsgBody":ContractSignatureEncryptedPrivateKey,"urn:iso:15118:2:2016:MsgBody":DHpublickey,"urn:iso:15118:2:2016:MsgBody":eMAID))', derivedBy='EXTENSION'. */
-static int encode_v2gCertificateInstallationResType(bitstream_t* stream, struct v2gCertificateInstallationResType* v2gCertificateInstallationResType) {
- int grammarID = 20;
- int done = 0;
-
-
- while(!done) {
- switch(grammarID) {
- case 20:
- /* FirstStartTag[START_ELEMENT({urn:iso:15118:2:2016:MsgBody}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, 5, v2gCertificateInstallationResType->ResponseCode);
- /* valid EE */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- }
- }
- grammarID = 21;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 21:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgBody}EVSEStatus), START_ELEMENT({urn:iso:15118:2:2016:MsgBody}SAProvisioningCertificateChain)] */
- if ( v2gCertificateInstallationResType->EVSEStatus_isUsed == 1u ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- errn = encode_v2gEVSEStatusType(stream, &v2gCertificateInstallationResType->EVSEStatus );
- }
- grammarID = 22;
- } else if ( 1 == 1 ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- errn = encode_v2gCertificateChainType(stream, &v2gCertificateInstallationResType->SAProvisioningCertificateChain );
- }
- grammarID = 23;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 22:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgBody}SAProvisioningCertificateChain)] */
- if ( 1 == 1 ) {
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- if(errn == 0) {
- errn = encode_v2gCertificateChainType(stream, &v2gCertificateInstallationResType->SAProvisioningCertificateChain );
- }
- grammarID = 23;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 23:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgBody}ContractSignatureCertChain)] */
- if ( 1 == 1 ) {
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- if(errn == 0) {
- errn = encode_v2gCertificateChainType(stream, &v2gCertificateInstallationResType->ContractSignatureCertChain );
- }
- grammarID = 24;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 24:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgBody}ContractSignatureEncryptedPrivateKey)] */
- if ( 1 == 1 ) {
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- if(errn == 0) {
- errn = encode_v2gContractSignatureEncryptedPrivateKeyType(stream, &v2gCertificateInstallationResType->ContractSignatureEncryptedPrivateKey );
- }
- grammarID = 25;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 25:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgBody}DHpublickey)] */
- if ( 1 == 1 ) {
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- if(errn == 0) {
- errn = encode_v2gDiffieHellmanPublickeyType(stream, &v2gCertificateInstallationResType->DHpublickey );
- }
- grammarID = 26;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 26:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgBody}eMAID)] */
- if ( 1 == 1 ) {
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- if(errn == 0) {
- errn = encode_v2gEMAIDType(stream, &v2gCertificateInstallationResType->eMAID );
- }
- grammarID = 2;
- } 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:2016:MsgDataTypes,MeterInfoType', base type name='anyType', content type='ELEMENT', isAbstract='false', hasTypeId='false', final='0', block='0', particle='("urn:iso:15118:2:2016:MsgDataTypes":MeterID,"urn:iso:15118:2:2016:MsgDataTypes":MeterReadingCharged{0-1},"urn:iso:15118:2:2016:MsgDataTypes":MeterReadingDischarged{0-1},"urn:iso:15118:2:2016:MsgDataTypes":SigMeterReading{0-1},"urn:iso:15118:2:2016:MsgDataTypes":MeterStatus{0-1},"urn:iso:15118:2:2016:MsgDataTypes":TMeter{0-1})', derivedBy='RESTRICTION'. */
-static int encode_v2gMeterInfoType(bitstream_t* stream, struct v2gMeterInfoType* v2gMeterInfoType) {
- int grammarID = 27;
- int done = 0;
-
-
- while(!done) {
- switch(grammarID) {
- case 27:
- /* FirstStartTag[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MeterID)] */
- if ( 1 == 1 ) {
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- if(errn == 0) {
- /* FirstStartTag[CHARACTERS[STRING]] */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- if(errn == 0) {
- /* encode string as string table miss (+2 len)*/
- errn = encodeUnsignedInteger16(stream, (uint16_t)(v2gMeterInfoType->MeterID.charactersLen + 2));
- if (errn == 0) {
- errn = encodeCharacters(stream, v2gMeterInfoType->MeterID.characters, v2gMeterInfoType->MeterID.charactersLen);
- }
- /* valid EE */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- }
- }
- grammarID = 28;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 28:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MeterReadingCharged), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MeterReadingDischarged), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SigMeterReading), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MeterStatus), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}TMeter), END_ELEMENT] */
- if ( v2gMeterInfoType->MeterReadingCharged_isUsed == 1u ) {
- errn = encodeNBitUnsignedInteger(stream, 3, 0);
- if(errn == 0) {
- /* First(xsi:type)StartTag[CHARACTERS[UNSIGNED_INTEGER]] */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- if(errn == 0) {
- errn = encodeUnsignedInteger64(stream, v2gMeterInfoType->MeterReadingCharged);
- /* valid EE */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- }
- }
- grammarID = 29;
- } else if ( v2gMeterInfoType->MeterReadingDischarged_isUsed == 1u ) {
- errn = encodeNBitUnsignedInteger(stream, 3, 1);
- if(errn == 0) {
- /* First(xsi:type)StartTag[CHARACTERS[UNSIGNED_INTEGER]] */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- if(errn == 0) {
- errn = encodeUnsignedInteger64(stream, v2gMeterInfoType->MeterReadingDischarged);
- /* valid EE */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- }
- }
- grammarID = 30;
- } else if ( v2gMeterInfoType->SigMeterReading_isUsed == 1u ) {
- errn = encodeNBitUnsignedInteger(stream, 3, 2);
- if(errn == 0) {
- /* FirstStartTag[CHARACTERS[BINARY_BASE64]] */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- if(errn == 0) {
- errn = encodeUnsignedInteger16(stream, (uint16_t)(v2gMeterInfoType->SigMeterReading.bytesLen));
- if (errn == 0) {
- errn = encodeBytes(stream, v2gMeterInfoType->SigMeterReading.bytes, v2gMeterInfoType->SigMeterReading.bytesLen);
- }
- /* valid EE */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- }
- }
- grammarID = 31;
- } else if ( v2gMeterInfoType->MeterStatus_isUsed == 1u ) {
- errn = encodeNBitUnsignedInteger(stream, 3, 3);
- if(errn == 0) {
- /* FirstStartTag[CHARACTERS[INTEGER]] */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- if(errn == 0) {
- errn = encodeInteger16(stream, v2gMeterInfoType->MeterStatus);
- /* valid EE */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- }
- }
- grammarID = 32;
- } else if ( v2gMeterInfoType->TMeter_isUsed == 1u ) {
- errn = encodeNBitUnsignedInteger(stream, 3, 4);
- if(errn == 0) {
- /* First(xsi:type)StartTag[CHARACTERS[INTEGER]] */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- if(errn == 0) {
- errn = encodeInteger64(stream, v2gMeterInfoType->TMeter);
- /* valid EE */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- }
- }
- grammarID = 2;
- } else if (1==1) {
- errn = encodeNBitUnsignedInteger(stream, 3, 5);
- if(errn == 0) {
- done = 1;
- }
- grammarID = 3;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 29:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MeterReadingDischarged), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SigMeterReading), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MeterStatus), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}TMeter), END_ELEMENT] */
- if ( v2gMeterInfoType->MeterReadingDischarged_isUsed == 1u ) {
- errn = encodeNBitUnsignedInteger(stream, 3, 0);
- if(errn == 0) {
- /* First(xsi:type)StartTag[CHARACTERS[UNSIGNED_INTEGER]] */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- if(errn == 0) {
- errn = encodeUnsignedInteger64(stream, v2gMeterInfoType->MeterReadingDischarged);
- /* valid EE */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- }
- }
- grammarID = 30;
- } else if ( v2gMeterInfoType->SigMeterReading_isUsed == 1u ) {
- errn = encodeNBitUnsignedInteger(stream, 3, 1);
- if(errn == 0) {
- /* FirstStartTag[CHARACTERS[BINARY_BASE64]] */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- if(errn == 0) {
- errn = encodeUnsignedInteger16(stream, (uint16_t)(v2gMeterInfoType->SigMeterReading.bytesLen));
- if (errn == 0) {
- errn = encodeBytes(stream, v2gMeterInfoType->SigMeterReading.bytes, v2gMeterInfoType->SigMeterReading.bytesLen);
- }
- /* valid EE */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- }
- }
- grammarID = 31;
- } else if ( v2gMeterInfoType->MeterStatus_isUsed == 1u ) {
- errn = encodeNBitUnsignedInteger(stream, 3, 2);
- if(errn == 0) {
- /* FirstStartTag[CHARACTERS[INTEGER]] */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- if(errn == 0) {
- errn = encodeInteger16(stream, v2gMeterInfoType->MeterStatus);
- /* valid EE */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- }
- }
- grammarID = 32;
- } else if ( v2gMeterInfoType->TMeter_isUsed == 1u ) {
- errn = encodeNBitUnsignedInteger(stream, 3, 3);
- if(errn == 0) {
- /* First(xsi:type)StartTag[CHARACTERS[INTEGER]] */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- if(errn == 0) {
- errn = encodeInteger64(stream, v2gMeterInfoType->TMeter);
- /* valid EE */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- }
- }
- grammarID = 2;
- } else if (1==1) {
- errn = encodeNBitUnsignedInteger(stream, 3, 4);
- if(errn == 0) {
- done = 1;
- }
- grammarID = 3;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 30:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SigMeterReading), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MeterStatus), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}TMeter), END_ELEMENT] */
- if ( v2gMeterInfoType->SigMeterReading_isUsed == 1u ) {
- errn = encodeNBitUnsignedInteger(stream, 3, 0);
- if(errn == 0) {
- /* FirstStartTag[CHARACTERS[BINARY_BASE64]] */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- if(errn == 0) {
- errn = encodeUnsignedInteger16(stream, (uint16_t)(v2gMeterInfoType->SigMeterReading.bytesLen));
- if (errn == 0) {
- errn = encodeBytes(stream, v2gMeterInfoType->SigMeterReading.bytes, v2gMeterInfoType->SigMeterReading.bytesLen);
- }
- /* valid EE */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- }
- }
- grammarID = 31;
- } else if ( v2gMeterInfoType->MeterStatus_isUsed == 1u ) {
- errn = encodeNBitUnsignedInteger(stream, 3, 1);
- if(errn == 0) {
- /* FirstStartTag[CHARACTERS[INTEGER]] */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- if(errn == 0) {
- errn = encodeInteger16(stream, v2gMeterInfoType->MeterStatus);
- /* valid EE */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- }
- }
- grammarID = 32;
- } else if ( v2gMeterInfoType->TMeter_isUsed == 1u ) {
- errn = encodeNBitUnsignedInteger(stream, 3, 2);
- if(errn == 0) {
- /* First(xsi:type)StartTag[CHARACTERS[INTEGER]] */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- if(errn == 0) {
- errn = encodeInteger64(stream, v2gMeterInfoType->TMeter);
- /* valid EE */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- }
- }
- grammarID = 2;
- } else if (1==1) {
- errn = encodeNBitUnsignedInteger(stream, 3, 3);
- if(errn == 0) {
- done = 1;
- }
- grammarID = 3;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 31:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MeterStatus), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}TMeter), END_ELEMENT] */
- if ( v2gMeterInfoType->MeterStatus_isUsed == 1u ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- /* FirstStartTag[CHARACTERS[INTEGER]] */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- if(errn == 0) {
- errn = encodeInteger16(stream, v2gMeterInfoType->MeterStatus);
- /* valid EE */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- }
- }
- grammarID = 32;
- } else if ( v2gMeterInfoType->TMeter_isUsed == 1u ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- /* First(xsi:type)StartTag[CHARACTERS[INTEGER]] */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- if(errn == 0) {
- errn = encodeInteger64(stream, v2gMeterInfoType->TMeter);
- /* valid EE */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- }
- }
- grammarID = 2;
- } else if (1==1) {
- errn = encodeNBitUnsignedInteger(stream, 2, 2);
- if(errn == 0) {
- done = 1;
- }
- grammarID = 3;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 32:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}TMeter), END_ELEMENT] */
- if ( v2gMeterInfoType->TMeter_isUsed == 1u ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- /* First(xsi:type)StartTag[CHARACTERS[INTEGER]] */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- if(errn == 0) {
- errn = encodeInteger64(stream, v2gMeterInfoType->TMeter);
- /* 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:2016:MsgBody,ChargeLoopReqType', base type name='BodyBaseType', content type='ELEMENT', isAbstract='true', hasTypeId='false', final='0', block='0', particle='("urn:iso:15118:2:2016:MsgBody":EVTargetEnergyRequest,"urn:iso:15118:2:2016:MsgBody":EVMaximumEnergyRequest{0-1},"urn:iso:15118:2:2016:MsgBody":EVMinimumEnergyRequest{0-1},"urn:iso:15118:2:2016:MsgBody":DisplayParameters{0-1})', derivedBy='EXTENSION'. */
-static int encode_v2gChargeLoopReqType(bitstream_t* stream, struct v2gChargeLoopReqType* v2gChargeLoopReqType) {
- int grammarID = 33;
- int done = 0;
-
-
- while(!done) {
- switch(grammarID) {
- case 33:
- /* FirstStartTag[START_ELEMENT({urn:iso:15118:2:2016:MsgBody}EVTargetEnergyRequest)] */
- if ( 1 == 1 ) {
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- if(errn == 0) {
- errn = encode_v2gPhysicalValueType(stream, &v2gChargeLoopReqType->EVTargetEnergyRequest );
- }
- grammarID = 34;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 34:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgBody}EVMaximumEnergyRequest), START_ELEMENT({urn:iso:15118:2:2016:MsgBody}EVMinimumEnergyRequest), START_ELEMENT({urn:iso:15118:2:2016:MsgBody}DisplayParameters), END_ELEMENT] */
- if ( v2gChargeLoopReqType->EVMaximumEnergyRequest_isUsed == 1u ) {
- errn = encodeNBitUnsignedInteger(stream, 3, 0);
- if(errn == 0) {
- errn = encode_v2gPhysicalValueType(stream, &v2gChargeLoopReqType->EVMaximumEnergyRequest );
- }
- grammarID = 35;
- } else if ( v2gChargeLoopReqType->EVMinimumEnergyRequest_isUsed == 1u ) {
- errn = encodeNBitUnsignedInteger(stream, 3, 1);
- if(errn == 0) {
- errn = encode_v2gPhysicalValueType(stream, &v2gChargeLoopReqType->EVMinimumEnergyRequest );
- }
- grammarID = 36;
- } else if ( v2gChargeLoopReqType->DisplayParameters_isUsed == 1u ) {
- errn = encodeNBitUnsignedInteger(stream, 3, 2);
- if(errn == 0) {
- errn = encode_v2gDisplayParametersType(stream, &v2gChargeLoopReqType->DisplayParameters );
- }
- grammarID = 2;
- } else if (1==1) {
- errn = encodeNBitUnsignedInteger(stream, 3, 3);
- if(errn == 0) {
- done = 1;
- }
- grammarID = 3;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 35:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgBody}EVMinimumEnergyRequest), START_ELEMENT({urn:iso:15118:2:2016:MsgBody}DisplayParameters), END_ELEMENT] */
- if ( v2gChargeLoopReqType->EVMinimumEnergyRequest_isUsed == 1u ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- errn = encode_v2gPhysicalValueType(stream, &v2gChargeLoopReqType->EVMinimumEnergyRequest );
- }
- grammarID = 36;
- } else if ( v2gChargeLoopReqType->DisplayParameters_isUsed == 1u ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- errn = encode_v2gDisplayParametersType(stream, &v2gChargeLoopReqType->DisplayParameters );
- }
- grammarID = 2;
- } else if (1==1) {
- errn = encodeNBitUnsignedInteger(stream, 2, 2);
- if(errn == 0) {
- done = 1;
- }
- grammarID = 3;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 36:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgBody}DisplayParameters), END_ELEMENT] */
- if ( v2gChargeLoopReqType->DisplayParameters_isUsed == 1u ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- errn = encode_v2gDisplayParametersType(stream, &v2gChargeLoopReqType->DisplayParameters );
- }
- 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:2016:MsgHeader,MessageHeaderType', base type name='anyType', content type='ELEMENT', isAbstract='false', hasTypeId='false', final='0', block='0', particle='("urn:iso:15118:2:2016:MsgHeader":SessionID,"http://www.w3.org/2000/09/xmldsig#":Signature{0-1})', derivedBy='RESTRICTION'. */
-static int encode_v2gMessageHeaderType(bitstream_t* stream, struct v2gMessageHeaderType* v2gMessageHeaderType) {
- int grammarID = 37;
- int done = 0;
-
-
- while(!done) {
- switch(grammarID) {
- case 37:
- /* FirstStartTag[START_ELEMENT({urn:iso:15118:2:2016:MsgHeader}SessionID)] */
- if ( 1 == 1 ) {
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- if(errn == 0) {
- /* FirstStartTag[CHARACTERS[BINARY_HEX]] */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- if(errn == 0) {
- errn = encodeUnsignedInteger16(stream, (uint16_t)(v2gMessageHeaderType->SessionID.bytesLen));
- if (errn == 0) {
- errn = encodeBytes(stream, v2gMessageHeaderType->SessionID.bytes, v2gMessageHeaderType->SessionID.bytesLen);
- }
- /* valid EE */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- }
- }
- grammarID = 38;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 38:
- /* Element[START_ELEMENT({http://www.w3.org/2000/09/xmldsig#}Signature), END_ELEMENT] */
- if ( v2gMessageHeaderType->Signature_isUsed == 1u ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- errn = encode_v2gSignatureType(stream, &v2gMessageHeaderType->Signature );
- }
- 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='http://www.w3.org/2000/09/xmldsig#,SignatureType', base type name='anyType', content type='ELEMENT', isAbstract='false', hasTypeId='false', final='0', block='0', particle='("http://www.w3.org/2000/09/xmldsig#":SignedInfo,"http://www.w3.org/2000/09/xmldsig#":SignatureValue,"http://www.w3.org/2000/09/xmldsig#":KeyInfo{0-1},"http://www.w3.org/2000/09/xmldsig#":Object{0-UNBOUNDED})', derivedBy='RESTRICTION'. */
-static int encode_v2gSignatureType(bitstream_t* stream, struct v2gSignatureType* v2gSignatureType) {
- int grammarID = 39;
- int done = 0;
-
- unsigned int v2gSignatureType_Object_currArrayIndex = 0;
-
- while(!done) {
- switch(grammarID) {
- case 39:
- /* FirstStartTag[ATTRIBUTE[STRING](Id), START_ELEMENT({http://www.w3.org/2000/09/xmldsig#}SignedInfo)] */
- if ( v2gSignatureType->Id_isUsed == 1u ) {
+ /* StartTag[ATTRIBUTE[STRING](URI), START_ELEMENT({http://www.w3.org/2000/09/xmldsig#}Transforms), END_ELEMENT] */
+ if ( iso2RetrievalMethodType->URI_isUsed == 1u ) {
errn = encodeNBitUnsignedInteger(stream, 2, 0);
if(errn == 0) {
/* encode string as string table miss (+2 len)*/
- errn = encodeUnsignedInteger16(stream, (uint16_t)(v2gSignatureType->Id.charactersLen + 2));
+ errn = encodeUnsignedInteger16(stream, (uint16_t)(iso2RetrievalMethodType->URI.charactersLen + 2));
if (errn == 0) {
- errn = encodeCharacters(stream, v2gSignatureType->Id.characters, v2gSignatureType->Id.charactersLen);
+ errn = encodeCharacters(stream, iso2RetrievalMethodType->URI.characters, iso2RetrievalMethodType->URI.charactersLen);
}
}
- grammarID = 40;
- } else if ( 1 == 1 ) {
+ grammarID = 2;
+ } else if ( iso2RetrievalMethodType->Transforms_isUsed == 1u ) {
errn = encodeNBitUnsignedInteger(stream, 2, 1);
if(errn == 0) {
- errn = encode_v2gSignedInfoType(stream, &v2gSignatureType->SignedInfo );
+ errn = encode_iso2TransformsType(stream, &iso2RetrievalMethodType->Transforms );
}
- grammarID = 41;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 40:
- /* StartTag[START_ELEMENT({http://www.w3.org/2000/09/xmldsig#}SignedInfo)] */
- if ( 1 == 1 ) {
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- if(errn == 0) {
- errn = encode_v2gSignedInfoType(stream, &v2gSignatureType->SignedInfo );
- }
- grammarID = 41;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 41:
- /* Element[START_ELEMENT({http://www.w3.org/2000/09/xmldsig#}SignatureValue)] */
- if ( 1 == 1 ) {
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- if(errn == 0) {
- errn = encode_v2gSignatureValueType(stream, &v2gSignatureType->SignatureValue );
- }
- grammarID = 42;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 42:
- /* Element[START_ELEMENT({http://www.w3.org/2000/09/xmldsig#}KeyInfo), START_ELEMENT({http://www.w3.org/2000/09/xmldsig#}Object), END_ELEMENT] */
- if ( v2gSignatureType->KeyInfo_isUsed == 1u ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- errn = encode_v2gKeyInfoType(stream, &v2gSignatureType->KeyInfo );
- }
- grammarID = 43;
- } else if (v2gSignatureType_Object_currArrayIndex < v2gSignatureType->Object.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- errn = encode_v2gObjectType(stream, &v2gSignatureType->Object.array [v2gSignatureType_Object_currArrayIndex++]);
- }
- grammarID = 43;
+ grammarID = 3;
} else if (1==1) {
errn = encodeNBitUnsignedInteger(stream, 2, 2);
if(errn == 0) {
done = 1;
}
- grammarID = 3;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 43:
- /* Element[START_ELEMENT({http://www.w3.org/2000/09/xmldsig#}Object), END_ELEMENT] */
- if (v2gSignatureType_Object_currArrayIndex < v2gSignatureType->Object.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- errn = encode_v2gObjectType(stream, &v2gSignatureType->Object.array [v2gSignatureType_Object_currArrayIndex++]);
- }
- grammarID = 43;
- } else if (1==1) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- 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:2016:MsgBody,BodyType', base type name='anyType', content type='ELEMENT', isAbstract='false', hasTypeId='false', final='0', block='0', particle='("urn:iso:15118:2:2016:MsgBody":BodyElement)', derivedBy='RESTRICTION'. */
-static int encode_v2gBodyType(bitstream_t* stream, struct v2gBodyType* v2gBodyType) {
- int grammarID = 44;
- int done = 0;
-
-
- while(!done) {
- switch(grammarID) {
- case 44:
- /* FirstStartTag[START_ELEMENT({urn:iso:15118:2:2016:MsgBody}AC_BidirectionalControlReq), START_ELEMENT({urn:iso:15118:2:2016:MsgBody}AC_BidirectionalControlRes), START_ELEMENT({urn:iso:15118:2:2016:MsgBody}AlignmentCheckReq), START_ELEMENT({urn:iso:15118:2:2016:MsgBody}AlignmentCheckRes), START_ELEMENT({urn:iso:15118:2:2016:MsgBody}AuthorizationReq), START_ELEMENT({urn:iso:15118:2:2016:MsgBody}AuthorizationRes), START_ELEMENT({urn:iso:15118:2:2016:MsgBody}BodyElement), START_ELEMENT({urn:iso:15118:2:2016:MsgBody}CableCheckReq), START_ELEMENT({urn:iso:15118:2:2016:MsgBody}CableCheckRes), START_ELEMENT({urn:iso:15118:2:2016:MsgBody}CertificateInstallationReq), START_ELEMENT({urn:iso:15118:2:2016:MsgBody}CertificateInstallationRes), START_ELEMENT({urn:iso:15118:2:2016:MsgBody}CertificateUpdateReq), START_ELEMENT({urn:iso:15118:2:2016:MsgBody}CertificateUpdateRes), START_ELEMENT({urn:iso:15118:2:2016:MsgBody}ChargeParameterDiscoveryReq), START_ELEMENT({urn:iso:15118:2:2016:MsgBody}ChargeParameterDiscoveryRes), START_ELEMENT({urn:iso:15118:2:2016:MsgBody}ChargingStatusReq), START_ELEMENT({urn:iso:15118:2:2016:MsgBody}ChargingStatusRes), START_ELEMENT({urn:iso:15118:2:2016:MsgBody}ConnectChargingDeviceReq), START_ELEMENT({urn:iso:15118:2:2016:MsgBody}ConnectChargingDeviceRes), START_ELEMENT({urn:iso:15118:2:2016:MsgBody}CurrentDemandReq), START_ELEMENT({urn:iso:15118:2:2016:MsgBody}CurrentDemandRes), START_ELEMENT({urn:iso:15118:2:2016:MsgBody}DC_BidirectionalControlReq), START_ELEMENT({urn:iso:15118:2:2016:MsgBody}DC_BidirectionalControlRes), START_ELEMENT({urn:iso:15118:2:2016:MsgBody}DisconnectChargingDeviceReq), START_ELEMENT({urn:iso:15118:2:2016:MsgBody}DisconnectChargingDeviceRes), START_ELEMENT({urn:iso:15118:2:2016:MsgBody}EVErrorInformation), START_ELEMENT({urn:iso:15118:2:2016:MsgBody}EVSEErrorInformation), START_ELEMENT({urn:iso:15118:2:2016:MsgBody}ErrorInformation), START_ELEMENT({urn:iso:15118:2:2016:MsgBody}FinePositioningReq), START_ELEMENT({urn:iso:15118:2:2016:MsgBody}FinePositioningRes), START_ELEMENT({urn:iso:15118:2:2016:MsgBody}FinePositioningSetupReq), START_ELEMENT({urn:iso:15118:2:2016:MsgBody}FinePositioningSetupRes), START_ELEMENT({urn:iso:15118:2:2016:MsgBody}MeteringReceiptReq), START_ELEMENT({urn:iso:15118:2:2016:MsgBody}MeteringReceiptRes), START_ELEMENT({urn:iso:15118:2:2016:MsgBody}PairingReq), START_ELEMENT({urn:iso:15118:2:2016:MsgBody}PairingRes), START_ELEMENT({urn:iso:15118:2:2016:MsgBody}PaymentDetailsReq), START_ELEMENT({urn:iso:15118:2:2016:MsgBody}PaymentDetailsRes), START_ELEMENT({urn:iso:15118:2:2016:MsgBody}PaymentServiceSelectionReq), START_ELEMENT({urn:iso:15118:2:2016:MsgBody}PaymentServiceSelectionRes), START_ELEMENT({urn:iso:15118:2:2016:MsgBody}PowerDeliveryReq), START_ELEMENT({urn:iso:15118:2:2016:MsgBody}PowerDeliveryRes), START_ELEMENT({urn:iso:15118:2:2016:MsgBody}PowerDemandReq), START_ELEMENT({urn:iso:15118:2:2016:MsgBody}PowerDemandRes), START_ELEMENT({urn:iso:15118:2:2016:MsgBody}PreChargeReq), START_ELEMENT({urn:iso:15118:2:2016:MsgBody}PreChargeRes), START_ELEMENT({urn:iso:15118:2:2016:MsgBody}ServiceDetailReq), START_ELEMENT({urn:iso:15118:2:2016:MsgBody}ServiceDetailRes), START_ELEMENT({urn:iso:15118:2:2016:MsgBody}ServiceDiscoveryReq), START_ELEMENT({urn:iso:15118:2:2016:MsgBody}ServiceDiscoveryRes), START_ELEMENT({urn:iso:15118:2:2016:MsgBody}SessionSetupReq), START_ELEMENT({urn:iso:15118:2:2016:MsgBody}SessionSetupRes), START_ELEMENT({urn:iso:15118:2:2016:MsgBody}SessionStopReq), START_ELEMENT({urn:iso:15118:2:2016:MsgBody}SessionStopRes), START_ELEMENT({urn:iso:15118:2:2016:MsgBody}SystemStatusReq), START_ELEMENT({urn:iso:15118:2:2016:MsgBody}SystemStatusRes), START_ELEMENT({urn:iso:15118:2:2016:MsgBody}V2GRequest), START_ELEMENT({urn:iso:15118:2:2016:MsgBody}V2GResponse), START_ELEMENT({urn:iso:15118:2:2016:MsgBody}VehicleCheckInReq), START_ELEMENT({urn:iso:15118:2:2016:MsgBody}VehicleCheckInRes), START_ELEMENT({urn:iso:15118:2:2016:MsgBody}VehicleCheckOutReq), START_ELEMENT({urn:iso:15118:2:2016:MsgBody}VehicleCheckOutRes), START_ELEMENT({urn:iso:15118:2:2016:MsgBody}WeldingDetectionReq), START_ELEMENT({urn:iso:15118:2:2016:MsgBody}WeldingDetectionRes)] */
- if ( v2gBodyType->AC_BidirectionalControlReq_isUsed == 1u ) {
- errn = encodeNBitUnsignedInteger(stream, 7, 0);
- if(errn == 0) {
- errn = encode_v2gAC_BidirectionalControlReqType(stream, &v2gBodyType->AC_BidirectionalControlReq );
- }
- grammarID = 2;
- } else if ( v2gBodyType->AC_BidirectionalControlRes_isUsed == 1u ) {
- errn = encodeNBitUnsignedInteger(stream, 7, 1);
- if(errn == 0) {
- errn = encode_v2gAC_BidirectionalControlResType(stream, &v2gBodyType->AC_BidirectionalControlRes );
- }
- grammarID = 2;
- } else if ( v2gBodyType->AlignmentCheckReq_isUsed == 1u ) {
- errn = encodeNBitUnsignedInteger(stream, 7, 2);
- if(errn == 0) {
- errn = encode_v2gAlignmentCheckReqType(stream, &v2gBodyType->AlignmentCheckReq );
- }
- grammarID = 2;
- } else if ( v2gBodyType->AlignmentCheckRes_isUsed == 1u ) {
- errn = encodeNBitUnsignedInteger(stream, 7, 3);
- if(errn == 0) {
- errn = encode_v2gAlignmentCheckResType(stream, &v2gBodyType->AlignmentCheckRes );
- }
- grammarID = 2;
- } else if ( v2gBodyType->AuthorizationReq_isUsed == 1u ) {
- errn = encodeNBitUnsignedInteger(stream, 7, 4);
- if(errn == 0) {
- errn = encode_v2gAuthorizationReqType(stream, &v2gBodyType->AuthorizationReq );
- }
- grammarID = 2;
- } else if ( v2gBodyType->AuthorizationRes_isUsed == 1u ) {
- errn = encodeNBitUnsignedInteger(stream, 7, 5);
- if(errn == 0) {
- errn = encode_v2gAuthorizationResType(stream, &v2gBodyType->AuthorizationRes );
- }
- grammarID = 2;
- } else if ( v2gBodyType->BodyElement_isUsed == 1u ) {
- errn = encodeNBitUnsignedInteger(stream, 7, 6);
- if(errn == 0) {
- errn = encode_v2gBodyBaseType(stream, &v2gBodyType->BodyElement );
- }
- grammarID = 2;
- } else if ( v2gBodyType->CableCheckReq_isUsed == 1u ) {
- errn = encodeNBitUnsignedInteger(stream, 7, 7);
- if(errn == 0) {
- errn = encode_v2gBodyBaseType(stream, &v2gBodyType->CableCheckReq );
- }
- grammarID = 2;
- } else if ( v2gBodyType->CableCheckRes_isUsed == 1u ) {
- errn = encodeNBitUnsignedInteger(stream, 7, 8);
- if(errn == 0) {
- errn = encode_v2gCableCheckResType(stream, &v2gBodyType->CableCheckRes );
- }
- grammarID = 2;
- } else if ( v2gBodyType->CertificateInstallationReq_isUsed == 1u ) {
- errn = encodeNBitUnsignedInteger(stream, 7, 9);
- if(errn == 0) {
- errn = encode_v2gCertificateInstallationReqType(stream, &v2gBodyType->CertificateInstallationReq );
- }
- grammarID = 2;
- } else if ( v2gBodyType->CertificateInstallationRes_isUsed == 1u ) {
- errn = encodeNBitUnsignedInteger(stream, 7, 10);
- if(errn == 0) {
- errn = encode_v2gCertificateInstallationResType(stream, &v2gBodyType->CertificateInstallationRes );
- }
- grammarID = 2;
- } else if ( v2gBodyType->CertificateUpdateReq_isUsed == 1u ) {
- errn = encodeNBitUnsignedInteger(stream, 7, 11);
- if(errn == 0) {
- errn = encode_v2gCertificateUpdateReqType(stream, &v2gBodyType->CertificateUpdateReq );
- }
- grammarID = 2;
- } else if ( v2gBodyType->CertificateUpdateRes_isUsed == 1u ) {
- errn = encodeNBitUnsignedInteger(stream, 7, 12);
- if(errn == 0) {
- errn = encode_v2gCertificateUpdateResType(stream, &v2gBodyType->CertificateUpdateRes );
- }
- grammarID = 2;
- } else if ( v2gBodyType->ChargeParameterDiscoveryReq_isUsed == 1u ) {
- errn = encodeNBitUnsignedInteger(stream, 7, 13);
- if(errn == 0) {
- errn = encode_v2gChargeParameterDiscoveryReqType(stream, &v2gBodyType->ChargeParameterDiscoveryReq );
- }
- grammarID = 2;
- } else if ( v2gBodyType->ChargeParameterDiscoveryRes_isUsed == 1u ) {
- errn = encodeNBitUnsignedInteger(stream, 7, 14);
- if(errn == 0) {
- errn = encode_v2gChargeParameterDiscoveryResType(stream, &v2gBodyType->ChargeParameterDiscoveryRes );
- }
- grammarID = 2;
- } else if ( v2gBodyType->ChargingStatusReq_isUsed == 1u ) {
- errn = encodeNBitUnsignedInteger(stream, 7, 15);
- if(errn == 0) {
- errn = encode_v2gChargingStatusReqType(stream, &v2gBodyType->ChargingStatusReq );
- }
- grammarID = 2;
- } else if ( v2gBodyType->ChargingStatusRes_isUsed == 1u ) {
- errn = encodeNBitUnsignedInteger(stream, 7, 16);
- if(errn == 0) {
- errn = encode_v2gChargingStatusResType(stream, &v2gBodyType->ChargingStatusRes );
- }
- grammarID = 2;
- } else if ( v2gBodyType->ConnectChargingDeviceReq_isUsed == 1u ) {
- errn = encodeNBitUnsignedInteger(stream, 7, 17);
- if(errn == 0) {
- errn = encode_v2gConnectChargingDeviceReqType(stream, &v2gBodyType->ConnectChargingDeviceReq );
- }
- grammarID = 2;
- } else if ( v2gBodyType->ConnectChargingDeviceRes_isUsed == 1u ) {
- errn = encodeNBitUnsignedInteger(stream, 7, 18);
- if(errn == 0) {
- errn = encode_v2gConnectChargingDeviceResType(stream, &v2gBodyType->ConnectChargingDeviceRes );
- }
- grammarID = 2;
- } else if ( v2gBodyType->CurrentDemandReq_isUsed == 1u ) {
- errn = encodeNBitUnsignedInteger(stream, 7, 19);
- if(errn == 0) {
- errn = encode_v2gCurrentDemandReqType(stream, &v2gBodyType->CurrentDemandReq );
- }
- grammarID = 2;
- } else if ( v2gBodyType->CurrentDemandRes_isUsed == 1u ) {
- errn = encodeNBitUnsignedInteger(stream, 7, 20);
- if(errn == 0) {
- errn = encode_v2gCurrentDemandResType(stream, &v2gBodyType->CurrentDemandRes );
- }
- grammarID = 2;
- } else if ( v2gBodyType->DC_BidirectionalControlReq_isUsed == 1u ) {
- errn = encodeNBitUnsignedInteger(stream, 7, 21);
- if(errn == 0) {
- errn = encode_v2gDC_BidirectionalControlReqType(stream, &v2gBodyType->DC_BidirectionalControlReq );
- }
- grammarID = 2;
- } else if ( v2gBodyType->DC_BidirectionalControlRes_isUsed == 1u ) {
- errn = encodeNBitUnsignedInteger(stream, 7, 22);
- if(errn == 0) {
- errn = encode_v2gDC_BidirectionalControlResType(stream, &v2gBodyType->DC_BidirectionalControlRes );
- }
- grammarID = 2;
- } else if ( v2gBodyType->DisconnectChargingDeviceReq_isUsed == 1u ) {
- errn = encodeNBitUnsignedInteger(stream, 7, 23);
- if(errn == 0) {
- errn = encode_v2gDisconnectChargingDeviceReqType(stream, &v2gBodyType->DisconnectChargingDeviceReq );
- }
- grammarID = 2;
- } else if ( v2gBodyType->DisconnectChargingDeviceRes_isUsed == 1u ) {
- errn = encodeNBitUnsignedInteger(stream, 7, 24);
- if(errn == 0) {
- errn = encode_v2gDisconnectChargingDeviceResType(stream, &v2gBodyType->DisconnectChargingDeviceRes );
- }
- grammarID = 2;
- } else if ( v2gBodyType->EVErrorInformation_isUsed == 1u ) {
- errn = encodeNBitUnsignedInteger(stream, 7, 25);
- if(errn == 0) {
- errn = encode_v2gEVErrorInformationType(stream, &v2gBodyType->EVErrorInformation );
- }
- grammarID = 2;
- } else if ( v2gBodyType->EVSEErrorInformation_isUsed == 1u ) {
- errn = encodeNBitUnsignedInteger(stream, 7, 26);
- if(errn == 0) {
- errn = encode_v2gEVSEErrorInformationType(stream, &v2gBodyType->EVSEErrorInformation );
- }
- grammarID = 2;
- } else if ( v2gBodyType->ErrorInformation_isUsed == 1u ) {
- errn = encodeNBitUnsignedInteger(stream, 7, 27);
- if(errn == 0) {
- errn = encode_v2gBodyBaseType(stream, &v2gBodyType->ErrorInformation );
- }
- grammarID = 2;
- } else if ( v2gBodyType->FinePositioningReq_isUsed == 1u ) {
- errn = encodeNBitUnsignedInteger(stream, 7, 28);
- if(errn == 0) {
- errn = encode_v2gFinePositioningReqType(stream, &v2gBodyType->FinePositioningReq );
- }
- grammarID = 2;
- } else if ( v2gBodyType->FinePositioningRes_isUsed == 1u ) {
- errn = encodeNBitUnsignedInteger(stream, 7, 29);
- if(errn == 0) {
- errn = encode_v2gFinePositioningResType(stream, &v2gBodyType->FinePositioningRes );
- }
- grammarID = 2;
- } else if ( v2gBodyType->FinePositioningSetupReq_isUsed == 1u ) {
- errn = encodeNBitUnsignedInteger(stream, 7, 30);
- if(errn == 0) {
- errn = encode_v2gFinePositioningSetupReqType(stream, &v2gBodyType->FinePositioningSetupReq );
- }
- grammarID = 2;
- } else if ( v2gBodyType->FinePositioningSetupRes_isUsed == 1u ) {
- errn = encodeNBitUnsignedInteger(stream, 7, 31);
- if(errn == 0) {
- errn = encode_v2gFinePositioningSetupResType(stream, &v2gBodyType->FinePositioningSetupRes );
- }
- grammarID = 2;
- } else if ( v2gBodyType->MeteringReceiptReq_isUsed == 1u ) {
- errn = encodeNBitUnsignedInteger(stream, 7, 32);
- if(errn == 0) {
- errn = encode_v2gMeteringReceiptReqType(stream, &v2gBodyType->MeteringReceiptReq );
- }
- grammarID = 2;
- } else if ( v2gBodyType->MeteringReceiptRes_isUsed == 1u ) {
- errn = encodeNBitUnsignedInteger(stream, 7, 33);
- if(errn == 0) {
- errn = encode_v2gV2GResponseType(stream, &v2gBodyType->MeteringReceiptRes );
- }
- grammarID = 2;
- } else if ( v2gBodyType->PairingReq_isUsed == 1u ) {
- errn = encodeNBitUnsignedInteger(stream, 7, 34);
- if(errn == 0) {
- errn = encode_v2gPairingReqType(stream, &v2gBodyType->PairingReq );
- }
- grammarID = 2;
- } else if ( v2gBodyType->PairingRes_isUsed == 1u ) {
- errn = encodeNBitUnsignedInteger(stream, 7, 35);
- if(errn == 0) {
- errn = encode_v2gPairingResType(stream, &v2gBodyType->PairingRes );
- }
- grammarID = 2;
- } else if ( v2gBodyType->PaymentDetailsReq_isUsed == 1u ) {
- errn = encodeNBitUnsignedInteger(stream, 7, 36);
- if(errn == 0) {
- errn = encode_v2gPaymentDetailsReqType(stream, &v2gBodyType->PaymentDetailsReq );
- }
- grammarID = 2;
- } else if ( v2gBodyType->PaymentDetailsRes_isUsed == 1u ) {
- errn = encodeNBitUnsignedInteger(stream, 7, 37);
- if(errn == 0) {
- errn = encode_v2gPaymentDetailsResType(stream, &v2gBodyType->PaymentDetailsRes );
- }
- grammarID = 2;
- } else if ( v2gBodyType->PaymentServiceSelectionReq_isUsed == 1u ) {
- errn = encodeNBitUnsignedInteger(stream, 7, 38);
- if(errn == 0) {
- errn = encode_v2gPaymentServiceSelectionReqType(stream, &v2gBodyType->PaymentServiceSelectionReq );
- }
- grammarID = 2;
- } else if ( v2gBodyType->PaymentServiceSelectionRes_isUsed == 1u ) {
- errn = encodeNBitUnsignedInteger(stream, 7, 39);
- if(errn == 0) {
- errn = encode_v2gV2GResponseType(stream, &v2gBodyType->PaymentServiceSelectionRes );
- }
- grammarID = 2;
- } else if ( v2gBodyType->PowerDeliveryReq_isUsed == 1u ) {
- errn = encodeNBitUnsignedInteger(stream, 7, 40);
- if(errn == 0) {
- errn = encode_v2gPowerDeliveryReqType(stream, &v2gBodyType->PowerDeliveryReq );
- }
- grammarID = 2;
- } else if ( v2gBodyType->PowerDeliveryRes_isUsed == 1u ) {
- errn = encodeNBitUnsignedInteger(stream, 7, 41);
- if(errn == 0) {
- errn = encode_v2gPowerDeliveryResType(stream, &v2gBodyType->PowerDeliveryRes );
- }
- grammarID = 2;
- } else if ( v2gBodyType->PowerDemandReq_isUsed == 1u ) {
- errn = encodeNBitUnsignedInteger(stream, 7, 42);
- if(errn == 0) {
- errn = encode_v2gPowerDemandReqType(stream, &v2gBodyType->PowerDemandReq );
- }
- grammarID = 2;
- } else if ( v2gBodyType->PowerDemandRes_isUsed == 1u ) {
- errn = encodeNBitUnsignedInteger(stream, 7, 43);
- if(errn == 0) {
- errn = encode_v2gPowerDemandResType(stream, &v2gBodyType->PowerDemandRes );
- }
- grammarID = 2;
- } else if ( v2gBodyType->PreChargeReq_isUsed == 1u ) {
- errn = encodeNBitUnsignedInteger(stream, 7, 44);
- if(errn == 0) {
- errn = encode_v2gPreChargeReqType(stream, &v2gBodyType->PreChargeReq );
- }
- grammarID = 2;
- } else if ( v2gBodyType->PreChargeRes_isUsed == 1u ) {
- errn = encodeNBitUnsignedInteger(stream, 7, 45);
- if(errn == 0) {
- errn = encode_v2gPreChargeResType(stream, &v2gBodyType->PreChargeRes );
- }
- grammarID = 2;
- } else if ( v2gBodyType->ServiceDetailReq_isUsed == 1u ) {
- errn = encodeNBitUnsignedInteger(stream, 7, 46);
- if(errn == 0) {
- errn = encode_v2gServiceDetailReqType(stream, &v2gBodyType->ServiceDetailReq );
- }
- grammarID = 2;
- } else if ( v2gBodyType->ServiceDetailRes_isUsed == 1u ) {
- errn = encodeNBitUnsignedInteger(stream, 7, 47);
- if(errn == 0) {
- errn = encode_v2gServiceDetailResType(stream, &v2gBodyType->ServiceDetailRes );
- }
- grammarID = 2;
- } else if ( v2gBodyType->ServiceDiscoveryReq_isUsed == 1u ) {
- errn = encodeNBitUnsignedInteger(stream, 7, 48);
- if(errn == 0) {
- errn = encode_v2gServiceDiscoveryReqType(stream, &v2gBodyType->ServiceDiscoveryReq );
- }
- grammarID = 2;
- } else if ( v2gBodyType->ServiceDiscoveryRes_isUsed == 1u ) {
- errn = encodeNBitUnsignedInteger(stream, 7, 49);
- if(errn == 0) {
- errn = encode_v2gServiceDiscoveryResType(stream, &v2gBodyType->ServiceDiscoveryRes );
- }
- grammarID = 2;
- } else if ( v2gBodyType->SessionSetupReq_isUsed == 1u ) {
- errn = encodeNBitUnsignedInteger(stream, 7, 50);
- if(errn == 0) {
- errn = encode_v2gSessionSetupReqType(stream, &v2gBodyType->SessionSetupReq );
- }
- grammarID = 2;
- } else if ( v2gBodyType->SessionSetupRes_isUsed == 1u ) {
- errn = encodeNBitUnsignedInteger(stream, 7, 51);
- if(errn == 0) {
- errn = encode_v2gSessionSetupResType(stream, &v2gBodyType->SessionSetupRes );
- }
- grammarID = 2;
- } else if ( v2gBodyType->SessionStopReq_isUsed == 1u ) {
- errn = encodeNBitUnsignedInteger(stream, 7, 52);
- if(errn == 0) {
- errn = encode_v2gSessionStopReqType(stream, &v2gBodyType->SessionStopReq );
- }
- grammarID = 2;
- } else if ( v2gBodyType->SessionStopRes_isUsed == 1u ) {
- errn = encodeNBitUnsignedInteger(stream, 7, 53);
- if(errn == 0) {
- errn = encode_v2gV2GResponseType(stream, &v2gBodyType->SessionStopRes );
- }
- grammarID = 2;
- } else if ( v2gBodyType->SystemStatusReq_isUsed == 1u ) {
- errn = encodeNBitUnsignedInteger(stream, 7, 54);
- if(errn == 0) {
- errn = encode_v2gSystemStatusReqType(stream, &v2gBodyType->SystemStatusReq );
- }
- grammarID = 2;
- } else if ( v2gBodyType->SystemStatusRes_isUsed == 1u ) {
- errn = encodeNBitUnsignedInteger(stream, 7, 55);
- if(errn == 0) {
- errn = encode_v2gSystemStatusResType(stream, &v2gBodyType->SystemStatusRes );
- }
- grammarID = 2;
- } else if ( v2gBodyType->V2GRequest_isUsed == 1u ) {
- errn = encodeNBitUnsignedInteger(stream, 7, 56);
- if(errn == 0) {
- errn = encode_v2gBodyBaseType(stream, &v2gBodyType->V2GRequest );
- }
- grammarID = 2;
- } else if ( v2gBodyType->V2GResponse_isUsed == 1u ) {
- errn = encodeNBitUnsignedInteger(stream, 7, 57);
- if(errn == 0) {
- errn = encode_v2gV2GResponseType(stream, &v2gBodyType->V2GResponse );
- }
- grammarID = 2;
- } else if ( v2gBodyType->VehicleCheckInReq_isUsed == 1u ) {
- errn = encodeNBitUnsignedInteger(stream, 7, 58);
- if(errn == 0) {
- errn = encode_v2gVehicleCheckInReqType(stream, &v2gBodyType->VehicleCheckInReq );
- }
- grammarID = 2;
- } else if ( v2gBodyType->VehicleCheckInRes_isUsed == 1u ) {
- errn = encodeNBitUnsignedInteger(stream, 7, 59);
- if(errn == 0) {
- errn = encode_v2gVehicleCheckInResType(stream, &v2gBodyType->VehicleCheckInRes );
- }
- grammarID = 2;
- } else if ( v2gBodyType->VehicleCheckOutReq_isUsed == 1u ) {
- errn = encodeNBitUnsignedInteger(stream, 7, 60);
- if(errn == 0) {
- errn = encode_v2gVehicleCheckOutReqType(stream, &v2gBodyType->VehicleCheckOutReq );
- }
- grammarID = 2;
- } else if ( v2gBodyType->VehicleCheckOutRes_isUsed == 1u ) {
- errn = encodeNBitUnsignedInteger(stream, 7, 61);
- if(errn == 0) {
- errn = encode_v2gVehicleCheckOutResType(stream, &v2gBodyType->VehicleCheckOutRes );
- }
- grammarID = 2;
- } else if ( v2gBodyType->WeldingDetectionReq_isUsed == 1u ) {
- errn = encodeNBitUnsignedInteger(stream, 7, 62);
- if(errn == 0) {
- errn = encode_v2gBodyBaseType(stream, &v2gBodyType->WeldingDetectionReq );
- }
- grammarID = 2;
- } else if ( v2gBodyType->WeldingDetectionRes_isUsed == 1u ) {
- errn = encodeNBitUnsignedInteger(stream, 7, 63);
- if(errn == 0) {
- errn = encode_v2gWeldingDetectionResType(stream, &v2gBodyType->WeldingDetectionRes );
- }
- grammarID = 2;
+ grammarID = 4;
} else {
errn = EXI_ERROR_UNKOWN_EVENT;
}
break;
case 2:
+ /* StartTag[START_ELEMENT({http://www.w3.org/2000/09/xmldsig#}Transforms), END_ELEMENT] */
+ if ( iso2RetrievalMethodType->Transforms_isUsed == 1u ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ if(errn == 0) {
+ errn = encode_iso2TransformsType(stream, &iso2RetrievalMethodType->Transforms );
+ }
+ grammarID = 3;
+ } else if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 3:
/* 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:2016:MsgBody,FinePositioningReqType', base type name='BodyBaseType', content type='ELEMENT', isAbstract='false', hasTypeId='false', final='0', block='0', particle='("urn:iso:15118:2:2016:MsgBody":EVProcessing,"urn:iso:15118:2:2016:MsgDataTypes":EVFinePositioningParameters{0-1})', derivedBy='EXTENSION'. */
-static int encode_v2gFinePositioningReqType(bitstream_t* stream, struct v2gFinePositioningReqType* v2gFinePositioningReqType) {
- int grammarID = 45;
- int done = 0;
-
-
- while(!done) {
- switch(grammarID) {
- case 45:
- /* FirstStartTag[START_ELEMENT({urn:iso:15118:2:2016:MsgBody}EVProcessing)] */
- 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, v2gFinePositioningReqType->EVProcessing);
- /* valid EE */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- }
- }
- grammarID = 46;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 46:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}EVFinePositioningParameters), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}Generic_EVFinePositioningParameters), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}LFA_EVFinePositioningParameters), END_ELEMENT] */
- if ( v2gFinePositioningReqType->EVFinePositioningParameters_isUsed == 1u ) {
- errn = encodeNBitUnsignedInteger(stream, 3, 0);
- if(errn == 0) {
- errn = encode_v2gEVFinePositioningParametersType(stream, &v2gFinePositioningReqType->EVFinePositioningParameters );
- }
- grammarID = 2;
- } else if ( v2gFinePositioningReqType->Generic_EVFinePositioningParameters_isUsed == 1u ) {
- errn = encodeNBitUnsignedInteger(stream, 3, 1);
- if(errn == 0) {
- errn = encode_v2gGeneric_EVFinePositioningParametersType(stream, &v2gFinePositioningReqType->Generic_EVFinePositioningParameters );
- }
- grammarID = 2;
- } else if ( v2gFinePositioningReqType->LFA_EVFinePositioningParameters_isUsed == 1u ) {
- errn = encodeNBitUnsignedInteger(stream, 3, 2);
- if(errn == 0) {
- errn = encode_v2gLFA_EVFinePositioningParametersType(stream, &v2gFinePositioningReqType->LFA_EVFinePositioningParameters );
- }
- grammarID = 2;
- } else if (1==1) {
- errn = encodeNBitUnsignedInteger(stream, 3, 3);
- 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:2016:MsgDataTypes,PMaxScheduleEntryType', base type name='EntryType', content type='ELEMENT', isAbstract='false', hasTypeId='false', final='0', block='0', particle='(("urn:iso:15118:2:2016:MsgDataTypes":RelativeTimeInterval),("urn:iso:15118:2:2016:MsgDataTypes":PMax{1-3}))', derivedBy='EXTENSION'. */
-static int encode_v2gPMaxScheduleEntryType(bitstream_t* stream, struct v2gPMaxScheduleEntryType* v2gPMaxScheduleEntryType) {
- int grammarID = 47;
- int done = 0;
-
- unsigned int v2gPMaxScheduleEntryType_PMax_currArrayIndex = 0;
-
- while(!done) {
- switch(grammarID) {
- case 47:
- /* FirstStartTag[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}RelativeTimeInterval)] */
- if ( 1 == 1 ) {
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- if(errn == 0) {
- errn = encode_v2gRelativeTimeIntervalType(stream, &v2gPMaxScheduleEntryType->RelativeTimeInterval );
- }
- grammarID = 48;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 48:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}PMax)] */
- if (v2gPMaxScheduleEntryType_PMax_currArrayIndex < v2gPMaxScheduleEntryType->PMax.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- if(errn == 0) {
- errn = encode_v2gPhysicalValueType(stream, &v2gPMaxScheduleEntryType->PMax.array [v2gPMaxScheduleEntryType_PMax_currArrayIndex++]);
- }
- grammarID = 49;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 49:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}PMax), END_ELEMENT] */
- if (v2gPMaxScheduleEntryType_PMax_currArrayIndex < v2gPMaxScheduleEntryType->PMax.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- errn = encode_v2gPhysicalValueType(stream, &v2gPMaxScheduleEntryType->PMax.array [v2gPMaxScheduleEntryType_PMax_currArrayIndex++]);
- }
- grammarID = 50;
- } else if (1==1) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- done = 1;
- }
- grammarID = 3;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 50:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}PMax), END_ELEMENT] */
- if (v2gPMaxScheduleEntryType_PMax_currArrayIndex < v2gPMaxScheduleEntryType->PMax.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- errn = encode_v2gPhysicalValueType(stream, &v2gPMaxScheduleEntryType->PMax.array [v2gPMaxScheduleEntryType_PMax_currArrayIndex++]);
- }
- 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:2016:MsgBody,PreChargeReqType', base type name='BodyBaseType', content type='ELEMENT', isAbstract='false', hasTypeId='false', final='0', block='0', particle='("urn:iso:15118:2:2016:MsgBody":EVTargetVoltage,"urn:iso:15118:2:2016:MsgBody":EVTargetCurrent)', derivedBy='EXTENSION'. */
-static int encode_v2gPreChargeReqType(bitstream_t* stream, struct v2gPreChargeReqType* v2gPreChargeReqType) {
- int grammarID = 51;
- int done = 0;
-
-
- while(!done) {
- switch(grammarID) {
- case 51:
- /* FirstStartTag[START_ELEMENT({urn:iso:15118:2:2016:MsgBody}EVTargetVoltage)] */
- if ( 1 == 1 ) {
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- if(errn == 0) {
- errn = encode_v2gPhysicalValueType(stream, &v2gPreChargeReqType->EVTargetVoltage );
- }
- grammarID = 52;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 52:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgBody}EVTargetCurrent)] */
- if ( 1 == 1 ) {
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- if(errn == 0) {
- errn = encode_v2gPhysicalValueType(stream, &v2gPreChargeReqType->EVTargetCurrent );
- }
- grammarID = 2;
- } 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:2016:MsgBody,VehicleCheckInResType', base type name='V2GResponseType', content type='ELEMENT', isAbstract='false', hasTypeId='false', final='0', block='0', particle='(("urn:iso:15118:2:2016:MsgBody":ResponseCode,"urn:iso:15118:2:2016:MsgBody":EVSEStatus{0-1}),("urn:iso:15118:2:2016:MsgBody":VehicleSpace,"urn:iso:15118:2:2016:MsgBody":TargetOffset{0-1}))', derivedBy='EXTENSION'. */
-static int encode_v2gVehicleCheckInResType(bitstream_t* stream, struct v2gVehicleCheckInResType* v2gVehicleCheckInResType) {
- int grammarID = 53;
- int done = 0;
-
-
- while(!done) {
- switch(grammarID) {
- case 53:
- /* FirstStartTag[START_ELEMENT({urn:iso:15118:2:2016:MsgBody}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, 5, v2gVehicleCheckInResType->ResponseCode);
- /* valid EE */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- }
- }
- grammarID = 54;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 54:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgBody}EVSEStatus), START_ELEMENT({urn:iso:15118:2:2016:MsgBody}VehicleSpace)] */
- if ( v2gVehicleCheckInResType->EVSEStatus_isUsed == 1u ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- errn = encode_v2gEVSEStatusType(stream, &v2gVehicleCheckInResType->EVSEStatus );
- }
- grammarID = 55;
- } else if ( 1 == 1 ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- /* First(xsi:type)StartTag[CHARACTERS[UNSIGNED_INTEGER]] */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- if(errn == 0) {
- errn = encodeUnsignedInteger16(stream, v2gVehicleCheckInResType->VehicleSpace);
- /* valid EE */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- }
- }
- grammarID = 56;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 55:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgBody}VehicleSpace)] */
- if ( 1 == 1 ) {
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- if(errn == 0) {
- /* First(xsi:type)StartTag[CHARACTERS[UNSIGNED_INTEGER]] */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- if(errn == 0) {
- errn = encodeUnsignedInteger16(stream, v2gVehicleCheckInResType->VehicleSpace);
- /* valid EE */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- }
- }
- grammarID = 56;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 56:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgBody}TargetOffset), END_ELEMENT] */
- if ( v2gVehicleCheckInResType->TargetOffset_isUsed == 1u ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- errn = encode_v2gTargetPositionType(stream, &v2gVehicleCheckInResType->TargetOffset );
- }
- 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:2016:MsgBody,V2GRequestType', base type name='anyType', content type='EMPTY', isAbstract='true', hasTypeId='false', final='0', block='0', derivedBy='RESTRICTION'. */
-static int encode_v2gV2GRequestType(bitstream_t* stream, struct v2gV2GRequestType* v2gV2GRequestType) {
- int grammarID = 4;
- int done = 0;
-
-
- while(!done) {
- switch(grammarID) {
- case 4:
- /* FirstStartTag[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:2016:MsgDataTypes,LF_EVSEFinePositioningParametersType', base type name='EVSEFinePositioningParametersType', content type='ELEMENT', isAbstract='false', hasTypeId='false', final='0', block='0', particle='("urn:iso:15118:2:2016:MsgDataTypes":NumberOfSignalPackages,"urn:iso:15118:2:2016:MsgDataTypes":SensorPackageList)', derivedBy='EXTENSION'. */
-static int encode_v2gLF_EVSEFinePositioningParametersType(bitstream_t* stream, struct v2gLF_EVSEFinePositioningParametersType* v2gLF_EVSEFinePositioningParametersType) {
- int grammarID = 57;
- int done = 0;
-
-
- while(!done) {
- switch(grammarID) {
- case 57:
- /* FirstStartTag[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}NumberOfSignalPackages)] */
- if ( 1 == 1 ) {
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- if(errn == 0) {
- /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- if(errn == 0) {
- errn = encodeNBitUnsignedInteger(stream, 8, (uint32_t)(v2gLF_EVSEFinePositioningParametersType->NumberOfSignalPackages - 0));
- /* valid EE */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- }
- }
- grammarID = 58;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 58:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorPackageList)] */
- if ( 1 == 1 ) {
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- if(errn == 0) {
- errn = encode_v2gSensorPackageListType(stream, &v2gLF_EVSEFinePositioningParametersType->SensorPackageList );
- }
- grammarID = 2;
- } 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='http://www.w3.org/2000/09/xmldsig#,SignaturePropertiesType', base type name='anyType', content type='ELEMENT', isAbstract='false', hasTypeId='false', final='0', block='0', particle='("http://www.w3.org/2000/09/xmldsig#":SignatureProperty{1-UNBOUNDED})', derivedBy='RESTRICTION'. */
-static int encode_v2gSignaturePropertiesType(bitstream_t* stream, struct v2gSignaturePropertiesType* v2gSignaturePropertiesType) {
- int grammarID = 59;
- int done = 0;
-
- unsigned int v2gSignaturePropertiesType_SignatureProperty_currArrayIndex = 0;
-
- while(!done) {
- switch(grammarID) {
- case 59:
- /* FirstStartTag[ATTRIBUTE[STRING](Id), START_ELEMENT({http://www.w3.org/2000/09/xmldsig#}SignatureProperty)] */
- if ( v2gSignaturePropertiesType->Id_isUsed == 1u ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- /* encode string as string table miss (+2 len)*/
- errn = encodeUnsignedInteger16(stream, (uint16_t)(v2gSignaturePropertiesType->Id.charactersLen + 2));
- if (errn == 0) {
- errn = encodeCharacters(stream, v2gSignaturePropertiesType->Id.characters, v2gSignaturePropertiesType->Id.charactersLen);
- }
- }
- grammarID = 60;
- } else if (v2gSignaturePropertiesType_SignatureProperty_currArrayIndex < v2gSignaturePropertiesType->SignatureProperty.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- errn = encode_v2gSignaturePropertyType(stream, &v2gSignaturePropertiesType->SignatureProperty.array [v2gSignaturePropertiesType_SignatureProperty_currArrayIndex++]);
- }
- grammarID = 61;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 60:
- /* StartTag[START_ELEMENT({http://www.w3.org/2000/09/xmldsig#}SignatureProperty)] */
- if (v2gSignaturePropertiesType_SignatureProperty_currArrayIndex < v2gSignaturePropertiesType->SignatureProperty.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- if(errn == 0) {
- errn = encode_v2gSignaturePropertyType(stream, &v2gSignaturePropertiesType->SignatureProperty.array [v2gSignaturePropertiesType_SignatureProperty_currArrayIndex++]);
- }
- grammarID = 61;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 61:
- /* Element[START_ELEMENT({http://www.w3.org/2000/09/xmldsig#}SignatureProperty), END_ELEMENT] */
- if (v2gSignaturePropertiesType_SignatureProperty_currArrayIndex < v2gSignaturePropertiesType->SignatureProperty.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- errn = encode_v2gSignaturePropertyType(stream, &v2gSignaturePropertiesType->SignatureProperty.array [v2gSignaturePropertiesType_SignatureProperty_currArrayIndex++]);
- }
- grammarID = 61;
- } else if (1==1) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- 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:2016:MsgDataTypes,MagneticVectorSetupListType', base type name='anyType', content type='ELEMENT', isAbstract='false', hasTypeId='false', final='0', block='0', particle='("urn:iso:15118:2:2016:MsgDataTypes":MagneticVectorSetup{1-255})', derivedBy='RESTRICTION'. */
-static int encode_v2gMagneticVectorSetupListType(bitstream_t* stream, struct v2gMagneticVectorSetupListType* v2gMagneticVectorSetupListType) {
- int grammarID = 62;
- int done = 0;
-
- unsigned int v2gMagneticVectorSetupListType_MagneticVectorSetup_currArrayIndex = 0;
-
- while(!done) {
- switch(grammarID) {
- case 62:
- /* FirstStartTag[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MagneticVectorSetup)] */
- if (v2gMagneticVectorSetupListType_MagneticVectorSetup_currArrayIndex < v2gMagneticVectorSetupListType->MagneticVectorSetup.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- if(errn == 0) {
- errn = encode_v2gMagneticVectorSetupType(stream, &v2gMagneticVectorSetupListType->MagneticVectorSetup.array [v2gMagneticVectorSetupListType_MagneticVectorSetup_currArrayIndex++]);
- }
- grammarID = 63;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 63:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MagneticVectorSetup), END_ELEMENT] */
- if (v2gMagneticVectorSetupListType_MagneticVectorSetup_currArrayIndex < v2gMagneticVectorSetupListType->MagneticVectorSetup.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- errn = encode_v2gMagneticVectorSetupType(stream, &v2gMagneticVectorSetupListType->MagneticVectorSetup.array [v2gMagneticVectorSetupListType_MagneticVectorSetup_currArrayIndex++]);
- }
- grammarID = 64;
- } else if (1==1) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- done = 1;
- }
- grammarID = 3;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 64:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MagneticVectorSetup), END_ELEMENT] */
- if (v2gMagneticVectorSetupListType_MagneticVectorSetup_currArrayIndex < v2gMagneticVectorSetupListType->MagneticVectorSetup.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- errn = encode_v2gMagneticVectorSetupType(stream, &v2gMagneticVectorSetupListType->MagneticVectorSetup.array [v2gMagneticVectorSetupListType_MagneticVectorSetup_currArrayIndex++]);
- }
- grammarID = 65;
- } else if (1==1) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- done = 1;
- }
- grammarID = 3;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 65:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MagneticVectorSetup), END_ELEMENT] */
- if (v2gMagneticVectorSetupListType_MagneticVectorSetup_currArrayIndex < v2gMagneticVectorSetupListType->MagneticVectorSetup.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- errn = encode_v2gMagneticVectorSetupType(stream, &v2gMagneticVectorSetupListType->MagneticVectorSetup.array [v2gMagneticVectorSetupListType_MagneticVectorSetup_currArrayIndex++]);
- }
- grammarID = 66;
- } else if (1==1) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- done = 1;
- }
- grammarID = 3;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 66:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MagneticVectorSetup), END_ELEMENT] */
- if (v2gMagneticVectorSetupListType_MagneticVectorSetup_currArrayIndex < v2gMagneticVectorSetupListType->MagneticVectorSetup.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- errn = encode_v2gMagneticVectorSetupType(stream, &v2gMagneticVectorSetupListType->MagneticVectorSetup.array [v2gMagneticVectorSetupListType_MagneticVectorSetup_currArrayIndex++]);
- }
- grammarID = 67;
- } else if (1==1) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- done = 1;
- }
- grammarID = 3;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 67:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MagneticVectorSetup), END_ELEMENT] */
- if (v2gMagneticVectorSetupListType_MagneticVectorSetup_currArrayIndex < v2gMagneticVectorSetupListType->MagneticVectorSetup.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- errn = encode_v2gMagneticVectorSetupType(stream, &v2gMagneticVectorSetupListType->MagneticVectorSetup.array [v2gMagneticVectorSetupListType_MagneticVectorSetup_currArrayIndex++]);
- }
- grammarID = 68;
- } else if (1==1) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- done = 1;
- }
- grammarID = 3;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 68:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MagneticVectorSetup), END_ELEMENT] */
- if (v2gMagneticVectorSetupListType_MagneticVectorSetup_currArrayIndex < v2gMagneticVectorSetupListType->MagneticVectorSetup.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- errn = encode_v2gMagneticVectorSetupType(stream, &v2gMagneticVectorSetupListType->MagneticVectorSetup.array [v2gMagneticVectorSetupListType_MagneticVectorSetup_currArrayIndex++]);
- }
- grammarID = 69;
- } else if (1==1) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- done = 1;
- }
- grammarID = 3;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 69:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MagneticVectorSetup), END_ELEMENT] */
- if (v2gMagneticVectorSetupListType_MagneticVectorSetup_currArrayIndex < v2gMagneticVectorSetupListType->MagneticVectorSetup.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- errn = encode_v2gMagneticVectorSetupType(stream, &v2gMagneticVectorSetupListType->MagneticVectorSetup.array [v2gMagneticVectorSetupListType_MagneticVectorSetup_currArrayIndex++]);
- }
- grammarID = 70;
- } else if (1==1) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- done = 1;
- }
- grammarID = 3;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 70:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MagneticVectorSetup), END_ELEMENT] */
- if (v2gMagneticVectorSetupListType_MagneticVectorSetup_currArrayIndex < v2gMagneticVectorSetupListType->MagneticVectorSetup.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- errn = encode_v2gMagneticVectorSetupType(stream, &v2gMagneticVectorSetupListType->MagneticVectorSetup.array [v2gMagneticVectorSetupListType_MagneticVectorSetup_currArrayIndex++]);
- }
- grammarID = 71;
- } else if (1==1) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- done = 1;
- }
- grammarID = 3;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 71:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MagneticVectorSetup), END_ELEMENT] */
- if (v2gMagneticVectorSetupListType_MagneticVectorSetup_currArrayIndex < v2gMagneticVectorSetupListType->MagneticVectorSetup.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- errn = encode_v2gMagneticVectorSetupType(stream, &v2gMagneticVectorSetupListType->MagneticVectorSetup.array [v2gMagneticVectorSetupListType_MagneticVectorSetup_currArrayIndex++]);
- }
- grammarID = 72;
- } else if (1==1) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- done = 1;
- }
- grammarID = 3;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 72:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MagneticVectorSetup), END_ELEMENT] */
- if (v2gMagneticVectorSetupListType_MagneticVectorSetup_currArrayIndex < v2gMagneticVectorSetupListType->MagneticVectorSetup.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- errn = encode_v2gMagneticVectorSetupType(stream, &v2gMagneticVectorSetupListType->MagneticVectorSetup.array [v2gMagneticVectorSetupListType_MagneticVectorSetup_currArrayIndex++]);
- }
- grammarID = 73;
- } else if (1==1) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- done = 1;
- }
- grammarID = 3;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 73:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MagneticVectorSetup), END_ELEMENT] */
- if (v2gMagneticVectorSetupListType_MagneticVectorSetup_currArrayIndex < v2gMagneticVectorSetupListType->MagneticVectorSetup.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- errn = encode_v2gMagneticVectorSetupType(stream, &v2gMagneticVectorSetupListType->MagneticVectorSetup.array [v2gMagneticVectorSetupListType_MagneticVectorSetup_currArrayIndex++]);
- }
- grammarID = 74;
- } else if (1==1) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- done = 1;
- }
- grammarID = 3;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 74:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MagneticVectorSetup), END_ELEMENT] */
- if (v2gMagneticVectorSetupListType_MagneticVectorSetup_currArrayIndex < v2gMagneticVectorSetupListType->MagneticVectorSetup.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- errn = encode_v2gMagneticVectorSetupType(stream, &v2gMagneticVectorSetupListType->MagneticVectorSetup.array [v2gMagneticVectorSetupListType_MagneticVectorSetup_currArrayIndex++]);
- }
- grammarID = 75;
- } else if (1==1) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- done = 1;
- }
- grammarID = 3;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 75:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MagneticVectorSetup), END_ELEMENT] */
- if (v2gMagneticVectorSetupListType_MagneticVectorSetup_currArrayIndex < v2gMagneticVectorSetupListType->MagneticVectorSetup.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- errn = encode_v2gMagneticVectorSetupType(stream, &v2gMagneticVectorSetupListType->MagneticVectorSetup.array [v2gMagneticVectorSetupListType_MagneticVectorSetup_currArrayIndex++]);
- }
- grammarID = 76;
- } else if (1==1) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- done = 1;
- }
- grammarID = 3;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 76:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MagneticVectorSetup), END_ELEMENT] */
- if (v2gMagneticVectorSetupListType_MagneticVectorSetup_currArrayIndex < v2gMagneticVectorSetupListType->MagneticVectorSetup.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- errn = encode_v2gMagneticVectorSetupType(stream, &v2gMagneticVectorSetupListType->MagneticVectorSetup.array [v2gMagneticVectorSetupListType_MagneticVectorSetup_currArrayIndex++]);
- }
- grammarID = 77;
- } else if (1==1) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- done = 1;
- }
- grammarID = 3;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 77:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MagneticVectorSetup), END_ELEMENT] */
- if (v2gMagneticVectorSetupListType_MagneticVectorSetup_currArrayIndex < v2gMagneticVectorSetupListType->MagneticVectorSetup.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- errn = encode_v2gMagneticVectorSetupType(stream, &v2gMagneticVectorSetupListType->MagneticVectorSetup.array [v2gMagneticVectorSetupListType_MagneticVectorSetup_currArrayIndex++]);
- }
- grammarID = 78;
- } else if (1==1) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- done = 1;
- }
- grammarID = 3;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 78:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MagneticVectorSetup), END_ELEMENT] */
- if (v2gMagneticVectorSetupListType_MagneticVectorSetup_currArrayIndex < v2gMagneticVectorSetupListType->MagneticVectorSetup.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- errn = encode_v2gMagneticVectorSetupType(stream, &v2gMagneticVectorSetupListType->MagneticVectorSetup.array [v2gMagneticVectorSetupListType_MagneticVectorSetup_currArrayIndex++]);
- }
- grammarID = 79;
- } else if (1==1) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- done = 1;
- }
- grammarID = 3;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 79:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MagneticVectorSetup), END_ELEMENT] */
- if (v2gMagneticVectorSetupListType_MagneticVectorSetup_currArrayIndex < v2gMagneticVectorSetupListType->MagneticVectorSetup.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- errn = encode_v2gMagneticVectorSetupType(stream, &v2gMagneticVectorSetupListType->MagneticVectorSetup.array [v2gMagneticVectorSetupListType_MagneticVectorSetup_currArrayIndex++]);
- }
- grammarID = 80;
- } else if (1==1) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- done = 1;
- }
- grammarID = 3;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 80:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MagneticVectorSetup), END_ELEMENT] */
- if (v2gMagneticVectorSetupListType_MagneticVectorSetup_currArrayIndex < v2gMagneticVectorSetupListType->MagneticVectorSetup.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- errn = encode_v2gMagneticVectorSetupType(stream, &v2gMagneticVectorSetupListType->MagneticVectorSetup.array [v2gMagneticVectorSetupListType_MagneticVectorSetup_currArrayIndex++]);
- }
- grammarID = 81;
- } else if (1==1) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- done = 1;
- }
- grammarID = 3;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 81:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MagneticVectorSetup), END_ELEMENT] */
- if (v2gMagneticVectorSetupListType_MagneticVectorSetup_currArrayIndex < v2gMagneticVectorSetupListType->MagneticVectorSetup.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- errn = encode_v2gMagneticVectorSetupType(stream, &v2gMagneticVectorSetupListType->MagneticVectorSetup.array [v2gMagneticVectorSetupListType_MagneticVectorSetup_currArrayIndex++]);
- }
- grammarID = 82;
- } else if (1==1) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- done = 1;
- }
- grammarID = 3;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 82:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MagneticVectorSetup), END_ELEMENT] */
- if (v2gMagneticVectorSetupListType_MagneticVectorSetup_currArrayIndex < v2gMagneticVectorSetupListType->MagneticVectorSetup.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- errn = encode_v2gMagneticVectorSetupType(stream, &v2gMagneticVectorSetupListType->MagneticVectorSetup.array [v2gMagneticVectorSetupListType_MagneticVectorSetup_currArrayIndex++]);
- }
- grammarID = 83;
- } else if (1==1) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- done = 1;
- }
- grammarID = 3;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 83:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MagneticVectorSetup), END_ELEMENT] */
- if (v2gMagneticVectorSetupListType_MagneticVectorSetup_currArrayIndex < v2gMagneticVectorSetupListType->MagneticVectorSetup.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- errn = encode_v2gMagneticVectorSetupType(stream, &v2gMagneticVectorSetupListType->MagneticVectorSetup.array [v2gMagneticVectorSetupListType_MagneticVectorSetup_currArrayIndex++]);
- }
- grammarID = 84;
- } else if (1==1) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- done = 1;
- }
- grammarID = 3;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 84:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MagneticVectorSetup), END_ELEMENT] */
- if (v2gMagneticVectorSetupListType_MagneticVectorSetup_currArrayIndex < v2gMagneticVectorSetupListType->MagneticVectorSetup.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- errn = encode_v2gMagneticVectorSetupType(stream, &v2gMagneticVectorSetupListType->MagneticVectorSetup.array [v2gMagneticVectorSetupListType_MagneticVectorSetup_currArrayIndex++]);
- }
- grammarID = 85;
- } else if (1==1) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- done = 1;
- }
- grammarID = 3;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 85:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MagneticVectorSetup), END_ELEMENT] */
- if (v2gMagneticVectorSetupListType_MagneticVectorSetup_currArrayIndex < v2gMagneticVectorSetupListType->MagneticVectorSetup.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- errn = encode_v2gMagneticVectorSetupType(stream, &v2gMagneticVectorSetupListType->MagneticVectorSetup.array [v2gMagneticVectorSetupListType_MagneticVectorSetup_currArrayIndex++]);
- }
- grammarID = 86;
- } else if (1==1) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- done = 1;
- }
- grammarID = 3;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 86:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MagneticVectorSetup), END_ELEMENT] */
- if (v2gMagneticVectorSetupListType_MagneticVectorSetup_currArrayIndex < v2gMagneticVectorSetupListType->MagneticVectorSetup.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- errn = encode_v2gMagneticVectorSetupType(stream, &v2gMagneticVectorSetupListType->MagneticVectorSetup.array [v2gMagneticVectorSetupListType_MagneticVectorSetup_currArrayIndex++]);
- }
- grammarID = 87;
- } else if (1==1) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- done = 1;
- }
- grammarID = 3;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 87:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MagneticVectorSetup), END_ELEMENT] */
- if (v2gMagneticVectorSetupListType_MagneticVectorSetup_currArrayIndex < v2gMagneticVectorSetupListType->MagneticVectorSetup.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- errn = encode_v2gMagneticVectorSetupType(stream, &v2gMagneticVectorSetupListType->MagneticVectorSetup.array [v2gMagneticVectorSetupListType_MagneticVectorSetup_currArrayIndex++]);
- }
- grammarID = 88;
- } else if (1==1) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- done = 1;
- }
- grammarID = 3;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 88:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MagneticVectorSetup), END_ELEMENT] */
- if (v2gMagneticVectorSetupListType_MagneticVectorSetup_currArrayIndex < v2gMagneticVectorSetupListType->MagneticVectorSetup.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- errn = encode_v2gMagneticVectorSetupType(stream, &v2gMagneticVectorSetupListType->MagneticVectorSetup.array [v2gMagneticVectorSetupListType_MagneticVectorSetup_currArrayIndex++]);
- }
- grammarID = 89;
- } else if (1==1) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- done = 1;
- }
- grammarID = 3;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 89:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MagneticVectorSetup), END_ELEMENT] */
- if (v2gMagneticVectorSetupListType_MagneticVectorSetup_currArrayIndex < v2gMagneticVectorSetupListType->MagneticVectorSetup.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- errn = encode_v2gMagneticVectorSetupType(stream, &v2gMagneticVectorSetupListType->MagneticVectorSetup.array [v2gMagneticVectorSetupListType_MagneticVectorSetup_currArrayIndex++]);
- }
- grammarID = 90;
- } else if (1==1) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- done = 1;
- }
- grammarID = 3;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 90:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MagneticVectorSetup), END_ELEMENT] */
- if (v2gMagneticVectorSetupListType_MagneticVectorSetup_currArrayIndex < v2gMagneticVectorSetupListType->MagneticVectorSetup.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- errn = encode_v2gMagneticVectorSetupType(stream, &v2gMagneticVectorSetupListType->MagneticVectorSetup.array [v2gMagneticVectorSetupListType_MagneticVectorSetup_currArrayIndex++]);
- }
- grammarID = 91;
- } else if (1==1) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- done = 1;
- }
- grammarID = 3;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 91:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MagneticVectorSetup), END_ELEMENT] */
- if (v2gMagneticVectorSetupListType_MagneticVectorSetup_currArrayIndex < v2gMagneticVectorSetupListType->MagneticVectorSetup.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- errn = encode_v2gMagneticVectorSetupType(stream, &v2gMagneticVectorSetupListType->MagneticVectorSetup.array [v2gMagneticVectorSetupListType_MagneticVectorSetup_currArrayIndex++]);
- }
- grammarID = 92;
- } else if (1==1) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- done = 1;
- }
- grammarID = 3;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 92:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MagneticVectorSetup), END_ELEMENT] */
- if (v2gMagneticVectorSetupListType_MagneticVectorSetup_currArrayIndex < v2gMagneticVectorSetupListType->MagneticVectorSetup.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- errn = encode_v2gMagneticVectorSetupType(stream, &v2gMagneticVectorSetupListType->MagneticVectorSetup.array [v2gMagneticVectorSetupListType_MagneticVectorSetup_currArrayIndex++]);
- }
- grammarID = 93;
- } else if (1==1) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- done = 1;
- }
- grammarID = 3;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 93:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MagneticVectorSetup), END_ELEMENT] */
- if (v2gMagneticVectorSetupListType_MagneticVectorSetup_currArrayIndex < v2gMagneticVectorSetupListType->MagneticVectorSetup.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- errn = encode_v2gMagneticVectorSetupType(stream, &v2gMagneticVectorSetupListType->MagneticVectorSetup.array [v2gMagneticVectorSetupListType_MagneticVectorSetup_currArrayIndex++]);
- }
- grammarID = 94;
- } else if (1==1) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- done = 1;
- }
- grammarID = 3;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 94:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MagneticVectorSetup), END_ELEMENT] */
- if (v2gMagneticVectorSetupListType_MagneticVectorSetup_currArrayIndex < v2gMagneticVectorSetupListType->MagneticVectorSetup.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- errn = encode_v2gMagneticVectorSetupType(stream, &v2gMagneticVectorSetupListType->MagneticVectorSetup.array [v2gMagneticVectorSetupListType_MagneticVectorSetup_currArrayIndex++]);
- }
- grammarID = 95;
- } else if (1==1) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- done = 1;
- }
- grammarID = 3;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 95:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MagneticVectorSetup), END_ELEMENT] */
- if (v2gMagneticVectorSetupListType_MagneticVectorSetup_currArrayIndex < v2gMagneticVectorSetupListType->MagneticVectorSetup.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- errn = encode_v2gMagneticVectorSetupType(stream, &v2gMagneticVectorSetupListType->MagneticVectorSetup.array [v2gMagneticVectorSetupListType_MagneticVectorSetup_currArrayIndex++]);
- }
- grammarID = 96;
- } else if (1==1) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- done = 1;
- }
- grammarID = 3;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 96:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MagneticVectorSetup), END_ELEMENT] */
- if (v2gMagneticVectorSetupListType_MagneticVectorSetup_currArrayIndex < v2gMagneticVectorSetupListType->MagneticVectorSetup.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- errn = encode_v2gMagneticVectorSetupType(stream, &v2gMagneticVectorSetupListType->MagneticVectorSetup.array [v2gMagneticVectorSetupListType_MagneticVectorSetup_currArrayIndex++]);
- }
- grammarID = 97;
- } else if (1==1) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- done = 1;
- }
- grammarID = 3;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 97:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MagneticVectorSetup), END_ELEMENT] */
- if (v2gMagneticVectorSetupListType_MagneticVectorSetup_currArrayIndex < v2gMagneticVectorSetupListType->MagneticVectorSetup.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- errn = encode_v2gMagneticVectorSetupType(stream, &v2gMagneticVectorSetupListType->MagneticVectorSetup.array [v2gMagneticVectorSetupListType_MagneticVectorSetup_currArrayIndex++]);
- }
- grammarID = 98;
- } else if (1==1) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- done = 1;
- }
- grammarID = 3;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 98:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MagneticVectorSetup), END_ELEMENT] */
- if (v2gMagneticVectorSetupListType_MagneticVectorSetup_currArrayIndex < v2gMagneticVectorSetupListType->MagneticVectorSetup.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- errn = encode_v2gMagneticVectorSetupType(stream, &v2gMagneticVectorSetupListType->MagneticVectorSetup.array [v2gMagneticVectorSetupListType_MagneticVectorSetup_currArrayIndex++]);
- }
- grammarID = 99;
- } else if (1==1) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- done = 1;
- }
- grammarID = 3;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 99:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MagneticVectorSetup), END_ELEMENT] */
- if (v2gMagneticVectorSetupListType_MagneticVectorSetup_currArrayIndex < v2gMagneticVectorSetupListType->MagneticVectorSetup.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- errn = encode_v2gMagneticVectorSetupType(stream, &v2gMagneticVectorSetupListType->MagneticVectorSetup.array [v2gMagneticVectorSetupListType_MagneticVectorSetup_currArrayIndex++]);
- }
- grammarID = 100;
- } else if (1==1) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- done = 1;
- }
- grammarID = 3;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 100:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MagneticVectorSetup), END_ELEMENT] */
- if (v2gMagneticVectorSetupListType_MagneticVectorSetup_currArrayIndex < v2gMagneticVectorSetupListType->MagneticVectorSetup.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- errn = encode_v2gMagneticVectorSetupType(stream, &v2gMagneticVectorSetupListType->MagneticVectorSetup.array [v2gMagneticVectorSetupListType_MagneticVectorSetup_currArrayIndex++]);
- }
- grammarID = 101;
- } else if (1==1) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- done = 1;
- }
- grammarID = 3;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 101:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MagneticVectorSetup), END_ELEMENT] */
- if (v2gMagneticVectorSetupListType_MagneticVectorSetup_currArrayIndex < v2gMagneticVectorSetupListType->MagneticVectorSetup.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- errn = encode_v2gMagneticVectorSetupType(stream, &v2gMagneticVectorSetupListType->MagneticVectorSetup.array [v2gMagneticVectorSetupListType_MagneticVectorSetup_currArrayIndex++]);
- }
- grammarID = 102;
- } else if (1==1) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- done = 1;
- }
- grammarID = 3;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 102:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MagneticVectorSetup), END_ELEMENT] */
- if (v2gMagneticVectorSetupListType_MagneticVectorSetup_currArrayIndex < v2gMagneticVectorSetupListType->MagneticVectorSetup.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- errn = encode_v2gMagneticVectorSetupType(stream, &v2gMagneticVectorSetupListType->MagneticVectorSetup.array [v2gMagneticVectorSetupListType_MagneticVectorSetup_currArrayIndex++]);
- }
- grammarID = 103;
- } else if (1==1) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- done = 1;
- }
- grammarID = 3;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 103:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MagneticVectorSetup), END_ELEMENT] */
- if (v2gMagneticVectorSetupListType_MagneticVectorSetup_currArrayIndex < v2gMagneticVectorSetupListType->MagneticVectorSetup.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- errn = encode_v2gMagneticVectorSetupType(stream, &v2gMagneticVectorSetupListType->MagneticVectorSetup.array [v2gMagneticVectorSetupListType_MagneticVectorSetup_currArrayIndex++]);
- }
- grammarID = 104;
- } else if (1==1) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- done = 1;
- }
- grammarID = 3;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 104:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MagneticVectorSetup), END_ELEMENT] */
- if (v2gMagneticVectorSetupListType_MagneticVectorSetup_currArrayIndex < v2gMagneticVectorSetupListType->MagneticVectorSetup.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- errn = encode_v2gMagneticVectorSetupType(stream, &v2gMagneticVectorSetupListType->MagneticVectorSetup.array [v2gMagneticVectorSetupListType_MagneticVectorSetup_currArrayIndex++]);
- }
- grammarID = 105;
- } else if (1==1) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- done = 1;
- }
- grammarID = 3;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 105:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MagneticVectorSetup), END_ELEMENT] */
- if (v2gMagneticVectorSetupListType_MagneticVectorSetup_currArrayIndex < v2gMagneticVectorSetupListType->MagneticVectorSetup.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- errn = encode_v2gMagneticVectorSetupType(stream, &v2gMagneticVectorSetupListType->MagneticVectorSetup.array [v2gMagneticVectorSetupListType_MagneticVectorSetup_currArrayIndex++]);
- }
- grammarID = 106;
- } else if (1==1) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- done = 1;
- }
- grammarID = 3;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 106:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MagneticVectorSetup), END_ELEMENT] */
- if (v2gMagneticVectorSetupListType_MagneticVectorSetup_currArrayIndex < v2gMagneticVectorSetupListType->MagneticVectorSetup.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- errn = encode_v2gMagneticVectorSetupType(stream, &v2gMagneticVectorSetupListType->MagneticVectorSetup.array [v2gMagneticVectorSetupListType_MagneticVectorSetup_currArrayIndex++]);
- }
- grammarID = 107;
- } else if (1==1) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- done = 1;
- }
- grammarID = 3;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 107:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MagneticVectorSetup), END_ELEMENT] */
- if (v2gMagneticVectorSetupListType_MagneticVectorSetup_currArrayIndex < v2gMagneticVectorSetupListType->MagneticVectorSetup.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- errn = encode_v2gMagneticVectorSetupType(stream, &v2gMagneticVectorSetupListType->MagneticVectorSetup.array [v2gMagneticVectorSetupListType_MagneticVectorSetup_currArrayIndex++]);
- }
- grammarID = 108;
- } else if (1==1) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- done = 1;
- }
- grammarID = 3;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 108:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MagneticVectorSetup), END_ELEMENT] */
- if (v2gMagneticVectorSetupListType_MagneticVectorSetup_currArrayIndex < v2gMagneticVectorSetupListType->MagneticVectorSetup.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- errn = encode_v2gMagneticVectorSetupType(stream, &v2gMagneticVectorSetupListType->MagneticVectorSetup.array [v2gMagneticVectorSetupListType_MagneticVectorSetup_currArrayIndex++]);
- }
- grammarID = 109;
- } else if (1==1) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- done = 1;
- }
- grammarID = 3;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 109:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MagneticVectorSetup), END_ELEMENT] */
- if (v2gMagneticVectorSetupListType_MagneticVectorSetup_currArrayIndex < v2gMagneticVectorSetupListType->MagneticVectorSetup.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- errn = encode_v2gMagneticVectorSetupType(stream, &v2gMagneticVectorSetupListType->MagneticVectorSetup.array [v2gMagneticVectorSetupListType_MagneticVectorSetup_currArrayIndex++]);
- }
- grammarID = 110;
- } else if (1==1) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- done = 1;
- }
- grammarID = 3;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 110:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MagneticVectorSetup), END_ELEMENT] */
- if (v2gMagneticVectorSetupListType_MagneticVectorSetup_currArrayIndex < v2gMagneticVectorSetupListType->MagneticVectorSetup.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- errn = encode_v2gMagneticVectorSetupType(stream, &v2gMagneticVectorSetupListType->MagneticVectorSetup.array [v2gMagneticVectorSetupListType_MagneticVectorSetup_currArrayIndex++]);
- }
- grammarID = 111;
- } else if (1==1) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- done = 1;
- }
- grammarID = 3;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 111:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MagneticVectorSetup), END_ELEMENT] */
- if (v2gMagneticVectorSetupListType_MagneticVectorSetup_currArrayIndex < v2gMagneticVectorSetupListType->MagneticVectorSetup.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- errn = encode_v2gMagneticVectorSetupType(stream, &v2gMagneticVectorSetupListType->MagneticVectorSetup.array [v2gMagneticVectorSetupListType_MagneticVectorSetup_currArrayIndex++]);
- }
- grammarID = 112;
- } else if (1==1) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- done = 1;
- }
- grammarID = 3;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 112:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MagneticVectorSetup), END_ELEMENT] */
- if (v2gMagneticVectorSetupListType_MagneticVectorSetup_currArrayIndex < v2gMagneticVectorSetupListType->MagneticVectorSetup.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- errn = encode_v2gMagneticVectorSetupType(stream, &v2gMagneticVectorSetupListType->MagneticVectorSetup.array [v2gMagneticVectorSetupListType_MagneticVectorSetup_currArrayIndex++]);
- }
- grammarID = 113;
- } else if (1==1) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- done = 1;
- }
- grammarID = 3;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 113:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MagneticVectorSetup), END_ELEMENT] */
- if (v2gMagneticVectorSetupListType_MagneticVectorSetup_currArrayIndex < v2gMagneticVectorSetupListType->MagneticVectorSetup.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- errn = encode_v2gMagneticVectorSetupType(stream, &v2gMagneticVectorSetupListType->MagneticVectorSetup.array [v2gMagneticVectorSetupListType_MagneticVectorSetup_currArrayIndex++]);
- }
- grammarID = 114;
- } else if (1==1) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- done = 1;
- }
- grammarID = 3;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 114:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MagneticVectorSetup), END_ELEMENT] */
- if (v2gMagneticVectorSetupListType_MagneticVectorSetup_currArrayIndex < v2gMagneticVectorSetupListType->MagneticVectorSetup.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- errn = encode_v2gMagneticVectorSetupType(stream, &v2gMagneticVectorSetupListType->MagneticVectorSetup.array [v2gMagneticVectorSetupListType_MagneticVectorSetup_currArrayIndex++]);
- }
- grammarID = 115;
- } else if (1==1) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- done = 1;
- }
- grammarID = 3;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 115:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MagneticVectorSetup), END_ELEMENT] */
- if (v2gMagneticVectorSetupListType_MagneticVectorSetup_currArrayIndex < v2gMagneticVectorSetupListType->MagneticVectorSetup.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- errn = encode_v2gMagneticVectorSetupType(stream, &v2gMagneticVectorSetupListType->MagneticVectorSetup.array [v2gMagneticVectorSetupListType_MagneticVectorSetup_currArrayIndex++]);
- }
- grammarID = 116;
- } else if (1==1) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- done = 1;
- }
- grammarID = 3;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 116:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MagneticVectorSetup), END_ELEMENT] */
- if (v2gMagneticVectorSetupListType_MagneticVectorSetup_currArrayIndex < v2gMagneticVectorSetupListType->MagneticVectorSetup.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- errn = encode_v2gMagneticVectorSetupType(stream, &v2gMagneticVectorSetupListType->MagneticVectorSetup.array [v2gMagneticVectorSetupListType_MagneticVectorSetup_currArrayIndex++]);
- }
- grammarID = 117;
- } else if (1==1) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- done = 1;
- }
- grammarID = 3;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 117:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MagneticVectorSetup), END_ELEMENT] */
- if (v2gMagneticVectorSetupListType_MagneticVectorSetup_currArrayIndex < v2gMagneticVectorSetupListType->MagneticVectorSetup.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- errn = encode_v2gMagneticVectorSetupType(stream, &v2gMagneticVectorSetupListType->MagneticVectorSetup.array [v2gMagneticVectorSetupListType_MagneticVectorSetup_currArrayIndex++]);
- }
- grammarID = 118;
- } else if (1==1) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- done = 1;
- }
- grammarID = 3;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 118:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MagneticVectorSetup), END_ELEMENT] */
- if (v2gMagneticVectorSetupListType_MagneticVectorSetup_currArrayIndex < v2gMagneticVectorSetupListType->MagneticVectorSetup.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- errn = encode_v2gMagneticVectorSetupType(stream, &v2gMagneticVectorSetupListType->MagneticVectorSetup.array [v2gMagneticVectorSetupListType_MagneticVectorSetup_currArrayIndex++]);
- }
- grammarID = 119;
- } else if (1==1) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- done = 1;
- }
- grammarID = 3;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 119:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MagneticVectorSetup), END_ELEMENT] */
- if (v2gMagneticVectorSetupListType_MagneticVectorSetup_currArrayIndex < v2gMagneticVectorSetupListType->MagneticVectorSetup.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- errn = encode_v2gMagneticVectorSetupType(stream, &v2gMagneticVectorSetupListType->MagneticVectorSetup.array [v2gMagneticVectorSetupListType_MagneticVectorSetup_currArrayIndex++]);
- }
- grammarID = 120;
- } else if (1==1) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- done = 1;
- }
- grammarID = 3;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 120:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MagneticVectorSetup), END_ELEMENT] */
- if (v2gMagneticVectorSetupListType_MagneticVectorSetup_currArrayIndex < v2gMagneticVectorSetupListType->MagneticVectorSetup.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- errn = encode_v2gMagneticVectorSetupType(stream, &v2gMagneticVectorSetupListType->MagneticVectorSetup.array [v2gMagneticVectorSetupListType_MagneticVectorSetup_currArrayIndex++]);
- }
- grammarID = 121;
- } else if (1==1) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- done = 1;
- }
- grammarID = 3;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 121:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MagneticVectorSetup), END_ELEMENT] */
- if (v2gMagneticVectorSetupListType_MagneticVectorSetup_currArrayIndex < v2gMagneticVectorSetupListType->MagneticVectorSetup.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- errn = encode_v2gMagneticVectorSetupType(stream, &v2gMagneticVectorSetupListType->MagneticVectorSetup.array [v2gMagneticVectorSetupListType_MagneticVectorSetup_currArrayIndex++]);
- }
- grammarID = 122;
- } else if (1==1) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- done = 1;
- }
- grammarID = 3;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 122:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MagneticVectorSetup), END_ELEMENT] */
- if (v2gMagneticVectorSetupListType_MagneticVectorSetup_currArrayIndex < v2gMagneticVectorSetupListType->MagneticVectorSetup.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- errn = encode_v2gMagneticVectorSetupType(stream, &v2gMagneticVectorSetupListType->MagneticVectorSetup.array [v2gMagneticVectorSetupListType_MagneticVectorSetup_currArrayIndex++]);
- }
- grammarID = 123;
- } else if (1==1) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- done = 1;
- }
- grammarID = 3;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 123:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MagneticVectorSetup), END_ELEMENT] */
- if (v2gMagneticVectorSetupListType_MagneticVectorSetup_currArrayIndex < v2gMagneticVectorSetupListType->MagneticVectorSetup.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- errn = encode_v2gMagneticVectorSetupType(stream, &v2gMagneticVectorSetupListType->MagneticVectorSetup.array [v2gMagneticVectorSetupListType_MagneticVectorSetup_currArrayIndex++]);
- }
- grammarID = 124;
- } else if (1==1) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- done = 1;
- }
- grammarID = 3;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 124:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MagneticVectorSetup), END_ELEMENT] */
- if (v2gMagneticVectorSetupListType_MagneticVectorSetup_currArrayIndex < v2gMagneticVectorSetupListType->MagneticVectorSetup.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- errn = encode_v2gMagneticVectorSetupType(stream, &v2gMagneticVectorSetupListType->MagneticVectorSetup.array [v2gMagneticVectorSetupListType_MagneticVectorSetup_currArrayIndex++]);
- }
- grammarID = 125;
- } else if (1==1) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- done = 1;
- }
- grammarID = 3;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 125:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MagneticVectorSetup), END_ELEMENT] */
- if (v2gMagneticVectorSetupListType_MagneticVectorSetup_currArrayIndex < v2gMagneticVectorSetupListType->MagneticVectorSetup.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- errn = encode_v2gMagneticVectorSetupType(stream, &v2gMagneticVectorSetupListType->MagneticVectorSetup.array [v2gMagneticVectorSetupListType_MagneticVectorSetup_currArrayIndex++]);
- }
- grammarID = 126;
- } else if (1==1) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- done = 1;
- }
- grammarID = 3;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 126:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MagneticVectorSetup), END_ELEMENT] */
- if (v2gMagneticVectorSetupListType_MagneticVectorSetup_currArrayIndex < v2gMagneticVectorSetupListType->MagneticVectorSetup.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- errn = encode_v2gMagneticVectorSetupType(stream, &v2gMagneticVectorSetupListType->MagneticVectorSetup.array [v2gMagneticVectorSetupListType_MagneticVectorSetup_currArrayIndex++]);
- }
- grammarID = 127;
- } else if (1==1) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- done = 1;
- }
- grammarID = 3;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 127:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MagneticVectorSetup), END_ELEMENT] */
- if (v2gMagneticVectorSetupListType_MagneticVectorSetup_currArrayIndex < v2gMagneticVectorSetupListType->MagneticVectorSetup.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- errn = encode_v2gMagneticVectorSetupType(stream, &v2gMagneticVectorSetupListType->MagneticVectorSetup.array [v2gMagneticVectorSetupListType_MagneticVectorSetup_currArrayIndex++]);
- }
- grammarID = 128;
- } else if (1==1) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- done = 1;
- }
- grammarID = 3;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 128:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MagneticVectorSetup), END_ELEMENT] */
- if (v2gMagneticVectorSetupListType_MagneticVectorSetup_currArrayIndex < v2gMagneticVectorSetupListType->MagneticVectorSetup.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- errn = encode_v2gMagneticVectorSetupType(stream, &v2gMagneticVectorSetupListType->MagneticVectorSetup.array [v2gMagneticVectorSetupListType_MagneticVectorSetup_currArrayIndex++]);
- }
- grammarID = 129;
- } else if (1==1) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- done = 1;
- }
- grammarID = 3;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 129:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MagneticVectorSetup), END_ELEMENT] */
- if (v2gMagneticVectorSetupListType_MagneticVectorSetup_currArrayIndex < v2gMagneticVectorSetupListType->MagneticVectorSetup.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- errn = encode_v2gMagneticVectorSetupType(stream, &v2gMagneticVectorSetupListType->MagneticVectorSetup.array [v2gMagneticVectorSetupListType_MagneticVectorSetup_currArrayIndex++]);
- }
- grammarID = 130;
- } else if (1==1) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- done = 1;
- }
- grammarID = 3;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 130:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MagneticVectorSetup), END_ELEMENT] */
- if (v2gMagneticVectorSetupListType_MagneticVectorSetup_currArrayIndex < v2gMagneticVectorSetupListType->MagneticVectorSetup.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- errn = encode_v2gMagneticVectorSetupType(stream, &v2gMagneticVectorSetupListType->MagneticVectorSetup.array [v2gMagneticVectorSetupListType_MagneticVectorSetup_currArrayIndex++]);
- }
- grammarID = 131;
- } else if (1==1) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- done = 1;
- }
- grammarID = 3;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 131:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MagneticVectorSetup), END_ELEMENT] */
- if (v2gMagneticVectorSetupListType_MagneticVectorSetup_currArrayIndex < v2gMagneticVectorSetupListType->MagneticVectorSetup.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- errn = encode_v2gMagneticVectorSetupType(stream, &v2gMagneticVectorSetupListType->MagneticVectorSetup.array [v2gMagneticVectorSetupListType_MagneticVectorSetup_currArrayIndex++]);
- }
- grammarID = 132;
- } else if (1==1) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- done = 1;
- }
- grammarID = 3;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 132:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MagneticVectorSetup), END_ELEMENT] */
- if (v2gMagneticVectorSetupListType_MagneticVectorSetup_currArrayIndex < v2gMagneticVectorSetupListType->MagneticVectorSetup.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- errn = encode_v2gMagneticVectorSetupType(stream, &v2gMagneticVectorSetupListType->MagneticVectorSetup.array [v2gMagneticVectorSetupListType_MagneticVectorSetup_currArrayIndex++]);
- }
- grammarID = 133;
- } else if (1==1) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- done = 1;
- }
- grammarID = 3;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 133:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MagneticVectorSetup), END_ELEMENT] */
- if (v2gMagneticVectorSetupListType_MagneticVectorSetup_currArrayIndex < v2gMagneticVectorSetupListType->MagneticVectorSetup.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- errn = encode_v2gMagneticVectorSetupType(stream, &v2gMagneticVectorSetupListType->MagneticVectorSetup.array [v2gMagneticVectorSetupListType_MagneticVectorSetup_currArrayIndex++]);
- }
- grammarID = 134;
- } else if (1==1) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- done = 1;
- }
- grammarID = 3;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 134:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MagneticVectorSetup), END_ELEMENT] */
- if (v2gMagneticVectorSetupListType_MagneticVectorSetup_currArrayIndex < v2gMagneticVectorSetupListType->MagneticVectorSetup.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- errn = encode_v2gMagneticVectorSetupType(stream, &v2gMagneticVectorSetupListType->MagneticVectorSetup.array [v2gMagneticVectorSetupListType_MagneticVectorSetup_currArrayIndex++]);
- }
- grammarID = 135;
- } else if (1==1) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- done = 1;
- }
- grammarID = 3;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 135:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MagneticVectorSetup), END_ELEMENT] */
- if (v2gMagneticVectorSetupListType_MagneticVectorSetup_currArrayIndex < v2gMagneticVectorSetupListType->MagneticVectorSetup.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- errn = encode_v2gMagneticVectorSetupType(stream, &v2gMagneticVectorSetupListType->MagneticVectorSetup.array [v2gMagneticVectorSetupListType_MagneticVectorSetup_currArrayIndex++]);
- }
- grammarID = 136;
- } else if (1==1) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- done = 1;
- }
- grammarID = 3;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 136:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MagneticVectorSetup), END_ELEMENT] */
- if (v2gMagneticVectorSetupListType_MagneticVectorSetup_currArrayIndex < v2gMagneticVectorSetupListType->MagneticVectorSetup.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- errn = encode_v2gMagneticVectorSetupType(stream, &v2gMagneticVectorSetupListType->MagneticVectorSetup.array [v2gMagneticVectorSetupListType_MagneticVectorSetup_currArrayIndex++]);
- }
- grammarID = 137;
- } else if (1==1) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- done = 1;
- }
- grammarID = 3;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 137:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MagneticVectorSetup), END_ELEMENT] */
- if (v2gMagneticVectorSetupListType_MagneticVectorSetup_currArrayIndex < v2gMagneticVectorSetupListType->MagneticVectorSetup.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- errn = encode_v2gMagneticVectorSetupType(stream, &v2gMagneticVectorSetupListType->MagneticVectorSetup.array [v2gMagneticVectorSetupListType_MagneticVectorSetup_currArrayIndex++]);
- }
- grammarID = 138;
- } else if (1==1) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- done = 1;
- }
- grammarID = 3;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 138:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MagneticVectorSetup), END_ELEMENT] */
- if (v2gMagneticVectorSetupListType_MagneticVectorSetup_currArrayIndex < v2gMagneticVectorSetupListType->MagneticVectorSetup.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- errn = encode_v2gMagneticVectorSetupType(stream, &v2gMagneticVectorSetupListType->MagneticVectorSetup.array [v2gMagneticVectorSetupListType_MagneticVectorSetup_currArrayIndex++]);
- }
- grammarID = 139;
- } else if (1==1) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- done = 1;
- }
- grammarID = 3;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 139:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MagneticVectorSetup), END_ELEMENT] */
- if (v2gMagneticVectorSetupListType_MagneticVectorSetup_currArrayIndex < v2gMagneticVectorSetupListType->MagneticVectorSetup.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- errn = encode_v2gMagneticVectorSetupType(stream, &v2gMagneticVectorSetupListType->MagneticVectorSetup.array [v2gMagneticVectorSetupListType_MagneticVectorSetup_currArrayIndex++]);
- }
- grammarID = 140;
- } else if (1==1) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- done = 1;
- }
- grammarID = 3;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 140:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MagneticVectorSetup), END_ELEMENT] */
- if (v2gMagneticVectorSetupListType_MagneticVectorSetup_currArrayIndex < v2gMagneticVectorSetupListType->MagneticVectorSetup.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- errn = encode_v2gMagneticVectorSetupType(stream, &v2gMagneticVectorSetupListType->MagneticVectorSetup.array [v2gMagneticVectorSetupListType_MagneticVectorSetup_currArrayIndex++]);
- }
- grammarID = 141;
- } else if (1==1) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- done = 1;
- }
- grammarID = 3;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 141:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MagneticVectorSetup), END_ELEMENT] */
- if (v2gMagneticVectorSetupListType_MagneticVectorSetup_currArrayIndex < v2gMagneticVectorSetupListType->MagneticVectorSetup.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- errn = encode_v2gMagneticVectorSetupType(stream, &v2gMagneticVectorSetupListType->MagneticVectorSetup.array [v2gMagneticVectorSetupListType_MagneticVectorSetup_currArrayIndex++]);
- }
- grammarID = 142;
- } else if (1==1) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- done = 1;
- }
- grammarID = 3;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 142:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MagneticVectorSetup), END_ELEMENT] */
- if (v2gMagneticVectorSetupListType_MagneticVectorSetup_currArrayIndex < v2gMagneticVectorSetupListType->MagneticVectorSetup.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- errn = encode_v2gMagneticVectorSetupType(stream, &v2gMagneticVectorSetupListType->MagneticVectorSetup.array [v2gMagneticVectorSetupListType_MagneticVectorSetup_currArrayIndex++]);
- }
- grammarID = 143;
- } else if (1==1) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- done = 1;
- }
- grammarID = 3;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 143:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MagneticVectorSetup), END_ELEMENT] */
- if (v2gMagneticVectorSetupListType_MagneticVectorSetup_currArrayIndex < v2gMagneticVectorSetupListType->MagneticVectorSetup.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- errn = encode_v2gMagneticVectorSetupType(stream, &v2gMagneticVectorSetupListType->MagneticVectorSetup.array [v2gMagneticVectorSetupListType_MagneticVectorSetup_currArrayIndex++]);
- }
- grammarID = 144;
- } else if (1==1) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- done = 1;
- }
- grammarID = 3;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 144:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MagneticVectorSetup), END_ELEMENT] */
- if (v2gMagneticVectorSetupListType_MagneticVectorSetup_currArrayIndex < v2gMagneticVectorSetupListType->MagneticVectorSetup.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- errn = encode_v2gMagneticVectorSetupType(stream, &v2gMagneticVectorSetupListType->MagneticVectorSetup.array [v2gMagneticVectorSetupListType_MagneticVectorSetup_currArrayIndex++]);
- }
- grammarID = 145;
- } else if (1==1) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- done = 1;
- }
- grammarID = 3;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 145:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MagneticVectorSetup), END_ELEMENT] */
- if (v2gMagneticVectorSetupListType_MagneticVectorSetup_currArrayIndex < v2gMagneticVectorSetupListType->MagneticVectorSetup.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- errn = encode_v2gMagneticVectorSetupType(stream, &v2gMagneticVectorSetupListType->MagneticVectorSetup.array [v2gMagneticVectorSetupListType_MagneticVectorSetup_currArrayIndex++]);
- }
- grammarID = 146;
- } else if (1==1) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- done = 1;
- }
- grammarID = 3;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 146:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MagneticVectorSetup), END_ELEMENT] */
- if (v2gMagneticVectorSetupListType_MagneticVectorSetup_currArrayIndex < v2gMagneticVectorSetupListType->MagneticVectorSetup.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- errn = encode_v2gMagneticVectorSetupType(stream, &v2gMagneticVectorSetupListType->MagneticVectorSetup.array [v2gMagneticVectorSetupListType_MagneticVectorSetup_currArrayIndex++]);
- }
- grammarID = 147;
- } else if (1==1) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- done = 1;
- }
- grammarID = 3;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 147:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MagneticVectorSetup), END_ELEMENT] */
- if (v2gMagneticVectorSetupListType_MagneticVectorSetup_currArrayIndex < v2gMagneticVectorSetupListType->MagneticVectorSetup.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- errn = encode_v2gMagneticVectorSetupType(stream, &v2gMagneticVectorSetupListType->MagneticVectorSetup.array [v2gMagneticVectorSetupListType_MagneticVectorSetup_currArrayIndex++]);
- }
- grammarID = 148;
- } else if (1==1) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- done = 1;
- }
- grammarID = 3;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 148:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MagneticVectorSetup), END_ELEMENT] */
- if (v2gMagneticVectorSetupListType_MagneticVectorSetup_currArrayIndex < v2gMagneticVectorSetupListType->MagneticVectorSetup.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- errn = encode_v2gMagneticVectorSetupType(stream, &v2gMagneticVectorSetupListType->MagneticVectorSetup.array [v2gMagneticVectorSetupListType_MagneticVectorSetup_currArrayIndex++]);
- }
- grammarID = 149;
- } else if (1==1) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- done = 1;
- }
- grammarID = 3;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 149:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MagneticVectorSetup), END_ELEMENT] */
- if (v2gMagneticVectorSetupListType_MagneticVectorSetup_currArrayIndex < v2gMagneticVectorSetupListType->MagneticVectorSetup.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- errn = encode_v2gMagneticVectorSetupType(stream, &v2gMagneticVectorSetupListType->MagneticVectorSetup.array [v2gMagneticVectorSetupListType_MagneticVectorSetup_currArrayIndex++]);
- }
- grammarID = 150;
- } else if (1==1) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- done = 1;
- }
- grammarID = 3;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 150:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MagneticVectorSetup), END_ELEMENT] */
- if (v2gMagneticVectorSetupListType_MagneticVectorSetup_currArrayIndex < v2gMagneticVectorSetupListType->MagneticVectorSetup.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- errn = encode_v2gMagneticVectorSetupType(stream, &v2gMagneticVectorSetupListType->MagneticVectorSetup.array [v2gMagneticVectorSetupListType_MagneticVectorSetup_currArrayIndex++]);
- }
- grammarID = 151;
- } else if (1==1) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- done = 1;
- }
- grammarID = 3;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 151:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MagneticVectorSetup), END_ELEMENT] */
- if (v2gMagneticVectorSetupListType_MagneticVectorSetup_currArrayIndex < v2gMagneticVectorSetupListType->MagneticVectorSetup.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- errn = encode_v2gMagneticVectorSetupType(stream, &v2gMagneticVectorSetupListType->MagneticVectorSetup.array [v2gMagneticVectorSetupListType_MagneticVectorSetup_currArrayIndex++]);
- }
- grammarID = 152;
- } else if (1==1) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- done = 1;
- }
- grammarID = 3;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 152:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MagneticVectorSetup), END_ELEMENT] */
- if (v2gMagneticVectorSetupListType_MagneticVectorSetup_currArrayIndex < v2gMagneticVectorSetupListType->MagneticVectorSetup.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- errn = encode_v2gMagneticVectorSetupType(stream, &v2gMagneticVectorSetupListType->MagneticVectorSetup.array [v2gMagneticVectorSetupListType_MagneticVectorSetup_currArrayIndex++]);
- }
- grammarID = 153;
- } else if (1==1) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- done = 1;
- }
- grammarID = 3;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 153:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MagneticVectorSetup), END_ELEMENT] */
- if (v2gMagneticVectorSetupListType_MagneticVectorSetup_currArrayIndex < v2gMagneticVectorSetupListType->MagneticVectorSetup.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- errn = encode_v2gMagneticVectorSetupType(stream, &v2gMagneticVectorSetupListType->MagneticVectorSetup.array [v2gMagneticVectorSetupListType_MagneticVectorSetup_currArrayIndex++]);
- }
- grammarID = 154;
- } else if (1==1) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- done = 1;
- }
- grammarID = 3;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 154:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MagneticVectorSetup), END_ELEMENT] */
- if (v2gMagneticVectorSetupListType_MagneticVectorSetup_currArrayIndex < v2gMagneticVectorSetupListType->MagneticVectorSetup.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- errn = encode_v2gMagneticVectorSetupType(stream, &v2gMagneticVectorSetupListType->MagneticVectorSetup.array [v2gMagneticVectorSetupListType_MagneticVectorSetup_currArrayIndex++]);
- }
- grammarID = 155;
- } else if (1==1) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- done = 1;
- }
- grammarID = 3;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 155:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MagneticVectorSetup), END_ELEMENT] */
- if (v2gMagneticVectorSetupListType_MagneticVectorSetup_currArrayIndex < v2gMagneticVectorSetupListType->MagneticVectorSetup.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- errn = encode_v2gMagneticVectorSetupType(stream, &v2gMagneticVectorSetupListType->MagneticVectorSetup.array [v2gMagneticVectorSetupListType_MagneticVectorSetup_currArrayIndex++]);
- }
- grammarID = 156;
- } else if (1==1) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- done = 1;
- }
- grammarID = 3;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 156:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MagneticVectorSetup), END_ELEMENT] */
- if (v2gMagneticVectorSetupListType_MagneticVectorSetup_currArrayIndex < v2gMagneticVectorSetupListType->MagneticVectorSetup.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- errn = encode_v2gMagneticVectorSetupType(stream, &v2gMagneticVectorSetupListType->MagneticVectorSetup.array [v2gMagneticVectorSetupListType_MagneticVectorSetup_currArrayIndex++]);
- }
- grammarID = 157;
- } else if (1==1) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- done = 1;
- }
- grammarID = 3;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 157:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MagneticVectorSetup), END_ELEMENT] */
- if (v2gMagneticVectorSetupListType_MagneticVectorSetup_currArrayIndex < v2gMagneticVectorSetupListType->MagneticVectorSetup.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- errn = encode_v2gMagneticVectorSetupType(stream, &v2gMagneticVectorSetupListType->MagneticVectorSetup.array [v2gMagneticVectorSetupListType_MagneticVectorSetup_currArrayIndex++]);
- }
- grammarID = 158;
- } else if (1==1) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- done = 1;
- }
- grammarID = 3;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 158:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MagneticVectorSetup), END_ELEMENT] */
- if (v2gMagneticVectorSetupListType_MagneticVectorSetup_currArrayIndex < v2gMagneticVectorSetupListType->MagneticVectorSetup.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- errn = encode_v2gMagneticVectorSetupType(stream, &v2gMagneticVectorSetupListType->MagneticVectorSetup.array [v2gMagneticVectorSetupListType_MagneticVectorSetup_currArrayIndex++]);
- }
- grammarID = 159;
- } else if (1==1) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- done = 1;
- }
- grammarID = 3;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 159:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MagneticVectorSetup), END_ELEMENT] */
- if (v2gMagneticVectorSetupListType_MagneticVectorSetup_currArrayIndex < v2gMagneticVectorSetupListType->MagneticVectorSetup.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- errn = encode_v2gMagneticVectorSetupType(stream, &v2gMagneticVectorSetupListType->MagneticVectorSetup.array [v2gMagneticVectorSetupListType_MagneticVectorSetup_currArrayIndex++]);
- }
- grammarID = 160;
- } else if (1==1) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- done = 1;
- }
- grammarID = 3;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 160:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MagneticVectorSetup), END_ELEMENT] */
- if (v2gMagneticVectorSetupListType_MagneticVectorSetup_currArrayIndex < v2gMagneticVectorSetupListType->MagneticVectorSetup.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- errn = encode_v2gMagneticVectorSetupType(stream, &v2gMagneticVectorSetupListType->MagneticVectorSetup.array [v2gMagneticVectorSetupListType_MagneticVectorSetup_currArrayIndex++]);
- }
- grammarID = 161;
- } else if (1==1) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- done = 1;
- }
- grammarID = 3;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 161:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MagneticVectorSetup), END_ELEMENT] */
- if (v2gMagneticVectorSetupListType_MagneticVectorSetup_currArrayIndex < v2gMagneticVectorSetupListType->MagneticVectorSetup.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- errn = encode_v2gMagneticVectorSetupType(stream, &v2gMagneticVectorSetupListType->MagneticVectorSetup.array [v2gMagneticVectorSetupListType_MagneticVectorSetup_currArrayIndex++]);
- }
- grammarID = 162;
- } else if (1==1) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- done = 1;
- }
- grammarID = 3;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 162:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MagneticVectorSetup), END_ELEMENT] */
- if (v2gMagneticVectorSetupListType_MagneticVectorSetup_currArrayIndex < v2gMagneticVectorSetupListType->MagneticVectorSetup.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- errn = encode_v2gMagneticVectorSetupType(stream, &v2gMagneticVectorSetupListType->MagneticVectorSetup.array [v2gMagneticVectorSetupListType_MagneticVectorSetup_currArrayIndex++]);
- }
- grammarID = 163;
- } else if (1==1) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- done = 1;
- }
- grammarID = 3;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 163:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MagneticVectorSetup), END_ELEMENT] */
- if (v2gMagneticVectorSetupListType_MagneticVectorSetup_currArrayIndex < v2gMagneticVectorSetupListType->MagneticVectorSetup.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- errn = encode_v2gMagneticVectorSetupType(stream, &v2gMagneticVectorSetupListType->MagneticVectorSetup.array [v2gMagneticVectorSetupListType_MagneticVectorSetup_currArrayIndex++]);
- }
- grammarID = 164;
- } else if (1==1) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- done = 1;
- }
- grammarID = 3;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 164:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MagneticVectorSetup), END_ELEMENT] */
- if (v2gMagneticVectorSetupListType_MagneticVectorSetup_currArrayIndex < v2gMagneticVectorSetupListType->MagneticVectorSetup.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- errn = encode_v2gMagneticVectorSetupType(stream, &v2gMagneticVectorSetupListType->MagneticVectorSetup.array [v2gMagneticVectorSetupListType_MagneticVectorSetup_currArrayIndex++]);
- }
- grammarID = 165;
- } else if (1==1) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- done = 1;
- }
- grammarID = 3;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 165:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MagneticVectorSetup), END_ELEMENT] */
- if (v2gMagneticVectorSetupListType_MagneticVectorSetup_currArrayIndex < v2gMagneticVectorSetupListType->MagneticVectorSetup.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- errn = encode_v2gMagneticVectorSetupType(stream, &v2gMagneticVectorSetupListType->MagneticVectorSetup.array [v2gMagneticVectorSetupListType_MagneticVectorSetup_currArrayIndex++]);
- }
- grammarID = 166;
- } else if (1==1) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- done = 1;
- }
- grammarID = 3;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 166:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MagneticVectorSetup), END_ELEMENT] */
- if (v2gMagneticVectorSetupListType_MagneticVectorSetup_currArrayIndex < v2gMagneticVectorSetupListType->MagneticVectorSetup.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- errn = encode_v2gMagneticVectorSetupType(stream, &v2gMagneticVectorSetupListType->MagneticVectorSetup.array [v2gMagneticVectorSetupListType_MagneticVectorSetup_currArrayIndex++]);
- }
- grammarID = 167;
- } else if (1==1) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- done = 1;
- }
- grammarID = 3;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 167:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MagneticVectorSetup), END_ELEMENT] */
- if (v2gMagneticVectorSetupListType_MagneticVectorSetup_currArrayIndex < v2gMagneticVectorSetupListType->MagneticVectorSetup.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- errn = encode_v2gMagneticVectorSetupType(stream, &v2gMagneticVectorSetupListType->MagneticVectorSetup.array [v2gMagneticVectorSetupListType_MagneticVectorSetup_currArrayIndex++]);
- }
- grammarID = 168;
- } else if (1==1) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- done = 1;
- }
- grammarID = 3;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 168:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MagneticVectorSetup), END_ELEMENT] */
- if (v2gMagneticVectorSetupListType_MagneticVectorSetup_currArrayIndex < v2gMagneticVectorSetupListType->MagneticVectorSetup.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- errn = encode_v2gMagneticVectorSetupType(stream, &v2gMagneticVectorSetupListType->MagneticVectorSetup.array [v2gMagneticVectorSetupListType_MagneticVectorSetup_currArrayIndex++]);
- }
- grammarID = 169;
- } else if (1==1) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- done = 1;
- }
- grammarID = 3;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 169:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MagneticVectorSetup), END_ELEMENT] */
- if (v2gMagneticVectorSetupListType_MagneticVectorSetup_currArrayIndex < v2gMagneticVectorSetupListType->MagneticVectorSetup.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- errn = encode_v2gMagneticVectorSetupType(stream, &v2gMagneticVectorSetupListType->MagneticVectorSetup.array [v2gMagneticVectorSetupListType_MagneticVectorSetup_currArrayIndex++]);
- }
- grammarID = 170;
- } else if (1==1) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- done = 1;
- }
- grammarID = 3;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 170:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MagneticVectorSetup), END_ELEMENT] */
- if (v2gMagneticVectorSetupListType_MagneticVectorSetup_currArrayIndex < v2gMagneticVectorSetupListType->MagneticVectorSetup.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- errn = encode_v2gMagneticVectorSetupType(stream, &v2gMagneticVectorSetupListType->MagneticVectorSetup.array [v2gMagneticVectorSetupListType_MagneticVectorSetup_currArrayIndex++]);
- }
- grammarID = 171;
- } else if (1==1) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- done = 1;
- }
- grammarID = 3;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 171:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MagneticVectorSetup), END_ELEMENT] */
- if (v2gMagneticVectorSetupListType_MagneticVectorSetup_currArrayIndex < v2gMagneticVectorSetupListType->MagneticVectorSetup.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- errn = encode_v2gMagneticVectorSetupType(stream, &v2gMagneticVectorSetupListType->MagneticVectorSetup.array [v2gMagneticVectorSetupListType_MagneticVectorSetup_currArrayIndex++]);
- }
- grammarID = 172;
- } else if (1==1) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- done = 1;
- }
- grammarID = 3;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 172:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MagneticVectorSetup), END_ELEMENT] */
- if (v2gMagneticVectorSetupListType_MagneticVectorSetup_currArrayIndex < v2gMagneticVectorSetupListType->MagneticVectorSetup.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- errn = encode_v2gMagneticVectorSetupType(stream, &v2gMagneticVectorSetupListType->MagneticVectorSetup.array [v2gMagneticVectorSetupListType_MagneticVectorSetup_currArrayIndex++]);
- }
- grammarID = 173;
- } else if (1==1) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- done = 1;
- }
- grammarID = 3;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 173:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MagneticVectorSetup), END_ELEMENT] */
- if (v2gMagneticVectorSetupListType_MagneticVectorSetup_currArrayIndex < v2gMagneticVectorSetupListType->MagneticVectorSetup.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- errn = encode_v2gMagneticVectorSetupType(stream, &v2gMagneticVectorSetupListType->MagneticVectorSetup.array [v2gMagneticVectorSetupListType_MagneticVectorSetup_currArrayIndex++]);
- }
- grammarID = 174;
- } else if (1==1) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- done = 1;
- }
- grammarID = 3;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 174:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MagneticVectorSetup), END_ELEMENT] */
- if (v2gMagneticVectorSetupListType_MagneticVectorSetup_currArrayIndex < v2gMagneticVectorSetupListType->MagneticVectorSetup.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- errn = encode_v2gMagneticVectorSetupType(stream, &v2gMagneticVectorSetupListType->MagneticVectorSetup.array [v2gMagneticVectorSetupListType_MagneticVectorSetup_currArrayIndex++]);
- }
- grammarID = 175;
- } else if (1==1) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- done = 1;
- }
- grammarID = 3;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 175:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MagneticVectorSetup), END_ELEMENT] */
- if (v2gMagneticVectorSetupListType_MagneticVectorSetup_currArrayIndex < v2gMagneticVectorSetupListType->MagneticVectorSetup.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- errn = encode_v2gMagneticVectorSetupType(stream, &v2gMagneticVectorSetupListType->MagneticVectorSetup.array [v2gMagneticVectorSetupListType_MagneticVectorSetup_currArrayIndex++]);
- }
- grammarID = 176;
- } else if (1==1) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- done = 1;
- }
- grammarID = 3;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 176:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MagneticVectorSetup), END_ELEMENT] */
- if (v2gMagneticVectorSetupListType_MagneticVectorSetup_currArrayIndex < v2gMagneticVectorSetupListType->MagneticVectorSetup.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- errn = encode_v2gMagneticVectorSetupType(stream, &v2gMagneticVectorSetupListType->MagneticVectorSetup.array [v2gMagneticVectorSetupListType_MagneticVectorSetup_currArrayIndex++]);
- }
- grammarID = 177;
- } else if (1==1) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- done = 1;
- }
- grammarID = 3;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 177:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MagneticVectorSetup), END_ELEMENT] */
- if (v2gMagneticVectorSetupListType_MagneticVectorSetup_currArrayIndex < v2gMagneticVectorSetupListType->MagneticVectorSetup.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- errn = encode_v2gMagneticVectorSetupType(stream, &v2gMagneticVectorSetupListType->MagneticVectorSetup.array [v2gMagneticVectorSetupListType_MagneticVectorSetup_currArrayIndex++]);
- }
- grammarID = 178;
- } else if (1==1) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- done = 1;
- }
- grammarID = 3;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 178:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MagneticVectorSetup), END_ELEMENT] */
- if (v2gMagneticVectorSetupListType_MagneticVectorSetup_currArrayIndex < v2gMagneticVectorSetupListType->MagneticVectorSetup.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- errn = encode_v2gMagneticVectorSetupType(stream, &v2gMagneticVectorSetupListType->MagneticVectorSetup.array [v2gMagneticVectorSetupListType_MagneticVectorSetup_currArrayIndex++]);
- }
- grammarID = 179;
- } else if (1==1) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- done = 1;
- }
- grammarID = 3;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 179:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MagneticVectorSetup), END_ELEMENT] */
- if (v2gMagneticVectorSetupListType_MagneticVectorSetup_currArrayIndex < v2gMagneticVectorSetupListType->MagneticVectorSetup.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- errn = encode_v2gMagneticVectorSetupType(stream, &v2gMagneticVectorSetupListType->MagneticVectorSetup.array [v2gMagneticVectorSetupListType_MagneticVectorSetup_currArrayIndex++]);
- }
- grammarID = 180;
- } else if (1==1) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- done = 1;
- }
- grammarID = 3;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 180:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MagneticVectorSetup), END_ELEMENT] */
- if (v2gMagneticVectorSetupListType_MagneticVectorSetup_currArrayIndex < v2gMagneticVectorSetupListType->MagneticVectorSetup.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- errn = encode_v2gMagneticVectorSetupType(stream, &v2gMagneticVectorSetupListType->MagneticVectorSetup.array [v2gMagneticVectorSetupListType_MagneticVectorSetup_currArrayIndex++]);
- }
- grammarID = 181;
- } else if (1==1) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- done = 1;
- }
- grammarID = 3;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 181:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MagneticVectorSetup), END_ELEMENT] */
- if (v2gMagneticVectorSetupListType_MagneticVectorSetup_currArrayIndex < v2gMagneticVectorSetupListType->MagneticVectorSetup.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- errn = encode_v2gMagneticVectorSetupType(stream, &v2gMagneticVectorSetupListType->MagneticVectorSetup.array [v2gMagneticVectorSetupListType_MagneticVectorSetup_currArrayIndex++]);
- }
- grammarID = 182;
- } else if (1==1) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- done = 1;
- }
- grammarID = 3;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 182:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MagneticVectorSetup), END_ELEMENT] */
- if (v2gMagneticVectorSetupListType_MagneticVectorSetup_currArrayIndex < v2gMagneticVectorSetupListType->MagneticVectorSetup.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- errn = encode_v2gMagneticVectorSetupType(stream, &v2gMagneticVectorSetupListType->MagneticVectorSetup.array [v2gMagneticVectorSetupListType_MagneticVectorSetup_currArrayIndex++]);
- }
- grammarID = 183;
- } else if (1==1) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- done = 1;
- }
- grammarID = 3;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 183:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MagneticVectorSetup), END_ELEMENT] */
- if (v2gMagneticVectorSetupListType_MagneticVectorSetup_currArrayIndex < v2gMagneticVectorSetupListType->MagneticVectorSetup.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- errn = encode_v2gMagneticVectorSetupType(stream, &v2gMagneticVectorSetupListType->MagneticVectorSetup.array [v2gMagneticVectorSetupListType_MagneticVectorSetup_currArrayIndex++]);
- }
- grammarID = 184;
- } else if (1==1) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- done = 1;
- }
- grammarID = 3;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 184:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MagneticVectorSetup), END_ELEMENT] */
- if (v2gMagneticVectorSetupListType_MagneticVectorSetup_currArrayIndex < v2gMagneticVectorSetupListType->MagneticVectorSetup.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- errn = encode_v2gMagneticVectorSetupType(stream, &v2gMagneticVectorSetupListType->MagneticVectorSetup.array [v2gMagneticVectorSetupListType_MagneticVectorSetup_currArrayIndex++]);
- }
- grammarID = 185;
- } else if (1==1) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- done = 1;
- }
- grammarID = 3;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 185:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MagneticVectorSetup), END_ELEMENT] */
- if (v2gMagneticVectorSetupListType_MagneticVectorSetup_currArrayIndex < v2gMagneticVectorSetupListType->MagneticVectorSetup.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- errn = encode_v2gMagneticVectorSetupType(stream, &v2gMagneticVectorSetupListType->MagneticVectorSetup.array [v2gMagneticVectorSetupListType_MagneticVectorSetup_currArrayIndex++]);
- }
- grammarID = 186;
- } else if (1==1) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- done = 1;
- }
- grammarID = 3;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 186:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MagneticVectorSetup), END_ELEMENT] */
- if (v2gMagneticVectorSetupListType_MagneticVectorSetup_currArrayIndex < v2gMagneticVectorSetupListType->MagneticVectorSetup.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- errn = encode_v2gMagneticVectorSetupType(stream, &v2gMagneticVectorSetupListType->MagneticVectorSetup.array [v2gMagneticVectorSetupListType_MagneticVectorSetup_currArrayIndex++]);
- }
- grammarID = 187;
- } else if (1==1) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- done = 1;
- }
- grammarID = 3;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 187:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MagneticVectorSetup), END_ELEMENT] */
- if (v2gMagneticVectorSetupListType_MagneticVectorSetup_currArrayIndex < v2gMagneticVectorSetupListType->MagneticVectorSetup.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- errn = encode_v2gMagneticVectorSetupType(stream, &v2gMagneticVectorSetupListType->MagneticVectorSetup.array [v2gMagneticVectorSetupListType_MagneticVectorSetup_currArrayIndex++]);
- }
- grammarID = 188;
- } else if (1==1) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- done = 1;
- }
- grammarID = 3;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 188:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MagneticVectorSetup), END_ELEMENT] */
- if (v2gMagneticVectorSetupListType_MagneticVectorSetup_currArrayIndex < v2gMagneticVectorSetupListType->MagneticVectorSetup.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- errn = encode_v2gMagneticVectorSetupType(stream, &v2gMagneticVectorSetupListType->MagneticVectorSetup.array [v2gMagneticVectorSetupListType_MagneticVectorSetup_currArrayIndex++]);
- }
- grammarID = 189;
- } else if (1==1) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- done = 1;
- }
- grammarID = 3;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 189:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MagneticVectorSetup), END_ELEMENT] */
- if (v2gMagneticVectorSetupListType_MagneticVectorSetup_currArrayIndex < v2gMagneticVectorSetupListType->MagneticVectorSetup.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- errn = encode_v2gMagneticVectorSetupType(stream, &v2gMagneticVectorSetupListType->MagneticVectorSetup.array [v2gMagneticVectorSetupListType_MagneticVectorSetup_currArrayIndex++]);
- }
- grammarID = 190;
- } else if (1==1) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- done = 1;
- }
- grammarID = 3;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 190:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MagneticVectorSetup), END_ELEMENT] */
- if (v2gMagneticVectorSetupListType_MagneticVectorSetup_currArrayIndex < v2gMagneticVectorSetupListType->MagneticVectorSetup.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- errn = encode_v2gMagneticVectorSetupType(stream, &v2gMagneticVectorSetupListType->MagneticVectorSetup.array [v2gMagneticVectorSetupListType_MagneticVectorSetup_currArrayIndex++]);
- }
- grammarID = 191;
- } else if (1==1) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- done = 1;
- }
- grammarID = 3;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 191:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MagneticVectorSetup), END_ELEMENT] */
- if (v2gMagneticVectorSetupListType_MagneticVectorSetup_currArrayIndex < v2gMagneticVectorSetupListType->MagneticVectorSetup.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- errn = encode_v2gMagneticVectorSetupType(stream, &v2gMagneticVectorSetupListType->MagneticVectorSetup.array [v2gMagneticVectorSetupListType_MagneticVectorSetup_currArrayIndex++]);
- }
- grammarID = 192;
- } else if (1==1) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- done = 1;
- }
- grammarID = 3;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 192:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MagneticVectorSetup), END_ELEMENT] */
- if (v2gMagneticVectorSetupListType_MagneticVectorSetup_currArrayIndex < v2gMagneticVectorSetupListType->MagneticVectorSetup.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- errn = encode_v2gMagneticVectorSetupType(stream, &v2gMagneticVectorSetupListType->MagneticVectorSetup.array [v2gMagneticVectorSetupListType_MagneticVectorSetup_currArrayIndex++]);
- }
- grammarID = 193;
- } else if (1==1) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- done = 1;
- }
- grammarID = 3;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 193:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MagneticVectorSetup), END_ELEMENT] */
- if (v2gMagneticVectorSetupListType_MagneticVectorSetup_currArrayIndex < v2gMagneticVectorSetupListType->MagneticVectorSetup.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- errn = encode_v2gMagneticVectorSetupType(stream, &v2gMagneticVectorSetupListType->MagneticVectorSetup.array [v2gMagneticVectorSetupListType_MagneticVectorSetup_currArrayIndex++]);
- }
- grammarID = 194;
- } else if (1==1) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- done = 1;
- }
- grammarID = 3;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 194:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MagneticVectorSetup), END_ELEMENT] */
- if (v2gMagneticVectorSetupListType_MagneticVectorSetup_currArrayIndex < v2gMagneticVectorSetupListType->MagneticVectorSetup.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- errn = encode_v2gMagneticVectorSetupType(stream, &v2gMagneticVectorSetupListType->MagneticVectorSetup.array [v2gMagneticVectorSetupListType_MagneticVectorSetup_currArrayIndex++]);
- }
- grammarID = 195;
- } else if (1==1) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- done = 1;
- }
- grammarID = 3;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 195:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MagneticVectorSetup), END_ELEMENT] */
- if (v2gMagneticVectorSetupListType_MagneticVectorSetup_currArrayIndex < v2gMagneticVectorSetupListType->MagneticVectorSetup.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- errn = encode_v2gMagneticVectorSetupType(stream, &v2gMagneticVectorSetupListType->MagneticVectorSetup.array [v2gMagneticVectorSetupListType_MagneticVectorSetup_currArrayIndex++]);
- }
- grammarID = 196;
- } else if (1==1) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- done = 1;
- }
- grammarID = 3;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 196:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MagneticVectorSetup), END_ELEMENT] */
- if (v2gMagneticVectorSetupListType_MagneticVectorSetup_currArrayIndex < v2gMagneticVectorSetupListType->MagneticVectorSetup.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- errn = encode_v2gMagneticVectorSetupType(stream, &v2gMagneticVectorSetupListType->MagneticVectorSetup.array [v2gMagneticVectorSetupListType_MagneticVectorSetup_currArrayIndex++]);
- }
- grammarID = 197;
- } else if (1==1) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- done = 1;
- }
- grammarID = 3;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 197:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MagneticVectorSetup), END_ELEMENT] */
- if (v2gMagneticVectorSetupListType_MagneticVectorSetup_currArrayIndex < v2gMagneticVectorSetupListType->MagneticVectorSetup.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- errn = encode_v2gMagneticVectorSetupType(stream, &v2gMagneticVectorSetupListType->MagneticVectorSetup.array [v2gMagneticVectorSetupListType_MagneticVectorSetup_currArrayIndex++]);
- }
- grammarID = 198;
- } else if (1==1) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- done = 1;
- }
- grammarID = 3;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 198:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MagneticVectorSetup), END_ELEMENT] */
- if (v2gMagneticVectorSetupListType_MagneticVectorSetup_currArrayIndex < v2gMagneticVectorSetupListType->MagneticVectorSetup.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- errn = encode_v2gMagneticVectorSetupType(stream, &v2gMagneticVectorSetupListType->MagneticVectorSetup.array [v2gMagneticVectorSetupListType_MagneticVectorSetup_currArrayIndex++]);
- }
- grammarID = 199;
- } else if (1==1) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- done = 1;
- }
- grammarID = 3;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 199:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MagneticVectorSetup), END_ELEMENT] */
- if (v2gMagneticVectorSetupListType_MagneticVectorSetup_currArrayIndex < v2gMagneticVectorSetupListType->MagneticVectorSetup.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- errn = encode_v2gMagneticVectorSetupType(stream, &v2gMagneticVectorSetupListType->MagneticVectorSetup.array [v2gMagneticVectorSetupListType_MagneticVectorSetup_currArrayIndex++]);
- }
- grammarID = 200;
- } else if (1==1) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- done = 1;
- }
- grammarID = 3;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 200:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MagneticVectorSetup), END_ELEMENT] */
- if (v2gMagneticVectorSetupListType_MagneticVectorSetup_currArrayIndex < v2gMagneticVectorSetupListType->MagneticVectorSetup.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- errn = encode_v2gMagneticVectorSetupType(stream, &v2gMagneticVectorSetupListType->MagneticVectorSetup.array [v2gMagneticVectorSetupListType_MagneticVectorSetup_currArrayIndex++]);
- }
- grammarID = 201;
- } else if (1==1) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- done = 1;
- }
- grammarID = 3;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 201:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MagneticVectorSetup), END_ELEMENT] */
- if (v2gMagneticVectorSetupListType_MagneticVectorSetup_currArrayIndex < v2gMagneticVectorSetupListType->MagneticVectorSetup.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- errn = encode_v2gMagneticVectorSetupType(stream, &v2gMagneticVectorSetupListType->MagneticVectorSetup.array [v2gMagneticVectorSetupListType_MagneticVectorSetup_currArrayIndex++]);
- }
- grammarID = 202;
- } else if (1==1) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- done = 1;
- }
- grammarID = 3;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 202:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MagneticVectorSetup), END_ELEMENT] */
- if (v2gMagneticVectorSetupListType_MagneticVectorSetup_currArrayIndex < v2gMagneticVectorSetupListType->MagneticVectorSetup.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- errn = encode_v2gMagneticVectorSetupType(stream, &v2gMagneticVectorSetupListType->MagneticVectorSetup.array [v2gMagneticVectorSetupListType_MagneticVectorSetup_currArrayIndex++]);
- }
- grammarID = 203;
- } else if (1==1) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- done = 1;
- }
- grammarID = 3;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 203:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MagneticVectorSetup), END_ELEMENT] */
- if (v2gMagneticVectorSetupListType_MagneticVectorSetup_currArrayIndex < v2gMagneticVectorSetupListType->MagneticVectorSetup.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- errn = encode_v2gMagneticVectorSetupType(stream, &v2gMagneticVectorSetupListType->MagneticVectorSetup.array [v2gMagneticVectorSetupListType_MagneticVectorSetup_currArrayIndex++]);
- }
- grammarID = 204;
- } else if (1==1) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- done = 1;
- }
- grammarID = 3;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 204:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MagneticVectorSetup), END_ELEMENT] */
- if (v2gMagneticVectorSetupListType_MagneticVectorSetup_currArrayIndex < v2gMagneticVectorSetupListType->MagneticVectorSetup.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- errn = encode_v2gMagneticVectorSetupType(stream, &v2gMagneticVectorSetupListType->MagneticVectorSetup.array [v2gMagneticVectorSetupListType_MagneticVectorSetup_currArrayIndex++]);
- }
- grammarID = 205;
- } else if (1==1) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- done = 1;
- }
- grammarID = 3;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 205:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MagneticVectorSetup), END_ELEMENT] */
- if (v2gMagneticVectorSetupListType_MagneticVectorSetup_currArrayIndex < v2gMagneticVectorSetupListType->MagneticVectorSetup.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- errn = encode_v2gMagneticVectorSetupType(stream, &v2gMagneticVectorSetupListType->MagneticVectorSetup.array [v2gMagneticVectorSetupListType_MagneticVectorSetup_currArrayIndex++]);
- }
- grammarID = 206;
- } else if (1==1) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- done = 1;
- }
- grammarID = 3;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 206:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MagneticVectorSetup), END_ELEMENT] */
- if (v2gMagneticVectorSetupListType_MagneticVectorSetup_currArrayIndex < v2gMagneticVectorSetupListType->MagneticVectorSetup.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- errn = encode_v2gMagneticVectorSetupType(stream, &v2gMagneticVectorSetupListType->MagneticVectorSetup.array [v2gMagneticVectorSetupListType_MagneticVectorSetup_currArrayIndex++]);
- }
- grammarID = 207;
- } else if (1==1) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- done = 1;
- }
- grammarID = 3;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 207:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MagneticVectorSetup), END_ELEMENT] */
- if (v2gMagneticVectorSetupListType_MagneticVectorSetup_currArrayIndex < v2gMagneticVectorSetupListType->MagneticVectorSetup.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- errn = encode_v2gMagneticVectorSetupType(stream, &v2gMagneticVectorSetupListType->MagneticVectorSetup.array [v2gMagneticVectorSetupListType_MagneticVectorSetup_currArrayIndex++]);
- }
- grammarID = 208;
- } else if (1==1) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- done = 1;
- }
- grammarID = 3;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 208:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MagneticVectorSetup), END_ELEMENT] */
- if (v2gMagneticVectorSetupListType_MagneticVectorSetup_currArrayIndex < v2gMagneticVectorSetupListType->MagneticVectorSetup.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- errn = encode_v2gMagneticVectorSetupType(stream, &v2gMagneticVectorSetupListType->MagneticVectorSetup.array [v2gMagneticVectorSetupListType_MagneticVectorSetup_currArrayIndex++]);
- }
- grammarID = 209;
- } else if (1==1) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- done = 1;
- }
- grammarID = 3;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 209:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MagneticVectorSetup), END_ELEMENT] */
- if (v2gMagneticVectorSetupListType_MagneticVectorSetup_currArrayIndex < v2gMagneticVectorSetupListType->MagneticVectorSetup.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- errn = encode_v2gMagneticVectorSetupType(stream, &v2gMagneticVectorSetupListType->MagneticVectorSetup.array [v2gMagneticVectorSetupListType_MagneticVectorSetup_currArrayIndex++]);
- }
- grammarID = 210;
- } else if (1==1) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- done = 1;
- }
- grammarID = 3;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 210:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MagneticVectorSetup), END_ELEMENT] */
- if (v2gMagneticVectorSetupListType_MagneticVectorSetup_currArrayIndex < v2gMagneticVectorSetupListType->MagneticVectorSetup.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- errn = encode_v2gMagneticVectorSetupType(stream, &v2gMagneticVectorSetupListType->MagneticVectorSetup.array [v2gMagneticVectorSetupListType_MagneticVectorSetup_currArrayIndex++]);
- }
- grammarID = 211;
- } else if (1==1) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- done = 1;
- }
- grammarID = 3;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 211:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MagneticVectorSetup), END_ELEMENT] */
- if (v2gMagneticVectorSetupListType_MagneticVectorSetup_currArrayIndex < v2gMagneticVectorSetupListType->MagneticVectorSetup.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- errn = encode_v2gMagneticVectorSetupType(stream, &v2gMagneticVectorSetupListType->MagneticVectorSetup.array [v2gMagneticVectorSetupListType_MagneticVectorSetup_currArrayIndex++]);
- }
- grammarID = 212;
- } else if (1==1) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- done = 1;
- }
- grammarID = 3;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 212:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MagneticVectorSetup), END_ELEMENT] */
- if (v2gMagneticVectorSetupListType_MagneticVectorSetup_currArrayIndex < v2gMagneticVectorSetupListType->MagneticVectorSetup.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- errn = encode_v2gMagneticVectorSetupType(stream, &v2gMagneticVectorSetupListType->MagneticVectorSetup.array [v2gMagneticVectorSetupListType_MagneticVectorSetup_currArrayIndex++]);
- }
- grammarID = 213;
- } else if (1==1) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- done = 1;
- }
- grammarID = 3;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 213:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MagneticVectorSetup), END_ELEMENT] */
- if (v2gMagneticVectorSetupListType_MagneticVectorSetup_currArrayIndex < v2gMagneticVectorSetupListType->MagneticVectorSetup.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- errn = encode_v2gMagneticVectorSetupType(stream, &v2gMagneticVectorSetupListType->MagneticVectorSetup.array [v2gMagneticVectorSetupListType_MagneticVectorSetup_currArrayIndex++]);
- }
- grammarID = 214;
- } else if (1==1) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- done = 1;
- }
- grammarID = 3;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 214:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MagneticVectorSetup), END_ELEMENT] */
- if (v2gMagneticVectorSetupListType_MagneticVectorSetup_currArrayIndex < v2gMagneticVectorSetupListType->MagneticVectorSetup.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- errn = encode_v2gMagneticVectorSetupType(stream, &v2gMagneticVectorSetupListType->MagneticVectorSetup.array [v2gMagneticVectorSetupListType_MagneticVectorSetup_currArrayIndex++]);
- }
- grammarID = 215;
- } else if (1==1) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- done = 1;
- }
- grammarID = 3;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 215:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MagneticVectorSetup), END_ELEMENT] */
- if (v2gMagneticVectorSetupListType_MagneticVectorSetup_currArrayIndex < v2gMagneticVectorSetupListType->MagneticVectorSetup.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- errn = encode_v2gMagneticVectorSetupType(stream, &v2gMagneticVectorSetupListType->MagneticVectorSetup.array [v2gMagneticVectorSetupListType_MagneticVectorSetup_currArrayIndex++]);
- }
- grammarID = 216;
- } else if (1==1) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- done = 1;
- }
- grammarID = 3;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 216:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MagneticVectorSetup), END_ELEMENT] */
- if (v2gMagneticVectorSetupListType_MagneticVectorSetup_currArrayIndex < v2gMagneticVectorSetupListType->MagneticVectorSetup.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- errn = encode_v2gMagneticVectorSetupType(stream, &v2gMagneticVectorSetupListType->MagneticVectorSetup.array [v2gMagneticVectorSetupListType_MagneticVectorSetup_currArrayIndex++]);
- }
- grammarID = 217;
- } else if (1==1) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- done = 1;
- }
- grammarID = 3;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 217:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MagneticVectorSetup), END_ELEMENT] */
- if (v2gMagneticVectorSetupListType_MagneticVectorSetup_currArrayIndex < v2gMagneticVectorSetupListType->MagneticVectorSetup.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- errn = encode_v2gMagneticVectorSetupType(stream, &v2gMagneticVectorSetupListType->MagneticVectorSetup.array [v2gMagneticVectorSetupListType_MagneticVectorSetup_currArrayIndex++]);
- }
- grammarID = 218;
- } else if (1==1) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- done = 1;
- }
- grammarID = 3;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 218:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MagneticVectorSetup), END_ELEMENT] */
- if (v2gMagneticVectorSetupListType_MagneticVectorSetup_currArrayIndex < v2gMagneticVectorSetupListType->MagneticVectorSetup.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- errn = encode_v2gMagneticVectorSetupType(stream, &v2gMagneticVectorSetupListType->MagneticVectorSetup.array [v2gMagneticVectorSetupListType_MagneticVectorSetup_currArrayIndex++]);
- }
- grammarID = 219;
- } else if (1==1) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- done = 1;
- }
- grammarID = 3;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 219:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MagneticVectorSetup), END_ELEMENT] */
- if (v2gMagneticVectorSetupListType_MagneticVectorSetup_currArrayIndex < v2gMagneticVectorSetupListType->MagneticVectorSetup.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- errn = encode_v2gMagneticVectorSetupType(stream, &v2gMagneticVectorSetupListType->MagneticVectorSetup.array [v2gMagneticVectorSetupListType_MagneticVectorSetup_currArrayIndex++]);
- }
- grammarID = 220;
- } else if (1==1) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- done = 1;
- }
- grammarID = 3;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 220:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MagneticVectorSetup), END_ELEMENT] */
- if (v2gMagneticVectorSetupListType_MagneticVectorSetup_currArrayIndex < v2gMagneticVectorSetupListType->MagneticVectorSetup.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- errn = encode_v2gMagneticVectorSetupType(stream, &v2gMagneticVectorSetupListType->MagneticVectorSetup.array [v2gMagneticVectorSetupListType_MagneticVectorSetup_currArrayIndex++]);
- }
- grammarID = 221;
- } else if (1==1) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- done = 1;
- }
- grammarID = 3;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 221:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MagneticVectorSetup), END_ELEMENT] */
- if (v2gMagneticVectorSetupListType_MagneticVectorSetup_currArrayIndex < v2gMagneticVectorSetupListType->MagneticVectorSetup.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- errn = encode_v2gMagneticVectorSetupType(stream, &v2gMagneticVectorSetupListType->MagneticVectorSetup.array [v2gMagneticVectorSetupListType_MagneticVectorSetup_currArrayIndex++]);
- }
- grammarID = 222;
- } else if (1==1) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- done = 1;
- }
- grammarID = 3;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 222:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MagneticVectorSetup), END_ELEMENT] */
- if (v2gMagneticVectorSetupListType_MagneticVectorSetup_currArrayIndex < v2gMagneticVectorSetupListType->MagneticVectorSetup.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- errn = encode_v2gMagneticVectorSetupType(stream, &v2gMagneticVectorSetupListType->MagneticVectorSetup.array [v2gMagneticVectorSetupListType_MagneticVectorSetup_currArrayIndex++]);
- }
- grammarID = 223;
- } else if (1==1) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- done = 1;
- }
- grammarID = 3;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 223:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MagneticVectorSetup), END_ELEMENT] */
- if (v2gMagneticVectorSetupListType_MagneticVectorSetup_currArrayIndex < v2gMagneticVectorSetupListType->MagneticVectorSetup.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- errn = encode_v2gMagneticVectorSetupType(stream, &v2gMagneticVectorSetupListType->MagneticVectorSetup.array [v2gMagneticVectorSetupListType_MagneticVectorSetup_currArrayIndex++]);
- }
- grammarID = 224;
- } else if (1==1) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- done = 1;
- }
- grammarID = 3;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 224:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MagneticVectorSetup), END_ELEMENT] */
- if (v2gMagneticVectorSetupListType_MagneticVectorSetup_currArrayIndex < v2gMagneticVectorSetupListType->MagneticVectorSetup.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- errn = encode_v2gMagneticVectorSetupType(stream, &v2gMagneticVectorSetupListType->MagneticVectorSetup.array [v2gMagneticVectorSetupListType_MagneticVectorSetup_currArrayIndex++]);
- }
- grammarID = 225;
- } else if (1==1) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- done = 1;
- }
- grammarID = 3;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 225:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MagneticVectorSetup), END_ELEMENT] */
- if (v2gMagneticVectorSetupListType_MagneticVectorSetup_currArrayIndex < v2gMagneticVectorSetupListType->MagneticVectorSetup.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- errn = encode_v2gMagneticVectorSetupType(stream, &v2gMagneticVectorSetupListType->MagneticVectorSetup.array [v2gMagneticVectorSetupListType_MagneticVectorSetup_currArrayIndex++]);
- }
- grammarID = 226;
- } else if (1==1) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- done = 1;
- }
- grammarID = 3;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 226:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MagneticVectorSetup), END_ELEMENT] */
- if (v2gMagneticVectorSetupListType_MagneticVectorSetup_currArrayIndex < v2gMagneticVectorSetupListType->MagneticVectorSetup.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- errn = encode_v2gMagneticVectorSetupType(stream, &v2gMagneticVectorSetupListType->MagneticVectorSetup.array [v2gMagneticVectorSetupListType_MagneticVectorSetup_currArrayIndex++]);
- }
- grammarID = 227;
- } else if (1==1) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- done = 1;
- }
- grammarID = 3;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 227:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MagneticVectorSetup), END_ELEMENT] */
- if (v2gMagneticVectorSetupListType_MagneticVectorSetup_currArrayIndex < v2gMagneticVectorSetupListType->MagneticVectorSetup.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- errn = encode_v2gMagneticVectorSetupType(stream, &v2gMagneticVectorSetupListType->MagneticVectorSetup.array [v2gMagneticVectorSetupListType_MagneticVectorSetup_currArrayIndex++]);
- }
- grammarID = 228;
- } else if (1==1) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- done = 1;
- }
- grammarID = 3;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 228:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MagneticVectorSetup), END_ELEMENT] */
- if (v2gMagneticVectorSetupListType_MagneticVectorSetup_currArrayIndex < v2gMagneticVectorSetupListType->MagneticVectorSetup.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- errn = encode_v2gMagneticVectorSetupType(stream, &v2gMagneticVectorSetupListType->MagneticVectorSetup.array [v2gMagneticVectorSetupListType_MagneticVectorSetup_currArrayIndex++]);
- }
- grammarID = 229;
- } else if (1==1) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- done = 1;
- }
- grammarID = 3;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 229:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MagneticVectorSetup), END_ELEMENT] */
- if (v2gMagneticVectorSetupListType_MagneticVectorSetup_currArrayIndex < v2gMagneticVectorSetupListType->MagneticVectorSetup.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- errn = encode_v2gMagneticVectorSetupType(stream, &v2gMagneticVectorSetupListType->MagneticVectorSetup.array [v2gMagneticVectorSetupListType_MagneticVectorSetup_currArrayIndex++]);
- }
- grammarID = 230;
- } else if (1==1) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- done = 1;
- }
- grammarID = 3;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 230:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MagneticVectorSetup), END_ELEMENT] */
- if (v2gMagneticVectorSetupListType_MagneticVectorSetup_currArrayIndex < v2gMagneticVectorSetupListType->MagneticVectorSetup.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- errn = encode_v2gMagneticVectorSetupType(stream, &v2gMagneticVectorSetupListType->MagneticVectorSetup.array [v2gMagneticVectorSetupListType_MagneticVectorSetup_currArrayIndex++]);
- }
- grammarID = 231;
- } else if (1==1) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- done = 1;
- }
- grammarID = 3;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 231:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MagneticVectorSetup), END_ELEMENT] */
- if (v2gMagneticVectorSetupListType_MagneticVectorSetup_currArrayIndex < v2gMagneticVectorSetupListType->MagneticVectorSetup.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- errn = encode_v2gMagneticVectorSetupType(stream, &v2gMagneticVectorSetupListType->MagneticVectorSetup.array [v2gMagneticVectorSetupListType_MagneticVectorSetup_currArrayIndex++]);
- }
- grammarID = 232;
- } else if (1==1) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- done = 1;
- }
- grammarID = 3;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 232:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MagneticVectorSetup), END_ELEMENT] */
- if (v2gMagneticVectorSetupListType_MagneticVectorSetup_currArrayIndex < v2gMagneticVectorSetupListType->MagneticVectorSetup.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- errn = encode_v2gMagneticVectorSetupType(stream, &v2gMagneticVectorSetupListType->MagneticVectorSetup.array [v2gMagneticVectorSetupListType_MagneticVectorSetup_currArrayIndex++]);
- }
- grammarID = 233;
- } else if (1==1) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- done = 1;
- }
- grammarID = 3;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 233:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MagneticVectorSetup), END_ELEMENT] */
- if (v2gMagneticVectorSetupListType_MagneticVectorSetup_currArrayIndex < v2gMagneticVectorSetupListType->MagneticVectorSetup.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- errn = encode_v2gMagneticVectorSetupType(stream, &v2gMagneticVectorSetupListType->MagneticVectorSetup.array [v2gMagneticVectorSetupListType_MagneticVectorSetup_currArrayIndex++]);
- }
- grammarID = 234;
- } else if (1==1) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- done = 1;
- }
- grammarID = 3;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 234:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MagneticVectorSetup), END_ELEMENT] */
- if (v2gMagneticVectorSetupListType_MagneticVectorSetup_currArrayIndex < v2gMagneticVectorSetupListType->MagneticVectorSetup.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- errn = encode_v2gMagneticVectorSetupType(stream, &v2gMagneticVectorSetupListType->MagneticVectorSetup.array [v2gMagneticVectorSetupListType_MagneticVectorSetup_currArrayIndex++]);
- }
- grammarID = 235;
- } else if (1==1) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- done = 1;
- }
- grammarID = 3;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 235:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MagneticVectorSetup), END_ELEMENT] */
- if (v2gMagneticVectorSetupListType_MagneticVectorSetup_currArrayIndex < v2gMagneticVectorSetupListType->MagneticVectorSetup.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- errn = encode_v2gMagneticVectorSetupType(stream, &v2gMagneticVectorSetupListType->MagneticVectorSetup.array [v2gMagneticVectorSetupListType_MagneticVectorSetup_currArrayIndex++]);
- }
- grammarID = 236;
- } else if (1==1) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- done = 1;
- }
- grammarID = 3;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 236:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MagneticVectorSetup), END_ELEMENT] */
- if (v2gMagneticVectorSetupListType_MagneticVectorSetup_currArrayIndex < v2gMagneticVectorSetupListType->MagneticVectorSetup.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- errn = encode_v2gMagneticVectorSetupType(stream, &v2gMagneticVectorSetupListType->MagneticVectorSetup.array [v2gMagneticVectorSetupListType_MagneticVectorSetup_currArrayIndex++]);
- }
- grammarID = 237;
- } else if (1==1) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- done = 1;
- }
- grammarID = 3;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 237:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MagneticVectorSetup), END_ELEMENT] */
- if (v2gMagneticVectorSetupListType_MagneticVectorSetup_currArrayIndex < v2gMagneticVectorSetupListType->MagneticVectorSetup.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- errn = encode_v2gMagneticVectorSetupType(stream, &v2gMagneticVectorSetupListType->MagneticVectorSetup.array [v2gMagneticVectorSetupListType_MagneticVectorSetup_currArrayIndex++]);
- }
- grammarID = 238;
- } else if (1==1) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- done = 1;
- }
- grammarID = 3;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 238:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MagneticVectorSetup), END_ELEMENT] */
- if (v2gMagneticVectorSetupListType_MagneticVectorSetup_currArrayIndex < v2gMagneticVectorSetupListType->MagneticVectorSetup.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- errn = encode_v2gMagneticVectorSetupType(stream, &v2gMagneticVectorSetupListType->MagneticVectorSetup.array [v2gMagneticVectorSetupListType_MagneticVectorSetup_currArrayIndex++]);
- }
- grammarID = 239;
- } else if (1==1) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- done = 1;
- }
- grammarID = 3;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 239:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MagneticVectorSetup), END_ELEMENT] */
- if (v2gMagneticVectorSetupListType_MagneticVectorSetup_currArrayIndex < v2gMagneticVectorSetupListType->MagneticVectorSetup.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- errn = encode_v2gMagneticVectorSetupType(stream, &v2gMagneticVectorSetupListType->MagneticVectorSetup.array [v2gMagneticVectorSetupListType_MagneticVectorSetup_currArrayIndex++]);
- }
- grammarID = 240;
- } else if (1==1) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- done = 1;
- }
- grammarID = 3;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 240:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MagneticVectorSetup), END_ELEMENT] */
- if (v2gMagneticVectorSetupListType_MagneticVectorSetup_currArrayIndex < v2gMagneticVectorSetupListType->MagneticVectorSetup.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- errn = encode_v2gMagneticVectorSetupType(stream, &v2gMagneticVectorSetupListType->MagneticVectorSetup.array [v2gMagneticVectorSetupListType_MagneticVectorSetup_currArrayIndex++]);
- }
- grammarID = 241;
- } else if (1==1) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- done = 1;
- }
- grammarID = 3;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 241:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MagneticVectorSetup), END_ELEMENT] */
- if (v2gMagneticVectorSetupListType_MagneticVectorSetup_currArrayIndex < v2gMagneticVectorSetupListType->MagneticVectorSetup.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- errn = encode_v2gMagneticVectorSetupType(stream, &v2gMagneticVectorSetupListType->MagneticVectorSetup.array [v2gMagneticVectorSetupListType_MagneticVectorSetup_currArrayIndex++]);
- }
- grammarID = 242;
- } else if (1==1) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- done = 1;
- }
- grammarID = 3;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 242:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MagneticVectorSetup), END_ELEMENT] */
- if (v2gMagneticVectorSetupListType_MagneticVectorSetup_currArrayIndex < v2gMagneticVectorSetupListType->MagneticVectorSetup.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- errn = encode_v2gMagneticVectorSetupType(stream, &v2gMagneticVectorSetupListType->MagneticVectorSetup.array [v2gMagneticVectorSetupListType_MagneticVectorSetup_currArrayIndex++]);
- }
- grammarID = 243;
- } else if (1==1) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- done = 1;
- }
- grammarID = 3;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 243:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MagneticVectorSetup), END_ELEMENT] */
- if (v2gMagneticVectorSetupListType_MagneticVectorSetup_currArrayIndex < v2gMagneticVectorSetupListType->MagneticVectorSetup.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- errn = encode_v2gMagneticVectorSetupType(stream, &v2gMagneticVectorSetupListType->MagneticVectorSetup.array [v2gMagneticVectorSetupListType_MagneticVectorSetup_currArrayIndex++]);
- }
- grammarID = 244;
- } else if (1==1) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- done = 1;
- }
- grammarID = 3;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 244:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MagneticVectorSetup), END_ELEMENT] */
- if (v2gMagneticVectorSetupListType_MagneticVectorSetup_currArrayIndex < v2gMagneticVectorSetupListType->MagneticVectorSetup.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- errn = encode_v2gMagneticVectorSetupType(stream, &v2gMagneticVectorSetupListType->MagneticVectorSetup.array [v2gMagneticVectorSetupListType_MagneticVectorSetup_currArrayIndex++]);
- }
- grammarID = 245;
- } else if (1==1) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- done = 1;
- }
- grammarID = 3;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 245:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MagneticVectorSetup), END_ELEMENT] */
- if (v2gMagneticVectorSetupListType_MagneticVectorSetup_currArrayIndex < v2gMagneticVectorSetupListType->MagneticVectorSetup.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- errn = encode_v2gMagneticVectorSetupType(stream, &v2gMagneticVectorSetupListType->MagneticVectorSetup.array [v2gMagneticVectorSetupListType_MagneticVectorSetup_currArrayIndex++]);
- }
- grammarID = 246;
- } else if (1==1) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- done = 1;
- }
- grammarID = 3;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 246:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MagneticVectorSetup), END_ELEMENT] */
- if (v2gMagneticVectorSetupListType_MagneticVectorSetup_currArrayIndex < v2gMagneticVectorSetupListType->MagneticVectorSetup.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- errn = encode_v2gMagneticVectorSetupType(stream, &v2gMagneticVectorSetupListType->MagneticVectorSetup.array [v2gMagneticVectorSetupListType_MagneticVectorSetup_currArrayIndex++]);
- }
- grammarID = 247;
- } else if (1==1) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- done = 1;
- }
- grammarID = 3;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 247:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MagneticVectorSetup), END_ELEMENT] */
- if (v2gMagneticVectorSetupListType_MagneticVectorSetup_currArrayIndex < v2gMagneticVectorSetupListType->MagneticVectorSetup.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- errn = encode_v2gMagneticVectorSetupType(stream, &v2gMagneticVectorSetupListType->MagneticVectorSetup.array [v2gMagneticVectorSetupListType_MagneticVectorSetup_currArrayIndex++]);
- }
- grammarID = 248;
- } else if (1==1) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- done = 1;
- }
- grammarID = 3;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 248:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MagneticVectorSetup), END_ELEMENT] */
- if (v2gMagneticVectorSetupListType_MagneticVectorSetup_currArrayIndex < v2gMagneticVectorSetupListType->MagneticVectorSetup.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- errn = encode_v2gMagneticVectorSetupType(stream, &v2gMagneticVectorSetupListType->MagneticVectorSetup.array [v2gMagneticVectorSetupListType_MagneticVectorSetup_currArrayIndex++]);
- }
- grammarID = 249;
- } else if (1==1) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- done = 1;
- }
- grammarID = 3;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 249:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MagneticVectorSetup), END_ELEMENT] */
- if (v2gMagneticVectorSetupListType_MagneticVectorSetup_currArrayIndex < v2gMagneticVectorSetupListType->MagneticVectorSetup.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- errn = encode_v2gMagneticVectorSetupType(stream, &v2gMagneticVectorSetupListType->MagneticVectorSetup.array [v2gMagneticVectorSetupListType_MagneticVectorSetup_currArrayIndex++]);
- }
- grammarID = 250;
- } else if (1==1) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- done = 1;
- }
- grammarID = 3;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 250:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MagneticVectorSetup), END_ELEMENT] */
- if (v2gMagneticVectorSetupListType_MagneticVectorSetup_currArrayIndex < v2gMagneticVectorSetupListType->MagneticVectorSetup.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- errn = encode_v2gMagneticVectorSetupType(stream, &v2gMagneticVectorSetupListType->MagneticVectorSetup.array [v2gMagneticVectorSetupListType_MagneticVectorSetup_currArrayIndex++]);
- }
- grammarID = 251;
- } else if (1==1) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- done = 1;
- }
- grammarID = 3;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 251:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MagneticVectorSetup), END_ELEMENT] */
- if (v2gMagneticVectorSetupListType_MagneticVectorSetup_currArrayIndex < v2gMagneticVectorSetupListType->MagneticVectorSetup.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- errn = encode_v2gMagneticVectorSetupType(stream, &v2gMagneticVectorSetupListType->MagneticVectorSetup.array [v2gMagneticVectorSetupListType_MagneticVectorSetup_currArrayIndex++]);
- }
- grammarID = 252;
- } else if (1==1) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- done = 1;
- }
- grammarID = 3;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 252:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MagneticVectorSetup), END_ELEMENT] */
- if (v2gMagneticVectorSetupListType_MagneticVectorSetup_currArrayIndex < v2gMagneticVectorSetupListType->MagneticVectorSetup.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- errn = encode_v2gMagneticVectorSetupType(stream, &v2gMagneticVectorSetupListType->MagneticVectorSetup.array [v2gMagneticVectorSetupListType_MagneticVectorSetup_currArrayIndex++]);
- }
- grammarID = 253;
- } else if (1==1) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- done = 1;
- }
- grammarID = 3;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 253:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MagneticVectorSetup), END_ELEMENT] */
- if (v2gMagneticVectorSetupListType_MagneticVectorSetup_currArrayIndex < v2gMagneticVectorSetupListType->MagneticVectorSetup.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- errn = encode_v2gMagneticVectorSetupType(stream, &v2gMagneticVectorSetupListType->MagneticVectorSetup.array [v2gMagneticVectorSetupListType_MagneticVectorSetup_currArrayIndex++]);
- }
- grammarID = 254;
- } else if (1==1) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- done = 1;
- }
- grammarID = 3;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 254:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MagneticVectorSetup), END_ELEMENT] */
- if (v2gMagneticVectorSetupListType_MagneticVectorSetup_currArrayIndex < v2gMagneticVectorSetupListType->MagneticVectorSetup.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- errn = encode_v2gMagneticVectorSetupType(stream, &v2gMagneticVectorSetupListType->MagneticVectorSetup.array [v2gMagneticVectorSetupListType_MagneticVectorSetup_currArrayIndex++]);
- }
- grammarID = 255;
- } else if (1==1) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- done = 1;
- }
- grammarID = 3;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 255:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MagneticVectorSetup), END_ELEMENT] */
- if (v2gMagneticVectorSetupListType_MagneticVectorSetup_currArrayIndex < v2gMagneticVectorSetupListType->MagneticVectorSetup.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- errn = encode_v2gMagneticVectorSetupType(stream, &v2gMagneticVectorSetupListType->MagneticVectorSetup.array [v2gMagneticVectorSetupListType_MagneticVectorSetup_currArrayIndex++]);
- }
- grammarID = 256;
- } else if (1==1) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- done = 1;
- }
- grammarID = 3;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 256:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MagneticVectorSetup), END_ELEMENT] */
- if (v2gMagneticVectorSetupListType_MagneticVectorSetup_currArrayIndex < v2gMagneticVectorSetupListType->MagneticVectorSetup.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- errn = encode_v2gMagneticVectorSetupType(stream, &v2gMagneticVectorSetupListType->MagneticVectorSetup.array [v2gMagneticVectorSetupListType_MagneticVectorSetup_currArrayIndex++]);
- }
- grammarID = 257;
- } else if (1==1) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- done = 1;
- }
- grammarID = 3;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 257:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MagneticVectorSetup), END_ELEMENT] */
- if (v2gMagneticVectorSetupListType_MagneticVectorSetup_currArrayIndex < v2gMagneticVectorSetupListType->MagneticVectorSetup.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- errn = encode_v2gMagneticVectorSetupType(stream, &v2gMagneticVectorSetupListType->MagneticVectorSetup.array [v2gMagneticVectorSetupListType_MagneticVectorSetup_currArrayIndex++]);
- }
- grammarID = 258;
- } else if (1==1) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- done = 1;
- }
- grammarID = 3;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 258:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MagneticVectorSetup), END_ELEMENT] */
- if (v2gMagneticVectorSetupListType_MagneticVectorSetup_currArrayIndex < v2gMagneticVectorSetupListType->MagneticVectorSetup.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- errn = encode_v2gMagneticVectorSetupType(stream, &v2gMagneticVectorSetupListType->MagneticVectorSetup.array [v2gMagneticVectorSetupListType_MagneticVectorSetup_currArrayIndex++]);
- }
- grammarID = 259;
- } else if (1==1) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- done = 1;
- }
- grammarID = 3;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 259:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MagneticVectorSetup), END_ELEMENT] */
- if (v2gMagneticVectorSetupListType_MagneticVectorSetup_currArrayIndex < v2gMagneticVectorSetupListType->MagneticVectorSetup.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- errn = encode_v2gMagneticVectorSetupType(stream, &v2gMagneticVectorSetupListType->MagneticVectorSetup.array [v2gMagneticVectorSetupListType_MagneticVectorSetup_currArrayIndex++]);
- }
- grammarID = 260;
- } else if (1==1) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- done = 1;
- }
- grammarID = 3;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 260:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MagneticVectorSetup), END_ELEMENT] */
- if (v2gMagneticVectorSetupListType_MagneticVectorSetup_currArrayIndex < v2gMagneticVectorSetupListType->MagneticVectorSetup.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- errn = encode_v2gMagneticVectorSetupType(stream, &v2gMagneticVectorSetupListType->MagneticVectorSetup.array [v2gMagneticVectorSetupListType_MagneticVectorSetup_currArrayIndex++]);
- }
- grammarID = 261;
- } else if (1==1) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- done = 1;
- }
- grammarID = 3;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 261:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MagneticVectorSetup), END_ELEMENT] */
- if (v2gMagneticVectorSetupListType_MagneticVectorSetup_currArrayIndex < v2gMagneticVectorSetupListType->MagneticVectorSetup.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- errn = encode_v2gMagneticVectorSetupType(stream, &v2gMagneticVectorSetupListType->MagneticVectorSetup.array [v2gMagneticVectorSetupListType_MagneticVectorSetup_currArrayIndex++]);
- }
- grammarID = 262;
- } else if (1==1) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- done = 1;
- }
- grammarID = 3;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 262:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MagneticVectorSetup), END_ELEMENT] */
- if (v2gMagneticVectorSetupListType_MagneticVectorSetup_currArrayIndex < v2gMagneticVectorSetupListType->MagneticVectorSetup.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- errn = encode_v2gMagneticVectorSetupType(stream, &v2gMagneticVectorSetupListType->MagneticVectorSetup.array [v2gMagneticVectorSetupListType_MagneticVectorSetup_currArrayIndex++]);
- }
- grammarID = 263;
- } else if (1==1) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- done = 1;
- }
- grammarID = 3;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 263:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MagneticVectorSetup), END_ELEMENT] */
- if (v2gMagneticVectorSetupListType_MagneticVectorSetup_currArrayIndex < v2gMagneticVectorSetupListType->MagneticVectorSetup.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- errn = encode_v2gMagneticVectorSetupType(stream, &v2gMagneticVectorSetupListType->MagneticVectorSetup.array [v2gMagneticVectorSetupListType_MagneticVectorSetup_currArrayIndex++]);
- }
- grammarID = 264;
- } else if (1==1) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- done = 1;
- }
- grammarID = 3;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 264:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MagneticVectorSetup), END_ELEMENT] */
- if (v2gMagneticVectorSetupListType_MagneticVectorSetup_currArrayIndex < v2gMagneticVectorSetupListType->MagneticVectorSetup.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- errn = encode_v2gMagneticVectorSetupType(stream, &v2gMagneticVectorSetupListType->MagneticVectorSetup.array [v2gMagneticVectorSetupListType_MagneticVectorSetup_currArrayIndex++]);
- }
- grammarID = 265;
- } else if (1==1) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- done = 1;
- }
- grammarID = 3;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 265:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MagneticVectorSetup), END_ELEMENT] */
- if (v2gMagneticVectorSetupListType_MagneticVectorSetup_currArrayIndex < v2gMagneticVectorSetupListType->MagneticVectorSetup.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- errn = encode_v2gMagneticVectorSetupType(stream, &v2gMagneticVectorSetupListType->MagneticVectorSetup.array [v2gMagneticVectorSetupListType_MagneticVectorSetup_currArrayIndex++]);
- }
- grammarID = 266;
- } else if (1==1) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- done = 1;
- }
- grammarID = 3;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 266:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MagneticVectorSetup), END_ELEMENT] */
- if (v2gMagneticVectorSetupListType_MagneticVectorSetup_currArrayIndex < v2gMagneticVectorSetupListType->MagneticVectorSetup.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- errn = encode_v2gMagneticVectorSetupType(stream, &v2gMagneticVectorSetupListType->MagneticVectorSetup.array [v2gMagneticVectorSetupListType_MagneticVectorSetup_currArrayIndex++]);
- }
- grammarID = 267;
- } else if (1==1) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- done = 1;
- }
- grammarID = 3;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 267:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MagneticVectorSetup), END_ELEMENT] */
- if (v2gMagneticVectorSetupListType_MagneticVectorSetup_currArrayIndex < v2gMagneticVectorSetupListType->MagneticVectorSetup.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- errn = encode_v2gMagneticVectorSetupType(stream, &v2gMagneticVectorSetupListType->MagneticVectorSetup.array [v2gMagneticVectorSetupListType_MagneticVectorSetup_currArrayIndex++]);
- }
- grammarID = 268;
- } else if (1==1) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- done = 1;
- }
- grammarID = 3;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 268:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MagneticVectorSetup), END_ELEMENT] */
- if (v2gMagneticVectorSetupListType_MagneticVectorSetup_currArrayIndex < v2gMagneticVectorSetupListType->MagneticVectorSetup.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- errn = encode_v2gMagneticVectorSetupType(stream, &v2gMagneticVectorSetupListType->MagneticVectorSetup.array [v2gMagneticVectorSetupListType_MagneticVectorSetup_currArrayIndex++]);
- }
- grammarID = 269;
- } else if (1==1) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- done = 1;
- }
- grammarID = 3;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 269:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MagneticVectorSetup), END_ELEMENT] */
- if (v2gMagneticVectorSetupListType_MagneticVectorSetup_currArrayIndex < v2gMagneticVectorSetupListType->MagneticVectorSetup.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- errn = encode_v2gMagneticVectorSetupType(stream, &v2gMagneticVectorSetupListType->MagneticVectorSetup.array [v2gMagneticVectorSetupListType_MagneticVectorSetup_currArrayIndex++]);
- }
- grammarID = 270;
- } else if (1==1) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- done = 1;
- }
- grammarID = 3;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 270:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MagneticVectorSetup), END_ELEMENT] */
- if (v2gMagneticVectorSetupListType_MagneticVectorSetup_currArrayIndex < v2gMagneticVectorSetupListType->MagneticVectorSetup.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- errn = encode_v2gMagneticVectorSetupType(stream, &v2gMagneticVectorSetupListType->MagneticVectorSetup.array [v2gMagneticVectorSetupListType_MagneticVectorSetup_currArrayIndex++]);
- }
- grammarID = 271;
- } else if (1==1) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- done = 1;
- }
- grammarID = 3;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 271:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MagneticVectorSetup), END_ELEMENT] */
- if (v2gMagneticVectorSetupListType_MagneticVectorSetup_currArrayIndex < v2gMagneticVectorSetupListType->MagneticVectorSetup.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- errn = encode_v2gMagneticVectorSetupType(stream, &v2gMagneticVectorSetupListType->MagneticVectorSetup.array [v2gMagneticVectorSetupListType_MagneticVectorSetup_currArrayIndex++]);
- }
- grammarID = 272;
- } else if (1==1) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- done = 1;
- }
- grammarID = 3;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 272:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MagneticVectorSetup), END_ELEMENT] */
- if (v2gMagneticVectorSetupListType_MagneticVectorSetup_currArrayIndex < v2gMagneticVectorSetupListType->MagneticVectorSetup.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- errn = encode_v2gMagneticVectorSetupType(stream, &v2gMagneticVectorSetupListType->MagneticVectorSetup.array [v2gMagneticVectorSetupListType_MagneticVectorSetup_currArrayIndex++]);
- }
- grammarID = 273;
- } else if (1==1) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- done = 1;
- }
- grammarID = 3;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 273:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MagneticVectorSetup), END_ELEMENT] */
- if (v2gMagneticVectorSetupListType_MagneticVectorSetup_currArrayIndex < v2gMagneticVectorSetupListType->MagneticVectorSetup.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- errn = encode_v2gMagneticVectorSetupType(stream, &v2gMagneticVectorSetupListType->MagneticVectorSetup.array [v2gMagneticVectorSetupListType_MagneticVectorSetup_currArrayIndex++]);
- }
- grammarID = 274;
- } else if (1==1) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- done = 1;
- }
- grammarID = 3;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 274:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MagneticVectorSetup), END_ELEMENT] */
- if (v2gMagneticVectorSetupListType_MagneticVectorSetup_currArrayIndex < v2gMagneticVectorSetupListType->MagneticVectorSetup.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- errn = encode_v2gMagneticVectorSetupType(stream, &v2gMagneticVectorSetupListType->MagneticVectorSetup.array [v2gMagneticVectorSetupListType_MagneticVectorSetup_currArrayIndex++]);
- }
- grammarID = 275;
- } else if (1==1) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- done = 1;
- }
- grammarID = 3;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 275:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MagneticVectorSetup), END_ELEMENT] */
- if (v2gMagneticVectorSetupListType_MagneticVectorSetup_currArrayIndex < v2gMagneticVectorSetupListType->MagneticVectorSetup.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- errn = encode_v2gMagneticVectorSetupType(stream, &v2gMagneticVectorSetupListType->MagneticVectorSetup.array [v2gMagneticVectorSetupListType_MagneticVectorSetup_currArrayIndex++]);
- }
- grammarID = 276;
- } else if (1==1) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- done = 1;
- }
- grammarID = 3;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 276:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MagneticVectorSetup), END_ELEMENT] */
- if (v2gMagneticVectorSetupListType_MagneticVectorSetup_currArrayIndex < v2gMagneticVectorSetupListType->MagneticVectorSetup.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- errn = encode_v2gMagneticVectorSetupType(stream, &v2gMagneticVectorSetupListType->MagneticVectorSetup.array [v2gMagneticVectorSetupListType_MagneticVectorSetup_currArrayIndex++]);
- }
- grammarID = 277;
- } else if (1==1) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- done = 1;
- }
- grammarID = 3;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 277:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MagneticVectorSetup), END_ELEMENT] */
- if (v2gMagneticVectorSetupListType_MagneticVectorSetup_currArrayIndex < v2gMagneticVectorSetupListType->MagneticVectorSetup.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- errn = encode_v2gMagneticVectorSetupType(stream, &v2gMagneticVectorSetupListType->MagneticVectorSetup.array [v2gMagneticVectorSetupListType_MagneticVectorSetup_currArrayIndex++]);
- }
- grammarID = 278;
- } else if (1==1) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- done = 1;
- }
- grammarID = 3;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 278:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MagneticVectorSetup), END_ELEMENT] */
- if (v2gMagneticVectorSetupListType_MagneticVectorSetup_currArrayIndex < v2gMagneticVectorSetupListType->MagneticVectorSetup.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- errn = encode_v2gMagneticVectorSetupType(stream, &v2gMagneticVectorSetupListType->MagneticVectorSetup.array [v2gMagneticVectorSetupListType_MagneticVectorSetup_currArrayIndex++]);
- }
- grammarID = 279;
- } else if (1==1) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- done = 1;
- }
- grammarID = 3;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 279:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MagneticVectorSetup), END_ELEMENT] */
- if (v2gMagneticVectorSetupListType_MagneticVectorSetup_currArrayIndex < v2gMagneticVectorSetupListType->MagneticVectorSetup.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- errn = encode_v2gMagneticVectorSetupType(stream, &v2gMagneticVectorSetupListType->MagneticVectorSetup.array [v2gMagneticVectorSetupListType_MagneticVectorSetup_currArrayIndex++]);
- }
- grammarID = 280;
- } else if (1==1) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- done = 1;
- }
- grammarID = 3;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 280:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MagneticVectorSetup), END_ELEMENT] */
- if (v2gMagneticVectorSetupListType_MagneticVectorSetup_currArrayIndex < v2gMagneticVectorSetupListType->MagneticVectorSetup.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- errn = encode_v2gMagneticVectorSetupType(stream, &v2gMagneticVectorSetupListType->MagneticVectorSetup.array [v2gMagneticVectorSetupListType_MagneticVectorSetup_currArrayIndex++]);
- }
- grammarID = 281;
- } else if (1==1) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- done = 1;
- }
- grammarID = 3;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 281:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MagneticVectorSetup), END_ELEMENT] */
- if (v2gMagneticVectorSetupListType_MagneticVectorSetup_currArrayIndex < v2gMagneticVectorSetupListType->MagneticVectorSetup.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- errn = encode_v2gMagneticVectorSetupType(stream, &v2gMagneticVectorSetupListType->MagneticVectorSetup.array [v2gMagneticVectorSetupListType_MagneticVectorSetup_currArrayIndex++]);
- }
- grammarID = 282;
- } else if (1==1) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- done = 1;
- }
- grammarID = 3;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 282:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MagneticVectorSetup), END_ELEMENT] */
- if (v2gMagneticVectorSetupListType_MagneticVectorSetup_currArrayIndex < v2gMagneticVectorSetupListType->MagneticVectorSetup.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- errn = encode_v2gMagneticVectorSetupType(stream, &v2gMagneticVectorSetupListType->MagneticVectorSetup.array [v2gMagneticVectorSetupListType_MagneticVectorSetup_currArrayIndex++]);
- }
- grammarID = 283;
- } else if (1==1) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- done = 1;
- }
- grammarID = 3;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 283:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MagneticVectorSetup), END_ELEMENT] */
- if (v2gMagneticVectorSetupListType_MagneticVectorSetup_currArrayIndex < v2gMagneticVectorSetupListType->MagneticVectorSetup.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- errn = encode_v2gMagneticVectorSetupType(stream, &v2gMagneticVectorSetupListType->MagneticVectorSetup.array [v2gMagneticVectorSetupListType_MagneticVectorSetup_currArrayIndex++]);
- }
- grammarID = 284;
- } else if (1==1) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- done = 1;
- }
- grammarID = 3;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 284:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MagneticVectorSetup), END_ELEMENT] */
- if (v2gMagneticVectorSetupListType_MagneticVectorSetup_currArrayIndex < v2gMagneticVectorSetupListType->MagneticVectorSetup.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- errn = encode_v2gMagneticVectorSetupType(stream, &v2gMagneticVectorSetupListType->MagneticVectorSetup.array [v2gMagneticVectorSetupListType_MagneticVectorSetup_currArrayIndex++]);
- }
- grammarID = 285;
- } else if (1==1) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- done = 1;
- }
- grammarID = 3;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 285:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MagneticVectorSetup), END_ELEMENT] */
- if (v2gMagneticVectorSetupListType_MagneticVectorSetup_currArrayIndex < v2gMagneticVectorSetupListType->MagneticVectorSetup.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- errn = encode_v2gMagneticVectorSetupType(stream, &v2gMagneticVectorSetupListType->MagneticVectorSetup.array [v2gMagneticVectorSetupListType_MagneticVectorSetup_currArrayIndex++]);
- }
- grammarID = 286;
- } else if (1==1) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- done = 1;
- }
- grammarID = 3;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 286:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MagneticVectorSetup), END_ELEMENT] */
- if (v2gMagneticVectorSetupListType_MagneticVectorSetup_currArrayIndex < v2gMagneticVectorSetupListType->MagneticVectorSetup.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- errn = encode_v2gMagneticVectorSetupType(stream, &v2gMagneticVectorSetupListType->MagneticVectorSetup.array [v2gMagneticVectorSetupListType_MagneticVectorSetup_currArrayIndex++]);
- }
- grammarID = 287;
- } else if (1==1) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- done = 1;
- }
- grammarID = 3;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 287:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MagneticVectorSetup), END_ELEMENT] */
- if (v2gMagneticVectorSetupListType_MagneticVectorSetup_currArrayIndex < v2gMagneticVectorSetupListType->MagneticVectorSetup.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- errn = encode_v2gMagneticVectorSetupType(stream, &v2gMagneticVectorSetupListType->MagneticVectorSetup.array [v2gMagneticVectorSetupListType_MagneticVectorSetup_currArrayIndex++]);
- }
- grammarID = 288;
- } else if (1==1) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- done = 1;
- }
- grammarID = 3;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 288:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MagneticVectorSetup), END_ELEMENT] */
- if (v2gMagneticVectorSetupListType_MagneticVectorSetup_currArrayIndex < v2gMagneticVectorSetupListType->MagneticVectorSetup.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- errn = encode_v2gMagneticVectorSetupType(stream, &v2gMagneticVectorSetupListType->MagneticVectorSetup.array [v2gMagneticVectorSetupListType_MagneticVectorSetup_currArrayIndex++]);
- }
- grammarID = 289;
- } else if (1==1) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- done = 1;
- }
- grammarID = 3;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 289:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MagneticVectorSetup), END_ELEMENT] */
- if (v2gMagneticVectorSetupListType_MagneticVectorSetup_currArrayIndex < v2gMagneticVectorSetupListType->MagneticVectorSetup.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- errn = encode_v2gMagneticVectorSetupType(stream, &v2gMagneticVectorSetupListType->MagneticVectorSetup.array [v2gMagneticVectorSetupListType_MagneticVectorSetup_currArrayIndex++]);
- }
- grammarID = 290;
- } else if (1==1) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- done = 1;
- }
- grammarID = 3;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 290:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MagneticVectorSetup), END_ELEMENT] */
- if (v2gMagneticVectorSetupListType_MagneticVectorSetup_currArrayIndex < v2gMagneticVectorSetupListType->MagneticVectorSetup.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- errn = encode_v2gMagneticVectorSetupType(stream, &v2gMagneticVectorSetupListType->MagneticVectorSetup.array [v2gMagneticVectorSetupListType_MagneticVectorSetup_currArrayIndex++]);
- }
- grammarID = 291;
- } else if (1==1) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- done = 1;
- }
- grammarID = 3;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 291:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MagneticVectorSetup), END_ELEMENT] */
- if (v2gMagneticVectorSetupListType_MagneticVectorSetup_currArrayIndex < v2gMagneticVectorSetupListType->MagneticVectorSetup.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- errn = encode_v2gMagneticVectorSetupType(stream, &v2gMagneticVectorSetupListType->MagneticVectorSetup.array [v2gMagneticVectorSetupListType_MagneticVectorSetup_currArrayIndex++]);
- }
- grammarID = 292;
- } else if (1==1) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- done = 1;
- }
- grammarID = 3;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 292:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MagneticVectorSetup), END_ELEMENT] */
- if (v2gMagneticVectorSetupListType_MagneticVectorSetup_currArrayIndex < v2gMagneticVectorSetupListType->MagneticVectorSetup.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- errn = encode_v2gMagneticVectorSetupType(stream, &v2gMagneticVectorSetupListType->MagneticVectorSetup.array [v2gMagneticVectorSetupListType_MagneticVectorSetup_currArrayIndex++]);
- }
- grammarID = 293;
- } else if (1==1) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- done = 1;
- }
- grammarID = 3;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 293:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MagneticVectorSetup), END_ELEMENT] */
- if (v2gMagneticVectorSetupListType_MagneticVectorSetup_currArrayIndex < v2gMagneticVectorSetupListType->MagneticVectorSetup.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- errn = encode_v2gMagneticVectorSetupType(stream, &v2gMagneticVectorSetupListType->MagneticVectorSetup.array [v2gMagneticVectorSetupListType_MagneticVectorSetup_currArrayIndex++]);
- }
- grammarID = 294;
- } else if (1==1) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- done = 1;
- }
- grammarID = 3;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 294:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MagneticVectorSetup), END_ELEMENT] */
- if (v2gMagneticVectorSetupListType_MagneticVectorSetup_currArrayIndex < v2gMagneticVectorSetupListType->MagneticVectorSetup.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- errn = encode_v2gMagneticVectorSetupType(stream, &v2gMagneticVectorSetupListType->MagneticVectorSetup.array [v2gMagneticVectorSetupListType_MagneticVectorSetup_currArrayIndex++]);
- }
- grammarID = 295;
- } else if (1==1) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- done = 1;
- }
- grammarID = 3;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 295:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MagneticVectorSetup), END_ELEMENT] */
- if (v2gMagneticVectorSetupListType_MagneticVectorSetup_currArrayIndex < v2gMagneticVectorSetupListType->MagneticVectorSetup.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- errn = encode_v2gMagneticVectorSetupType(stream, &v2gMagneticVectorSetupListType->MagneticVectorSetup.array [v2gMagneticVectorSetupListType_MagneticVectorSetup_currArrayIndex++]);
- }
- grammarID = 296;
- } else if (1==1) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- done = 1;
- }
- grammarID = 3;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 296:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MagneticVectorSetup), END_ELEMENT] */
- if (v2gMagneticVectorSetupListType_MagneticVectorSetup_currArrayIndex < v2gMagneticVectorSetupListType->MagneticVectorSetup.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- errn = encode_v2gMagneticVectorSetupType(stream, &v2gMagneticVectorSetupListType->MagneticVectorSetup.array [v2gMagneticVectorSetupListType_MagneticVectorSetup_currArrayIndex++]);
- }
- grammarID = 297;
- } else if (1==1) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- done = 1;
- }
- grammarID = 3;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 297:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MagneticVectorSetup), END_ELEMENT] */
- if (v2gMagneticVectorSetupListType_MagneticVectorSetup_currArrayIndex < v2gMagneticVectorSetupListType->MagneticVectorSetup.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- errn = encode_v2gMagneticVectorSetupType(stream, &v2gMagneticVectorSetupListType->MagneticVectorSetup.array [v2gMagneticVectorSetupListType_MagneticVectorSetup_currArrayIndex++]);
- }
- grammarID = 298;
- } else if (1==1) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- done = 1;
- }
- grammarID = 3;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 298:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MagneticVectorSetup), END_ELEMENT] */
- if (v2gMagneticVectorSetupListType_MagneticVectorSetup_currArrayIndex < v2gMagneticVectorSetupListType->MagneticVectorSetup.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- errn = encode_v2gMagneticVectorSetupType(stream, &v2gMagneticVectorSetupListType->MagneticVectorSetup.array [v2gMagneticVectorSetupListType_MagneticVectorSetup_currArrayIndex++]);
- }
- grammarID = 299;
- } else if (1==1) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- done = 1;
- }
- grammarID = 3;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 299:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MagneticVectorSetup), END_ELEMENT] */
- if (v2gMagneticVectorSetupListType_MagneticVectorSetup_currArrayIndex < v2gMagneticVectorSetupListType->MagneticVectorSetup.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- errn = encode_v2gMagneticVectorSetupType(stream, &v2gMagneticVectorSetupListType->MagneticVectorSetup.array [v2gMagneticVectorSetupListType_MagneticVectorSetup_currArrayIndex++]);
- }
- grammarID = 300;
- } else if (1==1) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- done = 1;
- }
- grammarID = 3;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 300:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MagneticVectorSetup), END_ELEMENT] */
- if (v2gMagneticVectorSetupListType_MagneticVectorSetup_currArrayIndex < v2gMagneticVectorSetupListType->MagneticVectorSetup.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- errn = encode_v2gMagneticVectorSetupType(stream, &v2gMagneticVectorSetupListType->MagneticVectorSetup.array [v2gMagneticVectorSetupListType_MagneticVectorSetup_currArrayIndex++]);
- }
- grammarID = 301;
- } else if (1==1) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- done = 1;
- }
- grammarID = 3;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 301:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MagneticVectorSetup), END_ELEMENT] */
- if (v2gMagneticVectorSetupListType_MagneticVectorSetup_currArrayIndex < v2gMagneticVectorSetupListType->MagneticVectorSetup.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- errn = encode_v2gMagneticVectorSetupType(stream, &v2gMagneticVectorSetupListType->MagneticVectorSetup.array [v2gMagneticVectorSetupListType_MagneticVectorSetup_currArrayIndex++]);
- }
- grammarID = 302;
- } else if (1==1) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- done = 1;
- }
- grammarID = 3;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 302:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MagneticVectorSetup), END_ELEMENT] */
- if (v2gMagneticVectorSetupListType_MagneticVectorSetup_currArrayIndex < v2gMagneticVectorSetupListType->MagneticVectorSetup.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- errn = encode_v2gMagneticVectorSetupType(stream, &v2gMagneticVectorSetupListType->MagneticVectorSetup.array [v2gMagneticVectorSetupListType_MagneticVectorSetup_currArrayIndex++]);
- }
- grammarID = 303;
- } else if (1==1) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- done = 1;
- }
- grammarID = 3;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 303:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MagneticVectorSetup), END_ELEMENT] */
- if (v2gMagneticVectorSetupListType_MagneticVectorSetup_currArrayIndex < v2gMagneticVectorSetupListType->MagneticVectorSetup.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- errn = encode_v2gMagneticVectorSetupType(stream, &v2gMagneticVectorSetupListType->MagneticVectorSetup.array [v2gMagneticVectorSetupListType_MagneticVectorSetup_currArrayIndex++]);
- }
- grammarID = 304;
- } else if (1==1) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- done = 1;
- }
- grammarID = 3;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 304:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MagneticVectorSetup), END_ELEMENT] */
- if (v2gMagneticVectorSetupListType_MagneticVectorSetup_currArrayIndex < v2gMagneticVectorSetupListType->MagneticVectorSetup.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- errn = encode_v2gMagneticVectorSetupType(stream, &v2gMagneticVectorSetupListType->MagneticVectorSetup.array [v2gMagneticVectorSetupListType_MagneticVectorSetup_currArrayIndex++]);
- }
- grammarID = 305;
- } else if (1==1) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- done = 1;
- }
- grammarID = 3;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 305:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MagneticVectorSetup), END_ELEMENT] */
- if (v2gMagneticVectorSetupListType_MagneticVectorSetup_currArrayIndex < v2gMagneticVectorSetupListType->MagneticVectorSetup.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- errn = encode_v2gMagneticVectorSetupType(stream, &v2gMagneticVectorSetupListType->MagneticVectorSetup.array [v2gMagneticVectorSetupListType_MagneticVectorSetup_currArrayIndex++]);
- }
- grammarID = 306;
- } else if (1==1) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- done = 1;
- }
- grammarID = 3;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 306:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MagneticVectorSetup), END_ELEMENT] */
- if (v2gMagneticVectorSetupListType_MagneticVectorSetup_currArrayIndex < v2gMagneticVectorSetupListType->MagneticVectorSetup.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- errn = encode_v2gMagneticVectorSetupType(stream, &v2gMagneticVectorSetupListType->MagneticVectorSetup.array [v2gMagneticVectorSetupListType_MagneticVectorSetup_currArrayIndex++]);
- }
- grammarID = 307;
- } else if (1==1) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- done = 1;
- }
- grammarID = 3;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 307:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MagneticVectorSetup), END_ELEMENT] */
- if (v2gMagneticVectorSetupListType_MagneticVectorSetup_currArrayIndex < v2gMagneticVectorSetupListType->MagneticVectorSetup.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- errn = encode_v2gMagneticVectorSetupType(stream, &v2gMagneticVectorSetupListType->MagneticVectorSetup.array [v2gMagneticVectorSetupListType_MagneticVectorSetup_currArrayIndex++]);
- }
- grammarID = 308;
- } else if (1==1) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- done = 1;
- }
- grammarID = 3;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 308:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MagneticVectorSetup), END_ELEMENT] */
- if (v2gMagneticVectorSetupListType_MagneticVectorSetup_currArrayIndex < v2gMagneticVectorSetupListType->MagneticVectorSetup.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- errn = encode_v2gMagneticVectorSetupType(stream, &v2gMagneticVectorSetupListType->MagneticVectorSetup.array [v2gMagneticVectorSetupListType_MagneticVectorSetup_currArrayIndex++]);
- }
- grammarID = 309;
- } else if (1==1) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- done = 1;
- }
- grammarID = 3;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 309:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MagneticVectorSetup), END_ELEMENT] */
- if (v2gMagneticVectorSetupListType_MagneticVectorSetup_currArrayIndex < v2gMagneticVectorSetupListType->MagneticVectorSetup.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- errn = encode_v2gMagneticVectorSetupType(stream, &v2gMagneticVectorSetupListType->MagneticVectorSetup.array [v2gMagneticVectorSetupListType_MagneticVectorSetup_currArrayIndex++]);
- }
- grammarID = 310;
- } else if (1==1) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- done = 1;
- }
- grammarID = 3;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 310:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MagneticVectorSetup), END_ELEMENT] */
- if (v2gMagneticVectorSetupListType_MagneticVectorSetup_currArrayIndex < v2gMagneticVectorSetupListType->MagneticVectorSetup.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- errn = encode_v2gMagneticVectorSetupType(stream, &v2gMagneticVectorSetupListType->MagneticVectorSetup.array [v2gMagneticVectorSetupListType_MagneticVectorSetup_currArrayIndex++]);
- }
- grammarID = 311;
- } else if (1==1) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- done = 1;
- }
- grammarID = 3;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 311:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MagneticVectorSetup), END_ELEMENT] */
- if (v2gMagneticVectorSetupListType_MagneticVectorSetup_currArrayIndex < v2gMagneticVectorSetupListType->MagneticVectorSetup.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- errn = encode_v2gMagneticVectorSetupType(stream, &v2gMagneticVectorSetupListType->MagneticVectorSetup.array [v2gMagneticVectorSetupListType_MagneticVectorSetup_currArrayIndex++]);
- }
- grammarID = 312;
- } else if (1==1) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- done = 1;
- }
- grammarID = 3;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 312:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MagneticVectorSetup), END_ELEMENT] */
- if (v2gMagneticVectorSetupListType_MagneticVectorSetup_currArrayIndex < v2gMagneticVectorSetupListType->MagneticVectorSetup.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- errn = encode_v2gMagneticVectorSetupType(stream, &v2gMagneticVectorSetupListType->MagneticVectorSetup.array [v2gMagneticVectorSetupListType_MagneticVectorSetup_currArrayIndex++]);
- }
- grammarID = 313;
- } else if (1==1) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- done = 1;
- }
- grammarID = 3;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 313:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MagneticVectorSetup), END_ELEMENT] */
- if (v2gMagneticVectorSetupListType_MagneticVectorSetup_currArrayIndex < v2gMagneticVectorSetupListType->MagneticVectorSetup.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- errn = encode_v2gMagneticVectorSetupType(stream, &v2gMagneticVectorSetupListType->MagneticVectorSetup.array [v2gMagneticVectorSetupListType_MagneticVectorSetup_currArrayIndex++]);
- }
- grammarID = 314;
- } else if (1==1) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- done = 1;
- }
- grammarID = 3;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 314:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MagneticVectorSetup), END_ELEMENT] */
- if (v2gMagneticVectorSetupListType_MagneticVectorSetup_currArrayIndex < v2gMagneticVectorSetupListType->MagneticVectorSetup.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- errn = encode_v2gMagneticVectorSetupType(stream, &v2gMagneticVectorSetupListType->MagneticVectorSetup.array [v2gMagneticVectorSetupListType_MagneticVectorSetup_currArrayIndex++]);
- }
- grammarID = 315;
- } else if (1==1) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- done = 1;
- }
- grammarID = 3;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 315:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MagneticVectorSetup), END_ELEMENT] */
- if (v2gMagneticVectorSetupListType_MagneticVectorSetup_currArrayIndex < v2gMagneticVectorSetupListType->MagneticVectorSetup.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- errn = encode_v2gMagneticVectorSetupType(stream, &v2gMagneticVectorSetupListType->MagneticVectorSetup.array [v2gMagneticVectorSetupListType_MagneticVectorSetup_currArrayIndex++]);
- }
- grammarID = 316;
- } else if (1==1) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- done = 1;
- }
- grammarID = 3;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 316:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MagneticVectorSetup), END_ELEMENT] */
- if (v2gMagneticVectorSetupListType_MagneticVectorSetup_currArrayIndex < v2gMagneticVectorSetupListType->MagneticVectorSetup.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- errn = encode_v2gMagneticVectorSetupType(stream, &v2gMagneticVectorSetupListType->MagneticVectorSetup.array [v2gMagneticVectorSetupListType_MagneticVectorSetup_currArrayIndex++]);
- }
- 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:2016:MsgDataTypes,SensorMeasurementsType', base type name='anyType', content type='ELEMENT', isAbstract='false', hasTypeId='false', final='0', block='0', particle='("urn:iso:15118:2:2016:MsgDataTypes":SensorID,"urn:iso:15118:2:2016:MsgDataTypes":EffectiveRadiatedPower,"urn:iso:15118:2:2016:MsgDataTypes":MeasurementData{1-255})', derivedBy='RESTRICTION'. */
-static int encode_v2gSensorMeasurementsType(bitstream_t* stream, struct v2gSensorMeasurementsType* v2gSensorMeasurementsType) {
- int grammarID = 317;
- int done = 0;
-
- unsigned int v2gSensorMeasurementsType_MeasurementData_currArrayIndex = 0;
-
- while(!done) {
- switch(grammarID) {
- case 317:
- /* FirstStartTag[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorID)] */
- if ( 1 == 1 ) {
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- if(errn == 0) {
- /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- if(errn == 0) {
- errn = encodeNBitUnsignedInteger(stream, 8, (uint32_t)(v2gSensorMeasurementsType->SensorID - 0));
- /* valid EE */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- }
- }
- grammarID = 318;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 318:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}EffectiveRadiatedPower)] */
- if ( 1 == 1 ) {
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- if(errn == 0) {
- /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- if(errn == 0) {
- errn = encodeNBitUnsignedInteger(stream, 8, (uint32_t)(v2gSensorMeasurementsType->EffectiveRadiatedPower + 128));
- /* valid EE */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- }
- }
- grammarID = 319;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 319:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MeasurementData)] */
- if (v2gSensorMeasurementsType_MeasurementData_currArrayIndex < v2gSensorMeasurementsType->MeasurementData.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- if(errn == 0) {
- /* First(xsi:type)StartTag[CHARACTERS[UNSIGNED_INTEGER]] */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- if(errn == 0) {
- errn = encodeUnsignedInteger16(stream, v2gSensorMeasurementsType->MeasurementData.array[v2gSensorMeasurementsType_MeasurementData_currArrayIndex++]);
- /* valid EE */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- }
- }
- grammarID = 320;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 320:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MeasurementData), END_ELEMENT] */
- if (v2gSensorMeasurementsType_MeasurementData_currArrayIndex < v2gSensorMeasurementsType->MeasurementData.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- /* First(xsi:type)StartTag[CHARACTERS[UNSIGNED_INTEGER]] */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- if(errn == 0) {
- errn = encodeUnsignedInteger16(stream, v2gSensorMeasurementsType->MeasurementData.array[v2gSensorMeasurementsType_MeasurementData_currArrayIndex++]);
- /* valid EE */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- }
- }
- grammarID = 321;
- } else if (1==1) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- done = 1;
- }
- grammarID = 3;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 321:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MeasurementData), END_ELEMENT] */
- if (v2gSensorMeasurementsType_MeasurementData_currArrayIndex < v2gSensorMeasurementsType->MeasurementData.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- /* First(xsi:type)StartTag[CHARACTERS[UNSIGNED_INTEGER]] */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- if(errn == 0) {
- errn = encodeUnsignedInteger16(stream, v2gSensorMeasurementsType->MeasurementData.array[v2gSensorMeasurementsType_MeasurementData_currArrayIndex++]);
- /* valid EE */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- }
- }
- grammarID = 322;
- } else if (1==1) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- done = 1;
- }
- grammarID = 3;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 322:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MeasurementData), END_ELEMENT] */
- if (v2gSensorMeasurementsType_MeasurementData_currArrayIndex < v2gSensorMeasurementsType->MeasurementData.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- /* First(xsi:type)StartTag[CHARACTERS[UNSIGNED_INTEGER]] */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- if(errn == 0) {
- errn = encodeUnsignedInteger16(stream, v2gSensorMeasurementsType->MeasurementData.array[v2gSensorMeasurementsType_MeasurementData_currArrayIndex++]);
- /* valid EE */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- }
- }
- grammarID = 323;
- } else if (1==1) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- done = 1;
- }
- grammarID = 3;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 323:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MeasurementData), END_ELEMENT] */
- if (v2gSensorMeasurementsType_MeasurementData_currArrayIndex < v2gSensorMeasurementsType->MeasurementData.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- /* First(xsi:type)StartTag[CHARACTERS[UNSIGNED_INTEGER]] */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- if(errn == 0) {
- errn = encodeUnsignedInteger16(stream, v2gSensorMeasurementsType->MeasurementData.array[v2gSensorMeasurementsType_MeasurementData_currArrayIndex++]);
- /* valid EE */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- }
- }
- grammarID = 324;
- } else if (1==1) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- done = 1;
- }
- grammarID = 3;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 324:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MeasurementData), END_ELEMENT] */
- if (v2gSensorMeasurementsType_MeasurementData_currArrayIndex < v2gSensorMeasurementsType->MeasurementData.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- /* First(xsi:type)StartTag[CHARACTERS[UNSIGNED_INTEGER]] */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- if(errn == 0) {
- errn = encodeUnsignedInteger16(stream, v2gSensorMeasurementsType->MeasurementData.array[v2gSensorMeasurementsType_MeasurementData_currArrayIndex++]);
- /* valid EE */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- }
- }
- grammarID = 325;
- } else if (1==1) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- done = 1;
- }
- grammarID = 3;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 325:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MeasurementData), END_ELEMENT] */
- if (v2gSensorMeasurementsType_MeasurementData_currArrayIndex < v2gSensorMeasurementsType->MeasurementData.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- /* First(xsi:type)StartTag[CHARACTERS[UNSIGNED_INTEGER]] */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- if(errn == 0) {
- errn = encodeUnsignedInteger16(stream, v2gSensorMeasurementsType->MeasurementData.array[v2gSensorMeasurementsType_MeasurementData_currArrayIndex++]);
- /* valid EE */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- }
- }
- grammarID = 326;
- } else if (1==1) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- done = 1;
- }
- grammarID = 3;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 326:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MeasurementData), END_ELEMENT] */
- if (v2gSensorMeasurementsType_MeasurementData_currArrayIndex < v2gSensorMeasurementsType->MeasurementData.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- /* First(xsi:type)StartTag[CHARACTERS[UNSIGNED_INTEGER]] */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- if(errn == 0) {
- errn = encodeUnsignedInteger16(stream, v2gSensorMeasurementsType->MeasurementData.array[v2gSensorMeasurementsType_MeasurementData_currArrayIndex++]);
- /* valid EE */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- }
- }
- grammarID = 327;
- } else if (1==1) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- done = 1;
- }
- grammarID = 3;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 327:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MeasurementData), END_ELEMENT] */
- if (v2gSensorMeasurementsType_MeasurementData_currArrayIndex < v2gSensorMeasurementsType->MeasurementData.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- /* First(xsi:type)StartTag[CHARACTERS[UNSIGNED_INTEGER]] */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- if(errn == 0) {
- errn = encodeUnsignedInteger16(stream, v2gSensorMeasurementsType->MeasurementData.array[v2gSensorMeasurementsType_MeasurementData_currArrayIndex++]);
- /* valid EE */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- }
- }
- grammarID = 328;
- } else if (1==1) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- done = 1;
- }
- grammarID = 3;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 328:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MeasurementData), END_ELEMENT] */
- if (v2gSensorMeasurementsType_MeasurementData_currArrayIndex < v2gSensorMeasurementsType->MeasurementData.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- /* First(xsi:type)StartTag[CHARACTERS[UNSIGNED_INTEGER]] */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- if(errn == 0) {
- errn = encodeUnsignedInteger16(stream, v2gSensorMeasurementsType->MeasurementData.array[v2gSensorMeasurementsType_MeasurementData_currArrayIndex++]);
- /* valid EE */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- }
- }
- grammarID = 329;
- } else if (1==1) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- done = 1;
- }
- grammarID = 3;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 329:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MeasurementData), END_ELEMENT] */
- if (v2gSensorMeasurementsType_MeasurementData_currArrayIndex < v2gSensorMeasurementsType->MeasurementData.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- /* First(xsi:type)StartTag[CHARACTERS[UNSIGNED_INTEGER]] */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- if(errn == 0) {
- errn = encodeUnsignedInteger16(stream, v2gSensorMeasurementsType->MeasurementData.array[v2gSensorMeasurementsType_MeasurementData_currArrayIndex++]);
- /* valid EE */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- }
- }
- grammarID = 330;
- } else if (1==1) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- done = 1;
- }
- grammarID = 3;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 330:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MeasurementData), END_ELEMENT] */
- if (v2gSensorMeasurementsType_MeasurementData_currArrayIndex < v2gSensorMeasurementsType->MeasurementData.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- /* First(xsi:type)StartTag[CHARACTERS[UNSIGNED_INTEGER]] */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- if(errn == 0) {
- errn = encodeUnsignedInteger16(stream, v2gSensorMeasurementsType->MeasurementData.array[v2gSensorMeasurementsType_MeasurementData_currArrayIndex++]);
- /* valid EE */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- }
- }
- grammarID = 331;
- } else if (1==1) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- done = 1;
- }
- grammarID = 3;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 331:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MeasurementData), END_ELEMENT] */
- if (v2gSensorMeasurementsType_MeasurementData_currArrayIndex < v2gSensorMeasurementsType->MeasurementData.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- /* First(xsi:type)StartTag[CHARACTERS[UNSIGNED_INTEGER]] */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- if(errn == 0) {
- errn = encodeUnsignedInteger16(stream, v2gSensorMeasurementsType->MeasurementData.array[v2gSensorMeasurementsType_MeasurementData_currArrayIndex++]);
- /* valid EE */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- }
- }
- grammarID = 332;
- } else if (1==1) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- done = 1;
- }
- grammarID = 3;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 332:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MeasurementData), END_ELEMENT] */
- if (v2gSensorMeasurementsType_MeasurementData_currArrayIndex < v2gSensorMeasurementsType->MeasurementData.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- /* First(xsi:type)StartTag[CHARACTERS[UNSIGNED_INTEGER]] */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- if(errn == 0) {
- errn = encodeUnsignedInteger16(stream, v2gSensorMeasurementsType->MeasurementData.array[v2gSensorMeasurementsType_MeasurementData_currArrayIndex++]);
- /* valid EE */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- }
- }
- grammarID = 333;
- } else if (1==1) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- done = 1;
- }
- grammarID = 3;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 333:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MeasurementData), END_ELEMENT] */
- if (v2gSensorMeasurementsType_MeasurementData_currArrayIndex < v2gSensorMeasurementsType->MeasurementData.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- /* First(xsi:type)StartTag[CHARACTERS[UNSIGNED_INTEGER]] */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- if(errn == 0) {
- errn = encodeUnsignedInteger16(stream, v2gSensorMeasurementsType->MeasurementData.array[v2gSensorMeasurementsType_MeasurementData_currArrayIndex++]);
- /* valid EE */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- }
- }
- grammarID = 334;
- } else if (1==1) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- done = 1;
- }
- grammarID = 3;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 334:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MeasurementData), END_ELEMENT] */
- if (v2gSensorMeasurementsType_MeasurementData_currArrayIndex < v2gSensorMeasurementsType->MeasurementData.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- /* First(xsi:type)StartTag[CHARACTERS[UNSIGNED_INTEGER]] */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- if(errn == 0) {
- errn = encodeUnsignedInteger16(stream, v2gSensorMeasurementsType->MeasurementData.array[v2gSensorMeasurementsType_MeasurementData_currArrayIndex++]);
- /* valid EE */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- }
- }
- grammarID = 335;
- } else if (1==1) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- done = 1;
- }
- grammarID = 3;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 335:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MeasurementData), END_ELEMENT] */
- if (v2gSensorMeasurementsType_MeasurementData_currArrayIndex < v2gSensorMeasurementsType->MeasurementData.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- /* First(xsi:type)StartTag[CHARACTERS[UNSIGNED_INTEGER]] */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- if(errn == 0) {
- errn = encodeUnsignedInteger16(stream, v2gSensorMeasurementsType->MeasurementData.array[v2gSensorMeasurementsType_MeasurementData_currArrayIndex++]);
- /* valid EE */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- }
- }
- grammarID = 336;
- } else if (1==1) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- done = 1;
- }
- grammarID = 3;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 336:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MeasurementData), END_ELEMENT] */
- if (v2gSensorMeasurementsType_MeasurementData_currArrayIndex < v2gSensorMeasurementsType->MeasurementData.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- /* First(xsi:type)StartTag[CHARACTERS[UNSIGNED_INTEGER]] */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- if(errn == 0) {
- errn = encodeUnsignedInteger16(stream, v2gSensorMeasurementsType->MeasurementData.array[v2gSensorMeasurementsType_MeasurementData_currArrayIndex++]);
- /* valid EE */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- }
- }
- grammarID = 337;
- } else if (1==1) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- done = 1;
- }
- grammarID = 3;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 337:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MeasurementData), END_ELEMENT] */
- if (v2gSensorMeasurementsType_MeasurementData_currArrayIndex < v2gSensorMeasurementsType->MeasurementData.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- /* First(xsi:type)StartTag[CHARACTERS[UNSIGNED_INTEGER]] */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- if(errn == 0) {
- errn = encodeUnsignedInteger16(stream, v2gSensorMeasurementsType->MeasurementData.array[v2gSensorMeasurementsType_MeasurementData_currArrayIndex++]);
- /* valid EE */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- }
- }
- grammarID = 338;
- } else if (1==1) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- done = 1;
- }
- grammarID = 3;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 338:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MeasurementData), END_ELEMENT] */
- if (v2gSensorMeasurementsType_MeasurementData_currArrayIndex < v2gSensorMeasurementsType->MeasurementData.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- /* First(xsi:type)StartTag[CHARACTERS[UNSIGNED_INTEGER]] */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- if(errn == 0) {
- errn = encodeUnsignedInteger16(stream, v2gSensorMeasurementsType->MeasurementData.array[v2gSensorMeasurementsType_MeasurementData_currArrayIndex++]);
- /* valid EE */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- }
- }
- grammarID = 339;
- } else if (1==1) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- done = 1;
- }
- grammarID = 3;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 339:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MeasurementData), END_ELEMENT] */
- if (v2gSensorMeasurementsType_MeasurementData_currArrayIndex < v2gSensorMeasurementsType->MeasurementData.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- /* First(xsi:type)StartTag[CHARACTERS[UNSIGNED_INTEGER]] */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- if(errn == 0) {
- errn = encodeUnsignedInteger16(stream, v2gSensorMeasurementsType->MeasurementData.array[v2gSensorMeasurementsType_MeasurementData_currArrayIndex++]);
- /* valid EE */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- }
- }
- grammarID = 340;
- } else if (1==1) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- done = 1;
- }
- grammarID = 3;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 340:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MeasurementData), END_ELEMENT] */
- if (v2gSensorMeasurementsType_MeasurementData_currArrayIndex < v2gSensorMeasurementsType->MeasurementData.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- /* First(xsi:type)StartTag[CHARACTERS[UNSIGNED_INTEGER]] */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- if(errn == 0) {
- errn = encodeUnsignedInteger16(stream, v2gSensorMeasurementsType->MeasurementData.array[v2gSensorMeasurementsType_MeasurementData_currArrayIndex++]);
- /* valid EE */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- }
- }
- grammarID = 341;
- } else if (1==1) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- done = 1;
- }
- grammarID = 3;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 341:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MeasurementData), END_ELEMENT] */
- if (v2gSensorMeasurementsType_MeasurementData_currArrayIndex < v2gSensorMeasurementsType->MeasurementData.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- /* First(xsi:type)StartTag[CHARACTERS[UNSIGNED_INTEGER]] */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- if(errn == 0) {
- errn = encodeUnsignedInteger16(stream, v2gSensorMeasurementsType->MeasurementData.array[v2gSensorMeasurementsType_MeasurementData_currArrayIndex++]);
- /* valid EE */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- }
- }
- grammarID = 342;
- } else if (1==1) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- done = 1;
- }
- grammarID = 3;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 342:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MeasurementData), END_ELEMENT] */
- if (v2gSensorMeasurementsType_MeasurementData_currArrayIndex < v2gSensorMeasurementsType->MeasurementData.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- /* First(xsi:type)StartTag[CHARACTERS[UNSIGNED_INTEGER]] */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- if(errn == 0) {
- errn = encodeUnsignedInteger16(stream, v2gSensorMeasurementsType->MeasurementData.array[v2gSensorMeasurementsType_MeasurementData_currArrayIndex++]);
- /* valid EE */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- }
- }
- grammarID = 343;
- } else if (1==1) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- done = 1;
- }
- grammarID = 3;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 343:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MeasurementData), END_ELEMENT] */
- if (v2gSensorMeasurementsType_MeasurementData_currArrayIndex < v2gSensorMeasurementsType->MeasurementData.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- /* First(xsi:type)StartTag[CHARACTERS[UNSIGNED_INTEGER]] */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- if(errn == 0) {
- errn = encodeUnsignedInteger16(stream, v2gSensorMeasurementsType->MeasurementData.array[v2gSensorMeasurementsType_MeasurementData_currArrayIndex++]);
- /* valid EE */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- }
- }
- grammarID = 344;
- } else if (1==1) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- done = 1;
- }
- grammarID = 3;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 344:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MeasurementData), END_ELEMENT] */
- if (v2gSensorMeasurementsType_MeasurementData_currArrayIndex < v2gSensorMeasurementsType->MeasurementData.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- /* First(xsi:type)StartTag[CHARACTERS[UNSIGNED_INTEGER]] */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- if(errn == 0) {
- errn = encodeUnsignedInteger16(stream, v2gSensorMeasurementsType->MeasurementData.array[v2gSensorMeasurementsType_MeasurementData_currArrayIndex++]);
- /* valid EE */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- }
- }
- grammarID = 345;
- } else if (1==1) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- done = 1;
- }
- grammarID = 3;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 345:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MeasurementData), END_ELEMENT] */
- if (v2gSensorMeasurementsType_MeasurementData_currArrayIndex < v2gSensorMeasurementsType->MeasurementData.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- /* First(xsi:type)StartTag[CHARACTERS[UNSIGNED_INTEGER]] */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- if(errn == 0) {
- errn = encodeUnsignedInteger16(stream, v2gSensorMeasurementsType->MeasurementData.array[v2gSensorMeasurementsType_MeasurementData_currArrayIndex++]);
- /* valid EE */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- }
- }
- grammarID = 346;
- } else if (1==1) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- done = 1;
- }
- grammarID = 3;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 346:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MeasurementData), END_ELEMENT] */
- if (v2gSensorMeasurementsType_MeasurementData_currArrayIndex < v2gSensorMeasurementsType->MeasurementData.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- /* First(xsi:type)StartTag[CHARACTERS[UNSIGNED_INTEGER]] */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- if(errn == 0) {
- errn = encodeUnsignedInteger16(stream, v2gSensorMeasurementsType->MeasurementData.array[v2gSensorMeasurementsType_MeasurementData_currArrayIndex++]);
- /* valid EE */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- }
- }
- grammarID = 347;
- } else if (1==1) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- done = 1;
- }
- grammarID = 3;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 347:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MeasurementData), END_ELEMENT] */
- if (v2gSensorMeasurementsType_MeasurementData_currArrayIndex < v2gSensorMeasurementsType->MeasurementData.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- /* First(xsi:type)StartTag[CHARACTERS[UNSIGNED_INTEGER]] */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- if(errn == 0) {
- errn = encodeUnsignedInteger16(stream, v2gSensorMeasurementsType->MeasurementData.array[v2gSensorMeasurementsType_MeasurementData_currArrayIndex++]);
- /* valid EE */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- }
- }
- grammarID = 348;
- } else if (1==1) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- done = 1;
- }
- grammarID = 3;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 348:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MeasurementData), END_ELEMENT] */
- if (v2gSensorMeasurementsType_MeasurementData_currArrayIndex < v2gSensorMeasurementsType->MeasurementData.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- /* First(xsi:type)StartTag[CHARACTERS[UNSIGNED_INTEGER]] */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- if(errn == 0) {
- errn = encodeUnsignedInteger16(stream, v2gSensorMeasurementsType->MeasurementData.array[v2gSensorMeasurementsType_MeasurementData_currArrayIndex++]);
- /* valid EE */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- }
- }
- grammarID = 349;
- } else if (1==1) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- done = 1;
- }
- grammarID = 3;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 349:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MeasurementData), END_ELEMENT] */
- if (v2gSensorMeasurementsType_MeasurementData_currArrayIndex < v2gSensorMeasurementsType->MeasurementData.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- /* First(xsi:type)StartTag[CHARACTERS[UNSIGNED_INTEGER]] */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- if(errn == 0) {
- errn = encodeUnsignedInteger16(stream, v2gSensorMeasurementsType->MeasurementData.array[v2gSensorMeasurementsType_MeasurementData_currArrayIndex++]);
- /* valid EE */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- }
- }
- grammarID = 350;
- } else if (1==1) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- done = 1;
- }
- grammarID = 3;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 350:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MeasurementData), END_ELEMENT] */
- if (v2gSensorMeasurementsType_MeasurementData_currArrayIndex < v2gSensorMeasurementsType->MeasurementData.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- /* First(xsi:type)StartTag[CHARACTERS[UNSIGNED_INTEGER]] */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- if(errn == 0) {
- errn = encodeUnsignedInteger16(stream, v2gSensorMeasurementsType->MeasurementData.array[v2gSensorMeasurementsType_MeasurementData_currArrayIndex++]);
- /* valid EE */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- }
- }
- grammarID = 351;
- } else if (1==1) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- done = 1;
- }
- grammarID = 3;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 351:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MeasurementData), END_ELEMENT] */
- if (v2gSensorMeasurementsType_MeasurementData_currArrayIndex < v2gSensorMeasurementsType->MeasurementData.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- /* First(xsi:type)StartTag[CHARACTERS[UNSIGNED_INTEGER]] */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- if(errn == 0) {
- errn = encodeUnsignedInteger16(stream, v2gSensorMeasurementsType->MeasurementData.array[v2gSensorMeasurementsType_MeasurementData_currArrayIndex++]);
- /* valid EE */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- }
- }
- grammarID = 352;
- } else if (1==1) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- done = 1;
- }
- grammarID = 3;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 352:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MeasurementData), END_ELEMENT] */
- if (v2gSensorMeasurementsType_MeasurementData_currArrayIndex < v2gSensorMeasurementsType->MeasurementData.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- /* First(xsi:type)StartTag[CHARACTERS[UNSIGNED_INTEGER]] */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- if(errn == 0) {
- errn = encodeUnsignedInteger16(stream, v2gSensorMeasurementsType->MeasurementData.array[v2gSensorMeasurementsType_MeasurementData_currArrayIndex++]);
- /* valid EE */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- }
- }
- grammarID = 353;
- } else if (1==1) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- done = 1;
- }
- grammarID = 3;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 353:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MeasurementData), END_ELEMENT] */
- if (v2gSensorMeasurementsType_MeasurementData_currArrayIndex < v2gSensorMeasurementsType->MeasurementData.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- /* First(xsi:type)StartTag[CHARACTERS[UNSIGNED_INTEGER]] */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- if(errn == 0) {
- errn = encodeUnsignedInteger16(stream, v2gSensorMeasurementsType->MeasurementData.array[v2gSensorMeasurementsType_MeasurementData_currArrayIndex++]);
- /* valid EE */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- }
- }
- grammarID = 354;
- } else if (1==1) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- done = 1;
- }
- grammarID = 3;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 354:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MeasurementData), END_ELEMENT] */
- if (v2gSensorMeasurementsType_MeasurementData_currArrayIndex < v2gSensorMeasurementsType->MeasurementData.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- /* First(xsi:type)StartTag[CHARACTERS[UNSIGNED_INTEGER]] */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- if(errn == 0) {
- errn = encodeUnsignedInteger16(stream, v2gSensorMeasurementsType->MeasurementData.array[v2gSensorMeasurementsType_MeasurementData_currArrayIndex++]);
- /* valid EE */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- }
- }
- grammarID = 355;
- } else if (1==1) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- done = 1;
- }
- grammarID = 3;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 355:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MeasurementData), END_ELEMENT] */
- if (v2gSensorMeasurementsType_MeasurementData_currArrayIndex < v2gSensorMeasurementsType->MeasurementData.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- /* First(xsi:type)StartTag[CHARACTERS[UNSIGNED_INTEGER]] */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- if(errn == 0) {
- errn = encodeUnsignedInteger16(stream, v2gSensorMeasurementsType->MeasurementData.array[v2gSensorMeasurementsType_MeasurementData_currArrayIndex++]);
- /* valid EE */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- }
- }
- grammarID = 356;
- } else if (1==1) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- done = 1;
- }
- grammarID = 3;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 356:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MeasurementData), END_ELEMENT] */
- if (v2gSensorMeasurementsType_MeasurementData_currArrayIndex < v2gSensorMeasurementsType->MeasurementData.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- /* First(xsi:type)StartTag[CHARACTERS[UNSIGNED_INTEGER]] */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- if(errn == 0) {
- errn = encodeUnsignedInteger16(stream, v2gSensorMeasurementsType->MeasurementData.array[v2gSensorMeasurementsType_MeasurementData_currArrayIndex++]);
- /* valid EE */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- }
- }
- grammarID = 357;
- } else if (1==1) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- done = 1;
- }
- grammarID = 3;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 357:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MeasurementData), END_ELEMENT] */
- if (v2gSensorMeasurementsType_MeasurementData_currArrayIndex < v2gSensorMeasurementsType->MeasurementData.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- /* First(xsi:type)StartTag[CHARACTERS[UNSIGNED_INTEGER]] */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- if(errn == 0) {
- errn = encodeUnsignedInteger16(stream, v2gSensorMeasurementsType->MeasurementData.array[v2gSensorMeasurementsType_MeasurementData_currArrayIndex++]);
- /* valid EE */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- }
- }
- grammarID = 358;
- } else if (1==1) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- done = 1;
- }
- grammarID = 3;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 358:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MeasurementData), END_ELEMENT] */
- if (v2gSensorMeasurementsType_MeasurementData_currArrayIndex < v2gSensorMeasurementsType->MeasurementData.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- /* First(xsi:type)StartTag[CHARACTERS[UNSIGNED_INTEGER]] */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- if(errn == 0) {
- errn = encodeUnsignedInteger16(stream, v2gSensorMeasurementsType->MeasurementData.array[v2gSensorMeasurementsType_MeasurementData_currArrayIndex++]);
- /* valid EE */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- }
- }
- grammarID = 359;
- } else if (1==1) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- done = 1;
- }
- grammarID = 3;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 359:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MeasurementData), END_ELEMENT] */
- if (v2gSensorMeasurementsType_MeasurementData_currArrayIndex < v2gSensorMeasurementsType->MeasurementData.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- /* First(xsi:type)StartTag[CHARACTERS[UNSIGNED_INTEGER]] */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- if(errn == 0) {
- errn = encodeUnsignedInteger16(stream, v2gSensorMeasurementsType->MeasurementData.array[v2gSensorMeasurementsType_MeasurementData_currArrayIndex++]);
- /* valid EE */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- }
- }
- grammarID = 360;
- } else if (1==1) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- done = 1;
- }
- grammarID = 3;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 360:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MeasurementData), END_ELEMENT] */
- if (v2gSensorMeasurementsType_MeasurementData_currArrayIndex < v2gSensorMeasurementsType->MeasurementData.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- /* First(xsi:type)StartTag[CHARACTERS[UNSIGNED_INTEGER]] */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- if(errn == 0) {
- errn = encodeUnsignedInteger16(stream, v2gSensorMeasurementsType->MeasurementData.array[v2gSensorMeasurementsType_MeasurementData_currArrayIndex++]);
- /* valid EE */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- }
- }
- grammarID = 361;
- } else if (1==1) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- done = 1;
- }
- grammarID = 3;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 361:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MeasurementData), END_ELEMENT] */
- if (v2gSensorMeasurementsType_MeasurementData_currArrayIndex < v2gSensorMeasurementsType->MeasurementData.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- /* First(xsi:type)StartTag[CHARACTERS[UNSIGNED_INTEGER]] */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- if(errn == 0) {
- errn = encodeUnsignedInteger16(stream, v2gSensorMeasurementsType->MeasurementData.array[v2gSensorMeasurementsType_MeasurementData_currArrayIndex++]);
- /* valid EE */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- }
- }
- grammarID = 362;
- } else if (1==1) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- done = 1;
- }
- grammarID = 3;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 362:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MeasurementData), END_ELEMENT] */
- if (v2gSensorMeasurementsType_MeasurementData_currArrayIndex < v2gSensorMeasurementsType->MeasurementData.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- /* First(xsi:type)StartTag[CHARACTERS[UNSIGNED_INTEGER]] */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- if(errn == 0) {
- errn = encodeUnsignedInteger16(stream, v2gSensorMeasurementsType->MeasurementData.array[v2gSensorMeasurementsType_MeasurementData_currArrayIndex++]);
- /* valid EE */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- }
- }
- grammarID = 363;
- } else if (1==1) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- done = 1;
- }
- grammarID = 3;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 363:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MeasurementData), END_ELEMENT] */
- if (v2gSensorMeasurementsType_MeasurementData_currArrayIndex < v2gSensorMeasurementsType->MeasurementData.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- /* First(xsi:type)StartTag[CHARACTERS[UNSIGNED_INTEGER]] */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- if(errn == 0) {
- errn = encodeUnsignedInteger16(stream, v2gSensorMeasurementsType->MeasurementData.array[v2gSensorMeasurementsType_MeasurementData_currArrayIndex++]);
- /* valid EE */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- }
- }
- grammarID = 364;
- } else if (1==1) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- done = 1;
- }
- grammarID = 3;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 364:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MeasurementData), END_ELEMENT] */
- if (v2gSensorMeasurementsType_MeasurementData_currArrayIndex < v2gSensorMeasurementsType->MeasurementData.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- /* First(xsi:type)StartTag[CHARACTERS[UNSIGNED_INTEGER]] */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- if(errn == 0) {
- errn = encodeUnsignedInteger16(stream, v2gSensorMeasurementsType->MeasurementData.array[v2gSensorMeasurementsType_MeasurementData_currArrayIndex++]);
- /* valid EE */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- }
- }
- grammarID = 365;
- } else if (1==1) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- done = 1;
- }
- grammarID = 3;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 365:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MeasurementData), END_ELEMENT] */
- if (v2gSensorMeasurementsType_MeasurementData_currArrayIndex < v2gSensorMeasurementsType->MeasurementData.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- /* First(xsi:type)StartTag[CHARACTERS[UNSIGNED_INTEGER]] */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- if(errn == 0) {
- errn = encodeUnsignedInteger16(stream, v2gSensorMeasurementsType->MeasurementData.array[v2gSensorMeasurementsType_MeasurementData_currArrayIndex++]);
- /* valid EE */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- }
- }
- grammarID = 366;
- } else if (1==1) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- done = 1;
- }
- grammarID = 3;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 366:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MeasurementData), END_ELEMENT] */
- if (v2gSensorMeasurementsType_MeasurementData_currArrayIndex < v2gSensorMeasurementsType->MeasurementData.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- /* First(xsi:type)StartTag[CHARACTERS[UNSIGNED_INTEGER]] */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- if(errn == 0) {
- errn = encodeUnsignedInteger16(stream, v2gSensorMeasurementsType->MeasurementData.array[v2gSensorMeasurementsType_MeasurementData_currArrayIndex++]);
- /* valid EE */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- }
- }
- grammarID = 367;
- } else if (1==1) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- done = 1;
- }
- grammarID = 3;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 367:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MeasurementData), END_ELEMENT] */
- if (v2gSensorMeasurementsType_MeasurementData_currArrayIndex < v2gSensorMeasurementsType->MeasurementData.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- /* First(xsi:type)StartTag[CHARACTERS[UNSIGNED_INTEGER]] */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- if(errn == 0) {
- errn = encodeUnsignedInteger16(stream, v2gSensorMeasurementsType->MeasurementData.array[v2gSensorMeasurementsType_MeasurementData_currArrayIndex++]);
- /* valid EE */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- }
- }
- grammarID = 368;
- } else if (1==1) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- done = 1;
- }
- grammarID = 3;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 368:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MeasurementData), END_ELEMENT] */
- if (v2gSensorMeasurementsType_MeasurementData_currArrayIndex < v2gSensorMeasurementsType->MeasurementData.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- /* First(xsi:type)StartTag[CHARACTERS[UNSIGNED_INTEGER]] */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- if(errn == 0) {
- errn = encodeUnsignedInteger16(stream, v2gSensorMeasurementsType->MeasurementData.array[v2gSensorMeasurementsType_MeasurementData_currArrayIndex++]);
- /* valid EE */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- }
- }
- grammarID = 369;
- } else if (1==1) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- done = 1;
- }
- grammarID = 3;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 369:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MeasurementData), END_ELEMENT] */
- if (v2gSensorMeasurementsType_MeasurementData_currArrayIndex < v2gSensorMeasurementsType->MeasurementData.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- /* First(xsi:type)StartTag[CHARACTERS[UNSIGNED_INTEGER]] */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- if(errn == 0) {
- errn = encodeUnsignedInteger16(stream, v2gSensorMeasurementsType->MeasurementData.array[v2gSensorMeasurementsType_MeasurementData_currArrayIndex++]);
- /* valid EE */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- }
- }
- grammarID = 370;
- } else if (1==1) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- done = 1;
- }
- grammarID = 3;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 370:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MeasurementData), END_ELEMENT] */
- if (v2gSensorMeasurementsType_MeasurementData_currArrayIndex < v2gSensorMeasurementsType->MeasurementData.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- /* First(xsi:type)StartTag[CHARACTERS[UNSIGNED_INTEGER]] */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- if(errn == 0) {
- errn = encodeUnsignedInteger16(stream, v2gSensorMeasurementsType->MeasurementData.array[v2gSensorMeasurementsType_MeasurementData_currArrayIndex++]);
- /* valid EE */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- }
- }
- grammarID = 371;
- } else if (1==1) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- done = 1;
- }
- grammarID = 3;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 371:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MeasurementData), END_ELEMENT] */
- if (v2gSensorMeasurementsType_MeasurementData_currArrayIndex < v2gSensorMeasurementsType->MeasurementData.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- /* First(xsi:type)StartTag[CHARACTERS[UNSIGNED_INTEGER]] */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- if(errn == 0) {
- errn = encodeUnsignedInteger16(stream, v2gSensorMeasurementsType->MeasurementData.array[v2gSensorMeasurementsType_MeasurementData_currArrayIndex++]);
- /* valid EE */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- }
- }
- grammarID = 372;
- } else if (1==1) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- done = 1;
- }
- grammarID = 3;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 372:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MeasurementData), END_ELEMENT] */
- if (v2gSensorMeasurementsType_MeasurementData_currArrayIndex < v2gSensorMeasurementsType->MeasurementData.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- /* First(xsi:type)StartTag[CHARACTERS[UNSIGNED_INTEGER]] */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- if(errn == 0) {
- errn = encodeUnsignedInteger16(stream, v2gSensorMeasurementsType->MeasurementData.array[v2gSensorMeasurementsType_MeasurementData_currArrayIndex++]);
- /* valid EE */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- }
- }
- grammarID = 373;
- } else if (1==1) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- done = 1;
- }
- grammarID = 3;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 373:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MeasurementData), END_ELEMENT] */
- if (v2gSensorMeasurementsType_MeasurementData_currArrayIndex < v2gSensorMeasurementsType->MeasurementData.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- /* First(xsi:type)StartTag[CHARACTERS[UNSIGNED_INTEGER]] */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- if(errn == 0) {
- errn = encodeUnsignedInteger16(stream, v2gSensorMeasurementsType->MeasurementData.array[v2gSensorMeasurementsType_MeasurementData_currArrayIndex++]);
- /* valid EE */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- }
- }
- grammarID = 374;
- } else if (1==1) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- done = 1;
- }
- grammarID = 3;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 374:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MeasurementData), END_ELEMENT] */
- if (v2gSensorMeasurementsType_MeasurementData_currArrayIndex < v2gSensorMeasurementsType->MeasurementData.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- /* First(xsi:type)StartTag[CHARACTERS[UNSIGNED_INTEGER]] */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- if(errn == 0) {
- errn = encodeUnsignedInteger16(stream, v2gSensorMeasurementsType->MeasurementData.array[v2gSensorMeasurementsType_MeasurementData_currArrayIndex++]);
- /* valid EE */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- }
- }
- grammarID = 375;
- } else if (1==1) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- done = 1;
- }
- grammarID = 3;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 375:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MeasurementData), END_ELEMENT] */
- if (v2gSensorMeasurementsType_MeasurementData_currArrayIndex < v2gSensorMeasurementsType->MeasurementData.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- /* First(xsi:type)StartTag[CHARACTERS[UNSIGNED_INTEGER]] */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- if(errn == 0) {
- errn = encodeUnsignedInteger16(stream, v2gSensorMeasurementsType->MeasurementData.array[v2gSensorMeasurementsType_MeasurementData_currArrayIndex++]);
- /* valid EE */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- }
- }
- grammarID = 376;
- } else if (1==1) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- done = 1;
- }
- grammarID = 3;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 376:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MeasurementData), END_ELEMENT] */
- if (v2gSensorMeasurementsType_MeasurementData_currArrayIndex < v2gSensorMeasurementsType->MeasurementData.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- /* First(xsi:type)StartTag[CHARACTERS[UNSIGNED_INTEGER]] */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- if(errn == 0) {
- errn = encodeUnsignedInteger16(stream, v2gSensorMeasurementsType->MeasurementData.array[v2gSensorMeasurementsType_MeasurementData_currArrayIndex++]);
- /* valid EE */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- }
- }
- grammarID = 377;
- } else if (1==1) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- done = 1;
- }
- grammarID = 3;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 377:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MeasurementData), END_ELEMENT] */
- if (v2gSensorMeasurementsType_MeasurementData_currArrayIndex < v2gSensorMeasurementsType->MeasurementData.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- /* First(xsi:type)StartTag[CHARACTERS[UNSIGNED_INTEGER]] */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- if(errn == 0) {
- errn = encodeUnsignedInteger16(stream, v2gSensorMeasurementsType->MeasurementData.array[v2gSensorMeasurementsType_MeasurementData_currArrayIndex++]);
- /* valid EE */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- }
- }
- grammarID = 378;
- } else if (1==1) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- done = 1;
- }
- grammarID = 3;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 378:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MeasurementData), END_ELEMENT] */
- if (v2gSensorMeasurementsType_MeasurementData_currArrayIndex < v2gSensorMeasurementsType->MeasurementData.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- /* First(xsi:type)StartTag[CHARACTERS[UNSIGNED_INTEGER]] */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- if(errn == 0) {
- errn = encodeUnsignedInteger16(stream, v2gSensorMeasurementsType->MeasurementData.array[v2gSensorMeasurementsType_MeasurementData_currArrayIndex++]);
- /* valid EE */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- }
- }
- grammarID = 379;
- } else if (1==1) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- done = 1;
- }
- grammarID = 3;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 379:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MeasurementData), END_ELEMENT] */
- if (v2gSensorMeasurementsType_MeasurementData_currArrayIndex < v2gSensorMeasurementsType->MeasurementData.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- /* First(xsi:type)StartTag[CHARACTERS[UNSIGNED_INTEGER]] */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- if(errn == 0) {
- errn = encodeUnsignedInteger16(stream, v2gSensorMeasurementsType->MeasurementData.array[v2gSensorMeasurementsType_MeasurementData_currArrayIndex++]);
- /* valid EE */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- }
- }
- grammarID = 380;
- } else if (1==1) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- done = 1;
- }
- grammarID = 3;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 380:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MeasurementData), END_ELEMENT] */
- if (v2gSensorMeasurementsType_MeasurementData_currArrayIndex < v2gSensorMeasurementsType->MeasurementData.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- /* First(xsi:type)StartTag[CHARACTERS[UNSIGNED_INTEGER]] */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- if(errn == 0) {
- errn = encodeUnsignedInteger16(stream, v2gSensorMeasurementsType->MeasurementData.array[v2gSensorMeasurementsType_MeasurementData_currArrayIndex++]);
- /* valid EE */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- }
- }
- grammarID = 381;
- } else if (1==1) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- done = 1;
- }
- grammarID = 3;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 381:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MeasurementData), END_ELEMENT] */
- if (v2gSensorMeasurementsType_MeasurementData_currArrayIndex < v2gSensorMeasurementsType->MeasurementData.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- /* First(xsi:type)StartTag[CHARACTERS[UNSIGNED_INTEGER]] */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- if(errn == 0) {
- errn = encodeUnsignedInteger16(stream, v2gSensorMeasurementsType->MeasurementData.array[v2gSensorMeasurementsType_MeasurementData_currArrayIndex++]);
- /* valid EE */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- }
- }
- grammarID = 382;
- } else if (1==1) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- done = 1;
- }
- grammarID = 3;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 382:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MeasurementData), END_ELEMENT] */
- if (v2gSensorMeasurementsType_MeasurementData_currArrayIndex < v2gSensorMeasurementsType->MeasurementData.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- /* First(xsi:type)StartTag[CHARACTERS[UNSIGNED_INTEGER]] */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- if(errn == 0) {
- errn = encodeUnsignedInteger16(stream, v2gSensorMeasurementsType->MeasurementData.array[v2gSensorMeasurementsType_MeasurementData_currArrayIndex++]);
- /* valid EE */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- }
- }
- grammarID = 383;
- } else if (1==1) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- done = 1;
- }
- grammarID = 3;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 383:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MeasurementData), END_ELEMENT] */
- if (v2gSensorMeasurementsType_MeasurementData_currArrayIndex < v2gSensorMeasurementsType->MeasurementData.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- /* First(xsi:type)StartTag[CHARACTERS[UNSIGNED_INTEGER]] */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- if(errn == 0) {
- errn = encodeUnsignedInteger16(stream, v2gSensorMeasurementsType->MeasurementData.array[v2gSensorMeasurementsType_MeasurementData_currArrayIndex++]);
- /* valid EE */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- }
- }
- grammarID = 384;
- } else if (1==1) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- done = 1;
- }
- grammarID = 3;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 384:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MeasurementData), END_ELEMENT] */
- if (v2gSensorMeasurementsType_MeasurementData_currArrayIndex < v2gSensorMeasurementsType->MeasurementData.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- /* First(xsi:type)StartTag[CHARACTERS[UNSIGNED_INTEGER]] */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- if(errn == 0) {
- errn = encodeUnsignedInteger16(stream, v2gSensorMeasurementsType->MeasurementData.array[v2gSensorMeasurementsType_MeasurementData_currArrayIndex++]);
- /* valid EE */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- }
- }
- grammarID = 385;
- } else if (1==1) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- done = 1;
- }
- grammarID = 3;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 385:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MeasurementData), END_ELEMENT] */
- if (v2gSensorMeasurementsType_MeasurementData_currArrayIndex < v2gSensorMeasurementsType->MeasurementData.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- /* First(xsi:type)StartTag[CHARACTERS[UNSIGNED_INTEGER]] */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- if(errn == 0) {
- errn = encodeUnsignedInteger16(stream, v2gSensorMeasurementsType->MeasurementData.array[v2gSensorMeasurementsType_MeasurementData_currArrayIndex++]);
- /* valid EE */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- }
- }
- grammarID = 386;
- } else if (1==1) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- done = 1;
- }
- grammarID = 3;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 386:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MeasurementData), END_ELEMENT] */
- if (v2gSensorMeasurementsType_MeasurementData_currArrayIndex < v2gSensorMeasurementsType->MeasurementData.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- /* First(xsi:type)StartTag[CHARACTERS[UNSIGNED_INTEGER]] */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- if(errn == 0) {
- errn = encodeUnsignedInteger16(stream, v2gSensorMeasurementsType->MeasurementData.array[v2gSensorMeasurementsType_MeasurementData_currArrayIndex++]);
- /* valid EE */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- }
- }
- grammarID = 387;
- } else if (1==1) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- done = 1;
- }
- grammarID = 3;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 387:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MeasurementData), END_ELEMENT] */
- if (v2gSensorMeasurementsType_MeasurementData_currArrayIndex < v2gSensorMeasurementsType->MeasurementData.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- /* First(xsi:type)StartTag[CHARACTERS[UNSIGNED_INTEGER]] */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- if(errn == 0) {
- errn = encodeUnsignedInteger16(stream, v2gSensorMeasurementsType->MeasurementData.array[v2gSensorMeasurementsType_MeasurementData_currArrayIndex++]);
- /* valid EE */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- }
- }
- grammarID = 388;
- } else if (1==1) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- done = 1;
- }
- grammarID = 3;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 388:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MeasurementData), END_ELEMENT] */
- if (v2gSensorMeasurementsType_MeasurementData_currArrayIndex < v2gSensorMeasurementsType->MeasurementData.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- /* First(xsi:type)StartTag[CHARACTERS[UNSIGNED_INTEGER]] */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- if(errn == 0) {
- errn = encodeUnsignedInteger16(stream, v2gSensorMeasurementsType->MeasurementData.array[v2gSensorMeasurementsType_MeasurementData_currArrayIndex++]);
- /* valid EE */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- }
- }
- grammarID = 389;
- } else if (1==1) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- done = 1;
- }
- grammarID = 3;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 389:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MeasurementData), END_ELEMENT] */
- if (v2gSensorMeasurementsType_MeasurementData_currArrayIndex < v2gSensorMeasurementsType->MeasurementData.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- /* First(xsi:type)StartTag[CHARACTERS[UNSIGNED_INTEGER]] */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- if(errn == 0) {
- errn = encodeUnsignedInteger16(stream, v2gSensorMeasurementsType->MeasurementData.array[v2gSensorMeasurementsType_MeasurementData_currArrayIndex++]);
- /* valid EE */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- }
- }
- grammarID = 390;
- } else if (1==1) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- done = 1;
- }
- grammarID = 3;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 390:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MeasurementData), END_ELEMENT] */
- if (v2gSensorMeasurementsType_MeasurementData_currArrayIndex < v2gSensorMeasurementsType->MeasurementData.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- /* First(xsi:type)StartTag[CHARACTERS[UNSIGNED_INTEGER]] */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- if(errn == 0) {
- errn = encodeUnsignedInteger16(stream, v2gSensorMeasurementsType->MeasurementData.array[v2gSensorMeasurementsType_MeasurementData_currArrayIndex++]);
- /* valid EE */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- }
- }
- grammarID = 391;
- } else if (1==1) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- done = 1;
- }
- grammarID = 3;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 391:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MeasurementData), END_ELEMENT] */
- if (v2gSensorMeasurementsType_MeasurementData_currArrayIndex < v2gSensorMeasurementsType->MeasurementData.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- /* First(xsi:type)StartTag[CHARACTERS[UNSIGNED_INTEGER]] */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- if(errn == 0) {
- errn = encodeUnsignedInteger16(stream, v2gSensorMeasurementsType->MeasurementData.array[v2gSensorMeasurementsType_MeasurementData_currArrayIndex++]);
- /* valid EE */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- }
- }
- grammarID = 392;
- } else if (1==1) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- done = 1;
- }
- grammarID = 3;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 392:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MeasurementData), END_ELEMENT] */
- if (v2gSensorMeasurementsType_MeasurementData_currArrayIndex < v2gSensorMeasurementsType->MeasurementData.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- /* First(xsi:type)StartTag[CHARACTERS[UNSIGNED_INTEGER]] */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- if(errn == 0) {
- errn = encodeUnsignedInteger16(stream, v2gSensorMeasurementsType->MeasurementData.array[v2gSensorMeasurementsType_MeasurementData_currArrayIndex++]);
- /* valid EE */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- }
- }
- grammarID = 393;
- } else if (1==1) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- done = 1;
- }
- grammarID = 3;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 393:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MeasurementData), END_ELEMENT] */
- if (v2gSensorMeasurementsType_MeasurementData_currArrayIndex < v2gSensorMeasurementsType->MeasurementData.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- /* First(xsi:type)StartTag[CHARACTERS[UNSIGNED_INTEGER]] */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- if(errn == 0) {
- errn = encodeUnsignedInteger16(stream, v2gSensorMeasurementsType->MeasurementData.array[v2gSensorMeasurementsType_MeasurementData_currArrayIndex++]);
- /* valid EE */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- }
- }
- grammarID = 394;
- } else if (1==1) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- done = 1;
- }
- grammarID = 3;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 394:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MeasurementData), END_ELEMENT] */
- if (v2gSensorMeasurementsType_MeasurementData_currArrayIndex < v2gSensorMeasurementsType->MeasurementData.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- /* First(xsi:type)StartTag[CHARACTERS[UNSIGNED_INTEGER]] */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- if(errn == 0) {
- errn = encodeUnsignedInteger16(stream, v2gSensorMeasurementsType->MeasurementData.array[v2gSensorMeasurementsType_MeasurementData_currArrayIndex++]);
- /* valid EE */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- }
- }
- grammarID = 395;
- } else if (1==1) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- done = 1;
- }
- grammarID = 3;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 395:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MeasurementData), END_ELEMENT] */
- if (v2gSensorMeasurementsType_MeasurementData_currArrayIndex < v2gSensorMeasurementsType->MeasurementData.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- /* First(xsi:type)StartTag[CHARACTERS[UNSIGNED_INTEGER]] */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- if(errn == 0) {
- errn = encodeUnsignedInteger16(stream, v2gSensorMeasurementsType->MeasurementData.array[v2gSensorMeasurementsType_MeasurementData_currArrayIndex++]);
- /* valid EE */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- }
- }
- grammarID = 396;
- } else if (1==1) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- done = 1;
- }
- grammarID = 3;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 396:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MeasurementData), END_ELEMENT] */
- if (v2gSensorMeasurementsType_MeasurementData_currArrayIndex < v2gSensorMeasurementsType->MeasurementData.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- /* First(xsi:type)StartTag[CHARACTERS[UNSIGNED_INTEGER]] */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- if(errn == 0) {
- errn = encodeUnsignedInteger16(stream, v2gSensorMeasurementsType->MeasurementData.array[v2gSensorMeasurementsType_MeasurementData_currArrayIndex++]);
- /* valid EE */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- }
- }
- grammarID = 397;
- } else if (1==1) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- done = 1;
- }
- grammarID = 3;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 397:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MeasurementData), END_ELEMENT] */
- if (v2gSensorMeasurementsType_MeasurementData_currArrayIndex < v2gSensorMeasurementsType->MeasurementData.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- /* First(xsi:type)StartTag[CHARACTERS[UNSIGNED_INTEGER]] */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- if(errn == 0) {
- errn = encodeUnsignedInteger16(stream, v2gSensorMeasurementsType->MeasurementData.array[v2gSensorMeasurementsType_MeasurementData_currArrayIndex++]);
- /* valid EE */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- }
- }
- grammarID = 398;
- } else if (1==1) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- done = 1;
- }
- grammarID = 3;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 398:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MeasurementData), END_ELEMENT] */
- if (v2gSensorMeasurementsType_MeasurementData_currArrayIndex < v2gSensorMeasurementsType->MeasurementData.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- /* First(xsi:type)StartTag[CHARACTERS[UNSIGNED_INTEGER]] */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- if(errn == 0) {
- errn = encodeUnsignedInteger16(stream, v2gSensorMeasurementsType->MeasurementData.array[v2gSensorMeasurementsType_MeasurementData_currArrayIndex++]);
- /* valid EE */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- }
- }
- grammarID = 399;
- } else if (1==1) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- done = 1;
- }
- grammarID = 3;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 399:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MeasurementData), END_ELEMENT] */
- if (v2gSensorMeasurementsType_MeasurementData_currArrayIndex < v2gSensorMeasurementsType->MeasurementData.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- /* First(xsi:type)StartTag[CHARACTERS[UNSIGNED_INTEGER]] */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- if(errn == 0) {
- errn = encodeUnsignedInteger16(stream, v2gSensorMeasurementsType->MeasurementData.array[v2gSensorMeasurementsType_MeasurementData_currArrayIndex++]);
- /* valid EE */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- }
- }
- grammarID = 400;
- } else if (1==1) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- done = 1;
- }
- grammarID = 3;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 400:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MeasurementData), END_ELEMENT] */
- if (v2gSensorMeasurementsType_MeasurementData_currArrayIndex < v2gSensorMeasurementsType->MeasurementData.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- /* First(xsi:type)StartTag[CHARACTERS[UNSIGNED_INTEGER]] */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- if(errn == 0) {
- errn = encodeUnsignedInteger16(stream, v2gSensorMeasurementsType->MeasurementData.array[v2gSensorMeasurementsType_MeasurementData_currArrayIndex++]);
- /* valid EE */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- }
- }
- grammarID = 401;
- } else if (1==1) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- done = 1;
- }
- grammarID = 3;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 401:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MeasurementData), END_ELEMENT] */
- if (v2gSensorMeasurementsType_MeasurementData_currArrayIndex < v2gSensorMeasurementsType->MeasurementData.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- /* First(xsi:type)StartTag[CHARACTERS[UNSIGNED_INTEGER]] */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- if(errn == 0) {
- errn = encodeUnsignedInteger16(stream, v2gSensorMeasurementsType->MeasurementData.array[v2gSensorMeasurementsType_MeasurementData_currArrayIndex++]);
- /* valid EE */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- }
- }
- grammarID = 402;
- } else if (1==1) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- done = 1;
- }
- grammarID = 3;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 402:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MeasurementData), END_ELEMENT] */
- if (v2gSensorMeasurementsType_MeasurementData_currArrayIndex < v2gSensorMeasurementsType->MeasurementData.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- /* First(xsi:type)StartTag[CHARACTERS[UNSIGNED_INTEGER]] */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- if(errn == 0) {
- errn = encodeUnsignedInteger16(stream, v2gSensorMeasurementsType->MeasurementData.array[v2gSensorMeasurementsType_MeasurementData_currArrayIndex++]);
- /* valid EE */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- }
- }
- grammarID = 403;
- } else if (1==1) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- done = 1;
- }
- grammarID = 3;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 403:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MeasurementData), END_ELEMENT] */
- if (v2gSensorMeasurementsType_MeasurementData_currArrayIndex < v2gSensorMeasurementsType->MeasurementData.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- /* First(xsi:type)StartTag[CHARACTERS[UNSIGNED_INTEGER]] */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- if(errn == 0) {
- errn = encodeUnsignedInteger16(stream, v2gSensorMeasurementsType->MeasurementData.array[v2gSensorMeasurementsType_MeasurementData_currArrayIndex++]);
- /* valid EE */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- }
- }
- grammarID = 404;
- } else if (1==1) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- done = 1;
- }
- grammarID = 3;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 404:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MeasurementData), END_ELEMENT] */
- if (v2gSensorMeasurementsType_MeasurementData_currArrayIndex < v2gSensorMeasurementsType->MeasurementData.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- /* First(xsi:type)StartTag[CHARACTERS[UNSIGNED_INTEGER]] */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- if(errn == 0) {
- errn = encodeUnsignedInteger16(stream, v2gSensorMeasurementsType->MeasurementData.array[v2gSensorMeasurementsType_MeasurementData_currArrayIndex++]);
- /* valid EE */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- }
- }
- grammarID = 405;
- } else if (1==1) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- done = 1;
- }
- grammarID = 3;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 405:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MeasurementData), END_ELEMENT] */
- if (v2gSensorMeasurementsType_MeasurementData_currArrayIndex < v2gSensorMeasurementsType->MeasurementData.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- /* First(xsi:type)StartTag[CHARACTERS[UNSIGNED_INTEGER]] */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- if(errn == 0) {
- errn = encodeUnsignedInteger16(stream, v2gSensorMeasurementsType->MeasurementData.array[v2gSensorMeasurementsType_MeasurementData_currArrayIndex++]);
- /* valid EE */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- }
- }
- grammarID = 406;
- } else if (1==1) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- done = 1;
- }
- grammarID = 3;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 406:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MeasurementData), END_ELEMENT] */
- if (v2gSensorMeasurementsType_MeasurementData_currArrayIndex < v2gSensorMeasurementsType->MeasurementData.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- /* First(xsi:type)StartTag[CHARACTERS[UNSIGNED_INTEGER]] */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- if(errn == 0) {
- errn = encodeUnsignedInteger16(stream, v2gSensorMeasurementsType->MeasurementData.array[v2gSensorMeasurementsType_MeasurementData_currArrayIndex++]);
- /* valid EE */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- }
- }
- grammarID = 407;
- } else if (1==1) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- done = 1;
- }
- grammarID = 3;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 407:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MeasurementData), END_ELEMENT] */
- if (v2gSensorMeasurementsType_MeasurementData_currArrayIndex < v2gSensorMeasurementsType->MeasurementData.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- /* First(xsi:type)StartTag[CHARACTERS[UNSIGNED_INTEGER]] */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- if(errn == 0) {
- errn = encodeUnsignedInteger16(stream, v2gSensorMeasurementsType->MeasurementData.array[v2gSensorMeasurementsType_MeasurementData_currArrayIndex++]);
- /* valid EE */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- }
- }
- grammarID = 408;
- } else if (1==1) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- done = 1;
- }
- grammarID = 3;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 408:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MeasurementData), END_ELEMENT] */
- if (v2gSensorMeasurementsType_MeasurementData_currArrayIndex < v2gSensorMeasurementsType->MeasurementData.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- /* First(xsi:type)StartTag[CHARACTERS[UNSIGNED_INTEGER]] */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- if(errn == 0) {
- errn = encodeUnsignedInteger16(stream, v2gSensorMeasurementsType->MeasurementData.array[v2gSensorMeasurementsType_MeasurementData_currArrayIndex++]);
- /* valid EE */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- }
- }
- grammarID = 409;
- } else if (1==1) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- done = 1;
- }
- grammarID = 3;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 409:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MeasurementData), END_ELEMENT] */
- if (v2gSensorMeasurementsType_MeasurementData_currArrayIndex < v2gSensorMeasurementsType->MeasurementData.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- /* First(xsi:type)StartTag[CHARACTERS[UNSIGNED_INTEGER]] */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- if(errn == 0) {
- errn = encodeUnsignedInteger16(stream, v2gSensorMeasurementsType->MeasurementData.array[v2gSensorMeasurementsType_MeasurementData_currArrayIndex++]);
- /* valid EE */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- }
- }
- grammarID = 410;
- } else if (1==1) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- done = 1;
- }
- grammarID = 3;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 410:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MeasurementData), END_ELEMENT] */
- if (v2gSensorMeasurementsType_MeasurementData_currArrayIndex < v2gSensorMeasurementsType->MeasurementData.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- /* First(xsi:type)StartTag[CHARACTERS[UNSIGNED_INTEGER]] */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- if(errn == 0) {
- errn = encodeUnsignedInteger16(stream, v2gSensorMeasurementsType->MeasurementData.array[v2gSensorMeasurementsType_MeasurementData_currArrayIndex++]);
- /* valid EE */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- }
- }
- grammarID = 411;
- } else if (1==1) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- done = 1;
- }
- grammarID = 3;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 411:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MeasurementData), END_ELEMENT] */
- if (v2gSensorMeasurementsType_MeasurementData_currArrayIndex < v2gSensorMeasurementsType->MeasurementData.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- /* First(xsi:type)StartTag[CHARACTERS[UNSIGNED_INTEGER]] */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- if(errn == 0) {
- errn = encodeUnsignedInteger16(stream, v2gSensorMeasurementsType->MeasurementData.array[v2gSensorMeasurementsType_MeasurementData_currArrayIndex++]);
- /* valid EE */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- }
- }
- grammarID = 412;
- } else if (1==1) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- done = 1;
- }
- grammarID = 3;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 412:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MeasurementData), END_ELEMENT] */
- if (v2gSensorMeasurementsType_MeasurementData_currArrayIndex < v2gSensorMeasurementsType->MeasurementData.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- /* First(xsi:type)StartTag[CHARACTERS[UNSIGNED_INTEGER]] */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- if(errn == 0) {
- errn = encodeUnsignedInteger16(stream, v2gSensorMeasurementsType->MeasurementData.array[v2gSensorMeasurementsType_MeasurementData_currArrayIndex++]);
- /* valid EE */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- }
- }
- grammarID = 413;
- } else if (1==1) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- done = 1;
- }
- grammarID = 3;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 413:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MeasurementData), END_ELEMENT] */
- if (v2gSensorMeasurementsType_MeasurementData_currArrayIndex < v2gSensorMeasurementsType->MeasurementData.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- /* First(xsi:type)StartTag[CHARACTERS[UNSIGNED_INTEGER]] */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- if(errn == 0) {
- errn = encodeUnsignedInteger16(stream, v2gSensorMeasurementsType->MeasurementData.array[v2gSensorMeasurementsType_MeasurementData_currArrayIndex++]);
- /* valid EE */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- }
- }
- grammarID = 414;
- } else if (1==1) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- done = 1;
- }
- grammarID = 3;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 414:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MeasurementData), END_ELEMENT] */
- if (v2gSensorMeasurementsType_MeasurementData_currArrayIndex < v2gSensorMeasurementsType->MeasurementData.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- /* First(xsi:type)StartTag[CHARACTERS[UNSIGNED_INTEGER]] */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- if(errn == 0) {
- errn = encodeUnsignedInteger16(stream, v2gSensorMeasurementsType->MeasurementData.array[v2gSensorMeasurementsType_MeasurementData_currArrayIndex++]);
- /* valid EE */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- }
- }
- grammarID = 415;
- } else if (1==1) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- done = 1;
- }
- grammarID = 3;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 415:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MeasurementData), END_ELEMENT] */
- if (v2gSensorMeasurementsType_MeasurementData_currArrayIndex < v2gSensorMeasurementsType->MeasurementData.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- /* First(xsi:type)StartTag[CHARACTERS[UNSIGNED_INTEGER]] */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- if(errn == 0) {
- errn = encodeUnsignedInteger16(stream, v2gSensorMeasurementsType->MeasurementData.array[v2gSensorMeasurementsType_MeasurementData_currArrayIndex++]);
- /* valid EE */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- }
- }
- grammarID = 416;
- } else if (1==1) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- done = 1;
- }
- grammarID = 3;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 416:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MeasurementData), END_ELEMENT] */
- if (v2gSensorMeasurementsType_MeasurementData_currArrayIndex < v2gSensorMeasurementsType->MeasurementData.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- /* First(xsi:type)StartTag[CHARACTERS[UNSIGNED_INTEGER]] */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- if(errn == 0) {
- errn = encodeUnsignedInteger16(stream, v2gSensorMeasurementsType->MeasurementData.array[v2gSensorMeasurementsType_MeasurementData_currArrayIndex++]);
- /* valid EE */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- }
- }
- grammarID = 417;
- } else if (1==1) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- done = 1;
- }
- grammarID = 3;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 417:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MeasurementData), END_ELEMENT] */
- if (v2gSensorMeasurementsType_MeasurementData_currArrayIndex < v2gSensorMeasurementsType->MeasurementData.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- /* First(xsi:type)StartTag[CHARACTERS[UNSIGNED_INTEGER]] */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- if(errn == 0) {
- errn = encodeUnsignedInteger16(stream, v2gSensorMeasurementsType->MeasurementData.array[v2gSensorMeasurementsType_MeasurementData_currArrayIndex++]);
- /* valid EE */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- }
- }
- grammarID = 418;
- } else if (1==1) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- done = 1;
- }
- grammarID = 3;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 418:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MeasurementData), END_ELEMENT] */
- if (v2gSensorMeasurementsType_MeasurementData_currArrayIndex < v2gSensorMeasurementsType->MeasurementData.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- /* First(xsi:type)StartTag[CHARACTERS[UNSIGNED_INTEGER]] */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- if(errn == 0) {
- errn = encodeUnsignedInteger16(stream, v2gSensorMeasurementsType->MeasurementData.array[v2gSensorMeasurementsType_MeasurementData_currArrayIndex++]);
- /* valid EE */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- }
- }
- grammarID = 419;
- } else if (1==1) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- done = 1;
- }
- grammarID = 3;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 419:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MeasurementData), END_ELEMENT] */
- if (v2gSensorMeasurementsType_MeasurementData_currArrayIndex < v2gSensorMeasurementsType->MeasurementData.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- /* First(xsi:type)StartTag[CHARACTERS[UNSIGNED_INTEGER]] */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- if(errn == 0) {
- errn = encodeUnsignedInteger16(stream, v2gSensorMeasurementsType->MeasurementData.array[v2gSensorMeasurementsType_MeasurementData_currArrayIndex++]);
- /* valid EE */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- }
- }
- grammarID = 420;
- } else if (1==1) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- done = 1;
- }
- grammarID = 3;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 420:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MeasurementData), END_ELEMENT] */
- if (v2gSensorMeasurementsType_MeasurementData_currArrayIndex < v2gSensorMeasurementsType->MeasurementData.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- /* First(xsi:type)StartTag[CHARACTERS[UNSIGNED_INTEGER]] */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- if(errn == 0) {
- errn = encodeUnsignedInteger16(stream, v2gSensorMeasurementsType->MeasurementData.array[v2gSensorMeasurementsType_MeasurementData_currArrayIndex++]);
- /* valid EE */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- }
- }
- grammarID = 421;
- } else if (1==1) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- done = 1;
- }
- grammarID = 3;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 421:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MeasurementData), END_ELEMENT] */
- if (v2gSensorMeasurementsType_MeasurementData_currArrayIndex < v2gSensorMeasurementsType->MeasurementData.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- /* First(xsi:type)StartTag[CHARACTERS[UNSIGNED_INTEGER]] */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- if(errn == 0) {
- errn = encodeUnsignedInteger16(stream, v2gSensorMeasurementsType->MeasurementData.array[v2gSensorMeasurementsType_MeasurementData_currArrayIndex++]);
- /* valid EE */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- }
- }
- grammarID = 422;
- } else if (1==1) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- done = 1;
- }
- grammarID = 3;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 422:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MeasurementData), END_ELEMENT] */
- if (v2gSensorMeasurementsType_MeasurementData_currArrayIndex < v2gSensorMeasurementsType->MeasurementData.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- /* First(xsi:type)StartTag[CHARACTERS[UNSIGNED_INTEGER]] */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- if(errn == 0) {
- errn = encodeUnsignedInteger16(stream, v2gSensorMeasurementsType->MeasurementData.array[v2gSensorMeasurementsType_MeasurementData_currArrayIndex++]);
- /* valid EE */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- }
- }
- grammarID = 423;
- } else if (1==1) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- done = 1;
- }
- grammarID = 3;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 423:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MeasurementData), END_ELEMENT] */
- if (v2gSensorMeasurementsType_MeasurementData_currArrayIndex < v2gSensorMeasurementsType->MeasurementData.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- /* First(xsi:type)StartTag[CHARACTERS[UNSIGNED_INTEGER]] */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- if(errn == 0) {
- errn = encodeUnsignedInteger16(stream, v2gSensorMeasurementsType->MeasurementData.array[v2gSensorMeasurementsType_MeasurementData_currArrayIndex++]);
- /* valid EE */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- }
- }
- grammarID = 424;
- } else if (1==1) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- done = 1;
- }
- grammarID = 3;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 424:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MeasurementData), END_ELEMENT] */
- if (v2gSensorMeasurementsType_MeasurementData_currArrayIndex < v2gSensorMeasurementsType->MeasurementData.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- /* First(xsi:type)StartTag[CHARACTERS[UNSIGNED_INTEGER]] */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- if(errn == 0) {
- errn = encodeUnsignedInteger16(stream, v2gSensorMeasurementsType->MeasurementData.array[v2gSensorMeasurementsType_MeasurementData_currArrayIndex++]);
- /* valid EE */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- }
- }
- grammarID = 425;
- } else if (1==1) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- done = 1;
- }
- grammarID = 3;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 425:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MeasurementData), END_ELEMENT] */
- if (v2gSensorMeasurementsType_MeasurementData_currArrayIndex < v2gSensorMeasurementsType->MeasurementData.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- /* First(xsi:type)StartTag[CHARACTERS[UNSIGNED_INTEGER]] */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- if(errn == 0) {
- errn = encodeUnsignedInteger16(stream, v2gSensorMeasurementsType->MeasurementData.array[v2gSensorMeasurementsType_MeasurementData_currArrayIndex++]);
- /* valid EE */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- }
- }
- grammarID = 426;
- } else if (1==1) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- done = 1;
- }
- grammarID = 3;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 426:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MeasurementData), END_ELEMENT] */
- if (v2gSensorMeasurementsType_MeasurementData_currArrayIndex < v2gSensorMeasurementsType->MeasurementData.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- /* First(xsi:type)StartTag[CHARACTERS[UNSIGNED_INTEGER]] */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- if(errn == 0) {
- errn = encodeUnsignedInteger16(stream, v2gSensorMeasurementsType->MeasurementData.array[v2gSensorMeasurementsType_MeasurementData_currArrayIndex++]);
- /* valid EE */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- }
- }
- grammarID = 427;
- } else if (1==1) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- done = 1;
- }
- grammarID = 3;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 427:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MeasurementData), END_ELEMENT] */
- if (v2gSensorMeasurementsType_MeasurementData_currArrayIndex < v2gSensorMeasurementsType->MeasurementData.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- /* First(xsi:type)StartTag[CHARACTERS[UNSIGNED_INTEGER]] */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- if(errn == 0) {
- errn = encodeUnsignedInteger16(stream, v2gSensorMeasurementsType->MeasurementData.array[v2gSensorMeasurementsType_MeasurementData_currArrayIndex++]);
- /* valid EE */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- }
- }
- grammarID = 428;
- } else if (1==1) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- done = 1;
- }
- grammarID = 3;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 428:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MeasurementData), END_ELEMENT] */
- if (v2gSensorMeasurementsType_MeasurementData_currArrayIndex < v2gSensorMeasurementsType->MeasurementData.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- /* First(xsi:type)StartTag[CHARACTERS[UNSIGNED_INTEGER]] */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- if(errn == 0) {
- errn = encodeUnsignedInteger16(stream, v2gSensorMeasurementsType->MeasurementData.array[v2gSensorMeasurementsType_MeasurementData_currArrayIndex++]);
- /* valid EE */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- }
- }
- grammarID = 429;
- } else if (1==1) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- done = 1;
- }
- grammarID = 3;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 429:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MeasurementData), END_ELEMENT] */
- if (v2gSensorMeasurementsType_MeasurementData_currArrayIndex < v2gSensorMeasurementsType->MeasurementData.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- /* First(xsi:type)StartTag[CHARACTERS[UNSIGNED_INTEGER]] */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- if(errn == 0) {
- errn = encodeUnsignedInteger16(stream, v2gSensorMeasurementsType->MeasurementData.array[v2gSensorMeasurementsType_MeasurementData_currArrayIndex++]);
- /* valid EE */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- }
- }
- grammarID = 430;
- } else if (1==1) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- done = 1;
- }
- grammarID = 3;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 430:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MeasurementData), END_ELEMENT] */
- if (v2gSensorMeasurementsType_MeasurementData_currArrayIndex < v2gSensorMeasurementsType->MeasurementData.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- /* First(xsi:type)StartTag[CHARACTERS[UNSIGNED_INTEGER]] */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- if(errn == 0) {
- errn = encodeUnsignedInteger16(stream, v2gSensorMeasurementsType->MeasurementData.array[v2gSensorMeasurementsType_MeasurementData_currArrayIndex++]);
- /* valid EE */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- }
- }
- grammarID = 431;
- } else if (1==1) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- done = 1;
- }
- grammarID = 3;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 431:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MeasurementData), END_ELEMENT] */
- if (v2gSensorMeasurementsType_MeasurementData_currArrayIndex < v2gSensorMeasurementsType->MeasurementData.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- /* First(xsi:type)StartTag[CHARACTERS[UNSIGNED_INTEGER]] */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- if(errn == 0) {
- errn = encodeUnsignedInteger16(stream, v2gSensorMeasurementsType->MeasurementData.array[v2gSensorMeasurementsType_MeasurementData_currArrayIndex++]);
- /* valid EE */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- }
- }
- grammarID = 432;
- } else if (1==1) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- done = 1;
- }
- grammarID = 3;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 432:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MeasurementData), END_ELEMENT] */
- if (v2gSensorMeasurementsType_MeasurementData_currArrayIndex < v2gSensorMeasurementsType->MeasurementData.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- /* First(xsi:type)StartTag[CHARACTERS[UNSIGNED_INTEGER]] */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- if(errn == 0) {
- errn = encodeUnsignedInteger16(stream, v2gSensorMeasurementsType->MeasurementData.array[v2gSensorMeasurementsType_MeasurementData_currArrayIndex++]);
- /* valid EE */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- }
- }
- grammarID = 433;
- } else if (1==1) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- done = 1;
- }
- grammarID = 3;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 433:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MeasurementData), END_ELEMENT] */
- if (v2gSensorMeasurementsType_MeasurementData_currArrayIndex < v2gSensorMeasurementsType->MeasurementData.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- /* First(xsi:type)StartTag[CHARACTERS[UNSIGNED_INTEGER]] */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- if(errn == 0) {
- errn = encodeUnsignedInteger16(stream, v2gSensorMeasurementsType->MeasurementData.array[v2gSensorMeasurementsType_MeasurementData_currArrayIndex++]);
- /* valid EE */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- }
- }
- grammarID = 434;
- } else if (1==1) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- done = 1;
- }
- grammarID = 3;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 434:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MeasurementData), END_ELEMENT] */
- if (v2gSensorMeasurementsType_MeasurementData_currArrayIndex < v2gSensorMeasurementsType->MeasurementData.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- /* First(xsi:type)StartTag[CHARACTERS[UNSIGNED_INTEGER]] */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- if(errn == 0) {
- errn = encodeUnsignedInteger16(stream, v2gSensorMeasurementsType->MeasurementData.array[v2gSensorMeasurementsType_MeasurementData_currArrayIndex++]);
- /* valid EE */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- }
- }
- grammarID = 435;
- } else if (1==1) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- done = 1;
- }
- grammarID = 3;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 435:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MeasurementData), END_ELEMENT] */
- if (v2gSensorMeasurementsType_MeasurementData_currArrayIndex < v2gSensorMeasurementsType->MeasurementData.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- /* First(xsi:type)StartTag[CHARACTERS[UNSIGNED_INTEGER]] */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- if(errn == 0) {
- errn = encodeUnsignedInteger16(stream, v2gSensorMeasurementsType->MeasurementData.array[v2gSensorMeasurementsType_MeasurementData_currArrayIndex++]);
- /* valid EE */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- }
- }
- grammarID = 436;
- } else if (1==1) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- done = 1;
- }
- grammarID = 3;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 436:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MeasurementData), END_ELEMENT] */
- if (v2gSensorMeasurementsType_MeasurementData_currArrayIndex < v2gSensorMeasurementsType->MeasurementData.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- /* First(xsi:type)StartTag[CHARACTERS[UNSIGNED_INTEGER]] */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- if(errn == 0) {
- errn = encodeUnsignedInteger16(stream, v2gSensorMeasurementsType->MeasurementData.array[v2gSensorMeasurementsType_MeasurementData_currArrayIndex++]);
- /* valid EE */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- }
- }
- grammarID = 437;
- } else if (1==1) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- done = 1;
- }
- grammarID = 3;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 437:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MeasurementData), END_ELEMENT] */
- if (v2gSensorMeasurementsType_MeasurementData_currArrayIndex < v2gSensorMeasurementsType->MeasurementData.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- /* First(xsi:type)StartTag[CHARACTERS[UNSIGNED_INTEGER]] */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- if(errn == 0) {
- errn = encodeUnsignedInteger16(stream, v2gSensorMeasurementsType->MeasurementData.array[v2gSensorMeasurementsType_MeasurementData_currArrayIndex++]);
- /* valid EE */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- }
- }
- grammarID = 438;
- } else if (1==1) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- done = 1;
- }
- grammarID = 3;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 438:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MeasurementData), END_ELEMENT] */
- if (v2gSensorMeasurementsType_MeasurementData_currArrayIndex < v2gSensorMeasurementsType->MeasurementData.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- /* First(xsi:type)StartTag[CHARACTERS[UNSIGNED_INTEGER]] */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- if(errn == 0) {
- errn = encodeUnsignedInteger16(stream, v2gSensorMeasurementsType->MeasurementData.array[v2gSensorMeasurementsType_MeasurementData_currArrayIndex++]);
- /* valid EE */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- }
- }
- grammarID = 439;
- } else if (1==1) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- done = 1;
- }
- grammarID = 3;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 439:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MeasurementData), END_ELEMENT] */
- if (v2gSensorMeasurementsType_MeasurementData_currArrayIndex < v2gSensorMeasurementsType->MeasurementData.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- /* First(xsi:type)StartTag[CHARACTERS[UNSIGNED_INTEGER]] */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- if(errn == 0) {
- errn = encodeUnsignedInteger16(stream, v2gSensorMeasurementsType->MeasurementData.array[v2gSensorMeasurementsType_MeasurementData_currArrayIndex++]);
- /* valid EE */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- }
- }
- grammarID = 440;
- } else if (1==1) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- done = 1;
- }
- grammarID = 3;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 440:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MeasurementData), END_ELEMENT] */
- if (v2gSensorMeasurementsType_MeasurementData_currArrayIndex < v2gSensorMeasurementsType->MeasurementData.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- /* First(xsi:type)StartTag[CHARACTERS[UNSIGNED_INTEGER]] */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- if(errn == 0) {
- errn = encodeUnsignedInteger16(stream, v2gSensorMeasurementsType->MeasurementData.array[v2gSensorMeasurementsType_MeasurementData_currArrayIndex++]);
- /* valid EE */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- }
- }
- grammarID = 441;
- } else if (1==1) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- done = 1;
- }
- grammarID = 3;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 441:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MeasurementData), END_ELEMENT] */
- if (v2gSensorMeasurementsType_MeasurementData_currArrayIndex < v2gSensorMeasurementsType->MeasurementData.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- /* First(xsi:type)StartTag[CHARACTERS[UNSIGNED_INTEGER]] */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- if(errn == 0) {
- errn = encodeUnsignedInteger16(stream, v2gSensorMeasurementsType->MeasurementData.array[v2gSensorMeasurementsType_MeasurementData_currArrayIndex++]);
- /* valid EE */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- }
- }
- grammarID = 442;
- } else if (1==1) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- done = 1;
- }
- grammarID = 3;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 442:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MeasurementData), END_ELEMENT] */
- if (v2gSensorMeasurementsType_MeasurementData_currArrayIndex < v2gSensorMeasurementsType->MeasurementData.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- /* First(xsi:type)StartTag[CHARACTERS[UNSIGNED_INTEGER]] */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- if(errn == 0) {
- errn = encodeUnsignedInteger16(stream, v2gSensorMeasurementsType->MeasurementData.array[v2gSensorMeasurementsType_MeasurementData_currArrayIndex++]);
- /* valid EE */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- }
- }
- grammarID = 443;
- } else if (1==1) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- done = 1;
- }
- grammarID = 3;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 443:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MeasurementData), END_ELEMENT] */
- if (v2gSensorMeasurementsType_MeasurementData_currArrayIndex < v2gSensorMeasurementsType->MeasurementData.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- /* First(xsi:type)StartTag[CHARACTERS[UNSIGNED_INTEGER]] */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- if(errn == 0) {
- errn = encodeUnsignedInteger16(stream, v2gSensorMeasurementsType->MeasurementData.array[v2gSensorMeasurementsType_MeasurementData_currArrayIndex++]);
- /* valid EE */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- }
- }
- grammarID = 444;
- } else if (1==1) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- done = 1;
- }
- grammarID = 3;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 444:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MeasurementData), END_ELEMENT] */
- if (v2gSensorMeasurementsType_MeasurementData_currArrayIndex < v2gSensorMeasurementsType->MeasurementData.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- /* First(xsi:type)StartTag[CHARACTERS[UNSIGNED_INTEGER]] */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- if(errn == 0) {
- errn = encodeUnsignedInteger16(stream, v2gSensorMeasurementsType->MeasurementData.array[v2gSensorMeasurementsType_MeasurementData_currArrayIndex++]);
- /* valid EE */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- }
- }
- grammarID = 445;
- } else if (1==1) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- done = 1;
- }
- grammarID = 3;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 445:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MeasurementData), END_ELEMENT] */
- if (v2gSensorMeasurementsType_MeasurementData_currArrayIndex < v2gSensorMeasurementsType->MeasurementData.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- /* First(xsi:type)StartTag[CHARACTERS[UNSIGNED_INTEGER]] */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- if(errn == 0) {
- errn = encodeUnsignedInteger16(stream, v2gSensorMeasurementsType->MeasurementData.array[v2gSensorMeasurementsType_MeasurementData_currArrayIndex++]);
- /* valid EE */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- }
- }
- grammarID = 446;
- } else if (1==1) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- done = 1;
- }
- grammarID = 3;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 446:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MeasurementData), END_ELEMENT] */
- if (v2gSensorMeasurementsType_MeasurementData_currArrayIndex < v2gSensorMeasurementsType->MeasurementData.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- /* First(xsi:type)StartTag[CHARACTERS[UNSIGNED_INTEGER]] */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- if(errn == 0) {
- errn = encodeUnsignedInteger16(stream, v2gSensorMeasurementsType->MeasurementData.array[v2gSensorMeasurementsType_MeasurementData_currArrayIndex++]);
- /* valid EE */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- }
- }
- grammarID = 447;
- } else if (1==1) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- done = 1;
- }
- grammarID = 3;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 447:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MeasurementData), END_ELEMENT] */
- if (v2gSensorMeasurementsType_MeasurementData_currArrayIndex < v2gSensorMeasurementsType->MeasurementData.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- /* First(xsi:type)StartTag[CHARACTERS[UNSIGNED_INTEGER]] */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- if(errn == 0) {
- errn = encodeUnsignedInteger16(stream, v2gSensorMeasurementsType->MeasurementData.array[v2gSensorMeasurementsType_MeasurementData_currArrayIndex++]);
- /* valid EE */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- }
- }
- grammarID = 448;
- } else if (1==1) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- done = 1;
- }
- grammarID = 3;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 448:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MeasurementData), END_ELEMENT] */
- if (v2gSensorMeasurementsType_MeasurementData_currArrayIndex < v2gSensorMeasurementsType->MeasurementData.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- /* First(xsi:type)StartTag[CHARACTERS[UNSIGNED_INTEGER]] */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- if(errn == 0) {
- errn = encodeUnsignedInteger16(stream, v2gSensorMeasurementsType->MeasurementData.array[v2gSensorMeasurementsType_MeasurementData_currArrayIndex++]);
- /* valid EE */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- }
- }
- grammarID = 449;
- } else if (1==1) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- done = 1;
- }
- grammarID = 3;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 449:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MeasurementData), END_ELEMENT] */
- if (v2gSensorMeasurementsType_MeasurementData_currArrayIndex < v2gSensorMeasurementsType->MeasurementData.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- /* First(xsi:type)StartTag[CHARACTERS[UNSIGNED_INTEGER]] */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- if(errn == 0) {
- errn = encodeUnsignedInteger16(stream, v2gSensorMeasurementsType->MeasurementData.array[v2gSensorMeasurementsType_MeasurementData_currArrayIndex++]);
- /* valid EE */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- }
- }
- grammarID = 450;
- } else if (1==1) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- done = 1;
- }
- grammarID = 3;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 450:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MeasurementData), END_ELEMENT] */
- if (v2gSensorMeasurementsType_MeasurementData_currArrayIndex < v2gSensorMeasurementsType->MeasurementData.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- /* First(xsi:type)StartTag[CHARACTERS[UNSIGNED_INTEGER]] */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- if(errn == 0) {
- errn = encodeUnsignedInteger16(stream, v2gSensorMeasurementsType->MeasurementData.array[v2gSensorMeasurementsType_MeasurementData_currArrayIndex++]);
- /* valid EE */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- }
- }
- grammarID = 451;
- } else if (1==1) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- done = 1;
- }
- grammarID = 3;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 451:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MeasurementData), END_ELEMENT] */
- if (v2gSensorMeasurementsType_MeasurementData_currArrayIndex < v2gSensorMeasurementsType->MeasurementData.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- /* First(xsi:type)StartTag[CHARACTERS[UNSIGNED_INTEGER]] */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- if(errn == 0) {
- errn = encodeUnsignedInteger16(stream, v2gSensorMeasurementsType->MeasurementData.array[v2gSensorMeasurementsType_MeasurementData_currArrayIndex++]);
- /* valid EE */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- }
- }
- grammarID = 452;
- } else if (1==1) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- done = 1;
- }
- grammarID = 3;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 452:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MeasurementData), END_ELEMENT] */
- if (v2gSensorMeasurementsType_MeasurementData_currArrayIndex < v2gSensorMeasurementsType->MeasurementData.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- /* First(xsi:type)StartTag[CHARACTERS[UNSIGNED_INTEGER]] */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- if(errn == 0) {
- errn = encodeUnsignedInteger16(stream, v2gSensorMeasurementsType->MeasurementData.array[v2gSensorMeasurementsType_MeasurementData_currArrayIndex++]);
- /* valid EE */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- }
- }
- grammarID = 453;
- } else if (1==1) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- done = 1;
- }
- grammarID = 3;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 453:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MeasurementData), END_ELEMENT] */
- if (v2gSensorMeasurementsType_MeasurementData_currArrayIndex < v2gSensorMeasurementsType->MeasurementData.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- /* First(xsi:type)StartTag[CHARACTERS[UNSIGNED_INTEGER]] */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- if(errn == 0) {
- errn = encodeUnsignedInteger16(stream, v2gSensorMeasurementsType->MeasurementData.array[v2gSensorMeasurementsType_MeasurementData_currArrayIndex++]);
- /* valid EE */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- }
- }
- grammarID = 454;
- } else if (1==1) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- done = 1;
- }
- grammarID = 3;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 454:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MeasurementData), END_ELEMENT] */
- if (v2gSensorMeasurementsType_MeasurementData_currArrayIndex < v2gSensorMeasurementsType->MeasurementData.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- /* First(xsi:type)StartTag[CHARACTERS[UNSIGNED_INTEGER]] */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- if(errn == 0) {
- errn = encodeUnsignedInteger16(stream, v2gSensorMeasurementsType->MeasurementData.array[v2gSensorMeasurementsType_MeasurementData_currArrayIndex++]);
- /* valid EE */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- }
- }
- grammarID = 455;
- } else if (1==1) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- done = 1;
- }
- grammarID = 3;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 455:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MeasurementData), END_ELEMENT] */
- if (v2gSensorMeasurementsType_MeasurementData_currArrayIndex < v2gSensorMeasurementsType->MeasurementData.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- /* First(xsi:type)StartTag[CHARACTERS[UNSIGNED_INTEGER]] */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- if(errn == 0) {
- errn = encodeUnsignedInteger16(stream, v2gSensorMeasurementsType->MeasurementData.array[v2gSensorMeasurementsType_MeasurementData_currArrayIndex++]);
- /* valid EE */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- }
- }
- grammarID = 456;
- } else if (1==1) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- done = 1;
- }
- grammarID = 3;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 456:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MeasurementData), END_ELEMENT] */
- if (v2gSensorMeasurementsType_MeasurementData_currArrayIndex < v2gSensorMeasurementsType->MeasurementData.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- /* First(xsi:type)StartTag[CHARACTERS[UNSIGNED_INTEGER]] */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- if(errn == 0) {
- errn = encodeUnsignedInteger16(stream, v2gSensorMeasurementsType->MeasurementData.array[v2gSensorMeasurementsType_MeasurementData_currArrayIndex++]);
- /* valid EE */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- }
- }
- grammarID = 457;
- } else if (1==1) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- done = 1;
- }
- grammarID = 3;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 457:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MeasurementData), END_ELEMENT] */
- if (v2gSensorMeasurementsType_MeasurementData_currArrayIndex < v2gSensorMeasurementsType->MeasurementData.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- /* First(xsi:type)StartTag[CHARACTERS[UNSIGNED_INTEGER]] */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- if(errn == 0) {
- errn = encodeUnsignedInteger16(stream, v2gSensorMeasurementsType->MeasurementData.array[v2gSensorMeasurementsType_MeasurementData_currArrayIndex++]);
- /* valid EE */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- }
- }
- grammarID = 458;
- } else if (1==1) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- done = 1;
- }
- grammarID = 3;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 458:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MeasurementData), END_ELEMENT] */
- if (v2gSensorMeasurementsType_MeasurementData_currArrayIndex < v2gSensorMeasurementsType->MeasurementData.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- /* First(xsi:type)StartTag[CHARACTERS[UNSIGNED_INTEGER]] */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- if(errn == 0) {
- errn = encodeUnsignedInteger16(stream, v2gSensorMeasurementsType->MeasurementData.array[v2gSensorMeasurementsType_MeasurementData_currArrayIndex++]);
- /* valid EE */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- }
- }
- grammarID = 459;
- } else if (1==1) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- done = 1;
- }
- grammarID = 3;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 459:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MeasurementData), END_ELEMENT] */
- if (v2gSensorMeasurementsType_MeasurementData_currArrayIndex < v2gSensorMeasurementsType->MeasurementData.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- /* First(xsi:type)StartTag[CHARACTERS[UNSIGNED_INTEGER]] */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- if(errn == 0) {
- errn = encodeUnsignedInteger16(stream, v2gSensorMeasurementsType->MeasurementData.array[v2gSensorMeasurementsType_MeasurementData_currArrayIndex++]);
- /* valid EE */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- }
- }
- grammarID = 460;
- } else if (1==1) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- done = 1;
- }
- grammarID = 3;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 460:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MeasurementData), END_ELEMENT] */
- if (v2gSensorMeasurementsType_MeasurementData_currArrayIndex < v2gSensorMeasurementsType->MeasurementData.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- /* First(xsi:type)StartTag[CHARACTERS[UNSIGNED_INTEGER]] */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- if(errn == 0) {
- errn = encodeUnsignedInteger16(stream, v2gSensorMeasurementsType->MeasurementData.array[v2gSensorMeasurementsType_MeasurementData_currArrayIndex++]);
- /* valid EE */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- }
- }
- grammarID = 461;
- } else if (1==1) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- done = 1;
- }
- grammarID = 3;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 461:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MeasurementData), END_ELEMENT] */
- if (v2gSensorMeasurementsType_MeasurementData_currArrayIndex < v2gSensorMeasurementsType->MeasurementData.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- /* First(xsi:type)StartTag[CHARACTERS[UNSIGNED_INTEGER]] */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- if(errn == 0) {
- errn = encodeUnsignedInteger16(stream, v2gSensorMeasurementsType->MeasurementData.array[v2gSensorMeasurementsType_MeasurementData_currArrayIndex++]);
- /* valid EE */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- }
- }
- grammarID = 462;
- } else if (1==1) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- done = 1;
- }
- grammarID = 3;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 462:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MeasurementData), END_ELEMENT] */
- if (v2gSensorMeasurementsType_MeasurementData_currArrayIndex < v2gSensorMeasurementsType->MeasurementData.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- /* First(xsi:type)StartTag[CHARACTERS[UNSIGNED_INTEGER]] */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- if(errn == 0) {
- errn = encodeUnsignedInteger16(stream, v2gSensorMeasurementsType->MeasurementData.array[v2gSensorMeasurementsType_MeasurementData_currArrayIndex++]);
- /* valid EE */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- }
- }
- grammarID = 463;
- } else if (1==1) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- done = 1;
- }
- grammarID = 3;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 463:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MeasurementData), END_ELEMENT] */
- if (v2gSensorMeasurementsType_MeasurementData_currArrayIndex < v2gSensorMeasurementsType->MeasurementData.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- /* First(xsi:type)StartTag[CHARACTERS[UNSIGNED_INTEGER]] */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- if(errn == 0) {
- errn = encodeUnsignedInteger16(stream, v2gSensorMeasurementsType->MeasurementData.array[v2gSensorMeasurementsType_MeasurementData_currArrayIndex++]);
- /* valid EE */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- }
- }
- grammarID = 464;
- } else if (1==1) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- done = 1;
- }
- grammarID = 3;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 464:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MeasurementData), END_ELEMENT] */
- if (v2gSensorMeasurementsType_MeasurementData_currArrayIndex < v2gSensorMeasurementsType->MeasurementData.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- /* First(xsi:type)StartTag[CHARACTERS[UNSIGNED_INTEGER]] */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- if(errn == 0) {
- errn = encodeUnsignedInteger16(stream, v2gSensorMeasurementsType->MeasurementData.array[v2gSensorMeasurementsType_MeasurementData_currArrayIndex++]);
- /* valid EE */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- }
- }
- grammarID = 465;
- } else if (1==1) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- done = 1;
- }
- grammarID = 3;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 465:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MeasurementData), END_ELEMENT] */
- if (v2gSensorMeasurementsType_MeasurementData_currArrayIndex < v2gSensorMeasurementsType->MeasurementData.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- /* First(xsi:type)StartTag[CHARACTERS[UNSIGNED_INTEGER]] */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- if(errn == 0) {
- errn = encodeUnsignedInteger16(stream, v2gSensorMeasurementsType->MeasurementData.array[v2gSensorMeasurementsType_MeasurementData_currArrayIndex++]);
- /* valid EE */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- }
- }
- grammarID = 466;
- } else if (1==1) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- done = 1;
- }
- grammarID = 3;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 466:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MeasurementData), END_ELEMENT] */
- if (v2gSensorMeasurementsType_MeasurementData_currArrayIndex < v2gSensorMeasurementsType->MeasurementData.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- /* First(xsi:type)StartTag[CHARACTERS[UNSIGNED_INTEGER]] */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- if(errn == 0) {
- errn = encodeUnsignedInteger16(stream, v2gSensorMeasurementsType->MeasurementData.array[v2gSensorMeasurementsType_MeasurementData_currArrayIndex++]);
- /* valid EE */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- }
- }
- grammarID = 467;
- } else if (1==1) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- done = 1;
- }
- grammarID = 3;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 467:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MeasurementData), END_ELEMENT] */
- if (v2gSensorMeasurementsType_MeasurementData_currArrayIndex < v2gSensorMeasurementsType->MeasurementData.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- /* First(xsi:type)StartTag[CHARACTERS[UNSIGNED_INTEGER]] */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- if(errn == 0) {
- errn = encodeUnsignedInteger16(stream, v2gSensorMeasurementsType->MeasurementData.array[v2gSensorMeasurementsType_MeasurementData_currArrayIndex++]);
- /* valid EE */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- }
- }
- grammarID = 468;
- } else if (1==1) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- done = 1;
- }
- grammarID = 3;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 468:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MeasurementData), END_ELEMENT] */
- if (v2gSensorMeasurementsType_MeasurementData_currArrayIndex < v2gSensorMeasurementsType->MeasurementData.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- /* First(xsi:type)StartTag[CHARACTERS[UNSIGNED_INTEGER]] */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- if(errn == 0) {
- errn = encodeUnsignedInteger16(stream, v2gSensorMeasurementsType->MeasurementData.array[v2gSensorMeasurementsType_MeasurementData_currArrayIndex++]);
- /* valid EE */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- }
- }
- grammarID = 469;
- } else if (1==1) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- done = 1;
- }
- grammarID = 3;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 469:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MeasurementData), END_ELEMENT] */
- if (v2gSensorMeasurementsType_MeasurementData_currArrayIndex < v2gSensorMeasurementsType->MeasurementData.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- /* First(xsi:type)StartTag[CHARACTERS[UNSIGNED_INTEGER]] */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- if(errn == 0) {
- errn = encodeUnsignedInteger16(stream, v2gSensorMeasurementsType->MeasurementData.array[v2gSensorMeasurementsType_MeasurementData_currArrayIndex++]);
- /* valid EE */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- }
- }
- grammarID = 470;
- } else if (1==1) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- done = 1;
- }
- grammarID = 3;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 470:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MeasurementData), END_ELEMENT] */
- if (v2gSensorMeasurementsType_MeasurementData_currArrayIndex < v2gSensorMeasurementsType->MeasurementData.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- /* First(xsi:type)StartTag[CHARACTERS[UNSIGNED_INTEGER]] */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- if(errn == 0) {
- errn = encodeUnsignedInteger16(stream, v2gSensorMeasurementsType->MeasurementData.array[v2gSensorMeasurementsType_MeasurementData_currArrayIndex++]);
- /* valid EE */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- }
- }
- grammarID = 471;
- } else if (1==1) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- done = 1;
- }
- grammarID = 3;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 471:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MeasurementData), END_ELEMENT] */
- if (v2gSensorMeasurementsType_MeasurementData_currArrayIndex < v2gSensorMeasurementsType->MeasurementData.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- /* First(xsi:type)StartTag[CHARACTERS[UNSIGNED_INTEGER]] */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- if(errn == 0) {
- errn = encodeUnsignedInteger16(stream, v2gSensorMeasurementsType->MeasurementData.array[v2gSensorMeasurementsType_MeasurementData_currArrayIndex++]);
- /* valid EE */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- }
- }
- grammarID = 472;
- } else if (1==1) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- done = 1;
- }
- grammarID = 3;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 472:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MeasurementData), END_ELEMENT] */
- if (v2gSensorMeasurementsType_MeasurementData_currArrayIndex < v2gSensorMeasurementsType->MeasurementData.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- /* First(xsi:type)StartTag[CHARACTERS[UNSIGNED_INTEGER]] */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- if(errn == 0) {
- errn = encodeUnsignedInteger16(stream, v2gSensorMeasurementsType->MeasurementData.array[v2gSensorMeasurementsType_MeasurementData_currArrayIndex++]);
- /* valid EE */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- }
- }
- grammarID = 473;
- } else if (1==1) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- done = 1;
- }
- grammarID = 3;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 473:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MeasurementData), END_ELEMENT] */
- if (v2gSensorMeasurementsType_MeasurementData_currArrayIndex < v2gSensorMeasurementsType->MeasurementData.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- /* First(xsi:type)StartTag[CHARACTERS[UNSIGNED_INTEGER]] */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- if(errn == 0) {
- errn = encodeUnsignedInteger16(stream, v2gSensorMeasurementsType->MeasurementData.array[v2gSensorMeasurementsType_MeasurementData_currArrayIndex++]);
- /* valid EE */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- }
- }
- grammarID = 474;
- } else if (1==1) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- done = 1;
- }
- grammarID = 3;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 474:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MeasurementData), END_ELEMENT] */
- if (v2gSensorMeasurementsType_MeasurementData_currArrayIndex < v2gSensorMeasurementsType->MeasurementData.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- /* First(xsi:type)StartTag[CHARACTERS[UNSIGNED_INTEGER]] */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- if(errn == 0) {
- errn = encodeUnsignedInteger16(stream, v2gSensorMeasurementsType->MeasurementData.array[v2gSensorMeasurementsType_MeasurementData_currArrayIndex++]);
- /* valid EE */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- }
- }
- grammarID = 475;
- } else if (1==1) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- done = 1;
- }
- grammarID = 3;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 475:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MeasurementData), END_ELEMENT] */
- if (v2gSensorMeasurementsType_MeasurementData_currArrayIndex < v2gSensorMeasurementsType->MeasurementData.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- /* First(xsi:type)StartTag[CHARACTERS[UNSIGNED_INTEGER]] */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- if(errn == 0) {
- errn = encodeUnsignedInteger16(stream, v2gSensorMeasurementsType->MeasurementData.array[v2gSensorMeasurementsType_MeasurementData_currArrayIndex++]);
- /* valid EE */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- }
- }
- grammarID = 476;
- } else if (1==1) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- done = 1;
- }
- grammarID = 3;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 476:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MeasurementData), END_ELEMENT] */
- if (v2gSensorMeasurementsType_MeasurementData_currArrayIndex < v2gSensorMeasurementsType->MeasurementData.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- /* First(xsi:type)StartTag[CHARACTERS[UNSIGNED_INTEGER]] */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- if(errn == 0) {
- errn = encodeUnsignedInteger16(stream, v2gSensorMeasurementsType->MeasurementData.array[v2gSensorMeasurementsType_MeasurementData_currArrayIndex++]);
- /* valid EE */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- }
- }
- grammarID = 477;
- } else if (1==1) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- done = 1;
- }
- grammarID = 3;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 477:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MeasurementData), END_ELEMENT] */
- if (v2gSensorMeasurementsType_MeasurementData_currArrayIndex < v2gSensorMeasurementsType->MeasurementData.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- /* First(xsi:type)StartTag[CHARACTERS[UNSIGNED_INTEGER]] */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- if(errn == 0) {
- errn = encodeUnsignedInteger16(stream, v2gSensorMeasurementsType->MeasurementData.array[v2gSensorMeasurementsType_MeasurementData_currArrayIndex++]);
- /* valid EE */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- }
- }
- grammarID = 478;
- } else if (1==1) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- done = 1;
- }
- grammarID = 3;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 478:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MeasurementData), END_ELEMENT] */
- if (v2gSensorMeasurementsType_MeasurementData_currArrayIndex < v2gSensorMeasurementsType->MeasurementData.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- /* First(xsi:type)StartTag[CHARACTERS[UNSIGNED_INTEGER]] */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- if(errn == 0) {
- errn = encodeUnsignedInteger16(stream, v2gSensorMeasurementsType->MeasurementData.array[v2gSensorMeasurementsType_MeasurementData_currArrayIndex++]);
- /* valid EE */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- }
- }
- grammarID = 479;
- } else if (1==1) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- done = 1;
- }
- grammarID = 3;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 479:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MeasurementData), END_ELEMENT] */
- if (v2gSensorMeasurementsType_MeasurementData_currArrayIndex < v2gSensorMeasurementsType->MeasurementData.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- /* First(xsi:type)StartTag[CHARACTERS[UNSIGNED_INTEGER]] */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- if(errn == 0) {
- errn = encodeUnsignedInteger16(stream, v2gSensorMeasurementsType->MeasurementData.array[v2gSensorMeasurementsType_MeasurementData_currArrayIndex++]);
- /* valid EE */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- }
- }
- grammarID = 480;
- } else if (1==1) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- done = 1;
- }
- grammarID = 3;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 480:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MeasurementData), END_ELEMENT] */
- if (v2gSensorMeasurementsType_MeasurementData_currArrayIndex < v2gSensorMeasurementsType->MeasurementData.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- /* First(xsi:type)StartTag[CHARACTERS[UNSIGNED_INTEGER]] */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- if(errn == 0) {
- errn = encodeUnsignedInteger16(stream, v2gSensorMeasurementsType->MeasurementData.array[v2gSensorMeasurementsType_MeasurementData_currArrayIndex++]);
- /* valid EE */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- }
- }
- grammarID = 481;
- } else if (1==1) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- done = 1;
- }
- grammarID = 3;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 481:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MeasurementData), END_ELEMENT] */
- if (v2gSensorMeasurementsType_MeasurementData_currArrayIndex < v2gSensorMeasurementsType->MeasurementData.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- /* First(xsi:type)StartTag[CHARACTERS[UNSIGNED_INTEGER]] */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- if(errn == 0) {
- errn = encodeUnsignedInteger16(stream, v2gSensorMeasurementsType->MeasurementData.array[v2gSensorMeasurementsType_MeasurementData_currArrayIndex++]);
- /* valid EE */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- }
- }
- grammarID = 482;
- } else if (1==1) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- done = 1;
- }
- grammarID = 3;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 482:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MeasurementData), END_ELEMENT] */
- if (v2gSensorMeasurementsType_MeasurementData_currArrayIndex < v2gSensorMeasurementsType->MeasurementData.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- /* First(xsi:type)StartTag[CHARACTERS[UNSIGNED_INTEGER]] */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- if(errn == 0) {
- errn = encodeUnsignedInteger16(stream, v2gSensorMeasurementsType->MeasurementData.array[v2gSensorMeasurementsType_MeasurementData_currArrayIndex++]);
- /* valid EE */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- }
- }
- grammarID = 483;
- } else if (1==1) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- done = 1;
- }
- grammarID = 3;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 483:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MeasurementData), END_ELEMENT] */
- if (v2gSensorMeasurementsType_MeasurementData_currArrayIndex < v2gSensorMeasurementsType->MeasurementData.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- /* First(xsi:type)StartTag[CHARACTERS[UNSIGNED_INTEGER]] */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- if(errn == 0) {
- errn = encodeUnsignedInteger16(stream, v2gSensorMeasurementsType->MeasurementData.array[v2gSensorMeasurementsType_MeasurementData_currArrayIndex++]);
- /* valid EE */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- }
- }
- grammarID = 484;
- } else if (1==1) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- done = 1;
- }
- grammarID = 3;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 484:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MeasurementData), END_ELEMENT] */
- if (v2gSensorMeasurementsType_MeasurementData_currArrayIndex < v2gSensorMeasurementsType->MeasurementData.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- /* First(xsi:type)StartTag[CHARACTERS[UNSIGNED_INTEGER]] */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- if(errn == 0) {
- errn = encodeUnsignedInteger16(stream, v2gSensorMeasurementsType->MeasurementData.array[v2gSensorMeasurementsType_MeasurementData_currArrayIndex++]);
- /* valid EE */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- }
- }
- grammarID = 485;
- } else if (1==1) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- done = 1;
- }
- grammarID = 3;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 485:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MeasurementData), END_ELEMENT] */
- if (v2gSensorMeasurementsType_MeasurementData_currArrayIndex < v2gSensorMeasurementsType->MeasurementData.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- /* First(xsi:type)StartTag[CHARACTERS[UNSIGNED_INTEGER]] */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- if(errn == 0) {
- errn = encodeUnsignedInteger16(stream, v2gSensorMeasurementsType->MeasurementData.array[v2gSensorMeasurementsType_MeasurementData_currArrayIndex++]);
- /* valid EE */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- }
- }
- grammarID = 486;
- } else if (1==1) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- done = 1;
- }
- grammarID = 3;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 486:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MeasurementData), END_ELEMENT] */
- if (v2gSensorMeasurementsType_MeasurementData_currArrayIndex < v2gSensorMeasurementsType->MeasurementData.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- /* First(xsi:type)StartTag[CHARACTERS[UNSIGNED_INTEGER]] */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- if(errn == 0) {
- errn = encodeUnsignedInteger16(stream, v2gSensorMeasurementsType->MeasurementData.array[v2gSensorMeasurementsType_MeasurementData_currArrayIndex++]);
- /* valid EE */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- }
- }
- grammarID = 487;
- } else if (1==1) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- done = 1;
- }
- grammarID = 3;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 487:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MeasurementData), END_ELEMENT] */
- if (v2gSensorMeasurementsType_MeasurementData_currArrayIndex < v2gSensorMeasurementsType->MeasurementData.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- /* First(xsi:type)StartTag[CHARACTERS[UNSIGNED_INTEGER]] */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- if(errn == 0) {
- errn = encodeUnsignedInteger16(stream, v2gSensorMeasurementsType->MeasurementData.array[v2gSensorMeasurementsType_MeasurementData_currArrayIndex++]);
- /* valid EE */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- }
- }
- grammarID = 488;
- } else if (1==1) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- done = 1;
- }
- grammarID = 3;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 488:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MeasurementData), END_ELEMENT] */
- if (v2gSensorMeasurementsType_MeasurementData_currArrayIndex < v2gSensorMeasurementsType->MeasurementData.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- /* First(xsi:type)StartTag[CHARACTERS[UNSIGNED_INTEGER]] */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- if(errn == 0) {
- errn = encodeUnsignedInteger16(stream, v2gSensorMeasurementsType->MeasurementData.array[v2gSensorMeasurementsType_MeasurementData_currArrayIndex++]);
- /* valid EE */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- }
- }
- grammarID = 489;
- } else if (1==1) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- done = 1;
- }
- grammarID = 3;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 489:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MeasurementData), END_ELEMENT] */
- if (v2gSensorMeasurementsType_MeasurementData_currArrayIndex < v2gSensorMeasurementsType->MeasurementData.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- /* First(xsi:type)StartTag[CHARACTERS[UNSIGNED_INTEGER]] */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- if(errn == 0) {
- errn = encodeUnsignedInteger16(stream, v2gSensorMeasurementsType->MeasurementData.array[v2gSensorMeasurementsType_MeasurementData_currArrayIndex++]);
- /* valid EE */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- }
- }
- grammarID = 490;
- } else if (1==1) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- done = 1;
- }
- grammarID = 3;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 490:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MeasurementData), END_ELEMENT] */
- if (v2gSensorMeasurementsType_MeasurementData_currArrayIndex < v2gSensorMeasurementsType->MeasurementData.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- /* First(xsi:type)StartTag[CHARACTERS[UNSIGNED_INTEGER]] */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- if(errn == 0) {
- errn = encodeUnsignedInteger16(stream, v2gSensorMeasurementsType->MeasurementData.array[v2gSensorMeasurementsType_MeasurementData_currArrayIndex++]);
- /* valid EE */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- }
- }
- grammarID = 491;
- } else if (1==1) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- done = 1;
- }
- grammarID = 3;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 491:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MeasurementData), END_ELEMENT] */
- if (v2gSensorMeasurementsType_MeasurementData_currArrayIndex < v2gSensorMeasurementsType->MeasurementData.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- /* First(xsi:type)StartTag[CHARACTERS[UNSIGNED_INTEGER]] */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- if(errn == 0) {
- errn = encodeUnsignedInteger16(stream, v2gSensorMeasurementsType->MeasurementData.array[v2gSensorMeasurementsType_MeasurementData_currArrayIndex++]);
- /* valid EE */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- }
- }
- grammarID = 492;
- } else if (1==1) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- done = 1;
- }
- grammarID = 3;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 492:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MeasurementData), END_ELEMENT] */
- if (v2gSensorMeasurementsType_MeasurementData_currArrayIndex < v2gSensorMeasurementsType->MeasurementData.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- /* First(xsi:type)StartTag[CHARACTERS[UNSIGNED_INTEGER]] */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- if(errn == 0) {
- errn = encodeUnsignedInteger16(stream, v2gSensorMeasurementsType->MeasurementData.array[v2gSensorMeasurementsType_MeasurementData_currArrayIndex++]);
- /* valid EE */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- }
- }
- grammarID = 493;
- } else if (1==1) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- done = 1;
- }
- grammarID = 3;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 493:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MeasurementData), END_ELEMENT] */
- if (v2gSensorMeasurementsType_MeasurementData_currArrayIndex < v2gSensorMeasurementsType->MeasurementData.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- /* First(xsi:type)StartTag[CHARACTERS[UNSIGNED_INTEGER]] */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- if(errn == 0) {
- errn = encodeUnsignedInteger16(stream, v2gSensorMeasurementsType->MeasurementData.array[v2gSensorMeasurementsType_MeasurementData_currArrayIndex++]);
- /* valid EE */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- }
- }
- grammarID = 494;
- } else if (1==1) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- done = 1;
- }
- grammarID = 3;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 494:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MeasurementData), END_ELEMENT] */
- if (v2gSensorMeasurementsType_MeasurementData_currArrayIndex < v2gSensorMeasurementsType->MeasurementData.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- /* First(xsi:type)StartTag[CHARACTERS[UNSIGNED_INTEGER]] */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- if(errn == 0) {
- errn = encodeUnsignedInteger16(stream, v2gSensorMeasurementsType->MeasurementData.array[v2gSensorMeasurementsType_MeasurementData_currArrayIndex++]);
- /* valid EE */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- }
- }
- grammarID = 495;
- } else if (1==1) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- done = 1;
- }
- grammarID = 3;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 495:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MeasurementData), END_ELEMENT] */
- if (v2gSensorMeasurementsType_MeasurementData_currArrayIndex < v2gSensorMeasurementsType->MeasurementData.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- /* First(xsi:type)StartTag[CHARACTERS[UNSIGNED_INTEGER]] */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- if(errn == 0) {
- errn = encodeUnsignedInteger16(stream, v2gSensorMeasurementsType->MeasurementData.array[v2gSensorMeasurementsType_MeasurementData_currArrayIndex++]);
- /* valid EE */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- }
- }
- grammarID = 496;
- } else if (1==1) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- done = 1;
- }
- grammarID = 3;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 496:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MeasurementData), END_ELEMENT] */
- if (v2gSensorMeasurementsType_MeasurementData_currArrayIndex < v2gSensorMeasurementsType->MeasurementData.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- /* First(xsi:type)StartTag[CHARACTERS[UNSIGNED_INTEGER]] */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- if(errn == 0) {
- errn = encodeUnsignedInteger16(stream, v2gSensorMeasurementsType->MeasurementData.array[v2gSensorMeasurementsType_MeasurementData_currArrayIndex++]);
- /* valid EE */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- }
- }
- grammarID = 497;
- } else if (1==1) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- done = 1;
- }
- grammarID = 3;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 497:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MeasurementData), END_ELEMENT] */
- if (v2gSensorMeasurementsType_MeasurementData_currArrayIndex < v2gSensorMeasurementsType->MeasurementData.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- /* First(xsi:type)StartTag[CHARACTERS[UNSIGNED_INTEGER]] */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- if(errn == 0) {
- errn = encodeUnsignedInteger16(stream, v2gSensorMeasurementsType->MeasurementData.array[v2gSensorMeasurementsType_MeasurementData_currArrayIndex++]);
- /* valid EE */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- }
- }
- grammarID = 498;
- } else if (1==1) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- done = 1;
- }
- grammarID = 3;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 498:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MeasurementData), END_ELEMENT] */
- if (v2gSensorMeasurementsType_MeasurementData_currArrayIndex < v2gSensorMeasurementsType->MeasurementData.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- /* First(xsi:type)StartTag[CHARACTERS[UNSIGNED_INTEGER]] */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- if(errn == 0) {
- errn = encodeUnsignedInteger16(stream, v2gSensorMeasurementsType->MeasurementData.array[v2gSensorMeasurementsType_MeasurementData_currArrayIndex++]);
- /* valid EE */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- }
- }
- grammarID = 499;
- } else if (1==1) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- done = 1;
- }
- grammarID = 3;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 499:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MeasurementData), END_ELEMENT] */
- if (v2gSensorMeasurementsType_MeasurementData_currArrayIndex < v2gSensorMeasurementsType->MeasurementData.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- /* First(xsi:type)StartTag[CHARACTERS[UNSIGNED_INTEGER]] */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- if(errn == 0) {
- errn = encodeUnsignedInteger16(stream, v2gSensorMeasurementsType->MeasurementData.array[v2gSensorMeasurementsType_MeasurementData_currArrayIndex++]);
- /* valid EE */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- }
- }
- grammarID = 500;
- } else if (1==1) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- done = 1;
- }
- grammarID = 3;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 500:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MeasurementData), END_ELEMENT] */
- if (v2gSensorMeasurementsType_MeasurementData_currArrayIndex < v2gSensorMeasurementsType->MeasurementData.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- /* First(xsi:type)StartTag[CHARACTERS[UNSIGNED_INTEGER]] */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- if(errn == 0) {
- errn = encodeUnsignedInteger16(stream, v2gSensorMeasurementsType->MeasurementData.array[v2gSensorMeasurementsType_MeasurementData_currArrayIndex++]);
- /* valid EE */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- }
- }
- grammarID = 501;
- } else if (1==1) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- done = 1;
- }
- grammarID = 3;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 501:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MeasurementData), END_ELEMENT] */
- if (v2gSensorMeasurementsType_MeasurementData_currArrayIndex < v2gSensorMeasurementsType->MeasurementData.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- /* First(xsi:type)StartTag[CHARACTERS[UNSIGNED_INTEGER]] */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- if(errn == 0) {
- errn = encodeUnsignedInteger16(stream, v2gSensorMeasurementsType->MeasurementData.array[v2gSensorMeasurementsType_MeasurementData_currArrayIndex++]);
- /* valid EE */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- }
- }
- grammarID = 502;
- } else if (1==1) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- done = 1;
- }
- grammarID = 3;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 502:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MeasurementData), END_ELEMENT] */
- if (v2gSensorMeasurementsType_MeasurementData_currArrayIndex < v2gSensorMeasurementsType->MeasurementData.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- /* First(xsi:type)StartTag[CHARACTERS[UNSIGNED_INTEGER]] */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- if(errn == 0) {
- errn = encodeUnsignedInteger16(stream, v2gSensorMeasurementsType->MeasurementData.array[v2gSensorMeasurementsType_MeasurementData_currArrayIndex++]);
- /* valid EE */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- }
- }
- grammarID = 503;
- } else if (1==1) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- done = 1;
- }
- grammarID = 3;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 503:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MeasurementData), END_ELEMENT] */
- if (v2gSensorMeasurementsType_MeasurementData_currArrayIndex < v2gSensorMeasurementsType->MeasurementData.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- /* First(xsi:type)StartTag[CHARACTERS[UNSIGNED_INTEGER]] */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- if(errn == 0) {
- errn = encodeUnsignedInteger16(stream, v2gSensorMeasurementsType->MeasurementData.array[v2gSensorMeasurementsType_MeasurementData_currArrayIndex++]);
- /* valid EE */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- }
- }
- grammarID = 504;
- } else if (1==1) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- done = 1;
- }
- grammarID = 3;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 504:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MeasurementData), END_ELEMENT] */
- if (v2gSensorMeasurementsType_MeasurementData_currArrayIndex < v2gSensorMeasurementsType->MeasurementData.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- /* First(xsi:type)StartTag[CHARACTERS[UNSIGNED_INTEGER]] */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- if(errn == 0) {
- errn = encodeUnsignedInteger16(stream, v2gSensorMeasurementsType->MeasurementData.array[v2gSensorMeasurementsType_MeasurementData_currArrayIndex++]);
- /* valid EE */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- }
- }
- grammarID = 505;
- } else if (1==1) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- done = 1;
- }
- grammarID = 3;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 505:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MeasurementData), END_ELEMENT] */
- if (v2gSensorMeasurementsType_MeasurementData_currArrayIndex < v2gSensorMeasurementsType->MeasurementData.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- /* First(xsi:type)StartTag[CHARACTERS[UNSIGNED_INTEGER]] */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- if(errn == 0) {
- errn = encodeUnsignedInteger16(stream, v2gSensorMeasurementsType->MeasurementData.array[v2gSensorMeasurementsType_MeasurementData_currArrayIndex++]);
- /* valid EE */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- }
- }
- grammarID = 506;
- } else if (1==1) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- done = 1;
- }
- grammarID = 3;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 506:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MeasurementData), END_ELEMENT] */
- if (v2gSensorMeasurementsType_MeasurementData_currArrayIndex < v2gSensorMeasurementsType->MeasurementData.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- /* First(xsi:type)StartTag[CHARACTERS[UNSIGNED_INTEGER]] */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- if(errn == 0) {
- errn = encodeUnsignedInteger16(stream, v2gSensorMeasurementsType->MeasurementData.array[v2gSensorMeasurementsType_MeasurementData_currArrayIndex++]);
- /* valid EE */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- }
- }
- grammarID = 507;
- } else if (1==1) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- done = 1;
- }
- grammarID = 3;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 507:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MeasurementData), END_ELEMENT] */
- if (v2gSensorMeasurementsType_MeasurementData_currArrayIndex < v2gSensorMeasurementsType->MeasurementData.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- /* First(xsi:type)StartTag[CHARACTERS[UNSIGNED_INTEGER]] */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- if(errn == 0) {
- errn = encodeUnsignedInteger16(stream, v2gSensorMeasurementsType->MeasurementData.array[v2gSensorMeasurementsType_MeasurementData_currArrayIndex++]);
- /* valid EE */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- }
- }
- grammarID = 508;
- } else if (1==1) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- done = 1;
- }
- grammarID = 3;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 508:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MeasurementData), END_ELEMENT] */
- if (v2gSensorMeasurementsType_MeasurementData_currArrayIndex < v2gSensorMeasurementsType->MeasurementData.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- /* First(xsi:type)StartTag[CHARACTERS[UNSIGNED_INTEGER]] */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- if(errn == 0) {
- errn = encodeUnsignedInteger16(stream, v2gSensorMeasurementsType->MeasurementData.array[v2gSensorMeasurementsType_MeasurementData_currArrayIndex++]);
- /* valid EE */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- }
- }
- grammarID = 509;
- } else if (1==1) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- done = 1;
- }
- grammarID = 3;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 509:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MeasurementData), END_ELEMENT] */
- if (v2gSensorMeasurementsType_MeasurementData_currArrayIndex < v2gSensorMeasurementsType->MeasurementData.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- /* First(xsi:type)StartTag[CHARACTERS[UNSIGNED_INTEGER]] */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- if(errn == 0) {
- errn = encodeUnsignedInteger16(stream, v2gSensorMeasurementsType->MeasurementData.array[v2gSensorMeasurementsType_MeasurementData_currArrayIndex++]);
- /* valid EE */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- }
- }
- grammarID = 510;
- } else if (1==1) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- done = 1;
- }
- grammarID = 3;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 510:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MeasurementData), END_ELEMENT] */
- if (v2gSensorMeasurementsType_MeasurementData_currArrayIndex < v2gSensorMeasurementsType->MeasurementData.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- /* First(xsi:type)StartTag[CHARACTERS[UNSIGNED_INTEGER]] */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- if(errn == 0) {
- errn = encodeUnsignedInteger16(stream, v2gSensorMeasurementsType->MeasurementData.array[v2gSensorMeasurementsType_MeasurementData_currArrayIndex++]);
- /* valid EE */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- }
- }
- grammarID = 511;
- } else if (1==1) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- done = 1;
- }
- grammarID = 3;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 511:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MeasurementData), END_ELEMENT] */
- if (v2gSensorMeasurementsType_MeasurementData_currArrayIndex < v2gSensorMeasurementsType->MeasurementData.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- /* First(xsi:type)StartTag[CHARACTERS[UNSIGNED_INTEGER]] */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- if(errn == 0) {
- errn = encodeUnsignedInteger16(stream, v2gSensorMeasurementsType->MeasurementData.array[v2gSensorMeasurementsType_MeasurementData_currArrayIndex++]);
- /* valid EE */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- }
- }
- grammarID = 512;
- } else if (1==1) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- done = 1;
- }
- grammarID = 3;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 512:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MeasurementData), END_ELEMENT] */
- if (v2gSensorMeasurementsType_MeasurementData_currArrayIndex < v2gSensorMeasurementsType->MeasurementData.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- /* First(xsi:type)StartTag[CHARACTERS[UNSIGNED_INTEGER]] */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- if(errn == 0) {
- errn = encodeUnsignedInteger16(stream, v2gSensorMeasurementsType->MeasurementData.array[v2gSensorMeasurementsType_MeasurementData_currArrayIndex++]);
- /* valid EE */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- }
- }
- grammarID = 513;
- } else if (1==1) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- done = 1;
- }
- grammarID = 3;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 513:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MeasurementData), END_ELEMENT] */
- if (v2gSensorMeasurementsType_MeasurementData_currArrayIndex < v2gSensorMeasurementsType->MeasurementData.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- /* First(xsi:type)StartTag[CHARACTERS[UNSIGNED_INTEGER]] */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- if(errn == 0) {
- errn = encodeUnsignedInteger16(stream, v2gSensorMeasurementsType->MeasurementData.array[v2gSensorMeasurementsType_MeasurementData_currArrayIndex++]);
- /* valid EE */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- }
- }
- grammarID = 514;
- } else if (1==1) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- done = 1;
- }
- grammarID = 3;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 514:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MeasurementData), END_ELEMENT] */
- if (v2gSensorMeasurementsType_MeasurementData_currArrayIndex < v2gSensorMeasurementsType->MeasurementData.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- /* First(xsi:type)StartTag[CHARACTERS[UNSIGNED_INTEGER]] */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- if(errn == 0) {
- errn = encodeUnsignedInteger16(stream, v2gSensorMeasurementsType->MeasurementData.array[v2gSensorMeasurementsType_MeasurementData_currArrayIndex++]);
- /* valid EE */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- }
- }
- grammarID = 515;
- } else if (1==1) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- done = 1;
- }
- grammarID = 3;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 515:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MeasurementData), END_ELEMENT] */
- if (v2gSensorMeasurementsType_MeasurementData_currArrayIndex < v2gSensorMeasurementsType->MeasurementData.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- /* First(xsi:type)StartTag[CHARACTERS[UNSIGNED_INTEGER]] */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- if(errn == 0) {
- errn = encodeUnsignedInteger16(stream, v2gSensorMeasurementsType->MeasurementData.array[v2gSensorMeasurementsType_MeasurementData_currArrayIndex++]);
- /* valid EE */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- }
- }
- grammarID = 516;
- } else if (1==1) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- done = 1;
- }
- grammarID = 3;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 516:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MeasurementData), END_ELEMENT] */
- if (v2gSensorMeasurementsType_MeasurementData_currArrayIndex < v2gSensorMeasurementsType->MeasurementData.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- /* First(xsi:type)StartTag[CHARACTERS[UNSIGNED_INTEGER]] */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- if(errn == 0) {
- errn = encodeUnsignedInteger16(stream, v2gSensorMeasurementsType->MeasurementData.array[v2gSensorMeasurementsType_MeasurementData_currArrayIndex++]);
- /* valid EE */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- }
- }
- grammarID = 517;
- } else if (1==1) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- done = 1;
- }
- grammarID = 3;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 517:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MeasurementData), END_ELEMENT] */
- if (v2gSensorMeasurementsType_MeasurementData_currArrayIndex < v2gSensorMeasurementsType->MeasurementData.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- /* First(xsi:type)StartTag[CHARACTERS[UNSIGNED_INTEGER]] */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- if(errn == 0) {
- errn = encodeUnsignedInteger16(stream, v2gSensorMeasurementsType->MeasurementData.array[v2gSensorMeasurementsType_MeasurementData_currArrayIndex++]);
- /* valid EE */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- }
- }
- grammarID = 518;
- } else if (1==1) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- done = 1;
- }
- grammarID = 3;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 518:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MeasurementData), END_ELEMENT] */
- if (v2gSensorMeasurementsType_MeasurementData_currArrayIndex < v2gSensorMeasurementsType->MeasurementData.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- /* First(xsi:type)StartTag[CHARACTERS[UNSIGNED_INTEGER]] */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- if(errn == 0) {
- errn = encodeUnsignedInteger16(stream, v2gSensorMeasurementsType->MeasurementData.array[v2gSensorMeasurementsType_MeasurementData_currArrayIndex++]);
- /* valid EE */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- }
- }
- grammarID = 519;
- } else if (1==1) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- done = 1;
- }
- grammarID = 3;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 519:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MeasurementData), END_ELEMENT] */
- if (v2gSensorMeasurementsType_MeasurementData_currArrayIndex < v2gSensorMeasurementsType->MeasurementData.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- /* First(xsi:type)StartTag[CHARACTERS[UNSIGNED_INTEGER]] */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- if(errn == 0) {
- errn = encodeUnsignedInteger16(stream, v2gSensorMeasurementsType->MeasurementData.array[v2gSensorMeasurementsType_MeasurementData_currArrayIndex++]);
- /* valid EE */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- }
- }
- grammarID = 520;
- } else if (1==1) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- done = 1;
- }
- grammarID = 3;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 520:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MeasurementData), END_ELEMENT] */
- if (v2gSensorMeasurementsType_MeasurementData_currArrayIndex < v2gSensorMeasurementsType->MeasurementData.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- /* First(xsi:type)StartTag[CHARACTERS[UNSIGNED_INTEGER]] */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- if(errn == 0) {
- errn = encodeUnsignedInteger16(stream, v2gSensorMeasurementsType->MeasurementData.array[v2gSensorMeasurementsType_MeasurementData_currArrayIndex++]);
- /* valid EE */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- }
- }
- grammarID = 521;
- } else if (1==1) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- done = 1;
- }
- grammarID = 3;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 521:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MeasurementData), END_ELEMENT] */
- if (v2gSensorMeasurementsType_MeasurementData_currArrayIndex < v2gSensorMeasurementsType->MeasurementData.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- /* First(xsi:type)StartTag[CHARACTERS[UNSIGNED_INTEGER]] */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- if(errn == 0) {
- errn = encodeUnsignedInteger16(stream, v2gSensorMeasurementsType->MeasurementData.array[v2gSensorMeasurementsType_MeasurementData_currArrayIndex++]);
- /* valid EE */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- }
- }
- grammarID = 522;
- } else if (1==1) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- done = 1;
- }
- grammarID = 3;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 522:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MeasurementData), END_ELEMENT] */
- if (v2gSensorMeasurementsType_MeasurementData_currArrayIndex < v2gSensorMeasurementsType->MeasurementData.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- /* First(xsi:type)StartTag[CHARACTERS[UNSIGNED_INTEGER]] */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- if(errn == 0) {
- errn = encodeUnsignedInteger16(stream, v2gSensorMeasurementsType->MeasurementData.array[v2gSensorMeasurementsType_MeasurementData_currArrayIndex++]);
- /* valid EE */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- }
- }
- grammarID = 523;
- } else if (1==1) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- done = 1;
- }
- grammarID = 3;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 523:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MeasurementData), END_ELEMENT] */
- if (v2gSensorMeasurementsType_MeasurementData_currArrayIndex < v2gSensorMeasurementsType->MeasurementData.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- /* First(xsi:type)StartTag[CHARACTERS[UNSIGNED_INTEGER]] */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- if(errn == 0) {
- errn = encodeUnsignedInteger16(stream, v2gSensorMeasurementsType->MeasurementData.array[v2gSensorMeasurementsType_MeasurementData_currArrayIndex++]);
- /* valid EE */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- }
- }
- grammarID = 524;
- } else if (1==1) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- done = 1;
- }
- grammarID = 3;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 524:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MeasurementData), END_ELEMENT] */
- if (v2gSensorMeasurementsType_MeasurementData_currArrayIndex < v2gSensorMeasurementsType->MeasurementData.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- /* First(xsi:type)StartTag[CHARACTERS[UNSIGNED_INTEGER]] */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- if(errn == 0) {
- errn = encodeUnsignedInteger16(stream, v2gSensorMeasurementsType->MeasurementData.array[v2gSensorMeasurementsType_MeasurementData_currArrayIndex++]);
- /* valid EE */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- }
- }
- grammarID = 525;
- } else if (1==1) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- done = 1;
- }
- grammarID = 3;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 525:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MeasurementData), END_ELEMENT] */
- if (v2gSensorMeasurementsType_MeasurementData_currArrayIndex < v2gSensorMeasurementsType->MeasurementData.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- /* First(xsi:type)StartTag[CHARACTERS[UNSIGNED_INTEGER]] */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- if(errn == 0) {
- errn = encodeUnsignedInteger16(stream, v2gSensorMeasurementsType->MeasurementData.array[v2gSensorMeasurementsType_MeasurementData_currArrayIndex++]);
- /* valid EE */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- }
- }
- grammarID = 526;
- } else if (1==1) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- done = 1;
- }
- grammarID = 3;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 526:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MeasurementData), END_ELEMENT] */
- if (v2gSensorMeasurementsType_MeasurementData_currArrayIndex < v2gSensorMeasurementsType->MeasurementData.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- /* First(xsi:type)StartTag[CHARACTERS[UNSIGNED_INTEGER]] */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- if(errn == 0) {
- errn = encodeUnsignedInteger16(stream, v2gSensorMeasurementsType->MeasurementData.array[v2gSensorMeasurementsType_MeasurementData_currArrayIndex++]);
- /* valid EE */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- }
- }
- grammarID = 527;
- } else if (1==1) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- done = 1;
- }
- grammarID = 3;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 527:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MeasurementData), END_ELEMENT] */
- if (v2gSensorMeasurementsType_MeasurementData_currArrayIndex < v2gSensorMeasurementsType->MeasurementData.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- /* First(xsi:type)StartTag[CHARACTERS[UNSIGNED_INTEGER]] */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- if(errn == 0) {
- errn = encodeUnsignedInteger16(stream, v2gSensorMeasurementsType->MeasurementData.array[v2gSensorMeasurementsType_MeasurementData_currArrayIndex++]);
- /* valid EE */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- }
- }
- grammarID = 528;
- } else if (1==1) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- done = 1;
- }
- grammarID = 3;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 528:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MeasurementData), END_ELEMENT] */
- if (v2gSensorMeasurementsType_MeasurementData_currArrayIndex < v2gSensorMeasurementsType->MeasurementData.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- /* First(xsi:type)StartTag[CHARACTERS[UNSIGNED_INTEGER]] */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- if(errn == 0) {
- errn = encodeUnsignedInteger16(stream, v2gSensorMeasurementsType->MeasurementData.array[v2gSensorMeasurementsType_MeasurementData_currArrayIndex++]);
- /* valid EE */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- }
- }
- grammarID = 529;
- } else if (1==1) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- done = 1;
- }
- grammarID = 3;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 529:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MeasurementData), END_ELEMENT] */
- if (v2gSensorMeasurementsType_MeasurementData_currArrayIndex < v2gSensorMeasurementsType->MeasurementData.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- /* First(xsi:type)StartTag[CHARACTERS[UNSIGNED_INTEGER]] */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- if(errn == 0) {
- errn = encodeUnsignedInteger16(stream, v2gSensorMeasurementsType->MeasurementData.array[v2gSensorMeasurementsType_MeasurementData_currArrayIndex++]);
- /* valid EE */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- }
- }
- grammarID = 530;
- } else if (1==1) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- done = 1;
- }
- grammarID = 3;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 530:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MeasurementData), END_ELEMENT] */
- if (v2gSensorMeasurementsType_MeasurementData_currArrayIndex < v2gSensorMeasurementsType->MeasurementData.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- /* First(xsi:type)StartTag[CHARACTERS[UNSIGNED_INTEGER]] */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- if(errn == 0) {
- errn = encodeUnsignedInteger16(stream, v2gSensorMeasurementsType->MeasurementData.array[v2gSensorMeasurementsType_MeasurementData_currArrayIndex++]);
- /* valid EE */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- }
- }
- grammarID = 531;
- } else if (1==1) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- done = 1;
- }
- grammarID = 3;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 531:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MeasurementData), END_ELEMENT] */
- if (v2gSensorMeasurementsType_MeasurementData_currArrayIndex < v2gSensorMeasurementsType->MeasurementData.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- /* First(xsi:type)StartTag[CHARACTERS[UNSIGNED_INTEGER]] */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- if(errn == 0) {
- errn = encodeUnsignedInteger16(stream, v2gSensorMeasurementsType->MeasurementData.array[v2gSensorMeasurementsType_MeasurementData_currArrayIndex++]);
- /* valid EE */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- }
- }
- grammarID = 532;
- } else if (1==1) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- done = 1;
- }
- grammarID = 3;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 532:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MeasurementData), END_ELEMENT] */
- if (v2gSensorMeasurementsType_MeasurementData_currArrayIndex < v2gSensorMeasurementsType->MeasurementData.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- /* First(xsi:type)StartTag[CHARACTERS[UNSIGNED_INTEGER]] */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- if(errn == 0) {
- errn = encodeUnsignedInteger16(stream, v2gSensorMeasurementsType->MeasurementData.array[v2gSensorMeasurementsType_MeasurementData_currArrayIndex++]);
- /* valid EE */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- }
- }
- grammarID = 533;
- } else if (1==1) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- done = 1;
- }
- grammarID = 3;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 533:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MeasurementData), END_ELEMENT] */
- if (v2gSensorMeasurementsType_MeasurementData_currArrayIndex < v2gSensorMeasurementsType->MeasurementData.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- /* First(xsi:type)StartTag[CHARACTERS[UNSIGNED_INTEGER]] */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- if(errn == 0) {
- errn = encodeUnsignedInteger16(stream, v2gSensorMeasurementsType->MeasurementData.array[v2gSensorMeasurementsType_MeasurementData_currArrayIndex++]);
- /* valid EE */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- }
- }
- grammarID = 534;
- } else if (1==1) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- done = 1;
- }
- grammarID = 3;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 534:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MeasurementData), END_ELEMENT] */
- if (v2gSensorMeasurementsType_MeasurementData_currArrayIndex < v2gSensorMeasurementsType->MeasurementData.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- /* First(xsi:type)StartTag[CHARACTERS[UNSIGNED_INTEGER]] */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- if(errn == 0) {
- errn = encodeUnsignedInteger16(stream, v2gSensorMeasurementsType->MeasurementData.array[v2gSensorMeasurementsType_MeasurementData_currArrayIndex++]);
- /* valid EE */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- }
- }
- grammarID = 535;
- } else if (1==1) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- done = 1;
- }
- grammarID = 3;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 535:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MeasurementData), END_ELEMENT] */
- if (v2gSensorMeasurementsType_MeasurementData_currArrayIndex < v2gSensorMeasurementsType->MeasurementData.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- /* First(xsi:type)StartTag[CHARACTERS[UNSIGNED_INTEGER]] */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- if(errn == 0) {
- errn = encodeUnsignedInteger16(stream, v2gSensorMeasurementsType->MeasurementData.array[v2gSensorMeasurementsType_MeasurementData_currArrayIndex++]);
- /* valid EE */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- }
- }
- grammarID = 536;
- } else if (1==1) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- done = 1;
- }
- grammarID = 3;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 536:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MeasurementData), END_ELEMENT] */
- if (v2gSensorMeasurementsType_MeasurementData_currArrayIndex < v2gSensorMeasurementsType->MeasurementData.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- /* First(xsi:type)StartTag[CHARACTERS[UNSIGNED_INTEGER]] */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- if(errn == 0) {
- errn = encodeUnsignedInteger16(stream, v2gSensorMeasurementsType->MeasurementData.array[v2gSensorMeasurementsType_MeasurementData_currArrayIndex++]);
- /* valid EE */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- }
- }
- grammarID = 537;
- } else if (1==1) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- done = 1;
- }
- grammarID = 3;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 537:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MeasurementData), END_ELEMENT] */
- if (v2gSensorMeasurementsType_MeasurementData_currArrayIndex < v2gSensorMeasurementsType->MeasurementData.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- /* First(xsi:type)StartTag[CHARACTERS[UNSIGNED_INTEGER]] */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- if(errn == 0) {
- errn = encodeUnsignedInteger16(stream, v2gSensorMeasurementsType->MeasurementData.array[v2gSensorMeasurementsType_MeasurementData_currArrayIndex++]);
- /* valid EE */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- }
- }
- grammarID = 538;
- } else if (1==1) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- done = 1;
- }
- grammarID = 3;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 538:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MeasurementData), END_ELEMENT] */
- if (v2gSensorMeasurementsType_MeasurementData_currArrayIndex < v2gSensorMeasurementsType->MeasurementData.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- /* First(xsi:type)StartTag[CHARACTERS[UNSIGNED_INTEGER]] */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- if(errn == 0) {
- errn = encodeUnsignedInteger16(stream, v2gSensorMeasurementsType->MeasurementData.array[v2gSensorMeasurementsType_MeasurementData_currArrayIndex++]);
- /* valid EE */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- }
- }
- grammarID = 539;
- } else if (1==1) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- done = 1;
- }
- grammarID = 3;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 539:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MeasurementData), END_ELEMENT] */
- if (v2gSensorMeasurementsType_MeasurementData_currArrayIndex < v2gSensorMeasurementsType->MeasurementData.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- /* First(xsi:type)StartTag[CHARACTERS[UNSIGNED_INTEGER]] */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- if(errn == 0) {
- errn = encodeUnsignedInteger16(stream, v2gSensorMeasurementsType->MeasurementData.array[v2gSensorMeasurementsType_MeasurementData_currArrayIndex++]);
- /* valid EE */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- }
- }
- grammarID = 540;
- } else if (1==1) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- done = 1;
- }
- grammarID = 3;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 540:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MeasurementData), END_ELEMENT] */
- if (v2gSensorMeasurementsType_MeasurementData_currArrayIndex < v2gSensorMeasurementsType->MeasurementData.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- /* First(xsi:type)StartTag[CHARACTERS[UNSIGNED_INTEGER]] */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- if(errn == 0) {
- errn = encodeUnsignedInteger16(stream, v2gSensorMeasurementsType->MeasurementData.array[v2gSensorMeasurementsType_MeasurementData_currArrayIndex++]);
- /* valid EE */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- }
- }
- grammarID = 541;
- } else if (1==1) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- done = 1;
- }
- grammarID = 3;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 541:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MeasurementData), END_ELEMENT] */
- if (v2gSensorMeasurementsType_MeasurementData_currArrayIndex < v2gSensorMeasurementsType->MeasurementData.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- /* First(xsi:type)StartTag[CHARACTERS[UNSIGNED_INTEGER]] */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- if(errn == 0) {
- errn = encodeUnsignedInteger16(stream, v2gSensorMeasurementsType->MeasurementData.array[v2gSensorMeasurementsType_MeasurementData_currArrayIndex++]);
- /* valid EE */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- }
- }
- grammarID = 542;
- } else if (1==1) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- done = 1;
- }
- grammarID = 3;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 542:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MeasurementData), END_ELEMENT] */
- if (v2gSensorMeasurementsType_MeasurementData_currArrayIndex < v2gSensorMeasurementsType->MeasurementData.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- /* First(xsi:type)StartTag[CHARACTERS[UNSIGNED_INTEGER]] */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- if(errn == 0) {
- errn = encodeUnsignedInteger16(stream, v2gSensorMeasurementsType->MeasurementData.array[v2gSensorMeasurementsType_MeasurementData_currArrayIndex++]);
- /* valid EE */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- }
- }
- grammarID = 543;
- } else if (1==1) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- done = 1;
- }
- grammarID = 3;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 543:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MeasurementData), END_ELEMENT] */
- if (v2gSensorMeasurementsType_MeasurementData_currArrayIndex < v2gSensorMeasurementsType->MeasurementData.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- /* First(xsi:type)StartTag[CHARACTERS[UNSIGNED_INTEGER]] */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- if(errn == 0) {
- errn = encodeUnsignedInteger16(stream, v2gSensorMeasurementsType->MeasurementData.array[v2gSensorMeasurementsType_MeasurementData_currArrayIndex++]);
- /* valid EE */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- }
- }
- grammarID = 544;
- } else if (1==1) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- done = 1;
- }
- grammarID = 3;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 544:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MeasurementData), END_ELEMENT] */
- if (v2gSensorMeasurementsType_MeasurementData_currArrayIndex < v2gSensorMeasurementsType->MeasurementData.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- /* First(xsi:type)StartTag[CHARACTERS[UNSIGNED_INTEGER]] */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- if(errn == 0) {
- errn = encodeUnsignedInteger16(stream, v2gSensorMeasurementsType->MeasurementData.array[v2gSensorMeasurementsType_MeasurementData_currArrayIndex++]);
- /* valid EE */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- }
- }
- grammarID = 545;
- } else if (1==1) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- done = 1;
- }
- grammarID = 3;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 545:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MeasurementData), END_ELEMENT] */
- if (v2gSensorMeasurementsType_MeasurementData_currArrayIndex < v2gSensorMeasurementsType->MeasurementData.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- /* First(xsi:type)StartTag[CHARACTERS[UNSIGNED_INTEGER]] */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- if(errn == 0) {
- errn = encodeUnsignedInteger16(stream, v2gSensorMeasurementsType->MeasurementData.array[v2gSensorMeasurementsType_MeasurementData_currArrayIndex++]);
- /* valid EE */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- }
- }
- grammarID = 546;
- } else if (1==1) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- done = 1;
- }
- grammarID = 3;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 546:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MeasurementData), END_ELEMENT] */
- if (v2gSensorMeasurementsType_MeasurementData_currArrayIndex < v2gSensorMeasurementsType->MeasurementData.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- /* First(xsi:type)StartTag[CHARACTERS[UNSIGNED_INTEGER]] */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- if(errn == 0) {
- errn = encodeUnsignedInteger16(stream, v2gSensorMeasurementsType->MeasurementData.array[v2gSensorMeasurementsType_MeasurementData_currArrayIndex++]);
- /* valid EE */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- }
- }
- grammarID = 547;
- } else if (1==1) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- done = 1;
- }
- grammarID = 3;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 547:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MeasurementData), END_ELEMENT] */
- if (v2gSensorMeasurementsType_MeasurementData_currArrayIndex < v2gSensorMeasurementsType->MeasurementData.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- /* First(xsi:type)StartTag[CHARACTERS[UNSIGNED_INTEGER]] */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- if(errn == 0) {
- errn = encodeUnsignedInteger16(stream, v2gSensorMeasurementsType->MeasurementData.array[v2gSensorMeasurementsType_MeasurementData_currArrayIndex++]);
- /* valid EE */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- }
- }
- grammarID = 548;
- } else if (1==1) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- done = 1;
- }
- grammarID = 3;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 548:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MeasurementData), END_ELEMENT] */
- if (v2gSensorMeasurementsType_MeasurementData_currArrayIndex < v2gSensorMeasurementsType->MeasurementData.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- /* First(xsi:type)StartTag[CHARACTERS[UNSIGNED_INTEGER]] */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- if(errn == 0) {
- errn = encodeUnsignedInteger16(stream, v2gSensorMeasurementsType->MeasurementData.array[v2gSensorMeasurementsType_MeasurementData_currArrayIndex++]);
- /* valid EE */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- }
- }
- grammarID = 549;
- } else if (1==1) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- done = 1;
- }
- grammarID = 3;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 549:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MeasurementData), END_ELEMENT] */
- if (v2gSensorMeasurementsType_MeasurementData_currArrayIndex < v2gSensorMeasurementsType->MeasurementData.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- /* First(xsi:type)StartTag[CHARACTERS[UNSIGNED_INTEGER]] */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- if(errn == 0) {
- errn = encodeUnsignedInteger16(stream, v2gSensorMeasurementsType->MeasurementData.array[v2gSensorMeasurementsType_MeasurementData_currArrayIndex++]);
- /* valid EE */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- }
- }
- grammarID = 550;
- } else if (1==1) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- done = 1;
- }
- grammarID = 3;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 550:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MeasurementData), END_ELEMENT] */
- if (v2gSensorMeasurementsType_MeasurementData_currArrayIndex < v2gSensorMeasurementsType->MeasurementData.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- /* First(xsi:type)StartTag[CHARACTERS[UNSIGNED_INTEGER]] */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- if(errn == 0) {
- errn = encodeUnsignedInteger16(stream, v2gSensorMeasurementsType->MeasurementData.array[v2gSensorMeasurementsType_MeasurementData_currArrayIndex++]);
- /* valid EE */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- }
- }
- grammarID = 551;
- } else if (1==1) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- done = 1;
- }
- grammarID = 3;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 551:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MeasurementData), END_ELEMENT] */
- if (v2gSensorMeasurementsType_MeasurementData_currArrayIndex < v2gSensorMeasurementsType->MeasurementData.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- /* First(xsi:type)StartTag[CHARACTERS[UNSIGNED_INTEGER]] */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- if(errn == 0) {
- errn = encodeUnsignedInteger16(stream, v2gSensorMeasurementsType->MeasurementData.array[v2gSensorMeasurementsType_MeasurementData_currArrayIndex++]);
- /* valid EE */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- }
- }
- grammarID = 552;
- } else if (1==1) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- done = 1;
- }
- grammarID = 3;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 552:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MeasurementData), END_ELEMENT] */
- if (v2gSensorMeasurementsType_MeasurementData_currArrayIndex < v2gSensorMeasurementsType->MeasurementData.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- /* First(xsi:type)StartTag[CHARACTERS[UNSIGNED_INTEGER]] */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- if(errn == 0) {
- errn = encodeUnsignedInteger16(stream, v2gSensorMeasurementsType->MeasurementData.array[v2gSensorMeasurementsType_MeasurementData_currArrayIndex++]);
- /* valid EE */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- }
- }
- grammarID = 553;
- } else if (1==1) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- done = 1;
- }
- grammarID = 3;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 553:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MeasurementData), END_ELEMENT] */
- if (v2gSensorMeasurementsType_MeasurementData_currArrayIndex < v2gSensorMeasurementsType->MeasurementData.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- /* First(xsi:type)StartTag[CHARACTERS[UNSIGNED_INTEGER]] */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- if(errn == 0) {
- errn = encodeUnsignedInteger16(stream, v2gSensorMeasurementsType->MeasurementData.array[v2gSensorMeasurementsType_MeasurementData_currArrayIndex++]);
- /* valid EE */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- }
- }
- grammarID = 554;
- } else if (1==1) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- done = 1;
- }
- grammarID = 3;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 554:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MeasurementData), END_ELEMENT] */
- if (v2gSensorMeasurementsType_MeasurementData_currArrayIndex < v2gSensorMeasurementsType->MeasurementData.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- /* First(xsi:type)StartTag[CHARACTERS[UNSIGNED_INTEGER]] */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- if(errn == 0) {
- errn = encodeUnsignedInteger16(stream, v2gSensorMeasurementsType->MeasurementData.array[v2gSensorMeasurementsType_MeasurementData_currArrayIndex++]);
- /* valid EE */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- }
- }
- grammarID = 555;
- } else if (1==1) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- done = 1;
- }
- grammarID = 3;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 555:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MeasurementData), END_ELEMENT] */
- if (v2gSensorMeasurementsType_MeasurementData_currArrayIndex < v2gSensorMeasurementsType->MeasurementData.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- /* First(xsi:type)StartTag[CHARACTERS[UNSIGNED_INTEGER]] */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- if(errn == 0) {
- errn = encodeUnsignedInteger16(stream, v2gSensorMeasurementsType->MeasurementData.array[v2gSensorMeasurementsType_MeasurementData_currArrayIndex++]);
- /* valid EE */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- }
- }
- grammarID = 556;
- } else if (1==1) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- done = 1;
- }
- grammarID = 3;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 556:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MeasurementData), END_ELEMENT] */
- if (v2gSensorMeasurementsType_MeasurementData_currArrayIndex < v2gSensorMeasurementsType->MeasurementData.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- /* First(xsi:type)StartTag[CHARACTERS[UNSIGNED_INTEGER]] */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- if(errn == 0) {
- errn = encodeUnsignedInteger16(stream, v2gSensorMeasurementsType->MeasurementData.array[v2gSensorMeasurementsType_MeasurementData_currArrayIndex++]);
- /* valid EE */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- }
- }
- grammarID = 557;
- } else if (1==1) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- done = 1;
- }
- grammarID = 3;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 557:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MeasurementData), END_ELEMENT] */
- if (v2gSensorMeasurementsType_MeasurementData_currArrayIndex < v2gSensorMeasurementsType->MeasurementData.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- /* First(xsi:type)StartTag[CHARACTERS[UNSIGNED_INTEGER]] */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- if(errn == 0) {
- errn = encodeUnsignedInteger16(stream, v2gSensorMeasurementsType->MeasurementData.array[v2gSensorMeasurementsType_MeasurementData_currArrayIndex++]);
- /* valid EE */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- }
- }
- grammarID = 558;
- } else if (1==1) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- done = 1;
- }
- grammarID = 3;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 558:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MeasurementData), END_ELEMENT] */
- if (v2gSensorMeasurementsType_MeasurementData_currArrayIndex < v2gSensorMeasurementsType->MeasurementData.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- /* First(xsi:type)StartTag[CHARACTERS[UNSIGNED_INTEGER]] */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- if(errn == 0) {
- errn = encodeUnsignedInteger16(stream, v2gSensorMeasurementsType->MeasurementData.array[v2gSensorMeasurementsType_MeasurementData_currArrayIndex++]);
- /* valid EE */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- }
- }
- grammarID = 559;
- } else if (1==1) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- done = 1;
- }
- grammarID = 3;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 559:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MeasurementData), END_ELEMENT] */
- if (v2gSensorMeasurementsType_MeasurementData_currArrayIndex < v2gSensorMeasurementsType->MeasurementData.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- /* First(xsi:type)StartTag[CHARACTERS[UNSIGNED_INTEGER]] */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- if(errn == 0) {
- errn = encodeUnsignedInteger16(stream, v2gSensorMeasurementsType->MeasurementData.array[v2gSensorMeasurementsType_MeasurementData_currArrayIndex++]);
- /* valid EE */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- }
- }
- grammarID = 560;
- } else if (1==1) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- done = 1;
- }
- grammarID = 3;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 560:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MeasurementData), END_ELEMENT] */
- if (v2gSensorMeasurementsType_MeasurementData_currArrayIndex < v2gSensorMeasurementsType->MeasurementData.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- /* First(xsi:type)StartTag[CHARACTERS[UNSIGNED_INTEGER]] */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- if(errn == 0) {
- errn = encodeUnsignedInteger16(stream, v2gSensorMeasurementsType->MeasurementData.array[v2gSensorMeasurementsType_MeasurementData_currArrayIndex++]);
- /* valid EE */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- }
- }
- grammarID = 561;
- } else if (1==1) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- done = 1;
- }
- grammarID = 3;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 561:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MeasurementData), END_ELEMENT] */
- if (v2gSensorMeasurementsType_MeasurementData_currArrayIndex < v2gSensorMeasurementsType->MeasurementData.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- /* First(xsi:type)StartTag[CHARACTERS[UNSIGNED_INTEGER]] */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- if(errn == 0) {
- errn = encodeUnsignedInteger16(stream, v2gSensorMeasurementsType->MeasurementData.array[v2gSensorMeasurementsType_MeasurementData_currArrayIndex++]);
- /* valid EE */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- }
- }
- grammarID = 562;
- } else if (1==1) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- done = 1;
- }
- grammarID = 3;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 562:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MeasurementData), END_ELEMENT] */
- if (v2gSensorMeasurementsType_MeasurementData_currArrayIndex < v2gSensorMeasurementsType->MeasurementData.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- /* First(xsi:type)StartTag[CHARACTERS[UNSIGNED_INTEGER]] */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- if(errn == 0) {
- errn = encodeUnsignedInteger16(stream, v2gSensorMeasurementsType->MeasurementData.array[v2gSensorMeasurementsType_MeasurementData_currArrayIndex++]);
- /* valid EE */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- }
- }
- grammarID = 563;
- } else if (1==1) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- done = 1;
- }
- grammarID = 3;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 563:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MeasurementData), END_ELEMENT] */
- if (v2gSensorMeasurementsType_MeasurementData_currArrayIndex < v2gSensorMeasurementsType->MeasurementData.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- /* First(xsi:type)StartTag[CHARACTERS[UNSIGNED_INTEGER]] */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- if(errn == 0) {
- errn = encodeUnsignedInteger16(stream, v2gSensorMeasurementsType->MeasurementData.array[v2gSensorMeasurementsType_MeasurementData_currArrayIndex++]);
- /* valid EE */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- }
- }
- grammarID = 564;
- } else if (1==1) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- done = 1;
- }
- grammarID = 3;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 564:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MeasurementData), END_ELEMENT] */
- if (v2gSensorMeasurementsType_MeasurementData_currArrayIndex < v2gSensorMeasurementsType->MeasurementData.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- /* First(xsi:type)StartTag[CHARACTERS[UNSIGNED_INTEGER]] */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- if(errn == 0) {
- errn = encodeUnsignedInteger16(stream, v2gSensorMeasurementsType->MeasurementData.array[v2gSensorMeasurementsType_MeasurementData_currArrayIndex++]);
- /* valid EE */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- }
- }
- grammarID = 565;
- } else if (1==1) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- done = 1;
- }
- grammarID = 3;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 565:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MeasurementData), END_ELEMENT] */
- if (v2gSensorMeasurementsType_MeasurementData_currArrayIndex < v2gSensorMeasurementsType->MeasurementData.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- /* First(xsi:type)StartTag[CHARACTERS[UNSIGNED_INTEGER]] */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- if(errn == 0) {
- errn = encodeUnsignedInteger16(stream, v2gSensorMeasurementsType->MeasurementData.array[v2gSensorMeasurementsType_MeasurementData_currArrayIndex++]);
- /* valid EE */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- }
- }
- grammarID = 566;
- } else if (1==1) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- done = 1;
- }
- grammarID = 3;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 566:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MeasurementData), END_ELEMENT] */
- if (v2gSensorMeasurementsType_MeasurementData_currArrayIndex < v2gSensorMeasurementsType->MeasurementData.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- /* First(xsi:type)StartTag[CHARACTERS[UNSIGNED_INTEGER]] */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- if(errn == 0) {
- errn = encodeUnsignedInteger16(stream, v2gSensorMeasurementsType->MeasurementData.array[v2gSensorMeasurementsType_MeasurementData_currArrayIndex++]);
- /* valid EE */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- }
- }
- grammarID = 567;
- } else if (1==1) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- done = 1;
- }
- grammarID = 3;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 567:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MeasurementData), END_ELEMENT] */
- if (v2gSensorMeasurementsType_MeasurementData_currArrayIndex < v2gSensorMeasurementsType->MeasurementData.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- /* First(xsi:type)StartTag[CHARACTERS[UNSIGNED_INTEGER]] */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- if(errn == 0) {
- errn = encodeUnsignedInteger16(stream, v2gSensorMeasurementsType->MeasurementData.array[v2gSensorMeasurementsType_MeasurementData_currArrayIndex++]);
- /* valid EE */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- }
- }
- grammarID = 568;
- } else if (1==1) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- done = 1;
- }
- grammarID = 3;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 568:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MeasurementData), END_ELEMENT] */
- if (v2gSensorMeasurementsType_MeasurementData_currArrayIndex < v2gSensorMeasurementsType->MeasurementData.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- /* First(xsi:type)StartTag[CHARACTERS[UNSIGNED_INTEGER]] */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- if(errn == 0) {
- errn = encodeUnsignedInteger16(stream, v2gSensorMeasurementsType->MeasurementData.array[v2gSensorMeasurementsType_MeasurementData_currArrayIndex++]);
- /* valid EE */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- }
- }
- grammarID = 569;
- } else if (1==1) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- done = 1;
- }
- grammarID = 3;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 569:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MeasurementData), END_ELEMENT] */
- if (v2gSensorMeasurementsType_MeasurementData_currArrayIndex < v2gSensorMeasurementsType->MeasurementData.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- /* First(xsi:type)StartTag[CHARACTERS[UNSIGNED_INTEGER]] */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- if(errn == 0) {
- errn = encodeUnsignedInteger16(stream, v2gSensorMeasurementsType->MeasurementData.array[v2gSensorMeasurementsType_MeasurementData_currArrayIndex++]);
- /* valid EE */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- }
- }
- grammarID = 570;
- } else if (1==1) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- done = 1;
- }
- grammarID = 3;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 570:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MeasurementData), END_ELEMENT] */
- if (v2gSensorMeasurementsType_MeasurementData_currArrayIndex < v2gSensorMeasurementsType->MeasurementData.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- /* First(xsi:type)StartTag[CHARACTERS[UNSIGNED_INTEGER]] */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- if(errn == 0) {
- errn = encodeUnsignedInteger16(stream, v2gSensorMeasurementsType->MeasurementData.array[v2gSensorMeasurementsType_MeasurementData_currArrayIndex++]);
- /* valid EE */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- }
- }
- grammarID = 571;
- } else if (1==1) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- done = 1;
- }
- grammarID = 3;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 571:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MeasurementData), END_ELEMENT] */
- if (v2gSensorMeasurementsType_MeasurementData_currArrayIndex < v2gSensorMeasurementsType->MeasurementData.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- /* First(xsi:type)StartTag[CHARACTERS[UNSIGNED_INTEGER]] */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- if(errn == 0) {
- errn = encodeUnsignedInteger16(stream, v2gSensorMeasurementsType->MeasurementData.array[v2gSensorMeasurementsType_MeasurementData_currArrayIndex++]);
- /* valid EE */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- }
- }
- grammarID = 572;
- } else if (1==1) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- done = 1;
- }
- grammarID = 3;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 572:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MeasurementData), END_ELEMENT] */
- if (v2gSensorMeasurementsType_MeasurementData_currArrayIndex < v2gSensorMeasurementsType->MeasurementData.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- /* First(xsi:type)StartTag[CHARACTERS[UNSIGNED_INTEGER]] */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- if(errn == 0) {
- errn = encodeUnsignedInteger16(stream, v2gSensorMeasurementsType->MeasurementData.array[v2gSensorMeasurementsType_MeasurementData_currArrayIndex++]);
- /* valid EE */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- }
- }
- grammarID = 573;
- } else if (1==1) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- done = 1;
- }
- grammarID = 3;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 573:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MeasurementData), END_ELEMENT] */
- if (v2gSensorMeasurementsType_MeasurementData_currArrayIndex < v2gSensorMeasurementsType->MeasurementData.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- /* First(xsi:type)StartTag[CHARACTERS[UNSIGNED_INTEGER]] */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- if(errn == 0) {
- errn = encodeUnsignedInteger16(stream, v2gSensorMeasurementsType->MeasurementData.array[v2gSensorMeasurementsType_MeasurementData_currArrayIndex++]);
- /* 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:2016:MsgDataTypes,AC_EVSEBidirectionalParameterType', base type name='AC_EVSEChargeParameterType', content type='ELEMENT', isAbstract='false', hasTypeId='false', final='0', block='0', particle='(("urn:iso:15118:2:2016:MsgDataTypes":EVSEMaximumChargeCurrent,"urn:iso:15118:2:2016:MsgDataTypes":EVSENominalVoltage,"urn:iso:15118:2:2016:MsgDataTypes":EVSENominalFrequency),("urn:iso:15118:2:2016:MsgDataTypes":EVSEMaximumDischargeCurrent,"urn:iso:15118:2:2016:MsgDataTypes":EVSENominalFrequency))', derivedBy='EXTENSION'. */
-static int encode_v2gAC_EVSEBidirectionalParameterType(bitstream_t* stream, struct v2gAC_EVSEBidirectionalParameterType* v2gAC_EVSEBidirectionalParameterType) {
- int grammarID = 574;
- int done = 0;
-
-
- while(!done) {
- switch(grammarID) {
- case 574:
- /* FirstStartTag[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}EVSEMaximumChargeCurrent)] */
- if ( 1 == 1 ) {
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- if(errn == 0) {
- errn = encode_v2gPhysicalValueType(stream, &v2gAC_EVSEBidirectionalParameterType->EVSEMaximumChargeCurrent );
- }
- grammarID = 575;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 575:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}EVSENominalVoltage)] */
- if ( 1 == 1 ) {
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- if(errn == 0) {
- errn = encode_v2gPhysicalValueType(stream, &v2gAC_EVSEBidirectionalParameterType->EVSENominalVoltage );
- }
- grammarID = 576;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 576:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}EVSENominalFrequency)] */
- if ( 1 == 1 ) {
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- if(errn == 0) {
- errn = encode_v2gPhysicalValueType(stream, &v2gAC_EVSEBidirectionalParameterType->EVSENominalFrequency );
- }
- grammarID = 577;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 577:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}EVSEMaximumDischargeCurrent)] */
- if ( 1 == 1 ) {
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- if(errn == 0) {
- errn = encode_v2gPhysicalValueType(stream, &v2gAC_EVSEBidirectionalParameterType->EVSEMaximumDischargeCurrent );
- }
- grammarID = 578;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 578:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}EVSENominalFrequency)] */
- if ( 1 == 1 ) {
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- if(errn == 0) {
- errn = encode_v2gPhysicalValueType(stream, &v2gAC_EVSEBidirectionalParameterType->EVSENominalFrequency );
- }
- grammarID = 2;
- } 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:2016:MsgDataTypes,ConsumptionCostType', base type name='anyType', content type='ELEMENT', isAbstract='false', hasTypeId='false', final='0', block='0', particle='("urn:iso:15118:2:2016:MsgDataTypes":startValue,"urn:iso:15118:2:2016:MsgDataTypes":Cost{1-3})', derivedBy='RESTRICTION'. */
-static int encode_v2gConsumptionCostType(bitstream_t* stream, struct v2gConsumptionCostType* v2gConsumptionCostType) {
- int grammarID = 579;
- int done = 0;
-
- unsigned int v2gConsumptionCostType_Cost_currArrayIndex = 0;
-
- while(!done) {
- switch(grammarID) {
- case 579:
- /* FirstStartTag[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}startValue)] */
- if ( 1 == 1 ) {
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- if(errn == 0) {
- errn = encode_v2gPhysicalValueType(stream, &v2gConsumptionCostType->startValue );
- }
- grammarID = 580;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 580:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}Cost)] */
- if (v2gConsumptionCostType_Cost_currArrayIndex < v2gConsumptionCostType->Cost.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- if(errn == 0) {
- errn = encode_v2gCostType(stream, &v2gConsumptionCostType->Cost.array [v2gConsumptionCostType_Cost_currArrayIndex++]);
- }
- grammarID = 581;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 581:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}Cost), END_ELEMENT] */
- if (v2gConsumptionCostType_Cost_currArrayIndex < v2gConsumptionCostType->Cost.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- errn = encode_v2gCostType(stream, &v2gConsumptionCostType->Cost.array [v2gConsumptionCostType_Cost_currArrayIndex++]);
- }
- grammarID = 582;
- } else if (1==1) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- done = 1;
- }
- grammarID = 3;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 582:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}Cost), END_ELEMENT] */
- if (v2gConsumptionCostType_Cost_currArrayIndex < v2gConsumptionCostType->Cost.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- errn = encode_v2gCostType(stream, &v2gConsumptionCostType->Cost.array [v2gConsumptionCostType_Cost_currArrayIndex++]);
- }
- 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;
+ grammarID = 4;
} else {
errn = EXI_ERROR_UNKOWN_EVENT;
}
@@ -13374,14 +319,14 @@ static int encode_v2gConsumptionCostType(bitstream_t* stream, struct v2gConsumpt
}
/* Complex type name='urn:iso:15118:2:2016:MsgBody,AuthorizationResType', base type name='V2GResponseType', content type='ELEMENT', isAbstract='false', hasTypeId='false', final='0', block='0', particle='(("urn:iso:15118:2:2016:MsgBody":ResponseCode,"urn:iso:15118:2:2016:MsgBody":EVSEStatus{0-1}),("urn:iso:15118:2:2016:MsgBody":EVSEProcessing))', derivedBy='EXTENSION'. */
-static int encode_v2gAuthorizationResType(bitstream_t* stream, struct v2gAuthorizationResType* v2gAuthorizationResType) {
- int grammarID = 583;
+static int encode_iso2AuthorizationResType(bitstream_t* stream, struct iso2AuthorizationResType* iso2AuthorizationResType) {
+ int grammarID = 5;
int done = 0;
while(!done) {
switch(grammarID) {
- case 583:
+ case 5:
/* FirstStartTag[START_ELEMENT({urn:iso:15118:2:2016:MsgBody}ResponseCode)] */
if ( 1 == 1 ) {
errn = encodeNBitUnsignedInteger(stream, 1, 0);
@@ -13389,41 +334,41 @@ static int encode_v2gAuthorizationResType(bitstream_t* stream, struct v2gAuthori
/* FirstStartTag[CHARACTERS[ENUMERATION]] */
errn = encodeNBitUnsignedInteger(stream, 1, 0);
if(errn == 0) {
- errn = encodeNBitUnsignedInteger(stream, 5, v2gAuthorizationResType->ResponseCode);
+ errn = encodeNBitUnsignedInteger(stream, 5, iso2AuthorizationResType->ResponseCode);
/* valid EE */
errn = encodeNBitUnsignedInteger(stream, 1, 0);
}
}
- grammarID = 584;
+ grammarID = 6;
} else {
errn = EXI_ERROR_UNKOWN_EVENT;
}
break;
- case 584:
+ case 6:
/* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgBody}EVSEStatus), START_ELEMENT({urn:iso:15118:2:2016:MsgBody}EVSEProcessing)] */
- if ( v2gAuthorizationResType->EVSEStatus_isUsed == 1u ) {
+ if ( iso2AuthorizationResType->EVSEStatus_isUsed == 1u ) {
errn = encodeNBitUnsignedInteger(stream, 2, 0);
if(errn == 0) {
- errn = encode_v2gEVSEStatusType(stream, &v2gAuthorizationResType->EVSEStatus );
+ errn = encode_iso2EVSEStatusType(stream, &iso2AuthorizationResType->EVSEStatus );
}
- grammarID = 585;
+ grammarID = 7;
} else if ( 1 == 1 ) {
errn = encodeNBitUnsignedInteger(stream, 2, 1);
if(errn == 0) {
/* FirstStartTag[CHARACTERS[ENUMERATION]] */
errn = encodeNBitUnsignedInteger(stream, 1, 0);
if(errn == 0) {
- errn = encodeNBitUnsignedInteger(stream, 2, v2gAuthorizationResType->EVSEProcessing);
+ errn = encodeNBitUnsignedInteger(stream, 2, iso2AuthorizationResType->EVSEProcessing);
/* valid EE */
errn = encodeNBitUnsignedInteger(stream, 1, 0);
}
}
- grammarID = 2;
+ grammarID = 3;
} else {
errn = EXI_ERROR_UNKOWN_EVENT;
}
break;
- case 585:
+ case 7:
/* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgBody}EVSEProcessing)] */
if ( 1 == 1 ) {
errn = encodeNBitUnsignedInteger(stream, 1, 0);
@@ -13431,441 +376,24 @@ static int encode_v2gAuthorizationResType(bitstream_t* stream, struct v2gAuthori
/* FirstStartTag[CHARACTERS[ENUMERATION]] */
errn = encodeNBitUnsignedInteger(stream, 1, 0);
if(errn == 0) {
- errn = encodeNBitUnsignedInteger(stream, 2, v2gAuthorizationResType->EVSEProcessing);
+ errn = encodeNBitUnsignedInteger(stream, 2, iso2AuthorizationResType->EVSEProcessing);
/* valid EE */
errn = encodeNBitUnsignedInteger(stream, 1, 0);
}
}
- grammarID = 2;
+ grammarID = 3;
} else {
errn = EXI_ERROR_UNKOWN_EVENT;
}
break;
- case 2:
+ case 3:
/* 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:2016:MsgDataTypes,Generic_EVFinePositioningParametersType', base type name='EVFinePositioningParametersType', content type='ELEMENT', isAbstract='false', hasTypeId='false', final='0', block='0', particle='("urn:iso:15118:2:2016:MsgDataTypes":GenericParameters)', derivedBy='EXTENSION'. */
-static int encode_v2gGeneric_EVFinePositioningParametersType(bitstream_t* stream, struct v2gGeneric_EVFinePositioningParametersType* v2gGeneric_EVFinePositioningParametersType) {
- int grammarID = 586;
- int done = 0;
-
-
- while(!done) {
- switch(grammarID) {
- case 586:
- /* FirstStartTag[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}GenericParameters)] */
- if ( 1 == 1 ) {
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- if(errn == 0) {
- errn = encode_v2gParameterSetType(stream, &v2gGeneric_EVFinePositioningParametersType->GenericParameters );
- }
- grammarID = 2;
- } 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:2016:MsgDataTypes,EVSEStatusType', base type name='anyType', content type='ELEMENT', isAbstract='false', hasTypeId='false', final='0', block='0', particle='("urn:iso:15118:2:2016:MsgDataTypes":NotificationMaxDelay,"urn:iso:15118:2:2016:MsgDataTypes":EVSENotification)', derivedBy='RESTRICTION'. */
-static int encode_v2gEVSEStatusType(bitstream_t* stream, struct v2gEVSEStatusType* v2gEVSEStatusType) {
- int grammarID = 587;
- int done = 0;
-
-
- while(!done) {
- switch(grammarID) {
- case 587:
- /* FirstStartTag[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}NotificationMaxDelay)] */
- if ( 1 == 1 ) {
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- if(errn == 0) {
- /* First(xsi:type)StartTag[CHARACTERS[UNSIGNED_INTEGER]] */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- if(errn == 0) {
- errn = encodeUnsignedInteger16(stream, v2gEVSEStatusType->NotificationMaxDelay);
- /* valid EE */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- }
- }
- grammarID = 588;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 588:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}EVSENotification)] */
- 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, 1, v2gEVSEStatusType->EVSENotification);
- /* valid EE */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- }
- }
- grammarID = 2;
- } 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='http://www.w3.org/2000/09/xmldsig#,X509IssuerSerialType', base type name='anyType', content type='ELEMENT', isAbstract='false', hasTypeId='false', final='0', block='0', particle='("http://www.w3.org/2000/09/xmldsig#":X509IssuerName,"http://www.w3.org/2000/09/xmldsig#":X509SerialNumber)', derivedBy='RESTRICTION'. */
-static int encode_v2gX509IssuerSerialType(bitstream_t* stream, struct v2gX509IssuerSerialType* v2gX509IssuerSerialType) {
- int grammarID = 589;
- int done = 0;
-
-
- while(!done) {
- switch(grammarID) {
- case 589:
- /* FirstStartTag[START_ELEMENT({http://www.w3.org/2000/09/xmldsig#}X509IssuerName)] */
- if ( 1 == 1 ) {
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- if(errn == 0) {
- /* First(xsi:type)StartTag[CHARACTERS[STRING]] */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- if(errn == 0) {
- /* encode string as string table miss (+2 len)*/
- errn = encodeUnsignedInteger16(stream, (uint16_t)(v2gX509IssuerSerialType->X509IssuerName.charactersLen + 2));
- if (errn == 0) {
- errn = encodeCharacters(stream, v2gX509IssuerSerialType->X509IssuerName.characters, v2gX509IssuerSerialType->X509IssuerName.charactersLen);
- }
- /* valid EE */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- }
- }
- grammarID = 590;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 590:
- /* Element[START_ELEMENT({http://www.w3.org/2000/09/xmldsig#}X509SerialNumber)] */
- if ( 1 == 1 ) {
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- if(errn == 0) {
- /* First(xsi:type)StartTag[CHARACTERS[INTEGER]] */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- if(errn == 0) {
- errn = encodeInteger64(stream, v2gX509IssuerSerialType->X509SerialNumber);
- /* valid EE */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- }
- }
- grammarID = 2;
- } 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:2016:MsgDataTypes,AC_EVBidirectionalParameterType', base type name='AC_EVChargeParameterType', content type='ELEMENT', isAbstract='false', hasTypeId='false', final='0', block='0', particle='((("urn:iso:15118:2:2016:MsgDataTypes":DepartureTime),("urn:iso:15118:2:2016:MsgDataTypes":EVMaximumChargePower,"urn:iso:15118:2:2016:MsgDataTypes":EVMaximumChargeCurrent,"urn:iso:15118:2:2016:MsgDataTypes":EVMinimumChargeCurrent,"urn:iso:15118:2:2016:MsgDataTypes":EVTargetEnergyRequest{0-1},"urn:iso:15118:2:2016:MsgDataTypes":EVMaximumEnergyRequest{0-1},"urn:iso:15118:2:2016:MsgDataTypes":EVMinimumEnergyRequest{0-1},"urn:iso:15118:2:2016:MsgDataTypes":EVMaximumVoltage)),("urn:iso:15118:2:2016:MsgDataTypes":EVMaximumDischargePower,"urn:iso:15118:2:2016:MsgDataTypes":EVMaximumDischargeCurrent,"urn:iso:15118:2:2016:MsgDataTypes":EVMinimumDischargeCurrent))', derivedBy='EXTENSION'. */
-static int encode_v2gAC_EVBidirectionalParameterType(bitstream_t* stream, struct v2gAC_EVBidirectionalParameterType* v2gAC_EVBidirectionalParameterType) {
- int grammarID = 591;
- int done = 0;
-
-
- while(!done) {
- switch(grammarID) {
- case 591:
- /* FirstStartTag[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}DepartureTime)] */
- if ( 1 == 1 ) {
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- if(errn == 0) {
- /* First(xsi:type)StartTag[CHARACTERS[UNSIGNED_INTEGER]] */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- if(errn == 0) {
- errn = encodeUnsignedInteger32(stream, v2gAC_EVBidirectionalParameterType->DepartureTime);
- /* valid EE */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- }
- }
- grammarID = 592;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 592:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}EVMaximumChargePower)] */
- if ( 1 == 1 ) {
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- if(errn == 0) {
- errn = encode_v2gPhysicalValueType(stream, &v2gAC_EVBidirectionalParameterType->EVMaximumChargePower );
- }
- grammarID = 593;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 593:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}EVMaximumChargeCurrent)] */
- if ( 1 == 1 ) {
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- if(errn == 0) {
- errn = encode_v2gPhysicalValueType(stream, &v2gAC_EVBidirectionalParameterType->EVMaximumChargeCurrent );
- }
- grammarID = 594;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 594:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}EVMinimumChargeCurrent)] */
- if ( 1 == 1 ) {
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- if(errn == 0) {
- errn = encode_v2gPhysicalValueType(stream, &v2gAC_EVBidirectionalParameterType->EVMinimumChargeCurrent );
- }
- grammarID = 595;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 595:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}EVTargetEnergyRequest), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}EVMaximumEnergyRequest), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}EVMinimumEnergyRequest), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}EVMaximumVoltage)] */
- if ( v2gAC_EVBidirectionalParameterType->EVTargetEnergyRequest_isUsed == 1u ) {
- errn = encodeNBitUnsignedInteger(stream, 3, 0);
- if(errn == 0) {
- errn = encode_v2gPhysicalValueType(stream, &v2gAC_EVBidirectionalParameterType->EVTargetEnergyRequest );
- }
- grammarID = 596;
- } else if ( v2gAC_EVBidirectionalParameterType->EVMaximumEnergyRequest_isUsed == 1u ) {
- errn = encodeNBitUnsignedInteger(stream, 3, 1);
- if(errn == 0) {
- errn = encode_v2gPhysicalValueType(stream, &v2gAC_EVBidirectionalParameterType->EVMaximumEnergyRequest );
- }
- grammarID = 597;
- } else if ( v2gAC_EVBidirectionalParameterType->EVMinimumEnergyRequest_isUsed == 1u ) {
- errn = encodeNBitUnsignedInteger(stream, 3, 2);
- if(errn == 0) {
- errn = encode_v2gPhysicalValueType(stream, &v2gAC_EVBidirectionalParameterType->EVMinimumEnergyRequest );
- }
- grammarID = 598;
- } else if ( 1 == 1 ) {
- errn = encodeNBitUnsignedInteger(stream, 3, 3);
- if(errn == 0) {
- errn = encode_v2gPhysicalValueType(stream, &v2gAC_EVBidirectionalParameterType->EVMaximumVoltage );
- }
- grammarID = 599;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 596:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}EVMaximumEnergyRequest), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}EVMinimumEnergyRequest), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}EVMaximumVoltage)] */
- if ( v2gAC_EVBidirectionalParameterType->EVMaximumEnergyRequest_isUsed == 1u ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- errn = encode_v2gPhysicalValueType(stream, &v2gAC_EVBidirectionalParameterType->EVMaximumEnergyRequest );
- }
- grammarID = 597;
- } else if ( v2gAC_EVBidirectionalParameterType->EVMinimumEnergyRequest_isUsed == 1u ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- errn = encode_v2gPhysicalValueType(stream, &v2gAC_EVBidirectionalParameterType->EVMinimumEnergyRequest );
- }
- grammarID = 598;
- } else if ( 1 == 1 ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 2);
- if(errn == 0) {
- errn = encode_v2gPhysicalValueType(stream, &v2gAC_EVBidirectionalParameterType->EVMaximumVoltage );
- }
- grammarID = 599;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 597:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}EVMinimumEnergyRequest), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}EVMaximumVoltage)] */
- if ( v2gAC_EVBidirectionalParameterType->EVMinimumEnergyRequest_isUsed == 1u ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- errn = encode_v2gPhysicalValueType(stream, &v2gAC_EVBidirectionalParameterType->EVMinimumEnergyRequest );
- }
- grammarID = 598;
- } else if ( 1 == 1 ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- errn = encode_v2gPhysicalValueType(stream, &v2gAC_EVBidirectionalParameterType->EVMaximumVoltage );
- }
- grammarID = 599;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 598:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}EVMaximumVoltage)] */
- if ( 1 == 1 ) {
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- if(errn == 0) {
- errn = encode_v2gPhysicalValueType(stream, &v2gAC_EVBidirectionalParameterType->EVMaximumVoltage );
- }
- grammarID = 599;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 599:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}EVMaximumDischargePower)] */
- if ( 1 == 1 ) {
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- if(errn == 0) {
- errn = encode_v2gPhysicalValueType(stream, &v2gAC_EVBidirectionalParameterType->EVMaximumDischargePower );
- }
- grammarID = 600;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 600:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}EVMaximumDischargeCurrent)] */
- if ( 1 == 1 ) {
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- if(errn == 0) {
- errn = encode_v2gPhysicalValueType(stream, &v2gAC_EVBidirectionalParameterType->EVMaximumDischargeCurrent );
- }
- grammarID = 601;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 601:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}EVMinimumDischargeCurrent)] */
- if ( 1 == 1 ) {
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- if(errn == 0) {
- errn = encode_v2gPhysicalValueType(stream, &v2gAC_EVBidirectionalParameterType->EVMinimumDischargeCurrent );
- }
- grammarID = 2;
- } 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:2016:MsgDataTypes,EVFinePositioningSetupParametersType', base type name='anyType', content type='EMPTY', isAbstract='true', hasTypeId='false', final='0', block='0', derivedBy='RESTRICTION'. */
-static int encode_v2gEVFinePositioningSetupParametersType(bitstream_t* stream, struct v2gEVFinePositioningSetupParametersType* v2gEVFinePositioningSetupParametersType) {
- int grammarID = 4;
- int done = 0;
-
-
- while(!done) {
- switch(grammarID) {
- case 4:
- /* FirstStartTag[END_ELEMENT] */
- if (1==1) {
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- if(errn == 0) {
- done = 1;
- }
- grammarID = 3;
+ grammarID = 4;
} else {
errn = EXI_ERROR_UNKOWN_EVENT;
}
@@ -13882,23217 +410,69 @@ static int encode_v2gEVFinePositioningSetupParametersType(bitstream_t* stream, s
}
/* Complex type name='urn:iso:15118:2:2016:MsgDataTypes,MV_EVSEFinePositioningSetupParametersType', base type name='EVSEFinePositioningSetupParametersType', content type='ELEMENT', isAbstract='false', hasTypeId='false', final='0', block='0', particle='("urn:iso:15118:2:2016:MsgDataTypes":FrequencyChannel{0-1},"urn:iso:15118:2:2016:MsgDataTypes":MagneticVectorSetupList{0-1})', derivedBy='EXTENSION'. */
-static int encode_v2gMV_EVSEFinePositioningSetupParametersType(bitstream_t* stream, struct v2gMV_EVSEFinePositioningSetupParametersType* v2gMV_EVSEFinePositioningSetupParametersType) {
- int grammarID = 602;
+static int encode_iso2MV_EVSEFinePositioningSetupParametersType(bitstream_t* stream, struct iso2MV_EVSEFinePositioningSetupParametersType* iso2MV_EVSEFinePositioningSetupParametersType) {
+ int grammarID = 8;
int done = 0;
while(!done) {
switch(grammarID) {
- case 602:
- /* FirstStartTag[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}FrequencyChannel), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MagneticVectorSetupList), END_ELEMENT] */
- if ( v2gMV_EVSEFinePositioningSetupParametersType->FrequencyChannel_isUsed == 1u ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- /* First(xsi:type)StartTag[CHARACTERS[UNSIGNED_INTEGER]] */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- if(errn == 0) {
- errn = encodeUnsignedInteger32(stream, v2gMV_EVSEFinePositioningSetupParametersType->FrequencyChannel);
- /* valid EE */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- }
- }
- grammarID = 603;
- } else if ( v2gMV_EVSEFinePositioningSetupParametersType->MagneticVectorSetupList_isUsed == 1u ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- errn = encode_v2gMagneticVectorSetupListType(stream, &v2gMV_EVSEFinePositioningSetupParametersType->MagneticVectorSetupList );
- }
- grammarID = 2;
- } else if (1==1) {
- errn = encodeNBitUnsignedInteger(stream, 2, 2);
- if(errn == 0) {
- done = 1;
- }
- grammarID = 3;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 603:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MagneticVectorSetupList), END_ELEMENT] */
- if ( v2gMV_EVSEFinePositioningSetupParametersType->MagneticVectorSetupList_isUsed == 1u ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- errn = encode_v2gMagneticVectorSetupListType(stream, &v2gMV_EVSEFinePositioningSetupParametersType->MagneticVectorSetupList );
- }
- 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:2016:MsgBody,MeteringReceiptReqType', base type name='BodyBaseType', content type='ELEMENT', isAbstract='false', hasTypeId='false', final='0', block='0', particle='("urn:iso:15118:2:2016:MsgBody":SessionID,"urn:iso:15118:2:2016:MsgBody":SAScheduleTupleID{0-1},"urn:iso:15118:2:2016:MsgBody":MeterInfo)', derivedBy='EXTENSION'. */
-static int encode_v2gMeteringReceiptReqType(bitstream_t* stream, struct v2gMeteringReceiptReqType* v2gMeteringReceiptReqType) {
- int grammarID = 604;
- int done = 0;
-
-
- while(!done) {
- switch(grammarID) {
- case 604:
- /* FirstStartTag[ATTRIBUTE[STRING]({urn:iso:15118:2:2016:MsgBody}Id)] */
- if (1==1) {
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- if(errn == 0) {
- /* encode string as string table miss (+2 len)*/
- errn = encodeUnsignedInteger16(stream, (uint16_t)(v2gMeteringReceiptReqType->Id.charactersLen + 2));
- if (errn == 0) {
- errn = encodeCharacters(stream, v2gMeteringReceiptReqType->Id.characters, v2gMeteringReceiptReqType->Id.charactersLen);
- }
- }
- grammarID = 605;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 605:
- /* StartTag[START_ELEMENT({urn:iso:15118:2:2016:MsgBody}SessionID)] */
- if ( 1 == 1 ) {
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- if(errn == 0) {
- /* FirstStartTag[CHARACTERS[BINARY_HEX]] */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- if(errn == 0) {
- errn = encodeUnsignedInteger16(stream, (uint16_t)(v2gMeteringReceiptReqType->SessionID.bytesLen));
- if (errn == 0) {
- errn = encodeBytes(stream, v2gMeteringReceiptReqType->SessionID.bytes, v2gMeteringReceiptReqType->SessionID.bytesLen);
- }
- /* valid EE */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- }
- }
- grammarID = 606;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 606:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgBody}SAScheduleTupleID), START_ELEMENT({urn:iso:15118:2:2016:MsgBody}MeterInfo)] */
- if ( v2gMeteringReceiptReqType->SAScheduleTupleID_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)(v2gMeteringReceiptReqType->SAScheduleTupleID - 1));
- /* valid EE */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- }
- }
- grammarID = 607;
- } else if ( 1 == 1 ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- errn = encode_v2gMeterInfoType(stream, &v2gMeteringReceiptReqType->MeterInfo );
- }
- grammarID = 2;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 607:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgBody}MeterInfo)] */
- if ( 1 == 1 ) {
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- if(errn == 0) {
- errn = encode_v2gMeterInfoType(stream, &v2gMeteringReceiptReqType->MeterInfo );
- }
- grammarID = 2;
- } 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:2016:MsgBody,AuthorizationReqType', base type name='BodyBaseType', content type='ELEMENT', isAbstract='false', hasTypeId='false', final='0', block='0', particle='("urn:iso:15118:2:2016:MsgBody":GenChallenge{0-1})', derivedBy='EXTENSION'. */
-static int encode_v2gAuthorizationReqType(bitstream_t* stream, struct v2gAuthorizationReqType* v2gAuthorizationReqType) {
- int grammarID = 608;
- int done = 0;
-
-
- while(!done) {
- switch(grammarID) {
- case 608:
- /* FirstStartTag[ATTRIBUTE[STRING]({urn:iso:15118:2:2016:MsgBody}Id), START_ELEMENT({urn:iso:15118:2:2016:MsgBody}GenChallenge), END_ELEMENT] */
- if ( v2gAuthorizationReqType->Id_isUsed == 1u ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- /* encode string as string table miss (+2 len)*/
- errn = encodeUnsignedInteger16(stream, (uint16_t)(v2gAuthorizationReqType->Id.charactersLen + 2));
- if (errn == 0) {
- errn = encodeCharacters(stream, v2gAuthorizationReqType->Id.characters, v2gAuthorizationReqType->Id.charactersLen);
- }
- }
- grammarID = 609;
- } else if ( v2gAuthorizationReqType->GenChallenge_isUsed == 1u ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- /* FirstStartTag[CHARACTERS[BINARY_BASE64]] */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- if(errn == 0) {
- errn = encodeUnsignedInteger16(stream, (uint16_t)(v2gAuthorizationReqType->GenChallenge.bytesLen));
- if (errn == 0) {
- errn = encodeBytes(stream, v2gAuthorizationReqType->GenChallenge.bytes, v2gAuthorizationReqType->GenChallenge.bytesLen);
- }
- /* valid EE */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- }
- }
- grammarID = 2;
- } else if (1==1) {
- errn = encodeNBitUnsignedInteger(stream, 2, 2);
- if(errn == 0) {
- done = 1;
- }
- grammarID = 3;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 609:
- /* StartTag[START_ELEMENT({urn:iso:15118:2:2016:MsgBody}GenChallenge), END_ELEMENT] */
- if ( v2gAuthorizationReqType->GenChallenge_isUsed == 1u ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- /* FirstStartTag[CHARACTERS[BINARY_BASE64]] */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- if(errn == 0) {
- errn = encodeUnsignedInteger16(stream, (uint16_t)(v2gAuthorizationReqType->GenChallenge.bytesLen));
- if (errn == 0) {
- errn = encodeBytes(stream, v2gAuthorizationReqType->GenChallenge.bytes, v2gAuthorizationReqType->GenChallenge.bytesLen);
- }
- /* 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:2016:MsgBody,ChargingStatusReqType', base type name='ChargeLoopReqType', content type='ELEMENT', isAbstract='false', hasTypeId='false', final='0', block='0', particle='(("urn:iso:15118:2:2016:MsgBody":EVTargetEnergyRequest,"urn:iso:15118:2:2016:MsgBody":EVMaximumEnergyRequest{0-1},"urn:iso:15118:2:2016:MsgBody":EVMinimumEnergyRequest{0-1},"urn:iso:15118:2:2016:MsgBody":DisplayParameters{0-1}),("urn:iso:15118:2:2016:MsgBody":EVMaximumChargePower{0-1},"urn:iso:15118:2:2016:MsgBody":EVMaximumChargeCurrent{0-1},"urn:iso:15118:2:2016:MsgBody":EVMinimumChargeCurrent{0-1}))', derivedBy='EXTENSION'. */
-static int encode_v2gChargingStatusReqType(bitstream_t* stream, struct v2gChargingStatusReqType* v2gChargingStatusReqType) {
- int grammarID = 610;
- int done = 0;
-
-
- while(!done) {
- switch(grammarID) {
- case 610:
- /* FirstStartTag[START_ELEMENT({urn:iso:15118:2:2016:MsgBody}EVTargetEnergyRequest)] */
- if ( 1 == 1 ) {
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- if(errn == 0) {
- errn = encode_v2gPhysicalValueType(stream, &v2gChargingStatusReqType->EVTargetEnergyRequest );
- }
- grammarID = 611;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 611:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgBody}EVMaximumEnergyRequest), START_ELEMENT({urn:iso:15118:2:2016:MsgBody}EVMinimumEnergyRequest), START_ELEMENT({urn:iso:15118:2:2016:MsgBody}DisplayParameters), START_ELEMENT({urn:iso:15118:2:2016:MsgBody}EVMaximumChargePower), START_ELEMENT({urn:iso:15118:2:2016:MsgBody}EVMaximumChargeCurrent), START_ELEMENT({urn:iso:15118:2:2016:MsgBody}EVMinimumChargeCurrent), END_ELEMENT] */
- if ( v2gChargingStatusReqType->EVMaximumEnergyRequest_isUsed == 1u ) {
- errn = encodeNBitUnsignedInteger(stream, 3, 0);
- if(errn == 0) {
- errn = encode_v2gPhysicalValueType(stream, &v2gChargingStatusReqType->EVMaximumEnergyRequest );
- }
- grammarID = 612;
- } else if ( v2gChargingStatusReqType->EVMinimumEnergyRequest_isUsed == 1u ) {
- errn = encodeNBitUnsignedInteger(stream, 3, 1);
- if(errn == 0) {
- errn = encode_v2gPhysicalValueType(stream, &v2gChargingStatusReqType->EVMinimumEnergyRequest );
- }
- grammarID = 613;
- } else if ( v2gChargingStatusReqType->DisplayParameters_isUsed == 1u ) {
- errn = encodeNBitUnsignedInteger(stream, 3, 2);
- if(errn == 0) {
- errn = encode_v2gDisplayParametersType(stream, &v2gChargingStatusReqType->DisplayParameters );
- }
- grammarID = 614;
- } else if ( v2gChargingStatusReqType->EVMaximumChargePower_isUsed == 1u ) {
- errn = encodeNBitUnsignedInteger(stream, 3, 3);
- if(errn == 0) {
- errn = encode_v2gPhysicalValueType(stream, &v2gChargingStatusReqType->EVMaximumChargePower );
- }
- grammarID = 615;
- } else if ( v2gChargingStatusReqType->EVMaximumChargeCurrent_isUsed == 1u ) {
- errn = encodeNBitUnsignedInteger(stream, 3, 4);
- if(errn == 0) {
- errn = encode_v2gPhysicalValueType(stream, &v2gChargingStatusReqType->EVMaximumChargeCurrent );
- }
- grammarID = 616;
- } else if ( v2gChargingStatusReqType->EVMinimumChargeCurrent_isUsed == 1u ) {
- errn = encodeNBitUnsignedInteger(stream, 3, 5);
- if(errn == 0) {
- errn = encode_v2gPhysicalValueType(stream, &v2gChargingStatusReqType->EVMinimumChargeCurrent );
- }
- grammarID = 2;
- } else if (1==1) {
- errn = encodeNBitUnsignedInteger(stream, 3, 6);
- if(errn == 0) {
- done = 1;
- }
- grammarID = 3;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 612:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgBody}EVMinimumEnergyRequest), START_ELEMENT({urn:iso:15118:2:2016:MsgBody}DisplayParameters), START_ELEMENT({urn:iso:15118:2:2016:MsgBody}EVMaximumChargePower), START_ELEMENT({urn:iso:15118:2:2016:MsgBody}EVMaximumChargeCurrent), START_ELEMENT({urn:iso:15118:2:2016:MsgBody}EVMinimumChargeCurrent), END_ELEMENT] */
- if ( v2gChargingStatusReqType->EVMinimumEnergyRequest_isUsed == 1u ) {
- errn = encodeNBitUnsignedInteger(stream, 3, 0);
- if(errn == 0) {
- errn = encode_v2gPhysicalValueType(stream, &v2gChargingStatusReqType->EVMinimumEnergyRequest );
- }
- grammarID = 613;
- } else if ( v2gChargingStatusReqType->DisplayParameters_isUsed == 1u ) {
- errn = encodeNBitUnsignedInteger(stream, 3, 1);
- if(errn == 0) {
- errn = encode_v2gDisplayParametersType(stream, &v2gChargingStatusReqType->DisplayParameters );
- }
- grammarID = 614;
- } else if ( v2gChargingStatusReqType->EVMaximumChargePower_isUsed == 1u ) {
- errn = encodeNBitUnsignedInteger(stream, 3, 2);
- if(errn == 0) {
- errn = encode_v2gPhysicalValueType(stream, &v2gChargingStatusReqType->EVMaximumChargePower );
- }
- grammarID = 615;
- } else if ( v2gChargingStatusReqType->EVMaximumChargeCurrent_isUsed == 1u ) {
- errn = encodeNBitUnsignedInteger(stream, 3, 3);
- if(errn == 0) {
- errn = encode_v2gPhysicalValueType(stream, &v2gChargingStatusReqType->EVMaximumChargeCurrent );
- }
- grammarID = 616;
- } else if ( v2gChargingStatusReqType->EVMinimumChargeCurrent_isUsed == 1u ) {
- errn = encodeNBitUnsignedInteger(stream, 3, 4);
- if(errn == 0) {
- errn = encode_v2gPhysicalValueType(stream, &v2gChargingStatusReqType->EVMinimumChargeCurrent );
- }
- grammarID = 2;
- } else if (1==1) {
- errn = encodeNBitUnsignedInteger(stream, 3, 5);
- if(errn == 0) {
- done = 1;
- }
- grammarID = 3;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 613:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgBody}DisplayParameters), START_ELEMENT({urn:iso:15118:2:2016:MsgBody}EVMaximumChargePower), START_ELEMENT({urn:iso:15118:2:2016:MsgBody}EVMaximumChargeCurrent), START_ELEMENT({urn:iso:15118:2:2016:MsgBody}EVMinimumChargeCurrent), END_ELEMENT] */
- if ( v2gChargingStatusReqType->DisplayParameters_isUsed == 1u ) {
- errn = encodeNBitUnsignedInteger(stream, 3, 0);
- if(errn == 0) {
- errn = encode_v2gDisplayParametersType(stream, &v2gChargingStatusReqType->DisplayParameters );
- }
- grammarID = 614;
- } else if ( v2gChargingStatusReqType->EVMaximumChargePower_isUsed == 1u ) {
- errn = encodeNBitUnsignedInteger(stream, 3, 1);
- if(errn == 0) {
- errn = encode_v2gPhysicalValueType(stream, &v2gChargingStatusReqType->EVMaximumChargePower );
- }
- grammarID = 615;
- } else if ( v2gChargingStatusReqType->EVMaximumChargeCurrent_isUsed == 1u ) {
- errn = encodeNBitUnsignedInteger(stream, 3, 2);
- if(errn == 0) {
- errn = encode_v2gPhysicalValueType(stream, &v2gChargingStatusReqType->EVMaximumChargeCurrent );
- }
- grammarID = 616;
- } else if ( v2gChargingStatusReqType->EVMinimumChargeCurrent_isUsed == 1u ) {
- errn = encodeNBitUnsignedInteger(stream, 3, 3);
- if(errn == 0) {
- errn = encode_v2gPhysicalValueType(stream, &v2gChargingStatusReqType->EVMinimumChargeCurrent );
- }
- grammarID = 2;
- } else if (1==1) {
- errn = encodeNBitUnsignedInteger(stream, 3, 4);
- if(errn == 0) {
- done = 1;
- }
- grammarID = 3;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 614:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgBody}EVMaximumChargePower), START_ELEMENT({urn:iso:15118:2:2016:MsgBody}EVMaximumChargeCurrent), START_ELEMENT({urn:iso:15118:2:2016:MsgBody}EVMinimumChargeCurrent), END_ELEMENT] */
- if ( v2gChargingStatusReqType->EVMaximumChargePower_isUsed == 1u ) {
- errn = encodeNBitUnsignedInteger(stream, 3, 0);
- if(errn == 0) {
- errn = encode_v2gPhysicalValueType(stream, &v2gChargingStatusReqType->EVMaximumChargePower );
- }
- grammarID = 615;
- } else if ( v2gChargingStatusReqType->EVMaximumChargeCurrent_isUsed == 1u ) {
- errn = encodeNBitUnsignedInteger(stream, 3, 1);
- if(errn == 0) {
- errn = encode_v2gPhysicalValueType(stream, &v2gChargingStatusReqType->EVMaximumChargeCurrent );
- }
- grammarID = 616;
- } else if ( v2gChargingStatusReqType->EVMinimumChargeCurrent_isUsed == 1u ) {
- errn = encodeNBitUnsignedInteger(stream, 3, 2);
- if(errn == 0) {
- errn = encode_v2gPhysicalValueType(stream, &v2gChargingStatusReqType->EVMinimumChargeCurrent );
- }
- grammarID = 2;
- } else if (1==1) {
- errn = encodeNBitUnsignedInteger(stream, 3, 3);
- if(errn == 0) {
- done = 1;
- }
- grammarID = 3;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 615:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgBody}EVMaximumChargeCurrent), START_ELEMENT({urn:iso:15118:2:2016:MsgBody}EVMinimumChargeCurrent), END_ELEMENT] */
- if ( v2gChargingStatusReqType->EVMaximumChargeCurrent_isUsed == 1u ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- errn = encode_v2gPhysicalValueType(stream, &v2gChargingStatusReqType->EVMaximumChargeCurrent );
- }
- grammarID = 616;
- } else if ( v2gChargingStatusReqType->EVMinimumChargeCurrent_isUsed == 1u ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- errn = encode_v2gPhysicalValueType(stream, &v2gChargingStatusReqType->EVMinimumChargeCurrent );
- }
- grammarID = 2;
- } else if (1==1) {
- errn = encodeNBitUnsignedInteger(stream, 2, 2);
- if(errn == 0) {
- done = 1;
- }
- grammarID = 3;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 616:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgBody}EVMinimumChargeCurrent), END_ELEMENT] */
- if ( v2gChargingStatusReqType->EVMinimumChargeCurrent_isUsed == 1u ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- errn = encode_v2gPhysicalValueType(stream, &v2gChargingStatusReqType->EVMinimumChargeCurrent );
- }
- 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='http://www.w3.org/2000/09/xmldsig#,ManifestType', base type name='anyType', content type='ELEMENT', isAbstract='false', hasTypeId='false', final='0', block='0', particle='("http://www.w3.org/2000/09/xmldsig#":Reference{1-UNBOUNDED})', derivedBy='RESTRICTION'. */
-static int encode_v2gManifestType(bitstream_t* stream, struct v2gManifestType* v2gManifestType) {
- int grammarID = 617;
- int done = 0;
-
- unsigned int v2gManifestType_Reference_currArrayIndex = 0;
-
- while(!done) {
- switch(grammarID) {
- case 617:
- /* FirstStartTag[ATTRIBUTE[STRING](Id), START_ELEMENT({http://www.w3.org/2000/09/xmldsig#}Reference)] */
- if ( v2gManifestType->Id_isUsed == 1u ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- /* encode string as string table miss (+2 len)*/
- errn = encodeUnsignedInteger16(stream, (uint16_t)(v2gManifestType->Id.charactersLen + 2));
- if (errn == 0) {
- errn = encodeCharacters(stream, v2gManifestType->Id.characters, v2gManifestType->Id.charactersLen);
- }
- }
- grammarID = 618;
- } else if (v2gManifestType_Reference_currArrayIndex < v2gManifestType->Reference.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- errn = encode_v2gReferenceType(stream, &v2gManifestType->Reference.array [v2gManifestType_Reference_currArrayIndex++]);
- }
- grammarID = 619;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 618:
- /* StartTag[START_ELEMENT({http://www.w3.org/2000/09/xmldsig#}Reference)] */
- if (v2gManifestType_Reference_currArrayIndex < v2gManifestType->Reference.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- if(errn == 0) {
- errn = encode_v2gReferenceType(stream, &v2gManifestType->Reference.array [v2gManifestType_Reference_currArrayIndex++]);
- }
- grammarID = 619;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 619:
- /* Element[START_ELEMENT({http://www.w3.org/2000/09/xmldsig#}Reference), END_ELEMENT] */
- if (v2gManifestType_Reference_currArrayIndex < v2gManifestType->Reference.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- errn = encode_v2gReferenceType(stream, &v2gManifestType->Reference.array [v2gManifestType_Reference_currArrayIndex++]);
- }
- grammarID = 619;
- } else if (1==1) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- 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:2016:MsgDataTypes,SensorType', base type name='anyType', content type='ELEMENT', isAbstract='false', hasTypeId='false', final='0', block='0', particle='("urn:iso:15118:2:2016:MsgDataTypes":SensorID,"urn:iso:15118:2:2016:MsgDataTypes":SensorPosition,"urn:iso:15118:2:2016:MsgDataTypes":SensorOrientation)', derivedBy='RESTRICTION'. */
-static int encode_v2gSensorType(bitstream_t* stream, struct v2gSensorType* v2gSensorType) {
- int grammarID = 620;
- int done = 0;
-
-
- while(!done) {
- switch(grammarID) {
- case 620:
- /* FirstStartTag[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorID)] */
- if ( 1 == 1 ) {
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- if(errn == 0) {
- /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- if(errn == 0) {
- errn = encodeNBitUnsignedInteger(stream, 8, (uint32_t)(v2gSensorType->SensorID - 0));
- /* valid EE */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- }
- }
- grammarID = 621;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 621:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorPosition)] */
- if ( 1 == 1 ) {
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- if(errn == 0) {
- errn = encode_v2gCartesianCoordinatesType(stream, &v2gSensorType->SensorPosition );
- }
- grammarID = 622;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 622:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorOrientation)] */
- if ( 1 == 1 ) {
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- if(errn == 0) {
- errn = encode_v2gCartesianCoordinatesType(stream, &v2gSensorType->SensorOrientation );
- }
- grammarID = 2;
- } 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:2016:MsgDataTypes,AC_EVChargeParameterType', base type name='EVEnergyTransferParameterType', content type='ELEMENT', isAbstract='false', hasTypeId='false', final='0', block='0', particle='(("urn:iso:15118:2:2016:MsgDataTypes":DepartureTime),("urn:iso:15118:2:2016:MsgDataTypes":EVMaximumChargePower,"urn:iso:15118:2:2016:MsgDataTypes":EVMaximumChargeCurrent,"urn:iso:15118:2:2016:MsgDataTypes":EVMinimumChargeCurrent,"urn:iso:15118:2:2016:MsgDataTypes":EVTargetEnergyRequest{0-1},"urn:iso:15118:2:2016:MsgDataTypes":EVMaximumEnergyRequest{0-1},"urn:iso:15118:2:2016:MsgDataTypes":EVMinimumEnergyRequest{0-1},"urn:iso:15118:2:2016:MsgDataTypes":EVMaximumVoltage))', derivedBy='EXTENSION'. */
-static int encode_v2gAC_EVChargeParameterType(bitstream_t* stream, struct v2gAC_EVChargeParameterType* v2gAC_EVChargeParameterType) {
- int grammarID = 623;
- int done = 0;
-
-
- while(!done) {
- switch(grammarID) {
- case 623:
- /* FirstStartTag[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}DepartureTime)] */
- if ( 1 == 1 ) {
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- if(errn == 0) {
- /* First(xsi:type)StartTag[CHARACTERS[UNSIGNED_INTEGER]] */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- if(errn == 0) {
- errn = encodeUnsignedInteger32(stream, v2gAC_EVChargeParameterType->DepartureTime);
- /* valid EE */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- }
- }
- grammarID = 624;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 624:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}EVMaximumChargePower)] */
- if ( 1 == 1 ) {
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- if(errn == 0) {
- errn = encode_v2gPhysicalValueType(stream, &v2gAC_EVChargeParameterType->EVMaximumChargePower );
- }
- grammarID = 625;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 625:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}EVMaximumChargeCurrent)] */
- if ( 1 == 1 ) {
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- if(errn == 0) {
- errn = encode_v2gPhysicalValueType(stream, &v2gAC_EVChargeParameterType->EVMaximumChargeCurrent );
- }
- grammarID = 626;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 626:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}EVMinimumChargeCurrent)] */
- if ( 1 == 1 ) {
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- if(errn == 0) {
- errn = encode_v2gPhysicalValueType(stream, &v2gAC_EVChargeParameterType->EVMinimumChargeCurrent );
- }
- grammarID = 627;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 627:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}EVTargetEnergyRequest), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}EVMaximumEnergyRequest), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}EVMinimumEnergyRequest), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}EVMaximumVoltage)] */
- if ( v2gAC_EVChargeParameterType->EVTargetEnergyRequest_isUsed == 1u ) {
- errn = encodeNBitUnsignedInteger(stream, 3, 0);
- if(errn == 0) {
- errn = encode_v2gPhysicalValueType(stream, &v2gAC_EVChargeParameterType->EVTargetEnergyRequest );
- }
- grammarID = 628;
- } else if ( v2gAC_EVChargeParameterType->EVMaximumEnergyRequest_isUsed == 1u ) {
- errn = encodeNBitUnsignedInteger(stream, 3, 1);
- if(errn == 0) {
- errn = encode_v2gPhysicalValueType(stream, &v2gAC_EVChargeParameterType->EVMaximumEnergyRequest );
- }
- grammarID = 629;
- } else if ( v2gAC_EVChargeParameterType->EVMinimumEnergyRequest_isUsed == 1u ) {
- errn = encodeNBitUnsignedInteger(stream, 3, 2);
- if(errn == 0) {
- errn = encode_v2gPhysicalValueType(stream, &v2gAC_EVChargeParameterType->EVMinimumEnergyRequest );
- }
- grammarID = 630;
- } else if ( 1 == 1 ) {
- errn = encodeNBitUnsignedInteger(stream, 3, 3);
- if(errn == 0) {
- errn = encode_v2gPhysicalValueType(stream, &v2gAC_EVChargeParameterType->EVMaximumVoltage );
- }
- grammarID = 2;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 628:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}EVMaximumEnergyRequest), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}EVMinimumEnergyRequest), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}EVMaximumVoltage)] */
- if ( v2gAC_EVChargeParameterType->EVMaximumEnergyRequest_isUsed == 1u ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- errn = encode_v2gPhysicalValueType(stream, &v2gAC_EVChargeParameterType->EVMaximumEnergyRequest );
- }
- grammarID = 629;
- } else if ( v2gAC_EVChargeParameterType->EVMinimumEnergyRequest_isUsed == 1u ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- errn = encode_v2gPhysicalValueType(stream, &v2gAC_EVChargeParameterType->EVMinimumEnergyRequest );
- }
- grammarID = 630;
- } else if ( 1 == 1 ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 2);
- if(errn == 0) {
- errn = encode_v2gPhysicalValueType(stream, &v2gAC_EVChargeParameterType->EVMaximumVoltage );
- }
- grammarID = 2;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 629:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}EVMinimumEnergyRequest), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}EVMaximumVoltage)] */
- if ( v2gAC_EVChargeParameterType->EVMinimumEnergyRequest_isUsed == 1u ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- errn = encode_v2gPhysicalValueType(stream, &v2gAC_EVChargeParameterType->EVMinimumEnergyRequest );
- }
- grammarID = 630;
- } else if ( 1 == 1 ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- errn = encode_v2gPhysicalValueType(stream, &v2gAC_EVChargeParameterType->EVMaximumVoltage );
- }
- grammarID = 2;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 630:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}EVMaximumVoltage)] */
- if ( 1 == 1 ) {
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- if(errn == 0) {
- errn = encode_v2gPhysicalValueType(stream, &v2gAC_EVChargeParameterType->EVMaximumVoltage );
- }
- grammarID = 2;
- } 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:2016:MsgDataTypes,MagneticVectorListType', base type name='anyType', content type='ELEMENT', isAbstract='false', hasTypeId='false', final='0', block='0', particle='("urn:iso:15118:2:2016:MsgDataTypes":MagneticVector{1-255})', derivedBy='RESTRICTION'. */
-static int encode_v2gMagneticVectorListType(bitstream_t* stream, struct v2gMagneticVectorListType* v2gMagneticVectorListType) {
- int grammarID = 631;
- int done = 0;
-
- unsigned int v2gMagneticVectorListType_MagneticVector_currArrayIndex = 0;
-
- while(!done) {
- switch(grammarID) {
- case 631:
- /* FirstStartTag[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MagneticVector)] */
- if (v2gMagneticVectorListType_MagneticVector_currArrayIndex < v2gMagneticVectorListType->MagneticVector.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- if(errn == 0) {
- errn = encode_v2gMagneticVectorType(stream, &v2gMagneticVectorListType->MagneticVector.array [v2gMagneticVectorListType_MagneticVector_currArrayIndex++]);
- }
- grammarID = 632;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 632:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MagneticVector), END_ELEMENT] */
- if (v2gMagneticVectorListType_MagneticVector_currArrayIndex < v2gMagneticVectorListType->MagneticVector.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- errn = encode_v2gMagneticVectorType(stream, &v2gMagneticVectorListType->MagneticVector.array [v2gMagneticVectorListType_MagneticVector_currArrayIndex++]);
- }
- grammarID = 633;
- } else if (1==1) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- done = 1;
- }
- grammarID = 3;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 633:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MagneticVector), END_ELEMENT] */
- if (v2gMagneticVectorListType_MagneticVector_currArrayIndex < v2gMagneticVectorListType->MagneticVector.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- errn = encode_v2gMagneticVectorType(stream, &v2gMagneticVectorListType->MagneticVector.array [v2gMagneticVectorListType_MagneticVector_currArrayIndex++]);
- }
- grammarID = 634;
- } else if (1==1) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- done = 1;
- }
- grammarID = 3;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 634:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MagneticVector), END_ELEMENT] */
- if (v2gMagneticVectorListType_MagneticVector_currArrayIndex < v2gMagneticVectorListType->MagneticVector.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- errn = encode_v2gMagneticVectorType(stream, &v2gMagneticVectorListType->MagneticVector.array [v2gMagneticVectorListType_MagneticVector_currArrayIndex++]);
- }
- grammarID = 635;
- } else if (1==1) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- done = 1;
- }
- grammarID = 3;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 635:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MagneticVector), END_ELEMENT] */
- if (v2gMagneticVectorListType_MagneticVector_currArrayIndex < v2gMagneticVectorListType->MagneticVector.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- errn = encode_v2gMagneticVectorType(stream, &v2gMagneticVectorListType->MagneticVector.array [v2gMagneticVectorListType_MagneticVector_currArrayIndex++]);
- }
- grammarID = 636;
- } else if (1==1) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- done = 1;
- }
- grammarID = 3;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 636:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MagneticVector), END_ELEMENT] */
- if (v2gMagneticVectorListType_MagneticVector_currArrayIndex < v2gMagneticVectorListType->MagneticVector.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- errn = encode_v2gMagneticVectorType(stream, &v2gMagneticVectorListType->MagneticVector.array [v2gMagneticVectorListType_MagneticVector_currArrayIndex++]);
- }
- grammarID = 637;
- } else if (1==1) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- done = 1;
- }
- grammarID = 3;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 637:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MagneticVector), END_ELEMENT] */
- if (v2gMagneticVectorListType_MagneticVector_currArrayIndex < v2gMagneticVectorListType->MagneticVector.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- errn = encode_v2gMagneticVectorType(stream, &v2gMagneticVectorListType->MagneticVector.array [v2gMagneticVectorListType_MagneticVector_currArrayIndex++]);
- }
- grammarID = 638;
- } else if (1==1) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- done = 1;
- }
- grammarID = 3;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 638:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MagneticVector), END_ELEMENT] */
- if (v2gMagneticVectorListType_MagneticVector_currArrayIndex < v2gMagneticVectorListType->MagneticVector.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- errn = encode_v2gMagneticVectorType(stream, &v2gMagneticVectorListType->MagneticVector.array [v2gMagneticVectorListType_MagneticVector_currArrayIndex++]);
- }
- grammarID = 639;
- } else if (1==1) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- done = 1;
- }
- grammarID = 3;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 639:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MagneticVector), END_ELEMENT] */
- if (v2gMagneticVectorListType_MagneticVector_currArrayIndex < v2gMagneticVectorListType->MagneticVector.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- errn = encode_v2gMagneticVectorType(stream, &v2gMagneticVectorListType->MagneticVector.array [v2gMagneticVectorListType_MagneticVector_currArrayIndex++]);
- }
- grammarID = 640;
- } else if (1==1) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- done = 1;
- }
- grammarID = 3;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 640:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MagneticVector), END_ELEMENT] */
- if (v2gMagneticVectorListType_MagneticVector_currArrayIndex < v2gMagneticVectorListType->MagneticVector.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- errn = encode_v2gMagneticVectorType(stream, &v2gMagneticVectorListType->MagneticVector.array [v2gMagneticVectorListType_MagneticVector_currArrayIndex++]);
- }
- grammarID = 641;
- } else if (1==1) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- done = 1;
- }
- grammarID = 3;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 641:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MagneticVector), END_ELEMENT] */
- if (v2gMagneticVectorListType_MagneticVector_currArrayIndex < v2gMagneticVectorListType->MagneticVector.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- errn = encode_v2gMagneticVectorType(stream, &v2gMagneticVectorListType->MagneticVector.array [v2gMagneticVectorListType_MagneticVector_currArrayIndex++]);
- }
- grammarID = 642;
- } else if (1==1) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- done = 1;
- }
- grammarID = 3;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 642:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MagneticVector), END_ELEMENT] */
- if (v2gMagneticVectorListType_MagneticVector_currArrayIndex < v2gMagneticVectorListType->MagneticVector.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- errn = encode_v2gMagneticVectorType(stream, &v2gMagneticVectorListType->MagneticVector.array [v2gMagneticVectorListType_MagneticVector_currArrayIndex++]);
- }
- grammarID = 643;
- } else if (1==1) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- done = 1;
- }
- grammarID = 3;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 643:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MagneticVector), END_ELEMENT] */
- if (v2gMagneticVectorListType_MagneticVector_currArrayIndex < v2gMagneticVectorListType->MagneticVector.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- errn = encode_v2gMagneticVectorType(stream, &v2gMagneticVectorListType->MagneticVector.array [v2gMagneticVectorListType_MagneticVector_currArrayIndex++]);
- }
- grammarID = 644;
- } else if (1==1) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- done = 1;
- }
- grammarID = 3;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 644:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MagneticVector), END_ELEMENT] */
- if (v2gMagneticVectorListType_MagneticVector_currArrayIndex < v2gMagneticVectorListType->MagneticVector.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- errn = encode_v2gMagneticVectorType(stream, &v2gMagneticVectorListType->MagneticVector.array [v2gMagneticVectorListType_MagneticVector_currArrayIndex++]);
- }
- grammarID = 645;
- } else if (1==1) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- done = 1;
- }
- grammarID = 3;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 645:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MagneticVector), END_ELEMENT] */
- if (v2gMagneticVectorListType_MagneticVector_currArrayIndex < v2gMagneticVectorListType->MagneticVector.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- errn = encode_v2gMagneticVectorType(stream, &v2gMagneticVectorListType->MagneticVector.array [v2gMagneticVectorListType_MagneticVector_currArrayIndex++]);
- }
- grammarID = 646;
- } else if (1==1) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- done = 1;
- }
- grammarID = 3;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 646:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MagneticVector), END_ELEMENT] */
- if (v2gMagneticVectorListType_MagneticVector_currArrayIndex < v2gMagneticVectorListType->MagneticVector.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- errn = encode_v2gMagneticVectorType(stream, &v2gMagneticVectorListType->MagneticVector.array [v2gMagneticVectorListType_MagneticVector_currArrayIndex++]);
- }
- grammarID = 647;
- } else if (1==1) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- done = 1;
- }
- grammarID = 3;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 647:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MagneticVector), END_ELEMENT] */
- if (v2gMagneticVectorListType_MagneticVector_currArrayIndex < v2gMagneticVectorListType->MagneticVector.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- errn = encode_v2gMagneticVectorType(stream, &v2gMagneticVectorListType->MagneticVector.array [v2gMagneticVectorListType_MagneticVector_currArrayIndex++]);
- }
- grammarID = 648;
- } else if (1==1) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- done = 1;
- }
- grammarID = 3;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 648:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MagneticVector), END_ELEMENT] */
- if (v2gMagneticVectorListType_MagneticVector_currArrayIndex < v2gMagneticVectorListType->MagneticVector.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- errn = encode_v2gMagneticVectorType(stream, &v2gMagneticVectorListType->MagneticVector.array [v2gMagneticVectorListType_MagneticVector_currArrayIndex++]);
- }
- grammarID = 649;
- } else if (1==1) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- done = 1;
- }
- grammarID = 3;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 649:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MagneticVector), END_ELEMENT] */
- if (v2gMagneticVectorListType_MagneticVector_currArrayIndex < v2gMagneticVectorListType->MagneticVector.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- errn = encode_v2gMagneticVectorType(stream, &v2gMagneticVectorListType->MagneticVector.array [v2gMagneticVectorListType_MagneticVector_currArrayIndex++]);
- }
- grammarID = 650;
- } else if (1==1) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- done = 1;
- }
- grammarID = 3;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 650:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MagneticVector), END_ELEMENT] */
- if (v2gMagneticVectorListType_MagneticVector_currArrayIndex < v2gMagneticVectorListType->MagneticVector.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- errn = encode_v2gMagneticVectorType(stream, &v2gMagneticVectorListType->MagneticVector.array [v2gMagneticVectorListType_MagneticVector_currArrayIndex++]);
- }
- grammarID = 651;
- } else if (1==1) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- done = 1;
- }
- grammarID = 3;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 651:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MagneticVector), END_ELEMENT] */
- if (v2gMagneticVectorListType_MagneticVector_currArrayIndex < v2gMagneticVectorListType->MagneticVector.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- errn = encode_v2gMagneticVectorType(stream, &v2gMagneticVectorListType->MagneticVector.array [v2gMagneticVectorListType_MagneticVector_currArrayIndex++]);
- }
- grammarID = 652;
- } else if (1==1) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- done = 1;
- }
- grammarID = 3;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 652:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MagneticVector), END_ELEMENT] */
- if (v2gMagneticVectorListType_MagneticVector_currArrayIndex < v2gMagneticVectorListType->MagneticVector.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- errn = encode_v2gMagneticVectorType(stream, &v2gMagneticVectorListType->MagneticVector.array [v2gMagneticVectorListType_MagneticVector_currArrayIndex++]);
- }
- grammarID = 653;
- } else if (1==1) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- done = 1;
- }
- grammarID = 3;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 653:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MagneticVector), END_ELEMENT] */
- if (v2gMagneticVectorListType_MagneticVector_currArrayIndex < v2gMagneticVectorListType->MagneticVector.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- errn = encode_v2gMagneticVectorType(stream, &v2gMagneticVectorListType->MagneticVector.array [v2gMagneticVectorListType_MagneticVector_currArrayIndex++]);
- }
- grammarID = 654;
- } else if (1==1) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- done = 1;
- }
- grammarID = 3;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 654:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MagneticVector), END_ELEMENT] */
- if (v2gMagneticVectorListType_MagneticVector_currArrayIndex < v2gMagneticVectorListType->MagneticVector.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- errn = encode_v2gMagneticVectorType(stream, &v2gMagneticVectorListType->MagneticVector.array [v2gMagneticVectorListType_MagneticVector_currArrayIndex++]);
- }
- grammarID = 655;
- } else if (1==1) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- done = 1;
- }
- grammarID = 3;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 655:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MagneticVector), END_ELEMENT] */
- if (v2gMagneticVectorListType_MagneticVector_currArrayIndex < v2gMagneticVectorListType->MagneticVector.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- errn = encode_v2gMagneticVectorType(stream, &v2gMagneticVectorListType->MagneticVector.array [v2gMagneticVectorListType_MagneticVector_currArrayIndex++]);
- }
- grammarID = 656;
- } else if (1==1) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- done = 1;
- }
- grammarID = 3;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 656:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MagneticVector), END_ELEMENT] */
- if (v2gMagneticVectorListType_MagneticVector_currArrayIndex < v2gMagneticVectorListType->MagneticVector.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- errn = encode_v2gMagneticVectorType(stream, &v2gMagneticVectorListType->MagneticVector.array [v2gMagneticVectorListType_MagneticVector_currArrayIndex++]);
- }
- grammarID = 657;
- } else if (1==1) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- done = 1;
- }
- grammarID = 3;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 657:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MagneticVector), END_ELEMENT] */
- if (v2gMagneticVectorListType_MagneticVector_currArrayIndex < v2gMagneticVectorListType->MagneticVector.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- errn = encode_v2gMagneticVectorType(stream, &v2gMagneticVectorListType->MagneticVector.array [v2gMagneticVectorListType_MagneticVector_currArrayIndex++]);
- }
- grammarID = 658;
- } else if (1==1) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- done = 1;
- }
- grammarID = 3;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 658:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MagneticVector), END_ELEMENT] */
- if (v2gMagneticVectorListType_MagneticVector_currArrayIndex < v2gMagneticVectorListType->MagneticVector.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- errn = encode_v2gMagneticVectorType(stream, &v2gMagneticVectorListType->MagneticVector.array [v2gMagneticVectorListType_MagneticVector_currArrayIndex++]);
- }
- grammarID = 659;
- } else if (1==1) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- done = 1;
- }
- grammarID = 3;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 659:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MagneticVector), END_ELEMENT] */
- if (v2gMagneticVectorListType_MagneticVector_currArrayIndex < v2gMagneticVectorListType->MagneticVector.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- errn = encode_v2gMagneticVectorType(stream, &v2gMagneticVectorListType->MagneticVector.array [v2gMagneticVectorListType_MagneticVector_currArrayIndex++]);
- }
- grammarID = 660;
- } else if (1==1) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- done = 1;
- }
- grammarID = 3;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 660:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MagneticVector), END_ELEMENT] */
- if (v2gMagneticVectorListType_MagneticVector_currArrayIndex < v2gMagneticVectorListType->MagneticVector.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- errn = encode_v2gMagneticVectorType(stream, &v2gMagneticVectorListType->MagneticVector.array [v2gMagneticVectorListType_MagneticVector_currArrayIndex++]);
- }
- grammarID = 661;
- } else if (1==1) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- done = 1;
- }
- grammarID = 3;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 661:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MagneticVector), END_ELEMENT] */
- if (v2gMagneticVectorListType_MagneticVector_currArrayIndex < v2gMagneticVectorListType->MagneticVector.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- errn = encode_v2gMagneticVectorType(stream, &v2gMagneticVectorListType->MagneticVector.array [v2gMagneticVectorListType_MagneticVector_currArrayIndex++]);
- }
- grammarID = 662;
- } else if (1==1) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- done = 1;
- }
- grammarID = 3;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 662:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MagneticVector), END_ELEMENT] */
- if (v2gMagneticVectorListType_MagneticVector_currArrayIndex < v2gMagneticVectorListType->MagneticVector.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- errn = encode_v2gMagneticVectorType(stream, &v2gMagneticVectorListType->MagneticVector.array [v2gMagneticVectorListType_MagneticVector_currArrayIndex++]);
- }
- grammarID = 663;
- } else if (1==1) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- done = 1;
- }
- grammarID = 3;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 663:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MagneticVector), END_ELEMENT] */
- if (v2gMagneticVectorListType_MagneticVector_currArrayIndex < v2gMagneticVectorListType->MagneticVector.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- errn = encode_v2gMagneticVectorType(stream, &v2gMagneticVectorListType->MagneticVector.array [v2gMagneticVectorListType_MagneticVector_currArrayIndex++]);
- }
- grammarID = 664;
- } else if (1==1) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- done = 1;
- }
- grammarID = 3;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 664:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MagneticVector), END_ELEMENT] */
- if (v2gMagneticVectorListType_MagneticVector_currArrayIndex < v2gMagneticVectorListType->MagneticVector.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- errn = encode_v2gMagneticVectorType(stream, &v2gMagneticVectorListType->MagneticVector.array [v2gMagneticVectorListType_MagneticVector_currArrayIndex++]);
- }
- grammarID = 665;
- } else if (1==1) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- done = 1;
- }
- grammarID = 3;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 665:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MagneticVector), END_ELEMENT] */
- if (v2gMagneticVectorListType_MagneticVector_currArrayIndex < v2gMagneticVectorListType->MagneticVector.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- errn = encode_v2gMagneticVectorType(stream, &v2gMagneticVectorListType->MagneticVector.array [v2gMagneticVectorListType_MagneticVector_currArrayIndex++]);
- }
- grammarID = 666;
- } else if (1==1) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- done = 1;
- }
- grammarID = 3;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 666:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MagneticVector), END_ELEMENT] */
- if (v2gMagneticVectorListType_MagneticVector_currArrayIndex < v2gMagneticVectorListType->MagneticVector.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- errn = encode_v2gMagneticVectorType(stream, &v2gMagneticVectorListType->MagneticVector.array [v2gMagneticVectorListType_MagneticVector_currArrayIndex++]);
- }
- grammarID = 667;
- } else if (1==1) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- done = 1;
- }
- grammarID = 3;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 667:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MagneticVector), END_ELEMENT] */
- if (v2gMagneticVectorListType_MagneticVector_currArrayIndex < v2gMagneticVectorListType->MagneticVector.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- errn = encode_v2gMagneticVectorType(stream, &v2gMagneticVectorListType->MagneticVector.array [v2gMagneticVectorListType_MagneticVector_currArrayIndex++]);
- }
- grammarID = 668;
- } else if (1==1) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- done = 1;
- }
- grammarID = 3;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 668:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MagneticVector), END_ELEMENT] */
- if (v2gMagneticVectorListType_MagneticVector_currArrayIndex < v2gMagneticVectorListType->MagneticVector.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- errn = encode_v2gMagneticVectorType(stream, &v2gMagneticVectorListType->MagneticVector.array [v2gMagneticVectorListType_MagneticVector_currArrayIndex++]);
- }
- grammarID = 669;
- } else if (1==1) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- done = 1;
- }
- grammarID = 3;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 669:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MagneticVector), END_ELEMENT] */
- if (v2gMagneticVectorListType_MagneticVector_currArrayIndex < v2gMagneticVectorListType->MagneticVector.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- errn = encode_v2gMagneticVectorType(stream, &v2gMagneticVectorListType->MagneticVector.array [v2gMagneticVectorListType_MagneticVector_currArrayIndex++]);
- }
- grammarID = 670;
- } else if (1==1) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- done = 1;
- }
- grammarID = 3;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 670:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MagneticVector), END_ELEMENT] */
- if (v2gMagneticVectorListType_MagneticVector_currArrayIndex < v2gMagneticVectorListType->MagneticVector.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- errn = encode_v2gMagneticVectorType(stream, &v2gMagneticVectorListType->MagneticVector.array [v2gMagneticVectorListType_MagneticVector_currArrayIndex++]);
- }
- grammarID = 671;
- } else if (1==1) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- done = 1;
- }
- grammarID = 3;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 671:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MagneticVector), END_ELEMENT] */
- if (v2gMagneticVectorListType_MagneticVector_currArrayIndex < v2gMagneticVectorListType->MagneticVector.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- errn = encode_v2gMagneticVectorType(stream, &v2gMagneticVectorListType->MagneticVector.array [v2gMagneticVectorListType_MagneticVector_currArrayIndex++]);
- }
- grammarID = 672;
- } else if (1==1) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- done = 1;
- }
- grammarID = 3;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 672:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MagneticVector), END_ELEMENT] */
- if (v2gMagneticVectorListType_MagneticVector_currArrayIndex < v2gMagneticVectorListType->MagneticVector.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- errn = encode_v2gMagneticVectorType(stream, &v2gMagneticVectorListType->MagneticVector.array [v2gMagneticVectorListType_MagneticVector_currArrayIndex++]);
- }
- grammarID = 673;
- } else if (1==1) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- done = 1;
- }
- grammarID = 3;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 673:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MagneticVector), END_ELEMENT] */
- if (v2gMagneticVectorListType_MagneticVector_currArrayIndex < v2gMagneticVectorListType->MagneticVector.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- errn = encode_v2gMagneticVectorType(stream, &v2gMagneticVectorListType->MagneticVector.array [v2gMagneticVectorListType_MagneticVector_currArrayIndex++]);
- }
- grammarID = 674;
- } else if (1==1) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- done = 1;
- }
- grammarID = 3;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 674:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MagneticVector), END_ELEMENT] */
- if (v2gMagneticVectorListType_MagneticVector_currArrayIndex < v2gMagneticVectorListType->MagneticVector.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- errn = encode_v2gMagneticVectorType(stream, &v2gMagneticVectorListType->MagneticVector.array [v2gMagneticVectorListType_MagneticVector_currArrayIndex++]);
- }
- grammarID = 675;
- } else if (1==1) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- done = 1;
- }
- grammarID = 3;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 675:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MagneticVector), END_ELEMENT] */
- if (v2gMagneticVectorListType_MagneticVector_currArrayIndex < v2gMagneticVectorListType->MagneticVector.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- errn = encode_v2gMagneticVectorType(stream, &v2gMagneticVectorListType->MagneticVector.array [v2gMagneticVectorListType_MagneticVector_currArrayIndex++]);
- }
- grammarID = 676;
- } else if (1==1) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- done = 1;
- }
- grammarID = 3;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 676:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MagneticVector), END_ELEMENT] */
- if (v2gMagneticVectorListType_MagneticVector_currArrayIndex < v2gMagneticVectorListType->MagneticVector.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- errn = encode_v2gMagneticVectorType(stream, &v2gMagneticVectorListType->MagneticVector.array [v2gMagneticVectorListType_MagneticVector_currArrayIndex++]);
- }
- grammarID = 677;
- } else if (1==1) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- done = 1;
- }
- grammarID = 3;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 677:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MagneticVector), END_ELEMENT] */
- if (v2gMagneticVectorListType_MagneticVector_currArrayIndex < v2gMagneticVectorListType->MagneticVector.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- errn = encode_v2gMagneticVectorType(stream, &v2gMagneticVectorListType->MagneticVector.array [v2gMagneticVectorListType_MagneticVector_currArrayIndex++]);
- }
- grammarID = 678;
- } else if (1==1) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- done = 1;
- }
- grammarID = 3;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 678:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MagneticVector), END_ELEMENT] */
- if (v2gMagneticVectorListType_MagneticVector_currArrayIndex < v2gMagneticVectorListType->MagneticVector.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- errn = encode_v2gMagneticVectorType(stream, &v2gMagneticVectorListType->MagneticVector.array [v2gMagneticVectorListType_MagneticVector_currArrayIndex++]);
- }
- grammarID = 679;
- } else if (1==1) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- done = 1;
- }
- grammarID = 3;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 679:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MagneticVector), END_ELEMENT] */
- if (v2gMagneticVectorListType_MagneticVector_currArrayIndex < v2gMagneticVectorListType->MagneticVector.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- errn = encode_v2gMagneticVectorType(stream, &v2gMagneticVectorListType->MagneticVector.array [v2gMagneticVectorListType_MagneticVector_currArrayIndex++]);
- }
- grammarID = 680;
- } else if (1==1) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- done = 1;
- }
- grammarID = 3;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 680:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MagneticVector), END_ELEMENT] */
- if (v2gMagneticVectorListType_MagneticVector_currArrayIndex < v2gMagneticVectorListType->MagneticVector.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- errn = encode_v2gMagneticVectorType(stream, &v2gMagneticVectorListType->MagneticVector.array [v2gMagneticVectorListType_MagneticVector_currArrayIndex++]);
- }
- grammarID = 681;
- } else if (1==1) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- done = 1;
- }
- grammarID = 3;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 681:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MagneticVector), END_ELEMENT] */
- if (v2gMagneticVectorListType_MagneticVector_currArrayIndex < v2gMagneticVectorListType->MagneticVector.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- errn = encode_v2gMagneticVectorType(stream, &v2gMagneticVectorListType->MagneticVector.array [v2gMagneticVectorListType_MagneticVector_currArrayIndex++]);
- }
- grammarID = 682;
- } else if (1==1) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- done = 1;
- }
- grammarID = 3;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 682:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MagneticVector), END_ELEMENT] */
- if (v2gMagneticVectorListType_MagneticVector_currArrayIndex < v2gMagneticVectorListType->MagneticVector.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- errn = encode_v2gMagneticVectorType(stream, &v2gMagneticVectorListType->MagneticVector.array [v2gMagneticVectorListType_MagneticVector_currArrayIndex++]);
- }
- grammarID = 683;
- } else if (1==1) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- done = 1;
- }
- grammarID = 3;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 683:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MagneticVector), END_ELEMENT] */
- if (v2gMagneticVectorListType_MagneticVector_currArrayIndex < v2gMagneticVectorListType->MagneticVector.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- errn = encode_v2gMagneticVectorType(stream, &v2gMagneticVectorListType->MagneticVector.array [v2gMagneticVectorListType_MagneticVector_currArrayIndex++]);
- }
- grammarID = 684;
- } else if (1==1) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- done = 1;
- }
- grammarID = 3;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 684:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MagneticVector), END_ELEMENT] */
- if (v2gMagneticVectorListType_MagneticVector_currArrayIndex < v2gMagneticVectorListType->MagneticVector.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- errn = encode_v2gMagneticVectorType(stream, &v2gMagneticVectorListType->MagneticVector.array [v2gMagneticVectorListType_MagneticVector_currArrayIndex++]);
- }
- grammarID = 685;
- } else if (1==1) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- done = 1;
- }
- grammarID = 3;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 685:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MagneticVector), END_ELEMENT] */
- if (v2gMagneticVectorListType_MagneticVector_currArrayIndex < v2gMagneticVectorListType->MagneticVector.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- errn = encode_v2gMagneticVectorType(stream, &v2gMagneticVectorListType->MagneticVector.array [v2gMagneticVectorListType_MagneticVector_currArrayIndex++]);
- }
- grammarID = 686;
- } else if (1==1) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- done = 1;
- }
- grammarID = 3;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 686:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MagneticVector), END_ELEMENT] */
- if (v2gMagneticVectorListType_MagneticVector_currArrayIndex < v2gMagneticVectorListType->MagneticVector.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- errn = encode_v2gMagneticVectorType(stream, &v2gMagneticVectorListType->MagneticVector.array [v2gMagneticVectorListType_MagneticVector_currArrayIndex++]);
- }
- grammarID = 687;
- } else if (1==1) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- done = 1;
- }
- grammarID = 3;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 687:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MagneticVector), END_ELEMENT] */
- if (v2gMagneticVectorListType_MagneticVector_currArrayIndex < v2gMagneticVectorListType->MagneticVector.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- errn = encode_v2gMagneticVectorType(stream, &v2gMagneticVectorListType->MagneticVector.array [v2gMagneticVectorListType_MagneticVector_currArrayIndex++]);
- }
- grammarID = 688;
- } else if (1==1) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- done = 1;
- }
- grammarID = 3;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 688:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MagneticVector), END_ELEMENT] */
- if (v2gMagneticVectorListType_MagneticVector_currArrayIndex < v2gMagneticVectorListType->MagneticVector.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- errn = encode_v2gMagneticVectorType(stream, &v2gMagneticVectorListType->MagneticVector.array [v2gMagneticVectorListType_MagneticVector_currArrayIndex++]);
- }
- grammarID = 689;
- } else if (1==1) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- done = 1;
- }
- grammarID = 3;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 689:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MagneticVector), END_ELEMENT] */
- if (v2gMagneticVectorListType_MagneticVector_currArrayIndex < v2gMagneticVectorListType->MagneticVector.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- errn = encode_v2gMagneticVectorType(stream, &v2gMagneticVectorListType->MagneticVector.array [v2gMagneticVectorListType_MagneticVector_currArrayIndex++]);
- }
- grammarID = 690;
- } else if (1==1) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- done = 1;
- }
- grammarID = 3;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 690:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MagneticVector), END_ELEMENT] */
- if (v2gMagneticVectorListType_MagneticVector_currArrayIndex < v2gMagneticVectorListType->MagneticVector.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- errn = encode_v2gMagneticVectorType(stream, &v2gMagneticVectorListType->MagneticVector.array [v2gMagneticVectorListType_MagneticVector_currArrayIndex++]);
- }
- grammarID = 691;
- } else if (1==1) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- done = 1;
- }
- grammarID = 3;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 691:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MagneticVector), END_ELEMENT] */
- if (v2gMagneticVectorListType_MagneticVector_currArrayIndex < v2gMagneticVectorListType->MagneticVector.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- errn = encode_v2gMagneticVectorType(stream, &v2gMagneticVectorListType->MagneticVector.array [v2gMagneticVectorListType_MagneticVector_currArrayIndex++]);
- }
- grammarID = 692;
- } else if (1==1) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- done = 1;
- }
- grammarID = 3;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 692:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MagneticVector), END_ELEMENT] */
- if (v2gMagneticVectorListType_MagneticVector_currArrayIndex < v2gMagneticVectorListType->MagneticVector.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- errn = encode_v2gMagneticVectorType(stream, &v2gMagneticVectorListType->MagneticVector.array [v2gMagneticVectorListType_MagneticVector_currArrayIndex++]);
- }
- grammarID = 693;
- } else if (1==1) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- done = 1;
- }
- grammarID = 3;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 693:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MagneticVector), END_ELEMENT] */
- if (v2gMagneticVectorListType_MagneticVector_currArrayIndex < v2gMagneticVectorListType->MagneticVector.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- errn = encode_v2gMagneticVectorType(stream, &v2gMagneticVectorListType->MagneticVector.array [v2gMagneticVectorListType_MagneticVector_currArrayIndex++]);
- }
- grammarID = 694;
- } else if (1==1) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- done = 1;
- }
- grammarID = 3;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 694:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MagneticVector), END_ELEMENT] */
- if (v2gMagneticVectorListType_MagneticVector_currArrayIndex < v2gMagneticVectorListType->MagneticVector.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- errn = encode_v2gMagneticVectorType(stream, &v2gMagneticVectorListType->MagneticVector.array [v2gMagneticVectorListType_MagneticVector_currArrayIndex++]);
- }
- grammarID = 695;
- } else if (1==1) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- done = 1;
- }
- grammarID = 3;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 695:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MagneticVector), END_ELEMENT] */
- if (v2gMagneticVectorListType_MagneticVector_currArrayIndex < v2gMagneticVectorListType->MagneticVector.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- errn = encode_v2gMagneticVectorType(stream, &v2gMagneticVectorListType->MagneticVector.array [v2gMagneticVectorListType_MagneticVector_currArrayIndex++]);
- }
- grammarID = 696;
- } else if (1==1) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- done = 1;
- }
- grammarID = 3;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 696:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MagneticVector), END_ELEMENT] */
- if (v2gMagneticVectorListType_MagneticVector_currArrayIndex < v2gMagneticVectorListType->MagneticVector.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- errn = encode_v2gMagneticVectorType(stream, &v2gMagneticVectorListType->MagneticVector.array [v2gMagneticVectorListType_MagneticVector_currArrayIndex++]);
- }
- grammarID = 697;
- } else if (1==1) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- done = 1;
- }
- grammarID = 3;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 697:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MagneticVector), END_ELEMENT] */
- if (v2gMagneticVectorListType_MagneticVector_currArrayIndex < v2gMagneticVectorListType->MagneticVector.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- errn = encode_v2gMagneticVectorType(stream, &v2gMagneticVectorListType->MagneticVector.array [v2gMagneticVectorListType_MagneticVector_currArrayIndex++]);
- }
- grammarID = 698;
- } else if (1==1) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- done = 1;
- }
- grammarID = 3;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 698:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MagneticVector), END_ELEMENT] */
- if (v2gMagneticVectorListType_MagneticVector_currArrayIndex < v2gMagneticVectorListType->MagneticVector.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- errn = encode_v2gMagneticVectorType(stream, &v2gMagneticVectorListType->MagneticVector.array [v2gMagneticVectorListType_MagneticVector_currArrayIndex++]);
- }
- grammarID = 699;
- } else if (1==1) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- done = 1;
- }
- grammarID = 3;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 699:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MagneticVector), END_ELEMENT] */
- if (v2gMagneticVectorListType_MagneticVector_currArrayIndex < v2gMagneticVectorListType->MagneticVector.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- errn = encode_v2gMagneticVectorType(stream, &v2gMagneticVectorListType->MagneticVector.array [v2gMagneticVectorListType_MagneticVector_currArrayIndex++]);
- }
- grammarID = 700;
- } else if (1==1) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- done = 1;
- }
- grammarID = 3;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 700:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MagneticVector), END_ELEMENT] */
- if (v2gMagneticVectorListType_MagneticVector_currArrayIndex < v2gMagneticVectorListType->MagneticVector.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- errn = encode_v2gMagneticVectorType(stream, &v2gMagneticVectorListType->MagneticVector.array [v2gMagneticVectorListType_MagneticVector_currArrayIndex++]);
- }
- grammarID = 701;
- } else if (1==1) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- done = 1;
- }
- grammarID = 3;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 701:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MagneticVector), END_ELEMENT] */
- if (v2gMagneticVectorListType_MagneticVector_currArrayIndex < v2gMagneticVectorListType->MagneticVector.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- errn = encode_v2gMagneticVectorType(stream, &v2gMagneticVectorListType->MagneticVector.array [v2gMagneticVectorListType_MagneticVector_currArrayIndex++]);
- }
- grammarID = 702;
- } else if (1==1) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- done = 1;
- }
- grammarID = 3;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 702:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MagneticVector), END_ELEMENT] */
- if (v2gMagneticVectorListType_MagneticVector_currArrayIndex < v2gMagneticVectorListType->MagneticVector.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- errn = encode_v2gMagneticVectorType(stream, &v2gMagneticVectorListType->MagneticVector.array [v2gMagneticVectorListType_MagneticVector_currArrayIndex++]);
- }
- grammarID = 703;
- } else if (1==1) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- done = 1;
- }
- grammarID = 3;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 703:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MagneticVector), END_ELEMENT] */
- if (v2gMagneticVectorListType_MagneticVector_currArrayIndex < v2gMagneticVectorListType->MagneticVector.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- errn = encode_v2gMagneticVectorType(stream, &v2gMagneticVectorListType->MagneticVector.array [v2gMagneticVectorListType_MagneticVector_currArrayIndex++]);
- }
- grammarID = 704;
- } else if (1==1) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- done = 1;
- }
- grammarID = 3;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 704:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MagneticVector), END_ELEMENT] */
- if (v2gMagneticVectorListType_MagneticVector_currArrayIndex < v2gMagneticVectorListType->MagneticVector.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- errn = encode_v2gMagneticVectorType(stream, &v2gMagneticVectorListType->MagneticVector.array [v2gMagneticVectorListType_MagneticVector_currArrayIndex++]);
- }
- grammarID = 705;
- } else if (1==1) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- done = 1;
- }
- grammarID = 3;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 705:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MagneticVector), END_ELEMENT] */
- if (v2gMagneticVectorListType_MagneticVector_currArrayIndex < v2gMagneticVectorListType->MagneticVector.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- errn = encode_v2gMagneticVectorType(stream, &v2gMagneticVectorListType->MagneticVector.array [v2gMagneticVectorListType_MagneticVector_currArrayIndex++]);
- }
- grammarID = 706;
- } else if (1==1) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- done = 1;
- }
- grammarID = 3;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 706:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MagneticVector), END_ELEMENT] */
- if (v2gMagneticVectorListType_MagneticVector_currArrayIndex < v2gMagneticVectorListType->MagneticVector.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- errn = encode_v2gMagneticVectorType(stream, &v2gMagneticVectorListType->MagneticVector.array [v2gMagneticVectorListType_MagneticVector_currArrayIndex++]);
- }
- grammarID = 707;
- } else if (1==1) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- done = 1;
- }
- grammarID = 3;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 707:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MagneticVector), END_ELEMENT] */
- if (v2gMagneticVectorListType_MagneticVector_currArrayIndex < v2gMagneticVectorListType->MagneticVector.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- errn = encode_v2gMagneticVectorType(stream, &v2gMagneticVectorListType->MagneticVector.array [v2gMagneticVectorListType_MagneticVector_currArrayIndex++]);
- }
- grammarID = 708;
- } else if (1==1) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- done = 1;
- }
- grammarID = 3;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 708:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MagneticVector), END_ELEMENT] */
- if (v2gMagneticVectorListType_MagneticVector_currArrayIndex < v2gMagneticVectorListType->MagneticVector.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- errn = encode_v2gMagneticVectorType(stream, &v2gMagneticVectorListType->MagneticVector.array [v2gMagneticVectorListType_MagneticVector_currArrayIndex++]);
- }
- grammarID = 709;
- } else if (1==1) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- done = 1;
- }
- grammarID = 3;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 709:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MagneticVector), END_ELEMENT] */
- if (v2gMagneticVectorListType_MagneticVector_currArrayIndex < v2gMagneticVectorListType->MagneticVector.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- errn = encode_v2gMagneticVectorType(stream, &v2gMagneticVectorListType->MagneticVector.array [v2gMagneticVectorListType_MagneticVector_currArrayIndex++]);
- }
- grammarID = 710;
- } else if (1==1) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- done = 1;
- }
- grammarID = 3;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 710:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MagneticVector), END_ELEMENT] */
- if (v2gMagneticVectorListType_MagneticVector_currArrayIndex < v2gMagneticVectorListType->MagneticVector.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- errn = encode_v2gMagneticVectorType(stream, &v2gMagneticVectorListType->MagneticVector.array [v2gMagneticVectorListType_MagneticVector_currArrayIndex++]);
- }
- grammarID = 711;
- } else if (1==1) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- done = 1;
- }
- grammarID = 3;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 711:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MagneticVector), END_ELEMENT] */
- if (v2gMagneticVectorListType_MagneticVector_currArrayIndex < v2gMagneticVectorListType->MagneticVector.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- errn = encode_v2gMagneticVectorType(stream, &v2gMagneticVectorListType->MagneticVector.array [v2gMagneticVectorListType_MagneticVector_currArrayIndex++]);
- }
- grammarID = 712;
- } else if (1==1) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- done = 1;
- }
- grammarID = 3;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 712:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MagneticVector), END_ELEMENT] */
- if (v2gMagneticVectorListType_MagneticVector_currArrayIndex < v2gMagneticVectorListType->MagneticVector.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- errn = encode_v2gMagneticVectorType(stream, &v2gMagneticVectorListType->MagneticVector.array [v2gMagneticVectorListType_MagneticVector_currArrayIndex++]);
- }
- grammarID = 713;
- } else if (1==1) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- done = 1;
- }
- grammarID = 3;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 713:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MagneticVector), END_ELEMENT] */
- if (v2gMagneticVectorListType_MagneticVector_currArrayIndex < v2gMagneticVectorListType->MagneticVector.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- errn = encode_v2gMagneticVectorType(stream, &v2gMagneticVectorListType->MagneticVector.array [v2gMagneticVectorListType_MagneticVector_currArrayIndex++]);
- }
- grammarID = 714;
- } else if (1==1) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- done = 1;
- }
- grammarID = 3;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 714:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MagneticVector), END_ELEMENT] */
- if (v2gMagneticVectorListType_MagneticVector_currArrayIndex < v2gMagneticVectorListType->MagneticVector.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- errn = encode_v2gMagneticVectorType(stream, &v2gMagneticVectorListType->MagneticVector.array [v2gMagneticVectorListType_MagneticVector_currArrayIndex++]);
- }
- grammarID = 715;
- } else if (1==1) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- done = 1;
- }
- grammarID = 3;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 715:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MagneticVector), END_ELEMENT] */
- if (v2gMagneticVectorListType_MagneticVector_currArrayIndex < v2gMagneticVectorListType->MagneticVector.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- errn = encode_v2gMagneticVectorType(stream, &v2gMagneticVectorListType->MagneticVector.array [v2gMagneticVectorListType_MagneticVector_currArrayIndex++]);
- }
- grammarID = 716;
- } else if (1==1) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- done = 1;
- }
- grammarID = 3;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 716:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MagneticVector), END_ELEMENT] */
- if (v2gMagneticVectorListType_MagneticVector_currArrayIndex < v2gMagneticVectorListType->MagneticVector.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- errn = encode_v2gMagneticVectorType(stream, &v2gMagneticVectorListType->MagneticVector.array [v2gMagneticVectorListType_MagneticVector_currArrayIndex++]);
- }
- grammarID = 717;
- } else if (1==1) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- done = 1;
- }
- grammarID = 3;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 717:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MagneticVector), END_ELEMENT] */
- if (v2gMagneticVectorListType_MagneticVector_currArrayIndex < v2gMagneticVectorListType->MagneticVector.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- errn = encode_v2gMagneticVectorType(stream, &v2gMagneticVectorListType->MagneticVector.array [v2gMagneticVectorListType_MagneticVector_currArrayIndex++]);
- }
- grammarID = 718;
- } else if (1==1) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- done = 1;
- }
- grammarID = 3;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 718:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MagneticVector), END_ELEMENT] */
- if (v2gMagneticVectorListType_MagneticVector_currArrayIndex < v2gMagneticVectorListType->MagneticVector.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- errn = encode_v2gMagneticVectorType(stream, &v2gMagneticVectorListType->MagneticVector.array [v2gMagneticVectorListType_MagneticVector_currArrayIndex++]);
- }
- grammarID = 719;
- } else if (1==1) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- done = 1;
- }
- grammarID = 3;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 719:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MagneticVector), END_ELEMENT] */
- if (v2gMagneticVectorListType_MagneticVector_currArrayIndex < v2gMagneticVectorListType->MagneticVector.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- errn = encode_v2gMagneticVectorType(stream, &v2gMagneticVectorListType->MagneticVector.array [v2gMagneticVectorListType_MagneticVector_currArrayIndex++]);
- }
- grammarID = 720;
- } else if (1==1) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- done = 1;
- }
- grammarID = 3;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 720:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MagneticVector), END_ELEMENT] */
- if (v2gMagneticVectorListType_MagneticVector_currArrayIndex < v2gMagneticVectorListType->MagneticVector.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- errn = encode_v2gMagneticVectorType(stream, &v2gMagneticVectorListType->MagneticVector.array [v2gMagneticVectorListType_MagneticVector_currArrayIndex++]);
- }
- grammarID = 721;
- } else if (1==1) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- done = 1;
- }
- grammarID = 3;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 721:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MagneticVector), END_ELEMENT] */
- if (v2gMagneticVectorListType_MagneticVector_currArrayIndex < v2gMagneticVectorListType->MagneticVector.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- errn = encode_v2gMagneticVectorType(stream, &v2gMagneticVectorListType->MagneticVector.array [v2gMagneticVectorListType_MagneticVector_currArrayIndex++]);
- }
- grammarID = 722;
- } else if (1==1) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- done = 1;
- }
- grammarID = 3;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 722:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MagneticVector), END_ELEMENT] */
- if (v2gMagneticVectorListType_MagneticVector_currArrayIndex < v2gMagneticVectorListType->MagneticVector.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- errn = encode_v2gMagneticVectorType(stream, &v2gMagneticVectorListType->MagneticVector.array [v2gMagneticVectorListType_MagneticVector_currArrayIndex++]);
- }
- grammarID = 723;
- } else if (1==1) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- done = 1;
- }
- grammarID = 3;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 723:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MagneticVector), END_ELEMENT] */
- if (v2gMagneticVectorListType_MagneticVector_currArrayIndex < v2gMagneticVectorListType->MagneticVector.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- errn = encode_v2gMagneticVectorType(stream, &v2gMagneticVectorListType->MagneticVector.array [v2gMagneticVectorListType_MagneticVector_currArrayIndex++]);
- }
- grammarID = 724;
- } else if (1==1) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- done = 1;
- }
- grammarID = 3;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 724:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MagneticVector), END_ELEMENT] */
- if (v2gMagneticVectorListType_MagneticVector_currArrayIndex < v2gMagneticVectorListType->MagneticVector.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- errn = encode_v2gMagneticVectorType(stream, &v2gMagneticVectorListType->MagneticVector.array [v2gMagneticVectorListType_MagneticVector_currArrayIndex++]);
- }
- grammarID = 725;
- } else if (1==1) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- done = 1;
- }
- grammarID = 3;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 725:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MagneticVector), END_ELEMENT] */
- if (v2gMagneticVectorListType_MagneticVector_currArrayIndex < v2gMagneticVectorListType->MagneticVector.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- errn = encode_v2gMagneticVectorType(stream, &v2gMagneticVectorListType->MagneticVector.array [v2gMagneticVectorListType_MagneticVector_currArrayIndex++]);
- }
- grammarID = 726;
- } else if (1==1) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- done = 1;
- }
- grammarID = 3;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 726:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MagneticVector), END_ELEMENT] */
- if (v2gMagneticVectorListType_MagneticVector_currArrayIndex < v2gMagneticVectorListType->MagneticVector.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- errn = encode_v2gMagneticVectorType(stream, &v2gMagneticVectorListType->MagneticVector.array [v2gMagneticVectorListType_MagneticVector_currArrayIndex++]);
- }
- grammarID = 727;
- } else if (1==1) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- done = 1;
- }
- grammarID = 3;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 727:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MagneticVector), END_ELEMENT] */
- if (v2gMagneticVectorListType_MagneticVector_currArrayIndex < v2gMagneticVectorListType->MagneticVector.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- errn = encode_v2gMagneticVectorType(stream, &v2gMagneticVectorListType->MagneticVector.array [v2gMagneticVectorListType_MagneticVector_currArrayIndex++]);
- }
- grammarID = 728;
- } else if (1==1) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- done = 1;
- }
- grammarID = 3;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 728:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MagneticVector), END_ELEMENT] */
- if (v2gMagneticVectorListType_MagneticVector_currArrayIndex < v2gMagneticVectorListType->MagneticVector.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- errn = encode_v2gMagneticVectorType(stream, &v2gMagneticVectorListType->MagneticVector.array [v2gMagneticVectorListType_MagneticVector_currArrayIndex++]);
- }
- grammarID = 729;
- } else if (1==1) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- done = 1;
- }
- grammarID = 3;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 729:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MagneticVector), END_ELEMENT] */
- if (v2gMagneticVectorListType_MagneticVector_currArrayIndex < v2gMagneticVectorListType->MagneticVector.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- errn = encode_v2gMagneticVectorType(stream, &v2gMagneticVectorListType->MagneticVector.array [v2gMagneticVectorListType_MagneticVector_currArrayIndex++]);
- }
- grammarID = 730;
- } else if (1==1) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- done = 1;
- }
- grammarID = 3;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 730:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MagneticVector), END_ELEMENT] */
- if (v2gMagneticVectorListType_MagneticVector_currArrayIndex < v2gMagneticVectorListType->MagneticVector.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- errn = encode_v2gMagneticVectorType(stream, &v2gMagneticVectorListType->MagneticVector.array [v2gMagneticVectorListType_MagneticVector_currArrayIndex++]);
- }
- grammarID = 731;
- } else if (1==1) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- done = 1;
- }
- grammarID = 3;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 731:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MagneticVector), END_ELEMENT] */
- if (v2gMagneticVectorListType_MagneticVector_currArrayIndex < v2gMagneticVectorListType->MagneticVector.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- errn = encode_v2gMagneticVectorType(stream, &v2gMagneticVectorListType->MagneticVector.array [v2gMagneticVectorListType_MagneticVector_currArrayIndex++]);
- }
- grammarID = 732;
- } else if (1==1) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- done = 1;
- }
- grammarID = 3;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 732:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MagneticVector), END_ELEMENT] */
- if (v2gMagneticVectorListType_MagneticVector_currArrayIndex < v2gMagneticVectorListType->MagneticVector.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- errn = encode_v2gMagneticVectorType(stream, &v2gMagneticVectorListType->MagneticVector.array [v2gMagneticVectorListType_MagneticVector_currArrayIndex++]);
- }
- grammarID = 733;
- } else if (1==1) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- done = 1;
- }
- grammarID = 3;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 733:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MagneticVector), END_ELEMENT] */
- if (v2gMagneticVectorListType_MagneticVector_currArrayIndex < v2gMagneticVectorListType->MagneticVector.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- errn = encode_v2gMagneticVectorType(stream, &v2gMagneticVectorListType->MagneticVector.array [v2gMagneticVectorListType_MagneticVector_currArrayIndex++]);
- }
- grammarID = 734;
- } else if (1==1) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- done = 1;
- }
- grammarID = 3;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 734:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MagneticVector), END_ELEMENT] */
- if (v2gMagneticVectorListType_MagneticVector_currArrayIndex < v2gMagneticVectorListType->MagneticVector.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- errn = encode_v2gMagneticVectorType(stream, &v2gMagneticVectorListType->MagneticVector.array [v2gMagneticVectorListType_MagneticVector_currArrayIndex++]);
- }
- grammarID = 735;
- } else if (1==1) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- done = 1;
- }
- grammarID = 3;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 735:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MagneticVector), END_ELEMENT] */
- if (v2gMagneticVectorListType_MagneticVector_currArrayIndex < v2gMagneticVectorListType->MagneticVector.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- errn = encode_v2gMagneticVectorType(stream, &v2gMagneticVectorListType->MagneticVector.array [v2gMagneticVectorListType_MagneticVector_currArrayIndex++]);
- }
- grammarID = 736;
- } else if (1==1) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- done = 1;
- }
- grammarID = 3;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 736:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MagneticVector), END_ELEMENT] */
- if (v2gMagneticVectorListType_MagneticVector_currArrayIndex < v2gMagneticVectorListType->MagneticVector.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- errn = encode_v2gMagneticVectorType(stream, &v2gMagneticVectorListType->MagneticVector.array [v2gMagneticVectorListType_MagneticVector_currArrayIndex++]);
- }
- grammarID = 737;
- } else if (1==1) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- done = 1;
- }
- grammarID = 3;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 737:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MagneticVector), END_ELEMENT] */
- if (v2gMagneticVectorListType_MagneticVector_currArrayIndex < v2gMagneticVectorListType->MagneticVector.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- errn = encode_v2gMagneticVectorType(stream, &v2gMagneticVectorListType->MagneticVector.array [v2gMagneticVectorListType_MagneticVector_currArrayIndex++]);
- }
- grammarID = 738;
- } else if (1==1) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- done = 1;
- }
- grammarID = 3;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 738:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MagneticVector), END_ELEMENT] */
- if (v2gMagneticVectorListType_MagneticVector_currArrayIndex < v2gMagneticVectorListType->MagneticVector.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- errn = encode_v2gMagneticVectorType(stream, &v2gMagneticVectorListType->MagneticVector.array [v2gMagneticVectorListType_MagneticVector_currArrayIndex++]);
- }
- grammarID = 739;
- } else if (1==1) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- done = 1;
- }
- grammarID = 3;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 739:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MagneticVector), END_ELEMENT] */
- if (v2gMagneticVectorListType_MagneticVector_currArrayIndex < v2gMagneticVectorListType->MagneticVector.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- errn = encode_v2gMagneticVectorType(stream, &v2gMagneticVectorListType->MagneticVector.array [v2gMagneticVectorListType_MagneticVector_currArrayIndex++]);
- }
- grammarID = 740;
- } else if (1==1) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- done = 1;
- }
- grammarID = 3;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 740:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MagneticVector), END_ELEMENT] */
- if (v2gMagneticVectorListType_MagneticVector_currArrayIndex < v2gMagneticVectorListType->MagneticVector.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- errn = encode_v2gMagneticVectorType(stream, &v2gMagneticVectorListType->MagneticVector.array [v2gMagneticVectorListType_MagneticVector_currArrayIndex++]);
- }
- grammarID = 741;
- } else if (1==1) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- done = 1;
- }
- grammarID = 3;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 741:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MagneticVector), END_ELEMENT] */
- if (v2gMagneticVectorListType_MagneticVector_currArrayIndex < v2gMagneticVectorListType->MagneticVector.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- errn = encode_v2gMagneticVectorType(stream, &v2gMagneticVectorListType->MagneticVector.array [v2gMagneticVectorListType_MagneticVector_currArrayIndex++]);
- }
- grammarID = 742;
- } else if (1==1) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- done = 1;
- }
- grammarID = 3;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 742:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MagneticVector), END_ELEMENT] */
- if (v2gMagneticVectorListType_MagneticVector_currArrayIndex < v2gMagneticVectorListType->MagneticVector.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- errn = encode_v2gMagneticVectorType(stream, &v2gMagneticVectorListType->MagneticVector.array [v2gMagneticVectorListType_MagneticVector_currArrayIndex++]);
- }
- grammarID = 743;
- } else if (1==1) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- done = 1;
- }
- grammarID = 3;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 743:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MagneticVector), END_ELEMENT] */
- if (v2gMagneticVectorListType_MagneticVector_currArrayIndex < v2gMagneticVectorListType->MagneticVector.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- errn = encode_v2gMagneticVectorType(stream, &v2gMagneticVectorListType->MagneticVector.array [v2gMagneticVectorListType_MagneticVector_currArrayIndex++]);
- }
- grammarID = 744;
- } else if (1==1) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- done = 1;
- }
- grammarID = 3;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 744:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MagneticVector), END_ELEMENT] */
- if (v2gMagneticVectorListType_MagneticVector_currArrayIndex < v2gMagneticVectorListType->MagneticVector.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- errn = encode_v2gMagneticVectorType(stream, &v2gMagneticVectorListType->MagneticVector.array [v2gMagneticVectorListType_MagneticVector_currArrayIndex++]);
- }
- grammarID = 745;
- } else if (1==1) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- done = 1;
- }
- grammarID = 3;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 745:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MagneticVector), END_ELEMENT] */
- if (v2gMagneticVectorListType_MagneticVector_currArrayIndex < v2gMagneticVectorListType->MagneticVector.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- errn = encode_v2gMagneticVectorType(stream, &v2gMagneticVectorListType->MagneticVector.array [v2gMagneticVectorListType_MagneticVector_currArrayIndex++]);
- }
- grammarID = 746;
- } else if (1==1) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- done = 1;
- }
- grammarID = 3;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 746:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MagneticVector), END_ELEMENT] */
- if (v2gMagneticVectorListType_MagneticVector_currArrayIndex < v2gMagneticVectorListType->MagneticVector.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- errn = encode_v2gMagneticVectorType(stream, &v2gMagneticVectorListType->MagneticVector.array [v2gMagneticVectorListType_MagneticVector_currArrayIndex++]);
- }
- grammarID = 747;
- } else if (1==1) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- done = 1;
- }
- grammarID = 3;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 747:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MagneticVector), END_ELEMENT] */
- if (v2gMagneticVectorListType_MagneticVector_currArrayIndex < v2gMagneticVectorListType->MagneticVector.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- errn = encode_v2gMagneticVectorType(stream, &v2gMagneticVectorListType->MagneticVector.array [v2gMagneticVectorListType_MagneticVector_currArrayIndex++]);
- }
- grammarID = 748;
- } else if (1==1) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- done = 1;
- }
- grammarID = 3;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 748:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MagneticVector), END_ELEMENT] */
- if (v2gMagneticVectorListType_MagneticVector_currArrayIndex < v2gMagneticVectorListType->MagneticVector.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- errn = encode_v2gMagneticVectorType(stream, &v2gMagneticVectorListType->MagneticVector.array [v2gMagneticVectorListType_MagneticVector_currArrayIndex++]);
- }
- grammarID = 749;
- } else if (1==1) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- done = 1;
- }
- grammarID = 3;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 749:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MagneticVector), END_ELEMENT] */
- if (v2gMagneticVectorListType_MagneticVector_currArrayIndex < v2gMagneticVectorListType->MagneticVector.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- errn = encode_v2gMagneticVectorType(stream, &v2gMagneticVectorListType->MagneticVector.array [v2gMagneticVectorListType_MagneticVector_currArrayIndex++]);
- }
- grammarID = 750;
- } else if (1==1) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- done = 1;
- }
- grammarID = 3;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 750:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MagneticVector), END_ELEMENT] */
- if (v2gMagneticVectorListType_MagneticVector_currArrayIndex < v2gMagneticVectorListType->MagneticVector.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- errn = encode_v2gMagneticVectorType(stream, &v2gMagneticVectorListType->MagneticVector.array [v2gMagneticVectorListType_MagneticVector_currArrayIndex++]);
- }
- grammarID = 751;
- } else if (1==1) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- done = 1;
- }
- grammarID = 3;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 751:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MagneticVector), END_ELEMENT] */
- if (v2gMagneticVectorListType_MagneticVector_currArrayIndex < v2gMagneticVectorListType->MagneticVector.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- errn = encode_v2gMagneticVectorType(stream, &v2gMagneticVectorListType->MagneticVector.array [v2gMagneticVectorListType_MagneticVector_currArrayIndex++]);
- }
- grammarID = 752;
- } else if (1==1) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- done = 1;
- }
- grammarID = 3;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 752:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MagneticVector), END_ELEMENT] */
- if (v2gMagneticVectorListType_MagneticVector_currArrayIndex < v2gMagneticVectorListType->MagneticVector.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- errn = encode_v2gMagneticVectorType(stream, &v2gMagneticVectorListType->MagneticVector.array [v2gMagneticVectorListType_MagneticVector_currArrayIndex++]);
- }
- grammarID = 753;
- } else if (1==1) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- done = 1;
- }
- grammarID = 3;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 753:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MagneticVector), END_ELEMENT] */
- if (v2gMagneticVectorListType_MagneticVector_currArrayIndex < v2gMagneticVectorListType->MagneticVector.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- errn = encode_v2gMagneticVectorType(stream, &v2gMagneticVectorListType->MagneticVector.array [v2gMagneticVectorListType_MagneticVector_currArrayIndex++]);
- }
- grammarID = 754;
- } else if (1==1) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- done = 1;
- }
- grammarID = 3;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 754:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MagneticVector), END_ELEMENT] */
- if (v2gMagneticVectorListType_MagneticVector_currArrayIndex < v2gMagneticVectorListType->MagneticVector.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- errn = encode_v2gMagneticVectorType(stream, &v2gMagneticVectorListType->MagneticVector.array [v2gMagneticVectorListType_MagneticVector_currArrayIndex++]);
- }
- grammarID = 755;
- } else if (1==1) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- done = 1;
- }
- grammarID = 3;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 755:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MagneticVector), END_ELEMENT] */
- if (v2gMagneticVectorListType_MagneticVector_currArrayIndex < v2gMagneticVectorListType->MagneticVector.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- errn = encode_v2gMagneticVectorType(stream, &v2gMagneticVectorListType->MagneticVector.array [v2gMagneticVectorListType_MagneticVector_currArrayIndex++]);
- }
- grammarID = 756;
- } else if (1==1) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- done = 1;
- }
- grammarID = 3;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 756:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MagneticVector), END_ELEMENT] */
- if (v2gMagneticVectorListType_MagneticVector_currArrayIndex < v2gMagneticVectorListType->MagneticVector.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- errn = encode_v2gMagneticVectorType(stream, &v2gMagneticVectorListType->MagneticVector.array [v2gMagneticVectorListType_MagneticVector_currArrayIndex++]);
- }
- grammarID = 757;
- } else if (1==1) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- done = 1;
- }
- grammarID = 3;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 757:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MagneticVector), END_ELEMENT] */
- if (v2gMagneticVectorListType_MagneticVector_currArrayIndex < v2gMagneticVectorListType->MagneticVector.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- errn = encode_v2gMagneticVectorType(stream, &v2gMagneticVectorListType->MagneticVector.array [v2gMagneticVectorListType_MagneticVector_currArrayIndex++]);
- }
- grammarID = 758;
- } else if (1==1) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- done = 1;
- }
- grammarID = 3;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 758:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MagneticVector), END_ELEMENT] */
- if (v2gMagneticVectorListType_MagneticVector_currArrayIndex < v2gMagneticVectorListType->MagneticVector.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- errn = encode_v2gMagneticVectorType(stream, &v2gMagneticVectorListType->MagneticVector.array [v2gMagneticVectorListType_MagneticVector_currArrayIndex++]);
- }
- grammarID = 759;
- } else if (1==1) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- done = 1;
- }
- grammarID = 3;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 759:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MagneticVector), END_ELEMENT] */
- if (v2gMagneticVectorListType_MagneticVector_currArrayIndex < v2gMagneticVectorListType->MagneticVector.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- errn = encode_v2gMagneticVectorType(stream, &v2gMagneticVectorListType->MagneticVector.array [v2gMagneticVectorListType_MagneticVector_currArrayIndex++]);
- }
- grammarID = 760;
- } else if (1==1) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- done = 1;
- }
- grammarID = 3;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 760:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MagneticVector), END_ELEMENT] */
- if (v2gMagneticVectorListType_MagneticVector_currArrayIndex < v2gMagneticVectorListType->MagneticVector.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- errn = encode_v2gMagneticVectorType(stream, &v2gMagneticVectorListType->MagneticVector.array [v2gMagneticVectorListType_MagneticVector_currArrayIndex++]);
- }
- grammarID = 761;
- } else if (1==1) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- done = 1;
- }
- grammarID = 3;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 761:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MagneticVector), END_ELEMENT] */
- if (v2gMagneticVectorListType_MagneticVector_currArrayIndex < v2gMagneticVectorListType->MagneticVector.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- errn = encode_v2gMagneticVectorType(stream, &v2gMagneticVectorListType->MagneticVector.array [v2gMagneticVectorListType_MagneticVector_currArrayIndex++]);
- }
- grammarID = 762;
- } else if (1==1) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- done = 1;
- }
- grammarID = 3;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 762:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MagneticVector), END_ELEMENT] */
- if (v2gMagneticVectorListType_MagneticVector_currArrayIndex < v2gMagneticVectorListType->MagneticVector.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- errn = encode_v2gMagneticVectorType(stream, &v2gMagneticVectorListType->MagneticVector.array [v2gMagneticVectorListType_MagneticVector_currArrayIndex++]);
- }
- grammarID = 763;
- } else if (1==1) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- done = 1;
- }
- grammarID = 3;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 763:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MagneticVector), END_ELEMENT] */
- if (v2gMagneticVectorListType_MagneticVector_currArrayIndex < v2gMagneticVectorListType->MagneticVector.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- errn = encode_v2gMagneticVectorType(stream, &v2gMagneticVectorListType->MagneticVector.array [v2gMagneticVectorListType_MagneticVector_currArrayIndex++]);
- }
- grammarID = 764;
- } else if (1==1) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- done = 1;
- }
- grammarID = 3;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 764:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MagneticVector), END_ELEMENT] */
- if (v2gMagneticVectorListType_MagneticVector_currArrayIndex < v2gMagneticVectorListType->MagneticVector.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- errn = encode_v2gMagneticVectorType(stream, &v2gMagneticVectorListType->MagneticVector.array [v2gMagneticVectorListType_MagneticVector_currArrayIndex++]);
- }
- grammarID = 765;
- } else if (1==1) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- done = 1;
- }
- grammarID = 3;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 765:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MagneticVector), END_ELEMENT] */
- if (v2gMagneticVectorListType_MagneticVector_currArrayIndex < v2gMagneticVectorListType->MagneticVector.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- errn = encode_v2gMagneticVectorType(stream, &v2gMagneticVectorListType->MagneticVector.array [v2gMagneticVectorListType_MagneticVector_currArrayIndex++]);
- }
- grammarID = 766;
- } else if (1==1) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- done = 1;
- }
- grammarID = 3;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 766:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MagneticVector), END_ELEMENT] */
- if (v2gMagneticVectorListType_MagneticVector_currArrayIndex < v2gMagneticVectorListType->MagneticVector.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- errn = encode_v2gMagneticVectorType(stream, &v2gMagneticVectorListType->MagneticVector.array [v2gMagneticVectorListType_MagneticVector_currArrayIndex++]);
- }
- grammarID = 767;
- } else if (1==1) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- done = 1;
- }
- grammarID = 3;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 767:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MagneticVector), END_ELEMENT] */
- if (v2gMagneticVectorListType_MagneticVector_currArrayIndex < v2gMagneticVectorListType->MagneticVector.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- errn = encode_v2gMagneticVectorType(stream, &v2gMagneticVectorListType->MagneticVector.array [v2gMagneticVectorListType_MagneticVector_currArrayIndex++]);
- }
- grammarID = 768;
- } else if (1==1) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- done = 1;
- }
- grammarID = 3;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 768:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MagneticVector), END_ELEMENT] */
- if (v2gMagneticVectorListType_MagneticVector_currArrayIndex < v2gMagneticVectorListType->MagneticVector.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- errn = encode_v2gMagneticVectorType(stream, &v2gMagneticVectorListType->MagneticVector.array [v2gMagneticVectorListType_MagneticVector_currArrayIndex++]);
- }
- grammarID = 769;
- } else if (1==1) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- done = 1;
- }
- grammarID = 3;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 769:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MagneticVector), END_ELEMENT] */
- if (v2gMagneticVectorListType_MagneticVector_currArrayIndex < v2gMagneticVectorListType->MagneticVector.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- errn = encode_v2gMagneticVectorType(stream, &v2gMagneticVectorListType->MagneticVector.array [v2gMagneticVectorListType_MagneticVector_currArrayIndex++]);
- }
- grammarID = 770;
- } else if (1==1) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- done = 1;
- }
- grammarID = 3;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 770:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MagneticVector), END_ELEMENT] */
- if (v2gMagneticVectorListType_MagneticVector_currArrayIndex < v2gMagneticVectorListType->MagneticVector.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- errn = encode_v2gMagneticVectorType(stream, &v2gMagneticVectorListType->MagneticVector.array [v2gMagneticVectorListType_MagneticVector_currArrayIndex++]);
- }
- grammarID = 771;
- } else if (1==1) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- done = 1;
- }
- grammarID = 3;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 771:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MagneticVector), END_ELEMENT] */
- if (v2gMagneticVectorListType_MagneticVector_currArrayIndex < v2gMagneticVectorListType->MagneticVector.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- errn = encode_v2gMagneticVectorType(stream, &v2gMagneticVectorListType->MagneticVector.array [v2gMagneticVectorListType_MagneticVector_currArrayIndex++]);
- }
- grammarID = 772;
- } else if (1==1) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- done = 1;
- }
- grammarID = 3;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 772:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MagneticVector), END_ELEMENT] */
- if (v2gMagneticVectorListType_MagneticVector_currArrayIndex < v2gMagneticVectorListType->MagneticVector.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- errn = encode_v2gMagneticVectorType(stream, &v2gMagneticVectorListType->MagneticVector.array [v2gMagneticVectorListType_MagneticVector_currArrayIndex++]);
- }
- grammarID = 773;
- } else if (1==1) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- done = 1;
- }
- grammarID = 3;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 773:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MagneticVector), END_ELEMENT] */
- if (v2gMagneticVectorListType_MagneticVector_currArrayIndex < v2gMagneticVectorListType->MagneticVector.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- errn = encode_v2gMagneticVectorType(stream, &v2gMagneticVectorListType->MagneticVector.array [v2gMagneticVectorListType_MagneticVector_currArrayIndex++]);
- }
- grammarID = 774;
- } else if (1==1) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- done = 1;
- }
- grammarID = 3;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 774:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MagneticVector), END_ELEMENT] */
- if (v2gMagneticVectorListType_MagneticVector_currArrayIndex < v2gMagneticVectorListType->MagneticVector.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- errn = encode_v2gMagneticVectorType(stream, &v2gMagneticVectorListType->MagneticVector.array [v2gMagneticVectorListType_MagneticVector_currArrayIndex++]);
- }
- grammarID = 775;
- } else if (1==1) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- done = 1;
- }
- grammarID = 3;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 775:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MagneticVector), END_ELEMENT] */
- if (v2gMagneticVectorListType_MagneticVector_currArrayIndex < v2gMagneticVectorListType->MagneticVector.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- errn = encode_v2gMagneticVectorType(stream, &v2gMagneticVectorListType->MagneticVector.array [v2gMagneticVectorListType_MagneticVector_currArrayIndex++]);
- }
- grammarID = 776;
- } else if (1==1) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- done = 1;
- }
- grammarID = 3;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 776:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MagneticVector), END_ELEMENT] */
- if (v2gMagneticVectorListType_MagneticVector_currArrayIndex < v2gMagneticVectorListType->MagneticVector.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- errn = encode_v2gMagneticVectorType(stream, &v2gMagneticVectorListType->MagneticVector.array [v2gMagneticVectorListType_MagneticVector_currArrayIndex++]);
- }
- grammarID = 777;
- } else if (1==1) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- done = 1;
- }
- grammarID = 3;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 777:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MagneticVector), END_ELEMENT] */
- if (v2gMagneticVectorListType_MagneticVector_currArrayIndex < v2gMagneticVectorListType->MagneticVector.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- errn = encode_v2gMagneticVectorType(stream, &v2gMagneticVectorListType->MagneticVector.array [v2gMagneticVectorListType_MagneticVector_currArrayIndex++]);
- }
- grammarID = 778;
- } else if (1==1) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- done = 1;
- }
- grammarID = 3;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 778:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MagneticVector), END_ELEMENT] */
- if (v2gMagneticVectorListType_MagneticVector_currArrayIndex < v2gMagneticVectorListType->MagneticVector.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- errn = encode_v2gMagneticVectorType(stream, &v2gMagneticVectorListType->MagneticVector.array [v2gMagneticVectorListType_MagneticVector_currArrayIndex++]);
- }
- grammarID = 779;
- } else if (1==1) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- done = 1;
- }
- grammarID = 3;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 779:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MagneticVector), END_ELEMENT] */
- if (v2gMagneticVectorListType_MagneticVector_currArrayIndex < v2gMagneticVectorListType->MagneticVector.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- errn = encode_v2gMagneticVectorType(stream, &v2gMagneticVectorListType->MagneticVector.array [v2gMagneticVectorListType_MagneticVector_currArrayIndex++]);
- }
- grammarID = 780;
- } else if (1==1) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- done = 1;
- }
- grammarID = 3;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 780:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MagneticVector), END_ELEMENT] */
- if (v2gMagneticVectorListType_MagneticVector_currArrayIndex < v2gMagneticVectorListType->MagneticVector.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- errn = encode_v2gMagneticVectorType(stream, &v2gMagneticVectorListType->MagneticVector.array [v2gMagneticVectorListType_MagneticVector_currArrayIndex++]);
- }
- grammarID = 781;
- } else if (1==1) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- done = 1;
- }
- grammarID = 3;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 781:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MagneticVector), END_ELEMENT] */
- if (v2gMagneticVectorListType_MagneticVector_currArrayIndex < v2gMagneticVectorListType->MagneticVector.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- errn = encode_v2gMagneticVectorType(stream, &v2gMagneticVectorListType->MagneticVector.array [v2gMagneticVectorListType_MagneticVector_currArrayIndex++]);
- }
- grammarID = 782;
- } else if (1==1) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- done = 1;
- }
- grammarID = 3;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 782:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MagneticVector), END_ELEMENT] */
- if (v2gMagneticVectorListType_MagneticVector_currArrayIndex < v2gMagneticVectorListType->MagneticVector.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- errn = encode_v2gMagneticVectorType(stream, &v2gMagneticVectorListType->MagneticVector.array [v2gMagneticVectorListType_MagneticVector_currArrayIndex++]);
- }
- grammarID = 783;
- } else if (1==1) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- done = 1;
- }
- grammarID = 3;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 783:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MagneticVector), END_ELEMENT] */
- if (v2gMagneticVectorListType_MagneticVector_currArrayIndex < v2gMagneticVectorListType->MagneticVector.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- errn = encode_v2gMagneticVectorType(stream, &v2gMagneticVectorListType->MagneticVector.array [v2gMagneticVectorListType_MagneticVector_currArrayIndex++]);
- }
- grammarID = 784;
- } else if (1==1) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- done = 1;
- }
- grammarID = 3;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 784:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MagneticVector), END_ELEMENT] */
- if (v2gMagneticVectorListType_MagneticVector_currArrayIndex < v2gMagneticVectorListType->MagneticVector.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- errn = encode_v2gMagneticVectorType(stream, &v2gMagneticVectorListType->MagneticVector.array [v2gMagneticVectorListType_MagneticVector_currArrayIndex++]);
- }
- grammarID = 785;
- } else if (1==1) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- done = 1;
- }
- grammarID = 3;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 785:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MagneticVector), END_ELEMENT] */
- if (v2gMagneticVectorListType_MagneticVector_currArrayIndex < v2gMagneticVectorListType->MagneticVector.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- errn = encode_v2gMagneticVectorType(stream, &v2gMagneticVectorListType->MagneticVector.array [v2gMagneticVectorListType_MagneticVector_currArrayIndex++]);
- }
- grammarID = 786;
- } else if (1==1) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- done = 1;
- }
- grammarID = 3;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 786:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MagneticVector), END_ELEMENT] */
- if (v2gMagneticVectorListType_MagneticVector_currArrayIndex < v2gMagneticVectorListType->MagneticVector.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- errn = encode_v2gMagneticVectorType(stream, &v2gMagneticVectorListType->MagneticVector.array [v2gMagneticVectorListType_MagneticVector_currArrayIndex++]);
- }
- grammarID = 787;
- } else if (1==1) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- done = 1;
- }
- grammarID = 3;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 787:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MagneticVector), END_ELEMENT] */
- if (v2gMagneticVectorListType_MagneticVector_currArrayIndex < v2gMagneticVectorListType->MagneticVector.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- errn = encode_v2gMagneticVectorType(stream, &v2gMagneticVectorListType->MagneticVector.array [v2gMagneticVectorListType_MagneticVector_currArrayIndex++]);
- }
- grammarID = 788;
- } else if (1==1) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- done = 1;
- }
- grammarID = 3;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 788:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MagneticVector), END_ELEMENT] */
- if (v2gMagneticVectorListType_MagneticVector_currArrayIndex < v2gMagneticVectorListType->MagneticVector.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- errn = encode_v2gMagneticVectorType(stream, &v2gMagneticVectorListType->MagneticVector.array [v2gMagneticVectorListType_MagneticVector_currArrayIndex++]);
- }
- grammarID = 789;
- } else if (1==1) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- done = 1;
- }
- grammarID = 3;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 789:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MagneticVector), END_ELEMENT] */
- if (v2gMagneticVectorListType_MagneticVector_currArrayIndex < v2gMagneticVectorListType->MagneticVector.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- errn = encode_v2gMagneticVectorType(stream, &v2gMagneticVectorListType->MagneticVector.array [v2gMagneticVectorListType_MagneticVector_currArrayIndex++]);
- }
- grammarID = 790;
- } else if (1==1) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- done = 1;
- }
- grammarID = 3;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 790:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MagneticVector), END_ELEMENT] */
- if (v2gMagneticVectorListType_MagneticVector_currArrayIndex < v2gMagneticVectorListType->MagneticVector.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- errn = encode_v2gMagneticVectorType(stream, &v2gMagneticVectorListType->MagneticVector.array [v2gMagneticVectorListType_MagneticVector_currArrayIndex++]);
- }
- grammarID = 791;
- } else if (1==1) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- done = 1;
- }
- grammarID = 3;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 791:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MagneticVector), END_ELEMENT] */
- if (v2gMagneticVectorListType_MagneticVector_currArrayIndex < v2gMagneticVectorListType->MagneticVector.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- errn = encode_v2gMagneticVectorType(stream, &v2gMagneticVectorListType->MagneticVector.array [v2gMagneticVectorListType_MagneticVector_currArrayIndex++]);
- }
- grammarID = 792;
- } else if (1==1) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- done = 1;
- }
- grammarID = 3;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 792:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MagneticVector), END_ELEMENT] */
- if (v2gMagneticVectorListType_MagneticVector_currArrayIndex < v2gMagneticVectorListType->MagneticVector.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- errn = encode_v2gMagneticVectorType(stream, &v2gMagneticVectorListType->MagneticVector.array [v2gMagneticVectorListType_MagneticVector_currArrayIndex++]);
- }
- grammarID = 793;
- } else if (1==1) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- done = 1;
- }
- grammarID = 3;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 793:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MagneticVector), END_ELEMENT] */
- if (v2gMagneticVectorListType_MagneticVector_currArrayIndex < v2gMagneticVectorListType->MagneticVector.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- errn = encode_v2gMagneticVectorType(stream, &v2gMagneticVectorListType->MagneticVector.array [v2gMagneticVectorListType_MagneticVector_currArrayIndex++]);
- }
- grammarID = 794;
- } else if (1==1) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- done = 1;
- }
- grammarID = 3;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 794:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MagneticVector), END_ELEMENT] */
- if (v2gMagneticVectorListType_MagneticVector_currArrayIndex < v2gMagneticVectorListType->MagneticVector.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- errn = encode_v2gMagneticVectorType(stream, &v2gMagneticVectorListType->MagneticVector.array [v2gMagneticVectorListType_MagneticVector_currArrayIndex++]);
- }
- grammarID = 795;
- } else if (1==1) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- done = 1;
- }
- grammarID = 3;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 795:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MagneticVector), END_ELEMENT] */
- if (v2gMagneticVectorListType_MagneticVector_currArrayIndex < v2gMagneticVectorListType->MagneticVector.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- errn = encode_v2gMagneticVectorType(stream, &v2gMagneticVectorListType->MagneticVector.array [v2gMagneticVectorListType_MagneticVector_currArrayIndex++]);
- }
- grammarID = 796;
- } else if (1==1) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- done = 1;
- }
- grammarID = 3;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 796:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MagneticVector), END_ELEMENT] */
- if (v2gMagneticVectorListType_MagneticVector_currArrayIndex < v2gMagneticVectorListType->MagneticVector.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- errn = encode_v2gMagneticVectorType(stream, &v2gMagneticVectorListType->MagneticVector.array [v2gMagneticVectorListType_MagneticVector_currArrayIndex++]);
- }
- grammarID = 797;
- } else if (1==1) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- done = 1;
- }
- grammarID = 3;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 797:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MagneticVector), END_ELEMENT] */
- if (v2gMagneticVectorListType_MagneticVector_currArrayIndex < v2gMagneticVectorListType->MagneticVector.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- errn = encode_v2gMagneticVectorType(stream, &v2gMagneticVectorListType->MagneticVector.array [v2gMagneticVectorListType_MagneticVector_currArrayIndex++]);
- }
- grammarID = 798;
- } else if (1==1) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- done = 1;
- }
- grammarID = 3;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 798:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MagneticVector), END_ELEMENT] */
- if (v2gMagneticVectorListType_MagneticVector_currArrayIndex < v2gMagneticVectorListType->MagneticVector.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- errn = encode_v2gMagneticVectorType(stream, &v2gMagneticVectorListType->MagneticVector.array [v2gMagneticVectorListType_MagneticVector_currArrayIndex++]);
- }
- grammarID = 799;
- } else if (1==1) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- done = 1;
- }
- grammarID = 3;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 799:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MagneticVector), END_ELEMENT] */
- if (v2gMagneticVectorListType_MagneticVector_currArrayIndex < v2gMagneticVectorListType->MagneticVector.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- errn = encode_v2gMagneticVectorType(stream, &v2gMagneticVectorListType->MagneticVector.array [v2gMagneticVectorListType_MagneticVector_currArrayIndex++]);
- }
- grammarID = 800;
- } else if (1==1) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- done = 1;
- }
- grammarID = 3;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 800:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MagneticVector), END_ELEMENT] */
- if (v2gMagneticVectorListType_MagneticVector_currArrayIndex < v2gMagneticVectorListType->MagneticVector.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- errn = encode_v2gMagneticVectorType(stream, &v2gMagneticVectorListType->MagneticVector.array [v2gMagneticVectorListType_MagneticVector_currArrayIndex++]);
- }
- grammarID = 801;
- } else if (1==1) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- done = 1;
- }
- grammarID = 3;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 801:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MagneticVector), END_ELEMENT] */
- if (v2gMagneticVectorListType_MagneticVector_currArrayIndex < v2gMagneticVectorListType->MagneticVector.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- errn = encode_v2gMagneticVectorType(stream, &v2gMagneticVectorListType->MagneticVector.array [v2gMagneticVectorListType_MagneticVector_currArrayIndex++]);
- }
- grammarID = 802;
- } else if (1==1) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- done = 1;
- }
- grammarID = 3;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 802:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MagneticVector), END_ELEMENT] */
- if (v2gMagneticVectorListType_MagneticVector_currArrayIndex < v2gMagneticVectorListType->MagneticVector.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- errn = encode_v2gMagneticVectorType(stream, &v2gMagneticVectorListType->MagneticVector.array [v2gMagneticVectorListType_MagneticVector_currArrayIndex++]);
- }
- grammarID = 803;
- } else if (1==1) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- done = 1;
- }
- grammarID = 3;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 803:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MagneticVector), END_ELEMENT] */
- if (v2gMagneticVectorListType_MagneticVector_currArrayIndex < v2gMagneticVectorListType->MagneticVector.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- errn = encode_v2gMagneticVectorType(stream, &v2gMagneticVectorListType->MagneticVector.array [v2gMagneticVectorListType_MagneticVector_currArrayIndex++]);
- }
- grammarID = 804;
- } else if (1==1) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- done = 1;
- }
- grammarID = 3;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 804:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MagneticVector), END_ELEMENT] */
- if (v2gMagneticVectorListType_MagneticVector_currArrayIndex < v2gMagneticVectorListType->MagneticVector.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- errn = encode_v2gMagneticVectorType(stream, &v2gMagneticVectorListType->MagneticVector.array [v2gMagneticVectorListType_MagneticVector_currArrayIndex++]);
- }
- grammarID = 805;
- } else if (1==1) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- done = 1;
- }
- grammarID = 3;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 805:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MagneticVector), END_ELEMENT] */
- if (v2gMagneticVectorListType_MagneticVector_currArrayIndex < v2gMagneticVectorListType->MagneticVector.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- errn = encode_v2gMagneticVectorType(stream, &v2gMagneticVectorListType->MagneticVector.array [v2gMagneticVectorListType_MagneticVector_currArrayIndex++]);
- }
- grammarID = 806;
- } else if (1==1) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- done = 1;
- }
- grammarID = 3;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 806:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MagneticVector), END_ELEMENT] */
- if (v2gMagneticVectorListType_MagneticVector_currArrayIndex < v2gMagneticVectorListType->MagneticVector.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- errn = encode_v2gMagneticVectorType(stream, &v2gMagneticVectorListType->MagneticVector.array [v2gMagneticVectorListType_MagneticVector_currArrayIndex++]);
- }
- grammarID = 807;
- } else if (1==1) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- done = 1;
- }
- grammarID = 3;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 807:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MagneticVector), END_ELEMENT] */
- if (v2gMagneticVectorListType_MagneticVector_currArrayIndex < v2gMagneticVectorListType->MagneticVector.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- errn = encode_v2gMagneticVectorType(stream, &v2gMagneticVectorListType->MagneticVector.array [v2gMagneticVectorListType_MagneticVector_currArrayIndex++]);
- }
- grammarID = 808;
- } else if (1==1) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- done = 1;
- }
- grammarID = 3;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 808:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MagneticVector), END_ELEMENT] */
- if (v2gMagneticVectorListType_MagneticVector_currArrayIndex < v2gMagneticVectorListType->MagneticVector.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- errn = encode_v2gMagneticVectorType(stream, &v2gMagneticVectorListType->MagneticVector.array [v2gMagneticVectorListType_MagneticVector_currArrayIndex++]);
- }
- grammarID = 809;
- } else if (1==1) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- done = 1;
- }
- grammarID = 3;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 809:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MagneticVector), END_ELEMENT] */
- if (v2gMagneticVectorListType_MagneticVector_currArrayIndex < v2gMagneticVectorListType->MagneticVector.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- errn = encode_v2gMagneticVectorType(stream, &v2gMagneticVectorListType->MagneticVector.array [v2gMagneticVectorListType_MagneticVector_currArrayIndex++]);
- }
- grammarID = 810;
- } else if (1==1) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- done = 1;
- }
- grammarID = 3;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 810:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MagneticVector), END_ELEMENT] */
- if (v2gMagneticVectorListType_MagneticVector_currArrayIndex < v2gMagneticVectorListType->MagneticVector.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- errn = encode_v2gMagneticVectorType(stream, &v2gMagneticVectorListType->MagneticVector.array [v2gMagneticVectorListType_MagneticVector_currArrayIndex++]);
- }
- grammarID = 811;
- } else if (1==1) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- done = 1;
- }
- grammarID = 3;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 811:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MagneticVector), END_ELEMENT] */
- if (v2gMagneticVectorListType_MagneticVector_currArrayIndex < v2gMagneticVectorListType->MagneticVector.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- errn = encode_v2gMagneticVectorType(stream, &v2gMagneticVectorListType->MagneticVector.array [v2gMagneticVectorListType_MagneticVector_currArrayIndex++]);
- }
- grammarID = 812;
- } else if (1==1) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- done = 1;
- }
- grammarID = 3;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 812:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MagneticVector), END_ELEMENT] */
- if (v2gMagneticVectorListType_MagneticVector_currArrayIndex < v2gMagneticVectorListType->MagneticVector.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- errn = encode_v2gMagneticVectorType(stream, &v2gMagneticVectorListType->MagneticVector.array [v2gMagneticVectorListType_MagneticVector_currArrayIndex++]);
- }
- grammarID = 813;
- } else if (1==1) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- done = 1;
- }
- grammarID = 3;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 813:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MagneticVector), END_ELEMENT] */
- if (v2gMagneticVectorListType_MagneticVector_currArrayIndex < v2gMagneticVectorListType->MagneticVector.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- errn = encode_v2gMagneticVectorType(stream, &v2gMagneticVectorListType->MagneticVector.array [v2gMagneticVectorListType_MagneticVector_currArrayIndex++]);
- }
- grammarID = 814;
- } else if (1==1) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- done = 1;
- }
- grammarID = 3;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 814:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MagneticVector), END_ELEMENT] */
- if (v2gMagneticVectorListType_MagneticVector_currArrayIndex < v2gMagneticVectorListType->MagneticVector.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- errn = encode_v2gMagneticVectorType(stream, &v2gMagneticVectorListType->MagneticVector.array [v2gMagneticVectorListType_MagneticVector_currArrayIndex++]);
- }
- grammarID = 815;
- } else if (1==1) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- done = 1;
- }
- grammarID = 3;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 815:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MagneticVector), END_ELEMENT] */
- if (v2gMagneticVectorListType_MagneticVector_currArrayIndex < v2gMagneticVectorListType->MagneticVector.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- errn = encode_v2gMagneticVectorType(stream, &v2gMagneticVectorListType->MagneticVector.array [v2gMagneticVectorListType_MagneticVector_currArrayIndex++]);
- }
- grammarID = 816;
- } else if (1==1) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- done = 1;
- }
- grammarID = 3;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 816:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MagneticVector), END_ELEMENT] */
- if (v2gMagneticVectorListType_MagneticVector_currArrayIndex < v2gMagneticVectorListType->MagneticVector.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- errn = encode_v2gMagneticVectorType(stream, &v2gMagneticVectorListType->MagneticVector.array [v2gMagneticVectorListType_MagneticVector_currArrayIndex++]);
- }
- grammarID = 817;
- } else if (1==1) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- done = 1;
- }
- grammarID = 3;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 817:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MagneticVector), END_ELEMENT] */
- if (v2gMagneticVectorListType_MagneticVector_currArrayIndex < v2gMagneticVectorListType->MagneticVector.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- errn = encode_v2gMagneticVectorType(stream, &v2gMagneticVectorListType->MagneticVector.array [v2gMagneticVectorListType_MagneticVector_currArrayIndex++]);
- }
- grammarID = 818;
- } else if (1==1) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- done = 1;
- }
- grammarID = 3;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 818:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MagneticVector), END_ELEMENT] */
- if (v2gMagneticVectorListType_MagneticVector_currArrayIndex < v2gMagneticVectorListType->MagneticVector.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- errn = encode_v2gMagneticVectorType(stream, &v2gMagneticVectorListType->MagneticVector.array [v2gMagneticVectorListType_MagneticVector_currArrayIndex++]);
- }
- grammarID = 819;
- } else if (1==1) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- done = 1;
- }
- grammarID = 3;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 819:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MagneticVector), END_ELEMENT] */
- if (v2gMagneticVectorListType_MagneticVector_currArrayIndex < v2gMagneticVectorListType->MagneticVector.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- errn = encode_v2gMagneticVectorType(stream, &v2gMagneticVectorListType->MagneticVector.array [v2gMagneticVectorListType_MagneticVector_currArrayIndex++]);
- }
- grammarID = 820;
- } else if (1==1) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- done = 1;
- }
- grammarID = 3;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 820:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MagneticVector), END_ELEMENT] */
- if (v2gMagneticVectorListType_MagneticVector_currArrayIndex < v2gMagneticVectorListType->MagneticVector.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- errn = encode_v2gMagneticVectorType(stream, &v2gMagneticVectorListType->MagneticVector.array [v2gMagneticVectorListType_MagneticVector_currArrayIndex++]);
- }
- grammarID = 821;
- } else if (1==1) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- done = 1;
- }
- grammarID = 3;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 821:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MagneticVector), END_ELEMENT] */
- if (v2gMagneticVectorListType_MagneticVector_currArrayIndex < v2gMagneticVectorListType->MagneticVector.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- errn = encode_v2gMagneticVectorType(stream, &v2gMagneticVectorListType->MagneticVector.array [v2gMagneticVectorListType_MagneticVector_currArrayIndex++]);
- }
- grammarID = 822;
- } else if (1==1) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- done = 1;
- }
- grammarID = 3;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 822:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MagneticVector), END_ELEMENT] */
- if (v2gMagneticVectorListType_MagneticVector_currArrayIndex < v2gMagneticVectorListType->MagneticVector.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- errn = encode_v2gMagneticVectorType(stream, &v2gMagneticVectorListType->MagneticVector.array [v2gMagneticVectorListType_MagneticVector_currArrayIndex++]);
- }
- grammarID = 823;
- } else if (1==1) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- done = 1;
- }
- grammarID = 3;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 823:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MagneticVector), END_ELEMENT] */
- if (v2gMagneticVectorListType_MagneticVector_currArrayIndex < v2gMagneticVectorListType->MagneticVector.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- errn = encode_v2gMagneticVectorType(stream, &v2gMagneticVectorListType->MagneticVector.array [v2gMagneticVectorListType_MagneticVector_currArrayIndex++]);
- }
- grammarID = 824;
- } else if (1==1) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- done = 1;
- }
- grammarID = 3;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 824:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MagneticVector), END_ELEMENT] */
- if (v2gMagneticVectorListType_MagneticVector_currArrayIndex < v2gMagneticVectorListType->MagneticVector.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- errn = encode_v2gMagneticVectorType(stream, &v2gMagneticVectorListType->MagneticVector.array [v2gMagneticVectorListType_MagneticVector_currArrayIndex++]);
- }
- grammarID = 825;
- } else if (1==1) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- done = 1;
- }
- grammarID = 3;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 825:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MagneticVector), END_ELEMENT] */
- if (v2gMagneticVectorListType_MagneticVector_currArrayIndex < v2gMagneticVectorListType->MagneticVector.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- errn = encode_v2gMagneticVectorType(stream, &v2gMagneticVectorListType->MagneticVector.array [v2gMagneticVectorListType_MagneticVector_currArrayIndex++]);
- }
- grammarID = 826;
- } else if (1==1) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- done = 1;
- }
- grammarID = 3;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 826:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MagneticVector), END_ELEMENT] */
- if (v2gMagneticVectorListType_MagneticVector_currArrayIndex < v2gMagneticVectorListType->MagneticVector.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- errn = encode_v2gMagneticVectorType(stream, &v2gMagneticVectorListType->MagneticVector.array [v2gMagneticVectorListType_MagneticVector_currArrayIndex++]);
- }
- grammarID = 827;
- } else if (1==1) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- done = 1;
- }
- grammarID = 3;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 827:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MagneticVector), END_ELEMENT] */
- if (v2gMagneticVectorListType_MagneticVector_currArrayIndex < v2gMagneticVectorListType->MagneticVector.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- errn = encode_v2gMagneticVectorType(stream, &v2gMagneticVectorListType->MagneticVector.array [v2gMagneticVectorListType_MagneticVector_currArrayIndex++]);
- }
- grammarID = 828;
- } else if (1==1) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- done = 1;
- }
- grammarID = 3;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 828:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MagneticVector), END_ELEMENT] */
- if (v2gMagneticVectorListType_MagneticVector_currArrayIndex < v2gMagneticVectorListType->MagneticVector.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- errn = encode_v2gMagneticVectorType(stream, &v2gMagneticVectorListType->MagneticVector.array [v2gMagneticVectorListType_MagneticVector_currArrayIndex++]);
- }
- grammarID = 829;
- } else if (1==1) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- done = 1;
- }
- grammarID = 3;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 829:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MagneticVector), END_ELEMENT] */
- if (v2gMagneticVectorListType_MagneticVector_currArrayIndex < v2gMagneticVectorListType->MagneticVector.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- errn = encode_v2gMagneticVectorType(stream, &v2gMagneticVectorListType->MagneticVector.array [v2gMagneticVectorListType_MagneticVector_currArrayIndex++]);
- }
- grammarID = 830;
- } else if (1==1) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- done = 1;
- }
- grammarID = 3;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 830:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MagneticVector), END_ELEMENT] */
- if (v2gMagneticVectorListType_MagneticVector_currArrayIndex < v2gMagneticVectorListType->MagneticVector.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- errn = encode_v2gMagneticVectorType(stream, &v2gMagneticVectorListType->MagneticVector.array [v2gMagneticVectorListType_MagneticVector_currArrayIndex++]);
- }
- grammarID = 831;
- } else if (1==1) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- done = 1;
- }
- grammarID = 3;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 831:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MagneticVector), END_ELEMENT] */
- if (v2gMagneticVectorListType_MagneticVector_currArrayIndex < v2gMagneticVectorListType->MagneticVector.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- errn = encode_v2gMagneticVectorType(stream, &v2gMagneticVectorListType->MagneticVector.array [v2gMagneticVectorListType_MagneticVector_currArrayIndex++]);
- }
- grammarID = 832;
- } else if (1==1) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- done = 1;
- }
- grammarID = 3;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 832:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MagneticVector), END_ELEMENT] */
- if (v2gMagneticVectorListType_MagneticVector_currArrayIndex < v2gMagneticVectorListType->MagneticVector.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- errn = encode_v2gMagneticVectorType(stream, &v2gMagneticVectorListType->MagneticVector.array [v2gMagneticVectorListType_MagneticVector_currArrayIndex++]);
- }
- grammarID = 833;
- } else if (1==1) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- done = 1;
- }
- grammarID = 3;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 833:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MagneticVector), END_ELEMENT] */
- if (v2gMagneticVectorListType_MagneticVector_currArrayIndex < v2gMagneticVectorListType->MagneticVector.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- errn = encode_v2gMagneticVectorType(stream, &v2gMagneticVectorListType->MagneticVector.array [v2gMagneticVectorListType_MagneticVector_currArrayIndex++]);
- }
- grammarID = 834;
- } else if (1==1) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- done = 1;
- }
- grammarID = 3;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 834:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MagneticVector), END_ELEMENT] */
- if (v2gMagneticVectorListType_MagneticVector_currArrayIndex < v2gMagneticVectorListType->MagneticVector.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- errn = encode_v2gMagneticVectorType(stream, &v2gMagneticVectorListType->MagneticVector.array [v2gMagneticVectorListType_MagneticVector_currArrayIndex++]);
- }
- grammarID = 835;
- } else if (1==1) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- done = 1;
- }
- grammarID = 3;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 835:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MagneticVector), END_ELEMENT] */
- if (v2gMagneticVectorListType_MagneticVector_currArrayIndex < v2gMagneticVectorListType->MagneticVector.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- errn = encode_v2gMagneticVectorType(stream, &v2gMagneticVectorListType->MagneticVector.array [v2gMagneticVectorListType_MagneticVector_currArrayIndex++]);
- }
- grammarID = 836;
- } else if (1==1) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- done = 1;
- }
- grammarID = 3;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 836:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MagneticVector), END_ELEMENT] */
- if (v2gMagneticVectorListType_MagneticVector_currArrayIndex < v2gMagneticVectorListType->MagneticVector.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- errn = encode_v2gMagneticVectorType(stream, &v2gMagneticVectorListType->MagneticVector.array [v2gMagneticVectorListType_MagneticVector_currArrayIndex++]);
- }
- grammarID = 837;
- } else if (1==1) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- done = 1;
- }
- grammarID = 3;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 837:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MagneticVector), END_ELEMENT] */
- if (v2gMagneticVectorListType_MagneticVector_currArrayIndex < v2gMagneticVectorListType->MagneticVector.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- errn = encode_v2gMagneticVectorType(stream, &v2gMagneticVectorListType->MagneticVector.array [v2gMagneticVectorListType_MagneticVector_currArrayIndex++]);
- }
- grammarID = 838;
- } else if (1==1) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- done = 1;
- }
- grammarID = 3;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 838:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MagneticVector), END_ELEMENT] */
- if (v2gMagneticVectorListType_MagneticVector_currArrayIndex < v2gMagneticVectorListType->MagneticVector.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- errn = encode_v2gMagneticVectorType(stream, &v2gMagneticVectorListType->MagneticVector.array [v2gMagneticVectorListType_MagneticVector_currArrayIndex++]);
- }
- grammarID = 839;
- } else if (1==1) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- done = 1;
- }
- grammarID = 3;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 839:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MagneticVector), END_ELEMENT] */
- if (v2gMagneticVectorListType_MagneticVector_currArrayIndex < v2gMagneticVectorListType->MagneticVector.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- errn = encode_v2gMagneticVectorType(stream, &v2gMagneticVectorListType->MagneticVector.array [v2gMagneticVectorListType_MagneticVector_currArrayIndex++]);
- }
- grammarID = 840;
- } else if (1==1) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- done = 1;
- }
- grammarID = 3;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 840:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MagneticVector), END_ELEMENT] */
- if (v2gMagneticVectorListType_MagneticVector_currArrayIndex < v2gMagneticVectorListType->MagneticVector.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- errn = encode_v2gMagneticVectorType(stream, &v2gMagneticVectorListType->MagneticVector.array [v2gMagneticVectorListType_MagneticVector_currArrayIndex++]);
- }
- grammarID = 841;
- } else if (1==1) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- done = 1;
- }
- grammarID = 3;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 841:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MagneticVector), END_ELEMENT] */
- if (v2gMagneticVectorListType_MagneticVector_currArrayIndex < v2gMagneticVectorListType->MagneticVector.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- errn = encode_v2gMagneticVectorType(stream, &v2gMagneticVectorListType->MagneticVector.array [v2gMagneticVectorListType_MagneticVector_currArrayIndex++]);
- }
- grammarID = 842;
- } else if (1==1) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- done = 1;
- }
- grammarID = 3;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 842:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MagneticVector), END_ELEMENT] */
- if (v2gMagneticVectorListType_MagneticVector_currArrayIndex < v2gMagneticVectorListType->MagneticVector.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- errn = encode_v2gMagneticVectorType(stream, &v2gMagneticVectorListType->MagneticVector.array [v2gMagneticVectorListType_MagneticVector_currArrayIndex++]);
- }
- grammarID = 843;
- } else if (1==1) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- done = 1;
- }
- grammarID = 3;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 843:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MagneticVector), END_ELEMENT] */
- if (v2gMagneticVectorListType_MagneticVector_currArrayIndex < v2gMagneticVectorListType->MagneticVector.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- errn = encode_v2gMagneticVectorType(stream, &v2gMagneticVectorListType->MagneticVector.array [v2gMagneticVectorListType_MagneticVector_currArrayIndex++]);
- }
- grammarID = 844;
- } else if (1==1) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- done = 1;
- }
- grammarID = 3;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 844:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MagneticVector), END_ELEMENT] */
- if (v2gMagneticVectorListType_MagneticVector_currArrayIndex < v2gMagneticVectorListType->MagneticVector.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- errn = encode_v2gMagneticVectorType(stream, &v2gMagneticVectorListType->MagneticVector.array [v2gMagneticVectorListType_MagneticVector_currArrayIndex++]);
- }
- grammarID = 845;
- } else if (1==1) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- done = 1;
- }
- grammarID = 3;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 845:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MagneticVector), END_ELEMENT] */
- if (v2gMagneticVectorListType_MagneticVector_currArrayIndex < v2gMagneticVectorListType->MagneticVector.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- errn = encode_v2gMagneticVectorType(stream, &v2gMagneticVectorListType->MagneticVector.array [v2gMagneticVectorListType_MagneticVector_currArrayIndex++]);
- }
- grammarID = 846;
- } else if (1==1) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- done = 1;
- }
- grammarID = 3;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 846:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MagneticVector), END_ELEMENT] */
- if (v2gMagneticVectorListType_MagneticVector_currArrayIndex < v2gMagneticVectorListType->MagneticVector.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- errn = encode_v2gMagneticVectorType(stream, &v2gMagneticVectorListType->MagneticVector.array [v2gMagneticVectorListType_MagneticVector_currArrayIndex++]);
- }
- grammarID = 847;
- } else if (1==1) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- done = 1;
- }
- grammarID = 3;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 847:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MagneticVector), END_ELEMENT] */
- if (v2gMagneticVectorListType_MagneticVector_currArrayIndex < v2gMagneticVectorListType->MagneticVector.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- errn = encode_v2gMagneticVectorType(stream, &v2gMagneticVectorListType->MagneticVector.array [v2gMagneticVectorListType_MagneticVector_currArrayIndex++]);
- }
- grammarID = 848;
- } else if (1==1) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- done = 1;
- }
- grammarID = 3;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 848:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MagneticVector), END_ELEMENT] */
- if (v2gMagneticVectorListType_MagneticVector_currArrayIndex < v2gMagneticVectorListType->MagneticVector.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- errn = encode_v2gMagneticVectorType(stream, &v2gMagneticVectorListType->MagneticVector.array [v2gMagneticVectorListType_MagneticVector_currArrayIndex++]);
- }
- grammarID = 849;
- } else if (1==1) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- done = 1;
- }
- grammarID = 3;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 849:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MagneticVector), END_ELEMENT] */
- if (v2gMagneticVectorListType_MagneticVector_currArrayIndex < v2gMagneticVectorListType->MagneticVector.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- errn = encode_v2gMagneticVectorType(stream, &v2gMagneticVectorListType->MagneticVector.array [v2gMagneticVectorListType_MagneticVector_currArrayIndex++]);
- }
- grammarID = 850;
- } else if (1==1) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- done = 1;
- }
- grammarID = 3;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 850:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MagneticVector), END_ELEMENT] */
- if (v2gMagneticVectorListType_MagneticVector_currArrayIndex < v2gMagneticVectorListType->MagneticVector.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- errn = encode_v2gMagneticVectorType(stream, &v2gMagneticVectorListType->MagneticVector.array [v2gMagneticVectorListType_MagneticVector_currArrayIndex++]);
- }
- grammarID = 851;
- } else if (1==1) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- done = 1;
- }
- grammarID = 3;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 851:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MagneticVector), END_ELEMENT] */
- if (v2gMagneticVectorListType_MagneticVector_currArrayIndex < v2gMagneticVectorListType->MagneticVector.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- errn = encode_v2gMagneticVectorType(stream, &v2gMagneticVectorListType->MagneticVector.array [v2gMagneticVectorListType_MagneticVector_currArrayIndex++]);
- }
- grammarID = 852;
- } else if (1==1) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- done = 1;
- }
- grammarID = 3;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 852:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MagneticVector), END_ELEMENT] */
- if (v2gMagneticVectorListType_MagneticVector_currArrayIndex < v2gMagneticVectorListType->MagneticVector.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- errn = encode_v2gMagneticVectorType(stream, &v2gMagneticVectorListType->MagneticVector.array [v2gMagneticVectorListType_MagneticVector_currArrayIndex++]);
- }
- grammarID = 853;
- } else if (1==1) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- done = 1;
- }
- grammarID = 3;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 853:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MagneticVector), END_ELEMENT] */
- if (v2gMagneticVectorListType_MagneticVector_currArrayIndex < v2gMagneticVectorListType->MagneticVector.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- errn = encode_v2gMagneticVectorType(stream, &v2gMagneticVectorListType->MagneticVector.array [v2gMagneticVectorListType_MagneticVector_currArrayIndex++]);
- }
- grammarID = 854;
- } else if (1==1) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- done = 1;
- }
- grammarID = 3;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 854:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MagneticVector), END_ELEMENT] */
- if (v2gMagneticVectorListType_MagneticVector_currArrayIndex < v2gMagneticVectorListType->MagneticVector.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- errn = encode_v2gMagneticVectorType(stream, &v2gMagneticVectorListType->MagneticVector.array [v2gMagneticVectorListType_MagneticVector_currArrayIndex++]);
- }
- grammarID = 855;
- } else if (1==1) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- done = 1;
- }
- grammarID = 3;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 855:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MagneticVector), END_ELEMENT] */
- if (v2gMagneticVectorListType_MagneticVector_currArrayIndex < v2gMagneticVectorListType->MagneticVector.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- errn = encode_v2gMagneticVectorType(stream, &v2gMagneticVectorListType->MagneticVector.array [v2gMagneticVectorListType_MagneticVector_currArrayIndex++]);
- }
- grammarID = 856;
- } else if (1==1) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- done = 1;
- }
- grammarID = 3;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 856:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MagneticVector), END_ELEMENT] */
- if (v2gMagneticVectorListType_MagneticVector_currArrayIndex < v2gMagneticVectorListType->MagneticVector.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- errn = encode_v2gMagneticVectorType(stream, &v2gMagneticVectorListType->MagneticVector.array [v2gMagneticVectorListType_MagneticVector_currArrayIndex++]);
- }
- grammarID = 857;
- } else if (1==1) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- done = 1;
- }
- grammarID = 3;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 857:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MagneticVector), END_ELEMENT] */
- if (v2gMagneticVectorListType_MagneticVector_currArrayIndex < v2gMagneticVectorListType->MagneticVector.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- errn = encode_v2gMagneticVectorType(stream, &v2gMagneticVectorListType->MagneticVector.array [v2gMagneticVectorListType_MagneticVector_currArrayIndex++]);
- }
- grammarID = 858;
- } else if (1==1) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- done = 1;
- }
- grammarID = 3;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 858:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MagneticVector), END_ELEMENT] */
- if (v2gMagneticVectorListType_MagneticVector_currArrayIndex < v2gMagneticVectorListType->MagneticVector.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- errn = encode_v2gMagneticVectorType(stream, &v2gMagneticVectorListType->MagneticVector.array [v2gMagneticVectorListType_MagneticVector_currArrayIndex++]);
- }
- grammarID = 859;
- } else if (1==1) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- done = 1;
- }
- grammarID = 3;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 859:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MagneticVector), END_ELEMENT] */
- if (v2gMagneticVectorListType_MagneticVector_currArrayIndex < v2gMagneticVectorListType->MagneticVector.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- errn = encode_v2gMagneticVectorType(stream, &v2gMagneticVectorListType->MagneticVector.array [v2gMagneticVectorListType_MagneticVector_currArrayIndex++]);
- }
- grammarID = 860;
- } else if (1==1) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- done = 1;
- }
- grammarID = 3;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 860:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MagneticVector), END_ELEMENT] */
- if (v2gMagneticVectorListType_MagneticVector_currArrayIndex < v2gMagneticVectorListType->MagneticVector.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- errn = encode_v2gMagneticVectorType(stream, &v2gMagneticVectorListType->MagneticVector.array [v2gMagneticVectorListType_MagneticVector_currArrayIndex++]);
- }
- grammarID = 861;
- } else if (1==1) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- done = 1;
- }
- grammarID = 3;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 861:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MagneticVector), END_ELEMENT] */
- if (v2gMagneticVectorListType_MagneticVector_currArrayIndex < v2gMagneticVectorListType->MagneticVector.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- errn = encode_v2gMagneticVectorType(stream, &v2gMagneticVectorListType->MagneticVector.array [v2gMagneticVectorListType_MagneticVector_currArrayIndex++]);
- }
- grammarID = 862;
- } else if (1==1) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- done = 1;
- }
- grammarID = 3;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 862:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MagneticVector), END_ELEMENT] */
- if (v2gMagneticVectorListType_MagneticVector_currArrayIndex < v2gMagneticVectorListType->MagneticVector.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- errn = encode_v2gMagneticVectorType(stream, &v2gMagneticVectorListType->MagneticVector.array [v2gMagneticVectorListType_MagneticVector_currArrayIndex++]);
- }
- grammarID = 863;
- } else if (1==1) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- done = 1;
- }
- grammarID = 3;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 863:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MagneticVector), END_ELEMENT] */
- if (v2gMagneticVectorListType_MagneticVector_currArrayIndex < v2gMagneticVectorListType->MagneticVector.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- errn = encode_v2gMagneticVectorType(stream, &v2gMagneticVectorListType->MagneticVector.array [v2gMagneticVectorListType_MagneticVector_currArrayIndex++]);
- }
- grammarID = 864;
- } else if (1==1) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- done = 1;
- }
- grammarID = 3;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 864:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MagneticVector), END_ELEMENT] */
- if (v2gMagneticVectorListType_MagneticVector_currArrayIndex < v2gMagneticVectorListType->MagneticVector.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- errn = encode_v2gMagneticVectorType(stream, &v2gMagneticVectorListType->MagneticVector.array [v2gMagneticVectorListType_MagneticVector_currArrayIndex++]);
- }
- grammarID = 865;
- } else if (1==1) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- done = 1;
- }
- grammarID = 3;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 865:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MagneticVector), END_ELEMENT] */
- if (v2gMagneticVectorListType_MagneticVector_currArrayIndex < v2gMagneticVectorListType->MagneticVector.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- errn = encode_v2gMagneticVectorType(stream, &v2gMagneticVectorListType->MagneticVector.array [v2gMagneticVectorListType_MagneticVector_currArrayIndex++]);
- }
- grammarID = 866;
- } else if (1==1) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- done = 1;
- }
- grammarID = 3;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 866:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MagneticVector), END_ELEMENT] */
- if (v2gMagneticVectorListType_MagneticVector_currArrayIndex < v2gMagneticVectorListType->MagneticVector.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- errn = encode_v2gMagneticVectorType(stream, &v2gMagneticVectorListType->MagneticVector.array [v2gMagneticVectorListType_MagneticVector_currArrayIndex++]);
- }
- grammarID = 867;
- } else if (1==1) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- done = 1;
- }
- grammarID = 3;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 867:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MagneticVector), END_ELEMENT] */
- if (v2gMagneticVectorListType_MagneticVector_currArrayIndex < v2gMagneticVectorListType->MagneticVector.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- errn = encode_v2gMagneticVectorType(stream, &v2gMagneticVectorListType->MagneticVector.array [v2gMagneticVectorListType_MagneticVector_currArrayIndex++]);
- }
- grammarID = 868;
- } else if (1==1) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- done = 1;
- }
- grammarID = 3;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 868:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MagneticVector), END_ELEMENT] */
- if (v2gMagneticVectorListType_MagneticVector_currArrayIndex < v2gMagneticVectorListType->MagneticVector.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- errn = encode_v2gMagneticVectorType(stream, &v2gMagneticVectorListType->MagneticVector.array [v2gMagneticVectorListType_MagneticVector_currArrayIndex++]);
- }
- grammarID = 869;
- } else if (1==1) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- done = 1;
- }
- grammarID = 3;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 869:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MagneticVector), END_ELEMENT] */
- if (v2gMagneticVectorListType_MagneticVector_currArrayIndex < v2gMagneticVectorListType->MagneticVector.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- errn = encode_v2gMagneticVectorType(stream, &v2gMagneticVectorListType->MagneticVector.array [v2gMagneticVectorListType_MagneticVector_currArrayIndex++]);
- }
- grammarID = 870;
- } else if (1==1) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- done = 1;
- }
- grammarID = 3;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 870:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MagneticVector), END_ELEMENT] */
- if (v2gMagneticVectorListType_MagneticVector_currArrayIndex < v2gMagneticVectorListType->MagneticVector.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- errn = encode_v2gMagneticVectorType(stream, &v2gMagneticVectorListType->MagneticVector.array [v2gMagneticVectorListType_MagneticVector_currArrayIndex++]);
- }
- grammarID = 871;
- } else if (1==1) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- done = 1;
- }
- grammarID = 3;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 871:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MagneticVector), END_ELEMENT] */
- if (v2gMagneticVectorListType_MagneticVector_currArrayIndex < v2gMagneticVectorListType->MagneticVector.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- errn = encode_v2gMagneticVectorType(stream, &v2gMagneticVectorListType->MagneticVector.array [v2gMagneticVectorListType_MagneticVector_currArrayIndex++]);
- }
- grammarID = 872;
- } else if (1==1) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- done = 1;
- }
- grammarID = 3;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 872:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MagneticVector), END_ELEMENT] */
- if (v2gMagneticVectorListType_MagneticVector_currArrayIndex < v2gMagneticVectorListType->MagneticVector.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- errn = encode_v2gMagneticVectorType(stream, &v2gMagneticVectorListType->MagneticVector.array [v2gMagneticVectorListType_MagneticVector_currArrayIndex++]);
- }
- grammarID = 873;
- } else if (1==1) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- done = 1;
- }
- grammarID = 3;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 873:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MagneticVector), END_ELEMENT] */
- if (v2gMagneticVectorListType_MagneticVector_currArrayIndex < v2gMagneticVectorListType->MagneticVector.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- errn = encode_v2gMagneticVectorType(stream, &v2gMagneticVectorListType->MagneticVector.array [v2gMagneticVectorListType_MagneticVector_currArrayIndex++]);
- }
- grammarID = 874;
- } else if (1==1) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- done = 1;
- }
- grammarID = 3;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 874:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MagneticVector), END_ELEMENT] */
- if (v2gMagneticVectorListType_MagneticVector_currArrayIndex < v2gMagneticVectorListType->MagneticVector.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- errn = encode_v2gMagneticVectorType(stream, &v2gMagneticVectorListType->MagneticVector.array [v2gMagneticVectorListType_MagneticVector_currArrayIndex++]);
- }
- grammarID = 875;
- } else if (1==1) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- done = 1;
- }
- grammarID = 3;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 875:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MagneticVector), END_ELEMENT] */
- if (v2gMagneticVectorListType_MagneticVector_currArrayIndex < v2gMagneticVectorListType->MagneticVector.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- errn = encode_v2gMagneticVectorType(stream, &v2gMagneticVectorListType->MagneticVector.array [v2gMagneticVectorListType_MagneticVector_currArrayIndex++]);
- }
- grammarID = 876;
- } else if (1==1) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- done = 1;
- }
- grammarID = 3;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 876:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MagneticVector), END_ELEMENT] */
- if (v2gMagneticVectorListType_MagneticVector_currArrayIndex < v2gMagneticVectorListType->MagneticVector.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- errn = encode_v2gMagneticVectorType(stream, &v2gMagneticVectorListType->MagneticVector.array [v2gMagneticVectorListType_MagneticVector_currArrayIndex++]);
- }
- grammarID = 877;
- } else if (1==1) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- done = 1;
- }
- grammarID = 3;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 877:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MagneticVector), END_ELEMENT] */
- if (v2gMagneticVectorListType_MagneticVector_currArrayIndex < v2gMagneticVectorListType->MagneticVector.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- errn = encode_v2gMagneticVectorType(stream, &v2gMagneticVectorListType->MagneticVector.array [v2gMagneticVectorListType_MagneticVector_currArrayIndex++]);
- }
- grammarID = 878;
- } else if (1==1) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- done = 1;
- }
- grammarID = 3;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 878:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MagneticVector), END_ELEMENT] */
- if (v2gMagneticVectorListType_MagneticVector_currArrayIndex < v2gMagneticVectorListType->MagneticVector.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- errn = encode_v2gMagneticVectorType(stream, &v2gMagneticVectorListType->MagneticVector.array [v2gMagneticVectorListType_MagneticVector_currArrayIndex++]);
- }
- grammarID = 879;
- } else if (1==1) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- done = 1;
- }
- grammarID = 3;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 879:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MagneticVector), END_ELEMENT] */
- if (v2gMagneticVectorListType_MagneticVector_currArrayIndex < v2gMagneticVectorListType->MagneticVector.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- errn = encode_v2gMagneticVectorType(stream, &v2gMagneticVectorListType->MagneticVector.array [v2gMagneticVectorListType_MagneticVector_currArrayIndex++]);
- }
- grammarID = 880;
- } else if (1==1) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- done = 1;
- }
- grammarID = 3;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 880:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MagneticVector), END_ELEMENT] */
- if (v2gMagneticVectorListType_MagneticVector_currArrayIndex < v2gMagneticVectorListType->MagneticVector.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- errn = encode_v2gMagneticVectorType(stream, &v2gMagneticVectorListType->MagneticVector.array [v2gMagneticVectorListType_MagneticVector_currArrayIndex++]);
- }
- grammarID = 881;
- } else if (1==1) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- done = 1;
- }
- grammarID = 3;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 881:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MagneticVector), END_ELEMENT] */
- if (v2gMagneticVectorListType_MagneticVector_currArrayIndex < v2gMagneticVectorListType->MagneticVector.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- errn = encode_v2gMagneticVectorType(stream, &v2gMagneticVectorListType->MagneticVector.array [v2gMagneticVectorListType_MagneticVector_currArrayIndex++]);
- }
- grammarID = 882;
- } else if (1==1) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- done = 1;
- }
- grammarID = 3;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 882:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MagneticVector), END_ELEMENT] */
- if (v2gMagneticVectorListType_MagneticVector_currArrayIndex < v2gMagneticVectorListType->MagneticVector.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- errn = encode_v2gMagneticVectorType(stream, &v2gMagneticVectorListType->MagneticVector.array [v2gMagneticVectorListType_MagneticVector_currArrayIndex++]);
- }
- grammarID = 883;
- } else if (1==1) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- done = 1;
- }
- grammarID = 3;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 883:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MagneticVector), END_ELEMENT] */
- if (v2gMagneticVectorListType_MagneticVector_currArrayIndex < v2gMagneticVectorListType->MagneticVector.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- errn = encode_v2gMagneticVectorType(stream, &v2gMagneticVectorListType->MagneticVector.array [v2gMagneticVectorListType_MagneticVector_currArrayIndex++]);
- }
- grammarID = 884;
- } else if (1==1) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- done = 1;
- }
- grammarID = 3;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 884:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MagneticVector), END_ELEMENT] */
- if (v2gMagneticVectorListType_MagneticVector_currArrayIndex < v2gMagneticVectorListType->MagneticVector.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- errn = encode_v2gMagneticVectorType(stream, &v2gMagneticVectorListType->MagneticVector.array [v2gMagneticVectorListType_MagneticVector_currArrayIndex++]);
- }
- grammarID = 885;
- } else if (1==1) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- done = 1;
- }
- grammarID = 3;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 885:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MagneticVector), END_ELEMENT] */
- if (v2gMagneticVectorListType_MagneticVector_currArrayIndex < v2gMagneticVectorListType->MagneticVector.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- errn = encode_v2gMagneticVectorType(stream, &v2gMagneticVectorListType->MagneticVector.array [v2gMagneticVectorListType_MagneticVector_currArrayIndex++]);
- }
- 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:2016:MsgBody,AlignmentCheckReqType', base type name='BodyBaseType', content type='ELEMENT', isAbstract='false', hasTypeId='false', final='0', block='0', particle='("urn:iso:15118:2:2016:MsgBody":EVProcessing,"urn:iso:15118:2:2016:MsgBody":AlignmentCheckParameters{0-1})', derivedBy='EXTENSION'. */
-static int encode_v2gAlignmentCheckReqType(bitstream_t* stream, struct v2gAlignmentCheckReqType* v2gAlignmentCheckReqType) {
- int grammarID = 886;
- int done = 0;
-
-
- while(!done) {
- switch(grammarID) {
- case 886:
- /* FirstStartTag[START_ELEMENT({urn:iso:15118:2:2016:MsgBody}EVProcessing)] */
- 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, v2gAlignmentCheckReqType->EVProcessing);
- /* valid EE */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- }
- }
- grammarID = 8;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
case 8:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgBody}AlignmentCheckParameters), END_ELEMENT] */
- if ( v2gAlignmentCheckReqType->AlignmentCheckParameters_isUsed == 1u ) {
+ /* FirstStartTag[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}FrequencyChannel), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MagneticVectorSetupList), END_ELEMENT] */
+ if ( iso2MV_EVSEFinePositioningSetupParametersType->FrequencyChannel_isUsed == 1u ) {
errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- errn = encode_v2gParameterSetType(stream, &v2gAlignmentCheckReqType->AlignmentCheckParameters );
- }
- 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:2016:MsgBody,EVSEErrorInformationType', base type name='BodyBaseType', content type='ELEMENT', isAbstract='false', hasTypeId='false', final='0', block='0', particle='("urn:iso:15118:2:2016:MsgBody":ErrorCode)', derivedBy='EXTENSION'. */
-static int encode_v2gEVSEErrorInformationType(bitstream_t* stream, struct v2gEVSEErrorInformationType* v2gEVSEErrorInformationType) {
- int grammarID = 887;
- int done = 0;
-
-
- while(!done) {
- switch(grammarID) {
- case 887:
- /* FirstStartTag[START_ELEMENT({urn:iso:15118:2:2016:MsgBody}ErrorCode)] */
- 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, 3, v2gEVSEErrorInformationType->ErrorCode);
- /* valid EE */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- }
- }
- grammarID = 2;
- } 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:2016:MsgDataTypes,WPT_EVSEChargeParameterType', base type name='EVSEEnergyTransferParameterType', content type='ELEMENT', isAbstract='false', hasTypeId='false', final='0', block='0', particle='("urn:iso:15118:2:2016:MsgDataTypes":EVSEMaximumPower,"urn:iso:15118:2:2016:MsgDataTypes":EVSEMinimumPower)', derivedBy='EXTENSION'. */
-static int encode_v2gWPT_EVSEChargeParameterType(bitstream_t* stream, struct v2gWPT_EVSEChargeParameterType* v2gWPT_EVSEChargeParameterType) {
- int grammarID = 888;
- int done = 0;
-
-
- while(!done) {
- switch(grammarID) {
- case 888:
- /* FirstStartTag[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}EVSEMaximumPower)] */
- if ( 1 == 1 ) {
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- if(errn == 0) {
- errn = encode_v2gPhysicalValueType(stream, &v2gWPT_EVSEChargeParameterType->EVSEMaximumPower );
- }
- grammarID = 889;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 889:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}EVSEMinimumPower)] */
- if ( 1 == 1 ) {
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- if(errn == 0) {
- errn = encode_v2gPhysicalValueType(stream, &v2gWPT_EVSEChargeParameterType->EVSEMinimumPower );
- }
- grammarID = 2;
- } 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:2016:MsgDataTypes,DisplayParametersType', base type name='anyType', content type='ELEMENT', isAbstract='false', hasTypeId='false', final='0', block='0', particle='("urn:iso:15118:2:2016:MsgDataTypes":CurrentRange{0-1},"urn:iso:15118:2:2016:MsgDataTypes":CurrentSOC{0-1},"urn:iso:15118:2:2016:MsgDataTypes":TargetSOC{0-1},"urn:iso:15118:2:2016:MsgDataTypes":BulkSOC{0-1},"urn:iso:15118:2:2016:MsgDataTypes":MinimumSOC{0-1},"urn:iso:15118:2:2016:MsgDataTypes":ChargingPerformance{0-1},"urn:iso:15118:2:2016:MsgDataTypes":RemainingTimeToTargetSOC{0-1},"urn:iso:15118:2:2016:MsgDataTypes":RemainingTimeToBulkSOC{0-1},"urn:iso:15118:2:2016:MsgDataTypes":RemainingTimeToMinimumSOC{0-1},"urn:iso:15118:2:2016:MsgDataTypes":ChargingComplete{0-1},"urn:iso:15118:2:2016:MsgDataTypes":BulkChargingComplete{0-1},"urn:iso:15118:2:2016:MsgDataTypes":InletHot{0-1})', derivedBy='RESTRICTION'. */
-static int encode_v2gDisplayParametersType(bitstream_t* stream, struct v2gDisplayParametersType* v2gDisplayParametersType) {
- int grammarID = 890;
- int done = 0;
-
-
- while(!done) {
- switch(grammarID) {
- case 890:
- /* FirstStartTag[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}CurrentRange), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}CurrentSOC), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}TargetSOC), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}BulkSOC), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MinimumSOC), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}ChargingPerformance), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}RemainingTimeToTargetSOC), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}RemainingTimeToBulkSOC), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}RemainingTimeToMinimumSOC), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}ChargingComplete), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}BulkChargingComplete), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}InletHot), END_ELEMENT] */
- if ( v2gDisplayParametersType->CurrentRange_isUsed == 1u ) {
- errn = encodeNBitUnsignedInteger(stream, 4, 0);
if(errn == 0) {
/* First(xsi:type)StartTag[CHARACTERS[UNSIGNED_INTEGER]] */
errn = encodeNBitUnsignedInteger(stream, 1, 0);
if(errn == 0) {
- errn = encodeUnsignedInteger16(stream, v2gDisplayParametersType->CurrentRange);
+ errn = encodeUnsignedInteger32(stream, iso2MV_EVSEFinePositioningSetupParametersType->FrequencyChannel);
/* valid EE */
errn = encodeNBitUnsignedInteger(stream, 1, 0);
}
}
- grammarID = 891;
- } else if ( v2gDisplayParametersType->CurrentSOC_isUsed == 1u ) {
- errn = encodeNBitUnsignedInteger(stream, 4, 1);
- if(errn == 0) {
- /* FirstStartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- if(errn == 0) {
- errn = encodeNBitUnsignedInteger(stream, 7, (uint32_t)(v2gDisplayParametersType->CurrentSOC - 0));
- /* valid EE */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- }
- }
- grammarID = 892;
- } else if ( v2gDisplayParametersType->TargetSOC_isUsed == 1u ) {
- errn = encodeNBitUnsignedInteger(stream, 4, 2);
- if(errn == 0) {
- /* FirstStartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- if(errn == 0) {
- errn = encodeNBitUnsignedInteger(stream, 7, (uint32_t)(v2gDisplayParametersType->TargetSOC - 0));
- /* valid EE */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- }
- }
- grammarID = 893;
- } else if ( v2gDisplayParametersType->BulkSOC_isUsed == 1u ) {
- errn = encodeNBitUnsignedInteger(stream, 4, 3);
- if(errn == 0) {
- /* FirstStartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- if(errn == 0) {
- errn = encodeNBitUnsignedInteger(stream, 7, (uint32_t)(v2gDisplayParametersType->BulkSOC - 0));
- /* valid EE */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- }
- }
- grammarID = 894;
- } else if ( v2gDisplayParametersType->MinimumSOC_isUsed == 1u ) {
- errn = encodeNBitUnsignedInteger(stream, 4, 4);
- if(errn == 0) {
- /* FirstStartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- if(errn == 0) {
- errn = encodeNBitUnsignedInteger(stream, 7, (uint32_t)(v2gDisplayParametersType->MinimumSOC - 0));
- /* valid EE */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- }
- }
- grammarID = 895;
- } else if ( v2gDisplayParametersType->ChargingPerformance_isUsed == 1u ) {
- errn = encodeNBitUnsignedInteger(stream, 4, 5);
- if(errn == 0) {
- errn = encode_v2gPhysicalValueType(stream, &v2gDisplayParametersType->ChargingPerformance );
- }
- grammarID = 896;
- } else if ( v2gDisplayParametersType->RemainingTimeToTargetSOC_isUsed == 1u ) {
- errn = encodeNBitUnsignedInteger(stream, 4, 6);
- if(errn == 0) {
- /* FirstStartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- if(errn == 0) {
- errn = encodeNBitUnsignedInteger(stream, 7, (uint32_t)(v2gDisplayParametersType->RemainingTimeToTargetSOC - 0));
- /* valid EE */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- }
- }
- grammarID = 897;
- } else if ( v2gDisplayParametersType->RemainingTimeToBulkSOC_isUsed == 1u ) {
- errn = encodeNBitUnsignedInteger(stream, 4, 7);
- if(errn == 0) {
- /* FirstStartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- if(errn == 0) {
- errn = encodeNBitUnsignedInteger(stream, 7, (uint32_t)(v2gDisplayParametersType->RemainingTimeToBulkSOC - 0));
- /* valid EE */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- }
- }
- grammarID = 898;
- } else if ( v2gDisplayParametersType->RemainingTimeToMinimumSOC_isUsed == 1u ) {
- errn = encodeNBitUnsignedInteger(stream, 4, 8);
- if(errn == 0) {
- /* FirstStartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- if(errn == 0) {
- errn = encodeNBitUnsignedInteger(stream, 7, (uint32_t)(v2gDisplayParametersType->RemainingTimeToMinimumSOC - 0));
- /* valid EE */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- }
- }
- grammarID = 899;
- } else if ( v2gDisplayParametersType->ChargingComplete_isUsed == 1u ) {
- errn = encodeNBitUnsignedInteger(stream, 4, 9);
- if(errn == 0) {
- /* FirstStartTag[CHARACTERS[BOOLEAN]] */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- if(errn == 0) {
- errn = encodeBoolean(stream, v2gDisplayParametersType->ChargingComplete);
- /* valid EE */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- }
- }
- grammarID = 900;
- } else if ( v2gDisplayParametersType->BulkChargingComplete_isUsed == 1u ) {
- errn = encodeNBitUnsignedInteger(stream, 4, 10);
- if(errn == 0) {
- /* FirstStartTag[CHARACTERS[BOOLEAN]] */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- if(errn == 0) {
- errn = encodeBoolean(stream, v2gDisplayParametersType->BulkChargingComplete);
- /* valid EE */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- }
- }
- grammarID = 901;
- } else if ( v2gDisplayParametersType->InletHot_isUsed == 1u ) {
- errn = encodeNBitUnsignedInteger(stream, 4, 11);
- if(errn == 0) {
- /* FirstStartTag[CHARACTERS[BOOLEAN]] */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- if(errn == 0) {
- errn = encodeBoolean(stream, v2gDisplayParametersType->InletHot);
- /* valid EE */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- }
- }
- grammarID = 2;
- } else if (1==1) {
- errn = encodeNBitUnsignedInteger(stream, 4, 12);
- if(errn == 0) {
- done = 1;
- }
- grammarID = 3;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 891:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}CurrentSOC), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}TargetSOC), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}BulkSOC), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MinimumSOC), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}ChargingPerformance), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}RemainingTimeToTargetSOC), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}RemainingTimeToBulkSOC), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}RemainingTimeToMinimumSOC), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}ChargingComplete), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}BulkChargingComplete), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}InletHot), END_ELEMENT] */
- if ( v2gDisplayParametersType->CurrentSOC_isUsed == 1u ) {
- errn = encodeNBitUnsignedInteger(stream, 4, 0);
- if(errn == 0) {
- /* FirstStartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- if(errn == 0) {
- errn = encodeNBitUnsignedInteger(stream, 7, (uint32_t)(v2gDisplayParametersType->CurrentSOC - 0));
- /* valid EE */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- }
- }
- grammarID = 892;
- } else if ( v2gDisplayParametersType->TargetSOC_isUsed == 1u ) {
- errn = encodeNBitUnsignedInteger(stream, 4, 1);
- if(errn == 0) {
- /* FirstStartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- if(errn == 0) {
- errn = encodeNBitUnsignedInteger(stream, 7, (uint32_t)(v2gDisplayParametersType->TargetSOC - 0));
- /* valid EE */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- }
- }
- grammarID = 893;
- } else if ( v2gDisplayParametersType->BulkSOC_isUsed == 1u ) {
- errn = encodeNBitUnsignedInteger(stream, 4, 2);
- if(errn == 0) {
- /* FirstStartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- if(errn == 0) {
- errn = encodeNBitUnsignedInteger(stream, 7, (uint32_t)(v2gDisplayParametersType->BulkSOC - 0));
- /* valid EE */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- }
- }
- grammarID = 894;
- } else if ( v2gDisplayParametersType->MinimumSOC_isUsed == 1u ) {
- errn = encodeNBitUnsignedInteger(stream, 4, 3);
- if(errn == 0) {
- /* FirstStartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- if(errn == 0) {
- errn = encodeNBitUnsignedInteger(stream, 7, (uint32_t)(v2gDisplayParametersType->MinimumSOC - 0));
- /* valid EE */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- }
- }
- grammarID = 895;
- } else if ( v2gDisplayParametersType->ChargingPerformance_isUsed == 1u ) {
- errn = encodeNBitUnsignedInteger(stream, 4, 4);
- if(errn == 0) {
- errn = encode_v2gPhysicalValueType(stream, &v2gDisplayParametersType->ChargingPerformance );
- }
- grammarID = 896;
- } else if ( v2gDisplayParametersType->RemainingTimeToTargetSOC_isUsed == 1u ) {
- errn = encodeNBitUnsignedInteger(stream, 4, 5);
- if(errn == 0) {
- /* FirstStartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- if(errn == 0) {
- errn = encodeNBitUnsignedInteger(stream, 7, (uint32_t)(v2gDisplayParametersType->RemainingTimeToTargetSOC - 0));
- /* valid EE */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- }
- }
- grammarID = 897;
- } else if ( v2gDisplayParametersType->RemainingTimeToBulkSOC_isUsed == 1u ) {
- errn = encodeNBitUnsignedInteger(stream, 4, 6);
- if(errn == 0) {
- /* FirstStartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- if(errn == 0) {
- errn = encodeNBitUnsignedInteger(stream, 7, (uint32_t)(v2gDisplayParametersType->RemainingTimeToBulkSOC - 0));
- /* valid EE */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- }
- }
- grammarID = 898;
- } else if ( v2gDisplayParametersType->RemainingTimeToMinimumSOC_isUsed == 1u ) {
- errn = encodeNBitUnsignedInteger(stream, 4, 7);
- if(errn == 0) {
- /* FirstStartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- if(errn == 0) {
- errn = encodeNBitUnsignedInteger(stream, 7, (uint32_t)(v2gDisplayParametersType->RemainingTimeToMinimumSOC - 0));
- /* valid EE */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- }
- }
- grammarID = 899;
- } else if ( v2gDisplayParametersType->ChargingComplete_isUsed == 1u ) {
- errn = encodeNBitUnsignedInteger(stream, 4, 8);
- if(errn == 0) {
- /* FirstStartTag[CHARACTERS[BOOLEAN]] */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- if(errn == 0) {
- errn = encodeBoolean(stream, v2gDisplayParametersType->ChargingComplete);
- /* valid EE */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- }
- }
- grammarID = 900;
- } else if ( v2gDisplayParametersType->BulkChargingComplete_isUsed == 1u ) {
- errn = encodeNBitUnsignedInteger(stream, 4, 9);
- if(errn == 0) {
- /* FirstStartTag[CHARACTERS[BOOLEAN]] */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- if(errn == 0) {
- errn = encodeBoolean(stream, v2gDisplayParametersType->BulkChargingComplete);
- /* valid EE */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- }
- }
- grammarID = 901;
- } else if ( v2gDisplayParametersType->InletHot_isUsed == 1u ) {
- errn = encodeNBitUnsignedInteger(stream, 4, 10);
- if(errn == 0) {
- /* FirstStartTag[CHARACTERS[BOOLEAN]] */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- if(errn == 0) {
- errn = encodeBoolean(stream, v2gDisplayParametersType->InletHot);
- /* valid EE */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- }
- }
- grammarID = 2;
- } else if (1==1) {
- errn = encodeNBitUnsignedInteger(stream, 4, 11);
- if(errn == 0) {
- done = 1;
- }
- grammarID = 3;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 892:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}TargetSOC), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}BulkSOC), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MinimumSOC), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}ChargingPerformance), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}RemainingTimeToTargetSOC), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}RemainingTimeToBulkSOC), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}RemainingTimeToMinimumSOC), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}ChargingComplete), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}BulkChargingComplete), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}InletHot), END_ELEMENT] */
- if ( v2gDisplayParametersType->TargetSOC_isUsed == 1u ) {
- errn = encodeNBitUnsignedInteger(stream, 4, 0);
- if(errn == 0) {
- /* FirstStartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- if(errn == 0) {
- errn = encodeNBitUnsignedInteger(stream, 7, (uint32_t)(v2gDisplayParametersType->TargetSOC - 0));
- /* valid EE */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- }
- }
- grammarID = 893;
- } else if ( v2gDisplayParametersType->BulkSOC_isUsed == 1u ) {
- errn = encodeNBitUnsignedInteger(stream, 4, 1);
- if(errn == 0) {
- /* FirstStartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- if(errn == 0) {
- errn = encodeNBitUnsignedInteger(stream, 7, (uint32_t)(v2gDisplayParametersType->BulkSOC - 0));
- /* valid EE */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- }
- }
- grammarID = 894;
- } else if ( v2gDisplayParametersType->MinimumSOC_isUsed == 1u ) {
- errn = encodeNBitUnsignedInteger(stream, 4, 2);
- if(errn == 0) {
- /* FirstStartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- if(errn == 0) {
- errn = encodeNBitUnsignedInteger(stream, 7, (uint32_t)(v2gDisplayParametersType->MinimumSOC - 0));
- /* valid EE */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- }
- }
- grammarID = 895;
- } else if ( v2gDisplayParametersType->ChargingPerformance_isUsed == 1u ) {
- errn = encodeNBitUnsignedInteger(stream, 4, 3);
- if(errn == 0) {
- errn = encode_v2gPhysicalValueType(stream, &v2gDisplayParametersType->ChargingPerformance );
- }
- grammarID = 896;
- } else if ( v2gDisplayParametersType->RemainingTimeToTargetSOC_isUsed == 1u ) {
- errn = encodeNBitUnsignedInteger(stream, 4, 4);
- if(errn == 0) {
- /* FirstStartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- if(errn == 0) {
- errn = encodeNBitUnsignedInteger(stream, 7, (uint32_t)(v2gDisplayParametersType->RemainingTimeToTargetSOC - 0));
- /* valid EE */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- }
- }
- grammarID = 897;
- } else if ( v2gDisplayParametersType->RemainingTimeToBulkSOC_isUsed == 1u ) {
- errn = encodeNBitUnsignedInteger(stream, 4, 5);
- if(errn == 0) {
- /* FirstStartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- if(errn == 0) {
- errn = encodeNBitUnsignedInteger(stream, 7, (uint32_t)(v2gDisplayParametersType->RemainingTimeToBulkSOC - 0));
- /* valid EE */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- }
- }
- grammarID = 898;
- } else if ( v2gDisplayParametersType->RemainingTimeToMinimumSOC_isUsed == 1u ) {
- errn = encodeNBitUnsignedInteger(stream, 4, 6);
- if(errn == 0) {
- /* FirstStartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- if(errn == 0) {
- errn = encodeNBitUnsignedInteger(stream, 7, (uint32_t)(v2gDisplayParametersType->RemainingTimeToMinimumSOC - 0));
- /* valid EE */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- }
- }
- grammarID = 899;
- } else if ( v2gDisplayParametersType->ChargingComplete_isUsed == 1u ) {
- errn = encodeNBitUnsignedInteger(stream, 4, 7);
- if(errn == 0) {
- /* FirstStartTag[CHARACTERS[BOOLEAN]] */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- if(errn == 0) {
- errn = encodeBoolean(stream, v2gDisplayParametersType->ChargingComplete);
- /* valid EE */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- }
- }
- grammarID = 900;
- } else if ( v2gDisplayParametersType->BulkChargingComplete_isUsed == 1u ) {
- errn = encodeNBitUnsignedInteger(stream, 4, 8);
- if(errn == 0) {
- /* FirstStartTag[CHARACTERS[BOOLEAN]] */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- if(errn == 0) {
- errn = encodeBoolean(stream, v2gDisplayParametersType->BulkChargingComplete);
- /* valid EE */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- }
- }
- grammarID = 901;
- } else if ( v2gDisplayParametersType->InletHot_isUsed == 1u ) {
- errn = encodeNBitUnsignedInteger(stream, 4, 9);
- if(errn == 0) {
- /* FirstStartTag[CHARACTERS[BOOLEAN]] */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- if(errn == 0) {
- errn = encodeBoolean(stream, v2gDisplayParametersType->InletHot);
- /* valid EE */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- }
- }
- grammarID = 2;
- } else if (1==1) {
- errn = encodeNBitUnsignedInteger(stream, 4, 10);
- if(errn == 0) {
- done = 1;
- }
- grammarID = 3;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 893:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}BulkSOC), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MinimumSOC), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}ChargingPerformance), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}RemainingTimeToTargetSOC), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}RemainingTimeToBulkSOC), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}RemainingTimeToMinimumSOC), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}ChargingComplete), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}BulkChargingComplete), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}InletHot), END_ELEMENT] */
- if ( v2gDisplayParametersType->BulkSOC_isUsed == 1u ) {
- errn = encodeNBitUnsignedInteger(stream, 4, 0);
- if(errn == 0) {
- /* FirstStartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- if(errn == 0) {
- errn = encodeNBitUnsignedInteger(stream, 7, (uint32_t)(v2gDisplayParametersType->BulkSOC - 0));
- /* valid EE */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- }
- }
- grammarID = 894;
- } else if ( v2gDisplayParametersType->MinimumSOC_isUsed == 1u ) {
- errn = encodeNBitUnsignedInteger(stream, 4, 1);
- if(errn == 0) {
- /* FirstStartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- if(errn == 0) {
- errn = encodeNBitUnsignedInteger(stream, 7, (uint32_t)(v2gDisplayParametersType->MinimumSOC - 0));
- /* valid EE */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- }
- }
- grammarID = 895;
- } else if ( v2gDisplayParametersType->ChargingPerformance_isUsed == 1u ) {
- errn = encodeNBitUnsignedInteger(stream, 4, 2);
- if(errn == 0) {
- errn = encode_v2gPhysicalValueType(stream, &v2gDisplayParametersType->ChargingPerformance );
- }
- grammarID = 896;
- } else if ( v2gDisplayParametersType->RemainingTimeToTargetSOC_isUsed == 1u ) {
- errn = encodeNBitUnsignedInteger(stream, 4, 3);
- if(errn == 0) {
- /* FirstStartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- if(errn == 0) {
- errn = encodeNBitUnsignedInteger(stream, 7, (uint32_t)(v2gDisplayParametersType->RemainingTimeToTargetSOC - 0));
- /* valid EE */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- }
- }
- grammarID = 897;
- } else if ( v2gDisplayParametersType->RemainingTimeToBulkSOC_isUsed == 1u ) {
- errn = encodeNBitUnsignedInteger(stream, 4, 4);
- if(errn == 0) {
- /* FirstStartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- if(errn == 0) {
- errn = encodeNBitUnsignedInteger(stream, 7, (uint32_t)(v2gDisplayParametersType->RemainingTimeToBulkSOC - 0));
- /* valid EE */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- }
- }
- grammarID = 898;
- } else if ( v2gDisplayParametersType->RemainingTimeToMinimumSOC_isUsed == 1u ) {
- errn = encodeNBitUnsignedInteger(stream, 4, 5);
- if(errn == 0) {
- /* FirstStartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- if(errn == 0) {
- errn = encodeNBitUnsignedInteger(stream, 7, (uint32_t)(v2gDisplayParametersType->RemainingTimeToMinimumSOC - 0));
- /* valid EE */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- }
- }
- grammarID = 899;
- } else if ( v2gDisplayParametersType->ChargingComplete_isUsed == 1u ) {
- errn = encodeNBitUnsignedInteger(stream, 4, 6);
- if(errn == 0) {
- /* FirstStartTag[CHARACTERS[BOOLEAN]] */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- if(errn == 0) {
- errn = encodeBoolean(stream, v2gDisplayParametersType->ChargingComplete);
- /* valid EE */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- }
- }
- grammarID = 900;
- } else if ( v2gDisplayParametersType->BulkChargingComplete_isUsed == 1u ) {
- errn = encodeNBitUnsignedInteger(stream, 4, 7);
- if(errn == 0) {
- /* FirstStartTag[CHARACTERS[BOOLEAN]] */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- if(errn == 0) {
- errn = encodeBoolean(stream, v2gDisplayParametersType->BulkChargingComplete);
- /* valid EE */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- }
- }
- grammarID = 901;
- } else if ( v2gDisplayParametersType->InletHot_isUsed == 1u ) {
- errn = encodeNBitUnsignedInteger(stream, 4, 8);
- if(errn == 0) {
- /* FirstStartTag[CHARACTERS[BOOLEAN]] */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- if(errn == 0) {
- errn = encodeBoolean(stream, v2gDisplayParametersType->InletHot);
- /* valid EE */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- }
- }
- grammarID = 2;
- } else if (1==1) {
- errn = encodeNBitUnsignedInteger(stream, 4, 9);
- if(errn == 0) {
- done = 1;
- }
- grammarID = 3;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 894:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MinimumSOC), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}ChargingPerformance), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}RemainingTimeToTargetSOC), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}RemainingTimeToBulkSOC), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}RemainingTimeToMinimumSOC), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}ChargingComplete), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}BulkChargingComplete), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}InletHot), END_ELEMENT] */
- if ( v2gDisplayParametersType->MinimumSOC_isUsed == 1u ) {
- errn = encodeNBitUnsignedInteger(stream, 4, 0);
- if(errn == 0) {
- /* FirstStartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- if(errn == 0) {
- errn = encodeNBitUnsignedInteger(stream, 7, (uint32_t)(v2gDisplayParametersType->MinimumSOC - 0));
- /* valid EE */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- }
- }
- grammarID = 895;
- } else if ( v2gDisplayParametersType->ChargingPerformance_isUsed == 1u ) {
- errn = encodeNBitUnsignedInteger(stream, 4, 1);
- if(errn == 0) {
- errn = encode_v2gPhysicalValueType(stream, &v2gDisplayParametersType->ChargingPerformance );
- }
- grammarID = 896;
- } else if ( v2gDisplayParametersType->RemainingTimeToTargetSOC_isUsed == 1u ) {
- errn = encodeNBitUnsignedInteger(stream, 4, 2);
- if(errn == 0) {
- /* FirstStartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- if(errn == 0) {
- errn = encodeNBitUnsignedInteger(stream, 7, (uint32_t)(v2gDisplayParametersType->RemainingTimeToTargetSOC - 0));
- /* valid EE */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- }
- }
- grammarID = 897;
- } else if ( v2gDisplayParametersType->RemainingTimeToBulkSOC_isUsed == 1u ) {
- errn = encodeNBitUnsignedInteger(stream, 4, 3);
- if(errn == 0) {
- /* FirstStartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- if(errn == 0) {
- errn = encodeNBitUnsignedInteger(stream, 7, (uint32_t)(v2gDisplayParametersType->RemainingTimeToBulkSOC - 0));
- /* valid EE */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- }
- }
- grammarID = 898;
- } else if ( v2gDisplayParametersType->RemainingTimeToMinimumSOC_isUsed == 1u ) {
- errn = encodeNBitUnsignedInteger(stream, 4, 4);
- if(errn == 0) {
- /* FirstStartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- if(errn == 0) {
- errn = encodeNBitUnsignedInteger(stream, 7, (uint32_t)(v2gDisplayParametersType->RemainingTimeToMinimumSOC - 0));
- /* valid EE */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- }
- }
- grammarID = 899;
- } else if ( v2gDisplayParametersType->ChargingComplete_isUsed == 1u ) {
- errn = encodeNBitUnsignedInteger(stream, 4, 5);
- if(errn == 0) {
- /* FirstStartTag[CHARACTERS[BOOLEAN]] */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- if(errn == 0) {
- errn = encodeBoolean(stream, v2gDisplayParametersType->ChargingComplete);
- /* valid EE */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- }
- }
- grammarID = 900;
- } else if ( v2gDisplayParametersType->BulkChargingComplete_isUsed == 1u ) {
- errn = encodeNBitUnsignedInteger(stream, 4, 6);
- if(errn == 0) {
- /* FirstStartTag[CHARACTERS[BOOLEAN]] */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- if(errn == 0) {
- errn = encodeBoolean(stream, v2gDisplayParametersType->BulkChargingComplete);
- /* valid EE */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- }
- }
- grammarID = 901;
- } else if ( v2gDisplayParametersType->InletHot_isUsed == 1u ) {
- errn = encodeNBitUnsignedInteger(stream, 4, 7);
- if(errn == 0) {
- /* FirstStartTag[CHARACTERS[BOOLEAN]] */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- if(errn == 0) {
- errn = encodeBoolean(stream, v2gDisplayParametersType->InletHot);
- /* valid EE */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- }
- }
- grammarID = 2;
- } else if (1==1) {
- errn = encodeNBitUnsignedInteger(stream, 4, 8);
- if(errn == 0) {
- done = 1;
- }
- grammarID = 3;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 895:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}ChargingPerformance), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}RemainingTimeToTargetSOC), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}RemainingTimeToBulkSOC), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}RemainingTimeToMinimumSOC), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}ChargingComplete), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}BulkChargingComplete), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}InletHot), END_ELEMENT] */
- if ( v2gDisplayParametersType->ChargingPerformance_isUsed == 1u ) {
- errn = encodeNBitUnsignedInteger(stream, 4, 0);
- if(errn == 0) {
- errn = encode_v2gPhysicalValueType(stream, &v2gDisplayParametersType->ChargingPerformance );
- }
- grammarID = 896;
- } else if ( v2gDisplayParametersType->RemainingTimeToTargetSOC_isUsed == 1u ) {
- errn = encodeNBitUnsignedInteger(stream, 4, 1);
- if(errn == 0) {
- /* FirstStartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- if(errn == 0) {
- errn = encodeNBitUnsignedInteger(stream, 7, (uint32_t)(v2gDisplayParametersType->RemainingTimeToTargetSOC - 0));
- /* valid EE */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- }
- }
- grammarID = 897;
- } else if ( v2gDisplayParametersType->RemainingTimeToBulkSOC_isUsed == 1u ) {
- errn = encodeNBitUnsignedInteger(stream, 4, 2);
- if(errn == 0) {
- /* FirstStartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- if(errn == 0) {
- errn = encodeNBitUnsignedInteger(stream, 7, (uint32_t)(v2gDisplayParametersType->RemainingTimeToBulkSOC - 0));
- /* valid EE */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- }
- }
- grammarID = 898;
- } else if ( v2gDisplayParametersType->RemainingTimeToMinimumSOC_isUsed == 1u ) {
- errn = encodeNBitUnsignedInteger(stream, 4, 3);
- if(errn == 0) {
- /* FirstStartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- if(errn == 0) {
- errn = encodeNBitUnsignedInteger(stream, 7, (uint32_t)(v2gDisplayParametersType->RemainingTimeToMinimumSOC - 0));
- /* valid EE */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- }
- }
- grammarID = 899;
- } else if ( v2gDisplayParametersType->ChargingComplete_isUsed == 1u ) {
- errn = encodeNBitUnsignedInteger(stream, 4, 4);
- if(errn == 0) {
- /* FirstStartTag[CHARACTERS[BOOLEAN]] */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- if(errn == 0) {
- errn = encodeBoolean(stream, v2gDisplayParametersType->ChargingComplete);
- /* valid EE */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- }
- }
- grammarID = 900;
- } else if ( v2gDisplayParametersType->BulkChargingComplete_isUsed == 1u ) {
- errn = encodeNBitUnsignedInteger(stream, 4, 5);
- if(errn == 0) {
- /* FirstStartTag[CHARACTERS[BOOLEAN]] */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- if(errn == 0) {
- errn = encodeBoolean(stream, v2gDisplayParametersType->BulkChargingComplete);
- /* valid EE */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- }
- }
- grammarID = 901;
- } else if ( v2gDisplayParametersType->InletHot_isUsed == 1u ) {
- errn = encodeNBitUnsignedInteger(stream, 4, 6);
- if(errn == 0) {
- /* FirstStartTag[CHARACTERS[BOOLEAN]] */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- if(errn == 0) {
- errn = encodeBoolean(stream, v2gDisplayParametersType->InletHot);
- /* valid EE */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- }
- }
- grammarID = 2;
- } else if (1==1) {
- errn = encodeNBitUnsignedInteger(stream, 4, 7);
- if(errn == 0) {
- done = 1;
- }
- grammarID = 3;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 896:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}RemainingTimeToTargetSOC), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}RemainingTimeToBulkSOC), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}RemainingTimeToMinimumSOC), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}ChargingComplete), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}BulkChargingComplete), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}InletHot), END_ELEMENT] */
- if ( v2gDisplayParametersType->RemainingTimeToTargetSOC_isUsed == 1u ) {
- errn = encodeNBitUnsignedInteger(stream, 3, 0);
- if(errn == 0) {
- /* FirstStartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- if(errn == 0) {
- errn = encodeNBitUnsignedInteger(stream, 7, (uint32_t)(v2gDisplayParametersType->RemainingTimeToTargetSOC - 0));
- /* valid EE */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- }
- }
- grammarID = 897;
- } else if ( v2gDisplayParametersType->RemainingTimeToBulkSOC_isUsed == 1u ) {
- errn = encodeNBitUnsignedInteger(stream, 3, 1);
- if(errn == 0) {
- /* FirstStartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- if(errn == 0) {
- errn = encodeNBitUnsignedInteger(stream, 7, (uint32_t)(v2gDisplayParametersType->RemainingTimeToBulkSOC - 0));
- /* valid EE */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- }
- }
- grammarID = 898;
- } else if ( v2gDisplayParametersType->RemainingTimeToMinimumSOC_isUsed == 1u ) {
- errn = encodeNBitUnsignedInteger(stream, 3, 2);
- if(errn == 0) {
- /* FirstStartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- if(errn == 0) {
- errn = encodeNBitUnsignedInteger(stream, 7, (uint32_t)(v2gDisplayParametersType->RemainingTimeToMinimumSOC - 0));
- /* valid EE */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- }
- }
- grammarID = 899;
- } else if ( v2gDisplayParametersType->ChargingComplete_isUsed == 1u ) {
- errn = encodeNBitUnsignedInteger(stream, 3, 3);
- if(errn == 0) {
- /* FirstStartTag[CHARACTERS[BOOLEAN]] */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- if(errn == 0) {
- errn = encodeBoolean(stream, v2gDisplayParametersType->ChargingComplete);
- /* valid EE */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- }
- }
- grammarID = 900;
- } else if ( v2gDisplayParametersType->BulkChargingComplete_isUsed == 1u ) {
- errn = encodeNBitUnsignedInteger(stream, 3, 4);
- if(errn == 0) {
- /* FirstStartTag[CHARACTERS[BOOLEAN]] */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- if(errn == 0) {
- errn = encodeBoolean(stream, v2gDisplayParametersType->BulkChargingComplete);
- /* valid EE */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- }
- }
- grammarID = 901;
- } else if ( v2gDisplayParametersType->InletHot_isUsed == 1u ) {
- errn = encodeNBitUnsignedInteger(stream, 3, 5);
- if(errn == 0) {
- /* FirstStartTag[CHARACTERS[BOOLEAN]] */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- if(errn == 0) {
- errn = encodeBoolean(stream, v2gDisplayParametersType->InletHot);
- /* valid EE */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- }
- }
- grammarID = 2;
- } else if (1==1) {
- errn = encodeNBitUnsignedInteger(stream, 3, 6);
- if(errn == 0) {
- done = 1;
- }
- grammarID = 3;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 897:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}RemainingTimeToBulkSOC), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}RemainingTimeToMinimumSOC), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}ChargingComplete), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}BulkChargingComplete), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}InletHot), END_ELEMENT] */
- if ( v2gDisplayParametersType->RemainingTimeToBulkSOC_isUsed == 1u ) {
- errn = encodeNBitUnsignedInteger(stream, 3, 0);
- if(errn == 0) {
- /* FirstStartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- if(errn == 0) {
- errn = encodeNBitUnsignedInteger(stream, 7, (uint32_t)(v2gDisplayParametersType->RemainingTimeToBulkSOC - 0));
- /* valid EE */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- }
- }
- grammarID = 898;
- } else if ( v2gDisplayParametersType->RemainingTimeToMinimumSOC_isUsed == 1u ) {
- errn = encodeNBitUnsignedInteger(stream, 3, 1);
- if(errn == 0) {
- /* FirstStartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- if(errn == 0) {
- errn = encodeNBitUnsignedInteger(stream, 7, (uint32_t)(v2gDisplayParametersType->RemainingTimeToMinimumSOC - 0));
- /* valid EE */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- }
- }
- grammarID = 899;
- } else if ( v2gDisplayParametersType->ChargingComplete_isUsed == 1u ) {
- errn = encodeNBitUnsignedInteger(stream, 3, 2);
- if(errn == 0) {
- /* FirstStartTag[CHARACTERS[BOOLEAN]] */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- if(errn == 0) {
- errn = encodeBoolean(stream, v2gDisplayParametersType->ChargingComplete);
- /* valid EE */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- }
- }
- grammarID = 900;
- } else if ( v2gDisplayParametersType->BulkChargingComplete_isUsed == 1u ) {
- errn = encodeNBitUnsignedInteger(stream, 3, 3);
- if(errn == 0) {
- /* FirstStartTag[CHARACTERS[BOOLEAN]] */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- if(errn == 0) {
- errn = encodeBoolean(stream, v2gDisplayParametersType->BulkChargingComplete);
- /* valid EE */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- }
- }
- grammarID = 901;
- } else if ( v2gDisplayParametersType->InletHot_isUsed == 1u ) {
- errn = encodeNBitUnsignedInteger(stream, 3, 4);
- if(errn == 0) {
- /* FirstStartTag[CHARACTERS[BOOLEAN]] */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- if(errn == 0) {
- errn = encodeBoolean(stream, v2gDisplayParametersType->InletHot);
- /* valid EE */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- }
- }
- grammarID = 2;
- } else if (1==1) {
- errn = encodeNBitUnsignedInteger(stream, 3, 5);
- if(errn == 0) {
- done = 1;
- }
- grammarID = 3;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 898:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}RemainingTimeToMinimumSOC), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}ChargingComplete), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}BulkChargingComplete), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}InletHot), END_ELEMENT] */
- if ( v2gDisplayParametersType->RemainingTimeToMinimumSOC_isUsed == 1u ) {
- errn = encodeNBitUnsignedInteger(stream, 3, 0);
- if(errn == 0) {
- /* FirstStartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- if(errn == 0) {
- errn = encodeNBitUnsignedInteger(stream, 7, (uint32_t)(v2gDisplayParametersType->RemainingTimeToMinimumSOC - 0));
- /* valid EE */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- }
- }
- grammarID = 899;
- } else if ( v2gDisplayParametersType->ChargingComplete_isUsed == 1u ) {
- errn = encodeNBitUnsignedInteger(stream, 3, 1);
- if(errn == 0) {
- /* FirstStartTag[CHARACTERS[BOOLEAN]] */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- if(errn == 0) {
- errn = encodeBoolean(stream, v2gDisplayParametersType->ChargingComplete);
- /* valid EE */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- }
- }
- grammarID = 900;
- } else if ( v2gDisplayParametersType->BulkChargingComplete_isUsed == 1u ) {
- errn = encodeNBitUnsignedInteger(stream, 3, 2);
- if(errn == 0) {
- /* FirstStartTag[CHARACTERS[BOOLEAN]] */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- if(errn == 0) {
- errn = encodeBoolean(stream, v2gDisplayParametersType->BulkChargingComplete);
- /* valid EE */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- }
- }
- grammarID = 901;
- } else if ( v2gDisplayParametersType->InletHot_isUsed == 1u ) {
- errn = encodeNBitUnsignedInteger(stream, 3, 3);
- if(errn == 0) {
- /* FirstStartTag[CHARACTERS[BOOLEAN]] */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- if(errn == 0) {
- errn = encodeBoolean(stream, v2gDisplayParametersType->InletHot);
- /* valid EE */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- }
- }
- grammarID = 2;
- } else if (1==1) {
- errn = encodeNBitUnsignedInteger(stream, 3, 4);
- if(errn == 0) {
- done = 1;
- }
- grammarID = 3;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 899:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}ChargingComplete), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}BulkChargingComplete), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}InletHot), END_ELEMENT] */
- if ( v2gDisplayParametersType->ChargingComplete_isUsed == 1u ) {
- errn = encodeNBitUnsignedInteger(stream, 3, 0);
- if(errn == 0) {
- /* FirstStartTag[CHARACTERS[BOOLEAN]] */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- if(errn == 0) {
- errn = encodeBoolean(stream, v2gDisplayParametersType->ChargingComplete);
- /* valid EE */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- }
- }
- grammarID = 900;
- } else if ( v2gDisplayParametersType->BulkChargingComplete_isUsed == 1u ) {
- errn = encodeNBitUnsignedInteger(stream, 3, 1);
- if(errn == 0) {
- /* FirstStartTag[CHARACTERS[BOOLEAN]] */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- if(errn == 0) {
- errn = encodeBoolean(stream, v2gDisplayParametersType->BulkChargingComplete);
- /* valid EE */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- }
- }
- grammarID = 901;
- } else if ( v2gDisplayParametersType->InletHot_isUsed == 1u ) {
- errn = encodeNBitUnsignedInteger(stream, 3, 2);
- if(errn == 0) {
- /* FirstStartTag[CHARACTERS[BOOLEAN]] */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- if(errn == 0) {
- errn = encodeBoolean(stream, v2gDisplayParametersType->InletHot);
- /* valid EE */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- }
- }
- grammarID = 2;
- } else if (1==1) {
- errn = encodeNBitUnsignedInteger(stream, 3, 3);
- if(errn == 0) {
- done = 1;
- }
- grammarID = 3;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 900:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}BulkChargingComplete), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}InletHot), END_ELEMENT] */
- if ( v2gDisplayParametersType->BulkChargingComplete_isUsed == 1u ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- /* FirstStartTag[CHARACTERS[BOOLEAN]] */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- if(errn == 0) {
- errn = encodeBoolean(stream, v2gDisplayParametersType->BulkChargingComplete);
- /* valid EE */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- }
- }
- grammarID = 901;
- } else if ( v2gDisplayParametersType->InletHot_isUsed == 1u ) {
+ grammarID = 9;
+ } else if ( iso2MV_EVSEFinePositioningSetupParametersType->MagneticVectorSetupList_isUsed == 1u ) {
errn = encodeNBitUnsignedInteger(stream, 2, 1);
if(errn == 0) {
- /* FirstStartTag[CHARACTERS[BOOLEAN]] */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- if(errn == 0) {
- errn = encodeBoolean(stream, v2gDisplayParametersType->InletHot);
- /* valid EE */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- }
+ errn = encode_iso2MagneticVectorSetupListType(stream, &iso2MV_EVSEFinePositioningSetupParametersType->MagneticVectorSetupList );
}
- grammarID = 2;
+ grammarID = 3;
} else if (1==1) {
errn = encodeNBitUnsignedInteger(stream, 2, 2);
if(errn == 0) {
done = 1;
}
- grammarID = 3;
+ grammarID = 4;
} else {
errn = EXI_ERROR_UNKOWN_EVENT;
}
break;
- case 901:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}InletHot), END_ELEMENT] */
- if ( v2gDisplayParametersType->InletHot_isUsed == 1u ) {
+ case 9:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MagneticVectorSetupList), END_ELEMENT] */
+ if ( iso2MV_EVSEFinePositioningSetupParametersType->MagneticVectorSetupList_isUsed == 1u ) {
errn = encodeNBitUnsignedInteger(stream, 2, 0);
if(errn == 0) {
- /* FirstStartTag[CHARACTERS[BOOLEAN]] */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- if(errn == 0) {
- errn = encodeBoolean(stream, v2gDisplayParametersType->InletHot);
- /* valid EE */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- }
+ errn = encode_iso2MagneticVectorSetupListType(stream, &iso2MV_EVSEFinePositioningSetupParametersType->MagneticVectorSetupList );
}
- grammarID = 2;
+ grammarID = 3;
} else if (1==1) {
errn = encodeNBitUnsignedInteger(stream, 2, 1);
if(errn == 0) {
done = 1;
}
- grammarID = 3;
+ grammarID = 4;
} else {
errn = EXI_ERROR_UNKOWN_EVENT;
}
break;
- case 2:
+ case 3:
/* 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='http://www.w3.org/2000/09/xmldsig#,SignatureMethodType', base type name='anyType', content type='MIXED', isAbstract='false', hasTypeId='false', final='0', block='0', particle='("http://www.w3.org/2000/09/xmldsig#":HMACOutputLength{0-1},(WC[##other:"http://www.w3.org/2000/09/xmldsig#"]){0-UNBOUNDED})', derivedBy='RESTRICTION'. */
-static int encode_v2gSignatureMethodType(bitstream_t* stream, struct v2gSignatureMethodType* v2gSignatureMethodType) {
- int grammarID = 902;
- int done = 0;
- int wcDone = 0;
-
-
- while(!done) {
- switch(grammarID) {
- case 902:
- /* FirstStartTag[ATTRIBUTE[STRING](Algorithm)] */
- if (1==1) {
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- if(errn == 0) {
- /* encode string as string table miss (+2 len)*/
- errn = encodeUnsignedInteger16(stream, (uint16_t)(v2gSignatureMethodType->Algorithm.charactersLen + 2));
- if (errn == 0) {
- errn = encodeCharacters(stream, v2gSignatureMethodType->Algorithm.characters, v2gSignatureMethodType->Algorithm.charactersLen);
- }
- }
- grammarID = 903;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 903:
- /* StartTag[START_ELEMENT({http://www.w3.org/2000/09/xmldsig#}HMACOutputLength), START_ELEMENT_GENERIC, END_ELEMENT, CHARACTERS_GENERIC[STRING]] */
- if ( v2gSignatureMethodType->HMACOutputLength_isUsed == 1u ) {
- errn = encodeNBitUnsignedInteger(stream, 3, 0);
- if(errn == 0) {
- /* FirstStartTag[CHARACTERS[INTEGER]] */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- if(errn == 0) {
- errn = encodeInteger64(stream, v2gSignatureMethodType->HMACOutputLength);
- /* valid EE */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- }
- }
- grammarID = 904;
- } else if (1==0) {
- errn = EXI_UNSUPPORTED_EVENT_CODE_CHARACTERISTICS;
- grammarID = 904;
- } else if ( v2gSignatureMethodType->ANY_isUsed == 0u || wcDone ) {
- errn = encodeNBitUnsignedInteger(stream, 3, 2);
- if(errn == 0) {
- done = 1;
- }
- grammarID = 3;
- } else if ( v2gSignatureMethodType->ANY_isUsed == 1u ) {
- errn = encodeNBitUnsignedInteger(stream, 3, 3);
- if(errn == 0) {
- /* encode string as string table miss (+2 len)*/
- errn = encodeUnsignedInteger16(stream, (uint16_t)(v2gSignatureMethodType->ANY.charactersLen + 2));
- if (errn == 0) {
- errn = encodeCharacters(stream, v2gSignatureMethodType->ANY.characters, v2gSignatureMethodType->ANY.charactersLen);
- }
- }
- wcDone = 1;
- grammarID = 905;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 904:
- /* Element[START_ELEMENT_GENERIC, END_ELEMENT, CHARACTERS_GENERIC[STRING]] */
- if (1==0) {
- errn = EXI_UNSUPPORTED_EVENT_CODE_CHARACTERISTICS;
- grammarID = 904;
- } else if ( v2gSignatureMethodType->ANY_isUsed == 0u || wcDone ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- done = 1;
- }
- grammarID = 3;
- } else if ( v2gSignatureMethodType->ANY_isUsed == 1u ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 2);
- if(errn == 0) {
- /* encode string as string table miss (+2 len)*/
- errn = encodeUnsignedInteger16(stream, (uint16_t)(v2gSignatureMethodType->ANY.charactersLen + 2));
- if (errn == 0) {
- errn = encodeCharacters(stream, v2gSignatureMethodType->ANY.characters, v2gSignatureMethodType->ANY.charactersLen);
- }
- }
- wcDone = 1;
- grammarID = 904;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 905:
- /* Element[START_ELEMENT({http://www.w3.org/2000/09/xmldsig#}HMACOutputLength), START_ELEMENT_GENERIC, END_ELEMENT, CHARACTERS_GENERIC[STRING]] */
- if ( v2gSignatureMethodType->HMACOutputLength_isUsed == 1u ) {
- errn = encodeNBitUnsignedInteger(stream, 3, 0);
- if(errn == 0) {
- /* FirstStartTag[CHARACTERS[INTEGER]] */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- if(errn == 0) {
- errn = encodeInteger64(stream, v2gSignatureMethodType->HMACOutputLength);
- /* valid EE */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- }
- }
- grammarID = 904;
- } else if (1==0) {
- errn = EXI_UNSUPPORTED_EVENT_CODE_CHARACTERISTICS;
- grammarID = 904;
- } else if ( v2gSignatureMethodType->ANY_isUsed == 0u || wcDone ) {
- errn = encodeNBitUnsignedInteger(stream, 3, 2);
- if(errn == 0) {
- done = 1;
- }
- grammarID = 3;
- } else if ( v2gSignatureMethodType->ANY_isUsed == 1u ) {
- errn = encodeNBitUnsignedInteger(stream, 3, 3);
- if(errn == 0) {
- /* encode string as string table miss (+2 len)*/
- errn = encodeUnsignedInteger16(stream, (uint16_t)(v2gSignatureMethodType->ANY.charactersLen + 2));
- if (errn == 0) {
- errn = encodeCharacters(stream, v2gSignatureMethodType->ANY.characters, v2gSignatureMethodType->ANY.charactersLen);
- }
- }
- wcDone = 1;
- grammarID = 905;
- } 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:2016:MsgDataTypes,TargetPositionType', base type name='anyType', content type='ELEMENT', isAbstract='false', hasTypeId='false', final='0', block='0', particle='("urn:iso:15118:2:2016:MsgDataTypes":TargetOffsetX,"urn:iso:15118:2:2016:MsgDataTypes":TargetOffsetY)', derivedBy='RESTRICTION'. */
-static int encode_v2gTargetPositionType(bitstream_t* stream, struct v2gTargetPositionType* v2gTargetPositionType) {
- int grammarID = 906;
- int done = 0;
-
-
- while(!done) {
- switch(grammarID) {
- case 906:
- /* FirstStartTag[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}TargetOffsetX)] */
- if ( 1 == 1 ) {
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- if(errn == 0) {
- /* First(xsi:type)StartTag[CHARACTERS[UNSIGNED_INTEGER]] */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- if(errn == 0) {
- errn = encodeUnsignedInteger16(stream, v2gTargetPositionType->TargetOffsetX);
- /* valid EE */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- }
- }
- grammarID = 907;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 907:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}TargetOffsetY)] */
- if ( 1 == 1 ) {
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- if(errn == 0) {
- /* First(xsi:type)StartTag[CHARACTERS[UNSIGNED_INTEGER]] */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- if(errn == 0) {
- errn = encodeUnsignedInteger16(stream, v2gTargetPositionType->TargetOffsetY);
- /* valid EE */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- }
- }
- grammarID = 2;
- } 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:2016:MsgDataTypes,EVFinePositioningParametersType', base type name='anyType', content type='EMPTY', isAbstract='true', hasTypeId='false', final='0', block='0', derivedBy='RESTRICTION'. */
-static int encode_v2gEVFinePositioningParametersType(bitstream_t* stream, struct v2gEVFinePositioningParametersType* v2gEVFinePositioningParametersType) {
- int grammarID = 4;
- int done = 0;
-
-
- while(!done) {
- switch(grammarID) {
- case 4:
- /* FirstStartTag[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:2016:MsgBody,VehicleCheckOutReqType', base type name='BodyBaseType', content type='ELEMENT', isAbstract='false', hasTypeId='false', final='0', block='0', particle='("urn:iso:15118:2:2016:MsgBody":EVCheckOutStatus,"urn:iso:15118:2:2016:MsgBody":CheckOutTime)', derivedBy='EXTENSION'. */
-static int encode_v2gVehicleCheckOutReqType(bitstream_t* stream, struct v2gVehicleCheckOutReqType* v2gVehicleCheckOutReqType) {
- int grammarID = 908;
- int done = 0;
-
-
- while(!done) {
- switch(grammarID) {
- case 908:
- /* FirstStartTag[START_ELEMENT({urn:iso:15118:2:2016:MsgBody}EVCheckOutStatus)] */
- 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, v2gVehicleCheckOutReqType->EVCheckOutStatus);
- /* valid EE */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- }
- }
- grammarID = 909;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 909:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgBody}CheckOutTime)] */
- if ( 1 == 1 ) {
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- if(errn == 0) {
- /* First(xsi:type)StartTag[CHARACTERS[UNSIGNED_INTEGER]] */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- if(errn == 0) {
- errn = encodeUnsignedInteger64(stream, v2gVehicleCheckOutReqType->CheckOutTime);
- /* valid EE */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- }
- }
- grammarID = 2;
- } 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:2016:MsgBody,FinePositioningSetupResType', base type name='V2GResponseType', content type='ELEMENT', isAbstract='false', hasTypeId='false', final='0', block='0', particle='(("urn:iso:15118:2:2016:MsgBody":ResponseCode,"urn:iso:15118:2:2016:MsgBody":EVSEStatus{0-1}),("urn:iso:15118:2:2016:MsgDataTypes":EVSEFinePositioningSetupParameters{0-1}))', derivedBy='EXTENSION'. */
-static int encode_v2gFinePositioningSetupResType(bitstream_t* stream, struct v2gFinePositioningSetupResType* v2gFinePositioningSetupResType) {
- int grammarID = 910;
- int done = 0;
-
-
- while(!done) {
- switch(grammarID) {
- case 910:
- /* FirstStartTag[START_ELEMENT({urn:iso:15118:2:2016:MsgBody}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, 5, v2gFinePositioningSetupResType->ResponseCode);
- /* valid EE */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- }
- }
- grammarID = 911;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 911:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgBody}EVSEStatus), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}EVSEFinePositioningSetupParameters), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}LFA_EVSEFinePositioningSetupParameters), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MV_EVSEFinePositioningSetupParameters), END_ELEMENT] */
- if ( v2gFinePositioningSetupResType->EVSEStatus_isUsed == 1u ) {
- errn = encodeNBitUnsignedInteger(stream, 3, 0);
- if(errn == 0) {
- errn = encode_v2gEVSEStatusType(stream, &v2gFinePositioningSetupResType->EVSEStatus );
- }
- grammarID = 912;
- } else if ( v2gFinePositioningSetupResType->EVSEFinePositioningSetupParameters_isUsed == 1u ) {
- errn = encodeNBitUnsignedInteger(stream, 3, 1);
- if(errn == 0) {
- errn = encode_v2gEVSEFinePositioningSetupParametersType(stream, &v2gFinePositioningSetupResType->EVSEFinePositioningSetupParameters );
- }
- grammarID = 2;
- } else if ( v2gFinePositioningSetupResType->LFA_EVSEFinePositioningSetupParameters_isUsed == 1u ) {
- errn = encodeNBitUnsignedInteger(stream, 3, 2);
- if(errn == 0) {
- errn = encode_v2gLFA_EVSEFinePositioningSetupParametersType(stream, &v2gFinePositioningSetupResType->LFA_EVSEFinePositioningSetupParameters );
- }
- grammarID = 2;
- } else if ( v2gFinePositioningSetupResType->MV_EVSEFinePositioningSetupParameters_isUsed == 1u ) {
- errn = encodeNBitUnsignedInteger(stream, 3, 3);
- if(errn == 0) {
- errn = encode_v2gMV_EVSEFinePositioningSetupParametersType(stream, &v2gFinePositioningSetupResType->MV_EVSEFinePositioningSetupParameters );
- }
- grammarID = 2;
- } else if (1==1) {
- errn = encodeNBitUnsignedInteger(stream, 3, 4);
- if(errn == 0) {
- done = 1;
- }
- grammarID = 3;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 912:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}EVSEFinePositioningSetupParameters), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}LFA_EVSEFinePositioningSetupParameters), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MV_EVSEFinePositioningSetupParameters), END_ELEMENT] */
- if ( v2gFinePositioningSetupResType->EVSEFinePositioningSetupParameters_isUsed == 1u ) {
- errn = encodeNBitUnsignedInteger(stream, 3, 0);
- if(errn == 0) {
- errn = encode_v2gEVSEFinePositioningSetupParametersType(stream, &v2gFinePositioningSetupResType->EVSEFinePositioningSetupParameters );
- }
- grammarID = 2;
- } else if ( v2gFinePositioningSetupResType->LFA_EVSEFinePositioningSetupParameters_isUsed == 1u ) {
- errn = encodeNBitUnsignedInteger(stream, 3, 1);
- if(errn == 0) {
- errn = encode_v2gLFA_EVSEFinePositioningSetupParametersType(stream, &v2gFinePositioningSetupResType->LFA_EVSEFinePositioningSetupParameters );
- }
- grammarID = 2;
- } else if ( v2gFinePositioningSetupResType->MV_EVSEFinePositioningSetupParameters_isUsed == 1u ) {
- errn = encodeNBitUnsignedInteger(stream, 3, 2);
- if(errn == 0) {
- errn = encode_v2gMV_EVSEFinePositioningSetupParametersType(stream, &v2gFinePositioningSetupResType->MV_EVSEFinePositioningSetupParameters );
- }
- grammarID = 2;
- } else if (1==1) {
- errn = encodeNBitUnsignedInteger(stream, 3, 3);
- 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:2016:MsgDataTypes,SAScheduleListType', base type name='anyType', content type='ELEMENT', isAbstract='false', hasTypeId='false', final='0', block='0', particle='("urn:iso:15118:2:2016:MsgDataTypes":SAScheduleTuple{1-3})', derivedBy='RESTRICTION'. */
-static int encode_v2gSAScheduleListType(bitstream_t* stream, struct v2gSAScheduleListType* v2gSAScheduleListType) {
- int grammarID = 913;
- int done = 0;
-
- unsigned int v2gSAScheduleListType_SAScheduleTuple_currArrayIndex = 0;
-
- while(!done) {
- switch(grammarID) {
- case 913:
- /* FirstStartTag[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SAScheduleTuple)] */
- if (v2gSAScheduleListType_SAScheduleTuple_currArrayIndex < v2gSAScheduleListType->SAScheduleTuple.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- if(errn == 0) {
- errn = encode_v2gSAScheduleTupleType(stream, &v2gSAScheduleListType->SAScheduleTuple.array [v2gSAScheduleListType_SAScheduleTuple_currArrayIndex++]);
- }
- grammarID = 914;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 914:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SAScheduleTuple), END_ELEMENT] */
- if (v2gSAScheduleListType_SAScheduleTuple_currArrayIndex < v2gSAScheduleListType->SAScheduleTuple.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- errn = encode_v2gSAScheduleTupleType(stream, &v2gSAScheduleListType->SAScheduleTuple.array [v2gSAScheduleListType_SAScheduleTuple_currArrayIndex++]);
- }
- grammarID = 915;
- } else if (1==1) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- done = 1;
- }
- grammarID = 3;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 915:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SAScheduleTuple), END_ELEMENT] */
- if (v2gSAScheduleListType_SAScheduleTuple_currArrayIndex < v2gSAScheduleListType->SAScheduleTuple.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- errn = encode_v2gSAScheduleTupleType(stream, &v2gSAScheduleListType->SAScheduleTuple.array [v2gSAScheduleListType_SAScheduleTuple_currArrayIndex++]);
- }
- 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:2016:MsgBody,SystemStatusReqType', base type name='BodyBaseType', content type='ELEMENT', isAbstract='false', hasTypeId='false', final='0', block='0', particle='("urn:iso:15118:2:2016:MsgBody":OperationMode,"urn:iso:15118:2:2016:MsgBody":EVMechanicalChargingDeviceStatus)', derivedBy='EXTENSION'. */
-static int encode_v2gSystemStatusReqType(bitstream_t* stream, struct v2gSystemStatusReqType* v2gSystemStatusReqType) {
- int grammarID = 916;
- int done = 0;
-
-
- while(!done) {
- switch(grammarID) {
- case 916:
- /* FirstStartTag[START_ELEMENT({urn:iso:15118:2:2016:MsgBody}OperationMode)] */
- 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, 1, v2gSystemStatusReqType->OperationMode);
- /* valid EE */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- }
- }
- grammarID = 917;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 917:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgBody}EVMechanicalChargingDeviceStatus)] */
- 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, v2gSystemStatusReqType->EVMechanicalChargingDeviceStatus);
- /* valid EE */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- }
- }
- grammarID = 2;
- } 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:2016:MsgDataTypes,CertificateChainType', base type name='anyType', content type='ELEMENT', isAbstract='false', hasTypeId='false', final='0', block='0', particle='("urn:iso:15118:2:2016:MsgDataTypes":Certificate,"urn:iso:15118:2:2016:MsgDataTypes":SubCertificates{0-1})', derivedBy='RESTRICTION'. */
-static int encode_v2gCertificateChainType(bitstream_t* stream, struct v2gCertificateChainType* v2gCertificateChainType) {
- int grammarID = 918;
- int done = 0;
-
-
- while(!done) {
- switch(grammarID) {
- case 918:
- /* FirstStartTag[ATTRIBUTE[STRING]({urn:iso:15118:2:2016:MsgDataTypes}Id), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}Certificate)] */
- if ( v2gCertificateChainType->Id_isUsed == 1u ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- /* encode string as string table miss (+2 len)*/
- errn = encodeUnsignedInteger16(stream, (uint16_t)(v2gCertificateChainType->Id.charactersLen + 2));
- if (errn == 0) {
- errn = encodeCharacters(stream, v2gCertificateChainType->Id.characters, v2gCertificateChainType->Id.charactersLen);
- }
- }
- grammarID = 919;
- } else if ( 1 == 1 ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- /* FirstStartTag[CHARACTERS[BINARY_BASE64]] */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- if(errn == 0) {
- errn = encodeUnsignedInteger16(stream, (uint16_t)(v2gCertificateChainType->Certificate.bytesLen));
- if (errn == 0) {
- errn = encodeBytes(stream, v2gCertificateChainType->Certificate.bytes, v2gCertificateChainType->Certificate.bytesLen);
- }
- /* valid EE */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- }
- }
- grammarID = 920;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 919:
- /* StartTag[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}Certificate)] */
- if ( 1 == 1 ) {
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- if(errn == 0) {
- /* FirstStartTag[CHARACTERS[BINARY_BASE64]] */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- if(errn == 0) {
- errn = encodeUnsignedInteger16(stream, (uint16_t)(v2gCertificateChainType->Certificate.bytesLen));
- if (errn == 0) {
- errn = encodeBytes(stream, v2gCertificateChainType->Certificate.bytes, v2gCertificateChainType->Certificate.bytesLen);
- }
- /* valid EE */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- }
- }
- grammarID = 920;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 920:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SubCertificates), END_ELEMENT] */
- if ( v2gCertificateChainType->SubCertificates_isUsed == 1u ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- errn = encode_v2gSubCertificatesType(stream, &v2gCertificateChainType->SubCertificates );
- }
- 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:2016:MsgDataTypes,CostType', base type name='anyType', content type='ELEMENT', isAbstract='false', hasTypeId='false', final='0', block='0', particle='("urn:iso:15118:2:2016:MsgDataTypes":costKind,"urn:iso:15118:2:2016:MsgDataTypes":amount)', derivedBy='RESTRICTION'. */
-static int encode_v2gCostType(bitstream_t* stream, struct v2gCostType* v2gCostType) {
- int grammarID = 921;
- int done = 0;
-
-
- while(!done) {
- switch(grammarID) {
- case 921:
- /* FirstStartTag[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}costKind)] */
- 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, v2gCostType->costKind);
- /* valid EE */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- }
- }
- grammarID = 922;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 922:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}amount)] */
- if ( 1 == 1 ) {
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- if(errn == 0) {
- errn = encode_v2gPhysicalValueType(stream, &v2gCostType->amount );
- }
- grammarID = 2;
- } 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:2016:MsgDataTypes,ServiceType', base type name='anyType', content type='ELEMENT', isAbstract='false', hasTypeId='false', final='0', block='0', particle='("urn:iso:15118:2:2016:MsgDataTypes":ServiceID,"urn:iso:15118:2:2016:MsgDataTypes":FreeService)', derivedBy='RESTRICTION'. */
-static int encode_v2gServiceType(bitstream_t* stream, struct v2gServiceType* v2gServiceType) {
- int grammarID = 923;
- int done = 0;
-
-
- while(!done) {
- switch(grammarID) {
- case 923:
- /* FirstStartTag[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}ServiceID)] */
- if ( 1 == 1 ) {
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- if(errn == 0) {
- /* FirstStartTag[CHARACTERS[UNSIGNED_INTEGER]] */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- if(errn == 0) {
- errn = encodeUnsignedInteger16(stream, v2gServiceType->ServiceID);
- /* valid EE */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- }
- }
- grammarID = 924;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 924:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}FreeService)] */
- if ( 1 == 1 ) {
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- if(errn == 0) {
- /* FirstStartTag[CHARACTERS[BOOLEAN]] */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- if(errn == 0) {
- errn = encodeBoolean(stream, v2gServiceType->FreeService);
- /* valid EE */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- }
- }
- grammarID = 2;
- } 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:2016:MsgDataTypes,ServiceParameterListType', base type name='anyType', content type='ELEMENT', isAbstract='false', hasTypeId='false', final='0', block='0', particle='("urn:iso:15118:2:2016:MsgDataTypes":ParameterSet{1-255})', derivedBy='RESTRICTION'. */
-static int encode_v2gServiceParameterListType(bitstream_t* stream, struct v2gServiceParameterListType* v2gServiceParameterListType) {
- int grammarID = 925;
- int done = 0;
-
- unsigned int v2gServiceParameterListType_ParameterSet_currArrayIndex = 0;
-
- while(!done) {
- switch(grammarID) {
- case 925:
- /* FirstStartTag[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}ParameterSet)] */
- if (v2gServiceParameterListType_ParameterSet_currArrayIndex < v2gServiceParameterListType->ParameterSet.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- if(errn == 0) {
- errn = encode_v2gParameterSetType(stream, &v2gServiceParameterListType->ParameterSet.array [v2gServiceParameterListType_ParameterSet_currArrayIndex++]);
- }
- grammarID = 926;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 926:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}ParameterSet), END_ELEMENT] */
- if (v2gServiceParameterListType_ParameterSet_currArrayIndex < v2gServiceParameterListType->ParameterSet.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- errn = encode_v2gParameterSetType(stream, &v2gServiceParameterListType->ParameterSet.array [v2gServiceParameterListType_ParameterSet_currArrayIndex++]);
- }
- grammarID = 927;
- } else if (1==1) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- done = 1;
- }
- grammarID = 3;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 927:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}ParameterSet), END_ELEMENT] */
- if (v2gServiceParameterListType_ParameterSet_currArrayIndex < v2gServiceParameterListType->ParameterSet.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- errn = encode_v2gParameterSetType(stream, &v2gServiceParameterListType->ParameterSet.array [v2gServiceParameterListType_ParameterSet_currArrayIndex++]);
- }
- grammarID = 928;
- } else if (1==1) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- done = 1;
- }
- grammarID = 3;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 928:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}ParameterSet), END_ELEMENT] */
- if (v2gServiceParameterListType_ParameterSet_currArrayIndex < v2gServiceParameterListType->ParameterSet.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- errn = encode_v2gParameterSetType(stream, &v2gServiceParameterListType->ParameterSet.array [v2gServiceParameterListType_ParameterSet_currArrayIndex++]);
- }
- grammarID = 929;
- } else if (1==1) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- done = 1;
- }
- grammarID = 3;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 929:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}ParameterSet), END_ELEMENT] */
- if (v2gServiceParameterListType_ParameterSet_currArrayIndex < v2gServiceParameterListType->ParameterSet.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- errn = encode_v2gParameterSetType(stream, &v2gServiceParameterListType->ParameterSet.array [v2gServiceParameterListType_ParameterSet_currArrayIndex++]);
- }
- grammarID = 930;
- } else if (1==1) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- done = 1;
- }
- grammarID = 3;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 930:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}ParameterSet), END_ELEMENT] */
- if (v2gServiceParameterListType_ParameterSet_currArrayIndex < v2gServiceParameterListType->ParameterSet.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- errn = encode_v2gParameterSetType(stream, &v2gServiceParameterListType->ParameterSet.array [v2gServiceParameterListType_ParameterSet_currArrayIndex++]);
- }
- grammarID = 931;
- } else if (1==1) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- done = 1;
- }
- grammarID = 3;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 931:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}ParameterSet), END_ELEMENT] */
- if (v2gServiceParameterListType_ParameterSet_currArrayIndex < v2gServiceParameterListType->ParameterSet.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- errn = encode_v2gParameterSetType(stream, &v2gServiceParameterListType->ParameterSet.array [v2gServiceParameterListType_ParameterSet_currArrayIndex++]);
- }
- grammarID = 932;
- } else if (1==1) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- done = 1;
- }
- grammarID = 3;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 932:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}ParameterSet), END_ELEMENT] */
- if (v2gServiceParameterListType_ParameterSet_currArrayIndex < v2gServiceParameterListType->ParameterSet.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- errn = encode_v2gParameterSetType(stream, &v2gServiceParameterListType->ParameterSet.array [v2gServiceParameterListType_ParameterSet_currArrayIndex++]);
- }
- grammarID = 933;
- } else if (1==1) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- done = 1;
- }
- grammarID = 3;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 933:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}ParameterSet), END_ELEMENT] */
- if (v2gServiceParameterListType_ParameterSet_currArrayIndex < v2gServiceParameterListType->ParameterSet.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- errn = encode_v2gParameterSetType(stream, &v2gServiceParameterListType->ParameterSet.array [v2gServiceParameterListType_ParameterSet_currArrayIndex++]);
- }
- grammarID = 934;
- } else if (1==1) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- done = 1;
- }
- grammarID = 3;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 934:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}ParameterSet), END_ELEMENT] */
- if (v2gServiceParameterListType_ParameterSet_currArrayIndex < v2gServiceParameterListType->ParameterSet.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- errn = encode_v2gParameterSetType(stream, &v2gServiceParameterListType->ParameterSet.array [v2gServiceParameterListType_ParameterSet_currArrayIndex++]);
- }
- grammarID = 935;
- } else if (1==1) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- done = 1;
- }
- grammarID = 3;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 935:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}ParameterSet), END_ELEMENT] */
- if (v2gServiceParameterListType_ParameterSet_currArrayIndex < v2gServiceParameterListType->ParameterSet.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- errn = encode_v2gParameterSetType(stream, &v2gServiceParameterListType->ParameterSet.array [v2gServiceParameterListType_ParameterSet_currArrayIndex++]);
- }
- grammarID = 936;
- } else if (1==1) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- done = 1;
- }
- grammarID = 3;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 936:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}ParameterSet), END_ELEMENT] */
- if (v2gServiceParameterListType_ParameterSet_currArrayIndex < v2gServiceParameterListType->ParameterSet.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- errn = encode_v2gParameterSetType(stream, &v2gServiceParameterListType->ParameterSet.array [v2gServiceParameterListType_ParameterSet_currArrayIndex++]);
- }
- grammarID = 937;
- } else if (1==1) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- done = 1;
- }
- grammarID = 3;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 937:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}ParameterSet), END_ELEMENT] */
- if (v2gServiceParameterListType_ParameterSet_currArrayIndex < v2gServiceParameterListType->ParameterSet.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- errn = encode_v2gParameterSetType(stream, &v2gServiceParameterListType->ParameterSet.array [v2gServiceParameterListType_ParameterSet_currArrayIndex++]);
- }
- grammarID = 938;
- } else if (1==1) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- done = 1;
- }
- grammarID = 3;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 938:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}ParameterSet), END_ELEMENT] */
- if (v2gServiceParameterListType_ParameterSet_currArrayIndex < v2gServiceParameterListType->ParameterSet.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- errn = encode_v2gParameterSetType(stream, &v2gServiceParameterListType->ParameterSet.array [v2gServiceParameterListType_ParameterSet_currArrayIndex++]);
- }
- grammarID = 939;
- } else if (1==1) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- done = 1;
- }
- grammarID = 3;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 939:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}ParameterSet), END_ELEMENT] */
- if (v2gServiceParameterListType_ParameterSet_currArrayIndex < v2gServiceParameterListType->ParameterSet.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- errn = encode_v2gParameterSetType(stream, &v2gServiceParameterListType->ParameterSet.array [v2gServiceParameterListType_ParameterSet_currArrayIndex++]);
- }
- grammarID = 940;
- } else if (1==1) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- done = 1;
- }
- grammarID = 3;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 940:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}ParameterSet), END_ELEMENT] */
- if (v2gServiceParameterListType_ParameterSet_currArrayIndex < v2gServiceParameterListType->ParameterSet.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- errn = encode_v2gParameterSetType(stream, &v2gServiceParameterListType->ParameterSet.array [v2gServiceParameterListType_ParameterSet_currArrayIndex++]);
- }
- grammarID = 941;
- } else if (1==1) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- done = 1;
- }
- grammarID = 3;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 941:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}ParameterSet), END_ELEMENT] */
- if (v2gServiceParameterListType_ParameterSet_currArrayIndex < v2gServiceParameterListType->ParameterSet.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- errn = encode_v2gParameterSetType(stream, &v2gServiceParameterListType->ParameterSet.array [v2gServiceParameterListType_ParameterSet_currArrayIndex++]);
- }
- grammarID = 942;
- } else if (1==1) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- done = 1;
- }
- grammarID = 3;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 942:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}ParameterSet), END_ELEMENT] */
- if (v2gServiceParameterListType_ParameterSet_currArrayIndex < v2gServiceParameterListType->ParameterSet.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- errn = encode_v2gParameterSetType(stream, &v2gServiceParameterListType->ParameterSet.array [v2gServiceParameterListType_ParameterSet_currArrayIndex++]);
- }
- grammarID = 943;
- } else if (1==1) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- done = 1;
- }
- grammarID = 3;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 943:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}ParameterSet), END_ELEMENT] */
- if (v2gServiceParameterListType_ParameterSet_currArrayIndex < v2gServiceParameterListType->ParameterSet.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- errn = encode_v2gParameterSetType(stream, &v2gServiceParameterListType->ParameterSet.array [v2gServiceParameterListType_ParameterSet_currArrayIndex++]);
- }
- grammarID = 944;
- } else if (1==1) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- done = 1;
- }
- grammarID = 3;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 944:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}ParameterSet), END_ELEMENT] */
- if (v2gServiceParameterListType_ParameterSet_currArrayIndex < v2gServiceParameterListType->ParameterSet.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- errn = encode_v2gParameterSetType(stream, &v2gServiceParameterListType->ParameterSet.array [v2gServiceParameterListType_ParameterSet_currArrayIndex++]);
- }
- grammarID = 945;
- } else if (1==1) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- done = 1;
- }
- grammarID = 3;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 945:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}ParameterSet), END_ELEMENT] */
- if (v2gServiceParameterListType_ParameterSet_currArrayIndex < v2gServiceParameterListType->ParameterSet.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- errn = encode_v2gParameterSetType(stream, &v2gServiceParameterListType->ParameterSet.array [v2gServiceParameterListType_ParameterSet_currArrayIndex++]);
- }
- grammarID = 946;
- } else if (1==1) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- done = 1;
- }
- grammarID = 3;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 946:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}ParameterSet), END_ELEMENT] */
- if (v2gServiceParameterListType_ParameterSet_currArrayIndex < v2gServiceParameterListType->ParameterSet.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- errn = encode_v2gParameterSetType(stream, &v2gServiceParameterListType->ParameterSet.array [v2gServiceParameterListType_ParameterSet_currArrayIndex++]);
- }
- grammarID = 947;
- } else if (1==1) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- done = 1;
- }
- grammarID = 3;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 947:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}ParameterSet), END_ELEMENT] */
- if (v2gServiceParameterListType_ParameterSet_currArrayIndex < v2gServiceParameterListType->ParameterSet.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- errn = encode_v2gParameterSetType(stream, &v2gServiceParameterListType->ParameterSet.array [v2gServiceParameterListType_ParameterSet_currArrayIndex++]);
- }
- grammarID = 948;
- } else if (1==1) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- done = 1;
- }
- grammarID = 3;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 948:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}ParameterSet), END_ELEMENT] */
- if (v2gServiceParameterListType_ParameterSet_currArrayIndex < v2gServiceParameterListType->ParameterSet.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- errn = encode_v2gParameterSetType(stream, &v2gServiceParameterListType->ParameterSet.array [v2gServiceParameterListType_ParameterSet_currArrayIndex++]);
- }
- grammarID = 949;
- } else if (1==1) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- done = 1;
- }
- grammarID = 3;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 949:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}ParameterSet), END_ELEMENT] */
- if (v2gServiceParameterListType_ParameterSet_currArrayIndex < v2gServiceParameterListType->ParameterSet.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- errn = encode_v2gParameterSetType(stream, &v2gServiceParameterListType->ParameterSet.array [v2gServiceParameterListType_ParameterSet_currArrayIndex++]);
- }
- grammarID = 950;
- } else if (1==1) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- done = 1;
- }
- grammarID = 3;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 950:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}ParameterSet), END_ELEMENT] */
- if (v2gServiceParameterListType_ParameterSet_currArrayIndex < v2gServiceParameterListType->ParameterSet.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- errn = encode_v2gParameterSetType(stream, &v2gServiceParameterListType->ParameterSet.array [v2gServiceParameterListType_ParameterSet_currArrayIndex++]);
- }
- grammarID = 951;
- } else if (1==1) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- done = 1;
- }
- grammarID = 3;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 951:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}ParameterSet), END_ELEMENT] */
- if (v2gServiceParameterListType_ParameterSet_currArrayIndex < v2gServiceParameterListType->ParameterSet.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- errn = encode_v2gParameterSetType(stream, &v2gServiceParameterListType->ParameterSet.array [v2gServiceParameterListType_ParameterSet_currArrayIndex++]);
- }
- grammarID = 952;
- } else if (1==1) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- done = 1;
- }
- grammarID = 3;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 952:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}ParameterSet), END_ELEMENT] */
- if (v2gServiceParameterListType_ParameterSet_currArrayIndex < v2gServiceParameterListType->ParameterSet.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- errn = encode_v2gParameterSetType(stream, &v2gServiceParameterListType->ParameterSet.array [v2gServiceParameterListType_ParameterSet_currArrayIndex++]);
- }
- grammarID = 953;
- } else if (1==1) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- done = 1;
- }
- grammarID = 3;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 953:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}ParameterSet), END_ELEMENT] */
- if (v2gServiceParameterListType_ParameterSet_currArrayIndex < v2gServiceParameterListType->ParameterSet.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- errn = encode_v2gParameterSetType(stream, &v2gServiceParameterListType->ParameterSet.array [v2gServiceParameterListType_ParameterSet_currArrayIndex++]);
- }
- grammarID = 954;
- } else if (1==1) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- done = 1;
- }
- grammarID = 3;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 954:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}ParameterSet), END_ELEMENT] */
- if (v2gServiceParameterListType_ParameterSet_currArrayIndex < v2gServiceParameterListType->ParameterSet.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- errn = encode_v2gParameterSetType(stream, &v2gServiceParameterListType->ParameterSet.array [v2gServiceParameterListType_ParameterSet_currArrayIndex++]);
- }
- grammarID = 955;
- } else if (1==1) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- done = 1;
- }
- grammarID = 3;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 955:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}ParameterSet), END_ELEMENT] */
- if (v2gServiceParameterListType_ParameterSet_currArrayIndex < v2gServiceParameterListType->ParameterSet.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- errn = encode_v2gParameterSetType(stream, &v2gServiceParameterListType->ParameterSet.array [v2gServiceParameterListType_ParameterSet_currArrayIndex++]);
- }
- grammarID = 956;
- } else if (1==1) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- done = 1;
- }
- grammarID = 3;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 956:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}ParameterSet), END_ELEMENT] */
- if (v2gServiceParameterListType_ParameterSet_currArrayIndex < v2gServiceParameterListType->ParameterSet.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- errn = encode_v2gParameterSetType(stream, &v2gServiceParameterListType->ParameterSet.array [v2gServiceParameterListType_ParameterSet_currArrayIndex++]);
- }
- grammarID = 957;
- } else if (1==1) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- done = 1;
- }
- grammarID = 3;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 957:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}ParameterSet), END_ELEMENT] */
- if (v2gServiceParameterListType_ParameterSet_currArrayIndex < v2gServiceParameterListType->ParameterSet.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- errn = encode_v2gParameterSetType(stream, &v2gServiceParameterListType->ParameterSet.array [v2gServiceParameterListType_ParameterSet_currArrayIndex++]);
- }
- grammarID = 958;
- } else if (1==1) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- done = 1;
- }
- grammarID = 3;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 958:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}ParameterSet), END_ELEMENT] */
- if (v2gServiceParameterListType_ParameterSet_currArrayIndex < v2gServiceParameterListType->ParameterSet.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- errn = encode_v2gParameterSetType(stream, &v2gServiceParameterListType->ParameterSet.array [v2gServiceParameterListType_ParameterSet_currArrayIndex++]);
- }
- grammarID = 959;
- } else if (1==1) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- done = 1;
- }
- grammarID = 3;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 959:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}ParameterSet), END_ELEMENT] */
- if (v2gServiceParameterListType_ParameterSet_currArrayIndex < v2gServiceParameterListType->ParameterSet.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- errn = encode_v2gParameterSetType(stream, &v2gServiceParameterListType->ParameterSet.array [v2gServiceParameterListType_ParameterSet_currArrayIndex++]);
- }
- grammarID = 960;
- } else if (1==1) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- done = 1;
- }
- grammarID = 3;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 960:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}ParameterSet), END_ELEMENT] */
- if (v2gServiceParameterListType_ParameterSet_currArrayIndex < v2gServiceParameterListType->ParameterSet.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- errn = encode_v2gParameterSetType(stream, &v2gServiceParameterListType->ParameterSet.array [v2gServiceParameterListType_ParameterSet_currArrayIndex++]);
- }
- grammarID = 961;
- } else if (1==1) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- done = 1;
- }
- grammarID = 3;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 961:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}ParameterSet), END_ELEMENT] */
- if (v2gServiceParameterListType_ParameterSet_currArrayIndex < v2gServiceParameterListType->ParameterSet.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- errn = encode_v2gParameterSetType(stream, &v2gServiceParameterListType->ParameterSet.array [v2gServiceParameterListType_ParameterSet_currArrayIndex++]);
- }
- grammarID = 962;
- } else if (1==1) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- done = 1;
- }
- grammarID = 3;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 962:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}ParameterSet), END_ELEMENT] */
- if (v2gServiceParameterListType_ParameterSet_currArrayIndex < v2gServiceParameterListType->ParameterSet.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- errn = encode_v2gParameterSetType(stream, &v2gServiceParameterListType->ParameterSet.array [v2gServiceParameterListType_ParameterSet_currArrayIndex++]);
- }
- grammarID = 963;
- } else if (1==1) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- done = 1;
- }
- grammarID = 3;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 963:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}ParameterSet), END_ELEMENT] */
- if (v2gServiceParameterListType_ParameterSet_currArrayIndex < v2gServiceParameterListType->ParameterSet.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- errn = encode_v2gParameterSetType(stream, &v2gServiceParameterListType->ParameterSet.array [v2gServiceParameterListType_ParameterSet_currArrayIndex++]);
- }
- grammarID = 964;
- } else if (1==1) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- done = 1;
- }
- grammarID = 3;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 964:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}ParameterSet), END_ELEMENT] */
- if (v2gServiceParameterListType_ParameterSet_currArrayIndex < v2gServiceParameterListType->ParameterSet.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- errn = encode_v2gParameterSetType(stream, &v2gServiceParameterListType->ParameterSet.array [v2gServiceParameterListType_ParameterSet_currArrayIndex++]);
- }
- grammarID = 965;
- } else if (1==1) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- done = 1;
- }
- grammarID = 3;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 965:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}ParameterSet), END_ELEMENT] */
- if (v2gServiceParameterListType_ParameterSet_currArrayIndex < v2gServiceParameterListType->ParameterSet.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- errn = encode_v2gParameterSetType(stream, &v2gServiceParameterListType->ParameterSet.array [v2gServiceParameterListType_ParameterSet_currArrayIndex++]);
- }
- grammarID = 966;
- } else if (1==1) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- done = 1;
- }
- grammarID = 3;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 966:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}ParameterSet), END_ELEMENT] */
- if (v2gServiceParameterListType_ParameterSet_currArrayIndex < v2gServiceParameterListType->ParameterSet.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- errn = encode_v2gParameterSetType(stream, &v2gServiceParameterListType->ParameterSet.array [v2gServiceParameterListType_ParameterSet_currArrayIndex++]);
- }
- grammarID = 967;
- } else if (1==1) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- done = 1;
- }
- grammarID = 3;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 967:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}ParameterSet), END_ELEMENT] */
- if (v2gServiceParameterListType_ParameterSet_currArrayIndex < v2gServiceParameterListType->ParameterSet.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- errn = encode_v2gParameterSetType(stream, &v2gServiceParameterListType->ParameterSet.array [v2gServiceParameterListType_ParameterSet_currArrayIndex++]);
- }
- grammarID = 968;
- } else if (1==1) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- done = 1;
- }
- grammarID = 3;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 968:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}ParameterSet), END_ELEMENT] */
- if (v2gServiceParameterListType_ParameterSet_currArrayIndex < v2gServiceParameterListType->ParameterSet.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- errn = encode_v2gParameterSetType(stream, &v2gServiceParameterListType->ParameterSet.array [v2gServiceParameterListType_ParameterSet_currArrayIndex++]);
- }
- grammarID = 969;
- } else if (1==1) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- done = 1;
- }
- grammarID = 3;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 969:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}ParameterSet), END_ELEMENT] */
- if (v2gServiceParameterListType_ParameterSet_currArrayIndex < v2gServiceParameterListType->ParameterSet.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- errn = encode_v2gParameterSetType(stream, &v2gServiceParameterListType->ParameterSet.array [v2gServiceParameterListType_ParameterSet_currArrayIndex++]);
- }
- grammarID = 970;
- } else if (1==1) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- done = 1;
- }
- grammarID = 3;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 970:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}ParameterSet), END_ELEMENT] */
- if (v2gServiceParameterListType_ParameterSet_currArrayIndex < v2gServiceParameterListType->ParameterSet.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- errn = encode_v2gParameterSetType(stream, &v2gServiceParameterListType->ParameterSet.array [v2gServiceParameterListType_ParameterSet_currArrayIndex++]);
- }
- grammarID = 971;
- } else if (1==1) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- done = 1;
- }
- grammarID = 3;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 971:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}ParameterSet), END_ELEMENT] */
- if (v2gServiceParameterListType_ParameterSet_currArrayIndex < v2gServiceParameterListType->ParameterSet.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- errn = encode_v2gParameterSetType(stream, &v2gServiceParameterListType->ParameterSet.array [v2gServiceParameterListType_ParameterSet_currArrayIndex++]);
- }
- grammarID = 972;
- } else if (1==1) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- done = 1;
- }
- grammarID = 3;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 972:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}ParameterSet), END_ELEMENT] */
- if (v2gServiceParameterListType_ParameterSet_currArrayIndex < v2gServiceParameterListType->ParameterSet.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- errn = encode_v2gParameterSetType(stream, &v2gServiceParameterListType->ParameterSet.array [v2gServiceParameterListType_ParameterSet_currArrayIndex++]);
- }
- grammarID = 973;
- } else if (1==1) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- done = 1;
- }
- grammarID = 3;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 973:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}ParameterSet), END_ELEMENT] */
- if (v2gServiceParameterListType_ParameterSet_currArrayIndex < v2gServiceParameterListType->ParameterSet.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- errn = encode_v2gParameterSetType(stream, &v2gServiceParameterListType->ParameterSet.array [v2gServiceParameterListType_ParameterSet_currArrayIndex++]);
- }
- grammarID = 974;
- } else if (1==1) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- done = 1;
- }
- grammarID = 3;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 974:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}ParameterSet), END_ELEMENT] */
- if (v2gServiceParameterListType_ParameterSet_currArrayIndex < v2gServiceParameterListType->ParameterSet.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- errn = encode_v2gParameterSetType(stream, &v2gServiceParameterListType->ParameterSet.array [v2gServiceParameterListType_ParameterSet_currArrayIndex++]);
- }
- grammarID = 975;
- } else if (1==1) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- done = 1;
- }
- grammarID = 3;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 975:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}ParameterSet), END_ELEMENT] */
- if (v2gServiceParameterListType_ParameterSet_currArrayIndex < v2gServiceParameterListType->ParameterSet.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- errn = encode_v2gParameterSetType(stream, &v2gServiceParameterListType->ParameterSet.array [v2gServiceParameterListType_ParameterSet_currArrayIndex++]);
- }
- grammarID = 976;
- } else if (1==1) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- done = 1;
- }
- grammarID = 3;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 976:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}ParameterSet), END_ELEMENT] */
- if (v2gServiceParameterListType_ParameterSet_currArrayIndex < v2gServiceParameterListType->ParameterSet.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- errn = encode_v2gParameterSetType(stream, &v2gServiceParameterListType->ParameterSet.array [v2gServiceParameterListType_ParameterSet_currArrayIndex++]);
- }
- grammarID = 977;
- } else if (1==1) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- done = 1;
- }
- grammarID = 3;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 977:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}ParameterSet), END_ELEMENT] */
- if (v2gServiceParameterListType_ParameterSet_currArrayIndex < v2gServiceParameterListType->ParameterSet.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- errn = encode_v2gParameterSetType(stream, &v2gServiceParameterListType->ParameterSet.array [v2gServiceParameterListType_ParameterSet_currArrayIndex++]);
- }
- grammarID = 978;
- } else if (1==1) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- done = 1;
- }
- grammarID = 3;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 978:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}ParameterSet), END_ELEMENT] */
- if (v2gServiceParameterListType_ParameterSet_currArrayIndex < v2gServiceParameterListType->ParameterSet.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- errn = encode_v2gParameterSetType(stream, &v2gServiceParameterListType->ParameterSet.array [v2gServiceParameterListType_ParameterSet_currArrayIndex++]);
- }
- grammarID = 979;
- } else if (1==1) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- done = 1;
- }
- grammarID = 3;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 979:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}ParameterSet), END_ELEMENT] */
- if (v2gServiceParameterListType_ParameterSet_currArrayIndex < v2gServiceParameterListType->ParameterSet.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- errn = encode_v2gParameterSetType(stream, &v2gServiceParameterListType->ParameterSet.array [v2gServiceParameterListType_ParameterSet_currArrayIndex++]);
- }
- grammarID = 980;
- } else if (1==1) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- done = 1;
- }
- grammarID = 3;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 980:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}ParameterSet), END_ELEMENT] */
- if (v2gServiceParameterListType_ParameterSet_currArrayIndex < v2gServiceParameterListType->ParameterSet.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- errn = encode_v2gParameterSetType(stream, &v2gServiceParameterListType->ParameterSet.array [v2gServiceParameterListType_ParameterSet_currArrayIndex++]);
- }
- grammarID = 981;
- } else if (1==1) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- done = 1;
- }
- grammarID = 3;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 981:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}ParameterSet), END_ELEMENT] */
- if (v2gServiceParameterListType_ParameterSet_currArrayIndex < v2gServiceParameterListType->ParameterSet.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- errn = encode_v2gParameterSetType(stream, &v2gServiceParameterListType->ParameterSet.array [v2gServiceParameterListType_ParameterSet_currArrayIndex++]);
- }
- grammarID = 982;
- } else if (1==1) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- done = 1;
- }
- grammarID = 3;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 982:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}ParameterSet), END_ELEMENT] */
- if (v2gServiceParameterListType_ParameterSet_currArrayIndex < v2gServiceParameterListType->ParameterSet.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- errn = encode_v2gParameterSetType(stream, &v2gServiceParameterListType->ParameterSet.array [v2gServiceParameterListType_ParameterSet_currArrayIndex++]);
- }
- grammarID = 983;
- } else if (1==1) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- done = 1;
- }
- grammarID = 3;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 983:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}ParameterSet), END_ELEMENT] */
- if (v2gServiceParameterListType_ParameterSet_currArrayIndex < v2gServiceParameterListType->ParameterSet.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- errn = encode_v2gParameterSetType(stream, &v2gServiceParameterListType->ParameterSet.array [v2gServiceParameterListType_ParameterSet_currArrayIndex++]);
- }
- grammarID = 984;
- } else if (1==1) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- done = 1;
- }
- grammarID = 3;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 984:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}ParameterSet), END_ELEMENT] */
- if (v2gServiceParameterListType_ParameterSet_currArrayIndex < v2gServiceParameterListType->ParameterSet.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- errn = encode_v2gParameterSetType(stream, &v2gServiceParameterListType->ParameterSet.array [v2gServiceParameterListType_ParameterSet_currArrayIndex++]);
- }
- grammarID = 985;
- } else if (1==1) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- done = 1;
- }
- grammarID = 3;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 985:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}ParameterSet), END_ELEMENT] */
- if (v2gServiceParameterListType_ParameterSet_currArrayIndex < v2gServiceParameterListType->ParameterSet.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- errn = encode_v2gParameterSetType(stream, &v2gServiceParameterListType->ParameterSet.array [v2gServiceParameterListType_ParameterSet_currArrayIndex++]);
- }
- grammarID = 986;
- } else if (1==1) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- done = 1;
- }
- grammarID = 3;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 986:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}ParameterSet), END_ELEMENT] */
- if (v2gServiceParameterListType_ParameterSet_currArrayIndex < v2gServiceParameterListType->ParameterSet.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- errn = encode_v2gParameterSetType(stream, &v2gServiceParameterListType->ParameterSet.array [v2gServiceParameterListType_ParameterSet_currArrayIndex++]);
- }
- grammarID = 987;
- } else if (1==1) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- done = 1;
- }
- grammarID = 3;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 987:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}ParameterSet), END_ELEMENT] */
- if (v2gServiceParameterListType_ParameterSet_currArrayIndex < v2gServiceParameterListType->ParameterSet.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- errn = encode_v2gParameterSetType(stream, &v2gServiceParameterListType->ParameterSet.array [v2gServiceParameterListType_ParameterSet_currArrayIndex++]);
- }
- grammarID = 988;
- } else if (1==1) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- done = 1;
- }
- grammarID = 3;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 988:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}ParameterSet), END_ELEMENT] */
- if (v2gServiceParameterListType_ParameterSet_currArrayIndex < v2gServiceParameterListType->ParameterSet.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- errn = encode_v2gParameterSetType(stream, &v2gServiceParameterListType->ParameterSet.array [v2gServiceParameterListType_ParameterSet_currArrayIndex++]);
- }
- grammarID = 989;
- } else if (1==1) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- done = 1;
- }
- grammarID = 3;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 989:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}ParameterSet), END_ELEMENT] */
- if (v2gServiceParameterListType_ParameterSet_currArrayIndex < v2gServiceParameterListType->ParameterSet.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- errn = encode_v2gParameterSetType(stream, &v2gServiceParameterListType->ParameterSet.array [v2gServiceParameterListType_ParameterSet_currArrayIndex++]);
- }
- grammarID = 990;
- } else if (1==1) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- done = 1;
- }
- grammarID = 3;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 990:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}ParameterSet), END_ELEMENT] */
- if (v2gServiceParameterListType_ParameterSet_currArrayIndex < v2gServiceParameterListType->ParameterSet.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- errn = encode_v2gParameterSetType(stream, &v2gServiceParameterListType->ParameterSet.array [v2gServiceParameterListType_ParameterSet_currArrayIndex++]);
- }
- grammarID = 991;
- } else if (1==1) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- done = 1;
- }
- grammarID = 3;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 991:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}ParameterSet), END_ELEMENT] */
- if (v2gServiceParameterListType_ParameterSet_currArrayIndex < v2gServiceParameterListType->ParameterSet.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- errn = encode_v2gParameterSetType(stream, &v2gServiceParameterListType->ParameterSet.array [v2gServiceParameterListType_ParameterSet_currArrayIndex++]);
- }
- grammarID = 992;
- } else if (1==1) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- done = 1;
- }
- grammarID = 3;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 992:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}ParameterSet), END_ELEMENT] */
- if (v2gServiceParameterListType_ParameterSet_currArrayIndex < v2gServiceParameterListType->ParameterSet.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- errn = encode_v2gParameterSetType(stream, &v2gServiceParameterListType->ParameterSet.array [v2gServiceParameterListType_ParameterSet_currArrayIndex++]);
- }
- grammarID = 993;
- } else if (1==1) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- done = 1;
- }
- grammarID = 3;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 993:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}ParameterSet), END_ELEMENT] */
- if (v2gServiceParameterListType_ParameterSet_currArrayIndex < v2gServiceParameterListType->ParameterSet.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- errn = encode_v2gParameterSetType(stream, &v2gServiceParameterListType->ParameterSet.array [v2gServiceParameterListType_ParameterSet_currArrayIndex++]);
- }
- grammarID = 994;
- } else if (1==1) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- done = 1;
- }
- grammarID = 3;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 994:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}ParameterSet), END_ELEMENT] */
- if (v2gServiceParameterListType_ParameterSet_currArrayIndex < v2gServiceParameterListType->ParameterSet.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- errn = encode_v2gParameterSetType(stream, &v2gServiceParameterListType->ParameterSet.array [v2gServiceParameterListType_ParameterSet_currArrayIndex++]);
- }
- grammarID = 995;
- } else if (1==1) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- done = 1;
- }
- grammarID = 3;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 995:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}ParameterSet), END_ELEMENT] */
- if (v2gServiceParameterListType_ParameterSet_currArrayIndex < v2gServiceParameterListType->ParameterSet.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- errn = encode_v2gParameterSetType(stream, &v2gServiceParameterListType->ParameterSet.array [v2gServiceParameterListType_ParameterSet_currArrayIndex++]);
- }
- grammarID = 996;
- } else if (1==1) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- done = 1;
- }
- grammarID = 3;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 996:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}ParameterSet), END_ELEMENT] */
- if (v2gServiceParameterListType_ParameterSet_currArrayIndex < v2gServiceParameterListType->ParameterSet.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- errn = encode_v2gParameterSetType(stream, &v2gServiceParameterListType->ParameterSet.array [v2gServiceParameterListType_ParameterSet_currArrayIndex++]);
- }
- grammarID = 997;
- } else if (1==1) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- done = 1;
- }
- grammarID = 3;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 997:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}ParameterSet), END_ELEMENT] */
- if (v2gServiceParameterListType_ParameterSet_currArrayIndex < v2gServiceParameterListType->ParameterSet.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- errn = encode_v2gParameterSetType(stream, &v2gServiceParameterListType->ParameterSet.array [v2gServiceParameterListType_ParameterSet_currArrayIndex++]);
- }
- grammarID = 998;
- } else if (1==1) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- done = 1;
- }
- grammarID = 3;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 998:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}ParameterSet), END_ELEMENT] */
- if (v2gServiceParameterListType_ParameterSet_currArrayIndex < v2gServiceParameterListType->ParameterSet.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- errn = encode_v2gParameterSetType(stream, &v2gServiceParameterListType->ParameterSet.array [v2gServiceParameterListType_ParameterSet_currArrayIndex++]);
- }
- grammarID = 999;
- } else if (1==1) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- done = 1;
- }
- grammarID = 3;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 999:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}ParameterSet), END_ELEMENT] */
- if (v2gServiceParameterListType_ParameterSet_currArrayIndex < v2gServiceParameterListType->ParameterSet.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- errn = encode_v2gParameterSetType(stream, &v2gServiceParameterListType->ParameterSet.array [v2gServiceParameterListType_ParameterSet_currArrayIndex++]);
- }
- grammarID = 1000;
- } else if (1==1) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- done = 1;
- }
- grammarID = 3;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 1000:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}ParameterSet), END_ELEMENT] */
- if (v2gServiceParameterListType_ParameterSet_currArrayIndex < v2gServiceParameterListType->ParameterSet.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- errn = encode_v2gParameterSetType(stream, &v2gServiceParameterListType->ParameterSet.array [v2gServiceParameterListType_ParameterSet_currArrayIndex++]);
- }
- grammarID = 1001;
- } else if (1==1) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- done = 1;
- }
- grammarID = 3;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 1001:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}ParameterSet), END_ELEMENT] */
- if (v2gServiceParameterListType_ParameterSet_currArrayIndex < v2gServiceParameterListType->ParameterSet.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- errn = encode_v2gParameterSetType(stream, &v2gServiceParameterListType->ParameterSet.array [v2gServiceParameterListType_ParameterSet_currArrayIndex++]);
- }
- grammarID = 1002;
- } else if (1==1) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- done = 1;
- }
- grammarID = 3;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 1002:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}ParameterSet), END_ELEMENT] */
- if (v2gServiceParameterListType_ParameterSet_currArrayIndex < v2gServiceParameterListType->ParameterSet.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- errn = encode_v2gParameterSetType(stream, &v2gServiceParameterListType->ParameterSet.array [v2gServiceParameterListType_ParameterSet_currArrayIndex++]);
- }
- grammarID = 1003;
- } else if (1==1) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- done = 1;
- }
- grammarID = 3;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 1003:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}ParameterSet), END_ELEMENT] */
- if (v2gServiceParameterListType_ParameterSet_currArrayIndex < v2gServiceParameterListType->ParameterSet.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- errn = encode_v2gParameterSetType(stream, &v2gServiceParameterListType->ParameterSet.array [v2gServiceParameterListType_ParameterSet_currArrayIndex++]);
- }
- grammarID = 1004;
- } else if (1==1) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- done = 1;
- }
- grammarID = 3;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 1004:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}ParameterSet), END_ELEMENT] */
- if (v2gServiceParameterListType_ParameterSet_currArrayIndex < v2gServiceParameterListType->ParameterSet.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- errn = encode_v2gParameterSetType(stream, &v2gServiceParameterListType->ParameterSet.array [v2gServiceParameterListType_ParameterSet_currArrayIndex++]);
- }
- grammarID = 1005;
- } else if (1==1) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- done = 1;
- }
- grammarID = 3;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 1005:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}ParameterSet), END_ELEMENT] */
- if (v2gServiceParameterListType_ParameterSet_currArrayIndex < v2gServiceParameterListType->ParameterSet.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- errn = encode_v2gParameterSetType(stream, &v2gServiceParameterListType->ParameterSet.array [v2gServiceParameterListType_ParameterSet_currArrayIndex++]);
- }
- grammarID = 1006;
- } else if (1==1) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- done = 1;
- }
- grammarID = 3;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 1006:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}ParameterSet), END_ELEMENT] */
- if (v2gServiceParameterListType_ParameterSet_currArrayIndex < v2gServiceParameterListType->ParameterSet.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- errn = encode_v2gParameterSetType(stream, &v2gServiceParameterListType->ParameterSet.array [v2gServiceParameterListType_ParameterSet_currArrayIndex++]);
- }
- grammarID = 1007;
- } else if (1==1) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- done = 1;
- }
- grammarID = 3;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 1007:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}ParameterSet), END_ELEMENT] */
- if (v2gServiceParameterListType_ParameterSet_currArrayIndex < v2gServiceParameterListType->ParameterSet.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- errn = encode_v2gParameterSetType(stream, &v2gServiceParameterListType->ParameterSet.array [v2gServiceParameterListType_ParameterSet_currArrayIndex++]);
- }
- grammarID = 1008;
- } else if (1==1) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- done = 1;
- }
- grammarID = 3;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 1008:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}ParameterSet), END_ELEMENT] */
- if (v2gServiceParameterListType_ParameterSet_currArrayIndex < v2gServiceParameterListType->ParameterSet.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- errn = encode_v2gParameterSetType(stream, &v2gServiceParameterListType->ParameterSet.array [v2gServiceParameterListType_ParameterSet_currArrayIndex++]);
- }
- grammarID = 1009;
- } else if (1==1) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- done = 1;
- }
- grammarID = 3;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 1009:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}ParameterSet), END_ELEMENT] */
- if (v2gServiceParameterListType_ParameterSet_currArrayIndex < v2gServiceParameterListType->ParameterSet.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- errn = encode_v2gParameterSetType(stream, &v2gServiceParameterListType->ParameterSet.array [v2gServiceParameterListType_ParameterSet_currArrayIndex++]);
- }
- grammarID = 1010;
- } else if (1==1) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- done = 1;
- }
- grammarID = 3;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 1010:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}ParameterSet), END_ELEMENT] */
- if (v2gServiceParameterListType_ParameterSet_currArrayIndex < v2gServiceParameterListType->ParameterSet.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- errn = encode_v2gParameterSetType(stream, &v2gServiceParameterListType->ParameterSet.array [v2gServiceParameterListType_ParameterSet_currArrayIndex++]);
- }
- grammarID = 1011;
- } else if (1==1) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- done = 1;
- }
- grammarID = 3;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 1011:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}ParameterSet), END_ELEMENT] */
- if (v2gServiceParameterListType_ParameterSet_currArrayIndex < v2gServiceParameterListType->ParameterSet.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- errn = encode_v2gParameterSetType(stream, &v2gServiceParameterListType->ParameterSet.array [v2gServiceParameterListType_ParameterSet_currArrayIndex++]);
- }
- grammarID = 1012;
- } else if (1==1) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- done = 1;
- }
- grammarID = 3;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 1012:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}ParameterSet), END_ELEMENT] */
- if (v2gServiceParameterListType_ParameterSet_currArrayIndex < v2gServiceParameterListType->ParameterSet.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- errn = encode_v2gParameterSetType(stream, &v2gServiceParameterListType->ParameterSet.array [v2gServiceParameterListType_ParameterSet_currArrayIndex++]);
- }
- grammarID = 1013;
- } else if (1==1) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- done = 1;
- }
- grammarID = 3;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 1013:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}ParameterSet), END_ELEMENT] */
- if (v2gServiceParameterListType_ParameterSet_currArrayIndex < v2gServiceParameterListType->ParameterSet.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- errn = encode_v2gParameterSetType(stream, &v2gServiceParameterListType->ParameterSet.array [v2gServiceParameterListType_ParameterSet_currArrayIndex++]);
- }
- grammarID = 1014;
- } else if (1==1) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- done = 1;
- }
- grammarID = 3;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 1014:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}ParameterSet), END_ELEMENT] */
- if (v2gServiceParameterListType_ParameterSet_currArrayIndex < v2gServiceParameterListType->ParameterSet.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- errn = encode_v2gParameterSetType(stream, &v2gServiceParameterListType->ParameterSet.array [v2gServiceParameterListType_ParameterSet_currArrayIndex++]);
- }
- grammarID = 1015;
- } else if (1==1) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- done = 1;
- }
- grammarID = 3;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 1015:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}ParameterSet), END_ELEMENT] */
- if (v2gServiceParameterListType_ParameterSet_currArrayIndex < v2gServiceParameterListType->ParameterSet.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- errn = encode_v2gParameterSetType(stream, &v2gServiceParameterListType->ParameterSet.array [v2gServiceParameterListType_ParameterSet_currArrayIndex++]);
- }
- grammarID = 1016;
- } else if (1==1) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- done = 1;
- }
- grammarID = 3;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 1016:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}ParameterSet), END_ELEMENT] */
- if (v2gServiceParameterListType_ParameterSet_currArrayIndex < v2gServiceParameterListType->ParameterSet.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- errn = encode_v2gParameterSetType(stream, &v2gServiceParameterListType->ParameterSet.array [v2gServiceParameterListType_ParameterSet_currArrayIndex++]);
- }
- grammarID = 1017;
- } else if (1==1) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- done = 1;
- }
- grammarID = 3;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 1017:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}ParameterSet), END_ELEMENT] */
- if (v2gServiceParameterListType_ParameterSet_currArrayIndex < v2gServiceParameterListType->ParameterSet.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- errn = encode_v2gParameterSetType(stream, &v2gServiceParameterListType->ParameterSet.array [v2gServiceParameterListType_ParameterSet_currArrayIndex++]);
- }
- grammarID = 1018;
- } else if (1==1) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- done = 1;
- }
- grammarID = 3;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 1018:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}ParameterSet), END_ELEMENT] */
- if (v2gServiceParameterListType_ParameterSet_currArrayIndex < v2gServiceParameterListType->ParameterSet.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- errn = encode_v2gParameterSetType(stream, &v2gServiceParameterListType->ParameterSet.array [v2gServiceParameterListType_ParameterSet_currArrayIndex++]);
- }
- grammarID = 1019;
- } else if (1==1) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- done = 1;
- }
- grammarID = 3;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 1019:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}ParameterSet), END_ELEMENT] */
- if (v2gServiceParameterListType_ParameterSet_currArrayIndex < v2gServiceParameterListType->ParameterSet.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- errn = encode_v2gParameterSetType(stream, &v2gServiceParameterListType->ParameterSet.array [v2gServiceParameterListType_ParameterSet_currArrayIndex++]);
- }
- grammarID = 1020;
- } else if (1==1) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- done = 1;
- }
- grammarID = 3;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 1020:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}ParameterSet), END_ELEMENT] */
- if (v2gServiceParameterListType_ParameterSet_currArrayIndex < v2gServiceParameterListType->ParameterSet.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- errn = encode_v2gParameterSetType(stream, &v2gServiceParameterListType->ParameterSet.array [v2gServiceParameterListType_ParameterSet_currArrayIndex++]);
- }
- grammarID = 1021;
- } else if (1==1) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- done = 1;
- }
- grammarID = 3;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 1021:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}ParameterSet), END_ELEMENT] */
- if (v2gServiceParameterListType_ParameterSet_currArrayIndex < v2gServiceParameterListType->ParameterSet.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- errn = encode_v2gParameterSetType(stream, &v2gServiceParameterListType->ParameterSet.array [v2gServiceParameterListType_ParameterSet_currArrayIndex++]);
- }
- grammarID = 1022;
- } else if (1==1) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- done = 1;
- }
- grammarID = 3;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 1022:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}ParameterSet), END_ELEMENT] */
- if (v2gServiceParameterListType_ParameterSet_currArrayIndex < v2gServiceParameterListType->ParameterSet.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- errn = encode_v2gParameterSetType(stream, &v2gServiceParameterListType->ParameterSet.array [v2gServiceParameterListType_ParameterSet_currArrayIndex++]);
- }
- grammarID = 1023;
- } else if (1==1) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- done = 1;
- }
- grammarID = 3;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 1023:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}ParameterSet), END_ELEMENT] */
- if (v2gServiceParameterListType_ParameterSet_currArrayIndex < v2gServiceParameterListType->ParameterSet.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- errn = encode_v2gParameterSetType(stream, &v2gServiceParameterListType->ParameterSet.array [v2gServiceParameterListType_ParameterSet_currArrayIndex++]);
- }
- grammarID = 1024;
- } else if (1==1) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- done = 1;
- }
- grammarID = 3;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 1024:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}ParameterSet), END_ELEMENT] */
- if (v2gServiceParameterListType_ParameterSet_currArrayIndex < v2gServiceParameterListType->ParameterSet.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- errn = encode_v2gParameterSetType(stream, &v2gServiceParameterListType->ParameterSet.array [v2gServiceParameterListType_ParameterSet_currArrayIndex++]);
- }
- grammarID = 1025;
- } else if (1==1) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- done = 1;
- }
- grammarID = 3;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 1025:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}ParameterSet), END_ELEMENT] */
- if (v2gServiceParameterListType_ParameterSet_currArrayIndex < v2gServiceParameterListType->ParameterSet.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- errn = encode_v2gParameterSetType(stream, &v2gServiceParameterListType->ParameterSet.array [v2gServiceParameterListType_ParameterSet_currArrayIndex++]);
- }
- grammarID = 1026;
- } else if (1==1) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- done = 1;
- }
- grammarID = 3;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 1026:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}ParameterSet), END_ELEMENT] */
- if (v2gServiceParameterListType_ParameterSet_currArrayIndex < v2gServiceParameterListType->ParameterSet.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- errn = encode_v2gParameterSetType(stream, &v2gServiceParameterListType->ParameterSet.array [v2gServiceParameterListType_ParameterSet_currArrayIndex++]);
- }
- grammarID = 1027;
- } else if (1==1) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- done = 1;
- }
- grammarID = 3;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 1027:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}ParameterSet), END_ELEMENT] */
- if (v2gServiceParameterListType_ParameterSet_currArrayIndex < v2gServiceParameterListType->ParameterSet.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- errn = encode_v2gParameterSetType(stream, &v2gServiceParameterListType->ParameterSet.array [v2gServiceParameterListType_ParameterSet_currArrayIndex++]);
- }
- grammarID = 1028;
- } else if (1==1) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- done = 1;
- }
- grammarID = 3;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 1028:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}ParameterSet), END_ELEMENT] */
- if (v2gServiceParameterListType_ParameterSet_currArrayIndex < v2gServiceParameterListType->ParameterSet.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- errn = encode_v2gParameterSetType(stream, &v2gServiceParameterListType->ParameterSet.array [v2gServiceParameterListType_ParameterSet_currArrayIndex++]);
- }
- grammarID = 1029;
- } else if (1==1) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- done = 1;
- }
- grammarID = 3;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 1029:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}ParameterSet), END_ELEMENT] */
- if (v2gServiceParameterListType_ParameterSet_currArrayIndex < v2gServiceParameterListType->ParameterSet.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- errn = encode_v2gParameterSetType(stream, &v2gServiceParameterListType->ParameterSet.array [v2gServiceParameterListType_ParameterSet_currArrayIndex++]);
- }
- grammarID = 1030;
- } else if (1==1) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- done = 1;
- }
- grammarID = 3;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 1030:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}ParameterSet), END_ELEMENT] */
- if (v2gServiceParameterListType_ParameterSet_currArrayIndex < v2gServiceParameterListType->ParameterSet.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- errn = encode_v2gParameterSetType(stream, &v2gServiceParameterListType->ParameterSet.array [v2gServiceParameterListType_ParameterSet_currArrayIndex++]);
- }
- grammarID = 1031;
- } else if (1==1) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- done = 1;
- }
- grammarID = 3;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 1031:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}ParameterSet), END_ELEMENT] */
- if (v2gServiceParameterListType_ParameterSet_currArrayIndex < v2gServiceParameterListType->ParameterSet.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- errn = encode_v2gParameterSetType(stream, &v2gServiceParameterListType->ParameterSet.array [v2gServiceParameterListType_ParameterSet_currArrayIndex++]);
- }
- grammarID = 1032;
- } else if (1==1) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- done = 1;
- }
- grammarID = 3;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 1032:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}ParameterSet), END_ELEMENT] */
- if (v2gServiceParameterListType_ParameterSet_currArrayIndex < v2gServiceParameterListType->ParameterSet.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- errn = encode_v2gParameterSetType(stream, &v2gServiceParameterListType->ParameterSet.array [v2gServiceParameterListType_ParameterSet_currArrayIndex++]);
- }
- grammarID = 1033;
- } else if (1==1) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- done = 1;
- }
- grammarID = 3;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 1033:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}ParameterSet), END_ELEMENT] */
- if (v2gServiceParameterListType_ParameterSet_currArrayIndex < v2gServiceParameterListType->ParameterSet.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- errn = encode_v2gParameterSetType(stream, &v2gServiceParameterListType->ParameterSet.array [v2gServiceParameterListType_ParameterSet_currArrayIndex++]);
- }
- grammarID = 1034;
- } else if (1==1) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- done = 1;
- }
- grammarID = 3;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 1034:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}ParameterSet), END_ELEMENT] */
- if (v2gServiceParameterListType_ParameterSet_currArrayIndex < v2gServiceParameterListType->ParameterSet.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- errn = encode_v2gParameterSetType(stream, &v2gServiceParameterListType->ParameterSet.array [v2gServiceParameterListType_ParameterSet_currArrayIndex++]);
- }
- grammarID = 1035;
- } else if (1==1) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- done = 1;
- }
- grammarID = 3;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 1035:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}ParameterSet), END_ELEMENT] */
- if (v2gServiceParameterListType_ParameterSet_currArrayIndex < v2gServiceParameterListType->ParameterSet.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- errn = encode_v2gParameterSetType(stream, &v2gServiceParameterListType->ParameterSet.array [v2gServiceParameterListType_ParameterSet_currArrayIndex++]);
- }
- grammarID = 1036;
- } else if (1==1) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- done = 1;
- }
- grammarID = 3;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 1036:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}ParameterSet), END_ELEMENT] */
- if (v2gServiceParameterListType_ParameterSet_currArrayIndex < v2gServiceParameterListType->ParameterSet.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- errn = encode_v2gParameterSetType(stream, &v2gServiceParameterListType->ParameterSet.array [v2gServiceParameterListType_ParameterSet_currArrayIndex++]);
- }
- grammarID = 1037;
- } else if (1==1) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- done = 1;
- }
- grammarID = 3;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 1037:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}ParameterSet), END_ELEMENT] */
- if (v2gServiceParameterListType_ParameterSet_currArrayIndex < v2gServiceParameterListType->ParameterSet.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- errn = encode_v2gParameterSetType(stream, &v2gServiceParameterListType->ParameterSet.array [v2gServiceParameterListType_ParameterSet_currArrayIndex++]);
- }
- grammarID = 1038;
- } else if (1==1) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- done = 1;
- }
- grammarID = 3;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 1038:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}ParameterSet), END_ELEMENT] */
- if (v2gServiceParameterListType_ParameterSet_currArrayIndex < v2gServiceParameterListType->ParameterSet.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- errn = encode_v2gParameterSetType(stream, &v2gServiceParameterListType->ParameterSet.array [v2gServiceParameterListType_ParameterSet_currArrayIndex++]);
- }
- grammarID = 1039;
- } else if (1==1) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- done = 1;
- }
- grammarID = 3;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 1039:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}ParameterSet), END_ELEMENT] */
- if (v2gServiceParameterListType_ParameterSet_currArrayIndex < v2gServiceParameterListType->ParameterSet.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- errn = encode_v2gParameterSetType(stream, &v2gServiceParameterListType->ParameterSet.array [v2gServiceParameterListType_ParameterSet_currArrayIndex++]);
- }
- grammarID = 1040;
- } else if (1==1) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- done = 1;
- }
- grammarID = 3;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 1040:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}ParameterSet), END_ELEMENT] */
- if (v2gServiceParameterListType_ParameterSet_currArrayIndex < v2gServiceParameterListType->ParameterSet.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- errn = encode_v2gParameterSetType(stream, &v2gServiceParameterListType->ParameterSet.array [v2gServiceParameterListType_ParameterSet_currArrayIndex++]);
- }
- grammarID = 1041;
- } else if (1==1) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- done = 1;
- }
- grammarID = 3;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 1041:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}ParameterSet), END_ELEMENT] */
- if (v2gServiceParameterListType_ParameterSet_currArrayIndex < v2gServiceParameterListType->ParameterSet.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- errn = encode_v2gParameterSetType(stream, &v2gServiceParameterListType->ParameterSet.array [v2gServiceParameterListType_ParameterSet_currArrayIndex++]);
- }
- grammarID = 1042;
- } else if (1==1) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- done = 1;
- }
- grammarID = 3;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 1042:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}ParameterSet), END_ELEMENT] */
- if (v2gServiceParameterListType_ParameterSet_currArrayIndex < v2gServiceParameterListType->ParameterSet.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- errn = encode_v2gParameterSetType(stream, &v2gServiceParameterListType->ParameterSet.array [v2gServiceParameterListType_ParameterSet_currArrayIndex++]);
- }
- grammarID = 1043;
- } else if (1==1) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- done = 1;
- }
- grammarID = 3;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 1043:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}ParameterSet), END_ELEMENT] */
- if (v2gServiceParameterListType_ParameterSet_currArrayIndex < v2gServiceParameterListType->ParameterSet.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- errn = encode_v2gParameterSetType(stream, &v2gServiceParameterListType->ParameterSet.array [v2gServiceParameterListType_ParameterSet_currArrayIndex++]);
- }
- grammarID = 1044;
- } else if (1==1) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- done = 1;
- }
- grammarID = 3;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 1044:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}ParameterSet), END_ELEMENT] */
- if (v2gServiceParameterListType_ParameterSet_currArrayIndex < v2gServiceParameterListType->ParameterSet.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- errn = encode_v2gParameterSetType(stream, &v2gServiceParameterListType->ParameterSet.array [v2gServiceParameterListType_ParameterSet_currArrayIndex++]);
- }
- grammarID = 1045;
- } else if (1==1) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- done = 1;
- }
- grammarID = 3;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 1045:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}ParameterSet), END_ELEMENT] */
- if (v2gServiceParameterListType_ParameterSet_currArrayIndex < v2gServiceParameterListType->ParameterSet.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- errn = encode_v2gParameterSetType(stream, &v2gServiceParameterListType->ParameterSet.array [v2gServiceParameterListType_ParameterSet_currArrayIndex++]);
- }
- grammarID = 1046;
- } else if (1==1) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- done = 1;
- }
- grammarID = 3;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 1046:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}ParameterSet), END_ELEMENT] */
- if (v2gServiceParameterListType_ParameterSet_currArrayIndex < v2gServiceParameterListType->ParameterSet.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- errn = encode_v2gParameterSetType(stream, &v2gServiceParameterListType->ParameterSet.array [v2gServiceParameterListType_ParameterSet_currArrayIndex++]);
- }
- grammarID = 1047;
- } else if (1==1) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- done = 1;
- }
- grammarID = 3;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 1047:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}ParameterSet), END_ELEMENT] */
- if (v2gServiceParameterListType_ParameterSet_currArrayIndex < v2gServiceParameterListType->ParameterSet.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- errn = encode_v2gParameterSetType(stream, &v2gServiceParameterListType->ParameterSet.array [v2gServiceParameterListType_ParameterSet_currArrayIndex++]);
- }
- grammarID = 1048;
- } else if (1==1) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- done = 1;
- }
- grammarID = 3;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 1048:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}ParameterSet), END_ELEMENT] */
- if (v2gServiceParameterListType_ParameterSet_currArrayIndex < v2gServiceParameterListType->ParameterSet.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- errn = encode_v2gParameterSetType(stream, &v2gServiceParameterListType->ParameterSet.array [v2gServiceParameterListType_ParameterSet_currArrayIndex++]);
- }
- grammarID = 1049;
- } else if (1==1) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- done = 1;
- }
- grammarID = 3;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 1049:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}ParameterSet), END_ELEMENT] */
- if (v2gServiceParameterListType_ParameterSet_currArrayIndex < v2gServiceParameterListType->ParameterSet.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- errn = encode_v2gParameterSetType(stream, &v2gServiceParameterListType->ParameterSet.array [v2gServiceParameterListType_ParameterSet_currArrayIndex++]);
- }
- grammarID = 1050;
- } else if (1==1) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- done = 1;
- }
- grammarID = 3;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 1050:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}ParameterSet), END_ELEMENT] */
- if (v2gServiceParameterListType_ParameterSet_currArrayIndex < v2gServiceParameterListType->ParameterSet.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- errn = encode_v2gParameterSetType(stream, &v2gServiceParameterListType->ParameterSet.array [v2gServiceParameterListType_ParameterSet_currArrayIndex++]);
- }
- grammarID = 1051;
- } else if (1==1) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- done = 1;
- }
- grammarID = 3;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 1051:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}ParameterSet), END_ELEMENT] */
- if (v2gServiceParameterListType_ParameterSet_currArrayIndex < v2gServiceParameterListType->ParameterSet.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- errn = encode_v2gParameterSetType(stream, &v2gServiceParameterListType->ParameterSet.array [v2gServiceParameterListType_ParameterSet_currArrayIndex++]);
- }
- grammarID = 1052;
- } else if (1==1) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- done = 1;
- }
- grammarID = 3;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 1052:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}ParameterSet), END_ELEMENT] */
- if (v2gServiceParameterListType_ParameterSet_currArrayIndex < v2gServiceParameterListType->ParameterSet.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- errn = encode_v2gParameterSetType(stream, &v2gServiceParameterListType->ParameterSet.array [v2gServiceParameterListType_ParameterSet_currArrayIndex++]);
- }
- grammarID = 1053;
- } else if (1==1) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- done = 1;
- }
- grammarID = 3;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 1053:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}ParameterSet), END_ELEMENT] */
- if (v2gServiceParameterListType_ParameterSet_currArrayIndex < v2gServiceParameterListType->ParameterSet.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- errn = encode_v2gParameterSetType(stream, &v2gServiceParameterListType->ParameterSet.array [v2gServiceParameterListType_ParameterSet_currArrayIndex++]);
- }
- grammarID = 1054;
- } else if (1==1) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- done = 1;
- }
- grammarID = 3;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 1054:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}ParameterSet), END_ELEMENT] */
- if (v2gServiceParameterListType_ParameterSet_currArrayIndex < v2gServiceParameterListType->ParameterSet.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- errn = encode_v2gParameterSetType(stream, &v2gServiceParameterListType->ParameterSet.array [v2gServiceParameterListType_ParameterSet_currArrayIndex++]);
- }
- grammarID = 1055;
- } else if (1==1) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- done = 1;
- }
- grammarID = 3;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 1055:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}ParameterSet), END_ELEMENT] */
- if (v2gServiceParameterListType_ParameterSet_currArrayIndex < v2gServiceParameterListType->ParameterSet.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- errn = encode_v2gParameterSetType(stream, &v2gServiceParameterListType->ParameterSet.array [v2gServiceParameterListType_ParameterSet_currArrayIndex++]);
- }
- grammarID = 1056;
- } else if (1==1) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- done = 1;
- }
- grammarID = 3;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 1056:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}ParameterSet), END_ELEMENT] */
- if (v2gServiceParameterListType_ParameterSet_currArrayIndex < v2gServiceParameterListType->ParameterSet.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- errn = encode_v2gParameterSetType(stream, &v2gServiceParameterListType->ParameterSet.array [v2gServiceParameterListType_ParameterSet_currArrayIndex++]);
- }
- grammarID = 1057;
- } else if (1==1) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- done = 1;
- }
- grammarID = 3;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 1057:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}ParameterSet), END_ELEMENT] */
- if (v2gServiceParameterListType_ParameterSet_currArrayIndex < v2gServiceParameterListType->ParameterSet.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- errn = encode_v2gParameterSetType(stream, &v2gServiceParameterListType->ParameterSet.array [v2gServiceParameterListType_ParameterSet_currArrayIndex++]);
- }
- grammarID = 1058;
- } else if (1==1) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- done = 1;
- }
- grammarID = 3;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 1058:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}ParameterSet), END_ELEMENT] */
- if (v2gServiceParameterListType_ParameterSet_currArrayIndex < v2gServiceParameterListType->ParameterSet.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- errn = encode_v2gParameterSetType(stream, &v2gServiceParameterListType->ParameterSet.array [v2gServiceParameterListType_ParameterSet_currArrayIndex++]);
- }
- grammarID = 1059;
- } else if (1==1) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- done = 1;
- }
- grammarID = 3;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 1059:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}ParameterSet), END_ELEMENT] */
- if (v2gServiceParameterListType_ParameterSet_currArrayIndex < v2gServiceParameterListType->ParameterSet.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- errn = encode_v2gParameterSetType(stream, &v2gServiceParameterListType->ParameterSet.array [v2gServiceParameterListType_ParameterSet_currArrayIndex++]);
- }
- grammarID = 1060;
- } else if (1==1) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- done = 1;
- }
- grammarID = 3;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 1060:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}ParameterSet), END_ELEMENT] */
- if (v2gServiceParameterListType_ParameterSet_currArrayIndex < v2gServiceParameterListType->ParameterSet.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- errn = encode_v2gParameterSetType(stream, &v2gServiceParameterListType->ParameterSet.array [v2gServiceParameterListType_ParameterSet_currArrayIndex++]);
- }
- grammarID = 1061;
- } else if (1==1) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- done = 1;
- }
- grammarID = 3;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 1061:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}ParameterSet), END_ELEMENT] */
- if (v2gServiceParameterListType_ParameterSet_currArrayIndex < v2gServiceParameterListType->ParameterSet.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- errn = encode_v2gParameterSetType(stream, &v2gServiceParameterListType->ParameterSet.array [v2gServiceParameterListType_ParameterSet_currArrayIndex++]);
- }
- grammarID = 1062;
- } else if (1==1) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- done = 1;
- }
- grammarID = 3;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 1062:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}ParameterSet), END_ELEMENT] */
- if (v2gServiceParameterListType_ParameterSet_currArrayIndex < v2gServiceParameterListType->ParameterSet.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- errn = encode_v2gParameterSetType(stream, &v2gServiceParameterListType->ParameterSet.array [v2gServiceParameterListType_ParameterSet_currArrayIndex++]);
- }
- grammarID = 1063;
- } else if (1==1) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- done = 1;
- }
- grammarID = 3;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 1063:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}ParameterSet), END_ELEMENT] */
- if (v2gServiceParameterListType_ParameterSet_currArrayIndex < v2gServiceParameterListType->ParameterSet.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- errn = encode_v2gParameterSetType(stream, &v2gServiceParameterListType->ParameterSet.array [v2gServiceParameterListType_ParameterSet_currArrayIndex++]);
- }
- grammarID = 1064;
- } else if (1==1) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- done = 1;
- }
- grammarID = 3;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 1064:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}ParameterSet), END_ELEMENT] */
- if (v2gServiceParameterListType_ParameterSet_currArrayIndex < v2gServiceParameterListType->ParameterSet.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- errn = encode_v2gParameterSetType(stream, &v2gServiceParameterListType->ParameterSet.array [v2gServiceParameterListType_ParameterSet_currArrayIndex++]);
- }
- grammarID = 1065;
- } else if (1==1) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- done = 1;
- }
- grammarID = 3;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 1065:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}ParameterSet), END_ELEMENT] */
- if (v2gServiceParameterListType_ParameterSet_currArrayIndex < v2gServiceParameterListType->ParameterSet.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- errn = encode_v2gParameterSetType(stream, &v2gServiceParameterListType->ParameterSet.array [v2gServiceParameterListType_ParameterSet_currArrayIndex++]);
- }
- grammarID = 1066;
- } else if (1==1) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- done = 1;
- }
- grammarID = 3;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 1066:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}ParameterSet), END_ELEMENT] */
- if (v2gServiceParameterListType_ParameterSet_currArrayIndex < v2gServiceParameterListType->ParameterSet.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- errn = encode_v2gParameterSetType(stream, &v2gServiceParameterListType->ParameterSet.array [v2gServiceParameterListType_ParameterSet_currArrayIndex++]);
- }
- grammarID = 1067;
- } else if (1==1) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- done = 1;
- }
- grammarID = 3;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 1067:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}ParameterSet), END_ELEMENT] */
- if (v2gServiceParameterListType_ParameterSet_currArrayIndex < v2gServiceParameterListType->ParameterSet.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- errn = encode_v2gParameterSetType(stream, &v2gServiceParameterListType->ParameterSet.array [v2gServiceParameterListType_ParameterSet_currArrayIndex++]);
- }
- grammarID = 1068;
- } else if (1==1) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- done = 1;
- }
- grammarID = 3;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 1068:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}ParameterSet), END_ELEMENT] */
- if (v2gServiceParameterListType_ParameterSet_currArrayIndex < v2gServiceParameterListType->ParameterSet.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- errn = encode_v2gParameterSetType(stream, &v2gServiceParameterListType->ParameterSet.array [v2gServiceParameterListType_ParameterSet_currArrayIndex++]);
- }
- grammarID = 1069;
- } else if (1==1) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- done = 1;
- }
- grammarID = 3;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 1069:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}ParameterSet), END_ELEMENT] */
- if (v2gServiceParameterListType_ParameterSet_currArrayIndex < v2gServiceParameterListType->ParameterSet.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- errn = encode_v2gParameterSetType(stream, &v2gServiceParameterListType->ParameterSet.array [v2gServiceParameterListType_ParameterSet_currArrayIndex++]);
- }
- grammarID = 1070;
- } else if (1==1) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- done = 1;
- }
- grammarID = 3;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 1070:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}ParameterSet), END_ELEMENT] */
- if (v2gServiceParameterListType_ParameterSet_currArrayIndex < v2gServiceParameterListType->ParameterSet.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- errn = encode_v2gParameterSetType(stream, &v2gServiceParameterListType->ParameterSet.array [v2gServiceParameterListType_ParameterSet_currArrayIndex++]);
- }
- grammarID = 1071;
- } else if (1==1) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- done = 1;
- }
- grammarID = 3;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 1071:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}ParameterSet), END_ELEMENT] */
- if (v2gServiceParameterListType_ParameterSet_currArrayIndex < v2gServiceParameterListType->ParameterSet.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- errn = encode_v2gParameterSetType(stream, &v2gServiceParameterListType->ParameterSet.array [v2gServiceParameterListType_ParameterSet_currArrayIndex++]);
- }
- grammarID = 1072;
- } else if (1==1) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- done = 1;
- }
- grammarID = 3;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 1072:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}ParameterSet), END_ELEMENT] */
- if (v2gServiceParameterListType_ParameterSet_currArrayIndex < v2gServiceParameterListType->ParameterSet.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- errn = encode_v2gParameterSetType(stream, &v2gServiceParameterListType->ParameterSet.array [v2gServiceParameterListType_ParameterSet_currArrayIndex++]);
- }
- grammarID = 1073;
- } else if (1==1) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- done = 1;
- }
- grammarID = 3;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 1073:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}ParameterSet), END_ELEMENT] */
- if (v2gServiceParameterListType_ParameterSet_currArrayIndex < v2gServiceParameterListType->ParameterSet.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- errn = encode_v2gParameterSetType(stream, &v2gServiceParameterListType->ParameterSet.array [v2gServiceParameterListType_ParameterSet_currArrayIndex++]);
- }
- grammarID = 1074;
- } else if (1==1) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- done = 1;
- }
- grammarID = 3;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 1074:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}ParameterSet), END_ELEMENT] */
- if (v2gServiceParameterListType_ParameterSet_currArrayIndex < v2gServiceParameterListType->ParameterSet.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- errn = encode_v2gParameterSetType(stream, &v2gServiceParameterListType->ParameterSet.array [v2gServiceParameterListType_ParameterSet_currArrayIndex++]);
- }
- grammarID = 1075;
- } else if (1==1) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- done = 1;
- }
- grammarID = 3;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 1075:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}ParameterSet), END_ELEMENT] */
- if (v2gServiceParameterListType_ParameterSet_currArrayIndex < v2gServiceParameterListType->ParameterSet.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- errn = encode_v2gParameterSetType(stream, &v2gServiceParameterListType->ParameterSet.array [v2gServiceParameterListType_ParameterSet_currArrayIndex++]);
- }
- grammarID = 1076;
- } else if (1==1) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- done = 1;
- }
- grammarID = 3;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 1076:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}ParameterSet), END_ELEMENT] */
- if (v2gServiceParameterListType_ParameterSet_currArrayIndex < v2gServiceParameterListType->ParameterSet.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- errn = encode_v2gParameterSetType(stream, &v2gServiceParameterListType->ParameterSet.array [v2gServiceParameterListType_ParameterSet_currArrayIndex++]);
- }
- grammarID = 1077;
- } else if (1==1) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- done = 1;
- }
- grammarID = 3;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 1077:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}ParameterSet), END_ELEMENT] */
- if (v2gServiceParameterListType_ParameterSet_currArrayIndex < v2gServiceParameterListType->ParameterSet.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- errn = encode_v2gParameterSetType(stream, &v2gServiceParameterListType->ParameterSet.array [v2gServiceParameterListType_ParameterSet_currArrayIndex++]);
- }
- grammarID = 1078;
- } else if (1==1) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- done = 1;
- }
- grammarID = 3;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 1078:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}ParameterSet), END_ELEMENT] */
- if (v2gServiceParameterListType_ParameterSet_currArrayIndex < v2gServiceParameterListType->ParameterSet.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- errn = encode_v2gParameterSetType(stream, &v2gServiceParameterListType->ParameterSet.array [v2gServiceParameterListType_ParameterSet_currArrayIndex++]);
- }
- grammarID = 1079;
- } else if (1==1) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- done = 1;
- }
- grammarID = 3;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 1079:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}ParameterSet), END_ELEMENT] */
- if (v2gServiceParameterListType_ParameterSet_currArrayIndex < v2gServiceParameterListType->ParameterSet.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- errn = encode_v2gParameterSetType(stream, &v2gServiceParameterListType->ParameterSet.array [v2gServiceParameterListType_ParameterSet_currArrayIndex++]);
- }
- grammarID = 1080;
- } else if (1==1) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- done = 1;
- }
- grammarID = 3;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 1080:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}ParameterSet), END_ELEMENT] */
- if (v2gServiceParameterListType_ParameterSet_currArrayIndex < v2gServiceParameterListType->ParameterSet.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- errn = encode_v2gParameterSetType(stream, &v2gServiceParameterListType->ParameterSet.array [v2gServiceParameterListType_ParameterSet_currArrayIndex++]);
- }
- grammarID = 1081;
- } else if (1==1) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- done = 1;
- }
- grammarID = 3;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 1081:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}ParameterSet), END_ELEMENT] */
- if (v2gServiceParameterListType_ParameterSet_currArrayIndex < v2gServiceParameterListType->ParameterSet.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- errn = encode_v2gParameterSetType(stream, &v2gServiceParameterListType->ParameterSet.array [v2gServiceParameterListType_ParameterSet_currArrayIndex++]);
- }
- grammarID = 1082;
- } else if (1==1) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- done = 1;
- }
- grammarID = 3;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 1082:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}ParameterSet), END_ELEMENT] */
- if (v2gServiceParameterListType_ParameterSet_currArrayIndex < v2gServiceParameterListType->ParameterSet.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- errn = encode_v2gParameterSetType(stream, &v2gServiceParameterListType->ParameterSet.array [v2gServiceParameterListType_ParameterSet_currArrayIndex++]);
- }
- grammarID = 1083;
- } else if (1==1) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- done = 1;
- }
- grammarID = 3;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 1083:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}ParameterSet), END_ELEMENT] */
- if (v2gServiceParameterListType_ParameterSet_currArrayIndex < v2gServiceParameterListType->ParameterSet.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- errn = encode_v2gParameterSetType(stream, &v2gServiceParameterListType->ParameterSet.array [v2gServiceParameterListType_ParameterSet_currArrayIndex++]);
- }
- grammarID = 1084;
- } else if (1==1) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- done = 1;
- }
- grammarID = 3;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 1084:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}ParameterSet), END_ELEMENT] */
- if (v2gServiceParameterListType_ParameterSet_currArrayIndex < v2gServiceParameterListType->ParameterSet.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- errn = encode_v2gParameterSetType(stream, &v2gServiceParameterListType->ParameterSet.array [v2gServiceParameterListType_ParameterSet_currArrayIndex++]);
- }
- grammarID = 1085;
- } else if (1==1) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- done = 1;
- }
- grammarID = 3;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 1085:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}ParameterSet), END_ELEMENT] */
- if (v2gServiceParameterListType_ParameterSet_currArrayIndex < v2gServiceParameterListType->ParameterSet.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- errn = encode_v2gParameterSetType(stream, &v2gServiceParameterListType->ParameterSet.array [v2gServiceParameterListType_ParameterSet_currArrayIndex++]);
- }
- grammarID = 1086;
- } else if (1==1) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- done = 1;
- }
- grammarID = 3;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 1086:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}ParameterSet), END_ELEMENT] */
- if (v2gServiceParameterListType_ParameterSet_currArrayIndex < v2gServiceParameterListType->ParameterSet.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- errn = encode_v2gParameterSetType(stream, &v2gServiceParameterListType->ParameterSet.array [v2gServiceParameterListType_ParameterSet_currArrayIndex++]);
- }
- grammarID = 1087;
- } else if (1==1) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- done = 1;
- }
- grammarID = 3;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 1087:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}ParameterSet), END_ELEMENT] */
- if (v2gServiceParameterListType_ParameterSet_currArrayIndex < v2gServiceParameterListType->ParameterSet.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- errn = encode_v2gParameterSetType(stream, &v2gServiceParameterListType->ParameterSet.array [v2gServiceParameterListType_ParameterSet_currArrayIndex++]);
- }
- grammarID = 1088;
- } else if (1==1) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- done = 1;
- }
- grammarID = 3;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 1088:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}ParameterSet), END_ELEMENT] */
- if (v2gServiceParameterListType_ParameterSet_currArrayIndex < v2gServiceParameterListType->ParameterSet.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- errn = encode_v2gParameterSetType(stream, &v2gServiceParameterListType->ParameterSet.array [v2gServiceParameterListType_ParameterSet_currArrayIndex++]);
- }
- grammarID = 1089;
- } else if (1==1) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- done = 1;
- }
- grammarID = 3;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 1089:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}ParameterSet), END_ELEMENT] */
- if (v2gServiceParameterListType_ParameterSet_currArrayIndex < v2gServiceParameterListType->ParameterSet.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- errn = encode_v2gParameterSetType(stream, &v2gServiceParameterListType->ParameterSet.array [v2gServiceParameterListType_ParameterSet_currArrayIndex++]);
- }
- grammarID = 1090;
- } else if (1==1) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- done = 1;
- }
- grammarID = 3;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 1090:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}ParameterSet), END_ELEMENT] */
- if (v2gServiceParameterListType_ParameterSet_currArrayIndex < v2gServiceParameterListType->ParameterSet.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- errn = encode_v2gParameterSetType(stream, &v2gServiceParameterListType->ParameterSet.array [v2gServiceParameterListType_ParameterSet_currArrayIndex++]);
- }
- grammarID = 1091;
- } else if (1==1) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- done = 1;
- }
- grammarID = 3;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 1091:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}ParameterSet), END_ELEMENT] */
- if (v2gServiceParameterListType_ParameterSet_currArrayIndex < v2gServiceParameterListType->ParameterSet.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- errn = encode_v2gParameterSetType(stream, &v2gServiceParameterListType->ParameterSet.array [v2gServiceParameterListType_ParameterSet_currArrayIndex++]);
- }
- grammarID = 1092;
- } else if (1==1) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- done = 1;
- }
- grammarID = 3;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 1092:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}ParameterSet), END_ELEMENT] */
- if (v2gServiceParameterListType_ParameterSet_currArrayIndex < v2gServiceParameterListType->ParameterSet.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- errn = encode_v2gParameterSetType(stream, &v2gServiceParameterListType->ParameterSet.array [v2gServiceParameterListType_ParameterSet_currArrayIndex++]);
- }
- grammarID = 1093;
- } else if (1==1) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- done = 1;
- }
- grammarID = 3;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 1093:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}ParameterSet), END_ELEMENT] */
- if (v2gServiceParameterListType_ParameterSet_currArrayIndex < v2gServiceParameterListType->ParameterSet.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- errn = encode_v2gParameterSetType(stream, &v2gServiceParameterListType->ParameterSet.array [v2gServiceParameterListType_ParameterSet_currArrayIndex++]);
- }
- grammarID = 1094;
- } else if (1==1) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- done = 1;
- }
- grammarID = 3;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 1094:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}ParameterSet), END_ELEMENT] */
- if (v2gServiceParameterListType_ParameterSet_currArrayIndex < v2gServiceParameterListType->ParameterSet.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- errn = encode_v2gParameterSetType(stream, &v2gServiceParameterListType->ParameterSet.array [v2gServiceParameterListType_ParameterSet_currArrayIndex++]);
- }
- grammarID = 1095;
- } else if (1==1) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- done = 1;
- }
- grammarID = 3;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 1095:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}ParameterSet), END_ELEMENT] */
- if (v2gServiceParameterListType_ParameterSet_currArrayIndex < v2gServiceParameterListType->ParameterSet.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- errn = encode_v2gParameterSetType(stream, &v2gServiceParameterListType->ParameterSet.array [v2gServiceParameterListType_ParameterSet_currArrayIndex++]);
- }
- grammarID = 1096;
- } else if (1==1) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- done = 1;
- }
- grammarID = 3;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 1096:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}ParameterSet), END_ELEMENT] */
- if (v2gServiceParameterListType_ParameterSet_currArrayIndex < v2gServiceParameterListType->ParameterSet.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- errn = encode_v2gParameterSetType(stream, &v2gServiceParameterListType->ParameterSet.array [v2gServiceParameterListType_ParameterSet_currArrayIndex++]);
- }
- grammarID = 1097;
- } else if (1==1) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- done = 1;
- }
- grammarID = 3;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 1097:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}ParameterSet), END_ELEMENT] */
- if (v2gServiceParameterListType_ParameterSet_currArrayIndex < v2gServiceParameterListType->ParameterSet.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- errn = encode_v2gParameterSetType(stream, &v2gServiceParameterListType->ParameterSet.array [v2gServiceParameterListType_ParameterSet_currArrayIndex++]);
- }
- grammarID = 1098;
- } else if (1==1) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- done = 1;
- }
- grammarID = 3;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 1098:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}ParameterSet), END_ELEMENT] */
- if (v2gServiceParameterListType_ParameterSet_currArrayIndex < v2gServiceParameterListType->ParameterSet.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- errn = encode_v2gParameterSetType(stream, &v2gServiceParameterListType->ParameterSet.array [v2gServiceParameterListType_ParameterSet_currArrayIndex++]);
- }
- grammarID = 1099;
- } else if (1==1) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- done = 1;
- }
- grammarID = 3;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 1099:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}ParameterSet), END_ELEMENT] */
- if (v2gServiceParameterListType_ParameterSet_currArrayIndex < v2gServiceParameterListType->ParameterSet.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- errn = encode_v2gParameterSetType(stream, &v2gServiceParameterListType->ParameterSet.array [v2gServiceParameterListType_ParameterSet_currArrayIndex++]);
- }
- grammarID = 1100;
- } else if (1==1) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- done = 1;
- }
- grammarID = 3;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 1100:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}ParameterSet), END_ELEMENT] */
- if (v2gServiceParameterListType_ParameterSet_currArrayIndex < v2gServiceParameterListType->ParameterSet.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- errn = encode_v2gParameterSetType(stream, &v2gServiceParameterListType->ParameterSet.array [v2gServiceParameterListType_ParameterSet_currArrayIndex++]);
- }
- grammarID = 1101;
- } else if (1==1) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- done = 1;
- }
- grammarID = 3;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 1101:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}ParameterSet), END_ELEMENT] */
- if (v2gServiceParameterListType_ParameterSet_currArrayIndex < v2gServiceParameterListType->ParameterSet.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- errn = encode_v2gParameterSetType(stream, &v2gServiceParameterListType->ParameterSet.array [v2gServiceParameterListType_ParameterSet_currArrayIndex++]);
- }
- grammarID = 1102;
- } else if (1==1) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- done = 1;
- }
- grammarID = 3;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 1102:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}ParameterSet), END_ELEMENT] */
- if (v2gServiceParameterListType_ParameterSet_currArrayIndex < v2gServiceParameterListType->ParameterSet.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- errn = encode_v2gParameterSetType(stream, &v2gServiceParameterListType->ParameterSet.array [v2gServiceParameterListType_ParameterSet_currArrayIndex++]);
- }
- grammarID = 1103;
- } else if (1==1) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- done = 1;
- }
- grammarID = 3;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 1103:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}ParameterSet), END_ELEMENT] */
- if (v2gServiceParameterListType_ParameterSet_currArrayIndex < v2gServiceParameterListType->ParameterSet.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- errn = encode_v2gParameterSetType(stream, &v2gServiceParameterListType->ParameterSet.array [v2gServiceParameterListType_ParameterSet_currArrayIndex++]);
- }
- grammarID = 1104;
- } else if (1==1) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- done = 1;
- }
- grammarID = 3;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 1104:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}ParameterSet), END_ELEMENT] */
- if (v2gServiceParameterListType_ParameterSet_currArrayIndex < v2gServiceParameterListType->ParameterSet.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- errn = encode_v2gParameterSetType(stream, &v2gServiceParameterListType->ParameterSet.array [v2gServiceParameterListType_ParameterSet_currArrayIndex++]);
- }
- grammarID = 1105;
- } else if (1==1) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- done = 1;
- }
- grammarID = 3;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 1105:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}ParameterSet), END_ELEMENT] */
- if (v2gServiceParameterListType_ParameterSet_currArrayIndex < v2gServiceParameterListType->ParameterSet.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- errn = encode_v2gParameterSetType(stream, &v2gServiceParameterListType->ParameterSet.array [v2gServiceParameterListType_ParameterSet_currArrayIndex++]);
- }
- grammarID = 1106;
- } else if (1==1) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- done = 1;
- }
- grammarID = 3;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 1106:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}ParameterSet), END_ELEMENT] */
- if (v2gServiceParameterListType_ParameterSet_currArrayIndex < v2gServiceParameterListType->ParameterSet.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- errn = encode_v2gParameterSetType(stream, &v2gServiceParameterListType->ParameterSet.array [v2gServiceParameterListType_ParameterSet_currArrayIndex++]);
- }
- grammarID = 1107;
- } else if (1==1) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- done = 1;
- }
- grammarID = 3;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 1107:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}ParameterSet), END_ELEMENT] */
- if (v2gServiceParameterListType_ParameterSet_currArrayIndex < v2gServiceParameterListType->ParameterSet.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- errn = encode_v2gParameterSetType(stream, &v2gServiceParameterListType->ParameterSet.array [v2gServiceParameterListType_ParameterSet_currArrayIndex++]);
- }
- grammarID = 1108;
- } else if (1==1) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- done = 1;
- }
- grammarID = 3;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 1108:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}ParameterSet), END_ELEMENT] */
- if (v2gServiceParameterListType_ParameterSet_currArrayIndex < v2gServiceParameterListType->ParameterSet.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- errn = encode_v2gParameterSetType(stream, &v2gServiceParameterListType->ParameterSet.array [v2gServiceParameterListType_ParameterSet_currArrayIndex++]);
- }
- grammarID = 1109;
- } else if (1==1) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- done = 1;
- }
- grammarID = 3;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 1109:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}ParameterSet), END_ELEMENT] */
- if (v2gServiceParameterListType_ParameterSet_currArrayIndex < v2gServiceParameterListType->ParameterSet.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- errn = encode_v2gParameterSetType(stream, &v2gServiceParameterListType->ParameterSet.array [v2gServiceParameterListType_ParameterSet_currArrayIndex++]);
- }
- grammarID = 1110;
- } else if (1==1) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- done = 1;
- }
- grammarID = 3;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 1110:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}ParameterSet), END_ELEMENT] */
- if (v2gServiceParameterListType_ParameterSet_currArrayIndex < v2gServiceParameterListType->ParameterSet.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- errn = encode_v2gParameterSetType(stream, &v2gServiceParameterListType->ParameterSet.array [v2gServiceParameterListType_ParameterSet_currArrayIndex++]);
- }
- grammarID = 1111;
- } else if (1==1) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- done = 1;
- }
- grammarID = 3;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 1111:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}ParameterSet), END_ELEMENT] */
- if (v2gServiceParameterListType_ParameterSet_currArrayIndex < v2gServiceParameterListType->ParameterSet.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- errn = encode_v2gParameterSetType(stream, &v2gServiceParameterListType->ParameterSet.array [v2gServiceParameterListType_ParameterSet_currArrayIndex++]);
- }
- grammarID = 1112;
- } else if (1==1) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- done = 1;
- }
- grammarID = 3;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 1112:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}ParameterSet), END_ELEMENT] */
- if (v2gServiceParameterListType_ParameterSet_currArrayIndex < v2gServiceParameterListType->ParameterSet.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- errn = encode_v2gParameterSetType(stream, &v2gServiceParameterListType->ParameterSet.array [v2gServiceParameterListType_ParameterSet_currArrayIndex++]);
- }
- grammarID = 1113;
- } else if (1==1) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- done = 1;
- }
- grammarID = 3;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 1113:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}ParameterSet), END_ELEMENT] */
- if (v2gServiceParameterListType_ParameterSet_currArrayIndex < v2gServiceParameterListType->ParameterSet.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- errn = encode_v2gParameterSetType(stream, &v2gServiceParameterListType->ParameterSet.array [v2gServiceParameterListType_ParameterSet_currArrayIndex++]);
- }
- grammarID = 1114;
- } else if (1==1) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- done = 1;
- }
- grammarID = 3;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 1114:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}ParameterSet), END_ELEMENT] */
- if (v2gServiceParameterListType_ParameterSet_currArrayIndex < v2gServiceParameterListType->ParameterSet.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- errn = encode_v2gParameterSetType(stream, &v2gServiceParameterListType->ParameterSet.array [v2gServiceParameterListType_ParameterSet_currArrayIndex++]);
- }
- grammarID = 1115;
- } else if (1==1) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- done = 1;
- }
- grammarID = 3;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 1115:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}ParameterSet), END_ELEMENT] */
- if (v2gServiceParameterListType_ParameterSet_currArrayIndex < v2gServiceParameterListType->ParameterSet.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- errn = encode_v2gParameterSetType(stream, &v2gServiceParameterListType->ParameterSet.array [v2gServiceParameterListType_ParameterSet_currArrayIndex++]);
- }
- grammarID = 1116;
- } else if (1==1) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- done = 1;
- }
- grammarID = 3;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 1116:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}ParameterSet), END_ELEMENT] */
- if (v2gServiceParameterListType_ParameterSet_currArrayIndex < v2gServiceParameterListType->ParameterSet.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- errn = encode_v2gParameterSetType(stream, &v2gServiceParameterListType->ParameterSet.array [v2gServiceParameterListType_ParameterSet_currArrayIndex++]);
- }
- grammarID = 1117;
- } else if (1==1) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- done = 1;
- }
- grammarID = 3;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 1117:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}ParameterSet), END_ELEMENT] */
- if (v2gServiceParameterListType_ParameterSet_currArrayIndex < v2gServiceParameterListType->ParameterSet.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- errn = encode_v2gParameterSetType(stream, &v2gServiceParameterListType->ParameterSet.array [v2gServiceParameterListType_ParameterSet_currArrayIndex++]);
- }
- grammarID = 1118;
- } else if (1==1) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- done = 1;
- }
- grammarID = 3;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 1118:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}ParameterSet), END_ELEMENT] */
- if (v2gServiceParameterListType_ParameterSet_currArrayIndex < v2gServiceParameterListType->ParameterSet.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- errn = encode_v2gParameterSetType(stream, &v2gServiceParameterListType->ParameterSet.array [v2gServiceParameterListType_ParameterSet_currArrayIndex++]);
- }
- grammarID = 1119;
- } else if (1==1) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- done = 1;
- }
- grammarID = 3;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 1119:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}ParameterSet), END_ELEMENT] */
- if (v2gServiceParameterListType_ParameterSet_currArrayIndex < v2gServiceParameterListType->ParameterSet.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- errn = encode_v2gParameterSetType(stream, &v2gServiceParameterListType->ParameterSet.array [v2gServiceParameterListType_ParameterSet_currArrayIndex++]);
- }
- grammarID = 1120;
- } else if (1==1) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- done = 1;
- }
- grammarID = 3;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 1120:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}ParameterSet), END_ELEMENT] */
- if (v2gServiceParameterListType_ParameterSet_currArrayIndex < v2gServiceParameterListType->ParameterSet.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- errn = encode_v2gParameterSetType(stream, &v2gServiceParameterListType->ParameterSet.array [v2gServiceParameterListType_ParameterSet_currArrayIndex++]);
- }
- grammarID = 1121;
- } else if (1==1) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- done = 1;
- }
- grammarID = 3;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 1121:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}ParameterSet), END_ELEMENT] */
- if (v2gServiceParameterListType_ParameterSet_currArrayIndex < v2gServiceParameterListType->ParameterSet.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- errn = encode_v2gParameterSetType(stream, &v2gServiceParameterListType->ParameterSet.array [v2gServiceParameterListType_ParameterSet_currArrayIndex++]);
- }
- grammarID = 1122;
- } else if (1==1) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- done = 1;
- }
- grammarID = 3;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 1122:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}ParameterSet), END_ELEMENT] */
- if (v2gServiceParameterListType_ParameterSet_currArrayIndex < v2gServiceParameterListType->ParameterSet.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- errn = encode_v2gParameterSetType(stream, &v2gServiceParameterListType->ParameterSet.array [v2gServiceParameterListType_ParameterSet_currArrayIndex++]);
- }
- grammarID = 1123;
- } else if (1==1) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- done = 1;
- }
- grammarID = 3;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 1123:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}ParameterSet), END_ELEMENT] */
- if (v2gServiceParameterListType_ParameterSet_currArrayIndex < v2gServiceParameterListType->ParameterSet.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- errn = encode_v2gParameterSetType(stream, &v2gServiceParameterListType->ParameterSet.array [v2gServiceParameterListType_ParameterSet_currArrayIndex++]);
- }
- grammarID = 1124;
- } else if (1==1) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- done = 1;
- }
- grammarID = 3;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 1124:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}ParameterSet), END_ELEMENT] */
- if (v2gServiceParameterListType_ParameterSet_currArrayIndex < v2gServiceParameterListType->ParameterSet.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- errn = encode_v2gParameterSetType(stream, &v2gServiceParameterListType->ParameterSet.array [v2gServiceParameterListType_ParameterSet_currArrayIndex++]);
- }
- grammarID = 1125;
- } else if (1==1) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- done = 1;
- }
- grammarID = 3;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 1125:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}ParameterSet), END_ELEMENT] */
- if (v2gServiceParameterListType_ParameterSet_currArrayIndex < v2gServiceParameterListType->ParameterSet.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- errn = encode_v2gParameterSetType(stream, &v2gServiceParameterListType->ParameterSet.array [v2gServiceParameterListType_ParameterSet_currArrayIndex++]);
- }
- grammarID = 1126;
- } else if (1==1) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- done = 1;
- }
- grammarID = 3;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 1126:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}ParameterSet), END_ELEMENT] */
- if (v2gServiceParameterListType_ParameterSet_currArrayIndex < v2gServiceParameterListType->ParameterSet.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- errn = encode_v2gParameterSetType(stream, &v2gServiceParameterListType->ParameterSet.array [v2gServiceParameterListType_ParameterSet_currArrayIndex++]);
- }
- grammarID = 1127;
- } else if (1==1) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- done = 1;
- }
- grammarID = 3;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 1127:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}ParameterSet), END_ELEMENT] */
- if (v2gServiceParameterListType_ParameterSet_currArrayIndex < v2gServiceParameterListType->ParameterSet.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- errn = encode_v2gParameterSetType(stream, &v2gServiceParameterListType->ParameterSet.array [v2gServiceParameterListType_ParameterSet_currArrayIndex++]);
- }
- grammarID = 1128;
- } else if (1==1) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- done = 1;
- }
- grammarID = 3;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 1128:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}ParameterSet), END_ELEMENT] */
- if (v2gServiceParameterListType_ParameterSet_currArrayIndex < v2gServiceParameterListType->ParameterSet.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- errn = encode_v2gParameterSetType(stream, &v2gServiceParameterListType->ParameterSet.array [v2gServiceParameterListType_ParameterSet_currArrayIndex++]);
- }
- grammarID = 1129;
- } else if (1==1) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- done = 1;
- }
- grammarID = 3;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 1129:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}ParameterSet), END_ELEMENT] */
- if (v2gServiceParameterListType_ParameterSet_currArrayIndex < v2gServiceParameterListType->ParameterSet.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- errn = encode_v2gParameterSetType(stream, &v2gServiceParameterListType->ParameterSet.array [v2gServiceParameterListType_ParameterSet_currArrayIndex++]);
- }
- grammarID = 1130;
- } else if (1==1) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- done = 1;
- }
- grammarID = 3;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 1130:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}ParameterSet), END_ELEMENT] */
- if (v2gServiceParameterListType_ParameterSet_currArrayIndex < v2gServiceParameterListType->ParameterSet.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- errn = encode_v2gParameterSetType(stream, &v2gServiceParameterListType->ParameterSet.array [v2gServiceParameterListType_ParameterSet_currArrayIndex++]);
- }
- grammarID = 1131;
- } else if (1==1) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- done = 1;
- }
- grammarID = 3;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 1131:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}ParameterSet), END_ELEMENT] */
- if (v2gServiceParameterListType_ParameterSet_currArrayIndex < v2gServiceParameterListType->ParameterSet.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- errn = encode_v2gParameterSetType(stream, &v2gServiceParameterListType->ParameterSet.array [v2gServiceParameterListType_ParameterSet_currArrayIndex++]);
- }
- grammarID = 1132;
- } else if (1==1) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- done = 1;
- }
- grammarID = 3;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 1132:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}ParameterSet), END_ELEMENT] */
- if (v2gServiceParameterListType_ParameterSet_currArrayIndex < v2gServiceParameterListType->ParameterSet.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- errn = encode_v2gParameterSetType(stream, &v2gServiceParameterListType->ParameterSet.array [v2gServiceParameterListType_ParameterSet_currArrayIndex++]);
- }
- grammarID = 1133;
- } else if (1==1) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- done = 1;
- }
- grammarID = 3;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 1133:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}ParameterSet), END_ELEMENT] */
- if (v2gServiceParameterListType_ParameterSet_currArrayIndex < v2gServiceParameterListType->ParameterSet.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- errn = encode_v2gParameterSetType(stream, &v2gServiceParameterListType->ParameterSet.array [v2gServiceParameterListType_ParameterSet_currArrayIndex++]);
- }
- grammarID = 1134;
- } else if (1==1) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- done = 1;
- }
- grammarID = 3;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 1134:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}ParameterSet), END_ELEMENT] */
- if (v2gServiceParameterListType_ParameterSet_currArrayIndex < v2gServiceParameterListType->ParameterSet.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- errn = encode_v2gParameterSetType(stream, &v2gServiceParameterListType->ParameterSet.array [v2gServiceParameterListType_ParameterSet_currArrayIndex++]);
- }
- grammarID = 1135;
- } else if (1==1) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- done = 1;
- }
- grammarID = 3;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 1135:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}ParameterSet), END_ELEMENT] */
- if (v2gServiceParameterListType_ParameterSet_currArrayIndex < v2gServiceParameterListType->ParameterSet.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- errn = encode_v2gParameterSetType(stream, &v2gServiceParameterListType->ParameterSet.array [v2gServiceParameterListType_ParameterSet_currArrayIndex++]);
- }
- grammarID = 1136;
- } else if (1==1) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- done = 1;
- }
- grammarID = 3;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 1136:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}ParameterSet), END_ELEMENT] */
- if (v2gServiceParameterListType_ParameterSet_currArrayIndex < v2gServiceParameterListType->ParameterSet.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- errn = encode_v2gParameterSetType(stream, &v2gServiceParameterListType->ParameterSet.array [v2gServiceParameterListType_ParameterSet_currArrayIndex++]);
- }
- grammarID = 1137;
- } else if (1==1) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- done = 1;
- }
- grammarID = 3;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 1137:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}ParameterSet), END_ELEMENT] */
- if (v2gServiceParameterListType_ParameterSet_currArrayIndex < v2gServiceParameterListType->ParameterSet.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- errn = encode_v2gParameterSetType(stream, &v2gServiceParameterListType->ParameterSet.array [v2gServiceParameterListType_ParameterSet_currArrayIndex++]);
- }
- grammarID = 1138;
- } else if (1==1) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- done = 1;
- }
- grammarID = 3;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 1138:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}ParameterSet), END_ELEMENT] */
- if (v2gServiceParameterListType_ParameterSet_currArrayIndex < v2gServiceParameterListType->ParameterSet.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- errn = encode_v2gParameterSetType(stream, &v2gServiceParameterListType->ParameterSet.array [v2gServiceParameterListType_ParameterSet_currArrayIndex++]);
- }
- grammarID = 1139;
- } else if (1==1) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- done = 1;
- }
- grammarID = 3;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 1139:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}ParameterSet), END_ELEMENT] */
- if (v2gServiceParameterListType_ParameterSet_currArrayIndex < v2gServiceParameterListType->ParameterSet.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- errn = encode_v2gParameterSetType(stream, &v2gServiceParameterListType->ParameterSet.array [v2gServiceParameterListType_ParameterSet_currArrayIndex++]);
- }
- grammarID = 1140;
- } else if (1==1) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- done = 1;
- }
- grammarID = 3;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 1140:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}ParameterSet), END_ELEMENT] */
- if (v2gServiceParameterListType_ParameterSet_currArrayIndex < v2gServiceParameterListType->ParameterSet.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- errn = encode_v2gParameterSetType(stream, &v2gServiceParameterListType->ParameterSet.array [v2gServiceParameterListType_ParameterSet_currArrayIndex++]);
- }
- grammarID = 1141;
- } else if (1==1) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- done = 1;
- }
- grammarID = 3;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 1141:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}ParameterSet), END_ELEMENT] */
- if (v2gServiceParameterListType_ParameterSet_currArrayIndex < v2gServiceParameterListType->ParameterSet.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- errn = encode_v2gParameterSetType(stream, &v2gServiceParameterListType->ParameterSet.array [v2gServiceParameterListType_ParameterSet_currArrayIndex++]);
- }
- grammarID = 1142;
- } else if (1==1) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- done = 1;
- }
- grammarID = 3;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 1142:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}ParameterSet), END_ELEMENT] */
- if (v2gServiceParameterListType_ParameterSet_currArrayIndex < v2gServiceParameterListType->ParameterSet.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- errn = encode_v2gParameterSetType(stream, &v2gServiceParameterListType->ParameterSet.array [v2gServiceParameterListType_ParameterSet_currArrayIndex++]);
- }
- grammarID = 1143;
- } else if (1==1) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- done = 1;
- }
- grammarID = 3;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 1143:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}ParameterSet), END_ELEMENT] */
- if (v2gServiceParameterListType_ParameterSet_currArrayIndex < v2gServiceParameterListType->ParameterSet.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- errn = encode_v2gParameterSetType(stream, &v2gServiceParameterListType->ParameterSet.array [v2gServiceParameterListType_ParameterSet_currArrayIndex++]);
- }
- grammarID = 1144;
- } else if (1==1) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- done = 1;
- }
- grammarID = 3;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 1144:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}ParameterSet), END_ELEMENT] */
- if (v2gServiceParameterListType_ParameterSet_currArrayIndex < v2gServiceParameterListType->ParameterSet.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- errn = encode_v2gParameterSetType(stream, &v2gServiceParameterListType->ParameterSet.array [v2gServiceParameterListType_ParameterSet_currArrayIndex++]);
- }
- grammarID = 1145;
- } else if (1==1) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- done = 1;
- }
- grammarID = 3;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 1145:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}ParameterSet), END_ELEMENT] */
- if (v2gServiceParameterListType_ParameterSet_currArrayIndex < v2gServiceParameterListType->ParameterSet.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- errn = encode_v2gParameterSetType(stream, &v2gServiceParameterListType->ParameterSet.array [v2gServiceParameterListType_ParameterSet_currArrayIndex++]);
- }
- grammarID = 1146;
- } else if (1==1) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- done = 1;
- }
- grammarID = 3;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 1146:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}ParameterSet), END_ELEMENT] */
- if (v2gServiceParameterListType_ParameterSet_currArrayIndex < v2gServiceParameterListType->ParameterSet.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- errn = encode_v2gParameterSetType(stream, &v2gServiceParameterListType->ParameterSet.array [v2gServiceParameterListType_ParameterSet_currArrayIndex++]);
- }
- grammarID = 1147;
- } else if (1==1) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- done = 1;
- }
- grammarID = 3;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 1147:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}ParameterSet), END_ELEMENT] */
- if (v2gServiceParameterListType_ParameterSet_currArrayIndex < v2gServiceParameterListType->ParameterSet.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- errn = encode_v2gParameterSetType(stream, &v2gServiceParameterListType->ParameterSet.array [v2gServiceParameterListType_ParameterSet_currArrayIndex++]);
- }
- grammarID = 1148;
- } else if (1==1) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- done = 1;
- }
- grammarID = 3;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 1148:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}ParameterSet), END_ELEMENT] */
- if (v2gServiceParameterListType_ParameterSet_currArrayIndex < v2gServiceParameterListType->ParameterSet.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- errn = encode_v2gParameterSetType(stream, &v2gServiceParameterListType->ParameterSet.array [v2gServiceParameterListType_ParameterSet_currArrayIndex++]);
- }
- grammarID = 1149;
- } else if (1==1) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- done = 1;
- }
- grammarID = 3;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 1149:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}ParameterSet), END_ELEMENT] */
- if (v2gServiceParameterListType_ParameterSet_currArrayIndex < v2gServiceParameterListType->ParameterSet.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- errn = encode_v2gParameterSetType(stream, &v2gServiceParameterListType->ParameterSet.array [v2gServiceParameterListType_ParameterSet_currArrayIndex++]);
- }
- grammarID = 1150;
- } else if (1==1) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- done = 1;
- }
- grammarID = 3;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 1150:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}ParameterSet), END_ELEMENT] */
- if (v2gServiceParameterListType_ParameterSet_currArrayIndex < v2gServiceParameterListType->ParameterSet.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- errn = encode_v2gParameterSetType(stream, &v2gServiceParameterListType->ParameterSet.array [v2gServiceParameterListType_ParameterSet_currArrayIndex++]);
- }
- grammarID = 1151;
- } else if (1==1) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- done = 1;
- }
- grammarID = 3;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 1151:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}ParameterSet), END_ELEMENT] */
- if (v2gServiceParameterListType_ParameterSet_currArrayIndex < v2gServiceParameterListType->ParameterSet.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- errn = encode_v2gParameterSetType(stream, &v2gServiceParameterListType->ParameterSet.array [v2gServiceParameterListType_ParameterSet_currArrayIndex++]);
- }
- grammarID = 1152;
- } else if (1==1) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- done = 1;
- }
- grammarID = 3;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 1152:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}ParameterSet), END_ELEMENT] */
- if (v2gServiceParameterListType_ParameterSet_currArrayIndex < v2gServiceParameterListType->ParameterSet.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- errn = encode_v2gParameterSetType(stream, &v2gServiceParameterListType->ParameterSet.array [v2gServiceParameterListType_ParameterSet_currArrayIndex++]);
- }
- grammarID = 1153;
- } else if (1==1) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- done = 1;
- }
- grammarID = 3;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 1153:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}ParameterSet), END_ELEMENT] */
- if (v2gServiceParameterListType_ParameterSet_currArrayIndex < v2gServiceParameterListType->ParameterSet.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- errn = encode_v2gParameterSetType(stream, &v2gServiceParameterListType->ParameterSet.array [v2gServiceParameterListType_ParameterSet_currArrayIndex++]);
- }
- grammarID = 1154;
- } else if (1==1) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- done = 1;
- }
- grammarID = 3;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 1154:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}ParameterSet), END_ELEMENT] */
- if (v2gServiceParameterListType_ParameterSet_currArrayIndex < v2gServiceParameterListType->ParameterSet.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- errn = encode_v2gParameterSetType(stream, &v2gServiceParameterListType->ParameterSet.array [v2gServiceParameterListType_ParameterSet_currArrayIndex++]);
- }
- grammarID = 1155;
- } else if (1==1) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- done = 1;
- }
- grammarID = 3;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 1155:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}ParameterSet), END_ELEMENT] */
- if (v2gServiceParameterListType_ParameterSet_currArrayIndex < v2gServiceParameterListType->ParameterSet.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- errn = encode_v2gParameterSetType(stream, &v2gServiceParameterListType->ParameterSet.array [v2gServiceParameterListType_ParameterSet_currArrayIndex++]);
- }
- grammarID = 1156;
- } else if (1==1) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- done = 1;
- }
- grammarID = 3;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 1156:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}ParameterSet), END_ELEMENT] */
- if (v2gServiceParameterListType_ParameterSet_currArrayIndex < v2gServiceParameterListType->ParameterSet.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- errn = encode_v2gParameterSetType(stream, &v2gServiceParameterListType->ParameterSet.array [v2gServiceParameterListType_ParameterSet_currArrayIndex++]);
- }
- grammarID = 1157;
- } else if (1==1) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- done = 1;
- }
- grammarID = 3;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 1157:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}ParameterSet), END_ELEMENT] */
- if (v2gServiceParameterListType_ParameterSet_currArrayIndex < v2gServiceParameterListType->ParameterSet.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- errn = encode_v2gParameterSetType(stream, &v2gServiceParameterListType->ParameterSet.array [v2gServiceParameterListType_ParameterSet_currArrayIndex++]);
- }
- grammarID = 1158;
- } else if (1==1) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- done = 1;
- }
- grammarID = 3;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 1158:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}ParameterSet), END_ELEMENT] */
- if (v2gServiceParameterListType_ParameterSet_currArrayIndex < v2gServiceParameterListType->ParameterSet.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- errn = encode_v2gParameterSetType(stream, &v2gServiceParameterListType->ParameterSet.array [v2gServiceParameterListType_ParameterSet_currArrayIndex++]);
- }
- grammarID = 1159;
- } else if (1==1) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- done = 1;
- }
- grammarID = 3;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 1159:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}ParameterSet), END_ELEMENT] */
- if (v2gServiceParameterListType_ParameterSet_currArrayIndex < v2gServiceParameterListType->ParameterSet.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- errn = encode_v2gParameterSetType(stream, &v2gServiceParameterListType->ParameterSet.array [v2gServiceParameterListType_ParameterSet_currArrayIndex++]);
- }
- grammarID = 1160;
- } else if (1==1) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- done = 1;
- }
- grammarID = 3;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 1160:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}ParameterSet), END_ELEMENT] */
- if (v2gServiceParameterListType_ParameterSet_currArrayIndex < v2gServiceParameterListType->ParameterSet.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- errn = encode_v2gParameterSetType(stream, &v2gServiceParameterListType->ParameterSet.array [v2gServiceParameterListType_ParameterSet_currArrayIndex++]);
- }
- grammarID = 1161;
- } else if (1==1) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- done = 1;
- }
- grammarID = 3;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 1161:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}ParameterSet), END_ELEMENT] */
- if (v2gServiceParameterListType_ParameterSet_currArrayIndex < v2gServiceParameterListType->ParameterSet.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- errn = encode_v2gParameterSetType(stream, &v2gServiceParameterListType->ParameterSet.array [v2gServiceParameterListType_ParameterSet_currArrayIndex++]);
- }
- grammarID = 1162;
- } else if (1==1) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- done = 1;
- }
- grammarID = 3;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 1162:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}ParameterSet), END_ELEMENT] */
- if (v2gServiceParameterListType_ParameterSet_currArrayIndex < v2gServiceParameterListType->ParameterSet.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- errn = encode_v2gParameterSetType(stream, &v2gServiceParameterListType->ParameterSet.array [v2gServiceParameterListType_ParameterSet_currArrayIndex++]);
- }
- grammarID = 1163;
- } else if (1==1) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- done = 1;
- }
- grammarID = 3;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 1163:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}ParameterSet), END_ELEMENT] */
- if (v2gServiceParameterListType_ParameterSet_currArrayIndex < v2gServiceParameterListType->ParameterSet.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- errn = encode_v2gParameterSetType(stream, &v2gServiceParameterListType->ParameterSet.array [v2gServiceParameterListType_ParameterSet_currArrayIndex++]);
- }
- grammarID = 1164;
- } else if (1==1) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- done = 1;
- }
- grammarID = 3;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 1164:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}ParameterSet), END_ELEMENT] */
- if (v2gServiceParameterListType_ParameterSet_currArrayIndex < v2gServiceParameterListType->ParameterSet.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- errn = encode_v2gParameterSetType(stream, &v2gServiceParameterListType->ParameterSet.array [v2gServiceParameterListType_ParameterSet_currArrayIndex++]);
- }
- grammarID = 1165;
- } else if (1==1) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- done = 1;
- }
- grammarID = 3;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 1165:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}ParameterSet), END_ELEMENT] */
- if (v2gServiceParameterListType_ParameterSet_currArrayIndex < v2gServiceParameterListType->ParameterSet.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- errn = encode_v2gParameterSetType(stream, &v2gServiceParameterListType->ParameterSet.array [v2gServiceParameterListType_ParameterSet_currArrayIndex++]);
- }
- grammarID = 1166;
- } else if (1==1) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- done = 1;
- }
- grammarID = 3;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 1166:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}ParameterSet), END_ELEMENT] */
- if (v2gServiceParameterListType_ParameterSet_currArrayIndex < v2gServiceParameterListType->ParameterSet.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- errn = encode_v2gParameterSetType(stream, &v2gServiceParameterListType->ParameterSet.array [v2gServiceParameterListType_ParameterSet_currArrayIndex++]);
- }
- grammarID = 1167;
- } else if (1==1) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- done = 1;
- }
- grammarID = 3;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 1167:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}ParameterSet), END_ELEMENT] */
- if (v2gServiceParameterListType_ParameterSet_currArrayIndex < v2gServiceParameterListType->ParameterSet.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- errn = encode_v2gParameterSetType(stream, &v2gServiceParameterListType->ParameterSet.array [v2gServiceParameterListType_ParameterSet_currArrayIndex++]);
- }
- grammarID = 1168;
- } else if (1==1) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- done = 1;
- }
- grammarID = 3;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 1168:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}ParameterSet), END_ELEMENT] */
- if (v2gServiceParameterListType_ParameterSet_currArrayIndex < v2gServiceParameterListType->ParameterSet.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- errn = encode_v2gParameterSetType(stream, &v2gServiceParameterListType->ParameterSet.array [v2gServiceParameterListType_ParameterSet_currArrayIndex++]);
- }
- grammarID = 1169;
- } else if (1==1) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- done = 1;
- }
- grammarID = 3;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 1169:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}ParameterSet), END_ELEMENT] */
- if (v2gServiceParameterListType_ParameterSet_currArrayIndex < v2gServiceParameterListType->ParameterSet.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- errn = encode_v2gParameterSetType(stream, &v2gServiceParameterListType->ParameterSet.array [v2gServiceParameterListType_ParameterSet_currArrayIndex++]);
- }
- grammarID = 1170;
- } else if (1==1) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- done = 1;
- }
- grammarID = 3;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 1170:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}ParameterSet), END_ELEMENT] */
- if (v2gServiceParameterListType_ParameterSet_currArrayIndex < v2gServiceParameterListType->ParameterSet.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- errn = encode_v2gParameterSetType(stream, &v2gServiceParameterListType->ParameterSet.array [v2gServiceParameterListType_ParameterSet_currArrayIndex++]);
- }
- grammarID = 1171;
- } else if (1==1) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- done = 1;
- }
- grammarID = 3;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 1171:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}ParameterSet), END_ELEMENT] */
- if (v2gServiceParameterListType_ParameterSet_currArrayIndex < v2gServiceParameterListType->ParameterSet.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- errn = encode_v2gParameterSetType(stream, &v2gServiceParameterListType->ParameterSet.array [v2gServiceParameterListType_ParameterSet_currArrayIndex++]);
- }
- grammarID = 1172;
- } else if (1==1) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- done = 1;
- }
- grammarID = 3;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 1172:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}ParameterSet), END_ELEMENT] */
- if (v2gServiceParameterListType_ParameterSet_currArrayIndex < v2gServiceParameterListType->ParameterSet.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- errn = encode_v2gParameterSetType(stream, &v2gServiceParameterListType->ParameterSet.array [v2gServiceParameterListType_ParameterSet_currArrayIndex++]);
- }
- grammarID = 1173;
- } else if (1==1) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- done = 1;
- }
- grammarID = 3;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 1173:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}ParameterSet), END_ELEMENT] */
- if (v2gServiceParameterListType_ParameterSet_currArrayIndex < v2gServiceParameterListType->ParameterSet.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- errn = encode_v2gParameterSetType(stream, &v2gServiceParameterListType->ParameterSet.array [v2gServiceParameterListType_ParameterSet_currArrayIndex++]);
- }
- grammarID = 1174;
- } else if (1==1) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- done = 1;
- }
- grammarID = 3;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 1174:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}ParameterSet), END_ELEMENT] */
- if (v2gServiceParameterListType_ParameterSet_currArrayIndex < v2gServiceParameterListType->ParameterSet.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- errn = encode_v2gParameterSetType(stream, &v2gServiceParameterListType->ParameterSet.array [v2gServiceParameterListType_ParameterSet_currArrayIndex++]);
- }
- grammarID = 1175;
- } else if (1==1) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- done = 1;
- }
- grammarID = 3;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 1175:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}ParameterSet), END_ELEMENT] */
- if (v2gServiceParameterListType_ParameterSet_currArrayIndex < v2gServiceParameterListType->ParameterSet.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- errn = encode_v2gParameterSetType(stream, &v2gServiceParameterListType->ParameterSet.array [v2gServiceParameterListType_ParameterSet_currArrayIndex++]);
- }
- grammarID = 1176;
- } else if (1==1) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- done = 1;
- }
- grammarID = 3;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 1176:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}ParameterSet), END_ELEMENT] */
- if (v2gServiceParameterListType_ParameterSet_currArrayIndex < v2gServiceParameterListType->ParameterSet.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- errn = encode_v2gParameterSetType(stream, &v2gServiceParameterListType->ParameterSet.array [v2gServiceParameterListType_ParameterSet_currArrayIndex++]);
- }
- grammarID = 1177;
- } else if (1==1) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- done = 1;
- }
- grammarID = 3;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 1177:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}ParameterSet), END_ELEMENT] */
- if (v2gServiceParameterListType_ParameterSet_currArrayIndex < v2gServiceParameterListType->ParameterSet.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- errn = encode_v2gParameterSetType(stream, &v2gServiceParameterListType->ParameterSet.array [v2gServiceParameterListType_ParameterSet_currArrayIndex++]);
- }
- grammarID = 1178;
- } else if (1==1) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- done = 1;
- }
- grammarID = 3;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 1178:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}ParameterSet), END_ELEMENT] */
- if (v2gServiceParameterListType_ParameterSet_currArrayIndex < v2gServiceParameterListType->ParameterSet.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- errn = encode_v2gParameterSetType(stream, &v2gServiceParameterListType->ParameterSet.array [v2gServiceParameterListType_ParameterSet_currArrayIndex++]);
- }
- grammarID = 1179;
- } else if (1==1) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- done = 1;
- }
- grammarID = 3;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 1179:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}ParameterSet), END_ELEMENT] */
- if (v2gServiceParameterListType_ParameterSet_currArrayIndex < v2gServiceParameterListType->ParameterSet.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- errn = encode_v2gParameterSetType(stream, &v2gServiceParameterListType->ParameterSet.array [v2gServiceParameterListType_ParameterSet_currArrayIndex++]);
- }
- 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='http://www.w3.org/2000/09/xmldsig#,SignedInfoType', base type name='anyType', content type='ELEMENT', isAbstract='false', hasTypeId='false', final='0', block='0', particle='("http://www.w3.org/2000/09/xmldsig#":CanonicalizationMethod,"http://www.w3.org/2000/09/xmldsig#":SignatureMethod,"http://www.w3.org/2000/09/xmldsig#":Reference{1-UNBOUNDED})', derivedBy='RESTRICTION'. */
-static int encode_v2gSignedInfoType(bitstream_t* stream, struct v2gSignedInfoType* v2gSignedInfoType) {
- int grammarID = 1180;
- int done = 0;
-
- unsigned int v2gSignedInfoType_Reference_currArrayIndex = 0;
-
- while(!done) {
- switch(grammarID) {
- case 1180:
- /* FirstStartTag[ATTRIBUTE[STRING](Id), START_ELEMENT({http://www.w3.org/2000/09/xmldsig#}CanonicalizationMethod)] */
- if ( v2gSignedInfoType->Id_isUsed == 1u ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- /* encode string as string table miss (+2 len)*/
- errn = encodeUnsignedInteger16(stream, (uint16_t)(v2gSignedInfoType->Id.charactersLen + 2));
- if (errn == 0) {
- errn = encodeCharacters(stream, v2gSignedInfoType->Id.characters, v2gSignedInfoType->Id.charactersLen);
- }
- }
- grammarID = 1181;
- } else if ( 1 == 1 ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- errn = encode_v2gCanonicalizationMethodType(stream, &v2gSignedInfoType->CanonicalizationMethod );
- }
- grammarID = 1182;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 1181:
- /* StartTag[START_ELEMENT({http://www.w3.org/2000/09/xmldsig#}CanonicalizationMethod)] */
- if ( 1 == 1 ) {
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- if(errn == 0) {
- errn = encode_v2gCanonicalizationMethodType(stream, &v2gSignedInfoType->CanonicalizationMethod );
- }
- grammarID = 1182;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 1182:
- /* Element[START_ELEMENT({http://www.w3.org/2000/09/xmldsig#}SignatureMethod)] */
- if ( 1 == 1 ) {
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- if(errn == 0) {
- errn = encode_v2gSignatureMethodType(stream, &v2gSignedInfoType->SignatureMethod );
- }
- grammarID = 1183;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 1183:
- /* Element[START_ELEMENT({http://www.w3.org/2000/09/xmldsig#}Reference)] */
- if (v2gSignedInfoType_Reference_currArrayIndex < v2gSignedInfoType->Reference.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- if(errn == 0) {
- errn = encode_v2gReferenceType(stream, &v2gSignedInfoType->Reference.array [v2gSignedInfoType_Reference_currArrayIndex++]);
- }
- grammarID = 619;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 619:
- /* Element[START_ELEMENT({http://www.w3.org/2000/09/xmldsig#}Reference), END_ELEMENT] */
- if (v2gSignedInfoType_Reference_currArrayIndex < v2gSignedInfoType->Reference.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- errn = encode_v2gReferenceType(stream, &v2gSignedInfoType->Reference.array [v2gSignedInfoType_Reference_currArrayIndex++]);
- }
- grammarID = 619;
- } else if (1==1) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- 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:2016:MsgBody,EVErrorInformationType', base type name='BodyBaseType', content type='ELEMENT', isAbstract='false', hasTypeId='false', final='0', block='0', particle='("urn:iso:15118:2:2016:MsgBody":ErrorCode)', derivedBy='EXTENSION'. */
-static int encode_v2gEVErrorInformationType(bitstream_t* stream, struct v2gEVErrorInformationType* v2gEVErrorInformationType) {
- int grammarID = 1184;
- int done = 0;
-
-
- while(!done) {
- switch(grammarID) {
- case 1184:
- /* FirstStartTag[START_ELEMENT({urn:iso:15118:2:2016:MsgBody}ErrorCode)] */
- 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, 4, v2gEVErrorInformationType->ErrorCode);
- /* valid EE */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- }
- }
- grammarID = 2;
- } 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:2016:MsgDataTypes,ListOfRootCertificateIDsType', base type name='anyType', content type='ELEMENT', isAbstract='false', hasTypeId='false', final='0', block='0', particle='("urn:iso:15118:2:2016:MsgDataTypes":RootCertificateID{1-20})', derivedBy='RESTRICTION'. */
-static int encode_v2gListOfRootCertificateIDsType(bitstream_t* stream, struct v2gListOfRootCertificateIDsType* v2gListOfRootCertificateIDsType) {
- int grammarID = 1185;
- int done = 0;
-
- unsigned int v2gListOfRootCertificateIDsType_RootCertificateID_currArrayIndex = 0;
-
- while(!done) {
- switch(grammarID) {
- case 1185:
- /* FirstStartTag[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}RootCertificateID)] */
- if (v2gListOfRootCertificateIDsType_RootCertificateID_currArrayIndex < v2gListOfRootCertificateIDsType->RootCertificateID.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- if(errn == 0) {
- errn = encode_v2gX509IssuerSerialType(stream, &v2gListOfRootCertificateIDsType->RootCertificateID.array [v2gListOfRootCertificateIDsType_RootCertificateID_currArrayIndex++]);
- }
- grammarID = 1186;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 1186:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}RootCertificateID), END_ELEMENT] */
- if (v2gListOfRootCertificateIDsType_RootCertificateID_currArrayIndex < v2gListOfRootCertificateIDsType->RootCertificateID.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- errn = encode_v2gX509IssuerSerialType(stream, &v2gListOfRootCertificateIDsType->RootCertificateID.array [v2gListOfRootCertificateIDsType_RootCertificateID_currArrayIndex++]);
- }
- grammarID = 1187;
- } else if (1==1) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- done = 1;
- }
- grammarID = 3;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 1187:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}RootCertificateID), END_ELEMENT] */
- if (v2gListOfRootCertificateIDsType_RootCertificateID_currArrayIndex < v2gListOfRootCertificateIDsType->RootCertificateID.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- errn = encode_v2gX509IssuerSerialType(stream, &v2gListOfRootCertificateIDsType->RootCertificateID.array [v2gListOfRootCertificateIDsType_RootCertificateID_currArrayIndex++]);
- }
- grammarID = 1188;
- } else if (1==1) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- done = 1;
- }
- grammarID = 3;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 1188:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}RootCertificateID), END_ELEMENT] */
- if (v2gListOfRootCertificateIDsType_RootCertificateID_currArrayIndex < v2gListOfRootCertificateIDsType->RootCertificateID.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- errn = encode_v2gX509IssuerSerialType(stream, &v2gListOfRootCertificateIDsType->RootCertificateID.array [v2gListOfRootCertificateIDsType_RootCertificateID_currArrayIndex++]);
- }
- grammarID = 1189;
- } else if (1==1) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- done = 1;
- }
- grammarID = 3;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 1189:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}RootCertificateID), END_ELEMENT] */
- if (v2gListOfRootCertificateIDsType_RootCertificateID_currArrayIndex < v2gListOfRootCertificateIDsType->RootCertificateID.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- errn = encode_v2gX509IssuerSerialType(stream, &v2gListOfRootCertificateIDsType->RootCertificateID.array [v2gListOfRootCertificateIDsType_RootCertificateID_currArrayIndex++]);
- }
- grammarID = 1190;
- } else if (1==1) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- done = 1;
- }
- grammarID = 3;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 1190:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}RootCertificateID), END_ELEMENT] */
- if (v2gListOfRootCertificateIDsType_RootCertificateID_currArrayIndex < v2gListOfRootCertificateIDsType->RootCertificateID.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- errn = encode_v2gX509IssuerSerialType(stream, &v2gListOfRootCertificateIDsType->RootCertificateID.array [v2gListOfRootCertificateIDsType_RootCertificateID_currArrayIndex++]);
- }
- grammarID = 1191;
- } else if (1==1) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- done = 1;
- }
- grammarID = 3;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 1191:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}RootCertificateID), END_ELEMENT] */
- if (v2gListOfRootCertificateIDsType_RootCertificateID_currArrayIndex < v2gListOfRootCertificateIDsType->RootCertificateID.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- errn = encode_v2gX509IssuerSerialType(stream, &v2gListOfRootCertificateIDsType->RootCertificateID.array [v2gListOfRootCertificateIDsType_RootCertificateID_currArrayIndex++]);
- }
- grammarID = 1192;
- } else if (1==1) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- done = 1;
- }
- grammarID = 3;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 1192:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}RootCertificateID), END_ELEMENT] */
- if (v2gListOfRootCertificateIDsType_RootCertificateID_currArrayIndex < v2gListOfRootCertificateIDsType->RootCertificateID.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- errn = encode_v2gX509IssuerSerialType(stream, &v2gListOfRootCertificateIDsType->RootCertificateID.array [v2gListOfRootCertificateIDsType_RootCertificateID_currArrayIndex++]);
- }
- grammarID = 1193;
- } else if (1==1) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- done = 1;
- }
- grammarID = 3;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 1193:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}RootCertificateID), END_ELEMENT] */
- if (v2gListOfRootCertificateIDsType_RootCertificateID_currArrayIndex < v2gListOfRootCertificateIDsType->RootCertificateID.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- errn = encode_v2gX509IssuerSerialType(stream, &v2gListOfRootCertificateIDsType->RootCertificateID.array [v2gListOfRootCertificateIDsType_RootCertificateID_currArrayIndex++]);
- }
- grammarID = 1194;
- } else if (1==1) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- done = 1;
- }
- grammarID = 3;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 1194:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}RootCertificateID), END_ELEMENT] */
- if (v2gListOfRootCertificateIDsType_RootCertificateID_currArrayIndex < v2gListOfRootCertificateIDsType->RootCertificateID.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- errn = encode_v2gX509IssuerSerialType(stream, &v2gListOfRootCertificateIDsType->RootCertificateID.array [v2gListOfRootCertificateIDsType_RootCertificateID_currArrayIndex++]);
- }
- grammarID = 1195;
- } else if (1==1) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- done = 1;
- }
- grammarID = 3;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 1195:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}RootCertificateID), END_ELEMENT] */
- if (v2gListOfRootCertificateIDsType_RootCertificateID_currArrayIndex < v2gListOfRootCertificateIDsType->RootCertificateID.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- errn = encode_v2gX509IssuerSerialType(stream, &v2gListOfRootCertificateIDsType->RootCertificateID.array [v2gListOfRootCertificateIDsType_RootCertificateID_currArrayIndex++]);
- }
- grammarID = 1196;
- } else if (1==1) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- done = 1;
- }
- grammarID = 3;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 1196:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}RootCertificateID), END_ELEMENT] */
- if (v2gListOfRootCertificateIDsType_RootCertificateID_currArrayIndex < v2gListOfRootCertificateIDsType->RootCertificateID.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- errn = encode_v2gX509IssuerSerialType(stream, &v2gListOfRootCertificateIDsType->RootCertificateID.array [v2gListOfRootCertificateIDsType_RootCertificateID_currArrayIndex++]);
- }
- grammarID = 1197;
- } else if (1==1) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- done = 1;
- }
- grammarID = 3;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 1197:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}RootCertificateID), END_ELEMENT] */
- if (v2gListOfRootCertificateIDsType_RootCertificateID_currArrayIndex < v2gListOfRootCertificateIDsType->RootCertificateID.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- errn = encode_v2gX509IssuerSerialType(stream, &v2gListOfRootCertificateIDsType->RootCertificateID.array [v2gListOfRootCertificateIDsType_RootCertificateID_currArrayIndex++]);
- }
- grammarID = 1198;
- } else if (1==1) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- done = 1;
- }
- grammarID = 3;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 1198:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}RootCertificateID), END_ELEMENT] */
- if (v2gListOfRootCertificateIDsType_RootCertificateID_currArrayIndex < v2gListOfRootCertificateIDsType->RootCertificateID.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- errn = encode_v2gX509IssuerSerialType(stream, &v2gListOfRootCertificateIDsType->RootCertificateID.array [v2gListOfRootCertificateIDsType_RootCertificateID_currArrayIndex++]);
- }
- grammarID = 1199;
- } else if (1==1) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- done = 1;
- }
- grammarID = 3;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 1199:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}RootCertificateID), END_ELEMENT] */
- if (v2gListOfRootCertificateIDsType_RootCertificateID_currArrayIndex < v2gListOfRootCertificateIDsType->RootCertificateID.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- errn = encode_v2gX509IssuerSerialType(stream, &v2gListOfRootCertificateIDsType->RootCertificateID.array [v2gListOfRootCertificateIDsType_RootCertificateID_currArrayIndex++]);
- }
- grammarID = 1200;
- } else if (1==1) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- done = 1;
- }
- grammarID = 3;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 1200:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}RootCertificateID), END_ELEMENT] */
- if (v2gListOfRootCertificateIDsType_RootCertificateID_currArrayIndex < v2gListOfRootCertificateIDsType->RootCertificateID.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- errn = encode_v2gX509IssuerSerialType(stream, &v2gListOfRootCertificateIDsType->RootCertificateID.array [v2gListOfRootCertificateIDsType_RootCertificateID_currArrayIndex++]);
- }
- grammarID = 1201;
- } else if (1==1) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- done = 1;
- }
- grammarID = 3;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 1201:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}RootCertificateID), END_ELEMENT] */
- if (v2gListOfRootCertificateIDsType_RootCertificateID_currArrayIndex < v2gListOfRootCertificateIDsType->RootCertificateID.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- errn = encode_v2gX509IssuerSerialType(stream, &v2gListOfRootCertificateIDsType->RootCertificateID.array [v2gListOfRootCertificateIDsType_RootCertificateID_currArrayIndex++]);
- }
- grammarID = 1202;
- } else if (1==1) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- done = 1;
- }
- grammarID = 3;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 1202:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}RootCertificateID), END_ELEMENT] */
- if (v2gListOfRootCertificateIDsType_RootCertificateID_currArrayIndex < v2gListOfRootCertificateIDsType->RootCertificateID.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- errn = encode_v2gX509IssuerSerialType(stream, &v2gListOfRootCertificateIDsType->RootCertificateID.array [v2gListOfRootCertificateIDsType_RootCertificateID_currArrayIndex++]);
- }
- grammarID = 1203;
- } else if (1==1) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- done = 1;
- }
- grammarID = 3;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 1203:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}RootCertificateID), END_ELEMENT] */
- if (v2gListOfRootCertificateIDsType_RootCertificateID_currArrayIndex < v2gListOfRootCertificateIDsType->RootCertificateID.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- errn = encode_v2gX509IssuerSerialType(stream, &v2gListOfRootCertificateIDsType->RootCertificateID.array [v2gListOfRootCertificateIDsType_RootCertificateID_currArrayIndex++]);
- }
- grammarID = 1204;
- } else if (1==1) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- done = 1;
- }
- grammarID = 3;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 1204:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}RootCertificateID), END_ELEMENT] */
- if (v2gListOfRootCertificateIDsType_RootCertificateID_currArrayIndex < v2gListOfRootCertificateIDsType->RootCertificateID.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- errn = encode_v2gX509IssuerSerialType(stream, &v2gListOfRootCertificateIDsType->RootCertificateID.array [v2gListOfRootCertificateIDsType_RootCertificateID_currArrayIndex++]);
- }
- 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='http://www.w3.org/2000/09/xmldsig#,SPKIDataType', base type name='anyType', content type='ELEMENT', isAbstract='false', hasTypeId='false', final='0', block='0', particle='("http://www.w3.org/2000/09/xmldsig#":SPKISexp,(WC[##other:"http://www.w3.org/2000/09/xmldsig#"]){0-1}){1-UNBOUNDED}', derivedBy='RESTRICTION'. */
-static int encode_v2gSPKIDataType(bitstream_t* stream, struct v2gSPKIDataType* v2gSPKIDataType) {
- int grammarID = 1205;
- int done = 0;
- int wcDone = 0;
-
- unsigned int v2gSPKIDataType_SPKISexp_currArrayIndex = 0;
-
- while(!done) {
- switch(grammarID) {
- case 1205:
- /* FirstStartTag[START_ELEMENT({http://www.w3.org/2000/09/xmldsig#}SPKISexp)] */
- if (v2gSPKIDataType_SPKISexp_currArrayIndex < v2gSPKIDataType->SPKISexp.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- if(errn == 0) {
- /* First(xsi:type)StartTag[CHARACTERS[BINARY_BASE64]] */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- if(errn == 0) {
- errn = encodeUnsignedInteger16(stream, (uint16_t)(v2gSPKIDataType->SPKISexp.array[v2gSPKIDataType_SPKISexp_currArrayIndex].bytesLen));
- if (errn == 0) {
- errn = encodeBytes(stream, v2gSPKIDataType->SPKISexp.array[v2gSPKIDataType_SPKISexp_currArrayIndex].bytes, v2gSPKIDataType->SPKISexp.array[v2gSPKIDataType_SPKISexp_currArrayIndex].bytesLen);
- v2gSPKIDataType_SPKISexp_currArrayIndex++;
- }
- /* valid EE */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- }
- }
- grammarID = 1206;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 1206:
- /* Element[START_ELEMENT({http://www.w3.org/2000/09/xmldsig#}SPKISexp), START_ELEMENT_GENERIC, END_ELEMENT] */
- if (v2gSPKIDataType_SPKISexp_currArrayIndex < v2gSPKIDataType->SPKISexp.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- /* First(xsi:type)StartTag[CHARACTERS[BINARY_BASE64]] */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- if(errn == 0) {
- errn = encodeUnsignedInteger16(stream, (uint16_t)(v2gSPKIDataType->SPKISexp.array[v2gSPKIDataType_SPKISexp_currArrayIndex].bytesLen));
- if (errn == 0) {
- errn = encodeBytes(stream, v2gSPKIDataType->SPKISexp.array[v2gSPKIDataType_SPKISexp_currArrayIndex].bytes, v2gSPKIDataType->SPKISexp.array[v2gSPKIDataType_SPKISexp_currArrayIndex].bytesLen);
- v2gSPKIDataType_SPKISexp_currArrayIndex++;
- }
- /* valid EE */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- }
- }
- grammarID = 1206;
- } else if (1==0) {
- errn = EXI_UNSUPPORTED_EVENT_CODE_CHARACTERISTICS;
- grammarID = 1207;
- } else if ( v2gSPKIDataType->ANY_isUsed == 0u || wcDone ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 2);
- if(errn == 0) {
- done = 1;
- }
- grammarID = 3;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 1207:
- /* Element[START_ELEMENT({http://www.w3.org/2000/09/xmldsig#}SPKISexp), END_ELEMENT] */
- if (v2gSPKIDataType_SPKISexp_currArrayIndex < v2gSPKIDataType->SPKISexp.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- /* First(xsi:type)StartTag[CHARACTERS[BINARY_BASE64]] */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- if(errn == 0) {
- errn = encodeUnsignedInteger16(stream, (uint16_t)(v2gSPKIDataType->SPKISexp.array[v2gSPKIDataType_SPKISexp_currArrayIndex].bytesLen));
- if (errn == 0) {
- errn = encodeBytes(stream, v2gSPKIDataType->SPKISexp.array[v2gSPKIDataType_SPKISexp_currArrayIndex].bytes, v2gSPKIDataType->SPKISexp.array[v2gSPKIDataType_SPKISexp_currArrayIndex].bytesLen);
- v2gSPKIDataType_SPKISexp_currArrayIndex++;
- }
- /* valid EE */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- }
- }
- grammarID = 1206;
- } else if ( v2gSPKIDataType->ANY_isUsed == 0u || wcDone ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- 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:2016:MsgBody,DC_BidirectionalControlReqType', base type name='ChargeLoopReqType', content type='ELEMENT', isAbstract='false', hasTypeId='false', final='0', block='0', particle='(("urn:iso:15118:2:2016:MsgBody":EVTargetEnergyRequest,"urn:iso:15118:2:2016:MsgBody":EVMaximumEnergyRequest{0-1},"urn:iso:15118:2:2016:MsgBody":EVMinimumEnergyRequest{0-1},"urn:iso:15118:2:2016:MsgBody":DisplayParameters{0-1}),("urn:iso:15118:2:2016:MsgBody":EVTargetCurrent,"urn:iso:15118:2:2016:MsgBody":EVTargetVoltage,"urn:iso:15118:2:2016:MsgBody":EVMaximumVoltage,"urn:iso:15118:2:2016:MsgBody":EVMinimumVoltage,"urn:iso:15118:2:2016:MsgBody":EVMaximumChargeCurrent,"urn:iso:15118:2:2016:MsgBody":EVMaximumDischargeCurrent{0-1},"urn:iso:15118:2:2016:MsgBody":EVMaximumChargePower{0-1},"urn:iso:15118:2:2016:MsgBody":EVMaximumDischargePower{0-1}))', derivedBy='EXTENSION'. */
-static int encode_v2gDC_BidirectionalControlReqType(bitstream_t* stream, struct v2gDC_BidirectionalControlReqType* v2gDC_BidirectionalControlReqType) {
- int grammarID = 1208;
- int done = 0;
-
-
- while(!done) {
- switch(grammarID) {
- case 1208:
- /* FirstStartTag[START_ELEMENT({urn:iso:15118:2:2016:MsgBody}EVTargetEnergyRequest)] */
- if ( 1 == 1 ) {
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- if(errn == 0) {
- errn = encode_v2gPhysicalValueType(stream, &v2gDC_BidirectionalControlReqType->EVTargetEnergyRequest );
- }
- grammarID = 1209;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 1209:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgBody}EVMaximumEnergyRequest), START_ELEMENT({urn:iso:15118:2:2016:MsgBody}EVMinimumEnergyRequest), START_ELEMENT({urn:iso:15118:2:2016:MsgBody}DisplayParameters), START_ELEMENT({urn:iso:15118:2:2016:MsgBody}EVTargetCurrent)] */
- if ( v2gDC_BidirectionalControlReqType->EVMaximumEnergyRequest_isUsed == 1u ) {
- errn = encodeNBitUnsignedInteger(stream, 3, 0);
- if(errn == 0) {
- errn = encode_v2gPhysicalValueType(stream, &v2gDC_BidirectionalControlReqType->EVMaximumEnergyRequest );
- }
- grammarID = 1210;
- } else if ( v2gDC_BidirectionalControlReqType->EVMinimumEnergyRequest_isUsed == 1u ) {
- errn = encodeNBitUnsignedInteger(stream, 3, 1);
- if(errn == 0) {
- errn = encode_v2gPhysicalValueType(stream, &v2gDC_BidirectionalControlReqType->EVMinimumEnergyRequest );
- }
- grammarID = 1211;
- } else if ( v2gDC_BidirectionalControlReqType->DisplayParameters_isUsed == 1u ) {
- errn = encodeNBitUnsignedInteger(stream, 3, 2);
- if(errn == 0) {
- errn = encode_v2gDisplayParametersType(stream, &v2gDC_BidirectionalControlReqType->DisplayParameters );
- }
- grammarID = 1212;
- } else if ( 1 == 1 ) {
- errn = encodeNBitUnsignedInteger(stream, 3, 3);
- if(errn == 0) {
- errn = encode_v2gPhysicalValueType(stream, &v2gDC_BidirectionalControlReqType->EVTargetCurrent );
- }
- grammarID = 1213;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 1210:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgBody}EVMinimumEnergyRequest), START_ELEMENT({urn:iso:15118:2:2016:MsgBody}DisplayParameters), START_ELEMENT({urn:iso:15118:2:2016:MsgBody}EVTargetCurrent)] */
- if ( v2gDC_BidirectionalControlReqType->EVMinimumEnergyRequest_isUsed == 1u ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- errn = encode_v2gPhysicalValueType(stream, &v2gDC_BidirectionalControlReqType->EVMinimumEnergyRequest );
- }
- grammarID = 1211;
- } else if ( v2gDC_BidirectionalControlReqType->DisplayParameters_isUsed == 1u ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- errn = encode_v2gDisplayParametersType(stream, &v2gDC_BidirectionalControlReqType->DisplayParameters );
- }
- grammarID = 1212;
- } else if ( 1 == 1 ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 2);
- if(errn == 0) {
- errn = encode_v2gPhysicalValueType(stream, &v2gDC_BidirectionalControlReqType->EVTargetCurrent );
- }
- grammarID = 1213;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 1211:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgBody}DisplayParameters), START_ELEMENT({urn:iso:15118:2:2016:MsgBody}EVTargetCurrent)] */
- if ( v2gDC_BidirectionalControlReqType->DisplayParameters_isUsed == 1u ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- errn = encode_v2gDisplayParametersType(stream, &v2gDC_BidirectionalControlReqType->DisplayParameters );
- }
- grammarID = 1212;
- } else if ( 1 == 1 ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- errn = encode_v2gPhysicalValueType(stream, &v2gDC_BidirectionalControlReqType->EVTargetCurrent );
- }
- grammarID = 1213;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 1212:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgBody}EVTargetCurrent)] */
- if ( 1 == 1 ) {
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- if(errn == 0) {
- errn = encode_v2gPhysicalValueType(stream, &v2gDC_BidirectionalControlReqType->EVTargetCurrent );
- }
- grammarID = 1213;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 1213:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgBody}EVTargetVoltage)] */
- if ( 1 == 1 ) {
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- if(errn == 0) {
- errn = encode_v2gPhysicalValueType(stream, &v2gDC_BidirectionalControlReqType->EVTargetVoltage );
- }
- grammarID = 1214;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 1214:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgBody}EVMaximumVoltage)] */
- if ( 1 == 1 ) {
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- if(errn == 0) {
- errn = encode_v2gPhysicalValueType(stream, &v2gDC_BidirectionalControlReqType->EVMaximumVoltage );
- }
- grammarID = 1215;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 1215:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgBody}EVMinimumVoltage)] */
- if ( 1 == 1 ) {
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- if(errn == 0) {
- errn = encode_v2gPhysicalValueType(stream, &v2gDC_BidirectionalControlReqType->EVMinimumVoltage );
- }
- grammarID = 1216;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 1216:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgBody}EVMaximumChargeCurrent)] */
- if ( 1 == 1 ) {
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- if(errn == 0) {
- errn = encode_v2gPhysicalValueType(stream, &v2gDC_BidirectionalControlReqType->EVMaximumChargeCurrent );
- }
- grammarID = 1217;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 1217:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgBody}EVMaximumDischargeCurrent), START_ELEMENT({urn:iso:15118:2:2016:MsgBody}EVMaximumChargePower), START_ELEMENT({urn:iso:15118:2:2016:MsgBody}EVMaximumDischargePower), END_ELEMENT] */
- if ( v2gDC_BidirectionalControlReqType->EVMaximumDischargeCurrent_isUsed == 1u ) {
- errn = encodeNBitUnsignedInteger(stream, 3, 0);
- if(errn == 0) {
- errn = encode_v2gPhysicalValueType(stream, &v2gDC_BidirectionalControlReqType->EVMaximumDischargeCurrent );
- }
- grammarID = 1218;
- } else if ( v2gDC_BidirectionalControlReqType->EVMaximumChargePower_isUsed == 1u ) {
- errn = encodeNBitUnsignedInteger(stream, 3, 1);
- if(errn == 0) {
- errn = encode_v2gPhysicalValueType(stream, &v2gDC_BidirectionalControlReqType->EVMaximumChargePower );
- }
- grammarID = 1219;
- } else if ( v2gDC_BidirectionalControlReqType->EVMaximumDischargePower_isUsed == 1u ) {
- errn = encodeNBitUnsignedInteger(stream, 3, 2);
- if(errn == 0) {
- errn = encode_v2gPhysicalValueType(stream, &v2gDC_BidirectionalControlReqType->EVMaximumDischargePower );
- }
- grammarID = 2;
- } else if (1==1) {
- errn = encodeNBitUnsignedInteger(stream, 3, 3);
- if(errn == 0) {
- done = 1;
- }
- grammarID = 3;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 1218:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgBody}EVMaximumChargePower), START_ELEMENT({urn:iso:15118:2:2016:MsgBody}EVMaximumDischargePower), END_ELEMENT] */
- if ( v2gDC_BidirectionalControlReqType->EVMaximumChargePower_isUsed == 1u ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- errn = encode_v2gPhysicalValueType(stream, &v2gDC_BidirectionalControlReqType->EVMaximumChargePower );
- }
- grammarID = 1219;
- } else if ( v2gDC_BidirectionalControlReqType->EVMaximumDischargePower_isUsed == 1u ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- errn = encode_v2gPhysicalValueType(stream, &v2gDC_BidirectionalControlReqType->EVMaximumDischargePower );
- }
- grammarID = 2;
- } else if (1==1) {
- errn = encodeNBitUnsignedInteger(stream, 2, 2);
- if(errn == 0) {
- done = 1;
- }
- grammarID = 3;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 1219:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgBody}EVMaximumDischargePower), END_ELEMENT] */
- if ( v2gDC_BidirectionalControlReqType->EVMaximumDischargePower_isUsed == 1u ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- errn = encode_v2gPhysicalValueType(stream, &v2gDC_BidirectionalControlReqType->EVMaximumDischargePower );
- }
- 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:2016:MsgBody,PairingResType', base type name='V2GResponseType', content type='ELEMENT', isAbstract='false', hasTypeId='false', final='0', block='0', particle='(("urn:iso:15118:2:2016:MsgBody":ResponseCode,"urn:iso:15118:2:2016:MsgBody":EVSEStatus{0-1}),("urn:iso:15118:2:2016:MsgBody":EVSEProcessing,"urn:iso:15118:2:2016:MsgBody":PairingParameters{0-1}))', derivedBy='EXTENSION'. */
-static int encode_v2gPairingResType(bitstream_t* stream, struct v2gPairingResType* v2gPairingResType) {
- int grammarID = 1220;
- int done = 0;
-
-
- while(!done) {
- switch(grammarID) {
- case 1220:
- /* FirstStartTag[START_ELEMENT({urn:iso:15118:2:2016:MsgBody}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, 5, v2gPairingResType->ResponseCode);
- /* valid EE */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- }
- }
- grammarID = 1221;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 1221:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgBody}EVSEStatus), START_ELEMENT({urn:iso:15118:2:2016:MsgBody}EVSEProcessing)] */
- if ( v2gPairingResType->EVSEStatus_isUsed == 1u ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- errn = encode_v2gEVSEStatusType(stream, &v2gPairingResType->EVSEStatus );
- }
- grammarID = 1222;
- } else if ( 1 == 1 ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- /* FirstStartTag[CHARACTERS[ENUMERATION]] */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- if(errn == 0) {
- errn = encodeNBitUnsignedInteger(stream, 2, v2gPairingResType->EVSEProcessing);
- /* valid EE */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- }
- }
- grammarID = 1223;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 1222:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgBody}EVSEProcessing)] */
- 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, v2gPairingResType->EVSEProcessing);
- /* valid EE */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- }
- }
- grammarID = 1223;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 1223:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgBody}PairingParameters), END_ELEMENT] */
- if ( v2gPairingResType->PairingParameters_isUsed == 1u ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- errn = encode_v2gParameterSetType(stream, &v2gPairingResType->PairingParameters );
- }
- 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:2016:MsgDataTypes,CartesianCoordinatesType', base type name='anyType', content type='ELEMENT', isAbstract='false', hasTypeId='false', final='0', block='0', particle='("urn:iso:15118:2:2016:MsgDataTypes":XCoordinate,"urn:iso:15118:2:2016:MsgDataTypes":YCoordinate,"urn:iso:15118:2:2016:MsgDataTypes":ZCoordinate)', derivedBy='RESTRICTION'. */
-static int encode_v2gCartesianCoordinatesType(bitstream_t* stream, struct v2gCartesianCoordinatesType* v2gCartesianCoordinatesType) {
- int grammarID = 1224;
- int done = 0;
-
-
- while(!done) {
- switch(grammarID) {
- case 1224:
- /* FirstStartTag[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}XCoordinate)] */
- if ( 1 == 1 ) {
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- if(errn == 0) {
- /* First(xsi:type)StartTag[CHARACTERS[INTEGER]] */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- if(errn == 0) {
- errn = encodeInteger16(stream, v2gCartesianCoordinatesType->XCoordinate);
- /* valid EE */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- }
- }
- grammarID = 1225;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 1225:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}YCoordinate)] */
- if ( 1 == 1 ) {
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- if(errn == 0) {
- /* First(xsi:type)StartTag[CHARACTERS[INTEGER]] */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- if(errn == 0) {
- errn = encodeInteger16(stream, v2gCartesianCoordinatesType->YCoordinate);
- /* valid EE */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- }
- }
- grammarID = 1226;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 1226:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}ZCoordinate)] */
- if ( 1 == 1 ) {
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- if(errn == 0) {
- /* First(xsi:type)StartTag[CHARACTERS[INTEGER]] */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- if(errn == 0) {
- errn = encodeInteger16(stream, v2gCartesianCoordinatesType->ZCoordinate);
- /* valid EE */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- }
- }
- grammarID = 2;
- } 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:2016:MsgBody,ChargeParameterDiscoveryReqType', base type name='BodyBaseType', content type='ELEMENT', isAbstract='false', hasTypeId='false', final='0', block='0', particle='("urn:iso:15118:2:2016:MsgBody":MaxSupportingPoints{0-1},"urn:iso:15118:2:2016:MsgDataTypes":EVEnergyTransferParameter,"urn:iso:15118:2:2016:MsgBody":MinimumPMaxRequest{0-1})', derivedBy='EXTENSION'. */
-static int encode_v2gChargeParameterDiscoveryReqType(bitstream_t* stream, struct v2gChargeParameterDiscoveryReqType* v2gChargeParameterDiscoveryReqType) {
- int grammarID = 1227;
- int done = 0;
-
-
- while(!done) {
- switch(grammarID) {
- case 1227:
- /* FirstStartTag[START_ELEMENT({urn:iso:15118:2:2016:MsgBody}MaxSupportingPoints), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}AC_EVBidirectionalParameter), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}AC_EVChargeParameter), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}DC_EVBidirectionalParameter), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}DC_EVChargeParameter), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}EVEnergyTransferParameter), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}WPT_EVChargeParameter)] */
- if ( v2gChargeParameterDiscoveryReqType->MaxSupportingPoints_isUsed == 1u ) {
- errn = encodeNBitUnsignedInteger(stream, 3, 0);
- if(errn == 0) {
- /* FirstStartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- if(errn == 0) {
- errn = encodeNBitUnsignedInteger(stream, 10, (uint32_t)(v2gChargeParameterDiscoveryReqType->MaxSupportingPoints - 12));
- /* valid EE */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- }
- }
- grammarID = 1228;
- } else if ( v2gChargeParameterDiscoveryReqType->AC_EVBidirectionalParameter_isUsed == 1u ) {
- errn = encodeNBitUnsignedInteger(stream, 3, 1);
- if(errn == 0) {
- errn = encode_v2gAC_EVBidirectionalParameterType(stream, &v2gChargeParameterDiscoveryReqType->AC_EVBidirectionalParameter );
- }
- grammarID = 1229;
- } else if ( v2gChargeParameterDiscoveryReqType->AC_EVChargeParameter_isUsed == 1u ) {
- errn = encodeNBitUnsignedInteger(stream, 3, 2);
- if(errn == 0) {
- errn = encode_v2gAC_EVChargeParameterType(stream, &v2gChargeParameterDiscoveryReqType->AC_EVChargeParameter );
- }
- grammarID = 1229;
- } else if ( v2gChargeParameterDiscoveryReqType->DC_EVBidirectionalParameter_isUsed == 1u ) {
- errn = encodeNBitUnsignedInteger(stream, 3, 3);
- if(errn == 0) {
- errn = encode_v2gDC_EVBidirectionalParameterType(stream, &v2gChargeParameterDiscoveryReqType->DC_EVBidirectionalParameter );
- }
- grammarID = 1229;
- } else if ( v2gChargeParameterDiscoveryReqType->DC_EVChargeParameter_isUsed == 1u ) {
- errn = encodeNBitUnsignedInteger(stream, 3, 4);
- if(errn == 0) {
- errn = encode_v2gDC_EVChargeParameterType(stream, &v2gChargeParameterDiscoveryReqType->DC_EVChargeParameter );
- }
- grammarID = 1229;
- } else if ( v2gChargeParameterDiscoveryReqType->EVEnergyTransferParameter_isUsed == 1u ) {
- errn = encodeNBitUnsignedInteger(stream, 3, 5);
- if(errn == 0) {
- errn = encode_v2gEVEnergyTransferParameterType(stream, &v2gChargeParameterDiscoveryReqType->EVEnergyTransferParameter );
- }
- grammarID = 1229;
- } else if ( v2gChargeParameterDiscoveryReqType->WPT_EVChargeParameter_isUsed == 1u ) {
- errn = encodeNBitUnsignedInteger(stream, 3, 6);
- if(errn == 0) {
- errn = encode_v2gWPT_EVChargeParameterType(stream, &v2gChargeParameterDiscoveryReqType->WPT_EVChargeParameter );
- }
- grammarID = 1229;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 1228:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}AC_EVBidirectionalParameter), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}AC_EVChargeParameter), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}DC_EVBidirectionalParameter), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}DC_EVChargeParameter), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}EVEnergyTransferParameter), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}WPT_EVChargeParameter)] */
- if ( v2gChargeParameterDiscoveryReqType->AC_EVBidirectionalParameter_isUsed == 1u ) {
- errn = encodeNBitUnsignedInteger(stream, 3, 0);
- if(errn == 0) {
- errn = encode_v2gAC_EVBidirectionalParameterType(stream, &v2gChargeParameterDiscoveryReqType->AC_EVBidirectionalParameter );
- }
- grammarID = 1229;
- } else if ( v2gChargeParameterDiscoveryReqType->AC_EVChargeParameter_isUsed == 1u ) {
- errn = encodeNBitUnsignedInteger(stream, 3, 1);
- if(errn == 0) {
- errn = encode_v2gAC_EVChargeParameterType(stream, &v2gChargeParameterDiscoveryReqType->AC_EVChargeParameter );
- }
- grammarID = 1229;
- } else if ( v2gChargeParameterDiscoveryReqType->DC_EVBidirectionalParameter_isUsed == 1u ) {
- errn = encodeNBitUnsignedInteger(stream, 3, 2);
- if(errn == 0) {
- errn = encode_v2gDC_EVBidirectionalParameterType(stream, &v2gChargeParameterDiscoveryReqType->DC_EVBidirectionalParameter );
- }
- grammarID = 1229;
- } else if ( v2gChargeParameterDiscoveryReqType->DC_EVChargeParameter_isUsed == 1u ) {
- errn = encodeNBitUnsignedInteger(stream, 3, 3);
- if(errn == 0) {
- errn = encode_v2gDC_EVChargeParameterType(stream, &v2gChargeParameterDiscoveryReqType->DC_EVChargeParameter );
- }
- grammarID = 1229;
- } else if ( v2gChargeParameterDiscoveryReqType->EVEnergyTransferParameter_isUsed == 1u ) {
- errn = encodeNBitUnsignedInteger(stream, 3, 4);
- if(errn == 0) {
- errn = encode_v2gEVEnergyTransferParameterType(stream, &v2gChargeParameterDiscoveryReqType->EVEnergyTransferParameter );
- }
- grammarID = 1229;
- } else if ( v2gChargeParameterDiscoveryReqType->WPT_EVChargeParameter_isUsed == 1u ) {
- errn = encodeNBitUnsignedInteger(stream, 3, 5);
- if(errn == 0) {
- errn = encode_v2gWPT_EVChargeParameterType(stream, &v2gChargeParameterDiscoveryReqType->WPT_EVChargeParameter );
- }
- grammarID = 1229;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 1229:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgBody}MinimumPMaxRequest), END_ELEMENT] */
- if ( v2gChargeParameterDiscoveryReqType->MinimumPMaxRequest_isUsed == 1u ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- errn = encode_v2gMinimumPMaxRequestType(stream, &v2gChargeParameterDiscoveryReqType->MinimumPMaxRequest );
- }
- 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:2016:MsgBody,ChargeParameterDiscoveryResType', base type name='V2GResponseType', content type='ELEMENT', isAbstract='false', hasTypeId='false', final='0', block='0', particle='(("urn:iso:15118:2:2016:MsgBody":ResponseCode,"urn:iso:15118:2:2016:MsgBody":EVSEStatus{0-1}),("urn:iso:15118:2:2016:MsgBody":EVSEProcessing,"urn:iso:15118:2:2016:MsgBody":SAScheduleList{0-1},"urn:iso:15118:2:2016:MsgDataTypes":EVSEEnergyTransferParameter))', derivedBy='EXTENSION'. */
-static int encode_v2gChargeParameterDiscoveryResType(bitstream_t* stream, struct v2gChargeParameterDiscoveryResType* v2gChargeParameterDiscoveryResType) {
- int grammarID = 1230;
- int done = 0;
-
-
- while(!done) {
- switch(grammarID) {
- case 1230:
- /* FirstStartTag[START_ELEMENT({urn:iso:15118:2:2016:MsgBody}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, 5, v2gChargeParameterDiscoveryResType->ResponseCode);
- /* valid EE */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- }
- }
- grammarID = 1231;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 1231:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgBody}EVSEStatus), START_ELEMENT({urn:iso:15118:2:2016:MsgBody}EVSEProcessing)] */
- if ( v2gChargeParameterDiscoveryResType->EVSEStatus_isUsed == 1u ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- errn = encode_v2gEVSEStatusType(stream, &v2gChargeParameterDiscoveryResType->EVSEStatus );
- }
- grammarID = 1232;
- } else if ( 1 == 1 ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- /* FirstStartTag[CHARACTERS[ENUMERATION]] */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- if(errn == 0) {
- errn = encodeNBitUnsignedInteger(stream, 2, v2gChargeParameterDiscoveryResType->EVSEProcessing);
- /* valid EE */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- }
- }
- grammarID = 1233;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 1232:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgBody}EVSEProcessing)] */
- 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, v2gChargeParameterDiscoveryResType->EVSEProcessing);
- /* valid EE */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- }
- }
- grammarID = 1233;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 1233:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgBody}SAScheduleList), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}AC_EVSEBidirectionalParameter), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}AC_EVSEChargeParameter), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}DC_EVSEBidirectionalParameter), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}DC_EVSEChargeParameter), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}EVSEEnergyTransferParameter), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}WPT_EVSEChargeParameter)] */
- if ( v2gChargeParameterDiscoveryResType->SAScheduleList_isUsed == 1u ) {
- errn = encodeNBitUnsignedInteger(stream, 3, 0);
- if(errn == 0) {
- errn = encode_v2gSAScheduleListType(stream, &v2gChargeParameterDiscoveryResType->SAScheduleList );
- }
- grammarID = 1234;
- } else if ( v2gChargeParameterDiscoveryResType->AC_EVSEBidirectionalParameter_isUsed == 1u ) {
- errn = encodeNBitUnsignedInteger(stream, 3, 1);
- if(errn == 0) {
- errn = encode_v2gAC_EVSEBidirectionalParameterType(stream, &v2gChargeParameterDiscoveryResType->AC_EVSEBidirectionalParameter );
- }
- grammarID = 2;
- } else if ( v2gChargeParameterDiscoveryResType->AC_EVSEChargeParameter_isUsed == 1u ) {
- errn = encodeNBitUnsignedInteger(stream, 3, 2);
- if(errn == 0) {
- errn = encode_v2gAC_EVSEChargeParameterType(stream, &v2gChargeParameterDiscoveryResType->AC_EVSEChargeParameter );
- }
- grammarID = 2;
- } else if ( v2gChargeParameterDiscoveryResType->DC_EVSEBidirectionalParameter_isUsed == 1u ) {
- errn = encodeNBitUnsignedInteger(stream, 3, 3);
- if(errn == 0) {
- errn = encode_v2gDC_EVSEBidirectionalParameterType(stream, &v2gChargeParameterDiscoveryResType->DC_EVSEBidirectionalParameter );
- }
- grammarID = 2;
- } else if ( v2gChargeParameterDiscoveryResType->DC_EVSEChargeParameter_isUsed == 1u ) {
- errn = encodeNBitUnsignedInteger(stream, 3, 4);
- if(errn == 0) {
- errn = encode_v2gDC_EVSEChargeParameterType(stream, &v2gChargeParameterDiscoveryResType->DC_EVSEChargeParameter );
- }
- grammarID = 2;
- } else if ( v2gChargeParameterDiscoveryResType->EVSEEnergyTransferParameter_isUsed == 1u ) {
- errn = encodeNBitUnsignedInteger(stream, 3, 5);
- if(errn == 0) {
- errn = encode_v2gEVSEEnergyTransferParameterType(stream, &v2gChargeParameterDiscoveryResType->EVSEEnergyTransferParameter );
- }
- grammarID = 2;
- } else if ( v2gChargeParameterDiscoveryResType->WPT_EVSEChargeParameter_isUsed == 1u ) {
- errn = encodeNBitUnsignedInteger(stream, 3, 6);
- if(errn == 0) {
- errn = encode_v2gWPT_EVSEChargeParameterType(stream, &v2gChargeParameterDiscoveryResType->WPT_EVSEChargeParameter );
- }
- grammarID = 2;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 1234:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}AC_EVSEBidirectionalParameter), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}AC_EVSEChargeParameter), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}DC_EVSEBidirectionalParameter), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}DC_EVSEChargeParameter), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}EVSEEnergyTransferParameter), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}WPT_EVSEChargeParameter)] */
- if ( v2gChargeParameterDiscoveryResType->AC_EVSEBidirectionalParameter_isUsed == 1u ) {
- errn = encodeNBitUnsignedInteger(stream, 3, 0);
- if(errn == 0) {
- errn = encode_v2gAC_EVSEBidirectionalParameterType(stream, &v2gChargeParameterDiscoveryResType->AC_EVSEBidirectionalParameter );
- }
- grammarID = 2;
- } else if ( v2gChargeParameterDiscoveryResType->AC_EVSEChargeParameter_isUsed == 1u ) {
- errn = encodeNBitUnsignedInteger(stream, 3, 1);
- if(errn == 0) {
- errn = encode_v2gAC_EVSEChargeParameterType(stream, &v2gChargeParameterDiscoveryResType->AC_EVSEChargeParameter );
- }
- grammarID = 2;
- } else if ( v2gChargeParameterDiscoveryResType->DC_EVSEBidirectionalParameter_isUsed == 1u ) {
- errn = encodeNBitUnsignedInteger(stream, 3, 2);
- if(errn == 0) {
- errn = encode_v2gDC_EVSEBidirectionalParameterType(stream, &v2gChargeParameterDiscoveryResType->DC_EVSEBidirectionalParameter );
- }
- grammarID = 2;
- } else if ( v2gChargeParameterDiscoveryResType->DC_EVSEChargeParameter_isUsed == 1u ) {
- errn = encodeNBitUnsignedInteger(stream, 3, 3);
- if(errn == 0) {
- errn = encode_v2gDC_EVSEChargeParameterType(stream, &v2gChargeParameterDiscoveryResType->DC_EVSEChargeParameter );
- }
- grammarID = 2;
- } else if ( v2gChargeParameterDiscoveryResType->EVSEEnergyTransferParameter_isUsed == 1u ) {
- errn = encodeNBitUnsignedInteger(stream, 3, 4);
- if(errn == 0) {
- errn = encode_v2gEVSEEnergyTransferParameterType(stream, &v2gChargeParameterDiscoveryResType->EVSEEnergyTransferParameter );
- }
- grammarID = 2;
- } else if ( v2gChargeParameterDiscoveryResType->WPT_EVSEChargeParameter_isUsed == 1u ) {
- errn = encodeNBitUnsignedInteger(stream, 3, 5);
- if(errn == 0) {
- errn = encode_v2gWPT_EVSEChargeParameterType(stream, &v2gChargeParameterDiscoveryResType->WPT_EVSEChargeParameter );
- }
- grammarID = 2;
- } 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='http://www.w3.org/2000/09/xmldsig#,RSAKeyValueType', base type name='anyType', content type='ELEMENT', isAbstract='false', hasTypeId='false', final='0', block='0', particle='("http://www.w3.org/2000/09/xmldsig#":Modulus,"http://www.w3.org/2000/09/xmldsig#":Exponent)', derivedBy='RESTRICTION'. */
-static int encode_v2gRSAKeyValueType(bitstream_t* stream, struct v2gRSAKeyValueType* v2gRSAKeyValueType) {
- int grammarID = 1235;
- int done = 0;
-
-
- while(!done) {
- switch(grammarID) {
- case 1235:
- /* FirstStartTag[START_ELEMENT({http://www.w3.org/2000/09/xmldsig#}Modulus)] */
- if ( 1 == 1 ) {
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- if(errn == 0) {
- /* FirstStartTag[CHARACTERS[BINARY_BASE64]] */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- if(errn == 0) {
- errn = encodeUnsignedInteger16(stream, (uint16_t)(v2gRSAKeyValueType->Modulus.bytesLen));
- if (errn == 0) {
- errn = encodeBytes(stream, v2gRSAKeyValueType->Modulus.bytes, v2gRSAKeyValueType->Modulus.bytesLen);
- }
- /* valid EE */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- }
- }
- grammarID = 1236;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 1236:
- /* Element[START_ELEMENT({http://www.w3.org/2000/09/xmldsig#}Exponent)] */
- if ( 1 == 1 ) {
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- if(errn == 0) {
- /* FirstStartTag[CHARACTERS[BINARY_BASE64]] */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- if(errn == 0) {
- errn = encodeUnsignedInteger16(stream, (uint16_t)(v2gRSAKeyValueType->Exponent.bytesLen));
- if (errn == 0) {
- errn = encodeBytes(stream, v2gRSAKeyValueType->Exponent.bytes, v2gRSAKeyValueType->Exponent.bytesLen);
- }
- /* valid EE */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- }
- }
- grammarID = 2;
- } 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:2016:MsgDataTypes,LFA_EVFinePositioningSetupParametersType', base type name='EVFinePositioningSetupParametersType', content type='ELEMENT', isAbstract='false', hasTypeId='false', final='0', block='0', particle='("urn:iso:15118:2:2016:MsgDataTypes":NumberOfSensors,"urn:iso:15118:2:2016:MsgDataTypes":SensorList,"urn:iso:15118:2:2016:MsgDataTypes":SensorOrder{1-255},"urn:iso:15118:2:2016:MsgDataTypes":SignalPulseDuration,"urn:iso:15118:2:2016:MsgDataTypes":SignalSeparationTime,"urn:iso:15118:2:2016:MsgDataTypes":PackageSeparationTime,"urn:iso:15118:2:2016:MsgDataTypes":AlignmentOffset)', derivedBy='EXTENSION'. */
-static int encode_v2gLFA_EVFinePositioningSetupParametersType(bitstream_t* stream, struct v2gLFA_EVFinePositioningSetupParametersType* v2gLFA_EVFinePositioningSetupParametersType) {
- int grammarID = 1237;
- int done = 0;
-
- unsigned int v2gLFA_EVFinePositioningSetupParametersType_SensorOrder_currArrayIndex = 0;
-
- while(!done) {
- switch(grammarID) {
- case 1237:
- /* FirstStartTag[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}NumberOfSensors)] */
- if ( 1 == 1 ) {
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- if(errn == 0) {
- /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- if(errn == 0) {
- errn = encodeNBitUnsignedInteger(stream, 8, (uint32_t)(v2gLFA_EVFinePositioningSetupParametersType->NumberOfSensors - 0));
- /* valid EE */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- }
- }
- grammarID = 1238;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 1238:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorList)] */
- if ( 1 == 1 ) {
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- if(errn == 0) {
- errn = encode_v2gSensorListType(stream, &v2gLFA_EVFinePositioningSetupParametersType->SensorList );
- }
- grammarID = 1239;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 1239:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorOrder)] */
- if (v2gLFA_EVFinePositioningSetupParametersType_SensorOrder_currArrayIndex < v2gLFA_EVFinePositioningSetupParametersType->SensorOrder.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- if(errn == 0) {
- /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- if(errn == 0) {
- errn = encodeNBitUnsignedInteger(stream, 8, (uint32_t)(v2gLFA_EVFinePositioningSetupParametersType->SensorOrder.array[v2gLFA_EVFinePositioningSetupParametersType_SensorOrder_currArrayIndex++] - 0));
- /* valid EE */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- }
- }
- grammarID = 1240;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 1240:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorOrder), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SignalPulseDuration)] */
- if (v2gLFA_EVFinePositioningSetupParametersType_SensorOrder_currArrayIndex < v2gLFA_EVFinePositioningSetupParametersType->SensorOrder.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- if(errn == 0) {
- errn = encodeNBitUnsignedInteger(stream, 8, (uint32_t)(v2gLFA_EVFinePositioningSetupParametersType->SensorOrder.array[v2gLFA_EVFinePositioningSetupParametersType_SensorOrder_currArrayIndex++] - 0));
- /* valid EE */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- }
- }
- grammarID = 1241;
- } else if ( 1 == 1 ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- if(errn == 0) {
- errn = encodeNBitUnsignedInteger(stream, 8, (uint32_t)(v2gLFA_EVFinePositioningSetupParametersType->SignalPulseDuration - 0));
- /* valid EE */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- }
- }
- grammarID = 1242;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 1241:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorOrder), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SignalPulseDuration)] */
- if (v2gLFA_EVFinePositioningSetupParametersType_SensorOrder_currArrayIndex < v2gLFA_EVFinePositioningSetupParametersType->SensorOrder.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- if(errn == 0) {
- errn = encodeNBitUnsignedInteger(stream, 8, (uint32_t)(v2gLFA_EVFinePositioningSetupParametersType->SensorOrder.array[v2gLFA_EVFinePositioningSetupParametersType_SensorOrder_currArrayIndex++] - 0));
- /* valid EE */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- }
- }
- grammarID = 1243;
- } else if ( 1 == 1 ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- if(errn == 0) {
- errn = encodeNBitUnsignedInteger(stream, 8, (uint32_t)(v2gLFA_EVFinePositioningSetupParametersType->SignalPulseDuration - 0));
- /* valid EE */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- }
- }
- grammarID = 1242;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 1243:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorOrder), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SignalPulseDuration)] */
- if (v2gLFA_EVFinePositioningSetupParametersType_SensorOrder_currArrayIndex < v2gLFA_EVFinePositioningSetupParametersType->SensorOrder.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- if(errn == 0) {
- errn = encodeNBitUnsignedInteger(stream, 8, (uint32_t)(v2gLFA_EVFinePositioningSetupParametersType->SensorOrder.array[v2gLFA_EVFinePositioningSetupParametersType_SensorOrder_currArrayIndex++] - 0));
- /* valid EE */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- }
- }
- grammarID = 1244;
- } else if ( 1 == 1 ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- if(errn == 0) {
- errn = encodeNBitUnsignedInteger(stream, 8, (uint32_t)(v2gLFA_EVFinePositioningSetupParametersType->SignalPulseDuration - 0));
- /* valid EE */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- }
- }
- grammarID = 1242;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 1244:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorOrder), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SignalPulseDuration)] */
- if (v2gLFA_EVFinePositioningSetupParametersType_SensorOrder_currArrayIndex < v2gLFA_EVFinePositioningSetupParametersType->SensorOrder.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- if(errn == 0) {
- errn = encodeNBitUnsignedInteger(stream, 8, (uint32_t)(v2gLFA_EVFinePositioningSetupParametersType->SensorOrder.array[v2gLFA_EVFinePositioningSetupParametersType_SensorOrder_currArrayIndex++] - 0));
- /* valid EE */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- }
- }
- grammarID = 1245;
- } else if ( 1 == 1 ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- if(errn == 0) {
- errn = encodeNBitUnsignedInteger(stream, 8, (uint32_t)(v2gLFA_EVFinePositioningSetupParametersType->SignalPulseDuration - 0));
- /* valid EE */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- }
- }
- grammarID = 1242;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 1245:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorOrder), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SignalPulseDuration)] */
- if (v2gLFA_EVFinePositioningSetupParametersType_SensorOrder_currArrayIndex < v2gLFA_EVFinePositioningSetupParametersType->SensorOrder.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- if(errn == 0) {
- errn = encodeNBitUnsignedInteger(stream, 8, (uint32_t)(v2gLFA_EVFinePositioningSetupParametersType->SensorOrder.array[v2gLFA_EVFinePositioningSetupParametersType_SensorOrder_currArrayIndex++] - 0));
- /* valid EE */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- }
- }
- grammarID = 1246;
- } else if ( 1 == 1 ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- if(errn == 0) {
- errn = encodeNBitUnsignedInteger(stream, 8, (uint32_t)(v2gLFA_EVFinePositioningSetupParametersType->SignalPulseDuration - 0));
- /* valid EE */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- }
- }
- grammarID = 1242;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 1246:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorOrder), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SignalPulseDuration)] */
- if (v2gLFA_EVFinePositioningSetupParametersType_SensorOrder_currArrayIndex < v2gLFA_EVFinePositioningSetupParametersType->SensorOrder.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- if(errn == 0) {
- errn = encodeNBitUnsignedInteger(stream, 8, (uint32_t)(v2gLFA_EVFinePositioningSetupParametersType->SensorOrder.array[v2gLFA_EVFinePositioningSetupParametersType_SensorOrder_currArrayIndex++] - 0));
- /* valid EE */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- }
- }
- grammarID = 1247;
- } else if ( 1 == 1 ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- if(errn == 0) {
- errn = encodeNBitUnsignedInteger(stream, 8, (uint32_t)(v2gLFA_EVFinePositioningSetupParametersType->SignalPulseDuration - 0));
- /* valid EE */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- }
- }
- grammarID = 1242;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 1247:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorOrder), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SignalPulseDuration)] */
- if (v2gLFA_EVFinePositioningSetupParametersType_SensorOrder_currArrayIndex < v2gLFA_EVFinePositioningSetupParametersType->SensorOrder.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- if(errn == 0) {
- errn = encodeNBitUnsignedInteger(stream, 8, (uint32_t)(v2gLFA_EVFinePositioningSetupParametersType->SensorOrder.array[v2gLFA_EVFinePositioningSetupParametersType_SensorOrder_currArrayIndex++] - 0));
- /* valid EE */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- }
- }
- grammarID = 1248;
- } else if ( 1 == 1 ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- if(errn == 0) {
- errn = encodeNBitUnsignedInteger(stream, 8, (uint32_t)(v2gLFA_EVFinePositioningSetupParametersType->SignalPulseDuration - 0));
- /* valid EE */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- }
- }
- grammarID = 1242;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 1248:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorOrder), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SignalPulseDuration)] */
- if (v2gLFA_EVFinePositioningSetupParametersType_SensorOrder_currArrayIndex < v2gLFA_EVFinePositioningSetupParametersType->SensorOrder.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- if(errn == 0) {
- errn = encodeNBitUnsignedInteger(stream, 8, (uint32_t)(v2gLFA_EVFinePositioningSetupParametersType->SensorOrder.array[v2gLFA_EVFinePositioningSetupParametersType_SensorOrder_currArrayIndex++] - 0));
- /* valid EE */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- }
- }
- grammarID = 1249;
- } else if ( 1 == 1 ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- if(errn == 0) {
- errn = encodeNBitUnsignedInteger(stream, 8, (uint32_t)(v2gLFA_EVFinePositioningSetupParametersType->SignalPulseDuration - 0));
- /* valid EE */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- }
- }
- grammarID = 1242;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 1249:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorOrder), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SignalPulseDuration)] */
- if (v2gLFA_EVFinePositioningSetupParametersType_SensorOrder_currArrayIndex < v2gLFA_EVFinePositioningSetupParametersType->SensorOrder.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- if(errn == 0) {
- errn = encodeNBitUnsignedInteger(stream, 8, (uint32_t)(v2gLFA_EVFinePositioningSetupParametersType->SensorOrder.array[v2gLFA_EVFinePositioningSetupParametersType_SensorOrder_currArrayIndex++] - 0));
- /* valid EE */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- }
- }
- grammarID = 1250;
- } else if ( 1 == 1 ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- if(errn == 0) {
- errn = encodeNBitUnsignedInteger(stream, 8, (uint32_t)(v2gLFA_EVFinePositioningSetupParametersType->SignalPulseDuration - 0));
- /* valid EE */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- }
- }
- grammarID = 1242;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 1250:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorOrder), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SignalPulseDuration)] */
- if (v2gLFA_EVFinePositioningSetupParametersType_SensorOrder_currArrayIndex < v2gLFA_EVFinePositioningSetupParametersType->SensorOrder.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- if(errn == 0) {
- errn = encodeNBitUnsignedInteger(stream, 8, (uint32_t)(v2gLFA_EVFinePositioningSetupParametersType->SensorOrder.array[v2gLFA_EVFinePositioningSetupParametersType_SensorOrder_currArrayIndex++] - 0));
- /* valid EE */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- }
- }
- grammarID = 1251;
- } else if ( 1 == 1 ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- if(errn == 0) {
- errn = encodeNBitUnsignedInteger(stream, 8, (uint32_t)(v2gLFA_EVFinePositioningSetupParametersType->SignalPulseDuration - 0));
- /* valid EE */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- }
- }
- grammarID = 1242;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 1251:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorOrder), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SignalPulseDuration)] */
- if (v2gLFA_EVFinePositioningSetupParametersType_SensorOrder_currArrayIndex < v2gLFA_EVFinePositioningSetupParametersType->SensorOrder.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- if(errn == 0) {
- errn = encodeNBitUnsignedInteger(stream, 8, (uint32_t)(v2gLFA_EVFinePositioningSetupParametersType->SensorOrder.array[v2gLFA_EVFinePositioningSetupParametersType_SensorOrder_currArrayIndex++] - 0));
- /* valid EE */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- }
- }
- grammarID = 1252;
- } else if ( 1 == 1 ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- if(errn == 0) {
- errn = encodeNBitUnsignedInteger(stream, 8, (uint32_t)(v2gLFA_EVFinePositioningSetupParametersType->SignalPulseDuration - 0));
- /* valid EE */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- }
- }
- grammarID = 1242;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 1252:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorOrder), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SignalPulseDuration)] */
- if (v2gLFA_EVFinePositioningSetupParametersType_SensorOrder_currArrayIndex < v2gLFA_EVFinePositioningSetupParametersType->SensorOrder.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- if(errn == 0) {
- errn = encodeNBitUnsignedInteger(stream, 8, (uint32_t)(v2gLFA_EVFinePositioningSetupParametersType->SensorOrder.array[v2gLFA_EVFinePositioningSetupParametersType_SensorOrder_currArrayIndex++] - 0));
- /* valid EE */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- }
- }
- grammarID = 1253;
- } else if ( 1 == 1 ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- if(errn == 0) {
- errn = encodeNBitUnsignedInteger(stream, 8, (uint32_t)(v2gLFA_EVFinePositioningSetupParametersType->SignalPulseDuration - 0));
- /* valid EE */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- }
- }
- grammarID = 1242;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 1253:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorOrder), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SignalPulseDuration)] */
- if (v2gLFA_EVFinePositioningSetupParametersType_SensorOrder_currArrayIndex < v2gLFA_EVFinePositioningSetupParametersType->SensorOrder.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- if(errn == 0) {
- errn = encodeNBitUnsignedInteger(stream, 8, (uint32_t)(v2gLFA_EVFinePositioningSetupParametersType->SensorOrder.array[v2gLFA_EVFinePositioningSetupParametersType_SensorOrder_currArrayIndex++] - 0));
- /* valid EE */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- }
- }
- grammarID = 1254;
- } else if ( 1 == 1 ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- if(errn == 0) {
- errn = encodeNBitUnsignedInteger(stream, 8, (uint32_t)(v2gLFA_EVFinePositioningSetupParametersType->SignalPulseDuration - 0));
- /* valid EE */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- }
- }
- grammarID = 1242;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 1254:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorOrder), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SignalPulseDuration)] */
- if (v2gLFA_EVFinePositioningSetupParametersType_SensorOrder_currArrayIndex < v2gLFA_EVFinePositioningSetupParametersType->SensorOrder.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- if(errn == 0) {
- errn = encodeNBitUnsignedInteger(stream, 8, (uint32_t)(v2gLFA_EVFinePositioningSetupParametersType->SensorOrder.array[v2gLFA_EVFinePositioningSetupParametersType_SensorOrder_currArrayIndex++] - 0));
- /* valid EE */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- }
- }
- grammarID = 1255;
- } else if ( 1 == 1 ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- if(errn == 0) {
- errn = encodeNBitUnsignedInteger(stream, 8, (uint32_t)(v2gLFA_EVFinePositioningSetupParametersType->SignalPulseDuration - 0));
- /* valid EE */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- }
- }
- grammarID = 1242;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 1255:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorOrder), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SignalPulseDuration)] */
- if (v2gLFA_EVFinePositioningSetupParametersType_SensorOrder_currArrayIndex < v2gLFA_EVFinePositioningSetupParametersType->SensorOrder.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- if(errn == 0) {
- errn = encodeNBitUnsignedInteger(stream, 8, (uint32_t)(v2gLFA_EVFinePositioningSetupParametersType->SensorOrder.array[v2gLFA_EVFinePositioningSetupParametersType_SensorOrder_currArrayIndex++] - 0));
- /* valid EE */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- }
- }
- grammarID = 1256;
- } else if ( 1 == 1 ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- if(errn == 0) {
- errn = encodeNBitUnsignedInteger(stream, 8, (uint32_t)(v2gLFA_EVFinePositioningSetupParametersType->SignalPulseDuration - 0));
- /* valid EE */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- }
- }
- grammarID = 1242;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 1256:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorOrder), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SignalPulseDuration)] */
- if (v2gLFA_EVFinePositioningSetupParametersType_SensorOrder_currArrayIndex < v2gLFA_EVFinePositioningSetupParametersType->SensorOrder.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- if(errn == 0) {
- errn = encodeNBitUnsignedInteger(stream, 8, (uint32_t)(v2gLFA_EVFinePositioningSetupParametersType->SensorOrder.array[v2gLFA_EVFinePositioningSetupParametersType_SensorOrder_currArrayIndex++] - 0));
- /* valid EE */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- }
- }
- grammarID = 1257;
- } else if ( 1 == 1 ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- if(errn == 0) {
- errn = encodeNBitUnsignedInteger(stream, 8, (uint32_t)(v2gLFA_EVFinePositioningSetupParametersType->SignalPulseDuration - 0));
- /* valid EE */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- }
- }
- grammarID = 1242;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 1257:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorOrder), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SignalPulseDuration)] */
- if (v2gLFA_EVFinePositioningSetupParametersType_SensorOrder_currArrayIndex < v2gLFA_EVFinePositioningSetupParametersType->SensorOrder.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- if(errn == 0) {
- errn = encodeNBitUnsignedInteger(stream, 8, (uint32_t)(v2gLFA_EVFinePositioningSetupParametersType->SensorOrder.array[v2gLFA_EVFinePositioningSetupParametersType_SensorOrder_currArrayIndex++] - 0));
- /* valid EE */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- }
- }
- grammarID = 1258;
- } else if ( 1 == 1 ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- if(errn == 0) {
- errn = encodeNBitUnsignedInteger(stream, 8, (uint32_t)(v2gLFA_EVFinePositioningSetupParametersType->SignalPulseDuration - 0));
- /* valid EE */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- }
- }
- grammarID = 1242;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 1258:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorOrder), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SignalPulseDuration)] */
- if (v2gLFA_EVFinePositioningSetupParametersType_SensorOrder_currArrayIndex < v2gLFA_EVFinePositioningSetupParametersType->SensorOrder.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- if(errn == 0) {
- errn = encodeNBitUnsignedInteger(stream, 8, (uint32_t)(v2gLFA_EVFinePositioningSetupParametersType->SensorOrder.array[v2gLFA_EVFinePositioningSetupParametersType_SensorOrder_currArrayIndex++] - 0));
- /* valid EE */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- }
- }
- grammarID = 1259;
- } else if ( 1 == 1 ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- if(errn == 0) {
- errn = encodeNBitUnsignedInteger(stream, 8, (uint32_t)(v2gLFA_EVFinePositioningSetupParametersType->SignalPulseDuration - 0));
- /* valid EE */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- }
- }
- grammarID = 1242;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 1259:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorOrder), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SignalPulseDuration)] */
- if (v2gLFA_EVFinePositioningSetupParametersType_SensorOrder_currArrayIndex < v2gLFA_EVFinePositioningSetupParametersType->SensorOrder.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- if(errn == 0) {
- errn = encodeNBitUnsignedInteger(stream, 8, (uint32_t)(v2gLFA_EVFinePositioningSetupParametersType->SensorOrder.array[v2gLFA_EVFinePositioningSetupParametersType_SensorOrder_currArrayIndex++] - 0));
- /* valid EE */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- }
- }
- grammarID = 1260;
- } else if ( 1 == 1 ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- if(errn == 0) {
- errn = encodeNBitUnsignedInteger(stream, 8, (uint32_t)(v2gLFA_EVFinePositioningSetupParametersType->SignalPulseDuration - 0));
- /* valid EE */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- }
- }
- grammarID = 1242;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 1260:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorOrder), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SignalPulseDuration)] */
- if (v2gLFA_EVFinePositioningSetupParametersType_SensorOrder_currArrayIndex < v2gLFA_EVFinePositioningSetupParametersType->SensorOrder.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- if(errn == 0) {
- errn = encodeNBitUnsignedInteger(stream, 8, (uint32_t)(v2gLFA_EVFinePositioningSetupParametersType->SensorOrder.array[v2gLFA_EVFinePositioningSetupParametersType_SensorOrder_currArrayIndex++] - 0));
- /* valid EE */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- }
- }
- grammarID = 1261;
- } else if ( 1 == 1 ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- if(errn == 0) {
- errn = encodeNBitUnsignedInteger(stream, 8, (uint32_t)(v2gLFA_EVFinePositioningSetupParametersType->SignalPulseDuration - 0));
- /* valid EE */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- }
- }
- grammarID = 1242;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 1261:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorOrder), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SignalPulseDuration)] */
- if (v2gLFA_EVFinePositioningSetupParametersType_SensorOrder_currArrayIndex < v2gLFA_EVFinePositioningSetupParametersType->SensorOrder.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- if(errn == 0) {
- errn = encodeNBitUnsignedInteger(stream, 8, (uint32_t)(v2gLFA_EVFinePositioningSetupParametersType->SensorOrder.array[v2gLFA_EVFinePositioningSetupParametersType_SensorOrder_currArrayIndex++] - 0));
- /* valid EE */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- }
- }
- grammarID = 1262;
- } else if ( 1 == 1 ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- if(errn == 0) {
- errn = encodeNBitUnsignedInteger(stream, 8, (uint32_t)(v2gLFA_EVFinePositioningSetupParametersType->SignalPulseDuration - 0));
- /* valid EE */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- }
- }
- grammarID = 1242;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 1262:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorOrder), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SignalPulseDuration)] */
- if (v2gLFA_EVFinePositioningSetupParametersType_SensorOrder_currArrayIndex < v2gLFA_EVFinePositioningSetupParametersType->SensorOrder.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- if(errn == 0) {
- errn = encodeNBitUnsignedInteger(stream, 8, (uint32_t)(v2gLFA_EVFinePositioningSetupParametersType->SensorOrder.array[v2gLFA_EVFinePositioningSetupParametersType_SensorOrder_currArrayIndex++] - 0));
- /* valid EE */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- }
- }
- grammarID = 1263;
- } else if ( 1 == 1 ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- if(errn == 0) {
- errn = encodeNBitUnsignedInteger(stream, 8, (uint32_t)(v2gLFA_EVFinePositioningSetupParametersType->SignalPulseDuration - 0));
- /* valid EE */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- }
- }
- grammarID = 1242;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 1263:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorOrder), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SignalPulseDuration)] */
- if (v2gLFA_EVFinePositioningSetupParametersType_SensorOrder_currArrayIndex < v2gLFA_EVFinePositioningSetupParametersType->SensorOrder.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- if(errn == 0) {
- errn = encodeNBitUnsignedInteger(stream, 8, (uint32_t)(v2gLFA_EVFinePositioningSetupParametersType->SensorOrder.array[v2gLFA_EVFinePositioningSetupParametersType_SensorOrder_currArrayIndex++] - 0));
- /* valid EE */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- }
- }
- grammarID = 1264;
- } else if ( 1 == 1 ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- if(errn == 0) {
- errn = encodeNBitUnsignedInteger(stream, 8, (uint32_t)(v2gLFA_EVFinePositioningSetupParametersType->SignalPulseDuration - 0));
- /* valid EE */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- }
- }
- grammarID = 1242;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 1264:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorOrder), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SignalPulseDuration)] */
- if (v2gLFA_EVFinePositioningSetupParametersType_SensorOrder_currArrayIndex < v2gLFA_EVFinePositioningSetupParametersType->SensorOrder.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- if(errn == 0) {
- errn = encodeNBitUnsignedInteger(stream, 8, (uint32_t)(v2gLFA_EVFinePositioningSetupParametersType->SensorOrder.array[v2gLFA_EVFinePositioningSetupParametersType_SensorOrder_currArrayIndex++] - 0));
- /* valid EE */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- }
- }
- grammarID = 1265;
- } else if ( 1 == 1 ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- if(errn == 0) {
- errn = encodeNBitUnsignedInteger(stream, 8, (uint32_t)(v2gLFA_EVFinePositioningSetupParametersType->SignalPulseDuration - 0));
- /* valid EE */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- }
- }
- grammarID = 1242;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 1265:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorOrder), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SignalPulseDuration)] */
- if (v2gLFA_EVFinePositioningSetupParametersType_SensorOrder_currArrayIndex < v2gLFA_EVFinePositioningSetupParametersType->SensorOrder.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- if(errn == 0) {
- errn = encodeNBitUnsignedInteger(stream, 8, (uint32_t)(v2gLFA_EVFinePositioningSetupParametersType->SensorOrder.array[v2gLFA_EVFinePositioningSetupParametersType_SensorOrder_currArrayIndex++] - 0));
- /* valid EE */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- }
- }
- grammarID = 1266;
- } else if ( 1 == 1 ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- if(errn == 0) {
- errn = encodeNBitUnsignedInteger(stream, 8, (uint32_t)(v2gLFA_EVFinePositioningSetupParametersType->SignalPulseDuration - 0));
- /* valid EE */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- }
- }
- grammarID = 1242;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 1266:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorOrder), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SignalPulseDuration)] */
- if (v2gLFA_EVFinePositioningSetupParametersType_SensorOrder_currArrayIndex < v2gLFA_EVFinePositioningSetupParametersType->SensorOrder.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- if(errn == 0) {
- errn = encodeNBitUnsignedInteger(stream, 8, (uint32_t)(v2gLFA_EVFinePositioningSetupParametersType->SensorOrder.array[v2gLFA_EVFinePositioningSetupParametersType_SensorOrder_currArrayIndex++] - 0));
- /* valid EE */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- }
- }
- grammarID = 1267;
- } else if ( 1 == 1 ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- if(errn == 0) {
- errn = encodeNBitUnsignedInteger(stream, 8, (uint32_t)(v2gLFA_EVFinePositioningSetupParametersType->SignalPulseDuration - 0));
- /* valid EE */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- }
- }
- grammarID = 1242;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 1267:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorOrder), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SignalPulseDuration)] */
- if (v2gLFA_EVFinePositioningSetupParametersType_SensorOrder_currArrayIndex < v2gLFA_EVFinePositioningSetupParametersType->SensorOrder.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- if(errn == 0) {
- errn = encodeNBitUnsignedInteger(stream, 8, (uint32_t)(v2gLFA_EVFinePositioningSetupParametersType->SensorOrder.array[v2gLFA_EVFinePositioningSetupParametersType_SensorOrder_currArrayIndex++] - 0));
- /* valid EE */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- }
- }
- grammarID = 1268;
- } else if ( 1 == 1 ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- if(errn == 0) {
- errn = encodeNBitUnsignedInteger(stream, 8, (uint32_t)(v2gLFA_EVFinePositioningSetupParametersType->SignalPulseDuration - 0));
- /* valid EE */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- }
- }
- grammarID = 1242;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 1268:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorOrder), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SignalPulseDuration)] */
- if (v2gLFA_EVFinePositioningSetupParametersType_SensorOrder_currArrayIndex < v2gLFA_EVFinePositioningSetupParametersType->SensorOrder.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- if(errn == 0) {
- errn = encodeNBitUnsignedInteger(stream, 8, (uint32_t)(v2gLFA_EVFinePositioningSetupParametersType->SensorOrder.array[v2gLFA_EVFinePositioningSetupParametersType_SensorOrder_currArrayIndex++] - 0));
- /* valid EE */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- }
- }
- grammarID = 1269;
- } else if ( 1 == 1 ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- if(errn == 0) {
- errn = encodeNBitUnsignedInteger(stream, 8, (uint32_t)(v2gLFA_EVFinePositioningSetupParametersType->SignalPulseDuration - 0));
- /* valid EE */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- }
- }
- grammarID = 1242;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 1269:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorOrder), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SignalPulseDuration)] */
- if (v2gLFA_EVFinePositioningSetupParametersType_SensorOrder_currArrayIndex < v2gLFA_EVFinePositioningSetupParametersType->SensorOrder.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- if(errn == 0) {
- errn = encodeNBitUnsignedInteger(stream, 8, (uint32_t)(v2gLFA_EVFinePositioningSetupParametersType->SensorOrder.array[v2gLFA_EVFinePositioningSetupParametersType_SensorOrder_currArrayIndex++] - 0));
- /* valid EE */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- }
- }
- grammarID = 1270;
- } else if ( 1 == 1 ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- if(errn == 0) {
- errn = encodeNBitUnsignedInteger(stream, 8, (uint32_t)(v2gLFA_EVFinePositioningSetupParametersType->SignalPulseDuration - 0));
- /* valid EE */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- }
- }
- grammarID = 1242;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 1270:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorOrder), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SignalPulseDuration)] */
- if (v2gLFA_EVFinePositioningSetupParametersType_SensorOrder_currArrayIndex < v2gLFA_EVFinePositioningSetupParametersType->SensorOrder.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- if(errn == 0) {
- errn = encodeNBitUnsignedInteger(stream, 8, (uint32_t)(v2gLFA_EVFinePositioningSetupParametersType->SensorOrder.array[v2gLFA_EVFinePositioningSetupParametersType_SensorOrder_currArrayIndex++] - 0));
- /* valid EE */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- }
- }
- grammarID = 1271;
- } else if ( 1 == 1 ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- if(errn == 0) {
- errn = encodeNBitUnsignedInteger(stream, 8, (uint32_t)(v2gLFA_EVFinePositioningSetupParametersType->SignalPulseDuration - 0));
- /* valid EE */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- }
- }
- grammarID = 1242;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 1271:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorOrder), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SignalPulseDuration)] */
- if (v2gLFA_EVFinePositioningSetupParametersType_SensorOrder_currArrayIndex < v2gLFA_EVFinePositioningSetupParametersType->SensorOrder.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- if(errn == 0) {
- errn = encodeNBitUnsignedInteger(stream, 8, (uint32_t)(v2gLFA_EVFinePositioningSetupParametersType->SensorOrder.array[v2gLFA_EVFinePositioningSetupParametersType_SensorOrder_currArrayIndex++] - 0));
- /* valid EE */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- }
- }
- grammarID = 1272;
- } else if ( 1 == 1 ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- if(errn == 0) {
- errn = encodeNBitUnsignedInteger(stream, 8, (uint32_t)(v2gLFA_EVFinePositioningSetupParametersType->SignalPulseDuration - 0));
- /* valid EE */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- }
- }
- grammarID = 1242;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 1272:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorOrder), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SignalPulseDuration)] */
- if (v2gLFA_EVFinePositioningSetupParametersType_SensorOrder_currArrayIndex < v2gLFA_EVFinePositioningSetupParametersType->SensorOrder.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- if(errn == 0) {
- errn = encodeNBitUnsignedInteger(stream, 8, (uint32_t)(v2gLFA_EVFinePositioningSetupParametersType->SensorOrder.array[v2gLFA_EVFinePositioningSetupParametersType_SensorOrder_currArrayIndex++] - 0));
- /* valid EE */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- }
- }
- grammarID = 1273;
- } else if ( 1 == 1 ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- if(errn == 0) {
- errn = encodeNBitUnsignedInteger(stream, 8, (uint32_t)(v2gLFA_EVFinePositioningSetupParametersType->SignalPulseDuration - 0));
- /* valid EE */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- }
- }
- grammarID = 1242;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 1273:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorOrder), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SignalPulseDuration)] */
- if (v2gLFA_EVFinePositioningSetupParametersType_SensorOrder_currArrayIndex < v2gLFA_EVFinePositioningSetupParametersType->SensorOrder.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- if(errn == 0) {
- errn = encodeNBitUnsignedInteger(stream, 8, (uint32_t)(v2gLFA_EVFinePositioningSetupParametersType->SensorOrder.array[v2gLFA_EVFinePositioningSetupParametersType_SensorOrder_currArrayIndex++] - 0));
- /* valid EE */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- }
- }
- grammarID = 1274;
- } else if ( 1 == 1 ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- if(errn == 0) {
- errn = encodeNBitUnsignedInteger(stream, 8, (uint32_t)(v2gLFA_EVFinePositioningSetupParametersType->SignalPulseDuration - 0));
- /* valid EE */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- }
- }
- grammarID = 1242;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 1274:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorOrder), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SignalPulseDuration)] */
- if (v2gLFA_EVFinePositioningSetupParametersType_SensorOrder_currArrayIndex < v2gLFA_EVFinePositioningSetupParametersType->SensorOrder.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- if(errn == 0) {
- errn = encodeNBitUnsignedInteger(stream, 8, (uint32_t)(v2gLFA_EVFinePositioningSetupParametersType->SensorOrder.array[v2gLFA_EVFinePositioningSetupParametersType_SensorOrder_currArrayIndex++] - 0));
- /* valid EE */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- }
- }
- grammarID = 1275;
- } else if ( 1 == 1 ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- if(errn == 0) {
- errn = encodeNBitUnsignedInteger(stream, 8, (uint32_t)(v2gLFA_EVFinePositioningSetupParametersType->SignalPulseDuration - 0));
- /* valid EE */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- }
- }
- grammarID = 1242;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 1275:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorOrder), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SignalPulseDuration)] */
- if (v2gLFA_EVFinePositioningSetupParametersType_SensorOrder_currArrayIndex < v2gLFA_EVFinePositioningSetupParametersType->SensorOrder.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- if(errn == 0) {
- errn = encodeNBitUnsignedInteger(stream, 8, (uint32_t)(v2gLFA_EVFinePositioningSetupParametersType->SensorOrder.array[v2gLFA_EVFinePositioningSetupParametersType_SensorOrder_currArrayIndex++] - 0));
- /* valid EE */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- }
- }
- grammarID = 1276;
- } else if ( 1 == 1 ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- if(errn == 0) {
- errn = encodeNBitUnsignedInteger(stream, 8, (uint32_t)(v2gLFA_EVFinePositioningSetupParametersType->SignalPulseDuration - 0));
- /* valid EE */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- }
- }
- grammarID = 1242;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 1276:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorOrder), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SignalPulseDuration)] */
- if (v2gLFA_EVFinePositioningSetupParametersType_SensorOrder_currArrayIndex < v2gLFA_EVFinePositioningSetupParametersType->SensorOrder.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- if(errn == 0) {
- errn = encodeNBitUnsignedInteger(stream, 8, (uint32_t)(v2gLFA_EVFinePositioningSetupParametersType->SensorOrder.array[v2gLFA_EVFinePositioningSetupParametersType_SensorOrder_currArrayIndex++] - 0));
- /* valid EE */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- }
- }
- grammarID = 1277;
- } else if ( 1 == 1 ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- if(errn == 0) {
- errn = encodeNBitUnsignedInteger(stream, 8, (uint32_t)(v2gLFA_EVFinePositioningSetupParametersType->SignalPulseDuration - 0));
- /* valid EE */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- }
- }
- grammarID = 1242;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 1277:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorOrder), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SignalPulseDuration)] */
- if (v2gLFA_EVFinePositioningSetupParametersType_SensorOrder_currArrayIndex < v2gLFA_EVFinePositioningSetupParametersType->SensorOrder.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- if(errn == 0) {
- errn = encodeNBitUnsignedInteger(stream, 8, (uint32_t)(v2gLFA_EVFinePositioningSetupParametersType->SensorOrder.array[v2gLFA_EVFinePositioningSetupParametersType_SensorOrder_currArrayIndex++] - 0));
- /* valid EE */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- }
- }
- grammarID = 1278;
- } else if ( 1 == 1 ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- if(errn == 0) {
- errn = encodeNBitUnsignedInteger(stream, 8, (uint32_t)(v2gLFA_EVFinePositioningSetupParametersType->SignalPulseDuration - 0));
- /* valid EE */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- }
- }
- grammarID = 1242;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 1278:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorOrder), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SignalPulseDuration)] */
- if (v2gLFA_EVFinePositioningSetupParametersType_SensorOrder_currArrayIndex < v2gLFA_EVFinePositioningSetupParametersType->SensorOrder.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- if(errn == 0) {
- errn = encodeNBitUnsignedInteger(stream, 8, (uint32_t)(v2gLFA_EVFinePositioningSetupParametersType->SensorOrder.array[v2gLFA_EVFinePositioningSetupParametersType_SensorOrder_currArrayIndex++] - 0));
- /* valid EE */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- }
- }
- grammarID = 1279;
- } else if ( 1 == 1 ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- if(errn == 0) {
- errn = encodeNBitUnsignedInteger(stream, 8, (uint32_t)(v2gLFA_EVFinePositioningSetupParametersType->SignalPulseDuration - 0));
- /* valid EE */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- }
- }
- grammarID = 1242;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 1279:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorOrder), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SignalPulseDuration)] */
- if (v2gLFA_EVFinePositioningSetupParametersType_SensorOrder_currArrayIndex < v2gLFA_EVFinePositioningSetupParametersType->SensorOrder.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- if(errn == 0) {
- errn = encodeNBitUnsignedInteger(stream, 8, (uint32_t)(v2gLFA_EVFinePositioningSetupParametersType->SensorOrder.array[v2gLFA_EVFinePositioningSetupParametersType_SensorOrder_currArrayIndex++] - 0));
- /* valid EE */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- }
- }
- grammarID = 1280;
- } else if ( 1 == 1 ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- if(errn == 0) {
- errn = encodeNBitUnsignedInteger(stream, 8, (uint32_t)(v2gLFA_EVFinePositioningSetupParametersType->SignalPulseDuration - 0));
- /* valid EE */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- }
- }
- grammarID = 1242;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 1280:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorOrder), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SignalPulseDuration)] */
- if (v2gLFA_EVFinePositioningSetupParametersType_SensorOrder_currArrayIndex < v2gLFA_EVFinePositioningSetupParametersType->SensorOrder.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- if(errn == 0) {
- errn = encodeNBitUnsignedInteger(stream, 8, (uint32_t)(v2gLFA_EVFinePositioningSetupParametersType->SensorOrder.array[v2gLFA_EVFinePositioningSetupParametersType_SensorOrder_currArrayIndex++] - 0));
- /* valid EE */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- }
- }
- grammarID = 1281;
- } else if ( 1 == 1 ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- if(errn == 0) {
- errn = encodeNBitUnsignedInteger(stream, 8, (uint32_t)(v2gLFA_EVFinePositioningSetupParametersType->SignalPulseDuration - 0));
- /* valid EE */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- }
- }
- grammarID = 1242;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 1281:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorOrder), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SignalPulseDuration)] */
- if (v2gLFA_EVFinePositioningSetupParametersType_SensorOrder_currArrayIndex < v2gLFA_EVFinePositioningSetupParametersType->SensorOrder.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- if(errn == 0) {
- errn = encodeNBitUnsignedInteger(stream, 8, (uint32_t)(v2gLFA_EVFinePositioningSetupParametersType->SensorOrder.array[v2gLFA_EVFinePositioningSetupParametersType_SensorOrder_currArrayIndex++] - 0));
- /* valid EE */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- }
- }
- grammarID = 1282;
- } else if ( 1 == 1 ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- if(errn == 0) {
- errn = encodeNBitUnsignedInteger(stream, 8, (uint32_t)(v2gLFA_EVFinePositioningSetupParametersType->SignalPulseDuration - 0));
- /* valid EE */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- }
- }
- grammarID = 1242;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 1282:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorOrder), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SignalPulseDuration)] */
- if (v2gLFA_EVFinePositioningSetupParametersType_SensorOrder_currArrayIndex < v2gLFA_EVFinePositioningSetupParametersType->SensorOrder.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- if(errn == 0) {
- errn = encodeNBitUnsignedInteger(stream, 8, (uint32_t)(v2gLFA_EVFinePositioningSetupParametersType->SensorOrder.array[v2gLFA_EVFinePositioningSetupParametersType_SensorOrder_currArrayIndex++] - 0));
- /* valid EE */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- }
- }
- grammarID = 1283;
- } else if ( 1 == 1 ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- if(errn == 0) {
- errn = encodeNBitUnsignedInteger(stream, 8, (uint32_t)(v2gLFA_EVFinePositioningSetupParametersType->SignalPulseDuration - 0));
- /* valid EE */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- }
- }
- grammarID = 1242;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 1283:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorOrder), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SignalPulseDuration)] */
- if (v2gLFA_EVFinePositioningSetupParametersType_SensorOrder_currArrayIndex < v2gLFA_EVFinePositioningSetupParametersType->SensorOrder.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- if(errn == 0) {
- errn = encodeNBitUnsignedInteger(stream, 8, (uint32_t)(v2gLFA_EVFinePositioningSetupParametersType->SensorOrder.array[v2gLFA_EVFinePositioningSetupParametersType_SensorOrder_currArrayIndex++] - 0));
- /* valid EE */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- }
- }
- grammarID = 1284;
- } else if ( 1 == 1 ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- if(errn == 0) {
- errn = encodeNBitUnsignedInteger(stream, 8, (uint32_t)(v2gLFA_EVFinePositioningSetupParametersType->SignalPulseDuration - 0));
- /* valid EE */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- }
- }
- grammarID = 1242;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 1284:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorOrder), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SignalPulseDuration)] */
- if (v2gLFA_EVFinePositioningSetupParametersType_SensorOrder_currArrayIndex < v2gLFA_EVFinePositioningSetupParametersType->SensorOrder.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- if(errn == 0) {
- errn = encodeNBitUnsignedInteger(stream, 8, (uint32_t)(v2gLFA_EVFinePositioningSetupParametersType->SensorOrder.array[v2gLFA_EVFinePositioningSetupParametersType_SensorOrder_currArrayIndex++] - 0));
- /* valid EE */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- }
- }
- grammarID = 1285;
- } else if ( 1 == 1 ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- if(errn == 0) {
- errn = encodeNBitUnsignedInteger(stream, 8, (uint32_t)(v2gLFA_EVFinePositioningSetupParametersType->SignalPulseDuration - 0));
- /* valid EE */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- }
- }
- grammarID = 1242;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 1285:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorOrder), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SignalPulseDuration)] */
- if (v2gLFA_EVFinePositioningSetupParametersType_SensorOrder_currArrayIndex < v2gLFA_EVFinePositioningSetupParametersType->SensorOrder.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- if(errn == 0) {
- errn = encodeNBitUnsignedInteger(stream, 8, (uint32_t)(v2gLFA_EVFinePositioningSetupParametersType->SensorOrder.array[v2gLFA_EVFinePositioningSetupParametersType_SensorOrder_currArrayIndex++] - 0));
- /* valid EE */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- }
- }
- grammarID = 1286;
- } else if ( 1 == 1 ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- if(errn == 0) {
- errn = encodeNBitUnsignedInteger(stream, 8, (uint32_t)(v2gLFA_EVFinePositioningSetupParametersType->SignalPulseDuration - 0));
- /* valid EE */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- }
- }
- grammarID = 1242;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 1286:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorOrder), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SignalPulseDuration)] */
- if (v2gLFA_EVFinePositioningSetupParametersType_SensorOrder_currArrayIndex < v2gLFA_EVFinePositioningSetupParametersType->SensorOrder.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- if(errn == 0) {
- errn = encodeNBitUnsignedInteger(stream, 8, (uint32_t)(v2gLFA_EVFinePositioningSetupParametersType->SensorOrder.array[v2gLFA_EVFinePositioningSetupParametersType_SensorOrder_currArrayIndex++] - 0));
- /* valid EE */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- }
- }
- grammarID = 1287;
- } else if ( 1 == 1 ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- if(errn == 0) {
- errn = encodeNBitUnsignedInteger(stream, 8, (uint32_t)(v2gLFA_EVFinePositioningSetupParametersType->SignalPulseDuration - 0));
- /* valid EE */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- }
- }
- grammarID = 1242;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 1287:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorOrder), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SignalPulseDuration)] */
- if (v2gLFA_EVFinePositioningSetupParametersType_SensorOrder_currArrayIndex < v2gLFA_EVFinePositioningSetupParametersType->SensorOrder.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- if(errn == 0) {
- errn = encodeNBitUnsignedInteger(stream, 8, (uint32_t)(v2gLFA_EVFinePositioningSetupParametersType->SensorOrder.array[v2gLFA_EVFinePositioningSetupParametersType_SensorOrder_currArrayIndex++] - 0));
- /* valid EE */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- }
- }
- grammarID = 1288;
- } else if ( 1 == 1 ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- if(errn == 0) {
- errn = encodeNBitUnsignedInteger(stream, 8, (uint32_t)(v2gLFA_EVFinePositioningSetupParametersType->SignalPulseDuration - 0));
- /* valid EE */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- }
- }
- grammarID = 1242;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 1288:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorOrder), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SignalPulseDuration)] */
- if (v2gLFA_EVFinePositioningSetupParametersType_SensorOrder_currArrayIndex < v2gLFA_EVFinePositioningSetupParametersType->SensorOrder.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- if(errn == 0) {
- errn = encodeNBitUnsignedInteger(stream, 8, (uint32_t)(v2gLFA_EVFinePositioningSetupParametersType->SensorOrder.array[v2gLFA_EVFinePositioningSetupParametersType_SensorOrder_currArrayIndex++] - 0));
- /* valid EE */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- }
- }
- grammarID = 1289;
- } else if ( 1 == 1 ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- if(errn == 0) {
- errn = encodeNBitUnsignedInteger(stream, 8, (uint32_t)(v2gLFA_EVFinePositioningSetupParametersType->SignalPulseDuration - 0));
- /* valid EE */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- }
- }
- grammarID = 1242;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 1289:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorOrder), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SignalPulseDuration)] */
- if (v2gLFA_EVFinePositioningSetupParametersType_SensorOrder_currArrayIndex < v2gLFA_EVFinePositioningSetupParametersType->SensorOrder.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- if(errn == 0) {
- errn = encodeNBitUnsignedInteger(stream, 8, (uint32_t)(v2gLFA_EVFinePositioningSetupParametersType->SensorOrder.array[v2gLFA_EVFinePositioningSetupParametersType_SensorOrder_currArrayIndex++] - 0));
- /* valid EE */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- }
- }
- grammarID = 1290;
- } else if ( 1 == 1 ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- if(errn == 0) {
- errn = encodeNBitUnsignedInteger(stream, 8, (uint32_t)(v2gLFA_EVFinePositioningSetupParametersType->SignalPulseDuration - 0));
- /* valid EE */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- }
- }
- grammarID = 1242;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 1290:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorOrder), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SignalPulseDuration)] */
- if (v2gLFA_EVFinePositioningSetupParametersType_SensorOrder_currArrayIndex < v2gLFA_EVFinePositioningSetupParametersType->SensorOrder.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- if(errn == 0) {
- errn = encodeNBitUnsignedInteger(stream, 8, (uint32_t)(v2gLFA_EVFinePositioningSetupParametersType->SensorOrder.array[v2gLFA_EVFinePositioningSetupParametersType_SensorOrder_currArrayIndex++] - 0));
- /* valid EE */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- }
- }
- grammarID = 1291;
- } else if ( 1 == 1 ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- if(errn == 0) {
- errn = encodeNBitUnsignedInteger(stream, 8, (uint32_t)(v2gLFA_EVFinePositioningSetupParametersType->SignalPulseDuration - 0));
- /* valid EE */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- }
- }
- grammarID = 1242;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 1291:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorOrder), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SignalPulseDuration)] */
- if (v2gLFA_EVFinePositioningSetupParametersType_SensorOrder_currArrayIndex < v2gLFA_EVFinePositioningSetupParametersType->SensorOrder.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- if(errn == 0) {
- errn = encodeNBitUnsignedInteger(stream, 8, (uint32_t)(v2gLFA_EVFinePositioningSetupParametersType->SensorOrder.array[v2gLFA_EVFinePositioningSetupParametersType_SensorOrder_currArrayIndex++] - 0));
- /* valid EE */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- }
- }
- grammarID = 1292;
- } else if ( 1 == 1 ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- if(errn == 0) {
- errn = encodeNBitUnsignedInteger(stream, 8, (uint32_t)(v2gLFA_EVFinePositioningSetupParametersType->SignalPulseDuration - 0));
- /* valid EE */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- }
- }
- grammarID = 1242;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 1292:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorOrder), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SignalPulseDuration)] */
- if (v2gLFA_EVFinePositioningSetupParametersType_SensorOrder_currArrayIndex < v2gLFA_EVFinePositioningSetupParametersType->SensorOrder.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- if(errn == 0) {
- errn = encodeNBitUnsignedInteger(stream, 8, (uint32_t)(v2gLFA_EVFinePositioningSetupParametersType->SensorOrder.array[v2gLFA_EVFinePositioningSetupParametersType_SensorOrder_currArrayIndex++] - 0));
- /* valid EE */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- }
- }
- grammarID = 1293;
- } else if ( 1 == 1 ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- if(errn == 0) {
- errn = encodeNBitUnsignedInteger(stream, 8, (uint32_t)(v2gLFA_EVFinePositioningSetupParametersType->SignalPulseDuration - 0));
- /* valid EE */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- }
- }
- grammarID = 1242;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 1293:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorOrder), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SignalPulseDuration)] */
- if (v2gLFA_EVFinePositioningSetupParametersType_SensorOrder_currArrayIndex < v2gLFA_EVFinePositioningSetupParametersType->SensorOrder.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- if(errn == 0) {
- errn = encodeNBitUnsignedInteger(stream, 8, (uint32_t)(v2gLFA_EVFinePositioningSetupParametersType->SensorOrder.array[v2gLFA_EVFinePositioningSetupParametersType_SensorOrder_currArrayIndex++] - 0));
- /* valid EE */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- }
- }
- grammarID = 1294;
- } else if ( 1 == 1 ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- if(errn == 0) {
- errn = encodeNBitUnsignedInteger(stream, 8, (uint32_t)(v2gLFA_EVFinePositioningSetupParametersType->SignalPulseDuration - 0));
- /* valid EE */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- }
- }
- grammarID = 1242;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 1294:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorOrder), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SignalPulseDuration)] */
- if (v2gLFA_EVFinePositioningSetupParametersType_SensorOrder_currArrayIndex < v2gLFA_EVFinePositioningSetupParametersType->SensorOrder.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- if(errn == 0) {
- errn = encodeNBitUnsignedInteger(stream, 8, (uint32_t)(v2gLFA_EVFinePositioningSetupParametersType->SensorOrder.array[v2gLFA_EVFinePositioningSetupParametersType_SensorOrder_currArrayIndex++] - 0));
- /* valid EE */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- }
- }
- grammarID = 1295;
- } else if ( 1 == 1 ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- if(errn == 0) {
- errn = encodeNBitUnsignedInteger(stream, 8, (uint32_t)(v2gLFA_EVFinePositioningSetupParametersType->SignalPulseDuration - 0));
- /* valid EE */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- }
- }
- grammarID = 1242;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 1295:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorOrder), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SignalPulseDuration)] */
- if (v2gLFA_EVFinePositioningSetupParametersType_SensorOrder_currArrayIndex < v2gLFA_EVFinePositioningSetupParametersType->SensorOrder.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- if(errn == 0) {
- errn = encodeNBitUnsignedInteger(stream, 8, (uint32_t)(v2gLFA_EVFinePositioningSetupParametersType->SensorOrder.array[v2gLFA_EVFinePositioningSetupParametersType_SensorOrder_currArrayIndex++] - 0));
- /* valid EE */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- }
- }
- grammarID = 1296;
- } else if ( 1 == 1 ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- if(errn == 0) {
- errn = encodeNBitUnsignedInteger(stream, 8, (uint32_t)(v2gLFA_EVFinePositioningSetupParametersType->SignalPulseDuration - 0));
- /* valid EE */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- }
- }
- grammarID = 1242;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 1296:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorOrder), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SignalPulseDuration)] */
- if (v2gLFA_EVFinePositioningSetupParametersType_SensorOrder_currArrayIndex < v2gLFA_EVFinePositioningSetupParametersType->SensorOrder.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- if(errn == 0) {
- errn = encodeNBitUnsignedInteger(stream, 8, (uint32_t)(v2gLFA_EVFinePositioningSetupParametersType->SensorOrder.array[v2gLFA_EVFinePositioningSetupParametersType_SensorOrder_currArrayIndex++] - 0));
- /* valid EE */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- }
- }
- grammarID = 1297;
- } else if ( 1 == 1 ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- if(errn == 0) {
- errn = encodeNBitUnsignedInteger(stream, 8, (uint32_t)(v2gLFA_EVFinePositioningSetupParametersType->SignalPulseDuration - 0));
- /* valid EE */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- }
- }
- grammarID = 1242;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 1297:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorOrder), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SignalPulseDuration)] */
- if (v2gLFA_EVFinePositioningSetupParametersType_SensorOrder_currArrayIndex < v2gLFA_EVFinePositioningSetupParametersType->SensorOrder.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- if(errn == 0) {
- errn = encodeNBitUnsignedInteger(stream, 8, (uint32_t)(v2gLFA_EVFinePositioningSetupParametersType->SensorOrder.array[v2gLFA_EVFinePositioningSetupParametersType_SensorOrder_currArrayIndex++] - 0));
- /* valid EE */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- }
- }
- grammarID = 1298;
- } else if ( 1 == 1 ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- if(errn == 0) {
- errn = encodeNBitUnsignedInteger(stream, 8, (uint32_t)(v2gLFA_EVFinePositioningSetupParametersType->SignalPulseDuration - 0));
- /* valid EE */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- }
- }
- grammarID = 1242;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 1298:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorOrder), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SignalPulseDuration)] */
- if (v2gLFA_EVFinePositioningSetupParametersType_SensorOrder_currArrayIndex < v2gLFA_EVFinePositioningSetupParametersType->SensorOrder.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- if(errn == 0) {
- errn = encodeNBitUnsignedInteger(stream, 8, (uint32_t)(v2gLFA_EVFinePositioningSetupParametersType->SensorOrder.array[v2gLFA_EVFinePositioningSetupParametersType_SensorOrder_currArrayIndex++] - 0));
- /* valid EE */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- }
- }
- grammarID = 1299;
- } else if ( 1 == 1 ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- if(errn == 0) {
- errn = encodeNBitUnsignedInteger(stream, 8, (uint32_t)(v2gLFA_EVFinePositioningSetupParametersType->SignalPulseDuration - 0));
- /* valid EE */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- }
- }
- grammarID = 1242;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 1299:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorOrder), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SignalPulseDuration)] */
- if (v2gLFA_EVFinePositioningSetupParametersType_SensorOrder_currArrayIndex < v2gLFA_EVFinePositioningSetupParametersType->SensorOrder.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- if(errn == 0) {
- errn = encodeNBitUnsignedInteger(stream, 8, (uint32_t)(v2gLFA_EVFinePositioningSetupParametersType->SensorOrder.array[v2gLFA_EVFinePositioningSetupParametersType_SensorOrder_currArrayIndex++] - 0));
- /* valid EE */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- }
- }
- grammarID = 1300;
- } else if ( 1 == 1 ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- if(errn == 0) {
- errn = encodeNBitUnsignedInteger(stream, 8, (uint32_t)(v2gLFA_EVFinePositioningSetupParametersType->SignalPulseDuration - 0));
- /* valid EE */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- }
- }
- grammarID = 1242;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 1300:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorOrder), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SignalPulseDuration)] */
- if (v2gLFA_EVFinePositioningSetupParametersType_SensorOrder_currArrayIndex < v2gLFA_EVFinePositioningSetupParametersType->SensorOrder.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- if(errn == 0) {
- errn = encodeNBitUnsignedInteger(stream, 8, (uint32_t)(v2gLFA_EVFinePositioningSetupParametersType->SensorOrder.array[v2gLFA_EVFinePositioningSetupParametersType_SensorOrder_currArrayIndex++] - 0));
- /* valid EE */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- }
- }
- grammarID = 1301;
- } else if ( 1 == 1 ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- if(errn == 0) {
- errn = encodeNBitUnsignedInteger(stream, 8, (uint32_t)(v2gLFA_EVFinePositioningSetupParametersType->SignalPulseDuration - 0));
- /* valid EE */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- }
- }
- grammarID = 1242;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 1301:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorOrder), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SignalPulseDuration)] */
- if (v2gLFA_EVFinePositioningSetupParametersType_SensorOrder_currArrayIndex < v2gLFA_EVFinePositioningSetupParametersType->SensorOrder.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- if(errn == 0) {
- errn = encodeNBitUnsignedInteger(stream, 8, (uint32_t)(v2gLFA_EVFinePositioningSetupParametersType->SensorOrder.array[v2gLFA_EVFinePositioningSetupParametersType_SensorOrder_currArrayIndex++] - 0));
- /* valid EE */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- }
- }
- grammarID = 1302;
- } else if ( 1 == 1 ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- if(errn == 0) {
- errn = encodeNBitUnsignedInteger(stream, 8, (uint32_t)(v2gLFA_EVFinePositioningSetupParametersType->SignalPulseDuration - 0));
- /* valid EE */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- }
- }
- grammarID = 1242;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 1302:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorOrder), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SignalPulseDuration)] */
- if (v2gLFA_EVFinePositioningSetupParametersType_SensorOrder_currArrayIndex < v2gLFA_EVFinePositioningSetupParametersType->SensorOrder.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- if(errn == 0) {
- errn = encodeNBitUnsignedInteger(stream, 8, (uint32_t)(v2gLFA_EVFinePositioningSetupParametersType->SensorOrder.array[v2gLFA_EVFinePositioningSetupParametersType_SensorOrder_currArrayIndex++] - 0));
- /* valid EE */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- }
- }
- grammarID = 1303;
- } else if ( 1 == 1 ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- if(errn == 0) {
- errn = encodeNBitUnsignedInteger(stream, 8, (uint32_t)(v2gLFA_EVFinePositioningSetupParametersType->SignalPulseDuration - 0));
- /* valid EE */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- }
- }
- grammarID = 1242;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 1303:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorOrder), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SignalPulseDuration)] */
- if (v2gLFA_EVFinePositioningSetupParametersType_SensorOrder_currArrayIndex < v2gLFA_EVFinePositioningSetupParametersType->SensorOrder.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- if(errn == 0) {
- errn = encodeNBitUnsignedInteger(stream, 8, (uint32_t)(v2gLFA_EVFinePositioningSetupParametersType->SensorOrder.array[v2gLFA_EVFinePositioningSetupParametersType_SensorOrder_currArrayIndex++] - 0));
- /* valid EE */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- }
- }
- grammarID = 1304;
- } else if ( 1 == 1 ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- if(errn == 0) {
- errn = encodeNBitUnsignedInteger(stream, 8, (uint32_t)(v2gLFA_EVFinePositioningSetupParametersType->SignalPulseDuration - 0));
- /* valid EE */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- }
- }
- grammarID = 1242;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 1304:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorOrder), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SignalPulseDuration)] */
- if (v2gLFA_EVFinePositioningSetupParametersType_SensorOrder_currArrayIndex < v2gLFA_EVFinePositioningSetupParametersType->SensorOrder.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- if(errn == 0) {
- errn = encodeNBitUnsignedInteger(stream, 8, (uint32_t)(v2gLFA_EVFinePositioningSetupParametersType->SensorOrder.array[v2gLFA_EVFinePositioningSetupParametersType_SensorOrder_currArrayIndex++] - 0));
- /* valid EE */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- }
- }
- grammarID = 1305;
- } else if ( 1 == 1 ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- if(errn == 0) {
- errn = encodeNBitUnsignedInteger(stream, 8, (uint32_t)(v2gLFA_EVFinePositioningSetupParametersType->SignalPulseDuration - 0));
- /* valid EE */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- }
- }
- grammarID = 1242;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 1305:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorOrder), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SignalPulseDuration)] */
- if (v2gLFA_EVFinePositioningSetupParametersType_SensorOrder_currArrayIndex < v2gLFA_EVFinePositioningSetupParametersType->SensorOrder.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- if(errn == 0) {
- errn = encodeNBitUnsignedInteger(stream, 8, (uint32_t)(v2gLFA_EVFinePositioningSetupParametersType->SensorOrder.array[v2gLFA_EVFinePositioningSetupParametersType_SensorOrder_currArrayIndex++] - 0));
- /* valid EE */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- }
- }
- grammarID = 1306;
- } else if ( 1 == 1 ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- if(errn == 0) {
- errn = encodeNBitUnsignedInteger(stream, 8, (uint32_t)(v2gLFA_EVFinePositioningSetupParametersType->SignalPulseDuration - 0));
- /* valid EE */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- }
- }
- grammarID = 1242;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 1306:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorOrder), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SignalPulseDuration)] */
- if (v2gLFA_EVFinePositioningSetupParametersType_SensorOrder_currArrayIndex < v2gLFA_EVFinePositioningSetupParametersType->SensorOrder.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- if(errn == 0) {
- errn = encodeNBitUnsignedInteger(stream, 8, (uint32_t)(v2gLFA_EVFinePositioningSetupParametersType->SensorOrder.array[v2gLFA_EVFinePositioningSetupParametersType_SensorOrder_currArrayIndex++] - 0));
- /* valid EE */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- }
- }
- grammarID = 1307;
- } else if ( 1 == 1 ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- if(errn == 0) {
- errn = encodeNBitUnsignedInteger(stream, 8, (uint32_t)(v2gLFA_EVFinePositioningSetupParametersType->SignalPulseDuration - 0));
- /* valid EE */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- }
- }
- grammarID = 1242;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 1307:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorOrder), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SignalPulseDuration)] */
- if (v2gLFA_EVFinePositioningSetupParametersType_SensorOrder_currArrayIndex < v2gLFA_EVFinePositioningSetupParametersType->SensorOrder.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- if(errn == 0) {
- errn = encodeNBitUnsignedInteger(stream, 8, (uint32_t)(v2gLFA_EVFinePositioningSetupParametersType->SensorOrder.array[v2gLFA_EVFinePositioningSetupParametersType_SensorOrder_currArrayIndex++] - 0));
- /* valid EE */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- }
- }
- grammarID = 1308;
- } else if ( 1 == 1 ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- if(errn == 0) {
- errn = encodeNBitUnsignedInteger(stream, 8, (uint32_t)(v2gLFA_EVFinePositioningSetupParametersType->SignalPulseDuration - 0));
- /* valid EE */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- }
- }
- grammarID = 1242;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 1308:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorOrder), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SignalPulseDuration)] */
- if (v2gLFA_EVFinePositioningSetupParametersType_SensorOrder_currArrayIndex < v2gLFA_EVFinePositioningSetupParametersType->SensorOrder.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- if(errn == 0) {
- errn = encodeNBitUnsignedInteger(stream, 8, (uint32_t)(v2gLFA_EVFinePositioningSetupParametersType->SensorOrder.array[v2gLFA_EVFinePositioningSetupParametersType_SensorOrder_currArrayIndex++] - 0));
- /* valid EE */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- }
- }
- grammarID = 1309;
- } else if ( 1 == 1 ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- if(errn == 0) {
- errn = encodeNBitUnsignedInteger(stream, 8, (uint32_t)(v2gLFA_EVFinePositioningSetupParametersType->SignalPulseDuration - 0));
- /* valid EE */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- }
- }
- grammarID = 1242;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 1309:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorOrder), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SignalPulseDuration)] */
- if (v2gLFA_EVFinePositioningSetupParametersType_SensorOrder_currArrayIndex < v2gLFA_EVFinePositioningSetupParametersType->SensorOrder.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- if(errn == 0) {
- errn = encodeNBitUnsignedInteger(stream, 8, (uint32_t)(v2gLFA_EVFinePositioningSetupParametersType->SensorOrder.array[v2gLFA_EVFinePositioningSetupParametersType_SensorOrder_currArrayIndex++] - 0));
- /* valid EE */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- }
- }
- grammarID = 1310;
- } else if ( 1 == 1 ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- if(errn == 0) {
- errn = encodeNBitUnsignedInteger(stream, 8, (uint32_t)(v2gLFA_EVFinePositioningSetupParametersType->SignalPulseDuration - 0));
- /* valid EE */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- }
- }
- grammarID = 1242;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 1310:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorOrder), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SignalPulseDuration)] */
- if (v2gLFA_EVFinePositioningSetupParametersType_SensorOrder_currArrayIndex < v2gLFA_EVFinePositioningSetupParametersType->SensorOrder.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- if(errn == 0) {
- errn = encodeNBitUnsignedInteger(stream, 8, (uint32_t)(v2gLFA_EVFinePositioningSetupParametersType->SensorOrder.array[v2gLFA_EVFinePositioningSetupParametersType_SensorOrder_currArrayIndex++] - 0));
- /* valid EE */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- }
- }
- grammarID = 1311;
- } else if ( 1 == 1 ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- if(errn == 0) {
- errn = encodeNBitUnsignedInteger(stream, 8, (uint32_t)(v2gLFA_EVFinePositioningSetupParametersType->SignalPulseDuration - 0));
- /* valid EE */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- }
- }
- grammarID = 1242;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 1311:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorOrder), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SignalPulseDuration)] */
- if (v2gLFA_EVFinePositioningSetupParametersType_SensorOrder_currArrayIndex < v2gLFA_EVFinePositioningSetupParametersType->SensorOrder.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- if(errn == 0) {
- errn = encodeNBitUnsignedInteger(stream, 8, (uint32_t)(v2gLFA_EVFinePositioningSetupParametersType->SensorOrder.array[v2gLFA_EVFinePositioningSetupParametersType_SensorOrder_currArrayIndex++] - 0));
- /* valid EE */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- }
- }
- grammarID = 1312;
- } else if ( 1 == 1 ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- if(errn == 0) {
- errn = encodeNBitUnsignedInteger(stream, 8, (uint32_t)(v2gLFA_EVFinePositioningSetupParametersType->SignalPulseDuration - 0));
- /* valid EE */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- }
- }
- grammarID = 1242;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 1312:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorOrder), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SignalPulseDuration)] */
- if (v2gLFA_EVFinePositioningSetupParametersType_SensorOrder_currArrayIndex < v2gLFA_EVFinePositioningSetupParametersType->SensorOrder.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- if(errn == 0) {
- errn = encodeNBitUnsignedInteger(stream, 8, (uint32_t)(v2gLFA_EVFinePositioningSetupParametersType->SensorOrder.array[v2gLFA_EVFinePositioningSetupParametersType_SensorOrder_currArrayIndex++] - 0));
- /* valid EE */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- }
- }
- grammarID = 1313;
- } else if ( 1 == 1 ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- if(errn == 0) {
- errn = encodeNBitUnsignedInteger(stream, 8, (uint32_t)(v2gLFA_EVFinePositioningSetupParametersType->SignalPulseDuration - 0));
- /* valid EE */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- }
- }
- grammarID = 1242;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 1313:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorOrder), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SignalPulseDuration)] */
- if (v2gLFA_EVFinePositioningSetupParametersType_SensorOrder_currArrayIndex < v2gLFA_EVFinePositioningSetupParametersType->SensorOrder.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- if(errn == 0) {
- errn = encodeNBitUnsignedInteger(stream, 8, (uint32_t)(v2gLFA_EVFinePositioningSetupParametersType->SensorOrder.array[v2gLFA_EVFinePositioningSetupParametersType_SensorOrder_currArrayIndex++] - 0));
- /* valid EE */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- }
- }
- grammarID = 1314;
- } else if ( 1 == 1 ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- if(errn == 0) {
- errn = encodeNBitUnsignedInteger(stream, 8, (uint32_t)(v2gLFA_EVFinePositioningSetupParametersType->SignalPulseDuration - 0));
- /* valid EE */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- }
- }
- grammarID = 1242;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 1314:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorOrder), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SignalPulseDuration)] */
- if (v2gLFA_EVFinePositioningSetupParametersType_SensorOrder_currArrayIndex < v2gLFA_EVFinePositioningSetupParametersType->SensorOrder.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- if(errn == 0) {
- errn = encodeNBitUnsignedInteger(stream, 8, (uint32_t)(v2gLFA_EVFinePositioningSetupParametersType->SensorOrder.array[v2gLFA_EVFinePositioningSetupParametersType_SensorOrder_currArrayIndex++] - 0));
- /* valid EE */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- }
- }
- grammarID = 1315;
- } else if ( 1 == 1 ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- if(errn == 0) {
- errn = encodeNBitUnsignedInteger(stream, 8, (uint32_t)(v2gLFA_EVFinePositioningSetupParametersType->SignalPulseDuration - 0));
- /* valid EE */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- }
- }
- grammarID = 1242;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 1315:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorOrder), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SignalPulseDuration)] */
- if (v2gLFA_EVFinePositioningSetupParametersType_SensorOrder_currArrayIndex < v2gLFA_EVFinePositioningSetupParametersType->SensorOrder.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- if(errn == 0) {
- errn = encodeNBitUnsignedInteger(stream, 8, (uint32_t)(v2gLFA_EVFinePositioningSetupParametersType->SensorOrder.array[v2gLFA_EVFinePositioningSetupParametersType_SensorOrder_currArrayIndex++] - 0));
- /* valid EE */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- }
- }
- grammarID = 1316;
- } else if ( 1 == 1 ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- if(errn == 0) {
- errn = encodeNBitUnsignedInteger(stream, 8, (uint32_t)(v2gLFA_EVFinePositioningSetupParametersType->SignalPulseDuration - 0));
- /* valid EE */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- }
- }
- grammarID = 1242;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 1316:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorOrder), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SignalPulseDuration)] */
- if (v2gLFA_EVFinePositioningSetupParametersType_SensorOrder_currArrayIndex < v2gLFA_EVFinePositioningSetupParametersType->SensorOrder.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- if(errn == 0) {
- errn = encodeNBitUnsignedInteger(stream, 8, (uint32_t)(v2gLFA_EVFinePositioningSetupParametersType->SensorOrder.array[v2gLFA_EVFinePositioningSetupParametersType_SensorOrder_currArrayIndex++] - 0));
- /* valid EE */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- }
- }
- grammarID = 1317;
- } else if ( 1 == 1 ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- if(errn == 0) {
- errn = encodeNBitUnsignedInteger(stream, 8, (uint32_t)(v2gLFA_EVFinePositioningSetupParametersType->SignalPulseDuration - 0));
- /* valid EE */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- }
- }
- grammarID = 1242;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 1317:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorOrder), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SignalPulseDuration)] */
- if (v2gLFA_EVFinePositioningSetupParametersType_SensorOrder_currArrayIndex < v2gLFA_EVFinePositioningSetupParametersType->SensorOrder.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- if(errn == 0) {
- errn = encodeNBitUnsignedInteger(stream, 8, (uint32_t)(v2gLFA_EVFinePositioningSetupParametersType->SensorOrder.array[v2gLFA_EVFinePositioningSetupParametersType_SensorOrder_currArrayIndex++] - 0));
- /* valid EE */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- }
- }
- grammarID = 1318;
- } else if ( 1 == 1 ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- if(errn == 0) {
- errn = encodeNBitUnsignedInteger(stream, 8, (uint32_t)(v2gLFA_EVFinePositioningSetupParametersType->SignalPulseDuration - 0));
- /* valid EE */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- }
- }
- grammarID = 1242;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 1318:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorOrder), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SignalPulseDuration)] */
- if (v2gLFA_EVFinePositioningSetupParametersType_SensorOrder_currArrayIndex < v2gLFA_EVFinePositioningSetupParametersType->SensorOrder.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- if(errn == 0) {
- errn = encodeNBitUnsignedInteger(stream, 8, (uint32_t)(v2gLFA_EVFinePositioningSetupParametersType->SensorOrder.array[v2gLFA_EVFinePositioningSetupParametersType_SensorOrder_currArrayIndex++] - 0));
- /* valid EE */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- }
- }
- grammarID = 1319;
- } else if ( 1 == 1 ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- if(errn == 0) {
- errn = encodeNBitUnsignedInteger(stream, 8, (uint32_t)(v2gLFA_EVFinePositioningSetupParametersType->SignalPulseDuration - 0));
- /* valid EE */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- }
- }
- grammarID = 1242;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 1319:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorOrder), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SignalPulseDuration)] */
- if (v2gLFA_EVFinePositioningSetupParametersType_SensorOrder_currArrayIndex < v2gLFA_EVFinePositioningSetupParametersType->SensorOrder.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- if(errn == 0) {
- errn = encodeNBitUnsignedInteger(stream, 8, (uint32_t)(v2gLFA_EVFinePositioningSetupParametersType->SensorOrder.array[v2gLFA_EVFinePositioningSetupParametersType_SensorOrder_currArrayIndex++] - 0));
- /* valid EE */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- }
- }
- grammarID = 1320;
- } else if ( 1 == 1 ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- if(errn == 0) {
- errn = encodeNBitUnsignedInteger(stream, 8, (uint32_t)(v2gLFA_EVFinePositioningSetupParametersType->SignalPulseDuration - 0));
- /* valid EE */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- }
- }
- grammarID = 1242;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 1320:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorOrder), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SignalPulseDuration)] */
- if (v2gLFA_EVFinePositioningSetupParametersType_SensorOrder_currArrayIndex < v2gLFA_EVFinePositioningSetupParametersType->SensorOrder.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- if(errn == 0) {
- errn = encodeNBitUnsignedInteger(stream, 8, (uint32_t)(v2gLFA_EVFinePositioningSetupParametersType->SensorOrder.array[v2gLFA_EVFinePositioningSetupParametersType_SensorOrder_currArrayIndex++] - 0));
- /* valid EE */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- }
- }
- grammarID = 1321;
- } else if ( 1 == 1 ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- if(errn == 0) {
- errn = encodeNBitUnsignedInteger(stream, 8, (uint32_t)(v2gLFA_EVFinePositioningSetupParametersType->SignalPulseDuration - 0));
- /* valid EE */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- }
- }
- grammarID = 1242;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 1321:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorOrder), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SignalPulseDuration)] */
- if (v2gLFA_EVFinePositioningSetupParametersType_SensorOrder_currArrayIndex < v2gLFA_EVFinePositioningSetupParametersType->SensorOrder.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- if(errn == 0) {
- errn = encodeNBitUnsignedInteger(stream, 8, (uint32_t)(v2gLFA_EVFinePositioningSetupParametersType->SensorOrder.array[v2gLFA_EVFinePositioningSetupParametersType_SensorOrder_currArrayIndex++] - 0));
- /* valid EE */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- }
- }
- grammarID = 1322;
- } else if ( 1 == 1 ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- if(errn == 0) {
- errn = encodeNBitUnsignedInteger(stream, 8, (uint32_t)(v2gLFA_EVFinePositioningSetupParametersType->SignalPulseDuration - 0));
- /* valid EE */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- }
- }
- grammarID = 1242;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 1322:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorOrder), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SignalPulseDuration)] */
- if (v2gLFA_EVFinePositioningSetupParametersType_SensorOrder_currArrayIndex < v2gLFA_EVFinePositioningSetupParametersType->SensorOrder.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- if(errn == 0) {
- errn = encodeNBitUnsignedInteger(stream, 8, (uint32_t)(v2gLFA_EVFinePositioningSetupParametersType->SensorOrder.array[v2gLFA_EVFinePositioningSetupParametersType_SensorOrder_currArrayIndex++] - 0));
- /* valid EE */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- }
- }
- grammarID = 1323;
- } else if ( 1 == 1 ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- if(errn == 0) {
- errn = encodeNBitUnsignedInteger(stream, 8, (uint32_t)(v2gLFA_EVFinePositioningSetupParametersType->SignalPulseDuration - 0));
- /* valid EE */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- }
- }
- grammarID = 1242;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 1323:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorOrder), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SignalPulseDuration)] */
- if (v2gLFA_EVFinePositioningSetupParametersType_SensorOrder_currArrayIndex < v2gLFA_EVFinePositioningSetupParametersType->SensorOrder.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- if(errn == 0) {
- errn = encodeNBitUnsignedInteger(stream, 8, (uint32_t)(v2gLFA_EVFinePositioningSetupParametersType->SensorOrder.array[v2gLFA_EVFinePositioningSetupParametersType_SensorOrder_currArrayIndex++] - 0));
- /* valid EE */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- }
- }
- grammarID = 1324;
- } else if ( 1 == 1 ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- if(errn == 0) {
- errn = encodeNBitUnsignedInteger(stream, 8, (uint32_t)(v2gLFA_EVFinePositioningSetupParametersType->SignalPulseDuration - 0));
- /* valid EE */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- }
- }
- grammarID = 1242;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 1324:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorOrder), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SignalPulseDuration)] */
- if (v2gLFA_EVFinePositioningSetupParametersType_SensorOrder_currArrayIndex < v2gLFA_EVFinePositioningSetupParametersType->SensorOrder.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- if(errn == 0) {
- errn = encodeNBitUnsignedInteger(stream, 8, (uint32_t)(v2gLFA_EVFinePositioningSetupParametersType->SensorOrder.array[v2gLFA_EVFinePositioningSetupParametersType_SensorOrder_currArrayIndex++] - 0));
- /* valid EE */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- }
- }
- grammarID = 1325;
- } else if ( 1 == 1 ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- if(errn == 0) {
- errn = encodeNBitUnsignedInteger(stream, 8, (uint32_t)(v2gLFA_EVFinePositioningSetupParametersType->SignalPulseDuration - 0));
- /* valid EE */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- }
- }
- grammarID = 1242;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 1325:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorOrder), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SignalPulseDuration)] */
- if (v2gLFA_EVFinePositioningSetupParametersType_SensorOrder_currArrayIndex < v2gLFA_EVFinePositioningSetupParametersType->SensorOrder.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- if(errn == 0) {
- errn = encodeNBitUnsignedInteger(stream, 8, (uint32_t)(v2gLFA_EVFinePositioningSetupParametersType->SensorOrder.array[v2gLFA_EVFinePositioningSetupParametersType_SensorOrder_currArrayIndex++] - 0));
- /* valid EE */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- }
- }
- grammarID = 1326;
- } else if ( 1 == 1 ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- if(errn == 0) {
- errn = encodeNBitUnsignedInteger(stream, 8, (uint32_t)(v2gLFA_EVFinePositioningSetupParametersType->SignalPulseDuration - 0));
- /* valid EE */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- }
- }
- grammarID = 1242;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 1326:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorOrder), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SignalPulseDuration)] */
- if (v2gLFA_EVFinePositioningSetupParametersType_SensorOrder_currArrayIndex < v2gLFA_EVFinePositioningSetupParametersType->SensorOrder.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- if(errn == 0) {
- errn = encodeNBitUnsignedInteger(stream, 8, (uint32_t)(v2gLFA_EVFinePositioningSetupParametersType->SensorOrder.array[v2gLFA_EVFinePositioningSetupParametersType_SensorOrder_currArrayIndex++] - 0));
- /* valid EE */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- }
- }
- grammarID = 1327;
- } else if ( 1 == 1 ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- if(errn == 0) {
- errn = encodeNBitUnsignedInteger(stream, 8, (uint32_t)(v2gLFA_EVFinePositioningSetupParametersType->SignalPulseDuration - 0));
- /* valid EE */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- }
- }
- grammarID = 1242;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 1327:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorOrder), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SignalPulseDuration)] */
- if (v2gLFA_EVFinePositioningSetupParametersType_SensorOrder_currArrayIndex < v2gLFA_EVFinePositioningSetupParametersType->SensorOrder.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- if(errn == 0) {
- errn = encodeNBitUnsignedInteger(stream, 8, (uint32_t)(v2gLFA_EVFinePositioningSetupParametersType->SensorOrder.array[v2gLFA_EVFinePositioningSetupParametersType_SensorOrder_currArrayIndex++] - 0));
- /* valid EE */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- }
- }
- grammarID = 1328;
- } else if ( 1 == 1 ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- if(errn == 0) {
- errn = encodeNBitUnsignedInteger(stream, 8, (uint32_t)(v2gLFA_EVFinePositioningSetupParametersType->SignalPulseDuration - 0));
- /* valid EE */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- }
- }
- grammarID = 1242;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 1328:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorOrder), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SignalPulseDuration)] */
- if (v2gLFA_EVFinePositioningSetupParametersType_SensorOrder_currArrayIndex < v2gLFA_EVFinePositioningSetupParametersType->SensorOrder.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- if(errn == 0) {
- errn = encodeNBitUnsignedInteger(stream, 8, (uint32_t)(v2gLFA_EVFinePositioningSetupParametersType->SensorOrder.array[v2gLFA_EVFinePositioningSetupParametersType_SensorOrder_currArrayIndex++] - 0));
- /* valid EE */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- }
- }
- grammarID = 1329;
- } else if ( 1 == 1 ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- if(errn == 0) {
- errn = encodeNBitUnsignedInteger(stream, 8, (uint32_t)(v2gLFA_EVFinePositioningSetupParametersType->SignalPulseDuration - 0));
- /* valid EE */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- }
- }
- grammarID = 1242;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 1329:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorOrder), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SignalPulseDuration)] */
- if (v2gLFA_EVFinePositioningSetupParametersType_SensorOrder_currArrayIndex < v2gLFA_EVFinePositioningSetupParametersType->SensorOrder.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- if(errn == 0) {
- errn = encodeNBitUnsignedInteger(stream, 8, (uint32_t)(v2gLFA_EVFinePositioningSetupParametersType->SensorOrder.array[v2gLFA_EVFinePositioningSetupParametersType_SensorOrder_currArrayIndex++] - 0));
- /* valid EE */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- }
- }
- grammarID = 1330;
- } else if ( 1 == 1 ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- if(errn == 0) {
- errn = encodeNBitUnsignedInteger(stream, 8, (uint32_t)(v2gLFA_EVFinePositioningSetupParametersType->SignalPulseDuration - 0));
- /* valid EE */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- }
- }
- grammarID = 1242;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 1330:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorOrder), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SignalPulseDuration)] */
- if (v2gLFA_EVFinePositioningSetupParametersType_SensorOrder_currArrayIndex < v2gLFA_EVFinePositioningSetupParametersType->SensorOrder.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- if(errn == 0) {
- errn = encodeNBitUnsignedInteger(stream, 8, (uint32_t)(v2gLFA_EVFinePositioningSetupParametersType->SensorOrder.array[v2gLFA_EVFinePositioningSetupParametersType_SensorOrder_currArrayIndex++] - 0));
- /* valid EE */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- }
- }
- grammarID = 1331;
- } else if ( 1 == 1 ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- if(errn == 0) {
- errn = encodeNBitUnsignedInteger(stream, 8, (uint32_t)(v2gLFA_EVFinePositioningSetupParametersType->SignalPulseDuration - 0));
- /* valid EE */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- }
- }
- grammarID = 1242;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 1331:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorOrder), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SignalPulseDuration)] */
- if (v2gLFA_EVFinePositioningSetupParametersType_SensorOrder_currArrayIndex < v2gLFA_EVFinePositioningSetupParametersType->SensorOrder.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- if(errn == 0) {
- errn = encodeNBitUnsignedInteger(stream, 8, (uint32_t)(v2gLFA_EVFinePositioningSetupParametersType->SensorOrder.array[v2gLFA_EVFinePositioningSetupParametersType_SensorOrder_currArrayIndex++] - 0));
- /* valid EE */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- }
- }
- grammarID = 1332;
- } else if ( 1 == 1 ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- if(errn == 0) {
- errn = encodeNBitUnsignedInteger(stream, 8, (uint32_t)(v2gLFA_EVFinePositioningSetupParametersType->SignalPulseDuration - 0));
- /* valid EE */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- }
- }
- grammarID = 1242;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 1332:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorOrder), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SignalPulseDuration)] */
- if (v2gLFA_EVFinePositioningSetupParametersType_SensorOrder_currArrayIndex < v2gLFA_EVFinePositioningSetupParametersType->SensorOrder.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- if(errn == 0) {
- errn = encodeNBitUnsignedInteger(stream, 8, (uint32_t)(v2gLFA_EVFinePositioningSetupParametersType->SensorOrder.array[v2gLFA_EVFinePositioningSetupParametersType_SensorOrder_currArrayIndex++] - 0));
- /* valid EE */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- }
- }
- grammarID = 1333;
- } else if ( 1 == 1 ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- if(errn == 0) {
- errn = encodeNBitUnsignedInteger(stream, 8, (uint32_t)(v2gLFA_EVFinePositioningSetupParametersType->SignalPulseDuration - 0));
- /* valid EE */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- }
- }
- grammarID = 1242;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 1333:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorOrder), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SignalPulseDuration)] */
- if (v2gLFA_EVFinePositioningSetupParametersType_SensorOrder_currArrayIndex < v2gLFA_EVFinePositioningSetupParametersType->SensorOrder.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- if(errn == 0) {
- errn = encodeNBitUnsignedInteger(stream, 8, (uint32_t)(v2gLFA_EVFinePositioningSetupParametersType->SensorOrder.array[v2gLFA_EVFinePositioningSetupParametersType_SensorOrder_currArrayIndex++] - 0));
- /* valid EE */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- }
- }
- grammarID = 1334;
- } else if ( 1 == 1 ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- if(errn == 0) {
- errn = encodeNBitUnsignedInteger(stream, 8, (uint32_t)(v2gLFA_EVFinePositioningSetupParametersType->SignalPulseDuration - 0));
- /* valid EE */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- }
- }
- grammarID = 1242;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 1334:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorOrder), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SignalPulseDuration)] */
- if (v2gLFA_EVFinePositioningSetupParametersType_SensorOrder_currArrayIndex < v2gLFA_EVFinePositioningSetupParametersType->SensorOrder.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- if(errn == 0) {
- errn = encodeNBitUnsignedInteger(stream, 8, (uint32_t)(v2gLFA_EVFinePositioningSetupParametersType->SensorOrder.array[v2gLFA_EVFinePositioningSetupParametersType_SensorOrder_currArrayIndex++] - 0));
- /* valid EE */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- }
- }
- grammarID = 1335;
- } else if ( 1 == 1 ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- if(errn == 0) {
- errn = encodeNBitUnsignedInteger(stream, 8, (uint32_t)(v2gLFA_EVFinePositioningSetupParametersType->SignalPulseDuration - 0));
- /* valid EE */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- }
- }
- grammarID = 1242;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 1335:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorOrder), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SignalPulseDuration)] */
- if (v2gLFA_EVFinePositioningSetupParametersType_SensorOrder_currArrayIndex < v2gLFA_EVFinePositioningSetupParametersType->SensorOrder.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- if(errn == 0) {
- errn = encodeNBitUnsignedInteger(stream, 8, (uint32_t)(v2gLFA_EVFinePositioningSetupParametersType->SensorOrder.array[v2gLFA_EVFinePositioningSetupParametersType_SensorOrder_currArrayIndex++] - 0));
- /* valid EE */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- }
- }
- grammarID = 1336;
- } else if ( 1 == 1 ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- if(errn == 0) {
- errn = encodeNBitUnsignedInteger(stream, 8, (uint32_t)(v2gLFA_EVFinePositioningSetupParametersType->SignalPulseDuration - 0));
- /* valid EE */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- }
- }
- grammarID = 1242;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 1336:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorOrder), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SignalPulseDuration)] */
- if (v2gLFA_EVFinePositioningSetupParametersType_SensorOrder_currArrayIndex < v2gLFA_EVFinePositioningSetupParametersType->SensorOrder.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- if(errn == 0) {
- errn = encodeNBitUnsignedInteger(stream, 8, (uint32_t)(v2gLFA_EVFinePositioningSetupParametersType->SensorOrder.array[v2gLFA_EVFinePositioningSetupParametersType_SensorOrder_currArrayIndex++] - 0));
- /* valid EE */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- }
- }
- grammarID = 1337;
- } else if ( 1 == 1 ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- if(errn == 0) {
- errn = encodeNBitUnsignedInteger(stream, 8, (uint32_t)(v2gLFA_EVFinePositioningSetupParametersType->SignalPulseDuration - 0));
- /* valid EE */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- }
- }
- grammarID = 1242;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 1337:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorOrder), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SignalPulseDuration)] */
- if (v2gLFA_EVFinePositioningSetupParametersType_SensorOrder_currArrayIndex < v2gLFA_EVFinePositioningSetupParametersType->SensorOrder.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- if(errn == 0) {
- errn = encodeNBitUnsignedInteger(stream, 8, (uint32_t)(v2gLFA_EVFinePositioningSetupParametersType->SensorOrder.array[v2gLFA_EVFinePositioningSetupParametersType_SensorOrder_currArrayIndex++] - 0));
- /* valid EE */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- }
- }
- grammarID = 1338;
- } else if ( 1 == 1 ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- if(errn == 0) {
- errn = encodeNBitUnsignedInteger(stream, 8, (uint32_t)(v2gLFA_EVFinePositioningSetupParametersType->SignalPulseDuration - 0));
- /* valid EE */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- }
- }
- grammarID = 1242;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 1338:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorOrder), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SignalPulseDuration)] */
- if (v2gLFA_EVFinePositioningSetupParametersType_SensorOrder_currArrayIndex < v2gLFA_EVFinePositioningSetupParametersType->SensorOrder.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- if(errn == 0) {
- errn = encodeNBitUnsignedInteger(stream, 8, (uint32_t)(v2gLFA_EVFinePositioningSetupParametersType->SensorOrder.array[v2gLFA_EVFinePositioningSetupParametersType_SensorOrder_currArrayIndex++] - 0));
- /* valid EE */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- }
- }
- grammarID = 1339;
- } else if ( 1 == 1 ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- if(errn == 0) {
- errn = encodeNBitUnsignedInteger(stream, 8, (uint32_t)(v2gLFA_EVFinePositioningSetupParametersType->SignalPulseDuration - 0));
- /* valid EE */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- }
- }
- grammarID = 1242;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 1339:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorOrder), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SignalPulseDuration)] */
- if (v2gLFA_EVFinePositioningSetupParametersType_SensorOrder_currArrayIndex < v2gLFA_EVFinePositioningSetupParametersType->SensorOrder.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- if(errn == 0) {
- errn = encodeNBitUnsignedInteger(stream, 8, (uint32_t)(v2gLFA_EVFinePositioningSetupParametersType->SensorOrder.array[v2gLFA_EVFinePositioningSetupParametersType_SensorOrder_currArrayIndex++] - 0));
- /* valid EE */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- }
- }
- grammarID = 1340;
- } else if ( 1 == 1 ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- if(errn == 0) {
- errn = encodeNBitUnsignedInteger(stream, 8, (uint32_t)(v2gLFA_EVFinePositioningSetupParametersType->SignalPulseDuration - 0));
- /* valid EE */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- }
- }
- grammarID = 1242;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 1340:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorOrder), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SignalPulseDuration)] */
- if (v2gLFA_EVFinePositioningSetupParametersType_SensorOrder_currArrayIndex < v2gLFA_EVFinePositioningSetupParametersType->SensorOrder.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- if(errn == 0) {
- errn = encodeNBitUnsignedInteger(stream, 8, (uint32_t)(v2gLFA_EVFinePositioningSetupParametersType->SensorOrder.array[v2gLFA_EVFinePositioningSetupParametersType_SensorOrder_currArrayIndex++] - 0));
- /* valid EE */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- }
- }
- grammarID = 1341;
- } else if ( 1 == 1 ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- if(errn == 0) {
- errn = encodeNBitUnsignedInteger(stream, 8, (uint32_t)(v2gLFA_EVFinePositioningSetupParametersType->SignalPulseDuration - 0));
- /* valid EE */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- }
- }
- grammarID = 1242;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 1341:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorOrder), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SignalPulseDuration)] */
- if (v2gLFA_EVFinePositioningSetupParametersType_SensorOrder_currArrayIndex < v2gLFA_EVFinePositioningSetupParametersType->SensorOrder.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- if(errn == 0) {
- errn = encodeNBitUnsignedInteger(stream, 8, (uint32_t)(v2gLFA_EVFinePositioningSetupParametersType->SensorOrder.array[v2gLFA_EVFinePositioningSetupParametersType_SensorOrder_currArrayIndex++] - 0));
- /* valid EE */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- }
- }
- grammarID = 1342;
- } else if ( 1 == 1 ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- if(errn == 0) {
- errn = encodeNBitUnsignedInteger(stream, 8, (uint32_t)(v2gLFA_EVFinePositioningSetupParametersType->SignalPulseDuration - 0));
- /* valid EE */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- }
- }
- grammarID = 1242;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 1342:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorOrder), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SignalPulseDuration)] */
- if (v2gLFA_EVFinePositioningSetupParametersType_SensorOrder_currArrayIndex < v2gLFA_EVFinePositioningSetupParametersType->SensorOrder.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- if(errn == 0) {
- errn = encodeNBitUnsignedInteger(stream, 8, (uint32_t)(v2gLFA_EVFinePositioningSetupParametersType->SensorOrder.array[v2gLFA_EVFinePositioningSetupParametersType_SensorOrder_currArrayIndex++] - 0));
- /* valid EE */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- }
- }
- grammarID = 1343;
- } else if ( 1 == 1 ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- if(errn == 0) {
- errn = encodeNBitUnsignedInteger(stream, 8, (uint32_t)(v2gLFA_EVFinePositioningSetupParametersType->SignalPulseDuration - 0));
- /* valid EE */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- }
- }
- grammarID = 1242;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 1343:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorOrder), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SignalPulseDuration)] */
- if (v2gLFA_EVFinePositioningSetupParametersType_SensorOrder_currArrayIndex < v2gLFA_EVFinePositioningSetupParametersType->SensorOrder.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- if(errn == 0) {
- errn = encodeNBitUnsignedInteger(stream, 8, (uint32_t)(v2gLFA_EVFinePositioningSetupParametersType->SensorOrder.array[v2gLFA_EVFinePositioningSetupParametersType_SensorOrder_currArrayIndex++] - 0));
- /* valid EE */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- }
- }
- grammarID = 1344;
- } else if ( 1 == 1 ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- if(errn == 0) {
- errn = encodeNBitUnsignedInteger(stream, 8, (uint32_t)(v2gLFA_EVFinePositioningSetupParametersType->SignalPulseDuration - 0));
- /* valid EE */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- }
- }
- grammarID = 1242;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 1344:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorOrder), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SignalPulseDuration)] */
- if (v2gLFA_EVFinePositioningSetupParametersType_SensorOrder_currArrayIndex < v2gLFA_EVFinePositioningSetupParametersType->SensorOrder.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- if(errn == 0) {
- errn = encodeNBitUnsignedInteger(stream, 8, (uint32_t)(v2gLFA_EVFinePositioningSetupParametersType->SensorOrder.array[v2gLFA_EVFinePositioningSetupParametersType_SensorOrder_currArrayIndex++] - 0));
- /* valid EE */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- }
- }
- grammarID = 1345;
- } else if ( 1 == 1 ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- if(errn == 0) {
- errn = encodeNBitUnsignedInteger(stream, 8, (uint32_t)(v2gLFA_EVFinePositioningSetupParametersType->SignalPulseDuration - 0));
- /* valid EE */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- }
- }
- grammarID = 1242;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 1345:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorOrder), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SignalPulseDuration)] */
- if (v2gLFA_EVFinePositioningSetupParametersType_SensorOrder_currArrayIndex < v2gLFA_EVFinePositioningSetupParametersType->SensorOrder.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- if(errn == 0) {
- errn = encodeNBitUnsignedInteger(stream, 8, (uint32_t)(v2gLFA_EVFinePositioningSetupParametersType->SensorOrder.array[v2gLFA_EVFinePositioningSetupParametersType_SensorOrder_currArrayIndex++] - 0));
- /* valid EE */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- }
- }
- grammarID = 1346;
- } else if ( 1 == 1 ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- if(errn == 0) {
- errn = encodeNBitUnsignedInteger(stream, 8, (uint32_t)(v2gLFA_EVFinePositioningSetupParametersType->SignalPulseDuration - 0));
- /* valid EE */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- }
- }
- grammarID = 1242;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 1346:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorOrder), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SignalPulseDuration)] */
- if (v2gLFA_EVFinePositioningSetupParametersType_SensorOrder_currArrayIndex < v2gLFA_EVFinePositioningSetupParametersType->SensorOrder.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- if(errn == 0) {
- errn = encodeNBitUnsignedInteger(stream, 8, (uint32_t)(v2gLFA_EVFinePositioningSetupParametersType->SensorOrder.array[v2gLFA_EVFinePositioningSetupParametersType_SensorOrder_currArrayIndex++] - 0));
- /* valid EE */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- }
- }
- grammarID = 1347;
- } else if ( 1 == 1 ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- if(errn == 0) {
- errn = encodeNBitUnsignedInteger(stream, 8, (uint32_t)(v2gLFA_EVFinePositioningSetupParametersType->SignalPulseDuration - 0));
- /* valid EE */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- }
- }
- grammarID = 1242;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 1347:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorOrder), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SignalPulseDuration)] */
- if (v2gLFA_EVFinePositioningSetupParametersType_SensorOrder_currArrayIndex < v2gLFA_EVFinePositioningSetupParametersType->SensorOrder.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- if(errn == 0) {
- errn = encodeNBitUnsignedInteger(stream, 8, (uint32_t)(v2gLFA_EVFinePositioningSetupParametersType->SensorOrder.array[v2gLFA_EVFinePositioningSetupParametersType_SensorOrder_currArrayIndex++] - 0));
- /* valid EE */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- }
- }
- grammarID = 1348;
- } else if ( 1 == 1 ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- if(errn == 0) {
- errn = encodeNBitUnsignedInteger(stream, 8, (uint32_t)(v2gLFA_EVFinePositioningSetupParametersType->SignalPulseDuration - 0));
- /* valid EE */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- }
- }
- grammarID = 1242;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 1348:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorOrder), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SignalPulseDuration)] */
- if (v2gLFA_EVFinePositioningSetupParametersType_SensorOrder_currArrayIndex < v2gLFA_EVFinePositioningSetupParametersType->SensorOrder.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- if(errn == 0) {
- errn = encodeNBitUnsignedInteger(stream, 8, (uint32_t)(v2gLFA_EVFinePositioningSetupParametersType->SensorOrder.array[v2gLFA_EVFinePositioningSetupParametersType_SensorOrder_currArrayIndex++] - 0));
- /* valid EE */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- }
- }
- grammarID = 1349;
- } else if ( 1 == 1 ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- if(errn == 0) {
- errn = encodeNBitUnsignedInteger(stream, 8, (uint32_t)(v2gLFA_EVFinePositioningSetupParametersType->SignalPulseDuration - 0));
- /* valid EE */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- }
- }
- grammarID = 1242;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 1349:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorOrder), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SignalPulseDuration)] */
- if (v2gLFA_EVFinePositioningSetupParametersType_SensorOrder_currArrayIndex < v2gLFA_EVFinePositioningSetupParametersType->SensorOrder.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- if(errn == 0) {
- errn = encodeNBitUnsignedInteger(stream, 8, (uint32_t)(v2gLFA_EVFinePositioningSetupParametersType->SensorOrder.array[v2gLFA_EVFinePositioningSetupParametersType_SensorOrder_currArrayIndex++] - 0));
- /* valid EE */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- }
- }
- grammarID = 1350;
- } else if ( 1 == 1 ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- if(errn == 0) {
- errn = encodeNBitUnsignedInteger(stream, 8, (uint32_t)(v2gLFA_EVFinePositioningSetupParametersType->SignalPulseDuration - 0));
- /* valid EE */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- }
- }
- grammarID = 1242;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 1350:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorOrder), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SignalPulseDuration)] */
- if (v2gLFA_EVFinePositioningSetupParametersType_SensorOrder_currArrayIndex < v2gLFA_EVFinePositioningSetupParametersType->SensorOrder.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- if(errn == 0) {
- errn = encodeNBitUnsignedInteger(stream, 8, (uint32_t)(v2gLFA_EVFinePositioningSetupParametersType->SensorOrder.array[v2gLFA_EVFinePositioningSetupParametersType_SensorOrder_currArrayIndex++] - 0));
- /* valid EE */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- }
- }
- grammarID = 1351;
- } else if ( 1 == 1 ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- if(errn == 0) {
- errn = encodeNBitUnsignedInteger(stream, 8, (uint32_t)(v2gLFA_EVFinePositioningSetupParametersType->SignalPulseDuration - 0));
- /* valid EE */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- }
- }
- grammarID = 1242;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 1351:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorOrder), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SignalPulseDuration)] */
- if (v2gLFA_EVFinePositioningSetupParametersType_SensorOrder_currArrayIndex < v2gLFA_EVFinePositioningSetupParametersType->SensorOrder.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- if(errn == 0) {
- errn = encodeNBitUnsignedInteger(stream, 8, (uint32_t)(v2gLFA_EVFinePositioningSetupParametersType->SensorOrder.array[v2gLFA_EVFinePositioningSetupParametersType_SensorOrder_currArrayIndex++] - 0));
- /* valid EE */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- }
- }
- grammarID = 1352;
- } else if ( 1 == 1 ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- if(errn == 0) {
- errn = encodeNBitUnsignedInteger(stream, 8, (uint32_t)(v2gLFA_EVFinePositioningSetupParametersType->SignalPulseDuration - 0));
- /* valid EE */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- }
- }
- grammarID = 1242;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 1352:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorOrder), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SignalPulseDuration)] */
- if (v2gLFA_EVFinePositioningSetupParametersType_SensorOrder_currArrayIndex < v2gLFA_EVFinePositioningSetupParametersType->SensorOrder.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- if(errn == 0) {
- errn = encodeNBitUnsignedInteger(stream, 8, (uint32_t)(v2gLFA_EVFinePositioningSetupParametersType->SensorOrder.array[v2gLFA_EVFinePositioningSetupParametersType_SensorOrder_currArrayIndex++] - 0));
- /* valid EE */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- }
- }
- grammarID = 1353;
- } else if ( 1 == 1 ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- if(errn == 0) {
- errn = encodeNBitUnsignedInteger(stream, 8, (uint32_t)(v2gLFA_EVFinePositioningSetupParametersType->SignalPulseDuration - 0));
- /* valid EE */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- }
- }
- grammarID = 1242;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 1353:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorOrder), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SignalPulseDuration)] */
- if (v2gLFA_EVFinePositioningSetupParametersType_SensorOrder_currArrayIndex < v2gLFA_EVFinePositioningSetupParametersType->SensorOrder.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- if(errn == 0) {
- errn = encodeNBitUnsignedInteger(stream, 8, (uint32_t)(v2gLFA_EVFinePositioningSetupParametersType->SensorOrder.array[v2gLFA_EVFinePositioningSetupParametersType_SensorOrder_currArrayIndex++] - 0));
- /* valid EE */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- }
- }
- grammarID = 1354;
- } else if ( 1 == 1 ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- if(errn == 0) {
- errn = encodeNBitUnsignedInteger(stream, 8, (uint32_t)(v2gLFA_EVFinePositioningSetupParametersType->SignalPulseDuration - 0));
- /* valid EE */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- }
- }
- grammarID = 1242;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 1354:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorOrder), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SignalPulseDuration)] */
- if (v2gLFA_EVFinePositioningSetupParametersType_SensorOrder_currArrayIndex < v2gLFA_EVFinePositioningSetupParametersType->SensorOrder.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- if(errn == 0) {
- errn = encodeNBitUnsignedInteger(stream, 8, (uint32_t)(v2gLFA_EVFinePositioningSetupParametersType->SensorOrder.array[v2gLFA_EVFinePositioningSetupParametersType_SensorOrder_currArrayIndex++] - 0));
- /* valid EE */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- }
- }
- grammarID = 1355;
- } else if ( 1 == 1 ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- if(errn == 0) {
- errn = encodeNBitUnsignedInteger(stream, 8, (uint32_t)(v2gLFA_EVFinePositioningSetupParametersType->SignalPulseDuration - 0));
- /* valid EE */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- }
- }
- grammarID = 1242;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 1355:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorOrder), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SignalPulseDuration)] */
- if (v2gLFA_EVFinePositioningSetupParametersType_SensorOrder_currArrayIndex < v2gLFA_EVFinePositioningSetupParametersType->SensorOrder.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- if(errn == 0) {
- errn = encodeNBitUnsignedInteger(stream, 8, (uint32_t)(v2gLFA_EVFinePositioningSetupParametersType->SensorOrder.array[v2gLFA_EVFinePositioningSetupParametersType_SensorOrder_currArrayIndex++] - 0));
- /* valid EE */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- }
- }
- grammarID = 1356;
- } else if ( 1 == 1 ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- if(errn == 0) {
- errn = encodeNBitUnsignedInteger(stream, 8, (uint32_t)(v2gLFA_EVFinePositioningSetupParametersType->SignalPulseDuration - 0));
- /* valid EE */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- }
- }
- grammarID = 1242;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 1356:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorOrder), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SignalPulseDuration)] */
- if (v2gLFA_EVFinePositioningSetupParametersType_SensorOrder_currArrayIndex < v2gLFA_EVFinePositioningSetupParametersType->SensorOrder.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- if(errn == 0) {
- errn = encodeNBitUnsignedInteger(stream, 8, (uint32_t)(v2gLFA_EVFinePositioningSetupParametersType->SensorOrder.array[v2gLFA_EVFinePositioningSetupParametersType_SensorOrder_currArrayIndex++] - 0));
- /* valid EE */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- }
- }
- grammarID = 1357;
- } else if ( 1 == 1 ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- if(errn == 0) {
- errn = encodeNBitUnsignedInteger(stream, 8, (uint32_t)(v2gLFA_EVFinePositioningSetupParametersType->SignalPulseDuration - 0));
- /* valid EE */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- }
- }
- grammarID = 1242;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 1357:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorOrder), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SignalPulseDuration)] */
- if (v2gLFA_EVFinePositioningSetupParametersType_SensorOrder_currArrayIndex < v2gLFA_EVFinePositioningSetupParametersType->SensorOrder.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- if(errn == 0) {
- errn = encodeNBitUnsignedInteger(stream, 8, (uint32_t)(v2gLFA_EVFinePositioningSetupParametersType->SensorOrder.array[v2gLFA_EVFinePositioningSetupParametersType_SensorOrder_currArrayIndex++] - 0));
- /* valid EE */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- }
- }
- grammarID = 1358;
- } else if ( 1 == 1 ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- if(errn == 0) {
- errn = encodeNBitUnsignedInteger(stream, 8, (uint32_t)(v2gLFA_EVFinePositioningSetupParametersType->SignalPulseDuration - 0));
- /* valid EE */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- }
- }
- grammarID = 1242;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 1358:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorOrder), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SignalPulseDuration)] */
- if (v2gLFA_EVFinePositioningSetupParametersType_SensorOrder_currArrayIndex < v2gLFA_EVFinePositioningSetupParametersType->SensorOrder.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- if(errn == 0) {
- errn = encodeNBitUnsignedInteger(stream, 8, (uint32_t)(v2gLFA_EVFinePositioningSetupParametersType->SensorOrder.array[v2gLFA_EVFinePositioningSetupParametersType_SensorOrder_currArrayIndex++] - 0));
- /* valid EE */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- }
- }
- grammarID = 1359;
- } else if ( 1 == 1 ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- if(errn == 0) {
- errn = encodeNBitUnsignedInteger(stream, 8, (uint32_t)(v2gLFA_EVFinePositioningSetupParametersType->SignalPulseDuration - 0));
- /* valid EE */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- }
- }
- grammarID = 1242;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 1359:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorOrder), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SignalPulseDuration)] */
- if (v2gLFA_EVFinePositioningSetupParametersType_SensorOrder_currArrayIndex < v2gLFA_EVFinePositioningSetupParametersType->SensorOrder.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- if(errn == 0) {
- errn = encodeNBitUnsignedInteger(stream, 8, (uint32_t)(v2gLFA_EVFinePositioningSetupParametersType->SensorOrder.array[v2gLFA_EVFinePositioningSetupParametersType_SensorOrder_currArrayIndex++] - 0));
- /* valid EE */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- }
- }
- grammarID = 1360;
- } else if ( 1 == 1 ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- if(errn == 0) {
- errn = encodeNBitUnsignedInteger(stream, 8, (uint32_t)(v2gLFA_EVFinePositioningSetupParametersType->SignalPulseDuration - 0));
- /* valid EE */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- }
- }
- grammarID = 1242;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 1360:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorOrder), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SignalPulseDuration)] */
- if (v2gLFA_EVFinePositioningSetupParametersType_SensorOrder_currArrayIndex < v2gLFA_EVFinePositioningSetupParametersType->SensorOrder.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- if(errn == 0) {
- errn = encodeNBitUnsignedInteger(stream, 8, (uint32_t)(v2gLFA_EVFinePositioningSetupParametersType->SensorOrder.array[v2gLFA_EVFinePositioningSetupParametersType_SensorOrder_currArrayIndex++] - 0));
- /* valid EE */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- }
- }
- grammarID = 1361;
- } else if ( 1 == 1 ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- if(errn == 0) {
- errn = encodeNBitUnsignedInteger(stream, 8, (uint32_t)(v2gLFA_EVFinePositioningSetupParametersType->SignalPulseDuration - 0));
- /* valid EE */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- }
- }
- grammarID = 1242;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 1361:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorOrder), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SignalPulseDuration)] */
- if (v2gLFA_EVFinePositioningSetupParametersType_SensorOrder_currArrayIndex < v2gLFA_EVFinePositioningSetupParametersType->SensorOrder.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- if(errn == 0) {
- errn = encodeNBitUnsignedInteger(stream, 8, (uint32_t)(v2gLFA_EVFinePositioningSetupParametersType->SensorOrder.array[v2gLFA_EVFinePositioningSetupParametersType_SensorOrder_currArrayIndex++] - 0));
- /* valid EE */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- }
- }
- grammarID = 1362;
- } else if ( 1 == 1 ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- if(errn == 0) {
- errn = encodeNBitUnsignedInteger(stream, 8, (uint32_t)(v2gLFA_EVFinePositioningSetupParametersType->SignalPulseDuration - 0));
- /* valid EE */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- }
- }
- grammarID = 1242;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 1362:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorOrder), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SignalPulseDuration)] */
- if (v2gLFA_EVFinePositioningSetupParametersType_SensorOrder_currArrayIndex < v2gLFA_EVFinePositioningSetupParametersType->SensorOrder.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- if(errn == 0) {
- errn = encodeNBitUnsignedInteger(stream, 8, (uint32_t)(v2gLFA_EVFinePositioningSetupParametersType->SensorOrder.array[v2gLFA_EVFinePositioningSetupParametersType_SensorOrder_currArrayIndex++] - 0));
- /* valid EE */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- }
- }
- grammarID = 1363;
- } else if ( 1 == 1 ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- if(errn == 0) {
- errn = encodeNBitUnsignedInteger(stream, 8, (uint32_t)(v2gLFA_EVFinePositioningSetupParametersType->SignalPulseDuration - 0));
- /* valid EE */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- }
- }
- grammarID = 1242;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 1363:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorOrder), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SignalPulseDuration)] */
- if (v2gLFA_EVFinePositioningSetupParametersType_SensorOrder_currArrayIndex < v2gLFA_EVFinePositioningSetupParametersType->SensorOrder.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- if(errn == 0) {
- errn = encodeNBitUnsignedInteger(stream, 8, (uint32_t)(v2gLFA_EVFinePositioningSetupParametersType->SensorOrder.array[v2gLFA_EVFinePositioningSetupParametersType_SensorOrder_currArrayIndex++] - 0));
- /* valid EE */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- }
- }
- grammarID = 1364;
- } else if ( 1 == 1 ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- if(errn == 0) {
- errn = encodeNBitUnsignedInteger(stream, 8, (uint32_t)(v2gLFA_EVFinePositioningSetupParametersType->SignalPulseDuration - 0));
- /* valid EE */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- }
- }
- grammarID = 1242;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 1364:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorOrder), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SignalPulseDuration)] */
- if (v2gLFA_EVFinePositioningSetupParametersType_SensorOrder_currArrayIndex < v2gLFA_EVFinePositioningSetupParametersType->SensorOrder.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- if(errn == 0) {
- errn = encodeNBitUnsignedInteger(stream, 8, (uint32_t)(v2gLFA_EVFinePositioningSetupParametersType->SensorOrder.array[v2gLFA_EVFinePositioningSetupParametersType_SensorOrder_currArrayIndex++] - 0));
- /* valid EE */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- }
- }
- grammarID = 1365;
- } else if ( 1 == 1 ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- if(errn == 0) {
- errn = encodeNBitUnsignedInteger(stream, 8, (uint32_t)(v2gLFA_EVFinePositioningSetupParametersType->SignalPulseDuration - 0));
- /* valid EE */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- }
- }
- grammarID = 1242;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 1365:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorOrder), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SignalPulseDuration)] */
- if (v2gLFA_EVFinePositioningSetupParametersType_SensorOrder_currArrayIndex < v2gLFA_EVFinePositioningSetupParametersType->SensorOrder.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- if(errn == 0) {
- errn = encodeNBitUnsignedInteger(stream, 8, (uint32_t)(v2gLFA_EVFinePositioningSetupParametersType->SensorOrder.array[v2gLFA_EVFinePositioningSetupParametersType_SensorOrder_currArrayIndex++] - 0));
- /* valid EE */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- }
- }
- grammarID = 1366;
- } else if ( 1 == 1 ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- if(errn == 0) {
- errn = encodeNBitUnsignedInteger(stream, 8, (uint32_t)(v2gLFA_EVFinePositioningSetupParametersType->SignalPulseDuration - 0));
- /* valid EE */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- }
- }
- grammarID = 1242;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 1366:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorOrder), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SignalPulseDuration)] */
- if (v2gLFA_EVFinePositioningSetupParametersType_SensorOrder_currArrayIndex < v2gLFA_EVFinePositioningSetupParametersType->SensorOrder.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- if(errn == 0) {
- errn = encodeNBitUnsignedInteger(stream, 8, (uint32_t)(v2gLFA_EVFinePositioningSetupParametersType->SensorOrder.array[v2gLFA_EVFinePositioningSetupParametersType_SensorOrder_currArrayIndex++] - 0));
- /* valid EE */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- }
- }
- grammarID = 1367;
- } else if ( 1 == 1 ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- if(errn == 0) {
- errn = encodeNBitUnsignedInteger(stream, 8, (uint32_t)(v2gLFA_EVFinePositioningSetupParametersType->SignalPulseDuration - 0));
- /* valid EE */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- }
- }
- grammarID = 1242;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 1367:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorOrder), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SignalPulseDuration)] */
- if (v2gLFA_EVFinePositioningSetupParametersType_SensorOrder_currArrayIndex < v2gLFA_EVFinePositioningSetupParametersType->SensorOrder.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- if(errn == 0) {
- errn = encodeNBitUnsignedInteger(stream, 8, (uint32_t)(v2gLFA_EVFinePositioningSetupParametersType->SensorOrder.array[v2gLFA_EVFinePositioningSetupParametersType_SensorOrder_currArrayIndex++] - 0));
- /* valid EE */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- }
- }
- grammarID = 1368;
- } else if ( 1 == 1 ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- if(errn == 0) {
- errn = encodeNBitUnsignedInteger(stream, 8, (uint32_t)(v2gLFA_EVFinePositioningSetupParametersType->SignalPulseDuration - 0));
- /* valid EE */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- }
- }
- grammarID = 1242;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 1368:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorOrder), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SignalPulseDuration)] */
- if (v2gLFA_EVFinePositioningSetupParametersType_SensorOrder_currArrayIndex < v2gLFA_EVFinePositioningSetupParametersType->SensorOrder.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- if(errn == 0) {
- errn = encodeNBitUnsignedInteger(stream, 8, (uint32_t)(v2gLFA_EVFinePositioningSetupParametersType->SensorOrder.array[v2gLFA_EVFinePositioningSetupParametersType_SensorOrder_currArrayIndex++] - 0));
- /* valid EE */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- }
- }
- grammarID = 1369;
- } else if ( 1 == 1 ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- if(errn == 0) {
- errn = encodeNBitUnsignedInteger(stream, 8, (uint32_t)(v2gLFA_EVFinePositioningSetupParametersType->SignalPulseDuration - 0));
- /* valid EE */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- }
- }
- grammarID = 1242;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 1369:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorOrder), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SignalPulseDuration)] */
- if (v2gLFA_EVFinePositioningSetupParametersType_SensorOrder_currArrayIndex < v2gLFA_EVFinePositioningSetupParametersType->SensorOrder.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- if(errn == 0) {
- errn = encodeNBitUnsignedInteger(stream, 8, (uint32_t)(v2gLFA_EVFinePositioningSetupParametersType->SensorOrder.array[v2gLFA_EVFinePositioningSetupParametersType_SensorOrder_currArrayIndex++] - 0));
- /* valid EE */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- }
- }
- grammarID = 1370;
- } else if ( 1 == 1 ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- if(errn == 0) {
- errn = encodeNBitUnsignedInteger(stream, 8, (uint32_t)(v2gLFA_EVFinePositioningSetupParametersType->SignalPulseDuration - 0));
- /* valid EE */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- }
- }
- grammarID = 1242;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 1370:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorOrder), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SignalPulseDuration)] */
- if (v2gLFA_EVFinePositioningSetupParametersType_SensorOrder_currArrayIndex < v2gLFA_EVFinePositioningSetupParametersType->SensorOrder.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- if(errn == 0) {
- errn = encodeNBitUnsignedInteger(stream, 8, (uint32_t)(v2gLFA_EVFinePositioningSetupParametersType->SensorOrder.array[v2gLFA_EVFinePositioningSetupParametersType_SensorOrder_currArrayIndex++] - 0));
- /* valid EE */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- }
- }
- grammarID = 1371;
- } else if ( 1 == 1 ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- if(errn == 0) {
- errn = encodeNBitUnsignedInteger(stream, 8, (uint32_t)(v2gLFA_EVFinePositioningSetupParametersType->SignalPulseDuration - 0));
- /* valid EE */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- }
- }
- grammarID = 1242;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 1371:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorOrder), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SignalPulseDuration)] */
- if (v2gLFA_EVFinePositioningSetupParametersType_SensorOrder_currArrayIndex < v2gLFA_EVFinePositioningSetupParametersType->SensorOrder.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- if(errn == 0) {
- errn = encodeNBitUnsignedInteger(stream, 8, (uint32_t)(v2gLFA_EVFinePositioningSetupParametersType->SensorOrder.array[v2gLFA_EVFinePositioningSetupParametersType_SensorOrder_currArrayIndex++] - 0));
- /* valid EE */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- }
- }
- grammarID = 1372;
- } else if ( 1 == 1 ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- if(errn == 0) {
- errn = encodeNBitUnsignedInteger(stream, 8, (uint32_t)(v2gLFA_EVFinePositioningSetupParametersType->SignalPulseDuration - 0));
- /* valid EE */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- }
- }
- grammarID = 1242;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 1372:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorOrder), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SignalPulseDuration)] */
- if (v2gLFA_EVFinePositioningSetupParametersType_SensorOrder_currArrayIndex < v2gLFA_EVFinePositioningSetupParametersType->SensorOrder.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- if(errn == 0) {
- errn = encodeNBitUnsignedInteger(stream, 8, (uint32_t)(v2gLFA_EVFinePositioningSetupParametersType->SensorOrder.array[v2gLFA_EVFinePositioningSetupParametersType_SensorOrder_currArrayIndex++] - 0));
- /* valid EE */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- }
- }
- grammarID = 1373;
- } else if ( 1 == 1 ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- if(errn == 0) {
- errn = encodeNBitUnsignedInteger(stream, 8, (uint32_t)(v2gLFA_EVFinePositioningSetupParametersType->SignalPulseDuration - 0));
- /* valid EE */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- }
- }
- grammarID = 1242;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 1373:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorOrder), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SignalPulseDuration)] */
- if (v2gLFA_EVFinePositioningSetupParametersType_SensorOrder_currArrayIndex < v2gLFA_EVFinePositioningSetupParametersType->SensorOrder.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- if(errn == 0) {
- errn = encodeNBitUnsignedInteger(stream, 8, (uint32_t)(v2gLFA_EVFinePositioningSetupParametersType->SensorOrder.array[v2gLFA_EVFinePositioningSetupParametersType_SensorOrder_currArrayIndex++] - 0));
- /* valid EE */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- }
- }
- grammarID = 1374;
- } else if ( 1 == 1 ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- if(errn == 0) {
- errn = encodeNBitUnsignedInteger(stream, 8, (uint32_t)(v2gLFA_EVFinePositioningSetupParametersType->SignalPulseDuration - 0));
- /* valid EE */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- }
- }
- grammarID = 1242;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 1374:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorOrder), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SignalPulseDuration)] */
- if (v2gLFA_EVFinePositioningSetupParametersType_SensorOrder_currArrayIndex < v2gLFA_EVFinePositioningSetupParametersType->SensorOrder.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- if(errn == 0) {
- errn = encodeNBitUnsignedInteger(stream, 8, (uint32_t)(v2gLFA_EVFinePositioningSetupParametersType->SensorOrder.array[v2gLFA_EVFinePositioningSetupParametersType_SensorOrder_currArrayIndex++] - 0));
- /* valid EE */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- }
- }
- grammarID = 1375;
- } else if ( 1 == 1 ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- if(errn == 0) {
- errn = encodeNBitUnsignedInteger(stream, 8, (uint32_t)(v2gLFA_EVFinePositioningSetupParametersType->SignalPulseDuration - 0));
- /* valid EE */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- }
- }
- grammarID = 1242;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 1375:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorOrder), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SignalPulseDuration)] */
- if (v2gLFA_EVFinePositioningSetupParametersType_SensorOrder_currArrayIndex < v2gLFA_EVFinePositioningSetupParametersType->SensorOrder.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- if(errn == 0) {
- errn = encodeNBitUnsignedInteger(stream, 8, (uint32_t)(v2gLFA_EVFinePositioningSetupParametersType->SensorOrder.array[v2gLFA_EVFinePositioningSetupParametersType_SensorOrder_currArrayIndex++] - 0));
- /* valid EE */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- }
- }
- grammarID = 1376;
- } else if ( 1 == 1 ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- if(errn == 0) {
- errn = encodeNBitUnsignedInteger(stream, 8, (uint32_t)(v2gLFA_EVFinePositioningSetupParametersType->SignalPulseDuration - 0));
- /* valid EE */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- }
- }
- grammarID = 1242;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 1376:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorOrder), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SignalPulseDuration)] */
- if (v2gLFA_EVFinePositioningSetupParametersType_SensorOrder_currArrayIndex < v2gLFA_EVFinePositioningSetupParametersType->SensorOrder.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- if(errn == 0) {
- errn = encodeNBitUnsignedInteger(stream, 8, (uint32_t)(v2gLFA_EVFinePositioningSetupParametersType->SensorOrder.array[v2gLFA_EVFinePositioningSetupParametersType_SensorOrder_currArrayIndex++] - 0));
- /* valid EE */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- }
- }
- grammarID = 1377;
- } else if ( 1 == 1 ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- if(errn == 0) {
- errn = encodeNBitUnsignedInteger(stream, 8, (uint32_t)(v2gLFA_EVFinePositioningSetupParametersType->SignalPulseDuration - 0));
- /* valid EE */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- }
- }
- grammarID = 1242;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 1377:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorOrder), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SignalPulseDuration)] */
- if (v2gLFA_EVFinePositioningSetupParametersType_SensorOrder_currArrayIndex < v2gLFA_EVFinePositioningSetupParametersType->SensorOrder.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- if(errn == 0) {
- errn = encodeNBitUnsignedInteger(stream, 8, (uint32_t)(v2gLFA_EVFinePositioningSetupParametersType->SensorOrder.array[v2gLFA_EVFinePositioningSetupParametersType_SensorOrder_currArrayIndex++] - 0));
- /* valid EE */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- }
- }
- grammarID = 1378;
- } else if ( 1 == 1 ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- if(errn == 0) {
- errn = encodeNBitUnsignedInteger(stream, 8, (uint32_t)(v2gLFA_EVFinePositioningSetupParametersType->SignalPulseDuration - 0));
- /* valid EE */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- }
- }
- grammarID = 1242;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 1378:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorOrder), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SignalPulseDuration)] */
- if (v2gLFA_EVFinePositioningSetupParametersType_SensorOrder_currArrayIndex < v2gLFA_EVFinePositioningSetupParametersType->SensorOrder.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- if(errn == 0) {
- errn = encodeNBitUnsignedInteger(stream, 8, (uint32_t)(v2gLFA_EVFinePositioningSetupParametersType->SensorOrder.array[v2gLFA_EVFinePositioningSetupParametersType_SensorOrder_currArrayIndex++] - 0));
- /* valid EE */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- }
- }
- grammarID = 1379;
- } else if ( 1 == 1 ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- if(errn == 0) {
- errn = encodeNBitUnsignedInteger(stream, 8, (uint32_t)(v2gLFA_EVFinePositioningSetupParametersType->SignalPulseDuration - 0));
- /* valid EE */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- }
- }
- grammarID = 1242;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 1379:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorOrder), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SignalPulseDuration)] */
- if (v2gLFA_EVFinePositioningSetupParametersType_SensorOrder_currArrayIndex < v2gLFA_EVFinePositioningSetupParametersType->SensorOrder.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- if(errn == 0) {
- errn = encodeNBitUnsignedInteger(stream, 8, (uint32_t)(v2gLFA_EVFinePositioningSetupParametersType->SensorOrder.array[v2gLFA_EVFinePositioningSetupParametersType_SensorOrder_currArrayIndex++] - 0));
- /* valid EE */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- }
- }
- grammarID = 1380;
- } else if ( 1 == 1 ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- if(errn == 0) {
- errn = encodeNBitUnsignedInteger(stream, 8, (uint32_t)(v2gLFA_EVFinePositioningSetupParametersType->SignalPulseDuration - 0));
- /* valid EE */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- }
- }
- grammarID = 1242;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 1380:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorOrder), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SignalPulseDuration)] */
- if (v2gLFA_EVFinePositioningSetupParametersType_SensorOrder_currArrayIndex < v2gLFA_EVFinePositioningSetupParametersType->SensorOrder.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- if(errn == 0) {
- errn = encodeNBitUnsignedInteger(stream, 8, (uint32_t)(v2gLFA_EVFinePositioningSetupParametersType->SensorOrder.array[v2gLFA_EVFinePositioningSetupParametersType_SensorOrder_currArrayIndex++] - 0));
- /* valid EE */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- }
- }
- grammarID = 1381;
- } else if ( 1 == 1 ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- if(errn == 0) {
- errn = encodeNBitUnsignedInteger(stream, 8, (uint32_t)(v2gLFA_EVFinePositioningSetupParametersType->SignalPulseDuration - 0));
- /* valid EE */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- }
- }
- grammarID = 1242;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 1381:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorOrder), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SignalPulseDuration)] */
- if (v2gLFA_EVFinePositioningSetupParametersType_SensorOrder_currArrayIndex < v2gLFA_EVFinePositioningSetupParametersType->SensorOrder.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- if(errn == 0) {
- errn = encodeNBitUnsignedInteger(stream, 8, (uint32_t)(v2gLFA_EVFinePositioningSetupParametersType->SensorOrder.array[v2gLFA_EVFinePositioningSetupParametersType_SensorOrder_currArrayIndex++] - 0));
- /* valid EE */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- }
- }
- grammarID = 1382;
- } else if ( 1 == 1 ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- if(errn == 0) {
- errn = encodeNBitUnsignedInteger(stream, 8, (uint32_t)(v2gLFA_EVFinePositioningSetupParametersType->SignalPulseDuration - 0));
- /* valid EE */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- }
- }
- grammarID = 1242;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 1382:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorOrder), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SignalPulseDuration)] */
- if (v2gLFA_EVFinePositioningSetupParametersType_SensorOrder_currArrayIndex < v2gLFA_EVFinePositioningSetupParametersType->SensorOrder.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- if(errn == 0) {
- errn = encodeNBitUnsignedInteger(stream, 8, (uint32_t)(v2gLFA_EVFinePositioningSetupParametersType->SensorOrder.array[v2gLFA_EVFinePositioningSetupParametersType_SensorOrder_currArrayIndex++] - 0));
- /* valid EE */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- }
- }
- grammarID = 1383;
- } else if ( 1 == 1 ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- if(errn == 0) {
- errn = encodeNBitUnsignedInteger(stream, 8, (uint32_t)(v2gLFA_EVFinePositioningSetupParametersType->SignalPulseDuration - 0));
- /* valid EE */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- }
- }
- grammarID = 1242;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 1383:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorOrder), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SignalPulseDuration)] */
- if (v2gLFA_EVFinePositioningSetupParametersType_SensorOrder_currArrayIndex < v2gLFA_EVFinePositioningSetupParametersType->SensorOrder.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- if(errn == 0) {
- errn = encodeNBitUnsignedInteger(stream, 8, (uint32_t)(v2gLFA_EVFinePositioningSetupParametersType->SensorOrder.array[v2gLFA_EVFinePositioningSetupParametersType_SensorOrder_currArrayIndex++] - 0));
- /* valid EE */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- }
- }
- grammarID = 1384;
- } else if ( 1 == 1 ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- if(errn == 0) {
- errn = encodeNBitUnsignedInteger(stream, 8, (uint32_t)(v2gLFA_EVFinePositioningSetupParametersType->SignalPulseDuration - 0));
- /* valid EE */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- }
- }
- grammarID = 1242;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 1384:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorOrder), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SignalPulseDuration)] */
- if (v2gLFA_EVFinePositioningSetupParametersType_SensorOrder_currArrayIndex < v2gLFA_EVFinePositioningSetupParametersType->SensorOrder.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- if(errn == 0) {
- errn = encodeNBitUnsignedInteger(stream, 8, (uint32_t)(v2gLFA_EVFinePositioningSetupParametersType->SensorOrder.array[v2gLFA_EVFinePositioningSetupParametersType_SensorOrder_currArrayIndex++] - 0));
- /* valid EE */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- }
- }
- grammarID = 1385;
- } else if ( 1 == 1 ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- if(errn == 0) {
- errn = encodeNBitUnsignedInteger(stream, 8, (uint32_t)(v2gLFA_EVFinePositioningSetupParametersType->SignalPulseDuration - 0));
- /* valid EE */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- }
- }
- grammarID = 1242;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 1385:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorOrder), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SignalPulseDuration)] */
- if (v2gLFA_EVFinePositioningSetupParametersType_SensorOrder_currArrayIndex < v2gLFA_EVFinePositioningSetupParametersType->SensorOrder.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- if(errn == 0) {
- errn = encodeNBitUnsignedInteger(stream, 8, (uint32_t)(v2gLFA_EVFinePositioningSetupParametersType->SensorOrder.array[v2gLFA_EVFinePositioningSetupParametersType_SensorOrder_currArrayIndex++] - 0));
- /* valid EE */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- }
- }
- grammarID = 1386;
- } else if ( 1 == 1 ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- if(errn == 0) {
- errn = encodeNBitUnsignedInteger(stream, 8, (uint32_t)(v2gLFA_EVFinePositioningSetupParametersType->SignalPulseDuration - 0));
- /* valid EE */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- }
- }
- grammarID = 1242;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 1386:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorOrder), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SignalPulseDuration)] */
- if (v2gLFA_EVFinePositioningSetupParametersType_SensorOrder_currArrayIndex < v2gLFA_EVFinePositioningSetupParametersType->SensorOrder.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- if(errn == 0) {
- errn = encodeNBitUnsignedInteger(stream, 8, (uint32_t)(v2gLFA_EVFinePositioningSetupParametersType->SensorOrder.array[v2gLFA_EVFinePositioningSetupParametersType_SensorOrder_currArrayIndex++] - 0));
- /* valid EE */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- }
- }
- grammarID = 1387;
- } else if ( 1 == 1 ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- if(errn == 0) {
- errn = encodeNBitUnsignedInteger(stream, 8, (uint32_t)(v2gLFA_EVFinePositioningSetupParametersType->SignalPulseDuration - 0));
- /* valid EE */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- }
- }
- grammarID = 1242;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 1387:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorOrder), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SignalPulseDuration)] */
- if (v2gLFA_EVFinePositioningSetupParametersType_SensorOrder_currArrayIndex < v2gLFA_EVFinePositioningSetupParametersType->SensorOrder.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- if(errn == 0) {
- errn = encodeNBitUnsignedInteger(stream, 8, (uint32_t)(v2gLFA_EVFinePositioningSetupParametersType->SensorOrder.array[v2gLFA_EVFinePositioningSetupParametersType_SensorOrder_currArrayIndex++] - 0));
- /* valid EE */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- }
- }
- grammarID = 1388;
- } else if ( 1 == 1 ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- if(errn == 0) {
- errn = encodeNBitUnsignedInteger(stream, 8, (uint32_t)(v2gLFA_EVFinePositioningSetupParametersType->SignalPulseDuration - 0));
- /* valid EE */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- }
- }
- grammarID = 1242;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 1388:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorOrder), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SignalPulseDuration)] */
- if (v2gLFA_EVFinePositioningSetupParametersType_SensorOrder_currArrayIndex < v2gLFA_EVFinePositioningSetupParametersType->SensorOrder.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- if(errn == 0) {
- errn = encodeNBitUnsignedInteger(stream, 8, (uint32_t)(v2gLFA_EVFinePositioningSetupParametersType->SensorOrder.array[v2gLFA_EVFinePositioningSetupParametersType_SensorOrder_currArrayIndex++] - 0));
- /* valid EE */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- }
- }
- grammarID = 1389;
- } else if ( 1 == 1 ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- if(errn == 0) {
- errn = encodeNBitUnsignedInteger(stream, 8, (uint32_t)(v2gLFA_EVFinePositioningSetupParametersType->SignalPulseDuration - 0));
- /* valid EE */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- }
- }
- grammarID = 1242;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 1389:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorOrder), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SignalPulseDuration)] */
- if (v2gLFA_EVFinePositioningSetupParametersType_SensorOrder_currArrayIndex < v2gLFA_EVFinePositioningSetupParametersType->SensorOrder.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- if(errn == 0) {
- errn = encodeNBitUnsignedInteger(stream, 8, (uint32_t)(v2gLFA_EVFinePositioningSetupParametersType->SensorOrder.array[v2gLFA_EVFinePositioningSetupParametersType_SensorOrder_currArrayIndex++] - 0));
- /* valid EE */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- }
- }
- grammarID = 1390;
- } else if ( 1 == 1 ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- if(errn == 0) {
- errn = encodeNBitUnsignedInteger(stream, 8, (uint32_t)(v2gLFA_EVFinePositioningSetupParametersType->SignalPulseDuration - 0));
- /* valid EE */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- }
- }
- grammarID = 1242;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 1390:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorOrder), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SignalPulseDuration)] */
- if (v2gLFA_EVFinePositioningSetupParametersType_SensorOrder_currArrayIndex < v2gLFA_EVFinePositioningSetupParametersType->SensorOrder.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- if(errn == 0) {
- errn = encodeNBitUnsignedInteger(stream, 8, (uint32_t)(v2gLFA_EVFinePositioningSetupParametersType->SensorOrder.array[v2gLFA_EVFinePositioningSetupParametersType_SensorOrder_currArrayIndex++] - 0));
- /* valid EE */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- }
- }
- grammarID = 1391;
- } else if ( 1 == 1 ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- if(errn == 0) {
- errn = encodeNBitUnsignedInteger(stream, 8, (uint32_t)(v2gLFA_EVFinePositioningSetupParametersType->SignalPulseDuration - 0));
- /* valid EE */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- }
- }
- grammarID = 1242;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 1391:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorOrder), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SignalPulseDuration)] */
- if (v2gLFA_EVFinePositioningSetupParametersType_SensorOrder_currArrayIndex < v2gLFA_EVFinePositioningSetupParametersType->SensorOrder.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- if(errn == 0) {
- errn = encodeNBitUnsignedInteger(stream, 8, (uint32_t)(v2gLFA_EVFinePositioningSetupParametersType->SensorOrder.array[v2gLFA_EVFinePositioningSetupParametersType_SensorOrder_currArrayIndex++] - 0));
- /* valid EE */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- }
- }
- grammarID = 1392;
- } else if ( 1 == 1 ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- if(errn == 0) {
- errn = encodeNBitUnsignedInteger(stream, 8, (uint32_t)(v2gLFA_EVFinePositioningSetupParametersType->SignalPulseDuration - 0));
- /* valid EE */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- }
- }
- grammarID = 1242;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 1392:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorOrder), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SignalPulseDuration)] */
- if (v2gLFA_EVFinePositioningSetupParametersType_SensorOrder_currArrayIndex < v2gLFA_EVFinePositioningSetupParametersType->SensorOrder.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- if(errn == 0) {
- errn = encodeNBitUnsignedInteger(stream, 8, (uint32_t)(v2gLFA_EVFinePositioningSetupParametersType->SensorOrder.array[v2gLFA_EVFinePositioningSetupParametersType_SensorOrder_currArrayIndex++] - 0));
- /* valid EE */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- }
- }
- grammarID = 1393;
- } else if ( 1 == 1 ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- if(errn == 0) {
- errn = encodeNBitUnsignedInteger(stream, 8, (uint32_t)(v2gLFA_EVFinePositioningSetupParametersType->SignalPulseDuration - 0));
- /* valid EE */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- }
- }
- grammarID = 1242;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 1393:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorOrder), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SignalPulseDuration)] */
- if (v2gLFA_EVFinePositioningSetupParametersType_SensorOrder_currArrayIndex < v2gLFA_EVFinePositioningSetupParametersType->SensorOrder.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- if(errn == 0) {
- errn = encodeNBitUnsignedInteger(stream, 8, (uint32_t)(v2gLFA_EVFinePositioningSetupParametersType->SensorOrder.array[v2gLFA_EVFinePositioningSetupParametersType_SensorOrder_currArrayIndex++] - 0));
- /* valid EE */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- }
- }
- grammarID = 1394;
- } else if ( 1 == 1 ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- if(errn == 0) {
- errn = encodeNBitUnsignedInteger(stream, 8, (uint32_t)(v2gLFA_EVFinePositioningSetupParametersType->SignalPulseDuration - 0));
- /* valid EE */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- }
- }
- grammarID = 1242;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 1394:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorOrder), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SignalPulseDuration)] */
- if (v2gLFA_EVFinePositioningSetupParametersType_SensorOrder_currArrayIndex < v2gLFA_EVFinePositioningSetupParametersType->SensorOrder.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- if(errn == 0) {
- errn = encodeNBitUnsignedInteger(stream, 8, (uint32_t)(v2gLFA_EVFinePositioningSetupParametersType->SensorOrder.array[v2gLFA_EVFinePositioningSetupParametersType_SensorOrder_currArrayIndex++] - 0));
- /* valid EE */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- }
- }
- grammarID = 1395;
- } else if ( 1 == 1 ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- if(errn == 0) {
- errn = encodeNBitUnsignedInteger(stream, 8, (uint32_t)(v2gLFA_EVFinePositioningSetupParametersType->SignalPulseDuration - 0));
- /* valid EE */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- }
- }
- grammarID = 1242;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 1395:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorOrder), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SignalPulseDuration)] */
- if (v2gLFA_EVFinePositioningSetupParametersType_SensorOrder_currArrayIndex < v2gLFA_EVFinePositioningSetupParametersType->SensorOrder.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- if(errn == 0) {
- errn = encodeNBitUnsignedInteger(stream, 8, (uint32_t)(v2gLFA_EVFinePositioningSetupParametersType->SensorOrder.array[v2gLFA_EVFinePositioningSetupParametersType_SensorOrder_currArrayIndex++] - 0));
- /* valid EE */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- }
- }
- grammarID = 1396;
- } else if ( 1 == 1 ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- if(errn == 0) {
- errn = encodeNBitUnsignedInteger(stream, 8, (uint32_t)(v2gLFA_EVFinePositioningSetupParametersType->SignalPulseDuration - 0));
- /* valid EE */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- }
- }
- grammarID = 1242;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 1396:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorOrder), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SignalPulseDuration)] */
- if (v2gLFA_EVFinePositioningSetupParametersType_SensorOrder_currArrayIndex < v2gLFA_EVFinePositioningSetupParametersType->SensorOrder.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- if(errn == 0) {
- errn = encodeNBitUnsignedInteger(stream, 8, (uint32_t)(v2gLFA_EVFinePositioningSetupParametersType->SensorOrder.array[v2gLFA_EVFinePositioningSetupParametersType_SensorOrder_currArrayIndex++] - 0));
- /* valid EE */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- }
- }
- grammarID = 1397;
- } else if ( 1 == 1 ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- if(errn == 0) {
- errn = encodeNBitUnsignedInteger(stream, 8, (uint32_t)(v2gLFA_EVFinePositioningSetupParametersType->SignalPulseDuration - 0));
- /* valid EE */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- }
- }
- grammarID = 1242;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 1397:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorOrder), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SignalPulseDuration)] */
- if (v2gLFA_EVFinePositioningSetupParametersType_SensorOrder_currArrayIndex < v2gLFA_EVFinePositioningSetupParametersType->SensorOrder.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- if(errn == 0) {
- errn = encodeNBitUnsignedInteger(stream, 8, (uint32_t)(v2gLFA_EVFinePositioningSetupParametersType->SensorOrder.array[v2gLFA_EVFinePositioningSetupParametersType_SensorOrder_currArrayIndex++] - 0));
- /* valid EE */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- }
- }
- grammarID = 1398;
- } else if ( 1 == 1 ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- if(errn == 0) {
- errn = encodeNBitUnsignedInteger(stream, 8, (uint32_t)(v2gLFA_EVFinePositioningSetupParametersType->SignalPulseDuration - 0));
- /* valid EE */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- }
- }
- grammarID = 1242;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 1398:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorOrder), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SignalPulseDuration)] */
- if (v2gLFA_EVFinePositioningSetupParametersType_SensorOrder_currArrayIndex < v2gLFA_EVFinePositioningSetupParametersType->SensorOrder.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- if(errn == 0) {
- errn = encodeNBitUnsignedInteger(stream, 8, (uint32_t)(v2gLFA_EVFinePositioningSetupParametersType->SensorOrder.array[v2gLFA_EVFinePositioningSetupParametersType_SensorOrder_currArrayIndex++] - 0));
- /* valid EE */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- }
- }
- grammarID = 1399;
- } else if ( 1 == 1 ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- if(errn == 0) {
- errn = encodeNBitUnsignedInteger(stream, 8, (uint32_t)(v2gLFA_EVFinePositioningSetupParametersType->SignalPulseDuration - 0));
- /* valid EE */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- }
- }
- grammarID = 1242;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 1399:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorOrder), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SignalPulseDuration)] */
- if (v2gLFA_EVFinePositioningSetupParametersType_SensorOrder_currArrayIndex < v2gLFA_EVFinePositioningSetupParametersType->SensorOrder.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- if(errn == 0) {
- errn = encodeNBitUnsignedInteger(stream, 8, (uint32_t)(v2gLFA_EVFinePositioningSetupParametersType->SensorOrder.array[v2gLFA_EVFinePositioningSetupParametersType_SensorOrder_currArrayIndex++] - 0));
- /* valid EE */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- }
- }
- grammarID = 1400;
- } else if ( 1 == 1 ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- if(errn == 0) {
- errn = encodeNBitUnsignedInteger(stream, 8, (uint32_t)(v2gLFA_EVFinePositioningSetupParametersType->SignalPulseDuration - 0));
- /* valid EE */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- }
- }
- grammarID = 1242;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 1400:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorOrder), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SignalPulseDuration)] */
- if (v2gLFA_EVFinePositioningSetupParametersType_SensorOrder_currArrayIndex < v2gLFA_EVFinePositioningSetupParametersType->SensorOrder.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- if(errn == 0) {
- errn = encodeNBitUnsignedInteger(stream, 8, (uint32_t)(v2gLFA_EVFinePositioningSetupParametersType->SensorOrder.array[v2gLFA_EVFinePositioningSetupParametersType_SensorOrder_currArrayIndex++] - 0));
- /* valid EE */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- }
- }
- grammarID = 1401;
- } else if ( 1 == 1 ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- if(errn == 0) {
- errn = encodeNBitUnsignedInteger(stream, 8, (uint32_t)(v2gLFA_EVFinePositioningSetupParametersType->SignalPulseDuration - 0));
- /* valid EE */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- }
- }
- grammarID = 1242;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 1401:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorOrder), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SignalPulseDuration)] */
- if (v2gLFA_EVFinePositioningSetupParametersType_SensorOrder_currArrayIndex < v2gLFA_EVFinePositioningSetupParametersType->SensorOrder.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- if(errn == 0) {
- errn = encodeNBitUnsignedInteger(stream, 8, (uint32_t)(v2gLFA_EVFinePositioningSetupParametersType->SensorOrder.array[v2gLFA_EVFinePositioningSetupParametersType_SensorOrder_currArrayIndex++] - 0));
- /* valid EE */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- }
- }
- grammarID = 1402;
- } else if ( 1 == 1 ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- if(errn == 0) {
- errn = encodeNBitUnsignedInteger(stream, 8, (uint32_t)(v2gLFA_EVFinePositioningSetupParametersType->SignalPulseDuration - 0));
- /* valid EE */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- }
- }
- grammarID = 1242;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 1402:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorOrder), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SignalPulseDuration)] */
- if (v2gLFA_EVFinePositioningSetupParametersType_SensorOrder_currArrayIndex < v2gLFA_EVFinePositioningSetupParametersType->SensorOrder.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- if(errn == 0) {
- errn = encodeNBitUnsignedInteger(stream, 8, (uint32_t)(v2gLFA_EVFinePositioningSetupParametersType->SensorOrder.array[v2gLFA_EVFinePositioningSetupParametersType_SensorOrder_currArrayIndex++] - 0));
- /* valid EE */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- }
- }
- grammarID = 1403;
- } else if ( 1 == 1 ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- if(errn == 0) {
- errn = encodeNBitUnsignedInteger(stream, 8, (uint32_t)(v2gLFA_EVFinePositioningSetupParametersType->SignalPulseDuration - 0));
- /* valid EE */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- }
- }
- grammarID = 1242;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 1403:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorOrder), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SignalPulseDuration)] */
- if (v2gLFA_EVFinePositioningSetupParametersType_SensorOrder_currArrayIndex < v2gLFA_EVFinePositioningSetupParametersType->SensorOrder.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- if(errn == 0) {
- errn = encodeNBitUnsignedInteger(stream, 8, (uint32_t)(v2gLFA_EVFinePositioningSetupParametersType->SensorOrder.array[v2gLFA_EVFinePositioningSetupParametersType_SensorOrder_currArrayIndex++] - 0));
- /* valid EE */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- }
- }
- grammarID = 1404;
- } else if ( 1 == 1 ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- if(errn == 0) {
- errn = encodeNBitUnsignedInteger(stream, 8, (uint32_t)(v2gLFA_EVFinePositioningSetupParametersType->SignalPulseDuration - 0));
- /* valid EE */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- }
- }
- grammarID = 1242;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 1404:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorOrder), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SignalPulseDuration)] */
- if (v2gLFA_EVFinePositioningSetupParametersType_SensorOrder_currArrayIndex < v2gLFA_EVFinePositioningSetupParametersType->SensorOrder.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- if(errn == 0) {
- errn = encodeNBitUnsignedInteger(stream, 8, (uint32_t)(v2gLFA_EVFinePositioningSetupParametersType->SensorOrder.array[v2gLFA_EVFinePositioningSetupParametersType_SensorOrder_currArrayIndex++] - 0));
- /* valid EE */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- }
- }
- grammarID = 1405;
- } else if ( 1 == 1 ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- if(errn == 0) {
- errn = encodeNBitUnsignedInteger(stream, 8, (uint32_t)(v2gLFA_EVFinePositioningSetupParametersType->SignalPulseDuration - 0));
- /* valid EE */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- }
- }
- grammarID = 1242;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 1405:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorOrder), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SignalPulseDuration)] */
- if (v2gLFA_EVFinePositioningSetupParametersType_SensorOrder_currArrayIndex < v2gLFA_EVFinePositioningSetupParametersType->SensorOrder.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- if(errn == 0) {
- errn = encodeNBitUnsignedInteger(stream, 8, (uint32_t)(v2gLFA_EVFinePositioningSetupParametersType->SensorOrder.array[v2gLFA_EVFinePositioningSetupParametersType_SensorOrder_currArrayIndex++] - 0));
- /* valid EE */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- }
- }
- grammarID = 1406;
- } else if ( 1 == 1 ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- if(errn == 0) {
- errn = encodeNBitUnsignedInteger(stream, 8, (uint32_t)(v2gLFA_EVFinePositioningSetupParametersType->SignalPulseDuration - 0));
- /* valid EE */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- }
- }
- grammarID = 1242;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 1406:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorOrder), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SignalPulseDuration)] */
- if (v2gLFA_EVFinePositioningSetupParametersType_SensorOrder_currArrayIndex < v2gLFA_EVFinePositioningSetupParametersType->SensorOrder.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- if(errn == 0) {
- errn = encodeNBitUnsignedInteger(stream, 8, (uint32_t)(v2gLFA_EVFinePositioningSetupParametersType->SensorOrder.array[v2gLFA_EVFinePositioningSetupParametersType_SensorOrder_currArrayIndex++] - 0));
- /* valid EE */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- }
- }
- grammarID = 1407;
- } else if ( 1 == 1 ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- if(errn == 0) {
- errn = encodeNBitUnsignedInteger(stream, 8, (uint32_t)(v2gLFA_EVFinePositioningSetupParametersType->SignalPulseDuration - 0));
- /* valid EE */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- }
- }
- grammarID = 1242;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 1407:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorOrder), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SignalPulseDuration)] */
- if (v2gLFA_EVFinePositioningSetupParametersType_SensorOrder_currArrayIndex < v2gLFA_EVFinePositioningSetupParametersType->SensorOrder.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- if(errn == 0) {
- errn = encodeNBitUnsignedInteger(stream, 8, (uint32_t)(v2gLFA_EVFinePositioningSetupParametersType->SensorOrder.array[v2gLFA_EVFinePositioningSetupParametersType_SensorOrder_currArrayIndex++] - 0));
- /* valid EE */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- }
- }
- grammarID = 1408;
- } else if ( 1 == 1 ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- if(errn == 0) {
- errn = encodeNBitUnsignedInteger(stream, 8, (uint32_t)(v2gLFA_EVFinePositioningSetupParametersType->SignalPulseDuration - 0));
- /* valid EE */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- }
- }
- grammarID = 1242;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 1408:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorOrder), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SignalPulseDuration)] */
- if (v2gLFA_EVFinePositioningSetupParametersType_SensorOrder_currArrayIndex < v2gLFA_EVFinePositioningSetupParametersType->SensorOrder.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- if(errn == 0) {
- errn = encodeNBitUnsignedInteger(stream, 8, (uint32_t)(v2gLFA_EVFinePositioningSetupParametersType->SensorOrder.array[v2gLFA_EVFinePositioningSetupParametersType_SensorOrder_currArrayIndex++] - 0));
- /* valid EE */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- }
- }
- grammarID = 1409;
- } else if ( 1 == 1 ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- if(errn == 0) {
- errn = encodeNBitUnsignedInteger(stream, 8, (uint32_t)(v2gLFA_EVFinePositioningSetupParametersType->SignalPulseDuration - 0));
- /* valid EE */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- }
- }
- grammarID = 1242;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 1409:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorOrder), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SignalPulseDuration)] */
- if (v2gLFA_EVFinePositioningSetupParametersType_SensorOrder_currArrayIndex < v2gLFA_EVFinePositioningSetupParametersType->SensorOrder.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- if(errn == 0) {
- errn = encodeNBitUnsignedInteger(stream, 8, (uint32_t)(v2gLFA_EVFinePositioningSetupParametersType->SensorOrder.array[v2gLFA_EVFinePositioningSetupParametersType_SensorOrder_currArrayIndex++] - 0));
- /* valid EE */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- }
- }
- grammarID = 1410;
- } else if ( 1 == 1 ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- if(errn == 0) {
- errn = encodeNBitUnsignedInteger(stream, 8, (uint32_t)(v2gLFA_EVFinePositioningSetupParametersType->SignalPulseDuration - 0));
- /* valid EE */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- }
- }
- grammarID = 1242;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 1410:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorOrder), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SignalPulseDuration)] */
- if (v2gLFA_EVFinePositioningSetupParametersType_SensorOrder_currArrayIndex < v2gLFA_EVFinePositioningSetupParametersType->SensorOrder.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- if(errn == 0) {
- errn = encodeNBitUnsignedInteger(stream, 8, (uint32_t)(v2gLFA_EVFinePositioningSetupParametersType->SensorOrder.array[v2gLFA_EVFinePositioningSetupParametersType_SensorOrder_currArrayIndex++] - 0));
- /* valid EE */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- }
- }
- grammarID = 1411;
- } else if ( 1 == 1 ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- if(errn == 0) {
- errn = encodeNBitUnsignedInteger(stream, 8, (uint32_t)(v2gLFA_EVFinePositioningSetupParametersType->SignalPulseDuration - 0));
- /* valid EE */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- }
- }
- grammarID = 1242;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 1411:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorOrder), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SignalPulseDuration)] */
- if (v2gLFA_EVFinePositioningSetupParametersType_SensorOrder_currArrayIndex < v2gLFA_EVFinePositioningSetupParametersType->SensorOrder.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- if(errn == 0) {
- errn = encodeNBitUnsignedInteger(stream, 8, (uint32_t)(v2gLFA_EVFinePositioningSetupParametersType->SensorOrder.array[v2gLFA_EVFinePositioningSetupParametersType_SensorOrder_currArrayIndex++] - 0));
- /* valid EE */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- }
- }
- grammarID = 1412;
- } else if ( 1 == 1 ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- if(errn == 0) {
- errn = encodeNBitUnsignedInteger(stream, 8, (uint32_t)(v2gLFA_EVFinePositioningSetupParametersType->SignalPulseDuration - 0));
- /* valid EE */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- }
- }
- grammarID = 1242;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 1412:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorOrder), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SignalPulseDuration)] */
- if (v2gLFA_EVFinePositioningSetupParametersType_SensorOrder_currArrayIndex < v2gLFA_EVFinePositioningSetupParametersType->SensorOrder.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- if(errn == 0) {
- errn = encodeNBitUnsignedInteger(stream, 8, (uint32_t)(v2gLFA_EVFinePositioningSetupParametersType->SensorOrder.array[v2gLFA_EVFinePositioningSetupParametersType_SensorOrder_currArrayIndex++] - 0));
- /* valid EE */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- }
- }
- grammarID = 1413;
- } else if ( 1 == 1 ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- if(errn == 0) {
- errn = encodeNBitUnsignedInteger(stream, 8, (uint32_t)(v2gLFA_EVFinePositioningSetupParametersType->SignalPulseDuration - 0));
- /* valid EE */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- }
- }
- grammarID = 1242;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 1413:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorOrder), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SignalPulseDuration)] */
- if (v2gLFA_EVFinePositioningSetupParametersType_SensorOrder_currArrayIndex < v2gLFA_EVFinePositioningSetupParametersType->SensorOrder.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- if(errn == 0) {
- errn = encodeNBitUnsignedInteger(stream, 8, (uint32_t)(v2gLFA_EVFinePositioningSetupParametersType->SensorOrder.array[v2gLFA_EVFinePositioningSetupParametersType_SensorOrder_currArrayIndex++] - 0));
- /* valid EE */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- }
- }
- grammarID = 1414;
- } else if ( 1 == 1 ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- if(errn == 0) {
- errn = encodeNBitUnsignedInteger(stream, 8, (uint32_t)(v2gLFA_EVFinePositioningSetupParametersType->SignalPulseDuration - 0));
- /* valid EE */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- }
- }
- grammarID = 1242;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 1414:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorOrder), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SignalPulseDuration)] */
- if (v2gLFA_EVFinePositioningSetupParametersType_SensorOrder_currArrayIndex < v2gLFA_EVFinePositioningSetupParametersType->SensorOrder.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- if(errn == 0) {
- errn = encodeNBitUnsignedInteger(stream, 8, (uint32_t)(v2gLFA_EVFinePositioningSetupParametersType->SensorOrder.array[v2gLFA_EVFinePositioningSetupParametersType_SensorOrder_currArrayIndex++] - 0));
- /* valid EE */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- }
- }
- grammarID = 1415;
- } else if ( 1 == 1 ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- if(errn == 0) {
- errn = encodeNBitUnsignedInteger(stream, 8, (uint32_t)(v2gLFA_EVFinePositioningSetupParametersType->SignalPulseDuration - 0));
- /* valid EE */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- }
- }
- grammarID = 1242;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 1415:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorOrder), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SignalPulseDuration)] */
- if (v2gLFA_EVFinePositioningSetupParametersType_SensorOrder_currArrayIndex < v2gLFA_EVFinePositioningSetupParametersType->SensorOrder.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- if(errn == 0) {
- errn = encodeNBitUnsignedInteger(stream, 8, (uint32_t)(v2gLFA_EVFinePositioningSetupParametersType->SensorOrder.array[v2gLFA_EVFinePositioningSetupParametersType_SensorOrder_currArrayIndex++] - 0));
- /* valid EE */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- }
- }
- grammarID = 1416;
- } else if ( 1 == 1 ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- if(errn == 0) {
- errn = encodeNBitUnsignedInteger(stream, 8, (uint32_t)(v2gLFA_EVFinePositioningSetupParametersType->SignalPulseDuration - 0));
- /* valid EE */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- }
- }
- grammarID = 1242;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 1416:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorOrder), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SignalPulseDuration)] */
- if (v2gLFA_EVFinePositioningSetupParametersType_SensorOrder_currArrayIndex < v2gLFA_EVFinePositioningSetupParametersType->SensorOrder.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- if(errn == 0) {
- errn = encodeNBitUnsignedInteger(stream, 8, (uint32_t)(v2gLFA_EVFinePositioningSetupParametersType->SensorOrder.array[v2gLFA_EVFinePositioningSetupParametersType_SensorOrder_currArrayIndex++] - 0));
- /* valid EE */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- }
- }
- grammarID = 1417;
- } else if ( 1 == 1 ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- if(errn == 0) {
- errn = encodeNBitUnsignedInteger(stream, 8, (uint32_t)(v2gLFA_EVFinePositioningSetupParametersType->SignalPulseDuration - 0));
- /* valid EE */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- }
- }
- grammarID = 1242;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 1417:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorOrder), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SignalPulseDuration)] */
- if (v2gLFA_EVFinePositioningSetupParametersType_SensorOrder_currArrayIndex < v2gLFA_EVFinePositioningSetupParametersType->SensorOrder.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- if(errn == 0) {
- errn = encodeNBitUnsignedInteger(stream, 8, (uint32_t)(v2gLFA_EVFinePositioningSetupParametersType->SensorOrder.array[v2gLFA_EVFinePositioningSetupParametersType_SensorOrder_currArrayIndex++] - 0));
- /* valid EE */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- }
- }
- grammarID = 1418;
- } else if ( 1 == 1 ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- if(errn == 0) {
- errn = encodeNBitUnsignedInteger(stream, 8, (uint32_t)(v2gLFA_EVFinePositioningSetupParametersType->SignalPulseDuration - 0));
- /* valid EE */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- }
- }
- grammarID = 1242;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 1418:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorOrder), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SignalPulseDuration)] */
- if (v2gLFA_EVFinePositioningSetupParametersType_SensorOrder_currArrayIndex < v2gLFA_EVFinePositioningSetupParametersType->SensorOrder.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- if(errn == 0) {
- errn = encodeNBitUnsignedInteger(stream, 8, (uint32_t)(v2gLFA_EVFinePositioningSetupParametersType->SensorOrder.array[v2gLFA_EVFinePositioningSetupParametersType_SensorOrder_currArrayIndex++] - 0));
- /* valid EE */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- }
- }
- grammarID = 1419;
- } else if ( 1 == 1 ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- if(errn == 0) {
- errn = encodeNBitUnsignedInteger(stream, 8, (uint32_t)(v2gLFA_EVFinePositioningSetupParametersType->SignalPulseDuration - 0));
- /* valid EE */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- }
- }
- grammarID = 1242;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 1419:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorOrder), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SignalPulseDuration)] */
- if (v2gLFA_EVFinePositioningSetupParametersType_SensorOrder_currArrayIndex < v2gLFA_EVFinePositioningSetupParametersType->SensorOrder.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- if(errn == 0) {
- errn = encodeNBitUnsignedInteger(stream, 8, (uint32_t)(v2gLFA_EVFinePositioningSetupParametersType->SensorOrder.array[v2gLFA_EVFinePositioningSetupParametersType_SensorOrder_currArrayIndex++] - 0));
- /* valid EE */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- }
- }
- grammarID = 1420;
- } else if ( 1 == 1 ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- if(errn == 0) {
- errn = encodeNBitUnsignedInteger(stream, 8, (uint32_t)(v2gLFA_EVFinePositioningSetupParametersType->SignalPulseDuration - 0));
- /* valid EE */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- }
- }
- grammarID = 1242;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 1420:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorOrder), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SignalPulseDuration)] */
- if (v2gLFA_EVFinePositioningSetupParametersType_SensorOrder_currArrayIndex < v2gLFA_EVFinePositioningSetupParametersType->SensorOrder.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- if(errn == 0) {
- errn = encodeNBitUnsignedInteger(stream, 8, (uint32_t)(v2gLFA_EVFinePositioningSetupParametersType->SensorOrder.array[v2gLFA_EVFinePositioningSetupParametersType_SensorOrder_currArrayIndex++] - 0));
- /* valid EE */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- }
- }
- grammarID = 1421;
- } else if ( 1 == 1 ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- if(errn == 0) {
- errn = encodeNBitUnsignedInteger(stream, 8, (uint32_t)(v2gLFA_EVFinePositioningSetupParametersType->SignalPulseDuration - 0));
- /* valid EE */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- }
- }
- grammarID = 1242;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 1421:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorOrder), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SignalPulseDuration)] */
- if (v2gLFA_EVFinePositioningSetupParametersType_SensorOrder_currArrayIndex < v2gLFA_EVFinePositioningSetupParametersType->SensorOrder.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- if(errn == 0) {
- errn = encodeNBitUnsignedInteger(stream, 8, (uint32_t)(v2gLFA_EVFinePositioningSetupParametersType->SensorOrder.array[v2gLFA_EVFinePositioningSetupParametersType_SensorOrder_currArrayIndex++] - 0));
- /* valid EE */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- }
- }
- grammarID = 1422;
- } else if ( 1 == 1 ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- if(errn == 0) {
- errn = encodeNBitUnsignedInteger(stream, 8, (uint32_t)(v2gLFA_EVFinePositioningSetupParametersType->SignalPulseDuration - 0));
- /* valid EE */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- }
- }
- grammarID = 1242;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 1422:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorOrder), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SignalPulseDuration)] */
- if (v2gLFA_EVFinePositioningSetupParametersType_SensorOrder_currArrayIndex < v2gLFA_EVFinePositioningSetupParametersType->SensorOrder.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- if(errn == 0) {
- errn = encodeNBitUnsignedInteger(stream, 8, (uint32_t)(v2gLFA_EVFinePositioningSetupParametersType->SensorOrder.array[v2gLFA_EVFinePositioningSetupParametersType_SensorOrder_currArrayIndex++] - 0));
- /* valid EE */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- }
- }
- grammarID = 1423;
- } else if ( 1 == 1 ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- if(errn == 0) {
- errn = encodeNBitUnsignedInteger(stream, 8, (uint32_t)(v2gLFA_EVFinePositioningSetupParametersType->SignalPulseDuration - 0));
- /* valid EE */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- }
- }
- grammarID = 1242;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 1423:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorOrder), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SignalPulseDuration)] */
- if (v2gLFA_EVFinePositioningSetupParametersType_SensorOrder_currArrayIndex < v2gLFA_EVFinePositioningSetupParametersType->SensorOrder.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- if(errn == 0) {
- errn = encodeNBitUnsignedInteger(stream, 8, (uint32_t)(v2gLFA_EVFinePositioningSetupParametersType->SensorOrder.array[v2gLFA_EVFinePositioningSetupParametersType_SensorOrder_currArrayIndex++] - 0));
- /* valid EE */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- }
- }
- grammarID = 1424;
- } else if ( 1 == 1 ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- if(errn == 0) {
- errn = encodeNBitUnsignedInteger(stream, 8, (uint32_t)(v2gLFA_EVFinePositioningSetupParametersType->SignalPulseDuration - 0));
- /* valid EE */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- }
- }
- grammarID = 1242;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 1424:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorOrder), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SignalPulseDuration)] */
- if (v2gLFA_EVFinePositioningSetupParametersType_SensorOrder_currArrayIndex < v2gLFA_EVFinePositioningSetupParametersType->SensorOrder.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- if(errn == 0) {
- errn = encodeNBitUnsignedInteger(stream, 8, (uint32_t)(v2gLFA_EVFinePositioningSetupParametersType->SensorOrder.array[v2gLFA_EVFinePositioningSetupParametersType_SensorOrder_currArrayIndex++] - 0));
- /* valid EE */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- }
- }
- grammarID = 1425;
- } else if ( 1 == 1 ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- if(errn == 0) {
- errn = encodeNBitUnsignedInteger(stream, 8, (uint32_t)(v2gLFA_EVFinePositioningSetupParametersType->SignalPulseDuration - 0));
- /* valid EE */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- }
- }
- grammarID = 1242;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 1425:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorOrder), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SignalPulseDuration)] */
- if (v2gLFA_EVFinePositioningSetupParametersType_SensorOrder_currArrayIndex < v2gLFA_EVFinePositioningSetupParametersType->SensorOrder.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- if(errn == 0) {
- errn = encodeNBitUnsignedInteger(stream, 8, (uint32_t)(v2gLFA_EVFinePositioningSetupParametersType->SensorOrder.array[v2gLFA_EVFinePositioningSetupParametersType_SensorOrder_currArrayIndex++] - 0));
- /* valid EE */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- }
- }
- grammarID = 1426;
- } else if ( 1 == 1 ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- if(errn == 0) {
- errn = encodeNBitUnsignedInteger(stream, 8, (uint32_t)(v2gLFA_EVFinePositioningSetupParametersType->SignalPulseDuration - 0));
- /* valid EE */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- }
- }
- grammarID = 1242;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 1426:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorOrder), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SignalPulseDuration)] */
- if (v2gLFA_EVFinePositioningSetupParametersType_SensorOrder_currArrayIndex < v2gLFA_EVFinePositioningSetupParametersType->SensorOrder.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- if(errn == 0) {
- errn = encodeNBitUnsignedInteger(stream, 8, (uint32_t)(v2gLFA_EVFinePositioningSetupParametersType->SensorOrder.array[v2gLFA_EVFinePositioningSetupParametersType_SensorOrder_currArrayIndex++] - 0));
- /* valid EE */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- }
- }
- grammarID = 1427;
- } else if ( 1 == 1 ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- if(errn == 0) {
- errn = encodeNBitUnsignedInteger(stream, 8, (uint32_t)(v2gLFA_EVFinePositioningSetupParametersType->SignalPulseDuration - 0));
- /* valid EE */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- }
- }
- grammarID = 1242;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 1427:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorOrder), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SignalPulseDuration)] */
- if (v2gLFA_EVFinePositioningSetupParametersType_SensorOrder_currArrayIndex < v2gLFA_EVFinePositioningSetupParametersType->SensorOrder.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- if(errn == 0) {
- errn = encodeNBitUnsignedInteger(stream, 8, (uint32_t)(v2gLFA_EVFinePositioningSetupParametersType->SensorOrder.array[v2gLFA_EVFinePositioningSetupParametersType_SensorOrder_currArrayIndex++] - 0));
- /* valid EE */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- }
- }
- grammarID = 1428;
- } else if ( 1 == 1 ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- if(errn == 0) {
- errn = encodeNBitUnsignedInteger(stream, 8, (uint32_t)(v2gLFA_EVFinePositioningSetupParametersType->SignalPulseDuration - 0));
- /* valid EE */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- }
- }
- grammarID = 1242;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 1428:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorOrder), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SignalPulseDuration)] */
- if (v2gLFA_EVFinePositioningSetupParametersType_SensorOrder_currArrayIndex < v2gLFA_EVFinePositioningSetupParametersType->SensorOrder.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- if(errn == 0) {
- errn = encodeNBitUnsignedInteger(stream, 8, (uint32_t)(v2gLFA_EVFinePositioningSetupParametersType->SensorOrder.array[v2gLFA_EVFinePositioningSetupParametersType_SensorOrder_currArrayIndex++] - 0));
- /* valid EE */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- }
- }
- grammarID = 1429;
- } else if ( 1 == 1 ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- if(errn == 0) {
- errn = encodeNBitUnsignedInteger(stream, 8, (uint32_t)(v2gLFA_EVFinePositioningSetupParametersType->SignalPulseDuration - 0));
- /* valid EE */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- }
- }
- grammarID = 1242;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 1429:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorOrder), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SignalPulseDuration)] */
- if (v2gLFA_EVFinePositioningSetupParametersType_SensorOrder_currArrayIndex < v2gLFA_EVFinePositioningSetupParametersType->SensorOrder.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- if(errn == 0) {
- errn = encodeNBitUnsignedInteger(stream, 8, (uint32_t)(v2gLFA_EVFinePositioningSetupParametersType->SensorOrder.array[v2gLFA_EVFinePositioningSetupParametersType_SensorOrder_currArrayIndex++] - 0));
- /* valid EE */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- }
- }
- grammarID = 1430;
- } else if ( 1 == 1 ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- if(errn == 0) {
- errn = encodeNBitUnsignedInteger(stream, 8, (uint32_t)(v2gLFA_EVFinePositioningSetupParametersType->SignalPulseDuration - 0));
- /* valid EE */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- }
- }
- grammarID = 1242;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 1430:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorOrder), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SignalPulseDuration)] */
- if (v2gLFA_EVFinePositioningSetupParametersType_SensorOrder_currArrayIndex < v2gLFA_EVFinePositioningSetupParametersType->SensorOrder.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- if(errn == 0) {
- errn = encodeNBitUnsignedInteger(stream, 8, (uint32_t)(v2gLFA_EVFinePositioningSetupParametersType->SensorOrder.array[v2gLFA_EVFinePositioningSetupParametersType_SensorOrder_currArrayIndex++] - 0));
- /* valid EE */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- }
- }
- grammarID = 1431;
- } else if ( 1 == 1 ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- if(errn == 0) {
- errn = encodeNBitUnsignedInteger(stream, 8, (uint32_t)(v2gLFA_EVFinePositioningSetupParametersType->SignalPulseDuration - 0));
- /* valid EE */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- }
- }
- grammarID = 1242;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 1431:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorOrder), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SignalPulseDuration)] */
- if (v2gLFA_EVFinePositioningSetupParametersType_SensorOrder_currArrayIndex < v2gLFA_EVFinePositioningSetupParametersType->SensorOrder.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- if(errn == 0) {
- errn = encodeNBitUnsignedInteger(stream, 8, (uint32_t)(v2gLFA_EVFinePositioningSetupParametersType->SensorOrder.array[v2gLFA_EVFinePositioningSetupParametersType_SensorOrder_currArrayIndex++] - 0));
- /* valid EE */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- }
- }
- grammarID = 1432;
- } else if ( 1 == 1 ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- if(errn == 0) {
- errn = encodeNBitUnsignedInteger(stream, 8, (uint32_t)(v2gLFA_EVFinePositioningSetupParametersType->SignalPulseDuration - 0));
- /* valid EE */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- }
- }
- grammarID = 1242;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 1432:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorOrder), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SignalPulseDuration)] */
- if (v2gLFA_EVFinePositioningSetupParametersType_SensorOrder_currArrayIndex < v2gLFA_EVFinePositioningSetupParametersType->SensorOrder.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- if(errn == 0) {
- errn = encodeNBitUnsignedInteger(stream, 8, (uint32_t)(v2gLFA_EVFinePositioningSetupParametersType->SensorOrder.array[v2gLFA_EVFinePositioningSetupParametersType_SensorOrder_currArrayIndex++] - 0));
- /* valid EE */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- }
- }
- grammarID = 1433;
- } else if ( 1 == 1 ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- if(errn == 0) {
- errn = encodeNBitUnsignedInteger(stream, 8, (uint32_t)(v2gLFA_EVFinePositioningSetupParametersType->SignalPulseDuration - 0));
- /* valid EE */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- }
- }
- grammarID = 1242;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 1433:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorOrder), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SignalPulseDuration)] */
- if (v2gLFA_EVFinePositioningSetupParametersType_SensorOrder_currArrayIndex < v2gLFA_EVFinePositioningSetupParametersType->SensorOrder.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- if(errn == 0) {
- errn = encodeNBitUnsignedInteger(stream, 8, (uint32_t)(v2gLFA_EVFinePositioningSetupParametersType->SensorOrder.array[v2gLFA_EVFinePositioningSetupParametersType_SensorOrder_currArrayIndex++] - 0));
- /* valid EE */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- }
- }
- grammarID = 1434;
- } else if ( 1 == 1 ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- if(errn == 0) {
- errn = encodeNBitUnsignedInteger(stream, 8, (uint32_t)(v2gLFA_EVFinePositioningSetupParametersType->SignalPulseDuration - 0));
- /* valid EE */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- }
- }
- grammarID = 1242;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 1434:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorOrder), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SignalPulseDuration)] */
- if (v2gLFA_EVFinePositioningSetupParametersType_SensorOrder_currArrayIndex < v2gLFA_EVFinePositioningSetupParametersType->SensorOrder.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- if(errn == 0) {
- errn = encodeNBitUnsignedInteger(stream, 8, (uint32_t)(v2gLFA_EVFinePositioningSetupParametersType->SensorOrder.array[v2gLFA_EVFinePositioningSetupParametersType_SensorOrder_currArrayIndex++] - 0));
- /* valid EE */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- }
- }
- grammarID = 1435;
- } else if ( 1 == 1 ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- if(errn == 0) {
- errn = encodeNBitUnsignedInteger(stream, 8, (uint32_t)(v2gLFA_EVFinePositioningSetupParametersType->SignalPulseDuration - 0));
- /* valid EE */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- }
- }
- grammarID = 1242;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 1435:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorOrder), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SignalPulseDuration)] */
- if (v2gLFA_EVFinePositioningSetupParametersType_SensorOrder_currArrayIndex < v2gLFA_EVFinePositioningSetupParametersType->SensorOrder.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- if(errn == 0) {
- errn = encodeNBitUnsignedInteger(stream, 8, (uint32_t)(v2gLFA_EVFinePositioningSetupParametersType->SensorOrder.array[v2gLFA_EVFinePositioningSetupParametersType_SensorOrder_currArrayIndex++] - 0));
- /* valid EE */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- }
- }
- grammarID = 1436;
- } else if ( 1 == 1 ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- if(errn == 0) {
- errn = encodeNBitUnsignedInteger(stream, 8, (uint32_t)(v2gLFA_EVFinePositioningSetupParametersType->SignalPulseDuration - 0));
- /* valid EE */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- }
- }
- grammarID = 1242;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 1436:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorOrder), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SignalPulseDuration)] */
- if (v2gLFA_EVFinePositioningSetupParametersType_SensorOrder_currArrayIndex < v2gLFA_EVFinePositioningSetupParametersType->SensorOrder.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- if(errn == 0) {
- errn = encodeNBitUnsignedInteger(stream, 8, (uint32_t)(v2gLFA_EVFinePositioningSetupParametersType->SensorOrder.array[v2gLFA_EVFinePositioningSetupParametersType_SensorOrder_currArrayIndex++] - 0));
- /* valid EE */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- }
- }
- grammarID = 1437;
- } else if ( 1 == 1 ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- if(errn == 0) {
- errn = encodeNBitUnsignedInteger(stream, 8, (uint32_t)(v2gLFA_EVFinePositioningSetupParametersType->SignalPulseDuration - 0));
- /* valid EE */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- }
- }
- grammarID = 1242;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 1437:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorOrder), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SignalPulseDuration)] */
- if (v2gLFA_EVFinePositioningSetupParametersType_SensorOrder_currArrayIndex < v2gLFA_EVFinePositioningSetupParametersType->SensorOrder.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- if(errn == 0) {
- errn = encodeNBitUnsignedInteger(stream, 8, (uint32_t)(v2gLFA_EVFinePositioningSetupParametersType->SensorOrder.array[v2gLFA_EVFinePositioningSetupParametersType_SensorOrder_currArrayIndex++] - 0));
- /* valid EE */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- }
- }
- grammarID = 1438;
- } else if ( 1 == 1 ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- if(errn == 0) {
- errn = encodeNBitUnsignedInteger(stream, 8, (uint32_t)(v2gLFA_EVFinePositioningSetupParametersType->SignalPulseDuration - 0));
- /* valid EE */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- }
- }
- grammarID = 1242;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 1438:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorOrder), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SignalPulseDuration)] */
- if (v2gLFA_EVFinePositioningSetupParametersType_SensorOrder_currArrayIndex < v2gLFA_EVFinePositioningSetupParametersType->SensorOrder.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- if(errn == 0) {
- errn = encodeNBitUnsignedInteger(stream, 8, (uint32_t)(v2gLFA_EVFinePositioningSetupParametersType->SensorOrder.array[v2gLFA_EVFinePositioningSetupParametersType_SensorOrder_currArrayIndex++] - 0));
- /* valid EE */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- }
- }
- grammarID = 1439;
- } else if ( 1 == 1 ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- if(errn == 0) {
- errn = encodeNBitUnsignedInteger(stream, 8, (uint32_t)(v2gLFA_EVFinePositioningSetupParametersType->SignalPulseDuration - 0));
- /* valid EE */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- }
- }
- grammarID = 1242;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 1439:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorOrder), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SignalPulseDuration)] */
- if (v2gLFA_EVFinePositioningSetupParametersType_SensorOrder_currArrayIndex < v2gLFA_EVFinePositioningSetupParametersType->SensorOrder.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- if(errn == 0) {
- errn = encodeNBitUnsignedInteger(stream, 8, (uint32_t)(v2gLFA_EVFinePositioningSetupParametersType->SensorOrder.array[v2gLFA_EVFinePositioningSetupParametersType_SensorOrder_currArrayIndex++] - 0));
- /* valid EE */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- }
- }
- grammarID = 1440;
- } else if ( 1 == 1 ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- if(errn == 0) {
- errn = encodeNBitUnsignedInteger(stream, 8, (uint32_t)(v2gLFA_EVFinePositioningSetupParametersType->SignalPulseDuration - 0));
- /* valid EE */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- }
- }
- grammarID = 1242;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 1440:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorOrder), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SignalPulseDuration)] */
- if (v2gLFA_EVFinePositioningSetupParametersType_SensorOrder_currArrayIndex < v2gLFA_EVFinePositioningSetupParametersType->SensorOrder.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- if(errn == 0) {
- errn = encodeNBitUnsignedInteger(stream, 8, (uint32_t)(v2gLFA_EVFinePositioningSetupParametersType->SensorOrder.array[v2gLFA_EVFinePositioningSetupParametersType_SensorOrder_currArrayIndex++] - 0));
- /* valid EE */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- }
- }
- grammarID = 1441;
- } else if ( 1 == 1 ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- if(errn == 0) {
- errn = encodeNBitUnsignedInteger(stream, 8, (uint32_t)(v2gLFA_EVFinePositioningSetupParametersType->SignalPulseDuration - 0));
- /* valid EE */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- }
- }
- grammarID = 1242;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 1441:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorOrder), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SignalPulseDuration)] */
- if (v2gLFA_EVFinePositioningSetupParametersType_SensorOrder_currArrayIndex < v2gLFA_EVFinePositioningSetupParametersType->SensorOrder.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- if(errn == 0) {
- errn = encodeNBitUnsignedInteger(stream, 8, (uint32_t)(v2gLFA_EVFinePositioningSetupParametersType->SensorOrder.array[v2gLFA_EVFinePositioningSetupParametersType_SensorOrder_currArrayIndex++] - 0));
- /* valid EE */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- }
- }
- grammarID = 1442;
- } else if ( 1 == 1 ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- if(errn == 0) {
- errn = encodeNBitUnsignedInteger(stream, 8, (uint32_t)(v2gLFA_EVFinePositioningSetupParametersType->SignalPulseDuration - 0));
- /* valid EE */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- }
- }
- grammarID = 1242;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 1442:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorOrder), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SignalPulseDuration)] */
- if (v2gLFA_EVFinePositioningSetupParametersType_SensorOrder_currArrayIndex < v2gLFA_EVFinePositioningSetupParametersType->SensorOrder.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- if(errn == 0) {
- errn = encodeNBitUnsignedInteger(stream, 8, (uint32_t)(v2gLFA_EVFinePositioningSetupParametersType->SensorOrder.array[v2gLFA_EVFinePositioningSetupParametersType_SensorOrder_currArrayIndex++] - 0));
- /* valid EE */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- }
- }
- grammarID = 1443;
- } else if ( 1 == 1 ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- if(errn == 0) {
- errn = encodeNBitUnsignedInteger(stream, 8, (uint32_t)(v2gLFA_EVFinePositioningSetupParametersType->SignalPulseDuration - 0));
- /* valid EE */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- }
- }
- grammarID = 1242;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 1443:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorOrder), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SignalPulseDuration)] */
- if (v2gLFA_EVFinePositioningSetupParametersType_SensorOrder_currArrayIndex < v2gLFA_EVFinePositioningSetupParametersType->SensorOrder.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- if(errn == 0) {
- errn = encodeNBitUnsignedInteger(stream, 8, (uint32_t)(v2gLFA_EVFinePositioningSetupParametersType->SensorOrder.array[v2gLFA_EVFinePositioningSetupParametersType_SensorOrder_currArrayIndex++] - 0));
- /* valid EE */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- }
- }
- grammarID = 1444;
- } else if ( 1 == 1 ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- if(errn == 0) {
- errn = encodeNBitUnsignedInteger(stream, 8, (uint32_t)(v2gLFA_EVFinePositioningSetupParametersType->SignalPulseDuration - 0));
- /* valid EE */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- }
- }
- grammarID = 1242;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 1444:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorOrder), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SignalPulseDuration)] */
- if (v2gLFA_EVFinePositioningSetupParametersType_SensorOrder_currArrayIndex < v2gLFA_EVFinePositioningSetupParametersType->SensorOrder.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- if(errn == 0) {
- errn = encodeNBitUnsignedInteger(stream, 8, (uint32_t)(v2gLFA_EVFinePositioningSetupParametersType->SensorOrder.array[v2gLFA_EVFinePositioningSetupParametersType_SensorOrder_currArrayIndex++] - 0));
- /* valid EE */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- }
- }
- grammarID = 1445;
- } else if ( 1 == 1 ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- if(errn == 0) {
- errn = encodeNBitUnsignedInteger(stream, 8, (uint32_t)(v2gLFA_EVFinePositioningSetupParametersType->SignalPulseDuration - 0));
- /* valid EE */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- }
- }
- grammarID = 1242;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 1445:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorOrder), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SignalPulseDuration)] */
- if (v2gLFA_EVFinePositioningSetupParametersType_SensorOrder_currArrayIndex < v2gLFA_EVFinePositioningSetupParametersType->SensorOrder.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- if(errn == 0) {
- errn = encodeNBitUnsignedInteger(stream, 8, (uint32_t)(v2gLFA_EVFinePositioningSetupParametersType->SensorOrder.array[v2gLFA_EVFinePositioningSetupParametersType_SensorOrder_currArrayIndex++] - 0));
- /* valid EE */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- }
- }
- grammarID = 1446;
- } else if ( 1 == 1 ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- if(errn == 0) {
- errn = encodeNBitUnsignedInteger(stream, 8, (uint32_t)(v2gLFA_EVFinePositioningSetupParametersType->SignalPulseDuration - 0));
- /* valid EE */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- }
- }
- grammarID = 1242;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 1446:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorOrder), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SignalPulseDuration)] */
- if (v2gLFA_EVFinePositioningSetupParametersType_SensorOrder_currArrayIndex < v2gLFA_EVFinePositioningSetupParametersType->SensorOrder.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- if(errn == 0) {
- errn = encodeNBitUnsignedInteger(stream, 8, (uint32_t)(v2gLFA_EVFinePositioningSetupParametersType->SensorOrder.array[v2gLFA_EVFinePositioningSetupParametersType_SensorOrder_currArrayIndex++] - 0));
- /* valid EE */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- }
- }
- grammarID = 1447;
- } else if ( 1 == 1 ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- if(errn == 0) {
- errn = encodeNBitUnsignedInteger(stream, 8, (uint32_t)(v2gLFA_EVFinePositioningSetupParametersType->SignalPulseDuration - 0));
- /* valid EE */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- }
- }
- grammarID = 1242;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 1447:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorOrder), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SignalPulseDuration)] */
- if (v2gLFA_EVFinePositioningSetupParametersType_SensorOrder_currArrayIndex < v2gLFA_EVFinePositioningSetupParametersType->SensorOrder.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- if(errn == 0) {
- errn = encodeNBitUnsignedInteger(stream, 8, (uint32_t)(v2gLFA_EVFinePositioningSetupParametersType->SensorOrder.array[v2gLFA_EVFinePositioningSetupParametersType_SensorOrder_currArrayIndex++] - 0));
- /* valid EE */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- }
- }
- grammarID = 1448;
- } else if ( 1 == 1 ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- if(errn == 0) {
- errn = encodeNBitUnsignedInteger(stream, 8, (uint32_t)(v2gLFA_EVFinePositioningSetupParametersType->SignalPulseDuration - 0));
- /* valid EE */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- }
- }
- grammarID = 1242;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 1448:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorOrder), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SignalPulseDuration)] */
- if (v2gLFA_EVFinePositioningSetupParametersType_SensorOrder_currArrayIndex < v2gLFA_EVFinePositioningSetupParametersType->SensorOrder.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- if(errn == 0) {
- errn = encodeNBitUnsignedInteger(stream, 8, (uint32_t)(v2gLFA_EVFinePositioningSetupParametersType->SensorOrder.array[v2gLFA_EVFinePositioningSetupParametersType_SensorOrder_currArrayIndex++] - 0));
- /* valid EE */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- }
- }
- grammarID = 1449;
- } else if ( 1 == 1 ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- if(errn == 0) {
- errn = encodeNBitUnsignedInteger(stream, 8, (uint32_t)(v2gLFA_EVFinePositioningSetupParametersType->SignalPulseDuration - 0));
- /* valid EE */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- }
- }
- grammarID = 1242;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 1449:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorOrder), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SignalPulseDuration)] */
- if (v2gLFA_EVFinePositioningSetupParametersType_SensorOrder_currArrayIndex < v2gLFA_EVFinePositioningSetupParametersType->SensorOrder.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- if(errn == 0) {
- errn = encodeNBitUnsignedInteger(stream, 8, (uint32_t)(v2gLFA_EVFinePositioningSetupParametersType->SensorOrder.array[v2gLFA_EVFinePositioningSetupParametersType_SensorOrder_currArrayIndex++] - 0));
- /* valid EE */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- }
- }
- grammarID = 1450;
- } else if ( 1 == 1 ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- if(errn == 0) {
- errn = encodeNBitUnsignedInteger(stream, 8, (uint32_t)(v2gLFA_EVFinePositioningSetupParametersType->SignalPulseDuration - 0));
- /* valid EE */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- }
- }
- grammarID = 1242;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 1450:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorOrder), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SignalPulseDuration)] */
- if (v2gLFA_EVFinePositioningSetupParametersType_SensorOrder_currArrayIndex < v2gLFA_EVFinePositioningSetupParametersType->SensorOrder.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- if(errn == 0) {
- errn = encodeNBitUnsignedInteger(stream, 8, (uint32_t)(v2gLFA_EVFinePositioningSetupParametersType->SensorOrder.array[v2gLFA_EVFinePositioningSetupParametersType_SensorOrder_currArrayIndex++] - 0));
- /* valid EE */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- }
- }
- grammarID = 1451;
- } else if ( 1 == 1 ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- if(errn == 0) {
- errn = encodeNBitUnsignedInteger(stream, 8, (uint32_t)(v2gLFA_EVFinePositioningSetupParametersType->SignalPulseDuration - 0));
- /* valid EE */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- }
- }
- grammarID = 1242;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 1451:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorOrder), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SignalPulseDuration)] */
- if (v2gLFA_EVFinePositioningSetupParametersType_SensorOrder_currArrayIndex < v2gLFA_EVFinePositioningSetupParametersType->SensorOrder.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- if(errn == 0) {
- errn = encodeNBitUnsignedInteger(stream, 8, (uint32_t)(v2gLFA_EVFinePositioningSetupParametersType->SensorOrder.array[v2gLFA_EVFinePositioningSetupParametersType_SensorOrder_currArrayIndex++] - 0));
- /* valid EE */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- }
- }
- grammarID = 1452;
- } else if ( 1 == 1 ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- if(errn == 0) {
- errn = encodeNBitUnsignedInteger(stream, 8, (uint32_t)(v2gLFA_EVFinePositioningSetupParametersType->SignalPulseDuration - 0));
- /* valid EE */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- }
- }
- grammarID = 1242;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 1452:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorOrder), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SignalPulseDuration)] */
- if (v2gLFA_EVFinePositioningSetupParametersType_SensorOrder_currArrayIndex < v2gLFA_EVFinePositioningSetupParametersType->SensorOrder.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- if(errn == 0) {
- errn = encodeNBitUnsignedInteger(stream, 8, (uint32_t)(v2gLFA_EVFinePositioningSetupParametersType->SensorOrder.array[v2gLFA_EVFinePositioningSetupParametersType_SensorOrder_currArrayIndex++] - 0));
- /* valid EE */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- }
- }
- grammarID = 1453;
- } else if ( 1 == 1 ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- if(errn == 0) {
- errn = encodeNBitUnsignedInteger(stream, 8, (uint32_t)(v2gLFA_EVFinePositioningSetupParametersType->SignalPulseDuration - 0));
- /* valid EE */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- }
- }
- grammarID = 1242;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 1453:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorOrder), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SignalPulseDuration)] */
- if (v2gLFA_EVFinePositioningSetupParametersType_SensorOrder_currArrayIndex < v2gLFA_EVFinePositioningSetupParametersType->SensorOrder.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- if(errn == 0) {
- errn = encodeNBitUnsignedInteger(stream, 8, (uint32_t)(v2gLFA_EVFinePositioningSetupParametersType->SensorOrder.array[v2gLFA_EVFinePositioningSetupParametersType_SensorOrder_currArrayIndex++] - 0));
- /* valid EE */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- }
- }
- grammarID = 1454;
- } else if ( 1 == 1 ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- if(errn == 0) {
- errn = encodeNBitUnsignedInteger(stream, 8, (uint32_t)(v2gLFA_EVFinePositioningSetupParametersType->SignalPulseDuration - 0));
- /* valid EE */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- }
- }
- grammarID = 1242;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 1454:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorOrder), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SignalPulseDuration)] */
- if (v2gLFA_EVFinePositioningSetupParametersType_SensorOrder_currArrayIndex < v2gLFA_EVFinePositioningSetupParametersType->SensorOrder.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- if(errn == 0) {
- errn = encodeNBitUnsignedInteger(stream, 8, (uint32_t)(v2gLFA_EVFinePositioningSetupParametersType->SensorOrder.array[v2gLFA_EVFinePositioningSetupParametersType_SensorOrder_currArrayIndex++] - 0));
- /* valid EE */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- }
- }
- grammarID = 1455;
- } else if ( 1 == 1 ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- if(errn == 0) {
- errn = encodeNBitUnsignedInteger(stream, 8, (uint32_t)(v2gLFA_EVFinePositioningSetupParametersType->SignalPulseDuration - 0));
- /* valid EE */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- }
- }
- grammarID = 1242;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 1455:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorOrder), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SignalPulseDuration)] */
- if (v2gLFA_EVFinePositioningSetupParametersType_SensorOrder_currArrayIndex < v2gLFA_EVFinePositioningSetupParametersType->SensorOrder.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- if(errn == 0) {
- errn = encodeNBitUnsignedInteger(stream, 8, (uint32_t)(v2gLFA_EVFinePositioningSetupParametersType->SensorOrder.array[v2gLFA_EVFinePositioningSetupParametersType_SensorOrder_currArrayIndex++] - 0));
- /* valid EE */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- }
- }
- grammarID = 1456;
- } else if ( 1 == 1 ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- if(errn == 0) {
- errn = encodeNBitUnsignedInteger(stream, 8, (uint32_t)(v2gLFA_EVFinePositioningSetupParametersType->SignalPulseDuration - 0));
- /* valid EE */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- }
- }
- grammarID = 1242;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 1456:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorOrder), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SignalPulseDuration)] */
- if (v2gLFA_EVFinePositioningSetupParametersType_SensorOrder_currArrayIndex < v2gLFA_EVFinePositioningSetupParametersType->SensorOrder.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- if(errn == 0) {
- errn = encodeNBitUnsignedInteger(stream, 8, (uint32_t)(v2gLFA_EVFinePositioningSetupParametersType->SensorOrder.array[v2gLFA_EVFinePositioningSetupParametersType_SensorOrder_currArrayIndex++] - 0));
- /* valid EE */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- }
- }
- grammarID = 1457;
- } else if ( 1 == 1 ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- if(errn == 0) {
- errn = encodeNBitUnsignedInteger(stream, 8, (uint32_t)(v2gLFA_EVFinePositioningSetupParametersType->SignalPulseDuration - 0));
- /* valid EE */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- }
- }
- grammarID = 1242;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 1457:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorOrder), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SignalPulseDuration)] */
- if (v2gLFA_EVFinePositioningSetupParametersType_SensorOrder_currArrayIndex < v2gLFA_EVFinePositioningSetupParametersType->SensorOrder.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- if(errn == 0) {
- errn = encodeNBitUnsignedInteger(stream, 8, (uint32_t)(v2gLFA_EVFinePositioningSetupParametersType->SensorOrder.array[v2gLFA_EVFinePositioningSetupParametersType_SensorOrder_currArrayIndex++] - 0));
- /* valid EE */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- }
- }
- grammarID = 1458;
- } else if ( 1 == 1 ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- if(errn == 0) {
- errn = encodeNBitUnsignedInteger(stream, 8, (uint32_t)(v2gLFA_EVFinePositioningSetupParametersType->SignalPulseDuration - 0));
- /* valid EE */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- }
- }
- grammarID = 1242;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 1458:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorOrder), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SignalPulseDuration)] */
- if (v2gLFA_EVFinePositioningSetupParametersType_SensorOrder_currArrayIndex < v2gLFA_EVFinePositioningSetupParametersType->SensorOrder.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- if(errn == 0) {
- errn = encodeNBitUnsignedInteger(stream, 8, (uint32_t)(v2gLFA_EVFinePositioningSetupParametersType->SensorOrder.array[v2gLFA_EVFinePositioningSetupParametersType_SensorOrder_currArrayIndex++] - 0));
- /* valid EE */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- }
- }
- grammarID = 1459;
- } else if ( 1 == 1 ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- if(errn == 0) {
- errn = encodeNBitUnsignedInteger(stream, 8, (uint32_t)(v2gLFA_EVFinePositioningSetupParametersType->SignalPulseDuration - 0));
- /* valid EE */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- }
- }
- grammarID = 1242;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 1459:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorOrder), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SignalPulseDuration)] */
- if (v2gLFA_EVFinePositioningSetupParametersType_SensorOrder_currArrayIndex < v2gLFA_EVFinePositioningSetupParametersType->SensorOrder.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- if(errn == 0) {
- errn = encodeNBitUnsignedInteger(stream, 8, (uint32_t)(v2gLFA_EVFinePositioningSetupParametersType->SensorOrder.array[v2gLFA_EVFinePositioningSetupParametersType_SensorOrder_currArrayIndex++] - 0));
- /* valid EE */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- }
- }
- grammarID = 1460;
- } else if ( 1 == 1 ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- if(errn == 0) {
- errn = encodeNBitUnsignedInteger(stream, 8, (uint32_t)(v2gLFA_EVFinePositioningSetupParametersType->SignalPulseDuration - 0));
- /* valid EE */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- }
- }
- grammarID = 1242;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 1460:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorOrder), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SignalPulseDuration)] */
- if (v2gLFA_EVFinePositioningSetupParametersType_SensorOrder_currArrayIndex < v2gLFA_EVFinePositioningSetupParametersType->SensorOrder.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- if(errn == 0) {
- errn = encodeNBitUnsignedInteger(stream, 8, (uint32_t)(v2gLFA_EVFinePositioningSetupParametersType->SensorOrder.array[v2gLFA_EVFinePositioningSetupParametersType_SensorOrder_currArrayIndex++] - 0));
- /* valid EE */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- }
- }
- grammarID = 1461;
- } else if ( 1 == 1 ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- if(errn == 0) {
- errn = encodeNBitUnsignedInteger(stream, 8, (uint32_t)(v2gLFA_EVFinePositioningSetupParametersType->SignalPulseDuration - 0));
- /* valid EE */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- }
- }
- grammarID = 1242;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 1461:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorOrder), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SignalPulseDuration)] */
- if (v2gLFA_EVFinePositioningSetupParametersType_SensorOrder_currArrayIndex < v2gLFA_EVFinePositioningSetupParametersType->SensorOrder.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- if(errn == 0) {
- errn = encodeNBitUnsignedInteger(stream, 8, (uint32_t)(v2gLFA_EVFinePositioningSetupParametersType->SensorOrder.array[v2gLFA_EVFinePositioningSetupParametersType_SensorOrder_currArrayIndex++] - 0));
- /* valid EE */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- }
- }
- grammarID = 1462;
- } else if ( 1 == 1 ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- if(errn == 0) {
- errn = encodeNBitUnsignedInteger(stream, 8, (uint32_t)(v2gLFA_EVFinePositioningSetupParametersType->SignalPulseDuration - 0));
- /* valid EE */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- }
- }
- grammarID = 1242;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 1462:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorOrder), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SignalPulseDuration)] */
- if (v2gLFA_EVFinePositioningSetupParametersType_SensorOrder_currArrayIndex < v2gLFA_EVFinePositioningSetupParametersType->SensorOrder.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- if(errn == 0) {
- errn = encodeNBitUnsignedInteger(stream, 8, (uint32_t)(v2gLFA_EVFinePositioningSetupParametersType->SensorOrder.array[v2gLFA_EVFinePositioningSetupParametersType_SensorOrder_currArrayIndex++] - 0));
- /* valid EE */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- }
- }
- grammarID = 1463;
- } else if ( 1 == 1 ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- if(errn == 0) {
- errn = encodeNBitUnsignedInteger(stream, 8, (uint32_t)(v2gLFA_EVFinePositioningSetupParametersType->SignalPulseDuration - 0));
- /* valid EE */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- }
- }
- grammarID = 1242;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 1463:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorOrder), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SignalPulseDuration)] */
- if (v2gLFA_EVFinePositioningSetupParametersType_SensorOrder_currArrayIndex < v2gLFA_EVFinePositioningSetupParametersType->SensorOrder.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- if(errn == 0) {
- errn = encodeNBitUnsignedInteger(stream, 8, (uint32_t)(v2gLFA_EVFinePositioningSetupParametersType->SensorOrder.array[v2gLFA_EVFinePositioningSetupParametersType_SensorOrder_currArrayIndex++] - 0));
- /* valid EE */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- }
- }
- grammarID = 1464;
- } else if ( 1 == 1 ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- if(errn == 0) {
- errn = encodeNBitUnsignedInteger(stream, 8, (uint32_t)(v2gLFA_EVFinePositioningSetupParametersType->SignalPulseDuration - 0));
- /* valid EE */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- }
- }
- grammarID = 1242;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 1464:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorOrder), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SignalPulseDuration)] */
- if (v2gLFA_EVFinePositioningSetupParametersType_SensorOrder_currArrayIndex < v2gLFA_EVFinePositioningSetupParametersType->SensorOrder.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- if(errn == 0) {
- errn = encodeNBitUnsignedInteger(stream, 8, (uint32_t)(v2gLFA_EVFinePositioningSetupParametersType->SensorOrder.array[v2gLFA_EVFinePositioningSetupParametersType_SensorOrder_currArrayIndex++] - 0));
- /* valid EE */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- }
- }
- grammarID = 1465;
- } else if ( 1 == 1 ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- if(errn == 0) {
- errn = encodeNBitUnsignedInteger(stream, 8, (uint32_t)(v2gLFA_EVFinePositioningSetupParametersType->SignalPulseDuration - 0));
- /* valid EE */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- }
- }
- grammarID = 1242;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 1465:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorOrder), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SignalPulseDuration)] */
- if (v2gLFA_EVFinePositioningSetupParametersType_SensorOrder_currArrayIndex < v2gLFA_EVFinePositioningSetupParametersType->SensorOrder.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- if(errn == 0) {
- errn = encodeNBitUnsignedInteger(stream, 8, (uint32_t)(v2gLFA_EVFinePositioningSetupParametersType->SensorOrder.array[v2gLFA_EVFinePositioningSetupParametersType_SensorOrder_currArrayIndex++] - 0));
- /* valid EE */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- }
- }
- grammarID = 1466;
- } else if ( 1 == 1 ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- if(errn == 0) {
- errn = encodeNBitUnsignedInteger(stream, 8, (uint32_t)(v2gLFA_EVFinePositioningSetupParametersType->SignalPulseDuration - 0));
- /* valid EE */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- }
- }
- grammarID = 1242;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 1466:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorOrder), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SignalPulseDuration)] */
- if (v2gLFA_EVFinePositioningSetupParametersType_SensorOrder_currArrayIndex < v2gLFA_EVFinePositioningSetupParametersType->SensorOrder.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- if(errn == 0) {
- errn = encodeNBitUnsignedInteger(stream, 8, (uint32_t)(v2gLFA_EVFinePositioningSetupParametersType->SensorOrder.array[v2gLFA_EVFinePositioningSetupParametersType_SensorOrder_currArrayIndex++] - 0));
- /* valid EE */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- }
- }
- grammarID = 1467;
- } else if ( 1 == 1 ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- if(errn == 0) {
- errn = encodeNBitUnsignedInteger(stream, 8, (uint32_t)(v2gLFA_EVFinePositioningSetupParametersType->SignalPulseDuration - 0));
- /* valid EE */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- }
- }
- grammarID = 1242;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 1467:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorOrder), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SignalPulseDuration)] */
- if (v2gLFA_EVFinePositioningSetupParametersType_SensorOrder_currArrayIndex < v2gLFA_EVFinePositioningSetupParametersType->SensorOrder.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- if(errn == 0) {
- errn = encodeNBitUnsignedInteger(stream, 8, (uint32_t)(v2gLFA_EVFinePositioningSetupParametersType->SensorOrder.array[v2gLFA_EVFinePositioningSetupParametersType_SensorOrder_currArrayIndex++] - 0));
- /* valid EE */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- }
- }
- grammarID = 1468;
- } else if ( 1 == 1 ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- if(errn == 0) {
- errn = encodeNBitUnsignedInteger(stream, 8, (uint32_t)(v2gLFA_EVFinePositioningSetupParametersType->SignalPulseDuration - 0));
- /* valid EE */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- }
- }
- grammarID = 1242;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 1468:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorOrder), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SignalPulseDuration)] */
- if (v2gLFA_EVFinePositioningSetupParametersType_SensorOrder_currArrayIndex < v2gLFA_EVFinePositioningSetupParametersType->SensorOrder.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- if(errn == 0) {
- errn = encodeNBitUnsignedInteger(stream, 8, (uint32_t)(v2gLFA_EVFinePositioningSetupParametersType->SensorOrder.array[v2gLFA_EVFinePositioningSetupParametersType_SensorOrder_currArrayIndex++] - 0));
- /* valid EE */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- }
- }
- grammarID = 1469;
- } else if ( 1 == 1 ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- if(errn == 0) {
- errn = encodeNBitUnsignedInteger(stream, 8, (uint32_t)(v2gLFA_EVFinePositioningSetupParametersType->SignalPulseDuration - 0));
- /* valid EE */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- }
- }
- grammarID = 1242;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 1469:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorOrder), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SignalPulseDuration)] */
- if (v2gLFA_EVFinePositioningSetupParametersType_SensorOrder_currArrayIndex < v2gLFA_EVFinePositioningSetupParametersType->SensorOrder.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- if(errn == 0) {
- errn = encodeNBitUnsignedInteger(stream, 8, (uint32_t)(v2gLFA_EVFinePositioningSetupParametersType->SensorOrder.array[v2gLFA_EVFinePositioningSetupParametersType_SensorOrder_currArrayIndex++] - 0));
- /* valid EE */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- }
- }
- grammarID = 1470;
- } else if ( 1 == 1 ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- if(errn == 0) {
- errn = encodeNBitUnsignedInteger(stream, 8, (uint32_t)(v2gLFA_EVFinePositioningSetupParametersType->SignalPulseDuration - 0));
- /* valid EE */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- }
- }
- grammarID = 1242;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 1470:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorOrder), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SignalPulseDuration)] */
- if (v2gLFA_EVFinePositioningSetupParametersType_SensorOrder_currArrayIndex < v2gLFA_EVFinePositioningSetupParametersType->SensorOrder.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- if(errn == 0) {
- errn = encodeNBitUnsignedInteger(stream, 8, (uint32_t)(v2gLFA_EVFinePositioningSetupParametersType->SensorOrder.array[v2gLFA_EVFinePositioningSetupParametersType_SensorOrder_currArrayIndex++] - 0));
- /* valid EE */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- }
- }
- grammarID = 1471;
- } else if ( 1 == 1 ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- if(errn == 0) {
- errn = encodeNBitUnsignedInteger(stream, 8, (uint32_t)(v2gLFA_EVFinePositioningSetupParametersType->SignalPulseDuration - 0));
- /* valid EE */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- }
- }
- grammarID = 1242;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 1471:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorOrder), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SignalPulseDuration)] */
- if (v2gLFA_EVFinePositioningSetupParametersType_SensorOrder_currArrayIndex < v2gLFA_EVFinePositioningSetupParametersType->SensorOrder.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- if(errn == 0) {
- errn = encodeNBitUnsignedInteger(stream, 8, (uint32_t)(v2gLFA_EVFinePositioningSetupParametersType->SensorOrder.array[v2gLFA_EVFinePositioningSetupParametersType_SensorOrder_currArrayIndex++] - 0));
- /* valid EE */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- }
- }
- grammarID = 1472;
- } else if ( 1 == 1 ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- if(errn == 0) {
- errn = encodeNBitUnsignedInteger(stream, 8, (uint32_t)(v2gLFA_EVFinePositioningSetupParametersType->SignalPulseDuration - 0));
- /* valid EE */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- }
- }
- grammarID = 1242;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 1472:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorOrder), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SignalPulseDuration)] */
- if (v2gLFA_EVFinePositioningSetupParametersType_SensorOrder_currArrayIndex < v2gLFA_EVFinePositioningSetupParametersType->SensorOrder.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- if(errn == 0) {
- errn = encodeNBitUnsignedInteger(stream, 8, (uint32_t)(v2gLFA_EVFinePositioningSetupParametersType->SensorOrder.array[v2gLFA_EVFinePositioningSetupParametersType_SensorOrder_currArrayIndex++] - 0));
- /* valid EE */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- }
- }
- grammarID = 1473;
- } else if ( 1 == 1 ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- if(errn == 0) {
- errn = encodeNBitUnsignedInteger(stream, 8, (uint32_t)(v2gLFA_EVFinePositioningSetupParametersType->SignalPulseDuration - 0));
- /* valid EE */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- }
- }
- grammarID = 1242;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 1473:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorOrder), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SignalPulseDuration)] */
- if (v2gLFA_EVFinePositioningSetupParametersType_SensorOrder_currArrayIndex < v2gLFA_EVFinePositioningSetupParametersType->SensorOrder.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- if(errn == 0) {
- errn = encodeNBitUnsignedInteger(stream, 8, (uint32_t)(v2gLFA_EVFinePositioningSetupParametersType->SensorOrder.array[v2gLFA_EVFinePositioningSetupParametersType_SensorOrder_currArrayIndex++] - 0));
- /* valid EE */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- }
- }
- grammarID = 1474;
- } else if ( 1 == 1 ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- if(errn == 0) {
- errn = encodeNBitUnsignedInteger(stream, 8, (uint32_t)(v2gLFA_EVFinePositioningSetupParametersType->SignalPulseDuration - 0));
- /* valid EE */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- }
- }
- grammarID = 1242;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 1474:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorOrder), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SignalPulseDuration)] */
- if (v2gLFA_EVFinePositioningSetupParametersType_SensorOrder_currArrayIndex < v2gLFA_EVFinePositioningSetupParametersType->SensorOrder.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- if(errn == 0) {
- errn = encodeNBitUnsignedInteger(stream, 8, (uint32_t)(v2gLFA_EVFinePositioningSetupParametersType->SensorOrder.array[v2gLFA_EVFinePositioningSetupParametersType_SensorOrder_currArrayIndex++] - 0));
- /* valid EE */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- }
- }
- grammarID = 1475;
- } else if ( 1 == 1 ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- if(errn == 0) {
- errn = encodeNBitUnsignedInteger(stream, 8, (uint32_t)(v2gLFA_EVFinePositioningSetupParametersType->SignalPulseDuration - 0));
- /* valid EE */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- }
- }
- grammarID = 1242;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 1475:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorOrder), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SignalPulseDuration)] */
- if (v2gLFA_EVFinePositioningSetupParametersType_SensorOrder_currArrayIndex < v2gLFA_EVFinePositioningSetupParametersType->SensorOrder.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- if(errn == 0) {
- errn = encodeNBitUnsignedInteger(stream, 8, (uint32_t)(v2gLFA_EVFinePositioningSetupParametersType->SensorOrder.array[v2gLFA_EVFinePositioningSetupParametersType_SensorOrder_currArrayIndex++] - 0));
- /* valid EE */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- }
- }
- grammarID = 1476;
- } else if ( 1 == 1 ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- if(errn == 0) {
- errn = encodeNBitUnsignedInteger(stream, 8, (uint32_t)(v2gLFA_EVFinePositioningSetupParametersType->SignalPulseDuration - 0));
- /* valid EE */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- }
- }
- grammarID = 1242;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 1476:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorOrder), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SignalPulseDuration)] */
- if (v2gLFA_EVFinePositioningSetupParametersType_SensorOrder_currArrayIndex < v2gLFA_EVFinePositioningSetupParametersType->SensorOrder.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- if(errn == 0) {
- errn = encodeNBitUnsignedInteger(stream, 8, (uint32_t)(v2gLFA_EVFinePositioningSetupParametersType->SensorOrder.array[v2gLFA_EVFinePositioningSetupParametersType_SensorOrder_currArrayIndex++] - 0));
- /* valid EE */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- }
- }
- grammarID = 1477;
- } else if ( 1 == 1 ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- if(errn == 0) {
- errn = encodeNBitUnsignedInteger(stream, 8, (uint32_t)(v2gLFA_EVFinePositioningSetupParametersType->SignalPulseDuration - 0));
- /* valid EE */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- }
- }
- grammarID = 1242;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 1477:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorOrder), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SignalPulseDuration)] */
- if (v2gLFA_EVFinePositioningSetupParametersType_SensorOrder_currArrayIndex < v2gLFA_EVFinePositioningSetupParametersType->SensorOrder.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- if(errn == 0) {
- errn = encodeNBitUnsignedInteger(stream, 8, (uint32_t)(v2gLFA_EVFinePositioningSetupParametersType->SensorOrder.array[v2gLFA_EVFinePositioningSetupParametersType_SensorOrder_currArrayIndex++] - 0));
- /* valid EE */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- }
- }
- grammarID = 1478;
- } else if ( 1 == 1 ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- if(errn == 0) {
- errn = encodeNBitUnsignedInteger(stream, 8, (uint32_t)(v2gLFA_EVFinePositioningSetupParametersType->SignalPulseDuration - 0));
- /* valid EE */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- }
- }
- grammarID = 1242;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 1478:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorOrder), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SignalPulseDuration)] */
- if (v2gLFA_EVFinePositioningSetupParametersType_SensorOrder_currArrayIndex < v2gLFA_EVFinePositioningSetupParametersType->SensorOrder.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- if(errn == 0) {
- errn = encodeNBitUnsignedInteger(stream, 8, (uint32_t)(v2gLFA_EVFinePositioningSetupParametersType->SensorOrder.array[v2gLFA_EVFinePositioningSetupParametersType_SensorOrder_currArrayIndex++] - 0));
- /* valid EE */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- }
- }
- grammarID = 1479;
- } else if ( 1 == 1 ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- if(errn == 0) {
- errn = encodeNBitUnsignedInteger(stream, 8, (uint32_t)(v2gLFA_EVFinePositioningSetupParametersType->SignalPulseDuration - 0));
- /* valid EE */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- }
- }
- grammarID = 1242;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 1479:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorOrder), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SignalPulseDuration)] */
- if (v2gLFA_EVFinePositioningSetupParametersType_SensorOrder_currArrayIndex < v2gLFA_EVFinePositioningSetupParametersType->SensorOrder.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- if(errn == 0) {
- errn = encodeNBitUnsignedInteger(stream, 8, (uint32_t)(v2gLFA_EVFinePositioningSetupParametersType->SensorOrder.array[v2gLFA_EVFinePositioningSetupParametersType_SensorOrder_currArrayIndex++] - 0));
- /* valid EE */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- }
- }
- grammarID = 1480;
- } else if ( 1 == 1 ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- if(errn == 0) {
- errn = encodeNBitUnsignedInteger(stream, 8, (uint32_t)(v2gLFA_EVFinePositioningSetupParametersType->SignalPulseDuration - 0));
- /* valid EE */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- }
- }
- grammarID = 1242;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 1480:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorOrder), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SignalPulseDuration)] */
- if (v2gLFA_EVFinePositioningSetupParametersType_SensorOrder_currArrayIndex < v2gLFA_EVFinePositioningSetupParametersType->SensorOrder.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- if(errn == 0) {
- errn = encodeNBitUnsignedInteger(stream, 8, (uint32_t)(v2gLFA_EVFinePositioningSetupParametersType->SensorOrder.array[v2gLFA_EVFinePositioningSetupParametersType_SensorOrder_currArrayIndex++] - 0));
- /* valid EE */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- }
- }
- grammarID = 1481;
- } else if ( 1 == 1 ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- if(errn == 0) {
- errn = encodeNBitUnsignedInteger(stream, 8, (uint32_t)(v2gLFA_EVFinePositioningSetupParametersType->SignalPulseDuration - 0));
- /* valid EE */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- }
- }
- grammarID = 1242;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 1481:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorOrder), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SignalPulseDuration)] */
- if (v2gLFA_EVFinePositioningSetupParametersType_SensorOrder_currArrayIndex < v2gLFA_EVFinePositioningSetupParametersType->SensorOrder.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- if(errn == 0) {
- errn = encodeNBitUnsignedInteger(stream, 8, (uint32_t)(v2gLFA_EVFinePositioningSetupParametersType->SensorOrder.array[v2gLFA_EVFinePositioningSetupParametersType_SensorOrder_currArrayIndex++] - 0));
- /* valid EE */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- }
- }
- grammarID = 1482;
- } else if ( 1 == 1 ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- if(errn == 0) {
- errn = encodeNBitUnsignedInteger(stream, 8, (uint32_t)(v2gLFA_EVFinePositioningSetupParametersType->SignalPulseDuration - 0));
- /* valid EE */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- }
- }
- grammarID = 1242;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 1482:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorOrder), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SignalPulseDuration)] */
- if (v2gLFA_EVFinePositioningSetupParametersType_SensorOrder_currArrayIndex < v2gLFA_EVFinePositioningSetupParametersType->SensorOrder.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- if(errn == 0) {
- errn = encodeNBitUnsignedInteger(stream, 8, (uint32_t)(v2gLFA_EVFinePositioningSetupParametersType->SensorOrder.array[v2gLFA_EVFinePositioningSetupParametersType_SensorOrder_currArrayIndex++] - 0));
- /* valid EE */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- }
- }
- grammarID = 1483;
- } else if ( 1 == 1 ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- if(errn == 0) {
- errn = encodeNBitUnsignedInteger(stream, 8, (uint32_t)(v2gLFA_EVFinePositioningSetupParametersType->SignalPulseDuration - 0));
- /* valid EE */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- }
- }
- grammarID = 1242;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 1483:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorOrder), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SignalPulseDuration)] */
- if (v2gLFA_EVFinePositioningSetupParametersType_SensorOrder_currArrayIndex < v2gLFA_EVFinePositioningSetupParametersType->SensorOrder.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- if(errn == 0) {
- errn = encodeNBitUnsignedInteger(stream, 8, (uint32_t)(v2gLFA_EVFinePositioningSetupParametersType->SensorOrder.array[v2gLFA_EVFinePositioningSetupParametersType_SensorOrder_currArrayIndex++] - 0));
- /* valid EE */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- }
- }
- grammarID = 1484;
- } else if ( 1 == 1 ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- if(errn == 0) {
- errn = encodeNBitUnsignedInteger(stream, 8, (uint32_t)(v2gLFA_EVFinePositioningSetupParametersType->SignalPulseDuration - 0));
- /* valid EE */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- }
- }
- grammarID = 1242;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 1484:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorOrder), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SignalPulseDuration)] */
- if (v2gLFA_EVFinePositioningSetupParametersType_SensorOrder_currArrayIndex < v2gLFA_EVFinePositioningSetupParametersType->SensorOrder.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- if(errn == 0) {
- errn = encodeNBitUnsignedInteger(stream, 8, (uint32_t)(v2gLFA_EVFinePositioningSetupParametersType->SensorOrder.array[v2gLFA_EVFinePositioningSetupParametersType_SensorOrder_currArrayIndex++] - 0));
- /* valid EE */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- }
- }
- grammarID = 1485;
- } else if ( 1 == 1 ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- if(errn == 0) {
- errn = encodeNBitUnsignedInteger(stream, 8, (uint32_t)(v2gLFA_EVFinePositioningSetupParametersType->SignalPulseDuration - 0));
- /* valid EE */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- }
- }
- grammarID = 1242;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 1485:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorOrder), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SignalPulseDuration)] */
- if (v2gLFA_EVFinePositioningSetupParametersType_SensorOrder_currArrayIndex < v2gLFA_EVFinePositioningSetupParametersType->SensorOrder.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- if(errn == 0) {
- errn = encodeNBitUnsignedInteger(stream, 8, (uint32_t)(v2gLFA_EVFinePositioningSetupParametersType->SensorOrder.array[v2gLFA_EVFinePositioningSetupParametersType_SensorOrder_currArrayIndex++] - 0));
- /* valid EE */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- }
- }
- grammarID = 1486;
- } else if ( 1 == 1 ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- if(errn == 0) {
- errn = encodeNBitUnsignedInteger(stream, 8, (uint32_t)(v2gLFA_EVFinePositioningSetupParametersType->SignalPulseDuration - 0));
- /* valid EE */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- }
- }
- grammarID = 1242;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 1486:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorOrder), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SignalPulseDuration)] */
- if (v2gLFA_EVFinePositioningSetupParametersType_SensorOrder_currArrayIndex < v2gLFA_EVFinePositioningSetupParametersType->SensorOrder.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- if(errn == 0) {
- errn = encodeNBitUnsignedInteger(stream, 8, (uint32_t)(v2gLFA_EVFinePositioningSetupParametersType->SensorOrder.array[v2gLFA_EVFinePositioningSetupParametersType_SensorOrder_currArrayIndex++] - 0));
- /* valid EE */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- }
- }
- grammarID = 1487;
- } else if ( 1 == 1 ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- if(errn == 0) {
- errn = encodeNBitUnsignedInteger(stream, 8, (uint32_t)(v2gLFA_EVFinePositioningSetupParametersType->SignalPulseDuration - 0));
- /* valid EE */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- }
- }
- grammarID = 1242;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 1487:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorOrder), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SignalPulseDuration)] */
- if (v2gLFA_EVFinePositioningSetupParametersType_SensorOrder_currArrayIndex < v2gLFA_EVFinePositioningSetupParametersType->SensorOrder.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- if(errn == 0) {
- errn = encodeNBitUnsignedInteger(stream, 8, (uint32_t)(v2gLFA_EVFinePositioningSetupParametersType->SensorOrder.array[v2gLFA_EVFinePositioningSetupParametersType_SensorOrder_currArrayIndex++] - 0));
- /* valid EE */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- }
- }
- grammarID = 1488;
- } else if ( 1 == 1 ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- if(errn == 0) {
- errn = encodeNBitUnsignedInteger(stream, 8, (uint32_t)(v2gLFA_EVFinePositioningSetupParametersType->SignalPulseDuration - 0));
- /* valid EE */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- }
- }
- grammarID = 1242;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 1488:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorOrder), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SignalPulseDuration)] */
- if (v2gLFA_EVFinePositioningSetupParametersType_SensorOrder_currArrayIndex < v2gLFA_EVFinePositioningSetupParametersType->SensorOrder.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- if(errn == 0) {
- errn = encodeNBitUnsignedInteger(stream, 8, (uint32_t)(v2gLFA_EVFinePositioningSetupParametersType->SensorOrder.array[v2gLFA_EVFinePositioningSetupParametersType_SensorOrder_currArrayIndex++] - 0));
- /* valid EE */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- }
- }
- grammarID = 1489;
- } else if ( 1 == 1 ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- if(errn == 0) {
- errn = encodeNBitUnsignedInteger(stream, 8, (uint32_t)(v2gLFA_EVFinePositioningSetupParametersType->SignalPulseDuration - 0));
- /* valid EE */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- }
- }
- grammarID = 1242;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 1489:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorOrder), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SignalPulseDuration)] */
- if (v2gLFA_EVFinePositioningSetupParametersType_SensorOrder_currArrayIndex < v2gLFA_EVFinePositioningSetupParametersType->SensorOrder.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- if(errn == 0) {
- errn = encodeNBitUnsignedInteger(stream, 8, (uint32_t)(v2gLFA_EVFinePositioningSetupParametersType->SensorOrder.array[v2gLFA_EVFinePositioningSetupParametersType_SensorOrder_currArrayIndex++] - 0));
- /* valid EE */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- }
- }
- grammarID = 1490;
- } else if ( 1 == 1 ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- if(errn == 0) {
- errn = encodeNBitUnsignedInteger(stream, 8, (uint32_t)(v2gLFA_EVFinePositioningSetupParametersType->SignalPulseDuration - 0));
- /* valid EE */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- }
- }
- grammarID = 1242;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 1490:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorOrder), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SignalPulseDuration)] */
- if (v2gLFA_EVFinePositioningSetupParametersType_SensorOrder_currArrayIndex < v2gLFA_EVFinePositioningSetupParametersType->SensorOrder.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- if(errn == 0) {
- errn = encodeNBitUnsignedInteger(stream, 8, (uint32_t)(v2gLFA_EVFinePositioningSetupParametersType->SensorOrder.array[v2gLFA_EVFinePositioningSetupParametersType_SensorOrder_currArrayIndex++] - 0));
- /* valid EE */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- }
- }
- grammarID = 1491;
- } else if ( 1 == 1 ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- if(errn == 0) {
- errn = encodeNBitUnsignedInteger(stream, 8, (uint32_t)(v2gLFA_EVFinePositioningSetupParametersType->SignalPulseDuration - 0));
- /* valid EE */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- }
- }
- grammarID = 1242;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 1491:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorOrder), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SignalPulseDuration)] */
- if (v2gLFA_EVFinePositioningSetupParametersType_SensorOrder_currArrayIndex < v2gLFA_EVFinePositioningSetupParametersType->SensorOrder.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- if(errn == 0) {
- errn = encodeNBitUnsignedInteger(stream, 8, (uint32_t)(v2gLFA_EVFinePositioningSetupParametersType->SensorOrder.array[v2gLFA_EVFinePositioningSetupParametersType_SensorOrder_currArrayIndex++] - 0));
- /* valid EE */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- }
- }
- grammarID = 1492;
- } else if ( 1 == 1 ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- if(errn == 0) {
- errn = encodeNBitUnsignedInteger(stream, 8, (uint32_t)(v2gLFA_EVFinePositioningSetupParametersType->SignalPulseDuration - 0));
- /* valid EE */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- }
- }
- grammarID = 1242;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 1492:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorOrder), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SignalPulseDuration)] */
- if (v2gLFA_EVFinePositioningSetupParametersType_SensorOrder_currArrayIndex < v2gLFA_EVFinePositioningSetupParametersType->SensorOrder.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- if(errn == 0) {
- errn = encodeNBitUnsignedInteger(stream, 8, (uint32_t)(v2gLFA_EVFinePositioningSetupParametersType->SensorOrder.array[v2gLFA_EVFinePositioningSetupParametersType_SensorOrder_currArrayIndex++] - 0));
- /* valid EE */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- }
- }
- grammarID = 1493;
- } else if ( 1 == 1 ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- if(errn == 0) {
- errn = encodeNBitUnsignedInteger(stream, 8, (uint32_t)(v2gLFA_EVFinePositioningSetupParametersType->SignalPulseDuration - 0));
- /* valid EE */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- }
- }
- grammarID = 1242;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 1493:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorOrder), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SignalPulseDuration)] */
- if (v2gLFA_EVFinePositioningSetupParametersType_SensorOrder_currArrayIndex < v2gLFA_EVFinePositioningSetupParametersType->SensorOrder.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- if(errn == 0) {
- errn = encodeNBitUnsignedInteger(stream, 8, (uint32_t)(v2gLFA_EVFinePositioningSetupParametersType->SensorOrder.array[v2gLFA_EVFinePositioningSetupParametersType_SensorOrder_currArrayIndex++] - 0));
- /* valid EE */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- }
- }
- grammarID = 1494;
- } else if ( 1 == 1 ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- if(errn == 0) {
- errn = encodeNBitUnsignedInteger(stream, 8, (uint32_t)(v2gLFA_EVFinePositioningSetupParametersType->SignalPulseDuration - 0));
- /* valid EE */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- }
- }
- grammarID = 1242;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 1494:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorOrder), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SignalPulseDuration)] */
- if (v2gLFA_EVFinePositioningSetupParametersType_SensorOrder_currArrayIndex < v2gLFA_EVFinePositioningSetupParametersType->SensorOrder.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- if(errn == 0) {
- errn = encodeNBitUnsignedInteger(stream, 8, (uint32_t)(v2gLFA_EVFinePositioningSetupParametersType->SensorOrder.array[v2gLFA_EVFinePositioningSetupParametersType_SensorOrder_currArrayIndex++] - 0));
- /* valid EE */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- }
- }
- grammarID = 1495;
- } else if ( 1 == 1 ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- if(errn == 0) {
- errn = encodeNBitUnsignedInteger(stream, 8, (uint32_t)(v2gLFA_EVFinePositioningSetupParametersType->SignalPulseDuration - 0));
- /* valid EE */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- }
- }
- grammarID = 1242;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 1495:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SignalPulseDuration)] */
- if ( 1 == 1 ) {
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- if(errn == 0) {
- /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- if(errn == 0) {
- errn = encodeNBitUnsignedInteger(stream, 8, (uint32_t)(v2gLFA_EVFinePositioningSetupParametersType->SignalPulseDuration - 0));
- /* valid EE */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- }
- }
- grammarID = 1242;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 1242:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SignalSeparationTime)] */
- if ( 1 == 1 ) {
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- if(errn == 0) {
- /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- if(errn == 0) {
- errn = encodeNBitUnsignedInteger(stream, 8, (uint32_t)(v2gLFA_EVFinePositioningSetupParametersType->SignalSeparationTime - 0));
- /* valid EE */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- }
- }
- grammarID = 1496;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 1496:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}PackageSeparationTime)] */
- if ( 1 == 1 ) {
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- if(errn == 0) {
- /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- if(errn == 0) {
- errn = encodeNBitUnsignedInteger(stream, 8, (uint32_t)(v2gLFA_EVFinePositioningSetupParametersType->PackageSeparationTime - 0));
- /* valid EE */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- }
- }
- grammarID = 1497;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 1497:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}AlignmentOffset)] */
- if ( 1 == 1 ) {
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- if(errn == 0) {
- /* First(xsi:type)StartTag[CHARACTERS[UNSIGNED_INTEGER]] */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- if(errn == 0) {
- errn = encodeUnsignedInteger16(stream, v2gLFA_EVFinePositioningSetupParametersType->AlignmentOffset);
- /* valid EE */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- }
- }
- grammarID = 2;
- } 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:2016:MsgDataTypes,SelectedServiceType', base type name='anyType', content type='ELEMENT', isAbstract='false', hasTypeId='false', final='0', block='0', particle='("urn:iso:15118:2:2016:MsgDataTypes":ServiceID,"urn:iso:15118:2:2016:MsgDataTypes":ParameterSetID)', derivedBy='RESTRICTION'. */
-static int encode_v2gSelectedServiceType(bitstream_t* stream, struct v2gSelectedServiceType* v2gSelectedServiceType) {
- int grammarID = 1498;
- int done = 0;
-
-
- while(!done) {
- switch(grammarID) {
- case 1498:
- /* FirstStartTag[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}ServiceID)] */
- if ( 1 == 1 ) {
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- if(errn == 0) {
- /* FirstStartTag[CHARACTERS[UNSIGNED_INTEGER]] */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- if(errn == 0) {
- errn = encodeUnsignedInteger16(stream, v2gSelectedServiceType->ServiceID);
- /* valid EE */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- }
- }
- grammarID = 1499;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 1499:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}ParameterSetID)] */
- if ( 1 == 1 ) {
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- if(errn == 0) {
- /* First(xsi:type)StartTag[CHARACTERS[UNSIGNED_INTEGER]] */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- if(errn == 0) {
- errn = encodeUnsignedInteger16(stream, v2gSelectedServiceType->ParameterSetID);
- /* valid EE */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- }
- }
- grammarID = 2;
- } 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='http://www.w3.org/2000/09/xmldsig#,SignaturePropertyType', base type name='anyType', content type='MIXED', isAbstract='false', hasTypeId='false', final='0', block='0', particle='((WC[##other:"http://www.w3.org/2000/09/xmldsig#"])){1-UNBOUNDED}', derivedBy='RESTRICTION'. */
-static int encode_v2gSignaturePropertyType(bitstream_t* stream, struct v2gSignaturePropertyType* v2gSignaturePropertyType) {
- int grammarID = 1500;
- int done = 0;
- int wcDone = 0;
-
-
- while(!done) {
- switch(grammarID) {
- case 1500:
- /* FirstStartTag[ATTRIBUTE[STRING](Id), ATTRIBUTE[STRING](Target)] */
- if ( v2gSignaturePropertyType->Id_isUsed == 1u ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- /* encode string as string table miss (+2 len)*/
- errn = encodeUnsignedInteger16(stream, (uint16_t)(v2gSignaturePropertyType->Id.charactersLen + 2));
- if (errn == 0) {
- errn = encodeCharacters(stream, v2gSignaturePropertyType->Id.characters, v2gSignaturePropertyType->Id.charactersLen);
- }
- }
- grammarID = 1501;
- } else if (1==1) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- /* encode string as string table miss (+2 len)*/
- errn = encodeUnsignedInteger16(stream, (uint16_t)(v2gSignaturePropertyType->Target.charactersLen + 2));
- if (errn == 0) {
- errn = encodeCharacters(stream, v2gSignaturePropertyType->Target.characters, v2gSignaturePropertyType->Target.charactersLen);
- }
- }
- grammarID = 1502;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 1501:
- /* StartTag[ATTRIBUTE[STRING](Target)] */
- if (1==1) {
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- if(errn == 0) {
- /* encode string as string table miss (+2 len)*/
- errn = encodeUnsignedInteger16(stream, (uint16_t)(v2gSignaturePropertyType->Target.charactersLen + 2));
- if (errn == 0) {
- errn = encodeCharacters(stream, v2gSignaturePropertyType->Target.characters, v2gSignaturePropertyType->Target.charactersLen);
- }
- }
- grammarID = 1502;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 1502:
- /* StartTag[START_ELEMENT_GENERIC, CHARACTERS_GENERIC[STRING]] */
- if (1==0) {
- errn = EXI_UNSUPPORTED_EVENT_CODE_CHARACTERISTICS;
- grammarID = 904;
- } else if ( v2gSignaturePropertyType->ANY_isUsed == 1u ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- /* encode string as string table miss (+2 len)*/
- errn = encodeUnsignedInteger16(stream, (uint16_t)(v2gSignaturePropertyType->ANY.charactersLen + 2));
- if (errn == 0) {
- errn = encodeCharacters(stream, v2gSignaturePropertyType->ANY.characters, v2gSignaturePropertyType->ANY.charactersLen);
- }
- }
- wcDone = 1;
- grammarID = 1503;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 904:
- /* Element[START_ELEMENT_GENERIC, END_ELEMENT, CHARACTERS_GENERIC[STRING]] */
- if (1==0) {
- errn = EXI_UNSUPPORTED_EVENT_CODE_CHARACTERISTICS;
- grammarID = 904;
- } else if ( v2gSignaturePropertyType->ANY_isUsed == 0u || wcDone ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- done = 1;
- }
- grammarID = 3;
- } else if ( v2gSignaturePropertyType->ANY_isUsed == 1u ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 2);
- if(errn == 0) {
- /* encode string as string table miss (+2 len)*/
- errn = encodeUnsignedInteger16(stream, (uint16_t)(v2gSignaturePropertyType->ANY.charactersLen + 2));
- if (errn == 0) {
- errn = encodeCharacters(stream, v2gSignaturePropertyType->ANY.characters, v2gSignaturePropertyType->ANY.charactersLen);
- }
- }
- wcDone = 1;
- grammarID = 904;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 1503:
- /* Element[START_ELEMENT_GENERIC, CHARACTERS_GENERIC[STRING]] */
- if (1==0) {
- errn = EXI_UNSUPPORTED_EVENT_CODE_CHARACTERISTICS;
- grammarID = 904;
- } else if ( v2gSignaturePropertyType->ANY_isUsed == 1u ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- /* encode string as string table miss (+2 len)*/
- errn = encodeUnsignedInteger16(stream, (uint16_t)(v2gSignaturePropertyType->ANY.charactersLen + 2));
- if (errn == 0) {
- errn = encodeCharacters(stream, v2gSignaturePropertyType->ANY.characters, v2gSignaturePropertyType->ANY.charactersLen);
- }
- }
- wcDone = 1;
- grammarID = 1503;
- } 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:2016:MsgBody,AC_BidirectionalControlResType', base type name='V2GResponseType', content type='ELEMENT', isAbstract='false', hasTypeId='false', final='0', block='0', particle='(("urn:iso:15118:2:2016:MsgBody":ResponseCode,"urn:iso:15118:2:2016:MsgBody":EVSEStatus{0-1}),("urn:iso:15118:2:2016:MsgBody":EVSEProcessing,"urn:iso:15118:2:2016:MsgBody":EVSETargetPower,"urn:iso:15118:2:2016:MsgBody":EVSETargetReactivePower,"urn:iso:15118:2:2016:MsgBody":EVSEID,"urn:iso:15118:2:2016:MsgBody":SAScheduleTupleID{0-1},"urn:iso:15118:2:2016:MsgBody":MeterInfo{0-1},"urn:iso:15118:2:2016:MsgBody":ReceiptRequired{0-1}))', derivedBy='EXTENSION'. */
-static int encode_v2gAC_BidirectionalControlResType(bitstream_t* stream, struct v2gAC_BidirectionalControlResType* v2gAC_BidirectionalControlResType) {
- int grammarID = 1504;
- int done = 0;
-
-
- while(!done) {
- switch(grammarID) {
- case 1504:
- /* FirstStartTag[START_ELEMENT({urn:iso:15118:2:2016:MsgBody}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, 5, v2gAC_BidirectionalControlResType->ResponseCode);
- /* valid EE */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- }
- }
- grammarID = 1505;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 1505:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgBody}EVSEStatus), START_ELEMENT({urn:iso:15118:2:2016:MsgBody}EVSEProcessing)] */
- if ( v2gAC_BidirectionalControlResType->EVSEStatus_isUsed == 1u ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- errn = encode_v2gEVSEStatusType(stream, &v2gAC_BidirectionalControlResType->EVSEStatus );
- }
- grammarID = 1506;
- } else if ( 1 == 1 ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- /* FirstStartTag[CHARACTERS[ENUMERATION]] */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- if(errn == 0) {
- errn = encodeNBitUnsignedInteger(stream, 2, v2gAC_BidirectionalControlResType->EVSEProcessing);
- /* valid EE */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- }
- }
- grammarID = 1507;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 1506:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgBody}EVSEProcessing)] */
- 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, v2gAC_BidirectionalControlResType->EVSEProcessing);
- /* valid EE */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- }
- }
- grammarID = 1507;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 1507:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgBody}EVSETargetPower)] */
- if ( 1 == 1 ) {
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- if(errn == 0) {
- errn = encode_v2gPhysicalValueType(stream, &v2gAC_BidirectionalControlResType->EVSETargetPower );
- }
- grammarID = 1508;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 1508:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgBody}EVSETargetReactivePower)] */
- if ( 1 == 1 ) {
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- if(errn == 0) {
- errn = encode_v2gPhysicalValueType(stream, &v2gAC_BidirectionalControlResType->EVSETargetReactivePower );
- }
- grammarID = 1509;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 1509:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgBody}EVSEID)] */
- if ( 1 == 1 ) {
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- if(errn == 0) {
- /* FirstStartTag[CHARACTERS[STRING]] */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- if(errn == 0) {
- /* encode string as string table miss (+2 len)*/
- errn = encodeUnsignedInteger16(stream, (uint16_t)(v2gAC_BidirectionalControlResType->EVSEID.charactersLen + 2));
- if (errn == 0) {
- errn = encodeCharacters(stream, v2gAC_BidirectionalControlResType->EVSEID.characters, v2gAC_BidirectionalControlResType->EVSEID.charactersLen);
- }
- /* valid EE */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- }
- }
- grammarID = 1510;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 1510:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgBody}SAScheduleTupleID), START_ELEMENT({urn:iso:15118:2:2016:MsgBody}MeterInfo), START_ELEMENT({urn:iso:15118:2:2016:MsgBody}ReceiptRequired), END_ELEMENT] */
- if ( v2gAC_BidirectionalControlResType->SAScheduleTupleID_isUsed == 1u ) {
- errn = encodeNBitUnsignedInteger(stream, 3, 0);
- if(errn == 0) {
- /* FirstStartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- if(errn == 0) {
- errn = encodeNBitUnsignedInteger(stream, 8, (uint32_t)(v2gAC_BidirectionalControlResType->SAScheduleTupleID - 1));
- /* valid EE */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- }
- }
- grammarID = 1511;
- } else if ( v2gAC_BidirectionalControlResType->MeterInfo_isUsed == 1u ) {
- errn = encodeNBitUnsignedInteger(stream, 3, 1);
- if(errn == 0) {
- errn = encode_v2gMeterInfoType(stream, &v2gAC_BidirectionalControlResType->MeterInfo );
- }
- grammarID = 1512;
- } else if ( v2gAC_BidirectionalControlResType->ReceiptRequired_isUsed == 1u ) {
- errn = encodeNBitUnsignedInteger(stream, 3, 2);
- if(errn == 0) {
- /* FirstStartTag[CHARACTERS[BOOLEAN]] */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- if(errn == 0) {
- errn = encodeBoolean(stream, v2gAC_BidirectionalControlResType->ReceiptRequired);
- /* valid EE */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- }
- }
- grammarID = 2;
- } else if (1==1) {
- errn = encodeNBitUnsignedInteger(stream, 3, 3);
- if(errn == 0) {
- done = 1;
- }
- grammarID = 3;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 1511:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgBody}MeterInfo), START_ELEMENT({urn:iso:15118:2:2016:MsgBody}ReceiptRequired), END_ELEMENT] */
- if ( v2gAC_BidirectionalControlResType->MeterInfo_isUsed == 1u ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- errn = encode_v2gMeterInfoType(stream, &v2gAC_BidirectionalControlResType->MeterInfo );
- }
- grammarID = 1512;
- } else if ( v2gAC_BidirectionalControlResType->ReceiptRequired_isUsed == 1u ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- /* FirstStartTag[CHARACTERS[BOOLEAN]] */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- if(errn == 0) {
- errn = encodeBoolean(stream, v2gAC_BidirectionalControlResType->ReceiptRequired);
- /* valid EE */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- }
- }
- grammarID = 2;
- } else if (1==1) {
- errn = encodeNBitUnsignedInteger(stream, 2, 2);
- if(errn == 0) {
- done = 1;
- }
- grammarID = 3;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 1512:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgBody}ReceiptRequired), END_ELEMENT] */
- if ( v2gAC_BidirectionalControlResType->ReceiptRequired_isUsed == 1u ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- /* FirstStartTag[CHARACTERS[BOOLEAN]] */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- if(errn == 0) {
- errn = encodeBoolean(stream, v2gAC_BidirectionalControlResType->ReceiptRequired);
- /* 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='http://www.w3.org/2000/09/xmldsig#,PGPDataType', base type name='anyType', content type='ELEMENT', isAbstract='false', hasTypeId='false', final='0', block='0', particle='(("http://www.w3.org/2000/09/xmldsig#":PGPKeyID,"http://www.w3.org/2000/09/xmldsig#":PGPKeyPacket{0-1},(WC[##other:"http://www.w3.org/2000/09/xmldsig#"]){0-UNBOUNDED})|("http://www.w3.org/2000/09/xmldsig#":PGPKeyPacket,(WC[##other:"http://www.w3.org/2000/09/xmldsig#"]){0-UNBOUNDED}))', derivedBy='RESTRICTION'. */
-static int encode_v2gPGPDataType(bitstream_t* stream, struct v2gPGPDataType* v2gPGPDataType) {
- int grammarID = 1513;
- int done = 0;
- int wcDone = 0;
-
-
- while(!done) {
- switch(grammarID) {
- case 1513:
- /* FirstStartTag[START_ELEMENT({http://www.w3.org/2000/09/xmldsig#}PGPKeyID), START_ELEMENT({http://www.w3.org/2000/09/xmldsig#}PGPKeyPacket)] */
- if ( v2gPGPDataType->PGPKeyID_isUsed == 1u ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- /* First(xsi:type)StartTag[CHARACTERS[BINARY_BASE64]] */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- if(errn == 0) {
- errn = encodeUnsignedInteger16(stream, (uint16_t)(v2gPGPDataType->PGPKeyID.bytesLen));
- if (errn == 0) {
- errn = encodeBytes(stream, v2gPGPDataType->PGPKeyID.bytes, v2gPGPDataType->PGPKeyID.bytesLen);
- }
- /* valid EE */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- }
- }
- grammarID = 1514;
- } else if ( v2gPGPDataType->PGPKeyPacket_isUsed == 1u ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- /* First(xsi:type)StartTag[CHARACTERS[BINARY_BASE64]] */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- if(errn == 0) {
- errn = encodeUnsignedInteger16(stream, (uint16_t)(v2gPGPDataType->PGPKeyPacket.bytesLen));
- if (errn == 0) {
- errn = encodeBytes(stream, v2gPGPDataType->PGPKeyPacket.bytes, v2gPGPDataType->PGPKeyPacket.bytesLen);
- }
- /* valid EE */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- }
- }
- grammarID = 1515;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 1514:
- /* Element[START_ELEMENT({http://www.w3.org/2000/09/xmldsig#}PGPKeyPacket), START_ELEMENT_GENERIC, END_ELEMENT] */
- if ( v2gPGPDataType->PGPKeyPacket_isUsed == 1u ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- /* First(xsi:type)StartTag[CHARACTERS[BINARY_BASE64]] */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- if(errn == 0) {
- errn = encodeUnsignedInteger16(stream, (uint16_t)(v2gPGPDataType->PGPKeyPacket.bytesLen));
- if (errn == 0) {
- errn = encodeBytes(stream, v2gPGPDataType->PGPKeyPacket.bytes, v2gPGPDataType->PGPKeyPacket.bytesLen);
- }
- /* valid EE */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- }
- }
- grammarID = 1515;
- } else if (1==0) {
- errn = EXI_UNSUPPORTED_EVENT_CODE_CHARACTERISTICS;
- grammarID = 1515;
- } else if ( v2gPGPDataType->ANY_isUsed == 0u || wcDone ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 2);
- if(errn == 0) {
- done = 1;
- }
- grammarID = 3;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 1515:
- /* Element[START_ELEMENT_GENERIC, END_ELEMENT] */
- if (1==0) {
- errn = EXI_UNSUPPORTED_EVENT_CODE_CHARACTERISTICS;
- grammarID = 1515;
- } else if ( v2gPGPDataType->ANY_isUsed == 0u || wcDone ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- 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:2016:MsgBody,SystemStatusResType', base type name='V2GResponseType', content type='ELEMENT', isAbstract='false', hasTypeId='false', final='0', block='0', particle='(("urn:iso:15118:2:2016:MsgBody":ResponseCode,"urn:iso:15118:2:2016:MsgBody":EVSEStatus{0-1}),("urn:iso:15118:2:2016:MsgBody":OperationMode,"urn:iso:15118:2:2016:MsgBody":EVSEMechanicalChargingDeviceStatus))', derivedBy='EXTENSION'. */
-static int encode_v2gSystemStatusResType(bitstream_t* stream, struct v2gSystemStatusResType* v2gSystemStatusResType) {
- int grammarID = 1516;
- int done = 0;
-
-
- while(!done) {
- switch(grammarID) {
- case 1516:
- /* FirstStartTag[START_ELEMENT({urn:iso:15118:2:2016:MsgBody}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, 5, v2gSystemStatusResType->ResponseCode);
- /* valid EE */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- }
- }
- grammarID = 1517;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 1517:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgBody}EVSEStatus), START_ELEMENT({urn:iso:15118:2:2016:MsgBody}OperationMode)] */
- if ( v2gSystemStatusResType->EVSEStatus_isUsed == 1u ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- errn = encode_v2gEVSEStatusType(stream, &v2gSystemStatusResType->EVSEStatus );
- }
- grammarID = 1518;
- } else if ( 1 == 1 ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- /* FirstStartTag[CHARACTERS[ENUMERATION]] */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- if(errn == 0) {
- errn = encodeNBitUnsignedInteger(stream, 1, v2gSystemStatusResType->OperationMode);
- /* valid EE */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- }
- }
- grammarID = 1519;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 1518:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgBody}OperationMode)] */
- 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, 1, v2gSystemStatusResType->OperationMode);
- /* valid EE */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- }
- }
- grammarID = 1519;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 1519:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgBody}EVSEMechanicalChargingDeviceStatus)] */
- 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, v2gSystemStatusResType->EVSEMechanicalChargingDeviceStatus);
- /* valid EE */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- }
- }
- grammarID = 2;
- } 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:2016:MsgBody,CertificateUpdateResType', base type name='V2GResponseType', content type='ELEMENT', isAbstract='false', hasTypeId='false', final='0', block='0', particle='(("urn:iso:15118:2:2016:MsgBody":ResponseCode,"urn:iso:15118:2:2016:MsgBody":EVSEStatus{0-1}),("urn:iso:15118:2:2016:MsgBody":SAProvisioningCertificateChain,"urn:iso:15118:2:2016:MsgBody":ContractSignatureCertChain,"urn:iso:15118:2:2016:MsgBody":ContractSignatureEncryptedPrivateKey,"urn:iso:15118:2:2016:MsgBody":DHpublickey,"urn:iso:15118:2:2016:MsgBody":eMAID,"urn:iso:15118:2:2016:MsgBody":RetryCounter{0-1}))', derivedBy='EXTENSION'. */
-static int encode_v2gCertificateUpdateResType(bitstream_t* stream, struct v2gCertificateUpdateResType* v2gCertificateUpdateResType) {
- int grammarID = 1520;
- int done = 0;
-
-
- while(!done) {
- switch(grammarID) {
- case 1520:
- /* FirstStartTag[START_ELEMENT({urn:iso:15118:2:2016:MsgBody}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, 5, v2gCertificateUpdateResType->ResponseCode);
- /* valid EE */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- }
- }
- grammarID = 1521;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 1521:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgBody}EVSEStatus), START_ELEMENT({urn:iso:15118:2:2016:MsgBody}SAProvisioningCertificateChain)] */
- if ( v2gCertificateUpdateResType->EVSEStatus_isUsed == 1u ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- errn = encode_v2gEVSEStatusType(stream, &v2gCertificateUpdateResType->EVSEStatus );
- }
- grammarID = 1522;
- } else if ( 1 == 1 ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- errn = encode_v2gCertificateChainType(stream, &v2gCertificateUpdateResType->SAProvisioningCertificateChain );
- }
- grammarID = 1523;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 1522:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgBody}SAProvisioningCertificateChain)] */
- if ( 1 == 1 ) {
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- if(errn == 0) {
- errn = encode_v2gCertificateChainType(stream, &v2gCertificateUpdateResType->SAProvisioningCertificateChain );
- }
- grammarID = 1523;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 1523:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgBody}ContractSignatureCertChain)] */
- if ( 1 == 1 ) {
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- if(errn == 0) {
- errn = encode_v2gCertificateChainType(stream, &v2gCertificateUpdateResType->ContractSignatureCertChain );
- }
- grammarID = 1524;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 1524:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgBody}ContractSignatureEncryptedPrivateKey)] */
- if ( 1 == 1 ) {
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- if(errn == 0) {
- errn = encode_v2gContractSignatureEncryptedPrivateKeyType(stream, &v2gCertificateUpdateResType->ContractSignatureEncryptedPrivateKey );
- }
- grammarID = 1525;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 1525:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgBody}DHpublickey)] */
- if ( 1 == 1 ) {
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- if(errn == 0) {
- errn = encode_v2gDiffieHellmanPublickeyType(stream, &v2gCertificateUpdateResType->DHpublickey );
- }
- grammarID = 1526;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 1526:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgBody}eMAID)] */
- if ( 1 == 1 ) {
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- if(errn == 0) {
- errn = encode_v2gEMAIDType(stream, &v2gCertificateUpdateResType->eMAID );
- }
- grammarID = 1527;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 1527:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgBody}RetryCounter), END_ELEMENT] */
- if ( v2gCertificateUpdateResType->RetryCounter_isUsed == 1u ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- /* First(xsi:type)StartTag[CHARACTERS[INTEGER]] */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- if(errn == 0) {
- errn = encodeInteger16(stream, v2gCertificateUpdateResType->RetryCounter);
- /* 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:2016:MsgDataTypes,ParameterSetType', base type name='anyType', content type='ELEMENT', isAbstract='false', hasTypeId='false', final='0', block='0', particle='("urn:iso:15118:2:2016:MsgDataTypes":ParameterSetID,"urn:iso:15118:2:2016:MsgDataTypes":Parameter{1-16})', derivedBy='RESTRICTION'. */
-static int encode_v2gParameterSetType(bitstream_t* stream, struct v2gParameterSetType* v2gParameterSetType) {
- int grammarID = 1528;
- int done = 0;
-
- unsigned int v2gParameterSetType_Parameter_currArrayIndex = 0;
-
- while(!done) {
- switch(grammarID) {
- case 1528:
- /* FirstStartTag[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}ParameterSetID)] */
- if ( 1 == 1 ) {
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- if(errn == 0) {
- /* First(xsi:type)StartTag[CHARACTERS[UNSIGNED_INTEGER]] */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- if(errn == 0) {
- errn = encodeUnsignedInteger16(stream, v2gParameterSetType->ParameterSetID);
- /* valid EE */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- }
- }
- grammarID = 1529;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 1529:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}Parameter)] */
- if (v2gParameterSetType_Parameter_currArrayIndex < v2gParameterSetType->Parameter.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- if(errn == 0) {
- errn = encode_v2gParameterType(stream, &v2gParameterSetType->Parameter.array [v2gParameterSetType_Parameter_currArrayIndex++]);
- }
- grammarID = 1530;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 1530:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}Parameter), END_ELEMENT] */
- if (v2gParameterSetType_Parameter_currArrayIndex < v2gParameterSetType->Parameter.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- errn = encode_v2gParameterType(stream, &v2gParameterSetType->Parameter.array [v2gParameterSetType_Parameter_currArrayIndex++]);
- }
- grammarID = 1531;
- } else if (1==1) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- done = 1;
- }
- grammarID = 3;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 1531:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}Parameter), END_ELEMENT] */
- if (v2gParameterSetType_Parameter_currArrayIndex < v2gParameterSetType->Parameter.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- errn = encode_v2gParameterType(stream, &v2gParameterSetType->Parameter.array [v2gParameterSetType_Parameter_currArrayIndex++]);
- }
- grammarID = 1532;
- } else if (1==1) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- done = 1;
- }
- grammarID = 3;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 1532:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}Parameter), END_ELEMENT] */
- if (v2gParameterSetType_Parameter_currArrayIndex < v2gParameterSetType->Parameter.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- errn = encode_v2gParameterType(stream, &v2gParameterSetType->Parameter.array [v2gParameterSetType_Parameter_currArrayIndex++]);
- }
- grammarID = 1533;
- } else if (1==1) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- done = 1;
- }
- grammarID = 3;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 1533:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}Parameter), END_ELEMENT] */
- if (v2gParameterSetType_Parameter_currArrayIndex < v2gParameterSetType->Parameter.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- errn = encode_v2gParameterType(stream, &v2gParameterSetType->Parameter.array [v2gParameterSetType_Parameter_currArrayIndex++]);
- }
- grammarID = 1534;
- } else if (1==1) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- done = 1;
- }
- grammarID = 3;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 1534:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}Parameter), END_ELEMENT] */
- if (v2gParameterSetType_Parameter_currArrayIndex < v2gParameterSetType->Parameter.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- errn = encode_v2gParameterType(stream, &v2gParameterSetType->Parameter.array [v2gParameterSetType_Parameter_currArrayIndex++]);
- }
- grammarID = 1535;
- } else if (1==1) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- done = 1;
- }
- grammarID = 3;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 1535:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}Parameter), END_ELEMENT] */
- if (v2gParameterSetType_Parameter_currArrayIndex < v2gParameterSetType->Parameter.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- errn = encode_v2gParameterType(stream, &v2gParameterSetType->Parameter.array [v2gParameterSetType_Parameter_currArrayIndex++]);
- }
- grammarID = 1536;
- } else if (1==1) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- done = 1;
- }
- grammarID = 3;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 1536:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}Parameter), END_ELEMENT] */
- if (v2gParameterSetType_Parameter_currArrayIndex < v2gParameterSetType->Parameter.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- errn = encode_v2gParameterType(stream, &v2gParameterSetType->Parameter.array [v2gParameterSetType_Parameter_currArrayIndex++]);
- }
- grammarID = 1537;
- } else if (1==1) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- done = 1;
- }
- grammarID = 3;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 1537:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}Parameter), END_ELEMENT] */
- if (v2gParameterSetType_Parameter_currArrayIndex < v2gParameterSetType->Parameter.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- errn = encode_v2gParameterType(stream, &v2gParameterSetType->Parameter.array [v2gParameterSetType_Parameter_currArrayIndex++]);
- }
- grammarID = 1538;
- } else if (1==1) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- done = 1;
- }
- grammarID = 3;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 1538:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}Parameter), END_ELEMENT] */
- if (v2gParameterSetType_Parameter_currArrayIndex < v2gParameterSetType->Parameter.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- errn = encode_v2gParameterType(stream, &v2gParameterSetType->Parameter.array [v2gParameterSetType_Parameter_currArrayIndex++]);
- }
- grammarID = 1539;
- } else if (1==1) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- done = 1;
- }
- grammarID = 3;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 1539:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}Parameter), END_ELEMENT] */
- if (v2gParameterSetType_Parameter_currArrayIndex < v2gParameterSetType->Parameter.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- errn = encode_v2gParameterType(stream, &v2gParameterSetType->Parameter.array [v2gParameterSetType_Parameter_currArrayIndex++]);
- }
- grammarID = 1540;
- } else if (1==1) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- done = 1;
- }
- grammarID = 3;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 1540:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}Parameter), END_ELEMENT] */
- if (v2gParameterSetType_Parameter_currArrayIndex < v2gParameterSetType->Parameter.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- errn = encode_v2gParameterType(stream, &v2gParameterSetType->Parameter.array [v2gParameterSetType_Parameter_currArrayIndex++]);
- }
- grammarID = 1541;
- } else if (1==1) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- done = 1;
- }
- grammarID = 3;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 1541:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}Parameter), END_ELEMENT] */
- if (v2gParameterSetType_Parameter_currArrayIndex < v2gParameterSetType->Parameter.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- errn = encode_v2gParameterType(stream, &v2gParameterSetType->Parameter.array [v2gParameterSetType_Parameter_currArrayIndex++]);
- }
- grammarID = 1542;
- } else if (1==1) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- done = 1;
- }
- grammarID = 3;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 1542:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}Parameter), END_ELEMENT] */
- if (v2gParameterSetType_Parameter_currArrayIndex < v2gParameterSetType->Parameter.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- errn = encode_v2gParameterType(stream, &v2gParameterSetType->Parameter.array [v2gParameterSetType_Parameter_currArrayIndex++]);
- }
- grammarID = 1543;
- } else if (1==1) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- done = 1;
- }
- grammarID = 3;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 1543:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}Parameter), END_ELEMENT] */
- if (v2gParameterSetType_Parameter_currArrayIndex < v2gParameterSetType->Parameter.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- errn = encode_v2gParameterType(stream, &v2gParameterSetType->Parameter.array [v2gParameterSetType_Parameter_currArrayIndex++]);
- }
- grammarID = 1544;
- } else if (1==1) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- done = 1;
- }
- grammarID = 3;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 1544:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}Parameter), END_ELEMENT] */
- if (v2gParameterSetType_Parameter_currArrayIndex < v2gParameterSetType->Parameter.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- errn = encode_v2gParameterType(stream, &v2gParameterSetType->Parameter.array [v2gParameterSetType_Parameter_currArrayIndex++]);
- }
- 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:2016:MsgDataTypes,SAScheduleTupleType', base type name='anyType', content type='ELEMENT', isAbstract='false', hasTypeId='false', final='0', block='0', particle='("urn:iso:15118:2:2016:MsgDataTypes":SAScheduleTupleID,"urn:iso:15118:2:2016:MsgDataTypes":PMaxSchedule,"urn:iso:15118:2:2016:MsgDataTypes":PMaxDischargeSchedule{0-1},"urn:iso:15118:2:2016:MsgDataTypes":SalesTariff{0-1},"urn:iso:15118:2:2016:MsgDataTypes":BuyBackTariff{0-1})', derivedBy='RESTRICTION'. */
-static int encode_v2gSAScheduleTupleType(bitstream_t* stream, struct v2gSAScheduleTupleType* v2gSAScheduleTupleType) {
- int grammarID = 1545;
- int done = 0;
-
-
- while(!done) {
- switch(grammarID) {
- case 1545:
- /* FirstStartTag[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SAScheduleTupleID)] */
- if ( 1 == 1 ) {
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- if(errn == 0) {
- /* FirstStartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- if(errn == 0) {
- errn = encodeNBitUnsignedInteger(stream, 8, (uint32_t)(v2gSAScheduleTupleType->SAScheduleTupleID - 1));
- /* valid EE */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- }
- }
- grammarID = 1546;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 1546:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}PMaxSchedule)] */
- if ( 1 == 1 ) {
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- if(errn == 0) {
- errn = encode_v2gPMaxScheduleType(stream, &v2gSAScheduleTupleType->PMaxSchedule );
- }
- grammarID = 1547;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 1547:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}PMaxDischargeSchedule), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SalesTariff), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}BuyBackTariff), END_ELEMENT] */
- if ( v2gSAScheduleTupleType->PMaxDischargeSchedule_isUsed == 1u ) {
- errn = encodeNBitUnsignedInteger(stream, 3, 0);
- if(errn == 0) {
- errn = encode_v2gPMaxScheduleType(stream, &v2gSAScheduleTupleType->PMaxDischargeSchedule );
- }
- grammarID = 1548;
- } else if ( v2gSAScheduleTupleType->SalesTariff_isUsed == 1u ) {
- errn = encodeNBitUnsignedInteger(stream, 3, 1);
- if(errn == 0) {
- errn = encode_v2gSalesTariffType(stream, &v2gSAScheduleTupleType->SalesTariff );
- }
- grammarID = 1549;
- } else if ( v2gSAScheduleTupleType->BuyBackTariff_isUsed == 1u ) {
- errn = encodeNBitUnsignedInteger(stream, 3, 2);
- if(errn == 0) {
- errn = encode_v2gSalesTariffType(stream, &v2gSAScheduleTupleType->BuyBackTariff );
- }
- grammarID = 2;
- } else if (1==1) {
- errn = encodeNBitUnsignedInteger(stream, 3, 3);
- if(errn == 0) {
- done = 1;
- }
- grammarID = 3;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 1548:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SalesTariff), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}BuyBackTariff), END_ELEMENT] */
- if ( v2gSAScheduleTupleType->SalesTariff_isUsed == 1u ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- errn = encode_v2gSalesTariffType(stream, &v2gSAScheduleTupleType->SalesTariff );
- }
- grammarID = 1549;
- } else if ( v2gSAScheduleTupleType->BuyBackTariff_isUsed == 1u ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- errn = encode_v2gSalesTariffType(stream, &v2gSAScheduleTupleType->BuyBackTariff );
- }
- grammarID = 2;
- } else if (1==1) {
- errn = encodeNBitUnsignedInteger(stream, 2, 2);
- if(errn == 0) {
- done = 1;
- }
- grammarID = 3;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 1549:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}BuyBackTariff), END_ELEMENT] */
- if ( v2gSAScheduleTupleType->BuyBackTariff_isUsed == 1u ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- errn = encode_v2gSalesTariffType(stream, &v2gSAScheduleTupleType->BuyBackTariff );
- }
- 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='http://www.w3.org/2000/09/xmldsig#,DSAKeyValueType', base type name='anyType', content type='ELEMENT', isAbstract='false', hasTypeId='false', final='0', block='0', particle='(("http://www.w3.org/2000/09/xmldsig#":P,"http://www.w3.org/2000/09/xmldsig#":Q){0-1},"http://www.w3.org/2000/09/xmldsig#":G{0-1},"http://www.w3.org/2000/09/xmldsig#":Y,"http://www.w3.org/2000/09/xmldsig#":J{0-1},("http://www.w3.org/2000/09/xmldsig#":Seed,"http://www.w3.org/2000/09/xmldsig#":PgenCounter){0-1})', derivedBy='RESTRICTION'. */
-static int encode_v2gDSAKeyValueType(bitstream_t* stream, struct v2gDSAKeyValueType* v2gDSAKeyValueType) {
- int grammarID = 1550;
- int done = 0;
-
-
- while(!done) {
- switch(grammarID) {
- case 1550:
- /* FirstStartTag[START_ELEMENT({http://www.w3.org/2000/09/xmldsig#}P), START_ELEMENT({http://www.w3.org/2000/09/xmldsig#}G), START_ELEMENT({http://www.w3.org/2000/09/xmldsig#}Y)] */
- if ( v2gDSAKeyValueType->P_isUsed == 1u ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- /* FirstStartTag[CHARACTERS[BINARY_BASE64]] */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- if(errn == 0) {
- errn = encodeUnsignedInteger16(stream, (uint16_t)(v2gDSAKeyValueType->P.bytesLen));
- if (errn == 0) {
- errn = encodeBytes(stream, v2gDSAKeyValueType->P.bytes, v2gDSAKeyValueType->P.bytesLen);
- }
- /* valid EE */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- }
- }
- grammarID = 1551;
- } else if ( v2gDSAKeyValueType->G_isUsed == 1u ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- /* FirstStartTag[CHARACTERS[BINARY_BASE64]] */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- if(errn == 0) {
- errn = encodeUnsignedInteger16(stream, (uint16_t)(v2gDSAKeyValueType->G.bytesLen));
- if (errn == 0) {
- errn = encodeBytes(stream, v2gDSAKeyValueType->G.bytes, v2gDSAKeyValueType->G.bytesLen);
- }
- /* valid EE */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- }
- }
- grammarID = 1552;
- } else if ( 1 == 1 ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 2);
- if(errn == 0) {
- /* FirstStartTag[CHARACTERS[BINARY_BASE64]] */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- if(errn == 0) {
- errn = encodeUnsignedInteger16(stream, (uint16_t)(v2gDSAKeyValueType->Y.bytesLen));
- if (errn == 0) {
- errn = encodeBytes(stream, v2gDSAKeyValueType->Y.bytes, v2gDSAKeyValueType->Y.bytesLen);
- }
- /* valid EE */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- }
- }
- grammarID = 1553;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 1551:
- /* Element[START_ELEMENT({http://www.w3.org/2000/09/xmldsig#}Q)] */
- if ( v2gDSAKeyValueType->Q_isUsed == 1u ) {
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- if(errn == 0) {
- /* FirstStartTag[CHARACTERS[BINARY_BASE64]] */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- if(errn == 0) {
- errn = encodeUnsignedInteger16(stream, (uint16_t)(v2gDSAKeyValueType->Q.bytesLen));
- if (errn == 0) {
- errn = encodeBytes(stream, v2gDSAKeyValueType->Q.bytes, v2gDSAKeyValueType->Q.bytesLen);
- }
- /* valid EE */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- }
- }
- grammarID = 1554;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 1554:
- /* Element[START_ELEMENT({http://www.w3.org/2000/09/xmldsig#}G), START_ELEMENT({http://www.w3.org/2000/09/xmldsig#}Y)] */
- if ( v2gDSAKeyValueType->G_isUsed == 1u ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- /* FirstStartTag[CHARACTERS[BINARY_BASE64]] */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- if(errn == 0) {
- errn = encodeUnsignedInteger16(stream, (uint16_t)(v2gDSAKeyValueType->G.bytesLen));
- if (errn == 0) {
- errn = encodeBytes(stream, v2gDSAKeyValueType->G.bytes, v2gDSAKeyValueType->G.bytesLen);
- }
- /* valid EE */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- }
- }
- grammarID = 1552;
- } else if ( 1 == 1 ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- /* FirstStartTag[CHARACTERS[BINARY_BASE64]] */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- if(errn == 0) {
- errn = encodeUnsignedInteger16(stream, (uint16_t)(v2gDSAKeyValueType->Y.bytesLen));
- if (errn == 0) {
- errn = encodeBytes(stream, v2gDSAKeyValueType->Y.bytes, v2gDSAKeyValueType->Y.bytesLen);
- }
- /* valid EE */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- }
- }
- grammarID = 1553;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 1552:
- /* Element[START_ELEMENT({http://www.w3.org/2000/09/xmldsig#}Y)] */
- if ( 1 == 1 ) {
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- if(errn == 0) {
- /* FirstStartTag[CHARACTERS[BINARY_BASE64]] */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- if(errn == 0) {
- errn = encodeUnsignedInteger16(stream, (uint16_t)(v2gDSAKeyValueType->Y.bytesLen));
- if (errn == 0) {
- errn = encodeBytes(stream, v2gDSAKeyValueType->Y.bytes, v2gDSAKeyValueType->Y.bytesLen);
- }
- /* valid EE */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- }
- }
- grammarID = 1553;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 1553:
- /* Element[START_ELEMENT({http://www.w3.org/2000/09/xmldsig#}J), START_ELEMENT({http://www.w3.org/2000/09/xmldsig#}Seed), END_ELEMENT] */
- if ( v2gDSAKeyValueType->J_isUsed == 1u ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- /* FirstStartTag[CHARACTERS[BINARY_BASE64]] */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- if(errn == 0) {
- errn = encodeUnsignedInteger16(stream, (uint16_t)(v2gDSAKeyValueType->J.bytesLen));
- if (errn == 0) {
- errn = encodeBytes(stream, v2gDSAKeyValueType->J.bytes, v2gDSAKeyValueType->J.bytesLen);
- }
- /* valid EE */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- }
- }
- grammarID = 1555;
- } else if ( v2gDSAKeyValueType->Seed_isUsed == 1u ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- /* FirstStartTag[CHARACTERS[BINARY_BASE64]] */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- if(errn == 0) {
- errn = encodeUnsignedInteger16(stream, (uint16_t)(v2gDSAKeyValueType->Seed.bytesLen));
- if (errn == 0) {
- errn = encodeBytes(stream, v2gDSAKeyValueType->Seed.bytes, v2gDSAKeyValueType->Seed.bytesLen);
- }
- /* valid EE */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- }
- }
- grammarID = 1556;
- } else if (1==1) {
- errn = encodeNBitUnsignedInteger(stream, 2, 2);
- if(errn == 0) {
- done = 1;
- }
- grammarID = 3;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 1555:
- /* Element[START_ELEMENT({http://www.w3.org/2000/09/xmldsig#}Seed), END_ELEMENT] */
- if ( v2gDSAKeyValueType->Seed_isUsed == 1u ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- /* FirstStartTag[CHARACTERS[BINARY_BASE64]] */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- if(errn == 0) {
- errn = encodeUnsignedInteger16(stream, (uint16_t)(v2gDSAKeyValueType->Seed.bytesLen));
- if (errn == 0) {
- errn = encodeBytes(stream, v2gDSAKeyValueType->Seed.bytes, v2gDSAKeyValueType->Seed.bytesLen);
- }
- /* valid EE */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- }
- }
- grammarID = 1556;
- } else if (1==1) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- done = 1;
- }
- grammarID = 3;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 1556:
- /* Element[START_ELEMENT({http://www.w3.org/2000/09/xmldsig#}PgenCounter)] */
- if ( v2gDSAKeyValueType->PgenCounter_isUsed == 1u ) {
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- if(errn == 0) {
- /* FirstStartTag[CHARACTERS[BINARY_BASE64]] */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- if(errn == 0) {
- errn = encodeUnsignedInteger16(stream, (uint16_t)(v2gDSAKeyValueType->PgenCounter.bytesLen));
- if (errn == 0) {
- errn = encodeBytes(stream, v2gDSAKeyValueType->PgenCounter.bytes, v2gDSAKeyValueType->PgenCounter.bytesLen);
- }
- /* valid EE */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- }
- }
- grammarID = 2;
- } 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:2016:MsgDataTypes,MagneticVectorType', base type name='anyType', content type='ELEMENT', isAbstract='false', hasTypeId='false', final='0', block='0', particle='("urn:iso:15118:2:2016:MsgDataTypes":GAID,"urn:iso:15118:2:2016:MsgDataTypes":Distance,"urn:iso:15118:2:2016:MsgDataTypes":AngleGAtoVA,"urn:iso:15118:2:2016:MsgDataTypes":RotationVAtoGA,"urn:iso:15118:2:2016:MsgDataTypes":FODStatus)', derivedBy='RESTRICTION'. */
-static int encode_v2gMagneticVectorType(bitstream_t* stream, struct v2gMagneticVectorType* v2gMagneticVectorType) {
- int grammarID = 1557;
- int done = 0;
-
-
- while(!done) {
- switch(grammarID) {
- case 1557:
- /* FirstStartTag[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}GAID)] */
- if ( 1 == 1 ) {
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- if(errn == 0) {
- /* FirstStartTag[CHARACTERS[STRING]] */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- if(errn == 0) {
- /* encode string as string table miss (+2 len)*/
- errn = encodeUnsignedInteger16(stream, (uint16_t)(v2gMagneticVectorType->GAID.charactersLen + 2));
- if (errn == 0) {
- errn = encodeCharacters(stream, v2gMagneticVectorType->GAID.characters, v2gMagneticVectorType->GAID.charactersLen);
- }
- /* valid EE */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- }
- }
- grammarID = 1558;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 1558:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}Distance)] */
- if ( 1 == 1 ) {
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- if(errn == 0) {
- errn = encode_v2gPhysicalValueType(stream, &v2gMagneticVectorType->Distance );
- }
- grammarID = 1559;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 1559:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}AngleGAtoVA)] */
- if ( 1 == 1 ) {
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- if(errn == 0) {
- errn = encode_v2gPhysicalValueType(stream, &v2gMagneticVectorType->AngleGAtoVA );
- }
- grammarID = 1560;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 1560:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}RotationVAtoGA)] */
- if ( 1 == 1 ) {
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- if(errn == 0) {
- errn = encode_v2gPhysicalValueType(stream, &v2gMagneticVectorType->RotationVAtoGA );
- }
- grammarID = 1561;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 1561:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}FODStatus)] */
- 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, v2gMagneticVectorType->FODStatus);
- /* valid EE */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- }
- }
- grammarID = 2;
- } 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:2016:MsgDataTypes,ServiceIDListType', base type name='anyType', content type='ELEMENT', isAbstract='false', hasTypeId='false', final='0', block='0', particle='("urn:iso:15118:2:2016:MsgDataTypes":ServiceID{1-10})', derivedBy='RESTRICTION'. */
-static int encode_v2gServiceIDListType(bitstream_t* stream, struct v2gServiceIDListType* v2gServiceIDListType) {
- int grammarID = 1562;
- int done = 0;
-
- unsigned int v2gServiceIDListType_ServiceID_currArrayIndex = 0;
-
- while(!done) {
- switch(grammarID) {
- case 1562:
- /* FirstStartTag[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}ServiceID)] */
- if (v2gServiceIDListType_ServiceID_currArrayIndex < v2gServiceIDListType->ServiceID.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- if(errn == 0) {
- /* FirstStartTag[CHARACTERS[UNSIGNED_INTEGER]] */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- if(errn == 0) {
- errn = encodeUnsignedInteger16(stream, v2gServiceIDListType->ServiceID.array[v2gServiceIDListType_ServiceID_currArrayIndex++]);
- /* valid EE */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- }
- }
- grammarID = 1563;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 1563:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}ServiceID), END_ELEMENT] */
- if (v2gServiceIDListType_ServiceID_currArrayIndex < v2gServiceIDListType->ServiceID.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- /* FirstStartTag[CHARACTERS[UNSIGNED_INTEGER]] */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- if(errn == 0) {
- errn = encodeUnsignedInteger16(stream, v2gServiceIDListType->ServiceID.array[v2gServiceIDListType_ServiceID_currArrayIndex++]);
- /* valid EE */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- }
- }
- grammarID = 1564;
- } else if (1==1) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- done = 1;
- }
- grammarID = 3;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 1564:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}ServiceID), END_ELEMENT] */
- if (v2gServiceIDListType_ServiceID_currArrayIndex < v2gServiceIDListType->ServiceID.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- /* FirstStartTag[CHARACTERS[UNSIGNED_INTEGER]] */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- if(errn == 0) {
- errn = encodeUnsignedInteger16(stream, v2gServiceIDListType->ServiceID.array[v2gServiceIDListType_ServiceID_currArrayIndex++]);
- /* valid EE */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- }
- }
- grammarID = 1565;
- } else if (1==1) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- done = 1;
- }
- grammarID = 3;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 1565:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}ServiceID), END_ELEMENT] */
- if (v2gServiceIDListType_ServiceID_currArrayIndex < v2gServiceIDListType->ServiceID.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- /* FirstStartTag[CHARACTERS[UNSIGNED_INTEGER]] */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- if(errn == 0) {
- errn = encodeUnsignedInteger16(stream, v2gServiceIDListType->ServiceID.array[v2gServiceIDListType_ServiceID_currArrayIndex++]);
- /* valid EE */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- }
- }
- grammarID = 1566;
- } else if (1==1) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- done = 1;
- }
- grammarID = 3;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 1566:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}ServiceID), END_ELEMENT] */
- if (v2gServiceIDListType_ServiceID_currArrayIndex < v2gServiceIDListType->ServiceID.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- /* FirstStartTag[CHARACTERS[UNSIGNED_INTEGER]] */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- if(errn == 0) {
- errn = encodeUnsignedInteger16(stream, v2gServiceIDListType->ServiceID.array[v2gServiceIDListType_ServiceID_currArrayIndex++]);
- /* valid EE */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- }
- }
- grammarID = 1567;
- } else if (1==1) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- done = 1;
- }
- grammarID = 3;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 1567:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}ServiceID), END_ELEMENT] */
- if (v2gServiceIDListType_ServiceID_currArrayIndex < v2gServiceIDListType->ServiceID.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- /* FirstStartTag[CHARACTERS[UNSIGNED_INTEGER]] */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- if(errn == 0) {
- errn = encodeUnsignedInteger16(stream, v2gServiceIDListType->ServiceID.array[v2gServiceIDListType_ServiceID_currArrayIndex++]);
- /* valid EE */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- }
- }
- grammarID = 1568;
- } else if (1==1) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- done = 1;
- }
- grammarID = 3;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 1568:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}ServiceID), END_ELEMENT] */
- if (v2gServiceIDListType_ServiceID_currArrayIndex < v2gServiceIDListType->ServiceID.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- /* FirstStartTag[CHARACTERS[UNSIGNED_INTEGER]] */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- if(errn == 0) {
- errn = encodeUnsignedInteger16(stream, v2gServiceIDListType->ServiceID.array[v2gServiceIDListType_ServiceID_currArrayIndex++]);
- /* valid EE */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- }
- }
- grammarID = 1569;
- } else if (1==1) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- done = 1;
- }
- grammarID = 3;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 1569:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}ServiceID), END_ELEMENT] */
- if (v2gServiceIDListType_ServiceID_currArrayIndex < v2gServiceIDListType->ServiceID.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- /* FirstStartTag[CHARACTERS[UNSIGNED_INTEGER]] */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- if(errn == 0) {
- errn = encodeUnsignedInteger16(stream, v2gServiceIDListType->ServiceID.array[v2gServiceIDListType_ServiceID_currArrayIndex++]);
- /* valid EE */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- }
- }
- grammarID = 1570;
- } else if (1==1) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- done = 1;
- }
- grammarID = 3;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 1570:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}ServiceID), END_ELEMENT] */
- if (v2gServiceIDListType_ServiceID_currArrayIndex < v2gServiceIDListType->ServiceID.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- /* FirstStartTag[CHARACTERS[UNSIGNED_INTEGER]] */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- if(errn == 0) {
- errn = encodeUnsignedInteger16(stream, v2gServiceIDListType->ServiceID.array[v2gServiceIDListType_ServiceID_currArrayIndex++]);
- /* valid EE */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- }
- }
- grammarID = 1571;
- } else if (1==1) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- done = 1;
- }
- grammarID = 3;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 1571:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}ServiceID), END_ELEMENT] */
- if (v2gServiceIDListType_ServiceID_currArrayIndex < v2gServiceIDListType->ServiceID.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- /* FirstStartTag[CHARACTERS[UNSIGNED_INTEGER]] */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- if(errn == 0) {
- errn = encodeUnsignedInteger16(stream, v2gServiceIDListType->ServiceID.array[v2gServiceIDListType_ServiceID_currArrayIndex++]);
- /* 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;
+ grammarID = 4;
} else {
errn = EXI_ERROR_UNKOWN_EVENT;
}
@@ -37109,181 +489,181 @@ static int encode_v2gServiceIDListType(bitstream_t* stream, struct v2gServiceIDL
}
/* Complex type name='http://www.w3.org/2000/09/xmldsig#,X509DataType', base type name='anyType', content type='ELEMENT', isAbstract='false', hasTypeId='false', final='0', block='0', particle='(("http://www.w3.org/2000/09/xmldsig#":X509IssuerSerial|"http://www.w3.org/2000/09/xmldsig#":X509SKI|"http://www.w3.org/2000/09/xmldsig#":X509SubjectName|"http://www.w3.org/2000/09/xmldsig#":X509Certificate|"http://www.w3.org/2000/09/xmldsig#":X509CRL|(WC[##other:"http://www.w3.org/2000/09/xmldsig#"]))){1-UNBOUNDED}', derivedBy='RESTRICTION'. */
-static int encode_v2gX509DataType(bitstream_t* stream, struct v2gX509DataType* v2gX509DataType) {
- int grammarID = 1572;
+static int encode_iso2X509DataType(bitstream_t* stream, struct iso2X509DataType* iso2X509DataType) {
+ int grammarID = 10;
int done = 0;
int wcDone = 0;
- unsigned int v2gX509DataType_X509IssuerSerial_currArrayIndex = 0;
- unsigned int v2gX509DataType_X509SKI_currArrayIndex = 0;
- unsigned int v2gX509DataType_X509SubjectName_currArrayIndex = 0;
- unsigned int v2gX509DataType_X509Certificate_currArrayIndex = 0;
- unsigned int v2gX509DataType_X509CRL_currArrayIndex = 0;
+ unsigned int iso2X509DataType_X509IssuerSerial_currArrayIndex = 0;
+ unsigned int iso2X509DataType_X509SKI_currArrayIndex = 0;
+ unsigned int iso2X509DataType_X509SubjectName_currArrayIndex = 0;
+ unsigned int iso2X509DataType_X509Certificate_currArrayIndex = 0;
+ unsigned int iso2X509DataType_X509CRL_currArrayIndex = 0;
while(!done) {
switch(grammarID) {
- case 1572:
+ case 10:
/* FirstStartTag[START_ELEMENT({http://www.w3.org/2000/09/xmldsig#}X509IssuerSerial), START_ELEMENT({http://www.w3.org/2000/09/xmldsig#}X509SKI), START_ELEMENT({http://www.w3.org/2000/09/xmldsig#}X509SubjectName), START_ELEMENT({http://www.w3.org/2000/09/xmldsig#}X509Certificate), START_ELEMENT({http://www.w3.org/2000/09/xmldsig#}X509CRL), START_ELEMENT_GENERIC] */
- if (v2gX509DataType_X509IssuerSerial_currArrayIndex < v2gX509DataType->X509IssuerSerial.arrayLen ) {
+ if (iso2X509DataType_X509IssuerSerial_currArrayIndex < iso2X509DataType->X509IssuerSerial.arrayLen ) {
errn = encodeNBitUnsignedInteger(stream, 3, 0);
if(errn == 0) {
- errn = encode_v2gX509IssuerSerialType(stream, &v2gX509DataType->X509IssuerSerial.array [v2gX509DataType_X509IssuerSerial_currArrayIndex++]);
+ errn = encode_iso2X509IssuerSerialType(stream, &iso2X509DataType->X509IssuerSerial.array [iso2X509DataType_X509IssuerSerial_currArrayIndex++]);
}
- grammarID = 1573;
- } else if (v2gX509DataType_X509SKI_currArrayIndex < v2gX509DataType->X509SKI.arrayLen ) {
+ grammarID = 11;
+ } else if (iso2X509DataType_X509SKI_currArrayIndex < iso2X509DataType->X509SKI.arrayLen ) {
errn = encodeNBitUnsignedInteger(stream, 3, 1);
if(errn == 0) {
/* First(xsi:type)StartTag[CHARACTERS[BINARY_BASE64]] */
errn = encodeNBitUnsignedInteger(stream, 1, 0);
if(errn == 0) {
- errn = encodeUnsignedInteger16(stream, (uint16_t)(v2gX509DataType->X509SKI.array[v2gX509DataType_X509SKI_currArrayIndex].bytesLen));
+ errn = encodeUnsignedInteger16(stream, (uint16_t)(iso2X509DataType->X509SKI.array[iso2X509DataType_X509SKI_currArrayIndex].bytesLen));
if (errn == 0) {
- errn = encodeBytes(stream, v2gX509DataType->X509SKI.array[v2gX509DataType_X509SKI_currArrayIndex].bytes, v2gX509DataType->X509SKI.array[v2gX509DataType_X509SKI_currArrayIndex].bytesLen);
- v2gX509DataType_X509SKI_currArrayIndex++;
+ errn = encodeBytes(stream, iso2X509DataType->X509SKI.array[iso2X509DataType_X509SKI_currArrayIndex].bytes, iso2X509DataType->X509SKI.array[iso2X509DataType_X509SKI_currArrayIndex].bytesLen);
+ iso2X509DataType_X509SKI_currArrayIndex++;
}
/* valid EE */
errn = encodeNBitUnsignedInteger(stream, 1, 0);
}
}
- grammarID = 1573;
- } else if (v2gX509DataType_X509SubjectName_currArrayIndex < v2gX509DataType->X509SubjectName.arrayLen ) {
+ grammarID = 11;
+ } else if (iso2X509DataType_X509SubjectName_currArrayIndex < iso2X509DataType->X509SubjectName.arrayLen ) {
errn = encodeNBitUnsignedInteger(stream, 3, 2);
if(errn == 0) {
/* First(xsi:type)StartTag[CHARACTERS[STRING]] */
errn = encodeNBitUnsignedInteger(stream, 1, 0);
if(errn == 0) {
/* encode string as string table miss (+2 len)*/
- errn = encodeUnsignedInteger16(stream, (uint16_t)(v2gX509DataType->X509SubjectName.array[v2gX509DataType_X509SubjectName_currArrayIndex].charactersLen + 2));
+ errn = encodeUnsignedInteger16(stream, (uint16_t)(iso2X509DataType->X509SubjectName.array[iso2X509DataType_X509SubjectName_currArrayIndex].charactersLen + 2));
if (errn == 0) {
- errn = encodeCharacters(stream, v2gX509DataType->X509SubjectName.array[v2gX509DataType_X509SubjectName_currArrayIndex].characters, v2gX509DataType->X509SubjectName.array[v2gX509DataType_X509SubjectName_currArrayIndex].charactersLen);
- v2gX509DataType_X509SubjectName_currArrayIndex++;
+ errn = encodeCharacters(stream, iso2X509DataType->X509SubjectName.array[iso2X509DataType_X509SubjectName_currArrayIndex].characters, iso2X509DataType->X509SubjectName.array[iso2X509DataType_X509SubjectName_currArrayIndex].charactersLen);
+ iso2X509DataType_X509SubjectName_currArrayIndex++;
}
/* valid EE */
errn = encodeNBitUnsignedInteger(stream, 1, 0);
}
}
- grammarID = 1573;
- } else if (v2gX509DataType_X509Certificate_currArrayIndex < v2gX509DataType->X509Certificate.arrayLen ) {
+ grammarID = 11;
+ } else if (iso2X509DataType_X509Certificate_currArrayIndex < iso2X509DataType->X509Certificate.arrayLen ) {
errn = encodeNBitUnsignedInteger(stream, 3, 3);
if(errn == 0) {
/* First(xsi:type)StartTag[CHARACTERS[BINARY_BASE64]] */
errn = encodeNBitUnsignedInteger(stream, 1, 0);
if(errn == 0) {
- errn = encodeUnsignedInteger16(stream, (uint16_t)(v2gX509DataType->X509Certificate.array[v2gX509DataType_X509Certificate_currArrayIndex].bytesLen));
+ errn = encodeUnsignedInteger16(stream, (uint16_t)(iso2X509DataType->X509Certificate.array[iso2X509DataType_X509Certificate_currArrayIndex].bytesLen));
if (errn == 0) {
- errn = encodeBytes(stream, v2gX509DataType->X509Certificate.array[v2gX509DataType_X509Certificate_currArrayIndex].bytes, v2gX509DataType->X509Certificate.array[v2gX509DataType_X509Certificate_currArrayIndex].bytesLen);
- v2gX509DataType_X509Certificate_currArrayIndex++;
+ errn = encodeBytes(stream, iso2X509DataType->X509Certificate.array[iso2X509DataType_X509Certificate_currArrayIndex].bytes, iso2X509DataType->X509Certificate.array[iso2X509DataType_X509Certificate_currArrayIndex].bytesLen);
+ iso2X509DataType_X509Certificate_currArrayIndex++;
}
/* valid EE */
errn = encodeNBitUnsignedInteger(stream, 1, 0);
}
}
- grammarID = 1573;
- } else if (v2gX509DataType_X509CRL_currArrayIndex < v2gX509DataType->X509CRL.arrayLen ) {
+ grammarID = 11;
+ } else if (iso2X509DataType_X509CRL_currArrayIndex < iso2X509DataType->X509CRL.arrayLen ) {
errn = encodeNBitUnsignedInteger(stream, 3, 4);
if(errn == 0) {
/* First(xsi:type)StartTag[CHARACTERS[BINARY_BASE64]] */
errn = encodeNBitUnsignedInteger(stream, 1, 0);
if(errn == 0) {
- errn = encodeUnsignedInteger16(stream, (uint16_t)(v2gX509DataType->X509CRL.array[v2gX509DataType_X509CRL_currArrayIndex].bytesLen));
+ errn = encodeUnsignedInteger16(stream, (uint16_t)(iso2X509DataType->X509CRL.array[iso2X509DataType_X509CRL_currArrayIndex].bytesLen));
if (errn == 0) {
- errn = encodeBytes(stream, v2gX509DataType->X509CRL.array[v2gX509DataType_X509CRL_currArrayIndex].bytes, v2gX509DataType->X509CRL.array[v2gX509DataType_X509CRL_currArrayIndex].bytesLen);
- v2gX509DataType_X509CRL_currArrayIndex++;
+ errn = encodeBytes(stream, iso2X509DataType->X509CRL.array[iso2X509DataType_X509CRL_currArrayIndex].bytes, iso2X509DataType->X509CRL.array[iso2X509DataType_X509CRL_currArrayIndex].bytesLen);
+ iso2X509DataType_X509CRL_currArrayIndex++;
}
/* valid EE */
errn = encodeNBitUnsignedInteger(stream, 1, 0);
}
}
- grammarID = 1573;
+ grammarID = 11;
} else if (1==0) {
errn = EXI_UNSUPPORTED_EVENT_CODE_CHARACTERISTICS;
- grammarID = 1573;
+ grammarID = 11;
} else {
errn = EXI_ERROR_UNKOWN_EVENT;
}
break;
- case 1573:
+ case 11:
/* Element[START_ELEMENT({http://www.w3.org/2000/09/xmldsig#}X509IssuerSerial), START_ELEMENT({http://www.w3.org/2000/09/xmldsig#}X509SKI), START_ELEMENT({http://www.w3.org/2000/09/xmldsig#}X509SubjectName), START_ELEMENT({http://www.w3.org/2000/09/xmldsig#}X509Certificate), START_ELEMENT({http://www.w3.org/2000/09/xmldsig#}X509CRL), START_ELEMENT_GENERIC, END_ELEMENT] */
- if (v2gX509DataType_X509IssuerSerial_currArrayIndex < v2gX509DataType->X509IssuerSerial.arrayLen ) {
+ if (iso2X509DataType_X509IssuerSerial_currArrayIndex < iso2X509DataType->X509IssuerSerial.arrayLen ) {
errn = encodeNBitUnsignedInteger(stream, 3, 0);
if(errn == 0) {
- errn = encode_v2gX509IssuerSerialType(stream, &v2gX509DataType->X509IssuerSerial.array [v2gX509DataType_X509IssuerSerial_currArrayIndex++]);
+ errn = encode_iso2X509IssuerSerialType(stream, &iso2X509DataType->X509IssuerSerial.array [iso2X509DataType_X509IssuerSerial_currArrayIndex++]);
}
- grammarID = 1573;
- } else if (v2gX509DataType_X509SKI_currArrayIndex < v2gX509DataType->X509SKI.arrayLen ) {
+ grammarID = 11;
+ } else if (iso2X509DataType_X509SKI_currArrayIndex < iso2X509DataType->X509SKI.arrayLen ) {
errn = encodeNBitUnsignedInteger(stream, 3, 1);
if(errn == 0) {
/* First(xsi:type)StartTag[CHARACTERS[BINARY_BASE64]] */
errn = encodeNBitUnsignedInteger(stream, 1, 0);
if(errn == 0) {
- errn = encodeUnsignedInteger16(stream, (uint16_t)(v2gX509DataType->X509SKI.array[v2gX509DataType_X509SKI_currArrayIndex].bytesLen));
+ errn = encodeUnsignedInteger16(stream, (uint16_t)(iso2X509DataType->X509SKI.array[iso2X509DataType_X509SKI_currArrayIndex].bytesLen));
if (errn == 0) {
- errn = encodeBytes(stream, v2gX509DataType->X509SKI.array[v2gX509DataType_X509SKI_currArrayIndex].bytes, v2gX509DataType->X509SKI.array[v2gX509DataType_X509SKI_currArrayIndex].bytesLen);
- v2gX509DataType_X509SKI_currArrayIndex++;
+ errn = encodeBytes(stream, iso2X509DataType->X509SKI.array[iso2X509DataType_X509SKI_currArrayIndex].bytes, iso2X509DataType->X509SKI.array[iso2X509DataType_X509SKI_currArrayIndex].bytesLen);
+ iso2X509DataType_X509SKI_currArrayIndex++;
}
/* valid EE */
errn = encodeNBitUnsignedInteger(stream, 1, 0);
}
}
- grammarID = 1573;
- } else if (v2gX509DataType_X509SubjectName_currArrayIndex < v2gX509DataType->X509SubjectName.arrayLen ) {
+ grammarID = 11;
+ } else if (iso2X509DataType_X509SubjectName_currArrayIndex < iso2X509DataType->X509SubjectName.arrayLen ) {
errn = encodeNBitUnsignedInteger(stream, 3, 2);
if(errn == 0) {
/* First(xsi:type)StartTag[CHARACTERS[STRING]] */
errn = encodeNBitUnsignedInteger(stream, 1, 0);
if(errn == 0) {
/* encode string as string table miss (+2 len)*/
- errn = encodeUnsignedInteger16(stream, (uint16_t)(v2gX509DataType->X509SubjectName.array[v2gX509DataType_X509SubjectName_currArrayIndex].charactersLen + 2));
+ errn = encodeUnsignedInteger16(stream, (uint16_t)(iso2X509DataType->X509SubjectName.array[iso2X509DataType_X509SubjectName_currArrayIndex].charactersLen + 2));
if (errn == 0) {
- errn = encodeCharacters(stream, v2gX509DataType->X509SubjectName.array[v2gX509DataType_X509SubjectName_currArrayIndex].characters, v2gX509DataType->X509SubjectName.array[v2gX509DataType_X509SubjectName_currArrayIndex].charactersLen);
- v2gX509DataType_X509SubjectName_currArrayIndex++;
+ errn = encodeCharacters(stream, iso2X509DataType->X509SubjectName.array[iso2X509DataType_X509SubjectName_currArrayIndex].characters, iso2X509DataType->X509SubjectName.array[iso2X509DataType_X509SubjectName_currArrayIndex].charactersLen);
+ iso2X509DataType_X509SubjectName_currArrayIndex++;
}
/* valid EE */
errn = encodeNBitUnsignedInteger(stream, 1, 0);
}
}
- grammarID = 1573;
- } else if (v2gX509DataType_X509Certificate_currArrayIndex < v2gX509DataType->X509Certificate.arrayLen ) {
+ grammarID = 11;
+ } else if (iso2X509DataType_X509Certificate_currArrayIndex < iso2X509DataType->X509Certificate.arrayLen ) {
errn = encodeNBitUnsignedInteger(stream, 3, 3);
if(errn == 0) {
/* First(xsi:type)StartTag[CHARACTERS[BINARY_BASE64]] */
errn = encodeNBitUnsignedInteger(stream, 1, 0);
if(errn == 0) {
- errn = encodeUnsignedInteger16(stream, (uint16_t)(v2gX509DataType->X509Certificate.array[v2gX509DataType_X509Certificate_currArrayIndex].bytesLen));
+ errn = encodeUnsignedInteger16(stream, (uint16_t)(iso2X509DataType->X509Certificate.array[iso2X509DataType_X509Certificate_currArrayIndex].bytesLen));
if (errn == 0) {
- errn = encodeBytes(stream, v2gX509DataType->X509Certificate.array[v2gX509DataType_X509Certificate_currArrayIndex].bytes, v2gX509DataType->X509Certificate.array[v2gX509DataType_X509Certificate_currArrayIndex].bytesLen);
- v2gX509DataType_X509Certificate_currArrayIndex++;
+ errn = encodeBytes(stream, iso2X509DataType->X509Certificate.array[iso2X509DataType_X509Certificate_currArrayIndex].bytes, iso2X509DataType->X509Certificate.array[iso2X509DataType_X509Certificate_currArrayIndex].bytesLen);
+ iso2X509DataType_X509Certificate_currArrayIndex++;
}
/* valid EE */
errn = encodeNBitUnsignedInteger(stream, 1, 0);
}
}
- grammarID = 1573;
- } else if (v2gX509DataType_X509CRL_currArrayIndex < v2gX509DataType->X509CRL.arrayLen ) {
+ grammarID = 11;
+ } else if (iso2X509DataType_X509CRL_currArrayIndex < iso2X509DataType->X509CRL.arrayLen ) {
errn = encodeNBitUnsignedInteger(stream, 3, 4);
if(errn == 0) {
/* First(xsi:type)StartTag[CHARACTERS[BINARY_BASE64]] */
errn = encodeNBitUnsignedInteger(stream, 1, 0);
if(errn == 0) {
- errn = encodeUnsignedInteger16(stream, (uint16_t)(v2gX509DataType->X509CRL.array[v2gX509DataType_X509CRL_currArrayIndex].bytesLen));
+ errn = encodeUnsignedInteger16(stream, (uint16_t)(iso2X509DataType->X509CRL.array[iso2X509DataType_X509CRL_currArrayIndex].bytesLen));
if (errn == 0) {
- errn = encodeBytes(stream, v2gX509DataType->X509CRL.array[v2gX509DataType_X509CRL_currArrayIndex].bytes, v2gX509DataType->X509CRL.array[v2gX509DataType_X509CRL_currArrayIndex].bytesLen);
- v2gX509DataType_X509CRL_currArrayIndex++;
+ errn = encodeBytes(stream, iso2X509DataType->X509CRL.array[iso2X509DataType_X509CRL_currArrayIndex].bytes, iso2X509DataType->X509CRL.array[iso2X509DataType_X509CRL_currArrayIndex].bytesLen);
+ iso2X509DataType_X509CRL_currArrayIndex++;
}
/* valid EE */
errn = encodeNBitUnsignedInteger(stream, 1, 0);
}
}
- grammarID = 1573;
+ grammarID = 11;
} else if (1==0) {
errn = EXI_UNSUPPORTED_EVENT_CODE_CHARACTERISTICS;
- grammarID = 1573;
- } else if ( v2gX509DataType->ANY_isUsed == 0u || wcDone ) {
+ grammarID = 11;
+ } else if ( iso2X509DataType->ANY_isUsed == 0u || wcDone ) {
errn = encodeNBitUnsignedInteger(stream, 3, 6);
if(errn == 0) {
done = 1;
}
- grammarID = 3;
+ grammarID = 4;
} else {
errn = EXI_ERROR_UNKOWN_EVENT;
}
@@ -37299,29772 +679,64 @@ static int encode_v2gX509DataType(bitstream_t* stream, struct v2gX509DataType* v
return errn;
}
-/* Complex type name='urn:iso:15118:2:2016:MsgDataTypes,EVEnergyTransferParameterType', base type name='anyType', content type='ELEMENT', isAbstract='true', hasTypeId='false', final='0', block='0', particle='("urn:iso:15118:2:2016:MsgDataTypes":DepartureTime)', derivedBy='RESTRICTION'. */
-static int encode_v2gEVEnergyTransferParameterType(bitstream_t* stream, struct v2gEVEnergyTransferParameterType* v2gEVEnergyTransferParameterType) {
- int grammarID = 1574;
+/* Complex type name='http://www.w3.org/2000/09/xmldsig#,RSAKeyValueType', base type name='anyType', content type='ELEMENT', isAbstract='false', hasTypeId='false', final='0', block='0', particle='("http://www.w3.org/2000/09/xmldsig#":Modulus,"http://www.w3.org/2000/09/xmldsig#":Exponent)', derivedBy='RESTRICTION'. */
+static int encode_iso2RSAKeyValueType(bitstream_t* stream, struct iso2RSAKeyValueType* iso2RSAKeyValueType) {
+ int grammarID = 12;
int done = 0;
while(!done) {
switch(grammarID) {
- case 1574:
- /* FirstStartTag[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}DepartureTime)] */
- if ( 1 == 1 ) {
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- if(errn == 0) {
- /* First(xsi:type)StartTag[CHARACTERS[UNSIGNED_INTEGER]] */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- if(errn == 0) {
- errn = encodeUnsignedInteger32(stream, v2gEVEnergyTransferParameterType->DepartureTime);
- /* valid EE */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- }
- }
- grammarID = 2;
- } 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:2016:MsgBody,PreChargeResType', base type name='V2GResponseType', content type='ELEMENT', isAbstract='false', hasTypeId='false', final='0', block='0', particle='(("urn:iso:15118:2:2016:MsgBody":ResponseCode,"urn:iso:15118:2:2016:MsgBody":EVSEStatus{0-1}),("urn:iso:15118:2:2016:MsgBody":EVSEPresentVoltage))', derivedBy='EXTENSION'. */
-static int encode_v2gPreChargeResType(bitstream_t* stream, struct v2gPreChargeResType* v2gPreChargeResType) {
- int grammarID = 1575;
- int done = 0;
-
-
- while(!done) {
- switch(grammarID) {
- case 1575:
- /* FirstStartTag[START_ELEMENT({urn:iso:15118:2:2016:MsgBody}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, 5, v2gPreChargeResType->ResponseCode);
- /* valid EE */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- }
- }
- grammarID = 1576;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 1576:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgBody}EVSEStatus), START_ELEMENT({urn:iso:15118:2:2016:MsgBody}EVSEPresentVoltage)] */
- if ( v2gPreChargeResType->EVSEStatus_isUsed == 1u ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- errn = encode_v2gEVSEStatusType(stream, &v2gPreChargeResType->EVSEStatus );
- }
- grammarID = 1577;
- } else if ( 1 == 1 ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- errn = encode_v2gPhysicalValueType(stream, &v2gPreChargeResType->EVSEPresentVoltage );
- }
- grammarID = 2;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 1577:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgBody}EVSEPresentVoltage)] */
- if ( 1 == 1 ) {
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- if(errn == 0) {
- errn = encode_v2gPhysicalValueType(stream, &v2gPreChargeResType->EVSEPresentVoltage );
- }
- grammarID = 2;
- } 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:2016:MsgBody,FinePositioningResType', base type name='V2GResponseType', content type='ELEMENT', isAbstract='false', hasTypeId='false', final='0', block='0', particle='(("urn:iso:15118:2:2016:MsgBody":ResponseCode,"urn:iso:15118:2:2016:MsgBody":EVSEStatus{0-1}),("urn:iso:15118:2:2016:MsgBody":EVSEProcessing,"urn:iso:15118:2:2016:MsgDataTypes":EVSEFinePositioningParameters{0-1}))', derivedBy='EXTENSION'. */
-static int encode_v2gFinePositioningResType(bitstream_t* stream, struct v2gFinePositioningResType* v2gFinePositioningResType) {
- int grammarID = 1578;
- int done = 0;
-
-
- while(!done) {
- switch(grammarID) {
- case 1578:
- /* FirstStartTag[START_ELEMENT({urn:iso:15118:2:2016:MsgBody}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, 5, v2gFinePositioningResType->ResponseCode);
- /* valid EE */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- }
- }
- grammarID = 1579;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 1579:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgBody}EVSEStatus), START_ELEMENT({urn:iso:15118:2:2016:MsgBody}EVSEProcessing)] */
- if ( v2gFinePositioningResType->EVSEStatus_isUsed == 1u ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- errn = encode_v2gEVSEStatusType(stream, &v2gFinePositioningResType->EVSEStatus );
- }
- grammarID = 1580;
- } else if ( 1 == 1 ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- /* FirstStartTag[CHARACTERS[ENUMERATION]] */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- if(errn == 0) {
- errn = encodeNBitUnsignedInteger(stream, 2, v2gFinePositioningResType->EVSEProcessing);
- /* valid EE */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- }
- }
- grammarID = 1581;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 1580:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgBody}EVSEProcessing)] */
- 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, v2gFinePositioningResType->EVSEProcessing);
- /* valid EE */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- }
- }
- grammarID = 1581;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 1581:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}EVSEFinePositioningParameters), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}Generic_EVSEFinePositioningParameters), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}LF_EVSEFinePositioningParameters), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MV_EVSEFinePositioningParameters), END_ELEMENT] */
- if ( v2gFinePositioningResType->EVSEFinePositioningParameters_isUsed == 1u ) {
- errn = encodeNBitUnsignedInteger(stream, 3, 0);
- if(errn == 0) {
- errn = encode_v2gEVSEFinePositioningParametersType(stream, &v2gFinePositioningResType->EVSEFinePositioningParameters );
- }
- grammarID = 2;
- } else if ( v2gFinePositioningResType->Generic_EVSEFinePositioningParameters_isUsed == 1u ) {
- errn = encodeNBitUnsignedInteger(stream, 3, 1);
- if(errn == 0) {
- errn = encode_v2gGeneric_EVSEFinePositioningParametersType(stream, &v2gFinePositioningResType->Generic_EVSEFinePositioningParameters );
- }
- grammarID = 2;
- } else if ( v2gFinePositioningResType->LF_EVSEFinePositioningParameters_isUsed == 1u ) {
- errn = encodeNBitUnsignedInteger(stream, 3, 2);
- if(errn == 0) {
- errn = encode_v2gLF_EVSEFinePositioningParametersType(stream, &v2gFinePositioningResType->LF_EVSEFinePositioningParameters );
- }
- grammarID = 2;
- } else if ( v2gFinePositioningResType->MV_EVSEFinePositioningParameters_isUsed == 1u ) {
- errn = encodeNBitUnsignedInteger(stream, 3, 3);
- if(errn == 0) {
- errn = encode_v2gMV_EVSEFinePositioningParametersType(stream, &v2gFinePositioningResType->MV_EVSEFinePositioningParameters );
- }
- grammarID = 2;
- } else if (1==1) {
- errn = encodeNBitUnsignedInteger(stream, 3, 4);
- 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:2016:MsgDataTypes,LFA_EVSEFinePositioningSetupParametersType', base type name='EVSEFinePositioningSetupParametersType', content type='ELEMENT', isAbstract='false', hasTypeId='false', final='0', block='0', particle='("urn:iso:15118:2:2016:MsgDataTypes":NumberOfSensors,"urn:iso:15118:2:2016:MsgDataTypes":SensorList,"urn:iso:15118:2:2016:MsgDataTypes":SensorOrder{1-255},"urn:iso:15118:2:2016:MsgDataTypes":SignalPulseDuration,"urn:iso:15118:2:2016:MsgDataTypes":SignalSeparationTime,"urn:iso:15118:2:2016:MsgDataTypes":PackageSeparationTime,"urn:iso:15118:2:2016:MsgDataTypes":AlignmentOffset,"urn:iso:15118:2:2016:MsgDataTypes":SignalFrequency)', derivedBy='EXTENSION'. */
-static int encode_v2gLFA_EVSEFinePositioningSetupParametersType(bitstream_t* stream, struct v2gLFA_EVSEFinePositioningSetupParametersType* v2gLFA_EVSEFinePositioningSetupParametersType) {
- int grammarID = 1582;
- int done = 0;
-
- unsigned int v2gLFA_EVSEFinePositioningSetupParametersType_SensorOrder_currArrayIndex = 0;
-
- while(!done) {
- switch(grammarID) {
- case 1582:
- /* FirstStartTag[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}NumberOfSensors)] */
- if ( 1 == 1 ) {
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- if(errn == 0) {
- /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- if(errn == 0) {
- errn = encodeNBitUnsignedInteger(stream, 8, (uint32_t)(v2gLFA_EVSEFinePositioningSetupParametersType->NumberOfSensors - 0));
- /* valid EE */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- }
- }
- grammarID = 1583;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 1583:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorList)] */
- if ( 1 == 1 ) {
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- if(errn == 0) {
- errn = encode_v2gSensorListType(stream, &v2gLFA_EVSEFinePositioningSetupParametersType->SensorList );
- }
- grammarID = 1584;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 1584:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorOrder)] */
- if (v2gLFA_EVSEFinePositioningSetupParametersType_SensorOrder_currArrayIndex < v2gLFA_EVSEFinePositioningSetupParametersType->SensorOrder.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- if(errn == 0) {
- /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- if(errn == 0) {
- errn = encodeNBitUnsignedInteger(stream, 8, (uint32_t)(v2gLFA_EVSEFinePositioningSetupParametersType->SensorOrder.array[v2gLFA_EVSEFinePositioningSetupParametersType_SensorOrder_currArrayIndex++] - 0));
- /* valid EE */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- }
- }
- grammarID = 1585;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 1585:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorOrder), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SignalPulseDuration)] */
- if (v2gLFA_EVSEFinePositioningSetupParametersType_SensorOrder_currArrayIndex < v2gLFA_EVSEFinePositioningSetupParametersType->SensorOrder.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- if(errn == 0) {
- errn = encodeNBitUnsignedInteger(stream, 8, (uint32_t)(v2gLFA_EVSEFinePositioningSetupParametersType->SensorOrder.array[v2gLFA_EVSEFinePositioningSetupParametersType_SensorOrder_currArrayIndex++] - 0));
- /* valid EE */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- }
- }
- grammarID = 1586;
- } else if ( 1 == 1 ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- if(errn == 0) {
- errn = encodeNBitUnsignedInteger(stream, 8, (uint32_t)(v2gLFA_EVSEFinePositioningSetupParametersType->SignalPulseDuration - 0));
- /* valid EE */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- }
- }
- grammarID = 1587;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 1586:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorOrder), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SignalPulseDuration)] */
- if (v2gLFA_EVSEFinePositioningSetupParametersType_SensorOrder_currArrayIndex < v2gLFA_EVSEFinePositioningSetupParametersType->SensorOrder.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- if(errn == 0) {
- errn = encodeNBitUnsignedInteger(stream, 8, (uint32_t)(v2gLFA_EVSEFinePositioningSetupParametersType->SensorOrder.array[v2gLFA_EVSEFinePositioningSetupParametersType_SensorOrder_currArrayIndex++] - 0));
- /* valid EE */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- }
- }
- grammarID = 1588;
- } else if ( 1 == 1 ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- if(errn == 0) {
- errn = encodeNBitUnsignedInteger(stream, 8, (uint32_t)(v2gLFA_EVSEFinePositioningSetupParametersType->SignalPulseDuration - 0));
- /* valid EE */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- }
- }
- grammarID = 1587;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 1588:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorOrder), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SignalPulseDuration)] */
- if (v2gLFA_EVSEFinePositioningSetupParametersType_SensorOrder_currArrayIndex < v2gLFA_EVSEFinePositioningSetupParametersType->SensorOrder.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- if(errn == 0) {
- errn = encodeNBitUnsignedInteger(stream, 8, (uint32_t)(v2gLFA_EVSEFinePositioningSetupParametersType->SensorOrder.array[v2gLFA_EVSEFinePositioningSetupParametersType_SensorOrder_currArrayIndex++] - 0));
- /* valid EE */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- }
- }
- grammarID = 1589;
- } else if ( 1 == 1 ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- if(errn == 0) {
- errn = encodeNBitUnsignedInteger(stream, 8, (uint32_t)(v2gLFA_EVSEFinePositioningSetupParametersType->SignalPulseDuration - 0));
- /* valid EE */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- }
- }
- grammarID = 1587;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 1589:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorOrder), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SignalPulseDuration)] */
- if (v2gLFA_EVSEFinePositioningSetupParametersType_SensorOrder_currArrayIndex < v2gLFA_EVSEFinePositioningSetupParametersType->SensorOrder.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- if(errn == 0) {
- errn = encodeNBitUnsignedInteger(stream, 8, (uint32_t)(v2gLFA_EVSEFinePositioningSetupParametersType->SensorOrder.array[v2gLFA_EVSEFinePositioningSetupParametersType_SensorOrder_currArrayIndex++] - 0));
- /* valid EE */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- }
- }
- grammarID = 1590;
- } else if ( 1 == 1 ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- if(errn == 0) {
- errn = encodeNBitUnsignedInteger(stream, 8, (uint32_t)(v2gLFA_EVSEFinePositioningSetupParametersType->SignalPulseDuration - 0));
- /* valid EE */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- }
- }
- grammarID = 1587;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 1590:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorOrder), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SignalPulseDuration)] */
- if (v2gLFA_EVSEFinePositioningSetupParametersType_SensorOrder_currArrayIndex < v2gLFA_EVSEFinePositioningSetupParametersType->SensorOrder.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- if(errn == 0) {
- errn = encodeNBitUnsignedInteger(stream, 8, (uint32_t)(v2gLFA_EVSEFinePositioningSetupParametersType->SensorOrder.array[v2gLFA_EVSEFinePositioningSetupParametersType_SensorOrder_currArrayIndex++] - 0));
- /* valid EE */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- }
- }
- grammarID = 1591;
- } else if ( 1 == 1 ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- if(errn == 0) {
- errn = encodeNBitUnsignedInteger(stream, 8, (uint32_t)(v2gLFA_EVSEFinePositioningSetupParametersType->SignalPulseDuration - 0));
- /* valid EE */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- }
- }
- grammarID = 1587;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 1591:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorOrder), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SignalPulseDuration)] */
- if (v2gLFA_EVSEFinePositioningSetupParametersType_SensorOrder_currArrayIndex < v2gLFA_EVSEFinePositioningSetupParametersType->SensorOrder.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- if(errn == 0) {
- errn = encodeNBitUnsignedInteger(stream, 8, (uint32_t)(v2gLFA_EVSEFinePositioningSetupParametersType->SensorOrder.array[v2gLFA_EVSEFinePositioningSetupParametersType_SensorOrder_currArrayIndex++] - 0));
- /* valid EE */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- }
- }
- grammarID = 1592;
- } else if ( 1 == 1 ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- if(errn == 0) {
- errn = encodeNBitUnsignedInteger(stream, 8, (uint32_t)(v2gLFA_EVSEFinePositioningSetupParametersType->SignalPulseDuration - 0));
- /* valid EE */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- }
- }
- grammarID = 1587;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 1592:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorOrder), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SignalPulseDuration)] */
- if (v2gLFA_EVSEFinePositioningSetupParametersType_SensorOrder_currArrayIndex < v2gLFA_EVSEFinePositioningSetupParametersType->SensorOrder.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- if(errn == 0) {
- errn = encodeNBitUnsignedInteger(stream, 8, (uint32_t)(v2gLFA_EVSEFinePositioningSetupParametersType->SensorOrder.array[v2gLFA_EVSEFinePositioningSetupParametersType_SensorOrder_currArrayIndex++] - 0));
- /* valid EE */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- }
- }
- grammarID = 1593;
- } else if ( 1 == 1 ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- if(errn == 0) {
- errn = encodeNBitUnsignedInteger(stream, 8, (uint32_t)(v2gLFA_EVSEFinePositioningSetupParametersType->SignalPulseDuration - 0));
- /* valid EE */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- }
- }
- grammarID = 1587;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 1593:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorOrder), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SignalPulseDuration)] */
- if (v2gLFA_EVSEFinePositioningSetupParametersType_SensorOrder_currArrayIndex < v2gLFA_EVSEFinePositioningSetupParametersType->SensorOrder.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- if(errn == 0) {
- errn = encodeNBitUnsignedInteger(stream, 8, (uint32_t)(v2gLFA_EVSEFinePositioningSetupParametersType->SensorOrder.array[v2gLFA_EVSEFinePositioningSetupParametersType_SensorOrder_currArrayIndex++] - 0));
- /* valid EE */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- }
- }
- grammarID = 1594;
- } else if ( 1 == 1 ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- if(errn == 0) {
- errn = encodeNBitUnsignedInteger(stream, 8, (uint32_t)(v2gLFA_EVSEFinePositioningSetupParametersType->SignalPulseDuration - 0));
- /* valid EE */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- }
- }
- grammarID = 1587;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 1594:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorOrder), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SignalPulseDuration)] */
- if (v2gLFA_EVSEFinePositioningSetupParametersType_SensorOrder_currArrayIndex < v2gLFA_EVSEFinePositioningSetupParametersType->SensorOrder.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- if(errn == 0) {
- errn = encodeNBitUnsignedInteger(stream, 8, (uint32_t)(v2gLFA_EVSEFinePositioningSetupParametersType->SensorOrder.array[v2gLFA_EVSEFinePositioningSetupParametersType_SensorOrder_currArrayIndex++] - 0));
- /* valid EE */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- }
- }
- grammarID = 1595;
- } else if ( 1 == 1 ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- if(errn == 0) {
- errn = encodeNBitUnsignedInteger(stream, 8, (uint32_t)(v2gLFA_EVSEFinePositioningSetupParametersType->SignalPulseDuration - 0));
- /* valid EE */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- }
- }
- grammarID = 1587;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 1595:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorOrder), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SignalPulseDuration)] */
- if (v2gLFA_EVSEFinePositioningSetupParametersType_SensorOrder_currArrayIndex < v2gLFA_EVSEFinePositioningSetupParametersType->SensorOrder.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- if(errn == 0) {
- errn = encodeNBitUnsignedInteger(stream, 8, (uint32_t)(v2gLFA_EVSEFinePositioningSetupParametersType->SensorOrder.array[v2gLFA_EVSEFinePositioningSetupParametersType_SensorOrder_currArrayIndex++] - 0));
- /* valid EE */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- }
- }
- grammarID = 1596;
- } else if ( 1 == 1 ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- if(errn == 0) {
- errn = encodeNBitUnsignedInteger(stream, 8, (uint32_t)(v2gLFA_EVSEFinePositioningSetupParametersType->SignalPulseDuration - 0));
- /* valid EE */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- }
- }
- grammarID = 1587;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 1596:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorOrder), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SignalPulseDuration)] */
- if (v2gLFA_EVSEFinePositioningSetupParametersType_SensorOrder_currArrayIndex < v2gLFA_EVSEFinePositioningSetupParametersType->SensorOrder.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- if(errn == 0) {
- errn = encodeNBitUnsignedInteger(stream, 8, (uint32_t)(v2gLFA_EVSEFinePositioningSetupParametersType->SensorOrder.array[v2gLFA_EVSEFinePositioningSetupParametersType_SensorOrder_currArrayIndex++] - 0));
- /* valid EE */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- }
- }
- grammarID = 1597;
- } else if ( 1 == 1 ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- if(errn == 0) {
- errn = encodeNBitUnsignedInteger(stream, 8, (uint32_t)(v2gLFA_EVSEFinePositioningSetupParametersType->SignalPulseDuration - 0));
- /* valid EE */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- }
- }
- grammarID = 1587;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 1597:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorOrder), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SignalPulseDuration)] */
- if (v2gLFA_EVSEFinePositioningSetupParametersType_SensorOrder_currArrayIndex < v2gLFA_EVSEFinePositioningSetupParametersType->SensorOrder.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- if(errn == 0) {
- errn = encodeNBitUnsignedInteger(stream, 8, (uint32_t)(v2gLFA_EVSEFinePositioningSetupParametersType->SensorOrder.array[v2gLFA_EVSEFinePositioningSetupParametersType_SensorOrder_currArrayIndex++] - 0));
- /* valid EE */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- }
- }
- grammarID = 1598;
- } else if ( 1 == 1 ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- if(errn == 0) {
- errn = encodeNBitUnsignedInteger(stream, 8, (uint32_t)(v2gLFA_EVSEFinePositioningSetupParametersType->SignalPulseDuration - 0));
- /* valid EE */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- }
- }
- grammarID = 1587;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 1598:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorOrder), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SignalPulseDuration)] */
- if (v2gLFA_EVSEFinePositioningSetupParametersType_SensorOrder_currArrayIndex < v2gLFA_EVSEFinePositioningSetupParametersType->SensorOrder.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- if(errn == 0) {
- errn = encodeNBitUnsignedInteger(stream, 8, (uint32_t)(v2gLFA_EVSEFinePositioningSetupParametersType->SensorOrder.array[v2gLFA_EVSEFinePositioningSetupParametersType_SensorOrder_currArrayIndex++] - 0));
- /* valid EE */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- }
- }
- grammarID = 1599;
- } else if ( 1 == 1 ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- if(errn == 0) {
- errn = encodeNBitUnsignedInteger(stream, 8, (uint32_t)(v2gLFA_EVSEFinePositioningSetupParametersType->SignalPulseDuration - 0));
- /* valid EE */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- }
- }
- grammarID = 1587;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 1599:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorOrder), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SignalPulseDuration)] */
- if (v2gLFA_EVSEFinePositioningSetupParametersType_SensorOrder_currArrayIndex < v2gLFA_EVSEFinePositioningSetupParametersType->SensorOrder.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- if(errn == 0) {
- errn = encodeNBitUnsignedInteger(stream, 8, (uint32_t)(v2gLFA_EVSEFinePositioningSetupParametersType->SensorOrder.array[v2gLFA_EVSEFinePositioningSetupParametersType_SensorOrder_currArrayIndex++] - 0));
- /* valid EE */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- }
- }
- grammarID = 1600;
- } else if ( 1 == 1 ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- if(errn == 0) {
- errn = encodeNBitUnsignedInteger(stream, 8, (uint32_t)(v2gLFA_EVSEFinePositioningSetupParametersType->SignalPulseDuration - 0));
- /* valid EE */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- }
- }
- grammarID = 1587;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 1600:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorOrder), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SignalPulseDuration)] */
- if (v2gLFA_EVSEFinePositioningSetupParametersType_SensorOrder_currArrayIndex < v2gLFA_EVSEFinePositioningSetupParametersType->SensorOrder.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- if(errn == 0) {
- errn = encodeNBitUnsignedInteger(stream, 8, (uint32_t)(v2gLFA_EVSEFinePositioningSetupParametersType->SensorOrder.array[v2gLFA_EVSEFinePositioningSetupParametersType_SensorOrder_currArrayIndex++] - 0));
- /* valid EE */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- }
- }
- grammarID = 1601;
- } else if ( 1 == 1 ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- if(errn == 0) {
- errn = encodeNBitUnsignedInteger(stream, 8, (uint32_t)(v2gLFA_EVSEFinePositioningSetupParametersType->SignalPulseDuration - 0));
- /* valid EE */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- }
- }
- grammarID = 1587;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 1601:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorOrder), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SignalPulseDuration)] */
- if (v2gLFA_EVSEFinePositioningSetupParametersType_SensorOrder_currArrayIndex < v2gLFA_EVSEFinePositioningSetupParametersType->SensorOrder.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- if(errn == 0) {
- errn = encodeNBitUnsignedInteger(stream, 8, (uint32_t)(v2gLFA_EVSEFinePositioningSetupParametersType->SensorOrder.array[v2gLFA_EVSEFinePositioningSetupParametersType_SensorOrder_currArrayIndex++] - 0));
- /* valid EE */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- }
- }
- grammarID = 1602;
- } else if ( 1 == 1 ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- if(errn == 0) {
- errn = encodeNBitUnsignedInteger(stream, 8, (uint32_t)(v2gLFA_EVSEFinePositioningSetupParametersType->SignalPulseDuration - 0));
- /* valid EE */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- }
- }
- grammarID = 1587;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 1602:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorOrder), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SignalPulseDuration)] */
- if (v2gLFA_EVSEFinePositioningSetupParametersType_SensorOrder_currArrayIndex < v2gLFA_EVSEFinePositioningSetupParametersType->SensorOrder.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- if(errn == 0) {
- errn = encodeNBitUnsignedInteger(stream, 8, (uint32_t)(v2gLFA_EVSEFinePositioningSetupParametersType->SensorOrder.array[v2gLFA_EVSEFinePositioningSetupParametersType_SensorOrder_currArrayIndex++] - 0));
- /* valid EE */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- }
- }
- grammarID = 1603;
- } else if ( 1 == 1 ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- if(errn == 0) {
- errn = encodeNBitUnsignedInteger(stream, 8, (uint32_t)(v2gLFA_EVSEFinePositioningSetupParametersType->SignalPulseDuration - 0));
- /* valid EE */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- }
- }
- grammarID = 1587;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 1603:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorOrder), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SignalPulseDuration)] */
- if (v2gLFA_EVSEFinePositioningSetupParametersType_SensorOrder_currArrayIndex < v2gLFA_EVSEFinePositioningSetupParametersType->SensorOrder.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- if(errn == 0) {
- errn = encodeNBitUnsignedInteger(stream, 8, (uint32_t)(v2gLFA_EVSEFinePositioningSetupParametersType->SensorOrder.array[v2gLFA_EVSEFinePositioningSetupParametersType_SensorOrder_currArrayIndex++] - 0));
- /* valid EE */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- }
- }
- grammarID = 1604;
- } else if ( 1 == 1 ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- if(errn == 0) {
- errn = encodeNBitUnsignedInteger(stream, 8, (uint32_t)(v2gLFA_EVSEFinePositioningSetupParametersType->SignalPulseDuration - 0));
- /* valid EE */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- }
- }
- grammarID = 1587;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 1604:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorOrder), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SignalPulseDuration)] */
- if (v2gLFA_EVSEFinePositioningSetupParametersType_SensorOrder_currArrayIndex < v2gLFA_EVSEFinePositioningSetupParametersType->SensorOrder.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- if(errn == 0) {
- errn = encodeNBitUnsignedInteger(stream, 8, (uint32_t)(v2gLFA_EVSEFinePositioningSetupParametersType->SensorOrder.array[v2gLFA_EVSEFinePositioningSetupParametersType_SensorOrder_currArrayIndex++] - 0));
- /* valid EE */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- }
- }
- grammarID = 1605;
- } else if ( 1 == 1 ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- if(errn == 0) {
- errn = encodeNBitUnsignedInteger(stream, 8, (uint32_t)(v2gLFA_EVSEFinePositioningSetupParametersType->SignalPulseDuration - 0));
- /* valid EE */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- }
- }
- grammarID = 1587;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 1605:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorOrder), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SignalPulseDuration)] */
- if (v2gLFA_EVSEFinePositioningSetupParametersType_SensorOrder_currArrayIndex < v2gLFA_EVSEFinePositioningSetupParametersType->SensorOrder.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- if(errn == 0) {
- errn = encodeNBitUnsignedInteger(stream, 8, (uint32_t)(v2gLFA_EVSEFinePositioningSetupParametersType->SensorOrder.array[v2gLFA_EVSEFinePositioningSetupParametersType_SensorOrder_currArrayIndex++] - 0));
- /* valid EE */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- }
- }
- grammarID = 1606;
- } else if ( 1 == 1 ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- if(errn == 0) {
- errn = encodeNBitUnsignedInteger(stream, 8, (uint32_t)(v2gLFA_EVSEFinePositioningSetupParametersType->SignalPulseDuration - 0));
- /* valid EE */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- }
- }
- grammarID = 1587;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 1606:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorOrder), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SignalPulseDuration)] */
- if (v2gLFA_EVSEFinePositioningSetupParametersType_SensorOrder_currArrayIndex < v2gLFA_EVSEFinePositioningSetupParametersType->SensorOrder.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- if(errn == 0) {
- errn = encodeNBitUnsignedInteger(stream, 8, (uint32_t)(v2gLFA_EVSEFinePositioningSetupParametersType->SensorOrder.array[v2gLFA_EVSEFinePositioningSetupParametersType_SensorOrder_currArrayIndex++] - 0));
- /* valid EE */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- }
- }
- grammarID = 1607;
- } else if ( 1 == 1 ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- if(errn == 0) {
- errn = encodeNBitUnsignedInteger(stream, 8, (uint32_t)(v2gLFA_EVSEFinePositioningSetupParametersType->SignalPulseDuration - 0));
- /* valid EE */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- }
- }
- grammarID = 1587;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 1607:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorOrder), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SignalPulseDuration)] */
- if (v2gLFA_EVSEFinePositioningSetupParametersType_SensorOrder_currArrayIndex < v2gLFA_EVSEFinePositioningSetupParametersType->SensorOrder.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- if(errn == 0) {
- errn = encodeNBitUnsignedInteger(stream, 8, (uint32_t)(v2gLFA_EVSEFinePositioningSetupParametersType->SensorOrder.array[v2gLFA_EVSEFinePositioningSetupParametersType_SensorOrder_currArrayIndex++] - 0));
- /* valid EE */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- }
- }
- grammarID = 1608;
- } else if ( 1 == 1 ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- if(errn == 0) {
- errn = encodeNBitUnsignedInteger(stream, 8, (uint32_t)(v2gLFA_EVSEFinePositioningSetupParametersType->SignalPulseDuration - 0));
- /* valid EE */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- }
- }
- grammarID = 1587;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 1608:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorOrder), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SignalPulseDuration)] */
- if (v2gLFA_EVSEFinePositioningSetupParametersType_SensorOrder_currArrayIndex < v2gLFA_EVSEFinePositioningSetupParametersType->SensorOrder.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- if(errn == 0) {
- errn = encodeNBitUnsignedInteger(stream, 8, (uint32_t)(v2gLFA_EVSEFinePositioningSetupParametersType->SensorOrder.array[v2gLFA_EVSEFinePositioningSetupParametersType_SensorOrder_currArrayIndex++] - 0));
- /* valid EE */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- }
- }
- grammarID = 1609;
- } else if ( 1 == 1 ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- if(errn == 0) {
- errn = encodeNBitUnsignedInteger(stream, 8, (uint32_t)(v2gLFA_EVSEFinePositioningSetupParametersType->SignalPulseDuration - 0));
- /* valid EE */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- }
- }
- grammarID = 1587;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 1609:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorOrder), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SignalPulseDuration)] */
- if (v2gLFA_EVSEFinePositioningSetupParametersType_SensorOrder_currArrayIndex < v2gLFA_EVSEFinePositioningSetupParametersType->SensorOrder.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- if(errn == 0) {
- errn = encodeNBitUnsignedInteger(stream, 8, (uint32_t)(v2gLFA_EVSEFinePositioningSetupParametersType->SensorOrder.array[v2gLFA_EVSEFinePositioningSetupParametersType_SensorOrder_currArrayIndex++] - 0));
- /* valid EE */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- }
- }
- grammarID = 1610;
- } else if ( 1 == 1 ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- if(errn == 0) {
- errn = encodeNBitUnsignedInteger(stream, 8, (uint32_t)(v2gLFA_EVSEFinePositioningSetupParametersType->SignalPulseDuration - 0));
- /* valid EE */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- }
- }
- grammarID = 1587;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 1610:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorOrder), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SignalPulseDuration)] */
- if (v2gLFA_EVSEFinePositioningSetupParametersType_SensorOrder_currArrayIndex < v2gLFA_EVSEFinePositioningSetupParametersType->SensorOrder.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- if(errn == 0) {
- errn = encodeNBitUnsignedInteger(stream, 8, (uint32_t)(v2gLFA_EVSEFinePositioningSetupParametersType->SensorOrder.array[v2gLFA_EVSEFinePositioningSetupParametersType_SensorOrder_currArrayIndex++] - 0));
- /* valid EE */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- }
- }
- grammarID = 1611;
- } else if ( 1 == 1 ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- if(errn == 0) {
- errn = encodeNBitUnsignedInteger(stream, 8, (uint32_t)(v2gLFA_EVSEFinePositioningSetupParametersType->SignalPulseDuration - 0));
- /* valid EE */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- }
- }
- grammarID = 1587;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 1611:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorOrder), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SignalPulseDuration)] */
- if (v2gLFA_EVSEFinePositioningSetupParametersType_SensorOrder_currArrayIndex < v2gLFA_EVSEFinePositioningSetupParametersType->SensorOrder.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- if(errn == 0) {
- errn = encodeNBitUnsignedInteger(stream, 8, (uint32_t)(v2gLFA_EVSEFinePositioningSetupParametersType->SensorOrder.array[v2gLFA_EVSEFinePositioningSetupParametersType_SensorOrder_currArrayIndex++] - 0));
- /* valid EE */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- }
- }
- grammarID = 1612;
- } else if ( 1 == 1 ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- if(errn == 0) {
- errn = encodeNBitUnsignedInteger(stream, 8, (uint32_t)(v2gLFA_EVSEFinePositioningSetupParametersType->SignalPulseDuration - 0));
- /* valid EE */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- }
- }
- grammarID = 1587;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 1612:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorOrder), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SignalPulseDuration)] */
- if (v2gLFA_EVSEFinePositioningSetupParametersType_SensorOrder_currArrayIndex < v2gLFA_EVSEFinePositioningSetupParametersType->SensorOrder.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- if(errn == 0) {
- errn = encodeNBitUnsignedInteger(stream, 8, (uint32_t)(v2gLFA_EVSEFinePositioningSetupParametersType->SensorOrder.array[v2gLFA_EVSEFinePositioningSetupParametersType_SensorOrder_currArrayIndex++] - 0));
- /* valid EE */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- }
- }
- grammarID = 1613;
- } else if ( 1 == 1 ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- if(errn == 0) {
- errn = encodeNBitUnsignedInteger(stream, 8, (uint32_t)(v2gLFA_EVSEFinePositioningSetupParametersType->SignalPulseDuration - 0));
- /* valid EE */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- }
- }
- grammarID = 1587;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 1613:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorOrder), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SignalPulseDuration)] */
- if (v2gLFA_EVSEFinePositioningSetupParametersType_SensorOrder_currArrayIndex < v2gLFA_EVSEFinePositioningSetupParametersType->SensorOrder.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- if(errn == 0) {
- errn = encodeNBitUnsignedInteger(stream, 8, (uint32_t)(v2gLFA_EVSEFinePositioningSetupParametersType->SensorOrder.array[v2gLFA_EVSEFinePositioningSetupParametersType_SensorOrder_currArrayIndex++] - 0));
- /* valid EE */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- }
- }
- grammarID = 1614;
- } else if ( 1 == 1 ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- if(errn == 0) {
- errn = encodeNBitUnsignedInteger(stream, 8, (uint32_t)(v2gLFA_EVSEFinePositioningSetupParametersType->SignalPulseDuration - 0));
- /* valid EE */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- }
- }
- grammarID = 1587;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 1614:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorOrder), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SignalPulseDuration)] */
- if (v2gLFA_EVSEFinePositioningSetupParametersType_SensorOrder_currArrayIndex < v2gLFA_EVSEFinePositioningSetupParametersType->SensorOrder.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- if(errn == 0) {
- errn = encodeNBitUnsignedInteger(stream, 8, (uint32_t)(v2gLFA_EVSEFinePositioningSetupParametersType->SensorOrder.array[v2gLFA_EVSEFinePositioningSetupParametersType_SensorOrder_currArrayIndex++] - 0));
- /* valid EE */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- }
- }
- grammarID = 1615;
- } else if ( 1 == 1 ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- if(errn == 0) {
- errn = encodeNBitUnsignedInteger(stream, 8, (uint32_t)(v2gLFA_EVSEFinePositioningSetupParametersType->SignalPulseDuration - 0));
- /* valid EE */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- }
- }
- grammarID = 1587;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 1615:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorOrder), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SignalPulseDuration)] */
- if (v2gLFA_EVSEFinePositioningSetupParametersType_SensorOrder_currArrayIndex < v2gLFA_EVSEFinePositioningSetupParametersType->SensorOrder.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- if(errn == 0) {
- errn = encodeNBitUnsignedInteger(stream, 8, (uint32_t)(v2gLFA_EVSEFinePositioningSetupParametersType->SensorOrder.array[v2gLFA_EVSEFinePositioningSetupParametersType_SensorOrder_currArrayIndex++] - 0));
- /* valid EE */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- }
- }
- grammarID = 1616;
- } else if ( 1 == 1 ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- if(errn == 0) {
- errn = encodeNBitUnsignedInteger(stream, 8, (uint32_t)(v2gLFA_EVSEFinePositioningSetupParametersType->SignalPulseDuration - 0));
- /* valid EE */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- }
- }
- grammarID = 1587;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 1616:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorOrder), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SignalPulseDuration)] */
- if (v2gLFA_EVSEFinePositioningSetupParametersType_SensorOrder_currArrayIndex < v2gLFA_EVSEFinePositioningSetupParametersType->SensorOrder.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- if(errn == 0) {
- errn = encodeNBitUnsignedInteger(stream, 8, (uint32_t)(v2gLFA_EVSEFinePositioningSetupParametersType->SensorOrder.array[v2gLFA_EVSEFinePositioningSetupParametersType_SensorOrder_currArrayIndex++] - 0));
- /* valid EE */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- }
- }
- grammarID = 1617;
- } else if ( 1 == 1 ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- if(errn == 0) {
- errn = encodeNBitUnsignedInteger(stream, 8, (uint32_t)(v2gLFA_EVSEFinePositioningSetupParametersType->SignalPulseDuration - 0));
- /* valid EE */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- }
- }
- grammarID = 1587;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 1617:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorOrder), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SignalPulseDuration)] */
- if (v2gLFA_EVSEFinePositioningSetupParametersType_SensorOrder_currArrayIndex < v2gLFA_EVSEFinePositioningSetupParametersType->SensorOrder.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- if(errn == 0) {
- errn = encodeNBitUnsignedInteger(stream, 8, (uint32_t)(v2gLFA_EVSEFinePositioningSetupParametersType->SensorOrder.array[v2gLFA_EVSEFinePositioningSetupParametersType_SensorOrder_currArrayIndex++] - 0));
- /* valid EE */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- }
- }
- grammarID = 1618;
- } else if ( 1 == 1 ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- if(errn == 0) {
- errn = encodeNBitUnsignedInteger(stream, 8, (uint32_t)(v2gLFA_EVSEFinePositioningSetupParametersType->SignalPulseDuration - 0));
- /* valid EE */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- }
- }
- grammarID = 1587;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 1618:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorOrder), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SignalPulseDuration)] */
- if (v2gLFA_EVSEFinePositioningSetupParametersType_SensorOrder_currArrayIndex < v2gLFA_EVSEFinePositioningSetupParametersType->SensorOrder.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- if(errn == 0) {
- errn = encodeNBitUnsignedInteger(stream, 8, (uint32_t)(v2gLFA_EVSEFinePositioningSetupParametersType->SensorOrder.array[v2gLFA_EVSEFinePositioningSetupParametersType_SensorOrder_currArrayIndex++] - 0));
- /* valid EE */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- }
- }
- grammarID = 1619;
- } else if ( 1 == 1 ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- if(errn == 0) {
- errn = encodeNBitUnsignedInteger(stream, 8, (uint32_t)(v2gLFA_EVSEFinePositioningSetupParametersType->SignalPulseDuration - 0));
- /* valid EE */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- }
- }
- grammarID = 1587;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 1619:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorOrder), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SignalPulseDuration)] */
- if (v2gLFA_EVSEFinePositioningSetupParametersType_SensorOrder_currArrayIndex < v2gLFA_EVSEFinePositioningSetupParametersType->SensorOrder.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- if(errn == 0) {
- errn = encodeNBitUnsignedInteger(stream, 8, (uint32_t)(v2gLFA_EVSEFinePositioningSetupParametersType->SensorOrder.array[v2gLFA_EVSEFinePositioningSetupParametersType_SensorOrder_currArrayIndex++] - 0));
- /* valid EE */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- }
- }
- grammarID = 1620;
- } else if ( 1 == 1 ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- if(errn == 0) {
- errn = encodeNBitUnsignedInteger(stream, 8, (uint32_t)(v2gLFA_EVSEFinePositioningSetupParametersType->SignalPulseDuration - 0));
- /* valid EE */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- }
- }
- grammarID = 1587;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 1620:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorOrder), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SignalPulseDuration)] */
- if (v2gLFA_EVSEFinePositioningSetupParametersType_SensorOrder_currArrayIndex < v2gLFA_EVSEFinePositioningSetupParametersType->SensorOrder.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- if(errn == 0) {
- errn = encodeNBitUnsignedInteger(stream, 8, (uint32_t)(v2gLFA_EVSEFinePositioningSetupParametersType->SensorOrder.array[v2gLFA_EVSEFinePositioningSetupParametersType_SensorOrder_currArrayIndex++] - 0));
- /* valid EE */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- }
- }
- grammarID = 1621;
- } else if ( 1 == 1 ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- if(errn == 0) {
- errn = encodeNBitUnsignedInteger(stream, 8, (uint32_t)(v2gLFA_EVSEFinePositioningSetupParametersType->SignalPulseDuration - 0));
- /* valid EE */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- }
- }
- grammarID = 1587;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 1621:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorOrder), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SignalPulseDuration)] */
- if (v2gLFA_EVSEFinePositioningSetupParametersType_SensorOrder_currArrayIndex < v2gLFA_EVSEFinePositioningSetupParametersType->SensorOrder.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- if(errn == 0) {
- errn = encodeNBitUnsignedInteger(stream, 8, (uint32_t)(v2gLFA_EVSEFinePositioningSetupParametersType->SensorOrder.array[v2gLFA_EVSEFinePositioningSetupParametersType_SensorOrder_currArrayIndex++] - 0));
- /* valid EE */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- }
- }
- grammarID = 1622;
- } else if ( 1 == 1 ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- if(errn == 0) {
- errn = encodeNBitUnsignedInteger(stream, 8, (uint32_t)(v2gLFA_EVSEFinePositioningSetupParametersType->SignalPulseDuration - 0));
- /* valid EE */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- }
- }
- grammarID = 1587;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 1622:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorOrder), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SignalPulseDuration)] */
- if (v2gLFA_EVSEFinePositioningSetupParametersType_SensorOrder_currArrayIndex < v2gLFA_EVSEFinePositioningSetupParametersType->SensorOrder.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- if(errn == 0) {
- errn = encodeNBitUnsignedInteger(stream, 8, (uint32_t)(v2gLFA_EVSEFinePositioningSetupParametersType->SensorOrder.array[v2gLFA_EVSEFinePositioningSetupParametersType_SensorOrder_currArrayIndex++] - 0));
- /* valid EE */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- }
- }
- grammarID = 1623;
- } else if ( 1 == 1 ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- if(errn == 0) {
- errn = encodeNBitUnsignedInteger(stream, 8, (uint32_t)(v2gLFA_EVSEFinePositioningSetupParametersType->SignalPulseDuration - 0));
- /* valid EE */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- }
- }
- grammarID = 1587;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 1623:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorOrder), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SignalPulseDuration)] */
- if (v2gLFA_EVSEFinePositioningSetupParametersType_SensorOrder_currArrayIndex < v2gLFA_EVSEFinePositioningSetupParametersType->SensorOrder.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- if(errn == 0) {
- errn = encodeNBitUnsignedInteger(stream, 8, (uint32_t)(v2gLFA_EVSEFinePositioningSetupParametersType->SensorOrder.array[v2gLFA_EVSEFinePositioningSetupParametersType_SensorOrder_currArrayIndex++] - 0));
- /* valid EE */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- }
- }
- grammarID = 1624;
- } else if ( 1 == 1 ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- if(errn == 0) {
- errn = encodeNBitUnsignedInteger(stream, 8, (uint32_t)(v2gLFA_EVSEFinePositioningSetupParametersType->SignalPulseDuration - 0));
- /* valid EE */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- }
- }
- grammarID = 1587;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 1624:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorOrder), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SignalPulseDuration)] */
- if (v2gLFA_EVSEFinePositioningSetupParametersType_SensorOrder_currArrayIndex < v2gLFA_EVSEFinePositioningSetupParametersType->SensorOrder.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- if(errn == 0) {
- errn = encodeNBitUnsignedInteger(stream, 8, (uint32_t)(v2gLFA_EVSEFinePositioningSetupParametersType->SensorOrder.array[v2gLFA_EVSEFinePositioningSetupParametersType_SensorOrder_currArrayIndex++] - 0));
- /* valid EE */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- }
- }
- grammarID = 1625;
- } else if ( 1 == 1 ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- if(errn == 0) {
- errn = encodeNBitUnsignedInteger(stream, 8, (uint32_t)(v2gLFA_EVSEFinePositioningSetupParametersType->SignalPulseDuration - 0));
- /* valid EE */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- }
- }
- grammarID = 1587;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 1625:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorOrder), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SignalPulseDuration)] */
- if (v2gLFA_EVSEFinePositioningSetupParametersType_SensorOrder_currArrayIndex < v2gLFA_EVSEFinePositioningSetupParametersType->SensorOrder.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- if(errn == 0) {
- errn = encodeNBitUnsignedInteger(stream, 8, (uint32_t)(v2gLFA_EVSEFinePositioningSetupParametersType->SensorOrder.array[v2gLFA_EVSEFinePositioningSetupParametersType_SensorOrder_currArrayIndex++] - 0));
- /* valid EE */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- }
- }
- grammarID = 1626;
- } else if ( 1 == 1 ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- if(errn == 0) {
- errn = encodeNBitUnsignedInteger(stream, 8, (uint32_t)(v2gLFA_EVSEFinePositioningSetupParametersType->SignalPulseDuration - 0));
- /* valid EE */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- }
- }
- grammarID = 1587;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 1626:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorOrder), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SignalPulseDuration)] */
- if (v2gLFA_EVSEFinePositioningSetupParametersType_SensorOrder_currArrayIndex < v2gLFA_EVSEFinePositioningSetupParametersType->SensorOrder.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- if(errn == 0) {
- errn = encodeNBitUnsignedInteger(stream, 8, (uint32_t)(v2gLFA_EVSEFinePositioningSetupParametersType->SensorOrder.array[v2gLFA_EVSEFinePositioningSetupParametersType_SensorOrder_currArrayIndex++] - 0));
- /* valid EE */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- }
- }
- grammarID = 1627;
- } else if ( 1 == 1 ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- if(errn == 0) {
- errn = encodeNBitUnsignedInteger(stream, 8, (uint32_t)(v2gLFA_EVSEFinePositioningSetupParametersType->SignalPulseDuration - 0));
- /* valid EE */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- }
- }
- grammarID = 1587;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 1627:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorOrder), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SignalPulseDuration)] */
- if (v2gLFA_EVSEFinePositioningSetupParametersType_SensorOrder_currArrayIndex < v2gLFA_EVSEFinePositioningSetupParametersType->SensorOrder.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- if(errn == 0) {
- errn = encodeNBitUnsignedInteger(stream, 8, (uint32_t)(v2gLFA_EVSEFinePositioningSetupParametersType->SensorOrder.array[v2gLFA_EVSEFinePositioningSetupParametersType_SensorOrder_currArrayIndex++] - 0));
- /* valid EE */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- }
- }
- grammarID = 1628;
- } else if ( 1 == 1 ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- if(errn == 0) {
- errn = encodeNBitUnsignedInteger(stream, 8, (uint32_t)(v2gLFA_EVSEFinePositioningSetupParametersType->SignalPulseDuration - 0));
- /* valid EE */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- }
- }
- grammarID = 1587;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 1628:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorOrder), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SignalPulseDuration)] */
- if (v2gLFA_EVSEFinePositioningSetupParametersType_SensorOrder_currArrayIndex < v2gLFA_EVSEFinePositioningSetupParametersType->SensorOrder.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- if(errn == 0) {
- errn = encodeNBitUnsignedInteger(stream, 8, (uint32_t)(v2gLFA_EVSEFinePositioningSetupParametersType->SensorOrder.array[v2gLFA_EVSEFinePositioningSetupParametersType_SensorOrder_currArrayIndex++] - 0));
- /* valid EE */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- }
- }
- grammarID = 1629;
- } else if ( 1 == 1 ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- if(errn == 0) {
- errn = encodeNBitUnsignedInteger(stream, 8, (uint32_t)(v2gLFA_EVSEFinePositioningSetupParametersType->SignalPulseDuration - 0));
- /* valid EE */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- }
- }
- grammarID = 1587;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 1629:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorOrder), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SignalPulseDuration)] */
- if (v2gLFA_EVSEFinePositioningSetupParametersType_SensorOrder_currArrayIndex < v2gLFA_EVSEFinePositioningSetupParametersType->SensorOrder.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- if(errn == 0) {
- errn = encodeNBitUnsignedInteger(stream, 8, (uint32_t)(v2gLFA_EVSEFinePositioningSetupParametersType->SensorOrder.array[v2gLFA_EVSEFinePositioningSetupParametersType_SensorOrder_currArrayIndex++] - 0));
- /* valid EE */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- }
- }
- grammarID = 1630;
- } else if ( 1 == 1 ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- if(errn == 0) {
- errn = encodeNBitUnsignedInteger(stream, 8, (uint32_t)(v2gLFA_EVSEFinePositioningSetupParametersType->SignalPulseDuration - 0));
- /* valid EE */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- }
- }
- grammarID = 1587;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 1630:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorOrder), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SignalPulseDuration)] */
- if (v2gLFA_EVSEFinePositioningSetupParametersType_SensorOrder_currArrayIndex < v2gLFA_EVSEFinePositioningSetupParametersType->SensorOrder.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- if(errn == 0) {
- errn = encodeNBitUnsignedInteger(stream, 8, (uint32_t)(v2gLFA_EVSEFinePositioningSetupParametersType->SensorOrder.array[v2gLFA_EVSEFinePositioningSetupParametersType_SensorOrder_currArrayIndex++] - 0));
- /* valid EE */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- }
- }
- grammarID = 1631;
- } else if ( 1 == 1 ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- if(errn == 0) {
- errn = encodeNBitUnsignedInteger(stream, 8, (uint32_t)(v2gLFA_EVSEFinePositioningSetupParametersType->SignalPulseDuration - 0));
- /* valid EE */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- }
- }
- grammarID = 1587;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 1631:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorOrder), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SignalPulseDuration)] */
- if (v2gLFA_EVSEFinePositioningSetupParametersType_SensorOrder_currArrayIndex < v2gLFA_EVSEFinePositioningSetupParametersType->SensorOrder.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- if(errn == 0) {
- errn = encodeNBitUnsignedInteger(stream, 8, (uint32_t)(v2gLFA_EVSEFinePositioningSetupParametersType->SensorOrder.array[v2gLFA_EVSEFinePositioningSetupParametersType_SensorOrder_currArrayIndex++] - 0));
- /* valid EE */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- }
- }
- grammarID = 1632;
- } else if ( 1 == 1 ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- if(errn == 0) {
- errn = encodeNBitUnsignedInteger(stream, 8, (uint32_t)(v2gLFA_EVSEFinePositioningSetupParametersType->SignalPulseDuration - 0));
- /* valid EE */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- }
- }
- grammarID = 1587;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 1632:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorOrder), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SignalPulseDuration)] */
- if (v2gLFA_EVSEFinePositioningSetupParametersType_SensorOrder_currArrayIndex < v2gLFA_EVSEFinePositioningSetupParametersType->SensorOrder.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- if(errn == 0) {
- errn = encodeNBitUnsignedInteger(stream, 8, (uint32_t)(v2gLFA_EVSEFinePositioningSetupParametersType->SensorOrder.array[v2gLFA_EVSEFinePositioningSetupParametersType_SensorOrder_currArrayIndex++] - 0));
- /* valid EE */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- }
- }
- grammarID = 1633;
- } else if ( 1 == 1 ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- if(errn == 0) {
- errn = encodeNBitUnsignedInteger(stream, 8, (uint32_t)(v2gLFA_EVSEFinePositioningSetupParametersType->SignalPulseDuration - 0));
- /* valid EE */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- }
- }
- grammarID = 1587;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 1633:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorOrder), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SignalPulseDuration)] */
- if (v2gLFA_EVSEFinePositioningSetupParametersType_SensorOrder_currArrayIndex < v2gLFA_EVSEFinePositioningSetupParametersType->SensorOrder.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- if(errn == 0) {
- errn = encodeNBitUnsignedInteger(stream, 8, (uint32_t)(v2gLFA_EVSEFinePositioningSetupParametersType->SensorOrder.array[v2gLFA_EVSEFinePositioningSetupParametersType_SensorOrder_currArrayIndex++] - 0));
- /* valid EE */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- }
- }
- grammarID = 1634;
- } else if ( 1 == 1 ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- if(errn == 0) {
- errn = encodeNBitUnsignedInteger(stream, 8, (uint32_t)(v2gLFA_EVSEFinePositioningSetupParametersType->SignalPulseDuration - 0));
- /* valid EE */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- }
- }
- grammarID = 1587;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 1634:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorOrder), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SignalPulseDuration)] */
- if (v2gLFA_EVSEFinePositioningSetupParametersType_SensorOrder_currArrayIndex < v2gLFA_EVSEFinePositioningSetupParametersType->SensorOrder.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- if(errn == 0) {
- errn = encodeNBitUnsignedInteger(stream, 8, (uint32_t)(v2gLFA_EVSEFinePositioningSetupParametersType->SensorOrder.array[v2gLFA_EVSEFinePositioningSetupParametersType_SensorOrder_currArrayIndex++] - 0));
- /* valid EE */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- }
- }
- grammarID = 1635;
- } else if ( 1 == 1 ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- if(errn == 0) {
- errn = encodeNBitUnsignedInteger(stream, 8, (uint32_t)(v2gLFA_EVSEFinePositioningSetupParametersType->SignalPulseDuration - 0));
- /* valid EE */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- }
- }
- grammarID = 1587;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 1635:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorOrder), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SignalPulseDuration)] */
- if (v2gLFA_EVSEFinePositioningSetupParametersType_SensorOrder_currArrayIndex < v2gLFA_EVSEFinePositioningSetupParametersType->SensorOrder.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- if(errn == 0) {
- errn = encodeNBitUnsignedInteger(stream, 8, (uint32_t)(v2gLFA_EVSEFinePositioningSetupParametersType->SensorOrder.array[v2gLFA_EVSEFinePositioningSetupParametersType_SensorOrder_currArrayIndex++] - 0));
- /* valid EE */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- }
- }
- grammarID = 1636;
- } else if ( 1 == 1 ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- if(errn == 0) {
- errn = encodeNBitUnsignedInteger(stream, 8, (uint32_t)(v2gLFA_EVSEFinePositioningSetupParametersType->SignalPulseDuration - 0));
- /* valid EE */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- }
- }
- grammarID = 1587;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 1636:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorOrder), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SignalPulseDuration)] */
- if (v2gLFA_EVSEFinePositioningSetupParametersType_SensorOrder_currArrayIndex < v2gLFA_EVSEFinePositioningSetupParametersType->SensorOrder.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- if(errn == 0) {
- errn = encodeNBitUnsignedInteger(stream, 8, (uint32_t)(v2gLFA_EVSEFinePositioningSetupParametersType->SensorOrder.array[v2gLFA_EVSEFinePositioningSetupParametersType_SensorOrder_currArrayIndex++] - 0));
- /* valid EE */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- }
- }
- grammarID = 1637;
- } else if ( 1 == 1 ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- if(errn == 0) {
- errn = encodeNBitUnsignedInteger(stream, 8, (uint32_t)(v2gLFA_EVSEFinePositioningSetupParametersType->SignalPulseDuration - 0));
- /* valid EE */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- }
- }
- grammarID = 1587;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 1637:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorOrder), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SignalPulseDuration)] */
- if (v2gLFA_EVSEFinePositioningSetupParametersType_SensorOrder_currArrayIndex < v2gLFA_EVSEFinePositioningSetupParametersType->SensorOrder.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- if(errn == 0) {
- errn = encodeNBitUnsignedInteger(stream, 8, (uint32_t)(v2gLFA_EVSEFinePositioningSetupParametersType->SensorOrder.array[v2gLFA_EVSEFinePositioningSetupParametersType_SensorOrder_currArrayIndex++] - 0));
- /* valid EE */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- }
- }
- grammarID = 1638;
- } else if ( 1 == 1 ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- if(errn == 0) {
- errn = encodeNBitUnsignedInteger(stream, 8, (uint32_t)(v2gLFA_EVSEFinePositioningSetupParametersType->SignalPulseDuration - 0));
- /* valid EE */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- }
- }
- grammarID = 1587;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 1638:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorOrder), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SignalPulseDuration)] */
- if (v2gLFA_EVSEFinePositioningSetupParametersType_SensorOrder_currArrayIndex < v2gLFA_EVSEFinePositioningSetupParametersType->SensorOrder.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- if(errn == 0) {
- errn = encodeNBitUnsignedInteger(stream, 8, (uint32_t)(v2gLFA_EVSEFinePositioningSetupParametersType->SensorOrder.array[v2gLFA_EVSEFinePositioningSetupParametersType_SensorOrder_currArrayIndex++] - 0));
- /* valid EE */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- }
- }
- grammarID = 1639;
- } else if ( 1 == 1 ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- if(errn == 0) {
- errn = encodeNBitUnsignedInteger(stream, 8, (uint32_t)(v2gLFA_EVSEFinePositioningSetupParametersType->SignalPulseDuration - 0));
- /* valid EE */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- }
- }
- grammarID = 1587;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 1639:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorOrder), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SignalPulseDuration)] */
- if (v2gLFA_EVSEFinePositioningSetupParametersType_SensorOrder_currArrayIndex < v2gLFA_EVSEFinePositioningSetupParametersType->SensorOrder.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- if(errn == 0) {
- errn = encodeNBitUnsignedInteger(stream, 8, (uint32_t)(v2gLFA_EVSEFinePositioningSetupParametersType->SensorOrder.array[v2gLFA_EVSEFinePositioningSetupParametersType_SensorOrder_currArrayIndex++] - 0));
- /* valid EE */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- }
- }
- grammarID = 1640;
- } else if ( 1 == 1 ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- if(errn == 0) {
- errn = encodeNBitUnsignedInteger(stream, 8, (uint32_t)(v2gLFA_EVSEFinePositioningSetupParametersType->SignalPulseDuration - 0));
- /* valid EE */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- }
- }
- grammarID = 1587;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 1640:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorOrder), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SignalPulseDuration)] */
- if (v2gLFA_EVSEFinePositioningSetupParametersType_SensorOrder_currArrayIndex < v2gLFA_EVSEFinePositioningSetupParametersType->SensorOrder.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- if(errn == 0) {
- errn = encodeNBitUnsignedInteger(stream, 8, (uint32_t)(v2gLFA_EVSEFinePositioningSetupParametersType->SensorOrder.array[v2gLFA_EVSEFinePositioningSetupParametersType_SensorOrder_currArrayIndex++] - 0));
- /* valid EE */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- }
- }
- grammarID = 1641;
- } else if ( 1 == 1 ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- if(errn == 0) {
- errn = encodeNBitUnsignedInteger(stream, 8, (uint32_t)(v2gLFA_EVSEFinePositioningSetupParametersType->SignalPulseDuration - 0));
- /* valid EE */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- }
- }
- grammarID = 1587;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 1641:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorOrder), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SignalPulseDuration)] */
- if (v2gLFA_EVSEFinePositioningSetupParametersType_SensorOrder_currArrayIndex < v2gLFA_EVSEFinePositioningSetupParametersType->SensorOrder.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- if(errn == 0) {
- errn = encodeNBitUnsignedInteger(stream, 8, (uint32_t)(v2gLFA_EVSEFinePositioningSetupParametersType->SensorOrder.array[v2gLFA_EVSEFinePositioningSetupParametersType_SensorOrder_currArrayIndex++] - 0));
- /* valid EE */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- }
- }
- grammarID = 1642;
- } else if ( 1 == 1 ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- if(errn == 0) {
- errn = encodeNBitUnsignedInteger(stream, 8, (uint32_t)(v2gLFA_EVSEFinePositioningSetupParametersType->SignalPulseDuration - 0));
- /* valid EE */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- }
- }
- grammarID = 1587;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 1642:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorOrder), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SignalPulseDuration)] */
- if (v2gLFA_EVSEFinePositioningSetupParametersType_SensorOrder_currArrayIndex < v2gLFA_EVSEFinePositioningSetupParametersType->SensorOrder.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- if(errn == 0) {
- errn = encodeNBitUnsignedInteger(stream, 8, (uint32_t)(v2gLFA_EVSEFinePositioningSetupParametersType->SensorOrder.array[v2gLFA_EVSEFinePositioningSetupParametersType_SensorOrder_currArrayIndex++] - 0));
- /* valid EE */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- }
- }
- grammarID = 1643;
- } else if ( 1 == 1 ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- if(errn == 0) {
- errn = encodeNBitUnsignedInteger(stream, 8, (uint32_t)(v2gLFA_EVSEFinePositioningSetupParametersType->SignalPulseDuration - 0));
- /* valid EE */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- }
- }
- grammarID = 1587;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 1643:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorOrder), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SignalPulseDuration)] */
- if (v2gLFA_EVSEFinePositioningSetupParametersType_SensorOrder_currArrayIndex < v2gLFA_EVSEFinePositioningSetupParametersType->SensorOrder.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- if(errn == 0) {
- errn = encodeNBitUnsignedInteger(stream, 8, (uint32_t)(v2gLFA_EVSEFinePositioningSetupParametersType->SensorOrder.array[v2gLFA_EVSEFinePositioningSetupParametersType_SensorOrder_currArrayIndex++] - 0));
- /* valid EE */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- }
- }
- grammarID = 1644;
- } else if ( 1 == 1 ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- if(errn == 0) {
- errn = encodeNBitUnsignedInteger(stream, 8, (uint32_t)(v2gLFA_EVSEFinePositioningSetupParametersType->SignalPulseDuration - 0));
- /* valid EE */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- }
- }
- grammarID = 1587;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 1644:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorOrder), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SignalPulseDuration)] */
- if (v2gLFA_EVSEFinePositioningSetupParametersType_SensorOrder_currArrayIndex < v2gLFA_EVSEFinePositioningSetupParametersType->SensorOrder.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- if(errn == 0) {
- errn = encodeNBitUnsignedInteger(stream, 8, (uint32_t)(v2gLFA_EVSEFinePositioningSetupParametersType->SensorOrder.array[v2gLFA_EVSEFinePositioningSetupParametersType_SensorOrder_currArrayIndex++] - 0));
- /* valid EE */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- }
- }
- grammarID = 1645;
- } else if ( 1 == 1 ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- if(errn == 0) {
- errn = encodeNBitUnsignedInteger(stream, 8, (uint32_t)(v2gLFA_EVSEFinePositioningSetupParametersType->SignalPulseDuration - 0));
- /* valid EE */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- }
- }
- grammarID = 1587;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 1645:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorOrder), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SignalPulseDuration)] */
- if (v2gLFA_EVSEFinePositioningSetupParametersType_SensorOrder_currArrayIndex < v2gLFA_EVSEFinePositioningSetupParametersType->SensorOrder.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- if(errn == 0) {
- errn = encodeNBitUnsignedInteger(stream, 8, (uint32_t)(v2gLFA_EVSEFinePositioningSetupParametersType->SensorOrder.array[v2gLFA_EVSEFinePositioningSetupParametersType_SensorOrder_currArrayIndex++] - 0));
- /* valid EE */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- }
- }
- grammarID = 1646;
- } else if ( 1 == 1 ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- if(errn == 0) {
- errn = encodeNBitUnsignedInteger(stream, 8, (uint32_t)(v2gLFA_EVSEFinePositioningSetupParametersType->SignalPulseDuration - 0));
- /* valid EE */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- }
- }
- grammarID = 1587;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 1646:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorOrder), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SignalPulseDuration)] */
- if (v2gLFA_EVSEFinePositioningSetupParametersType_SensorOrder_currArrayIndex < v2gLFA_EVSEFinePositioningSetupParametersType->SensorOrder.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- if(errn == 0) {
- errn = encodeNBitUnsignedInteger(stream, 8, (uint32_t)(v2gLFA_EVSEFinePositioningSetupParametersType->SensorOrder.array[v2gLFA_EVSEFinePositioningSetupParametersType_SensorOrder_currArrayIndex++] - 0));
- /* valid EE */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- }
- }
- grammarID = 1647;
- } else if ( 1 == 1 ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- if(errn == 0) {
- errn = encodeNBitUnsignedInteger(stream, 8, (uint32_t)(v2gLFA_EVSEFinePositioningSetupParametersType->SignalPulseDuration - 0));
- /* valid EE */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- }
- }
- grammarID = 1587;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 1647:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorOrder), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SignalPulseDuration)] */
- if (v2gLFA_EVSEFinePositioningSetupParametersType_SensorOrder_currArrayIndex < v2gLFA_EVSEFinePositioningSetupParametersType->SensorOrder.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- if(errn == 0) {
- errn = encodeNBitUnsignedInteger(stream, 8, (uint32_t)(v2gLFA_EVSEFinePositioningSetupParametersType->SensorOrder.array[v2gLFA_EVSEFinePositioningSetupParametersType_SensorOrder_currArrayIndex++] - 0));
- /* valid EE */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- }
- }
- grammarID = 1648;
- } else if ( 1 == 1 ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- if(errn == 0) {
- errn = encodeNBitUnsignedInteger(stream, 8, (uint32_t)(v2gLFA_EVSEFinePositioningSetupParametersType->SignalPulseDuration - 0));
- /* valid EE */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- }
- }
- grammarID = 1587;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 1648:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorOrder), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SignalPulseDuration)] */
- if (v2gLFA_EVSEFinePositioningSetupParametersType_SensorOrder_currArrayIndex < v2gLFA_EVSEFinePositioningSetupParametersType->SensorOrder.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- if(errn == 0) {
- errn = encodeNBitUnsignedInteger(stream, 8, (uint32_t)(v2gLFA_EVSEFinePositioningSetupParametersType->SensorOrder.array[v2gLFA_EVSEFinePositioningSetupParametersType_SensorOrder_currArrayIndex++] - 0));
- /* valid EE */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- }
- }
- grammarID = 1649;
- } else if ( 1 == 1 ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- if(errn == 0) {
- errn = encodeNBitUnsignedInteger(stream, 8, (uint32_t)(v2gLFA_EVSEFinePositioningSetupParametersType->SignalPulseDuration - 0));
- /* valid EE */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- }
- }
- grammarID = 1587;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 1649:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorOrder), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SignalPulseDuration)] */
- if (v2gLFA_EVSEFinePositioningSetupParametersType_SensorOrder_currArrayIndex < v2gLFA_EVSEFinePositioningSetupParametersType->SensorOrder.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- if(errn == 0) {
- errn = encodeNBitUnsignedInteger(stream, 8, (uint32_t)(v2gLFA_EVSEFinePositioningSetupParametersType->SensorOrder.array[v2gLFA_EVSEFinePositioningSetupParametersType_SensorOrder_currArrayIndex++] - 0));
- /* valid EE */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- }
- }
- grammarID = 1650;
- } else if ( 1 == 1 ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- if(errn == 0) {
- errn = encodeNBitUnsignedInteger(stream, 8, (uint32_t)(v2gLFA_EVSEFinePositioningSetupParametersType->SignalPulseDuration - 0));
- /* valid EE */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- }
- }
- grammarID = 1587;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 1650:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorOrder), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SignalPulseDuration)] */
- if (v2gLFA_EVSEFinePositioningSetupParametersType_SensorOrder_currArrayIndex < v2gLFA_EVSEFinePositioningSetupParametersType->SensorOrder.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- if(errn == 0) {
- errn = encodeNBitUnsignedInteger(stream, 8, (uint32_t)(v2gLFA_EVSEFinePositioningSetupParametersType->SensorOrder.array[v2gLFA_EVSEFinePositioningSetupParametersType_SensorOrder_currArrayIndex++] - 0));
- /* valid EE */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- }
- }
- grammarID = 1651;
- } else if ( 1 == 1 ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- if(errn == 0) {
- errn = encodeNBitUnsignedInteger(stream, 8, (uint32_t)(v2gLFA_EVSEFinePositioningSetupParametersType->SignalPulseDuration - 0));
- /* valid EE */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- }
- }
- grammarID = 1587;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 1651:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorOrder), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SignalPulseDuration)] */
- if (v2gLFA_EVSEFinePositioningSetupParametersType_SensorOrder_currArrayIndex < v2gLFA_EVSEFinePositioningSetupParametersType->SensorOrder.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- if(errn == 0) {
- errn = encodeNBitUnsignedInteger(stream, 8, (uint32_t)(v2gLFA_EVSEFinePositioningSetupParametersType->SensorOrder.array[v2gLFA_EVSEFinePositioningSetupParametersType_SensorOrder_currArrayIndex++] - 0));
- /* valid EE */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- }
- }
- grammarID = 1652;
- } else if ( 1 == 1 ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- if(errn == 0) {
- errn = encodeNBitUnsignedInteger(stream, 8, (uint32_t)(v2gLFA_EVSEFinePositioningSetupParametersType->SignalPulseDuration - 0));
- /* valid EE */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- }
- }
- grammarID = 1587;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 1652:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorOrder), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SignalPulseDuration)] */
- if (v2gLFA_EVSEFinePositioningSetupParametersType_SensorOrder_currArrayIndex < v2gLFA_EVSEFinePositioningSetupParametersType->SensorOrder.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- if(errn == 0) {
- errn = encodeNBitUnsignedInteger(stream, 8, (uint32_t)(v2gLFA_EVSEFinePositioningSetupParametersType->SensorOrder.array[v2gLFA_EVSEFinePositioningSetupParametersType_SensorOrder_currArrayIndex++] - 0));
- /* valid EE */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- }
- }
- grammarID = 1653;
- } else if ( 1 == 1 ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- if(errn == 0) {
- errn = encodeNBitUnsignedInteger(stream, 8, (uint32_t)(v2gLFA_EVSEFinePositioningSetupParametersType->SignalPulseDuration - 0));
- /* valid EE */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- }
- }
- grammarID = 1587;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 1653:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorOrder), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SignalPulseDuration)] */
- if (v2gLFA_EVSEFinePositioningSetupParametersType_SensorOrder_currArrayIndex < v2gLFA_EVSEFinePositioningSetupParametersType->SensorOrder.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- if(errn == 0) {
- errn = encodeNBitUnsignedInteger(stream, 8, (uint32_t)(v2gLFA_EVSEFinePositioningSetupParametersType->SensorOrder.array[v2gLFA_EVSEFinePositioningSetupParametersType_SensorOrder_currArrayIndex++] - 0));
- /* valid EE */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- }
- }
- grammarID = 1654;
- } else if ( 1 == 1 ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- if(errn == 0) {
- errn = encodeNBitUnsignedInteger(stream, 8, (uint32_t)(v2gLFA_EVSEFinePositioningSetupParametersType->SignalPulseDuration - 0));
- /* valid EE */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- }
- }
- grammarID = 1587;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 1654:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorOrder), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SignalPulseDuration)] */
- if (v2gLFA_EVSEFinePositioningSetupParametersType_SensorOrder_currArrayIndex < v2gLFA_EVSEFinePositioningSetupParametersType->SensorOrder.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- if(errn == 0) {
- errn = encodeNBitUnsignedInteger(stream, 8, (uint32_t)(v2gLFA_EVSEFinePositioningSetupParametersType->SensorOrder.array[v2gLFA_EVSEFinePositioningSetupParametersType_SensorOrder_currArrayIndex++] - 0));
- /* valid EE */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- }
- }
- grammarID = 1655;
- } else if ( 1 == 1 ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- if(errn == 0) {
- errn = encodeNBitUnsignedInteger(stream, 8, (uint32_t)(v2gLFA_EVSEFinePositioningSetupParametersType->SignalPulseDuration - 0));
- /* valid EE */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- }
- }
- grammarID = 1587;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 1655:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorOrder), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SignalPulseDuration)] */
- if (v2gLFA_EVSEFinePositioningSetupParametersType_SensorOrder_currArrayIndex < v2gLFA_EVSEFinePositioningSetupParametersType->SensorOrder.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- if(errn == 0) {
- errn = encodeNBitUnsignedInteger(stream, 8, (uint32_t)(v2gLFA_EVSEFinePositioningSetupParametersType->SensorOrder.array[v2gLFA_EVSEFinePositioningSetupParametersType_SensorOrder_currArrayIndex++] - 0));
- /* valid EE */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- }
- }
- grammarID = 1656;
- } else if ( 1 == 1 ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- if(errn == 0) {
- errn = encodeNBitUnsignedInteger(stream, 8, (uint32_t)(v2gLFA_EVSEFinePositioningSetupParametersType->SignalPulseDuration - 0));
- /* valid EE */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- }
- }
- grammarID = 1587;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 1656:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorOrder), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SignalPulseDuration)] */
- if (v2gLFA_EVSEFinePositioningSetupParametersType_SensorOrder_currArrayIndex < v2gLFA_EVSEFinePositioningSetupParametersType->SensorOrder.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- if(errn == 0) {
- errn = encodeNBitUnsignedInteger(stream, 8, (uint32_t)(v2gLFA_EVSEFinePositioningSetupParametersType->SensorOrder.array[v2gLFA_EVSEFinePositioningSetupParametersType_SensorOrder_currArrayIndex++] - 0));
- /* valid EE */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- }
- }
- grammarID = 1657;
- } else if ( 1 == 1 ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- if(errn == 0) {
- errn = encodeNBitUnsignedInteger(stream, 8, (uint32_t)(v2gLFA_EVSEFinePositioningSetupParametersType->SignalPulseDuration - 0));
- /* valid EE */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- }
- }
- grammarID = 1587;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 1657:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorOrder), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SignalPulseDuration)] */
- if (v2gLFA_EVSEFinePositioningSetupParametersType_SensorOrder_currArrayIndex < v2gLFA_EVSEFinePositioningSetupParametersType->SensorOrder.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- if(errn == 0) {
- errn = encodeNBitUnsignedInteger(stream, 8, (uint32_t)(v2gLFA_EVSEFinePositioningSetupParametersType->SensorOrder.array[v2gLFA_EVSEFinePositioningSetupParametersType_SensorOrder_currArrayIndex++] - 0));
- /* valid EE */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- }
- }
- grammarID = 1658;
- } else if ( 1 == 1 ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- if(errn == 0) {
- errn = encodeNBitUnsignedInteger(stream, 8, (uint32_t)(v2gLFA_EVSEFinePositioningSetupParametersType->SignalPulseDuration - 0));
- /* valid EE */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- }
- }
- grammarID = 1587;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 1658:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorOrder), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SignalPulseDuration)] */
- if (v2gLFA_EVSEFinePositioningSetupParametersType_SensorOrder_currArrayIndex < v2gLFA_EVSEFinePositioningSetupParametersType->SensorOrder.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- if(errn == 0) {
- errn = encodeNBitUnsignedInteger(stream, 8, (uint32_t)(v2gLFA_EVSEFinePositioningSetupParametersType->SensorOrder.array[v2gLFA_EVSEFinePositioningSetupParametersType_SensorOrder_currArrayIndex++] - 0));
- /* valid EE */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- }
- }
- grammarID = 1659;
- } else if ( 1 == 1 ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- if(errn == 0) {
- errn = encodeNBitUnsignedInteger(stream, 8, (uint32_t)(v2gLFA_EVSEFinePositioningSetupParametersType->SignalPulseDuration - 0));
- /* valid EE */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- }
- }
- grammarID = 1587;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 1659:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorOrder), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SignalPulseDuration)] */
- if (v2gLFA_EVSEFinePositioningSetupParametersType_SensorOrder_currArrayIndex < v2gLFA_EVSEFinePositioningSetupParametersType->SensorOrder.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- if(errn == 0) {
- errn = encodeNBitUnsignedInteger(stream, 8, (uint32_t)(v2gLFA_EVSEFinePositioningSetupParametersType->SensorOrder.array[v2gLFA_EVSEFinePositioningSetupParametersType_SensorOrder_currArrayIndex++] - 0));
- /* valid EE */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- }
- }
- grammarID = 1660;
- } else if ( 1 == 1 ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- if(errn == 0) {
- errn = encodeNBitUnsignedInteger(stream, 8, (uint32_t)(v2gLFA_EVSEFinePositioningSetupParametersType->SignalPulseDuration - 0));
- /* valid EE */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- }
- }
- grammarID = 1587;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 1660:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorOrder), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SignalPulseDuration)] */
- if (v2gLFA_EVSEFinePositioningSetupParametersType_SensorOrder_currArrayIndex < v2gLFA_EVSEFinePositioningSetupParametersType->SensorOrder.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- if(errn == 0) {
- errn = encodeNBitUnsignedInteger(stream, 8, (uint32_t)(v2gLFA_EVSEFinePositioningSetupParametersType->SensorOrder.array[v2gLFA_EVSEFinePositioningSetupParametersType_SensorOrder_currArrayIndex++] - 0));
- /* valid EE */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- }
- }
- grammarID = 1661;
- } else if ( 1 == 1 ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- if(errn == 0) {
- errn = encodeNBitUnsignedInteger(stream, 8, (uint32_t)(v2gLFA_EVSEFinePositioningSetupParametersType->SignalPulseDuration - 0));
- /* valid EE */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- }
- }
- grammarID = 1587;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 1661:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorOrder), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SignalPulseDuration)] */
- if (v2gLFA_EVSEFinePositioningSetupParametersType_SensorOrder_currArrayIndex < v2gLFA_EVSEFinePositioningSetupParametersType->SensorOrder.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- if(errn == 0) {
- errn = encodeNBitUnsignedInteger(stream, 8, (uint32_t)(v2gLFA_EVSEFinePositioningSetupParametersType->SensorOrder.array[v2gLFA_EVSEFinePositioningSetupParametersType_SensorOrder_currArrayIndex++] - 0));
- /* valid EE */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- }
- }
- grammarID = 1662;
- } else if ( 1 == 1 ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- if(errn == 0) {
- errn = encodeNBitUnsignedInteger(stream, 8, (uint32_t)(v2gLFA_EVSEFinePositioningSetupParametersType->SignalPulseDuration - 0));
- /* valid EE */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- }
- }
- grammarID = 1587;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 1662:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorOrder), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SignalPulseDuration)] */
- if (v2gLFA_EVSEFinePositioningSetupParametersType_SensorOrder_currArrayIndex < v2gLFA_EVSEFinePositioningSetupParametersType->SensorOrder.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- if(errn == 0) {
- errn = encodeNBitUnsignedInteger(stream, 8, (uint32_t)(v2gLFA_EVSEFinePositioningSetupParametersType->SensorOrder.array[v2gLFA_EVSEFinePositioningSetupParametersType_SensorOrder_currArrayIndex++] - 0));
- /* valid EE */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- }
- }
- grammarID = 1663;
- } else if ( 1 == 1 ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- if(errn == 0) {
- errn = encodeNBitUnsignedInteger(stream, 8, (uint32_t)(v2gLFA_EVSEFinePositioningSetupParametersType->SignalPulseDuration - 0));
- /* valid EE */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- }
- }
- grammarID = 1587;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 1663:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorOrder), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SignalPulseDuration)] */
- if (v2gLFA_EVSEFinePositioningSetupParametersType_SensorOrder_currArrayIndex < v2gLFA_EVSEFinePositioningSetupParametersType->SensorOrder.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- if(errn == 0) {
- errn = encodeNBitUnsignedInteger(stream, 8, (uint32_t)(v2gLFA_EVSEFinePositioningSetupParametersType->SensorOrder.array[v2gLFA_EVSEFinePositioningSetupParametersType_SensorOrder_currArrayIndex++] - 0));
- /* valid EE */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- }
- }
- grammarID = 1664;
- } else if ( 1 == 1 ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- if(errn == 0) {
- errn = encodeNBitUnsignedInteger(stream, 8, (uint32_t)(v2gLFA_EVSEFinePositioningSetupParametersType->SignalPulseDuration - 0));
- /* valid EE */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- }
- }
- grammarID = 1587;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 1664:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorOrder), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SignalPulseDuration)] */
- if (v2gLFA_EVSEFinePositioningSetupParametersType_SensorOrder_currArrayIndex < v2gLFA_EVSEFinePositioningSetupParametersType->SensorOrder.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- if(errn == 0) {
- errn = encodeNBitUnsignedInteger(stream, 8, (uint32_t)(v2gLFA_EVSEFinePositioningSetupParametersType->SensorOrder.array[v2gLFA_EVSEFinePositioningSetupParametersType_SensorOrder_currArrayIndex++] - 0));
- /* valid EE */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- }
- }
- grammarID = 1665;
- } else if ( 1 == 1 ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- if(errn == 0) {
- errn = encodeNBitUnsignedInteger(stream, 8, (uint32_t)(v2gLFA_EVSEFinePositioningSetupParametersType->SignalPulseDuration - 0));
- /* valid EE */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- }
- }
- grammarID = 1587;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 1665:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorOrder), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SignalPulseDuration)] */
- if (v2gLFA_EVSEFinePositioningSetupParametersType_SensorOrder_currArrayIndex < v2gLFA_EVSEFinePositioningSetupParametersType->SensorOrder.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- if(errn == 0) {
- errn = encodeNBitUnsignedInteger(stream, 8, (uint32_t)(v2gLFA_EVSEFinePositioningSetupParametersType->SensorOrder.array[v2gLFA_EVSEFinePositioningSetupParametersType_SensorOrder_currArrayIndex++] - 0));
- /* valid EE */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- }
- }
- grammarID = 1666;
- } else if ( 1 == 1 ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- if(errn == 0) {
- errn = encodeNBitUnsignedInteger(stream, 8, (uint32_t)(v2gLFA_EVSEFinePositioningSetupParametersType->SignalPulseDuration - 0));
- /* valid EE */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- }
- }
- grammarID = 1587;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 1666:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorOrder), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SignalPulseDuration)] */
- if (v2gLFA_EVSEFinePositioningSetupParametersType_SensorOrder_currArrayIndex < v2gLFA_EVSEFinePositioningSetupParametersType->SensorOrder.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- if(errn == 0) {
- errn = encodeNBitUnsignedInteger(stream, 8, (uint32_t)(v2gLFA_EVSEFinePositioningSetupParametersType->SensorOrder.array[v2gLFA_EVSEFinePositioningSetupParametersType_SensorOrder_currArrayIndex++] - 0));
- /* valid EE */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- }
- }
- grammarID = 1667;
- } else if ( 1 == 1 ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- if(errn == 0) {
- errn = encodeNBitUnsignedInteger(stream, 8, (uint32_t)(v2gLFA_EVSEFinePositioningSetupParametersType->SignalPulseDuration - 0));
- /* valid EE */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- }
- }
- grammarID = 1587;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 1667:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorOrder), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SignalPulseDuration)] */
- if (v2gLFA_EVSEFinePositioningSetupParametersType_SensorOrder_currArrayIndex < v2gLFA_EVSEFinePositioningSetupParametersType->SensorOrder.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- if(errn == 0) {
- errn = encodeNBitUnsignedInteger(stream, 8, (uint32_t)(v2gLFA_EVSEFinePositioningSetupParametersType->SensorOrder.array[v2gLFA_EVSEFinePositioningSetupParametersType_SensorOrder_currArrayIndex++] - 0));
- /* valid EE */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- }
- }
- grammarID = 1668;
- } else if ( 1 == 1 ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- if(errn == 0) {
- errn = encodeNBitUnsignedInteger(stream, 8, (uint32_t)(v2gLFA_EVSEFinePositioningSetupParametersType->SignalPulseDuration - 0));
- /* valid EE */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- }
- }
- grammarID = 1587;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 1668:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorOrder), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SignalPulseDuration)] */
- if (v2gLFA_EVSEFinePositioningSetupParametersType_SensorOrder_currArrayIndex < v2gLFA_EVSEFinePositioningSetupParametersType->SensorOrder.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- if(errn == 0) {
- errn = encodeNBitUnsignedInteger(stream, 8, (uint32_t)(v2gLFA_EVSEFinePositioningSetupParametersType->SensorOrder.array[v2gLFA_EVSEFinePositioningSetupParametersType_SensorOrder_currArrayIndex++] - 0));
- /* valid EE */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- }
- }
- grammarID = 1669;
- } else if ( 1 == 1 ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- if(errn == 0) {
- errn = encodeNBitUnsignedInteger(stream, 8, (uint32_t)(v2gLFA_EVSEFinePositioningSetupParametersType->SignalPulseDuration - 0));
- /* valid EE */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- }
- }
- grammarID = 1587;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 1669:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorOrder), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SignalPulseDuration)] */
- if (v2gLFA_EVSEFinePositioningSetupParametersType_SensorOrder_currArrayIndex < v2gLFA_EVSEFinePositioningSetupParametersType->SensorOrder.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- if(errn == 0) {
- errn = encodeNBitUnsignedInteger(stream, 8, (uint32_t)(v2gLFA_EVSEFinePositioningSetupParametersType->SensorOrder.array[v2gLFA_EVSEFinePositioningSetupParametersType_SensorOrder_currArrayIndex++] - 0));
- /* valid EE */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- }
- }
- grammarID = 1670;
- } else if ( 1 == 1 ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- if(errn == 0) {
- errn = encodeNBitUnsignedInteger(stream, 8, (uint32_t)(v2gLFA_EVSEFinePositioningSetupParametersType->SignalPulseDuration - 0));
- /* valid EE */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- }
- }
- grammarID = 1587;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 1670:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorOrder), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SignalPulseDuration)] */
- if (v2gLFA_EVSEFinePositioningSetupParametersType_SensorOrder_currArrayIndex < v2gLFA_EVSEFinePositioningSetupParametersType->SensorOrder.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- if(errn == 0) {
- errn = encodeNBitUnsignedInteger(stream, 8, (uint32_t)(v2gLFA_EVSEFinePositioningSetupParametersType->SensorOrder.array[v2gLFA_EVSEFinePositioningSetupParametersType_SensorOrder_currArrayIndex++] - 0));
- /* valid EE */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- }
- }
- grammarID = 1671;
- } else if ( 1 == 1 ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- if(errn == 0) {
- errn = encodeNBitUnsignedInteger(stream, 8, (uint32_t)(v2gLFA_EVSEFinePositioningSetupParametersType->SignalPulseDuration - 0));
- /* valid EE */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- }
- }
- grammarID = 1587;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 1671:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorOrder), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SignalPulseDuration)] */
- if (v2gLFA_EVSEFinePositioningSetupParametersType_SensorOrder_currArrayIndex < v2gLFA_EVSEFinePositioningSetupParametersType->SensorOrder.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- if(errn == 0) {
- errn = encodeNBitUnsignedInteger(stream, 8, (uint32_t)(v2gLFA_EVSEFinePositioningSetupParametersType->SensorOrder.array[v2gLFA_EVSEFinePositioningSetupParametersType_SensorOrder_currArrayIndex++] - 0));
- /* valid EE */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- }
- }
- grammarID = 1672;
- } else if ( 1 == 1 ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- if(errn == 0) {
- errn = encodeNBitUnsignedInteger(stream, 8, (uint32_t)(v2gLFA_EVSEFinePositioningSetupParametersType->SignalPulseDuration - 0));
- /* valid EE */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- }
- }
- grammarID = 1587;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 1672:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorOrder), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SignalPulseDuration)] */
- if (v2gLFA_EVSEFinePositioningSetupParametersType_SensorOrder_currArrayIndex < v2gLFA_EVSEFinePositioningSetupParametersType->SensorOrder.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- if(errn == 0) {
- errn = encodeNBitUnsignedInteger(stream, 8, (uint32_t)(v2gLFA_EVSEFinePositioningSetupParametersType->SensorOrder.array[v2gLFA_EVSEFinePositioningSetupParametersType_SensorOrder_currArrayIndex++] - 0));
- /* valid EE */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- }
- }
- grammarID = 1673;
- } else if ( 1 == 1 ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- if(errn == 0) {
- errn = encodeNBitUnsignedInteger(stream, 8, (uint32_t)(v2gLFA_EVSEFinePositioningSetupParametersType->SignalPulseDuration - 0));
- /* valid EE */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- }
- }
- grammarID = 1587;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 1673:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorOrder), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SignalPulseDuration)] */
- if (v2gLFA_EVSEFinePositioningSetupParametersType_SensorOrder_currArrayIndex < v2gLFA_EVSEFinePositioningSetupParametersType->SensorOrder.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- if(errn == 0) {
- errn = encodeNBitUnsignedInteger(stream, 8, (uint32_t)(v2gLFA_EVSEFinePositioningSetupParametersType->SensorOrder.array[v2gLFA_EVSEFinePositioningSetupParametersType_SensorOrder_currArrayIndex++] - 0));
- /* valid EE */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- }
- }
- grammarID = 1674;
- } else if ( 1 == 1 ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- if(errn == 0) {
- errn = encodeNBitUnsignedInteger(stream, 8, (uint32_t)(v2gLFA_EVSEFinePositioningSetupParametersType->SignalPulseDuration - 0));
- /* valid EE */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- }
- }
- grammarID = 1587;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 1674:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorOrder), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SignalPulseDuration)] */
- if (v2gLFA_EVSEFinePositioningSetupParametersType_SensorOrder_currArrayIndex < v2gLFA_EVSEFinePositioningSetupParametersType->SensorOrder.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- if(errn == 0) {
- errn = encodeNBitUnsignedInteger(stream, 8, (uint32_t)(v2gLFA_EVSEFinePositioningSetupParametersType->SensorOrder.array[v2gLFA_EVSEFinePositioningSetupParametersType_SensorOrder_currArrayIndex++] - 0));
- /* valid EE */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- }
- }
- grammarID = 1675;
- } else if ( 1 == 1 ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- if(errn == 0) {
- errn = encodeNBitUnsignedInteger(stream, 8, (uint32_t)(v2gLFA_EVSEFinePositioningSetupParametersType->SignalPulseDuration - 0));
- /* valid EE */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- }
- }
- grammarID = 1587;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 1675:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorOrder), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SignalPulseDuration)] */
- if (v2gLFA_EVSEFinePositioningSetupParametersType_SensorOrder_currArrayIndex < v2gLFA_EVSEFinePositioningSetupParametersType->SensorOrder.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- if(errn == 0) {
- errn = encodeNBitUnsignedInteger(stream, 8, (uint32_t)(v2gLFA_EVSEFinePositioningSetupParametersType->SensorOrder.array[v2gLFA_EVSEFinePositioningSetupParametersType_SensorOrder_currArrayIndex++] - 0));
- /* valid EE */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- }
- }
- grammarID = 1676;
- } else if ( 1 == 1 ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- if(errn == 0) {
- errn = encodeNBitUnsignedInteger(stream, 8, (uint32_t)(v2gLFA_EVSEFinePositioningSetupParametersType->SignalPulseDuration - 0));
- /* valid EE */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- }
- }
- grammarID = 1587;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 1676:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorOrder), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SignalPulseDuration)] */
- if (v2gLFA_EVSEFinePositioningSetupParametersType_SensorOrder_currArrayIndex < v2gLFA_EVSEFinePositioningSetupParametersType->SensorOrder.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- if(errn == 0) {
- errn = encodeNBitUnsignedInteger(stream, 8, (uint32_t)(v2gLFA_EVSEFinePositioningSetupParametersType->SensorOrder.array[v2gLFA_EVSEFinePositioningSetupParametersType_SensorOrder_currArrayIndex++] - 0));
- /* valid EE */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- }
- }
- grammarID = 1677;
- } else if ( 1 == 1 ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- if(errn == 0) {
- errn = encodeNBitUnsignedInteger(stream, 8, (uint32_t)(v2gLFA_EVSEFinePositioningSetupParametersType->SignalPulseDuration - 0));
- /* valid EE */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- }
- }
- grammarID = 1587;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 1677:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorOrder), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SignalPulseDuration)] */
- if (v2gLFA_EVSEFinePositioningSetupParametersType_SensorOrder_currArrayIndex < v2gLFA_EVSEFinePositioningSetupParametersType->SensorOrder.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- if(errn == 0) {
- errn = encodeNBitUnsignedInteger(stream, 8, (uint32_t)(v2gLFA_EVSEFinePositioningSetupParametersType->SensorOrder.array[v2gLFA_EVSEFinePositioningSetupParametersType_SensorOrder_currArrayIndex++] - 0));
- /* valid EE */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- }
- }
- grammarID = 1678;
- } else if ( 1 == 1 ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- if(errn == 0) {
- errn = encodeNBitUnsignedInteger(stream, 8, (uint32_t)(v2gLFA_EVSEFinePositioningSetupParametersType->SignalPulseDuration - 0));
- /* valid EE */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- }
- }
- grammarID = 1587;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 1678:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorOrder), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SignalPulseDuration)] */
- if (v2gLFA_EVSEFinePositioningSetupParametersType_SensorOrder_currArrayIndex < v2gLFA_EVSEFinePositioningSetupParametersType->SensorOrder.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- if(errn == 0) {
- errn = encodeNBitUnsignedInteger(stream, 8, (uint32_t)(v2gLFA_EVSEFinePositioningSetupParametersType->SensorOrder.array[v2gLFA_EVSEFinePositioningSetupParametersType_SensorOrder_currArrayIndex++] - 0));
- /* valid EE */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- }
- }
- grammarID = 1679;
- } else if ( 1 == 1 ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- if(errn == 0) {
- errn = encodeNBitUnsignedInteger(stream, 8, (uint32_t)(v2gLFA_EVSEFinePositioningSetupParametersType->SignalPulseDuration - 0));
- /* valid EE */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- }
- }
- grammarID = 1587;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 1679:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorOrder), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SignalPulseDuration)] */
- if (v2gLFA_EVSEFinePositioningSetupParametersType_SensorOrder_currArrayIndex < v2gLFA_EVSEFinePositioningSetupParametersType->SensorOrder.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- if(errn == 0) {
- errn = encodeNBitUnsignedInteger(stream, 8, (uint32_t)(v2gLFA_EVSEFinePositioningSetupParametersType->SensorOrder.array[v2gLFA_EVSEFinePositioningSetupParametersType_SensorOrder_currArrayIndex++] - 0));
- /* valid EE */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- }
- }
- grammarID = 1680;
- } else if ( 1 == 1 ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- if(errn == 0) {
- errn = encodeNBitUnsignedInteger(stream, 8, (uint32_t)(v2gLFA_EVSEFinePositioningSetupParametersType->SignalPulseDuration - 0));
- /* valid EE */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- }
- }
- grammarID = 1587;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 1680:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorOrder), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SignalPulseDuration)] */
- if (v2gLFA_EVSEFinePositioningSetupParametersType_SensorOrder_currArrayIndex < v2gLFA_EVSEFinePositioningSetupParametersType->SensorOrder.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- if(errn == 0) {
- errn = encodeNBitUnsignedInteger(stream, 8, (uint32_t)(v2gLFA_EVSEFinePositioningSetupParametersType->SensorOrder.array[v2gLFA_EVSEFinePositioningSetupParametersType_SensorOrder_currArrayIndex++] - 0));
- /* valid EE */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- }
- }
- grammarID = 1681;
- } else if ( 1 == 1 ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- if(errn == 0) {
- errn = encodeNBitUnsignedInteger(stream, 8, (uint32_t)(v2gLFA_EVSEFinePositioningSetupParametersType->SignalPulseDuration - 0));
- /* valid EE */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- }
- }
- grammarID = 1587;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 1681:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorOrder), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SignalPulseDuration)] */
- if (v2gLFA_EVSEFinePositioningSetupParametersType_SensorOrder_currArrayIndex < v2gLFA_EVSEFinePositioningSetupParametersType->SensorOrder.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- if(errn == 0) {
- errn = encodeNBitUnsignedInteger(stream, 8, (uint32_t)(v2gLFA_EVSEFinePositioningSetupParametersType->SensorOrder.array[v2gLFA_EVSEFinePositioningSetupParametersType_SensorOrder_currArrayIndex++] - 0));
- /* valid EE */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- }
- }
- grammarID = 1682;
- } else if ( 1 == 1 ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- if(errn == 0) {
- errn = encodeNBitUnsignedInteger(stream, 8, (uint32_t)(v2gLFA_EVSEFinePositioningSetupParametersType->SignalPulseDuration - 0));
- /* valid EE */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- }
- }
- grammarID = 1587;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 1682:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorOrder), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SignalPulseDuration)] */
- if (v2gLFA_EVSEFinePositioningSetupParametersType_SensorOrder_currArrayIndex < v2gLFA_EVSEFinePositioningSetupParametersType->SensorOrder.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- if(errn == 0) {
- errn = encodeNBitUnsignedInteger(stream, 8, (uint32_t)(v2gLFA_EVSEFinePositioningSetupParametersType->SensorOrder.array[v2gLFA_EVSEFinePositioningSetupParametersType_SensorOrder_currArrayIndex++] - 0));
- /* valid EE */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- }
- }
- grammarID = 1683;
- } else if ( 1 == 1 ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- if(errn == 0) {
- errn = encodeNBitUnsignedInteger(stream, 8, (uint32_t)(v2gLFA_EVSEFinePositioningSetupParametersType->SignalPulseDuration - 0));
- /* valid EE */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- }
- }
- grammarID = 1587;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 1683:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorOrder), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SignalPulseDuration)] */
- if (v2gLFA_EVSEFinePositioningSetupParametersType_SensorOrder_currArrayIndex < v2gLFA_EVSEFinePositioningSetupParametersType->SensorOrder.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- if(errn == 0) {
- errn = encodeNBitUnsignedInteger(stream, 8, (uint32_t)(v2gLFA_EVSEFinePositioningSetupParametersType->SensorOrder.array[v2gLFA_EVSEFinePositioningSetupParametersType_SensorOrder_currArrayIndex++] - 0));
- /* valid EE */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- }
- }
- grammarID = 1684;
- } else if ( 1 == 1 ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- if(errn == 0) {
- errn = encodeNBitUnsignedInteger(stream, 8, (uint32_t)(v2gLFA_EVSEFinePositioningSetupParametersType->SignalPulseDuration - 0));
- /* valid EE */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- }
- }
- grammarID = 1587;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 1684:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorOrder), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SignalPulseDuration)] */
- if (v2gLFA_EVSEFinePositioningSetupParametersType_SensorOrder_currArrayIndex < v2gLFA_EVSEFinePositioningSetupParametersType->SensorOrder.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- if(errn == 0) {
- errn = encodeNBitUnsignedInteger(stream, 8, (uint32_t)(v2gLFA_EVSEFinePositioningSetupParametersType->SensorOrder.array[v2gLFA_EVSEFinePositioningSetupParametersType_SensorOrder_currArrayIndex++] - 0));
- /* valid EE */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- }
- }
- grammarID = 1685;
- } else if ( 1 == 1 ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- if(errn == 0) {
- errn = encodeNBitUnsignedInteger(stream, 8, (uint32_t)(v2gLFA_EVSEFinePositioningSetupParametersType->SignalPulseDuration - 0));
- /* valid EE */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- }
- }
- grammarID = 1587;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 1685:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorOrder), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SignalPulseDuration)] */
- if (v2gLFA_EVSEFinePositioningSetupParametersType_SensorOrder_currArrayIndex < v2gLFA_EVSEFinePositioningSetupParametersType->SensorOrder.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- if(errn == 0) {
- errn = encodeNBitUnsignedInteger(stream, 8, (uint32_t)(v2gLFA_EVSEFinePositioningSetupParametersType->SensorOrder.array[v2gLFA_EVSEFinePositioningSetupParametersType_SensorOrder_currArrayIndex++] - 0));
- /* valid EE */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- }
- }
- grammarID = 1686;
- } else if ( 1 == 1 ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- if(errn == 0) {
- errn = encodeNBitUnsignedInteger(stream, 8, (uint32_t)(v2gLFA_EVSEFinePositioningSetupParametersType->SignalPulseDuration - 0));
- /* valid EE */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- }
- }
- grammarID = 1587;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 1686:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorOrder), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SignalPulseDuration)] */
- if (v2gLFA_EVSEFinePositioningSetupParametersType_SensorOrder_currArrayIndex < v2gLFA_EVSEFinePositioningSetupParametersType->SensorOrder.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- if(errn == 0) {
- errn = encodeNBitUnsignedInteger(stream, 8, (uint32_t)(v2gLFA_EVSEFinePositioningSetupParametersType->SensorOrder.array[v2gLFA_EVSEFinePositioningSetupParametersType_SensorOrder_currArrayIndex++] - 0));
- /* valid EE */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- }
- }
- grammarID = 1687;
- } else if ( 1 == 1 ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- if(errn == 0) {
- errn = encodeNBitUnsignedInteger(stream, 8, (uint32_t)(v2gLFA_EVSEFinePositioningSetupParametersType->SignalPulseDuration - 0));
- /* valid EE */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- }
- }
- grammarID = 1587;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 1687:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorOrder), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SignalPulseDuration)] */
- if (v2gLFA_EVSEFinePositioningSetupParametersType_SensorOrder_currArrayIndex < v2gLFA_EVSEFinePositioningSetupParametersType->SensorOrder.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- if(errn == 0) {
- errn = encodeNBitUnsignedInteger(stream, 8, (uint32_t)(v2gLFA_EVSEFinePositioningSetupParametersType->SensorOrder.array[v2gLFA_EVSEFinePositioningSetupParametersType_SensorOrder_currArrayIndex++] - 0));
- /* valid EE */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- }
- }
- grammarID = 1688;
- } else if ( 1 == 1 ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- if(errn == 0) {
- errn = encodeNBitUnsignedInteger(stream, 8, (uint32_t)(v2gLFA_EVSEFinePositioningSetupParametersType->SignalPulseDuration - 0));
- /* valid EE */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- }
- }
- grammarID = 1587;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 1688:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorOrder), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SignalPulseDuration)] */
- if (v2gLFA_EVSEFinePositioningSetupParametersType_SensorOrder_currArrayIndex < v2gLFA_EVSEFinePositioningSetupParametersType->SensorOrder.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- if(errn == 0) {
- errn = encodeNBitUnsignedInteger(stream, 8, (uint32_t)(v2gLFA_EVSEFinePositioningSetupParametersType->SensorOrder.array[v2gLFA_EVSEFinePositioningSetupParametersType_SensorOrder_currArrayIndex++] - 0));
- /* valid EE */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- }
- }
- grammarID = 1689;
- } else if ( 1 == 1 ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- if(errn == 0) {
- errn = encodeNBitUnsignedInteger(stream, 8, (uint32_t)(v2gLFA_EVSEFinePositioningSetupParametersType->SignalPulseDuration - 0));
- /* valid EE */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- }
- }
- grammarID = 1587;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 1689:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorOrder), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SignalPulseDuration)] */
- if (v2gLFA_EVSEFinePositioningSetupParametersType_SensorOrder_currArrayIndex < v2gLFA_EVSEFinePositioningSetupParametersType->SensorOrder.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- if(errn == 0) {
- errn = encodeNBitUnsignedInteger(stream, 8, (uint32_t)(v2gLFA_EVSEFinePositioningSetupParametersType->SensorOrder.array[v2gLFA_EVSEFinePositioningSetupParametersType_SensorOrder_currArrayIndex++] - 0));
- /* valid EE */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- }
- }
- grammarID = 1690;
- } else if ( 1 == 1 ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- if(errn == 0) {
- errn = encodeNBitUnsignedInteger(stream, 8, (uint32_t)(v2gLFA_EVSEFinePositioningSetupParametersType->SignalPulseDuration - 0));
- /* valid EE */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- }
- }
- grammarID = 1587;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 1690:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorOrder), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SignalPulseDuration)] */
- if (v2gLFA_EVSEFinePositioningSetupParametersType_SensorOrder_currArrayIndex < v2gLFA_EVSEFinePositioningSetupParametersType->SensorOrder.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- if(errn == 0) {
- errn = encodeNBitUnsignedInteger(stream, 8, (uint32_t)(v2gLFA_EVSEFinePositioningSetupParametersType->SensorOrder.array[v2gLFA_EVSEFinePositioningSetupParametersType_SensorOrder_currArrayIndex++] - 0));
- /* valid EE */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- }
- }
- grammarID = 1691;
- } else if ( 1 == 1 ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- if(errn == 0) {
- errn = encodeNBitUnsignedInteger(stream, 8, (uint32_t)(v2gLFA_EVSEFinePositioningSetupParametersType->SignalPulseDuration - 0));
- /* valid EE */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- }
- }
- grammarID = 1587;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 1691:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorOrder), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SignalPulseDuration)] */
- if (v2gLFA_EVSEFinePositioningSetupParametersType_SensorOrder_currArrayIndex < v2gLFA_EVSEFinePositioningSetupParametersType->SensorOrder.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- if(errn == 0) {
- errn = encodeNBitUnsignedInteger(stream, 8, (uint32_t)(v2gLFA_EVSEFinePositioningSetupParametersType->SensorOrder.array[v2gLFA_EVSEFinePositioningSetupParametersType_SensorOrder_currArrayIndex++] - 0));
- /* valid EE */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- }
- }
- grammarID = 1692;
- } else if ( 1 == 1 ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- if(errn == 0) {
- errn = encodeNBitUnsignedInteger(stream, 8, (uint32_t)(v2gLFA_EVSEFinePositioningSetupParametersType->SignalPulseDuration - 0));
- /* valid EE */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- }
- }
- grammarID = 1587;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 1692:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorOrder), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SignalPulseDuration)] */
- if (v2gLFA_EVSEFinePositioningSetupParametersType_SensorOrder_currArrayIndex < v2gLFA_EVSEFinePositioningSetupParametersType->SensorOrder.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- if(errn == 0) {
- errn = encodeNBitUnsignedInteger(stream, 8, (uint32_t)(v2gLFA_EVSEFinePositioningSetupParametersType->SensorOrder.array[v2gLFA_EVSEFinePositioningSetupParametersType_SensorOrder_currArrayIndex++] - 0));
- /* valid EE */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- }
- }
- grammarID = 1693;
- } else if ( 1 == 1 ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- if(errn == 0) {
- errn = encodeNBitUnsignedInteger(stream, 8, (uint32_t)(v2gLFA_EVSEFinePositioningSetupParametersType->SignalPulseDuration - 0));
- /* valid EE */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- }
- }
- grammarID = 1587;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 1693:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorOrder), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SignalPulseDuration)] */
- if (v2gLFA_EVSEFinePositioningSetupParametersType_SensorOrder_currArrayIndex < v2gLFA_EVSEFinePositioningSetupParametersType->SensorOrder.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- if(errn == 0) {
- errn = encodeNBitUnsignedInteger(stream, 8, (uint32_t)(v2gLFA_EVSEFinePositioningSetupParametersType->SensorOrder.array[v2gLFA_EVSEFinePositioningSetupParametersType_SensorOrder_currArrayIndex++] - 0));
- /* valid EE */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- }
- }
- grammarID = 1694;
- } else if ( 1 == 1 ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- if(errn == 0) {
- errn = encodeNBitUnsignedInteger(stream, 8, (uint32_t)(v2gLFA_EVSEFinePositioningSetupParametersType->SignalPulseDuration - 0));
- /* valid EE */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- }
- }
- grammarID = 1587;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 1694:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorOrder), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SignalPulseDuration)] */
- if (v2gLFA_EVSEFinePositioningSetupParametersType_SensorOrder_currArrayIndex < v2gLFA_EVSEFinePositioningSetupParametersType->SensorOrder.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- if(errn == 0) {
- errn = encodeNBitUnsignedInteger(stream, 8, (uint32_t)(v2gLFA_EVSEFinePositioningSetupParametersType->SensorOrder.array[v2gLFA_EVSEFinePositioningSetupParametersType_SensorOrder_currArrayIndex++] - 0));
- /* valid EE */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- }
- }
- grammarID = 1695;
- } else if ( 1 == 1 ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- if(errn == 0) {
- errn = encodeNBitUnsignedInteger(stream, 8, (uint32_t)(v2gLFA_EVSEFinePositioningSetupParametersType->SignalPulseDuration - 0));
- /* valid EE */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- }
- }
- grammarID = 1587;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 1695:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorOrder), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SignalPulseDuration)] */
- if (v2gLFA_EVSEFinePositioningSetupParametersType_SensorOrder_currArrayIndex < v2gLFA_EVSEFinePositioningSetupParametersType->SensorOrder.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- if(errn == 0) {
- errn = encodeNBitUnsignedInteger(stream, 8, (uint32_t)(v2gLFA_EVSEFinePositioningSetupParametersType->SensorOrder.array[v2gLFA_EVSEFinePositioningSetupParametersType_SensorOrder_currArrayIndex++] - 0));
- /* valid EE */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- }
- }
- grammarID = 1696;
- } else if ( 1 == 1 ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- if(errn == 0) {
- errn = encodeNBitUnsignedInteger(stream, 8, (uint32_t)(v2gLFA_EVSEFinePositioningSetupParametersType->SignalPulseDuration - 0));
- /* valid EE */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- }
- }
- grammarID = 1587;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 1696:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorOrder), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SignalPulseDuration)] */
- if (v2gLFA_EVSEFinePositioningSetupParametersType_SensorOrder_currArrayIndex < v2gLFA_EVSEFinePositioningSetupParametersType->SensorOrder.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- if(errn == 0) {
- errn = encodeNBitUnsignedInteger(stream, 8, (uint32_t)(v2gLFA_EVSEFinePositioningSetupParametersType->SensorOrder.array[v2gLFA_EVSEFinePositioningSetupParametersType_SensorOrder_currArrayIndex++] - 0));
- /* valid EE */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- }
- }
- grammarID = 1697;
- } else if ( 1 == 1 ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- if(errn == 0) {
- errn = encodeNBitUnsignedInteger(stream, 8, (uint32_t)(v2gLFA_EVSEFinePositioningSetupParametersType->SignalPulseDuration - 0));
- /* valid EE */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- }
- }
- grammarID = 1587;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 1697:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorOrder), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SignalPulseDuration)] */
- if (v2gLFA_EVSEFinePositioningSetupParametersType_SensorOrder_currArrayIndex < v2gLFA_EVSEFinePositioningSetupParametersType->SensorOrder.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- if(errn == 0) {
- errn = encodeNBitUnsignedInteger(stream, 8, (uint32_t)(v2gLFA_EVSEFinePositioningSetupParametersType->SensorOrder.array[v2gLFA_EVSEFinePositioningSetupParametersType_SensorOrder_currArrayIndex++] - 0));
- /* valid EE */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- }
- }
- grammarID = 1698;
- } else if ( 1 == 1 ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- if(errn == 0) {
- errn = encodeNBitUnsignedInteger(stream, 8, (uint32_t)(v2gLFA_EVSEFinePositioningSetupParametersType->SignalPulseDuration - 0));
- /* valid EE */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- }
- }
- grammarID = 1587;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 1698:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorOrder), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SignalPulseDuration)] */
- if (v2gLFA_EVSEFinePositioningSetupParametersType_SensorOrder_currArrayIndex < v2gLFA_EVSEFinePositioningSetupParametersType->SensorOrder.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- if(errn == 0) {
- errn = encodeNBitUnsignedInteger(stream, 8, (uint32_t)(v2gLFA_EVSEFinePositioningSetupParametersType->SensorOrder.array[v2gLFA_EVSEFinePositioningSetupParametersType_SensorOrder_currArrayIndex++] - 0));
- /* valid EE */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- }
- }
- grammarID = 1699;
- } else if ( 1 == 1 ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- if(errn == 0) {
- errn = encodeNBitUnsignedInteger(stream, 8, (uint32_t)(v2gLFA_EVSEFinePositioningSetupParametersType->SignalPulseDuration - 0));
- /* valid EE */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- }
- }
- grammarID = 1587;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 1699:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorOrder), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SignalPulseDuration)] */
- if (v2gLFA_EVSEFinePositioningSetupParametersType_SensorOrder_currArrayIndex < v2gLFA_EVSEFinePositioningSetupParametersType->SensorOrder.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- if(errn == 0) {
- errn = encodeNBitUnsignedInteger(stream, 8, (uint32_t)(v2gLFA_EVSEFinePositioningSetupParametersType->SensorOrder.array[v2gLFA_EVSEFinePositioningSetupParametersType_SensorOrder_currArrayIndex++] - 0));
- /* valid EE */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- }
- }
- grammarID = 1700;
- } else if ( 1 == 1 ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- if(errn == 0) {
- errn = encodeNBitUnsignedInteger(stream, 8, (uint32_t)(v2gLFA_EVSEFinePositioningSetupParametersType->SignalPulseDuration - 0));
- /* valid EE */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- }
- }
- grammarID = 1587;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 1700:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorOrder), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SignalPulseDuration)] */
- if (v2gLFA_EVSEFinePositioningSetupParametersType_SensorOrder_currArrayIndex < v2gLFA_EVSEFinePositioningSetupParametersType->SensorOrder.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- if(errn == 0) {
- errn = encodeNBitUnsignedInteger(stream, 8, (uint32_t)(v2gLFA_EVSEFinePositioningSetupParametersType->SensorOrder.array[v2gLFA_EVSEFinePositioningSetupParametersType_SensorOrder_currArrayIndex++] - 0));
- /* valid EE */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- }
- }
- grammarID = 1701;
- } else if ( 1 == 1 ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- if(errn == 0) {
- errn = encodeNBitUnsignedInteger(stream, 8, (uint32_t)(v2gLFA_EVSEFinePositioningSetupParametersType->SignalPulseDuration - 0));
- /* valid EE */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- }
- }
- grammarID = 1587;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 1701:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorOrder), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SignalPulseDuration)] */
- if (v2gLFA_EVSEFinePositioningSetupParametersType_SensorOrder_currArrayIndex < v2gLFA_EVSEFinePositioningSetupParametersType->SensorOrder.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- if(errn == 0) {
- errn = encodeNBitUnsignedInteger(stream, 8, (uint32_t)(v2gLFA_EVSEFinePositioningSetupParametersType->SensorOrder.array[v2gLFA_EVSEFinePositioningSetupParametersType_SensorOrder_currArrayIndex++] - 0));
- /* valid EE */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- }
- }
- grammarID = 1702;
- } else if ( 1 == 1 ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- if(errn == 0) {
- errn = encodeNBitUnsignedInteger(stream, 8, (uint32_t)(v2gLFA_EVSEFinePositioningSetupParametersType->SignalPulseDuration - 0));
- /* valid EE */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- }
- }
- grammarID = 1587;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 1702:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorOrder), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SignalPulseDuration)] */
- if (v2gLFA_EVSEFinePositioningSetupParametersType_SensorOrder_currArrayIndex < v2gLFA_EVSEFinePositioningSetupParametersType->SensorOrder.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- if(errn == 0) {
- errn = encodeNBitUnsignedInteger(stream, 8, (uint32_t)(v2gLFA_EVSEFinePositioningSetupParametersType->SensorOrder.array[v2gLFA_EVSEFinePositioningSetupParametersType_SensorOrder_currArrayIndex++] - 0));
- /* valid EE */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- }
- }
- grammarID = 1703;
- } else if ( 1 == 1 ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- if(errn == 0) {
- errn = encodeNBitUnsignedInteger(stream, 8, (uint32_t)(v2gLFA_EVSEFinePositioningSetupParametersType->SignalPulseDuration - 0));
- /* valid EE */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- }
- }
- grammarID = 1587;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 1703:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorOrder), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SignalPulseDuration)] */
- if (v2gLFA_EVSEFinePositioningSetupParametersType_SensorOrder_currArrayIndex < v2gLFA_EVSEFinePositioningSetupParametersType->SensorOrder.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- if(errn == 0) {
- errn = encodeNBitUnsignedInteger(stream, 8, (uint32_t)(v2gLFA_EVSEFinePositioningSetupParametersType->SensorOrder.array[v2gLFA_EVSEFinePositioningSetupParametersType_SensorOrder_currArrayIndex++] - 0));
- /* valid EE */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- }
- }
- grammarID = 1704;
- } else if ( 1 == 1 ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- if(errn == 0) {
- errn = encodeNBitUnsignedInteger(stream, 8, (uint32_t)(v2gLFA_EVSEFinePositioningSetupParametersType->SignalPulseDuration - 0));
- /* valid EE */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- }
- }
- grammarID = 1587;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 1704:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorOrder), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SignalPulseDuration)] */
- if (v2gLFA_EVSEFinePositioningSetupParametersType_SensorOrder_currArrayIndex < v2gLFA_EVSEFinePositioningSetupParametersType->SensorOrder.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- if(errn == 0) {
- errn = encodeNBitUnsignedInteger(stream, 8, (uint32_t)(v2gLFA_EVSEFinePositioningSetupParametersType->SensorOrder.array[v2gLFA_EVSEFinePositioningSetupParametersType_SensorOrder_currArrayIndex++] - 0));
- /* valid EE */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- }
- }
- grammarID = 1705;
- } else if ( 1 == 1 ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- if(errn == 0) {
- errn = encodeNBitUnsignedInteger(stream, 8, (uint32_t)(v2gLFA_EVSEFinePositioningSetupParametersType->SignalPulseDuration - 0));
- /* valid EE */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- }
- }
- grammarID = 1587;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 1705:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorOrder), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SignalPulseDuration)] */
- if (v2gLFA_EVSEFinePositioningSetupParametersType_SensorOrder_currArrayIndex < v2gLFA_EVSEFinePositioningSetupParametersType->SensorOrder.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- if(errn == 0) {
- errn = encodeNBitUnsignedInteger(stream, 8, (uint32_t)(v2gLFA_EVSEFinePositioningSetupParametersType->SensorOrder.array[v2gLFA_EVSEFinePositioningSetupParametersType_SensorOrder_currArrayIndex++] - 0));
- /* valid EE */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- }
- }
- grammarID = 1706;
- } else if ( 1 == 1 ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- if(errn == 0) {
- errn = encodeNBitUnsignedInteger(stream, 8, (uint32_t)(v2gLFA_EVSEFinePositioningSetupParametersType->SignalPulseDuration - 0));
- /* valid EE */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- }
- }
- grammarID = 1587;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 1706:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorOrder), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SignalPulseDuration)] */
- if (v2gLFA_EVSEFinePositioningSetupParametersType_SensorOrder_currArrayIndex < v2gLFA_EVSEFinePositioningSetupParametersType->SensorOrder.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- if(errn == 0) {
- errn = encodeNBitUnsignedInteger(stream, 8, (uint32_t)(v2gLFA_EVSEFinePositioningSetupParametersType->SensorOrder.array[v2gLFA_EVSEFinePositioningSetupParametersType_SensorOrder_currArrayIndex++] - 0));
- /* valid EE */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- }
- }
- grammarID = 1707;
- } else if ( 1 == 1 ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- if(errn == 0) {
- errn = encodeNBitUnsignedInteger(stream, 8, (uint32_t)(v2gLFA_EVSEFinePositioningSetupParametersType->SignalPulseDuration - 0));
- /* valid EE */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- }
- }
- grammarID = 1587;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 1707:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorOrder), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SignalPulseDuration)] */
- if (v2gLFA_EVSEFinePositioningSetupParametersType_SensorOrder_currArrayIndex < v2gLFA_EVSEFinePositioningSetupParametersType->SensorOrder.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- if(errn == 0) {
- errn = encodeNBitUnsignedInteger(stream, 8, (uint32_t)(v2gLFA_EVSEFinePositioningSetupParametersType->SensorOrder.array[v2gLFA_EVSEFinePositioningSetupParametersType_SensorOrder_currArrayIndex++] - 0));
- /* valid EE */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- }
- }
- grammarID = 1708;
- } else if ( 1 == 1 ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- if(errn == 0) {
- errn = encodeNBitUnsignedInteger(stream, 8, (uint32_t)(v2gLFA_EVSEFinePositioningSetupParametersType->SignalPulseDuration - 0));
- /* valid EE */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- }
- }
- grammarID = 1587;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 1708:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorOrder), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SignalPulseDuration)] */
- if (v2gLFA_EVSEFinePositioningSetupParametersType_SensorOrder_currArrayIndex < v2gLFA_EVSEFinePositioningSetupParametersType->SensorOrder.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- if(errn == 0) {
- errn = encodeNBitUnsignedInteger(stream, 8, (uint32_t)(v2gLFA_EVSEFinePositioningSetupParametersType->SensorOrder.array[v2gLFA_EVSEFinePositioningSetupParametersType_SensorOrder_currArrayIndex++] - 0));
- /* valid EE */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- }
- }
- grammarID = 1709;
- } else if ( 1 == 1 ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- if(errn == 0) {
- errn = encodeNBitUnsignedInteger(stream, 8, (uint32_t)(v2gLFA_EVSEFinePositioningSetupParametersType->SignalPulseDuration - 0));
- /* valid EE */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- }
- }
- grammarID = 1587;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 1709:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorOrder), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SignalPulseDuration)] */
- if (v2gLFA_EVSEFinePositioningSetupParametersType_SensorOrder_currArrayIndex < v2gLFA_EVSEFinePositioningSetupParametersType->SensorOrder.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- if(errn == 0) {
- errn = encodeNBitUnsignedInteger(stream, 8, (uint32_t)(v2gLFA_EVSEFinePositioningSetupParametersType->SensorOrder.array[v2gLFA_EVSEFinePositioningSetupParametersType_SensorOrder_currArrayIndex++] - 0));
- /* valid EE */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- }
- }
- grammarID = 1710;
- } else if ( 1 == 1 ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- if(errn == 0) {
- errn = encodeNBitUnsignedInteger(stream, 8, (uint32_t)(v2gLFA_EVSEFinePositioningSetupParametersType->SignalPulseDuration - 0));
- /* valid EE */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- }
- }
- grammarID = 1587;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 1710:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorOrder), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SignalPulseDuration)] */
- if (v2gLFA_EVSEFinePositioningSetupParametersType_SensorOrder_currArrayIndex < v2gLFA_EVSEFinePositioningSetupParametersType->SensorOrder.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- if(errn == 0) {
- errn = encodeNBitUnsignedInteger(stream, 8, (uint32_t)(v2gLFA_EVSEFinePositioningSetupParametersType->SensorOrder.array[v2gLFA_EVSEFinePositioningSetupParametersType_SensorOrder_currArrayIndex++] - 0));
- /* valid EE */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- }
- }
- grammarID = 1711;
- } else if ( 1 == 1 ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- if(errn == 0) {
- errn = encodeNBitUnsignedInteger(stream, 8, (uint32_t)(v2gLFA_EVSEFinePositioningSetupParametersType->SignalPulseDuration - 0));
- /* valid EE */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- }
- }
- grammarID = 1587;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 1711:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorOrder), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SignalPulseDuration)] */
- if (v2gLFA_EVSEFinePositioningSetupParametersType_SensorOrder_currArrayIndex < v2gLFA_EVSEFinePositioningSetupParametersType->SensorOrder.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- if(errn == 0) {
- errn = encodeNBitUnsignedInteger(stream, 8, (uint32_t)(v2gLFA_EVSEFinePositioningSetupParametersType->SensorOrder.array[v2gLFA_EVSEFinePositioningSetupParametersType_SensorOrder_currArrayIndex++] - 0));
- /* valid EE */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- }
- }
- grammarID = 1712;
- } else if ( 1 == 1 ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- if(errn == 0) {
- errn = encodeNBitUnsignedInteger(stream, 8, (uint32_t)(v2gLFA_EVSEFinePositioningSetupParametersType->SignalPulseDuration - 0));
- /* valid EE */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- }
- }
- grammarID = 1587;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 1712:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorOrder), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SignalPulseDuration)] */
- if (v2gLFA_EVSEFinePositioningSetupParametersType_SensorOrder_currArrayIndex < v2gLFA_EVSEFinePositioningSetupParametersType->SensorOrder.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- if(errn == 0) {
- errn = encodeNBitUnsignedInteger(stream, 8, (uint32_t)(v2gLFA_EVSEFinePositioningSetupParametersType->SensorOrder.array[v2gLFA_EVSEFinePositioningSetupParametersType_SensorOrder_currArrayIndex++] - 0));
- /* valid EE */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- }
- }
- grammarID = 1713;
- } else if ( 1 == 1 ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- if(errn == 0) {
- errn = encodeNBitUnsignedInteger(stream, 8, (uint32_t)(v2gLFA_EVSEFinePositioningSetupParametersType->SignalPulseDuration - 0));
- /* valid EE */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- }
- }
- grammarID = 1587;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 1713:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorOrder), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SignalPulseDuration)] */
- if (v2gLFA_EVSEFinePositioningSetupParametersType_SensorOrder_currArrayIndex < v2gLFA_EVSEFinePositioningSetupParametersType->SensorOrder.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- if(errn == 0) {
- errn = encodeNBitUnsignedInteger(stream, 8, (uint32_t)(v2gLFA_EVSEFinePositioningSetupParametersType->SensorOrder.array[v2gLFA_EVSEFinePositioningSetupParametersType_SensorOrder_currArrayIndex++] - 0));
- /* valid EE */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- }
- }
- grammarID = 1714;
- } else if ( 1 == 1 ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- if(errn == 0) {
- errn = encodeNBitUnsignedInteger(stream, 8, (uint32_t)(v2gLFA_EVSEFinePositioningSetupParametersType->SignalPulseDuration - 0));
- /* valid EE */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- }
- }
- grammarID = 1587;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 1714:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorOrder), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SignalPulseDuration)] */
- if (v2gLFA_EVSEFinePositioningSetupParametersType_SensorOrder_currArrayIndex < v2gLFA_EVSEFinePositioningSetupParametersType->SensorOrder.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- if(errn == 0) {
- errn = encodeNBitUnsignedInteger(stream, 8, (uint32_t)(v2gLFA_EVSEFinePositioningSetupParametersType->SensorOrder.array[v2gLFA_EVSEFinePositioningSetupParametersType_SensorOrder_currArrayIndex++] - 0));
- /* valid EE */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- }
- }
- grammarID = 1715;
- } else if ( 1 == 1 ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- if(errn == 0) {
- errn = encodeNBitUnsignedInteger(stream, 8, (uint32_t)(v2gLFA_EVSEFinePositioningSetupParametersType->SignalPulseDuration - 0));
- /* valid EE */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- }
- }
- grammarID = 1587;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 1715:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorOrder), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SignalPulseDuration)] */
- if (v2gLFA_EVSEFinePositioningSetupParametersType_SensorOrder_currArrayIndex < v2gLFA_EVSEFinePositioningSetupParametersType->SensorOrder.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- if(errn == 0) {
- errn = encodeNBitUnsignedInteger(stream, 8, (uint32_t)(v2gLFA_EVSEFinePositioningSetupParametersType->SensorOrder.array[v2gLFA_EVSEFinePositioningSetupParametersType_SensorOrder_currArrayIndex++] - 0));
- /* valid EE */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- }
- }
- grammarID = 1716;
- } else if ( 1 == 1 ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- if(errn == 0) {
- errn = encodeNBitUnsignedInteger(stream, 8, (uint32_t)(v2gLFA_EVSEFinePositioningSetupParametersType->SignalPulseDuration - 0));
- /* valid EE */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- }
- }
- grammarID = 1587;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 1716:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorOrder), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SignalPulseDuration)] */
- if (v2gLFA_EVSEFinePositioningSetupParametersType_SensorOrder_currArrayIndex < v2gLFA_EVSEFinePositioningSetupParametersType->SensorOrder.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- if(errn == 0) {
- errn = encodeNBitUnsignedInteger(stream, 8, (uint32_t)(v2gLFA_EVSEFinePositioningSetupParametersType->SensorOrder.array[v2gLFA_EVSEFinePositioningSetupParametersType_SensorOrder_currArrayIndex++] - 0));
- /* valid EE */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- }
- }
- grammarID = 1717;
- } else if ( 1 == 1 ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- if(errn == 0) {
- errn = encodeNBitUnsignedInteger(stream, 8, (uint32_t)(v2gLFA_EVSEFinePositioningSetupParametersType->SignalPulseDuration - 0));
- /* valid EE */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- }
- }
- grammarID = 1587;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 1717:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorOrder), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SignalPulseDuration)] */
- if (v2gLFA_EVSEFinePositioningSetupParametersType_SensorOrder_currArrayIndex < v2gLFA_EVSEFinePositioningSetupParametersType->SensorOrder.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- if(errn == 0) {
- errn = encodeNBitUnsignedInteger(stream, 8, (uint32_t)(v2gLFA_EVSEFinePositioningSetupParametersType->SensorOrder.array[v2gLFA_EVSEFinePositioningSetupParametersType_SensorOrder_currArrayIndex++] - 0));
- /* valid EE */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- }
- }
- grammarID = 1718;
- } else if ( 1 == 1 ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- if(errn == 0) {
- errn = encodeNBitUnsignedInteger(stream, 8, (uint32_t)(v2gLFA_EVSEFinePositioningSetupParametersType->SignalPulseDuration - 0));
- /* valid EE */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- }
- }
- grammarID = 1587;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 1718:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorOrder), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SignalPulseDuration)] */
- if (v2gLFA_EVSEFinePositioningSetupParametersType_SensorOrder_currArrayIndex < v2gLFA_EVSEFinePositioningSetupParametersType->SensorOrder.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- if(errn == 0) {
- errn = encodeNBitUnsignedInteger(stream, 8, (uint32_t)(v2gLFA_EVSEFinePositioningSetupParametersType->SensorOrder.array[v2gLFA_EVSEFinePositioningSetupParametersType_SensorOrder_currArrayIndex++] - 0));
- /* valid EE */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- }
- }
- grammarID = 1719;
- } else if ( 1 == 1 ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- if(errn == 0) {
- errn = encodeNBitUnsignedInteger(stream, 8, (uint32_t)(v2gLFA_EVSEFinePositioningSetupParametersType->SignalPulseDuration - 0));
- /* valid EE */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- }
- }
- grammarID = 1587;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 1719:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorOrder), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SignalPulseDuration)] */
- if (v2gLFA_EVSEFinePositioningSetupParametersType_SensorOrder_currArrayIndex < v2gLFA_EVSEFinePositioningSetupParametersType->SensorOrder.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- if(errn == 0) {
- errn = encodeNBitUnsignedInteger(stream, 8, (uint32_t)(v2gLFA_EVSEFinePositioningSetupParametersType->SensorOrder.array[v2gLFA_EVSEFinePositioningSetupParametersType_SensorOrder_currArrayIndex++] - 0));
- /* valid EE */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- }
- }
- grammarID = 1720;
- } else if ( 1 == 1 ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- if(errn == 0) {
- errn = encodeNBitUnsignedInteger(stream, 8, (uint32_t)(v2gLFA_EVSEFinePositioningSetupParametersType->SignalPulseDuration - 0));
- /* valid EE */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- }
- }
- grammarID = 1587;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 1720:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorOrder), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SignalPulseDuration)] */
- if (v2gLFA_EVSEFinePositioningSetupParametersType_SensorOrder_currArrayIndex < v2gLFA_EVSEFinePositioningSetupParametersType->SensorOrder.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- if(errn == 0) {
- errn = encodeNBitUnsignedInteger(stream, 8, (uint32_t)(v2gLFA_EVSEFinePositioningSetupParametersType->SensorOrder.array[v2gLFA_EVSEFinePositioningSetupParametersType_SensorOrder_currArrayIndex++] - 0));
- /* valid EE */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- }
- }
- grammarID = 1721;
- } else if ( 1 == 1 ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- if(errn == 0) {
- errn = encodeNBitUnsignedInteger(stream, 8, (uint32_t)(v2gLFA_EVSEFinePositioningSetupParametersType->SignalPulseDuration - 0));
- /* valid EE */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- }
- }
- grammarID = 1587;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 1721:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorOrder), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SignalPulseDuration)] */
- if (v2gLFA_EVSEFinePositioningSetupParametersType_SensorOrder_currArrayIndex < v2gLFA_EVSEFinePositioningSetupParametersType->SensorOrder.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- if(errn == 0) {
- errn = encodeNBitUnsignedInteger(stream, 8, (uint32_t)(v2gLFA_EVSEFinePositioningSetupParametersType->SensorOrder.array[v2gLFA_EVSEFinePositioningSetupParametersType_SensorOrder_currArrayIndex++] - 0));
- /* valid EE */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- }
- }
- grammarID = 1722;
- } else if ( 1 == 1 ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- if(errn == 0) {
- errn = encodeNBitUnsignedInteger(stream, 8, (uint32_t)(v2gLFA_EVSEFinePositioningSetupParametersType->SignalPulseDuration - 0));
- /* valid EE */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- }
- }
- grammarID = 1587;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 1722:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorOrder), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SignalPulseDuration)] */
- if (v2gLFA_EVSEFinePositioningSetupParametersType_SensorOrder_currArrayIndex < v2gLFA_EVSEFinePositioningSetupParametersType->SensorOrder.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- if(errn == 0) {
- errn = encodeNBitUnsignedInteger(stream, 8, (uint32_t)(v2gLFA_EVSEFinePositioningSetupParametersType->SensorOrder.array[v2gLFA_EVSEFinePositioningSetupParametersType_SensorOrder_currArrayIndex++] - 0));
- /* valid EE */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- }
- }
- grammarID = 1723;
- } else if ( 1 == 1 ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- if(errn == 0) {
- errn = encodeNBitUnsignedInteger(stream, 8, (uint32_t)(v2gLFA_EVSEFinePositioningSetupParametersType->SignalPulseDuration - 0));
- /* valid EE */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- }
- }
- grammarID = 1587;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 1723:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorOrder), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SignalPulseDuration)] */
- if (v2gLFA_EVSEFinePositioningSetupParametersType_SensorOrder_currArrayIndex < v2gLFA_EVSEFinePositioningSetupParametersType->SensorOrder.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- if(errn == 0) {
- errn = encodeNBitUnsignedInteger(stream, 8, (uint32_t)(v2gLFA_EVSEFinePositioningSetupParametersType->SensorOrder.array[v2gLFA_EVSEFinePositioningSetupParametersType_SensorOrder_currArrayIndex++] - 0));
- /* valid EE */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- }
- }
- grammarID = 1724;
- } else if ( 1 == 1 ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- if(errn == 0) {
- errn = encodeNBitUnsignedInteger(stream, 8, (uint32_t)(v2gLFA_EVSEFinePositioningSetupParametersType->SignalPulseDuration - 0));
- /* valid EE */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- }
- }
- grammarID = 1587;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 1724:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorOrder), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SignalPulseDuration)] */
- if (v2gLFA_EVSEFinePositioningSetupParametersType_SensorOrder_currArrayIndex < v2gLFA_EVSEFinePositioningSetupParametersType->SensorOrder.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- if(errn == 0) {
- errn = encodeNBitUnsignedInteger(stream, 8, (uint32_t)(v2gLFA_EVSEFinePositioningSetupParametersType->SensorOrder.array[v2gLFA_EVSEFinePositioningSetupParametersType_SensorOrder_currArrayIndex++] - 0));
- /* valid EE */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- }
- }
- grammarID = 1725;
- } else if ( 1 == 1 ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- if(errn == 0) {
- errn = encodeNBitUnsignedInteger(stream, 8, (uint32_t)(v2gLFA_EVSEFinePositioningSetupParametersType->SignalPulseDuration - 0));
- /* valid EE */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- }
- }
- grammarID = 1587;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 1725:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorOrder), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SignalPulseDuration)] */
- if (v2gLFA_EVSEFinePositioningSetupParametersType_SensorOrder_currArrayIndex < v2gLFA_EVSEFinePositioningSetupParametersType->SensorOrder.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- if(errn == 0) {
- errn = encodeNBitUnsignedInteger(stream, 8, (uint32_t)(v2gLFA_EVSEFinePositioningSetupParametersType->SensorOrder.array[v2gLFA_EVSEFinePositioningSetupParametersType_SensorOrder_currArrayIndex++] - 0));
- /* valid EE */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- }
- }
- grammarID = 1726;
- } else if ( 1 == 1 ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- if(errn == 0) {
- errn = encodeNBitUnsignedInteger(stream, 8, (uint32_t)(v2gLFA_EVSEFinePositioningSetupParametersType->SignalPulseDuration - 0));
- /* valid EE */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- }
- }
- grammarID = 1587;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 1726:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorOrder), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SignalPulseDuration)] */
- if (v2gLFA_EVSEFinePositioningSetupParametersType_SensorOrder_currArrayIndex < v2gLFA_EVSEFinePositioningSetupParametersType->SensorOrder.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- if(errn == 0) {
- errn = encodeNBitUnsignedInteger(stream, 8, (uint32_t)(v2gLFA_EVSEFinePositioningSetupParametersType->SensorOrder.array[v2gLFA_EVSEFinePositioningSetupParametersType_SensorOrder_currArrayIndex++] - 0));
- /* valid EE */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- }
- }
- grammarID = 1727;
- } else if ( 1 == 1 ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- if(errn == 0) {
- errn = encodeNBitUnsignedInteger(stream, 8, (uint32_t)(v2gLFA_EVSEFinePositioningSetupParametersType->SignalPulseDuration - 0));
- /* valid EE */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- }
- }
- grammarID = 1587;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 1727:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorOrder), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SignalPulseDuration)] */
- if (v2gLFA_EVSEFinePositioningSetupParametersType_SensorOrder_currArrayIndex < v2gLFA_EVSEFinePositioningSetupParametersType->SensorOrder.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- if(errn == 0) {
- errn = encodeNBitUnsignedInteger(stream, 8, (uint32_t)(v2gLFA_EVSEFinePositioningSetupParametersType->SensorOrder.array[v2gLFA_EVSEFinePositioningSetupParametersType_SensorOrder_currArrayIndex++] - 0));
- /* valid EE */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- }
- }
- grammarID = 1728;
- } else if ( 1 == 1 ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- if(errn == 0) {
- errn = encodeNBitUnsignedInteger(stream, 8, (uint32_t)(v2gLFA_EVSEFinePositioningSetupParametersType->SignalPulseDuration - 0));
- /* valid EE */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- }
- }
- grammarID = 1587;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 1728:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorOrder), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SignalPulseDuration)] */
- if (v2gLFA_EVSEFinePositioningSetupParametersType_SensorOrder_currArrayIndex < v2gLFA_EVSEFinePositioningSetupParametersType->SensorOrder.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- if(errn == 0) {
- errn = encodeNBitUnsignedInteger(stream, 8, (uint32_t)(v2gLFA_EVSEFinePositioningSetupParametersType->SensorOrder.array[v2gLFA_EVSEFinePositioningSetupParametersType_SensorOrder_currArrayIndex++] - 0));
- /* valid EE */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- }
- }
- grammarID = 1729;
- } else if ( 1 == 1 ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- if(errn == 0) {
- errn = encodeNBitUnsignedInteger(stream, 8, (uint32_t)(v2gLFA_EVSEFinePositioningSetupParametersType->SignalPulseDuration - 0));
- /* valid EE */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- }
- }
- grammarID = 1587;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 1729:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorOrder), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SignalPulseDuration)] */
- if (v2gLFA_EVSEFinePositioningSetupParametersType_SensorOrder_currArrayIndex < v2gLFA_EVSEFinePositioningSetupParametersType->SensorOrder.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- if(errn == 0) {
- errn = encodeNBitUnsignedInteger(stream, 8, (uint32_t)(v2gLFA_EVSEFinePositioningSetupParametersType->SensorOrder.array[v2gLFA_EVSEFinePositioningSetupParametersType_SensorOrder_currArrayIndex++] - 0));
- /* valid EE */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- }
- }
- grammarID = 1730;
- } else if ( 1 == 1 ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- if(errn == 0) {
- errn = encodeNBitUnsignedInteger(stream, 8, (uint32_t)(v2gLFA_EVSEFinePositioningSetupParametersType->SignalPulseDuration - 0));
- /* valid EE */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- }
- }
- grammarID = 1587;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 1730:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorOrder), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SignalPulseDuration)] */
- if (v2gLFA_EVSEFinePositioningSetupParametersType_SensorOrder_currArrayIndex < v2gLFA_EVSEFinePositioningSetupParametersType->SensorOrder.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- if(errn == 0) {
- errn = encodeNBitUnsignedInteger(stream, 8, (uint32_t)(v2gLFA_EVSEFinePositioningSetupParametersType->SensorOrder.array[v2gLFA_EVSEFinePositioningSetupParametersType_SensorOrder_currArrayIndex++] - 0));
- /* valid EE */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- }
- }
- grammarID = 1731;
- } else if ( 1 == 1 ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- if(errn == 0) {
- errn = encodeNBitUnsignedInteger(stream, 8, (uint32_t)(v2gLFA_EVSEFinePositioningSetupParametersType->SignalPulseDuration - 0));
- /* valid EE */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- }
- }
- grammarID = 1587;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 1731:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorOrder), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SignalPulseDuration)] */
- if (v2gLFA_EVSEFinePositioningSetupParametersType_SensorOrder_currArrayIndex < v2gLFA_EVSEFinePositioningSetupParametersType->SensorOrder.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- if(errn == 0) {
- errn = encodeNBitUnsignedInteger(stream, 8, (uint32_t)(v2gLFA_EVSEFinePositioningSetupParametersType->SensorOrder.array[v2gLFA_EVSEFinePositioningSetupParametersType_SensorOrder_currArrayIndex++] - 0));
- /* valid EE */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- }
- }
- grammarID = 1732;
- } else if ( 1 == 1 ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- if(errn == 0) {
- errn = encodeNBitUnsignedInteger(stream, 8, (uint32_t)(v2gLFA_EVSEFinePositioningSetupParametersType->SignalPulseDuration - 0));
- /* valid EE */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- }
- }
- grammarID = 1587;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 1732:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorOrder), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SignalPulseDuration)] */
- if (v2gLFA_EVSEFinePositioningSetupParametersType_SensorOrder_currArrayIndex < v2gLFA_EVSEFinePositioningSetupParametersType->SensorOrder.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- if(errn == 0) {
- errn = encodeNBitUnsignedInteger(stream, 8, (uint32_t)(v2gLFA_EVSEFinePositioningSetupParametersType->SensorOrder.array[v2gLFA_EVSEFinePositioningSetupParametersType_SensorOrder_currArrayIndex++] - 0));
- /* valid EE */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- }
- }
- grammarID = 1733;
- } else if ( 1 == 1 ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- if(errn == 0) {
- errn = encodeNBitUnsignedInteger(stream, 8, (uint32_t)(v2gLFA_EVSEFinePositioningSetupParametersType->SignalPulseDuration - 0));
- /* valid EE */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- }
- }
- grammarID = 1587;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 1733:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorOrder), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SignalPulseDuration)] */
- if (v2gLFA_EVSEFinePositioningSetupParametersType_SensorOrder_currArrayIndex < v2gLFA_EVSEFinePositioningSetupParametersType->SensorOrder.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- if(errn == 0) {
- errn = encodeNBitUnsignedInteger(stream, 8, (uint32_t)(v2gLFA_EVSEFinePositioningSetupParametersType->SensorOrder.array[v2gLFA_EVSEFinePositioningSetupParametersType_SensorOrder_currArrayIndex++] - 0));
- /* valid EE */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- }
- }
- grammarID = 1734;
- } else if ( 1 == 1 ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- if(errn == 0) {
- errn = encodeNBitUnsignedInteger(stream, 8, (uint32_t)(v2gLFA_EVSEFinePositioningSetupParametersType->SignalPulseDuration - 0));
- /* valid EE */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- }
- }
- grammarID = 1587;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 1734:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorOrder), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SignalPulseDuration)] */
- if (v2gLFA_EVSEFinePositioningSetupParametersType_SensorOrder_currArrayIndex < v2gLFA_EVSEFinePositioningSetupParametersType->SensorOrder.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- if(errn == 0) {
- errn = encodeNBitUnsignedInteger(stream, 8, (uint32_t)(v2gLFA_EVSEFinePositioningSetupParametersType->SensorOrder.array[v2gLFA_EVSEFinePositioningSetupParametersType_SensorOrder_currArrayIndex++] - 0));
- /* valid EE */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- }
- }
- grammarID = 1735;
- } else if ( 1 == 1 ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- if(errn == 0) {
- errn = encodeNBitUnsignedInteger(stream, 8, (uint32_t)(v2gLFA_EVSEFinePositioningSetupParametersType->SignalPulseDuration - 0));
- /* valid EE */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- }
- }
- grammarID = 1587;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 1735:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorOrder), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SignalPulseDuration)] */
- if (v2gLFA_EVSEFinePositioningSetupParametersType_SensorOrder_currArrayIndex < v2gLFA_EVSEFinePositioningSetupParametersType->SensorOrder.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- if(errn == 0) {
- errn = encodeNBitUnsignedInteger(stream, 8, (uint32_t)(v2gLFA_EVSEFinePositioningSetupParametersType->SensorOrder.array[v2gLFA_EVSEFinePositioningSetupParametersType_SensorOrder_currArrayIndex++] - 0));
- /* valid EE */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- }
- }
- grammarID = 1736;
- } else if ( 1 == 1 ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- if(errn == 0) {
- errn = encodeNBitUnsignedInteger(stream, 8, (uint32_t)(v2gLFA_EVSEFinePositioningSetupParametersType->SignalPulseDuration - 0));
- /* valid EE */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- }
- }
- grammarID = 1587;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 1736:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorOrder), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SignalPulseDuration)] */
- if (v2gLFA_EVSEFinePositioningSetupParametersType_SensorOrder_currArrayIndex < v2gLFA_EVSEFinePositioningSetupParametersType->SensorOrder.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- if(errn == 0) {
- errn = encodeNBitUnsignedInteger(stream, 8, (uint32_t)(v2gLFA_EVSEFinePositioningSetupParametersType->SensorOrder.array[v2gLFA_EVSEFinePositioningSetupParametersType_SensorOrder_currArrayIndex++] - 0));
- /* valid EE */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- }
- }
- grammarID = 1737;
- } else if ( 1 == 1 ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- if(errn == 0) {
- errn = encodeNBitUnsignedInteger(stream, 8, (uint32_t)(v2gLFA_EVSEFinePositioningSetupParametersType->SignalPulseDuration - 0));
- /* valid EE */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- }
- }
- grammarID = 1587;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 1737:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorOrder), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SignalPulseDuration)] */
- if (v2gLFA_EVSEFinePositioningSetupParametersType_SensorOrder_currArrayIndex < v2gLFA_EVSEFinePositioningSetupParametersType->SensorOrder.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- if(errn == 0) {
- errn = encodeNBitUnsignedInteger(stream, 8, (uint32_t)(v2gLFA_EVSEFinePositioningSetupParametersType->SensorOrder.array[v2gLFA_EVSEFinePositioningSetupParametersType_SensorOrder_currArrayIndex++] - 0));
- /* valid EE */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- }
- }
- grammarID = 1738;
- } else if ( 1 == 1 ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- if(errn == 0) {
- errn = encodeNBitUnsignedInteger(stream, 8, (uint32_t)(v2gLFA_EVSEFinePositioningSetupParametersType->SignalPulseDuration - 0));
- /* valid EE */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- }
- }
- grammarID = 1587;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 1738:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorOrder), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SignalPulseDuration)] */
- if (v2gLFA_EVSEFinePositioningSetupParametersType_SensorOrder_currArrayIndex < v2gLFA_EVSEFinePositioningSetupParametersType->SensorOrder.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- if(errn == 0) {
- errn = encodeNBitUnsignedInteger(stream, 8, (uint32_t)(v2gLFA_EVSEFinePositioningSetupParametersType->SensorOrder.array[v2gLFA_EVSEFinePositioningSetupParametersType_SensorOrder_currArrayIndex++] - 0));
- /* valid EE */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- }
- }
- grammarID = 1739;
- } else if ( 1 == 1 ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- if(errn == 0) {
- errn = encodeNBitUnsignedInteger(stream, 8, (uint32_t)(v2gLFA_EVSEFinePositioningSetupParametersType->SignalPulseDuration - 0));
- /* valid EE */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- }
- }
- grammarID = 1587;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 1739:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorOrder), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SignalPulseDuration)] */
- if (v2gLFA_EVSEFinePositioningSetupParametersType_SensorOrder_currArrayIndex < v2gLFA_EVSEFinePositioningSetupParametersType->SensorOrder.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- if(errn == 0) {
- errn = encodeNBitUnsignedInteger(stream, 8, (uint32_t)(v2gLFA_EVSEFinePositioningSetupParametersType->SensorOrder.array[v2gLFA_EVSEFinePositioningSetupParametersType_SensorOrder_currArrayIndex++] - 0));
- /* valid EE */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- }
- }
- grammarID = 1740;
- } else if ( 1 == 1 ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- if(errn == 0) {
- errn = encodeNBitUnsignedInteger(stream, 8, (uint32_t)(v2gLFA_EVSEFinePositioningSetupParametersType->SignalPulseDuration - 0));
- /* valid EE */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- }
- }
- grammarID = 1587;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 1740:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorOrder), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SignalPulseDuration)] */
- if (v2gLFA_EVSEFinePositioningSetupParametersType_SensorOrder_currArrayIndex < v2gLFA_EVSEFinePositioningSetupParametersType->SensorOrder.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- if(errn == 0) {
- errn = encodeNBitUnsignedInteger(stream, 8, (uint32_t)(v2gLFA_EVSEFinePositioningSetupParametersType->SensorOrder.array[v2gLFA_EVSEFinePositioningSetupParametersType_SensorOrder_currArrayIndex++] - 0));
- /* valid EE */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- }
- }
- grammarID = 1741;
- } else if ( 1 == 1 ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- if(errn == 0) {
- errn = encodeNBitUnsignedInteger(stream, 8, (uint32_t)(v2gLFA_EVSEFinePositioningSetupParametersType->SignalPulseDuration - 0));
- /* valid EE */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- }
- }
- grammarID = 1587;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 1741:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorOrder), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SignalPulseDuration)] */
- if (v2gLFA_EVSEFinePositioningSetupParametersType_SensorOrder_currArrayIndex < v2gLFA_EVSEFinePositioningSetupParametersType->SensorOrder.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- if(errn == 0) {
- errn = encodeNBitUnsignedInteger(stream, 8, (uint32_t)(v2gLFA_EVSEFinePositioningSetupParametersType->SensorOrder.array[v2gLFA_EVSEFinePositioningSetupParametersType_SensorOrder_currArrayIndex++] - 0));
- /* valid EE */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- }
- }
- grammarID = 1742;
- } else if ( 1 == 1 ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- if(errn == 0) {
- errn = encodeNBitUnsignedInteger(stream, 8, (uint32_t)(v2gLFA_EVSEFinePositioningSetupParametersType->SignalPulseDuration - 0));
- /* valid EE */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- }
- }
- grammarID = 1587;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 1742:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorOrder), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SignalPulseDuration)] */
- if (v2gLFA_EVSEFinePositioningSetupParametersType_SensorOrder_currArrayIndex < v2gLFA_EVSEFinePositioningSetupParametersType->SensorOrder.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- if(errn == 0) {
- errn = encodeNBitUnsignedInteger(stream, 8, (uint32_t)(v2gLFA_EVSEFinePositioningSetupParametersType->SensorOrder.array[v2gLFA_EVSEFinePositioningSetupParametersType_SensorOrder_currArrayIndex++] - 0));
- /* valid EE */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- }
- }
- grammarID = 1743;
- } else if ( 1 == 1 ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- if(errn == 0) {
- errn = encodeNBitUnsignedInteger(stream, 8, (uint32_t)(v2gLFA_EVSEFinePositioningSetupParametersType->SignalPulseDuration - 0));
- /* valid EE */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- }
- }
- grammarID = 1587;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 1743:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorOrder), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SignalPulseDuration)] */
- if (v2gLFA_EVSEFinePositioningSetupParametersType_SensorOrder_currArrayIndex < v2gLFA_EVSEFinePositioningSetupParametersType->SensorOrder.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- if(errn == 0) {
- errn = encodeNBitUnsignedInteger(stream, 8, (uint32_t)(v2gLFA_EVSEFinePositioningSetupParametersType->SensorOrder.array[v2gLFA_EVSEFinePositioningSetupParametersType_SensorOrder_currArrayIndex++] - 0));
- /* valid EE */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- }
- }
- grammarID = 1744;
- } else if ( 1 == 1 ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- if(errn == 0) {
- errn = encodeNBitUnsignedInteger(stream, 8, (uint32_t)(v2gLFA_EVSEFinePositioningSetupParametersType->SignalPulseDuration - 0));
- /* valid EE */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- }
- }
- grammarID = 1587;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 1744:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorOrder), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SignalPulseDuration)] */
- if (v2gLFA_EVSEFinePositioningSetupParametersType_SensorOrder_currArrayIndex < v2gLFA_EVSEFinePositioningSetupParametersType->SensorOrder.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- if(errn == 0) {
- errn = encodeNBitUnsignedInteger(stream, 8, (uint32_t)(v2gLFA_EVSEFinePositioningSetupParametersType->SensorOrder.array[v2gLFA_EVSEFinePositioningSetupParametersType_SensorOrder_currArrayIndex++] - 0));
- /* valid EE */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- }
- }
- grammarID = 1745;
- } else if ( 1 == 1 ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- if(errn == 0) {
- errn = encodeNBitUnsignedInteger(stream, 8, (uint32_t)(v2gLFA_EVSEFinePositioningSetupParametersType->SignalPulseDuration - 0));
- /* valid EE */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- }
- }
- grammarID = 1587;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 1745:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorOrder), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SignalPulseDuration)] */
- if (v2gLFA_EVSEFinePositioningSetupParametersType_SensorOrder_currArrayIndex < v2gLFA_EVSEFinePositioningSetupParametersType->SensorOrder.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- if(errn == 0) {
- errn = encodeNBitUnsignedInteger(stream, 8, (uint32_t)(v2gLFA_EVSEFinePositioningSetupParametersType->SensorOrder.array[v2gLFA_EVSEFinePositioningSetupParametersType_SensorOrder_currArrayIndex++] - 0));
- /* valid EE */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- }
- }
- grammarID = 1746;
- } else if ( 1 == 1 ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- if(errn == 0) {
- errn = encodeNBitUnsignedInteger(stream, 8, (uint32_t)(v2gLFA_EVSEFinePositioningSetupParametersType->SignalPulseDuration - 0));
- /* valid EE */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- }
- }
- grammarID = 1587;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 1746:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorOrder), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SignalPulseDuration)] */
- if (v2gLFA_EVSEFinePositioningSetupParametersType_SensorOrder_currArrayIndex < v2gLFA_EVSEFinePositioningSetupParametersType->SensorOrder.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- if(errn == 0) {
- errn = encodeNBitUnsignedInteger(stream, 8, (uint32_t)(v2gLFA_EVSEFinePositioningSetupParametersType->SensorOrder.array[v2gLFA_EVSEFinePositioningSetupParametersType_SensorOrder_currArrayIndex++] - 0));
- /* valid EE */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- }
- }
- grammarID = 1747;
- } else if ( 1 == 1 ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- if(errn == 0) {
- errn = encodeNBitUnsignedInteger(stream, 8, (uint32_t)(v2gLFA_EVSEFinePositioningSetupParametersType->SignalPulseDuration - 0));
- /* valid EE */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- }
- }
- grammarID = 1587;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 1747:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorOrder), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SignalPulseDuration)] */
- if (v2gLFA_EVSEFinePositioningSetupParametersType_SensorOrder_currArrayIndex < v2gLFA_EVSEFinePositioningSetupParametersType->SensorOrder.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- if(errn == 0) {
- errn = encodeNBitUnsignedInteger(stream, 8, (uint32_t)(v2gLFA_EVSEFinePositioningSetupParametersType->SensorOrder.array[v2gLFA_EVSEFinePositioningSetupParametersType_SensorOrder_currArrayIndex++] - 0));
- /* valid EE */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- }
- }
- grammarID = 1748;
- } else if ( 1 == 1 ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- if(errn == 0) {
- errn = encodeNBitUnsignedInteger(stream, 8, (uint32_t)(v2gLFA_EVSEFinePositioningSetupParametersType->SignalPulseDuration - 0));
- /* valid EE */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- }
- }
- grammarID = 1587;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 1748:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorOrder), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SignalPulseDuration)] */
- if (v2gLFA_EVSEFinePositioningSetupParametersType_SensorOrder_currArrayIndex < v2gLFA_EVSEFinePositioningSetupParametersType->SensorOrder.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- if(errn == 0) {
- errn = encodeNBitUnsignedInteger(stream, 8, (uint32_t)(v2gLFA_EVSEFinePositioningSetupParametersType->SensorOrder.array[v2gLFA_EVSEFinePositioningSetupParametersType_SensorOrder_currArrayIndex++] - 0));
- /* valid EE */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- }
- }
- grammarID = 1749;
- } else if ( 1 == 1 ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- if(errn == 0) {
- errn = encodeNBitUnsignedInteger(stream, 8, (uint32_t)(v2gLFA_EVSEFinePositioningSetupParametersType->SignalPulseDuration - 0));
- /* valid EE */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- }
- }
- grammarID = 1587;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 1749:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorOrder), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SignalPulseDuration)] */
- if (v2gLFA_EVSEFinePositioningSetupParametersType_SensorOrder_currArrayIndex < v2gLFA_EVSEFinePositioningSetupParametersType->SensorOrder.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- if(errn == 0) {
- errn = encodeNBitUnsignedInteger(stream, 8, (uint32_t)(v2gLFA_EVSEFinePositioningSetupParametersType->SensorOrder.array[v2gLFA_EVSEFinePositioningSetupParametersType_SensorOrder_currArrayIndex++] - 0));
- /* valid EE */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- }
- }
- grammarID = 1750;
- } else if ( 1 == 1 ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- if(errn == 0) {
- errn = encodeNBitUnsignedInteger(stream, 8, (uint32_t)(v2gLFA_EVSEFinePositioningSetupParametersType->SignalPulseDuration - 0));
- /* valid EE */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- }
- }
- grammarID = 1587;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 1750:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorOrder), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SignalPulseDuration)] */
- if (v2gLFA_EVSEFinePositioningSetupParametersType_SensorOrder_currArrayIndex < v2gLFA_EVSEFinePositioningSetupParametersType->SensorOrder.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- if(errn == 0) {
- errn = encodeNBitUnsignedInteger(stream, 8, (uint32_t)(v2gLFA_EVSEFinePositioningSetupParametersType->SensorOrder.array[v2gLFA_EVSEFinePositioningSetupParametersType_SensorOrder_currArrayIndex++] - 0));
- /* valid EE */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- }
- }
- grammarID = 1751;
- } else if ( 1 == 1 ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- if(errn == 0) {
- errn = encodeNBitUnsignedInteger(stream, 8, (uint32_t)(v2gLFA_EVSEFinePositioningSetupParametersType->SignalPulseDuration - 0));
- /* valid EE */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- }
- }
- grammarID = 1587;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 1751:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorOrder), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SignalPulseDuration)] */
- if (v2gLFA_EVSEFinePositioningSetupParametersType_SensorOrder_currArrayIndex < v2gLFA_EVSEFinePositioningSetupParametersType->SensorOrder.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- if(errn == 0) {
- errn = encodeNBitUnsignedInteger(stream, 8, (uint32_t)(v2gLFA_EVSEFinePositioningSetupParametersType->SensorOrder.array[v2gLFA_EVSEFinePositioningSetupParametersType_SensorOrder_currArrayIndex++] - 0));
- /* valid EE */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- }
- }
- grammarID = 1752;
- } else if ( 1 == 1 ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- if(errn == 0) {
- errn = encodeNBitUnsignedInteger(stream, 8, (uint32_t)(v2gLFA_EVSEFinePositioningSetupParametersType->SignalPulseDuration - 0));
- /* valid EE */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- }
- }
- grammarID = 1587;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 1752:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorOrder), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SignalPulseDuration)] */
- if (v2gLFA_EVSEFinePositioningSetupParametersType_SensorOrder_currArrayIndex < v2gLFA_EVSEFinePositioningSetupParametersType->SensorOrder.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- if(errn == 0) {
- errn = encodeNBitUnsignedInteger(stream, 8, (uint32_t)(v2gLFA_EVSEFinePositioningSetupParametersType->SensorOrder.array[v2gLFA_EVSEFinePositioningSetupParametersType_SensorOrder_currArrayIndex++] - 0));
- /* valid EE */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- }
- }
- grammarID = 1753;
- } else if ( 1 == 1 ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- if(errn == 0) {
- errn = encodeNBitUnsignedInteger(stream, 8, (uint32_t)(v2gLFA_EVSEFinePositioningSetupParametersType->SignalPulseDuration - 0));
- /* valid EE */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- }
- }
- grammarID = 1587;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 1753:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorOrder), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SignalPulseDuration)] */
- if (v2gLFA_EVSEFinePositioningSetupParametersType_SensorOrder_currArrayIndex < v2gLFA_EVSEFinePositioningSetupParametersType->SensorOrder.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- if(errn == 0) {
- errn = encodeNBitUnsignedInteger(stream, 8, (uint32_t)(v2gLFA_EVSEFinePositioningSetupParametersType->SensorOrder.array[v2gLFA_EVSEFinePositioningSetupParametersType_SensorOrder_currArrayIndex++] - 0));
- /* valid EE */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- }
- }
- grammarID = 1754;
- } else if ( 1 == 1 ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- if(errn == 0) {
- errn = encodeNBitUnsignedInteger(stream, 8, (uint32_t)(v2gLFA_EVSEFinePositioningSetupParametersType->SignalPulseDuration - 0));
- /* valid EE */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- }
- }
- grammarID = 1587;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 1754:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorOrder), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SignalPulseDuration)] */
- if (v2gLFA_EVSEFinePositioningSetupParametersType_SensorOrder_currArrayIndex < v2gLFA_EVSEFinePositioningSetupParametersType->SensorOrder.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- if(errn == 0) {
- errn = encodeNBitUnsignedInteger(stream, 8, (uint32_t)(v2gLFA_EVSEFinePositioningSetupParametersType->SensorOrder.array[v2gLFA_EVSEFinePositioningSetupParametersType_SensorOrder_currArrayIndex++] - 0));
- /* valid EE */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- }
- }
- grammarID = 1755;
- } else if ( 1 == 1 ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- if(errn == 0) {
- errn = encodeNBitUnsignedInteger(stream, 8, (uint32_t)(v2gLFA_EVSEFinePositioningSetupParametersType->SignalPulseDuration - 0));
- /* valid EE */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- }
- }
- grammarID = 1587;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 1755:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorOrder), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SignalPulseDuration)] */
- if (v2gLFA_EVSEFinePositioningSetupParametersType_SensorOrder_currArrayIndex < v2gLFA_EVSEFinePositioningSetupParametersType->SensorOrder.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- if(errn == 0) {
- errn = encodeNBitUnsignedInteger(stream, 8, (uint32_t)(v2gLFA_EVSEFinePositioningSetupParametersType->SensorOrder.array[v2gLFA_EVSEFinePositioningSetupParametersType_SensorOrder_currArrayIndex++] - 0));
- /* valid EE */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- }
- }
- grammarID = 1756;
- } else if ( 1 == 1 ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- if(errn == 0) {
- errn = encodeNBitUnsignedInteger(stream, 8, (uint32_t)(v2gLFA_EVSEFinePositioningSetupParametersType->SignalPulseDuration - 0));
- /* valid EE */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- }
- }
- grammarID = 1587;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 1756:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorOrder), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SignalPulseDuration)] */
- if (v2gLFA_EVSEFinePositioningSetupParametersType_SensorOrder_currArrayIndex < v2gLFA_EVSEFinePositioningSetupParametersType->SensorOrder.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- if(errn == 0) {
- errn = encodeNBitUnsignedInteger(stream, 8, (uint32_t)(v2gLFA_EVSEFinePositioningSetupParametersType->SensorOrder.array[v2gLFA_EVSEFinePositioningSetupParametersType_SensorOrder_currArrayIndex++] - 0));
- /* valid EE */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- }
- }
- grammarID = 1757;
- } else if ( 1 == 1 ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- if(errn == 0) {
- errn = encodeNBitUnsignedInteger(stream, 8, (uint32_t)(v2gLFA_EVSEFinePositioningSetupParametersType->SignalPulseDuration - 0));
- /* valid EE */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- }
- }
- grammarID = 1587;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 1757:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorOrder), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SignalPulseDuration)] */
- if (v2gLFA_EVSEFinePositioningSetupParametersType_SensorOrder_currArrayIndex < v2gLFA_EVSEFinePositioningSetupParametersType->SensorOrder.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- if(errn == 0) {
- errn = encodeNBitUnsignedInteger(stream, 8, (uint32_t)(v2gLFA_EVSEFinePositioningSetupParametersType->SensorOrder.array[v2gLFA_EVSEFinePositioningSetupParametersType_SensorOrder_currArrayIndex++] - 0));
- /* valid EE */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- }
- }
- grammarID = 1758;
- } else if ( 1 == 1 ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- if(errn == 0) {
- errn = encodeNBitUnsignedInteger(stream, 8, (uint32_t)(v2gLFA_EVSEFinePositioningSetupParametersType->SignalPulseDuration - 0));
- /* valid EE */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- }
- }
- grammarID = 1587;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 1758:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorOrder), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SignalPulseDuration)] */
- if (v2gLFA_EVSEFinePositioningSetupParametersType_SensorOrder_currArrayIndex < v2gLFA_EVSEFinePositioningSetupParametersType->SensorOrder.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- if(errn == 0) {
- errn = encodeNBitUnsignedInteger(stream, 8, (uint32_t)(v2gLFA_EVSEFinePositioningSetupParametersType->SensorOrder.array[v2gLFA_EVSEFinePositioningSetupParametersType_SensorOrder_currArrayIndex++] - 0));
- /* valid EE */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- }
- }
- grammarID = 1759;
- } else if ( 1 == 1 ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- if(errn == 0) {
- errn = encodeNBitUnsignedInteger(stream, 8, (uint32_t)(v2gLFA_EVSEFinePositioningSetupParametersType->SignalPulseDuration - 0));
- /* valid EE */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- }
- }
- grammarID = 1587;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 1759:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorOrder), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SignalPulseDuration)] */
- if (v2gLFA_EVSEFinePositioningSetupParametersType_SensorOrder_currArrayIndex < v2gLFA_EVSEFinePositioningSetupParametersType->SensorOrder.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- if(errn == 0) {
- errn = encodeNBitUnsignedInteger(stream, 8, (uint32_t)(v2gLFA_EVSEFinePositioningSetupParametersType->SensorOrder.array[v2gLFA_EVSEFinePositioningSetupParametersType_SensorOrder_currArrayIndex++] - 0));
- /* valid EE */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- }
- }
- grammarID = 1760;
- } else if ( 1 == 1 ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- if(errn == 0) {
- errn = encodeNBitUnsignedInteger(stream, 8, (uint32_t)(v2gLFA_EVSEFinePositioningSetupParametersType->SignalPulseDuration - 0));
- /* valid EE */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- }
- }
- grammarID = 1587;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 1760:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorOrder), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SignalPulseDuration)] */
- if (v2gLFA_EVSEFinePositioningSetupParametersType_SensorOrder_currArrayIndex < v2gLFA_EVSEFinePositioningSetupParametersType->SensorOrder.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- if(errn == 0) {
- errn = encodeNBitUnsignedInteger(stream, 8, (uint32_t)(v2gLFA_EVSEFinePositioningSetupParametersType->SensorOrder.array[v2gLFA_EVSEFinePositioningSetupParametersType_SensorOrder_currArrayIndex++] - 0));
- /* valid EE */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- }
- }
- grammarID = 1761;
- } else if ( 1 == 1 ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- if(errn == 0) {
- errn = encodeNBitUnsignedInteger(stream, 8, (uint32_t)(v2gLFA_EVSEFinePositioningSetupParametersType->SignalPulseDuration - 0));
- /* valid EE */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- }
- }
- grammarID = 1587;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 1761:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorOrder), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SignalPulseDuration)] */
- if (v2gLFA_EVSEFinePositioningSetupParametersType_SensorOrder_currArrayIndex < v2gLFA_EVSEFinePositioningSetupParametersType->SensorOrder.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- if(errn == 0) {
- errn = encodeNBitUnsignedInteger(stream, 8, (uint32_t)(v2gLFA_EVSEFinePositioningSetupParametersType->SensorOrder.array[v2gLFA_EVSEFinePositioningSetupParametersType_SensorOrder_currArrayIndex++] - 0));
- /* valid EE */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- }
- }
- grammarID = 1762;
- } else if ( 1 == 1 ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- if(errn == 0) {
- errn = encodeNBitUnsignedInteger(stream, 8, (uint32_t)(v2gLFA_EVSEFinePositioningSetupParametersType->SignalPulseDuration - 0));
- /* valid EE */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- }
- }
- grammarID = 1587;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 1762:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorOrder), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SignalPulseDuration)] */
- if (v2gLFA_EVSEFinePositioningSetupParametersType_SensorOrder_currArrayIndex < v2gLFA_EVSEFinePositioningSetupParametersType->SensorOrder.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- if(errn == 0) {
- errn = encodeNBitUnsignedInteger(stream, 8, (uint32_t)(v2gLFA_EVSEFinePositioningSetupParametersType->SensorOrder.array[v2gLFA_EVSEFinePositioningSetupParametersType_SensorOrder_currArrayIndex++] - 0));
- /* valid EE */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- }
- }
- grammarID = 1763;
- } else if ( 1 == 1 ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- if(errn == 0) {
- errn = encodeNBitUnsignedInteger(stream, 8, (uint32_t)(v2gLFA_EVSEFinePositioningSetupParametersType->SignalPulseDuration - 0));
- /* valid EE */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- }
- }
- grammarID = 1587;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 1763:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorOrder), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SignalPulseDuration)] */
- if (v2gLFA_EVSEFinePositioningSetupParametersType_SensorOrder_currArrayIndex < v2gLFA_EVSEFinePositioningSetupParametersType->SensorOrder.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- if(errn == 0) {
- errn = encodeNBitUnsignedInteger(stream, 8, (uint32_t)(v2gLFA_EVSEFinePositioningSetupParametersType->SensorOrder.array[v2gLFA_EVSEFinePositioningSetupParametersType_SensorOrder_currArrayIndex++] - 0));
- /* valid EE */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- }
- }
- grammarID = 1764;
- } else if ( 1 == 1 ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- if(errn == 0) {
- errn = encodeNBitUnsignedInteger(stream, 8, (uint32_t)(v2gLFA_EVSEFinePositioningSetupParametersType->SignalPulseDuration - 0));
- /* valid EE */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- }
- }
- grammarID = 1587;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 1764:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorOrder), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SignalPulseDuration)] */
- if (v2gLFA_EVSEFinePositioningSetupParametersType_SensorOrder_currArrayIndex < v2gLFA_EVSEFinePositioningSetupParametersType->SensorOrder.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- if(errn == 0) {
- errn = encodeNBitUnsignedInteger(stream, 8, (uint32_t)(v2gLFA_EVSEFinePositioningSetupParametersType->SensorOrder.array[v2gLFA_EVSEFinePositioningSetupParametersType_SensorOrder_currArrayIndex++] - 0));
- /* valid EE */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- }
- }
- grammarID = 1765;
- } else if ( 1 == 1 ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- if(errn == 0) {
- errn = encodeNBitUnsignedInteger(stream, 8, (uint32_t)(v2gLFA_EVSEFinePositioningSetupParametersType->SignalPulseDuration - 0));
- /* valid EE */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- }
- }
- grammarID = 1587;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 1765:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorOrder), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SignalPulseDuration)] */
- if (v2gLFA_EVSEFinePositioningSetupParametersType_SensorOrder_currArrayIndex < v2gLFA_EVSEFinePositioningSetupParametersType->SensorOrder.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- if(errn == 0) {
- errn = encodeNBitUnsignedInteger(stream, 8, (uint32_t)(v2gLFA_EVSEFinePositioningSetupParametersType->SensorOrder.array[v2gLFA_EVSEFinePositioningSetupParametersType_SensorOrder_currArrayIndex++] - 0));
- /* valid EE */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- }
- }
- grammarID = 1766;
- } else if ( 1 == 1 ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- if(errn == 0) {
- errn = encodeNBitUnsignedInteger(stream, 8, (uint32_t)(v2gLFA_EVSEFinePositioningSetupParametersType->SignalPulseDuration - 0));
- /* valid EE */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- }
- }
- grammarID = 1587;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 1766:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorOrder), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SignalPulseDuration)] */
- if (v2gLFA_EVSEFinePositioningSetupParametersType_SensorOrder_currArrayIndex < v2gLFA_EVSEFinePositioningSetupParametersType->SensorOrder.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- if(errn == 0) {
- errn = encodeNBitUnsignedInteger(stream, 8, (uint32_t)(v2gLFA_EVSEFinePositioningSetupParametersType->SensorOrder.array[v2gLFA_EVSEFinePositioningSetupParametersType_SensorOrder_currArrayIndex++] - 0));
- /* valid EE */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- }
- }
- grammarID = 1767;
- } else if ( 1 == 1 ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- if(errn == 0) {
- errn = encodeNBitUnsignedInteger(stream, 8, (uint32_t)(v2gLFA_EVSEFinePositioningSetupParametersType->SignalPulseDuration - 0));
- /* valid EE */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- }
- }
- grammarID = 1587;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 1767:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorOrder), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SignalPulseDuration)] */
- if (v2gLFA_EVSEFinePositioningSetupParametersType_SensorOrder_currArrayIndex < v2gLFA_EVSEFinePositioningSetupParametersType->SensorOrder.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- if(errn == 0) {
- errn = encodeNBitUnsignedInteger(stream, 8, (uint32_t)(v2gLFA_EVSEFinePositioningSetupParametersType->SensorOrder.array[v2gLFA_EVSEFinePositioningSetupParametersType_SensorOrder_currArrayIndex++] - 0));
- /* valid EE */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- }
- }
- grammarID = 1768;
- } else if ( 1 == 1 ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- if(errn == 0) {
- errn = encodeNBitUnsignedInteger(stream, 8, (uint32_t)(v2gLFA_EVSEFinePositioningSetupParametersType->SignalPulseDuration - 0));
- /* valid EE */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- }
- }
- grammarID = 1587;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 1768:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorOrder), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SignalPulseDuration)] */
- if (v2gLFA_EVSEFinePositioningSetupParametersType_SensorOrder_currArrayIndex < v2gLFA_EVSEFinePositioningSetupParametersType->SensorOrder.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- if(errn == 0) {
- errn = encodeNBitUnsignedInteger(stream, 8, (uint32_t)(v2gLFA_EVSEFinePositioningSetupParametersType->SensorOrder.array[v2gLFA_EVSEFinePositioningSetupParametersType_SensorOrder_currArrayIndex++] - 0));
- /* valid EE */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- }
- }
- grammarID = 1769;
- } else if ( 1 == 1 ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- if(errn == 0) {
- errn = encodeNBitUnsignedInteger(stream, 8, (uint32_t)(v2gLFA_EVSEFinePositioningSetupParametersType->SignalPulseDuration - 0));
- /* valid EE */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- }
- }
- grammarID = 1587;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 1769:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorOrder), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SignalPulseDuration)] */
- if (v2gLFA_EVSEFinePositioningSetupParametersType_SensorOrder_currArrayIndex < v2gLFA_EVSEFinePositioningSetupParametersType->SensorOrder.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- if(errn == 0) {
- errn = encodeNBitUnsignedInteger(stream, 8, (uint32_t)(v2gLFA_EVSEFinePositioningSetupParametersType->SensorOrder.array[v2gLFA_EVSEFinePositioningSetupParametersType_SensorOrder_currArrayIndex++] - 0));
- /* valid EE */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- }
- }
- grammarID = 1770;
- } else if ( 1 == 1 ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- if(errn == 0) {
- errn = encodeNBitUnsignedInteger(stream, 8, (uint32_t)(v2gLFA_EVSEFinePositioningSetupParametersType->SignalPulseDuration - 0));
- /* valid EE */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- }
- }
- grammarID = 1587;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 1770:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorOrder), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SignalPulseDuration)] */
- if (v2gLFA_EVSEFinePositioningSetupParametersType_SensorOrder_currArrayIndex < v2gLFA_EVSEFinePositioningSetupParametersType->SensorOrder.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- if(errn == 0) {
- errn = encodeNBitUnsignedInteger(stream, 8, (uint32_t)(v2gLFA_EVSEFinePositioningSetupParametersType->SensorOrder.array[v2gLFA_EVSEFinePositioningSetupParametersType_SensorOrder_currArrayIndex++] - 0));
- /* valid EE */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- }
- }
- grammarID = 1771;
- } else if ( 1 == 1 ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- if(errn == 0) {
- errn = encodeNBitUnsignedInteger(stream, 8, (uint32_t)(v2gLFA_EVSEFinePositioningSetupParametersType->SignalPulseDuration - 0));
- /* valid EE */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- }
- }
- grammarID = 1587;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 1771:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorOrder), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SignalPulseDuration)] */
- if (v2gLFA_EVSEFinePositioningSetupParametersType_SensorOrder_currArrayIndex < v2gLFA_EVSEFinePositioningSetupParametersType->SensorOrder.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- if(errn == 0) {
- errn = encodeNBitUnsignedInteger(stream, 8, (uint32_t)(v2gLFA_EVSEFinePositioningSetupParametersType->SensorOrder.array[v2gLFA_EVSEFinePositioningSetupParametersType_SensorOrder_currArrayIndex++] - 0));
- /* valid EE */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- }
- }
- grammarID = 1772;
- } else if ( 1 == 1 ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- if(errn == 0) {
- errn = encodeNBitUnsignedInteger(stream, 8, (uint32_t)(v2gLFA_EVSEFinePositioningSetupParametersType->SignalPulseDuration - 0));
- /* valid EE */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- }
- }
- grammarID = 1587;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 1772:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorOrder), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SignalPulseDuration)] */
- if (v2gLFA_EVSEFinePositioningSetupParametersType_SensorOrder_currArrayIndex < v2gLFA_EVSEFinePositioningSetupParametersType->SensorOrder.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- if(errn == 0) {
- errn = encodeNBitUnsignedInteger(stream, 8, (uint32_t)(v2gLFA_EVSEFinePositioningSetupParametersType->SensorOrder.array[v2gLFA_EVSEFinePositioningSetupParametersType_SensorOrder_currArrayIndex++] - 0));
- /* valid EE */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- }
- }
- grammarID = 1773;
- } else if ( 1 == 1 ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- if(errn == 0) {
- errn = encodeNBitUnsignedInteger(stream, 8, (uint32_t)(v2gLFA_EVSEFinePositioningSetupParametersType->SignalPulseDuration - 0));
- /* valid EE */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- }
- }
- grammarID = 1587;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 1773:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorOrder), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SignalPulseDuration)] */
- if (v2gLFA_EVSEFinePositioningSetupParametersType_SensorOrder_currArrayIndex < v2gLFA_EVSEFinePositioningSetupParametersType->SensorOrder.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- if(errn == 0) {
- errn = encodeNBitUnsignedInteger(stream, 8, (uint32_t)(v2gLFA_EVSEFinePositioningSetupParametersType->SensorOrder.array[v2gLFA_EVSEFinePositioningSetupParametersType_SensorOrder_currArrayIndex++] - 0));
- /* valid EE */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- }
- }
- grammarID = 1774;
- } else if ( 1 == 1 ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- if(errn == 0) {
- errn = encodeNBitUnsignedInteger(stream, 8, (uint32_t)(v2gLFA_EVSEFinePositioningSetupParametersType->SignalPulseDuration - 0));
- /* valid EE */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- }
- }
- grammarID = 1587;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 1774:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorOrder), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SignalPulseDuration)] */
- if (v2gLFA_EVSEFinePositioningSetupParametersType_SensorOrder_currArrayIndex < v2gLFA_EVSEFinePositioningSetupParametersType->SensorOrder.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- if(errn == 0) {
- errn = encodeNBitUnsignedInteger(stream, 8, (uint32_t)(v2gLFA_EVSEFinePositioningSetupParametersType->SensorOrder.array[v2gLFA_EVSEFinePositioningSetupParametersType_SensorOrder_currArrayIndex++] - 0));
- /* valid EE */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- }
- }
- grammarID = 1775;
- } else if ( 1 == 1 ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- if(errn == 0) {
- errn = encodeNBitUnsignedInteger(stream, 8, (uint32_t)(v2gLFA_EVSEFinePositioningSetupParametersType->SignalPulseDuration - 0));
- /* valid EE */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- }
- }
- grammarID = 1587;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 1775:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorOrder), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SignalPulseDuration)] */
- if (v2gLFA_EVSEFinePositioningSetupParametersType_SensorOrder_currArrayIndex < v2gLFA_EVSEFinePositioningSetupParametersType->SensorOrder.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- if(errn == 0) {
- errn = encodeNBitUnsignedInteger(stream, 8, (uint32_t)(v2gLFA_EVSEFinePositioningSetupParametersType->SensorOrder.array[v2gLFA_EVSEFinePositioningSetupParametersType_SensorOrder_currArrayIndex++] - 0));
- /* valid EE */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- }
- }
- grammarID = 1776;
- } else if ( 1 == 1 ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- if(errn == 0) {
- errn = encodeNBitUnsignedInteger(stream, 8, (uint32_t)(v2gLFA_EVSEFinePositioningSetupParametersType->SignalPulseDuration - 0));
- /* valid EE */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- }
- }
- grammarID = 1587;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 1776:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorOrder), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SignalPulseDuration)] */
- if (v2gLFA_EVSEFinePositioningSetupParametersType_SensorOrder_currArrayIndex < v2gLFA_EVSEFinePositioningSetupParametersType->SensorOrder.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- if(errn == 0) {
- errn = encodeNBitUnsignedInteger(stream, 8, (uint32_t)(v2gLFA_EVSEFinePositioningSetupParametersType->SensorOrder.array[v2gLFA_EVSEFinePositioningSetupParametersType_SensorOrder_currArrayIndex++] - 0));
- /* valid EE */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- }
- }
- grammarID = 1777;
- } else if ( 1 == 1 ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- if(errn == 0) {
- errn = encodeNBitUnsignedInteger(stream, 8, (uint32_t)(v2gLFA_EVSEFinePositioningSetupParametersType->SignalPulseDuration - 0));
- /* valid EE */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- }
- }
- grammarID = 1587;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 1777:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorOrder), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SignalPulseDuration)] */
- if (v2gLFA_EVSEFinePositioningSetupParametersType_SensorOrder_currArrayIndex < v2gLFA_EVSEFinePositioningSetupParametersType->SensorOrder.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- if(errn == 0) {
- errn = encodeNBitUnsignedInteger(stream, 8, (uint32_t)(v2gLFA_EVSEFinePositioningSetupParametersType->SensorOrder.array[v2gLFA_EVSEFinePositioningSetupParametersType_SensorOrder_currArrayIndex++] - 0));
- /* valid EE */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- }
- }
- grammarID = 1778;
- } else if ( 1 == 1 ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- if(errn == 0) {
- errn = encodeNBitUnsignedInteger(stream, 8, (uint32_t)(v2gLFA_EVSEFinePositioningSetupParametersType->SignalPulseDuration - 0));
- /* valid EE */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- }
- }
- grammarID = 1587;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 1778:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorOrder), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SignalPulseDuration)] */
- if (v2gLFA_EVSEFinePositioningSetupParametersType_SensorOrder_currArrayIndex < v2gLFA_EVSEFinePositioningSetupParametersType->SensorOrder.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- if(errn == 0) {
- errn = encodeNBitUnsignedInteger(stream, 8, (uint32_t)(v2gLFA_EVSEFinePositioningSetupParametersType->SensorOrder.array[v2gLFA_EVSEFinePositioningSetupParametersType_SensorOrder_currArrayIndex++] - 0));
- /* valid EE */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- }
- }
- grammarID = 1779;
- } else if ( 1 == 1 ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- if(errn == 0) {
- errn = encodeNBitUnsignedInteger(stream, 8, (uint32_t)(v2gLFA_EVSEFinePositioningSetupParametersType->SignalPulseDuration - 0));
- /* valid EE */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- }
- }
- grammarID = 1587;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 1779:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorOrder), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SignalPulseDuration)] */
- if (v2gLFA_EVSEFinePositioningSetupParametersType_SensorOrder_currArrayIndex < v2gLFA_EVSEFinePositioningSetupParametersType->SensorOrder.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- if(errn == 0) {
- errn = encodeNBitUnsignedInteger(stream, 8, (uint32_t)(v2gLFA_EVSEFinePositioningSetupParametersType->SensorOrder.array[v2gLFA_EVSEFinePositioningSetupParametersType_SensorOrder_currArrayIndex++] - 0));
- /* valid EE */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- }
- }
- grammarID = 1780;
- } else if ( 1 == 1 ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- if(errn == 0) {
- errn = encodeNBitUnsignedInteger(stream, 8, (uint32_t)(v2gLFA_EVSEFinePositioningSetupParametersType->SignalPulseDuration - 0));
- /* valid EE */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- }
- }
- grammarID = 1587;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 1780:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorOrder), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SignalPulseDuration)] */
- if (v2gLFA_EVSEFinePositioningSetupParametersType_SensorOrder_currArrayIndex < v2gLFA_EVSEFinePositioningSetupParametersType->SensorOrder.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- if(errn == 0) {
- errn = encodeNBitUnsignedInteger(stream, 8, (uint32_t)(v2gLFA_EVSEFinePositioningSetupParametersType->SensorOrder.array[v2gLFA_EVSEFinePositioningSetupParametersType_SensorOrder_currArrayIndex++] - 0));
- /* valid EE */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- }
- }
- grammarID = 1781;
- } else if ( 1 == 1 ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- if(errn == 0) {
- errn = encodeNBitUnsignedInteger(stream, 8, (uint32_t)(v2gLFA_EVSEFinePositioningSetupParametersType->SignalPulseDuration - 0));
- /* valid EE */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- }
- }
- grammarID = 1587;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 1781:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorOrder), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SignalPulseDuration)] */
- if (v2gLFA_EVSEFinePositioningSetupParametersType_SensorOrder_currArrayIndex < v2gLFA_EVSEFinePositioningSetupParametersType->SensorOrder.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- if(errn == 0) {
- errn = encodeNBitUnsignedInteger(stream, 8, (uint32_t)(v2gLFA_EVSEFinePositioningSetupParametersType->SensorOrder.array[v2gLFA_EVSEFinePositioningSetupParametersType_SensorOrder_currArrayIndex++] - 0));
- /* valid EE */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- }
- }
- grammarID = 1782;
- } else if ( 1 == 1 ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- if(errn == 0) {
- errn = encodeNBitUnsignedInteger(stream, 8, (uint32_t)(v2gLFA_EVSEFinePositioningSetupParametersType->SignalPulseDuration - 0));
- /* valid EE */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- }
- }
- grammarID = 1587;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 1782:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorOrder), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SignalPulseDuration)] */
- if (v2gLFA_EVSEFinePositioningSetupParametersType_SensorOrder_currArrayIndex < v2gLFA_EVSEFinePositioningSetupParametersType->SensorOrder.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- if(errn == 0) {
- errn = encodeNBitUnsignedInteger(stream, 8, (uint32_t)(v2gLFA_EVSEFinePositioningSetupParametersType->SensorOrder.array[v2gLFA_EVSEFinePositioningSetupParametersType_SensorOrder_currArrayIndex++] - 0));
- /* valid EE */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- }
- }
- grammarID = 1783;
- } else if ( 1 == 1 ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- if(errn == 0) {
- errn = encodeNBitUnsignedInteger(stream, 8, (uint32_t)(v2gLFA_EVSEFinePositioningSetupParametersType->SignalPulseDuration - 0));
- /* valid EE */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- }
- }
- grammarID = 1587;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 1783:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorOrder), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SignalPulseDuration)] */
- if (v2gLFA_EVSEFinePositioningSetupParametersType_SensorOrder_currArrayIndex < v2gLFA_EVSEFinePositioningSetupParametersType->SensorOrder.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- if(errn == 0) {
- errn = encodeNBitUnsignedInteger(stream, 8, (uint32_t)(v2gLFA_EVSEFinePositioningSetupParametersType->SensorOrder.array[v2gLFA_EVSEFinePositioningSetupParametersType_SensorOrder_currArrayIndex++] - 0));
- /* valid EE */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- }
- }
- grammarID = 1784;
- } else if ( 1 == 1 ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- if(errn == 0) {
- errn = encodeNBitUnsignedInteger(stream, 8, (uint32_t)(v2gLFA_EVSEFinePositioningSetupParametersType->SignalPulseDuration - 0));
- /* valid EE */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- }
- }
- grammarID = 1587;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 1784:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorOrder), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SignalPulseDuration)] */
- if (v2gLFA_EVSEFinePositioningSetupParametersType_SensorOrder_currArrayIndex < v2gLFA_EVSEFinePositioningSetupParametersType->SensorOrder.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- if(errn == 0) {
- errn = encodeNBitUnsignedInteger(stream, 8, (uint32_t)(v2gLFA_EVSEFinePositioningSetupParametersType->SensorOrder.array[v2gLFA_EVSEFinePositioningSetupParametersType_SensorOrder_currArrayIndex++] - 0));
- /* valid EE */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- }
- }
- grammarID = 1785;
- } else if ( 1 == 1 ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- if(errn == 0) {
- errn = encodeNBitUnsignedInteger(stream, 8, (uint32_t)(v2gLFA_EVSEFinePositioningSetupParametersType->SignalPulseDuration - 0));
- /* valid EE */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- }
- }
- grammarID = 1587;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 1785:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorOrder), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SignalPulseDuration)] */
- if (v2gLFA_EVSEFinePositioningSetupParametersType_SensorOrder_currArrayIndex < v2gLFA_EVSEFinePositioningSetupParametersType->SensorOrder.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- if(errn == 0) {
- errn = encodeNBitUnsignedInteger(stream, 8, (uint32_t)(v2gLFA_EVSEFinePositioningSetupParametersType->SensorOrder.array[v2gLFA_EVSEFinePositioningSetupParametersType_SensorOrder_currArrayIndex++] - 0));
- /* valid EE */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- }
- }
- grammarID = 1786;
- } else if ( 1 == 1 ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- if(errn == 0) {
- errn = encodeNBitUnsignedInteger(stream, 8, (uint32_t)(v2gLFA_EVSEFinePositioningSetupParametersType->SignalPulseDuration - 0));
- /* valid EE */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- }
- }
- grammarID = 1587;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 1786:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorOrder), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SignalPulseDuration)] */
- if (v2gLFA_EVSEFinePositioningSetupParametersType_SensorOrder_currArrayIndex < v2gLFA_EVSEFinePositioningSetupParametersType->SensorOrder.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- if(errn == 0) {
- errn = encodeNBitUnsignedInteger(stream, 8, (uint32_t)(v2gLFA_EVSEFinePositioningSetupParametersType->SensorOrder.array[v2gLFA_EVSEFinePositioningSetupParametersType_SensorOrder_currArrayIndex++] - 0));
- /* valid EE */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- }
- }
- grammarID = 1787;
- } else if ( 1 == 1 ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- if(errn == 0) {
- errn = encodeNBitUnsignedInteger(stream, 8, (uint32_t)(v2gLFA_EVSEFinePositioningSetupParametersType->SignalPulseDuration - 0));
- /* valid EE */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- }
- }
- grammarID = 1587;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 1787:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorOrder), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SignalPulseDuration)] */
- if (v2gLFA_EVSEFinePositioningSetupParametersType_SensorOrder_currArrayIndex < v2gLFA_EVSEFinePositioningSetupParametersType->SensorOrder.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- if(errn == 0) {
- errn = encodeNBitUnsignedInteger(stream, 8, (uint32_t)(v2gLFA_EVSEFinePositioningSetupParametersType->SensorOrder.array[v2gLFA_EVSEFinePositioningSetupParametersType_SensorOrder_currArrayIndex++] - 0));
- /* valid EE */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- }
- }
- grammarID = 1788;
- } else if ( 1 == 1 ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- if(errn == 0) {
- errn = encodeNBitUnsignedInteger(stream, 8, (uint32_t)(v2gLFA_EVSEFinePositioningSetupParametersType->SignalPulseDuration - 0));
- /* valid EE */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- }
- }
- grammarID = 1587;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 1788:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorOrder), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SignalPulseDuration)] */
- if (v2gLFA_EVSEFinePositioningSetupParametersType_SensorOrder_currArrayIndex < v2gLFA_EVSEFinePositioningSetupParametersType->SensorOrder.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- if(errn == 0) {
- errn = encodeNBitUnsignedInteger(stream, 8, (uint32_t)(v2gLFA_EVSEFinePositioningSetupParametersType->SensorOrder.array[v2gLFA_EVSEFinePositioningSetupParametersType_SensorOrder_currArrayIndex++] - 0));
- /* valid EE */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- }
- }
- grammarID = 1789;
- } else if ( 1 == 1 ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- if(errn == 0) {
- errn = encodeNBitUnsignedInteger(stream, 8, (uint32_t)(v2gLFA_EVSEFinePositioningSetupParametersType->SignalPulseDuration - 0));
- /* valid EE */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- }
- }
- grammarID = 1587;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 1789:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorOrder), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SignalPulseDuration)] */
- if (v2gLFA_EVSEFinePositioningSetupParametersType_SensorOrder_currArrayIndex < v2gLFA_EVSEFinePositioningSetupParametersType->SensorOrder.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- if(errn == 0) {
- errn = encodeNBitUnsignedInteger(stream, 8, (uint32_t)(v2gLFA_EVSEFinePositioningSetupParametersType->SensorOrder.array[v2gLFA_EVSEFinePositioningSetupParametersType_SensorOrder_currArrayIndex++] - 0));
- /* valid EE */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- }
- }
- grammarID = 1790;
- } else if ( 1 == 1 ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- if(errn == 0) {
- errn = encodeNBitUnsignedInteger(stream, 8, (uint32_t)(v2gLFA_EVSEFinePositioningSetupParametersType->SignalPulseDuration - 0));
- /* valid EE */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- }
- }
- grammarID = 1587;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 1790:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorOrder), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SignalPulseDuration)] */
- if (v2gLFA_EVSEFinePositioningSetupParametersType_SensorOrder_currArrayIndex < v2gLFA_EVSEFinePositioningSetupParametersType->SensorOrder.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- if(errn == 0) {
- errn = encodeNBitUnsignedInteger(stream, 8, (uint32_t)(v2gLFA_EVSEFinePositioningSetupParametersType->SensorOrder.array[v2gLFA_EVSEFinePositioningSetupParametersType_SensorOrder_currArrayIndex++] - 0));
- /* valid EE */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- }
- }
- grammarID = 1791;
- } else if ( 1 == 1 ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- if(errn == 0) {
- errn = encodeNBitUnsignedInteger(stream, 8, (uint32_t)(v2gLFA_EVSEFinePositioningSetupParametersType->SignalPulseDuration - 0));
- /* valid EE */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- }
- }
- grammarID = 1587;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 1791:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorOrder), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SignalPulseDuration)] */
- if (v2gLFA_EVSEFinePositioningSetupParametersType_SensorOrder_currArrayIndex < v2gLFA_EVSEFinePositioningSetupParametersType->SensorOrder.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- if(errn == 0) {
- errn = encodeNBitUnsignedInteger(stream, 8, (uint32_t)(v2gLFA_EVSEFinePositioningSetupParametersType->SensorOrder.array[v2gLFA_EVSEFinePositioningSetupParametersType_SensorOrder_currArrayIndex++] - 0));
- /* valid EE */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- }
- }
- grammarID = 1792;
- } else if ( 1 == 1 ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- if(errn == 0) {
- errn = encodeNBitUnsignedInteger(stream, 8, (uint32_t)(v2gLFA_EVSEFinePositioningSetupParametersType->SignalPulseDuration - 0));
- /* valid EE */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- }
- }
- grammarID = 1587;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 1792:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorOrder), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SignalPulseDuration)] */
- if (v2gLFA_EVSEFinePositioningSetupParametersType_SensorOrder_currArrayIndex < v2gLFA_EVSEFinePositioningSetupParametersType->SensorOrder.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- if(errn == 0) {
- errn = encodeNBitUnsignedInteger(stream, 8, (uint32_t)(v2gLFA_EVSEFinePositioningSetupParametersType->SensorOrder.array[v2gLFA_EVSEFinePositioningSetupParametersType_SensorOrder_currArrayIndex++] - 0));
- /* valid EE */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- }
- }
- grammarID = 1793;
- } else if ( 1 == 1 ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- if(errn == 0) {
- errn = encodeNBitUnsignedInteger(stream, 8, (uint32_t)(v2gLFA_EVSEFinePositioningSetupParametersType->SignalPulseDuration - 0));
- /* valid EE */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- }
- }
- grammarID = 1587;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 1793:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorOrder), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SignalPulseDuration)] */
- if (v2gLFA_EVSEFinePositioningSetupParametersType_SensorOrder_currArrayIndex < v2gLFA_EVSEFinePositioningSetupParametersType->SensorOrder.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- if(errn == 0) {
- errn = encodeNBitUnsignedInteger(stream, 8, (uint32_t)(v2gLFA_EVSEFinePositioningSetupParametersType->SensorOrder.array[v2gLFA_EVSEFinePositioningSetupParametersType_SensorOrder_currArrayIndex++] - 0));
- /* valid EE */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- }
- }
- grammarID = 1794;
- } else if ( 1 == 1 ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- if(errn == 0) {
- errn = encodeNBitUnsignedInteger(stream, 8, (uint32_t)(v2gLFA_EVSEFinePositioningSetupParametersType->SignalPulseDuration - 0));
- /* valid EE */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- }
- }
- grammarID = 1587;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 1794:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorOrder), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SignalPulseDuration)] */
- if (v2gLFA_EVSEFinePositioningSetupParametersType_SensorOrder_currArrayIndex < v2gLFA_EVSEFinePositioningSetupParametersType->SensorOrder.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- if(errn == 0) {
- errn = encodeNBitUnsignedInteger(stream, 8, (uint32_t)(v2gLFA_EVSEFinePositioningSetupParametersType->SensorOrder.array[v2gLFA_EVSEFinePositioningSetupParametersType_SensorOrder_currArrayIndex++] - 0));
- /* valid EE */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- }
- }
- grammarID = 1795;
- } else if ( 1 == 1 ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- if(errn == 0) {
- errn = encodeNBitUnsignedInteger(stream, 8, (uint32_t)(v2gLFA_EVSEFinePositioningSetupParametersType->SignalPulseDuration - 0));
- /* valid EE */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- }
- }
- grammarID = 1587;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 1795:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorOrder), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SignalPulseDuration)] */
- if (v2gLFA_EVSEFinePositioningSetupParametersType_SensorOrder_currArrayIndex < v2gLFA_EVSEFinePositioningSetupParametersType->SensorOrder.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- if(errn == 0) {
- errn = encodeNBitUnsignedInteger(stream, 8, (uint32_t)(v2gLFA_EVSEFinePositioningSetupParametersType->SensorOrder.array[v2gLFA_EVSEFinePositioningSetupParametersType_SensorOrder_currArrayIndex++] - 0));
- /* valid EE */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- }
- }
- grammarID = 1796;
- } else if ( 1 == 1 ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- if(errn == 0) {
- errn = encodeNBitUnsignedInteger(stream, 8, (uint32_t)(v2gLFA_EVSEFinePositioningSetupParametersType->SignalPulseDuration - 0));
- /* valid EE */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- }
- }
- grammarID = 1587;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 1796:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorOrder), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SignalPulseDuration)] */
- if (v2gLFA_EVSEFinePositioningSetupParametersType_SensorOrder_currArrayIndex < v2gLFA_EVSEFinePositioningSetupParametersType->SensorOrder.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- if(errn == 0) {
- errn = encodeNBitUnsignedInteger(stream, 8, (uint32_t)(v2gLFA_EVSEFinePositioningSetupParametersType->SensorOrder.array[v2gLFA_EVSEFinePositioningSetupParametersType_SensorOrder_currArrayIndex++] - 0));
- /* valid EE */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- }
- }
- grammarID = 1797;
- } else if ( 1 == 1 ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- if(errn == 0) {
- errn = encodeNBitUnsignedInteger(stream, 8, (uint32_t)(v2gLFA_EVSEFinePositioningSetupParametersType->SignalPulseDuration - 0));
- /* valid EE */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- }
- }
- grammarID = 1587;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 1797:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorOrder), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SignalPulseDuration)] */
- if (v2gLFA_EVSEFinePositioningSetupParametersType_SensorOrder_currArrayIndex < v2gLFA_EVSEFinePositioningSetupParametersType->SensorOrder.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- if(errn == 0) {
- errn = encodeNBitUnsignedInteger(stream, 8, (uint32_t)(v2gLFA_EVSEFinePositioningSetupParametersType->SensorOrder.array[v2gLFA_EVSEFinePositioningSetupParametersType_SensorOrder_currArrayIndex++] - 0));
- /* valid EE */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- }
- }
- grammarID = 1798;
- } else if ( 1 == 1 ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- if(errn == 0) {
- errn = encodeNBitUnsignedInteger(stream, 8, (uint32_t)(v2gLFA_EVSEFinePositioningSetupParametersType->SignalPulseDuration - 0));
- /* valid EE */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- }
- }
- grammarID = 1587;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 1798:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorOrder), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SignalPulseDuration)] */
- if (v2gLFA_EVSEFinePositioningSetupParametersType_SensorOrder_currArrayIndex < v2gLFA_EVSEFinePositioningSetupParametersType->SensorOrder.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- if(errn == 0) {
- errn = encodeNBitUnsignedInteger(stream, 8, (uint32_t)(v2gLFA_EVSEFinePositioningSetupParametersType->SensorOrder.array[v2gLFA_EVSEFinePositioningSetupParametersType_SensorOrder_currArrayIndex++] - 0));
- /* valid EE */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- }
- }
- grammarID = 1799;
- } else if ( 1 == 1 ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- if(errn == 0) {
- errn = encodeNBitUnsignedInteger(stream, 8, (uint32_t)(v2gLFA_EVSEFinePositioningSetupParametersType->SignalPulseDuration - 0));
- /* valid EE */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- }
- }
- grammarID = 1587;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 1799:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorOrder), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SignalPulseDuration)] */
- if (v2gLFA_EVSEFinePositioningSetupParametersType_SensorOrder_currArrayIndex < v2gLFA_EVSEFinePositioningSetupParametersType->SensorOrder.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- if(errn == 0) {
- errn = encodeNBitUnsignedInteger(stream, 8, (uint32_t)(v2gLFA_EVSEFinePositioningSetupParametersType->SensorOrder.array[v2gLFA_EVSEFinePositioningSetupParametersType_SensorOrder_currArrayIndex++] - 0));
- /* valid EE */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- }
- }
- grammarID = 1800;
- } else if ( 1 == 1 ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- if(errn == 0) {
- errn = encodeNBitUnsignedInteger(stream, 8, (uint32_t)(v2gLFA_EVSEFinePositioningSetupParametersType->SignalPulseDuration - 0));
- /* valid EE */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- }
- }
- grammarID = 1587;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 1800:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorOrder), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SignalPulseDuration)] */
- if (v2gLFA_EVSEFinePositioningSetupParametersType_SensorOrder_currArrayIndex < v2gLFA_EVSEFinePositioningSetupParametersType->SensorOrder.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- if(errn == 0) {
- errn = encodeNBitUnsignedInteger(stream, 8, (uint32_t)(v2gLFA_EVSEFinePositioningSetupParametersType->SensorOrder.array[v2gLFA_EVSEFinePositioningSetupParametersType_SensorOrder_currArrayIndex++] - 0));
- /* valid EE */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- }
- }
- grammarID = 1801;
- } else if ( 1 == 1 ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- if(errn == 0) {
- errn = encodeNBitUnsignedInteger(stream, 8, (uint32_t)(v2gLFA_EVSEFinePositioningSetupParametersType->SignalPulseDuration - 0));
- /* valid EE */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- }
- }
- grammarID = 1587;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 1801:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorOrder), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SignalPulseDuration)] */
- if (v2gLFA_EVSEFinePositioningSetupParametersType_SensorOrder_currArrayIndex < v2gLFA_EVSEFinePositioningSetupParametersType->SensorOrder.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- if(errn == 0) {
- errn = encodeNBitUnsignedInteger(stream, 8, (uint32_t)(v2gLFA_EVSEFinePositioningSetupParametersType->SensorOrder.array[v2gLFA_EVSEFinePositioningSetupParametersType_SensorOrder_currArrayIndex++] - 0));
- /* valid EE */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- }
- }
- grammarID = 1802;
- } else if ( 1 == 1 ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- if(errn == 0) {
- errn = encodeNBitUnsignedInteger(stream, 8, (uint32_t)(v2gLFA_EVSEFinePositioningSetupParametersType->SignalPulseDuration - 0));
- /* valid EE */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- }
- }
- grammarID = 1587;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 1802:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorOrder), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SignalPulseDuration)] */
- if (v2gLFA_EVSEFinePositioningSetupParametersType_SensorOrder_currArrayIndex < v2gLFA_EVSEFinePositioningSetupParametersType->SensorOrder.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- if(errn == 0) {
- errn = encodeNBitUnsignedInteger(stream, 8, (uint32_t)(v2gLFA_EVSEFinePositioningSetupParametersType->SensorOrder.array[v2gLFA_EVSEFinePositioningSetupParametersType_SensorOrder_currArrayIndex++] - 0));
- /* valid EE */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- }
- }
- grammarID = 1803;
- } else if ( 1 == 1 ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- if(errn == 0) {
- errn = encodeNBitUnsignedInteger(stream, 8, (uint32_t)(v2gLFA_EVSEFinePositioningSetupParametersType->SignalPulseDuration - 0));
- /* valid EE */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- }
- }
- grammarID = 1587;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 1803:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorOrder), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SignalPulseDuration)] */
- if (v2gLFA_EVSEFinePositioningSetupParametersType_SensorOrder_currArrayIndex < v2gLFA_EVSEFinePositioningSetupParametersType->SensorOrder.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- if(errn == 0) {
- errn = encodeNBitUnsignedInteger(stream, 8, (uint32_t)(v2gLFA_EVSEFinePositioningSetupParametersType->SensorOrder.array[v2gLFA_EVSEFinePositioningSetupParametersType_SensorOrder_currArrayIndex++] - 0));
- /* valid EE */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- }
- }
- grammarID = 1804;
- } else if ( 1 == 1 ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- if(errn == 0) {
- errn = encodeNBitUnsignedInteger(stream, 8, (uint32_t)(v2gLFA_EVSEFinePositioningSetupParametersType->SignalPulseDuration - 0));
- /* valid EE */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- }
- }
- grammarID = 1587;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 1804:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorOrder), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SignalPulseDuration)] */
- if (v2gLFA_EVSEFinePositioningSetupParametersType_SensorOrder_currArrayIndex < v2gLFA_EVSEFinePositioningSetupParametersType->SensorOrder.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- if(errn == 0) {
- errn = encodeNBitUnsignedInteger(stream, 8, (uint32_t)(v2gLFA_EVSEFinePositioningSetupParametersType->SensorOrder.array[v2gLFA_EVSEFinePositioningSetupParametersType_SensorOrder_currArrayIndex++] - 0));
- /* valid EE */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- }
- }
- grammarID = 1805;
- } else if ( 1 == 1 ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- if(errn == 0) {
- errn = encodeNBitUnsignedInteger(stream, 8, (uint32_t)(v2gLFA_EVSEFinePositioningSetupParametersType->SignalPulseDuration - 0));
- /* valid EE */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- }
- }
- grammarID = 1587;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 1805:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorOrder), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SignalPulseDuration)] */
- if (v2gLFA_EVSEFinePositioningSetupParametersType_SensorOrder_currArrayIndex < v2gLFA_EVSEFinePositioningSetupParametersType->SensorOrder.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- if(errn == 0) {
- errn = encodeNBitUnsignedInteger(stream, 8, (uint32_t)(v2gLFA_EVSEFinePositioningSetupParametersType->SensorOrder.array[v2gLFA_EVSEFinePositioningSetupParametersType_SensorOrder_currArrayIndex++] - 0));
- /* valid EE */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- }
- }
- grammarID = 1806;
- } else if ( 1 == 1 ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- if(errn == 0) {
- errn = encodeNBitUnsignedInteger(stream, 8, (uint32_t)(v2gLFA_EVSEFinePositioningSetupParametersType->SignalPulseDuration - 0));
- /* valid EE */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- }
- }
- grammarID = 1587;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 1806:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorOrder), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SignalPulseDuration)] */
- if (v2gLFA_EVSEFinePositioningSetupParametersType_SensorOrder_currArrayIndex < v2gLFA_EVSEFinePositioningSetupParametersType->SensorOrder.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- if(errn == 0) {
- errn = encodeNBitUnsignedInteger(stream, 8, (uint32_t)(v2gLFA_EVSEFinePositioningSetupParametersType->SensorOrder.array[v2gLFA_EVSEFinePositioningSetupParametersType_SensorOrder_currArrayIndex++] - 0));
- /* valid EE */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- }
- }
- grammarID = 1807;
- } else if ( 1 == 1 ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- if(errn == 0) {
- errn = encodeNBitUnsignedInteger(stream, 8, (uint32_t)(v2gLFA_EVSEFinePositioningSetupParametersType->SignalPulseDuration - 0));
- /* valid EE */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- }
- }
- grammarID = 1587;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 1807:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorOrder), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SignalPulseDuration)] */
- if (v2gLFA_EVSEFinePositioningSetupParametersType_SensorOrder_currArrayIndex < v2gLFA_EVSEFinePositioningSetupParametersType->SensorOrder.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- if(errn == 0) {
- errn = encodeNBitUnsignedInteger(stream, 8, (uint32_t)(v2gLFA_EVSEFinePositioningSetupParametersType->SensorOrder.array[v2gLFA_EVSEFinePositioningSetupParametersType_SensorOrder_currArrayIndex++] - 0));
- /* valid EE */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- }
- }
- grammarID = 1808;
- } else if ( 1 == 1 ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- if(errn == 0) {
- errn = encodeNBitUnsignedInteger(stream, 8, (uint32_t)(v2gLFA_EVSEFinePositioningSetupParametersType->SignalPulseDuration - 0));
- /* valid EE */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- }
- }
- grammarID = 1587;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 1808:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorOrder), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SignalPulseDuration)] */
- if (v2gLFA_EVSEFinePositioningSetupParametersType_SensorOrder_currArrayIndex < v2gLFA_EVSEFinePositioningSetupParametersType->SensorOrder.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- if(errn == 0) {
- errn = encodeNBitUnsignedInteger(stream, 8, (uint32_t)(v2gLFA_EVSEFinePositioningSetupParametersType->SensorOrder.array[v2gLFA_EVSEFinePositioningSetupParametersType_SensorOrder_currArrayIndex++] - 0));
- /* valid EE */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- }
- }
- grammarID = 1809;
- } else if ( 1 == 1 ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- if(errn == 0) {
- errn = encodeNBitUnsignedInteger(stream, 8, (uint32_t)(v2gLFA_EVSEFinePositioningSetupParametersType->SignalPulseDuration - 0));
- /* valid EE */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- }
- }
- grammarID = 1587;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 1809:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorOrder), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SignalPulseDuration)] */
- if (v2gLFA_EVSEFinePositioningSetupParametersType_SensorOrder_currArrayIndex < v2gLFA_EVSEFinePositioningSetupParametersType->SensorOrder.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- if(errn == 0) {
- errn = encodeNBitUnsignedInteger(stream, 8, (uint32_t)(v2gLFA_EVSEFinePositioningSetupParametersType->SensorOrder.array[v2gLFA_EVSEFinePositioningSetupParametersType_SensorOrder_currArrayIndex++] - 0));
- /* valid EE */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- }
- }
- grammarID = 1810;
- } else if ( 1 == 1 ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- if(errn == 0) {
- errn = encodeNBitUnsignedInteger(stream, 8, (uint32_t)(v2gLFA_EVSEFinePositioningSetupParametersType->SignalPulseDuration - 0));
- /* valid EE */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- }
- }
- grammarID = 1587;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 1810:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorOrder), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SignalPulseDuration)] */
- if (v2gLFA_EVSEFinePositioningSetupParametersType_SensorOrder_currArrayIndex < v2gLFA_EVSEFinePositioningSetupParametersType->SensorOrder.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- if(errn == 0) {
- errn = encodeNBitUnsignedInteger(stream, 8, (uint32_t)(v2gLFA_EVSEFinePositioningSetupParametersType->SensorOrder.array[v2gLFA_EVSEFinePositioningSetupParametersType_SensorOrder_currArrayIndex++] - 0));
- /* valid EE */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- }
- }
- grammarID = 1811;
- } else if ( 1 == 1 ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- if(errn == 0) {
- errn = encodeNBitUnsignedInteger(stream, 8, (uint32_t)(v2gLFA_EVSEFinePositioningSetupParametersType->SignalPulseDuration - 0));
- /* valid EE */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- }
- }
- grammarID = 1587;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 1811:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorOrder), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SignalPulseDuration)] */
- if (v2gLFA_EVSEFinePositioningSetupParametersType_SensorOrder_currArrayIndex < v2gLFA_EVSEFinePositioningSetupParametersType->SensorOrder.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- if(errn == 0) {
- errn = encodeNBitUnsignedInteger(stream, 8, (uint32_t)(v2gLFA_EVSEFinePositioningSetupParametersType->SensorOrder.array[v2gLFA_EVSEFinePositioningSetupParametersType_SensorOrder_currArrayIndex++] - 0));
- /* valid EE */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- }
- }
- grammarID = 1812;
- } else if ( 1 == 1 ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- if(errn == 0) {
- errn = encodeNBitUnsignedInteger(stream, 8, (uint32_t)(v2gLFA_EVSEFinePositioningSetupParametersType->SignalPulseDuration - 0));
- /* valid EE */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- }
- }
- grammarID = 1587;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 1812:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorOrder), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SignalPulseDuration)] */
- if (v2gLFA_EVSEFinePositioningSetupParametersType_SensorOrder_currArrayIndex < v2gLFA_EVSEFinePositioningSetupParametersType->SensorOrder.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- if(errn == 0) {
- errn = encodeNBitUnsignedInteger(stream, 8, (uint32_t)(v2gLFA_EVSEFinePositioningSetupParametersType->SensorOrder.array[v2gLFA_EVSEFinePositioningSetupParametersType_SensorOrder_currArrayIndex++] - 0));
- /* valid EE */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- }
- }
- grammarID = 1813;
- } else if ( 1 == 1 ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- if(errn == 0) {
- errn = encodeNBitUnsignedInteger(stream, 8, (uint32_t)(v2gLFA_EVSEFinePositioningSetupParametersType->SignalPulseDuration - 0));
- /* valid EE */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- }
- }
- grammarID = 1587;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 1813:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorOrder), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SignalPulseDuration)] */
- if (v2gLFA_EVSEFinePositioningSetupParametersType_SensorOrder_currArrayIndex < v2gLFA_EVSEFinePositioningSetupParametersType->SensorOrder.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- if(errn == 0) {
- errn = encodeNBitUnsignedInteger(stream, 8, (uint32_t)(v2gLFA_EVSEFinePositioningSetupParametersType->SensorOrder.array[v2gLFA_EVSEFinePositioningSetupParametersType_SensorOrder_currArrayIndex++] - 0));
- /* valid EE */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- }
- }
- grammarID = 1814;
- } else if ( 1 == 1 ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- if(errn == 0) {
- errn = encodeNBitUnsignedInteger(stream, 8, (uint32_t)(v2gLFA_EVSEFinePositioningSetupParametersType->SignalPulseDuration - 0));
- /* valid EE */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- }
- }
- grammarID = 1587;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 1814:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorOrder), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SignalPulseDuration)] */
- if (v2gLFA_EVSEFinePositioningSetupParametersType_SensorOrder_currArrayIndex < v2gLFA_EVSEFinePositioningSetupParametersType->SensorOrder.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- if(errn == 0) {
- errn = encodeNBitUnsignedInteger(stream, 8, (uint32_t)(v2gLFA_EVSEFinePositioningSetupParametersType->SensorOrder.array[v2gLFA_EVSEFinePositioningSetupParametersType_SensorOrder_currArrayIndex++] - 0));
- /* valid EE */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- }
- }
- grammarID = 1815;
- } else if ( 1 == 1 ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- if(errn == 0) {
- errn = encodeNBitUnsignedInteger(stream, 8, (uint32_t)(v2gLFA_EVSEFinePositioningSetupParametersType->SignalPulseDuration - 0));
- /* valid EE */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- }
- }
- grammarID = 1587;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 1815:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorOrder), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SignalPulseDuration)] */
- if (v2gLFA_EVSEFinePositioningSetupParametersType_SensorOrder_currArrayIndex < v2gLFA_EVSEFinePositioningSetupParametersType->SensorOrder.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- if(errn == 0) {
- errn = encodeNBitUnsignedInteger(stream, 8, (uint32_t)(v2gLFA_EVSEFinePositioningSetupParametersType->SensorOrder.array[v2gLFA_EVSEFinePositioningSetupParametersType_SensorOrder_currArrayIndex++] - 0));
- /* valid EE */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- }
- }
- grammarID = 1816;
- } else if ( 1 == 1 ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- if(errn == 0) {
- errn = encodeNBitUnsignedInteger(stream, 8, (uint32_t)(v2gLFA_EVSEFinePositioningSetupParametersType->SignalPulseDuration - 0));
- /* valid EE */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- }
- }
- grammarID = 1587;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 1816:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorOrder), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SignalPulseDuration)] */
- if (v2gLFA_EVSEFinePositioningSetupParametersType_SensorOrder_currArrayIndex < v2gLFA_EVSEFinePositioningSetupParametersType->SensorOrder.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- if(errn == 0) {
- errn = encodeNBitUnsignedInteger(stream, 8, (uint32_t)(v2gLFA_EVSEFinePositioningSetupParametersType->SensorOrder.array[v2gLFA_EVSEFinePositioningSetupParametersType_SensorOrder_currArrayIndex++] - 0));
- /* valid EE */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- }
- }
- grammarID = 1817;
- } else if ( 1 == 1 ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- if(errn == 0) {
- errn = encodeNBitUnsignedInteger(stream, 8, (uint32_t)(v2gLFA_EVSEFinePositioningSetupParametersType->SignalPulseDuration - 0));
- /* valid EE */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- }
- }
- grammarID = 1587;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 1817:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorOrder), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SignalPulseDuration)] */
- if (v2gLFA_EVSEFinePositioningSetupParametersType_SensorOrder_currArrayIndex < v2gLFA_EVSEFinePositioningSetupParametersType->SensorOrder.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- if(errn == 0) {
- errn = encodeNBitUnsignedInteger(stream, 8, (uint32_t)(v2gLFA_EVSEFinePositioningSetupParametersType->SensorOrder.array[v2gLFA_EVSEFinePositioningSetupParametersType_SensorOrder_currArrayIndex++] - 0));
- /* valid EE */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- }
- }
- grammarID = 1818;
- } else if ( 1 == 1 ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- if(errn == 0) {
- errn = encodeNBitUnsignedInteger(stream, 8, (uint32_t)(v2gLFA_EVSEFinePositioningSetupParametersType->SignalPulseDuration - 0));
- /* valid EE */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- }
- }
- grammarID = 1587;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 1818:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorOrder), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SignalPulseDuration)] */
- if (v2gLFA_EVSEFinePositioningSetupParametersType_SensorOrder_currArrayIndex < v2gLFA_EVSEFinePositioningSetupParametersType->SensorOrder.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- if(errn == 0) {
- errn = encodeNBitUnsignedInteger(stream, 8, (uint32_t)(v2gLFA_EVSEFinePositioningSetupParametersType->SensorOrder.array[v2gLFA_EVSEFinePositioningSetupParametersType_SensorOrder_currArrayIndex++] - 0));
- /* valid EE */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- }
- }
- grammarID = 1819;
- } else if ( 1 == 1 ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- if(errn == 0) {
- errn = encodeNBitUnsignedInteger(stream, 8, (uint32_t)(v2gLFA_EVSEFinePositioningSetupParametersType->SignalPulseDuration - 0));
- /* valid EE */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- }
- }
- grammarID = 1587;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 1819:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorOrder), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SignalPulseDuration)] */
- if (v2gLFA_EVSEFinePositioningSetupParametersType_SensorOrder_currArrayIndex < v2gLFA_EVSEFinePositioningSetupParametersType->SensorOrder.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- if(errn == 0) {
- errn = encodeNBitUnsignedInteger(stream, 8, (uint32_t)(v2gLFA_EVSEFinePositioningSetupParametersType->SensorOrder.array[v2gLFA_EVSEFinePositioningSetupParametersType_SensorOrder_currArrayIndex++] - 0));
- /* valid EE */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- }
- }
- grammarID = 1820;
- } else if ( 1 == 1 ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- if(errn == 0) {
- errn = encodeNBitUnsignedInteger(stream, 8, (uint32_t)(v2gLFA_EVSEFinePositioningSetupParametersType->SignalPulseDuration - 0));
- /* valid EE */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- }
- }
- grammarID = 1587;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 1820:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorOrder), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SignalPulseDuration)] */
- if (v2gLFA_EVSEFinePositioningSetupParametersType_SensorOrder_currArrayIndex < v2gLFA_EVSEFinePositioningSetupParametersType->SensorOrder.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- if(errn == 0) {
- errn = encodeNBitUnsignedInteger(stream, 8, (uint32_t)(v2gLFA_EVSEFinePositioningSetupParametersType->SensorOrder.array[v2gLFA_EVSEFinePositioningSetupParametersType_SensorOrder_currArrayIndex++] - 0));
- /* valid EE */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- }
- }
- grammarID = 1821;
- } else if ( 1 == 1 ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- if(errn == 0) {
- errn = encodeNBitUnsignedInteger(stream, 8, (uint32_t)(v2gLFA_EVSEFinePositioningSetupParametersType->SignalPulseDuration - 0));
- /* valid EE */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- }
- }
- grammarID = 1587;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 1821:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorOrder), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SignalPulseDuration)] */
- if (v2gLFA_EVSEFinePositioningSetupParametersType_SensorOrder_currArrayIndex < v2gLFA_EVSEFinePositioningSetupParametersType->SensorOrder.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- if(errn == 0) {
- errn = encodeNBitUnsignedInteger(stream, 8, (uint32_t)(v2gLFA_EVSEFinePositioningSetupParametersType->SensorOrder.array[v2gLFA_EVSEFinePositioningSetupParametersType_SensorOrder_currArrayIndex++] - 0));
- /* valid EE */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- }
- }
- grammarID = 1822;
- } else if ( 1 == 1 ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- if(errn == 0) {
- errn = encodeNBitUnsignedInteger(stream, 8, (uint32_t)(v2gLFA_EVSEFinePositioningSetupParametersType->SignalPulseDuration - 0));
- /* valid EE */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- }
- }
- grammarID = 1587;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 1822:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorOrder), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SignalPulseDuration)] */
- if (v2gLFA_EVSEFinePositioningSetupParametersType_SensorOrder_currArrayIndex < v2gLFA_EVSEFinePositioningSetupParametersType->SensorOrder.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- if(errn == 0) {
- errn = encodeNBitUnsignedInteger(stream, 8, (uint32_t)(v2gLFA_EVSEFinePositioningSetupParametersType->SensorOrder.array[v2gLFA_EVSEFinePositioningSetupParametersType_SensorOrder_currArrayIndex++] - 0));
- /* valid EE */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- }
- }
- grammarID = 1823;
- } else if ( 1 == 1 ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- if(errn == 0) {
- errn = encodeNBitUnsignedInteger(stream, 8, (uint32_t)(v2gLFA_EVSEFinePositioningSetupParametersType->SignalPulseDuration - 0));
- /* valid EE */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- }
- }
- grammarID = 1587;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 1823:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorOrder), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SignalPulseDuration)] */
- if (v2gLFA_EVSEFinePositioningSetupParametersType_SensorOrder_currArrayIndex < v2gLFA_EVSEFinePositioningSetupParametersType->SensorOrder.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- if(errn == 0) {
- errn = encodeNBitUnsignedInteger(stream, 8, (uint32_t)(v2gLFA_EVSEFinePositioningSetupParametersType->SensorOrder.array[v2gLFA_EVSEFinePositioningSetupParametersType_SensorOrder_currArrayIndex++] - 0));
- /* valid EE */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- }
- }
- grammarID = 1824;
- } else if ( 1 == 1 ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- if(errn == 0) {
- errn = encodeNBitUnsignedInteger(stream, 8, (uint32_t)(v2gLFA_EVSEFinePositioningSetupParametersType->SignalPulseDuration - 0));
- /* valid EE */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- }
- }
- grammarID = 1587;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 1824:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorOrder), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SignalPulseDuration)] */
- if (v2gLFA_EVSEFinePositioningSetupParametersType_SensorOrder_currArrayIndex < v2gLFA_EVSEFinePositioningSetupParametersType->SensorOrder.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- if(errn == 0) {
- errn = encodeNBitUnsignedInteger(stream, 8, (uint32_t)(v2gLFA_EVSEFinePositioningSetupParametersType->SensorOrder.array[v2gLFA_EVSEFinePositioningSetupParametersType_SensorOrder_currArrayIndex++] - 0));
- /* valid EE */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- }
- }
- grammarID = 1825;
- } else if ( 1 == 1 ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- if(errn == 0) {
- errn = encodeNBitUnsignedInteger(stream, 8, (uint32_t)(v2gLFA_EVSEFinePositioningSetupParametersType->SignalPulseDuration - 0));
- /* valid EE */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- }
- }
- grammarID = 1587;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 1825:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorOrder), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SignalPulseDuration)] */
- if (v2gLFA_EVSEFinePositioningSetupParametersType_SensorOrder_currArrayIndex < v2gLFA_EVSEFinePositioningSetupParametersType->SensorOrder.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- if(errn == 0) {
- errn = encodeNBitUnsignedInteger(stream, 8, (uint32_t)(v2gLFA_EVSEFinePositioningSetupParametersType->SensorOrder.array[v2gLFA_EVSEFinePositioningSetupParametersType_SensorOrder_currArrayIndex++] - 0));
- /* valid EE */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- }
- }
- grammarID = 1826;
- } else if ( 1 == 1 ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- if(errn == 0) {
- errn = encodeNBitUnsignedInteger(stream, 8, (uint32_t)(v2gLFA_EVSEFinePositioningSetupParametersType->SignalPulseDuration - 0));
- /* valid EE */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- }
- }
- grammarID = 1587;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 1826:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorOrder), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SignalPulseDuration)] */
- if (v2gLFA_EVSEFinePositioningSetupParametersType_SensorOrder_currArrayIndex < v2gLFA_EVSEFinePositioningSetupParametersType->SensorOrder.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- if(errn == 0) {
- errn = encodeNBitUnsignedInteger(stream, 8, (uint32_t)(v2gLFA_EVSEFinePositioningSetupParametersType->SensorOrder.array[v2gLFA_EVSEFinePositioningSetupParametersType_SensorOrder_currArrayIndex++] - 0));
- /* valid EE */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- }
- }
- grammarID = 1827;
- } else if ( 1 == 1 ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- if(errn == 0) {
- errn = encodeNBitUnsignedInteger(stream, 8, (uint32_t)(v2gLFA_EVSEFinePositioningSetupParametersType->SignalPulseDuration - 0));
- /* valid EE */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- }
- }
- grammarID = 1587;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 1827:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorOrder), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SignalPulseDuration)] */
- if (v2gLFA_EVSEFinePositioningSetupParametersType_SensorOrder_currArrayIndex < v2gLFA_EVSEFinePositioningSetupParametersType->SensorOrder.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- if(errn == 0) {
- errn = encodeNBitUnsignedInteger(stream, 8, (uint32_t)(v2gLFA_EVSEFinePositioningSetupParametersType->SensorOrder.array[v2gLFA_EVSEFinePositioningSetupParametersType_SensorOrder_currArrayIndex++] - 0));
- /* valid EE */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- }
- }
- grammarID = 1828;
- } else if ( 1 == 1 ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- if(errn == 0) {
- errn = encodeNBitUnsignedInteger(stream, 8, (uint32_t)(v2gLFA_EVSEFinePositioningSetupParametersType->SignalPulseDuration - 0));
- /* valid EE */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- }
- }
- grammarID = 1587;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 1828:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorOrder), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SignalPulseDuration)] */
- if (v2gLFA_EVSEFinePositioningSetupParametersType_SensorOrder_currArrayIndex < v2gLFA_EVSEFinePositioningSetupParametersType->SensorOrder.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- if(errn == 0) {
- errn = encodeNBitUnsignedInteger(stream, 8, (uint32_t)(v2gLFA_EVSEFinePositioningSetupParametersType->SensorOrder.array[v2gLFA_EVSEFinePositioningSetupParametersType_SensorOrder_currArrayIndex++] - 0));
- /* valid EE */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- }
- }
- grammarID = 1829;
- } else if ( 1 == 1 ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- if(errn == 0) {
- errn = encodeNBitUnsignedInteger(stream, 8, (uint32_t)(v2gLFA_EVSEFinePositioningSetupParametersType->SignalPulseDuration - 0));
- /* valid EE */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- }
- }
- grammarID = 1587;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 1829:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorOrder), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SignalPulseDuration)] */
- if (v2gLFA_EVSEFinePositioningSetupParametersType_SensorOrder_currArrayIndex < v2gLFA_EVSEFinePositioningSetupParametersType->SensorOrder.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- if(errn == 0) {
- errn = encodeNBitUnsignedInteger(stream, 8, (uint32_t)(v2gLFA_EVSEFinePositioningSetupParametersType->SensorOrder.array[v2gLFA_EVSEFinePositioningSetupParametersType_SensorOrder_currArrayIndex++] - 0));
- /* valid EE */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- }
- }
- grammarID = 1830;
- } else if ( 1 == 1 ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- if(errn == 0) {
- errn = encodeNBitUnsignedInteger(stream, 8, (uint32_t)(v2gLFA_EVSEFinePositioningSetupParametersType->SignalPulseDuration - 0));
- /* valid EE */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- }
- }
- grammarID = 1587;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 1830:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorOrder), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SignalPulseDuration)] */
- if (v2gLFA_EVSEFinePositioningSetupParametersType_SensorOrder_currArrayIndex < v2gLFA_EVSEFinePositioningSetupParametersType->SensorOrder.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- if(errn == 0) {
- errn = encodeNBitUnsignedInteger(stream, 8, (uint32_t)(v2gLFA_EVSEFinePositioningSetupParametersType->SensorOrder.array[v2gLFA_EVSEFinePositioningSetupParametersType_SensorOrder_currArrayIndex++] - 0));
- /* valid EE */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- }
- }
- grammarID = 1831;
- } else if ( 1 == 1 ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- if(errn == 0) {
- errn = encodeNBitUnsignedInteger(stream, 8, (uint32_t)(v2gLFA_EVSEFinePositioningSetupParametersType->SignalPulseDuration - 0));
- /* valid EE */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- }
- }
- grammarID = 1587;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 1831:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorOrder), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SignalPulseDuration)] */
- if (v2gLFA_EVSEFinePositioningSetupParametersType_SensorOrder_currArrayIndex < v2gLFA_EVSEFinePositioningSetupParametersType->SensorOrder.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- if(errn == 0) {
- errn = encodeNBitUnsignedInteger(stream, 8, (uint32_t)(v2gLFA_EVSEFinePositioningSetupParametersType->SensorOrder.array[v2gLFA_EVSEFinePositioningSetupParametersType_SensorOrder_currArrayIndex++] - 0));
- /* valid EE */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- }
- }
- grammarID = 1832;
- } else if ( 1 == 1 ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- if(errn == 0) {
- errn = encodeNBitUnsignedInteger(stream, 8, (uint32_t)(v2gLFA_EVSEFinePositioningSetupParametersType->SignalPulseDuration - 0));
- /* valid EE */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- }
- }
- grammarID = 1587;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 1832:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorOrder), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SignalPulseDuration)] */
- if (v2gLFA_EVSEFinePositioningSetupParametersType_SensorOrder_currArrayIndex < v2gLFA_EVSEFinePositioningSetupParametersType->SensorOrder.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- if(errn == 0) {
- errn = encodeNBitUnsignedInteger(stream, 8, (uint32_t)(v2gLFA_EVSEFinePositioningSetupParametersType->SensorOrder.array[v2gLFA_EVSEFinePositioningSetupParametersType_SensorOrder_currArrayIndex++] - 0));
- /* valid EE */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- }
- }
- grammarID = 1833;
- } else if ( 1 == 1 ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- if(errn == 0) {
- errn = encodeNBitUnsignedInteger(stream, 8, (uint32_t)(v2gLFA_EVSEFinePositioningSetupParametersType->SignalPulseDuration - 0));
- /* valid EE */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- }
- }
- grammarID = 1587;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 1833:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorOrder), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SignalPulseDuration)] */
- if (v2gLFA_EVSEFinePositioningSetupParametersType_SensorOrder_currArrayIndex < v2gLFA_EVSEFinePositioningSetupParametersType->SensorOrder.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- if(errn == 0) {
- errn = encodeNBitUnsignedInteger(stream, 8, (uint32_t)(v2gLFA_EVSEFinePositioningSetupParametersType->SensorOrder.array[v2gLFA_EVSEFinePositioningSetupParametersType_SensorOrder_currArrayIndex++] - 0));
- /* valid EE */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- }
- }
- grammarID = 1834;
- } else if ( 1 == 1 ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- if(errn == 0) {
- errn = encodeNBitUnsignedInteger(stream, 8, (uint32_t)(v2gLFA_EVSEFinePositioningSetupParametersType->SignalPulseDuration - 0));
- /* valid EE */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- }
- }
- grammarID = 1587;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 1834:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorOrder), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SignalPulseDuration)] */
- if (v2gLFA_EVSEFinePositioningSetupParametersType_SensorOrder_currArrayIndex < v2gLFA_EVSEFinePositioningSetupParametersType->SensorOrder.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- if(errn == 0) {
- errn = encodeNBitUnsignedInteger(stream, 8, (uint32_t)(v2gLFA_EVSEFinePositioningSetupParametersType->SensorOrder.array[v2gLFA_EVSEFinePositioningSetupParametersType_SensorOrder_currArrayIndex++] - 0));
- /* valid EE */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- }
- }
- grammarID = 1835;
- } else if ( 1 == 1 ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- if(errn == 0) {
- errn = encodeNBitUnsignedInteger(stream, 8, (uint32_t)(v2gLFA_EVSEFinePositioningSetupParametersType->SignalPulseDuration - 0));
- /* valid EE */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- }
- }
- grammarID = 1587;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 1835:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorOrder), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SignalPulseDuration)] */
- if (v2gLFA_EVSEFinePositioningSetupParametersType_SensorOrder_currArrayIndex < v2gLFA_EVSEFinePositioningSetupParametersType->SensorOrder.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- if(errn == 0) {
- errn = encodeNBitUnsignedInteger(stream, 8, (uint32_t)(v2gLFA_EVSEFinePositioningSetupParametersType->SensorOrder.array[v2gLFA_EVSEFinePositioningSetupParametersType_SensorOrder_currArrayIndex++] - 0));
- /* valid EE */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- }
- }
- grammarID = 1836;
- } else if ( 1 == 1 ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- if(errn == 0) {
- errn = encodeNBitUnsignedInteger(stream, 8, (uint32_t)(v2gLFA_EVSEFinePositioningSetupParametersType->SignalPulseDuration - 0));
- /* valid EE */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- }
- }
- grammarID = 1587;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 1836:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorOrder), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SignalPulseDuration)] */
- if (v2gLFA_EVSEFinePositioningSetupParametersType_SensorOrder_currArrayIndex < v2gLFA_EVSEFinePositioningSetupParametersType->SensorOrder.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- if(errn == 0) {
- errn = encodeNBitUnsignedInteger(stream, 8, (uint32_t)(v2gLFA_EVSEFinePositioningSetupParametersType->SensorOrder.array[v2gLFA_EVSEFinePositioningSetupParametersType_SensorOrder_currArrayIndex++] - 0));
- /* valid EE */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- }
- }
- grammarID = 1837;
- } else if ( 1 == 1 ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- if(errn == 0) {
- errn = encodeNBitUnsignedInteger(stream, 8, (uint32_t)(v2gLFA_EVSEFinePositioningSetupParametersType->SignalPulseDuration - 0));
- /* valid EE */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- }
- }
- grammarID = 1587;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 1837:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorOrder), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SignalPulseDuration)] */
- if (v2gLFA_EVSEFinePositioningSetupParametersType_SensorOrder_currArrayIndex < v2gLFA_EVSEFinePositioningSetupParametersType->SensorOrder.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- if(errn == 0) {
- errn = encodeNBitUnsignedInteger(stream, 8, (uint32_t)(v2gLFA_EVSEFinePositioningSetupParametersType->SensorOrder.array[v2gLFA_EVSEFinePositioningSetupParametersType_SensorOrder_currArrayIndex++] - 0));
- /* valid EE */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- }
- }
- grammarID = 1838;
- } else if ( 1 == 1 ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- if(errn == 0) {
- errn = encodeNBitUnsignedInteger(stream, 8, (uint32_t)(v2gLFA_EVSEFinePositioningSetupParametersType->SignalPulseDuration - 0));
- /* valid EE */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- }
- }
- grammarID = 1587;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 1838:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorOrder), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SignalPulseDuration)] */
- if (v2gLFA_EVSEFinePositioningSetupParametersType_SensorOrder_currArrayIndex < v2gLFA_EVSEFinePositioningSetupParametersType->SensorOrder.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- if(errn == 0) {
- errn = encodeNBitUnsignedInteger(stream, 8, (uint32_t)(v2gLFA_EVSEFinePositioningSetupParametersType->SensorOrder.array[v2gLFA_EVSEFinePositioningSetupParametersType_SensorOrder_currArrayIndex++] - 0));
- /* valid EE */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- }
- }
- grammarID = 1839;
- } else if ( 1 == 1 ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- if(errn == 0) {
- errn = encodeNBitUnsignedInteger(stream, 8, (uint32_t)(v2gLFA_EVSEFinePositioningSetupParametersType->SignalPulseDuration - 0));
- /* valid EE */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- }
- }
- grammarID = 1587;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 1839:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorOrder), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SignalPulseDuration)] */
- if (v2gLFA_EVSEFinePositioningSetupParametersType_SensorOrder_currArrayIndex < v2gLFA_EVSEFinePositioningSetupParametersType->SensorOrder.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- if(errn == 0) {
- errn = encodeNBitUnsignedInteger(stream, 8, (uint32_t)(v2gLFA_EVSEFinePositioningSetupParametersType->SensorOrder.array[v2gLFA_EVSEFinePositioningSetupParametersType_SensorOrder_currArrayIndex++] - 0));
- /* valid EE */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- }
- }
- grammarID = 1840;
- } else if ( 1 == 1 ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- if(errn == 0) {
- errn = encodeNBitUnsignedInteger(stream, 8, (uint32_t)(v2gLFA_EVSEFinePositioningSetupParametersType->SignalPulseDuration - 0));
- /* valid EE */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- }
- }
- grammarID = 1587;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 1840:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SignalPulseDuration)] */
- if ( 1 == 1 ) {
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- if(errn == 0) {
- /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- if(errn == 0) {
- errn = encodeNBitUnsignedInteger(stream, 8, (uint32_t)(v2gLFA_EVSEFinePositioningSetupParametersType->SignalPulseDuration - 0));
- /* valid EE */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- }
- }
- grammarID = 1587;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 1587:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SignalSeparationTime)] */
- if ( 1 == 1 ) {
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- if(errn == 0) {
- /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- if(errn == 0) {
- errn = encodeNBitUnsignedInteger(stream, 8, (uint32_t)(v2gLFA_EVSEFinePositioningSetupParametersType->SignalSeparationTime - 0));
- /* valid EE */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- }
- }
- grammarID = 1841;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 1841:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}PackageSeparationTime)] */
- if ( 1 == 1 ) {
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- if(errn == 0) {
- /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- if(errn == 0) {
- errn = encodeNBitUnsignedInteger(stream, 8, (uint32_t)(v2gLFA_EVSEFinePositioningSetupParametersType->PackageSeparationTime - 0));
- /* valid EE */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- }
- }
- grammarID = 1842;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 1842:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}AlignmentOffset)] */
- if ( 1 == 1 ) {
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- if(errn == 0) {
- /* First(xsi:type)StartTag[CHARACTERS[UNSIGNED_INTEGER]] */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- if(errn == 0) {
- errn = encodeUnsignedInteger16(stream, v2gLFA_EVSEFinePositioningSetupParametersType->AlignmentOffset);
- /* valid EE */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- }
- }
- grammarID = 1843;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 1843:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SignalFrequency)] */
- if ( 1 == 1 ) {
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- if(errn == 0) {
- /* First(xsi:type)StartTag[CHARACTERS[UNSIGNED_INTEGER]] */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- if(errn == 0) {
- errn = encodeUnsignedInteger16(stream, v2gLFA_EVSEFinePositioningSetupParametersType->SignalFrequency);
- /* valid EE */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- }
- }
- grammarID = 2;
- } 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:2016:MsgDataTypes,MinimumPMaxRequestType', base type name='anyType', content type='ELEMENT', isAbstract='false', hasTypeId='false', final='0', block='0', particle='("urn:iso:15118:2:2016:MsgDataTypes":MinimumPMaxScheduleEntry{1-3})', derivedBy='RESTRICTION'. */
-static int encode_v2gMinimumPMaxRequestType(bitstream_t* stream, struct v2gMinimumPMaxRequestType* v2gMinimumPMaxRequestType) {
- int grammarID = 1844;
- int done = 0;
-
- unsigned int v2gMinimumPMaxRequestType_MinimumPMaxScheduleEntry_currArrayIndex = 0;
-
- while(!done) {
- switch(grammarID) {
- case 1844:
- /* FirstStartTag[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MinimumPMaxScheduleEntry)] */
- if (v2gMinimumPMaxRequestType_MinimumPMaxScheduleEntry_currArrayIndex < v2gMinimumPMaxRequestType->MinimumPMaxScheduleEntry.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- if(errn == 0) {
- errn = encode_v2gPMaxScheduleEntryType(stream, &v2gMinimumPMaxRequestType->MinimumPMaxScheduleEntry.array [v2gMinimumPMaxRequestType_MinimumPMaxScheduleEntry_currArrayIndex++]);
- }
- grammarID = 1845;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 1845:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MinimumPMaxScheduleEntry), END_ELEMENT] */
- if (v2gMinimumPMaxRequestType_MinimumPMaxScheduleEntry_currArrayIndex < v2gMinimumPMaxRequestType->MinimumPMaxScheduleEntry.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- errn = encode_v2gPMaxScheduleEntryType(stream, &v2gMinimumPMaxRequestType->MinimumPMaxScheduleEntry.array [v2gMinimumPMaxRequestType_MinimumPMaxScheduleEntry_currArrayIndex++]);
- }
- grammarID = 1846;
- } else if (1==1) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- done = 1;
- }
- grammarID = 3;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 1846:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MinimumPMaxScheduleEntry), END_ELEMENT] */
- if (v2gMinimumPMaxRequestType_MinimumPMaxScheduleEntry_currArrayIndex < v2gMinimumPMaxRequestType->MinimumPMaxScheduleEntry.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- errn = encode_v2gPMaxScheduleEntryType(stream, &v2gMinimumPMaxRequestType->MinimumPMaxScheduleEntry.array [v2gMinimumPMaxRequestType_MinimumPMaxScheduleEntry_currArrayIndex++]);
- }
- 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='http://www.w3.org/2000/09/xmldsig#,CanonicalizationMethodType', base type name='anyType', content type='MIXED', isAbstract='false', hasTypeId='false', final='0', block='0', particle='((WC[##any]){0-UNBOUNDED})', derivedBy='RESTRICTION'. */
-static int encode_v2gCanonicalizationMethodType(bitstream_t* stream, struct v2gCanonicalizationMethodType* v2gCanonicalizationMethodType) {
- int grammarID = 1847;
- int done = 0;
- int wcDone = 0;
-
-
- while(!done) {
- switch(grammarID) {
- case 1847:
- /* FirstStartTag[ATTRIBUTE[STRING](Algorithm)] */
- if (1==1) {
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- if(errn == 0) {
- /* encode string as string table miss (+2 len)*/
- errn = encodeUnsignedInteger16(stream, (uint16_t)(v2gCanonicalizationMethodType->Algorithm.charactersLen + 2));
- if (errn == 0) {
- errn = encodeCharacters(stream, v2gCanonicalizationMethodType->Algorithm.characters, v2gCanonicalizationMethodType->Algorithm.charactersLen);
- }
- }
- grammarID = 1848;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 1848:
- /* StartTag[START_ELEMENT_GENERIC, END_ELEMENT, CHARACTERS_GENERIC[STRING]] */
- if (1==0) {
- errn = EXI_UNSUPPORTED_EVENT_CODE_CHARACTERISTICS;
- grammarID = 904;
- } else if ( v2gCanonicalizationMethodType->ANY_isUsed == 0u || wcDone ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- done = 1;
- }
- grammarID = 3;
- } else if ( v2gCanonicalizationMethodType->ANY_isUsed == 1u ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 2);
- if(errn == 0) {
- /* encode string as string table miss (+2 len)*/
- errn = encodeUnsignedInteger16(stream, (uint16_t)(v2gCanonicalizationMethodType->ANY.charactersLen + 2));
- if (errn == 0) {
- errn = encodeCharacters(stream, v2gCanonicalizationMethodType->ANY.characters, v2gCanonicalizationMethodType->ANY.charactersLen);
- }
- }
- wcDone = 1;
- grammarID = 904;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 904:
- /* Element[START_ELEMENT_GENERIC, END_ELEMENT, CHARACTERS_GENERIC[STRING]] */
- if (1==0) {
- errn = EXI_UNSUPPORTED_EVENT_CODE_CHARACTERISTICS;
- grammarID = 904;
- } else if ( v2gCanonicalizationMethodType->ANY_isUsed == 0u || wcDone ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- done = 1;
- }
- grammarID = 3;
- } else if ( v2gCanonicalizationMethodType->ANY_isUsed == 1u ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 2);
- if(errn == 0) {
- /* encode string as string table miss (+2 len)*/
- errn = encodeUnsignedInteger16(stream, (uint16_t)(v2gCanonicalizationMethodType->ANY.charactersLen + 2));
- if (errn == 0) {
- errn = encodeCharacters(stream, v2gCanonicalizationMethodType->ANY.characters, v2gCanonicalizationMethodType->ANY.charactersLen);
- }
- }
- wcDone = 1;
- grammarID = 904;
- } 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:2016:MsgBody,CertificateInstallationReqType', base type name='BodyBaseType', content type='ELEMENT', isAbstract='false', hasTypeId='false', final='0', block='0', particle='("urn:iso:15118:2:2016:MsgBody":OEMProvisioningCert,"urn:iso:15118:2:2016:MsgBody":ListOfRootCertificateIDs)', derivedBy='EXTENSION'. */
-static int encode_v2gCertificateInstallationReqType(bitstream_t* stream, struct v2gCertificateInstallationReqType* v2gCertificateInstallationReqType) {
- int grammarID = 1849;
- int done = 0;
-
-
- while(!done) {
- switch(grammarID) {
- case 1849:
- /* FirstStartTag[ATTRIBUTE[STRING]({urn:iso:15118:2:2016:MsgBody}Id)] */
- if (1==1) {
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- if(errn == 0) {
- /* encode string as string table miss (+2 len)*/
- errn = encodeUnsignedInteger16(stream, (uint16_t)(v2gCertificateInstallationReqType->Id.charactersLen + 2));
- if (errn == 0) {
- errn = encodeCharacters(stream, v2gCertificateInstallationReqType->Id.characters, v2gCertificateInstallationReqType->Id.charactersLen);
- }
- }
- grammarID = 1850;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 1850:
- /* StartTag[START_ELEMENT({urn:iso:15118:2:2016:MsgBody}OEMProvisioningCert)] */
+ case 12:
+ /* FirstStartTag[START_ELEMENT({http://www.w3.org/2000/09/xmldsig#}Modulus)] */
if ( 1 == 1 ) {
errn = encodeNBitUnsignedInteger(stream, 1, 0);
if(errn == 0) {
/* FirstStartTag[CHARACTERS[BINARY_BASE64]] */
errn = encodeNBitUnsignedInteger(stream, 1, 0);
if(errn == 0) {
- errn = encodeUnsignedInteger16(stream, (uint16_t)(v2gCertificateInstallationReqType->OEMProvisioningCert.bytesLen));
+ errn = encodeUnsignedInteger16(stream, (uint16_t)(iso2RSAKeyValueType->Modulus.bytesLen));
if (errn == 0) {
- errn = encodeBytes(stream, v2gCertificateInstallationReqType->OEMProvisioningCert.bytes, v2gCertificateInstallationReqType->OEMProvisioningCert.bytesLen);
+ errn = encodeBytes(stream, iso2RSAKeyValueType->Modulus.bytes, iso2RSAKeyValueType->Modulus.bytesLen);
}
/* valid EE */
errn = encodeNBitUnsignedInteger(stream, 1, 0);
}
}
- grammarID = 1851;
+ grammarID = 13;
} else {
errn = EXI_ERROR_UNKOWN_EVENT;
}
break;
- case 1851:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgBody}ListOfRootCertificateIDs)] */
- if ( 1 == 1 ) {
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- if(errn == 0) {
- errn = encode_v2gListOfRootCertificateIDsType(stream, &v2gCertificateInstallationReqType->ListOfRootCertificateIDs );
- }
- grammarID = 2;
- } 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:2016:MsgBody,VehicleCheckInReqType', base type name='BodyBaseType', content type='ELEMENT', isAbstract='false', hasTypeId='false', final='0', block='0', particle='("urn:iso:15118:2:2016:MsgBody":EVCheckInStatus,"urn:iso:15118:2:2016:MsgBody":ParkingMethod{0-1})', derivedBy='EXTENSION'. */
-static int encode_v2gVehicleCheckInReqType(bitstream_t* stream, struct v2gVehicleCheckInReqType* v2gVehicleCheckInReqType) {
- int grammarID = 1852;
- int done = 0;
-
-
- while(!done) {
- switch(grammarID) {
- case 1852:
- /* FirstStartTag[START_ELEMENT({urn:iso:15118:2:2016:MsgBody}EVCheckInStatus)] */
- 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, v2gVehicleCheckInReqType->EVCheckInStatus);
- /* valid EE */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- }
- }
- grammarID = 1853;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 1853:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgBody}ParkingMethod), END_ELEMENT] */
- if ( v2gVehicleCheckInReqType->ParkingMethod_isUsed == 1u ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- /* FirstStartTag[CHARACTERS[ENUMERATION]] */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- if(errn == 0) {
- errn = encodeNBitUnsignedInteger(stream, 2, v2gVehicleCheckInReqType->ParkingMethod);
- /* 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:2016:MsgDataTypes,MV_EVSEFinePositioningParametersType', base type name='EVSEFinePositioningParametersType', content type='ELEMENT', isAbstract='false', hasTypeId='false', final='0', block='0', particle='("urn:iso:15118:2:2016:MsgDataTypes":MagneticVectorList)', derivedBy='EXTENSION'. */
-static int encode_v2gMV_EVSEFinePositioningParametersType(bitstream_t* stream, struct v2gMV_EVSEFinePositioningParametersType* v2gMV_EVSEFinePositioningParametersType) {
- int grammarID = 1854;
- int done = 0;
-
-
- while(!done) {
- switch(grammarID) {
- case 1854:
- /* FirstStartTag[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MagneticVectorList)] */
- if ( 1 == 1 ) {
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- if(errn == 0) {
- errn = encode_v2gMagneticVectorListType(stream, &v2gMV_EVSEFinePositioningParametersType->MagneticVectorList );
- }
- grammarID = 2;
- } 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:2016:MsgBody,PowerDeliveryResType', base type name='V2GResponseType', content type='ELEMENT', isAbstract='false', hasTypeId='false', final='0', block='0', particle='(("urn:iso:15118:2:2016:MsgBody":ResponseCode,"urn:iso:15118:2:2016:MsgBody":EVSEStatus{0-1}),("urn:iso:15118:2:2016:MsgBody":EVSEProcessing))', derivedBy='EXTENSION'. */
-static int encode_v2gPowerDeliveryResType(bitstream_t* stream, struct v2gPowerDeliveryResType* v2gPowerDeliveryResType) {
- int grammarID = 583;
- int done = 0;
-
-
- while(!done) {
- switch(grammarID) {
- case 583:
- /* FirstStartTag[START_ELEMENT({urn:iso:15118:2:2016:MsgBody}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, 5, v2gPowerDeliveryResType->ResponseCode);
- /* valid EE */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- }
- }
- grammarID = 584;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 584:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgBody}EVSEStatus), START_ELEMENT({urn:iso:15118:2:2016:MsgBody}EVSEProcessing)] */
- if ( v2gPowerDeliveryResType->EVSEStatus_isUsed == 1u ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- errn = encode_v2gEVSEStatusType(stream, &v2gPowerDeliveryResType->EVSEStatus );
- }
- grammarID = 585;
- } else if ( 1 == 1 ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- /* FirstStartTag[CHARACTERS[ENUMERATION]] */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- if(errn == 0) {
- errn = encodeNBitUnsignedInteger(stream, 2, v2gPowerDeliveryResType->EVSEProcessing);
- /* valid EE */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- }
- }
- grammarID = 2;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 585:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgBody}EVSEProcessing)] */
- 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, v2gPowerDeliveryResType->EVSEProcessing);
- /* valid EE */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- }
- }
- grammarID = 2;
- } 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:2016:MsgDataTypes,EVSEEnergyTransferParameterType', base type name='anyType', content type='EMPTY', isAbstract='true', hasTypeId='false', final='0', block='0', derivedBy='RESTRICTION'. */
-static int encode_v2gEVSEEnergyTransferParameterType(bitstream_t* stream, struct v2gEVSEEnergyTransferParameterType* v2gEVSEEnergyTransferParameterType) {
- int grammarID = 4;
- int done = 0;
-
-
- while(!done) {
- switch(grammarID) {
- case 4:
- /* FirstStartTag[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:2016:MsgDataTypes,DiffieHellmanPublickeyType', base type name='dHpublickeyType', content type='SIMPLE', isAbstract='false', hasTypeId='false', final='0', block='0', derivedBy='EXTENSION'. */
-static int encode_v2gDiffieHellmanPublickeyType(bitstream_t* stream, struct v2gDiffieHellmanPublickeyType* v2gDiffieHellmanPublickeyType) {
- int grammarID = 1855;
- int done = 0;
-
-
- while(!done) {
- switch(grammarID) {
- case 1855:
- /* FirstStartTag[ATTRIBUTE[STRING]({urn:iso:15118:2:2016:MsgDataTypes}Id)] */
- if (1==1) {
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- if(errn == 0) {
- /* encode string as string table miss (+2 len)*/
- errn = encodeUnsignedInteger16(stream, (uint16_t)(v2gDiffieHellmanPublickeyType->Id.charactersLen + 2));
- if (errn == 0) {
- errn = encodeCharacters(stream, v2gDiffieHellmanPublickeyType->Id.characters, v2gDiffieHellmanPublickeyType->Id.charactersLen);
- }
- }
- grammarID = 1;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 1:
- /* StartTag[CHARACTERS[BINARY_BASE64]] */
- if (1==1) {
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- if(errn == 0) {
- errn = encodeUnsignedInteger16(stream, (uint16_t)(v2gDiffieHellmanPublickeyType->CONTENT.bytesLen));
- if (errn == 0) {
- errn = encodeBytes(stream, v2gDiffieHellmanPublickeyType->CONTENT.bytes, v2gDiffieHellmanPublickeyType->CONTENT.bytesLen);
- }
- }
- grammarID = 2;
- } 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:2016:MsgBody,V2GResponseType', base type name='BodyBaseType', content type='ELEMENT', isAbstract='true', hasTypeId='false', final='0', block='0', particle='("urn:iso:15118:2:2016:MsgBody":ResponseCode,"urn:iso:15118:2:2016:MsgBody":EVSEStatus{0-1})', derivedBy='EXTENSION'. */
-static int encode_v2gV2GResponseType(bitstream_t* stream, struct v2gV2GResponseType* v2gV2GResponseType) {
- int grammarID = 1856;
- int done = 0;
-
-
- while(!done) {
- switch(grammarID) {
- case 1856:
- /* FirstStartTag[START_ELEMENT({urn:iso:15118:2:2016:MsgBody}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, 5, v2gV2GResponseType->ResponseCode);
- /* valid EE */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- }
- }
- grammarID = 1857;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 1857:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgBody}EVSEStatus), END_ELEMENT] */
- if ( v2gV2GResponseType->EVSEStatus_isUsed == 1u ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- errn = encode_v2gEVSEStatusType(stream, &v2gV2GResponseType->EVSEStatus );
- }
- 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:2016:MsgBody,CableCheckResType', base type name='V2GResponseType', content type='ELEMENT', isAbstract='false', hasTypeId='false', final='0', block='0', particle='(("urn:iso:15118:2:2016:MsgBody":ResponseCode,"urn:iso:15118:2:2016:MsgBody":EVSEStatus{0-1}),("urn:iso:15118:2:2016:MsgBody":EVSEProcessing))', derivedBy='EXTENSION'. */
-static int encode_v2gCableCheckResType(bitstream_t* stream, struct v2gCableCheckResType* v2gCableCheckResType) {
- int grammarID = 583;
- int done = 0;
-
-
- while(!done) {
- switch(grammarID) {
- case 583:
- /* FirstStartTag[START_ELEMENT({urn:iso:15118:2:2016:MsgBody}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, 5, v2gCableCheckResType->ResponseCode);
- /* valid EE */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- }
- }
- grammarID = 584;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 584:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgBody}EVSEStatus), START_ELEMENT({urn:iso:15118:2:2016:MsgBody}EVSEProcessing)] */
- if ( v2gCableCheckResType->EVSEStatus_isUsed == 1u ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- errn = encode_v2gEVSEStatusType(stream, &v2gCableCheckResType->EVSEStatus );
- }
- grammarID = 585;
- } else if ( 1 == 1 ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- /* FirstStartTag[CHARACTERS[ENUMERATION]] */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- if(errn == 0) {
- errn = encodeNBitUnsignedInteger(stream, 2, v2gCableCheckResType->EVSEProcessing);
- /* valid EE */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- }
- }
- grammarID = 2;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 585:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgBody}EVSEProcessing)] */
- 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, v2gCableCheckResType->EVSEProcessing);
- /* valid EE */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- }
- }
- grammarID = 2;
- } 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:2016:MsgDataTypes,SalesTariffEntryType', base type name='EntryType', content type='ELEMENT', isAbstract='false', hasTypeId='false', final='0', block='0', particle='(("urn:iso:15118:2:2016:MsgDataTypes":RelativeTimeInterval),("urn:iso:15118:2:2016:MsgDataTypes":EPriceLevel{0-1},"urn:iso:15118:2:2016:MsgDataTypes":ConsumptionCost{0-3}))', derivedBy='EXTENSION'. */
-static int encode_v2gSalesTariffEntryType(bitstream_t* stream, struct v2gSalesTariffEntryType* v2gSalesTariffEntryType) {
- int grammarID = 1858;
- int done = 0;
-
- unsigned int v2gSalesTariffEntryType_ConsumptionCost_currArrayIndex = 0;
-
- while(!done) {
- switch(grammarID) {
- case 1858:
- /* FirstStartTag[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}RelativeTimeInterval)] */
- if ( 1 == 1 ) {
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- if(errn == 0) {
- errn = encode_v2gRelativeTimeIntervalType(stream, &v2gSalesTariffEntryType->RelativeTimeInterval );
- }
- grammarID = 1859;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 1859:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}EPriceLevel), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}ConsumptionCost), END_ELEMENT] */
- if ( v2gSalesTariffEntryType->EPriceLevel_isUsed == 1u ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- if(errn == 0) {
- errn = encodeNBitUnsignedInteger(stream, 8, (uint32_t)(v2gSalesTariffEntryType->EPriceLevel - 0));
- /* valid EE */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- }
- }
- grammarID = 1860;
- } else if (v2gSalesTariffEntryType_ConsumptionCost_currArrayIndex < v2gSalesTariffEntryType->ConsumptionCost.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- errn = encode_v2gConsumptionCostType(stream, &v2gSalesTariffEntryType->ConsumptionCost.array [v2gSalesTariffEntryType_ConsumptionCost_currArrayIndex++]);
- }
- grammarID = 1861;
- } else if (1==1) {
- errn = encodeNBitUnsignedInteger(stream, 2, 2);
- if(errn == 0) {
- done = 1;
- }
- grammarID = 3;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 1860:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}ConsumptionCost), END_ELEMENT] */
- if (v2gSalesTariffEntryType_ConsumptionCost_currArrayIndex < v2gSalesTariffEntryType->ConsumptionCost.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- errn = encode_v2gConsumptionCostType(stream, &v2gSalesTariffEntryType->ConsumptionCost.array [v2gSalesTariffEntryType_ConsumptionCost_currArrayIndex++]);
- }
- grammarID = 1861;
- } else if (1==1) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- done = 1;
- }
- grammarID = 3;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 1861:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}ConsumptionCost), END_ELEMENT] */
- if (v2gSalesTariffEntryType_ConsumptionCost_currArrayIndex < v2gSalesTariffEntryType->ConsumptionCost.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- errn = encode_v2gConsumptionCostType(stream, &v2gSalesTariffEntryType->ConsumptionCost.array [v2gSalesTariffEntryType_ConsumptionCost_currArrayIndex++]);
- }
- grammarID = 1862;
- } else if (1==1) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- done = 1;
- }
- grammarID = 3;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 1862:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}ConsumptionCost), END_ELEMENT] */
- if (v2gSalesTariffEntryType_ConsumptionCost_currArrayIndex < v2gSalesTariffEntryType->ConsumptionCost.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- errn = encode_v2gConsumptionCostType(stream, &v2gSalesTariffEntryType->ConsumptionCost.array [v2gSalesTariffEntryType_ConsumptionCost_currArrayIndex++]);
- }
- 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:2016:MsgDataTypes,ChargingProfileType', base type name='anyType', content type='ELEMENT', isAbstract='false', hasTypeId='false', final='0', block='0', particle='("urn:iso:15118:2:2016:MsgDataTypes":ProfileEntry{1-UNBOUNDED})', derivedBy='RESTRICTION'. */
-static int encode_v2gChargingProfileType(bitstream_t* stream, struct v2gChargingProfileType* v2gChargingProfileType) {
- int grammarID = 1863;
- int done = 0;
-
- unsigned int v2gChargingProfileType_ProfileEntry_currArrayIndex = 0;
-
- while(!done) {
- switch(grammarID) {
- case 1863:
- /* FirstStartTag[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}ProfileEntry)] */
- if (v2gChargingProfileType_ProfileEntry_currArrayIndex < v2gChargingProfileType->ProfileEntry.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- if(errn == 0) {
- errn = encode_v2gPMaxScheduleEntryType(stream, &v2gChargingProfileType->ProfileEntry.array [v2gChargingProfileType_ProfileEntry_currArrayIndex++]);
- }
- grammarID = 1864;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 1864:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}ProfileEntry), END_ELEMENT] */
- if (v2gChargingProfileType_ProfileEntry_currArrayIndex < v2gChargingProfileType->ProfileEntry.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- errn = encode_v2gPMaxScheduleEntryType(stream, &v2gChargingProfileType->ProfileEntry.array [v2gChargingProfileType_ProfileEntry_currArrayIndex++]);
- }
- grammarID = 1864;
- } else if (1==1) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- 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:2016:MsgBody,ServiceDiscoveryResType', base type name='V2GResponseType', content type='ELEMENT', isAbstract='false', hasTypeId='false', final='0', block='0', particle='(("urn:iso:15118:2:2016:MsgBody":ResponseCode,"urn:iso:15118:2:2016:MsgBody":EVSEStatus{0-1}),("urn:iso:15118:2:2016:MsgBody":PaymentOptionList,"urn:iso:15118:2:2016:MsgBody":EnergyTransferServiceList,"urn:iso:15118:2:2016:MsgBody":VASList{0-1}))', derivedBy='EXTENSION'. */
-static int encode_v2gServiceDiscoveryResType(bitstream_t* stream, struct v2gServiceDiscoveryResType* v2gServiceDiscoveryResType) {
- int grammarID = 1865;
- int done = 0;
-
-
- while(!done) {
- switch(grammarID) {
- case 1865:
- /* FirstStartTag[START_ELEMENT({urn:iso:15118:2:2016:MsgBody}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, 5, v2gServiceDiscoveryResType->ResponseCode);
- /* valid EE */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- }
- }
- grammarID = 1866;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 1866:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgBody}EVSEStatus), START_ELEMENT({urn:iso:15118:2:2016:MsgBody}PaymentOptionList)] */
- if ( v2gServiceDiscoveryResType->EVSEStatus_isUsed == 1u ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- errn = encode_v2gEVSEStatusType(stream, &v2gServiceDiscoveryResType->EVSEStatus );
- }
- grammarID = 1867;
- } else if ( 1 == 1 ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- errn = encode_v2gPaymentOptionListType(stream, &v2gServiceDiscoveryResType->PaymentOptionList );
- }
- grammarID = 1868;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 1867:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgBody}PaymentOptionList)] */
- if ( 1 == 1 ) {
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- if(errn == 0) {
- errn = encode_v2gPaymentOptionListType(stream, &v2gServiceDiscoveryResType->PaymentOptionList );
- }
- grammarID = 1868;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 1868:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgBody}EnergyTransferServiceList)] */
- if ( 1 == 1 ) {
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- if(errn == 0) {
- errn = encode_v2gServiceListType(stream, &v2gServiceDiscoveryResType->EnergyTransferServiceList );
- }
- grammarID = 1869;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 1869:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgBody}VASList), END_ELEMENT] */
- if ( v2gServiceDiscoveryResType->VASList_isUsed == 1u ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- errn = encode_v2gServiceListType(stream, &v2gServiceDiscoveryResType->VASList );
- }
- 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:2016:MsgDataTypes,PMaxScheduleType', base type name='anyType', content type='ELEMENT', isAbstract='false', hasTypeId='false', final='0', block='0', particle='("urn:iso:15118:2:2016:MsgDataTypes":PMaxScheduleEntry{1-UNBOUNDED})', derivedBy='RESTRICTION'. */
-static int encode_v2gPMaxScheduleType(bitstream_t* stream, struct v2gPMaxScheduleType* v2gPMaxScheduleType) {
- int grammarID = 1870;
- int done = 0;
-
- unsigned int v2gPMaxScheduleType_PMaxScheduleEntry_currArrayIndex = 0;
-
- while(!done) {
- switch(grammarID) {
- case 1870:
- /* FirstStartTag[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}PMaxScheduleEntry)] */
- if (v2gPMaxScheduleType_PMaxScheduleEntry_currArrayIndex < v2gPMaxScheduleType->PMaxScheduleEntry.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- if(errn == 0) {
- errn = encode_v2gPMaxScheduleEntryType(stream, &v2gPMaxScheduleType->PMaxScheduleEntry.array [v2gPMaxScheduleType_PMaxScheduleEntry_currArrayIndex++]);
- }
- grammarID = 1871;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 1871:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}PMaxScheduleEntry), END_ELEMENT] */
- if (v2gPMaxScheduleType_PMaxScheduleEntry_currArrayIndex < v2gPMaxScheduleType->PMaxScheduleEntry.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- errn = encode_v2gPMaxScheduleEntryType(stream, &v2gPMaxScheduleType->PMaxScheduleEntry.array [v2gPMaxScheduleType_PMaxScheduleEntry_currArrayIndex++]);
- }
- grammarID = 1871;
- } else if (1==1) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- 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:2016:MsgDataTypes,SensorPackageType', base type name='anyType', content type='ELEMENT', isAbstract='false', hasTypeId='false', final='0', block='0', particle='("urn:iso:15118:2:2016:MsgDataTypes":PackageIndex,"urn:iso:15118:2:2016:MsgDataTypes":SensorMeasurements{1-255})', derivedBy='RESTRICTION'. */
-static int encode_v2gSensorPackageType(bitstream_t* stream, struct v2gSensorPackageType* v2gSensorPackageType) {
- int grammarID = 1872;
- int done = 0;
-
- unsigned int v2gSensorPackageType_SensorMeasurements_currArrayIndex = 0;
-
- while(!done) {
- switch(grammarID) {
- case 1872:
- /* FirstStartTag[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}PackageIndex)] */
- if ( 1 == 1 ) {
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- if(errn == 0) {
- /* First(xsi:type)StartTag[CHARACTERS[UNSIGNED_INTEGER]] */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- if(errn == 0) {
- errn = encodeUnsignedInteger32(stream, v2gSensorPackageType->PackageIndex);
- /* valid EE */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- }
- }
- grammarID = 1873;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 1873:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorMeasurements)] */
- if (v2gSensorPackageType_SensorMeasurements_currArrayIndex < v2gSensorPackageType->SensorMeasurements.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- if(errn == 0) {
- errn = encode_v2gSensorMeasurementsType(stream, &v2gSensorPackageType->SensorMeasurements.array [v2gSensorPackageType_SensorMeasurements_currArrayIndex++]);
- }
- grammarID = 1874;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 1874:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorMeasurements), END_ELEMENT] */
- if (v2gSensorPackageType_SensorMeasurements_currArrayIndex < v2gSensorPackageType->SensorMeasurements.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- errn = encode_v2gSensorMeasurementsType(stream, &v2gSensorPackageType->SensorMeasurements.array [v2gSensorPackageType_SensorMeasurements_currArrayIndex++]);
- }
- grammarID = 1875;
- } else if (1==1) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- done = 1;
- }
- grammarID = 3;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 1875:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorMeasurements), END_ELEMENT] */
- if (v2gSensorPackageType_SensorMeasurements_currArrayIndex < v2gSensorPackageType->SensorMeasurements.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- errn = encode_v2gSensorMeasurementsType(stream, &v2gSensorPackageType->SensorMeasurements.array [v2gSensorPackageType_SensorMeasurements_currArrayIndex++]);
- }
- grammarID = 1876;
- } else if (1==1) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- done = 1;
- }
- grammarID = 3;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 1876:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorMeasurements), END_ELEMENT] */
- if (v2gSensorPackageType_SensorMeasurements_currArrayIndex < v2gSensorPackageType->SensorMeasurements.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- errn = encode_v2gSensorMeasurementsType(stream, &v2gSensorPackageType->SensorMeasurements.array [v2gSensorPackageType_SensorMeasurements_currArrayIndex++]);
- }
- grammarID = 1877;
- } else if (1==1) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- done = 1;
- }
- grammarID = 3;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 1877:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorMeasurements), END_ELEMENT] */
- if (v2gSensorPackageType_SensorMeasurements_currArrayIndex < v2gSensorPackageType->SensorMeasurements.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- errn = encode_v2gSensorMeasurementsType(stream, &v2gSensorPackageType->SensorMeasurements.array [v2gSensorPackageType_SensorMeasurements_currArrayIndex++]);
- }
- grammarID = 1878;
- } else if (1==1) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- done = 1;
- }
- grammarID = 3;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 1878:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorMeasurements), END_ELEMENT] */
- if (v2gSensorPackageType_SensorMeasurements_currArrayIndex < v2gSensorPackageType->SensorMeasurements.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- errn = encode_v2gSensorMeasurementsType(stream, &v2gSensorPackageType->SensorMeasurements.array [v2gSensorPackageType_SensorMeasurements_currArrayIndex++]);
- }
- grammarID = 1879;
- } else if (1==1) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- done = 1;
- }
- grammarID = 3;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 1879:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorMeasurements), END_ELEMENT] */
- if (v2gSensorPackageType_SensorMeasurements_currArrayIndex < v2gSensorPackageType->SensorMeasurements.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- errn = encode_v2gSensorMeasurementsType(stream, &v2gSensorPackageType->SensorMeasurements.array [v2gSensorPackageType_SensorMeasurements_currArrayIndex++]);
- }
- grammarID = 1880;
- } else if (1==1) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- done = 1;
- }
- grammarID = 3;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 1880:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorMeasurements), END_ELEMENT] */
- if (v2gSensorPackageType_SensorMeasurements_currArrayIndex < v2gSensorPackageType->SensorMeasurements.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- errn = encode_v2gSensorMeasurementsType(stream, &v2gSensorPackageType->SensorMeasurements.array [v2gSensorPackageType_SensorMeasurements_currArrayIndex++]);
- }
- grammarID = 1881;
- } else if (1==1) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- done = 1;
- }
- grammarID = 3;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 1881:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorMeasurements), END_ELEMENT] */
- if (v2gSensorPackageType_SensorMeasurements_currArrayIndex < v2gSensorPackageType->SensorMeasurements.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- errn = encode_v2gSensorMeasurementsType(stream, &v2gSensorPackageType->SensorMeasurements.array [v2gSensorPackageType_SensorMeasurements_currArrayIndex++]);
- }
- grammarID = 1882;
- } else if (1==1) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- done = 1;
- }
- grammarID = 3;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 1882:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorMeasurements), END_ELEMENT] */
- if (v2gSensorPackageType_SensorMeasurements_currArrayIndex < v2gSensorPackageType->SensorMeasurements.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- errn = encode_v2gSensorMeasurementsType(stream, &v2gSensorPackageType->SensorMeasurements.array [v2gSensorPackageType_SensorMeasurements_currArrayIndex++]);
- }
- grammarID = 1883;
- } else if (1==1) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- done = 1;
- }
- grammarID = 3;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 1883:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorMeasurements), END_ELEMENT] */
- if (v2gSensorPackageType_SensorMeasurements_currArrayIndex < v2gSensorPackageType->SensorMeasurements.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- errn = encode_v2gSensorMeasurementsType(stream, &v2gSensorPackageType->SensorMeasurements.array [v2gSensorPackageType_SensorMeasurements_currArrayIndex++]);
- }
- grammarID = 1884;
- } else if (1==1) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- done = 1;
- }
- grammarID = 3;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 1884:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorMeasurements), END_ELEMENT] */
- if (v2gSensorPackageType_SensorMeasurements_currArrayIndex < v2gSensorPackageType->SensorMeasurements.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- errn = encode_v2gSensorMeasurementsType(stream, &v2gSensorPackageType->SensorMeasurements.array [v2gSensorPackageType_SensorMeasurements_currArrayIndex++]);
- }
- grammarID = 1885;
- } else if (1==1) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- done = 1;
- }
- grammarID = 3;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 1885:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorMeasurements), END_ELEMENT] */
- if (v2gSensorPackageType_SensorMeasurements_currArrayIndex < v2gSensorPackageType->SensorMeasurements.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- errn = encode_v2gSensorMeasurementsType(stream, &v2gSensorPackageType->SensorMeasurements.array [v2gSensorPackageType_SensorMeasurements_currArrayIndex++]);
- }
- grammarID = 1886;
- } else if (1==1) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- done = 1;
- }
- grammarID = 3;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 1886:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorMeasurements), END_ELEMENT] */
- if (v2gSensorPackageType_SensorMeasurements_currArrayIndex < v2gSensorPackageType->SensorMeasurements.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- errn = encode_v2gSensorMeasurementsType(stream, &v2gSensorPackageType->SensorMeasurements.array [v2gSensorPackageType_SensorMeasurements_currArrayIndex++]);
- }
- grammarID = 1887;
- } else if (1==1) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- done = 1;
- }
- grammarID = 3;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 1887:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorMeasurements), END_ELEMENT] */
- if (v2gSensorPackageType_SensorMeasurements_currArrayIndex < v2gSensorPackageType->SensorMeasurements.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- errn = encode_v2gSensorMeasurementsType(stream, &v2gSensorPackageType->SensorMeasurements.array [v2gSensorPackageType_SensorMeasurements_currArrayIndex++]);
- }
- grammarID = 1888;
- } else if (1==1) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- done = 1;
- }
- grammarID = 3;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 1888:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorMeasurements), END_ELEMENT] */
- if (v2gSensorPackageType_SensorMeasurements_currArrayIndex < v2gSensorPackageType->SensorMeasurements.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- errn = encode_v2gSensorMeasurementsType(stream, &v2gSensorPackageType->SensorMeasurements.array [v2gSensorPackageType_SensorMeasurements_currArrayIndex++]);
- }
- grammarID = 1889;
- } else if (1==1) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- done = 1;
- }
- grammarID = 3;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 1889:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorMeasurements), END_ELEMENT] */
- if (v2gSensorPackageType_SensorMeasurements_currArrayIndex < v2gSensorPackageType->SensorMeasurements.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- errn = encode_v2gSensorMeasurementsType(stream, &v2gSensorPackageType->SensorMeasurements.array [v2gSensorPackageType_SensorMeasurements_currArrayIndex++]);
- }
- grammarID = 1890;
- } else if (1==1) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- done = 1;
- }
- grammarID = 3;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 1890:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorMeasurements), END_ELEMENT] */
- if (v2gSensorPackageType_SensorMeasurements_currArrayIndex < v2gSensorPackageType->SensorMeasurements.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- errn = encode_v2gSensorMeasurementsType(stream, &v2gSensorPackageType->SensorMeasurements.array [v2gSensorPackageType_SensorMeasurements_currArrayIndex++]);
- }
- grammarID = 1891;
- } else if (1==1) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- done = 1;
- }
- grammarID = 3;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 1891:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorMeasurements), END_ELEMENT] */
- if (v2gSensorPackageType_SensorMeasurements_currArrayIndex < v2gSensorPackageType->SensorMeasurements.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- errn = encode_v2gSensorMeasurementsType(stream, &v2gSensorPackageType->SensorMeasurements.array [v2gSensorPackageType_SensorMeasurements_currArrayIndex++]);
- }
- grammarID = 1892;
- } else if (1==1) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- done = 1;
- }
- grammarID = 3;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 1892:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorMeasurements), END_ELEMENT] */
- if (v2gSensorPackageType_SensorMeasurements_currArrayIndex < v2gSensorPackageType->SensorMeasurements.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- errn = encode_v2gSensorMeasurementsType(stream, &v2gSensorPackageType->SensorMeasurements.array [v2gSensorPackageType_SensorMeasurements_currArrayIndex++]);
- }
- grammarID = 1893;
- } else if (1==1) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- done = 1;
- }
- grammarID = 3;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 1893:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorMeasurements), END_ELEMENT] */
- if (v2gSensorPackageType_SensorMeasurements_currArrayIndex < v2gSensorPackageType->SensorMeasurements.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- errn = encode_v2gSensorMeasurementsType(stream, &v2gSensorPackageType->SensorMeasurements.array [v2gSensorPackageType_SensorMeasurements_currArrayIndex++]);
- }
- grammarID = 1894;
- } else if (1==1) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- done = 1;
- }
- grammarID = 3;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 1894:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorMeasurements), END_ELEMENT] */
- if (v2gSensorPackageType_SensorMeasurements_currArrayIndex < v2gSensorPackageType->SensorMeasurements.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- errn = encode_v2gSensorMeasurementsType(stream, &v2gSensorPackageType->SensorMeasurements.array [v2gSensorPackageType_SensorMeasurements_currArrayIndex++]);
- }
- grammarID = 1895;
- } else if (1==1) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- done = 1;
- }
- grammarID = 3;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 1895:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorMeasurements), END_ELEMENT] */
- if (v2gSensorPackageType_SensorMeasurements_currArrayIndex < v2gSensorPackageType->SensorMeasurements.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- errn = encode_v2gSensorMeasurementsType(stream, &v2gSensorPackageType->SensorMeasurements.array [v2gSensorPackageType_SensorMeasurements_currArrayIndex++]);
- }
- grammarID = 1896;
- } else if (1==1) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- done = 1;
- }
- grammarID = 3;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 1896:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorMeasurements), END_ELEMENT] */
- if (v2gSensorPackageType_SensorMeasurements_currArrayIndex < v2gSensorPackageType->SensorMeasurements.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- errn = encode_v2gSensorMeasurementsType(stream, &v2gSensorPackageType->SensorMeasurements.array [v2gSensorPackageType_SensorMeasurements_currArrayIndex++]);
- }
- grammarID = 1897;
- } else if (1==1) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- done = 1;
- }
- grammarID = 3;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 1897:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorMeasurements), END_ELEMENT] */
- if (v2gSensorPackageType_SensorMeasurements_currArrayIndex < v2gSensorPackageType->SensorMeasurements.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- errn = encode_v2gSensorMeasurementsType(stream, &v2gSensorPackageType->SensorMeasurements.array [v2gSensorPackageType_SensorMeasurements_currArrayIndex++]);
- }
- grammarID = 1898;
- } else if (1==1) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- done = 1;
- }
- grammarID = 3;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 1898:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorMeasurements), END_ELEMENT] */
- if (v2gSensorPackageType_SensorMeasurements_currArrayIndex < v2gSensorPackageType->SensorMeasurements.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- errn = encode_v2gSensorMeasurementsType(stream, &v2gSensorPackageType->SensorMeasurements.array [v2gSensorPackageType_SensorMeasurements_currArrayIndex++]);
- }
- grammarID = 1899;
- } else if (1==1) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- done = 1;
- }
- grammarID = 3;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 1899:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorMeasurements), END_ELEMENT] */
- if (v2gSensorPackageType_SensorMeasurements_currArrayIndex < v2gSensorPackageType->SensorMeasurements.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- errn = encode_v2gSensorMeasurementsType(stream, &v2gSensorPackageType->SensorMeasurements.array [v2gSensorPackageType_SensorMeasurements_currArrayIndex++]);
- }
- grammarID = 1900;
- } else if (1==1) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- done = 1;
- }
- grammarID = 3;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 1900:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorMeasurements), END_ELEMENT] */
- if (v2gSensorPackageType_SensorMeasurements_currArrayIndex < v2gSensorPackageType->SensorMeasurements.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- errn = encode_v2gSensorMeasurementsType(stream, &v2gSensorPackageType->SensorMeasurements.array [v2gSensorPackageType_SensorMeasurements_currArrayIndex++]);
- }
- grammarID = 1901;
- } else if (1==1) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- done = 1;
- }
- grammarID = 3;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 1901:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorMeasurements), END_ELEMENT] */
- if (v2gSensorPackageType_SensorMeasurements_currArrayIndex < v2gSensorPackageType->SensorMeasurements.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- errn = encode_v2gSensorMeasurementsType(stream, &v2gSensorPackageType->SensorMeasurements.array [v2gSensorPackageType_SensorMeasurements_currArrayIndex++]);
- }
- grammarID = 1902;
- } else if (1==1) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- done = 1;
- }
- grammarID = 3;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 1902:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorMeasurements), END_ELEMENT] */
- if (v2gSensorPackageType_SensorMeasurements_currArrayIndex < v2gSensorPackageType->SensorMeasurements.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- errn = encode_v2gSensorMeasurementsType(stream, &v2gSensorPackageType->SensorMeasurements.array [v2gSensorPackageType_SensorMeasurements_currArrayIndex++]);
- }
- grammarID = 1903;
- } else if (1==1) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- done = 1;
- }
- grammarID = 3;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 1903:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorMeasurements), END_ELEMENT] */
- if (v2gSensorPackageType_SensorMeasurements_currArrayIndex < v2gSensorPackageType->SensorMeasurements.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- errn = encode_v2gSensorMeasurementsType(stream, &v2gSensorPackageType->SensorMeasurements.array [v2gSensorPackageType_SensorMeasurements_currArrayIndex++]);
- }
- grammarID = 1904;
- } else if (1==1) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- done = 1;
- }
- grammarID = 3;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 1904:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorMeasurements), END_ELEMENT] */
- if (v2gSensorPackageType_SensorMeasurements_currArrayIndex < v2gSensorPackageType->SensorMeasurements.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- errn = encode_v2gSensorMeasurementsType(stream, &v2gSensorPackageType->SensorMeasurements.array [v2gSensorPackageType_SensorMeasurements_currArrayIndex++]);
- }
- grammarID = 1905;
- } else if (1==1) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- done = 1;
- }
- grammarID = 3;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 1905:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorMeasurements), END_ELEMENT] */
- if (v2gSensorPackageType_SensorMeasurements_currArrayIndex < v2gSensorPackageType->SensorMeasurements.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- errn = encode_v2gSensorMeasurementsType(stream, &v2gSensorPackageType->SensorMeasurements.array [v2gSensorPackageType_SensorMeasurements_currArrayIndex++]);
- }
- grammarID = 1906;
- } else if (1==1) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- done = 1;
- }
- grammarID = 3;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 1906:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorMeasurements), END_ELEMENT] */
- if (v2gSensorPackageType_SensorMeasurements_currArrayIndex < v2gSensorPackageType->SensorMeasurements.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- errn = encode_v2gSensorMeasurementsType(stream, &v2gSensorPackageType->SensorMeasurements.array [v2gSensorPackageType_SensorMeasurements_currArrayIndex++]);
- }
- grammarID = 1907;
- } else if (1==1) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- done = 1;
- }
- grammarID = 3;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 1907:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorMeasurements), END_ELEMENT] */
- if (v2gSensorPackageType_SensorMeasurements_currArrayIndex < v2gSensorPackageType->SensorMeasurements.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- errn = encode_v2gSensorMeasurementsType(stream, &v2gSensorPackageType->SensorMeasurements.array [v2gSensorPackageType_SensorMeasurements_currArrayIndex++]);
- }
- grammarID = 1908;
- } else if (1==1) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- done = 1;
- }
- grammarID = 3;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 1908:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorMeasurements), END_ELEMENT] */
- if (v2gSensorPackageType_SensorMeasurements_currArrayIndex < v2gSensorPackageType->SensorMeasurements.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- errn = encode_v2gSensorMeasurementsType(stream, &v2gSensorPackageType->SensorMeasurements.array [v2gSensorPackageType_SensorMeasurements_currArrayIndex++]);
- }
- grammarID = 1909;
- } else if (1==1) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- done = 1;
- }
- grammarID = 3;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 1909:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorMeasurements), END_ELEMENT] */
- if (v2gSensorPackageType_SensorMeasurements_currArrayIndex < v2gSensorPackageType->SensorMeasurements.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- errn = encode_v2gSensorMeasurementsType(stream, &v2gSensorPackageType->SensorMeasurements.array [v2gSensorPackageType_SensorMeasurements_currArrayIndex++]);
- }
- grammarID = 1910;
- } else if (1==1) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- done = 1;
- }
- grammarID = 3;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 1910:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorMeasurements), END_ELEMENT] */
- if (v2gSensorPackageType_SensorMeasurements_currArrayIndex < v2gSensorPackageType->SensorMeasurements.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- errn = encode_v2gSensorMeasurementsType(stream, &v2gSensorPackageType->SensorMeasurements.array [v2gSensorPackageType_SensorMeasurements_currArrayIndex++]);
- }
- grammarID = 1911;
- } else if (1==1) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- done = 1;
- }
- grammarID = 3;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 1911:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorMeasurements), END_ELEMENT] */
- if (v2gSensorPackageType_SensorMeasurements_currArrayIndex < v2gSensorPackageType->SensorMeasurements.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- errn = encode_v2gSensorMeasurementsType(stream, &v2gSensorPackageType->SensorMeasurements.array [v2gSensorPackageType_SensorMeasurements_currArrayIndex++]);
- }
- grammarID = 1912;
- } else if (1==1) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- done = 1;
- }
- grammarID = 3;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 1912:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorMeasurements), END_ELEMENT] */
- if (v2gSensorPackageType_SensorMeasurements_currArrayIndex < v2gSensorPackageType->SensorMeasurements.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- errn = encode_v2gSensorMeasurementsType(stream, &v2gSensorPackageType->SensorMeasurements.array [v2gSensorPackageType_SensorMeasurements_currArrayIndex++]);
- }
- grammarID = 1913;
- } else if (1==1) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- done = 1;
- }
- grammarID = 3;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 1913:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorMeasurements), END_ELEMENT] */
- if (v2gSensorPackageType_SensorMeasurements_currArrayIndex < v2gSensorPackageType->SensorMeasurements.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- errn = encode_v2gSensorMeasurementsType(stream, &v2gSensorPackageType->SensorMeasurements.array [v2gSensorPackageType_SensorMeasurements_currArrayIndex++]);
- }
- grammarID = 1914;
- } else if (1==1) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- done = 1;
- }
- grammarID = 3;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 1914:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorMeasurements), END_ELEMENT] */
- if (v2gSensorPackageType_SensorMeasurements_currArrayIndex < v2gSensorPackageType->SensorMeasurements.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- errn = encode_v2gSensorMeasurementsType(stream, &v2gSensorPackageType->SensorMeasurements.array [v2gSensorPackageType_SensorMeasurements_currArrayIndex++]);
- }
- grammarID = 1915;
- } else if (1==1) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- done = 1;
- }
- grammarID = 3;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 1915:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorMeasurements), END_ELEMENT] */
- if (v2gSensorPackageType_SensorMeasurements_currArrayIndex < v2gSensorPackageType->SensorMeasurements.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- errn = encode_v2gSensorMeasurementsType(stream, &v2gSensorPackageType->SensorMeasurements.array [v2gSensorPackageType_SensorMeasurements_currArrayIndex++]);
- }
- grammarID = 1916;
- } else if (1==1) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- done = 1;
- }
- grammarID = 3;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 1916:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorMeasurements), END_ELEMENT] */
- if (v2gSensorPackageType_SensorMeasurements_currArrayIndex < v2gSensorPackageType->SensorMeasurements.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- errn = encode_v2gSensorMeasurementsType(stream, &v2gSensorPackageType->SensorMeasurements.array [v2gSensorPackageType_SensorMeasurements_currArrayIndex++]);
- }
- grammarID = 1917;
- } else if (1==1) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- done = 1;
- }
- grammarID = 3;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 1917:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorMeasurements), END_ELEMENT] */
- if (v2gSensorPackageType_SensorMeasurements_currArrayIndex < v2gSensorPackageType->SensorMeasurements.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- errn = encode_v2gSensorMeasurementsType(stream, &v2gSensorPackageType->SensorMeasurements.array [v2gSensorPackageType_SensorMeasurements_currArrayIndex++]);
- }
- grammarID = 1918;
- } else if (1==1) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- done = 1;
- }
- grammarID = 3;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 1918:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorMeasurements), END_ELEMENT] */
- if (v2gSensorPackageType_SensorMeasurements_currArrayIndex < v2gSensorPackageType->SensorMeasurements.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- errn = encode_v2gSensorMeasurementsType(stream, &v2gSensorPackageType->SensorMeasurements.array [v2gSensorPackageType_SensorMeasurements_currArrayIndex++]);
- }
- grammarID = 1919;
- } else if (1==1) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- done = 1;
- }
- grammarID = 3;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 1919:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorMeasurements), END_ELEMENT] */
- if (v2gSensorPackageType_SensorMeasurements_currArrayIndex < v2gSensorPackageType->SensorMeasurements.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- errn = encode_v2gSensorMeasurementsType(stream, &v2gSensorPackageType->SensorMeasurements.array [v2gSensorPackageType_SensorMeasurements_currArrayIndex++]);
- }
- grammarID = 1920;
- } else if (1==1) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- done = 1;
- }
- grammarID = 3;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 1920:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorMeasurements), END_ELEMENT] */
- if (v2gSensorPackageType_SensorMeasurements_currArrayIndex < v2gSensorPackageType->SensorMeasurements.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- errn = encode_v2gSensorMeasurementsType(stream, &v2gSensorPackageType->SensorMeasurements.array [v2gSensorPackageType_SensorMeasurements_currArrayIndex++]);
- }
- grammarID = 1921;
- } else if (1==1) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- done = 1;
- }
- grammarID = 3;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 1921:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorMeasurements), END_ELEMENT] */
- if (v2gSensorPackageType_SensorMeasurements_currArrayIndex < v2gSensorPackageType->SensorMeasurements.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- errn = encode_v2gSensorMeasurementsType(stream, &v2gSensorPackageType->SensorMeasurements.array [v2gSensorPackageType_SensorMeasurements_currArrayIndex++]);
- }
- grammarID = 1922;
- } else if (1==1) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- done = 1;
- }
- grammarID = 3;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 1922:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorMeasurements), END_ELEMENT] */
- if (v2gSensorPackageType_SensorMeasurements_currArrayIndex < v2gSensorPackageType->SensorMeasurements.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- errn = encode_v2gSensorMeasurementsType(stream, &v2gSensorPackageType->SensorMeasurements.array [v2gSensorPackageType_SensorMeasurements_currArrayIndex++]);
- }
- grammarID = 1923;
- } else if (1==1) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- done = 1;
- }
- grammarID = 3;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 1923:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorMeasurements), END_ELEMENT] */
- if (v2gSensorPackageType_SensorMeasurements_currArrayIndex < v2gSensorPackageType->SensorMeasurements.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- errn = encode_v2gSensorMeasurementsType(stream, &v2gSensorPackageType->SensorMeasurements.array [v2gSensorPackageType_SensorMeasurements_currArrayIndex++]);
- }
- grammarID = 1924;
- } else if (1==1) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- done = 1;
- }
- grammarID = 3;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 1924:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorMeasurements), END_ELEMENT] */
- if (v2gSensorPackageType_SensorMeasurements_currArrayIndex < v2gSensorPackageType->SensorMeasurements.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- errn = encode_v2gSensorMeasurementsType(stream, &v2gSensorPackageType->SensorMeasurements.array [v2gSensorPackageType_SensorMeasurements_currArrayIndex++]);
- }
- grammarID = 1925;
- } else if (1==1) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- done = 1;
- }
- grammarID = 3;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 1925:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorMeasurements), END_ELEMENT] */
- if (v2gSensorPackageType_SensorMeasurements_currArrayIndex < v2gSensorPackageType->SensorMeasurements.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- errn = encode_v2gSensorMeasurementsType(stream, &v2gSensorPackageType->SensorMeasurements.array [v2gSensorPackageType_SensorMeasurements_currArrayIndex++]);
- }
- grammarID = 1926;
- } else if (1==1) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- done = 1;
- }
- grammarID = 3;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 1926:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorMeasurements), END_ELEMENT] */
- if (v2gSensorPackageType_SensorMeasurements_currArrayIndex < v2gSensorPackageType->SensorMeasurements.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- errn = encode_v2gSensorMeasurementsType(stream, &v2gSensorPackageType->SensorMeasurements.array [v2gSensorPackageType_SensorMeasurements_currArrayIndex++]);
- }
- grammarID = 1927;
- } else if (1==1) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- done = 1;
- }
- grammarID = 3;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 1927:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorMeasurements), END_ELEMENT] */
- if (v2gSensorPackageType_SensorMeasurements_currArrayIndex < v2gSensorPackageType->SensorMeasurements.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- errn = encode_v2gSensorMeasurementsType(stream, &v2gSensorPackageType->SensorMeasurements.array [v2gSensorPackageType_SensorMeasurements_currArrayIndex++]);
- }
- grammarID = 1928;
- } else if (1==1) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- done = 1;
- }
- grammarID = 3;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 1928:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorMeasurements), END_ELEMENT] */
- if (v2gSensorPackageType_SensorMeasurements_currArrayIndex < v2gSensorPackageType->SensorMeasurements.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- errn = encode_v2gSensorMeasurementsType(stream, &v2gSensorPackageType->SensorMeasurements.array [v2gSensorPackageType_SensorMeasurements_currArrayIndex++]);
- }
- grammarID = 1929;
- } else if (1==1) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- done = 1;
- }
- grammarID = 3;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 1929:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorMeasurements), END_ELEMENT] */
- if (v2gSensorPackageType_SensorMeasurements_currArrayIndex < v2gSensorPackageType->SensorMeasurements.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- errn = encode_v2gSensorMeasurementsType(stream, &v2gSensorPackageType->SensorMeasurements.array [v2gSensorPackageType_SensorMeasurements_currArrayIndex++]);
- }
- grammarID = 1930;
- } else if (1==1) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- done = 1;
- }
- grammarID = 3;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 1930:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorMeasurements), END_ELEMENT] */
- if (v2gSensorPackageType_SensorMeasurements_currArrayIndex < v2gSensorPackageType->SensorMeasurements.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- errn = encode_v2gSensorMeasurementsType(stream, &v2gSensorPackageType->SensorMeasurements.array [v2gSensorPackageType_SensorMeasurements_currArrayIndex++]);
- }
- grammarID = 1931;
- } else if (1==1) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- done = 1;
- }
- grammarID = 3;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 1931:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorMeasurements), END_ELEMENT] */
- if (v2gSensorPackageType_SensorMeasurements_currArrayIndex < v2gSensorPackageType->SensorMeasurements.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- errn = encode_v2gSensorMeasurementsType(stream, &v2gSensorPackageType->SensorMeasurements.array [v2gSensorPackageType_SensorMeasurements_currArrayIndex++]);
- }
- grammarID = 1932;
- } else if (1==1) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- done = 1;
- }
- grammarID = 3;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 1932:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorMeasurements), END_ELEMENT] */
- if (v2gSensorPackageType_SensorMeasurements_currArrayIndex < v2gSensorPackageType->SensorMeasurements.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- errn = encode_v2gSensorMeasurementsType(stream, &v2gSensorPackageType->SensorMeasurements.array [v2gSensorPackageType_SensorMeasurements_currArrayIndex++]);
- }
- grammarID = 1933;
- } else if (1==1) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- done = 1;
- }
- grammarID = 3;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 1933:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorMeasurements), END_ELEMENT] */
- if (v2gSensorPackageType_SensorMeasurements_currArrayIndex < v2gSensorPackageType->SensorMeasurements.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- errn = encode_v2gSensorMeasurementsType(stream, &v2gSensorPackageType->SensorMeasurements.array [v2gSensorPackageType_SensorMeasurements_currArrayIndex++]);
- }
- grammarID = 1934;
- } else if (1==1) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- done = 1;
- }
- grammarID = 3;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 1934:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorMeasurements), END_ELEMENT] */
- if (v2gSensorPackageType_SensorMeasurements_currArrayIndex < v2gSensorPackageType->SensorMeasurements.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- errn = encode_v2gSensorMeasurementsType(stream, &v2gSensorPackageType->SensorMeasurements.array [v2gSensorPackageType_SensorMeasurements_currArrayIndex++]);
- }
- grammarID = 1935;
- } else if (1==1) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- done = 1;
- }
- grammarID = 3;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 1935:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorMeasurements), END_ELEMENT] */
- if (v2gSensorPackageType_SensorMeasurements_currArrayIndex < v2gSensorPackageType->SensorMeasurements.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- errn = encode_v2gSensorMeasurementsType(stream, &v2gSensorPackageType->SensorMeasurements.array [v2gSensorPackageType_SensorMeasurements_currArrayIndex++]);
- }
- grammarID = 1936;
- } else if (1==1) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- done = 1;
- }
- grammarID = 3;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 1936:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorMeasurements), END_ELEMENT] */
- if (v2gSensorPackageType_SensorMeasurements_currArrayIndex < v2gSensorPackageType->SensorMeasurements.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- errn = encode_v2gSensorMeasurementsType(stream, &v2gSensorPackageType->SensorMeasurements.array [v2gSensorPackageType_SensorMeasurements_currArrayIndex++]);
- }
- grammarID = 1937;
- } else if (1==1) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- done = 1;
- }
- grammarID = 3;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 1937:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorMeasurements), END_ELEMENT] */
- if (v2gSensorPackageType_SensorMeasurements_currArrayIndex < v2gSensorPackageType->SensorMeasurements.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- errn = encode_v2gSensorMeasurementsType(stream, &v2gSensorPackageType->SensorMeasurements.array [v2gSensorPackageType_SensorMeasurements_currArrayIndex++]);
- }
- grammarID = 1938;
- } else if (1==1) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- done = 1;
- }
- grammarID = 3;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 1938:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorMeasurements), END_ELEMENT] */
- if (v2gSensorPackageType_SensorMeasurements_currArrayIndex < v2gSensorPackageType->SensorMeasurements.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- errn = encode_v2gSensorMeasurementsType(stream, &v2gSensorPackageType->SensorMeasurements.array [v2gSensorPackageType_SensorMeasurements_currArrayIndex++]);
- }
- grammarID = 1939;
- } else if (1==1) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- done = 1;
- }
- grammarID = 3;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 1939:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorMeasurements), END_ELEMENT] */
- if (v2gSensorPackageType_SensorMeasurements_currArrayIndex < v2gSensorPackageType->SensorMeasurements.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- errn = encode_v2gSensorMeasurementsType(stream, &v2gSensorPackageType->SensorMeasurements.array [v2gSensorPackageType_SensorMeasurements_currArrayIndex++]);
- }
- grammarID = 1940;
- } else if (1==1) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- done = 1;
- }
- grammarID = 3;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 1940:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorMeasurements), END_ELEMENT] */
- if (v2gSensorPackageType_SensorMeasurements_currArrayIndex < v2gSensorPackageType->SensorMeasurements.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- errn = encode_v2gSensorMeasurementsType(stream, &v2gSensorPackageType->SensorMeasurements.array [v2gSensorPackageType_SensorMeasurements_currArrayIndex++]);
- }
- grammarID = 1941;
- } else if (1==1) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- done = 1;
- }
- grammarID = 3;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 1941:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorMeasurements), END_ELEMENT] */
- if (v2gSensorPackageType_SensorMeasurements_currArrayIndex < v2gSensorPackageType->SensorMeasurements.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- errn = encode_v2gSensorMeasurementsType(stream, &v2gSensorPackageType->SensorMeasurements.array [v2gSensorPackageType_SensorMeasurements_currArrayIndex++]);
- }
- grammarID = 1942;
- } else if (1==1) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- done = 1;
- }
- grammarID = 3;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 1942:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorMeasurements), END_ELEMENT] */
- if (v2gSensorPackageType_SensorMeasurements_currArrayIndex < v2gSensorPackageType->SensorMeasurements.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- errn = encode_v2gSensorMeasurementsType(stream, &v2gSensorPackageType->SensorMeasurements.array [v2gSensorPackageType_SensorMeasurements_currArrayIndex++]);
- }
- grammarID = 1943;
- } else if (1==1) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- done = 1;
- }
- grammarID = 3;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 1943:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorMeasurements), END_ELEMENT] */
- if (v2gSensorPackageType_SensorMeasurements_currArrayIndex < v2gSensorPackageType->SensorMeasurements.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- errn = encode_v2gSensorMeasurementsType(stream, &v2gSensorPackageType->SensorMeasurements.array [v2gSensorPackageType_SensorMeasurements_currArrayIndex++]);
- }
- grammarID = 1944;
- } else if (1==1) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- done = 1;
- }
- grammarID = 3;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 1944:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorMeasurements), END_ELEMENT] */
- if (v2gSensorPackageType_SensorMeasurements_currArrayIndex < v2gSensorPackageType->SensorMeasurements.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- errn = encode_v2gSensorMeasurementsType(stream, &v2gSensorPackageType->SensorMeasurements.array [v2gSensorPackageType_SensorMeasurements_currArrayIndex++]);
- }
- grammarID = 1945;
- } else if (1==1) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- done = 1;
- }
- grammarID = 3;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 1945:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorMeasurements), END_ELEMENT] */
- if (v2gSensorPackageType_SensorMeasurements_currArrayIndex < v2gSensorPackageType->SensorMeasurements.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- errn = encode_v2gSensorMeasurementsType(stream, &v2gSensorPackageType->SensorMeasurements.array [v2gSensorPackageType_SensorMeasurements_currArrayIndex++]);
- }
- grammarID = 1946;
- } else if (1==1) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- done = 1;
- }
- grammarID = 3;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 1946:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorMeasurements), END_ELEMENT] */
- if (v2gSensorPackageType_SensorMeasurements_currArrayIndex < v2gSensorPackageType->SensorMeasurements.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- errn = encode_v2gSensorMeasurementsType(stream, &v2gSensorPackageType->SensorMeasurements.array [v2gSensorPackageType_SensorMeasurements_currArrayIndex++]);
- }
- grammarID = 1947;
- } else if (1==1) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- done = 1;
- }
- grammarID = 3;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 1947:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorMeasurements), END_ELEMENT] */
- if (v2gSensorPackageType_SensorMeasurements_currArrayIndex < v2gSensorPackageType->SensorMeasurements.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- errn = encode_v2gSensorMeasurementsType(stream, &v2gSensorPackageType->SensorMeasurements.array [v2gSensorPackageType_SensorMeasurements_currArrayIndex++]);
- }
- grammarID = 1948;
- } else if (1==1) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- done = 1;
- }
- grammarID = 3;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 1948:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorMeasurements), END_ELEMENT] */
- if (v2gSensorPackageType_SensorMeasurements_currArrayIndex < v2gSensorPackageType->SensorMeasurements.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- errn = encode_v2gSensorMeasurementsType(stream, &v2gSensorPackageType->SensorMeasurements.array [v2gSensorPackageType_SensorMeasurements_currArrayIndex++]);
- }
- grammarID = 1949;
- } else if (1==1) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- done = 1;
- }
- grammarID = 3;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 1949:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorMeasurements), END_ELEMENT] */
- if (v2gSensorPackageType_SensorMeasurements_currArrayIndex < v2gSensorPackageType->SensorMeasurements.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- errn = encode_v2gSensorMeasurementsType(stream, &v2gSensorPackageType->SensorMeasurements.array [v2gSensorPackageType_SensorMeasurements_currArrayIndex++]);
- }
- grammarID = 1950;
- } else if (1==1) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- done = 1;
- }
- grammarID = 3;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 1950:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorMeasurements), END_ELEMENT] */
- if (v2gSensorPackageType_SensorMeasurements_currArrayIndex < v2gSensorPackageType->SensorMeasurements.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- errn = encode_v2gSensorMeasurementsType(stream, &v2gSensorPackageType->SensorMeasurements.array [v2gSensorPackageType_SensorMeasurements_currArrayIndex++]);
- }
- grammarID = 1951;
- } else if (1==1) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- done = 1;
- }
- grammarID = 3;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 1951:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorMeasurements), END_ELEMENT] */
- if (v2gSensorPackageType_SensorMeasurements_currArrayIndex < v2gSensorPackageType->SensorMeasurements.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- errn = encode_v2gSensorMeasurementsType(stream, &v2gSensorPackageType->SensorMeasurements.array [v2gSensorPackageType_SensorMeasurements_currArrayIndex++]);
- }
- grammarID = 1952;
- } else if (1==1) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- done = 1;
- }
- grammarID = 3;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 1952:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorMeasurements), END_ELEMENT] */
- if (v2gSensorPackageType_SensorMeasurements_currArrayIndex < v2gSensorPackageType->SensorMeasurements.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- errn = encode_v2gSensorMeasurementsType(stream, &v2gSensorPackageType->SensorMeasurements.array [v2gSensorPackageType_SensorMeasurements_currArrayIndex++]);
- }
- grammarID = 1953;
- } else if (1==1) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- done = 1;
- }
- grammarID = 3;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 1953:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorMeasurements), END_ELEMENT] */
- if (v2gSensorPackageType_SensorMeasurements_currArrayIndex < v2gSensorPackageType->SensorMeasurements.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- errn = encode_v2gSensorMeasurementsType(stream, &v2gSensorPackageType->SensorMeasurements.array [v2gSensorPackageType_SensorMeasurements_currArrayIndex++]);
- }
- grammarID = 1954;
- } else if (1==1) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- done = 1;
- }
- grammarID = 3;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 1954:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorMeasurements), END_ELEMENT] */
- if (v2gSensorPackageType_SensorMeasurements_currArrayIndex < v2gSensorPackageType->SensorMeasurements.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- errn = encode_v2gSensorMeasurementsType(stream, &v2gSensorPackageType->SensorMeasurements.array [v2gSensorPackageType_SensorMeasurements_currArrayIndex++]);
- }
- grammarID = 1955;
- } else if (1==1) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- done = 1;
- }
- grammarID = 3;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 1955:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorMeasurements), END_ELEMENT] */
- if (v2gSensorPackageType_SensorMeasurements_currArrayIndex < v2gSensorPackageType->SensorMeasurements.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- errn = encode_v2gSensorMeasurementsType(stream, &v2gSensorPackageType->SensorMeasurements.array [v2gSensorPackageType_SensorMeasurements_currArrayIndex++]);
- }
- grammarID = 1956;
- } else if (1==1) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- done = 1;
- }
- grammarID = 3;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 1956:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorMeasurements), END_ELEMENT] */
- if (v2gSensorPackageType_SensorMeasurements_currArrayIndex < v2gSensorPackageType->SensorMeasurements.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- errn = encode_v2gSensorMeasurementsType(stream, &v2gSensorPackageType->SensorMeasurements.array [v2gSensorPackageType_SensorMeasurements_currArrayIndex++]);
- }
- grammarID = 1957;
- } else if (1==1) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- done = 1;
- }
- grammarID = 3;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 1957:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorMeasurements), END_ELEMENT] */
- if (v2gSensorPackageType_SensorMeasurements_currArrayIndex < v2gSensorPackageType->SensorMeasurements.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- errn = encode_v2gSensorMeasurementsType(stream, &v2gSensorPackageType->SensorMeasurements.array [v2gSensorPackageType_SensorMeasurements_currArrayIndex++]);
- }
- grammarID = 1958;
- } else if (1==1) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- done = 1;
- }
- grammarID = 3;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 1958:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorMeasurements), END_ELEMENT] */
- if (v2gSensorPackageType_SensorMeasurements_currArrayIndex < v2gSensorPackageType->SensorMeasurements.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- errn = encode_v2gSensorMeasurementsType(stream, &v2gSensorPackageType->SensorMeasurements.array [v2gSensorPackageType_SensorMeasurements_currArrayIndex++]);
- }
- grammarID = 1959;
- } else if (1==1) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- done = 1;
- }
- grammarID = 3;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 1959:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorMeasurements), END_ELEMENT] */
- if (v2gSensorPackageType_SensorMeasurements_currArrayIndex < v2gSensorPackageType->SensorMeasurements.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- errn = encode_v2gSensorMeasurementsType(stream, &v2gSensorPackageType->SensorMeasurements.array [v2gSensorPackageType_SensorMeasurements_currArrayIndex++]);
- }
- grammarID = 1960;
- } else if (1==1) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- done = 1;
- }
- grammarID = 3;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 1960:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorMeasurements), END_ELEMENT] */
- if (v2gSensorPackageType_SensorMeasurements_currArrayIndex < v2gSensorPackageType->SensorMeasurements.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- errn = encode_v2gSensorMeasurementsType(stream, &v2gSensorPackageType->SensorMeasurements.array [v2gSensorPackageType_SensorMeasurements_currArrayIndex++]);
- }
- grammarID = 1961;
- } else if (1==1) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- done = 1;
- }
- grammarID = 3;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 1961:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorMeasurements), END_ELEMENT] */
- if (v2gSensorPackageType_SensorMeasurements_currArrayIndex < v2gSensorPackageType->SensorMeasurements.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- errn = encode_v2gSensorMeasurementsType(stream, &v2gSensorPackageType->SensorMeasurements.array [v2gSensorPackageType_SensorMeasurements_currArrayIndex++]);
- }
- grammarID = 1962;
- } else if (1==1) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- done = 1;
- }
- grammarID = 3;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 1962:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorMeasurements), END_ELEMENT] */
- if (v2gSensorPackageType_SensorMeasurements_currArrayIndex < v2gSensorPackageType->SensorMeasurements.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- errn = encode_v2gSensorMeasurementsType(stream, &v2gSensorPackageType->SensorMeasurements.array [v2gSensorPackageType_SensorMeasurements_currArrayIndex++]);
- }
- grammarID = 1963;
- } else if (1==1) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- done = 1;
- }
- grammarID = 3;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 1963:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorMeasurements), END_ELEMENT] */
- if (v2gSensorPackageType_SensorMeasurements_currArrayIndex < v2gSensorPackageType->SensorMeasurements.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- errn = encode_v2gSensorMeasurementsType(stream, &v2gSensorPackageType->SensorMeasurements.array [v2gSensorPackageType_SensorMeasurements_currArrayIndex++]);
- }
- grammarID = 1964;
- } else if (1==1) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- done = 1;
- }
- grammarID = 3;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 1964:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorMeasurements), END_ELEMENT] */
- if (v2gSensorPackageType_SensorMeasurements_currArrayIndex < v2gSensorPackageType->SensorMeasurements.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- errn = encode_v2gSensorMeasurementsType(stream, &v2gSensorPackageType->SensorMeasurements.array [v2gSensorPackageType_SensorMeasurements_currArrayIndex++]);
- }
- grammarID = 1965;
- } else if (1==1) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- done = 1;
- }
- grammarID = 3;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 1965:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorMeasurements), END_ELEMENT] */
- if (v2gSensorPackageType_SensorMeasurements_currArrayIndex < v2gSensorPackageType->SensorMeasurements.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- errn = encode_v2gSensorMeasurementsType(stream, &v2gSensorPackageType->SensorMeasurements.array [v2gSensorPackageType_SensorMeasurements_currArrayIndex++]);
- }
- grammarID = 1966;
- } else if (1==1) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- done = 1;
- }
- grammarID = 3;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 1966:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorMeasurements), END_ELEMENT] */
- if (v2gSensorPackageType_SensorMeasurements_currArrayIndex < v2gSensorPackageType->SensorMeasurements.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- errn = encode_v2gSensorMeasurementsType(stream, &v2gSensorPackageType->SensorMeasurements.array [v2gSensorPackageType_SensorMeasurements_currArrayIndex++]);
- }
- grammarID = 1967;
- } else if (1==1) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- done = 1;
- }
- grammarID = 3;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 1967:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorMeasurements), END_ELEMENT] */
- if (v2gSensorPackageType_SensorMeasurements_currArrayIndex < v2gSensorPackageType->SensorMeasurements.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- errn = encode_v2gSensorMeasurementsType(stream, &v2gSensorPackageType->SensorMeasurements.array [v2gSensorPackageType_SensorMeasurements_currArrayIndex++]);
- }
- grammarID = 1968;
- } else if (1==1) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- done = 1;
- }
- grammarID = 3;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 1968:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorMeasurements), END_ELEMENT] */
- if (v2gSensorPackageType_SensorMeasurements_currArrayIndex < v2gSensorPackageType->SensorMeasurements.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- errn = encode_v2gSensorMeasurementsType(stream, &v2gSensorPackageType->SensorMeasurements.array [v2gSensorPackageType_SensorMeasurements_currArrayIndex++]);
- }
- grammarID = 1969;
- } else if (1==1) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- done = 1;
- }
- grammarID = 3;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 1969:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorMeasurements), END_ELEMENT] */
- if (v2gSensorPackageType_SensorMeasurements_currArrayIndex < v2gSensorPackageType->SensorMeasurements.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- errn = encode_v2gSensorMeasurementsType(stream, &v2gSensorPackageType->SensorMeasurements.array [v2gSensorPackageType_SensorMeasurements_currArrayIndex++]);
- }
- grammarID = 1970;
- } else if (1==1) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- done = 1;
- }
- grammarID = 3;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 1970:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorMeasurements), END_ELEMENT] */
- if (v2gSensorPackageType_SensorMeasurements_currArrayIndex < v2gSensorPackageType->SensorMeasurements.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- errn = encode_v2gSensorMeasurementsType(stream, &v2gSensorPackageType->SensorMeasurements.array [v2gSensorPackageType_SensorMeasurements_currArrayIndex++]);
- }
- grammarID = 1971;
- } else if (1==1) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- done = 1;
- }
- grammarID = 3;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 1971:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorMeasurements), END_ELEMENT] */
- if (v2gSensorPackageType_SensorMeasurements_currArrayIndex < v2gSensorPackageType->SensorMeasurements.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- errn = encode_v2gSensorMeasurementsType(stream, &v2gSensorPackageType->SensorMeasurements.array [v2gSensorPackageType_SensorMeasurements_currArrayIndex++]);
- }
- grammarID = 1972;
- } else if (1==1) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- done = 1;
- }
- grammarID = 3;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 1972:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorMeasurements), END_ELEMENT] */
- if (v2gSensorPackageType_SensorMeasurements_currArrayIndex < v2gSensorPackageType->SensorMeasurements.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- errn = encode_v2gSensorMeasurementsType(stream, &v2gSensorPackageType->SensorMeasurements.array [v2gSensorPackageType_SensorMeasurements_currArrayIndex++]);
- }
- grammarID = 1973;
- } else if (1==1) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- done = 1;
- }
- grammarID = 3;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 1973:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorMeasurements), END_ELEMENT] */
- if (v2gSensorPackageType_SensorMeasurements_currArrayIndex < v2gSensorPackageType->SensorMeasurements.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- errn = encode_v2gSensorMeasurementsType(stream, &v2gSensorPackageType->SensorMeasurements.array [v2gSensorPackageType_SensorMeasurements_currArrayIndex++]);
- }
- grammarID = 1974;
- } else if (1==1) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- done = 1;
- }
- grammarID = 3;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 1974:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorMeasurements), END_ELEMENT] */
- if (v2gSensorPackageType_SensorMeasurements_currArrayIndex < v2gSensorPackageType->SensorMeasurements.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- errn = encode_v2gSensorMeasurementsType(stream, &v2gSensorPackageType->SensorMeasurements.array [v2gSensorPackageType_SensorMeasurements_currArrayIndex++]);
- }
- grammarID = 1975;
- } else if (1==1) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- done = 1;
- }
- grammarID = 3;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 1975:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorMeasurements), END_ELEMENT] */
- if (v2gSensorPackageType_SensorMeasurements_currArrayIndex < v2gSensorPackageType->SensorMeasurements.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- errn = encode_v2gSensorMeasurementsType(stream, &v2gSensorPackageType->SensorMeasurements.array [v2gSensorPackageType_SensorMeasurements_currArrayIndex++]);
- }
- grammarID = 1976;
- } else if (1==1) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- done = 1;
- }
- grammarID = 3;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 1976:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorMeasurements), END_ELEMENT] */
- if (v2gSensorPackageType_SensorMeasurements_currArrayIndex < v2gSensorPackageType->SensorMeasurements.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- errn = encode_v2gSensorMeasurementsType(stream, &v2gSensorPackageType->SensorMeasurements.array [v2gSensorPackageType_SensorMeasurements_currArrayIndex++]);
- }
- grammarID = 1977;
- } else if (1==1) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- done = 1;
- }
- grammarID = 3;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 1977:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorMeasurements), END_ELEMENT] */
- if (v2gSensorPackageType_SensorMeasurements_currArrayIndex < v2gSensorPackageType->SensorMeasurements.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- errn = encode_v2gSensorMeasurementsType(stream, &v2gSensorPackageType->SensorMeasurements.array [v2gSensorPackageType_SensorMeasurements_currArrayIndex++]);
- }
- grammarID = 1978;
- } else if (1==1) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- done = 1;
- }
- grammarID = 3;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 1978:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorMeasurements), END_ELEMENT] */
- if (v2gSensorPackageType_SensorMeasurements_currArrayIndex < v2gSensorPackageType->SensorMeasurements.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- errn = encode_v2gSensorMeasurementsType(stream, &v2gSensorPackageType->SensorMeasurements.array [v2gSensorPackageType_SensorMeasurements_currArrayIndex++]);
- }
- grammarID = 1979;
- } else if (1==1) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- done = 1;
- }
- grammarID = 3;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 1979:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorMeasurements), END_ELEMENT] */
- if (v2gSensorPackageType_SensorMeasurements_currArrayIndex < v2gSensorPackageType->SensorMeasurements.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- errn = encode_v2gSensorMeasurementsType(stream, &v2gSensorPackageType->SensorMeasurements.array [v2gSensorPackageType_SensorMeasurements_currArrayIndex++]);
- }
- grammarID = 1980;
- } else if (1==1) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- done = 1;
- }
- grammarID = 3;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 1980:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorMeasurements), END_ELEMENT] */
- if (v2gSensorPackageType_SensorMeasurements_currArrayIndex < v2gSensorPackageType->SensorMeasurements.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- errn = encode_v2gSensorMeasurementsType(stream, &v2gSensorPackageType->SensorMeasurements.array [v2gSensorPackageType_SensorMeasurements_currArrayIndex++]);
- }
- grammarID = 1981;
- } else if (1==1) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- done = 1;
- }
- grammarID = 3;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 1981:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorMeasurements), END_ELEMENT] */
- if (v2gSensorPackageType_SensorMeasurements_currArrayIndex < v2gSensorPackageType->SensorMeasurements.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- errn = encode_v2gSensorMeasurementsType(stream, &v2gSensorPackageType->SensorMeasurements.array [v2gSensorPackageType_SensorMeasurements_currArrayIndex++]);
- }
- grammarID = 1982;
- } else if (1==1) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- done = 1;
- }
- grammarID = 3;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 1982:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorMeasurements), END_ELEMENT] */
- if (v2gSensorPackageType_SensorMeasurements_currArrayIndex < v2gSensorPackageType->SensorMeasurements.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- errn = encode_v2gSensorMeasurementsType(stream, &v2gSensorPackageType->SensorMeasurements.array [v2gSensorPackageType_SensorMeasurements_currArrayIndex++]);
- }
- grammarID = 1983;
- } else if (1==1) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- done = 1;
- }
- grammarID = 3;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 1983:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorMeasurements), END_ELEMENT] */
- if (v2gSensorPackageType_SensorMeasurements_currArrayIndex < v2gSensorPackageType->SensorMeasurements.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- errn = encode_v2gSensorMeasurementsType(stream, &v2gSensorPackageType->SensorMeasurements.array [v2gSensorPackageType_SensorMeasurements_currArrayIndex++]);
- }
- grammarID = 1984;
- } else if (1==1) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- done = 1;
- }
- grammarID = 3;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 1984:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorMeasurements), END_ELEMENT] */
- if (v2gSensorPackageType_SensorMeasurements_currArrayIndex < v2gSensorPackageType->SensorMeasurements.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- errn = encode_v2gSensorMeasurementsType(stream, &v2gSensorPackageType->SensorMeasurements.array [v2gSensorPackageType_SensorMeasurements_currArrayIndex++]);
- }
- grammarID = 1985;
- } else if (1==1) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- done = 1;
- }
- grammarID = 3;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 1985:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorMeasurements), END_ELEMENT] */
- if (v2gSensorPackageType_SensorMeasurements_currArrayIndex < v2gSensorPackageType->SensorMeasurements.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- errn = encode_v2gSensorMeasurementsType(stream, &v2gSensorPackageType->SensorMeasurements.array [v2gSensorPackageType_SensorMeasurements_currArrayIndex++]);
- }
- grammarID = 1986;
- } else if (1==1) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- done = 1;
- }
- grammarID = 3;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 1986:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorMeasurements), END_ELEMENT] */
- if (v2gSensorPackageType_SensorMeasurements_currArrayIndex < v2gSensorPackageType->SensorMeasurements.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- errn = encode_v2gSensorMeasurementsType(stream, &v2gSensorPackageType->SensorMeasurements.array [v2gSensorPackageType_SensorMeasurements_currArrayIndex++]);
- }
- grammarID = 1987;
- } else if (1==1) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- done = 1;
- }
- grammarID = 3;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 1987:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorMeasurements), END_ELEMENT] */
- if (v2gSensorPackageType_SensorMeasurements_currArrayIndex < v2gSensorPackageType->SensorMeasurements.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- errn = encode_v2gSensorMeasurementsType(stream, &v2gSensorPackageType->SensorMeasurements.array [v2gSensorPackageType_SensorMeasurements_currArrayIndex++]);
- }
- grammarID = 1988;
- } else if (1==1) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- done = 1;
- }
- grammarID = 3;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 1988:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorMeasurements), END_ELEMENT] */
- if (v2gSensorPackageType_SensorMeasurements_currArrayIndex < v2gSensorPackageType->SensorMeasurements.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- errn = encode_v2gSensorMeasurementsType(stream, &v2gSensorPackageType->SensorMeasurements.array [v2gSensorPackageType_SensorMeasurements_currArrayIndex++]);
- }
- grammarID = 1989;
- } else if (1==1) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- done = 1;
- }
- grammarID = 3;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 1989:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorMeasurements), END_ELEMENT] */
- if (v2gSensorPackageType_SensorMeasurements_currArrayIndex < v2gSensorPackageType->SensorMeasurements.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- errn = encode_v2gSensorMeasurementsType(stream, &v2gSensorPackageType->SensorMeasurements.array [v2gSensorPackageType_SensorMeasurements_currArrayIndex++]);
- }
- grammarID = 1990;
- } else if (1==1) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- done = 1;
- }
- grammarID = 3;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 1990:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorMeasurements), END_ELEMENT] */
- if (v2gSensorPackageType_SensorMeasurements_currArrayIndex < v2gSensorPackageType->SensorMeasurements.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- errn = encode_v2gSensorMeasurementsType(stream, &v2gSensorPackageType->SensorMeasurements.array [v2gSensorPackageType_SensorMeasurements_currArrayIndex++]);
- }
- grammarID = 1991;
- } else if (1==1) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- done = 1;
- }
- grammarID = 3;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 1991:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorMeasurements), END_ELEMENT] */
- if (v2gSensorPackageType_SensorMeasurements_currArrayIndex < v2gSensorPackageType->SensorMeasurements.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- errn = encode_v2gSensorMeasurementsType(stream, &v2gSensorPackageType->SensorMeasurements.array [v2gSensorPackageType_SensorMeasurements_currArrayIndex++]);
- }
- grammarID = 1992;
- } else if (1==1) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- done = 1;
- }
- grammarID = 3;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 1992:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorMeasurements), END_ELEMENT] */
- if (v2gSensorPackageType_SensorMeasurements_currArrayIndex < v2gSensorPackageType->SensorMeasurements.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- errn = encode_v2gSensorMeasurementsType(stream, &v2gSensorPackageType->SensorMeasurements.array [v2gSensorPackageType_SensorMeasurements_currArrayIndex++]);
- }
- grammarID = 1993;
- } else if (1==1) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- done = 1;
- }
- grammarID = 3;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 1993:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorMeasurements), END_ELEMENT] */
- if (v2gSensorPackageType_SensorMeasurements_currArrayIndex < v2gSensorPackageType->SensorMeasurements.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- errn = encode_v2gSensorMeasurementsType(stream, &v2gSensorPackageType->SensorMeasurements.array [v2gSensorPackageType_SensorMeasurements_currArrayIndex++]);
- }
- grammarID = 1994;
- } else if (1==1) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- done = 1;
- }
- grammarID = 3;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 1994:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorMeasurements), END_ELEMENT] */
- if (v2gSensorPackageType_SensorMeasurements_currArrayIndex < v2gSensorPackageType->SensorMeasurements.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- errn = encode_v2gSensorMeasurementsType(stream, &v2gSensorPackageType->SensorMeasurements.array [v2gSensorPackageType_SensorMeasurements_currArrayIndex++]);
- }
- grammarID = 1995;
- } else if (1==1) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- done = 1;
- }
- grammarID = 3;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 1995:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorMeasurements), END_ELEMENT] */
- if (v2gSensorPackageType_SensorMeasurements_currArrayIndex < v2gSensorPackageType->SensorMeasurements.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- errn = encode_v2gSensorMeasurementsType(stream, &v2gSensorPackageType->SensorMeasurements.array [v2gSensorPackageType_SensorMeasurements_currArrayIndex++]);
- }
- grammarID = 1996;
- } else if (1==1) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- done = 1;
- }
- grammarID = 3;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 1996:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorMeasurements), END_ELEMENT] */
- if (v2gSensorPackageType_SensorMeasurements_currArrayIndex < v2gSensorPackageType->SensorMeasurements.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- errn = encode_v2gSensorMeasurementsType(stream, &v2gSensorPackageType->SensorMeasurements.array [v2gSensorPackageType_SensorMeasurements_currArrayIndex++]);
- }
- grammarID = 1997;
- } else if (1==1) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- done = 1;
- }
- grammarID = 3;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 1997:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorMeasurements), END_ELEMENT] */
- if (v2gSensorPackageType_SensorMeasurements_currArrayIndex < v2gSensorPackageType->SensorMeasurements.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- errn = encode_v2gSensorMeasurementsType(stream, &v2gSensorPackageType->SensorMeasurements.array [v2gSensorPackageType_SensorMeasurements_currArrayIndex++]);
- }
- grammarID = 1998;
- } else if (1==1) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- done = 1;
- }
- grammarID = 3;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 1998:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorMeasurements), END_ELEMENT] */
- if (v2gSensorPackageType_SensorMeasurements_currArrayIndex < v2gSensorPackageType->SensorMeasurements.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- errn = encode_v2gSensorMeasurementsType(stream, &v2gSensorPackageType->SensorMeasurements.array [v2gSensorPackageType_SensorMeasurements_currArrayIndex++]);
- }
- grammarID = 1999;
- } else if (1==1) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- done = 1;
- }
- grammarID = 3;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 1999:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorMeasurements), END_ELEMENT] */
- if (v2gSensorPackageType_SensorMeasurements_currArrayIndex < v2gSensorPackageType->SensorMeasurements.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- errn = encode_v2gSensorMeasurementsType(stream, &v2gSensorPackageType->SensorMeasurements.array [v2gSensorPackageType_SensorMeasurements_currArrayIndex++]);
- }
- grammarID = 2000;
- } else if (1==1) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- done = 1;
- }
- grammarID = 3;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 2000:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorMeasurements), END_ELEMENT] */
- if (v2gSensorPackageType_SensorMeasurements_currArrayIndex < v2gSensorPackageType->SensorMeasurements.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- errn = encode_v2gSensorMeasurementsType(stream, &v2gSensorPackageType->SensorMeasurements.array [v2gSensorPackageType_SensorMeasurements_currArrayIndex++]);
- }
- grammarID = 2001;
- } else if (1==1) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- done = 1;
- }
- grammarID = 3;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 2001:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorMeasurements), END_ELEMENT] */
- if (v2gSensorPackageType_SensorMeasurements_currArrayIndex < v2gSensorPackageType->SensorMeasurements.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- errn = encode_v2gSensorMeasurementsType(stream, &v2gSensorPackageType->SensorMeasurements.array [v2gSensorPackageType_SensorMeasurements_currArrayIndex++]);
- }
- grammarID = 2002;
- } else if (1==1) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- done = 1;
- }
- grammarID = 3;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 2002:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorMeasurements), END_ELEMENT] */
- if (v2gSensorPackageType_SensorMeasurements_currArrayIndex < v2gSensorPackageType->SensorMeasurements.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- errn = encode_v2gSensorMeasurementsType(stream, &v2gSensorPackageType->SensorMeasurements.array [v2gSensorPackageType_SensorMeasurements_currArrayIndex++]);
- }
- grammarID = 2003;
- } else if (1==1) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- done = 1;
- }
- grammarID = 3;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 2003:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorMeasurements), END_ELEMENT] */
- if (v2gSensorPackageType_SensorMeasurements_currArrayIndex < v2gSensorPackageType->SensorMeasurements.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- errn = encode_v2gSensorMeasurementsType(stream, &v2gSensorPackageType->SensorMeasurements.array [v2gSensorPackageType_SensorMeasurements_currArrayIndex++]);
- }
- grammarID = 2004;
- } else if (1==1) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- done = 1;
- }
- grammarID = 3;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 2004:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorMeasurements), END_ELEMENT] */
- if (v2gSensorPackageType_SensorMeasurements_currArrayIndex < v2gSensorPackageType->SensorMeasurements.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- errn = encode_v2gSensorMeasurementsType(stream, &v2gSensorPackageType->SensorMeasurements.array [v2gSensorPackageType_SensorMeasurements_currArrayIndex++]);
- }
- grammarID = 2005;
- } else if (1==1) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- done = 1;
- }
- grammarID = 3;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 2005:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorMeasurements), END_ELEMENT] */
- if (v2gSensorPackageType_SensorMeasurements_currArrayIndex < v2gSensorPackageType->SensorMeasurements.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- errn = encode_v2gSensorMeasurementsType(stream, &v2gSensorPackageType->SensorMeasurements.array [v2gSensorPackageType_SensorMeasurements_currArrayIndex++]);
- }
- grammarID = 2006;
- } else if (1==1) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- done = 1;
- }
- grammarID = 3;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 2006:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorMeasurements), END_ELEMENT] */
- if (v2gSensorPackageType_SensorMeasurements_currArrayIndex < v2gSensorPackageType->SensorMeasurements.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- errn = encode_v2gSensorMeasurementsType(stream, &v2gSensorPackageType->SensorMeasurements.array [v2gSensorPackageType_SensorMeasurements_currArrayIndex++]);
- }
- grammarID = 2007;
- } else if (1==1) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- done = 1;
- }
- grammarID = 3;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 2007:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorMeasurements), END_ELEMENT] */
- if (v2gSensorPackageType_SensorMeasurements_currArrayIndex < v2gSensorPackageType->SensorMeasurements.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- errn = encode_v2gSensorMeasurementsType(stream, &v2gSensorPackageType->SensorMeasurements.array [v2gSensorPackageType_SensorMeasurements_currArrayIndex++]);
- }
- grammarID = 2008;
- } else if (1==1) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- done = 1;
- }
- grammarID = 3;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 2008:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorMeasurements), END_ELEMENT] */
- if (v2gSensorPackageType_SensorMeasurements_currArrayIndex < v2gSensorPackageType->SensorMeasurements.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- errn = encode_v2gSensorMeasurementsType(stream, &v2gSensorPackageType->SensorMeasurements.array [v2gSensorPackageType_SensorMeasurements_currArrayIndex++]);
- }
- grammarID = 2009;
- } else if (1==1) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- done = 1;
- }
- grammarID = 3;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 2009:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorMeasurements), END_ELEMENT] */
- if (v2gSensorPackageType_SensorMeasurements_currArrayIndex < v2gSensorPackageType->SensorMeasurements.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- errn = encode_v2gSensorMeasurementsType(stream, &v2gSensorPackageType->SensorMeasurements.array [v2gSensorPackageType_SensorMeasurements_currArrayIndex++]);
- }
- grammarID = 2010;
- } else if (1==1) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- done = 1;
- }
- grammarID = 3;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 2010:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorMeasurements), END_ELEMENT] */
- if (v2gSensorPackageType_SensorMeasurements_currArrayIndex < v2gSensorPackageType->SensorMeasurements.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- errn = encode_v2gSensorMeasurementsType(stream, &v2gSensorPackageType->SensorMeasurements.array [v2gSensorPackageType_SensorMeasurements_currArrayIndex++]);
- }
- grammarID = 2011;
- } else if (1==1) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- done = 1;
- }
- grammarID = 3;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 2011:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorMeasurements), END_ELEMENT] */
- if (v2gSensorPackageType_SensorMeasurements_currArrayIndex < v2gSensorPackageType->SensorMeasurements.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- errn = encode_v2gSensorMeasurementsType(stream, &v2gSensorPackageType->SensorMeasurements.array [v2gSensorPackageType_SensorMeasurements_currArrayIndex++]);
- }
- grammarID = 2012;
- } else if (1==1) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- done = 1;
- }
- grammarID = 3;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 2012:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorMeasurements), END_ELEMENT] */
- if (v2gSensorPackageType_SensorMeasurements_currArrayIndex < v2gSensorPackageType->SensorMeasurements.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- errn = encode_v2gSensorMeasurementsType(stream, &v2gSensorPackageType->SensorMeasurements.array [v2gSensorPackageType_SensorMeasurements_currArrayIndex++]);
- }
- grammarID = 2013;
- } else if (1==1) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- done = 1;
- }
- grammarID = 3;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 2013:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorMeasurements), END_ELEMENT] */
- if (v2gSensorPackageType_SensorMeasurements_currArrayIndex < v2gSensorPackageType->SensorMeasurements.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- errn = encode_v2gSensorMeasurementsType(stream, &v2gSensorPackageType->SensorMeasurements.array [v2gSensorPackageType_SensorMeasurements_currArrayIndex++]);
- }
- grammarID = 2014;
- } else if (1==1) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- done = 1;
- }
- grammarID = 3;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 2014:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorMeasurements), END_ELEMENT] */
- if (v2gSensorPackageType_SensorMeasurements_currArrayIndex < v2gSensorPackageType->SensorMeasurements.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- errn = encode_v2gSensorMeasurementsType(stream, &v2gSensorPackageType->SensorMeasurements.array [v2gSensorPackageType_SensorMeasurements_currArrayIndex++]);
- }
- grammarID = 2015;
- } else if (1==1) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- done = 1;
- }
- grammarID = 3;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 2015:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorMeasurements), END_ELEMENT] */
- if (v2gSensorPackageType_SensorMeasurements_currArrayIndex < v2gSensorPackageType->SensorMeasurements.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- errn = encode_v2gSensorMeasurementsType(stream, &v2gSensorPackageType->SensorMeasurements.array [v2gSensorPackageType_SensorMeasurements_currArrayIndex++]);
- }
- grammarID = 2016;
- } else if (1==1) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- done = 1;
- }
- grammarID = 3;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 2016:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorMeasurements), END_ELEMENT] */
- if (v2gSensorPackageType_SensorMeasurements_currArrayIndex < v2gSensorPackageType->SensorMeasurements.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- errn = encode_v2gSensorMeasurementsType(stream, &v2gSensorPackageType->SensorMeasurements.array [v2gSensorPackageType_SensorMeasurements_currArrayIndex++]);
- }
- grammarID = 2017;
- } else if (1==1) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- done = 1;
- }
- grammarID = 3;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 2017:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorMeasurements), END_ELEMENT] */
- if (v2gSensorPackageType_SensorMeasurements_currArrayIndex < v2gSensorPackageType->SensorMeasurements.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- errn = encode_v2gSensorMeasurementsType(stream, &v2gSensorPackageType->SensorMeasurements.array [v2gSensorPackageType_SensorMeasurements_currArrayIndex++]);
- }
- grammarID = 2018;
- } else if (1==1) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- done = 1;
- }
- grammarID = 3;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 2018:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorMeasurements), END_ELEMENT] */
- if (v2gSensorPackageType_SensorMeasurements_currArrayIndex < v2gSensorPackageType->SensorMeasurements.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- errn = encode_v2gSensorMeasurementsType(stream, &v2gSensorPackageType->SensorMeasurements.array [v2gSensorPackageType_SensorMeasurements_currArrayIndex++]);
- }
- grammarID = 2019;
- } else if (1==1) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- done = 1;
- }
- grammarID = 3;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 2019:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorMeasurements), END_ELEMENT] */
- if (v2gSensorPackageType_SensorMeasurements_currArrayIndex < v2gSensorPackageType->SensorMeasurements.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- errn = encode_v2gSensorMeasurementsType(stream, &v2gSensorPackageType->SensorMeasurements.array [v2gSensorPackageType_SensorMeasurements_currArrayIndex++]);
- }
- grammarID = 2020;
- } else if (1==1) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- done = 1;
- }
- grammarID = 3;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 2020:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorMeasurements), END_ELEMENT] */
- if (v2gSensorPackageType_SensorMeasurements_currArrayIndex < v2gSensorPackageType->SensorMeasurements.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- errn = encode_v2gSensorMeasurementsType(stream, &v2gSensorPackageType->SensorMeasurements.array [v2gSensorPackageType_SensorMeasurements_currArrayIndex++]);
- }
- grammarID = 2021;
- } else if (1==1) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- done = 1;
- }
- grammarID = 3;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 2021:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorMeasurements), END_ELEMENT] */
- if (v2gSensorPackageType_SensorMeasurements_currArrayIndex < v2gSensorPackageType->SensorMeasurements.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- errn = encode_v2gSensorMeasurementsType(stream, &v2gSensorPackageType->SensorMeasurements.array [v2gSensorPackageType_SensorMeasurements_currArrayIndex++]);
- }
- grammarID = 2022;
- } else if (1==1) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- done = 1;
- }
- grammarID = 3;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 2022:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorMeasurements), END_ELEMENT] */
- if (v2gSensorPackageType_SensorMeasurements_currArrayIndex < v2gSensorPackageType->SensorMeasurements.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- errn = encode_v2gSensorMeasurementsType(stream, &v2gSensorPackageType->SensorMeasurements.array [v2gSensorPackageType_SensorMeasurements_currArrayIndex++]);
- }
- grammarID = 2023;
- } else if (1==1) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- done = 1;
- }
- grammarID = 3;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 2023:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorMeasurements), END_ELEMENT] */
- if (v2gSensorPackageType_SensorMeasurements_currArrayIndex < v2gSensorPackageType->SensorMeasurements.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- errn = encode_v2gSensorMeasurementsType(stream, &v2gSensorPackageType->SensorMeasurements.array [v2gSensorPackageType_SensorMeasurements_currArrayIndex++]);
- }
- grammarID = 2024;
- } else if (1==1) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- done = 1;
- }
- grammarID = 3;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 2024:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorMeasurements), END_ELEMENT] */
- if (v2gSensorPackageType_SensorMeasurements_currArrayIndex < v2gSensorPackageType->SensorMeasurements.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- errn = encode_v2gSensorMeasurementsType(stream, &v2gSensorPackageType->SensorMeasurements.array [v2gSensorPackageType_SensorMeasurements_currArrayIndex++]);
- }
- grammarID = 2025;
- } else if (1==1) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- done = 1;
- }
- grammarID = 3;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 2025:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorMeasurements), END_ELEMENT] */
- if (v2gSensorPackageType_SensorMeasurements_currArrayIndex < v2gSensorPackageType->SensorMeasurements.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- errn = encode_v2gSensorMeasurementsType(stream, &v2gSensorPackageType->SensorMeasurements.array [v2gSensorPackageType_SensorMeasurements_currArrayIndex++]);
- }
- grammarID = 2026;
- } else if (1==1) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- done = 1;
- }
- grammarID = 3;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 2026:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorMeasurements), END_ELEMENT] */
- if (v2gSensorPackageType_SensorMeasurements_currArrayIndex < v2gSensorPackageType->SensorMeasurements.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- errn = encode_v2gSensorMeasurementsType(stream, &v2gSensorPackageType->SensorMeasurements.array [v2gSensorPackageType_SensorMeasurements_currArrayIndex++]);
- }
- grammarID = 2027;
- } else if (1==1) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- done = 1;
- }
- grammarID = 3;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 2027:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorMeasurements), END_ELEMENT] */
- if (v2gSensorPackageType_SensorMeasurements_currArrayIndex < v2gSensorPackageType->SensorMeasurements.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- errn = encode_v2gSensorMeasurementsType(stream, &v2gSensorPackageType->SensorMeasurements.array [v2gSensorPackageType_SensorMeasurements_currArrayIndex++]);
- }
- grammarID = 2028;
- } else if (1==1) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- done = 1;
- }
- grammarID = 3;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 2028:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorMeasurements), END_ELEMENT] */
- if (v2gSensorPackageType_SensorMeasurements_currArrayIndex < v2gSensorPackageType->SensorMeasurements.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- errn = encode_v2gSensorMeasurementsType(stream, &v2gSensorPackageType->SensorMeasurements.array [v2gSensorPackageType_SensorMeasurements_currArrayIndex++]);
- }
- grammarID = 2029;
- } else if (1==1) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- done = 1;
- }
- grammarID = 3;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 2029:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorMeasurements), END_ELEMENT] */
- if (v2gSensorPackageType_SensorMeasurements_currArrayIndex < v2gSensorPackageType->SensorMeasurements.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- errn = encode_v2gSensorMeasurementsType(stream, &v2gSensorPackageType->SensorMeasurements.array [v2gSensorPackageType_SensorMeasurements_currArrayIndex++]);
- }
- grammarID = 2030;
- } else if (1==1) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- done = 1;
- }
- grammarID = 3;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 2030:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorMeasurements), END_ELEMENT] */
- if (v2gSensorPackageType_SensorMeasurements_currArrayIndex < v2gSensorPackageType->SensorMeasurements.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- errn = encode_v2gSensorMeasurementsType(stream, &v2gSensorPackageType->SensorMeasurements.array [v2gSensorPackageType_SensorMeasurements_currArrayIndex++]);
- }
- grammarID = 2031;
- } else if (1==1) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- done = 1;
- }
- grammarID = 3;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 2031:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorMeasurements), END_ELEMENT] */
- if (v2gSensorPackageType_SensorMeasurements_currArrayIndex < v2gSensorPackageType->SensorMeasurements.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- errn = encode_v2gSensorMeasurementsType(stream, &v2gSensorPackageType->SensorMeasurements.array [v2gSensorPackageType_SensorMeasurements_currArrayIndex++]);
- }
- grammarID = 2032;
- } else if (1==1) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- done = 1;
- }
- grammarID = 3;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 2032:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorMeasurements), END_ELEMENT] */
- if (v2gSensorPackageType_SensorMeasurements_currArrayIndex < v2gSensorPackageType->SensorMeasurements.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- errn = encode_v2gSensorMeasurementsType(stream, &v2gSensorPackageType->SensorMeasurements.array [v2gSensorPackageType_SensorMeasurements_currArrayIndex++]);
- }
- grammarID = 2033;
- } else if (1==1) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- done = 1;
- }
- grammarID = 3;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 2033:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorMeasurements), END_ELEMENT] */
- if (v2gSensorPackageType_SensorMeasurements_currArrayIndex < v2gSensorPackageType->SensorMeasurements.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- errn = encode_v2gSensorMeasurementsType(stream, &v2gSensorPackageType->SensorMeasurements.array [v2gSensorPackageType_SensorMeasurements_currArrayIndex++]);
- }
- grammarID = 2034;
- } else if (1==1) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- done = 1;
- }
- grammarID = 3;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 2034:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorMeasurements), END_ELEMENT] */
- if (v2gSensorPackageType_SensorMeasurements_currArrayIndex < v2gSensorPackageType->SensorMeasurements.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- errn = encode_v2gSensorMeasurementsType(stream, &v2gSensorPackageType->SensorMeasurements.array [v2gSensorPackageType_SensorMeasurements_currArrayIndex++]);
- }
- grammarID = 2035;
- } else if (1==1) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- done = 1;
- }
- grammarID = 3;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 2035:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorMeasurements), END_ELEMENT] */
- if (v2gSensorPackageType_SensorMeasurements_currArrayIndex < v2gSensorPackageType->SensorMeasurements.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- errn = encode_v2gSensorMeasurementsType(stream, &v2gSensorPackageType->SensorMeasurements.array [v2gSensorPackageType_SensorMeasurements_currArrayIndex++]);
- }
- grammarID = 2036;
- } else if (1==1) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- done = 1;
- }
- grammarID = 3;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 2036:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorMeasurements), END_ELEMENT] */
- if (v2gSensorPackageType_SensorMeasurements_currArrayIndex < v2gSensorPackageType->SensorMeasurements.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- errn = encode_v2gSensorMeasurementsType(stream, &v2gSensorPackageType->SensorMeasurements.array [v2gSensorPackageType_SensorMeasurements_currArrayIndex++]);
- }
- grammarID = 2037;
- } else if (1==1) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- done = 1;
- }
- grammarID = 3;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 2037:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorMeasurements), END_ELEMENT] */
- if (v2gSensorPackageType_SensorMeasurements_currArrayIndex < v2gSensorPackageType->SensorMeasurements.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- errn = encode_v2gSensorMeasurementsType(stream, &v2gSensorPackageType->SensorMeasurements.array [v2gSensorPackageType_SensorMeasurements_currArrayIndex++]);
- }
- grammarID = 2038;
- } else if (1==1) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- done = 1;
- }
- grammarID = 3;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 2038:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorMeasurements), END_ELEMENT] */
- if (v2gSensorPackageType_SensorMeasurements_currArrayIndex < v2gSensorPackageType->SensorMeasurements.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- errn = encode_v2gSensorMeasurementsType(stream, &v2gSensorPackageType->SensorMeasurements.array [v2gSensorPackageType_SensorMeasurements_currArrayIndex++]);
- }
- grammarID = 2039;
- } else if (1==1) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- done = 1;
- }
- grammarID = 3;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 2039:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorMeasurements), END_ELEMENT] */
- if (v2gSensorPackageType_SensorMeasurements_currArrayIndex < v2gSensorPackageType->SensorMeasurements.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- errn = encode_v2gSensorMeasurementsType(stream, &v2gSensorPackageType->SensorMeasurements.array [v2gSensorPackageType_SensorMeasurements_currArrayIndex++]);
- }
- grammarID = 2040;
- } else if (1==1) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- done = 1;
- }
- grammarID = 3;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 2040:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorMeasurements), END_ELEMENT] */
- if (v2gSensorPackageType_SensorMeasurements_currArrayIndex < v2gSensorPackageType->SensorMeasurements.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- errn = encode_v2gSensorMeasurementsType(stream, &v2gSensorPackageType->SensorMeasurements.array [v2gSensorPackageType_SensorMeasurements_currArrayIndex++]);
- }
- grammarID = 2041;
- } else if (1==1) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- done = 1;
- }
- grammarID = 3;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 2041:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorMeasurements), END_ELEMENT] */
- if (v2gSensorPackageType_SensorMeasurements_currArrayIndex < v2gSensorPackageType->SensorMeasurements.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- errn = encode_v2gSensorMeasurementsType(stream, &v2gSensorPackageType->SensorMeasurements.array [v2gSensorPackageType_SensorMeasurements_currArrayIndex++]);
- }
- grammarID = 2042;
- } else if (1==1) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- done = 1;
- }
- grammarID = 3;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 2042:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorMeasurements), END_ELEMENT] */
- if (v2gSensorPackageType_SensorMeasurements_currArrayIndex < v2gSensorPackageType->SensorMeasurements.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- errn = encode_v2gSensorMeasurementsType(stream, &v2gSensorPackageType->SensorMeasurements.array [v2gSensorPackageType_SensorMeasurements_currArrayIndex++]);
- }
- grammarID = 2043;
- } else if (1==1) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- done = 1;
- }
- grammarID = 3;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 2043:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorMeasurements), END_ELEMENT] */
- if (v2gSensorPackageType_SensorMeasurements_currArrayIndex < v2gSensorPackageType->SensorMeasurements.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- errn = encode_v2gSensorMeasurementsType(stream, &v2gSensorPackageType->SensorMeasurements.array [v2gSensorPackageType_SensorMeasurements_currArrayIndex++]);
- }
- grammarID = 2044;
- } else if (1==1) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- done = 1;
- }
- grammarID = 3;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 2044:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorMeasurements), END_ELEMENT] */
- if (v2gSensorPackageType_SensorMeasurements_currArrayIndex < v2gSensorPackageType->SensorMeasurements.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- errn = encode_v2gSensorMeasurementsType(stream, &v2gSensorPackageType->SensorMeasurements.array [v2gSensorPackageType_SensorMeasurements_currArrayIndex++]);
- }
- grammarID = 2045;
- } else if (1==1) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- done = 1;
- }
- grammarID = 3;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 2045:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorMeasurements), END_ELEMENT] */
- if (v2gSensorPackageType_SensorMeasurements_currArrayIndex < v2gSensorPackageType->SensorMeasurements.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- errn = encode_v2gSensorMeasurementsType(stream, &v2gSensorPackageType->SensorMeasurements.array [v2gSensorPackageType_SensorMeasurements_currArrayIndex++]);
- }
- grammarID = 2046;
- } else if (1==1) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- done = 1;
- }
- grammarID = 3;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 2046:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorMeasurements), END_ELEMENT] */
- if (v2gSensorPackageType_SensorMeasurements_currArrayIndex < v2gSensorPackageType->SensorMeasurements.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- errn = encode_v2gSensorMeasurementsType(stream, &v2gSensorPackageType->SensorMeasurements.array [v2gSensorPackageType_SensorMeasurements_currArrayIndex++]);
- }
- grammarID = 2047;
- } else if (1==1) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- done = 1;
- }
- grammarID = 3;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 2047:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorMeasurements), END_ELEMENT] */
- if (v2gSensorPackageType_SensorMeasurements_currArrayIndex < v2gSensorPackageType->SensorMeasurements.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- errn = encode_v2gSensorMeasurementsType(stream, &v2gSensorPackageType->SensorMeasurements.array [v2gSensorPackageType_SensorMeasurements_currArrayIndex++]);
- }
- grammarID = 2048;
- } else if (1==1) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- done = 1;
- }
- grammarID = 3;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 2048:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorMeasurements), END_ELEMENT] */
- if (v2gSensorPackageType_SensorMeasurements_currArrayIndex < v2gSensorPackageType->SensorMeasurements.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- errn = encode_v2gSensorMeasurementsType(stream, &v2gSensorPackageType->SensorMeasurements.array [v2gSensorPackageType_SensorMeasurements_currArrayIndex++]);
- }
- grammarID = 2049;
- } else if (1==1) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- done = 1;
- }
- grammarID = 3;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 2049:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorMeasurements), END_ELEMENT] */
- if (v2gSensorPackageType_SensorMeasurements_currArrayIndex < v2gSensorPackageType->SensorMeasurements.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- errn = encode_v2gSensorMeasurementsType(stream, &v2gSensorPackageType->SensorMeasurements.array [v2gSensorPackageType_SensorMeasurements_currArrayIndex++]);
- }
- grammarID = 2050;
- } else if (1==1) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- done = 1;
- }
- grammarID = 3;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 2050:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorMeasurements), END_ELEMENT] */
- if (v2gSensorPackageType_SensorMeasurements_currArrayIndex < v2gSensorPackageType->SensorMeasurements.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- errn = encode_v2gSensorMeasurementsType(stream, &v2gSensorPackageType->SensorMeasurements.array [v2gSensorPackageType_SensorMeasurements_currArrayIndex++]);
- }
- grammarID = 2051;
- } else if (1==1) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- done = 1;
- }
- grammarID = 3;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 2051:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorMeasurements), END_ELEMENT] */
- if (v2gSensorPackageType_SensorMeasurements_currArrayIndex < v2gSensorPackageType->SensorMeasurements.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- errn = encode_v2gSensorMeasurementsType(stream, &v2gSensorPackageType->SensorMeasurements.array [v2gSensorPackageType_SensorMeasurements_currArrayIndex++]);
- }
- grammarID = 2052;
- } else if (1==1) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- done = 1;
- }
- grammarID = 3;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 2052:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorMeasurements), END_ELEMENT] */
- if (v2gSensorPackageType_SensorMeasurements_currArrayIndex < v2gSensorPackageType->SensorMeasurements.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- errn = encode_v2gSensorMeasurementsType(stream, &v2gSensorPackageType->SensorMeasurements.array [v2gSensorPackageType_SensorMeasurements_currArrayIndex++]);
- }
- grammarID = 2053;
- } else if (1==1) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- done = 1;
- }
- grammarID = 3;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 2053:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorMeasurements), END_ELEMENT] */
- if (v2gSensorPackageType_SensorMeasurements_currArrayIndex < v2gSensorPackageType->SensorMeasurements.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- errn = encode_v2gSensorMeasurementsType(stream, &v2gSensorPackageType->SensorMeasurements.array [v2gSensorPackageType_SensorMeasurements_currArrayIndex++]);
- }
- grammarID = 2054;
- } else if (1==1) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- done = 1;
- }
- grammarID = 3;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 2054:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorMeasurements), END_ELEMENT] */
- if (v2gSensorPackageType_SensorMeasurements_currArrayIndex < v2gSensorPackageType->SensorMeasurements.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- errn = encode_v2gSensorMeasurementsType(stream, &v2gSensorPackageType->SensorMeasurements.array [v2gSensorPackageType_SensorMeasurements_currArrayIndex++]);
- }
- grammarID = 2055;
- } else if (1==1) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- done = 1;
- }
- grammarID = 3;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 2055:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorMeasurements), END_ELEMENT] */
- if (v2gSensorPackageType_SensorMeasurements_currArrayIndex < v2gSensorPackageType->SensorMeasurements.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- errn = encode_v2gSensorMeasurementsType(stream, &v2gSensorPackageType->SensorMeasurements.array [v2gSensorPackageType_SensorMeasurements_currArrayIndex++]);
- }
- grammarID = 2056;
- } else if (1==1) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- done = 1;
- }
- grammarID = 3;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 2056:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorMeasurements), END_ELEMENT] */
- if (v2gSensorPackageType_SensorMeasurements_currArrayIndex < v2gSensorPackageType->SensorMeasurements.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- errn = encode_v2gSensorMeasurementsType(stream, &v2gSensorPackageType->SensorMeasurements.array [v2gSensorPackageType_SensorMeasurements_currArrayIndex++]);
- }
- grammarID = 2057;
- } else if (1==1) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- done = 1;
- }
- grammarID = 3;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 2057:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorMeasurements), END_ELEMENT] */
- if (v2gSensorPackageType_SensorMeasurements_currArrayIndex < v2gSensorPackageType->SensorMeasurements.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- errn = encode_v2gSensorMeasurementsType(stream, &v2gSensorPackageType->SensorMeasurements.array [v2gSensorPackageType_SensorMeasurements_currArrayIndex++]);
- }
- grammarID = 2058;
- } else if (1==1) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- done = 1;
- }
- grammarID = 3;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 2058:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorMeasurements), END_ELEMENT] */
- if (v2gSensorPackageType_SensorMeasurements_currArrayIndex < v2gSensorPackageType->SensorMeasurements.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- errn = encode_v2gSensorMeasurementsType(stream, &v2gSensorPackageType->SensorMeasurements.array [v2gSensorPackageType_SensorMeasurements_currArrayIndex++]);
- }
- grammarID = 2059;
- } else if (1==1) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- done = 1;
- }
- grammarID = 3;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 2059:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorMeasurements), END_ELEMENT] */
- if (v2gSensorPackageType_SensorMeasurements_currArrayIndex < v2gSensorPackageType->SensorMeasurements.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- errn = encode_v2gSensorMeasurementsType(stream, &v2gSensorPackageType->SensorMeasurements.array [v2gSensorPackageType_SensorMeasurements_currArrayIndex++]);
- }
- grammarID = 2060;
- } else if (1==1) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- done = 1;
- }
- grammarID = 3;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 2060:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorMeasurements), END_ELEMENT] */
- if (v2gSensorPackageType_SensorMeasurements_currArrayIndex < v2gSensorPackageType->SensorMeasurements.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- errn = encode_v2gSensorMeasurementsType(stream, &v2gSensorPackageType->SensorMeasurements.array [v2gSensorPackageType_SensorMeasurements_currArrayIndex++]);
- }
- grammarID = 2061;
- } else if (1==1) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- done = 1;
- }
- grammarID = 3;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 2061:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorMeasurements), END_ELEMENT] */
- if (v2gSensorPackageType_SensorMeasurements_currArrayIndex < v2gSensorPackageType->SensorMeasurements.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- errn = encode_v2gSensorMeasurementsType(stream, &v2gSensorPackageType->SensorMeasurements.array [v2gSensorPackageType_SensorMeasurements_currArrayIndex++]);
- }
- grammarID = 2062;
- } else if (1==1) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- done = 1;
- }
- grammarID = 3;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 2062:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorMeasurements), END_ELEMENT] */
- if (v2gSensorPackageType_SensorMeasurements_currArrayIndex < v2gSensorPackageType->SensorMeasurements.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- errn = encode_v2gSensorMeasurementsType(stream, &v2gSensorPackageType->SensorMeasurements.array [v2gSensorPackageType_SensorMeasurements_currArrayIndex++]);
- }
- grammarID = 2063;
- } else if (1==1) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- done = 1;
- }
- grammarID = 3;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 2063:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorMeasurements), END_ELEMENT] */
- if (v2gSensorPackageType_SensorMeasurements_currArrayIndex < v2gSensorPackageType->SensorMeasurements.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- errn = encode_v2gSensorMeasurementsType(stream, &v2gSensorPackageType->SensorMeasurements.array [v2gSensorPackageType_SensorMeasurements_currArrayIndex++]);
- }
- grammarID = 2064;
- } else if (1==1) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- done = 1;
- }
- grammarID = 3;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 2064:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorMeasurements), END_ELEMENT] */
- if (v2gSensorPackageType_SensorMeasurements_currArrayIndex < v2gSensorPackageType->SensorMeasurements.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- errn = encode_v2gSensorMeasurementsType(stream, &v2gSensorPackageType->SensorMeasurements.array [v2gSensorPackageType_SensorMeasurements_currArrayIndex++]);
- }
- grammarID = 2065;
- } else if (1==1) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- done = 1;
- }
- grammarID = 3;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 2065:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorMeasurements), END_ELEMENT] */
- if (v2gSensorPackageType_SensorMeasurements_currArrayIndex < v2gSensorPackageType->SensorMeasurements.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- errn = encode_v2gSensorMeasurementsType(stream, &v2gSensorPackageType->SensorMeasurements.array [v2gSensorPackageType_SensorMeasurements_currArrayIndex++]);
- }
- grammarID = 2066;
- } else if (1==1) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- done = 1;
- }
- grammarID = 3;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 2066:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorMeasurements), END_ELEMENT] */
- if (v2gSensorPackageType_SensorMeasurements_currArrayIndex < v2gSensorPackageType->SensorMeasurements.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- errn = encode_v2gSensorMeasurementsType(stream, &v2gSensorPackageType->SensorMeasurements.array [v2gSensorPackageType_SensorMeasurements_currArrayIndex++]);
- }
- grammarID = 2067;
- } else if (1==1) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- done = 1;
- }
- grammarID = 3;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 2067:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorMeasurements), END_ELEMENT] */
- if (v2gSensorPackageType_SensorMeasurements_currArrayIndex < v2gSensorPackageType->SensorMeasurements.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- errn = encode_v2gSensorMeasurementsType(stream, &v2gSensorPackageType->SensorMeasurements.array [v2gSensorPackageType_SensorMeasurements_currArrayIndex++]);
- }
- grammarID = 2068;
- } else if (1==1) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- done = 1;
- }
- grammarID = 3;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 2068:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorMeasurements), END_ELEMENT] */
- if (v2gSensorPackageType_SensorMeasurements_currArrayIndex < v2gSensorPackageType->SensorMeasurements.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- errn = encode_v2gSensorMeasurementsType(stream, &v2gSensorPackageType->SensorMeasurements.array [v2gSensorPackageType_SensorMeasurements_currArrayIndex++]);
- }
- grammarID = 2069;
- } else if (1==1) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- done = 1;
- }
- grammarID = 3;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 2069:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorMeasurements), END_ELEMENT] */
- if (v2gSensorPackageType_SensorMeasurements_currArrayIndex < v2gSensorPackageType->SensorMeasurements.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- errn = encode_v2gSensorMeasurementsType(stream, &v2gSensorPackageType->SensorMeasurements.array [v2gSensorPackageType_SensorMeasurements_currArrayIndex++]);
- }
- grammarID = 2070;
- } else if (1==1) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- done = 1;
- }
- grammarID = 3;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 2070:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorMeasurements), END_ELEMENT] */
- if (v2gSensorPackageType_SensorMeasurements_currArrayIndex < v2gSensorPackageType->SensorMeasurements.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- errn = encode_v2gSensorMeasurementsType(stream, &v2gSensorPackageType->SensorMeasurements.array [v2gSensorPackageType_SensorMeasurements_currArrayIndex++]);
- }
- grammarID = 2071;
- } else if (1==1) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- done = 1;
- }
- grammarID = 3;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 2071:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorMeasurements), END_ELEMENT] */
- if (v2gSensorPackageType_SensorMeasurements_currArrayIndex < v2gSensorPackageType->SensorMeasurements.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- errn = encode_v2gSensorMeasurementsType(stream, &v2gSensorPackageType->SensorMeasurements.array [v2gSensorPackageType_SensorMeasurements_currArrayIndex++]);
- }
- grammarID = 2072;
- } else if (1==1) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- done = 1;
- }
- grammarID = 3;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 2072:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorMeasurements), END_ELEMENT] */
- if (v2gSensorPackageType_SensorMeasurements_currArrayIndex < v2gSensorPackageType->SensorMeasurements.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- errn = encode_v2gSensorMeasurementsType(stream, &v2gSensorPackageType->SensorMeasurements.array [v2gSensorPackageType_SensorMeasurements_currArrayIndex++]);
- }
- grammarID = 2073;
- } else if (1==1) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- done = 1;
- }
- grammarID = 3;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 2073:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorMeasurements), END_ELEMENT] */
- if (v2gSensorPackageType_SensorMeasurements_currArrayIndex < v2gSensorPackageType->SensorMeasurements.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- errn = encode_v2gSensorMeasurementsType(stream, &v2gSensorPackageType->SensorMeasurements.array [v2gSensorPackageType_SensorMeasurements_currArrayIndex++]);
- }
- grammarID = 2074;
- } else if (1==1) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- done = 1;
- }
- grammarID = 3;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 2074:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorMeasurements), END_ELEMENT] */
- if (v2gSensorPackageType_SensorMeasurements_currArrayIndex < v2gSensorPackageType->SensorMeasurements.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- errn = encode_v2gSensorMeasurementsType(stream, &v2gSensorPackageType->SensorMeasurements.array [v2gSensorPackageType_SensorMeasurements_currArrayIndex++]);
- }
- grammarID = 2075;
- } else if (1==1) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- done = 1;
- }
- grammarID = 3;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 2075:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorMeasurements), END_ELEMENT] */
- if (v2gSensorPackageType_SensorMeasurements_currArrayIndex < v2gSensorPackageType->SensorMeasurements.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- errn = encode_v2gSensorMeasurementsType(stream, &v2gSensorPackageType->SensorMeasurements.array [v2gSensorPackageType_SensorMeasurements_currArrayIndex++]);
- }
- grammarID = 2076;
- } else if (1==1) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- done = 1;
- }
- grammarID = 3;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 2076:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorMeasurements), END_ELEMENT] */
- if (v2gSensorPackageType_SensorMeasurements_currArrayIndex < v2gSensorPackageType->SensorMeasurements.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- errn = encode_v2gSensorMeasurementsType(stream, &v2gSensorPackageType->SensorMeasurements.array [v2gSensorPackageType_SensorMeasurements_currArrayIndex++]);
- }
- grammarID = 2077;
- } else if (1==1) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- done = 1;
- }
- grammarID = 3;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 2077:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorMeasurements), END_ELEMENT] */
- if (v2gSensorPackageType_SensorMeasurements_currArrayIndex < v2gSensorPackageType->SensorMeasurements.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- errn = encode_v2gSensorMeasurementsType(stream, &v2gSensorPackageType->SensorMeasurements.array [v2gSensorPackageType_SensorMeasurements_currArrayIndex++]);
- }
- grammarID = 2078;
- } else if (1==1) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- done = 1;
- }
- grammarID = 3;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 2078:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorMeasurements), END_ELEMENT] */
- if (v2gSensorPackageType_SensorMeasurements_currArrayIndex < v2gSensorPackageType->SensorMeasurements.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- errn = encode_v2gSensorMeasurementsType(stream, &v2gSensorPackageType->SensorMeasurements.array [v2gSensorPackageType_SensorMeasurements_currArrayIndex++]);
- }
- grammarID = 2079;
- } else if (1==1) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- done = 1;
- }
- grammarID = 3;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 2079:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorMeasurements), END_ELEMENT] */
- if (v2gSensorPackageType_SensorMeasurements_currArrayIndex < v2gSensorPackageType->SensorMeasurements.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- errn = encode_v2gSensorMeasurementsType(stream, &v2gSensorPackageType->SensorMeasurements.array [v2gSensorPackageType_SensorMeasurements_currArrayIndex++]);
- }
- grammarID = 2080;
- } else if (1==1) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- done = 1;
- }
- grammarID = 3;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 2080:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorMeasurements), END_ELEMENT] */
- if (v2gSensorPackageType_SensorMeasurements_currArrayIndex < v2gSensorPackageType->SensorMeasurements.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- errn = encode_v2gSensorMeasurementsType(stream, &v2gSensorPackageType->SensorMeasurements.array [v2gSensorPackageType_SensorMeasurements_currArrayIndex++]);
- }
- grammarID = 2081;
- } else if (1==1) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- done = 1;
- }
- grammarID = 3;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 2081:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorMeasurements), END_ELEMENT] */
- if (v2gSensorPackageType_SensorMeasurements_currArrayIndex < v2gSensorPackageType->SensorMeasurements.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- errn = encode_v2gSensorMeasurementsType(stream, &v2gSensorPackageType->SensorMeasurements.array [v2gSensorPackageType_SensorMeasurements_currArrayIndex++]);
- }
- grammarID = 2082;
- } else if (1==1) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- done = 1;
- }
- grammarID = 3;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 2082:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorMeasurements), END_ELEMENT] */
- if (v2gSensorPackageType_SensorMeasurements_currArrayIndex < v2gSensorPackageType->SensorMeasurements.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- errn = encode_v2gSensorMeasurementsType(stream, &v2gSensorPackageType->SensorMeasurements.array [v2gSensorPackageType_SensorMeasurements_currArrayIndex++]);
- }
- grammarID = 2083;
- } else if (1==1) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- done = 1;
- }
- grammarID = 3;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 2083:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorMeasurements), END_ELEMENT] */
- if (v2gSensorPackageType_SensorMeasurements_currArrayIndex < v2gSensorPackageType->SensorMeasurements.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- errn = encode_v2gSensorMeasurementsType(stream, &v2gSensorPackageType->SensorMeasurements.array [v2gSensorPackageType_SensorMeasurements_currArrayIndex++]);
- }
- grammarID = 2084;
- } else if (1==1) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- done = 1;
- }
- grammarID = 3;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 2084:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorMeasurements), END_ELEMENT] */
- if (v2gSensorPackageType_SensorMeasurements_currArrayIndex < v2gSensorPackageType->SensorMeasurements.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- errn = encode_v2gSensorMeasurementsType(stream, &v2gSensorPackageType->SensorMeasurements.array [v2gSensorPackageType_SensorMeasurements_currArrayIndex++]);
- }
- grammarID = 2085;
- } else if (1==1) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- done = 1;
- }
- grammarID = 3;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 2085:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorMeasurements), END_ELEMENT] */
- if (v2gSensorPackageType_SensorMeasurements_currArrayIndex < v2gSensorPackageType->SensorMeasurements.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- errn = encode_v2gSensorMeasurementsType(stream, &v2gSensorPackageType->SensorMeasurements.array [v2gSensorPackageType_SensorMeasurements_currArrayIndex++]);
- }
- grammarID = 2086;
- } else if (1==1) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- done = 1;
- }
- grammarID = 3;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 2086:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorMeasurements), END_ELEMENT] */
- if (v2gSensorPackageType_SensorMeasurements_currArrayIndex < v2gSensorPackageType->SensorMeasurements.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- errn = encode_v2gSensorMeasurementsType(stream, &v2gSensorPackageType->SensorMeasurements.array [v2gSensorPackageType_SensorMeasurements_currArrayIndex++]);
- }
- grammarID = 2087;
- } else if (1==1) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- done = 1;
- }
- grammarID = 3;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 2087:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorMeasurements), END_ELEMENT] */
- if (v2gSensorPackageType_SensorMeasurements_currArrayIndex < v2gSensorPackageType->SensorMeasurements.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- errn = encode_v2gSensorMeasurementsType(stream, &v2gSensorPackageType->SensorMeasurements.array [v2gSensorPackageType_SensorMeasurements_currArrayIndex++]);
- }
- grammarID = 2088;
- } else if (1==1) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- done = 1;
- }
- grammarID = 3;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 2088:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorMeasurements), END_ELEMENT] */
- if (v2gSensorPackageType_SensorMeasurements_currArrayIndex < v2gSensorPackageType->SensorMeasurements.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- errn = encode_v2gSensorMeasurementsType(stream, &v2gSensorPackageType->SensorMeasurements.array [v2gSensorPackageType_SensorMeasurements_currArrayIndex++]);
- }
- grammarID = 2089;
- } else if (1==1) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- done = 1;
- }
- grammarID = 3;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 2089:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorMeasurements), END_ELEMENT] */
- if (v2gSensorPackageType_SensorMeasurements_currArrayIndex < v2gSensorPackageType->SensorMeasurements.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- errn = encode_v2gSensorMeasurementsType(stream, &v2gSensorPackageType->SensorMeasurements.array [v2gSensorPackageType_SensorMeasurements_currArrayIndex++]);
- }
- grammarID = 2090;
- } else if (1==1) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- done = 1;
- }
- grammarID = 3;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 2090:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorMeasurements), END_ELEMENT] */
- if (v2gSensorPackageType_SensorMeasurements_currArrayIndex < v2gSensorPackageType->SensorMeasurements.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- errn = encode_v2gSensorMeasurementsType(stream, &v2gSensorPackageType->SensorMeasurements.array [v2gSensorPackageType_SensorMeasurements_currArrayIndex++]);
- }
- grammarID = 2091;
- } else if (1==1) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- done = 1;
- }
- grammarID = 3;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 2091:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorMeasurements), END_ELEMENT] */
- if (v2gSensorPackageType_SensorMeasurements_currArrayIndex < v2gSensorPackageType->SensorMeasurements.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- errn = encode_v2gSensorMeasurementsType(stream, &v2gSensorPackageType->SensorMeasurements.array [v2gSensorPackageType_SensorMeasurements_currArrayIndex++]);
- }
- grammarID = 2092;
- } else if (1==1) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- done = 1;
- }
- grammarID = 3;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 2092:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorMeasurements), END_ELEMENT] */
- if (v2gSensorPackageType_SensorMeasurements_currArrayIndex < v2gSensorPackageType->SensorMeasurements.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- errn = encode_v2gSensorMeasurementsType(stream, &v2gSensorPackageType->SensorMeasurements.array [v2gSensorPackageType_SensorMeasurements_currArrayIndex++]);
- }
- grammarID = 2093;
- } else if (1==1) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- done = 1;
- }
- grammarID = 3;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 2093:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorMeasurements), END_ELEMENT] */
- if (v2gSensorPackageType_SensorMeasurements_currArrayIndex < v2gSensorPackageType->SensorMeasurements.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- errn = encode_v2gSensorMeasurementsType(stream, &v2gSensorPackageType->SensorMeasurements.array [v2gSensorPackageType_SensorMeasurements_currArrayIndex++]);
- }
- grammarID = 2094;
- } else if (1==1) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- done = 1;
- }
- grammarID = 3;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 2094:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorMeasurements), END_ELEMENT] */
- if (v2gSensorPackageType_SensorMeasurements_currArrayIndex < v2gSensorPackageType->SensorMeasurements.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- errn = encode_v2gSensorMeasurementsType(stream, &v2gSensorPackageType->SensorMeasurements.array [v2gSensorPackageType_SensorMeasurements_currArrayIndex++]);
- }
- grammarID = 2095;
- } else if (1==1) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- done = 1;
- }
- grammarID = 3;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 2095:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorMeasurements), END_ELEMENT] */
- if (v2gSensorPackageType_SensorMeasurements_currArrayIndex < v2gSensorPackageType->SensorMeasurements.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- errn = encode_v2gSensorMeasurementsType(stream, &v2gSensorPackageType->SensorMeasurements.array [v2gSensorPackageType_SensorMeasurements_currArrayIndex++]);
- }
- grammarID = 2096;
- } else if (1==1) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- done = 1;
- }
- grammarID = 3;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 2096:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorMeasurements), END_ELEMENT] */
- if (v2gSensorPackageType_SensorMeasurements_currArrayIndex < v2gSensorPackageType->SensorMeasurements.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- errn = encode_v2gSensorMeasurementsType(stream, &v2gSensorPackageType->SensorMeasurements.array [v2gSensorPackageType_SensorMeasurements_currArrayIndex++]);
- }
- grammarID = 2097;
- } else if (1==1) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- done = 1;
- }
- grammarID = 3;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 2097:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorMeasurements), END_ELEMENT] */
- if (v2gSensorPackageType_SensorMeasurements_currArrayIndex < v2gSensorPackageType->SensorMeasurements.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- errn = encode_v2gSensorMeasurementsType(stream, &v2gSensorPackageType->SensorMeasurements.array [v2gSensorPackageType_SensorMeasurements_currArrayIndex++]);
- }
- grammarID = 2098;
- } else if (1==1) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- done = 1;
- }
- grammarID = 3;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 2098:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorMeasurements), END_ELEMENT] */
- if (v2gSensorPackageType_SensorMeasurements_currArrayIndex < v2gSensorPackageType->SensorMeasurements.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- errn = encode_v2gSensorMeasurementsType(stream, &v2gSensorPackageType->SensorMeasurements.array [v2gSensorPackageType_SensorMeasurements_currArrayIndex++]);
- }
- grammarID = 2099;
- } else if (1==1) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- done = 1;
- }
- grammarID = 3;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 2099:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorMeasurements), END_ELEMENT] */
- if (v2gSensorPackageType_SensorMeasurements_currArrayIndex < v2gSensorPackageType->SensorMeasurements.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- errn = encode_v2gSensorMeasurementsType(stream, &v2gSensorPackageType->SensorMeasurements.array [v2gSensorPackageType_SensorMeasurements_currArrayIndex++]);
- }
- grammarID = 2100;
- } else if (1==1) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- done = 1;
- }
- grammarID = 3;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 2100:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorMeasurements), END_ELEMENT] */
- if (v2gSensorPackageType_SensorMeasurements_currArrayIndex < v2gSensorPackageType->SensorMeasurements.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- errn = encode_v2gSensorMeasurementsType(stream, &v2gSensorPackageType->SensorMeasurements.array [v2gSensorPackageType_SensorMeasurements_currArrayIndex++]);
- }
- grammarID = 2101;
- } else if (1==1) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- done = 1;
- }
- grammarID = 3;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 2101:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorMeasurements), END_ELEMENT] */
- if (v2gSensorPackageType_SensorMeasurements_currArrayIndex < v2gSensorPackageType->SensorMeasurements.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- errn = encode_v2gSensorMeasurementsType(stream, &v2gSensorPackageType->SensorMeasurements.array [v2gSensorPackageType_SensorMeasurements_currArrayIndex++]);
- }
- grammarID = 2102;
- } else if (1==1) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- done = 1;
- }
- grammarID = 3;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 2102:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorMeasurements), END_ELEMENT] */
- if (v2gSensorPackageType_SensorMeasurements_currArrayIndex < v2gSensorPackageType->SensorMeasurements.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- errn = encode_v2gSensorMeasurementsType(stream, &v2gSensorPackageType->SensorMeasurements.array [v2gSensorPackageType_SensorMeasurements_currArrayIndex++]);
- }
- grammarID = 2103;
- } else if (1==1) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- done = 1;
- }
- grammarID = 3;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 2103:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorMeasurements), END_ELEMENT] */
- if (v2gSensorPackageType_SensorMeasurements_currArrayIndex < v2gSensorPackageType->SensorMeasurements.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- errn = encode_v2gSensorMeasurementsType(stream, &v2gSensorPackageType->SensorMeasurements.array [v2gSensorPackageType_SensorMeasurements_currArrayIndex++]);
- }
- grammarID = 2104;
- } else if (1==1) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- done = 1;
- }
- grammarID = 3;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 2104:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorMeasurements), END_ELEMENT] */
- if (v2gSensorPackageType_SensorMeasurements_currArrayIndex < v2gSensorPackageType->SensorMeasurements.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- errn = encode_v2gSensorMeasurementsType(stream, &v2gSensorPackageType->SensorMeasurements.array [v2gSensorPackageType_SensorMeasurements_currArrayIndex++]);
- }
- grammarID = 2105;
- } else if (1==1) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- done = 1;
- }
- grammarID = 3;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 2105:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorMeasurements), END_ELEMENT] */
- if (v2gSensorPackageType_SensorMeasurements_currArrayIndex < v2gSensorPackageType->SensorMeasurements.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- errn = encode_v2gSensorMeasurementsType(stream, &v2gSensorPackageType->SensorMeasurements.array [v2gSensorPackageType_SensorMeasurements_currArrayIndex++]);
- }
- grammarID = 2106;
- } else if (1==1) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- done = 1;
- }
- grammarID = 3;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 2106:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorMeasurements), END_ELEMENT] */
- if (v2gSensorPackageType_SensorMeasurements_currArrayIndex < v2gSensorPackageType->SensorMeasurements.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- errn = encode_v2gSensorMeasurementsType(stream, &v2gSensorPackageType->SensorMeasurements.array [v2gSensorPackageType_SensorMeasurements_currArrayIndex++]);
- }
- grammarID = 2107;
- } else if (1==1) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- done = 1;
- }
- grammarID = 3;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 2107:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorMeasurements), END_ELEMENT] */
- if (v2gSensorPackageType_SensorMeasurements_currArrayIndex < v2gSensorPackageType->SensorMeasurements.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- errn = encode_v2gSensorMeasurementsType(stream, &v2gSensorPackageType->SensorMeasurements.array [v2gSensorPackageType_SensorMeasurements_currArrayIndex++]);
- }
- grammarID = 2108;
- } else if (1==1) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- done = 1;
- }
- grammarID = 3;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 2108:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorMeasurements), END_ELEMENT] */
- if (v2gSensorPackageType_SensorMeasurements_currArrayIndex < v2gSensorPackageType->SensorMeasurements.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- errn = encode_v2gSensorMeasurementsType(stream, &v2gSensorPackageType->SensorMeasurements.array [v2gSensorPackageType_SensorMeasurements_currArrayIndex++]);
- }
- grammarID = 2109;
- } else if (1==1) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- done = 1;
- }
- grammarID = 3;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 2109:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorMeasurements), END_ELEMENT] */
- if (v2gSensorPackageType_SensorMeasurements_currArrayIndex < v2gSensorPackageType->SensorMeasurements.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- errn = encode_v2gSensorMeasurementsType(stream, &v2gSensorPackageType->SensorMeasurements.array [v2gSensorPackageType_SensorMeasurements_currArrayIndex++]);
- }
- grammarID = 2110;
- } else if (1==1) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- done = 1;
- }
- grammarID = 3;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 2110:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorMeasurements), END_ELEMENT] */
- if (v2gSensorPackageType_SensorMeasurements_currArrayIndex < v2gSensorPackageType->SensorMeasurements.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- errn = encode_v2gSensorMeasurementsType(stream, &v2gSensorPackageType->SensorMeasurements.array [v2gSensorPackageType_SensorMeasurements_currArrayIndex++]);
- }
- grammarID = 2111;
- } else if (1==1) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- done = 1;
- }
- grammarID = 3;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 2111:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorMeasurements), END_ELEMENT] */
- if (v2gSensorPackageType_SensorMeasurements_currArrayIndex < v2gSensorPackageType->SensorMeasurements.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- errn = encode_v2gSensorMeasurementsType(stream, &v2gSensorPackageType->SensorMeasurements.array [v2gSensorPackageType_SensorMeasurements_currArrayIndex++]);
- }
- grammarID = 2112;
- } else if (1==1) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- done = 1;
- }
- grammarID = 3;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 2112:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorMeasurements), END_ELEMENT] */
- if (v2gSensorPackageType_SensorMeasurements_currArrayIndex < v2gSensorPackageType->SensorMeasurements.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- errn = encode_v2gSensorMeasurementsType(stream, &v2gSensorPackageType->SensorMeasurements.array [v2gSensorPackageType_SensorMeasurements_currArrayIndex++]);
- }
- grammarID = 2113;
- } else if (1==1) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- done = 1;
- }
- grammarID = 3;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 2113:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorMeasurements), END_ELEMENT] */
- if (v2gSensorPackageType_SensorMeasurements_currArrayIndex < v2gSensorPackageType->SensorMeasurements.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- errn = encode_v2gSensorMeasurementsType(stream, &v2gSensorPackageType->SensorMeasurements.array [v2gSensorPackageType_SensorMeasurements_currArrayIndex++]);
- }
- grammarID = 2114;
- } else if (1==1) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- done = 1;
- }
- grammarID = 3;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 2114:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorMeasurements), END_ELEMENT] */
- if (v2gSensorPackageType_SensorMeasurements_currArrayIndex < v2gSensorPackageType->SensorMeasurements.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- errn = encode_v2gSensorMeasurementsType(stream, &v2gSensorPackageType->SensorMeasurements.array [v2gSensorPackageType_SensorMeasurements_currArrayIndex++]);
- }
- grammarID = 2115;
- } else if (1==1) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- done = 1;
- }
- grammarID = 3;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 2115:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorMeasurements), END_ELEMENT] */
- if (v2gSensorPackageType_SensorMeasurements_currArrayIndex < v2gSensorPackageType->SensorMeasurements.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- errn = encode_v2gSensorMeasurementsType(stream, &v2gSensorPackageType->SensorMeasurements.array [v2gSensorPackageType_SensorMeasurements_currArrayIndex++]);
- }
- grammarID = 2116;
- } else if (1==1) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- done = 1;
- }
- grammarID = 3;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 2116:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorMeasurements), END_ELEMENT] */
- if (v2gSensorPackageType_SensorMeasurements_currArrayIndex < v2gSensorPackageType->SensorMeasurements.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- errn = encode_v2gSensorMeasurementsType(stream, &v2gSensorPackageType->SensorMeasurements.array [v2gSensorPackageType_SensorMeasurements_currArrayIndex++]);
- }
- grammarID = 2117;
- } else if (1==1) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- done = 1;
- }
- grammarID = 3;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 2117:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorMeasurements), END_ELEMENT] */
- if (v2gSensorPackageType_SensorMeasurements_currArrayIndex < v2gSensorPackageType->SensorMeasurements.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- errn = encode_v2gSensorMeasurementsType(stream, &v2gSensorPackageType->SensorMeasurements.array [v2gSensorPackageType_SensorMeasurements_currArrayIndex++]);
- }
- grammarID = 2118;
- } else if (1==1) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- done = 1;
- }
- grammarID = 3;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 2118:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorMeasurements), END_ELEMENT] */
- if (v2gSensorPackageType_SensorMeasurements_currArrayIndex < v2gSensorPackageType->SensorMeasurements.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- errn = encode_v2gSensorMeasurementsType(stream, &v2gSensorPackageType->SensorMeasurements.array [v2gSensorPackageType_SensorMeasurements_currArrayIndex++]);
- }
- grammarID = 2119;
- } else if (1==1) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- done = 1;
- }
- grammarID = 3;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 2119:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorMeasurements), END_ELEMENT] */
- if (v2gSensorPackageType_SensorMeasurements_currArrayIndex < v2gSensorPackageType->SensorMeasurements.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- errn = encode_v2gSensorMeasurementsType(stream, &v2gSensorPackageType->SensorMeasurements.array [v2gSensorPackageType_SensorMeasurements_currArrayIndex++]);
- }
- grammarID = 2120;
- } else if (1==1) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- done = 1;
- }
- grammarID = 3;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 2120:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorMeasurements), END_ELEMENT] */
- if (v2gSensorPackageType_SensorMeasurements_currArrayIndex < v2gSensorPackageType->SensorMeasurements.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- errn = encode_v2gSensorMeasurementsType(stream, &v2gSensorPackageType->SensorMeasurements.array [v2gSensorPackageType_SensorMeasurements_currArrayIndex++]);
- }
- grammarID = 2121;
- } else if (1==1) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- done = 1;
- }
- grammarID = 3;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 2121:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorMeasurements), END_ELEMENT] */
- if (v2gSensorPackageType_SensorMeasurements_currArrayIndex < v2gSensorPackageType->SensorMeasurements.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- errn = encode_v2gSensorMeasurementsType(stream, &v2gSensorPackageType->SensorMeasurements.array [v2gSensorPackageType_SensorMeasurements_currArrayIndex++]);
- }
- grammarID = 2122;
- } else if (1==1) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- done = 1;
- }
- grammarID = 3;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 2122:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorMeasurements), END_ELEMENT] */
- if (v2gSensorPackageType_SensorMeasurements_currArrayIndex < v2gSensorPackageType->SensorMeasurements.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- errn = encode_v2gSensorMeasurementsType(stream, &v2gSensorPackageType->SensorMeasurements.array [v2gSensorPackageType_SensorMeasurements_currArrayIndex++]);
- }
- grammarID = 2123;
- } else if (1==1) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- done = 1;
- }
- grammarID = 3;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 2123:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorMeasurements), END_ELEMENT] */
- if (v2gSensorPackageType_SensorMeasurements_currArrayIndex < v2gSensorPackageType->SensorMeasurements.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- errn = encode_v2gSensorMeasurementsType(stream, &v2gSensorPackageType->SensorMeasurements.array [v2gSensorPackageType_SensorMeasurements_currArrayIndex++]);
- }
- grammarID = 2124;
- } else if (1==1) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- done = 1;
- }
- grammarID = 3;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 2124:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorMeasurements), END_ELEMENT] */
- if (v2gSensorPackageType_SensorMeasurements_currArrayIndex < v2gSensorPackageType->SensorMeasurements.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- errn = encode_v2gSensorMeasurementsType(stream, &v2gSensorPackageType->SensorMeasurements.array [v2gSensorPackageType_SensorMeasurements_currArrayIndex++]);
- }
- grammarID = 2125;
- } else if (1==1) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- done = 1;
- }
- grammarID = 3;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 2125:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorMeasurements), END_ELEMENT] */
- if (v2gSensorPackageType_SensorMeasurements_currArrayIndex < v2gSensorPackageType->SensorMeasurements.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- errn = encode_v2gSensorMeasurementsType(stream, &v2gSensorPackageType->SensorMeasurements.array [v2gSensorPackageType_SensorMeasurements_currArrayIndex++]);
- }
- grammarID = 2126;
- } else if (1==1) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- done = 1;
- }
- grammarID = 3;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 2126:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorMeasurements), END_ELEMENT] */
- if (v2gSensorPackageType_SensorMeasurements_currArrayIndex < v2gSensorPackageType->SensorMeasurements.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- errn = encode_v2gSensorMeasurementsType(stream, &v2gSensorPackageType->SensorMeasurements.array [v2gSensorPackageType_SensorMeasurements_currArrayIndex++]);
- }
- grammarID = 2127;
- } else if (1==1) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- done = 1;
- }
- grammarID = 3;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 2127:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorMeasurements), END_ELEMENT] */
- if (v2gSensorPackageType_SensorMeasurements_currArrayIndex < v2gSensorPackageType->SensorMeasurements.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- errn = encode_v2gSensorMeasurementsType(stream, &v2gSensorPackageType->SensorMeasurements.array [v2gSensorPackageType_SensorMeasurements_currArrayIndex++]);
- }
- 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:2016:MsgDataTypes,DC_EVSEBidirectionalParameterType', base type name='DC_EVSEChargeParameterType', content type='ELEMENT', isAbstract='false', hasTypeId='false', final='0', block='0', particle='(("urn:iso:15118:2:2016:MsgDataTypes":EVSEMaximumChargePower,"urn:iso:15118:2:2016:MsgDataTypes":EVSEMaximumChargeCurrent,"urn:iso:15118:2:2016:MsgDataTypes":EVSEMinimumChargeCurrent,"urn:iso:15118:2:2016:MsgDataTypes":EVSEMaximumVoltage,"urn:iso:15118:2:2016:MsgDataTypes":EVSEMinimumVoltage,"urn:iso:15118:2:2016:MsgDataTypes":EVSECurrentRegulationTolerance{0-1},"urn:iso:15118:2:2016:MsgDataTypes":EVSEPeakCurrentRipple,"urn:iso:15118:2:2016:MsgDataTypes":EVSEEnergyToBeDelivered{0-1}),("urn:iso:15118:2:2016:MsgDataTypes":EVSEMaximumDischargePower,"urn:iso:15118:2:2016:MsgDataTypes":EVSEMaximumDischargeCurrent,"urn:iso:15118:2:2016:MsgDataTypes":EVSEMinimumDischargeCurrent))', derivedBy='EXTENSION'. */
-static int encode_v2gDC_EVSEBidirectionalParameterType(bitstream_t* stream, struct v2gDC_EVSEBidirectionalParameterType* v2gDC_EVSEBidirectionalParameterType) {
- int grammarID = 2128;
- int done = 0;
-
-
- while(!done) {
- switch(grammarID) {
- case 2128:
- /* FirstStartTag[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}EVSEMaximumChargePower)] */
- if ( 1 == 1 ) {
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- if(errn == 0) {
- errn = encode_v2gPhysicalValueType(stream, &v2gDC_EVSEBidirectionalParameterType->EVSEMaximumChargePower );
- }
- grammarID = 2129;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 2129:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}EVSEMaximumChargeCurrent)] */
- if ( 1 == 1 ) {
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- if(errn == 0) {
- errn = encode_v2gPhysicalValueType(stream, &v2gDC_EVSEBidirectionalParameterType->EVSEMaximumChargeCurrent );
- }
- grammarID = 2130;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 2130:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}EVSEMinimumChargeCurrent)] */
- if ( 1 == 1 ) {
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- if(errn == 0) {
- errn = encode_v2gPhysicalValueType(stream, &v2gDC_EVSEBidirectionalParameterType->EVSEMinimumChargeCurrent );
- }
- grammarID = 2131;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 2131:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}EVSEMaximumVoltage)] */
- if ( 1 == 1 ) {
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- if(errn == 0) {
- errn = encode_v2gPhysicalValueType(stream, &v2gDC_EVSEBidirectionalParameterType->EVSEMaximumVoltage );
- }
- grammarID = 2132;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 2132:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}EVSEMinimumVoltage)] */
- if ( 1 == 1 ) {
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- if(errn == 0) {
- errn = encode_v2gPhysicalValueType(stream, &v2gDC_EVSEBidirectionalParameterType->EVSEMinimumVoltage );
- }
- grammarID = 2133;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 2133:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}EVSECurrentRegulationTolerance), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}EVSEPeakCurrentRipple)] */
- if ( v2gDC_EVSEBidirectionalParameterType->EVSECurrentRegulationTolerance_isUsed == 1u ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- errn = encode_v2gPhysicalValueType(stream, &v2gDC_EVSEBidirectionalParameterType->EVSECurrentRegulationTolerance );
- }
- grammarID = 2134;
- } else if ( 1 == 1 ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- errn = encode_v2gPhysicalValueType(stream, &v2gDC_EVSEBidirectionalParameterType->EVSEPeakCurrentRipple );
- }
- grammarID = 2135;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 2134:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}EVSEPeakCurrentRipple)] */
- if ( 1 == 1 ) {
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- if(errn == 0) {
- errn = encode_v2gPhysicalValueType(stream, &v2gDC_EVSEBidirectionalParameterType->EVSEPeakCurrentRipple );
- }
- grammarID = 2135;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 2135:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}EVSEEnergyToBeDelivered), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}EVSEMaximumDischargePower)] */
- if ( v2gDC_EVSEBidirectionalParameterType->EVSEEnergyToBeDelivered_isUsed == 1u ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- errn = encode_v2gPhysicalValueType(stream, &v2gDC_EVSEBidirectionalParameterType->EVSEEnergyToBeDelivered );
- }
- grammarID = 2136;
- } else if ( 1 == 1 ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- errn = encode_v2gPhysicalValueType(stream, &v2gDC_EVSEBidirectionalParameterType->EVSEMaximumDischargePower );
- }
- grammarID = 2137;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 2136:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}EVSEMaximumDischargePower)] */
- if ( 1 == 1 ) {
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- if(errn == 0) {
- errn = encode_v2gPhysicalValueType(stream, &v2gDC_EVSEBidirectionalParameterType->EVSEMaximumDischargePower );
- }
- grammarID = 2137;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 2137:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}EVSEMaximumDischargeCurrent)] */
- if ( 1 == 1 ) {
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- if(errn == 0) {
- errn = encode_v2gPhysicalValueType(stream, &v2gDC_EVSEBidirectionalParameterType->EVSEMaximumDischargeCurrent );
- }
- grammarID = 2138;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 2138:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}EVSEMinimumDischargeCurrent)] */
- if ( 1 == 1 ) {
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- if(errn == 0) {
- errn = encode_v2gPhysicalValueType(stream, &v2gDC_EVSEBidirectionalParameterType->EVSEMinimumDischargeCurrent );
- }
- grammarID = 2;
- } 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:2016:MsgDataTypes,DC_EVSEChargeParameterType', base type name='EVSEEnergyTransferParameterType', content type='ELEMENT', isAbstract='false', hasTypeId='false', final='0', block='0', particle='("urn:iso:15118:2:2016:MsgDataTypes":EVSEMaximumChargePower,"urn:iso:15118:2:2016:MsgDataTypes":EVSEMaximumChargeCurrent,"urn:iso:15118:2:2016:MsgDataTypes":EVSEMinimumChargeCurrent,"urn:iso:15118:2:2016:MsgDataTypes":EVSEMaximumVoltage,"urn:iso:15118:2:2016:MsgDataTypes":EVSEMinimumVoltage,"urn:iso:15118:2:2016:MsgDataTypes":EVSECurrentRegulationTolerance{0-1},"urn:iso:15118:2:2016:MsgDataTypes":EVSEPeakCurrentRipple,"urn:iso:15118:2:2016:MsgDataTypes":EVSEEnergyToBeDelivered{0-1})', derivedBy='EXTENSION'. */
-static int encode_v2gDC_EVSEChargeParameterType(bitstream_t* stream, struct v2gDC_EVSEChargeParameterType* v2gDC_EVSEChargeParameterType) {
- int grammarID = 2139;
- int done = 0;
-
-
- while(!done) {
- switch(grammarID) {
- case 2139:
- /* FirstStartTag[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}EVSEMaximumChargePower)] */
- if ( 1 == 1 ) {
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- if(errn == 0) {
- errn = encode_v2gPhysicalValueType(stream, &v2gDC_EVSEChargeParameterType->EVSEMaximumChargePower );
- }
- grammarID = 2140;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 2140:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}EVSEMaximumChargeCurrent)] */
- if ( 1 == 1 ) {
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- if(errn == 0) {
- errn = encode_v2gPhysicalValueType(stream, &v2gDC_EVSEChargeParameterType->EVSEMaximumChargeCurrent );
- }
- grammarID = 2141;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 2141:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}EVSEMinimumChargeCurrent)] */
- if ( 1 == 1 ) {
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- if(errn == 0) {
- errn = encode_v2gPhysicalValueType(stream, &v2gDC_EVSEChargeParameterType->EVSEMinimumChargeCurrent );
- }
- grammarID = 2142;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 2142:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}EVSEMaximumVoltage)] */
- if ( 1 == 1 ) {
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- if(errn == 0) {
- errn = encode_v2gPhysicalValueType(stream, &v2gDC_EVSEChargeParameterType->EVSEMaximumVoltage );
- }
- grammarID = 2143;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 2143:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}EVSEMinimumVoltage)] */
- if ( 1 == 1 ) {
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- if(errn == 0) {
- errn = encode_v2gPhysicalValueType(stream, &v2gDC_EVSEChargeParameterType->EVSEMinimumVoltage );
- }
- grammarID = 2144;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 2144:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}EVSECurrentRegulationTolerance), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}EVSEPeakCurrentRipple)] */
- if ( v2gDC_EVSEChargeParameterType->EVSECurrentRegulationTolerance_isUsed == 1u ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- errn = encode_v2gPhysicalValueType(stream, &v2gDC_EVSEChargeParameterType->EVSECurrentRegulationTolerance );
- }
- grammarID = 2145;
- } else if ( 1 == 1 ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- errn = encode_v2gPhysicalValueType(stream, &v2gDC_EVSEChargeParameterType->EVSEPeakCurrentRipple );
- }
- grammarID = 2146;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 2145:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}EVSEPeakCurrentRipple)] */
- if ( 1 == 1 ) {
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- if(errn == 0) {
- errn = encode_v2gPhysicalValueType(stream, &v2gDC_EVSEChargeParameterType->EVSEPeakCurrentRipple );
- }
- grammarID = 2146;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 2146:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}EVSEEnergyToBeDelivered), END_ELEMENT] */
- if ( v2gDC_EVSEChargeParameterType->EVSEEnergyToBeDelivered_isUsed == 1u ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- errn = encode_v2gPhysicalValueType(stream, &v2gDC_EVSEChargeParameterType->EVSEEnergyToBeDelivered );
- }
- 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:2016:MsgBody,ConnectChargingDeviceReqType', base type name='BodyBaseType', content type='ELEMENT', isAbstract='false', hasTypeId='false', final='0', block='0', particle='("urn:iso:15118:2:2016:MsgBody":EVElectricalChargingDeviceStatus,"urn:iso:15118:2:2016:MsgBody":EVMechanicalChargingDeviceStatus)', derivedBy='EXTENSION'. */
-static int encode_v2gConnectChargingDeviceReqType(bitstream_t* stream, struct v2gConnectChargingDeviceReqType* v2gConnectChargingDeviceReqType) {
- int grammarID = 2147;
- int done = 0;
-
-
- while(!done) {
- switch(grammarID) {
- case 2147:
- /* FirstStartTag[START_ELEMENT({urn:iso:15118:2:2016:MsgBody}EVElectricalChargingDeviceStatus)] */
- 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, 1, v2gConnectChargingDeviceReqType->EVElectricalChargingDeviceStatus);
- /* valid EE */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- }
- }
- grammarID = 917;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 917:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgBody}EVMechanicalChargingDeviceStatus)] */
- 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, v2gConnectChargingDeviceReqType->EVMechanicalChargingDeviceStatus);
- /* valid EE */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- }
- }
- grammarID = 2;
- } 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:2016:MsgBody,CertificateUpdateReqType', base type name='BodyBaseType', content type='ELEMENT', isAbstract='false', hasTypeId='false', final='0', block='0', particle='("urn:iso:15118:2:2016:MsgBody":ContractSignatureCertChain,"urn:iso:15118:2:2016:MsgBody":eMAID,"urn:iso:15118:2:2016:MsgBody":ListOfRootCertificateIDs)', derivedBy='EXTENSION'. */
-static int encode_v2gCertificateUpdateReqType(bitstream_t* stream, struct v2gCertificateUpdateReqType* v2gCertificateUpdateReqType) {
- int grammarID = 2148;
- int done = 0;
-
-
- while(!done) {
- switch(grammarID) {
- case 2148:
- /* FirstStartTag[ATTRIBUTE[STRING]({urn:iso:15118:2:2016:MsgBody}Id)] */
- if (1==1) {
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- if(errn == 0) {
- /* encode string as string table miss (+2 len)*/
- errn = encodeUnsignedInteger16(stream, (uint16_t)(v2gCertificateUpdateReqType->Id.charactersLen + 2));
- if (errn == 0) {
- errn = encodeCharacters(stream, v2gCertificateUpdateReqType->Id.characters, v2gCertificateUpdateReqType->Id.charactersLen);
- }
- }
- grammarID = 2149;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 2149:
- /* StartTag[START_ELEMENT({urn:iso:15118:2:2016:MsgBody}ContractSignatureCertChain)] */
- if ( 1 == 1 ) {
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- if(errn == 0) {
- errn = encode_v2gCertificateChainType(stream, &v2gCertificateUpdateReqType->ContractSignatureCertChain );
- }
- grammarID = 2150;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 2150:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgBody}eMAID)] */
- if ( 1 == 1 ) {
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- if(errn == 0) {
- /* First(xsi:type)StartTag[CHARACTERS[STRING]] */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- if(errn == 0) {
- /* encode string as string table miss (+2 len)*/
- errn = encodeUnsignedInteger16(stream, (uint16_t)(v2gCertificateUpdateReqType->eMAID.charactersLen + 2));
- if (errn == 0) {
- errn = encodeCharacters(stream, v2gCertificateUpdateReqType->eMAID.characters, v2gCertificateUpdateReqType->eMAID.charactersLen);
- }
- /* valid EE */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- }
- }
- grammarID = 1851;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 1851:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgBody}ListOfRootCertificateIDs)] */
- if ( 1 == 1 ) {
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- if(errn == 0) {
- errn = encode_v2gListOfRootCertificateIDsType(stream, &v2gCertificateUpdateReqType->ListOfRootCertificateIDs );
- }
- grammarID = 2;
- } 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='http://www.w3.org/2000/09/xmldsig#,KeyInfoType', base type name='anyType', content type='MIXED', isAbstract='false', hasTypeId='false', final='0', block='0', particle='("http://www.w3.org/2000/09/xmldsig#":KeyName|"http://www.w3.org/2000/09/xmldsig#":KeyValue|"http://www.w3.org/2000/09/xmldsig#":RetrievalMethod|"http://www.w3.org/2000/09/xmldsig#":X509Data|"http://www.w3.org/2000/09/xmldsig#":PGPData|"http://www.w3.org/2000/09/xmldsig#":SPKIData|"http://www.w3.org/2000/09/xmldsig#":MgmtData|(WC[##other:"http://www.w3.org/2000/09/xmldsig#"])){1-UNBOUNDED}', derivedBy='RESTRICTION'. */
-static int encode_v2gKeyInfoType(bitstream_t* stream, struct v2gKeyInfoType* v2gKeyInfoType) {
- int grammarID = 2151;
- int done = 0;
- int wcDone = 0;
-
- unsigned int v2gKeyInfoType_KeyName_currArrayIndex = 0;
- unsigned int v2gKeyInfoType_KeyValue_currArrayIndex = 0;
- unsigned int v2gKeyInfoType_RetrievalMethod_currArrayIndex = 0;
- unsigned int v2gKeyInfoType_X509Data_currArrayIndex = 0;
- unsigned int v2gKeyInfoType_PGPData_currArrayIndex = 0;
- unsigned int v2gKeyInfoType_SPKIData_currArrayIndex = 0;
- unsigned int v2gKeyInfoType_MgmtData_currArrayIndex = 0;
-
- while(!done) {
- switch(grammarID) {
- case 2151:
- /* FirstStartTag[ATTRIBUTE[STRING](Id), START_ELEMENT({http://www.w3.org/2000/09/xmldsig#}KeyName), START_ELEMENT({http://www.w3.org/2000/09/xmldsig#}KeyValue), START_ELEMENT({http://www.w3.org/2000/09/xmldsig#}RetrievalMethod), START_ELEMENT({http://www.w3.org/2000/09/xmldsig#}X509Data), START_ELEMENT({http://www.w3.org/2000/09/xmldsig#}PGPData), START_ELEMENT({http://www.w3.org/2000/09/xmldsig#}SPKIData), START_ELEMENT({http://www.w3.org/2000/09/xmldsig#}MgmtData), START_ELEMENT_GENERIC, CHARACTERS_GENERIC[STRING]] */
- if ( v2gKeyInfoType->Id_isUsed == 1u ) {
- errn = encodeNBitUnsignedInteger(stream, 4, 0);
- if(errn == 0) {
- /* encode string as string table miss (+2 len)*/
- errn = encodeUnsignedInteger16(stream, (uint16_t)(v2gKeyInfoType->Id.charactersLen + 2));
- if (errn == 0) {
- errn = encodeCharacters(stream, v2gKeyInfoType->Id.characters, v2gKeyInfoType->Id.charactersLen);
- }
- }
- grammarID = 2152;
- } else if (v2gKeyInfoType_KeyName_currArrayIndex < v2gKeyInfoType->KeyName.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 4, 1);
- if(errn == 0) {
- /* First(xsi:type)StartTag[CHARACTERS[STRING]] */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- if(errn == 0) {
- /* encode string as string table miss (+2 len)*/
- errn = encodeUnsignedInteger16(stream, (uint16_t)(v2gKeyInfoType->KeyName.array[v2gKeyInfoType_KeyName_currArrayIndex].charactersLen + 2));
- if (errn == 0) {
- errn = encodeCharacters(stream, v2gKeyInfoType->KeyName.array[v2gKeyInfoType_KeyName_currArrayIndex].characters, v2gKeyInfoType->KeyName.array[v2gKeyInfoType_KeyName_currArrayIndex].charactersLen);
- v2gKeyInfoType_KeyName_currArrayIndex++;
- }
- /* valid EE */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- }
- }
- grammarID = 2153;
- } else if (v2gKeyInfoType_KeyValue_currArrayIndex < v2gKeyInfoType->KeyValue.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 4, 2);
- if(errn == 0) {
- errn = encode_v2gKeyValueType(stream, &v2gKeyInfoType->KeyValue.array [v2gKeyInfoType_KeyValue_currArrayIndex++]);
- }
- grammarID = 2153;
- } else if (v2gKeyInfoType_RetrievalMethod_currArrayIndex < v2gKeyInfoType->RetrievalMethod.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 4, 3);
- if(errn == 0) {
- errn = encode_v2gRetrievalMethodType(stream, &v2gKeyInfoType->RetrievalMethod.array [v2gKeyInfoType_RetrievalMethod_currArrayIndex++]);
- }
- grammarID = 2153;
- } else if (v2gKeyInfoType_X509Data_currArrayIndex < v2gKeyInfoType->X509Data.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 4, 4);
- if(errn == 0) {
- errn = encode_v2gX509DataType(stream, &v2gKeyInfoType->X509Data.array [v2gKeyInfoType_X509Data_currArrayIndex++]);
- }
- grammarID = 2153;
- } else if (v2gKeyInfoType_PGPData_currArrayIndex < v2gKeyInfoType->PGPData.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 4, 5);
- if(errn == 0) {
- errn = encode_v2gPGPDataType(stream, &v2gKeyInfoType->PGPData.array [v2gKeyInfoType_PGPData_currArrayIndex++]);
- }
- grammarID = 2153;
- } else if (v2gKeyInfoType_SPKIData_currArrayIndex < v2gKeyInfoType->SPKIData.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 4, 6);
- if(errn == 0) {
- errn = encode_v2gSPKIDataType(stream, &v2gKeyInfoType->SPKIData.array [v2gKeyInfoType_SPKIData_currArrayIndex++]);
- }
- grammarID = 2153;
- } else if (v2gKeyInfoType_MgmtData_currArrayIndex < v2gKeyInfoType->MgmtData.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 4, 7);
- if(errn == 0) {
- /* First(xsi:type)StartTag[CHARACTERS[STRING]] */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- if(errn == 0) {
- /* encode string as string table miss (+2 len)*/
- errn = encodeUnsignedInteger16(stream, (uint16_t)(v2gKeyInfoType->MgmtData.array[v2gKeyInfoType_MgmtData_currArrayIndex].charactersLen + 2));
- if (errn == 0) {
- errn = encodeCharacters(stream, v2gKeyInfoType->MgmtData.array[v2gKeyInfoType_MgmtData_currArrayIndex].characters, v2gKeyInfoType->MgmtData.array[v2gKeyInfoType_MgmtData_currArrayIndex].charactersLen);
- v2gKeyInfoType_MgmtData_currArrayIndex++;
- }
- /* valid EE */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- }
- }
- grammarID = 2153;
- } else if (1==0) {
- errn = EXI_UNSUPPORTED_EVENT_CODE_CHARACTERISTICS;
- grammarID = 2153;
- } else if ( v2gKeyInfoType->ANY_isUsed == 1u ) {
- errn = encodeNBitUnsignedInteger(stream, 4, 9);
- if(errn == 0) {
- /* encode string as string table miss (+2 len)*/
- errn = encodeUnsignedInteger16(stream, (uint16_t)(v2gKeyInfoType->ANY.charactersLen + 2));
- if (errn == 0) {
- errn = encodeCharacters(stream, v2gKeyInfoType->ANY.characters, v2gKeyInfoType->ANY.charactersLen);
- }
- }
- wcDone = 1;
- grammarID = 2154;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 2152:
- /* StartTag[START_ELEMENT({http://www.w3.org/2000/09/xmldsig#}KeyName), START_ELEMENT({http://www.w3.org/2000/09/xmldsig#}KeyValue), START_ELEMENT({http://www.w3.org/2000/09/xmldsig#}RetrievalMethod), START_ELEMENT({http://www.w3.org/2000/09/xmldsig#}X509Data), START_ELEMENT({http://www.w3.org/2000/09/xmldsig#}PGPData), START_ELEMENT({http://www.w3.org/2000/09/xmldsig#}SPKIData), START_ELEMENT({http://www.w3.org/2000/09/xmldsig#}MgmtData), START_ELEMENT_GENERIC, CHARACTERS_GENERIC[STRING]] */
- if (v2gKeyInfoType_KeyName_currArrayIndex < v2gKeyInfoType->KeyName.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 4, 0);
- if(errn == 0) {
- /* First(xsi:type)StartTag[CHARACTERS[STRING]] */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- if(errn == 0) {
- /* encode string as string table miss (+2 len)*/
- errn = encodeUnsignedInteger16(stream, (uint16_t)(v2gKeyInfoType->KeyName.array[v2gKeyInfoType_KeyName_currArrayIndex].charactersLen + 2));
- if (errn == 0) {
- errn = encodeCharacters(stream, v2gKeyInfoType->KeyName.array[v2gKeyInfoType_KeyName_currArrayIndex].characters, v2gKeyInfoType->KeyName.array[v2gKeyInfoType_KeyName_currArrayIndex].charactersLen);
- v2gKeyInfoType_KeyName_currArrayIndex++;
- }
- /* valid EE */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- }
- }
- grammarID = 2153;
- } else if (v2gKeyInfoType_KeyValue_currArrayIndex < v2gKeyInfoType->KeyValue.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 4, 1);
- if(errn == 0) {
- errn = encode_v2gKeyValueType(stream, &v2gKeyInfoType->KeyValue.array [v2gKeyInfoType_KeyValue_currArrayIndex++]);
- }
- grammarID = 2153;
- } else if (v2gKeyInfoType_RetrievalMethod_currArrayIndex < v2gKeyInfoType->RetrievalMethod.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 4, 2);
- if(errn == 0) {
- errn = encode_v2gRetrievalMethodType(stream, &v2gKeyInfoType->RetrievalMethod.array [v2gKeyInfoType_RetrievalMethod_currArrayIndex++]);
- }
- grammarID = 2153;
- } else if (v2gKeyInfoType_X509Data_currArrayIndex < v2gKeyInfoType->X509Data.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 4, 3);
- if(errn == 0) {
- errn = encode_v2gX509DataType(stream, &v2gKeyInfoType->X509Data.array [v2gKeyInfoType_X509Data_currArrayIndex++]);
- }
- grammarID = 2153;
- } else if (v2gKeyInfoType_PGPData_currArrayIndex < v2gKeyInfoType->PGPData.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 4, 4);
- if(errn == 0) {
- errn = encode_v2gPGPDataType(stream, &v2gKeyInfoType->PGPData.array [v2gKeyInfoType_PGPData_currArrayIndex++]);
- }
- grammarID = 2153;
- } else if (v2gKeyInfoType_SPKIData_currArrayIndex < v2gKeyInfoType->SPKIData.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 4, 5);
- if(errn == 0) {
- errn = encode_v2gSPKIDataType(stream, &v2gKeyInfoType->SPKIData.array [v2gKeyInfoType_SPKIData_currArrayIndex++]);
- }
- grammarID = 2153;
- } else if (v2gKeyInfoType_MgmtData_currArrayIndex < v2gKeyInfoType->MgmtData.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 4, 6);
- if(errn == 0) {
- /* First(xsi:type)StartTag[CHARACTERS[STRING]] */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- if(errn == 0) {
- /* encode string as string table miss (+2 len)*/
- errn = encodeUnsignedInteger16(stream, (uint16_t)(v2gKeyInfoType->MgmtData.array[v2gKeyInfoType_MgmtData_currArrayIndex].charactersLen + 2));
- if (errn == 0) {
- errn = encodeCharacters(stream, v2gKeyInfoType->MgmtData.array[v2gKeyInfoType_MgmtData_currArrayIndex].characters, v2gKeyInfoType->MgmtData.array[v2gKeyInfoType_MgmtData_currArrayIndex].charactersLen);
- v2gKeyInfoType_MgmtData_currArrayIndex++;
- }
- /* valid EE */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- }
- }
- grammarID = 2153;
- } else if (1==0) {
- errn = EXI_UNSUPPORTED_EVENT_CODE_CHARACTERISTICS;
- grammarID = 2153;
- } else if ( v2gKeyInfoType->ANY_isUsed == 1u ) {
- errn = encodeNBitUnsignedInteger(stream, 4, 8);
- if(errn == 0) {
- /* encode string as string table miss (+2 len)*/
- errn = encodeUnsignedInteger16(stream, (uint16_t)(v2gKeyInfoType->ANY.charactersLen + 2));
- if (errn == 0) {
- errn = encodeCharacters(stream, v2gKeyInfoType->ANY.characters, v2gKeyInfoType->ANY.charactersLen);
- }
- }
- wcDone = 1;
- grammarID = 2154;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 2153:
- /* Element[START_ELEMENT({http://www.w3.org/2000/09/xmldsig#}KeyName), START_ELEMENT({http://www.w3.org/2000/09/xmldsig#}KeyValue), START_ELEMENT({http://www.w3.org/2000/09/xmldsig#}RetrievalMethod), START_ELEMENT({http://www.w3.org/2000/09/xmldsig#}X509Data), START_ELEMENT({http://www.w3.org/2000/09/xmldsig#}PGPData), START_ELEMENT({http://www.w3.org/2000/09/xmldsig#}SPKIData), START_ELEMENT({http://www.w3.org/2000/09/xmldsig#}MgmtData), START_ELEMENT_GENERIC, END_ELEMENT, CHARACTERS_GENERIC[STRING]] */
- if (v2gKeyInfoType_KeyName_currArrayIndex < v2gKeyInfoType->KeyName.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 4, 0);
- if(errn == 0) {
- /* First(xsi:type)StartTag[CHARACTERS[STRING]] */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- if(errn == 0) {
- /* encode string as string table miss (+2 len)*/
- errn = encodeUnsignedInteger16(stream, (uint16_t)(v2gKeyInfoType->KeyName.array[v2gKeyInfoType_KeyName_currArrayIndex].charactersLen + 2));
- if (errn == 0) {
- errn = encodeCharacters(stream, v2gKeyInfoType->KeyName.array[v2gKeyInfoType_KeyName_currArrayIndex].characters, v2gKeyInfoType->KeyName.array[v2gKeyInfoType_KeyName_currArrayIndex].charactersLen);
- v2gKeyInfoType_KeyName_currArrayIndex++;
- }
- /* valid EE */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- }
- }
- grammarID = 2153;
- } else if (v2gKeyInfoType_KeyValue_currArrayIndex < v2gKeyInfoType->KeyValue.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 4, 1);
- if(errn == 0) {
- errn = encode_v2gKeyValueType(stream, &v2gKeyInfoType->KeyValue.array [v2gKeyInfoType_KeyValue_currArrayIndex++]);
- }
- grammarID = 2153;
- } else if (v2gKeyInfoType_RetrievalMethod_currArrayIndex < v2gKeyInfoType->RetrievalMethod.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 4, 2);
- if(errn == 0) {
- errn = encode_v2gRetrievalMethodType(stream, &v2gKeyInfoType->RetrievalMethod.array [v2gKeyInfoType_RetrievalMethod_currArrayIndex++]);
- }
- grammarID = 2153;
- } else if (v2gKeyInfoType_X509Data_currArrayIndex < v2gKeyInfoType->X509Data.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 4, 3);
- if(errn == 0) {
- errn = encode_v2gX509DataType(stream, &v2gKeyInfoType->X509Data.array [v2gKeyInfoType_X509Data_currArrayIndex++]);
- }
- grammarID = 2153;
- } else if (v2gKeyInfoType_PGPData_currArrayIndex < v2gKeyInfoType->PGPData.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 4, 4);
- if(errn == 0) {
- errn = encode_v2gPGPDataType(stream, &v2gKeyInfoType->PGPData.array [v2gKeyInfoType_PGPData_currArrayIndex++]);
- }
- grammarID = 2153;
- } else if (v2gKeyInfoType_SPKIData_currArrayIndex < v2gKeyInfoType->SPKIData.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 4, 5);
- if(errn == 0) {
- errn = encode_v2gSPKIDataType(stream, &v2gKeyInfoType->SPKIData.array [v2gKeyInfoType_SPKIData_currArrayIndex++]);
- }
- grammarID = 2153;
- } else if (v2gKeyInfoType_MgmtData_currArrayIndex < v2gKeyInfoType->MgmtData.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 4, 6);
- if(errn == 0) {
- /* First(xsi:type)StartTag[CHARACTERS[STRING]] */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- if(errn == 0) {
- /* encode string as string table miss (+2 len)*/
- errn = encodeUnsignedInteger16(stream, (uint16_t)(v2gKeyInfoType->MgmtData.array[v2gKeyInfoType_MgmtData_currArrayIndex].charactersLen + 2));
- if (errn == 0) {
- errn = encodeCharacters(stream, v2gKeyInfoType->MgmtData.array[v2gKeyInfoType_MgmtData_currArrayIndex].characters, v2gKeyInfoType->MgmtData.array[v2gKeyInfoType_MgmtData_currArrayIndex].charactersLen);
- v2gKeyInfoType_MgmtData_currArrayIndex++;
- }
- /* valid EE */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- }
- }
- grammarID = 2153;
- } else if (1==0) {
- errn = EXI_UNSUPPORTED_EVENT_CODE_CHARACTERISTICS;
- grammarID = 2153;
- } else if ( v2gKeyInfoType->ANY_isUsed == 0u || wcDone ) {
- errn = encodeNBitUnsignedInteger(stream, 4, 8);
- if(errn == 0) {
- done = 1;
- }
- grammarID = 3;
- } else if ( v2gKeyInfoType->ANY_isUsed == 1u ) {
- errn = encodeNBitUnsignedInteger(stream, 4, 9);
- if(errn == 0) {
- /* encode string as string table miss (+2 len)*/
- errn = encodeUnsignedInteger16(stream, (uint16_t)(v2gKeyInfoType->ANY.charactersLen + 2));
- if (errn == 0) {
- errn = encodeCharacters(stream, v2gKeyInfoType->ANY.characters, v2gKeyInfoType->ANY.charactersLen);
- }
- }
- wcDone = 1;
- grammarID = 2153;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 2154:
- /* Element[START_ELEMENT({http://www.w3.org/2000/09/xmldsig#}KeyName), START_ELEMENT({http://www.w3.org/2000/09/xmldsig#}KeyValue), START_ELEMENT({http://www.w3.org/2000/09/xmldsig#}RetrievalMethod), START_ELEMENT({http://www.w3.org/2000/09/xmldsig#}X509Data), START_ELEMENT({http://www.w3.org/2000/09/xmldsig#}PGPData), START_ELEMENT({http://www.w3.org/2000/09/xmldsig#}SPKIData), START_ELEMENT({http://www.w3.org/2000/09/xmldsig#}MgmtData), START_ELEMENT_GENERIC, CHARACTERS_GENERIC[STRING]] */
- if (v2gKeyInfoType_KeyName_currArrayIndex < v2gKeyInfoType->KeyName.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 4, 0);
- if(errn == 0) {
- /* First(xsi:type)StartTag[CHARACTERS[STRING]] */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- if(errn == 0) {
- /* encode string as string table miss (+2 len)*/
- errn = encodeUnsignedInteger16(stream, (uint16_t)(v2gKeyInfoType->KeyName.array[v2gKeyInfoType_KeyName_currArrayIndex].charactersLen + 2));
- if (errn == 0) {
- errn = encodeCharacters(stream, v2gKeyInfoType->KeyName.array[v2gKeyInfoType_KeyName_currArrayIndex].characters, v2gKeyInfoType->KeyName.array[v2gKeyInfoType_KeyName_currArrayIndex].charactersLen);
- v2gKeyInfoType_KeyName_currArrayIndex++;
- }
- /* valid EE */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- }
- }
- grammarID = 2153;
- } else if (v2gKeyInfoType_KeyValue_currArrayIndex < v2gKeyInfoType->KeyValue.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 4, 1);
- if(errn == 0) {
- errn = encode_v2gKeyValueType(stream, &v2gKeyInfoType->KeyValue.array [v2gKeyInfoType_KeyValue_currArrayIndex++]);
- }
- grammarID = 2153;
- } else if (v2gKeyInfoType_RetrievalMethod_currArrayIndex < v2gKeyInfoType->RetrievalMethod.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 4, 2);
- if(errn == 0) {
- errn = encode_v2gRetrievalMethodType(stream, &v2gKeyInfoType->RetrievalMethod.array [v2gKeyInfoType_RetrievalMethod_currArrayIndex++]);
- }
- grammarID = 2153;
- } else if (v2gKeyInfoType_X509Data_currArrayIndex < v2gKeyInfoType->X509Data.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 4, 3);
- if(errn == 0) {
- errn = encode_v2gX509DataType(stream, &v2gKeyInfoType->X509Data.array [v2gKeyInfoType_X509Data_currArrayIndex++]);
- }
- grammarID = 2153;
- } else if (v2gKeyInfoType_PGPData_currArrayIndex < v2gKeyInfoType->PGPData.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 4, 4);
- if(errn == 0) {
- errn = encode_v2gPGPDataType(stream, &v2gKeyInfoType->PGPData.array [v2gKeyInfoType_PGPData_currArrayIndex++]);
- }
- grammarID = 2153;
- } else if (v2gKeyInfoType_SPKIData_currArrayIndex < v2gKeyInfoType->SPKIData.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 4, 5);
- if(errn == 0) {
- errn = encode_v2gSPKIDataType(stream, &v2gKeyInfoType->SPKIData.array [v2gKeyInfoType_SPKIData_currArrayIndex++]);
- }
- grammarID = 2153;
- } else if (v2gKeyInfoType_MgmtData_currArrayIndex < v2gKeyInfoType->MgmtData.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 4, 6);
- if(errn == 0) {
- /* First(xsi:type)StartTag[CHARACTERS[STRING]] */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- if(errn == 0) {
- /* encode string as string table miss (+2 len)*/
- errn = encodeUnsignedInteger16(stream, (uint16_t)(v2gKeyInfoType->MgmtData.array[v2gKeyInfoType_MgmtData_currArrayIndex].charactersLen + 2));
- if (errn == 0) {
- errn = encodeCharacters(stream, v2gKeyInfoType->MgmtData.array[v2gKeyInfoType_MgmtData_currArrayIndex].characters, v2gKeyInfoType->MgmtData.array[v2gKeyInfoType_MgmtData_currArrayIndex].charactersLen);
- v2gKeyInfoType_MgmtData_currArrayIndex++;
- }
- /* valid EE */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- }
- }
- grammarID = 2153;
- } else if (1==0) {
- errn = EXI_UNSUPPORTED_EVENT_CODE_CHARACTERISTICS;
- grammarID = 2153;
- } else if ( v2gKeyInfoType->ANY_isUsed == 1u ) {
- errn = encodeNBitUnsignedInteger(stream, 4, 8);
- if(errn == 0) {
- /* encode string as string table miss (+2 len)*/
- errn = encodeUnsignedInteger16(stream, (uint16_t)(v2gKeyInfoType->ANY.charactersLen + 2));
- if (errn == 0) {
- errn = encodeCharacters(stream, v2gKeyInfoType->ANY.characters, v2gKeyInfoType->ANY.charactersLen);
- }
- }
- wcDone = 1;
- grammarID = 2154;
- } 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:2016:MsgBody,WeldingDetectionResType', base type name='V2GResponseType', content type='ELEMENT', isAbstract='false', hasTypeId='false', final='0', block='0', particle='(("urn:iso:15118:2:2016:MsgBody":ResponseCode,"urn:iso:15118:2:2016:MsgBody":EVSEStatus{0-1}),("urn:iso:15118:2:2016:MsgBody":EVSEPresentVoltage))', derivedBy='EXTENSION'. */
-static int encode_v2gWeldingDetectionResType(bitstream_t* stream, struct v2gWeldingDetectionResType* v2gWeldingDetectionResType) {
- int grammarID = 1575;
- int done = 0;
-
-
- while(!done) {
- switch(grammarID) {
- case 1575:
- /* FirstStartTag[START_ELEMENT({urn:iso:15118:2:2016:MsgBody}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, 5, v2gWeldingDetectionResType->ResponseCode);
- /* valid EE */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- }
- }
- grammarID = 1576;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 1576:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgBody}EVSEStatus), START_ELEMENT({urn:iso:15118:2:2016:MsgBody}EVSEPresentVoltage)] */
- if ( v2gWeldingDetectionResType->EVSEStatus_isUsed == 1u ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- errn = encode_v2gEVSEStatusType(stream, &v2gWeldingDetectionResType->EVSEStatus );
- }
- grammarID = 1577;
- } else if ( 1 == 1 ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- errn = encode_v2gPhysicalValueType(stream, &v2gWeldingDetectionResType->EVSEPresentVoltage );
- }
- grammarID = 2;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 1577:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgBody}EVSEPresentVoltage)] */
- if ( 1 == 1 ) {
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- if(errn == 0) {
- errn = encode_v2gPhysicalValueType(stream, &v2gWeldingDetectionResType->EVSEPresentVoltage );
- }
- grammarID = 2;
- } 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:2016:MsgDataTypes,PhysicalValueType', base type name='anyType', content type='ELEMENT', isAbstract='false', hasTypeId='false', final='0', block='0', particle='("urn:iso:15118:2:2016:MsgDataTypes":Exponent,"urn:iso:15118:2:2016:MsgDataTypes":Value)', derivedBy='RESTRICTION'. */
-static int encode_v2gPhysicalValueType(bitstream_t* stream, struct v2gPhysicalValueType* v2gPhysicalValueType) {
- int grammarID = 2155;
- int done = 0;
-
-
- while(!done) {
- switch(grammarID) {
- case 2155:
- /* FirstStartTag[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}Exponent)] */
- if ( 1 == 1 ) {
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- if(errn == 0) {
- /* FirstStartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- if(errn == 0) {
- errn = encodeNBitUnsignedInteger(stream, 3, (uint32_t)(v2gPhysicalValueType->Exponent + 3));
- /* valid EE */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- }
- }
- grammarID = 2156;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 2156:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}Value)] */
- if ( 1 == 1 ) {
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- if(errn == 0) {
- /* First(xsi:type)StartTag[CHARACTERS[INTEGER]] */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- if(errn == 0) {
- errn = encodeInteger16(stream, v2gPhysicalValueType->Value);
- /* valid EE */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- }
- }
- grammarID = 2;
- } 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:2016:MsgBody,PaymentServiceSelectionReqType', base type name='BodyBaseType', content type='ELEMENT', isAbstract='false', hasTypeId='false', final='0', block='0', particle='("urn:iso:15118:2:2016:MsgBody":SelectedPaymentOption,"urn:iso:15118:2:2016:MsgBody":SelectedEnergyTransferService,"urn:iso:15118:2:2016:MsgBody":SelectedVASList{0-1})', derivedBy='EXTENSION'. */
-static int encode_v2gPaymentServiceSelectionReqType(bitstream_t* stream, struct v2gPaymentServiceSelectionReqType* v2gPaymentServiceSelectionReqType) {
- int grammarID = 2157;
- int done = 0;
-
-
- while(!done) {
- switch(grammarID) {
- case 2157:
- /* FirstStartTag[START_ELEMENT({urn:iso:15118:2:2016:MsgBody}SelectedPaymentOption)] */
- 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, 1, v2gPaymentServiceSelectionReqType->SelectedPaymentOption);
- /* valid EE */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- }
- }
- grammarID = 2158;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 2158:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgBody}SelectedEnergyTransferService)] */
- if ( 1 == 1 ) {
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- if(errn == 0) {
- errn = encode_v2gSelectedServiceType(stream, &v2gPaymentServiceSelectionReqType->SelectedEnergyTransferService );
- }
- grammarID = 2159;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 2159:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgBody}SelectedVASList), END_ELEMENT] */
- if ( v2gPaymentServiceSelectionReqType->SelectedVASList_isUsed == 1u ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- errn = encode_v2gSelectedServiceListType(stream, &v2gPaymentServiceSelectionReqType->SelectedVASList );
- }
- 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:2016:MsgDataTypes,SensorListType', base type name='anyType', content type='ELEMENT', isAbstract='false', hasTypeId='false', final='0', block='0', particle='("urn:iso:15118:2:2016:MsgDataTypes":Sensor{1-255})', derivedBy='RESTRICTION'. */
-static int encode_v2gSensorListType(bitstream_t* stream, struct v2gSensorListType* v2gSensorListType) {
- int grammarID = 2160;
- int done = 0;
-
- unsigned int v2gSensorListType_Sensor_currArrayIndex = 0;
-
- while(!done) {
- switch(grammarID) {
- case 2160:
- /* FirstStartTag[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}Sensor)] */
- if (v2gSensorListType_Sensor_currArrayIndex < v2gSensorListType->Sensor.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- if(errn == 0) {
- errn = encode_v2gSensorType(stream, &v2gSensorListType->Sensor.array [v2gSensorListType_Sensor_currArrayIndex++]);
- }
- grammarID = 2161;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 2161:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}Sensor), END_ELEMENT] */
- if (v2gSensorListType_Sensor_currArrayIndex < v2gSensorListType->Sensor.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- errn = encode_v2gSensorType(stream, &v2gSensorListType->Sensor.array [v2gSensorListType_Sensor_currArrayIndex++]);
- }
- grammarID = 2162;
- } else if (1==1) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- done = 1;
- }
- grammarID = 3;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 2162:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}Sensor), END_ELEMENT] */
- if (v2gSensorListType_Sensor_currArrayIndex < v2gSensorListType->Sensor.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- errn = encode_v2gSensorType(stream, &v2gSensorListType->Sensor.array [v2gSensorListType_Sensor_currArrayIndex++]);
- }
- grammarID = 2163;
- } else if (1==1) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- done = 1;
- }
- grammarID = 3;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 2163:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}Sensor), END_ELEMENT] */
- if (v2gSensorListType_Sensor_currArrayIndex < v2gSensorListType->Sensor.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- errn = encode_v2gSensorType(stream, &v2gSensorListType->Sensor.array [v2gSensorListType_Sensor_currArrayIndex++]);
- }
- grammarID = 2164;
- } else if (1==1) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- done = 1;
- }
- grammarID = 3;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 2164:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}Sensor), END_ELEMENT] */
- if (v2gSensorListType_Sensor_currArrayIndex < v2gSensorListType->Sensor.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- errn = encode_v2gSensorType(stream, &v2gSensorListType->Sensor.array [v2gSensorListType_Sensor_currArrayIndex++]);
- }
- grammarID = 2165;
- } else if (1==1) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- done = 1;
- }
- grammarID = 3;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 2165:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}Sensor), END_ELEMENT] */
- if (v2gSensorListType_Sensor_currArrayIndex < v2gSensorListType->Sensor.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- errn = encode_v2gSensorType(stream, &v2gSensorListType->Sensor.array [v2gSensorListType_Sensor_currArrayIndex++]);
- }
- grammarID = 2166;
- } else if (1==1) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- done = 1;
- }
- grammarID = 3;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 2166:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}Sensor), END_ELEMENT] */
- if (v2gSensorListType_Sensor_currArrayIndex < v2gSensorListType->Sensor.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- errn = encode_v2gSensorType(stream, &v2gSensorListType->Sensor.array [v2gSensorListType_Sensor_currArrayIndex++]);
- }
- grammarID = 2167;
- } else if (1==1) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- done = 1;
- }
- grammarID = 3;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 2167:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}Sensor), END_ELEMENT] */
- if (v2gSensorListType_Sensor_currArrayIndex < v2gSensorListType->Sensor.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- errn = encode_v2gSensorType(stream, &v2gSensorListType->Sensor.array [v2gSensorListType_Sensor_currArrayIndex++]);
- }
- grammarID = 2168;
- } else if (1==1) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- done = 1;
- }
- grammarID = 3;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 2168:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}Sensor), END_ELEMENT] */
- if (v2gSensorListType_Sensor_currArrayIndex < v2gSensorListType->Sensor.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- errn = encode_v2gSensorType(stream, &v2gSensorListType->Sensor.array [v2gSensorListType_Sensor_currArrayIndex++]);
- }
- grammarID = 2169;
- } else if (1==1) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- done = 1;
- }
- grammarID = 3;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 2169:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}Sensor), END_ELEMENT] */
- if (v2gSensorListType_Sensor_currArrayIndex < v2gSensorListType->Sensor.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- errn = encode_v2gSensorType(stream, &v2gSensorListType->Sensor.array [v2gSensorListType_Sensor_currArrayIndex++]);
- }
- grammarID = 2170;
- } else if (1==1) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- done = 1;
- }
- grammarID = 3;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 2170:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}Sensor), END_ELEMENT] */
- if (v2gSensorListType_Sensor_currArrayIndex < v2gSensorListType->Sensor.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- errn = encode_v2gSensorType(stream, &v2gSensorListType->Sensor.array [v2gSensorListType_Sensor_currArrayIndex++]);
- }
- grammarID = 2171;
- } else if (1==1) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- done = 1;
- }
- grammarID = 3;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 2171:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}Sensor), END_ELEMENT] */
- if (v2gSensorListType_Sensor_currArrayIndex < v2gSensorListType->Sensor.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- errn = encode_v2gSensorType(stream, &v2gSensorListType->Sensor.array [v2gSensorListType_Sensor_currArrayIndex++]);
- }
- grammarID = 2172;
- } else if (1==1) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- done = 1;
- }
- grammarID = 3;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 2172:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}Sensor), END_ELEMENT] */
- if (v2gSensorListType_Sensor_currArrayIndex < v2gSensorListType->Sensor.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- errn = encode_v2gSensorType(stream, &v2gSensorListType->Sensor.array [v2gSensorListType_Sensor_currArrayIndex++]);
- }
- grammarID = 2173;
- } else if (1==1) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- done = 1;
- }
- grammarID = 3;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 2173:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}Sensor), END_ELEMENT] */
- if (v2gSensorListType_Sensor_currArrayIndex < v2gSensorListType->Sensor.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- errn = encode_v2gSensorType(stream, &v2gSensorListType->Sensor.array [v2gSensorListType_Sensor_currArrayIndex++]);
- }
- grammarID = 2174;
- } else if (1==1) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- done = 1;
- }
- grammarID = 3;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 2174:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}Sensor), END_ELEMENT] */
- if (v2gSensorListType_Sensor_currArrayIndex < v2gSensorListType->Sensor.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- errn = encode_v2gSensorType(stream, &v2gSensorListType->Sensor.array [v2gSensorListType_Sensor_currArrayIndex++]);
- }
- grammarID = 2175;
- } else if (1==1) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- done = 1;
- }
- grammarID = 3;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 2175:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}Sensor), END_ELEMENT] */
- if (v2gSensorListType_Sensor_currArrayIndex < v2gSensorListType->Sensor.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- errn = encode_v2gSensorType(stream, &v2gSensorListType->Sensor.array [v2gSensorListType_Sensor_currArrayIndex++]);
- }
- grammarID = 2176;
- } else if (1==1) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- done = 1;
- }
- grammarID = 3;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 2176:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}Sensor), END_ELEMENT] */
- if (v2gSensorListType_Sensor_currArrayIndex < v2gSensorListType->Sensor.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- errn = encode_v2gSensorType(stream, &v2gSensorListType->Sensor.array [v2gSensorListType_Sensor_currArrayIndex++]);
- }
- grammarID = 2177;
- } else if (1==1) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- done = 1;
- }
- grammarID = 3;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 2177:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}Sensor), END_ELEMENT] */
- if (v2gSensorListType_Sensor_currArrayIndex < v2gSensorListType->Sensor.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- errn = encode_v2gSensorType(stream, &v2gSensorListType->Sensor.array [v2gSensorListType_Sensor_currArrayIndex++]);
- }
- grammarID = 2178;
- } else if (1==1) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- done = 1;
- }
- grammarID = 3;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 2178:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}Sensor), END_ELEMENT] */
- if (v2gSensorListType_Sensor_currArrayIndex < v2gSensorListType->Sensor.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- errn = encode_v2gSensorType(stream, &v2gSensorListType->Sensor.array [v2gSensorListType_Sensor_currArrayIndex++]);
- }
- grammarID = 2179;
- } else if (1==1) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- done = 1;
- }
- grammarID = 3;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 2179:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}Sensor), END_ELEMENT] */
- if (v2gSensorListType_Sensor_currArrayIndex < v2gSensorListType->Sensor.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- errn = encode_v2gSensorType(stream, &v2gSensorListType->Sensor.array [v2gSensorListType_Sensor_currArrayIndex++]);
- }
- grammarID = 2180;
- } else if (1==1) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- done = 1;
- }
- grammarID = 3;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 2180:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}Sensor), END_ELEMENT] */
- if (v2gSensorListType_Sensor_currArrayIndex < v2gSensorListType->Sensor.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- errn = encode_v2gSensorType(stream, &v2gSensorListType->Sensor.array [v2gSensorListType_Sensor_currArrayIndex++]);
- }
- grammarID = 2181;
- } else if (1==1) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- done = 1;
- }
- grammarID = 3;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 2181:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}Sensor), END_ELEMENT] */
- if (v2gSensorListType_Sensor_currArrayIndex < v2gSensorListType->Sensor.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- errn = encode_v2gSensorType(stream, &v2gSensorListType->Sensor.array [v2gSensorListType_Sensor_currArrayIndex++]);
- }
- grammarID = 2182;
- } else if (1==1) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- done = 1;
- }
- grammarID = 3;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 2182:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}Sensor), END_ELEMENT] */
- if (v2gSensorListType_Sensor_currArrayIndex < v2gSensorListType->Sensor.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- errn = encode_v2gSensorType(stream, &v2gSensorListType->Sensor.array [v2gSensorListType_Sensor_currArrayIndex++]);
- }
- grammarID = 2183;
- } else if (1==1) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- done = 1;
- }
- grammarID = 3;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 2183:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}Sensor), END_ELEMENT] */
- if (v2gSensorListType_Sensor_currArrayIndex < v2gSensorListType->Sensor.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- errn = encode_v2gSensorType(stream, &v2gSensorListType->Sensor.array [v2gSensorListType_Sensor_currArrayIndex++]);
- }
- grammarID = 2184;
- } else if (1==1) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- done = 1;
- }
- grammarID = 3;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 2184:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}Sensor), END_ELEMENT] */
- if (v2gSensorListType_Sensor_currArrayIndex < v2gSensorListType->Sensor.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- errn = encode_v2gSensorType(stream, &v2gSensorListType->Sensor.array [v2gSensorListType_Sensor_currArrayIndex++]);
- }
- grammarID = 2185;
- } else if (1==1) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- done = 1;
- }
- grammarID = 3;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 2185:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}Sensor), END_ELEMENT] */
- if (v2gSensorListType_Sensor_currArrayIndex < v2gSensorListType->Sensor.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- errn = encode_v2gSensorType(stream, &v2gSensorListType->Sensor.array [v2gSensorListType_Sensor_currArrayIndex++]);
- }
- grammarID = 2186;
- } else if (1==1) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- done = 1;
- }
- grammarID = 3;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 2186:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}Sensor), END_ELEMENT] */
- if (v2gSensorListType_Sensor_currArrayIndex < v2gSensorListType->Sensor.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- errn = encode_v2gSensorType(stream, &v2gSensorListType->Sensor.array [v2gSensorListType_Sensor_currArrayIndex++]);
- }
- grammarID = 2187;
- } else if (1==1) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- done = 1;
- }
- grammarID = 3;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 2187:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}Sensor), END_ELEMENT] */
- if (v2gSensorListType_Sensor_currArrayIndex < v2gSensorListType->Sensor.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- errn = encode_v2gSensorType(stream, &v2gSensorListType->Sensor.array [v2gSensorListType_Sensor_currArrayIndex++]);
- }
- grammarID = 2188;
- } else if (1==1) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- done = 1;
- }
- grammarID = 3;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 2188:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}Sensor), END_ELEMENT] */
- if (v2gSensorListType_Sensor_currArrayIndex < v2gSensorListType->Sensor.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- errn = encode_v2gSensorType(stream, &v2gSensorListType->Sensor.array [v2gSensorListType_Sensor_currArrayIndex++]);
- }
- grammarID = 2189;
- } else if (1==1) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- done = 1;
- }
- grammarID = 3;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 2189:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}Sensor), END_ELEMENT] */
- if (v2gSensorListType_Sensor_currArrayIndex < v2gSensorListType->Sensor.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- errn = encode_v2gSensorType(stream, &v2gSensorListType->Sensor.array [v2gSensorListType_Sensor_currArrayIndex++]);
- }
- grammarID = 2190;
- } else if (1==1) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- done = 1;
- }
- grammarID = 3;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 2190:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}Sensor), END_ELEMENT] */
- if (v2gSensorListType_Sensor_currArrayIndex < v2gSensorListType->Sensor.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- errn = encode_v2gSensorType(stream, &v2gSensorListType->Sensor.array [v2gSensorListType_Sensor_currArrayIndex++]);
- }
- grammarID = 2191;
- } else if (1==1) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- done = 1;
- }
- grammarID = 3;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 2191:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}Sensor), END_ELEMENT] */
- if (v2gSensorListType_Sensor_currArrayIndex < v2gSensorListType->Sensor.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- errn = encode_v2gSensorType(stream, &v2gSensorListType->Sensor.array [v2gSensorListType_Sensor_currArrayIndex++]);
- }
- grammarID = 2192;
- } else if (1==1) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- done = 1;
- }
- grammarID = 3;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 2192:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}Sensor), END_ELEMENT] */
- if (v2gSensorListType_Sensor_currArrayIndex < v2gSensorListType->Sensor.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- errn = encode_v2gSensorType(stream, &v2gSensorListType->Sensor.array [v2gSensorListType_Sensor_currArrayIndex++]);
- }
- grammarID = 2193;
- } else if (1==1) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- done = 1;
- }
- grammarID = 3;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 2193:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}Sensor), END_ELEMENT] */
- if (v2gSensorListType_Sensor_currArrayIndex < v2gSensorListType->Sensor.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- errn = encode_v2gSensorType(stream, &v2gSensorListType->Sensor.array [v2gSensorListType_Sensor_currArrayIndex++]);
- }
- grammarID = 2194;
- } else if (1==1) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- done = 1;
- }
- grammarID = 3;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 2194:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}Sensor), END_ELEMENT] */
- if (v2gSensorListType_Sensor_currArrayIndex < v2gSensorListType->Sensor.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- errn = encode_v2gSensorType(stream, &v2gSensorListType->Sensor.array [v2gSensorListType_Sensor_currArrayIndex++]);
- }
- grammarID = 2195;
- } else if (1==1) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- done = 1;
- }
- grammarID = 3;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 2195:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}Sensor), END_ELEMENT] */
- if (v2gSensorListType_Sensor_currArrayIndex < v2gSensorListType->Sensor.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- errn = encode_v2gSensorType(stream, &v2gSensorListType->Sensor.array [v2gSensorListType_Sensor_currArrayIndex++]);
- }
- grammarID = 2196;
- } else if (1==1) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- done = 1;
- }
- grammarID = 3;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 2196:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}Sensor), END_ELEMENT] */
- if (v2gSensorListType_Sensor_currArrayIndex < v2gSensorListType->Sensor.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- errn = encode_v2gSensorType(stream, &v2gSensorListType->Sensor.array [v2gSensorListType_Sensor_currArrayIndex++]);
- }
- grammarID = 2197;
- } else if (1==1) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- done = 1;
- }
- grammarID = 3;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 2197:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}Sensor), END_ELEMENT] */
- if (v2gSensorListType_Sensor_currArrayIndex < v2gSensorListType->Sensor.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- errn = encode_v2gSensorType(stream, &v2gSensorListType->Sensor.array [v2gSensorListType_Sensor_currArrayIndex++]);
- }
- grammarID = 2198;
- } else if (1==1) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- done = 1;
- }
- grammarID = 3;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 2198:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}Sensor), END_ELEMENT] */
- if (v2gSensorListType_Sensor_currArrayIndex < v2gSensorListType->Sensor.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- errn = encode_v2gSensorType(stream, &v2gSensorListType->Sensor.array [v2gSensorListType_Sensor_currArrayIndex++]);
- }
- grammarID = 2199;
- } else if (1==1) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- done = 1;
- }
- grammarID = 3;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 2199:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}Sensor), END_ELEMENT] */
- if (v2gSensorListType_Sensor_currArrayIndex < v2gSensorListType->Sensor.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- errn = encode_v2gSensorType(stream, &v2gSensorListType->Sensor.array [v2gSensorListType_Sensor_currArrayIndex++]);
- }
- grammarID = 2200;
- } else if (1==1) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- done = 1;
- }
- grammarID = 3;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 2200:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}Sensor), END_ELEMENT] */
- if (v2gSensorListType_Sensor_currArrayIndex < v2gSensorListType->Sensor.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- errn = encode_v2gSensorType(stream, &v2gSensorListType->Sensor.array [v2gSensorListType_Sensor_currArrayIndex++]);
- }
- grammarID = 2201;
- } else if (1==1) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- done = 1;
- }
- grammarID = 3;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 2201:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}Sensor), END_ELEMENT] */
- if (v2gSensorListType_Sensor_currArrayIndex < v2gSensorListType->Sensor.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- errn = encode_v2gSensorType(stream, &v2gSensorListType->Sensor.array [v2gSensorListType_Sensor_currArrayIndex++]);
- }
- grammarID = 2202;
- } else if (1==1) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- done = 1;
- }
- grammarID = 3;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 2202:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}Sensor), END_ELEMENT] */
- if (v2gSensorListType_Sensor_currArrayIndex < v2gSensorListType->Sensor.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- errn = encode_v2gSensorType(stream, &v2gSensorListType->Sensor.array [v2gSensorListType_Sensor_currArrayIndex++]);
- }
- grammarID = 2203;
- } else if (1==1) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- done = 1;
- }
- grammarID = 3;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 2203:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}Sensor), END_ELEMENT] */
- if (v2gSensorListType_Sensor_currArrayIndex < v2gSensorListType->Sensor.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- errn = encode_v2gSensorType(stream, &v2gSensorListType->Sensor.array [v2gSensorListType_Sensor_currArrayIndex++]);
- }
- grammarID = 2204;
- } else if (1==1) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- done = 1;
- }
- grammarID = 3;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 2204:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}Sensor), END_ELEMENT] */
- if (v2gSensorListType_Sensor_currArrayIndex < v2gSensorListType->Sensor.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- errn = encode_v2gSensorType(stream, &v2gSensorListType->Sensor.array [v2gSensorListType_Sensor_currArrayIndex++]);
- }
- grammarID = 2205;
- } else if (1==1) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- done = 1;
- }
- grammarID = 3;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 2205:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}Sensor), END_ELEMENT] */
- if (v2gSensorListType_Sensor_currArrayIndex < v2gSensorListType->Sensor.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- errn = encode_v2gSensorType(stream, &v2gSensorListType->Sensor.array [v2gSensorListType_Sensor_currArrayIndex++]);
- }
- grammarID = 2206;
- } else if (1==1) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- done = 1;
- }
- grammarID = 3;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 2206:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}Sensor), END_ELEMENT] */
- if (v2gSensorListType_Sensor_currArrayIndex < v2gSensorListType->Sensor.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- errn = encode_v2gSensorType(stream, &v2gSensorListType->Sensor.array [v2gSensorListType_Sensor_currArrayIndex++]);
- }
- grammarID = 2207;
- } else if (1==1) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- done = 1;
- }
- grammarID = 3;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 2207:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}Sensor), END_ELEMENT] */
- if (v2gSensorListType_Sensor_currArrayIndex < v2gSensorListType->Sensor.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- errn = encode_v2gSensorType(stream, &v2gSensorListType->Sensor.array [v2gSensorListType_Sensor_currArrayIndex++]);
- }
- grammarID = 2208;
- } else if (1==1) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- done = 1;
- }
- grammarID = 3;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 2208:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}Sensor), END_ELEMENT] */
- if (v2gSensorListType_Sensor_currArrayIndex < v2gSensorListType->Sensor.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- errn = encode_v2gSensorType(stream, &v2gSensorListType->Sensor.array [v2gSensorListType_Sensor_currArrayIndex++]);
- }
- grammarID = 2209;
- } else if (1==1) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- done = 1;
- }
- grammarID = 3;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 2209:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}Sensor), END_ELEMENT] */
- if (v2gSensorListType_Sensor_currArrayIndex < v2gSensorListType->Sensor.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- errn = encode_v2gSensorType(stream, &v2gSensorListType->Sensor.array [v2gSensorListType_Sensor_currArrayIndex++]);
- }
- grammarID = 2210;
- } else if (1==1) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- done = 1;
- }
- grammarID = 3;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 2210:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}Sensor), END_ELEMENT] */
- if (v2gSensorListType_Sensor_currArrayIndex < v2gSensorListType->Sensor.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- errn = encode_v2gSensorType(stream, &v2gSensorListType->Sensor.array [v2gSensorListType_Sensor_currArrayIndex++]);
- }
- grammarID = 2211;
- } else if (1==1) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- done = 1;
- }
- grammarID = 3;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 2211:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}Sensor), END_ELEMENT] */
- if (v2gSensorListType_Sensor_currArrayIndex < v2gSensorListType->Sensor.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- errn = encode_v2gSensorType(stream, &v2gSensorListType->Sensor.array [v2gSensorListType_Sensor_currArrayIndex++]);
- }
- grammarID = 2212;
- } else if (1==1) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- done = 1;
- }
- grammarID = 3;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 2212:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}Sensor), END_ELEMENT] */
- if (v2gSensorListType_Sensor_currArrayIndex < v2gSensorListType->Sensor.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- errn = encode_v2gSensorType(stream, &v2gSensorListType->Sensor.array [v2gSensorListType_Sensor_currArrayIndex++]);
- }
- grammarID = 2213;
- } else if (1==1) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- done = 1;
- }
- grammarID = 3;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 2213:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}Sensor), END_ELEMENT] */
- if (v2gSensorListType_Sensor_currArrayIndex < v2gSensorListType->Sensor.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- errn = encode_v2gSensorType(stream, &v2gSensorListType->Sensor.array [v2gSensorListType_Sensor_currArrayIndex++]);
- }
- grammarID = 2214;
- } else if (1==1) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- done = 1;
- }
- grammarID = 3;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 2214:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}Sensor), END_ELEMENT] */
- if (v2gSensorListType_Sensor_currArrayIndex < v2gSensorListType->Sensor.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- errn = encode_v2gSensorType(stream, &v2gSensorListType->Sensor.array [v2gSensorListType_Sensor_currArrayIndex++]);
- }
- grammarID = 2215;
- } else if (1==1) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- done = 1;
- }
- grammarID = 3;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 2215:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}Sensor), END_ELEMENT] */
- if (v2gSensorListType_Sensor_currArrayIndex < v2gSensorListType->Sensor.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- errn = encode_v2gSensorType(stream, &v2gSensorListType->Sensor.array [v2gSensorListType_Sensor_currArrayIndex++]);
- }
- grammarID = 2216;
- } else if (1==1) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- done = 1;
- }
- grammarID = 3;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 2216:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}Sensor), END_ELEMENT] */
- if (v2gSensorListType_Sensor_currArrayIndex < v2gSensorListType->Sensor.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- errn = encode_v2gSensorType(stream, &v2gSensorListType->Sensor.array [v2gSensorListType_Sensor_currArrayIndex++]);
- }
- grammarID = 2217;
- } else if (1==1) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- done = 1;
- }
- grammarID = 3;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 2217:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}Sensor), END_ELEMENT] */
- if (v2gSensorListType_Sensor_currArrayIndex < v2gSensorListType->Sensor.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- errn = encode_v2gSensorType(stream, &v2gSensorListType->Sensor.array [v2gSensorListType_Sensor_currArrayIndex++]);
- }
- grammarID = 2218;
- } else if (1==1) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- done = 1;
- }
- grammarID = 3;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 2218:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}Sensor), END_ELEMENT] */
- if (v2gSensorListType_Sensor_currArrayIndex < v2gSensorListType->Sensor.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- errn = encode_v2gSensorType(stream, &v2gSensorListType->Sensor.array [v2gSensorListType_Sensor_currArrayIndex++]);
- }
- grammarID = 2219;
- } else if (1==1) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- done = 1;
- }
- grammarID = 3;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 2219:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}Sensor), END_ELEMENT] */
- if (v2gSensorListType_Sensor_currArrayIndex < v2gSensorListType->Sensor.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- errn = encode_v2gSensorType(stream, &v2gSensorListType->Sensor.array [v2gSensorListType_Sensor_currArrayIndex++]);
- }
- grammarID = 2220;
- } else if (1==1) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- done = 1;
- }
- grammarID = 3;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 2220:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}Sensor), END_ELEMENT] */
- if (v2gSensorListType_Sensor_currArrayIndex < v2gSensorListType->Sensor.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- errn = encode_v2gSensorType(stream, &v2gSensorListType->Sensor.array [v2gSensorListType_Sensor_currArrayIndex++]);
- }
- grammarID = 2221;
- } else if (1==1) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- done = 1;
- }
- grammarID = 3;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 2221:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}Sensor), END_ELEMENT] */
- if (v2gSensorListType_Sensor_currArrayIndex < v2gSensorListType->Sensor.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- errn = encode_v2gSensorType(stream, &v2gSensorListType->Sensor.array [v2gSensorListType_Sensor_currArrayIndex++]);
- }
- grammarID = 2222;
- } else if (1==1) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- done = 1;
- }
- grammarID = 3;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 2222:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}Sensor), END_ELEMENT] */
- if (v2gSensorListType_Sensor_currArrayIndex < v2gSensorListType->Sensor.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- errn = encode_v2gSensorType(stream, &v2gSensorListType->Sensor.array [v2gSensorListType_Sensor_currArrayIndex++]);
- }
- grammarID = 2223;
- } else if (1==1) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- done = 1;
- }
- grammarID = 3;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 2223:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}Sensor), END_ELEMENT] */
- if (v2gSensorListType_Sensor_currArrayIndex < v2gSensorListType->Sensor.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- errn = encode_v2gSensorType(stream, &v2gSensorListType->Sensor.array [v2gSensorListType_Sensor_currArrayIndex++]);
- }
- grammarID = 2224;
- } else if (1==1) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- done = 1;
- }
- grammarID = 3;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 2224:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}Sensor), END_ELEMENT] */
- if (v2gSensorListType_Sensor_currArrayIndex < v2gSensorListType->Sensor.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- errn = encode_v2gSensorType(stream, &v2gSensorListType->Sensor.array [v2gSensorListType_Sensor_currArrayIndex++]);
- }
- grammarID = 2225;
- } else if (1==1) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- done = 1;
- }
- grammarID = 3;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 2225:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}Sensor), END_ELEMENT] */
- if (v2gSensorListType_Sensor_currArrayIndex < v2gSensorListType->Sensor.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- errn = encode_v2gSensorType(stream, &v2gSensorListType->Sensor.array [v2gSensorListType_Sensor_currArrayIndex++]);
- }
- grammarID = 2226;
- } else if (1==1) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- done = 1;
- }
- grammarID = 3;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 2226:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}Sensor), END_ELEMENT] */
- if (v2gSensorListType_Sensor_currArrayIndex < v2gSensorListType->Sensor.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- errn = encode_v2gSensorType(stream, &v2gSensorListType->Sensor.array [v2gSensorListType_Sensor_currArrayIndex++]);
- }
- grammarID = 2227;
- } else if (1==1) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- done = 1;
- }
- grammarID = 3;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 2227:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}Sensor), END_ELEMENT] */
- if (v2gSensorListType_Sensor_currArrayIndex < v2gSensorListType->Sensor.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- errn = encode_v2gSensorType(stream, &v2gSensorListType->Sensor.array [v2gSensorListType_Sensor_currArrayIndex++]);
- }
- grammarID = 2228;
- } else if (1==1) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- done = 1;
- }
- grammarID = 3;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 2228:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}Sensor), END_ELEMENT] */
- if (v2gSensorListType_Sensor_currArrayIndex < v2gSensorListType->Sensor.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- errn = encode_v2gSensorType(stream, &v2gSensorListType->Sensor.array [v2gSensorListType_Sensor_currArrayIndex++]);
- }
- grammarID = 2229;
- } else if (1==1) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- done = 1;
- }
- grammarID = 3;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 2229:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}Sensor), END_ELEMENT] */
- if (v2gSensorListType_Sensor_currArrayIndex < v2gSensorListType->Sensor.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- errn = encode_v2gSensorType(stream, &v2gSensorListType->Sensor.array [v2gSensorListType_Sensor_currArrayIndex++]);
- }
- grammarID = 2230;
- } else if (1==1) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- done = 1;
- }
- grammarID = 3;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 2230:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}Sensor), END_ELEMENT] */
- if (v2gSensorListType_Sensor_currArrayIndex < v2gSensorListType->Sensor.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- errn = encode_v2gSensorType(stream, &v2gSensorListType->Sensor.array [v2gSensorListType_Sensor_currArrayIndex++]);
- }
- grammarID = 2231;
- } else if (1==1) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- done = 1;
- }
- grammarID = 3;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 2231:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}Sensor), END_ELEMENT] */
- if (v2gSensorListType_Sensor_currArrayIndex < v2gSensorListType->Sensor.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- errn = encode_v2gSensorType(stream, &v2gSensorListType->Sensor.array [v2gSensorListType_Sensor_currArrayIndex++]);
- }
- grammarID = 2232;
- } else if (1==1) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- done = 1;
- }
- grammarID = 3;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 2232:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}Sensor), END_ELEMENT] */
- if (v2gSensorListType_Sensor_currArrayIndex < v2gSensorListType->Sensor.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- errn = encode_v2gSensorType(stream, &v2gSensorListType->Sensor.array [v2gSensorListType_Sensor_currArrayIndex++]);
- }
- grammarID = 2233;
- } else if (1==1) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- done = 1;
- }
- grammarID = 3;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 2233:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}Sensor), END_ELEMENT] */
- if (v2gSensorListType_Sensor_currArrayIndex < v2gSensorListType->Sensor.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- errn = encode_v2gSensorType(stream, &v2gSensorListType->Sensor.array [v2gSensorListType_Sensor_currArrayIndex++]);
- }
- grammarID = 2234;
- } else if (1==1) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- done = 1;
- }
- grammarID = 3;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 2234:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}Sensor), END_ELEMENT] */
- if (v2gSensorListType_Sensor_currArrayIndex < v2gSensorListType->Sensor.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- errn = encode_v2gSensorType(stream, &v2gSensorListType->Sensor.array [v2gSensorListType_Sensor_currArrayIndex++]);
- }
- grammarID = 2235;
- } else if (1==1) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- done = 1;
- }
- grammarID = 3;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 2235:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}Sensor), END_ELEMENT] */
- if (v2gSensorListType_Sensor_currArrayIndex < v2gSensorListType->Sensor.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- errn = encode_v2gSensorType(stream, &v2gSensorListType->Sensor.array [v2gSensorListType_Sensor_currArrayIndex++]);
- }
- grammarID = 2236;
- } else if (1==1) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- done = 1;
- }
- grammarID = 3;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 2236:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}Sensor), END_ELEMENT] */
- if (v2gSensorListType_Sensor_currArrayIndex < v2gSensorListType->Sensor.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- errn = encode_v2gSensorType(stream, &v2gSensorListType->Sensor.array [v2gSensorListType_Sensor_currArrayIndex++]);
- }
- grammarID = 2237;
- } else if (1==1) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- done = 1;
- }
- grammarID = 3;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 2237:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}Sensor), END_ELEMENT] */
- if (v2gSensorListType_Sensor_currArrayIndex < v2gSensorListType->Sensor.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- errn = encode_v2gSensorType(stream, &v2gSensorListType->Sensor.array [v2gSensorListType_Sensor_currArrayIndex++]);
- }
- grammarID = 2238;
- } else if (1==1) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- done = 1;
- }
- grammarID = 3;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 2238:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}Sensor), END_ELEMENT] */
- if (v2gSensorListType_Sensor_currArrayIndex < v2gSensorListType->Sensor.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- errn = encode_v2gSensorType(stream, &v2gSensorListType->Sensor.array [v2gSensorListType_Sensor_currArrayIndex++]);
- }
- grammarID = 2239;
- } else if (1==1) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- done = 1;
- }
- grammarID = 3;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 2239:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}Sensor), END_ELEMENT] */
- if (v2gSensorListType_Sensor_currArrayIndex < v2gSensorListType->Sensor.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- errn = encode_v2gSensorType(stream, &v2gSensorListType->Sensor.array [v2gSensorListType_Sensor_currArrayIndex++]);
- }
- grammarID = 2240;
- } else if (1==1) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- done = 1;
- }
- grammarID = 3;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 2240:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}Sensor), END_ELEMENT] */
- if (v2gSensorListType_Sensor_currArrayIndex < v2gSensorListType->Sensor.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- errn = encode_v2gSensorType(stream, &v2gSensorListType->Sensor.array [v2gSensorListType_Sensor_currArrayIndex++]);
- }
- grammarID = 2241;
- } else if (1==1) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- done = 1;
- }
- grammarID = 3;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 2241:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}Sensor), END_ELEMENT] */
- if (v2gSensorListType_Sensor_currArrayIndex < v2gSensorListType->Sensor.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- errn = encode_v2gSensorType(stream, &v2gSensorListType->Sensor.array [v2gSensorListType_Sensor_currArrayIndex++]);
- }
- grammarID = 2242;
- } else if (1==1) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- done = 1;
- }
- grammarID = 3;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 2242:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}Sensor), END_ELEMENT] */
- if (v2gSensorListType_Sensor_currArrayIndex < v2gSensorListType->Sensor.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- errn = encode_v2gSensorType(stream, &v2gSensorListType->Sensor.array [v2gSensorListType_Sensor_currArrayIndex++]);
- }
- grammarID = 2243;
- } else if (1==1) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- done = 1;
- }
- grammarID = 3;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 2243:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}Sensor), END_ELEMENT] */
- if (v2gSensorListType_Sensor_currArrayIndex < v2gSensorListType->Sensor.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- errn = encode_v2gSensorType(stream, &v2gSensorListType->Sensor.array [v2gSensorListType_Sensor_currArrayIndex++]);
- }
- grammarID = 2244;
- } else if (1==1) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- done = 1;
- }
- grammarID = 3;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 2244:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}Sensor), END_ELEMENT] */
- if (v2gSensorListType_Sensor_currArrayIndex < v2gSensorListType->Sensor.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- errn = encode_v2gSensorType(stream, &v2gSensorListType->Sensor.array [v2gSensorListType_Sensor_currArrayIndex++]);
- }
- grammarID = 2245;
- } else if (1==1) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- done = 1;
- }
- grammarID = 3;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 2245:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}Sensor), END_ELEMENT] */
- if (v2gSensorListType_Sensor_currArrayIndex < v2gSensorListType->Sensor.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- errn = encode_v2gSensorType(stream, &v2gSensorListType->Sensor.array [v2gSensorListType_Sensor_currArrayIndex++]);
- }
- grammarID = 2246;
- } else if (1==1) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- done = 1;
- }
- grammarID = 3;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 2246:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}Sensor), END_ELEMENT] */
- if (v2gSensorListType_Sensor_currArrayIndex < v2gSensorListType->Sensor.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- errn = encode_v2gSensorType(stream, &v2gSensorListType->Sensor.array [v2gSensorListType_Sensor_currArrayIndex++]);
- }
- grammarID = 2247;
- } else if (1==1) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- done = 1;
- }
- grammarID = 3;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 2247:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}Sensor), END_ELEMENT] */
- if (v2gSensorListType_Sensor_currArrayIndex < v2gSensorListType->Sensor.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- errn = encode_v2gSensorType(stream, &v2gSensorListType->Sensor.array [v2gSensorListType_Sensor_currArrayIndex++]);
- }
- grammarID = 2248;
- } else if (1==1) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- done = 1;
- }
- grammarID = 3;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 2248:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}Sensor), END_ELEMENT] */
- if (v2gSensorListType_Sensor_currArrayIndex < v2gSensorListType->Sensor.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- errn = encode_v2gSensorType(stream, &v2gSensorListType->Sensor.array [v2gSensorListType_Sensor_currArrayIndex++]);
- }
- grammarID = 2249;
- } else if (1==1) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- done = 1;
- }
- grammarID = 3;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 2249:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}Sensor), END_ELEMENT] */
- if (v2gSensorListType_Sensor_currArrayIndex < v2gSensorListType->Sensor.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- errn = encode_v2gSensorType(stream, &v2gSensorListType->Sensor.array [v2gSensorListType_Sensor_currArrayIndex++]);
- }
- grammarID = 2250;
- } else if (1==1) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- done = 1;
- }
- grammarID = 3;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 2250:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}Sensor), END_ELEMENT] */
- if (v2gSensorListType_Sensor_currArrayIndex < v2gSensorListType->Sensor.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- errn = encode_v2gSensorType(stream, &v2gSensorListType->Sensor.array [v2gSensorListType_Sensor_currArrayIndex++]);
- }
- grammarID = 2251;
- } else if (1==1) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- done = 1;
- }
- grammarID = 3;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 2251:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}Sensor), END_ELEMENT] */
- if (v2gSensorListType_Sensor_currArrayIndex < v2gSensorListType->Sensor.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- errn = encode_v2gSensorType(stream, &v2gSensorListType->Sensor.array [v2gSensorListType_Sensor_currArrayIndex++]);
- }
- grammarID = 2252;
- } else if (1==1) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- done = 1;
- }
- grammarID = 3;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 2252:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}Sensor), END_ELEMENT] */
- if (v2gSensorListType_Sensor_currArrayIndex < v2gSensorListType->Sensor.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- errn = encode_v2gSensorType(stream, &v2gSensorListType->Sensor.array [v2gSensorListType_Sensor_currArrayIndex++]);
- }
- grammarID = 2253;
- } else if (1==1) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- done = 1;
- }
- grammarID = 3;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 2253:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}Sensor), END_ELEMENT] */
- if (v2gSensorListType_Sensor_currArrayIndex < v2gSensorListType->Sensor.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- errn = encode_v2gSensorType(stream, &v2gSensorListType->Sensor.array [v2gSensorListType_Sensor_currArrayIndex++]);
- }
- grammarID = 2254;
- } else if (1==1) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- done = 1;
- }
- grammarID = 3;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 2254:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}Sensor), END_ELEMENT] */
- if (v2gSensorListType_Sensor_currArrayIndex < v2gSensorListType->Sensor.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- errn = encode_v2gSensorType(stream, &v2gSensorListType->Sensor.array [v2gSensorListType_Sensor_currArrayIndex++]);
- }
- grammarID = 2255;
- } else if (1==1) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- done = 1;
- }
- grammarID = 3;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 2255:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}Sensor), END_ELEMENT] */
- if (v2gSensorListType_Sensor_currArrayIndex < v2gSensorListType->Sensor.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- errn = encode_v2gSensorType(stream, &v2gSensorListType->Sensor.array [v2gSensorListType_Sensor_currArrayIndex++]);
- }
- grammarID = 2256;
- } else if (1==1) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- done = 1;
- }
- grammarID = 3;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 2256:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}Sensor), END_ELEMENT] */
- if (v2gSensorListType_Sensor_currArrayIndex < v2gSensorListType->Sensor.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- errn = encode_v2gSensorType(stream, &v2gSensorListType->Sensor.array [v2gSensorListType_Sensor_currArrayIndex++]);
- }
- grammarID = 2257;
- } else if (1==1) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- done = 1;
- }
- grammarID = 3;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 2257:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}Sensor), END_ELEMENT] */
- if (v2gSensorListType_Sensor_currArrayIndex < v2gSensorListType->Sensor.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- errn = encode_v2gSensorType(stream, &v2gSensorListType->Sensor.array [v2gSensorListType_Sensor_currArrayIndex++]);
- }
- grammarID = 2258;
- } else if (1==1) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- done = 1;
- }
- grammarID = 3;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 2258:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}Sensor), END_ELEMENT] */
- if (v2gSensorListType_Sensor_currArrayIndex < v2gSensorListType->Sensor.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- errn = encode_v2gSensorType(stream, &v2gSensorListType->Sensor.array [v2gSensorListType_Sensor_currArrayIndex++]);
- }
- grammarID = 2259;
- } else if (1==1) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- done = 1;
- }
- grammarID = 3;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 2259:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}Sensor), END_ELEMENT] */
- if (v2gSensorListType_Sensor_currArrayIndex < v2gSensorListType->Sensor.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- errn = encode_v2gSensorType(stream, &v2gSensorListType->Sensor.array [v2gSensorListType_Sensor_currArrayIndex++]);
- }
- grammarID = 2260;
- } else if (1==1) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- done = 1;
- }
- grammarID = 3;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 2260:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}Sensor), END_ELEMENT] */
- if (v2gSensorListType_Sensor_currArrayIndex < v2gSensorListType->Sensor.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- errn = encode_v2gSensorType(stream, &v2gSensorListType->Sensor.array [v2gSensorListType_Sensor_currArrayIndex++]);
- }
- grammarID = 2261;
- } else if (1==1) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- done = 1;
- }
- grammarID = 3;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 2261:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}Sensor), END_ELEMENT] */
- if (v2gSensorListType_Sensor_currArrayIndex < v2gSensorListType->Sensor.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- errn = encode_v2gSensorType(stream, &v2gSensorListType->Sensor.array [v2gSensorListType_Sensor_currArrayIndex++]);
- }
- grammarID = 2262;
- } else if (1==1) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- done = 1;
- }
- grammarID = 3;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 2262:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}Sensor), END_ELEMENT] */
- if (v2gSensorListType_Sensor_currArrayIndex < v2gSensorListType->Sensor.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- errn = encode_v2gSensorType(stream, &v2gSensorListType->Sensor.array [v2gSensorListType_Sensor_currArrayIndex++]);
- }
- grammarID = 2263;
- } else if (1==1) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- done = 1;
- }
- grammarID = 3;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 2263:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}Sensor), END_ELEMENT] */
- if (v2gSensorListType_Sensor_currArrayIndex < v2gSensorListType->Sensor.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- errn = encode_v2gSensorType(stream, &v2gSensorListType->Sensor.array [v2gSensorListType_Sensor_currArrayIndex++]);
- }
- grammarID = 2264;
- } else if (1==1) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- done = 1;
- }
- grammarID = 3;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 2264:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}Sensor), END_ELEMENT] */
- if (v2gSensorListType_Sensor_currArrayIndex < v2gSensorListType->Sensor.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- errn = encode_v2gSensorType(stream, &v2gSensorListType->Sensor.array [v2gSensorListType_Sensor_currArrayIndex++]);
- }
- grammarID = 2265;
- } else if (1==1) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- done = 1;
- }
- grammarID = 3;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 2265:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}Sensor), END_ELEMENT] */
- if (v2gSensorListType_Sensor_currArrayIndex < v2gSensorListType->Sensor.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- errn = encode_v2gSensorType(stream, &v2gSensorListType->Sensor.array [v2gSensorListType_Sensor_currArrayIndex++]);
- }
- grammarID = 2266;
- } else if (1==1) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- done = 1;
- }
- grammarID = 3;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 2266:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}Sensor), END_ELEMENT] */
- if (v2gSensorListType_Sensor_currArrayIndex < v2gSensorListType->Sensor.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- errn = encode_v2gSensorType(stream, &v2gSensorListType->Sensor.array [v2gSensorListType_Sensor_currArrayIndex++]);
- }
- grammarID = 2267;
- } else if (1==1) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- done = 1;
- }
- grammarID = 3;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 2267:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}Sensor), END_ELEMENT] */
- if (v2gSensorListType_Sensor_currArrayIndex < v2gSensorListType->Sensor.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- errn = encode_v2gSensorType(stream, &v2gSensorListType->Sensor.array [v2gSensorListType_Sensor_currArrayIndex++]);
- }
- grammarID = 2268;
- } else if (1==1) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- done = 1;
- }
- grammarID = 3;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 2268:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}Sensor), END_ELEMENT] */
- if (v2gSensorListType_Sensor_currArrayIndex < v2gSensorListType->Sensor.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- errn = encode_v2gSensorType(stream, &v2gSensorListType->Sensor.array [v2gSensorListType_Sensor_currArrayIndex++]);
- }
- grammarID = 2269;
- } else if (1==1) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- done = 1;
- }
- grammarID = 3;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 2269:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}Sensor), END_ELEMENT] */
- if (v2gSensorListType_Sensor_currArrayIndex < v2gSensorListType->Sensor.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- errn = encode_v2gSensorType(stream, &v2gSensorListType->Sensor.array [v2gSensorListType_Sensor_currArrayIndex++]);
- }
- grammarID = 2270;
- } else if (1==1) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- done = 1;
- }
- grammarID = 3;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 2270:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}Sensor), END_ELEMENT] */
- if (v2gSensorListType_Sensor_currArrayIndex < v2gSensorListType->Sensor.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- errn = encode_v2gSensorType(stream, &v2gSensorListType->Sensor.array [v2gSensorListType_Sensor_currArrayIndex++]);
- }
- grammarID = 2271;
- } else if (1==1) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- done = 1;
- }
- grammarID = 3;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 2271:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}Sensor), END_ELEMENT] */
- if (v2gSensorListType_Sensor_currArrayIndex < v2gSensorListType->Sensor.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- errn = encode_v2gSensorType(stream, &v2gSensorListType->Sensor.array [v2gSensorListType_Sensor_currArrayIndex++]);
- }
- grammarID = 2272;
- } else if (1==1) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- done = 1;
- }
- grammarID = 3;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 2272:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}Sensor), END_ELEMENT] */
- if (v2gSensorListType_Sensor_currArrayIndex < v2gSensorListType->Sensor.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- errn = encode_v2gSensorType(stream, &v2gSensorListType->Sensor.array [v2gSensorListType_Sensor_currArrayIndex++]);
- }
- grammarID = 2273;
- } else if (1==1) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- done = 1;
- }
- grammarID = 3;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 2273:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}Sensor), END_ELEMENT] */
- if (v2gSensorListType_Sensor_currArrayIndex < v2gSensorListType->Sensor.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- errn = encode_v2gSensorType(stream, &v2gSensorListType->Sensor.array [v2gSensorListType_Sensor_currArrayIndex++]);
- }
- grammarID = 2274;
- } else if (1==1) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- done = 1;
- }
- grammarID = 3;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 2274:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}Sensor), END_ELEMENT] */
- if (v2gSensorListType_Sensor_currArrayIndex < v2gSensorListType->Sensor.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- errn = encode_v2gSensorType(stream, &v2gSensorListType->Sensor.array [v2gSensorListType_Sensor_currArrayIndex++]);
- }
- grammarID = 2275;
- } else if (1==1) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- done = 1;
- }
- grammarID = 3;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 2275:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}Sensor), END_ELEMENT] */
- if (v2gSensorListType_Sensor_currArrayIndex < v2gSensorListType->Sensor.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- errn = encode_v2gSensorType(stream, &v2gSensorListType->Sensor.array [v2gSensorListType_Sensor_currArrayIndex++]);
- }
- grammarID = 2276;
- } else if (1==1) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- done = 1;
- }
- grammarID = 3;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 2276:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}Sensor), END_ELEMENT] */
- if (v2gSensorListType_Sensor_currArrayIndex < v2gSensorListType->Sensor.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- errn = encode_v2gSensorType(stream, &v2gSensorListType->Sensor.array [v2gSensorListType_Sensor_currArrayIndex++]);
- }
- grammarID = 2277;
- } else if (1==1) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- done = 1;
- }
- grammarID = 3;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 2277:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}Sensor), END_ELEMENT] */
- if (v2gSensorListType_Sensor_currArrayIndex < v2gSensorListType->Sensor.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- errn = encode_v2gSensorType(stream, &v2gSensorListType->Sensor.array [v2gSensorListType_Sensor_currArrayIndex++]);
- }
- grammarID = 2278;
- } else if (1==1) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- done = 1;
- }
- grammarID = 3;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 2278:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}Sensor), END_ELEMENT] */
- if (v2gSensorListType_Sensor_currArrayIndex < v2gSensorListType->Sensor.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- errn = encode_v2gSensorType(stream, &v2gSensorListType->Sensor.array [v2gSensorListType_Sensor_currArrayIndex++]);
- }
- grammarID = 2279;
- } else if (1==1) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- done = 1;
- }
- grammarID = 3;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 2279:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}Sensor), END_ELEMENT] */
- if (v2gSensorListType_Sensor_currArrayIndex < v2gSensorListType->Sensor.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- errn = encode_v2gSensorType(stream, &v2gSensorListType->Sensor.array [v2gSensorListType_Sensor_currArrayIndex++]);
- }
- grammarID = 2280;
- } else if (1==1) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- done = 1;
- }
- grammarID = 3;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 2280:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}Sensor), END_ELEMENT] */
- if (v2gSensorListType_Sensor_currArrayIndex < v2gSensorListType->Sensor.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- errn = encode_v2gSensorType(stream, &v2gSensorListType->Sensor.array [v2gSensorListType_Sensor_currArrayIndex++]);
- }
- grammarID = 2281;
- } else if (1==1) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- done = 1;
- }
- grammarID = 3;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 2281:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}Sensor), END_ELEMENT] */
- if (v2gSensorListType_Sensor_currArrayIndex < v2gSensorListType->Sensor.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- errn = encode_v2gSensorType(stream, &v2gSensorListType->Sensor.array [v2gSensorListType_Sensor_currArrayIndex++]);
- }
- grammarID = 2282;
- } else if (1==1) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- done = 1;
- }
- grammarID = 3;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 2282:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}Sensor), END_ELEMENT] */
- if (v2gSensorListType_Sensor_currArrayIndex < v2gSensorListType->Sensor.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- errn = encode_v2gSensorType(stream, &v2gSensorListType->Sensor.array [v2gSensorListType_Sensor_currArrayIndex++]);
- }
- grammarID = 2283;
- } else if (1==1) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- done = 1;
- }
- grammarID = 3;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 2283:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}Sensor), END_ELEMENT] */
- if (v2gSensorListType_Sensor_currArrayIndex < v2gSensorListType->Sensor.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- errn = encode_v2gSensorType(stream, &v2gSensorListType->Sensor.array [v2gSensorListType_Sensor_currArrayIndex++]);
- }
- grammarID = 2284;
- } else if (1==1) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- done = 1;
- }
- grammarID = 3;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 2284:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}Sensor), END_ELEMENT] */
- if (v2gSensorListType_Sensor_currArrayIndex < v2gSensorListType->Sensor.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- errn = encode_v2gSensorType(stream, &v2gSensorListType->Sensor.array [v2gSensorListType_Sensor_currArrayIndex++]);
- }
- grammarID = 2285;
- } else if (1==1) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- done = 1;
- }
- grammarID = 3;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 2285:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}Sensor), END_ELEMENT] */
- if (v2gSensorListType_Sensor_currArrayIndex < v2gSensorListType->Sensor.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- errn = encode_v2gSensorType(stream, &v2gSensorListType->Sensor.array [v2gSensorListType_Sensor_currArrayIndex++]);
- }
- grammarID = 2286;
- } else if (1==1) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- done = 1;
- }
- grammarID = 3;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 2286:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}Sensor), END_ELEMENT] */
- if (v2gSensorListType_Sensor_currArrayIndex < v2gSensorListType->Sensor.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- errn = encode_v2gSensorType(stream, &v2gSensorListType->Sensor.array [v2gSensorListType_Sensor_currArrayIndex++]);
- }
- grammarID = 2287;
- } else if (1==1) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- done = 1;
- }
- grammarID = 3;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 2287:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}Sensor), END_ELEMENT] */
- if (v2gSensorListType_Sensor_currArrayIndex < v2gSensorListType->Sensor.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- errn = encode_v2gSensorType(stream, &v2gSensorListType->Sensor.array [v2gSensorListType_Sensor_currArrayIndex++]);
- }
- grammarID = 2288;
- } else if (1==1) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- done = 1;
- }
- grammarID = 3;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 2288:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}Sensor), END_ELEMENT] */
- if (v2gSensorListType_Sensor_currArrayIndex < v2gSensorListType->Sensor.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- errn = encode_v2gSensorType(stream, &v2gSensorListType->Sensor.array [v2gSensorListType_Sensor_currArrayIndex++]);
- }
- grammarID = 2289;
- } else if (1==1) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- done = 1;
- }
- grammarID = 3;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 2289:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}Sensor), END_ELEMENT] */
- if (v2gSensorListType_Sensor_currArrayIndex < v2gSensorListType->Sensor.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- errn = encode_v2gSensorType(stream, &v2gSensorListType->Sensor.array [v2gSensorListType_Sensor_currArrayIndex++]);
- }
- grammarID = 2290;
- } else if (1==1) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- done = 1;
- }
- grammarID = 3;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 2290:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}Sensor), END_ELEMENT] */
- if (v2gSensorListType_Sensor_currArrayIndex < v2gSensorListType->Sensor.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- errn = encode_v2gSensorType(stream, &v2gSensorListType->Sensor.array [v2gSensorListType_Sensor_currArrayIndex++]);
- }
- grammarID = 2291;
- } else if (1==1) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- done = 1;
- }
- grammarID = 3;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 2291:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}Sensor), END_ELEMENT] */
- if (v2gSensorListType_Sensor_currArrayIndex < v2gSensorListType->Sensor.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- errn = encode_v2gSensorType(stream, &v2gSensorListType->Sensor.array [v2gSensorListType_Sensor_currArrayIndex++]);
- }
- grammarID = 2292;
- } else if (1==1) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- done = 1;
- }
- grammarID = 3;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 2292:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}Sensor), END_ELEMENT] */
- if (v2gSensorListType_Sensor_currArrayIndex < v2gSensorListType->Sensor.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- errn = encode_v2gSensorType(stream, &v2gSensorListType->Sensor.array [v2gSensorListType_Sensor_currArrayIndex++]);
- }
- grammarID = 2293;
- } else if (1==1) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- done = 1;
- }
- grammarID = 3;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 2293:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}Sensor), END_ELEMENT] */
- if (v2gSensorListType_Sensor_currArrayIndex < v2gSensorListType->Sensor.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- errn = encode_v2gSensorType(stream, &v2gSensorListType->Sensor.array [v2gSensorListType_Sensor_currArrayIndex++]);
- }
- grammarID = 2294;
- } else if (1==1) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- done = 1;
- }
- grammarID = 3;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 2294:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}Sensor), END_ELEMENT] */
- if (v2gSensorListType_Sensor_currArrayIndex < v2gSensorListType->Sensor.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- errn = encode_v2gSensorType(stream, &v2gSensorListType->Sensor.array [v2gSensorListType_Sensor_currArrayIndex++]);
- }
- grammarID = 2295;
- } else if (1==1) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- done = 1;
- }
- grammarID = 3;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 2295:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}Sensor), END_ELEMENT] */
- if (v2gSensorListType_Sensor_currArrayIndex < v2gSensorListType->Sensor.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- errn = encode_v2gSensorType(stream, &v2gSensorListType->Sensor.array [v2gSensorListType_Sensor_currArrayIndex++]);
- }
- grammarID = 2296;
- } else if (1==1) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- done = 1;
- }
- grammarID = 3;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 2296:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}Sensor), END_ELEMENT] */
- if (v2gSensorListType_Sensor_currArrayIndex < v2gSensorListType->Sensor.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- errn = encode_v2gSensorType(stream, &v2gSensorListType->Sensor.array [v2gSensorListType_Sensor_currArrayIndex++]);
- }
- grammarID = 2297;
- } else if (1==1) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- done = 1;
- }
- grammarID = 3;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 2297:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}Sensor), END_ELEMENT] */
- if (v2gSensorListType_Sensor_currArrayIndex < v2gSensorListType->Sensor.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- errn = encode_v2gSensorType(stream, &v2gSensorListType->Sensor.array [v2gSensorListType_Sensor_currArrayIndex++]);
- }
- grammarID = 2298;
- } else if (1==1) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- done = 1;
- }
- grammarID = 3;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 2298:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}Sensor), END_ELEMENT] */
- if (v2gSensorListType_Sensor_currArrayIndex < v2gSensorListType->Sensor.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- errn = encode_v2gSensorType(stream, &v2gSensorListType->Sensor.array [v2gSensorListType_Sensor_currArrayIndex++]);
- }
- grammarID = 2299;
- } else if (1==1) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- done = 1;
- }
- grammarID = 3;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 2299:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}Sensor), END_ELEMENT] */
- if (v2gSensorListType_Sensor_currArrayIndex < v2gSensorListType->Sensor.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- errn = encode_v2gSensorType(stream, &v2gSensorListType->Sensor.array [v2gSensorListType_Sensor_currArrayIndex++]);
- }
- grammarID = 2300;
- } else if (1==1) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- done = 1;
- }
- grammarID = 3;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 2300:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}Sensor), END_ELEMENT] */
- if (v2gSensorListType_Sensor_currArrayIndex < v2gSensorListType->Sensor.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- errn = encode_v2gSensorType(stream, &v2gSensorListType->Sensor.array [v2gSensorListType_Sensor_currArrayIndex++]);
- }
- grammarID = 2301;
- } else if (1==1) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- done = 1;
- }
- grammarID = 3;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 2301:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}Sensor), END_ELEMENT] */
- if (v2gSensorListType_Sensor_currArrayIndex < v2gSensorListType->Sensor.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- errn = encode_v2gSensorType(stream, &v2gSensorListType->Sensor.array [v2gSensorListType_Sensor_currArrayIndex++]);
- }
- grammarID = 2302;
- } else if (1==1) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- done = 1;
- }
- grammarID = 3;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 2302:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}Sensor), END_ELEMENT] */
- if (v2gSensorListType_Sensor_currArrayIndex < v2gSensorListType->Sensor.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- errn = encode_v2gSensorType(stream, &v2gSensorListType->Sensor.array [v2gSensorListType_Sensor_currArrayIndex++]);
- }
- grammarID = 2303;
- } else if (1==1) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- done = 1;
- }
- grammarID = 3;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 2303:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}Sensor), END_ELEMENT] */
- if (v2gSensorListType_Sensor_currArrayIndex < v2gSensorListType->Sensor.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- errn = encode_v2gSensorType(stream, &v2gSensorListType->Sensor.array [v2gSensorListType_Sensor_currArrayIndex++]);
- }
- grammarID = 2304;
- } else if (1==1) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- done = 1;
- }
- grammarID = 3;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 2304:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}Sensor), END_ELEMENT] */
- if (v2gSensorListType_Sensor_currArrayIndex < v2gSensorListType->Sensor.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- errn = encode_v2gSensorType(stream, &v2gSensorListType->Sensor.array [v2gSensorListType_Sensor_currArrayIndex++]);
- }
- grammarID = 2305;
- } else if (1==1) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- done = 1;
- }
- grammarID = 3;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 2305:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}Sensor), END_ELEMENT] */
- if (v2gSensorListType_Sensor_currArrayIndex < v2gSensorListType->Sensor.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- errn = encode_v2gSensorType(stream, &v2gSensorListType->Sensor.array [v2gSensorListType_Sensor_currArrayIndex++]);
- }
- grammarID = 2306;
- } else if (1==1) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- done = 1;
- }
- grammarID = 3;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 2306:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}Sensor), END_ELEMENT] */
- if (v2gSensorListType_Sensor_currArrayIndex < v2gSensorListType->Sensor.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- errn = encode_v2gSensorType(stream, &v2gSensorListType->Sensor.array [v2gSensorListType_Sensor_currArrayIndex++]);
- }
- grammarID = 2307;
- } else if (1==1) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- done = 1;
- }
- grammarID = 3;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 2307:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}Sensor), END_ELEMENT] */
- if (v2gSensorListType_Sensor_currArrayIndex < v2gSensorListType->Sensor.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- errn = encode_v2gSensorType(stream, &v2gSensorListType->Sensor.array [v2gSensorListType_Sensor_currArrayIndex++]);
- }
- grammarID = 2308;
- } else if (1==1) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- done = 1;
- }
- grammarID = 3;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 2308:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}Sensor), END_ELEMENT] */
- if (v2gSensorListType_Sensor_currArrayIndex < v2gSensorListType->Sensor.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- errn = encode_v2gSensorType(stream, &v2gSensorListType->Sensor.array [v2gSensorListType_Sensor_currArrayIndex++]);
- }
- grammarID = 2309;
- } else if (1==1) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- done = 1;
- }
- grammarID = 3;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 2309:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}Sensor), END_ELEMENT] */
- if (v2gSensorListType_Sensor_currArrayIndex < v2gSensorListType->Sensor.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- errn = encode_v2gSensorType(stream, &v2gSensorListType->Sensor.array [v2gSensorListType_Sensor_currArrayIndex++]);
- }
- grammarID = 2310;
- } else if (1==1) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- done = 1;
- }
- grammarID = 3;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 2310:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}Sensor), END_ELEMENT] */
- if (v2gSensorListType_Sensor_currArrayIndex < v2gSensorListType->Sensor.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- errn = encode_v2gSensorType(stream, &v2gSensorListType->Sensor.array [v2gSensorListType_Sensor_currArrayIndex++]);
- }
- grammarID = 2311;
- } else if (1==1) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- done = 1;
- }
- grammarID = 3;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 2311:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}Sensor), END_ELEMENT] */
- if (v2gSensorListType_Sensor_currArrayIndex < v2gSensorListType->Sensor.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- errn = encode_v2gSensorType(stream, &v2gSensorListType->Sensor.array [v2gSensorListType_Sensor_currArrayIndex++]);
- }
- grammarID = 2312;
- } else if (1==1) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- done = 1;
- }
- grammarID = 3;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 2312:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}Sensor), END_ELEMENT] */
- if (v2gSensorListType_Sensor_currArrayIndex < v2gSensorListType->Sensor.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- errn = encode_v2gSensorType(stream, &v2gSensorListType->Sensor.array [v2gSensorListType_Sensor_currArrayIndex++]);
- }
- grammarID = 2313;
- } else if (1==1) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- done = 1;
- }
- grammarID = 3;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 2313:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}Sensor), END_ELEMENT] */
- if (v2gSensorListType_Sensor_currArrayIndex < v2gSensorListType->Sensor.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- errn = encode_v2gSensorType(stream, &v2gSensorListType->Sensor.array [v2gSensorListType_Sensor_currArrayIndex++]);
- }
- grammarID = 2314;
- } else if (1==1) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- done = 1;
- }
- grammarID = 3;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 2314:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}Sensor), END_ELEMENT] */
- if (v2gSensorListType_Sensor_currArrayIndex < v2gSensorListType->Sensor.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- errn = encode_v2gSensorType(stream, &v2gSensorListType->Sensor.array [v2gSensorListType_Sensor_currArrayIndex++]);
- }
- grammarID = 2315;
- } else if (1==1) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- done = 1;
- }
- grammarID = 3;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 2315:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}Sensor), END_ELEMENT] */
- if (v2gSensorListType_Sensor_currArrayIndex < v2gSensorListType->Sensor.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- errn = encode_v2gSensorType(stream, &v2gSensorListType->Sensor.array [v2gSensorListType_Sensor_currArrayIndex++]);
- }
- grammarID = 2316;
- } else if (1==1) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- done = 1;
- }
- grammarID = 3;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 2316:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}Sensor), END_ELEMENT] */
- if (v2gSensorListType_Sensor_currArrayIndex < v2gSensorListType->Sensor.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- errn = encode_v2gSensorType(stream, &v2gSensorListType->Sensor.array [v2gSensorListType_Sensor_currArrayIndex++]);
- }
- grammarID = 2317;
- } else if (1==1) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- done = 1;
- }
- grammarID = 3;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 2317:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}Sensor), END_ELEMENT] */
- if (v2gSensorListType_Sensor_currArrayIndex < v2gSensorListType->Sensor.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- errn = encode_v2gSensorType(stream, &v2gSensorListType->Sensor.array [v2gSensorListType_Sensor_currArrayIndex++]);
- }
- grammarID = 2318;
- } else if (1==1) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- done = 1;
- }
- grammarID = 3;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 2318:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}Sensor), END_ELEMENT] */
- if (v2gSensorListType_Sensor_currArrayIndex < v2gSensorListType->Sensor.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- errn = encode_v2gSensorType(stream, &v2gSensorListType->Sensor.array [v2gSensorListType_Sensor_currArrayIndex++]);
- }
- grammarID = 2319;
- } else if (1==1) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- done = 1;
- }
- grammarID = 3;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 2319:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}Sensor), END_ELEMENT] */
- if (v2gSensorListType_Sensor_currArrayIndex < v2gSensorListType->Sensor.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- errn = encode_v2gSensorType(stream, &v2gSensorListType->Sensor.array [v2gSensorListType_Sensor_currArrayIndex++]);
- }
- grammarID = 2320;
- } else if (1==1) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- done = 1;
- }
- grammarID = 3;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 2320:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}Sensor), END_ELEMENT] */
- if (v2gSensorListType_Sensor_currArrayIndex < v2gSensorListType->Sensor.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- errn = encode_v2gSensorType(stream, &v2gSensorListType->Sensor.array [v2gSensorListType_Sensor_currArrayIndex++]);
- }
- grammarID = 2321;
- } else if (1==1) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- done = 1;
- }
- grammarID = 3;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 2321:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}Sensor), END_ELEMENT] */
- if (v2gSensorListType_Sensor_currArrayIndex < v2gSensorListType->Sensor.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- errn = encode_v2gSensorType(stream, &v2gSensorListType->Sensor.array [v2gSensorListType_Sensor_currArrayIndex++]);
- }
- grammarID = 2322;
- } else if (1==1) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- done = 1;
- }
- grammarID = 3;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 2322:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}Sensor), END_ELEMENT] */
- if (v2gSensorListType_Sensor_currArrayIndex < v2gSensorListType->Sensor.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- errn = encode_v2gSensorType(stream, &v2gSensorListType->Sensor.array [v2gSensorListType_Sensor_currArrayIndex++]);
- }
- grammarID = 2323;
- } else if (1==1) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- done = 1;
- }
- grammarID = 3;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 2323:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}Sensor), END_ELEMENT] */
- if (v2gSensorListType_Sensor_currArrayIndex < v2gSensorListType->Sensor.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- errn = encode_v2gSensorType(stream, &v2gSensorListType->Sensor.array [v2gSensorListType_Sensor_currArrayIndex++]);
- }
- grammarID = 2324;
- } else if (1==1) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- done = 1;
- }
- grammarID = 3;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 2324:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}Sensor), END_ELEMENT] */
- if (v2gSensorListType_Sensor_currArrayIndex < v2gSensorListType->Sensor.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- errn = encode_v2gSensorType(stream, &v2gSensorListType->Sensor.array [v2gSensorListType_Sensor_currArrayIndex++]);
- }
- grammarID = 2325;
- } else if (1==1) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- done = 1;
- }
- grammarID = 3;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 2325:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}Sensor), END_ELEMENT] */
- if (v2gSensorListType_Sensor_currArrayIndex < v2gSensorListType->Sensor.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- errn = encode_v2gSensorType(stream, &v2gSensorListType->Sensor.array [v2gSensorListType_Sensor_currArrayIndex++]);
- }
- grammarID = 2326;
- } else if (1==1) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- done = 1;
- }
- grammarID = 3;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 2326:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}Sensor), END_ELEMENT] */
- if (v2gSensorListType_Sensor_currArrayIndex < v2gSensorListType->Sensor.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- errn = encode_v2gSensorType(stream, &v2gSensorListType->Sensor.array [v2gSensorListType_Sensor_currArrayIndex++]);
- }
- grammarID = 2327;
- } else if (1==1) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- done = 1;
- }
- grammarID = 3;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 2327:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}Sensor), END_ELEMENT] */
- if (v2gSensorListType_Sensor_currArrayIndex < v2gSensorListType->Sensor.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- errn = encode_v2gSensorType(stream, &v2gSensorListType->Sensor.array [v2gSensorListType_Sensor_currArrayIndex++]);
- }
- grammarID = 2328;
- } else if (1==1) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- done = 1;
- }
- grammarID = 3;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 2328:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}Sensor), END_ELEMENT] */
- if (v2gSensorListType_Sensor_currArrayIndex < v2gSensorListType->Sensor.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- errn = encode_v2gSensorType(stream, &v2gSensorListType->Sensor.array [v2gSensorListType_Sensor_currArrayIndex++]);
- }
- grammarID = 2329;
- } else if (1==1) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- done = 1;
- }
- grammarID = 3;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 2329:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}Sensor), END_ELEMENT] */
- if (v2gSensorListType_Sensor_currArrayIndex < v2gSensorListType->Sensor.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- errn = encode_v2gSensorType(stream, &v2gSensorListType->Sensor.array [v2gSensorListType_Sensor_currArrayIndex++]);
- }
- grammarID = 2330;
- } else if (1==1) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- done = 1;
- }
- grammarID = 3;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 2330:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}Sensor), END_ELEMENT] */
- if (v2gSensorListType_Sensor_currArrayIndex < v2gSensorListType->Sensor.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- errn = encode_v2gSensorType(stream, &v2gSensorListType->Sensor.array [v2gSensorListType_Sensor_currArrayIndex++]);
- }
- grammarID = 2331;
- } else if (1==1) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- done = 1;
- }
- grammarID = 3;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 2331:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}Sensor), END_ELEMENT] */
- if (v2gSensorListType_Sensor_currArrayIndex < v2gSensorListType->Sensor.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- errn = encode_v2gSensorType(stream, &v2gSensorListType->Sensor.array [v2gSensorListType_Sensor_currArrayIndex++]);
- }
- grammarID = 2332;
- } else if (1==1) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- done = 1;
- }
- grammarID = 3;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 2332:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}Sensor), END_ELEMENT] */
- if (v2gSensorListType_Sensor_currArrayIndex < v2gSensorListType->Sensor.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- errn = encode_v2gSensorType(stream, &v2gSensorListType->Sensor.array [v2gSensorListType_Sensor_currArrayIndex++]);
- }
- grammarID = 2333;
- } else if (1==1) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- done = 1;
- }
- grammarID = 3;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 2333:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}Sensor), END_ELEMENT] */
- if (v2gSensorListType_Sensor_currArrayIndex < v2gSensorListType->Sensor.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- errn = encode_v2gSensorType(stream, &v2gSensorListType->Sensor.array [v2gSensorListType_Sensor_currArrayIndex++]);
- }
- grammarID = 2334;
- } else if (1==1) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- done = 1;
- }
- grammarID = 3;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 2334:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}Sensor), END_ELEMENT] */
- if (v2gSensorListType_Sensor_currArrayIndex < v2gSensorListType->Sensor.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- errn = encode_v2gSensorType(stream, &v2gSensorListType->Sensor.array [v2gSensorListType_Sensor_currArrayIndex++]);
- }
- grammarID = 2335;
- } else if (1==1) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- done = 1;
- }
- grammarID = 3;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 2335:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}Sensor), END_ELEMENT] */
- if (v2gSensorListType_Sensor_currArrayIndex < v2gSensorListType->Sensor.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- errn = encode_v2gSensorType(stream, &v2gSensorListType->Sensor.array [v2gSensorListType_Sensor_currArrayIndex++]);
- }
- grammarID = 2336;
- } else if (1==1) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- done = 1;
- }
- grammarID = 3;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 2336:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}Sensor), END_ELEMENT] */
- if (v2gSensorListType_Sensor_currArrayIndex < v2gSensorListType->Sensor.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- errn = encode_v2gSensorType(stream, &v2gSensorListType->Sensor.array [v2gSensorListType_Sensor_currArrayIndex++]);
- }
- grammarID = 2337;
- } else if (1==1) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- done = 1;
- }
- grammarID = 3;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 2337:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}Sensor), END_ELEMENT] */
- if (v2gSensorListType_Sensor_currArrayIndex < v2gSensorListType->Sensor.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- errn = encode_v2gSensorType(stream, &v2gSensorListType->Sensor.array [v2gSensorListType_Sensor_currArrayIndex++]);
- }
- grammarID = 2338;
- } else if (1==1) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- done = 1;
- }
- grammarID = 3;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 2338:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}Sensor), END_ELEMENT] */
- if (v2gSensorListType_Sensor_currArrayIndex < v2gSensorListType->Sensor.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- errn = encode_v2gSensorType(stream, &v2gSensorListType->Sensor.array [v2gSensorListType_Sensor_currArrayIndex++]);
- }
- grammarID = 2339;
- } else if (1==1) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- done = 1;
- }
- grammarID = 3;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 2339:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}Sensor), END_ELEMENT] */
- if (v2gSensorListType_Sensor_currArrayIndex < v2gSensorListType->Sensor.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- errn = encode_v2gSensorType(stream, &v2gSensorListType->Sensor.array [v2gSensorListType_Sensor_currArrayIndex++]);
- }
- grammarID = 2340;
- } else if (1==1) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- done = 1;
- }
- grammarID = 3;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 2340:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}Sensor), END_ELEMENT] */
- if (v2gSensorListType_Sensor_currArrayIndex < v2gSensorListType->Sensor.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- errn = encode_v2gSensorType(stream, &v2gSensorListType->Sensor.array [v2gSensorListType_Sensor_currArrayIndex++]);
- }
- grammarID = 2341;
- } else if (1==1) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- done = 1;
- }
- grammarID = 3;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 2341:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}Sensor), END_ELEMENT] */
- if (v2gSensorListType_Sensor_currArrayIndex < v2gSensorListType->Sensor.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- errn = encode_v2gSensorType(stream, &v2gSensorListType->Sensor.array [v2gSensorListType_Sensor_currArrayIndex++]);
- }
- grammarID = 2342;
- } else if (1==1) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- done = 1;
- }
- grammarID = 3;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 2342:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}Sensor), END_ELEMENT] */
- if (v2gSensorListType_Sensor_currArrayIndex < v2gSensorListType->Sensor.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- errn = encode_v2gSensorType(stream, &v2gSensorListType->Sensor.array [v2gSensorListType_Sensor_currArrayIndex++]);
- }
- grammarID = 2343;
- } else if (1==1) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- done = 1;
- }
- grammarID = 3;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 2343:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}Sensor), END_ELEMENT] */
- if (v2gSensorListType_Sensor_currArrayIndex < v2gSensorListType->Sensor.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- errn = encode_v2gSensorType(stream, &v2gSensorListType->Sensor.array [v2gSensorListType_Sensor_currArrayIndex++]);
- }
- grammarID = 2344;
- } else if (1==1) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- done = 1;
- }
- grammarID = 3;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 2344:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}Sensor), END_ELEMENT] */
- if (v2gSensorListType_Sensor_currArrayIndex < v2gSensorListType->Sensor.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- errn = encode_v2gSensorType(stream, &v2gSensorListType->Sensor.array [v2gSensorListType_Sensor_currArrayIndex++]);
- }
- grammarID = 2345;
- } else if (1==1) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- done = 1;
- }
- grammarID = 3;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 2345:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}Sensor), END_ELEMENT] */
- if (v2gSensorListType_Sensor_currArrayIndex < v2gSensorListType->Sensor.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- errn = encode_v2gSensorType(stream, &v2gSensorListType->Sensor.array [v2gSensorListType_Sensor_currArrayIndex++]);
- }
- grammarID = 2346;
- } else if (1==1) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- done = 1;
- }
- grammarID = 3;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 2346:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}Sensor), END_ELEMENT] */
- if (v2gSensorListType_Sensor_currArrayIndex < v2gSensorListType->Sensor.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- errn = encode_v2gSensorType(stream, &v2gSensorListType->Sensor.array [v2gSensorListType_Sensor_currArrayIndex++]);
- }
- grammarID = 2347;
- } else if (1==1) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- done = 1;
- }
- grammarID = 3;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 2347:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}Sensor), END_ELEMENT] */
- if (v2gSensorListType_Sensor_currArrayIndex < v2gSensorListType->Sensor.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- errn = encode_v2gSensorType(stream, &v2gSensorListType->Sensor.array [v2gSensorListType_Sensor_currArrayIndex++]);
- }
- grammarID = 2348;
- } else if (1==1) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- done = 1;
- }
- grammarID = 3;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 2348:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}Sensor), END_ELEMENT] */
- if (v2gSensorListType_Sensor_currArrayIndex < v2gSensorListType->Sensor.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- errn = encode_v2gSensorType(stream, &v2gSensorListType->Sensor.array [v2gSensorListType_Sensor_currArrayIndex++]);
- }
- grammarID = 2349;
- } else if (1==1) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- done = 1;
- }
- grammarID = 3;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 2349:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}Sensor), END_ELEMENT] */
- if (v2gSensorListType_Sensor_currArrayIndex < v2gSensorListType->Sensor.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- errn = encode_v2gSensorType(stream, &v2gSensorListType->Sensor.array [v2gSensorListType_Sensor_currArrayIndex++]);
- }
- grammarID = 2350;
- } else if (1==1) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- done = 1;
- }
- grammarID = 3;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 2350:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}Sensor), END_ELEMENT] */
- if (v2gSensorListType_Sensor_currArrayIndex < v2gSensorListType->Sensor.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- errn = encode_v2gSensorType(stream, &v2gSensorListType->Sensor.array [v2gSensorListType_Sensor_currArrayIndex++]);
- }
- grammarID = 2351;
- } else if (1==1) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- done = 1;
- }
- grammarID = 3;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 2351:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}Sensor), END_ELEMENT] */
- if (v2gSensorListType_Sensor_currArrayIndex < v2gSensorListType->Sensor.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- errn = encode_v2gSensorType(stream, &v2gSensorListType->Sensor.array [v2gSensorListType_Sensor_currArrayIndex++]);
- }
- grammarID = 2352;
- } else if (1==1) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- done = 1;
- }
- grammarID = 3;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 2352:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}Sensor), END_ELEMENT] */
- if (v2gSensorListType_Sensor_currArrayIndex < v2gSensorListType->Sensor.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- errn = encode_v2gSensorType(stream, &v2gSensorListType->Sensor.array [v2gSensorListType_Sensor_currArrayIndex++]);
- }
- grammarID = 2353;
- } else if (1==1) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- done = 1;
- }
- grammarID = 3;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 2353:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}Sensor), END_ELEMENT] */
- if (v2gSensorListType_Sensor_currArrayIndex < v2gSensorListType->Sensor.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- errn = encode_v2gSensorType(stream, &v2gSensorListType->Sensor.array [v2gSensorListType_Sensor_currArrayIndex++]);
- }
- grammarID = 2354;
- } else if (1==1) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- done = 1;
- }
- grammarID = 3;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 2354:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}Sensor), END_ELEMENT] */
- if (v2gSensorListType_Sensor_currArrayIndex < v2gSensorListType->Sensor.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- errn = encode_v2gSensorType(stream, &v2gSensorListType->Sensor.array [v2gSensorListType_Sensor_currArrayIndex++]);
- }
- grammarID = 2355;
- } else if (1==1) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- done = 1;
- }
- grammarID = 3;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 2355:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}Sensor), END_ELEMENT] */
- if (v2gSensorListType_Sensor_currArrayIndex < v2gSensorListType->Sensor.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- errn = encode_v2gSensorType(stream, &v2gSensorListType->Sensor.array [v2gSensorListType_Sensor_currArrayIndex++]);
- }
- grammarID = 2356;
- } else if (1==1) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- done = 1;
- }
- grammarID = 3;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 2356:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}Sensor), END_ELEMENT] */
- if (v2gSensorListType_Sensor_currArrayIndex < v2gSensorListType->Sensor.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- errn = encode_v2gSensorType(stream, &v2gSensorListType->Sensor.array [v2gSensorListType_Sensor_currArrayIndex++]);
- }
- grammarID = 2357;
- } else if (1==1) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- done = 1;
- }
- grammarID = 3;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 2357:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}Sensor), END_ELEMENT] */
- if (v2gSensorListType_Sensor_currArrayIndex < v2gSensorListType->Sensor.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- errn = encode_v2gSensorType(stream, &v2gSensorListType->Sensor.array [v2gSensorListType_Sensor_currArrayIndex++]);
- }
- grammarID = 2358;
- } else if (1==1) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- done = 1;
- }
- grammarID = 3;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 2358:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}Sensor), END_ELEMENT] */
- if (v2gSensorListType_Sensor_currArrayIndex < v2gSensorListType->Sensor.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- errn = encode_v2gSensorType(stream, &v2gSensorListType->Sensor.array [v2gSensorListType_Sensor_currArrayIndex++]);
- }
- grammarID = 2359;
- } else if (1==1) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- done = 1;
- }
- grammarID = 3;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 2359:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}Sensor), END_ELEMENT] */
- if (v2gSensorListType_Sensor_currArrayIndex < v2gSensorListType->Sensor.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- errn = encode_v2gSensorType(stream, &v2gSensorListType->Sensor.array [v2gSensorListType_Sensor_currArrayIndex++]);
- }
- grammarID = 2360;
- } else if (1==1) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- done = 1;
- }
- grammarID = 3;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 2360:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}Sensor), END_ELEMENT] */
- if (v2gSensorListType_Sensor_currArrayIndex < v2gSensorListType->Sensor.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- errn = encode_v2gSensorType(stream, &v2gSensorListType->Sensor.array [v2gSensorListType_Sensor_currArrayIndex++]);
- }
- grammarID = 2361;
- } else if (1==1) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- done = 1;
- }
- grammarID = 3;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 2361:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}Sensor), END_ELEMENT] */
- if (v2gSensorListType_Sensor_currArrayIndex < v2gSensorListType->Sensor.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- errn = encode_v2gSensorType(stream, &v2gSensorListType->Sensor.array [v2gSensorListType_Sensor_currArrayIndex++]);
- }
- grammarID = 2362;
- } else if (1==1) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- done = 1;
- }
- grammarID = 3;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 2362:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}Sensor), END_ELEMENT] */
- if (v2gSensorListType_Sensor_currArrayIndex < v2gSensorListType->Sensor.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- errn = encode_v2gSensorType(stream, &v2gSensorListType->Sensor.array [v2gSensorListType_Sensor_currArrayIndex++]);
- }
- grammarID = 2363;
- } else if (1==1) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- done = 1;
- }
- grammarID = 3;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 2363:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}Sensor), END_ELEMENT] */
- if (v2gSensorListType_Sensor_currArrayIndex < v2gSensorListType->Sensor.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- errn = encode_v2gSensorType(stream, &v2gSensorListType->Sensor.array [v2gSensorListType_Sensor_currArrayIndex++]);
- }
- grammarID = 2364;
- } else if (1==1) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- done = 1;
- }
- grammarID = 3;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 2364:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}Sensor), END_ELEMENT] */
- if (v2gSensorListType_Sensor_currArrayIndex < v2gSensorListType->Sensor.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- errn = encode_v2gSensorType(stream, &v2gSensorListType->Sensor.array [v2gSensorListType_Sensor_currArrayIndex++]);
- }
- grammarID = 2365;
- } else if (1==1) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- done = 1;
- }
- grammarID = 3;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 2365:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}Sensor), END_ELEMENT] */
- if (v2gSensorListType_Sensor_currArrayIndex < v2gSensorListType->Sensor.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- errn = encode_v2gSensorType(stream, &v2gSensorListType->Sensor.array [v2gSensorListType_Sensor_currArrayIndex++]);
- }
- grammarID = 2366;
- } else if (1==1) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- done = 1;
- }
- grammarID = 3;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 2366:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}Sensor), END_ELEMENT] */
- if (v2gSensorListType_Sensor_currArrayIndex < v2gSensorListType->Sensor.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- errn = encode_v2gSensorType(stream, &v2gSensorListType->Sensor.array [v2gSensorListType_Sensor_currArrayIndex++]);
- }
- grammarID = 2367;
- } else if (1==1) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- done = 1;
- }
- grammarID = 3;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 2367:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}Sensor), END_ELEMENT] */
- if (v2gSensorListType_Sensor_currArrayIndex < v2gSensorListType->Sensor.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- errn = encode_v2gSensorType(stream, &v2gSensorListType->Sensor.array [v2gSensorListType_Sensor_currArrayIndex++]);
- }
- grammarID = 2368;
- } else if (1==1) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- done = 1;
- }
- grammarID = 3;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 2368:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}Sensor), END_ELEMENT] */
- if (v2gSensorListType_Sensor_currArrayIndex < v2gSensorListType->Sensor.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- errn = encode_v2gSensorType(stream, &v2gSensorListType->Sensor.array [v2gSensorListType_Sensor_currArrayIndex++]);
- }
- grammarID = 2369;
- } else if (1==1) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- done = 1;
- }
- grammarID = 3;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 2369:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}Sensor), END_ELEMENT] */
- if (v2gSensorListType_Sensor_currArrayIndex < v2gSensorListType->Sensor.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- errn = encode_v2gSensorType(stream, &v2gSensorListType->Sensor.array [v2gSensorListType_Sensor_currArrayIndex++]);
- }
- grammarID = 2370;
- } else if (1==1) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- done = 1;
- }
- grammarID = 3;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 2370:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}Sensor), END_ELEMENT] */
- if (v2gSensorListType_Sensor_currArrayIndex < v2gSensorListType->Sensor.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- errn = encode_v2gSensorType(stream, &v2gSensorListType->Sensor.array [v2gSensorListType_Sensor_currArrayIndex++]);
- }
- grammarID = 2371;
- } else if (1==1) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- done = 1;
- }
- grammarID = 3;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 2371:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}Sensor), END_ELEMENT] */
- if (v2gSensorListType_Sensor_currArrayIndex < v2gSensorListType->Sensor.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- errn = encode_v2gSensorType(stream, &v2gSensorListType->Sensor.array [v2gSensorListType_Sensor_currArrayIndex++]);
- }
- grammarID = 2372;
- } else if (1==1) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- done = 1;
- }
- grammarID = 3;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 2372:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}Sensor), END_ELEMENT] */
- if (v2gSensorListType_Sensor_currArrayIndex < v2gSensorListType->Sensor.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- errn = encode_v2gSensorType(stream, &v2gSensorListType->Sensor.array [v2gSensorListType_Sensor_currArrayIndex++]);
- }
- grammarID = 2373;
- } else if (1==1) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- done = 1;
- }
- grammarID = 3;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 2373:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}Sensor), END_ELEMENT] */
- if (v2gSensorListType_Sensor_currArrayIndex < v2gSensorListType->Sensor.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- errn = encode_v2gSensorType(stream, &v2gSensorListType->Sensor.array [v2gSensorListType_Sensor_currArrayIndex++]);
- }
- grammarID = 2374;
- } else if (1==1) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- done = 1;
- }
- grammarID = 3;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 2374:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}Sensor), END_ELEMENT] */
- if (v2gSensorListType_Sensor_currArrayIndex < v2gSensorListType->Sensor.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- errn = encode_v2gSensorType(stream, &v2gSensorListType->Sensor.array [v2gSensorListType_Sensor_currArrayIndex++]);
- }
- grammarID = 2375;
- } else if (1==1) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- done = 1;
- }
- grammarID = 3;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 2375:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}Sensor), END_ELEMENT] */
- if (v2gSensorListType_Sensor_currArrayIndex < v2gSensorListType->Sensor.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- errn = encode_v2gSensorType(stream, &v2gSensorListType->Sensor.array [v2gSensorListType_Sensor_currArrayIndex++]);
- }
- grammarID = 2376;
- } else if (1==1) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- done = 1;
- }
- grammarID = 3;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 2376:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}Sensor), END_ELEMENT] */
- if (v2gSensorListType_Sensor_currArrayIndex < v2gSensorListType->Sensor.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- errn = encode_v2gSensorType(stream, &v2gSensorListType->Sensor.array [v2gSensorListType_Sensor_currArrayIndex++]);
- }
- grammarID = 2377;
- } else if (1==1) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- done = 1;
- }
- grammarID = 3;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 2377:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}Sensor), END_ELEMENT] */
- if (v2gSensorListType_Sensor_currArrayIndex < v2gSensorListType->Sensor.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- errn = encode_v2gSensorType(stream, &v2gSensorListType->Sensor.array [v2gSensorListType_Sensor_currArrayIndex++]);
- }
- grammarID = 2378;
- } else if (1==1) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- done = 1;
- }
- grammarID = 3;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 2378:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}Sensor), END_ELEMENT] */
- if (v2gSensorListType_Sensor_currArrayIndex < v2gSensorListType->Sensor.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- errn = encode_v2gSensorType(stream, &v2gSensorListType->Sensor.array [v2gSensorListType_Sensor_currArrayIndex++]);
- }
- grammarID = 2379;
- } else if (1==1) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- done = 1;
- }
- grammarID = 3;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 2379:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}Sensor), END_ELEMENT] */
- if (v2gSensorListType_Sensor_currArrayIndex < v2gSensorListType->Sensor.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- errn = encode_v2gSensorType(stream, &v2gSensorListType->Sensor.array [v2gSensorListType_Sensor_currArrayIndex++]);
- }
- grammarID = 2380;
- } else if (1==1) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- done = 1;
- }
- grammarID = 3;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 2380:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}Sensor), END_ELEMENT] */
- if (v2gSensorListType_Sensor_currArrayIndex < v2gSensorListType->Sensor.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- errn = encode_v2gSensorType(stream, &v2gSensorListType->Sensor.array [v2gSensorListType_Sensor_currArrayIndex++]);
- }
- grammarID = 2381;
- } else if (1==1) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- done = 1;
- }
- grammarID = 3;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 2381:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}Sensor), END_ELEMENT] */
- if (v2gSensorListType_Sensor_currArrayIndex < v2gSensorListType->Sensor.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- errn = encode_v2gSensorType(stream, &v2gSensorListType->Sensor.array [v2gSensorListType_Sensor_currArrayIndex++]);
- }
- grammarID = 2382;
- } else if (1==1) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- done = 1;
- }
- grammarID = 3;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 2382:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}Sensor), END_ELEMENT] */
- if (v2gSensorListType_Sensor_currArrayIndex < v2gSensorListType->Sensor.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- errn = encode_v2gSensorType(stream, &v2gSensorListType->Sensor.array [v2gSensorListType_Sensor_currArrayIndex++]);
- }
- grammarID = 2383;
- } else if (1==1) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- done = 1;
- }
- grammarID = 3;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 2383:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}Sensor), END_ELEMENT] */
- if (v2gSensorListType_Sensor_currArrayIndex < v2gSensorListType->Sensor.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- errn = encode_v2gSensorType(stream, &v2gSensorListType->Sensor.array [v2gSensorListType_Sensor_currArrayIndex++]);
- }
- grammarID = 2384;
- } else if (1==1) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- done = 1;
- }
- grammarID = 3;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 2384:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}Sensor), END_ELEMENT] */
- if (v2gSensorListType_Sensor_currArrayIndex < v2gSensorListType->Sensor.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- errn = encode_v2gSensorType(stream, &v2gSensorListType->Sensor.array [v2gSensorListType_Sensor_currArrayIndex++]);
- }
- grammarID = 2385;
- } else if (1==1) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- done = 1;
- }
- grammarID = 3;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 2385:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}Sensor), END_ELEMENT] */
- if (v2gSensorListType_Sensor_currArrayIndex < v2gSensorListType->Sensor.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- errn = encode_v2gSensorType(stream, &v2gSensorListType->Sensor.array [v2gSensorListType_Sensor_currArrayIndex++]);
- }
- grammarID = 2386;
- } else if (1==1) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- done = 1;
- }
- grammarID = 3;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 2386:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}Sensor), END_ELEMENT] */
- if (v2gSensorListType_Sensor_currArrayIndex < v2gSensorListType->Sensor.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- errn = encode_v2gSensorType(stream, &v2gSensorListType->Sensor.array [v2gSensorListType_Sensor_currArrayIndex++]);
- }
- grammarID = 2387;
- } else if (1==1) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- done = 1;
- }
- grammarID = 3;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 2387:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}Sensor), END_ELEMENT] */
- if (v2gSensorListType_Sensor_currArrayIndex < v2gSensorListType->Sensor.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- errn = encode_v2gSensorType(stream, &v2gSensorListType->Sensor.array [v2gSensorListType_Sensor_currArrayIndex++]);
- }
- grammarID = 2388;
- } else if (1==1) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- done = 1;
- }
- grammarID = 3;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 2388:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}Sensor), END_ELEMENT] */
- if (v2gSensorListType_Sensor_currArrayIndex < v2gSensorListType->Sensor.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- errn = encode_v2gSensorType(stream, &v2gSensorListType->Sensor.array [v2gSensorListType_Sensor_currArrayIndex++]);
- }
- grammarID = 2389;
- } else if (1==1) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- done = 1;
- }
- grammarID = 3;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 2389:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}Sensor), END_ELEMENT] */
- if (v2gSensorListType_Sensor_currArrayIndex < v2gSensorListType->Sensor.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- errn = encode_v2gSensorType(stream, &v2gSensorListType->Sensor.array [v2gSensorListType_Sensor_currArrayIndex++]);
- }
- grammarID = 2390;
- } else if (1==1) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- done = 1;
- }
- grammarID = 3;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 2390:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}Sensor), END_ELEMENT] */
- if (v2gSensorListType_Sensor_currArrayIndex < v2gSensorListType->Sensor.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- errn = encode_v2gSensorType(stream, &v2gSensorListType->Sensor.array [v2gSensorListType_Sensor_currArrayIndex++]);
- }
- grammarID = 2391;
- } else if (1==1) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- done = 1;
- }
- grammarID = 3;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 2391:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}Sensor), END_ELEMENT] */
- if (v2gSensorListType_Sensor_currArrayIndex < v2gSensorListType->Sensor.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- errn = encode_v2gSensorType(stream, &v2gSensorListType->Sensor.array [v2gSensorListType_Sensor_currArrayIndex++]);
- }
- grammarID = 2392;
- } else if (1==1) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- done = 1;
- }
- grammarID = 3;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 2392:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}Sensor), END_ELEMENT] */
- if (v2gSensorListType_Sensor_currArrayIndex < v2gSensorListType->Sensor.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- errn = encode_v2gSensorType(stream, &v2gSensorListType->Sensor.array [v2gSensorListType_Sensor_currArrayIndex++]);
- }
- grammarID = 2393;
- } else if (1==1) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- done = 1;
- }
- grammarID = 3;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 2393:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}Sensor), END_ELEMENT] */
- if (v2gSensorListType_Sensor_currArrayIndex < v2gSensorListType->Sensor.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- errn = encode_v2gSensorType(stream, &v2gSensorListType->Sensor.array [v2gSensorListType_Sensor_currArrayIndex++]);
- }
- grammarID = 2394;
- } else if (1==1) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- done = 1;
- }
- grammarID = 3;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 2394:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}Sensor), END_ELEMENT] */
- if (v2gSensorListType_Sensor_currArrayIndex < v2gSensorListType->Sensor.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- errn = encode_v2gSensorType(stream, &v2gSensorListType->Sensor.array [v2gSensorListType_Sensor_currArrayIndex++]);
- }
- grammarID = 2395;
- } else if (1==1) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- done = 1;
- }
- grammarID = 3;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 2395:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}Sensor), END_ELEMENT] */
- if (v2gSensorListType_Sensor_currArrayIndex < v2gSensorListType->Sensor.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- errn = encode_v2gSensorType(stream, &v2gSensorListType->Sensor.array [v2gSensorListType_Sensor_currArrayIndex++]);
- }
- grammarID = 2396;
- } else if (1==1) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- done = 1;
- }
- grammarID = 3;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 2396:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}Sensor), END_ELEMENT] */
- if (v2gSensorListType_Sensor_currArrayIndex < v2gSensorListType->Sensor.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- errn = encode_v2gSensorType(stream, &v2gSensorListType->Sensor.array [v2gSensorListType_Sensor_currArrayIndex++]);
- }
- grammarID = 2397;
- } else if (1==1) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- done = 1;
- }
- grammarID = 3;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 2397:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}Sensor), END_ELEMENT] */
- if (v2gSensorListType_Sensor_currArrayIndex < v2gSensorListType->Sensor.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- errn = encode_v2gSensorType(stream, &v2gSensorListType->Sensor.array [v2gSensorListType_Sensor_currArrayIndex++]);
- }
- grammarID = 2398;
- } else if (1==1) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- done = 1;
- }
- grammarID = 3;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 2398:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}Sensor), END_ELEMENT] */
- if (v2gSensorListType_Sensor_currArrayIndex < v2gSensorListType->Sensor.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- errn = encode_v2gSensorType(stream, &v2gSensorListType->Sensor.array [v2gSensorListType_Sensor_currArrayIndex++]);
- }
- grammarID = 2399;
- } else if (1==1) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- done = 1;
- }
- grammarID = 3;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 2399:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}Sensor), END_ELEMENT] */
- if (v2gSensorListType_Sensor_currArrayIndex < v2gSensorListType->Sensor.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- errn = encode_v2gSensorType(stream, &v2gSensorListType->Sensor.array [v2gSensorListType_Sensor_currArrayIndex++]);
- }
- grammarID = 2400;
- } else if (1==1) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- done = 1;
- }
- grammarID = 3;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 2400:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}Sensor), END_ELEMENT] */
- if (v2gSensorListType_Sensor_currArrayIndex < v2gSensorListType->Sensor.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- errn = encode_v2gSensorType(stream, &v2gSensorListType->Sensor.array [v2gSensorListType_Sensor_currArrayIndex++]);
- }
- grammarID = 2401;
- } else if (1==1) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- done = 1;
- }
- grammarID = 3;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 2401:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}Sensor), END_ELEMENT] */
- if (v2gSensorListType_Sensor_currArrayIndex < v2gSensorListType->Sensor.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- errn = encode_v2gSensorType(stream, &v2gSensorListType->Sensor.array [v2gSensorListType_Sensor_currArrayIndex++]);
- }
- grammarID = 2402;
- } else if (1==1) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- done = 1;
- }
- grammarID = 3;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 2402:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}Sensor), END_ELEMENT] */
- if (v2gSensorListType_Sensor_currArrayIndex < v2gSensorListType->Sensor.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- errn = encode_v2gSensorType(stream, &v2gSensorListType->Sensor.array [v2gSensorListType_Sensor_currArrayIndex++]);
- }
- grammarID = 2403;
- } else if (1==1) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- done = 1;
- }
- grammarID = 3;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 2403:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}Sensor), END_ELEMENT] */
- if (v2gSensorListType_Sensor_currArrayIndex < v2gSensorListType->Sensor.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- errn = encode_v2gSensorType(stream, &v2gSensorListType->Sensor.array [v2gSensorListType_Sensor_currArrayIndex++]);
- }
- grammarID = 2404;
- } else if (1==1) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- done = 1;
- }
- grammarID = 3;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 2404:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}Sensor), END_ELEMENT] */
- if (v2gSensorListType_Sensor_currArrayIndex < v2gSensorListType->Sensor.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- errn = encode_v2gSensorType(stream, &v2gSensorListType->Sensor.array [v2gSensorListType_Sensor_currArrayIndex++]);
- }
- grammarID = 2405;
- } else if (1==1) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- done = 1;
- }
- grammarID = 3;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 2405:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}Sensor), END_ELEMENT] */
- if (v2gSensorListType_Sensor_currArrayIndex < v2gSensorListType->Sensor.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- errn = encode_v2gSensorType(stream, &v2gSensorListType->Sensor.array [v2gSensorListType_Sensor_currArrayIndex++]);
- }
- grammarID = 2406;
- } else if (1==1) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- done = 1;
- }
- grammarID = 3;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 2406:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}Sensor), END_ELEMENT] */
- if (v2gSensorListType_Sensor_currArrayIndex < v2gSensorListType->Sensor.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- errn = encode_v2gSensorType(stream, &v2gSensorListType->Sensor.array [v2gSensorListType_Sensor_currArrayIndex++]);
- }
- grammarID = 2407;
- } else if (1==1) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- done = 1;
- }
- grammarID = 3;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 2407:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}Sensor), END_ELEMENT] */
- if (v2gSensorListType_Sensor_currArrayIndex < v2gSensorListType->Sensor.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- errn = encode_v2gSensorType(stream, &v2gSensorListType->Sensor.array [v2gSensorListType_Sensor_currArrayIndex++]);
- }
- grammarID = 2408;
- } else if (1==1) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- done = 1;
- }
- grammarID = 3;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 2408:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}Sensor), END_ELEMENT] */
- if (v2gSensorListType_Sensor_currArrayIndex < v2gSensorListType->Sensor.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- errn = encode_v2gSensorType(stream, &v2gSensorListType->Sensor.array [v2gSensorListType_Sensor_currArrayIndex++]);
- }
- grammarID = 2409;
- } else if (1==1) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- done = 1;
- }
- grammarID = 3;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 2409:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}Sensor), END_ELEMENT] */
- if (v2gSensorListType_Sensor_currArrayIndex < v2gSensorListType->Sensor.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- errn = encode_v2gSensorType(stream, &v2gSensorListType->Sensor.array [v2gSensorListType_Sensor_currArrayIndex++]);
- }
- grammarID = 2410;
- } else if (1==1) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- done = 1;
- }
- grammarID = 3;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 2410:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}Sensor), END_ELEMENT] */
- if (v2gSensorListType_Sensor_currArrayIndex < v2gSensorListType->Sensor.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- errn = encode_v2gSensorType(stream, &v2gSensorListType->Sensor.array [v2gSensorListType_Sensor_currArrayIndex++]);
- }
- grammarID = 2411;
- } else if (1==1) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- done = 1;
- }
- grammarID = 3;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 2411:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}Sensor), END_ELEMENT] */
- if (v2gSensorListType_Sensor_currArrayIndex < v2gSensorListType->Sensor.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- errn = encode_v2gSensorType(stream, &v2gSensorListType->Sensor.array [v2gSensorListType_Sensor_currArrayIndex++]);
- }
- grammarID = 2412;
- } else if (1==1) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- done = 1;
- }
- grammarID = 3;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 2412:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}Sensor), END_ELEMENT] */
- if (v2gSensorListType_Sensor_currArrayIndex < v2gSensorListType->Sensor.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- errn = encode_v2gSensorType(stream, &v2gSensorListType->Sensor.array [v2gSensorListType_Sensor_currArrayIndex++]);
- }
- grammarID = 2413;
- } else if (1==1) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- done = 1;
- }
- grammarID = 3;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 2413:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}Sensor), END_ELEMENT] */
- if (v2gSensorListType_Sensor_currArrayIndex < v2gSensorListType->Sensor.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- errn = encode_v2gSensorType(stream, &v2gSensorListType->Sensor.array [v2gSensorListType_Sensor_currArrayIndex++]);
- }
- grammarID = 2414;
- } else if (1==1) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- done = 1;
- }
- grammarID = 3;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 2414:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}Sensor), END_ELEMENT] */
- if (v2gSensorListType_Sensor_currArrayIndex < v2gSensorListType->Sensor.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- errn = encode_v2gSensorType(stream, &v2gSensorListType->Sensor.array [v2gSensorListType_Sensor_currArrayIndex++]);
- }
- 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:2016:MsgBody,PairingReqType', base type name='BodyBaseType', content type='ELEMENT', isAbstract='false', hasTypeId='false', final='0', block='0', particle='("urn:iso:15118:2:2016:MsgBody":EVProcessing,"urn:iso:15118:2:2016:MsgBody":PairingParameters{0-1})', derivedBy='EXTENSION'. */
-static int encode_v2gPairingReqType(bitstream_t* stream, struct v2gPairingReqType* v2gPairingReqType) {
- int grammarID = 2415;
- int done = 0;
-
-
- while(!done) {
- switch(grammarID) {
- case 2415:
- /* FirstStartTag[START_ELEMENT({urn:iso:15118:2:2016:MsgBody}EVProcessing)] */
- 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, v2gPairingReqType->EVProcessing);
- /* valid EE */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- }
- }
- grammarID = 1223;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 1223:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgBody}PairingParameters), END_ELEMENT] */
- if ( v2gPairingReqType->PairingParameters_isUsed == 1u ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- errn = encode_v2gParameterSetType(stream, &v2gPairingReqType->PairingParameters );
- }
- 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:2016:MsgBody,DisconnectChargingDeviceReqType', base type name='BodyBaseType', content type='ELEMENT', isAbstract='false', hasTypeId='false', final='0', block='0', particle='("urn:iso:15118:2:2016:MsgBody":EVElectricalChargingDeviceStatus,"urn:iso:15118:2:2016:MsgBody":EVMechanicalChargingDeviceStatus)', derivedBy='EXTENSION'. */
-static int encode_v2gDisconnectChargingDeviceReqType(bitstream_t* stream, struct v2gDisconnectChargingDeviceReqType* v2gDisconnectChargingDeviceReqType) {
- int grammarID = 2147;
- int done = 0;
-
-
- while(!done) {
- switch(grammarID) {
- case 2147:
- /* FirstStartTag[START_ELEMENT({urn:iso:15118:2:2016:MsgBody}EVElectricalChargingDeviceStatus)] */
- 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, 1, v2gDisconnectChargingDeviceReqType->EVElectricalChargingDeviceStatus);
- /* valid EE */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- }
- }
- grammarID = 917;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 917:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgBody}EVMechanicalChargingDeviceStatus)] */
- 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, v2gDisconnectChargingDeviceReqType->EVMechanicalChargingDeviceStatus);
- /* valid EE */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- }
- }
- grammarID = 2;
- } 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:2016:MsgDataTypes,ParameterType', base type name='anyType', content type='ELEMENT', isAbstract='false', hasTypeId='false', final='0', block='0', particle='("urn:iso:15118:2:2016:MsgDataTypes":boolValue|"urn:iso:15118:2:2016:MsgDataTypes":byteValue|"urn:iso:15118:2:2016:MsgDataTypes":shortValue|"urn:iso:15118:2:2016:MsgDataTypes":intValue|"urn:iso:15118:2:2016:MsgDataTypes":physicalValue|"urn:iso:15118:2:2016:MsgDataTypes":stringValue)', derivedBy='RESTRICTION'. */
-static int encode_v2gParameterType(bitstream_t* stream, struct v2gParameterType* v2gParameterType) {
- int grammarID = 2416;
- int done = 0;
-
-
- while(!done) {
- switch(grammarID) {
- case 2416:
- /* FirstStartTag[ATTRIBUTE[STRING]({urn:iso:15118:2:2016:MsgDataTypes}Name)] */
- if (1==1) {
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- if(errn == 0) {
- /* encode string as string table miss (+2 len)*/
- errn = encodeUnsignedInteger16(stream, (uint16_t)(v2gParameterType->Name.charactersLen + 2));
- if (errn == 0) {
- errn = encodeCharacters(stream, v2gParameterType->Name.characters, v2gParameterType->Name.charactersLen);
- }
- }
- grammarID = 2417;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 2417:
- /* StartTag[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}boolValue), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}byteValue), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}shortValue), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}intValue), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}physicalValue), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}stringValue)] */
- if ( v2gParameterType->boolValue_isUsed == 1u ) {
- errn = encodeNBitUnsignedInteger(stream, 3, 0);
- if(errn == 0) {
- /* FirstStartTag[CHARACTERS[BOOLEAN]] */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- if(errn == 0) {
- errn = encodeBoolean(stream, v2gParameterType->boolValue);
- /* valid EE */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- }
- }
- grammarID = 2;
- } else if ( v2gParameterType->byteValue_isUsed == 1u ) {
- errn = encodeNBitUnsignedInteger(stream, 3, 1);
- if(errn == 0) {
- /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- if(errn == 0) {
- errn = encodeNBitUnsignedInteger(stream, 8, (uint32_t)(v2gParameterType->byteValue + 128));
- /* valid EE */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- }
- }
- grammarID = 2;
- } else if ( v2gParameterType->shortValue_isUsed == 1u ) {
- errn = encodeNBitUnsignedInteger(stream, 3, 2);
- if(errn == 0) {
- /* First(xsi:type)StartTag[CHARACTERS[INTEGER]] */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- if(errn == 0) {
- errn = encodeInteger16(stream, v2gParameterType->shortValue);
- /* valid EE */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- }
- }
- grammarID = 2;
- } else if ( v2gParameterType->intValue_isUsed == 1u ) {
- errn = encodeNBitUnsignedInteger(stream, 3, 3);
- if(errn == 0) {
- /* First(xsi:type)StartTag[CHARACTERS[INTEGER]] */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- if(errn == 0) {
- errn = encodeInteger32(stream, v2gParameterType->intValue);
- /* valid EE */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- }
- }
- grammarID = 2;
- } else if ( v2gParameterType->physicalValue_isUsed == 1u ) {
- errn = encodeNBitUnsignedInteger(stream, 3, 4);
- if(errn == 0) {
- errn = encode_v2gPhysicalValueType(stream, &v2gParameterType->physicalValue );
- }
- grammarID = 2;
- } else if ( v2gParameterType->stringValue_isUsed == 1u ) {
- errn = encodeNBitUnsignedInteger(stream, 3, 5);
- if(errn == 0) {
- /* First(xsi:type)StartTag[CHARACTERS[STRING]] */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- if(errn == 0) {
- /* encode string as string table miss (+2 len)*/
- errn = encodeUnsignedInteger16(stream, (uint16_t)(v2gParameterType->stringValue.charactersLen + 2));
- if (errn == 0) {
- errn = encodeCharacters(stream, v2gParameterType->stringValue.characters, v2gParameterType->stringValue.charactersLen);
- }
- /* valid EE */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- }
- }
- grammarID = 2;
- } 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:2016:MsgDataTypes,EVSEFinePositioningParametersType', base type name='anyType', content type='EMPTY', isAbstract='true', hasTypeId='false', final='0', block='0', derivedBy='RESTRICTION'. */
-static int encode_v2gEVSEFinePositioningParametersType(bitstream_t* stream, struct v2gEVSEFinePositioningParametersType* v2gEVSEFinePositioningParametersType) {
- int grammarID = 4;
- int done = 0;
-
-
- while(!done) {
- switch(grammarID) {
- case 4:
- /* FirstStartTag[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:2016:MsgDataTypes,AC_EVSEChargeParameterType', base type name='EVSEEnergyTransferParameterType', content type='ELEMENT', isAbstract='false', hasTypeId='false', final='0', block='0', particle='("urn:iso:15118:2:2016:MsgDataTypes":EVSEMaximumChargeCurrent,"urn:iso:15118:2:2016:MsgDataTypes":EVSENominalVoltage,"urn:iso:15118:2:2016:MsgDataTypes":EVSENominalFrequency)', derivedBy='EXTENSION'. */
-static int encode_v2gAC_EVSEChargeParameterType(bitstream_t* stream, struct v2gAC_EVSEChargeParameterType* v2gAC_EVSEChargeParameterType) {
- int grammarID = 2418;
- int done = 0;
-
-
- while(!done) {
- switch(grammarID) {
- case 2418:
- /* FirstStartTag[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}EVSEMaximumChargeCurrent)] */
- if ( 1 == 1 ) {
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- if(errn == 0) {
- errn = encode_v2gPhysicalValueType(stream, &v2gAC_EVSEChargeParameterType->EVSEMaximumChargeCurrent );
- }
- grammarID = 2419;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 2419:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}EVSENominalVoltage)] */
- if ( 1 == 1 ) {
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- if(errn == 0) {
- errn = encode_v2gPhysicalValueType(stream, &v2gAC_EVSEChargeParameterType->EVSENominalVoltage );
- }
- grammarID = 578;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 578:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}EVSENominalFrequency)] */
- if ( 1 == 1 ) {
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- if(errn == 0) {
- errn = encode_v2gPhysicalValueType(stream, &v2gAC_EVSEChargeParameterType->EVSENominalFrequency );
- }
- grammarID = 2;
- } 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:2016:MsgBody,ServiceDiscoveryReqType', base type name='BodyBaseType', content type='ELEMENT', isAbstract='false', hasTypeId='false', final='0', block='0', particle='("urn:iso:15118:2:2016:MsgBody":SupportedServiceIDs{0-1})', derivedBy='EXTENSION'. */
-static int encode_v2gServiceDiscoveryReqType(bitstream_t* stream, struct v2gServiceDiscoveryReqType* v2gServiceDiscoveryReqType) {
- int grammarID = 2420;
- int done = 0;
-
-
- while(!done) {
- switch(grammarID) {
- case 2420:
- /* FirstStartTag[START_ELEMENT({urn:iso:15118:2:2016:MsgBody}SupportedServiceIDs), END_ELEMENT] */
- if ( v2gServiceDiscoveryReqType->SupportedServiceIDs_isUsed == 1u ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- errn = encode_v2gServiceIDListType(stream, &v2gServiceDiscoveryReqType->SupportedServiceIDs );
- }
- 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:2016:MsgBody,ConnectChargingDeviceResType', base type name='V2GResponseType', content type='ELEMENT', isAbstract='false', hasTypeId='false', final='0', block='0', particle='(("urn:iso:15118:2:2016:MsgBody":ResponseCode,"urn:iso:15118:2:2016:MsgBody":EVSEStatus{0-1}),("urn:iso:15118:2:2016:MsgBody":EVSEProcessing,"urn:iso:15118:2:2016:MsgBody":EVSEElectricalChargingDeviceStatus,"urn:iso:15118:2:2016:MsgBody":EVSEMechanicalChargingDeviceStatus))', derivedBy='EXTENSION'. */
-static int encode_v2gConnectChargingDeviceResType(bitstream_t* stream, struct v2gConnectChargingDeviceResType* v2gConnectChargingDeviceResType) {
- int grammarID = 2421;
- int done = 0;
-
-
- while(!done) {
- switch(grammarID) {
- case 2421:
- /* FirstStartTag[START_ELEMENT({urn:iso:15118:2:2016:MsgBody}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, 5, v2gConnectChargingDeviceResType->ResponseCode);
- /* valid EE */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- }
- }
- grammarID = 2422;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 2422:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgBody}EVSEStatus), START_ELEMENT({urn:iso:15118:2:2016:MsgBody}EVSEProcessing)] */
- if ( v2gConnectChargingDeviceResType->EVSEStatus_isUsed == 1u ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- errn = encode_v2gEVSEStatusType(stream, &v2gConnectChargingDeviceResType->EVSEStatus );
- }
- grammarID = 2423;
- } else if ( 1 == 1 ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- /* FirstStartTag[CHARACTERS[ENUMERATION]] */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- if(errn == 0) {
- errn = encodeNBitUnsignedInteger(stream, 2, v2gConnectChargingDeviceResType->EVSEProcessing);
- /* valid EE */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- }
- }
- grammarID = 2424;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 2423:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgBody}EVSEProcessing)] */
- 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, v2gConnectChargingDeviceResType->EVSEProcessing);
- /* valid EE */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- }
- }
- grammarID = 2424;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 2424:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgBody}EVSEElectricalChargingDeviceStatus)] */
- 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, 1, v2gConnectChargingDeviceResType->EVSEElectricalChargingDeviceStatus);
- /* valid EE */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- }
- }
- grammarID = 1519;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 1519:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgBody}EVSEMechanicalChargingDeviceStatus)] */
- 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, v2gConnectChargingDeviceResType->EVSEMechanicalChargingDeviceStatus);
- /* valid EE */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- }
- }
- grammarID = 2;
- } 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:2016:MsgBody,PowerDemandReqType', base type name='ChargeLoopReqType', content type='ELEMENT', isAbstract='false', hasTypeId='false', final='0', block='0', particle='(("urn:iso:15118:2:2016:MsgBody":EVTargetEnergyRequest,"urn:iso:15118:2:2016:MsgBody":EVMaximumEnergyRequest{0-1},"urn:iso:15118:2:2016:MsgBody":EVMinimumEnergyRequest{0-1},"urn:iso:15118:2:2016:MsgBody":DisplayParameters{0-1}),("urn:iso:15118:2:2016:MsgBody":EVTargetPower,"urn:iso:15118:2:2016:MsgBody":EVInputPower,"urn:iso:15118:2:2016:MsgBody":PowerDemandParameters{0-1}))', derivedBy='EXTENSION'. */
-static int encode_v2gPowerDemandReqType(bitstream_t* stream, struct v2gPowerDemandReqType* v2gPowerDemandReqType) {
- int grammarID = 2425;
- int done = 0;
-
-
- while(!done) {
- switch(grammarID) {
- case 2425:
- /* FirstStartTag[START_ELEMENT({urn:iso:15118:2:2016:MsgBody}EVTargetEnergyRequest)] */
- if ( 1 == 1 ) {
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- if(errn == 0) {
- errn = encode_v2gPhysicalValueType(stream, &v2gPowerDemandReqType->EVTargetEnergyRequest );
- }
- grammarID = 2426;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 2426:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgBody}EVMaximumEnergyRequest), START_ELEMENT({urn:iso:15118:2:2016:MsgBody}EVMinimumEnergyRequest), START_ELEMENT({urn:iso:15118:2:2016:MsgBody}DisplayParameters), START_ELEMENT({urn:iso:15118:2:2016:MsgBody}EVTargetPower)] */
- if ( v2gPowerDemandReqType->EVMaximumEnergyRequest_isUsed == 1u ) {
- errn = encodeNBitUnsignedInteger(stream, 3, 0);
- if(errn == 0) {
- errn = encode_v2gPhysicalValueType(stream, &v2gPowerDemandReqType->EVMaximumEnergyRequest );
- }
- grammarID = 2427;
- } else if ( v2gPowerDemandReqType->EVMinimumEnergyRequest_isUsed == 1u ) {
- errn = encodeNBitUnsignedInteger(stream, 3, 1);
- if(errn == 0) {
- errn = encode_v2gPhysicalValueType(stream, &v2gPowerDemandReqType->EVMinimumEnergyRequest );
- }
- grammarID = 2428;
- } else if ( v2gPowerDemandReqType->DisplayParameters_isUsed == 1u ) {
- errn = encodeNBitUnsignedInteger(stream, 3, 2);
- if(errn == 0) {
- errn = encode_v2gDisplayParametersType(stream, &v2gPowerDemandReqType->DisplayParameters );
- }
- grammarID = 2429;
- } else if ( 1 == 1 ) {
- errn = encodeNBitUnsignedInteger(stream, 3, 3);
- if(errn == 0) {
- errn = encode_v2gPhysicalValueType(stream, &v2gPowerDemandReqType->EVTargetPower );
- }
- grammarID = 2430;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 2427:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgBody}EVMinimumEnergyRequest), START_ELEMENT({urn:iso:15118:2:2016:MsgBody}DisplayParameters), START_ELEMENT({urn:iso:15118:2:2016:MsgBody}EVTargetPower)] */
- if ( v2gPowerDemandReqType->EVMinimumEnergyRequest_isUsed == 1u ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- errn = encode_v2gPhysicalValueType(stream, &v2gPowerDemandReqType->EVMinimumEnergyRequest );
- }
- grammarID = 2428;
- } else if ( v2gPowerDemandReqType->DisplayParameters_isUsed == 1u ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- errn = encode_v2gDisplayParametersType(stream, &v2gPowerDemandReqType->DisplayParameters );
- }
- grammarID = 2429;
- } else if ( 1 == 1 ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 2);
- if(errn == 0) {
- errn = encode_v2gPhysicalValueType(stream, &v2gPowerDemandReqType->EVTargetPower );
- }
- grammarID = 2430;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 2428:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgBody}DisplayParameters), START_ELEMENT({urn:iso:15118:2:2016:MsgBody}EVTargetPower)] */
- if ( v2gPowerDemandReqType->DisplayParameters_isUsed == 1u ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- errn = encode_v2gDisplayParametersType(stream, &v2gPowerDemandReqType->DisplayParameters );
- }
- grammarID = 2429;
- } else if ( 1 == 1 ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- errn = encode_v2gPhysicalValueType(stream, &v2gPowerDemandReqType->EVTargetPower );
- }
- grammarID = 2430;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 2429:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgBody}EVTargetPower)] */
- if ( 1 == 1 ) {
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- if(errn == 0) {
- errn = encode_v2gPhysicalValueType(stream, &v2gPowerDemandReqType->EVTargetPower );
- }
- grammarID = 2430;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 2430:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgBody}EVInputPower)] */
- if ( 1 == 1 ) {
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- if(errn == 0) {
- errn = encode_v2gPhysicalValueType(stream, &v2gPowerDemandReqType->EVInputPower );
- }
- grammarID = 2431;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 2431:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgBody}PowerDemandParameters), END_ELEMENT] */
- if ( v2gPowerDemandReqType->PowerDemandParameters_isUsed == 1u ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- errn = encode_v2gParameterSetType(stream, &v2gPowerDemandReqType->PowerDemandParameters );
- }
- 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:2016:MsgDataTypes,LFA_EVFinePositioningParametersType', base type name='EVFinePositioningParametersType', content type='ELEMENT', isAbstract='false', hasTypeId='false', final='0', block='0', particle='("urn:iso:15118:2:2016:MsgDataTypes":NumberOfSignalPackages,"urn:iso:15118:2:2016:MsgDataTypes":SensorPackageList)', derivedBy='EXTENSION'. */
-static int encode_v2gLFA_EVFinePositioningParametersType(bitstream_t* stream, struct v2gLFA_EVFinePositioningParametersType* v2gLFA_EVFinePositioningParametersType) {
- int grammarID = 57;
- int done = 0;
-
-
- while(!done) {
- switch(grammarID) {
- case 57:
- /* FirstStartTag[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}NumberOfSignalPackages)] */
- if ( 1 == 1 ) {
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- if(errn == 0) {
- /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- if(errn == 0) {
- errn = encodeNBitUnsignedInteger(stream, 8, (uint32_t)(v2gLFA_EVFinePositioningParametersType->NumberOfSignalPackages - 0));
- /* valid EE */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- }
- }
- grammarID = 58;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 58:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorPackageList)] */
- if ( 1 == 1 ) {
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- if(errn == 0) {
- errn = encode_v2gSensorPackageListType(stream, &v2gLFA_EVFinePositioningParametersType->SensorPackageList );
- }
- grammarID = 2;
- } 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='http://www.w3.org/2000/09/xmldsig#,TransformType', base type name='anyType', content type='MIXED', isAbstract='false', hasTypeId='false', final='0', block='0', particle='((WC[##other:"http://www.w3.org/2000/09/xmldsig#"])|"http://www.w3.org/2000/09/xmldsig#":XPath){0-UNBOUNDED}', derivedBy='RESTRICTION'. */
-static int encode_v2gTransformType(bitstream_t* stream, struct v2gTransformType* v2gTransformType) {
- int grammarID = 2432;
- int done = 0;
- int wcDone = 0;
-
- unsigned int v2gTransformType_XPath_currArrayIndex = 0;
-
- while(!done) {
- switch(grammarID) {
- case 2432:
- /* FirstStartTag[ATTRIBUTE[STRING](Algorithm)] */
- if (1==1) {
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- if(errn == 0) {
- /* encode string as string table miss (+2 len)*/
- errn = encodeUnsignedInteger16(stream, (uint16_t)(v2gTransformType->Algorithm.charactersLen + 2));
- if (errn == 0) {
- errn = encodeCharacters(stream, v2gTransformType->Algorithm.characters, v2gTransformType->Algorithm.charactersLen);
- }
- }
- grammarID = 2433;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 2433:
- /* StartTag[START_ELEMENT({http://www.w3.org/2000/09/xmldsig#}XPath), START_ELEMENT_GENERIC, END_ELEMENT, CHARACTERS_GENERIC[STRING]] */
- if (v2gTransformType_XPath_currArrayIndex < v2gTransformType->XPath.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 3, 0);
- if(errn == 0) {
- /* First(xsi:type)StartTag[CHARACTERS[STRING]] */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- if(errn == 0) {
- /* encode string as string table miss (+2 len)*/
- errn = encodeUnsignedInteger16(stream, (uint16_t)(v2gTransformType->XPath.array[v2gTransformType_XPath_currArrayIndex].charactersLen + 2));
- if (errn == 0) {
- errn = encodeCharacters(stream, v2gTransformType->XPath.array[v2gTransformType_XPath_currArrayIndex].characters, v2gTransformType->XPath.array[v2gTransformType_XPath_currArrayIndex].charactersLen);
- v2gTransformType_XPath_currArrayIndex++;
- }
- /* valid EE */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- }
- }
- grammarID = 2434;
- } else if (1==0) {
- errn = EXI_UNSUPPORTED_EVENT_CODE_CHARACTERISTICS;
- grammarID = 2434;
- } else if ( v2gTransformType->ANY_isUsed == 0u || wcDone ) {
- errn = encodeNBitUnsignedInteger(stream, 3, 2);
- if(errn == 0) {
- done = 1;
- }
- grammarID = 3;
- } else if ( v2gTransformType->ANY_isUsed == 1u ) {
- errn = encodeNBitUnsignedInteger(stream, 3, 3);
- if(errn == 0) {
- /* encode string as string table miss (+2 len)*/
- errn = encodeUnsignedInteger16(stream, (uint16_t)(v2gTransformType->ANY.charactersLen + 2));
- if (errn == 0) {
- errn = encodeCharacters(stream, v2gTransformType->ANY.characters, v2gTransformType->ANY.charactersLen);
- }
- }
- wcDone = 1;
- grammarID = 2434;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 2434:
- /* Element[START_ELEMENT({http://www.w3.org/2000/09/xmldsig#}XPath), START_ELEMENT_GENERIC, END_ELEMENT, CHARACTERS_GENERIC[STRING]] */
- if (v2gTransformType_XPath_currArrayIndex < v2gTransformType->XPath.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 3, 0);
- if(errn == 0) {
- /* First(xsi:type)StartTag[CHARACTERS[STRING]] */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- if(errn == 0) {
- /* encode string as string table miss (+2 len)*/
- errn = encodeUnsignedInteger16(stream, (uint16_t)(v2gTransformType->XPath.array[v2gTransformType_XPath_currArrayIndex].charactersLen + 2));
- if (errn == 0) {
- errn = encodeCharacters(stream, v2gTransformType->XPath.array[v2gTransformType_XPath_currArrayIndex].characters, v2gTransformType->XPath.array[v2gTransformType_XPath_currArrayIndex].charactersLen);
- v2gTransformType_XPath_currArrayIndex++;
- }
- /* valid EE */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- }
- }
- grammarID = 2434;
- } else if (1==0) {
- errn = EXI_UNSUPPORTED_EVENT_CODE_CHARACTERISTICS;
- grammarID = 2434;
- } else if ( v2gTransformType->ANY_isUsed == 0u || wcDone ) {
- errn = encodeNBitUnsignedInteger(stream, 3, 2);
- if(errn == 0) {
- done = 1;
- }
- grammarID = 3;
- } else if ( v2gTransformType->ANY_isUsed == 1u ) {
- errn = encodeNBitUnsignedInteger(stream, 3, 3);
- if(errn == 0) {
- /* encode string as string table miss (+2 len)*/
- errn = encodeUnsignedInteger16(stream, (uint16_t)(v2gTransformType->ANY.charactersLen + 2));
- if (errn == 0) {
- errn = encodeCharacters(stream, v2gTransformType->ANY.characters, v2gTransformType->ANY.charactersLen);
- }
- }
- wcDone = 1;
- grammarID = 2434;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- default:
- errn = EXI_ERROR_UNKOWN_GRAMMAR_ID;
- break;
- }
- if(errn) {
- done = 1;
- }
- }
- return errn;
-}
-
-/* Complex type name='http://www.w3.org/2000/09/xmldsig#,ObjectType', base type name='anyType', content type='MIXED', isAbstract='false', hasTypeId='false', final='0', block='0', particle='((WC[##any])){0-UNBOUNDED}', derivedBy='RESTRICTION'. */
-static int encode_v2gObjectType(bitstream_t* stream, struct v2gObjectType* v2gObjectType) {
- int grammarID = 2435;
- int done = 0;
- int wcDone = 0;
-
-
- while(!done) {
- switch(grammarID) {
- case 2435:
- /* FirstStartTag[ATTRIBUTE[STRING](Encoding), ATTRIBUTE[STRING](Id), ATTRIBUTE[STRING](MimeType), START_ELEMENT_GENERIC, END_ELEMENT, CHARACTERS_GENERIC[STRING]] */
- if ( v2gObjectType->Encoding_isUsed == 1u ) {
- errn = encodeNBitUnsignedInteger(stream, 3, 0);
- if(errn == 0) {
- /* encode string as string table miss (+2 len)*/
- errn = encodeUnsignedInteger16(stream, (uint16_t)(v2gObjectType->Encoding.charactersLen + 2));
- if (errn == 0) {
- errn = encodeCharacters(stream, v2gObjectType->Encoding.characters, v2gObjectType->Encoding.charactersLen);
- }
- }
- grammarID = 2436;
- } else if ( v2gObjectType->Id_isUsed == 1u ) {
- errn = encodeNBitUnsignedInteger(stream, 3, 1);
- if(errn == 0) {
- /* encode string as string table miss (+2 len)*/
- errn = encodeUnsignedInteger16(stream, (uint16_t)(v2gObjectType->Id.charactersLen + 2));
- if (errn == 0) {
- errn = encodeCharacters(stream, v2gObjectType->Id.characters, v2gObjectType->Id.charactersLen);
- }
- }
- grammarID = 2437;
- } else if ( v2gObjectType->MimeType_isUsed == 1u ) {
- errn = encodeNBitUnsignedInteger(stream, 3, 2);
- if(errn == 0) {
- /* encode string as string table miss (+2 len)*/
- errn = encodeUnsignedInteger16(stream, (uint16_t)(v2gObjectType->MimeType.charactersLen + 2));
- if (errn == 0) {
- errn = encodeCharacters(stream, v2gObjectType->MimeType.characters, v2gObjectType->MimeType.charactersLen);
- }
- }
- grammarID = 1848;
- } else if (1==0) {
- errn = EXI_UNSUPPORTED_EVENT_CODE_CHARACTERISTICS;
- grammarID = 904;
- } else if ( v2gObjectType->ANY_isUsed == 0u || wcDone ) {
- errn = encodeNBitUnsignedInteger(stream, 3, 4);
- if(errn == 0) {
- done = 1;
- }
- grammarID = 3;
- } else if ( v2gObjectType->ANY_isUsed == 1u ) {
- errn = encodeNBitUnsignedInteger(stream, 3, 5);
- if(errn == 0) {
- /* encode string as string table miss (+2 len)*/
- errn = encodeUnsignedInteger16(stream, (uint16_t)(v2gObjectType->ANY.charactersLen + 2));
- if (errn == 0) {
- errn = encodeCharacters(stream, v2gObjectType->ANY.characters, v2gObjectType->ANY.charactersLen);
- }
- }
- wcDone = 1;
- grammarID = 904;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 2436:
- /* StartTag[ATTRIBUTE[STRING](Id), ATTRIBUTE[STRING](MimeType), START_ELEMENT_GENERIC, END_ELEMENT, CHARACTERS_GENERIC[STRING]] */
- if ( v2gObjectType->Id_isUsed == 1u ) {
- errn = encodeNBitUnsignedInteger(stream, 3, 0);
- if(errn == 0) {
- /* encode string as string table miss (+2 len)*/
- errn = encodeUnsignedInteger16(stream, (uint16_t)(v2gObjectType->Id.charactersLen + 2));
- if (errn == 0) {
- errn = encodeCharacters(stream, v2gObjectType->Id.characters, v2gObjectType->Id.charactersLen);
- }
- }
- grammarID = 2437;
- } else if ( v2gObjectType->MimeType_isUsed == 1u ) {
- errn = encodeNBitUnsignedInteger(stream, 3, 1);
- if(errn == 0) {
- /* encode string as string table miss (+2 len)*/
- errn = encodeUnsignedInteger16(stream, (uint16_t)(v2gObjectType->MimeType.charactersLen + 2));
- if (errn == 0) {
- errn = encodeCharacters(stream, v2gObjectType->MimeType.characters, v2gObjectType->MimeType.charactersLen);
- }
- }
- grammarID = 1848;
- } else if (1==0) {
- errn = EXI_UNSUPPORTED_EVENT_CODE_CHARACTERISTICS;
- grammarID = 904;
- } else if ( v2gObjectType->ANY_isUsed == 0u || wcDone ) {
- errn = encodeNBitUnsignedInteger(stream, 3, 3);
- if(errn == 0) {
- done = 1;
- }
- grammarID = 3;
- } else if ( v2gObjectType->ANY_isUsed == 1u ) {
- errn = encodeNBitUnsignedInteger(stream, 3, 4);
- if(errn == 0) {
- /* encode string as string table miss (+2 len)*/
- errn = encodeUnsignedInteger16(stream, (uint16_t)(v2gObjectType->ANY.charactersLen + 2));
- if (errn == 0) {
- errn = encodeCharacters(stream, v2gObjectType->ANY.characters, v2gObjectType->ANY.charactersLen);
- }
- }
- wcDone = 1;
- grammarID = 904;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 2437:
- /* StartTag[ATTRIBUTE[STRING](MimeType), START_ELEMENT_GENERIC, END_ELEMENT, CHARACTERS_GENERIC[STRING]] */
- if ( v2gObjectType->MimeType_isUsed == 1u ) {
- errn = encodeNBitUnsignedInteger(stream, 3, 0);
- if(errn == 0) {
- /* encode string as string table miss (+2 len)*/
- errn = encodeUnsignedInteger16(stream, (uint16_t)(v2gObjectType->MimeType.charactersLen + 2));
- if (errn == 0) {
- errn = encodeCharacters(stream, v2gObjectType->MimeType.characters, v2gObjectType->MimeType.charactersLen);
- }
- }
- grammarID = 1848;
- } else if (1==0) {
- errn = EXI_UNSUPPORTED_EVENT_CODE_CHARACTERISTICS;
- grammarID = 904;
- } else if ( v2gObjectType->ANY_isUsed == 0u || wcDone ) {
- errn = encodeNBitUnsignedInteger(stream, 3, 2);
- if(errn == 0) {
- done = 1;
- }
- grammarID = 3;
- } else if ( v2gObjectType->ANY_isUsed == 1u ) {
- errn = encodeNBitUnsignedInteger(stream, 3, 3);
- if(errn == 0) {
- /* encode string as string table miss (+2 len)*/
- errn = encodeUnsignedInteger16(stream, (uint16_t)(v2gObjectType->ANY.charactersLen + 2));
- if (errn == 0) {
- errn = encodeCharacters(stream, v2gObjectType->ANY.characters, v2gObjectType->ANY.charactersLen);
- }
- }
- wcDone = 1;
- grammarID = 904;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 1848:
- /* StartTag[START_ELEMENT_GENERIC, END_ELEMENT, CHARACTERS_GENERIC[STRING]] */
- if (1==0) {
- errn = EXI_UNSUPPORTED_EVENT_CODE_CHARACTERISTICS;
- grammarID = 904;
- } else if ( v2gObjectType->ANY_isUsed == 0u || wcDone ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- done = 1;
- }
- grammarID = 3;
- } else if ( v2gObjectType->ANY_isUsed == 1u ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 2);
- if(errn == 0) {
- /* encode string as string table miss (+2 len)*/
- errn = encodeUnsignedInteger16(stream, (uint16_t)(v2gObjectType->ANY.charactersLen + 2));
- if (errn == 0) {
- errn = encodeCharacters(stream, v2gObjectType->ANY.characters, v2gObjectType->ANY.charactersLen);
- }
- }
- wcDone = 1;
- grammarID = 904;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 904:
- /* Element[START_ELEMENT_GENERIC, END_ELEMENT, CHARACTERS_GENERIC[STRING]] */
- if (1==0) {
- errn = EXI_UNSUPPORTED_EVENT_CODE_CHARACTERISTICS;
- grammarID = 904;
- } else if ( v2gObjectType->ANY_isUsed == 0u || wcDone ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- done = 1;
- }
- grammarID = 3;
- } else if ( v2gObjectType->ANY_isUsed == 1u ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 2);
- if(errn == 0) {
- /* encode string as string table miss (+2 len)*/
- errn = encodeUnsignedInteger16(stream, (uint16_t)(v2gObjectType->ANY.charactersLen + 2));
- if (errn == 0) {
- errn = encodeCharacters(stream, v2gObjectType->ANY.characters, v2gObjectType->ANY.charactersLen);
- }
- }
- wcDone = 1;
- grammarID = 904;
- } 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:2016:MsgBody,PowerDeliveryReqType', base type name='BodyBaseType', content type='ELEMENT', isAbstract='false', hasTypeId='false', final='0', block='0', particle='("urn:iso:15118:2:2016:MsgBody":ChargeProgress,"urn:iso:15118:2:2016:MsgBody":EVOperation{0-1},"urn:iso:15118:2:2016:MsgBody":SAScheduleTupleID{0-1},"urn:iso:15118:2:2016:MsgBody":ChargingProfile{0-1})', derivedBy='EXTENSION'. */
-static int encode_v2gPowerDeliveryReqType(bitstream_t* stream, struct v2gPowerDeliveryReqType* v2gPowerDeliveryReqType) {
- int grammarID = 2438;
- int done = 0;
-
-
- while(!done) {
- switch(grammarID) {
- case 2438:
- /* FirstStartTag[START_ELEMENT({urn:iso:15118:2:2016:MsgBody}ChargeProgress)] */
- 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, v2gPowerDeliveryReqType->ChargeProgress);
- /* valid EE */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- }
- }
- grammarID = 2439;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 2439:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgBody}EVOperation), START_ELEMENT({urn:iso:15118:2:2016:MsgBody}SAScheduleTupleID), START_ELEMENT({urn:iso:15118:2:2016:MsgBody}ChargingProfile), END_ELEMENT] */
- if ( v2gPowerDeliveryReqType->EVOperation_isUsed == 1u ) {
- errn = encodeNBitUnsignedInteger(stream, 3, 0);
- if(errn == 0) {
- /* FirstStartTag[CHARACTERS[ENUMERATION]] */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- if(errn == 0) {
- errn = encodeNBitUnsignedInteger(stream, 1, v2gPowerDeliveryReqType->EVOperation);
- /* valid EE */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- }
- }
- grammarID = 2440;
- } else if ( v2gPowerDeliveryReqType->SAScheduleTupleID_isUsed == 1u ) {
- errn = encodeNBitUnsignedInteger(stream, 3, 1);
- if(errn == 0) {
- /* FirstStartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- if(errn == 0) {
- errn = encodeNBitUnsignedInteger(stream, 8, (uint32_t)(v2gPowerDeliveryReqType->SAScheduleTupleID - 1));
- /* valid EE */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- }
- }
- grammarID = 2441;
- } else if ( v2gPowerDeliveryReqType->ChargingProfile_isUsed == 1u ) {
- errn = encodeNBitUnsignedInteger(stream, 3, 2);
- if(errn == 0) {
- errn = encode_v2gChargingProfileType(stream, &v2gPowerDeliveryReqType->ChargingProfile );
- }
- grammarID = 2;
- } else if (1==1) {
- errn = encodeNBitUnsignedInteger(stream, 3, 3);
- if(errn == 0) {
- done = 1;
- }
- grammarID = 3;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 2440:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgBody}SAScheduleTupleID), START_ELEMENT({urn:iso:15118:2:2016:MsgBody}ChargingProfile), END_ELEMENT] */
- if ( v2gPowerDeliveryReqType->SAScheduleTupleID_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)(v2gPowerDeliveryReqType->SAScheduleTupleID - 1));
- /* valid EE */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- }
- }
- grammarID = 2441;
- } else if ( v2gPowerDeliveryReqType->ChargingProfile_isUsed == 1u ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- errn = encode_v2gChargingProfileType(stream, &v2gPowerDeliveryReqType->ChargingProfile );
- }
- grammarID = 2;
- } else if (1==1) {
- errn = encodeNBitUnsignedInteger(stream, 2, 2);
- if(errn == 0) {
- done = 1;
- }
- grammarID = 3;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 2441:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgBody}ChargingProfile), END_ELEMENT] */
- if ( v2gPowerDeliveryReqType->ChargingProfile_isUsed == 1u ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- errn = encode_v2gChargingProfileType(stream, &v2gPowerDeliveryReqType->ChargingProfile );
- }
- 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:2016:MsgDataTypes,Generic_EVSEFinePositioningParametersType', base type name='EVSEFinePositioningParametersType', content type='ELEMENT', isAbstract='false', hasTypeId='false', final='0', block='0', particle='("urn:iso:15118:2:2016:MsgDataTypes":GenericParameters)', derivedBy='EXTENSION'. */
-static int encode_v2gGeneric_EVSEFinePositioningParametersType(bitstream_t* stream, struct v2gGeneric_EVSEFinePositioningParametersType* v2gGeneric_EVSEFinePositioningParametersType) {
- int grammarID = 586;
- int done = 0;
-
-
- while(!done) {
- switch(grammarID) {
- case 586:
- /* FirstStartTag[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}GenericParameters)] */
- if ( 1 == 1 ) {
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- if(errn == 0) {
- errn = encode_v2gParameterSetType(stream, &v2gGeneric_EVSEFinePositioningParametersType->GenericParameters );
- }
- grammarID = 2;
- } 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:2016:MsgDataTypes,SensorPackageListType', base type name='anyType', content type='ELEMENT', isAbstract='false', hasTypeId='false', final='0', block='0', particle='("urn:iso:15118:2:2016:MsgDataTypes":SensorPackage{1-255})', derivedBy='RESTRICTION'. */
-static int encode_v2gSensorPackageListType(bitstream_t* stream, struct v2gSensorPackageListType* v2gSensorPackageListType) {
- int grammarID = 2442;
- int done = 0;
-
- unsigned int v2gSensorPackageListType_SensorPackage_currArrayIndex = 0;
-
- while(!done) {
- switch(grammarID) {
- case 2442:
- /* FirstStartTag[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorPackage)] */
- if (v2gSensorPackageListType_SensorPackage_currArrayIndex < v2gSensorPackageListType->SensorPackage.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- if(errn == 0) {
- errn = encode_v2gSensorPackageType(stream, &v2gSensorPackageListType->SensorPackage.array [v2gSensorPackageListType_SensorPackage_currArrayIndex++]);
- }
- grammarID = 2443;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 2443:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorPackage), END_ELEMENT] */
- if (v2gSensorPackageListType_SensorPackage_currArrayIndex < v2gSensorPackageListType->SensorPackage.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- errn = encode_v2gSensorPackageType(stream, &v2gSensorPackageListType->SensorPackage.array [v2gSensorPackageListType_SensorPackage_currArrayIndex++]);
- }
- grammarID = 2444;
- } else if (1==1) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- done = 1;
- }
- grammarID = 3;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 2444:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorPackage), END_ELEMENT] */
- if (v2gSensorPackageListType_SensorPackage_currArrayIndex < v2gSensorPackageListType->SensorPackage.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- errn = encode_v2gSensorPackageType(stream, &v2gSensorPackageListType->SensorPackage.array [v2gSensorPackageListType_SensorPackage_currArrayIndex++]);
- }
- grammarID = 2445;
- } else if (1==1) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- done = 1;
- }
- grammarID = 3;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 2445:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorPackage), END_ELEMENT] */
- if (v2gSensorPackageListType_SensorPackage_currArrayIndex < v2gSensorPackageListType->SensorPackage.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- errn = encode_v2gSensorPackageType(stream, &v2gSensorPackageListType->SensorPackage.array [v2gSensorPackageListType_SensorPackage_currArrayIndex++]);
- }
- grammarID = 2446;
- } else if (1==1) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- done = 1;
- }
- grammarID = 3;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 2446:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorPackage), END_ELEMENT] */
- if (v2gSensorPackageListType_SensorPackage_currArrayIndex < v2gSensorPackageListType->SensorPackage.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- errn = encode_v2gSensorPackageType(stream, &v2gSensorPackageListType->SensorPackage.array [v2gSensorPackageListType_SensorPackage_currArrayIndex++]);
- }
- grammarID = 2447;
- } else if (1==1) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- done = 1;
- }
- grammarID = 3;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 2447:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorPackage), END_ELEMENT] */
- if (v2gSensorPackageListType_SensorPackage_currArrayIndex < v2gSensorPackageListType->SensorPackage.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- errn = encode_v2gSensorPackageType(stream, &v2gSensorPackageListType->SensorPackage.array [v2gSensorPackageListType_SensorPackage_currArrayIndex++]);
- }
- grammarID = 2448;
- } else if (1==1) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- done = 1;
- }
- grammarID = 3;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 2448:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorPackage), END_ELEMENT] */
- if (v2gSensorPackageListType_SensorPackage_currArrayIndex < v2gSensorPackageListType->SensorPackage.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- errn = encode_v2gSensorPackageType(stream, &v2gSensorPackageListType->SensorPackage.array [v2gSensorPackageListType_SensorPackage_currArrayIndex++]);
- }
- grammarID = 2449;
- } else if (1==1) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- done = 1;
- }
- grammarID = 3;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 2449:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorPackage), END_ELEMENT] */
- if (v2gSensorPackageListType_SensorPackage_currArrayIndex < v2gSensorPackageListType->SensorPackage.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- errn = encode_v2gSensorPackageType(stream, &v2gSensorPackageListType->SensorPackage.array [v2gSensorPackageListType_SensorPackage_currArrayIndex++]);
- }
- grammarID = 2450;
- } else if (1==1) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- done = 1;
- }
- grammarID = 3;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 2450:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorPackage), END_ELEMENT] */
- if (v2gSensorPackageListType_SensorPackage_currArrayIndex < v2gSensorPackageListType->SensorPackage.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- errn = encode_v2gSensorPackageType(stream, &v2gSensorPackageListType->SensorPackage.array [v2gSensorPackageListType_SensorPackage_currArrayIndex++]);
- }
- grammarID = 2451;
- } else if (1==1) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- done = 1;
- }
- grammarID = 3;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 2451:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorPackage), END_ELEMENT] */
- if (v2gSensorPackageListType_SensorPackage_currArrayIndex < v2gSensorPackageListType->SensorPackage.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- errn = encode_v2gSensorPackageType(stream, &v2gSensorPackageListType->SensorPackage.array [v2gSensorPackageListType_SensorPackage_currArrayIndex++]);
- }
- grammarID = 2452;
- } else if (1==1) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- done = 1;
- }
- grammarID = 3;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 2452:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorPackage), END_ELEMENT] */
- if (v2gSensorPackageListType_SensorPackage_currArrayIndex < v2gSensorPackageListType->SensorPackage.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- errn = encode_v2gSensorPackageType(stream, &v2gSensorPackageListType->SensorPackage.array [v2gSensorPackageListType_SensorPackage_currArrayIndex++]);
- }
- grammarID = 2453;
- } else if (1==1) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- done = 1;
- }
- grammarID = 3;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 2453:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorPackage), END_ELEMENT] */
- if (v2gSensorPackageListType_SensorPackage_currArrayIndex < v2gSensorPackageListType->SensorPackage.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- errn = encode_v2gSensorPackageType(stream, &v2gSensorPackageListType->SensorPackage.array [v2gSensorPackageListType_SensorPackage_currArrayIndex++]);
- }
- grammarID = 2454;
- } else if (1==1) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- done = 1;
- }
- grammarID = 3;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 2454:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorPackage), END_ELEMENT] */
- if (v2gSensorPackageListType_SensorPackage_currArrayIndex < v2gSensorPackageListType->SensorPackage.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- errn = encode_v2gSensorPackageType(stream, &v2gSensorPackageListType->SensorPackage.array [v2gSensorPackageListType_SensorPackage_currArrayIndex++]);
- }
- grammarID = 2455;
- } else if (1==1) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- done = 1;
- }
- grammarID = 3;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 2455:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorPackage), END_ELEMENT] */
- if (v2gSensorPackageListType_SensorPackage_currArrayIndex < v2gSensorPackageListType->SensorPackage.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- errn = encode_v2gSensorPackageType(stream, &v2gSensorPackageListType->SensorPackage.array [v2gSensorPackageListType_SensorPackage_currArrayIndex++]);
- }
- grammarID = 2456;
- } else if (1==1) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- done = 1;
- }
- grammarID = 3;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 2456:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorPackage), END_ELEMENT] */
- if (v2gSensorPackageListType_SensorPackage_currArrayIndex < v2gSensorPackageListType->SensorPackage.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- errn = encode_v2gSensorPackageType(stream, &v2gSensorPackageListType->SensorPackage.array [v2gSensorPackageListType_SensorPackage_currArrayIndex++]);
- }
- grammarID = 2457;
- } else if (1==1) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- done = 1;
- }
- grammarID = 3;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 2457:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorPackage), END_ELEMENT] */
- if (v2gSensorPackageListType_SensorPackage_currArrayIndex < v2gSensorPackageListType->SensorPackage.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- errn = encode_v2gSensorPackageType(stream, &v2gSensorPackageListType->SensorPackage.array [v2gSensorPackageListType_SensorPackage_currArrayIndex++]);
- }
- grammarID = 2458;
- } else if (1==1) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- done = 1;
- }
- grammarID = 3;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 2458:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorPackage), END_ELEMENT] */
- if (v2gSensorPackageListType_SensorPackage_currArrayIndex < v2gSensorPackageListType->SensorPackage.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- errn = encode_v2gSensorPackageType(stream, &v2gSensorPackageListType->SensorPackage.array [v2gSensorPackageListType_SensorPackage_currArrayIndex++]);
- }
- grammarID = 2459;
- } else if (1==1) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- done = 1;
- }
- grammarID = 3;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 2459:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorPackage), END_ELEMENT] */
- if (v2gSensorPackageListType_SensorPackage_currArrayIndex < v2gSensorPackageListType->SensorPackage.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- errn = encode_v2gSensorPackageType(stream, &v2gSensorPackageListType->SensorPackage.array [v2gSensorPackageListType_SensorPackage_currArrayIndex++]);
- }
- grammarID = 2460;
- } else if (1==1) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- done = 1;
- }
- grammarID = 3;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 2460:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorPackage), END_ELEMENT] */
- if (v2gSensorPackageListType_SensorPackage_currArrayIndex < v2gSensorPackageListType->SensorPackage.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- errn = encode_v2gSensorPackageType(stream, &v2gSensorPackageListType->SensorPackage.array [v2gSensorPackageListType_SensorPackage_currArrayIndex++]);
- }
- grammarID = 2461;
- } else if (1==1) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- done = 1;
- }
- grammarID = 3;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 2461:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorPackage), END_ELEMENT] */
- if (v2gSensorPackageListType_SensorPackage_currArrayIndex < v2gSensorPackageListType->SensorPackage.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- errn = encode_v2gSensorPackageType(stream, &v2gSensorPackageListType->SensorPackage.array [v2gSensorPackageListType_SensorPackage_currArrayIndex++]);
- }
- grammarID = 2462;
- } else if (1==1) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- done = 1;
- }
- grammarID = 3;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 2462:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorPackage), END_ELEMENT] */
- if (v2gSensorPackageListType_SensorPackage_currArrayIndex < v2gSensorPackageListType->SensorPackage.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- errn = encode_v2gSensorPackageType(stream, &v2gSensorPackageListType->SensorPackage.array [v2gSensorPackageListType_SensorPackage_currArrayIndex++]);
- }
- grammarID = 2463;
- } else if (1==1) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- done = 1;
- }
- grammarID = 3;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 2463:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorPackage), END_ELEMENT] */
- if (v2gSensorPackageListType_SensorPackage_currArrayIndex < v2gSensorPackageListType->SensorPackage.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- errn = encode_v2gSensorPackageType(stream, &v2gSensorPackageListType->SensorPackage.array [v2gSensorPackageListType_SensorPackage_currArrayIndex++]);
- }
- grammarID = 2464;
- } else if (1==1) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- done = 1;
- }
- grammarID = 3;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 2464:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorPackage), END_ELEMENT] */
- if (v2gSensorPackageListType_SensorPackage_currArrayIndex < v2gSensorPackageListType->SensorPackage.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- errn = encode_v2gSensorPackageType(stream, &v2gSensorPackageListType->SensorPackage.array [v2gSensorPackageListType_SensorPackage_currArrayIndex++]);
- }
- grammarID = 2465;
- } else if (1==1) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- done = 1;
- }
- grammarID = 3;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 2465:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorPackage), END_ELEMENT] */
- if (v2gSensorPackageListType_SensorPackage_currArrayIndex < v2gSensorPackageListType->SensorPackage.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- errn = encode_v2gSensorPackageType(stream, &v2gSensorPackageListType->SensorPackage.array [v2gSensorPackageListType_SensorPackage_currArrayIndex++]);
- }
- grammarID = 2466;
- } else if (1==1) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- done = 1;
- }
- grammarID = 3;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 2466:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorPackage), END_ELEMENT] */
- if (v2gSensorPackageListType_SensorPackage_currArrayIndex < v2gSensorPackageListType->SensorPackage.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- errn = encode_v2gSensorPackageType(stream, &v2gSensorPackageListType->SensorPackage.array [v2gSensorPackageListType_SensorPackage_currArrayIndex++]);
- }
- grammarID = 2467;
- } else if (1==1) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- done = 1;
- }
- grammarID = 3;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 2467:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorPackage), END_ELEMENT] */
- if (v2gSensorPackageListType_SensorPackage_currArrayIndex < v2gSensorPackageListType->SensorPackage.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- errn = encode_v2gSensorPackageType(stream, &v2gSensorPackageListType->SensorPackage.array [v2gSensorPackageListType_SensorPackage_currArrayIndex++]);
- }
- grammarID = 2468;
- } else if (1==1) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- done = 1;
- }
- grammarID = 3;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 2468:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorPackage), END_ELEMENT] */
- if (v2gSensorPackageListType_SensorPackage_currArrayIndex < v2gSensorPackageListType->SensorPackage.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- errn = encode_v2gSensorPackageType(stream, &v2gSensorPackageListType->SensorPackage.array [v2gSensorPackageListType_SensorPackage_currArrayIndex++]);
- }
- grammarID = 2469;
- } else if (1==1) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- done = 1;
- }
- grammarID = 3;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 2469:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorPackage), END_ELEMENT] */
- if (v2gSensorPackageListType_SensorPackage_currArrayIndex < v2gSensorPackageListType->SensorPackage.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- errn = encode_v2gSensorPackageType(stream, &v2gSensorPackageListType->SensorPackage.array [v2gSensorPackageListType_SensorPackage_currArrayIndex++]);
- }
- grammarID = 2470;
- } else if (1==1) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- done = 1;
- }
- grammarID = 3;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 2470:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorPackage), END_ELEMENT] */
- if (v2gSensorPackageListType_SensorPackage_currArrayIndex < v2gSensorPackageListType->SensorPackage.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- errn = encode_v2gSensorPackageType(stream, &v2gSensorPackageListType->SensorPackage.array [v2gSensorPackageListType_SensorPackage_currArrayIndex++]);
- }
- grammarID = 2471;
- } else if (1==1) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- done = 1;
- }
- grammarID = 3;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 2471:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorPackage), END_ELEMENT] */
- if (v2gSensorPackageListType_SensorPackage_currArrayIndex < v2gSensorPackageListType->SensorPackage.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- errn = encode_v2gSensorPackageType(stream, &v2gSensorPackageListType->SensorPackage.array [v2gSensorPackageListType_SensorPackage_currArrayIndex++]);
- }
- grammarID = 2472;
- } else if (1==1) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- done = 1;
- }
- grammarID = 3;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 2472:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorPackage), END_ELEMENT] */
- if (v2gSensorPackageListType_SensorPackage_currArrayIndex < v2gSensorPackageListType->SensorPackage.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- errn = encode_v2gSensorPackageType(stream, &v2gSensorPackageListType->SensorPackage.array [v2gSensorPackageListType_SensorPackage_currArrayIndex++]);
- }
- grammarID = 2473;
- } else if (1==1) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- done = 1;
- }
- grammarID = 3;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 2473:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorPackage), END_ELEMENT] */
- if (v2gSensorPackageListType_SensorPackage_currArrayIndex < v2gSensorPackageListType->SensorPackage.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- errn = encode_v2gSensorPackageType(stream, &v2gSensorPackageListType->SensorPackage.array [v2gSensorPackageListType_SensorPackage_currArrayIndex++]);
- }
- grammarID = 2474;
- } else if (1==1) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- done = 1;
- }
- grammarID = 3;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 2474:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorPackage), END_ELEMENT] */
- if (v2gSensorPackageListType_SensorPackage_currArrayIndex < v2gSensorPackageListType->SensorPackage.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- errn = encode_v2gSensorPackageType(stream, &v2gSensorPackageListType->SensorPackage.array [v2gSensorPackageListType_SensorPackage_currArrayIndex++]);
- }
- grammarID = 2475;
- } else if (1==1) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- done = 1;
- }
- grammarID = 3;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 2475:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorPackage), END_ELEMENT] */
- if (v2gSensorPackageListType_SensorPackage_currArrayIndex < v2gSensorPackageListType->SensorPackage.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- errn = encode_v2gSensorPackageType(stream, &v2gSensorPackageListType->SensorPackage.array [v2gSensorPackageListType_SensorPackage_currArrayIndex++]);
- }
- grammarID = 2476;
- } else if (1==1) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- done = 1;
- }
- grammarID = 3;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 2476:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorPackage), END_ELEMENT] */
- if (v2gSensorPackageListType_SensorPackage_currArrayIndex < v2gSensorPackageListType->SensorPackage.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- errn = encode_v2gSensorPackageType(stream, &v2gSensorPackageListType->SensorPackage.array [v2gSensorPackageListType_SensorPackage_currArrayIndex++]);
- }
- grammarID = 2477;
- } else if (1==1) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- done = 1;
- }
- grammarID = 3;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 2477:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorPackage), END_ELEMENT] */
- if (v2gSensorPackageListType_SensorPackage_currArrayIndex < v2gSensorPackageListType->SensorPackage.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- errn = encode_v2gSensorPackageType(stream, &v2gSensorPackageListType->SensorPackage.array [v2gSensorPackageListType_SensorPackage_currArrayIndex++]);
- }
- grammarID = 2478;
- } else if (1==1) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- done = 1;
- }
- grammarID = 3;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 2478:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorPackage), END_ELEMENT] */
- if (v2gSensorPackageListType_SensorPackage_currArrayIndex < v2gSensorPackageListType->SensorPackage.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- errn = encode_v2gSensorPackageType(stream, &v2gSensorPackageListType->SensorPackage.array [v2gSensorPackageListType_SensorPackage_currArrayIndex++]);
- }
- grammarID = 2479;
- } else if (1==1) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- done = 1;
- }
- grammarID = 3;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 2479:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorPackage), END_ELEMENT] */
- if (v2gSensorPackageListType_SensorPackage_currArrayIndex < v2gSensorPackageListType->SensorPackage.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- errn = encode_v2gSensorPackageType(stream, &v2gSensorPackageListType->SensorPackage.array [v2gSensorPackageListType_SensorPackage_currArrayIndex++]);
- }
- grammarID = 2480;
- } else if (1==1) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- done = 1;
- }
- grammarID = 3;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 2480:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorPackage), END_ELEMENT] */
- if (v2gSensorPackageListType_SensorPackage_currArrayIndex < v2gSensorPackageListType->SensorPackage.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- errn = encode_v2gSensorPackageType(stream, &v2gSensorPackageListType->SensorPackage.array [v2gSensorPackageListType_SensorPackage_currArrayIndex++]);
- }
- grammarID = 2481;
- } else if (1==1) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- done = 1;
- }
- grammarID = 3;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 2481:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorPackage), END_ELEMENT] */
- if (v2gSensorPackageListType_SensorPackage_currArrayIndex < v2gSensorPackageListType->SensorPackage.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- errn = encode_v2gSensorPackageType(stream, &v2gSensorPackageListType->SensorPackage.array [v2gSensorPackageListType_SensorPackage_currArrayIndex++]);
- }
- grammarID = 2482;
- } else if (1==1) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- done = 1;
- }
- grammarID = 3;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 2482:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorPackage), END_ELEMENT] */
- if (v2gSensorPackageListType_SensorPackage_currArrayIndex < v2gSensorPackageListType->SensorPackage.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- errn = encode_v2gSensorPackageType(stream, &v2gSensorPackageListType->SensorPackage.array [v2gSensorPackageListType_SensorPackage_currArrayIndex++]);
- }
- grammarID = 2483;
- } else if (1==1) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- done = 1;
- }
- grammarID = 3;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 2483:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorPackage), END_ELEMENT] */
- if (v2gSensorPackageListType_SensorPackage_currArrayIndex < v2gSensorPackageListType->SensorPackage.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- errn = encode_v2gSensorPackageType(stream, &v2gSensorPackageListType->SensorPackage.array [v2gSensorPackageListType_SensorPackage_currArrayIndex++]);
- }
- grammarID = 2484;
- } else if (1==1) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- done = 1;
- }
- grammarID = 3;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 2484:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorPackage), END_ELEMENT] */
- if (v2gSensorPackageListType_SensorPackage_currArrayIndex < v2gSensorPackageListType->SensorPackage.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- errn = encode_v2gSensorPackageType(stream, &v2gSensorPackageListType->SensorPackage.array [v2gSensorPackageListType_SensorPackage_currArrayIndex++]);
- }
- grammarID = 2485;
- } else if (1==1) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- done = 1;
- }
- grammarID = 3;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 2485:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorPackage), END_ELEMENT] */
- if (v2gSensorPackageListType_SensorPackage_currArrayIndex < v2gSensorPackageListType->SensorPackage.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- errn = encode_v2gSensorPackageType(stream, &v2gSensorPackageListType->SensorPackage.array [v2gSensorPackageListType_SensorPackage_currArrayIndex++]);
- }
- grammarID = 2486;
- } else if (1==1) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- done = 1;
- }
- grammarID = 3;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 2486:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorPackage), END_ELEMENT] */
- if (v2gSensorPackageListType_SensorPackage_currArrayIndex < v2gSensorPackageListType->SensorPackage.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- errn = encode_v2gSensorPackageType(stream, &v2gSensorPackageListType->SensorPackage.array [v2gSensorPackageListType_SensorPackage_currArrayIndex++]);
- }
- grammarID = 2487;
- } else if (1==1) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- done = 1;
- }
- grammarID = 3;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 2487:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorPackage), END_ELEMENT] */
- if (v2gSensorPackageListType_SensorPackage_currArrayIndex < v2gSensorPackageListType->SensorPackage.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- errn = encode_v2gSensorPackageType(stream, &v2gSensorPackageListType->SensorPackage.array [v2gSensorPackageListType_SensorPackage_currArrayIndex++]);
- }
- grammarID = 2488;
- } else if (1==1) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- done = 1;
- }
- grammarID = 3;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 2488:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorPackage), END_ELEMENT] */
- if (v2gSensorPackageListType_SensorPackage_currArrayIndex < v2gSensorPackageListType->SensorPackage.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- errn = encode_v2gSensorPackageType(stream, &v2gSensorPackageListType->SensorPackage.array [v2gSensorPackageListType_SensorPackage_currArrayIndex++]);
- }
- grammarID = 2489;
- } else if (1==1) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- done = 1;
- }
- grammarID = 3;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 2489:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorPackage), END_ELEMENT] */
- if (v2gSensorPackageListType_SensorPackage_currArrayIndex < v2gSensorPackageListType->SensorPackage.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- errn = encode_v2gSensorPackageType(stream, &v2gSensorPackageListType->SensorPackage.array [v2gSensorPackageListType_SensorPackage_currArrayIndex++]);
- }
- grammarID = 2490;
- } else if (1==1) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- done = 1;
- }
- grammarID = 3;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 2490:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorPackage), END_ELEMENT] */
- if (v2gSensorPackageListType_SensorPackage_currArrayIndex < v2gSensorPackageListType->SensorPackage.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- errn = encode_v2gSensorPackageType(stream, &v2gSensorPackageListType->SensorPackage.array [v2gSensorPackageListType_SensorPackage_currArrayIndex++]);
- }
- grammarID = 2491;
- } else if (1==1) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- done = 1;
- }
- grammarID = 3;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 2491:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorPackage), END_ELEMENT] */
- if (v2gSensorPackageListType_SensorPackage_currArrayIndex < v2gSensorPackageListType->SensorPackage.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- errn = encode_v2gSensorPackageType(stream, &v2gSensorPackageListType->SensorPackage.array [v2gSensorPackageListType_SensorPackage_currArrayIndex++]);
- }
- grammarID = 2492;
- } else if (1==1) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- done = 1;
- }
- grammarID = 3;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 2492:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorPackage), END_ELEMENT] */
- if (v2gSensorPackageListType_SensorPackage_currArrayIndex < v2gSensorPackageListType->SensorPackage.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- errn = encode_v2gSensorPackageType(stream, &v2gSensorPackageListType->SensorPackage.array [v2gSensorPackageListType_SensorPackage_currArrayIndex++]);
- }
- grammarID = 2493;
- } else if (1==1) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- done = 1;
- }
- grammarID = 3;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 2493:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorPackage), END_ELEMENT] */
- if (v2gSensorPackageListType_SensorPackage_currArrayIndex < v2gSensorPackageListType->SensorPackage.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- errn = encode_v2gSensorPackageType(stream, &v2gSensorPackageListType->SensorPackage.array [v2gSensorPackageListType_SensorPackage_currArrayIndex++]);
- }
- grammarID = 2494;
- } else if (1==1) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- done = 1;
- }
- grammarID = 3;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 2494:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorPackage), END_ELEMENT] */
- if (v2gSensorPackageListType_SensorPackage_currArrayIndex < v2gSensorPackageListType->SensorPackage.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- errn = encode_v2gSensorPackageType(stream, &v2gSensorPackageListType->SensorPackage.array [v2gSensorPackageListType_SensorPackage_currArrayIndex++]);
- }
- grammarID = 2495;
- } else if (1==1) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- done = 1;
- }
- grammarID = 3;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 2495:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorPackage), END_ELEMENT] */
- if (v2gSensorPackageListType_SensorPackage_currArrayIndex < v2gSensorPackageListType->SensorPackage.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- errn = encode_v2gSensorPackageType(stream, &v2gSensorPackageListType->SensorPackage.array [v2gSensorPackageListType_SensorPackage_currArrayIndex++]);
- }
- grammarID = 2496;
- } else if (1==1) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- done = 1;
- }
- grammarID = 3;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 2496:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorPackage), END_ELEMENT] */
- if (v2gSensorPackageListType_SensorPackage_currArrayIndex < v2gSensorPackageListType->SensorPackage.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- errn = encode_v2gSensorPackageType(stream, &v2gSensorPackageListType->SensorPackage.array [v2gSensorPackageListType_SensorPackage_currArrayIndex++]);
- }
- grammarID = 2497;
- } else if (1==1) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- done = 1;
- }
- grammarID = 3;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 2497:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorPackage), END_ELEMENT] */
- if (v2gSensorPackageListType_SensorPackage_currArrayIndex < v2gSensorPackageListType->SensorPackage.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- errn = encode_v2gSensorPackageType(stream, &v2gSensorPackageListType->SensorPackage.array [v2gSensorPackageListType_SensorPackage_currArrayIndex++]);
- }
- grammarID = 2498;
- } else if (1==1) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- done = 1;
- }
- grammarID = 3;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 2498:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorPackage), END_ELEMENT] */
- if (v2gSensorPackageListType_SensorPackage_currArrayIndex < v2gSensorPackageListType->SensorPackage.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- errn = encode_v2gSensorPackageType(stream, &v2gSensorPackageListType->SensorPackage.array [v2gSensorPackageListType_SensorPackage_currArrayIndex++]);
- }
- grammarID = 2499;
- } else if (1==1) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- done = 1;
- }
- grammarID = 3;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 2499:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorPackage), END_ELEMENT] */
- if (v2gSensorPackageListType_SensorPackage_currArrayIndex < v2gSensorPackageListType->SensorPackage.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- errn = encode_v2gSensorPackageType(stream, &v2gSensorPackageListType->SensorPackage.array [v2gSensorPackageListType_SensorPackage_currArrayIndex++]);
- }
- grammarID = 2500;
- } else if (1==1) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- done = 1;
- }
- grammarID = 3;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 2500:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorPackage), END_ELEMENT] */
- if (v2gSensorPackageListType_SensorPackage_currArrayIndex < v2gSensorPackageListType->SensorPackage.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- errn = encode_v2gSensorPackageType(stream, &v2gSensorPackageListType->SensorPackage.array [v2gSensorPackageListType_SensorPackage_currArrayIndex++]);
- }
- grammarID = 2501;
- } else if (1==1) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- done = 1;
- }
- grammarID = 3;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 2501:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorPackage), END_ELEMENT] */
- if (v2gSensorPackageListType_SensorPackage_currArrayIndex < v2gSensorPackageListType->SensorPackage.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- errn = encode_v2gSensorPackageType(stream, &v2gSensorPackageListType->SensorPackage.array [v2gSensorPackageListType_SensorPackage_currArrayIndex++]);
- }
- grammarID = 2502;
- } else if (1==1) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- done = 1;
- }
- grammarID = 3;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 2502:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorPackage), END_ELEMENT] */
- if (v2gSensorPackageListType_SensorPackage_currArrayIndex < v2gSensorPackageListType->SensorPackage.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- errn = encode_v2gSensorPackageType(stream, &v2gSensorPackageListType->SensorPackage.array [v2gSensorPackageListType_SensorPackage_currArrayIndex++]);
- }
- grammarID = 2503;
- } else if (1==1) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- done = 1;
- }
- grammarID = 3;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 2503:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorPackage), END_ELEMENT] */
- if (v2gSensorPackageListType_SensorPackage_currArrayIndex < v2gSensorPackageListType->SensorPackage.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- errn = encode_v2gSensorPackageType(stream, &v2gSensorPackageListType->SensorPackage.array [v2gSensorPackageListType_SensorPackage_currArrayIndex++]);
- }
- grammarID = 2504;
- } else if (1==1) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- done = 1;
- }
- grammarID = 3;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 2504:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorPackage), END_ELEMENT] */
- if (v2gSensorPackageListType_SensorPackage_currArrayIndex < v2gSensorPackageListType->SensorPackage.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- errn = encode_v2gSensorPackageType(stream, &v2gSensorPackageListType->SensorPackage.array [v2gSensorPackageListType_SensorPackage_currArrayIndex++]);
- }
- grammarID = 2505;
- } else if (1==1) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- done = 1;
- }
- grammarID = 3;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 2505:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorPackage), END_ELEMENT] */
- if (v2gSensorPackageListType_SensorPackage_currArrayIndex < v2gSensorPackageListType->SensorPackage.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- errn = encode_v2gSensorPackageType(stream, &v2gSensorPackageListType->SensorPackage.array [v2gSensorPackageListType_SensorPackage_currArrayIndex++]);
- }
- grammarID = 2506;
- } else if (1==1) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- done = 1;
- }
- grammarID = 3;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 2506:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorPackage), END_ELEMENT] */
- if (v2gSensorPackageListType_SensorPackage_currArrayIndex < v2gSensorPackageListType->SensorPackage.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- errn = encode_v2gSensorPackageType(stream, &v2gSensorPackageListType->SensorPackage.array [v2gSensorPackageListType_SensorPackage_currArrayIndex++]);
- }
- grammarID = 2507;
- } else if (1==1) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- done = 1;
- }
- grammarID = 3;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 2507:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorPackage), END_ELEMENT] */
- if (v2gSensorPackageListType_SensorPackage_currArrayIndex < v2gSensorPackageListType->SensorPackage.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- errn = encode_v2gSensorPackageType(stream, &v2gSensorPackageListType->SensorPackage.array [v2gSensorPackageListType_SensorPackage_currArrayIndex++]);
- }
- grammarID = 2508;
- } else if (1==1) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- done = 1;
- }
- grammarID = 3;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 2508:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorPackage), END_ELEMENT] */
- if (v2gSensorPackageListType_SensorPackage_currArrayIndex < v2gSensorPackageListType->SensorPackage.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- errn = encode_v2gSensorPackageType(stream, &v2gSensorPackageListType->SensorPackage.array [v2gSensorPackageListType_SensorPackage_currArrayIndex++]);
- }
- grammarID = 2509;
- } else if (1==1) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- done = 1;
- }
- grammarID = 3;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 2509:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorPackage), END_ELEMENT] */
- if (v2gSensorPackageListType_SensorPackage_currArrayIndex < v2gSensorPackageListType->SensorPackage.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- errn = encode_v2gSensorPackageType(stream, &v2gSensorPackageListType->SensorPackage.array [v2gSensorPackageListType_SensorPackage_currArrayIndex++]);
- }
- grammarID = 2510;
- } else if (1==1) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- done = 1;
- }
- grammarID = 3;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 2510:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorPackage), END_ELEMENT] */
- if (v2gSensorPackageListType_SensorPackage_currArrayIndex < v2gSensorPackageListType->SensorPackage.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- errn = encode_v2gSensorPackageType(stream, &v2gSensorPackageListType->SensorPackage.array [v2gSensorPackageListType_SensorPackage_currArrayIndex++]);
- }
- grammarID = 2511;
- } else if (1==1) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- done = 1;
- }
- grammarID = 3;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 2511:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorPackage), END_ELEMENT] */
- if (v2gSensorPackageListType_SensorPackage_currArrayIndex < v2gSensorPackageListType->SensorPackage.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- errn = encode_v2gSensorPackageType(stream, &v2gSensorPackageListType->SensorPackage.array [v2gSensorPackageListType_SensorPackage_currArrayIndex++]);
- }
- grammarID = 2512;
- } else if (1==1) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- done = 1;
- }
- grammarID = 3;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 2512:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorPackage), END_ELEMENT] */
- if (v2gSensorPackageListType_SensorPackage_currArrayIndex < v2gSensorPackageListType->SensorPackage.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- errn = encode_v2gSensorPackageType(stream, &v2gSensorPackageListType->SensorPackage.array [v2gSensorPackageListType_SensorPackage_currArrayIndex++]);
- }
- grammarID = 2513;
- } else if (1==1) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- done = 1;
- }
- grammarID = 3;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 2513:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorPackage), END_ELEMENT] */
- if (v2gSensorPackageListType_SensorPackage_currArrayIndex < v2gSensorPackageListType->SensorPackage.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- errn = encode_v2gSensorPackageType(stream, &v2gSensorPackageListType->SensorPackage.array [v2gSensorPackageListType_SensorPackage_currArrayIndex++]);
- }
- grammarID = 2514;
- } else if (1==1) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- done = 1;
- }
- grammarID = 3;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 2514:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorPackage), END_ELEMENT] */
- if (v2gSensorPackageListType_SensorPackage_currArrayIndex < v2gSensorPackageListType->SensorPackage.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- errn = encode_v2gSensorPackageType(stream, &v2gSensorPackageListType->SensorPackage.array [v2gSensorPackageListType_SensorPackage_currArrayIndex++]);
- }
- grammarID = 2515;
- } else if (1==1) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- done = 1;
- }
- grammarID = 3;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 2515:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorPackage), END_ELEMENT] */
- if (v2gSensorPackageListType_SensorPackage_currArrayIndex < v2gSensorPackageListType->SensorPackage.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- errn = encode_v2gSensorPackageType(stream, &v2gSensorPackageListType->SensorPackage.array [v2gSensorPackageListType_SensorPackage_currArrayIndex++]);
- }
- grammarID = 2516;
- } else if (1==1) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- done = 1;
- }
- grammarID = 3;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 2516:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorPackage), END_ELEMENT] */
- if (v2gSensorPackageListType_SensorPackage_currArrayIndex < v2gSensorPackageListType->SensorPackage.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- errn = encode_v2gSensorPackageType(stream, &v2gSensorPackageListType->SensorPackage.array [v2gSensorPackageListType_SensorPackage_currArrayIndex++]);
- }
- grammarID = 2517;
- } else if (1==1) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- done = 1;
- }
- grammarID = 3;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 2517:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorPackage), END_ELEMENT] */
- if (v2gSensorPackageListType_SensorPackage_currArrayIndex < v2gSensorPackageListType->SensorPackage.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- errn = encode_v2gSensorPackageType(stream, &v2gSensorPackageListType->SensorPackage.array [v2gSensorPackageListType_SensorPackage_currArrayIndex++]);
- }
- grammarID = 2518;
- } else if (1==1) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- done = 1;
- }
- grammarID = 3;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 2518:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorPackage), END_ELEMENT] */
- if (v2gSensorPackageListType_SensorPackage_currArrayIndex < v2gSensorPackageListType->SensorPackage.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- errn = encode_v2gSensorPackageType(stream, &v2gSensorPackageListType->SensorPackage.array [v2gSensorPackageListType_SensorPackage_currArrayIndex++]);
- }
- grammarID = 2519;
- } else if (1==1) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- done = 1;
- }
- grammarID = 3;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 2519:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorPackage), END_ELEMENT] */
- if (v2gSensorPackageListType_SensorPackage_currArrayIndex < v2gSensorPackageListType->SensorPackage.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- errn = encode_v2gSensorPackageType(stream, &v2gSensorPackageListType->SensorPackage.array [v2gSensorPackageListType_SensorPackage_currArrayIndex++]);
- }
- grammarID = 2520;
- } else if (1==1) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- done = 1;
- }
- grammarID = 3;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 2520:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorPackage), END_ELEMENT] */
- if (v2gSensorPackageListType_SensorPackage_currArrayIndex < v2gSensorPackageListType->SensorPackage.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- errn = encode_v2gSensorPackageType(stream, &v2gSensorPackageListType->SensorPackage.array [v2gSensorPackageListType_SensorPackage_currArrayIndex++]);
- }
- grammarID = 2521;
- } else if (1==1) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- done = 1;
- }
- grammarID = 3;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 2521:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorPackage), END_ELEMENT] */
- if (v2gSensorPackageListType_SensorPackage_currArrayIndex < v2gSensorPackageListType->SensorPackage.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- errn = encode_v2gSensorPackageType(stream, &v2gSensorPackageListType->SensorPackage.array [v2gSensorPackageListType_SensorPackage_currArrayIndex++]);
- }
- grammarID = 2522;
- } else if (1==1) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- done = 1;
- }
- grammarID = 3;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 2522:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorPackage), END_ELEMENT] */
- if (v2gSensorPackageListType_SensorPackage_currArrayIndex < v2gSensorPackageListType->SensorPackage.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- errn = encode_v2gSensorPackageType(stream, &v2gSensorPackageListType->SensorPackage.array [v2gSensorPackageListType_SensorPackage_currArrayIndex++]);
- }
- grammarID = 2523;
- } else if (1==1) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- done = 1;
- }
- grammarID = 3;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 2523:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorPackage), END_ELEMENT] */
- if (v2gSensorPackageListType_SensorPackage_currArrayIndex < v2gSensorPackageListType->SensorPackage.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- errn = encode_v2gSensorPackageType(stream, &v2gSensorPackageListType->SensorPackage.array [v2gSensorPackageListType_SensorPackage_currArrayIndex++]);
- }
- grammarID = 2524;
- } else if (1==1) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- done = 1;
- }
- grammarID = 3;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 2524:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorPackage), END_ELEMENT] */
- if (v2gSensorPackageListType_SensorPackage_currArrayIndex < v2gSensorPackageListType->SensorPackage.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- errn = encode_v2gSensorPackageType(stream, &v2gSensorPackageListType->SensorPackage.array [v2gSensorPackageListType_SensorPackage_currArrayIndex++]);
- }
- grammarID = 2525;
- } else if (1==1) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- done = 1;
- }
- grammarID = 3;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 2525:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorPackage), END_ELEMENT] */
- if (v2gSensorPackageListType_SensorPackage_currArrayIndex < v2gSensorPackageListType->SensorPackage.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- errn = encode_v2gSensorPackageType(stream, &v2gSensorPackageListType->SensorPackage.array [v2gSensorPackageListType_SensorPackage_currArrayIndex++]);
- }
- grammarID = 2526;
- } else if (1==1) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- done = 1;
- }
- grammarID = 3;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 2526:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorPackage), END_ELEMENT] */
- if (v2gSensorPackageListType_SensorPackage_currArrayIndex < v2gSensorPackageListType->SensorPackage.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- errn = encode_v2gSensorPackageType(stream, &v2gSensorPackageListType->SensorPackage.array [v2gSensorPackageListType_SensorPackage_currArrayIndex++]);
- }
- grammarID = 2527;
- } else if (1==1) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- done = 1;
- }
- grammarID = 3;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 2527:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorPackage), END_ELEMENT] */
- if (v2gSensorPackageListType_SensorPackage_currArrayIndex < v2gSensorPackageListType->SensorPackage.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- errn = encode_v2gSensorPackageType(stream, &v2gSensorPackageListType->SensorPackage.array [v2gSensorPackageListType_SensorPackage_currArrayIndex++]);
- }
- grammarID = 2528;
- } else if (1==1) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- done = 1;
- }
- grammarID = 3;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 2528:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorPackage), END_ELEMENT] */
- if (v2gSensorPackageListType_SensorPackage_currArrayIndex < v2gSensorPackageListType->SensorPackage.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- errn = encode_v2gSensorPackageType(stream, &v2gSensorPackageListType->SensorPackage.array [v2gSensorPackageListType_SensorPackage_currArrayIndex++]);
- }
- grammarID = 2529;
- } else if (1==1) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- done = 1;
- }
- grammarID = 3;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 2529:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorPackage), END_ELEMENT] */
- if (v2gSensorPackageListType_SensorPackage_currArrayIndex < v2gSensorPackageListType->SensorPackage.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- errn = encode_v2gSensorPackageType(stream, &v2gSensorPackageListType->SensorPackage.array [v2gSensorPackageListType_SensorPackage_currArrayIndex++]);
- }
- grammarID = 2530;
- } else if (1==1) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- done = 1;
- }
- grammarID = 3;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 2530:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorPackage), END_ELEMENT] */
- if (v2gSensorPackageListType_SensorPackage_currArrayIndex < v2gSensorPackageListType->SensorPackage.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- errn = encode_v2gSensorPackageType(stream, &v2gSensorPackageListType->SensorPackage.array [v2gSensorPackageListType_SensorPackage_currArrayIndex++]);
- }
- grammarID = 2531;
- } else if (1==1) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- done = 1;
- }
- grammarID = 3;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 2531:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorPackage), END_ELEMENT] */
- if (v2gSensorPackageListType_SensorPackage_currArrayIndex < v2gSensorPackageListType->SensorPackage.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- errn = encode_v2gSensorPackageType(stream, &v2gSensorPackageListType->SensorPackage.array [v2gSensorPackageListType_SensorPackage_currArrayIndex++]);
- }
- grammarID = 2532;
- } else if (1==1) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- done = 1;
- }
- grammarID = 3;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 2532:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorPackage), END_ELEMENT] */
- if (v2gSensorPackageListType_SensorPackage_currArrayIndex < v2gSensorPackageListType->SensorPackage.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- errn = encode_v2gSensorPackageType(stream, &v2gSensorPackageListType->SensorPackage.array [v2gSensorPackageListType_SensorPackage_currArrayIndex++]);
- }
- grammarID = 2533;
- } else if (1==1) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- done = 1;
- }
- grammarID = 3;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 2533:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorPackage), END_ELEMENT] */
- if (v2gSensorPackageListType_SensorPackage_currArrayIndex < v2gSensorPackageListType->SensorPackage.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- errn = encode_v2gSensorPackageType(stream, &v2gSensorPackageListType->SensorPackage.array [v2gSensorPackageListType_SensorPackage_currArrayIndex++]);
- }
- grammarID = 2534;
- } else if (1==1) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- done = 1;
- }
- grammarID = 3;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 2534:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorPackage), END_ELEMENT] */
- if (v2gSensorPackageListType_SensorPackage_currArrayIndex < v2gSensorPackageListType->SensorPackage.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- errn = encode_v2gSensorPackageType(stream, &v2gSensorPackageListType->SensorPackage.array [v2gSensorPackageListType_SensorPackage_currArrayIndex++]);
- }
- grammarID = 2535;
- } else if (1==1) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- done = 1;
- }
- grammarID = 3;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 2535:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorPackage), END_ELEMENT] */
- if (v2gSensorPackageListType_SensorPackage_currArrayIndex < v2gSensorPackageListType->SensorPackage.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- errn = encode_v2gSensorPackageType(stream, &v2gSensorPackageListType->SensorPackage.array [v2gSensorPackageListType_SensorPackage_currArrayIndex++]);
- }
- grammarID = 2536;
- } else if (1==1) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- done = 1;
- }
- grammarID = 3;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 2536:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorPackage), END_ELEMENT] */
- if (v2gSensorPackageListType_SensorPackage_currArrayIndex < v2gSensorPackageListType->SensorPackage.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- errn = encode_v2gSensorPackageType(stream, &v2gSensorPackageListType->SensorPackage.array [v2gSensorPackageListType_SensorPackage_currArrayIndex++]);
- }
- grammarID = 2537;
- } else if (1==1) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- done = 1;
- }
- grammarID = 3;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 2537:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorPackage), END_ELEMENT] */
- if (v2gSensorPackageListType_SensorPackage_currArrayIndex < v2gSensorPackageListType->SensorPackage.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- errn = encode_v2gSensorPackageType(stream, &v2gSensorPackageListType->SensorPackage.array [v2gSensorPackageListType_SensorPackage_currArrayIndex++]);
- }
- grammarID = 2538;
- } else if (1==1) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- done = 1;
- }
- grammarID = 3;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 2538:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorPackage), END_ELEMENT] */
- if (v2gSensorPackageListType_SensorPackage_currArrayIndex < v2gSensorPackageListType->SensorPackage.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- errn = encode_v2gSensorPackageType(stream, &v2gSensorPackageListType->SensorPackage.array [v2gSensorPackageListType_SensorPackage_currArrayIndex++]);
- }
- grammarID = 2539;
- } else if (1==1) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- done = 1;
- }
- grammarID = 3;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 2539:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorPackage), END_ELEMENT] */
- if (v2gSensorPackageListType_SensorPackage_currArrayIndex < v2gSensorPackageListType->SensorPackage.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- errn = encode_v2gSensorPackageType(stream, &v2gSensorPackageListType->SensorPackage.array [v2gSensorPackageListType_SensorPackage_currArrayIndex++]);
- }
- grammarID = 2540;
- } else if (1==1) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- done = 1;
- }
- grammarID = 3;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 2540:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorPackage), END_ELEMENT] */
- if (v2gSensorPackageListType_SensorPackage_currArrayIndex < v2gSensorPackageListType->SensorPackage.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- errn = encode_v2gSensorPackageType(stream, &v2gSensorPackageListType->SensorPackage.array [v2gSensorPackageListType_SensorPackage_currArrayIndex++]);
- }
- grammarID = 2541;
- } else if (1==1) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- done = 1;
- }
- grammarID = 3;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 2541:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorPackage), END_ELEMENT] */
- if (v2gSensorPackageListType_SensorPackage_currArrayIndex < v2gSensorPackageListType->SensorPackage.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- errn = encode_v2gSensorPackageType(stream, &v2gSensorPackageListType->SensorPackage.array [v2gSensorPackageListType_SensorPackage_currArrayIndex++]);
- }
- grammarID = 2542;
- } else if (1==1) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- done = 1;
- }
- grammarID = 3;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 2542:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorPackage), END_ELEMENT] */
- if (v2gSensorPackageListType_SensorPackage_currArrayIndex < v2gSensorPackageListType->SensorPackage.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- errn = encode_v2gSensorPackageType(stream, &v2gSensorPackageListType->SensorPackage.array [v2gSensorPackageListType_SensorPackage_currArrayIndex++]);
- }
- grammarID = 2543;
- } else if (1==1) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- done = 1;
- }
- grammarID = 3;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 2543:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorPackage), END_ELEMENT] */
- if (v2gSensorPackageListType_SensorPackage_currArrayIndex < v2gSensorPackageListType->SensorPackage.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- errn = encode_v2gSensorPackageType(stream, &v2gSensorPackageListType->SensorPackage.array [v2gSensorPackageListType_SensorPackage_currArrayIndex++]);
- }
- grammarID = 2544;
- } else if (1==1) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- done = 1;
- }
- grammarID = 3;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 2544:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorPackage), END_ELEMENT] */
- if (v2gSensorPackageListType_SensorPackage_currArrayIndex < v2gSensorPackageListType->SensorPackage.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- errn = encode_v2gSensorPackageType(stream, &v2gSensorPackageListType->SensorPackage.array [v2gSensorPackageListType_SensorPackage_currArrayIndex++]);
- }
- grammarID = 2545;
- } else if (1==1) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- done = 1;
- }
- grammarID = 3;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 2545:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorPackage), END_ELEMENT] */
- if (v2gSensorPackageListType_SensorPackage_currArrayIndex < v2gSensorPackageListType->SensorPackage.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- errn = encode_v2gSensorPackageType(stream, &v2gSensorPackageListType->SensorPackage.array [v2gSensorPackageListType_SensorPackage_currArrayIndex++]);
- }
- grammarID = 2546;
- } else if (1==1) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- done = 1;
- }
- grammarID = 3;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 2546:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorPackage), END_ELEMENT] */
- if (v2gSensorPackageListType_SensorPackage_currArrayIndex < v2gSensorPackageListType->SensorPackage.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- errn = encode_v2gSensorPackageType(stream, &v2gSensorPackageListType->SensorPackage.array [v2gSensorPackageListType_SensorPackage_currArrayIndex++]);
- }
- grammarID = 2547;
- } else if (1==1) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- done = 1;
- }
- grammarID = 3;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 2547:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorPackage), END_ELEMENT] */
- if (v2gSensorPackageListType_SensorPackage_currArrayIndex < v2gSensorPackageListType->SensorPackage.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- errn = encode_v2gSensorPackageType(stream, &v2gSensorPackageListType->SensorPackage.array [v2gSensorPackageListType_SensorPackage_currArrayIndex++]);
- }
- grammarID = 2548;
- } else if (1==1) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- done = 1;
- }
- grammarID = 3;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 2548:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorPackage), END_ELEMENT] */
- if (v2gSensorPackageListType_SensorPackage_currArrayIndex < v2gSensorPackageListType->SensorPackage.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- errn = encode_v2gSensorPackageType(stream, &v2gSensorPackageListType->SensorPackage.array [v2gSensorPackageListType_SensorPackage_currArrayIndex++]);
- }
- grammarID = 2549;
- } else if (1==1) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- done = 1;
- }
- grammarID = 3;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 2549:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorPackage), END_ELEMENT] */
- if (v2gSensorPackageListType_SensorPackage_currArrayIndex < v2gSensorPackageListType->SensorPackage.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- errn = encode_v2gSensorPackageType(stream, &v2gSensorPackageListType->SensorPackage.array [v2gSensorPackageListType_SensorPackage_currArrayIndex++]);
- }
- grammarID = 2550;
- } else if (1==1) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- done = 1;
- }
- grammarID = 3;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 2550:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorPackage), END_ELEMENT] */
- if (v2gSensorPackageListType_SensorPackage_currArrayIndex < v2gSensorPackageListType->SensorPackage.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- errn = encode_v2gSensorPackageType(stream, &v2gSensorPackageListType->SensorPackage.array [v2gSensorPackageListType_SensorPackage_currArrayIndex++]);
- }
- grammarID = 2551;
- } else if (1==1) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- done = 1;
- }
- grammarID = 3;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 2551:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorPackage), END_ELEMENT] */
- if (v2gSensorPackageListType_SensorPackage_currArrayIndex < v2gSensorPackageListType->SensorPackage.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- errn = encode_v2gSensorPackageType(stream, &v2gSensorPackageListType->SensorPackage.array [v2gSensorPackageListType_SensorPackage_currArrayIndex++]);
- }
- grammarID = 2552;
- } else if (1==1) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- done = 1;
- }
- grammarID = 3;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 2552:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorPackage), END_ELEMENT] */
- if (v2gSensorPackageListType_SensorPackage_currArrayIndex < v2gSensorPackageListType->SensorPackage.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- errn = encode_v2gSensorPackageType(stream, &v2gSensorPackageListType->SensorPackage.array [v2gSensorPackageListType_SensorPackage_currArrayIndex++]);
- }
- grammarID = 2553;
- } else if (1==1) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- done = 1;
- }
- grammarID = 3;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 2553:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorPackage), END_ELEMENT] */
- if (v2gSensorPackageListType_SensorPackage_currArrayIndex < v2gSensorPackageListType->SensorPackage.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- errn = encode_v2gSensorPackageType(stream, &v2gSensorPackageListType->SensorPackage.array [v2gSensorPackageListType_SensorPackage_currArrayIndex++]);
- }
- grammarID = 2554;
- } else if (1==1) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- done = 1;
- }
- grammarID = 3;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 2554:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorPackage), END_ELEMENT] */
- if (v2gSensorPackageListType_SensorPackage_currArrayIndex < v2gSensorPackageListType->SensorPackage.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- errn = encode_v2gSensorPackageType(stream, &v2gSensorPackageListType->SensorPackage.array [v2gSensorPackageListType_SensorPackage_currArrayIndex++]);
- }
- grammarID = 2555;
- } else if (1==1) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- done = 1;
- }
- grammarID = 3;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 2555:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorPackage), END_ELEMENT] */
- if (v2gSensorPackageListType_SensorPackage_currArrayIndex < v2gSensorPackageListType->SensorPackage.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- errn = encode_v2gSensorPackageType(stream, &v2gSensorPackageListType->SensorPackage.array [v2gSensorPackageListType_SensorPackage_currArrayIndex++]);
- }
- grammarID = 2556;
- } else if (1==1) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- done = 1;
- }
- grammarID = 3;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 2556:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorPackage), END_ELEMENT] */
- if (v2gSensorPackageListType_SensorPackage_currArrayIndex < v2gSensorPackageListType->SensorPackage.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- errn = encode_v2gSensorPackageType(stream, &v2gSensorPackageListType->SensorPackage.array [v2gSensorPackageListType_SensorPackage_currArrayIndex++]);
- }
- grammarID = 2557;
- } else if (1==1) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- done = 1;
- }
- grammarID = 3;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 2557:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorPackage), END_ELEMENT] */
- if (v2gSensorPackageListType_SensorPackage_currArrayIndex < v2gSensorPackageListType->SensorPackage.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- errn = encode_v2gSensorPackageType(stream, &v2gSensorPackageListType->SensorPackage.array [v2gSensorPackageListType_SensorPackage_currArrayIndex++]);
- }
- grammarID = 2558;
- } else if (1==1) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- done = 1;
- }
- grammarID = 3;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 2558:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorPackage), END_ELEMENT] */
- if (v2gSensorPackageListType_SensorPackage_currArrayIndex < v2gSensorPackageListType->SensorPackage.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- errn = encode_v2gSensorPackageType(stream, &v2gSensorPackageListType->SensorPackage.array [v2gSensorPackageListType_SensorPackage_currArrayIndex++]);
- }
- grammarID = 2559;
- } else if (1==1) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- done = 1;
- }
- grammarID = 3;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 2559:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorPackage), END_ELEMENT] */
- if (v2gSensorPackageListType_SensorPackage_currArrayIndex < v2gSensorPackageListType->SensorPackage.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- errn = encode_v2gSensorPackageType(stream, &v2gSensorPackageListType->SensorPackage.array [v2gSensorPackageListType_SensorPackage_currArrayIndex++]);
- }
- grammarID = 2560;
- } else if (1==1) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- done = 1;
- }
- grammarID = 3;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 2560:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorPackage), END_ELEMENT] */
- if (v2gSensorPackageListType_SensorPackage_currArrayIndex < v2gSensorPackageListType->SensorPackage.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- errn = encode_v2gSensorPackageType(stream, &v2gSensorPackageListType->SensorPackage.array [v2gSensorPackageListType_SensorPackage_currArrayIndex++]);
- }
- grammarID = 2561;
- } else if (1==1) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- done = 1;
- }
- grammarID = 3;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 2561:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorPackage), END_ELEMENT] */
- if (v2gSensorPackageListType_SensorPackage_currArrayIndex < v2gSensorPackageListType->SensorPackage.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- errn = encode_v2gSensorPackageType(stream, &v2gSensorPackageListType->SensorPackage.array [v2gSensorPackageListType_SensorPackage_currArrayIndex++]);
- }
- grammarID = 2562;
- } else if (1==1) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- done = 1;
- }
- grammarID = 3;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 2562:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorPackage), END_ELEMENT] */
- if (v2gSensorPackageListType_SensorPackage_currArrayIndex < v2gSensorPackageListType->SensorPackage.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- errn = encode_v2gSensorPackageType(stream, &v2gSensorPackageListType->SensorPackage.array [v2gSensorPackageListType_SensorPackage_currArrayIndex++]);
- }
- grammarID = 2563;
- } else if (1==1) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- done = 1;
- }
- grammarID = 3;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 2563:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorPackage), END_ELEMENT] */
- if (v2gSensorPackageListType_SensorPackage_currArrayIndex < v2gSensorPackageListType->SensorPackage.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- errn = encode_v2gSensorPackageType(stream, &v2gSensorPackageListType->SensorPackage.array [v2gSensorPackageListType_SensorPackage_currArrayIndex++]);
- }
- grammarID = 2564;
- } else if (1==1) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- done = 1;
- }
- grammarID = 3;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 2564:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorPackage), END_ELEMENT] */
- if (v2gSensorPackageListType_SensorPackage_currArrayIndex < v2gSensorPackageListType->SensorPackage.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- errn = encode_v2gSensorPackageType(stream, &v2gSensorPackageListType->SensorPackage.array [v2gSensorPackageListType_SensorPackage_currArrayIndex++]);
- }
- grammarID = 2565;
- } else if (1==1) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- done = 1;
- }
- grammarID = 3;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 2565:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorPackage), END_ELEMENT] */
- if (v2gSensorPackageListType_SensorPackage_currArrayIndex < v2gSensorPackageListType->SensorPackage.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- errn = encode_v2gSensorPackageType(stream, &v2gSensorPackageListType->SensorPackage.array [v2gSensorPackageListType_SensorPackage_currArrayIndex++]);
- }
- grammarID = 2566;
- } else if (1==1) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- done = 1;
- }
- grammarID = 3;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 2566:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorPackage), END_ELEMENT] */
- if (v2gSensorPackageListType_SensorPackage_currArrayIndex < v2gSensorPackageListType->SensorPackage.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- errn = encode_v2gSensorPackageType(stream, &v2gSensorPackageListType->SensorPackage.array [v2gSensorPackageListType_SensorPackage_currArrayIndex++]);
- }
- grammarID = 2567;
- } else if (1==1) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- done = 1;
- }
- grammarID = 3;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 2567:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorPackage), END_ELEMENT] */
- if (v2gSensorPackageListType_SensorPackage_currArrayIndex < v2gSensorPackageListType->SensorPackage.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- errn = encode_v2gSensorPackageType(stream, &v2gSensorPackageListType->SensorPackage.array [v2gSensorPackageListType_SensorPackage_currArrayIndex++]);
- }
- grammarID = 2568;
- } else if (1==1) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- done = 1;
- }
- grammarID = 3;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 2568:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorPackage), END_ELEMENT] */
- if (v2gSensorPackageListType_SensorPackage_currArrayIndex < v2gSensorPackageListType->SensorPackage.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- errn = encode_v2gSensorPackageType(stream, &v2gSensorPackageListType->SensorPackage.array [v2gSensorPackageListType_SensorPackage_currArrayIndex++]);
- }
- grammarID = 2569;
- } else if (1==1) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- done = 1;
- }
- grammarID = 3;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 2569:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorPackage), END_ELEMENT] */
- if (v2gSensorPackageListType_SensorPackage_currArrayIndex < v2gSensorPackageListType->SensorPackage.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- errn = encode_v2gSensorPackageType(stream, &v2gSensorPackageListType->SensorPackage.array [v2gSensorPackageListType_SensorPackage_currArrayIndex++]);
- }
- grammarID = 2570;
- } else if (1==1) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- done = 1;
- }
- grammarID = 3;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 2570:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorPackage), END_ELEMENT] */
- if (v2gSensorPackageListType_SensorPackage_currArrayIndex < v2gSensorPackageListType->SensorPackage.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- errn = encode_v2gSensorPackageType(stream, &v2gSensorPackageListType->SensorPackage.array [v2gSensorPackageListType_SensorPackage_currArrayIndex++]);
- }
- grammarID = 2571;
- } else if (1==1) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- done = 1;
- }
- grammarID = 3;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 2571:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorPackage), END_ELEMENT] */
- if (v2gSensorPackageListType_SensorPackage_currArrayIndex < v2gSensorPackageListType->SensorPackage.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- errn = encode_v2gSensorPackageType(stream, &v2gSensorPackageListType->SensorPackage.array [v2gSensorPackageListType_SensorPackage_currArrayIndex++]);
- }
- grammarID = 2572;
- } else if (1==1) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- done = 1;
- }
- grammarID = 3;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 2572:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorPackage), END_ELEMENT] */
- if (v2gSensorPackageListType_SensorPackage_currArrayIndex < v2gSensorPackageListType->SensorPackage.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- errn = encode_v2gSensorPackageType(stream, &v2gSensorPackageListType->SensorPackage.array [v2gSensorPackageListType_SensorPackage_currArrayIndex++]);
- }
- grammarID = 2573;
- } else if (1==1) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- done = 1;
- }
- grammarID = 3;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 2573:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorPackage), END_ELEMENT] */
- if (v2gSensorPackageListType_SensorPackage_currArrayIndex < v2gSensorPackageListType->SensorPackage.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- errn = encode_v2gSensorPackageType(stream, &v2gSensorPackageListType->SensorPackage.array [v2gSensorPackageListType_SensorPackage_currArrayIndex++]);
- }
- grammarID = 2574;
- } else if (1==1) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- done = 1;
- }
- grammarID = 3;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 2574:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorPackage), END_ELEMENT] */
- if (v2gSensorPackageListType_SensorPackage_currArrayIndex < v2gSensorPackageListType->SensorPackage.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- errn = encode_v2gSensorPackageType(stream, &v2gSensorPackageListType->SensorPackage.array [v2gSensorPackageListType_SensorPackage_currArrayIndex++]);
- }
- grammarID = 2575;
- } else if (1==1) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- done = 1;
- }
- grammarID = 3;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 2575:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorPackage), END_ELEMENT] */
- if (v2gSensorPackageListType_SensorPackage_currArrayIndex < v2gSensorPackageListType->SensorPackage.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- errn = encode_v2gSensorPackageType(stream, &v2gSensorPackageListType->SensorPackage.array [v2gSensorPackageListType_SensorPackage_currArrayIndex++]);
- }
- grammarID = 2576;
- } else if (1==1) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- done = 1;
- }
- grammarID = 3;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 2576:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorPackage), END_ELEMENT] */
- if (v2gSensorPackageListType_SensorPackage_currArrayIndex < v2gSensorPackageListType->SensorPackage.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- errn = encode_v2gSensorPackageType(stream, &v2gSensorPackageListType->SensorPackage.array [v2gSensorPackageListType_SensorPackage_currArrayIndex++]);
- }
- grammarID = 2577;
- } else if (1==1) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- done = 1;
- }
- grammarID = 3;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 2577:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorPackage), END_ELEMENT] */
- if (v2gSensorPackageListType_SensorPackage_currArrayIndex < v2gSensorPackageListType->SensorPackage.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- errn = encode_v2gSensorPackageType(stream, &v2gSensorPackageListType->SensorPackage.array [v2gSensorPackageListType_SensorPackage_currArrayIndex++]);
- }
- grammarID = 2578;
- } else if (1==1) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- done = 1;
- }
- grammarID = 3;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 2578:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorPackage), END_ELEMENT] */
- if (v2gSensorPackageListType_SensorPackage_currArrayIndex < v2gSensorPackageListType->SensorPackage.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- errn = encode_v2gSensorPackageType(stream, &v2gSensorPackageListType->SensorPackage.array [v2gSensorPackageListType_SensorPackage_currArrayIndex++]);
- }
- grammarID = 2579;
- } else if (1==1) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- done = 1;
- }
- grammarID = 3;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 2579:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorPackage), END_ELEMENT] */
- if (v2gSensorPackageListType_SensorPackage_currArrayIndex < v2gSensorPackageListType->SensorPackage.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- errn = encode_v2gSensorPackageType(stream, &v2gSensorPackageListType->SensorPackage.array [v2gSensorPackageListType_SensorPackage_currArrayIndex++]);
- }
- grammarID = 2580;
- } else if (1==1) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- done = 1;
- }
- grammarID = 3;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 2580:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorPackage), END_ELEMENT] */
- if (v2gSensorPackageListType_SensorPackage_currArrayIndex < v2gSensorPackageListType->SensorPackage.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- errn = encode_v2gSensorPackageType(stream, &v2gSensorPackageListType->SensorPackage.array [v2gSensorPackageListType_SensorPackage_currArrayIndex++]);
- }
- grammarID = 2581;
- } else if (1==1) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- done = 1;
- }
- grammarID = 3;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 2581:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorPackage), END_ELEMENT] */
- if (v2gSensorPackageListType_SensorPackage_currArrayIndex < v2gSensorPackageListType->SensorPackage.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- errn = encode_v2gSensorPackageType(stream, &v2gSensorPackageListType->SensorPackage.array [v2gSensorPackageListType_SensorPackage_currArrayIndex++]);
- }
- grammarID = 2582;
- } else if (1==1) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- done = 1;
- }
- grammarID = 3;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 2582:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorPackage), END_ELEMENT] */
- if (v2gSensorPackageListType_SensorPackage_currArrayIndex < v2gSensorPackageListType->SensorPackage.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- errn = encode_v2gSensorPackageType(stream, &v2gSensorPackageListType->SensorPackage.array [v2gSensorPackageListType_SensorPackage_currArrayIndex++]);
- }
- grammarID = 2583;
- } else if (1==1) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- done = 1;
- }
- grammarID = 3;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 2583:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorPackage), END_ELEMENT] */
- if (v2gSensorPackageListType_SensorPackage_currArrayIndex < v2gSensorPackageListType->SensorPackage.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- errn = encode_v2gSensorPackageType(stream, &v2gSensorPackageListType->SensorPackage.array [v2gSensorPackageListType_SensorPackage_currArrayIndex++]);
- }
- grammarID = 2584;
- } else if (1==1) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- done = 1;
- }
- grammarID = 3;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 2584:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorPackage), END_ELEMENT] */
- if (v2gSensorPackageListType_SensorPackage_currArrayIndex < v2gSensorPackageListType->SensorPackage.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- errn = encode_v2gSensorPackageType(stream, &v2gSensorPackageListType->SensorPackage.array [v2gSensorPackageListType_SensorPackage_currArrayIndex++]);
- }
- grammarID = 2585;
- } else if (1==1) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- done = 1;
- }
- grammarID = 3;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 2585:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorPackage), END_ELEMENT] */
- if (v2gSensorPackageListType_SensorPackage_currArrayIndex < v2gSensorPackageListType->SensorPackage.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- errn = encode_v2gSensorPackageType(stream, &v2gSensorPackageListType->SensorPackage.array [v2gSensorPackageListType_SensorPackage_currArrayIndex++]);
- }
- grammarID = 2586;
- } else if (1==1) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- done = 1;
- }
- grammarID = 3;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 2586:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorPackage), END_ELEMENT] */
- if (v2gSensorPackageListType_SensorPackage_currArrayIndex < v2gSensorPackageListType->SensorPackage.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- errn = encode_v2gSensorPackageType(stream, &v2gSensorPackageListType->SensorPackage.array [v2gSensorPackageListType_SensorPackage_currArrayIndex++]);
- }
- grammarID = 2587;
- } else if (1==1) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- done = 1;
- }
- grammarID = 3;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 2587:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorPackage), END_ELEMENT] */
- if (v2gSensorPackageListType_SensorPackage_currArrayIndex < v2gSensorPackageListType->SensorPackage.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- errn = encode_v2gSensorPackageType(stream, &v2gSensorPackageListType->SensorPackage.array [v2gSensorPackageListType_SensorPackage_currArrayIndex++]);
- }
- grammarID = 2588;
- } else if (1==1) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- done = 1;
- }
- grammarID = 3;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 2588:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorPackage), END_ELEMENT] */
- if (v2gSensorPackageListType_SensorPackage_currArrayIndex < v2gSensorPackageListType->SensorPackage.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- errn = encode_v2gSensorPackageType(stream, &v2gSensorPackageListType->SensorPackage.array [v2gSensorPackageListType_SensorPackage_currArrayIndex++]);
- }
- grammarID = 2589;
- } else if (1==1) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- done = 1;
- }
- grammarID = 3;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 2589:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorPackage), END_ELEMENT] */
- if (v2gSensorPackageListType_SensorPackage_currArrayIndex < v2gSensorPackageListType->SensorPackage.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- errn = encode_v2gSensorPackageType(stream, &v2gSensorPackageListType->SensorPackage.array [v2gSensorPackageListType_SensorPackage_currArrayIndex++]);
- }
- grammarID = 2590;
- } else if (1==1) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- done = 1;
- }
- grammarID = 3;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 2590:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorPackage), END_ELEMENT] */
- if (v2gSensorPackageListType_SensorPackage_currArrayIndex < v2gSensorPackageListType->SensorPackage.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- errn = encode_v2gSensorPackageType(stream, &v2gSensorPackageListType->SensorPackage.array [v2gSensorPackageListType_SensorPackage_currArrayIndex++]);
- }
- grammarID = 2591;
- } else if (1==1) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- done = 1;
- }
- grammarID = 3;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 2591:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorPackage), END_ELEMENT] */
- if (v2gSensorPackageListType_SensorPackage_currArrayIndex < v2gSensorPackageListType->SensorPackage.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- errn = encode_v2gSensorPackageType(stream, &v2gSensorPackageListType->SensorPackage.array [v2gSensorPackageListType_SensorPackage_currArrayIndex++]);
- }
- grammarID = 2592;
- } else if (1==1) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- done = 1;
- }
- grammarID = 3;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 2592:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorPackage), END_ELEMENT] */
- if (v2gSensorPackageListType_SensorPackage_currArrayIndex < v2gSensorPackageListType->SensorPackage.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- errn = encode_v2gSensorPackageType(stream, &v2gSensorPackageListType->SensorPackage.array [v2gSensorPackageListType_SensorPackage_currArrayIndex++]);
- }
- grammarID = 2593;
- } else if (1==1) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- done = 1;
- }
- grammarID = 3;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 2593:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorPackage), END_ELEMENT] */
- if (v2gSensorPackageListType_SensorPackage_currArrayIndex < v2gSensorPackageListType->SensorPackage.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- errn = encode_v2gSensorPackageType(stream, &v2gSensorPackageListType->SensorPackage.array [v2gSensorPackageListType_SensorPackage_currArrayIndex++]);
- }
- grammarID = 2594;
- } else if (1==1) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- done = 1;
- }
- grammarID = 3;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 2594:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorPackage), END_ELEMENT] */
- if (v2gSensorPackageListType_SensorPackage_currArrayIndex < v2gSensorPackageListType->SensorPackage.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- errn = encode_v2gSensorPackageType(stream, &v2gSensorPackageListType->SensorPackage.array [v2gSensorPackageListType_SensorPackage_currArrayIndex++]);
- }
- grammarID = 2595;
- } else if (1==1) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- done = 1;
- }
- grammarID = 3;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 2595:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorPackage), END_ELEMENT] */
- if (v2gSensorPackageListType_SensorPackage_currArrayIndex < v2gSensorPackageListType->SensorPackage.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- errn = encode_v2gSensorPackageType(stream, &v2gSensorPackageListType->SensorPackage.array [v2gSensorPackageListType_SensorPackage_currArrayIndex++]);
- }
- grammarID = 2596;
- } else if (1==1) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- done = 1;
- }
- grammarID = 3;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 2596:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorPackage), END_ELEMENT] */
- if (v2gSensorPackageListType_SensorPackage_currArrayIndex < v2gSensorPackageListType->SensorPackage.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- errn = encode_v2gSensorPackageType(stream, &v2gSensorPackageListType->SensorPackage.array [v2gSensorPackageListType_SensorPackage_currArrayIndex++]);
- }
- grammarID = 2597;
- } else if (1==1) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- done = 1;
- }
- grammarID = 3;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 2597:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorPackage), END_ELEMENT] */
- if (v2gSensorPackageListType_SensorPackage_currArrayIndex < v2gSensorPackageListType->SensorPackage.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- errn = encode_v2gSensorPackageType(stream, &v2gSensorPackageListType->SensorPackage.array [v2gSensorPackageListType_SensorPackage_currArrayIndex++]);
- }
- grammarID = 2598;
- } else if (1==1) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- done = 1;
- }
- grammarID = 3;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 2598:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorPackage), END_ELEMENT] */
- if (v2gSensorPackageListType_SensorPackage_currArrayIndex < v2gSensorPackageListType->SensorPackage.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- errn = encode_v2gSensorPackageType(stream, &v2gSensorPackageListType->SensorPackage.array [v2gSensorPackageListType_SensorPackage_currArrayIndex++]);
- }
- grammarID = 2599;
- } else if (1==1) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- done = 1;
- }
- grammarID = 3;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 2599:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorPackage), END_ELEMENT] */
- if (v2gSensorPackageListType_SensorPackage_currArrayIndex < v2gSensorPackageListType->SensorPackage.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- errn = encode_v2gSensorPackageType(stream, &v2gSensorPackageListType->SensorPackage.array [v2gSensorPackageListType_SensorPackage_currArrayIndex++]);
- }
- grammarID = 2600;
- } else if (1==1) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- done = 1;
- }
- grammarID = 3;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 2600:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorPackage), END_ELEMENT] */
- if (v2gSensorPackageListType_SensorPackage_currArrayIndex < v2gSensorPackageListType->SensorPackage.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- errn = encode_v2gSensorPackageType(stream, &v2gSensorPackageListType->SensorPackage.array [v2gSensorPackageListType_SensorPackage_currArrayIndex++]);
- }
- grammarID = 2601;
- } else if (1==1) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- done = 1;
- }
- grammarID = 3;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 2601:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorPackage), END_ELEMENT] */
- if (v2gSensorPackageListType_SensorPackage_currArrayIndex < v2gSensorPackageListType->SensorPackage.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- errn = encode_v2gSensorPackageType(stream, &v2gSensorPackageListType->SensorPackage.array [v2gSensorPackageListType_SensorPackage_currArrayIndex++]);
- }
- grammarID = 2602;
- } else if (1==1) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- done = 1;
- }
- grammarID = 3;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 2602:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorPackage), END_ELEMENT] */
- if (v2gSensorPackageListType_SensorPackage_currArrayIndex < v2gSensorPackageListType->SensorPackage.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- errn = encode_v2gSensorPackageType(stream, &v2gSensorPackageListType->SensorPackage.array [v2gSensorPackageListType_SensorPackage_currArrayIndex++]);
- }
- grammarID = 2603;
- } else if (1==1) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- done = 1;
- }
- grammarID = 3;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 2603:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorPackage), END_ELEMENT] */
- if (v2gSensorPackageListType_SensorPackage_currArrayIndex < v2gSensorPackageListType->SensorPackage.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- errn = encode_v2gSensorPackageType(stream, &v2gSensorPackageListType->SensorPackage.array [v2gSensorPackageListType_SensorPackage_currArrayIndex++]);
- }
- grammarID = 2604;
- } else if (1==1) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- done = 1;
- }
- grammarID = 3;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 2604:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorPackage), END_ELEMENT] */
- if (v2gSensorPackageListType_SensorPackage_currArrayIndex < v2gSensorPackageListType->SensorPackage.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- errn = encode_v2gSensorPackageType(stream, &v2gSensorPackageListType->SensorPackage.array [v2gSensorPackageListType_SensorPackage_currArrayIndex++]);
- }
- grammarID = 2605;
- } else if (1==1) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- done = 1;
- }
- grammarID = 3;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 2605:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorPackage), END_ELEMENT] */
- if (v2gSensorPackageListType_SensorPackage_currArrayIndex < v2gSensorPackageListType->SensorPackage.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- errn = encode_v2gSensorPackageType(stream, &v2gSensorPackageListType->SensorPackage.array [v2gSensorPackageListType_SensorPackage_currArrayIndex++]);
- }
- grammarID = 2606;
- } else if (1==1) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- done = 1;
- }
- grammarID = 3;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 2606:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorPackage), END_ELEMENT] */
- if (v2gSensorPackageListType_SensorPackage_currArrayIndex < v2gSensorPackageListType->SensorPackage.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- errn = encode_v2gSensorPackageType(stream, &v2gSensorPackageListType->SensorPackage.array [v2gSensorPackageListType_SensorPackage_currArrayIndex++]);
- }
- grammarID = 2607;
- } else if (1==1) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- done = 1;
- }
- grammarID = 3;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 2607:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorPackage), END_ELEMENT] */
- if (v2gSensorPackageListType_SensorPackage_currArrayIndex < v2gSensorPackageListType->SensorPackage.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- errn = encode_v2gSensorPackageType(stream, &v2gSensorPackageListType->SensorPackage.array [v2gSensorPackageListType_SensorPackage_currArrayIndex++]);
- }
- grammarID = 2608;
- } else if (1==1) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- done = 1;
- }
- grammarID = 3;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 2608:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorPackage), END_ELEMENT] */
- if (v2gSensorPackageListType_SensorPackage_currArrayIndex < v2gSensorPackageListType->SensorPackage.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- errn = encode_v2gSensorPackageType(stream, &v2gSensorPackageListType->SensorPackage.array [v2gSensorPackageListType_SensorPackage_currArrayIndex++]);
- }
- grammarID = 2609;
- } else if (1==1) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- done = 1;
- }
- grammarID = 3;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 2609:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorPackage), END_ELEMENT] */
- if (v2gSensorPackageListType_SensorPackage_currArrayIndex < v2gSensorPackageListType->SensorPackage.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- errn = encode_v2gSensorPackageType(stream, &v2gSensorPackageListType->SensorPackage.array [v2gSensorPackageListType_SensorPackage_currArrayIndex++]);
- }
- grammarID = 2610;
- } else if (1==1) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- done = 1;
- }
- grammarID = 3;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 2610:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorPackage), END_ELEMENT] */
- if (v2gSensorPackageListType_SensorPackage_currArrayIndex < v2gSensorPackageListType->SensorPackage.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- errn = encode_v2gSensorPackageType(stream, &v2gSensorPackageListType->SensorPackage.array [v2gSensorPackageListType_SensorPackage_currArrayIndex++]);
- }
- grammarID = 2611;
- } else if (1==1) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- done = 1;
- }
- grammarID = 3;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 2611:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorPackage), END_ELEMENT] */
- if (v2gSensorPackageListType_SensorPackage_currArrayIndex < v2gSensorPackageListType->SensorPackage.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- errn = encode_v2gSensorPackageType(stream, &v2gSensorPackageListType->SensorPackage.array [v2gSensorPackageListType_SensorPackage_currArrayIndex++]);
- }
- grammarID = 2612;
- } else if (1==1) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- done = 1;
- }
- grammarID = 3;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 2612:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorPackage), END_ELEMENT] */
- if (v2gSensorPackageListType_SensorPackage_currArrayIndex < v2gSensorPackageListType->SensorPackage.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- errn = encode_v2gSensorPackageType(stream, &v2gSensorPackageListType->SensorPackage.array [v2gSensorPackageListType_SensorPackage_currArrayIndex++]);
- }
- grammarID = 2613;
- } else if (1==1) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- done = 1;
- }
- grammarID = 3;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 2613:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorPackage), END_ELEMENT] */
- if (v2gSensorPackageListType_SensorPackage_currArrayIndex < v2gSensorPackageListType->SensorPackage.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- errn = encode_v2gSensorPackageType(stream, &v2gSensorPackageListType->SensorPackage.array [v2gSensorPackageListType_SensorPackage_currArrayIndex++]);
- }
- grammarID = 2614;
- } else if (1==1) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- done = 1;
- }
- grammarID = 3;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 2614:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorPackage), END_ELEMENT] */
- if (v2gSensorPackageListType_SensorPackage_currArrayIndex < v2gSensorPackageListType->SensorPackage.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- errn = encode_v2gSensorPackageType(stream, &v2gSensorPackageListType->SensorPackage.array [v2gSensorPackageListType_SensorPackage_currArrayIndex++]);
- }
- grammarID = 2615;
- } else if (1==1) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- done = 1;
- }
- grammarID = 3;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 2615:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorPackage), END_ELEMENT] */
- if (v2gSensorPackageListType_SensorPackage_currArrayIndex < v2gSensorPackageListType->SensorPackage.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- errn = encode_v2gSensorPackageType(stream, &v2gSensorPackageListType->SensorPackage.array [v2gSensorPackageListType_SensorPackage_currArrayIndex++]);
- }
- grammarID = 2616;
- } else if (1==1) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- done = 1;
- }
- grammarID = 3;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 2616:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorPackage), END_ELEMENT] */
- if (v2gSensorPackageListType_SensorPackage_currArrayIndex < v2gSensorPackageListType->SensorPackage.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- errn = encode_v2gSensorPackageType(stream, &v2gSensorPackageListType->SensorPackage.array [v2gSensorPackageListType_SensorPackage_currArrayIndex++]);
- }
- grammarID = 2617;
- } else if (1==1) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- done = 1;
- }
- grammarID = 3;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 2617:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorPackage), END_ELEMENT] */
- if (v2gSensorPackageListType_SensorPackage_currArrayIndex < v2gSensorPackageListType->SensorPackage.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- errn = encode_v2gSensorPackageType(stream, &v2gSensorPackageListType->SensorPackage.array [v2gSensorPackageListType_SensorPackage_currArrayIndex++]);
- }
- grammarID = 2618;
- } else if (1==1) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- done = 1;
- }
- grammarID = 3;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 2618:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorPackage), END_ELEMENT] */
- if (v2gSensorPackageListType_SensorPackage_currArrayIndex < v2gSensorPackageListType->SensorPackage.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- errn = encode_v2gSensorPackageType(stream, &v2gSensorPackageListType->SensorPackage.array [v2gSensorPackageListType_SensorPackage_currArrayIndex++]);
- }
- grammarID = 2619;
- } else if (1==1) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- done = 1;
- }
- grammarID = 3;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 2619:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorPackage), END_ELEMENT] */
- if (v2gSensorPackageListType_SensorPackage_currArrayIndex < v2gSensorPackageListType->SensorPackage.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- errn = encode_v2gSensorPackageType(stream, &v2gSensorPackageListType->SensorPackage.array [v2gSensorPackageListType_SensorPackage_currArrayIndex++]);
- }
- grammarID = 2620;
- } else if (1==1) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- done = 1;
- }
- grammarID = 3;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 2620:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorPackage), END_ELEMENT] */
- if (v2gSensorPackageListType_SensorPackage_currArrayIndex < v2gSensorPackageListType->SensorPackage.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- errn = encode_v2gSensorPackageType(stream, &v2gSensorPackageListType->SensorPackage.array [v2gSensorPackageListType_SensorPackage_currArrayIndex++]);
- }
- grammarID = 2621;
- } else if (1==1) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- done = 1;
- }
- grammarID = 3;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 2621:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorPackage), END_ELEMENT] */
- if (v2gSensorPackageListType_SensorPackage_currArrayIndex < v2gSensorPackageListType->SensorPackage.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- errn = encode_v2gSensorPackageType(stream, &v2gSensorPackageListType->SensorPackage.array [v2gSensorPackageListType_SensorPackage_currArrayIndex++]);
- }
- grammarID = 2622;
- } else if (1==1) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- done = 1;
- }
- grammarID = 3;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 2622:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorPackage), END_ELEMENT] */
- if (v2gSensorPackageListType_SensorPackage_currArrayIndex < v2gSensorPackageListType->SensorPackage.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- errn = encode_v2gSensorPackageType(stream, &v2gSensorPackageListType->SensorPackage.array [v2gSensorPackageListType_SensorPackage_currArrayIndex++]);
- }
- grammarID = 2623;
- } else if (1==1) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- done = 1;
- }
- grammarID = 3;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 2623:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorPackage), END_ELEMENT] */
- if (v2gSensorPackageListType_SensorPackage_currArrayIndex < v2gSensorPackageListType->SensorPackage.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- errn = encode_v2gSensorPackageType(stream, &v2gSensorPackageListType->SensorPackage.array [v2gSensorPackageListType_SensorPackage_currArrayIndex++]);
- }
- grammarID = 2624;
- } else if (1==1) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- done = 1;
- }
- grammarID = 3;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 2624:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorPackage), END_ELEMENT] */
- if (v2gSensorPackageListType_SensorPackage_currArrayIndex < v2gSensorPackageListType->SensorPackage.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- errn = encode_v2gSensorPackageType(stream, &v2gSensorPackageListType->SensorPackage.array [v2gSensorPackageListType_SensorPackage_currArrayIndex++]);
- }
- grammarID = 2625;
- } else if (1==1) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- done = 1;
- }
- grammarID = 3;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 2625:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorPackage), END_ELEMENT] */
- if (v2gSensorPackageListType_SensorPackage_currArrayIndex < v2gSensorPackageListType->SensorPackage.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- errn = encode_v2gSensorPackageType(stream, &v2gSensorPackageListType->SensorPackage.array [v2gSensorPackageListType_SensorPackage_currArrayIndex++]);
- }
- grammarID = 2626;
- } else if (1==1) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- done = 1;
- }
- grammarID = 3;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 2626:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorPackage), END_ELEMENT] */
- if (v2gSensorPackageListType_SensorPackage_currArrayIndex < v2gSensorPackageListType->SensorPackage.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- errn = encode_v2gSensorPackageType(stream, &v2gSensorPackageListType->SensorPackage.array [v2gSensorPackageListType_SensorPackage_currArrayIndex++]);
- }
- grammarID = 2627;
- } else if (1==1) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- done = 1;
- }
- grammarID = 3;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 2627:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorPackage), END_ELEMENT] */
- if (v2gSensorPackageListType_SensorPackage_currArrayIndex < v2gSensorPackageListType->SensorPackage.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- errn = encode_v2gSensorPackageType(stream, &v2gSensorPackageListType->SensorPackage.array [v2gSensorPackageListType_SensorPackage_currArrayIndex++]);
- }
- grammarID = 2628;
- } else if (1==1) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- done = 1;
- }
- grammarID = 3;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 2628:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorPackage), END_ELEMENT] */
- if (v2gSensorPackageListType_SensorPackage_currArrayIndex < v2gSensorPackageListType->SensorPackage.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- errn = encode_v2gSensorPackageType(stream, &v2gSensorPackageListType->SensorPackage.array [v2gSensorPackageListType_SensorPackage_currArrayIndex++]);
- }
- grammarID = 2629;
- } else if (1==1) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- done = 1;
- }
- grammarID = 3;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 2629:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorPackage), END_ELEMENT] */
- if (v2gSensorPackageListType_SensorPackage_currArrayIndex < v2gSensorPackageListType->SensorPackage.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- errn = encode_v2gSensorPackageType(stream, &v2gSensorPackageListType->SensorPackage.array [v2gSensorPackageListType_SensorPackage_currArrayIndex++]);
- }
- grammarID = 2630;
- } else if (1==1) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- done = 1;
- }
- grammarID = 3;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 2630:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorPackage), END_ELEMENT] */
- if (v2gSensorPackageListType_SensorPackage_currArrayIndex < v2gSensorPackageListType->SensorPackage.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- errn = encode_v2gSensorPackageType(stream, &v2gSensorPackageListType->SensorPackage.array [v2gSensorPackageListType_SensorPackage_currArrayIndex++]);
- }
- grammarID = 2631;
- } else if (1==1) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- done = 1;
- }
- grammarID = 3;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 2631:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorPackage), END_ELEMENT] */
- if (v2gSensorPackageListType_SensorPackage_currArrayIndex < v2gSensorPackageListType->SensorPackage.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- errn = encode_v2gSensorPackageType(stream, &v2gSensorPackageListType->SensorPackage.array [v2gSensorPackageListType_SensorPackage_currArrayIndex++]);
- }
- grammarID = 2632;
- } else if (1==1) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- done = 1;
- }
- grammarID = 3;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 2632:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorPackage), END_ELEMENT] */
- if (v2gSensorPackageListType_SensorPackage_currArrayIndex < v2gSensorPackageListType->SensorPackage.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- errn = encode_v2gSensorPackageType(stream, &v2gSensorPackageListType->SensorPackage.array [v2gSensorPackageListType_SensorPackage_currArrayIndex++]);
- }
- grammarID = 2633;
- } else if (1==1) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- done = 1;
- }
- grammarID = 3;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 2633:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorPackage), END_ELEMENT] */
- if (v2gSensorPackageListType_SensorPackage_currArrayIndex < v2gSensorPackageListType->SensorPackage.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- errn = encode_v2gSensorPackageType(stream, &v2gSensorPackageListType->SensorPackage.array [v2gSensorPackageListType_SensorPackage_currArrayIndex++]);
- }
- grammarID = 2634;
- } else if (1==1) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- done = 1;
- }
- grammarID = 3;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 2634:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorPackage), END_ELEMENT] */
- if (v2gSensorPackageListType_SensorPackage_currArrayIndex < v2gSensorPackageListType->SensorPackage.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- errn = encode_v2gSensorPackageType(stream, &v2gSensorPackageListType->SensorPackage.array [v2gSensorPackageListType_SensorPackage_currArrayIndex++]);
- }
- grammarID = 2635;
- } else if (1==1) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- done = 1;
- }
- grammarID = 3;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 2635:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorPackage), END_ELEMENT] */
- if (v2gSensorPackageListType_SensorPackage_currArrayIndex < v2gSensorPackageListType->SensorPackage.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- errn = encode_v2gSensorPackageType(stream, &v2gSensorPackageListType->SensorPackage.array [v2gSensorPackageListType_SensorPackage_currArrayIndex++]);
- }
- grammarID = 2636;
- } else if (1==1) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- done = 1;
- }
- grammarID = 3;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 2636:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorPackage), END_ELEMENT] */
- if (v2gSensorPackageListType_SensorPackage_currArrayIndex < v2gSensorPackageListType->SensorPackage.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- errn = encode_v2gSensorPackageType(stream, &v2gSensorPackageListType->SensorPackage.array [v2gSensorPackageListType_SensorPackage_currArrayIndex++]);
- }
- grammarID = 2637;
- } else if (1==1) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- done = 1;
- }
- grammarID = 3;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 2637:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorPackage), END_ELEMENT] */
- if (v2gSensorPackageListType_SensorPackage_currArrayIndex < v2gSensorPackageListType->SensorPackage.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- errn = encode_v2gSensorPackageType(stream, &v2gSensorPackageListType->SensorPackage.array [v2gSensorPackageListType_SensorPackage_currArrayIndex++]);
- }
- grammarID = 2638;
- } else if (1==1) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- done = 1;
- }
- grammarID = 3;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 2638:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorPackage), END_ELEMENT] */
- if (v2gSensorPackageListType_SensorPackage_currArrayIndex < v2gSensorPackageListType->SensorPackage.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- errn = encode_v2gSensorPackageType(stream, &v2gSensorPackageListType->SensorPackage.array [v2gSensorPackageListType_SensorPackage_currArrayIndex++]);
- }
- grammarID = 2639;
- } else if (1==1) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- done = 1;
- }
- grammarID = 3;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 2639:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorPackage), END_ELEMENT] */
- if (v2gSensorPackageListType_SensorPackage_currArrayIndex < v2gSensorPackageListType->SensorPackage.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- errn = encode_v2gSensorPackageType(stream, &v2gSensorPackageListType->SensorPackage.array [v2gSensorPackageListType_SensorPackage_currArrayIndex++]);
- }
- grammarID = 2640;
- } else if (1==1) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- done = 1;
- }
- grammarID = 3;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 2640:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorPackage), END_ELEMENT] */
- if (v2gSensorPackageListType_SensorPackage_currArrayIndex < v2gSensorPackageListType->SensorPackage.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- errn = encode_v2gSensorPackageType(stream, &v2gSensorPackageListType->SensorPackage.array [v2gSensorPackageListType_SensorPackage_currArrayIndex++]);
- }
- grammarID = 2641;
- } else if (1==1) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- done = 1;
- }
- grammarID = 3;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 2641:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorPackage), END_ELEMENT] */
- if (v2gSensorPackageListType_SensorPackage_currArrayIndex < v2gSensorPackageListType->SensorPackage.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- errn = encode_v2gSensorPackageType(stream, &v2gSensorPackageListType->SensorPackage.array [v2gSensorPackageListType_SensorPackage_currArrayIndex++]);
- }
- grammarID = 2642;
- } else if (1==1) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- done = 1;
- }
- grammarID = 3;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 2642:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorPackage), END_ELEMENT] */
- if (v2gSensorPackageListType_SensorPackage_currArrayIndex < v2gSensorPackageListType->SensorPackage.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- errn = encode_v2gSensorPackageType(stream, &v2gSensorPackageListType->SensorPackage.array [v2gSensorPackageListType_SensorPackage_currArrayIndex++]);
- }
- grammarID = 2643;
- } else if (1==1) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- done = 1;
- }
- grammarID = 3;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 2643:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorPackage), END_ELEMENT] */
- if (v2gSensorPackageListType_SensorPackage_currArrayIndex < v2gSensorPackageListType->SensorPackage.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- errn = encode_v2gSensorPackageType(stream, &v2gSensorPackageListType->SensorPackage.array [v2gSensorPackageListType_SensorPackage_currArrayIndex++]);
- }
- grammarID = 2644;
- } else if (1==1) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- done = 1;
- }
- grammarID = 3;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 2644:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorPackage), END_ELEMENT] */
- if (v2gSensorPackageListType_SensorPackage_currArrayIndex < v2gSensorPackageListType->SensorPackage.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- errn = encode_v2gSensorPackageType(stream, &v2gSensorPackageListType->SensorPackage.array [v2gSensorPackageListType_SensorPackage_currArrayIndex++]);
- }
- grammarID = 2645;
- } else if (1==1) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- done = 1;
- }
- grammarID = 3;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 2645:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorPackage), END_ELEMENT] */
- if (v2gSensorPackageListType_SensorPackage_currArrayIndex < v2gSensorPackageListType->SensorPackage.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- errn = encode_v2gSensorPackageType(stream, &v2gSensorPackageListType->SensorPackage.array [v2gSensorPackageListType_SensorPackage_currArrayIndex++]);
- }
- grammarID = 2646;
- } else if (1==1) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- done = 1;
- }
- grammarID = 3;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 2646:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorPackage), END_ELEMENT] */
- if (v2gSensorPackageListType_SensorPackage_currArrayIndex < v2gSensorPackageListType->SensorPackage.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- errn = encode_v2gSensorPackageType(stream, &v2gSensorPackageListType->SensorPackage.array [v2gSensorPackageListType_SensorPackage_currArrayIndex++]);
- }
- grammarID = 2647;
- } else if (1==1) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- done = 1;
- }
- grammarID = 3;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 2647:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorPackage), END_ELEMENT] */
- if (v2gSensorPackageListType_SensorPackage_currArrayIndex < v2gSensorPackageListType->SensorPackage.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- errn = encode_v2gSensorPackageType(stream, &v2gSensorPackageListType->SensorPackage.array [v2gSensorPackageListType_SensorPackage_currArrayIndex++]);
- }
- grammarID = 2648;
- } else if (1==1) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- done = 1;
- }
- grammarID = 3;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 2648:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorPackage), END_ELEMENT] */
- if (v2gSensorPackageListType_SensorPackage_currArrayIndex < v2gSensorPackageListType->SensorPackage.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- errn = encode_v2gSensorPackageType(stream, &v2gSensorPackageListType->SensorPackage.array [v2gSensorPackageListType_SensorPackage_currArrayIndex++]);
- }
- grammarID = 2649;
- } else if (1==1) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- done = 1;
- }
- grammarID = 3;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 2649:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorPackage), END_ELEMENT] */
- if (v2gSensorPackageListType_SensorPackage_currArrayIndex < v2gSensorPackageListType->SensorPackage.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- errn = encode_v2gSensorPackageType(stream, &v2gSensorPackageListType->SensorPackage.array [v2gSensorPackageListType_SensorPackage_currArrayIndex++]);
- }
- grammarID = 2650;
- } else if (1==1) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- done = 1;
- }
- grammarID = 3;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 2650:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorPackage), END_ELEMENT] */
- if (v2gSensorPackageListType_SensorPackage_currArrayIndex < v2gSensorPackageListType->SensorPackage.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- errn = encode_v2gSensorPackageType(stream, &v2gSensorPackageListType->SensorPackage.array [v2gSensorPackageListType_SensorPackage_currArrayIndex++]);
- }
- grammarID = 2651;
- } else if (1==1) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- done = 1;
- }
- grammarID = 3;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 2651:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorPackage), END_ELEMENT] */
- if (v2gSensorPackageListType_SensorPackage_currArrayIndex < v2gSensorPackageListType->SensorPackage.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- errn = encode_v2gSensorPackageType(stream, &v2gSensorPackageListType->SensorPackage.array [v2gSensorPackageListType_SensorPackage_currArrayIndex++]);
- }
- grammarID = 2652;
- } else if (1==1) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- done = 1;
- }
- grammarID = 3;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 2652:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorPackage), END_ELEMENT] */
- if (v2gSensorPackageListType_SensorPackage_currArrayIndex < v2gSensorPackageListType->SensorPackage.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- errn = encode_v2gSensorPackageType(stream, &v2gSensorPackageListType->SensorPackage.array [v2gSensorPackageListType_SensorPackage_currArrayIndex++]);
- }
- grammarID = 2653;
- } else if (1==1) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- done = 1;
- }
- grammarID = 3;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 2653:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorPackage), END_ELEMENT] */
- if (v2gSensorPackageListType_SensorPackage_currArrayIndex < v2gSensorPackageListType->SensorPackage.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- errn = encode_v2gSensorPackageType(stream, &v2gSensorPackageListType->SensorPackage.array [v2gSensorPackageListType_SensorPackage_currArrayIndex++]);
- }
- grammarID = 2654;
- } else if (1==1) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- done = 1;
- }
- grammarID = 3;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 2654:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorPackage), END_ELEMENT] */
- if (v2gSensorPackageListType_SensorPackage_currArrayIndex < v2gSensorPackageListType->SensorPackage.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- errn = encode_v2gSensorPackageType(stream, &v2gSensorPackageListType->SensorPackage.array [v2gSensorPackageListType_SensorPackage_currArrayIndex++]);
- }
- grammarID = 2655;
- } else if (1==1) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- done = 1;
- }
- grammarID = 3;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 2655:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorPackage), END_ELEMENT] */
- if (v2gSensorPackageListType_SensorPackage_currArrayIndex < v2gSensorPackageListType->SensorPackage.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- errn = encode_v2gSensorPackageType(stream, &v2gSensorPackageListType->SensorPackage.array [v2gSensorPackageListType_SensorPackage_currArrayIndex++]);
- }
- grammarID = 2656;
- } else if (1==1) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- done = 1;
- }
- grammarID = 3;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 2656:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorPackage), END_ELEMENT] */
- if (v2gSensorPackageListType_SensorPackage_currArrayIndex < v2gSensorPackageListType->SensorPackage.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- errn = encode_v2gSensorPackageType(stream, &v2gSensorPackageListType->SensorPackage.array [v2gSensorPackageListType_SensorPackage_currArrayIndex++]);
- }
- grammarID = 2657;
- } else if (1==1) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- done = 1;
- }
- grammarID = 3;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 2657:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorPackage), END_ELEMENT] */
- if (v2gSensorPackageListType_SensorPackage_currArrayIndex < v2gSensorPackageListType->SensorPackage.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- errn = encode_v2gSensorPackageType(stream, &v2gSensorPackageListType->SensorPackage.array [v2gSensorPackageListType_SensorPackage_currArrayIndex++]);
- }
- grammarID = 2658;
- } else if (1==1) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- done = 1;
- }
- grammarID = 3;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 2658:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorPackage), END_ELEMENT] */
- if (v2gSensorPackageListType_SensorPackage_currArrayIndex < v2gSensorPackageListType->SensorPackage.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- errn = encode_v2gSensorPackageType(stream, &v2gSensorPackageListType->SensorPackage.array [v2gSensorPackageListType_SensorPackage_currArrayIndex++]);
- }
- grammarID = 2659;
- } else if (1==1) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- done = 1;
- }
- grammarID = 3;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 2659:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorPackage), END_ELEMENT] */
- if (v2gSensorPackageListType_SensorPackage_currArrayIndex < v2gSensorPackageListType->SensorPackage.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- errn = encode_v2gSensorPackageType(stream, &v2gSensorPackageListType->SensorPackage.array [v2gSensorPackageListType_SensorPackage_currArrayIndex++]);
- }
- grammarID = 2660;
- } else if (1==1) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- done = 1;
- }
- grammarID = 3;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 2660:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorPackage), END_ELEMENT] */
- if (v2gSensorPackageListType_SensorPackage_currArrayIndex < v2gSensorPackageListType->SensorPackage.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- errn = encode_v2gSensorPackageType(stream, &v2gSensorPackageListType->SensorPackage.array [v2gSensorPackageListType_SensorPackage_currArrayIndex++]);
- }
- grammarID = 2661;
- } else if (1==1) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- done = 1;
- }
- grammarID = 3;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 2661:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorPackage), END_ELEMENT] */
- if (v2gSensorPackageListType_SensorPackage_currArrayIndex < v2gSensorPackageListType->SensorPackage.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- errn = encode_v2gSensorPackageType(stream, &v2gSensorPackageListType->SensorPackage.array [v2gSensorPackageListType_SensorPackage_currArrayIndex++]);
- }
- grammarID = 2662;
- } else if (1==1) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- done = 1;
- }
- grammarID = 3;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 2662:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorPackage), END_ELEMENT] */
- if (v2gSensorPackageListType_SensorPackage_currArrayIndex < v2gSensorPackageListType->SensorPackage.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- errn = encode_v2gSensorPackageType(stream, &v2gSensorPackageListType->SensorPackage.array [v2gSensorPackageListType_SensorPackage_currArrayIndex++]);
- }
- grammarID = 2663;
- } else if (1==1) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- done = 1;
- }
- grammarID = 3;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 2663:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorPackage), END_ELEMENT] */
- if (v2gSensorPackageListType_SensorPackage_currArrayIndex < v2gSensorPackageListType->SensorPackage.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- errn = encode_v2gSensorPackageType(stream, &v2gSensorPackageListType->SensorPackage.array [v2gSensorPackageListType_SensorPackage_currArrayIndex++]);
- }
- grammarID = 2664;
- } else if (1==1) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- done = 1;
- }
- grammarID = 3;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 2664:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorPackage), END_ELEMENT] */
- if (v2gSensorPackageListType_SensorPackage_currArrayIndex < v2gSensorPackageListType->SensorPackage.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- errn = encode_v2gSensorPackageType(stream, &v2gSensorPackageListType->SensorPackage.array [v2gSensorPackageListType_SensorPackage_currArrayIndex++]);
- }
- grammarID = 2665;
- } else if (1==1) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- done = 1;
- }
- grammarID = 3;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 2665:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorPackage), END_ELEMENT] */
- if (v2gSensorPackageListType_SensorPackage_currArrayIndex < v2gSensorPackageListType->SensorPackage.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- errn = encode_v2gSensorPackageType(stream, &v2gSensorPackageListType->SensorPackage.array [v2gSensorPackageListType_SensorPackage_currArrayIndex++]);
- }
- grammarID = 2666;
- } else if (1==1) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- done = 1;
- }
- grammarID = 3;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 2666:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorPackage), END_ELEMENT] */
- if (v2gSensorPackageListType_SensorPackage_currArrayIndex < v2gSensorPackageListType->SensorPackage.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- errn = encode_v2gSensorPackageType(stream, &v2gSensorPackageListType->SensorPackage.array [v2gSensorPackageListType_SensorPackage_currArrayIndex++]);
- }
- grammarID = 2667;
- } else if (1==1) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- done = 1;
- }
- grammarID = 3;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 2667:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorPackage), END_ELEMENT] */
- if (v2gSensorPackageListType_SensorPackage_currArrayIndex < v2gSensorPackageListType->SensorPackage.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- errn = encode_v2gSensorPackageType(stream, &v2gSensorPackageListType->SensorPackage.array [v2gSensorPackageListType_SensorPackage_currArrayIndex++]);
- }
- grammarID = 2668;
- } else if (1==1) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- done = 1;
- }
- grammarID = 3;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 2668:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorPackage), END_ELEMENT] */
- if (v2gSensorPackageListType_SensorPackage_currArrayIndex < v2gSensorPackageListType->SensorPackage.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- errn = encode_v2gSensorPackageType(stream, &v2gSensorPackageListType->SensorPackage.array [v2gSensorPackageListType_SensorPackage_currArrayIndex++]);
- }
- grammarID = 2669;
- } else if (1==1) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- done = 1;
- }
- grammarID = 3;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 2669:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorPackage), END_ELEMENT] */
- if (v2gSensorPackageListType_SensorPackage_currArrayIndex < v2gSensorPackageListType->SensorPackage.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- errn = encode_v2gSensorPackageType(stream, &v2gSensorPackageListType->SensorPackage.array [v2gSensorPackageListType_SensorPackage_currArrayIndex++]);
- }
- grammarID = 2670;
- } else if (1==1) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- done = 1;
- }
- grammarID = 3;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 2670:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorPackage), END_ELEMENT] */
- if (v2gSensorPackageListType_SensorPackage_currArrayIndex < v2gSensorPackageListType->SensorPackage.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- errn = encode_v2gSensorPackageType(stream, &v2gSensorPackageListType->SensorPackage.array [v2gSensorPackageListType_SensorPackage_currArrayIndex++]);
- }
- grammarID = 2671;
- } else if (1==1) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- done = 1;
- }
- grammarID = 3;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 2671:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorPackage), END_ELEMENT] */
- if (v2gSensorPackageListType_SensorPackage_currArrayIndex < v2gSensorPackageListType->SensorPackage.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- errn = encode_v2gSensorPackageType(stream, &v2gSensorPackageListType->SensorPackage.array [v2gSensorPackageListType_SensorPackage_currArrayIndex++]);
- }
- grammarID = 2672;
- } else if (1==1) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- done = 1;
- }
- grammarID = 3;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 2672:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorPackage), END_ELEMENT] */
- if (v2gSensorPackageListType_SensorPackage_currArrayIndex < v2gSensorPackageListType->SensorPackage.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- errn = encode_v2gSensorPackageType(stream, &v2gSensorPackageListType->SensorPackage.array [v2gSensorPackageListType_SensorPackage_currArrayIndex++]);
- }
- grammarID = 2673;
- } else if (1==1) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- done = 1;
- }
- grammarID = 3;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 2673:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorPackage), END_ELEMENT] */
- if (v2gSensorPackageListType_SensorPackage_currArrayIndex < v2gSensorPackageListType->SensorPackage.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- errn = encode_v2gSensorPackageType(stream, &v2gSensorPackageListType->SensorPackage.array [v2gSensorPackageListType_SensorPackage_currArrayIndex++]);
- }
- grammarID = 2674;
- } else if (1==1) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- done = 1;
- }
- grammarID = 3;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 2674:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorPackage), END_ELEMENT] */
- if (v2gSensorPackageListType_SensorPackage_currArrayIndex < v2gSensorPackageListType->SensorPackage.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- errn = encode_v2gSensorPackageType(stream, &v2gSensorPackageListType->SensorPackage.array [v2gSensorPackageListType_SensorPackage_currArrayIndex++]);
- }
- grammarID = 2675;
- } else if (1==1) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- done = 1;
- }
- grammarID = 3;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 2675:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorPackage), END_ELEMENT] */
- if (v2gSensorPackageListType_SensorPackage_currArrayIndex < v2gSensorPackageListType->SensorPackage.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- errn = encode_v2gSensorPackageType(stream, &v2gSensorPackageListType->SensorPackage.array [v2gSensorPackageListType_SensorPackage_currArrayIndex++]);
- }
- grammarID = 2676;
- } else if (1==1) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- done = 1;
- }
- grammarID = 3;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 2676:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorPackage), END_ELEMENT] */
- if (v2gSensorPackageListType_SensorPackage_currArrayIndex < v2gSensorPackageListType->SensorPackage.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- errn = encode_v2gSensorPackageType(stream, &v2gSensorPackageListType->SensorPackage.array [v2gSensorPackageListType_SensorPackage_currArrayIndex++]);
- }
- grammarID = 2677;
- } else if (1==1) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- done = 1;
- }
- grammarID = 3;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 2677:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorPackage), END_ELEMENT] */
- if (v2gSensorPackageListType_SensorPackage_currArrayIndex < v2gSensorPackageListType->SensorPackage.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- errn = encode_v2gSensorPackageType(stream, &v2gSensorPackageListType->SensorPackage.array [v2gSensorPackageListType_SensorPackage_currArrayIndex++]);
- }
- grammarID = 2678;
- } else if (1==1) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- done = 1;
- }
- grammarID = 3;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 2678:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorPackage), END_ELEMENT] */
- if (v2gSensorPackageListType_SensorPackage_currArrayIndex < v2gSensorPackageListType->SensorPackage.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- errn = encode_v2gSensorPackageType(stream, &v2gSensorPackageListType->SensorPackage.array [v2gSensorPackageListType_SensorPackage_currArrayIndex++]);
- }
- grammarID = 2679;
- } else if (1==1) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- done = 1;
- }
- grammarID = 3;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 2679:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorPackage), END_ELEMENT] */
- if (v2gSensorPackageListType_SensorPackage_currArrayIndex < v2gSensorPackageListType->SensorPackage.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- errn = encode_v2gSensorPackageType(stream, &v2gSensorPackageListType->SensorPackage.array [v2gSensorPackageListType_SensorPackage_currArrayIndex++]);
- }
- grammarID = 2680;
- } else if (1==1) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- done = 1;
- }
- grammarID = 3;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 2680:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorPackage), END_ELEMENT] */
- if (v2gSensorPackageListType_SensorPackage_currArrayIndex < v2gSensorPackageListType->SensorPackage.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- errn = encode_v2gSensorPackageType(stream, &v2gSensorPackageListType->SensorPackage.array [v2gSensorPackageListType_SensorPackage_currArrayIndex++]);
- }
- grammarID = 2681;
- } else if (1==1) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- done = 1;
- }
- grammarID = 3;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 2681:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorPackage), END_ELEMENT] */
- if (v2gSensorPackageListType_SensorPackage_currArrayIndex < v2gSensorPackageListType->SensorPackage.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- errn = encode_v2gSensorPackageType(stream, &v2gSensorPackageListType->SensorPackage.array [v2gSensorPackageListType_SensorPackage_currArrayIndex++]);
- }
- grammarID = 2682;
- } else if (1==1) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- done = 1;
- }
- grammarID = 3;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 2682:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorPackage), END_ELEMENT] */
- if (v2gSensorPackageListType_SensorPackage_currArrayIndex < v2gSensorPackageListType->SensorPackage.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- errn = encode_v2gSensorPackageType(stream, &v2gSensorPackageListType->SensorPackage.array [v2gSensorPackageListType_SensorPackage_currArrayIndex++]);
- }
- grammarID = 2683;
- } else if (1==1) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- done = 1;
- }
- grammarID = 3;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 2683:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorPackage), END_ELEMENT] */
- if (v2gSensorPackageListType_SensorPackage_currArrayIndex < v2gSensorPackageListType->SensorPackage.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- errn = encode_v2gSensorPackageType(stream, &v2gSensorPackageListType->SensorPackage.array [v2gSensorPackageListType_SensorPackage_currArrayIndex++]);
- }
- grammarID = 2684;
- } else if (1==1) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- done = 1;
- }
- grammarID = 3;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 2684:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorPackage), END_ELEMENT] */
- if (v2gSensorPackageListType_SensorPackage_currArrayIndex < v2gSensorPackageListType->SensorPackage.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- errn = encode_v2gSensorPackageType(stream, &v2gSensorPackageListType->SensorPackage.array [v2gSensorPackageListType_SensorPackage_currArrayIndex++]);
- }
- grammarID = 2685;
- } else if (1==1) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- done = 1;
- }
- grammarID = 3;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 2685:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorPackage), END_ELEMENT] */
- if (v2gSensorPackageListType_SensorPackage_currArrayIndex < v2gSensorPackageListType->SensorPackage.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- errn = encode_v2gSensorPackageType(stream, &v2gSensorPackageListType->SensorPackage.array [v2gSensorPackageListType_SensorPackage_currArrayIndex++]);
- }
- grammarID = 2686;
- } else if (1==1) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- done = 1;
- }
- grammarID = 3;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 2686:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorPackage), END_ELEMENT] */
- if (v2gSensorPackageListType_SensorPackage_currArrayIndex < v2gSensorPackageListType->SensorPackage.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- errn = encode_v2gSensorPackageType(stream, &v2gSensorPackageListType->SensorPackage.array [v2gSensorPackageListType_SensorPackage_currArrayIndex++]);
- }
- grammarID = 2687;
- } else if (1==1) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- done = 1;
- }
- grammarID = 3;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 2687:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorPackage), END_ELEMENT] */
- if (v2gSensorPackageListType_SensorPackage_currArrayIndex < v2gSensorPackageListType->SensorPackage.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- errn = encode_v2gSensorPackageType(stream, &v2gSensorPackageListType->SensorPackage.array [v2gSensorPackageListType_SensorPackage_currArrayIndex++]);
- }
- grammarID = 2688;
- } else if (1==1) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- done = 1;
- }
- grammarID = 3;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 2688:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorPackage), END_ELEMENT] */
- if (v2gSensorPackageListType_SensorPackage_currArrayIndex < v2gSensorPackageListType->SensorPackage.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- errn = encode_v2gSensorPackageType(stream, &v2gSensorPackageListType->SensorPackage.array [v2gSensorPackageListType_SensorPackage_currArrayIndex++]);
- }
- grammarID = 2689;
- } else if (1==1) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- done = 1;
- }
- grammarID = 3;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 2689:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorPackage), END_ELEMENT] */
- if (v2gSensorPackageListType_SensorPackage_currArrayIndex < v2gSensorPackageListType->SensorPackage.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- errn = encode_v2gSensorPackageType(stream, &v2gSensorPackageListType->SensorPackage.array [v2gSensorPackageListType_SensorPackage_currArrayIndex++]);
- }
- grammarID = 2690;
- } else if (1==1) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- done = 1;
- }
- grammarID = 3;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 2690:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorPackage), END_ELEMENT] */
- if (v2gSensorPackageListType_SensorPackage_currArrayIndex < v2gSensorPackageListType->SensorPackage.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- errn = encode_v2gSensorPackageType(stream, &v2gSensorPackageListType->SensorPackage.array [v2gSensorPackageListType_SensorPackage_currArrayIndex++]);
- }
- grammarID = 2691;
- } else if (1==1) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- done = 1;
- }
- grammarID = 3;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 2691:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorPackage), END_ELEMENT] */
- if (v2gSensorPackageListType_SensorPackage_currArrayIndex < v2gSensorPackageListType->SensorPackage.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- errn = encode_v2gSensorPackageType(stream, &v2gSensorPackageListType->SensorPackage.array [v2gSensorPackageListType_SensorPackage_currArrayIndex++]);
- }
- grammarID = 2692;
- } else if (1==1) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- done = 1;
- }
- grammarID = 3;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 2692:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorPackage), END_ELEMENT] */
- if (v2gSensorPackageListType_SensorPackage_currArrayIndex < v2gSensorPackageListType->SensorPackage.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- errn = encode_v2gSensorPackageType(stream, &v2gSensorPackageListType->SensorPackage.array [v2gSensorPackageListType_SensorPackage_currArrayIndex++]);
- }
- grammarID = 2693;
- } else if (1==1) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- done = 1;
- }
- grammarID = 3;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 2693:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorPackage), END_ELEMENT] */
- if (v2gSensorPackageListType_SensorPackage_currArrayIndex < v2gSensorPackageListType->SensorPackage.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- errn = encode_v2gSensorPackageType(stream, &v2gSensorPackageListType->SensorPackage.array [v2gSensorPackageListType_SensorPackage_currArrayIndex++]);
- }
- grammarID = 2694;
- } else if (1==1) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- done = 1;
- }
- grammarID = 3;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 2694:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorPackage), END_ELEMENT] */
- if (v2gSensorPackageListType_SensorPackage_currArrayIndex < v2gSensorPackageListType->SensorPackage.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- errn = encode_v2gSensorPackageType(stream, &v2gSensorPackageListType->SensorPackage.array [v2gSensorPackageListType_SensorPackage_currArrayIndex++]);
- }
- grammarID = 2695;
- } else if (1==1) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- done = 1;
- }
- grammarID = 3;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 2695:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorPackage), END_ELEMENT] */
- if (v2gSensorPackageListType_SensorPackage_currArrayIndex < v2gSensorPackageListType->SensorPackage.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- errn = encode_v2gSensorPackageType(stream, &v2gSensorPackageListType->SensorPackage.array [v2gSensorPackageListType_SensorPackage_currArrayIndex++]);
- }
- grammarID = 2696;
- } else if (1==1) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- done = 1;
- }
- grammarID = 3;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 2696:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorPackage), END_ELEMENT] */
- if (v2gSensorPackageListType_SensorPackage_currArrayIndex < v2gSensorPackageListType->SensorPackage.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- errn = encode_v2gSensorPackageType(stream, &v2gSensorPackageListType->SensorPackage.array [v2gSensorPackageListType_SensorPackage_currArrayIndex++]);
- }
- 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:2016:MsgBody,PaymentDetailsResType', base type name='V2GResponseType', content type='ELEMENT', isAbstract='false', hasTypeId='false', final='0', block='0', particle='(("urn:iso:15118:2:2016:MsgBody":ResponseCode,"urn:iso:15118:2:2016:MsgBody":EVSEStatus{0-1}),("urn:iso:15118:2:2016:MsgBody":GenChallenge,"urn:iso:15118:2:2016:MsgBody":EVSETimeStamp))', derivedBy='EXTENSION'. */
-static int encode_v2gPaymentDetailsResType(bitstream_t* stream, struct v2gPaymentDetailsResType* v2gPaymentDetailsResType) {
- int grammarID = 2697;
- int done = 0;
-
-
- while(!done) {
- switch(grammarID) {
- case 2697:
- /* FirstStartTag[START_ELEMENT({urn:iso:15118:2:2016:MsgBody}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, 5, v2gPaymentDetailsResType->ResponseCode);
- /* valid EE */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- }
- }
- grammarID = 2698;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 2698:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgBody}EVSEStatus), START_ELEMENT({urn:iso:15118:2:2016:MsgBody}GenChallenge)] */
- if ( v2gPaymentDetailsResType->EVSEStatus_isUsed == 1u ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- errn = encode_v2gEVSEStatusType(stream, &v2gPaymentDetailsResType->EVSEStatus );
- }
- grammarID = 2699;
- } else if ( 1 == 1 ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- /* FirstStartTag[CHARACTERS[BINARY_BASE64]] */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- if(errn == 0) {
- errn = encodeUnsignedInteger16(stream, (uint16_t)(v2gPaymentDetailsResType->GenChallenge.bytesLen));
- if (errn == 0) {
- errn = encodeBytes(stream, v2gPaymentDetailsResType->GenChallenge.bytes, v2gPaymentDetailsResType->GenChallenge.bytesLen);
- }
- /* valid EE */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- }
- }
- grammarID = 2700;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 2699:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgBody}GenChallenge)] */
+ case 13:
+ /* Element[START_ELEMENT({http://www.w3.org/2000/09/xmldsig#}Exponent)] */
if ( 1 == 1 ) {
errn = encodeNBitUnsignedInteger(stream, 1, 0);
if(errn == 0) {
/* FirstStartTag[CHARACTERS[BINARY_BASE64]] */
errn = encodeNBitUnsignedInteger(stream, 1, 0);
if(errn == 0) {
- errn = encodeUnsignedInteger16(stream, (uint16_t)(v2gPaymentDetailsResType->GenChallenge.bytesLen));
+ errn = encodeUnsignedInteger16(stream, (uint16_t)(iso2RSAKeyValueType->Exponent.bytesLen));
if (errn == 0) {
- errn = encodeBytes(stream, v2gPaymentDetailsResType->GenChallenge.bytes, v2gPaymentDetailsResType->GenChallenge.bytesLen);
+ errn = encodeBytes(stream, iso2RSAKeyValueType->Exponent.bytes, iso2RSAKeyValueType->Exponent.bytesLen);
}
/* valid EE */
errn = encodeNBitUnsignedInteger(stream, 1, 0);
}
}
- grammarID = 2700;
+ grammarID = 3;
} else {
errn = EXI_ERROR_UNKOWN_EVENT;
}
break;
- case 2700:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgBody}EVSETimeStamp)] */
- if ( 1 == 1 ) {
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- if(errn == 0) {
- /* First(xsi:type)StartTag[CHARACTERS[INTEGER]] */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- if(errn == 0) {
- errn = encodeInteger64(stream, v2gPaymentDetailsResType->EVSETimeStamp);
- /* valid EE */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- }
- }
- grammarID = 2;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 2:
+ case 3:
/* 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:2016:MsgDef,#AnonType_V2G_Message', base type name='anyType', content type='ELEMENT', isAbstract='false', hasTypeId='false', final='0', block='0', particle='("urn:iso:15118:2:2016:MsgDef":Header,"urn:iso:15118:2:2016:MsgDef":Body)', derivedBy='RESTRICTION'. */
-static int encode_v2gAnonType_V2G_Message(bitstream_t* stream, struct v2gAnonType_V2G_Message* v2gAnonType_V2G_Message) {
- int grammarID = 2701;
- int done = 0;
-
-
- while(!done) {
- switch(grammarID) {
- case 2701:
- /* FirstStartTag[START_ELEMENT({urn:iso:15118:2:2016:MsgDef}Header)] */
- if ( 1 == 1 ) {
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- if(errn == 0) {
- errn = encode_v2gMessageHeaderType(stream, &v2gAnonType_V2G_Message->Header );
- }
- grammarID = 2702;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 2702:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDef}Body)] */
- if ( 1 == 1 ) {
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- if(errn == 0) {
- errn = encode_v2gBodyType(stream, &v2gAnonType_V2G_Message->Body );
- }
- grammarID = 2;
- } 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:2016:MsgBody,AC_BidirectionalControlReqType', base type name='ChargeLoopReqType', content type='ELEMENT', isAbstract='false', hasTypeId='false', final='0', block='0', particle='(("urn:iso:15118:2:2016:MsgBody":EVTargetEnergyRequest,"urn:iso:15118:2:2016:MsgBody":EVMaximumEnergyRequest{0-1},"urn:iso:15118:2:2016:MsgBody":EVMinimumEnergyRequest{0-1},"urn:iso:15118:2:2016:MsgBody":DisplayParameters{0-1}),("urn:iso:15118:2:2016:MsgBody":EVOperation{0-1},"urn:iso:15118:2:2016:MsgBody":EVMaximumChargePower,"urn:iso:15118:2:2016:MsgBody":EVMaximumDischargePower{0-1},"urn:iso:15118:2:2016:MsgBody":EVMaximumChargeCurrent,"urn:iso:15118:2:2016:MsgBody":EVMaximumDischargeCurrent{0-1},"urn:iso:15118:2:2016:MsgBody":EVMinimumChargeCurrent,"urn:iso:15118:2:2016:MsgBody":EVMinimumDischargeCurrent{0-1},"urn:iso:15118:2:2016:MsgBody":EVPresentActivePower,"urn:iso:15118:2:2016:MsgBody":EVPresentReactivePower))', derivedBy='EXTENSION'. */
-static int encode_v2gAC_BidirectionalControlReqType(bitstream_t* stream, struct v2gAC_BidirectionalControlReqType* v2gAC_BidirectionalControlReqType) {
- int grammarID = 2703;
- int done = 0;
-
-
- while(!done) {
- switch(grammarID) {
- case 2703:
- /* FirstStartTag[START_ELEMENT({urn:iso:15118:2:2016:MsgBody}EVTargetEnergyRequest)] */
- if ( 1 == 1 ) {
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- if(errn == 0) {
- errn = encode_v2gPhysicalValueType(stream, &v2gAC_BidirectionalControlReqType->EVTargetEnergyRequest );
- }
- grammarID = 2704;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 2704:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgBody}EVMaximumEnergyRequest), START_ELEMENT({urn:iso:15118:2:2016:MsgBody}EVMinimumEnergyRequest), START_ELEMENT({urn:iso:15118:2:2016:MsgBody}DisplayParameters), START_ELEMENT({urn:iso:15118:2:2016:MsgBody}EVOperation), START_ELEMENT({urn:iso:15118:2:2016:MsgBody}EVMaximumChargePower)] */
- if ( v2gAC_BidirectionalControlReqType->EVMaximumEnergyRequest_isUsed == 1u ) {
- errn = encodeNBitUnsignedInteger(stream, 3, 0);
- if(errn == 0) {
- errn = encode_v2gPhysicalValueType(stream, &v2gAC_BidirectionalControlReqType->EVMaximumEnergyRequest );
- }
- grammarID = 2705;
- } else if ( v2gAC_BidirectionalControlReqType->EVMinimumEnergyRequest_isUsed == 1u ) {
- errn = encodeNBitUnsignedInteger(stream, 3, 1);
- if(errn == 0) {
- errn = encode_v2gPhysicalValueType(stream, &v2gAC_BidirectionalControlReqType->EVMinimumEnergyRequest );
- }
- grammarID = 2706;
- } else if ( v2gAC_BidirectionalControlReqType->DisplayParameters_isUsed == 1u ) {
- errn = encodeNBitUnsignedInteger(stream, 3, 2);
- if(errn == 0) {
- errn = encode_v2gDisplayParametersType(stream, &v2gAC_BidirectionalControlReqType->DisplayParameters );
- }
- grammarID = 2707;
- } else if ( v2gAC_BidirectionalControlReqType->EVOperation_isUsed == 1u ) {
- errn = encodeNBitUnsignedInteger(stream, 3, 3);
- if(errn == 0) {
- /* FirstStartTag[CHARACTERS[ENUMERATION]] */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- if(errn == 0) {
- errn = encodeNBitUnsignedInteger(stream, 1, v2gAC_BidirectionalControlReqType->EVOperation);
- /* valid EE */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- }
- }
- grammarID = 2708;
- } else if ( 1 == 1 ) {
- errn = encodeNBitUnsignedInteger(stream, 3, 4);
- if(errn == 0) {
- errn = encode_v2gPhysicalValueType(stream, &v2gAC_BidirectionalControlReqType->EVMaximumChargePower );
- }
- grammarID = 2709;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 2705:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgBody}EVMinimumEnergyRequest), START_ELEMENT({urn:iso:15118:2:2016:MsgBody}DisplayParameters), START_ELEMENT({urn:iso:15118:2:2016:MsgBody}EVOperation), START_ELEMENT({urn:iso:15118:2:2016:MsgBody}EVMaximumChargePower)] */
- if ( v2gAC_BidirectionalControlReqType->EVMinimumEnergyRequest_isUsed == 1u ) {
- errn = encodeNBitUnsignedInteger(stream, 3, 0);
- if(errn == 0) {
- errn = encode_v2gPhysicalValueType(stream, &v2gAC_BidirectionalControlReqType->EVMinimumEnergyRequest );
- }
- grammarID = 2706;
- } else if ( v2gAC_BidirectionalControlReqType->DisplayParameters_isUsed == 1u ) {
- errn = encodeNBitUnsignedInteger(stream, 3, 1);
- if(errn == 0) {
- errn = encode_v2gDisplayParametersType(stream, &v2gAC_BidirectionalControlReqType->DisplayParameters );
- }
- grammarID = 2707;
- } else if ( v2gAC_BidirectionalControlReqType->EVOperation_isUsed == 1u ) {
- errn = encodeNBitUnsignedInteger(stream, 3, 2);
- if(errn == 0) {
- /* FirstStartTag[CHARACTERS[ENUMERATION]] */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- if(errn == 0) {
- errn = encodeNBitUnsignedInteger(stream, 1, v2gAC_BidirectionalControlReqType->EVOperation);
- /* valid EE */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- }
- }
- grammarID = 2708;
- } else if ( 1 == 1 ) {
- errn = encodeNBitUnsignedInteger(stream, 3, 3);
- if(errn == 0) {
- errn = encode_v2gPhysicalValueType(stream, &v2gAC_BidirectionalControlReqType->EVMaximumChargePower );
- }
- grammarID = 2709;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 2706:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgBody}DisplayParameters), START_ELEMENT({urn:iso:15118:2:2016:MsgBody}EVOperation), START_ELEMENT({urn:iso:15118:2:2016:MsgBody}EVMaximumChargePower)] */
- if ( v2gAC_BidirectionalControlReqType->DisplayParameters_isUsed == 1u ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- errn = encode_v2gDisplayParametersType(stream, &v2gAC_BidirectionalControlReqType->DisplayParameters );
- }
- grammarID = 2707;
- } else if ( v2gAC_BidirectionalControlReqType->EVOperation_isUsed == 1u ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- /* FirstStartTag[CHARACTERS[ENUMERATION]] */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- if(errn == 0) {
- errn = encodeNBitUnsignedInteger(stream, 1, v2gAC_BidirectionalControlReqType->EVOperation);
- /* valid EE */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- }
- }
- grammarID = 2708;
- } else if ( 1 == 1 ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 2);
- if(errn == 0) {
- errn = encode_v2gPhysicalValueType(stream, &v2gAC_BidirectionalControlReqType->EVMaximumChargePower );
- }
- grammarID = 2709;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 2707:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgBody}EVOperation), START_ELEMENT({urn:iso:15118:2:2016:MsgBody}EVMaximumChargePower)] */
- if ( v2gAC_BidirectionalControlReqType->EVOperation_isUsed == 1u ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- /* FirstStartTag[CHARACTERS[ENUMERATION]] */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- if(errn == 0) {
- errn = encodeNBitUnsignedInteger(stream, 1, v2gAC_BidirectionalControlReqType->EVOperation);
- /* valid EE */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- }
- }
- grammarID = 2708;
- } else if ( 1 == 1 ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- errn = encode_v2gPhysicalValueType(stream, &v2gAC_BidirectionalControlReqType->EVMaximumChargePower );
- }
- grammarID = 2709;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 2708:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgBody}EVMaximumChargePower)] */
- if ( 1 == 1 ) {
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- if(errn == 0) {
- errn = encode_v2gPhysicalValueType(stream, &v2gAC_BidirectionalControlReqType->EVMaximumChargePower );
- }
- grammarID = 2709;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 2709:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgBody}EVMaximumDischargePower), START_ELEMENT({urn:iso:15118:2:2016:MsgBody}EVMaximumChargeCurrent)] */
- if ( v2gAC_BidirectionalControlReqType->EVMaximumDischargePower_isUsed == 1u ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- errn = encode_v2gPhysicalValueType(stream, &v2gAC_BidirectionalControlReqType->EVMaximumDischargePower );
- }
- grammarID = 2710;
- } else if ( 1 == 1 ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- errn = encode_v2gPhysicalValueType(stream, &v2gAC_BidirectionalControlReqType->EVMaximumChargeCurrent );
- }
- grammarID = 2711;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 2710:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgBody}EVMaximumChargeCurrent)] */
- if ( 1 == 1 ) {
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- if(errn == 0) {
- errn = encode_v2gPhysicalValueType(stream, &v2gAC_BidirectionalControlReqType->EVMaximumChargeCurrent );
- }
- grammarID = 2711;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 2711:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgBody}EVMaximumDischargeCurrent), START_ELEMENT({urn:iso:15118:2:2016:MsgBody}EVMinimumChargeCurrent)] */
- if ( v2gAC_BidirectionalControlReqType->EVMaximumDischargeCurrent_isUsed == 1u ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- errn = encode_v2gPhysicalValueType(stream, &v2gAC_BidirectionalControlReqType->EVMaximumDischargeCurrent );
- }
- grammarID = 2712;
- } else if ( 1 == 1 ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- errn = encode_v2gPhysicalValueType(stream, &v2gAC_BidirectionalControlReqType->EVMinimumChargeCurrent );
- }
- grammarID = 2713;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 2712:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgBody}EVMinimumChargeCurrent)] */
- if ( 1 == 1 ) {
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- if(errn == 0) {
- errn = encode_v2gPhysicalValueType(stream, &v2gAC_BidirectionalControlReqType->EVMinimumChargeCurrent );
- }
- grammarID = 2713;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 2713:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgBody}EVMinimumDischargeCurrent), START_ELEMENT({urn:iso:15118:2:2016:MsgBody}EVPresentActivePower)] */
- if ( v2gAC_BidirectionalControlReqType->EVMinimumDischargeCurrent_isUsed == 1u ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- errn = encode_v2gPhysicalValueType(stream, &v2gAC_BidirectionalControlReqType->EVMinimumDischargeCurrent );
- }
- grammarID = 2714;
- } else if ( 1 == 1 ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- errn = encode_v2gPhysicalValueType(stream, &v2gAC_BidirectionalControlReqType->EVPresentActivePower );
- }
- grammarID = 2715;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 2714:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgBody}EVPresentActivePower)] */
- if ( 1 == 1 ) {
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- if(errn == 0) {
- errn = encode_v2gPhysicalValueType(stream, &v2gAC_BidirectionalControlReqType->EVPresentActivePower );
- }
- grammarID = 2715;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 2715:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgBody}EVPresentReactivePower)] */
- if ( 1 == 1 ) {
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- if(errn == 0) {
- errn = encode_v2gPhysicalValueType(stream, &v2gAC_BidirectionalControlReqType->EVPresentReactivePower );
- }
- grammarID = 2;
- } 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:2016:MsgBody,BodyBaseType', base type name='anyType', content type='EMPTY', isAbstract='true', hasTypeId='false', final='0', block='0', derivedBy='RESTRICTION'. */
-static int encode_v2gBodyBaseType(bitstream_t* stream, struct v2gBodyBaseType* v2gBodyBaseType) {
- int grammarID = 4;
- int done = 0;
-
-
- while(!done) {
- switch(grammarID) {
- case 4:
- /* FirstStartTag[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:2016:MsgBody,SessionStopReqType', base type name='BodyBaseType', content type='ELEMENT', isAbstract='false', hasTypeId='false', final='0', block='0', particle='("urn:iso:15118:2:2016:MsgBody":ChargingSession)', derivedBy='EXTENSION'. */
-static int encode_v2gSessionStopReqType(bitstream_t* stream, struct v2gSessionStopReqType* v2gSessionStopReqType) {
- int grammarID = 2716;
- int done = 0;
-
-
- while(!done) {
- switch(grammarID) {
- case 2716:
- /* FirstStartTag[START_ELEMENT({urn:iso:15118:2:2016:MsgBody}ChargingSession)] */
- 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, 1, v2gSessionStopReqType->ChargingSession);
- /* valid EE */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- }
- }
- grammarID = 2;
- } 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:2016:MsgDataTypes,EntryType', base type name='anyType', content type='ELEMENT', isAbstract='true', hasTypeId='false', final='0', block='0', particle='("urn:iso:15118:2:2016:MsgDataTypes":RelativeTimeInterval)', derivedBy='RESTRICTION'. */
-static int encode_v2gEntryType(bitstream_t* stream, struct v2gEntryType* v2gEntryType) {
- int grammarID = 2717;
- int done = 0;
-
-
- while(!done) {
- switch(grammarID) {
- case 2717:
- /* FirstStartTag[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}RelativeTimeInterval)] */
- if ( 1 == 1 ) {
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- if(errn == 0) {
- errn = encode_v2gRelativeTimeIntervalType(stream, &v2gEntryType->RelativeTimeInterval );
- }
- grammarID = 2;
- } 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:2016:MsgBody,PowerDemandResType', base type name='V2GResponseType', content type='ELEMENT', isAbstract='false', hasTypeId='false', final='0', block='0', particle='(("urn:iso:15118:2:2016:MsgBody":ResponseCode,"urn:iso:15118:2:2016:MsgBody":EVSEStatus{0-1}),("urn:iso:15118:2:2016:MsgBody":EVSEOutputPower,"urn:iso:15118:2:2016:MsgBody":EVSEID,"urn:iso:15118:2:2016:MsgBody":SAScheduleTupleID{0-1},"urn:iso:15118:2:2016:MsgBody":MeterInfo{0-1},"urn:iso:15118:2:2016:MsgBody":ReceiptRequired{0-1},"urn:iso:15118:2:2016:MsgBody":PowerDemandParameters{0-1}))', derivedBy='EXTENSION'. */
-static int encode_v2gPowerDemandResType(bitstream_t* stream, struct v2gPowerDemandResType* v2gPowerDemandResType) {
- int grammarID = 2718;
- int done = 0;
-
-
- while(!done) {
- switch(grammarID) {
- case 2718:
- /* FirstStartTag[START_ELEMENT({urn:iso:15118:2:2016:MsgBody}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, 5, v2gPowerDemandResType->ResponseCode);
- /* valid EE */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- }
- }
- grammarID = 2719;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 2719:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgBody}EVSEStatus), START_ELEMENT({urn:iso:15118:2:2016:MsgBody}EVSEOutputPower)] */
- if ( v2gPowerDemandResType->EVSEStatus_isUsed == 1u ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- errn = encode_v2gEVSEStatusType(stream, &v2gPowerDemandResType->EVSEStatus );
- }
- grammarID = 2720;
- } else if ( 1 == 1 ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- errn = encode_v2gPhysicalValueType(stream, &v2gPowerDemandResType->EVSEOutputPower );
- }
- grammarID = 2721;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 2720:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgBody}EVSEOutputPower)] */
- if ( 1 == 1 ) {
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- if(errn == 0) {
- errn = encode_v2gPhysicalValueType(stream, &v2gPowerDemandResType->EVSEOutputPower );
- }
- grammarID = 2721;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 2721:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgBody}EVSEID)] */
- if ( 1 == 1 ) {
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- if(errn == 0) {
- /* FirstStartTag[CHARACTERS[STRING]] */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- if(errn == 0) {
- /* encode string as string table miss (+2 len)*/
- errn = encodeUnsignedInteger16(stream, (uint16_t)(v2gPowerDemandResType->EVSEID.charactersLen + 2));
- if (errn == 0) {
- errn = encodeCharacters(stream, v2gPowerDemandResType->EVSEID.characters, v2gPowerDemandResType->EVSEID.charactersLen);
- }
- /* valid EE */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- }
- }
- grammarID = 2722;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 2722:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgBody}SAScheduleTupleID), START_ELEMENT({urn:iso:15118:2:2016:MsgBody}MeterInfo), START_ELEMENT({urn:iso:15118:2:2016:MsgBody}ReceiptRequired), START_ELEMENT({urn:iso:15118:2:2016:MsgBody}PowerDemandParameters), END_ELEMENT] */
- if ( v2gPowerDemandResType->SAScheduleTupleID_isUsed == 1u ) {
- errn = encodeNBitUnsignedInteger(stream, 3, 0);
- if(errn == 0) {
- /* FirstStartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- if(errn == 0) {
- errn = encodeNBitUnsignedInteger(stream, 8, (uint32_t)(v2gPowerDemandResType->SAScheduleTupleID - 1));
- /* valid EE */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- }
- }
- grammarID = 2723;
- } else if ( v2gPowerDemandResType->MeterInfo_isUsed == 1u ) {
- errn = encodeNBitUnsignedInteger(stream, 3, 1);
- if(errn == 0) {
- errn = encode_v2gMeterInfoType(stream, &v2gPowerDemandResType->MeterInfo );
- }
- grammarID = 2724;
- } else if ( v2gPowerDemandResType->ReceiptRequired_isUsed == 1u ) {
- errn = encodeNBitUnsignedInteger(stream, 3, 2);
- if(errn == 0) {
- /* FirstStartTag[CHARACTERS[BOOLEAN]] */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- if(errn == 0) {
- errn = encodeBoolean(stream, v2gPowerDemandResType->ReceiptRequired);
- /* valid EE */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- }
- }
- grammarID = 2431;
- } else if ( v2gPowerDemandResType->PowerDemandParameters_isUsed == 1u ) {
- errn = encodeNBitUnsignedInteger(stream, 3, 3);
- if(errn == 0) {
- errn = encode_v2gParameterSetType(stream, &v2gPowerDemandResType->PowerDemandParameters );
- }
- grammarID = 2;
- } else if (1==1) {
- errn = encodeNBitUnsignedInteger(stream, 3, 4);
- if(errn == 0) {
- done = 1;
- }
- grammarID = 3;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 2723:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgBody}MeterInfo), START_ELEMENT({urn:iso:15118:2:2016:MsgBody}ReceiptRequired), START_ELEMENT({urn:iso:15118:2:2016:MsgBody}PowerDemandParameters), END_ELEMENT] */
- if ( v2gPowerDemandResType->MeterInfo_isUsed == 1u ) {
- errn = encodeNBitUnsignedInteger(stream, 3, 0);
- if(errn == 0) {
- errn = encode_v2gMeterInfoType(stream, &v2gPowerDemandResType->MeterInfo );
- }
- grammarID = 2724;
- } else if ( v2gPowerDemandResType->ReceiptRequired_isUsed == 1u ) {
- errn = encodeNBitUnsignedInteger(stream, 3, 1);
- if(errn == 0) {
- /* FirstStartTag[CHARACTERS[BOOLEAN]] */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- if(errn == 0) {
- errn = encodeBoolean(stream, v2gPowerDemandResType->ReceiptRequired);
- /* valid EE */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- }
- }
- grammarID = 2431;
- } else if ( v2gPowerDemandResType->PowerDemandParameters_isUsed == 1u ) {
- errn = encodeNBitUnsignedInteger(stream, 3, 2);
- if(errn == 0) {
- errn = encode_v2gParameterSetType(stream, &v2gPowerDemandResType->PowerDemandParameters );
- }
- grammarID = 2;
- } else if (1==1) {
- errn = encodeNBitUnsignedInteger(stream, 3, 3);
- if(errn == 0) {
- done = 1;
- }
- grammarID = 3;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 2724:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgBody}ReceiptRequired), START_ELEMENT({urn:iso:15118:2:2016:MsgBody}PowerDemandParameters), END_ELEMENT] */
- if ( v2gPowerDemandResType->ReceiptRequired_isUsed == 1u ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- /* FirstStartTag[CHARACTERS[BOOLEAN]] */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- if(errn == 0) {
- errn = encodeBoolean(stream, v2gPowerDemandResType->ReceiptRequired);
- /* valid EE */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- }
- }
- grammarID = 2431;
- } else if ( v2gPowerDemandResType->PowerDemandParameters_isUsed == 1u ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- errn = encode_v2gParameterSetType(stream, &v2gPowerDemandResType->PowerDemandParameters );
- }
- grammarID = 2;
- } else if (1==1) {
- errn = encodeNBitUnsignedInteger(stream, 2, 2);
- if(errn == 0) {
- done = 1;
- }
- grammarID = 3;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 2431:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgBody}PowerDemandParameters), END_ELEMENT] */
- if ( v2gPowerDemandResType->PowerDemandParameters_isUsed == 1u ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- errn = encode_v2gParameterSetType(stream, &v2gPowerDemandResType->PowerDemandParameters );
- }
- 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:2016:MsgBody,SessionSetupResType', base type name='V2GResponseType', content type='ELEMENT', isAbstract='false', hasTypeId='false', final='0', block='0', particle='(("urn:iso:15118:2:2016:MsgBody":ResponseCode,"urn:iso:15118:2:2016:MsgBody":EVSEStatus{0-1}),("urn:iso:15118:2:2016:MsgBody":EVSEID,"urn:iso:15118:2:2016:MsgBody":EVSETimeStamp{0-1}))', derivedBy='EXTENSION'. */
-static int encode_v2gSessionSetupResType(bitstream_t* stream, struct v2gSessionSetupResType* v2gSessionSetupResType) {
- int grammarID = 2725;
- int done = 0;
-
-
- while(!done) {
- switch(grammarID) {
- case 2725:
- /* FirstStartTag[START_ELEMENT({urn:iso:15118:2:2016:MsgBody}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, 5, v2gSessionSetupResType->ResponseCode);
- /* valid EE */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- }
- }
- grammarID = 2726;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 2726:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgBody}EVSEStatus), START_ELEMENT({urn:iso:15118:2:2016:MsgBody}EVSEID)] */
- if ( v2gSessionSetupResType->EVSEStatus_isUsed == 1u ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- errn = encode_v2gEVSEStatusType(stream, &v2gSessionSetupResType->EVSEStatus );
- }
- grammarID = 2727;
- } else if ( 1 == 1 ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- /* FirstStartTag[CHARACTERS[STRING]] */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- if(errn == 0) {
- /* encode string as string table miss (+2 len)*/
- errn = encodeUnsignedInteger16(stream, (uint16_t)(v2gSessionSetupResType->EVSEID.charactersLen + 2));
- if (errn == 0) {
- errn = encodeCharacters(stream, v2gSessionSetupResType->EVSEID.characters, v2gSessionSetupResType->EVSEID.charactersLen);
- }
- /* valid EE */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- }
- }
- grammarID = 2728;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 2727:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgBody}EVSEID)] */
- if ( 1 == 1 ) {
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- if(errn == 0) {
- /* FirstStartTag[CHARACTERS[STRING]] */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- if(errn == 0) {
- /* encode string as string table miss (+2 len)*/
- errn = encodeUnsignedInteger16(stream, (uint16_t)(v2gSessionSetupResType->EVSEID.charactersLen + 2));
- if (errn == 0) {
- errn = encodeCharacters(stream, v2gSessionSetupResType->EVSEID.characters, v2gSessionSetupResType->EVSEID.charactersLen);
- }
- /* valid EE */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- }
- }
- grammarID = 2728;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 2728:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgBody}EVSETimeStamp), END_ELEMENT] */
- if ( v2gSessionSetupResType->EVSETimeStamp_isUsed == 1u ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- /* First(xsi:type)StartTag[CHARACTERS[INTEGER]] */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- if(errn == 0) {
- errn = encodeInteger64(stream, v2gSessionSetupResType->EVSETimeStamp);
- /* 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:2016:MsgBody,VehicleCheckOutResType', base type name='V2GResponseType', content type='ELEMENT', isAbstract='false', hasTypeId='false', final='0', block='0', particle='(("urn:iso:15118:2:2016:MsgBody":ResponseCode,"urn:iso:15118:2:2016:MsgBody":EVSEStatus{0-1}),("urn:iso:15118:2:2016:MsgBody":EVSECheckOutStatus))', derivedBy='EXTENSION'. */
-static int encode_v2gVehicleCheckOutResType(bitstream_t* stream, struct v2gVehicleCheckOutResType* v2gVehicleCheckOutResType) {
- int grammarID = 2729;
- int done = 0;
-
-
- while(!done) {
- switch(grammarID) {
- case 2729:
- /* FirstStartTag[START_ELEMENT({urn:iso:15118:2:2016:MsgBody}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, 5, v2gVehicleCheckOutResType->ResponseCode);
- /* valid EE */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- }
- }
- grammarID = 2730;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 2730:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgBody}EVSEStatus), START_ELEMENT({urn:iso:15118:2:2016:MsgBody}EVSECheckOutStatus)] */
- if ( v2gVehicleCheckOutResType->EVSEStatus_isUsed == 1u ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- errn = encode_v2gEVSEStatusType(stream, &v2gVehicleCheckOutResType->EVSEStatus );
- }
- grammarID = 2731;
- } else if ( 1 == 1 ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- /* FirstStartTag[CHARACTERS[ENUMERATION]] */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- if(errn == 0) {
- errn = encodeNBitUnsignedInteger(stream, 2, v2gVehicleCheckOutResType->EVSECheckOutStatus);
- /* valid EE */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- }
- }
- grammarID = 2;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 2731:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgBody}EVSECheckOutStatus)] */
- 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, v2gVehicleCheckOutResType->EVSECheckOutStatus);
- /* valid EE */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- }
- }
- grammarID = 2;
- } 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='http://www.w3.org/2000/09/xmldsig#,KeyValueType', base type name='anyType', content type='MIXED', isAbstract='false', hasTypeId='false', final='0', block='0', particle='("http://www.w3.org/2000/09/xmldsig#":DSAKeyValue|"http://www.w3.org/2000/09/xmldsig#":RSAKeyValue|(WC[##other:"http://www.w3.org/2000/09/xmldsig#"]))', derivedBy='RESTRICTION'. */
-static int encode_v2gKeyValueType(bitstream_t* stream, struct v2gKeyValueType* v2gKeyValueType) {
- int grammarID = 2732;
- int done = 0;
- int wcDone = 0;
-
-
- while(!done) {
- switch(grammarID) {
- case 2732:
- /* FirstStartTag[START_ELEMENT({http://www.w3.org/2000/09/xmldsig#}DSAKeyValue), START_ELEMENT({http://www.w3.org/2000/09/xmldsig#}RSAKeyValue), START_ELEMENT_GENERIC, CHARACTERS_GENERIC[STRING]] */
- if ( v2gKeyValueType->DSAKeyValue_isUsed == 1u ) {
- errn = encodeNBitUnsignedInteger(stream, 3, 0);
- if(errn == 0) {
- errn = encode_v2gDSAKeyValueType(stream, &v2gKeyValueType->DSAKeyValue );
- }
- grammarID = 2733;
- } else if ( v2gKeyValueType->RSAKeyValue_isUsed == 1u ) {
- errn = encodeNBitUnsignedInteger(stream, 3, 1);
- if(errn == 0) {
- errn = encode_v2gRSAKeyValueType(stream, &v2gKeyValueType->RSAKeyValue );
- }
- grammarID = 2733;
- } else if (1==0) {
- errn = EXI_UNSUPPORTED_EVENT_CODE_CHARACTERISTICS;
- grammarID = 2733;
- } else if ( v2gKeyValueType->ANY_isUsed == 1u ) {
- errn = encodeNBitUnsignedInteger(stream, 3, 3);
- if(errn == 0) {
- /* encode string as string table miss (+2 len)*/
- errn = encodeUnsignedInteger16(stream, (uint16_t)(v2gKeyValueType->ANY.charactersLen + 2));
- if (errn == 0) {
- errn = encodeCharacters(stream, v2gKeyValueType->ANY.characters, v2gKeyValueType->ANY.charactersLen);
- }
- }
- wcDone = 1;
- grammarID = 2734;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 2733:
- /* Element[END_ELEMENT, CHARACTERS_GENERIC[STRING]] */
- if ( v2gKeyValueType->ANY_isUsed == 0u || wcDone ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- done = 1;
- }
- grammarID = 3;
- } else if ( v2gKeyValueType->ANY_isUsed == 1u ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- /* encode string as string table miss (+2 len)*/
- errn = encodeUnsignedInteger16(stream, (uint16_t)(v2gKeyValueType->ANY.charactersLen + 2));
- if (errn == 0) {
- errn = encodeCharacters(stream, v2gKeyValueType->ANY.characters, v2gKeyValueType->ANY.charactersLen);
- }
- }
- wcDone = 1;
- grammarID = 2733;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 2734:
- /* Element[START_ELEMENT({http://www.w3.org/2000/09/xmldsig#}DSAKeyValue), START_ELEMENT({http://www.w3.org/2000/09/xmldsig#}RSAKeyValue), START_ELEMENT_GENERIC, CHARACTERS_GENERIC[STRING]] */
- if ( v2gKeyValueType->DSAKeyValue_isUsed == 1u ) {
- errn = encodeNBitUnsignedInteger(stream, 3, 0);
- if(errn == 0) {
- errn = encode_v2gDSAKeyValueType(stream, &v2gKeyValueType->DSAKeyValue );
- }
- grammarID = 2733;
- } else if ( v2gKeyValueType->RSAKeyValue_isUsed == 1u ) {
- errn = encodeNBitUnsignedInteger(stream, 3, 1);
- if(errn == 0) {
- errn = encode_v2gRSAKeyValueType(stream, &v2gKeyValueType->RSAKeyValue );
- }
- grammarID = 2733;
- } else if (1==0) {
- errn = EXI_UNSUPPORTED_EVENT_CODE_CHARACTERISTICS;
- grammarID = 2733;
- } else if ( v2gKeyValueType->ANY_isUsed == 1u ) {
- errn = encodeNBitUnsignedInteger(stream, 3, 3);
- if(errn == 0) {
- /* encode string as string table miss (+2 len)*/
- errn = encodeUnsignedInteger16(stream, (uint16_t)(v2gKeyValueType->ANY.charactersLen + 2));
- if (errn == 0) {
- errn = encodeCharacters(stream, v2gKeyValueType->ANY.characters, v2gKeyValueType->ANY.charactersLen);
- }
- }
- wcDone = 1;
- grammarID = 2734;
- } 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:2016:MsgDataTypes,EMAIDType', base type name='eMAIDType', content type='SIMPLE', isAbstract='false', hasTypeId='false', final='0', block='0', derivedBy='EXTENSION'. */
-static int encode_v2gEMAIDType(bitstream_t* stream, struct v2gEMAIDType* v2gEMAIDType) {
- int grammarID = 2735;
- int done = 0;
-
-
- while(!done) {
- switch(grammarID) {
- case 2735:
- /* FirstStartTag[ATTRIBUTE[STRING]({urn:iso:15118:2:2016:MsgDataTypes}Id)] */
- if (1==1) {
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- if(errn == 0) {
- /* encode string as string table miss (+2 len)*/
- errn = encodeUnsignedInteger16(stream, (uint16_t)(v2gEMAIDType->Id.charactersLen + 2));
- if (errn == 0) {
- errn = encodeCharacters(stream, v2gEMAIDType->Id.characters, v2gEMAIDType->Id.charactersLen);
- }
- }
- grammarID = 2736;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 2736:
- /* StartTag[CHARACTERS[STRING]] */
- if (1==1) {
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- if(errn == 0) {
- /* encode string as string table miss (+2 len)*/
- errn = encodeUnsignedInteger16(stream, (uint16_t)(v2gEMAIDType->CONTENT.charactersLen + 2));
- if (errn == 0) {
- errn = encodeCharacters(stream, v2gEMAIDType->CONTENT.characters, v2gEMAIDType->CONTENT.charactersLen);
- }
- }
- grammarID = 2;
- } 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='http://www.w3.org/2000/09/xmldsig#,TransformsType', base type name='anyType', content type='ELEMENT', isAbstract='false', hasTypeId='false', final='0', block='0', particle='("http://www.w3.org/2000/09/xmldsig#":Transform{1-UNBOUNDED})', derivedBy='RESTRICTION'. */
-static int encode_v2gTransformsType(bitstream_t* stream, struct v2gTransformsType* v2gTransformsType) {
- int grammarID = 2737;
- int done = 0;
-
- unsigned int v2gTransformsType_Transform_currArrayIndex = 0;
-
- while(!done) {
- switch(grammarID) {
- case 2737:
- /* FirstStartTag[START_ELEMENT({http://www.w3.org/2000/09/xmldsig#}Transform)] */
- if (v2gTransformsType_Transform_currArrayIndex < v2gTransformsType->Transform.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- if(errn == 0) {
- errn = encode_v2gTransformType(stream, &v2gTransformsType->Transform.array [v2gTransformsType_Transform_currArrayIndex++]);
- }
- grammarID = 2738;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 2738:
- /* Element[START_ELEMENT({http://www.w3.org/2000/09/xmldsig#}Transform), END_ELEMENT] */
- if (v2gTransformsType_Transform_currArrayIndex < v2gTransformsType->Transform.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- errn = encode_v2gTransformType(stream, &v2gTransformsType->Transform.array [v2gTransformsType_Transform_currArrayIndex++]);
- }
- grammarID = 2738;
- } else if (1==1) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- 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:2016:MsgBody,CurrentDemandReqType', base type name='ChargeLoopReqType', content type='ELEMENT', isAbstract='false', hasTypeId='false', final='0', block='0', particle='(("urn:iso:15118:2:2016:MsgBody":EVTargetEnergyRequest,"urn:iso:15118:2:2016:MsgBody":EVMaximumEnergyRequest{0-1},"urn:iso:15118:2:2016:MsgBody":EVMinimumEnergyRequest{0-1},"urn:iso:15118:2:2016:MsgBody":DisplayParameters{0-1}),("urn:iso:15118:2:2016:MsgBody":EVTargetCurrent,"urn:iso:15118:2:2016:MsgBody":EVTargetVoltage,"urn:iso:15118:2:2016:MsgBody":EVMaximumCurrent{0-1},"urn:iso:15118:2:2016:MsgBody":EVMaximumPower{0-1},"urn:iso:15118:2:2016:MsgBody":EVMaximumVoltage{0-1}))', derivedBy='EXTENSION'. */
-static int encode_v2gCurrentDemandReqType(bitstream_t* stream, struct v2gCurrentDemandReqType* v2gCurrentDemandReqType) {
- int grammarID = 2739;
- int done = 0;
-
-
- while(!done) {
- switch(grammarID) {
- case 2739:
- /* FirstStartTag[START_ELEMENT({urn:iso:15118:2:2016:MsgBody}EVTargetEnergyRequest)] */
- if ( 1 == 1 ) {
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- if(errn == 0) {
- errn = encode_v2gPhysicalValueType(stream, &v2gCurrentDemandReqType->EVTargetEnergyRequest );
- }
- grammarID = 2740;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 2740:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgBody}EVMaximumEnergyRequest), START_ELEMENT({urn:iso:15118:2:2016:MsgBody}EVMinimumEnergyRequest), START_ELEMENT({urn:iso:15118:2:2016:MsgBody}DisplayParameters), START_ELEMENT({urn:iso:15118:2:2016:MsgBody}EVTargetCurrent)] */
- if ( v2gCurrentDemandReqType->EVMaximumEnergyRequest_isUsed == 1u ) {
- errn = encodeNBitUnsignedInteger(stream, 3, 0);
- if(errn == 0) {
- errn = encode_v2gPhysicalValueType(stream, &v2gCurrentDemandReqType->EVMaximumEnergyRequest );
- }
- grammarID = 2741;
- } else if ( v2gCurrentDemandReqType->EVMinimumEnergyRequest_isUsed == 1u ) {
- errn = encodeNBitUnsignedInteger(stream, 3, 1);
- if(errn == 0) {
- errn = encode_v2gPhysicalValueType(stream, &v2gCurrentDemandReqType->EVMinimumEnergyRequest );
- }
- grammarID = 2742;
- } else if ( v2gCurrentDemandReqType->DisplayParameters_isUsed == 1u ) {
- errn = encodeNBitUnsignedInteger(stream, 3, 2);
- if(errn == 0) {
- errn = encode_v2gDisplayParametersType(stream, &v2gCurrentDemandReqType->DisplayParameters );
- }
- grammarID = 2743;
- } else if ( 1 == 1 ) {
- errn = encodeNBitUnsignedInteger(stream, 3, 3);
- if(errn == 0) {
- errn = encode_v2gPhysicalValueType(stream, &v2gCurrentDemandReqType->EVTargetCurrent );
- }
- grammarID = 2744;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 2741:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgBody}EVMinimumEnergyRequest), START_ELEMENT({urn:iso:15118:2:2016:MsgBody}DisplayParameters), START_ELEMENT({urn:iso:15118:2:2016:MsgBody}EVTargetCurrent)] */
- if ( v2gCurrentDemandReqType->EVMinimumEnergyRequest_isUsed == 1u ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- errn = encode_v2gPhysicalValueType(stream, &v2gCurrentDemandReqType->EVMinimumEnergyRequest );
- }
- grammarID = 2742;
- } else if ( v2gCurrentDemandReqType->DisplayParameters_isUsed == 1u ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- errn = encode_v2gDisplayParametersType(stream, &v2gCurrentDemandReqType->DisplayParameters );
- }
- grammarID = 2743;
- } else if ( 1 == 1 ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 2);
- if(errn == 0) {
- errn = encode_v2gPhysicalValueType(stream, &v2gCurrentDemandReqType->EVTargetCurrent );
- }
- grammarID = 2744;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 2742:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgBody}DisplayParameters), START_ELEMENT({urn:iso:15118:2:2016:MsgBody}EVTargetCurrent)] */
- if ( v2gCurrentDemandReqType->DisplayParameters_isUsed == 1u ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- errn = encode_v2gDisplayParametersType(stream, &v2gCurrentDemandReqType->DisplayParameters );
- }
- grammarID = 2743;
- } else if ( 1 == 1 ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- errn = encode_v2gPhysicalValueType(stream, &v2gCurrentDemandReqType->EVTargetCurrent );
- }
- grammarID = 2744;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 2743:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgBody}EVTargetCurrent)] */
- if ( 1 == 1 ) {
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- if(errn == 0) {
- errn = encode_v2gPhysicalValueType(stream, &v2gCurrentDemandReqType->EVTargetCurrent );
- }
- grammarID = 2744;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 2744:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgBody}EVTargetVoltage)] */
- if ( 1 == 1 ) {
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- if(errn == 0) {
- errn = encode_v2gPhysicalValueType(stream, &v2gCurrentDemandReqType->EVTargetVoltage );
- }
- grammarID = 2745;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 2745:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgBody}EVMaximumCurrent), START_ELEMENT({urn:iso:15118:2:2016:MsgBody}EVMaximumPower), START_ELEMENT({urn:iso:15118:2:2016:MsgBody}EVMaximumVoltage), END_ELEMENT] */
- if ( v2gCurrentDemandReqType->EVMaximumCurrent_isUsed == 1u ) {
- errn = encodeNBitUnsignedInteger(stream, 3, 0);
- if(errn == 0) {
- errn = encode_v2gPhysicalValueType(stream, &v2gCurrentDemandReqType->EVMaximumCurrent );
- }
- grammarID = 2746;
- } else if ( v2gCurrentDemandReqType->EVMaximumPower_isUsed == 1u ) {
- errn = encodeNBitUnsignedInteger(stream, 3, 1);
- if(errn == 0) {
- errn = encode_v2gPhysicalValueType(stream, &v2gCurrentDemandReqType->EVMaximumPower );
- }
- grammarID = 2747;
- } else if ( v2gCurrentDemandReqType->EVMaximumVoltage_isUsed == 1u ) {
- errn = encodeNBitUnsignedInteger(stream, 3, 2);
- if(errn == 0) {
- errn = encode_v2gPhysicalValueType(stream, &v2gCurrentDemandReqType->EVMaximumVoltage );
- }
- grammarID = 2;
- } else if (1==1) {
- errn = encodeNBitUnsignedInteger(stream, 3, 3);
- if(errn == 0) {
- done = 1;
- }
- grammarID = 3;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 2746:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgBody}EVMaximumPower), START_ELEMENT({urn:iso:15118:2:2016:MsgBody}EVMaximumVoltage), END_ELEMENT] */
- if ( v2gCurrentDemandReqType->EVMaximumPower_isUsed == 1u ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- errn = encode_v2gPhysicalValueType(stream, &v2gCurrentDemandReqType->EVMaximumPower );
- }
- grammarID = 2747;
- } else if ( v2gCurrentDemandReqType->EVMaximumVoltage_isUsed == 1u ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- errn = encode_v2gPhysicalValueType(stream, &v2gCurrentDemandReqType->EVMaximumVoltage );
- }
- grammarID = 2;
- } else if (1==1) {
- errn = encodeNBitUnsignedInteger(stream, 2, 2);
- if(errn == 0) {
- done = 1;
- }
- grammarID = 3;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 2747:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgBody}EVMaximumVoltage), END_ELEMENT] */
- if ( v2gCurrentDemandReqType->EVMaximumVoltage_isUsed == 1u ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- errn = encode_v2gPhysicalValueType(stream, &v2gCurrentDemandReqType->EVMaximumVoltage );
- }
- 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='http://www.w3.org/2000/09/xmldsig#,RetrievalMethodType', base type name='anyType', content type='ELEMENT', isAbstract='false', hasTypeId='false', final='0', block='0', particle='("http://www.w3.org/2000/09/xmldsig#":Transforms{0-1})', derivedBy='RESTRICTION'. */
-static int encode_v2gRetrievalMethodType(bitstream_t* stream, struct v2gRetrievalMethodType* v2gRetrievalMethodType) {
- int grammarID = 2748;
- int done = 0;
-
-
- while(!done) {
- switch(grammarID) {
- case 2748:
- /* FirstStartTag[ATTRIBUTE[STRING](Type), ATTRIBUTE[STRING](URI), START_ELEMENT({http://www.w3.org/2000/09/xmldsig#}Transforms), END_ELEMENT] */
- if ( v2gRetrievalMethodType->Type_isUsed == 1u ) {
- errn = encodeNBitUnsignedInteger(stream, 3, 0);
- if(errn == 0) {
- /* encode string as string table miss (+2 len)*/
- errn = encodeUnsignedInteger16(stream, (uint16_t)(v2gRetrievalMethodType->Type.charactersLen + 2));
- if (errn == 0) {
- errn = encodeCharacters(stream, v2gRetrievalMethodType->Type.characters, v2gRetrievalMethodType->Type.charactersLen);
- }
- }
- grammarID = 2749;
- } else if ( v2gRetrievalMethodType->URI_isUsed == 1u ) {
- errn = encodeNBitUnsignedInteger(stream, 3, 1);
- if(errn == 0) {
- /* encode string as string table miss (+2 len)*/
- errn = encodeUnsignedInteger16(stream, (uint16_t)(v2gRetrievalMethodType->URI.charactersLen + 2));
- if (errn == 0) {
- errn = encodeCharacters(stream, v2gRetrievalMethodType->URI.characters, v2gRetrievalMethodType->URI.charactersLen);
- }
- }
- grammarID = 2750;
- } else if ( v2gRetrievalMethodType->Transforms_isUsed == 1u ) {
- errn = encodeNBitUnsignedInteger(stream, 3, 2);
- if(errn == 0) {
- errn = encode_v2gTransformsType(stream, &v2gRetrievalMethodType->Transforms );
- }
- grammarID = 2;
- } else if (1==1) {
- errn = encodeNBitUnsignedInteger(stream, 3, 3);
- if(errn == 0) {
- done = 1;
- }
- grammarID = 3;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 2749:
- /* StartTag[ATTRIBUTE[STRING](URI), START_ELEMENT({http://www.w3.org/2000/09/xmldsig#}Transforms), END_ELEMENT] */
- if ( v2gRetrievalMethodType->URI_isUsed == 1u ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- /* encode string as string table miss (+2 len)*/
- errn = encodeUnsignedInteger16(stream, (uint16_t)(v2gRetrievalMethodType->URI.charactersLen + 2));
- if (errn == 0) {
- errn = encodeCharacters(stream, v2gRetrievalMethodType->URI.characters, v2gRetrievalMethodType->URI.charactersLen);
- }
- }
- grammarID = 2750;
- } else if ( v2gRetrievalMethodType->Transforms_isUsed == 1u ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- errn = encode_v2gTransformsType(stream, &v2gRetrievalMethodType->Transforms );
- }
- grammarID = 2;
- } else if (1==1) {
- errn = encodeNBitUnsignedInteger(stream, 2, 2);
- if(errn == 0) {
- done = 1;
- }
- grammarID = 3;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 2750:
- /* StartTag[START_ELEMENT({http://www.w3.org/2000/09/xmldsig#}Transforms), END_ELEMENT] */
- if ( v2gRetrievalMethodType->Transforms_isUsed == 1u ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- errn = encode_v2gTransformsType(stream, &v2gRetrievalMethodType->Transforms );
- }
- 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:2016:MsgDataTypes,ServiceListType', base type name='anyType', content type='ELEMENT', isAbstract='false', hasTypeId='false', final='0', block='0', particle='("urn:iso:15118:2:2016:MsgDataTypes":Service{1-8})', derivedBy='RESTRICTION'. */
-static int encode_v2gServiceListType(bitstream_t* stream, struct v2gServiceListType* v2gServiceListType) {
- int grammarID = 2751;
- int done = 0;
-
- unsigned int v2gServiceListType_Service_currArrayIndex = 0;
-
- while(!done) {
- switch(grammarID) {
- case 2751:
- /* FirstStartTag[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}Service)] */
- if (v2gServiceListType_Service_currArrayIndex < v2gServiceListType->Service.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- if(errn == 0) {
- errn = encode_v2gServiceType(stream, &v2gServiceListType->Service.array [v2gServiceListType_Service_currArrayIndex++]);
- }
- grammarID = 2752;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 2752:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}Service), END_ELEMENT] */
- if (v2gServiceListType_Service_currArrayIndex < v2gServiceListType->Service.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- errn = encode_v2gServiceType(stream, &v2gServiceListType->Service.array [v2gServiceListType_Service_currArrayIndex++]);
- }
- grammarID = 2753;
- } else if (1==1) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- done = 1;
- }
- grammarID = 3;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 2753:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}Service), END_ELEMENT] */
- if (v2gServiceListType_Service_currArrayIndex < v2gServiceListType->Service.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- errn = encode_v2gServiceType(stream, &v2gServiceListType->Service.array [v2gServiceListType_Service_currArrayIndex++]);
- }
- grammarID = 2754;
- } else if (1==1) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- done = 1;
- }
- grammarID = 3;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 2754:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}Service), END_ELEMENT] */
- if (v2gServiceListType_Service_currArrayIndex < v2gServiceListType->Service.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- errn = encode_v2gServiceType(stream, &v2gServiceListType->Service.array [v2gServiceListType_Service_currArrayIndex++]);
- }
- grammarID = 2755;
- } else if (1==1) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- done = 1;
- }
- grammarID = 3;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 2755:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}Service), END_ELEMENT] */
- if (v2gServiceListType_Service_currArrayIndex < v2gServiceListType->Service.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- errn = encode_v2gServiceType(stream, &v2gServiceListType->Service.array [v2gServiceListType_Service_currArrayIndex++]);
- }
- grammarID = 2756;
- } else if (1==1) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- done = 1;
- }
- grammarID = 3;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 2756:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}Service), END_ELEMENT] */
- if (v2gServiceListType_Service_currArrayIndex < v2gServiceListType->Service.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- errn = encode_v2gServiceType(stream, &v2gServiceListType->Service.array [v2gServiceListType_Service_currArrayIndex++]);
- }
- grammarID = 2757;
- } else if (1==1) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- done = 1;
- }
- grammarID = 3;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 2757:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}Service), END_ELEMENT] */
- if (v2gServiceListType_Service_currArrayIndex < v2gServiceListType->Service.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- errn = encode_v2gServiceType(stream, &v2gServiceListType->Service.array [v2gServiceListType_Service_currArrayIndex++]);
- }
- grammarID = 2758;
- } else if (1==1) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- done = 1;
- }
- grammarID = 3;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 2758:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}Service), END_ELEMENT] */
- if (v2gServiceListType_Service_currArrayIndex < v2gServiceListType->Service.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- errn = encode_v2gServiceType(stream, &v2gServiceListType->Service.array [v2gServiceListType_Service_currArrayIndex++]);
- }
- 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:2016:MsgDataTypes,DC_EVBidirectionalParameterType', base type name='DC_EVChargeParameterType', content type='ELEMENT', isAbstract='false', hasTypeId='false', final='0', block='0', particle='((("urn:iso:15118:2:2016:MsgDataTypes":DepartureTime),("urn:iso:15118:2:2016:MsgDataTypes":EVMaximumChargePower{0-1},"urn:iso:15118:2:2016:MsgDataTypes":EVMinimumChargePower{0-1},"urn:iso:15118:2:2016:MsgDataTypes":EVMaximumChargeCurrent,"urn:iso:15118:2:2016:MsgDataTypes":EVMinimumChargeCurrent,"urn:iso:15118:2:2016:MsgDataTypes":EVMaximumVoltage,"urn:iso:15118:2:2016:MsgDataTypes":EVTargetEnergyRequest{0-1},"urn:iso:15118:2:2016:MsgDataTypes":EVMaximumEnergyRequest{0-1},"urn:iso:15118:2:2016:MsgDataTypes":EVMinimumEnergyRequest{0-1},"urn:iso:15118:2:2016:MsgDataTypes":CurrentSOC{0-1},"urn:iso:15118:2:2016:MsgDataTypes":TargetSOC{0-1},"urn:iso:15118:2:2016:MsgDataTypes":BulkSOC{0-1})),("urn:iso:15118:2:2016:MsgDataTypes":EVMaximumDischargePower{0-1},"urn:iso:15118:2:2016:MsgDataTypes":EVMinimumDischargePower{0-1},"urn:iso:15118:2:2016:MsgDataTypes":EVMaximumDischargeCurrent,"urn:iso:15118:2:2016:MsgDataTypes":EVMinimumDischargeCurrent,"urn:iso:15118:2:2016:MsgDataTypes":EVMinimumVoltage,"urn:iso:15118:2:2016:MsgDataTypes":MinimumSOC{0-1}))', derivedBy='EXTENSION'. */
-static int encode_v2gDC_EVBidirectionalParameterType(bitstream_t* stream, struct v2gDC_EVBidirectionalParameterType* v2gDC_EVBidirectionalParameterType) {
- int grammarID = 2759;
- int done = 0;
-
-
- while(!done) {
- switch(grammarID) {
- case 2759:
- /* FirstStartTag[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}DepartureTime)] */
- if ( 1 == 1 ) {
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- if(errn == 0) {
- /* First(xsi:type)StartTag[CHARACTERS[UNSIGNED_INTEGER]] */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- if(errn == 0) {
- errn = encodeUnsignedInteger32(stream, v2gDC_EVBidirectionalParameterType->DepartureTime);
- /* valid EE */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- }
- }
- grammarID = 2760;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 2760:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}EVMaximumChargePower), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}EVMinimumChargePower), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}EVMaximumChargeCurrent)] */
- if ( v2gDC_EVBidirectionalParameterType->EVMaximumChargePower_isUsed == 1u ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- errn = encode_v2gPhysicalValueType(stream, &v2gDC_EVBidirectionalParameterType->EVMaximumChargePower );
- }
- grammarID = 2761;
- } else if ( v2gDC_EVBidirectionalParameterType->EVMinimumChargePower_isUsed == 1u ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- errn = encode_v2gPhysicalValueType(stream, &v2gDC_EVBidirectionalParameterType->EVMinimumChargePower );
- }
- grammarID = 2762;
- } else if ( 1 == 1 ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 2);
- if(errn == 0) {
- errn = encode_v2gPhysicalValueType(stream, &v2gDC_EVBidirectionalParameterType->EVMaximumChargeCurrent );
- }
- grammarID = 2763;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 2761:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}EVMinimumChargePower), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}EVMaximumChargeCurrent)] */
- if ( v2gDC_EVBidirectionalParameterType->EVMinimumChargePower_isUsed == 1u ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- errn = encode_v2gPhysicalValueType(stream, &v2gDC_EVBidirectionalParameterType->EVMinimumChargePower );
- }
- grammarID = 2762;
- } else if ( 1 == 1 ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- errn = encode_v2gPhysicalValueType(stream, &v2gDC_EVBidirectionalParameterType->EVMaximumChargeCurrent );
- }
- grammarID = 2763;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 2762:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}EVMaximumChargeCurrent)] */
- if ( 1 == 1 ) {
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- if(errn == 0) {
- errn = encode_v2gPhysicalValueType(stream, &v2gDC_EVBidirectionalParameterType->EVMaximumChargeCurrent );
- }
- grammarID = 2763;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 2763:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}EVMinimumChargeCurrent)] */
- if ( 1 == 1 ) {
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- if(errn == 0) {
- errn = encode_v2gPhysicalValueType(stream, &v2gDC_EVBidirectionalParameterType->EVMinimumChargeCurrent );
- }
- grammarID = 2764;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 2764:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}EVMaximumVoltage)] */
- if ( 1 == 1 ) {
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- if(errn == 0) {
- errn = encode_v2gPhysicalValueType(stream, &v2gDC_EVBidirectionalParameterType->EVMaximumVoltage );
- }
- grammarID = 2765;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 2765:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}EVTargetEnergyRequest), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}EVMaximumEnergyRequest), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}EVMinimumEnergyRequest), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}CurrentSOC), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}TargetSOC), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}BulkSOC), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}EVMaximumDischargePower), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}EVMinimumDischargePower), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}EVMaximumDischargeCurrent)] */
- if ( v2gDC_EVBidirectionalParameterType->EVTargetEnergyRequest_isUsed == 1u ) {
- errn = encodeNBitUnsignedInteger(stream, 4, 0);
- if(errn == 0) {
- errn = encode_v2gPhysicalValueType(stream, &v2gDC_EVBidirectionalParameterType->EVTargetEnergyRequest );
- }
- grammarID = 2766;
- } else if ( v2gDC_EVBidirectionalParameterType->EVMaximumEnergyRequest_isUsed == 1u ) {
- errn = encodeNBitUnsignedInteger(stream, 4, 1);
- if(errn == 0) {
- errn = encode_v2gPhysicalValueType(stream, &v2gDC_EVBidirectionalParameterType->EVMaximumEnergyRequest );
- }
- grammarID = 2767;
- } else if ( v2gDC_EVBidirectionalParameterType->EVMinimumEnergyRequest_isUsed == 1u ) {
- errn = encodeNBitUnsignedInteger(stream, 4, 2);
- if(errn == 0) {
- errn = encode_v2gPhysicalValueType(stream, &v2gDC_EVBidirectionalParameterType->EVMinimumEnergyRequest );
- }
- grammarID = 2768;
- } else if ( v2gDC_EVBidirectionalParameterType->CurrentSOC_isUsed == 1u ) {
- errn = encodeNBitUnsignedInteger(stream, 4, 3);
- if(errn == 0) {
- /* FirstStartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- if(errn == 0) {
- errn = encodeNBitUnsignedInteger(stream, 7, (uint32_t)(v2gDC_EVBidirectionalParameterType->CurrentSOC - 0));
- /* valid EE */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- }
- }
- grammarID = 2769;
- } else if ( v2gDC_EVBidirectionalParameterType->TargetSOC_isUsed == 1u ) {
- errn = encodeNBitUnsignedInteger(stream, 4, 4);
- if(errn == 0) {
- /* FirstStartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- if(errn == 0) {
- errn = encodeNBitUnsignedInteger(stream, 7, (uint32_t)(v2gDC_EVBidirectionalParameterType->TargetSOC - 0));
- /* valid EE */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- }
- }
- grammarID = 2770;
- } else if ( v2gDC_EVBidirectionalParameterType->BulkSOC_isUsed == 1u ) {
- errn = encodeNBitUnsignedInteger(stream, 4, 5);
- if(errn == 0) {
- /* FirstStartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- if(errn == 0) {
- errn = encodeNBitUnsignedInteger(stream, 7, (uint32_t)(v2gDC_EVBidirectionalParameterType->BulkSOC - 0));
- /* valid EE */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- }
- }
- grammarID = 2771;
- } else if ( v2gDC_EVBidirectionalParameterType->EVMaximumDischargePower_isUsed == 1u ) {
- errn = encodeNBitUnsignedInteger(stream, 4, 6);
- if(errn == 0) {
- errn = encode_v2gPhysicalValueType(stream, &v2gDC_EVBidirectionalParameterType->EVMaximumDischargePower );
- }
- grammarID = 2772;
- } else if ( v2gDC_EVBidirectionalParameterType->EVMinimumDischargePower_isUsed == 1u ) {
- errn = encodeNBitUnsignedInteger(stream, 4, 7);
- if(errn == 0) {
- errn = encode_v2gPhysicalValueType(stream, &v2gDC_EVBidirectionalParameterType->EVMinimumDischargePower );
- }
- grammarID = 2773;
- } else if ( 1 == 1 ) {
- errn = encodeNBitUnsignedInteger(stream, 4, 8);
- if(errn == 0) {
- errn = encode_v2gPhysicalValueType(stream, &v2gDC_EVBidirectionalParameterType->EVMaximumDischargeCurrent );
- }
- grammarID = 2774;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 2766:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}EVMaximumEnergyRequest), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}EVMinimumEnergyRequest), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}CurrentSOC), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}TargetSOC), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}BulkSOC), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}EVMaximumDischargePower), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}EVMinimumDischargePower), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}EVMaximumDischargeCurrent)] */
- if ( v2gDC_EVBidirectionalParameterType->EVMaximumEnergyRequest_isUsed == 1u ) {
- errn = encodeNBitUnsignedInteger(stream, 4, 0);
- if(errn == 0) {
- errn = encode_v2gPhysicalValueType(stream, &v2gDC_EVBidirectionalParameterType->EVMaximumEnergyRequest );
- }
- grammarID = 2767;
- } else if ( v2gDC_EVBidirectionalParameterType->EVMinimumEnergyRequest_isUsed == 1u ) {
- errn = encodeNBitUnsignedInteger(stream, 4, 1);
- if(errn == 0) {
- errn = encode_v2gPhysicalValueType(stream, &v2gDC_EVBidirectionalParameterType->EVMinimumEnergyRequest );
- }
- grammarID = 2768;
- } else if ( v2gDC_EVBidirectionalParameterType->CurrentSOC_isUsed == 1u ) {
- errn = encodeNBitUnsignedInteger(stream, 4, 2);
- if(errn == 0) {
- /* FirstStartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- if(errn == 0) {
- errn = encodeNBitUnsignedInteger(stream, 7, (uint32_t)(v2gDC_EVBidirectionalParameterType->CurrentSOC - 0));
- /* valid EE */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- }
- }
- grammarID = 2769;
- } else if ( v2gDC_EVBidirectionalParameterType->TargetSOC_isUsed == 1u ) {
- errn = encodeNBitUnsignedInteger(stream, 4, 3);
- if(errn == 0) {
- /* FirstStartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- if(errn == 0) {
- errn = encodeNBitUnsignedInteger(stream, 7, (uint32_t)(v2gDC_EVBidirectionalParameterType->TargetSOC - 0));
- /* valid EE */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- }
- }
- grammarID = 2770;
- } else if ( v2gDC_EVBidirectionalParameterType->BulkSOC_isUsed == 1u ) {
- errn = encodeNBitUnsignedInteger(stream, 4, 4);
- if(errn == 0) {
- /* FirstStartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- if(errn == 0) {
- errn = encodeNBitUnsignedInteger(stream, 7, (uint32_t)(v2gDC_EVBidirectionalParameterType->BulkSOC - 0));
- /* valid EE */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- }
- }
- grammarID = 2771;
- } else if ( v2gDC_EVBidirectionalParameterType->EVMaximumDischargePower_isUsed == 1u ) {
- errn = encodeNBitUnsignedInteger(stream, 4, 5);
- if(errn == 0) {
- errn = encode_v2gPhysicalValueType(stream, &v2gDC_EVBidirectionalParameterType->EVMaximumDischargePower );
- }
- grammarID = 2772;
- } else if ( v2gDC_EVBidirectionalParameterType->EVMinimumDischargePower_isUsed == 1u ) {
- errn = encodeNBitUnsignedInteger(stream, 4, 6);
- if(errn == 0) {
- errn = encode_v2gPhysicalValueType(stream, &v2gDC_EVBidirectionalParameterType->EVMinimumDischargePower );
- }
- grammarID = 2773;
- } else if ( 1 == 1 ) {
- errn = encodeNBitUnsignedInteger(stream, 4, 7);
- if(errn == 0) {
- errn = encode_v2gPhysicalValueType(stream, &v2gDC_EVBidirectionalParameterType->EVMaximumDischargeCurrent );
- }
- grammarID = 2774;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 2767:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}EVMinimumEnergyRequest), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}CurrentSOC), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}TargetSOC), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}BulkSOC), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}EVMaximumDischargePower), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}EVMinimumDischargePower), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}EVMaximumDischargeCurrent)] */
- if ( v2gDC_EVBidirectionalParameterType->EVMinimumEnergyRequest_isUsed == 1u ) {
- errn = encodeNBitUnsignedInteger(stream, 3, 0);
- if(errn == 0) {
- errn = encode_v2gPhysicalValueType(stream, &v2gDC_EVBidirectionalParameterType->EVMinimumEnergyRequest );
- }
- grammarID = 2768;
- } else if ( v2gDC_EVBidirectionalParameterType->CurrentSOC_isUsed == 1u ) {
- errn = encodeNBitUnsignedInteger(stream, 3, 1);
- if(errn == 0) {
- /* FirstStartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- if(errn == 0) {
- errn = encodeNBitUnsignedInteger(stream, 7, (uint32_t)(v2gDC_EVBidirectionalParameterType->CurrentSOC - 0));
- /* valid EE */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- }
- }
- grammarID = 2769;
- } else if ( v2gDC_EVBidirectionalParameterType->TargetSOC_isUsed == 1u ) {
- errn = encodeNBitUnsignedInteger(stream, 3, 2);
- if(errn == 0) {
- /* FirstStartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- if(errn == 0) {
- errn = encodeNBitUnsignedInteger(stream, 7, (uint32_t)(v2gDC_EVBidirectionalParameterType->TargetSOC - 0));
- /* valid EE */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- }
- }
- grammarID = 2770;
- } else if ( v2gDC_EVBidirectionalParameterType->BulkSOC_isUsed == 1u ) {
- errn = encodeNBitUnsignedInteger(stream, 3, 3);
- if(errn == 0) {
- /* FirstStartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- if(errn == 0) {
- errn = encodeNBitUnsignedInteger(stream, 7, (uint32_t)(v2gDC_EVBidirectionalParameterType->BulkSOC - 0));
- /* valid EE */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- }
- }
- grammarID = 2771;
- } else if ( v2gDC_EVBidirectionalParameterType->EVMaximumDischargePower_isUsed == 1u ) {
- errn = encodeNBitUnsignedInteger(stream, 3, 4);
- if(errn == 0) {
- errn = encode_v2gPhysicalValueType(stream, &v2gDC_EVBidirectionalParameterType->EVMaximumDischargePower );
- }
- grammarID = 2772;
- } else if ( v2gDC_EVBidirectionalParameterType->EVMinimumDischargePower_isUsed == 1u ) {
- errn = encodeNBitUnsignedInteger(stream, 3, 5);
- if(errn == 0) {
- errn = encode_v2gPhysicalValueType(stream, &v2gDC_EVBidirectionalParameterType->EVMinimumDischargePower );
- }
- grammarID = 2773;
- } else if ( 1 == 1 ) {
- errn = encodeNBitUnsignedInteger(stream, 3, 6);
- if(errn == 0) {
- errn = encode_v2gPhysicalValueType(stream, &v2gDC_EVBidirectionalParameterType->EVMaximumDischargeCurrent );
- }
- grammarID = 2774;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 2768:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}CurrentSOC), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}TargetSOC), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}BulkSOC), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}EVMaximumDischargePower), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}EVMinimumDischargePower), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}EVMaximumDischargeCurrent)] */
- if ( v2gDC_EVBidirectionalParameterType->CurrentSOC_isUsed == 1u ) {
- errn = encodeNBitUnsignedInteger(stream, 3, 0);
- if(errn == 0) {
- /* FirstStartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- if(errn == 0) {
- errn = encodeNBitUnsignedInteger(stream, 7, (uint32_t)(v2gDC_EVBidirectionalParameterType->CurrentSOC - 0));
- /* valid EE */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- }
- }
- grammarID = 2769;
- } else if ( v2gDC_EVBidirectionalParameterType->TargetSOC_isUsed == 1u ) {
- errn = encodeNBitUnsignedInteger(stream, 3, 1);
- if(errn == 0) {
- /* FirstStartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- if(errn == 0) {
- errn = encodeNBitUnsignedInteger(stream, 7, (uint32_t)(v2gDC_EVBidirectionalParameterType->TargetSOC - 0));
- /* valid EE */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- }
- }
- grammarID = 2770;
- } else if ( v2gDC_EVBidirectionalParameterType->BulkSOC_isUsed == 1u ) {
- errn = encodeNBitUnsignedInteger(stream, 3, 2);
- if(errn == 0) {
- /* FirstStartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- if(errn == 0) {
- errn = encodeNBitUnsignedInteger(stream, 7, (uint32_t)(v2gDC_EVBidirectionalParameterType->BulkSOC - 0));
- /* valid EE */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- }
- }
- grammarID = 2771;
- } else if ( v2gDC_EVBidirectionalParameterType->EVMaximumDischargePower_isUsed == 1u ) {
- errn = encodeNBitUnsignedInteger(stream, 3, 3);
- if(errn == 0) {
- errn = encode_v2gPhysicalValueType(stream, &v2gDC_EVBidirectionalParameterType->EVMaximumDischargePower );
- }
- grammarID = 2772;
- } else if ( v2gDC_EVBidirectionalParameterType->EVMinimumDischargePower_isUsed == 1u ) {
- errn = encodeNBitUnsignedInteger(stream, 3, 4);
- if(errn == 0) {
- errn = encode_v2gPhysicalValueType(stream, &v2gDC_EVBidirectionalParameterType->EVMinimumDischargePower );
- }
- grammarID = 2773;
- } else if ( 1 == 1 ) {
- errn = encodeNBitUnsignedInteger(stream, 3, 5);
- if(errn == 0) {
- errn = encode_v2gPhysicalValueType(stream, &v2gDC_EVBidirectionalParameterType->EVMaximumDischargeCurrent );
- }
- grammarID = 2774;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 2769:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}TargetSOC), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}BulkSOC), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}EVMaximumDischargePower), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}EVMinimumDischargePower), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}EVMaximumDischargeCurrent)] */
- if ( v2gDC_EVBidirectionalParameterType->TargetSOC_isUsed == 1u ) {
- errn = encodeNBitUnsignedInteger(stream, 3, 0);
- if(errn == 0) {
- /* FirstStartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- if(errn == 0) {
- errn = encodeNBitUnsignedInteger(stream, 7, (uint32_t)(v2gDC_EVBidirectionalParameterType->TargetSOC - 0));
- /* valid EE */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- }
- }
- grammarID = 2770;
- } else if ( v2gDC_EVBidirectionalParameterType->BulkSOC_isUsed == 1u ) {
- errn = encodeNBitUnsignedInteger(stream, 3, 1);
- if(errn == 0) {
- /* FirstStartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- if(errn == 0) {
- errn = encodeNBitUnsignedInteger(stream, 7, (uint32_t)(v2gDC_EVBidirectionalParameterType->BulkSOC - 0));
- /* valid EE */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- }
- }
- grammarID = 2771;
- } else if ( v2gDC_EVBidirectionalParameterType->EVMaximumDischargePower_isUsed == 1u ) {
- errn = encodeNBitUnsignedInteger(stream, 3, 2);
- if(errn == 0) {
- errn = encode_v2gPhysicalValueType(stream, &v2gDC_EVBidirectionalParameterType->EVMaximumDischargePower );
- }
- grammarID = 2772;
- } else if ( v2gDC_EVBidirectionalParameterType->EVMinimumDischargePower_isUsed == 1u ) {
- errn = encodeNBitUnsignedInteger(stream, 3, 3);
- if(errn == 0) {
- errn = encode_v2gPhysicalValueType(stream, &v2gDC_EVBidirectionalParameterType->EVMinimumDischargePower );
- }
- grammarID = 2773;
- } else if ( 1 == 1 ) {
- errn = encodeNBitUnsignedInteger(stream, 3, 4);
- if(errn == 0) {
- errn = encode_v2gPhysicalValueType(stream, &v2gDC_EVBidirectionalParameterType->EVMaximumDischargeCurrent );
- }
- grammarID = 2774;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 2770:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}BulkSOC), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}EVMaximumDischargePower), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}EVMinimumDischargePower), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}EVMaximumDischargeCurrent)] */
- if ( v2gDC_EVBidirectionalParameterType->BulkSOC_isUsed == 1u ) {
- errn = encodeNBitUnsignedInteger(stream, 3, 0);
- if(errn == 0) {
- /* FirstStartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- if(errn == 0) {
- errn = encodeNBitUnsignedInteger(stream, 7, (uint32_t)(v2gDC_EVBidirectionalParameterType->BulkSOC - 0));
- /* valid EE */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- }
- }
- grammarID = 2771;
- } else if ( v2gDC_EVBidirectionalParameterType->EVMaximumDischargePower_isUsed == 1u ) {
- errn = encodeNBitUnsignedInteger(stream, 3, 1);
- if(errn == 0) {
- errn = encode_v2gPhysicalValueType(stream, &v2gDC_EVBidirectionalParameterType->EVMaximumDischargePower );
- }
- grammarID = 2772;
- } else if ( v2gDC_EVBidirectionalParameterType->EVMinimumDischargePower_isUsed == 1u ) {
- errn = encodeNBitUnsignedInteger(stream, 3, 2);
- if(errn == 0) {
- errn = encode_v2gPhysicalValueType(stream, &v2gDC_EVBidirectionalParameterType->EVMinimumDischargePower );
- }
- grammarID = 2773;
- } else if ( 1 == 1 ) {
- errn = encodeNBitUnsignedInteger(stream, 3, 3);
- if(errn == 0) {
- errn = encode_v2gPhysicalValueType(stream, &v2gDC_EVBidirectionalParameterType->EVMaximumDischargeCurrent );
- }
- grammarID = 2774;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 2771:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}EVMaximumDischargePower), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}EVMinimumDischargePower), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}EVMaximumDischargeCurrent)] */
- if ( v2gDC_EVBidirectionalParameterType->EVMaximumDischargePower_isUsed == 1u ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- errn = encode_v2gPhysicalValueType(stream, &v2gDC_EVBidirectionalParameterType->EVMaximumDischargePower );
- }
- grammarID = 2772;
- } else if ( v2gDC_EVBidirectionalParameterType->EVMinimumDischargePower_isUsed == 1u ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- errn = encode_v2gPhysicalValueType(stream, &v2gDC_EVBidirectionalParameterType->EVMinimumDischargePower );
- }
- grammarID = 2773;
- } else if ( 1 == 1 ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 2);
- if(errn == 0) {
- errn = encode_v2gPhysicalValueType(stream, &v2gDC_EVBidirectionalParameterType->EVMaximumDischargeCurrent );
- }
- grammarID = 2774;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 2772:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}EVMinimumDischargePower), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}EVMaximumDischargeCurrent)] */
- if ( v2gDC_EVBidirectionalParameterType->EVMinimumDischargePower_isUsed == 1u ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- errn = encode_v2gPhysicalValueType(stream, &v2gDC_EVBidirectionalParameterType->EVMinimumDischargePower );
- }
- grammarID = 2773;
- } else if ( 1 == 1 ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- errn = encode_v2gPhysicalValueType(stream, &v2gDC_EVBidirectionalParameterType->EVMaximumDischargeCurrent );
- }
- grammarID = 2774;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 2773:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}EVMaximumDischargeCurrent)] */
- if ( 1 == 1 ) {
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- if(errn == 0) {
- errn = encode_v2gPhysicalValueType(stream, &v2gDC_EVBidirectionalParameterType->EVMaximumDischargeCurrent );
- }
- grammarID = 2774;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 2774:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}EVMinimumDischargeCurrent)] */
- if ( 1 == 1 ) {
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- if(errn == 0) {
- errn = encode_v2gPhysicalValueType(stream, &v2gDC_EVBidirectionalParameterType->EVMinimumDischargeCurrent );
- }
- grammarID = 2775;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 2775:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}EVMinimumVoltage)] */
- if ( 1 == 1 ) {
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- if(errn == 0) {
- errn = encode_v2gPhysicalValueType(stream, &v2gDC_EVBidirectionalParameterType->EVMinimumVoltage );
- }
- grammarID = 2776;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 2776:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MinimumSOC), END_ELEMENT] */
- if ( v2gDC_EVBidirectionalParameterType->MinimumSOC_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, 7, (uint32_t)(v2gDC_EVBidirectionalParameterType->MinimumSOC - 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:2016:MsgBody,ServiceDetailResType', base type name='V2GResponseType', content type='ELEMENT', isAbstract='false', hasTypeId='false', final='0', block='0', particle='(("urn:iso:15118:2:2016:MsgBody":ResponseCode,"urn:iso:15118:2:2016:MsgBody":EVSEStatus{0-1}),("urn:iso:15118:2:2016:MsgBody":ServiceID,"urn:iso:15118:2:2016:MsgBody":ServiceParameterList{0-1}))', derivedBy='EXTENSION'. */
-static int encode_v2gServiceDetailResType(bitstream_t* stream, struct v2gServiceDetailResType* v2gServiceDetailResType) {
- int grammarID = 2777;
- int done = 0;
-
-
- while(!done) {
- switch(grammarID) {
- case 2777:
- /* FirstStartTag[START_ELEMENT({urn:iso:15118:2:2016:MsgBody}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, 5, v2gServiceDetailResType->ResponseCode);
- /* valid EE */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- }
- }
- grammarID = 2778;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 2778:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgBody}EVSEStatus), START_ELEMENT({urn:iso:15118:2:2016:MsgBody}ServiceID)] */
- if ( v2gServiceDetailResType->EVSEStatus_isUsed == 1u ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- errn = encode_v2gEVSEStatusType(stream, &v2gServiceDetailResType->EVSEStatus );
- }
- grammarID = 2779;
- } else if ( 1 == 1 ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- /* FirstStartTag[CHARACTERS[UNSIGNED_INTEGER]] */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- if(errn == 0) {
- errn = encodeUnsignedInteger16(stream, v2gServiceDetailResType->ServiceID);
- /* valid EE */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- }
- }
- grammarID = 2780;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 2779:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgBody}ServiceID)] */
- if ( 1 == 1 ) {
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- if(errn == 0) {
- /* FirstStartTag[CHARACTERS[UNSIGNED_INTEGER]] */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- if(errn == 0) {
- errn = encodeUnsignedInteger16(stream, v2gServiceDetailResType->ServiceID);
- /* valid EE */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- }
- }
- grammarID = 2780;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 2780:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgBody}ServiceParameterList), END_ELEMENT] */
- if ( v2gServiceDetailResType->ServiceParameterList_isUsed == 1u ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- errn = encode_v2gServiceParameterListType(stream, &v2gServiceDetailResType->ServiceParameterList );
- }
- 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:2016:MsgDataTypes,SelectedServiceListType', base type name='anyType', content type='ELEMENT', isAbstract='false', hasTypeId='false', final='0', block='0', particle='("urn:iso:15118:2:2016:MsgDataTypes":SelectedService{1-16})', derivedBy='RESTRICTION'. */
-static int encode_v2gSelectedServiceListType(bitstream_t* stream, struct v2gSelectedServiceListType* v2gSelectedServiceListType) {
- int grammarID = 2781;
- int done = 0;
-
- unsigned int v2gSelectedServiceListType_SelectedService_currArrayIndex = 0;
-
- while(!done) {
- switch(grammarID) {
- case 2781:
- /* FirstStartTag[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SelectedService)] */
- if (v2gSelectedServiceListType_SelectedService_currArrayIndex < v2gSelectedServiceListType->SelectedService.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- if(errn == 0) {
- errn = encode_v2gSelectedServiceType(stream, &v2gSelectedServiceListType->SelectedService.array [v2gSelectedServiceListType_SelectedService_currArrayIndex++]);
- }
- grammarID = 2782;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 2782:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SelectedService), END_ELEMENT] */
- if (v2gSelectedServiceListType_SelectedService_currArrayIndex < v2gSelectedServiceListType->SelectedService.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- errn = encode_v2gSelectedServiceType(stream, &v2gSelectedServiceListType->SelectedService.array [v2gSelectedServiceListType_SelectedService_currArrayIndex++]);
- }
- grammarID = 2783;
- } else if (1==1) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- done = 1;
- }
- grammarID = 3;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 2783:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SelectedService), END_ELEMENT] */
- if (v2gSelectedServiceListType_SelectedService_currArrayIndex < v2gSelectedServiceListType->SelectedService.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- errn = encode_v2gSelectedServiceType(stream, &v2gSelectedServiceListType->SelectedService.array [v2gSelectedServiceListType_SelectedService_currArrayIndex++]);
- }
- grammarID = 2784;
- } else if (1==1) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- done = 1;
- }
- grammarID = 3;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 2784:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SelectedService), END_ELEMENT] */
- if (v2gSelectedServiceListType_SelectedService_currArrayIndex < v2gSelectedServiceListType->SelectedService.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- errn = encode_v2gSelectedServiceType(stream, &v2gSelectedServiceListType->SelectedService.array [v2gSelectedServiceListType_SelectedService_currArrayIndex++]);
- }
- grammarID = 2785;
- } else if (1==1) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- done = 1;
- }
- grammarID = 3;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 2785:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SelectedService), END_ELEMENT] */
- if (v2gSelectedServiceListType_SelectedService_currArrayIndex < v2gSelectedServiceListType->SelectedService.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- errn = encode_v2gSelectedServiceType(stream, &v2gSelectedServiceListType->SelectedService.array [v2gSelectedServiceListType_SelectedService_currArrayIndex++]);
- }
- grammarID = 2786;
- } else if (1==1) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- done = 1;
- }
- grammarID = 3;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 2786:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SelectedService), END_ELEMENT] */
- if (v2gSelectedServiceListType_SelectedService_currArrayIndex < v2gSelectedServiceListType->SelectedService.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- errn = encode_v2gSelectedServiceType(stream, &v2gSelectedServiceListType->SelectedService.array [v2gSelectedServiceListType_SelectedService_currArrayIndex++]);
- }
- grammarID = 2787;
- } else if (1==1) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- done = 1;
- }
- grammarID = 3;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 2787:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SelectedService), END_ELEMENT] */
- if (v2gSelectedServiceListType_SelectedService_currArrayIndex < v2gSelectedServiceListType->SelectedService.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- errn = encode_v2gSelectedServiceType(stream, &v2gSelectedServiceListType->SelectedService.array [v2gSelectedServiceListType_SelectedService_currArrayIndex++]);
- }
- grammarID = 2788;
- } else if (1==1) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- done = 1;
- }
- grammarID = 3;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 2788:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SelectedService), END_ELEMENT] */
- if (v2gSelectedServiceListType_SelectedService_currArrayIndex < v2gSelectedServiceListType->SelectedService.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- errn = encode_v2gSelectedServiceType(stream, &v2gSelectedServiceListType->SelectedService.array [v2gSelectedServiceListType_SelectedService_currArrayIndex++]);
- }
- grammarID = 2789;
- } else if (1==1) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- done = 1;
- }
- grammarID = 3;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 2789:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SelectedService), END_ELEMENT] */
- if (v2gSelectedServiceListType_SelectedService_currArrayIndex < v2gSelectedServiceListType->SelectedService.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- errn = encode_v2gSelectedServiceType(stream, &v2gSelectedServiceListType->SelectedService.array [v2gSelectedServiceListType_SelectedService_currArrayIndex++]);
- }
- grammarID = 2790;
- } else if (1==1) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- done = 1;
- }
- grammarID = 3;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 2790:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SelectedService), END_ELEMENT] */
- if (v2gSelectedServiceListType_SelectedService_currArrayIndex < v2gSelectedServiceListType->SelectedService.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- errn = encode_v2gSelectedServiceType(stream, &v2gSelectedServiceListType->SelectedService.array [v2gSelectedServiceListType_SelectedService_currArrayIndex++]);
- }
- grammarID = 2791;
- } else if (1==1) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- done = 1;
- }
- grammarID = 3;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 2791:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SelectedService), END_ELEMENT] */
- if (v2gSelectedServiceListType_SelectedService_currArrayIndex < v2gSelectedServiceListType->SelectedService.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- errn = encode_v2gSelectedServiceType(stream, &v2gSelectedServiceListType->SelectedService.array [v2gSelectedServiceListType_SelectedService_currArrayIndex++]);
- }
- grammarID = 2792;
- } else if (1==1) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- done = 1;
- }
- grammarID = 3;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 2792:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SelectedService), END_ELEMENT] */
- if (v2gSelectedServiceListType_SelectedService_currArrayIndex < v2gSelectedServiceListType->SelectedService.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- errn = encode_v2gSelectedServiceType(stream, &v2gSelectedServiceListType->SelectedService.array [v2gSelectedServiceListType_SelectedService_currArrayIndex++]);
- }
- grammarID = 2793;
- } else if (1==1) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- done = 1;
- }
- grammarID = 3;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 2793:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SelectedService), END_ELEMENT] */
- if (v2gSelectedServiceListType_SelectedService_currArrayIndex < v2gSelectedServiceListType->SelectedService.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- errn = encode_v2gSelectedServiceType(stream, &v2gSelectedServiceListType->SelectedService.array [v2gSelectedServiceListType_SelectedService_currArrayIndex++]);
- }
- grammarID = 2794;
- } else if (1==1) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- done = 1;
- }
- grammarID = 3;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 2794:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SelectedService), END_ELEMENT] */
- if (v2gSelectedServiceListType_SelectedService_currArrayIndex < v2gSelectedServiceListType->SelectedService.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- errn = encode_v2gSelectedServiceType(stream, &v2gSelectedServiceListType->SelectedService.array [v2gSelectedServiceListType_SelectedService_currArrayIndex++]);
- }
- grammarID = 2795;
- } else if (1==1) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- done = 1;
- }
- grammarID = 3;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 2795:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SelectedService), END_ELEMENT] */
- if (v2gSelectedServiceListType_SelectedService_currArrayIndex < v2gSelectedServiceListType->SelectedService.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- errn = encode_v2gSelectedServiceType(stream, &v2gSelectedServiceListType->SelectedService.array [v2gSelectedServiceListType_SelectedService_currArrayIndex++]);
- }
- grammarID = 2796;
- } else if (1==1) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- done = 1;
- }
- grammarID = 3;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 2796:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SelectedService), END_ELEMENT] */
- if (v2gSelectedServiceListType_SelectedService_currArrayIndex < v2gSelectedServiceListType->SelectedService.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- errn = encode_v2gSelectedServiceType(stream, &v2gSelectedServiceListType->SelectedService.array [v2gSelectedServiceListType_SelectedService_currArrayIndex++]);
- }
- 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:2016:MsgDataTypes,RelativeTimeIntervalType', base type name='anyType', content type='ELEMENT', isAbstract='false', hasTypeId='false', final='0', block='0', particle='("urn:iso:15118:2:2016:MsgDataTypes":start,"urn:iso:15118:2:2016:MsgDataTypes":duration{0-1})', derivedBy='RESTRICTION'. */
-static int encode_v2gRelativeTimeIntervalType(bitstream_t* stream, struct v2gRelativeTimeIntervalType* v2gRelativeTimeIntervalType) {
- int grammarID = 2797;
- int done = 0;
-
-
- while(!done) {
- switch(grammarID) {
- case 2797:
- /* FirstStartTag[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}start)] */
- if ( 1 == 1 ) {
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- if(errn == 0) {
- /* FirstStartTag[CHARACTERS[UNSIGNED_INTEGER]] */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- if(errn == 0) {
- errn = encodeUnsignedInteger32(stream, v2gRelativeTimeIntervalType->start);
- /* valid EE */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- }
- }
- grammarID = 2798;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 2798:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}duration), END_ELEMENT] */
- if ( v2gRelativeTimeIntervalType->duration_isUsed == 1u ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- /* FirstStartTag[CHARACTERS[UNSIGNED_INTEGER]] */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- if(errn == 0) {
- errn = encodeUnsignedInteger32(stream, v2gRelativeTimeIntervalType->duration);
- /* 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:2016:MsgBody,DisconnectChargingDeviceResType', base type name='V2GResponseType', content type='ELEMENT', isAbstract='false', hasTypeId='false', final='0', block='0', particle='(("urn:iso:15118:2:2016:MsgBody":ResponseCode,"urn:iso:15118:2:2016:MsgBody":EVSEStatus{0-1}),("urn:iso:15118:2:2016:MsgBody":EVSEProcessing,"urn:iso:15118:2:2016:MsgBody":EVSEElectricalChargingDeviceStatus,"urn:iso:15118:2:2016:MsgBody":EVSEMechanicalChargingDeviceStatus))', derivedBy='EXTENSION'. */
-static int encode_v2gDisconnectChargingDeviceResType(bitstream_t* stream, struct v2gDisconnectChargingDeviceResType* v2gDisconnectChargingDeviceResType) {
- int grammarID = 2421;
- int done = 0;
-
-
- while(!done) {
- switch(grammarID) {
- case 2421:
- /* FirstStartTag[START_ELEMENT({urn:iso:15118:2:2016:MsgBody}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, 5, v2gDisconnectChargingDeviceResType->ResponseCode);
- /* valid EE */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- }
- }
- grammarID = 2422;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 2422:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgBody}EVSEStatus), START_ELEMENT({urn:iso:15118:2:2016:MsgBody}EVSEProcessing)] */
- if ( v2gDisconnectChargingDeviceResType->EVSEStatus_isUsed == 1u ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- errn = encode_v2gEVSEStatusType(stream, &v2gDisconnectChargingDeviceResType->EVSEStatus );
- }
- grammarID = 2423;
- } else if ( 1 == 1 ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- /* FirstStartTag[CHARACTERS[ENUMERATION]] */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- if(errn == 0) {
- errn = encodeNBitUnsignedInteger(stream, 2, v2gDisconnectChargingDeviceResType->EVSEProcessing);
- /* valid EE */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- }
- }
- grammarID = 2424;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 2423:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgBody}EVSEProcessing)] */
- 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, v2gDisconnectChargingDeviceResType->EVSEProcessing);
- /* valid EE */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- }
- }
- grammarID = 2424;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 2424:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgBody}EVSEElectricalChargingDeviceStatus)] */
- 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, 1, v2gDisconnectChargingDeviceResType->EVSEElectricalChargingDeviceStatus);
- /* valid EE */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- }
- }
- grammarID = 1519;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 1519:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgBody}EVSEMechanicalChargingDeviceStatus)] */
- 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, v2gDisconnectChargingDeviceResType->EVSEMechanicalChargingDeviceStatus);
- /* valid EE */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- }
- }
- grammarID = 2;
- } 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:2016:MsgDataTypes,ContractSignatureEncryptedPrivateKeyType', base type name='encryptedPrivateKeyType', content type='SIMPLE', isAbstract='false', hasTypeId='false', final='0', block='0', derivedBy='EXTENSION'. */
-static int encode_v2gContractSignatureEncryptedPrivateKeyType(bitstream_t* stream, struct v2gContractSignatureEncryptedPrivateKeyType* v2gContractSignatureEncryptedPrivateKeyType) {
- int grammarID = 1855;
- int done = 0;
-
-
- while(!done) {
- switch(grammarID) {
- case 1855:
- /* FirstStartTag[ATTRIBUTE[STRING]({urn:iso:15118:2:2016:MsgDataTypes}Id)] */
- if (1==1) {
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- if(errn == 0) {
- /* encode string as string table miss (+2 len)*/
- errn = encodeUnsignedInteger16(stream, (uint16_t)(v2gContractSignatureEncryptedPrivateKeyType->Id.charactersLen + 2));
- if (errn == 0) {
- errn = encodeCharacters(stream, v2gContractSignatureEncryptedPrivateKeyType->Id.characters, v2gContractSignatureEncryptedPrivateKeyType->Id.charactersLen);
- }
- }
- grammarID = 1;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 1:
- /* StartTag[CHARACTERS[BINARY_BASE64]] */
- if (1==1) {
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- if(errn == 0) {
- errn = encodeUnsignedInteger16(stream, (uint16_t)(v2gContractSignatureEncryptedPrivateKeyType->CONTENT.bytesLen));
- if (errn == 0) {
- errn = encodeBytes(stream, v2gContractSignatureEncryptedPrivateKeyType->CONTENT.bytes, v2gContractSignatureEncryptedPrivateKeyType->CONTENT.bytesLen);
- }
- }
- grammarID = 2;
- } 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:2016:MsgBody,ChargingStatusResType', base type name='V2GResponseType', content type='ELEMENT', isAbstract='false', hasTypeId='false', final='0', block='0', particle='(("urn:iso:15118:2:2016:MsgBody":ResponseCode,"urn:iso:15118:2:2016:MsgBody":EVSEStatus{0-1}),("urn:iso:15118:2:2016:MsgBody":EVSEID,"urn:iso:15118:2:2016:MsgBody":SAScheduleTupleID{0-1},"urn:iso:15118:2:2016:MsgBody":MeterInfo{0-1},"urn:iso:15118:2:2016:MsgBody":ReceiptRequired{0-1},"urn:iso:15118:2:2016:MsgBody":EVSETargetPower{0-1}))', derivedBy='EXTENSION'. */
-static int encode_v2gChargingStatusResType(bitstream_t* stream, struct v2gChargingStatusResType* v2gChargingStatusResType) {
- int grammarID = 2799;
- int done = 0;
-
-
- while(!done) {
- switch(grammarID) {
- case 2799:
- /* FirstStartTag[START_ELEMENT({urn:iso:15118:2:2016:MsgBody}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, 5, v2gChargingStatusResType->ResponseCode);
- /* valid EE */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- }
- }
- grammarID = 2800;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 2800:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgBody}EVSEStatus), START_ELEMENT({urn:iso:15118:2:2016:MsgBody}EVSEID)] */
- if ( v2gChargingStatusResType->EVSEStatus_isUsed == 1u ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- errn = encode_v2gEVSEStatusType(stream, &v2gChargingStatusResType->EVSEStatus );
- }
- grammarID = 2801;
- } else if ( 1 == 1 ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- /* FirstStartTag[CHARACTERS[STRING]] */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- if(errn == 0) {
- /* encode string as string table miss (+2 len)*/
- errn = encodeUnsignedInteger16(stream, (uint16_t)(v2gChargingStatusResType->EVSEID.charactersLen + 2));
- if (errn == 0) {
- errn = encodeCharacters(stream, v2gChargingStatusResType->EVSEID.characters, v2gChargingStatusResType->EVSEID.charactersLen);
- }
- /* valid EE */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- }
- }
- grammarID = 2802;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 2801:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgBody}EVSEID)] */
- if ( 1 == 1 ) {
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- if(errn == 0) {
- /* FirstStartTag[CHARACTERS[STRING]] */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- if(errn == 0) {
- /* encode string as string table miss (+2 len)*/
- errn = encodeUnsignedInteger16(stream, (uint16_t)(v2gChargingStatusResType->EVSEID.charactersLen + 2));
- if (errn == 0) {
- errn = encodeCharacters(stream, v2gChargingStatusResType->EVSEID.characters, v2gChargingStatusResType->EVSEID.charactersLen);
- }
- /* valid EE */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- }
- }
- grammarID = 2802;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 2802:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgBody}SAScheduleTupleID), START_ELEMENT({urn:iso:15118:2:2016:MsgBody}MeterInfo), START_ELEMENT({urn:iso:15118:2:2016:MsgBody}ReceiptRequired), START_ELEMENT({urn:iso:15118:2:2016:MsgBody}EVSETargetPower), END_ELEMENT] */
- if ( v2gChargingStatusResType->SAScheduleTupleID_isUsed == 1u ) {
- errn = encodeNBitUnsignedInteger(stream, 3, 0);
- if(errn == 0) {
- /* FirstStartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- if(errn == 0) {
- errn = encodeNBitUnsignedInteger(stream, 8, (uint32_t)(v2gChargingStatusResType->SAScheduleTupleID - 1));
- /* valid EE */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- }
- }
- grammarID = 2803;
- } else if ( v2gChargingStatusResType->MeterInfo_isUsed == 1u ) {
- errn = encodeNBitUnsignedInteger(stream, 3, 1);
- if(errn == 0) {
- errn = encode_v2gMeterInfoType(stream, &v2gChargingStatusResType->MeterInfo );
- }
- grammarID = 2804;
- } else if ( v2gChargingStatusResType->ReceiptRequired_isUsed == 1u ) {
- errn = encodeNBitUnsignedInteger(stream, 3, 2);
- if(errn == 0) {
- /* FirstStartTag[CHARACTERS[BOOLEAN]] */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- if(errn == 0) {
- errn = encodeBoolean(stream, v2gChargingStatusResType->ReceiptRequired);
- /* valid EE */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- }
- }
- grammarID = 2805;
- } else if ( v2gChargingStatusResType->EVSETargetPower_isUsed == 1u ) {
- errn = encodeNBitUnsignedInteger(stream, 3, 3);
- if(errn == 0) {
- errn = encode_v2gPhysicalValueType(stream, &v2gChargingStatusResType->EVSETargetPower );
- }
- grammarID = 2;
- } else if (1==1) {
- errn = encodeNBitUnsignedInteger(stream, 3, 4);
- if(errn == 0) {
- done = 1;
- }
- grammarID = 3;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 2803:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgBody}MeterInfo), START_ELEMENT({urn:iso:15118:2:2016:MsgBody}ReceiptRequired), START_ELEMENT({urn:iso:15118:2:2016:MsgBody}EVSETargetPower), END_ELEMENT] */
- if ( v2gChargingStatusResType->MeterInfo_isUsed == 1u ) {
- errn = encodeNBitUnsignedInteger(stream, 3, 0);
- if(errn == 0) {
- errn = encode_v2gMeterInfoType(stream, &v2gChargingStatusResType->MeterInfo );
- }
- grammarID = 2804;
- } else if ( v2gChargingStatusResType->ReceiptRequired_isUsed == 1u ) {
- errn = encodeNBitUnsignedInteger(stream, 3, 1);
- if(errn == 0) {
- /* FirstStartTag[CHARACTERS[BOOLEAN]] */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- if(errn == 0) {
- errn = encodeBoolean(stream, v2gChargingStatusResType->ReceiptRequired);
- /* valid EE */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- }
- }
- grammarID = 2805;
- } else if ( v2gChargingStatusResType->EVSETargetPower_isUsed == 1u ) {
- errn = encodeNBitUnsignedInteger(stream, 3, 2);
- if(errn == 0) {
- errn = encode_v2gPhysicalValueType(stream, &v2gChargingStatusResType->EVSETargetPower );
- }
- grammarID = 2;
- } else if (1==1) {
- errn = encodeNBitUnsignedInteger(stream, 3, 3);
- if(errn == 0) {
- done = 1;
- }
- grammarID = 3;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 2804:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgBody}ReceiptRequired), START_ELEMENT({urn:iso:15118:2:2016:MsgBody}EVSETargetPower), END_ELEMENT] */
- if ( v2gChargingStatusResType->ReceiptRequired_isUsed == 1u ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- /* FirstStartTag[CHARACTERS[BOOLEAN]] */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- if(errn == 0) {
- errn = encodeBoolean(stream, v2gChargingStatusResType->ReceiptRequired);
- /* valid EE */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- }
- }
- grammarID = 2805;
- } else if ( v2gChargingStatusResType->EVSETargetPower_isUsed == 1u ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- errn = encode_v2gPhysicalValueType(stream, &v2gChargingStatusResType->EVSETargetPower );
- }
- grammarID = 2;
- } else if (1==1) {
- errn = encodeNBitUnsignedInteger(stream, 2, 2);
- if(errn == 0) {
- done = 1;
- }
- grammarID = 3;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 2805:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgBody}EVSETargetPower), END_ELEMENT] */
- if ( v2gChargingStatusResType->EVSETargetPower_isUsed == 1u ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- errn = encode_v2gPhysicalValueType(stream, &v2gChargingStatusResType->EVSETargetPower );
- }
- 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:2016:MsgBody,PaymentDetailsReqType', base type name='BodyBaseType', content type='ELEMENT', isAbstract='false', hasTypeId='false', final='0', block='0', particle='("urn:iso:15118:2:2016:MsgBody":eMAID,"urn:iso:15118:2:2016:MsgBody":ContractSignatureCertChain)', derivedBy='EXTENSION'. */
-static int encode_v2gPaymentDetailsReqType(bitstream_t* stream, struct v2gPaymentDetailsReqType* v2gPaymentDetailsReqType) {
- int grammarID = 2806;
- int done = 0;
-
-
- while(!done) {
- switch(grammarID) {
- case 2806:
- /* FirstStartTag[START_ELEMENT({urn:iso:15118:2:2016:MsgBody}eMAID)] */
- if ( 1 == 1 ) {
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- if(errn == 0) {
- /* First(xsi:type)StartTag[CHARACTERS[STRING]] */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- if(errn == 0) {
- /* encode string as string table miss (+2 len)*/
- errn = encodeUnsignedInteger16(stream, (uint16_t)(v2gPaymentDetailsReqType->eMAID.charactersLen + 2));
- if (errn == 0) {
- errn = encodeCharacters(stream, v2gPaymentDetailsReqType->eMAID.characters, v2gPaymentDetailsReqType->eMAID.charactersLen);
- }
- /* valid EE */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- }
- }
- grammarID = 2807;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 2807:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgBody}ContractSignatureCertChain)] */
- if ( 1 == 1 ) {
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- if(errn == 0) {
- errn = encode_v2gCertificateChainType(stream, &v2gPaymentDetailsReqType->ContractSignatureCertChain );
- }
- grammarID = 2;
- } 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:2016:MsgDataTypes,MagneticVectorSetupType', base type name='anyType', content type='ELEMENT', isAbstract='false', hasTypeId='false', final='0', block='0', particle='("urn:iso:15118:2:2016:MsgDataTypes":GAID,"urn:iso:15118:2:2016:MsgDataTypes":FrequencyChannel)', derivedBy='RESTRICTION'. */
-static int encode_v2gMagneticVectorSetupType(bitstream_t* stream, struct v2gMagneticVectorSetupType* v2gMagneticVectorSetupType) {
- int grammarID = 2808;
- int done = 0;
-
-
- while(!done) {
- switch(grammarID) {
- case 2808:
- /* FirstStartTag[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}GAID)] */
- if ( 1 == 1 ) {
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- if(errn == 0) {
- /* FirstStartTag[CHARACTERS[STRING]] */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- if(errn == 0) {
- /* encode string as string table miss (+2 len)*/
- errn = encodeUnsignedInteger16(stream, (uint16_t)(v2gMagneticVectorSetupType->GAID.charactersLen + 2));
- if (errn == 0) {
- errn = encodeCharacters(stream, v2gMagneticVectorSetupType->GAID.characters, v2gMagneticVectorSetupType->GAID.charactersLen);
- }
- /* valid EE */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- }
- }
- grammarID = 2809;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 2809:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}FrequencyChannel)] */
- if ( 1 == 1 ) {
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- if(errn == 0) {
- /* First(xsi:type)StartTag[CHARACTERS[UNSIGNED_INTEGER]] */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- if(errn == 0) {
- errn = encodeUnsignedInteger32(stream, v2gMagneticVectorSetupType->FrequencyChannel);
- /* valid EE */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- }
- }
- grammarID = 2;
- } 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:2016:MsgDataTypes,DC_EVChargeParameterType', base type name='EVEnergyTransferParameterType', content type='ELEMENT', isAbstract='false', hasTypeId='false', final='0', block='0', particle='(("urn:iso:15118:2:2016:MsgDataTypes":DepartureTime),("urn:iso:15118:2:2016:MsgDataTypes":EVMaximumChargePower{0-1},"urn:iso:15118:2:2016:MsgDataTypes":EVMinimumChargePower{0-1},"urn:iso:15118:2:2016:MsgDataTypes":EVMaximumChargeCurrent,"urn:iso:15118:2:2016:MsgDataTypes":EVMinimumChargeCurrent,"urn:iso:15118:2:2016:MsgDataTypes":EVMaximumVoltage,"urn:iso:15118:2:2016:MsgDataTypes":EVTargetEnergyRequest{0-1},"urn:iso:15118:2:2016:MsgDataTypes":EVMaximumEnergyRequest{0-1},"urn:iso:15118:2:2016:MsgDataTypes":EVMinimumEnergyRequest{0-1},"urn:iso:15118:2:2016:MsgDataTypes":CurrentSOC{0-1},"urn:iso:15118:2:2016:MsgDataTypes":TargetSOC{0-1},"urn:iso:15118:2:2016:MsgDataTypes":BulkSOC{0-1}))', derivedBy='EXTENSION'. */
-static int encode_v2gDC_EVChargeParameterType(bitstream_t* stream, struct v2gDC_EVChargeParameterType* v2gDC_EVChargeParameterType) {
- int grammarID = 2810;
- int done = 0;
-
-
- while(!done) {
- switch(grammarID) {
- case 2810:
- /* FirstStartTag[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}DepartureTime)] */
- if ( 1 == 1 ) {
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- if(errn == 0) {
- /* First(xsi:type)StartTag[CHARACTERS[UNSIGNED_INTEGER]] */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- if(errn == 0) {
- errn = encodeUnsignedInteger32(stream, v2gDC_EVChargeParameterType->DepartureTime);
- /* valid EE */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- }
- }
- grammarID = 2811;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 2811:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}EVMaximumChargePower), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}EVMinimumChargePower), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}EVMaximumChargeCurrent)] */
- if ( v2gDC_EVChargeParameterType->EVMaximumChargePower_isUsed == 1u ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- errn = encode_v2gPhysicalValueType(stream, &v2gDC_EVChargeParameterType->EVMaximumChargePower );
- }
- grammarID = 2812;
- } else if ( v2gDC_EVChargeParameterType->EVMinimumChargePower_isUsed == 1u ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- errn = encode_v2gPhysicalValueType(stream, &v2gDC_EVChargeParameterType->EVMinimumChargePower );
- }
- grammarID = 2813;
- } else if ( 1 == 1 ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 2);
- if(errn == 0) {
- errn = encode_v2gPhysicalValueType(stream, &v2gDC_EVChargeParameterType->EVMaximumChargeCurrent );
- }
- grammarID = 2814;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 2812:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}EVMinimumChargePower), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}EVMaximumChargeCurrent)] */
- if ( v2gDC_EVChargeParameterType->EVMinimumChargePower_isUsed == 1u ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- errn = encode_v2gPhysicalValueType(stream, &v2gDC_EVChargeParameterType->EVMinimumChargePower );
- }
- grammarID = 2813;
- } else if ( 1 == 1 ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- errn = encode_v2gPhysicalValueType(stream, &v2gDC_EVChargeParameterType->EVMaximumChargeCurrent );
- }
- grammarID = 2814;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 2813:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}EVMaximumChargeCurrent)] */
- if ( 1 == 1 ) {
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- if(errn == 0) {
- errn = encode_v2gPhysicalValueType(stream, &v2gDC_EVChargeParameterType->EVMaximumChargeCurrent );
- }
- grammarID = 2814;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 2814:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}EVMinimumChargeCurrent)] */
- if ( 1 == 1 ) {
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- if(errn == 0) {
- errn = encode_v2gPhysicalValueType(stream, &v2gDC_EVChargeParameterType->EVMinimumChargeCurrent );
- }
- grammarID = 2815;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 2815:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}EVMaximumVoltage)] */
- if ( 1 == 1 ) {
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- if(errn == 0) {
- errn = encode_v2gPhysicalValueType(stream, &v2gDC_EVChargeParameterType->EVMaximumVoltage );
- }
- grammarID = 2816;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 2816:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}EVTargetEnergyRequest), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}EVMaximumEnergyRequest), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}EVMinimumEnergyRequest), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}CurrentSOC), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}TargetSOC), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}BulkSOC), END_ELEMENT] */
- if ( v2gDC_EVChargeParameterType->EVTargetEnergyRequest_isUsed == 1u ) {
- errn = encodeNBitUnsignedInteger(stream, 3, 0);
- if(errn == 0) {
- errn = encode_v2gPhysicalValueType(stream, &v2gDC_EVChargeParameterType->EVTargetEnergyRequest );
- }
- grammarID = 2817;
- } else if ( v2gDC_EVChargeParameterType->EVMaximumEnergyRequest_isUsed == 1u ) {
- errn = encodeNBitUnsignedInteger(stream, 3, 1);
- if(errn == 0) {
- errn = encode_v2gPhysicalValueType(stream, &v2gDC_EVChargeParameterType->EVMaximumEnergyRequest );
- }
- grammarID = 2818;
- } else if ( v2gDC_EVChargeParameterType->EVMinimumEnergyRequest_isUsed == 1u ) {
- errn = encodeNBitUnsignedInteger(stream, 3, 2);
- if(errn == 0) {
- errn = encode_v2gPhysicalValueType(stream, &v2gDC_EVChargeParameterType->EVMinimumEnergyRequest );
- }
- grammarID = 2819;
- } else if ( v2gDC_EVChargeParameterType->CurrentSOC_isUsed == 1u ) {
- errn = encodeNBitUnsignedInteger(stream, 3, 3);
- if(errn == 0) {
- /* FirstStartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- if(errn == 0) {
- errn = encodeNBitUnsignedInteger(stream, 7, (uint32_t)(v2gDC_EVChargeParameterType->CurrentSOC - 0));
- /* valid EE */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- }
- }
- grammarID = 2820;
- } else if ( v2gDC_EVChargeParameterType->TargetSOC_isUsed == 1u ) {
- errn = encodeNBitUnsignedInteger(stream, 3, 4);
- if(errn == 0) {
- /* FirstStartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- if(errn == 0) {
- errn = encodeNBitUnsignedInteger(stream, 7, (uint32_t)(v2gDC_EVChargeParameterType->TargetSOC - 0));
- /* valid EE */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- }
- }
- grammarID = 2821;
- } else if ( v2gDC_EVChargeParameterType->BulkSOC_isUsed == 1u ) {
- errn = encodeNBitUnsignedInteger(stream, 3, 5);
- if(errn == 0) {
- /* FirstStartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- if(errn == 0) {
- errn = encodeNBitUnsignedInteger(stream, 7, (uint32_t)(v2gDC_EVChargeParameterType->BulkSOC - 0));
- /* valid EE */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- }
- }
- grammarID = 2;
- } else if (1==1) {
- errn = encodeNBitUnsignedInteger(stream, 3, 6);
- if(errn == 0) {
- done = 1;
- }
- grammarID = 3;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 2817:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}EVMaximumEnergyRequest), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}EVMinimumEnergyRequest), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}CurrentSOC), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}TargetSOC), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}BulkSOC), END_ELEMENT] */
- if ( v2gDC_EVChargeParameterType->EVMaximumEnergyRequest_isUsed == 1u ) {
- errn = encodeNBitUnsignedInteger(stream, 3, 0);
- if(errn == 0) {
- errn = encode_v2gPhysicalValueType(stream, &v2gDC_EVChargeParameterType->EVMaximumEnergyRequest );
- }
- grammarID = 2818;
- } else if ( v2gDC_EVChargeParameterType->EVMinimumEnergyRequest_isUsed == 1u ) {
- errn = encodeNBitUnsignedInteger(stream, 3, 1);
- if(errn == 0) {
- errn = encode_v2gPhysicalValueType(stream, &v2gDC_EVChargeParameterType->EVMinimumEnergyRequest );
- }
- grammarID = 2819;
- } else if ( v2gDC_EVChargeParameterType->CurrentSOC_isUsed == 1u ) {
- errn = encodeNBitUnsignedInteger(stream, 3, 2);
- if(errn == 0) {
- /* FirstStartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- if(errn == 0) {
- errn = encodeNBitUnsignedInteger(stream, 7, (uint32_t)(v2gDC_EVChargeParameterType->CurrentSOC - 0));
- /* valid EE */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- }
- }
- grammarID = 2820;
- } else if ( v2gDC_EVChargeParameterType->TargetSOC_isUsed == 1u ) {
- errn = encodeNBitUnsignedInteger(stream, 3, 3);
- if(errn == 0) {
- /* FirstStartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- if(errn == 0) {
- errn = encodeNBitUnsignedInteger(stream, 7, (uint32_t)(v2gDC_EVChargeParameterType->TargetSOC - 0));
- /* valid EE */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- }
- }
- grammarID = 2821;
- } else if ( v2gDC_EVChargeParameterType->BulkSOC_isUsed == 1u ) {
- errn = encodeNBitUnsignedInteger(stream, 3, 4);
- if(errn == 0) {
- /* FirstStartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- if(errn == 0) {
- errn = encodeNBitUnsignedInteger(stream, 7, (uint32_t)(v2gDC_EVChargeParameterType->BulkSOC - 0));
- /* valid EE */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- }
- }
- grammarID = 2;
- } else if (1==1) {
- errn = encodeNBitUnsignedInteger(stream, 3, 5);
- if(errn == 0) {
- done = 1;
- }
- grammarID = 3;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 2818:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}EVMinimumEnergyRequest), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}CurrentSOC), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}TargetSOC), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}BulkSOC), END_ELEMENT] */
- if ( v2gDC_EVChargeParameterType->EVMinimumEnergyRequest_isUsed == 1u ) {
- errn = encodeNBitUnsignedInteger(stream, 3, 0);
- if(errn == 0) {
- errn = encode_v2gPhysicalValueType(stream, &v2gDC_EVChargeParameterType->EVMinimumEnergyRequest );
- }
- grammarID = 2819;
- } else if ( v2gDC_EVChargeParameterType->CurrentSOC_isUsed == 1u ) {
- errn = encodeNBitUnsignedInteger(stream, 3, 1);
- if(errn == 0) {
- /* FirstStartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- if(errn == 0) {
- errn = encodeNBitUnsignedInteger(stream, 7, (uint32_t)(v2gDC_EVChargeParameterType->CurrentSOC - 0));
- /* valid EE */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- }
- }
- grammarID = 2820;
- } else if ( v2gDC_EVChargeParameterType->TargetSOC_isUsed == 1u ) {
- errn = encodeNBitUnsignedInteger(stream, 3, 2);
- if(errn == 0) {
- /* FirstStartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- if(errn == 0) {
- errn = encodeNBitUnsignedInteger(stream, 7, (uint32_t)(v2gDC_EVChargeParameterType->TargetSOC - 0));
- /* valid EE */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- }
- }
- grammarID = 2821;
- } else if ( v2gDC_EVChargeParameterType->BulkSOC_isUsed == 1u ) {
- errn = encodeNBitUnsignedInteger(stream, 3, 3);
- if(errn == 0) {
- /* FirstStartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- if(errn == 0) {
- errn = encodeNBitUnsignedInteger(stream, 7, (uint32_t)(v2gDC_EVChargeParameterType->BulkSOC - 0));
- /* valid EE */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- }
- }
- grammarID = 2;
- } else if (1==1) {
- errn = encodeNBitUnsignedInteger(stream, 3, 4);
- if(errn == 0) {
- done = 1;
- }
- grammarID = 3;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 2819:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}CurrentSOC), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}TargetSOC), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}BulkSOC), END_ELEMENT] */
- if ( v2gDC_EVChargeParameterType->CurrentSOC_isUsed == 1u ) {
- errn = encodeNBitUnsignedInteger(stream, 3, 0);
- if(errn == 0) {
- /* FirstStartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- if(errn == 0) {
- errn = encodeNBitUnsignedInteger(stream, 7, (uint32_t)(v2gDC_EVChargeParameterType->CurrentSOC - 0));
- /* valid EE */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- }
- }
- grammarID = 2820;
- } else if ( v2gDC_EVChargeParameterType->TargetSOC_isUsed == 1u ) {
- errn = encodeNBitUnsignedInteger(stream, 3, 1);
- if(errn == 0) {
- /* FirstStartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- if(errn == 0) {
- errn = encodeNBitUnsignedInteger(stream, 7, (uint32_t)(v2gDC_EVChargeParameterType->TargetSOC - 0));
- /* valid EE */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- }
- }
- grammarID = 2821;
- } else if ( v2gDC_EVChargeParameterType->BulkSOC_isUsed == 1u ) {
- errn = encodeNBitUnsignedInteger(stream, 3, 2);
- if(errn == 0) {
- /* FirstStartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- if(errn == 0) {
- errn = encodeNBitUnsignedInteger(stream, 7, (uint32_t)(v2gDC_EVChargeParameterType->BulkSOC - 0));
- /* valid EE */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- }
- }
- grammarID = 2;
- } else if (1==1) {
- errn = encodeNBitUnsignedInteger(stream, 3, 3);
- if(errn == 0) {
- done = 1;
- }
- grammarID = 3;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 2820:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}TargetSOC), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}BulkSOC), END_ELEMENT] */
- if ( v2gDC_EVChargeParameterType->TargetSOC_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, 7, (uint32_t)(v2gDC_EVChargeParameterType->TargetSOC - 0));
- /* valid EE */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- }
- }
- grammarID = 2821;
- } else if ( v2gDC_EVChargeParameterType->BulkSOC_isUsed == 1u ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- /* FirstStartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- if(errn == 0) {
- errn = encodeNBitUnsignedInteger(stream, 7, (uint32_t)(v2gDC_EVChargeParameterType->BulkSOC - 0));
- /* valid EE */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- }
- }
- grammarID = 2;
- } else if (1==1) {
- errn = encodeNBitUnsignedInteger(stream, 2, 2);
- if(errn == 0) {
- done = 1;
- }
- grammarID = 3;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 2821:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}BulkSOC), END_ELEMENT] */
- if ( v2gDC_EVChargeParameterType->BulkSOC_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, 7, (uint32_t)(v2gDC_EVChargeParameterType->BulkSOC - 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='http://www.w3.org/2000/09/xmldsig#,ReferenceType', base type name='anyType', content type='ELEMENT', isAbstract='false', hasTypeId='false', final='0', block='0', particle='("http://www.w3.org/2000/09/xmldsig#":Transforms{0-1},"http://www.w3.org/2000/09/xmldsig#":DigestMethod,"http://www.w3.org/2000/09/xmldsig#":DigestValue)', derivedBy='RESTRICTION'. */
-static int encode_v2gReferenceType(bitstream_t* stream, struct v2gReferenceType* v2gReferenceType) {
- int grammarID = 2822;
- int done = 0;
-
-
- while(!done) {
- switch(grammarID) {
- case 2822:
- /* FirstStartTag[ATTRIBUTE[STRING](Id), ATTRIBUTE[STRING](Type), ATTRIBUTE[STRING](URI), START_ELEMENT({http://www.w3.org/2000/09/xmldsig#}Transforms), START_ELEMENT({http://www.w3.org/2000/09/xmldsig#}DigestMethod)] */
- if ( v2gReferenceType->Id_isUsed == 1u ) {
- errn = encodeNBitUnsignedInteger(stream, 3, 0);
- if(errn == 0) {
- /* encode string as string table miss (+2 len)*/
- errn = encodeUnsignedInteger16(stream, (uint16_t)(v2gReferenceType->Id.charactersLen + 2));
- if (errn == 0) {
- errn = encodeCharacters(stream, v2gReferenceType->Id.characters, v2gReferenceType->Id.charactersLen);
- }
- }
- grammarID = 2823;
- } else if ( v2gReferenceType->Type_isUsed == 1u ) {
- errn = encodeNBitUnsignedInteger(stream, 3, 1);
- if(errn == 0) {
- /* encode string as string table miss (+2 len)*/
- errn = encodeUnsignedInteger16(stream, (uint16_t)(v2gReferenceType->Type.charactersLen + 2));
- if (errn == 0) {
- errn = encodeCharacters(stream, v2gReferenceType->Type.characters, v2gReferenceType->Type.charactersLen);
- }
- }
- grammarID = 2824;
- } else if ( v2gReferenceType->URI_isUsed == 1u ) {
- errn = encodeNBitUnsignedInteger(stream, 3, 2);
- if(errn == 0) {
- /* encode string as string table miss (+2 len)*/
- errn = encodeUnsignedInteger16(stream, (uint16_t)(v2gReferenceType->URI.charactersLen + 2));
- if (errn == 0) {
- errn = encodeCharacters(stream, v2gReferenceType->URI.characters, v2gReferenceType->URI.charactersLen);
- }
- }
- grammarID = 2825;
- } else if ( v2gReferenceType->Transforms_isUsed == 1u ) {
- errn = encodeNBitUnsignedInteger(stream, 3, 3);
- if(errn == 0) {
- errn = encode_v2gTransformsType(stream, &v2gReferenceType->Transforms );
- }
- grammarID = 2826;
- } else if ( 1 == 1 ) {
- errn = encodeNBitUnsignedInteger(stream, 3, 4);
- if(errn == 0) {
- errn = encode_v2gDigestMethodType(stream, &v2gReferenceType->DigestMethod );
- }
- grammarID = 2827;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 2823:
- /* StartTag[ATTRIBUTE[STRING](Type), ATTRIBUTE[STRING](URI), START_ELEMENT({http://www.w3.org/2000/09/xmldsig#}Transforms), START_ELEMENT({http://www.w3.org/2000/09/xmldsig#}DigestMethod)] */
- if ( v2gReferenceType->Type_isUsed == 1u ) {
- errn = encodeNBitUnsignedInteger(stream, 3, 0);
- if(errn == 0) {
- /* encode string as string table miss (+2 len)*/
- errn = encodeUnsignedInteger16(stream, (uint16_t)(v2gReferenceType->Type.charactersLen + 2));
- if (errn == 0) {
- errn = encodeCharacters(stream, v2gReferenceType->Type.characters, v2gReferenceType->Type.charactersLen);
- }
- }
- grammarID = 2824;
- } else if ( v2gReferenceType->URI_isUsed == 1u ) {
- errn = encodeNBitUnsignedInteger(stream, 3, 1);
- if(errn == 0) {
- /* encode string as string table miss (+2 len)*/
- errn = encodeUnsignedInteger16(stream, (uint16_t)(v2gReferenceType->URI.charactersLen + 2));
- if (errn == 0) {
- errn = encodeCharacters(stream, v2gReferenceType->URI.characters, v2gReferenceType->URI.charactersLen);
- }
- }
- grammarID = 2825;
- } else if ( v2gReferenceType->Transforms_isUsed == 1u ) {
- errn = encodeNBitUnsignedInteger(stream, 3, 2);
- if(errn == 0) {
- errn = encode_v2gTransformsType(stream, &v2gReferenceType->Transforms );
- }
- grammarID = 2826;
- } else if ( 1 == 1 ) {
- errn = encodeNBitUnsignedInteger(stream, 3, 3);
- if(errn == 0) {
- errn = encode_v2gDigestMethodType(stream, &v2gReferenceType->DigestMethod );
- }
- grammarID = 2827;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 2824:
- /* StartTag[ATTRIBUTE[STRING](URI), START_ELEMENT({http://www.w3.org/2000/09/xmldsig#}Transforms), START_ELEMENT({http://www.w3.org/2000/09/xmldsig#}DigestMethod)] */
- if ( v2gReferenceType->URI_isUsed == 1u ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- /* encode string as string table miss (+2 len)*/
- errn = encodeUnsignedInteger16(stream, (uint16_t)(v2gReferenceType->URI.charactersLen + 2));
- if (errn == 0) {
- errn = encodeCharacters(stream, v2gReferenceType->URI.characters, v2gReferenceType->URI.charactersLen);
- }
- }
- grammarID = 2825;
- } else if ( v2gReferenceType->Transforms_isUsed == 1u ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- errn = encode_v2gTransformsType(stream, &v2gReferenceType->Transforms );
- }
- grammarID = 2826;
- } else if ( 1 == 1 ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 2);
- if(errn == 0) {
- errn = encode_v2gDigestMethodType(stream, &v2gReferenceType->DigestMethod );
- }
- grammarID = 2827;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 2825:
- /* StartTag[START_ELEMENT({http://www.w3.org/2000/09/xmldsig#}Transforms), START_ELEMENT({http://www.w3.org/2000/09/xmldsig#}DigestMethod)] */
- if ( v2gReferenceType->Transforms_isUsed == 1u ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- errn = encode_v2gTransformsType(stream, &v2gReferenceType->Transforms );
- }
- grammarID = 2826;
- } else if ( 1 == 1 ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- errn = encode_v2gDigestMethodType(stream, &v2gReferenceType->DigestMethod );
- }
- grammarID = 2827;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 2826:
- /* Element[START_ELEMENT({http://www.w3.org/2000/09/xmldsig#}DigestMethod)] */
- if ( 1 == 1 ) {
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- if(errn == 0) {
- errn = encode_v2gDigestMethodType(stream, &v2gReferenceType->DigestMethod );
- }
- grammarID = 2827;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 2827:
- /* Element[START_ELEMENT({http://www.w3.org/2000/09/xmldsig#}DigestValue)] */
- if ( 1 == 1 ) {
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- if(errn == 0) {
- /* FirstStartTag[CHARACTERS[BINARY_BASE64]] */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- if(errn == 0) {
- errn = encodeUnsignedInteger16(stream, (uint16_t)(v2gReferenceType->DigestValue.bytesLen));
- if (errn == 0) {
- errn = encodeBytes(stream, v2gReferenceType->DigestValue.bytes, v2gReferenceType->DigestValue.bytesLen);
- }
- /* valid EE */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- }
- }
- grammarID = 2;
- } 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:2016:MsgBody,ServiceDetailReqType', base type name='BodyBaseType', content type='ELEMENT', isAbstract='false', hasTypeId='false', final='0', block='0', particle='("urn:iso:15118:2:2016:MsgBody":ServiceID)', derivedBy='EXTENSION'. */
-static int encode_v2gServiceDetailReqType(bitstream_t* stream, struct v2gServiceDetailReqType* v2gServiceDetailReqType) {
- int grammarID = 2828;
- int done = 0;
-
-
- while(!done) {
- switch(grammarID) {
- case 2828:
- /* FirstStartTag[START_ELEMENT({urn:iso:15118:2:2016:MsgBody}ServiceID)] */
- if ( 1 == 1 ) {
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- if(errn == 0) {
- /* FirstStartTag[CHARACTERS[UNSIGNED_INTEGER]] */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- if(errn == 0) {
- errn = encodeUnsignedInteger16(stream, v2gServiceDetailReqType->ServiceID);
- /* valid EE */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- }
- }
- grammarID = 2;
- } 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:2016:MsgDataTypes,PaymentOptionListType', base type name='anyType', content type='ELEMENT', isAbstract='false', hasTypeId='false', final='0', block='0', particle='("urn:iso:15118:2:2016:MsgDataTypes":PaymentOption{1-2})', derivedBy='RESTRICTION'. */
-static int encode_v2gPaymentOptionListType(bitstream_t* stream, struct v2gPaymentOptionListType* v2gPaymentOptionListType) {
- int grammarID = 2829;
- int done = 0;
-
- unsigned int v2gPaymentOptionListType_PaymentOption_currArrayIndex = 0;
-
- while(!done) {
- switch(grammarID) {
- case 2829:
- /* FirstStartTag[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}PaymentOption)] */
- if (v2gPaymentOptionListType_PaymentOption_currArrayIndex < v2gPaymentOptionListType->PaymentOption.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- if(errn == 0) {
- /* FirstStartTag[CHARACTERS[ENUMERATION]] */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- if(errn == 0) {
- errn = encodeNBitUnsignedInteger(stream, 1, v2gPaymentOptionListType->PaymentOption.array[v2gPaymentOptionListType_PaymentOption_currArrayIndex++]);
- /* valid EE */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- }
- }
- grammarID = 2830;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 2830:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}PaymentOption), END_ELEMENT] */
- if (v2gPaymentOptionListType_PaymentOption_currArrayIndex < v2gPaymentOptionListType->PaymentOption.arrayLen ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- /* FirstStartTag[CHARACTERS[ENUMERATION]] */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- if(errn == 0) {
- errn = encodeNBitUnsignedInteger(stream, 1, v2gPaymentOptionListType->PaymentOption.array[v2gPaymentOptionListType_PaymentOption_currArrayIndex++]);
- /* 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:2016:MsgBody,CurrentDemandResType', base type name='V2GResponseType', content type='ELEMENT', isAbstract='false', hasTypeId='false', final='0', block='0', particle='(("urn:iso:15118:2:2016:MsgBody":ResponseCode,"urn:iso:15118:2:2016:MsgBody":EVSEStatus{0-1}),("urn:iso:15118:2:2016:MsgBody":EVSEPresentCurrent,"urn:iso:15118:2:2016:MsgBody":EVSEPresentVoltage,"urn:iso:15118:2:2016:MsgBody":EVSEPowerLimitAchieved,"urn:iso:15118:2:2016:MsgBody":EVSECurrentLimitAchieved,"urn:iso:15118:2:2016:MsgBody":EVSEVoltageLimitAchieved,"urn:iso:15118:2:2016:MsgBody":EVSEMaximumPower{0-1},"urn:iso:15118:2:2016:MsgBody":EVSEMaximumCurrent{0-1},"urn:iso:15118:2:2016:MsgBody":EVSEMaximumVoltage{0-1},"urn:iso:15118:2:2016:MsgBody":EVSEID,"urn:iso:15118:2:2016:MsgBody":SAScheduleTupleID{0-1},"urn:iso:15118:2:2016:MsgBody":MeterInfo{0-1},"urn:iso:15118:2:2016:MsgBody":ReceiptRequired{0-1}))', derivedBy='EXTENSION'. */
-static int encode_v2gCurrentDemandResType(bitstream_t* stream, struct v2gCurrentDemandResType* v2gCurrentDemandResType) {
- int grammarID = 2831;
- int done = 0;
-
-
- while(!done) {
- switch(grammarID) {
- case 2831:
- /* FirstStartTag[START_ELEMENT({urn:iso:15118:2:2016:MsgBody}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, 5, v2gCurrentDemandResType->ResponseCode);
- /* valid EE */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- }
- }
- grammarID = 2832;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 2832:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgBody}EVSEStatus), START_ELEMENT({urn:iso:15118:2:2016:MsgBody}EVSEPresentCurrent)] */
- if ( v2gCurrentDemandResType->EVSEStatus_isUsed == 1u ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- errn = encode_v2gEVSEStatusType(stream, &v2gCurrentDemandResType->EVSEStatus );
- }
- grammarID = 2833;
- } else if ( 1 == 1 ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- errn = encode_v2gPhysicalValueType(stream, &v2gCurrentDemandResType->EVSEPresentCurrent );
- }
- grammarID = 2834;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 2833:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgBody}EVSEPresentCurrent)] */
- if ( 1 == 1 ) {
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- if(errn == 0) {
- errn = encode_v2gPhysicalValueType(stream, &v2gCurrentDemandResType->EVSEPresentCurrent );
- }
- grammarID = 2834;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 2834:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgBody}EVSEPresentVoltage)] */
- if ( 1 == 1 ) {
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- if(errn == 0) {
- errn = encode_v2gPhysicalValueType(stream, &v2gCurrentDemandResType->EVSEPresentVoltage );
- }
- grammarID = 2835;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 2835:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgBody}EVSEPowerLimitAchieved)] */
- if ( 1 == 1 ) {
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- if(errn == 0) {
- /* FirstStartTag[CHARACTERS[BOOLEAN]] */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- if(errn == 0) {
- errn = encodeBoolean(stream, v2gCurrentDemandResType->EVSEPowerLimitAchieved);
- /* valid EE */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- }
- }
- grammarID = 2836;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 2836:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgBody}EVSECurrentLimitAchieved)] */
- if ( 1 == 1 ) {
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- if(errn == 0) {
- /* FirstStartTag[CHARACTERS[BOOLEAN]] */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- if(errn == 0) {
- errn = encodeBoolean(stream, v2gCurrentDemandResType->EVSECurrentLimitAchieved);
- /* valid EE */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- }
- }
- grammarID = 2837;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 2837:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgBody}EVSEVoltageLimitAchieved)] */
- if ( 1 == 1 ) {
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- if(errn == 0) {
- /* FirstStartTag[CHARACTERS[BOOLEAN]] */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- if(errn == 0) {
- errn = encodeBoolean(stream, v2gCurrentDemandResType->EVSEVoltageLimitAchieved);
- /* valid EE */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- }
- }
- grammarID = 2838;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 2838:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgBody}EVSEMaximumPower), START_ELEMENT({urn:iso:15118:2:2016:MsgBody}EVSEMaximumCurrent), START_ELEMENT({urn:iso:15118:2:2016:MsgBody}EVSEMaximumVoltage), START_ELEMENT({urn:iso:15118:2:2016:MsgBody}EVSEID)] */
- if ( v2gCurrentDemandResType->EVSEMaximumPower_isUsed == 1u ) {
- errn = encodeNBitUnsignedInteger(stream, 3, 0);
- if(errn == 0) {
- errn = encode_v2gPhysicalValueType(stream, &v2gCurrentDemandResType->EVSEMaximumPower );
- }
- grammarID = 2839;
- } else if ( v2gCurrentDemandResType->EVSEMaximumCurrent_isUsed == 1u ) {
- errn = encodeNBitUnsignedInteger(stream, 3, 1);
- if(errn == 0) {
- errn = encode_v2gPhysicalValueType(stream, &v2gCurrentDemandResType->EVSEMaximumCurrent );
- }
- grammarID = 2840;
- } else if ( v2gCurrentDemandResType->EVSEMaximumVoltage_isUsed == 1u ) {
- errn = encodeNBitUnsignedInteger(stream, 3, 2);
- if(errn == 0) {
- errn = encode_v2gPhysicalValueType(stream, &v2gCurrentDemandResType->EVSEMaximumVoltage );
- }
- grammarID = 1509;
- } else if ( 1 == 1 ) {
- errn = encodeNBitUnsignedInteger(stream, 3, 3);
- if(errn == 0) {
- /* FirstStartTag[CHARACTERS[STRING]] */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- if(errn == 0) {
- /* encode string as string table miss (+2 len)*/
- errn = encodeUnsignedInteger16(stream, (uint16_t)(v2gCurrentDemandResType->EVSEID.charactersLen + 2));
- if (errn == 0) {
- errn = encodeCharacters(stream, v2gCurrentDemandResType->EVSEID.characters, v2gCurrentDemandResType->EVSEID.charactersLen);
- }
- /* valid EE */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- }
- }
- grammarID = 1510;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 2839:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgBody}EVSEMaximumCurrent), START_ELEMENT({urn:iso:15118:2:2016:MsgBody}EVSEMaximumVoltage), START_ELEMENT({urn:iso:15118:2:2016:MsgBody}EVSEID)] */
- if ( v2gCurrentDemandResType->EVSEMaximumCurrent_isUsed == 1u ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- errn = encode_v2gPhysicalValueType(stream, &v2gCurrentDemandResType->EVSEMaximumCurrent );
- }
- grammarID = 2840;
- } else if ( v2gCurrentDemandResType->EVSEMaximumVoltage_isUsed == 1u ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- errn = encode_v2gPhysicalValueType(stream, &v2gCurrentDemandResType->EVSEMaximumVoltage );
- }
- grammarID = 1509;
- } else if ( 1 == 1 ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 2);
- if(errn == 0) {
- /* FirstStartTag[CHARACTERS[STRING]] */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- if(errn == 0) {
- /* encode string as string table miss (+2 len)*/
- errn = encodeUnsignedInteger16(stream, (uint16_t)(v2gCurrentDemandResType->EVSEID.charactersLen + 2));
- if (errn == 0) {
- errn = encodeCharacters(stream, v2gCurrentDemandResType->EVSEID.characters, v2gCurrentDemandResType->EVSEID.charactersLen);
- }
- /* valid EE */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- }
- }
- grammarID = 1510;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 2840:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgBody}EVSEMaximumVoltage), START_ELEMENT({urn:iso:15118:2:2016:MsgBody}EVSEID)] */
- if ( v2gCurrentDemandResType->EVSEMaximumVoltage_isUsed == 1u ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- errn = encode_v2gPhysicalValueType(stream, &v2gCurrentDemandResType->EVSEMaximumVoltage );
- }
- grammarID = 1509;
- } else if ( 1 == 1 ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- /* FirstStartTag[CHARACTERS[STRING]] */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- if(errn == 0) {
- /* encode string as string table miss (+2 len)*/
- errn = encodeUnsignedInteger16(stream, (uint16_t)(v2gCurrentDemandResType->EVSEID.charactersLen + 2));
- if (errn == 0) {
- errn = encodeCharacters(stream, v2gCurrentDemandResType->EVSEID.characters, v2gCurrentDemandResType->EVSEID.charactersLen);
- }
- /* valid EE */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- }
- }
- grammarID = 1510;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 1509:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgBody}EVSEID)] */
- if ( 1 == 1 ) {
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- if(errn == 0) {
- /* FirstStartTag[CHARACTERS[STRING]] */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- if(errn == 0) {
- /* encode string as string table miss (+2 len)*/
- errn = encodeUnsignedInteger16(stream, (uint16_t)(v2gCurrentDemandResType->EVSEID.charactersLen + 2));
- if (errn == 0) {
- errn = encodeCharacters(stream, v2gCurrentDemandResType->EVSEID.characters, v2gCurrentDemandResType->EVSEID.charactersLen);
- }
- /* valid EE */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- }
- }
- grammarID = 1510;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 1510:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgBody}SAScheduleTupleID), START_ELEMENT({urn:iso:15118:2:2016:MsgBody}MeterInfo), START_ELEMENT({urn:iso:15118:2:2016:MsgBody}ReceiptRequired), END_ELEMENT] */
- if ( v2gCurrentDemandResType->SAScheduleTupleID_isUsed == 1u ) {
- errn = encodeNBitUnsignedInteger(stream, 3, 0);
- if(errn == 0) {
- /* FirstStartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- if(errn == 0) {
- errn = encodeNBitUnsignedInteger(stream, 8, (uint32_t)(v2gCurrentDemandResType->SAScheduleTupleID - 1));
- /* valid EE */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- }
- }
- grammarID = 1511;
- } else if ( v2gCurrentDemandResType->MeterInfo_isUsed == 1u ) {
- errn = encodeNBitUnsignedInteger(stream, 3, 1);
- if(errn == 0) {
- errn = encode_v2gMeterInfoType(stream, &v2gCurrentDemandResType->MeterInfo );
- }
- grammarID = 1512;
- } else if ( v2gCurrentDemandResType->ReceiptRequired_isUsed == 1u ) {
- errn = encodeNBitUnsignedInteger(stream, 3, 2);
- if(errn == 0) {
- /* FirstStartTag[CHARACTERS[BOOLEAN]] */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- if(errn == 0) {
- errn = encodeBoolean(stream, v2gCurrentDemandResType->ReceiptRequired);
- /* valid EE */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- }
- }
- grammarID = 2;
- } else if (1==1) {
- errn = encodeNBitUnsignedInteger(stream, 3, 3);
- if(errn == 0) {
- done = 1;
- }
- grammarID = 3;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 1511:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgBody}MeterInfo), START_ELEMENT({urn:iso:15118:2:2016:MsgBody}ReceiptRequired), END_ELEMENT] */
- if ( v2gCurrentDemandResType->MeterInfo_isUsed == 1u ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- errn = encode_v2gMeterInfoType(stream, &v2gCurrentDemandResType->MeterInfo );
- }
- grammarID = 1512;
- } else if ( v2gCurrentDemandResType->ReceiptRequired_isUsed == 1u ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 1);
- if(errn == 0) {
- /* FirstStartTag[CHARACTERS[BOOLEAN]] */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- if(errn == 0) {
- errn = encodeBoolean(stream, v2gCurrentDemandResType->ReceiptRequired);
- /* valid EE */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- }
- }
- grammarID = 2;
- } else if (1==1) {
- errn = encodeNBitUnsignedInteger(stream, 2, 2);
- if(errn == 0) {
- done = 1;
- }
- grammarID = 3;
- } else {
- errn = EXI_ERROR_UNKOWN_EVENT;
- }
- break;
- case 1512:
- /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgBody}ReceiptRequired), END_ELEMENT] */
- if ( v2gCurrentDemandResType->ReceiptRequired_isUsed == 1u ) {
- errn = encodeNBitUnsignedInteger(stream, 2, 0);
- if(errn == 0) {
- /* FirstStartTag[CHARACTERS[BOOLEAN]] */
- errn = encodeNBitUnsignedInteger(stream, 1, 0);
- if(errn == 0) {
- errn = encodeBoolean(stream, v2gCurrentDemandResType->ReceiptRequired);
- /* 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;
+ grammarID = 4;
} else {
errn = EXI_ERROR_UNKOWN_EVENT;
}
@@ -67081,14 +753,14 @@ static int encode_v2gCurrentDemandResType(bitstream_t* stream, struct v2gCurrent
}
/* Complex type name='urn:iso:15118:2:2016:MsgBody,DC_BidirectionalControlResType', base type name='V2GResponseType', content type='ELEMENT', isAbstract='false', hasTypeId='false', final='0', block='0', particle='(("urn:iso:15118:2:2016:MsgBody":ResponseCode,"urn:iso:15118:2:2016:MsgBody":EVSEStatus{0-1}),("urn:iso:15118:2:2016:MsgBody":EVSEPresentCurrent,"urn:iso:15118:2:2016:MsgBody":EVSEPresentVoltage,"urn:iso:15118:2:2016:MsgBody":EVSEPowerLimitAchieved,"urn:iso:15118:2:2016:MsgBody":EVSECurrentLimitAchieved,"urn:iso:15118:2:2016:MsgBody":EVSEVoltageLimitAchieved,"urn:iso:15118:2:2016:MsgBody":EVSEMaximumChargePower{0-1},"urn:iso:15118:2:2016:MsgBody":EVSEMaximumDischargePower{0-1},"urn:iso:15118:2:2016:MsgBody":EVSEMaximumChargeCurrent{0-1},"urn:iso:15118:2:2016:MsgBody":EVSEMaximumDischargeCurrent{0-1},"urn:iso:15118:2:2016:MsgBody":EVSEMaximumVoltage{0-1},"urn:iso:15118:2:2016:MsgBody":EVSEMinimumVoltage{0-1},"urn:iso:15118:2:2016:MsgBody":EVSEID,"urn:iso:15118:2:2016:MsgBody":SAScheduleTupleID{0-1},"urn:iso:15118:2:2016:MsgBody":MeterInfo{0-1},"urn:iso:15118:2:2016:MsgBody":ReceiptRequired{0-1}))', derivedBy='EXTENSION'. */
-static int encode_v2gDC_BidirectionalControlResType(bitstream_t* stream, struct v2gDC_BidirectionalControlResType* v2gDC_BidirectionalControlResType) {
- int grammarID = 2841;
+static int encode_iso2DC_BidirectionalControlResType(bitstream_t* stream, struct iso2DC_BidirectionalControlResType* iso2DC_BidirectionalControlResType) {
+ int grammarID = 14;
int done = 0;
while(!done) {
switch(grammarID) {
- case 2841:
+ case 14:
/* FirstStartTag[START_ELEMENT({urn:iso:15118:2:2016:MsgBody}ResponseCode)] */
if ( 1 == 1 ) {
errn = encodeNBitUnsignedInteger(stream, 1, 0);
@@ -67096,59 +768,59 @@ static int encode_v2gDC_BidirectionalControlResType(bitstream_t* stream, struct
/* FirstStartTag[CHARACTERS[ENUMERATION]] */
errn = encodeNBitUnsignedInteger(stream, 1, 0);
if(errn == 0) {
- errn = encodeNBitUnsignedInteger(stream, 5, v2gDC_BidirectionalControlResType->ResponseCode);
+ errn = encodeNBitUnsignedInteger(stream, 5, iso2DC_BidirectionalControlResType->ResponseCode);
/* valid EE */
errn = encodeNBitUnsignedInteger(stream, 1, 0);
}
}
- grammarID = 2842;
+ grammarID = 15;
} else {
errn = EXI_ERROR_UNKOWN_EVENT;
}
break;
- case 2842:
+ case 15:
/* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgBody}EVSEStatus), START_ELEMENT({urn:iso:15118:2:2016:MsgBody}EVSEPresentCurrent)] */
- if ( v2gDC_BidirectionalControlResType->EVSEStatus_isUsed == 1u ) {
+ if ( iso2DC_BidirectionalControlResType->EVSEStatus_isUsed == 1u ) {
errn = encodeNBitUnsignedInteger(stream, 2, 0);
if(errn == 0) {
- errn = encode_v2gEVSEStatusType(stream, &v2gDC_BidirectionalControlResType->EVSEStatus );
+ errn = encode_iso2EVSEStatusType(stream, &iso2DC_BidirectionalControlResType->EVSEStatus );
}
- grammarID = 2843;
+ grammarID = 16;
} else if ( 1 == 1 ) {
errn = encodeNBitUnsignedInteger(stream, 2, 1);
if(errn == 0) {
- errn = encode_v2gPhysicalValueType(stream, &v2gDC_BidirectionalControlResType->EVSEPresentCurrent );
+ errn = encode_iso2PhysicalValueType(stream, &iso2DC_BidirectionalControlResType->EVSEPresentCurrent );
}
- grammarID = 2844;
+ grammarID = 17;
} else {
errn = EXI_ERROR_UNKOWN_EVENT;
}
break;
- case 2843:
+ case 16:
/* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgBody}EVSEPresentCurrent)] */
if ( 1 == 1 ) {
errn = encodeNBitUnsignedInteger(stream, 1, 0);
if(errn == 0) {
- errn = encode_v2gPhysicalValueType(stream, &v2gDC_BidirectionalControlResType->EVSEPresentCurrent );
+ errn = encode_iso2PhysicalValueType(stream, &iso2DC_BidirectionalControlResType->EVSEPresentCurrent );
}
- grammarID = 2844;
+ grammarID = 17;
} else {
errn = EXI_ERROR_UNKOWN_EVENT;
}
break;
- case 2844:
+ case 17:
/* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgBody}EVSEPresentVoltage)] */
if ( 1 == 1 ) {
errn = encodeNBitUnsignedInteger(stream, 1, 0);
if(errn == 0) {
- errn = encode_v2gPhysicalValueType(stream, &v2gDC_BidirectionalControlResType->EVSEPresentVoltage );
+ errn = encode_iso2PhysicalValueType(stream, &iso2DC_BidirectionalControlResType->EVSEPresentVoltage );
}
- grammarID = 2845;
+ grammarID = 18;
} else {
errn = EXI_ERROR_UNKOWN_EVENT;
}
break;
- case 2845:
+ case 18:
/* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgBody}EVSEPowerLimitAchieved)] */
if ( 1 == 1 ) {
errn = encodeNBitUnsignedInteger(stream, 1, 0);
@@ -67156,17 +828,17 @@ static int encode_v2gDC_BidirectionalControlResType(bitstream_t* stream, struct
/* FirstStartTag[CHARACTERS[BOOLEAN]] */
errn = encodeNBitUnsignedInteger(stream, 1, 0);
if(errn == 0) {
- errn = encodeBoolean(stream, v2gDC_BidirectionalControlResType->EVSEPowerLimitAchieved);
+ errn = encodeBoolean(stream, iso2DC_BidirectionalControlResType->EVSEPowerLimitAchieved);
/* valid EE */
errn = encodeNBitUnsignedInteger(stream, 1, 0);
}
}
- grammarID = 2846;
+ grammarID = 19;
} else {
errn = EXI_ERROR_UNKOWN_EVENT;
}
break;
- case 2846:
+ case 19:
/* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgBody}EVSECurrentLimitAchieved)] */
if ( 1 == 1 ) {
errn = encodeNBitUnsignedInteger(stream, 1, 0);
@@ -67174,17 +846,17 @@ static int encode_v2gDC_BidirectionalControlResType(bitstream_t* stream, struct
/* FirstStartTag[CHARACTERS[BOOLEAN]] */
errn = encodeNBitUnsignedInteger(stream, 1, 0);
if(errn == 0) {
- errn = encodeBoolean(stream, v2gDC_BidirectionalControlResType->EVSECurrentLimitAchieved);
+ errn = encodeBoolean(stream, iso2DC_BidirectionalControlResType->EVSECurrentLimitAchieved);
/* valid EE */
errn = encodeNBitUnsignedInteger(stream, 1, 0);
}
}
- grammarID = 2847;
+ grammarID = 20;
} else {
errn = EXI_ERROR_UNKOWN_EVENT;
}
break;
- case 2847:
+ case 20:
/* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgBody}EVSEVoltageLimitAchieved)] */
if ( 1 == 1 ) {
errn = encodeNBitUnsignedInteger(stream, 1, 0);
@@ -67192,54 +864,54 @@ static int encode_v2gDC_BidirectionalControlResType(bitstream_t* stream, struct
/* FirstStartTag[CHARACTERS[BOOLEAN]] */
errn = encodeNBitUnsignedInteger(stream, 1, 0);
if(errn == 0) {
- errn = encodeBoolean(stream, v2gDC_BidirectionalControlResType->EVSEVoltageLimitAchieved);
+ errn = encodeBoolean(stream, iso2DC_BidirectionalControlResType->EVSEVoltageLimitAchieved);
/* valid EE */
errn = encodeNBitUnsignedInteger(stream, 1, 0);
}
}
- grammarID = 2848;
+ grammarID = 21;
} else {
errn = EXI_ERROR_UNKOWN_EVENT;
}
break;
- case 2848:
+ case 21:
/* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgBody}EVSEMaximumChargePower), START_ELEMENT({urn:iso:15118:2:2016:MsgBody}EVSEMaximumDischargePower), START_ELEMENT({urn:iso:15118:2:2016:MsgBody}EVSEMaximumChargeCurrent), START_ELEMENT({urn:iso:15118:2:2016:MsgBody}EVSEMaximumDischargeCurrent), START_ELEMENT({urn:iso:15118:2:2016:MsgBody}EVSEMaximumVoltage), START_ELEMENT({urn:iso:15118:2:2016:MsgBody}EVSEMinimumVoltage), START_ELEMENT({urn:iso:15118:2:2016:MsgBody}EVSEID)] */
- if ( v2gDC_BidirectionalControlResType->EVSEMaximumChargePower_isUsed == 1u ) {
+ if ( iso2DC_BidirectionalControlResType->EVSEMaximumChargePower_isUsed == 1u ) {
errn = encodeNBitUnsignedInteger(stream, 3, 0);
if(errn == 0) {
- errn = encode_v2gPhysicalValueType(stream, &v2gDC_BidirectionalControlResType->EVSEMaximumChargePower );
+ errn = encode_iso2PhysicalValueType(stream, &iso2DC_BidirectionalControlResType->EVSEMaximumChargePower );
}
- grammarID = 2849;
- } else if ( v2gDC_BidirectionalControlResType->EVSEMaximumDischargePower_isUsed == 1u ) {
+ grammarID = 22;
+ } else if ( iso2DC_BidirectionalControlResType->EVSEMaximumDischargePower_isUsed == 1u ) {
errn = encodeNBitUnsignedInteger(stream, 3, 1);
if(errn == 0) {
- errn = encode_v2gPhysicalValueType(stream, &v2gDC_BidirectionalControlResType->EVSEMaximumDischargePower );
+ errn = encode_iso2PhysicalValueType(stream, &iso2DC_BidirectionalControlResType->EVSEMaximumDischargePower );
}
- grammarID = 2850;
- } else if ( v2gDC_BidirectionalControlResType->EVSEMaximumChargeCurrent_isUsed == 1u ) {
+ grammarID = 23;
+ } else if ( iso2DC_BidirectionalControlResType->EVSEMaximumChargeCurrent_isUsed == 1u ) {
errn = encodeNBitUnsignedInteger(stream, 3, 2);
if(errn == 0) {
- errn = encode_v2gPhysicalValueType(stream, &v2gDC_BidirectionalControlResType->EVSEMaximumChargeCurrent );
+ errn = encode_iso2PhysicalValueType(stream, &iso2DC_BidirectionalControlResType->EVSEMaximumChargeCurrent );
}
- grammarID = 2851;
- } else if ( v2gDC_BidirectionalControlResType->EVSEMaximumDischargeCurrent_isUsed == 1u ) {
+ grammarID = 24;
+ } else if ( iso2DC_BidirectionalControlResType->EVSEMaximumDischargeCurrent_isUsed == 1u ) {
errn = encodeNBitUnsignedInteger(stream, 3, 3);
if(errn == 0) {
- errn = encode_v2gPhysicalValueType(stream, &v2gDC_BidirectionalControlResType->EVSEMaximumDischargeCurrent );
+ errn = encode_iso2PhysicalValueType(stream, &iso2DC_BidirectionalControlResType->EVSEMaximumDischargeCurrent );
}
- grammarID = 2852;
- } else if ( v2gDC_BidirectionalControlResType->EVSEMaximumVoltage_isUsed == 1u ) {
+ grammarID = 25;
+ } else if ( iso2DC_BidirectionalControlResType->EVSEMaximumVoltage_isUsed == 1u ) {
errn = encodeNBitUnsignedInteger(stream, 3, 4);
if(errn == 0) {
- errn = encode_v2gPhysicalValueType(stream, &v2gDC_BidirectionalControlResType->EVSEMaximumVoltage );
+ errn = encode_iso2PhysicalValueType(stream, &iso2DC_BidirectionalControlResType->EVSEMaximumVoltage );
}
- grammarID = 2853;
- } else if ( v2gDC_BidirectionalControlResType->EVSEMinimumVoltage_isUsed == 1u ) {
+ grammarID = 26;
+ } else if ( iso2DC_BidirectionalControlResType->EVSEMinimumVoltage_isUsed == 1u ) {
errn = encodeNBitUnsignedInteger(stream, 3, 5);
if(errn == 0) {
- errn = encode_v2gPhysicalValueType(stream, &v2gDC_BidirectionalControlResType->EVSEMinimumVoltage );
+ errn = encode_iso2PhysicalValueType(stream, &iso2DC_BidirectionalControlResType->EVSEMinimumVoltage );
}
- grammarID = 1509;
+ grammarID = 27;
} else if ( 1 == 1 ) {
errn = encodeNBitUnsignedInteger(stream, 3, 6);
if(errn == 0) {
@@ -67247,51 +919,51 @@ static int encode_v2gDC_BidirectionalControlResType(bitstream_t* stream, struct
errn = encodeNBitUnsignedInteger(stream, 1, 0);
if(errn == 0) {
/* encode string as string table miss (+2 len)*/
- errn = encodeUnsignedInteger16(stream, (uint16_t)(v2gDC_BidirectionalControlResType->EVSEID.charactersLen + 2));
+ errn = encodeUnsignedInteger16(stream, (uint16_t)(iso2DC_BidirectionalControlResType->EVSEID.charactersLen + 2));
if (errn == 0) {
- errn = encodeCharacters(stream, v2gDC_BidirectionalControlResType->EVSEID.characters, v2gDC_BidirectionalControlResType->EVSEID.charactersLen);
+ errn = encodeCharacters(stream, iso2DC_BidirectionalControlResType->EVSEID.characters, iso2DC_BidirectionalControlResType->EVSEID.charactersLen);
}
/* valid EE */
errn = encodeNBitUnsignedInteger(stream, 1, 0);
}
}
- grammarID = 1510;
+ grammarID = 28;
} else {
errn = EXI_ERROR_UNKOWN_EVENT;
}
break;
- case 2849:
+ case 22:
/* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgBody}EVSEMaximumDischargePower), START_ELEMENT({urn:iso:15118:2:2016:MsgBody}EVSEMaximumChargeCurrent), START_ELEMENT({urn:iso:15118:2:2016:MsgBody}EVSEMaximumDischargeCurrent), START_ELEMENT({urn:iso:15118:2:2016:MsgBody}EVSEMaximumVoltage), START_ELEMENT({urn:iso:15118:2:2016:MsgBody}EVSEMinimumVoltage), START_ELEMENT({urn:iso:15118:2:2016:MsgBody}EVSEID)] */
- if ( v2gDC_BidirectionalControlResType->EVSEMaximumDischargePower_isUsed == 1u ) {
+ if ( iso2DC_BidirectionalControlResType->EVSEMaximumDischargePower_isUsed == 1u ) {
errn = encodeNBitUnsignedInteger(stream, 3, 0);
if(errn == 0) {
- errn = encode_v2gPhysicalValueType(stream, &v2gDC_BidirectionalControlResType->EVSEMaximumDischargePower );
+ errn = encode_iso2PhysicalValueType(stream, &iso2DC_BidirectionalControlResType->EVSEMaximumDischargePower );
}
- grammarID = 2850;
- } else if ( v2gDC_BidirectionalControlResType->EVSEMaximumChargeCurrent_isUsed == 1u ) {
+ grammarID = 23;
+ } else if ( iso2DC_BidirectionalControlResType->EVSEMaximumChargeCurrent_isUsed == 1u ) {
errn = encodeNBitUnsignedInteger(stream, 3, 1);
if(errn == 0) {
- errn = encode_v2gPhysicalValueType(stream, &v2gDC_BidirectionalControlResType->EVSEMaximumChargeCurrent );
+ errn = encode_iso2PhysicalValueType(stream, &iso2DC_BidirectionalControlResType->EVSEMaximumChargeCurrent );
}
- grammarID = 2851;
- } else if ( v2gDC_BidirectionalControlResType->EVSEMaximumDischargeCurrent_isUsed == 1u ) {
+ grammarID = 24;
+ } else if ( iso2DC_BidirectionalControlResType->EVSEMaximumDischargeCurrent_isUsed == 1u ) {
errn = encodeNBitUnsignedInteger(stream, 3, 2);
if(errn == 0) {
- errn = encode_v2gPhysicalValueType(stream, &v2gDC_BidirectionalControlResType->EVSEMaximumDischargeCurrent );
+ errn = encode_iso2PhysicalValueType(stream, &iso2DC_BidirectionalControlResType->EVSEMaximumDischargeCurrent );
}
- grammarID = 2852;
- } else if ( v2gDC_BidirectionalControlResType->EVSEMaximumVoltage_isUsed == 1u ) {
+ grammarID = 25;
+ } else if ( iso2DC_BidirectionalControlResType->EVSEMaximumVoltage_isUsed == 1u ) {
errn = encodeNBitUnsignedInteger(stream, 3, 3);
if(errn == 0) {
- errn = encode_v2gPhysicalValueType(stream, &v2gDC_BidirectionalControlResType->EVSEMaximumVoltage );
+ errn = encode_iso2PhysicalValueType(stream, &iso2DC_BidirectionalControlResType->EVSEMaximumVoltage );
}
- grammarID = 2853;
- } else if ( v2gDC_BidirectionalControlResType->EVSEMinimumVoltage_isUsed == 1u ) {
+ grammarID = 26;
+ } else if ( iso2DC_BidirectionalControlResType->EVSEMinimumVoltage_isUsed == 1u ) {
errn = encodeNBitUnsignedInteger(stream, 3, 4);
if(errn == 0) {
- errn = encode_v2gPhysicalValueType(stream, &v2gDC_BidirectionalControlResType->EVSEMinimumVoltage );
+ errn = encode_iso2PhysicalValueType(stream, &iso2DC_BidirectionalControlResType->EVSEMinimumVoltage );
}
- grammarID = 1509;
+ grammarID = 27;
} else if ( 1 == 1 ) {
errn = encodeNBitUnsignedInteger(stream, 3, 5);
if(errn == 0) {
@@ -67299,45 +971,45 @@ static int encode_v2gDC_BidirectionalControlResType(bitstream_t* stream, struct
errn = encodeNBitUnsignedInteger(stream, 1, 0);
if(errn == 0) {
/* encode string as string table miss (+2 len)*/
- errn = encodeUnsignedInteger16(stream, (uint16_t)(v2gDC_BidirectionalControlResType->EVSEID.charactersLen + 2));
+ errn = encodeUnsignedInteger16(stream, (uint16_t)(iso2DC_BidirectionalControlResType->EVSEID.charactersLen + 2));
if (errn == 0) {
- errn = encodeCharacters(stream, v2gDC_BidirectionalControlResType->EVSEID.characters, v2gDC_BidirectionalControlResType->EVSEID.charactersLen);
+ errn = encodeCharacters(stream, iso2DC_BidirectionalControlResType->EVSEID.characters, iso2DC_BidirectionalControlResType->EVSEID.charactersLen);
}
/* valid EE */
errn = encodeNBitUnsignedInteger(stream, 1, 0);
}
}
- grammarID = 1510;
+ grammarID = 28;
} else {
errn = EXI_ERROR_UNKOWN_EVENT;
}
break;
- case 2850:
+ case 23:
/* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgBody}EVSEMaximumChargeCurrent), START_ELEMENT({urn:iso:15118:2:2016:MsgBody}EVSEMaximumDischargeCurrent), START_ELEMENT({urn:iso:15118:2:2016:MsgBody}EVSEMaximumVoltage), START_ELEMENT({urn:iso:15118:2:2016:MsgBody}EVSEMinimumVoltage), START_ELEMENT({urn:iso:15118:2:2016:MsgBody}EVSEID)] */
- if ( v2gDC_BidirectionalControlResType->EVSEMaximumChargeCurrent_isUsed == 1u ) {
+ if ( iso2DC_BidirectionalControlResType->EVSEMaximumChargeCurrent_isUsed == 1u ) {
errn = encodeNBitUnsignedInteger(stream, 3, 0);
if(errn == 0) {
- errn = encode_v2gPhysicalValueType(stream, &v2gDC_BidirectionalControlResType->EVSEMaximumChargeCurrent );
+ errn = encode_iso2PhysicalValueType(stream, &iso2DC_BidirectionalControlResType->EVSEMaximumChargeCurrent );
}
- grammarID = 2851;
- } else if ( v2gDC_BidirectionalControlResType->EVSEMaximumDischargeCurrent_isUsed == 1u ) {
+ grammarID = 24;
+ } else if ( iso2DC_BidirectionalControlResType->EVSEMaximumDischargeCurrent_isUsed == 1u ) {
errn = encodeNBitUnsignedInteger(stream, 3, 1);
if(errn == 0) {
- errn = encode_v2gPhysicalValueType(stream, &v2gDC_BidirectionalControlResType->EVSEMaximumDischargeCurrent );
+ errn = encode_iso2PhysicalValueType(stream, &iso2DC_BidirectionalControlResType->EVSEMaximumDischargeCurrent );
}
- grammarID = 2852;
- } else if ( v2gDC_BidirectionalControlResType->EVSEMaximumVoltage_isUsed == 1u ) {
+ grammarID = 25;
+ } else if ( iso2DC_BidirectionalControlResType->EVSEMaximumVoltage_isUsed == 1u ) {
errn = encodeNBitUnsignedInteger(stream, 3, 2);
if(errn == 0) {
- errn = encode_v2gPhysicalValueType(stream, &v2gDC_BidirectionalControlResType->EVSEMaximumVoltage );
+ errn = encode_iso2PhysicalValueType(stream, &iso2DC_BidirectionalControlResType->EVSEMaximumVoltage );
}
- grammarID = 2853;
- } else if ( v2gDC_BidirectionalControlResType->EVSEMinimumVoltage_isUsed == 1u ) {
+ grammarID = 26;
+ } else if ( iso2DC_BidirectionalControlResType->EVSEMinimumVoltage_isUsed == 1u ) {
errn = encodeNBitUnsignedInteger(stream, 3, 3);
if(errn == 0) {
- errn = encode_v2gPhysicalValueType(stream, &v2gDC_BidirectionalControlResType->EVSEMinimumVoltage );
+ errn = encode_iso2PhysicalValueType(stream, &iso2DC_BidirectionalControlResType->EVSEMinimumVoltage );
}
- grammarID = 1509;
+ grammarID = 27;
} else if ( 1 == 1 ) {
errn = encodeNBitUnsignedInteger(stream, 3, 4);
if(errn == 0) {
@@ -67345,39 +1017,39 @@ static int encode_v2gDC_BidirectionalControlResType(bitstream_t* stream, struct
errn = encodeNBitUnsignedInteger(stream, 1, 0);
if(errn == 0) {
/* encode string as string table miss (+2 len)*/
- errn = encodeUnsignedInteger16(stream, (uint16_t)(v2gDC_BidirectionalControlResType->EVSEID.charactersLen + 2));
+ errn = encodeUnsignedInteger16(stream, (uint16_t)(iso2DC_BidirectionalControlResType->EVSEID.charactersLen + 2));
if (errn == 0) {
- errn = encodeCharacters(stream, v2gDC_BidirectionalControlResType->EVSEID.characters, v2gDC_BidirectionalControlResType->EVSEID.charactersLen);
+ errn = encodeCharacters(stream, iso2DC_BidirectionalControlResType->EVSEID.characters, iso2DC_BidirectionalControlResType->EVSEID.charactersLen);
}
/* valid EE */
errn = encodeNBitUnsignedInteger(stream, 1, 0);
}
}
- grammarID = 1510;
+ grammarID = 28;
} else {
errn = EXI_ERROR_UNKOWN_EVENT;
}
break;
- case 2851:
+ case 24:
/* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgBody}EVSEMaximumDischargeCurrent), START_ELEMENT({urn:iso:15118:2:2016:MsgBody}EVSEMaximumVoltage), START_ELEMENT({urn:iso:15118:2:2016:MsgBody}EVSEMinimumVoltage), START_ELEMENT({urn:iso:15118:2:2016:MsgBody}EVSEID)] */
- if ( v2gDC_BidirectionalControlResType->EVSEMaximumDischargeCurrent_isUsed == 1u ) {
+ if ( iso2DC_BidirectionalControlResType->EVSEMaximumDischargeCurrent_isUsed == 1u ) {
errn = encodeNBitUnsignedInteger(stream, 3, 0);
if(errn == 0) {
- errn = encode_v2gPhysicalValueType(stream, &v2gDC_BidirectionalControlResType->EVSEMaximumDischargeCurrent );
+ errn = encode_iso2PhysicalValueType(stream, &iso2DC_BidirectionalControlResType->EVSEMaximumDischargeCurrent );
}
- grammarID = 2852;
- } else if ( v2gDC_BidirectionalControlResType->EVSEMaximumVoltage_isUsed == 1u ) {
+ grammarID = 25;
+ } else if ( iso2DC_BidirectionalControlResType->EVSEMaximumVoltage_isUsed == 1u ) {
errn = encodeNBitUnsignedInteger(stream, 3, 1);
if(errn == 0) {
- errn = encode_v2gPhysicalValueType(stream, &v2gDC_BidirectionalControlResType->EVSEMaximumVoltage );
+ errn = encode_iso2PhysicalValueType(stream, &iso2DC_BidirectionalControlResType->EVSEMaximumVoltage );
}
- grammarID = 2853;
- } else if ( v2gDC_BidirectionalControlResType->EVSEMinimumVoltage_isUsed == 1u ) {
+ grammarID = 26;
+ } else if ( iso2DC_BidirectionalControlResType->EVSEMinimumVoltage_isUsed == 1u ) {
errn = encodeNBitUnsignedInteger(stream, 3, 2);
if(errn == 0) {
- errn = encode_v2gPhysicalValueType(stream, &v2gDC_BidirectionalControlResType->EVSEMinimumVoltage );
+ errn = encode_iso2PhysicalValueType(stream, &iso2DC_BidirectionalControlResType->EVSEMinimumVoltage );
}
- grammarID = 1509;
+ grammarID = 27;
} else if ( 1 == 1 ) {
errn = encodeNBitUnsignedInteger(stream, 3, 3);
if(errn == 0) {
@@ -67385,33 +1057,33 @@ static int encode_v2gDC_BidirectionalControlResType(bitstream_t* stream, struct
errn = encodeNBitUnsignedInteger(stream, 1, 0);
if(errn == 0) {
/* encode string as string table miss (+2 len)*/
- errn = encodeUnsignedInteger16(stream, (uint16_t)(v2gDC_BidirectionalControlResType->EVSEID.charactersLen + 2));
+ errn = encodeUnsignedInteger16(stream, (uint16_t)(iso2DC_BidirectionalControlResType->EVSEID.charactersLen + 2));
if (errn == 0) {
- errn = encodeCharacters(stream, v2gDC_BidirectionalControlResType->EVSEID.characters, v2gDC_BidirectionalControlResType->EVSEID.charactersLen);
+ errn = encodeCharacters(stream, iso2DC_BidirectionalControlResType->EVSEID.characters, iso2DC_BidirectionalControlResType->EVSEID.charactersLen);
}
/* valid EE */
errn = encodeNBitUnsignedInteger(stream, 1, 0);
}
}
- grammarID = 1510;
+ grammarID = 28;
} else {
errn = EXI_ERROR_UNKOWN_EVENT;
}
break;
- case 2852:
+ case 25:
/* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgBody}EVSEMaximumVoltage), START_ELEMENT({urn:iso:15118:2:2016:MsgBody}EVSEMinimumVoltage), START_ELEMENT({urn:iso:15118:2:2016:MsgBody}EVSEID)] */
- if ( v2gDC_BidirectionalControlResType->EVSEMaximumVoltage_isUsed == 1u ) {
+ if ( iso2DC_BidirectionalControlResType->EVSEMaximumVoltage_isUsed == 1u ) {
errn = encodeNBitUnsignedInteger(stream, 2, 0);
if(errn == 0) {
- errn = encode_v2gPhysicalValueType(stream, &v2gDC_BidirectionalControlResType->EVSEMaximumVoltage );
+ errn = encode_iso2PhysicalValueType(stream, &iso2DC_BidirectionalControlResType->EVSEMaximumVoltage );
}
- grammarID = 2853;
- } else if ( v2gDC_BidirectionalControlResType->EVSEMinimumVoltage_isUsed == 1u ) {
+ grammarID = 26;
+ } else if ( iso2DC_BidirectionalControlResType->EVSEMinimumVoltage_isUsed == 1u ) {
errn = encodeNBitUnsignedInteger(stream, 2, 1);
if(errn == 0) {
- errn = encode_v2gPhysicalValueType(stream, &v2gDC_BidirectionalControlResType->EVSEMinimumVoltage );
+ errn = encode_iso2PhysicalValueType(stream, &iso2DC_BidirectionalControlResType->EVSEMinimumVoltage );
}
- grammarID = 1509;
+ grammarID = 27;
} else if ( 1 == 1 ) {
errn = encodeNBitUnsignedInteger(stream, 2, 2);
if(errn == 0) {
@@ -67419,27 +1091,27 @@ static int encode_v2gDC_BidirectionalControlResType(bitstream_t* stream, struct
errn = encodeNBitUnsignedInteger(stream, 1, 0);
if(errn == 0) {
/* encode string as string table miss (+2 len)*/
- errn = encodeUnsignedInteger16(stream, (uint16_t)(v2gDC_BidirectionalControlResType->EVSEID.charactersLen + 2));
+ errn = encodeUnsignedInteger16(stream, (uint16_t)(iso2DC_BidirectionalControlResType->EVSEID.charactersLen + 2));
if (errn == 0) {
- errn = encodeCharacters(stream, v2gDC_BidirectionalControlResType->EVSEID.characters, v2gDC_BidirectionalControlResType->EVSEID.charactersLen);
+ errn = encodeCharacters(stream, iso2DC_BidirectionalControlResType->EVSEID.characters, iso2DC_BidirectionalControlResType->EVSEID.charactersLen);
}
/* valid EE */
errn = encodeNBitUnsignedInteger(stream, 1, 0);
}
}
- grammarID = 1510;
+ grammarID = 28;
} else {
errn = EXI_ERROR_UNKOWN_EVENT;
}
break;
- case 2853:
+ case 26:
/* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgBody}EVSEMinimumVoltage), START_ELEMENT({urn:iso:15118:2:2016:MsgBody}EVSEID)] */
- if ( v2gDC_BidirectionalControlResType->EVSEMinimumVoltage_isUsed == 1u ) {
+ if ( iso2DC_BidirectionalControlResType->EVSEMinimumVoltage_isUsed == 1u ) {
errn = encodeNBitUnsignedInteger(stream, 2, 0);
if(errn == 0) {
- errn = encode_v2gPhysicalValueType(stream, &v2gDC_BidirectionalControlResType->EVSEMinimumVoltage );
+ errn = encode_iso2PhysicalValueType(stream, &iso2DC_BidirectionalControlResType->EVSEMinimumVoltage );
}
- grammarID = 1509;
+ grammarID = 27;
} else if ( 1 == 1 ) {
errn = encodeNBitUnsignedInteger(stream, 2, 1);
if(errn == 0) {
@@ -67447,20 +1119,20 @@ static int encode_v2gDC_BidirectionalControlResType(bitstream_t* stream, struct
errn = encodeNBitUnsignedInteger(stream, 1, 0);
if(errn == 0) {
/* encode string as string table miss (+2 len)*/
- errn = encodeUnsignedInteger16(stream, (uint16_t)(v2gDC_BidirectionalControlResType->EVSEID.charactersLen + 2));
+ errn = encodeUnsignedInteger16(stream, (uint16_t)(iso2DC_BidirectionalControlResType->EVSEID.charactersLen + 2));
if (errn == 0) {
- errn = encodeCharacters(stream, v2gDC_BidirectionalControlResType->EVSEID.characters, v2gDC_BidirectionalControlResType->EVSEID.charactersLen);
+ errn = encodeCharacters(stream, iso2DC_BidirectionalControlResType->EVSEID.characters, iso2DC_BidirectionalControlResType->EVSEID.charactersLen);
}
/* valid EE */
errn = encodeNBitUnsignedInteger(stream, 1, 0);
}
}
- grammarID = 1510;
+ grammarID = 28;
} else {
errn = EXI_ERROR_UNKOWN_EVENT;
}
break;
- case 1509:
+ case 27:
/* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgBody}EVSEID)] */
if ( 1 == 1 ) {
errn = encodeNBitUnsignedInteger(stream, 1, 0);
@@ -67469,127 +1141,31542 @@ static int encode_v2gDC_BidirectionalControlResType(bitstream_t* stream, struct
errn = encodeNBitUnsignedInteger(stream, 1, 0);
if(errn == 0) {
/* encode string as string table miss (+2 len)*/
- errn = encodeUnsignedInteger16(stream, (uint16_t)(v2gDC_BidirectionalControlResType->EVSEID.charactersLen + 2));
+ errn = encodeUnsignedInteger16(stream, (uint16_t)(iso2DC_BidirectionalControlResType->EVSEID.charactersLen + 2));
if (errn == 0) {
- errn = encodeCharacters(stream, v2gDC_BidirectionalControlResType->EVSEID.characters, v2gDC_BidirectionalControlResType->EVSEID.charactersLen);
+ errn = encodeCharacters(stream, iso2DC_BidirectionalControlResType->EVSEID.characters, iso2DC_BidirectionalControlResType->EVSEID.charactersLen);
}
/* valid EE */
errn = encodeNBitUnsignedInteger(stream, 1, 0);
}
}
- grammarID = 1510;
+ grammarID = 28;
} else {
errn = EXI_ERROR_UNKOWN_EVENT;
}
break;
- case 1510:
+ case 28:
/* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgBody}SAScheduleTupleID), START_ELEMENT({urn:iso:15118:2:2016:MsgBody}MeterInfo), START_ELEMENT({urn:iso:15118:2:2016:MsgBody}ReceiptRequired), END_ELEMENT] */
- if ( v2gDC_BidirectionalControlResType->SAScheduleTupleID_isUsed == 1u ) {
+ if ( iso2DC_BidirectionalControlResType->SAScheduleTupleID_isUsed == 1u ) {
errn = encodeNBitUnsignedInteger(stream, 3, 0);
if(errn == 0) {
/* FirstStartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
errn = encodeNBitUnsignedInteger(stream, 1, 0);
if(errn == 0) {
- errn = encodeNBitUnsignedInteger(stream, 8, (uint32_t)(v2gDC_BidirectionalControlResType->SAScheduleTupleID - 1));
+ errn = encodeNBitUnsignedInteger(stream, 8, (uint32_t)(iso2DC_BidirectionalControlResType->SAScheduleTupleID - 1));
/* valid EE */
errn = encodeNBitUnsignedInteger(stream, 1, 0);
}
}
- grammarID = 1511;
- } else if ( v2gDC_BidirectionalControlResType->MeterInfo_isUsed == 1u ) {
+ grammarID = 29;
+ } else if ( iso2DC_BidirectionalControlResType->MeterInfo_isUsed == 1u ) {
errn = encodeNBitUnsignedInteger(stream, 3, 1);
if(errn == 0) {
- errn = encode_v2gMeterInfoType(stream, &v2gDC_BidirectionalControlResType->MeterInfo );
+ errn = encode_iso2MeterInfoType(stream, &iso2DC_BidirectionalControlResType->MeterInfo );
}
- grammarID = 1512;
- } else if ( v2gDC_BidirectionalControlResType->ReceiptRequired_isUsed == 1u ) {
+ grammarID = 30;
+ } else if ( iso2DC_BidirectionalControlResType->ReceiptRequired_isUsed == 1u ) {
errn = encodeNBitUnsignedInteger(stream, 3, 2);
if(errn == 0) {
/* FirstStartTag[CHARACTERS[BOOLEAN]] */
errn = encodeNBitUnsignedInteger(stream, 1, 0);
if(errn == 0) {
- errn = encodeBoolean(stream, v2gDC_BidirectionalControlResType->ReceiptRequired);
+ errn = encodeBoolean(stream, iso2DC_BidirectionalControlResType->ReceiptRequired);
/* valid EE */
errn = encodeNBitUnsignedInteger(stream, 1, 0);
}
}
- grammarID = 2;
+ grammarID = 3;
} else if (1==1) {
errn = encodeNBitUnsignedInteger(stream, 3, 3);
if(errn == 0) {
done = 1;
}
- grammarID = 3;
+ grammarID = 4;
} else {
errn = EXI_ERROR_UNKOWN_EVENT;
}
break;
- case 1511:
+ case 29:
/* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgBody}MeterInfo), START_ELEMENT({urn:iso:15118:2:2016:MsgBody}ReceiptRequired), END_ELEMENT] */
- if ( v2gDC_BidirectionalControlResType->MeterInfo_isUsed == 1u ) {
+ if ( iso2DC_BidirectionalControlResType->MeterInfo_isUsed == 1u ) {
errn = encodeNBitUnsignedInteger(stream, 2, 0);
if(errn == 0) {
- errn = encode_v2gMeterInfoType(stream, &v2gDC_BidirectionalControlResType->MeterInfo );
+ errn = encode_iso2MeterInfoType(stream, &iso2DC_BidirectionalControlResType->MeterInfo );
}
- grammarID = 1512;
- } else if ( v2gDC_BidirectionalControlResType->ReceiptRequired_isUsed == 1u ) {
+ grammarID = 30;
+ } else if ( iso2DC_BidirectionalControlResType->ReceiptRequired_isUsed == 1u ) {
errn = encodeNBitUnsignedInteger(stream, 2, 1);
if(errn == 0) {
/* FirstStartTag[CHARACTERS[BOOLEAN]] */
errn = encodeNBitUnsignedInteger(stream, 1, 0);
if(errn == 0) {
- errn = encodeBoolean(stream, v2gDC_BidirectionalControlResType->ReceiptRequired);
+ errn = encodeBoolean(stream, iso2DC_BidirectionalControlResType->ReceiptRequired);
/* valid EE */
errn = encodeNBitUnsignedInteger(stream, 1, 0);
}
}
- grammarID = 2;
+ grammarID = 3;
} else if (1==1) {
errn = encodeNBitUnsignedInteger(stream, 2, 2);
if(errn == 0) {
done = 1;
}
- grammarID = 3;
+ grammarID = 4;
} else {
errn = EXI_ERROR_UNKOWN_EVENT;
}
break;
- case 1512:
+ case 30:
/* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgBody}ReceiptRequired), END_ELEMENT] */
- if ( v2gDC_BidirectionalControlResType->ReceiptRequired_isUsed == 1u ) {
+ if ( iso2DC_BidirectionalControlResType->ReceiptRequired_isUsed == 1u ) {
errn = encodeNBitUnsignedInteger(stream, 2, 0);
if(errn == 0) {
/* FirstStartTag[CHARACTERS[BOOLEAN]] */
errn = encodeNBitUnsignedInteger(stream, 1, 0);
if(errn == 0) {
- errn = encodeBoolean(stream, v2gDC_BidirectionalControlResType->ReceiptRequired);
+ errn = encodeBoolean(stream, iso2DC_BidirectionalControlResType->ReceiptRequired);
/* valid EE */
errn = encodeNBitUnsignedInteger(stream, 1, 0);
}
}
- grammarID = 2;
+ grammarID = 3;
} else if (1==1) {
errn = encodeNBitUnsignedInteger(stream, 2, 1);
if(errn == 0) {
done = 1;
}
- grammarID = 3;
+ grammarID = 4;
} else {
errn = EXI_ERROR_UNKOWN_EVENT;
}
break;
- case 2:
+ case 3:
/* Element[END_ELEMENT] */
if (1==1) {
errn = encodeNBitUnsignedInteger(stream, 1, 0);
if(errn == 0) {
done = 1;
}
+ grammarID = 4;
+ } 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:2016:MsgDataTypes,CostType', base type name='anyType', content type='ELEMENT', isAbstract='false', hasTypeId='false', final='0', block='0', particle='("urn:iso:15118:2:2016:MsgDataTypes":costKind,"urn:iso:15118:2:2016:MsgDataTypes":amount)', derivedBy='RESTRICTION'. */
+static int encode_iso2CostType(bitstream_t* stream, struct iso2CostType* iso2CostType) {
+ int grammarID = 31;
+ int done = 0;
+
+
+ while(!done) {
+ switch(grammarID) {
+ case 31:
+ /* FirstStartTag[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}costKind)] */
+ 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, iso2CostType->costKind);
+ /* valid EE */
+ errn = encodeNBitUnsignedInteger(stream, 1, 0);
+ }
+ }
+ grammarID = 32;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 32:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}amount)] */
+ if ( 1 == 1 ) {
+ errn = encodeNBitUnsignedInteger(stream, 1, 0);
+ if(errn == 0) {
+ errn = encode_iso2PhysicalValueType(stream, &iso2CostType->amount );
+ }
grammarID = 3;
} else {
errn = EXI_ERROR_UNKOWN_EVENT;
}
break;
+ case 3:
+ /* Element[END_ELEMENT] */
+ if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 1, 0);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } 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:2016:MsgBody,ChargingStatusResType', base type name='V2GResponseType', content type='ELEMENT', isAbstract='false', hasTypeId='false', final='0', block='0', particle='(("urn:iso:15118:2:2016:MsgBody":ResponseCode,"urn:iso:15118:2:2016:MsgBody":EVSEStatus{0-1}),("urn:iso:15118:2:2016:MsgBody":EVSEID,"urn:iso:15118:2:2016:MsgBody":SAScheduleTupleID{0-1},"urn:iso:15118:2:2016:MsgBody":MeterInfo{0-1},"urn:iso:15118:2:2016:MsgBody":ReceiptRequired{0-1},"urn:iso:15118:2:2016:MsgBody":EVSETargetPower{0-1}))', derivedBy='EXTENSION'. */
+static int encode_iso2ChargingStatusResType(bitstream_t* stream, struct iso2ChargingStatusResType* iso2ChargingStatusResType) {
+ int grammarID = 33;
+ int done = 0;
+
+
+ while(!done) {
+ switch(grammarID) {
+ case 33:
+ /* FirstStartTag[START_ELEMENT({urn:iso:15118:2:2016:MsgBody}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, 5, iso2ChargingStatusResType->ResponseCode);
+ /* valid EE */
+ errn = encodeNBitUnsignedInteger(stream, 1, 0);
+ }
+ }
+ grammarID = 34;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 34:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgBody}EVSEStatus), START_ELEMENT({urn:iso:15118:2:2016:MsgBody}EVSEID)] */
+ if ( iso2ChargingStatusResType->EVSEStatus_isUsed == 1u ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ if(errn == 0) {
+ errn = encode_iso2EVSEStatusType(stream, &iso2ChargingStatusResType->EVSEStatus );
+ }
+ grammarID = 35;
+ } else if ( 1 == 1 ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ /* FirstStartTag[CHARACTERS[STRING]] */
+ errn = encodeNBitUnsignedInteger(stream, 1, 0);
+ if(errn == 0) {
+ /* encode string as string table miss (+2 len)*/
+ errn = encodeUnsignedInteger16(stream, (uint16_t)(iso2ChargingStatusResType->EVSEID.charactersLen + 2));
+ if (errn == 0) {
+ errn = encodeCharacters(stream, iso2ChargingStatusResType->EVSEID.characters, iso2ChargingStatusResType->EVSEID.charactersLen);
+ }
+ /* valid EE */
+ errn = encodeNBitUnsignedInteger(stream, 1, 0);
+ }
+ }
+ grammarID = 36;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 35:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgBody}EVSEID)] */
+ if ( 1 == 1 ) {
+ errn = encodeNBitUnsignedInteger(stream, 1, 0);
+ if(errn == 0) {
+ /* FirstStartTag[CHARACTERS[STRING]] */
+ errn = encodeNBitUnsignedInteger(stream, 1, 0);
+ if(errn == 0) {
+ /* encode string as string table miss (+2 len)*/
+ errn = encodeUnsignedInteger16(stream, (uint16_t)(iso2ChargingStatusResType->EVSEID.charactersLen + 2));
+ if (errn == 0) {
+ errn = encodeCharacters(stream, iso2ChargingStatusResType->EVSEID.characters, iso2ChargingStatusResType->EVSEID.charactersLen);
+ }
+ /* valid EE */
+ errn = encodeNBitUnsignedInteger(stream, 1, 0);
+ }
+ }
+ grammarID = 36;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 36:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgBody}SAScheduleTupleID), START_ELEMENT({urn:iso:15118:2:2016:MsgBody}MeterInfo), START_ELEMENT({urn:iso:15118:2:2016:MsgBody}ReceiptRequired), START_ELEMENT({urn:iso:15118:2:2016:MsgBody}EVSETargetPower), END_ELEMENT] */
+ if ( iso2ChargingStatusResType->SAScheduleTupleID_isUsed == 1u ) {
+ errn = encodeNBitUnsignedInteger(stream, 3, 0);
+ if(errn == 0) {
+ /* FirstStartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
+ errn = encodeNBitUnsignedInteger(stream, 1, 0);
+ if(errn == 0) {
+ errn = encodeNBitUnsignedInteger(stream, 8, (uint32_t)(iso2ChargingStatusResType->SAScheduleTupleID - 1));
+ /* valid EE */
+ errn = encodeNBitUnsignedInteger(stream, 1, 0);
+ }
+ }
+ grammarID = 37;
+ } else if ( iso2ChargingStatusResType->MeterInfo_isUsed == 1u ) {
+ errn = encodeNBitUnsignedInteger(stream, 3, 1);
+ if(errn == 0) {
+ errn = encode_iso2MeterInfoType(stream, &iso2ChargingStatusResType->MeterInfo );
+ }
+ grammarID = 38;
+ } else if ( iso2ChargingStatusResType->ReceiptRequired_isUsed == 1u ) {
+ errn = encodeNBitUnsignedInteger(stream, 3, 2);
+ if(errn == 0) {
+ /* FirstStartTag[CHARACTERS[BOOLEAN]] */
+ errn = encodeNBitUnsignedInteger(stream, 1, 0);
+ if(errn == 0) {
+ errn = encodeBoolean(stream, iso2ChargingStatusResType->ReceiptRequired);
+ /* valid EE */
+ errn = encodeNBitUnsignedInteger(stream, 1, 0);
+ }
+ }
+ grammarID = 39;
+ } else if ( iso2ChargingStatusResType->EVSETargetPower_isUsed == 1u ) {
+ errn = encodeNBitUnsignedInteger(stream, 3, 3);
+ if(errn == 0) {
+ errn = encode_iso2PhysicalValueType(stream, &iso2ChargingStatusResType->EVSETargetPower );
+ }
+ grammarID = 3;
+ } else if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 3, 4);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 37:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgBody}MeterInfo), START_ELEMENT({urn:iso:15118:2:2016:MsgBody}ReceiptRequired), START_ELEMENT({urn:iso:15118:2:2016:MsgBody}EVSETargetPower), END_ELEMENT] */
+ if ( iso2ChargingStatusResType->MeterInfo_isUsed == 1u ) {
+ errn = encodeNBitUnsignedInteger(stream, 3, 0);
+ if(errn == 0) {
+ errn = encode_iso2MeterInfoType(stream, &iso2ChargingStatusResType->MeterInfo );
+ }
+ grammarID = 38;
+ } else if ( iso2ChargingStatusResType->ReceiptRequired_isUsed == 1u ) {
+ errn = encodeNBitUnsignedInteger(stream, 3, 1);
+ if(errn == 0) {
+ /* FirstStartTag[CHARACTERS[BOOLEAN]] */
+ errn = encodeNBitUnsignedInteger(stream, 1, 0);
+ if(errn == 0) {
+ errn = encodeBoolean(stream, iso2ChargingStatusResType->ReceiptRequired);
+ /* valid EE */
+ errn = encodeNBitUnsignedInteger(stream, 1, 0);
+ }
+ }
+ grammarID = 39;
+ } else if ( iso2ChargingStatusResType->EVSETargetPower_isUsed == 1u ) {
+ errn = encodeNBitUnsignedInteger(stream, 3, 2);
+ if(errn == 0) {
+ errn = encode_iso2PhysicalValueType(stream, &iso2ChargingStatusResType->EVSETargetPower );
+ }
+ grammarID = 3;
+ } else if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 3, 3);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 38:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgBody}ReceiptRequired), START_ELEMENT({urn:iso:15118:2:2016:MsgBody}EVSETargetPower), END_ELEMENT] */
+ if ( iso2ChargingStatusResType->ReceiptRequired_isUsed == 1u ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ if(errn == 0) {
+ /* FirstStartTag[CHARACTERS[BOOLEAN]] */
+ errn = encodeNBitUnsignedInteger(stream, 1, 0);
+ if(errn == 0) {
+ errn = encodeBoolean(stream, iso2ChargingStatusResType->ReceiptRequired);
+ /* valid EE */
+ errn = encodeNBitUnsignedInteger(stream, 1, 0);
+ }
+ }
+ grammarID = 39;
+ } else if ( iso2ChargingStatusResType->EVSETargetPower_isUsed == 1u ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ errn = encode_iso2PhysicalValueType(stream, &iso2ChargingStatusResType->EVSETargetPower );
+ }
+ grammarID = 3;
+ } else if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 2);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 39:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgBody}EVSETargetPower), END_ELEMENT] */
+ if ( iso2ChargingStatusResType->EVSETargetPower_isUsed == 1u ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ if(errn == 0) {
+ errn = encode_iso2PhysicalValueType(stream, &iso2ChargingStatusResType->EVSETargetPower );
+ }
+ grammarID = 3;
+ } else if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 3:
+ /* Element[END_ELEMENT] */
+ if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 1, 0);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } 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:2016:MsgDataTypes,MeterInfoType', base type name='anyType', content type='ELEMENT', isAbstract='false', hasTypeId='false', final='0', block='0', particle='("urn:iso:15118:2:2016:MsgDataTypes":MeterID,"urn:iso:15118:2:2016:MsgDataTypes":MeterReadingCharged{0-1},"urn:iso:15118:2:2016:MsgDataTypes":MeterReadingDischarged{0-1},"urn:iso:15118:2:2016:MsgDataTypes":SigMeterReading{0-1},"urn:iso:15118:2:2016:MsgDataTypes":MeterStatus{0-1},"urn:iso:15118:2:2016:MsgDataTypes":TMeter{0-1})', derivedBy='RESTRICTION'. */
+static int encode_iso2MeterInfoType(bitstream_t* stream, struct iso2MeterInfoType* iso2MeterInfoType) {
+ int grammarID = 40;
+ int done = 0;
+
+
+ while(!done) {
+ switch(grammarID) {
+ case 40:
+ /* FirstStartTag[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MeterID)] */
+ if ( 1 == 1 ) {
+ errn = encodeNBitUnsignedInteger(stream, 1, 0);
+ if(errn == 0) {
+ /* FirstStartTag[CHARACTERS[STRING]] */
+ errn = encodeNBitUnsignedInteger(stream, 1, 0);
+ if(errn == 0) {
+ /* encode string as string table miss (+2 len)*/
+ errn = encodeUnsignedInteger16(stream, (uint16_t)(iso2MeterInfoType->MeterID.charactersLen + 2));
+ if (errn == 0) {
+ errn = encodeCharacters(stream, iso2MeterInfoType->MeterID.characters, iso2MeterInfoType->MeterID.charactersLen);
+ }
+ /* valid EE */
+ errn = encodeNBitUnsignedInteger(stream, 1, 0);
+ }
+ }
+ grammarID = 41;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 41:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MeterReadingCharged), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MeterReadingDischarged), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SigMeterReading), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MeterStatus), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}TMeter), END_ELEMENT] */
+ if ( iso2MeterInfoType->MeterReadingCharged_isUsed == 1u ) {
+ errn = encodeNBitUnsignedInteger(stream, 3, 0);
+ if(errn == 0) {
+ /* First(xsi:type)StartTag[CHARACTERS[UNSIGNED_INTEGER]] */
+ errn = encodeNBitUnsignedInteger(stream, 1, 0);
+ if(errn == 0) {
+ errn = encodeUnsignedInteger64(stream, iso2MeterInfoType->MeterReadingCharged);
+ /* valid EE */
+ errn = encodeNBitUnsignedInteger(stream, 1, 0);
+ }
+ }
+ grammarID = 42;
+ } else if ( iso2MeterInfoType->MeterReadingDischarged_isUsed == 1u ) {
+ errn = encodeNBitUnsignedInteger(stream, 3, 1);
+ if(errn == 0) {
+ /* First(xsi:type)StartTag[CHARACTERS[UNSIGNED_INTEGER]] */
+ errn = encodeNBitUnsignedInteger(stream, 1, 0);
+ if(errn == 0) {
+ errn = encodeUnsignedInteger64(stream, iso2MeterInfoType->MeterReadingDischarged);
+ /* valid EE */
+ errn = encodeNBitUnsignedInteger(stream, 1, 0);
+ }
+ }
+ grammarID = 43;
+ } else if ( iso2MeterInfoType->SigMeterReading_isUsed == 1u ) {
+ errn = encodeNBitUnsignedInteger(stream, 3, 2);
+ if(errn == 0) {
+ /* FirstStartTag[CHARACTERS[BINARY_BASE64]] */
+ errn = encodeNBitUnsignedInteger(stream, 1, 0);
+ if(errn == 0) {
+ errn = encodeUnsignedInteger16(stream, (uint16_t)(iso2MeterInfoType->SigMeterReading.bytesLen));
+ if (errn == 0) {
+ errn = encodeBytes(stream, iso2MeterInfoType->SigMeterReading.bytes, iso2MeterInfoType->SigMeterReading.bytesLen);
+ }
+ /* valid EE */
+ errn = encodeNBitUnsignedInteger(stream, 1, 0);
+ }
+ }
+ grammarID = 44;
+ } else if ( iso2MeterInfoType->MeterStatus_isUsed == 1u ) {
+ errn = encodeNBitUnsignedInteger(stream, 3, 3);
+ if(errn == 0) {
+ /* FirstStartTag[CHARACTERS[INTEGER]] */
+ errn = encodeNBitUnsignedInteger(stream, 1, 0);
+ if(errn == 0) {
+ errn = encodeInteger16(stream, iso2MeterInfoType->MeterStatus);
+ /* valid EE */
+ errn = encodeNBitUnsignedInteger(stream, 1, 0);
+ }
+ }
+ grammarID = 45;
+ } else if ( iso2MeterInfoType->TMeter_isUsed == 1u ) {
+ errn = encodeNBitUnsignedInteger(stream, 3, 4);
+ if(errn == 0) {
+ /* First(xsi:type)StartTag[CHARACTERS[INTEGER]] */
+ errn = encodeNBitUnsignedInteger(stream, 1, 0);
+ if(errn == 0) {
+ errn = encodeInteger64(stream, iso2MeterInfoType->TMeter);
+ /* valid EE */
+ errn = encodeNBitUnsignedInteger(stream, 1, 0);
+ }
+ }
+ grammarID = 3;
+ } else if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 3, 5);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 42:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MeterReadingDischarged), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SigMeterReading), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MeterStatus), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}TMeter), END_ELEMENT] */
+ if ( iso2MeterInfoType->MeterReadingDischarged_isUsed == 1u ) {
+ errn = encodeNBitUnsignedInteger(stream, 3, 0);
+ if(errn == 0) {
+ /* First(xsi:type)StartTag[CHARACTERS[UNSIGNED_INTEGER]] */
+ errn = encodeNBitUnsignedInteger(stream, 1, 0);
+ if(errn == 0) {
+ errn = encodeUnsignedInteger64(stream, iso2MeterInfoType->MeterReadingDischarged);
+ /* valid EE */
+ errn = encodeNBitUnsignedInteger(stream, 1, 0);
+ }
+ }
+ grammarID = 43;
+ } else if ( iso2MeterInfoType->SigMeterReading_isUsed == 1u ) {
+ errn = encodeNBitUnsignedInteger(stream, 3, 1);
+ if(errn == 0) {
+ /* FirstStartTag[CHARACTERS[BINARY_BASE64]] */
+ errn = encodeNBitUnsignedInteger(stream, 1, 0);
+ if(errn == 0) {
+ errn = encodeUnsignedInteger16(stream, (uint16_t)(iso2MeterInfoType->SigMeterReading.bytesLen));
+ if (errn == 0) {
+ errn = encodeBytes(stream, iso2MeterInfoType->SigMeterReading.bytes, iso2MeterInfoType->SigMeterReading.bytesLen);
+ }
+ /* valid EE */
+ errn = encodeNBitUnsignedInteger(stream, 1, 0);
+ }
+ }
+ grammarID = 44;
+ } else if ( iso2MeterInfoType->MeterStatus_isUsed == 1u ) {
+ errn = encodeNBitUnsignedInteger(stream, 3, 2);
+ if(errn == 0) {
+ /* FirstStartTag[CHARACTERS[INTEGER]] */
+ errn = encodeNBitUnsignedInteger(stream, 1, 0);
+ if(errn == 0) {
+ errn = encodeInteger16(stream, iso2MeterInfoType->MeterStatus);
+ /* valid EE */
+ errn = encodeNBitUnsignedInteger(stream, 1, 0);
+ }
+ }
+ grammarID = 45;
+ } else if ( iso2MeterInfoType->TMeter_isUsed == 1u ) {
+ errn = encodeNBitUnsignedInteger(stream, 3, 3);
+ if(errn == 0) {
+ /* First(xsi:type)StartTag[CHARACTERS[INTEGER]] */
+ errn = encodeNBitUnsignedInteger(stream, 1, 0);
+ if(errn == 0) {
+ errn = encodeInteger64(stream, iso2MeterInfoType->TMeter);
+ /* valid EE */
+ errn = encodeNBitUnsignedInteger(stream, 1, 0);
+ }
+ }
+ grammarID = 3;
+ } else if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 3, 4);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 43:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SigMeterReading), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MeterStatus), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}TMeter), END_ELEMENT] */
+ if ( iso2MeterInfoType->SigMeterReading_isUsed == 1u ) {
+ errn = encodeNBitUnsignedInteger(stream, 3, 0);
+ if(errn == 0) {
+ /* FirstStartTag[CHARACTERS[BINARY_BASE64]] */
+ errn = encodeNBitUnsignedInteger(stream, 1, 0);
+ if(errn == 0) {
+ errn = encodeUnsignedInteger16(stream, (uint16_t)(iso2MeterInfoType->SigMeterReading.bytesLen));
+ if (errn == 0) {
+ errn = encodeBytes(stream, iso2MeterInfoType->SigMeterReading.bytes, iso2MeterInfoType->SigMeterReading.bytesLen);
+ }
+ /* valid EE */
+ errn = encodeNBitUnsignedInteger(stream, 1, 0);
+ }
+ }
+ grammarID = 44;
+ } else if ( iso2MeterInfoType->MeterStatus_isUsed == 1u ) {
+ errn = encodeNBitUnsignedInteger(stream, 3, 1);
+ if(errn == 0) {
+ /* FirstStartTag[CHARACTERS[INTEGER]] */
+ errn = encodeNBitUnsignedInteger(stream, 1, 0);
+ if(errn == 0) {
+ errn = encodeInteger16(stream, iso2MeterInfoType->MeterStatus);
+ /* valid EE */
+ errn = encodeNBitUnsignedInteger(stream, 1, 0);
+ }
+ }
+ grammarID = 45;
+ } else if ( iso2MeterInfoType->TMeter_isUsed == 1u ) {
+ errn = encodeNBitUnsignedInteger(stream, 3, 2);
+ if(errn == 0) {
+ /* First(xsi:type)StartTag[CHARACTERS[INTEGER]] */
+ errn = encodeNBitUnsignedInteger(stream, 1, 0);
+ if(errn == 0) {
+ errn = encodeInteger64(stream, iso2MeterInfoType->TMeter);
+ /* valid EE */
+ errn = encodeNBitUnsignedInteger(stream, 1, 0);
+ }
+ }
+ grammarID = 3;
+ } else if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 3, 3);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 44:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MeterStatus), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}TMeter), END_ELEMENT] */
+ if ( iso2MeterInfoType->MeterStatus_isUsed == 1u ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ if(errn == 0) {
+ /* FirstStartTag[CHARACTERS[INTEGER]] */
+ errn = encodeNBitUnsignedInteger(stream, 1, 0);
+ if(errn == 0) {
+ errn = encodeInteger16(stream, iso2MeterInfoType->MeterStatus);
+ /* valid EE */
+ errn = encodeNBitUnsignedInteger(stream, 1, 0);
+ }
+ }
+ grammarID = 45;
+ } else if ( iso2MeterInfoType->TMeter_isUsed == 1u ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ /* First(xsi:type)StartTag[CHARACTERS[INTEGER]] */
+ errn = encodeNBitUnsignedInteger(stream, 1, 0);
+ if(errn == 0) {
+ errn = encodeInteger64(stream, iso2MeterInfoType->TMeter);
+ /* valid EE */
+ errn = encodeNBitUnsignedInteger(stream, 1, 0);
+ }
+ }
+ grammarID = 3;
+ } else if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 2);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 45:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}TMeter), END_ELEMENT] */
+ if ( iso2MeterInfoType->TMeter_isUsed == 1u ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ if(errn == 0) {
+ /* First(xsi:type)StartTag[CHARACTERS[INTEGER]] */
+ errn = encodeNBitUnsignedInteger(stream, 1, 0);
+ if(errn == 0) {
+ errn = encodeInteger64(stream, iso2MeterInfoType->TMeter);
+ /* valid EE */
+ errn = encodeNBitUnsignedInteger(stream, 1, 0);
+ }
+ }
+ grammarID = 3;
+ } else if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 3:
+ /* Element[END_ELEMENT] */
+ if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 1, 0);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } 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:2016:MsgDataTypes,AC_EVChargeParameterType', base type name='EVEnergyTransferParameterType', content type='ELEMENT', isAbstract='false', hasTypeId='false', final='0', block='0', particle='(("urn:iso:15118:2:2016:MsgDataTypes":DepartureTime),("urn:iso:15118:2:2016:MsgDataTypes":EVMaximumChargePower,"urn:iso:15118:2:2016:MsgDataTypes":EVMaximumChargeCurrent,"urn:iso:15118:2:2016:MsgDataTypes":EVMinimumChargeCurrent,"urn:iso:15118:2:2016:MsgDataTypes":EVTargetEnergyRequest{0-1},"urn:iso:15118:2:2016:MsgDataTypes":EVMaximumEnergyRequest{0-1},"urn:iso:15118:2:2016:MsgDataTypes":EVMinimumEnergyRequest{0-1},"urn:iso:15118:2:2016:MsgDataTypes":EVMaximumVoltage))', derivedBy='EXTENSION'. */
+static int encode_iso2AC_EVChargeParameterType(bitstream_t* stream, struct iso2AC_EVChargeParameterType* iso2AC_EVChargeParameterType) {
+ int grammarID = 46;
+ int done = 0;
+
+
+ while(!done) {
+ switch(grammarID) {
+ case 46:
+ /* FirstStartTag[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}DepartureTime)] */
+ if ( 1 == 1 ) {
+ errn = encodeNBitUnsignedInteger(stream, 1, 0);
+ if(errn == 0) {
+ /* First(xsi:type)StartTag[CHARACTERS[UNSIGNED_INTEGER]] */
+ errn = encodeNBitUnsignedInteger(stream, 1, 0);
+ if(errn == 0) {
+ errn = encodeUnsignedInteger32(stream, iso2AC_EVChargeParameterType->DepartureTime);
+ /* valid EE */
+ errn = encodeNBitUnsignedInteger(stream, 1, 0);
+ }
+ }
+ grammarID = 47;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 47:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}EVMaximumChargePower)] */
+ if ( 1 == 1 ) {
+ errn = encodeNBitUnsignedInteger(stream, 1, 0);
+ if(errn == 0) {
+ errn = encode_iso2PhysicalValueType(stream, &iso2AC_EVChargeParameterType->EVMaximumChargePower );
+ }
+ grammarID = 48;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 48:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}EVMaximumChargeCurrent)] */
+ if ( 1 == 1 ) {
+ errn = encodeNBitUnsignedInteger(stream, 1, 0);
+ if(errn == 0) {
+ errn = encode_iso2PhysicalValueType(stream, &iso2AC_EVChargeParameterType->EVMaximumChargeCurrent );
+ }
+ grammarID = 49;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 49:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}EVMinimumChargeCurrent)] */
+ if ( 1 == 1 ) {
+ errn = encodeNBitUnsignedInteger(stream, 1, 0);
+ if(errn == 0) {
+ errn = encode_iso2PhysicalValueType(stream, &iso2AC_EVChargeParameterType->EVMinimumChargeCurrent );
+ }
+ grammarID = 50;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 50:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}EVTargetEnergyRequest), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}EVMaximumEnergyRequest), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}EVMinimumEnergyRequest), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}EVMaximumVoltage)] */
+ if ( iso2AC_EVChargeParameterType->EVTargetEnergyRequest_isUsed == 1u ) {
+ errn = encodeNBitUnsignedInteger(stream, 3, 0);
+ if(errn == 0) {
+ errn = encode_iso2PhysicalValueType(stream, &iso2AC_EVChargeParameterType->EVTargetEnergyRequest );
+ }
+ grammarID = 51;
+ } else if ( iso2AC_EVChargeParameterType->EVMaximumEnergyRequest_isUsed == 1u ) {
+ errn = encodeNBitUnsignedInteger(stream, 3, 1);
+ if(errn == 0) {
+ errn = encode_iso2PhysicalValueType(stream, &iso2AC_EVChargeParameterType->EVMaximumEnergyRequest );
+ }
+ grammarID = 52;
+ } else if ( iso2AC_EVChargeParameterType->EVMinimumEnergyRequest_isUsed == 1u ) {
+ errn = encodeNBitUnsignedInteger(stream, 3, 2);
+ if(errn == 0) {
+ errn = encode_iso2PhysicalValueType(stream, &iso2AC_EVChargeParameterType->EVMinimumEnergyRequest );
+ }
+ grammarID = 53;
+ } else if ( 1 == 1 ) {
+ errn = encodeNBitUnsignedInteger(stream, 3, 3);
+ if(errn == 0) {
+ errn = encode_iso2PhysicalValueType(stream, &iso2AC_EVChargeParameterType->EVMaximumVoltage );
+ }
+ grammarID = 3;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 51:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}EVMaximumEnergyRequest), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}EVMinimumEnergyRequest), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}EVMaximumVoltage)] */
+ if ( iso2AC_EVChargeParameterType->EVMaximumEnergyRequest_isUsed == 1u ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ if(errn == 0) {
+ errn = encode_iso2PhysicalValueType(stream, &iso2AC_EVChargeParameterType->EVMaximumEnergyRequest );
+ }
+ grammarID = 52;
+ } else if ( iso2AC_EVChargeParameterType->EVMinimumEnergyRequest_isUsed == 1u ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ errn = encode_iso2PhysicalValueType(stream, &iso2AC_EVChargeParameterType->EVMinimumEnergyRequest );
+ }
+ grammarID = 53;
+ } else if ( 1 == 1 ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 2);
+ if(errn == 0) {
+ errn = encode_iso2PhysicalValueType(stream, &iso2AC_EVChargeParameterType->EVMaximumVoltage );
+ }
+ grammarID = 3;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 52:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}EVMinimumEnergyRequest), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}EVMaximumVoltage)] */
+ if ( iso2AC_EVChargeParameterType->EVMinimumEnergyRequest_isUsed == 1u ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ if(errn == 0) {
+ errn = encode_iso2PhysicalValueType(stream, &iso2AC_EVChargeParameterType->EVMinimumEnergyRequest );
+ }
+ grammarID = 53;
+ } else if ( 1 == 1 ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ errn = encode_iso2PhysicalValueType(stream, &iso2AC_EVChargeParameterType->EVMaximumVoltage );
+ }
+ grammarID = 3;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 53:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}EVMaximumVoltage)] */
+ if ( 1 == 1 ) {
+ errn = encodeNBitUnsignedInteger(stream, 1, 0);
+ if(errn == 0) {
+ errn = encode_iso2PhysicalValueType(stream, &iso2AC_EVChargeParameterType->EVMaximumVoltage );
+ }
+ grammarID = 3;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 3:
+ /* Element[END_ELEMENT] */
+ if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 1, 0);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } 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:2016:MsgDataTypes,AC_EVSEBidirectionalParameterType', base type name='AC_EVSEChargeParameterType', content type='ELEMENT', isAbstract='false', hasTypeId='false', final='0', block='0', particle='(("urn:iso:15118:2:2016:MsgDataTypes":EVSEMaximumChargeCurrent,"urn:iso:15118:2:2016:MsgDataTypes":EVSENominalVoltage,"urn:iso:15118:2:2016:MsgDataTypes":EVSENominalFrequency),("urn:iso:15118:2:2016:MsgDataTypes":EVSEMaximumDischargeCurrent,"urn:iso:15118:2:2016:MsgDataTypes":EVSENominalFrequency))', derivedBy='EXTENSION'. */
+static int encode_iso2AC_EVSEBidirectionalParameterType(bitstream_t* stream, struct iso2AC_EVSEBidirectionalParameterType* iso2AC_EVSEBidirectionalParameterType) {
+ int grammarID = 54;
+ int done = 0;
+
+
+ while(!done) {
+ switch(grammarID) {
+ case 54:
+ /* FirstStartTag[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}EVSEMaximumChargeCurrent)] */
+ if ( 1 == 1 ) {
+ errn = encodeNBitUnsignedInteger(stream, 1, 0);
+ if(errn == 0) {
+ errn = encode_iso2PhysicalValueType(stream, &iso2AC_EVSEBidirectionalParameterType->EVSEMaximumChargeCurrent );
+ }
+ grammarID = 55;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 55:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}EVSENominalVoltage)] */
+ if ( 1 == 1 ) {
+ errn = encodeNBitUnsignedInteger(stream, 1, 0);
+ if(errn == 0) {
+ errn = encode_iso2PhysicalValueType(stream, &iso2AC_EVSEBidirectionalParameterType->EVSENominalVoltage );
+ }
+ grammarID = 56;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 56:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}EVSENominalFrequency)] */
+ if ( 1 == 1 ) {
+ errn = encodeNBitUnsignedInteger(stream, 1, 0);
+ if(errn == 0) {
+ errn = encode_iso2PhysicalValueType(stream, &iso2AC_EVSEBidirectionalParameterType->EVSENominalFrequency );
+ }
+ grammarID = 57;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 57:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}EVSEMaximumDischargeCurrent)] */
+ if ( 1 == 1 ) {
+ errn = encodeNBitUnsignedInteger(stream, 1, 0);
+ if(errn == 0) {
+ errn = encode_iso2PhysicalValueType(stream, &iso2AC_EVSEBidirectionalParameterType->EVSEMaximumDischargeCurrent );
+ }
+ grammarID = 58;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 58:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}EVSENominalFrequency)] */
+ if ( 1 == 1 ) {
+ errn = encodeNBitUnsignedInteger(stream, 1, 0);
+ if(errn == 0) {
+ errn = encode_iso2PhysicalValueType(stream, &iso2AC_EVSEBidirectionalParameterType->EVSENominalFrequency );
+ }
+ grammarID = 3;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 3:
+ /* Element[END_ELEMENT] */
+ if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 1, 0);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } 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:2016:MsgBody,VehicleCheckOutResType', base type name='V2GResponseType', content type='ELEMENT', isAbstract='false', hasTypeId='false', final='0', block='0', particle='(("urn:iso:15118:2:2016:MsgBody":ResponseCode,"urn:iso:15118:2:2016:MsgBody":EVSEStatus{0-1}),("urn:iso:15118:2:2016:MsgBody":EVSECheckOutStatus))', derivedBy='EXTENSION'. */
+static int encode_iso2VehicleCheckOutResType(bitstream_t* stream, struct iso2VehicleCheckOutResType* iso2VehicleCheckOutResType) {
+ int grammarID = 59;
+ int done = 0;
+
+
+ while(!done) {
+ switch(grammarID) {
+ case 59:
+ /* FirstStartTag[START_ELEMENT({urn:iso:15118:2:2016:MsgBody}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, 5, iso2VehicleCheckOutResType->ResponseCode);
+ /* valid EE */
+ errn = encodeNBitUnsignedInteger(stream, 1, 0);
+ }
+ }
+ grammarID = 60;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 60:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgBody}EVSEStatus), START_ELEMENT({urn:iso:15118:2:2016:MsgBody}EVSECheckOutStatus)] */
+ if ( iso2VehicleCheckOutResType->EVSEStatus_isUsed == 1u ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ if(errn == 0) {
+ errn = encode_iso2EVSEStatusType(stream, &iso2VehicleCheckOutResType->EVSEStatus );
+ }
+ grammarID = 61;
+ } else if ( 1 == 1 ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ /* FirstStartTag[CHARACTERS[ENUMERATION]] */
+ errn = encodeNBitUnsignedInteger(stream, 1, 0);
+ if(errn == 0) {
+ errn = encodeNBitUnsignedInteger(stream, 2, iso2VehicleCheckOutResType->EVSECheckOutStatus);
+ /* valid EE */
+ errn = encodeNBitUnsignedInteger(stream, 1, 0);
+ }
+ }
+ grammarID = 3;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 61:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgBody}EVSECheckOutStatus)] */
+ 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, iso2VehicleCheckOutResType->EVSECheckOutStatus);
+ /* valid EE */
+ errn = encodeNBitUnsignedInteger(stream, 1, 0);
+ }
+ }
+ grammarID = 3;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 3:
+ /* Element[END_ELEMENT] */
+ if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 1, 0);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } 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:2016:MsgDataTypes,MagneticVectorListType', base type name='anyType', content type='ELEMENT', isAbstract='false', hasTypeId='false', final='0', block='0', particle='("urn:iso:15118:2:2016:MsgDataTypes":MagneticVector{1-255})', derivedBy='RESTRICTION'. */
+static int encode_iso2MagneticVectorListType(bitstream_t* stream, struct iso2MagneticVectorListType* iso2MagneticVectorListType) {
+ int grammarID = 62;
+ int done = 0;
+
+ unsigned int iso2MagneticVectorListType_MagneticVector_currArrayIndex = 0;
+
+ while(!done) {
+ switch(grammarID) {
+ case 62:
+ /* FirstStartTag[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MagneticVector)] */
+ if (iso2MagneticVectorListType_MagneticVector_currArrayIndex < iso2MagneticVectorListType->MagneticVector.arrayLen ) {
+ errn = encodeNBitUnsignedInteger(stream, 1, 0);
+ if(errn == 0) {
+ errn = encode_iso2MagneticVectorType(stream, &iso2MagneticVectorListType->MagneticVector.array [iso2MagneticVectorListType_MagneticVector_currArrayIndex++]);
+ }
+ grammarID = 63;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 63:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MagneticVector), END_ELEMENT] */
+ if (iso2MagneticVectorListType_MagneticVector_currArrayIndex < iso2MagneticVectorListType->MagneticVector.arrayLen ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ if(errn == 0) {
+ errn = encode_iso2MagneticVectorType(stream, &iso2MagneticVectorListType->MagneticVector.array [iso2MagneticVectorListType_MagneticVector_currArrayIndex++]);
+ }
+ grammarID = 64;
+ } else if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 64:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MagneticVector), END_ELEMENT] */
+ if (iso2MagneticVectorListType_MagneticVector_currArrayIndex < iso2MagneticVectorListType->MagneticVector.arrayLen ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ if(errn == 0) {
+ errn = encode_iso2MagneticVectorType(stream, &iso2MagneticVectorListType->MagneticVector.array [iso2MagneticVectorListType_MagneticVector_currArrayIndex++]);
+ }
+ grammarID = 65;
+ } else if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 65:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MagneticVector), END_ELEMENT] */
+ if (iso2MagneticVectorListType_MagneticVector_currArrayIndex < iso2MagneticVectorListType->MagneticVector.arrayLen ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ if(errn == 0) {
+ errn = encode_iso2MagneticVectorType(stream, &iso2MagneticVectorListType->MagneticVector.array [iso2MagneticVectorListType_MagneticVector_currArrayIndex++]);
+ }
+ grammarID = 66;
+ } else if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 66:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MagneticVector), END_ELEMENT] */
+ if (iso2MagneticVectorListType_MagneticVector_currArrayIndex < iso2MagneticVectorListType->MagneticVector.arrayLen ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ if(errn == 0) {
+ errn = encode_iso2MagneticVectorType(stream, &iso2MagneticVectorListType->MagneticVector.array [iso2MagneticVectorListType_MagneticVector_currArrayIndex++]);
+ }
+ grammarID = 67;
+ } else if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 67:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MagneticVector), END_ELEMENT] */
+ if (iso2MagneticVectorListType_MagneticVector_currArrayIndex < iso2MagneticVectorListType->MagneticVector.arrayLen ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ if(errn == 0) {
+ errn = encode_iso2MagneticVectorType(stream, &iso2MagneticVectorListType->MagneticVector.array [iso2MagneticVectorListType_MagneticVector_currArrayIndex++]);
+ }
+ grammarID = 68;
+ } else if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 68:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MagneticVector), END_ELEMENT] */
+ if (iso2MagneticVectorListType_MagneticVector_currArrayIndex < iso2MagneticVectorListType->MagneticVector.arrayLen ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ if(errn == 0) {
+ errn = encode_iso2MagneticVectorType(stream, &iso2MagneticVectorListType->MagneticVector.array [iso2MagneticVectorListType_MagneticVector_currArrayIndex++]);
+ }
+ grammarID = 69;
+ } else if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 69:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MagneticVector), END_ELEMENT] */
+ if (iso2MagneticVectorListType_MagneticVector_currArrayIndex < iso2MagneticVectorListType->MagneticVector.arrayLen ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ if(errn == 0) {
+ errn = encode_iso2MagneticVectorType(stream, &iso2MagneticVectorListType->MagneticVector.array [iso2MagneticVectorListType_MagneticVector_currArrayIndex++]);
+ }
+ grammarID = 70;
+ } else if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 70:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MagneticVector), END_ELEMENT] */
+ if (iso2MagneticVectorListType_MagneticVector_currArrayIndex < iso2MagneticVectorListType->MagneticVector.arrayLen ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ if(errn == 0) {
+ errn = encode_iso2MagneticVectorType(stream, &iso2MagneticVectorListType->MagneticVector.array [iso2MagneticVectorListType_MagneticVector_currArrayIndex++]);
+ }
+ grammarID = 71;
+ } else if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 71:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MagneticVector), END_ELEMENT] */
+ if (iso2MagneticVectorListType_MagneticVector_currArrayIndex < iso2MagneticVectorListType->MagneticVector.arrayLen ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ if(errn == 0) {
+ errn = encode_iso2MagneticVectorType(stream, &iso2MagneticVectorListType->MagneticVector.array [iso2MagneticVectorListType_MagneticVector_currArrayIndex++]);
+ }
+ grammarID = 72;
+ } else if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 72:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MagneticVector), END_ELEMENT] */
+ if (iso2MagneticVectorListType_MagneticVector_currArrayIndex < iso2MagneticVectorListType->MagneticVector.arrayLen ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ if(errn == 0) {
+ errn = encode_iso2MagneticVectorType(stream, &iso2MagneticVectorListType->MagneticVector.array [iso2MagneticVectorListType_MagneticVector_currArrayIndex++]);
+ }
+ grammarID = 73;
+ } else if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 73:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MagneticVector), END_ELEMENT] */
+ if (iso2MagneticVectorListType_MagneticVector_currArrayIndex < iso2MagneticVectorListType->MagneticVector.arrayLen ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ if(errn == 0) {
+ errn = encode_iso2MagneticVectorType(stream, &iso2MagneticVectorListType->MagneticVector.array [iso2MagneticVectorListType_MagneticVector_currArrayIndex++]);
+ }
+ grammarID = 74;
+ } else if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 74:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MagneticVector), END_ELEMENT] */
+ if (iso2MagneticVectorListType_MagneticVector_currArrayIndex < iso2MagneticVectorListType->MagneticVector.arrayLen ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ if(errn == 0) {
+ errn = encode_iso2MagneticVectorType(stream, &iso2MagneticVectorListType->MagneticVector.array [iso2MagneticVectorListType_MagneticVector_currArrayIndex++]);
+ }
+ grammarID = 75;
+ } else if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 75:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MagneticVector), END_ELEMENT] */
+ if (iso2MagneticVectorListType_MagneticVector_currArrayIndex < iso2MagneticVectorListType->MagneticVector.arrayLen ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ if(errn == 0) {
+ errn = encode_iso2MagneticVectorType(stream, &iso2MagneticVectorListType->MagneticVector.array [iso2MagneticVectorListType_MagneticVector_currArrayIndex++]);
+ }
+ grammarID = 76;
+ } else if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 76:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MagneticVector), END_ELEMENT] */
+ if (iso2MagneticVectorListType_MagneticVector_currArrayIndex < iso2MagneticVectorListType->MagneticVector.arrayLen ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ if(errn == 0) {
+ errn = encode_iso2MagneticVectorType(stream, &iso2MagneticVectorListType->MagneticVector.array [iso2MagneticVectorListType_MagneticVector_currArrayIndex++]);
+ }
+ grammarID = 77;
+ } else if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 77:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MagneticVector), END_ELEMENT] */
+ if (iso2MagneticVectorListType_MagneticVector_currArrayIndex < iso2MagneticVectorListType->MagneticVector.arrayLen ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ if(errn == 0) {
+ errn = encode_iso2MagneticVectorType(stream, &iso2MagneticVectorListType->MagneticVector.array [iso2MagneticVectorListType_MagneticVector_currArrayIndex++]);
+ }
+ grammarID = 78;
+ } else if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 78:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MagneticVector), END_ELEMENT] */
+ if (iso2MagneticVectorListType_MagneticVector_currArrayIndex < iso2MagneticVectorListType->MagneticVector.arrayLen ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ if(errn == 0) {
+ errn = encode_iso2MagneticVectorType(stream, &iso2MagneticVectorListType->MagneticVector.array [iso2MagneticVectorListType_MagneticVector_currArrayIndex++]);
+ }
+ grammarID = 79;
+ } else if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 79:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MagneticVector), END_ELEMENT] */
+ if (iso2MagneticVectorListType_MagneticVector_currArrayIndex < iso2MagneticVectorListType->MagneticVector.arrayLen ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ if(errn == 0) {
+ errn = encode_iso2MagneticVectorType(stream, &iso2MagneticVectorListType->MagneticVector.array [iso2MagneticVectorListType_MagneticVector_currArrayIndex++]);
+ }
+ grammarID = 80;
+ } else if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 80:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MagneticVector), END_ELEMENT] */
+ if (iso2MagneticVectorListType_MagneticVector_currArrayIndex < iso2MagneticVectorListType->MagneticVector.arrayLen ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ if(errn == 0) {
+ errn = encode_iso2MagneticVectorType(stream, &iso2MagneticVectorListType->MagneticVector.array [iso2MagneticVectorListType_MagneticVector_currArrayIndex++]);
+ }
+ grammarID = 81;
+ } else if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 81:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MagneticVector), END_ELEMENT] */
+ if (iso2MagneticVectorListType_MagneticVector_currArrayIndex < iso2MagneticVectorListType->MagneticVector.arrayLen ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ if(errn == 0) {
+ errn = encode_iso2MagneticVectorType(stream, &iso2MagneticVectorListType->MagneticVector.array [iso2MagneticVectorListType_MagneticVector_currArrayIndex++]);
+ }
+ grammarID = 82;
+ } else if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 82:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MagneticVector), END_ELEMENT] */
+ if (iso2MagneticVectorListType_MagneticVector_currArrayIndex < iso2MagneticVectorListType->MagneticVector.arrayLen ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ if(errn == 0) {
+ errn = encode_iso2MagneticVectorType(stream, &iso2MagneticVectorListType->MagneticVector.array [iso2MagneticVectorListType_MagneticVector_currArrayIndex++]);
+ }
+ grammarID = 83;
+ } else if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 83:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MagneticVector), END_ELEMENT] */
+ if (iso2MagneticVectorListType_MagneticVector_currArrayIndex < iso2MagneticVectorListType->MagneticVector.arrayLen ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ if(errn == 0) {
+ errn = encode_iso2MagneticVectorType(stream, &iso2MagneticVectorListType->MagneticVector.array [iso2MagneticVectorListType_MagneticVector_currArrayIndex++]);
+ }
+ grammarID = 84;
+ } else if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 84:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MagneticVector), END_ELEMENT] */
+ if (iso2MagneticVectorListType_MagneticVector_currArrayIndex < iso2MagneticVectorListType->MagneticVector.arrayLen ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ if(errn == 0) {
+ errn = encode_iso2MagneticVectorType(stream, &iso2MagneticVectorListType->MagneticVector.array [iso2MagneticVectorListType_MagneticVector_currArrayIndex++]);
+ }
+ grammarID = 85;
+ } else if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 85:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MagneticVector), END_ELEMENT] */
+ if (iso2MagneticVectorListType_MagneticVector_currArrayIndex < iso2MagneticVectorListType->MagneticVector.arrayLen ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ if(errn == 0) {
+ errn = encode_iso2MagneticVectorType(stream, &iso2MagneticVectorListType->MagneticVector.array [iso2MagneticVectorListType_MagneticVector_currArrayIndex++]);
+ }
+ grammarID = 86;
+ } else if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 86:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MagneticVector), END_ELEMENT] */
+ if (iso2MagneticVectorListType_MagneticVector_currArrayIndex < iso2MagneticVectorListType->MagneticVector.arrayLen ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ if(errn == 0) {
+ errn = encode_iso2MagneticVectorType(stream, &iso2MagneticVectorListType->MagneticVector.array [iso2MagneticVectorListType_MagneticVector_currArrayIndex++]);
+ }
+ grammarID = 87;
+ } else if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 87:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MagneticVector), END_ELEMENT] */
+ if (iso2MagneticVectorListType_MagneticVector_currArrayIndex < iso2MagneticVectorListType->MagneticVector.arrayLen ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ if(errn == 0) {
+ errn = encode_iso2MagneticVectorType(stream, &iso2MagneticVectorListType->MagneticVector.array [iso2MagneticVectorListType_MagneticVector_currArrayIndex++]);
+ }
+ grammarID = 88;
+ } else if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 88:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MagneticVector), END_ELEMENT] */
+ if (iso2MagneticVectorListType_MagneticVector_currArrayIndex < iso2MagneticVectorListType->MagneticVector.arrayLen ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ if(errn == 0) {
+ errn = encode_iso2MagneticVectorType(stream, &iso2MagneticVectorListType->MagneticVector.array [iso2MagneticVectorListType_MagneticVector_currArrayIndex++]);
+ }
+ grammarID = 89;
+ } else if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 89:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MagneticVector), END_ELEMENT] */
+ if (iso2MagneticVectorListType_MagneticVector_currArrayIndex < iso2MagneticVectorListType->MagneticVector.arrayLen ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ if(errn == 0) {
+ errn = encode_iso2MagneticVectorType(stream, &iso2MagneticVectorListType->MagneticVector.array [iso2MagneticVectorListType_MagneticVector_currArrayIndex++]);
+ }
+ grammarID = 90;
+ } else if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 90:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MagneticVector), END_ELEMENT] */
+ if (iso2MagneticVectorListType_MagneticVector_currArrayIndex < iso2MagneticVectorListType->MagneticVector.arrayLen ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ if(errn == 0) {
+ errn = encode_iso2MagneticVectorType(stream, &iso2MagneticVectorListType->MagneticVector.array [iso2MagneticVectorListType_MagneticVector_currArrayIndex++]);
+ }
+ grammarID = 91;
+ } else if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 91:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MagneticVector), END_ELEMENT] */
+ if (iso2MagneticVectorListType_MagneticVector_currArrayIndex < iso2MagneticVectorListType->MagneticVector.arrayLen ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ if(errn == 0) {
+ errn = encode_iso2MagneticVectorType(stream, &iso2MagneticVectorListType->MagneticVector.array [iso2MagneticVectorListType_MagneticVector_currArrayIndex++]);
+ }
+ grammarID = 92;
+ } else if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 92:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MagneticVector), END_ELEMENT] */
+ if (iso2MagneticVectorListType_MagneticVector_currArrayIndex < iso2MagneticVectorListType->MagneticVector.arrayLen ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ if(errn == 0) {
+ errn = encode_iso2MagneticVectorType(stream, &iso2MagneticVectorListType->MagneticVector.array [iso2MagneticVectorListType_MagneticVector_currArrayIndex++]);
+ }
+ grammarID = 93;
+ } else if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 93:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MagneticVector), END_ELEMENT] */
+ if (iso2MagneticVectorListType_MagneticVector_currArrayIndex < iso2MagneticVectorListType->MagneticVector.arrayLen ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ if(errn == 0) {
+ errn = encode_iso2MagneticVectorType(stream, &iso2MagneticVectorListType->MagneticVector.array [iso2MagneticVectorListType_MagneticVector_currArrayIndex++]);
+ }
+ grammarID = 94;
+ } else if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 94:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MagneticVector), END_ELEMENT] */
+ if (iso2MagneticVectorListType_MagneticVector_currArrayIndex < iso2MagneticVectorListType->MagneticVector.arrayLen ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ if(errn == 0) {
+ errn = encode_iso2MagneticVectorType(stream, &iso2MagneticVectorListType->MagneticVector.array [iso2MagneticVectorListType_MagneticVector_currArrayIndex++]);
+ }
+ grammarID = 95;
+ } else if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 95:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MagneticVector), END_ELEMENT] */
+ if (iso2MagneticVectorListType_MagneticVector_currArrayIndex < iso2MagneticVectorListType->MagneticVector.arrayLen ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ if(errn == 0) {
+ errn = encode_iso2MagneticVectorType(stream, &iso2MagneticVectorListType->MagneticVector.array [iso2MagneticVectorListType_MagneticVector_currArrayIndex++]);
+ }
+ grammarID = 96;
+ } else if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 96:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MagneticVector), END_ELEMENT] */
+ if (iso2MagneticVectorListType_MagneticVector_currArrayIndex < iso2MagneticVectorListType->MagneticVector.arrayLen ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ if(errn == 0) {
+ errn = encode_iso2MagneticVectorType(stream, &iso2MagneticVectorListType->MagneticVector.array [iso2MagneticVectorListType_MagneticVector_currArrayIndex++]);
+ }
+ grammarID = 97;
+ } else if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 97:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MagneticVector), END_ELEMENT] */
+ if (iso2MagneticVectorListType_MagneticVector_currArrayIndex < iso2MagneticVectorListType->MagneticVector.arrayLen ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ if(errn == 0) {
+ errn = encode_iso2MagneticVectorType(stream, &iso2MagneticVectorListType->MagneticVector.array [iso2MagneticVectorListType_MagneticVector_currArrayIndex++]);
+ }
+ grammarID = 98;
+ } else if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 98:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MagneticVector), END_ELEMENT] */
+ if (iso2MagneticVectorListType_MagneticVector_currArrayIndex < iso2MagneticVectorListType->MagneticVector.arrayLen ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ if(errn == 0) {
+ errn = encode_iso2MagneticVectorType(stream, &iso2MagneticVectorListType->MagneticVector.array [iso2MagneticVectorListType_MagneticVector_currArrayIndex++]);
+ }
+ grammarID = 99;
+ } else if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 99:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MagneticVector), END_ELEMENT] */
+ if (iso2MagneticVectorListType_MagneticVector_currArrayIndex < iso2MagneticVectorListType->MagneticVector.arrayLen ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ if(errn == 0) {
+ errn = encode_iso2MagneticVectorType(stream, &iso2MagneticVectorListType->MagneticVector.array [iso2MagneticVectorListType_MagneticVector_currArrayIndex++]);
+ }
+ grammarID = 100;
+ } else if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 100:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MagneticVector), END_ELEMENT] */
+ if (iso2MagneticVectorListType_MagneticVector_currArrayIndex < iso2MagneticVectorListType->MagneticVector.arrayLen ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ if(errn == 0) {
+ errn = encode_iso2MagneticVectorType(stream, &iso2MagneticVectorListType->MagneticVector.array [iso2MagneticVectorListType_MagneticVector_currArrayIndex++]);
+ }
+ grammarID = 101;
+ } else if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 101:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MagneticVector), END_ELEMENT] */
+ if (iso2MagneticVectorListType_MagneticVector_currArrayIndex < iso2MagneticVectorListType->MagneticVector.arrayLen ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ if(errn == 0) {
+ errn = encode_iso2MagneticVectorType(stream, &iso2MagneticVectorListType->MagneticVector.array [iso2MagneticVectorListType_MagneticVector_currArrayIndex++]);
+ }
+ grammarID = 102;
+ } else if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 102:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MagneticVector), END_ELEMENT] */
+ if (iso2MagneticVectorListType_MagneticVector_currArrayIndex < iso2MagneticVectorListType->MagneticVector.arrayLen ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ if(errn == 0) {
+ errn = encode_iso2MagneticVectorType(stream, &iso2MagneticVectorListType->MagneticVector.array [iso2MagneticVectorListType_MagneticVector_currArrayIndex++]);
+ }
+ grammarID = 103;
+ } else if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 103:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MagneticVector), END_ELEMENT] */
+ if (iso2MagneticVectorListType_MagneticVector_currArrayIndex < iso2MagneticVectorListType->MagneticVector.arrayLen ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ if(errn == 0) {
+ errn = encode_iso2MagneticVectorType(stream, &iso2MagneticVectorListType->MagneticVector.array [iso2MagneticVectorListType_MagneticVector_currArrayIndex++]);
+ }
+ grammarID = 104;
+ } else if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 104:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MagneticVector), END_ELEMENT] */
+ if (iso2MagneticVectorListType_MagneticVector_currArrayIndex < iso2MagneticVectorListType->MagneticVector.arrayLen ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ if(errn == 0) {
+ errn = encode_iso2MagneticVectorType(stream, &iso2MagneticVectorListType->MagneticVector.array [iso2MagneticVectorListType_MagneticVector_currArrayIndex++]);
+ }
+ grammarID = 105;
+ } else if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 105:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MagneticVector), END_ELEMENT] */
+ if (iso2MagneticVectorListType_MagneticVector_currArrayIndex < iso2MagneticVectorListType->MagneticVector.arrayLen ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ if(errn == 0) {
+ errn = encode_iso2MagneticVectorType(stream, &iso2MagneticVectorListType->MagneticVector.array [iso2MagneticVectorListType_MagneticVector_currArrayIndex++]);
+ }
+ grammarID = 106;
+ } else if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 106:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MagneticVector), END_ELEMENT] */
+ if (iso2MagneticVectorListType_MagneticVector_currArrayIndex < iso2MagneticVectorListType->MagneticVector.arrayLen ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ if(errn == 0) {
+ errn = encode_iso2MagneticVectorType(stream, &iso2MagneticVectorListType->MagneticVector.array [iso2MagneticVectorListType_MagneticVector_currArrayIndex++]);
+ }
+ grammarID = 107;
+ } else if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 107:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MagneticVector), END_ELEMENT] */
+ if (iso2MagneticVectorListType_MagneticVector_currArrayIndex < iso2MagneticVectorListType->MagneticVector.arrayLen ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ if(errn == 0) {
+ errn = encode_iso2MagneticVectorType(stream, &iso2MagneticVectorListType->MagneticVector.array [iso2MagneticVectorListType_MagneticVector_currArrayIndex++]);
+ }
+ grammarID = 108;
+ } else if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 108:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MagneticVector), END_ELEMENT] */
+ if (iso2MagneticVectorListType_MagneticVector_currArrayIndex < iso2MagneticVectorListType->MagneticVector.arrayLen ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ if(errn == 0) {
+ errn = encode_iso2MagneticVectorType(stream, &iso2MagneticVectorListType->MagneticVector.array [iso2MagneticVectorListType_MagneticVector_currArrayIndex++]);
+ }
+ grammarID = 109;
+ } else if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 109:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MagneticVector), END_ELEMENT] */
+ if (iso2MagneticVectorListType_MagneticVector_currArrayIndex < iso2MagneticVectorListType->MagneticVector.arrayLen ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ if(errn == 0) {
+ errn = encode_iso2MagneticVectorType(stream, &iso2MagneticVectorListType->MagneticVector.array [iso2MagneticVectorListType_MagneticVector_currArrayIndex++]);
+ }
+ grammarID = 110;
+ } else if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 110:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MagneticVector), END_ELEMENT] */
+ if (iso2MagneticVectorListType_MagneticVector_currArrayIndex < iso2MagneticVectorListType->MagneticVector.arrayLen ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ if(errn == 0) {
+ errn = encode_iso2MagneticVectorType(stream, &iso2MagneticVectorListType->MagneticVector.array [iso2MagneticVectorListType_MagneticVector_currArrayIndex++]);
+ }
+ grammarID = 111;
+ } else if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 111:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MagneticVector), END_ELEMENT] */
+ if (iso2MagneticVectorListType_MagneticVector_currArrayIndex < iso2MagneticVectorListType->MagneticVector.arrayLen ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ if(errn == 0) {
+ errn = encode_iso2MagneticVectorType(stream, &iso2MagneticVectorListType->MagneticVector.array [iso2MagneticVectorListType_MagneticVector_currArrayIndex++]);
+ }
+ grammarID = 112;
+ } else if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 112:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MagneticVector), END_ELEMENT] */
+ if (iso2MagneticVectorListType_MagneticVector_currArrayIndex < iso2MagneticVectorListType->MagneticVector.arrayLen ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ if(errn == 0) {
+ errn = encode_iso2MagneticVectorType(stream, &iso2MagneticVectorListType->MagneticVector.array [iso2MagneticVectorListType_MagneticVector_currArrayIndex++]);
+ }
+ grammarID = 113;
+ } else if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 113:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MagneticVector), END_ELEMENT] */
+ if (iso2MagneticVectorListType_MagneticVector_currArrayIndex < iso2MagneticVectorListType->MagneticVector.arrayLen ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ if(errn == 0) {
+ errn = encode_iso2MagneticVectorType(stream, &iso2MagneticVectorListType->MagneticVector.array [iso2MagneticVectorListType_MagneticVector_currArrayIndex++]);
+ }
+ grammarID = 114;
+ } else if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 114:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MagneticVector), END_ELEMENT] */
+ if (iso2MagneticVectorListType_MagneticVector_currArrayIndex < iso2MagneticVectorListType->MagneticVector.arrayLen ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ if(errn == 0) {
+ errn = encode_iso2MagneticVectorType(stream, &iso2MagneticVectorListType->MagneticVector.array [iso2MagneticVectorListType_MagneticVector_currArrayIndex++]);
+ }
+ grammarID = 115;
+ } else if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 115:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MagneticVector), END_ELEMENT] */
+ if (iso2MagneticVectorListType_MagneticVector_currArrayIndex < iso2MagneticVectorListType->MagneticVector.arrayLen ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ if(errn == 0) {
+ errn = encode_iso2MagneticVectorType(stream, &iso2MagneticVectorListType->MagneticVector.array [iso2MagneticVectorListType_MagneticVector_currArrayIndex++]);
+ }
+ grammarID = 116;
+ } else if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 116:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MagneticVector), END_ELEMENT] */
+ if (iso2MagneticVectorListType_MagneticVector_currArrayIndex < iso2MagneticVectorListType->MagneticVector.arrayLen ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ if(errn == 0) {
+ errn = encode_iso2MagneticVectorType(stream, &iso2MagneticVectorListType->MagneticVector.array [iso2MagneticVectorListType_MagneticVector_currArrayIndex++]);
+ }
+ grammarID = 117;
+ } else if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 117:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MagneticVector), END_ELEMENT] */
+ if (iso2MagneticVectorListType_MagneticVector_currArrayIndex < iso2MagneticVectorListType->MagneticVector.arrayLen ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ if(errn == 0) {
+ errn = encode_iso2MagneticVectorType(stream, &iso2MagneticVectorListType->MagneticVector.array [iso2MagneticVectorListType_MagneticVector_currArrayIndex++]);
+ }
+ grammarID = 118;
+ } else if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 118:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MagneticVector), END_ELEMENT] */
+ if (iso2MagneticVectorListType_MagneticVector_currArrayIndex < iso2MagneticVectorListType->MagneticVector.arrayLen ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ if(errn == 0) {
+ errn = encode_iso2MagneticVectorType(stream, &iso2MagneticVectorListType->MagneticVector.array [iso2MagneticVectorListType_MagneticVector_currArrayIndex++]);
+ }
+ grammarID = 119;
+ } else if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 119:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MagneticVector), END_ELEMENT] */
+ if (iso2MagneticVectorListType_MagneticVector_currArrayIndex < iso2MagneticVectorListType->MagneticVector.arrayLen ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ if(errn == 0) {
+ errn = encode_iso2MagneticVectorType(stream, &iso2MagneticVectorListType->MagneticVector.array [iso2MagneticVectorListType_MagneticVector_currArrayIndex++]);
+ }
+ grammarID = 120;
+ } else if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 120:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MagneticVector), END_ELEMENT] */
+ if (iso2MagneticVectorListType_MagneticVector_currArrayIndex < iso2MagneticVectorListType->MagneticVector.arrayLen ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ if(errn == 0) {
+ errn = encode_iso2MagneticVectorType(stream, &iso2MagneticVectorListType->MagneticVector.array [iso2MagneticVectorListType_MagneticVector_currArrayIndex++]);
+ }
+ grammarID = 121;
+ } else if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 121:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MagneticVector), END_ELEMENT] */
+ if (iso2MagneticVectorListType_MagneticVector_currArrayIndex < iso2MagneticVectorListType->MagneticVector.arrayLen ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ if(errn == 0) {
+ errn = encode_iso2MagneticVectorType(stream, &iso2MagneticVectorListType->MagneticVector.array [iso2MagneticVectorListType_MagneticVector_currArrayIndex++]);
+ }
+ grammarID = 122;
+ } else if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 122:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MagneticVector), END_ELEMENT] */
+ if (iso2MagneticVectorListType_MagneticVector_currArrayIndex < iso2MagneticVectorListType->MagneticVector.arrayLen ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ if(errn == 0) {
+ errn = encode_iso2MagneticVectorType(stream, &iso2MagneticVectorListType->MagneticVector.array [iso2MagneticVectorListType_MagneticVector_currArrayIndex++]);
+ }
+ grammarID = 123;
+ } else if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 123:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MagneticVector), END_ELEMENT] */
+ if (iso2MagneticVectorListType_MagneticVector_currArrayIndex < iso2MagneticVectorListType->MagneticVector.arrayLen ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ if(errn == 0) {
+ errn = encode_iso2MagneticVectorType(stream, &iso2MagneticVectorListType->MagneticVector.array [iso2MagneticVectorListType_MagneticVector_currArrayIndex++]);
+ }
+ grammarID = 124;
+ } else if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 124:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MagneticVector), END_ELEMENT] */
+ if (iso2MagneticVectorListType_MagneticVector_currArrayIndex < iso2MagneticVectorListType->MagneticVector.arrayLen ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ if(errn == 0) {
+ errn = encode_iso2MagneticVectorType(stream, &iso2MagneticVectorListType->MagneticVector.array [iso2MagneticVectorListType_MagneticVector_currArrayIndex++]);
+ }
+ grammarID = 125;
+ } else if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 125:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MagneticVector), END_ELEMENT] */
+ if (iso2MagneticVectorListType_MagneticVector_currArrayIndex < iso2MagneticVectorListType->MagneticVector.arrayLen ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ if(errn == 0) {
+ errn = encode_iso2MagneticVectorType(stream, &iso2MagneticVectorListType->MagneticVector.array [iso2MagneticVectorListType_MagneticVector_currArrayIndex++]);
+ }
+ grammarID = 126;
+ } else if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 126:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MagneticVector), END_ELEMENT] */
+ if (iso2MagneticVectorListType_MagneticVector_currArrayIndex < iso2MagneticVectorListType->MagneticVector.arrayLen ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ if(errn == 0) {
+ errn = encode_iso2MagneticVectorType(stream, &iso2MagneticVectorListType->MagneticVector.array [iso2MagneticVectorListType_MagneticVector_currArrayIndex++]);
+ }
+ grammarID = 127;
+ } else if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 127:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MagneticVector), END_ELEMENT] */
+ if (iso2MagneticVectorListType_MagneticVector_currArrayIndex < iso2MagneticVectorListType->MagneticVector.arrayLen ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ if(errn == 0) {
+ errn = encode_iso2MagneticVectorType(stream, &iso2MagneticVectorListType->MagneticVector.array [iso2MagneticVectorListType_MagneticVector_currArrayIndex++]);
+ }
+ grammarID = 128;
+ } else if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 128:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MagneticVector), END_ELEMENT] */
+ if (iso2MagneticVectorListType_MagneticVector_currArrayIndex < iso2MagneticVectorListType->MagneticVector.arrayLen ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ if(errn == 0) {
+ errn = encode_iso2MagneticVectorType(stream, &iso2MagneticVectorListType->MagneticVector.array [iso2MagneticVectorListType_MagneticVector_currArrayIndex++]);
+ }
+ grammarID = 129;
+ } else if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 129:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MagneticVector), END_ELEMENT] */
+ if (iso2MagneticVectorListType_MagneticVector_currArrayIndex < iso2MagneticVectorListType->MagneticVector.arrayLen ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ if(errn == 0) {
+ errn = encode_iso2MagneticVectorType(stream, &iso2MagneticVectorListType->MagneticVector.array [iso2MagneticVectorListType_MagneticVector_currArrayIndex++]);
+ }
+ grammarID = 130;
+ } else if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 130:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MagneticVector), END_ELEMENT] */
+ if (iso2MagneticVectorListType_MagneticVector_currArrayIndex < iso2MagneticVectorListType->MagneticVector.arrayLen ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ if(errn == 0) {
+ errn = encode_iso2MagneticVectorType(stream, &iso2MagneticVectorListType->MagneticVector.array [iso2MagneticVectorListType_MagneticVector_currArrayIndex++]);
+ }
+ grammarID = 131;
+ } else if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 131:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MagneticVector), END_ELEMENT] */
+ if (iso2MagneticVectorListType_MagneticVector_currArrayIndex < iso2MagneticVectorListType->MagneticVector.arrayLen ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ if(errn == 0) {
+ errn = encode_iso2MagneticVectorType(stream, &iso2MagneticVectorListType->MagneticVector.array [iso2MagneticVectorListType_MagneticVector_currArrayIndex++]);
+ }
+ grammarID = 132;
+ } else if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 132:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MagneticVector), END_ELEMENT] */
+ if (iso2MagneticVectorListType_MagneticVector_currArrayIndex < iso2MagneticVectorListType->MagneticVector.arrayLen ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ if(errn == 0) {
+ errn = encode_iso2MagneticVectorType(stream, &iso2MagneticVectorListType->MagneticVector.array [iso2MagneticVectorListType_MagneticVector_currArrayIndex++]);
+ }
+ grammarID = 133;
+ } else if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 133:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MagneticVector), END_ELEMENT] */
+ if (iso2MagneticVectorListType_MagneticVector_currArrayIndex < iso2MagneticVectorListType->MagneticVector.arrayLen ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ if(errn == 0) {
+ errn = encode_iso2MagneticVectorType(stream, &iso2MagneticVectorListType->MagneticVector.array [iso2MagneticVectorListType_MagneticVector_currArrayIndex++]);
+ }
+ grammarID = 134;
+ } else if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 134:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MagneticVector), END_ELEMENT] */
+ if (iso2MagneticVectorListType_MagneticVector_currArrayIndex < iso2MagneticVectorListType->MagneticVector.arrayLen ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ if(errn == 0) {
+ errn = encode_iso2MagneticVectorType(stream, &iso2MagneticVectorListType->MagneticVector.array [iso2MagneticVectorListType_MagneticVector_currArrayIndex++]);
+ }
+ grammarID = 135;
+ } else if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 135:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MagneticVector), END_ELEMENT] */
+ if (iso2MagneticVectorListType_MagneticVector_currArrayIndex < iso2MagneticVectorListType->MagneticVector.arrayLen ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ if(errn == 0) {
+ errn = encode_iso2MagneticVectorType(stream, &iso2MagneticVectorListType->MagneticVector.array [iso2MagneticVectorListType_MagneticVector_currArrayIndex++]);
+ }
+ grammarID = 136;
+ } else if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 136:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MagneticVector), END_ELEMENT] */
+ if (iso2MagneticVectorListType_MagneticVector_currArrayIndex < iso2MagneticVectorListType->MagneticVector.arrayLen ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ if(errn == 0) {
+ errn = encode_iso2MagneticVectorType(stream, &iso2MagneticVectorListType->MagneticVector.array [iso2MagneticVectorListType_MagneticVector_currArrayIndex++]);
+ }
+ grammarID = 137;
+ } else if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 137:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MagneticVector), END_ELEMENT] */
+ if (iso2MagneticVectorListType_MagneticVector_currArrayIndex < iso2MagneticVectorListType->MagneticVector.arrayLen ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ if(errn == 0) {
+ errn = encode_iso2MagneticVectorType(stream, &iso2MagneticVectorListType->MagneticVector.array [iso2MagneticVectorListType_MagneticVector_currArrayIndex++]);
+ }
+ grammarID = 138;
+ } else if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 138:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MagneticVector), END_ELEMENT] */
+ if (iso2MagneticVectorListType_MagneticVector_currArrayIndex < iso2MagneticVectorListType->MagneticVector.arrayLen ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ if(errn == 0) {
+ errn = encode_iso2MagneticVectorType(stream, &iso2MagneticVectorListType->MagneticVector.array [iso2MagneticVectorListType_MagneticVector_currArrayIndex++]);
+ }
+ grammarID = 139;
+ } else if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 139:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MagneticVector), END_ELEMENT] */
+ if (iso2MagneticVectorListType_MagneticVector_currArrayIndex < iso2MagneticVectorListType->MagneticVector.arrayLen ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ if(errn == 0) {
+ errn = encode_iso2MagneticVectorType(stream, &iso2MagneticVectorListType->MagneticVector.array [iso2MagneticVectorListType_MagneticVector_currArrayIndex++]);
+ }
+ grammarID = 140;
+ } else if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 140:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MagneticVector), END_ELEMENT] */
+ if (iso2MagneticVectorListType_MagneticVector_currArrayIndex < iso2MagneticVectorListType->MagneticVector.arrayLen ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ if(errn == 0) {
+ errn = encode_iso2MagneticVectorType(stream, &iso2MagneticVectorListType->MagneticVector.array [iso2MagneticVectorListType_MagneticVector_currArrayIndex++]);
+ }
+ grammarID = 141;
+ } else if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 141:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MagneticVector), END_ELEMENT] */
+ if (iso2MagneticVectorListType_MagneticVector_currArrayIndex < iso2MagneticVectorListType->MagneticVector.arrayLen ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ if(errn == 0) {
+ errn = encode_iso2MagneticVectorType(stream, &iso2MagneticVectorListType->MagneticVector.array [iso2MagneticVectorListType_MagneticVector_currArrayIndex++]);
+ }
+ grammarID = 142;
+ } else if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 142:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MagneticVector), END_ELEMENT] */
+ if (iso2MagneticVectorListType_MagneticVector_currArrayIndex < iso2MagneticVectorListType->MagneticVector.arrayLen ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ if(errn == 0) {
+ errn = encode_iso2MagneticVectorType(stream, &iso2MagneticVectorListType->MagneticVector.array [iso2MagneticVectorListType_MagneticVector_currArrayIndex++]);
+ }
+ grammarID = 143;
+ } else if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 143:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MagneticVector), END_ELEMENT] */
+ if (iso2MagneticVectorListType_MagneticVector_currArrayIndex < iso2MagneticVectorListType->MagneticVector.arrayLen ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ if(errn == 0) {
+ errn = encode_iso2MagneticVectorType(stream, &iso2MagneticVectorListType->MagneticVector.array [iso2MagneticVectorListType_MagneticVector_currArrayIndex++]);
+ }
+ grammarID = 144;
+ } else if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 144:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MagneticVector), END_ELEMENT] */
+ if (iso2MagneticVectorListType_MagneticVector_currArrayIndex < iso2MagneticVectorListType->MagneticVector.arrayLen ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ if(errn == 0) {
+ errn = encode_iso2MagneticVectorType(stream, &iso2MagneticVectorListType->MagneticVector.array [iso2MagneticVectorListType_MagneticVector_currArrayIndex++]);
+ }
+ grammarID = 145;
+ } else if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 145:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MagneticVector), END_ELEMENT] */
+ if (iso2MagneticVectorListType_MagneticVector_currArrayIndex < iso2MagneticVectorListType->MagneticVector.arrayLen ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ if(errn == 0) {
+ errn = encode_iso2MagneticVectorType(stream, &iso2MagneticVectorListType->MagneticVector.array [iso2MagneticVectorListType_MagneticVector_currArrayIndex++]);
+ }
+ grammarID = 146;
+ } else if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 146:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MagneticVector), END_ELEMENT] */
+ if (iso2MagneticVectorListType_MagneticVector_currArrayIndex < iso2MagneticVectorListType->MagneticVector.arrayLen ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ if(errn == 0) {
+ errn = encode_iso2MagneticVectorType(stream, &iso2MagneticVectorListType->MagneticVector.array [iso2MagneticVectorListType_MagneticVector_currArrayIndex++]);
+ }
+ grammarID = 147;
+ } else if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 147:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MagneticVector), END_ELEMENT] */
+ if (iso2MagneticVectorListType_MagneticVector_currArrayIndex < iso2MagneticVectorListType->MagneticVector.arrayLen ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ if(errn == 0) {
+ errn = encode_iso2MagneticVectorType(stream, &iso2MagneticVectorListType->MagneticVector.array [iso2MagneticVectorListType_MagneticVector_currArrayIndex++]);
+ }
+ grammarID = 148;
+ } else if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 148:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MagneticVector), END_ELEMENT] */
+ if (iso2MagneticVectorListType_MagneticVector_currArrayIndex < iso2MagneticVectorListType->MagneticVector.arrayLen ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ if(errn == 0) {
+ errn = encode_iso2MagneticVectorType(stream, &iso2MagneticVectorListType->MagneticVector.array [iso2MagneticVectorListType_MagneticVector_currArrayIndex++]);
+ }
+ grammarID = 149;
+ } else if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 149:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MagneticVector), END_ELEMENT] */
+ if (iso2MagneticVectorListType_MagneticVector_currArrayIndex < iso2MagneticVectorListType->MagneticVector.arrayLen ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ if(errn == 0) {
+ errn = encode_iso2MagneticVectorType(stream, &iso2MagneticVectorListType->MagneticVector.array [iso2MagneticVectorListType_MagneticVector_currArrayIndex++]);
+ }
+ grammarID = 150;
+ } else if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 150:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MagneticVector), END_ELEMENT] */
+ if (iso2MagneticVectorListType_MagneticVector_currArrayIndex < iso2MagneticVectorListType->MagneticVector.arrayLen ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ if(errn == 0) {
+ errn = encode_iso2MagneticVectorType(stream, &iso2MagneticVectorListType->MagneticVector.array [iso2MagneticVectorListType_MagneticVector_currArrayIndex++]);
+ }
+ grammarID = 151;
+ } else if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 151:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MagneticVector), END_ELEMENT] */
+ if (iso2MagneticVectorListType_MagneticVector_currArrayIndex < iso2MagneticVectorListType->MagneticVector.arrayLen ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ if(errn == 0) {
+ errn = encode_iso2MagneticVectorType(stream, &iso2MagneticVectorListType->MagneticVector.array [iso2MagneticVectorListType_MagneticVector_currArrayIndex++]);
+ }
+ grammarID = 152;
+ } else if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 152:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MagneticVector), END_ELEMENT] */
+ if (iso2MagneticVectorListType_MagneticVector_currArrayIndex < iso2MagneticVectorListType->MagneticVector.arrayLen ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ if(errn == 0) {
+ errn = encode_iso2MagneticVectorType(stream, &iso2MagneticVectorListType->MagneticVector.array [iso2MagneticVectorListType_MagneticVector_currArrayIndex++]);
+ }
+ grammarID = 153;
+ } else if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 153:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MagneticVector), END_ELEMENT] */
+ if (iso2MagneticVectorListType_MagneticVector_currArrayIndex < iso2MagneticVectorListType->MagneticVector.arrayLen ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ if(errn == 0) {
+ errn = encode_iso2MagneticVectorType(stream, &iso2MagneticVectorListType->MagneticVector.array [iso2MagneticVectorListType_MagneticVector_currArrayIndex++]);
+ }
+ grammarID = 154;
+ } else if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 154:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MagneticVector), END_ELEMENT] */
+ if (iso2MagneticVectorListType_MagneticVector_currArrayIndex < iso2MagneticVectorListType->MagneticVector.arrayLen ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ if(errn == 0) {
+ errn = encode_iso2MagneticVectorType(stream, &iso2MagneticVectorListType->MagneticVector.array [iso2MagneticVectorListType_MagneticVector_currArrayIndex++]);
+ }
+ grammarID = 155;
+ } else if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 155:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MagneticVector), END_ELEMENT] */
+ if (iso2MagneticVectorListType_MagneticVector_currArrayIndex < iso2MagneticVectorListType->MagneticVector.arrayLen ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ if(errn == 0) {
+ errn = encode_iso2MagneticVectorType(stream, &iso2MagneticVectorListType->MagneticVector.array [iso2MagneticVectorListType_MagneticVector_currArrayIndex++]);
+ }
+ grammarID = 156;
+ } else if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 156:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MagneticVector), END_ELEMENT] */
+ if (iso2MagneticVectorListType_MagneticVector_currArrayIndex < iso2MagneticVectorListType->MagneticVector.arrayLen ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ if(errn == 0) {
+ errn = encode_iso2MagneticVectorType(stream, &iso2MagneticVectorListType->MagneticVector.array [iso2MagneticVectorListType_MagneticVector_currArrayIndex++]);
+ }
+ grammarID = 157;
+ } else if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 157:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MagneticVector), END_ELEMENT] */
+ if (iso2MagneticVectorListType_MagneticVector_currArrayIndex < iso2MagneticVectorListType->MagneticVector.arrayLen ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ if(errn == 0) {
+ errn = encode_iso2MagneticVectorType(stream, &iso2MagneticVectorListType->MagneticVector.array [iso2MagneticVectorListType_MagneticVector_currArrayIndex++]);
+ }
+ grammarID = 158;
+ } else if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 158:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MagneticVector), END_ELEMENT] */
+ if (iso2MagneticVectorListType_MagneticVector_currArrayIndex < iso2MagneticVectorListType->MagneticVector.arrayLen ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ if(errn == 0) {
+ errn = encode_iso2MagneticVectorType(stream, &iso2MagneticVectorListType->MagneticVector.array [iso2MagneticVectorListType_MagneticVector_currArrayIndex++]);
+ }
+ grammarID = 159;
+ } else if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 159:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MagneticVector), END_ELEMENT] */
+ if (iso2MagneticVectorListType_MagneticVector_currArrayIndex < iso2MagneticVectorListType->MagneticVector.arrayLen ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ if(errn == 0) {
+ errn = encode_iso2MagneticVectorType(stream, &iso2MagneticVectorListType->MagneticVector.array [iso2MagneticVectorListType_MagneticVector_currArrayIndex++]);
+ }
+ grammarID = 160;
+ } else if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 160:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MagneticVector), END_ELEMENT] */
+ if (iso2MagneticVectorListType_MagneticVector_currArrayIndex < iso2MagneticVectorListType->MagneticVector.arrayLen ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ if(errn == 0) {
+ errn = encode_iso2MagneticVectorType(stream, &iso2MagneticVectorListType->MagneticVector.array [iso2MagneticVectorListType_MagneticVector_currArrayIndex++]);
+ }
+ grammarID = 161;
+ } else if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 161:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MagneticVector), END_ELEMENT] */
+ if (iso2MagneticVectorListType_MagneticVector_currArrayIndex < iso2MagneticVectorListType->MagneticVector.arrayLen ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ if(errn == 0) {
+ errn = encode_iso2MagneticVectorType(stream, &iso2MagneticVectorListType->MagneticVector.array [iso2MagneticVectorListType_MagneticVector_currArrayIndex++]);
+ }
+ grammarID = 162;
+ } else if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 162:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MagneticVector), END_ELEMENT] */
+ if (iso2MagneticVectorListType_MagneticVector_currArrayIndex < iso2MagneticVectorListType->MagneticVector.arrayLen ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ if(errn == 0) {
+ errn = encode_iso2MagneticVectorType(stream, &iso2MagneticVectorListType->MagneticVector.array [iso2MagneticVectorListType_MagneticVector_currArrayIndex++]);
+ }
+ grammarID = 163;
+ } else if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 163:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MagneticVector), END_ELEMENT] */
+ if (iso2MagneticVectorListType_MagneticVector_currArrayIndex < iso2MagneticVectorListType->MagneticVector.arrayLen ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ if(errn == 0) {
+ errn = encode_iso2MagneticVectorType(stream, &iso2MagneticVectorListType->MagneticVector.array [iso2MagneticVectorListType_MagneticVector_currArrayIndex++]);
+ }
+ grammarID = 164;
+ } else if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 164:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MagneticVector), END_ELEMENT] */
+ if (iso2MagneticVectorListType_MagneticVector_currArrayIndex < iso2MagneticVectorListType->MagneticVector.arrayLen ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ if(errn == 0) {
+ errn = encode_iso2MagneticVectorType(stream, &iso2MagneticVectorListType->MagneticVector.array [iso2MagneticVectorListType_MagneticVector_currArrayIndex++]);
+ }
+ grammarID = 165;
+ } else if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 165:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MagneticVector), END_ELEMENT] */
+ if (iso2MagneticVectorListType_MagneticVector_currArrayIndex < iso2MagneticVectorListType->MagneticVector.arrayLen ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ if(errn == 0) {
+ errn = encode_iso2MagneticVectorType(stream, &iso2MagneticVectorListType->MagneticVector.array [iso2MagneticVectorListType_MagneticVector_currArrayIndex++]);
+ }
+ grammarID = 166;
+ } else if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 166:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MagneticVector), END_ELEMENT] */
+ if (iso2MagneticVectorListType_MagneticVector_currArrayIndex < iso2MagneticVectorListType->MagneticVector.arrayLen ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ if(errn == 0) {
+ errn = encode_iso2MagneticVectorType(stream, &iso2MagneticVectorListType->MagneticVector.array [iso2MagneticVectorListType_MagneticVector_currArrayIndex++]);
+ }
+ grammarID = 167;
+ } else if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 167:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MagneticVector), END_ELEMENT] */
+ if (iso2MagneticVectorListType_MagneticVector_currArrayIndex < iso2MagneticVectorListType->MagneticVector.arrayLen ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ if(errn == 0) {
+ errn = encode_iso2MagneticVectorType(stream, &iso2MagneticVectorListType->MagneticVector.array [iso2MagneticVectorListType_MagneticVector_currArrayIndex++]);
+ }
+ grammarID = 168;
+ } else if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 168:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MagneticVector), END_ELEMENT] */
+ if (iso2MagneticVectorListType_MagneticVector_currArrayIndex < iso2MagneticVectorListType->MagneticVector.arrayLen ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ if(errn == 0) {
+ errn = encode_iso2MagneticVectorType(stream, &iso2MagneticVectorListType->MagneticVector.array [iso2MagneticVectorListType_MagneticVector_currArrayIndex++]);
+ }
+ grammarID = 169;
+ } else if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 169:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MagneticVector), END_ELEMENT] */
+ if (iso2MagneticVectorListType_MagneticVector_currArrayIndex < iso2MagneticVectorListType->MagneticVector.arrayLen ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ if(errn == 0) {
+ errn = encode_iso2MagneticVectorType(stream, &iso2MagneticVectorListType->MagneticVector.array [iso2MagneticVectorListType_MagneticVector_currArrayIndex++]);
+ }
+ grammarID = 170;
+ } else if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 170:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MagneticVector), END_ELEMENT] */
+ if (iso2MagneticVectorListType_MagneticVector_currArrayIndex < iso2MagneticVectorListType->MagneticVector.arrayLen ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ if(errn == 0) {
+ errn = encode_iso2MagneticVectorType(stream, &iso2MagneticVectorListType->MagneticVector.array [iso2MagneticVectorListType_MagneticVector_currArrayIndex++]);
+ }
+ grammarID = 171;
+ } else if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 171:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MagneticVector), END_ELEMENT] */
+ if (iso2MagneticVectorListType_MagneticVector_currArrayIndex < iso2MagneticVectorListType->MagneticVector.arrayLen ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ if(errn == 0) {
+ errn = encode_iso2MagneticVectorType(stream, &iso2MagneticVectorListType->MagneticVector.array [iso2MagneticVectorListType_MagneticVector_currArrayIndex++]);
+ }
+ grammarID = 172;
+ } else if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 172:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MagneticVector), END_ELEMENT] */
+ if (iso2MagneticVectorListType_MagneticVector_currArrayIndex < iso2MagneticVectorListType->MagneticVector.arrayLen ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ if(errn == 0) {
+ errn = encode_iso2MagneticVectorType(stream, &iso2MagneticVectorListType->MagneticVector.array [iso2MagneticVectorListType_MagneticVector_currArrayIndex++]);
+ }
+ grammarID = 173;
+ } else if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 173:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MagneticVector), END_ELEMENT] */
+ if (iso2MagneticVectorListType_MagneticVector_currArrayIndex < iso2MagneticVectorListType->MagneticVector.arrayLen ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ if(errn == 0) {
+ errn = encode_iso2MagneticVectorType(stream, &iso2MagneticVectorListType->MagneticVector.array [iso2MagneticVectorListType_MagneticVector_currArrayIndex++]);
+ }
+ grammarID = 174;
+ } else if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 174:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MagneticVector), END_ELEMENT] */
+ if (iso2MagneticVectorListType_MagneticVector_currArrayIndex < iso2MagneticVectorListType->MagneticVector.arrayLen ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ if(errn == 0) {
+ errn = encode_iso2MagneticVectorType(stream, &iso2MagneticVectorListType->MagneticVector.array [iso2MagneticVectorListType_MagneticVector_currArrayIndex++]);
+ }
+ grammarID = 175;
+ } else if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 175:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MagneticVector), END_ELEMENT] */
+ if (iso2MagneticVectorListType_MagneticVector_currArrayIndex < iso2MagneticVectorListType->MagneticVector.arrayLen ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ if(errn == 0) {
+ errn = encode_iso2MagneticVectorType(stream, &iso2MagneticVectorListType->MagneticVector.array [iso2MagneticVectorListType_MagneticVector_currArrayIndex++]);
+ }
+ grammarID = 176;
+ } else if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 176:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MagneticVector), END_ELEMENT] */
+ if (iso2MagneticVectorListType_MagneticVector_currArrayIndex < iso2MagneticVectorListType->MagneticVector.arrayLen ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ if(errn == 0) {
+ errn = encode_iso2MagneticVectorType(stream, &iso2MagneticVectorListType->MagneticVector.array [iso2MagneticVectorListType_MagneticVector_currArrayIndex++]);
+ }
+ grammarID = 177;
+ } else if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 177:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MagneticVector), END_ELEMENT] */
+ if (iso2MagneticVectorListType_MagneticVector_currArrayIndex < iso2MagneticVectorListType->MagneticVector.arrayLen ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ if(errn == 0) {
+ errn = encode_iso2MagneticVectorType(stream, &iso2MagneticVectorListType->MagneticVector.array [iso2MagneticVectorListType_MagneticVector_currArrayIndex++]);
+ }
+ grammarID = 178;
+ } else if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 178:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MagneticVector), END_ELEMENT] */
+ if (iso2MagneticVectorListType_MagneticVector_currArrayIndex < iso2MagneticVectorListType->MagneticVector.arrayLen ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ if(errn == 0) {
+ errn = encode_iso2MagneticVectorType(stream, &iso2MagneticVectorListType->MagneticVector.array [iso2MagneticVectorListType_MagneticVector_currArrayIndex++]);
+ }
+ grammarID = 179;
+ } else if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 179:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MagneticVector), END_ELEMENT] */
+ if (iso2MagneticVectorListType_MagneticVector_currArrayIndex < iso2MagneticVectorListType->MagneticVector.arrayLen ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ if(errn == 0) {
+ errn = encode_iso2MagneticVectorType(stream, &iso2MagneticVectorListType->MagneticVector.array [iso2MagneticVectorListType_MagneticVector_currArrayIndex++]);
+ }
+ grammarID = 180;
+ } else if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 180:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MagneticVector), END_ELEMENT] */
+ if (iso2MagneticVectorListType_MagneticVector_currArrayIndex < iso2MagneticVectorListType->MagneticVector.arrayLen ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ if(errn == 0) {
+ errn = encode_iso2MagneticVectorType(stream, &iso2MagneticVectorListType->MagneticVector.array [iso2MagneticVectorListType_MagneticVector_currArrayIndex++]);
+ }
+ grammarID = 181;
+ } else if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 181:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MagneticVector), END_ELEMENT] */
+ if (iso2MagneticVectorListType_MagneticVector_currArrayIndex < iso2MagneticVectorListType->MagneticVector.arrayLen ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ if(errn == 0) {
+ errn = encode_iso2MagneticVectorType(stream, &iso2MagneticVectorListType->MagneticVector.array [iso2MagneticVectorListType_MagneticVector_currArrayIndex++]);
+ }
+ grammarID = 182;
+ } else if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 182:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MagneticVector), END_ELEMENT] */
+ if (iso2MagneticVectorListType_MagneticVector_currArrayIndex < iso2MagneticVectorListType->MagneticVector.arrayLen ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ if(errn == 0) {
+ errn = encode_iso2MagneticVectorType(stream, &iso2MagneticVectorListType->MagneticVector.array [iso2MagneticVectorListType_MagneticVector_currArrayIndex++]);
+ }
+ grammarID = 183;
+ } else if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 183:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MagneticVector), END_ELEMENT] */
+ if (iso2MagneticVectorListType_MagneticVector_currArrayIndex < iso2MagneticVectorListType->MagneticVector.arrayLen ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ if(errn == 0) {
+ errn = encode_iso2MagneticVectorType(stream, &iso2MagneticVectorListType->MagneticVector.array [iso2MagneticVectorListType_MagneticVector_currArrayIndex++]);
+ }
+ grammarID = 184;
+ } else if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 184:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MagneticVector), END_ELEMENT] */
+ if (iso2MagneticVectorListType_MagneticVector_currArrayIndex < iso2MagneticVectorListType->MagneticVector.arrayLen ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ if(errn == 0) {
+ errn = encode_iso2MagneticVectorType(stream, &iso2MagneticVectorListType->MagneticVector.array [iso2MagneticVectorListType_MagneticVector_currArrayIndex++]);
+ }
+ grammarID = 185;
+ } else if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 185:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MagneticVector), END_ELEMENT] */
+ if (iso2MagneticVectorListType_MagneticVector_currArrayIndex < iso2MagneticVectorListType->MagneticVector.arrayLen ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ if(errn == 0) {
+ errn = encode_iso2MagneticVectorType(stream, &iso2MagneticVectorListType->MagneticVector.array [iso2MagneticVectorListType_MagneticVector_currArrayIndex++]);
+ }
+ grammarID = 186;
+ } else if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 186:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MagneticVector), END_ELEMENT] */
+ if (iso2MagneticVectorListType_MagneticVector_currArrayIndex < iso2MagneticVectorListType->MagneticVector.arrayLen ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ if(errn == 0) {
+ errn = encode_iso2MagneticVectorType(stream, &iso2MagneticVectorListType->MagneticVector.array [iso2MagneticVectorListType_MagneticVector_currArrayIndex++]);
+ }
+ grammarID = 187;
+ } else if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 187:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MagneticVector), END_ELEMENT] */
+ if (iso2MagneticVectorListType_MagneticVector_currArrayIndex < iso2MagneticVectorListType->MagneticVector.arrayLen ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ if(errn == 0) {
+ errn = encode_iso2MagneticVectorType(stream, &iso2MagneticVectorListType->MagneticVector.array [iso2MagneticVectorListType_MagneticVector_currArrayIndex++]);
+ }
+ grammarID = 188;
+ } else if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 188:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MagneticVector), END_ELEMENT] */
+ if (iso2MagneticVectorListType_MagneticVector_currArrayIndex < iso2MagneticVectorListType->MagneticVector.arrayLen ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ if(errn == 0) {
+ errn = encode_iso2MagneticVectorType(stream, &iso2MagneticVectorListType->MagneticVector.array [iso2MagneticVectorListType_MagneticVector_currArrayIndex++]);
+ }
+ grammarID = 189;
+ } else if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 189:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MagneticVector), END_ELEMENT] */
+ if (iso2MagneticVectorListType_MagneticVector_currArrayIndex < iso2MagneticVectorListType->MagneticVector.arrayLen ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ if(errn == 0) {
+ errn = encode_iso2MagneticVectorType(stream, &iso2MagneticVectorListType->MagneticVector.array [iso2MagneticVectorListType_MagneticVector_currArrayIndex++]);
+ }
+ grammarID = 190;
+ } else if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 190:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MagneticVector), END_ELEMENT] */
+ if (iso2MagneticVectorListType_MagneticVector_currArrayIndex < iso2MagneticVectorListType->MagneticVector.arrayLen ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ if(errn == 0) {
+ errn = encode_iso2MagneticVectorType(stream, &iso2MagneticVectorListType->MagneticVector.array [iso2MagneticVectorListType_MagneticVector_currArrayIndex++]);
+ }
+ grammarID = 191;
+ } else if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 191:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MagneticVector), END_ELEMENT] */
+ if (iso2MagneticVectorListType_MagneticVector_currArrayIndex < iso2MagneticVectorListType->MagneticVector.arrayLen ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ if(errn == 0) {
+ errn = encode_iso2MagneticVectorType(stream, &iso2MagneticVectorListType->MagneticVector.array [iso2MagneticVectorListType_MagneticVector_currArrayIndex++]);
+ }
+ grammarID = 192;
+ } else if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 192:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MagneticVector), END_ELEMENT] */
+ if (iso2MagneticVectorListType_MagneticVector_currArrayIndex < iso2MagneticVectorListType->MagneticVector.arrayLen ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ if(errn == 0) {
+ errn = encode_iso2MagneticVectorType(stream, &iso2MagneticVectorListType->MagneticVector.array [iso2MagneticVectorListType_MagneticVector_currArrayIndex++]);
+ }
+ grammarID = 193;
+ } else if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 193:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MagneticVector), END_ELEMENT] */
+ if (iso2MagneticVectorListType_MagneticVector_currArrayIndex < iso2MagneticVectorListType->MagneticVector.arrayLen ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ if(errn == 0) {
+ errn = encode_iso2MagneticVectorType(stream, &iso2MagneticVectorListType->MagneticVector.array [iso2MagneticVectorListType_MagneticVector_currArrayIndex++]);
+ }
+ grammarID = 194;
+ } else if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 194:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MagneticVector), END_ELEMENT] */
+ if (iso2MagneticVectorListType_MagneticVector_currArrayIndex < iso2MagneticVectorListType->MagneticVector.arrayLen ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ if(errn == 0) {
+ errn = encode_iso2MagneticVectorType(stream, &iso2MagneticVectorListType->MagneticVector.array [iso2MagneticVectorListType_MagneticVector_currArrayIndex++]);
+ }
+ grammarID = 195;
+ } else if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 195:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MagneticVector), END_ELEMENT] */
+ if (iso2MagneticVectorListType_MagneticVector_currArrayIndex < iso2MagneticVectorListType->MagneticVector.arrayLen ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ if(errn == 0) {
+ errn = encode_iso2MagneticVectorType(stream, &iso2MagneticVectorListType->MagneticVector.array [iso2MagneticVectorListType_MagneticVector_currArrayIndex++]);
+ }
+ grammarID = 196;
+ } else if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 196:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MagneticVector), END_ELEMENT] */
+ if (iso2MagneticVectorListType_MagneticVector_currArrayIndex < iso2MagneticVectorListType->MagneticVector.arrayLen ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ if(errn == 0) {
+ errn = encode_iso2MagneticVectorType(stream, &iso2MagneticVectorListType->MagneticVector.array [iso2MagneticVectorListType_MagneticVector_currArrayIndex++]);
+ }
+ grammarID = 197;
+ } else if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 197:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MagneticVector), END_ELEMENT] */
+ if (iso2MagneticVectorListType_MagneticVector_currArrayIndex < iso2MagneticVectorListType->MagneticVector.arrayLen ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ if(errn == 0) {
+ errn = encode_iso2MagneticVectorType(stream, &iso2MagneticVectorListType->MagneticVector.array [iso2MagneticVectorListType_MagneticVector_currArrayIndex++]);
+ }
+ grammarID = 198;
+ } else if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 198:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MagneticVector), END_ELEMENT] */
+ if (iso2MagneticVectorListType_MagneticVector_currArrayIndex < iso2MagneticVectorListType->MagneticVector.arrayLen ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ if(errn == 0) {
+ errn = encode_iso2MagneticVectorType(stream, &iso2MagneticVectorListType->MagneticVector.array [iso2MagneticVectorListType_MagneticVector_currArrayIndex++]);
+ }
+ grammarID = 199;
+ } else if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 199:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MagneticVector), END_ELEMENT] */
+ if (iso2MagneticVectorListType_MagneticVector_currArrayIndex < iso2MagneticVectorListType->MagneticVector.arrayLen ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ if(errn == 0) {
+ errn = encode_iso2MagneticVectorType(stream, &iso2MagneticVectorListType->MagneticVector.array [iso2MagneticVectorListType_MagneticVector_currArrayIndex++]);
+ }
+ grammarID = 200;
+ } else if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 200:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MagneticVector), END_ELEMENT] */
+ if (iso2MagneticVectorListType_MagneticVector_currArrayIndex < iso2MagneticVectorListType->MagneticVector.arrayLen ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ if(errn == 0) {
+ errn = encode_iso2MagneticVectorType(stream, &iso2MagneticVectorListType->MagneticVector.array [iso2MagneticVectorListType_MagneticVector_currArrayIndex++]);
+ }
+ grammarID = 201;
+ } else if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 201:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MagneticVector), END_ELEMENT] */
+ if (iso2MagneticVectorListType_MagneticVector_currArrayIndex < iso2MagneticVectorListType->MagneticVector.arrayLen ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ if(errn == 0) {
+ errn = encode_iso2MagneticVectorType(stream, &iso2MagneticVectorListType->MagneticVector.array [iso2MagneticVectorListType_MagneticVector_currArrayIndex++]);
+ }
+ grammarID = 202;
+ } else if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 202:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MagneticVector), END_ELEMENT] */
+ if (iso2MagneticVectorListType_MagneticVector_currArrayIndex < iso2MagneticVectorListType->MagneticVector.arrayLen ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ if(errn == 0) {
+ errn = encode_iso2MagneticVectorType(stream, &iso2MagneticVectorListType->MagneticVector.array [iso2MagneticVectorListType_MagneticVector_currArrayIndex++]);
+ }
+ grammarID = 203;
+ } else if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 203:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MagneticVector), END_ELEMENT] */
+ if (iso2MagneticVectorListType_MagneticVector_currArrayIndex < iso2MagneticVectorListType->MagneticVector.arrayLen ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ if(errn == 0) {
+ errn = encode_iso2MagneticVectorType(stream, &iso2MagneticVectorListType->MagneticVector.array [iso2MagneticVectorListType_MagneticVector_currArrayIndex++]);
+ }
+ grammarID = 204;
+ } else if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 204:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MagneticVector), END_ELEMENT] */
+ if (iso2MagneticVectorListType_MagneticVector_currArrayIndex < iso2MagneticVectorListType->MagneticVector.arrayLen ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ if(errn == 0) {
+ errn = encode_iso2MagneticVectorType(stream, &iso2MagneticVectorListType->MagneticVector.array [iso2MagneticVectorListType_MagneticVector_currArrayIndex++]);
+ }
+ grammarID = 205;
+ } else if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 205:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MagneticVector), END_ELEMENT] */
+ if (iso2MagneticVectorListType_MagneticVector_currArrayIndex < iso2MagneticVectorListType->MagneticVector.arrayLen ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ if(errn == 0) {
+ errn = encode_iso2MagneticVectorType(stream, &iso2MagneticVectorListType->MagneticVector.array [iso2MagneticVectorListType_MagneticVector_currArrayIndex++]);
+ }
+ grammarID = 206;
+ } else if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 206:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MagneticVector), END_ELEMENT] */
+ if (iso2MagneticVectorListType_MagneticVector_currArrayIndex < iso2MagneticVectorListType->MagneticVector.arrayLen ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ if(errn == 0) {
+ errn = encode_iso2MagneticVectorType(stream, &iso2MagneticVectorListType->MagneticVector.array [iso2MagneticVectorListType_MagneticVector_currArrayIndex++]);
+ }
+ grammarID = 207;
+ } else if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 207:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MagneticVector), END_ELEMENT] */
+ if (iso2MagneticVectorListType_MagneticVector_currArrayIndex < iso2MagneticVectorListType->MagneticVector.arrayLen ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ if(errn == 0) {
+ errn = encode_iso2MagneticVectorType(stream, &iso2MagneticVectorListType->MagneticVector.array [iso2MagneticVectorListType_MagneticVector_currArrayIndex++]);
+ }
+ grammarID = 208;
+ } else if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 208:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MagneticVector), END_ELEMENT] */
+ if (iso2MagneticVectorListType_MagneticVector_currArrayIndex < iso2MagneticVectorListType->MagneticVector.arrayLen ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ if(errn == 0) {
+ errn = encode_iso2MagneticVectorType(stream, &iso2MagneticVectorListType->MagneticVector.array [iso2MagneticVectorListType_MagneticVector_currArrayIndex++]);
+ }
+ grammarID = 209;
+ } else if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 209:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MagneticVector), END_ELEMENT] */
+ if (iso2MagneticVectorListType_MagneticVector_currArrayIndex < iso2MagneticVectorListType->MagneticVector.arrayLen ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ if(errn == 0) {
+ errn = encode_iso2MagneticVectorType(stream, &iso2MagneticVectorListType->MagneticVector.array [iso2MagneticVectorListType_MagneticVector_currArrayIndex++]);
+ }
+ grammarID = 210;
+ } else if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 210:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MagneticVector), END_ELEMENT] */
+ if (iso2MagneticVectorListType_MagneticVector_currArrayIndex < iso2MagneticVectorListType->MagneticVector.arrayLen ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ if(errn == 0) {
+ errn = encode_iso2MagneticVectorType(stream, &iso2MagneticVectorListType->MagneticVector.array [iso2MagneticVectorListType_MagneticVector_currArrayIndex++]);
+ }
+ grammarID = 211;
+ } else if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 211:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MagneticVector), END_ELEMENT] */
+ if (iso2MagneticVectorListType_MagneticVector_currArrayIndex < iso2MagneticVectorListType->MagneticVector.arrayLen ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ if(errn == 0) {
+ errn = encode_iso2MagneticVectorType(stream, &iso2MagneticVectorListType->MagneticVector.array [iso2MagneticVectorListType_MagneticVector_currArrayIndex++]);
+ }
+ grammarID = 212;
+ } else if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 212:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MagneticVector), END_ELEMENT] */
+ if (iso2MagneticVectorListType_MagneticVector_currArrayIndex < iso2MagneticVectorListType->MagneticVector.arrayLen ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ if(errn == 0) {
+ errn = encode_iso2MagneticVectorType(stream, &iso2MagneticVectorListType->MagneticVector.array [iso2MagneticVectorListType_MagneticVector_currArrayIndex++]);
+ }
+ grammarID = 213;
+ } else if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 213:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MagneticVector), END_ELEMENT] */
+ if (iso2MagneticVectorListType_MagneticVector_currArrayIndex < iso2MagneticVectorListType->MagneticVector.arrayLen ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ if(errn == 0) {
+ errn = encode_iso2MagneticVectorType(stream, &iso2MagneticVectorListType->MagneticVector.array [iso2MagneticVectorListType_MagneticVector_currArrayIndex++]);
+ }
+ grammarID = 214;
+ } else if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 214:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MagneticVector), END_ELEMENT] */
+ if (iso2MagneticVectorListType_MagneticVector_currArrayIndex < iso2MagneticVectorListType->MagneticVector.arrayLen ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ if(errn == 0) {
+ errn = encode_iso2MagneticVectorType(stream, &iso2MagneticVectorListType->MagneticVector.array [iso2MagneticVectorListType_MagneticVector_currArrayIndex++]);
+ }
+ grammarID = 215;
+ } else if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 215:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MagneticVector), END_ELEMENT] */
+ if (iso2MagneticVectorListType_MagneticVector_currArrayIndex < iso2MagneticVectorListType->MagneticVector.arrayLen ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ if(errn == 0) {
+ errn = encode_iso2MagneticVectorType(stream, &iso2MagneticVectorListType->MagneticVector.array [iso2MagneticVectorListType_MagneticVector_currArrayIndex++]);
+ }
+ grammarID = 216;
+ } else if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 216:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MagneticVector), END_ELEMENT] */
+ if (iso2MagneticVectorListType_MagneticVector_currArrayIndex < iso2MagneticVectorListType->MagneticVector.arrayLen ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ if(errn == 0) {
+ errn = encode_iso2MagneticVectorType(stream, &iso2MagneticVectorListType->MagneticVector.array [iso2MagneticVectorListType_MagneticVector_currArrayIndex++]);
+ }
+ grammarID = 217;
+ } else if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 217:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MagneticVector), END_ELEMENT] */
+ if (iso2MagneticVectorListType_MagneticVector_currArrayIndex < iso2MagneticVectorListType->MagneticVector.arrayLen ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ if(errn == 0) {
+ errn = encode_iso2MagneticVectorType(stream, &iso2MagneticVectorListType->MagneticVector.array [iso2MagneticVectorListType_MagneticVector_currArrayIndex++]);
+ }
+ grammarID = 218;
+ } else if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 218:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MagneticVector), END_ELEMENT] */
+ if (iso2MagneticVectorListType_MagneticVector_currArrayIndex < iso2MagneticVectorListType->MagneticVector.arrayLen ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ if(errn == 0) {
+ errn = encode_iso2MagneticVectorType(stream, &iso2MagneticVectorListType->MagneticVector.array [iso2MagneticVectorListType_MagneticVector_currArrayIndex++]);
+ }
+ grammarID = 219;
+ } else if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 219:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MagneticVector), END_ELEMENT] */
+ if (iso2MagneticVectorListType_MagneticVector_currArrayIndex < iso2MagneticVectorListType->MagneticVector.arrayLen ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ if(errn == 0) {
+ errn = encode_iso2MagneticVectorType(stream, &iso2MagneticVectorListType->MagneticVector.array [iso2MagneticVectorListType_MagneticVector_currArrayIndex++]);
+ }
+ grammarID = 220;
+ } else if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 220:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MagneticVector), END_ELEMENT] */
+ if (iso2MagneticVectorListType_MagneticVector_currArrayIndex < iso2MagneticVectorListType->MagneticVector.arrayLen ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ if(errn == 0) {
+ errn = encode_iso2MagneticVectorType(stream, &iso2MagneticVectorListType->MagneticVector.array [iso2MagneticVectorListType_MagneticVector_currArrayIndex++]);
+ }
+ grammarID = 221;
+ } else if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 221:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MagneticVector), END_ELEMENT] */
+ if (iso2MagneticVectorListType_MagneticVector_currArrayIndex < iso2MagneticVectorListType->MagneticVector.arrayLen ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ if(errn == 0) {
+ errn = encode_iso2MagneticVectorType(stream, &iso2MagneticVectorListType->MagneticVector.array [iso2MagneticVectorListType_MagneticVector_currArrayIndex++]);
+ }
+ grammarID = 222;
+ } else if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 222:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MagneticVector), END_ELEMENT] */
+ if (iso2MagneticVectorListType_MagneticVector_currArrayIndex < iso2MagneticVectorListType->MagneticVector.arrayLen ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ if(errn == 0) {
+ errn = encode_iso2MagneticVectorType(stream, &iso2MagneticVectorListType->MagneticVector.array [iso2MagneticVectorListType_MagneticVector_currArrayIndex++]);
+ }
+ grammarID = 223;
+ } else if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 223:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MagneticVector), END_ELEMENT] */
+ if (iso2MagneticVectorListType_MagneticVector_currArrayIndex < iso2MagneticVectorListType->MagneticVector.arrayLen ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ if(errn == 0) {
+ errn = encode_iso2MagneticVectorType(stream, &iso2MagneticVectorListType->MagneticVector.array [iso2MagneticVectorListType_MagneticVector_currArrayIndex++]);
+ }
+ grammarID = 224;
+ } else if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 224:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MagneticVector), END_ELEMENT] */
+ if (iso2MagneticVectorListType_MagneticVector_currArrayIndex < iso2MagneticVectorListType->MagneticVector.arrayLen ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ if(errn == 0) {
+ errn = encode_iso2MagneticVectorType(stream, &iso2MagneticVectorListType->MagneticVector.array [iso2MagneticVectorListType_MagneticVector_currArrayIndex++]);
+ }
+ grammarID = 225;
+ } else if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 225:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MagneticVector), END_ELEMENT] */
+ if (iso2MagneticVectorListType_MagneticVector_currArrayIndex < iso2MagneticVectorListType->MagneticVector.arrayLen ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ if(errn == 0) {
+ errn = encode_iso2MagneticVectorType(stream, &iso2MagneticVectorListType->MagneticVector.array [iso2MagneticVectorListType_MagneticVector_currArrayIndex++]);
+ }
+ grammarID = 226;
+ } else if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 226:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MagneticVector), END_ELEMENT] */
+ if (iso2MagneticVectorListType_MagneticVector_currArrayIndex < iso2MagneticVectorListType->MagneticVector.arrayLen ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ if(errn == 0) {
+ errn = encode_iso2MagneticVectorType(stream, &iso2MagneticVectorListType->MagneticVector.array [iso2MagneticVectorListType_MagneticVector_currArrayIndex++]);
+ }
+ grammarID = 227;
+ } else if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 227:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MagneticVector), END_ELEMENT] */
+ if (iso2MagneticVectorListType_MagneticVector_currArrayIndex < iso2MagneticVectorListType->MagneticVector.arrayLen ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ if(errn == 0) {
+ errn = encode_iso2MagneticVectorType(stream, &iso2MagneticVectorListType->MagneticVector.array [iso2MagneticVectorListType_MagneticVector_currArrayIndex++]);
+ }
+ grammarID = 228;
+ } else if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 228:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MagneticVector), END_ELEMENT] */
+ if (iso2MagneticVectorListType_MagneticVector_currArrayIndex < iso2MagneticVectorListType->MagneticVector.arrayLen ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ if(errn == 0) {
+ errn = encode_iso2MagneticVectorType(stream, &iso2MagneticVectorListType->MagneticVector.array [iso2MagneticVectorListType_MagneticVector_currArrayIndex++]);
+ }
+ grammarID = 229;
+ } else if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 229:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MagneticVector), END_ELEMENT] */
+ if (iso2MagneticVectorListType_MagneticVector_currArrayIndex < iso2MagneticVectorListType->MagneticVector.arrayLen ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ if(errn == 0) {
+ errn = encode_iso2MagneticVectorType(stream, &iso2MagneticVectorListType->MagneticVector.array [iso2MagneticVectorListType_MagneticVector_currArrayIndex++]);
+ }
+ grammarID = 230;
+ } else if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 230:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MagneticVector), END_ELEMENT] */
+ if (iso2MagneticVectorListType_MagneticVector_currArrayIndex < iso2MagneticVectorListType->MagneticVector.arrayLen ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ if(errn == 0) {
+ errn = encode_iso2MagneticVectorType(stream, &iso2MagneticVectorListType->MagneticVector.array [iso2MagneticVectorListType_MagneticVector_currArrayIndex++]);
+ }
+ grammarID = 231;
+ } else if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 231:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MagneticVector), END_ELEMENT] */
+ if (iso2MagneticVectorListType_MagneticVector_currArrayIndex < iso2MagneticVectorListType->MagneticVector.arrayLen ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ if(errn == 0) {
+ errn = encode_iso2MagneticVectorType(stream, &iso2MagneticVectorListType->MagneticVector.array [iso2MagneticVectorListType_MagneticVector_currArrayIndex++]);
+ }
+ grammarID = 232;
+ } else if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 232:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MagneticVector), END_ELEMENT] */
+ if (iso2MagneticVectorListType_MagneticVector_currArrayIndex < iso2MagneticVectorListType->MagneticVector.arrayLen ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ if(errn == 0) {
+ errn = encode_iso2MagneticVectorType(stream, &iso2MagneticVectorListType->MagneticVector.array [iso2MagneticVectorListType_MagneticVector_currArrayIndex++]);
+ }
+ grammarID = 233;
+ } else if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 233:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MagneticVector), END_ELEMENT] */
+ if (iso2MagneticVectorListType_MagneticVector_currArrayIndex < iso2MagneticVectorListType->MagneticVector.arrayLen ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ if(errn == 0) {
+ errn = encode_iso2MagneticVectorType(stream, &iso2MagneticVectorListType->MagneticVector.array [iso2MagneticVectorListType_MagneticVector_currArrayIndex++]);
+ }
+ grammarID = 234;
+ } else if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 234:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MagneticVector), END_ELEMENT] */
+ if (iso2MagneticVectorListType_MagneticVector_currArrayIndex < iso2MagneticVectorListType->MagneticVector.arrayLen ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ if(errn == 0) {
+ errn = encode_iso2MagneticVectorType(stream, &iso2MagneticVectorListType->MagneticVector.array [iso2MagneticVectorListType_MagneticVector_currArrayIndex++]);
+ }
+ grammarID = 235;
+ } else if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 235:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MagneticVector), END_ELEMENT] */
+ if (iso2MagneticVectorListType_MagneticVector_currArrayIndex < iso2MagneticVectorListType->MagneticVector.arrayLen ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ if(errn == 0) {
+ errn = encode_iso2MagneticVectorType(stream, &iso2MagneticVectorListType->MagneticVector.array [iso2MagneticVectorListType_MagneticVector_currArrayIndex++]);
+ }
+ grammarID = 236;
+ } else if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 236:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MagneticVector), END_ELEMENT] */
+ if (iso2MagneticVectorListType_MagneticVector_currArrayIndex < iso2MagneticVectorListType->MagneticVector.arrayLen ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ if(errn == 0) {
+ errn = encode_iso2MagneticVectorType(stream, &iso2MagneticVectorListType->MagneticVector.array [iso2MagneticVectorListType_MagneticVector_currArrayIndex++]);
+ }
+ grammarID = 237;
+ } else if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 237:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MagneticVector), END_ELEMENT] */
+ if (iso2MagneticVectorListType_MagneticVector_currArrayIndex < iso2MagneticVectorListType->MagneticVector.arrayLen ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ if(errn == 0) {
+ errn = encode_iso2MagneticVectorType(stream, &iso2MagneticVectorListType->MagneticVector.array [iso2MagneticVectorListType_MagneticVector_currArrayIndex++]);
+ }
+ grammarID = 238;
+ } else if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 238:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MagneticVector), END_ELEMENT] */
+ if (iso2MagneticVectorListType_MagneticVector_currArrayIndex < iso2MagneticVectorListType->MagneticVector.arrayLen ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ if(errn == 0) {
+ errn = encode_iso2MagneticVectorType(stream, &iso2MagneticVectorListType->MagneticVector.array [iso2MagneticVectorListType_MagneticVector_currArrayIndex++]);
+ }
+ grammarID = 239;
+ } else if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 239:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MagneticVector), END_ELEMENT] */
+ if (iso2MagneticVectorListType_MagneticVector_currArrayIndex < iso2MagneticVectorListType->MagneticVector.arrayLen ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ if(errn == 0) {
+ errn = encode_iso2MagneticVectorType(stream, &iso2MagneticVectorListType->MagneticVector.array [iso2MagneticVectorListType_MagneticVector_currArrayIndex++]);
+ }
+ grammarID = 240;
+ } else if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 240:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MagneticVector), END_ELEMENT] */
+ if (iso2MagneticVectorListType_MagneticVector_currArrayIndex < iso2MagneticVectorListType->MagneticVector.arrayLen ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ if(errn == 0) {
+ errn = encode_iso2MagneticVectorType(stream, &iso2MagneticVectorListType->MagneticVector.array [iso2MagneticVectorListType_MagneticVector_currArrayIndex++]);
+ }
+ grammarID = 241;
+ } else if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 241:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MagneticVector), END_ELEMENT] */
+ if (iso2MagneticVectorListType_MagneticVector_currArrayIndex < iso2MagneticVectorListType->MagneticVector.arrayLen ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ if(errn == 0) {
+ errn = encode_iso2MagneticVectorType(stream, &iso2MagneticVectorListType->MagneticVector.array [iso2MagneticVectorListType_MagneticVector_currArrayIndex++]);
+ }
+ grammarID = 242;
+ } else if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 242:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MagneticVector), END_ELEMENT] */
+ if (iso2MagneticVectorListType_MagneticVector_currArrayIndex < iso2MagneticVectorListType->MagneticVector.arrayLen ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ if(errn == 0) {
+ errn = encode_iso2MagneticVectorType(stream, &iso2MagneticVectorListType->MagneticVector.array [iso2MagneticVectorListType_MagneticVector_currArrayIndex++]);
+ }
+ grammarID = 243;
+ } else if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 243:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MagneticVector), END_ELEMENT] */
+ if (iso2MagneticVectorListType_MagneticVector_currArrayIndex < iso2MagneticVectorListType->MagneticVector.arrayLen ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ if(errn == 0) {
+ errn = encode_iso2MagneticVectorType(stream, &iso2MagneticVectorListType->MagneticVector.array [iso2MagneticVectorListType_MagneticVector_currArrayIndex++]);
+ }
+ grammarID = 244;
+ } else if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 244:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MagneticVector), END_ELEMENT] */
+ if (iso2MagneticVectorListType_MagneticVector_currArrayIndex < iso2MagneticVectorListType->MagneticVector.arrayLen ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ if(errn == 0) {
+ errn = encode_iso2MagneticVectorType(stream, &iso2MagneticVectorListType->MagneticVector.array [iso2MagneticVectorListType_MagneticVector_currArrayIndex++]);
+ }
+ grammarID = 245;
+ } else if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 245:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MagneticVector), END_ELEMENT] */
+ if (iso2MagneticVectorListType_MagneticVector_currArrayIndex < iso2MagneticVectorListType->MagneticVector.arrayLen ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ if(errn == 0) {
+ errn = encode_iso2MagneticVectorType(stream, &iso2MagneticVectorListType->MagneticVector.array [iso2MagneticVectorListType_MagneticVector_currArrayIndex++]);
+ }
+ grammarID = 246;
+ } else if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 246:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MagneticVector), END_ELEMENT] */
+ if (iso2MagneticVectorListType_MagneticVector_currArrayIndex < iso2MagneticVectorListType->MagneticVector.arrayLen ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ if(errn == 0) {
+ errn = encode_iso2MagneticVectorType(stream, &iso2MagneticVectorListType->MagneticVector.array [iso2MagneticVectorListType_MagneticVector_currArrayIndex++]);
+ }
+ grammarID = 247;
+ } else if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 247:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MagneticVector), END_ELEMENT] */
+ if (iso2MagneticVectorListType_MagneticVector_currArrayIndex < iso2MagneticVectorListType->MagneticVector.arrayLen ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ if(errn == 0) {
+ errn = encode_iso2MagneticVectorType(stream, &iso2MagneticVectorListType->MagneticVector.array [iso2MagneticVectorListType_MagneticVector_currArrayIndex++]);
+ }
+ grammarID = 248;
+ } else if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 248:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MagneticVector), END_ELEMENT] */
+ if (iso2MagneticVectorListType_MagneticVector_currArrayIndex < iso2MagneticVectorListType->MagneticVector.arrayLen ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ if(errn == 0) {
+ errn = encode_iso2MagneticVectorType(stream, &iso2MagneticVectorListType->MagneticVector.array [iso2MagneticVectorListType_MagneticVector_currArrayIndex++]);
+ }
+ grammarID = 249;
+ } else if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 249:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MagneticVector), END_ELEMENT] */
+ if (iso2MagneticVectorListType_MagneticVector_currArrayIndex < iso2MagneticVectorListType->MagneticVector.arrayLen ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ if(errn == 0) {
+ errn = encode_iso2MagneticVectorType(stream, &iso2MagneticVectorListType->MagneticVector.array [iso2MagneticVectorListType_MagneticVector_currArrayIndex++]);
+ }
+ grammarID = 250;
+ } else if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 250:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MagneticVector), END_ELEMENT] */
+ if (iso2MagneticVectorListType_MagneticVector_currArrayIndex < iso2MagneticVectorListType->MagneticVector.arrayLen ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ if(errn == 0) {
+ errn = encode_iso2MagneticVectorType(stream, &iso2MagneticVectorListType->MagneticVector.array [iso2MagneticVectorListType_MagneticVector_currArrayIndex++]);
+ }
+ grammarID = 251;
+ } else if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 251:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MagneticVector), END_ELEMENT] */
+ if (iso2MagneticVectorListType_MagneticVector_currArrayIndex < iso2MagneticVectorListType->MagneticVector.arrayLen ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ if(errn == 0) {
+ errn = encode_iso2MagneticVectorType(stream, &iso2MagneticVectorListType->MagneticVector.array [iso2MagneticVectorListType_MagneticVector_currArrayIndex++]);
+ }
+ grammarID = 252;
+ } else if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 252:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MagneticVector), END_ELEMENT] */
+ if (iso2MagneticVectorListType_MagneticVector_currArrayIndex < iso2MagneticVectorListType->MagneticVector.arrayLen ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ if(errn == 0) {
+ errn = encode_iso2MagneticVectorType(stream, &iso2MagneticVectorListType->MagneticVector.array [iso2MagneticVectorListType_MagneticVector_currArrayIndex++]);
+ }
+ grammarID = 253;
+ } else if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 253:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MagneticVector), END_ELEMENT] */
+ if (iso2MagneticVectorListType_MagneticVector_currArrayIndex < iso2MagneticVectorListType->MagneticVector.arrayLen ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ if(errn == 0) {
+ errn = encode_iso2MagneticVectorType(stream, &iso2MagneticVectorListType->MagneticVector.array [iso2MagneticVectorListType_MagneticVector_currArrayIndex++]);
+ }
+ grammarID = 254;
+ } else if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 254:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MagneticVector), END_ELEMENT] */
+ if (iso2MagneticVectorListType_MagneticVector_currArrayIndex < iso2MagneticVectorListType->MagneticVector.arrayLen ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ if(errn == 0) {
+ errn = encode_iso2MagneticVectorType(stream, &iso2MagneticVectorListType->MagneticVector.array [iso2MagneticVectorListType_MagneticVector_currArrayIndex++]);
+ }
+ grammarID = 255;
+ } else if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 255:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MagneticVector), END_ELEMENT] */
+ if (iso2MagneticVectorListType_MagneticVector_currArrayIndex < iso2MagneticVectorListType->MagneticVector.arrayLen ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ if(errn == 0) {
+ errn = encode_iso2MagneticVectorType(stream, &iso2MagneticVectorListType->MagneticVector.array [iso2MagneticVectorListType_MagneticVector_currArrayIndex++]);
+ }
+ grammarID = 256;
+ } else if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 256:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MagneticVector), END_ELEMENT] */
+ if (iso2MagneticVectorListType_MagneticVector_currArrayIndex < iso2MagneticVectorListType->MagneticVector.arrayLen ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ if(errn == 0) {
+ errn = encode_iso2MagneticVectorType(stream, &iso2MagneticVectorListType->MagneticVector.array [iso2MagneticVectorListType_MagneticVector_currArrayIndex++]);
+ }
+ grammarID = 257;
+ } else if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 257:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MagneticVector), END_ELEMENT] */
+ if (iso2MagneticVectorListType_MagneticVector_currArrayIndex < iso2MagneticVectorListType->MagneticVector.arrayLen ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ if(errn == 0) {
+ errn = encode_iso2MagneticVectorType(stream, &iso2MagneticVectorListType->MagneticVector.array [iso2MagneticVectorListType_MagneticVector_currArrayIndex++]);
+ }
+ grammarID = 258;
+ } else if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 258:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MagneticVector), END_ELEMENT] */
+ if (iso2MagneticVectorListType_MagneticVector_currArrayIndex < iso2MagneticVectorListType->MagneticVector.arrayLen ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ if(errn == 0) {
+ errn = encode_iso2MagneticVectorType(stream, &iso2MagneticVectorListType->MagneticVector.array [iso2MagneticVectorListType_MagneticVector_currArrayIndex++]);
+ }
+ grammarID = 259;
+ } else if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 259:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MagneticVector), END_ELEMENT] */
+ if (iso2MagneticVectorListType_MagneticVector_currArrayIndex < iso2MagneticVectorListType->MagneticVector.arrayLen ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ if(errn == 0) {
+ errn = encode_iso2MagneticVectorType(stream, &iso2MagneticVectorListType->MagneticVector.array [iso2MagneticVectorListType_MagneticVector_currArrayIndex++]);
+ }
+ grammarID = 260;
+ } else if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 260:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MagneticVector), END_ELEMENT] */
+ if (iso2MagneticVectorListType_MagneticVector_currArrayIndex < iso2MagneticVectorListType->MagneticVector.arrayLen ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ if(errn == 0) {
+ errn = encode_iso2MagneticVectorType(stream, &iso2MagneticVectorListType->MagneticVector.array [iso2MagneticVectorListType_MagneticVector_currArrayIndex++]);
+ }
+ grammarID = 261;
+ } else if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 261:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MagneticVector), END_ELEMENT] */
+ if (iso2MagneticVectorListType_MagneticVector_currArrayIndex < iso2MagneticVectorListType->MagneticVector.arrayLen ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ if(errn == 0) {
+ errn = encode_iso2MagneticVectorType(stream, &iso2MagneticVectorListType->MagneticVector.array [iso2MagneticVectorListType_MagneticVector_currArrayIndex++]);
+ }
+ grammarID = 262;
+ } else if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 262:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MagneticVector), END_ELEMENT] */
+ if (iso2MagneticVectorListType_MagneticVector_currArrayIndex < iso2MagneticVectorListType->MagneticVector.arrayLen ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ if(errn == 0) {
+ errn = encode_iso2MagneticVectorType(stream, &iso2MagneticVectorListType->MagneticVector.array [iso2MagneticVectorListType_MagneticVector_currArrayIndex++]);
+ }
+ grammarID = 263;
+ } else if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 263:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MagneticVector), END_ELEMENT] */
+ if (iso2MagneticVectorListType_MagneticVector_currArrayIndex < iso2MagneticVectorListType->MagneticVector.arrayLen ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ if(errn == 0) {
+ errn = encode_iso2MagneticVectorType(stream, &iso2MagneticVectorListType->MagneticVector.array [iso2MagneticVectorListType_MagneticVector_currArrayIndex++]);
+ }
+ grammarID = 264;
+ } else if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 264:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MagneticVector), END_ELEMENT] */
+ if (iso2MagneticVectorListType_MagneticVector_currArrayIndex < iso2MagneticVectorListType->MagneticVector.arrayLen ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ if(errn == 0) {
+ errn = encode_iso2MagneticVectorType(stream, &iso2MagneticVectorListType->MagneticVector.array [iso2MagneticVectorListType_MagneticVector_currArrayIndex++]);
+ }
+ grammarID = 265;
+ } else if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 265:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MagneticVector), END_ELEMENT] */
+ if (iso2MagneticVectorListType_MagneticVector_currArrayIndex < iso2MagneticVectorListType->MagneticVector.arrayLen ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ if(errn == 0) {
+ errn = encode_iso2MagneticVectorType(stream, &iso2MagneticVectorListType->MagneticVector.array [iso2MagneticVectorListType_MagneticVector_currArrayIndex++]);
+ }
+ grammarID = 266;
+ } else if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 266:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MagneticVector), END_ELEMENT] */
+ if (iso2MagneticVectorListType_MagneticVector_currArrayIndex < iso2MagneticVectorListType->MagneticVector.arrayLen ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ if(errn == 0) {
+ errn = encode_iso2MagneticVectorType(stream, &iso2MagneticVectorListType->MagneticVector.array [iso2MagneticVectorListType_MagneticVector_currArrayIndex++]);
+ }
+ grammarID = 267;
+ } else if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 267:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MagneticVector), END_ELEMENT] */
+ if (iso2MagneticVectorListType_MagneticVector_currArrayIndex < iso2MagneticVectorListType->MagneticVector.arrayLen ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ if(errn == 0) {
+ errn = encode_iso2MagneticVectorType(stream, &iso2MagneticVectorListType->MagneticVector.array [iso2MagneticVectorListType_MagneticVector_currArrayIndex++]);
+ }
+ grammarID = 268;
+ } else if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 268:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MagneticVector), END_ELEMENT] */
+ if (iso2MagneticVectorListType_MagneticVector_currArrayIndex < iso2MagneticVectorListType->MagneticVector.arrayLen ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ if(errn == 0) {
+ errn = encode_iso2MagneticVectorType(stream, &iso2MagneticVectorListType->MagneticVector.array [iso2MagneticVectorListType_MagneticVector_currArrayIndex++]);
+ }
+ grammarID = 269;
+ } else if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 269:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MagneticVector), END_ELEMENT] */
+ if (iso2MagneticVectorListType_MagneticVector_currArrayIndex < iso2MagneticVectorListType->MagneticVector.arrayLen ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ if(errn == 0) {
+ errn = encode_iso2MagneticVectorType(stream, &iso2MagneticVectorListType->MagneticVector.array [iso2MagneticVectorListType_MagneticVector_currArrayIndex++]);
+ }
+ grammarID = 270;
+ } else if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 270:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MagneticVector), END_ELEMENT] */
+ if (iso2MagneticVectorListType_MagneticVector_currArrayIndex < iso2MagneticVectorListType->MagneticVector.arrayLen ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ if(errn == 0) {
+ errn = encode_iso2MagneticVectorType(stream, &iso2MagneticVectorListType->MagneticVector.array [iso2MagneticVectorListType_MagneticVector_currArrayIndex++]);
+ }
+ grammarID = 271;
+ } else if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 271:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MagneticVector), END_ELEMENT] */
+ if (iso2MagneticVectorListType_MagneticVector_currArrayIndex < iso2MagneticVectorListType->MagneticVector.arrayLen ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ if(errn == 0) {
+ errn = encode_iso2MagneticVectorType(stream, &iso2MagneticVectorListType->MagneticVector.array [iso2MagneticVectorListType_MagneticVector_currArrayIndex++]);
+ }
+ grammarID = 272;
+ } else if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 272:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MagneticVector), END_ELEMENT] */
+ if (iso2MagneticVectorListType_MagneticVector_currArrayIndex < iso2MagneticVectorListType->MagneticVector.arrayLen ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ if(errn == 0) {
+ errn = encode_iso2MagneticVectorType(stream, &iso2MagneticVectorListType->MagneticVector.array [iso2MagneticVectorListType_MagneticVector_currArrayIndex++]);
+ }
+ grammarID = 273;
+ } else if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 273:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MagneticVector), END_ELEMENT] */
+ if (iso2MagneticVectorListType_MagneticVector_currArrayIndex < iso2MagneticVectorListType->MagneticVector.arrayLen ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ if(errn == 0) {
+ errn = encode_iso2MagneticVectorType(stream, &iso2MagneticVectorListType->MagneticVector.array [iso2MagneticVectorListType_MagneticVector_currArrayIndex++]);
+ }
+ grammarID = 274;
+ } else if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 274:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MagneticVector), END_ELEMENT] */
+ if (iso2MagneticVectorListType_MagneticVector_currArrayIndex < iso2MagneticVectorListType->MagneticVector.arrayLen ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ if(errn == 0) {
+ errn = encode_iso2MagneticVectorType(stream, &iso2MagneticVectorListType->MagneticVector.array [iso2MagneticVectorListType_MagneticVector_currArrayIndex++]);
+ }
+ grammarID = 275;
+ } else if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 275:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MagneticVector), END_ELEMENT] */
+ if (iso2MagneticVectorListType_MagneticVector_currArrayIndex < iso2MagneticVectorListType->MagneticVector.arrayLen ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ if(errn == 0) {
+ errn = encode_iso2MagneticVectorType(stream, &iso2MagneticVectorListType->MagneticVector.array [iso2MagneticVectorListType_MagneticVector_currArrayIndex++]);
+ }
+ grammarID = 276;
+ } else if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 276:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MagneticVector), END_ELEMENT] */
+ if (iso2MagneticVectorListType_MagneticVector_currArrayIndex < iso2MagneticVectorListType->MagneticVector.arrayLen ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ if(errn == 0) {
+ errn = encode_iso2MagneticVectorType(stream, &iso2MagneticVectorListType->MagneticVector.array [iso2MagneticVectorListType_MagneticVector_currArrayIndex++]);
+ }
+ grammarID = 277;
+ } else if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 277:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MagneticVector), END_ELEMENT] */
+ if (iso2MagneticVectorListType_MagneticVector_currArrayIndex < iso2MagneticVectorListType->MagneticVector.arrayLen ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ if(errn == 0) {
+ errn = encode_iso2MagneticVectorType(stream, &iso2MagneticVectorListType->MagneticVector.array [iso2MagneticVectorListType_MagneticVector_currArrayIndex++]);
+ }
+ grammarID = 278;
+ } else if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 278:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MagneticVector), END_ELEMENT] */
+ if (iso2MagneticVectorListType_MagneticVector_currArrayIndex < iso2MagneticVectorListType->MagneticVector.arrayLen ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ if(errn == 0) {
+ errn = encode_iso2MagneticVectorType(stream, &iso2MagneticVectorListType->MagneticVector.array [iso2MagneticVectorListType_MagneticVector_currArrayIndex++]);
+ }
+ grammarID = 279;
+ } else if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 279:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MagneticVector), END_ELEMENT] */
+ if (iso2MagneticVectorListType_MagneticVector_currArrayIndex < iso2MagneticVectorListType->MagneticVector.arrayLen ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ if(errn == 0) {
+ errn = encode_iso2MagneticVectorType(stream, &iso2MagneticVectorListType->MagneticVector.array [iso2MagneticVectorListType_MagneticVector_currArrayIndex++]);
+ }
+ grammarID = 280;
+ } else if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 280:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MagneticVector), END_ELEMENT] */
+ if (iso2MagneticVectorListType_MagneticVector_currArrayIndex < iso2MagneticVectorListType->MagneticVector.arrayLen ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ if(errn == 0) {
+ errn = encode_iso2MagneticVectorType(stream, &iso2MagneticVectorListType->MagneticVector.array [iso2MagneticVectorListType_MagneticVector_currArrayIndex++]);
+ }
+ grammarID = 281;
+ } else if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 281:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MagneticVector), END_ELEMENT] */
+ if (iso2MagneticVectorListType_MagneticVector_currArrayIndex < iso2MagneticVectorListType->MagneticVector.arrayLen ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ if(errn == 0) {
+ errn = encode_iso2MagneticVectorType(stream, &iso2MagneticVectorListType->MagneticVector.array [iso2MagneticVectorListType_MagneticVector_currArrayIndex++]);
+ }
+ grammarID = 282;
+ } else if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 282:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MagneticVector), END_ELEMENT] */
+ if (iso2MagneticVectorListType_MagneticVector_currArrayIndex < iso2MagneticVectorListType->MagneticVector.arrayLen ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ if(errn == 0) {
+ errn = encode_iso2MagneticVectorType(stream, &iso2MagneticVectorListType->MagneticVector.array [iso2MagneticVectorListType_MagneticVector_currArrayIndex++]);
+ }
+ grammarID = 283;
+ } else if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 283:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MagneticVector), END_ELEMENT] */
+ if (iso2MagneticVectorListType_MagneticVector_currArrayIndex < iso2MagneticVectorListType->MagneticVector.arrayLen ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ if(errn == 0) {
+ errn = encode_iso2MagneticVectorType(stream, &iso2MagneticVectorListType->MagneticVector.array [iso2MagneticVectorListType_MagneticVector_currArrayIndex++]);
+ }
+ grammarID = 284;
+ } else if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 284:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MagneticVector), END_ELEMENT] */
+ if (iso2MagneticVectorListType_MagneticVector_currArrayIndex < iso2MagneticVectorListType->MagneticVector.arrayLen ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ if(errn == 0) {
+ errn = encode_iso2MagneticVectorType(stream, &iso2MagneticVectorListType->MagneticVector.array [iso2MagneticVectorListType_MagneticVector_currArrayIndex++]);
+ }
+ grammarID = 285;
+ } else if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 285:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MagneticVector), END_ELEMENT] */
+ if (iso2MagneticVectorListType_MagneticVector_currArrayIndex < iso2MagneticVectorListType->MagneticVector.arrayLen ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ if(errn == 0) {
+ errn = encode_iso2MagneticVectorType(stream, &iso2MagneticVectorListType->MagneticVector.array [iso2MagneticVectorListType_MagneticVector_currArrayIndex++]);
+ }
+ grammarID = 286;
+ } else if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 286:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MagneticVector), END_ELEMENT] */
+ if (iso2MagneticVectorListType_MagneticVector_currArrayIndex < iso2MagneticVectorListType->MagneticVector.arrayLen ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ if(errn == 0) {
+ errn = encode_iso2MagneticVectorType(stream, &iso2MagneticVectorListType->MagneticVector.array [iso2MagneticVectorListType_MagneticVector_currArrayIndex++]);
+ }
+ grammarID = 287;
+ } else if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 287:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MagneticVector), END_ELEMENT] */
+ if (iso2MagneticVectorListType_MagneticVector_currArrayIndex < iso2MagneticVectorListType->MagneticVector.arrayLen ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ if(errn == 0) {
+ errn = encode_iso2MagneticVectorType(stream, &iso2MagneticVectorListType->MagneticVector.array [iso2MagneticVectorListType_MagneticVector_currArrayIndex++]);
+ }
+ grammarID = 288;
+ } else if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 288:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MagneticVector), END_ELEMENT] */
+ if (iso2MagneticVectorListType_MagneticVector_currArrayIndex < iso2MagneticVectorListType->MagneticVector.arrayLen ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ if(errn == 0) {
+ errn = encode_iso2MagneticVectorType(stream, &iso2MagneticVectorListType->MagneticVector.array [iso2MagneticVectorListType_MagneticVector_currArrayIndex++]);
+ }
+ grammarID = 289;
+ } else if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 289:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MagneticVector), END_ELEMENT] */
+ if (iso2MagneticVectorListType_MagneticVector_currArrayIndex < iso2MagneticVectorListType->MagneticVector.arrayLen ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ if(errn == 0) {
+ errn = encode_iso2MagneticVectorType(stream, &iso2MagneticVectorListType->MagneticVector.array [iso2MagneticVectorListType_MagneticVector_currArrayIndex++]);
+ }
+ grammarID = 290;
+ } else if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 290:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MagneticVector), END_ELEMENT] */
+ if (iso2MagneticVectorListType_MagneticVector_currArrayIndex < iso2MagneticVectorListType->MagneticVector.arrayLen ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ if(errn == 0) {
+ errn = encode_iso2MagneticVectorType(stream, &iso2MagneticVectorListType->MagneticVector.array [iso2MagneticVectorListType_MagneticVector_currArrayIndex++]);
+ }
+ grammarID = 291;
+ } else if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 291:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MagneticVector), END_ELEMENT] */
+ if (iso2MagneticVectorListType_MagneticVector_currArrayIndex < iso2MagneticVectorListType->MagneticVector.arrayLen ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ if(errn == 0) {
+ errn = encode_iso2MagneticVectorType(stream, &iso2MagneticVectorListType->MagneticVector.array [iso2MagneticVectorListType_MagneticVector_currArrayIndex++]);
+ }
+ grammarID = 292;
+ } else if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 292:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MagneticVector), END_ELEMENT] */
+ if (iso2MagneticVectorListType_MagneticVector_currArrayIndex < iso2MagneticVectorListType->MagneticVector.arrayLen ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ if(errn == 0) {
+ errn = encode_iso2MagneticVectorType(stream, &iso2MagneticVectorListType->MagneticVector.array [iso2MagneticVectorListType_MagneticVector_currArrayIndex++]);
+ }
+ grammarID = 293;
+ } else if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 293:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MagneticVector), END_ELEMENT] */
+ if (iso2MagneticVectorListType_MagneticVector_currArrayIndex < iso2MagneticVectorListType->MagneticVector.arrayLen ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ if(errn == 0) {
+ errn = encode_iso2MagneticVectorType(stream, &iso2MagneticVectorListType->MagneticVector.array [iso2MagneticVectorListType_MagneticVector_currArrayIndex++]);
+ }
+ grammarID = 294;
+ } else if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 294:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MagneticVector), END_ELEMENT] */
+ if (iso2MagneticVectorListType_MagneticVector_currArrayIndex < iso2MagneticVectorListType->MagneticVector.arrayLen ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ if(errn == 0) {
+ errn = encode_iso2MagneticVectorType(stream, &iso2MagneticVectorListType->MagneticVector.array [iso2MagneticVectorListType_MagneticVector_currArrayIndex++]);
+ }
+ grammarID = 295;
+ } else if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 295:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MagneticVector), END_ELEMENT] */
+ if (iso2MagneticVectorListType_MagneticVector_currArrayIndex < iso2MagneticVectorListType->MagneticVector.arrayLen ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ if(errn == 0) {
+ errn = encode_iso2MagneticVectorType(stream, &iso2MagneticVectorListType->MagneticVector.array [iso2MagneticVectorListType_MagneticVector_currArrayIndex++]);
+ }
+ grammarID = 296;
+ } else if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 296:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MagneticVector), END_ELEMENT] */
+ if (iso2MagneticVectorListType_MagneticVector_currArrayIndex < iso2MagneticVectorListType->MagneticVector.arrayLen ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ if(errn == 0) {
+ errn = encode_iso2MagneticVectorType(stream, &iso2MagneticVectorListType->MagneticVector.array [iso2MagneticVectorListType_MagneticVector_currArrayIndex++]);
+ }
+ grammarID = 297;
+ } else if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 297:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MagneticVector), END_ELEMENT] */
+ if (iso2MagneticVectorListType_MagneticVector_currArrayIndex < iso2MagneticVectorListType->MagneticVector.arrayLen ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ if(errn == 0) {
+ errn = encode_iso2MagneticVectorType(stream, &iso2MagneticVectorListType->MagneticVector.array [iso2MagneticVectorListType_MagneticVector_currArrayIndex++]);
+ }
+ grammarID = 298;
+ } else if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 298:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MagneticVector), END_ELEMENT] */
+ if (iso2MagneticVectorListType_MagneticVector_currArrayIndex < iso2MagneticVectorListType->MagneticVector.arrayLen ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ if(errn == 0) {
+ errn = encode_iso2MagneticVectorType(stream, &iso2MagneticVectorListType->MagneticVector.array [iso2MagneticVectorListType_MagneticVector_currArrayIndex++]);
+ }
+ grammarID = 299;
+ } else if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 299:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MagneticVector), END_ELEMENT] */
+ if (iso2MagneticVectorListType_MagneticVector_currArrayIndex < iso2MagneticVectorListType->MagneticVector.arrayLen ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ if(errn == 0) {
+ errn = encode_iso2MagneticVectorType(stream, &iso2MagneticVectorListType->MagneticVector.array [iso2MagneticVectorListType_MagneticVector_currArrayIndex++]);
+ }
+ grammarID = 300;
+ } else if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 300:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MagneticVector), END_ELEMENT] */
+ if (iso2MagneticVectorListType_MagneticVector_currArrayIndex < iso2MagneticVectorListType->MagneticVector.arrayLen ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ if(errn == 0) {
+ errn = encode_iso2MagneticVectorType(stream, &iso2MagneticVectorListType->MagneticVector.array [iso2MagneticVectorListType_MagneticVector_currArrayIndex++]);
+ }
+ grammarID = 301;
+ } else if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 301:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MagneticVector), END_ELEMENT] */
+ if (iso2MagneticVectorListType_MagneticVector_currArrayIndex < iso2MagneticVectorListType->MagneticVector.arrayLen ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ if(errn == 0) {
+ errn = encode_iso2MagneticVectorType(stream, &iso2MagneticVectorListType->MagneticVector.array [iso2MagneticVectorListType_MagneticVector_currArrayIndex++]);
+ }
+ grammarID = 302;
+ } else if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 302:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MagneticVector), END_ELEMENT] */
+ if (iso2MagneticVectorListType_MagneticVector_currArrayIndex < iso2MagneticVectorListType->MagneticVector.arrayLen ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ if(errn == 0) {
+ errn = encode_iso2MagneticVectorType(stream, &iso2MagneticVectorListType->MagneticVector.array [iso2MagneticVectorListType_MagneticVector_currArrayIndex++]);
+ }
+ grammarID = 303;
+ } else if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 303:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MagneticVector), END_ELEMENT] */
+ if (iso2MagneticVectorListType_MagneticVector_currArrayIndex < iso2MagneticVectorListType->MagneticVector.arrayLen ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ if(errn == 0) {
+ errn = encode_iso2MagneticVectorType(stream, &iso2MagneticVectorListType->MagneticVector.array [iso2MagneticVectorListType_MagneticVector_currArrayIndex++]);
+ }
+ grammarID = 304;
+ } else if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 304:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MagneticVector), END_ELEMENT] */
+ if (iso2MagneticVectorListType_MagneticVector_currArrayIndex < iso2MagneticVectorListType->MagneticVector.arrayLen ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ if(errn == 0) {
+ errn = encode_iso2MagneticVectorType(stream, &iso2MagneticVectorListType->MagneticVector.array [iso2MagneticVectorListType_MagneticVector_currArrayIndex++]);
+ }
+ grammarID = 305;
+ } else if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 305:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MagneticVector), END_ELEMENT] */
+ if (iso2MagneticVectorListType_MagneticVector_currArrayIndex < iso2MagneticVectorListType->MagneticVector.arrayLen ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ if(errn == 0) {
+ errn = encode_iso2MagneticVectorType(stream, &iso2MagneticVectorListType->MagneticVector.array [iso2MagneticVectorListType_MagneticVector_currArrayIndex++]);
+ }
+ grammarID = 306;
+ } else if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 306:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MagneticVector), END_ELEMENT] */
+ if (iso2MagneticVectorListType_MagneticVector_currArrayIndex < iso2MagneticVectorListType->MagneticVector.arrayLen ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ if(errn == 0) {
+ errn = encode_iso2MagneticVectorType(stream, &iso2MagneticVectorListType->MagneticVector.array [iso2MagneticVectorListType_MagneticVector_currArrayIndex++]);
+ }
+ grammarID = 307;
+ } else if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 307:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MagneticVector), END_ELEMENT] */
+ if (iso2MagneticVectorListType_MagneticVector_currArrayIndex < iso2MagneticVectorListType->MagneticVector.arrayLen ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ if(errn == 0) {
+ errn = encode_iso2MagneticVectorType(stream, &iso2MagneticVectorListType->MagneticVector.array [iso2MagneticVectorListType_MagneticVector_currArrayIndex++]);
+ }
+ grammarID = 308;
+ } else if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 308:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MagneticVector), END_ELEMENT] */
+ if (iso2MagneticVectorListType_MagneticVector_currArrayIndex < iso2MagneticVectorListType->MagneticVector.arrayLen ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ if(errn == 0) {
+ errn = encode_iso2MagneticVectorType(stream, &iso2MagneticVectorListType->MagneticVector.array [iso2MagneticVectorListType_MagneticVector_currArrayIndex++]);
+ }
+ grammarID = 309;
+ } else if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 309:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MagneticVector), END_ELEMENT] */
+ if (iso2MagneticVectorListType_MagneticVector_currArrayIndex < iso2MagneticVectorListType->MagneticVector.arrayLen ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ if(errn == 0) {
+ errn = encode_iso2MagneticVectorType(stream, &iso2MagneticVectorListType->MagneticVector.array [iso2MagneticVectorListType_MagneticVector_currArrayIndex++]);
+ }
+ grammarID = 310;
+ } else if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 310:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MagneticVector), END_ELEMENT] */
+ if (iso2MagneticVectorListType_MagneticVector_currArrayIndex < iso2MagneticVectorListType->MagneticVector.arrayLen ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ if(errn == 0) {
+ errn = encode_iso2MagneticVectorType(stream, &iso2MagneticVectorListType->MagneticVector.array [iso2MagneticVectorListType_MagneticVector_currArrayIndex++]);
+ }
+ grammarID = 311;
+ } else if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 311:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MagneticVector), END_ELEMENT] */
+ if (iso2MagneticVectorListType_MagneticVector_currArrayIndex < iso2MagneticVectorListType->MagneticVector.arrayLen ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ if(errn == 0) {
+ errn = encode_iso2MagneticVectorType(stream, &iso2MagneticVectorListType->MagneticVector.array [iso2MagneticVectorListType_MagneticVector_currArrayIndex++]);
+ }
+ grammarID = 312;
+ } else if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 312:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MagneticVector), END_ELEMENT] */
+ if (iso2MagneticVectorListType_MagneticVector_currArrayIndex < iso2MagneticVectorListType->MagneticVector.arrayLen ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ if(errn == 0) {
+ errn = encode_iso2MagneticVectorType(stream, &iso2MagneticVectorListType->MagneticVector.array [iso2MagneticVectorListType_MagneticVector_currArrayIndex++]);
+ }
+ grammarID = 313;
+ } else if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 313:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MagneticVector), END_ELEMENT] */
+ if (iso2MagneticVectorListType_MagneticVector_currArrayIndex < iso2MagneticVectorListType->MagneticVector.arrayLen ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ if(errn == 0) {
+ errn = encode_iso2MagneticVectorType(stream, &iso2MagneticVectorListType->MagneticVector.array [iso2MagneticVectorListType_MagneticVector_currArrayIndex++]);
+ }
+ grammarID = 314;
+ } else if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 314:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MagneticVector), END_ELEMENT] */
+ if (iso2MagneticVectorListType_MagneticVector_currArrayIndex < iso2MagneticVectorListType->MagneticVector.arrayLen ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ if(errn == 0) {
+ errn = encode_iso2MagneticVectorType(stream, &iso2MagneticVectorListType->MagneticVector.array [iso2MagneticVectorListType_MagneticVector_currArrayIndex++]);
+ }
+ grammarID = 315;
+ } else if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 315:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MagneticVector), END_ELEMENT] */
+ if (iso2MagneticVectorListType_MagneticVector_currArrayIndex < iso2MagneticVectorListType->MagneticVector.arrayLen ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ if(errn == 0) {
+ errn = encode_iso2MagneticVectorType(stream, &iso2MagneticVectorListType->MagneticVector.array [iso2MagneticVectorListType_MagneticVector_currArrayIndex++]);
+ }
+ grammarID = 316;
+ } else if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 316:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MagneticVector), END_ELEMENT] */
+ if (iso2MagneticVectorListType_MagneticVector_currArrayIndex < iso2MagneticVectorListType->MagneticVector.arrayLen ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ if(errn == 0) {
+ errn = encode_iso2MagneticVectorType(stream, &iso2MagneticVectorListType->MagneticVector.array [iso2MagneticVectorListType_MagneticVector_currArrayIndex++]);
+ }
+ grammarID = 3;
+ } else if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 3:
+ /* Element[END_ELEMENT] */
+ if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 1, 0);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } 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:2016:MsgBody,CableCheckResType', base type name='V2GResponseType', content type='ELEMENT', isAbstract='false', hasTypeId='false', final='0', block='0', particle='(("urn:iso:15118:2:2016:MsgBody":ResponseCode,"urn:iso:15118:2:2016:MsgBody":EVSEStatus{0-1}),("urn:iso:15118:2:2016:MsgBody":EVSEProcessing))', derivedBy='EXTENSION'. */
+static int encode_iso2CableCheckResType(bitstream_t* stream, struct iso2CableCheckResType* iso2CableCheckResType) {
+ int grammarID = 5;
+ int done = 0;
+
+
+ while(!done) {
+ switch(grammarID) {
+ case 5:
+ /* FirstStartTag[START_ELEMENT({urn:iso:15118:2:2016:MsgBody}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, 5, iso2CableCheckResType->ResponseCode);
+ /* valid EE */
+ errn = encodeNBitUnsignedInteger(stream, 1, 0);
+ }
+ }
+ grammarID = 6;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 6:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgBody}EVSEStatus), START_ELEMENT({urn:iso:15118:2:2016:MsgBody}EVSEProcessing)] */
+ if ( iso2CableCheckResType->EVSEStatus_isUsed == 1u ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ if(errn == 0) {
+ errn = encode_iso2EVSEStatusType(stream, &iso2CableCheckResType->EVSEStatus );
+ }
+ grammarID = 7;
+ } else if ( 1 == 1 ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ /* FirstStartTag[CHARACTERS[ENUMERATION]] */
+ errn = encodeNBitUnsignedInteger(stream, 1, 0);
+ if(errn == 0) {
+ errn = encodeNBitUnsignedInteger(stream, 2, iso2CableCheckResType->EVSEProcessing);
+ /* valid EE */
+ errn = encodeNBitUnsignedInteger(stream, 1, 0);
+ }
+ }
+ grammarID = 3;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 7:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgBody}EVSEProcessing)] */
+ 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, iso2CableCheckResType->EVSEProcessing);
+ /* valid EE */
+ errn = encodeNBitUnsignedInteger(stream, 1, 0);
+ }
+ }
+ grammarID = 3;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 3:
+ /* Element[END_ELEMENT] */
+ if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 1, 0);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } 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:2016:MsgBody,ServiceDiscoveryReqType', base type name='BodyBaseType', content type='ELEMENT', isAbstract='false', hasTypeId='false', final='0', block='0', particle='("urn:iso:15118:2:2016:MsgBody":SupportedServiceIDs{0-1})', derivedBy='EXTENSION'. */
+static int encode_iso2ServiceDiscoveryReqType(bitstream_t* stream, struct iso2ServiceDiscoveryReqType* iso2ServiceDiscoveryReqType) {
+ int grammarID = 317;
+ int done = 0;
+
+
+ while(!done) {
+ switch(grammarID) {
+ case 317:
+ /* FirstStartTag[START_ELEMENT({urn:iso:15118:2:2016:MsgBody}SupportedServiceIDs), END_ELEMENT] */
+ if ( iso2ServiceDiscoveryReqType->SupportedServiceIDs_isUsed == 1u ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ if(errn == 0) {
+ errn = encode_iso2ServiceIDListType(stream, &iso2ServiceDiscoveryReqType->SupportedServiceIDs );
+ }
+ grammarID = 3;
+ } else if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 3:
+ /* Element[END_ELEMENT] */
+ if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 1, 0);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } 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:2016:MsgDataTypes,ServiceType', base type name='anyType', content type='ELEMENT', isAbstract='false', hasTypeId='false', final='0', block='0', particle='("urn:iso:15118:2:2016:MsgDataTypes":ServiceID,"urn:iso:15118:2:2016:MsgDataTypes":FreeService)', derivedBy='RESTRICTION'. */
+static int encode_iso2ServiceType(bitstream_t* stream, struct iso2ServiceType* iso2ServiceType) {
+ int grammarID = 318;
+ int done = 0;
+
+
+ while(!done) {
+ switch(grammarID) {
+ case 318:
+ /* FirstStartTag[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}ServiceID)] */
+ if ( 1 == 1 ) {
+ errn = encodeNBitUnsignedInteger(stream, 1, 0);
+ if(errn == 0) {
+ /* FirstStartTag[CHARACTERS[UNSIGNED_INTEGER]] */
+ errn = encodeNBitUnsignedInteger(stream, 1, 0);
+ if(errn == 0) {
+ errn = encodeUnsignedInteger16(stream, iso2ServiceType->ServiceID);
+ /* valid EE */
+ errn = encodeNBitUnsignedInteger(stream, 1, 0);
+ }
+ }
+ grammarID = 319;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 319:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}FreeService)] */
+ if ( 1 == 1 ) {
+ errn = encodeNBitUnsignedInteger(stream, 1, 0);
+ if(errn == 0) {
+ /* FirstStartTag[CHARACTERS[BOOLEAN]] */
+ errn = encodeNBitUnsignedInteger(stream, 1, 0);
+ if(errn == 0) {
+ errn = encodeBoolean(stream, iso2ServiceType->FreeService);
+ /* valid EE */
+ errn = encodeNBitUnsignedInteger(stream, 1, 0);
+ }
+ }
+ grammarID = 3;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 3:
+ /* Element[END_ELEMENT] */
+ if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 1, 0);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } 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:2016:MsgDataTypes,ServiceParameterListType', base type name='anyType', content type='ELEMENT', isAbstract='false', hasTypeId='false', final='0', block='0', particle='("urn:iso:15118:2:2016:MsgDataTypes":ParameterSet{1-255})', derivedBy='RESTRICTION'. */
+static int encode_iso2ServiceParameterListType(bitstream_t* stream, struct iso2ServiceParameterListType* iso2ServiceParameterListType) {
+ int grammarID = 320;
+ int done = 0;
+
+ unsigned int iso2ServiceParameterListType_ParameterSet_currArrayIndex = 0;
+
+ while(!done) {
+ switch(grammarID) {
+ case 320:
+ /* FirstStartTag[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}ParameterSet)] */
+ if (iso2ServiceParameterListType_ParameterSet_currArrayIndex < iso2ServiceParameterListType->ParameterSet.arrayLen ) {
+ errn = encodeNBitUnsignedInteger(stream, 1, 0);
+ if(errn == 0) {
+ errn = encode_iso2ParameterSetType(stream, &iso2ServiceParameterListType->ParameterSet.array [iso2ServiceParameterListType_ParameterSet_currArrayIndex++]);
+ }
+ grammarID = 321;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 321:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}ParameterSet), END_ELEMENT] */
+ if (iso2ServiceParameterListType_ParameterSet_currArrayIndex < iso2ServiceParameterListType->ParameterSet.arrayLen ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ if(errn == 0) {
+ errn = encode_iso2ParameterSetType(stream, &iso2ServiceParameterListType->ParameterSet.array [iso2ServiceParameterListType_ParameterSet_currArrayIndex++]);
+ }
+ grammarID = 322;
+ } else if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 322:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}ParameterSet), END_ELEMENT] */
+ if (iso2ServiceParameterListType_ParameterSet_currArrayIndex < iso2ServiceParameterListType->ParameterSet.arrayLen ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ if(errn == 0) {
+ errn = encode_iso2ParameterSetType(stream, &iso2ServiceParameterListType->ParameterSet.array [iso2ServiceParameterListType_ParameterSet_currArrayIndex++]);
+ }
+ grammarID = 323;
+ } else if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 323:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}ParameterSet), END_ELEMENT] */
+ if (iso2ServiceParameterListType_ParameterSet_currArrayIndex < iso2ServiceParameterListType->ParameterSet.arrayLen ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ if(errn == 0) {
+ errn = encode_iso2ParameterSetType(stream, &iso2ServiceParameterListType->ParameterSet.array [iso2ServiceParameterListType_ParameterSet_currArrayIndex++]);
+ }
+ grammarID = 324;
+ } else if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 324:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}ParameterSet), END_ELEMENT] */
+ if (iso2ServiceParameterListType_ParameterSet_currArrayIndex < iso2ServiceParameterListType->ParameterSet.arrayLen ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ if(errn == 0) {
+ errn = encode_iso2ParameterSetType(stream, &iso2ServiceParameterListType->ParameterSet.array [iso2ServiceParameterListType_ParameterSet_currArrayIndex++]);
+ }
+ grammarID = 325;
+ } else if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 325:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}ParameterSet), END_ELEMENT] */
+ if (iso2ServiceParameterListType_ParameterSet_currArrayIndex < iso2ServiceParameterListType->ParameterSet.arrayLen ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ if(errn == 0) {
+ errn = encode_iso2ParameterSetType(stream, &iso2ServiceParameterListType->ParameterSet.array [iso2ServiceParameterListType_ParameterSet_currArrayIndex++]);
+ }
+ grammarID = 326;
+ } else if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 326:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}ParameterSet), END_ELEMENT] */
+ if (iso2ServiceParameterListType_ParameterSet_currArrayIndex < iso2ServiceParameterListType->ParameterSet.arrayLen ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ if(errn == 0) {
+ errn = encode_iso2ParameterSetType(stream, &iso2ServiceParameterListType->ParameterSet.array [iso2ServiceParameterListType_ParameterSet_currArrayIndex++]);
+ }
+ grammarID = 327;
+ } else if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 327:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}ParameterSet), END_ELEMENT] */
+ if (iso2ServiceParameterListType_ParameterSet_currArrayIndex < iso2ServiceParameterListType->ParameterSet.arrayLen ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ if(errn == 0) {
+ errn = encode_iso2ParameterSetType(stream, &iso2ServiceParameterListType->ParameterSet.array [iso2ServiceParameterListType_ParameterSet_currArrayIndex++]);
+ }
+ grammarID = 328;
+ } else if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 328:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}ParameterSet), END_ELEMENT] */
+ if (iso2ServiceParameterListType_ParameterSet_currArrayIndex < iso2ServiceParameterListType->ParameterSet.arrayLen ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ if(errn == 0) {
+ errn = encode_iso2ParameterSetType(stream, &iso2ServiceParameterListType->ParameterSet.array [iso2ServiceParameterListType_ParameterSet_currArrayIndex++]);
+ }
+ grammarID = 329;
+ } else if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 329:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}ParameterSet), END_ELEMENT] */
+ if (iso2ServiceParameterListType_ParameterSet_currArrayIndex < iso2ServiceParameterListType->ParameterSet.arrayLen ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ if(errn == 0) {
+ errn = encode_iso2ParameterSetType(stream, &iso2ServiceParameterListType->ParameterSet.array [iso2ServiceParameterListType_ParameterSet_currArrayIndex++]);
+ }
+ grammarID = 330;
+ } else if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 330:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}ParameterSet), END_ELEMENT] */
+ if (iso2ServiceParameterListType_ParameterSet_currArrayIndex < iso2ServiceParameterListType->ParameterSet.arrayLen ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ if(errn == 0) {
+ errn = encode_iso2ParameterSetType(stream, &iso2ServiceParameterListType->ParameterSet.array [iso2ServiceParameterListType_ParameterSet_currArrayIndex++]);
+ }
+ grammarID = 331;
+ } else if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 331:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}ParameterSet), END_ELEMENT] */
+ if (iso2ServiceParameterListType_ParameterSet_currArrayIndex < iso2ServiceParameterListType->ParameterSet.arrayLen ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ if(errn == 0) {
+ errn = encode_iso2ParameterSetType(stream, &iso2ServiceParameterListType->ParameterSet.array [iso2ServiceParameterListType_ParameterSet_currArrayIndex++]);
+ }
+ grammarID = 332;
+ } else if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 332:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}ParameterSet), END_ELEMENT] */
+ if (iso2ServiceParameterListType_ParameterSet_currArrayIndex < iso2ServiceParameterListType->ParameterSet.arrayLen ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ if(errn == 0) {
+ errn = encode_iso2ParameterSetType(stream, &iso2ServiceParameterListType->ParameterSet.array [iso2ServiceParameterListType_ParameterSet_currArrayIndex++]);
+ }
+ grammarID = 333;
+ } else if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 333:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}ParameterSet), END_ELEMENT] */
+ if (iso2ServiceParameterListType_ParameterSet_currArrayIndex < iso2ServiceParameterListType->ParameterSet.arrayLen ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ if(errn == 0) {
+ errn = encode_iso2ParameterSetType(stream, &iso2ServiceParameterListType->ParameterSet.array [iso2ServiceParameterListType_ParameterSet_currArrayIndex++]);
+ }
+ grammarID = 334;
+ } else if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 334:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}ParameterSet), END_ELEMENT] */
+ if (iso2ServiceParameterListType_ParameterSet_currArrayIndex < iso2ServiceParameterListType->ParameterSet.arrayLen ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ if(errn == 0) {
+ errn = encode_iso2ParameterSetType(stream, &iso2ServiceParameterListType->ParameterSet.array [iso2ServiceParameterListType_ParameterSet_currArrayIndex++]);
+ }
+ grammarID = 335;
+ } else if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 335:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}ParameterSet), END_ELEMENT] */
+ if (iso2ServiceParameterListType_ParameterSet_currArrayIndex < iso2ServiceParameterListType->ParameterSet.arrayLen ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ if(errn == 0) {
+ errn = encode_iso2ParameterSetType(stream, &iso2ServiceParameterListType->ParameterSet.array [iso2ServiceParameterListType_ParameterSet_currArrayIndex++]);
+ }
+ grammarID = 336;
+ } else if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 336:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}ParameterSet), END_ELEMENT] */
+ if (iso2ServiceParameterListType_ParameterSet_currArrayIndex < iso2ServiceParameterListType->ParameterSet.arrayLen ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ if(errn == 0) {
+ errn = encode_iso2ParameterSetType(stream, &iso2ServiceParameterListType->ParameterSet.array [iso2ServiceParameterListType_ParameterSet_currArrayIndex++]);
+ }
+ grammarID = 337;
+ } else if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 337:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}ParameterSet), END_ELEMENT] */
+ if (iso2ServiceParameterListType_ParameterSet_currArrayIndex < iso2ServiceParameterListType->ParameterSet.arrayLen ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ if(errn == 0) {
+ errn = encode_iso2ParameterSetType(stream, &iso2ServiceParameterListType->ParameterSet.array [iso2ServiceParameterListType_ParameterSet_currArrayIndex++]);
+ }
+ grammarID = 338;
+ } else if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 338:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}ParameterSet), END_ELEMENT] */
+ if (iso2ServiceParameterListType_ParameterSet_currArrayIndex < iso2ServiceParameterListType->ParameterSet.arrayLen ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ if(errn == 0) {
+ errn = encode_iso2ParameterSetType(stream, &iso2ServiceParameterListType->ParameterSet.array [iso2ServiceParameterListType_ParameterSet_currArrayIndex++]);
+ }
+ grammarID = 339;
+ } else if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 339:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}ParameterSet), END_ELEMENT] */
+ if (iso2ServiceParameterListType_ParameterSet_currArrayIndex < iso2ServiceParameterListType->ParameterSet.arrayLen ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ if(errn == 0) {
+ errn = encode_iso2ParameterSetType(stream, &iso2ServiceParameterListType->ParameterSet.array [iso2ServiceParameterListType_ParameterSet_currArrayIndex++]);
+ }
+ grammarID = 340;
+ } else if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 340:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}ParameterSet), END_ELEMENT] */
+ if (iso2ServiceParameterListType_ParameterSet_currArrayIndex < iso2ServiceParameterListType->ParameterSet.arrayLen ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ if(errn == 0) {
+ errn = encode_iso2ParameterSetType(stream, &iso2ServiceParameterListType->ParameterSet.array [iso2ServiceParameterListType_ParameterSet_currArrayIndex++]);
+ }
+ grammarID = 341;
+ } else if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 341:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}ParameterSet), END_ELEMENT] */
+ if (iso2ServiceParameterListType_ParameterSet_currArrayIndex < iso2ServiceParameterListType->ParameterSet.arrayLen ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ if(errn == 0) {
+ errn = encode_iso2ParameterSetType(stream, &iso2ServiceParameterListType->ParameterSet.array [iso2ServiceParameterListType_ParameterSet_currArrayIndex++]);
+ }
+ grammarID = 342;
+ } else if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 342:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}ParameterSet), END_ELEMENT] */
+ if (iso2ServiceParameterListType_ParameterSet_currArrayIndex < iso2ServiceParameterListType->ParameterSet.arrayLen ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ if(errn == 0) {
+ errn = encode_iso2ParameterSetType(stream, &iso2ServiceParameterListType->ParameterSet.array [iso2ServiceParameterListType_ParameterSet_currArrayIndex++]);
+ }
+ grammarID = 343;
+ } else if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 343:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}ParameterSet), END_ELEMENT] */
+ if (iso2ServiceParameterListType_ParameterSet_currArrayIndex < iso2ServiceParameterListType->ParameterSet.arrayLen ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ if(errn == 0) {
+ errn = encode_iso2ParameterSetType(stream, &iso2ServiceParameterListType->ParameterSet.array [iso2ServiceParameterListType_ParameterSet_currArrayIndex++]);
+ }
+ grammarID = 344;
+ } else if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 344:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}ParameterSet), END_ELEMENT] */
+ if (iso2ServiceParameterListType_ParameterSet_currArrayIndex < iso2ServiceParameterListType->ParameterSet.arrayLen ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ if(errn == 0) {
+ errn = encode_iso2ParameterSetType(stream, &iso2ServiceParameterListType->ParameterSet.array [iso2ServiceParameterListType_ParameterSet_currArrayIndex++]);
+ }
+ grammarID = 345;
+ } else if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 345:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}ParameterSet), END_ELEMENT] */
+ if (iso2ServiceParameterListType_ParameterSet_currArrayIndex < iso2ServiceParameterListType->ParameterSet.arrayLen ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ if(errn == 0) {
+ errn = encode_iso2ParameterSetType(stream, &iso2ServiceParameterListType->ParameterSet.array [iso2ServiceParameterListType_ParameterSet_currArrayIndex++]);
+ }
+ grammarID = 346;
+ } else if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 346:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}ParameterSet), END_ELEMENT] */
+ if (iso2ServiceParameterListType_ParameterSet_currArrayIndex < iso2ServiceParameterListType->ParameterSet.arrayLen ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ if(errn == 0) {
+ errn = encode_iso2ParameterSetType(stream, &iso2ServiceParameterListType->ParameterSet.array [iso2ServiceParameterListType_ParameterSet_currArrayIndex++]);
+ }
+ grammarID = 347;
+ } else if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 347:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}ParameterSet), END_ELEMENT] */
+ if (iso2ServiceParameterListType_ParameterSet_currArrayIndex < iso2ServiceParameterListType->ParameterSet.arrayLen ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ if(errn == 0) {
+ errn = encode_iso2ParameterSetType(stream, &iso2ServiceParameterListType->ParameterSet.array [iso2ServiceParameterListType_ParameterSet_currArrayIndex++]);
+ }
+ grammarID = 348;
+ } else if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 348:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}ParameterSet), END_ELEMENT] */
+ if (iso2ServiceParameterListType_ParameterSet_currArrayIndex < iso2ServiceParameterListType->ParameterSet.arrayLen ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ if(errn == 0) {
+ errn = encode_iso2ParameterSetType(stream, &iso2ServiceParameterListType->ParameterSet.array [iso2ServiceParameterListType_ParameterSet_currArrayIndex++]);
+ }
+ grammarID = 349;
+ } else if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 349:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}ParameterSet), END_ELEMENT] */
+ if (iso2ServiceParameterListType_ParameterSet_currArrayIndex < iso2ServiceParameterListType->ParameterSet.arrayLen ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ if(errn == 0) {
+ errn = encode_iso2ParameterSetType(stream, &iso2ServiceParameterListType->ParameterSet.array [iso2ServiceParameterListType_ParameterSet_currArrayIndex++]);
+ }
+ grammarID = 350;
+ } else if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 350:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}ParameterSet), END_ELEMENT] */
+ if (iso2ServiceParameterListType_ParameterSet_currArrayIndex < iso2ServiceParameterListType->ParameterSet.arrayLen ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ if(errn == 0) {
+ errn = encode_iso2ParameterSetType(stream, &iso2ServiceParameterListType->ParameterSet.array [iso2ServiceParameterListType_ParameterSet_currArrayIndex++]);
+ }
+ grammarID = 351;
+ } else if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 351:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}ParameterSet), END_ELEMENT] */
+ if (iso2ServiceParameterListType_ParameterSet_currArrayIndex < iso2ServiceParameterListType->ParameterSet.arrayLen ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ if(errn == 0) {
+ errn = encode_iso2ParameterSetType(stream, &iso2ServiceParameterListType->ParameterSet.array [iso2ServiceParameterListType_ParameterSet_currArrayIndex++]);
+ }
+ grammarID = 352;
+ } else if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 352:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}ParameterSet), END_ELEMENT] */
+ if (iso2ServiceParameterListType_ParameterSet_currArrayIndex < iso2ServiceParameterListType->ParameterSet.arrayLen ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ if(errn == 0) {
+ errn = encode_iso2ParameterSetType(stream, &iso2ServiceParameterListType->ParameterSet.array [iso2ServiceParameterListType_ParameterSet_currArrayIndex++]);
+ }
+ grammarID = 353;
+ } else if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 353:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}ParameterSet), END_ELEMENT] */
+ if (iso2ServiceParameterListType_ParameterSet_currArrayIndex < iso2ServiceParameterListType->ParameterSet.arrayLen ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ if(errn == 0) {
+ errn = encode_iso2ParameterSetType(stream, &iso2ServiceParameterListType->ParameterSet.array [iso2ServiceParameterListType_ParameterSet_currArrayIndex++]);
+ }
+ grammarID = 354;
+ } else if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 354:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}ParameterSet), END_ELEMENT] */
+ if (iso2ServiceParameterListType_ParameterSet_currArrayIndex < iso2ServiceParameterListType->ParameterSet.arrayLen ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ if(errn == 0) {
+ errn = encode_iso2ParameterSetType(stream, &iso2ServiceParameterListType->ParameterSet.array [iso2ServiceParameterListType_ParameterSet_currArrayIndex++]);
+ }
+ grammarID = 355;
+ } else if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 355:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}ParameterSet), END_ELEMENT] */
+ if (iso2ServiceParameterListType_ParameterSet_currArrayIndex < iso2ServiceParameterListType->ParameterSet.arrayLen ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ if(errn == 0) {
+ errn = encode_iso2ParameterSetType(stream, &iso2ServiceParameterListType->ParameterSet.array [iso2ServiceParameterListType_ParameterSet_currArrayIndex++]);
+ }
+ grammarID = 356;
+ } else if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 356:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}ParameterSet), END_ELEMENT] */
+ if (iso2ServiceParameterListType_ParameterSet_currArrayIndex < iso2ServiceParameterListType->ParameterSet.arrayLen ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ if(errn == 0) {
+ errn = encode_iso2ParameterSetType(stream, &iso2ServiceParameterListType->ParameterSet.array [iso2ServiceParameterListType_ParameterSet_currArrayIndex++]);
+ }
+ grammarID = 357;
+ } else if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 357:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}ParameterSet), END_ELEMENT] */
+ if (iso2ServiceParameterListType_ParameterSet_currArrayIndex < iso2ServiceParameterListType->ParameterSet.arrayLen ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ if(errn == 0) {
+ errn = encode_iso2ParameterSetType(stream, &iso2ServiceParameterListType->ParameterSet.array [iso2ServiceParameterListType_ParameterSet_currArrayIndex++]);
+ }
+ grammarID = 358;
+ } else if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 358:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}ParameterSet), END_ELEMENT] */
+ if (iso2ServiceParameterListType_ParameterSet_currArrayIndex < iso2ServiceParameterListType->ParameterSet.arrayLen ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ if(errn == 0) {
+ errn = encode_iso2ParameterSetType(stream, &iso2ServiceParameterListType->ParameterSet.array [iso2ServiceParameterListType_ParameterSet_currArrayIndex++]);
+ }
+ grammarID = 359;
+ } else if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 359:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}ParameterSet), END_ELEMENT] */
+ if (iso2ServiceParameterListType_ParameterSet_currArrayIndex < iso2ServiceParameterListType->ParameterSet.arrayLen ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ if(errn == 0) {
+ errn = encode_iso2ParameterSetType(stream, &iso2ServiceParameterListType->ParameterSet.array [iso2ServiceParameterListType_ParameterSet_currArrayIndex++]);
+ }
+ grammarID = 360;
+ } else if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 360:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}ParameterSet), END_ELEMENT] */
+ if (iso2ServiceParameterListType_ParameterSet_currArrayIndex < iso2ServiceParameterListType->ParameterSet.arrayLen ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ if(errn == 0) {
+ errn = encode_iso2ParameterSetType(stream, &iso2ServiceParameterListType->ParameterSet.array [iso2ServiceParameterListType_ParameterSet_currArrayIndex++]);
+ }
+ grammarID = 361;
+ } else if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 361:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}ParameterSet), END_ELEMENT] */
+ if (iso2ServiceParameterListType_ParameterSet_currArrayIndex < iso2ServiceParameterListType->ParameterSet.arrayLen ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ if(errn == 0) {
+ errn = encode_iso2ParameterSetType(stream, &iso2ServiceParameterListType->ParameterSet.array [iso2ServiceParameterListType_ParameterSet_currArrayIndex++]);
+ }
+ grammarID = 362;
+ } else if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 362:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}ParameterSet), END_ELEMENT] */
+ if (iso2ServiceParameterListType_ParameterSet_currArrayIndex < iso2ServiceParameterListType->ParameterSet.arrayLen ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ if(errn == 0) {
+ errn = encode_iso2ParameterSetType(stream, &iso2ServiceParameterListType->ParameterSet.array [iso2ServiceParameterListType_ParameterSet_currArrayIndex++]);
+ }
+ grammarID = 363;
+ } else if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 363:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}ParameterSet), END_ELEMENT] */
+ if (iso2ServiceParameterListType_ParameterSet_currArrayIndex < iso2ServiceParameterListType->ParameterSet.arrayLen ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ if(errn == 0) {
+ errn = encode_iso2ParameterSetType(stream, &iso2ServiceParameterListType->ParameterSet.array [iso2ServiceParameterListType_ParameterSet_currArrayIndex++]);
+ }
+ grammarID = 364;
+ } else if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 364:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}ParameterSet), END_ELEMENT] */
+ if (iso2ServiceParameterListType_ParameterSet_currArrayIndex < iso2ServiceParameterListType->ParameterSet.arrayLen ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ if(errn == 0) {
+ errn = encode_iso2ParameterSetType(stream, &iso2ServiceParameterListType->ParameterSet.array [iso2ServiceParameterListType_ParameterSet_currArrayIndex++]);
+ }
+ grammarID = 365;
+ } else if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 365:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}ParameterSet), END_ELEMENT] */
+ if (iso2ServiceParameterListType_ParameterSet_currArrayIndex < iso2ServiceParameterListType->ParameterSet.arrayLen ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ if(errn == 0) {
+ errn = encode_iso2ParameterSetType(stream, &iso2ServiceParameterListType->ParameterSet.array [iso2ServiceParameterListType_ParameterSet_currArrayIndex++]);
+ }
+ grammarID = 366;
+ } else if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 366:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}ParameterSet), END_ELEMENT] */
+ if (iso2ServiceParameterListType_ParameterSet_currArrayIndex < iso2ServiceParameterListType->ParameterSet.arrayLen ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ if(errn == 0) {
+ errn = encode_iso2ParameterSetType(stream, &iso2ServiceParameterListType->ParameterSet.array [iso2ServiceParameterListType_ParameterSet_currArrayIndex++]);
+ }
+ grammarID = 367;
+ } else if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 367:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}ParameterSet), END_ELEMENT] */
+ if (iso2ServiceParameterListType_ParameterSet_currArrayIndex < iso2ServiceParameterListType->ParameterSet.arrayLen ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ if(errn == 0) {
+ errn = encode_iso2ParameterSetType(stream, &iso2ServiceParameterListType->ParameterSet.array [iso2ServiceParameterListType_ParameterSet_currArrayIndex++]);
+ }
+ grammarID = 368;
+ } else if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 368:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}ParameterSet), END_ELEMENT] */
+ if (iso2ServiceParameterListType_ParameterSet_currArrayIndex < iso2ServiceParameterListType->ParameterSet.arrayLen ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ if(errn == 0) {
+ errn = encode_iso2ParameterSetType(stream, &iso2ServiceParameterListType->ParameterSet.array [iso2ServiceParameterListType_ParameterSet_currArrayIndex++]);
+ }
+ grammarID = 369;
+ } else if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 369:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}ParameterSet), END_ELEMENT] */
+ if (iso2ServiceParameterListType_ParameterSet_currArrayIndex < iso2ServiceParameterListType->ParameterSet.arrayLen ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ if(errn == 0) {
+ errn = encode_iso2ParameterSetType(stream, &iso2ServiceParameterListType->ParameterSet.array [iso2ServiceParameterListType_ParameterSet_currArrayIndex++]);
+ }
+ grammarID = 370;
+ } else if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 370:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}ParameterSet), END_ELEMENT] */
+ if (iso2ServiceParameterListType_ParameterSet_currArrayIndex < iso2ServiceParameterListType->ParameterSet.arrayLen ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ if(errn == 0) {
+ errn = encode_iso2ParameterSetType(stream, &iso2ServiceParameterListType->ParameterSet.array [iso2ServiceParameterListType_ParameterSet_currArrayIndex++]);
+ }
+ grammarID = 371;
+ } else if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 371:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}ParameterSet), END_ELEMENT] */
+ if (iso2ServiceParameterListType_ParameterSet_currArrayIndex < iso2ServiceParameterListType->ParameterSet.arrayLen ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ if(errn == 0) {
+ errn = encode_iso2ParameterSetType(stream, &iso2ServiceParameterListType->ParameterSet.array [iso2ServiceParameterListType_ParameterSet_currArrayIndex++]);
+ }
+ grammarID = 372;
+ } else if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 372:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}ParameterSet), END_ELEMENT] */
+ if (iso2ServiceParameterListType_ParameterSet_currArrayIndex < iso2ServiceParameterListType->ParameterSet.arrayLen ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ if(errn == 0) {
+ errn = encode_iso2ParameterSetType(stream, &iso2ServiceParameterListType->ParameterSet.array [iso2ServiceParameterListType_ParameterSet_currArrayIndex++]);
+ }
+ grammarID = 373;
+ } else if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 373:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}ParameterSet), END_ELEMENT] */
+ if (iso2ServiceParameterListType_ParameterSet_currArrayIndex < iso2ServiceParameterListType->ParameterSet.arrayLen ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ if(errn == 0) {
+ errn = encode_iso2ParameterSetType(stream, &iso2ServiceParameterListType->ParameterSet.array [iso2ServiceParameterListType_ParameterSet_currArrayIndex++]);
+ }
+ grammarID = 374;
+ } else if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 374:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}ParameterSet), END_ELEMENT] */
+ if (iso2ServiceParameterListType_ParameterSet_currArrayIndex < iso2ServiceParameterListType->ParameterSet.arrayLen ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ if(errn == 0) {
+ errn = encode_iso2ParameterSetType(stream, &iso2ServiceParameterListType->ParameterSet.array [iso2ServiceParameterListType_ParameterSet_currArrayIndex++]);
+ }
+ grammarID = 375;
+ } else if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 375:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}ParameterSet), END_ELEMENT] */
+ if (iso2ServiceParameterListType_ParameterSet_currArrayIndex < iso2ServiceParameterListType->ParameterSet.arrayLen ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ if(errn == 0) {
+ errn = encode_iso2ParameterSetType(stream, &iso2ServiceParameterListType->ParameterSet.array [iso2ServiceParameterListType_ParameterSet_currArrayIndex++]);
+ }
+ grammarID = 376;
+ } else if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 376:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}ParameterSet), END_ELEMENT] */
+ if (iso2ServiceParameterListType_ParameterSet_currArrayIndex < iso2ServiceParameterListType->ParameterSet.arrayLen ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ if(errn == 0) {
+ errn = encode_iso2ParameterSetType(stream, &iso2ServiceParameterListType->ParameterSet.array [iso2ServiceParameterListType_ParameterSet_currArrayIndex++]);
+ }
+ grammarID = 377;
+ } else if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 377:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}ParameterSet), END_ELEMENT] */
+ if (iso2ServiceParameterListType_ParameterSet_currArrayIndex < iso2ServiceParameterListType->ParameterSet.arrayLen ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ if(errn == 0) {
+ errn = encode_iso2ParameterSetType(stream, &iso2ServiceParameterListType->ParameterSet.array [iso2ServiceParameterListType_ParameterSet_currArrayIndex++]);
+ }
+ grammarID = 378;
+ } else if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 378:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}ParameterSet), END_ELEMENT] */
+ if (iso2ServiceParameterListType_ParameterSet_currArrayIndex < iso2ServiceParameterListType->ParameterSet.arrayLen ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ if(errn == 0) {
+ errn = encode_iso2ParameterSetType(stream, &iso2ServiceParameterListType->ParameterSet.array [iso2ServiceParameterListType_ParameterSet_currArrayIndex++]);
+ }
+ grammarID = 379;
+ } else if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 379:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}ParameterSet), END_ELEMENT] */
+ if (iso2ServiceParameterListType_ParameterSet_currArrayIndex < iso2ServiceParameterListType->ParameterSet.arrayLen ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ if(errn == 0) {
+ errn = encode_iso2ParameterSetType(stream, &iso2ServiceParameterListType->ParameterSet.array [iso2ServiceParameterListType_ParameterSet_currArrayIndex++]);
+ }
+ grammarID = 380;
+ } else if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 380:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}ParameterSet), END_ELEMENT] */
+ if (iso2ServiceParameterListType_ParameterSet_currArrayIndex < iso2ServiceParameterListType->ParameterSet.arrayLen ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ if(errn == 0) {
+ errn = encode_iso2ParameterSetType(stream, &iso2ServiceParameterListType->ParameterSet.array [iso2ServiceParameterListType_ParameterSet_currArrayIndex++]);
+ }
+ grammarID = 381;
+ } else if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 381:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}ParameterSet), END_ELEMENT] */
+ if (iso2ServiceParameterListType_ParameterSet_currArrayIndex < iso2ServiceParameterListType->ParameterSet.arrayLen ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ if(errn == 0) {
+ errn = encode_iso2ParameterSetType(stream, &iso2ServiceParameterListType->ParameterSet.array [iso2ServiceParameterListType_ParameterSet_currArrayIndex++]);
+ }
+ grammarID = 382;
+ } else if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 382:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}ParameterSet), END_ELEMENT] */
+ if (iso2ServiceParameterListType_ParameterSet_currArrayIndex < iso2ServiceParameterListType->ParameterSet.arrayLen ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ if(errn == 0) {
+ errn = encode_iso2ParameterSetType(stream, &iso2ServiceParameterListType->ParameterSet.array [iso2ServiceParameterListType_ParameterSet_currArrayIndex++]);
+ }
+ grammarID = 383;
+ } else if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 383:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}ParameterSet), END_ELEMENT] */
+ if (iso2ServiceParameterListType_ParameterSet_currArrayIndex < iso2ServiceParameterListType->ParameterSet.arrayLen ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ if(errn == 0) {
+ errn = encode_iso2ParameterSetType(stream, &iso2ServiceParameterListType->ParameterSet.array [iso2ServiceParameterListType_ParameterSet_currArrayIndex++]);
+ }
+ grammarID = 384;
+ } else if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 384:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}ParameterSet), END_ELEMENT] */
+ if (iso2ServiceParameterListType_ParameterSet_currArrayIndex < iso2ServiceParameterListType->ParameterSet.arrayLen ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ if(errn == 0) {
+ errn = encode_iso2ParameterSetType(stream, &iso2ServiceParameterListType->ParameterSet.array [iso2ServiceParameterListType_ParameterSet_currArrayIndex++]);
+ }
+ grammarID = 385;
+ } else if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 385:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}ParameterSet), END_ELEMENT] */
+ if (iso2ServiceParameterListType_ParameterSet_currArrayIndex < iso2ServiceParameterListType->ParameterSet.arrayLen ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ if(errn == 0) {
+ errn = encode_iso2ParameterSetType(stream, &iso2ServiceParameterListType->ParameterSet.array [iso2ServiceParameterListType_ParameterSet_currArrayIndex++]);
+ }
+ grammarID = 386;
+ } else if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 386:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}ParameterSet), END_ELEMENT] */
+ if (iso2ServiceParameterListType_ParameterSet_currArrayIndex < iso2ServiceParameterListType->ParameterSet.arrayLen ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ if(errn == 0) {
+ errn = encode_iso2ParameterSetType(stream, &iso2ServiceParameterListType->ParameterSet.array [iso2ServiceParameterListType_ParameterSet_currArrayIndex++]);
+ }
+ grammarID = 387;
+ } else if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 387:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}ParameterSet), END_ELEMENT] */
+ if (iso2ServiceParameterListType_ParameterSet_currArrayIndex < iso2ServiceParameterListType->ParameterSet.arrayLen ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ if(errn == 0) {
+ errn = encode_iso2ParameterSetType(stream, &iso2ServiceParameterListType->ParameterSet.array [iso2ServiceParameterListType_ParameterSet_currArrayIndex++]);
+ }
+ grammarID = 388;
+ } else if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 388:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}ParameterSet), END_ELEMENT] */
+ if (iso2ServiceParameterListType_ParameterSet_currArrayIndex < iso2ServiceParameterListType->ParameterSet.arrayLen ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ if(errn == 0) {
+ errn = encode_iso2ParameterSetType(stream, &iso2ServiceParameterListType->ParameterSet.array [iso2ServiceParameterListType_ParameterSet_currArrayIndex++]);
+ }
+ grammarID = 389;
+ } else if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 389:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}ParameterSet), END_ELEMENT] */
+ if (iso2ServiceParameterListType_ParameterSet_currArrayIndex < iso2ServiceParameterListType->ParameterSet.arrayLen ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ if(errn == 0) {
+ errn = encode_iso2ParameterSetType(stream, &iso2ServiceParameterListType->ParameterSet.array [iso2ServiceParameterListType_ParameterSet_currArrayIndex++]);
+ }
+ grammarID = 390;
+ } else if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 390:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}ParameterSet), END_ELEMENT] */
+ if (iso2ServiceParameterListType_ParameterSet_currArrayIndex < iso2ServiceParameterListType->ParameterSet.arrayLen ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ if(errn == 0) {
+ errn = encode_iso2ParameterSetType(stream, &iso2ServiceParameterListType->ParameterSet.array [iso2ServiceParameterListType_ParameterSet_currArrayIndex++]);
+ }
+ grammarID = 391;
+ } else if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 391:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}ParameterSet), END_ELEMENT] */
+ if (iso2ServiceParameterListType_ParameterSet_currArrayIndex < iso2ServiceParameterListType->ParameterSet.arrayLen ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ if(errn == 0) {
+ errn = encode_iso2ParameterSetType(stream, &iso2ServiceParameterListType->ParameterSet.array [iso2ServiceParameterListType_ParameterSet_currArrayIndex++]);
+ }
+ grammarID = 392;
+ } else if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 392:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}ParameterSet), END_ELEMENT] */
+ if (iso2ServiceParameterListType_ParameterSet_currArrayIndex < iso2ServiceParameterListType->ParameterSet.arrayLen ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ if(errn == 0) {
+ errn = encode_iso2ParameterSetType(stream, &iso2ServiceParameterListType->ParameterSet.array [iso2ServiceParameterListType_ParameterSet_currArrayIndex++]);
+ }
+ grammarID = 393;
+ } else if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 393:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}ParameterSet), END_ELEMENT] */
+ if (iso2ServiceParameterListType_ParameterSet_currArrayIndex < iso2ServiceParameterListType->ParameterSet.arrayLen ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ if(errn == 0) {
+ errn = encode_iso2ParameterSetType(stream, &iso2ServiceParameterListType->ParameterSet.array [iso2ServiceParameterListType_ParameterSet_currArrayIndex++]);
+ }
+ grammarID = 394;
+ } else if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 394:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}ParameterSet), END_ELEMENT] */
+ if (iso2ServiceParameterListType_ParameterSet_currArrayIndex < iso2ServiceParameterListType->ParameterSet.arrayLen ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ if(errn == 0) {
+ errn = encode_iso2ParameterSetType(stream, &iso2ServiceParameterListType->ParameterSet.array [iso2ServiceParameterListType_ParameterSet_currArrayIndex++]);
+ }
+ grammarID = 395;
+ } else if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 395:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}ParameterSet), END_ELEMENT] */
+ if (iso2ServiceParameterListType_ParameterSet_currArrayIndex < iso2ServiceParameterListType->ParameterSet.arrayLen ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ if(errn == 0) {
+ errn = encode_iso2ParameterSetType(stream, &iso2ServiceParameterListType->ParameterSet.array [iso2ServiceParameterListType_ParameterSet_currArrayIndex++]);
+ }
+ grammarID = 396;
+ } else if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 396:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}ParameterSet), END_ELEMENT] */
+ if (iso2ServiceParameterListType_ParameterSet_currArrayIndex < iso2ServiceParameterListType->ParameterSet.arrayLen ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ if(errn == 0) {
+ errn = encode_iso2ParameterSetType(stream, &iso2ServiceParameterListType->ParameterSet.array [iso2ServiceParameterListType_ParameterSet_currArrayIndex++]);
+ }
+ grammarID = 397;
+ } else if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 397:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}ParameterSet), END_ELEMENT] */
+ if (iso2ServiceParameterListType_ParameterSet_currArrayIndex < iso2ServiceParameterListType->ParameterSet.arrayLen ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ if(errn == 0) {
+ errn = encode_iso2ParameterSetType(stream, &iso2ServiceParameterListType->ParameterSet.array [iso2ServiceParameterListType_ParameterSet_currArrayIndex++]);
+ }
+ grammarID = 398;
+ } else if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 398:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}ParameterSet), END_ELEMENT] */
+ if (iso2ServiceParameterListType_ParameterSet_currArrayIndex < iso2ServiceParameterListType->ParameterSet.arrayLen ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ if(errn == 0) {
+ errn = encode_iso2ParameterSetType(stream, &iso2ServiceParameterListType->ParameterSet.array [iso2ServiceParameterListType_ParameterSet_currArrayIndex++]);
+ }
+ grammarID = 399;
+ } else if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 399:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}ParameterSet), END_ELEMENT] */
+ if (iso2ServiceParameterListType_ParameterSet_currArrayIndex < iso2ServiceParameterListType->ParameterSet.arrayLen ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ if(errn == 0) {
+ errn = encode_iso2ParameterSetType(stream, &iso2ServiceParameterListType->ParameterSet.array [iso2ServiceParameterListType_ParameterSet_currArrayIndex++]);
+ }
+ grammarID = 400;
+ } else if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 400:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}ParameterSet), END_ELEMENT] */
+ if (iso2ServiceParameterListType_ParameterSet_currArrayIndex < iso2ServiceParameterListType->ParameterSet.arrayLen ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ if(errn == 0) {
+ errn = encode_iso2ParameterSetType(stream, &iso2ServiceParameterListType->ParameterSet.array [iso2ServiceParameterListType_ParameterSet_currArrayIndex++]);
+ }
+ grammarID = 401;
+ } else if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 401:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}ParameterSet), END_ELEMENT] */
+ if (iso2ServiceParameterListType_ParameterSet_currArrayIndex < iso2ServiceParameterListType->ParameterSet.arrayLen ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ if(errn == 0) {
+ errn = encode_iso2ParameterSetType(stream, &iso2ServiceParameterListType->ParameterSet.array [iso2ServiceParameterListType_ParameterSet_currArrayIndex++]);
+ }
+ grammarID = 402;
+ } else if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 402:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}ParameterSet), END_ELEMENT] */
+ if (iso2ServiceParameterListType_ParameterSet_currArrayIndex < iso2ServiceParameterListType->ParameterSet.arrayLen ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ if(errn == 0) {
+ errn = encode_iso2ParameterSetType(stream, &iso2ServiceParameterListType->ParameterSet.array [iso2ServiceParameterListType_ParameterSet_currArrayIndex++]);
+ }
+ grammarID = 403;
+ } else if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 403:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}ParameterSet), END_ELEMENT] */
+ if (iso2ServiceParameterListType_ParameterSet_currArrayIndex < iso2ServiceParameterListType->ParameterSet.arrayLen ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ if(errn == 0) {
+ errn = encode_iso2ParameterSetType(stream, &iso2ServiceParameterListType->ParameterSet.array [iso2ServiceParameterListType_ParameterSet_currArrayIndex++]);
+ }
+ grammarID = 404;
+ } else if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 404:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}ParameterSet), END_ELEMENT] */
+ if (iso2ServiceParameterListType_ParameterSet_currArrayIndex < iso2ServiceParameterListType->ParameterSet.arrayLen ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ if(errn == 0) {
+ errn = encode_iso2ParameterSetType(stream, &iso2ServiceParameterListType->ParameterSet.array [iso2ServiceParameterListType_ParameterSet_currArrayIndex++]);
+ }
+ grammarID = 405;
+ } else if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 405:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}ParameterSet), END_ELEMENT] */
+ if (iso2ServiceParameterListType_ParameterSet_currArrayIndex < iso2ServiceParameterListType->ParameterSet.arrayLen ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ if(errn == 0) {
+ errn = encode_iso2ParameterSetType(stream, &iso2ServiceParameterListType->ParameterSet.array [iso2ServiceParameterListType_ParameterSet_currArrayIndex++]);
+ }
+ grammarID = 406;
+ } else if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 406:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}ParameterSet), END_ELEMENT] */
+ if (iso2ServiceParameterListType_ParameterSet_currArrayIndex < iso2ServiceParameterListType->ParameterSet.arrayLen ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ if(errn == 0) {
+ errn = encode_iso2ParameterSetType(stream, &iso2ServiceParameterListType->ParameterSet.array [iso2ServiceParameterListType_ParameterSet_currArrayIndex++]);
+ }
+ grammarID = 407;
+ } else if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 407:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}ParameterSet), END_ELEMENT] */
+ if (iso2ServiceParameterListType_ParameterSet_currArrayIndex < iso2ServiceParameterListType->ParameterSet.arrayLen ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ if(errn == 0) {
+ errn = encode_iso2ParameterSetType(stream, &iso2ServiceParameterListType->ParameterSet.array [iso2ServiceParameterListType_ParameterSet_currArrayIndex++]);
+ }
+ grammarID = 408;
+ } else if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 408:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}ParameterSet), END_ELEMENT] */
+ if (iso2ServiceParameterListType_ParameterSet_currArrayIndex < iso2ServiceParameterListType->ParameterSet.arrayLen ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ if(errn == 0) {
+ errn = encode_iso2ParameterSetType(stream, &iso2ServiceParameterListType->ParameterSet.array [iso2ServiceParameterListType_ParameterSet_currArrayIndex++]);
+ }
+ grammarID = 409;
+ } else if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 409:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}ParameterSet), END_ELEMENT] */
+ if (iso2ServiceParameterListType_ParameterSet_currArrayIndex < iso2ServiceParameterListType->ParameterSet.arrayLen ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ if(errn == 0) {
+ errn = encode_iso2ParameterSetType(stream, &iso2ServiceParameterListType->ParameterSet.array [iso2ServiceParameterListType_ParameterSet_currArrayIndex++]);
+ }
+ grammarID = 410;
+ } else if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 410:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}ParameterSet), END_ELEMENT] */
+ if (iso2ServiceParameterListType_ParameterSet_currArrayIndex < iso2ServiceParameterListType->ParameterSet.arrayLen ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ if(errn == 0) {
+ errn = encode_iso2ParameterSetType(stream, &iso2ServiceParameterListType->ParameterSet.array [iso2ServiceParameterListType_ParameterSet_currArrayIndex++]);
+ }
+ grammarID = 411;
+ } else if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 411:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}ParameterSet), END_ELEMENT] */
+ if (iso2ServiceParameterListType_ParameterSet_currArrayIndex < iso2ServiceParameterListType->ParameterSet.arrayLen ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ if(errn == 0) {
+ errn = encode_iso2ParameterSetType(stream, &iso2ServiceParameterListType->ParameterSet.array [iso2ServiceParameterListType_ParameterSet_currArrayIndex++]);
+ }
+ grammarID = 412;
+ } else if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 412:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}ParameterSet), END_ELEMENT] */
+ if (iso2ServiceParameterListType_ParameterSet_currArrayIndex < iso2ServiceParameterListType->ParameterSet.arrayLen ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ if(errn == 0) {
+ errn = encode_iso2ParameterSetType(stream, &iso2ServiceParameterListType->ParameterSet.array [iso2ServiceParameterListType_ParameterSet_currArrayIndex++]);
+ }
+ grammarID = 413;
+ } else if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 413:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}ParameterSet), END_ELEMENT] */
+ if (iso2ServiceParameterListType_ParameterSet_currArrayIndex < iso2ServiceParameterListType->ParameterSet.arrayLen ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ if(errn == 0) {
+ errn = encode_iso2ParameterSetType(stream, &iso2ServiceParameterListType->ParameterSet.array [iso2ServiceParameterListType_ParameterSet_currArrayIndex++]);
+ }
+ grammarID = 414;
+ } else if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 414:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}ParameterSet), END_ELEMENT] */
+ if (iso2ServiceParameterListType_ParameterSet_currArrayIndex < iso2ServiceParameterListType->ParameterSet.arrayLen ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ if(errn == 0) {
+ errn = encode_iso2ParameterSetType(stream, &iso2ServiceParameterListType->ParameterSet.array [iso2ServiceParameterListType_ParameterSet_currArrayIndex++]);
+ }
+ grammarID = 415;
+ } else if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 415:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}ParameterSet), END_ELEMENT] */
+ if (iso2ServiceParameterListType_ParameterSet_currArrayIndex < iso2ServiceParameterListType->ParameterSet.arrayLen ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ if(errn == 0) {
+ errn = encode_iso2ParameterSetType(stream, &iso2ServiceParameterListType->ParameterSet.array [iso2ServiceParameterListType_ParameterSet_currArrayIndex++]);
+ }
+ grammarID = 416;
+ } else if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 416:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}ParameterSet), END_ELEMENT] */
+ if (iso2ServiceParameterListType_ParameterSet_currArrayIndex < iso2ServiceParameterListType->ParameterSet.arrayLen ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ if(errn == 0) {
+ errn = encode_iso2ParameterSetType(stream, &iso2ServiceParameterListType->ParameterSet.array [iso2ServiceParameterListType_ParameterSet_currArrayIndex++]);
+ }
+ grammarID = 417;
+ } else if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 417:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}ParameterSet), END_ELEMENT] */
+ if (iso2ServiceParameterListType_ParameterSet_currArrayIndex < iso2ServiceParameterListType->ParameterSet.arrayLen ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ if(errn == 0) {
+ errn = encode_iso2ParameterSetType(stream, &iso2ServiceParameterListType->ParameterSet.array [iso2ServiceParameterListType_ParameterSet_currArrayIndex++]);
+ }
+ grammarID = 418;
+ } else if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 418:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}ParameterSet), END_ELEMENT] */
+ if (iso2ServiceParameterListType_ParameterSet_currArrayIndex < iso2ServiceParameterListType->ParameterSet.arrayLen ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ if(errn == 0) {
+ errn = encode_iso2ParameterSetType(stream, &iso2ServiceParameterListType->ParameterSet.array [iso2ServiceParameterListType_ParameterSet_currArrayIndex++]);
+ }
+ grammarID = 419;
+ } else if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 419:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}ParameterSet), END_ELEMENT] */
+ if (iso2ServiceParameterListType_ParameterSet_currArrayIndex < iso2ServiceParameterListType->ParameterSet.arrayLen ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ if(errn == 0) {
+ errn = encode_iso2ParameterSetType(stream, &iso2ServiceParameterListType->ParameterSet.array [iso2ServiceParameterListType_ParameterSet_currArrayIndex++]);
+ }
+ grammarID = 420;
+ } else if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 420:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}ParameterSet), END_ELEMENT] */
+ if (iso2ServiceParameterListType_ParameterSet_currArrayIndex < iso2ServiceParameterListType->ParameterSet.arrayLen ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ if(errn == 0) {
+ errn = encode_iso2ParameterSetType(stream, &iso2ServiceParameterListType->ParameterSet.array [iso2ServiceParameterListType_ParameterSet_currArrayIndex++]);
+ }
+ grammarID = 421;
+ } else if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 421:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}ParameterSet), END_ELEMENT] */
+ if (iso2ServiceParameterListType_ParameterSet_currArrayIndex < iso2ServiceParameterListType->ParameterSet.arrayLen ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ if(errn == 0) {
+ errn = encode_iso2ParameterSetType(stream, &iso2ServiceParameterListType->ParameterSet.array [iso2ServiceParameterListType_ParameterSet_currArrayIndex++]);
+ }
+ grammarID = 422;
+ } else if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 422:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}ParameterSet), END_ELEMENT] */
+ if (iso2ServiceParameterListType_ParameterSet_currArrayIndex < iso2ServiceParameterListType->ParameterSet.arrayLen ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ if(errn == 0) {
+ errn = encode_iso2ParameterSetType(stream, &iso2ServiceParameterListType->ParameterSet.array [iso2ServiceParameterListType_ParameterSet_currArrayIndex++]);
+ }
+ grammarID = 423;
+ } else if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 423:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}ParameterSet), END_ELEMENT] */
+ if (iso2ServiceParameterListType_ParameterSet_currArrayIndex < iso2ServiceParameterListType->ParameterSet.arrayLen ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ if(errn == 0) {
+ errn = encode_iso2ParameterSetType(stream, &iso2ServiceParameterListType->ParameterSet.array [iso2ServiceParameterListType_ParameterSet_currArrayIndex++]);
+ }
+ grammarID = 424;
+ } else if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 424:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}ParameterSet), END_ELEMENT] */
+ if (iso2ServiceParameterListType_ParameterSet_currArrayIndex < iso2ServiceParameterListType->ParameterSet.arrayLen ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ if(errn == 0) {
+ errn = encode_iso2ParameterSetType(stream, &iso2ServiceParameterListType->ParameterSet.array [iso2ServiceParameterListType_ParameterSet_currArrayIndex++]);
+ }
+ grammarID = 425;
+ } else if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 425:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}ParameterSet), END_ELEMENT] */
+ if (iso2ServiceParameterListType_ParameterSet_currArrayIndex < iso2ServiceParameterListType->ParameterSet.arrayLen ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ if(errn == 0) {
+ errn = encode_iso2ParameterSetType(stream, &iso2ServiceParameterListType->ParameterSet.array [iso2ServiceParameterListType_ParameterSet_currArrayIndex++]);
+ }
+ grammarID = 426;
+ } else if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 426:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}ParameterSet), END_ELEMENT] */
+ if (iso2ServiceParameterListType_ParameterSet_currArrayIndex < iso2ServiceParameterListType->ParameterSet.arrayLen ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ if(errn == 0) {
+ errn = encode_iso2ParameterSetType(stream, &iso2ServiceParameterListType->ParameterSet.array [iso2ServiceParameterListType_ParameterSet_currArrayIndex++]);
+ }
+ grammarID = 427;
+ } else if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 427:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}ParameterSet), END_ELEMENT] */
+ if (iso2ServiceParameterListType_ParameterSet_currArrayIndex < iso2ServiceParameterListType->ParameterSet.arrayLen ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ if(errn == 0) {
+ errn = encode_iso2ParameterSetType(stream, &iso2ServiceParameterListType->ParameterSet.array [iso2ServiceParameterListType_ParameterSet_currArrayIndex++]);
+ }
+ grammarID = 428;
+ } else if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 428:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}ParameterSet), END_ELEMENT] */
+ if (iso2ServiceParameterListType_ParameterSet_currArrayIndex < iso2ServiceParameterListType->ParameterSet.arrayLen ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ if(errn == 0) {
+ errn = encode_iso2ParameterSetType(stream, &iso2ServiceParameterListType->ParameterSet.array [iso2ServiceParameterListType_ParameterSet_currArrayIndex++]);
+ }
+ grammarID = 429;
+ } else if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 429:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}ParameterSet), END_ELEMENT] */
+ if (iso2ServiceParameterListType_ParameterSet_currArrayIndex < iso2ServiceParameterListType->ParameterSet.arrayLen ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ if(errn == 0) {
+ errn = encode_iso2ParameterSetType(stream, &iso2ServiceParameterListType->ParameterSet.array [iso2ServiceParameterListType_ParameterSet_currArrayIndex++]);
+ }
+ grammarID = 430;
+ } else if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 430:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}ParameterSet), END_ELEMENT] */
+ if (iso2ServiceParameterListType_ParameterSet_currArrayIndex < iso2ServiceParameterListType->ParameterSet.arrayLen ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ if(errn == 0) {
+ errn = encode_iso2ParameterSetType(stream, &iso2ServiceParameterListType->ParameterSet.array [iso2ServiceParameterListType_ParameterSet_currArrayIndex++]);
+ }
+ grammarID = 431;
+ } else if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 431:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}ParameterSet), END_ELEMENT] */
+ if (iso2ServiceParameterListType_ParameterSet_currArrayIndex < iso2ServiceParameterListType->ParameterSet.arrayLen ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ if(errn == 0) {
+ errn = encode_iso2ParameterSetType(stream, &iso2ServiceParameterListType->ParameterSet.array [iso2ServiceParameterListType_ParameterSet_currArrayIndex++]);
+ }
+ grammarID = 432;
+ } else if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 432:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}ParameterSet), END_ELEMENT] */
+ if (iso2ServiceParameterListType_ParameterSet_currArrayIndex < iso2ServiceParameterListType->ParameterSet.arrayLen ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ if(errn == 0) {
+ errn = encode_iso2ParameterSetType(stream, &iso2ServiceParameterListType->ParameterSet.array [iso2ServiceParameterListType_ParameterSet_currArrayIndex++]);
+ }
+ grammarID = 433;
+ } else if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 433:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}ParameterSet), END_ELEMENT] */
+ if (iso2ServiceParameterListType_ParameterSet_currArrayIndex < iso2ServiceParameterListType->ParameterSet.arrayLen ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ if(errn == 0) {
+ errn = encode_iso2ParameterSetType(stream, &iso2ServiceParameterListType->ParameterSet.array [iso2ServiceParameterListType_ParameterSet_currArrayIndex++]);
+ }
+ grammarID = 434;
+ } else if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 434:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}ParameterSet), END_ELEMENT] */
+ if (iso2ServiceParameterListType_ParameterSet_currArrayIndex < iso2ServiceParameterListType->ParameterSet.arrayLen ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ if(errn == 0) {
+ errn = encode_iso2ParameterSetType(stream, &iso2ServiceParameterListType->ParameterSet.array [iso2ServiceParameterListType_ParameterSet_currArrayIndex++]);
+ }
+ grammarID = 435;
+ } else if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 435:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}ParameterSet), END_ELEMENT] */
+ if (iso2ServiceParameterListType_ParameterSet_currArrayIndex < iso2ServiceParameterListType->ParameterSet.arrayLen ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ if(errn == 0) {
+ errn = encode_iso2ParameterSetType(stream, &iso2ServiceParameterListType->ParameterSet.array [iso2ServiceParameterListType_ParameterSet_currArrayIndex++]);
+ }
+ grammarID = 436;
+ } else if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 436:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}ParameterSet), END_ELEMENT] */
+ if (iso2ServiceParameterListType_ParameterSet_currArrayIndex < iso2ServiceParameterListType->ParameterSet.arrayLen ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ if(errn == 0) {
+ errn = encode_iso2ParameterSetType(stream, &iso2ServiceParameterListType->ParameterSet.array [iso2ServiceParameterListType_ParameterSet_currArrayIndex++]);
+ }
+ grammarID = 437;
+ } else if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 437:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}ParameterSet), END_ELEMENT] */
+ if (iso2ServiceParameterListType_ParameterSet_currArrayIndex < iso2ServiceParameterListType->ParameterSet.arrayLen ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ if(errn == 0) {
+ errn = encode_iso2ParameterSetType(stream, &iso2ServiceParameterListType->ParameterSet.array [iso2ServiceParameterListType_ParameterSet_currArrayIndex++]);
+ }
+ grammarID = 438;
+ } else if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 438:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}ParameterSet), END_ELEMENT] */
+ if (iso2ServiceParameterListType_ParameterSet_currArrayIndex < iso2ServiceParameterListType->ParameterSet.arrayLen ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ if(errn == 0) {
+ errn = encode_iso2ParameterSetType(stream, &iso2ServiceParameterListType->ParameterSet.array [iso2ServiceParameterListType_ParameterSet_currArrayIndex++]);
+ }
+ grammarID = 439;
+ } else if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 439:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}ParameterSet), END_ELEMENT] */
+ if (iso2ServiceParameterListType_ParameterSet_currArrayIndex < iso2ServiceParameterListType->ParameterSet.arrayLen ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ if(errn == 0) {
+ errn = encode_iso2ParameterSetType(stream, &iso2ServiceParameterListType->ParameterSet.array [iso2ServiceParameterListType_ParameterSet_currArrayIndex++]);
+ }
+ grammarID = 440;
+ } else if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 440:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}ParameterSet), END_ELEMENT] */
+ if (iso2ServiceParameterListType_ParameterSet_currArrayIndex < iso2ServiceParameterListType->ParameterSet.arrayLen ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ if(errn == 0) {
+ errn = encode_iso2ParameterSetType(stream, &iso2ServiceParameterListType->ParameterSet.array [iso2ServiceParameterListType_ParameterSet_currArrayIndex++]);
+ }
+ grammarID = 441;
+ } else if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 441:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}ParameterSet), END_ELEMENT] */
+ if (iso2ServiceParameterListType_ParameterSet_currArrayIndex < iso2ServiceParameterListType->ParameterSet.arrayLen ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ if(errn == 0) {
+ errn = encode_iso2ParameterSetType(stream, &iso2ServiceParameterListType->ParameterSet.array [iso2ServiceParameterListType_ParameterSet_currArrayIndex++]);
+ }
+ grammarID = 442;
+ } else if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 442:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}ParameterSet), END_ELEMENT] */
+ if (iso2ServiceParameterListType_ParameterSet_currArrayIndex < iso2ServiceParameterListType->ParameterSet.arrayLen ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ if(errn == 0) {
+ errn = encode_iso2ParameterSetType(stream, &iso2ServiceParameterListType->ParameterSet.array [iso2ServiceParameterListType_ParameterSet_currArrayIndex++]);
+ }
+ grammarID = 443;
+ } else if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 443:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}ParameterSet), END_ELEMENT] */
+ if (iso2ServiceParameterListType_ParameterSet_currArrayIndex < iso2ServiceParameterListType->ParameterSet.arrayLen ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ if(errn == 0) {
+ errn = encode_iso2ParameterSetType(stream, &iso2ServiceParameterListType->ParameterSet.array [iso2ServiceParameterListType_ParameterSet_currArrayIndex++]);
+ }
+ grammarID = 444;
+ } else if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 444:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}ParameterSet), END_ELEMENT] */
+ if (iso2ServiceParameterListType_ParameterSet_currArrayIndex < iso2ServiceParameterListType->ParameterSet.arrayLen ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ if(errn == 0) {
+ errn = encode_iso2ParameterSetType(stream, &iso2ServiceParameterListType->ParameterSet.array [iso2ServiceParameterListType_ParameterSet_currArrayIndex++]);
+ }
+ grammarID = 445;
+ } else if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 445:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}ParameterSet), END_ELEMENT] */
+ if (iso2ServiceParameterListType_ParameterSet_currArrayIndex < iso2ServiceParameterListType->ParameterSet.arrayLen ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ if(errn == 0) {
+ errn = encode_iso2ParameterSetType(stream, &iso2ServiceParameterListType->ParameterSet.array [iso2ServiceParameterListType_ParameterSet_currArrayIndex++]);
+ }
+ grammarID = 446;
+ } else if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 446:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}ParameterSet), END_ELEMENT] */
+ if (iso2ServiceParameterListType_ParameterSet_currArrayIndex < iso2ServiceParameterListType->ParameterSet.arrayLen ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ if(errn == 0) {
+ errn = encode_iso2ParameterSetType(stream, &iso2ServiceParameterListType->ParameterSet.array [iso2ServiceParameterListType_ParameterSet_currArrayIndex++]);
+ }
+ grammarID = 447;
+ } else if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 447:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}ParameterSet), END_ELEMENT] */
+ if (iso2ServiceParameterListType_ParameterSet_currArrayIndex < iso2ServiceParameterListType->ParameterSet.arrayLen ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ if(errn == 0) {
+ errn = encode_iso2ParameterSetType(stream, &iso2ServiceParameterListType->ParameterSet.array [iso2ServiceParameterListType_ParameterSet_currArrayIndex++]);
+ }
+ grammarID = 448;
+ } else if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 448:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}ParameterSet), END_ELEMENT] */
+ if (iso2ServiceParameterListType_ParameterSet_currArrayIndex < iso2ServiceParameterListType->ParameterSet.arrayLen ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ if(errn == 0) {
+ errn = encode_iso2ParameterSetType(stream, &iso2ServiceParameterListType->ParameterSet.array [iso2ServiceParameterListType_ParameterSet_currArrayIndex++]);
+ }
+ grammarID = 449;
+ } else if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 449:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}ParameterSet), END_ELEMENT] */
+ if (iso2ServiceParameterListType_ParameterSet_currArrayIndex < iso2ServiceParameterListType->ParameterSet.arrayLen ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ if(errn == 0) {
+ errn = encode_iso2ParameterSetType(stream, &iso2ServiceParameterListType->ParameterSet.array [iso2ServiceParameterListType_ParameterSet_currArrayIndex++]);
+ }
+ grammarID = 450;
+ } else if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 450:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}ParameterSet), END_ELEMENT] */
+ if (iso2ServiceParameterListType_ParameterSet_currArrayIndex < iso2ServiceParameterListType->ParameterSet.arrayLen ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ if(errn == 0) {
+ errn = encode_iso2ParameterSetType(stream, &iso2ServiceParameterListType->ParameterSet.array [iso2ServiceParameterListType_ParameterSet_currArrayIndex++]);
+ }
+ grammarID = 451;
+ } else if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 451:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}ParameterSet), END_ELEMENT] */
+ if (iso2ServiceParameterListType_ParameterSet_currArrayIndex < iso2ServiceParameterListType->ParameterSet.arrayLen ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ if(errn == 0) {
+ errn = encode_iso2ParameterSetType(stream, &iso2ServiceParameterListType->ParameterSet.array [iso2ServiceParameterListType_ParameterSet_currArrayIndex++]);
+ }
+ grammarID = 452;
+ } else if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 452:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}ParameterSet), END_ELEMENT] */
+ if (iso2ServiceParameterListType_ParameterSet_currArrayIndex < iso2ServiceParameterListType->ParameterSet.arrayLen ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ if(errn == 0) {
+ errn = encode_iso2ParameterSetType(stream, &iso2ServiceParameterListType->ParameterSet.array [iso2ServiceParameterListType_ParameterSet_currArrayIndex++]);
+ }
+ grammarID = 453;
+ } else if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 453:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}ParameterSet), END_ELEMENT] */
+ if (iso2ServiceParameterListType_ParameterSet_currArrayIndex < iso2ServiceParameterListType->ParameterSet.arrayLen ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ if(errn == 0) {
+ errn = encode_iso2ParameterSetType(stream, &iso2ServiceParameterListType->ParameterSet.array [iso2ServiceParameterListType_ParameterSet_currArrayIndex++]);
+ }
+ grammarID = 454;
+ } else if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 454:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}ParameterSet), END_ELEMENT] */
+ if (iso2ServiceParameterListType_ParameterSet_currArrayIndex < iso2ServiceParameterListType->ParameterSet.arrayLen ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ if(errn == 0) {
+ errn = encode_iso2ParameterSetType(stream, &iso2ServiceParameterListType->ParameterSet.array [iso2ServiceParameterListType_ParameterSet_currArrayIndex++]);
+ }
+ grammarID = 455;
+ } else if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 455:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}ParameterSet), END_ELEMENT] */
+ if (iso2ServiceParameterListType_ParameterSet_currArrayIndex < iso2ServiceParameterListType->ParameterSet.arrayLen ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ if(errn == 0) {
+ errn = encode_iso2ParameterSetType(stream, &iso2ServiceParameterListType->ParameterSet.array [iso2ServiceParameterListType_ParameterSet_currArrayIndex++]);
+ }
+ grammarID = 456;
+ } else if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 456:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}ParameterSet), END_ELEMENT] */
+ if (iso2ServiceParameterListType_ParameterSet_currArrayIndex < iso2ServiceParameterListType->ParameterSet.arrayLen ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ if(errn == 0) {
+ errn = encode_iso2ParameterSetType(stream, &iso2ServiceParameterListType->ParameterSet.array [iso2ServiceParameterListType_ParameterSet_currArrayIndex++]);
+ }
+ grammarID = 457;
+ } else if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 457:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}ParameterSet), END_ELEMENT] */
+ if (iso2ServiceParameterListType_ParameterSet_currArrayIndex < iso2ServiceParameterListType->ParameterSet.arrayLen ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ if(errn == 0) {
+ errn = encode_iso2ParameterSetType(stream, &iso2ServiceParameterListType->ParameterSet.array [iso2ServiceParameterListType_ParameterSet_currArrayIndex++]);
+ }
+ grammarID = 458;
+ } else if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 458:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}ParameterSet), END_ELEMENT] */
+ if (iso2ServiceParameterListType_ParameterSet_currArrayIndex < iso2ServiceParameterListType->ParameterSet.arrayLen ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ if(errn == 0) {
+ errn = encode_iso2ParameterSetType(stream, &iso2ServiceParameterListType->ParameterSet.array [iso2ServiceParameterListType_ParameterSet_currArrayIndex++]);
+ }
+ grammarID = 459;
+ } else if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 459:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}ParameterSet), END_ELEMENT] */
+ if (iso2ServiceParameterListType_ParameterSet_currArrayIndex < iso2ServiceParameterListType->ParameterSet.arrayLen ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ if(errn == 0) {
+ errn = encode_iso2ParameterSetType(stream, &iso2ServiceParameterListType->ParameterSet.array [iso2ServiceParameterListType_ParameterSet_currArrayIndex++]);
+ }
+ grammarID = 460;
+ } else if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 460:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}ParameterSet), END_ELEMENT] */
+ if (iso2ServiceParameterListType_ParameterSet_currArrayIndex < iso2ServiceParameterListType->ParameterSet.arrayLen ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ if(errn == 0) {
+ errn = encode_iso2ParameterSetType(stream, &iso2ServiceParameterListType->ParameterSet.array [iso2ServiceParameterListType_ParameterSet_currArrayIndex++]);
+ }
+ grammarID = 461;
+ } else if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 461:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}ParameterSet), END_ELEMENT] */
+ if (iso2ServiceParameterListType_ParameterSet_currArrayIndex < iso2ServiceParameterListType->ParameterSet.arrayLen ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ if(errn == 0) {
+ errn = encode_iso2ParameterSetType(stream, &iso2ServiceParameterListType->ParameterSet.array [iso2ServiceParameterListType_ParameterSet_currArrayIndex++]);
+ }
+ grammarID = 462;
+ } else if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 462:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}ParameterSet), END_ELEMENT] */
+ if (iso2ServiceParameterListType_ParameterSet_currArrayIndex < iso2ServiceParameterListType->ParameterSet.arrayLen ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ if(errn == 0) {
+ errn = encode_iso2ParameterSetType(stream, &iso2ServiceParameterListType->ParameterSet.array [iso2ServiceParameterListType_ParameterSet_currArrayIndex++]);
+ }
+ grammarID = 463;
+ } else if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 463:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}ParameterSet), END_ELEMENT] */
+ if (iso2ServiceParameterListType_ParameterSet_currArrayIndex < iso2ServiceParameterListType->ParameterSet.arrayLen ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ if(errn == 0) {
+ errn = encode_iso2ParameterSetType(stream, &iso2ServiceParameterListType->ParameterSet.array [iso2ServiceParameterListType_ParameterSet_currArrayIndex++]);
+ }
+ grammarID = 464;
+ } else if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 464:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}ParameterSet), END_ELEMENT] */
+ if (iso2ServiceParameterListType_ParameterSet_currArrayIndex < iso2ServiceParameterListType->ParameterSet.arrayLen ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ if(errn == 0) {
+ errn = encode_iso2ParameterSetType(stream, &iso2ServiceParameterListType->ParameterSet.array [iso2ServiceParameterListType_ParameterSet_currArrayIndex++]);
+ }
+ grammarID = 465;
+ } else if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 465:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}ParameterSet), END_ELEMENT] */
+ if (iso2ServiceParameterListType_ParameterSet_currArrayIndex < iso2ServiceParameterListType->ParameterSet.arrayLen ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ if(errn == 0) {
+ errn = encode_iso2ParameterSetType(stream, &iso2ServiceParameterListType->ParameterSet.array [iso2ServiceParameterListType_ParameterSet_currArrayIndex++]);
+ }
+ grammarID = 466;
+ } else if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 466:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}ParameterSet), END_ELEMENT] */
+ if (iso2ServiceParameterListType_ParameterSet_currArrayIndex < iso2ServiceParameterListType->ParameterSet.arrayLen ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ if(errn == 0) {
+ errn = encode_iso2ParameterSetType(stream, &iso2ServiceParameterListType->ParameterSet.array [iso2ServiceParameterListType_ParameterSet_currArrayIndex++]);
+ }
+ grammarID = 467;
+ } else if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 467:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}ParameterSet), END_ELEMENT] */
+ if (iso2ServiceParameterListType_ParameterSet_currArrayIndex < iso2ServiceParameterListType->ParameterSet.arrayLen ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ if(errn == 0) {
+ errn = encode_iso2ParameterSetType(stream, &iso2ServiceParameterListType->ParameterSet.array [iso2ServiceParameterListType_ParameterSet_currArrayIndex++]);
+ }
+ grammarID = 468;
+ } else if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 468:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}ParameterSet), END_ELEMENT] */
+ if (iso2ServiceParameterListType_ParameterSet_currArrayIndex < iso2ServiceParameterListType->ParameterSet.arrayLen ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ if(errn == 0) {
+ errn = encode_iso2ParameterSetType(stream, &iso2ServiceParameterListType->ParameterSet.array [iso2ServiceParameterListType_ParameterSet_currArrayIndex++]);
+ }
+ grammarID = 469;
+ } else if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 469:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}ParameterSet), END_ELEMENT] */
+ if (iso2ServiceParameterListType_ParameterSet_currArrayIndex < iso2ServiceParameterListType->ParameterSet.arrayLen ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ if(errn == 0) {
+ errn = encode_iso2ParameterSetType(stream, &iso2ServiceParameterListType->ParameterSet.array [iso2ServiceParameterListType_ParameterSet_currArrayIndex++]);
+ }
+ grammarID = 470;
+ } else if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 470:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}ParameterSet), END_ELEMENT] */
+ if (iso2ServiceParameterListType_ParameterSet_currArrayIndex < iso2ServiceParameterListType->ParameterSet.arrayLen ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ if(errn == 0) {
+ errn = encode_iso2ParameterSetType(stream, &iso2ServiceParameterListType->ParameterSet.array [iso2ServiceParameterListType_ParameterSet_currArrayIndex++]);
+ }
+ grammarID = 471;
+ } else if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 471:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}ParameterSet), END_ELEMENT] */
+ if (iso2ServiceParameterListType_ParameterSet_currArrayIndex < iso2ServiceParameterListType->ParameterSet.arrayLen ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ if(errn == 0) {
+ errn = encode_iso2ParameterSetType(stream, &iso2ServiceParameterListType->ParameterSet.array [iso2ServiceParameterListType_ParameterSet_currArrayIndex++]);
+ }
+ grammarID = 472;
+ } else if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 472:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}ParameterSet), END_ELEMENT] */
+ if (iso2ServiceParameterListType_ParameterSet_currArrayIndex < iso2ServiceParameterListType->ParameterSet.arrayLen ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ if(errn == 0) {
+ errn = encode_iso2ParameterSetType(stream, &iso2ServiceParameterListType->ParameterSet.array [iso2ServiceParameterListType_ParameterSet_currArrayIndex++]);
+ }
+ grammarID = 473;
+ } else if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 473:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}ParameterSet), END_ELEMENT] */
+ if (iso2ServiceParameterListType_ParameterSet_currArrayIndex < iso2ServiceParameterListType->ParameterSet.arrayLen ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ if(errn == 0) {
+ errn = encode_iso2ParameterSetType(stream, &iso2ServiceParameterListType->ParameterSet.array [iso2ServiceParameterListType_ParameterSet_currArrayIndex++]);
+ }
+ grammarID = 474;
+ } else if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 474:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}ParameterSet), END_ELEMENT] */
+ if (iso2ServiceParameterListType_ParameterSet_currArrayIndex < iso2ServiceParameterListType->ParameterSet.arrayLen ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ if(errn == 0) {
+ errn = encode_iso2ParameterSetType(stream, &iso2ServiceParameterListType->ParameterSet.array [iso2ServiceParameterListType_ParameterSet_currArrayIndex++]);
+ }
+ grammarID = 475;
+ } else if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 475:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}ParameterSet), END_ELEMENT] */
+ if (iso2ServiceParameterListType_ParameterSet_currArrayIndex < iso2ServiceParameterListType->ParameterSet.arrayLen ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ if(errn == 0) {
+ errn = encode_iso2ParameterSetType(stream, &iso2ServiceParameterListType->ParameterSet.array [iso2ServiceParameterListType_ParameterSet_currArrayIndex++]);
+ }
+ grammarID = 476;
+ } else if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 476:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}ParameterSet), END_ELEMENT] */
+ if (iso2ServiceParameterListType_ParameterSet_currArrayIndex < iso2ServiceParameterListType->ParameterSet.arrayLen ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ if(errn == 0) {
+ errn = encode_iso2ParameterSetType(stream, &iso2ServiceParameterListType->ParameterSet.array [iso2ServiceParameterListType_ParameterSet_currArrayIndex++]);
+ }
+ grammarID = 477;
+ } else if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 477:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}ParameterSet), END_ELEMENT] */
+ if (iso2ServiceParameterListType_ParameterSet_currArrayIndex < iso2ServiceParameterListType->ParameterSet.arrayLen ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ if(errn == 0) {
+ errn = encode_iso2ParameterSetType(stream, &iso2ServiceParameterListType->ParameterSet.array [iso2ServiceParameterListType_ParameterSet_currArrayIndex++]);
+ }
+ grammarID = 478;
+ } else if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 478:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}ParameterSet), END_ELEMENT] */
+ if (iso2ServiceParameterListType_ParameterSet_currArrayIndex < iso2ServiceParameterListType->ParameterSet.arrayLen ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ if(errn == 0) {
+ errn = encode_iso2ParameterSetType(stream, &iso2ServiceParameterListType->ParameterSet.array [iso2ServiceParameterListType_ParameterSet_currArrayIndex++]);
+ }
+ grammarID = 479;
+ } else if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 479:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}ParameterSet), END_ELEMENT] */
+ if (iso2ServiceParameterListType_ParameterSet_currArrayIndex < iso2ServiceParameterListType->ParameterSet.arrayLen ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ if(errn == 0) {
+ errn = encode_iso2ParameterSetType(stream, &iso2ServiceParameterListType->ParameterSet.array [iso2ServiceParameterListType_ParameterSet_currArrayIndex++]);
+ }
+ grammarID = 480;
+ } else if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 480:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}ParameterSet), END_ELEMENT] */
+ if (iso2ServiceParameterListType_ParameterSet_currArrayIndex < iso2ServiceParameterListType->ParameterSet.arrayLen ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ if(errn == 0) {
+ errn = encode_iso2ParameterSetType(stream, &iso2ServiceParameterListType->ParameterSet.array [iso2ServiceParameterListType_ParameterSet_currArrayIndex++]);
+ }
+ grammarID = 481;
+ } else if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 481:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}ParameterSet), END_ELEMENT] */
+ if (iso2ServiceParameterListType_ParameterSet_currArrayIndex < iso2ServiceParameterListType->ParameterSet.arrayLen ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ if(errn == 0) {
+ errn = encode_iso2ParameterSetType(stream, &iso2ServiceParameterListType->ParameterSet.array [iso2ServiceParameterListType_ParameterSet_currArrayIndex++]);
+ }
+ grammarID = 482;
+ } else if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 482:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}ParameterSet), END_ELEMENT] */
+ if (iso2ServiceParameterListType_ParameterSet_currArrayIndex < iso2ServiceParameterListType->ParameterSet.arrayLen ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ if(errn == 0) {
+ errn = encode_iso2ParameterSetType(stream, &iso2ServiceParameterListType->ParameterSet.array [iso2ServiceParameterListType_ParameterSet_currArrayIndex++]);
+ }
+ grammarID = 483;
+ } else if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 483:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}ParameterSet), END_ELEMENT] */
+ if (iso2ServiceParameterListType_ParameterSet_currArrayIndex < iso2ServiceParameterListType->ParameterSet.arrayLen ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ if(errn == 0) {
+ errn = encode_iso2ParameterSetType(stream, &iso2ServiceParameterListType->ParameterSet.array [iso2ServiceParameterListType_ParameterSet_currArrayIndex++]);
+ }
+ grammarID = 484;
+ } else if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 484:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}ParameterSet), END_ELEMENT] */
+ if (iso2ServiceParameterListType_ParameterSet_currArrayIndex < iso2ServiceParameterListType->ParameterSet.arrayLen ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ if(errn == 0) {
+ errn = encode_iso2ParameterSetType(stream, &iso2ServiceParameterListType->ParameterSet.array [iso2ServiceParameterListType_ParameterSet_currArrayIndex++]);
+ }
+ grammarID = 485;
+ } else if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 485:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}ParameterSet), END_ELEMENT] */
+ if (iso2ServiceParameterListType_ParameterSet_currArrayIndex < iso2ServiceParameterListType->ParameterSet.arrayLen ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ if(errn == 0) {
+ errn = encode_iso2ParameterSetType(stream, &iso2ServiceParameterListType->ParameterSet.array [iso2ServiceParameterListType_ParameterSet_currArrayIndex++]);
+ }
+ grammarID = 486;
+ } else if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 486:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}ParameterSet), END_ELEMENT] */
+ if (iso2ServiceParameterListType_ParameterSet_currArrayIndex < iso2ServiceParameterListType->ParameterSet.arrayLen ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ if(errn == 0) {
+ errn = encode_iso2ParameterSetType(stream, &iso2ServiceParameterListType->ParameterSet.array [iso2ServiceParameterListType_ParameterSet_currArrayIndex++]);
+ }
+ grammarID = 487;
+ } else if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 487:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}ParameterSet), END_ELEMENT] */
+ if (iso2ServiceParameterListType_ParameterSet_currArrayIndex < iso2ServiceParameterListType->ParameterSet.arrayLen ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ if(errn == 0) {
+ errn = encode_iso2ParameterSetType(stream, &iso2ServiceParameterListType->ParameterSet.array [iso2ServiceParameterListType_ParameterSet_currArrayIndex++]);
+ }
+ grammarID = 488;
+ } else if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 488:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}ParameterSet), END_ELEMENT] */
+ if (iso2ServiceParameterListType_ParameterSet_currArrayIndex < iso2ServiceParameterListType->ParameterSet.arrayLen ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ if(errn == 0) {
+ errn = encode_iso2ParameterSetType(stream, &iso2ServiceParameterListType->ParameterSet.array [iso2ServiceParameterListType_ParameterSet_currArrayIndex++]);
+ }
+ grammarID = 489;
+ } else if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 489:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}ParameterSet), END_ELEMENT] */
+ if (iso2ServiceParameterListType_ParameterSet_currArrayIndex < iso2ServiceParameterListType->ParameterSet.arrayLen ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ if(errn == 0) {
+ errn = encode_iso2ParameterSetType(stream, &iso2ServiceParameterListType->ParameterSet.array [iso2ServiceParameterListType_ParameterSet_currArrayIndex++]);
+ }
+ grammarID = 490;
+ } else if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 490:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}ParameterSet), END_ELEMENT] */
+ if (iso2ServiceParameterListType_ParameterSet_currArrayIndex < iso2ServiceParameterListType->ParameterSet.arrayLen ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ if(errn == 0) {
+ errn = encode_iso2ParameterSetType(stream, &iso2ServiceParameterListType->ParameterSet.array [iso2ServiceParameterListType_ParameterSet_currArrayIndex++]);
+ }
+ grammarID = 491;
+ } else if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 491:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}ParameterSet), END_ELEMENT] */
+ if (iso2ServiceParameterListType_ParameterSet_currArrayIndex < iso2ServiceParameterListType->ParameterSet.arrayLen ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ if(errn == 0) {
+ errn = encode_iso2ParameterSetType(stream, &iso2ServiceParameterListType->ParameterSet.array [iso2ServiceParameterListType_ParameterSet_currArrayIndex++]);
+ }
+ grammarID = 492;
+ } else if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 492:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}ParameterSet), END_ELEMENT] */
+ if (iso2ServiceParameterListType_ParameterSet_currArrayIndex < iso2ServiceParameterListType->ParameterSet.arrayLen ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ if(errn == 0) {
+ errn = encode_iso2ParameterSetType(stream, &iso2ServiceParameterListType->ParameterSet.array [iso2ServiceParameterListType_ParameterSet_currArrayIndex++]);
+ }
+ grammarID = 493;
+ } else if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 493:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}ParameterSet), END_ELEMENT] */
+ if (iso2ServiceParameterListType_ParameterSet_currArrayIndex < iso2ServiceParameterListType->ParameterSet.arrayLen ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ if(errn == 0) {
+ errn = encode_iso2ParameterSetType(stream, &iso2ServiceParameterListType->ParameterSet.array [iso2ServiceParameterListType_ParameterSet_currArrayIndex++]);
+ }
+ grammarID = 494;
+ } else if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 494:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}ParameterSet), END_ELEMENT] */
+ if (iso2ServiceParameterListType_ParameterSet_currArrayIndex < iso2ServiceParameterListType->ParameterSet.arrayLen ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ if(errn == 0) {
+ errn = encode_iso2ParameterSetType(stream, &iso2ServiceParameterListType->ParameterSet.array [iso2ServiceParameterListType_ParameterSet_currArrayIndex++]);
+ }
+ grammarID = 495;
+ } else if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 495:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}ParameterSet), END_ELEMENT] */
+ if (iso2ServiceParameterListType_ParameterSet_currArrayIndex < iso2ServiceParameterListType->ParameterSet.arrayLen ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ if(errn == 0) {
+ errn = encode_iso2ParameterSetType(stream, &iso2ServiceParameterListType->ParameterSet.array [iso2ServiceParameterListType_ParameterSet_currArrayIndex++]);
+ }
+ grammarID = 496;
+ } else if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 496:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}ParameterSet), END_ELEMENT] */
+ if (iso2ServiceParameterListType_ParameterSet_currArrayIndex < iso2ServiceParameterListType->ParameterSet.arrayLen ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ if(errn == 0) {
+ errn = encode_iso2ParameterSetType(stream, &iso2ServiceParameterListType->ParameterSet.array [iso2ServiceParameterListType_ParameterSet_currArrayIndex++]);
+ }
+ grammarID = 497;
+ } else if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 497:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}ParameterSet), END_ELEMENT] */
+ if (iso2ServiceParameterListType_ParameterSet_currArrayIndex < iso2ServiceParameterListType->ParameterSet.arrayLen ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ if(errn == 0) {
+ errn = encode_iso2ParameterSetType(stream, &iso2ServiceParameterListType->ParameterSet.array [iso2ServiceParameterListType_ParameterSet_currArrayIndex++]);
+ }
+ grammarID = 498;
+ } else if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 498:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}ParameterSet), END_ELEMENT] */
+ if (iso2ServiceParameterListType_ParameterSet_currArrayIndex < iso2ServiceParameterListType->ParameterSet.arrayLen ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ if(errn == 0) {
+ errn = encode_iso2ParameterSetType(stream, &iso2ServiceParameterListType->ParameterSet.array [iso2ServiceParameterListType_ParameterSet_currArrayIndex++]);
+ }
+ grammarID = 499;
+ } else if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 499:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}ParameterSet), END_ELEMENT] */
+ if (iso2ServiceParameterListType_ParameterSet_currArrayIndex < iso2ServiceParameterListType->ParameterSet.arrayLen ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ if(errn == 0) {
+ errn = encode_iso2ParameterSetType(stream, &iso2ServiceParameterListType->ParameterSet.array [iso2ServiceParameterListType_ParameterSet_currArrayIndex++]);
+ }
+ grammarID = 500;
+ } else if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 500:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}ParameterSet), END_ELEMENT] */
+ if (iso2ServiceParameterListType_ParameterSet_currArrayIndex < iso2ServiceParameterListType->ParameterSet.arrayLen ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ if(errn == 0) {
+ errn = encode_iso2ParameterSetType(stream, &iso2ServiceParameterListType->ParameterSet.array [iso2ServiceParameterListType_ParameterSet_currArrayIndex++]);
+ }
+ grammarID = 501;
+ } else if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 501:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}ParameterSet), END_ELEMENT] */
+ if (iso2ServiceParameterListType_ParameterSet_currArrayIndex < iso2ServiceParameterListType->ParameterSet.arrayLen ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ if(errn == 0) {
+ errn = encode_iso2ParameterSetType(stream, &iso2ServiceParameterListType->ParameterSet.array [iso2ServiceParameterListType_ParameterSet_currArrayIndex++]);
+ }
+ grammarID = 502;
+ } else if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 502:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}ParameterSet), END_ELEMENT] */
+ if (iso2ServiceParameterListType_ParameterSet_currArrayIndex < iso2ServiceParameterListType->ParameterSet.arrayLen ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ if(errn == 0) {
+ errn = encode_iso2ParameterSetType(stream, &iso2ServiceParameterListType->ParameterSet.array [iso2ServiceParameterListType_ParameterSet_currArrayIndex++]);
+ }
+ grammarID = 503;
+ } else if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 503:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}ParameterSet), END_ELEMENT] */
+ if (iso2ServiceParameterListType_ParameterSet_currArrayIndex < iso2ServiceParameterListType->ParameterSet.arrayLen ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ if(errn == 0) {
+ errn = encode_iso2ParameterSetType(stream, &iso2ServiceParameterListType->ParameterSet.array [iso2ServiceParameterListType_ParameterSet_currArrayIndex++]);
+ }
+ grammarID = 504;
+ } else if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 504:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}ParameterSet), END_ELEMENT] */
+ if (iso2ServiceParameterListType_ParameterSet_currArrayIndex < iso2ServiceParameterListType->ParameterSet.arrayLen ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ if(errn == 0) {
+ errn = encode_iso2ParameterSetType(stream, &iso2ServiceParameterListType->ParameterSet.array [iso2ServiceParameterListType_ParameterSet_currArrayIndex++]);
+ }
+ grammarID = 505;
+ } else if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 505:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}ParameterSet), END_ELEMENT] */
+ if (iso2ServiceParameterListType_ParameterSet_currArrayIndex < iso2ServiceParameterListType->ParameterSet.arrayLen ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ if(errn == 0) {
+ errn = encode_iso2ParameterSetType(stream, &iso2ServiceParameterListType->ParameterSet.array [iso2ServiceParameterListType_ParameterSet_currArrayIndex++]);
+ }
+ grammarID = 506;
+ } else if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 506:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}ParameterSet), END_ELEMENT] */
+ if (iso2ServiceParameterListType_ParameterSet_currArrayIndex < iso2ServiceParameterListType->ParameterSet.arrayLen ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ if(errn == 0) {
+ errn = encode_iso2ParameterSetType(stream, &iso2ServiceParameterListType->ParameterSet.array [iso2ServiceParameterListType_ParameterSet_currArrayIndex++]);
+ }
+ grammarID = 507;
+ } else if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 507:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}ParameterSet), END_ELEMENT] */
+ if (iso2ServiceParameterListType_ParameterSet_currArrayIndex < iso2ServiceParameterListType->ParameterSet.arrayLen ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ if(errn == 0) {
+ errn = encode_iso2ParameterSetType(stream, &iso2ServiceParameterListType->ParameterSet.array [iso2ServiceParameterListType_ParameterSet_currArrayIndex++]);
+ }
+ grammarID = 508;
+ } else if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 508:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}ParameterSet), END_ELEMENT] */
+ if (iso2ServiceParameterListType_ParameterSet_currArrayIndex < iso2ServiceParameterListType->ParameterSet.arrayLen ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ if(errn == 0) {
+ errn = encode_iso2ParameterSetType(stream, &iso2ServiceParameterListType->ParameterSet.array [iso2ServiceParameterListType_ParameterSet_currArrayIndex++]);
+ }
+ grammarID = 509;
+ } else if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 509:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}ParameterSet), END_ELEMENT] */
+ if (iso2ServiceParameterListType_ParameterSet_currArrayIndex < iso2ServiceParameterListType->ParameterSet.arrayLen ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ if(errn == 0) {
+ errn = encode_iso2ParameterSetType(stream, &iso2ServiceParameterListType->ParameterSet.array [iso2ServiceParameterListType_ParameterSet_currArrayIndex++]);
+ }
+ grammarID = 510;
+ } else if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 510:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}ParameterSet), END_ELEMENT] */
+ if (iso2ServiceParameterListType_ParameterSet_currArrayIndex < iso2ServiceParameterListType->ParameterSet.arrayLen ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ if(errn == 0) {
+ errn = encode_iso2ParameterSetType(stream, &iso2ServiceParameterListType->ParameterSet.array [iso2ServiceParameterListType_ParameterSet_currArrayIndex++]);
+ }
+ grammarID = 511;
+ } else if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 511:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}ParameterSet), END_ELEMENT] */
+ if (iso2ServiceParameterListType_ParameterSet_currArrayIndex < iso2ServiceParameterListType->ParameterSet.arrayLen ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ if(errn == 0) {
+ errn = encode_iso2ParameterSetType(stream, &iso2ServiceParameterListType->ParameterSet.array [iso2ServiceParameterListType_ParameterSet_currArrayIndex++]);
+ }
+ grammarID = 512;
+ } else if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 512:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}ParameterSet), END_ELEMENT] */
+ if (iso2ServiceParameterListType_ParameterSet_currArrayIndex < iso2ServiceParameterListType->ParameterSet.arrayLen ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ if(errn == 0) {
+ errn = encode_iso2ParameterSetType(stream, &iso2ServiceParameterListType->ParameterSet.array [iso2ServiceParameterListType_ParameterSet_currArrayIndex++]);
+ }
+ grammarID = 513;
+ } else if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 513:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}ParameterSet), END_ELEMENT] */
+ if (iso2ServiceParameterListType_ParameterSet_currArrayIndex < iso2ServiceParameterListType->ParameterSet.arrayLen ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ if(errn == 0) {
+ errn = encode_iso2ParameterSetType(stream, &iso2ServiceParameterListType->ParameterSet.array [iso2ServiceParameterListType_ParameterSet_currArrayIndex++]);
+ }
+ grammarID = 514;
+ } else if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 514:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}ParameterSet), END_ELEMENT] */
+ if (iso2ServiceParameterListType_ParameterSet_currArrayIndex < iso2ServiceParameterListType->ParameterSet.arrayLen ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ if(errn == 0) {
+ errn = encode_iso2ParameterSetType(stream, &iso2ServiceParameterListType->ParameterSet.array [iso2ServiceParameterListType_ParameterSet_currArrayIndex++]);
+ }
+ grammarID = 515;
+ } else if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 515:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}ParameterSet), END_ELEMENT] */
+ if (iso2ServiceParameterListType_ParameterSet_currArrayIndex < iso2ServiceParameterListType->ParameterSet.arrayLen ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ if(errn == 0) {
+ errn = encode_iso2ParameterSetType(stream, &iso2ServiceParameterListType->ParameterSet.array [iso2ServiceParameterListType_ParameterSet_currArrayIndex++]);
+ }
+ grammarID = 516;
+ } else if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 516:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}ParameterSet), END_ELEMENT] */
+ if (iso2ServiceParameterListType_ParameterSet_currArrayIndex < iso2ServiceParameterListType->ParameterSet.arrayLen ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ if(errn == 0) {
+ errn = encode_iso2ParameterSetType(stream, &iso2ServiceParameterListType->ParameterSet.array [iso2ServiceParameterListType_ParameterSet_currArrayIndex++]);
+ }
+ grammarID = 517;
+ } else if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 517:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}ParameterSet), END_ELEMENT] */
+ if (iso2ServiceParameterListType_ParameterSet_currArrayIndex < iso2ServiceParameterListType->ParameterSet.arrayLen ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ if(errn == 0) {
+ errn = encode_iso2ParameterSetType(stream, &iso2ServiceParameterListType->ParameterSet.array [iso2ServiceParameterListType_ParameterSet_currArrayIndex++]);
+ }
+ grammarID = 518;
+ } else if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 518:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}ParameterSet), END_ELEMENT] */
+ if (iso2ServiceParameterListType_ParameterSet_currArrayIndex < iso2ServiceParameterListType->ParameterSet.arrayLen ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ if(errn == 0) {
+ errn = encode_iso2ParameterSetType(stream, &iso2ServiceParameterListType->ParameterSet.array [iso2ServiceParameterListType_ParameterSet_currArrayIndex++]);
+ }
+ grammarID = 519;
+ } else if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 519:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}ParameterSet), END_ELEMENT] */
+ if (iso2ServiceParameterListType_ParameterSet_currArrayIndex < iso2ServiceParameterListType->ParameterSet.arrayLen ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ if(errn == 0) {
+ errn = encode_iso2ParameterSetType(stream, &iso2ServiceParameterListType->ParameterSet.array [iso2ServiceParameterListType_ParameterSet_currArrayIndex++]);
+ }
+ grammarID = 520;
+ } else if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 520:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}ParameterSet), END_ELEMENT] */
+ if (iso2ServiceParameterListType_ParameterSet_currArrayIndex < iso2ServiceParameterListType->ParameterSet.arrayLen ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ if(errn == 0) {
+ errn = encode_iso2ParameterSetType(stream, &iso2ServiceParameterListType->ParameterSet.array [iso2ServiceParameterListType_ParameterSet_currArrayIndex++]);
+ }
+ grammarID = 521;
+ } else if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 521:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}ParameterSet), END_ELEMENT] */
+ if (iso2ServiceParameterListType_ParameterSet_currArrayIndex < iso2ServiceParameterListType->ParameterSet.arrayLen ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ if(errn == 0) {
+ errn = encode_iso2ParameterSetType(stream, &iso2ServiceParameterListType->ParameterSet.array [iso2ServiceParameterListType_ParameterSet_currArrayIndex++]);
+ }
+ grammarID = 522;
+ } else if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 522:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}ParameterSet), END_ELEMENT] */
+ if (iso2ServiceParameterListType_ParameterSet_currArrayIndex < iso2ServiceParameterListType->ParameterSet.arrayLen ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ if(errn == 0) {
+ errn = encode_iso2ParameterSetType(stream, &iso2ServiceParameterListType->ParameterSet.array [iso2ServiceParameterListType_ParameterSet_currArrayIndex++]);
+ }
+ grammarID = 523;
+ } else if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 523:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}ParameterSet), END_ELEMENT] */
+ if (iso2ServiceParameterListType_ParameterSet_currArrayIndex < iso2ServiceParameterListType->ParameterSet.arrayLen ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ if(errn == 0) {
+ errn = encode_iso2ParameterSetType(stream, &iso2ServiceParameterListType->ParameterSet.array [iso2ServiceParameterListType_ParameterSet_currArrayIndex++]);
+ }
+ grammarID = 524;
+ } else if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 524:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}ParameterSet), END_ELEMENT] */
+ if (iso2ServiceParameterListType_ParameterSet_currArrayIndex < iso2ServiceParameterListType->ParameterSet.arrayLen ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ if(errn == 0) {
+ errn = encode_iso2ParameterSetType(stream, &iso2ServiceParameterListType->ParameterSet.array [iso2ServiceParameterListType_ParameterSet_currArrayIndex++]);
+ }
+ grammarID = 525;
+ } else if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 525:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}ParameterSet), END_ELEMENT] */
+ if (iso2ServiceParameterListType_ParameterSet_currArrayIndex < iso2ServiceParameterListType->ParameterSet.arrayLen ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ if(errn == 0) {
+ errn = encode_iso2ParameterSetType(stream, &iso2ServiceParameterListType->ParameterSet.array [iso2ServiceParameterListType_ParameterSet_currArrayIndex++]);
+ }
+ grammarID = 526;
+ } else if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 526:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}ParameterSet), END_ELEMENT] */
+ if (iso2ServiceParameterListType_ParameterSet_currArrayIndex < iso2ServiceParameterListType->ParameterSet.arrayLen ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ if(errn == 0) {
+ errn = encode_iso2ParameterSetType(stream, &iso2ServiceParameterListType->ParameterSet.array [iso2ServiceParameterListType_ParameterSet_currArrayIndex++]);
+ }
+ grammarID = 527;
+ } else if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 527:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}ParameterSet), END_ELEMENT] */
+ if (iso2ServiceParameterListType_ParameterSet_currArrayIndex < iso2ServiceParameterListType->ParameterSet.arrayLen ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ if(errn == 0) {
+ errn = encode_iso2ParameterSetType(stream, &iso2ServiceParameterListType->ParameterSet.array [iso2ServiceParameterListType_ParameterSet_currArrayIndex++]);
+ }
+ grammarID = 528;
+ } else if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 528:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}ParameterSet), END_ELEMENT] */
+ if (iso2ServiceParameterListType_ParameterSet_currArrayIndex < iso2ServiceParameterListType->ParameterSet.arrayLen ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ if(errn == 0) {
+ errn = encode_iso2ParameterSetType(stream, &iso2ServiceParameterListType->ParameterSet.array [iso2ServiceParameterListType_ParameterSet_currArrayIndex++]);
+ }
+ grammarID = 529;
+ } else if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 529:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}ParameterSet), END_ELEMENT] */
+ if (iso2ServiceParameterListType_ParameterSet_currArrayIndex < iso2ServiceParameterListType->ParameterSet.arrayLen ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ if(errn == 0) {
+ errn = encode_iso2ParameterSetType(stream, &iso2ServiceParameterListType->ParameterSet.array [iso2ServiceParameterListType_ParameterSet_currArrayIndex++]);
+ }
+ grammarID = 530;
+ } else if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 530:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}ParameterSet), END_ELEMENT] */
+ if (iso2ServiceParameterListType_ParameterSet_currArrayIndex < iso2ServiceParameterListType->ParameterSet.arrayLen ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ if(errn == 0) {
+ errn = encode_iso2ParameterSetType(stream, &iso2ServiceParameterListType->ParameterSet.array [iso2ServiceParameterListType_ParameterSet_currArrayIndex++]);
+ }
+ grammarID = 531;
+ } else if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 531:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}ParameterSet), END_ELEMENT] */
+ if (iso2ServiceParameterListType_ParameterSet_currArrayIndex < iso2ServiceParameterListType->ParameterSet.arrayLen ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ if(errn == 0) {
+ errn = encode_iso2ParameterSetType(stream, &iso2ServiceParameterListType->ParameterSet.array [iso2ServiceParameterListType_ParameterSet_currArrayIndex++]);
+ }
+ grammarID = 532;
+ } else if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 532:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}ParameterSet), END_ELEMENT] */
+ if (iso2ServiceParameterListType_ParameterSet_currArrayIndex < iso2ServiceParameterListType->ParameterSet.arrayLen ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ if(errn == 0) {
+ errn = encode_iso2ParameterSetType(stream, &iso2ServiceParameterListType->ParameterSet.array [iso2ServiceParameterListType_ParameterSet_currArrayIndex++]);
+ }
+ grammarID = 533;
+ } else if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 533:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}ParameterSet), END_ELEMENT] */
+ if (iso2ServiceParameterListType_ParameterSet_currArrayIndex < iso2ServiceParameterListType->ParameterSet.arrayLen ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ if(errn == 0) {
+ errn = encode_iso2ParameterSetType(stream, &iso2ServiceParameterListType->ParameterSet.array [iso2ServiceParameterListType_ParameterSet_currArrayIndex++]);
+ }
+ grammarID = 534;
+ } else if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 534:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}ParameterSet), END_ELEMENT] */
+ if (iso2ServiceParameterListType_ParameterSet_currArrayIndex < iso2ServiceParameterListType->ParameterSet.arrayLen ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ if(errn == 0) {
+ errn = encode_iso2ParameterSetType(stream, &iso2ServiceParameterListType->ParameterSet.array [iso2ServiceParameterListType_ParameterSet_currArrayIndex++]);
+ }
+ grammarID = 535;
+ } else if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 535:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}ParameterSet), END_ELEMENT] */
+ if (iso2ServiceParameterListType_ParameterSet_currArrayIndex < iso2ServiceParameterListType->ParameterSet.arrayLen ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ if(errn == 0) {
+ errn = encode_iso2ParameterSetType(stream, &iso2ServiceParameterListType->ParameterSet.array [iso2ServiceParameterListType_ParameterSet_currArrayIndex++]);
+ }
+ grammarID = 536;
+ } else if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 536:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}ParameterSet), END_ELEMENT] */
+ if (iso2ServiceParameterListType_ParameterSet_currArrayIndex < iso2ServiceParameterListType->ParameterSet.arrayLen ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ if(errn == 0) {
+ errn = encode_iso2ParameterSetType(stream, &iso2ServiceParameterListType->ParameterSet.array [iso2ServiceParameterListType_ParameterSet_currArrayIndex++]);
+ }
+ grammarID = 537;
+ } else if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 537:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}ParameterSet), END_ELEMENT] */
+ if (iso2ServiceParameterListType_ParameterSet_currArrayIndex < iso2ServiceParameterListType->ParameterSet.arrayLen ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ if(errn == 0) {
+ errn = encode_iso2ParameterSetType(stream, &iso2ServiceParameterListType->ParameterSet.array [iso2ServiceParameterListType_ParameterSet_currArrayIndex++]);
+ }
+ grammarID = 538;
+ } else if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 538:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}ParameterSet), END_ELEMENT] */
+ if (iso2ServiceParameterListType_ParameterSet_currArrayIndex < iso2ServiceParameterListType->ParameterSet.arrayLen ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ if(errn == 0) {
+ errn = encode_iso2ParameterSetType(stream, &iso2ServiceParameterListType->ParameterSet.array [iso2ServiceParameterListType_ParameterSet_currArrayIndex++]);
+ }
+ grammarID = 539;
+ } else if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 539:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}ParameterSet), END_ELEMENT] */
+ if (iso2ServiceParameterListType_ParameterSet_currArrayIndex < iso2ServiceParameterListType->ParameterSet.arrayLen ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ if(errn == 0) {
+ errn = encode_iso2ParameterSetType(stream, &iso2ServiceParameterListType->ParameterSet.array [iso2ServiceParameterListType_ParameterSet_currArrayIndex++]);
+ }
+ grammarID = 540;
+ } else if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 540:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}ParameterSet), END_ELEMENT] */
+ if (iso2ServiceParameterListType_ParameterSet_currArrayIndex < iso2ServiceParameterListType->ParameterSet.arrayLen ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ if(errn == 0) {
+ errn = encode_iso2ParameterSetType(stream, &iso2ServiceParameterListType->ParameterSet.array [iso2ServiceParameterListType_ParameterSet_currArrayIndex++]);
+ }
+ grammarID = 541;
+ } else if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 541:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}ParameterSet), END_ELEMENT] */
+ if (iso2ServiceParameterListType_ParameterSet_currArrayIndex < iso2ServiceParameterListType->ParameterSet.arrayLen ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ if(errn == 0) {
+ errn = encode_iso2ParameterSetType(stream, &iso2ServiceParameterListType->ParameterSet.array [iso2ServiceParameterListType_ParameterSet_currArrayIndex++]);
+ }
+ grammarID = 542;
+ } else if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 542:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}ParameterSet), END_ELEMENT] */
+ if (iso2ServiceParameterListType_ParameterSet_currArrayIndex < iso2ServiceParameterListType->ParameterSet.arrayLen ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ if(errn == 0) {
+ errn = encode_iso2ParameterSetType(stream, &iso2ServiceParameterListType->ParameterSet.array [iso2ServiceParameterListType_ParameterSet_currArrayIndex++]);
+ }
+ grammarID = 543;
+ } else if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 543:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}ParameterSet), END_ELEMENT] */
+ if (iso2ServiceParameterListType_ParameterSet_currArrayIndex < iso2ServiceParameterListType->ParameterSet.arrayLen ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ if(errn == 0) {
+ errn = encode_iso2ParameterSetType(stream, &iso2ServiceParameterListType->ParameterSet.array [iso2ServiceParameterListType_ParameterSet_currArrayIndex++]);
+ }
+ grammarID = 544;
+ } else if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 544:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}ParameterSet), END_ELEMENT] */
+ if (iso2ServiceParameterListType_ParameterSet_currArrayIndex < iso2ServiceParameterListType->ParameterSet.arrayLen ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ if(errn == 0) {
+ errn = encode_iso2ParameterSetType(stream, &iso2ServiceParameterListType->ParameterSet.array [iso2ServiceParameterListType_ParameterSet_currArrayIndex++]);
+ }
+ grammarID = 545;
+ } else if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 545:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}ParameterSet), END_ELEMENT] */
+ if (iso2ServiceParameterListType_ParameterSet_currArrayIndex < iso2ServiceParameterListType->ParameterSet.arrayLen ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ if(errn == 0) {
+ errn = encode_iso2ParameterSetType(stream, &iso2ServiceParameterListType->ParameterSet.array [iso2ServiceParameterListType_ParameterSet_currArrayIndex++]);
+ }
+ grammarID = 546;
+ } else if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 546:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}ParameterSet), END_ELEMENT] */
+ if (iso2ServiceParameterListType_ParameterSet_currArrayIndex < iso2ServiceParameterListType->ParameterSet.arrayLen ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ if(errn == 0) {
+ errn = encode_iso2ParameterSetType(stream, &iso2ServiceParameterListType->ParameterSet.array [iso2ServiceParameterListType_ParameterSet_currArrayIndex++]);
+ }
+ grammarID = 547;
+ } else if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 547:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}ParameterSet), END_ELEMENT] */
+ if (iso2ServiceParameterListType_ParameterSet_currArrayIndex < iso2ServiceParameterListType->ParameterSet.arrayLen ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ if(errn == 0) {
+ errn = encode_iso2ParameterSetType(stream, &iso2ServiceParameterListType->ParameterSet.array [iso2ServiceParameterListType_ParameterSet_currArrayIndex++]);
+ }
+ grammarID = 548;
+ } else if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 548:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}ParameterSet), END_ELEMENT] */
+ if (iso2ServiceParameterListType_ParameterSet_currArrayIndex < iso2ServiceParameterListType->ParameterSet.arrayLen ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ if(errn == 0) {
+ errn = encode_iso2ParameterSetType(stream, &iso2ServiceParameterListType->ParameterSet.array [iso2ServiceParameterListType_ParameterSet_currArrayIndex++]);
+ }
+ grammarID = 549;
+ } else if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 549:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}ParameterSet), END_ELEMENT] */
+ if (iso2ServiceParameterListType_ParameterSet_currArrayIndex < iso2ServiceParameterListType->ParameterSet.arrayLen ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ if(errn == 0) {
+ errn = encode_iso2ParameterSetType(stream, &iso2ServiceParameterListType->ParameterSet.array [iso2ServiceParameterListType_ParameterSet_currArrayIndex++]);
+ }
+ grammarID = 550;
+ } else if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 550:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}ParameterSet), END_ELEMENT] */
+ if (iso2ServiceParameterListType_ParameterSet_currArrayIndex < iso2ServiceParameterListType->ParameterSet.arrayLen ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ if(errn == 0) {
+ errn = encode_iso2ParameterSetType(stream, &iso2ServiceParameterListType->ParameterSet.array [iso2ServiceParameterListType_ParameterSet_currArrayIndex++]);
+ }
+ grammarID = 551;
+ } else if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 551:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}ParameterSet), END_ELEMENT] */
+ if (iso2ServiceParameterListType_ParameterSet_currArrayIndex < iso2ServiceParameterListType->ParameterSet.arrayLen ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ if(errn == 0) {
+ errn = encode_iso2ParameterSetType(stream, &iso2ServiceParameterListType->ParameterSet.array [iso2ServiceParameterListType_ParameterSet_currArrayIndex++]);
+ }
+ grammarID = 552;
+ } else if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 552:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}ParameterSet), END_ELEMENT] */
+ if (iso2ServiceParameterListType_ParameterSet_currArrayIndex < iso2ServiceParameterListType->ParameterSet.arrayLen ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ if(errn == 0) {
+ errn = encode_iso2ParameterSetType(stream, &iso2ServiceParameterListType->ParameterSet.array [iso2ServiceParameterListType_ParameterSet_currArrayIndex++]);
+ }
+ grammarID = 553;
+ } else if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 553:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}ParameterSet), END_ELEMENT] */
+ if (iso2ServiceParameterListType_ParameterSet_currArrayIndex < iso2ServiceParameterListType->ParameterSet.arrayLen ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ if(errn == 0) {
+ errn = encode_iso2ParameterSetType(stream, &iso2ServiceParameterListType->ParameterSet.array [iso2ServiceParameterListType_ParameterSet_currArrayIndex++]);
+ }
+ grammarID = 554;
+ } else if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 554:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}ParameterSet), END_ELEMENT] */
+ if (iso2ServiceParameterListType_ParameterSet_currArrayIndex < iso2ServiceParameterListType->ParameterSet.arrayLen ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ if(errn == 0) {
+ errn = encode_iso2ParameterSetType(stream, &iso2ServiceParameterListType->ParameterSet.array [iso2ServiceParameterListType_ParameterSet_currArrayIndex++]);
+ }
+ grammarID = 555;
+ } else if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 555:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}ParameterSet), END_ELEMENT] */
+ if (iso2ServiceParameterListType_ParameterSet_currArrayIndex < iso2ServiceParameterListType->ParameterSet.arrayLen ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ if(errn == 0) {
+ errn = encode_iso2ParameterSetType(stream, &iso2ServiceParameterListType->ParameterSet.array [iso2ServiceParameterListType_ParameterSet_currArrayIndex++]);
+ }
+ grammarID = 556;
+ } else if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 556:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}ParameterSet), END_ELEMENT] */
+ if (iso2ServiceParameterListType_ParameterSet_currArrayIndex < iso2ServiceParameterListType->ParameterSet.arrayLen ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ if(errn == 0) {
+ errn = encode_iso2ParameterSetType(stream, &iso2ServiceParameterListType->ParameterSet.array [iso2ServiceParameterListType_ParameterSet_currArrayIndex++]);
+ }
+ grammarID = 557;
+ } else if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 557:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}ParameterSet), END_ELEMENT] */
+ if (iso2ServiceParameterListType_ParameterSet_currArrayIndex < iso2ServiceParameterListType->ParameterSet.arrayLen ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ if(errn == 0) {
+ errn = encode_iso2ParameterSetType(stream, &iso2ServiceParameterListType->ParameterSet.array [iso2ServiceParameterListType_ParameterSet_currArrayIndex++]);
+ }
+ grammarID = 558;
+ } else if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 558:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}ParameterSet), END_ELEMENT] */
+ if (iso2ServiceParameterListType_ParameterSet_currArrayIndex < iso2ServiceParameterListType->ParameterSet.arrayLen ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ if(errn == 0) {
+ errn = encode_iso2ParameterSetType(stream, &iso2ServiceParameterListType->ParameterSet.array [iso2ServiceParameterListType_ParameterSet_currArrayIndex++]);
+ }
+ grammarID = 559;
+ } else if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 559:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}ParameterSet), END_ELEMENT] */
+ if (iso2ServiceParameterListType_ParameterSet_currArrayIndex < iso2ServiceParameterListType->ParameterSet.arrayLen ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ if(errn == 0) {
+ errn = encode_iso2ParameterSetType(stream, &iso2ServiceParameterListType->ParameterSet.array [iso2ServiceParameterListType_ParameterSet_currArrayIndex++]);
+ }
+ grammarID = 560;
+ } else if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 560:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}ParameterSet), END_ELEMENT] */
+ if (iso2ServiceParameterListType_ParameterSet_currArrayIndex < iso2ServiceParameterListType->ParameterSet.arrayLen ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ if(errn == 0) {
+ errn = encode_iso2ParameterSetType(stream, &iso2ServiceParameterListType->ParameterSet.array [iso2ServiceParameterListType_ParameterSet_currArrayIndex++]);
+ }
+ grammarID = 561;
+ } else if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 561:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}ParameterSet), END_ELEMENT] */
+ if (iso2ServiceParameterListType_ParameterSet_currArrayIndex < iso2ServiceParameterListType->ParameterSet.arrayLen ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ if(errn == 0) {
+ errn = encode_iso2ParameterSetType(stream, &iso2ServiceParameterListType->ParameterSet.array [iso2ServiceParameterListType_ParameterSet_currArrayIndex++]);
+ }
+ grammarID = 562;
+ } else if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 562:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}ParameterSet), END_ELEMENT] */
+ if (iso2ServiceParameterListType_ParameterSet_currArrayIndex < iso2ServiceParameterListType->ParameterSet.arrayLen ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ if(errn == 0) {
+ errn = encode_iso2ParameterSetType(stream, &iso2ServiceParameterListType->ParameterSet.array [iso2ServiceParameterListType_ParameterSet_currArrayIndex++]);
+ }
+ grammarID = 563;
+ } else if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 563:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}ParameterSet), END_ELEMENT] */
+ if (iso2ServiceParameterListType_ParameterSet_currArrayIndex < iso2ServiceParameterListType->ParameterSet.arrayLen ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ if(errn == 0) {
+ errn = encode_iso2ParameterSetType(stream, &iso2ServiceParameterListType->ParameterSet.array [iso2ServiceParameterListType_ParameterSet_currArrayIndex++]);
+ }
+ grammarID = 564;
+ } else if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 564:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}ParameterSet), END_ELEMENT] */
+ if (iso2ServiceParameterListType_ParameterSet_currArrayIndex < iso2ServiceParameterListType->ParameterSet.arrayLen ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ if(errn == 0) {
+ errn = encode_iso2ParameterSetType(stream, &iso2ServiceParameterListType->ParameterSet.array [iso2ServiceParameterListType_ParameterSet_currArrayIndex++]);
+ }
+ grammarID = 565;
+ } else if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 565:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}ParameterSet), END_ELEMENT] */
+ if (iso2ServiceParameterListType_ParameterSet_currArrayIndex < iso2ServiceParameterListType->ParameterSet.arrayLen ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ if(errn == 0) {
+ errn = encode_iso2ParameterSetType(stream, &iso2ServiceParameterListType->ParameterSet.array [iso2ServiceParameterListType_ParameterSet_currArrayIndex++]);
+ }
+ grammarID = 566;
+ } else if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 566:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}ParameterSet), END_ELEMENT] */
+ if (iso2ServiceParameterListType_ParameterSet_currArrayIndex < iso2ServiceParameterListType->ParameterSet.arrayLen ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ if(errn == 0) {
+ errn = encode_iso2ParameterSetType(stream, &iso2ServiceParameterListType->ParameterSet.array [iso2ServiceParameterListType_ParameterSet_currArrayIndex++]);
+ }
+ grammarID = 567;
+ } else if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 567:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}ParameterSet), END_ELEMENT] */
+ if (iso2ServiceParameterListType_ParameterSet_currArrayIndex < iso2ServiceParameterListType->ParameterSet.arrayLen ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ if(errn == 0) {
+ errn = encode_iso2ParameterSetType(stream, &iso2ServiceParameterListType->ParameterSet.array [iso2ServiceParameterListType_ParameterSet_currArrayIndex++]);
+ }
+ grammarID = 568;
+ } else if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 568:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}ParameterSet), END_ELEMENT] */
+ if (iso2ServiceParameterListType_ParameterSet_currArrayIndex < iso2ServiceParameterListType->ParameterSet.arrayLen ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ if(errn == 0) {
+ errn = encode_iso2ParameterSetType(stream, &iso2ServiceParameterListType->ParameterSet.array [iso2ServiceParameterListType_ParameterSet_currArrayIndex++]);
+ }
+ grammarID = 569;
+ } else if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 569:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}ParameterSet), END_ELEMENT] */
+ if (iso2ServiceParameterListType_ParameterSet_currArrayIndex < iso2ServiceParameterListType->ParameterSet.arrayLen ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ if(errn == 0) {
+ errn = encode_iso2ParameterSetType(stream, &iso2ServiceParameterListType->ParameterSet.array [iso2ServiceParameterListType_ParameterSet_currArrayIndex++]);
+ }
+ grammarID = 570;
+ } else if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 570:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}ParameterSet), END_ELEMENT] */
+ if (iso2ServiceParameterListType_ParameterSet_currArrayIndex < iso2ServiceParameterListType->ParameterSet.arrayLen ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ if(errn == 0) {
+ errn = encode_iso2ParameterSetType(stream, &iso2ServiceParameterListType->ParameterSet.array [iso2ServiceParameterListType_ParameterSet_currArrayIndex++]);
+ }
+ grammarID = 571;
+ } else if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 571:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}ParameterSet), END_ELEMENT] */
+ if (iso2ServiceParameterListType_ParameterSet_currArrayIndex < iso2ServiceParameterListType->ParameterSet.arrayLen ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ if(errn == 0) {
+ errn = encode_iso2ParameterSetType(stream, &iso2ServiceParameterListType->ParameterSet.array [iso2ServiceParameterListType_ParameterSet_currArrayIndex++]);
+ }
+ grammarID = 572;
+ } else if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 572:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}ParameterSet), END_ELEMENT] */
+ if (iso2ServiceParameterListType_ParameterSet_currArrayIndex < iso2ServiceParameterListType->ParameterSet.arrayLen ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ if(errn == 0) {
+ errn = encode_iso2ParameterSetType(stream, &iso2ServiceParameterListType->ParameterSet.array [iso2ServiceParameterListType_ParameterSet_currArrayIndex++]);
+ }
+ grammarID = 573;
+ } else if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 573:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}ParameterSet), END_ELEMENT] */
+ if (iso2ServiceParameterListType_ParameterSet_currArrayIndex < iso2ServiceParameterListType->ParameterSet.arrayLen ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ if(errn == 0) {
+ errn = encode_iso2ParameterSetType(stream, &iso2ServiceParameterListType->ParameterSet.array [iso2ServiceParameterListType_ParameterSet_currArrayIndex++]);
+ }
+ grammarID = 574;
+ } else if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 574:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}ParameterSet), END_ELEMENT] */
+ if (iso2ServiceParameterListType_ParameterSet_currArrayIndex < iso2ServiceParameterListType->ParameterSet.arrayLen ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ if(errn == 0) {
+ errn = encode_iso2ParameterSetType(stream, &iso2ServiceParameterListType->ParameterSet.array [iso2ServiceParameterListType_ParameterSet_currArrayIndex++]);
+ }
+ grammarID = 3;
+ } else if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 3:
+ /* Element[END_ELEMENT] */
+ if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 1, 0);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } 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:2016:MsgDataTypes,PMaxScheduleType', base type name='anyType', content type='ELEMENT', isAbstract='false', hasTypeId='false', final='0', block='0', particle='("urn:iso:15118:2:2016:MsgDataTypes":PMaxScheduleEntry{1-UNBOUNDED})', derivedBy='RESTRICTION'. */
+static int encode_iso2PMaxScheduleType(bitstream_t* stream, struct iso2PMaxScheduleType* iso2PMaxScheduleType) {
+ int grammarID = 575;
+ int done = 0;
+
+ unsigned int iso2PMaxScheduleType_PMaxScheduleEntry_currArrayIndex = 0;
+
+ while(!done) {
+ switch(grammarID) {
+ case 575:
+ /* FirstStartTag[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}PMaxScheduleEntry)] */
+ if (iso2PMaxScheduleType_PMaxScheduleEntry_currArrayIndex < iso2PMaxScheduleType->PMaxScheduleEntry.arrayLen ) {
+ errn = encodeNBitUnsignedInteger(stream, 1, 0);
+ if(errn == 0) {
+ errn = encode_iso2PMaxScheduleEntryType(stream, &iso2PMaxScheduleType->PMaxScheduleEntry.array [iso2PMaxScheduleType_PMaxScheduleEntry_currArrayIndex++]);
+ }
+ grammarID = 576;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 576:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}PMaxScheduleEntry), END_ELEMENT] */
+ if (iso2PMaxScheduleType_PMaxScheduleEntry_currArrayIndex < iso2PMaxScheduleType->PMaxScheduleEntry.arrayLen ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ if(errn == 0) {
+ errn = encode_iso2PMaxScheduleEntryType(stream, &iso2PMaxScheduleType->PMaxScheduleEntry.array [iso2PMaxScheduleType_PMaxScheduleEntry_currArrayIndex++]);
+ }
+ grammarID = 576;
+ } else if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_GRAMMAR_ID;
+ break;
+ }
+ if(errn) {
+ done = 1;
+ }
+ }
+ return errn;
+}
+
+/* Complex type name='http://www.w3.org/2000/09/xmldsig#,SignaturePropertiesType', base type name='anyType', content type='ELEMENT', isAbstract='false', hasTypeId='false', final='0', block='0', particle='("http://www.w3.org/2000/09/xmldsig#":SignatureProperty{1-UNBOUNDED})', derivedBy='RESTRICTION'. */
+static int encode_iso2SignaturePropertiesType(bitstream_t* stream, struct iso2SignaturePropertiesType* iso2SignaturePropertiesType) {
+ int grammarID = 577;
+ int done = 0;
+
+ unsigned int iso2SignaturePropertiesType_SignatureProperty_currArrayIndex = 0;
+
+ while(!done) {
+ switch(grammarID) {
+ case 577:
+ /* FirstStartTag[ATTRIBUTE[STRING](Id), START_ELEMENT({http://www.w3.org/2000/09/xmldsig#}SignatureProperty)] */
+ if ( iso2SignaturePropertiesType->Id_isUsed == 1u ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ if(errn == 0) {
+ /* encode string as string table miss (+2 len)*/
+ errn = encodeUnsignedInteger16(stream, (uint16_t)(iso2SignaturePropertiesType->Id.charactersLen + 2));
+ if (errn == 0) {
+ errn = encodeCharacters(stream, iso2SignaturePropertiesType->Id.characters, iso2SignaturePropertiesType->Id.charactersLen);
+ }
+ }
+ grammarID = 578;
+ } else if (iso2SignaturePropertiesType_SignatureProperty_currArrayIndex < iso2SignaturePropertiesType->SignatureProperty.arrayLen ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ errn = encode_iso2SignaturePropertyType(stream, &iso2SignaturePropertiesType->SignatureProperty.array [iso2SignaturePropertiesType_SignatureProperty_currArrayIndex++]);
+ }
+ grammarID = 579;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 578:
+ /* StartTag[START_ELEMENT({http://www.w3.org/2000/09/xmldsig#}SignatureProperty)] */
+ if (iso2SignaturePropertiesType_SignatureProperty_currArrayIndex < iso2SignaturePropertiesType->SignatureProperty.arrayLen ) {
+ errn = encodeNBitUnsignedInteger(stream, 1, 0);
+ if(errn == 0) {
+ errn = encode_iso2SignaturePropertyType(stream, &iso2SignaturePropertiesType->SignatureProperty.array [iso2SignaturePropertiesType_SignatureProperty_currArrayIndex++]);
+ }
+ grammarID = 579;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 579:
+ /* Element[START_ELEMENT({http://www.w3.org/2000/09/xmldsig#}SignatureProperty), END_ELEMENT] */
+ if (iso2SignaturePropertiesType_SignatureProperty_currArrayIndex < iso2SignaturePropertiesType->SignatureProperty.arrayLen ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ if(errn == 0) {
+ errn = encode_iso2SignaturePropertyType(stream, &iso2SignaturePropertiesType->SignatureProperty.array [iso2SignaturePropertiesType_SignatureProperty_currArrayIndex++]);
+ }
+ grammarID = 579;
+ } else if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } 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:2016:MsgDataTypes,PMaxScheduleEntryType', base type name='EntryType', content type='ELEMENT', isAbstract='false', hasTypeId='false', final='0', block='0', particle='(("urn:iso:15118:2:2016:MsgDataTypes":RelativeTimeInterval),("urn:iso:15118:2:2016:MsgDataTypes":PMax{1-3}))', derivedBy='EXTENSION'. */
+static int encode_iso2PMaxScheduleEntryType(bitstream_t* stream, struct iso2PMaxScheduleEntryType* iso2PMaxScheduleEntryType) {
+ int grammarID = 580;
+ int done = 0;
+
+ unsigned int iso2PMaxScheduleEntryType_PMax_currArrayIndex = 0;
+
+ while(!done) {
+ switch(grammarID) {
+ case 580:
+ /* FirstStartTag[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}RelativeTimeInterval)] */
+ if ( 1 == 1 ) {
+ errn = encodeNBitUnsignedInteger(stream, 1, 0);
+ if(errn == 0) {
+ errn = encode_iso2RelativeTimeIntervalType(stream, &iso2PMaxScheduleEntryType->RelativeTimeInterval );
+ }
+ grammarID = 581;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 581:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}PMax)] */
+ if (iso2PMaxScheduleEntryType_PMax_currArrayIndex < iso2PMaxScheduleEntryType->PMax.arrayLen ) {
+ errn = encodeNBitUnsignedInteger(stream, 1, 0);
+ if(errn == 0) {
+ errn = encode_iso2PhysicalValueType(stream, &iso2PMaxScheduleEntryType->PMax.array [iso2PMaxScheduleEntryType_PMax_currArrayIndex++]);
+ }
+ grammarID = 582;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 582:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}PMax), END_ELEMENT] */
+ if (iso2PMaxScheduleEntryType_PMax_currArrayIndex < iso2PMaxScheduleEntryType->PMax.arrayLen ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ if(errn == 0) {
+ errn = encode_iso2PhysicalValueType(stream, &iso2PMaxScheduleEntryType->PMax.array [iso2PMaxScheduleEntryType_PMax_currArrayIndex++]);
+ }
+ grammarID = 583;
+ } else if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 583:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}PMax), END_ELEMENT] */
+ if (iso2PMaxScheduleEntryType_PMax_currArrayIndex < iso2PMaxScheduleEntryType->PMax.arrayLen ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ if(errn == 0) {
+ errn = encode_iso2PhysicalValueType(stream, &iso2PMaxScheduleEntryType->PMax.array [iso2PMaxScheduleEntryType_PMax_currArrayIndex++]);
+ }
+ grammarID = 3;
+ } else if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 3:
+ /* Element[END_ELEMENT] */
+ if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 1, 0);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_GRAMMAR_ID;
+ break;
+ }
+ if(errn) {
+ done = 1;
+ }
+ }
+ return errn;
+}
+
+/* Complex type name='http://www.w3.org/2000/09/xmldsig#,SignatureType', base type name='anyType', content type='ELEMENT', isAbstract='false', hasTypeId='false', final='0', block='0', particle='("http://www.w3.org/2000/09/xmldsig#":SignedInfo,"http://www.w3.org/2000/09/xmldsig#":SignatureValue,"http://www.w3.org/2000/09/xmldsig#":KeyInfo{0-1},"http://www.w3.org/2000/09/xmldsig#":Object{0-UNBOUNDED})', derivedBy='RESTRICTION'. */
+static int encode_iso2SignatureType(bitstream_t* stream, struct iso2SignatureType* iso2SignatureType) {
+ int grammarID = 584;
+ int done = 0;
+
+ unsigned int iso2SignatureType_Object_currArrayIndex = 0;
+
+ while(!done) {
+ switch(grammarID) {
+ case 584:
+ /* FirstStartTag[ATTRIBUTE[STRING](Id), START_ELEMENT({http://www.w3.org/2000/09/xmldsig#}SignedInfo)] */
+ if ( iso2SignatureType->Id_isUsed == 1u ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ if(errn == 0) {
+ /* encode string as string table miss (+2 len)*/
+ errn = encodeUnsignedInteger16(stream, (uint16_t)(iso2SignatureType->Id.charactersLen + 2));
+ if (errn == 0) {
+ errn = encodeCharacters(stream, iso2SignatureType->Id.characters, iso2SignatureType->Id.charactersLen);
+ }
+ }
+ grammarID = 585;
+ } else if ( 1 == 1 ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ errn = encode_iso2SignedInfoType(stream, &iso2SignatureType->SignedInfo );
+ }
+ grammarID = 586;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 585:
+ /* StartTag[START_ELEMENT({http://www.w3.org/2000/09/xmldsig#}SignedInfo)] */
+ if ( 1 == 1 ) {
+ errn = encodeNBitUnsignedInteger(stream, 1, 0);
+ if(errn == 0) {
+ errn = encode_iso2SignedInfoType(stream, &iso2SignatureType->SignedInfo );
+ }
+ grammarID = 586;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 586:
+ /* Element[START_ELEMENT({http://www.w3.org/2000/09/xmldsig#}SignatureValue)] */
+ if ( 1 == 1 ) {
+ errn = encodeNBitUnsignedInteger(stream, 1, 0);
+ if(errn == 0) {
+ errn = encode_iso2SignatureValueType(stream, &iso2SignatureType->SignatureValue );
+ }
+ grammarID = 587;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 587:
+ /* Element[START_ELEMENT({http://www.w3.org/2000/09/xmldsig#}KeyInfo), START_ELEMENT({http://www.w3.org/2000/09/xmldsig#}Object), END_ELEMENT] */
+ if ( iso2SignatureType->KeyInfo_isUsed == 1u ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ if(errn == 0) {
+ errn = encode_iso2KeyInfoType(stream, &iso2SignatureType->KeyInfo );
+ }
+ grammarID = 588;
+ } else if (iso2SignatureType_Object_currArrayIndex < iso2SignatureType->Object.arrayLen ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ errn = encode_iso2ObjectType(stream, &iso2SignatureType->Object.array [iso2SignatureType_Object_currArrayIndex++]);
+ }
+ grammarID = 588;
+ } else if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 2);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 588:
+ /* Element[START_ELEMENT({http://www.w3.org/2000/09/xmldsig#}Object), END_ELEMENT] */
+ if (iso2SignatureType_Object_currArrayIndex < iso2SignatureType->Object.arrayLen ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ if(errn == 0) {
+ errn = encode_iso2ObjectType(stream, &iso2SignatureType->Object.array [iso2SignatureType_Object_currArrayIndex++]);
+ }
+ grammarID = 588;
+ } else if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } 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:2016:MsgBody,VehicleCheckInReqType', base type name='BodyBaseType', content type='ELEMENT', isAbstract='false', hasTypeId='false', final='0', block='0', particle='("urn:iso:15118:2:2016:MsgBody":EVCheckInStatus,"urn:iso:15118:2:2016:MsgBody":ParkingMethod{0-1})', derivedBy='EXTENSION'. */
+static int encode_iso2VehicleCheckInReqType(bitstream_t* stream, struct iso2VehicleCheckInReqType* iso2VehicleCheckInReqType) {
+ int grammarID = 589;
+ int done = 0;
+
+
+ while(!done) {
+ switch(grammarID) {
+ case 589:
+ /* FirstStartTag[START_ELEMENT({urn:iso:15118:2:2016:MsgBody}EVCheckInStatus)] */
+ 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, iso2VehicleCheckInReqType->EVCheckInStatus);
+ /* valid EE */
+ errn = encodeNBitUnsignedInteger(stream, 1, 0);
+ }
+ }
+ grammarID = 590;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 590:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgBody}ParkingMethod), END_ELEMENT] */
+ if ( iso2VehicleCheckInReqType->ParkingMethod_isUsed == 1u ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ if(errn == 0) {
+ /* FirstStartTag[CHARACTERS[ENUMERATION]] */
+ errn = encodeNBitUnsignedInteger(stream, 1, 0);
+ if(errn == 0) {
+ errn = encodeNBitUnsignedInteger(stream, 2, iso2VehicleCheckInReqType->ParkingMethod);
+ /* valid EE */
+ errn = encodeNBitUnsignedInteger(stream, 1, 0);
+ }
+ }
+ grammarID = 3;
+ } else if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 3:
+ /* Element[END_ELEMENT] */
+ if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 1, 0);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } 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:2016:MsgBody,ConnectChargingDeviceResType', base type name='V2GResponseType', content type='ELEMENT', isAbstract='false', hasTypeId='false', final='0', block='0', particle='(("urn:iso:15118:2:2016:MsgBody":ResponseCode,"urn:iso:15118:2:2016:MsgBody":EVSEStatus{0-1}),("urn:iso:15118:2:2016:MsgBody":EVSEProcessing,"urn:iso:15118:2:2016:MsgBody":EVSEElectricalChargingDeviceStatus,"urn:iso:15118:2:2016:MsgBody":EVSEMechanicalChargingDeviceStatus))', derivedBy='EXTENSION'. */
+static int encode_iso2ConnectChargingDeviceResType(bitstream_t* stream, struct iso2ConnectChargingDeviceResType* iso2ConnectChargingDeviceResType) {
+ int grammarID = 591;
+ int done = 0;
+
+
+ while(!done) {
+ switch(grammarID) {
+ case 591:
+ /* FirstStartTag[START_ELEMENT({urn:iso:15118:2:2016:MsgBody}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, 5, iso2ConnectChargingDeviceResType->ResponseCode);
+ /* valid EE */
+ errn = encodeNBitUnsignedInteger(stream, 1, 0);
+ }
+ }
+ grammarID = 592;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 592:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgBody}EVSEStatus), START_ELEMENT({urn:iso:15118:2:2016:MsgBody}EVSEProcessing)] */
+ if ( iso2ConnectChargingDeviceResType->EVSEStatus_isUsed == 1u ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ if(errn == 0) {
+ errn = encode_iso2EVSEStatusType(stream, &iso2ConnectChargingDeviceResType->EVSEStatus );
+ }
+ grammarID = 593;
+ } else if ( 1 == 1 ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ /* FirstStartTag[CHARACTERS[ENUMERATION]] */
+ errn = encodeNBitUnsignedInteger(stream, 1, 0);
+ if(errn == 0) {
+ errn = encodeNBitUnsignedInteger(stream, 2, iso2ConnectChargingDeviceResType->EVSEProcessing);
+ /* valid EE */
+ errn = encodeNBitUnsignedInteger(stream, 1, 0);
+ }
+ }
+ grammarID = 594;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 593:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgBody}EVSEProcessing)] */
+ 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, iso2ConnectChargingDeviceResType->EVSEProcessing);
+ /* valid EE */
+ errn = encodeNBitUnsignedInteger(stream, 1, 0);
+ }
+ }
+ grammarID = 594;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 594:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgBody}EVSEElectricalChargingDeviceStatus)] */
+ 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, 1, iso2ConnectChargingDeviceResType->EVSEElectricalChargingDeviceStatus);
+ /* valid EE */
+ errn = encodeNBitUnsignedInteger(stream, 1, 0);
+ }
+ }
+ grammarID = 595;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 595:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgBody}EVSEMechanicalChargingDeviceStatus)] */
+ 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, iso2ConnectChargingDeviceResType->EVSEMechanicalChargingDeviceStatus);
+ /* valid EE */
+ errn = encodeNBitUnsignedInteger(stream, 1, 0);
+ }
+ }
+ grammarID = 3;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 3:
+ /* Element[END_ELEMENT] */
+ if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 1, 0);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } 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:2016:MsgBody,WeldingDetectionResType', base type name='V2GResponseType', content type='ELEMENT', isAbstract='false', hasTypeId='false', final='0', block='0', particle='(("urn:iso:15118:2:2016:MsgBody":ResponseCode,"urn:iso:15118:2:2016:MsgBody":EVSEStatus{0-1}),("urn:iso:15118:2:2016:MsgBody":EVSEPresentVoltage))', derivedBy='EXTENSION'. */
+static int encode_iso2WeldingDetectionResType(bitstream_t* stream, struct iso2WeldingDetectionResType* iso2WeldingDetectionResType) {
+ int grammarID = 596;
+ int done = 0;
+
+
+ while(!done) {
+ switch(grammarID) {
+ case 596:
+ /* FirstStartTag[START_ELEMENT({urn:iso:15118:2:2016:MsgBody}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, 5, iso2WeldingDetectionResType->ResponseCode);
+ /* valid EE */
+ errn = encodeNBitUnsignedInteger(stream, 1, 0);
+ }
+ }
+ grammarID = 597;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 597:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgBody}EVSEStatus), START_ELEMENT({urn:iso:15118:2:2016:MsgBody}EVSEPresentVoltage)] */
+ if ( iso2WeldingDetectionResType->EVSEStatus_isUsed == 1u ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ if(errn == 0) {
+ errn = encode_iso2EVSEStatusType(stream, &iso2WeldingDetectionResType->EVSEStatus );
+ }
+ grammarID = 598;
+ } else if ( 1 == 1 ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ errn = encode_iso2PhysicalValueType(stream, &iso2WeldingDetectionResType->EVSEPresentVoltage );
+ }
+ grammarID = 3;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 598:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgBody}EVSEPresentVoltage)] */
+ if ( 1 == 1 ) {
+ errn = encodeNBitUnsignedInteger(stream, 1, 0);
+ if(errn == 0) {
+ errn = encode_iso2PhysicalValueType(stream, &iso2WeldingDetectionResType->EVSEPresentVoltage );
+ }
+ grammarID = 3;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 3:
+ /* Element[END_ELEMENT] */
+ if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 1, 0);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } 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:2016:MsgBody,SessionStopResType', base type name='V2GResponseType', content type='ELEMENT', isAbstract='false', hasTypeId='false', final='0', block='0', particle='("urn:iso:15118:2:2016:MsgBody":ResponseCode,"urn:iso:15118:2:2016:MsgBody":EVSEStatus{0-1})', derivedBy='EXTENSION'. */
+static int encode_iso2SessionStopResType(bitstream_t* stream, struct iso2SessionStopResType* iso2SessionStopResType) {
+ int grammarID = 599;
+ int done = 0;
+
+
+ while(!done) {
+ switch(grammarID) {
+ case 599:
+ /* FirstStartTag[START_ELEMENT({urn:iso:15118:2:2016:MsgBody}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, 5, iso2SessionStopResType->ResponseCode);
+ /* valid EE */
+ errn = encodeNBitUnsignedInteger(stream, 1, 0);
+ }
+ }
+ grammarID = 600;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 600:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgBody}EVSEStatus), END_ELEMENT] */
+ if ( iso2SessionStopResType->EVSEStatus_isUsed == 1u ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ if(errn == 0) {
+ errn = encode_iso2EVSEStatusType(stream, &iso2SessionStopResType->EVSEStatus );
+ }
+ grammarID = 3;
+ } else if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 3:
+ /* Element[END_ELEMENT] */
+ if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 1, 0);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } 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:2016:MsgBody,VehicleCheckInResType', base type name='V2GResponseType', content type='ELEMENT', isAbstract='false', hasTypeId='false', final='0', block='0', particle='(("urn:iso:15118:2:2016:MsgBody":ResponseCode,"urn:iso:15118:2:2016:MsgBody":EVSEStatus{0-1}),("urn:iso:15118:2:2016:MsgBody":VehicleSpace,"urn:iso:15118:2:2016:MsgBody":TargetOffset{0-1}))', derivedBy='EXTENSION'. */
+static int encode_iso2VehicleCheckInResType(bitstream_t* stream, struct iso2VehicleCheckInResType* iso2VehicleCheckInResType) {
+ int grammarID = 601;
+ int done = 0;
+
+
+ while(!done) {
+ switch(grammarID) {
+ case 601:
+ /* FirstStartTag[START_ELEMENT({urn:iso:15118:2:2016:MsgBody}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, 5, iso2VehicleCheckInResType->ResponseCode);
+ /* valid EE */
+ errn = encodeNBitUnsignedInteger(stream, 1, 0);
+ }
+ }
+ grammarID = 602;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 602:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgBody}EVSEStatus), START_ELEMENT({urn:iso:15118:2:2016:MsgBody}VehicleSpace)] */
+ if ( iso2VehicleCheckInResType->EVSEStatus_isUsed == 1u ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ if(errn == 0) {
+ errn = encode_iso2EVSEStatusType(stream, &iso2VehicleCheckInResType->EVSEStatus );
+ }
+ grammarID = 603;
+ } else if ( 1 == 1 ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ /* First(xsi:type)StartTag[CHARACTERS[UNSIGNED_INTEGER]] */
+ errn = encodeNBitUnsignedInteger(stream, 1, 0);
+ if(errn == 0) {
+ errn = encodeUnsignedInteger16(stream, iso2VehicleCheckInResType->VehicleSpace);
+ /* valid EE */
+ errn = encodeNBitUnsignedInteger(stream, 1, 0);
+ }
+ }
+ grammarID = 604;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 603:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgBody}VehicleSpace)] */
+ if ( 1 == 1 ) {
+ errn = encodeNBitUnsignedInteger(stream, 1, 0);
+ if(errn == 0) {
+ /* First(xsi:type)StartTag[CHARACTERS[UNSIGNED_INTEGER]] */
+ errn = encodeNBitUnsignedInteger(stream, 1, 0);
+ if(errn == 0) {
+ errn = encodeUnsignedInteger16(stream, iso2VehicleCheckInResType->VehicleSpace);
+ /* valid EE */
+ errn = encodeNBitUnsignedInteger(stream, 1, 0);
+ }
+ }
+ grammarID = 604;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 604:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgBody}TargetOffset), END_ELEMENT] */
+ if ( iso2VehicleCheckInResType->TargetOffset_isUsed == 1u ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ if(errn == 0) {
+ errn = encode_iso2TargetPositionType(stream, &iso2VehicleCheckInResType->TargetOffset );
+ }
+ grammarID = 3;
+ } else if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 3:
+ /* Element[END_ELEMENT] */
+ if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 1, 0);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } 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:2016:MsgDataTypes,ServiceListType', base type name='anyType', content type='ELEMENT', isAbstract='false', hasTypeId='false', final='0', block='0', particle='("urn:iso:15118:2:2016:MsgDataTypes":Service{1-8})', derivedBy='RESTRICTION'. */
+static int encode_iso2ServiceListType(bitstream_t* stream, struct iso2ServiceListType* iso2ServiceListType) {
+ int grammarID = 605;
+ int done = 0;
+
+ unsigned int iso2ServiceListType_Service_currArrayIndex = 0;
+
+ while(!done) {
+ switch(grammarID) {
+ case 605:
+ /* FirstStartTag[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}Service)] */
+ if (iso2ServiceListType_Service_currArrayIndex < iso2ServiceListType->Service.arrayLen ) {
+ errn = encodeNBitUnsignedInteger(stream, 1, 0);
+ if(errn == 0) {
+ errn = encode_iso2ServiceType(stream, &iso2ServiceListType->Service.array [iso2ServiceListType_Service_currArrayIndex++]);
+ }
+ grammarID = 606;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 606:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}Service), END_ELEMENT] */
+ if (iso2ServiceListType_Service_currArrayIndex < iso2ServiceListType->Service.arrayLen ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ if(errn == 0) {
+ errn = encode_iso2ServiceType(stream, &iso2ServiceListType->Service.array [iso2ServiceListType_Service_currArrayIndex++]);
+ }
+ grammarID = 607;
+ } else if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 607:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}Service), END_ELEMENT] */
+ if (iso2ServiceListType_Service_currArrayIndex < iso2ServiceListType->Service.arrayLen ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ if(errn == 0) {
+ errn = encode_iso2ServiceType(stream, &iso2ServiceListType->Service.array [iso2ServiceListType_Service_currArrayIndex++]);
+ }
+ grammarID = 608;
+ } else if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 608:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}Service), END_ELEMENT] */
+ if (iso2ServiceListType_Service_currArrayIndex < iso2ServiceListType->Service.arrayLen ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ if(errn == 0) {
+ errn = encode_iso2ServiceType(stream, &iso2ServiceListType->Service.array [iso2ServiceListType_Service_currArrayIndex++]);
+ }
+ grammarID = 609;
+ } else if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 609:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}Service), END_ELEMENT] */
+ if (iso2ServiceListType_Service_currArrayIndex < iso2ServiceListType->Service.arrayLen ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ if(errn == 0) {
+ errn = encode_iso2ServiceType(stream, &iso2ServiceListType->Service.array [iso2ServiceListType_Service_currArrayIndex++]);
+ }
+ grammarID = 610;
+ } else if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 610:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}Service), END_ELEMENT] */
+ if (iso2ServiceListType_Service_currArrayIndex < iso2ServiceListType->Service.arrayLen ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ if(errn == 0) {
+ errn = encode_iso2ServiceType(stream, &iso2ServiceListType->Service.array [iso2ServiceListType_Service_currArrayIndex++]);
+ }
+ grammarID = 611;
+ } else if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 611:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}Service), END_ELEMENT] */
+ if (iso2ServiceListType_Service_currArrayIndex < iso2ServiceListType->Service.arrayLen ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ if(errn == 0) {
+ errn = encode_iso2ServiceType(stream, &iso2ServiceListType->Service.array [iso2ServiceListType_Service_currArrayIndex++]);
+ }
+ grammarID = 612;
+ } else if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 612:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}Service), END_ELEMENT] */
+ if (iso2ServiceListType_Service_currArrayIndex < iso2ServiceListType->Service.arrayLen ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ if(errn == 0) {
+ errn = encode_iso2ServiceType(stream, &iso2ServiceListType->Service.array [iso2ServiceListType_Service_currArrayIndex++]);
+ }
+ grammarID = 3;
+ } else if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 3:
+ /* Element[END_ELEMENT] */
+ if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 1, 0);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } 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:2016:MsgBody,CertificateUpdateResType', base type name='V2GResponseType', content type='ELEMENT', isAbstract='false', hasTypeId='false', final='0', block='0', particle='(("urn:iso:15118:2:2016:MsgBody":ResponseCode,"urn:iso:15118:2:2016:MsgBody":EVSEStatus{0-1}),("urn:iso:15118:2:2016:MsgBody":SAProvisioningCertificateChain,"urn:iso:15118:2:2016:MsgBody":ContractSignatureCertChain,"urn:iso:15118:2:2016:MsgBody":ContractSignatureEncryptedPrivateKey,"urn:iso:15118:2:2016:MsgBody":DHpublickey,"urn:iso:15118:2:2016:MsgBody":eMAID,"urn:iso:15118:2:2016:MsgBody":RetryCounter{0-1}))', derivedBy='EXTENSION'. */
+static int encode_iso2CertificateUpdateResType(bitstream_t* stream, struct iso2CertificateUpdateResType* iso2CertificateUpdateResType) {
+ int grammarID = 613;
+ int done = 0;
+
+
+ while(!done) {
+ switch(grammarID) {
+ case 613:
+ /* FirstStartTag[START_ELEMENT({urn:iso:15118:2:2016:MsgBody}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, 5, iso2CertificateUpdateResType->ResponseCode);
+ /* valid EE */
+ errn = encodeNBitUnsignedInteger(stream, 1, 0);
+ }
+ }
+ grammarID = 614;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 614:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgBody}EVSEStatus), START_ELEMENT({urn:iso:15118:2:2016:MsgBody}SAProvisioningCertificateChain)] */
+ if ( iso2CertificateUpdateResType->EVSEStatus_isUsed == 1u ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ if(errn == 0) {
+ errn = encode_iso2EVSEStatusType(stream, &iso2CertificateUpdateResType->EVSEStatus );
+ }
+ grammarID = 615;
+ } else if ( 1 == 1 ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ errn = encode_iso2CertificateChainType(stream, &iso2CertificateUpdateResType->SAProvisioningCertificateChain );
+ }
+ grammarID = 616;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 615:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgBody}SAProvisioningCertificateChain)] */
+ if ( 1 == 1 ) {
+ errn = encodeNBitUnsignedInteger(stream, 1, 0);
+ if(errn == 0) {
+ errn = encode_iso2CertificateChainType(stream, &iso2CertificateUpdateResType->SAProvisioningCertificateChain );
+ }
+ grammarID = 616;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 616:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgBody}ContractSignatureCertChain)] */
+ if ( 1 == 1 ) {
+ errn = encodeNBitUnsignedInteger(stream, 1, 0);
+ if(errn == 0) {
+ errn = encode_iso2CertificateChainType(stream, &iso2CertificateUpdateResType->ContractSignatureCertChain );
+ }
+ grammarID = 617;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 617:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgBody}ContractSignatureEncryptedPrivateKey)] */
+ if ( 1 == 1 ) {
+ errn = encodeNBitUnsignedInteger(stream, 1, 0);
+ if(errn == 0) {
+ errn = encode_iso2ContractSignatureEncryptedPrivateKeyType(stream, &iso2CertificateUpdateResType->ContractSignatureEncryptedPrivateKey );
+ }
+ grammarID = 618;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 618:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgBody}DHpublickey)] */
+ if ( 1 == 1 ) {
+ errn = encodeNBitUnsignedInteger(stream, 1, 0);
+ if(errn == 0) {
+ errn = encode_iso2DiffieHellmanPublickeyType(stream, &iso2CertificateUpdateResType->DHpublickey );
+ }
+ grammarID = 619;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 619:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgBody}eMAID)] */
+ if ( 1 == 1 ) {
+ errn = encodeNBitUnsignedInteger(stream, 1, 0);
+ if(errn == 0) {
+ errn = encode_iso2EMAIDType(stream, &iso2CertificateUpdateResType->eMAID );
+ }
+ grammarID = 620;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 620:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgBody}RetryCounter), END_ELEMENT] */
+ if ( iso2CertificateUpdateResType->RetryCounter_isUsed == 1u ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ if(errn == 0) {
+ /* First(xsi:type)StartTag[CHARACTERS[INTEGER]] */
+ errn = encodeNBitUnsignedInteger(stream, 1, 0);
+ if(errn == 0) {
+ errn = encodeInteger16(stream, iso2CertificateUpdateResType->RetryCounter);
+ /* valid EE */
+ errn = encodeNBitUnsignedInteger(stream, 1, 0);
+ }
+ }
+ grammarID = 3;
+ } else if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 3:
+ /* Element[END_ELEMENT] */
+ if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 1, 0);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } 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:2016:MsgBody,FinePositioningSetupResType', base type name='V2GResponseType', content type='ELEMENT', isAbstract='false', hasTypeId='false', final='0', block='0', particle='(("urn:iso:15118:2:2016:MsgBody":ResponseCode,"urn:iso:15118:2:2016:MsgBody":EVSEStatus{0-1}),("urn:iso:15118:2:2016:MsgDataTypes":EVSEFinePositioningSetupParameters{0-1}))', derivedBy='EXTENSION'. */
+static int encode_iso2FinePositioningSetupResType(bitstream_t* stream, struct iso2FinePositioningSetupResType* iso2FinePositioningSetupResType) {
+ int grammarID = 621;
+ int done = 0;
+
+
+ while(!done) {
+ switch(grammarID) {
+ case 621:
+ /* FirstStartTag[START_ELEMENT({urn:iso:15118:2:2016:MsgBody}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, 5, iso2FinePositioningSetupResType->ResponseCode);
+ /* valid EE */
+ errn = encodeNBitUnsignedInteger(stream, 1, 0);
+ }
+ }
+ grammarID = 622;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 622:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgBody}EVSEStatus), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}EVSEFinePositioningSetupParameters), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}LFA_EVSEFinePositioningSetupParameters), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MV_EVSEFinePositioningSetupParameters), END_ELEMENT] */
+ if ( iso2FinePositioningSetupResType->EVSEStatus_isUsed == 1u ) {
+ errn = encodeNBitUnsignedInteger(stream, 3, 0);
+ if(errn == 0) {
+ errn = encode_iso2EVSEStatusType(stream, &iso2FinePositioningSetupResType->EVSEStatus );
+ }
+ grammarID = 623;
+ } else if ( iso2FinePositioningSetupResType->EVSEFinePositioningSetupParameters_isUsed == 1u ) {
+ errn = encodeNBitUnsignedInteger(stream, 3, 1);
+ if(errn == 0) {
+ errn = encode_iso2EVSEFinePositioningSetupParametersType(stream, &iso2FinePositioningSetupResType->EVSEFinePositioningSetupParameters );
+ }
+ grammarID = 3;
+ } else if ( iso2FinePositioningSetupResType->LFA_EVSEFinePositioningSetupParameters_isUsed == 1u ) {
+ errn = encodeNBitUnsignedInteger(stream, 3, 2);
+ if(errn == 0) {
+ errn = encode_iso2LFA_EVSEFinePositioningSetupParametersType(stream, &iso2FinePositioningSetupResType->LFA_EVSEFinePositioningSetupParameters );
+ }
+ grammarID = 3;
+ } else if ( iso2FinePositioningSetupResType->MV_EVSEFinePositioningSetupParameters_isUsed == 1u ) {
+ errn = encodeNBitUnsignedInteger(stream, 3, 3);
+ if(errn == 0) {
+ errn = encode_iso2MV_EVSEFinePositioningSetupParametersType(stream, &iso2FinePositioningSetupResType->MV_EVSEFinePositioningSetupParameters );
+ }
+ grammarID = 3;
+ } else if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 3, 4);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 623:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}EVSEFinePositioningSetupParameters), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}LFA_EVSEFinePositioningSetupParameters), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MV_EVSEFinePositioningSetupParameters), END_ELEMENT] */
+ if ( iso2FinePositioningSetupResType->EVSEFinePositioningSetupParameters_isUsed == 1u ) {
+ errn = encodeNBitUnsignedInteger(stream, 3, 0);
+ if(errn == 0) {
+ errn = encode_iso2EVSEFinePositioningSetupParametersType(stream, &iso2FinePositioningSetupResType->EVSEFinePositioningSetupParameters );
+ }
+ grammarID = 3;
+ } else if ( iso2FinePositioningSetupResType->LFA_EVSEFinePositioningSetupParameters_isUsed == 1u ) {
+ errn = encodeNBitUnsignedInteger(stream, 3, 1);
+ if(errn == 0) {
+ errn = encode_iso2LFA_EVSEFinePositioningSetupParametersType(stream, &iso2FinePositioningSetupResType->LFA_EVSEFinePositioningSetupParameters );
+ }
+ grammarID = 3;
+ } else if ( iso2FinePositioningSetupResType->MV_EVSEFinePositioningSetupParameters_isUsed == 1u ) {
+ errn = encodeNBitUnsignedInteger(stream, 3, 2);
+ if(errn == 0) {
+ errn = encode_iso2MV_EVSEFinePositioningSetupParametersType(stream, &iso2FinePositioningSetupResType->MV_EVSEFinePositioningSetupParameters );
+ }
+ grammarID = 3;
+ } else if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 3, 3);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 3:
+ /* Element[END_ELEMENT] */
+ if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 1, 0);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } 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:2016:MsgDataTypes,AC_EVBidirectionalParameterType', base type name='AC_EVChargeParameterType', content type='ELEMENT', isAbstract='false', hasTypeId='false', final='0', block='0', particle='((("urn:iso:15118:2:2016:MsgDataTypes":DepartureTime),("urn:iso:15118:2:2016:MsgDataTypes":EVMaximumChargePower,"urn:iso:15118:2:2016:MsgDataTypes":EVMaximumChargeCurrent,"urn:iso:15118:2:2016:MsgDataTypes":EVMinimumChargeCurrent,"urn:iso:15118:2:2016:MsgDataTypes":EVTargetEnergyRequest{0-1},"urn:iso:15118:2:2016:MsgDataTypes":EVMaximumEnergyRequest{0-1},"urn:iso:15118:2:2016:MsgDataTypes":EVMinimumEnergyRequest{0-1},"urn:iso:15118:2:2016:MsgDataTypes":EVMaximumVoltage)),("urn:iso:15118:2:2016:MsgDataTypes":EVMaximumDischargePower,"urn:iso:15118:2:2016:MsgDataTypes":EVMaximumDischargeCurrent,"urn:iso:15118:2:2016:MsgDataTypes":EVMinimumDischargeCurrent))', derivedBy='EXTENSION'. */
+static int encode_iso2AC_EVBidirectionalParameterType(bitstream_t* stream, struct iso2AC_EVBidirectionalParameterType* iso2AC_EVBidirectionalParameterType) {
+ int grammarID = 624;
+ int done = 0;
+
+
+ while(!done) {
+ switch(grammarID) {
+ case 624:
+ /* FirstStartTag[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}DepartureTime)] */
+ if ( 1 == 1 ) {
+ errn = encodeNBitUnsignedInteger(stream, 1, 0);
+ if(errn == 0) {
+ /* First(xsi:type)StartTag[CHARACTERS[UNSIGNED_INTEGER]] */
+ errn = encodeNBitUnsignedInteger(stream, 1, 0);
+ if(errn == 0) {
+ errn = encodeUnsignedInteger32(stream, iso2AC_EVBidirectionalParameterType->DepartureTime);
+ /* valid EE */
+ errn = encodeNBitUnsignedInteger(stream, 1, 0);
+ }
+ }
+ grammarID = 625;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 625:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}EVMaximumChargePower)] */
+ if ( 1 == 1 ) {
+ errn = encodeNBitUnsignedInteger(stream, 1, 0);
+ if(errn == 0) {
+ errn = encode_iso2PhysicalValueType(stream, &iso2AC_EVBidirectionalParameterType->EVMaximumChargePower );
+ }
+ grammarID = 626;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 626:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}EVMaximumChargeCurrent)] */
+ if ( 1 == 1 ) {
+ errn = encodeNBitUnsignedInteger(stream, 1, 0);
+ if(errn == 0) {
+ errn = encode_iso2PhysicalValueType(stream, &iso2AC_EVBidirectionalParameterType->EVMaximumChargeCurrent );
+ }
+ grammarID = 627;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 627:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}EVMinimumChargeCurrent)] */
+ if ( 1 == 1 ) {
+ errn = encodeNBitUnsignedInteger(stream, 1, 0);
+ if(errn == 0) {
+ errn = encode_iso2PhysicalValueType(stream, &iso2AC_EVBidirectionalParameterType->EVMinimumChargeCurrent );
+ }
+ grammarID = 628;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 628:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}EVTargetEnergyRequest), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}EVMaximumEnergyRequest), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}EVMinimumEnergyRequest), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}EVMaximumVoltage)] */
+ if ( iso2AC_EVBidirectionalParameterType->EVTargetEnergyRequest_isUsed == 1u ) {
+ errn = encodeNBitUnsignedInteger(stream, 3, 0);
+ if(errn == 0) {
+ errn = encode_iso2PhysicalValueType(stream, &iso2AC_EVBidirectionalParameterType->EVTargetEnergyRequest );
+ }
+ grammarID = 629;
+ } else if ( iso2AC_EVBidirectionalParameterType->EVMaximumEnergyRequest_isUsed == 1u ) {
+ errn = encodeNBitUnsignedInteger(stream, 3, 1);
+ if(errn == 0) {
+ errn = encode_iso2PhysicalValueType(stream, &iso2AC_EVBidirectionalParameterType->EVMaximumEnergyRequest );
+ }
+ grammarID = 630;
+ } else if ( iso2AC_EVBidirectionalParameterType->EVMinimumEnergyRequest_isUsed == 1u ) {
+ errn = encodeNBitUnsignedInteger(stream, 3, 2);
+ if(errn == 0) {
+ errn = encode_iso2PhysicalValueType(stream, &iso2AC_EVBidirectionalParameterType->EVMinimumEnergyRequest );
+ }
+ grammarID = 631;
+ } else if ( 1 == 1 ) {
+ errn = encodeNBitUnsignedInteger(stream, 3, 3);
+ if(errn == 0) {
+ errn = encode_iso2PhysicalValueType(stream, &iso2AC_EVBidirectionalParameterType->EVMaximumVoltage );
+ }
+ grammarID = 632;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 629:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}EVMaximumEnergyRequest), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}EVMinimumEnergyRequest), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}EVMaximumVoltage)] */
+ if ( iso2AC_EVBidirectionalParameterType->EVMaximumEnergyRequest_isUsed == 1u ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ if(errn == 0) {
+ errn = encode_iso2PhysicalValueType(stream, &iso2AC_EVBidirectionalParameterType->EVMaximumEnergyRequest );
+ }
+ grammarID = 630;
+ } else if ( iso2AC_EVBidirectionalParameterType->EVMinimumEnergyRequest_isUsed == 1u ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ errn = encode_iso2PhysicalValueType(stream, &iso2AC_EVBidirectionalParameterType->EVMinimumEnergyRequest );
+ }
+ grammarID = 631;
+ } else if ( 1 == 1 ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 2);
+ if(errn == 0) {
+ errn = encode_iso2PhysicalValueType(stream, &iso2AC_EVBidirectionalParameterType->EVMaximumVoltage );
+ }
+ grammarID = 632;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 630:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}EVMinimumEnergyRequest), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}EVMaximumVoltage)] */
+ if ( iso2AC_EVBidirectionalParameterType->EVMinimumEnergyRequest_isUsed == 1u ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ if(errn == 0) {
+ errn = encode_iso2PhysicalValueType(stream, &iso2AC_EVBidirectionalParameterType->EVMinimumEnergyRequest );
+ }
+ grammarID = 631;
+ } else if ( 1 == 1 ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ errn = encode_iso2PhysicalValueType(stream, &iso2AC_EVBidirectionalParameterType->EVMaximumVoltage );
+ }
+ grammarID = 632;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 631:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}EVMaximumVoltage)] */
+ if ( 1 == 1 ) {
+ errn = encodeNBitUnsignedInteger(stream, 1, 0);
+ if(errn == 0) {
+ errn = encode_iso2PhysicalValueType(stream, &iso2AC_EVBidirectionalParameterType->EVMaximumVoltage );
+ }
+ grammarID = 632;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 632:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}EVMaximumDischargePower)] */
+ if ( 1 == 1 ) {
+ errn = encodeNBitUnsignedInteger(stream, 1, 0);
+ if(errn == 0) {
+ errn = encode_iso2PhysicalValueType(stream, &iso2AC_EVBidirectionalParameterType->EVMaximumDischargePower );
+ }
+ grammarID = 633;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 633:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}EVMaximumDischargeCurrent)] */
+ if ( 1 == 1 ) {
+ errn = encodeNBitUnsignedInteger(stream, 1, 0);
+ if(errn == 0) {
+ errn = encode_iso2PhysicalValueType(stream, &iso2AC_EVBidirectionalParameterType->EVMaximumDischargeCurrent );
+ }
+ grammarID = 634;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 634:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}EVMinimumDischargeCurrent)] */
+ if ( 1 == 1 ) {
+ errn = encodeNBitUnsignedInteger(stream, 1, 0);
+ if(errn == 0) {
+ errn = encode_iso2PhysicalValueType(stream, &iso2AC_EVBidirectionalParameterType->EVMinimumDischargeCurrent );
+ }
+ grammarID = 3;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 3:
+ /* Element[END_ELEMENT] */
+ if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 1, 0);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } 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:2016:MsgBody,DC_BidirectionalControlReqType', base type name='ChargeLoopReqType', content type='ELEMENT', isAbstract='false', hasTypeId='false', final='0', block='0', particle='(("urn:iso:15118:2:2016:MsgBody":EVTargetEnergyRequest,"urn:iso:15118:2:2016:MsgBody":EVMaximumEnergyRequest{0-1},"urn:iso:15118:2:2016:MsgBody":EVMinimumEnergyRequest{0-1},"urn:iso:15118:2:2016:MsgBody":DisplayParameters{0-1}),("urn:iso:15118:2:2016:MsgBody":EVTargetCurrent,"urn:iso:15118:2:2016:MsgBody":EVTargetVoltage,"urn:iso:15118:2:2016:MsgBody":EVMaximumVoltage,"urn:iso:15118:2:2016:MsgBody":EVMinimumVoltage,"urn:iso:15118:2:2016:MsgBody":EVMaximumChargeCurrent,"urn:iso:15118:2:2016:MsgBody":EVMaximumDischargeCurrent{0-1},"urn:iso:15118:2:2016:MsgBody":EVMaximumChargePower{0-1},"urn:iso:15118:2:2016:MsgBody":EVMaximumDischargePower{0-1}))', derivedBy='EXTENSION'. */
+static int encode_iso2DC_BidirectionalControlReqType(bitstream_t* stream, struct iso2DC_BidirectionalControlReqType* iso2DC_BidirectionalControlReqType) {
+ int grammarID = 635;
+ int done = 0;
+
+
+ while(!done) {
+ switch(grammarID) {
+ case 635:
+ /* FirstStartTag[START_ELEMENT({urn:iso:15118:2:2016:MsgBody}EVTargetEnergyRequest)] */
+ if ( 1 == 1 ) {
+ errn = encodeNBitUnsignedInteger(stream, 1, 0);
+ if(errn == 0) {
+ errn = encode_iso2PhysicalValueType(stream, &iso2DC_BidirectionalControlReqType->EVTargetEnergyRequest );
+ }
+ grammarID = 636;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 636:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgBody}EVMaximumEnergyRequest), START_ELEMENT({urn:iso:15118:2:2016:MsgBody}EVMinimumEnergyRequest), START_ELEMENT({urn:iso:15118:2:2016:MsgBody}DisplayParameters), START_ELEMENT({urn:iso:15118:2:2016:MsgBody}EVTargetCurrent)] */
+ if ( iso2DC_BidirectionalControlReqType->EVMaximumEnergyRequest_isUsed == 1u ) {
+ errn = encodeNBitUnsignedInteger(stream, 3, 0);
+ if(errn == 0) {
+ errn = encode_iso2PhysicalValueType(stream, &iso2DC_BidirectionalControlReqType->EVMaximumEnergyRequest );
+ }
+ grammarID = 637;
+ } else if ( iso2DC_BidirectionalControlReqType->EVMinimumEnergyRequest_isUsed == 1u ) {
+ errn = encodeNBitUnsignedInteger(stream, 3, 1);
+ if(errn == 0) {
+ errn = encode_iso2PhysicalValueType(stream, &iso2DC_BidirectionalControlReqType->EVMinimumEnergyRequest );
+ }
+ grammarID = 638;
+ } else if ( iso2DC_BidirectionalControlReqType->DisplayParameters_isUsed == 1u ) {
+ errn = encodeNBitUnsignedInteger(stream, 3, 2);
+ if(errn == 0) {
+ errn = encode_iso2DisplayParametersType(stream, &iso2DC_BidirectionalControlReqType->DisplayParameters );
+ }
+ grammarID = 639;
+ } else if ( 1 == 1 ) {
+ errn = encodeNBitUnsignedInteger(stream, 3, 3);
+ if(errn == 0) {
+ errn = encode_iso2PhysicalValueType(stream, &iso2DC_BidirectionalControlReqType->EVTargetCurrent );
+ }
+ grammarID = 640;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 637:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgBody}EVMinimumEnergyRequest), START_ELEMENT({urn:iso:15118:2:2016:MsgBody}DisplayParameters), START_ELEMENT({urn:iso:15118:2:2016:MsgBody}EVTargetCurrent)] */
+ if ( iso2DC_BidirectionalControlReqType->EVMinimumEnergyRequest_isUsed == 1u ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ if(errn == 0) {
+ errn = encode_iso2PhysicalValueType(stream, &iso2DC_BidirectionalControlReqType->EVMinimumEnergyRequest );
+ }
+ grammarID = 638;
+ } else if ( iso2DC_BidirectionalControlReqType->DisplayParameters_isUsed == 1u ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ errn = encode_iso2DisplayParametersType(stream, &iso2DC_BidirectionalControlReqType->DisplayParameters );
+ }
+ grammarID = 639;
+ } else if ( 1 == 1 ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 2);
+ if(errn == 0) {
+ errn = encode_iso2PhysicalValueType(stream, &iso2DC_BidirectionalControlReqType->EVTargetCurrent );
+ }
+ grammarID = 640;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 638:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgBody}DisplayParameters), START_ELEMENT({urn:iso:15118:2:2016:MsgBody}EVTargetCurrent)] */
+ if ( iso2DC_BidirectionalControlReqType->DisplayParameters_isUsed == 1u ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ if(errn == 0) {
+ errn = encode_iso2DisplayParametersType(stream, &iso2DC_BidirectionalControlReqType->DisplayParameters );
+ }
+ grammarID = 639;
+ } else if ( 1 == 1 ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ errn = encode_iso2PhysicalValueType(stream, &iso2DC_BidirectionalControlReqType->EVTargetCurrent );
+ }
+ grammarID = 640;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 639:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgBody}EVTargetCurrent)] */
+ if ( 1 == 1 ) {
+ errn = encodeNBitUnsignedInteger(stream, 1, 0);
+ if(errn == 0) {
+ errn = encode_iso2PhysicalValueType(stream, &iso2DC_BidirectionalControlReqType->EVTargetCurrent );
+ }
+ grammarID = 640;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 640:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgBody}EVTargetVoltage)] */
+ if ( 1 == 1 ) {
+ errn = encodeNBitUnsignedInteger(stream, 1, 0);
+ if(errn == 0) {
+ errn = encode_iso2PhysicalValueType(stream, &iso2DC_BidirectionalControlReqType->EVTargetVoltage );
+ }
+ grammarID = 641;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 641:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgBody}EVMaximumVoltage)] */
+ if ( 1 == 1 ) {
+ errn = encodeNBitUnsignedInteger(stream, 1, 0);
+ if(errn == 0) {
+ errn = encode_iso2PhysicalValueType(stream, &iso2DC_BidirectionalControlReqType->EVMaximumVoltage );
+ }
+ grammarID = 642;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 642:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgBody}EVMinimumVoltage)] */
+ if ( 1 == 1 ) {
+ errn = encodeNBitUnsignedInteger(stream, 1, 0);
+ if(errn == 0) {
+ errn = encode_iso2PhysicalValueType(stream, &iso2DC_BidirectionalControlReqType->EVMinimumVoltage );
+ }
+ grammarID = 643;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 643:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgBody}EVMaximumChargeCurrent)] */
+ if ( 1 == 1 ) {
+ errn = encodeNBitUnsignedInteger(stream, 1, 0);
+ if(errn == 0) {
+ errn = encode_iso2PhysicalValueType(stream, &iso2DC_BidirectionalControlReqType->EVMaximumChargeCurrent );
+ }
+ grammarID = 644;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 644:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgBody}EVMaximumDischargeCurrent), START_ELEMENT({urn:iso:15118:2:2016:MsgBody}EVMaximumChargePower), START_ELEMENT({urn:iso:15118:2:2016:MsgBody}EVMaximumDischargePower), END_ELEMENT] */
+ if ( iso2DC_BidirectionalControlReqType->EVMaximumDischargeCurrent_isUsed == 1u ) {
+ errn = encodeNBitUnsignedInteger(stream, 3, 0);
+ if(errn == 0) {
+ errn = encode_iso2PhysicalValueType(stream, &iso2DC_BidirectionalControlReqType->EVMaximumDischargeCurrent );
+ }
+ grammarID = 645;
+ } else if ( iso2DC_BidirectionalControlReqType->EVMaximumChargePower_isUsed == 1u ) {
+ errn = encodeNBitUnsignedInteger(stream, 3, 1);
+ if(errn == 0) {
+ errn = encode_iso2PhysicalValueType(stream, &iso2DC_BidirectionalControlReqType->EVMaximumChargePower );
+ }
+ grammarID = 646;
+ } else if ( iso2DC_BidirectionalControlReqType->EVMaximumDischargePower_isUsed == 1u ) {
+ errn = encodeNBitUnsignedInteger(stream, 3, 2);
+ if(errn == 0) {
+ errn = encode_iso2PhysicalValueType(stream, &iso2DC_BidirectionalControlReqType->EVMaximumDischargePower );
+ }
+ grammarID = 3;
+ } else if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 3, 3);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 645:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgBody}EVMaximumChargePower), START_ELEMENT({urn:iso:15118:2:2016:MsgBody}EVMaximumDischargePower), END_ELEMENT] */
+ if ( iso2DC_BidirectionalControlReqType->EVMaximumChargePower_isUsed == 1u ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ if(errn == 0) {
+ errn = encode_iso2PhysicalValueType(stream, &iso2DC_BidirectionalControlReqType->EVMaximumChargePower );
+ }
+ grammarID = 646;
+ } else if ( iso2DC_BidirectionalControlReqType->EVMaximumDischargePower_isUsed == 1u ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ errn = encode_iso2PhysicalValueType(stream, &iso2DC_BidirectionalControlReqType->EVMaximumDischargePower );
+ }
+ grammarID = 3;
+ } else if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 2);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 646:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgBody}EVMaximumDischargePower), END_ELEMENT] */
+ if ( iso2DC_BidirectionalControlReqType->EVMaximumDischargePower_isUsed == 1u ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ if(errn == 0) {
+ errn = encode_iso2PhysicalValueType(stream, &iso2DC_BidirectionalControlReqType->EVMaximumDischargePower );
+ }
+ grammarID = 3;
+ } else if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 3:
+ /* Element[END_ELEMENT] */
+ if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 1, 0);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } 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:2016:MsgBody,CertificateUpdateReqType', base type name='BodyBaseType', content type='ELEMENT', isAbstract='false', hasTypeId='false', final='0', block='0', particle='("urn:iso:15118:2:2016:MsgBody":ContractSignatureCertChain,"urn:iso:15118:2:2016:MsgBody":eMAID,"urn:iso:15118:2:2016:MsgBody":ListOfRootCertificateIDs)', derivedBy='EXTENSION'. */
+static int encode_iso2CertificateUpdateReqType(bitstream_t* stream, struct iso2CertificateUpdateReqType* iso2CertificateUpdateReqType) {
+ int grammarID = 647;
+ int done = 0;
+
+
+ while(!done) {
+ switch(grammarID) {
+ case 647:
+ /* FirstStartTag[ATTRIBUTE[STRING]({urn:iso:15118:2:2016:MsgBody}Id)] */
+ if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 1, 0);
+ if(errn == 0) {
+ /* encode string as string table miss (+2 len)*/
+ errn = encodeUnsignedInteger16(stream, (uint16_t)(iso2CertificateUpdateReqType->Id.charactersLen + 2));
+ if (errn == 0) {
+ errn = encodeCharacters(stream, iso2CertificateUpdateReqType->Id.characters, iso2CertificateUpdateReqType->Id.charactersLen);
+ }
+ }
+ grammarID = 648;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 648:
+ /* StartTag[START_ELEMENT({urn:iso:15118:2:2016:MsgBody}ContractSignatureCertChain)] */
+ if ( 1 == 1 ) {
+ errn = encodeNBitUnsignedInteger(stream, 1, 0);
+ if(errn == 0) {
+ errn = encode_iso2CertificateChainType(stream, &iso2CertificateUpdateReqType->ContractSignatureCertChain );
+ }
+ grammarID = 649;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 649:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgBody}eMAID)] */
+ if ( 1 == 1 ) {
+ errn = encodeNBitUnsignedInteger(stream, 1, 0);
+ if(errn == 0) {
+ /* First(xsi:type)StartTag[CHARACTERS[STRING]] */
+ errn = encodeNBitUnsignedInteger(stream, 1, 0);
+ if(errn == 0) {
+ /* encode string as string table miss (+2 len)*/
+ errn = encodeUnsignedInteger16(stream, (uint16_t)(iso2CertificateUpdateReqType->eMAID.charactersLen + 2));
+ if (errn == 0) {
+ errn = encodeCharacters(stream, iso2CertificateUpdateReqType->eMAID.characters, iso2CertificateUpdateReqType->eMAID.charactersLen);
+ }
+ /* valid EE */
+ errn = encodeNBitUnsignedInteger(stream, 1, 0);
+ }
+ }
+ grammarID = 650;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 650:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgBody}ListOfRootCertificateIDs)] */
+ if ( 1 == 1 ) {
+ errn = encodeNBitUnsignedInteger(stream, 1, 0);
+ if(errn == 0) {
+ errn = encode_iso2ListOfRootCertificateIDsType(stream, &iso2CertificateUpdateReqType->ListOfRootCertificateIDs );
+ }
+ grammarID = 3;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 3:
+ /* Element[END_ELEMENT] */
+ if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 1, 0);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } 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:2016:MsgDataTypes,ConsumptionCostType', base type name='anyType', content type='ELEMENT', isAbstract='false', hasTypeId='false', final='0', block='0', particle='("urn:iso:15118:2:2016:MsgDataTypes":startValue,"urn:iso:15118:2:2016:MsgDataTypes":Cost{1-3})', derivedBy='RESTRICTION'. */
+static int encode_iso2ConsumptionCostType(bitstream_t* stream, struct iso2ConsumptionCostType* iso2ConsumptionCostType) {
+ int grammarID = 651;
+ int done = 0;
+
+ unsigned int iso2ConsumptionCostType_Cost_currArrayIndex = 0;
+
+ while(!done) {
+ switch(grammarID) {
+ case 651:
+ /* FirstStartTag[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}startValue)] */
+ if ( 1 == 1 ) {
+ errn = encodeNBitUnsignedInteger(stream, 1, 0);
+ if(errn == 0) {
+ errn = encode_iso2PhysicalValueType(stream, &iso2ConsumptionCostType->startValue );
+ }
+ grammarID = 652;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 652:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}Cost)] */
+ if (iso2ConsumptionCostType_Cost_currArrayIndex < iso2ConsumptionCostType->Cost.arrayLen ) {
+ errn = encodeNBitUnsignedInteger(stream, 1, 0);
+ if(errn == 0) {
+ errn = encode_iso2CostType(stream, &iso2ConsumptionCostType->Cost.array [iso2ConsumptionCostType_Cost_currArrayIndex++]);
+ }
+ grammarID = 653;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 653:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}Cost), END_ELEMENT] */
+ if (iso2ConsumptionCostType_Cost_currArrayIndex < iso2ConsumptionCostType->Cost.arrayLen ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ if(errn == 0) {
+ errn = encode_iso2CostType(stream, &iso2ConsumptionCostType->Cost.array [iso2ConsumptionCostType_Cost_currArrayIndex++]);
+ }
+ grammarID = 654;
+ } else if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 654:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}Cost), END_ELEMENT] */
+ if (iso2ConsumptionCostType_Cost_currArrayIndex < iso2ConsumptionCostType->Cost.arrayLen ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ if(errn == 0) {
+ errn = encode_iso2CostType(stream, &iso2ConsumptionCostType->Cost.array [iso2ConsumptionCostType_Cost_currArrayIndex++]);
+ }
+ grammarID = 3;
+ } else if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 3:
+ /* Element[END_ELEMENT] */
+ if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 1, 0);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } 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:2016:MsgDataTypes,SAScheduleListType', base type name='anyType', content type='ELEMENT', isAbstract='false', hasTypeId='false', final='0', block='0', particle='("urn:iso:15118:2:2016:MsgDataTypes":SAScheduleTuple{1-3})', derivedBy='RESTRICTION'. */
+static int encode_iso2SAScheduleListType(bitstream_t* stream, struct iso2SAScheduleListType* iso2SAScheduleListType) {
+ int grammarID = 655;
+ int done = 0;
+
+ unsigned int iso2SAScheduleListType_SAScheduleTuple_currArrayIndex = 0;
+
+ while(!done) {
+ switch(grammarID) {
+ case 655:
+ /* FirstStartTag[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SAScheduleTuple)] */
+ if (iso2SAScheduleListType_SAScheduleTuple_currArrayIndex < iso2SAScheduleListType->SAScheduleTuple.arrayLen ) {
+ errn = encodeNBitUnsignedInteger(stream, 1, 0);
+ if(errn == 0) {
+ errn = encode_iso2SAScheduleTupleType(stream, &iso2SAScheduleListType->SAScheduleTuple.array [iso2SAScheduleListType_SAScheduleTuple_currArrayIndex++]);
+ }
+ grammarID = 656;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 656:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SAScheduleTuple), END_ELEMENT] */
+ if (iso2SAScheduleListType_SAScheduleTuple_currArrayIndex < iso2SAScheduleListType->SAScheduleTuple.arrayLen ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ if(errn == 0) {
+ errn = encode_iso2SAScheduleTupleType(stream, &iso2SAScheduleListType->SAScheduleTuple.array [iso2SAScheduleListType_SAScheduleTuple_currArrayIndex++]);
+ }
+ grammarID = 657;
+ } else if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 657:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SAScheduleTuple), END_ELEMENT] */
+ if (iso2SAScheduleListType_SAScheduleTuple_currArrayIndex < iso2SAScheduleListType->SAScheduleTuple.arrayLen ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ if(errn == 0) {
+ errn = encode_iso2SAScheduleTupleType(stream, &iso2SAScheduleListType->SAScheduleTuple.array [iso2SAScheduleListType_SAScheduleTuple_currArrayIndex++]);
+ }
+ grammarID = 3;
+ } else if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 3:
+ /* Element[END_ELEMENT] */
+ if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 1, 0);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } 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:2016:MsgDataTypes,MagneticVectorSetupType', base type name='anyType', content type='ELEMENT', isAbstract='false', hasTypeId='false', final='0', block='0', particle='("urn:iso:15118:2:2016:MsgDataTypes":GAID,"urn:iso:15118:2:2016:MsgDataTypes":FrequencyChannel)', derivedBy='RESTRICTION'. */
+static int encode_iso2MagneticVectorSetupType(bitstream_t* stream, struct iso2MagneticVectorSetupType* iso2MagneticVectorSetupType) {
+ int grammarID = 658;
+ int done = 0;
+
+
+ while(!done) {
+ switch(grammarID) {
+ case 658:
+ /* FirstStartTag[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}GAID)] */
+ if ( 1 == 1 ) {
+ errn = encodeNBitUnsignedInteger(stream, 1, 0);
+ if(errn == 0) {
+ /* FirstStartTag[CHARACTERS[STRING]] */
+ errn = encodeNBitUnsignedInteger(stream, 1, 0);
+ if(errn == 0) {
+ /* encode string as string table miss (+2 len)*/
+ errn = encodeUnsignedInteger16(stream, (uint16_t)(iso2MagneticVectorSetupType->GAID.charactersLen + 2));
+ if (errn == 0) {
+ errn = encodeCharacters(stream, iso2MagneticVectorSetupType->GAID.characters, iso2MagneticVectorSetupType->GAID.charactersLen);
+ }
+ /* valid EE */
+ errn = encodeNBitUnsignedInteger(stream, 1, 0);
+ }
+ }
+ grammarID = 659;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 659:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}FrequencyChannel)] */
+ if ( 1 == 1 ) {
+ errn = encodeNBitUnsignedInteger(stream, 1, 0);
+ if(errn == 0) {
+ /* First(xsi:type)StartTag[CHARACTERS[UNSIGNED_INTEGER]] */
+ errn = encodeNBitUnsignedInteger(stream, 1, 0);
+ if(errn == 0) {
+ errn = encodeUnsignedInteger32(stream, iso2MagneticVectorSetupType->FrequencyChannel);
+ /* valid EE */
+ errn = encodeNBitUnsignedInteger(stream, 1, 0);
+ }
+ }
+ grammarID = 3;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 3:
+ /* Element[END_ELEMENT] */
+ if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 1, 0);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } 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:2016:MsgDataTypes,LFA_EVSEFinePositioningSetupParametersType', base type name='EVSEFinePositioningSetupParametersType', content type='ELEMENT', isAbstract='false', hasTypeId='false', final='0', block='0', particle='("urn:iso:15118:2:2016:MsgDataTypes":NumberOfSensors,"urn:iso:15118:2:2016:MsgDataTypes":SensorList,"urn:iso:15118:2:2016:MsgDataTypes":SensorOrder,"urn:iso:15118:2:2016:MsgDataTypes":SignalPulseDuration,"urn:iso:15118:2:2016:MsgDataTypes":SignalSeparationTime,"urn:iso:15118:2:2016:MsgDataTypes":PackageSeparationTime,"urn:iso:15118:2:2016:MsgDataTypes":AlignmentOffset,"urn:iso:15118:2:2016:MsgDataTypes":SignalFrequency)', derivedBy='EXTENSION'. */
+static int encode_iso2LFA_EVSEFinePositioningSetupParametersType(bitstream_t* stream, struct iso2LFA_EVSEFinePositioningSetupParametersType* iso2LFA_EVSEFinePositioningSetupParametersType) {
+ int grammarID = 660;
+ int done = 0;
+
+
+ while(!done) {
+ switch(grammarID) {
+ case 660:
+ /* FirstStartTag[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}NumberOfSensors)] */
+ if ( 1 == 1 ) {
+ errn = encodeNBitUnsignedInteger(stream, 1, 0);
+ if(errn == 0) {
+ /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
+ errn = encodeNBitUnsignedInteger(stream, 1, 0);
+ if(errn == 0) {
+ errn = encodeNBitUnsignedInteger(stream, 8, (uint32_t)(iso2LFA_EVSEFinePositioningSetupParametersType->NumberOfSensors - 0));
+ /* valid EE */
+ errn = encodeNBitUnsignedInteger(stream, 1, 0);
+ }
+ }
+ grammarID = 661;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 661:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorList)] */
+ if ( 1 == 1 ) {
+ errn = encodeNBitUnsignedInteger(stream, 1, 0);
+ if(errn == 0) {
+ errn = encode_iso2SensorListType(stream, &iso2LFA_EVSEFinePositioningSetupParametersType->SensorList );
+ }
+ grammarID = 662;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 662:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorOrder)] */
+ if ( 1 == 1 ) {
+ errn = encodeNBitUnsignedInteger(stream, 1, 0);
+ if(errn == 0) {
+ errn = encode_iso2SensorOrderListType(stream, &iso2LFA_EVSEFinePositioningSetupParametersType->SensorOrder );
+ }
+ grammarID = 663;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 663:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SignalPulseDuration)] */
+ if ( 1 == 1 ) {
+ errn = encodeNBitUnsignedInteger(stream, 1, 0);
+ if(errn == 0) {
+ /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
+ errn = encodeNBitUnsignedInteger(stream, 1, 0);
+ if(errn == 0) {
+ errn = encodeNBitUnsignedInteger(stream, 8, (uint32_t)(iso2LFA_EVSEFinePositioningSetupParametersType->SignalPulseDuration - 0));
+ /* valid EE */
+ errn = encodeNBitUnsignedInteger(stream, 1, 0);
+ }
+ }
+ grammarID = 664;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 664:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SignalSeparationTime)] */
+ if ( 1 == 1 ) {
+ errn = encodeNBitUnsignedInteger(stream, 1, 0);
+ if(errn == 0) {
+ /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
+ errn = encodeNBitUnsignedInteger(stream, 1, 0);
+ if(errn == 0) {
+ errn = encodeNBitUnsignedInteger(stream, 8, (uint32_t)(iso2LFA_EVSEFinePositioningSetupParametersType->SignalSeparationTime - 0));
+ /* valid EE */
+ errn = encodeNBitUnsignedInteger(stream, 1, 0);
+ }
+ }
+ grammarID = 665;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 665:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}PackageSeparationTime)] */
+ if ( 1 == 1 ) {
+ errn = encodeNBitUnsignedInteger(stream, 1, 0);
+ if(errn == 0) {
+ /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
+ errn = encodeNBitUnsignedInteger(stream, 1, 0);
+ if(errn == 0) {
+ errn = encodeNBitUnsignedInteger(stream, 8, (uint32_t)(iso2LFA_EVSEFinePositioningSetupParametersType->PackageSeparationTime - 0));
+ /* valid EE */
+ errn = encodeNBitUnsignedInteger(stream, 1, 0);
+ }
+ }
+ grammarID = 666;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 666:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}AlignmentOffset)] */
+ if ( 1 == 1 ) {
+ errn = encodeNBitUnsignedInteger(stream, 1, 0);
+ if(errn == 0) {
+ /* First(xsi:type)StartTag[CHARACTERS[UNSIGNED_INTEGER]] */
+ errn = encodeNBitUnsignedInteger(stream, 1, 0);
+ if(errn == 0) {
+ errn = encodeUnsignedInteger16(stream, iso2LFA_EVSEFinePositioningSetupParametersType->AlignmentOffset);
+ /* valid EE */
+ errn = encodeNBitUnsignedInteger(stream, 1, 0);
+ }
+ }
+ grammarID = 667;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 667:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SignalFrequency)] */
+ if ( 1 == 1 ) {
+ errn = encodeNBitUnsignedInteger(stream, 1, 0);
+ if(errn == 0) {
+ /* First(xsi:type)StartTag[CHARACTERS[UNSIGNED_INTEGER]] */
+ errn = encodeNBitUnsignedInteger(stream, 1, 0);
+ if(errn == 0) {
+ errn = encodeUnsignedInteger16(stream, iso2LFA_EVSEFinePositioningSetupParametersType->SignalFrequency);
+ /* valid EE */
+ errn = encodeNBitUnsignedInteger(stream, 1, 0);
+ }
+ }
+ grammarID = 3;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 3:
+ /* Element[END_ELEMENT] */
+ if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 1, 0);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } 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:2016:MsgDataTypes,PaymentOptionListType', base type name='anyType', content type='ELEMENT', isAbstract='false', hasTypeId='false', final='0', block='0', particle='("urn:iso:15118:2:2016:MsgDataTypes":PaymentOption{1-2})', derivedBy='RESTRICTION'. */
+static int encode_iso2PaymentOptionListType(bitstream_t* stream, struct iso2PaymentOptionListType* iso2PaymentOptionListType) {
+ int grammarID = 668;
+ int done = 0;
+
+ unsigned int iso2PaymentOptionListType_PaymentOption_currArrayIndex = 0;
+
+ while(!done) {
+ switch(grammarID) {
+ case 668:
+ /* FirstStartTag[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}PaymentOption)] */
+ if (iso2PaymentOptionListType_PaymentOption_currArrayIndex < iso2PaymentOptionListType->PaymentOption.arrayLen ) {
+ errn = encodeNBitUnsignedInteger(stream, 1, 0);
+ if(errn == 0) {
+ /* FirstStartTag[CHARACTERS[ENUMERATION]] */
+ errn = encodeNBitUnsignedInteger(stream, 1, 0);
+ if(errn == 0) {
+ errn = encodeNBitUnsignedInteger(stream, 1, iso2PaymentOptionListType->PaymentOption.array[iso2PaymentOptionListType_PaymentOption_currArrayIndex++]);
+ /* valid EE */
+ errn = encodeNBitUnsignedInteger(stream, 1, 0);
+ }
+ }
+ grammarID = 669;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 669:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}PaymentOption), END_ELEMENT] */
+ if (iso2PaymentOptionListType_PaymentOption_currArrayIndex < iso2PaymentOptionListType->PaymentOption.arrayLen ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ if(errn == 0) {
+ /* FirstStartTag[CHARACTERS[ENUMERATION]] */
+ errn = encodeNBitUnsignedInteger(stream, 1, 0);
+ if(errn == 0) {
+ errn = encodeNBitUnsignedInteger(stream, 1, iso2PaymentOptionListType->PaymentOption.array[iso2PaymentOptionListType_PaymentOption_currArrayIndex++]);
+ /* valid EE */
+ errn = encodeNBitUnsignedInteger(stream, 1, 0);
+ }
+ }
+ grammarID = 3;
+ } else if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 3:
+ /* Element[END_ELEMENT] */
+ if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 1, 0);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } 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:2016:MsgDataTypes,LFA_EVSEFinePositioningParametersType', base type name='EVSEFinePositioningParametersType', content type='ELEMENT', isAbstract='false', hasTypeId='false', final='0', block='0', particle='("urn:iso:15118:2:2016:MsgDataTypes":NumberOfSignalPackages,"urn:iso:15118:2:2016:MsgDataTypes":SensorPackageList)', derivedBy='EXTENSION'. */
+static int encode_iso2LFA_EVSEFinePositioningParametersType(bitstream_t* stream, struct iso2LFA_EVSEFinePositioningParametersType* iso2LFA_EVSEFinePositioningParametersType) {
+ int grammarID = 670;
+ int done = 0;
+
+
+ while(!done) {
+ switch(grammarID) {
+ case 670:
+ /* FirstStartTag[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}NumberOfSignalPackages)] */
+ if ( 1 == 1 ) {
+ errn = encodeNBitUnsignedInteger(stream, 1, 0);
+ if(errn == 0) {
+ /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
+ errn = encodeNBitUnsignedInteger(stream, 1, 0);
+ if(errn == 0) {
+ errn = encodeNBitUnsignedInteger(stream, 8, (uint32_t)(iso2LFA_EVSEFinePositioningParametersType->NumberOfSignalPackages - 0));
+ /* valid EE */
+ errn = encodeNBitUnsignedInteger(stream, 1, 0);
+ }
+ }
+ grammarID = 671;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 671:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorPackageList)] */
+ if ( 1 == 1 ) {
+ errn = encodeNBitUnsignedInteger(stream, 1, 0);
+ if(errn == 0) {
+ errn = encode_iso2SensorPackageListType(stream, &iso2LFA_EVSEFinePositioningParametersType->SensorPackageList );
+ }
+ grammarID = 3;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 3:
+ /* Element[END_ELEMENT] */
+ if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 1, 0);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } 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:2016:MsgDataTypes,RelativeTimeIntervalType', base type name='anyType', content type='ELEMENT', isAbstract='false', hasTypeId='false', final='0', block='0', particle='("urn:iso:15118:2:2016:MsgDataTypes":start,"urn:iso:15118:2:2016:MsgDataTypes":duration{0-1})', derivedBy='RESTRICTION'. */
+static int encode_iso2RelativeTimeIntervalType(bitstream_t* stream, struct iso2RelativeTimeIntervalType* iso2RelativeTimeIntervalType) {
+ int grammarID = 672;
+ int done = 0;
+
+
+ while(!done) {
+ switch(grammarID) {
+ case 672:
+ /* FirstStartTag[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}start)] */
+ if ( 1 == 1 ) {
+ errn = encodeNBitUnsignedInteger(stream, 1, 0);
+ if(errn == 0) {
+ /* FirstStartTag[CHARACTERS[UNSIGNED_INTEGER]] */
+ errn = encodeNBitUnsignedInteger(stream, 1, 0);
+ if(errn == 0) {
+ errn = encodeUnsignedInteger32(stream, iso2RelativeTimeIntervalType->start);
+ /* valid EE */
+ errn = encodeNBitUnsignedInteger(stream, 1, 0);
+ }
+ }
+ grammarID = 673;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 673:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}duration), END_ELEMENT] */
+ if ( iso2RelativeTimeIntervalType->duration_isUsed == 1u ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ if(errn == 0) {
+ /* FirstStartTag[CHARACTERS[UNSIGNED_INTEGER]] */
+ errn = encodeNBitUnsignedInteger(stream, 1, 0);
+ if(errn == 0) {
+ errn = encodeUnsignedInteger32(stream, iso2RelativeTimeIntervalType->duration);
+ /* valid EE */
+ errn = encodeNBitUnsignedInteger(stream, 1, 0);
+ }
+ }
+ grammarID = 3;
+ } else if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 3:
+ /* Element[END_ELEMENT] */
+ if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 1, 0);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } 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:2016:MsgDataTypes,EVFinePositioningParametersType', base type name='anyType', content type='EMPTY', isAbstract='true', hasTypeId='false', final='0', block='0', derivedBy='RESTRICTION'. */
+static int encode_iso2EVFinePositioningParametersType(bitstream_t* stream, struct iso2EVFinePositioningParametersType* iso2EVFinePositioningParametersType) {
+ int grammarID = 674;
+ int done = 0;
+
+
+ while(!done) {
+ switch(grammarID) {
+ case 674:
+ /* FirstStartTag[END_ELEMENT] */
+ if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 1, 0);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } 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:2016:MsgBody,AlignmentCheckReqType', base type name='BodyBaseType', content type='ELEMENT', isAbstract='false', hasTypeId='false', final='0', block='0', particle='("urn:iso:15118:2:2016:MsgBody":EVProcessing,"urn:iso:15118:2:2016:MsgBody":AlignmentCheckParameters{0-1})', derivedBy='EXTENSION'. */
+static int encode_iso2AlignmentCheckReqType(bitstream_t* stream, struct iso2AlignmentCheckReqType* iso2AlignmentCheckReqType) {
+ int grammarID = 675;
+ int done = 0;
+
+
+ while(!done) {
+ switch(grammarID) {
+ case 675:
+ /* FirstStartTag[START_ELEMENT({urn:iso:15118:2:2016:MsgBody}EVProcessing)] */
+ 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, iso2AlignmentCheckReqType->EVProcessing);
+ /* valid EE */
+ errn = encodeNBitUnsignedInteger(stream, 1, 0);
+ }
+ }
+ grammarID = 676;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 676:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgBody}AlignmentCheckParameters), END_ELEMENT] */
+ if ( iso2AlignmentCheckReqType->AlignmentCheckParameters_isUsed == 1u ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ if(errn == 0) {
+ errn = encode_iso2ParameterSetType(stream, &iso2AlignmentCheckReqType->AlignmentCheckParameters );
+ }
+ grammarID = 3;
+ } else if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 3:
+ /* Element[END_ELEMENT] */
+ if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 1, 0);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } 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:2016:MsgBody,CertificateInstallationReqType', base type name='BodyBaseType', content type='ELEMENT', isAbstract='false', hasTypeId='false', final='0', block='0', particle='("urn:iso:15118:2:2016:MsgBody":OEMProvisioningCert,"urn:iso:15118:2:2016:MsgBody":ListOfRootCertificateIDs)', derivedBy='EXTENSION'. */
+static int encode_iso2CertificateInstallationReqType(bitstream_t* stream, struct iso2CertificateInstallationReqType* iso2CertificateInstallationReqType) {
+ int grammarID = 677;
+ int done = 0;
+
+
+ while(!done) {
+ switch(grammarID) {
+ case 677:
+ /* FirstStartTag[ATTRIBUTE[STRING]({urn:iso:15118:2:2016:MsgBody}Id)] */
+ if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 1, 0);
+ if(errn == 0) {
+ /* encode string as string table miss (+2 len)*/
+ errn = encodeUnsignedInteger16(stream, (uint16_t)(iso2CertificateInstallationReqType->Id.charactersLen + 2));
+ if (errn == 0) {
+ errn = encodeCharacters(stream, iso2CertificateInstallationReqType->Id.characters, iso2CertificateInstallationReqType->Id.charactersLen);
+ }
+ }
+ grammarID = 678;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 678:
+ /* StartTag[START_ELEMENT({urn:iso:15118:2:2016:MsgBody}OEMProvisioningCert)] */
+ if ( 1 == 1 ) {
+ errn = encodeNBitUnsignedInteger(stream, 1, 0);
+ if(errn == 0) {
+ /* FirstStartTag[CHARACTERS[BINARY_BASE64]] */
+ errn = encodeNBitUnsignedInteger(stream, 1, 0);
+ if(errn == 0) {
+ errn = encodeUnsignedInteger16(stream, (uint16_t)(iso2CertificateInstallationReqType->OEMProvisioningCert.bytesLen));
+ if (errn == 0) {
+ errn = encodeBytes(stream, iso2CertificateInstallationReqType->OEMProvisioningCert.bytes, iso2CertificateInstallationReqType->OEMProvisioningCert.bytesLen);
+ }
+ /* valid EE */
+ errn = encodeNBitUnsignedInteger(stream, 1, 0);
+ }
+ }
+ grammarID = 650;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 650:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgBody}ListOfRootCertificateIDs)] */
+ if ( 1 == 1 ) {
+ errn = encodeNBitUnsignedInteger(stream, 1, 0);
+ if(errn == 0) {
+ errn = encode_iso2ListOfRootCertificateIDsType(stream, &iso2CertificateInstallationReqType->ListOfRootCertificateIDs );
+ }
+ grammarID = 3;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 3:
+ /* Element[END_ELEMENT] */
+ if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 1, 0);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_GRAMMAR_ID;
+ break;
+ }
+ if(errn) {
+ done = 1;
+ }
+ }
+ return errn;
+}
+
+/* Complex type name='http://www.w3.org/2000/09/xmldsig#,TransformsType', base type name='anyType', content type='ELEMENT', isAbstract='false', hasTypeId='false', final='0', block='0', particle='("http://www.w3.org/2000/09/xmldsig#":Transform{1-UNBOUNDED})', derivedBy='RESTRICTION'. */
+static int encode_iso2TransformsType(bitstream_t* stream, struct iso2TransformsType* iso2TransformsType) {
+ int grammarID = 679;
+ int done = 0;
+
+ unsigned int iso2TransformsType_Transform_currArrayIndex = 0;
+
+ while(!done) {
+ switch(grammarID) {
+ case 679:
+ /* FirstStartTag[START_ELEMENT({http://www.w3.org/2000/09/xmldsig#}Transform)] */
+ if (iso2TransformsType_Transform_currArrayIndex < iso2TransformsType->Transform.arrayLen ) {
+ errn = encodeNBitUnsignedInteger(stream, 1, 0);
+ if(errn == 0) {
+ errn = encode_iso2TransformType(stream, &iso2TransformsType->Transform.array [iso2TransformsType_Transform_currArrayIndex++]);
+ }
+ grammarID = 680;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 680:
+ /* Element[START_ELEMENT({http://www.w3.org/2000/09/xmldsig#}Transform), END_ELEMENT] */
+ if (iso2TransformsType_Transform_currArrayIndex < iso2TransformsType->Transform.arrayLen ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ if(errn == 0) {
+ errn = encode_iso2TransformType(stream, &iso2TransformsType->Transform.array [iso2TransformsType_Transform_currArrayIndex++]);
+ }
+ grammarID = 680;
+ } else if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_GRAMMAR_ID;
+ break;
+ }
+ if(errn) {
+ done = 1;
+ }
+ }
+ return errn;
+}
+
+/* Complex type name='http://www.w3.org/2000/09/xmldsig#,ObjectType', base type name='anyType', content type='MIXED', isAbstract='false', hasTypeId='false', final='0', block='0', particle='((WC[##any])){0-UNBOUNDED}', derivedBy='RESTRICTION'. */
+static int encode_iso2ObjectType(bitstream_t* stream, struct iso2ObjectType* iso2ObjectType) {
+ int grammarID = 681;
+ int done = 0;
+ int wcDone = 0;
+
+
+ while(!done) {
+ switch(grammarID) {
+ case 681:
+ /* FirstStartTag[ATTRIBUTE[STRING](Encoding), ATTRIBUTE[STRING](Id), ATTRIBUTE[STRING](MimeType), START_ELEMENT_GENERIC, END_ELEMENT, CHARACTERS_GENERIC[STRING]] */
+ if ( iso2ObjectType->Encoding_isUsed == 1u ) {
+ errn = encodeNBitUnsignedInteger(stream, 3, 0);
+ if(errn == 0) {
+ /* encode string as string table miss (+2 len)*/
+ errn = encodeUnsignedInteger16(stream, (uint16_t)(iso2ObjectType->Encoding.charactersLen + 2));
+ if (errn == 0) {
+ errn = encodeCharacters(stream, iso2ObjectType->Encoding.characters, iso2ObjectType->Encoding.charactersLen);
+ }
+ }
+ grammarID = 682;
+ } else if ( iso2ObjectType->Id_isUsed == 1u ) {
+ errn = encodeNBitUnsignedInteger(stream, 3, 1);
+ if(errn == 0) {
+ /* encode string as string table miss (+2 len)*/
+ errn = encodeUnsignedInteger16(stream, (uint16_t)(iso2ObjectType->Id.charactersLen + 2));
+ if (errn == 0) {
+ errn = encodeCharacters(stream, iso2ObjectType->Id.characters, iso2ObjectType->Id.charactersLen);
+ }
+ }
+ grammarID = 683;
+ } else if ( iso2ObjectType->MimeType_isUsed == 1u ) {
+ errn = encodeNBitUnsignedInteger(stream, 3, 2);
+ if(errn == 0) {
+ /* encode string as string table miss (+2 len)*/
+ errn = encodeUnsignedInteger16(stream, (uint16_t)(iso2ObjectType->MimeType.charactersLen + 2));
+ if (errn == 0) {
+ errn = encodeCharacters(stream, iso2ObjectType->MimeType.characters, iso2ObjectType->MimeType.charactersLen);
+ }
+ }
+ grammarID = 684;
+ } else if (1==0) {
+ errn = EXI_UNSUPPORTED_EVENT_CODE_CHARACTERISTICS;
+ grammarID = 685;
+ } else if ( iso2ObjectType->ANY_isUsed == 0u || wcDone ) {
+ errn = encodeNBitUnsignedInteger(stream, 3, 4);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else if ( iso2ObjectType->ANY_isUsed == 1u ) {
+ errn = encodeNBitUnsignedInteger(stream, 3, 5);
+ if(errn == 0) {
+ /* encode string as string table miss (+2 len)*/
+ errn = encodeUnsignedInteger16(stream, (uint16_t)(iso2ObjectType->ANY.charactersLen + 2));
+ if (errn == 0) {
+ errn = encodeCharacters(stream, iso2ObjectType->ANY.characters, iso2ObjectType->ANY.charactersLen);
+ }
+ }
+ wcDone = 1;
+ grammarID = 685;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 682:
+ /* StartTag[ATTRIBUTE[STRING](Id), ATTRIBUTE[STRING](MimeType), START_ELEMENT_GENERIC, END_ELEMENT, CHARACTERS_GENERIC[STRING]] */
+ if ( iso2ObjectType->Id_isUsed == 1u ) {
+ errn = encodeNBitUnsignedInteger(stream, 3, 0);
+ if(errn == 0) {
+ /* encode string as string table miss (+2 len)*/
+ errn = encodeUnsignedInteger16(stream, (uint16_t)(iso2ObjectType->Id.charactersLen + 2));
+ if (errn == 0) {
+ errn = encodeCharacters(stream, iso2ObjectType->Id.characters, iso2ObjectType->Id.charactersLen);
+ }
+ }
+ grammarID = 683;
+ } else if ( iso2ObjectType->MimeType_isUsed == 1u ) {
+ errn = encodeNBitUnsignedInteger(stream, 3, 1);
+ if(errn == 0) {
+ /* encode string as string table miss (+2 len)*/
+ errn = encodeUnsignedInteger16(stream, (uint16_t)(iso2ObjectType->MimeType.charactersLen + 2));
+ if (errn == 0) {
+ errn = encodeCharacters(stream, iso2ObjectType->MimeType.characters, iso2ObjectType->MimeType.charactersLen);
+ }
+ }
+ grammarID = 684;
+ } else if (1==0) {
+ errn = EXI_UNSUPPORTED_EVENT_CODE_CHARACTERISTICS;
+ grammarID = 685;
+ } else if ( iso2ObjectType->ANY_isUsed == 0u || wcDone ) {
+ errn = encodeNBitUnsignedInteger(stream, 3, 3);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else if ( iso2ObjectType->ANY_isUsed == 1u ) {
+ errn = encodeNBitUnsignedInteger(stream, 3, 4);
+ if(errn == 0) {
+ /* encode string as string table miss (+2 len)*/
+ errn = encodeUnsignedInteger16(stream, (uint16_t)(iso2ObjectType->ANY.charactersLen + 2));
+ if (errn == 0) {
+ errn = encodeCharacters(stream, iso2ObjectType->ANY.characters, iso2ObjectType->ANY.charactersLen);
+ }
+ }
+ wcDone = 1;
+ grammarID = 685;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 683:
+ /* StartTag[ATTRIBUTE[STRING](MimeType), START_ELEMENT_GENERIC, END_ELEMENT, CHARACTERS_GENERIC[STRING]] */
+ if ( iso2ObjectType->MimeType_isUsed == 1u ) {
+ errn = encodeNBitUnsignedInteger(stream, 3, 0);
+ if(errn == 0) {
+ /* encode string as string table miss (+2 len)*/
+ errn = encodeUnsignedInteger16(stream, (uint16_t)(iso2ObjectType->MimeType.charactersLen + 2));
+ if (errn == 0) {
+ errn = encodeCharacters(stream, iso2ObjectType->MimeType.characters, iso2ObjectType->MimeType.charactersLen);
+ }
+ }
+ grammarID = 684;
+ } else if (1==0) {
+ errn = EXI_UNSUPPORTED_EVENT_CODE_CHARACTERISTICS;
+ grammarID = 685;
+ } else if ( iso2ObjectType->ANY_isUsed == 0u || wcDone ) {
+ errn = encodeNBitUnsignedInteger(stream, 3, 2);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else if ( iso2ObjectType->ANY_isUsed == 1u ) {
+ errn = encodeNBitUnsignedInteger(stream, 3, 3);
+ if(errn == 0) {
+ /* encode string as string table miss (+2 len)*/
+ errn = encodeUnsignedInteger16(stream, (uint16_t)(iso2ObjectType->ANY.charactersLen + 2));
+ if (errn == 0) {
+ errn = encodeCharacters(stream, iso2ObjectType->ANY.characters, iso2ObjectType->ANY.charactersLen);
+ }
+ }
+ wcDone = 1;
+ grammarID = 685;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 684:
+ /* StartTag[START_ELEMENT_GENERIC, END_ELEMENT, CHARACTERS_GENERIC[STRING]] */
+ if (1==0) {
+ errn = EXI_UNSUPPORTED_EVENT_CODE_CHARACTERISTICS;
+ grammarID = 685;
+ } else if ( iso2ObjectType->ANY_isUsed == 0u || wcDone ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else if ( iso2ObjectType->ANY_isUsed == 1u ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 2);
+ if(errn == 0) {
+ /* encode string as string table miss (+2 len)*/
+ errn = encodeUnsignedInteger16(stream, (uint16_t)(iso2ObjectType->ANY.charactersLen + 2));
+ if (errn == 0) {
+ errn = encodeCharacters(stream, iso2ObjectType->ANY.characters, iso2ObjectType->ANY.charactersLen);
+ }
+ }
+ wcDone = 1;
+ grammarID = 685;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 685:
+ /* Element[START_ELEMENT_GENERIC, END_ELEMENT, CHARACTERS_GENERIC[STRING]] */
+ if (1==0) {
+ errn = EXI_UNSUPPORTED_EVENT_CODE_CHARACTERISTICS;
+ grammarID = 685;
+ } else if ( iso2ObjectType->ANY_isUsed == 0u || wcDone ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else if ( iso2ObjectType->ANY_isUsed == 1u ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 2);
+ if(errn == 0) {
+ /* encode string as string table miss (+2 len)*/
+ errn = encodeUnsignedInteger16(stream, (uint16_t)(iso2ObjectType->ANY.charactersLen + 2));
+ if (errn == 0) {
+ errn = encodeCharacters(stream, iso2ObjectType->ANY.characters, iso2ObjectType->ANY.charactersLen);
+ }
+ }
+ wcDone = 1;
+ grammarID = 685;
+ } 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:2016:MsgDataTypes,SensorOrderListType', base type name='anyType', content type='ELEMENT', isAbstract='false', hasTypeId='false', final='0', block='0', particle='("urn:iso:15118:2:2016:MsgDataTypes":SensorPosition{1-255})', derivedBy='RESTRICTION'. */
+static int encode_iso2SensorOrderListType(bitstream_t* stream, struct iso2SensorOrderListType* iso2SensorOrderListType) {
+ int grammarID = 686;
+ int done = 0;
+
+ unsigned int iso2SensorOrderListType_SensorPosition_currArrayIndex = 0;
+
+ while(!done) {
+ switch(grammarID) {
+ case 686:
+ /* FirstStartTag[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorPosition)] */
+ if (iso2SensorOrderListType_SensorPosition_currArrayIndex < iso2SensorOrderListType->SensorPosition.arrayLen ) {
+ errn = encodeNBitUnsignedInteger(stream, 1, 0);
+ if(errn == 0) {
+ /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
+ errn = encodeNBitUnsignedInteger(stream, 1, 0);
+ if(errn == 0) {
+ errn = encodeNBitUnsignedInteger(stream, 8, (uint32_t)(iso2SensorOrderListType->SensorPosition.array[iso2SensorOrderListType_SensorPosition_currArrayIndex++] - 0));
+ /* valid EE */
+ errn = encodeNBitUnsignedInteger(stream, 1, 0);
+ }
+ }
+ grammarID = 687;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 687:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorPosition), END_ELEMENT] */
+ if (iso2SensorOrderListType_SensorPosition_currArrayIndex < iso2SensorOrderListType->SensorPosition.arrayLen ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ if(errn == 0) {
+ /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
+ errn = encodeNBitUnsignedInteger(stream, 1, 0);
+ if(errn == 0) {
+ errn = encodeNBitUnsignedInteger(stream, 8, (uint32_t)(iso2SensorOrderListType->SensorPosition.array[iso2SensorOrderListType_SensorPosition_currArrayIndex++] - 0));
+ /* valid EE */
+ errn = encodeNBitUnsignedInteger(stream, 1, 0);
+ }
+ }
+ grammarID = 688;
+ } else if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 688:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorPosition), END_ELEMENT] */
+ if (iso2SensorOrderListType_SensorPosition_currArrayIndex < iso2SensorOrderListType->SensorPosition.arrayLen ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ if(errn == 0) {
+ /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
+ errn = encodeNBitUnsignedInteger(stream, 1, 0);
+ if(errn == 0) {
+ errn = encodeNBitUnsignedInteger(stream, 8, (uint32_t)(iso2SensorOrderListType->SensorPosition.array[iso2SensorOrderListType_SensorPosition_currArrayIndex++] - 0));
+ /* valid EE */
+ errn = encodeNBitUnsignedInteger(stream, 1, 0);
+ }
+ }
+ grammarID = 689;
+ } else if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 689:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorPosition), END_ELEMENT] */
+ if (iso2SensorOrderListType_SensorPosition_currArrayIndex < iso2SensorOrderListType->SensorPosition.arrayLen ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ if(errn == 0) {
+ /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
+ errn = encodeNBitUnsignedInteger(stream, 1, 0);
+ if(errn == 0) {
+ errn = encodeNBitUnsignedInteger(stream, 8, (uint32_t)(iso2SensorOrderListType->SensorPosition.array[iso2SensorOrderListType_SensorPosition_currArrayIndex++] - 0));
+ /* valid EE */
+ errn = encodeNBitUnsignedInteger(stream, 1, 0);
+ }
+ }
+ grammarID = 690;
+ } else if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 690:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorPosition), END_ELEMENT] */
+ if (iso2SensorOrderListType_SensorPosition_currArrayIndex < iso2SensorOrderListType->SensorPosition.arrayLen ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ if(errn == 0) {
+ /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
+ errn = encodeNBitUnsignedInteger(stream, 1, 0);
+ if(errn == 0) {
+ errn = encodeNBitUnsignedInteger(stream, 8, (uint32_t)(iso2SensorOrderListType->SensorPosition.array[iso2SensorOrderListType_SensorPosition_currArrayIndex++] - 0));
+ /* valid EE */
+ errn = encodeNBitUnsignedInteger(stream, 1, 0);
+ }
+ }
+ grammarID = 691;
+ } else if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 691:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorPosition), END_ELEMENT] */
+ if (iso2SensorOrderListType_SensorPosition_currArrayIndex < iso2SensorOrderListType->SensorPosition.arrayLen ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ if(errn == 0) {
+ /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
+ errn = encodeNBitUnsignedInteger(stream, 1, 0);
+ if(errn == 0) {
+ errn = encodeNBitUnsignedInteger(stream, 8, (uint32_t)(iso2SensorOrderListType->SensorPosition.array[iso2SensorOrderListType_SensorPosition_currArrayIndex++] - 0));
+ /* valid EE */
+ errn = encodeNBitUnsignedInteger(stream, 1, 0);
+ }
+ }
+ grammarID = 692;
+ } else if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 692:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorPosition), END_ELEMENT] */
+ if (iso2SensorOrderListType_SensorPosition_currArrayIndex < iso2SensorOrderListType->SensorPosition.arrayLen ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ if(errn == 0) {
+ /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
+ errn = encodeNBitUnsignedInteger(stream, 1, 0);
+ if(errn == 0) {
+ errn = encodeNBitUnsignedInteger(stream, 8, (uint32_t)(iso2SensorOrderListType->SensorPosition.array[iso2SensorOrderListType_SensorPosition_currArrayIndex++] - 0));
+ /* valid EE */
+ errn = encodeNBitUnsignedInteger(stream, 1, 0);
+ }
+ }
+ grammarID = 693;
+ } else if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 693:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorPosition), END_ELEMENT] */
+ if (iso2SensorOrderListType_SensorPosition_currArrayIndex < iso2SensorOrderListType->SensorPosition.arrayLen ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ if(errn == 0) {
+ /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
+ errn = encodeNBitUnsignedInteger(stream, 1, 0);
+ if(errn == 0) {
+ errn = encodeNBitUnsignedInteger(stream, 8, (uint32_t)(iso2SensorOrderListType->SensorPosition.array[iso2SensorOrderListType_SensorPosition_currArrayIndex++] - 0));
+ /* valid EE */
+ errn = encodeNBitUnsignedInteger(stream, 1, 0);
+ }
+ }
+ grammarID = 694;
+ } else if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 694:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorPosition), END_ELEMENT] */
+ if (iso2SensorOrderListType_SensorPosition_currArrayIndex < iso2SensorOrderListType->SensorPosition.arrayLen ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ if(errn == 0) {
+ /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
+ errn = encodeNBitUnsignedInteger(stream, 1, 0);
+ if(errn == 0) {
+ errn = encodeNBitUnsignedInteger(stream, 8, (uint32_t)(iso2SensorOrderListType->SensorPosition.array[iso2SensorOrderListType_SensorPosition_currArrayIndex++] - 0));
+ /* valid EE */
+ errn = encodeNBitUnsignedInteger(stream, 1, 0);
+ }
+ }
+ grammarID = 695;
+ } else if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 695:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorPosition), END_ELEMENT] */
+ if (iso2SensorOrderListType_SensorPosition_currArrayIndex < iso2SensorOrderListType->SensorPosition.arrayLen ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ if(errn == 0) {
+ /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
+ errn = encodeNBitUnsignedInteger(stream, 1, 0);
+ if(errn == 0) {
+ errn = encodeNBitUnsignedInteger(stream, 8, (uint32_t)(iso2SensorOrderListType->SensorPosition.array[iso2SensorOrderListType_SensorPosition_currArrayIndex++] - 0));
+ /* valid EE */
+ errn = encodeNBitUnsignedInteger(stream, 1, 0);
+ }
+ }
+ grammarID = 696;
+ } else if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 696:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorPosition), END_ELEMENT] */
+ if (iso2SensorOrderListType_SensorPosition_currArrayIndex < iso2SensorOrderListType->SensorPosition.arrayLen ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ if(errn == 0) {
+ /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
+ errn = encodeNBitUnsignedInteger(stream, 1, 0);
+ if(errn == 0) {
+ errn = encodeNBitUnsignedInteger(stream, 8, (uint32_t)(iso2SensorOrderListType->SensorPosition.array[iso2SensorOrderListType_SensorPosition_currArrayIndex++] - 0));
+ /* valid EE */
+ errn = encodeNBitUnsignedInteger(stream, 1, 0);
+ }
+ }
+ grammarID = 697;
+ } else if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 697:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorPosition), END_ELEMENT] */
+ if (iso2SensorOrderListType_SensorPosition_currArrayIndex < iso2SensorOrderListType->SensorPosition.arrayLen ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ if(errn == 0) {
+ /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
+ errn = encodeNBitUnsignedInteger(stream, 1, 0);
+ if(errn == 0) {
+ errn = encodeNBitUnsignedInteger(stream, 8, (uint32_t)(iso2SensorOrderListType->SensorPosition.array[iso2SensorOrderListType_SensorPosition_currArrayIndex++] - 0));
+ /* valid EE */
+ errn = encodeNBitUnsignedInteger(stream, 1, 0);
+ }
+ }
+ grammarID = 698;
+ } else if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 698:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorPosition), END_ELEMENT] */
+ if (iso2SensorOrderListType_SensorPosition_currArrayIndex < iso2SensorOrderListType->SensorPosition.arrayLen ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ if(errn == 0) {
+ /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
+ errn = encodeNBitUnsignedInteger(stream, 1, 0);
+ if(errn == 0) {
+ errn = encodeNBitUnsignedInteger(stream, 8, (uint32_t)(iso2SensorOrderListType->SensorPosition.array[iso2SensorOrderListType_SensorPosition_currArrayIndex++] - 0));
+ /* valid EE */
+ errn = encodeNBitUnsignedInteger(stream, 1, 0);
+ }
+ }
+ grammarID = 699;
+ } else if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 699:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorPosition), END_ELEMENT] */
+ if (iso2SensorOrderListType_SensorPosition_currArrayIndex < iso2SensorOrderListType->SensorPosition.arrayLen ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ if(errn == 0) {
+ /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
+ errn = encodeNBitUnsignedInteger(stream, 1, 0);
+ if(errn == 0) {
+ errn = encodeNBitUnsignedInteger(stream, 8, (uint32_t)(iso2SensorOrderListType->SensorPosition.array[iso2SensorOrderListType_SensorPosition_currArrayIndex++] - 0));
+ /* valid EE */
+ errn = encodeNBitUnsignedInteger(stream, 1, 0);
+ }
+ }
+ grammarID = 700;
+ } else if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 700:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorPosition), END_ELEMENT] */
+ if (iso2SensorOrderListType_SensorPosition_currArrayIndex < iso2SensorOrderListType->SensorPosition.arrayLen ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ if(errn == 0) {
+ /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
+ errn = encodeNBitUnsignedInteger(stream, 1, 0);
+ if(errn == 0) {
+ errn = encodeNBitUnsignedInteger(stream, 8, (uint32_t)(iso2SensorOrderListType->SensorPosition.array[iso2SensorOrderListType_SensorPosition_currArrayIndex++] - 0));
+ /* valid EE */
+ errn = encodeNBitUnsignedInteger(stream, 1, 0);
+ }
+ }
+ grammarID = 701;
+ } else if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 701:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorPosition), END_ELEMENT] */
+ if (iso2SensorOrderListType_SensorPosition_currArrayIndex < iso2SensorOrderListType->SensorPosition.arrayLen ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ if(errn == 0) {
+ /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
+ errn = encodeNBitUnsignedInteger(stream, 1, 0);
+ if(errn == 0) {
+ errn = encodeNBitUnsignedInteger(stream, 8, (uint32_t)(iso2SensorOrderListType->SensorPosition.array[iso2SensorOrderListType_SensorPosition_currArrayIndex++] - 0));
+ /* valid EE */
+ errn = encodeNBitUnsignedInteger(stream, 1, 0);
+ }
+ }
+ grammarID = 702;
+ } else if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 702:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorPosition), END_ELEMENT] */
+ if (iso2SensorOrderListType_SensorPosition_currArrayIndex < iso2SensorOrderListType->SensorPosition.arrayLen ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ if(errn == 0) {
+ /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
+ errn = encodeNBitUnsignedInteger(stream, 1, 0);
+ if(errn == 0) {
+ errn = encodeNBitUnsignedInteger(stream, 8, (uint32_t)(iso2SensorOrderListType->SensorPosition.array[iso2SensorOrderListType_SensorPosition_currArrayIndex++] - 0));
+ /* valid EE */
+ errn = encodeNBitUnsignedInteger(stream, 1, 0);
+ }
+ }
+ grammarID = 703;
+ } else if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 703:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorPosition), END_ELEMENT] */
+ if (iso2SensorOrderListType_SensorPosition_currArrayIndex < iso2SensorOrderListType->SensorPosition.arrayLen ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ if(errn == 0) {
+ /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
+ errn = encodeNBitUnsignedInteger(stream, 1, 0);
+ if(errn == 0) {
+ errn = encodeNBitUnsignedInteger(stream, 8, (uint32_t)(iso2SensorOrderListType->SensorPosition.array[iso2SensorOrderListType_SensorPosition_currArrayIndex++] - 0));
+ /* valid EE */
+ errn = encodeNBitUnsignedInteger(stream, 1, 0);
+ }
+ }
+ grammarID = 704;
+ } else if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 704:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorPosition), END_ELEMENT] */
+ if (iso2SensorOrderListType_SensorPosition_currArrayIndex < iso2SensorOrderListType->SensorPosition.arrayLen ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ if(errn == 0) {
+ /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
+ errn = encodeNBitUnsignedInteger(stream, 1, 0);
+ if(errn == 0) {
+ errn = encodeNBitUnsignedInteger(stream, 8, (uint32_t)(iso2SensorOrderListType->SensorPosition.array[iso2SensorOrderListType_SensorPosition_currArrayIndex++] - 0));
+ /* valid EE */
+ errn = encodeNBitUnsignedInteger(stream, 1, 0);
+ }
+ }
+ grammarID = 705;
+ } else if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 705:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorPosition), END_ELEMENT] */
+ if (iso2SensorOrderListType_SensorPosition_currArrayIndex < iso2SensorOrderListType->SensorPosition.arrayLen ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ if(errn == 0) {
+ /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
+ errn = encodeNBitUnsignedInteger(stream, 1, 0);
+ if(errn == 0) {
+ errn = encodeNBitUnsignedInteger(stream, 8, (uint32_t)(iso2SensorOrderListType->SensorPosition.array[iso2SensorOrderListType_SensorPosition_currArrayIndex++] - 0));
+ /* valid EE */
+ errn = encodeNBitUnsignedInteger(stream, 1, 0);
+ }
+ }
+ grammarID = 706;
+ } else if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 706:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorPosition), END_ELEMENT] */
+ if (iso2SensorOrderListType_SensorPosition_currArrayIndex < iso2SensorOrderListType->SensorPosition.arrayLen ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ if(errn == 0) {
+ /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
+ errn = encodeNBitUnsignedInteger(stream, 1, 0);
+ if(errn == 0) {
+ errn = encodeNBitUnsignedInteger(stream, 8, (uint32_t)(iso2SensorOrderListType->SensorPosition.array[iso2SensorOrderListType_SensorPosition_currArrayIndex++] - 0));
+ /* valid EE */
+ errn = encodeNBitUnsignedInteger(stream, 1, 0);
+ }
+ }
+ grammarID = 707;
+ } else if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 707:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorPosition), END_ELEMENT] */
+ if (iso2SensorOrderListType_SensorPosition_currArrayIndex < iso2SensorOrderListType->SensorPosition.arrayLen ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ if(errn == 0) {
+ /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
+ errn = encodeNBitUnsignedInteger(stream, 1, 0);
+ if(errn == 0) {
+ errn = encodeNBitUnsignedInteger(stream, 8, (uint32_t)(iso2SensorOrderListType->SensorPosition.array[iso2SensorOrderListType_SensorPosition_currArrayIndex++] - 0));
+ /* valid EE */
+ errn = encodeNBitUnsignedInteger(stream, 1, 0);
+ }
+ }
+ grammarID = 708;
+ } else if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 708:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorPosition), END_ELEMENT] */
+ if (iso2SensorOrderListType_SensorPosition_currArrayIndex < iso2SensorOrderListType->SensorPosition.arrayLen ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ if(errn == 0) {
+ /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
+ errn = encodeNBitUnsignedInteger(stream, 1, 0);
+ if(errn == 0) {
+ errn = encodeNBitUnsignedInteger(stream, 8, (uint32_t)(iso2SensorOrderListType->SensorPosition.array[iso2SensorOrderListType_SensorPosition_currArrayIndex++] - 0));
+ /* valid EE */
+ errn = encodeNBitUnsignedInteger(stream, 1, 0);
+ }
+ }
+ grammarID = 709;
+ } else if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 709:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorPosition), END_ELEMENT] */
+ if (iso2SensorOrderListType_SensorPosition_currArrayIndex < iso2SensorOrderListType->SensorPosition.arrayLen ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ if(errn == 0) {
+ /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
+ errn = encodeNBitUnsignedInteger(stream, 1, 0);
+ if(errn == 0) {
+ errn = encodeNBitUnsignedInteger(stream, 8, (uint32_t)(iso2SensorOrderListType->SensorPosition.array[iso2SensorOrderListType_SensorPosition_currArrayIndex++] - 0));
+ /* valid EE */
+ errn = encodeNBitUnsignedInteger(stream, 1, 0);
+ }
+ }
+ grammarID = 710;
+ } else if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 710:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorPosition), END_ELEMENT] */
+ if (iso2SensorOrderListType_SensorPosition_currArrayIndex < iso2SensorOrderListType->SensorPosition.arrayLen ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ if(errn == 0) {
+ /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
+ errn = encodeNBitUnsignedInteger(stream, 1, 0);
+ if(errn == 0) {
+ errn = encodeNBitUnsignedInteger(stream, 8, (uint32_t)(iso2SensorOrderListType->SensorPosition.array[iso2SensorOrderListType_SensorPosition_currArrayIndex++] - 0));
+ /* valid EE */
+ errn = encodeNBitUnsignedInteger(stream, 1, 0);
+ }
+ }
+ grammarID = 711;
+ } else if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 711:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorPosition), END_ELEMENT] */
+ if (iso2SensorOrderListType_SensorPosition_currArrayIndex < iso2SensorOrderListType->SensorPosition.arrayLen ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ if(errn == 0) {
+ /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
+ errn = encodeNBitUnsignedInteger(stream, 1, 0);
+ if(errn == 0) {
+ errn = encodeNBitUnsignedInteger(stream, 8, (uint32_t)(iso2SensorOrderListType->SensorPosition.array[iso2SensorOrderListType_SensorPosition_currArrayIndex++] - 0));
+ /* valid EE */
+ errn = encodeNBitUnsignedInteger(stream, 1, 0);
+ }
+ }
+ grammarID = 712;
+ } else if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 712:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorPosition), END_ELEMENT] */
+ if (iso2SensorOrderListType_SensorPosition_currArrayIndex < iso2SensorOrderListType->SensorPosition.arrayLen ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ if(errn == 0) {
+ /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
+ errn = encodeNBitUnsignedInteger(stream, 1, 0);
+ if(errn == 0) {
+ errn = encodeNBitUnsignedInteger(stream, 8, (uint32_t)(iso2SensorOrderListType->SensorPosition.array[iso2SensorOrderListType_SensorPosition_currArrayIndex++] - 0));
+ /* valid EE */
+ errn = encodeNBitUnsignedInteger(stream, 1, 0);
+ }
+ }
+ grammarID = 713;
+ } else if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 713:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorPosition), END_ELEMENT] */
+ if (iso2SensorOrderListType_SensorPosition_currArrayIndex < iso2SensorOrderListType->SensorPosition.arrayLen ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ if(errn == 0) {
+ /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
+ errn = encodeNBitUnsignedInteger(stream, 1, 0);
+ if(errn == 0) {
+ errn = encodeNBitUnsignedInteger(stream, 8, (uint32_t)(iso2SensorOrderListType->SensorPosition.array[iso2SensorOrderListType_SensorPosition_currArrayIndex++] - 0));
+ /* valid EE */
+ errn = encodeNBitUnsignedInteger(stream, 1, 0);
+ }
+ }
+ grammarID = 714;
+ } else if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 714:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorPosition), END_ELEMENT] */
+ if (iso2SensorOrderListType_SensorPosition_currArrayIndex < iso2SensorOrderListType->SensorPosition.arrayLen ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ if(errn == 0) {
+ /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
+ errn = encodeNBitUnsignedInteger(stream, 1, 0);
+ if(errn == 0) {
+ errn = encodeNBitUnsignedInteger(stream, 8, (uint32_t)(iso2SensorOrderListType->SensorPosition.array[iso2SensorOrderListType_SensorPosition_currArrayIndex++] - 0));
+ /* valid EE */
+ errn = encodeNBitUnsignedInteger(stream, 1, 0);
+ }
+ }
+ grammarID = 715;
+ } else if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 715:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorPosition), END_ELEMENT] */
+ if (iso2SensorOrderListType_SensorPosition_currArrayIndex < iso2SensorOrderListType->SensorPosition.arrayLen ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ if(errn == 0) {
+ /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
+ errn = encodeNBitUnsignedInteger(stream, 1, 0);
+ if(errn == 0) {
+ errn = encodeNBitUnsignedInteger(stream, 8, (uint32_t)(iso2SensorOrderListType->SensorPosition.array[iso2SensorOrderListType_SensorPosition_currArrayIndex++] - 0));
+ /* valid EE */
+ errn = encodeNBitUnsignedInteger(stream, 1, 0);
+ }
+ }
+ grammarID = 716;
+ } else if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 716:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorPosition), END_ELEMENT] */
+ if (iso2SensorOrderListType_SensorPosition_currArrayIndex < iso2SensorOrderListType->SensorPosition.arrayLen ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ if(errn == 0) {
+ /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
+ errn = encodeNBitUnsignedInteger(stream, 1, 0);
+ if(errn == 0) {
+ errn = encodeNBitUnsignedInteger(stream, 8, (uint32_t)(iso2SensorOrderListType->SensorPosition.array[iso2SensorOrderListType_SensorPosition_currArrayIndex++] - 0));
+ /* valid EE */
+ errn = encodeNBitUnsignedInteger(stream, 1, 0);
+ }
+ }
+ grammarID = 717;
+ } else if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 717:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorPosition), END_ELEMENT] */
+ if (iso2SensorOrderListType_SensorPosition_currArrayIndex < iso2SensorOrderListType->SensorPosition.arrayLen ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ if(errn == 0) {
+ /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
+ errn = encodeNBitUnsignedInteger(stream, 1, 0);
+ if(errn == 0) {
+ errn = encodeNBitUnsignedInteger(stream, 8, (uint32_t)(iso2SensorOrderListType->SensorPosition.array[iso2SensorOrderListType_SensorPosition_currArrayIndex++] - 0));
+ /* valid EE */
+ errn = encodeNBitUnsignedInteger(stream, 1, 0);
+ }
+ }
+ grammarID = 718;
+ } else if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 718:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorPosition), END_ELEMENT] */
+ if (iso2SensorOrderListType_SensorPosition_currArrayIndex < iso2SensorOrderListType->SensorPosition.arrayLen ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ if(errn == 0) {
+ /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
+ errn = encodeNBitUnsignedInteger(stream, 1, 0);
+ if(errn == 0) {
+ errn = encodeNBitUnsignedInteger(stream, 8, (uint32_t)(iso2SensorOrderListType->SensorPosition.array[iso2SensorOrderListType_SensorPosition_currArrayIndex++] - 0));
+ /* valid EE */
+ errn = encodeNBitUnsignedInteger(stream, 1, 0);
+ }
+ }
+ grammarID = 719;
+ } else if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 719:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorPosition), END_ELEMENT] */
+ if (iso2SensorOrderListType_SensorPosition_currArrayIndex < iso2SensorOrderListType->SensorPosition.arrayLen ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ if(errn == 0) {
+ /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
+ errn = encodeNBitUnsignedInteger(stream, 1, 0);
+ if(errn == 0) {
+ errn = encodeNBitUnsignedInteger(stream, 8, (uint32_t)(iso2SensorOrderListType->SensorPosition.array[iso2SensorOrderListType_SensorPosition_currArrayIndex++] - 0));
+ /* valid EE */
+ errn = encodeNBitUnsignedInteger(stream, 1, 0);
+ }
+ }
+ grammarID = 720;
+ } else if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 720:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorPosition), END_ELEMENT] */
+ if (iso2SensorOrderListType_SensorPosition_currArrayIndex < iso2SensorOrderListType->SensorPosition.arrayLen ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ if(errn == 0) {
+ /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
+ errn = encodeNBitUnsignedInteger(stream, 1, 0);
+ if(errn == 0) {
+ errn = encodeNBitUnsignedInteger(stream, 8, (uint32_t)(iso2SensorOrderListType->SensorPosition.array[iso2SensorOrderListType_SensorPosition_currArrayIndex++] - 0));
+ /* valid EE */
+ errn = encodeNBitUnsignedInteger(stream, 1, 0);
+ }
+ }
+ grammarID = 721;
+ } else if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 721:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorPosition), END_ELEMENT] */
+ if (iso2SensorOrderListType_SensorPosition_currArrayIndex < iso2SensorOrderListType->SensorPosition.arrayLen ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ if(errn == 0) {
+ /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
+ errn = encodeNBitUnsignedInteger(stream, 1, 0);
+ if(errn == 0) {
+ errn = encodeNBitUnsignedInteger(stream, 8, (uint32_t)(iso2SensorOrderListType->SensorPosition.array[iso2SensorOrderListType_SensorPosition_currArrayIndex++] - 0));
+ /* valid EE */
+ errn = encodeNBitUnsignedInteger(stream, 1, 0);
+ }
+ }
+ grammarID = 722;
+ } else if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 722:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorPosition), END_ELEMENT] */
+ if (iso2SensorOrderListType_SensorPosition_currArrayIndex < iso2SensorOrderListType->SensorPosition.arrayLen ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ if(errn == 0) {
+ /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
+ errn = encodeNBitUnsignedInteger(stream, 1, 0);
+ if(errn == 0) {
+ errn = encodeNBitUnsignedInteger(stream, 8, (uint32_t)(iso2SensorOrderListType->SensorPosition.array[iso2SensorOrderListType_SensorPosition_currArrayIndex++] - 0));
+ /* valid EE */
+ errn = encodeNBitUnsignedInteger(stream, 1, 0);
+ }
+ }
+ grammarID = 723;
+ } else if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 723:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorPosition), END_ELEMENT] */
+ if (iso2SensorOrderListType_SensorPosition_currArrayIndex < iso2SensorOrderListType->SensorPosition.arrayLen ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ if(errn == 0) {
+ /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
+ errn = encodeNBitUnsignedInteger(stream, 1, 0);
+ if(errn == 0) {
+ errn = encodeNBitUnsignedInteger(stream, 8, (uint32_t)(iso2SensorOrderListType->SensorPosition.array[iso2SensorOrderListType_SensorPosition_currArrayIndex++] - 0));
+ /* valid EE */
+ errn = encodeNBitUnsignedInteger(stream, 1, 0);
+ }
+ }
+ grammarID = 724;
+ } else if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 724:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorPosition), END_ELEMENT] */
+ if (iso2SensorOrderListType_SensorPosition_currArrayIndex < iso2SensorOrderListType->SensorPosition.arrayLen ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ if(errn == 0) {
+ /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
+ errn = encodeNBitUnsignedInteger(stream, 1, 0);
+ if(errn == 0) {
+ errn = encodeNBitUnsignedInteger(stream, 8, (uint32_t)(iso2SensorOrderListType->SensorPosition.array[iso2SensorOrderListType_SensorPosition_currArrayIndex++] - 0));
+ /* valid EE */
+ errn = encodeNBitUnsignedInteger(stream, 1, 0);
+ }
+ }
+ grammarID = 725;
+ } else if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 725:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorPosition), END_ELEMENT] */
+ if (iso2SensorOrderListType_SensorPosition_currArrayIndex < iso2SensorOrderListType->SensorPosition.arrayLen ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ if(errn == 0) {
+ /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
+ errn = encodeNBitUnsignedInteger(stream, 1, 0);
+ if(errn == 0) {
+ errn = encodeNBitUnsignedInteger(stream, 8, (uint32_t)(iso2SensorOrderListType->SensorPosition.array[iso2SensorOrderListType_SensorPosition_currArrayIndex++] - 0));
+ /* valid EE */
+ errn = encodeNBitUnsignedInteger(stream, 1, 0);
+ }
+ }
+ grammarID = 726;
+ } else if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 726:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorPosition), END_ELEMENT] */
+ if (iso2SensorOrderListType_SensorPosition_currArrayIndex < iso2SensorOrderListType->SensorPosition.arrayLen ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ if(errn == 0) {
+ /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
+ errn = encodeNBitUnsignedInteger(stream, 1, 0);
+ if(errn == 0) {
+ errn = encodeNBitUnsignedInteger(stream, 8, (uint32_t)(iso2SensorOrderListType->SensorPosition.array[iso2SensorOrderListType_SensorPosition_currArrayIndex++] - 0));
+ /* valid EE */
+ errn = encodeNBitUnsignedInteger(stream, 1, 0);
+ }
+ }
+ grammarID = 727;
+ } else if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 727:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorPosition), END_ELEMENT] */
+ if (iso2SensorOrderListType_SensorPosition_currArrayIndex < iso2SensorOrderListType->SensorPosition.arrayLen ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ if(errn == 0) {
+ /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
+ errn = encodeNBitUnsignedInteger(stream, 1, 0);
+ if(errn == 0) {
+ errn = encodeNBitUnsignedInteger(stream, 8, (uint32_t)(iso2SensorOrderListType->SensorPosition.array[iso2SensorOrderListType_SensorPosition_currArrayIndex++] - 0));
+ /* valid EE */
+ errn = encodeNBitUnsignedInteger(stream, 1, 0);
+ }
+ }
+ grammarID = 728;
+ } else if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 728:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorPosition), END_ELEMENT] */
+ if (iso2SensorOrderListType_SensorPosition_currArrayIndex < iso2SensorOrderListType->SensorPosition.arrayLen ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ if(errn == 0) {
+ /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
+ errn = encodeNBitUnsignedInteger(stream, 1, 0);
+ if(errn == 0) {
+ errn = encodeNBitUnsignedInteger(stream, 8, (uint32_t)(iso2SensorOrderListType->SensorPosition.array[iso2SensorOrderListType_SensorPosition_currArrayIndex++] - 0));
+ /* valid EE */
+ errn = encodeNBitUnsignedInteger(stream, 1, 0);
+ }
+ }
+ grammarID = 729;
+ } else if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 729:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorPosition), END_ELEMENT] */
+ if (iso2SensorOrderListType_SensorPosition_currArrayIndex < iso2SensorOrderListType->SensorPosition.arrayLen ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ if(errn == 0) {
+ /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
+ errn = encodeNBitUnsignedInteger(stream, 1, 0);
+ if(errn == 0) {
+ errn = encodeNBitUnsignedInteger(stream, 8, (uint32_t)(iso2SensorOrderListType->SensorPosition.array[iso2SensorOrderListType_SensorPosition_currArrayIndex++] - 0));
+ /* valid EE */
+ errn = encodeNBitUnsignedInteger(stream, 1, 0);
+ }
+ }
+ grammarID = 730;
+ } else if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 730:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorPosition), END_ELEMENT] */
+ if (iso2SensorOrderListType_SensorPosition_currArrayIndex < iso2SensorOrderListType->SensorPosition.arrayLen ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ if(errn == 0) {
+ /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
+ errn = encodeNBitUnsignedInteger(stream, 1, 0);
+ if(errn == 0) {
+ errn = encodeNBitUnsignedInteger(stream, 8, (uint32_t)(iso2SensorOrderListType->SensorPosition.array[iso2SensorOrderListType_SensorPosition_currArrayIndex++] - 0));
+ /* valid EE */
+ errn = encodeNBitUnsignedInteger(stream, 1, 0);
+ }
+ }
+ grammarID = 731;
+ } else if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 731:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorPosition), END_ELEMENT] */
+ if (iso2SensorOrderListType_SensorPosition_currArrayIndex < iso2SensorOrderListType->SensorPosition.arrayLen ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ if(errn == 0) {
+ /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
+ errn = encodeNBitUnsignedInteger(stream, 1, 0);
+ if(errn == 0) {
+ errn = encodeNBitUnsignedInteger(stream, 8, (uint32_t)(iso2SensorOrderListType->SensorPosition.array[iso2SensorOrderListType_SensorPosition_currArrayIndex++] - 0));
+ /* valid EE */
+ errn = encodeNBitUnsignedInteger(stream, 1, 0);
+ }
+ }
+ grammarID = 732;
+ } else if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 732:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorPosition), END_ELEMENT] */
+ if (iso2SensorOrderListType_SensorPosition_currArrayIndex < iso2SensorOrderListType->SensorPosition.arrayLen ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ if(errn == 0) {
+ /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
+ errn = encodeNBitUnsignedInteger(stream, 1, 0);
+ if(errn == 0) {
+ errn = encodeNBitUnsignedInteger(stream, 8, (uint32_t)(iso2SensorOrderListType->SensorPosition.array[iso2SensorOrderListType_SensorPosition_currArrayIndex++] - 0));
+ /* valid EE */
+ errn = encodeNBitUnsignedInteger(stream, 1, 0);
+ }
+ }
+ grammarID = 733;
+ } else if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 733:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorPosition), END_ELEMENT] */
+ if (iso2SensorOrderListType_SensorPosition_currArrayIndex < iso2SensorOrderListType->SensorPosition.arrayLen ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ if(errn == 0) {
+ /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
+ errn = encodeNBitUnsignedInteger(stream, 1, 0);
+ if(errn == 0) {
+ errn = encodeNBitUnsignedInteger(stream, 8, (uint32_t)(iso2SensorOrderListType->SensorPosition.array[iso2SensorOrderListType_SensorPosition_currArrayIndex++] - 0));
+ /* valid EE */
+ errn = encodeNBitUnsignedInteger(stream, 1, 0);
+ }
+ }
+ grammarID = 734;
+ } else if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 734:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorPosition), END_ELEMENT] */
+ if (iso2SensorOrderListType_SensorPosition_currArrayIndex < iso2SensorOrderListType->SensorPosition.arrayLen ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ if(errn == 0) {
+ /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
+ errn = encodeNBitUnsignedInteger(stream, 1, 0);
+ if(errn == 0) {
+ errn = encodeNBitUnsignedInteger(stream, 8, (uint32_t)(iso2SensorOrderListType->SensorPosition.array[iso2SensorOrderListType_SensorPosition_currArrayIndex++] - 0));
+ /* valid EE */
+ errn = encodeNBitUnsignedInteger(stream, 1, 0);
+ }
+ }
+ grammarID = 735;
+ } else if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 735:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorPosition), END_ELEMENT] */
+ if (iso2SensorOrderListType_SensorPosition_currArrayIndex < iso2SensorOrderListType->SensorPosition.arrayLen ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ if(errn == 0) {
+ /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
+ errn = encodeNBitUnsignedInteger(stream, 1, 0);
+ if(errn == 0) {
+ errn = encodeNBitUnsignedInteger(stream, 8, (uint32_t)(iso2SensorOrderListType->SensorPosition.array[iso2SensorOrderListType_SensorPosition_currArrayIndex++] - 0));
+ /* valid EE */
+ errn = encodeNBitUnsignedInteger(stream, 1, 0);
+ }
+ }
+ grammarID = 736;
+ } else if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 736:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorPosition), END_ELEMENT] */
+ if (iso2SensorOrderListType_SensorPosition_currArrayIndex < iso2SensorOrderListType->SensorPosition.arrayLen ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ if(errn == 0) {
+ /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
+ errn = encodeNBitUnsignedInteger(stream, 1, 0);
+ if(errn == 0) {
+ errn = encodeNBitUnsignedInteger(stream, 8, (uint32_t)(iso2SensorOrderListType->SensorPosition.array[iso2SensorOrderListType_SensorPosition_currArrayIndex++] - 0));
+ /* valid EE */
+ errn = encodeNBitUnsignedInteger(stream, 1, 0);
+ }
+ }
+ grammarID = 737;
+ } else if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 737:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorPosition), END_ELEMENT] */
+ if (iso2SensorOrderListType_SensorPosition_currArrayIndex < iso2SensorOrderListType->SensorPosition.arrayLen ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ if(errn == 0) {
+ /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
+ errn = encodeNBitUnsignedInteger(stream, 1, 0);
+ if(errn == 0) {
+ errn = encodeNBitUnsignedInteger(stream, 8, (uint32_t)(iso2SensorOrderListType->SensorPosition.array[iso2SensorOrderListType_SensorPosition_currArrayIndex++] - 0));
+ /* valid EE */
+ errn = encodeNBitUnsignedInteger(stream, 1, 0);
+ }
+ }
+ grammarID = 738;
+ } else if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 738:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorPosition), END_ELEMENT] */
+ if (iso2SensorOrderListType_SensorPosition_currArrayIndex < iso2SensorOrderListType->SensorPosition.arrayLen ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ if(errn == 0) {
+ /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
+ errn = encodeNBitUnsignedInteger(stream, 1, 0);
+ if(errn == 0) {
+ errn = encodeNBitUnsignedInteger(stream, 8, (uint32_t)(iso2SensorOrderListType->SensorPosition.array[iso2SensorOrderListType_SensorPosition_currArrayIndex++] - 0));
+ /* valid EE */
+ errn = encodeNBitUnsignedInteger(stream, 1, 0);
+ }
+ }
+ grammarID = 739;
+ } else if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 739:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorPosition), END_ELEMENT] */
+ if (iso2SensorOrderListType_SensorPosition_currArrayIndex < iso2SensorOrderListType->SensorPosition.arrayLen ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ if(errn == 0) {
+ /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
+ errn = encodeNBitUnsignedInteger(stream, 1, 0);
+ if(errn == 0) {
+ errn = encodeNBitUnsignedInteger(stream, 8, (uint32_t)(iso2SensorOrderListType->SensorPosition.array[iso2SensorOrderListType_SensorPosition_currArrayIndex++] - 0));
+ /* valid EE */
+ errn = encodeNBitUnsignedInteger(stream, 1, 0);
+ }
+ }
+ grammarID = 740;
+ } else if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 740:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorPosition), END_ELEMENT] */
+ if (iso2SensorOrderListType_SensorPosition_currArrayIndex < iso2SensorOrderListType->SensorPosition.arrayLen ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ if(errn == 0) {
+ /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
+ errn = encodeNBitUnsignedInteger(stream, 1, 0);
+ if(errn == 0) {
+ errn = encodeNBitUnsignedInteger(stream, 8, (uint32_t)(iso2SensorOrderListType->SensorPosition.array[iso2SensorOrderListType_SensorPosition_currArrayIndex++] - 0));
+ /* valid EE */
+ errn = encodeNBitUnsignedInteger(stream, 1, 0);
+ }
+ }
+ grammarID = 741;
+ } else if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 741:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorPosition), END_ELEMENT] */
+ if (iso2SensorOrderListType_SensorPosition_currArrayIndex < iso2SensorOrderListType->SensorPosition.arrayLen ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ if(errn == 0) {
+ /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
+ errn = encodeNBitUnsignedInteger(stream, 1, 0);
+ if(errn == 0) {
+ errn = encodeNBitUnsignedInteger(stream, 8, (uint32_t)(iso2SensorOrderListType->SensorPosition.array[iso2SensorOrderListType_SensorPosition_currArrayIndex++] - 0));
+ /* valid EE */
+ errn = encodeNBitUnsignedInteger(stream, 1, 0);
+ }
+ }
+ grammarID = 742;
+ } else if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 742:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorPosition), END_ELEMENT] */
+ if (iso2SensorOrderListType_SensorPosition_currArrayIndex < iso2SensorOrderListType->SensorPosition.arrayLen ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ if(errn == 0) {
+ /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
+ errn = encodeNBitUnsignedInteger(stream, 1, 0);
+ if(errn == 0) {
+ errn = encodeNBitUnsignedInteger(stream, 8, (uint32_t)(iso2SensorOrderListType->SensorPosition.array[iso2SensorOrderListType_SensorPosition_currArrayIndex++] - 0));
+ /* valid EE */
+ errn = encodeNBitUnsignedInteger(stream, 1, 0);
+ }
+ }
+ grammarID = 743;
+ } else if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 743:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorPosition), END_ELEMENT] */
+ if (iso2SensorOrderListType_SensorPosition_currArrayIndex < iso2SensorOrderListType->SensorPosition.arrayLen ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ if(errn == 0) {
+ /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
+ errn = encodeNBitUnsignedInteger(stream, 1, 0);
+ if(errn == 0) {
+ errn = encodeNBitUnsignedInteger(stream, 8, (uint32_t)(iso2SensorOrderListType->SensorPosition.array[iso2SensorOrderListType_SensorPosition_currArrayIndex++] - 0));
+ /* valid EE */
+ errn = encodeNBitUnsignedInteger(stream, 1, 0);
+ }
+ }
+ grammarID = 744;
+ } else if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 744:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorPosition), END_ELEMENT] */
+ if (iso2SensorOrderListType_SensorPosition_currArrayIndex < iso2SensorOrderListType->SensorPosition.arrayLen ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ if(errn == 0) {
+ /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
+ errn = encodeNBitUnsignedInteger(stream, 1, 0);
+ if(errn == 0) {
+ errn = encodeNBitUnsignedInteger(stream, 8, (uint32_t)(iso2SensorOrderListType->SensorPosition.array[iso2SensorOrderListType_SensorPosition_currArrayIndex++] - 0));
+ /* valid EE */
+ errn = encodeNBitUnsignedInteger(stream, 1, 0);
+ }
+ }
+ grammarID = 745;
+ } else if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 745:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorPosition), END_ELEMENT] */
+ if (iso2SensorOrderListType_SensorPosition_currArrayIndex < iso2SensorOrderListType->SensorPosition.arrayLen ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ if(errn == 0) {
+ /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
+ errn = encodeNBitUnsignedInteger(stream, 1, 0);
+ if(errn == 0) {
+ errn = encodeNBitUnsignedInteger(stream, 8, (uint32_t)(iso2SensorOrderListType->SensorPosition.array[iso2SensorOrderListType_SensorPosition_currArrayIndex++] - 0));
+ /* valid EE */
+ errn = encodeNBitUnsignedInteger(stream, 1, 0);
+ }
+ }
+ grammarID = 746;
+ } else if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 746:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorPosition), END_ELEMENT] */
+ if (iso2SensorOrderListType_SensorPosition_currArrayIndex < iso2SensorOrderListType->SensorPosition.arrayLen ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ if(errn == 0) {
+ /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
+ errn = encodeNBitUnsignedInteger(stream, 1, 0);
+ if(errn == 0) {
+ errn = encodeNBitUnsignedInteger(stream, 8, (uint32_t)(iso2SensorOrderListType->SensorPosition.array[iso2SensorOrderListType_SensorPosition_currArrayIndex++] - 0));
+ /* valid EE */
+ errn = encodeNBitUnsignedInteger(stream, 1, 0);
+ }
+ }
+ grammarID = 747;
+ } else if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 747:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorPosition), END_ELEMENT] */
+ if (iso2SensorOrderListType_SensorPosition_currArrayIndex < iso2SensorOrderListType->SensorPosition.arrayLen ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ if(errn == 0) {
+ /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
+ errn = encodeNBitUnsignedInteger(stream, 1, 0);
+ if(errn == 0) {
+ errn = encodeNBitUnsignedInteger(stream, 8, (uint32_t)(iso2SensorOrderListType->SensorPosition.array[iso2SensorOrderListType_SensorPosition_currArrayIndex++] - 0));
+ /* valid EE */
+ errn = encodeNBitUnsignedInteger(stream, 1, 0);
+ }
+ }
+ grammarID = 748;
+ } else if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 748:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorPosition), END_ELEMENT] */
+ if (iso2SensorOrderListType_SensorPosition_currArrayIndex < iso2SensorOrderListType->SensorPosition.arrayLen ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ if(errn == 0) {
+ /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
+ errn = encodeNBitUnsignedInteger(stream, 1, 0);
+ if(errn == 0) {
+ errn = encodeNBitUnsignedInteger(stream, 8, (uint32_t)(iso2SensorOrderListType->SensorPosition.array[iso2SensorOrderListType_SensorPosition_currArrayIndex++] - 0));
+ /* valid EE */
+ errn = encodeNBitUnsignedInteger(stream, 1, 0);
+ }
+ }
+ grammarID = 749;
+ } else if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 749:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorPosition), END_ELEMENT] */
+ if (iso2SensorOrderListType_SensorPosition_currArrayIndex < iso2SensorOrderListType->SensorPosition.arrayLen ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ if(errn == 0) {
+ /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
+ errn = encodeNBitUnsignedInteger(stream, 1, 0);
+ if(errn == 0) {
+ errn = encodeNBitUnsignedInteger(stream, 8, (uint32_t)(iso2SensorOrderListType->SensorPosition.array[iso2SensorOrderListType_SensorPosition_currArrayIndex++] - 0));
+ /* valid EE */
+ errn = encodeNBitUnsignedInteger(stream, 1, 0);
+ }
+ }
+ grammarID = 750;
+ } else if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 750:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorPosition), END_ELEMENT] */
+ if (iso2SensorOrderListType_SensorPosition_currArrayIndex < iso2SensorOrderListType->SensorPosition.arrayLen ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ if(errn == 0) {
+ /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
+ errn = encodeNBitUnsignedInteger(stream, 1, 0);
+ if(errn == 0) {
+ errn = encodeNBitUnsignedInteger(stream, 8, (uint32_t)(iso2SensorOrderListType->SensorPosition.array[iso2SensorOrderListType_SensorPosition_currArrayIndex++] - 0));
+ /* valid EE */
+ errn = encodeNBitUnsignedInteger(stream, 1, 0);
+ }
+ }
+ grammarID = 751;
+ } else if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 751:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorPosition), END_ELEMENT] */
+ if (iso2SensorOrderListType_SensorPosition_currArrayIndex < iso2SensorOrderListType->SensorPosition.arrayLen ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ if(errn == 0) {
+ /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
+ errn = encodeNBitUnsignedInteger(stream, 1, 0);
+ if(errn == 0) {
+ errn = encodeNBitUnsignedInteger(stream, 8, (uint32_t)(iso2SensorOrderListType->SensorPosition.array[iso2SensorOrderListType_SensorPosition_currArrayIndex++] - 0));
+ /* valid EE */
+ errn = encodeNBitUnsignedInteger(stream, 1, 0);
+ }
+ }
+ grammarID = 752;
+ } else if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 752:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorPosition), END_ELEMENT] */
+ if (iso2SensorOrderListType_SensorPosition_currArrayIndex < iso2SensorOrderListType->SensorPosition.arrayLen ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ if(errn == 0) {
+ /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
+ errn = encodeNBitUnsignedInteger(stream, 1, 0);
+ if(errn == 0) {
+ errn = encodeNBitUnsignedInteger(stream, 8, (uint32_t)(iso2SensorOrderListType->SensorPosition.array[iso2SensorOrderListType_SensorPosition_currArrayIndex++] - 0));
+ /* valid EE */
+ errn = encodeNBitUnsignedInteger(stream, 1, 0);
+ }
+ }
+ grammarID = 753;
+ } else if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 753:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorPosition), END_ELEMENT] */
+ if (iso2SensorOrderListType_SensorPosition_currArrayIndex < iso2SensorOrderListType->SensorPosition.arrayLen ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ if(errn == 0) {
+ /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
+ errn = encodeNBitUnsignedInteger(stream, 1, 0);
+ if(errn == 0) {
+ errn = encodeNBitUnsignedInteger(stream, 8, (uint32_t)(iso2SensorOrderListType->SensorPosition.array[iso2SensorOrderListType_SensorPosition_currArrayIndex++] - 0));
+ /* valid EE */
+ errn = encodeNBitUnsignedInteger(stream, 1, 0);
+ }
+ }
+ grammarID = 754;
+ } else if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 754:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorPosition), END_ELEMENT] */
+ if (iso2SensorOrderListType_SensorPosition_currArrayIndex < iso2SensorOrderListType->SensorPosition.arrayLen ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ if(errn == 0) {
+ /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
+ errn = encodeNBitUnsignedInteger(stream, 1, 0);
+ if(errn == 0) {
+ errn = encodeNBitUnsignedInteger(stream, 8, (uint32_t)(iso2SensorOrderListType->SensorPosition.array[iso2SensorOrderListType_SensorPosition_currArrayIndex++] - 0));
+ /* valid EE */
+ errn = encodeNBitUnsignedInteger(stream, 1, 0);
+ }
+ }
+ grammarID = 755;
+ } else if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 755:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorPosition), END_ELEMENT] */
+ if (iso2SensorOrderListType_SensorPosition_currArrayIndex < iso2SensorOrderListType->SensorPosition.arrayLen ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ if(errn == 0) {
+ /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
+ errn = encodeNBitUnsignedInteger(stream, 1, 0);
+ if(errn == 0) {
+ errn = encodeNBitUnsignedInteger(stream, 8, (uint32_t)(iso2SensorOrderListType->SensorPosition.array[iso2SensorOrderListType_SensorPosition_currArrayIndex++] - 0));
+ /* valid EE */
+ errn = encodeNBitUnsignedInteger(stream, 1, 0);
+ }
+ }
+ grammarID = 756;
+ } else if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 756:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorPosition), END_ELEMENT] */
+ if (iso2SensorOrderListType_SensorPosition_currArrayIndex < iso2SensorOrderListType->SensorPosition.arrayLen ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ if(errn == 0) {
+ /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
+ errn = encodeNBitUnsignedInteger(stream, 1, 0);
+ if(errn == 0) {
+ errn = encodeNBitUnsignedInteger(stream, 8, (uint32_t)(iso2SensorOrderListType->SensorPosition.array[iso2SensorOrderListType_SensorPosition_currArrayIndex++] - 0));
+ /* valid EE */
+ errn = encodeNBitUnsignedInteger(stream, 1, 0);
+ }
+ }
+ grammarID = 757;
+ } else if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 757:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorPosition), END_ELEMENT] */
+ if (iso2SensorOrderListType_SensorPosition_currArrayIndex < iso2SensorOrderListType->SensorPosition.arrayLen ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ if(errn == 0) {
+ /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
+ errn = encodeNBitUnsignedInteger(stream, 1, 0);
+ if(errn == 0) {
+ errn = encodeNBitUnsignedInteger(stream, 8, (uint32_t)(iso2SensorOrderListType->SensorPosition.array[iso2SensorOrderListType_SensorPosition_currArrayIndex++] - 0));
+ /* valid EE */
+ errn = encodeNBitUnsignedInteger(stream, 1, 0);
+ }
+ }
+ grammarID = 758;
+ } else if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 758:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorPosition), END_ELEMENT] */
+ if (iso2SensorOrderListType_SensorPosition_currArrayIndex < iso2SensorOrderListType->SensorPosition.arrayLen ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ if(errn == 0) {
+ /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
+ errn = encodeNBitUnsignedInteger(stream, 1, 0);
+ if(errn == 0) {
+ errn = encodeNBitUnsignedInteger(stream, 8, (uint32_t)(iso2SensorOrderListType->SensorPosition.array[iso2SensorOrderListType_SensorPosition_currArrayIndex++] - 0));
+ /* valid EE */
+ errn = encodeNBitUnsignedInteger(stream, 1, 0);
+ }
+ }
+ grammarID = 759;
+ } else if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 759:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorPosition), END_ELEMENT] */
+ if (iso2SensorOrderListType_SensorPosition_currArrayIndex < iso2SensorOrderListType->SensorPosition.arrayLen ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ if(errn == 0) {
+ /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
+ errn = encodeNBitUnsignedInteger(stream, 1, 0);
+ if(errn == 0) {
+ errn = encodeNBitUnsignedInteger(stream, 8, (uint32_t)(iso2SensorOrderListType->SensorPosition.array[iso2SensorOrderListType_SensorPosition_currArrayIndex++] - 0));
+ /* valid EE */
+ errn = encodeNBitUnsignedInteger(stream, 1, 0);
+ }
+ }
+ grammarID = 760;
+ } else if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 760:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorPosition), END_ELEMENT] */
+ if (iso2SensorOrderListType_SensorPosition_currArrayIndex < iso2SensorOrderListType->SensorPosition.arrayLen ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ if(errn == 0) {
+ /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
+ errn = encodeNBitUnsignedInteger(stream, 1, 0);
+ if(errn == 0) {
+ errn = encodeNBitUnsignedInteger(stream, 8, (uint32_t)(iso2SensorOrderListType->SensorPosition.array[iso2SensorOrderListType_SensorPosition_currArrayIndex++] - 0));
+ /* valid EE */
+ errn = encodeNBitUnsignedInteger(stream, 1, 0);
+ }
+ }
+ grammarID = 761;
+ } else if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 761:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorPosition), END_ELEMENT] */
+ if (iso2SensorOrderListType_SensorPosition_currArrayIndex < iso2SensorOrderListType->SensorPosition.arrayLen ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ if(errn == 0) {
+ /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
+ errn = encodeNBitUnsignedInteger(stream, 1, 0);
+ if(errn == 0) {
+ errn = encodeNBitUnsignedInteger(stream, 8, (uint32_t)(iso2SensorOrderListType->SensorPosition.array[iso2SensorOrderListType_SensorPosition_currArrayIndex++] - 0));
+ /* valid EE */
+ errn = encodeNBitUnsignedInteger(stream, 1, 0);
+ }
+ }
+ grammarID = 762;
+ } else if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 762:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorPosition), END_ELEMENT] */
+ if (iso2SensorOrderListType_SensorPosition_currArrayIndex < iso2SensorOrderListType->SensorPosition.arrayLen ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ if(errn == 0) {
+ /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
+ errn = encodeNBitUnsignedInteger(stream, 1, 0);
+ if(errn == 0) {
+ errn = encodeNBitUnsignedInteger(stream, 8, (uint32_t)(iso2SensorOrderListType->SensorPosition.array[iso2SensorOrderListType_SensorPosition_currArrayIndex++] - 0));
+ /* valid EE */
+ errn = encodeNBitUnsignedInteger(stream, 1, 0);
+ }
+ }
+ grammarID = 763;
+ } else if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 763:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorPosition), END_ELEMENT] */
+ if (iso2SensorOrderListType_SensorPosition_currArrayIndex < iso2SensorOrderListType->SensorPosition.arrayLen ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ if(errn == 0) {
+ /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
+ errn = encodeNBitUnsignedInteger(stream, 1, 0);
+ if(errn == 0) {
+ errn = encodeNBitUnsignedInteger(stream, 8, (uint32_t)(iso2SensorOrderListType->SensorPosition.array[iso2SensorOrderListType_SensorPosition_currArrayIndex++] - 0));
+ /* valid EE */
+ errn = encodeNBitUnsignedInteger(stream, 1, 0);
+ }
+ }
+ grammarID = 764;
+ } else if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 764:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorPosition), END_ELEMENT] */
+ if (iso2SensorOrderListType_SensorPosition_currArrayIndex < iso2SensorOrderListType->SensorPosition.arrayLen ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ if(errn == 0) {
+ /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
+ errn = encodeNBitUnsignedInteger(stream, 1, 0);
+ if(errn == 0) {
+ errn = encodeNBitUnsignedInteger(stream, 8, (uint32_t)(iso2SensorOrderListType->SensorPosition.array[iso2SensorOrderListType_SensorPosition_currArrayIndex++] - 0));
+ /* valid EE */
+ errn = encodeNBitUnsignedInteger(stream, 1, 0);
+ }
+ }
+ grammarID = 765;
+ } else if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 765:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorPosition), END_ELEMENT] */
+ if (iso2SensorOrderListType_SensorPosition_currArrayIndex < iso2SensorOrderListType->SensorPosition.arrayLen ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ if(errn == 0) {
+ /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
+ errn = encodeNBitUnsignedInteger(stream, 1, 0);
+ if(errn == 0) {
+ errn = encodeNBitUnsignedInteger(stream, 8, (uint32_t)(iso2SensorOrderListType->SensorPosition.array[iso2SensorOrderListType_SensorPosition_currArrayIndex++] - 0));
+ /* valid EE */
+ errn = encodeNBitUnsignedInteger(stream, 1, 0);
+ }
+ }
+ grammarID = 766;
+ } else if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 766:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorPosition), END_ELEMENT] */
+ if (iso2SensorOrderListType_SensorPosition_currArrayIndex < iso2SensorOrderListType->SensorPosition.arrayLen ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ if(errn == 0) {
+ /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
+ errn = encodeNBitUnsignedInteger(stream, 1, 0);
+ if(errn == 0) {
+ errn = encodeNBitUnsignedInteger(stream, 8, (uint32_t)(iso2SensorOrderListType->SensorPosition.array[iso2SensorOrderListType_SensorPosition_currArrayIndex++] - 0));
+ /* valid EE */
+ errn = encodeNBitUnsignedInteger(stream, 1, 0);
+ }
+ }
+ grammarID = 767;
+ } else if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 767:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorPosition), END_ELEMENT] */
+ if (iso2SensorOrderListType_SensorPosition_currArrayIndex < iso2SensorOrderListType->SensorPosition.arrayLen ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ if(errn == 0) {
+ /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
+ errn = encodeNBitUnsignedInteger(stream, 1, 0);
+ if(errn == 0) {
+ errn = encodeNBitUnsignedInteger(stream, 8, (uint32_t)(iso2SensorOrderListType->SensorPosition.array[iso2SensorOrderListType_SensorPosition_currArrayIndex++] - 0));
+ /* valid EE */
+ errn = encodeNBitUnsignedInteger(stream, 1, 0);
+ }
+ }
+ grammarID = 768;
+ } else if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 768:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorPosition), END_ELEMENT] */
+ if (iso2SensorOrderListType_SensorPosition_currArrayIndex < iso2SensorOrderListType->SensorPosition.arrayLen ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ if(errn == 0) {
+ /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
+ errn = encodeNBitUnsignedInteger(stream, 1, 0);
+ if(errn == 0) {
+ errn = encodeNBitUnsignedInteger(stream, 8, (uint32_t)(iso2SensorOrderListType->SensorPosition.array[iso2SensorOrderListType_SensorPosition_currArrayIndex++] - 0));
+ /* valid EE */
+ errn = encodeNBitUnsignedInteger(stream, 1, 0);
+ }
+ }
+ grammarID = 769;
+ } else if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 769:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorPosition), END_ELEMENT] */
+ if (iso2SensorOrderListType_SensorPosition_currArrayIndex < iso2SensorOrderListType->SensorPosition.arrayLen ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ if(errn == 0) {
+ /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
+ errn = encodeNBitUnsignedInteger(stream, 1, 0);
+ if(errn == 0) {
+ errn = encodeNBitUnsignedInteger(stream, 8, (uint32_t)(iso2SensorOrderListType->SensorPosition.array[iso2SensorOrderListType_SensorPosition_currArrayIndex++] - 0));
+ /* valid EE */
+ errn = encodeNBitUnsignedInteger(stream, 1, 0);
+ }
+ }
+ grammarID = 770;
+ } else if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 770:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorPosition), END_ELEMENT] */
+ if (iso2SensorOrderListType_SensorPosition_currArrayIndex < iso2SensorOrderListType->SensorPosition.arrayLen ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ if(errn == 0) {
+ /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
+ errn = encodeNBitUnsignedInteger(stream, 1, 0);
+ if(errn == 0) {
+ errn = encodeNBitUnsignedInteger(stream, 8, (uint32_t)(iso2SensorOrderListType->SensorPosition.array[iso2SensorOrderListType_SensorPosition_currArrayIndex++] - 0));
+ /* valid EE */
+ errn = encodeNBitUnsignedInteger(stream, 1, 0);
+ }
+ }
+ grammarID = 771;
+ } else if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 771:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorPosition), END_ELEMENT] */
+ if (iso2SensorOrderListType_SensorPosition_currArrayIndex < iso2SensorOrderListType->SensorPosition.arrayLen ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ if(errn == 0) {
+ /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
+ errn = encodeNBitUnsignedInteger(stream, 1, 0);
+ if(errn == 0) {
+ errn = encodeNBitUnsignedInteger(stream, 8, (uint32_t)(iso2SensorOrderListType->SensorPosition.array[iso2SensorOrderListType_SensorPosition_currArrayIndex++] - 0));
+ /* valid EE */
+ errn = encodeNBitUnsignedInteger(stream, 1, 0);
+ }
+ }
+ grammarID = 772;
+ } else if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 772:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorPosition), END_ELEMENT] */
+ if (iso2SensorOrderListType_SensorPosition_currArrayIndex < iso2SensorOrderListType->SensorPosition.arrayLen ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ if(errn == 0) {
+ /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
+ errn = encodeNBitUnsignedInteger(stream, 1, 0);
+ if(errn == 0) {
+ errn = encodeNBitUnsignedInteger(stream, 8, (uint32_t)(iso2SensorOrderListType->SensorPosition.array[iso2SensorOrderListType_SensorPosition_currArrayIndex++] - 0));
+ /* valid EE */
+ errn = encodeNBitUnsignedInteger(stream, 1, 0);
+ }
+ }
+ grammarID = 773;
+ } else if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 773:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorPosition), END_ELEMENT] */
+ if (iso2SensorOrderListType_SensorPosition_currArrayIndex < iso2SensorOrderListType->SensorPosition.arrayLen ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ if(errn == 0) {
+ /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
+ errn = encodeNBitUnsignedInteger(stream, 1, 0);
+ if(errn == 0) {
+ errn = encodeNBitUnsignedInteger(stream, 8, (uint32_t)(iso2SensorOrderListType->SensorPosition.array[iso2SensorOrderListType_SensorPosition_currArrayIndex++] - 0));
+ /* valid EE */
+ errn = encodeNBitUnsignedInteger(stream, 1, 0);
+ }
+ }
+ grammarID = 774;
+ } else if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 774:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorPosition), END_ELEMENT] */
+ if (iso2SensorOrderListType_SensorPosition_currArrayIndex < iso2SensorOrderListType->SensorPosition.arrayLen ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ if(errn == 0) {
+ /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
+ errn = encodeNBitUnsignedInteger(stream, 1, 0);
+ if(errn == 0) {
+ errn = encodeNBitUnsignedInteger(stream, 8, (uint32_t)(iso2SensorOrderListType->SensorPosition.array[iso2SensorOrderListType_SensorPosition_currArrayIndex++] - 0));
+ /* valid EE */
+ errn = encodeNBitUnsignedInteger(stream, 1, 0);
+ }
+ }
+ grammarID = 775;
+ } else if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 775:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorPosition), END_ELEMENT] */
+ if (iso2SensorOrderListType_SensorPosition_currArrayIndex < iso2SensorOrderListType->SensorPosition.arrayLen ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ if(errn == 0) {
+ /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
+ errn = encodeNBitUnsignedInteger(stream, 1, 0);
+ if(errn == 0) {
+ errn = encodeNBitUnsignedInteger(stream, 8, (uint32_t)(iso2SensorOrderListType->SensorPosition.array[iso2SensorOrderListType_SensorPosition_currArrayIndex++] - 0));
+ /* valid EE */
+ errn = encodeNBitUnsignedInteger(stream, 1, 0);
+ }
+ }
+ grammarID = 776;
+ } else if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 776:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorPosition), END_ELEMENT] */
+ if (iso2SensorOrderListType_SensorPosition_currArrayIndex < iso2SensorOrderListType->SensorPosition.arrayLen ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ if(errn == 0) {
+ /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
+ errn = encodeNBitUnsignedInteger(stream, 1, 0);
+ if(errn == 0) {
+ errn = encodeNBitUnsignedInteger(stream, 8, (uint32_t)(iso2SensorOrderListType->SensorPosition.array[iso2SensorOrderListType_SensorPosition_currArrayIndex++] - 0));
+ /* valid EE */
+ errn = encodeNBitUnsignedInteger(stream, 1, 0);
+ }
+ }
+ grammarID = 777;
+ } else if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 777:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorPosition), END_ELEMENT] */
+ if (iso2SensorOrderListType_SensorPosition_currArrayIndex < iso2SensorOrderListType->SensorPosition.arrayLen ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ if(errn == 0) {
+ /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
+ errn = encodeNBitUnsignedInteger(stream, 1, 0);
+ if(errn == 0) {
+ errn = encodeNBitUnsignedInteger(stream, 8, (uint32_t)(iso2SensorOrderListType->SensorPosition.array[iso2SensorOrderListType_SensorPosition_currArrayIndex++] - 0));
+ /* valid EE */
+ errn = encodeNBitUnsignedInteger(stream, 1, 0);
+ }
+ }
+ grammarID = 778;
+ } else if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 778:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorPosition), END_ELEMENT] */
+ if (iso2SensorOrderListType_SensorPosition_currArrayIndex < iso2SensorOrderListType->SensorPosition.arrayLen ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ if(errn == 0) {
+ /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
+ errn = encodeNBitUnsignedInteger(stream, 1, 0);
+ if(errn == 0) {
+ errn = encodeNBitUnsignedInteger(stream, 8, (uint32_t)(iso2SensorOrderListType->SensorPosition.array[iso2SensorOrderListType_SensorPosition_currArrayIndex++] - 0));
+ /* valid EE */
+ errn = encodeNBitUnsignedInteger(stream, 1, 0);
+ }
+ }
+ grammarID = 779;
+ } else if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 779:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorPosition), END_ELEMENT] */
+ if (iso2SensorOrderListType_SensorPosition_currArrayIndex < iso2SensorOrderListType->SensorPosition.arrayLen ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ if(errn == 0) {
+ /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
+ errn = encodeNBitUnsignedInteger(stream, 1, 0);
+ if(errn == 0) {
+ errn = encodeNBitUnsignedInteger(stream, 8, (uint32_t)(iso2SensorOrderListType->SensorPosition.array[iso2SensorOrderListType_SensorPosition_currArrayIndex++] - 0));
+ /* valid EE */
+ errn = encodeNBitUnsignedInteger(stream, 1, 0);
+ }
+ }
+ grammarID = 780;
+ } else if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 780:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorPosition), END_ELEMENT] */
+ if (iso2SensorOrderListType_SensorPosition_currArrayIndex < iso2SensorOrderListType->SensorPosition.arrayLen ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ if(errn == 0) {
+ /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
+ errn = encodeNBitUnsignedInteger(stream, 1, 0);
+ if(errn == 0) {
+ errn = encodeNBitUnsignedInteger(stream, 8, (uint32_t)(iso2SensorOrderListType->SensorPosition.array[iso2SensorOrderListType_SensorPosition_currArrayIndex++] - 0));
+ /* valid EE */
+ errn = encodeNBitUnsignedInteger(stream, 1, 0);
+ }
+ }
+ grammarID = 781;
+ } else if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 781:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorPosition), END_ELEMENT] */
+ if (iso2SensorOrderListType_SensorPosition_currArrayIndex < iso2SensorOrderListType->SensorPosition.arrayLen ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ if(errn == 0) {
+ /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
+ errn = encodeNBitUnsignedInteger(stream, 1, 0);
+ if(errn == 0) {
+ errn = encodeNBitUnsignedInteger(stream, 8, (uint32_t)(iso2SensorOrderListType->SensorPosition.array[iso2SensorOrderListType_SensorPosition_currArrayIndex++] - 0));
+ /* valid EE */
+ errn = encodeNBitUnsignedInteger(stream, 1, 0);
+ }
+ }
+ grammarID = 782;
+ } else if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 782:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorPosition), END_ELEMENT] */
+ if (iso2SensorOrderListType_SensorPosition_currArrayIndex < iso2SensorOrderListType->SensorPosition.arrayLen ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ if(errn == 0) {
+ /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
+ errn = encodeNBitUnsignedInteger(stream, 1, 0);
+ if(errn == 0) {
+ errn = encodeNBitUnsignedInteger(stream, 8, (uint32_t)(iso2SensorOrderListType->SensorPosition.array[iso2SensorOrderListType_SensorPosition_currArrayIndex++] - 0));
+ /* valid EE */
+ errn = encodeNBitUnsignedInteger(stream, 1, 0);
+ }
+ }
+ grammarID = 783;
+ } else if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 783:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorPosition), END_ELEMENT] */
+ if (iso2SensorOrderListType_SensorPosition_currArrayIndex < iso2SensorOrderListType->SensorPosition.arrayLen ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ if(errn == 0) {
+ /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
+ errn = encodeNBitUnsignedInteger(stream, 1, 0);
+ if(errn == 0) {
+ errn = encodeNBitUnsignedInteger(stream, 8, (uint32_t)(iso2SensorOrderListType->SensorPosition.array[iso2SensorOrderListType_SensorPosition_currArrayIndex++] - 0));
+ /* valid EE */
+ errn = encodeNBitUnsignedInteger(stream, 1, 0);
+ }
+ }
+ grammarID = 784;
+ } else if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 784:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorPosition), END_ELEMENT] */
+ if (iso2SensorOrderListType_SensorPosition_currArrayIndex < iso2SensorOrderListType->SensorPosition.arrayLen ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ if(errn == 0) {
+ /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
+ errn = encodeNBitUnsignedInteger(stream, 1, 0);
+ if(errn == 0) {
+ errn = encodeNBitUnsignedInteger(stream, 8, (uint32_t)(iso2SensorOrderListType->SensorPosition.array[iso2SensorOrderListType_SensorPosition_currArrayIndex++] - 0));
+ /* valid EE */
+ errn = encodeNBitUnsignedInteger(stream, 1, 0);
+ }
+ }
+ grammarID = 785;
+ } else if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 785:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorPosition), END_ELEMENT] */
+ if (iso2SensorOrderListType_SensorPosition_currArrayIndex < iso2SensorOrderListType->SensorPosition.arrayLen ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ if(errn == 0) {
+ /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
+ errn = encodeNBitUnsignedInteger(stream, 1, 0);
+ if(errn == 0) {
+ errn = encodeNBitUnsignedInteger(stream, 8, (uint32_t)(iso2SensorOrderListType->SensorPosition.array[iso2SensorOrderListType_SensorPosition_currArrayIndex++] - 0));
+ /* valid EE */
+ errn = encodeNBitUnsignedInteger(stream, 1, 0);
+ }
+ }
+ grammarID = 786;
+ } else if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 786:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorPosition), END_ELEMENT] */
+ if (iso2SensorOrderListType_SensorPosition_currArrayIndex < iso2SensorOrderListType->SensorPosition.arrayLen ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ if(errn == 0) {
+ /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
+ errn = encodeNBitUnsignedInteger(stream, 1, 0);
+ if(errn == 0) {
+ errn = encodeNBitUnsignedInteger(stream, 8, (uint32_t)(iso2SensorOrderListType->SensorPosition.array[iso2SensorOrderListType_SensorPosition_currArrayIndex++] - 0));
+ /* valid EE */
+ errn = encodeNBitUnsignedInteger(stream, 1, 0);
+ }
+ }
+ grammarID = 787;
+ } else if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 787:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorPosition), END_ELEMENT] */
+ if (iso2SensorOrderListType_SensorPosition_currArrayIndex < iso2SensorOrderListType->SensorPosition.arrayLen ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ if(errn == 0) {
+ /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
+ errn = encodeNBitUnsignedInteger(stream, 1, 0);
+ if(errn == 0) {
+ errn = encodeNBitUnsignedInteger(stream, 8, (uint32_t)(iso2SensorOrderListType->SensorPosition.array[iso2SensorOrderListType_SensorPosition_currArrayIndex++] - 0));
+ /* valid EE */
+ errn = encodeNBitUnsignedInteger(stream, 1, 0);
+ }
+ }
+ grammarID = 788;
+ } else if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 788:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorPosition), END_ELEMENT] */
+ if (iso2SensorOrderListType_SensorPosition_currArrayIndex < iso2SensorOrderListType->SensorPosition.arrayLen ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ if(errn == 0) {
+ /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
+ errn = encodeNBitUnsignedInteger(stream, 1, 0);
+ if(errn == 0) {
+ errn = encodeNBitUnsignedInteger(stream, 8, (uint32_t)(iso2SensorOrderListType->SensorPosition.array[iso2SensorOrderListType_SensorPosition_currArrayIndex++] - 0));
+ /* valid EE */
+ errn = encodeNBitUnsignedInteger(stream, 1, 0);
+ }
+ }
+ grammarID = 789;
+ } else if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 789:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorPosition), END_ELEMENT] */
+ if (iso2SensorOrderListType_SensorPosition_currArrayIndex < iso2SensorOrderListType->SensorPosition.arrayLen ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ if(errn == 0) {
+ /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
+ errn = encodeNBitUnsignedInteger(stream, 1, 0);
+ if(errn == 0) {
+ errn = encodeNBitUnsignedInteger(stream, 8, (uint32_t)(iso2SensorOrderListType->SensorPosition.array[iso2SensorOrderListType_SensorPosition_currArrayIndex++] - 0));
+ /* valid EE */
+ errn = encodeNBitUnsignedInteger(stream, 1, 0);
+ }
+ }
+ grammarID = 790;
+ } else if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 790:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorPosition), END_ELEMENT] */
+ if (iso2SensorOrderListType_SensorPosition_currArrayIndex < iso2SensorOrderListType->SensorPosition.arrayLen ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ if(errn == 0) {
+ /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
+ errn = encodeNBitUnsignedInteger(stream, 1, 0);
+ if(errn == 0) {
+ errn = encodeNBitUnsignedInteger(stream, 8, (uint32_t)(iso2SensorOrderListType->SensorPosition.array[iso2SensorOrderListType_SensorPosition_currArrayIndex++] - 0));
+ /* valid EE */
+ errn = encodeNBitUnsignedInteger(stream, 1, 0);
+ }
+ }
+ grammarID = 791;
+ } else if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 791:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorPosition), END_ELEMENT] */
+ if (iso2SensorOrderListType_SensorPosition_currArrayIndex < iso2SensorOrderListType->SensorPosition.arrayLen ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ if(errn == 0) {
+ /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
+ errn = encodeNBitUnsignedInteger(stream, 1, 0);
+ if(errn == 0) {
+ errn = encodeNBitUnsignedInteger(stream, 8, (uint32_t)(iso2SensorOrderListType->SensorPosition.array[iso2SensorOrderListType_SensorPosition_currArrayIndex++] - 0));
+ /* valid EE */
+ errn = encodeNBitUnsignedInteger(stream, 1, 0);
+ }
+ }
+ grammarID = 792;
+ } else if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 792:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorPosition), END_ELEMENT] */
+ if (iso2SensorOrderListType_SensorPosition_currArrayIndex < iso2SensorOrderListType->SensorPosition.arrayLen ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ if(errn == 0) {
+ /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
+ errn = encodeNBitUnsignedInteger(stream, 1, 0);
+ if(errn == 0) {
+ errn = encodeNBitUnsignedInteger(stream, 8, (uint32_t)(iso2SensorOrderListType->SensorPosition.array[iso2SensorOrderListType_SensorPosition_currArrayIndex++] - 0));
+ /* valid EE */
+ errn = encodeNBitUnsignedInteger(stream, 1, 0);
+ }
+ }
+ grammarID = 793;
+ } else if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 793:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorPosition), END_ELEMENT] */
+ if (iso2SensorOrderListType_SensorPosition_currArrayIndex < iso2SensorOrderListType->SensorPosition.arrayLen ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ if(errn == 0) {
+ /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
+ errn = encodeNBitUnsignedInteger(stream, 1, 0);
+ if(errn == 0) {
+ errn = encodeNBitUnsignedInteger(stream, 8, (uint32_t)(iso2SensorOrderListType->SensorPosition.array[iso2SensorOrderListType_SensorPosition_currArrayIndex++] - 0));
+ /* valid EE */
+ errn = encodeNBitUnsignedInteger(stream, 1, 0);
+ }
+ }
+ grammarID = 794;
+ } else if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 794:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorPosition), END_ELEMENT] */
+ if (iso2SensorOrderListType_SensorPosition_currArrayIndex < iso2SensorOrderListType->SensorPosition.arrayLen ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ if(errn == 0) {
+ /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
+ errn = encodeNBitUnsignedInteger(stream, 1, 0);
+ if(errn == 0) {
+ errn = encodeNBitUnsignedInteger(stream, 8, (uint32_t)(iso2SensorOrderListType->SensorPosition.array[iso2SensorOrderListType_SensorPosition_currArrayIndex++] - 0));
+ /* valid EE */
+ errn = encodeNBitUnsignedInteger(stream, 1, 0);
+ }
+ }
+ grammarID = 795;
+ } else if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 795:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorPosition), END_ELEMENT] */
+ if (iso2SensorOrderListType_SensorPosition_currArrayIndex < iso2SensorOrderListType->SensorPosition.arrayLen ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ if(errn == 0) {
+ /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
+ errn = encodeNBitUnsignedInteger(stream, 1, 0);
+ if(errn == 0) {
+ errn = encodeNBitUnsignedInteger(stream, 8, (uint32_t)(iso2SensorOrderListType->SensorPosition.array[iso2SensorOrderListType_SensorPosition_currArrayIndex++] - 0));
+ /* valid EE */
+ errn = encodeNBitUnsignedInteger(stream, 1, 0);
+ }
+ }
+ grammarID = 796;
+ } else if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 796:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorPosition), END_ELEMENT] */
+ if (iso2SensorOrderListType_SensorPosition_currArrayIndex < iso2SensorOrderListType->SensorPosition.arrayLen ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ if(errn == 0) {
+ /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
+ errn = encodeNBitUnsignedInteger(stream, 1, 0);
+ if(errn == 0) {
+ errn = encodeNBitUnsignedInteger(stream, 8, (uint32_t)(iso2SensorOrderListType->SensorPosition.array[iso2SensorOrderListType_SensorPosition_currArrayIndex++] - 0));
+ /* valid EE */
+ errn = encodeNBitUnsignedInteger(stream, 1, 0);
+ }
+ }
+ grammarID = 797;
+ } else if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 797:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorPosition), END_ELEMENT] */
+ if (iso2SensorOrderListType_SensorPosition_currArrayIndex < iso2SensorOrderListType->SensorPosition.arrayLen ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ if(errn == 0) {
+ /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
+ errn = encodeNBitUnsignedInteger(stream, 1, 0);
+ if(errn == 0) {
+ errn = encodeNBitUnsignedInteger(stream, 8, (uint32_t)(iso2SensorOrderListType->SensorPosition.array[iso2SensorOrderListType_SensorPosition_currArrayIndex++] - 0));
+ /* valid EE */
+ errn = encodeNBitUnsignedInteger(stream, 1, 0);
+ }
+ }
+ grammarID = 798;
+ } else if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 798:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorPosition), END_ELEMENT] */
+ if (iso2SensorOrderListType_SensorPosition_currArrayIndex < iso2SensorOrderListType->SensorPosition.arrayLen ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ if(errn == 0) {
+ /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
+ errn = encodeNBitUnsignedInteger(stream, 1, 0);
+ if(errn == 0) {
+ errn = encodeNBitUnsignedInteger(stream, 8, (uint32_t)(iso2SensorOrderListType->SensorPosition.array[iso2SensorOrderListType_SensorPosition_currArrayIndex++] - 0));
+ /* valid EE */
+ errn = encodeNBitUnsignedInteger(stream, 1, 0);
+ }
+ }
+ grammarID = 799;
+ } else if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 799:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorPosition), END_ELEMENT] */
+ if (iso2SensorOrderListType_SensorPosition_currArrayIndex < iso2SensorOrderListType->SensorPosition.arrayLen ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ if(errn == 0) {
+ /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
+ errn = encodeNBitUnsignedInteger(stream, 1, 0);
+ if(errn == 0) {
+ errn = encodeNBitUnsignedInteger(stream, 8, (uint32_t)(iso2SensorOrderListType->SensorPosition.array[iso2SensorOrderListType_SensorPosition_currArrayIndex++] - 0));
+ /* valid EE */
+ errn = encodeNBitUnsignedInteger(stream, 1, 0);
+ }
+ }
+ grammarID = 800;
+ } else if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 800:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorPosition), END_ELEMENT] */
+ if (iso2SensorOrderListType_SensorPosition_currArrayIndex < iso2SensorOrderListType->SensorPosition.arrayLen ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ if(errn == 0) {
+ /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
+ errn = encodeNBitUnsignedInteger(stream, 1, 0);
+ if(errn == 0) {
+ errn = encodeNBitUnsignedInteger(stream, 8, (uint32_t)(iso2SensorOrderListType->SensorPosition.array[iso2SensorOrderListType_SensorPosition_currArrayIndex++] - 0));
+ /* valid EE */
+ errn = encodeNBitUnsignedInteger(stream, 1, 0);
+ }
+ }
+ grammarID = 801;
+ } else if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 801:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorPosition), END_ELEMENT] */
+ if (iso2SensorOrderListType_SensorPosition_currArrayIndex < iso2SensorOrderListType->SensorPosition.arrayLen ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ if(errn == 0) {
+ /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
+ errn = encodeNBitUnsignedInteger(stream, 1, 0);
+ if(errn == 0) {
+ errn = encodeNBitUnsignedInteger(stream, 8, (uint32_t)(iso2SensorOrderListType->SensorPosition.array[iso2SensorOrderListType_SensorPosition_currArrayIndex++] - 0));
+ /* valid EE */
+ errn = encodeNBitUnsignedInteger(stream, 1, 0);
+ }
+ }
+ grammarID = 802;
+ } else if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 802:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorPosition), END_ELEMENT] */
+ if (iso2SensorOrderListType_SensorPosition_currArrayIndex < iso2SensorOrderListType->SensorPosition.arrayLen ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ if(errn == 0) {
+ /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
+ errn = encodeNBitUnsignedInteger(stream, 1, 0);
+ if(errn == 0) {
+ errn = encodeNBitUnsignedInteger(stream, 8, (uint32_t)(iso2SensorOrderListType->SensorPosition.array[iso2SensorOrderListType_SensorPosition_currArrayIndex++] - 0));
+ /* valid EE */
+ errn = encodeNBitUnsignedInteger(stream, 1, 0);
+ }
+ }
+ grammarID = 803;
+ } else if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 803:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorPosition), END_ELEMENT] */
+ if (iso2SensorOrderListType_SensorPosition_currArrayIndex < iso2SensorOrderListType->SensorPosition.arrayLen ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ if(errn == 0) {
+ /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
+ errn = encodeNBitUnsignedInteger(stream, 1, 0);
+ if(errn == 0) {
+ errn = encodeNBitUnsignedInteger(stream, 8, (uint32_t)(iso2SensorOrderListType->SensorPosition.array[iso2SensorOrderListType_SensorPosition_currArrayIndex++] - 0));
+ /* valid EE */
+ errn = encodeNBitUnsignedInteger(stream, 1, 0);
+ }
+ }
+ grammarID = 804;
+ } else if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 804:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorPosition), END_ELEMENT] */
+ if (iso2SensorOrderListType_SensorPosition_currArrayIndex < iso2SensorOrderListType->SensorPosition.arrayLen ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ if(errn == 0) {
+ /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
+ errn = encodeNBitUnsignedInteger(stream, 1, 0);
+ if(errn == 0) {
+ errn = encodeNBitUnsignedInteger(stream, 8, (uint32_t)(iso2SensorOrderListType->SensorPosition.array[iso2SensorOrderListType_SensorPosition_currArrayIndex++] - 0));
+ /* valid EE */
+ errn = encodeNBitUnsignedInteger(stream, 1, 0);
+ }
+ }
+ grammarID = 805;
+ } else if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 805:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorPosition), END_ELEMENT] */
+ if (iso2SensorOrderListType_SensorPosition_currArrayIndex < iso2SensorOrderListType->SensorPosition.arrayLen ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ if(errn == 0) {
+ /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
+ errn = encodeNBitUnsignedInteger(stream, 1, 0);
+ if(errn == 0) {
+ errn = encodeNBitUnsignedInteger(stream, 8, (uint32_t)(iso2SensorOrderListType->SensorPosition.array[iso2SensorOrderListType_SensorPosition_currArrayIndex++] - 0));
+ /* valid EE */
+ errn = encodeNBitUnsignedInteger(stream, 1, 0);
+ }
+ }
+ grammarID = 806;
+ } else if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 806:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorPosition), END_ELEMENT] */
+ if (iso2SensorOrderListType_SensorPosition_currArrayIndex < iso2SensorOrderListType->SensorPosition.arrayLen ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ if(errn == 0) {
+ /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
+ errn = encodeNBitUnsignedInteger(stream, 1, 0);
+ if(errn == 0) {
+ errn = encodeNBitUnsignedInteger(stream, 8, (uint32_t)(iso2SensorOrderListType->SensorPosition.array[iso2SensorOrderListType_SensorPosition_currArrayIndex++] - 0));
+ /* valid EE */
+ errn = encodeNBitUnsignedInteger(stream, 1, 0);
+ }
+ }
+ grammarID = 807;
+ } else if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 807:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorPosition), END_ELEMENT] */
+ if (iso2SensorOrderListType_SensorPosition_currArrayIndex < iso2SensorOrderListType->SensorPosition.arrayLen ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ if(errn == 0) {
+ /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
+ errn = encodeNBitUnsignedInteger(stream, 1, 0);
+ if(errn == 0) {
+ errn = encodeNBitUnsignedInteger(stream, 8, (uint32_t)(iso2SensorOrderListType->SensorPosition.array[iso2SensorOrderListType_SensorPosition_currArrayIndex++] - 0));
+ /* valid EE */
+ errn = encodeNBitUnsignedInteger(stream, 1, 0);
+ }
+ }
+ grammarID = 808;
+ } else if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 808:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorPosition), END_ELEMENT] */
+ if (iso2SensorOrderListType_SensorPosition_currArrayIndex < iso2SensorOrderListType->SensorPosition.arrayLen ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ if(errn == 0) {
+ /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
+ errn = encodeNBitUnsignedInteger(stream, 1, 0);
+ if(errn == 0) {
+ errn = encodeNBitUnsignedInteger(stream, 8, (uint32_t)(iso2SensorOrderListType->SensorPosition.array[iso2SensorOrderListType_SensorPosition_currArrayIndex++] - 0));
+ /* valid EE */
+ errn = encodeNBitUnsignedInteger(stream, 1, 0);
+ }
+ }
+ grammarID = 809;
+ } else if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 809:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorPosition), END_ELEMENT] */
+ if (iso2SensorOrderListType_SensorPosition_currArrayIndex < iso2SensorOrderListType->SensorPosition.arrayLen ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ if(errn == 0) {
+ /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
+ errn = encodeNBitUnsignedInteger(stream, 1, 0);
+ if(errn == 0) {
+ errn = encodeNBitUnsignedInteger(stream, 8, (uint32_t)(iso2SensorOrderListType->SensorPosition.array[iso2SensorOrderListType_SensorPosition_currArrayIndex++] - 0));
+ /* valid EE */
+ errn = encodeNBitUnsignedInteger(stream, 1, 0);
+ }
+ }
+ grammarID = 810;
+ } else if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 810:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorPosition), END_ELEMENT] */
+ if (iso2SensorOrderListType_SensorPosition_currArrayIndex < iso2SensorOrderListType->SensorPosition.arrayLen ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ if(errn == 0) {
+ /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
+ errn = encodeNBitUnsignedInteger(stream, 1, 0);
+ if(errn == 0) {
+ errn = encodeNBitUnsignedInteger(stream, 8, (uint32_t)(iso2SensorOrderListType->SensorPosition.array[iso2SensorOrderListType_SensorPosition_currArrayIndex++] - 0));
+ /* valid EE */
+ errn = encodeNBitUnsignedInteger(stream, 1, 0);
+ }
+ }
+ grammarID = 811;
+ } else if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 811:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorPosition), END_ELEMENT] */
+ if (iso2SensorOrderListType_SensorPosition_currArrayIndex < iso2SensorOrderListType->SensorPosition.arrayLen ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ if(errn == 0) {
+ /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
+ errn = encodeNBitUnsignedInteger(stream, 1, 0);
+ if(errn == 0) {
+ errn = encodeNBitUnsignedInteger(stream, 8, (uint32_t)(iso2SensorOrderListType->SensorPosition.array[iso2SensorOrderListType_SensorPosition_currArrayIndex++] - 0));
+ /* valid EE */
+ errn = encodeNBitUnsignedInteger(stream, 1, 0);
+ }
+ }
+ grammarID = 812;
+ } else if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 812:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorPosition), END_ELEMENT] */
+ if (iso2SensorOrderListType_SensorPosition_currArrayIndex < iso2SensorOrderListType->SensorPosition.arrayLen ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ if(errn == 0) {
+ /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
+ errn = encodeNBitUnsignedInteger(stream, 1, 0);
+ if(errn == 0) {
+ errn = encodeNBitUnsignedInteger(stream, 8, (uint32_t)(iso2SensorOrderListType->SensorPosition.array[iso2SensorOrderListType_SensorPosition_currArrayIndex++] - 0));
+ /* valid EE */
+ errn = encodeNBitUnsignedInteger(stream, 1, 0);
+ }
+ }
+ grammarID = 813;
+ } else if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 813:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorPosition), END_ELEMENT] */
+ if (iso2SensorOrderListType_SensorPosition_currArrayIndex < iso2SensorOrderListType->SensorPosition.arrayLen ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ if(errn == 0) {
+ /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
+ errn = encodeNBitUnsignedInteger(stream, 1, 0);
+ if(errn == 0) {
+ errn = encodeNBitUnsignedInteger(stream, 8, (uint32_t)(iso2SensorOrderListType->SensorPosition.array[iso2SensorOrderListType_SensorPosition_currArrayIndex++] - 0));
+ /* valid EE */
+ errn = encodeNBitUnsignedInteger(stream, 1, 0);
+ }
+ }
+ grammarID = 814;
+ } else if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 814:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorPosition), END_ELEMENT] */
+ if (iso2SensorOrderListType_SensorPosition_currArrayIndex < iso2SensorOrderListType->SensorPosition.arrayLen ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ if(errn == 0) {
+ /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
+ errn = encodeNBitUnsignedInteger(stream, 1, 0);
+ if(errn == 0) {
+ errn = encodeNBitUnsignedInteger(stream, 8, (uint32_t)(iso2SensorOrderListType->SensorPosition.array[iso2SensorOrderListType_SensorPosition_currArrayIndex++] - 0));
+ /* valid EE */
+ errn = encodeNBitUnsignedInteger(stream, 1, 0);
+ }
+ }
+ grammarID = 815;
+ } else if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 815:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorPosition), END_ELEMENT] */
+ if (iso2SensorOrderListType_SensorPosition_currArrayIndex < iso2SensorOrderListType->SensorPosition.arrayLen ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ if(errn == 0) {
+ /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
+ errn = encodeNBitUnsignedInteger(stream, 1, 0);
+ if(errn == 0) {
+ errn = encodeNBitUnsignedInteger(stream, 8, (uint32_t)(iso2SensorOrderListType->SensorPosition.array[iso2SensorOrderListType_SensorPosition_currArrayIndex++] - 0));
+ /* valid EE */
+ errn = encodeNBitUnsignedInteger(stream, 1, 0);
+ }
+ }
+ grammarID = 816;
+ } else if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 816:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorPosition), END_ELEMENT] */
+ if (iso2SensorOrderListType_SensorPosition_currArrayIndex < iso2SensorOrderListType->SensorPosition.arrayLen ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ if(errn == 0) {
+ /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
+ errn = encodeNBitUnsignedInteger(stream, 1, 0);
+ if(errn == 0) {
+ errn = encodeNBitUnsignedInteger(stream, 8, (uint32_t)(iso2SensorOrderListType->SensorPosition.array[iso2SensorOrderListType_SensorPosition_currArrayIndex++] - 0));
+ /* valid EE */
+ errn = encodeNBitUnsignedInteger(stream, 1, 0);
+ }
+ }
+ grammarID = 817;
+ } else if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 817:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorPosition), END_ELEMENT] */
+ if (iso2SensorOrderListType_SensorPosition_currArrayIndex < iso2SensorOrderListType->SensorPosition.arrayLen ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ if(errn == 0) {
+ /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
+ errn = encodeNBitUnsignedInteger(stream, 1, 0);
+ if(errn == 0) {
+ errn = encodeNBitUnsignedInteger(stream, 8, (uint32_t)(iso2SensorOrderListType->SensorPosition.array[iso2SensorOrderListType_SensorPosition_currArrayIndex++] - 0));
+ /* valid EE */
+ errn = encodeNBitUnsignedInteger(stream, 1, 0);
+ }
+ }
+ grammarID = 818;
+ } else if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 818:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorPosition), END_ELEMENT] */
+ if (iso2SensorOrderListType_SensorPosition_currArrayIndex < iso2SensorOrderListType->SensorPosition.arrayLen ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ if(errn == 0) {
+ /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
+ errn = encodeNBitUnsignedInteger(stream, 1, 0);
+ if(errn == 0) {
+ errn = encodeNBitUnsignedInteger(stream, 8, (uint32_t)(iso2SensorOrderListType->SensorPosition.array[iso2SensorOrderListType_SensorPosition_currArrayIndex++] - 0));
+ /* valid EE */
+ errn = encodeNBitUnsignedInteger(stream, 1, 0);
+ }
+ }
+ grammarID = 819;
+ } else if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 819:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorPosition), END_ELEMENT] */
+ if (iso2SensorOrderListType_SensorPosition_currArrayIndex < iso2SensorOrderListType->SensorPosition.arrayLen ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ if(errn == 0) {
+ /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
+ errn = encodeNBitUnsignedInteger(stream, 1, 0);
+ if(errn == 0) {
+ errn = encodeNBitUnsignedInteger(stream, 8, (uint32_t)(iso2SensorOrderListType->SensorPosition.array[iso2SensorOrderListType_SensorPosition_currArrayIndex++] - 0));
+ /* valid EE */
+ errn = encodeNBitUnsignedInteger(stream, 1, 0);
+ }
+ }
+ grammarID = 820;
+ } else if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 820:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorPosition), END_ELEMENT] */
+ if (iso2SensorOrderListType_SensorPosition_currArrayIndex < iso2SensorOrderListType->SensorPosition.arrayLen ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ if(errn == 0) {
+ /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
+ errn = encodeNBitUnsignedInteger(stream, 1, 0);
+ if(errn == 0) {
+ errn = encodeNBitUnsignedInteger(stream, 8, (uint32_t)(iso2SensorOrderListType->SensorPosition.array[iso2SensorOrderListType_SensorPosition_currArrayIndex++] - 0));
+ /* valid EE */
+ errn = encodeNBitUnsignedInteger(stream, 1, 0);
+ }
+ }
+ grammarID = 821;
+ } else if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 821:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorPosition), END_ELEMENT] */
+ if (iso2SensorOrderListType_SensorPosition_currArrayIndex < iso2SensorOrderListType->SensorPosition.arrayLen ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ if(errn == 0) {
+ /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
+ errn = encodeNBitUnsignedInteger(stream, 1, 0);
+ if(errn == 0) {
+ errn = encodeNBitUnsignedInteger(stream, 8, (uint32_t)(iso2SensorOrderListType->SensorPosition.array[iso2SensorOrderListType_SensorPosition_currArrayIndex++] - 0));
+ /* valid EE */
+ errn = encodeNBitUnsignedInteger(stream, 1, 0);
+ }
+ }
+ grammarID = 822;
+ } else if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 822:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorPosition), END_ELEMENT] */
+ if (iso2SensorOrderListType_SensorPosition_currArrayIndex < iso2SensorOrderListType->SensorPosition.arrayLen ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ if(errn == 0) {
+ /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
+ errn = encodeNBitUnsignedInteger(stream, 1, 0);
+ if(errn == 0) {
+ errn = encodeNBitUnsignedInteger(stream, 8, (uint32_t)(iso2SensorOrderListType->SensorPosition.array[iso2SensorOrderListType_SensorPosition_currArrayIndex++] - 0));
+ /* valid EE */
+ errn = encodeNBitUnsignedInteger(stream, 1, 0);
+ }
+ }
+ grammarID = 823;
+ } else if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 823:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorPosition), END_ELEMENT] */
+ if (iso2SensorOrderListType_SensorPosition_currArrayIndex < iso2SensorOrderListType->SensorPosition.arrayLen ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ if(errn == 0) {
+ /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
+ errn = encodeNBitUnsignedInteger(stream, 1, 0);
+ if(errn == 0) {
+ errn = encodeNBitUnsignedInteger(stream, 8, (uint32_t)(iso2SensorOrderListType->SensorPosition.array[iso2SensorOrderListType_SensorPosition_currArrayIndex++] - 0));
+ /* valid EE */
+ errn = encodeNBitUnsignedInteger(stream, 1, 0);
+ }
+ }
+ grammarID = 824;
+ } else if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 824:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorPosition), END_ELEMENT] */
+ if (iso2SensorOrderListType_SensorPosition_currArrayIndex < iso2SensorOrderListType->SensorPosition.arrayLen ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ if(errn == 0) {
+ /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
+ errn = encodeNBitUnsignedInteger(stream, 1, 0);
+ if(errn == 0) {
+ errn = encodeNBitUnsignedInteger(stream, 8, (uint32_t)(iso2SensorOrderListType->SensorPosition.array[iso2SensorOrderListType_SensorPosition_currArrayIndex++] - 0));
+ /* valid EE */
+ errn = encodeNBitUnsignedInteger(stream, 1, 0);
+ }
+ }
+ grammarID = 825;
+ } else if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 825:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorPosition), END_ELEMENT] */
+ if (iso2SensorOrderListType_SensorPosition_currArrayIndex < iso2SensorOrderListType->SensorPosition.arrayLen ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ if(errn == 0) {
+ /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
+ errn = encodeNBitUnsignedInteger(stream, 1, 0);
+ if(errn == 0) {
+ errn = encodeNBitUnsignedInteger(stream, 8, (uint32_t)(iso2SensorOrderListType->SensorPosition.array[iso2SensorOrderListType_SensorPosition_currArrayIndex++] - 0));
+ /* valid EE */
+ errn = encodeNBitUnsignedInteger(stream, 1, 0);
+ }
+ }
+ grammarID = 826;
+ } else if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 826:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorPosition), END_ELEMENT] */
+ if (iso2SensorOrderListType_SensorPosition_currArrayIndex < iso2SensorOrderListType->SensorPosition.arrayLen ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ if(errn == 0) {
+ /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
+ errn = encodeNBitUnsignedInteger(stream, 1, 0);
+ if(errn == 0) {
+ errn = encodeNBitUnsignedInteger(stream, 8, (uint32_t)(iso2SensorOrderListType->SensorPosition.array[iso2SensorOrderListType_SensorPosition_currArrayIndex++] - 0));
+ /* valid EE */
+ errn = encodeNBitUnsignedInteger(stream, 1, 0);
+ }
+ }
+ grammarID = 827;
+ } else if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 827:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorPosition), END_ELEMENT] */
+ if (iso2SensorOrderListType_SensorPosition_currArrayIndex < iso2SensorOrderListType->SensorPosition.arrayLen ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ if(errn == 0) {
+ /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
+ errn = encodeNBitUnsignedInteger(stream, 1, 0);
+ if(errn == 0) {
+ errn = encodeNBitUnsignedInteger(stream, 8, (uint32_t)(iso2SensorOrderListType->SensorPosition.array[iso2SensorOrderListType_SensorPosition_currArrayIndex++] - 0));
+ /* valid EE */
+ errn = encodeNBitUnsignedInteger(stream, 1, 0);
+ }
+ }
+ grammarID = 828;
+ } else if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 828:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorPosition), END_ELEMENT] */
+ if (iso2SensorOrderListType_SensorPosition_currArrayIndex < iso2SensorOrderListType->SensorPosition.arrayLen ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ if(errn == 0) {
+ /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
+ errn = encodeNBitUnsignedInteger(stream, 1, 0);
+ if(errn == 0) {
+ errn = encodeNBitUnsignedInteger(stream, 8, (uint32_t)(iso2SensorOrderListType->SensorPosition.array[iso2SensorOrderListType_SensorPosition_currArrayIndex++] - 0));
+ /* valid EE */
+ errn = encodeNBitUnsignedInteger(stream, 1, 0);
+ }
+ }
+ grammarID = 829;
+ } else if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 829:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorPosition), END_ELEMENT] */
+ if (iso2SensorOrderListType_SensorPosition_currArrayIndex < iso2SensorOrderListType->SensorPosition.arrayLen ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ if(errn == 0) {
+ /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
+ errn = encodeNBitUnsignedInteger(stream, 1, 0);
+ if(errn == 0) {
+ errn = encodeNBitUnsignedInteger(stream, 8, (uint32_t)(iso2SensorOrderListType->SensorPosition.array[iso2SensorOrderListType_SensorPosition_currArrayIndex++] - 0));
+ /* valid EE */
+ errn = encodeNBitUnsignedInteger(stream, 1, 0);
+ }
+ }
+ grammarID = 830;
+ } else if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 830:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorPosition), END_ELEMENT] */
+ if (iso2SensorOrderListType_SensorPosition_currArrayIndex < iso2SensorOrderListType->SensorPosition.arrayLen ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ if(errn == 0) {
+ /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
+ errn = encodeNBitUnsignedInteger(stream, 1, 0);
+ if(errn == 0) {
+ errn = encodeNBitUnsignedInteger(stream, 8, (uint32_t)(iso2SensorOrderListType->SensorPosition.array[iso2SensorOrderListType_SensorPosition_currArrayIndex++] - 0));
+ /* valid EE */
+ errn = encodeNBitUnsignedInteger(stream, 1, 0);
+ }
+ }
+ grammarID = 831;
+ } else if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 831:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorPosition), END_ELEMENT] */
+ if (iso2SensorOrderListType_SensorPosition_currArrayIndex < iso2SensorOrderListType->SensorPosition.arrayLen ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ if(errn == 0) {
+ /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
+ errn = encodeNBitUnsignedInteger(stream, 1, 0);
+ if(errn == 0) {
+ errn = encodeNBitUnsignedInteger(stream, 8, (uint32_t)(iso2SensorOrderListType->SensorPosition.array[iso2SensorOrderListType_SensorPosition_currArrayIndex++] - 0));
+ /* valid EE */
+ errn = encodeNBitUnsignedInteger(stream, 1, 0);
+ }
+ }
+ grammarID = 832;
+ } else if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 832:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorPosition), END_ELEMENT] */
+ if (iso2SensorOrderListType_SensorPosition_currArrayIndex < iso2SensorOrderListType->SensorPosition.arrayLen ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ if(errn == 0) {
+ /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
+ errn = encodeNBitUnsignedInteger(stream, 1, 0);
+ if(errn == 0) {
+ errn = encodeNBitUnsignedInteger(stream, 8, (uint32_t)(iso2SensorOrderListType->SensorPosition.array[iso2SensorOrderListType_SensorPosition_currArrayIndex++] - 0));
+ /* valid EE */
+ errn = encodeNBitUnsignedInteger(stream, 1, 0);
+ }
+ }
+ grammarID = 833;
+ } else if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 833:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorPosition), END_ELEMENT] */
+ if (iso2SensorOrderListType_SensorPosition_currArrayIndex < iso2SensorOrderListType->SensorPosition.arrayLen ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ if(errn == 0) {
+ /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
+ errn = encodeNBitUnsignedInteger(stream, 1, 0);
+ if(errn == 0) {
+ errn = encodeNBitUnsignedInteger(stream, 8, (uint32_t)(iso2SensorOrderListType->SensorPosition.array[iso2SensorOrderListType_SensorPosition_currArrayIndex++] - 0));
+ /* valid EE */
+ errn = encodeNBitUnsignedInteger(stream, 1, 0);
+ }
+ }
+ grammarID = 834;
+ } else if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 834:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorPosition), END_ELEMENT] */
+ if (iso2SensorOrderListType_SensorPosition_currArrayIndex < iso2SensorOrderListType->SensorPosition.arrayLen ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ if(errn == 0) {
+ /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
+ errn = encodeNBitUnsignedInteger(stream, 1, 0);
+ if(errn == 0) {
+ errn = encodeNBitUnsignedInteger(stream, 8, (uint32_t)(iso2SensorOrderListType->SensorPosition.array[iso2SensorOrderListType_SensorPosition_currArrayIndex++] - 0));
+ /* valid EE */
+ errn = encodeNBitUnsignedInteger(stream, 1, 0);
+ }
+ }
+ grammarID = 835;
+ } else if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 835:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorPosition), END_ELEMENT] */
+ if (iso2SensorOrderListType_SensorPosition_currArrayIndex < iso2SensorOrderListType->SensorPosition.arrayLen ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ if(errn == 0) {
+ /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
+ errn = encodeNBitUnsignedInteger(stream, 1, 0);
+ if(errn == 0) {
+ errn = encodeNBitUnsignedInteger(stream, 8, (uint32_t)(iso2SensorOrderListType->SensorPosition.array[iso2SensorOrderListType_SensorPosition_currArrayIndex++] - 0));
+ /* valid EE */
+ errn = encodeNBitUnsignedInteger(stream, 1, 0);
+ }
+ }
+ grammarID = 836;
+ } else if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 836:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorPosition), END_ELEMENT] */
+ if (iso2SensorOrderListType_SensorPosition_currArrayIndex < iso2SensorOrderListType->SensorPosition.arrayLen ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ if(errn == 0) {
+ /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
+ errn = encodeNBitUnsignedInteger(stream, 1, 0);
+ if(errn == 0) {
+ errn = encodeNBitUnsignedInteger(stream, 8, (uint32_t)(iso2SensorOrderListType->SensorPosition.array[iso2SensorOrderListType_SensorPosition_currArrayIndex++] - 0));
+ /* valid EE */
+ errn = encodeNBitUnsignedInteger(stream, 1, 0);
+ }
+ }
+ grammarID = 837;
+ } else if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 837:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorPosition), END_ELEMENT] */
+ if (iso2SensorOrderListType_SensorPosition_currArrayIndex < iso2SensorOrderListType->SensorPosition.arrayLen ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ if(errn == 0) {
+ /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
+ errn = encodeNBitUnsignedInteger(stream, 1, 0);
+ if(errn == 0) {
+ errn = encodeNBitUnsignedInteger(stream, 8, (uint32_t)(iso2SensorOrderListType->SensorPosition.array[iso2SensorOrderListType_SensorPosition_currArrayIndex++] - 0));
+ /* valid EE */
+ errn = encodeNBitUnsignedInteger(stream, 1, 0);
+ }
+ }
+ grammarID = 838;
+ } else if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 838:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorPosition), END_ELEMENT] */
+ if (iso2SensorOrderListType_SensorPosition_currArrayIndex < iso2SensorOrderListType->SensorPosition.arrayLen ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ if(errn == 0) {
+ /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
+ errn = encodeNBitUnsignedInteger(stream, 1, 0);
+ if(errn == 0) {
+ errn = encodeNBitUnsignedInteger(stream, 8, (uint32_t)(iso2SensorOrderListType->SensorPosition.array[iso2SensorOrderListType_SensorPosition_currArrayIndex++] - 0));
+ /* valid EE */
+ errn = encodeNBitUnsignedInteger(stream, 1, 0);
+ }
+ }
+ grammarID = 839;
+ } else if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 839:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorPosition), END_ELEMENT] */
+ if (iso2SensorOrderListType_SensorPosition_currArrayIndex < iso2SensorOrderListType->SensorPosition.arrayLen ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ if(errn == 0) {
+ /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
+ errn = encodeNBitUnsignedInteger(stream, 1, 0);
+ if(errn == 0) {
+ errn = encodeNBitUnsignedInteger(stream, 8, (uint32_t)(iso2SensorOrderListType->SensorPosition.array[iso2SensorOrderListType_SensorPosition_currArrayIndex++] - 0));
+ /* valid EE */
+ errn = encodeNBitUnsignedInteger(stream, 1, 0);
+ }
+ }
+ grammarID = 840;
+ } else if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 840:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorPosition), END_ELEMENT] */
+ if (iso2SensorOrderListType_SensorPosition_currArrayIndex < iso2SensorOrderListType->SensorPosition.arrayLen ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ if(errn == 0) {
+ /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
+ errn = encodeNBitUnsignedInteger(stream, 1, 0);
+ if(errn == 0) {
+ errn = encodeNBitUnsignedInteger(stream, 8, (uint32_t)(iso2SensorOrderListType->SensorPosition.array[iso2SensorOrderListType_SensorPosition_currArrayIndex++] - 0));
+ /* valid EE */
+ errn = encodeNBitUnsignedInteger(stream, 1, 0);
+ }
+ }
+ grammarID = 841;
+ } else if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 841:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorPosition), END_ELEMENT] */
+ if (iso2SensorOrderListType_SensorPosition_currArrayIndex < iso2SensorOrderListType->SensorPosition.arrayLen ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ if(errn == 0) {
+ /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
+ errn = encodeNBitUnsignedInteger(stream, 1, 0);
+ if(errn == 0) {
+ errn = encodeNBitUnsignedInteger(stream, 8, (uint32_t)(iso2SensorOrderListType->SensorPosition.array[iso2SensorOrderListType_SensorPosition_currArrayIndex++] - 0));
+ /* valid EE */
+ errn = encodeNBitUnsignedInteger(stream, 1, 0);
+ }
+ }
+ grammarID = 842;
+ } else if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 842:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorPosition), END_ELEMENT] */
+ if (iso2SensorOrderListType_SensorPosition_currArrayIndex < iso2SensorOrderListType->SensorPosition.arrayLen ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ if(errn == 0) {
+ /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
+ errn = encodeNBitUnsignedInteger(stream, 1, 0);
+ if(errn == 0) {
+ errn = encodeNBitUnsignedInteger(stream, 8, (uint32_t)(iso2SensorOrderListType->SensorPosition.array[iso2SensorOrderListType_SensorPosition_currArrayIndex++] - 0));
+ /* valid EE */
+ errn = encodeNBitUnsignedInteger(stream, 1, 0);
+ }
+ }
+ grammarID = 843;
+ } else if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 843:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorPosition), END_ELEMENT] */
+ if (iso2SensorOrderListType_SensorPosition_currArrayIndex < iso2SensorOrderListType->SensorPosition.arrayLen ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ if(errn == 0) {
+ /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
+ errn = encodeNBitUnsignedInteger(stream, 1, 0);
+ if(errn == 0) {
+ errn = encodeNBitUnsignedInteger(stream, 8, (uint32_t)(iso2SensorOrderListType->SensorPosition.array[iso2SensorOrderListType_SensorPosition_currArrayIndex++] - 0));
+ /* valid EE */
+ errn = encodeNBitUnsignedInteger(stream, 1, 0);
+ }
+ }
+ grammarID = 844;
+ } else if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 844:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorPosition), END_ELEMENT] */
+ if (iso2SensorOrderListType_SensorPosition_currArrayIndex < iso2SensorOrderListType->SensorPosition.arrayLen ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ if(errn == 0) {
+ /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
+ errn = encodeNBitUnsignedInteger(stream, 1, 0);
+ if(errn == 0) {
+ errn = encodeNBitUnsignedInteger(stream, 8, (uint32_t)(iso2SensorOrderListType->SensorPosition.array[iso2SensorOrderListType_SensorPosition_currArrayIndex++] - 0));
+ /* valid EE */
+ errn = encodeNBitUnsignedInteger(stream, 1, 0);
+ }
+ }
+ grammarID = 845;
+ } else if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 845:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorPosition), END_ELEMENT] */
+ if (iso2SensorOrderListType_SensorPosition_currArrayIndex < iso2SensorOrderListType->SensorPosition.arrayLen ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ if(errn == 0) {
+ /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
+ errn = encodeNBitUnsignedInteger(stream, 1, 0);
+ if(errn == 0) {
+ errn = encodeNBitUnsignedInteger(stream, 8, (uint32_t)(iso2SensorOrderListType->SensorPosition.array[iso2SensorOrderListType_SensorPosition_currArrayIndex++] - 0));
+ /* valid EE */
+ errn = encodeNBitUnsignedInteger(stream, 1, 0);
+ }
+ }
+ grammarID = 846;
+ } else if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 846:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorPosition), END_ELEMENT] */
+ if (iso2SensorOrderListType_SensorPosition_currArrayIndex < iso2SensorOrderListType->SensorPosition.arrayLen ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ if(errn == 0) {
+ /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
+ errn = encodeNBitUnsignedInteger(stream, 1, 0);
+ if(errn == 0) {
+ errn = encodeNBitUnsignedInteger(stream, 8, (uint32_t)(iso2SensorOrderListType->SensorPosition.array[iso2SensorOrderListType_SensorPosition_currArrayIndex++] - 0));
+ /* valid EE */
+ errn = encodeNBitUnsignedInteger(stream, 1, 0);
+ }
+ }
+ grammarID = 847;
+ } else if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 847:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorPosition), END_ELEMENT] */
+ if (iso2SensorOrderListType_SensorPosition_currArrayIndex < iso2SensorOrderListType->SensorPosition.arrayLen ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ if(errn == 0) {
+ /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
+ errn = encodeNBitUnsignedInteger(stream, 1, 0);
+ if(errn == 0) {
+ errn = encodeNBitUnsignedInteger(stream, 8, (uint32_t)(iso2SensorOrderListType->SensorPosition.array[iso2SensorOrderListType_SensorPosition_currArrayIndex++] - 0));
+ /* valid EE */
+ errn = encodeNBitUnsignedInteger(stream, 1, 0);
+ }
+ }
+ grammarID = 848;
+ } else if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 848:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorPosition), END_ELEMENT] */
+ if (iso2SensorOrderListType_SensorPosition_currArrayIndex < iso2SensorOrderListType->SensorPosition.arrayLen ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ if(errn == 0) {
+ /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
+ errn = encodeNBitUnsignedInteger(stream, 1, 0);
+ if(errn == 0) {
+ errn = encodeNBitUnsignedInteger(stream, 8, (uint32_t)(iso2SensorOrderListType->SensorPosition.array[iso2SensorOrderListType_SensorPosition_currArrayIndex++] - 0));
+ /* valid EE */
+ errn = encodeNBitUnsignedInteger(stream, 1, 0);
+ }
+ }
+ grammarID = 849;
+ } else if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 849:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorPosition), END_ELEMENT] */
+ if (iso2SensorOrderListType_SensorPosition_currArrayIndex < iso2SensorOrderListType->SensorPosition.arrayLen ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ if(errn == 0) {
+ /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
+ errn = encodeNBitUnsignedInteger(stream, 1, 0);
+ if(errn == 0) {
+ errn = encodeNBitUnsignedInteger(stream, 8, (uint32_t)(iso2SensorOrderListType->SensorPosition.array[iso2SensorOrderListType_SensorPosition_currArrayIndex++] - 0));
+ /* valid EE */
+ errn = encodeNBitUnsignedInteger(stream, 1, 0);
+ }
+ }
+ grammarID = 850;
+ } else if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 850:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorPosition), END_ELEMENT] */
+ if (iso2SensorOrderListType_SensorPosition_currArrayIndex < iso2SensorOrderListType->SensorPosition.arrayLen ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ if(errn == 0) {
+ /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
+ errn = encodeNBitUnsignedInteger(stream, 1, 0);
+ if(errn == 0) {
+ errn = encodeNBitUnsignedInteger(stream, 8, (uint32_t)(iso2SensorOrderListType->SensorPosition.array[iso2SensorOrderListType_SensorPosition_currArrayIndex++] - 0));
+ /* valid EE */
+ errn = encodeNBitUnsignedInteger(stream, 1, 0);
+ }
+ }
+ grammarID = 851;
+ } else if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 851:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorPosition), END_ELEMENT] */
+ if (iso2SensorOrderListType_SensorPosition_currArrayIndex < iso2SensorOrderListType->SensorPosition.arrayLen ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ if(errn == 0) {
+ /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
+ errn = encodeNBitUnsignedInteger(stream, 1, 0);
+ if(errn == 0) {
+ errn = encodeNBitUnsignedInteger(stream, 8, (uint32_t)(iso2SensorOrderListType->SensorPosition.array[iso2SensorOrderListType_SensorPosition_currArrayIndex++] - 0));
+ /* valid EE */
+ errn = encodeNBitUnsignedInteger(stream, 1, 0);
+ }
+ }
+ grammarID = 852;
+ } else if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 852:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorPosition), END_ELEMENT] */
+ if (iso2SensorOrderListType_SensorPosition_currArrayIndex < iso2SensorOrderListType->SensorPosition.arrayLen ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ if(errn == 0) {
+ /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
+ errn = encodeNBitUnsignedInteger(stream, 1, 0);
+ if(errn == 0) {
+ errn = encodeNBitUnsignedInteger(stream, 8, (uint32_t)(iso2SensorOrderListType->SensorPosition.array[iso2SensorOrderListType_SensorPosition_currArrayIndex++] - 0));
+ /* valid EE */
+ errn = encodeNBitUnsignedInteger(stream, 1, 0);
+ }
+ }
+ grammarID = 853;
+ } else if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 853:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorPosition), END_ELEMENT] */
+ if (iso2SensorOrderListType_SensorPosition_currArrayIndex < iso2SensorOrderListType->SensorPosition.arrayLen ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ if(errn == 0) {
+ /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
+ errn = encodeNBitUnsignedInteger(stream, 1, 0);
+ if(errn == 0) {
+ errn = encodeNBitUnsignedInteger(stream, 8, (uint32_t)(iso2SensorOrderListType->SensorPosition.array[iso2SensorOrderListType_SensorPosition_currArrayIndex++] - 0));
+ /* valid EE */
+ errn = encodeNBitUnsignedInteger(stream, 1, 0);
+ }
+ }
+ grammarID = 854;
+ } else if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 854:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorPosition), END_ELEMENT] */
+ if (iso2SensorOrderListType_SensorPosition_currArrayIndex < iso2SensorOrderListType->SensorPosition.arrayLen ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ if(errn == 0) {
+ /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
+ errn = encodeNBitUnsignedInteger(stream, 1, 0);
+ if(errn == 0) {
+ errn = encodeNBitUnsignedInteger(stream, 8, (uint32_t)(iso2SensorOrderListType->SensorPosition.array[iso2SensorOrderListType_SensorPosition_currArrayIndex++] - 0));
+ /* valid EE */
+ errn = encodeNBitUnsignedInteger(stream, 1, 0);
+ }
+ }
+ grammarID = 855;
+ } else if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 855:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorPosition), END_ELEMENT] */
+ if (iso2SensorOrderListType_SensorPosition_currArrayIndex < iso2SensorOrderListType->SensorPosition.arrayLen ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ if(errn == 0) {
+ /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
+ errn = encodeNBitUnsignedInteger(stream, 1, 0);
+ if(errn == 0) {
+ errn = encodeNBitUnsignedInteger(stream, 8, (uint32_t)(iso2SensorOrderListType->SensorPosition.array[iso2SensorOrderListType_SensorPosition_currArrayIndex++] - 0));
+ /* valid EE */
+ errn = encodeNBitUnsignedInteger(stream, 1, 0);
+ }
+ }
+ grammarID = 856;
+ } else if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 856:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorPosition), END_ELEMENT] */
+ if (iso2SensorOrderListType_SensorPosition_currArrayIndex < iso2SensorOrderListType->SensorPosition.arrayLen ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ if(errn == 0) {
+ /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
+ errn = encodeNBitUnsignedInteger(stream, 1, 0);
+ if(errn == 0) {
+ errn = encodeNBitUnsignedInteger(stream, 8, (uint32_t)(iso2SensorOrderListType->SensorPosition.array[iso2SensorOrderListType_SensorPosition_currArrayIndex++] - 0));
+ /* valid EE */
+ errn = encodeNBitUnsignedInteger(stream, 1, 0);
+ }
+ }
+ grammarID = 857;
+ } else if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 857:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorPosition), END_ELEMENT] */
+ if (iso2SensorOrderListType_SensorPosition_currArrayIndex < iso2SensorOrderListType->SensorPosition.arrayLen ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ if(errn == 0) {
+ /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
+ errn = encodeNBitUnsignedInteger(stream, 1, 0);
+ if(errn == 0) {
+ errn = encodeNBitUnsignedInteger(stream, 8, (uint32_t)(iso2SensorOrderListType->SensorPosition.array[iso2SensorOrderListType_SensorPosition_currArrayIndex++] - 0));
+ /* valid EE */
+ errn = encodeNBitUnsignedInteger(stream, 1, 0);
+ }
+ }
+ grammarID = 858;
+ } else if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 858:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorPosition), END_ELEMENT] */
+ if (iso2SensorOrderListType_SensorPosition_currArrayIndex < iso2SensorOrderListType->SensorPosition.arrayLen ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ if(errn == 0) {
+ /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
+ errn = encodeNBitUnsignedInteger(stream, 1, 0);
+ if(errn == 0) {
+ errn = encodeNBitUnsignedInteger(stream, 8, (uint32_t)(iso2SensorOrderListType->SensorPosition.array[iso2SensorOrderListType_SensorPosition_currArrayIndex++] - 0));
+ /* valid EE */
+ errn = encodeNBitUnsignedInteger(stream, 1, 0);
+ }
+ }
+ grammarID = 859;
+ } else if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 859:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorPosition), END_ELEMENT] */
+ if (iso2SensorOrderListType_SensorPosition_currArrayIndex < iso2SensorOrderListType->SensorPosition.arrayLen ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ if(errn == 0) {
+ /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
+ errn = encodeNBitUnsignedInteger(stream, 1, 0);
+ if(errn == 0) {
+ errn = encodeNBitUnsignedInteger(stream, 8, (uint32_t)(iso2SensorOrderListType->SensorPosition.array[iso2SensorOrderListType_SensorPosition_currArrayIndex++] - 0));
+ /* valid EE */
+ errn = encodeNBitUnsignedInteger(stream, 1, 0);
+ }
+ }
+ grammarID = 860;
+ } else if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 860:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorPosition), END_ELEMENT] */
+ if (iso2SensorOrderListType_SensorPosition_currArrayIndex < iso2SensorOrderListType->SensorPosition.arrayLen ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ if(errn == 0) {
+ /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
+ errn = encodeNBitUnsignedInteger(stream, 1, 0);
+ if(errn == 0) {
+ errn = encodeNBitUnsignedInteger(stream, 8, (uint32_t)(iso2SensorOrderListType->SensorPosition.array[iso2SensorOrderListType_SensorPosition_currArrayIndex++] - 0));
+ /* valid EE */
+ errn = encodeNBitUnsignedInteger(stream, 1, 0);
+ }
+ }
+ grammarID = 861;
+ } else if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 861:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorPosition), END_ELEMENT] */
+ if (iso2SensorOrderListType_SensorPosition_currArrayIndex < iso2SensorOrderListType->SensorPosition.arrayLen ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ if(errn == 0) {
+ /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
+ errn = encodeNBitUnsignedInteger(stream, 1, 0);
+ if(errn == 0) {
+ errn = encodeNBitUnsignedInteger(stream, 8, (uint32_t)(iso2SensorOrderListType->SensorPosition.array[iso2SensorOrderListType_SensorPosition_currArrayIndex++] - 0));
+ /* valid EE */
+ errn = encodeNBitUnsignedInteger(stream, 1, 0);
+ }
+ }
+ grammarID = 862;
+ } else if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 862:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorPosition), END_ELEMENT] */
+ if (iso2SensorOrderListType_SensorPosition_currArrayIndex < iso2SensorOrderListType->SensorPosition.arrayLen ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ if(errn == 0) {
+ /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
+ errn = encodeNBitUnsignedInteger(stream, 1, 0);
+ if(errn == 0) {
+ errn = encodeNBitUnsignedInteger(stream, 8, (uint32_t)(iso2SensorOrderListType->SensorPosition.array[iso2SensorOrderListType_SensorPosition_currArrayIndex++] - 0));
+ /* valid EE */
+ errn = encodeNBitUnsignedInteger(stream, 1, 0);
+ }
+ }
+ grammarID = 863;
+ } else if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 863:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorPosition), END_ELEMENT] */
+ if (iso2SensorOrderListType_SensorPosition_currArrayIndex < iso2SensorOrderListType->SensorPosition.arrayLen ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ if(errn == 0) {
+ /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
+ errn = encodeNBitUnsignedInteger(stream, 1, 0);
+ if(errn == 0) {
+ errn = encodeNBitUnsignedInteger(stream, 8, (uint32_t)(iso2SensorOrderListType->SensorPosition.array[iso2SensorOrderListType_SensorPosition_currArrayIndex++] - 0));
+ /* valid EE */
+ errn = encodeNBitUnsignedInteger(stream, 1, 0);
+ }
+ }
+ grammarID = 864;
+ } else if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 864:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorPosition), END_ELEMENT] */
+ if (iso2SensorOrderListType_SensorPosition_currArrayIndex < iso2SensorOrderListType->SensorPosition.arrayLen ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ if(errn == 0) {
+ /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
+ errn = encodeNBitUnsignedInteger(stream, 1, 0);
+ if(errn == 0) {
+ errn = encodeNBitUnsignedInteger(stream, 8, (uint32_t)(iso2SensorOrderListType->SensorPosition.array[iso2SensorOrderListType_SensorPosition_currArrayIndex++] - 0));
+ /* valid EE */
+ errn = encodeNBitUnsignedInteger(stream, 1, 0);
+ }
+ }
+ grammarID = 865;
+ } else if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 865:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorPosition), END_ELEMENT] */
+ if (iso2SensorOrderListType_SensorPosition_currArrayIndex < iso2SensorOrderListType->SensorPosition.arrayLen ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ if(errn == 0) {
+ /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
+ errn = encodeNBitUnsignedInteger(stream, 1, 0);
+ if(errn == 0) {
+ errn = encodeNBitUnsignedInteger(stream, 8, (uint32_t)(iso2SensorOrderListType->SensorPosition.array[iso2SensorOrderListType_SensorPosition_currArrayIndex++] - 0));
+ /* valid EE */
+ errn = encodeNBitUnsignedInteger(stream, 1, 0);
+ }
+ }
+ grammarID = 866;
+ } else if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 866:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorPosition), END_ELEMENT] */
+ if (iso2SensorOrderListType_SensorPosition_currArrayIndex < iso2SensorOrderListType->SensorPosition.arrayLen ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ if(errn == 0) {
+ /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
+ errn = encodeNBitUnsignedInteger(stream, 1, 0);
+ if(errn == 0) {
+ errn = encodeNBitUnsignedInteger(stream, 8, (uint32_t)(iso2SensorOrderListType->SensorPosition.array[iso2SensorOrderListType_SensorPosition_currArrayIndex++] - 0));
+ /* valid EE */
+ errn = encodeNBitUnsignedInteger(stream, 1, 0);
+ }
+ }
+ grammarID = 867;
+ } else if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 867:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorPosition), END_ELEMENT] */
+ if (iso2SensorOrderListType_SensorPosition_currArrayIndex < iso2SensorOrderListType->SensorPosition.arrayLen ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ if(errn == 0) {
+ /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
+ errn = encodeNBitUnsignedInteger(stream, 1, 0);
+ if(errn == 0) {
+ errn = encodeNBitUnsignedInteger(stream, 8, (uint32_t)(iso2SensorOrderListType->SensorPosition.array[iso2SensorOrderListType_SensorPosition_currArrayIndex++] - 0));
+ /* valid EE */
+ errn = encodeNBitUnsignedInteger(stream, 1, 0);
+ }
+ }
+ grammarID = 868;
+ } else if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 868:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorPosition), END_ELEMENT] */
+ if (iso2SensorOrderListType_SensorPosition_currArrayIndex < iso2SensorOrderListType->SensorPosition.arrayLen ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ if(errn == 0) {
+ /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
+ errn = encodeNBitUnsignedInteger(stream, 1, 0);
+ if(errn == 0) {
+ errn = encodeNBitUnsignedInteger(stream, 8, (uint32_t)(iso2SensorOrderListType->SensorPosition.array[iso2SensorOrderListType_SensorPosition_currArrayIndex++] - 0));
+ /* valid EE */
+ errn = encodeNBitUnsignedInteger(stream, 1, 0);
+ }
+ }
+ grammarID = 869;
+ } else if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 869:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorPosition), END_ELEMENT] */
+ if (iso2SensorOrderListType_SensorPosition_currArrayIndex < iso2SensorOrderListType->SensorPosition.arrayLen ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ if(errn == 0) {
+ /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
+ errn = encodeNBitUnsignedInteger(stream, 1, 0);
+ if(errn == 0) {
+ errn = encodeNBitUnsignedInteger(stream, 8, (uint32_t)(iso2SensorOrderListType->SensorPosition.array[iso2SensorOrderListType_SensorPosition_currArrayIndex++] - 0));
+ /* valid EE */
+ errn = encodeNBitUnsignedInteger(stream, 1, 0);
+ }
+ }
+ grammarID = 870;
+ } else if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 870:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorPosition), END_ELEMENT] */
+ if (iso2SensorOrderListType_SensorPosition_currArrayIndex < iso2SensorOrderListType->SensorPosition.arrayLen ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ if(errn == 0) {
+ /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
+ errn = encodeNBitUnsignedInteger(stream, 1, 0);
+ if(errn == 0) {
+ errn = encodeNBitUnsignedInteger(stream, 8, (uint32_t)(iso2SensorOrderListType->SensorPosition.array[iso2SensorOrderListType_SensorPosition_currArrayIndex++] - 0));
+ /* valid EE */
+ errn = encodeNBitUnsignedInteger(stream, 1, 0);
+ }
+ }
+ grammarID = 871;
+ } else if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 871:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorPosition), END_ELEMENT] */
+ if (iso2SensorOrderListType_SensorPosition_currArrayIndex < iso2SensorOrderListType->SensorPosition.arrayLen ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ if(errn == 0) {
+ /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
+ errn = encodeNBitUnsignedInteger(stream, 1, 0);
+ if(errn == 0) {
+ errn = encodeNBitUnsignedInteger(stream, 8, (uint32_t)(iso2SensorOrderListType->SensorPosition.array[iso2SensorOrderListType_SensorPosition_currArrayIndex++] - 0));
+ /* valid EE */
+ errn = encodeNBitUnsignedInteger(stream, 1, 0);
+ }
+ }
+ grammarID = 872;
+ } else if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 872:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorPosition), END_ELEMENT] */
+ if (iso2SensorOrderListType_SensorPosition_currArrayIndex < iso2SensorOrderListType->SensorPosition.arrayLen ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ if(errn == 0) {
+ /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
+ errn = encodeNBitUnsignedInteger(stream, 1, 0);
+ if(errn == 0) {
+ errn = encodeNBitUnsignedInteger(stream, 8, (uint32_t)(iso2SensorOrderListType->SensorPosition.array[iso2SensorOrderListType_SensorPosition_currArrayIndex++] - 0));
+ /* valid EE */
+ errn = encodeNBitUnsignedInteger(stream, 1, 0);
+ }
+ }
+ grammarID = 873;
+ } else if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 873:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorPosition), END_ELEMENT] */
+ if (iso2SensorOrderListType_SensorPosition_currArrayIndex < iso2SensorOrderListType->SensorPosition.arrayLen ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ if(errn == 0) {
+ /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
+ errn = encodeNBitUnsignedInteger(stream, 1, 0);
+ if(errn == 0) {
+ errn = encodeNBitUnsignedInteger(stream, 8, (uint32_t)(iso2SensorOrderListType->SensorPosition.array[iso2SensorOrderListType_SensorPosition_currArrayIndex++] - 0));
+ /* valid EE */
+ errn = encodeNBitUnsignedInteger(stream, 1, 0);
+ }
+ }
+ grammarID = 874;
+ } else if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 874:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorPosition), END_ELEMENT] */
+ if (iso2SensorOrderListType_SensorPosition_currArrayIndex < iso2SensorOrderListType->SensorPosition.arrayLen ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ if(errn == 0) {
+ /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
+ errn = encodeNBitUnsignedInteger(stream, 1, 0);
+ if(errn == 0) {
+ errn = encodeNBitUnsignedInteger(stream, 8, (uint32_t)(iso2SensorOrderListType->SensorPosition.array[iso2SensorOrderListType_SensorPosition_currArrayIndex++] - 0));
+ /* valid EE */
+ errn = encodeNBitUnsignedInteger(stream, 1, 0);
+ }
+ }
+ grammarID = 875;
+ } else if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 875:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorPosition), END_ELEMENT] */
+ if (iso2SensorOrderListType_SensorPosition_currArrayIndex < iso2SensorOrderListType->SensorPosition.arrayLen ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ if(errn == 0) {
+ /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
+ errn = encodeNBitUnsignedInteger(stream, 1, 0);
+ if(errn == 0) {
+ errn = encodeNBitUnsignedInteger(stream, 8, (uint32_t)(iso2SensorOrderListType->SensorPosition.array[iso2SensorOrderListType_SensorPosition_currArrayIndex++] - 0));
+ /* valid EE */
+ errn = encodeNBitUnsignedInteger(stream, 1, 0);
+ }
+ }
+ grammarID = 876;
+ } else if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 876:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorPosition), END_ELEMENT] */
+ if (iso2SensorOrderListType_SensorPosition_currArrayIndex < iso2SensorOrderListType->SensorPosition.arrayLen ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ if(errn == 0) {
+ /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
+ errn = encodeNBitUnsignedInteger(stream, 1, 0);
+ if(errn == 0) {
+ errn = encodeNBitUnsignedInteger(stream, 8, (uint32_t)(iso2SensorOrderListType->SensorPosition.array[iso2SensorOrderListType_SensorPosition_currArrayIndex++] - 0));
+ /* valid EE */
+ errn = encodeNBitUnsignedInteger(stream, 1, 0);
+ }
+ }
+ grammarID = 877;
+ } else if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 877:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorPosition), END_ELEMENT] */
+ if (iso2SensorOrderListType_SensorPosition_currArrayIndex < iso2SensorOrderListType->SensorPosition.arrayLen ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ if(errn == 0) {
+ /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
+ errn = encodeNBitUnsignedInteger(stream, 1, 0);
+ if(errn == 0) {
+ errn = encodeNBitUnsignedInteger(stream, 8, (uint32_t)(iso2SensorOrderListType->SensorPosition.array[iso2SensorOrderListType_SensorPosition_currArrayIndex++] - 0));
+ /* valid EE */
+ errn = encodeNBitUnsignedInteger(stream, 1, 0);
+ }
+ }
+ grammarID = 878;
+ } else if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 878:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorPosition), END_ELEMENT] */
+ if (iso2SensorOrderListType_SensorPosition_currArrayIndex < iso2SensorOrderListType->SensorPosition.arrayLen ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ if(errn == 0) {
+ /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
+ errn = encodeNBitUnsignedInteger(stream, 1, 0);
+ if(errn == 0) {
+ errn = encodeNBitUnsignedInteger(stream, 8, (uint32_t)(iso2SensorOrderListType->SensorPosition.array[iso2SensorOrderListType_SensorPosition_currArrayIndex++] - 0));
+ /* valid EE */
+ errn = encodeNBitUnsignedInteger(stream, 1, 0);
+ }
+ }
+ grammarID = 879;
+ } else if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 879:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorPosition), END_ELEMENT] */
+ if (iso2SensorOrderListType_SensorPosition_currArrayIndex < iso2SensorOrderListType->SensorPosition.arrayLen ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ if(errn == 0) {
+ /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
+ errn = encodeNBitUnsignedInteger(stream, 1, 0);
+ if(errn == 0) {
+ errn = encodeNBitUnsignedInteger(stream, 8, (uint32_t)(iso2SensorOrderListType->SensorPosition.array[iso2SensorOrderListType_SensorPosition_currArrayIndex++] - 0));
+ /* valid EE */
+ errn = encodeNBitUnsignedInteger(stream, 1, 0);
+ }
+ }
+ grammarID = 880;
+ } else if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 880:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorPosition), END_ELEMENT] */
+ if (iso2SensorOrderListType_SensorPosition_currArrayIndex < iso2SensorOrderListType->SensorPosition.arrayLen ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ if(errn == 0) {
+ /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
+ errn = encodeNBitUnsignedInteger(stream, 1, 0);
+ if(errn == 0) {
+ errn = encodeNBitUnsignedInteger(stream, 8, (uint32_t)(iso2SensorOrderListType->SensorPosition.array[iso2SensorOrderListType_SensorPosition_currArrayIndex++] - 0));
+ /* valid EE */
+ errn = encodeNBitUnsignedInteger(stream, 1, 0);
+ }
+ }
+ grammarID = 881;
+ } else if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 881:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorPosition), END_ELEMENT] */
+ if (iso2SensorOrderListType_SensorPosition_currArrayIndex < iso2SensorOrderListType->SensorPosition.arrayLen ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ if(errn == 0) {
+ /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
+ errn = encodeNBitUnsignedInteger(stream, 1, 0);
+ if(errn == 0) {
+ errn = encodeNBitUnsignedInteger(stream, 8, (uint32_t)(iso2SensorOrderListType->SensorPosition.array[iso2SensorOrderListType_SensorPosition_currArrayIndex++] - 0));
+ /* valid EE */
+ errn = encodeNBitUnsignedInteger(stream, 1, 0);
+ }
+ }
+ grammarID = 882;
+ } else if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 882:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorPosition), END_ELEMENT] */
+ if (iso2SensorOrderListType_SensorPosition_currArrayIndex < iso2SensorOrderListType->SensorPosition.arrayLen ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ if(errn == 0) {
+ /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
+ errn = encodeNBitUnsignedInteger(stream, 1, 0);
+ if(errn == 0) {
+ errn = encodeNBitUnsignedInteger(stream, 8, (uint32_t)(iso2SensorOrderListType->SensorPosition.array[iso2SensorOrderListType_SensorPosition_currArrayIndex++] - 0));
+ /* valid EE */
+ errn = encodeNBitUnsignedInteger(stream, 1, 0);
+ }
+ }
+ grammarID = 883;
+ } else if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 883:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorPosition), END_ELEMENT] */
+ if (iso2SensorOrderListType_SensorPosition_currArrayIndex < iso2SensorOrderListType->SensorPosition.arrayLen ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ if(errn == 0) {
+ /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
+ errn = encodeNBitUnsignedInteger(stream, 1, 0);
+ if(errn == 0) {
+ errn = encodeNBitUnsignedInteger(stream, 8, (uint32_t)(iso2SensorOrderListType->SensorPosition.array[iso2SensorOrderListType_SensorPosition_currArrayIndex++] - 0));
+ /* valid EE */
+ errn = encodeNBitUnsignedInteger(stream, 1, 0);
+ }
+ }
+ grammarID = 884;
+ } else if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 884:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorPosition), END_ELEMENT] */
+ if (iso2SensorOrderListType_SensorPosition_currArrayIndex < iso2SensorOrderListType->SensorPosition.arrayLen ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ if(errn == 0) {
+ /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
+ errn = encodeNBitUnsignedInteger(stream, 1, 0);
+ if(errn == 0) {
+ errn = encodeNBitUnsignedInteger(stream, 8, (uint32_t)(iso2SensorOrderListType->SensorPosition.array[iso2SensorOrderListType_SensorPosition_currArrayIndex++] - 0));
+ /* valid EE */
+ errn = encodeNBitUnsignedInteger(stream, 1, 0);
+ }
+ }
+ grammarID = 885;
+ } else if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 885:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorPosition), END_ELEMENT] */
+ if (iso2SensorOrderListType_SensorPosition_currArrayIndex < iso2SensorOrderListType->SensorPosition.arrayLen ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ if(errn == 0) {
+ /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
+ errn = encodeNBitUnsignedInteger(stream, 1, 0);
+ if(errn == 0) {
+ errn = encodeNBitUnsignedInteger(stream, 8, (uint32_t)(iso2SensorOrderListType->SensorPosition.array[iso2SensorOrderListType_SensorPosition_currArrayIndex++] - 0));
+ /* valid EE */
+ errn = encodeNBitUnsignedInteger(stream, 1, 0);
+ }
+ }
+ grammarID = 886;
+ } else if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 886:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorPosition), END_ELEMENT] */
+ if (iso2SensorOrderListType_SensorPosition_currArrayIndex < iso2SensorOrderListType->SensorPosition.arrayLen ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ if(errn == 0) {
+ /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
+ errn = encodeNBitUnsignedInteger(stream, 1, 0);
+ if(errn == 0) {
+ errn = encodeNBitUnsignedInteger(stream, 8, (uint32_t)(iso2SensorOrderListType->SensorPosition.array[iso2SensorOrderListType_SensorPosition_currArrayIndex++] - 0));
+ /* valid EE */
+ errn = encodeNBitUnsignedInteger(stream, 1, 0);
+ }
+ }
+ grammarID = 887;
+ } else if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 887:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorPosition), END_ELEMENT] */
+ if (iso2SensorOrderListType_SensorPosition_currArrayIndex < iso2SensorOrderListType->SensorPosition.arrayLen ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ if(errn == 0) {
+ /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
+ errn = encodeNBitUnsignedInteger(stream, 1, 0);
+ if(errn == 0) {
+ errn = encodeNBitUnsignedInteger(stream, 8, (uint32_t)(iso2SensorOrderListType->SensorPosition.array[iso2SensorOrderListType_SensorPosition_currArrayIndex++] - 0));
+ /* valid EE */
+ errn = encodeNBitUnsignedInteger(stream, 1, 0);
+ }
+ }
+ grammarID = 888;
+ } else if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 888:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorPosition), END_ELEMENT] */
+ if (iso2SensorOrderListType_SensorPosition_currArrayIndex < iso2SensorOrderListType->SensorPosition.arrayLen ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ if(errn == 0) {
+ /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
+ errn = encodeNBitUnsignedInteger(stream, 1, 0);
+ if(errn == 0) {
+ errn = encodeNBitUnsignedInteger(stream, 8, (uint32_t)(iso2SensorOrderListType->SensorPosition.array[iso2SensorOrderListType_SensorPosition_currArrayIndex++] - 0));
+ /* valid EE */
+ errn = encodeNBitUnsignedInteger(stream, 1, 0);
+ }
+ }
+ grammarID = 889;
+ } else if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 889:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorPosition), END_ELEMENT] */
+ if (iso2SensorOrderListType_SensorPosition_currArrayIndex < iso2SensorOrderListType->SensorPosition.arrayLen ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ if(errn == 0) {
+ /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
+ errn = encodeNBitUnsignedInteger(stream, 1, 0);
+ if(errn == 0) {
+ errn = encodeNBitUnsignedInteger(stream, 8, (uint32_t)(iso2SensorOrderListType->SensorPosition.array[iso2SensorOrderListType_SensorPosition_currArrayIndex++] - 0));
+ /* valid EE */
+ errn = encodeNBitUnsignedInteger(stream, 1, 0);
+ }
+ }
+ grammarID = 890;
+ } else if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 890:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorPosition), END_ELEMENT] */
+ if (iso2SensorOrderListType_SensorPosition_currArrayIndex < iso2SensorOrderListType->SensorPosition.arrayLen ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ if(errn == 0) {
+ /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
+ errn = encodeNBitUnsignedInteger(stream, 1, 0);
+ if(errn == 0) {
+ errn = encodeNBitUnsignedInteger(stream, 8, (uint32_t)(iso2SensorOrderListType->SensorPosition.array[iso2SensorOrderListType_SensorPosition_currArrayIndex++] - 0));
+ /* valid EE */
+ errn = encodeNBitUnsignedInteger(stream, 1, 0);
+ }
+ }
+ grammarID = 891;
+ } else if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 891:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorPosition), END_ELEMENT] */
+ if (iso2SensorOrderListType_SensorPosition_currArrayIndex < iso2SensorOrderListType->SensorPosition.arrayLen ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ if(errn == 0) {
+ /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
+ errn = encodeNBitUnsignedInteger(stream, 1, 0);
+ if(errn == 0) {
+ errn = encodeNBitUnsignedInteger(stream, 8, (uint32_t)(iso2SensorOrderListType->SensorPosition.array[iso2SensorOrderListType_SensorPosition_currArrayIndex++] - 0));
+ /* valid EE */
+ errn = encodeNBitUnsignedInteger(stream, 1, 0);
+ }
+ }
+ grammarID = 892;
+ } else if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 892:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorPosition), END_ELEMENT] */
+ if (iso2SensorOrderListType_SensorPosition_currArrayIndex < iso2SensorOrderListType->SensorPosition.arrayLen ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ if(errn == 0) {
+ /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
+ errn = encodeNBitUnsignedInteger(stream, 1, 0);
+ if(errn == 0) {
+ errn = encodeNBitUnsignedInteger(stream, 8, (uint32_t)(iso2SensorOrderListType->SensorPosition.array[iso2SensorOrderListType_SensorPosition_currArrayIndex++] - 0));
+ /* valid EE */
+ errn = encodeNBitUnsignedInteger(stream, 1, 0);
+ }
+ }
+ grammarID = 893;
+ } else if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 893:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorPosition), END_ELEMENT] */
+ if (iso2SensorOrderListType_SensorPosition_currArrayIndex < iso2SensorOrderListType->SensorPosition.arrayLen ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ if(errn == 0) {
+ /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
+ errn = encodeNBitUnsignedInteger(stream, 1, 0);
+ if(errn == 0) {
+ errn = encodeNBitUnsignedInteger(stream, 8, (uint32_t)(iso2SensorOrderListType->SensorPosition.array[iso2SensorOrderListType_SensorPosition_currArrayIndex++] - 0));
+ /* valid EE */
+ errn = encodeNBitUnsignedInteger(stream, 1, 0);
+ }
+ }
+ grammarID = 894;
+ } else if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 894:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorPosition), END_ELEMENT] */
+ if (iso2SensorOrderListType_SensorPosition_currArrayIndex < iso2SensorOrderListType->SensorPosition.arrayLen ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ if(errn == 0) {
+ /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
+ errn = encodeNBitUnsignedInteger(stream, 1, 0);
+ if(errn == 0) {
+ errn = encodeNBitUnsignedInteger(stream, 8, (uint32_t)(iso2SensorOrderListType->SensorPosition.array[iso2SensorOrderListType_SensorPosition_currArrayIndex++] - 0));
+ /* valid EE */
+ errn = encodeNBitUnsignedInteger(stream, 1, 0);
+ }
+ }
+ grammarID = 895;
+ } else if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 895:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorPosition), END_ELEMENT] */
+ if (iso2SensorOrderListType_SensorPosition_currArrayIndex < iso2SensorOrderListType->SensorPosition.arrayLen ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ if(errn == 0) {
+ /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
+ errn = encodeNBitUnsignedInteger(stream, 1, 0);
+ if(errn == 0) {
+ errn = encodeNBitUnsignedInteger(stream, 8, (uint32_t)(iso2SensorOrderListType->SensorPosition.array[iso2SensorOrderListType_SensorPosition_currArrayIndex++] - 0));
+ /* valid EE */
+ errn = encodeNBitUnsignedInteger(stream, 1, 0);
+ }
+ }
+ grammarID = 896;
+ } else if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 896:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorPosition), END_ELEMENT] */
+ if (iso2SensorOrderListType_SensorPosition_currArrayIndex < iso2SensorOrderListType->SensorPosition.arrayLen ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ if(errn == 0) {
+ /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
+ errn = encodeNBitUnsignedInteger(stream, 1, 0);
+ if(errn == 0) {
+ errn = encodeNBitUnsignedInteger(stream, 8, (uint32_t)(iso2SensorOrderListType->SensorPosition.array[iso2SensorOrderListType_SensorPosition_currArrayIndex++] - 0));
+ /* valid EE */
+ errn = encodeNBitUnsignedInteger(stream, 1, 0);
+ }
+ }
+ grammarID = 897;
+ } else if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 897:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorPosition), END_ELEMENT] */
+ if (iso2SensorOrderListType_SensorPosition_currArrayIndex < iso2SensorOrderListType->SensorPosition.arrayLen ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ if(errn == 0) {
+ /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
+ errn = encodeNBitUnsignedInteger(stream, 1, 0);
+ if(errn == 0) {
+ errn = encodeNBitUnsignedInteger(stream, 8, (uint32_t)(iso2SensorOrderListType->SensorPosition.array[iso2SensorOrderListType_SensorPosition_currArrayIndex++] - 0));
+ /* valid EE */
+ errn = encodeNBitUnsignedInteger(stream, 1, 0);
+ }
+ }
+ grammarID = 898;
+ } else if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 898:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorPosition), END_ELEMENT] */
+ if (iso2SensorOrderListType_SensorPosition_currArrayIndex < iso2SensorOrderListType->SensorPosition.arrayLen ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ if(errn == 0) {
+ /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
+ errn = encodeNBitUnsignedInteger(stream, 1, 0);
+ if(errn == 0) {
+ errn = encodeNBitUnsignedInteger(stream, 8, (uint32_t)(iso2SensorOrderListType->SensorPosition.array[iso2SensorOrderListType_SensorPosition_currArrayIndex++] - 0));
+ /* valid EE */
+ errn = encodeNBitUnsignedInteger(stream, 1, 0);
+ }
+ }
+ grammarID = 899;
+ } else if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 899:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorPosition), END_ELEMENT] */
+ if (iso2SensorOrderListType_SensorPosition_currArrayIndex < iso2SensorOrderListType->SensorPosition.arrayLen ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ if(errn == 0) {
+ /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
+ errn = encodeNBitUnsignedInteger(stream, 1, 0);
+ if(errn == 0) {
+ errn = encodeNBitUnsignedInteger(stream, 8, (uint32_t)(iso2SensorOrderListType->SensorPosition.array[iso2SensorOrderListType_SensorPosition_currArrayIndex++] - 0));
+ /* valid EE */
+ errn = encodeNBitUnsignedInteger(stream, 1, 0);
+ }
+ }
+ grammarID = 900;
+ } else if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 900:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorPosition), END_ELEMENT] */
+ if (iso2SensorOrderListType_SensorPosition_currArrayIndex < iso2SensorOrderListType->SensorPosition.arrayLen ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ if(errn == 0) {
+ /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
+ errn = encodeNBitUnsignedInteger(stream, 1, 0);
+ if(errn == 0) {
+ errn = encodeNBitUnsignedInteger(stream, 8, (uint32_t)(iso2SensorOrderListType->SensorPosition.array[iso2SensorOrderListType_SensorPosition_currArrayIndex++] - 0));
+ /* valid EE */
+ errn = encodeNBitUnsignedInteger(stream, 1, 0);
+ }
+ }
+ grammarID = 901;
+ } else if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 901:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorPosition), END_ELEMENT] */
+ if (iso2SensorOrderListType_SensorPosition_currArrayIndex < iso2SensorOrderListType->SensorPosition.arrayLen ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ if(errn == 0) {
+ /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
+ errn = encodeNBitUnsignedInteger(stream, 1, 0);
+ if(errn == 0) {
+ errn = encodeNBitUnsignedInteger(stream, 8, (uint32_t)(iso2SensorOrderListType->SensorPosition.array[iso2SensorOrderListType_SensorPosition_currArrayIndex++] - 0));
+ /* valid EE */
+ errn = encodeNBitUnsignedInteger(stream, 1, 0);
+ }
+ }
+ grammarID = 902;
+ } else if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 902:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorPosition), END_ELEMENT] */
+ if (iso2SensorOrderListType_SensorPosition_currArrayIndex < iso2SensorOrderListType->SensorPosition.arrayLen ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ if(errn == 0) {
+ /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
+ errn = encodeNBitUnsignedInteger(stream, 1, 0);
+ if(errn == 0) {
+ errn = encodeNBitUnsignedInteger(stream, 8, (uint32_t)(iso2SensorOrderListType->SensorPosition.array[iso2SensorOrderListType_SensorPosition_currArrayIndex++] - 0));
+ /* valid EE */
+ errn = encodeNBitUnsignedInteger(stream, 1, 0);
+ }
+ }
+ grammarID = 903;
+ } else if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 903:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorPosition), END_ELEMENT] */
+ if (iso2SensorOrderListType_SensorPosition_currArrayIndex < iso2SensorOrderListType->SensorPosition.arrayLen ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ if(errn == 0) {
+ /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
+ errn = encodeNBitUnsignedInteger(stream, 1, 0);
+ if(errn == 0) {
+ errn = encodeNBitUnsignedInteger(stream, 8, (uint32_t)(iso2SensorOrderListType->SensorPosition.array[iso2SensorOrderListType_SensorPosition_currArrayIndex++] - 0));
+ /* valid EE */
+ errn = encodeNBitUnsignedInteger(stream, 1, 0);
+ }
+ }
+ grammarID = 904;
+ } else if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 904:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorPosition), END_ELEMENT] */
+ if (iso2SensorOrderListType_SensorPosition_currArrayIndex < iso2SensorOrderListType->SensorPosition.arrayLen ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ if(errn == 0) {
+ /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
+ errn = encodeNBitUnsignedInteger(stream, 1, 0);
+ if(errn == 0) {
+ errn = encodeNBitUnsignedInteger(stream, 8, (uint32_t)(iso2SensorOrderListType->SensorPosition.array[iso2SensorOrderListType_SensorPosition_currArrayIndex++] - 0));
+ /* valid EE */
+ errn = encodeNBitUnsignedInteger(stream, 1, 0);
+ }
+ }
+ grammarID = 905;
+ } else if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 905:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorPosition), END_ELEMENT] */
+ if (iso2SensorOrderListType_SensorPosition_currArrayIndex < iso2SensorOrderListType->SensorPosition.arrayLen ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ if(errn == 0) {
+ /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
+ errn = encodeNBitUnsignedInteger(stream, 1, 0);
+ if(errn == 0) {
+ errn = encodeNBitUnsignedInteger(stream, 8, (uint32_t)(iso2SensorOrderListType->SensorPosition.array[iso2SensorOrderListType_SensorPosition_currArrayIndex++] - 0));
+ /* valid EE */
+ errn = encodeNBitUnsignedInteger(stream, 1, 0);
+ }
+ }
+ grammarID = 906;
+ } else if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 906:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorPosition), END_ELEMENT] */
+ if (iso2SensorOrderListType_SensorPosition_currArrayIndex < iso2SensorOrderListType->SensorPosition.arrayLen ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ if(errn == 0) {
+ /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
+ errn = encodeNBitUnsignedInteger(stream, 1, 0);
+ if(errn == 0) {
+ errn = encodeNBitUnsignedInteger(stream, 8, (uint32_t)(iso2SensorOrderListType->SensorPosition.array[iso2SensorOrderListType_SensorPosition_currArrayIndex++] - 0));
+ /* valid EE */
+ errn = encodeNBitUnsignedInteger(stream, 1, 0);
+ }
+ }
+ grammarID = 907;
+ } else if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 907:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorPosition), END_ELEMENT] */
+ if (iso2SensorOrderListType_SensorPosition_currArrayIndex < iso2SensorOrderListType->SensorPosition.arrayLen ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ if(errn == 0) {
+ /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
+ errn = encodeNBitUnsignedInteger(stream, 1, 0);
+ if(errn == 0) {
+ errn = encodeNBitUnsignedInteger(stream, 8, (uint32_t)(iso2SensorOrderListType->SensorPosition.array[iso2SensorOrderListType_SensorPosition_currArrayIndex++] - 0));
+ /* valid EE */
+ errn = encodeNBitUnsignedInteger(stream, 1, 0);
+ }
+ }
+ grammarID = 908;
+ } else if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 908:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorPosition), END_ELEMENT] */
+ if (iso2SensorOrderListType_SensorPosition_currArrayIndex < iso2SensorOrderListType->SensorPosition.arrayLen ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ if(errn == 0) {
+ /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
+ errn = encodeNBitUnsignedInteger(stream, 1, 0);
+ if(errn == 0) {
+ errn = encodeNBitUnsignedInteger(stream, 8, (uint32_t)(iso2SensorOrderListType->SensorPosition.array[iso2SensorOrderListType_SensorPosition_currArrayIndex++] - 0));
+ /* valid EE */
+ errn = encodeNBitUnsignedInteger(stream, 1, 0);
+ }
+ }
+ grammarID = 909;
+ } else if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 909:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorPosition), END_ELEMENT] */
+ if (iso2SensorOrderListType_SensorPosition_currArrayIndex < iso2SensorOrderListType->SensorPosition.arrayLen ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ if(errn == 0) {
+ /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
+ errn = encodeNBitUnsignedInteger(stream, 1, 0);
+ if(errn == 0) {
+ errn = encodeNBitUnsignedInteger(stream, 8, (uint32_t)(iso2SensorOrderListType->SensorPosition.array[iso2SensorOrderListType_SensorPosition_currArrayIndex++] - 0));
+ /* valid EE */
+ errn = encodeNBitUnsignedInteger(stream, 1, 0);
+ }
+ }
+ grammarID = 910;
+ } else if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 910:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorPosition), END_ELEMENT] */
+ if (iso2SensorOrderListType_SensorPosition_currArrayIndex < iso2SensorOrderListType->SensorPosition.arrayLen ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ if(errn == 0) {
+ /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
+ errn = encodeNBitUnsignedInteger(stream, 1, 0);
+ if(errn == 0) {
+ errn = encodeNBitUnsignedInteger(stream, 8, (uint32_t)(iso2SensorOrderListType->SensorPosition.array[iso2SensorOrderListType_SensorPosition_currArrayIndex++] - 0));
+ /* valid EE */
+ errn = encodeNBitUnsignedInteger(stream, 1, 0);
+ }
+ }
+ grammarID = 911;
+ } else if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 911:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorPosition), END_ELEMENT] */
+ if (iso2SensorOrderListType_SensorPosition_currArrayIndex < iso2SensorOrderListType->SensorPosition.arrayLen ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ if(errn == 0) {
+ /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
+ errn = encodeNBitUnsignedInteger(stream, 1, 0);
+ if(errn == 0) {
+ errn = encodeNBitUnsignedInteger(stream, 8, (uint32_t)(iso2SensorOrderListType->SensorPosition.array[iso2SensorOrderListType_SensorPosition_currArrayIndex++] - 0));
+ /* valid EE */
+ errn = encodeNBitUnsignedInteger(stream, 1, 0);
+ }
+ }
+ grammarID = 912;
+ } else if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 912:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorPosition), END_ELEMENT] */
+ if (iso2SensorOrderListType_SensorPosition_currArrayIndex < iso2SensorOrderListType->SensorPosition.arrayLen ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ if(errn == 0) {
+ /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
+ errn = encodeNBitUnsignedInteger(stream, 1, 0);
+ if(errn == 0) {
+ errn = encodeNBitUnsignedInteger(stream, 8, (uint32_t)(iso2SensorOrderListType->SensorPosition.array[iso2SensorOrderListType_SensorPosition_currArrayIndex++] - 0));
+ /* valid EE */
+ errn = encodeNBitUnsignedInteger(stream, 1, 0);
+ }
+ }
+ grammarID = 913;
+ } else if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 913:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorPosition), END_ELEMENT] */
+ if (iso2SensorOrderListType_SensorPosition_currArrayIndex < iso2SensorOrderListType->SensorPosition.arrayLen ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ if(errn == 0) {
+ /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
+ errn = encodeNBitUnsignedInteger(stream, 1, 0);
+ if(errn == 0) {
+ errn = encodeNBitUnsignedInteger(stream, 8, (uint32_t)(iso2SensorOrderListType->SensorPosition.array[iso2SensorOrderListType_SensorPosition_currArrayIndex++] - 0));
+ /* valid EE */
+ errn = encodeNBitUnsignedInteger(stream, 1, 0);
+ }
+ }
+ grammarID = 914;
+ } else if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 914:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorPosition), END_ELEMENT] */
+ if (iso2SensorOrderListType_SensorPosition_currArrayIndex < iso2SensorOrderListType->SensorPosition.arrayLen ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ if(errn == 0) {
+ /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
+ errn = encodeNBitUnsignedInteger(stream, 1, 0);
+ if(errn == 0) {
+ errn = encodeNBitUnsignedInteger(stream, 8, (uint32_t)(iso2SensorOrderListType->SensorPosition.array[iso2SensorOrderListType_SensorPosition_currArrayIndex++] - 0));
+ /* valid EE */
+ errn = encodeNBitUnsignedInteger(stream, 1, 0);
+ }
+ }
+ grammarID = 915;
+ } else if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 915:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorPosition), END_ELEMENT] */
+ if (iso2SensorOrderListType_SensorPosition_currArrayIndex < iso2SensorOrderListType->SensorPosition.arrayLen ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ if(errn == 0) {
+ /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
+ errn = encodeNBitUnsignedInteger(stream, 1, 0);
+ if(errn == 0) {
+ errn = encodeNBitUnsignedInteger(stream, 8, (uint32_t)(iso2SensorOrderListType->SensorPosition.array[iso2SensorOrderListType_SensorPosition_currArrayIndex++] - 0));
+ /* valid EE */
+ errn = encodeNBitUnsignedInteger(stream, 1, 0);
+ }
+ }
+ grammarID = 916;
+ } else if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 916:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorPosition), END_ELEMENT] */
+ if (iso2SensorOrderListType_SensorPosition_currArrayIndex < iso2SensorOrderListType->SensorPosition.arrayLen ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ if(errn == 0) {
+ /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
+ errn = encodeNBitUnsignedInteger(stream, 1, 0);
+ if(errn == 0) {
+ errn = encodeNBitUnsignedInteger(stream, 8, (uint32_t)(iso2SensorOrderListType->SensorPosition.array[iso2SensorOrderListType_SensorPosition_currArrayIndex++] - 0));
+ /* valid EE */
+ errn = encodeNBitUnsignedInteger(stream, 1, 0);
+ }
+ }
+ grammarID = 917;
+ } else if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 917:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorPosition), END_ELEMENT] */
+ if (iso2SensorOrderListType_SensorPosition_currArrayIndex < iso2SensorOrderListType->SensorPosition.arrayLen ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ if(errn == 0) {
+ /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
+ errn = encodeNBitUnsignedInteger(stream, 1, 0);
+ if(errn == 0) {
+ errn = encodeNBitUnsignedInteger(stream, 8, (uint32_t)(iso2SensorOrderListType->SensorPosition.array[iso2SensorOrderListType_SensorPosition_currArrayIndex++] - 0));
+ /* valid EE */
+ errn = encodeNBitUnsignedInteger(stream, 1, 0);
+ }
+ }
+ grammarID = 918;
+ } else if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 918:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorPosition), END_ELEMENT] */
+ if (iso2SensorOrderListType_SensorPosition_currArrayIndex < iso2SensorOrderListType->SensorPosition.arrayLen ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ if(errn == 0) {
+ /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
+ errn = encodeNBitUnsignedInteger(stream, 1, 0);
+ if(errn == 0) {
+ errn = encodeNBitUnsignedInteger(stream, 8, (uint32_t)(iso2SensorOrderListType->SensorPosition.array[iso2SensorOrderListType_SensorPosition_currArrayIndex++] - 0));
+ /* valid EE */
+ errn = encodeNBitUnsignedInteger(stream, 1, 0);
+ }
+ }
+ grammarID = 919;
+ } else if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 919:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorPosition), END_ELEMENT] */
+ if (iso2SensorOrderListType_SensorPosition_currArrayIndex < iso2SensorOrderListType->SensorPosition.arrayLen ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ if(errn == 0) {
+ /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
+ errn = encodeNBitUnsignedInteger(stream, 1, 0);
+ if(errn == 0) {
+ errn = encodeNBitUnsignedInteger(stream, 8, (uint32_t)(iso2SensorOrderListType->SensorPosition.array[iso2SensorOrderListType_SensorPosition_currArrayIndex++] - 0));
+ /* valid EE */
+ errn = encodeNBitUnsignedInteger(stream, 1, 0);
+ }
+ }
+ grammarID = 920;
+ } else if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 920:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorPosition), END_ELEMENT] */
+ if (iso2SensorOrderListType_SensorPosition_currArrayIndex < iso2SensorOrderListType->SensorPosition.arrayLen ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ if(errn == 0) {
+ /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
+ errn = encodeNBitUnsignedInteger(stream, 1, 0);
+ if(errn == 0) {
+ errn = encodeNBitUnsignedInteger(stream, 8, (uint32_t)(iso2SensorOrderListType->SensorPosition.array[iso2SensorOrderListType_SensorPosition_currArrayIndex++] - 0));
+ /* valid EE */
+ errn = encodeNBitUnsignedInteger(stream, 1, 0);
+ }
+ }
+ grammarID = 921;
+ } else if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 921:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorPosition), END_ELEMENT] */
+ if (iso2SensorOrderListType_SensorPosition_currArrayIndex < iso2SensorOrderListType->SensorPosition.arrayLen ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ if(errn == 0) {
+ /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
+ errn = encodeNBitUnsignedInteger(stream, 1, 0);
+ if(errn == 0) {
+ errn = encodeNBitUnsignedInteger(stream, 8, (uint32_t)(iso2SensorOrderListType->SensorPosition.array[iso2SensorOrderListType_SensorPosition_currArrayIndex++] - 0));
+ /* valid EE */
+ errn = encodeNBitUnsignedInteger(stream, 1, 0);
+ }
+ }
+ grammarID = 922;
+ } else if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 922:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorPosition), END_ELEMENT] */
+ if (iso2SensorOrderListType_SensorPosition_currArrayIndex < iso2SensorOrderListType->SensorPosition.arrayLen ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ if(errn == 0) {
+ /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
+ errn = encodeNBitUnsignedInteger(stream, 1, 0);
+ if(errn == 0) {
+ errn = encodeNBitUnsignedInteger(stream, 8, (uint32_t)(iso2SensorOrderListType->SensorPosition.array[iso2SensorOrderListType_SensorPosition_currArrayIndex++] - 0));
+ /* valid EE */
+ errn = encodeNBitUnsignedInteger(stream, 1, 0);
+ }
+ }
+ grammarID = 923;
+ } else if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 923:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorPosition), END_ELEMENT] */
+ if (iso2SensorOrderListType_SensorPosition_currArrayIndex < iso2SensorOrderListType->SensorPosition.arrayLen ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ if(errn == 0) {
+ /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
+ errn = encodeNBitUnsignedInteger(stream, 1, 0);
+ if(errn == 0) {
+ errn = encodeNBitUnsignedInteger(stream, 8, (uint32_t)(iso2SensorOrderListType->SensorPosition.array[iso2SensorOrderListType_SensorPosition_currArrayIndex++] - 0));
+ /* valid EE */
+ errn = encodeNBitUnsignedInteger(stream, 1, 0);
+ }
+ }
+ grammarID = 924;
+ } else if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 924:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorPosition), END_ELEMENT] */
+ if (iso2SensorOrderListType_SensorPosition_currArrayIndex < iso2SensorOrderListType->SensorPosition.arrayLen ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ if(errn == 0) {
+ /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
+ errn = encodeNBitUnsignedInteger(stream, 1, 0);
+ if(errn == 0) {
+ errn = encodeNBitUnsignedInteger(stream, 8, (uint32_t)(iso2SensorOrderListType->SensorPosition.array[iso2SensorOrderListType_SensorPosition_currArrayIndex++] - 0));
+ /* valid EE */
+ errn = encodeNBitUnsignedInteger(stream, 1, 0);
+ }
+ }
+ grammarID = 925;
+ } else if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 925:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorPosition), END_ELEMENT] */
+ if (iso2SensorOrderListType_SensorPosition_currArrayIndex < iso2SensorOrderListType->SensorPosition.arrayLen ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ if(errn == 0) {
+ /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
+ errn = encodeNBitUnsignedInteger(stream, 1, 0);
+ if(errn == 0) {
+ errn = encodeNBitUnsignedInteger(stream, 8, (uint32_t)(iso2SensorOrderListType->SensorPosition.array[iso2SensorOrderListType_SensorPosition_currArrayIndex++] - 0));
+ /* valid EE */
+ errn = encodeNBitUnsignedInteger(stream, 1, 0);
+ }
+ }
+ grammarID = 926;
+ } else if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 926:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorPosition), END_ELEMENT] */
+ if (iso2SensorOrderListType_SensorPosition_currArrayIndex < iso2SensorOrderListType->SensorPosition.arrayLen ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ if(errn == 0) {
+ /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
+ errn = encodeNBitUnsignedInteger(stream, 1, 0);
+ if(errn == 0) {
+ errn = encodeNBitUnsignedInteger(stream, 8, (uint32_t)(iso2SensorOrderListType->SensorPosition.array[iso2SensorOrderListType_SensorPosition_currArrayIndex++] - 0));
+ /* valid EE */
+ errn = encodeNBitUnsignedInteger(stream, 1, 0);
+ }
+ }
+ grammarID = 927;
+ } else if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 927:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorPosition), END_ELEMENT] */
+ if (iso2SensorOrderListType_SensorPosition_currArrayIndex < iso2SensorOrderListType->SensorPosition.arrayLen ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ if(errn == 0) {
+ /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
+ errn = encodeNBitUnsignedInteger(stream, 1, 0);
+ if(errn == 0) {
+ errn = encodeNBitUnsignedInteger(stream, 8, (uint32_t)(iso2SensorOrderListType->SensorPosition.array[iso2SensorOrderListType_SensorPosition_currArrayIndex++] - 0));
+ /* valid EE */
+ errn = encodeNBitUnsignedInteger(stream, 1, 0);
+ }
+ }
+ grammarID = 928;
+ } else if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 928:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorPosition), END_ELEMENT] */
+ if (iso2SensorOrderListType_SensorPosition_currArrayIndex < iso2SensorOrderListType->SensorPosition.arrayLen ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ if(errn == 0) {
+ /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
+ errn = encodeNBitUnsignedInteger(stream, 1, 0);
+ if(errn == 0) {
+ errn = encodeNBitUnsignedInteger(stream, 8, (uint32_t)(iso2SensorOrderListType->SensorPosition.array[iso2SensorOrderListType_SensorPosition_currArrayIndex++] - 0));
+ /* valid EE */
+ errn = encodeNBitUnsignedInteger(stream, 1, 0);
+ }
+ }
+ grammarID = 929;
+ } else if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 929:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorPosition), END_ELEMENT] */
+ if (iso2SensorOrderListType_SensorPosition_currArrayIndex < iso2SensorOrderListType->SensorPosition.arrayLen ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ if(errn == 0) {
+ /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
+ errn = encodeNBitUnsignedInteger(stream, 1, 0);
+ if(errn == 0) {
+ errn = encodeNBitUnsignedInteger(stream, 8, (uint32_t)(iso2SensorOrderListType->SensorPosition.array[iso2SensorOrderListType_SensorPosition_currArrayIndex++] - 0));
+ /* valid EE */
+ errn = encodeNBitUnsignedInteger(stream, 1, 0);
+ }
+ }
+ grammarID = 930;
+ } else if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 930:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorPosition), END_ELEMENT] */
+ if (iso2SensorOrderListType_SensorPosition_currArrayIndex < iso2SensorOrderListType->SensorPosition.arrayLen ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ if(errn == 0) {
+ /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
+ errn = encodeNBitUnsignedInteger(stream, 1, 0);
+ if(errn == 0) {
+ errn = encodeNBitUnsignedInteger(stream, 8, (uint32_t)(iso2SensorOrderListType->SensorPosition.array[iso2SensorOrderListType_SensorPosition_currArrayIndex++] - 0));
+ /* valid EE */
+ errn = encodeNBitUnsignedInteger(stream, 1, 0);
+ }
+ }
+ grammarID = 931;
+ } else if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 931:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorPosition), END_ELEMENT] */
+ if (iso2SensorOrderListType_SensorPosition_currArrayIndex < iso2SensorOrderListType->SensorPosition.arrayLen ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ if(errn == 0) {
+ /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
+ errn = encodeNBitUnsignedInteger(stream, 1, 0);
+ if(errn == 0) {
+ errn = encodeNBitUnsignedInteger(stream, 8, (uint32_t)(iso2SensorOrderListType->SensorPosition.array[iso2SensorOrderListType_SensorPosition_currArrayIndex++] - 0));
+ /* valid EE */
+ errn = encodeNBitUnsignedInteger(stream, 1, 0);
+ }
+ }
+ grammarID = 932;
+ } else if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 932:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorPosition), END_ELEMENT] */
+ if (iso2SensorOrderListType_SensorPosition_currArrayIndex < iso2SensorOrderListType->SensorPosition.arrayLen ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ if(errn == 0) {
+ /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
+ errn = encodeNBitUnsignedInteger(stream, 1, 0);
+ if(errn == 0) {
+ errn = encodeNBitUnsignedInteger(stream, 8, (uint32_t)(iso2SensorOrderListType->SensorPosition.array[iso2SensorOrderListType_SensorPosition_currArrayIndex++] - 0));
+ /* valid EE */
+ errn = encodeNBitUnsignedInteger(stream, 1, 0);
+ }
+ }
+ grammarID = 933;
+ } else if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 933:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorPosition), END_ELEMENT] */
+ if (iso2SensorOrderListType_SensorPosition_currArrayIndex < iso2SensorOrderListType->SensorPosition.arrayLen ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ if(errn == 0) {
+ /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
+ errn = encodeNBitUnsignedInteger(stream, 1, 0);
+ if(errn == 0) {
+ errn = encodeNBitUnsignedInteger(stream, 8, (uint32_t)(iso2SensorOrderListType->SensorPosition.array[iso2SensorOrderListType_SensorPosition_currArrayIndex++] - 0));
+ /* valid EE */
+ errn = encodeNBitUnsignedInteger(stream, 1, 0);
+ }
+ }
+ grammarID = 934;
+ } else if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 934:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorPosition), END_ELEMENT] */
+ if (iso2SensorOrderListType_SensorPosition_currArrayIndex < iso2SensorOrderListType->SensorPosition.arrayLen ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ if(errn == 0) {
+ /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
+ errn = encodeNBitUnsignedInteger(stream, 1, 0);
+ if(errn == 0) {
+ errn = encodeNBitUnsignedInteger(stream, 8, (uint32_t)(iso2SensorOrderListType->SensorPosition.array[iso2SensorOrderListType_SensorPosition_currArrayIndex++] - 0));
+ /* valid EE */
+ errn = encodeNBitUnsignedInteger(stream, 1, 0);
+ }
+ }
+ grammarID = 935;
+ } else if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 935:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorPosition), END_ELEMENT] */
+ if (iso2SensorOrderListType_SensorPosition_currArrayIndex < iso2SensorOrderListType->SensorPosition.arrayLen ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ if(errn == 0) {
+ /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
+ errn = encodeNBitUnsignedInteger(stream, 1, 0);
+ if(errn == 0) {
+ errn = encodeNBitUnsignedInteger(stream, 8, (uint32_t)(iso2SensorOrderListType->SensorPosition.array[iso2SensorOrderListType_SensorPosition_currArrayIndex++] - 0));
+ /* valid EE */
+ errn = encodeNBitUnsignedInteger(stream, 1, 0);
+ }
+ }
+ grammarID = 936;
+ } else if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 936:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorPosition), END_ELEMENT] */
+ if (iso2SensorOrderListType_SensorPosition_currArrayIndex < iso2SensorOrderListType->SensorPosition.arrayLen ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ if(errn == 0) {
+ /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
+ errn = encodeNBitUnsignedInteger(stream, 1, 0);
+ if(errn == 0) {
+ errn = encodeNBitUnsignedInteger(stream, 8, (uint32_t)(iso2SensorOrderListType->SensorPosition.array[iso2SensorOrderListType_SensorPosition_currArrayIndex++] - 0));
+ /* valid EE */
+ errn = encodeNBitUnsignedInteger(stream, 1, 0);
+ }
+ }
+ grammarID = 937;
+ } else if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 937:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorPosition), END_ELEMENT] */
+ if (iso2SensorOrderListType_SensorPosition_currArrayIndex < iso2SensorOrderListType->SensorPosition.arrayLen ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ if(errn == 0) {
+ /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
+ errn = encodeNBitUnsignedInteger(stream, 1, 0);
+ if(errn == 0) {
+ errn = encodeNBitUnsignedInteger(stream, 8, (uint32_t)(iso2SensorOrderListType->SensorPosition.array[iso2SensorOrderListType_SensorPosition_currArrayIndex++] - 0));
+ /* valid EE */
+ errn = encodeNBitUnsignedInteger(stream, 1, 0);
+ }
+ }
+ grammarID = 938;
+ } else if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 938:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorPosition), END_ELEMENT] */
+ if (iso2SensorOrderListType_SensorPosition_currArrayIndex < iso2SensorOrderListType->SensorPosition.arrayLen ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ if(errn == 0) {
+ /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
+ errn = encodeNBitUnsignedInteger(stream, 1, 0);
+ if(errn == 0) {
+ errn = encodeNBitUnsignedInteger(stream, 8, (uint32_t)(iso2SensorOrderListType->SensorPosition.array[iso2SensorOrderListType_SensorPosition_currArrayIndex++] - 0));
+ /* valid EE */
+ errn = encodeNBitUnsignedInteger(stream, 1, 0);
+ }
+ }
+ grammarID = 939;
+ } else if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 939:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorPosition), END_ELEMENT] */
+ if (iso2SensorOrderListType_SensorPosition_currArrayIndex < iso2SensorOrderListType->SensorPosition.arrayLen ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ if(errn == 0) {
+ /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
+ errn = encodeNBitUnsignedInteger(stream, 1, 0);
+ if(errn == 0) {
+ errn = encodeNBitUnsignedInteger(stream, 8, (uint32_t)(iso2SensorOrderListType->SensorPosition.array[iso2SensorOrderListType_SensorPosition_currArrayIndex++] - 0));
+ /* valid EE */
+ errn = encodeNBitUnsignedInteger(stream, 1, 0);
+ }
+ }
+ grammarID = 940;
+ } else if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 940:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorPosition), END_ELEMENT] */
+ if (iso2SensorOrderListType_SensorPosition_currArrayIndex < iso2SensorOrderListType->SensorPosition.arrayLen ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ if(errn == 0) {
+ /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
+ errn = encodeNBitUnsignedInteger(stream, 1, 0);
+ if(errn == 0) {
+ errn = encodeNBitUnsignedInteger(stream, 8, (uint32_t)(iso2SensorOrderListType->SensorPosition.array[iso2SensorOrderListType_SensorPosition_currArrayIndex++] - 0));
+ /* valid EE */
+ errn = encodeNBitUnsignedInteger(stream, 1, 0);
+ }
+ }
+ grammarID = 3;
+ } else if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 3:
+ /* Element[END_ELEMENT] */
+ if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 1, 0);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } 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:2016:MsgBody,ChargeParameterDiscoveryReqType', base type name='BodyBaseType', content type='ELEMENT', isAbstract='false', hasTypeId='false', final='0', block='0', particle='("urn:iso:15118:2:2016:MsgBody":MaxSupportingPoints{0-1},"urn:iso:15118:2:2016:MsgDataTypes":EVEnergyTransferParameter,"urn:iso:15118:2:2016:MsgBody":MinimumPMaxRequest{0-1})', derivedBy='EXTENSION'. */
+static int encode_iso2ChargeParameterDiscoveryReqType(bitstream_t* stream, struct iso2ChargeParameterDiscoveryReqType* iso2ChargeParameterDiscoveryReqType) {
+ int grammarID = 941;
+ int done = 0;
+
+
+ while(!done) {
+ switch(grammarID) {
+ case 941:
+ /* FirstStartTag[START_ELEMENT({urn:iso:15118:2:2016:MsgBody}MaxSupportingPoints), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}AC_EVBidirectionalParameter), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}AC_EVChargeParameter), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}DC_EVBidirectionalParameter), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}DC_EVChargeParameter), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}EVEnergyTransferParameter), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}WPT_EVChargeParameter)] */
+ if ( iso2ChargeParameterDiscoveryReqType->MaxSupportingPoints_isUsed == 1u ) {
+ errn = encodeNBitUnsignedInteger(stream, 3, 0);
+ if(errn == 0) {
+ /* FirstStartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
+ errn = encodeNBitUnsignedInteger(stream, 1, 0);
+ if(errn == 0) {
+ errn = encodeNBitUnsignedInteger(stream, 10, (uint32_t)(iso2ChargeParameterDiscoveryReqType->MaxSupportingPoints - 12));
+ /* valid EE */
+ errn = encodeNBitUnsignedInteger(stream, 1, 0);
+ }
+ }
+ grammarID = 942;
+ } else if ( iso2ChargeParameterDiscoveryReqType->AC_EVBidirectionalParameter_isUsed == 1u ) {
+ errn = encodeNBitUnsignedInteger(stream, 3, 1);
+ if(errn == 0) {
+ errn = encode_iso2AC_EVBidirectionalParameterType(stream, &iso2ChargeParameterDiscoveryReqType->AC_EVBidirectionalParameter );
+ }
+ grammarID = 943;
+ } else if ( iso2ChargeParameterDiscoveryReqType->AC_EVChargeParameter_isUsed == 1u ) {
+ errn = encodeNBitUnsignedInteger(stream, 3, 2);
+ if(errn == 0) {
+ errn = encode_iso2AC_EVChargeParameterType(stream, &iso2ChargeParameterDiscoveryReqType->AC_EVChargeParameter );
+ }
+ grammarID = 943;
+ } else if ( iso2ChargeParameterDiscoveryReqType->DC_EVBidirectionalParameter_isUsed == 1u ) {
+ errn = encodeNBitUnsignedInteger(stream, 3, 3);
+ if(errn == 0) {
+ errn = encode_iso2DC_EVBidirectionalParameterType(stream, &iso2ChargeParameterDiscoveryReqType->DC_EVBidirectionalParameter );
+ }
+ grammarID = 943;
+ } else if ( iso2ChargeParameterDiscoveryReqType->DC_EVChargeParameter_isUsed == 1u ) {
+ errn = encodeNBitUnsignedInteger(stream, 3, 4);
+ if(errn == 0) {
+ errn = encode_iso2DC_EVChargeParameterType(stream, &iso2ChargeParameterDiscoveryReqType->DC_EVChargeParameter );
+ }
+ grammarID = 943;
+ } else if ( iso2ChargeParameterDiscoveryReqType->EVEnergyTransferParameter_isUsed == 1u ) {
+ errn = encodeNBitUnsignedInteger(stream, 3, 5);
+ if(errn == 0) {
+ errn = encode_iso2EVEnergyTransferParameterType(stream, &iso2ChargeParameterDiscoveryReqType->EVEnergyTransferParameter );
+ }
+ grammarID = 943;
+ } else if ( iso2ChargeParameterDiscoveryReqType->WPT_EVChargeParameter_isUsed == 1u ) {
+ errn = encodeNBitUnsignedInteger(stream, 3, 6);
+ if(errn == 0) {
+ errn = encode_iso2WPT_EVChargeParameterType(stream, &iso2ChargeParameterDiscoveryReqType->WPT_EVChargeParameter );
+ }
+ grammarID = 943;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 942:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}AC_EVBidirectionalParameter), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}AC_EVChargeParameter), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}DC_EVBidirectionalParameter), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}DC_EVChargeParameter), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}EVEnergyTransferParameter), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}WPT_EVChargeParameter)] */
+ if ( iso2ChargeParameterDiscoveryReqType->AC_EVBidirectionalParameter_isUsed == 1u ) {
+ errn = encodeNBitUnsignedInteger(stream, 3, 0);
+ if(errn == 0) {
+ errn = encode_iso2AC_EVBidirectionalParameterType(stream, &iso2ChargeParameterDiscoveryReqType->AC_EVBidirectionalParameter );
+ }
+ grammarID = 943;
+ } else if ( iso2ChargeParameterDiscoveryReqType->AC_EVChargeParameter_isUsed == 1u ) {
+ errn = encodeNBitUnsignedInteger(stream, 3, 1);
+ if(errn == 0) {
+ errn = encode_iso2AC_EVChargeParameterType(stream, &iso2ChargeParameterDiscoveryReqType->AC_EVChargeParameter );
+ }
+ grammarID = 943;
+ } else if ( iso2ChargeParameterDiscoveryReqType->DC_EVBidirectionalParameter_isUsed == 1u ) {
+ errn = encodeNBitUnsignedInteger(stream, 3, 2);
+ if(errn == 0) {
+ errn = encode_iso2DC_EVBidirectionalParameterType(stream, &iso2ChargeParameterDiscoveryReqType->DC_EVBidirectionalParameter );
+ }
+ grammarID = 943;
+ } else if ( iso2ChargeParameterDiscoveryReqType->DC_EVChargeParameter_isUsed == 1u ) {
+ errn = encodeNBitUnsignedInteger(stream, 3, 3);
+ if(errn == 0) {
+ errn = encode_iso2DC_EVChargeParameterType(stream, &iso2ChargeParameterDiscoveryReqType->DC_EVChargeParameter );
+ }
+ grammarID = 943;
+ } else if ( iso2ChargeParameterDiscoveryReqType->EVEnergyTransferParameter_isUsed == 1u ) {
+ errn = encodeNBitUnsignedInteger(stream, 3, 4);
+ if(errn == 0) {
+ errn = encode_iso2EVEnergyTransferParameterType(stream, &iso2ChargeParameterDiscoveryReqType->EVEnergyTransferParameter );
+ }
+ grammarID = 943;
+ } else if ( iso2ChargeParameterDiscoveryReqType->WPT_EVChargeParameter_isUsed == 1u ) {
+ errn = encodeNBitUnsignedInteger(stream, 3, 5);
+ if(errn == 0) {
+ errn = encode_iso2WPT_EVChargeParameterType(stream, &iso2ChargeParameterDiscoveryReqType->WPT_EVChargeParameter );
+ }
+ grammarID = 943;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 943:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgBody}MinimumPMaxRequest), END_ELEMENT] */
+ if ( iso2ChargeParameterDiscoveryReqType->MinimumPMaxRequest_isUsed == 1u ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ if(errn == 0) {
+ errn = encode_iso2MinimumPMaxRequestType(stream, &iso2ChargeParameterDiscoveryReqType->MinimumPMaxRequest );
+ }
+ grammarID = 3;
+ } else if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 3:
+ /* Element[END_ELEMENT] */
+ if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 1, 0);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } 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:2016:MsgDataTypes,ParameterType', base type name='anyType', content type='ELEMENT', isAbstract='false', hasTypeId='false', final='0', block='0', particle='("urn:iso:15118:2:2016:MsgDataTypes":boolValue|"urn:iso:15118:2:2016:MsgDataTypes":byteValue|"urn:iso:15118:2:2016:MsgDataTypes":shortValue|"urn:iso:15118:2:2016:MsgDataTypes":intValue|"urn:iso:15118:2:2016:MsgDataTypes":physicalValue|"urn:iso:15118:2:2016:MsgDataTypes":stringValue)', derivedBy='RESTRICTION'. */
+static int encode_iso2ParameterType(bitstream_t* stream, struct iso2ParameterType* iso2ParameterType) {
+ int grammarID = 944;
+ int done = 0;
+
+
+ while(!done) {
+ switch(grammarID) {
+ case 944:
+ /* FirstStartTag[ATTRIBUTE[STRING]({urn:iso:15118:2:2016:MsgDataTypes}Name)] */
+ if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 1, 0);
+ if(errn == 0) {
+ /* encode string as string table miss (+2 len)*/
+ errn = encodeUnsignedInteger16(stream, (uint16_t)(iso2ParameterType->Name.charactersLen + 2));
+ if (errn == 0) {
+ errn = encodeCharacters(stream, iso2ParameterType->Name.characters, iso2ParameterType->Name.charactersLen);
+ }
+ }
+ grammarID = 945;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 945:
+ /* StartTag[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}boolValue), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}byteValue), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}shortValue), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}intValue), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}physicalValue), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}stringValue)] */
+ if ( iso2ParameterType->boolValue_isUsed == 1u ) {
+ errn = encodeNBitUnsignedInteger(stream, 3, 0);
+ if(errn == 0) {
+ /* FirstStartTag[CHARACTERS[BOOLEAN]] */
+ errn = encodeNBitUnsignedInteger(stream, 1, 0);
+ if(errn == 0) {
+ errn = encodeBoolean(stream, iso2ParameterType->boolValue);
+ /* valid EE */
+ errn = encodeNBitUnsignedInteger(stream, 1, 0);
+ }
+ }
+ grammarID = 3;
+ } else if ( iso2ParameterType->byteValue_isUsed == 1u ) {
+ errn = encodeNBitUnsignedInteger(stream, 3, 1);
+ if(errn == 0) {
+ /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
+ errn = encodeNBitUnsignedInteger(stream, 1, 0);
+ if(errn == 0) {
+ errn = encodeNBitUnsignedInteger(stream, 8, (uint32_t)(iso2ParameterType->byteValue + 128));
+ /* valid EE */
+ errn = encodeNBitUnsignedInteger(stream, 1, 0);
+ }
+ }
+ grammarID = 3;
+ } else if ( iso2ParameterType->shortValue_isUsed == 1u ) {
+ errn = encodeNBitUnsignedInteger(stream, 3, 2);
+ if(errn == 0) {
+ /* First(xsi:type)StartTag[CHARACTERS[INTEGER]] */
+ errn = encodeNBitUnsignedInteger(stream, 1, 0);
+ if(errn == 0) {
+ errn = encodeInteger16(stream, iso2ParameterType->shortValue);
+ /* valid EE */
+ errn = encodeNBitUnsignedInteger(stream, 1, 0);
+ }
+ }
+ grammarID = 3;
+ } else if ( iso2ParameterType->intValue_isUsed == 1u ) {
+ errn = encodeNBitUnsignedInteger(stream, 3, 3);
+ if(errn == 0) {
+ /* First(xsi:type)StartTag[CHARACTERS[INTEGER]] */
+ errn = encodeNBitUnsignedInteger(stream, 1, 0);
+ if(errn == 0) {
+ errn = encodeInteger32(stream, iso2ParameterType->intValue);
+ /* valid EE */
+ errn = encodeNBitUnsignedInteger(stream, 1, 0);
+ }
+ }
+ grammarID = 3;
+ } else if ( iso2ParameterType->physicalValue_isUsed == 1u ) {
+ errn = encodeNBitUnsignedInteger(stream, 3, 4);
+ if(errn == 0) {
+ errn = encode_iso2PhysicalValueType(stream, &iso2ParameterType->physicalValue );
+ }
+ grammarID = 3;
+ } else if ( iso2ParameterType->stringValue_isUsed == 1u ) {
+ errn = encodeNBitUnsignedInteger(stream, 3, 5);
+ if(errn == 0) {
+ /* First(xsi:type)StartTag[CHARACTERS[STRING]] */
+ errn = encodeNBitUnsignedInteger(stream, 1, 0);
+ if(errn == 0) {
+ /* encode string as string table miss (+2 len)*/
+ errn = encodeUnsignedInteger16(stream, (uint16_t)(iso2ParameterType->stringValue.charactersLen + 2));
+ if (errn == 0) {
+ errn = encodeCharacters(stream, iso2ParameterType->stringValue.characters, iso2ParameterType->stringValue.charactersLen);
+ }
+ /* valid EE */
+ errn = encodeNBitUnsignedInteger(stream, 1, 0);
+ }
+ }
+ grammarID = 3;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 3:
+ /* Element[END_ELEMENT] */
+ if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 1, 0);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } 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:2016:MsgBody,SessionStopReqType', base type name='BodyBaseType', content type='ELEMENT', isAbstract='false', hasTypeId='false', final='0', block='0', particle='("urn:iso:15118:2:2016:MsgBody":ChargingSession)', derivedBy='EXTENSION'. */
+static int encode_iso2SessionStopReqType(bitstream_t* stream, struct iso2SessionStopReqType* iso2SessionStopReqType) {
+ int grammarID = 946;
+ int done = 0;
+
+
+ while(!done) {
+ switch(grammarID) {
+ case 946:
+ /* FirstStartTag[START_ELEMENT({urn:iso:15118:2:2016:MsgBody}ChargingSession)] */
+ 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, 1, iso2SessionStopReqType->ChargingSession);
+ /* valid EE */
+ errn = encodeNBitUnsignedInteger(stream, 1, 0);
+ }
+ }
+ grammarID = 3;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 3:
+ /* Element[END_ELEMENT] */
+ if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 1, 0);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } 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:2016:MsgDataTypes,SensorMeasurementsType', base type name='anyType', content type='ELEMENT', isAbstract='false', hasTypeId='false', final='0', block='0', particle='("urn:iso:15118:2:2016:MsgDataTypes":SensorID,"urn:iso:15118:2:2016:MsgDataTypes":EffectiveRadiatedPower,"urn:iso:15118:2:2016:MsgDataTypes":MeasurementDataList)', derivedBy='RESTRICTION'. */
+static int encode_iso2SensorMeasurementsType(bitstream_t* stream, struct iso2SensorMeasurementsType* iso2SensorMeasurementsType) {
+ int grammarID = 947;
+ int done = 0;
+
+
+ while(!done) {
+ switch(grammarID) {
+ case 947:
+ /* FirstStartTag[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorID)] */
+ if ( 1 == 1 ) {
+ errn = encodeNBitUnsignedInteger(stream, 1, 0);
+ if(errn == 0) {
+ /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
+ errn = encodeNBitUnsignedInteger(stream, 1, 0);
+ if(errn == 0) {
+ errn = encodeNBitUnsignedInteger(stream, 8, (uint32_t)(iso2SensorMeasurementsType->SensorID - 0));
+ /* valid EE */
+ errn = encodeNBitUnsignedInteger(stream, 1, 0);
+ }
+ }
+ grammarID = 948;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 948:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}EffectiveRadiatedPower)] */
+ if ( 1 == 1 ) {
+ errn = encodeNBitUnsignedInteger(stream, 1, 0);
+ if(errn == 0) {
+ /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
+ errn = encodeNBitUnsignedInteger(stream, 1, 0);
+ if(errn == 0) {
+ errn = encodeNBitUnsignedInteger(stream, 8, (uint32_t)(iso2SensorMeasurementsType->EffectiveRadiatedPower + 128));
+ /* valid EE */
+ errn = encodeNBitUnsignedInteger(stream, 1, 0);
+ }
+ }
+ grammarID = 949;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 949:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MeasurementDataList)] */
+ if ( 1 == 1 ) {
+ errn = encodeNBitUnsignedInteger(stream, 1, 0);
+ if(errn == 0) {
+ errn = encode_iso2MeasurementDataListType(stream, &iso2SensorMeasurementsType->MeasurementDataList );
+ }
+ grammarID = 3;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 3:
+ /* Element[END_ELEMENT] */
+ if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 1, 0);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } 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:2016:MsgDataTypes,DC_EVSEChargeParameterType', base type name='EVSEEnergyTransferParameterType', content type='ELEMENT', isAbstract='false', hasTypeId='false', final='0', block='0', particle='("urn:iso:15118:2:2016:MsgDataTypes":EVSEMaximumChargePower,"urn:iso:15118:2:2016:MsgDataTypes":EVSEMaximumChargeCurrent,"urn:iso:15118:2:2016:MsgDataTypes":EVSEMinimumChargeCurrent,"urn:iso:15118:2:2016:MsgDataTypes":EVSEMaximumVoltage,"urn:iso:15118:2:2016:MsgDataTypes":EVSEMinimumVoltage,"urn:iso:15118:2:2016:MsgDataTypes":EVSECurrentRegulationTolerance{0-1},"urn:iso:15118:2:2016:MsgDataTypes":EVSEPeakCurrentRipple,"urn:iso:15118:2:2016:MsgDataTypes":EVSEEnergyToBeDelivered{0-1})', derivedBy='EXTENSION'. */
+static int encode_iso2DC_EVSEChargeParameterType(bitstream_t* stream, struct iso2DC_EVSEChargeParameterType* iso2DC_EVSEChargeParameterType) {
+ int grammarID = 950;
+ int done = 0;
+
+
+ while(!done) {
+ switch(grammarID) {
+ case 950:
+ /* FirstStartTag[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}EVSEMaximumChargePower)] */
+ if ( 1 == 1 ) {
+ errn = encodeNBitUnsignedInteger(stream, 1, 0);
+ if(errn == 0) {
+ errn = encode_iso2PhysicalValueType(stream, &iso2DC_EVSEChargeParameterType->EVSEMaximumChargePower );
+ }
+ grammarID = 951;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 951:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}EVSEMaximumChargeCurrent)] */
+ if ( 1 == 1 ) {
+ errn = encodeNBitUnsignedInteger(stream, 1, 0);
+ if(errn == 0) {
+ errn = encode_iso2PhysicalValueType(stream, &iso2DC_EVSEChargeParameterType->EVSEMaximumChargeCurrent );
+ }
+ grammarID = 952;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 952:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}EVSEMinimumChargeCurrent)] */
+ if ( 1 == 1 ) {
+ errn = encodeNBitUnsignedInteger(stream, 1, 0);
+ if(errn == 0) {
+ errn = encode_iso2PhysicalValueType(stream, &iso2DC_EVSEChargeParameterType->EVSEMinimumChargeCurrent );
+ }
+ grammarID = 953;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 953:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}EVSEMaximumVoltage)] */
+ if ( 1 == 1 ) {
+ errn = encodeNBitUnsignedInteger(stream, 1, 0);
+ if(errn == 0) {
+ errn = encode_iso2PhysicalValueType(stream, &iso2DC_EVSEChargeParameterType->EVSEMaximumVoltage );
+ }
+ grammarID = 954;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 954:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}EVSEMinimumVoltage)] */
+ if ( 1 == 1 ) {
+ errn = encodeNBitUnsignedInteger(stream, 1, 0);
+ if(errn == 0) {
+ errn = encode_iso2PhysicalValueType(stream, &iso2DC_EVSEChargeParameterType->EVSEMinimumVoltage );
+ }
+ grammarID = 955;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 955:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}EVSECurrentRegulationTolerance), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}EVSEPeakCurrentRipple)] */
+ if ( iso2DC_EVSEChargeParameterType->EVSECurrentRegulationTolerance_isUsed == 1u ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ if(errn == 0) {
+ errn = encode_iso2PhysicalValueType(stream, &iso2DC_EVSEChargeParameterType->EVSECurrentRegulationTolerance );
+ }
+ grammarID = 956;
+ } else if ( 1 == 1 ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ errn = encode_iso2PhysicalValueType(stream, &iso2DC_EVSEChargeParameterType->EVSEPeakCurrentRipple );
+ }
+ grammarID = 957;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 956:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}EVSEPeakCurrentRipple)] */
+ if ( 1 == 1 ) {
+ errn = encodeNBitUnsignedInteger(stream, 1, 0);
+ if(errn == 0) {
+ errn = encode_iso2PhysicalValueType(stream, &iso2DC_EVSEChargeParameterType->EVSEPeakCurrentRipple );
+ }
+ grammarID = 957;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 957:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}EVSEEnergyToBeDelivered), END_ELEMENT] */
+ if ( iso2DC_EVSEChargeParameterType->EVSEEnergyToBeDelivered_isUsed == 1u ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ if(errn == 0) {
+ errn = encode_iso2PhysicalValueType(stream, &iso2DC_EVSEChargeParameterType->EVSEEnergyToBeDelivered );
+ }
+ grammarID = 3;
+ } else if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 3:
+ /* Element[END_ELEMENT] */
+ if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 1, 0);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } 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:2016:MsgDataTypes,SensorPackageListType', base type name='anyType', content type='ELEMENT', isAbstract='false', hasTypeId='false', final='0', block='0', particle='("urn:iso:15118:2:2016:MsgDataTypes":SensorPackage{1-255})', derivedBy='RESTRICTION'. */
+static int encode_iso2SensorPackageListType(bitstream_t* stream, struct iso2SensorPackageListType* iso2SensorPackageListType) {
+ int grammarID = 958;
+ int done = 0;
+
+ unsigned int iso2SensorPackageListType_SensorPackage_currArrayIndex = 0;
+
+ while(!done) {
+ switch(grammarID) {
+ case 958:
+ /* FirstStartTag[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorPackage)] */
+ if (iso2SensorPackageListType_SensorPackage_currArrayIndex < iso2SensorPackageListType->SensorPackage.arrayLen ) {
+ errn = encodeNBitUnsignedInteger(stream, 1, 0);
+ if(errn == 0) {
+ errn = encode_iso2SensorPackageType(stream, &iso2SensorPackageListType->SensorPackage.array [iso2SensorPackageListType_SensorPackage_currArrayIndex++]);
+ }
+ grammarID = 959;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 959:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorPackage), END_ELEMENT] */
+ if (iso2SensorPackageListType_SensorPackage_currArrayIndex < iso2SensorPackageListType->SensorPackage.arrayLen ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ if(errn == 0) {
+ errn = encode_iso2SensorPackageType(stream, &iso2SensorPackageListType->SensorPackage.array [iso2SensorPackageListType_SensorPackage_currArrayIndex++]);
+ }
+ grammarID = 960;
+ } else if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 960:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorPackage), END_ELEMENT] */
+ if (iso2SensorPackageListType_SensorPackage_currArrayIndex < iso2SensorPackageListType->SensorPackage.arrayLen ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ if(errn == 0) {
+ errn = encode_iso2SensorPackageType(stream, &iso2SensorPackageListType->SensorPackage.array [iso2SensorPackageListType_SensorPackage_currArrayIndex++]);
+ }
+ grammarID = 961;
+ } else if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 961:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorPackage), END_ELEMENT] */
+ if (iso2SensorPackageListType_SensorPackage_currArrayIndex < iso2SensorPackageListType->SensorPackage.arrayLen ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ if(errn == 0) {
+ errn = encode_iso2SensorPackageType(stream, &iso2SensorPackageListType->SensorPackage.array [iso2SensorPackageListType_SensorPackage_currArrayIndex++]);
+ }
+ grammarID = 962;
+ } else if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 962:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorPackage), END_ELEMENT] */
+ if (iso2SensorPackageListType_SensorPackage_currArrayIndex < iso2SensorPackageListType->SensorPackage.arrayLen ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ if(errn == 0) {
+ errn = encode_iso2SensorPackageType(stream, &iso2SensorPackageListType->SensorPackage.array [iso2SensorPackageListType_SensorPackage_currArrayIndex++]);
+ }
+ grammarID = 963;
+ } else if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 963:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorPackage), END_ELEMENT] */
+ if (iso2SensorPackageListType_SensorPackage_currArrayIndex < iso2SensorPackageListType->SensorPackage.arrayLen ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ if(errn == 0) {
+ errn = encode_iso2SensorPackageType(stream, &iso2SensorPackageListType->SensorPackage.array [iso2SensorPackageListType_SensorPackage_currArrayIndex++]);
+ }
+ grammarID = 964;
+ } else if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 964:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorPackage), END_ELEMENT] */
+ if (iso2SensorPackageListType_SensorPackage_currArrayIndex < iso2SensorPackageListType->SensorPackage.arrayLen ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ if(errn == 0) {
+ errn = encode_iso2SensorPackageType(stream, &iso2SensorPackageListType->SensorPackage.array [iso2SensorPackageListType_SensorPackage_currArrayIndex++]);
+ }
+ grammarID = 965;
+ } else if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 965:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorPackage), END_ELEMENT] */
+ if (iso2SensorPackageListType_SensorPackage_currArrayIndex < iso2SensorPackageListType->SensorPackage.arrayLen ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ if(errn == 0) {
+ errn = encode_iso2SensorPackageType(stream, &iso2SensorPackageListType->SensorPackage.array [iso2SensorPackageListType_SensorPackage_currArrayIndex++]);
+ }
+ grammarID = 966;
+ } else if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 966:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorPackage), END_ELEMENT] */
+ if (iso2SensorPackageListType_SensorPackage_currArrayIndex < iso2SensorPackageListType->SensorPackage.arrayLen ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ if(errn == 0) {
+ errn = encode_iso2SensorPackageType(stream, &iso2SensorPackageListType->SensorPackage.array [iso2SensorPackageListType_SensorPackage_currArrayIndex++]);
+ }
+ grammarID = 967;
+ } else if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 967:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorPackage), END_ELEMENT] */
+ if (iso2SensorPackageListType_SensorPackage_currArrayIndex < iso2SensorPackageListType->SensorPackage.arrayLen ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ if(errn == 0) {
+ errn = encode_iso2SensorPackageType(stream, &iso2SensorPackageListType->SensorPackage.array [iso2SensorPackageListType_SensorPackage_currArrayIndex++]);
+ }
+ grammarID = 968;
+ } else if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 968:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorPackage), END_ELEMENT] */
+ if (iso2SensorPackageListType_SensorPackage_currArrayIndex < iso2SensorPackageListType->SensorPackage.arrayLen ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ if(errn == 0) {
+ errn = encode_iso2SensorPackageType(stream, &iso2SensorPackageListType->SensorPackage.array [iso2SensorPackageListType_SensorPackage_currArrayIndex++]);
+ }
+ grammarID = 969;
+ } else if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 969:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorPackage), END_ELEMENT] */
+ if (iso2SensorPackageListType_SensorPackage_currArrayIndex < iso2SensorPackageListType->SensorPackage.arrayLen ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ if(errn == 0) {
+ errn = encode_iso2SensorPackageType(stream, &iso2SensorPackageListType->SensorPackage.array [iso2SensorPackageListType_SensorPackage_currArrayIndex++]);
+ }
+ grammarID = 970;
+ } else if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 970:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorPackage), END_ELEMENT] */
+ if (iso2SensorPackageListType_SensorPackage_currArrayIndex < iso2SensorPackageListType->SensorPackage.arrayLen ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ if(errn == 0) {
+ errn = encode_iso2SensorPackageType(stream, &iso2SensorPackageListType->SensorPackage.array [iso2SensorPackageListType_SensorPackage_currArrayIndex++]);
+ }
+ grammarID = 971;
+ } else if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 971:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorPackage), END_ELEMENT] */
+ if (iso2SensorPackageListType_SensorPackage_currArrayIndex < iso2SensorPackageListType->SensorPackage.arrayLen ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ if(errn == 0) {
+ errn = encode_iso2SensorPackageType(stream, &iso2SensorPackageListType->SensorPackage.array [iso2SensorPackageListType_SensorPackage_currArrayIndex++]);
+ }
+ grammarID = 972;
+ } else if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 972:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorPackage), END_ELEMENT] */
+ if (iso2SensorPackageListType_SensorPackage_currArrayIndex < iso2SensorPackageListType->SensorPackage.arrayLen ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ if(errn == 0) {
+ errn = encode_iso2SensorPackageType(stream, &iso2SensorPackageListType->SensorPackage.array [iso2SensorPackageListType_SensorPackage_currArrayIndex++]);
+ }
+ grammarID = 973;
+ } else if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 973:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorPackage), END_ELEMENT] */
+ if (iso2SensorPackageListType_SensorPackage_currArrayIndex < iso2SensorPackageListType->SensorPackage.arrayLen ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ if(errn == 0) {
+ errn = encode_iso2SensorPackageType(stream, &iso2SensorPackageListType->SensorPackage.array [iso2SensorPackageListType_SensorPackage_currArrayIndex++]);
+ }
+ grammarID = 974;
+ } else if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 974:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorPackage), END_ELEMENT] */
+ if (iso2SensorPackageListType_SensorPackage_currArrayIndex < iso2SensorPackageListType->SensorPackage.arrayLen ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ if(errn == 0) {
+ errn = encode_iso2SensorPackageType(stream, &iso2SensorPackageListType->SensorPackage.array [iso2SensorPackageListType_SensorPackage_currArrayIndex++]);
+ }
+ grammarID = 975;
+ } else if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 975:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorPackage), END_ELEMENT] */
+ if (iso2SensorPackageListType_SensorPackage_currArrayIndex < iso2SensorPackageListType->SensorPackage.arrayLen ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ if(errn == 0) {
+ errn = encode_iso2SensorPackageType(stream, &iso2SensorPackageListType->SensorPackage.array [iso2SensorPackageListType_SensorPackage_currArrayIndex++]);
+ }
+ grammarID = 976;
+ } else if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 976:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorPackage), END_ELEMENT] */
+ if (iso2SensorPackageListType_SensorPackage_currArrayIndex < iso2SensorPackageListType->SensorPackage.arrayLen ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ if(errn == 0) {
+ errn = encode_iso2SensorPackageType(stream, &iso2SensorPackageListType->SensorPackage.array [iso2SensorPackageListType_SensorPackage_currArrayIndex++]);
+ }
+ grammarID = 977;
+ } else if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 977:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorPackage), END_ELEMENT] */
+ if (iso2SensorPackageListType_SensorPackage_currArrayIndex < iso2SensorPackageListType->SensorPackage.arrayLen ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ if(errn == 0) {
+ errn = encode_iso2SensorPackageType(stream, &iso2SensorPackageListType->SensorPackage.array [iso2SensorPackageListType_SensorPackage_currArrayIndex++]);
+ }
+ grammarID = 978;
+ } else if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 978:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorPackage), END_ELEMENT] */
+ if (iso2SensorPackageListType_SensorPackage_currArrayIndex < iso2SensorPackageListType->SensorPackage.arrayLen ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ if(errn == 0) {
+ errn = encode_iso2SensorPackageType(stream, &iso2SensorPackageListType->SensorPackage.array [iso2SensorPackageListType_SensorPackage_currArrayIndex++]);
+ }
+ grammarID = 979;
+ } else if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 979:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorPackage), END_ELEMENT] */
+ if (iso2SensorPackageListType_SensorPackage_currArrayIndex < iso2SensorPackageListType->SensorPackage.arrayLen ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ if(errn == 0) {
+ errn = encode_iso2SensorPackageType(stream, &iso2SensorPackageListType->SensorPackage.array [iso2SensorPackageListType_SensorPackage_currArrayIndex++]);
+ }
+ grammarID = 980;
+ } else if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 980:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorPackage), END_ELEMENT] */
+ if (iso2SensorPackageListType_SensorPackage_currArrayIndex < iso2SensorPackageListType->SensorPackage.arrayLen ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ if(errn == 0) {
+ errn = encode_iso2SensorPackageType(stream, &iso2SensorPackageListType->SensorPackage.array [iso2SensorPackageListType_SensorPackage_currArrayIndex++]);
+ }
+ grammarID = 981;
+ } else if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 981:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorPackage), END_ELEMENT] */
+ if (iso2SensorPackageListType_SensorPackage_currArrayIndex < iso2SensorPackageListType->SensorPackage.arrayLen ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ if(errn == 0) {
+ errn = encode_iso2SensorPackageType(stream, &iso2SensorPackageListType->SensorPackage.array [iso2SensorPackageListType_SensorPackage_currArrayIndex++]);
+ }
+ grammarID = 982;
+ } else if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 982:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorPackage), END_ELEMENT] */
+ if (iso2SensorPackageListType_SensorPackage_currArrayIndex < iso2SensorPackageListType->SensorPackage.arrayLen ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ if(errn == 0) {
+ errn = encode_iso2SensorPackageType(stream, &iso2SensorPackageListType->SensorPackage.array [iso2SensorPackageListType_SensorPackage_currArrayIndex++]);
+ }
+ grammarID = 983;
+ } else if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 983:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorPackage), END_ELEMENT] */
+ if (iso2SensorPackageListType_SensorPackage_currArrayIndex < iso2SensorPackageListType->SensorPackage.arrayLen ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ if(errn == 0) {
+ errn = encode_iso2SensorPackageType(stream, &iso2SensorPackageListType->SensorPackage.array [iso2SensorPackageListType_SensorPackage_currArrayIndex++]);
+ }
+ grammarID = 984;
+ } else if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 984:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorPackage), END_ELEMENT] */
+ if (iso2SensorPackageListType_SensorPackage_currArrayIndex < iso2SensorPackageListType->SensorPackage.arrayLen ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ if(errn == 0) {
+ errn = encode_iso2SensorPackageType(stream, &iso2SensorPackageListType->SensorPackage.array [iso2SensorPackageListType_SensorPackage_currArrayIndex++]);
+ }
+ grammarID = 985;
+ } else if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 985:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorPackage), END_ELEMENT] */
+ if (iso2SensorPackageListType_SensorPackage_currArrayIndex < iso2SensorPackageListType->SensorPackage.arrayLen ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ if(errn == 0) {
+ errn = encode_iso2SensorPackageType(stream, &iso2SensorPackageListType->SensorPackage.array [iso2SensorPackageListType_SensorPackage_currArrayIndex++]);
+ }
+ grammarID = 986;
+ } else if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 986:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorPackage), END_ELEMENT] */
+ if (iso2SensorPackageListType_SensorPackage_currArrayIndex < iso2SensorPackageListType->SensorPackage.arrayLen ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ if(errn == 0) {
+ errn = encode_iso2SensorPackageType(stream, &iso2SensorPackageListType->SensorPackage.array [iso2SensorPackageListType_SensorPackage_currArrayIndex++]);
+ }
+ grammarID = 987;
+ } else if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 987:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorPackage), END_ELEMENT] */
+ if (iso2SensorPackageListType_SensorPackage_currArrayIndex < iso2SensorPackageListType->SensorPackage.arrayLen ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ if(errn == 0) {
+ errn = encode_iso2SensorPackageType(stream, &iso2SensorPackageListType->SensorPackage.array [iso2SensorPackageListType_SensorPackage_currArrayIndex++]);
+ }
+ grammarID = 988;
+ } else if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 988:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorPackage), END_ELEMENT] */
+ if (iso2SensorPackageListType_SensorPackage_currArrayIndex < iso2SensorPackageListType->SensorPackage.arrayLen ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ if(errn == 0) {
+ errn = encode_iso2SensorPackageType(stream, &iso2SensorPackageListType->SensorPackage.array [iso2SensorPackageListType_SensorPackage_currArrayIndex++]);
+ }
+ grammarID = 989;
+ } else if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 989:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorPackage), END_ELEMENT] */
+ if (iso2SensorPackageListType_SensorPackage_currArrayIndex < iso2SensorPackageListType->SensorPackage.arrayLen ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ if(errn == 0) {
+ errn = encode_iso2SensorPackageType(stream, &iso2SensorPackageListType->SensorPackage.array [iso2SensorPackageListType_SensorPackage_currArrayIndex++]);
+ }
+ grammarID = 990;
+ } else if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 990:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorPackage), END_ELEMENT] */
+ if (iso2SensorPackageListType_SensorPackage_currArrayIndex < iso2SensorPackageListType->SensorPackage.arrayLen ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ if(errn == 0) {
+ errn = encode_iso2SensorPackageType(stream, &iso2SensorPackageListType->SensorPackage.array [iso2SensorPackageListType_SensorPackage_currArrayIndex++]);
+ }
+ grammarID = 991;
+ } else if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 991:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorPackage), END_ELEMENT] */
+ if (iso2SensorPackageListType_SensorPackage_currArrayIndex < iso2SensorPackageListType->SensorPackage.arrayLen ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ if(errn == 0) {
+ errn = encode_iso2SensorPackageType(stream, &iso2SensorPackageListType->SensorPackage.array [iso2SensorPackageListType_SensorPackage_currArrayIndex++]);
+ }
+ grammarID = 992;
+ } else if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 992:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorPackage), END_ELEMENT] */
+ if (iso2SensorPackageListType_SensorPackage_currArrayIndex < iso2SensorPackageListType->SensorPackage.arrayLen ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ if(errn == 0) {
+ errn = encode_iso2SensorPackageType(stream, &iso2SensorPackageListType->SensorPackage.array [iso2SensorPackageListType_SensorPackage_currArrayIndex++]);
+ }
+ grammarID = 993;
+ } else if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 993:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorPackage), END_ELEMENT] */
+ if (iso2SensorPackageListType_SensorPackage_currArrayIndex < iso2SensorPackageListType->SensorPackage.arrayLen ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ if(errn == 0) {
+ errn = encode_iso2SensorPackageType(stream, &iso2SensorPackageListType->SensorPackage.array [iso2SensorPackageListType_SensorPackage_currArrayIndex++]);
+ }
+ grammarID = 994;
+ } else if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 994:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorPackage), END_ELEMENT] */
+ if (iso2SensorPackageListType_SensorPackage_currArrayIndex < iso2SensorPackageListType->SensorPackage.arrayLen ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ if(errn == 0) {
+ errn = encode_iso2SensorPackageType(stream, &iso2SensorPackageListType->SensorPackage.array [iso2SensorPackageListType_SensorPackage_currArrayIndex++]);
+ }
+ grammarID = 995;
+ } else if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 995:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorPackage), END_ELEMENT] */
+ if (iso2SensorPackageListType_SensorPackage_currArrayIndex < iso2SensorPackageListType->SensorPackage.arrayLen ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ if(errn == 0) {
+ errn = encode_iso2SensorPackageType(stream, &iso2SensorPackageListType->SensorPackage.array [iso2SensorPackageListType_SensorPackage_currArrayIndex++]);
+ }
+ grammarID = 996;
+ } else if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 996:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorPackage), END_ELEMENT] */
+ if (iso2SensorPackageListType_SensorPackage_currArrayIndex < iso2SensorPackageListType->SensorPackage.arrayLen ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ if(errn == 0) {
+ errn = encode_iso2SensorPackageType(stream, &iso2SensorPackageListType->SensorPackage.array [iso2SensorPackageListType_SensorPackage_currArrayIndex++]);
+ }
+ grammarID = 997;
+ } else if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 997:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorPackage), END_ELEMENT] */
+ if (iso2SensorPackageListType_SensorPackage_currArrayIndex < iso2SensorPackageListType->SensorPackage.arrayLen ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ if(errn == 0) {
+ errn = encode_iso2SensorPackageType(stream, &iso2SensorPackageListType->SensorPackage.array [iso2SensorPackageListType_SensorPackage_currArrayIndex++]);
+ }
+ grammarID = 998;
+ } else if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 998:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorPackage), END_ELEMENT] */
+ if (iso2SensorPackageListType_SensorPackage_currArrayIndex < iso2SensorPackageListType->SensorPackage.arrayLen ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ if(errn == 0) {
+ errn = encode_iso2SensorPackageType(stream, &iso2SensorPackageListType->SensorPackage.array [iso2SensorPackageListType_SensorPackage_currArrayIndex++]);
+ }
+ grammarID = 999;
+ } else if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 999:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorPackage), END_ELEMENT] */
+ if (iso2SensorPackageListType_SensorPackage_currArrayIndex < iso2SensorPackageListType->SensorPackage.arrayLen ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ if(errn == 0) {
+ errn = encode_iso2SensorPackageType(stream, &iso2SensorPackageListType->SensorPackage.array [iso2SensorPackageListType_SensorPackage_currArrayIndex++]);
+ }
+ grammarID = 1000;
+ } else if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 1000:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorPackage), END_ELEMENT] */
+ if (iso2SensorPackageListType_SensorPackage_currArrayIndex < iso2SensorPackageListType->SensorPackage.arrayLen ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ if(errn == 0) {
+ errn = encode_iso2SensorPackageType(stream, &iso2SensorPackageListType->SensorPackage.array [iso2SensorPackageListType_SensorPackage_currArrayIndex++]);
+ }
+ grammarID = 1001;
+ } else if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 1001:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorPackage), END_ELEMENT] */
+ if (iso2SensorPackageListType_SensorPackage_currArrayIndex < iso2SensorPackageListType->SensorPackage.arrayLen ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ if(errn == 0) {
+ errn = encode_iso2SensorPackageType(stream, &iso2SensorPackageListType->SensorPackage.array [iso2SensorPackageListType_SensorPackage_currArrayIndex++]);
+ }
+ grammarID = 1002;
+ } else if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 1002:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorPackage), END_ELEMENT] */
+ if (iso2SensorPackageListType_SensorPackage_currArrayIndex < iso2SensorPackageListType->SensorPackage.arrayLen ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ if(errn == 0) {
+ errn = encode_iso2SensorPackageType(stream, &iso2SensorPackageListType->SensorPackage.array [iso2SensorPackageListType_SensorPackage_currArrayIndex++]);
+ }
+ grammarID = 1003;
+ } else if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 1003:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorPackage), END_ELEMENT] */
+ if (iso2SensorPackageListType_SensorPackage_currArrayIndex < iso2SensorPackageListType->SensorPackage.arrayLen ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ if(errn == 0) {
+ errn = encode_iso2SensorPackageType(stream, &iso2SensorPackageListType->SensorPackage.array [iso2SensorPackageListType_SensorPackage_currArrayIndex++]);
+ }
+ grammarID = 1004;
+ } else if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 1004:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorPackage), END_ELEMENT] */
+ if (iso2SensorPackageListType_SensorPackage_currArrayIndex < iso2SensorPackageListType->SensorPackage.arrayLen ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ if(errn == 0) {
+ errn = encode_iso2SensorPackageType(stream, &iso2SensorPackageListType->SensorPackage.array [iso2SensorPackageListType_SensorPackage_currArrayIndex++]);
+ }
+ grammarID = 1005;
+ } else if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 1005:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorPackage), END_ELEMENT] */
+ if (iso2SensorPackageListType_SensorPackage_currArrayIndex < iso2SensorPackageListType->SensorPackage.arrayLen ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ if(errn == 0) {
+ errn = encode_iso2SensorPackageType(stream, &iso2SensorPackageListType->SensorPackage.array [iso2SensorPackageListType_SensorPackage_currArrayIndex++]);
+ }
+ grammarID = 1006;
+ } else if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 1006:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorPackage), END_ELEMENT] */
+ if (iso2SensorPackageListType_SensorPackage_currArrayIndex < iso2SensorPackageListType->SensorPackage.arrayLen ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ if(errn == 0) {
+ errn = encode_iso2SensorPackageType(stream, &iso2SensorPackageListType->SensorPackage.array [iso2SensorPackageListType_SensorPackage_currArrayIndex++]);
+ }
+ grammarID = 1007;
+ } else if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 1007:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorPackage), END_ELEMENT] */
+ if (iso2SensorPackageListType_SensorPackage_currArrayIndex < iso2SensorPackageListType->SensorPackage.arrayLen ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ if(errn == 0) {
+ errn = encode_iso2SensorPackageType(stream, &iso2SensorPackageListType->SensorPackage.array [iso2SensorPackageListType_SensorPackage_currArrayIndex++]);
+ }
+ grammarID = 1008;
+ } else if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 1008:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorPackage), END_ELEMENT] */
+ if (iso2SensorPackageListType_SensorPackage_currArrayIndex < iso2SensorPackageListType->SensorPackage.arrayLen ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ if(errn == 0) {
+ errn = encode_iso2SensorPackageType(stream, &iso2SensorPackageListType->SensorPackage.array [iso2SensorPackageListType_SensorPackage_currArrayIndex++]);
+ }
+ grammarID = 1009;
+ } else if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 1009:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorPackage), END_ELEMENT] */
+ if (iso2SensorPackageListType_SensorPackage_currArrayIndex < iso2SensorPackageListType->SensorPackage.arrayLen ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ if(errn == 0) {
+ errn = encode_iso2SensorPackageType(stream, &iso2SensorPackageListType->SensorPackage.array [iso2SensorPackageListType_SensorPackage_currArrayIndex++]);
+ }
+ grammarID = 1010;
+ } else if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 1010:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorPackage), END_ELEMENT] */
+ if (iso2SensorPackageListType_SensorPackage_currArrayIndex < iso2SensorPackageListType->SensorPackage.arrayLen ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ if(errn == 0) {
+ errn = encode_iso2SensorPackageType(stream, &iso2SensorPackageListType->SensorPackage.array [iso2SensorPackageListType_SensorPackage_currArrayIndex++]);
+ }
+ grammarID = 1011;
+ } else if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 1011:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorPackage), END_ELEMENT] */
+ if (iso2SensorPackageListType_SensorPackage_currArrayIndex < iso2SensorPackageListType->SensorPackage.arrayLen ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ if(errn == 0) {
+ errn = encode_iso2SensorPackageType(stream, &iso2SensorPackageListType->SensorPackage.array [iso2SensorPackageListType_SensorPackage_currArrayIndex++]);
+ }
+ grammarID = 1012;
+ } else if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 1012:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorPackage), END_ELEMENT] */
+ if (iso2SensorPackageListType_SensorPackage_currArrayIndex < iso2SensorPackageListType->SensorPackage.arrayLen ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ if(errn == 0) {
+ errn = encode_iso2SensorPackageType(stream, &iso2SensorPackageListType->SensorPackage.array [iso2SensorPackageListType_SensorPackage_currArrayIndex++]);
+ }
+ grammarID = 1013;
+ } else if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 1013:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorPackage), END_ELEMENT] */
+ if (iso2SensorPackageListType_SensorPackage_currArrayIndex < iso2SensorPackageListType->SensorPackage.arrayLen ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ if(errn == 0) {
+ errn = encode_iso2SensorPackageType(stream, &iso2SensorPackageListType->SensorPackage.array [iso2SensorPackageListType_SensorPackage_currArrayIndex++]);
+ }
+ grammarID = 1014;
+ } else if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 1014:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorPackage), END_ELEMENT] */
+ if (iso2SensorPackageListType_SensorPackage_currArrayIndex < iso2SensorPackageListType->SensorPackage.arrayLen ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ if(errn == 0) {
+ errn = encode_iso2SensorPackageType(stream, &iso2SensorPackageListType->SensorPackage.array [iso2SensorPackageListType_SensorPackage_currArrayIndex++]);
+ }
+ grammarID = 1015;
+ } else if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 1015:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorPackage), END_ELEMENT] */
+ if (iso2SensorPackageListType_SensorPackage_currArrayIndex < iso2SensorPackageListType->SensorPackage.arrayLen ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ if(errn == 0) {
+ errn = encode_iso2SensorPackageType(stream, &iso2SensorPackageListType->SensorPackage.array [iso2SensorPackageListType_SensorPackage_currArrayIndex++]);
+ }
+ grammarID = 1016;
+ } else if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 1016:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorPackage), END_ELEMENT] */
+ if (iso2SensorPackageListType_SensorPackage_currArrayIndex < iso2SensorPackageListType->SensorPackage.arrayLen ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ if(errn == 0) {
+ errn = encode_iso2SensorPackageType(stream, &iso2SensorPackageListType->SensorPackage.array [iso2SensorPackageListType_SensorPackage_currArrayIndex++]);
+ }
+ grammarID = 1017;
+ } else if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 1017:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorPackage), END_ELEMENT] */
+ if (iso2SensorPackageListType_SensorPackage_currArrayIndex < iso2SensorPackageListType->SensorPackage.arrayLen ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ if(errn == 0) {
+ errn = encode_iso2SensorPackageType(stream, &iso2SensorPackageListType->SensorPackage.array [iso2SensorPackageListType_SensorPackage_currArrayIndex++]);
+ }
+ grammarID = 1018;
+ } else if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 1018:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorPackage), END_ELEMENT] */
+ if (iso2SensorPackageListType_SensorPackage_currArrayIndex < iso2SensorPackageListType->SensorPackage.arrayLen ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ if(errn == 0) {
+ errn = encode_iso2SensorPackageType(stream, &iso2SensorPackageListType->SensorPackage.array [iso2SensorPackageListType_SensorPackage_currArrayIndex++]);
+ }
+ grammarID = 1019;
+ } else if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 1019:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorPackage), END_ELEMENT] */
+ if (iso2SensorPackageListType_SensorPackage_currArrayIndex < iso2SensorPackageListType->SensorPackage.arrayLen ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ if(errn == 0) {
+ errn = encode_iso2SensorPackageType(stream, &iso2SensorPackageListType->SensorPackage.array [iso2SensorPackageListType_SensorPackage_currArrayIndex++]);
+ }
+ grammarID = 1020;
+ } else if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 1020:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorPackage), END_ELEMENT] */
+ if (iso2SensorPackageListType_SensorPackage_currArrayIndex < iso2SensorPackageListType->SensorPackage.arrayLen ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ if(errn == 0) {
+ errn = encode_iso2SensorPackageType(stream, &iso2SensorPackageListType->SensorPackage.array [iso2SensorPackageListType_SensorPackage_currArrayIndex++]);
+ }
+ grammarID = 1021;
+ } else if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 1021:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorPackage), END_ELEMENT] */
+ if (iso2SensorPackageListType_SensorPackage_currArrayIndex < iso2SensorPackageListType->SensorPackage.arrayLen ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ if(errn == 0) {
+ errn = encode_iso2SensorPackageType(stream, &iso2SensorPackageListType->SensorPackage.array [iso2SensorPackageListType_SensorPackage_currArrayIndex++]);
+ }
+ grammarID = 1022;
+ } else if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 1022:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorPackage), END_ELEMENT] */
+ if (iso2SensorPackageListType_SensorPackage_currArrayIndex < iso2SensorPackageListType->SensorPackage.arrayLen ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ if(errn == 0) {
+ errn = encode_iso2SensorPackageType(stream, &iso2SensorPackageListType->SensorPackage.array [iso2SensorPackageListType_SensorPackage_currArrayIndex++]);
+ }
+ grammarID = 1023;
+ } else if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 1023:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorPackage), END_ELEMENT] */
+ if (iso2SensorPackageListType_SensorPackage_currArrayIndex < iso2SensorPackageListType->SensorPackage.arrayLen ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ if(errn == 0) {
+ errn = encode_iso2SensorPackageType(stream, &iso2SensorPackageListType->SensorPackage.array [iso2SensorPackageListType_SensorPackage_currArrayIndex++]);
+ }
+ grammarID = 1024;
+ } else if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 1024:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorPackage), END_ELEMENT] */
+ if (iso2SensorPackageListType_SensorPackage_currArrayIndex < iso2SensorPackageListType->SensorPackage.arrayLen ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ if(errn == 0) {
+ errn = encode_iso2SensorPackageType(stream, &iso2SensorPackageListType->SensorPackage.array [iso2SensorPackageListType_SensorPackage_currArrayIndex++]);
+ }
+ grammarID = 1025;
+ } else if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 1025:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorPackage), END_ELEMENT] */
+ if (iso2SensorPackageListType_SensorPackage_currArrayIndex < iso2SensorPackageListType->SensorPackage.arrayLen ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ if(errn == 0) {
+ errn = encode_iso2SensorPackageType(stream, &iso2SensorPackageListType->SensorPackage.array [iso2SensorPackageListType_SensorPackage_currArrayIndex++]);
+ }
+ grammarID = 1026;
+ } else if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 1026:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorPackage), END_ELEMENT] */
+ if (iso2SensorPackageListType_SensorPackage_currArrayIndex < iso2SensorPackageListType->SensorPackage.arrayLen ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ if(errn == 0) {
+ errn = encode_iso2SensorPackageType(stream, &iso2SensorPackageListType->SensorPackage.array [iso2SensorPackageListType_SensorPackage_currArrayIndex++]);
+ }
+ grammarID = 1027;
+ } else if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 1027:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorPackage), END_ELEMENT] */
+ if (iso2SensorPackageListType_SensorPackage_currArrayIndex < iso2SensorPackageListType->SensorPackage.arrayLen ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ if(errn == 0) {
+ errn = encode_iso2SensorPackageType(stream, &iso2SensorPackageListType->SensorPackage.array [iso2SensorPackageListType_SensorPackage_currArrayIndex++]);
+ }
+ grammarID = 1028;
+ } else if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 1028:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorPackage), END_ELEMENT] */
+ if (iso2SensorPackageListType_SensorPackage_currArrayIndex < iso2SensorPackageListType->SensorPackage.arrayLen ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ if(errn == 0) {
+ errn = encode_iso2SensorPackageType(stream, &iso2SensorPackageListType->SensorPackage.array [iso2SensorPackageListType_SensorPackage_currArrayIndex++]);
+ }
+ grammarID = 1029;
+ } else if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 1029:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorPackage), END_ELEMENT] */
+ if (iso2SensorPackageListType_SensorPackage_currArrayIndex < iso2SensorPackageListType->SensorPackage.arrayLen ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ if(errn == 0) {
+ errn = encode_iso2SensorPackageType(stream, &iso2SensorPackageListType->SensorPackage.array [iso2SensorPackageListType_SensorPackage_currArrayIndex++]);
+ }
+ grammarID = 1030;
+ } else if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 1030:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorPackage), END_ELEMENT] */
+ if (iso2SensorPackageListType_SensorPackage_currArrayIndex < iso2SensorPackageListType->SensorPackage.arrayLen ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ if(errn == 0) {
+ errn = encode_iso2SensorPackageType(stream, &iso2SensorPackageListType->SensorPackage.array [iso2SensorPackageListType_SensorPackage_currArrayIndex++]);
+ }
+ grammarID = 1031;
+ } else if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 1031:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorPackage), END_ELEMENT] */
+ if (iso2SensorPackageListType_SensorPackage_currArrayIndex < iso2SensorPackageListType->SensorPackage.arrayLen ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ if(errn == 0) {
+ errn = encode_iso2SensorPackageType(stream, &iso2SensorPackageListType->SensorPackage.array [iso2SensorPackageListType_SensorPackage_currArrayIndex++]);
+ }
+ grammarID = 1032;
+ } else if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 1032:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorPackage), END_ELEMENT] */
+ if (iso2SensorPackageListType_SensorPackage_currArrayIndex < iso2SensorPackageListType->SensorPackage.arrayLen ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ if(errn == 0) {
+ errn = encode_iso2SensorPackageType(stream, &iso2SensorPackageListType->SensorPackage.array [iso2SensorPackageListType_SensorPackage_currArrayIndex++]);
+ }
+ grammarID = 1033;
+ } else if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 1033:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorPackage), END_ELEMENT] */
+ if (iso2SensorPackageListType_SensorPackage_currArrayIndex < iso2SensorPackageListType->SensorPackage.arrayLen ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ if(errn == 0) {
+ errn = encode_iso2SensorPackageType(stream, &iso2SensorPackageListType->SensorPackage.array [iso2SensorPackageListType_SensorPackage_currArrayIndex++]);
+ }
+ grammarID = 1034;
+ } else if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 1034:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorPackage), END_ELEMENT] */
+ if (iso2SensorPackageListType_SensorPackage_currArrayIndex < iso2SensorPackageListType->SensorPackage.arrayLen ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ if(errn == 0) {
+ errn = encode_iso2SensorPackageType(stream, &iso2SensorPackageListType->SensorPackage.array [iso2SensorPackageListType_SensorPackage_currArrayIndex++]);
+ }
+ grammarID = 1035;
+ } else if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 1035:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorPackage), END_ELEMENT] */
+ if (iso2SensorPackageListType_SensorPackage_currArrayIndex < iso2SensorPackageListType->SensorPackage.arrayLen ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ if(errn == 0) {
+ errn = encode_iso2SensorPackageType(stream, &iso2SensorPackageListType->SensorPackage.array [iso2SensorPackageListType_SensorPackage_currArrayIndex++]);
+ }
+ grammarID = 1036;
+ } else if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 1036:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorPackage), END_ELEMENT] */
+ if (iso2SensorPackageListType_SensorPackage_currArrayIndex < iso2SensorPackageListType->SensorPackage.arrayLen ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ if(errn == 0) {
+ errn = encode_iso2SensorPackageType(stream, &iso2SensorPackageListType->SensorPackage.array [iso2SensorPackageListType_SensorPackage_currArrayIndex++]);
+ }
+ grammarID = 1037;
+ } else if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 1037:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorPackage), END_ELEMENT] */
+ if (iso2SensorPackageListType_SensorPackage_currArrayIndex < iso2SensorPackageListType->SensorPackage.arrayLen ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ if(errn == 0) {
+ errn = encode_iso2SensorPackageType(stream, &iso2SensorPackageListType->SensorPackage.array [iso2SensorPackageListType_SensorPackage_currArrayIndex++]);
+ }
+ grammarID = 1038;
+ } else if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 1038:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorPackage), END_ELEMENT] */
+ if (iso2SensorPackageListType_SensorPackage_currArrayIndex < iso2SensorPackageListType->SensorPackage.arrayLen ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ if(errn == 0) {
+ errn = encode_iso2SensorPackageType(stream, &iso2SensorPackageListType->SensorPackage.array [iso2SensorPackageListType_SensorPackage_currArrayIndex++]);
+ }
+ grammarID = 1039;
+ } else if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 1039:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorPackage), END_ELEMENT] */
+ if (iso2SensorPackageListType_SensorPackage_currArrayIndex < iso2SensorPackageListType->SensorPackage.arrayLen ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ if(errn == 0) {
+ errn = encode_iso2SensorPackageType(stream, &iso2SensorPackageListType->SensorPackage.array [iso2SensorPackageListType_SensorPackage_currArrayIndex++]);
+ }
+ grammarID = 1040;
+ } else if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 1040:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorPackage), END_ELEMENT] */
+ if (iso2SensorPackageListType_SensorPackage_currArrayIndex < iso2SensorPackageListType->SensorPackage.arrayLen ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ if(errn == 0) {
+ errn = encode_iso2SensorPackageType(stream, &iso2SensorPackageListType->SensorPackage.array [iso2SensorPackageListType_SensorPackage_currArrayIndex++]);
+ }
+ grammarID = 1041;
+ } else if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 1041:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorPackage), END_ELEMENT] */
+ if (iso2SensorPackageListType_SensorPackage_currArrayIndex < iso2SensorPackageListType->SensorPackage.arrayLen ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ if(errn == 0) {
+ errn = encode_iso2SensorPackageType(stream, &iso2SensorPackageListType->SensorPackage.array [iso2SensorPackageListType_SensorPackage_currArrayIndex++]);
+ }
+ grammarID = 1042;
+ } else if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 1042:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorPackage), END_ELEMENT] */
+ if (iso2SensorPackageListType_SensorPackage_currArrayIndex < iso2SensorPackageListType->SensorPackage.arrayLen ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ if(errn == 0) {
+ errn = encode_iso2SensorPackageType(stream, &iso2SensorPackageListType->SensorPackage.array [iso2SensorPackageListType_SensorPackage_currArrayIndex++]);
+ }
+ grammarID = 1043;
+ } else if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 1043:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorPackage), END_ELEMENT] */
+ if (iso2SensorPackageListType_SensorPackage_currArrayIndex < iso2SensorPackageListType->SensorPackage.arrayLen ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ if(errn == 0) {
+ errn = encode_iso2SensorPackageType(stream, &iso2SensorPackageListType->SensorPackage.array [iso2SensorPackageListType_SensorPackage_currArrayIndex++]);
+ }
+ grammarID = 1044;
+ } else if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 1044:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorPackage), END_ELEMENT] */
+ if (iso2SensorPackageListType_SensorPackage_currArrayIndex < iso2SensorPackageListType->SensorPackage.arrayLen ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ if(errn == 0) {
+ errn = encode_iso2SensorPackageType(stream, &iso2SensorPackageListType->SensorPackage.array [iso2SensorPackageListType_SensorPackage_currArrayIndex++]);
+ }
+ grammarID = 1045;
+ } else if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 1045:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorPackage), END_ELEMENT] */
+ if (iso2SensorPackageListType_SensorPackage_currArrayIndex < iso2SensorPackageListType->SensorPackage.arrayLen ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ if(errn == 0) {
+ errn = encode_iso2SensorPackageType(stream, &iso2SensorPackageListType->SensorPackage.array [iso2SensorPackageListType_SensorPackage_currArrayIndex++]);
+ }
+ grammarID = 1046;
+ } else if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 1046:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorPackage), END_ELEMENT] */
+ if (iso2SensorPackageListType_SensorPackage_currArrayIndex < iso2SensorPackageListType->SensorPackage.arrayLen ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ if(errn == 0) {
+ errn = encode_iso2SensorPackageType(stream, &iso2SensorPackageListType->SensorPackage.array [iso2SensorPackageListType_SensorPackage_currArrayIndex++]);
+ }
+ grammarID = 1047;
+ } else if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 1047:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorPackage), END_ELEMENT] */
+ if (iso2SensorPackageListType_SensorPackage_currArrayIndex < iso2SensorPackageListType->SensorPackage.arrayLen ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ if(errn == 0) {
+ errn = encode_iso2SensorPackageType(stream, &iso2SensorPackageListType->SensorPackage.array [iso2SensorPackageListType_SensorPackage_currArrayIndex++]);
+ }
+ grammarID = 1048;
+ } else if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 1048:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorPackage), END_ELEMENT] */
+ if (iso2SensorPackageListType_SensorPackage_currArrayIndex < iso2SensorPackageListType->SensorPackage.arrayLen ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ if(errn == 0) {
+ errn = encode_iso2SensorPackageType(stream, &iso2SensorPackageListType->SensorPackage.array [iso2SensorPackageListType_SensorPackage_currArrayIndex++]);
+ }
+ grammarID = 1049;
+ } else if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 1049:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorPackage), END_ELEMENT] */
+ if (iso2SensorPackageListType_SensorPackage_currArrayIndex < iso2SensorPackageListType->SensorPackage.arrayLen ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ if(errn == 0) {
+ errn = encode_iso2SensorPackageType(stream, &iso2SensorPackageListType->SensorPackage.array [iso2SensorPackageListType_SensorPackage_currArrayIndex++]);
+ }
+ grammarID = 1050;
+ } else if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 1050:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorPackage), END_ELEMENT] */
+ if (iso2SensorPackageListType_SensorPackage_currArrayIndex < iso2SensorPackageListType->SensorPackage.arrayLen ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ if(errn == 0) {
+ errn = encode_iso2SensorPackageType(stream, &iso2SensorPackageListType->SensorPackage.array [iso2SensorPackageListType_SensorPackage_currArrayIndex++]);
+ }
+ grammarID = 1051;
+ } else if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 1051:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorPackage), END_ELEMENT] */
+ if (iso2SensorPackageListType_SensorPackage_currArrayIndex < iso2SensorPackageListType->SensorPackage.arrayLen ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ if(errn == 0) {
+ errn = encode_iso2SensorPackageType(stream, &iso2SensorPackageListType->SensorPackage.array [iso2SensorPackageListType_SensorPackage_currArrayIndex++]);
+ }
+ grammarID = 1052;
+ } else if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 1052:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorPackage), END_ELEMENT] */
+ if (iso2SensorPackageListType_SensorPackage_currArrayIndex < iso2SensorPackageListType->SensorPackage.arrayLen ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ if(errn == 0) {
+ errn = encode_iso2SensorPackageType(stream, &iso2SensorPackageListType->SensorPackage.array [iso2SensorPackageListType_SensorPackage_currArrayIndex++]);
+ }
+ grammarID = 1053;
+ } else if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 1053:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorPackage), END_ELEMENT] */
+ if (iso2SensorPackageListType_SensorPackage_currArrayIndex < iso2SensorPackageListType->SensorPackage.arrayLen ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ if(errn == 0) {
+ errn = encode_iso2SensorPackageType(stream, &iso2SensorPackageListType->SensorPackage.array [iso2SensorPackageListType_SensorPackage_currArrayIndex++]);
+ }
+ grammarID = 1054;
+ } else if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 1054:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorPackage), END_ELEMENT] */
+ if (iso2SensorPackageListType_SensorPackage_currArrayIndex < iso2SensorPackageListType->SensorPackage.arrayLen ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ if(errn == 0) {
+ errn = encode_iso2SensorPackageType(stream, &iso2SensorPackageListType->SensorPackage.array [iso2SensorPackageListType_SensorPackage_currArrayIndex++]);
+ }
+ grammarID = 1055;
+ } else if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 1055:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorPackage), END_ELEMENT] */
+ if (iso2SensorPackageListType_SensorPackage_currArrayIndex < iso2SensorPackageListType->SensorPackage.arrayLen ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ if(errn == 0) {
+ errn = encode_iso2SensorPackageType(stream, &iso2SensorPackageListType->SensorPackage.array [iso2SensorPackageListType_SensorPackage_currArrayIndex++]);
+ }
+ grammarID = 1056;
+ } else if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 1056:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorPackage), END_ELEMENT] */
+ if (iso2SensorPackageListType_SensorPackage_currArrayIndex < iso2SensorPackageListType->SensorPackage.arrayLen ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ if(errn == 0) {
+ errn = encode_iso2SensorPackageType(stream, &iso2SensorPackageListType->SensorPackage.array [iso2SensorPackageListType_SensorPackage_currArrayIndex++]);
+ }
+ grammarID = 1057;
+ } else if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 1057:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorPackage), END_ELEMENT] */
+ if (iso2SensorPackageListType_SensorPackage_currArrayIndex < iso2SensorPackageListType->SensorPackage.arrayLen ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ if(errn == 0) {
+ errn = encode_iso2SensorPackageType(stream, &iso2SensorPackageListType->SensorPackage.array [iso2SensorPackageListType_SensorPackage_currArrayIndex++]);
+ }
+ grammarID = 1058;
+ } else if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 1058:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorPackage), END_ELEMENT] */
+ if (iso2SensorPackageListType_SensorPackage_currArrayIndex < iso2SensorPackageListType->SensorPackage.arrayLen ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ if(errn == 0) {
+ errn = encode_iso2SensorPackageType(stream, &iso2SensorPackageListType->SensorPackage.array [iso2SensorPackageListType_SensorPackage_currArrayIndex++]);
+ }
+ grammarID = 1059;
+ } else if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 1059:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorPackage), END_ELEMENT] */
+ if (iso2SensorPackageListType_SensorPackage_currArrayIndex < iso2SensorPackageListType->SensorPackage.arrayLen ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ if(errn == 0) {
+ errn = encode_iso2SensorPackageType(stream, &iso2SensorPackageListType->SensorPackage.array [iso2SensorPackageListType_SensorPackage_currArrayIndex++]);
+ }
+ grammarID = 1060;
+ } else if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 1060:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorPackage), END_ELEMENT] */
+ if (iso2SensorPackageListType_SensorPackage_currArrayIndex < iso2SensorPackageListType->SensorPackage.arrayLen ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ if(errn == 0) {
+ errn = encode_iso2SensorPackageType(stream, &iso2SensorPackageListType->SensorPackage.array [iso2SensorPackageListType_SensorPackage_currArrayIndex++]);
+ }
+ grammarID = 1061;
+ } else if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 1061:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorPackage), END_ELEMENT] */
+ if (iso2SensorPackageListType_SensorPackage_currArrayIndex < iso2SensorPackageListType->SensorPackage.arrayLen ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ if(errn == 0) {
+ errn = encode_iso2SensorPackageType(stream, &iso2SensorPackageListType->SensorPackage.array [iso2SensorPackageListType_SensorPackage_currArrayIndex++]);
+ }
+ grammarID = 1062;
+ } else if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 1062:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorPackage), END_ELEMENT] */
+ if (iso2SensorPackageListType_SensorPackage_currArrayIndex < iso2SensorPackageListType->SensorPackage.arrayLen ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ if(errn == 0) {
+ errn = encode_iso2SensorPackageType(stream, &iso2SensorPackageListType->SensorPackage.array [iso2SensorPackageListType_SensorPackage_currArrayIndex++]);
+ }
+ grammarID = 1063;
+ } else if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 1063:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorPackage), END_ELEMENT] */
+ if (iso2SensorPackageListType_SensorPackage_currArrayIndex < iso2SensorPackageListType->SensorPackage.arrayLen ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ if(errn == 0) {
+ errn = encode_iso2SensorPackageType(stream, &iso2SensorPackageListType->SensorPackage.array [iso2SensorPackageListType_SensorPackage_currArrayIndex++]);
+ }
+ grammarID = 1064;
+ } else if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 1064:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorPackage), END_ELEMENT] */
+ if (iso2SensorPackageListType_SensorPackage_currArrayIndex < iso2SensorPackageListType->SensorPackage.arrayLen ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ if(errn == 0) {
+ errn = encode_iso2SensorPackageType(stream, &iso2SensorPackageListType->SensorPackage.array [iso2SensorPackageListType_SensorPackage_currArrayIndex++]);
+ }
+ grammarID = 1065;
+ } else if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 1065:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorPackage), END_ELEMENT] */
+ if (iso2SensorPackageListType_SensorPackage_currArrayIndex < iso2SensorPackageListType->SensorPackage.arrayLen ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ if(errn == 0) {
+ errn = encode_iso2SensorPackageType(stream, &iso2SensorPackageListType->SensorPackage.array [iso2SensorPackageListType_SensorPackage_currArrayIndex++]);
+ }
+ grammarID = 1066;
+ } else if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 1066:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorPackage), END_ELEMENT] */
+ if (iso2SensorPackageListType_SensorPackage_currArrayIndex < iso2SensorPackageListType->SensorPackage.arrayLen ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ if(errn == 0) {
+ errn = encode_iso2SensorPackageType(stream, &iso2SensorPackageListType->SensorPackage.array [iso2SensorPackageListType_SensorPackage_currArrayIndex++]);
+ }
+ grammarID = 1067;
+ } else if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 1067:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorPackage), END_ELEMENT] */
+ if (iso2SensorPackageListType_SensorPackage_currArrayIndex < iso2SensorPackageListType->SensorPackage.arrayLen ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ if(errn == 0) {
+ errn = encode_iso2SensorPackageType(stream, &iso2SensorPackageListType->SensorPackage.array [iso2SensorPackageListType_SensorPackage_currArrayIndex++]);
+ }
+ grammarID = 1068;
+ } else if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 1068:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorPackage), END_ELEMENT] */
+ if (iso2SensorPackageListType_SensorPackage_currArrayIndex < iso2SensorPackageListType->SensorPackage.arrayLen ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ if(errn == 0) {
+ errn = encode_iso2SensorPackageType(stream, &iso2SensorPackageListType->SensorPackage.array [iso2SensorPackageListType_SensorPackage_currArrayIndex++]);
+ }
+ grammarID = 1069;
+ } else if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 1069:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorPackage), END_ELEMENT] */
+ if (iso2SensorPackageListType_SensorPackage_currArrayIndex < iso2SensorPackageListType->SensorPackage.arrayLen ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ if(errn == 0) {
+ errn = encode_iso2SensorPackageType(stream, &iso2SensorPackageListType->SensorPackage.array [iso2SensorPackageListType_SensorPackage_currArrayIndex++]);
+ }
+ grammarID = 1070;
+ } else if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 1070:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorPackage), END_ELEMENT] */
+ if (iso2SensorPackageListType_SensorPackage_currArrayIndex < iso2SensorPackageListType->SensorPackage.arrayLen ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ if(errn == 0) {
+ errn = encode_iso2SensorPackageType(stream, &iso2SensorPackageListType->SensorPackage.array [iso2SensorPackageListType_SensorPackage_currArrayIndex++]);
+ }
+ grammarID = 1071;
+ } else if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 1071:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorPackage), END_ELEMENT] */
+ if (iso2SensorPackageListType_SensorPackage_currArrayIndex < iso2SensorPackageListType->SensorPackage.arrayLen ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ if(errn == 0) {
+ errn = encode_iso2SensorPackageType(stream, &iso2SensorPackageListType->SensorPackage.array [iso2SensorPackageListType_SensorPackage_currArrayIndex++]);
+ }
+ grammarID = 1072;
+ } else if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 1072:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorPackage), END_ELEMENT] */
+ if (iso2SensorPackageListType_SensorPackage_currArrayIndex < iso2SensorPackageListType->SensorPackage.arrayLen ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ if(errn == 0) {
+ errn = encode_iso2SensorPackageType(stream, &iso2SensorPackageListType->SensorPackage.array [iso2SensorPackageListType_SensorPackage_currArrayIndex++]);
+ }
+ grammarID = 1073;
+ } else if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 1073:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorPackage), END_ELEMENT] */
+ if (iso2SensorPackageListType_SensorPackage_currArrayIndex < iso2SensorPackageListType->SensorPackage.arrayLen ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ if(errn == 0) {
+ errn = encode_iso2SensorPackageType(stream, &iso2SensorPackageListType->SensorPackage.array [iso2SensorPackageListType_SensorPackage_currArrayIndex++]);
+ }
+ grammarID = 1074;
+ } else if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 1074:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorPackage), END_ELEMENT] */
+ if (iso2SensorPackageListType_SensorPackage_currArrayIndex < iso2SensorPackageListType->SensorPackage.arrayLen ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ if(errn == 0) {
+ errn = encode_iso2SensorPackageType(stream, &iso2SensorPackageListType->SensorPackage.array [iso2SensorPackageListType_SensorPackage_currArrayIndex++]);
+ }
+ grammarID = 1075;
+ } else if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 1075:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorPackage), END_ELEMENT] */
+ if (iso2SensorPackageListType_SensorPackage_currArrayIndex < iso2SensorPackageListType->SensorPackage.arrayLen ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ if(errn == 0) {
+ errn = encode_iso2SensorPackageType(stream, &iso2SensorPackageListType->SensorPackage.array [iso2SensorPackageListType_SensorPackage_currArrayIndex++]);
+ }
+ grammarID = 1076;
+ } else if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 1076:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorPackage), END_ELEMENT] */
+ if (iso2SensorPackageListType_SensorPackage_currArrayIndex < iso2SensorPackageListType->SensorPackage.arrayLen ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ if(errn == 0) {
+ errn = encode_iso2SensorPackageType(stream, &iso2SensorPackageListType->SensorPackage.array [iso2SensorPackageListType_SensorPackage_currArrayIndex++]);
+ }
+ grammarID = 1077;
+ } else if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 1077:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorPackage), END_ELEMENT] */
+ if (iso2SensorPackageListType_SensorPackage_currArrayIndex < iso2SensorPackageListType->SensorPackage.arrayLen ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ if(errn == 0) {
+ errn = encode_iso2SensorPackageType(stream, &iso2SensorPackageListType->SensorPackage.array [iso2SensorPackageListType_SensorPackage_currArrayIndex++]);
+ }
+ grammarID = 1078;
+ } else if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 1078:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorPackage), END_ELEMENT] */
+ if (iso2SensorPackageListType_SensorPackage_currArrayIndex < iso2SensorPackageListType->SensorPackage.arrayLen ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ if(errn == 0) {
+ errn = encode_iso2SensorPackageType(stream, &iso2SensorPackageListType->SensorPackage.array [iso2SensorPackageListType_SensorPackage_currArrayIndex++]);
+ }
+ grammarID = 1079;
+ } else if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 1079:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorPackage), END_ELEMENT] */
+ if (iso2SensorPackageListType_SensorPackage_currArrayIndex < iso2SensorPackageListType->SensorPackage.arrayLen ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ if(errn == 0) {
+ errn = encode_iso2SensorPackageType(stream, &iso2SensorPackageListType->SensorPackage.array [iso2SensorPackageListType_SensorPackage_currArrayIndex++]);
+ }
+ grammarID = 1080;
+ } else if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 1080:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorPackage), END_ELEMENT] */
+ if (iso2SensorPackageListType_SensorPackage_currArrayIndex < iso2SensorPackageListType->SensorPackage.arrayLen ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ if(errn == 0) {
+ errn = encode_iso2SensorPackageType(stream, &iso2SensorPackageListType->SensorPackage.array [iso2SensorPackageListType_SensorPackage_currArrayIndex++]);
+ }
+ grammarID = 1081;
+ } else if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 1081:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorPackage), END_ELEMENT] */
+ if (iso2SensorPackageListType_SensorPackage_currArrayIndex < iso2SensorPackageListType->SensorPackage.arrayLen ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ if(errn == 0) {
+ errn = encode_iso2SensorPackageType(stream, &iso2SensorPackageListType->SensorPackage.array [iso2SensorPackageListType_SensorPackage_currArrayIndex++]);
+ }
+ grammarID = 1082;
+ } else if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 1082:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorPackage), END_ELEMENT] */
+ if (iso2SensorPackageListType_SensorPackage_currArrayIndex < iso2SensorPackageListType->SensorPackage.arrayLen ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ if(errn == 0) {
+ errn = encode_iso2SensorPackageType(stream, &iso2SensorPackageListType->SensorPackage.array [iso2SensorPackageListType_SensorPackage_currArrayIndex++]);
+ }
+ grammarID = 1083;
+ } else if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 1083:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorPackage), END_ELEMENT] */
+ if (iso2SensorPackageListType_SensorPackage_currArrayIndex < iso2SensorPackageListType->SensorPackage.arrayLen ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ if(errn == 0) {
+ errn = encode_iso2SensorPackageType(stream, &iso2SensorPackageListType->SensorPackage.array [iso2SensorPackageListType_SensorPackage_currArrayIndex++]);
+ }
+ grammarID = 1084;
+ } else if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 1084:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorPackage), END_ELEMENT] */
+ if (iso2SensorPackageListType_SensorPackage_currArrayIndex < iso2SensorPackageListType->SensorPackage.arrayLen ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ if(errn == 0) {
+ errn = encode_iso2SensorPackageType(stream, &iso2SensorPackageListType->SensorPackage.array [iso2SensorPackageListType_SensorPackage_currArrayIndex++]);
+ }
+ grammarID = 1085;
+ } else if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 1085:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorPackage), END_ELEMENT] */
+ if (iso2SensorPackageListType_SensorPackage_currArrayIndex < iso2SensorPackageListType->SensorPackage.arrayLen ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ if(errn == 0) {
+ errn = encode_iso2SensorPackageType(stream, &iso2SensorPackageListType->SensorPackage.array [iso2SensorPackageListType_SensorPackage_currArrayIndex++]);
+ }
+ grammarID = 1086;
+ } else if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 1086:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorPackage), END_ELEMENT] */
+ if (iso2SensorPackageListType_SensorPackage_currArrayIndex < iso2SensorPackageListType->SensorPackage.arrayLen ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ if(errn == 0) {
+ errn = encode_iso2SensorPackageType(stream, &iso2SensorPackageListType->SensorPackage.array [iso2SensorPackageListType_SensorPackage_currArrayIndex++]);
+ }
+ grammarID = 1087;
+ } else if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 1087:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorPackage), END_ELEMENT] */
+ if (iso2SensorPackageListType_SensorPackage_currArrayIndex < iso2SensorPackageListType->SensorPackage.arrayLen ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ if(errn == 0) {
+ errn = encode_iso2SensorPackageType(stream, &iso2SensorPackageListType->SensorPackage.array [iso2SensorPackageListType_SensorPackage_currArrayIndex++]);
+ }
+ grammarID = 1088;
+ } else if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 1088:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorPackage), END_ELEMENT] */
+ if (iso2SensorPackageListType_SensorPackage_currArrayIndex < iso2SensorPackageListType->SensorPackage.arrayLen ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ if(errn == 0) {
+ errn = encode_iso2SensorPackageType(stream, &iso2SensorPackageListType->SensorPackage.array [iso2SensorPackageListType_SensorPackage_currArrayIndex++]);
+ }
+ grammarID = 1089;
+ } else if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 1089:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorPackage), END_ELEMENT] */
+ if (iso2SensorPackageListType_SensorPackage_currArrayIndex < iso2SensorPackageListType->SensorPackage.arrayLen ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ if(errn == 0) {
+ errn = encode_iso2SensorPackageType(stream, &iso2SensorPackageListType->SensorPackage.array [iso2SensorPackageListType_SensorPackage_currArrayIndex++]);
+ }
+ grammarID = 1090;
+ } else if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 1090:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorPackage), END_ELEMENT] */
+ if (iso2SensorPackageListType_SensorPackage_currArrayIndex < iso2SensorPackageListType->SensorPackage.arrayLen ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ if(errn == 0) {
+ errn = encode_iso2SensorPackageType(stream, &iso2SensorPackageListType->SensorPackage.array [iso2SensorPackageListType_SensorPackage_currArrayIndex++]);
+ }
+ grammarID = 1091;
+ } else if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 1091:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorPackage), END_ELEMENT] */
+ if (iso2SensorPackageListType_SensorPackage_currArrayIndex < iso2SensorPackageListType->SensorPackage.arrayLen ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ if(errn == 0) {
+ errn = encode_iso2SensorPackageType(stream, &iso2SensorPackageListType->SensorPackage.array [iso2SensorPackageListType_SensorPackage_currArrayIndex++]);
+ }
+ grammarID = 1092;
+ } else if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 1092:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorPackage), END_ELEMENT] */
+ if (iso2SensorPackageListType_SensorPackage_currArrayIndex < iso2SensorPackageListType->SensorPackage.arrayLen ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ if(errn == 0) {
+ errn = encode_iso2SensorPackageType(stream, &iso2SensorPackageListType->SensorPackage.array [iso2SensorPackageListType_SensorPackage_currArrayIndex++]);
+ }
+ grammarID = 1093;
+ } else if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 1093:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorPackage), END_ELEMENT] */
+ if (iso2SensorPackageListType_SensorPackage_currArrayIndex < iso2SensorPackageListType->SensorPackage.arrayLen ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ if(errn == 0) {
+ errn = encode_iso2SensorPackageType(stream, &iso2SensorPackageListType->SensorPackage.array [iso2SensorPackageListType_SensorPackage_currArrayIndex++]);
+ }
+ grammarID = 1094;
+ } else if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 1094:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorPackage), END_ELEMENT] */
+ if (iso2SensorPackageListType_SensorPackage_currArrayIndex < iso2SensorPackageListType->SensorPackage.arrayLen ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ if(errn == 0) {
+ errn = encode_iso2SensorPackageType(stream, &iso2SensorPackageListType->SensorPackage.array [iso2SensorPackageListType_SensorPackage_currArrayIndex++]);
+ }
+ grammarID = 1095;
+ } else if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 1095:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorPackage), END_ELEMENT] */
+ if (iso2SensorPackageListType_SensorPackage_currArrayIndex < iso2SensorPackageListType->SensorPackage.arrayLen ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ if(errn == 0) {
+ errn = encode_iso2SensorPackageType(stream, &iso2SensorPackageListType->SensorPackage.array [iso2SensorPackageListType_SensorPackage_currArrayIndex++]);
+ }
+ grammarID = 1096;
+ } else if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 1096:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorPackage), END_ELEMENT] */
+ if (iso2SensorPackageListType_SensorPackage_currArrayIndex < iso2SensorPackageListType->SensorPackage.arrayLen ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ if(errn == 0) {
+ errn = encode_iso2SensorPackageType(stream, &iso2SensorPackageListType->SensorPackage.array [iso2SensorPackageListType_SensorPackage_currArrayIndex++]);
+ }
+ grammarID = 1097;
+ } else if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 1097:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorPackage), END_ELEMENT] */
+ if (iso2SensorPackageListType_SensorPackage_currArrayIndex < iso2SensorPackageListType->SensorPackage.arrayLen ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ if(errn == 0) {
+ errn = encode_iso2SensorPackageType(stream, &iso2SensorPackageListType->SensorPackage.array [iso2SensorPackageListType_SensorPackage_currArrayIndex++]);
+ }
+ grammarID = 1098;
+ } else if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 1098:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorPackage), END_ELEMENT] */
+ if (iso2SensorPackageListType_SensorPackage_currArrayIndex < iso2SensorPackageListType->SensorPackage.arrayLen ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ if(errn == 0) {
+ errn = encode_iso2SensorPackageType(stream, &iso2SensorPackageListType->SensorPackage.array [iso2SensorPackageListType_SensorPackage_currArrayIndex++]);
+ }
+ grammarID = 1099;
+ } else if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 1099:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorPackage), END_ELEMENT] */
+ if (iso2SensorPackageListType_SensorPackage_currArrayIndex < iso2SensorPackageListType->SensorPackage.arrayLen ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ if(errn == 0) {
+ errn = encode_iso2SensorPackageType(stream, &iso2SensorPackageListType->SensorPackage.array [iso2SensorPackageListType_SensorPackage_currArrayIndex++]);
+ }
+ grammarID = 1100;
+ } else if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 1100:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorPackage), END_ELEMENT] */
+ if (iso2SensorPackageListType_SensorPackage_currArrayIndex < iso2SensorPackageListType->SensorPackage.arrayLen ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ if(errn == 0) {
+ errn = encode_iso2SensorPackageType(stream, &iso2SensorPackageListType->SensorPackage.array [iso2SensorPackageListType_SensorPackage_currArrayIndex++]);
+ }
+ grammarID = 1101;
+ } else if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 1101:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorPackage), END_ELEMENT] */
+ if (iso2SensorPackageListType_SensorPackage_currArrayIndex < iso2SensorPackageListType->SensorPackage.arrayLen ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ if(errn == 0) {
+ errn = encode_iso2SensorPackageType(stream, &iso2SensorPackageListType->SensorPackage.array [iso2SensorPackageListType_SensorPackage_currArrayIndex++]);
+ }
+ grammarID = 1102;
+ } else if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 1102:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorPackage), END_ELEMENT] */
+ if (iso2SensorPackageListType_SensorPackage_currArrayIndex < iso2SensorPackageListType->SensorPackage.arrayLen ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ if(errn == 0) {
+ errn = encode_iso2SensorPackageType(stream, &iso2SensorPackageListType->SensorPackage.array [iso2SensorPackageListType_SensorPackage_currArrayIndex++]);
+ }
+ grammarID = 1103;
+ } else if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 1103:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorPackage), END_ELEMENT] */
+ if (iso2SensorPackageListType_SensorPackage_currArrayIndex < iso2SensorPackageListType->SensorPackage.arrayLen ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ if(errn == 0) {
+ errn = encode_iso2SensorPackageType(stream, &iso2SensorPackageListType->SensorPackage.array [iso2SensorPackageListType_SensorPackage_currArrayIndex++]);
+ }
+ grammarID = 1104;
+ } else if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 1104:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorPackage), END_ELEMENT] */
+ if (iso2SensorPackageListType_SensorPackage_currArrayIndex < iso2SensorPackageListType->SensorPackage.arrayLen ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ if(errn == 0) {
+ errn = encode_iso2SensorPackageType(stream, &iso2SensorPackageListType->SensorPackage.array [iso2SensorPackageListType_SensorPackage_currArrayIndex++]);
+ }
+ grammarID = 1105;
+ } else if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 1105:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorPackage), END_ELEMENT] */
+ if (iso2SensorPackageListType_SensorPackage_currArrayIndex < iso2SensorPackageListType->SensorPackage.arrayLen ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ if(errn == 0) {
+ errn = encode_iso2SensorPackageType(stream, &iso2SensorPackageListType->SensorPackage.array [iso2SensorPackageListType_SensorPackage_currArrayIndex++]);
+ }
+ grammarID = 1106;
+ } else if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 1106:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorPackage), END_ELEMENT] */
+ if (iso2SensorPackageListType_SensorPackage_currArrayIndex < iso2SensorPackageListType->SensorPackage.arrayLen ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ if(errn == 0) {
+ errn = encode_iso2SensorPackageType(stream, &iso2SensorPackageListType->SensorPackage.array [iso2SensorPackageListType_SensorPackage_currArrayIndex++]);
+ }
+ grammarID = 1107;
+ } else if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 1107:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorPackage), END_ELEMENT] */
+ if (iso2SensorPackageListType_SensorPackage_currArrayIndex < iso2SensorPackageListType->SensorPackage.arrayLen ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ if(errn == 0) {
+ errn = encode_iso2SensorPackageType(stream, &iso2SensorPackageListType->SensorPackage.array [iso2SensorPackageListType_SensorPackage_currArrayIndex++]);
+ }
+ grammarID = 1108;
+ } else if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 1108:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorPackage), END_ELEMENT] */
+ if (iso2SensorPackageListType_SensorPackage_currArrayIndex < iso2SensorPackageListType->SensorPackage.arrayLen ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ if(errn == 0) {
+ errn = encode_iso2SensorPackageType(stream, &iso2SensorPackageListType->SensorPackage.array [iso2SensorPackageListType_SensorPackage_currArrayIndex++]);
+ }
+ grammarID = 1109;
+ } else if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 1109:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorPackage), END_ELEMENT] */
+ if (iso2SensorPackageListType_SensorPackage_currArrayIndex < iso2SensorPackageListType->SensorPackage.arrayLen ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ if(errn == 0) {
+ errn = encode_iso2SensorPackageType(stream, &iso2SensorPackageListType->SensorPackage.array [iso2SensorPackageListType_SensorPackage_currArrayIndex++]);
+ }
+ grammarID = 1110;
+ } else if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 1110:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorPackage), END_ELEMENT] */
+ if (iso2SensorPackageListType_SensorPackage_currArrayIndex < iso2SensorPackageListType->SensorPackage.arrayLen ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ if(errn == 0) {
+ errn = encode_iso2SensorPackageType(stream, &iso2SensorPackageListType->SensorPackage.array [iso2SensorPackageListType_SensorPackage_currArrayIndex++]);
+ }
+ grammarID = 1111;
+ } else if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 1111:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorPackage), END_ELEMENT] */
+ if (iso2SensorPackageListType_SensorPackage_currArrayIndex < iso2SensorPackageListType->SensorPackage.arrayLen ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ if(errn == 0) {
+ errn = encode_iso2SensorPackageType(stream, &iso2SensorPackageListType->SensorPackage.array [iso2SensorPackageListType_SensorPackage_currArrayIndex++]);
+ }
+ grammarID = 1112;
+ } else if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 1112:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorPackage), END_ELEMENT] */
+ if (iso2SensorPackageListType_SensorPackage_currArrayIndex < iso2SensorPackageListType->SensorPackage.arrayLen ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ if(errn == 0) {
+ errn = encode_iso2SensorPackageType(stream, &iso2SensorPackageListType->SensorPackage.array [iso2SensorPackageListType_SensorPackage_currArrayIndex++]);
+ }
+ grammarID = 1113;
+ } else if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 1113:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorPackage), END_ELEMENT] */
+ if (iso2SensorPackageListType_SensorPackage_currArrayIndex < iso2SensorPackageListType->SensorPackage.arrayLen ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ if(errn == 0) {
+ errn = encode_iso2SensorPackageType(stream, &iso2SensorPackageListType->SensorPackage.array [iso2SensorPackageListType_SensorPackage_currArrayIndex++]);
+ }
+ grammarID = 1114;
+ } else if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 1114:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorPackage), END_ELEMENT] */
+ if (iso2SensorPackageListType_SensorPackage_currArrayIndex < iso2SensorPackageListType->SensorPackage.arrayLen ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ if(errn == 0) {
+ errn = encode_iso2SensorPackageType(stream, &iso2SensorPackageListType->SensorPackage.array [iso2SensorPackageListType_SensorPackage_currArrayIndex++]);
+ }
+ grammarID = 1115;
+ } else if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 1115:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorPackage), END_ELEMENT] */
+ if (iso2SensorPackageListType_SensorPackage_currArrayIndex < iso2SensorPackageListType->SensorPackage.arrayLen ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ if(errn == 0) {
+ errn = encode_iso2SensorPackageType(stream, &iso2SensorPackageListType->SensorPackage.array [iso2SensorPackageListType_SensorPackage_currArrayIndex++]);
+ }
+ grammarID = 1116;
+ } else if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 1116:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorPackage), END_ELEMENT] */
+ if (iso2SensorPackageListType_SensorPackage_currArrayIndex < iso2SensorPackageListType->SensorPackage.arrayLen ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ if(errn == 0) {
+ errn = encode_iso2SensorPackageType(stream, &iso2SensorPackageListType->SensorPackage.array [iso2SensorPackageListType_SensorPackage_currArrayIndex++]);
+ }
+ grammarID = 1117;
+ } else if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 1117:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorPackage), END_ELEMENT] */
+ if (iso2SensorPackageListType_SensorPackage_currArrayIndex < iso2SensorPackageListType->SensorPackage.arrayLen ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ if(errn == 0) {
+ errn = encode_iso2SensorPackageType(stream, &iso2SensorPackageListType->SensorPackage.array [iso2SensorPackageListType_SensorPackage_currArrayIndex++]);
+ }
+ grammarID = 1118;
+ } else if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 1118:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorPackage), END_ELEMENT] */
+ if (iso2SensorPackageListType_SensorPackage_currArrayIndex < iso2SensorPackageListType->SensorPackage.arrayLen ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ if(errn == 0) {
+ errn = encode_iso2SensorPackageType(stream, &iso2SensorPackageListType->SensorPackage.array [iso2SensorPackageListType_SensorPackage_currArrayIndex++]);
+ }
+ grammarID = 1119;
+ } else if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 1119:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorPackage), END_ELEMENT] */
+ if (iso2SensorPackageListType_SensorPackage_currArrayIndex < iso2SensorPackageListType->SensorPackage.arrayLen ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ if(errn == 0) {
+ errn = encode_iso2SensorPackageType(stream, &iso2SensorPackageListType->SensorPackage.array [iso2SensorPackageListType_SensorPackage_currArrayIndex++]);
+ }
+ grammarID = 1120;
+ } else if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 1120:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorPackage), END_ELEMENT] */
+ if (iso2SensorPackageListType_SensorPackage_currArrayIndex < iso2SensorPackageListType->SensorPackage.arrayLen ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ if(errn == 0) {
+ errn = encode_iso2SensorPackageType(stream, &iso2SensorPackageListType->SensorPackage.array [iso2SensorPackageListType_SensorPackage_currArrayIndex++]);
+ }
+ grammarID = 1121;
+ } else if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 1121:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorPackage), END_ELEMENT] */
+ if (iso2SensorPackageListType_SensorPackage_currArrayIndex < iso2SensorPackageListType->SensorPackage.arrayLen ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ if(errn == 0) {
+ errn = encode_iso2SensorPackageType(stream, &iso2SensorPackageListType->SensorPackage.array [iso2SensorPackageListType_SensorPackage_currArrayIndex++]);
+ }
+ grammarID = 1122;
+ } else if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 1122:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorPackage), END_ELEMENT] */
+ if (iso2SensorPackageListType_SensorPackage_currArrayIndex < iso2SensorPackageListType->SensorPackage.arrayLen ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ if(errn == 0) {
+ errn = encode_iso2SensorPackageType(stream, &iso2SensorPackageListType->SensorPackage.array [iso2SensorPackageListType_SensorPackage_currArrayIndex++]);
+ }
+ grammarID = 1123;
+ } else if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 1123:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorPackage), END_ELEMENT] */
+ if (iso2SensorPackageListType_SensorPackage_currArrayIndex < iso2SensorPackageListType->SensorPackage.arrayLen ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ if(errn == 0) {
+ errn = encode_iso2SensorPackageType(stream, &iso2SensorPackageListType->SensorPackage.array [iso2SensorPackageListType_SensorPackage_currArrayIndex++]);
+ }
+ grammarID = 1124;
+ } else if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 1124:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorPackage), END_ELEMENT] */
+ if (iso2SensorPackageListType_SensorPackage_currArrayIndex < iso2SensorPackageListType->SensorPackage.arrayLen ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ if(errn == 0) {
+ errn = encode_iso2SensorPackageType(stream, &iso2SensorPackageListType->SensorPackage.array [iso2SensorPackageListType_SensorPackage_currArrayIndex++]);
+ }
+ grammarID = 1125;
+ } else if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 1125:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorPackage), END_ELEMENT] */
+ if (iso2SensorPackageListType_SensorPackage_currArrayIndex < iso2SensorPackageListType->SensorPackage.arrayLen ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ if(errn == 0) {
+ errn = encode_iso2SensorPackageType(stream, &iso2SensorPackageListType->SensorPackage.array [iso2SensorPackageListType_SensorPackage_currArrayIndex++]);
+ }
+ grammarID = 1126;
+ } else if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 1126:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorPackage), END_ELEMENT] */
+ if (iso2SensorPackageListType_SensorPackage_currArrayIndex < iso2SensorPackageListType->SensorPackage.arrayLen ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ if(errn == 0) {
+ errn = encode_iso2SensorPackageType(stream, &iso2SensorPackageListType->SensorPackage.array [iso2SensorPackageListType_SensorPackage_currArrayIndex++]);
+ }
+ grammarID = 1127;
+ } else if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 1127:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorPackage), END_ELEMENT] */
+ if (iso2SensorPackageListType_SensorPackage_currArrayIndex < iso2SensorPackageListType->SensorPackage.arrayLen ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ if(errn == 0) {
+ errn = encode_iso2SensorPackageType(stream, &iso2SensorPackageListType->SensorPackage.array [iso2SensorPackageListType_SensorPackage_currArrayIndex++]);
+ }
+ grammarID = 1128;
+ } else if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 1128:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorPackage), END_ELEMENT] */
+ if (iso2SensorPackageListType_SensorPackage_currArrayIndex < iso2SensorPackageListType->SensorPackage.arrayLen ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ if(errn == 0) {
+ errn = encode_iso2SensorPackageType(stream, &iso2SensorPackageListType->SensorPackage.array [iso2SensorPackageListType_SensorPackage_currArrayIndex++]);
+ }
+ grammarID = 1129;
+ } else if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 1129:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorPackage), END_ELEMENT] */
+ if (iso2SensorPackageListType_SensorPackage_currArrayIndex < iso2SensorPackageListType->SensorPackage.arrayLen ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ if(errn == 0) {
+ errn = encode_iso2SensorPackageType(stream, &iso2SensorPackageListType->SensorPackage.array [iso2SensorPackageListType_SensorPackage_currArrayIndex++]);
+ }
+ grammarID = 1130;
+ } else if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 1130:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorPackage), END_ELEMENT] */
+ if (iso2SensorPackageListType_SensorPackage_currArrayIndex < iso2SensorPackageListType->SensorPackage.arrayLen ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ if(errn == 0) {
+ errn = encode_iso2SensorPackageType(stream, &iso2SensorPackageListType->SensorPackage.array [iso2SensorPackageListType_SensorPackage_currArrayIndex++]);
+ }
+ grammarID = 1131;
+ } else if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 1131:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorPackage), END_ELEMENT] */
+ if (iso2SensorPackageListType_SensorPackage_currArrayIndex < iso2SensorPackageListType->SensorPackage.arrayLen ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ if(errn == 0) {
+ errn = encode_iso2SensorPackageType(stream, &iso2SensorPackageListType->SensorPackage.array [iso2SensorPackageListType_SensorPackage_currArrayIndex++]);
+ }
+ grammarID = 1132;
+ } else if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 1132:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorPackage), END_ELEMENT] */
+ if (iso2SensorPackageListType_SensorPackage_currArrayIndex < iso2SensorPackageListType->SensorPackage.arrayLen ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ if(errn == 0) {
+ errn = encode_iso2SensorPackageType(stream, &iso2SensorPackageListType->SensorPackage.array [iso2SensorPackageListType_SensorPackage_currArrayIndex++]);
+ }
+ grammarID = 1133;
+ } else if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 1133:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorPackage), END_ELEMENT] */
+ if (iso2SensorPackageListType_SensorPackage_currArrayIndex < iso2SensorPackageListType->SensorPackage.arrayLen ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ if(errn == 0) {
+ errn = encode_iso2SensorPackageType(stream, &iso2SensorPackageListType->SensorPackage.array [iso2SensorPackageListType_SensorPackage_currArrayIndex++]);
+ }
+ grammarID = 1134;
+ } else if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 1134:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorPackage), END_ELEMENT] */
+ if (iso2SensorPackageListType_SensorPackage_currArrayIndex < iso2SensorPackageListType->SensorPackage.arrayLen ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ if(errn == 0) {
+ errn = encode_iso2SensorPackageType(stream, &iso2SensorPackageListType->SensorPackage.array [iso2SensorPackageListType_SensorPackage_currArrayIndex++]);
+ }
+ grammarID = 1135;
+ } else if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 1135:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorPackage), END_ELEMENT] */
+ if (iso2SensorPackageListType_SensorPackage_currArrayIndex < iso2SensorPackageListType->SensorPackage.arrayLen ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ if(errn == 0) {
+ errn = encode_iso2SensorPackageType(stream, &iso2SensorPackageListType->SensorPackage.array [iso2SensorPackageListType_SensorPackage_currArrayIndex++]);
+ }
+ grammarID = 1136;
+ } else if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 1136:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorPackage), END_ELEMENT] */
+ if (iso2SensorPackageListType_SensorPackage_currArrayIndex < iso2SensorPackageListType->SensorPackage.arrayLen ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ if(errn == 0) {
+ errn = encode_iso2SensorPackageType(stream, &iso2SensorPackageListType->SensorPackage.array [iso2SensorPackageListType_SensorPackage_currArrayIndex++]);
+ }
+ grammarID = 1137;
+ } else if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 1137:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorPackage), END_ELEMENT] */
+ if (iso2SensorPackageListType_SensorPackage_currArrayIndex < iso2SensorPackageListType->SensorPackage.arrayLen ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ if(errn == 0) {
+ errn = encode_iso2SensorPackageType(stream, &iso2SensorPackageListType->SensorPackage.array [iso2SensorPackageListType_SensorPackage_currArrayIndex++]);
+ }
+ grammarID = 1138;
+ } else if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 1138:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorPackage), END_ELEMENT] */
+ if (iso2SensorPackageListType_SensorPackage_currArrayIndex < iso2SensorPackageListType->SensorPackage.arrayLen ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ if(errn == 0) {
+ errn = encode_iso2SensorPackageType(stream, &iso2SensorPackageListType->SensorPackage.array [iso2SensorPackageListType_SensorPackage_currArrayIndex++]);
+ }
+ grammarID = 1139;
+ } else if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 1139:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorPackage), END_ELEMENT] */
+ if (iso2SensorPackageListType_SensorPackage_currArrayIndex < iso2SensorPackageListType->SensorPackage.arrayLen ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ if(errn == 0) {
+ errn = encode_iso2SensorPackageType(stream, &iso2SensorPackageListType->SensorPackage.array [iso2SensorPackageListType_SensorPackage_currArrayIndex++]);
+ }
+ grammarID = 1140;
+ } else if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 1140:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorPackage), END_ELEMENT] */
+ if (iso2SensorPackageListType_SensorPackage_currArrayIndex < iso2SensorPackageListType->SensorPackage.arrayLen ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ if(errn == 0) {
+ errn = encode_iso2SensorPackageType(stream, &iso2SensorPackageListType->SensorPackage.array [iso2SensorPackageListType_SensorPackage_currArrayIndex++]);
+ }
+ grammarID = 1141;
+ } else if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 1141:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorPackage), END_ELEMENT] */
+ if (iso2SensorPackageListType_SensorPackage_currArrayIndex < iso2SensorPackageListType->SensorPackage.arrayLen ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ if(errn == 0) {
+ errn = encode_iso2SensorPackageType(stream, &iso2SensorPackageListType->SensorPackage.array [iso2SensorPackageListType_SensorPackage_currArrayIndex++]);
+ }
+ grammarID = 1142;
+ } else if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 1142:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorPackage), END_ELEMENT] */
+ if (iso2SensorPackageListType_SensorPackage_currArrayIndex < iso2SensorPackageListType->SensorPackage.arrayLen ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ if(errn == 0) {
+ errn = encode_iso2SensorPackageType(stream, &iso2SensorPackageListType->SensorPackage.array [iso2SensorPackageListType_SensorPackage_currArrayIndex++]);
+ }
+ grammarID = 1143;
+ } else if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 1143:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorPackage), END_ELEMENT] */
+ if (iso2SensorPackageListType_SensorPackage_currArrayIndex < iso2SensorPackageListType->SensorPackage.arrayLen ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ if(errn == 0) {
+ errn = encode_iso2SensorPackageType(stream, &iso2SensorPackageListType->SensorPackage.array [iso2SensorPackageListType_SensorPackage_currArrayIndex++]);
+ }
+ grammarID = 1144;
+ } else if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 1144:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorPackage), END_ELEMENT] */
+ if (iso2SensorPackageListType_SensorPackage_currArrayIndex < iso2SensorPackageListType->SensorPackage.arrayLen ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ if(errn == 0) {
+ errn = encode_iso2SensorPackageType(stream, &iso2SensorPackageListType->SensorPackage.array [iso2SensorPackageListType_SensorPackage_currArrayIndex++]);
+ }
+ grammarID = 1145;
+ } else if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 1145:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorPackage), END_ELEMENT] */
+ if (iso2SensorPackageListType_SensorPackage_currArrayIndex < iso2SensorPackageListType->SensorPackage.arrayLen ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ if(errn == 0) {
+ errn = encode_iso2SensorPackageType(stream, &iso2SensorPackageListType->SensorPackage.array [iso2SensorPackageListType_SensorPackage_currArrayIndex++]);
+ }
+ grammarID = 1146;
+ } else if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 1146:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorPackage), END_ELEMENT] */
+ if (iso2SensorPackageListType_SensorPackage_currArrayIndex < iso2SensorPackageListType->SensorPackage.arrayLen ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ if(errn == 0) {
+ errn = encode_iso2SensorPackageType(stream, &iso2SensorPackageListType->SensorPackage.array [iso2SensorPackageListType_SensorPackage_currArrayIndex++]);
+ }
+ grammarID = 1147;
+ } else if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 1147:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorPackage), END_ELEMENT] */
+ if (iso2SensorPackageListType_SensorPackage_currArrayIndex < iso2SensorPackageListType->SensorPackage.arrayLen ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ if(errn == 0) {
+ errn = encode_iso2SensorPackageType(stream, &iso2SensorPackageListType->SensorPackage.array [iso2SensorPackageListType_SensorPackage_currArrayIndex++]);
+ }
+ grammarID = 1148;
+ } else if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 1148:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorPackage), END_ELEMENT] */
+ if (iso2SensorPackageListType_SensorPackage_currArrayIndex < iso2SensorPackageListType->SensorPackage.arrayLen ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ if(errn == 0) {
+ errn = encode_iso2SensorPackageType(stream, &iso2SensorPackageListType->SensorPackage.array [iso2SensorPackageListType_SensorPackage_currArrayIndex++]);
+ }
+ grammarID = 1149;
+ } else if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 1149:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorPackage), END_ELEMENT] */
+ if (iso2SensorPackageListType_SensorPackage_currArrayIndex < iso2SensorPackageListType->SensorPackage.arrayLen ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ if(errn == 0) {
+ errn = encode_iso2SensorPackageType(stream, &iso2SensorPackageListType->SensorPackage.array [iso2SensorPackageListType_SensorPackage_currArrayIndex++]);
+ }
+ grammarID = 1150;
+ } else if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 1150:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorPackage), END_ELEMENT] */
+ if (iso2SensorPackageListType_SensorPackage_currArrayIndex < iso2SensorPackageListType->SensorPackage.arrayLen ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ if(errn == 0) {
+ errn = encode_iso2SensorPackageType(stream, &iso2SensorPackageListType->SensorPackage.array [iso2SensorPackageListType_SensorPackage_currArrayIndex++]);
+ }
+ grammarID = 1151;
+ } else if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 1151:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorPackage), END_ELEMENT] */
+ if (iso2SensorPackageListType_SensorPackage_currArrayIndex < iso2SensorPackageListType->SensorPackage.arrayLen ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ if(errn == 0) {
+ errn = encode_iso2SensorPackageType(stream, &iso2SensorPackageListType->SensorPackage.array [iso2SensorPackageListType_SensorPackage_currArrayIndex++]);
+ }
+ grammarID = 1152;
+ } else if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 1152:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorPackage), END_ELEMENT] */
+ if (iso2SensorPackageListType_SensorPackage_currArrayIndex < iso2SensorPackageListType->SensorPackage.arrayLen ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ if(errn == 0) {
+ errn = encode_iso2SensorPackageType(stream, &iso2SensorPackageListType->SensorPackage.array [iso2SensorPackageListType_SensorPackage_currArrayIndex++]);
+ }
+ grammarID = 1153;
+ } else if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 1153:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorPackage), END_ELEMENT] */
+ if (iso2SensorPackageListType_SensorPackage_currArrayIndex < iso2SensorPackageListType->SensorPackage.arrayLen ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ if(errn == 0) {
+ errn = encode_iso2SensorPackageType(stream, &iso2SensorPackageListType->SensorPackage.array [iso2SensorPackageListType_SensorPackage_currArrayIndex++]);
+ }
+ grammarID = 1154;
+ } else if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 1154:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorPackage), END_ELEMENT] */
+ if (iso2SensorPackageListType_SensorPackage_currArrayIndex < iso2SensorPackageListType->SensorPackage.arrayLen ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ if(errn == 0) {
+ errn = encode_iso2SensorPackageType(stream, &iso2SensorPackageListType->SensorPackage.array [iso2SensorPackageListType_SensorPackage_currArrayIndex++]);
+ }
+ grammarID = 1155;
+ } else if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 1155:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorPackage), END_ELEMENT] */
+ if (iso2SensorPackageListType_SensorPackage_currArrayIndex < iso2SensorPackageListType->SensorPackage.arrayLen ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ if(errn == 0) {
+ errn = encode_iso2SensorPackageType(stream, &iso2SensorPackageListType->SensorPackage.array [iso2SensorPackageListType_SensorPackage_currArrayIndex++]);
+ }
+ grammarID = 1156;
+ } else if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 1156:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorPackage), END_ELEMENT] */
+ if (iso2SensorPackageListType_SensorPackage_currArrayIndex < iso2SensorPackageListType->SensorPackage.arrayLen ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ if(errn == 0) {
+ errn = encode_iso2SensorPackageType(stream, &iso2SensorPackageListType->SensorPackage.array [iso2SensorPackageListType_SensorPackage_currArrayIndex++]);
+ }
+ grammarID = 1157;
+ } else if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 1157:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorPackage), END_ELEMENT] */
+ if (iso2SensorPackageListType_SensorPackage_currArrayIndex < iso2SensorPackageListType->SensorPackage.arrayLen ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ if(errn == 0) {
+ errn = encode_iso2SensorPackageType(stream, &iso2SensorPackageListType->SensorPackage.array [iso2SensorPackageListType_SensorPackage_currArrayIndex++]);
+ }
+ grammarID = 1158;
+ } else if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 1158:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorPackage), END_ELEMENT] */
+ if (iso2SensorPackageListType_SensorPackage_currArrayIndex < iso2SensorPackageListType->SensorPackage.arrayLen ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ if(errn == 0) {
+ errn = encode_iso2SensorPackageType(stream, &iso2SensorPackageListType->SensorPackage.array [iso2SensorPackageListType_SensorPackage_currArrayIndex++]);
+ }
+ grammarID = 1159;
+ } else if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 1159:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorPackage), END_ELEMENT] */
+ if (iso2SensorPackageListType_SensorPackage_currArrayIndex < iso2SensorPackageListType->SensorPackage.arrayLen ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ if(errn == 0) {
+ errn = encode_iso2SensorPackageType(stream, &iso2SensorPackageListType->SensorPackage.array [iso2SensorPackageListType_SensorPackage_currArrayIndex++]);
+ }
+ grammarID = 1160;
+ } else if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 1160:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorPackage), END_ELEMENT] */
+ if (iso2SensorPackageListType_SensorPackage_currArrayIndex < iso2SensorPackageListType->SensorPackage.arrayLen ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ if(errn == 0) {
+ errn = encode_iso2SensorPackageType(stream, &iso2SensorPackageListType->SensorPackage.array [iso2SensorPackageListType_SensorPackage_currArrayIndex++]);
+ }
+ grammarID = 1161;
+ } else if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 1161:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorPackage), END_ELEMENT] */
+ if (iso2SensorPackageListType_SensorPackage_currArrayIndex < iso2SensorPackageListType->SensorPackage.arrayLen ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ if(errn == 0) {
+ errn = encode_iso2SensorPackageType(stream, &iso2SensorPackageListType->SensorPackage.array [iso2SensorPackageListType_SensorPackage_currArrayIndex++]);
+ }
+ grammarID = 1162;
+ } else if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 1162:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorPackage), END_ELEMENT] */
+ if (iso2SensorPackageListType_SensorPackage_currArrayIndex < iso2SensorPackageListType->SensorPackage.arrayLen ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ if(errn == 0) {
+ errn = encode_iso2SensorPackageType(stream, &iso2SensorPackageListType->SensorPackage.array [iso2SensorPackageListType_SensorPackage_currArrayIndex++]);
+ }
+ grammarID = 1163;
+ } else if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 1163:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorPackage), END_ELEMENT] */
+ if (iso2SensorPackageListType_SensorPackage_currArrayIndex < iso2SensorPackageListType->SensorPackage.arrayLen ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ if(errn == 0) {
+ errn = encode_iso2SensorPackageType(stream, &iso2SensorPackageListType->SensorPackage.array [iso2SensorPackageListType_SensorPackage_currArrayIndex++]);
+ }
+ grammarID = 1164;
+ } else if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 1164:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorPackage), END_ELEMENT] */
+ if (iso2SensorPackageListType_SensorPackage_currArrayIndex < iso2SensorPackageListType->SensorPackage.arrayLen ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ if(errn == 0) {
+ errn = encode_iso2SensorPackageType(stream, &iso2SensorPackageListType->SensorPackage.array [iso2SensorPackageListType_SensorPackage_currArrayIndex++]);
+ }
+ grammarID = 1165;
+ } else if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 1165:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorPackage), END_ELEMENT] */
+ if (iso2SensorPackageListType_SensorPackage_currArrayIndex < iso2SensorPackageListType->SensorPackage.arrayLen ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ if(errn == 0) {
+ errn = encode_iso2SensorPackageType(stream, &iso2SensorPackageListType->SensorPackage.array [iso2SensorPackageListType_SensorPackage_currArrayIndex++]);
+ }
+ grammarID = 1166;
+ } else if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 1166:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorPackage), END_ELEMENT] */
+ if (iso2SensorPackageListType_SensorPackage_currArrayIndex < iso2SensorPackageListType->SensorPackage.arrayLen ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ if(errn == 0) {
+ errn = encode_iso2SensorPackageType(stream, &iso2SensorPackageListType->SensorPackage.array [iso2SensorPackageListType_SensorPackage_currArrayIndex++]);
+ }
+ grammarID = 1167;
+ } else if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 1167:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorPackage), END_ELEMENT] */
+ if (iso2SensorPackageListType_SensorPackage_currArrayIndex < iso2SensorPackageListType->SensorPackage.arrayLen ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ if(errn == 0) {
+ errn = encode_iso2SensorPackageType(stream, &iso2SensorPackageListType->SensorPackage.array [iso2SensorPackageListType_SensorPackage_currArrayIndex++]);
+ }
+ grammarID = 1168;
+ } else if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 1168:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorPackage), END_ELEMENT] */
+ if (iso2SensorPackageListType_SensorPackage_currArrayIndex < iso2SensorPackageListType->SensorPackage.arrayLen ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ if(errn == 0) {
+ errn = encode_iso2SensorPackageType(stream, &iso2SensorPackageListType->SensorPackage.array [iso2SensorPackageListType_SensorPackage_currArrayIndex++]);
+ }
+ grammarID = 1169;
+ } else if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 1169:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorPackage), END_ELEMENT] */
+ if (iso2SensorPackageListType_SensorPackage_currArrayIndex < iso2SensorPackageListType->SensorPackage.arrayLen ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ if(errn == 0) {
+ errn = encode_iso2SensorPackageType(stream, &iso2SensorPackageListType->SensorPackage.array [iso2SensorPackageListType_SensorPackage_currArrayIndex++]);
+ }
+ grammarID = 1170;
+ } else if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 1170:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorPackage), END_ELEMENT] */
+ if (iso2SensorPackageListType_SensorPackage_currArrayIndex < iso2SensorPackageListType->SensorPackage.arrayLen ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ if(errn == 0) {
+ errn = encode_iso2SensorPackageType(stream, &iso2SensorPackageListType->SensorPackage.array [iso2SensorPackageListType_SensorPackage_currArrayIndex++]);
+ }
+ grammarID = 1171;
+ } else if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 1171:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorPackage), END_ELEMENT] */
+ if (iso2SensorPackageListType_SensorPackage_currArrayIndex < iso2SensorPackageListType->SensorPackage.arrayLen ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ if(errn == 0) {
+ errn = encode_iso2SensorPackageType(stream, &iso2SensorPackageListType->SensorPackage.array [iso2SensorPackageListType_SensorPackage_currArrayIndex++]);
+ }
+ grammarID = 1172;
+ } else if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 1172:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorPackage), END_ELEMENT] */
+ if (iso2SensorPackageListType_SensorPackage_currArrayIndex < iso2SensorPackageListType->SensorPackage.arrayLen ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ if(errn == 0) {
+ errn = encode_iso2SensorPackageType(stream, &iso2SensorPackageListType->SensorPackage.array [iso2SensorPackageListType_SensorPackage_currArrayIndex++]);
+ }
+ grammarID = 1173;
+ } else if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 1173:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorPackage), END_ELEMENT] */
+ if (iso2SensorPackageListType_SensorPackage_currArrayIndex < iso2SensorPackageListType->SensorPackage.arrayLen ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ if(errn == 0) {
+ errn = encode_iso2SensorPackageType(stream, &iso2SensorPackageListType->SensorPackage.array [iso2SensorPackageListType_SensorPackage_currArrayIndex++]);
+ }
+ grammarID = 1174;
+ } else if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 1174:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorPackage), END_ELEMENT] */
+ if (iso2SensorPackageListType_SensorPackage_currArrayIndex < iso2SensorPackageListType->SensorPackage.arrayLen ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ if(errn == 0) {
+ errn = encode_iso2SensorPackageType(stream, &iso2SensorPackageListType->SensorPackage.array [iso2SensorPackageListType_SensorPackage_currArrayIndex++]);
+ }
+ grammarID = 1175;
+ } else if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 1175:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorPackage), END_ELEMENT] */
+ if (iso2SensorPackageListType_SensorPackage_currArrayIndex < iso2SensorPackageListType->SensorPackage.arrayLen ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ if(errn == 0) {
+ errn = encode_iso2SensorPackageType(stream, &iso2SensorPackageListType->SensorPackage.array [iso2SensorPackageListType_SensorPackage_currArrayIndex++]);
+ }
+ grammarID = 1176;
+ } else if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 1176:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorPackage), END_ELEMENT] */
+ if (iso2SensorPackageListType_SensorPackage_currArrayIndex < iso2SensorPackageListType->SensorPackage.arrayLen ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ if(errn == 0) {
+ errn = encode_iso2SensorPackageType(stream, &iso2SensorPackageListType->SensorPackage.array [iso2SensorPackageListType_SensorPackage_currArrayIndex++]);
+ }
+ grammarID = 1177;
+ } else if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 1177:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorPackage), END_ELEMENT] */
+ if (iso2SensorPackageListType_SensorPackage_currArrayIndex < iso2SensorPackageListType->SensorPackage.arrayLen ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ if(errn == 0) {
+ errn = encode_iso2SensorPackageType(stream, &iso2SensorPackageListType->SensorPackage.array [iso2SensorPackageListType_SensorPackage_currArrayIndex++]);
+ }
+ grammarID = 1178;
+ } else if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 1178:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorPackage), END_ELEMENT] */
+ if (iso2SensorPackageListType_SensorPackage_currArrayIndex < iso2SensorPackageListType->SensorPackage.arrayLen ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ if(errn == 0) {
+ errn = encode_iso2SensorPackageType(stream, &iso2SensorPackageListType->SensorPackage.array [iso2SensorPackageListType_SensorPackage_currArrayIndex++]);
+ }
+ grammarID = 1179;
+ } else if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 1179:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorPackage), END_ELEMENT] */
+ if (iso2SensorPackageListType_SensorPackage_currArrayIndex < iso2SensorPackageListType->SensorPackage.arrayLen ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ if(errn == 0) {
+ errn = encode_iso2SensorPackageType(stream, &iso2SensorPackageListType->SensorPackage.array [iso2SensorPackageListType_SensorPackage_currArrayIndex++]);
+ }
+ grammarID = 1180;
+ } else if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 1180:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorPackage), END_ELEMENT] */
+ if (iso2SensorPackageListType_SensorPackage_currArrayIndex < iso2SensorPackageListType->SensorPackage.arrayLen ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ if(errn == 0) {
+ errn = encode_iso2SensorPackageType(stream, &iso2SensorPackageListType->SensorPackage.array [iso2SensorPackageListType_SensorPackage_currArrayIndex++]);
+ }
+ grammarID = 1181;
+ } else if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 1181:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorPackage), END_ELEMENT] */
+ if (iso2SensorPackageListType_SensorPackage_currArrayIndex < iso2SensorPackageListType->SensorPackage.arrayLen ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ if(errn == 0) {
+ errn = encode_iso2SensorPackageType(stream, &iso2SensorPackageListType->SensorPackage.array [iso2SensorPackageListType_SensorPackage_currArrayIndex++]);
+ }
+ grammarID = 1182;
+ } else if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 1182:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorPackage), END_ELEMENT] */
+ if (iso2SensorPackageListType_SensorPackage_currArrayIndex < iso2SensorPackageListType->SensorPackage.arrayLen ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ if(errn == 0) {
+ errn = encode_iso2SensorPackageType(stream, &iso2SensorPackageListType->SensorPackage.array [iso2SensorPackageListType_SensorPackage_currArrayIndex++]);
+ }
+ grammarID = 1183;
+ } else if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 1183:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorPackage), END_ELEMENT] */
+ if (iso2SensorPackageListType_SensorPackage_currArrayIndex < iso2SensorPackageListType->SensorPackage.arrayLen ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ if(errn == 0) {
+ errn = encode_iso2SensorPackageType(stream, &iso2SensorPackageListType->SensorPackage.array [iso2SensorPackageListType_SensorPackage_currArrayIndex++]);
+ }
+ grammarID = 1184;
+ } else if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 1184:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorPackage), END_ELEMENT] */
+ if (iso2SensorPackageListType_SensorPackage_currArrayIndex < iso2SensorPackageListType->SensorPackage.arrayLen ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ if(errn == 0) {
+ errn = encode_iso2SensorPackageType(stream, &iso2SensorPackageListType->SensorPackage.array [iso2SensorPackageListType_SensorPackage_currArrayIndex++]);
+ }
+ grammarID = 1185;
+ } else if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 1185:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorPackage), END_ELEMENT] */
+ if (iso2SensorPackageListType_SensorPackage_currArrayIndex < iso2SensorPackageListType->SensorPackage.arrayLen ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ if(errn == 0) {
+ errn = encode_iso2SensorPackageType(stream, &iso2SensorPackageListType->SensorPackage.array [iso2SensorPackageListType_SensorPackage_currArrayIndex++]);
+ }
+ grammarID = 1186;
+ } else if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 1186:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorPackage), END_ELEMENT] */
+ if (iso2SensorPackageListType_SensorPackage_currArrayIndex < iso2SensorPackageListType->SensorPackage.arrayLen ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ if(errn == 0) {
+ errn = encode_iso2SensorPackageType(stream, &iso2SensorPackageListType->SensorPackage.array [iso2SensorPackageListType_SensorPackage_currArrayIndex++]);
+ }
+ grammarID = 1187;
+ } else if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 1187:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorPackage), END_ELEMENT] */
+ if (iso2SensorPackageListType_SensorPackage_currArrayIndex < iso2SensorPackageListType->SensorPackage.arrayLen ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ if(errn == 0) {
+ errn = encode_iso2SensorPackageType(stream, &iso2SensorPackageListType->SensorPackage.array [iso2SensorPackageListType_SensorPackage_currArrayIndex++]);
+ }
+ grammarID = 1188;
+ } else if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 1188:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorPackage), END_ELEMENT] */
+ if (iso2SensorPackageListType_SensorPackage_currArrayIndex < iso2SensorPackageListType->SensorPackage.arrayLen ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ if(errn == 0) {
+ errn = encode_iso2SensorPackageType(stream, &iso2SensorPackageListType->SensorPackage.array [iso2SensorPackageListType_SensorPackage_currArrayIndex++]);
+ }
+ grammarID = 1189;
+ } else if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 1189:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorPackage), END_ELEMENT] */
+ if (iso2SensorPackageListType_SensorPackage_currArrayIndex < iso2SensorPackageListType->SensorPackage.arrayLen ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ if(errn == 0) {
+ errn = encode_iso2SensorPackageType(stream, &iso2SensorPackageListType->SensorPackage.array [iso2SensorPackageListType_SensorPackage_currArrayIndex++]);
+ }
+ grammarID = 1190;
+ } else if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 1190:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorPackage), END_ELEMENT] */
+ if (iso2SensorPackageListType_SensorPackage_currArrayIndex < iso2SensorPackageListType->SensorPackage.arrayLen ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ if(errn == 0) {
+ errn = encode_iso2SensorPackageType(stream, &iso2SensorPackageListType->SensorPackage.array [iso2SensorPackageListType_SensorPackage_currArrayIndex++]);
+ }
+ grammarID = 1191;
+ } else if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 1191:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorPackage), END_ELEMENT] */
+ if (iso2SensorPackageListType_SensorPackage_currArrayIndex < iso2SensorPackageListType->SensorPackage.arrayLen ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ if(errn == 0) {
+ errn = encode_iso2SensorPackageType(stream, &iso2SensorPackageListType->SensorPackage.array [iso2SensorPackageListType_SensorPackage_currArrayIndex++]);
+ }
+ grammarID = 1192;
+ } else if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 1192:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorPackage), END_ELEMENT] */
+ if (iso2SensorPackageListType_SensorPackage_currArrayIndex < iso2SensorPackageListType->SensorPackage.arrayLen ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ if(errn == 0) {
+ errn = encode_iso2SensorPackageType(stream, &iso2SensorPackageListType->SensorPackage.array [iso2SensorPackageListType_SensorPackage_currArrayIndex++]);
+ }
+ grammarID = 1193;
+ } else if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 1193:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorPackage), END_ELEMENT] */
+ if (iso2SensorPackageListType_SensorPackage_currArrayIndex < iso2SensorPackageListType->SensorPackage.arrayLen ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ if(errn == 0) {
+ errn = encode_iso2SensorPackageType(stream, &iso2SensorPackageListType->SensorPackage.array [iso2SensorPackageListType_SensorPackage_currArrayIndex++]);
+ }
+ grammarID = 1194;
+ } else if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 1194:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorPackage), END_ELEMENT] */
+ if (iso2SensorPackageListType_SensorPackage_currArrayIndex < iso2SensorPackageListType->SensorPackage.arrayLen ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ if(errn == 0) {
+ errn = encode_iso2SensorPackageType(stream, &iso2SensorPackageListType->SensorPackage.array [iso2SensorPackageListType_SensorPackage_currArrayIndex++]);
+ }
+ grammarID = 1195;
+ } else if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 1195:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorPackage), END_ELEMENT] */
+ if (iso2SensorPackageListType_SensorPackage_currArrayIndex < iso2SensorPackageListType->SensorPackage.arrayLen ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ if(errn == 0) {
+ errn = encode_iso2SensorPackageType(stream, &iso2SensorPackageListType->SensorPackage.array [iso2SensorPackageListType_SensorPackage_currArrayIndex++]);
+ }
+ grammarID = 1196;
+ } else if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 1196:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorPackage), END_ELEMENT] */
+ if (iso2SensorPackageListType_SensorPackage_currArrayIndex < iso2SensorPackageListType->SensorPackage.arrayLen ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ if(errn == 0) {
+ errn = encode_iso2SensorPackageType(stream, &iso2SensorPackageListType->SensorPackage.array [iso2SensorPackageListType_SensorPackage_currArrayIndex++]);
+ }
+ grammarID = 1197;
+ } else if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 1197:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorPackage), END_ELEMENT] */
+ if (iso2SensorPackageListType_SensorPackage_currArrayIndex < iso2SensorPackageListType->SensorPackage.arrayLen ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ if(errn == 0) {
+ errn = encode_iso2SensorPackageType(stream, &iso2SensorPackageListType->SensorPackage.array [iso2SensorPackageListType_SensorPackage_currArrayIndex++]);
+ }
+ grammarID = 1198;
+ } else if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 1198:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorPackage), END_ELEMENT] */
+ if (iso2SensorPackageListType_SensorPackage_currArrayIndex < iso2SensorPackageListType->SensorPackage.arrayLen ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ if(errn == 0) {
+ errn = encode_iso2SensorPackageType(stream, &iso2SensorPackageListType->SensorPackage.array [iso2SensorPackageListType_SensorPackage_currArrayIndex++]);
+ }
+ grammarID = 1199;
+ } else if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 1199:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorPackage), END_ELEMENT] */
+ if (iso2SensorPackageListType_SensorPackage_currArrayIndex < iso2SensorPackageListType->SensorPackage.arrayLen ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ if(errn == 0) {
+ errn = encode_iso2SensorPackageType(stream, &iso2SensorPackageListType->SensorPackage.array [iso2SensorPackageListType_SensorPackage_currArrayIndex++]);
+ }
+ grammarID = 1200;
+ } else if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 1200:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorPackage), END_ELEMENT] */
+ if (iso2SensorPackageListType_SensorPackage_currArrayIndex < iso2SensorPackageListType->SensorPackage.arrayLen ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ if(errn == 0) {
+ errn = encode_iso2SensorPackageType(stream, &iso2SensorPackageListType->SensorPackage.array [iso2SensorPackageListType_SensorPackage_currArrayIndex++]);
+ }
+ grammarID = 1201;
+ } else if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 1201:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorPackage), END_ELEMENT] */
+ if (iso2SensorPackageListType_SensorPackage_currArrayIndex < iso2SensorPackageListType->SensorPackage.arrayLen ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ if(errn == 0) {
+ errn = encode_iso2SensorPackageType(stream, &iso2SensorPackageListType->SensorPackage.array [iso2SensorPackageListType_SensorPackage_currArrayIndex++]);
+ }
+ grammarID = 1202;
+ } else if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 1202:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorPackage), END_ELEMENT] */
+ if (iso2SensorPackageListType_SensorPackage_currArrayIndex < iso2SensorPackageListType->SensorPackage.arrayLen ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ if(errn == 0) {
+ errn = encode_iso2SensorPackageType(stream, &iso2SensorPackageListType->SensorPackage.array [iso2SensorPackageListType_SensorPackage_currArrayIndex++]);
+ }
+ grammarID = 1203;
+ } else if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 1203:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorPackage), END_ELEMENT] */
+ if (iso2SensorPackageListType_SensorPackage_currArrayIndex < iso2SensorPackageListType->SensorPackage.arrayLen ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ if(errn == 0) {
+ errn = encode_iso2SensorPackageType(stream, &iso2SensorPackageListType->SensorPackage.array [iso2SensorPackageListType_SensorPackage_currArrayIndex++]);
+ }
+ grammarID = 1204;
+ } else if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 1204:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorPackage), END_ELEMENT] */
+ if (iso2SensorPackageListType_SensorPackage_currArrayIndex < iso2SensorPackageListType->SensorPackage.arrayLen ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ if(errn == 0) {
+ errn = encode_iso2SensorPackageType(stream, &iso2SensorPackageListType->SensorPackage.array [iso2SensorPackageListType_SensorPackage_currArrayIndex++]);
+ }
+ grammarID = 1205;
+ } else if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 1205:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorPackage), END_ELEMENT] */
+ if (iso2SensorPackageListType_SensorPackage_currArrayIndex < iso2SensorPackageListType->SensorPackage.arrayLen ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ if(errn == 0) {
+ errn = encode_iso2SensorPackageType(stream, &iso2SensorPackageListType->SensorPackage.array [iso2SensorPackageListType_SensorPackage_currArrayIndex++]);
+ }
+ grammarID = 1206;
+ } else if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 1206:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorPackage), END_ELEMENT] */
+ if (iso2SensorPackageListType_SensorPackage_currArrayIndex < iso2SensorPackageListType->SensorPackage.arrayLen ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ if(errn == 0) {
+ errn = encode_iso2SensorPackageType(stream, &iso2SensorPackageListType->SensorPackage.array [iso2SensorPackageListType_SensorPackage_currArrayIndex++]);
+ }
+ grammarID = 1207;
+ } else if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 1207:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorPackage), END_ELEMENT] */
+ if (iso2SensorPackageListType_SensorPackage_currArrayIndex < iso2SensorPackageListType->SensorPackage.arrayLen ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ if(errn == 0) {
+ errn = encode_iso2SensorPackageType(stream, &iso2SensorPackageListType->SensorPackage.array [iso2SensorPackageListType_SensorPackage_currArrayIndex++]);
+ }
+ grammarID = 1208;
+ } else if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 1208:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorPackage), END_ELEMENT] */
+ if (iso2SensorPackageListType_SensorPackage_currArrayIndex < iso2SensorPackageListType->SensorPackage.arrayLen ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ if(errn == 0) {
+ errn = encode_iso2SensorPackageType(stream, &iso2SensorPackageListType->SensorPackage.array [iso2SensorPackageListType_SensorPackage_currArrayIndex++]);
+ }
+ grammarID = 1209;
+ } else if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 1209:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorPackage), END_ELEMENT] */
+ if (iso2SensorPackageListType_SensorPackage_currArrayIndex < iso2SensorPackageListType->SensorPackage.arrayLen ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ if(errn == 0) {
+ errn = encode_iso2SensorPackageType(stream, &iso2SensorPackageListType->SensorPackage.array [iso2SensorPackageListType_SensorPackage_currArrayIndex++]);
+ }
+ grammarID = 1210;
+ } else if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 1210:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorPackage), END_ELEMENT] */
+ if (iso2SensorPackageListType_SensorPackage_currArrayIndex < iso2SensorPackageListType->SensorPackage.arrayLen ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ if(errn == 0) {
+ errn = encode_iso2SensorPackageType(stream, &iso2SensorPackageListType->SensorPackage.array [iso2SensorPackageListType_SensorPackage_currArrayIndex++]);
+ }
+ grammarID = 1211;
+ } else if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 1211:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorPackage), END_ELEMENT] */
+ if (iso2SensorPackageListType_SensorPackage_currArrayIndex < iso2SensorPackageListType->SensorPackage.arrayLen ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ if(errn == 0) {
+ errn = encode_iso2SensorPackageType(stream, &iso2SensorPackageListType->SensorPackage.array [iso2SensorPackageListType_SensorPackage_currArrayIndex++]);
+ }
+ grammarID = 1212;
+ } else if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 1212:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorPackage), END_ELEMENT] */
+ if (iso2SensorPackageListType_SensorPackage_currArrayIndex < iso2SensorPackageListType->SensorPackage.arrayLen ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ if(errn == 0) {
+ errn = encode_iso2SensorPackageType(stream, &iso2SensorPackageListType->SensorPackage.array [iso2SensorPackageListType_SensorPackage_currArrayIndex++]);
+ }
+ grammarID = 3;
+ } else if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 3:
+ /* Element[END_ELEMENT] */
+ if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 1, 0);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } 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:2016:MsgDataTypes,MeasurementDataListType', base type name='anyType', content type='ELEMENT', isAbstract='false', hasTypeId='false', final='0', block='0', particle='("urn:iso:15118:2:2016:MsgDataTypes":MeasurementData{1-255})', derivedBy='RESTRICTION'. */
+static int encode_iso2MeasurementDataListType(bitstream_t* stream, struct iso2MeasurementDataListType* iso2MeasurementDataListType) {
+ int grammarID = 1213;
+ int done = 0;
+
+ unsigned int iso2MeasurementDataListType_MeasurementData_currArrayIndex = 0;
+
+ while(!done) {
+ switch(grammarID) {
+ case 1213:
+ /* FirstStartTag[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MeasurementData)] */
+ if (iso2MeasurementDataListType_MeasurementData_currArrayIndex < iso2MeasurementDataListType->MeasurementData.arrayLen ) {
+ errn = encodeNBitUnsignedInteger(stream, 1, 0);
+ if(errn == 0) {
+ /* First(xsi:type)StartTag[CHARACTERS[UNSIGNED_INTEGER]] */
+ errn = encodeNBitUnsignedInteger(stream, 1, 0);
+ if(errn == 0) {
+ errn = encodeUnsignedInteger16(stream, iso2MeasurementDataListType->MeasurementData.array[iso2MeasurementDataListType_MeasurementData_currArrayIndex++]);
+ /* valid EE */
+ errn = encodeNBitUnsignedInteger(stream, 1, 0);
+ }
+ }
+ grammarID = 1214;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 1214:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MeasurementData), END_ELEMENT] */
+ if (iso2MeasurementDataListType_MeasurementData_currArrayIndex < iso2MeasurementDataListType->MeasurementData.arrayLen ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ if(errn == 0) {
+ /* First(xsi:type)StartTag[CHARACTERS[UNSIGNED_INTEGER]] */
+ errn = encodeNBitUnsignedInteger(stream, 1, 0);
+ if(errn == 0) {
+ errn = encodeUnsignedInteger16(stream, iso2MeasurementDataListType->MeasurementData.array[iso2MeasurementDataListType_MeasurementData_currArrayIndex++]);
+ /* valid EE */
+ errn = encodeNBitUnsignedInteger(stream, 1, 0);
+ }
+ }
+ grammarID = 1215;
+ } else if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 1215:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MeasurementData), END_ELEMENT] */
+ if (iso2MeasurementDataListType_MeasurementData_currArrayIndex < iso2MeasurementDataListType->MeasurementData.arrayLen ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ if(errn == 0) {
+ /* First(xsi:type)StartTag[CHARACTERS[UNSIGNED_INTEGER]] */
+ errn = encodeNBitUnsignedInteger(stream, 1, 0);
+ if(errn == 0) {
+ errn = encodeUnsignedInteger16(stream, iso2MeasurementDataListType->MeasurementData.array[iso2MeasurementDataListType_MeasurementData_currArrayIndex++]);
+ /* valid EE */
+ errn = encodeNBitUnsignedInteger(stream, 1, 0);
+ }
+ }
+ grammarID = 1216;
+ } else if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 1216:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MeasurementData), END_ELEMENT] */
+ if (iso2MeasurementDataListType_MeasurementData_currArrayIndex < iso2MeasurementDataListType->MeasurementData.arrayLen ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ if(errn == 0) {
+ /* First(xsi:type)StartTag[CHARACTERS[UNSIGNED_INTEGER]] */
+ errn = encodeNBitUnsignedInteger(stream, 1, 0);
+ if(errn == 0) {
+ errn = encodeUnsignedInteger16(stream, iso2MeasurementDataListType->MeasurementData.array[iso2MeasurementDataListType_MeasurementData_currArrayIndex++]);
+ /* valid EE */
+ errn = encodeNBitUnsignedInteger(stream, 1, 0);
+ }
+ }
+ grammarID = 1217;
+ } else if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 1217:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MeasurementData), END_ELEMENT] */
+ if (iso2MeasurementDataListType_MeasurementData_currArrayIndex < iso2MeasurementDataListType->MeasurementData.arrayLen ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ if(errn == 0) {
+ /* First(xsi:type)StartTag[CHARACTERS[UNSIGNED_INTEGER]] */
+ errn = encodeNBitUnsignedInteger(stream, 1, 0);
+ if(errn == 0) {
+ errn = encodeUnsignedInteger16(stream, iso2MeasurementDataListType->MeasurementData.array[iso2MeasurementDataListType_MeasurementData_currArrayIndex++]);
+ /* valid EE */
+ errn = encodeNBitUnsignedInteger(stream, 1, 0);
+ }
+ }
+ grammarID = 1218;
+ } else if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 1218:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MeasurementData), END_ELEMENT] */
+ if (iso2MeasurementDataListType_MeasurementData_currArrayIndex < iso2MeasurementDataListType->MeasurementData.arrayLen ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ if(errn == 0) {
+ /* First(xsi:type)StartTag[CHARACTERS[UNSIGNED_INTEGER]] */
+ errn = encodeNBitUnsignedInteger(stream, 1, 0);
+ if(errn == 0) {
+ errn = encodeUnsignedInteger16(stream, iso2MeasurementDataListType->MeasurementData.array[iso2MeasurementDataListType_MeasurementData_currArrayIndex++]);
+ /* valid EE */
+ errn = encodeNBitUnsignedInteger(stream, 1, 0);
+ }
+ }
+ grammarID = 1219;
+ } else if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 1219:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MeasurementData), END_ELEMENT] */
+ if (iso2MeasurementDataListType_MeasurementData_currArrayIndex < iso2MeasurementDataListType->MeasurementData.arrayLen ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ if(errn == 0) {
+ /* First(xsi:type)StartTag[CHARACTERS[UNSIGNED_INTEGER]] */
+ errn = encodeNBitUnsignedInteger(stream, 1, 0);
+ if(errn == 0) {
+ errn = encodeUnsignedInteger16(stream, iso2MeasurementDataListType->MeasurementData.array[iso2MeasurementDataListType_MeasurementData_currArrayIndex++]);
+ /* valid EE */
+ errn = encodeNBitUnsignedInteger(stream, 1, 0);
+ }
+ }
+ grammarID = 1220;
+ } else if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 1220:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MeasurementData), END_ELEMENT] */
+ if (iso2MeasurementDataListType_MeasurementData_currArrayIndex < iso2MeasurementDataListType->MeasurementData.arrayLen ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ if(errn == 0) {
+ /* First(xsi:type)StartTag[CHARACTERS[UNSIGNED_INTEGER]] */
+ errn = encodeNBitUnsignedInteger(stream, 1, 0);
+ if(errn == 0) {
+ errn = encodeUnsignedInteger16(stream, iso2MeasurementDataListType->MeasurementData.array[iso2MeasurementDataListType_MeasurementData_currArrayIndex++]);
+ /* valid EE */
+ errn = encodeNBitUnsignedInteger(stream, 1, 0);
+ }
+ }
+ grammarID = 1221;
+ } else if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 1221:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MeasurementData), END_ELEMENT] */
+ if (iso2MeasurementDataListType_MeasurementData_currArrayIndex < iso2MeasurementDataListType->MeasurementData.arrayLen ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ if(errn == 0) {
+ /* First(xsi:type)StartTag[CHARACTERS[UNSIGNED_INTEGER]] */
+ errn = encodeNBitUnsignedInteger(stream, 1, 0);
+ if(errn == 0) {
+ errn = encodeUnsignedInteger16(stream, iso2MeasurementDataListType->MeasurementData.array[iso2MeasurementDataListType_MeasurementData_currArrayIndex++]);
+ /* valid EE */
+ errn = encodeNBitUnsignedInteger(stream, 1, 0);
+ }
+ }
+ grammarID = 1222;
+ } else if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 1222:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MeasurementData), END_ELEMENT] */
+ if (iso2MeasurementDataListType_MeasurementData_currArrayIndex < iso2MeasurementDataListType->MeasurementData.arrayLen ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ if(errn == 0) {
+ /* First(xsi:type)StartTag[CHARACTERS[UNSIGNED_INTEGER]] */
+ errn = encodeNBitUnsignedInteger(stream, 1, 0);
+ if(errn == 0) {
+ errn = encodeUnsignedInteger16(stream, iso2MeasurementDataListType->MeasurementData.array[iso2MeasurementDataListType_MeasurementData_currArrayIndex++]);
+ /* valid EE */
+ errn = encodeNBitUnsignedInteger(stream, 1, 0);
+ }
+ }
+ grammarID = 1223;
+ } else if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 1223:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MeasurementData), END_ELEMENT] */
+ if (iso2MeasurementDataListType_MeasurementData_currArrayIndex < iso2MeasurementDataListType->MeasurementData.arrayLen ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ if(errn == 0) {
+ /* First(xsi:type)StartTag[CHARACTERS[UNSIGNED_INTEGER]] */
+ errn = encodeNBitUnsignedInteger(stream, 1, 0);
+ if(errn == 0) {
+ errn = encodeUnsignedInteger16(stream, iso2MeasurementDataListType->MeasurementData.array[iso2MeasurementDataListType_MeasurementData_currArrayIndex++]);
+ /* valid EE */
+ errn = encodeNBitUnsignedInteger(stream, 1, 0);
+ }
+ }
+ grammarID = 1224;
+ } else if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 1224:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MeasurementData), END_ELEMENT] */
+ if (iso2MeasurementDataListType_MeasurementData_currArrayIndex < iso2MeasurementDataListType->MeasurementData.arrayLen ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ if(errn == 0) {
+ /* First(xsi:type)StartTag[CHARACTERS[UNSIGNED_INTEGER]] */
+ errn = encodeNBitUnsignedInteger(stream, 1, 0);
+ if(errn == 0) {
+ errn = encodeUnsignedInteger16(stream, iso2MeasurementDataListType->MeasurementData.array[iso2MeasurementDataListType_MeasurementData_currArrayIndex++]);
+ /* valid EE */
+ errn = encodeNBitUnsignedInteger(stream, 1, 0);
+ }
+ }
+ grammarID = 1225;
+ } else if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 1225:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MeasurementData), END_ELEMENT] */
+ if (iso2MeasurementDataListType_MeasurementData_currArrayIndex < iso2MeasurementDataListType->MeasurementData.arrayLen ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ if(errn == 0) {
+ /* First(xsi:type)StartTag[CHARACTERS[UNSIGNED_INTEGER]] */
+ errn = encodeNBitUnsignedInteger(stream, 1, 0);
+ if(errn == 0) {
+ errn = encodeUnsignedInteger16(stream, iso2MeasurementDataListType->MeasurementData.array[iso2MeasurementDataListType_MeasurementData_currArrayIndex++]);
+ /* valid EE */
+ errn = encodeNBitUnsignedInteger(stream, 1, 0);
+ }
+ }
+ grammarID = 1226;
+ } else if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 1226:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MeasurementData), END_ELEMENT] */
+ if (iso2MeasurementDataListType_MeasurementData_currArrayIndex < iso2MeasurementDataListType->MeasurementData.arrayLen ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ if(errn == 0) {
+ /* First(xsi:type)StartTag[CHARACTERS[UNSIGNED_INTEGER]] */
+ errn = encodeNBitUnsignedInteger(stream, 1, 0);
+ if(errn == 0) {
+ errn = encodeUnsignedInteger16(stream, iso2MeasurementDataListType->MeasurementData.array[iso2MeasurementDataListType_MeasurementData_currArrayIndex++]);
+ /* valid EE */
+ errn = encodeNBitUnsignedInteger(stream, 1, 0);
+ }
+ }
+ grammarID = 1227;
+ } else if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 1227:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MeasurementData), END_ELEMENT] */
+ if (iso2MeasurementDataListType_MeasurementData_currArrayIndex < iso2MeasurementDataListType->MeasurementData.arrayLen ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ if(errn == 0) {
+ /* First(xsi:type)StartTag[CHARACTERS[UNSIGNED_INTEGER]] */
+ errn = encodeNBitUnsignedInteger(stream, 1, 0);
+ if(errn == 0) {
+ errn = encodeUnsignedInteger16(stream, iso2MeasurementDataListType->MeasurementData.array[iso2MeasurementDataListType_MeasurementData_currArrayIndex++]);
+ /* valid EE */
+ errn = encodeNBitUnsignedInteger(stream, 1, 0);
+ }
+ }
+ grammarID = 1228;
+ } else if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 1228:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MeasurementData), END_ELEMENT] */
+ if (iso2MeasurementDataListType_MeasurementData_currArrayIndex < iso2MeasurementDataListType->MeasurementData.arrayLen ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ if(errn == 0) {
+ /* First(xsi:type)StartTag[CHARACTERS[UNSIGNED_INTEGER]] */
+ errn = encodeNBitUnsignedInteger(stream, 1, 0);
+ if(errn == 0) {
+ errn = encodeUnsignedInteger16(stream, iso2MeasurementDataListType->MeasurementData.array[iso2MeasurementDataListType_MeasurementData_currArrayIndex++]);
+ /* valid EE */
+ errn = encodeNBitUnsignedInteger(stream, 1, 0);
+ }
+ }
+ grammarID = 1229;
+ } else if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 1229:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MeasurementData), END_ELEMENT] */
+ if (iso2MeasurementDataListType_MeasurementData_currArrayIndex < iso2MeasurementDataListType->MeasurementData.arrayLen ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ if(errn == 0) {
+ /* First(xsi:type)StartTag[CHARACTERS[UNSIGNED_INTEGER]] */
+ errn = encodeNBitUnsignedInteger(stream, 1, 0);
+ if(errn == 0) {
+ errn = encodeUnsignedInteger16(stream, iso2MeasurementDataListType->MeasurementData.array[iso2MeasurementDataListType_MeasurementData_currArrayIndex++]);
+ /* valid EE */
+ errn = encodeNBitUnsignedInteger(stream, 1, 0);
+ }
+ }
+ grammarID = 1230;
+ } else if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 1230:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MeasurementData), END_ELEMENT] */
+ if (iso2MeasurementDataListType_MeasurementData_currArrayIndex < iso2MeasurementDataListType->MeasurementData.arrayLen ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ if(errn == 0) {
+ /* First(xsi:type)StartTag[CHARACTERS[UNSIGNED_INTEGER]] */
+ errn = encodeNBitUnsignedInteger(stream, 1, 0);
+ if(errn == 0) {
+ errn = encodeUnsignedInteger16(stream, iso2MeasurementDataListType->MeasurementData.array[iso2MeasurementDataListType_MeasurementData_currArrayIndex++]);
+ /* valid EE */
+ errn = encodeNBitUnsignedInteger(stream, 1, 0);
+ }
+ }
+ grammarID = 1231;
+ } else if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 1231:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MeasurementData), END_ELEMENT] */
+ if (iso2MeasurementDataListType_MeasurementData_currArrayIndex < iso2MeasurementDataListType->MeasurementData.arrayLen ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ if(errn == 0) {
+ /* First(xsi:type)StartTag[CHARACTERS[UNSIGNED_INTEGER]] */
+ errn = encodeNBitUnsignedInteger(stream, 1, 0);
+ if(errn == 0) {
+ errn = encodeUnsignedInteger16(stream, iso2MeasurementDataListType->MeasurementData.array[iso2MeasurementDataListType_MeasurementData_currArrayIndex++]);
+ /* valid EE */
+ errn = encodeNBitUnsignedInteger(stream, 1, 0);
+ }
+ }
+ grammarID = 1232;
+ } else if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 1232:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MeasurementData), END_ELEMENT] */
+ if (iso2MeasurementDataListType_MeasurementData_currArrayIndex < iso2MeasurementDataListType->MeasurementData.arrayLen ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ if(errn == 0) {
+ /* First(xsi:type)StartTag[CHARACTERS[UNSIGNED_INTEGER]] */
+ errn = encodeNBitUnsignedInteger(stream, 1, 0);
+ if(errn == 0) {
+ errn = encodeUnsignedInteger16(stream, iso2MeasurementDataListType->MeasurementData.array[iso2MeasurementDataListType_MeasurementData_currArrayIndex++]);
+ /* valid EE */
+ errn = encodeNBitUnsignedInteger(stream, 1, 0);
+ }
+ }
+ grammarID = 1233;
+ } else if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 1233:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MeasurementData), END_ELEMENT] */
+ if (iso2MeasurementDataListType_MeasurementData_currArrayIndex < iso2MeasurementDataListType->MeasurementData.arrayLen ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ if(errn == 0) {
+ /* First(xsi:type)StartTag[CHARACTERS[UNSIGNED_INTEGER]] */
+ errn = encodeNBitUnsignedInteger(stream, 1, 0);
+ if(errn == 0) {
+ errn = encodeUnsignedInteger16(stream, iso2MeasurementDataListType->MeasurementData.array[iso2MeasurementDataListType_MeasurementData_currArrayIndex++]);
+ /* valid EE */
+ errn = encodeNBitUnsignedInteger(stream, 1, 0);
+ }
+ }
+ grammarID = 1234;
+ } else if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 1234:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MeasurementData), END_ELEMENT] */
+ if (iso2MeasurementDataListType_MeasurementData_currArrayIndex < iso2MeasurementDataListType->MeasurementData.arrayLen ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ if(errn == 0) {
+ /* First(xsi:type)StartTag[CHARACTERS[UNSIGNED_INTEGER]] */
+ errn = encodeNBitUnsignedInteger(stream, 1, 0);
+ if(errn == 0) {
+ errn = encodeUnsignedInteger16(stream, iso2MeasurementDataListType->MeasurementData.array[iso2MeasurementDataListType_MeasurementData_currArrayIndex++]);
+ /* valid EE */
+ errn = encodeNBitUnsignedInteger(stream, 1, 0);
+ }
+ }
+ grammarID = 1235;
+ } else if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 1235:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MeasurementData), END_ELEMENT] */
+ if (iso2MeasurementDataListType_MeasurementData_currArrayIndex < iso2MeasurementDataListType->MeasurementData.arrayLen ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ if(errn == 0) {
+ /* First(xsi:type)StartTag[CHARACTERS[UNSIGNED_INTEGER]] */
+ errn = encodeNBitUnsignedInteger(stream, 1, 0);
+ if(errn == 0) {
+ errn = encodeUnsignedInteger16(stream, iso2MeasurementDataListType->MeasurementData.array[iso2MeasurementDataListType_MeasurementData_currArrayIndex++]);
+ /* valid EE */
+ errn = encodeNBitUnsignedInteger(stream, 1, 0);
+ }
+ }
+ grammarID = 1236;
+ } else if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 1236:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MeasurementData), END_ELEMENT] */
+ if (iso2MeasurementDataListType_MeasurementData_currArrayIndex < iso2MeasurementDataListType->MeasurementData.arrayLen ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ if(errn == 0) {
+ /* First(xsi:type)StartTag[CHARACTERS[UNSIGNED_INTEGER]] */
+ errn = encodeNBitUnsignedInteger(stream, 1, 0);
+ if(errn == 0) {
+ errn = encodeUnsignedInteger16(stream, iso2MeasurementDataListType->MeasurementData.array[iso2MeasurementDataListType_MeasurementData_currArrayIndex++]);
+ /* valid EE */
+ errn = encodeNBitUnsignedInteger(stream, 1, 0);
+ }
+ }
+ grammarID = 1237;
+ } else if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 1237:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MeasurementData), END_ELEMENT] */
+ if (iso2MeasurementDataListType_MeasurementData_currArrayIndex < iso2MeasurementDataListType->MeasurementData.arrayLen ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ if(errn == 0) {
+ /* First(xsi:type)StartTag[CHARACTERS[UNSIGNED_INTEGER]] */
+ errn = encodeNBitUnsignedInteger(stream, 1, 0);
+ if(errn == 0) {
+ errn = encodeUnsignedInteger16(stream, iso2MeasurementDataListType->MeasurementData.array[iso2MeasurementDataListType_MeasurementData_currArrayIndex++]);
+ /* valid EE */
+ errn = encodeNBitUnsignedInteger(stream, 1, 0);
+ }
+ }
+ grammarID = 1238;
+ } else if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 1238:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MeasurementData), END_ELEMENT] */
+ if (iso2MeasurementDataListType_MeasurementData_currArrayIndex < iso2MeasurementDataListType->MeasurementData.arrayLen ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ if(errn == 0) {
+ /* First(xsi:type)StartTag[CHARACTERS[UNSIGNED_INTEGER]] */
+ errn = encodeNBitUnsignedInteger(stream, 1, 0);
+ if(errn == 0) {
+ errn = encodeUnsignedInteger16(stream, iso2MeasurementDataListType->MeasurementData.array[iso2MeasurementDataListType_MeasurementData_currArrayIndex++]);
+ /* valid EE */
+ errn = encodeNBitUnsignedInteger(stream, 1, 0);
+ }
+ }
+ grammarID = 1239;
+ } else if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 1239:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MeasurementData), END_ELEMENT] */
+ if (iso2MeasurementDataListType_MeasurementData_currArrayIndex < iso2MeasurementDataListType->MeasurementData.arrayLen ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ if(errn == 0) {
+ /* First(xsi:type)StartTag[CHARACTERS[UNSIGNED_INTEGER]] */
+ errn = encodeNBitUnsignedInteger(stream, 1, 0);
+ if(errn == 0) {
+ errn = encodeUnsignedInteger16(stream, iso2MeasurementDataListType->MeasurementData.array[iso2MeasurementDataListType_MeasurementData_currArrayIndex++]);
+ /* valid EE */
+ errn = encodeNBitUnsignedInteger(stream, 1, 0);
+ }
+ }
+ grammarID = 1240;
+ } else if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 1240:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MeasurementData), END_ELEMENT] */
+ if (iso2MeasurementDataListType_MeasurementData_currArrayIndex < iso2MeasurementDataListType->MeasurementData.arrayLen ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ if(errn == 0) {
+ /* First(xsi:type)StartTag[CHARACTERS[UNSIGNED_INTEGER]] */
+ errn = encodeNBitUnsignedInteger(stream, 1, 0);
+ if(errn == 0) {
+ errn = encodeUnsignedInteger16(stream, iso2MeasurementDataListType->MeasurementData.array[iso2MeasurementDataListType_MeasurementData_currArrayIndex++]);
+ /* valid EE */
+ errn = encodeNBitUnsignedInteger(stream, 1, 0);
+ }
+ }
+ grammarID = 1241;
+ } else if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 1241:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MeasurementData), END_ELEMENT] */
+ if (iso2MeasurementDataListType_MeasurementData_currArrayIndex < iso2MeasurementDataListType->MeasurementData.arrayLen ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ if(errn == 0) {
+ /* First(xsi:type)StartTag[CHARACTERS[UNSIGNED_INTEGER]] */
+ errn = encodeNBitUnsignedInteger(stream, 1, 0);
+ if(errn == 0) {
+ errn = encodeUnsignedInteger16(stream, iso2MeasurementDataListType->MeasurementData.array[iso2MeasurementDataListType_MeasurementData_currArrayIndex++]);
+ /* valid EE */
+ errn = encodeNBitUnsignedInteger(stream, 1, 0);
+ }
+ }
+ grammarID = 1242;
+ } else if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 1242:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MeasurementData), END_ELEMENT] */
+ if (iso2MeasurementDataListType_MeasurementData_currArrayIndex < iso2MeasurementDataListType->MeasurementData.arrayLen ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ if(errn == 0) {
+ /* First(xsi:type)StartTag[CHARACTERS[UNSIGNED_INTEGER]] */
+ errn = encodeNBitUnsignedInteger(stream, 1, 0);
+ if(errn == 0) {
+ errn = encodeUnsignedInteger16(stream, iso2MeasurementDataListType->MeasurementData.array[iso2MeasurementDataListType_MeasurementData_currArrayIndex++]);
+ /* valid EE */
+ errn = encodeNBitUnsignedInteger(stream, 1, 0);
+ }
+ }
+ grammarID = 1243;
+ } else if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 1243:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MeasurementData), END_ELEMENT] */
+ if (iso2MeasurementDataListType_MeasurementData_currArrayIndex < iso2MeasurementDataListType->MeasurementData.arrayLen ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ if(errn == 0) {
+ /* First(xsi:type)StartTag[CHARACTERS[UNSIGNED_INTEGER]] */
+ errn = encodeNBitUnsignedInteger(stream, 1, 0);
+ if(errn == 0) {
+ errn = encodeUnsignedInteger16(stream, iso2MeasurementDataListType->MeasurementData.array[iso2MeasurementDataListType_MeasurementData_currArrayIndex++]);
+ /* valid EE */
+ errn = encodeNBitUnsignedInteger(stream, 1, 0);
+ }
+ }
+ grammarID = 1244;
+ } else if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 1244:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MeasurementData), END_ELEMENT] */
+ if (iso2MeasurementDataListType_MeasurementData_currArrayIndex < iso2MeasurementDataListType->MeasurementData.arrayLen ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ if(errn == 0) {
+ /* First(xsi:type)StartTag[CHARACTERS[UNSIGNED_INTEGER]] */
+ errn = encodeNBitUnsignedInteger(stream, 1, 0);
+ if(errn == 0) {
+ errn = encodeUnsignedInteger16(stream, iso2MeasurementDataListType->MeasurementData.array[iso2MeasurementDataListType_MeasurementData_currArrayIndex++]);
+ /* valid EE */
+ errn = encodeNBitUnsignedInteger(stream, 1, 0);
+ }
+ }
+ grammarID = 1245;
+ } else if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 1245:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MeasurementData), END_ELEMENT] */
+ if (iso2MeasurementDataListType_MeasurementData_currArrayIndex < iso2MeasurementDataListType->MeasurementData.arrayLen ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ if(errn == 0) {
+ /* First(xsi:type)StartTag[CHARACTERS[UNSIGNED_INTEGER]] */
+ errn = encodeNBitUnsignedInteger(stream, 1, 0);
+ if(errn == 0) {
+ errn = encodeUnsignedInteger16(stream, iso2MeasurementDataListType->MeasurementData.array[iso2MeasurementDataListType_MeasurementData_currArrayIndex++]);
+ /* valid EE */
+ errn = encodeNBitUnsignedInteger(stream, 1, 0);
+ }
+ }
+ grammarID = 1246;
+ } else if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 1246:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MeasurementData), END_ELEMENT] */
+ if (iso2MeasurementDataListType_MeasurementData_currArrayIndex < iso2MeasurementDataListType->MeasurementData.arrayLen ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ if(errn == 0) {
+ /* First(xsi:type)StartTag[CHARACTERS[UNSIGNED_INTEGER]] */
+ errn = encodeNBitUnsignedInteger(stream, 1, 0);
+ if(errn == 0) {
+ errn = encodeUnsignedInteger16(stream, iso2MeasurementDataListType->MeasurementData.array[iso2MeasurementDataListType_MeasurementData_currArrayIndex++]);
+ /* valid EE */
+ errn = encodeNBitUnsignedInteger(stream, 1, 0);
+ }
+ }
+ grammarID = 1247;
+ } else if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 1247:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MeasurementData), END_ELEMENT] */
+ if (iso2MeasurementDataListType_MeasurementData_currArrayIndex < iso2MeasurementDataListType->MeasurementData.arrayLen ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ if(errn == 0) {
+ /* First(xsi:type)StartTag[CHARACTERS[UNSIGNED_INTEGER]] */
+ errn = encodeNBitUnsignedInteger(stream, 1, 0);
+ if(errn == 0) {
+ errn = encodeUnsignedInteger16(stream, iso2MeasurementDataListType->MeasurementData.array[iso2MeasurementDataListType_MeasurementData_currArrayIndex++]);
+ /* valid EE */
+ errn = encodeNBitUnsignedInteger(stream, 1, 0);
+ }
+ }
+ grammarID = 1248;
+ } else if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 1248:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MeasurementData), END_ELEMENT] */
+ if (iso2MeasurementDataListType_MeasurementData_currArrayIndex < iso2MeasurementDataListType->MeasurementData.arrayLen ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ if(errn == 0) {
+ /* First(xsi:type)StartTag[CHARACTERS[UNSIGNED_INTEGER]] */
+ errn = encodeNBitUnsignedInteger(stream, 1, 0);
+ if(errn == 0) {
+ errn = encodeUnsignedInteger16(stream, iso2MeasurementDataListType->MeasurementData.array[iso2MeasurementDataListType_MeasurementData_currArrayIndex++]);
+ /* valid EE */
+ errn = encodeNBitUnsignedInteger(stream, 1, 0);
+ }
+ }
+ grammarID = 1249;
+ } else if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 1249:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MeasurementData), END_ELEMENT] */
+ if (iso2MeasurementDataListType_MeasurementData_currArrayIndex < iso2MeasurementDataListType->MeasurementData.arrayLen ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ if(errn == 0) {
+ /* First(xsi:type)StartTag[CHARACTERS[UNSIGNED_INTEGER]] */
+ errn = encodeNBitUnsignedInteger(stream, 1, 0);
+ if(errn == 0) {
+ errn = encodeUnsignedInteger16(stream, iso2MeasurementDataListType->MeasurementData.array[iso2MeasurementDataListType_MeasurementData_currArrayIndex++]);
+ /* valid EE */
+ errn = encodeNBitUnsignedInteger(stream, 1, 0);
+ }
+ }
+ grammarID = 1250;
+ } else if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 1250:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MeasurementData), END_ELEMENT] */
+ if (iso2MeasurementDataListType_MeasurementData_currArrayIndex < iso2MeasurementDataListType->MeasurementData.arrayLen ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ if(errn == 0) {
+ /* First(xsi:type)StartTag[CHARACTERS[UNSIGNED_INTEGER]] */
+ errn = encodeNBitUnsignedInteger(stream, 1, 0);
+ if(errn == 0) {
+ errn = encodeUnsignedInteger16(stream, iso2MeasurementDataListType->MeasurementData.array[iso2MeasurementDataListType_MeasurementData_currArrayIndex++]);
+ /* valid EE */
+ errn = encodeNBitUnsignedInteger(stream, 1, 0);
+ }
+ }
+ grammarID = 1251;
+ } else if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 1251:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MeasurementData), END_ELEMENT] */
+ if (iso2MeasurementDataListType_MeasurementData_currArrayIndex < iso2MeasurementDataListType->MeasurementData.arrayLen ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ if(errn == 0) {
+ /* First(xsi:type)StartTag[CHARACTERS[UNSIGNED_INTEGER]] */
+ errn = encodeNBitUnsignedInteger(stream, 1, 0);
+ if(errn == 0) {
+ errn = encodeUnsignedInteger16(stream, iso2MeasurementDataListType->MeasurementData.array[iso2MeasurementDataListType_MeasurementData_currArrayIndex++]);
+ /* valid EE */
+ errn = encodeNBitUnsignedInteger(stream, 1, 0);
+ }
+ }
+ grammarID = 1252;
+ } else if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 1252:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MeasurementData), END_ELEMENT] */
+ if (iso2MeasurementDataListType_MeasurementData_currArrayIndex < iso2MeasurementDataListType->MeasurementData.arrayLen ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ if(errn == 0) {
+ /* First(xsi:type)StartTag[CHARACTERS[UNSIGNED_INTEGER]] */
+ errn = encodeNBitUnsignedInteger(stream, 1, 0);
+ if(errn == 0) {
+ errn = encodeUnsignedInteger16(stream, iso2MeasurementDataListType->MeasurementData.array[iso2MeasurementDataListType_MeasurementData_currArrayIndex++]);
+ /* valid EE */
+ errn = encodeNBitUnsignedInteger(stream, 1, 0);
+ }
+ }
+ grammarID = 1253;
+ } else if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 1253:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MeasurementData), END_ELEMENT] */
+ if (iso2MeasurementDataListType_MeasurementData_currArrayIndex < iso2MeasurementDataListType->MeasurementData.arrayLen ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ if(errn == 0) {
+ /* First(xsi:type)StartTag[CHARACTERS[UNSIGNED_INTEGER]] */
+ errn = encodeNBitUnsignedInteger(stream, 1, 0);
+ if(errn == 0) {
+ errn = encodeUnsignedInteger16(stream, iso2MeasurementDataListType->MeasurementData.array[iso2MeasurementDataListType_MeasurementData_currArrayIndex++]);
+ /* valid EE */
+ errn = encodeNBitUnsignedInteger(stream, 1, 0);
+ }
+ }
+ grammarID = 1254;
+ } else if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 1254:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MeasurementData), END_ELEMENT] */
+ if (iso2MeasurementDataListType_MeasurementData_currArrayIndex < iso2MeasurementDataListType->MeasurementData.arrayLen ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ if(errn == 0) {
+ /* First(xsi:type)StartTag[CHARACTERS[UNSIGNED_INTEGER]] */
+ errn = encodeNBitUnsignedInteger(stream, 1, 0);
+ if(errn == 0) {
+ errn = encodeUnsignedInteger16(stream, iso2MeasurementDataListType->MeasurementData.array[iso2MeasurementDataListType_MeasurementData_currArrayIndex++]);
+ /* valid EE */
+ errn = encodeNBitUnsignedInteger(stream, 1, 0);
+ }
+ }
+ grammarID = 1255;
+ } else if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 1255:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MeasurementData), END_ELEMENT] */
+ if (iso2MeasurementDataListType_MeasurementData_currArrayIndex < iso2MeasurementDataListType->MeasurementData.arrayLen ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ if(errn == 0) {
+ /* First(xsi:type)StartTag[CHARACTERS[UNSIGNED_INTEGER]] */
+ errn = encodeNBitUnsignedInteger(stream, 1, 0);
+ if(errn == 0) {
+ errn = encodeUnsignedInteger16(stream, iso2MeasurementDataListType->MeasurementData.array[iso2MeasurementDataListType_MeasurementData_currArrayIndex++]);
+ /* valid EE */
+ errn = encodeNBitUnsignedInteger(stream, 1, 0);
+ }
+ }
+ grammarID = 1256;
+ } else if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 1256:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MeasurementData), END_ELEMENT] */
+ if (iso2MeasurementDataListType_MeasurementData_currArrayIndex < iso2MeasurementDataListType->MeasurementData.arrayLen ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ if(errn == 0) {
+ /* First(xsi:type)StartTag[CHARACTERS[UNSIGNED_INTEGER]] */
+ errn = encodeNBitUnsignedInteger(stream, 1, 0);
+ if(errn == 0) {
+ errn = encodeUnsignedInteger16(stream, iso2MeasurementDataListType->MeasurementData.array[iso2MeasurementDataListType_MeasurementData_currArrayIndex++]);
+ /* valid EE */
+ errn = encodeNBitUnsignedInteger(stream, 1, 0);
+ }
+ }
+ grammarID = 1257;
+ } else if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 1257:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MeasurementData), END_ELEMENT] */
+ if (iso2MeasurementDataListType_MeasurementData_currArrayIndex < iso2MeasurementDataListType->MeasurementData.arrayLen ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ if(errn == 0) {
+ /* First(xsi:type)StartTag[CHARACTERS[UNSIGNED_INTEGER]] */
+ errn = encodeNBitUnsignedInteger(stream, 1, 0);
+ if(errn == 0) {
+ errn = encodeUnsignedInteger16(stream, iso2MeasurementDataListType->MeasurementData.array[iso2MeasurementDataListType_MeasurementData_currArrayIndex++]);
+ /* valid EE */
+ errn = encodeNBitUnsignedInteger(stream, 1, 0);
+ }
+ }
+ grammarID = 1258;
+ } else if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 1258:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MeasurementData), END_ELEMENT] */
+ if (iso2MeasurementDataListType_MeasurementData_currArrayIndex < iso2MeasurementDataListType->MeasurementData.arrayLen ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ if(errn == 0) {
+ /* First(xsi:type)StartTag[CHARACTERS[UNSIGNED_INTEGER]] */
+ errn = encodeNBitUnsignedInteger(stream, 1, 0);
+ if(errn == 0) {
+ errn = encodeUnsignedInteger16(stream, iso2MeasurementDataListType->MeasurementData.array[iso2MeasurementDataListType_MeasurementData_currArrayIndex++]);
+ /* valid EE */
+ errn = encodeNBitUnsignedInteger(stream, 1, 0);
+ }
+ }
+ grammarID = 1259;
+ } else if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 1259:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MeasurementData), END_ELEMENT] */
+ if (iso2MeasurementDataListType_MeasurementData_currArrayIndex < iso2MeasurementDataListType->MeasurementData.arrayLen ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ if(errn == 0) {
+ /* First(xsi:type)StartTag[CHARACTERS[UNSIGNED_INTEGER]] */
+ errn = encodeNBitUnsignedInteger(stream, 1, 0);
+ if(errn == 0) {
+ errn = encodeUnsignedInteger16(stream, iso2MeasurementDataListType->MeasurementData.array[iso2MeasurementDataListType_MeasurementData_currArrayIndex++]);
+ /* valid EE */
+ errn = encodeNBitUnsignedInteger(stream, 1, 0);
+ }
+ }
+ grammarID = 1260;
+ } else if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 1260:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MeasurementData), END_ELEMENT] */
+ if (iso2MeasurementDataListType_MeasurementData_currArrayIndex < iso2MeasurementDataListType->MeasurementData.arrayLen ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ if(errn == 0) {
+ /* First(xsi:type)StartTag[CHARACTERS[UNSIGNED_INTEGER]] */
+ errn = encodeNBitUnsignedInteger(stream, 1, 0);
+ if(errn == 0) {
+ errn = encodeUnsignedInteger16(stream, iso2MeasurementDataListType->MeasurementData.array[iso2MeasurementDataListType_MeasurementData_currArrayIndex++]);
+ /* valid EE */
+ errn = encodeNBitUnsignedInteger(stream, 1, 0);
+ }
+ }
+ grammarID = 1261;
+ } else if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 1261:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MeasurementData), END_ELEMENT] */
+ if (iso2MeasurementDataListType_MeasurementData_currArrayIndex < iso2MeasurementDataListType->MeasurementData.arrayLen ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ if(errn == 0) {
+ /* First(xsi:type)StartTag[CHARACTERS[UNSIGNED_INTEGER]] */
+ errn = encodeNBitUnsignedInteger(stream, 1, 0);
+ if(errn == 0) {
+ errn = encodeUnsignedInteger16(stream, iso2MeasurementDataListType->MeasurementData.array[iso2MeasurementDataListType_MeasurementData_currArrayIndex++]);
+ /* valid EE */
+ errn = encodeNBitUnsignedInteger(stream, 1, 0);
+ }
+ }
+ grammarID = 1262;
+ } else if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 1262:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MeasurementData), END_ELEMENT] */
+ if (iso2MeasurementDataListType_MeasurementData_currArrayIndex < iso2MeasurementDataListType->MeasurementData.arrayLen ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ if(errn == 0) {
+ /* First(xsi:type)StartTag[CHARACTERS[UNSIGNED_INTEGER]] */
+ errn = encodeNBitUnsignedInteger(stream, 1, 0);
+ if(errn == 0) {
+ errn = encodeUnsignedInteger16(stream, iso2MeasurementDataListType->MeasurementData.array[iso2MeasurementDataListType_MeasurementData_currArrayIndex++]);
+ /* valid EE */
+ errn = encodeNBitUnsignedInteger(stream, 1, 0);
+ }
+ }
+ grammarID = 1263;
+ } else if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 1263:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MeasurementData), END_ELEMENT] */
+ if (iso2MeasurementDataListType_MeasurementData_currArrayIndex < iso2MeasurementDataListType->MeasurementData.arrayLen ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ if(errn == 0) {
+ /* First(xsi:type)StartTag[CHARACTERS[UNSIGNED_INTEGER]] */
+ errn = encodeNBitUnsignedInteger(stream, 1, 0);
+ if(errn == 0) {
+ errn = encodeUnsignedInteger16(stream, iso2MeasurementDataListType->MeasurementData.array[iso2MeasurementDataListType_MeasurementData_currArrayIndex++]);
+ /* valid EE */
+ errn = encodeNBitUnsignedInteger(stream, 1, 0);
+ }
+ }
+ grammarID = 1264;
+ } else if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 1264:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MeasurementData), END_ELEMENT] */
+ if (iso2MeasurementDataListType_MeasurementData_currArrayIndex < iso2MeasurementDataListType->MeasurementData.arrayLen ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ if(errn == 0) {
+ /* First(xsi:type)StartTag[CHARACTERS[UNSIGNED_INTEGER]] */
+ errn = encodeNBitUnsignedInteger(stream, 1, 0);
+ if(errn == 0) {
+ errn = encodeUnsignedInteger16(stream, iso2MeasurementDataListType->MeasurementData.array[iso2MeasurementDataListType_MeasurementData_currArrayIndex++]);
+ /* valid EE */
+ errn = encodeNBitUnsignedInteger(stream, 1, 0);
+ }
+ }
+ grammarID = 1265;
+ } else if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 1265:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MeasurementData), END_ELEMENT] */
+ if (iso2MeasurementDataListType_MeasurementData_currArrayIndex < iso2MeasurementDataListType->MeasurementData.arrayLen ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ if(errn == 0) {
+ /* First(xsi:type)StartTag[CHARACTERS[UNSIGNED_INTEGER]] */
+ errn = encodeNBitUnsignedInteger(stream, 1, 0);
+ if(errn == 0) {
+ errn = encodeUnsignedInteger16(stream, iso2MeasurementDataListType->MeasurementData.array[iso2MeasurementDataListType_MeasurementData_currArrayIndex++]);
+ /* valid EE */
+ errn = encodeNBitUnsignedInteger(stream, 1, 0);
+ }
+ }
+ grammarID = 1266;
+ } else if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 1266:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MeasurementData), END_ELEMENT] */
+ if (iso2MeasurementDataListType_MeasurementData_currArrayIndex < iso2MeasurementDataListType->MeasurementData.arrayLen ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ if(errn == 0) {
+ /* First(xsi:type)StartTag[CHARACTERS[UNSIGNED_INTEGER]] */
+ errn = encodeNBitUnsignedInteger(stream, 1, 0);
+ if(errn == 0) {
+ errn = encodeUnsignedInteger16(stream, iso2MeasurementDataListType->MeasurementData.array[iso2MeasurementDataListType_MeasurementData_currArrayIndex++]);
+ /* valid EE */
+ errn = encodeNBitUnsignedInteger(stream, 1, 0);
+ }
+ }
+ grammarID = 1267;
+ } else if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 1267:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MeasurementData), END_ELEMENT] */
+ if (iso2MeasurementDataListType_MeasurementData_currArrayIndex < iso2MeasurementDataListType->MeasurementData.arrayLen ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ if(errn == 0) {
+ /* First(xsi:type)StartTag[CHARACTERS[UNSIGNED_INTEGER]] */
+ errn = encodeNBitUnsignedInteger(stream, 1, 0);
+ if(errn == 0) {
+ errn = encodeUnsignedInteger16(stream, iso2MeasurementDataListType->MeasurementData.array[iso2MeasurementDataListType_MeasurementData_currArrayIndex++]);
+ /* valid EE */
+ errn = encodeNBitUnsignedInteger(stream, 1, 0);
+ }
+ }
+ grammarID = 1268;
+ } else if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 1268:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MeasurementData), END_ELEMENT] */
+ if (iso2MeasurementDataListType_MeasurementData_currArrayIndex < iso2MeasurementDataListType->MeasurementData.arrayLen ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ if(errn == 0) {
+ /* First(xsi:type)StartTag[CHARACTERS[UNSIGNED_INTEGER]] */
+ errn = encodeNBitUnsignedInteger(stream, 1, 0);
+ if(errn == 0) {
+ errn = encodeUnsignedInteger16(stream, iso2MeasurementDataListType->MeasurementData.array[iso2MeasurementDataListType_MeasurementData_currArrayIndex++]);
+ /* valid EE */
+ errn = encodeNBitUnsignedInteger(stream, 1, 0);
+ }
+ }
+ grammarID = 1269;
+ } else if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 1269:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MeasurementData), END_ELEMENT] */
+ if (iso2MeasurementDataListType_MeasurementData_currArrayIndex < iso2MeasurementDataListType->MeasurementData.arrayLen ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ if(errn == 0) {
+ /* First(xsi:type)StartTag[CHARACTERS[UNSIGNED_INTEGER]] */
+ errn = encodeNBitUnsignedInteger(stream, 1, 0);
+ if(errn == 0) {
+ errn = encodeUnsignedInteger16(stream, iso2MeasurementDataListType->MeasurementData.array[iso2MeasurementDataListType_MeasurementData_currArrayIndex++]);
+ /* valid EE */
+ errn = encodeNBitUnsignedInteger(stream, 1, 0);
+ }
+ }
+ grammarID = 1270;
+ } else if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 1270:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MeasurementData), END_ELEMENT] */
+ if (iso2MeasurementDataListType_MeasurementData_currArrayIndex < iso2MeasurementDataListType->MeasurementData.arrayLen ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ if(errn == 0) {
+ /* First(xsi:type)StartTag[CHARACTERS[UNSIGNED_INTEGER]] */
+ errn = encodeNBitUnsignedInteger(stream, 1, 0);
+ if(errn == 0) {
+ errn = encodeUnsignedInteger16(stream, iso2MeasurementDataListType->MeasurementData.array[iso2MeasurementDataListType_MeasurementData_currArrayIndex++]);
+ /* valid EE */
+ errn = encodeNBitUnsignedInteger(stream, 1, 0);
+ }
+ }
+ grammarID = 1271;
+ } else if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 1271:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MeasurementData), END_ELEMENT] */
+ if (iso2MeasurementDataListType_MeasurementData_currArrayIndex < iso2MeasurementDataListType->MeasurementData.arrayLen ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ if(errn == 0) {
+ /* First(xsi:type)StartTag[CHARACTERS[UNSIGNED_INTEGER]] */
+ errn = encodeNBitUnsignedInteger(stream, 1, 0);
+ if(errn == 0) {
+ errn = encodeUnsignedInteger16(stream, iso2MeasurementDataListType->MeasurementData.array[iso2MeasurementDataListType_MeasurementData_currArrayIndex++]);
+ /* valid EE */
+ errn = encodeNBitUnsignedInteger(stream, 1, 0);
+ }
+ }
+ grammarID = 1272;
+ } else if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 1272:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MeasurementData), END_ELEMENT] */
+ if (iso2MeasurementDataListType_MeasurementData_currArrayIndex < iso2MeasurementDataListType->MeasurementData.arrayLen ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ if(errn == 0) {
+ /* First(xsi:type)StartTag[CHARACTERS[UNSIGNED_INTEGER]] */
+ errn = encodeNBitUnsignedInteger(stream, 1, 0);
+ if(errn == 0) {
+ errn = encodeUnsignedInteger16(stream, iso2MeasurementDataListType->MeasurementData.array[iso2MeasurementDataListType_MeasurementData_currArrayIndex++]);
+ /* valid EE */
+ errn = encodeNBitUnsignedInteger(stream, 1, 0);
+ }
+ }
+ grammarID = 1273;
+ } else if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 1273:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MeasurementData), END_ELEMENT] */
+ if (iso2MeasurementDataListType_MeasurementData_currArrayIndex < iso2MeasurementDataListType->MeasurementData.arrayLen ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ if(errn == 0) {
+ /* First(xsi:type)StartTag[CHARACTERS[UNSIGNED_INTEGER]] */
+ errn = encodeNBitUnsignedInteger(stream, 1, 0);
+ if(errn == 0) {
+ errn = encodeUnsignedInteger16(stream, iso2MeasurementDataListType->MeasurementData.array[iso2MeasurementDataListType_MeasurementData_currArrayIndex++]);
+ /* valid EE */
+ errn = encodeNBitUnsignedInteger(stream, 1, 0);
+ }
+ }
+ grammarID = 1274;
+ } else if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 1274:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MeasurementData), END_ELEMENT] */
+ if (iso2MeasurementDataListType_MeasurementData_currArrayIndex < iso2MeasurementDataListType->MeasurementData.arrayLen ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ if(errn == 0) {
+ /* First(xsi:type)StartTag[CHARACTERS[UNSIGNED_INTEGER]] */
+ errn = encodeNBitUnsignedInteger(stream, 1, 0);
+ if(errn == 0) {
+ errn = encodeUnsignedInteger16(stream, iso2MeasurementDataListType->MeasurementData.array[iso2MeasurementDataListType_MeasurementData_currArrayIndex++]);
+ /* valid EE */
+ errn = encodeNBitUnsignedInteger(stream, 1, 0);
+ }
+ }
+ grammarID = 1275;
+ } else if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 1275:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MeasurementData), END_ELEMENT] */
+ if (iso2MeasurementDataListType_MeasurementData_currArrayIndex < iso2MeasurementDataListType->MeasurementData.arrayLen ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ if(errn == 0) {
+ /* First(xsi:type)StartTag[CHARACTERS[UNSIGNED_INTEGER]] */
+ errn = encodeNBitUnsignedInteger(stream, 1, 0);
+ if(errn == 0) {
+ errn = encodeUnsignedInteger16(stream, iso2MeasurementDataListType->MeasurementData.array[iso2MeasurementDataListType_MeasurementData_currArrayIndex++]);
+ /* valid EE */
+ errn = encodeNBitUnsignedInteger(stream, 1, 0);
+ }
+ }
+ grammarID = 1276;
+ } else if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 1276:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MeasurementData), END_ELEMENT] */
+ if (iso2MeasurementDataListType_MeasurementData_currArrayIndex < iso2MeasurementDataListType->MeasurementData.arrayLen ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ if(errn == 0) {
+ /* First(xsi:type)StartTag[CHARACTERS[UNSIGNED_INTEGER]] */
+ errn = encodeNBitUnsignedInteger(stream, 1, 0);
+ if(errn == 0) {
+ errn = encodeUnsignedInteger16(stream, iso2MeasurementDataListType->MeasurementData.array[iso2MeasurementDataListType_MeasurementData_currArrayIndex++]);
+ /* valid EE */
+ errn = encodeNBitUnsignedInteger(stream, 1, 0);
+ }
+ }
+ grammarID = 1277;
+ } else if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 1277:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MeasurementData), END_ELEMENT] */
+ if (iso2MeasurementDataListType_MeasurementData_currArrayIndex < iso2MeasurementDataListType->MeasurementData.arrayLen ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ if(errn == 0) {
+ /* First(xsi:type)StartTag[CHARACTERS[UNSIGNED_INTEGER]] */
+ errn = encodeNBitUnsignedInteger(stream, 1, 0);
+ if(errn == 0) {
+ errn = encodeUnsignedInteger16(stream, iso2MeasurementDataListType->MeasurementData.array[iso2MeasurementDataListType_MeasurementData_currArrayIndex++]);
+ /* valid EE */
+ errn = encodeNBitUnsignedInteger(stream, 1, 0);
+ }
+ }
+ grammarID = 1278;
+ } else if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 1278:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MeasurementData), END_ELEMENT] */
+ if (iso2MeasurementDataListType_MeasurementData_currArrayIndex < iso2MeasurementDataListType->MeasurementData.arrayLen ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ if(errn == 0) {
+ /* First(xsi:type)StartTag[CHARACTERS[UNSIGNED_INTEGER]] */
+ errn = encodeNBitUnsignedInteger(stream, 1, 0);
+ if(errn == 0) {
+ errn = encodeUnsignedInteger16(stream, iso2MeasurementDataListType->MeasurementData.array[iso2MeasurementDataListType_MeasurementData_currArrayIndex++]);
+ /* valid EE */
+ errn = encodeNBitUnsignedInteger(stream, 1, 0);
+ }
+ }
+ grammarID = 1279;
+ } else if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 1279:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MeasurementData), END_ELEMENT] */
+ if (iso2MeasurementDataListType_MeasurementData_currArrayIndex < iso2MeasurementDataListType->MeasurementData.arrayLen ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ if(errn == 0) {
+ /* First(xsi:type)StartTag[CHARACTERS[UNSIGNED_INTEGER]] */
+ errn = encodeNBitUnsignedInteger(stream, 1, 0);
+ if(errn == 0) {
+ errn = encodeUnsignedInteger16(stream, iso2MeasurementDataListType->MeasurementData.array[iso2MeasurementDataListType_MeasurementData_currArrayIndex++]);
+ /* valid EE */
+ errn = encodeNBitUnsignedInteger(stream, 1, 0);
+ }
+ }
+ grammarID = 1280;
+ } else if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 1280:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MeasurementData), END_ELEMENT] */
+ if (iso2MeasurementDataListType_MeasurementData_currArrayIndex < iso2MeasurementDataListType->MeasurementData.arrayLen ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ if(errn == 0) {
+ /* First(xsi:type)StartTag[CHARACTERS[UNSIGNED_INTEGER]] */
+ errn = encodeNBitUnsignedInteger(stream, 1, 0);
+ if(errn == 0) {
+ errn = encodeUnsignedInteger16(stream, iso2MeasurementDataListType->MeasurementData.array[iso2MeasurementDataListType_MeasurementData_currArrayIndex++]);
+ /* valid EE */
+ errn = encodeNBitUnsignedInteger(stream, 1, 0);
+ }
+ }
+ grammarID = 1281;
+ } else if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 1281:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MeasurementData), END_ELEMENT] */
+ if (iso2MeasurementDataListType_MeasurementData_currArrayIndex < iso2MeasurementDataListType->MeasurementData.arrayLen ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ if(errn == 0) {
+ /* First(xsi:type)StartTag[CHARACTERS[UNSIGNED_INTEGER]] */
+ errn = encodeNBitUnsignedInteger(stream, 1, 0);
+ if(errn == 0) {
+ errn = encodeUnsignedInteger16(stream, iso2MeasurementDataListType->MeasurementData.array[iso2MeasurementDataListType_MeasurementData_currArrayIndex++]);
+ /* valid EE */
+ errn = encodeNBitUnsignedInteger(stream, 1, 0);
+ }
+ }
+ grammarID = 1282;
+ } else if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 1282:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MeasurementData), END_ELEMENT] */
+ if (iso2MeasurementDataListType_MeasurementData_currArrayIndex < iso2MeasurementDataListType->MeasurementData.arrayLen ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ if(errn == 0) {
+ /* First(xsi:type)StartTag[CHARACTERS[UNSIGNED_INTEGER]] */
+ errn = encodeNBitUnsignedInteger(stream, 1, 0);
+ if(errn == 0) {
+ errn = encodeUnsignedInteger16(stream, iso2MeasurementDataListType->MeasurementData.array[iso2MeasurementDataListType_MeasurementData_currArrayIndex++]);
+ /* valid EE */
+ errn = encodeNBitUnsignedInteger(stream, 1, 0);
+ }
+ }
+ grammarID = 1283;
+ } else if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 1283:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MeasurementData), END_ELEMENT] */
+ if (iso2MeasurementDataListType_MeasurementData_currArrayIndex < iso2MeasurementDataListType->MeasurementData.arrayLen ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ if(errn == 0) {
+ /* First(xsi:type)StartTag[CHARACTERS[UNSIGNED_INTEGER]] */
+ errn = encodeNBitUnsignedInteger(stream, 1, 0);
+ if(errn == 0) {
+ errn = encodeUnsignedInteger16(stream, iso2MeasurementDataListType->MeasurementData.array[iso2MeasurementDataListType_MeasurementData_currArrayIndex++]);
+ /* valid EE */
+ errn = encodeNBitUnsignedInteger(stream, 1, 0);
+ }
+ }
+ grammarID = 1284;
+ } else if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 1284:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MeasurementData), END_ELEMENT] */
+ if (iso2MeasurementDataListType_MeasurementData_currArrayIndex < iso2MeasurementDataListType->MeasurementData.arrayLen ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ if(errn == 0) {
+ /* First(xsi:type)StartTag[CHARACTERS[UNSIGNED_INTEGER]] */
+ errn = encodeNBitUnsignedInteger(stream, 1, 0);
+ if(errn == 0) {
+ errn = encodeUnsignedInteger16(stream, iso2MeasurementDataListType->MeasurementData.array[iso2MeasurementDataListType_MeasurementData_currArrayIndex++]);
+ /* valid EE */
+ errn = encodeNBitUnsignedInteger(stream, 1, 0);
+ }
+ }
+ grammarID = 1285;
+ } else if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 1285:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MeasurementData), END_ELEMENT] */
+ if (iso2MeasurementDataListType_MeasurementData_currArrayIndex < iso2MeasurementDataListType->MeasurementData.arrayLen ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ if(errn == 0) {
+ /* First(xsi:type)StartTag[CHARACTERS[UNSIGNED_INTEGER]] */
+ errn = encodeNBitUnsignedInteger(stream, 1, 0);
+ if(errn == 0) {
+ errn = encodeUnsignedInteger16(stream, iso2MeasurementDataListType->MeasurementData.array[iso2MeasurementDataListType_MeasurementData_currArrayIndex++]);
+ /* valid EE */
+ errn = encodeNBitUnsignedInteger(stream, 1, 0);
+ }
+ }
+ grammarID = 1286;
+ } else if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 1286:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MeasurementData), END_ELEMENT] */
+ if (iso2MeasurementDataListType_MeasurementData_currArrayIndex < iso2MeasurementDataListType->MeasurementData.arrayLen ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ if(errn == 0) {
+ /* First(xsi:type)StartTag[CHARACTERS[UNSIGNED_INTEGER]] */
+ errn = encodeNBitUnsignedInteger(stream, 1, 0);
+ if(errn == 0) {
+ errn = encodeUnsignedInteger16(stream, iso2MeasurementDataListType->MeasurementData.array[iso2MeasurementDataListType_MeasurementData_currArrayIndex++]);
+ /* valid EE */
+ errn = encodeNBitUnsignedInteger(stream, 1, 0);
+ }
+ }
+ grammarID = 1287;
+ } else if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 1287:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MeasurementData), END_ELEMENT] */
+ if (iso2MeasurementDataListType_MeasurementData_currArrayIndex < iso2MeasurementDataListType->MeasurementData.arrayLen ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ if(errn == 0) {
+ /* First(xsi:type)StartTag[CHARACTERS[UNSIGNED_INTEGER]] */
+ errn = encodeNBitUnsignedInteger(stream, 1, 0);
+ if(errn == 0) {
+ errn = encodeUnsignedInteger16(stream, iso2MeasurementDataListType->MeasurementData.array[iso2MeasurementDataListType_MeasurementData_currArrayIndex++]);
+ /* valid EE */
+ errn = encodeNBitUnsignedInteger(stream, 1, 0);
+ }
+ }
+ grammarID = 1288;
+ } else if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 1288:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MeasurementData), END_ELEMENT] */
+ if (iso2MeasurementDataListType_MeasurementData_currArrayIndex < iso2MeasurementDataListType->MeasurementData.arrayLen ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ if(errn == 0) {
+ /* First(xsi:type)StartTag[CHARACTERS[UNSIGNED_INTEGER]] */
+ errn = encodeNBitUnsignedInteger(stream, 1, 0);
+ if(errn == 0) {
+ errn = encodeUnsignedInteger16(stream, iso2MeasurementDataListType->MeasurementData.array[iso2MeasurementDataListType_MeasurementData_currArrayIndex++]);
+ /* valid EE */
+ errn = encodeNBitUnsignedInteger(stream, 1, 0);
+ }
+ }
+ grammarID = 1289;
+ } else if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 1289:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MeasurementData), END_ELEMENT] */
+ if (iso2MeasurementDataListType_MeasurementData_currArrayIndex < iso2MeasurementDataListType->MeasurementData.arrayLen ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ if(errn == 0) {
+ /* First(xsi:type)StartTag[CHARACTERS[UNSIGNED_INTEGER]] */
+ errn = encodeNBitUnsignedInteger(stream, 1, 0);
+ if(errn == 0) {
+ errn = encodeUnsignedInteger16(stream, iso2MeasurementDataListType->MeasurementData.array[iso2MeasurementDataListType_MeasurementData_currArrayIndex++]);
+ /* valid EE */
+ errn = encodeNBitUnsignedInteger(stream, 1, 0);
+ }
+ }
+ grammarID = 1290;
+ } else if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 1290:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MeasurementData), END_ELEMENT] */
+ if (iso2MeasurementDataListType_MeasurementData_currArrayIndex < iso2MeasurementDataListType->MeasurementData.arrayLen ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ if(errn == 0) {
+ /* First(xsi:type)StartTag[CHARACTERS[UNSIGNED_INTEGER]] */
+ errn = encodeNBitUnsignedInteger(stream, 1, 0);
+ if(errn == 0) {
+ errn = encodeUnsignedInteger16(stream, iso2MeasurementDataListType->MeasurementData.array[iso2MeasurementDataListType_MeasurementData_currArrayIndex++]);
+ /* valid EE */
+ errn = encodeNBitUnsignedInteger(stream, 1, 0);
+ }
+ }
+ grammarID = 1291;
+ } else if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 1291:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MeasurementData), END_ELEMENT] */
+ if (iso2MeasurementDataListType_MeasurementData_currArrayIndex < iso2MeasurementDataListType->MeasurementData.arrayLen ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ if(errn == 0) {
+ /* First(xsi:type)StartTag[CHARACTERS[UNSIGNED_INTEGER]] */
+ errn = encodeNBitUnsignedInteger(stream, 1, 0);
+ if(errn == 0) {
+ errn = encodeUnsignedInteger16(stream, iso2MeasurementDataListType->MeasurementData.array[iso2MeasurementDataListType_MeasurementData_currArrayIndex++]);
+ /* valid EE */
+ errn = encodeNBitUnsignedInteger(stream, 1, 0);
+ }
+ }
+ grammarID = 1292;
+ } else if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 1292:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MeasurementData), END_ELEMENT] */
+ if (iso2MeasurementDataListType_MeasurementData_currArrayIndex < iso2MeasurementDataListType->MeasurementData.arrayLen ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ if(errn == 0) {
+ /* First(xsi:type)StartTag[CHARACTERS[UNSIGNED_INTEGER]] */
+ errn = encodeNBitUnsignedInteger(stream, 1, 0);
+ if(errn == 0) {
+ errn = encodeUnsignedInteger16(stream, iso2MeasurementDataListType->MeasurementData.array[iso2MeasurementDataListType_MeasurementData_currArrayIndex++]);
+ /* valid EE */
+ errn = encodeNBitUnsignedInteger(stream, 1, 0);
+ }
+ }
+ grammarID = 1293;
+ } else if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 1293:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MeasurementData), END_ELEMENT] */
+ if (iso2MeasurementDataListType_MeasurementData_currArrayIndex < iso2MeasurementDataListType->MeasurementData.arrayLen ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ if(errn == 0) {
+ /* First(xsi:type)StartTag[CHARACTERS[UNSIGNED_INTEGER]] */
+ errn = encodeNBitUnsignedInteger(stream, 1, 0);
+ if(errn == 0) {
+ errn = encodeUnsignedInteger16(stream, iso2MeasurementDataListType->MeasurementData.array[iso2MeasurementDataListType_MeasurementData_currArrayIndex++]);
+ /* valid EE */
+ errn = encodeNBitUnsignedInteger(stream, 1, 0);
+ }
+ }
+ grammarID = 1294;
+ } else if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 1294:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MeasurementData), END_ELEMENT] */
+ if (iso2MeasurementDataListType_MeasurementData_currArrayIndex < iso2MeasurementDataListType->MeasurementData.arrayLen ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ if(errn == 0) {
+ /* First(xsi:type)StartTag[CHARACTERS[UNSIGNED_INTEGER]] */
+ errn = encodeNBitUnsignedInteger(stream, 1, 0);
+ if(errn == 0) {
+ errn = encodeUnsignedInteger16(stream, iso2MeasurementDataListType->MeasurementData.array[iso2MeasurementDataListType_MeasurementData_currArrayIndex++]);
+ /* valid EE */
+ errn = encodeNBitUnsignedInteger(stream, 1, 0);
+ }
+ }
+ grammarID = 1295;
+ } else if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 1295:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MeasurementData), END_ELEMENT] */
+ if (iso2MeasurementDataListType_MeasurementData_currArrayIndex < iso2MeasurementDataListType->MeasurementData.arrayLen ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ if(errn == 0) {
+ /* First(xsi:type)StartTag[CHARACTERS[UNSIGNED_INTEGER]] */
+ errn = encodeNBitUnsignedInteger(stream, 1, 0);
+ if(errn == 0) {
+ errn = encodeUnsignedInteger16(stream, iso2MeasurementDataListType->MeasurementData.array[iso2MeasurementDataListType_MeasurementData_currArrayIndex++]);
+ /* valid EE */
+ errn = encodeNBitUnsignedInteger(stream, 1, 0);
+ }
+ }
+ grammarID = 1296;
+ } else if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 1296:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MeasurementData), END_ELEMENT] */
+ if (iso2MeasurementDataListType_MeasurementData_currArrayIndex < iso2MeasurementDataListType->MeasurementData.arrayLen ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ if(errn == 0) {
+ /* First(xsi:type)StartTag[CHARACTERS[UNSIGNED_INTEGER]] */
+ errn = encodeNBitUnsignedInteger(stream, 1, 0);
+ if(errn == 0) {
+ errn = encodeUnsignedInteger16(stream, iso2MeasurementDataListType->MeasurementData.array[iso2MeasurementDataListType_MeasurementData_currArrayIndex++]);
+ /* valid EE */
+ errn = encodeNBitUnsignedInteger(stream, 1, 0);
+ }
+ }
+ grammarID = 1297;
+ } else if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 1297:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MeasurementData), END_ELEMENT] */
+ if (iso2MeasurementDataListType_MeasurementData_currArrayIndex < iso2MeasurementDataListType->MeasurementData.arrayLen ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ if(errn == 0) {
+ /* First(xsi:type)StartTag[CHARACTERS[UNSIGNED_INTEGER]] */
+ errn = encodeNBitUnsignedInteger(stream, 1, 0);
+ if(errn == 0) {
+ errn = encodeUnsignedInteger16(stream, iso2MeasurementDataListType->MeasurementData.array[iso2MeasurementDataListType_MeasurementData_currArrayIndex++]);
+ /* valid EE */
+ errn = encodeNBitUnsignedInteger(stream, 1, 0);
+ }
+ }
+ grammarID = 1298;
+ } else if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 1298:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MeasurementData), END_ELEMENT] */
+ if (iso2MeasurementDataListType_MeasurementData_currArrayIndex < iso2MeasurementDataListType->MeasurementData.arrayLen ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ if(errn == 0) {
+ /* First(xsi:type)StartTag[CHARACTERS[UNSIGNED_INTEGER]] */
+ errn = encodeNBitUnsignedInteger(stream, 1, 0);
+ if(errn == 0) {
+ errn = encodeUnsignedInteger16(stream, iso2MeasurementDataListType->MeasurementData.array[iso2MeasurementDataListType_MeasurementData_currArrayIndex++]);
+ /* valid EE */
+ errn = encodeNBitUnsignedInteger(stream, 1, 0);
+ }
+ }
+ grammarID = 1299;
+ } else if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 1299:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MeasurementData), END_ELEMENT] */
+ if (iso2MeasurementDataListType_MeasurementData_currArrayIndex < iso2MeasurementDataListType->MeasurementData.arrayLen ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ if(errn == 0) {
+ /* First(xsi:type)StartTag[CHARACTERS[UNSIGNED_INTEGER]] */
+ errn = encodeNBitUnsignedInteger(stream, 1, 0);
+ if(errn == 0) {
+ errn = encodeUnsignedInteger16(stream, iso2MeasurementDataListType->MeasurementData.array[iso2MeasurementDataListType_MeasurementData_currArrayIndex++]);
+ /* valid EE */
+ errn = encodeNBitUnsignedInteger(stream, 1, 0);
+ }
+ }
+ grammarID = 1300;
+ } else if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 1300:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MeasurementData), END_ELEMENT] */
+ if (iso2MeasurementDataListType_MeasurementData_currArrayIndex < iso2MeasurementDataListType->MeasurementData.arrayLen ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ if(errn == 0) {
+ /* First(xsi:type)StartTag[CHARACTERS[UNSIGNED_INTEGER]] */
+ errn = encodeNBitUnsignedInteger(stream, 1, 0);
+ if(errn == 0) {
+ errn = encodeUnsignedInteger16(stream, iso2MeasurementDataListType->MeasurementData.array[iso2MeasurementDataListType_MeasurementData_currArrayIndex++]);
+ /* valid EE */
+ errn = encodeNBitUnsignedInteger(stream, 1, 0);
+ }
+ }
+ grammarID = 1301;
+ } else if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 1301:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MeasurementData), END_ELEMENT] */
+ if (iso2MeasurementDataListType_MeasurementData_currArrayIndex < iso2MeasurementDataListType->MeasurementData.arrayLen ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ if(errn == 0) {
+ /* First(xsi:type)StartTag[CHARACTERS[UNSIGNED_INTEGER]] */
+ errn = encodeNBitUnsignedInteger(stream, 1, 0);
+ if(errn == 0) {
+ errn = encodeUnsignedInteger16(stream, iso2MeasurementDataListType->MeasurementData.array[iso2MeasurementDataListType_MeasurementData_currArrayIndex++]);
+ /* valid EE */
+ errn = encodeNBitUnsignedInteger(stream, 1, 0);
+ }
+ }
+ grammarID = 1302;
+ } else if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 1302:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MeasurementData), END_ELEMENT] */
+ if (iso2MeasurementDataListType_MeasurementData_currArrayIndex < iso2MeasurementDataListType->MeasurementData.arrayLen ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ if(errn == 0) {
+ /* First(xsi:type)StartTag[CHARACTERS[UNSIGNED_INTEGER]] */
+ errn = encodeNBitUnsignedInteger(stream, 1, 0);
+ if(errn == 0) {
+ errn = encodeUnsignedInteger16(stream, iso2MeasurementDataListType->MeasurementData.array[iso2MeasurementDataListType_MeasurementData_currArrayIndex++]);
+ /* valid EE */
+ errn = encodeNBitUnsignedInteger(stream, 1, 0);
+ }
+ }
+ grammarID = 1303;
+ } else if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 1303:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MeasurementData), END_ELEMENT] */
+ if (iso2MeasurementDataListType_MeasurementData_currArrayIndex < iso2MeasurementDataListType->MeasurementData.arrayLen ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ if(errn == 0) {
+ /* First(xsi:type)StartTag[CHARACTERS[UNSIGNED_INTEGER]] */
+ errn = encodeNBitUnsignedInteger(stream, 1, 0);
+ if(errn == 0) {
+ errn = encodeUnsignedInteger16(stream, iso2MeasurementDataListType->MeasurementData.array[iso2MeasurementDataListType_MeasurementData_currArrayIndex++]);
+ /* valid EE */
+ errn = encodeNBitUnsignedInteger(stream, 1, 0);
+ }
+ }
+ grammarID = 1304;
+ } else if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 1304:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MeasurementData), END_ELEMENT] */
+ if (iso2MeasurementDataListType_MeasurementData_currArrayIndex < iso2MeasurementDataListType->MeasurementData.arrayLen ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ if(errn == 0) {
+ /* First(xsi:type)StartTag[CHARACTERS[UNSIGNED_INTEGER]] */
+ errn = encodeNBitUnsignedInteger(stream, 1, 0);
+ if(errn == 0) {
+ errn = encodeUnsignedInteger16(stream, iso2MeasurementDataListType->MeasurementData.array[iso2MeasurementDataListType_MeasurementData_currArrayIndex++]);
+ /* valid EE */
+ errn = encodeNBitUnsignedInteger(stream, 1, 0);
+ }
+ }
+ grammarID = 1305;
+ } else if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 1305:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MeasurementData), END_ELEMENT] */
+ if (iso2MeasurementDataListType_MeasurementData_currArrayIndex < iso2MeasurementDataListType->MeasurementData.arrayLen ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ if(errn == 0) {
+ /* First(xsi:type)StartTag[CHARACTERS[UNSIGNED_INTEGER]] */
+ errn = encodeNBitUnsignedInteger(stream, 1, 0);
+ if(errn == 0) {
+ errn = encodeUnsignedInteger16(stream, iso2MeasurementDataListType->MeasurementData.array[iso2MeasurementDataListType_MeasurementData_currArrayIndex++]);
+ /* valid EE */
+ errn = encodeNBitUnsignedInteger(stream, 1, 0);
+ }
+ }
+ grammarID = 1306;
+ } else if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 1306:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MeasurementData), END_ELEMENT] */
+ if (iso2MeasurementDataListType_MeasurementData_currArrayIndex < iso2MeasurementDataListType->MeasurementData.arrayLen ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ if(errn == 0) {
+ /* First(xsi:type)StartTag[CHARACTERS[UNSIGNED_INTEGER]] */
+ errn = encodeNBitUnsignedInteger(stream, 1, 0);
+ if(errn == 0) {
+ errn = encodeUnsignedInteger16(stream, iso2MeasurementDataListType->MeasurementData.array[iso2MeasurementDataListType_MeasurementData_currArrayIndex++]);
+ /* valid EE */
+ errn = encodeNBitUnsignedInteger(stream, 1, 0);
+ }
+ }
+ grammarID = 1307;
+ } else if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 1307:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MeasurementData), END_ELEMENT] */
+ if (iso2MeasurementDataListType_MeasurementData_currArrayIndex < iso2MeasurementDataListType->MeasurementData.arrayLen ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ if(errn == 0) {
+ /* First(xsi:type)StartTag[CHARACTERS[UNSIGNED_INTEGER]] */
+ errn = encodeNBitUnsignedInteger(stream, 1, 0);
+ if(errn == 0) {
+ errn = encodeUnsignedInteger16(stream, iso2MeasurementDataListType->MeasurementData.array[iso2MeasurementDataListType_MeasurementData_currArrayIndex++]);
+ /* valid EE */
+ errn = encodeNBitUnsignedInteger(stream, 1, 0);
+ }
+ }
+ grammarID = 1308;
+ } else if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 1308:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MeasurementData), END_ELEMENT] */
+ if (iso2MeasurementDataListType_MeasurementData_currArrayIndex < iso2MeasurementDataListType->MeasurementData.arrayLen ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ if(errn == 0) {
+ /* First(xsi:type)StartTag[CHARACTERS[UNSIGNED_INTEGER]] */
+ errn = encodeNBitUnsignedInteger(stream, 1, 0);
+ if(errn == 0) {
+ errn = encodeUnsignedInteger16(stream, iso2MeasurementDataListType->MeasurementData.array[iso2MeasurementDataListType_MeasurementData_currArrayIndex++]);
+ /* valid EE */
+ errn = encodeNBitUnsignedInteger(stream, 1, 0);
+ }
+ }
+ grammarID = 1309;
+ } else if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 1309:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MeasurementData), END_ELEMENT] */
+ if (iso2MeasurementDataListType_MeasurementData_currArrayIndex < iso2MeasurementDataListType->MeasurementData.arrayLen ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ if(errn == 0) {
+ /* First(xsi:type)StartTag[CHARACTERS[UNSIGNED_INTEGER]] */
+ errn = encodeNBitUnsignedInteger(stream, 1, 0);
+ if(errn == 0) {
+ errn = encodeUnsignedInteger16(stream, iso2MeasurementDataListType->MeasurementData.array[iso2MeasurementDataListType_MeasurementData_currArrayIndex++]);
+ /* valid EE */
+ errn = encodeNBitUnsignedInteger(stream, 1, 0);
+ }
+ }
+ grammarID = 1310;
+ } else if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 1310:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MeasurementData), END_ELEMENT] */
+ if (iso2MeasurementDataListType_MeasurementData_currArrayIndex < iso2MeasurementDataListType->MeasurementData.arrayLen ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ if(errn == 0) {
+ /* First(xsi:type)StartTag[CHARACTERS[UNSIGNED_INTEGER]] */
+ errn = encodeNBitUnsignedInteger(stream, 1, 0);
+ if(errn == 0) {
+ errn = encodeUnsignedInteger16(stream, iso2MeasurementDataListType->MeasurementData.array[iso2MeasurementDataListType_MeasurementData_currArrayIndex++]);
+ /* valid EE */
+ errn = encodeNBitUnsignedInteger(stream, 1, 0);
+ }
+ }
+ grammarID = 1311;
+ } else if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 1311:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MeasurementData), END_ELEMENT] */
+ if (iso2MeasurementDataListType_MeasurementData_currArrayIndex < iso2MeasurementDataListType->MeasurementData.arrayLen ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ if(errn == 0) {
+ /* First(xsi:type)StartTag[CHARACTERS[UNSIGNED_INTEGER]] */
+ errn = encodeNBitUnsignedInteger(stream, 1, 0);
+ if(errn == 0) {
+ errn = encodeUnsignedInteger16(stream, iso2MeasurementDataListType->MeasurementData.array[iso2MeasurementDataListType_MeasurementData_currArrayIndex++]);
+ /* valid EE */
+ errn = encodeNBitUnsignedInteger(stream, 1, 0);
+ }
+ }
+ grammarID = 1312;
+ } else if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 1312:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MeasurementData), END_ELEMENT] */
+ if (iso2MeasurementDataListType_MeasurementData_currArrayIndex < iso2MeasurementDataListType->MeasurementData.arrayLen ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ if(errn == 0) {
+ /* First(xsi:type)StartTag[CHARACTERS[UNSIGNED_INTEGER]] */
+ errn = encodeNBitUnsignedInteger(stream, 1, 0);
+ if(errn == 0) {
+ errn = encodeUnsignedInteger16(stream, iso2MeasurementDataListType->MeasurementData.array[iso2MeasurementDataListType_MeasurementData_currArrayIndex++]);
+ /* valid EE */
+ errn = encodeNBitUnsignedInteger(stream, 1, 0);
+ }
+ }
+ grammarID = 1313;
+ } else if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 1313:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MeasurementData), END_ELEMENT] */
+ if (iso2MeasurementDataListType_MeasurementData_currArrayIndex < iso2MeasurementDataListType->MeasurementData.arrayLen ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ if(errn == 0) {
+ /* First(xsi:type)StartTag[CHARACTERS[UNSIGNED_INTEGER]] */
+ errn = encodeNBitUnsignedInteger(stream, 1, 0);
+ if(errn == 0) {
+ errn = encodeUnsignedInteger16(stream, iso2MeasurementDataListType->MeasurementData.array[iso2MeasurementDataListType_MeasurementData_currArrayIndex++]);
+ /* valid EE */
+ errn = encodeNBitUnsignedInteger(stream, 1, 0);
+ }
+ }
+ grammarID = 1314;
+ } else if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 1314:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MeasurementData), END_ELEMENT] */
+ if (iso2MeasurementDataListType_MeasurementData_currArrayIndex < iso2MeasurementDataListType->MeasurementData.arrayLen ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ if(errn == 0) {
+ /* First(xsi:type)StartTag[CHARACTERS[UNSIGNED_INTEGER]] */
+ errn = encodeNBitUnsignedInteger(stream, 1, 0);
+ if(errn == 0) {
+ errn = encodeUnsignedInteger16(stream, iso2MeasurementDataListType->MeasurementData.array[iso2MeasurementDataListType_MeasurementData_currArrayIndex++]);
+ /* valid EE */
+ errn = encodeNBitUnsignedInteger(stream, 1, 0);
+ }
+ }
+ grammarID = 1315;
+ } else if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 1315:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MeasurementData), END_ELEMENT] */
+ if (iso2MeasurementDataListType_MeasurementData_currArrayIndex < iso2MeasurementDataListType->MeasurementData.arrayLen ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ if(errn == 0) {
+ /* First(xsi:type)StartTag[CHARACTERS[UNSIGNED_INTEGER]] */
+ errn = encodeNBitUnsignedInteger(stream, 1, 0);
+ if(errn == 0) {
+ errn = encodeUnsignedInteger16(stream, iso2MeasurementDataListType->MeasurementData.array[iso2MeasurementDataListType_MeasurementData_currArrayIndex++]);
+ /* valid EE */
+ errn = encodeNBitUnsignedInteger(stream, 1, 0);
+ }
+ }
+ grammarID = 1316;
+ } else if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 1316:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MeasurementData), END_ELEMENT] */
+ if (iso2MeasurementDataListType_MeasurementData_currArrayIndex < iso2MeasurementDataListType->MeasurementData.arrayLen ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ if(errn == 0) {
+ /* First(xsi:type)StartTag[CHARACTERS[UNSIGNED_INTEGER]] */
+ errn = encodeNBitUnsignedInteger(stream, 1, 0);
+ if(errn == 0) {
+ errn = encodeUnsignedInteger16(stream, iso2MeasurementDataListType->MeasurementData.array[iso2MeasurementDataListType_MeasurementData_currArrayIndex++]);
+ /* valid EE */
+ errn = encodeNBitUnsignedInteger(stream, 1, 0);
+ }
+ }
+ grammarID = 1317;
+ } else if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 1317:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MeasurementData), END_ELEMENT] */
+ if (iso2MeasurementDataListType_MeasurementData_currArrayIndex < iso2MeasurementDataListType->MeasurementData.arrayLen ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ if(errn == 0) {
+ /* First(xsi:type)StartTag[CHARACTERS[UNSIGNED_INTEGER]] */
+ errn = encodeNBitUnsignedInteger(stream, 1, 0);
+ if(errn == 0) {
+ errn = encodeUnsignedInteger16(stream, iso2MeasurementDataListType->MeasurementData.array[iso2MeasurementDataListType_MeasurementData_currArrayIndex++]);
+ /* valid EE */
+ errn = encodeNBitUnsignedInteger(stream, 1, 0);
+ }
+ }
+ grammarID = 1318;
+ } else if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 1318:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MeasurementData), END_ELEMENT] */
+ if (iso2MeasurementDataListType_MeasurementData_currArrayIndex < iso2MeasurementDataListType->MeasurementData.arrayLen ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ if(errn == 0) {
+ /* First(xsi:type)StartTag[CHARACTERS[UNSIGNED_INTEGER]] */
+ errn = encodeNBitUnsignedInteger(stream, 1, 0);
+ if(errn == 0) {
+ errn = encodeUnsignedInteger16(stream, iso2MeasurementDataListType->MeasurementData.array[iso2MeasurementDataListType_MeasurementData_currArrayIndex++]);
+ /* valid EE */
+ errn = encodeNBitUnsignedInteger(stream, 1, 0);
+ }
+ }
+ grammarID = 1319;
+ } else if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 1319:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MeasurementData), END_ELEMENT] */
+ if (iso2MeasurementDataListType_MeasurementData_currArrayIndex < iso2MeasurementDataListType->MeasurementData.arrayLen ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ if(errn == 0) {
+ /* First(xsi:type)StartTag[CHARACTERS[UNSIGNED_INTEGER]] */
+ errn = encodeNBitUnsignedInteger(stream, 1, 0);
+ if(errn == 0) {
+ errn = encodeUnsignedInteger16(stream, iso2MeasurementDataListType->MeasurementData.array[iso2MeasurementDataListType_MeasurementData_currArrayIndex++]);
+ /* valid EE */
+ errn = encodeNBitUnsignedInteger(stream, 1, 0);
+ }
+ }
+ grammarID = 1320;
+ } else if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 1320:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MeasurementData), END_ELEMENT] */
+ if (iso2MeasurementDataListType_MeasurementData_currArrayIndex < iso2MeasurementDataListType->MeasurementData.arrayLen ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ if(errn == 0) {
+ /* First(xsi:type)StartTag[CHARACTERS[UNSIGNED_INTEGER]] */
+ errn = encodeNBitUnsignedInteger(stream, 1, 0);
+ if(errn == 0) {
+ errn = encodeUnsignedInteger16(stream, iso2MeasurementDataListType->MeasurementData.array[iso2MeasurementDataListType_MeasurementData_currArrayIndex++]);
+ /* valid EE */
+ errn = encodeNBitUnsignedInteger(stream, 1, 0);
+ }
+ }
+ grammarID = 1321;
+ } else if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 1321:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MeasurementData), END_ELEMENT] */
+ if (iso2MeasurementDataListType_MeasurementData_currArrayIndex < iso2MeasurementDataListType->MeasurementData.arrayLen ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ if(errn == 0) {
+ /* First(xsi:type)StartTag[CHARACTERS[UNSIGNED_INTEGER]] */
+ errn = encodeNBitUnsignedInteger(stream, 1, 0);
+ if(errn == 0) {
+ errn = encodeUnsignedInteger16(stream, iso2MeasurementDataListType->MeasurementData.array[iso2MeasurementDataListType_MeasurementData_currArrayIndex++]);
+ /* valid EE */
+ errn = encodeNBitUnsignedInteger(stream, 1, 0);
+ }
+ }
+ grammarID = 1322;
+ } else if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 1322:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MeasurementData), END_ELEMENT] */
+ if (iso2MeasurementDataListType_MeasurementData_currArrayIndex < iso2MeasurementDataListType->MeasurementData.arrayLen ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ if(errn == 0) {
+ /* First(xsi:type)StartTag[CHARACTERS[UNSIGNED_INTEGER]] */
+ errn = encodeNBitUnsignedInteger(stream, 1, 0);
+ if(errn == 0) {
+ errn = encodeUnsignedInteger16(stream, iso2MeasurementDataListType->MeasurementData.array[iso2MeasurementDataListType_MeasurementData_currArrayIndex++]);
+ /* valid EE */
+ errn = encodeNBitUnsignedInteger(stream, 1, 0);
+ }
+ }
+ grammarID = 1323;
+ } else if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 1323:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MeasurementData), END_ELEMENT] */
+ if (iso2MeasurementDataListType_MeasurementData_currArrayIndex < iso2MeasurementDataListType->MeasurementData.arrayLen ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ if(errn == 0) {
+ /* First(xsi:type)StartTag[CHARACTERS[UNSIGNED_INTEGER]] */
+ errn = encodeNBitUnsignedInteger(stream, 1, 0);
+ if(errn == 0) {
+ errn = encodeUnsignedInteger16(stream, iso2MeasurementDataListType->MeasurementData.array[iso2MeasurementDataListType_MeasurementData_currArrayIndex++]);
+ /* valid EE */
+ errn = encodeNBitUnsignedInteger(stream, 1, 0);
+ }
+ }
+ grammarID = 1324;
+ } else if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 1324:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MeasurementData), END_ELEMENT] */
+ if (iso2MeasurementDataListType_MeasurementData_currArrayIndex < iso2MeasurementDataListType->MeasurementData.arrayLen ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ if(errn == 0) {
+ /* First(xsi:type)StartTag[CHARACTERS[UNSIGNED_INTEGER]] */
+ errn = encodeNBitUnsignedInteger(stream, 1, 0);
+ if(errn == 0) {
+ errn = encodeUnsignedInteger16(stream, iso2MeasurementDataListType->MeasurementData.array[iso2MeasurementDataListType_MeasurementData_currArrayIndex++]);
+ /* valid EE */
+ errn = encodeNBitUnsignedInteger(stream, 1, 0);
+ }
+ }
+ grammarID = 1325;
+ } else if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 1325:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MeasurementData), END_ELEMENT] */
+ if (iso2MeasurementDataListType_MeasurementData_currArrayIndex < iso2MeasurementDataListType->MeasurementData.arrayLen ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ if(errn == 0) {
+ /* First(xsi:type)StartTag[CHARACTERS[UNSIGNED_INTEGER]] */
+ errn = encodeNBitUnsignedInteger(stream, 1, 0);
+ if(errn == 0) {
+ errn = encodeUnsignedInteger16(stream, iso2MeasurementDataListType->MeasurementData.array[iso2MeasurementDataListType_MeasurementData_currArrayIndex++]);
+ /* valid EE */
+ errn = encodeNBitUnsignedInteger(stream, 1, 0);
+ }
+ }
+ grammarID = 1326;
+ } else if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 1326:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MeasurementData), END_ELEMENT] */
+ if (iso2MeasurementDataListType_MeasurementData_currArrayIndex < iso2MeasurementDataListType->MeasurementData.arrayLen ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ if(errn == 0) {
+ /* First(xsi:type)StartTag[CHARACTERS[UNSIGNED_INTEGER]] */
+ errn = encodeNBitUnsignedInteger(stream, 1, 0);
+ if(errn == 0) {
+ errn = encodeUnsignedInteger16(stream, iso2MeasurementDataListType->MeasurementData.array[iso2MeasurementDataListType_MeasurementData_currArrayIndex++]);
+ /* valid EE */
+ errn = encodeNBitUnsignedInteger(stream, 1, 0);
+ }
+ }
+ grammarID = 1327;
+ } else if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 1327:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MeasurementData), END_ELEMENT] */
+ if (iso2MeasurementDataListType_MeasurementData_currArrayIndex < iso2MeasurementDataListType->MeasurementData.arrayLen ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ if(errn == 0) {
+ /* First(xsi:type)StartTag[CHARACTERS[UNSIGNED_INTEGER]] */
+ errn = encodeNBitUnsignedInteger(stream, 1, 0);
+ if(errn == 0) {
+ errn = encodeUnsignedInteger16(stream, iso2MeasurementDataListType->MeasurementData.array[iso2MeasurementDataListType_MeasurementData_currArrayIndex++]);
+ /* valid EE */
+ errn = encodeNBitUnsignedInteger(stream, 1, 0);
+ }
+ }
+ grammarID = 1328;
+ } else if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 1328:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MeasurementData), END_ELEMENT] */
+ if (iso2MeasurementDataListType_MeasurementData_currArrayIndex < iso2MeasurementDataListType->MeasurementData.arrayLen ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ if(errn == 0) {
+ /* First(xsi:type)StartTag[CHARACTERS[UNSIGNED_INTEGER]] */
+ errn = encodeNBitUnsignedInteger(stream, 1, 0);
+ if(errn == 0) {
+ errn = encodeUnsignedInteger16(stream, iso2MeasurementDataListType->MeasurementData.array[iso2MeasurementDataListType_MeasurementData_currArrayIndex++]);
+ /* valid EE */
+ errn = encodeNBitUnsignedInteger(stream, 1, 0);
+ }
+ }
+ grammarID = 1329;
+ } else if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 1329:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MeasurementData), END_ELEMENT] */
+ if (iso2MeasurementDataListType_MeasurementData_currArrayIndex < iso2MeasurementDataListType->MeasurementData.arrayLen ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ if(errn == 0) {
+ /* First(xsi:type)StartTag[CHARACTERS[UNSIGNED_INTEGER]] */
+ errn = encodeNBitUnsignedInteger(stream, 1, 0);
+ if(errn == 0) {
+ errn = encodeUnsignedInteger16(stream, iso2MeasurementDataListType->MeasurementData.array[iso2MeasurementDataListType_MeasurementData_currArrayIndex++]);
+ /* valid EE */
+ errn = encodeNBitUnsignedInteger(stream, 1, 0);
+ }
+ }
+ grammarID = 1330;
+ } else if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 1330:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MeasurementData), END_ELEMENT] */
+ if (iso2MeasurementDataListType_MeasurementData_currArrayIndex < iso2MeasurementDataListType->MeasurementData.arrayLen ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ if(errn == 0) {
+ /* First(xsi:type)StartTag[CHARACTERS[UNSIGNED_INTEGER]] */
+ errn = encodeNBitUnsignedInteger(stream, 1, 0);
+ if(errn == 0) {
+ errn = encodeUnsignedInteger16(stream, iso2MeasurementDataListType->MeasurementData.array[iso2MeasurementDataListType_MeasurementData_currArrayIndex++]);
+ /* valid EE */
+ errn = encodeNBitUnsignedInteger(stream, 1, 0);
+ }
+ }
+ grammarID = 1331;
+ } else if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 1331:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MeasurementData), END_ELEMENT] */
+ if (iso2MeasurementDataListType_MeasurementData_currArrayIndex < iso2MeasurementDataListType->MeasurementData.arrayLen ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ if(errn == 0) {
+ /* First(xsi:type)StartTag[CHARACTERS[UNSIGNED_INTEGER]] */
+ errn = encodeNBitUnsignedInteger(stream, 1, 0);
+ if(errn == 0) {
+ errn = encodeUnsignedInteger16(stream, iso2MeasurementDataListType->MeasurementData.array[iso2MeasurementDataListType_MeasurementData_currArrayIndex++]);
+ /* valid EE */
+ errn = encodeNBitUnsignedInteger(stream, 1, 0);
+ }
+ }
+ grammarID = 1332;
+ } else if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 1332:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MeasurementData), END_ELEMENT] */
+ if (iso2MeasurementDataListType_MeasurementData_currArrayIndex < iso2MeasurementDataListType->MeasurementData.arrayLen ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ if(errn == 0) {
+ /* First(xsi:type)StartTag[CHARACTERS[UNSIGNED_INTEGER]] */
+ errn = encodeNBitUnsignedInteger(stream, 1, 0);
+ if(errn == 0) {
+ errn = encodeUnsignedInteger16(stream, iso2MeasurementDataListType->MeasurementData.array[iso2MeasurementDataListType_MeasurementData_currArrayIndex++]);
+ /* valid EE */
+ errn = encodeNBitUnsignedInteger(stream, 1, 0);
+ }
+ }
+ grammarID = 1333;
+ } else if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 1333:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MeasurementData), END_ELEMENT] */
+ if (iso2MeasurementDataListType_MeasurementData_currArrayIndex < iso2MeasurementDataListType->MeasurementData.arrayLen ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ if(errn == 0) {
+ /* First(xsi:type)StartTag[CHARACTERS[UNSIGNED_INTEGER]] */
+ errn = encodeNBitUnsignedInteger(stream, 1, 0);
+ if(errn == 0) {
+ errn = encodeUnsignedInteger16(stream, iso2MeasurementDataListType->MeasurementData.array[iso2MeasurementDataListType_MeasurementData_currArrayIndex++]);
+ /* valid EE */
+ errn = encodeNBitUnsignedInteger(stream, 1, 0);
+ }
+ }
+ grammarID = 1334;
+ } else if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 1334:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MeasurementData), END_ELEMENT] */
+ if (iso2MeasurementDataListType_MeasurementData_currArrayIndex < iso2MeasurementDataListType->MeasurementData.arrayLen ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ if(errn == 0) {
+ /* First(xsi:type)StartTag[CHARACTERS[UNSIGNED_INTEGER]] */
+ errn = encodeNBitUnsignedInteger(stream, 1, 0);
+ if(errn == 0) {
+ errn = encodeUnsignedInteger16(stream, iso2MeasurementDataListType->MeasurementData.array[iso2MeasurementDataListType_MeasurementData_currArrayIndex++]);
+ /* valid EE */
+ errn = encodeNBitUnsignedInteger(stream, 1, 0);
+ }
+ }
+ grammarID = 1335;
+ } else if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 1335:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MeasurementData), END_ELEMENT] */
+ if (iso2MeasurementDataListType_MeasurementData_currArrayIndex < iso2MeasurementDataListType->MeasurementData.arrayLen ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ if(errn == 0) {
+ /* First(xsi:type)StartTag[CHARACTERS[UNSIGNED_INTEGER]] */
+ errn = encodeNBitUnsignedInteger(stream, 1, 0);
+ if(errn == 0) {
+ errn = encodeUnsignedInteger16(stream, iso2MeasurementDataListType->MeasurementData.array[iso2MeasurementDataListType_MeasurementData_currArrayIndex++]);
+ /* valid EE */
+ errn = encodeNBitUnsignedInteger(stream, 1, 0);
+ }
+ }
+ grammarID = 1336;
+ } else if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 1336:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MeasurementData), END_ELEMENT] */
+ if (iso2MeasurementDataListType_MeasurementData_currArrayIndex < iso2MeasurementDataListType->MeasurementData.arrayLen ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ if(errn == 0) {
+ /* First(xsi:type)StartTag[CHARACTERS[UNSIGNED_INTEGER]] */
+ errn = encodeNBitUnsignedInteger(stream, 1, 0);
+ if(errn == 0) {
+ errn = encodeUnsignedInteger16(stream, iso2MeasurementDataListType->MeasurementData.array[iso2MeasurementDataListType_MeasurementData_currArrayIndex++]);
+ /* valid EE */
+ errn = encodeNBitUnsignedInteger(stream, 1, 0);
+ }
+ }
+ grammarID = 1337;
+ } else if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 1337:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MeasurementData), END_ELEMENT] */
+ if (iso2MeasurementDataListType_MeasurementData_currArrayIndex < iso2MeasurementDataListType->MeasurementData.arrayLen ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ if(errn == 0) {
+ /* First(xsi:type)StartTag[CHARACTERS[UNSIGNED_INTEGER]] */
+ errn = encodeNBitUnsignedInteger(stream, 1, 0);
+ if(errn == 0) {
+ errn = encodeUnsignedInteger16(stream, iso2MeasurementDataListType->MeasurementData.array[iso2MeasurementDataListType_MeasurementData_currArrayIndex++]);
+ /* valid EE */
+ errn = encodeNBitUnsignedInteger(stream, 1, 0);
+ }
+ }
+ grammarID = 1338;
+ } else if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 1338:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MeasurementData), END_ELEMENT] */
+ if (iso2MeasurementDataListType_MeasurementData_currArrayIndex < iso2MeasurementDataListType->MeasurementData.arrayLen ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ if(errn == 0) {
+ /* First(xsi:type)StartTag[CHARACTERS[UNSIGNED_INTEGER]] */
+ errn = encodeNBitUnsignedInteger(stream, 1, 0);
+ if(errn == 0) {
+ errn = encodeUnsignedInteger16(stream, iso2MeasurementDataListType->MeasurementData.array[iso2MeasurementDataListType_MeasurementData_currArrayIndex++]);
+ /* valid EE */
+ errn = encodeNBitUnsignedInteger(stream, 1, 0);
+ }
+ }
+ grammarID = 1339;
+ } else if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 1339:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MeasurementData), END_ELEMENT] */
+ if (iso2MeasurementDataListType_MeasurementData_currArrayIndex < iso2MeasurementDataListType->MeasurementData.arrayLen ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ if(errn == 0) {
+ /* First(xsi:type)StartTag[CHARACTERS[UNSIGNED_INTEGER]] */
+ errn = encodeNBitUnsignedInteger(stream, 1, 0);
+ if(errn == 0) {
+ errn = encodeUnsignedInteger16(stream, iso2MeasurementDataListType->MeasurementData.array[iso2MeasurementDataListType_MeasurementData_currArrayIndex++]);
+ /* valid EE */
+ errn = encodeNBitUnsignedInteger(stream, 1, 0);
+ }
+ }
+ grammarID = 1340;
+ } else if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 1340:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MeasurementData), END_ELEMENT] */
+ if (iso2MeasurementDataListType_MeasurementData_currArrayIndex < iso2MeasurementDataListType->MeasurementData.arrayLen ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ if(errn == 0) {
+ /* First(xsi:type)StartTag[CHARACTERS[UNSIGNED_INTEGER]] */
+ errn = encodeNBitUnsignedInteger(stream, 1, 0);
+ if(errn == 0) {
+ errn = encodeUnsignedInteger16(stream, iso2MeasurementDataListType->MeasurementData.array[iso2MeasurementDataListType_MeasurementData_currArrayIndex++]);
+ /* valid EE */
+ errn = encodeNBitUnsignedInteger(stream, 1, 0);
+ }
+ }
+ grammarID = 1341;
+ } else if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 1341:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MeasurementData), END_ELEMENT] */
+ if (iso2MeasurementDataListType_MeasurementData_currArrayIndex < iso2MeasurementDataListType->MeasurementData.arrayLen ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ if(errn == 0) {
+ /* First(xsi:type)StartTag[CHARACTERS[UNSIGNED_INTEGER]] */
+ errn = encodeNBitUnsignedInteger(stream, 1, 0);
+ if(errn == 0) {
+ errn = encodeUnsignedInteger16(stream, iso2MeasurementDataListType->MeasurementData.array[iso2MeasurementDataListType_MeasurementData_currArrayIndex++]);
+ /* valid EE */
+ errn = encodeNBitUnsignedInteger(stream, 1, 0);
+ }
+ }
+ grammarID = 1342;
+ } else if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 1342:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MeasurementData), END_ELEMENT] */
+ if (iso2MeasurementDataListType_MeasurementData_currArrayIndex < iso2MeasurementDataListType->MeasurementData.arrayLen ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ if(errn == 0) {
+ /* First(xsi:type)StartTag[CHARACTERS[UNSIGNED_INTEGER]] */
+ errn = encodeNBitUnsignedInteger(stream, 1, 0);
+ if(errn == 0) {
+ errn = encodeUnsignedInteger16(stream, iso2MeasurementDataListType->MeasurementData.array[iso2MeasurementDataListType_MeasurementData_currArrayIndex++]);
+ /* valid EE */
+ errn = encodeNBitUnsignedInteger(stream, 1, 0);
+ }
+ }
+ grammarID = 1343;
+ } else if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 1343:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MeasurementData), END_ELEMENT] */
+ if (iso2MeasurementDataListType_MeasurementData_currArrayIndex < iso2MeasurementDataListType->MeasurementData.arrayLen ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ if(errn == 0) {
+ /* First(xsi:type)StartTag[CHARACTERS[UNSIGNED_INTEGER]] */
+ errn = encodeNBitUnsignedInteger(stream, 1, 0);
+ if(errn == 0) {
+ errn = encodeUnsignedInteger16(stream, iso2MeasurementDataListType->MeasurementData.array[iso2MeasurementDataListType_MeasurementData_currArrayIndex++]);
+ /* valid EE */
+ errn = encodeNBitUnsignedInteger(stream, 1, 0);
+ }
+ }
+ grammarID = 1344;
+ } else if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 1344:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MeasurementData), END_ELEMENT] */
+ if (iso2MeasurementDataListType_MeasurementData_currArrayIndex < iso2MeasurementDataListType->MeasurementData.arrayLen ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ if(errn == 0) {
+ /* First(xsi:type)StartTag[CHARACTERS[UNSIGNED_INTEGER]] */
+ errn = encodeNBitUnsignedInteger(stream, 1, 0);
+ if(errn == 0) {
+ errn = encodeUnsignedInteger16(stream, iso2MeasurementDataListType->MeasurementData.array[iso2MeasurementDataListType_MeasurementData_currArrayIndex++]);
+ /* valid EE */
+ errn = encodeNBitUnsignedInteger(stream, 1, 0);
+ }
+ }
+ grammarID = 1345;
+ } else if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 1345:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MeasurementData), END_ELEMENT] */
+ if (iso2MeasurementDataListType_MeasurementData_currArrayIndex < iso2MeasurementDataListType->MeasurementData.arrayLen ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ if(errn == 0) {
+ /* First(xsi:type)StartTag[CHARACTERS[UNSIGNED_INTEGER]] */
+ errn = encodeNBitUnsignedInteger(stream, 1, 0);
+ if(errn == 0) {
+ errn = encodeUnsignedInteger16(stream, iso2MeasurementDataListType->MeasurementData.array[iso2MeasurementDataListType_MeasurementData_currArrayIndex++]);
+ /* valid EE */
+ errn = encodeNBitUnsignedInteger(stream, 1, 0);
+ }
+ }
+ grammarID = 1346;
+ } else if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 1346:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MeasurementData), END_ELEMENT] */
+ if (iso2MeasurementDataListType_MeasurementData_currArrayIndex < iso2MeasurementDataListType->MeasurementData.arrayLen ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ if(errn == 0) {
+ /* First(xsi:type)StartTag[CHARACTERS[UNSIGNED_INTEGER]] */
+ errn = encodeNBitUnsignedInteger(stream, 1, 0);
+ if(errn == 0) {
+ errn = encodeUnsignedInteger16(stream, iso2MeasurementDataListType->MeasurementData.array[iso2MeasurementDataListType_MeasurementData_currArrayIndex++]);
+ /* valid EE */
+ errn = encodeNBitUnsignedInteger(stream, 1, 0);
+ }
+ }
+ grammarID = 1347;
+ } else if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 1347:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MeasurementData), END_ELEMENT] */
+ if (iso2MeasurementDataListType_MeasurementData_currArrayIndex < iso2MeasurementDataListType->MeasurementData.arrayLen ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ if(errn == 0) {
+ /* First(xsi:type)StartTag[CHARACTERS[UNSIGNED_INTEGER]] */
+ errn = encodeNBitUnsignedInteger(stream, 1, 0);
+ if(errn == 0) {
+ errn = encodeUnsignedInteger16(stream, iso2MeasurementDataListType->MeasurementData.array[iso2MeasurementDataListType_MeasurementData_currArrayIndex++]);
+ /* valid EE */
+ errn = encodeNBitUnsignedInteger(stream, 1, 0);
+ }
+ }
+ grammarID = 1348;
+ } else if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 1348:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MeasurementData), END_ELEMENT] */
+ if (iso2MeasurementDataListType_MeasurementData_currArrayIndex < iso2MeasurementDataListType->MeasurementData.arrayLen ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ if(errn == 0) {
+ /* First(xsi:type)StartTag[CHARACTERS[UNSIGNED_INTEGER]] */
+ errn = encodeNBitUnsignedInteger(stream, 1, 0);
+ if(errn == 0) {
+ errn = encodeUnsignedInteger16(stream, iso2MeasurementDataListType->MeasurementData.array[iso2MeasurementDataListType_MeasurementData_currArrayIndex++]);
+ /* valid EE */
+ errn = encodeNBitUnsignedInteger(stream, 1, 0);
+ }
+ }
+ grammarID = 1349;
+ } else if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 1349:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MeasurementData), END_ELEMENT] */
+ if (iso2MeasurementDataListType_MeasurementData_currArrayIndex < iso2MeasurementDataListType->MeasurementData.arrayLen ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ if(errn == 0) {
+ /* First(xsi:type)StartTag[CHARACTERS[UNSIGNED_INTEGER]] */
+ errn = encodeNBitUnsignedInteger(stream, 1, 0);
+ if(errn == 0) {
+ errn = encodeUnsignedInteger16(stream, iso2MeasurementDataListType->MeasurementData.array[iso2MeasurementDataListType_MeasurementData_currArrayIndex++]);
+ /* valid EE */
+ errn = encodeNBitUnsignedInteger(stream, 1, 0);
+ }
+ }
+ grammarID = 1350;
+ } else if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 1350:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MeasurementData), END_ELEMENT] */
+ if (iso2MeasurementDataListType_MeasurementData_currArrayIndex < iso2MeasurementDataListType->MeasurementData.arrayLen ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ if(errn == 0) {
+ /* First(xsi:type)StartTag[CHARACTERS[UNSIGNED_INTEGER]] */
+ errn = encodeNBitUnsignedInteger(stream, 1, 0);
+ if(errn == 0) {
+ errn = encodeUnsignedInteger16(stream, iso2MeasurementDataListType->MeasurementData.array[iso2MeasurementDataListType_MeasurementData_currArrayIndex++]);
+ /* valid EE */
+ errn = encodeNBitUnsignedInteger(stream, 1, 0);
+ }
+ }
+ grammarID = 1351;
+ } else if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 1351:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MeasurementData), END_ELEMENT] */
+ if (iso2MeasurementDataListType_MeasurementData_currArrayIndex < iso2MeasurementDataListType->MeasurementData.arrayLen ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ if(errn == 0) {
+ /* First(xsi:type)StartTag[CHARACTERS[UNSIGNED_INTEGER]] */
+ errn = encodeNBitUnsignedInteger(stream, 1, 0);
+ if(errn == 0) {
+ errn = encodeUnsignedInteger16(stream, iso2MeasurementDataListType->MeasurementData.array[iso2MeasurementDataListType_MeasurementData_currArrayIndex++]);
+ /* valid EE */
+ errn = encodeNBitUnsignedInteger(stream, 1, 0);
+ }
+ }
+ grammarID = 1352;
+ } else if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 1352:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MeasurementData), END_ELEMENT] */
+ if (iso2MeasurementDataListType_MeasurementData_currArrayIndex < iso2MeasurementDataListType->MeasurementData.arrayLen ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ if(errn == 0) {
+ /* First(xsi:type)StartTag[CHARACTERS[UNSIGNED_INTEGER]] */
+ errn = encodeNBitUnsignedInteger(stream, 1, 0);
+ if(errn == 0) {
+ errn = encodeUnsignedInteger16(stream, iso2MeasurementDataListType->MeasurementData.array[iso2MeasurementDataListType_MeasurementData_currArrayIndex++]);
+ /* valid EE */
+ errn = encodeNBitUnsignedInteger(stream, 1, 0);
+ }
+ }
+ grammarID = 1353;
+ } else if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 1353:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MeasurementData), END_ELEMENT] */
+ if (iso2MeasurementDataListType_MeasurementData_currArrayIndex < iso2MeasurementDataListType->MeasurementData.arrayLen ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ if(errn == 0) {
+ /* First(xsi:type)StartTag[CHARACTERS[UNSIGNED_INTEGER]] */
+ errn = encodeNBitUnsignedInteger(stream, 1, 0);
+ if(errn == 0) {
+ errn = encodeUnsignedInteger16(stream, iso2MeasurementDataListType->MeasurementData.array[iso2MeasurementDataListType_MeasurementData_currArrayIndex++]);
+ /* valid EE */
+ errn = encodeNBitUnsignedInteger(stream, 1, 0);
+ }
+ }
+ grammarID = 1354;
+ } else if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 1354:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MeasurementData), END_ELEMENT] */
+ if (iso2MeasurementDataListType_MeasurementData_currArrayIndex < iso2MeasurementDataListType->MeasurementData.arrayLen ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ if(errn == 0) {
+ /* First(xsi:type)StartTag[CHARACTERS[UNSIGNED_INTEGER]] */
+ errn = encodeNBitUnsignedInteger(stream, 1, 0);
+ if(errn == 0) {
+ errn = encodeUnsignedInteger16(stream, iso2MeasurementDataListType->MeasurementData.array[iso2MeasurementDataListType_MeasurementData_currArrayIndex++]);
+ /* valid EE */
+ errn = encodeNBitUnsignedInteger(stream, 1, 0);
+ }
+ }
+ grammarID = 1355;
+ } else if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 1355:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MeasurementData), END_ELEMENT] */
+ if (iso2MeasurementDataListType_MeasurementData_currArrayIndex < iso2MeasurementDataListType->MeasurementData.arrayLen ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ if(errn == 0) {
+ /* First(xsi:type)StartTag[CHARACTERS[UNSIGNED_INTEGER]] */
+ errn = encodeNBitUnsignedInteger(stream, 1, 0);
+ if(errn == 0) {
+ errn = encodeUnsignedInteger16(stream, iso2MeasurementDataListType->MeasurementData.array[iso2MeasurementDataListType_MeasurementData_currArrayIndex++]);
+ /* valid EE */
+ errn = encodeNBitUnsignedInteger(stream, 1, 0);
+ }
+ }
+ grammarID = 1356;
+ } else if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 1356:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MeasurementData), END_ELEMENT] */
+ if (iso2MeasurementDataListType_MeasurementData_currArrayIndex < iso2MeasurementDataListType->MeasurementData.arrayLen ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ if(errn == 0) {
+ /* First(xsi:type)StartTag[CHARACTERS[UNSIGNED_INTEGER]] */
+ errn = encodeNBitUnsignedInteger(stream, 1, 0);
+ if(errn == 0) {
+ errn = encodeUnsignedInteger16(stream, iso2MeasurementDataListType->MeasurementData.array[iso2MeasurementDataListType_MeasurementData_currArrayIndex++]);
+ /* valid EE */
+ errn = encodeNBitUnsignedInteger(stream, 1, 0);
+ }
+ }
+ grammarID = 1357;
+ } else if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 1357:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MeasurementData), END_ELEMENT] */
+ if (iso2MeasurementDataListType_MeasurementData_currArrayIndex < iso2MeasurementDataListType->MeasurementData.arrayLen ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ if(errn == 0) {
+ /* First(xsi:type)StartTag[CHARACTERS[UNSIGNED_INTEGER]] */
+ errn = encodeNBitUnsignedInteger(stream, 1, 0);
+ if(errn == 0) {
+ errn = encodeUnsignedInteger16(stream, iso2MeasurementDataListType->MeasurementData.array[iso2MeasurementDataListType_MeasurementData_currArrayIndex++]);
+ /* valid EE */
+ errn = encodeNBitUnsignedInteger(stream, 1, 0);
+ }
+ }
+ grammarID = 1358;
+ } else if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 1358:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MeasurementData), END_ELEMENT] */
+ if (iso2MeasurementDataListType_MeasurementData_currArrayIndex < iso2MeasurementDataListType->MeasurementData.arrayLen ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ if(errn == 0) {
+ /* First(xsi:type)StartTag[CHARACTERS[UNSIGNED_INTEGER]] */
+ errn = encodeNBitUnsignedInteger(stream, 1, 0);
+ if(errn == 0) {
+ errn = encodeUnsignedInteger16(stream, iso2MeasurementDataListType->MeasurementData.array[iso2MeasurementDataListType_MeasurementData_currArrayIndex++]);
+ /* valid EE */
+ errn = encodeNBitUnsignedInteger(stream, 1, 0);
+ }
+ }
+ grammarID = 1359;
+ } else if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 1359:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MeasurementData), END_ELEMENT] */
+ if (iso2MeasurementDataListType_MeasurementData_currArrayIndex < iso2MeasurementDataListType->MeasurementData.arrayLen ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ if(errn == 0) {
+ /* First(xsi:type)StartTag[CHARACTERS[UNSIGNED_INTEGER]] */
+ errn = encodeNBitUnsignedInteger(stream, 1, 0);
+ if(errn == 0) {
+ errn = encodeUnsignedInteger16(stream, iso2MeasurementDataListType->MeasurementData.array[iso2MeasurementDataListType_MeasurementData_currArrayIndex++]);
+ /* valid EE */
+ errn = encodeNBitUnsignedInteger(stream, 1, 0);
+ }
+ }
+ grammarID = 1360;
+ } else if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 1360:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MeasurementData), END_ELEMENT] */
+ if (iso2MeasurementDataListType_MeasurementData_currArrayIndex < iso2MeasurementDataListType->MeasurementData.arrayLen ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ if(errn == 0) {
+ /* First(xsi:type)StartTag[CHARACTERS[UNSIGNED_INTEGER]] */
+ errn = encodeNBitUnsignedInteger(stream, 1, 0);
+ if(errn == 0) {
+ errn = encodeUnsignedInteger16(stream, iso2MeasurementDataListType->MeasurementData.array[iso2MeasurementDataListType_MeasurementData_currArrayIndex++]);
+ /* valid EE */
+ errn = encodeNBitUnsignedInteger(stream, 1, 0);
+ }
+ }
+ grammarID = 1361;
+ } else if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 1361:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MeasurementData), END_ELEMENT] */
+ if (iso2MeasurementDataListType_MeasurementData_currArrayIndex < iso2MeasurementDataListType->MeasurementData.arrayLen ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ if(errn == 0) {
+ /* First(xsi:type)StartTag[CHARACTERS[UNSIGNED_INTEGER]] */
+ errn = encodeNBitUnsignedInteger(stream, 1, 0);
+ if(errn == 0) {
+ errn = encodeUnsignedInteger16(stream, iso2MeasurementDataListType->MeasurementData.array[iso2MeasurementDataListType_MeasurementData_currArrayIndex++]);
+ /* valid EE */
+ errn = encodeNBitUnsignedInteger(stream, 1, 0);
+ }
+ }
+ grammarID = 1362;
+ } else if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 1362:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MeasurementData), END_ELEMENT] */
+ if (iso2MeasurementDataListType_MeasurementData_currArrayIndex < iso2MeasurementDataListType->MeasurementData.arrayLen ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ if(errn == 0) {
+ /* First(xsi:type)StartTag[CHARACTERS[UNSIGNED_INTEGER]] */
+ errn = encodeNBitUnsignedInteger(stream, 1, 0);
+ if(errn == 0) {
+ errn = encodeUnsignedInteger16(stream, iso2MeasurementDataListType->MeasurementData.array[iso2MeasurementDataListType_MeasurementData_currArrayIndex++]);
+ /* valid EE */
+ errn = encodeNBitUnsignedInteger(stream, 1, 0);
+ }
+ }
+ grammarID = 1363;
+ } else if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 1363:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MeasurementData), END_ELEMENT] */
+ if (iso2MeasurementDataListType_MeasurementData_currArrayIndex < iso2MeasurementDataListType->MeasurementData.arrayLen ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ if(errn == 0) {
+ /* First(xsi:type)StartTag[CHARACTERS[UNSIGNED_INTEGER]] */
+ errn = encodeNBitUnsignedInteger(stream, 1, 0);
+ if(errn == 0) {
+ errn = encodeUnsignedInteger16(stream, iso2MeasurementDataListType->MeasurementData.array[iso2MeasurementDataListType_MeasurementData_currArrayIndex++]);
+ /* valid EE */
+ errn = encodeNBitUnsignedInteger(stream, 1, 0);
+ }
+ }
+ grammarID = 1364;
+ } else if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 1364:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MeasurementData), END_ELEMENT] */
+ if (iso2MeasurementDataListType_MeasurementData_currArrayIndex < iso2MeasurementDataListType->MeasurementData.arrayLen ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ if(errn == 0) {
+ /* First(xsi:type)StartTag[CHARACTERS[UNSIGNED_INTEGER]] */
+ errn = encodeNBitUnsignedInteger(stream, 1, 0);
+ if(errn == 0) {
+ errn = encodeUnsignedInteger16(stream, iso2MeasurementDataListType->MeasurementData.array[iso2MeasurementDataListType_MeasurementData_currArrayIndex++]);
+ /* valid EE */
+ errn = encodeNBitUnsignedInteger(stream, 1, 0);
+ }
+ }
+ grammarID = 1365;
+ } else if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 1365:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MeasurementData), END_ELEMENT] */
+ if (iso2MeasurementDataListType_MeasurementData_currArrayIndex < iso2MeasurementDataListType->MeasurementData.arrayLen ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ if(errn == 0) {
+ /* First(xsi:type)StartTag[CHARACTERS[UNSIGNED_INTEGER]] */
+ errn = encodeNBitUnsignedInteger(stream, 1, 0);
+ if(errn == 0) {
+ errn = encodeUnsignedInteger16(stream, iso2MeasurementDataListType->MeasurementData.array[iso2MeasurementDataListType_MeasurementData_currArrayIndex++]);
+ /* valid EE */
+ errn = encodeNBitUnsignedInteger(stream, 1, 0);
+ }
+ }
+ grammarID = 1366;
+ } else if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 1366:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MeasurementData), END_ELEMENT] */
+ if (iso2MeasurementDataListType_MeasurementData_currArrayIndex < iso2MeasurementDataListType->MeasurementData.arrayLen ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ if(errn == 0) {
+ /* First(xsi:type)StartTag[CHARACTERS[UNSIGNED_INTEGER]] */
+ errn = encodeNBitUnsignedInteger(stream, 1, 0);
+ if(errn == 0) {
+ errn = encodeUnsignedInteger16(stream, iso2MeasurementDataListType->MeasurementData.array[iso2MeasurementDataListType_MeasurementData_currArrayIndex++]);
+ /* valid EE */
+ errn = encodeNBitUnsignedInteger(stream, 1, 0);
+ }
+ }
+ grammarID = 1367;
+ } else if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 1367:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MeasurementData), END_ELEMENT] */
+ if (iso2MeasurementDataListType_MeasurementData_currArrayIndex < iso2MeasurementDataListType->MeasurementData.arrayLen ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ if(errn == 0) {
+ /* First(xsi:type)StartTag[CHARACTERS[UNSIGNED_INTEGER]] */
+ errn = encodeNBitUnsignedInteger(stream, 1, 0);
+ if(errn == 0) {
+ errn = encodeUnsignedInteger16(stream, iso2MeasurementDataListType->MeasurementData.array[iso2MeasurementDataListType_MeasurementData_currArrayIndex++]);
+ /* valid EE */
+ errn = encodeNBitUnsignedInteger(stream, 1, 0);
+ }
+ }
+ grammarID = 1368;
+ } else if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 1368:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MeasurementData), END_ELEMENT] */
+ if (iso2MeasurementDataListType_MeasurementData_currArrayIndex < iso2MeasurementDataListType->MeasurementData.arrayLen ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ if(errn == 0) {
+ /* First(xsi:type)StartTag[CHARACTERS[UNSIGNED_INTEGER]] */
+ errn = encodeNBitUnsignedInteger(stream, 1, 0);
+ if(errn == 0) {
+ errn = encodeUnsignedInteger16(stream, iso2MeasurementDataListType->MeasurementData.array[iso2MeasurementDataListType_MeasurementData_currArrayIndex++]);
+ /* valid EE */
+ errn = encodeNBitUnsignedInteger(stream, 1, 0);
+ }
+ }
+ grammarID = 1369;
+ } else if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 1369:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MeasurementData), END_ELEMENT] */
+ if (iso2MeasurementDataListType_MeasurementData_currArrayIndex < iso2MeasurementDataListType->MeasurementData.arrayLen ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ if(errn == 0) {
+ /* First(xsi:type)StartTag[CHARACTERS[UNSIGNED_INTEGER]] */
+ errn = encodeNBitUnsignedInteger(stream, 1, 0);
+ if(errn == 0) {
+ errn = encodeUnsignedInteger16(stream, iso2MeasurementDataListType->MeasurementData.array[iso2MeasurementDataListType_MeasurementData_currArrayIndex++]);
+ /* valid EE */
+ errn = encodeNBitUnsignedInteger(stream, 1, 0);
+ }
+ }
+ grammarID = 1370;
+ } else if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 1370:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MeasurementData), END_ELEMENT] */
+ if (iso2MeasurementDataListType_MeasurementData_currArrayIndex < iso2MeasurementDataListType->MeasurementData.arrayLen ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ if(errn == 0) {
+ /* First(xsi:type)StartTag[CHARACTERS[UNSIGNED_INTEGER]] */
+ errn = encodeNBitUnsignedInteger(stream, 1, 0);
+ if(errn == 0) {
+ errn = encodeUnsignedInteger16(stream, iso2MeasurementDataListType->MeasurementData.array[iso2MeasurementDataListType_MeasurementData_currArrayIndex++]);
+ /* valid EE */
+ errn = encodeNBitUnsignedInteger(stream, 1, 0);
+ }
+ }
+ grammarID = 1371;
+ } else if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 1371:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MeasurementData), END_ELEMENT] */
+ if (iso2MeasurementDataListType_MeasurementData_currArrayIndex < iso2MeasurementDataListType->MeasurementData.arrayLen ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ if(errn == 0) {
+ /* First(xsi:type)StartTag[CHARACTERS[UNSIGNED_INTEGER]] */
+ errn = encodeNBitUnsignedInteger(stream, 1, 0);
+ if(errn == 0) {
+ errn = encodeUnsignedInteger16(stream, iso2MeasurementDataListType->MeasurementData.array[iso2MeasurementDataListType_MeasurementData_currArrayIndex++]);
+ /* valid EE */
+ errn = encodeNBitUnsignedInteger(stream, 1, 0);
+ }
+ }
+ grammarID = 1372;
+ } else if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 1372:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MeasurementData), END_ELEMENT] */
+ if (iso2MeasurementDataListType_MeasurementData_currArrayIndex < iso2MeasurementDataListType->MeasurementData.arrayLen ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ if(errn == 0) {
+ /* First(xsi:type)StartTag[CHARACTERS[UNSIGNED_INTEGER]] */
+ errn = encodeNBitUnsignedInteger(stream, 1, 0);
+ if(errn == 0) {
+ errn = encodeUnsignedInteger16(stream, iso2MeasurementDataListType->MeasurementData.array[iso2MeasurementDataListType_MeasurementData_currArrayIndex++]);
+ /* valid EE */
+ errn = encodeNBitUnsignedInteger(stream, 1, 0);
+ }
+ }
+ grammarID = 1373;
+ } else if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 1373:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MeasurementData), END_ELEMENT] */
+ if (iso2MeasurementDataListType_MeasurementData_currArrayIndex < iso2MeasurementDataListType->MeasurementData.arrayLen ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ if(errn == 0) {
+ /* First(xsi:type)StartTag[CHARACTERS[UNSIGNED_INTEGER]] */
+ errn = encodeNBitUnsignedInteger(stream, 1, 0);
+ if(errn == 0) {
+ errn = encodeUnsignedInteger16(stream, iso2MeasurementDataListType->MeasurementData.array[iso2MeasurementDataListType_MeasurementData_currArrayIndex++]);
+ /* valid EE */
+ errn = encodeNBitUnsignedInteger(stream, 1, 0);
+ }
+ }
+ grammarID = 1374;
+ } else if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 1374:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MeasurementData), END_ELEMENT] */
+ if (iso2MeasurementDataListType_MeasurementData_currArrayIndex < iso2MeasurementDataListType->MeasurementData.arrayLen ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ if(errn == 0) {
+ /* First(xsi:type)StartTag[CHARACTERS[UNSIGNED_INTEGER]] */
+ errn = encodeNBitUnsignedInteger(stream, 1, 0);
+ if(errn == 0) {
+ errn = encodeUnsignedInteger16(stream, iso2MeasurementDataListType->MeasurementData.array[iso2MeasurementDataListType_MeasurementData_currArrayIndex++]);
+ /* valid EE */
+ errn = encodeNBitUnsignedInteger(stream, 1, 0);
+ }
+ }
+ grammarID = 1375;
+ } else if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 1375:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MeasurementData), END_ELEMENT] */
+ if (iso2MeasurementDataListType_MeasurementData_currArrayIndex < iso2MeasurementDataListType->MeasurementData.arrayLen ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ if(errn == 0) {
+ /* First(xsi:type)StartTag[CHARACTERS[UNSIGNED_INTEGER]] */
+ errn = encodeNBitUnsignedInteger(stream, 1, 0);
+ if(errn == 0) {
+ errn = encodeUnsignedInteger16(stream, iso2MeasurementDataListType->MeasurementData.array[iso2MeasurementDataListType_MeasurementData_currArrayIndex++]);
+ /* valid EE */
+ errn = encodeNBitUnsignedInteger(stream, 1, 0);
+ }
+ }
+ grammarID = 1376;
+ } else if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 1376:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MeasurementData), END_ELEMENT] */
+ if (iso2MeasurementDataListType_MeasurementData_currArrayIndex < iso2MeasurementDataListType->MeasurementData.arrayLen ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ if(errn == 0) {
+ /* First(xsi:type)StartTag[CHARACTERS[UNSIGNED_INTEGER]] */
+ errn = encodeNBitUnsignedInteger(stream, 1, 0);
+ if(errn == 0) {
+ errn = encodeUnsignedInteger16(stream, iso2MeasurementDataListType->MeasurementData.array[iso2MeasurementDataListType_MeasurementData_currArrayIndex++]);
+ /* valid EE */
+ errn = encodeNBitUnsignedInteger(stream, 1, 0);
+ }
+ }
+ grammarID = 1377;
+ } else if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 1377:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MeasurementData), END_ELEMENT] */
+ if (iso2MeasurementDataListType_MeasurementData_currArrayIndex < iso2MeasurementDataListType->MeasurementData.arrayLen ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ if(errn == 0) {
+ /* First(xsi:type)StartTag[CHARACTERS[UNSIGNED_INTEGER]] */
+ errn = encodeNBitUnsignedInteger(stream, 1, 0);
+ if(errn == 0) {
+ errn = encodeUnsignedInteger16(stream, iso2MeasurementDataListType->MeasurementData.array[iso2MeasurementDataListType_MeasurementData_currArrayIndex++]);
+ /* valid EE */
+ errn = encodeNBitUnsignedInteger(stream, 1, 0);
+ }
+ }
+ grammarID = 1378;
+ } else if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 1378:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MeasurementData), END_ELEMENT] */
+ if (iso2MeasurementDataListType_MeasurementData_currArrayIndex < iso2MeasurementDataListType->MeasurementData.arrayLen ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ if(errn == 0) {
+ /* First(xsi:type)StartTag[CHARACTERS[UNSIGNED_INTEGER]] */
+ errn = encodeNBitUnsignedInteger(stream, 1, 0);
+ if(errn == 0) {
+ errn = encodeUnsignedInteger16(stream, iso2MeasurementDataListType->MeasurementData.array[iso2MeasurementDataListType_MeasurementData_currArrayIndex++]);
+ /* valid EE */
+ errn = encodeNBitUnsignedInteger(stream, 1, 0);
+ }
+ }
+ grammarID = 1379;
+ } else if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 1379:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MeasurementData), END_ELEMENT] */
+ if (iso2MeasurementDataListType_MeasurementData_currArrayIndex < iso2MeasurementDataListType->MeasurementData.arrayLen ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ if(errn == 0) {
+ /* First(xsi:type)StartTag[CHARACTERS[UNSIGNED_INTEGER]] */
+ errn = encodeNBitUnsignedInteger(stream, 1, 0);
+ if(errn == 0) {
+ errn = encodeUnsignedInteger16(stream, iso2MeasurementDataListType->MeasurementData.array[iso2MeasurementDataListType_MeasurementData_currArrayIndex++]);
+ /* valid EE */
+ errn = encodeNBitUnsignedInteger(stream, 1, 0);
+ }
+ }
+ grammarID = 1380;
+ } else if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 1380:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MeasurementData), END_ELEMENT] */
+ if (iso2MeasurementDataListType_MeasurementData_currArrayIndex < iso2MeasurementDataListType->MeasurementData.arrayLen ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ if(errn == 0) {
+ /* First(xsi:type)StartTag[CHARACTERS[UNSIGNED_INTEGER]] */
+ errn = encodeNBitUnsignedInteger(stream, 1, 0);
+ if(errn == 0) {
+ errn = encodeUnsignedInteger16(stream, iso2MeasurementDataListType->MeasurementData.array[iso2MeasurementDataListType_MeasurementData_currArrayIndex++]);
+ /* valid EE */
+ errn = encodeNBitUnsignedInteger(stream, 1, 0);
+ }
+ }
+ grammarID = 1381;
+ } else if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 1381:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MeasurementData), END_ELEMENT] */
+ if (iso2MeasurementDataListType_MeasurementData_currArrayIndex < iso2MeasurementDataListType->MeasurementData.arrayLen ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ if(errn == 0) {
+ /* First(xsi:type)StartTag[CHARACTERS[UNSIGNED_INTEGER]] */
+ errn = encodeNBitUnsignedInteger(stream, 1, 0);
+ if(errn == 0) {
+ errn = encodeUnsignedInteger16(stream, iso2MeasurementDataListType->MeasurementData.array[iso2MeasurementDataListType_MeasurementData_currArrayIndex++]);
+ /* valid EE */
+ errn = encodeNBitUnsignedInteger(stream, 1, 0);
+ }
+ }
+ grammarID = 1382;
+ } else if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 1382:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MeasurementData), END_ELEMENT] */
+ if (iso2MeasurementDataListType_MeasurementData_currArrayIndex < iso2MeasurementDataListType->MeasurementData.arrayLen ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ if(errn == 0) {
+ /* First(xsi:type)StartTag[CHARACTERS[UNSIGNED_INTEGER]] */
+ errn = encodeNBitUnsignedInteger(stream, 1, 0);
+ if(errn == 0) {
+ errn = encodeUnsignedInteger16(stream, iso2MeasurementDataListType->MeasurementData.array[iso2MeasurementDataListType_MeasurementData_currArrayIndex++]);
+ /* valid EE */
+ errn = encodeNBitUnsignedInteger(stream, 1, 0);
+ }
+ }
+ grammarID = 1383;
+ } else if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 1383:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MeasurementData), END_ELEMENT] */
+ if (iso2MeasurementDataListType_MeasurementData_currArrayIndex < iso2MeasurementDataListType->MeasurementData.arrayLen ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ if(errn == 0) {
+ /* First(xsi:type)StartTag[CHARACTERS[UNSIGNED_INTEGER]] */
+ errn = encodeNBitUnsignedInteger(stream, 1, 0);
+ if(errn == 0) {
+ errn = encodeUnsignedInteger16(stream, iso2MeasurementDataListType->MeasurementData.array[iso2MeasurementDataListType_MeasurementData_currArrayIndex++]);
+ /* valid EE */
+ errn = encodeNBitUnsignedInteger(stream, 1, 0);
+ }
+ }
+ grammarID = 1384;
+ } else if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 1384:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MeasurementData), END_ELEMENT] */
+ if (iso2MeasurementDataListType_MeasurementData_currArrayIndex < iso2MeasurementDataListType->MeasurementData.arrayLen ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ if(errn == 0) {
+ /* First(xsi:type)StartTag[CHARACTERS[UNSIGNED_INTEGER]] */
+ errn = encodeNBitUnsignedInteger(stream, 1, 0);
+ if(errn == 0) {
+ errn = encodeUnsignedInteger16(stream, iso2MeasurementDataListType->MeasurementData.array[iso2MeasurementDataListType_MeasurementData_currArrayIndex++]);
+ /* valid EE */
+ errn = encodeNBitUnsignedInteger(stream, 1, 0);
+ }
+ }
+ grammarID = 1385;
+ } else if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 1385:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MeasurementData), END_ELEMENT] */
+ if (iso2MeasurementDataListType_MeasurementData_currArrayIndex < iso2MeasurementDataListType->MeasurementData.arrayLen ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ if(errn == 0) {
+ /* First(xsi:type)StartTag[CHARACTERS[UNSIGNED_INTEGER]] */
+ errn = encodeNBitUnsignedInteger(stream, 1, 0);
+ if(errn == 0) {
+ errn = encodeUnsignedInteger16(stream, iso2MeasurementDataListType->MeasurementData.array[iso2MeasurementDataListType_MeasurementData_currArrayIndex++]);
+ /* valid EE */
+ errn = encodeNBitUnsignedInteger(stream, 1, 0);
+ }
+ }
+ grammarID = 1386;
+ } else if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 1386:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MeasurementData), END_ELEMENT] */
+ if (iso2MeasurementDataListType_MeasurementData_currArrayIndex < iso2MeasurementDataListType->MeasurementData.arrayLen ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ if(errn == 0) {
+ /* First(xsi:type)StartTag[CHARACTERS[UNSIGNED_INTEGER]] */
+ errn = encodeNBitUnsignedInteger(stream, 1, 0);
+ if(errn == 0) {
+ errn = encodeUnsignedInteger16(stream, iso2MeasurementDataListType->MeasurementData.array[iso2MeasurementDataListType_MeasurementData_currArrayIndex++]);
+ /* valid EE */
+ errn = encodeNBitUnsignedInteger(stream, 1, 0);
+ }
+ }
+ grammarID = 1387;
+ } else if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 1387:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MeasurementData), END_ELEMENT] */
+ if (iso2MeasurementDataListType_MeasurementData_currArrayIndex < iso2MeasurementDataListType->MeasurementData.arrayLen ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ if(errn == 0) {
+ /* First(xsi:type)StartTag[CHARACTERS[UNSIGNED_INTEGER]] */
+ errn = encodeNBitUnsignedInteger(stream, 1, 0);
+ if(errn == 0) {
+ errn = encodeUnsignedInteger16(stream, iso2MeasurementDataListType->MeasurementData.array[iso2MeasurementDataListType_MeasurementData_currArrayIndex++]);
+ /* valid EE */
+ errn = encodeNBitUnsignedInteger(stream, 1, 0);
+ }
+ }
+ grammarID = 1388;
+ } else if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 1388:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MeasurementData), END_ELEMENT] */
+ if (iso2MeasurementDataListType_MeasurementData_currArrayIndex < iso2MeasurementDataListType->MeasurementData.arrayLen ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ if(errn == 0) {
+ /* First(xsi:type)StartTag[CHARACTERS[UNSIGNED_INTEGER]] */
+ errn = encodeNBitUnsignedInteger(stream, 1, 0);
+ if(errn == 0) {
+ errn = encodeUnsignedInteger16(stream, iso2MeasurementDataListType->MeasurementData.array[iso2MeasurementDataListType_MeasurementData_currArrayIndex++]);
+ /* valid EE */
+ errn = encodeNBitUnsignedInteger(stream, 1, 0);
+ }
+ }
+ grammarID = 1389;
+ } else if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 1389:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MeasurementData), END_ELEMENT] */
+ if (iso2MeasurementDataListType_MeasurementData_currArrayIndex < iso2MeasurementDataListType->MeasurementData.arrayLen ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ if(errn == 0) {
+ /* First(xsi:type)StartTag[CHARACTERS[UNSIGNED_INTEGER]] */
+ errn = encodeNBitUnsignedInteger(stream, 1, 0);
+ if(errn == 0) {
+ errn = encodeUnsignedInteger16(stream, iso2MeasurementDataListType->MeasurementData.array[iso2MeasurementDataListType_MeasurementData_currArrayIndex++]);
+ /* valid EE */
+ errn = encodeNBitUnsignedInteger(stream, 1, 0);
+ }
+ }
+ grammarID = 1390;
+ } else if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 1390:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MeasurementData), END_ELEMENT] */
+ if (iso2MeasurementDataListType_MeasurementData_currArrayIndex < iso2MeasurementDataListType->MeasurementData.arrayLen ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ if(errn == 0) {
+ /* First(xsi:type)StartTag[CHARACTERS[UNSIGNED_INTEGER]] */
+ errn = encodeNBitUnsignedInteger(stream, 1, 0);
+ if(errn == 0) {
+ errn = encodeUnsignedInteger16(stream, iso2MeasurementDataListType->MeasurementData.array[iso2MeasurementDataListType_MeasurementData_currArrayIndex++]);
+ /* valid EE */
+ errn = encodeNBitUnsignedInteger(stream, 1, 0);
+ }
+ }
+ grammarID = 1391;
+ } else if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 1391:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MeasurementData), END_ELEMENT] */
+ if (iso2MeasurementDataListType_MeasurementData_currArrayIndex < iso2MeasurementDataListType->MeasurementData.arrayLen ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ if(errn == 0) {
+ /* First(xsi:type)StartTag[CHARACTERS[UNSIGNED_INTEGER]] */
+ errn = encodeNBitUnsignedInteger(stream, 1, 0);
+ if(errn == 0) {
+ errn = encodeUnsignedInteger16(stream, iso2MeasurementDataListType->MeasurementData.array[iso2MeasurementDataListType_MeasurementData_currArrayIndex++]);
+ /* valid EE */
+ errn = encodeNBitUnsignedInteger(stream, 1, 0);
+ }
+ }
+ grammarID = 1392;
+ } else if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 1392:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MeasurementData), END_ELEMENT] */
+ if (iso2MeasurementDataListType_MeasurementData_currArrayIndex < iso2MeasurementDataListType->MeasurementData.arrayLen ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ if(errn == 0) {
+ /* First(xsi:type)StartTag[CHARACTERS[UNSIGNED_INTEGER]] */
+ errn = encodeNBitUnsignedInteger(stream, 1, 0);
+ if(errn == 0) {
+ errn = encodeUnsignedInteger16(stream, iso2MeasurementDataListType->MeasurementData.array[iso2MeasurementDataListType_MeasurementData_currArrayIndex++]);
+ /* valid EE */
+ errn = encodeNBitUnsignedInteger(stream, 1, 0);
+ }
+ }
+ grammarID = 1393;
+ } else if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 1393:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MeasurementData), END_ELEMENT] */
+ if (iso2MeasurementDataListType_MeasurementData_currArrayIndex < iso2MeasurementDataListType->MeasurementData.arrayLen ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ if(errn == 0) {
+ /* First(xsi:type)StartTag[CHARACTERS[UNSIGNED_INTEGER]] */
+ errn = encodeNBitUnsignedInteger(stream, 1, 0);
+ if(errn == 0) {
+ errn = encodeUnsignedInteger16(stream, iso2MeasurementDataListType->MeasurementData.array[iso2MeasurementDataListType_MeasurementData_currArrayIndex++]);
+ /* valid EE */
+ errn = encodeNBitUnsignedInteger(stream, 1, 0);
+ }
+ }
+ grammarID = 1394;
+ } else if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 1394:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MeasurementData), END_ELEMENT] */
+ if (iso2MeasurementDataListType_MeasurementData_currArrayIndex < iso2MeasurementDataListType->MeasurementData.arrayLen ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ if(errn == 0) {
+ /* First(xsi:type)StartTag[CHARACTERS[UNSIGNED_INTEGER]] */
+ errn = encodeNBitUnsignedInteger(stream, 1, 0);
+ if(errn == 0) {
+ errn = encodeUnsignedInteger16(stream, iso2MeasurementDataListType->MeasurementData.array[iso2MeasurementDataListType_MeasurementData_currArrayIndex++]);
+ /* valid EE */
+ errn = encodeNBitUnsignedInteger(stream, 1, 0);
+ }
+ }
+ grammarID = 1395;
+ } else if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 1395:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MeasurementData), END_ELEMENT] */
+ if (iso2MeasurementDataListType_MeasurementData_currArrayIndex < iso2MeasurementDataListType->MeasurementData.arrayLen ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ if(errn == 0) {
+ /* First(xsi:type)StartTag[CHARACTERS[UNSIGNED_INTEGER]] */
+ errn = encodeNBitUnsignedInteger(stream, 1, 0);
+ if(errn == 0) {
+ errn = encodeUnsignedInteger16(stream, iso2MeasurementDataListType->MeasurementData.array[iso2MeasurementDataListType_MeasurementData_currArrayIndex++]);
+ /* valid EE */
+ errn = encodeNBitUnsignedInteger(stream, 1, 0);
+ }
+ }
+ grammarID = 1396;
+ } else if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 1396:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MeasurementData), END_ELEMENT] */
+ if (iso2MeasurementDataListType_MeasurementData_currArrayIndex < iso2MeasurementDataListType->MeasurementData.arrayLen ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ if(errn == 0) {
+ /* First(xsi:type)StartTag[CHARACTERS[UNSIGNED_INTEGER]] */
+ errn = encodeNBitUnsignedInteger(stream, 1, 0);
+ if(errn == 0) {
+ errn = encodeUnsignedInteger16(stream, iso2MeasurementDataListType->MeasurementData.array[iso2MeasurementDataListType_MeasurementData_currArrayIndex++]);
+ /* valid EE */
+ errn = encodeNBitUnsignedInteger(stream, 1, 0);
+ }
+ }
+ grammarID = 1397;
+ } else if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 1397:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MeasurementData), END_ELEMENT] */
+ if (iso2MeasurementDataListType_MeasurementData_currArrayIndex < iso2MeasurementDataListType->MeasurementData.arrayLen ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ if(errn == 0) {
+ /* First(xsi:type)StartTag[CHARACTERS[UNSIGNED_INTEGER]] */
+ errn = encodeNBitUnsignedInteger(stream, 1, 0);
+ if(errn == 0) {
+ errn = encodeUnsignedInteger16(stream, iso2MeasurementDataListType->MeasurementData.array[iso2MeasurementDataListType_MeasurementData_currArrayIndex++]);
+ /* valid EE */
+ errn = encodeNBitUnsignedInteger(stream, 1, 0);
+ }
+ }
+ grammarID = 1398;
+ } else if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 1398:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MeasurementData), END_ELEMENT] */
+ if (iso2MeasurementDataListType_MeasurementData_currArrayIndex < iso2MeasurementDataListType->MeasurementData.arrayLen ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ if(errn == 0) {
+ /* First(xsi:type)StartTag[CHARACTERS[UNSIGNED_INTEGER]] */
+ errn = encodeNBitUnsignedInteger(stream, 1, 0);
+ if(errn == 0) {
+ errn = encodeUnsignedInteger16(stream, iso2MeasurementDataListType->MeasurementData.array[iso2MeasurementDataListType_MeasurementData_currArrayIndex++]);
+ /* valid EE */
+ errn = encodeNBitUnsignedInteger(stream, 1, 0);
+ }
+ }
+ grammarID = 1399;
+ } else if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 1399:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MeasurementData), END_ELEMENT] */
+ if (iso2MeasurementDataListType_MeasurementData_currArrayIndex < iso2MeasurementDataListType->MeasurementData.arrayLen ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ if(errn == 0) {
+ /* First(xsi:type)StartTag[CHARACTERS[UNSIGNED_INTEGER]] */
+ errn = encodeNBitUnsignedInteger(stream, 1, 0);
+ if(errn == 0) {
+ errn = encodeUnsignedInteger16(stream, iso2MeasurementDataListType->MeasurementData.array[iso2MeasurementDataListType_MeasurementData_currArrayIndex++]);
+ /* valid EE */
+ errn = encodeNBitUnsignedInteger(stream, 1, 0);
+ }
+ }
+ grammarID = 1400;
+ } else if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 1400:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MeasurementData), END_ELEMENT] */
+ if (iso2MeasurementDataListType_MeasurementData_currArrayIndex < iso2MeasurementDataListType->MeasurementData.arrayLen ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ if(errn == 0) {
+ /* First(xsi:type)StartTag[CHARACTERS[UNSIGNED_INTEGER]] */
+ errn = encodeNBitUnsignedInteger(stream, 1, 0);
+ if(errn == 0) {
+ errn = encodeUnsignedInteger16(stream, iso2MeasurementDataListType->MeasurementData.array[iso2MeasurementDataListType_MeasurementData_currArrayIndex++]);
+ /* valid EE */
+ errn = encodeNBitUnsignedInteger(stream, 1, 0);
+ }
+ }
+ grammarID = 1401;
+ } else if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 1401:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MeasurementData), END_ELEMENT] */
+ if (iso2MeasurementDataListType_MeasurementData_currArrayIndex < iso2MeasurementDataListType->MeasurementData.arrayLen ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ if(errn == 0) {
+ /* First(xsi:type)StartTag[CHARACTERS[UNSIGNED_INTEGER]] */
+ errn = encodeNBitUnsignedInteger(stream, 1, 0);
+ if(errn == 0) {
+ errn = encodeUnsignedInteger16(stream, iso2MeasurementDataListType->MeasurementData.array[iso2MeasurementDataListType_MeasurementData_currArrayIndex++]);
+ /* valid EE */
+ errn = encodeNBitUnsignedInteger(stream, 1, 0);
+ }
+ }
+ grammarID = 1402;
+ } else if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 1402:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MeasurementData), END_ELEMENT] */
+ if (iso2MeasurementDataListType_MeasurementData_currArrayIndex < iso2MeasurementDataListType->MeasurementData.arrayLen ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ if(errn == 0) {
+ /* First(xsi:type)StartTag[CHARACTERS[UNSIGNED_INTEGER]] */
+ errn = encodeNBitUnsignedInteger(stream, 1, 0);
+ if(errn == 0) {
+ errn = encodeUnsignedInteger16(stream, iso2MeasurementDataListType->MeasurementData.array[iso2MeasurementDataListType_MeasurementData_currArrayIndex++]);
+ /* valid EE */
+ errn = encodeNBitUnsignedInteger(stream, 1, 0);
+ }
+ }
+ grammarID = 1403;
+ } else if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 1403:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MeasurementData), END_ELEMENT] */
+ if (iso2MeasurementDataListType_MeasurementData_currArrayIndex < iso2MeasurementDataListType->MeasurementData.arrayLen ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ if(errn == 0) {
+ /* First(xsi:type)StartTag[CHARACTERS[UNSIGNED_INTEGER]] */
+ errn = encodeNBitUnsignedInteger(stream, 1, 0);
+ if(errn == 0) {
+ errn = encodeUnsignedInteger16(stream, iso2MeasurementDataListType->MeasurementData.array[iso2MeasurementDataListType_MeasurementData_currArrayIndex++]);
+ /* valid EE */
+ errn = encodeNBitUnsignedInteger(stream, 1, 0);
+ }
+ }
+ grammarID = 1404;
+ } else if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 1404:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MeasurementData), END_ELEMENT] */
+ if (iso2MeasurementDataListType_MeasurementData_currArrayIndex < iso2MeasurementDataListType->MeasurementData.arrayLen ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ if(errn == 0) {
+ /* First(xsi:type)StartTag[CHARACTERS[UNSIGNED_INTEGER]] */
+ errn = encodeNBitUnsignedInteger(stream, 1, 0);
+ if(errn == 0) {
+ errn = encodeUnsignedInteger16(stream, iso2MeasurementDataListType->MeasurementData.array[iso2MeasurementDataListType_MeasurementData_currArrayIndex++]);
+ /* valid EE */
+ errn = encodeNBitUnsignedInteger(stream, 1, 0);
+ }
+ }
+ grammarID = 1405;
+ } else if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 1405:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MeasurementData), END_ELEMENT] */
+ if (iso2MeasurementDataListType_MeasurementData_currArrayIndex < iso2MeasurementDataListType->MeasurementData.arrayLen ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ if(errn == 0) {
+ /* First(xsi:type)StartTag[CHARACTERS[UNSIGNED_INTEGER]] */
+ errn = encodeNBitUnsignedInteger(stream, 1, 0);
+ if(errn == 0) {
+ errn = encodeUnsignedInteger16(stream, iso2MeasurementDataListType->MeasurementData.array[iso2MeasurementDataListType_MeasurementData_currArrayIndex++]);
+ /* valid EE */
+ errn = encodeNBitUnsignedInteger(stream, 1, 0);
+ }
+ }
+ grammarID = 1406;
+ } else if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 1406:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MeasurementData), END_ELEMENT] */
+ if (iso2MeasurementDataListType_MeasurementData_currArrayIndex < iso2MeasurementDataListType->MeasurementData.arrayLen ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ if(errn == 0) {
+ /* First(xsi:type)StartTag[CHARACTERS[UNSIGNED_INTEGER]] */
+ errn = encodeNBitUnsignedInteger(stream, 1, 0);
+ if(errn == 0) {
+ errn = encodeUnsignedInteger16(stream, iso2MeasurementDataListType->MeasurementData.array[iso2MeasurementDataListType_MeasurementData_currArrayIndex++]);
+ /* valid EE */
+ errn = encodeNBitUnsignedInteger(stream, 1, 0);
+ }
+ }
+ grammarID = 1407;
+ } else if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 1407:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MeasurementData), END_ELEMENT] */
+ if (iso2MeasurementDataListType_MeasurementData_currArrayIndex < iso2MeasurementDataListType->MeasurementData.arrayLen ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ if(errn == 0) {
+ /* First(xsi:type)StartTag[CHARACTERS[UNSIGNED_INTEGER]] */
+ errn = encodeNBitUnsignedInteger(stream, 1, 0);
+ if(errn == 0) {
+ errn = encodeUnsignedInteger16(stream, iso2MeasurementDataListType->MeasurementData.array[iso2MeasurementDataListType_MeasurementData_currArrayIndex++]);
+ /* valid EE */
+ errn = encodeNBitUnsignedInteger(stream, 1, 0);
+ }
+ }
+ grammarID = 1408;
+ } else if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 1408:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MeasurementData), END_ELEMENT] */
+ if (iso2MeasurementDataListType_MeasurementData_currArrayIndex < iso2MeasurementDataListType->MeasurementData.arrayLen ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ if(errn == 0) {
+ /* First(xsi:type)StartTag[CHARACTERS[UNSIGNED_INTEGER]] */
+ errn = encodeNBitUnsignedInteger(stream, 1, 0);
+ if(errn == 0) {
+ errn = encodeUnsignedInteger16(stream, iso2MeasurementDataListType->MeasurementData.array[iso2MeasurementDataListType_MeasurementData_currArrayIndex++]);
+ /* valid EE */
+ errn = encodeNBitUnsignedInteger(stream, 1, 0);
+ }
+ }
+ grammarID = 1409;
+ } else if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 1409:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MeasurementData), END_ELEMENT] */
+ if (iso2MeasurementDataListType_MeasurementData_currArrayIndex < iso2MeasurementDataListType->MeasurementData.arrayLen ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ if(errn == 0) {
+ /* First(xsi:type)StartTag[CHARACTERS[UNSIGNED_INTEGER]] */
+ errn = encodeNBitUnsignedInteger(stream, 1, 0);
+ if(errn == 0) {
+ errn = encodeUnsignedInteger16(stream, iso2MeasurementDataListType->MeasurementData.array[iso2MeasurementDataListType_MeasurementData_currArrayIndex++]);
+ /* valid EE */
+ errn = encodeNBitUnsignedInteger(stream, 1, 0);
+ }
+ }
+ grammarID = 1410;
+ } else if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 1410:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MeasurementData), END_ELEMENT] */
+ if (iso2MeasurementDataListType_MeasurementData_currArrayIndex < iso2MeasurementDataListType->MeasurementData.arrayLen ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ if(errn == 0) {
+ /* First(xsi:type)StartTag[CHARACTERS[UNSIGNED_INTEGER]] */
+ errn = encodeNBitUnsignedInteger(stream, 1, 0);
+ if(errn == 0) {
+ errn = encodeUnsignedInteger16(stream, iso2MeasurementDataListType->MeasurementData.array[iso2MeasurementDataListType_MeasurementData_currArrayIndex++]);
+ /* valid EE */
+ errn = encodeNBitUnsignedInteger(stream, 1, 0);
+ }
+ }
+ grammarID = 1411;
+ } else if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 1411:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MeasurementData), END_ELEMENT] */
+ if (iso2MeasurementDataListType_MeasurementData_currArrayIndex < iso2MeasurementDataListType->MeasurementData.arrayLen ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ if(errn == 0) {
+ /* First(xsi:type)StartTag[CHARACTERS[UNSIGNED_INTEGER]] */
+ errn = encodeNBitUnsignedInteger(stream, 1, 0);
+ if(errn == 0) {
+ errn = encodeUnsignedInteger16(stream, iso2MeasurementDataListType->MeasurementData.array[iso2MeasurementDataListType_MeasurementData_currArrayIndex++]);
+ /* valid EE */
+ errn = encodeNBitUnsignedInteger(stream, 1, 0);
+ }
+ }
+ grammarID = 1412;
+ } else if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 1412:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MeasurementData), END_ELEMENT] */
+ if (iso2MeasurementDataListType_MeasurementData_currArrayIndex < iso2MeasurementDataListType->MeasurementData.arrayLen ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ if(errn == 0) {
+ /* First(xsi:type)StartTag[CHARACTERS[UNSIGNED_INTEGER]] */
+ errn = encodeNBitUnsignedInteger(stream, 1, 0);
+ if(errn == 0) {
+ errn = encodeUnsignedInteger16(stream, iso2MeasurementDataListType->MeasurementData.array[iso2MeasurementDataListType_MeasurementData_currArrayIndex++]);
+ /* valid EE */
+ errn = encodeNBitUnsignedInteger(stream, 1, 0);
+ }
+ }
+ grammarID = 1413;
+ } else if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 1413:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MeasurementData), END_ELEMENT] */
+ if (iso2MeasurementDataListType_MeasurementData_currArrayIndex < iso2MeasurementDataListType->MeasurementData.arrayLen ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ if(errn == 0) {
+ /* First(xsi:type)StartTag[CHARACTERS[UNSIGNED_INTEGER]] */
+ errn = encodeNBitUnsignedInteger(stream, 1, 0);
+ if(errn == 0) {
+ errn = encodeUnsignedInteger16(stream, iso2MeasurementDataListType->MeasurementData.array[iso2MeasurementDataListType_MeasurementData_currArrayIndex++]);
+ /* valid EE */
+ errn = encodeNBitUnsignedInteger(stream, 1, 0);
+ }
+ }
+ grammarID = 1414;
+ } else if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 1414:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MeasurementData), END_ELEMENT] */
+ if (iso2MeasurementDataListType_MeasurementData_currArrayIndex < iso2MeasurementDataListType->MeasurementData.arrayLen ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ if(errn == 0) {
+ /* First(xsi:type)StartTag[CHARACTERS[UNSIGNED_INTEGER]] */
+ errn = encodeNBitUnsignedInteger(stream, 1, 0);
+ if(errn == 0) {
+ errn = encodeUnsignedInteger16(stream, iso2MeasurementDataListType->MeasurementData.array[iso2MeasurementDataListType_MeasurementData_currArrayIndex++]);
+ /* valid EE */
+ errn = encodeNBitUnsignedInteger(stream, 1, 0);
+ }
+ }
+ grammarID = 1415;
+ } else if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 1415:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MeasurementData), END_ELEMENT] */
+ if (iso2MeasurementDataListType_MeasurementData_currArrayIndex < iso2MeasurementDataListType->MeasurementData.arrayLen ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ if(errn == 0) {
+ /* First(xsi:type)StartTag[CHARACTERS[UNSIGNED_INTEGER]] */
+ errn = encodeNBitUnsignedInteger(stream, 1, 0);
+ if(errn == 0) {
+ errn = encodeUnsignedInteger16(stream, iso2MeasurementDataListType->MeasurementData.array[iso2MeasurementDataListType_MeasurementData_currArrayIndex++]);
+ /* valid EE */
+ errn = encodeNBitUnsignedInteger(stream, 1, 0);
+ }
+ }
+ grammarID = 1416;
+ } else if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 1416:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MeasurementData), END_ELEMENT] */
+ if (iso2MeasurementDataListType_MeasurementData_currArrayIndex < iso2MeasurementDataListType->MeasurementData.arrayLen ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ if(errn == 0) {
+ /* First(xsi:type)StartTag[CHARACTERS[UNSIGNED_INTEGER]] */
+ errn = encodeNBitUnsignedInteger(stream, 1, 0);
+ if(errn == 0) {
+ errn = encodeUnsignedInteger16(stream, iso2MeasurementDataListType->MeasurementData.array[iso2MeasurementDataListType_MeasurementData_currArrayIndex++]);
+ /* valid EE */
+ errn = encodeNBitUnsignedInteger(stream, 1, 0);
+ }
+ }
+ grammarID = 1417;
+ } else if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 1417:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MeasurementData), END_ELEMENT] */
+ if (iso2MeasurementDataListType_MeasurementData_currArrayIndex < iso2MeasurementDataListType->MeasurementData.arrayLen ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ if(errn == 0) {
+ /* First(xsi:type)StartTag[CHARACTERS[UNSIGNED_INTEGER]] */
+ errn = encodeNBitUnsignedInteger(stream, 1, 0);
+ if(errn == 0) {
+ errn = encodeUnsignedInteger16(stream, iso2MeasurementDataListType->MeasurementData.array[iso2MeasurementDataListType_MeasurementData_currArrayIndex++]);
+ /* valid EE */
+ errn = encodeNBitUnsignedInteger(stream, 1, 0);
+ }
+ }
+ grammarID = 1418;
+ } else if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 1418:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MeasurementData), END_ELEMENT] */
+ if (iso2MeasurementDataListType_MeasurementData_currArrayIndex < iso2MeasurementDataListType->MeasurementData.arrayLen ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ if(errn == 0) {
+ /* First(xsi:type)StartTag[CHARACTERS[UNSIGNED_INTEGER]] */
+ errn = encodeNBitUnsignedInteger(stream, 1, 0);
+ if(errn == 0) {
+ errn = encodeUnsignedInteger16(stream, iso2MeasurementDataListType->MeasurementData.array[iso2MeasurementDataListType_MeasurementData_currArrayIndex++]);
+ /* valid EE */
+ errn = encodeNBitUnsignedInteger(stream, 1, 0);
+ }
+ }
+ grammarID = 1419;
+ } else if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 1419:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MeasurementData), END_ELEMENT] */
+ if (iso2MeasurementDataListType_MeasurementData_currArrayIndex < iso2MeasurementDataListType->MeasurementData.arrayLen ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ if(errn == 0) {
+ /* First(xsi:type)StartTag[CHARACTERS[UNSIGNED_INTEGER]] */
+ errn = encodeNBitUnsignedInteger(stream, 1, 0);
+ if(errn == 0) {
+ errn = encodeUnsignedInteger16(stream, iso2MeasurementDataListType->MeasurementData.array[iso2MeasurementDataListType_MeasurementData_currArrayIndex++]);
+ /* valid EE */
+ errn = encodeNBitUnsignedInteger(stream, 1, 0);
+ }
+ }
+ grammarID = 1420;
+ } else if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 1420:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MeasurementData), END_ELEMENT] */
+ if (iso2MeasurementDataListType_MeasurementData_currArrayIndex < iso2MeasurementDataListType->MeasurementData.arrayLen ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ if(errn == 0) {
+ /* First(xsi:type)StartTag[CHARACTERS[UNSIGNED_INTEGER]] */
+ errn = encodeNBitUnsignedInteger(stream, 1, 0);
+ if(errn == 0) {
+ errn = encodeUnsignedInteger16(stream, iso2MeasurementDataListType->MeasurementData.array[iso2MeasurementDataListType_MeasurementData_currArrayIndex++]);
+ /* valid EE */
+ errn = encodeNBitUnsignedInteger(stream, 1, 0);
+ }
+ }
+ grammarID = 1421;
+ } else if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 1421:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MeasurementData), END_ELEMENT] */
+ if (iso2MeasurementDataListType_MeasurementData_currArrayIndex < iso2MeasurementDataListType->MeasurementData.arrayLen ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ if(errn == 0) {
+ /* First(xsi:type)StartTag[CHARACTERS[UNSIGNED_INTEGER]] */
+ errn = encodeNBitUnsignedInteger(stream, 1, 0);
+ if(errn == 0) {
+ errn = encodeUnsignedInteger16(stream, iso2MeasurementDataListType->MeasurementData.array[iso2MeasurementDataListType_MeasurementData_currArrayIndex++]);
+ /* valid EE */
+ errn = encodeNBitUnsignedInteger(stream, 1, 0);
+ }
+ }
+ grammarID = 1422;
+ } else if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 1422:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MeasurementData), END_ELEMENT] */
+ if (iso2MeasurementDataListType_MeasurementData_currArrayIndex < iso2MeasurementDataListType->MeasurementData.arrayLen ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ if(errn == 0) {
+ /* First(xsi:type)StartTag[CHARACTERS[UNSIGNED_INTEGER]] */
+ errn = encodeNBitUnsignedInteger(stream, 1, 0);
+ if(errn == 0) {
+ errn = encodeUnsignedInteger16(stream, iso2MeasurementDataListType->MeasurementData.array[iso2MeasurementDataListType_MeasurementData_currArrayIndex++]);
+ /* valid EE */
+ errn = encodeNBitUnsignedInteger(stream, 1, 0);
+ }
+ }
+ grammarID = 1423;
+ } else if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 1423:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MeasurementData), END_ELEMENT] */
+ if (iso2MeasurementDataListType_MeasurementData_currArrayIndex < iso2MeasurementDataListType->MeasurementData.arrayLen ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ if(errn == 0) {
+ /* First(xsi:type)StartTag[CHARACTERS[UNSIGNED_INTEGER]] */
+ errn = encodeNBitUnsignedInteger(stream, 1, 0);
+ if(errn == 0) {
+ errn = encodeUnsignedInteger16(stream, iso2MeasurementDataListType->MeasurementData.array[iso2MeasurementDataListType_MeasurementData_currArrayIndex++]);
+ /* valid EE */
+ errn = encodeNBitUnsignedInteger(stream, 1, 0);
+ }
+ }
+ grammarID = 1424;
+ } else if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 1424:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MeasurementData), END_ELEMENT] */
+ if (iso2MeasurementDataListType_MeasurementData_currArrayIndex < iso2MeasurementDataListType->MeasurementData.arrayLen ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ if(errn == 0) {
+ /* First(xsi:type)StartTag[CHARACTERS[UNSIGNED_INTEGER]] */
+ errn = encodeNBitUnsignedInteger(stream, 1, 0);
+ if(errn == 0) {
+ errn = encodeUnsignedInteger16(stream, iso2MeasurementDataListType->MeasurementData.array[iso2MeasurementDataListType_MeasurementData_currArrayIndex++]);
+ /* valid EE */
+ errn = encodeNBitUnsignedInteger(stream, 1, 0);
+ }
+ }
+ grammarID = 1425;
+ } else if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 1425:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MeasurementData), END_ELEMENT] */
+ if (iso2MeasurementDataListType_MeasurementData_currArrayIndex < iso2MeasurementDataListType->MeasurementData.arrayLen ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ if(errn == 0) {
+ /* First(xsi:type)StartTag[CHARACTERS[UNSIGNED_INTEGER]] */
+ errn = encodeNBitUnsignedInteger(stream, 1, 0);
+ if(errn == 0) {
+ errn = encodeUnsignedInteger16(stream, iso2MeasurementDataListType->MeasurementData.array[iso2MeasurementDataListType_MeasurementData_currArrayIndex++]);
+ /* valid EE */
+ errn = encodeNBitUnsignedInteger(stream, 1, 0);
+ }
+ }
+ grammarID = 1426;
+ } else if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 1426:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MeasurementData), END_ELEMENT] */
+ if (iso2MeasurementDataListType_MeasurementData_currArrayIndex < iso2MeasurementDataListType->MeasurementData.arrayLen ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ if(errn == 0) {
+ /* First(xsi:type)StartTag[CHARACTERS[UNSIGNED_INTEGER]] */
+ errn = encodeNBitUnsignedInteger(stream, 1, 0);
+ if(errn == 0) {
+ errn = encodeUnsignedInteger16(stream, iso2MeasurementDataListType->MeasurementData.array[iso2MeasurementDataListType_MeasurementData_currArrayIndex++]);
+ /* valid EE */
+ errn = encodeNBitUnsignedInteger(stream, 1, 0);
+ }
+ }
+ grammarID = 1427;
+ } else if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 1427:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MeasurementData), END_ELEMENT] */
+ if (iso2MeasurementDataListType_MeasurementData_currArrayIndex < iso2MeasurementDataListType->MeasurementData.arrayLen ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ if(errn == 0) {
+ /* First(xsi:type)StartTag[CHARACTERS[UNSIGNED_INTEGER]] */
+ errn = encodeNBitUnsignedInteger(stream, 1, 0);
+ if(errn == 0) {
+ errn = encodeUnsignedInteger16(stream, iso2MeasurementDataListType->MeasurementData.array[iso2MeasurementDataListType_MeasurementData_currArrayIndex++]);
+ /* valid EE */
+ errn = encodeNBitUnsignedInteger(stream, 1, 0);
+ }
+ }
+ grammarID = 1428;
+ } else if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 1428:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MeasurementData), END_ELEMENT] */
+ if (iso2MeasurementDataListType_MeasurementData_currArrayIndex < iso2MeasurementDataListType->MeasurementData.arrayLen ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ if(errn == 0) {
+ /* First(xsi:type)StartTag[CHARACTERS[UNSIGNED_INTEGER]] */
+ errn = encodeNBitUnsignedInteger(stream, 1, 0);
+ if(errn == 0) {
+ errn = encodeUnsignedInteger16(stream, iso2MeasurementDataListType->MeasurementData.array[iso2MeasurementDataListType_MeasurementData_currArrayIndex++]);
+ /* valid EE */
+ errn = encodeNBitUnsignedInteger(stream, 1, 0);
+ }
+ }
+ grammarID = 1429;
+ } else if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 1429:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MeasurementData), END_ELEMENT] */
+ if (iso2MeasurementDataListType_MeasurementData_currArrayIndex < iso2MeasurementDataListType->MeasurementData.arrayLen ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ if(errn == 0) {
+ /* First(xsi:type)StartTag[CHARACTERS[UNSIGNED_INTEGER]] */
+ errn = encodeNBitUnsignedInteger(stream, 1, 0);
+ if(errn == 0) {
+ errn = encodeUnsignedInteger16(stream, iso2MeasurementDataListType->MeasurementData.array[iso2MeasurementDataListType_MeasurementData_currArrayIndex++]);
+ /* valid EE */
+ errn = encodeNBitUnsignedInteger(stream, 1, 0);
+ }
+ }
+ grammarID = 1430;
+ } else if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 1430:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MeasurementData), END_ELEMENT] */
+ if (iso2MeasurementDataListType_MeasurementData_currArrayIndex < iso2MeasurementDataListType->MeasurementData.arrayLen ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ if(errn == 0) {
+ /* First(xsi:type)StartTag[CHARACTERS[UNSIGNED_INTEGER]] */
+ errn = encodeNBitUnsignedInteger(stream, 1, 0);
+ if(errn == 0) {
+ errn = encodeUnsignedInteger16(stream, iso2MeasurementDataListType->MeasurementData.array[iso2MeasurementDataListType_MeasurementData_currArrayIndex++]);
+ /* valid EE */
+ errn = encodeNBitUnsignedInteger(stream, 1, 0);
+ }
+ }
+ grammarID = 1431;
+ } else if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 1431:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MeasurementData), END_ELEMENT] */
+ if (iso2MeasurementDataListType_MeasurementData_currArrayIndex < iso2MeasurementDataListType->MeasurementData.arrayLen ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ if(errn == 0) {
+ /* First(xsi:type)StartTag[CHARACTERS[UNSIGNED_INTEGER]] */
+ errn = encodeNBitUnsignedInteger(stream, 1, 0);
+ if(errn == 0) {
+ errn = encodeUnsignedInteger16(stream, iso2MeasurementDataListType->MeasurementData.array[iso2MeasurementDataListType_MeasurementData_currArrayIndex++]);
+ /* valid EE */
+ errn = encodeNBitUnsignedInteger(stream, 1, 0);
+ }
+ }
+ grammarID = 1432;
+ } else if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 1432:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MeasurementData), END_ELEMENT] */
+ if (iso2MeasurementDataListType_MeasurementData_currArrayIndex < iso2MeasurementDataListType->MeasurementData.arrayLen ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ if(errn == 0) {
+ /* First(xsi:type)StartTag[CHARACTERS[UNSIGNED_INTEGER]] */
+ errn = encodeNBitUnsignedInteger(stream, 1, 0);
+ if(errn == 0) {
+ errn = encodeUnsignedInteger16(stream, iso2MeasurementDataListType->MeasurementData.array[iso2MeasurementDataListType_MeasurementData_currArrayIndex++]);
+ /* valid EE */
+ errn = encodeNBitUnsignedInteger(stream, 1, 0);
+ }
+ }
+ grammarID = 1433;
+ } else if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 1433:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MeasurementData), END_ELEMENT] */
+ if (iso2MeasurementDataListType_MeasurementData_currArrayIndex < iso2MeasurementDataListType->MeasurementData.arrayLen ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ if(errn == 0) {
+ /* First(xsi:type)StartTag[CHARACTERS[UNSIGNED_INTEGER]] */
+ errn = encodeNBitUnsignedInteger(stream, 1, 0);
+ if(errn == 0) {
+ errn = encodeUnsignedInteger16(stream, iso2MeasurementDataListType->MeasurementData.array[iso2MeasurementDataListType_MeasurementData_currArrayIndex++]);
+ /* valid EE */
+ errn = encodeNBitUnsignedInteger(stream, 1, 0);
+ }
+ }
+ grammarID = 1434;
+ } else if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 1434:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MeasurementData), END_ELEMENT] */
+ if (iso2MeasurementDataListType_MeasurementData_currArrayIndex < iso2MeasurementDataListType->MeasurementData.arrayLen ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ if(errn == 0) {
+ /* First(xsi:type)StartTag[CHARACTERS[UNSIGNED_INTEGER]] */
+ errn = encodeNBitUnsignedInteger(stream, 1, 0);
+ if(errn == 0) {
+ errn = encodeUnsignedInteger16(stream, iso2MeasurementDataListType->MeasurementData.array[iso2MeasurementDataListType_MeasurementData_currArrayIndex++]);
+ /* valid EE */
+ errn = encodeNBitUnsignedInteger(stream, 1, 0);
+ }
+ }
+ grammarID = 1435;
+ } else if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 1435:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MeasurementData), END_ELEMENT] */
+ if (iso2MeasurementDataListType_MeasurementData_currArrayIndex < iso2MeasurementDataListType->MeasurementData.arrayLen ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ if(errn == 0) {
+ /* First(xsi:type)StartTag[CHARACTERS[UNSIGNED_INTEGER]] */
+ errn = encodeNBitUnsignedInteger(stream, 1, 0);
+ if(errn == 0) {
+ errn = encodeUnsignedInteger16(stream, iso2MeasurementDataListType->MeasurementData.array[iso2MeasurementDataListType_MeasurementData_currArrayIndex++]);
+ /* valid EE */
+ errn = encodeNBitUnsignedInteger(stream, 1, 0);
+ }
+ }
+ grammarID = 1436;
+ } else if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 1436:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MeasurementData), END_ELEMENT] */
+ if (iso2MeasurementDataListType_MeasurementData_currArrayIndex < iso2MeasurementDataListType->MeasurementData.arrayLen ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ if(errn == 0) {
+ /* First(xsi:type)StartTag[CHARACTERS[UNSIGNED_INTEGER]] */
+ errn = encodeNBitUnsignedInteger(stream, 1, 0);
+ if(errn == 0) {
+ errn = encodeUnsignedInteger16(stream, iso2MeasurementDataListType->MeasurementData.array[iso2MeasurementDataListType_MeasurementData_currArrayIndex++]);
+ /* valid EE */
+ errn = encodeNBitUnsignedInteger(stream, 1, 0);
+ }
+ }
+ grammarID = 1437;
+ } else if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 1437:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MeasurementData), END_ELEMENT] */
+ if (iso2MeasurementDataListType_MeasurementData_currArrayIndex < iso2MeasurementDataListType->MeasurementData.arrayLen ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ if(errn == 0) {
+ /* First(xsi:type)StartTag[CHARACTERS[UNSIGNED_INTEGER]] */
+ errn = encodeNBitUnsignedInteger(stream, 1, 0);
+ if(errn == 0) {
+ errn = encodeUnsignedInteger16(stream, iso2MeasurementDataListType->MeasurementData.array[iso2MeasurementDataListType_MeasurementData_currArrayIndex++]);
+ /* valid EE */
+ errn = encodeNBitUnsignedInteger(stream, 1, 0);
+ }
+ }
+ grammarID = 1438;
+ } else if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 1438:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MeasurementData), END_ELEMENT] */
+ if (iso2MeasurementDataListType_MeasurementData_currArrayIndex < iso2MeasurementDataListType->MeasurementData.arrayLen ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ if(errn == 0) {
+ /* First(xsi:type)StartTag[CHARACTERS[UNSIGNED_INTEGER]] */
+ errn = encodeNBitUnsignedInteger(stream, 1, 0);
+ if(errn == 0) {
+ errn = encodeUnsignedInteger16(stream, iso2MeasurementDataListType->MeasurementData.array[iso2MeasurementDataListType_MeasurementData_currArrayIndex++]);
+ /* valid EE */
+ errn = encodeNBitUnsignedInteger(stream, 1, 0);
+ }
+ }
+ grammarID = 1439;
+ } else if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 1439:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MeasurementData), END_ELEMENT] */
+ if (iso2MeasurementDataListType_MeasurementData_currArrayIndex < iso2MeasurementDataListType->MeasurementData.arrayLen ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ if(errn == 0) {
+ /* First(xsi:type)StartTag[CHARACTERS[UNSIGNED_INTEGER]] */
+ errn = encodeNBitUnsignedInteger(stream, 1, 0);
+ if(errn == 0) {
+ errn = encodeUnsignedInteger16(stream, iso2MeasurementDataListType->MeasurementData.array[iso2MeasurementDataListType_MeasurementData_currArrayIndex++]);
+ /* valid EE */
+ errn = encodeNBitUnsignedInteger(stream, 1, 0);
+ }
+ }
+ grammarID = 1440;
+ } else if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 1440:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MeasurementData), END_ELEMENT] */
+ if (iso2MeasurementDataListType_MeasurementData_currArrayIndex < iso2MeasurementDataListType->MeasurementData.arrayLen ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ if(errn == 0) {
+ /* First(xsi:type)StartTag[CHARACTERS[UNSIGNED_INTEGER]] */
+ errn = encodeNBitUnsignedInteger(stream, 1, 0);
+ if(errn == 0) {
+ errn = encodeUnsignedInteger16(stream, iso2MeasurementDataListType->MeasurementData.array[iso2MeasurementDataListType_MeasurementData_currArrayIndex++]);
+ /* valid EE */
+ errn = encodeNBitUnsignedInteger(stream, 1, 0);
+ }
+ }
+ grammarID = 1441;
+ } else if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 1441:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MeasurementData), END_ELEMENT] */
+ if (iso2MeasurementDataListType_MeasurementData_currArrayIndex < iso2MeasurementDataListType->MeasurementData.arrayLen ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ if(errn == 0) {
+ /* First(xsi:type)StartTag[CHARACTERS[UNSIGNED_INTEGER]] */
+ errn = encodeNBitUnsignedInteger(stream, 1, 0);
+ if(errn == 0) {
+ errn = encodeUnsignedInteger16(stream, iso2MeasurementDataListType->MeasurementData.array[iso2MeasurementDataListType_MeasurementData_currArrayIndex++]);
+ /* valid EE */
+ errn = encodeNBitUnsignedInteger(stream, 1, 0);
+ }
+ }
+ grammarID = 1442;
+ } else if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 1442:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MeasurementData), END_ELEMENT] */
+ if (iso2MeasurementDataListType_MeasurementData_currArrayIndex < iso2MeasurementDataListType->MeasurementData.arrayLen ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ if(errn == 0) {
+ /* First(xsi:type)StartTag[CHARACTERS[UNSIGNED_INTEGER]] */
+ errn = encodeNBitUnsignedInteger(stream, 1, 0);
+ if(errn == 0) {
+ errn = encodeUnsignedInteger16(stream, iso2MeasurementDataListType->MeasurementData.array[iso2MeasurementDataListType_MeasurementData_currArrayIndex++]);
+ /* valid EE */
+ errn = encodeNBitUnsignedInteger(stream, 1, 0);
+ }
+ }
+ grammarID = 1443;
+ } else if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 1443:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MeasurementData), END_ELEMENT] */
+ if (iso2MeasurementDataListType_MeasurementData_currArrayIndex < iso2MeasurementDataListType->MeasurementData.arrayLen ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ if(errn == 0) {
+ /* First(xsi:type)StartTag[CHARACTERS[UNSIGNED_INTEGER]] */
+ errn = encodeNBitUnsignedInteger(stream, 1, 0);
+ if(errn == 0) {
+ errn = encodeUnsignedInteger16(stream, iso2MeasurementDataListType->MeasurementData.array[iso2MeasurementDataListType_MeasurementData_currArrayIndex++]);
+ /* valid EE */
+ errn = encodeNBitUnsignedInteger(stream, 1, 0);
+ }
+ }
+ grammarID = 1444;
+ } else if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 1444:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MeasurementData), END_ELEMENT] */
+ if (iso2MeasurementDataListType_MeasurementData_currArrayIndex < iso2MeasurementDataListType->MeasurementData.arrayLen ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ if(errn == 0) {
+ /* First(xsi:type)StartTag[CHARACTERS[UNSIGNED_INTEGER]] */
+ errn = encodeNBitUnsignedInteger(stream, 1, 0);
+ if(errn == 0) {
+ errn = encodeUnsignedInteger16(stream, iso2MeasurementDataListType->MeasurementData.array[iso2MeasurementDataListType_MeasurementData_currArrayIndex++]);
+ /* valid EE */
+ errn = encodeNBitUnsignedInteger(stream, 1, 0);
+ }
+ }
+ grammarID = 1445;
+ } else if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 1445:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MeasurementData), END_ELEMENT] */
+ if (iso2MeasurementDataListType_MeasurementData_currArrayIndex < iso2MeasurementDataListType->MeasurementData.arrayLen ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ if(errn == 0) {
+ /* First(xsi:type)StartTag[CHARACTERS[UNSIGNED_INTEGER]] */
+ errn = encodeNBitUnsignedInteger(stream, 1, 0);
+ if(errn == 0) {
+ errn = encodeUnsignedInteger16(stream, iso2MeasurementDataListType->MeasurementData.array[iso2MeasurementDataListType_MeasurementData_currArrayIndex++]);
+ /* valid EE */
+ errn = encodeNBitUnsignedInteger(stream, 1, 0);
+ }
+ }
+ grammarID = 1446;
+ } else if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 1446:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MeasurementData), END_ELEMENT] */
+ if (iso2MeasurementDataListType_MeasurementData_currArrayIndex < iso2MeasurementDataListType->MeasurementData.arrayLen ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ if(errn == 0) {
+ /* First(xsi:type)StartTag[CHARACTERS[UNSIGNED_INTEGER]] */
+ errn = encodeNBitUnsignedInteger(stream, 1, 0);
+ if(errn == 0) {
+ errn = encodeUnsignedInteger16(stream, iso2MeasurementDataListType->MeasurementData.array[iso2MeasurementDataListType_MeasurementData_currArrayIndex++]);
+ /* valid EE */
+ errn = encodeNBitUnsignedInteger(stream, 1, 0);
+ }
+ }
+ grammarID = 1447;
+ } else if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 1447:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MeasurementData), END_ELEMENT] */
+ if (iso2MeasurementDataListType_MeasurementData_currArrayIndex < iso2MeasurementDataListType->MeasurementData.arrayLen ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ if(errn == 0) {
+ /* First(xsi:type)StartTag[CHARACTERS[UNSIGNED_INTEGER]] */
+ errn = encodeNBitUnsignedInteger(stream, 1, 0);
+ if(errn == 0) {
+ errn = encodeUnsignedInteger16(stream, iso2MeasurementDataListType->MeasurementData.array[iso2MeasurementDataListType_MeasurementData_currArrayIndex++]);
+ /* valid EE */
+ errn = encodeNBitUnsignedInteger(stream, 1, 0);
+ }
+ }
+ grammarID = 1448;
+ } else if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 1448:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MeasurementData), END_ELEMENT] */
+ if (iso2MeasurementDataListType_MeasurementData_currArrayIndex < iso2MeasurementDataListType->MeasurementData.arrayLen ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ if(errn == 0) {
+ /* First(xsi:type)StartTag[CHARACTERS[UNSIGNED_INTEGER]] */
+ errn = encodeNBitUnsignedInteger(stream, 1, 0);
+ if(errn == 0) {
+ errn = encodeUnsignedInteger16(stream, iso2MeasurementDataListType->MeasurementData.array[iso2MeasurementDataListType_MeasurementData_currArrayIndex++]);
+ /* valid EE */
+ errn = encodeNBitUnsignedInteger(stream, 1, 0);
+ }
+ }
+ grammarID = 1449;
+ } else if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 1449:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MeasurementData), END_ELEMENT] */
+ if (iso2MeasurementDataListType_MeasurementData_currArrayIndex < iso2MeasurementDataListType->MeasurementData.arrayLen ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ if(errn == 0) {
+ /* First(xsi:type)StartTag[CHARACTERS[UNSIGNED_INTEGER]] */
+ errn = encodeNBitUnsignedInteger(stream, 1, 0);
+ if(errn == 0) {
+ errn = encodeUnsignedInteger16(stream, iso2MeasurementDataListType->MeasurementData.array[iso2MeasurementDataListType_MeasurementData_currArrayIndex++]);
+ /* valid EE */
+ errn = encodeNBitUnsignedInteger(stream, 1, 0);
+ }
+ }
+ grammarID = 1450;
+ } else if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 1450:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MeasurementData), END_ELEMENT] */
+ if (iso2MeasurementDataListType_MeasurementData_currArrayIndex < iso2MeasurementDataListType->MeasurementData.arrayLen ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ if(errn == 0) {
+ /* First(xsi:type)StartTag[CHARACTERS[UNSIGNED_INTEGER]] */
+ errn = encodeNBitUnsignedInteger(stream, 1, 0);
+ if(errn == 0) {
+ errn = encodeUnsignedInteger16(stream, iso2MeasurementDataListType->MeasurementData.array[iso2MeasurementDataListType_MeasurementData_currArrayIndex++]);
+ /* valid EE */
+ errn = encodeNBitUnsignedInteger(stream, 1, 0);
+ }
+ }
+ grammarID = 1451;
+ } else if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 1451:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MeasurementData), END_ELEMENT] */
+ if (iso2MeasurementDataListType_MeasurementData_currArrayIndex < iso2MeasurementDataListType->MeasurementData.arrayLen ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ if(errn == 0) {
+ /* First(xsi:type)StartTag[CHARACTERS[UNSIGNED_INTEGER]] */
+ errn = encodeNBitUnsignedInteger(stream, 1, 0);
+ if(errn == 0) {
+ errn = encodeUnsignedInteger16(stream, iso2MeasurementDataListType->MeasurementData.array[iso2MeasurementDataListType_MeasurementData_currArrayIndex++]);
+ /* valid EE */
+ errn = encodeNBitUnsignedInteger(stream, 1, 0);
+ }
+ }
+ grammarID = 1452;
+ } else if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 1452:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MeasurementData), END_ELEMENT] */
+ if (iso2MeasurementDataListType_MeasurementData_currArrayIndex < iso2MeasurementDataListType->MeasurementData.arrayLen ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ if(errn == 0) {
+ /* First(xsi:type)StartTag[CHARACTERS[UNSIGNED_INTEGER]] */
+ errn = encodeNBitUnsignedInteger(stream, 1, 0);
+ if(errn == 0) {
+ errn = encodeUnsignedInteger16(stream, iso2MeasurementDataListType->MeasurementData.array[iso2MeasurementDataListType_MeasurementData_currArrayIndex++]);
+ /* valid EE */
+ errn = encodeNBitUnsignedInteger(stream, 1, 0);
+ }
+ }
+ grammarID = 1453;
+ } else if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 1453:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MeasurementData), END_ELEMENT] */
+ if (iso2MeasurementDataListType_MeasurementData_currArrayIndex < iso2MeasurementDataListType->MeasurementData.arrayLen ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ if(errn == 0) {
+ /* First(xsi:type)StartTag[CHARACTERS[UNSIGNED_INTEGER]] */
+ errn = encodeNBitUnsignedInteger(stream, 1, 0);
+ if(errn == 0) {
+ errn = encodeUnsignedInteger16(stream, iso2MeasurementDataListType->MeasurementData.array[iso2MeasurementDataListType_MeasurementData_currArrayIndex++]);
+ /* valid EE */
+ errn = encodeNBitUnsignedInteger(stream, 1, 0);
+ }
+ }
+ grammarID = 1454;
+ } else if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 1454:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MeasurementData), END_ELEMENT] */
+ if (iso2MeasurementDataListType_MeasurementData_currArrayIndex < iso2MeasurementDataListType->MeasurementData.arrayLen ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ if(errn == 0) {
+ /* First(xsi:type)StartTag[CHARACTERS[UNSIGNED_INTEGER]] */
+ errn = encodeNBitUnsignedInteger(stream, 1, 0);
+ if(errn == 0) {
+ errn = encodeUnsignedInteger16(stream, iso2MeasurementDataListType->MeasurementData.array[iso2MeasurementDataListType_MeasurementData_currArrayIndex++]);
+ /* valid EE */
+ errn = encodeNBitUnsignedInteger(stream, 1, 0);
+ }
+ }
+ grammarID = 1455;
+ } else if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 1455:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MeasurementData), END_ELEMENT] */
+ if (iso2MeasurementDataListType_MeasurementData_currArrayIndex < iso2MeasurementDataListType->MeasurementData.arrayLen ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ if(errn == 0) {
+ /* First(xsi:type)StartTag[CHARACTERS[UNSIGNED_INTEGER]] */
+ errn = encodeNBitUnsignedInteger(stream, 1, 0);
+ if(errn == 0) {
+ errn = encodeUnsignedInteger16(stream, iso2MeasurementDataListType->MeasurementData.array[iso2MeasurementDataListType_MeasurementData_currArrayIndex++]);
+ /* valid EE */
+ errn = encodeNBitUnsignedInteger(stream, 1, 0);
+ }
+ }
+ grammarID = 1456;
+ } else if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 1456:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MeasurementData), END_ELEMENT] */
+ if (iso2MeasurementDataListType_MeasurementData_currArrayIndex < iso2MeasurementDataListType->MeasurementData.arrayLen ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ if(errn == 0) {
+ /* First(xsi:type)StartTag[CHARACTERS[UNSIGNED_INTEGER]] */
+ errn = encodeNBitUnsignedInteger(stream, 1, 0);
+ if(errn == 0) {
+ errn = encodeUnsignedInteger16(stream, iso2MeasurementDataListType->MeasurementData.array[iso2MeasurementDataListType_MeasurementData_currArrayIndex++]);
+ /* valid EE */
+ errn = encodeNBitUnsignedInteger(stream, 1, 0);
+ }
+ }
+ grammarID = 1457;
+ } else if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 1457:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MeasurementData), END_ELEMENT] */
+ if (iso2MeasurementDataListType_MeasurementData_currArrayIndex < iso2MeasurementDataListType->MeasurementData.arrayLen ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ if(errn == 0) {
+ /* First(xsi:type)StartTag[CHARACTERS[UNSIGNED_INTEGER]] */
+ errn = encodeNBitUnsignedInteger(stream, 1, 0);
+ if(errn == 0) {
+ errn = encodeUnsignedInteger16(stream, iso2MeasurementDataListType->MeasurementData.array[iso2MeasurementDataListType_MeasurementData_currArrayIndex++]);
+ /* valid EE */
+ errn = encodeNBitUnsignedInteger(stream, 1, 0);
+ }
+ }
+ grammarID = 1458;
+ } else if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 1458:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MeasurementData), END_ELEMENT] */
+ if (iso2MeasurementDataListType_MeasurementData_currArrayIndex < iso2MeasurementDataListType->MeasurementData.arrayLen ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ if(errn == 0) {
+ /* First(xsi:type)StartTag[CHARACTERS[UNSIGNED_INTEGER]] */
+ errn = encodeNBitUnsignedInteger(stream, 1, 0);
+ if(errn == 0) {
+ errn = encodeUnsignedInteger16(stream, iso2MeasurementDataListType->MeasurementData.array[iso2MeasurementDataListType_MeasurementData_currArrayIndex++]);
+ /* valid EE */
+ errn = encodeNBitUnsignedInteger(stream, 1, 0);
+ }
+ }
+ grammarID = 1459;
+ } else if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 1459:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MeasurementData), END_ELEMENT] */
+ if (iso2MeasurementDataListType_MeasurementData_currArrayIndex < iso2MeasurementDataListType->MeasurementData.arrayLen ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ if(errn == 0) {
+ /* First(xsi:type)StartTag[CHARACTERS[UNSIGNED_INTEGER]] */
+ errn = encodeNBitUnsignedInteger(stream, 1, 0);
+ if(errn == 0) {
+ errn = encodeUnsignedInteger16(stream, iso2MeasurementDataListType->MeasurementData.array[iso2MeasurementDataListType_MeasurementData_currArrayIndex++]);
+ /* valid EE */
+ errn = encodeNBitUnsignedInteger(stream, 1, 0);
+ }
+ }
+ grammarID = 1460;
+ } else if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 1460:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MeasurementData), END_ELEMENT] */
+ if (iso2MeasurementDataListType_MeasurementData_currArrayIndex < iso2MeasurementDataListType->MeasurementData.arrayLen ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ if(errn == 0) {
+ /* First(xsi:type)StartTag[CHARACTERS[UNSIGNED_INTEGER]] */
+ errn = encodeNBitUnsignedInteger(stream, 1, 0);
+ if(errn == 0) {
+ errn = encodeUnsignedInteger16(stream, iso2MeasurementDataListType->MeasurementData.array[iso2MeasurementDataListType_MeasurementData_currArrayIndex++]);
+ /* valid EE */
+ errn = encodeNBitUnsignedInteger(stream, 1, 0);
+ }
+ }
+ grammarID = 1461;
+ } else if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 1461:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MeasurementData), END_ELEMENT] */
+ if (iso2MeasurementDataListType_MeasurementData_currArrayIndex < iso2MeasurementDataListType->MeasurementData.arrayLen ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ if(errn == 0) {
+ /* First(xsi:type)StartTag[CHARACTERS[UNSIGNED_INTEGER]] */
+ errn = encodeNBitUnsignedInteger(stream, 1, 0);
+ if(errn == 0) {
+ errn = encodeUnsignedInteger16(stream, iso2MeasurementDataListType->MeasurementData.array[iso2MeasurementDataListType_MeasurementData_currArrayIndex++]);
+ /* valid EE */
+ errn = encodeNBitUnsignedInteger(stream, 1, 0);
+ }
+ }
+ grammarID = 1462;
+ } else if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 1462:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MeasurementData), END_ELEMENT] */
+ if (iso2MeasurementDataListType_MeasurementData_currArrayIndex < iso2MeasurementDataListType->MeasurementData.arrayLen ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ if(errn == 0) {
+ /* First(xsi:type)StartTag[CHARACTERS[UNSIGNED_INTEGER]] */
+ errn = encodeNBitUnsignedInteger(stream, 1, 0);
+ if(errn == 0) {
+ errn = encodeUnsignedInteger16(stream, iso2MeasurementDataListType->MeasurementData.array[iso2MeasurementDataListType_MeasurementData_currArrayIndex++]);
+ /* valid EE */
+ errn = encodeNBitUnsignedInteger(stream, 1, 0);
+ }
+ }
+ grammarID = 1463;
+ } else if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 1463:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MeasurementData), END_ELEMENT] */
+ if (iso2MeasurementDataListType_MeasurementData_currArrayIndex < iso2MeasurementDataListType->MeasurementData.arrayLen ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ if(errn == 0) {
+ /* First(xsi:type)StartTag[CHARACTERS[UNSIGNED_INTEGER]] */
+ errn = encodeNBitUnsignedInteger(stream, 1, 0);
+ if(errn == 0) {
+ errn = encodeUnsignedInteger16(stream, iso2MeasurementDataListType->MeasurementData.array[iso2MeasurementDataListType_MeasurementData_currArrayIndex++]);
+ /* valid EE */
+ errn = encodeNBitUnsignedInteger(stream, 1, 0);
+ }
+ }
+ grammarID = 1464;
+ } else if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 1464:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MeasurementData), END_ELEMENT] */
+ if (iso2MeasurementDataListType_MeasurementData_currArrayIndex < iso2MeasurementDataListType->MeasurementData.arrayLen ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ if(errn == 0) {
+ /* First(xsi:type)StartTag[CHARACTERS[UNSIGNED_INTEGER]] */
+ errn = encodeNBitUnsignedInteger(stream, 1, 0);
+ if(errn == 0) {
+ errn = encodeUnsignedInteger16(stream, iso2MeasurementDataListType->MeasurementData.array[iso2MeasurementDataListType_MeasurementData_currArrayIndex++]);
+ /* valid EE */
+ errn = encodeNBitUnsignedInteger(stream, 1, 0);
+ }
+ }
+ grammarID = 1465;
+ } else if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 1465:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MeasurementData), END_ELEMENT] */
+ if (iso2MeasurementDataListType_MeasurementData_currArrayIndex < iso2MeasurementDataListType->MeasurementData.arrayLen ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ if(errn == 0) {
+ /* First(xsi:type)StartTag[CHARACTERS[UNSIGNED_INTEGER]] */
+ errn = encodeNBitUnsignedInteger(stream, 1, 0);
+ if(errn == 0) {
+ errn = encodeUnsignedInteger16(stream, iso2MeasurementDataListType->MeasurementData.array[iso2MeasurementDataListType_MeasurementData_currArrayIndex++]);
+ /* valid EE */
+ errn = encodeNBitUnsignedInteger(stream, 1, 0);
+ }
+ }
+ grammarID = 1466;
+ } else if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 1466:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MeasurementData), END_ELEMENT] */
+ if (iso2MeasurementDataListType_MeasurementData_currArrayIndex < iso2MeasurementDataListType->MeasurementData.arrayLen ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ if(errn == 0) {
+ /* First(xsi:type)StartTag[CHARACTERS[UNSIGNED_INTEGER]] */
+ errn = encodeNBitUnsignedInteger(stream, 1, 0);
+ if(errn == 0) {
+ errn = encodeUnsignedInteger16(stream, iso2MeasurementDataListType->MeasurementData.array[iso2MeasurementDataListType_MeasurementData_currArrayIndex++]);
+ /* valid EE */
+ errn = encodeNBitUnsignedInteger(stream, 1, 0);
+ }
+ }
+ grammarID = 1467;
+ } else if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 1467:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MeasurementData), END_ELEMENT] */
+ if (iso2MeasurementDataListType_MeasurementData_currArrayIndex < iso2MeasurementDataListType->MeasurementData.arrayLen ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ if(errn == 0) {
+ /* First(xsi:type)StartTag[CHARACTERS[UNSIGNED_INTEGER]] */
+ errn = encodeNBitUnsignedInteger(stream, 1, 0);
+ if(errn == 0) {
+ errn = encodeUnsignedInteger16(stream, iso2MeasurementDataListType->MeasurementData.array[iso2MeasurementDataListType_MeasurementData_currArrayIndex++]);
+ /* valid EE */
+ errn = encodeNBitUnsignedInteger(stream, 1, 0);
+ }
+ }
+ grammarID = 3;
+ } else if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 3:
+ /* Element[END_ELEMENT] */
+ if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 1, 0);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } 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:2016:MsgDataTypes,CertificateChainType', base type name='anyType', content type='ELEMENT', isAbstract='false', hasTypeId='false', final='0', block='0', particle='("urn:iso:15118:2:2016:MsgDataTypes":Certificate,"urn:iso:15118:2:2016:MsgDataTypes":SubCertificates{0-1})', derivedBy='RESTRICTION'. */
+static int encode_iso2CertificateChainType(bitstream_t* stream, struct iso2CertificateChainType* iso2CertificateChainType) {
+ int grammarID = 1468;
+ int done = 0;
+
+
+ while(!done) {
+ switch(grammarID) {
+ case 1468:
+ /* FirstStartTag[ATTRIBUTE[STRING]({urn:iso:15118:2:2016:MsgDataTypes}Id), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}Certificate)] */
+ if ( iso2CertificateChainType->Id_isUsed == 1u ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ if(errn == 0) {
+ /* encode string as string table miss (+2 len)*/
+ errn = encodeUnsignedInteger16(stream, (uint16_t)(iso2CertificateChainType->Id.charactersLen + 2));
+ if (errn == 0) {
+ errn = encodeCharacters(stream, iso2CertificateChainType->Id.characters, iso2CertificateChainType->Id.charactersLen);
+ }
+ }
+ grammarID = 1469;
+ } else if ( 1 == 1 ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ /* FirstStartTag[CHARACTERS[BINARY_BASE64]] */
+ errn = encodeNBitUnsignedInteger(stream, 1, 0);
+ if(errn == 0) {
+ errn = encodeUnsignedInteger16(stream, (uint16_t)(iso2CertificateChainType->Certificate.bytesLen));
+ if (errn == 0) {
+ errn = encodeBytes(stream, iso2CertificateChainType->Certificate.bytes, iso2CertificateChainType->Certificate.bytesLen);
+ }
+ /* valid EE */
+ errn = encodeNBitUnsignedInteger(stream, 1, 0);
+ }
+ }
+ grammarID = 1470;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 1469:
+ /* StartTag[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}Certificate)] */
+ if ( 1 == 1 ) {
+ errn = encodeNBitUnsignedInteger(stream, 1, 0);
+ if(errn == 0) {
+ /* FirstStartTag[CHARACTERS[BINARY_BASE64]] */
+ errn = encodeNBitUnsignedInteger(stream, 1, 0);
+ if(errn == 0) {
+ errn = encodeUnsignedInteger16(stream, (uint16_t)(iso2CertificateChainType->Certificate.bytesLen));
+ if (errn == 0) {
+ errn = encodeBytes(stream, iso2CertificateChainType->Certificate.bytes, iso2CertificateChainType->Certificate.bytesLen);
+ }
+ /* valid EE */
+ errn = encodeNBitUnsignedInteger(stream, 1, 0);
+ }
+ }
+ grammarID = 1470;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 1470:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SubCertificates), END_ELEMENT] */
+ if ( iso2CertificateChainType->SubCertificates_isUsed == 1u ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ if(errn == 0) {
+ errn = encode_iso2SubCertificatesType(stream, &iso2CertificateChainType->SubCertificates );
+ }
+ grammarID = 3;
+ } else if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 3:
+ /* Element[END_ELEMENT] */
+ if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 1, 0);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_GRAMMAR_ID;
+ break;
+ }
+ if(errn) {
+ done = 1;
+ }
+ }
+ return errn;
+}
+
+/* Complex type name='http://www.w3.org/2000/09/xmldsig#,SignaturePropertyType', base type name='anyType', content type='MIXED', isAbstract='false', hasTypeId='false', final='0', block='0', particle='((WC[##other:"http://www.w3.org/2000/09/xmldsig#"])){1-UNBOUNDED}', derivedBy='RESTRICTION'. */
+static int encode_iso2SignaturePropertyType(bitstream_t* stream, struct iso2SignaturePropertyType* iso2SignaturePropertyType) {
+ int grammarID = 1471;
+ int done = 0;
+ int wcDone = 0;
+
+
+ while(!done) {
+ switch(grammarID) {
+ case 1471:
+ /* FirstStartTag[ATTRIBUTE[STRING](Id), ATTRIBUTE[STRING](Target)] */
+ if ( iso2SignaturePropertyType->Id_isUsed == 1u ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ if(errn == 0) {
+ /* encode string as string table miss (+2 len)*/
+ errn = encodeUnsignedInteger16(stream, (uint16_t)(iso2SignaturePropertyType->Id.charactersLen + 2));
+ if (errn == 0) {
+ errn = encodeCharacters(stream, iso2SignaturePropertyType->Id.characters, iso2SignaturePropertyType->Id.charactersLen);
+ }
+ }
+ grammarID = 1472;
+ } else if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ /* encode string as string table miss (+2 len)*/
+ errn = encodeUnsignedInteger16(stream, (uint16_t)(iso2SignaturePropertyType->Target.charactersLen + 2));
+ if (errn == 0) {
+ errn = encodeCharacters(stream, iso2SignaturePropertyType->Target.characters, iso2SignaturePropertyType->Target.charactersLen);
+ }
+ }
+ grammarID = 1473;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 1472:
+ /* StartTag[ATTRIBUTE[STRING](Target)] */
+ if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 1, 0);
+ if(errn == 0) {
+ /* encode string as string table miss (+2 len)*/
+ errn = encodeUnsignedInteger16(stream, (uint16_t)(iso2SignaturePropertyType->Target.charactersLen + 2));
+ if (errn == 0) {
+ errn = encodeCharacters(stream, iso2SignaturePropertyType->Target.characters, iso2SignaturePropertyType->Target.charactersLen);
+ }
+ }
+ grammarID = 1473;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 1473:
+ /* StartTag[START_ELEMENT_GENERIC, CHARACTERS_GENERIC[STRING]] */
+ if (1==0) {
+ errn = EXI_UNSUPPORTED_EVENT_CODE_CHARACTERISTICS;
+ grammarID = 685;
+ } else if ( iso2SignaturePropertyType->ANY_isUsed == 1u ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ /* encode string as string table miss (+2 len)*/
+ errn = encodeUnsignedInteger16(stream, (uint16_t)(iso2SignaturePropertyType->ANY.charactersLen + 2));
+ if (errn == 0) {
+ errn = encodeCharacters(stream, iso2SignaturePropertyType->ANY.characters, iso2SignaturePropertyType->ANY.charactersLen);
+ }
+ }
+ wcDone = 1;
+ grammarID = 1474;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 685:
+ /* Element[START_ELEMENT_GENERIC, END_ELEMENT, CHARACTERS_GENERIC[STRING]] */
+ if (1==0) {
+ errn = EXI_UNSUPPORTED_EVENT_CODE_CHARACTERISTICS;
+ grammarID = 685;
+ } else if ( iso2SignaturePropertyType->ANY_isUsed == 0u || wcDone ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else if ( iso2SignaturePropertyType->ANY_isUsed == 1u ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 2);
+ if(errn == 0) {
+ /* encode string as string table miss (+2 len)*/
+ errn = encodeUnsignedInteger16(stream, (uint16_t)(iso2SignaturePropertyType->ANY.charactersLen + 2));
+ if (errn == 0) {
+ errn = encodeCharacters(stream, iso2SignaturePropertyType->ANY.characters, iso2SignaturePropertyType->ANY.charactersLen);
+ }
+ }
+ wcDone = 1;
+ grammarID = 685;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 1474:
+ /* Element[START_ELEMENT_GENERIC, CHARACTERS_GENERIC[STRING]] */
+ if (1==0) {
+ errn = EXI_UNSUPPORTED_EVENT_CODE_CHARACTERISTICS;
+ grammarID = 685;
+ } else if ( iso2SignaturePropertyType->ANY_isUsed == 1u ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ /* encode string as string table miss (+2 len)*/
+ errn = encodeUnsignedInteger16(stream, (uint16_t)(iso2SignaturePropertyType->ANY.charactersLen + 2));
+ if (errn == 0) {
+ errn = encodeCharacters(stream, iso2SignaturePropertyType->ANY.characters, iso2SignaturePropertyType->ANY.charactersLen);
+ }
+ }
+ wcDone = 1;
+ grammarID = 1474;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_GRAMMAR_ID;
+ break;
+ }
+ if(errn) {
+ done = 1;
+ }
+ }
+ return errn;
+}
+
+/* Complex type name='http://www.w3.org/2000/09/xmldsig#,TransformType', base type name='anyType', content type='MIXED', isAbstract='false', hasTypeId='false', final='0', block='0', particle='((WC[##other:"http://www.w3.org/2000/09/xmldsig#"])|"http://www.w3.org/2000/09/xmldsig#":XPath){0-UNBOUNDED}', derivedBy='RESTRICTION'. */
+static int encode_iso2TransformType(bitstream_t* stream, struct iso2TransformType* iso2TransformType) {
+ int grammarID = 1475;
+ int done = 0;
+ int wcDone = 0;
+
+ unsigned int iso2TransformType_XPath_currArrayIndex = 0;
+
+ while(!done) {
+ switch(grammarID) {
+ case 1475:
+ /* FirstStartTag[ATTRIBUTE[STRING](Algorithm)] */
+ if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 1, 0);
+ if(errn == 0) {
+ /* encode string as string table miss (+2 len)*/
+ errn = encodeUnsignedInteger16(stream, (uint16_t)(iso2TransformType->Algorithm.charactersLen + 2));
+ if (errn == 0) {
+ errn = encodeCharacters(stream, iso2TransformType->Algorithm.characters, iso2TransformType->Algorithm.charactersLen);
+ }
+ }
+ grammarID = 1476;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 1476:
+ /* StartTag[START_ELEMENT({http://www.w3.org/2000/09/xmldsig#}XPath), START_ELEMENT_GENERIC, END_ELEMENT, CHARACTERS_GENERIC[STRING]] */
+ if (iso2TransformType_XPath_currArrayIndex < iso2TransformType->XPath.arrayLen ) {
+ errn = encodeNBitUnsignedInteger(stream, 3, 0);
+ if(errn == 0) {
+ /* First(xsi:type)StartTag[CHARACTERS[STRING]] */
+ errn = encodeNBitUnsignedInteger(stream, 1, 0);
+ if(errn == 0) {
+ /* encode string as string table miss (+2 len)*/
+ errn = encodeUnsignedInteger16(stream, (uint16_t)(iso2TransformType->XPath.array[iso2TransformType_XPath_currArrayIndex].charactersLen + 2));
+ if (errn == 0) {
+ errn = encodeCharacters(stream, iso2TransformType->XPath.array[iso2TransformType_XPath_currArrayIndex].characters, iso2TransformType->XPath.array[iso2TransformType_XPath_currArrayIndex].charactersLen);
+ iso2TransformType_XPath_currArrayIndex++;
+ }
+ /* valid EE */
+ errn = encodeNBitUnsignedInteger(stream, 1, 0);
+ }
+ }
+ grammarID = 1477;
+ } else if (1==0) {
+ errn = EXI_UNSUPPORTED_EVENT_CODE_CHARACTERISTICS;
+ grammarID = 1477;
+ } else if ( iso2TransformType->ANY_isUsed == 0u || wcDone ) {
+ errn = encodeNBitUnsignedInteger(stream, 3, 2);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else if ( iso2TransformType->ANY_isUsed == 1u ) {
+ errn = encodeNBitUnsignedInteger(stream, 3, 3);
+ if(errn == 0) {
+ /* encode string as string table miss (+2 len)*/
+ errn = encodeUnsignedInteger16(stream, (uint16_t)(iso2TransformType->ANY.charactersLen + 2));
+ if (errn == 0) {
+ errn = encodeCharacters(stream, iso2TransformType->ANY.characters, iso2TransformType->ANY.charactersLen);
+ }
+ }
+ wcDone = 1;
+ grammarID = 1477;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 1477:
+ /* Element[START_ELEMENT({http://www.w3.org/2000/09/xmldsig#}XPath), START_ELEMENT_GENERIC, END_ELEMENT, CHARACTERS_GENERIC[STRING]] */
+ if (iso2TransformType_XPath_currArrayIndex < iso2TransformType->XPath.arrayLen ) {
+ errn = encodeNBitUnsignedInteger(stream, 3, 0);
+ if(errn == 0) {
+ /* First(xsi:type)StartTag[CHARACTERS[STRING]] */
+ errn = encodeNBitUnsignedInteger(stream, 1, 0);
+ if(errn == 0) {
+ /* encode string as string table miss (+2 len)*/
+ errn = encodeUnsignedInteger16(stream, (uint16_t)(iso2TransformType->XPath.array[iso2TransformType_XPath_currArrayIndex].charactersLen + 2));
+ if (errn == 0) {
+ errn = encodeCharacters(stream, iso2TransformType->XPath.array[iso2TransformType_XPath_currArrayIndex].characters, iso2TransformType->XPath.array[iso2TransformType_XPath_currArrayIndex].charactersLen);
+ iso2TransformType_XPath_currArrayIndex++;
+ }
+ /* valid EE */
+ errn = encodeNBitUnsignedInteger(stream, 1, 0);
+ }
+ }
+ grammarID = 1477;
+ } else if (1==0) {
+ errn = EXI_UNSUPPORTED_EVENT_CODE_CHARACTERISTICS;
+ grammarID = 1477;
+ } else if ( iso2TransformType->ANY_isUsed == 0u || wcDone ) {
+ errn = encodeNBitUnsignedInteger(stream, 3, 2);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else if ( iso2TransformType->ANY_isUsed == 1u ) {
+ errn = encodeNBitUnsignedInteger(stream, 3, 3);
+ if(errn == 0) {
+ /* encode string as string table miss (+2 len)*/
+ errn = encodeUnsignedInteger16(stream, (uint16_t)(iso2TransformType->ANY.charactersLen + 2));
+ if (errn == 0) {
+ errn = encodeCharacters(stream, iso2TransformType->ANY.characters, iso2TransformType->ANY.charactersLen);
+ }
+ }
+ wcDone = 1;
+ grammarID = 1477;
+ } 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:2016:MsgDataTypes,EMAIDType', base type name='eMAIDType', content type='SIMPLE', isAbstract='false', hasTypeId='false', final='0', block='0', derivedBy='EXTENSION'. */
+static int encode_iso2EMAIDType(bitstream_t* stream, struct iso2EMAIDType* iso2EMAIDType) {
+ int grammarID = 1478;
+ int done = 0;
+
+
+ while(!done) {
+ switch(grammarID) {
+ case 1478:
+ /* FirstStartTag[ATTRIBUTE[STRING]({urn:iso:15118:2:2016:MsgDataTypes}Id)] */
+ if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 1, 0);
+ if(errn == 0) {
+ /* encode string as string table miss (+2 len)*/
+ errn = encodeUnsignedInteger16(stream, (uint16_t)(iso2EMAIDType->Id.charactersLen + 2));
+ if (errn == 0) {
+ errn = encodeCharacters(stream, iso2EMAIDType->Id.characters, iso2EMAIDType->Id.charactersLen);
+ }
+ }
+ grammarID = 1479;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 1479:
+ /* StartTag[CHARACTERS[STRING]] */
+ if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 1, 0);
+ if(errn == 0) {
+ /* encode string as string table miss (+2 len)*/
+ errn = encodeUnsignedInteger16(stream, (uint16_t)(iso2EMAIDType->CONTENT.charactersLen + 2));
+ if (errn == 0) {
+ errn = encodeCharacters(stream, iso2EMAIDType->CONTENT.characters, iso2EMAIDType->CONTENT.charactersLen);
+ }
+ }
+ grammarID = 3;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 3:
+ /* Element[END_ELEMENT] */
+ if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 1, 0);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_GRAMMAR_ID;
+ break;
+ }
+ if(errn) {
+ done = 1;
+ }
+ }
+ return errn;
+}
+
+/* Complex type name='http://www.w3.org/2000/09/xmldsig#,DSAKeyValueType', base type name='anyType', content type='ELEMENT', isAbstract='false', hasTypeId='false', final='0', block='0', particle='(("http://www.w3.org/2000/09/xmldsig#":P,"http://www.w3.org/2000/09/xmldsig#":Q){0-1},"http://www.w3.org/2000/09/xmldsig#":G{0-1},"http://www.w3.org/2000/09/xmldsig#":Y,"http://www.w3.org/2000/09/xmldsig#":J{0-1},("http://www.w3.org/2000/09/xmldsig#":Seed,"http://www.w3.org/2000/09/xmldsig#":PgenCounter){0-1})', derivedBy='RESTRICTION'. */
+static int encode_iso2DSAKeyValueType(bitstream_t* stream, struct iso2DSAKeyValueType* iso2DSAKeyValueType) {
+ int grammarID = 1480;
+ int done = 0;
+
+
+ while(!done) {
+ switch(grammarID) {
+ case 1480:
+ /* FirstStartTag[START_ELEMENT({http://www.w3.org/2000/09/xmldsig#}P), START_ELEMENT({http://www.w3.org/2000/09/xmldsig#}G), START_ELEMENT({http://www.w3.org/2000/09/xmldsig#}Y)] */
+ if ( iso2DSAKeyValueType->P_isUsed == 1u ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ if(errn == 0) {
+ /* FirstStartTag[CHARACTERS[BINARY_BASE64]] */
+ errn = encodeNBitUnsignedInteger(stream, 1, 0);
+ if(errn == 0) {
+ errn = encodeUnsignedInteger16(stream, (uint16_t)(iso2DSAKeyValueType->P.bytesLen));
+ if (errn == 0) {
+ errn = encodeBytes(stream, iso2DSAKeyValueType->P.bytes, iso2DSAKeyValueType->P.bytesLen);
+ }
+ /* valid EE */
+ errn = encodeNBitUnsignedInteger(stream, 1, 0);
+ }
+ }
+ grammarID = 1481;
+ } else if ( iso2DSAKeyValueType->G_isUsed == 1u ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ /* FirstStartTag[CHARACTERS[BINARY_BASE64]] */
+ errn = encodeNBitUnsignedInteger(stream, 1, 0);
+ if(errn == 0) {
+ errn = encodeUnsignedInteger16(stream, (uint16_t)(iso2DSAKeyValueType->G.bytesLen));
+ if (errn == 0) {
+ errn = encodeBytes(stream, iso2DSAKeyValueType->G.bytes, iso2DSAKeyValueType->G.bytesLen);
+ }
+ /* valid EE */
+ errn = encodeNBitUnsignedInteger(stream, 1, 0);
+ }
+ }
+ grammarID = 1482;
+ } else if ( 1 == 1 ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 2);
+ if(errn == 0) {
+ /* FirstStartTag[CHARACTERS[BINARY_BASE64]] */
+ errn = encodeNBitUnsignedInteger(stream, 1, 0);
+ if(errn == 0) {
+ errn = encodeUnsignedInteger16(stream, (uint16_t)(iso2DSAKeyValueType->Y.bytesLen));
+ if (errn == 0) {
+ errn = encodeBytes(stream, iso2DSAKeyValueType->Y.bytes, iso2DSAKeyValueType->Y.bytesLen);
+ }
+ /* valid EE */
+ errn = encodeNBitUnsignedInteger(stream, 1, 0);
+ }
+ }
+ grammarID = 1483;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 1481:
+ /* Element[START_ELEMENT({http://www.w3.org/2000/09/xmldsig#}Q)] */
+ if ( iso2DSAKeyValueType->Q_isUsed == 1u ) {
+ errn = encodeNBitUnsignedInteger(stream, 1, 0);
+ if(errn == 0) {
+ /* FirstStartTag[CHARACTERS[BINARY_BASE64]] */
+ errn = encodeNBitUnsignedInteger(stream, 1, 0);
+ if(errn == 0) {
+ errn = encodeUnsignedInteger16(stream, (uint16_t)(iso2DSAKeyValueType->Q.bytesLen));
+ if (errn == 0) {
+ errn = encodeBytes(stream, iso2DSAKeyValueType->Q.bytes, iso2DSAKeyValueType->Q.bytesLen);
+ }
+ /* valid EE */
+ errn = encodeNBitUnsignedInteger(stream, 1, 0);
+ }
+ }
+ grammarID = 1484;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 1484:
+ /* Element[START_ELEMENT({http://www.w3.org/2000/09/xmldsig#}G), START_ELEMENT({http://www.w3.org/2000/09/xmldsig#}Y)] */
+ if ( iso2DSAKeyValueType->G_isUsed == 1u ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ if(errn == 0) {
+ /* FirstStartTag[CHARACTERS[BINARY_BASE64]] */
+ errn = encodeNBitUnsignedInteger(stream, 1, 0);
+ if(errn == 0) {
+ errn = encodeUnsignedInteger16(stream, (uint16_t)(iso2DSAKeyValueType->G.bytesLen));
+ if (errn == 0) {
+ errn = encodeBytes(stream, iso2DSAKeyValueType->G.bytes, iso2DSAKeyValueType->G.bytesLen);
+ }
+ /* valid EE */
+ errn = encodeNBitUnsignedInteger(stream, 1, 0);
+ }
+ }
+ grammarID = 1482;
+ } else if ( 1 == 1 ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ /* FirstStartTag[CHARACTERS[BINARY_BASE64]] */
+ errn = encodeNBitUnsignedInteger(stream, 1, 0);
+ if(errn == 0) {
+ errn = encodeUnsignedInteger16(stream, (uint16_t)(iso2DSAKeyValueType->Y.bytesLen));
+ if (errn == 0) {
+ errn = encodeBytes(stream, iso2DSAKeyValueType->Y.bytes, iso2DSAKeyValueType->Y.bytesLen);
+ }
+ /* valid EE */
+ errn = encodeNBitUnsignedInteger(stream, 1, 0);
+ }
+ }
+ grammarID = 1483;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 1482:
+ /* Element[START_ELEMENT({http://www.w3.org/2000/09/xmldsig#}Y)] */
+ if ( 1 == 1 ) {
+ errn = encodeNBitUnsignedInteger(stream, 1, 0);
+ if(errn == 0) {
+ /* FirstStartTag[CHARACTERS[BINARY_BASE64]] */
+ errn = encodeNBitUnsignedInteger(stream, 1, 0);
+ if(errn == 0) {
+ errn = encodeUnsignedInteger16(stream, (uint16_t)(iso2DSAKeyValueType->Y.bytesLen));
+ if (errn == 0) {
+ errn = encodeBytes(stream, iso2DSAKeyValueType->Y.bytes, iso2DSAKeyValueType->Y.bytesLen);
+ }
+ /* valid EE */
+ errn = encodeNBitUnsignedInteger(stream, 1, 0);
+ }
+ }
+ grammarID = 1483;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 1483:
+ /* Element[START_ELEMENT({http://www.w3.org/2000/09/xmldsig#}J), START_ELEMENT({http://www.w3.org/2000/09/xmldsig#}Seed), END_ELEMENT] */
+ if ( iso2DSAKeyValueType->J_isUsed == 1u ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ if(errn == 0) {
+ /* FirstStartTag[CHARACTERS[BINARY_BASE64]] */
+ errn = encodeNBitUnsignedInteger(stream, 1, 0);
+ if(errn == 0) {
+ errn = encodeUnsignedInteger16(stream, (uint16_t)(iso2DSAKeyValueType->J.bytesLen));
+ if (errn == 0) {
+ errn = encodeBytes(stream, iso2DSAKeyValueType->J.bytes, iso2DSAKeyValueType->J.bytesLen);
+ }
+ /* valid EE */
+ errn = encodeNBitUnsignedInteger(stream, 1, 0);
+ }
+ }
+ grammarID = 1485;
+ } else if ( iso2DSAKeyValueType->Seed_isUsed == 1u ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ /* FirstStartTag[CHARACTERS[BINARY_BASE64]] */
+ errn = encodeNBitUnsignedInteger(stream, 1, 0);
+ if(errn == 0) {
+ errn = encodeUnsignedInteger16(stream, (uint16_t)(iso2DSAKeyValueType->Seed.bytesLen));
+ if (errn == 0) {
+ errn = encodeBytes(stream, iso2DSAKeyValueType->Seed.bytes, iso2DSAKeyValueType->Seed.bytesLen);
+ }
+ /* valid EE */
+ errn = encodeNBitUnsignedInteger(stream, 1, 0);
+ }
+ }
+ grammarID = 1486;
+ } else if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 2);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 1485:
+ /* Element[START_ELEMENT({http://www.w3.org/2000/09/xmldsig#}Seed), END_ELEMENT] */
+ if ( iso2DSAKeyValueType->Seed_isUsed == 1u ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ if(errn == 0) {
+ /* FirstStartTag[CHARACTERS[BINARY_BASE64]] */
+ errn = encodeNBitUnsignedInteger(stream, 1, 0);
+ if(errn == 0) {
+ errn = encodeUnsignedInteger16(stream, (uint16_t)(iso2DSAKeyValueType->Seed.bytesLen));
+ if (errn == 0) {
+ errn = encodeBytes(stream, iso2DSAKeyValueType->Seed.bytes, iso2DSAKeyValueType->Seed.bytesLen);
+ }
+ /* valid EE */
+ errn = encodeNBitUnsignedInteger(stream, 1, 0);
+ }
+ }
+ grammarID = 1486;
+ } else if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 1486:
+ /* Element[START_ELEMENT({http://www.w3.org/2000/09/xmldsig#}PgenCounter)] */
+ if ( iso2DSAKeyValueType->PgenCounter_isUsed == 1u ) {
+ errn = encodeNBitUnsignedInteger(stream, 1, 0);
+ if(errn == 0) {
+ /* FirstStartTag[CHARACTERS[BINARY_BASE64]] */
+ errn = encodeNBitUnsignedInteger(stream, 1, 0);
+ if(errn == 0) {
+ errn = encodeUnsignedInteger16(stream, (uint16_t)(iso2DSAKeyValueType->PgenCounter.bytesLen));
+ if (errn == 0) {
+ errn = encodeBytes(stream, iso2DSAKeyValueType->PgenCounter.bytes, iso2DSAKeyValueType->PgenCounter.bytesLen);
+ }
+ /* valid EE */
+ errn = encodeNBitUnsignedInteger(stream, 1, 0);
+ }
+ }
+ grammarID = 3;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 3:
+ /* Element[END_ELEMENT] */
+ if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 1, 0);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } 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:2016:MsgDataTypes,EntryType', base type name='anyType', content type='ELEMENT', isAbstract='true', hasTypeId='false', final='0', block='0', particle='("urn:iso:15118:2:2016:MsgDataTypes":RelativeTimeInterval)', derivedBy='RESTRICTION'. */
+static int encode_iso2EntryType(bitstream_t* stream, struct iso2EntryType* iso2EntryType) {
+ int grammarID = 1487;
+ int done = 0;
+
+
+ while(!done) {
+ switch(grammarID) {
+ case 1487:
+ /* FirstStartTag[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}RelativeTimeInterval)] */
+ if ( 1 == 1 ) {
+ errn = encodeNBitUnsignedInteger(stream, 1, 0);
+ if(errn == 0) {
+ errn = encode_iso2RelativeTimeIntervalType(stream, &iso2EntryType->RelativeTimeInterval );
+ }
+ grammarID = 3;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 3:
+ /* Element[END_ELEMENT] */
+ if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 1, 0);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } 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:2016:MsgHeader,MessageHeaderType', base type name='anyType', content type='ELEMENT', isAbstract='false', hasTypeId='false', final='0', block='0', particle='("urn:iso:15118:2:2016:MsgHeader":SessionID,"http://www.w3.org/2000/09/xmldsig#":Signature{0-1})', derivedBy='RESTRICTION'. */
+static int encode_iso2MessageHeaderType(bitstream_t* stream, struct iso2MessageHeaderType* iso2MessageHeaderType) {
+ int grammarID = 1488;
+ int done = 0;
+
+
+ while(!done) {
+ switch(grammarID) {
+ case 1488:
+ /* FirstStartTag[START_ELEMENT({urn:iso:15118:2:2016:MsgHeader}SessionID)] */
+ if ( 1 == 1 ) {
+ errn = encodeNBitUnsignedInteger(stream, 1, 0);
+ if(errn == 0) {
+ /* FirstStartTag[CHARACTERS[BINARY_HEX]] */
+ errn = encodeNBitUnsignedInteger(stream, 1, 0);
+ if(errn == 0) {
+ errn = encodeUnsignedInteger16(stream, (uint16_t)(iso2MessageHeaderType->SessionID.bytesLen));
+ if (errn == 0) {
+ errn = encodeBytes(stream, iso2MessageHeaderType->SessionID.bytes, iso2MessageHeaderType->SessionID.bytesLen);
+ }
+ /* valid EE */
+ errn = encodeNBitUnsignedInteger(stream, 1, 0);
+ }
+ }
+ grammarID = 1489;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 1489:
+ /* Element[START_ELEMENT({http://www.w3.org/2000/09/xmldsig#}Signature), END_ELEMENT] */
+ if ( iso2MessageHeaderType->Signature_isUsed == 1u ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ if(errn == 0) {
+ errn = encode_iso2SignatureType(stream, &iso2MessageHeaderType->Signature );
+ }
+ grammarID = 3;
+ } else if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 3:
+ /* Element[END_ELEMENT] */
+ if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 1, 0);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
default:
errn = EXI_ERROR_UNKOWN_GRAMMAR_ID;
break;
@@ -67602,14 +32689,14 @@ static int encode_v2gDC_BidirectionalControlResType(bitstream_t* stream, struct
}
/* Complex type name='urn:iso:15118:2:2016:MsgDataTypes,WPT_EVChargeParameterType', base type name='EVEnergyTransferParameterType', content type='ELEMENT', isAbstract='false', hasTypeId='false', final='0', block='0', particle='(("urn:iso:15118:2:2016:MsgDataTypes":DepartureTime),("urn:iso:15118:2:2016:MsgDataTypes":EVMaximumPower,"urn:iso:15118:2:2016:MsgDataTypes":EVMinimumPower,"urn:iso:15118:2:2016:MsgDataTypes":EVTargetEnergyRequest{0-1},"urn:iso:15118:2:2016:MsgDataTypes":EVMaximumEnergyRequest{0-1},"urn:iso:15118:2:2016:MsgDataTypes":EVMinimumEnergyRequest{0-1}))', derivedBy='EXTENSION'. */
-static int encode_v2gWPT_EVChargeParameterType(bitstream_t* stream, struct v2gWPT_EVChargeParameterType* v2gWPT_EVChargeParameterType) {
- int grammarID = 2854;
+static int encode_iso2WPT_EVChargeParameterType(bitstream_t* stream, struct iso2WPT_EVChargeParameterType* iso2WPT_EVChargeParameterType) {
+ int grammarID = 1490;
int done = 0;
while(!done) {
switch(grammarID) {
- case 2854:
+ case 1490:
/* FirstStartTag[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}DepartureTime)] */
if ( 1 == 1 ) {
errn = encodeNBitUnsignedInteger(stream, 1, 0);
@@ -67617,124 +32704,8613 @@ static int encode_v2gWPT_EVChargeParameterType(bitstream_t* stream, struct v2gWP
/* First(xsi:type)StartTag[CHARACTERS[UNSIGNED_INTEGER]] */
errn = encodeNBitUnsignedInteger(stream, 1, 0);
if(errn == 0) {
- errn = encodeUnsignedInteger32(stream, v2gWPT_EVChargeParameterType->DepartureTime);
+ errn = encodeUnsignedInteger32(stream, iso2WPT_EVChargeParameterType->DepartureTime);
/* valid EE */
errn = encodeNBitUnsignedInteger(stream, 1, 0);
}
}
- grammarID = 2855;
+ grammarID = 1491;
} else {
errn = EXI_ERROR_UNKOWN_EVENT;
}
break;
- case 2855:
+ case 1491:
/* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}EVMaximumPower)] */
if ( 1 == 1 ) {
errn = encodeNBitUnsignedInteger(stream, 1, 0);
if(errn == 0) {
- errn = encode_v2gPhysicalValueType(stream, &v2gWPT_EVChargeParameterType->EVMaximumPower );
+ errn = encode_iso2PhysicalValueType(stream, &iso2WPT_EVChargeParameterType->EVMaximumPower );
}
- grammarID = 2856;
+ grammarID = 1492;
} else {
errn = EXI_ERROR_UNKOWN_EVENT;
}
break;
- case 2856:
+ case 1492:
/* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}EVMinimumPower)] */
if ( 1 == 1 ) {
errn = encodeNBitUnsignedInteger(stream, 1, 0);
if(errn == 0) {
- errn = encode_v2gPhysicalValueType(stream, &v2gWPT_EVChargeParameterType->EVMinimumPower );
+ errn = encode_iso2PhysicalValueType(stream, &iso2WPT_EVChargeParameterType->EVMinimumPower );
}
- grammarID = 2857;
+ grammarID = 1493;
} else {
errn = EXI_ERROR_UNKOWN_EVENT;
}
break;
- case 2857:
+ case 1493:
/* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}EVTargetEnergyRequest), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}EVMaximumEnergyRequest), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}EVMinimumEnergyRequest), END_ELEMENT] */
- if ( v2gWPT_EVChargeParameterType->EVTargetEnergyRequest_isUsed == 1u ) {
+ if ( iso2WPT_EVChargeParameterType->EVTargetEnergyRequest_isUsed == 1u ) {
errn = encodeNBitUnsignedInteger(stream, 3, 0);
if(errn == 0) {
- errn = encode_v2gPhysicalValueType(stream, &v2gWPT_EVChargeParameterType->EVTargetEnergyRequest );
+ errn = encode_iso2PhysicalValueType(stream, &iso2WPT_EVChargeParameterType->EVTargetEnergyRequest );
}
- grammarID = 2858;
- } else if ( v2gWPT_EVChargeParameterType->EVMaximumEnergyRequest_isUsed == 1u ) {
+ grammarID = 1494;
+ } else if ( iso2WPT_EVChargeParameterType->EVMaximumEnergyRequest_isUsed == 1u ) {
errn = encodeNBitUnsignedInteger(stream, 3, 1);
if(errn == 0) {
- errn = encode_v2gPhysicalValueType(stream, &v2gWPT_EVChargeParameterType->EVMaximumEnergyRequest );
+ errn = encode_iso2PhysicalValueType(stream, &iso2WPT_EVChargeParameterType->EVMaximumEnergyRequest );
}
- grammarID = 2859;
- } else if ( v2gWPT_EVChargeParameterType->EVMinimumEnergyRequest_isUsed == 1u ) {
+ grammarID = 1495;
+ } else if ( iso2WPT_EVChargeParameterType->EVMinimumEnergyRequest_isUsed == 1u ) {
errn = encodeNBitUnsignedInteger(stream, 3, 2);
if(errn == 0) {
- errn = encode_v2gPhysicalValueType(stream, &v2gWPT_EVChargeParameterType->EVMinimumEnergyRequest );
+ errn = encode_iso2PhysicalValueType(stream, &iso2WPT_EVChargeParameterType->EVMinimumEnergyRequest );
}
- grammarID = 2;
+ grammarID = 3;
} else if (1==1) {
errn = encodeNBitUnsignedInteger(stream, 3, 3);
if(errn == 0) {
done = 1;
}
- grammarID = 3;
+ grammarID = 4;
} else {
errn = EXI_ERROR_UNKOWN_EVENT;
}
break;
- case 2858:
+ case 1494:
/* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}EVMaximumEnergyRequest), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}EVMinimumEnergyRequest), END_ELEMENT] */
- if ( v2gWPT_EVChargeParameterType->EVMaximumEnergyRequest_isUsed == 1u ) {
+ if ( iso2WPT_EVChargeParameterType->EVMaximumEnergyRequest_isUsed == 1u ) {
errn = encodeNBitUnsignedInteger(stream, 2, 0);
if(errn == 0) {
- errn = encode_v2gPhysicalValueType(stream, &v2gWPT_EVChargeParameterType->EVMaximumEnergyRequest );
+ errn = encode_iso2PhysicalValueType(stream, &iso2WPT_EVChargeParameterType->EVMaximumEnergyRequest );
}
- grammarID = 2859;
- } else if ( v2gWPT_EVChargeParameterType->EVMinimumEnergyRequest_isUsed == 1u ) {
+ grammarID = 1495;
+ } else if ( iso2WPT_EVChargeParameterType->EVMinimumEnergyRequest_isUsed == 1u ) {
errn = encodeNBitUnsignedInteger(stream, 2, 1);
if(errn == 0) {
- errn = encode_v2gPhysicalValueType(stream, &v2gWPT_EVChargeParameterType->EVMinimumEnergyRequest );
+ errn = encode_iso2PhysicalValueType(stream, &iso2WPT_EVChargeParameterType->EVMinimumEnergyRequest );
}
- grammarID = 2;
+ grammarID = 3;
} else if (1==1) {
errn = encodeNBitUnsignedInteger(stream, 2, 2);
if(errn == 0) {
done = 1;
}
- grammarID = 3;
+ grammarID = 4;
} else {
errn = EXI_ERROR_UNKOWN_EVENT;
}
break;
- case 2859:
+ case 1495:
/* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}EVMinimumEnergyRequest), END_ELEMENT] */
- if ( v2gWPT_EVChargeParameterType->EVMinimumEnergyRequest_isUsed == 1u ) {
+ if ( iso2WPT_EVChargeParameterType->EVMinimumEnergyRequest_isUsed == 1u ) {
errn = encodeNBitUnsignedInteger(stream, 2, 0);
if(errn == 0) {
- errn = encode_v2gPhysicalValueType(stream, &v2gWPT_EVChargeParameterType->EVMinimumEnergyRequest );
+ errn = encode_iso2PhysicalValueType(stream, &iso2WPT_EVChargeParameterType->EVMinimumEnergyRequest );
}
- grammarID = 2;
+ grammarID = 3;
} else if (1==1) {
errn = encodeNBitUnsignedInteger(stream, 2, 1);
if(errn == 0) {
done = 1;
}
- grammarID = 3;
+ grammarID = 4;
} else {
errn = EXI_ERROR_UNKOWN_EVENT;
}
break;
- case 2:
+ case 3:
/* Element[END_ELEMENT] */
if (1==1) {
errn = encodeNBitUnsignedInteger(stream, 1, 0);
if(errn == 0) {
done = 1;
}
+ grammarID = 4;
+ } 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:2016:MsgBody,DisconnectChargingDeviceReqType', base type name='BodyBaseType', content type='ELEMENT', isAbstract='false', hasTypeId='false', final='0', block='0', particle='("urn:iso:15118:2:2016:MsgBody":EVElectricalChargingDeviceStatus,"urn:iso:15118:2:2016:MsgBody":EVMechanicalChargingDeviceStatus)', derivedBy='EXTENSION'. */
+static int encode_iso2DisconnectChargingDeviceReqType(bitstream_t* stream, struct iso2DisconnectChargingDeviceReqType* iso2DisconnectChargingDeviceReqType) {
+ int grammarID = 1496;
+ int done = 0;
+
+
+ while(!done) {
+ switch(grammarID) {
+ case 1496:
+ /* FirstStartTag[START_ELEMENT({urn:iso:15118:2:2016:MsgBody}EVElectricalChargingDeviceStatus)] */
+ 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, 1, iso2DisconnectChargingDeviceReqType->EVElectricalChargingDeviceStatus);
+ /* valid EE */
+ errn = encodeNBitUnsignedInteger(stream, 1, 0);
+ }
+ }
+ grammarID = 1497;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 1497:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgBody}EVMechanicalChargingDeviceStatus)] */
+ 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, iso2DisconnectChargingDeviceReqType->EVMechanicalChargingDeviceStatus);
+ /* valid EE */
+ errn = encodeNBitUnsignedInteger(stream, 1, 0);
+ }
+ }
grammarID = 3;
} else {
errn = EXI_ERROR_UNKOWN_EVENT;
}
break;
+ case 3:
+ /* Element[END_ELEMENT] */
+ if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 1, 0);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } 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:2016:MsgBody,ChargeLoopReqType', base type name='BodyBaseType', content type='ELEMENT', isAbstract='true', hasTypeId='false', final='0', block='0', particle='("urn:iso:15118:2:2016:MsgBody":EVTargetEnergyRequest,"urn:iso:15118:2:2016:MsgBody":EVMaximumEnergyRequest{0-1},"urn:iso:15118:2:2016:MsgBody":EVMinimumEnergyRequest{0-1},"urn:iso:15118:2:2016:MsgBody":DisplayParameters{0-1})', derivedBy='EXTENSION'. */
+static int encode_iso2ChargeLoopReqType(bitstream_t* stream, struct iso2ChargeLoopReqType* iso2ChargeLoopReqType) {
+ int grammarID = 1498;
+ int done = 0;
+
+
+ while(!done) {
+ switch(grammarID) {
+ case 1498:
+ /* FirstStartTag[START_ELEMENT({urn:iso:15118:2:2016:MsgBody}EVTargetEnergyRequest)] */
+ if ( 1 == 1 ) {
+ errn = encodeNBitUnsignedInteger(stream, 1, 0);
+ if(errn == 0) {
+ errn = encode_iso2PhysicalValueType(stream, &iso2ChargeLoopReqType->EVTargetEnergyRequest );
+ }
+ grammarID = 1499;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 1499:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgBody}EVMaximumEnergyRequest), START_ELEMENT({urn:iso:15118:2:2016:MsgBody}EVMinimumEnergyRequest), START_ELEMENT({urn:iso:15118:2:2016:MsgBody}DisplayParameters), END_ELEMENT] */
+ if ( iso2ChargeLoopReqType->EVMaximumEnergyRequest_isUsed == 1u ) {
+ errn = encodeNBitUnsignedInteger(stream, 3, 0);
+ if(errn == 0) {
+ errn = encode_iso2PhysicalValueType(stream, &iso2ChargeLoopReqType->EVMaximumEnergyRequest );
+ }
+ grammarID = 1500;
+ } else if ( iso2ChargeLoopReqType->EVMinimumEnergyRequest_isUsed == 1u ) {
+ errn = encodeNBitUnsignedInteger(stream, 3, 1);
+ if(errn == 0) {
+ errn = encode_iso2PhysicalValueType(stream, &iso2ChargeLoopReqType->EVMinimumEnergyRequest );
+ }
+ grammarID = 1501;
+ } else if ( iso2ChargeLoopReqType->DisplayParameters_isUsed == 1u ) {
+ errn = encodeNBitUnsignedInteger(stream, 3, 2);
+ if(errn == 0) {
+ errn = encode_iso2DisplayParametersType(stream, &iso2ChargeLoopReqType->DisplayParameters );
+ }
+ grammarID = 3;
+ } else if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 3, 3);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 1500:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgBody}EVMinimumEnergyRequest), START_ELEMENT({urn:iso:15118:2:2016:MsgBody}DisplayParameters), END_ELEMENT] */
+ if ( iso2ChargeLoopReqType->EVMinimumEnergyRequest_isUsed == 1u ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ if(errn == 0) {
+ errn = encode_iso2PhysicalValueType(stream, &iso2ChargeLoopReqType->EVMinimumEnergyRequest );
+ }
+ grammarID = 1501;
+ } else if ( iso2ChargeLoopReqType->DisplayParameters_isUsed == 1u ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ errn = encode_iso2DisplayParametersType(stream, &iso2ChargeLoopReqType->DisplayParameters );
+ }
+ grammarID = 3;
+ } else if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 2);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 1501:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgBody}DisplayParameters), END_ELEMENT] */
+ if ( iso2ChargeLoopReqType->DisplayParameters_isUsed == 1u ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ if(errn == 0) {
+ errn = encode_iso2DisplayParametersType(stream, &iso2ChargeLoopReqType->DisplayParameters );
+ }
+ grammarID = 3;
+ } else if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 3:
+ /* Element[END_ELEMENT] */
+ if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 1, 0);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } 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:2016:MsgBody,V2GRequestType', base type name='anyType', content type='EMPTY', isAbstract='true', hasTypeId='false', final='0', block='0', derivedBy='RESTRICTION'. */
+static int encode_iso2V2GRequestType(bitstream_t* stream, struct iso2V2GRequestType* iso2V2GRequestType) {
+ int grammarID = 674;
+ int done = 0;
+
+
+ while(!done) {
+ switch(grammarID) {
+ case 674:
+ /* FirstStartTag[END_ELEMENT] */
+ if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 1, 0);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } 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:2016:MsgBody,MeteringReceiptResType', base type name='V2GResponseType', content type='ELEMENT', isAbstract='false', hasTypeId='false', final='0', block='0', particle='("urn:iso:15118:2:2016:MsgBody":ResponseCode,"urn:iso:15118:2:2016:MsgBody":EVSEStatus{0-1})', derivedBy='EXTENSION'. */
+static int encode_iso2MeteringReceiptResType(bitstream_t* stream, struct iso2MeteringReceiptResType* iso2MeteringReceiptResType) {
+ int grammarID = 599;
+ int done = 0;
+
+
+ while(!done) {
+ switch(grammarID) {
+ case 599:
+ /* FirstStartTag[START_ELEMENT({urn:iso:15118:2:2016:MsgBody}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, 5, iso2MeteringReceiptResType->ResponseCode);
+ /* valid EE */
+ errn = encodeNBitUnsignedInteger(stream, 1, 0);
+ }
+ }
+ grammarID = 600;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 600:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgBody}EVSEStatus), END_ELEMENT] */
+ if ( iso2MeteringReceiptResType->EVSEStatus_isUsed == 1u ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ if(errn == 0) {
+ errn = encode_iso2EVSEStatusType(stream, &iso2MeteringReceiptResType->EVSEStatus );
+ }
+ grammarID = 3;
+ } else if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 3:
+ /* Element[END_ELEMENT] */
+ if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 1, 0);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } 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:2016:MsgBody,SessionSetupResType', base type name='V2GResponseType', content type='ELEMENT', isAbstract='false', hasTypeId='false', final='0', block='0', particle='(("urn:iso:15118:2:2016:MsgBody":ResponseCode,"urn:iso:15118:2:2016:MsgBody":EVSEStatus{0-1}),("urn:iso:15118:2:2016:MsgBody":EVSEID,"urn:iso:15118:2:2016:MsgBody":EVSETimeStamp{0-1}))', derivedBy='EXTENSION'. */
+static int encode_iso2SessionSetupResType(bitstream_t* stream, struct iso2SessionSetupResType* iso2SessionSetupResType) {
+ int grammarID = 1502;
+ int done = 0;
+
+
+ while(!done) {
+ switch(grammarID) {
+ case 1502:
+ /* FirstStartTag[START_ELEMENT({urn:iso:15118:2:2016:MsgBody}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, 5, iso2SessionSetupResType->ResponseCode);
+ /* valid EE */
+ errn = encodeNBitUnsignedInteger(stream, 1, 0);
+ }
+ }
+ grammarID = 1503;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 1503:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgBody}EVSEStatus), START_ELEMENT({urn:iso:15118:2:2016:MsgBody}EVSEID)] */
+ if ( iso2SessionSetupResType->EVSEStatus_isUsed == 1u ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ if(errn == 0) {
+ errn = encode_iso2EVSEStatusType(stream, &iso2SessionSetupResType->EVSEStatus );
+ }
+ grammarID = 1504;
+ } else if ( 1 == 1 ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ /* FirstStartTag[CHARACTERS[STRING]] */
+ errn = encodeNBitUnsignedInteger(stream, 1, 0);
+ if(errn == 0) {
+ /* encode string as string table miss (+2 len)*/
+ errn = encodeUnsignedInteger16(stream, (uint16_t)(iso2SessionSetupResType->EVSEID.charactersLen + 2));
+ if (errn == 0) {
+ errn = encodeCharacters(stream, iso2SessionSetupResType->EVSEID.characters, iso2SessionSetupResType->EVSEID.charactersLen);
+ }
+ /* valid EE */
+ errn = encodeNBitUnsignedInteger(stream, 1, 0);
+ }
+ }
+ grammarID = 1505;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 1504:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgBody}EVSEID)] */
+ if ( 1 == 1 ) {
+ errn = encodeNBitUnsignedInteger(stream, 1, 0);
+ if(errn == 0) {
+ /* FirstStartTag[CHARACTERS[STRING]] */
+ errn = encodeNBitUnsignedInteger(stream, 1, 0);
+ if(errn == 0) {
+ /* encode string as string table miss (+2 len)*/
+ errn = encodeUnsignedInteger16(stream, (uint16_t)(iso2SessionSetupResType->EVSEID.charactersLen + 2));
+ if (errn == 0) {
+ errn = encodeCharacters(stream, iso2SessionSetupResType->EVSEID.characters, iso2SessionSetupResType->EVSEID.charactersLen);
+ }
+ /* valid EE */
+ errn = encodeNBitUnsignedInteger(stream, 1, 0);
+ }
+ }
+ grammarID = 1505;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 1505:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgBody}EVSETimeStamp), END_ELEMENT] */
+ if ( iso2SessionSetupResType->EVSETimeStamp_isUsed == 1u ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ if(errn == 0) {
+ /* First(xsi:type)StartTag[CHARACTERS[INTEGER]] */
+ errn = encodeNBitUnsignedInteger(stream, 1, 0);
+ if(errn == 0) {
+ errn = encodeInteger64(stream, iso2SessionSetupResType->EVSETimeStamp);
+ /* valid EE */
+ errn = encodeNBitUnsignedInteger(stream, 1, 0);
+ }
+ }
+ grammarID = 3;
+ } else if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 3:
+ /* Element[END_ELEMENT] */
+ if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 1, 0);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } 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:2016:MsgBody,AC_BidirectionalControlReqType', base type name='ChargeLoopReqType', content type='ELEMENT', isAbstract='false', hasTypeId='false', final='0', block='0', particle='(("urn:iso:15118:2:2016:MsgBody":EVTargetEnergyRequest,"urn:iso:15118:2:2016:MsgBody":EVMaximumEnergyRequest{0-1},"urn:iso:15118:2:2016:MsgBody":EVMinimumEnergyRequest{0-1},"urn:iso:15118:2:2016:MsgBody":DisplayParameters{0-1}),("urn:iso:15118:2:2016:MsgBody":EVOperation{0-1},"urn:iso:15118:2:2016:MsgBody":EVMaximumChargePower,"urn:iso:15118:2:2016:MsgBody":EVMaximumDischargePower{0-1},"urn:iso:15118:2:2016:MsgBody":EVMaximumChargeCurrent,"urn:iso:15118:2:2016:MsgBody":EVMaximumDischargeCurrent{0-1},"urn:iso:15118:2:2016:MsgBody":EVMinimumChargeCurrent,"urn:iso:15118:2:2016:MsgBody":EVMinimumDischargeCurrent{0-1},"urn:iso:15118:2:2016:MsgBody":EVPresentActivePower,"urn:iso:15118:2:2016:MsgBody":EVPresentReactivePower))', derivedBy='EXTENSION'. */
+static int encode_iso2AC_BidirectionalControlReqType(bitstream_t* stream, struct iso2AC_BidirectionalControlReqType* iso2AC_BidirectionalControlReqType) {
+ int grammarID = 1506;
+ int done = 0;
+
+
+ while(!done) {
+ switch(grammarID) {
+ case 1506:
+ /* FirstStartTag[START_ELEMENT({urn:iso:15118:2:2016:MsgBody}EVTargetEnergyRequest)] */
+ if ( 1 == 1 ) {
+ errn = encodeNBitUnsignedInteger(stream, 1, 0);
+ if(errn == 0) {
+ errn = encode_iso2PhysicalValueType(stream, &iso2AC_BidirectionalControlReqType->EVTargetEnergyRequest );
+ }
+ grammarID = 1507;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 1507:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgBody}EVMaximumEnergyRequest), START_ELEMENT({urn:iso:15118:2:2016:MsgBody}EVMinimumEnergyRequest), START_ELEMENT({urn:iso:15118:2:2016:MsgBody}DisplayParameters), START_ELEMENT({urn:iso:15118:2:2016:MsgBody}EVOperation), START_ELEMENT({urn:iso:15118:2:2016:MsgBody}EVMaximumChargePower)] */
+ if ( iso2AC_BidirectionalControlReqType->EVMaximumEnergyRequest_isUsed == 1u ) {
+ errn = encodeNBitUnsignedInteger(stream, 3, 0);
+ if(errn == 0) {
+ errn = encode_iso2PhysicalValueType(stream, &iso2AC_BidirectionalControlReqType->EVMaximumEnergyRequest );
+ }
+ grammarID = 1508;
+ } else if ( iso2AC_BidirectionalControlReqType->EVMinimumEnergyRequest_isUsed == 1u ) {
+ errn = encodeNBitUnsignedInteger(stream, 3, 1);
+ if(errn == 0) {
+ errn = encode_iso2PhysicalValueType(stream, &iso2AC_BidirectionalControlReqType->EVMinimumEnergyRequest );
+ }
+ grammarID = 1509;
+ } else if ( iso2AC_BidirectionalControlReqType->DisplayParameters_isUsed == 1u ) {
+ errn = encodeNBitUnsignedInteger(stream, 3, 2);
+ if(errn == 0) {
+ errn = encode_iso2DisplayParametersType(stream, &iso2AC_BidirectionalControlReqType->DisplayParameters );
+ }
+ grammarID = 1510;
+ } else if ( iso2AC_BidirectionalControlReqType->EVOperation_isUsed == 1u ) {
+ errn = encodeNBitUnsignedInteger(stream, 3, 3);
+ if(errn == 0) {
+ /* FirstStartTag[CHARACTERS[ENUMERATION]] */
+ errn = encodeNBitUnsignedInteger(stream, 1, 0);
+ if(errn == 0) {
+ errn = encodeNBitUnsignedInteger(stream, 1, iso2AC_BidirectionalControlReqType->EVOperation);
+ /* valid EE */
+ errn = encodeNBitUnsignedInteger(stream, 1, 0);
+ }
+ }
+ grammarID = 1511;
+ } else if ( 1 == 1 ) {
+ errn = encodeNBitUnsignedInteger(stream, 3, 4);
+ if(errn == 0) {
+ errn = encode_iso2PhysicalValueType(stream, &iso2AC_BidirectionalControlReqType->EVMaximumChargePower );
+ }
+ grammarID = 1512;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 1508:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgBody}EVMinimumEnergyRequest), START_ELEMENT({urn:iso:15118:2:2016:MsgBody}DisplayParameters), START_ELEMENT({urn:iso:15118:2:2016:MsgBody}EVOperation), START_ELEMENT({urn:iso:15118:2:2016:MsgBody}EVMaximumChargePower)] */
+ if ( iso2AC_BidirectionalControlReqType->EVMinimumEnergyRequest_isUsed == 1u ) {
+ errn = encodeNBitUnsignedInteger(stream, 3, 0);
+ if(errn == 0) {
+ errn = encode_iso2PhysicalValueType(stream, &iso2AC_BidirectionalControlReqType->EVMinimumEnergyRequest );
+ }
+ grammarID = 1509;
+ } else if ( iso2AC_BidirectionalControlReqType->DisplayParameters_isUsed == 1u ) {
+ errn = encodeNBitUnsignedInteger(stream, 3, 1);
+ if(errn == 0) {
+ errn = encode_iso2DisplayParametersType(stream, &iso2AC_BidirectionalControlReqType->DisplayParameters );
+ }
+ grammarID = 1510;
+ } else if ( iso2AC_BidirectionalControlReqType->EVOperation_isUsed == 1u ) {
+ errn = encodeNBitUnsignedInteger(stream, 3, 2);
+ if(errn == 0) {
+ /* FirstStartTag[CHARACTERS[ENUMERATION]] */
+ errn = encodeNBitUnsignedInteger(stream, 1, 0);
+ if(errn == 0) {
+ errn = encodeNBitUnsignedInteger(stream, 1, iso2AC_BidirectionalControlReqType->EVOperation);
+ /* valid EE */
+ errn = encodeNBitUnsignedInteger(stream, 1, 0);
+ }
+ }
+ grammarID = 1511;
+ } else if ( 1 == 1 ) {
+ errn = encodeNBitUnsignedInteger(stream, 3, 3);
+ if(errn == 0) {
+ errn = encode_iso2PhysicalValueType(stream, &iso2AC_BidirectionalControlReqType->EVMaximumChargePower );
+ }
+ grammarID = 1512;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 1509:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgBody}DisplayParameters), START_ELEMENT({urn:iso:15118:2:2016:MsgBody}EVOperation), START_ELEMENT({urn:iso:15118:2:2016:MsgBody}EVMaximumChargePower)] */
+ if ( iso2AC_BidirectionalControlReqType->DisplayParameters_isUsed == 1u ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ if(errn == 0) {
+ errn = encode_iso2DisplayParametersType(stream, &iso2AC_BidirectionalControlReqType->DisplayParameters );
+ }
+ grammarID = 1510;
+ } else if ( iso2AC_BidirectionalControlReqType->EVOperation_isUsed == 1u ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ /* FirstStartTag[CHARACTERS[ENUMERATION]] */
+ errn = encodeNBitUnsignedInteger(stream, 1, 0);
+ if(errn == 0) {
+ errn = encodeNBitUnsignedInteger(stream, 1, iso2AC_BidirectionalControlReqType->EVOperation);
+ /* valid EE */
+ errn = encodeNBitUnsignedInteger(stream, 1, 0);
+ }
+ }
+ grammarID = 1511;
+ } else if ( 1 == 1 ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 2);
+ if(errn == 0) {
+ errn = encode_iso2PhysicalValueType(stream, &iso2AC_BidirectionalControlReqType->EVMaximumChargePower );
+ }
+ grammarID = 1512;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 1510:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgBody}EVOperation), START_ELEMENT({urn:iso:15118:2:2016:MsgBody}EVMaximumChargePower)] */
+ if ( iso2AC_BidirectionalControlReqType->EVOperation_isUsed == 1u ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ if(errn == 0) {
+ /* FirstStartTag[CHARACTERS[ENUMERATION]] */
+ errn = encodeNBitUnsignedInteger(stream, 1, 0);
+ if(errn == 0) {
+ errn = encodeNBitUnsignedInteger(stream, 1, iso2AC_BidirectionalControlReqType->EVOperation);
+ /* valid EE */
+ errn = encodeNBitUnsignedInteger(stream, 1, 0);
+ }
+ }
+ grammarID = 1511;
+ } else if ( 1 == 1 ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ errn = encode_iso2PhysicalValueType(stream, &iso2AC_BidirectionalControlReqType->EVMaximumChargePower );
+ }
+ grammarID = 1512;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 1511:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgBody}EVMaximumChargePower)] */
+ if ( 1 == 1 ) {
+ errn = encodeNBitUnsignedInteger(stream, 1, 0);
+ if(errn == 0) {
+ errn = encode_iso2PhysicalValueType(stream, &iso2AC_BidirectionalControlReqType->EVMaximumChargePower );
+ }
+ grammarID = 1512;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 1512:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgBody}EVMaximumDischargePower), START_ELEMENT({urn:iso:15118:2:2016:MsgBody}EVMaximumChargeCurrent)] */
+ if ( iso2AC_BidirectionalControlReqType->EVMaximumDischargePower_isUsed == 1u ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ if(errn == 0) {
+ errn = encode_iso2PhysicalValueType(stream, &iso2AC_BidirectionalControlReqType->EVMaximumDischargePower );
+ }
+ grammarID = 1513;
+ } else if ( 1 == 1 ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ errn = encode_iso2PhysicalValueType(stream, &iso2AC_BidirectionalControlReqType->EVMaximumChargeCurrent );
+ }
+ grammarID = 1514;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 1513:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgBody}EVMaximumChargeCurrent)] */
+ if ( 1 == 1 ) {
+ errn = encodeNBitUnsignedInteger(stream, 1, 0);
+ if(errn == 0) {
+ errn = encode_iso2PhysicalValueType(stream, &iso2AC_BidirectionalControlReqType->EVMaximumChargeCurrent );
+ }
+ grammarID = 1514;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 1514:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgBody}EVMaximumDischargeCurrent), START_ELEMENT({urn:iso:15118:2:2016:MsgBody}EVMinimumChargeCurrent)] */
+ if ( iso2AC_BidirectionalControlReqType->EVMaximumDischargeCurrent_isUsed == 1u ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ if(errn == 0) {
+ errn = encode_iso2PhysicalValueType(stream, &iso2AC_BidirectionalControlReqType->EVMaximumDischargeCurrent );
+ }
+ grammarID = 1515;
+ } else if ( 1 == 1 ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ errn = encode_iso2PhysicalValueType(stream, &iso2AC_BidirectionalControlReqType->EVMinimumChargeCurrent );
+ }
+ grammarID = 1516;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 1515:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgBody}EVMinimumChargeCurrent)] */
+ if ( 1 == 1 ) {
+ errn = encodeNBitUnsignedInteger(stream, 1, 0);
+ if(errn == 0) {
+ errn = encode_iso2PhysicalValueType(stream, &iso2AC_BidirectionalControlReqType->EVMinimumChargeCurrent );
+ }
+ grammarID = 1516;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 1516:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgBody}EVMinimumDischargeCurrent), START_ELEMENT({urn:iso:15118:2:2016:MsgBody}EVPresentActivePower)] */
+ if ( iso2AC_BidirectionalControlReqType->EVMinimumDischargeCurrent_isUsed == 1u ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ if(errn == 0) {
+ errn = encode_iso2PhysicalValueType(stream, &iso2AC_BidirectionalControlReqType->EVMinimumDischargeCurrent );
+ }
+ grammarID = 1517;
+ } else if ( 1 == 1 ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ errn = encode_iso2PhysicalValueType(stream, &iso2AC_BidirectionalControlReqType->EVPresentActivePower );
+ }
+ grammarID = 1518;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 1517:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgBody}EVPresentActivePower)] */
+ if ( 1 == 1 ) {
+ errn = encodeNBitUnsignedInteger(stream, 1, 0);
+ if(errn == 0) {
+ errn = encode_iso2PhysicalValueType(stream, &iso2AC_BidirectionalControlReqType->EVPresentActivePower );
+ }
+ grammarID = 1518;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 1518:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgBody}EVPresentReactivePower)] */
+ if ( 1 == 1 ) {
+ errn = encodeNBitUnsignedInteger(stream, 1, 0);
+ if(errn == 0) {
+ errn = encode_iso2PhysicalValueType(stream, &iso2AC_BidirectionalControlReqType->EVPresentReactivePower );
+ }
+ grammarID = 3;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 3:
+ /* Element[END_ELEMENT] */
+ if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 1, 0);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } 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:2016:MsgDataTypes,MV_EVSEFinePositioningParametersType', base type name='EVSEFinePositioningParametersType', content type='ELEMENT', isAbstract='false', hasTypeId='false', final='0', block='0', particle='("urn:iso:15118:2:2016:MsgDataTypes":MagneticVectorList)', derivedBy='EXTENSION'. */
+static int encode_iso2MV_EVSEFinePositioningParametersType(bitstream_t* stream, struct iso2MV_EVSEFinePositioningParametersType* iso2MV_EVSEFinePositioningParametersType) {
+ int grammarID = 1519;
+ int done = 0;
+
+
+ while(!done) {
+ switch(grammarID) {
+ case 1519:
+ /* FirstStartTag[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MagneticVectorList)] */
+ if ( 1 == 1 ) {
+ errn = encodeNBitUnsignedInteger(stream, 1, 0);
+ if(errn == 0) {
+ errn = encode_iso2MagneticVectorListType(stream, &iso2MV_EVSEFinePositioningParametersType->MagneticVectorList );
+ }
+ grammarID = 3;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 3:
+ /* Element[END_ELEMENT] */
+ if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 1, 0);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_GRAMMAR_ID;
+ break;
+ }
+ if(errn) {
+ done = 1;
+ }
+ }
+ return errn;
+}
+
+/* Complex type name='http://www.w3.org/2000/09/xmldsig#,ReferenceType', base type name='anyType', content type='ELEMENT', isAbstract='false', hasTypeId='false', final='0', block='0', particle='("http://www.w3.org/2000/09/xmldsig#":Transforms{0-1},"http://www.w3.org/2000/09/xmldsig#":DigestMethod,"http://www.w3.org/2000/09/xmldsig#":DigestValue)', derivedBy='RESTRICTION'. */
+static int encode_iso2ReferenceType(bitstream_t* stream, struct iso2ReferenceType* iso2ReferenceType) {
+ int grammarID = 1520;
+ int done = 0;
+
+
+ while(!done) {
+ switch(grammarID) {
+ case 1520:
+ /* FirstStartTag[ATTRIBUTE[STRING](Id), ATTRIBUTE[STRING](Type), ATTRIBUTE[STRING](URI), START_ELEMENT({http://www.w3.org/2000/09/xmldsig#}Transforms), START_ELEMENT({http://www.w3.org/2000/09/xmldsig#}DigestMethod)] */
+ if ( iso2ReferenceType->Id_isUsed == 1u ) {
+ errn = encodeNBitUnsignedInteger(stream, 3, 0);
+ if(errn == 0) {
+ /* encode string as string table miss (+2 len)*/
+ errn = encodeUnsignedInteger16(stream, (uint16_t)(iso2ReferenceType->Id.charactersLen + 2));
+ if (errn == 0) {
+ errn = encodeCharacters(stream, iso2ReferenceType->Id.characters, iso2ReferenceType->Id.charactersLen);
+ }
+ }
+ grammarID = 1521;
+ } else if ( iso2ReferenceType->Type_isUsed == 1u ) {
+ errn = encodeNBitUnsignedInteger(stream, 3, 1);
+ if(errn == 0) {
+ /* encode string as string table miss (+2 len)*/
+ errn = encodeUnsignedInteger16(stream, (uint16_t)(iso2ReferenceType->Type.charactersLen + 2));
+ if (errn == 0) {
+ errn = encodeCharacters(stream, iso2ReferenceType->Type.characters, iso2ReferenceType->Type.charactersLen);
+ }
+ }
+ grammarID = 1522;
+ } else if ( iso2ReferenceType->URI_isUsed == 1u ) {
+ errn = encodeNBitUnsignedInteger(stream, 3, 2);
+ if(errn == 0) {
+ /* encode string as string table miss (+2 len)*/
+ errn = encodeUnsignedInteger16(stream, (uint16_t)(iso2ReferenceType->URI.charactersLen + 2));
+ if (errn == 0) {
+ errn = encodeCharacters(stream, iso2ReferenceType->URI.characters, iso2ReferenceType->URI.charactersLen);
+ }
+ }
+ grammarID = 1523;
+ } else if ( iso2ReferenceType->Transforms_isUsed == 1u ) {
+ errn = encodeNBitUnsignedInteger(stream, 3, 3);
+ if(errn == 0) {
+ errn = encode_iso2TransformsType(stream, &iso2ReferenceType->Transforms );
+ }
+ grammarID = 1524;
+ } else if ( 1 == 1 ) {
+ errn = encodeNBitUnsignedInteger(stream, 3, 4);
+ if(errn == 0) {
+ errn = encode_iso2DigestMethodType(stream, &iso2ReferenceType->DigestMethod );
+ }
+ grammarID = 1525;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 1521:
+ /* StartTag[ATTRIBUTE[STRING](Type), ATTRIBUTE[STRING](URI), START_ELEMENT({http://www.w3.org/2000/09/xmldsig#}Transforms), START_ELEMENT({http://www.w3.org/2000/09/xmldsig#}DigestMethod)] */
+ if ( iso2ReferenceType->Type_isUsed == 1u ) {
+ errn = encodeNBitUnsignedInteger(stream, 3, 0);
+ if(errn == 0) {
+ /* encode string as string table miss (+2 len)*/
+ errn = encodeUnsignedInteger16(stream, (uint16_t)(iso2ReferenceType->Type.charactersLen + 2));
+ if (errn == 0) {
+ errn = encodeCharacters(stream, iso2ReferenceType->Type.characters, iso2ReferenceType->Type.charactersLen);
+ }
+ }
+ grammarID = 1522;
+ } else if ( iso2ReferenceType->URI_isUsed == 1u ) {
+ errn = encodeNBitUnsignedInteger(stream, 3, 1);
+ if(errn == 0) {
+ /* encode string as string table miss (+2 len)*/
+ errn = encodeUnsignedInteger16(stream, (uint16_t)(iso2ReferenceType->URI.charactersLen + 2));
+ if (errn == 0) {
+ errn = encodeCharacters(stream, iso2ReferenceType->URI.characters, iso2ReferenceType->URI.charactersLen);
+ }
+ }
+ grammarID = 1523;
+ } else if ( iso2ReferenceType->Transforms_isUsed == 1u ) {
+ errn = encodeNBitUnsignedInteger(stream, 3, 2);
+ if(errn == 0) {
+ errn = encode_iso2TransformsType(stream, &iso2ReferenceType->Transforms );
+ }
+ grammarID = 1524;
+ } else if ( 1 == 1 ) {
+ errn = encodeNBitUnsignedInteger(stream, 3, 3);
+ if(errn == 0) {
+ errn = encode_iso2DigestMethodType(stream, &iso2ReferenceType->DigestMethod );
+ }
+ grammarID = 1525;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 1522:
+ /* StartTag[ATTRIBUTE[STRING](URI), START_ELEMENT({http://www.w3.org/2000/09/xmldsig#}Transforms), START_ELEMENT({http://www.w3.org/2000/09/xmldsig#}DigestMethod)] */
+ if ( iso2ReferenceType->URI_isUsed == 1u ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ if(errn == 0) {
+ /* encode string as string table miss (+2 len)*/
+ errn = encodeUnsignedInteger16(stream, (uint16_t)(iso2ReferenceType->URI.charactersLen + 2));
+ if (errn == 0) {
+ errn = encodeCharacters(stream, iso2ReferenceType->URI.characters, iso2ReferenceType->URI.charactersLen);
+ }
+ }
+ grammarID = 1523;
+ } else if ( iso2ReferenceType->Transforms_isUsed == 1u ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ errn = encode_iso2TransformsType(stream, &iso2ReferenceType->Transforms );
+ }
+ grammarID = 1524;
+ } else if ( 1 == 1 ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 2);
+ if(errn == 0) {
+ errn = encode_iso2DigestMethodType(stream, &iso2ReferenceType->DigestMethod );
+ }
+ grammarID = 1525;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 1523:
+ /* StartTag[START_ELEMENT({http://www.w3.org/2000/09/xmldsig#}Transforms), START_ELEMENT({http://www.w3.org/2000/09/xmldsig#}DigestMethod)] */
+ if ( iso2ReferenceType->Transforms_isUsed == 1u ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ if(errn == 0) {
+ errn = encode_iso2TransformsType(stream, &iso2ReferenceType->Transforms );
+ }
+ grammarID = 1524;
+ } else if ( 1 == 1 ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ errn = encode_iso2DigestMethodType(stream, &iso2ReferenceType->DigestMethod );
+ }
+ grammarID = 1525;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 1524:
+ /* Element[START_ELEMENT({http://www.w3.org/2000/09/xmldsig#}DigestMethod)] */
+ if ( 1 == 1 ) {
+ errn = encodeNBitUnsignedInteger(stream, 1, 0);
+ if(errn == 0) {
+ errn = encode_iso2DigestMethodType(stream, &iso2ReferenceType->DigestMethod );
+ }
+ grammarID = 1525;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 1525:
+ /* Element[START_ELEMENT({http://www.w3.org/2000/09/xmldsig#}DigestValue)] */
+ if ( 1 == 1 ) {
+ errn = encodeNBitUnsignedInteger(stream, 1, 0);
+ if(errn == 0) {
+ /* FirstStartTag[CHARACTERS[BINARY_BASE64]] */
+ errn = encodeNBitUnsignedInteger(stream, 1, 0);
+ if(errn == 0) {
+ errn = encodeUnsignedInteger16(stream, (uint16_t)(iso2ReferenceType->DigestValue.bytesLen));
+ if (errn == 0) {
+ errn = encodeBytes(stream, iso2ReferenceType->DigestValue.bytes, iso2ReferenceType->DigestValue.bytesLen);
+ }
+ /* valid EE */
+ errn = encodeNBitUnsignedInteger(stream, 1, 0);
+ }
+ }
+ grammarID = 3;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 3:
+ /* Element[END_ELEMENT] */
+ if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 1, 0);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } 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:2016:MsgDataTypes,EVSEEnergyTransferParameterType', base type name='anyType', content type='EMPTY', isAbstract='true', hasTypeId='false', final='0', block='0', derivedBy='RESTRICTION'. */
+static int encode_iso2EVSEEnergyTransferParameterType(bitstream_t* stream, struct iso2EVSEEnergyTransferParameterType* iso2EVSEEnergyTransferParameterType) {
+ int grammarID = 674;
+ int done = 0;
+
+
+ while(!done) {
+ switch(grammarID) {
+ case 674:
+ /* FirstStartTag[END_ELEMENT] */
+ if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 1, 0);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } 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:2016:MsgBody,MeteringReceiptReqType', base type name='BodyBaseType', content type='ELEMENT', isAbstract='false', hasTypeId='false', final='0', block='0', particle='("urn:iso:15118:2:2016:MsgBody":SessionID,"urn:iso:15118:2:2016:MsgBody":SAScheduleTupleID{0-1},"urn:iso:15118:2:2016:MsgBody":MeterInfo)', derivedBy='EXTENSION'. */
+static int encode_iso2MeteringReceiptReqType(bitstream_t* stream, struct iso2MeteringReceiptReqType* iso2MeteringReceiptReqType) {
+ int grammarID = 1526;
+ int done = 0;
+
+
+ while(!done) {
+ switch(grammarID) {
+ case 1526:
+ /* FirstStartTag[ATTRIBUTE[STRING]({urn:iso:15118:2:2016:MsgBody}Id)] */
+ if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 1, 0);
+ if(errn == 0) {
+ /* encode string as string table miss (+2 len)*/
+ errn = encodeUnsignedInteger16(stream, (uint16_t)(iso2MeteringReceiptReqType->Id.charactersLen + 2));
+ if (errn == 0) {
+ errn = encodeCharacters(stream, iso2MeteringReceiptReqType->Id.characters, iso2MeteringReceiptReqType->Id.charactersLen);
+ }
+ }
+ grammarID = 1527;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 1527:
+ /* StartTag[START_ELEMENT({urn:iso:15118:2:2016:MsgBody}SessionID)] */
+ if ( 1 == 1 ) {
+ errn = encodeNBitUnsignedInteger(stream, 1, 0);
+ if(errn == 0) {
+ /* FirstStartTag[CHARACTERS[BINARY_HEX]] */
+ errn = encodeNBitUnsignedInteger(stream, 1, 0);
+ if(errn == 0) {
+ errn = encodeUnsignedInteger16(stream, (uint16_t)(iso2MeteringReceiptReqType->SessionID.bytesLen));
+ if (errn == 0) {
+ errn = encodeBytes(stream, iso2MeteringReceiptReqType->SessionID.bytes, iso2MeteringReceiptReqType->SessionID.bytesLen);
+ }
+ /* valid EE */
+ errn = encodeNBitUnsignedInteger(stream, 1, 0);
+ }
+ }
+ grammarID = 1528;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 1528:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgBody}SAScheduleTupleID), START_ELEMENT({urn:iso:15118:2:2016:MsgBody}MeterInfo)] */
+ if ( iso2MeteringReceiptReqType->SAScheduleTupleID_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)(iso2MeteringReceiptReqType->SAScheduleTupleID - 1));
+ /* valid EE */
+ errn = encodeNBitUnsignedInteger(stream, 1, 0);
+ }
+ }
+ grammarID = 1529;
+ } else if ( 1 == 1 ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ errn = encode_iso2MeterInfoType(stream, &iso2MeteringReceiptReqType->MeterInfo );
+ }
+ grammarID = 3;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 1529:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgBody}MeterInfo)] */
+ if ( 1 == 1 ) {
+ errn = encodeNBitUnsignedInteger(stream, 1, 0);
+ if(errn == 0) {
+ errn = encode_iso2MeterInfoType(stream, &iso2MeteringReceiptReqType->MeterInfo );
+ }
+ grammarID = 3;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 3:
+ /* Element[END_ELEMENT] */
+ if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 1, 0);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_GRAMMAR_ID;
+ break;
+ }
+ if(errn) {
+ done = 1;
+ }
+ }
+ return errn;
+}
+
+/* Complex type name='http://www.w3.org/2000/09/xmldsig#,KeyValueType', base type name='anyType', content type='MIXED', isAbstract='false', hasTypeId='false', final='0', block='0', particle='("http://www.w3.org/2000/09/xmldsig#":DSAKeyValue|"http://www.w3.org/2000/09/xmldsig#":RSAKeyValue|(WC[##other:"http://www.w3.org/2000/09/xmldsig#"]))', derivedBy='RESTRICTION'. */
+static int encode_iso2KeyValueType(bitstream_t* stream, struct iso2KeyValueType* iso2KeyValueType) {
+ int grammarID = 1530;
+ int done = 0;
+ int wcDone = 0;
+
+
+ while(!done) {
+ switch(grammarID) {
+ case 1530:
+ /* FirstStartTag[START_ELEMENT({http://www.w3.org/2000/09/xmldsig#}DSAKeyValue), START_ELEMENT({http://www.w3.org/2000/09/xmldsig#}RSAKeyValue), START_ELEMENT_GENERIC, CHARACTERS_GENERIC[STRING]] */
+ if ( iso2KeyValueType->DSAKeyValue_isUsed == 1u ) {
+ errn = encodeNBitUnsignedInteger(stream, 3, 0);
+ if(errn == 0) {
+ errn = encode_iso2DSAKeyValueType(stream, &iso2KeyValueType->DSAKeyValue );
+ }
+ grammarID = 1531;
+ } else if ( iso2KeyValueType->RSAKeyValue_isUsed == 1u ) {
+ errn = encodeNBitUnsignedInteger(stream, 3, 1);
+ if(errn == 0) {
+ errn = encode_iso2RSAKeyValueType(stream, &iso2KeyValueType->RSAKeyValue );
+ }
+ grammarID = 1531;
+ } else if (1==0) {
+ errn = EXI_UNSUPPORTED_EVENT_CODE_CHARACTERISTICS;
+ grammarID = 1531;
+ } else if ( iso2KeyValueType->ANY_isUsed == 1u ) {
+ errn = encodeNBitUnsignedInteger(stream, 3, 3);
+ if(errn == 0) {
+ /* encode string as string table miss (+2 len)*/
+ errn = encodeUnsignedInteger16(stream, (uint16_t)(iso2KeyValueType->ANY.charactersLen + 2));
+ if (errn == 0) {
+ errn = encodeCharacters(stream, iso2KeyValueType->ANY.characters, iso2KeyValueType->ANY.charactersLen);
+ }
+ }
+ wcDone = 1;
+ grammarID = 1532;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 1531:
+ /* Element[END_ELEMENT, CHARACTERS_GENERIC[STRING]] */
+ if ( iso2KeyValueType->ANY_isUsed == 0u || wcDone ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else if ( iso2KeyValueType->ANY_isUsed == 1u ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ /* encode string as string table miss (+2 len)*/
+ errn = encodeUnsignedInteger16(stream, (uint16_t)(iso2KeyValueType->ANY.charactersLen + 2));
+ if (errn == 0) {
+ errn = encodeCharacters(stream, iso2KeyValueType->ANY.characters, iso2KeyValueType->ANY.charactersLen);
+ }
+ }
+ wcDone = 1;
+ grammarID = 1531;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 1532:
+ /* Element[START_ELEMENT({http://www.w3.org/2000/09/xmldsig#}DSAKeyValue), START_ELEMENT({http://www.w3.org/2000/09/xmldsig#}RSAKeyValue), START_ELEMENT_GENERIC, CHARACTERS_GENERIC[STRING]] */
+ if ( iso2KeyValueType->DSAKeyValue_isUsed == 1u ) {
+ errn = encodeNBitUnsignedInteger(stream, 3, 0);
+ if(errn == 0) {
+ errn = encode_iso2DSAKeyValueType(stream, &iso2KeyValueType->DSAKeyValue );
+ }
+ grammarID = 1531;
+ } else if ( iso2KeyValueType->RSAKeyValue_isUsed == 1u ) {
+ errn = encodeNBitUnsignedInteger(stream, 3, 1);
+ if(errn == 0) {
+ errn = encode_iso2RSAKeyValueType(stream, &iso2KeyValueType->RSAKeyValue );
+ }
+ grammarID = 1531;
+ } else if (1==0) {
+ errn = EXI_UNSUPPORTED_EVENT_CODE_CHARACTERISTICS;
+ grammarID = 1531;
+ } else if ( iso2KeyValueType->ANY_isUsed == 1u ) {
+ errn = encodeNBitUnsignedInteger(stream, 3, 3);
+ if(errn == 0) {
+ /* encode string as string table miss (+2 len)*/
+ errn = encodeUnsignedInteger16(stream, (uint16_t)(iso2KeyValueType->ANY.charactersLen + 2));
+ if (errn == 0) {
+ errn = encodeCharacters(stream, iso2KeyValueType->ANY.characters, iso2KeyValueType->ANY.charactersLen);
+ }
+ }
+ wcDone = 1;
+ grammarID = 1532;
+ } 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:2016:MsgDataTypes,SensorListType', base type name='anyType', content type='ELEMENT', isAbstract='false', hasTypeId='false', final='0', block='0', particle='("urn:iso:15118:2:2016:MsgDataTypes":Sensor{1-255})', derivedBy='RESTRICTION'. */
+static int encode_iso2SensorListType(bitstream_t* stream, struct iso2SensorListType* iso2SensorListType) {
+ int grammarID = 1533;
+ int done = 0;
+
+ unsigned int iso2SensorListType_Sensor_currArrayIndex = 0;
+
+ while(!done) {
+ switch(grammarID) {
+ case 1533:
+ /* FirstStartTag[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}Sensor)] */
+ if (iso2SensorListType_Sensor_currArrayIndex < iso2SensorListType->Sensor.arrayLen ) {
+ errn = encodeNBitUnsignedInteger(stream, 1, 0);
+ if(errn == 0) {
+ errn = encode_iso2SensorType(stream, &iso2SensorListType->Sensor.array [iso2SensorListType_Sensor_currArrayIndex++]);
+ }
+ grammarID = 1534;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 1534:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}Sensor), END_ELEMENT] */
+ if (iso2SensorListType_Sensor_currArrayIndex < iso2SensorListType->Sensor.arrayLen ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ if(errn == 0) {
+ errn = encode_iso2SensorType(stream, &iso2SensorListType->Sensor.array [iso2SensorListType_Sensor_currArrayIndex++]);
+ }
+ grammarID = 1535;
+ } else if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 1535:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}Sensor), END_ELEMENT] */
+ if (iso2SensorListType_Sensor_currArrayIndex < iso2SensorListType->Sensor.arrayLen ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ if(errn == 0) {
+ errn = encode_iso2SensorType(stream, &iso2SensorListType->Sensor.array [iso2SensorListType_Sensor_currArrayIndex++]);
+ }
+ grammarID = 1536;
+ } else if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 1536:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}Sensor), END_ELEMENT] */
+ if (iso2SensorListType_Sensor_currArrayIndex < iso2SensorListType->Sensor.arrayLen ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ if(errn == 0) {
+ errn = encode_iso2SensorType(stream, &iso2SensorListType->Sensor.array [iso2SensorListType_Sensor_currArrayIndex++]);
+ }
+ grammarID = 1537;
+ } else if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 1537:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}Sensor), END_ELEMENT] */
+ if (iso2SensorListType_Sensor_currArrayIndex < iso2SensorListType->Sensor.arrayLen ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ if(errn == 0) {
+ errn = encode_iso2SensorType(stream, &iso2SensorListType->Sensor.array [iso2SensorListType_Sensor_currArrayIndex++]);
+ }
+ grammarID = 1538;
+ } else if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 1538:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}Sensor), END_ELEMENT] */
+ if (iso2SensorListType_Sensor_currArrayIndex < iso2SensorListType->Sensor.arrayLen ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ if(errn == 0) {
+ errn = encode_iso2SensorType(stream, &iso2SensorListType->Sensor.array [iso2SensorListType_Sensor_currArrayIndex++]);
+ }
+ grammarID = 1539;
+ } else if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 1539:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}Sensor), END_ELEMENT] */
+ if (iso2SensorListType_Sensor_currArrayIndex < iso2SensorListType->Sensor.arrayLen ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ if(errn == 0) {
+ errn = encode_iso2SensorType(stream, &iso2SensorListType->Sensor.array [iso2SensorListType_Sensor_currArrayIndex++]);
+ }
+ grammarID = 1540;
+ } else if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 1540:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}Sensor), END_ELEMENT] */
+ if (iso2SensorListType_Sensor_currArrayIndex < iso2SensorListType->Sensor.arrayLen ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ if(errn == 0) {
+ errn = encode_iso2SensorType(stream, &iso2SensorListType->Sensor.array [iso2SensorListType_Sensor_currArrayIndex++]);
+ }
+ grammarID = 1541;
+ } else if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 1541:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}Sensor), END_ELEMENT] */
+ if (iso2SensorListType_Sensor_currArrayIndex < iso2SensorListType->Sensor.arrayLen ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ if(errn == 0) {
+ errn = encode_iso2SensorType(stream, &iso2SensorListType->Sensor.array [iso2SensorListType_Sensor_currArrayIndex++]);
+ }
+ grammarID = 1542;
+ } else if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 1542:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}Sensor), END_ELEMENT] */
+ if (iso2SensorListType_Sensor_currArrayIndex < iso2SensorListType->Sensor.arrayLen ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ if(errn == 0) {
+ errn = encode_iso2SensorType(stream, &iso2SensorListType->Sensor.array [iso2SensorListType_Sensor_currArrayIndex++]);
+ }
+ grammarID = 1543;
+ } else if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 1543:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}Sensor), END_ELEMENT] */
+ if (iso2SensorListType_Sensor_currArrayIndex < iso2SensorListType->Sensor.arrayLen ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ if(errn == 0) {
+ errn = encode_iso2SensorType(stream, &iso2SensorListType->Sensor.array [iso2SensorListType_Sensor_currArrayIndex++]);
+ }
+ grammarID = 1544;
+ } else if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 1544:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}Sensor), END_ELEMENT] */
+ if (iso2SensorListType_Sensor_currArrayIndex < iso2SensorListType->Sensor.arrayLen ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ if(errn == 0) {
+ errn = encode_iso2SensorType(stream, &iso2SensorListType->Sensor.array [iso2SensorListType_Sensor_currArrayIndex++]);
+ }
+ grammarID = 1545;
+ } else if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 1545:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}Sensor), END_ELEMENT] */
+ if (iso2SensorListType_Sensor_currArrayIndex < iso2SensorListType->Sensor.arrayLen ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ if(errn == 0) {
+ errn = encode_iso2SensorType(stream, &iso2SensorListType->Sensor.array [iso2SensorListType_Sensor_currArrayIndex++]);
+ }
+ grammarID = 1546;
+ } else if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 1546:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}Sensor), END_ELEMENT] */
+ if (iso2SensorListType_Sensor_currArrayIndex < iso2SensorListType->Sensor.arrayLen ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ if(errn == 0) {
+ errn = encode_iso2SensorType(stream, &iso2SensorListType->Sensor.array [iso2SensorListType_Sensor_currArrayIndex++]);
+ }
+ grammarID = 1547;
+ } else if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 1547:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}Sensor), END_ELEMENT] */
+ if (iso2SensorListType_Sensor_currArrayIndex < iso2SensorListType->Sensor.arrayLen ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ if(errn == 0) {
+ errn = encode_iso2SensorType(stream, &iso2SensorListType->Sensor.array [iso2SensorListType_Sensor_currArrayIndex++]);
+ }
+ grammarID = 1548;
+ } else if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 1548:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}Sensor), END_ELEMENT] */
+ if (iso2SensorListType_Sensor_currArrayIndex < iso2SensorListType->Sensor.arrayLen ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ if(errn == 0) {
+ errn = encode_iso2SensorType(stream, &iso2SensorListType->Sensor.array [iso2SensorListType_Sensor_currArrayIndex++]);
+ }
+ grammarID = 1549;
+ } else if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 1549:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}Sensor), END_ELEMENT] */
+ if (iso2SensorListType_Sensor_currArrayIndex < iso2SensorListType->Sensor.arrayLen ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ if(errn == 0) {
+ errn = encode_iso2SensorType(stream, &iso2SensorListType->Sensor.array [iso2SensorListType_Sensor_currArrayIndex++]);
+ }
+ grammarID = 1550;
+ } else if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 1550:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}Sensor), END_ELEMENT] */
+ if (iso2SensorListType_Sensor_currArrayIndex < iso2SensorListType->Sensor.arrayLen ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ if(errn == 0) {
+ errn = encode_iso2SensorType(stream, &iso2SensorListType->Sensor.array [iso2SensorListType_Sensor_currArrayIndex++]);
+ }
+ grammarID = 1551;
+ } else if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 1551:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}Sensor), END_ELEMENT] */
+ if (iso2SensorListType_Sensor_currArrayIndex < iso2SensorListType->Sensor.arrayLen ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ if(errn == 0) {
+ errn = encode_iso2SensorType(stream, &iso2SensorListType->Sensor.array [iso2SensorListType_Sensor_currArrayIndex++]);
+ }
+ grammarID = 1552;
+ } else if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 1552:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}Sensor), END_ELEMENT] */
+ if (iso2SensorListType_Sensor_currArrayIndex < iso2SensorListType->Sensor.arrayLen ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ if(errn == 0) {
+ errn = encode_iso2SensorType(stream, &iso2SensorListType->Sensor.array [iso2SensorListType_Sensor_currArrayIndex++]);
+ }
+ grammarID = 1553;
+ } else if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 1553:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}Sensor), END_ELEMENT] */
+ if (iso2SensorListType_Sensor_currArrayIndex < iso2SensorListType->Sensor.arrayLen ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ if(errn == 0) {
+ errn = encode_iso2SensorType(stream, &iso2SensorListType->Sensor.array [iso2SensorListType_Sensor_currArrayIndex++]);
+ }
+ grammarID = 1554;
+ } else if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 1554:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}Sensor), END_ELEMENT] */
+ if (iso2SensorListType_Sensor_currArrayIndex < iso2SensorListType->Sensor.arrayLen ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ if(errn == 0) {
+ errn = encode_iso2SensorType(stream, &iso2SensorListType->Sensor.array [iso2SensorListType_Sensor_currArrayIndex++]);
+ }
+ grammarID = 1555;
+ } else if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 1555:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}Sensor), END_ELEMENT] */
+ if (iso2SensorListType_Sensor_currArrayIndex < iso2SensorListType->Sensor.arrayLen ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ if(errn == 0) {
+ errn = encode_iso2SensorType(stream, &iso2SensorListType->Sensor.array [iso2SensorListType_Sensor_currArrayIndex++]);
+ }
+ grammarID = 1556;
+ } else if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 1556:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}Sensor), END_ELEMENT] */
+ if (iso2SensorListType_Sensor_currArrayIndex < iso2SensorListType->Sensor.arrayLen ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ if(errn == 0) {
+ errn = encode_iso2SensorType(stream, &iso2SensorListType->Sensor.array [iso2SensorListType_Sensor_currArrayIndex++]);
+ }
+ grammarID = 1557;
+ } else if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 1557:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}Sensor), END_ELEMENT] */
+ if (iso2SensorListType_Sensor_currArrayIndex < iso2SensorListType->Sensor.arrayLen ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ if(errn == 0) {
+ errn = encode_iso2SensorType(stream, &iso2SensorListType->Sensor.array [iso2SensorListType_Sensor_currArrayIndex++]);
+ }
+ grammarID = 1558;
+ } else if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 1558:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}Sensor), END_ELEMENT] */
+ if (iso2SensorListType_Sensor_currArrayIndex < iso2SensorListType->Sensor.arrayLen ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ if(errn == 0) {
+ errn = encode_iso2SensorType(stream, &iso2SensorListType->Sensor.array [iso2SensorListType_Sensor_currArrayIndex++]);
+ }
+ grammarID = 1559;
+ } else if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 1559:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}Sensor), END_ELEMENT] */
+ if (iso2SensorListType_Sensor_currArrayIndex < iso2SensorListType->Sensor.arrayLen ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ if(errn == 0) {
+ errn = encode_iso2SensorType(stream, &iso2SensorListType->Sensor.array [iso2SensorListType_Sensor_currArrayIndex++]);
+ }
+ grammarID = 1560;
+ } else if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 1560:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}Sensor), END_ELEMENT] */
+ if (iso2SensorListType_Sensor_currArrayIndex < iso2SensorListType->Sensor.arrayLen ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ if(errn == 0) {
+ errn = encode_iso2SensorType(stream, &iso2SensorListType->Sensor.array [iso2SensorListType_Sensor_currArrayIndex++]);
+ }
+ grammarID = 1561;
+ } else if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 1561:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}Sensor), END_ELEMENT] */
+ if (iso2SensorListType_Sensor_currArrayIndex < iso2SensorListType->Sensor.arrayLen ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ if(errn == 0) {
+ errn = encode_iso2SensorType(stream, &iso2SensorListType->Sensor.array [iso2SensorListType_Sensor_currArrayIndex++]);
+ }
+ grammarID = 1562;
+ } else if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 1562:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}Sensor), END_ELEMENT] */
+ if (iso2SensorListType_Sensor_currArrayIndex < iso2SensorListType->Sensor.arrayLen ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ if(errn == 0) {
+ errn = encode_iso2SensorType(stream, &iso2SensorListType->Sensor.array [iso2SensorListType_Sensor_currArrayIndex++]);
+ }
+ grammarID = 1563;
+ } else if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 1563:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}Sensor), END_ELEMENT] */
+ if (iso2SensorListType_Sensor_currArrayIndex < iso2SensorListType->Sensor.arrayLen ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ if(errn == 0) {
+ errn = encode_iso2SensorType(stream, &iso2SensorListType->Sensor.array [iso2SensorListType_Sensor_currArrayIndex++]);
+ }
+ grammarID = 1564;
+ } else if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 1564:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}Sensor), END_ELEMENT] */
+ if (iso2SensorListType_Sensor_currArrayIndex < iso2SensorListType->Sensor.arrayLen ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ if(errn == 0) {
+ errn = encode_iso2SensorType(stream, &iso2SensorListType->Sensor.array [iso2SensorListType_Sensor_currArrayIndex++]);
+ }
+ grammarID = 1565;
+ } else if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 1565:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}Sensor), END_ELEMENT] */
+ if (iso2SensorListType_Sensor_currArrayIndex < iso2SensorListType->Sensor.arrayLen ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ if(errn == 0) {
+ errn = encode_iso2SensorType(stream, &iso2SensorListType->Sensor.array [iso2SensorListType_Sensor_currArrayIndex++]);
+ }
+ grammarID = 1566;
+ } else if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 1566:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}Sensor), END_ELEMENT] */
+ if (iso2SensorListType_Sensor_currArrayIndex < iso2SensorListType->Sensor.arrayLen ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ if(errn == 0) {
+ errn = encode_iso2SensorType(stream, &iso2SensorListType->Sensor.array [iso2SensorListType_Sensor_currArrayIndex++]);
+ }
+ grammarID = 1567;
+ } else if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 1567:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}Sensor), END_ELEMENT] */
+ if (iso2SensorListType_Sensor_currArrayIndex < iso2SensorListType->Sensor.arrayLen ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ if(errn == 0) {
+ errn = encode_iso2SensorType(stream, &iso2SensorListType->Sensor.array [iso2SensorListType_Sensor_currArrayIndex++]);
+ }
+ grammarID = 1568;
+ } else if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 1568:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}Sensor), END_ELEMENT] */
+ if (iso2SensorListType_Sensor_currArrayIndex < iso2SensorListType->Sensor.arrayLen ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ if(errn == 0) {
+ errn = encode_iso2SensorType(stream, &iso2SensorListType->Sensor.array [iso2SensorListType_Sensor_currArrayIndex++]);
+ }
+ grammarID = 1569;
+ } else if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 1569:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}Sensor), END_ELEMENT] */
+ if (iso2SensorListType_Sensor_currArrayIndex < iso2SensorListType->Sensor.arrayLen ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ if(errn == 0) {
+ errn = encode_iso2SensorType(stream, &iso2SensorListType->Sensor.array [iso2SensorListType_Sensor_currArrayIndex++]);
+ }
+ grammarID = 1570;
+ } else if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 1570:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}Sensor), END_ELEMENT] */
+ if (iso2SensorListType_Sensor_currArrayIndex < iso2SensorListType->Sensor.arrayLen ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ if(errn == 0) {
+ errn = encode_iso2SensorType(stream, &iso2SensorListType->Sensor.array [iso2SensorListType_Sensor_currArrayIndex++]);
+ }
+ grammarID = 1571;
+ } else if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 1571:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}Sensor), END_ELEMENT] */
+ if (iso2SensorListType_Sensor_currArrayIndex < iso2SensorListType->Sensor.arrayLen ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ if(errn == 0) {
+ errn = encode_iso2SensorType(stream, &iso2SensorListType->Sensor.array [iso2SensorListType_Sensor_currArrayIndex++]);
+ }
+ grammarID = 1572;
+ } else if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 1572:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}Sensor), END_ELEMENT] */
+ if (iso2SensorListType_Sensor_currArrayIndex < iso2SensorListType->Sensor.arrayLen ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ if(errn == 0) {
+ errn = encode_iso2SensorType(stream, &iso2SensorListType->Sensor.array [iso2SensorListType_Sensor_currArrayIndex++]);
+ }
+ grammarID = 1573;
+ } else if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 1573:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}Sensor), END_ELEMENT] */
+ if (iso2SensorListType_Sensor_currArrayIndex < iso2SensorListType->Sensor.arrayLen ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ if(errn == 0) {
+ errn = encode_iso2SensorType(stream, &iso2SensorListType->Sensor.array [iso2SensorListType_Sensor_currArrayIndex++]);
+ }
+ grammarID = 1574;
+ } else if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 1574:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}Sensor), END_ELEMENT] */
+ if (iso2SensorListType_Sensor_currArrayIndex < iso2SensorListType->Sensor.arrayLen ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ if(errn == 0) {
+ errn = encode_iso2SensorType(stream, &iso2SensorListType->Sensor.array [iso2SensorListType_Sensor_currArrayIndex++]);
+ }
+ grammarID = 1575;
+ } else if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 1575:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}Sensor), END_ELEMENT] */
+ if (iso2SensorListType_Sensor_currArrayIndex < iso2SensorListType->Sensor.arrayLen ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ if(errn == 0) {
+ errn = encode_iso2SensorType(stream, &iso2SensorListType->Sensor.array [iso2SensorListType_Sensor_currArrayIndex++]);
+ }
+ grammarID = 1576;
+ } else if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 1576:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}Sensor), END_ELEMENT] */
+ if (iso2SensorListType_Sensor_currArrayIndex < iso2SensorListType->Sensor.arrayLen ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ if(errn == 0) {
+ errn = encode_iso2SensorType(stream, &iso2SensorListType->Sensor.array [iso2SensorListType_Sensor_currArrayIndex++]);
+ }
+ grammarID = 1577;
+ } else if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 1577:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}Sensor), END_ELEMENT] */
+ if (iso2SensorListType_Sensor_currArrayIndex < iso2SensorListType->Sensor.arrayLen ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ if(errn == 0) {
+ errn = encode_iso2SensorType(stream, &iso2SensorListType->Sensor.array [iso2SensorListType_Sensor_currArrayIndex++]);
+ }
+ grammarID = 1578;
+ } else if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 1578:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}Sensor), END_ELEMENT] */
+ if (iso2SensorListType_Sensor_currArrayIndex < iso2SensorListType->Sensor.arrayLen ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ if(errn == 0) {
+ errn = encode_iso2SensorType(stream, &iso2SensorListType->Sensor.array [iso2SensorListType_Sensor_currArrayIndex++]);
+ }
+ grammarID = 1579;
+ } else if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 1579:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}Sensor), END_ELEMENT] */
+ if (iso2SensorListType_Sensor_currArrayIndex < iso2SensorListType->Sensor.arrayLen ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ if(errn == 0) {
+ errn = encode_iso2SensorType(stream, &iso2SensorListType->Sensor.array [iso2SensorListType_Sensor_currArrayIndex++]);
+ }
+ grammarID = 1580;
+ } else if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 1580:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}Sensor), END_ELEMENT] */
+ if (iso2SensorListType_Sensor_currArrayIndex < iso2SensorListType->Sensor.arrayLen ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ if(errn == 0) {
+ errn = encode_iso2SensorType(stream, &iso2SensorListType->Sensor.array [iso2SensorListType_Sensor_currArrayIndex++]);
+ }
+ grammarID = 1581;
+ } else if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 1581:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}Sensor), END_ELEMENT] */
+ if (iso2SensorListType_Sensor_currArrayIndex < iso2SensorListType->Sensor.arrayLen ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ if(errn == 0) {
+ errn = encode_iso2SensorType(stream, &iso2SensorListType->Sensor.array [iso2SensorListType_Sensor_currArrayIndex++]);
+ }
+ grammarID = 1582;
+ } else if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 1582:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}Sensor), END_ELEMENT] */
+ if (iso2SensorListType_Sensor_currArrayIndex < iso2SensorListType->Sensor.arrayLen ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ if(errn == 0) {
+ errn = encode_iso2SensorType(stream, &iso2SensorListType->Sensor.array [iso2SensorListType_Sensor_currArrayIndex++]);
+ }
+ grammarID = 1583;
+ } else if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 1583:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}Sensor), END_ELEMENT] */
+ if (iso2SensorListType_Sensor_currArrayIndex < iso2SensorListType->Sensor.arrayLen ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ if(errn == 0) {
+ errn = encode_iso2SensorType(stream, &iso2SensorListType->Sensor.array [iso2SensorListType_Sensor_currArrayIndex++]);
+ }
+ grammarID = 1584;
+ } else if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 1584:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}Sensor), END_ELEMENT] */
+ if (iso2SensorListType_Sensor_currArrayIndex < iso2SensorListType->Sensor.arrayLen ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ if(errn == 0) {
+ errn = encode_iso2SensorType(stream, &iso2SensorListType->Sensor.array [iso2SensorListType_Sensor_currArrayIndex++]);
+ }
+ grammarID = 1585;
+ } else if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 1585:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}Sensor), END_ELEMENT] */
+ if (iso2SensorListType_Sensor_currArrayIndex < iso2SensorListType->Sensor.arrayLen ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ if(errn == 0) {
+ errn = encode_iso2SensorType(stream, &iso2SensorListType->Sensor.array [iso2SensorListType_Sensor_currArrayIndex++]);
+ }
+ grammarID = 1586;
+ } else if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 1586:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}Sensor), END_ELEMENT] */
+ if (iso2SensorListType_Sensor_currArrayIndex < iso2SensorListType->Sensor.arrayLen ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ if(errn == 0) {
+ errn = encode_iso2SensorType(stream, &iso2SensorListType->Sensor.array [iso2SensorListType_Sensor_currArrayIndex++]);
+ }
+ grammarID = 1587;
+ } else if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 1587:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}Sensor), END_ELEMENT] */
+ if (iso2SensorListType_Sensor_currArrayIndex < iso2SensorListType->Sensor.arrayLen ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ if(errn == 0) {
+ errn = encode_iso2SensorType(stream, &iso2SensorListType->Sensor.array [iso2SensorListType_Sensor_currArrayIndex++]);
+ }
+ grammarID = 1588;
+ } else if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 1588:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}Sensor), END_ELEMENT] */
+ if (iso2SensorListType_Sensor_currArrayIndex < iso2SensorListType->Sensor.arrayLen ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ if(errn == 0) {
+ errn = encode_iso2SensorType(stream, &iso2SensorListType->Sensor.array [iso2SensorListType_Sensor_currArrayIndex++]);
+ }
+ grammarID = 1589;
+ } else if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 1589:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}Sensor), END_ELEMENT] */
+ if (iso2SensorListType_Sensor_currArrayIndex < iso2SensorListType->Sensor.arrayLen ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ if(errn == 0) {
+ errn = encode_iso2SensorType(stream, &iso2SensorListType->Sensor.array [iso2SensorListType_Sensor_currArrayIndex++]);
+ }
+ grammarID = 1590;
+ } else if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 1590:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}Sensor), END_ELEMENT] */
+ if (iso2SensorListType_Sensor_currArrayIndex < iso2SensorListType->Sensor.arrayLen ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ if(errn == 0) {
+ errn = encode_iso2SensorType(stream, &iso2SensorListType->Sensor.array [iso2SensorListType_Sensor_currArrayIndex++]);
+ }
+ grammarID = 1591;
+ } else if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 1591:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}Sensor), END_ELEMENT] */
+ if (iso2SensorListType_Sensor_currArrayIndex < iso2SensorListType->Sensor.arrayLen ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ if(errn == 0) {
+ errn = encode_iso2SensorType(stream, &iso2SensorListType->Sensor.array [iso2SensorListType_Sensor_currArrayIndex++]);
+ }
+ grammarID = 1592;
+ } else if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 1592:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}Sensor), END_ELEMENT] */
+ if (iso2SensorListType_Sensor_currArrayIndex < iso2SensorListType->Sensor.arrayLen ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ if(errn == 0) {
+ errn = encode_iso2SensorType(stream, &iso2SensorListType->Sensor.array [iso2SensorListType_Sensor_currArrayIndex++]);
+ }
+ grammarID = 1593;
+ } else if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 1593:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}Sensor), END_ELEMENT] */
+ if (iso2SensorListType_Sensor_currArrayIndex < iso2SensorListType->Sensor.arrayLen ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ if(errn == 0) {
+ errn = encode_iso2SensorType(stream, &iso2SensorListType->Sensor.array [iso2SensorListType_Sensor_currArrayIndex++]);
+ }
+ grammarID = 1594;
+ } else if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 1594:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}Sensor), END_ELEMENT] */
+ if (iso2SensorListType_Sensor_currArrayIndex < iso2SensorListType->Sensor.arrayLen ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ if(errn == 0) {
+ errn = encode_iso2SensorType(stream, &iso2SensorListType->Sensor.array [iso2SensorListType_Sensor_currArrayIndex++]);
+ }
+ grammarID = 1595;
+ } else if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 1595:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}Sensor), END_ELEMENT] */
+ if (iso2SensorListType_Sensor_currArrayIndex < iso2SensorListType->Sensor.arrayLen ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ if(errn == 0) {
+ errn = encode_iso2SensorType(stream, &iso2SensorListType->Sensor.array [iso2SensorListType_Sensor_currArrayIndex++]);
+ }
+ grammarID = 1596;
+ } else if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 1596:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}Sensor), END_ELEMENT] */
+ if (iso2SensorListType_Sensor_currArrayIndex < iso2SensorListType->Sensor.arrayLen ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ if(errn == 0) {
+ errn = encode_iso2SensorType(stream, &iso2SensorListType->Sensor.array [iso2SensorListType_Sensor_currArrayIndex++]);
+ }
+ grammarID = 1597;
+ } else if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 1597:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}Sensor), END_ELEMENT] */
+ if (iso2SensorListType_Sensor_currArrayIndex < iso2SensorListType->Sensor.arrayLen ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ if(errn == 0) {
+ errn = encode_iso2SensorType(stream, &iso2SensorListType->Sensor.array [iso2SensorListType_Sensor_currArrayIndex++]);
+ }
+ grammarID = 1598;
+ } else if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 1598:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}Sensor), END_ELEMENT] */
+ if (iso2SensorListType_Sensor_currArrayIndex < iso2SensorListType->Sensor.arrayLen ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ if(errn == 0) {
+ errn = encode_iso2SensorType(stream, &iso2SensorListType->Sensor.array [iso2SensorListType_Sensor_currArrayIndex++]);
+ }
+ grammarID = 1599;
+ } else if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 1599:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}Sensor), END_ELEMENT] */
+ if (iso2SensorListType_Sensor_currArrayIndex < iso2SensorListType->Sensor.arrayLen ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ if(errn == 0) {
+ errn = encode_iso2SensorType(stream, &iso2SensorListType->Sensor.array [iso2SensorListType_Sensor_currArrayIndex++]);
+ }
+ grammarID = 1600;
+ } else if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 1600:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}Sensor), END_ELEMENT] */
+ if (iso2SensorListType_Sensor_currArrayIndex < iso2SensorListType->Sensor.arrayLen ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ if(errn == 0) {
+ errn = encode_iso2SensorType(stream, &iso2SensorListType->Sensor.array [iso2SensorListType_Sensor_currArrayIndex++]);
+ }
+ grammarID = 1601;
+ } else if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 1601:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}Sensor), END_ELEMENT] */
+ if (iso2SensorListType_Sensor_currArrayIndex < iso2SensorListType->Sensor.arrayLen ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ if(errn == 0) {
+ errn = encode_iso2SensorType(stream, &iso2SensorListType->Sensor.array [iso2SensorListType_Sensor_currArrayIndex++]);
+ }
+ grammarID = 1602;
+ } else if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 1602:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}Sensor), END_ELEMENT] */
+ if (iso2SensorListType_Sensor_currArrayIndex < iso2SensorListType->Sensor.arrayLen ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ if(errn == 0) {
+ errn = encode_iso2SensorType(stream, &iso2SensorListType->Sensor.array [iso2SensorListType_Sensor_currArrayIndex++]);
+ }
+ grammarID = 1603;
+ } else if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 1603:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}Sensor), END_ELEMENT] */
+ if (iso2SensorListType_Sensor_currArrayIndex < iso2SensorListType->Sensor.arrayLen ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ if(errn == 0) {
+ errn = encode_iso2SensorType(stream, &iso2SensorListType->Sensor.array [iso2SensorListType_Sensor_currArrayIndex++]);
+ }
+ grammarID = 1604;
+ } else if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 1604:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}Sensor), END_ELEMENT] */
+ if (iso2SensorListType_Sensor_currArrayIndex < iso2SensorListType->Sensor.arrayLen ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ if(errn == 0) {
+ errn = encode_iso2SensorType(stream, &iso2SensorListType->Sensor.array [iso2SensorListType_Sensor_currArrayIndex++]);
+ }
+ grammarID = 1605;
+ } else if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 1605:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}Sensor), END_ELEMENT] */
+ if (iso2SensorListType_Sensor_currArrayIndex < iso2SensorListType->Sensor.arrayLen ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ if(errn == 0) {
+ errn = encode_iso2SensorType(stream, &iso2SensorListType->Sensor.array [iso2SensorListType_Sensor_currArrayIndex++]);
+ }
+ grammarID = 1606;
+ } else if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 1606:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}Sensor), END_ELEMENT] */
+ if (iso2SensorListType_Sensor_currArrayIndex < iso2SensorListType->Sensor.arrayLen ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ if(errn == 0) {
+ errn = encode_iso2SensorType(stream, &iso2SensorListType->Sensor.array [iso2SensorListType_Sensor_currArrayIndex++]);
+ }
+ grammarID = 1607;
+ } else if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 1607:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}Sensor), END_ELEMENT] */
+ if (iso2SensorListType_Sensor_currArrayIndex < iso2SensorListType->Sensor.arrayLen ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ if(errn == 0) {
+ errn = encode_iso2SensorType(stream, &iso2SensorListType->Sensor.array [iso2SensorListType_Sensor_currArrayIndex++]);
+ }
+ grammarID = 1608;
+ } else if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 1608:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}Sensor), END_ELEMENT] */
+ if (iso2SensorListType_Sensor_currArrayIndex < iso2SensorListType->Sensor.arrayLen ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ if(errn == 0) {
+ errn = encode_iso2SensorType(stream, &iso2SensorListType->Sensor.array [iso2SensorListType_Sensor_currArrayIndex++]);
+ }
+ grammarID = 1609;
+ } else if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 1609:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}Sensor), END_ELEMENT] */
+ if (iso2SensorListType_Sensor_currArrayIndex < iso2SensorListType->Sensor.arrayLen ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ if(errn == 0) {
+ errn = encode_iso2SensorType(stream, &iso2SensorListType->Sensor.array [iso2SensorListType_Sensor_currArrayIndex++]);
+ }
+ grammarID = 1610;
+ } else if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 1610:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}Sensor), END_ELEMENT] */
+ if (iso2SensorListType_Sensor_currArrayIndex < iso2SensorListType->Sensor.arrayLen ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ if(errn == 0) {
+ errn = encode_iso2SensorType(stream, &iso2SensorListType->Sensor.array [iso2SensorListType_Sensor_currArrayIndex++]);
+ }
+ grammarID = 1611;
+ } else if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 1611:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}Sensor), END_ELEMENT] */
+ if (iso2SensorListType_Sensor_currArrayIndex < iso2SensorListType->Sensor.arrayLen ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ if(errn == 0) {
+ errn = encode_iso2SensorType(stream, &iso2SensorListType->Sensor.array [iso2SensorListType_Sensor_currArrayIndex++]);
+ }
+ grammarID = 1612;
+ } else if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 1612:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}Sensor), END_ELEMENT] */
+ if (iso2SensorListType_Sensor_currArrayIndex < iso2SensorListType->Sensor.arrayLen ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ if(errn == 0) {
+ errn = encode_iso2SensorType(stream, &iso2SensorListType->Sensor.array [iso2SensorListType_Sensor_currArrayIndex++]);
+ }
+ grammarID = 1613;
+ } else if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 1613:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}Sensor), END_ELEMENT] */
+ if (iso2SensorListType_Sensor_currArrayIndex < iso2SensorListType->Sensor.arrayLen ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ if(errn == 0) {
+ errn = encode_iso2SensorType(stream, &iso2SensorListType->Sensor.array [iso2SensorListType_Sensor_currArrayIndex++]);
+ }
+ grammarID = 1614;
+ } else if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 1614:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}Sensor), END_ELEMENT] */
+ if (iso2SensorListType_Sensor_currArrayIndex < iso2SensorListType->Sensor.arrayLen ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ if(errn == 0) {
+ errn = encode_iso2SensorType(stream, &iso2SensorListType->Sensor.array [iso2SensorListType_Sensor_currArrayIndex++]);
+ }
+ grammarID = 1615;
+ } else if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 1615:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}Sensor), END_ELEMENT] */
+ if (iso2SensorListType_Sensor_currArrayIndex < iso2SensorListType->Sensor.arrayLen ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ if(errn == 0) {
+ errn = encode_iso2SensorType(stream, &iso2SensorListType->Sensor.array [iso2SensorListType_Sensor_currArrayIndex++]);
+ }
+ grammarID = 1616;
+ } else if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 1616:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}Sensor), END_ELEMENT] */
+ if (iso2SensorListType_Sensor_currArrayIndex < iso2SensorListType->Sensor.arrayLen ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ if(errn == 0) {
+ errn = encode_iso2SensorType(stream, &iso2SensorListType->Sensor.array [iso2SensorListType_Sensor_currArrayIndex++]);
+ }
+ grammarID = 1617;
+ } else if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 1617:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}Sensor), END_ELEMENT] */
+ if (iso2SensorListType_Sensor_currArrayIndex < iso2SensorListType->Sensor.arrayLen ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ if(errn == 0) {
+ errn = encode_iso2SensorType(stream, &iso2SensorListType->Sensor.array [iso2SensorListType_Sensor_currArrayIndex++]);
+ }
+ grammarID = 1618;
+ } else if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 1618:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}Sensor), END_ELEMENT] */
+ if (iso2SensorListType_Sensor_currArrayIndex < iso2SensorListType->Sensor.arrayLen ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ if(errn == 0) {
+ errn = encode_iso2SensorType(stream, &iso2SensorListType->Sensor.array [iso2SensorListType_Sensor_currArrayIndex++]);
+ }
+ grammarID = 1619;
+ } else if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 1619:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}Sensor), END_ELEMENT] */
+ if (iso2SensorListType_Sensor_currArrayIndex < iso2SensorListType->Sensor.arrayLen ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ if(errn == 0) {
+ errn = encode_iso2SensorType(stream, &iso2SensorListType->Sensor.array [iso2SensorListType_Sensor_currArrayIndex++]);
+ }
+ grammarID = 1620;
+ } else if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 1620:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}Sensor), END_ELEMENT] */
+ if (iso2SensorListType_Sensor_currArrayIndex < iso2SensorListType->Sensor.arrayLen ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ if(errn == 0) {
+ errn = encode_iso2SensorType(stream, &iso2SensorListType->Sensor.array [iso2SensorListType_Sensor_currArrayIndex++]);
+ }
+ grammarID = 1621;
+ } else if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 1621:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}Sensor), END_ELEMENT] */
+ if (iso2SensorListType_Sensor_currArrayIndex < iso2SensorListType->Sensor.arrayLen ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ if(errn == 0) {
+ errn = encode_iso2SensorType(stream, &iso2SensorListType->Sensor.array [iso2SensorListType_Sensor_currArrayIndex++]);
+ }
+ grammarID = 1622;
+ } else if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 1622:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}Sensor), END_ELEMENT] */
+ if (iso2SensorListType_Sensor_currArrayIndex < iso2SensorListType->Sensor.arrayLen ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ if(errn == 0) {
+ errn = encode_iso2SensorType(stream, &iso2SensorListType->Sensor.array [iso2SensorListType_Sensor_currArrayIndex++]);
+ }
+ grammarID = 1623;
+ } else if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 1623:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}Sensor), END_ELEMENT] */
+ if (iso2SensorListType_Sensor_currArrayIndex < iso2SensorListType->Sensor.arrayLen ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ if(errn == 0) {
+ errn = encode_iso2SensorType(stream, &iso2SensorListType->Sensor.array [iso2SensorListType_Sensor_currArrayIndex++]);
+ }
+ grammarID = 1624;
+ } else if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 1624:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}Sensor), END_ELEMENT] */
+ if (iso2SensorListType_Sensor_currArrayIndex < iso2SensorListType->Sensor.arrayLen ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ if(errn == 0) {
+ errn = encode_iso2SensorType(stream, &iso2SensorListType->Sensor.array [iso2SensorListType_Sensor_currArrayIndex++]);
+ }
+ grammarID = 1625;
+ } else if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 1625:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}Sensor), END_ELEMENT] */
+ if (iso2SensorListType_Sensor_currArrayIndex < iso2SensorListType->Sensor.arrayLen ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ if(errn == 0) {
+ errn = encode_iso2SensorType(stream, &iso2SensorListType->Sensor.array [iso2SensorListType_Sensor_currArrayIndex++]);
+ }
+ grammarID = 1626;
+ } else if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 1626:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}Sensor), END_ELEMENT] */
+ if (iso2SensorListType_Sensor_currArrayIndex < iso2SensorListType->Sensor.arrayLen ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ if(errn == 0) {
+ errn = encode_iso2SensorType(stream, &iso2SensorListType->Sensor.array [iso2SensorListType_Sensor_currArrayIndex++]);
+ }
+ grammarID = 1627;
+ } else if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 1627:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}Sensor), END_ELEMENT] */
+ if (iso2SensorListType_Sensor_currArrayIndex < iso2SensorListType->Sensor.arrayLen ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ if(errn == 0) {
+ errn = encode_iso2SensorType(stream, &iso2SensorListType->Sensor.array [iso2SensorListType_Sensor_currArrayIndex++]);
+ }
+ grammarID = 1628;
+ } else if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 1628:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}Sensor), END_ELEMENT] */
+ if (iso2SensorListType_Sensor_currArrayIndex < iso2SensorListType->Sensor.arrayLen ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ if(errn == 0) {
+ errn = encode_iso2SensorType(stream, &iso2SensorListType->Sensor.array [iso2SensorListType_Sensor_currArrayIndex++]);
+ }
+ grammarID = 1629;
+ } else if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 1629:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}Sensor), END_ELEMENT] */
+ if (iso2SensorListType_Sensor_currArrayIndex < iso2SensorListType->Sensor.arrayLen ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ if(errn == 0) {
+ errn = encode_iso2SensorType(stream, &iso2SensorListType->Sensor.array [iso2SensorListType_Sensor_currArrayIndex++]);
+ }
+ grammarID = 1630;
+ } else if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 1630:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}Sensor), END_ELEMENT] */
+ if (iso2SensorListType_Sensor_currArrayIndex < iso2SensorListType->Sensor.arrayLen ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ if(errn == 0) {
+ errn = encode_iso2SensorType(stream, &iso2SensorListType->Sensor.array [iso2SensorListType_Sensor_currArrayIndex++]);
+ }
+ grammarID = 1631;
+ } else if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 1631:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}Sensor), END_ELEMENT] */
+ if (iso2SensorListType_Sensor_currArrayIndex < iso2SensorListType->Sensor.arrayLen ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ if(errn == 0) {
+ errn = encode_iso2SensorType(stream, &iso2SensorListType->Sensor.array [iso2SensorListType_Sensor_currArrayIndex++]);
+ }
+ grammarID = 1632;
+ } else if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 1632:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}Sensor), END_ELEMENT] */
+ if (iso2SensorListType_Sensor_currArrayIndex < iso2SensorListType->Sensor.arrayLen ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ if(errn == 0) {
+ errn = encode_iso2SensorType(stream, &iso2SensorListType->Sensor.array [iso2SensorListType_Sensor_currArrayIndex++]);
+ }
+ grammarID = 1633;
+ } else if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 1633:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}Sensor), END_ELEMENT] */
+ if (iso2SensorListType_Sensor_currArrayIndex < iso2SensorListType->Sensor.arrayLen ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ if(errn == 0) {
+ errn = encode_iso2SensorType(stream, &iso2SensorListType->Sensor.array [iso2SensorListType_Sensor_currArrayIndex++]);
+ }
+ grammarID = 1634;
+ } else if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 1634:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}Sensor), END_ELEMENT] */
+ if (iso2SensorListType_Sensor_currArrayIndex < iso2SensorListType->Sensor.arrayLen ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ if(errn == 0) {
+ errn = encode_iso2SensorType(stream, &iso2SensorListType->Sensor.array [iso2SensorListType_Sensor_currArrayIndex++]);
+ }
+ grammarID = 1635;
+ } else if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 1635:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}Sensor), END_ELEMENT] */
+ if (iso2SensorListType_Sensor_currArrayIndex < iso2SensorListType->Sensor.arrayLen ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ if(errn == 0) {
+ errn = encode_iso2SensorType(stream, &iso2SensorListType->Sensor.array [iso2SensorListType_Sensor_currArrayIndex++]);
+ }
+ grammarID = 1636;
+ } else if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 1636:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}Sensor), END_ELEMENT] */
+ if (iso2SensorListType_Sensor_currArrayIndex < iso2SensorListType->Sensor.arrayLen ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ if(errn == 0) {
+ errn = encode_iso2SensorType(stream, &iso2SensorListType->Sensor.array [iso2SensorListType_Sensor_currArrayIndex++]);
+ }
+ grammarID = 1637;
+ } else if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 1637:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}Sensor), END_ELEMENT] */
+ if (iso2SensorListType_Sensor_currArrayIndex < iso2SensorListType->Sensor.arrayLen ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ if(errn == 0) {
+ errn = encode_iso2SensorType(stream, &iso2SensorListType->Sensor.array [iso2SensorListType_Sensor_currArrayIndex++]);
+ }
+ grammarID = 1638;
+ } else if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 1638:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}Sensor), END_ELEMENT] */
+ if (iso2SensorListType_Sensor_currArrayIndex < iso2SensorListType->Sensor.arrayLen ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ if(errn == 0) {
+ errn = encode_iso2SensorType(stream, &iso2SensorListType->Sensor.array [iso2SensorListType_Sensor_currArrayIndex++]);
+ }
+ grammarID = 1639;
+ } else if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 1639:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}Sensor), END_ELEMENT] */
+ if (iso2SensorListType_Sensor_currArrayIndex < iso2SensorListType->Sensor.arrayLen ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ if(errn == 0) {
+ errn = encode_iso2SensorType(stream, &iso2SensorListType->Sensor.array [iso2SensorListType_Sensor_currArrayIndex++]);
+ }
+ grammarID = 1640;
+ } else if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 1640:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}Sensor), END_ELEMENT] */
+ if (iso2SensorListType_Sensor_currArrayIndex < iso2SensorListType->Sensor.arrayLen ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ if(errn == 0) {
+ errn = encode_iso2SensorType(stream, &iso2SensorListType->Sensor.array [iso2SensorListType_Sensor_currArrayIndex++]);
+ }
+ grammarID = 1641;
+ } else if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 1641:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}Sensor), END_ELEMENT] */
+ if (iso2SensorListType_Sensor_currArrayIndex < iso2SensorListType->Sensor.arrayLen ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ if(errn == 0) {
+ errn = encode_iso2SensorType(stream, &iso2SensorListType->Sensor.array [iso2SensorListType_Sensor_currArrayIndex++]);
+ }
+ grammarID = 1642;
+ } else if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 1642:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}Sensor), END_ELEMENT] */
+ if (iso2SensorListType_Sensor_currArrayIndex < iso2SensorListType->Sensor.arrayLen ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ if(errn == 0) {
+ errn = encode_iso2SensorType(stream, &iso2SensorListType->Sensor.array [iso2SensorListType_Sensor_currArrayIndex++]);
+ }
+ grammarID = 1643;
+ } else if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 1643:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}Sensor), END_ELEMENT] */
+ if (iso2SensorListType_Sensor_currArrayIndex < iso2SensorListType->Sensor.arrayLen ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ if(errn == 0) {
+ errn = encode_iso2SensorType(stream, &iso2SensorListType->Sensor.array [iso2SensorListType_Sensor_currArrayIndex++]);
+ }
+ grammarID = 1644;
+ } else if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 1644:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}Sensor), END_ELEMENT] */
+ if (iso2SensorListType_Sensor_currArrayIndex < iso2SensorListType->Sensor.arrayLen ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ if(errn == 0) {
+ errn = encode_iso2SensorType(stream, &iso2SensorListType->Sensor.array [iso2SensorListType_Sensor_currArrayIndex++]);
+ }
+ grammarID = 1645;
+ } else if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 1645:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}Sensor), END_ELEMENT] */
+ if (iso2SensorListType_Sensor_currArrayIndex < iso2SensorListType->Sensor.arrayLen ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ if(errn == 0) {
+ errn = encode_iso2SensorType(stream, &iso2SensorListType->Sensor.array [iso2SensorListType_Sensor_currArrayIndex++]);
+ }
+ grammarID = 1646;
+ } else if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 1646:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}Sensor), END_ELEMENT] */
+ if (iso2SensorListType_Sensor_currArrayIndex < iso2SensorListType->Sensor.arrayLen ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ if(errn == 0) {
+ errn = encode_iso2SensorType(stream, &iso2SensorListType->Sensor.array [iso2SensorListType_Sensor_currArrayIndex++]);
+ }
+ grammarID = 1647;
+ } else if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 1647:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}Sensor), END_ELEMENT] */
+ if (iso2SensorListType_Sensor_currArrayIndex < iso2SensorListType->Sensor.arrayLen ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ if(errn == 0) {
+ errn = encode_iso2SensorType(stream, &iso2SensorListType->Sensor.array [iso2SensorListType_Sensor_currArrayIndex++]);
+ }
+ grammarID = 1648;
+ } else if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 1648:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}Sensor), END_ELEMENT] */
+ if (iso2SensorListType_Sensor_currArrayIndex < iso2SensorListType->Sensor.arrayLen ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ if(errn == 0) {
+ errn = encode_iso2SensorType(stream, &iso2SensorListType->Sensor.array [iso2SensorListType_Sensor_currArrayIndex++]);
+ }
+ grammarID = 1649;
+ } else if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 1649:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}Sensor), END_ELEMENT] */
+ if (iso2SensorListType_Sensor_currArrayIndex < iso2SensorListType->Sensor.arrayLen ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ if(errn == 0) {
+ errn = encode_iso2SensorType(stream, &iso2SensorListType->Sensor.array [iso2SensorListType_Sensor_currArrayIndex++]);
+ }
+ grammarID = 1650;
+ } else if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 1650:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}Sensor), END_ELEMENT] */
+ if (iso2SensorListType_Sensor_currArrayIndex < iso2SensorListType->Sensor.arrayLen ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ if(errn == 0) {
+ errn = encode_iso2SensorType(stream, &iso2SensorListType->Sensor.array [iso2SensorListType_Sensor_currArrayIndex++]);
+ }
+ grammarID = 1651;
+ } else if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 1651:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}Sensor), END_ELEMENT] */
+ if (iso2SensorListType_Sensor_currArrayIndex < iso2SensorListType->Sensor.arrayLen ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ if(errn == 0) {
+ errn = encode_iso2SensorType(stream, &iso2SensorListType->Sensor.array [iso2SensorListType_Sensor_currArrayIndex++]);
+ }
+ grammarID = 1652;
+ } else if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 1652:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}Sensor), END_ELEMENT] */
+ if (iso2SensorListType_Sensor_currArrayIndex < iso2SensorListType->Sensor.arrayLen ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ if(errn == 0) {
+ errn = encode_iso2SensorType(stream, &iso2SensorListType->Sensor.array [iso2SensorListType_Sensor_currArrayIndex++]);
+ }
+ grammarID = 1653;
+ } else if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 1653:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}Sensor), END_ELEMENT] */
+ if (iso2SensorListType_Sensor_currArrayIndex < iso2SensorListType->Sensor.arrayLen ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ if(errn == 0) {
+ errn = encode_iso2SensorType(stream, &iso2SensorListType->Sensor.array [iso2SensorListType_Sensor_currArrayIndex++]);
+ }
+ grammarID = 1654;
+ } else if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 1654:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}Sensor), END_ELEMENT] */
+ if (iso2SensorListType_Sensor_currArrayIndex < iso2SensorListType->Sensor.arrayLen ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ if(errn == 0) {
+ errn = encode_iso2SensorType(stream, &iso2SensorListType->Sensor.array [iso2SensorListType_Sensor_currArrayIndex++]);
+ }
+ grammarID = 1655;
+ } else if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 1655:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}Sensor), END_ELEMENT] */
+ if (iso2SensorListType_Sensor_currArrayIndex < iso2SensorListType->Sensor.arrayLen ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ if(errn == 0) {
+ errn = encode_iso2SensorType(stream, &iso2SensorListType->Sensor.array [iso2SensorListType_Sensor_currArrayIndex++]);
+ }
+ grammarID = 1656;
+ } else if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 1656:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}Sensor), END_ELEMENT] */
+ if (iso2SensorListType_Sensor_currArrayIndex < iso2SensorListType->Sensor.arrayLen ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ if(errn == 0) {
+ errn = encode_iso2SensorType(stream, &iso2SensorListType->Sensor.array [iso2SensorListType_Sensor_currArrayIndex++]);
+ }
+ grammarID = 1657;
+ } else if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 1657:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}Sensor), END_ELEMENT] */
+ if (iso2SensorListType_Sensor_currArrayIndex < iso2SensorListType->Sensor.arrayLen ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ if(errn == 0) {
+ errn = encode_iso2SensorType(stream, &iso2SensorListType->Sensor.array [iso2SensorListType_Sensor_currArrayIndex++]);
+ }
+ grammarID = 1658;
+ } else if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 1658:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}Sensor), END_ELEMENT] */
+ if (iso2SensorListType_Sensor_currArrayIndex < iso2SensorListType->Sensor.arrayLen ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ if(errn == 0) {
+ errn = encode_iso2SensorType(stream, &iso2SensorListType->Sensor.array [iso2SensorListType_Sensor_currArrayIndex++]);
+ }
+ grammarID = 1659;
+ } else if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 1659:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}Sensor), END_ELEMENT] */
+ if (iso2SensorListType_Sensor_currArrayIndex < iso2SensorListType->Sensor.arrayLen ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ if(errn == 0) {
+ errn = encode_iso2SensorType(stream, &iso2SensorListType->Sensor.array [iso2SensorListType_Sensor_currArrayIndex++]);
+ }
+ grammarID = 1660;
+ } else if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 1660:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}Sensor), END_ELEMENT] */
+ if (iso2SensorListType_Sensor_currArrayIndex < iso2SensorListType->Sensor.arrayLen ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ if(errn == 0) {
+ errn = encode_iso2SensorType(stream, &iso2SensorListType->Sensor.array [iso2SensorListType_Sensor_currArrayIndex++]);
+ }
+ grammarID = 1661;
+ } else if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 1661:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}Sensor), END_ELEMENT] */
+ if (iso2SensorListType_Sensor_currArrayIndex < iso2SensorListType->Sensor.arrayLen ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ if(errn == 0) {
+ errn = encode_iso2SensorType(stream, &iso2SensorListType->Sensor.array [iso2SensorListType_Sensor_currArrayIndex++]);
+ }
+ grammarID = 1662;
+ } else if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 1662:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}Sensor), END_ELEMENT] */
+ if (iso2SensorListType_Sensor_currArrayIndex < iso2SensorListType->Sensor.arrayLen ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ if(errn == 0) {
+ errn = encode_iso2SensorType(stream, &iso2SensorListType->Sensor.array [iso2SensorListType_Sensor_currArrayIndex++]);
+ }
+ grammarID = 1663;
+ } else if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 1663:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}Sensor), END_ELEMENT] */
+ if (iso2SensorListType_Sensor_currArrayIndex < iso2SensorListType->Sensor.arrayLen ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ if(errn == 0) {
+ errn = encode_iso2SensorType(stream, &iso2SensorListType->Sensor.array [iso2SensorListType_Sensor_currArrayIndex++]);
+ }
+ grammarID = 1664;
+ } else if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 1664:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}Sensor), END_ELEMENT] */
+ if (iso2SensorListType_Sensor_currArrayIndex < iso2SensorListType->Sensor.arrayLen ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ if(errn == 0) {
+ errn = encode_iso2SensorType(stream, &iso2SensorListType->Sensor.array [iso2SensorListType_Sensor_currArrayIndex++]);
+ }
+ grammarID = 1665;
+ } else if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 1665:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}Sensor), END_ELEMENT] */
+ if (iso2SensorListType_Sensor_currArrayIndex < iso2SensorListType->Sensor.arrayLen ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ if(errn == 0) {
+ errn = encode_iso2SensorType(stream, &iso2SensorListType->Sensor.array [iso2SensorListType_Sensor_currArrayIndex++]);
+ }
+ grammarID = 1666;
+ } else if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 1666:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}Sensor), END_ELEMENT] */
+ if (iso2SensorListType_Sensor_currArrayIndex < iso2SensorListType->Sensor.arrayLen ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ if(errn == 0) {
+ errn = encode_iso2SensorType(stream, &iso2SensorListType->Sensor.array [iso2SensorListType_Sensor_currArrayIndex++]);
+ }
+ grammarID = 1667;
+ } else if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 1667:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}Sensor), END_ELEMENT] */
+ if (iso2SensorListType_Sensor_currArrayIndex < iso2SensorListType->Sensor.arrayLen ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ if(errn == 0) {
+ errn = encode_iso2SensorType(stream, &iso2SensorListType->Sensor.array [iso2SensorListType_Sensor_currArrayIndex++]);
+ }
+ grammarID = 1668;
+ } else if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 1668:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}Sensor), END_ELEMENT] */
+ if (iso2SensorListType_Sensor_currArrayIndex < iso2SensorListType->Sensor.arrayLen ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ if(errn == 0) {
+ errn = encode_iso2SensorType(stream, &iso2SensorListType->Sensor.array [iso2SensorListType_Sensor_currArrayIndex++]);
+ }
+ grammarID = 1669;
+ } else if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 1669:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}Sensor), END_ELEMENT] */
+ if (iso2SensorListType_Sensor_currArrayIndex < iso2SensorListType->Sensor.arrayLen ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ if(errn == 0) {
+ errn = encode_iso2SensorType(stream, &iso2SensorListType->Sensor.array [iso2SensorListType_Sensor_currArrayIndex++]);
+ }
+ grammarID = 1670;
+ } else if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 1670:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}Sensor), END_ELEMENT] */
+ if (iso2SensorListType_Sensor_currArrayIndex < iso2SensorListType->Sensor.arrayLen ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ if(errn == 0) {
+ errn = encode_iso2SensorType(stream, &iso2SensorListType->Sensor.array [iso2SensorListType_Sensor_currArrayIndex++]);
+ }
+ grammarID = 1671;
+ } else if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 1671:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}Sensor), END_ELEMENT] */
+ if (iso2SensorListType_Sensor_currArrayIndex < iso2SensorListType->Sensor.arrayLen ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ if(errn == 0) {
+ errn = encode_iso2SensorType(stream, &iso2SensorListType->Sensor.array [iso2SensorListType_Sensor_currArrayIndex++]);
+ }
+ grammarID = 1672;
+ } else if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 1672:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}Sensor), END_ELEMENT] */
+ if (iso2SensorListType_Sensor_currArrayIndex < iso2SensorListType->Sensor.arrayLen ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ if(errn == 0) {
+ errn = encode_iso2SensorType(stream, &iso2SensorListType->Sensor.array [iso2SensorListType_Sensor_currArrayIndex++]);
+ }
+ grammarID = 1673;
+ } else if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 1673:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}Sensor), END_ELEMENT] */
+ if (iso2SensorListType_Sensor_currArrayIndex < iso2SensorListType->Sensor.arrayLen ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ if(errn == 0) {
+ errn = encode_iso2SensorType(stream, &iso2SensorListType->Sensor.array [iso2SensorListType_Sensor_currArrayIndex++]);
+ }
+ grammarID = 1674;
+ } else if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 1674:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}Sensor), END_ELEMENT] */
+ if (iso2SensorListType_Sensor_currArrayIndex < iso2SensorListType->Sensor.arrayLen ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ if(errn == 0) {
+ errn = encode_iso2SensorType(stream, &iso2SensorListType->Sensor.array [iso2SensorListType_Sensor_currArrayIndex++]);
+ }
+ grammarID = 1675;
+ } else if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 1675:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}Sensor), END_ELEMENT] */
+ if (iso2SensorListType_Sensor_currArrayIndex < iso2SensorListType->Sensor.arrayLen ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ if(errn == 0) {
+ errn = encode_iso2SensorType(stream, &iso2SensorListType->Sensor.array [iso2SensorListType_Sensor_currArrayIndex++]);
+ }
+ grammarID = 1676;
+ } else if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 1676:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}Sensor), END_ELEMENT] */
+ if (iso2SensorListType_Sensor_currArrayIndex < iso2SensorListType->Sensor.arrayLen ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ if(errn == 0) {
+ errn = encode_iso2SensorType(stream, &iso2SensorListType->Sensor.array [iso2SensorListType_Sensor_currArrayIndex++]);
+ }
+ grammarID = 1677;
+ } else if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 1677:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}Sensor), END_ELEMENT] */
+ if (iso2SensorListType_Sensor_currArrayIndex < iso2SensorListType->Sensor.arrayLen ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ if(errn == 0) {
+ errn = encode_iso2SensorType(stream, &iso2SensorListType->Sensor.array [iso2SensorListType_Sensor_currArrayIndex++]);
+ }
+ grammarID = 1678;
+ } else if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 1678:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}Sensor), END_ELEMENT] */
+ if (iso2SensorListType_Sensor_currArrayIndex < iso2SensorListType->Sensor.arrayLen ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ if(errn == 0) {
+ errn = encode_iso2SensorType(stream, &iso2SensorListType->Sensor.array [iso2SensorListType_Sensor_currArrayIndex++]);
+ }
+ grammarID = 1679;
+ } else if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 1679:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}Sensor), END_ELEMENT] */
+ if (iso2SensorListType_Sensor_currArrayIndex < iso2SensorListType->Sensor.arrayLen ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ if(errn == 0) {
+ errn = encode_iso2SensorType(stream, &iso2SensorListType->Sensor.array [iso2SensorListType_Sensor_currArrayIndex++]);
+ }
+ grammarID = 1680;
+ } else if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 1680:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}Sensor), END_ELEMENT] */
+ if (iso2SensorListType_Sensor_currArrayIndex < iso2SensorListType->Sensor.arrayLen ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ if(errn == 0) {
+ errn = encode_iso2SensorType(stream, &iso2SensorListType->Sensor.array [iso2SensorListType_Sensor_currArrayIndex++]);
+ }
+ grammarID = 1681;
+ } else if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 1681:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}Sensor), END_ELEMENT] */
+ if (iso2SensorListType_Sensor_currArrayIndex < iso2SensorListType->Sensor.arrayLen ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ if(errn == 0) {
+ errn = encode_iso2SensorType(stream, &iso2SensorListType->Sensor.array [iso2SensorListType_Sensor_currArrayIndex++]);
+ }
+ grammarID = 1682;
+ } else if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 1682:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}Sensor), END_ELEMENT] */
+ if (iso2SensorListType_Sensor_currArrayIndex < iso2SensorListType->Sensor.arrayLen ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ if(errn == 0) {
+ errn = encode_iso2SensorType(stream, &iso2SensorListType->Sensor.array [iso2SensorListType_Sensor_currArrayIndex++]);
+ }
+ grammarID = 1683;
+ } else if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 1683:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}Sensor), END_ELEMENT] */
+ if (iso2SensorListType_Sensor_currArrayIndex < iso2SensorListType->Sensor.arrayLen ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ if(errn == 0) {
+ errn = encode_iso2SensorType(stream, &iso2SensorListType->Sensor.array [iso2SensorListType_Sensor_currArrayIndex++]);
+ }
+ grammarID = 1684;
+ } else if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 1684:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}Sensor), END_ELEMENT] */
+ if (iso2SensorListType_Sensor_currArrayIndex < iso2SensorListType->Sensor.arrayLen ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ if(errn == 0) {
+ errn = encode_iso2SensorType(stream, &iso2SensorListType->Sensor.array [iso2SensorListType_Sensor_currArrayIndex++]);
+ }
+ grammarID = 1685;
+ } else if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 1685:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}Sensor), END_ELEMENT] */
+ if (iso2SensorListType_Sensor_currArrayIndex < iso2SensorListType->Sensor.arrayLen ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ if(errn == 0) {
+ errn = encode_iso2SensorType(stream, &iso2SensorListType->Sensor.array [iso2SensorListType_Sensor_currArrayIndex++]);
+ }
+ grammarID = 1686;
+ } else if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 1686:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}Sensor), END_ELEMENT] */
+ if (iso2SensorListType_Sensor_currArrayIndex < iso2SensorListType->Sensor.arrayLen ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ if(errn == 0) {
+ errn = encode_iso2SensorType(stream, &iso2SensorListType->Sensor.array [iso2SensorListType_Sensor_currArrayIndex++]);
+ }
+ grammarID = 1687;
+ } else if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 1687:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}Sensor), END_ELEMENT] */
+ if (iso2SensorListType_Sensor_currArrayIndex < iso2SensorListType->Sensor.arrayLen ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ if(errn == 0) {
+ errn = encode_iso2SensorType(stream, &iso2SensorListType->Sensor.array [iso2SensorListType_Sensor_currArrayIndex++]);
+ }
+ grammarID = 1688;
+ } else if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 1688:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}Sensor), END_ELEMENT] */
+ if (iso2SensorListType_Sensor_currArrayIndex < iso2SensorListType->Sensor.arrayLen ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ if(errn == 0) {
+ errn = encode_iso2SensorType(stream, &iso2SensorListType->Sensor.array [iso2SensorListType_Sensor_currArrayIndex++]);
+ }
+ grammarID = 1689;
+ } else if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 1689:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}Sensor), END_ELEMENT] */
+ if (iso2SensorListType_Sensor_currArrayIndex < iso2SensorListType->Sensor.arrayLen ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ if(errn == 0) {
+ errn = encode_iso2SensorType(stream, &iso2SensorListType->Sensor.array [iso2SensorListType_Sensor_currArrayIndex++]);
+ }
+ grammarID = 1690;
+ } else if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 1690:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}Sensor), END_ELEMENT] */
+ if (iso2SensorListType_Sensor_currArrayIndex < iso2SensorListType->Sensor.arrayLen ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ if(errn == 0) {
+ errn = encode_iso2SensorType(stream, &iso2SensorListType->Sensor.array [iso2SensorListType_Sensor_currArrayIndex++]);
+ }
+ grammarID = 1691;
+ } else if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 1691:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}Sensor), END_ELEMENT] */
+ if (iso2SensorListType_Sensor_currArrayIndex < iso2SensorListType->Sensor.arrayLen ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ if(errn == 0) {
+ errn = encode_iso2SensorType(stream, &iso2SensorListType->Sensor.array [iso2SensorListType_Sensor_currArrayIndex++]);
+ }
+ grammarID = 1692;
+ } else if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 1692:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}Sensor), END_ELEMENT] */
+ if (iso2SensorListType_Sensor_currArrayIndex < iso2SensorListType->Sensor.arrayLen ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ if(errn == 0) {
+ errn = encode_iso2SensorType(stream, &iso2SensorListType->Sensor.array [iso2SensorListType_Sensor_currArrayIndex++]);
+ }
+ grammarID = 1693;
+ } else if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 1693:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}Sensor), END_ELEMENT] */
+ if (iso2SensorListType_Sensor_currArrayIndex < iso2SensorListType->Sensor.arrayLen ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ if(errn == 0) {
+ errn = encode_iso2SensorType(stream, &iso2SensorListType->Sensor.array [iso2SensorListType_Sensor_currArrayIndex++]);
+ }
+ grammarID = 1694;
+ } else if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 1694:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}Sensor), END_ELEMENT] */
+ if (iso2SensorListType_Sensor_currArrayIndex < iso2SensorListType->Sensor.arrayLen ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ if(errn == 0) {
+ errn = encode_iso2SensorType(stream, &iso2SensorListType->Sensor.array [iso2SensorListType_Sensor_currArrayIndex++]);
+ }
+ grammarID = 1695;
+ } else if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 1695:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}Sensor), END_ELEMENT] */
+ if (iso2SensorListType_Sensor_currArrayIndex < iso2SensorListType->Sensor.arrayLen ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ if(errn == 0) {
+ errn = encode_iso2SensorType(stream, &iso2SensorListType->Sensor.array [iso2SensorListType_Sensor_currArrayIndex++]);
+ }
+ grammarID = 1696;
+ } else if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 1696:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}Sensor), END_ELEMENT] */
+ if (iso2SensorListType_Sensor_currArrayIndex < iso2SensorListType->Sensor.arrayLen ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ if(errn == 0) {
+ errn = encode_iso2SensorType(stream, &iso2SensorListType->Sensor.array [iso2SensorListType_Sensor_currArrayIndex++]);
+ }
+ grammarID = 1697;
+ } else if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 1697:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}Sensor), END_ELEMENT] */
+ if (iso2SensorListType_Sensor_currArrayIndex < iso2SensorListType->Sensor.arrayLen ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ if(errn == 0) {
+ errn = encode_iso2SensorType(stream, &iso2SensorListType->Sensor.array [iso2SensorListType_Sensor_currArrayIndex++]);
+ }
+ grammarID = 1698;
+ } else if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 1698:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}Sensor), END_ELEMENT] */
+ if (iso2SensorListType_Sensor_currArrayIndex < iso2SensorListType->Sensor.arrayLen ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ if(errn == 0) {
+ errn = encode_iso2SensorType(stream, &iso2SensorListType->Sensor.array [iso2SensorListType_Sensor_currArrayIndex++]);
+ }
+ grammarID = 1699;
+ } else if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 1699:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}Sensor), END_ELEMENT] */
+ if (iso2SensorListType_Sensor_currArrayIndex < iso2SensorListType->Sensor.arrayLen ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ if(errn == 0) {
+ errn = encode_iso2SensorType(stream, &iso2SensorListType->Sensor.array [iso2SensorListType_Sensor_currArrayIndex++]);
+ }
+ grammarID = 1700;
+ } else if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 1700:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}Sensor), END_ELEMENT] */
+ if (iso2SensorListType_Sensor_currArrayIndex < iso2SensorListType->Sensor.arrayLen ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ if(errn == 0) {
+ errn = encode_iso2SensorType(stream, &iso2SensorListType->Sensor.array [iso2SensorListType_Sensor_currArrayIndex++]);
+ }
+ grammarID = 1701;
+ } else if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 1701:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}Sensor), END_ELEMENT] */
+ if (iso2SensorListType_Sensor_currArrayIndex < iso2SensorListType->Sensor.arrayLen ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ if(errn == 0) {
+ errn = encode_iso2SensorType(stream, &iso2SensorListType->Sensor.array [iso2SensorListType_Sensor_currArrayIndex++]);
+ }
+ grammarID = 1702;
+ } else if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 1702:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}Sensor), END_ELEMENT] */
+ if (iso2SensorListType_Sensor_currArrayIndex < iso2SensorListType->Sensor.arrayLen ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ if(errn == 0) {
+ errn = encode_iso2SensorType(stream, &iso2SensorListType->Sensor.array [iso2SensorListType_Sensor_currArrayIndex++]);
+ }
+ grammarID = 1703;
+ } else if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 1703:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}Sensor), END_ELEMENT] */
+ if (iso2SensorListType_Sensor_currArrayIndex < iso2SensorListType->Sensor.arrayLen ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ if(errn == 0) {
+ errn = encode_iso2SensorType(stream, &iso2SensorListType->Sensor.array [iso2SensorListType_Sensor_currArrayIndex++]);
+ }
+ grammarID = 1704;
+ } else if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 1704:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}Sensor), END_ELEMENT] */
+ if (iso2SensorListType_Sensor_currArrayIndex < iso2SensorListType->Sensor.arrayLen ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ if(errn == 0) {
+ errn = encode_iso2SensorType(stream, &iso2SensorListType->Sensor.array [iso2SensorListType_Sensor_currArrayIndex++]);
+ }
+ grammarID = 1705;
+ } else if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 1705:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}Sensor), END_ELEMENT] */
+ if (iso2SensorListType_Sensor_currArrayIndex < iso2SensorListType->Sensor.arrayLen ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ if(errn == 0) {
+ errn = encode_iso2SensorType(stream, &iso2SensorListType->Sensor.array [iso2SensorListType_Sensor_currArrayIndex++]);
+ }
+ grammarID = 1706;
+ } else if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 1706:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}Sensor), END_ELEMENT] */
+ if (iso2SensorListType_Sensor_currArrayIndex < iso2SensorListType->Sensor.arrayLen ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ if(errn == 0) {
+ errn = encode_iso2SensorType(stream, &iso2SensorListType->Sensor.array [iso2SensorListType_Sensor_currArrayIndex++]);
+ }
+ grammarID = 1707;
+ } else if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 1707:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}Sensor), END_ELEMENT] */
+ if (iso2SensorListType_Sensor_currArrayIndex < iso2SensorListType->Sensor.arrayLen ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ if(errn == 0) {
+ errn = encode_iso2SensorType(stream, &iso2SensorListType->Sensor.array [iso2SensorListType_Sensor_currArrayIndex++]);
+ }
+ grammarID = 1708;
+ } else if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 1708:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}Sensor), END_ELEMENT] */
+ if (iso2SensorListType_Sensor_currArrayIndex < iso2SensorListType->Sensor.arrayLen ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ if(errn == 0) {
+ errn = encode_iso2SensorType(stream, &iso2SensorListType->Sensor.array [iso2SensorListType_Sensor_currArrayIndex++]);
+ }
+ grammarID = 1709;
+ } else if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 1709:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}Sensor), END_ELEMENT] */
+ if (iso2SensorListType_Sensor_currArrayIndex < iso2SensorListType->Sensor.arrayLen ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ if(errn == 0) {
+ errn = encode_iso2SensorType(stream, &iso2SensorListType->Sensor.array [iso2SensorListType_Sensor_currArrayIndex++]);
+ }
+ grammarID = 1710;
+ } else if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 1710:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}Sensor), END_ELEMENT] */
+ if (iso2SensorListType_Sensor_currArrayIndex < iso2SensorListType->Sensor.arrayLen ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ if(errn == 0) {
+ errn = encode_iso2SensorType(stream, &iso2SensorListType->Sensor.array [iso2SensorListType_Sensor_currArrayIndex++]);
+ }
+ grammarID = 1711;
+ } else if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 1711:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}Sensor), END_ELEMENT] */
+ if (iso2SensorListType_Sensor_currArrayIndex < iso2SensorListType->Sensor.arrayLen ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ if(errn == 0) {
+ errn = encode_iso2SensorType(stream, &iso2SensorListType->Sensor.array [iso2SensorListType_Sensor_currArrayIndex++]);
+ }
+ grammarID = 1712;
+ } else if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 1712:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}Sensor), END_ELEMENT] */
+ if (iso2SensorListType_Sensor_currArrayIndex < iso2SensorListType->Sensor.arrayLen ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ if(errn == 0) {
+ errn = encode_iso2SensorType(stream, &iso2SensorListType->Sensor.array [iso2SensorListType_Sensor_currArrayIndex++]);
+ }
+ grammarID = 1713;
+ } else if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 1713:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}Sensor), END_ELEMENT] */
+ if (iso2SensorListType_Sensor_currArrayIndex < iso2SensorListType->Sensor.arrayLen ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ if(errn == 0) {
+ errn = encode_iso2SensorType(stream, &iso2SensorListType->Sensor.array [iso2SensorListType_Sensor_currArrayIndex++]);
+ }
+ grammarID = 1714;
+ } else if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 1714:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}Sensor), END_ELEMENT] */
+ if (iso2SensorListType_Sensor_currArrayIndex < iso2SensorListType->Sensor.arrayLen ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ if(errn == 0) {
+ errn = encode_iso2SensorType(stream, &iso2SensorListType->Sensor.array [iso2SensorListType_Sensor_currArrayIndex++]);
+ }
+ grammarID = 1715;
+ } else if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 1715:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}Sensor), END_ELEMENT] */
+ if (iso2SensorListType_Sensor_currArrayIndex < iso2SensorListType->Sensor.arrayLen ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ if(errn == 0) {
+ errn = encode_iso2SensorType(stream, &iso2SensorListType->Sensor.array [iso2SensorListType_Sensor_currArrayIndex++]);
+ }
+ grammarID = 1716;
+ } else if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 1716:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}Sensor), END_ELEMENT] */
+ if (iso2SensorListType_Sensor_currArrayIndex < iso2SensorListType->Sensor.arrayLen ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ if(errn == 0) {
+ errn = encode_iso2SensorType(stream, &iso2SensorListType->Sensor.array [iso2SensorListType_Sensor_currArrayIndex++]);
+ }
+ grammarID = 1717;
+ } else if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 1717:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}Sensor), END_ELEMENT] */
+ if (iso2SensorListType_Sensor_currArrayIndex < iso2SensorListType->Sensor.arrayLen ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ if(errn == 0) {
+ errn = encode_iso2SensorType(stream, &iso2SensorListType->Sensor.array [iso2SensorListType_Sensor_currArrayIndex++]);
+ }
+ grammarID = 1718;
+ } else if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 1718:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}Sensor), END_ELEMENT] */
+ if (iso2SensorListType_Sensor_currArrayIndex < iso2SensorListType->Sensor.arrayLen ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ if(errn == 0) {
+ errn = encode_iso2SensorType(stream, &iso2SensorListType->Sensor.array [iso2SensorListType_Sensor_currArrayIndex++]);
+ }
+ grammarID = 1719;
+ } else if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 1719:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}Sensor), END_ELEMENT] */
+ if (iso2SensorListType_Sensor_currArrayIndex < iso2SensorListType->Sensor.arrayLen ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ if(errn == 0) {
+ errn = encode_iso2SensorType(stream, &iso2SensorListType->Sensor.array [iso2SensorListType_Sensor_currArrayIndex++]);
+ }
+ grammarID = 1720;
+ } else if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 1720:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}Sensor), END_ELEMENT] */
+ if (iso2SensorListType_Sensor_currArrayIndex < iso2SensorListType->Sensor.arrayLen ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ if(errn == 0) {
+ errn = encode_iso2SensorType(stream, &iso2SensorListType->Sensor.array [iso2SensorListType_Sensor_currArrayIndex++]);
+ }
+ grammarID = 1721;
+ } else if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 1721:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}Sensor), END_ELEMENT] */
+ if (iso2SensorListType_Sensor_currArrayIndex < iso2SensorListType->Sensor.arrayLen ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ if(errn == 0) {
+ errn = encode_iso2SensorType(stream, &iso2SensorListType->Sensor.array [iso2SensorListType_Sensor_currArrayIndex++]);
+ }
+ grammarID = 1722;
+ } else if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 1722:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}Sensor), END_ELEMENT] */
+ if (iso2SensorListType_Sensor_currArrayIndex < iso2SensorListType->Sensor.arrayLen ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ if(errn == 0) {
+ errn = encode_iso2SensorType(stream, &iso2SensorListType->Sensor.array [iso2SensorListType_Sensor_currArrayIndex++]);
+ }
+ grammarID = 1723;
+ } else if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 1723:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}Sensor), END_ELEMENT] */
+ if (iso2SensorListType_Sensor_currArrayIndex < iso2SensorListType->Sensor.arrayLen ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ if(errn == 0) {
+ errn = encode_iso2SensorType(stream, &iso2SensorListType->Sensor.array [iso2SensorListType_Sensor_currArrayIndex++]);
+ }
+ grammarID = 1724;
+ } else if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 1724:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}Sensor), END_ELEMENT] */
+ if (iso2SensorListType_Sensor_currArrayIndex < iso2SensorListType->Sensor.arrayLen ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ if(errn == 0) {
+ errn = encode_iso2SensorType(stream, &iso2SensorListType->Sensor.array [iso2SensorListType_Sensor_currArrayIndex++]);
+ }
+ grammarID = 1725;
+ } else if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 1725:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}Sensor), END_ELEMENT] */
+ if (iso2SensorListType_Sensor_currArrayIndex < iso2SensorListType->Sensor.arrayLen ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ if(errn == 0) {
+ errn = encode_iso2SensorType(stream, &iso2SensorListType->Sensor.array [iso2SensorListType_Sensor_currArrayIndex++]);
+ }
+ grammarID = 1726;
+ } else if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 1726:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}Sensor), END_ELEMENT] */
+ if (iso2SensorListType_Sensor_currArrayIndex < iso2SensorListType->Sensor.arrayLen ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ if(errn == 0) {
+ errn = encode_iso2SensorType(stream, &iso2SensorListType->Sensor.array [iso2SensorListType_Sensor_currArrayIndex++]);
+ }
+ grammarID = 1727;
+ } else if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 1727:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}Sensor), END_ELEMENT] */
+ if (iso2SensorListType_Sensor_currArrayIndex < iso2SensorListType->Sensor.arrayLen ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ if(errn == 0) {
+ errn = encode_iso2SensorType(stream, &iso2SensorListType->Sensor.array [iso2SensorListType_Sensor_currArrayIndex++]);
+ }
+ grammarID = 1728;
+ } else if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 1728:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}Sensor), END_ELEMENT] */
+ if (iso2SensorListType_Sensor_currArrayIndex < iso2SensorListType->Sensor.arrayLen ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ if(errn == 0) {
+ errn = encode_iso2SensorType(stream, &iso2SensorListType->Sensor.array [iso2SensorListType_Sensor_currArrayIndex++]);
+ }
+ grammarID = 1729;
+ } else if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 1729:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}Sensor), END_ELEMENT] */
+ if (iso2SensorListType_Sensor_currArrayIndex < iso2SensorListType->Sensor.arrayLen ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ if(errn == 0) {
+ errn = encode_iso2SensorType(stream, &iso2SensorListType->Sensor.array [iso2SensorListType_Sensor_currArrayIndex++]);
+ }
+ grammarID = 1730;
+ } else if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 1730:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}Sensor), END_ELEMENT] */
+ if (iso2SensorListType_Sensor_currArrayIndex < iso2SensorListType->Sensor.arrayLen ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ if(errn == 0) {
+ errn = encode_iso2SensorType(stream, &iso2SensorListType->Sensor.array [iso2SensorListType_Sensor_currArrayIndex++]);
+ }
+ grammarID = 1731;
+ } else if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 1731:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}Sensor), END_ELEMENT] */
+ if (iso2SensorListType_Sensor_currArrayIndex < iso2SensorListType->Sensor.arrayLen ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ if(errn == 0) {
+ errn = encode_iso2SensorType(stream, &iso2SensorListType->Sensor.array [iso2SensorListType_Sensor_currArrayIndex++]);
+ }
+ grammarID = 1732;
+ } else if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 1732:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}Sensor), END_ELEMENT] */
+ if (iso2SensorListType_Sensor_currArrayIndex < iso2SensorListType->Sensor.arrayLen ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ if(errn == 0) {
+ errn = encode_iso2SensorType(stream, &iso2SensorListType->Sensor.array [iso2SensorListType_Sensor_currArrayIndex++]);
+ }
+ grammarID = 1733;
+ } else if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 1733:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}Sensor), END_ELEMENT] */
+ if (iso2SensorListType_Sensor_currArrayIndex < iso2SensorListType->Sensor.arrayLen ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ if(errn == 0) {
+ errn = encode_iso2SensorType(stream, &iso2SensorListType->Sensor.array [iso2SensorListType_Sensor_currArrayIndex++]);
+ }
+ grammarID = 1734;
+ } else if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 1734:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}Sensor), END_ELEMENT] */
+ if (iso2SensorListType_Sensor_currArrayIndex < iso2SensorListType->Sensor.arrayLen ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ if(errn == 0) {
+ errn = encode_iso2SensorType(stream, &iso2SensorListType->Sensor.array [iso2SensorListType_Sensor_currArrayIndex++]);
+ }
+ grammarID = 1735;
+ } else if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 1735:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}Sensor), END_ELEMENT] */
+ if (iso2SensorListType_Sensor_currArrayIndex < iso2SensorListType->Sensor.arrayLen ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ if(errn == 0) {
+ errn = encode_iso2SensorType(stream, &iso2SensorListType->Sensor.array [iso2SensorListType_Sensor_currArrayIndex++]);
+ }
+ grammarID = 1736;
+ } else if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 1736:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}Sensor), END_ELEMENT] */
+ if (iso2SensorListType_Sensor_currArrayIndex < iso2SensorListType->Sensor.arrayLen ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ if(errn == 0) {
+ errn = encode_iso2SensorType(stream, &iso2SensorListType->Sensor.array [iso2SensorListType_Sensor_currArrayIndex++]);
+ }
+ grammarID = 1737;
+ } else if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 1737:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}Sensor), END_ELEMENT] */
+ if (iso2SensorListType_Sensor_currArrayIndex < iso2SensorListType->Sensor.arrayLen ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ if(errn == 0) {
+ errn = encode_iso2SensorType(stream, &iso2SensorListType->Sensor.array [iso2SensorListType_Sensor_currArrayIndex++]);
+ }
+ grammarID = 1738;
+ } else if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 1738:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}Sensor), END_ELEMENT] */
+ if (iso2SensorListType_Sensor_currArrayIndex < iso2SensorListType->Sensor.arrayLen ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ if(errn == 0) {
+ errn = encode_iso2SensorType(stream, &iso2SensorListType->Sensor.array [iso2SensorListType_Sensor_currArrayIndex++]);
+ }
+ grammarID = 1739;
+ } else if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 1739:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}Sensor), END_ELEMENT] */
+ if (iso2SensorListType_Sensor_currArrayIndex < iso2SensorListType->Sensor.arrayLen ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ if(errn == 0) {
+ errn = encode_iso2SensorType(stream, &iso2SensorListType->Sensor.array [iso2SensorListType_Sensor_currArrayIndex++]);
+ }
+ grammarID = 1740;
+ } else if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 1740:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}Sensor), END_ELEMENT] */
+ if (iso2SensorListType_Sensor_currArrayIndex < iso2SensorListType->Sensor.arrayLen ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ if(errn == 0) {
+ errn = encode_iso2SensorType(stream, &iso2SensorListType->Sensor.array [iso2SensorListType_Sensor_currArrayIndex++]);
+ }
+ grammarID = 1741;
+ } else if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 1741:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}Sensor), END_ELEMENT] */
+ if (iso2SensorListType_Sensor_currArrayIndex < iso2SensorListType->Sensor.arrayLen ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ if(errn == 0) {
+ errn = encode_iso2SensorType(stream, &iso2SensorListType->Sensor.array [iso2SensorListType_Sensor_currArrayIndex++]);
+ }
+ grammarID = 1742;
+ } else if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 1742:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}Sensor), END_ELEMENT] */
+ if (iso2SensorListType_Sensor_currArrayIndex < iso2SensorListType->Sensor.arrayLen ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ if(errn == 0) {
+ errn = encode_iso2SensorType(stream, &iso2SensorListType->Sensor.array [iso2SensorListType_Sensor_currArrayIndex++]);
+ }
+ grammarID = 1743;
+ } else if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 1743:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}Sensor), END_ELEMENT] */
+ if (iso2SensorListType_Sensor_currArrayIndex < iso2SensorListType->Sensor.arrayLen ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ if(errn == 0) {
+ errn = encode_iso2SensorType(stream, &iso2SensorListType->Sensor.array [iso2SensorListType_Sensor_currArrayIndex++]);
+ }
+ grammarID = 1744;
+ } else if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 1744:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}Sensor), END_ELEMENT] */
+ if (iso2SensorListType_Sensor_currArrayIndex < iso2SensorListType->Sensor.arrayLen ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ if(errn == 0) {
+ errn = encode_iso2SensorType(stream, &iso2SensorListType->Sensor.array [iso2SensorListType_Sensor_currArrayIndex++]);
+ }
+ grammarID = 1745;
+ } else if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 1745:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}Sensor), END_ELEMENT] */
+ if (iso2SensorListType_Sensor_currArrayIndex < iso2SensorListType->Sensor.arrayLen ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ if(errn == 0) {
+ errn = encode_iso2SensorType(stream, &iso2SensorListType->Sensor.array [iso2SensorListType_Sensor_currArrayIndex++]);
+ }
+ grammarID = 1746;
+ } else if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 1746:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}Sensor), END_ELEMENT] */
+ if (iso2SensorListType_Sensor_currArrayIndex < iso2SensorListType->Sensor.arrayLen ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ if(errn == 0) {
+ errn = encode_iso2SensorType(stream, &iso2SensorListType->Sensor.array [iso2SensorListType_Sensor_currArrayIndex++]);
+ }
+ grammarID = 1747;
+ } else if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 1747:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}Sensor), END_ELEMENT] */
+ if (iso2SensorListType_Sensor_currArrayIndex < iso2SensorListType->Sensor.arrayLen ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ if(errn == 0) {
+ errn = encode_iso2SensorType(stream, &iso2SensorListType->Sensor.array [iso2SensorListType_Sensor_currArrayIndex++]);
+ }
+ grammarID = 1748;
+ } else if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 1748:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}Sensor), END_ELEMENT] */
+ if (iso2SensorListType_Sensor_currArrayIndex < iso2SensorListType->Sensor.arrayLen ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ if(errn == 0) {
+ errn = encode_iso2SensorType(stream, &iso2SensorListType->Sensor.array [iso2SensorListType_Sensor_currArrayIndex++]);
+ }
+ grammarID = 1749;
+ } else if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 1749:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}Sensor), END_ELEMENT] */
+ if (iso2SensorListType_Sensor_currArrayIndex < iso2SensorListType->Sensor.arrayLen ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ if(errn == 0) {
+ errn = encode_iso2SensorType(stream, &iso2SensorListType->Sensor.array [iso2SensorListType_Sensor_currArrayIndex++]);
+ }
+ grammarID = 1750;
+ } else if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 1750:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}Sensor), END_ELEMENT] */
+ if (iso2SensorListType_Sensor_currArrayIndex < iso2SensorListType->Sensor.arrayLen ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ if(errn == 0) {
+ errn = encode_iso2SensorType(stream, &iso2SensorListType->Sensor.array [iso2SensorListType_Sensor_currArrayIndex++]);
+ }
+ grammarID = 1751;
+ } else if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 1751:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}Sensor), END_ELEMENT] */
+ if (iso2SensorListType_Sensor_currArrayIndex < iso2SensorListType->Sensor.arrayLen ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ if(errn == 0) {
+ errn = encode_iso2SensorType(stream, &iso2SensorListType->Sensor.array [iso2SensorListType_Sensor_currArrayIndex++]);
+ }
+ grammarID = 1752;
+ } else if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 1752:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}Sensor), END_ELEMENT] */
+ if (iso2SensorListType_Sensor_currArrayIndex < iso2SensorListType->Sensor.arrayLen ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ if(errn == 0) {
+ errn = encode_iso2SensorType(stream, &iso2SensorListType->Sensor.array [iso2SensorListType_Sensor_currArrayIndex++]);
+ }
+ grammarID = 1753;
+ } else if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 1753:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}Sensor), END_ELEMENT] */
+ if (iso2SensorListType_Sensor_currArrayIndex < iso2SensorListType->Sensor.arrayLen ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ if(errn == 0) {
+ errn = encode_iso2SensorType(stream, &iso2SensorListType->Sensor.array [iso2SensorListType_Sensor_currArrayIndex++]);
+ }
+ grammarID = 1754;
+ } else if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 1754:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}Sensor), END_ELEMENT] */
+ if (iso2SensorListType_Sensor_currArrayIndex < iso2SensorListType->Sensor.arrayLen ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ if(errn == 0) {
+ errn = encode_iso2SensorType(stream, &iso2SensorListType->Sensor.array [iso2SensorListType_Sensor_currArrayIndex++]);
+ }
+ grammarID = 1755;
+ } else if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 1755:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}Sensor), END_ELEMENT] */
+ if (iso2SensorListType_Sensor_currArrayIndex < iso2SensorListType->Sensor.arrayLen ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ if(errn == 0) {
+ errn = encode_iso2SensorType(stream, &iso2SensorListType->Sensor.array [iso2SensorListType_Sensor_currArrayIndex++]);
+ }
+ grammarID = 1756;
+ } else if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 1756:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}Sensor), END_ELEMENT] */
+ if (iso2SensorListType_Sensor_currArrayIndex < iso2SensorListType->Sensor.arrayLen ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ if(errn == 0) {
+ errn = encode_iso2SensorType(stream, &iso2SensorListType->Sensor.array [iso2SensorListType_Sensor_currArrayIndex++]);
+ }
+ grammarID = 1757;
+ } else if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 1757:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}Sensor), END_ELEMENT] */
+ if (iso2SensorListType_Sensor_currArrayIndex < iso2SensorListType->Sensor.arrayLen ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ if(errn == 0) {
+ errn = encode_iso2SensorType(stream, &iso2SensorListType->Sensor.array [iso2SensorListType_Sensor_currArrayIndex++]);
+ }
+ grammarID = 1758;
+ } else if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 1758:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}Sensor), END_ELEMENT] */
+ if (iso2SensorListType_Sensor_currArrayIndex < iso2SensorListType->Sensor.arrayLen ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ if(errn == 0) {
+ errn = encode_iso2SensorType(stream, &iso2SensorListType->Sensor.array [iso2SensorListType_Sensor_currArrayIndex++]);
+ }
+ grammarID = 1759;
+ } else if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 1759:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}Sensor), END_ELEMENT] */
+ if (iso2SensorListType_Sensor_currArrayIndex < iso2SensorListType->Sensor.arrayLen ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ if(errn == 0) {
+ errn = encode_iso2SensorType(stream, &iso2SensorListType->Sensor.array [iso2SensorListType_Sensor_currArrayIndex++]);
+ }
+ grammarID = 1760;
+ } else if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 1760:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}Sensor), END_ELEMENT] */
+ if (iso2SensorListType_Sensor_currArrayIndex < iso2SensorListType->Sensor.arrayLen ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ if(errn == 0) {
+ errn = encode_iso2SensorType(stream, &iso2SensorListType->Sensor.array [iso2SensorListType_Sensor_currArrayIndex++]);
+ }
+ grammarID = 1761;
+ } else if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 1761:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}Sensor), END_ELEMENT] */
+ if (iso2SensorListType_Sensor_currArrayIndex < iso2SensorListType->Sensor.arrayLen ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ if(errn == 0) {
+ errn = encode_iso2SensorType(stream, &iso2SensorListType->Sensor.array [iso2SensorListType_Sensor_currArrayIndex++]);
+ }
+ grammarID = 1762;
+ } else if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 1762:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}Sensor), END_ELEMENT] */
+ if (iso2SensorListType_Sensor_currArrayIndex < iso2SensorListType->Sensor.arrayLen ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ if(errn == 0) {
+ errn = encode_iso2SensorType(stream, &iso2SensorListType->Sensor.array [iso2SensorListType_Sensor_currArrayIndex++]);
+ }
+ grammarID = 1763;
+ } else if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 1763:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}Sensor), END_ELEMENT] */
+ if (iso2SensorListType_Sensor_currArrayIndex < iso2SensorListType->Sensor.arrayLen ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ if(errn == 0) {
+ errn = encode_iso2SensorType(stream, &iso2SensorListType->Sensor.array [iso2SensorListType_Sensor_currArrayIndex++]);
+ }
+ grammarID = 1764;
+ } else if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 1764:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}Sensor), END_ELEMENT] */
+ if (iso2SensorListType_Sensor_currArrayIndex < iso2SensorListType->Sensor.arrayLen ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ if(errn == 0) {
+ errn = encode_iso2SensorType(stream, &iso2SensorListType->Sensor.array [iso2SensorListType_Sensor_currArrayIndex++]);
+ }
+ grammarID = 1765;
+ } else if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 1765:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}Sensor), END_ELEMENT] */
+ if (iso2SensorListType_Sensor_currArrayIndex < iso2SensorListType->Sensor.arrayLen ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ if(errn == 0) {
+ errn = encode_iso2SensorType(stream, &iso2SensorListType->Sensor.array [iso2SensorListType_Sensor_currArrayIndex++]);
+ }
+ grammarID = 1766;
+ } else if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 1766:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}Sensor), END_ELEMENT] */
+ if (iso2SensorListType_Sensor_currArrayIndex < iso2SensorListType->Sensor.arrayLen ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ if(errn == 0) {
+ errn = encode_iso2SensorType(stream, &iso2SensorListType->Sensor.array [iso2SensorListType_Sensor_currArrayIndex++]);
+ }
+ grammarID = 1767;
+ } else if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 1767:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}Sensor), END_ELEMENT] */
+ if (iso2SensorListType_Sensor_currArrayIndex < iso2SensorListType->Sensor.arrayLen ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ if(errn == 0) {
+ errn = encode_iso2SensorType(stream, &iso2SensorListType->Sensor.array [iso2SensorListType_Sensor_currArrayIndex++]);
+ }
+ grammarID = 1768;
+ } else if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 1768:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}Sensor), END_ELEMENT] */
+ if (iso2SensorListType_Sensor_currArrayIndex < iso2SensorListType->Sensor.arrayLen ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ if(errn == 0) {
+ errn = encode_iso2SensorType(stream, &iso2SensorListType->Sensor.array [iso2SensorListType_Sensor_currArrayIndex++]);
+ }
+ grammarID = 1769;
+ } else if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 1769:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}Sensor), END_ELEMENT] */
+ if (iso2SensorListType_Sensor_currArrayIndex < iso2SensorListType->Sensor.arrayLen ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ if(errn == 0) {
+ errn = encode_iso2SensorType(stream, &iso2SensorListType->Sensor.array [iso2SensorListType_Sensor_currArrayIndex++]);
+ }
+ grammarID = 1770;
+ } else if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 1770:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}Sensor), END_ELEMENT] */
+ if (iso2SensorListType_Sensor_currArrayIndex < iso2SensorListType->Sensor.arrayLen ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ if(errn == 0) {
+ errn = encode_iso2SensorType(stream, &iso2SensorListType->Sensor.array [iso2SensorListType_Sensor_currArrayIndex++]);
+ }
+ grammarID = 1771;
+ } else if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 1771:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}Sensor), END_ELEMENT] */
+ if (iso2SensorListType_Sensor_currArrayIndex < iso2SensorListType->Sensor.arrayLen ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ if(errn == 0) {
+ errn = encode_iso2SensorType(stream, &iso2SensorListType->Sensor.array [iso2SensorListType_Sensor_currArrayIndex++]);
+ }
+ grammarID = 1772;
+ } else if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 1772:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}Sensor), END_ELEMENT] */
+ if (iso2SensorListType_Sensor_currArrayIndex < iso2SensorListType->Sensor.arrayLen ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ if(errn == 0) {
+ errn = encode_iso2SensorType(stream, &iso2SensorListType->Sensor.array [iso2SensorListType_Sensor_currArrayIndex++]);
+ }
+ grammarID = 1773;
+ } else if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 1773:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}Sensor), END_ELEMENT] */
+ if (iso2SensorListType_Sensor_currArrayIndex < iso2SensorListType->Sensor.arrayLen ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ if(errn == 0) {
+ errn = encode_iso2SensorType(stream, &iso2SensorListType->Sensor.array [iso2SensorListType_Sensor_currArrayIndex++]);
+ }
+ grammarID = 1774;
+ } else if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 1774:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}Sensor), END_ELEMENT] */
+ if (iso2SensorListType_Sensor_currArrayIndex < iso2SensorListType->Sensor.arrayLen ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ if(errn == 0) {
+ errn = encode_iso2SensorType(stream, &iso2SensorListType->Sensor.array [iso2SensorListType_Sensor_currArrayIndex++]);
+ }
+ grammarID = 1775;
+ } else if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 1775:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}Sensor), END_ELEMENT] */
+ if (iso2SensorListType_Sensor_currArrayIndex < iso2SensorListType->Sensor.arrayLen ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ if(errn == 0) {
+ errn = encode_iso2SensorType(stream, &iso2SensorListType->Sensor.array [iso2SensorListType_Sensor_currArrayIndex++]);
+ }
+ grammarID = 1776;
+ } else if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 1776:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}Sensor), END_ELEMENT] */
+ if (iso2SensorListType_Sensor_currArrayIndex < iso2SensorListType->Sensor.arrayLen ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ if(errn == 0) {
+ errn = encode_iso2SensorType(stream, &iso2SensorListType->Sensor.array [iso2SensorListType_Sensor_currArrayIndex++]);
+ }
+ grammarID = 1777;
+ } else if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 1777:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}Sensor), END_ELEMENT] */
+ if (iso2SensorListType_Sensor_currArrayIndex < iso2SensorListType->Sensor.arrayLen ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ if(errn == 0) {
+ errn = encode_iso2SensorType(stream, &iso2SensorListType->Sensor.array [iso2SensorListType_Sensor_currArrayIndex++]);
+ }
+ grammarID = 1778;
+ } else if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 1778:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}Sensor), END_ELEMENT] */
+ if (iso2SensorListType_Sensor_currArrayIndex < iso2SensorListType->Sensor.arrayLen ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ if(errn == 0) {
+ errn = encode_iso2SensorType(stream, &iso2SensorListType->Sensor.array [iso2SensorListType_Sensor_currArrayIndex++]);
+ }
+ grammarID = 1779;
+ } else if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 1779:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}Sensor), END_ELEMENT] */
+ if (iso2SensorListType_Sensor_currArrayIndex < iso2SensorListType->Sensor.arrayLen ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ if(errn == 0) {
+ errn = encode_iso2SensorType(stream, &iso2SensorListType->Sensor.array [iso2SensorListType_Sensor_currArrayIndex++]);
+ }
+ grammarID = 1780;
+ } else if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 1780:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}Sensor), END_ELEMENT] */
+ if (iso2SensorListType_Sensor_currArrayIndex < iso2SensorListType->Sensor.arrayLen ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ if(errn == 0) {
+ errn = encode_iso2SensorType(stream, &iso2SensorListType->Sensor.array [iso2SensorListType_Sensor_currArrayIndex++]);
+ }
+ grammarID = 1781;
+ } else if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 1781:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}Sensor), END_ELEMENT] */
+ if (iso2SensorListType_Sensor_currArrayIndex < iso2SensorListType->Sensor.arrayLen ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ if(errn == 0) {
+ errn = encode_iso2SensorType(stream, &iso2SensorListType->Sensor.array [iso2SensorListType_Sensor_currArrayIndex++]);
+ }
+ grammarID = 1782;
+ } else if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 1782:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}Sensor), END_ELEMENT] */
+ if (iso2SensorListType_Sensor_currArrayIndex < iso2SensorListType->Sensor.arrayLen ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ if(errn == 0) {
+ errn = encode_iso2SensorType(stream, &iso2SensorListType->Sensor.array [iso2SensorListType_Sensor_currArrayIndex++]);
+ }
+ grammarID = 1783;
+ } else if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 1783:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}Sensor), END_ELEMENT] */
+ if (iso2SensorListType_Sensor_currArrayIndex < iso2SensorListType->Sensor.arrayLen ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ if(errn == 0) {
+ errn = encode_iso2SensorType(stream, &iso2SensorListType->Sensor.array [iso2SensorListType_Sensor_currArrayIndex++]);
+ }
+ grammarID = 1784;
+ } else if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 1784:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}Sensor), END_ELEMENT] */
+ if (iso2SensorListType_Sensor_currArrayIndex < iso2SensorListType->Sensor.arrayLen ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ if(errn == 0) {
+ errn = encode_iso2SensorType(stream, &iso2SensorListType->Sensor.array [iso2SensorListType_Sensor_currArrayIndex++]);
+ }
+ grammarID = 1785;
+ } else if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 1785:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}Sensor), END_ELEMENT] */
+ if (iso2SensorListType_Sensor_currArrayIndex < iso2SensorListType->Sensor.arrayLen ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ if(errn == 0) {
+ errn = encode_iso2SensorType(stream, &iso2SensorListType->Sensor.array [iso2SensorListType_Sensor_currArrayIndex++]);
+ }
+ grammarID = 1786;
+ } else if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 1786:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}Sensor), END_ELEMENT] */
+ if (iso2SensorListType_Sensor_currArrayIndex < iso2SensorListType->Sensor.arrayLen ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ if(errn == 0) {
+ errn = encode_iso2SensorType(stream, &iso2SensorListType->Sensor.array [iso2SensorListType_Sensor_currArrayIndex++]);
+ }
+ grammarID = 1787;
+ } else if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 1787:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}Sensor), END_ELEMENT] */
+ if (iso2SensorListType_Sensor_currArrayIndex < iso2SensorListType->Sensor.arrayLen ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ if(errn == 0) {
+ errn = encode_iso2SensorType(stream, &iso2SensorListType->Sensor.array [iso2SensorListType_Sensor_currArrayIndex++]);
+ }
+ grammarID = 3;
+ } else if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 3:
+ /* Element[END_ELEMENT] */
+ if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 1, 0);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } 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:2016:MsgBody,CurrentDemandReqType', base type name='ChargeLoopReqType', content type='ELEMENT', isAbstract='false', hasTypeId='false', final='0', block='0', particle='(("urn:iso:15118:2:2016:MsgBody":EVTargetEnergyRequest,"urn:iso:15118:2:2016:MsgBody":EVMaximumEnergyRequest{0-1},"urn:iso:15118:2:2016:MsgBody":EVMinimumEnergyRequest{0-1},"urn:iso:15118:2:2016:MsgBody":DisplayParameters{0-1}),("urn:iso:15118:2:2016:MsgBody":EVTargetCurrent,"urn:iso:15118:2:2016:MsgBody":EVTargetVoltage,"urn:iso:15118:2:2016:MsgBody":EVMaximumCurrent{0-1},"urn:iso:15118:2:2016:MsgBody":EVMaximumPower{0-1},"urn:iso:15118:2:2016:MsgBody":EVMaximumVoltage{0-1}))', derivedBy='EXTENSION'. */
+static int encode_iso2CurrentDemandReqType(bitstream_t* stream, struct iso2CurrentDemandReqType* iso2CurrentDemandReqType) {
+ int grammarID = 1788;
+ int done = 0;
+
+
+ while(!done) {
+ switch(grammarID) {
+ case 1788:
+ /* FirstStartTag[START_ELEMENT({urn:iso:15118:2:2016:MsgBody}EVTargetEnergyRequest)] */
+ if ( 1 == 1 ) {
+ errn = encodeNBitUnsignedInteger(stream, 1, 0);
+ if(errn == 0) {
+ errn = encode_iso2PhysicalValueType(stream, &iso2CurrentDemandReqType->EVTargetEnergyRequest );
+ }
+ grammarID = 1789;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 1789:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgBody}EVMaximumEnergyRequest), START_ELEMENT({urn:iso:15118:2:2016:MsgBody}EVMinimumEnergyRequest), START_ELEMENT({urn:iso:15118:2:2016:MsgBody}DisplayParameters), START_ELEMENT({urn:iso:15118:2:2016:MsgBody}EVTargetCurrent)] */
+ if ( iso2CurrentDemandReqType->EVMaximumEnergyRequest_isUsed == 1u ) {
+ errn = encodeNBitUnsignedInteger(stream, 3, 0);
+ if(errn == 0) {
+ errn = encode_iso2PhysicalValueType(stream, &iso2CurrentDemandReqType->EVMaximumEnergyRequest );
+ }
+ grammarID = 1790;
+ } else if ( iso2CurrentDemandReqType->EVMinimumEnergyRequest_isUsed == 1u ) {
+ errn = encodeNBitUnsignedInteger(stream, 3, 1);
+ if(errn == 0) {
+ errn = encode_iso2PhysicalValueType(stream, &iso2CurrentDemandReqType->EVMinimumEnergyRequest );
+ }
+ grammarID = 1791;
+ } else if ( iso2CurrentDemandReqType->DisplayParameters_isUsed == 1u ) {
+ errn = encodeNBitUnsignedInteger(stream, 3, 2);
+ if(errn == 0) {
+ errn = encode_iso2DisplayParametersType(stream, &iso2CurrentDemandReqType->DisplayParameters );
+ }
+ grammarID = 1792;
+ } else if ( 1 == 1 ) {
+ errn = encodeNBitUnsignedInteger(stream, 3, 3);
+ if(errn == 0) {
+ errn = encode_iso2PhysicalValueType(stream, &iso2CurrentDemandReqType->EVTargetCurrent );
+ }
+ grammarID = 1793;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 1790:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgBody}EVMinimumEnergyRequest), START_ELEMENT({urn:iso:15118:2:2016:MsgBody}DisplayParameters), START_ELEMENT({urn:iso:15118:2:2016:MsgBody}EVTargetCurrent)] */
+ if ( iso2CurrentDemandReqType->EVMinimumEnergyRequest_isUsed == 1u ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ if(errn == 0) {
+ errn = encode_iso2PhysicalValueType(stream, &iso2CurrentDemandReqType->EVMinimumEnergyRequest );
+ }
+ grammarID = 1791;
+ } else if ( iso2CurrentDemandReqType->DisplayParameters_isUsed == 1u ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ errn = encode_iso2DisplayParametersType(stream, &iso2CurrentDemandReqType->DisplayParameters );
+ }
+ grammarID = 1792;
+ } else if ( 1 == 1 ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 2);
+ if(errn == 0) {
+ errn = encode_iso2PhysicalValueType(stream, &iso2CurrentDemandReqType->EVTargetCurrent );
+ }
+ grammarID = 1793;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 1791:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgBody}DisplayParameters), START_ELEMENT({urn:iso:15118:2:2016:MsgBody}EVTargetCurrent)] */
+ if ( iso2CurrentDemandReqType->DisplayParameters_isUsed == 1u ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ if(errn == 0) {
+ errn = encode_iso2DisplayParametersType(stream, &iso2CurrentDemandReqType->DisplayParameters );
+ }
+ grammarID = 1792;
+ } else if ( 1 == 1 ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ errn = encode_iso2PhysicalValueType(stream, &iso2CurrentDemandReqType->EVTargetCurrent );
+ }
+ grammarID = 1793;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 1792:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgBody}EVTargetCurrent)] */
+ if ( 1 == 1 ) {
+ errn = encodeNBitUnsignedInteger(stream, 1, 0);
+ if(errn == 0) {
+ errn = encode_iso2PhysicalValueType(stream, &iso2CurrentDemandReqType->EVTargetCurrent );
+ }
+ grammarID = 1793;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 1793:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgBody}EVTargetVoltage)] */
+ if ( 1 == 1 ) {
+ errn = encodeNBitUnsignedInteger(stream, 1, 0);
+ if(errn == 0) {
+ errn = encode_iso2PhysicalValueType(stream, &iso2CurrentDemandReqType->EVTargetVoltage );
+ }
+ grammarID = 1794;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 1794:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgBody}EVMaximumCurrent), START_ELEMENT({urn:iso:15118:2:2016:MsgBody}EVMaximumPower), START_ELEMENT({urn:iso:15118:2:2016:MsgBody}EVMaximumVoltage), END_ELEMENT] */
+ if ( iso2CurrentDemandReqType->EVMaximumCurrent_isUsed == 1u ) {
+ errn = encodeNBitUnsignedInteger(stream, 3, 0);
+ if(errn == 0) {
+ errn = encode_iso2PhysicalValueType(stream, &iso2CurrentDemandReqType->EVMaximumCurrent );
+ }
+ grammarID = 1795;
+ } else if ( iso2CurrentDemandReqType->EVMaximumPower_isUsed == 1u ) {
+ errn = encodeNBitUnsignedInteger(stream, 3, 1);
+ if(errn == 0) {
+ errn = encode_iso2PhysicalValueType(stream, &iso2CurrentDemandReqType->EVMaximumPower );
+ }
+ grammarID = 1796;
+ } else if ( iso2CurrentDemandReqType->EVMaximumVoltage_isUsed == 1u ) {
+ errn = encodeNBitUnsignedInteger(stream, 3, 2);
+ if(errn == 0) {
+ errn = encode_iso2PhysicalValueType(stream, &iso2CurrentDemandReqType->EVMaximumVoltage );
+ }
+ grammarID = 3;
+ } else if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 3, 3);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 1795:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgBody}EVMaximumPower), START_ELEMENT({urn:iso:15118:2:2016:MsgBody}EVMaximumVoltage), END_ELEMENT] */
+ if ( iso2CurrentDemandReqType->EVMaximumPower_isUsed == 1u ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ if(errn == 0) {
+ errn = encode_iso2PhysicalValueType(stream, &iso2CurrentDemandReqType->EVMaximumPower );
+ }
+ grammarID = 1796;
+ } else if ( iso2CurrentDemandReqType->EVMaximumVoltage_isUsed == 1u ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ errn = encode_iso2PhysicalValueType(stream, &iso2CurrentDemandReqType->EVMaximumVoltage );
+ }
+ grammarID = 3;
+ } else if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 2);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 1796:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgBody}EVMaximumVoltage), END_ELEMENT] */
+ if ( iso2CurrentDemandReqType->EVMaximumVoltage_isUsed == 1u ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ if(errn == 0) {
+ errn = encode_iso2PhysicalValueType(stream, &iso2CurrentDemandReqType->EVMaximumVoltage );
+ }
+ grammarID = 3;
+ } else if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 3:
+ /* Element[END_ELEMENT] */
+ if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 1, 0);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } 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:2016:MsgBody,FinePositioningSetupReqType', base type name='BodyBaseType', content type='ELEMENT', isAbstract='false', hasTypeId='false', final='0', block='0', particle='("urn:iso:15118:2:2016:MsgDataTypes":EVFinePositioningSetupParameters{0-1})', derivedBy='EXTENSION'. */
+static int encode_iso2FinePositioningSetupReqType(bitstream_t* stream, struct iso2FinePositioningSetupReqType* iso2FinePositioningSetupReqType) {
+ int grammarID = 1797;
+ int done = 0;
+
+
+ while(!done) {
+ switch(grammarID) {
+ case 1797:
+ /* FirstStartTag[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}EVFinePositioningSetupParameters), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}LFA_EVFinePositioningSetupParameters), END_ELEMENT] */
+ if ( iso2FinePositioningSetupReqType->EVFinePositioningSetupParameters_isUsed == 1u ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ if(errn == 0) {
+ errn = encode_iso2EVFinePositioningSetupParametersType(stream, &iso2FinePositioningSetupReqType->EVFinePositioningSetupParameters );
+ }
+ grammarID = 3;
+ } else if ( iso2FinePositioningSetupReqType->LFA_EVFinePositioningSetupParameters_isUsed == 1u ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ errn = encode_iso2LFA_EVFinePositioningSetupParametersType(stream, &iso2FinePositioningSetupReqType->LFA_EVFinePositioningSetupParameters );
+ }
+ grammarID = 3;
+ } else if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 2);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 3:
+ /* Element[END_ELEMENT] */
+ if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 1, 0);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } 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:2016:MsgDataTypes,LFA_EVFinePositioningSetupParametersType', base type name='EVFinePositioningSetupParametersType', content type='ELEMENT', isAbstract='false', hasTypeId='false', final='0', block='0', particle='("urn:iso:15118:2:2016:MsgDataTypes":NumberOfSensors,"urn:iso:15118:2:2016:MsgDataTypes":SensorList,"urn:iso:15118:2:2016:MsgDataTypes":SensorOrder,"urn:iso:15118:2:2016:MsgDataTypes":SignalPulseDuration,"urn:iso:15118:2:2016:MsgDataTypes":SignalSeparationTime,"urn:iso:15118:2:2016:MsgDataTypes":PackageSeparationTime,"urn:iso:15118:2:2016:MsgDataTypes":AlignmentOffset)', derivedBy='EXTENSION'. */
+static int encode_iso2LFA_EVFinePositioningSetupParametersType(bitstream_t* stream, struct iso2LFA_EVFinePositioningSetupParametersType* iso2LFA_EVFinePositioningSetupParametersType) {
+ int grammarID = 1798;
+ int done = 0;
+
+
+ while(!done) {
+ switch(grammarID) {
+ case 1798:
+ /* FirstStartTag[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}NumberOfSensors)] */
+ if ( 1 == 1 ) {
+ errn = encodeNBitUnsignedInteger(stream, 1, 0);
+ if(errn == 0) {
+ /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
+ errn = encodeNBitUnsignedInteger(stream, 1, 0);
+ if(errn == 0) {
+ errn = encodeNBitUnsignedInteger(stream, 8, (uint32_t)(iso2LFA_EVFinePositioningSetupParametersType->NumberOfSensors - 0));
+ /* valid EE */
+ errn = encodeNBitUnsignedInteger(stream, 1, 0);
+ }
+ }
+ grammarID = 1799;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 1799:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorList)] */
+ if ( 1 == 1 ) {
+ errn = encodeNBitUnsignedInteger(stream, 1, 0);
+ if(errn == 0) {
+ errn = encode_iso2SensorListType(stream, &iso2LFA_EVFinePositioningSetupParametersType->SensorList );
+ }
+ grammarID = 1800;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 1800:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorOrder)] */
+ if ( 1 == 1 ) {
+ errn = encodeNBitUnsignedInteger(stream, 1, 0);
+ if(errn == 0) {
+ errn = encode_iso2SensorOrderListType(stream, &iso2LFA_EVFinePositioningSetupParametersType->SensorOrder );
+ }
+ grammarID = 1801;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 1801:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SignalPulseDuration)] */
+ if ( 1 == 1 ) {
+ errn = encodeNBitUnsignedInteger(stream, 1, 0);
+ if(errn == 0) {
+ /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
+ errn = encodeNBitUnsignedInteger(stream, 1, 0);
+ if(errn == 0) {
+ errn = encodeNBitUnsignedInteger(stream, 8, (uint32_t)(iso2LFA_EVFinePositioningSetupParametersType->SignalPulseDuration - 0));
+ /* valid EE */
+ errn = encodeNBitUnsignedInteger(stream, 1, 0);
+ }
+ }
+ grammarID = 1802;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 1802:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SignalSeparationTime)] */
+ if ( 1 == 1 ) {
+ errn = encodeNBitUnsignedInteger(stream, 1, 0);
+ if(errn == 0) {
+ /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
+ errn = encodeNBitUnsignedInteger(stream, 1, 0);
+ if(errn == 0) {
+ errn = encodeNBitUnsignedInteger(stream, 8, (uint32_t)(iso2LFA_EVFinePositioningSetupParametersType->SignalSeparationTime - 0));
+ /* valid EE */
+ errn = encodeNBitUnsignedInteger(stream, 1, 0);
+ }
+ }
+ grammarID = 1803;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 1803:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}PackageSeparationTime)] */
+ if ( 1 == 1 ) {
+ errn = encodeNBitUnsignedInteger(stream, 1, 0);
+ if(errn == 0) {
+ /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
+ errn = encodeNBitUnsignedInteger(stream, 1, 0);
+ if(errn == 0) {
+ errn = encodeNBitUnsignedInteger(stream, 8, (uint32_t)(iso2LFA_EVFinePositioningSetupParametersType->PackageSeparationTime - 0));
+ /* valid EE */
+ errn = encodeNBitUnsignedInteger(stream, 1, 0);
+ }
+ }
+ grammarID = 1804;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 1804:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}AlignmentOffset)] */
+ if ( 1 == 1 ) {
+ errn = encodeNBitUnsignedInteger(stream, 1, 0);
+ if(errn == 0) {
+ /* First(xsi:type)StartTag[CHARACTERS[UNSIGNED_INTEGER]] */
+ errn = encodeNBitUnsignedInteger(stream, 1, 0);
+ if(errn == 0) {
+ errn = encodeUnsignedInteger16(stream, iso2LFA_EVFinePositioningSetupParametersType->AlignmentOffset);
+ /* valid EE */
+ errn = encodeNBitUnsignedInteger(stream, 1, 0);
+ }
+ }
+ grammarID = 3;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 3:
+ /* Element[END_ELEMENT] */
+ if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 1, 0);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } 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:2016:MsgDataTypes,SAScheduleTupleType', base type name='anyType', content type='ELEMENT', isAbstract='false', hasTypeId='false', final='0', block='0', particle='("urn:iso:15118:2:2016:MsgDataTypes":SAScheduleTupleID,"urn:iso:15118:2:2016:MsgDataTypes":PMaxSchedule,"urn:iso:15118:2:2016:MsgDataTypes":PMaxDischargeSchedule{0-1},"urn:iso:15118:2:2016:MsgDataTypes":SalesTariff{0-1},"urn:iso:15118:2:2016:MsgDataTypes":BuyBackTariff{0-1})', derivedBy='RESTRICTION'. */
+static int encode_iso2SAScheduleTupleType(bitstream_t* stream, struct iso2SAScheduleTupleType* iso2SAScheduleTupleType) {
+ int grammarID = 1805;
+ int done = 0;
+
+
+ while(!done) {
+ switch(grammarID) {
+ case 1805:
+ /* FirstStartTag[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SAScheduleTupleID)] */
+ if ( 1 == 1 ) {
+ errn = encodeNBitUnsignedInteger(stream, 1, 0);
+ if(errn == 0) {
+ /* FirstStartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
+ errn = encodeNBitUnsignedInteger(stream, 1, 0);
+ if(errn == 0) {
+ errn = encodeNBitUnsignedInteger(stream, 8, (uint32_t)(iso2SAScheduleTupleType->SAScheduleTupleID - 1));
+ /* valid EE */
+ errn = encodeNBitUnsignedInteger(stream, 1, 0);
+ }
+ }
+ grammarID = 1806;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 1806:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}PMaxSchedule)] */
+ if ( 1 == 1 ) {
+ errn = encodeNBitUnsignedInteger(stream, 1, 0);
+ if(errn == 0) {
+ errn = encode_iso2PMaxScheduleType(stream, &iso2SAScheduleTupleType->PMaxSchedule );
+ }
+ grammarID = 1807;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 1807:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}PMaxDischargeSchedule), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SalesTariff), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}BuyBackTariff), END_ELEMENT] */
+ if ( iso2SAScheduleTupleType->PMaxDischargeSchedule_isUsed == 1u ) {
+ errn = encodeNBitUnsignedInteger(stream, 3, 0);
+ if(errn == 0) {
+ errn = encode_iso2PMaxScheduleType(stream, &iso2SAScheduleTupleType->PMaxDischargeSchedule );
+ }
+ grammarID = 1808;
+ } else if ( iso2SAScheduleTupleType->SalesTariff_isUsed == 1u ) {
+ errn = encodeNBitUnsignedInteger(stream, 3, 1);
+ if(errn == 0) {
+ errn = encode_iso2SalesTariffType(stream, &iso2SAScheduleTupleType->SalesTariff );
+ }
+ grammarID = 1809;
+ } else if ( iso2SAScheduleTupleType->BuyBackTariff_isUsed == 1u ) {
+ errn = encodeNBitUnsignedInteger(stream, 3, 2);
+ if(errn == 0) {
+ errn = encode_iso2SalesTariffType(stream, &iso2SAScheduleTupleType->BuyBackTariff );
+ }
+ grammarID = 3;
+ } else if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 3, 3);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 1808:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SalesTariff), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}BuyBackTariff), END_ELEMENT] */
+ if ( iso2SAScheduleTupleType->SalesTariff_isUsed == 1u ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ if(errn == 0) {
+ errn = encode_iso2SalesTariffType(stream, &iso2SAScheduleTupleType->SalesTariff );
+ }
+ grammarID = 1809;
+ } else if ( iso2SAScheduleTupleType->BuyBackTariff_isUsed == 1u ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ errn = encode_iso2SalesTariffType(stream, &iso2SAScheduleTupleType->BuyBackTariff );
+ }
+ grammarID = 3;
+ } else if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 2);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 1809:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}BuyBackTariff), END_ELEMENT] */
+ if ( iso2SAScheduleTupleType->BuyBackTariff_isUsed == 1u ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ if(errn == 0) {
+ errn = encode_iso2SalesTariffType(stream, &iso2SAScheduleTupleType->BuyBackTariff );
+ }
+ grammarID = 3;
+ } else if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 3:
+ /* Element[END_ELEMENT] */
+ if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 1, 0);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } 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:2016:MsgDataTypes,WPT_EVSEChargeParameterType', base type name='EVSEEnergyTransferParameterType', content type='ELEMENT', isAbstract='false', hasTypeId='false', final='0', block='0', particle='("urn:iso:15118:2:2016:MsgDataTypes":EVSEMaximumPower,"urn:iso:15118:2:2016:MsgDataTypes":EVSEMinimumPower)', derivedBy='EXTENSION'. */
+static int encode_iso2WPT_EVSEChargeParameterType(bitstream_t* stream, struct iso2WPT_EVSEChargeParameterType* iso2WPT_EVSEChargeParameterType) {
+ int grammarID = 1810;
+ int done = 0;
+
+
+ while(!done) {
+ switch(grammarID) {
+ case 1810:
+ /* FirstStartTag[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}EVSEMaximumPower)] */
+ if ( 1 == 1 ) {
+ errn = encodeNBitUnsignedInteger(stream, 1, 0);
+ if(errn == 0) {
+ errn = encode_iso2PhysicalValueType(stream, &iso2WPT_EVSEChargeParameterType->EVSEMaximumPower );
+ }
+ grammarID = 1811;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 1811:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}EVSEMinimumPower)] */
+ if ( 1 == 1 ) {
+ errn = encodeNBitUnsignedInteger(stream, 1, 0);
+ if(errn == 0) {
+ errn = encode_iso2PhysicalValueType(stream, &iso2WPT_EVSEChargeParameterType->EVSEMinimumPower );
+ }
+ grammarID = 3;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 3:
+ /* Element[END_ELEMENT] */
+ if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 1, 0);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } 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:2016:MsgBody,FinePositioningResType', base type name='V2GResponseType', content type='ELEMENT', isAbstract='false', hasTypeId='false', final='0', block='0', particle='(("urn:iso:15118:2:2016:MsgBody":ResponseCode,"urn:iso:15118:2:2016:MsgBody":EVSEStatus{0-1}),("urn:iso:15118:2:2016:MsgBody":EVSEProcessing,"urn:iso:15118:2:2016:MsgDataTypes":EVSEFinePositioningParameters{0-1}))', derivedBy='EXTENSION'. */
+static int encode_iso2FinePositioningResType(bitstream_t* stream, struct iso2FinePositioningResType* iso2FinePositioningResType) {
+ int grammarID = 1812;
+ int done = 0;
+
+
+ while(!done) {
+ switch(grammarID) {
+ case 1812:
+ /* FirstStartTag[START_ELEMENT({urn:iso:15118:2:2016:MsgBody}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, 5, iso2FinePositioningResType->ResponseCode);
+ /* valid EE */
+ errn = encodeNBitUnsignedInteger(stream, 1, 0);
+ }
+ }
+ grammarID = 1813;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 1813:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgBody}EVSEStatus), START_ELEMENT({urn:iso:15118:2:2016:MsgBody}EVSEProcessing)] */
+ if ( iso2FinePositioningResType->EVSEStatus_isUsed == 1u ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ if(errn == 0) {
+ errn = encode_iso2EVSEStatusType(stream, &iso2FinePositioningResType->EVSEStatus );
+ }
+ grammarID = 1814;
+ } else if ( 1 == 1 ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ /* FirstStartTag[CHARACTERS[ENUMERATION]] */
+ errn = encodeNBitUnsignedInteger(stream, 1, 0);
+ if(errn == 0) {
+ errn = encodeNBitUnsignedInteger(stream, 2, iso2FinePositioningResType->EVSEProcessing);
+ /* valid EE */
+ errn = encodeNBitUnsignedInteger(stream, 1, 0);
+ }
+ }
+ grammarID = 1815;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 1814:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgBody}EVSEProcessing)] */
+ 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, iso2FinePositioningResType->EVSEProcessing);
+ /* valid EE */
+ errn = encodeNBitUnsignedInteger(stream, 1, 0);
+ }
+ }
+ grammarID = 1815;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 1815:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}EVSEFinePositioningParameters), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}Generic_EVSEFinePositioningParameters), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}LFA_EVSEFinePositioningParameters), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MV_EVSEFinePositioningParameters), END_ELEMENT] */
+ if ( iso2FinePositioningResType->EVSEFinePositioningParameters_isUsed == 1u ) {
+ errn = encodeNBitUnsignedInteger(stream, 3, 0);
+ if(errn == 0) {
+ errn = encode_iso2EVSEFinePositioningParametersType(stream, &iso2FinePositioningResType->EVSEFinePositioningParameters );
+ }
+ grammarID = 3;
+ } else if ( iso2FinePositioningResType->Generic_EVSEFinePositioningParameters_isUsed == 1u ) {
+ errn = encodeNBitUnsignedInteger(stream, 3, 1);
+ if(errn == 0) {
+ errn = encode_iso2Generic_EVSEFinePositioningParametersType(stream, &iso2FinePositioningResType->Generic_EVSEFinePositioningParameters );
+ }
+ grammarID = 3;
+ } else if ( iso2FinePositioningResType->LFA_EVSEFinePositioningParameters_isUsed == 1u ) {
+ errn = encodeNBitUnsignedInteger(stream, 3, 2);
+ if(errn == 0) {
+ errn = encode_iso2LFA_EVSEFinePositioningParametersType(stream, &iso2FinePositioningResType->LFA_EVSEFinePositioningParameters );
+ }
+ grammarID = 3;
+ } else if ( iso2FinePositioningResType->MV_EVSEFinePositioningParameters_isUsed == 1u ) {
+ errn = encodeNBitUnsignedInteger(stream, 3, 3);
+ if(errn == 0) {
+ errn = encode_iso2MV_EVSEFinePositioningParametersType(stream, &iso2FinePositioningResType->MV_EVSEFinePositioningParameters );
+ }
+ grammarID = 3;
+ } else if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 3, 4);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 3:
+ /* Element[END_ELEMENT] */
+ if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 1, 0);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } 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:2016:MsgBody,BodyBaseType', base type name='anyType', content type='EMPTY', isAbstract='true', hasTypeId='false', final='0', block='0', derivedBy='RESTRICTION'. */
+static int encode_iso2BodyBaseType(bitstream_t* stream, struct iso2BodyBaseType* iso2BodyBaseType) {
+ int grammarID = 674;
+ int done = 0;
+
+
+ while(!done) {
+ switch(grammarID) {
+ case 674:
+ /* FirstStartTag[END_ELEMENT] */
+ if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 1, 0);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } 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:2016:MsgBody,ServiceDetailResType', base type name='V2GResponseType', content type='ELEMENT', isAbstract='false', hasTypeId='false', final='0', block='0', particle='(("urn:iso:15118:2:2016:MsgBody":ResponseCode,"urn:iso:15118:2:2016:MsgBody":EVSEStatus{0-1}),("urn:iso:15118:2:2016:MsgBody":ServiceID,"urn:iso:15118:2:2016:MsgBody":ServiceParameterList{0-1}))', derivedBy='EXTENSION'. */
+static int encode_iso2ServiceDetailResType(bitstream_t* stream, struct iso2ServiceDetailResType* iso2ServiceDetailResType) {
+ int grammarID = 1816;
+ int done = 0;
+
+
+ while(!done) {
+ switch(grammarID) {
+ case 1816:
+ /* FirstStartTag[START_ELEMENT({urn:iso:15118:2:2016:MsgBody}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, 5, iso2ServiceDetailResType->ResponseCode);
+ /* valid EE */
+ errn = encodeNBitUnsignedInteger(stream, 1, 0);
+ }
+ }
+ grammarID = 1817;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 1817:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgBody}EVSEStatus), START_ELEMENT({urn:iso:15118:2:2016:MsgBody}ServiceID)] */
+ if ( iso2ServiceDetailResType->EVSEStatus_isUsed == 1u ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ if(errn == 0) {
+ errn = encode_iso2EVSEStatusType(stream, &iso2ServiceDetailResType->EVSEStatus );
+ }
+ grammarID = 1818;
+ } else if ( 1 == 1 ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ /* FirstStartTag[CHARACTERS[UNSIGNED_INTEGER]] */
+ errn = encodeNBitUnsignedInteger(stream, 1, 0);
+ if(errn == 0) {
+ errn = encodeUnsignedInteger16(stream, iso2ServiceDetailResType->ServiceID);
+ /* valid EE */
+ errn = encodeNBitUnsignedInteger(stream, 1, 0);
+ }
+ }
+ grammarID = 1819;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 1818:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgBody}ServiceID)] */
+ if ( 1 == 1 ) {
+ errn = encodeNBitUnsignedInteger(stream, 1, 0);
+ if(errn == 0) {
+ /* FirstStartTag[CHARACTERS[UNSIGNED_INTEGER]] */
+ errn = encodeNBitUnsignedInteger(stream, 1, 0);
+ if(errn == 0) {
+ errn = encodeUnsignedInteger16(stream, iso2ServiceDetailResType->ServiceID);
+ /* valid EE */
+ errn = encodeNBitUnsignedInteger(stream, 1, 0);
+ }
+ }
+ grammarID = 1819;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 1819:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgBody}ServiceParameterList), END_ELEMENT] */
+ if ( iso2ServiceDetailResType->ServiceParameterList_isUsed == 1u ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ if(errn == 0) {
+ errn = encode_iso2ServiceParameterListType(stream, &iso2ServiceDetailResType->ServiceParameterList );
+ }
+ grammarID = 3;
+ } else if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 3:
+ /* Element[END_ELEMENT] */
+ if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 1, 0);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } 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:2016:MsgBody,PowerDeliveryReqType', base type name='BodyBaseType', content type='ELEMENT', isAbstract='false', hasTypeId='false', final='0', block='0', particle='("urn:iso:15118:2:2016:MsgBody":ChargeProgress,"urn:iso:15118:2:2016:MsgBody":EVOperation{0-1},"urn:iso:15118:2:2016:MsgBody":SAScheduleTupleID{0-1},"urn:iso:15118:2:2016:MsgBody":ChargingProfile{0-1})', derivedBy='EXTENSION'. */
+static int encode_iso2PowerDeliveryReqType(bitstream_t* stream, struct iso2PowerDeliveryReqType* iso2PowerDeliveryReqType) {
+ int grammarID = 1820;
+ int done = 0;
+
+
+ while(!done) {
+ switch(grammarID) {
+ case 1820:
+ /* FirstStartTag[START_ELEMENT({urn:iso:15118:2:2016:MsgBody}ChargeProgress)] */
+ 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, iso2PowerDeliveryReqType->ChargeProgress);
+ /* valid EE */
+ errn = encodeNBitUnsignedInteger(stream, 1, 0);
+ }
+ }
+ grammarID = 1821;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 1821:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgBody}EVOperation), START_ELEMENT({urn:iso:15118:2:2016:MsgBody}SAScheduleTupleID), START_ELEMENT({urn:iso:15118:2:2016:MsgBody}ChargingProfile), END_ELEMENT] */
+ if ( iso2PowerDeliveryReqType->EVOperation_isUsed == 1u ) {
+ errn = encodeNBitUnsignedInteger(stream, 3, 0);
+ if(errn == 0) {
+ /* FirstStartTag[CHARACTERS[ENUMERATION]] */
+ errn = encodeNBitUnsignedInteger(stream, 1, 0);
+ if(errn == 0) {
+ errn = encodeNBitUnsignedInteger(stream, 1, iso2PowerDeliveryReqType->EVOperation);
+ /* valid EE */
+ errn = encodeNBitUnsignedInteger(stream, 1, 0);
+ }
+ }
+ grammarID = 1822;
+ } else if ( iso2PowerDeliveryReqType->SAScheduleTupleID_isUsed == 1u ) {
+ errn = encodeNBitUnsignedInteger(stream, 3, 1);
+ if(errn == 0) {
+ /* FirstStartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
+ errn = encodeNBitUnsignedInteger(stream, 1, 0);
+ if(errn == 0) {
+ errn = encodeNBitUnsignedInteger(stream, 8, (uint32_t)(iso2PowerDeliveryReqType->SAScheduleTupleID - 1));
+ /* valid EE */
+ errn = encodeNBitUnsignedInteger(stream, 1, 0);
+ }
+ }
+ grammarID = 1823;
+ } else if ( iso2PowerDeliveryReqType->ChargingProfile_isUsed == 1u ) {
+ errn = encodeNBitUnsignedInteger(stream, 3, 2);
+ if(errn == 0) {
+ errn = encode_iso2ChargingProfileType(stream, &iso2PowerDeliveryReqType->ChargingProfile );
+ }
+ grammarID = 3;
+ } else if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 3, 3);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 1822:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgBody}SAScheduleTupleID), START_ELEMENT({urn:iso:15118:2:2016:MsgBody}ChargingProfile), END_ELEMENT] */
+ if ( iso2PowerDeliveryReqType->SAScheduleTupleID_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)(iso2PowerDeliveryReqType->SAScheduleTupleID - 1));
+ /* valid EE */
+ errn = encodeNBitUnsignedInteger(stream, 1, 0);
+ }
+ }
+ grammarID = 1823;
+ } else if ( iso2PowerDeliveryReqType->ChargingProfile_isUsed == 1u ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ errn = encode_iso2ChargingProfileType(stream, &iso2PowerDeliveryReqType->ChargingProfile );
+ }
+ grammarID = 3;
+ } else if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 2);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 1823:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgBody}ChargingProfile), END_ELEMENT] */
+ if ( iso2PowerDeliveryReqType->ChargingProfile_isUsed == 1u ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ if(errn == 0) {
+ errn = encode_iso2ChargingProfileType(stream, &iso2PowerDeliveryReqType->ChargingProfile );
+ }
+ grammarID = 3;
+ } else if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 3:
+ /* Element[END_ELEMENT] */
+ if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 1, 0);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } 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:2016:MsgBody,PairingResType', base type name='V2GResponseType', content type='ELEMENT', isAbstract='false', hasTypeId='false', final='0', block='0', particle='(("urn:iso:15118:2:2016:MsgBody":ResponseCode,"urn:iso:15118:2:2016:MsgBody":EVSEStatus{0-1}),("urn:iso:15118:2:2016:MsgBody":EVSEProcessing,"urn:iso:15118:2:2016:MsgBody":PairingParameters{0-1}))', derivedBy='EXTENSION'. */
+static int encode_iso2PairingResType(bitstream_t* stream, struct iso2PairingResType* iso2PairingResType) {
+ int grammarID = 1824;
+ int done = 0;
+
+
+ while(!done) {
+ switch(grammarID) {
+ case 1824:
+ /* FirstStartTag[START_ELEMENT({urn:iso:15118:2:2016:MsgBody}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, 5, iso2PairingResType->ResponseCode);
+ /* valid EE */
+ errn = encodeNBitUnsignedInteger(stream, 1, 0);
+ }
+ }
+ grammarID = 1825;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 1825:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgBody}EVSEStatus), START_ELEMENT({urn:iso:15118:2:2016:MsgBody}EVSEProcessing)] */
+ if ( iso2PairingResType->EVSEStatus_isUsed == 1u ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ if(errn == 0) {
+ errn = encode_iso2EVSEStatusType(stream, &iso2PairingResType->EVSEStatus );
+ }
+ grammarID = 1826;
+ } else if ( 1 == 1 ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ /* FirstStartTag[CHARACTERS[ENUMERATION]] */
+ errn = encodeNBitUnsignedInteger(stream, 1, 0);
+ if(errn == 0) {
+ errn = encodeNBitUnsignedInteger(stream, 2, iso2PairingResType->EVSEProcessing);
+ /* valid EE */
+ errn = encodeNBitUnsignedInteger(stream, 1, 0);
+ }
+ }
+ grammarID = 1827;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 1826:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgBody}EVSEProcessing)] */
+ 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, iso2PairingResType->EVSEProcessing);
+ /* valid EE */
+ errn = encodeNBitUnsignedInteger(stream, 1, 0);
+ }
+ }
+ grammarID = 1827;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 1827:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgBody}PairingParameters), END_ELEMENT] */
+ if ( iso2PairingResType->PairingParameters_isUsed == 1u ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ if(errn == 0) {
+ errn = encode_iso2ParameterSetType(stream, &iso2PairingResType->PairingParameters );
+ }
+ grammarID = 3;
+ } else if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 3:
+ /* Element[END_ELEMENT] */
+ if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 1, 0);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } 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:2016:MsgBody,AuthorizationReqType', base type name='BodyBaseType', content type='ELEMENT', isAbstract='false', hasTypeId='false', final='0', block='0', particle='("urn:iso:15118:2:2016:MsgBody":GenChallenge{0-1})', derivedBy='EXTENSION'. */
+static int encode_iso2AuthorizationReqType(bitstream_t* stream, struct iso2AuthorizationReqType* iso2AuthorizationReqType) {
+ int grammarID = 1828;
+ int done = 0;
+
+
+ while(!done) {
+ switch(grammarID) {
+ case 1828:
+ /* FirstStartTag[ATTRIBUTE[STRING]({urn:iso:15118:2:2016:MsgBody}Id), START_ELEMENT({urn:iso:15118:2:2016:MsgBody}GenChallenge), END_ELEMENT] */
+ if ( iso2AuthorizationReqType->Id_isUsed == 1u ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ if(errn == 0) {
+ /* encode string as string table miss (+2 len)*/
+ errn = encodeUnsignedInteger16(stream, (uint16_t)(iso2AuthorizationReqType->Id.charactersLen + 2));
+ if (errn == 0) {
+ errn = encodeCharacters(stream, iso2AuthorizationReqType->Id.characters, iso2AuthorizationReqType->Id.charactersLen);
+ }
+ }
+ grammarID = 1829;
+ } else if ( iso2AuthorizationReqType->GenChallenge_isUsed == 1u ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ /* FirstStartTag[CHARACTERS[BINARY_BASE64]] */
+ errn = encodeNBitUnsignedInteger(stream, 1, 0);
+ if(errn == 0) {
+ errn = encodeUnsignedInteger16(stream, (uint16_t)(iso2AuthorizationReqType->GenChallenge.bytesLen));
+ if (errn == 0) {
+ errn = encodeBytes(stream, iso2AuthorizationReqType->GenChallenge.bytes, iso2AuthorizationReqType->GenChallenge.bytesLen);
+ }
+ /* valid EE */
+ errn = encodeNBitUnsignedInteger(stream, 1, 0);
+ }
+ }
+ grammarID = 3;
+ } else if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 2);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 1829:
+ /* StartTag[START_ELEMENT({urn:iso:15118:2:2016:MsgBody}GenChallenge), END_ELEMENT] */
+ if ( iso2AuthorizationReqType->GenChallenge_isUsed == 1u ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ if(errn == 0) {
+ /* FirstStartTag[CHARACTERS[BINARY_BASE64]] */
+ errn = encodeNBitUnsignedInteger(stream, 1, 0);
+ if(errn == 0) {
+ errn = encodeUnsignedInteger16(stream, (uint16_t)(iso2AuthorizationReqType->GenChallenge.bytesLen));
+ if (errn == 0) {
+ errn = encodeBytes(stream, iso2AuthorizationReqType->GenChallenge.bytes, iso2AuthorizationReqType->GenChallenge.bytesLen);
+ }
+ /* valid EE */
+ errn = encodeNBitUnsignedInteger(stream, 1, 0);
+ }
+ }
+ grammarID = 3;
+ } else if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 3:
+ /* Element[END_ELEMENT] */
+ if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 1, 0);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } 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:2016:MsgDataTypes,ParameterSetType', base type name='anyType', content type='ELEMENT', isAbstract='false', hasTypeId='false', final='0', block='0', particle='("urn:iso:15118:2:2016:MsgDataTypes":ParameterSetID,"urn:iso:15118:2:2016:MsgDataTypes":Parameter{1-16})', derivedBy='RESTRICTION'. */
+static int encode_iso2ParameterSetType(bitstream_t* stream, struct iso2ParameterSetType* iso2ParameterSetType) {
+ int grammarID = 1830;
+ int done = 0;
+
+ unsigned int iso2ParameterSetType_Parameter_currArrayIndex = 0;
+
+ while(!done) {
+ switch(grammarID) {
+ case 1830:
+ /* FirstStartTag[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}ParameterSetID)] */
+ if ( 1 == 1 ) {
+ errn = encodeNBitUnsignedInteger(stream, 1, 0);
+ if(errn == 0) {
+ /* First(xsi:type)StartTag[CHARACTERS[UNSIGNED_INTEGER]] */
+ errn = encodeNBitUnsignedInteger(stream, 1, 0);
+ if(errn == 0) {
+ errn = encodeUnsignedInteger16(stream, iso2ParameterSetType->ParameterSetID);
+ /* valid EE */
+ errn = encodeNBitUnsignedInteger(stream, 1, 0);
+ }
+ }
+ grammarID = 1831;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 1831:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}Parameter)] */
+ if (iso2ParameterSetType_Parameter_currArrayIndex < iso2ParameterSetType->Parameter.arrayLen ) {
+ errn = encodeNBitUnsignedInteger(stream, 1, 0);
+ if(errn == 0) {
+ errn = encode_iso2ParameterType(stream, &iso2ParameterSetType->Parameter.array [iso2ParameterSetType_Parameter_currArrayIndex++]);
+ }
+ grammarID = 1832;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 1832:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}Parameter), END_ELEMENT] */
+ if (iso2ParameterSetType_Parameter_currArrayIndex < iso2ParameterSetType->Parameter.arrayLen ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ if(errn == 0) {
+ errn = encode_iso2ParameterType(stream, &iso2ParameterSetType->Parameter.array [iso2ParameterSetType_Parameter_currArrayIndex++]);
+ }
+ grammarID = 1833;
+ } else if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 1833:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}Parameter), END_ELEMENT] */
+ if (iso2ParameterSetType_Parameter_currArrayIndex < iso2ParameterSetType->Parameter.arrayLen ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ if(errn == 0) {
+ errn = encode_iso2ParameterType(stream, &iso2ParameterSetType->Parameter.array [iso2ParameterSetType_Parameter_currArrayIndex++]);
+ }
+ grammarID = 1834;
+ } else if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 1834:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}Parameter), END_ELEMENT] */
+ if (iso2ParameterSetType_Parameter_currArrayIndex < iso2ParameterSetType->Parameter.arrayLen ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ if(errn == 0) {
+ errn = encode_iso2ParameterType(stream, &iso2ParameterSetType->Parameter.array [iso2ParameterSetType_Parameter_currArrayIndex++]);
+ }
+ grammarID = 1835;
+ } else if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 1835:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}Parameter), END_ELEMENT] */
+ if (iso2ParameterSetType_Parameter_currArrayIndex < iso2ParameterSetType->Parameter.arrayLen ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ if(errn == 0) {
+ errn = encode_iso2ParameterType(stream, &iso2ParameterSetType->Parameter.array [iso2ParameterSetType_Parameter_currArrayIndex++]);
+ }
+ grammarID = 1836;
+ } else if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 1836:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}Parameter), END_ELEMENT] */
+ if (iso2ParameterSetType_Parameter_currArrayIndex < iso2ParameterSetType->Parameter.arrayLen ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ if(errn == 0) {
+ errn = encode_iso2ParameterType(stream, &iso2ParameterSetType->Parameter.array [iso2ParameterSetType_Parameter_currArrayIndex++]);
+ }
+ grammarID = 1837;
+ } else if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 1837:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}Parameter), END_ELEMENT] */
+ if (iso2ParameterSetType_Parameter_currArrayIndex < iso2ParameterSetType->Parameter.arrayLen ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ if(errn == 0) {
+ errn = encode_iso2ParameterType(stream, &iso2ParameterSetType->Parameter.array [iso2ParameterSetType_Parameter_currArrayIndex++]);
+ }
+ grammarID = 1838;
+ } else if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 1838:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}Parameter), END_ELEMENT] */
+ if (iso2ParameterSetType_Parameter_currArrayIndex < iso2ParameterSetType->Parameter.arrayLen ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ if(errn == 0) {
+ errn = encode_iso2ParameterType(stream, &iso2ParameterSetType->Parameter.array [iso2ParameterSetType_Parameter_currArrayIndex++]);
+ }
+ grammarID = 1839;
+ } else if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 1839:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}Parameter), END_ELEMENT] */
+ if (iso2ParameterSetType_Parameter_currArrayIndex < iso2ParameterSetType->Parameter.arrayLen ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ if(errn == 0) {
+ errn = encode_iso2ParameterType(stream, &iso2ParameterSetType->Parameter.array [iso2ParameterSetType_Parameter_currArrayIndex++]);
+ }
+ grammarID = 1840;
+ } else if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 1840:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}Parameter), END_ELEMENT] */
+ if (iso2ParameterSetType_Parameter_currArrayIndex < iso2ParameterSetType->Parameter.arrayLen ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ if(errn == 0) {
+ errn = encode_iso2ParameterType(stream, &iso2ParameterSetType->Parameter.array [iso2ParameterSetType_Parameter_currArrayIndex++]);
+ }
+ grammarID = 1841;
+ } else if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 1841:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}Parameter), END_ELEMENT] */
+ if (iso2ParameterSetType_Parameter_currArrayIndex < iso2ParameterSetType->Parameter.arrayLen ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ if(errn == 0) {
+ errn = encode_iso2ParameterType(stream, &iso2ParameterSetType->Parameter.array [iso2ParameterSetType_Parameter_currArrayIndex++]);
+ }
+ grammarID = 1842;
+ } else if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 1842:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}Parameter), END_ELEMENT] */
+ if (iso2ParameterSetType_Parameter_currArrayIndex < iso2ParameterSetType->Parameter.arrayLen ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ if(errn == 0) {
+ errn = encode_iso2ParameterType(stream, &iso2ParameterSetType->Parameter.array [iso2ParameterSetType_Parameter_currArrayIndex++]);
+ }
+ grammarID = 1843;
+ } else if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 1843:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}Parameter), END_ELEMENT] */
+ if (iso2ParameterSetType_Parameter_currArrayIndex < iso2ParameterSetType->Parameter.arrayLen ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ if(errn == 0) {
+ errn = encode_iso2ParameterType(stream, &iso2ParameterSetType->Parameter.array [iso2ParameterSetType_Parameter_currArrayIndex++]);
+ }
+ grammarID = 1844;
+ } else if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 1844:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}Parameter), END_ELEMENT] */
+ if (iso2ParameterSetType_Parameter_currArrayIndex < iso2ParameterSetType->Parameter.arrayLen ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ if(errn == 0) {
+ errn = encode_iso2ParameterType(stream, &iso2ParameterSetType->Parameter.array [iso2ParameterSetType_Parameter_currArrayIndex++]);
+ }
+ grammarID = 1845;
+ } else if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 1845:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}Parameter), END_ELEMENT] */
+ if (iso2ParameterSetType_Parameter_currArrayIndex < iso2ParameterSetType->Parameter.arrayLen ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ if(errn == 0) {
+ errn = encode_iso2ParameterType(stream, &iso2ParameterSetType->Parameter.array [iso2ParameterSetType_Parameter_currArrayIndex++]);
+ }
+ grammarID = 1846;
+ } else if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 1846:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}Parameter), END_ELEMENT] */
+ if (iso2ParameterSetType_Parameter_currArrayIndex < iso2ParameterSetType->Parameter.arrayLen ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ if(errn == 0) {
+ errn = encode_iso2ParameterType(stream, &iso2ParameterSetType->Parameter.array [iso2ParameterSetType_Parameter_currArrayIndex++]);
+ }
+ grammarID = 3;
+ } else if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 3:
+ /* Element[END_ELEMENT] */
+ if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 1, 0);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_GRAMMAR_ID;
+ break;
+ }
+ if(errn) {
+ done = 1;
+ }
+ }
+ return errn;
+}
+
+/* Complex type name='http://www.w3.org/2000/09/xmldsig#,SPKIDataType', base type name='anyType', content type='ELEMENT', isAbstract='false', hasTypeId='false', final='0', block='0', particle='("http://www.w3.org/2000/09/xmldsig#":SPKISexp,(WC[##other:"http://www.w3.org/2000/09/xmldsig#"]){0-1}){1-UNBOUNDED}', derivedBy='RESTRICTION'. */
+static int encode_iso2SPKIDataType(bitstream_t* stream, struct iso2SPKIDataType* iso2SPKIDataType) {
+ int grammarID = 1847;
+ int done = 0;
+ int wcDone = 0;
+
+ unsigned int iso2SPKIDataType_SPKISexp_currArrayIndex = 0;
+
+ while(!done) {
+ switch(grammarID) {
+ case 1847:
+ /* FirstStartTag[START_ELEMENT({http://www.w3.org/2000/09/xmldsig#}SPKISexp)] */
+ if (iso2SPKIDataType_SPKISexp_currArrayIndex < iso2SPKIDataType->SPKISexp.arrayLen ) {
+ errn = encodeNBitUnsignedInteger(stream, 1, 0);
+ if(errn == 0) {
+ /* First(xsi:type)StartTag[CHARACTERS[BINARY_BASE64]] */
+ errn = encodeNBitUnsignedInteger(stream, 1, 0);
+ if(errn == 0) {
+ errn = encodeUnsignedInteger16(stream, (uint16_t)(iso2SPKIDataType->SPKISexp.array[iso2SPKIDataType_SPKISexp_currArrayIndex].bytesLen));
+ if (errn == 0) {
+ errn = encodeBytes(stream, iso2SPKIDataType->SPKISexp.array[iso2SPKIDataType_SPKISexp_currArrayIndex].bytes, iso2SPKIDataType->SPKISexp.array[iso2SPKIDataType_SPKISexp_currArrayIndex].bytesLen);
+ iso2SPKIDataType_SPKISexp_currArrayIndex++;
+ }
+ /* valid EE */
+ errn = encodeNBitUnsignedInteger(stream, 1, 0);
+ }
+ }
+ grammarID = 1848;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 1848:
+ /* Element[START_ELEMENT({http://www.w3.org/2000/09/xmldsig#}SPKISexp), START_ELEMENT_GENERIC, END_ELEMENT] */
+ if (iso2SPKIDataType_SPKISexp_currArrayIndex < iso2SPKIDataType->SPKISexp.arrayLen ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ if(errn == 0) {
+ /* First(xsi:type)StartTag[CHARACTERS[BINARY_BASE64]] */
+ errn = encodeNBitUnsignedInteger(stream, 1, 0);
+ if(errn == 0) {
+ errn = encodeUnsignedInteger16(stream, (uint16_t)(iso2SPKIDataType->SPKISexp.array[iso2SPKIDataType_SPKISexp_currArrayIndex].bytesLen));
+ if (errn == 0) {
+ errn = encodeBytes(stream, iso2SPKIDataType->SPKISexp.array[iso2SPKIDataType_SPKISexp_currArrayIndex].bytes, iso2SPKIDataType->SPKISexp.array[iso2SPKIDataType_SPKISexp_currArrayIndex].bytesLen);
+ iso2SPKIDataType_SPKISexp_currArrayIndex++;
+ }
+ /* valid EE */
+ errn = encodeNBitUnsignedInteger(stream, 1, 0);
+ }
+ }
+ grammarID = 1848;
+ } else if (1==0) {
+ errn = EXI_UNSUPPORTED_EVENT_CODE_CHARACTERISTICS;
+ grammarID = 1849;
+ } else if ( iso2SPKIDataType->ANY_isUsed == 0u || wcDone ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 2);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 1849:
+ /* Element[START_ELEMENT({http://www.w3.org/2000/09/xmldsig#}SPKISexp), END_ELEMENT] */
+ if (iso2SPKIDataType_SPKISexp_currArrayIndex < iso2SPKIDataType->SPKISexp.arrayLen ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ if(errn == 0) {
+ /* First(xsi:type)StartTag[CHARACTERS[BINARY_BASE64]] */
+ errn = encodeNBitUnsignedInteger(stream, 1, 0);
+ if(errn == 0) {
+ errn = encodeUnsignedInteger16(stream, (uint16_t)(iso2SPKIDataType->SPKISexp.array[iso2SPKIDataType_SPKISexp_currArrayIndex].bytesLen));
+ if (errn == 0) {
+ errn = encodeBytes(stream, iso2SPKIDataType->SPKISexp.array[iso2SPKIDataType_SPKISexp_currArrayIndex].bytes, iso2SPKIDataType->SPKISexp.array[iso2SPKIDataType_SPKISexp_currArrayIndex].bytesLen);
+ iso2SPKIDataType_SPKISexp_currArrayIndex++;
+ }
+ /* valid EE */
+ errn = encodeNBitUnsignedInteger(stream, 1, 0);
+ }
+ }
+ grammarID = 1848;
+ } else if ( iso2SPKIDataType->ANY_isUsed == 0u || wcDone ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } 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:2016:MsgBody,PaymentDetailsResType', base type name='V2GResponseType', content type='ELEMENT', isAbstract='false', hasTypeId='false', final='0', block='0', particle='(("urn:iso:15118:2:2016:MsgBody":ResponseCode,"urn:iso:15118:2:2016:MsgBody":EVSEStatus{0-1}),("urn:iso:15118:2:2016:MsgBody":GenChallenge,"urn:iso:15118:2:2016:MsgBody":EVSETimeStamp))', derivedBy='EXTENSION'. */
+static int encode_iso2PaymentDetailsResType(bitstream_t* stream, struct iso2PaymentDetailsResType* iso2PaymentDetailsResType) {
+ int grammarID = 1850;
+ int done = 0;
+
+
+ while(!done) {
+ switch(grammarID) {
+ case 1850:
+ /* FirstStartTag[START_ELEMENT({urn:iso:15118:2:2016:MsgBody}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, 5, iso2PaymentDetailsResType->ResponseCode);
+ /* valid EE */
+ errn = encodeNBitUnsignedInteger(stream, 1, 0);
+ }
+ }
+ grammarID = 1851;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 1851:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgBody}EVSEStatus), START_ELEMENT({urn:iso:15118:2:2016:MsgBody}GenChallenge)] */
+ if ( iso2PaymentDetailsResType->EVSEStatus_isUsed == 1u ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ if(errn == 0) {
+ errn = encode_iso2EVSEStatusType(stream, &iso2PaymentDetailsResType->EVSEStatus );
+ }
+ grammarID = 1852;
+ } else if ( 1 == 1 ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ /* FirstStartTag[CHARACTERS[BINARY_BASE64]] */
+ errn = encodeNBitUnsignedInteger(stream, 1, 0);
+ if(errn == 0) {
+ errn = encodeUnsignedInteger16(stream, (uint16_t)(iso2PaymentDetailsResType->GenChallenge.bytesLen));
+ if (errn == 0) {
+ errn = encodeBytes(stream, iso2PaymentDetailsResType->GenChallenge.bytes, iso2PaymentDetailsResType->GenChallenge.bytesLen);
+ }
+ /* valid EE */
+ errn = encodeNBitUnsignedInteger(stream, 1, 0);
+ }
+ }
+ grammarID = 1853;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 1852:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgBody}GenChallenge)] */
+ if ( 1 == 1 ) {
+ errn = encodeNBitUnsignedInteger(stream, 1, 0);
+ if(errn == 0) {
+ /* FirstStartTag[CHARACTERS[BINARY_BASE64]] */
+ errn = encodeNBitUnsignedInteger(stream, 1, 0);
+ if(errn == 0) {
+ errn = encodeUnsignedInteger16(stream, (uint16_t)(iso2PaymentDetailsResType->GenChallenge.bytesLen));
+ if (errn == 0) {
+ errn = encodeBytes(stream, iso2PaymentDetailsResType->GenChallenge.bytes, iso2PaymentDetailsResType->GenChallenge.bytesLen);
+ }
+ /* valid EE */
+ errn = encodeNBitUnsignedInteger(stream, 1, 0);
+ }
+ }
+ grammarID = 1853;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 1853:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgBody}EVSETimeStamp)] */
+ if ( 1 == 1 ) {
+ errn = encodeNBitUnsignedInteger(stream, 1, 0);
+ if(errn == 0) {
+ /* First(xsi:type)StartTag[CHARACTERS[INTEGER]] */
+ errn = encodeNBitUnsignedInteger(stream, 1, 0);
+ if(errn == 0) {
+ errn = encodeInteger64(stream, iso2PaymentDetailsResType->EVSETimeStamp);
+ /* valid EE */
+ errn = encodeNBitUnsignedInteger(stream, 1, 0);
+ }
+ }
+ grammarID = 3;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 3:
+ /* Element[END_ELEMENT] */
+ if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 1, 0);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_GRAMMAR_ID;
+ break;
+ }
+ if(errn) {
+ done = 1;
+ }
+ }
+ return errn;
+}
+
+/* Complex type name='http://www.w3.org/2000/09/xmldsig#,SignatureMethodType', base type name='anyType', content type='MIXED', isAbstract='false', hasTypeId='false', final='0', block='0', particle='("http://www.w3.org/2000/09/xmldsig#":HMACOutputLength{0-1},(WC[##other:"http://www.w3.org/2000/09/xmldsig#"]){0-UNBOUNDED})', derivedBy='RESTRICTION'. */
+static int encode_iso2SignatureMethodType(bitstream_t* stream, struct iso2SignatureMethodType* iso2SignatureMethodType) {
+ int grammarID = 1854;
+ int done = 0;
+ int wcDone = 0;
+
+
+ while(!done) {
+ switch(grammarID) {
+ case 1854:
+ /* FirstStartTag[ATTRIBUTE[STRING](Algorithm)] */
+ if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 1, 0);
+ if(errn == 0) {
+ /* encode string as string table miss (+2 len)*/
+ errn = encodeUnsignedInteger16(stream, (uint16_t)(iso2SignatureMethodType->Algorithm.charactersLen + 2));
+ if (errn == 0) {
+ errn = encodeCharacters(stream, iso2SignatureMethodType->Algorithm.characters, iso2SignatureMethodType->Algorithm.charactersLen);
+ }
+ }
+ grammarID = 1855;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 1855:
+ /* StartTag[START_ELEMENT({http://www.w3.org/2000/09/xmldsig#}HMACOutputLength), START_ELEMENT_GENERIC, END_ELEMENT, CHARACTERS_GENERIC[STRING]] */
+ if ( iso2SignatureMethodType->HMACOutputLength_isUsed == 1u ) {
+ errn = encodeNBitUnsignedInteger(stream, 3, 0);
+ if(errn == 0) {
+ /* FirstStartTag[CHARACTERS[INTEGER]] */
+ errn = encodeNBitUnsignedInteger(stream, 1, 0);
+ if(errn == 0) {
+ errn = encodeInteger64(stream, iso2SignatureMethodType->HMACOutputLength);
+ /* valid EE */
+ errn = encodeNBitUnsignedInteger(stream, 1, 0);
+ }
+ }
+ grammarID = 685;
+ } else if (1==0) {
+ errn = EXI_UNSUPPORTED_EVENT_CODE_CHARACTERISTICS;
+ grammarID = 685;
+ } else if ( iso2SignatureMethodType->ANY_isUsed == 0u || wcDone ) {
+ errn = encodeNBitUnsignedInteger(stream, 3, 2);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else if ( iso2SignatureMethodType->ANY_isUsed == 1u ) {
+ errn = encodeNBitUnsignedInteger(stream, 3, 3);
+ if(errn == 0) {
+ /* encode string as string table miss (+2 len)*/
+ errn = encodeUnsignedInteger16(stream, (uint16_t)(iso2SignatureMethodType->ANY.charactersLen + 2));
+ if (errn == 0) {
+ errn = encodeCharacters(stream, iso2SignatureMethodType->ANY.characters, iso2SignatureMethodType->ANY.charactersLen);
+ }
+ }
+ wcDone = 1;
+ grammarID = 1856;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 685:
+ /* Element[START_ELEMENT_GENERIC, END_ELEMENT, CHARACTERS_GENERIC[STRING]] */
+ if (1==0) {
+ errn = EXI_UNSUPPORTED_EVENT_CODE_CHARACTERISTICS;
+ grammarID = 685;
+ } else if ( iso2SignatureMethodType->ANY_isUsed == 0u || wcDone ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else if ( iso2SignatureMethodType->ANY_isUsed == 1u ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 2);
+ if(errn == 0) {
+ /* encode string as string table miss (+2 len)*/
+ errn = encodeUnsignedInteger16(stream, (uint16_t)(iso2SignatureMethodType->ANY.charactersLen + 2));
+ if (errn == 0) {
+ errn = encodeCharacters(stream, iso2SignatureMethodType->ANY.characters, iso2SignatureMethodType->ANY.charactersLen);
+ }
+ }
+ wcDone = 1;
+ grammarID = 685;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 1856:
+ /* Element[START_ELEMENT({http://www.w3.org/2000/09/xmldsig#}HMACOutputLength), START_ELEMENT_GENERIC, END_ELEMENT, CHARACTERS_GENERIC[STRING]] */
+ if ( iso2SignatureMethodType->HMACOutputLength_isUsed == 1u ) {
+ errn = encodeNBitUnsignedInteger(stream, 3, 0);
+ if(errn == 0) {
+ /* FirstStartTag[CHARACTERS[INTEGER]] */
+ errn = encodeNBitUnsignedInteger(stream, 1, 0);
+ if(errn == 0) {
+ errn = encodeInteger64(stream, iso2SignatureMethodType->HMACOutputLength);
+ /* valid EE */
+ errn = encodeNBitUnsignedInteger(stream, 1, 0);
+ }
+ }
+ grammarID = 685;
+ } else if (1==0) {
+ errn = EXI_UNSUPPORTED_EVENT_CODE_CHARACTERISTICS;
+ grammarID = 685;
+ } else if ( iso2SignatureMethodType->ANY_isUsed == 0u || wcDone ) {
+ errn = encodeNBitUnsignedInteger(stream, 3, 2);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else if ( iso2SignatureMethodType->ANY_isUsed == 1u ) {
+ errn = encodeNBitUnsignedInteger(stream, 3, 3);
+ if(errn == 0) {
+ /* encode string as string table miss (+2 len)*/
+ errn = encodeUnsignedInteger16(stream, (uint16_t)(iso2SignatureMethodType->ANY.charactersLen + 2));
+ if (errn == 0) {
+ errn = encodeCharacters(stream, iso2SignatureMethodType->ANY.characters, iso2SignatureMethodType->ANY.charactersLen);
+ }
+ }
+ wcDone = 1;
+ grammarID = 1856;
+ } 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:2016:MsgBody,AC_BidirectionalControlResType', base type name='V2GResponseType', content type='ELEMENT', isAbstract='false', hasTypeId='false', final='0', block='0', particle='(("urn:iso:15118:2:2016:MsgBody":ResponseCode,"urn:iso:15118:2:2016:MsgBody":EVSEStatus{0-1}),("urn:iso:15118:2:2016:MsgBody":EVSEProcessing,"urn:iso:15118:2:2016:MsgBody":EVSETargetPower,"urn:iso:15118:2:2016:MsgBody":EVSETargetReactivePower,"urn:iso:15118:2:2016:MsgBody":EVSEID,"urn:iso:15118:2:2016:MsgBody":SAScheduleTupleID{0-1},"urn:iso:15118:2:2016:MsgBody":MeterInfo{0-1},"urn:iso:15118:2:2016:MsgBody":ReceiptRequired{0-1}))', derivedBy='EXTENSION'. */
+static int encode_iso2AC_BidirectionalControlResType(bitstream_t* stream, struct iso2AC_BidirectionalControlResType* iso2AC_BidirectionalControlResType) {
+ int grammarID = 1857;
+ int done = 0;
+
+
+ while(!done) {
+ switch(grammarID) {
+ case 1857:
+ /* FirstStartTag[START_ELEMENT({urn:iso:15118:2:2016:MsgBody}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, 5, iso2AC_BidirectionalControlResType->ResponseCode);
+ /* valid EE */
+ errn = encodeNBitUnsignedInteger(stream, 1, 0);
+ }
+ }
+ grammarID = 1858;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 1858:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgBody}EVSEStatus), START_ELEMENT({urn:iso:15118:2:2016:MsgBody}EVSEProcessing)] */
+ if ( iso2AC_BidirectionalControlResType->EVSEStatus_isUsed == 1u ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ if(errn == 0) {
+ errn = encode_iso2EVSEStatusType(stream, &iso2AC_BidirectionalControlResType->EVSEStatus );
+ }
+ grammarID = 1859;
+ } else if ( 1 == 1 ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ /* FirstStartTag[CHARACTERS[ENUMERATION]] */
+ errn = encodeNBitUnsignedInteger(stream, 1, 0);
+ if(errn == 0) {
+ errn = encodeNBitUnsignedInteger(stream, 2, iso2AC_BidirectionalControlResType->EVSEProcessing);
+ /* valid EE */
+ errn = encodeNBitUnsignedInteger(stream, 1, 0);
+ }
+ }
+ grammarID = 1860;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 1859:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgBody}EVSEProcessing)] */
+ 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, iso2AC_BidirectionalControlResType->EVSEProcessing);
+ /* valid EE */
+ errn = encodeNBitUnsignedInteger(stream, 1, 0);
+ }
+ }
+ grammarID = 1860;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 1860:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgBody}EVSETargetPower)] */
+ if ( 1 == 1 ) {
+ errn = encodeNBitUnsignedInteger(stream, 1, 0);
+ if(errn == 0) {
+ errn = encode_iso2PhysicalValueType(stream, &iso2AC_BidirectionalControlResType->EVSETargetPower );
+ }
+ grammarID = 1861;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 1861:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgBody}EVSETargetReactivePower)] */
+ if ( 1 == 1 ) {
+ errn = encodeNBitUnsignedInteger(stream, 1, 0);
+ if(errn == 0) {
+ errn = encode_iso2PhysicalValueType(stream, &iso2AC_BidirectionalControlResType->EVSETargetReactivePower );
+ }
+ grammarID = 27;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 27:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgBody}EVSEID)] */
+ if ( 1 == 1 ) {
+ errn = encodeNBitUnsignedInteger(stream, 1, 0);
+ if(errn == 0) {
+ /* FirstStartTag[CHARACTERS[STRING]] */
+ errn = encodeNBitUnsignedInteger(stream, 1, 0);
+ if(errn == 0) {
+ /* encode string as string table miss (+2 len)*/
+ errn = encodeUnsignedInteger16(stream, (uint16_t)(iso2AC_BidirectionalControlResType->EVSEID.charactersLen + 2));
+ if (errn == 0) {
+ errn = encodeCharacters(stream, iso2AC_BidirectionalControlResType->EVSEID.characters, iso2AC_BidirectionalControlResType->EVSEID.charactersLen);
+ }
+ /* valid EE */
+ errn = encodeNBitUnsignedInteger(stream, 1, 0);
+ }
+ }
+ grammarID = 28;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 28:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgBody}SAScheduleTupleID), START_ELEMENT({urn:iso:15118:2:2016:MsgBody}MeterInfo), START_ELEMENT({urn:iso:15118:2:2016:MsgBody}ReceiptRequired), END_ELEMENT] */
+ if ( iso2AC_BidirectionalControlResType->SAScheduleTupleID_isUsed == 1u ) {
+ errn = encodeNBitUnsignedInteger(stream, 3, 0);
+ if(errn == 0) {
+ /* FirstStartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
+ errn = encodeNBitUnsignedInteger(stream, 1, 0);
+ if(errn == 0) {
+ errn = encodeNBitUnsignedInteger(stream, 8, (uint32_t)(iso2AC_BidirectionalControlResType->SAScheduleTupleID - 1));
+ /* valid EE */
+ errn = encodeNBitUnsignedInteger(stream, 1, 0);
+ }
+ }
+ grammarID = 29;
+ } else if ( iso2AC_BidirectionalControlResType->MeterInfo_isUsed == 1u ) {
+ errn = encodeNBitUnsignedInteger(stream, 3, 1);
+ if(errn == 0) {
+ errn = encode_iso2MeterInfoType(stream, &iso2AC_BidirectionalControlResType->MeterInfo );
+ }
+ grammarID = 30;
+ } else if ( iso2AC_BidirectionalControlResType->ReceiptRequired_isUsed == 1u ) {
+ errn = encodeNBitUnsignedInteger(stream, 3, 2);
+ if(errn == 0) {
+ /* FirstStartTag[CHARACTERS[BOOLEAN]] */
+ errn = encodeNBitUnsignedInteger(stream, 1, 0);
+ if(errn == 0) {
+ errn = encodeBoolean(stream, iso2AC_BidirectionalControlResType->ReceiptRequired);
+ /* valid EE */
+ errn = encodeNBitUnsignedInteger(stream, 1, 0);
+ }
+ }
+ grammarID = 3;
+ } else if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 3, 3);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 29:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgBody}MeterInfo), START_ELEMENT({urn:iso:15118:2:2016:MsgBody}ReceiptRequired), END_ELEMENT] */
+ if ( iso2AC_BidirectionalControlResType->MeterInfo_isUsed == 1u ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ if(errn == 0) {
+ errn = encode_iso2MeterInfoType(stream, &iso2AC_BidirectionalControlResType->MeterInfo );
+ }
+ grammarID = 30;
+ } else if ( iso2AC_BidirectionalControlResType->ReceiptRequired_isUsed == 1u ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ /* FirstStartTag[CHARACTERS[BOOLEAN]] */
+ errn = encodeNBitUnsignedInteger(stream, 1, 0);
+ if(errn == 0) {
+ errn = encodeBoolean(stream, iso2AC_BidirectionalControlResType->ReceiptRequired);
+ /* valid EE */
+ errn = encodeNBitUnsignedInteger(stream, 1, 0);
+ }
+ }
+ grammarID = 3;
+ } else if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 2);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 30:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgBody}ReceiptRequired), END_ELEMENT] */
+ if ( iso2AC_BidirectionalControlResType->ReceiptRequired_isUsed == 1u ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ if(errn == 0) {
+ /* FirstStartTag[CHARACTERS[BOOLEAN]] */
+ errn = encodeNBitUnsignedInteger(stream, 1, 0);
+ if(errn == 0) {
+ errn = encodeBoolean(stream, iso2AC_BidirectionalControlResType->ReceiptRequired);
+ /* valid EE */
+ errn = encodeNBitUnsignedInteger(stream, 1, 0);
+ }
+ }
+ grammarID = 3;
+ } else if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 3:
+ /* Element[END_ELEMENT] */
+ if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 1, 0);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } 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:2016:MsgBody,VehicleCheckOutReqType', base type name='BodyBaseType', content type='ELEMENT', isAbstract='false', hasTypeId='false', final='0', block='0', particle='("urn:iso:15118:2:2016:MsgBody":EVCheckOutStatus,"urn:iso:15118:2:2016:MsgBody":CheckOutTime)', derivedBy='EXTENSION'. */
+static int encode_iso2VehicleCheckOutReqType(bitstream_t* stream, struct iso2VehicleCheckOutReqType* iso2VehicleCheckOutReqType) {
+ int grammarID = 1862;
+ int done = 0;
+
+
+ while(!done) {
+ switch(grammarID) {
+ case 1862:
+ /* FirstStartTag[START_ELEMENT({urn:iso:15118:2:2016:MsgBody}EVCheckOutStatus)] */
+ 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, iso2VehicleCheckOutReqType->EVCheckOutStatus);
+ /* valid EE */
+ errn = encodeNBitUnsignedInteger(stream, 1, 0);
+ }
+ }
+ grammarID = 1863;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 1863:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgBody}CheckOutTime)] */
+ if ( 1 == 1 ) {
+ errn = encodeNBitUnsignedInteger(stream, 1, 0);
+ if(errn == 0) {
+ /* First(xsi:type)StartTag[CHARACTERS[UNSIGNED_INTEGER]] */
+ errn = encodeNBitUnsignedInteger(stream, 1, 0);
+ if(errn == 0) {
+ errn = encodeUnsignedInteger64(stream, iso2VehicleCheckOutReqType->CheckOutTime);
+ /* valid EE */
+ errn = encodeNBitUnsignedInteger(stream, 1, 0);
+ }
+ }
+ grammarID = 3;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 3:
+ /* Element[END_ELEMENT] */
+ if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 1, 0);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } 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:2016:MsgBody,WeldingDetectionReqType', base type name='BodyBaseType', content type='EMPTY', isAbstract='false', hasTypeId='false', final='0', block='0', derivedBy='EXTENSION'. */
+static int encode_iso2WeldingDetectionReqType(bitstream_t* stream, struct iso2WeldingDetectionReqType* iso2WeldingDetectionReqType) {
+ int grammarID = 674;
+ int done = 0;
+
+
+ while(!done) {
+ switch(grammarID) {
+ case 674:
+ /* FirstStartTag[END_ELEMENT] */
+ if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 1, 0);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } 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:2016:MsgBody,AlignmentCheckResType', base type name='V2GResponseType', content type='ELEMENT', isAbstract='false', hasTypeId='false', final='0', block='0', particle='(("urn:iso:15118:2:2016:MsgBody":ResponseCode,"urn:iso:15118:2:2016:MsgBody":EVSEStatus{0-1}),("urn:iso:15118:2:2016:MsgBody":EVSEProcessing,"urn:iso:15118:2:2016:MsgBody":AlignmentCheckParameters{0-1}))', derivedBy='EXTENSION'. */
+static int encode_iso2AlignmentCheckResType(bitstream_t* stream, struct iso2AlignmentCheckResType* iso2AlignmentCheckResType) {
+ int grammarID = 1864;
+ int done = 0;
+
+
+ while(!done) {
+ switch(grammarID) {
+ case 1864:
+ /* FirstStartTag[START_ELEMENT({urn:iso:15118:2:2016:MsgBody}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, 5, iso2AlignmentCheckResType->ResponseCode);
+ /* valid EE */
+ errn = encodeNBitUnsignedInteger(stream, 1, 0);
+ }
+ }
+ grammarID = 1865;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 1865:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgBody}EVSEStatus), START_ELEMENT({urn:iso:15118:2:2016:MsgBody}EVSEProcessing)] */
+ if ( iso2AlignmentCheckResType->EVSEStatus_isUsed == 1u ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ if(errn == 0) {
+ errn = encode_iso2EVSEStatusType(stream, &iso2AlignmentCheckResType->EVSEStatus );
+ }
+ grammarID = 1866;
+ } else if ( 1 == 1 ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ /* FirstStartTag[CHARACTERS[ENUMERATION]] */
+ errn = encodeNBitUnsignedInteger(stream, 1, 0);
+ if(errn == 0) {
+ errn = encodeNBitUnsignedInteger(stream, 2, iso2AlignmentCheckResType->EVSEProcessing);
+ /* valid EE */
+ errn = encodeNBitUnsignedInteger(stream, 1, 0);
+ }
+ }
+ grammarID = 676;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 1866:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgBody}EVSEProcessing)] */
+ 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, iso2AlignmentCheckResType->EVSEProcessing);
+ /* valid EE */
+ errn = encodeNBitUnsignedInteger(stream, 1, 0);
+ }
+ }
+ grammarID = 676;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 676:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgBody}AlignmentCheckParameters), END_ELEMENT] */
+ if ( iso2AlignmentCheckResType->AlignmentCheckParameters_isUsed == 1u ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ if(errn == 0) {
+ errn = encode_iso2ParameterSetType(stream, &iso2AlignmentCheckResType->AlignmentCheckParameters );
+ }
+ grammarID = 3;
+ } else if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 3:
+ /* Element[END_ELEMENT] */
+ if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 1, 0);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } 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:2016:MsgBody,PowerDemandReqType', base type name='ChargeLoopReqType', content type='ELEMENT', isAbstract='false', hasTypeId='false', final='0', block='0', particle='(("urn:iso:15118:2:2016:MsgBody":EVTargetEnergyRequest,"urn:iso:15118:2:2016:MsgBody":EVMaximumEnergyRequest{0-1},"urn:iso:15118:2:2016:MsgBody":EVMinimumEnergyRequest{0-1},"urn:iso:15118:2:2016:MsgBody":DisplayParameters{0-1}),("urn:iso:15118:2:2016:MsgBody":EVTargetPower,"urn:iso:15118:2:2016:MsgBody":EVInputPower,"urn:iso:15118:2:2016:MsgBody":PowerDemandParameters{0-1}))', derivedBy='EXTENSION'. */
+static int encode_iso2PowerDemandReqType(bitstream_t* stream, struct iso2PowerDemandReqType* iso2PowerDemandReqType) {
+ int grammarID = 1867;
+ int done = 0;
+
+
+ while(!done) {
+ switch(grammarID) {
+ case 1867:
+ /* FirstStartTag[START_ELEMENT({urn:iso:15118:2:2016:MsgBody}EVTargetEnergyRequest)] */
+ if ( 1 == 1 ) {
+ errn = encodeNBitUnsignedInteger(stream, 1, 0);
+ if(errn == 0) {
+ errn = encode_iso2PhysicalValueType(stream, &iso2PowerDemandReqType->EVTargetEnergyRequest );
+ }
+ grammarID = 1868;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 1868:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgBody}EVMaximumEnergyRequest), START_ELEMENT({urn:iso:15118:2:2016:MsgBody}EVMinimumEnergyRequest), START_ELEMENT({urn:iso:15118:2:2016:MsgBody}DisplayParameters), START_ELEMENT({urn:iso:15118:2:2016:MsgBody}EVTargetPower)] */
+ if ( iso2PowerDemandReqType->EVMaximumEnergyRequest_isUsed == 1u ) {
+ errn = encodeNBitUnsignedInteger(stream, 3, 0);
+ if(errn == 0) {
+ errn = encode_iso2PhysicalValueType(stream, &iso2PowerDemandReqType->EVMaximumEnergyRequest );
+ }
+ grammarID = 1869;
+ } else if ( iso2PowerDemandReqType->EVMinimumEnergyRequest_isUsed == 1u ) {
+ errn = encodeNBitUnsignedInteger(stream, 3, 1);
+ if(errn == 0) {
+ errn = encode_iso2PhysicalValueType(stream, &iso2PowerDemandReqType->EVMinimumEnergyRequest );
+ }
+ grammarID = 1870;
+ } else if ( iso2PowerDemandReqType->DisplayParameters_isUsed == 1u ) {
+ errn = encodeNBitUnsignedInteger(stream, 3, 2);
+ if(errn == 0) {
+ errn = encode_iso2DisplayParametersType(stream, &iso2PowerDemandReqType->DisplayParameters );
+ }
+ grammarID = 1871;
+ } else if ( 1 == 1 ) {
+ errn = encodeNBitUnsignedInteger(stream, 3, 3);
+ if(errn == 0) {
+ errn = encode_iso2PhysicalValueType(stream, &iso2PowerDemandReqType->EVTargetPower );
+ }
+ grammarID = 1872;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 1869:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgBody}EVMinimumEnergyRequest), START_ELEMENT({urn:iso:15118:2:2016:MsgBody}DisplayParameters), START_ELEMENT({urn:iso:15118:2:2016:MsgBody}EVTargetPower)] */
+ if ( iso2PowerDemandReqType->EVMinimumEnergyRequest_isUsed == 1u ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ if(errn == 0) {
+ errn = encode_iso2PhysicalValueType(stream, &iso2PowerDemandReqType->EVMinimumEnergyRequest );
+ }
+ grammarID = 1870;
+ } else if ( iso2PowerDemandReqType->DisplayParameters_isUsed == 1u ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ errn = encode_iso2DisplayParametersType(stream, &iso2PowerDemandReqType->DisplayParameters );
+ }
+ grammarID = 1871;
+ } else if ( 1 == 1 ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 2);
+ if(errn == 0) {
+ errn = encode_iso2PhysicalValueType(stream, &iso2PowerDemandReqType->EVTargetPower );
+ }
+ grammarID = 1872;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 1870:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgBody}DisplayParameters), START_ELEMENT({urn:iso:15118:2:2016:MsgBody}EVTargetPower)] */
+ if ( iso2PowerDemandReqType->DisplayParameters_isUsed == 1u ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ if(errn == 0) {
+ errn = encode_iso2DisplayParametersType(stream, &iso2PowerDemandReqType->DisplayParameters );
+ }
+ grammarID = 1871;
+ } else if ( 1 == 1 ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ errn = encode_iso2PhysicalValueType(stream, &iso2PowerDemandReqType->EVTargetPower );
+ }
+ grammarID = 1872;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 1871:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgBody}EVTargetPower)] */
+ if ( 1 == 1 ) {
+ errn = encodeNBitUnsignedInteger(stream, 1, 0);
+ if(errn == 0) {
+ errn = encode_iso2PhysicalValueType(stream, &iso2PowerDemandReqType->EVTargetPower );
+ }
+ grammarID = 1872;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 1872:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgBody}EVInputPower)] */
+ if ( 1 == 1 ) {
+ errn = encodeNBitUnsignedInteger(stream, 1, 0);
+ if(errn == 0) {
+ errn = encode_iso2PhysicalValueType(stream, &iso2PowerDemandReqType->EVInputPower );
+ }
+ grammarID = 1873;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 1873:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgBody}PowerDemandParameters), END_ELEMENT] */
+ if ( iso2PowerDemandReqType->PowerDemandParameters_isUsed == 1u ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ if(errn == 0) {
+ errn = encode_iso2ParameterSetType(stream, &iso2PowerDemandReqType->PowerDemandParameters );
+ }
+ grammarID = 3;
+ } else if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 3:
+ /* Element[END_ELEMENT] */
+ if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 1, 0);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } 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:2016:MsgDataTypes,MinimumPMaxRequestType', base type name='anyType', content type='ELEMENT', isAbstract='false', hasTypeId='false', final='0', block='0', particle='("urn:iso:15118:2:2016:MsgDataTypes":MinimumPMaxScheduleEntry{1-3})', derivedBy='RESTRICTION'. */
+static int encode_iso2MinimumPMaxRequestType(bitstream_t* stream, struct iso2MinimumPMaxRequestType* iso2MinimumPMaxRequestType) {
+ int grammarID = 1874;
+ int done = 0;
+
+ unsigned int iso2MinimumPMaxRequestType_MinimumPMaxScheduleEntry_currArrayIndex = 0;
+
+ while(!done) {
+ switch(grammarID) {
+ case 1874:
+ /* FirstStartTag[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MinimumPMaxScheduleEntry)] */
+ if (iso2MinimumPMaxRequestType_MinimumPMaxScheduleEntry_currArrayIndex < iso2MinimumPMaxRequestType->MinimumPMaxScheduleEntry.arrayLen ) {
+ errn = encodeNBitUnsignedInteger(stream, 1, 0);
+ if(errn == 0) {
+ errn = encode_iso2PMaxScheduleEntryType(stream, &iso2MinimumPMaxRequestType->MinimumPMaxScheduleEntry.array [iso2MinimumPMaxRequestType_MinimumPMaxScheduleEntry_currArrayIndex++]);
+ }
+ grammarID = 1875;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 1875:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MinimumPMaxScheduleEntry), END_ELEMENT] */
+ if (iso2MinimumPMaxRequestType_MinimumPMaxScheduleEntry_currArrayIndex < iso2MinimumPMaxRequestType->MinimumPMaxScheduleEntry.arrayLen ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ if(errn == 0) {
+ errn = encode_iso2PMaxScheduleEntryType(stream, &iso2MinimumPMaxRequestType->MinimumPMaxScheduleEntry.array [iso2MinimumPMaxRequestType_MinimumPMaxScheduleEntry_currArrayIndex++]);
+ }
+ grammarID = 1876;
+ } else if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 1876:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MinimumPMaxScheduleEntry), END_ELEMENT] */
+ if (iso2MinimumPMaxRequestType_MinimumPMaxScheduleEntry_currArrayIndex < iso2MinimumPMaxRequestType->MinimumPMaxScheduleEntry.arrayLen ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ if(errn == 0) {
+ errn = encode_iso2PMaxScheduleEntryType(stream, &iso2MinimumPMaxRequestType->MinimumPMaxScheduleEntry.array [iso2MinimumPMaxRequestType_MinimumPMaxScheduleEntry_currArrayIndex++]);
+ }
+ grammarID = 3;
+ } else if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 3:
+ /* Element[END_ELEMENT] */
+ if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 1, 0);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } 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:2016:MsgBody,DisconnectChargingDeviceResType', base type name='V2GResponseType', content type='ELEMENT', isAbstract='false', hasTypeId='false', final='0', block='0', particle='(("urn:iso:15118:2:2016:MsgBody":ResponseCode,"urn:iso:15118:2:2016:MsgBody":EVSEStatus{0-1}),("urn:iso:15118:2:2016:MsgBody":EVSEProcessing,"urn:iso:15118:2:2016:MsgBody":EVSEElectricalChargingDeviceStatus,"urn:iso:15118:2:2016:MsgBody":EVSEMechanicalChargingDeviceStatus))', derivedBy='EXTENSION'. */
+static int encode_iso2DisconnectChargingDeviceResType(bitstream_t* stream, struct iso2DisconnectChargingDeviceResType* iso2DisconnectChargingDeviceResType) {
+ int grammarID = 591;
+ int done = 0;
+
+
+ while(!done) {
+ switch(grammarID) {
+ case 591:
+ /* FirstStartTag[START_ELEMENT({urn:iso:15118:2:2016:MsgBody}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, 5, iso2DisconnectChargingDeviceResType->ResponseCode);
+ /* valid EE */
+ errn = encodeNBitUnsignedInteger(stream, 1, 0);
+ }
+ }
+ grammarID = 592;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 592:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgBody}EVSEStatus), START_ELEMENT({urn:iso:15118:2:2016:MsgBody}EVSEProcessing)] */
+ if ( iso2DisconnectChargingDeviceResType->EVSEStatus_isUsed == 1u ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ if(errn == 0) {
+ errn = encode_iso2EVSEStatusType(stream, &iso2DisconnectChargingDeviceResType->EVSEStatus );
+ }
+ grammarID = 593;
+ } else if ( 1 == 1 ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ /* FirstStartTag[CHARACTERS[ENUMERATION]] */
+ errn = encodeNBitUnsignedInteger(stream, 1, 0);
+ if(errn == 0) {
+ errn = encodeNBitUnsignedInteger(stream, 2, iso2DisconnectChargingDeviceResType->EVSEProcessing);
+ /* valid EE */
+ errn = encodeNBitUnsignedInteger(stream, 1, 0);
+ }
+ }
+ grammarID = 594;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 593:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgBody}EVSEProcessing)] */
+ 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, iso2DisconnectChargingDeviceResType->EVSEProcessing);
+ /* valid EE */
+ errn = encodeNBitUnsignedInteger(stream, 1, 0);
+ }
+ }
+ grammarID = 594;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 594:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgBody}EVSEElectricalChargingDeviceStatus)] */
+ 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, 1, iso2DisconnectChargingDeviceResType->EVSEElectricalChargingDeviceStatus);
+ /* valid EE */
+ errn = encodeNBitUnsignedInteger(stream, 1, 0);
+ }
+ }
+ grammarID = 595;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 595:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgBody}EVSEMechanicalChargingDeviceStatus)] */
+ 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, iso2DisconnectChargingDeviceResType->EVSEMechanicalChargingDeviceStatus);
+ /* valid EE */
+ errn = encodeNBitUnsignedInteger(stream, 1, 0);
+ }
+ }
+ grammarID = 3;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 3:
+ /* Element[END_ELEMENT] */
+ if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 1, 0);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
default:
errn = EXI_ERROR_UNKOWN_GRAMMAR_ID;
break;
@@ -67747,14 +41323,14 @@ static int encode_v2gWPT_EVChargeParameterType(bitstream_t* stream, struct v2gWP
}
/* Complex type name='urn:iso:15118:2:2016:MsgBody,SessionSetupReqType', base type name='BodyBaseType', content type='ELEMENT', isAbstract='false', hasTypeId='false', final='0', block='0', particle='("urn:iso:15118:2:2016:MsgBody":EVCCID)', derivedBy='EXTENSION'. */
-static int encode_v2gSessionSetupReqType(bitstream_t* stream, struct v2gSessionSetupReqType* v2gSessionSetupReqType) {
- int grammarID = 2860;
+static int encode_iso2SessionSetupReqType(bitstream_t* stream, struct iso2SessionSetupReqType* iso2SessionSetupReqType) {
+ int grammarID = 1877;
int done = 0;
while(!done) {
switch(grammarID) {
- case 2860:
+ case 1877:
/* FirstStartTag[START_ELEMENT({urn:iso:15118:2:2016:MsgBody}EVCCID)] */
if ( 1 == 1 ) {
errn = encodeNBitUnsignedInteger(stream, 1, 0);
@@ -67762,31 +41338,3441 @@ static int encode_v2gSessionSetupReqType(bitstream_t* stream, struct v2gSessionS
/* FirstStartTag[CHARACTERS[BINARY_HEX]] */
errn = encodeNBitUnsignedInteger(stream, 1, 0);
if(errn == 0) {
- errn = encodeUnsignedInteger16(stream, (uint16_t)(v2gSessionSetupReqType->EVCCID.bytesLen));
+ errn = encodeUnsignedInteger16(stream, (uint16_t)(iso2SessionSetupReqType->EVCCID.bytesLen));
if (errn == 0) {
- errn = encodeBytes(stream, v2gSessionSetupReqType->EVCCID.bytes, v2gSessionSetupReqType->EVCCID.bytesLen);
+ errn = encodeBytes(stream, iso2SessionSetupReqType->EVCCID.bytes, iso2SessionSetupReqType->EVCCID.bytesLen);
}
/* valid EE */
errn = encodeNBitUnsignedInteger(stream, 1, 0);
}
}
- grammarID = 2;
+ grammarID = 3;
} else {
errn = EXI_ERROR_UNKOWN_EVENT;
}
break;
- case 2:
+ case 3:
/* Element[END_ELEMENT] */
if (1==1) {
errn = encodeNBitUnsignedInteger(stream, 1, 0);
if(errn == 0) {
done = 1;
}
+ grammarID = 4;
+ } 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:2016:MsgBody,PaymentDetailsReqType', base type name='BodyBaseType', content type='ELEMENT', isAbstract='false', hasTypeId='false', final='0', block='0', particle='("urn:iso:15118:2:2016:MsgBody":eMAID,"urn:iso:15118:2:2016:MsgBody":ContractSignatureCertChain)', derivedBy='EXTENSION'. */
+static int encode_iso2PaymentDetailsReqType(bitstream_t* stream, struct iso2PaymentDetailsReqType* iso2PaymentDetailsReqType) {
+ int grammarID = 1878;
+ int done = 0;
+
+
+ while(!done) {
+ switch(grammarID) {
+ case 1878:
+ /* FirstStartTag[START_ELEMENT({urn:iso:15118:2:2016:MsgBody}eMAID)] */
+ if ( 1 == 1 ) {
+ errn = encodeNBitUnsignedInteger(stream, 1, 0);
+ if(errn == 0) {
+ /* First(xsi:type)StartTag[CHARACTERS[STRING]] */
+ errn = encodeNBitUnsignedInteger(stream, 1, 0);
+ if(errn == 0) {
+ /* encode string as string table miss (+2 len)*/
+ errn = encodeUnsignedInteger16(stream, (uint16_t)(iso2PaymentDetailsReqType->eMAID.charactersLen + 2));
+ if (errn == 0) {
+ errn = encodeCharacters(stream, iso2PaymentDetailsReqType->eMAID.characters, iso2PaymentDetailsReqType->eMAID.charactersLen);
+ }
+ /* valid EE */
+ errn = encodeNBitUnsignedInteger(stream, 1, 0);
+ }
+ }
+ grammarID = 1879;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 1879:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgBody}ContractSignatureCertChain)] */
+ if ( 1 == 1 ) {
+ errn = encodeNBitUnsignedInteger(stream, 1, 0);
+ if(errn == 0) {
+ errn = encode_iso2CertificateChainType(stream, &iso2PaymentDetailsReqType->ContractSignatureCertChain );
+ }
grammarID = 3;
} else {
errn = EXI_ERROR_UNKOWN_EVENT;
}
break;
+ case 3:
+ /* Element[END_ELEMENT] */
+ if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 1, 0);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } 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:2016:MsgDataTypes,Generic_EVFinePositioningParametersType', base type name='EVFinePositioningParametersType', content type='ELEMENT', isAbstract='false', hasTypeId='false', final='0', block='0', particle='("urn:iso:15118:2:2016:MsgDataTypes":GenericParameters)', derivedBy='EXTENSION'. */
+static int encode_iso2Generic_EVFinePositioningParametersType(bitstream_t* stream, struct iso2Generic_EVFinePositioningParametersType* iso2Generic_EVFinePositioningParametersType) {
+ int grammarID = 1880;
+ int done = 0;
+
+
+ while(!done) {
+ switch(grammarID) {
+ case 1880:
+ /* FirstStartTag[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}GenericParameters)] */
+ if ( 1 == 1 ) {
+ errn = encodeNBitUnsignedInteger(stream, 1, 0);
+ if(errn == 0) {
+ errn = encode_iso2ParameterSetType(stream, &iso2Generic_EVFinePositioningParametersType->GenericParameters );
+ }
+ grammarID = 3;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 3:
+ /* Element[END_ELEMENT] */
+ if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 1, 0);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } 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:2016:MsgBody,ConnectChargingDeviceReqType', base type name='BodyBaseType', content type='ELEMENT', isAbstract='false', hasTypeId='false', final='0', block='0', particle='("urn:iso:15118:2:2016:MsgBody":EVElectricalChargingDeviceStatus,"urn:iso:15118:2:2016:MsgBody":EVMechanicalChargingDeviceStatus)', derivedBy='EXTENSION'. */
+static int encode_iso2ConnectChargingDeviceReqType(bitstream_t* stream, struct iso2ConnectChargingDeviceReqType* iso2ConnectChargingDeviceReqType) {
+ int grammarID = 1496;
+ int done = 0;
+
+
+ while(!done) {
+ switch(grammarID) {
+ case 1496:
+ /* FirstStartTag[START_ELEMENT({urn:iso:15118:2:2016:MsgBody}EVElectricalChargingDeviceStatus)] */
+ 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, 1, iso2ConnectChargingDeviceReqType->EVElectricalChargingDeviceStatus);
+ /* valid EE */
+ errn = encodeNBitUnsignedInteger(stream, 1, 0);
+ }
+ }
+ grammarID = 1497;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 1497:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgBody}EVMechanicalChargingDeviceStatus)] */
+ 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, iso2ConnectChargingDeviceReqType->EVMechanicalChargingDeviceStatus);
+ /* valid EE */
+ errn = encodeNBitUnsignedInteger(stream, 1, 0);
+ }
+ }
+ grammarID = 3;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 3:
+ /* Element[END_ELEMENT] */
+ if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 1, 0);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } 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:2016:MsgDataTypes,AC_EVSEChargeParameterType', base type name='EVSEEnergyTransferParameterType', content type='ELEMENT', isAbstract='false', hasTypeId='false', final='0', block='0', particle='("urn:iso:15118:2:2016:MsgDataTypes":EVSEMaximumChargeCurrent,"urn:iso:15118:2:2016:MsgDataTypes":EVSENominalVoltage,"urn:iso:15118:2:2016:MsgDataTypes":EVSENominalFrequency)', derivedBy='EXTENSION'. */
+static int encode_iso2AC_EVSEChargeParameterType(bitstream_t* stream, struct iso2AC_EVSEChargeParameterType* iso2AC_EVSEChargeParameterType) {
+ int grammarID = 1881;
+ int done = 0;
+
+
+ while(!done) {
+ switch(grammarID) {
+ case 1881:
+ /* FirstStartTag[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}EVSEMaximumChargeCurrent)] */
+ if ( 1 == 1 ) {
+ errn = encodeNBitUnsignedInteger(stream, 1, 0);
+ if(errn == 0) {
+ errn = encode_iso2PhysicalValueType(stream, &iso2AC_EVSEChargeParameterType->EVSEMaximumChargeCurrent );
+ }
+ grammarID = 1882;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 1882:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}EVSENominalVoltage)] */
+ if ( 1 == 1 ) {
+ errn = encodeNBitUnsignedInteger(stream, 1, 0);
+ if(errn == 0) {
+ errn = encode_iso2PhysicalValueType(stream, &iso2AC_EVSEChargeParameterType->EVSENominalVoltage );
+ }
+ grammarID = 58;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 58:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}EVSENominalFrequency)] */
+ if ( 1 == 1 ) {
+ errn = encodeNBitUnsignedInteger(stream, 1, 0);
+ if(errn == 0) {
+ errn = encode_iso2PhysicalValueType(stream, &iso2AC_EVSEChargeParameterType->EVSENominalFrequency );
+ }
+ grammarID = 3;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 3:
+ /* Element[END_ELEMENT] */
+ if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 1, 0);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } 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:2016:MsgDataTypes,SalesTariffEntryType', base type name='EntryType', content type='ELEMENT', isAbstract='false', hasTypeId='false', final='0', block='0', particle='(("urn:iso:15118:2:2016:MsgDataTypes":RelativeTimeInterval),("urn:iso:15118:2:2016:MsgDataTypes":EPriceLevel{0-1},"urn:iso:15118:2:2016:MsgDataTypes":ConsumptionCost{0-3}))', derivedBy='EXTENSION'. */
+static int encode_iso2SalesTariffEntryType(bitstream_t* stream, struct iso2SalesTariffEntryType* iso2SalesTariffEntryType) {
+ int grammarID = 1883;
+ int done = 0;
+
+ unsigned int iso2SalesTariffEntryType_ConsumptionCost_currArrayIndex = 0;
+
+ while(!done) {
+ switch(grammarID) {
+ case 1883:
+ /* FirstStartTag[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}RelativeTimeInterval)] */
+ if ( 1 == 1 ) {
+ errn = encodeNBitUnsignedInteger(stream, 1, 0);
+ if(errn == 0) {
+ errn = encode_iso2RelativeTimeIntervalType(stream, &iso2SalesTariffEntryType->RelativeTimeInterval );
+ }
+ grammarID = 1884;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 1884:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}EPriceLevel), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}ConsumptionCost), END_ELEMENT] */
+ if ( iso2SalesTariffEntryType->EPriceLevel_isUsed == 1u ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ if(errn == 0) {
+ /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
+ errn = encodeNBitUnsignedInteger(stream, 1, 0);
+ if(errn == 0) {
+ errn = encodeNBitUnsignedInteger(stream, 8, (uint32_t)(iso2SalesTariffEntryType->EPriceLevel - 0));
+ /* valid EE */
+ errn = encodeNBitUnsignedInteger(stream, 1, 0);
+ }
+ }
+ grammarID = 1885;
+ } else if (iso2SalesTariffEntryType_ConsumptionCost_currArrayIndex < iso2SalesTariffEntryType->ConsumptionCost.arrayLen ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ errn = encode_iso2ConsumptionCostType(stream, &iso2SalesTariffEntryType->ConsumptionCost.array [iso2SalesTariffEntryType_ConsumptionCost_currArrayIndex++]);
+ }
+ grammarID = 1886;
+ } else if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 2);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 1885:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}ConsumptionCost), END_ELEMENT] */
+ if (iso2SalesTariffEntryType_ConsumptionCost_currArrayIndex < iso2SalesTariffEntryType->ConsumptionCost.arrayLen ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ if(errn == 0) {
+ errn = encode_iso2ConsumptionCostType(stream, &iso2SalesTariffEntryType->ConsumptionCost.array [iso2SalesTariffEntryType_ConsumptionCost_currArrayIndex++]);
+ }
+ grammarID = 1886;
+ } else if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 1886:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}ConsumptionCost), END_ELEMENT] */
+ if (iso2SalesTariffEntryType_ConsumptionCost_currArrayIndex < iso2SalesTariffEntryType->ConsumptionCost.arrayLen ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ if(errn == 0) {
+ errn = encode_iso2ConsumptionCostType(stream, &iso2SalesTariffEntryType->ConsumptionCost.array [iso2SalesTariffEntryType_ConsumptionCost_currArrayIndex++]);
+ }
+ grammarID = 1887;
+ } else if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 1887:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}ConsumptionCost), END_ELEMENT] */
+ if (iso2SalesTariffEntryType_ConsumptionCost_currArrayIndex < iso2SalesTariffEntryType->ConsumptionCost.arrayLen ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ if(errn == 0) {
+ errn = encode_iso2ConsumptionCostType(stream, &iso2SalesTariffEntryType->ConsumptionCost.array [iso2SalesTariffEntryType_ConsumptionCost_currArrayIndex++]);
+ }
+ grammarID = 3;
+ } else if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 3:
+ /* Element[END_ELEMENT] */
+ if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 1, 0);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } 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:2016:MsgDataTypes,DC_EVSEBidirectionalParameterType', base type name='DC_EVSEChargeParameterType', content type='ELEMENT', isAbstract='false', hasTypeId='false', final='0', block='0', particle='(("urn:iso:15118:2:2016:MsgDataTypes":EVSEMaximumChargePower,"urn:iso:15118:2:2016:MsgDataTypes":EVSEMaximumChargeCurrent,"urn:iso:15118:2:2016:MsgDataTypes":EVSEMinimumChargeCurrent,"urn:iso:15118:2:2016:MsgDataTypes":EVSEMaximumVoltage,"urn:iso:15118:2:2016:MsgDataTypes":EVSEMinimumVoltage,"urn:iso:15118:2:2016:MsgDataTypes":EVSECurrentRegulationTolerance{0-1},"urn:iso:15118:2:2016:MsgDataTypes":EVSEPeakCurrentRipple,"urn:iso:15118:2:2016:MsgDataTypes":EVSEEnergyToBeDelivered{0-1}),("urn:iso:15118:2:2016:MsgDataTypes":EVSEMaximumDischargePower,"urn:iso:15118:2:2016:MsgDataTypes":EVSEMaximumDischargeCurrent,"urn:iso:15118:2:2016:MsgDataTypes":EVSEMinimumDischargeCurrent))', derivedBy='EXTENSION'. */
+static int encode_iso2DC_EVSEBidirectionalParameterType(bitstream_t* stream, struct iso2DC_EVSEBidirectionalParameterType* iso2DC_EVSEBidirectionalParameterType) {
+ int grammarID = 1888;
+ int done = 0;
+
+
+ while(!done) {
+ switch(grammarID) {
+ case 1888:
+ /* FirstStartTag[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}EVSEMaximumChargePower)] */
+ if ( 1 == 1 ) {
+ errn = encodeNBitUnsignedInteger(stream, 1, 0);
+ if(errn == 0) {
+ errn = encode_iso2PhysicalValueType(stream, &iso2DC_EVSEBidirectionalParameterType->EVSEMaximumChargePower );
+ }
+ grammarID = 1889;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 1889:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}EVSEMaximumChargeCurrent)] */
+ if ( 1 == 1 ) {
+ errn = encodeNBitUnsignedInteger(stream, 1, 0);
+ if(errn == 0) {
+ errn = encode_iso2PhysicalValueType(stream, &iso2DC_EVSEBidirectionalParameterType->EVSEMaximumChargeCurrent );
+ }
+ grammarID = 1890;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 1890:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}EVSEMinimumChargeCurrent)] */
+ if ( 1 == 1 ) {
+ errn = encodeNBitUnsignedInteger(stream, 1, 0);
+ if(errn == 0) {
+ errn = encode_iso2PhysicalValueType(stream, &iso2DC_EVSEBidirectionalParameterType->EVSEMinimumChargeCurrent );
+ }
+ grammarID = 1891;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 1891:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}EVSEMaximumVoltage)] */
+ if ( 1 == 1 ) {
+ errn = encodeNBitUnsignedInteger(stream, 1, 0);
+ if(errn == 0) {
+ errn = encode_iso2PhysicalValueType(stream, &iso2DC_EVSEBidirectionalParameterType->EVSEMaximumVoltage );
+ }
+ grammarID = 1892;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 1892:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}EVSEMinimumVoltage)] */
+ if ( 1 == 1 ) {
+ errn = encodeNBitUnsignedInteger(stream, 1, 0);
+ if(errn == 0) {
+ errn = encode_iso2PhysicalValueType(stream, &iso2DC_EVSEBidirectionalParameterType->EVSEMinimumVoltage );
+ }
+ grammarID = 1893;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 1893:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}EVSECurrentRegulationTolerance), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}EVSEPeakCurrentRipple)] */
+ if ( iso2DC_EVSEBidirectionalParameterType->EVSECurrentRegulationTolerance_isUsed == 1u ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ if(errn == 0) {
+ errn = encode_iso2PhysicalValueType(stream, &iso2DC_EVSEBidirectionalParameterType->EVSECurrentRegulationTolerance );
+ }
+ grammarID = 1894;
+ } else if ( 1 == 1 ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ errn = encode_iso2PhysicalValueType(stream, &iso2DC_EVSEBidirectionalParameterType->EVSEPeakCurrentRipple );
+ }
+ grammarID = 1895;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 1894:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}EVSEPeakCurrentRipple)] */
+ if ( 1 == 1 ) {
+ errn = encodeNBitUnsignedInteger(stream, 1, 0);
+ if(errn == 0) {
+ errn = encode_iso2PhysicalValueType(stream, &iso2DC_EVSEBidirectionalParameterType->EVSEPeakCurrentRipple );
+ }
+ grammarID = 1895;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 1895:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}EVSEEnergyToBeDelivered), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}EVSEMaximumDischargePower)] */
+ if ( iso2DC_EVSEBidirectionalParameterType->EVSEEnergyToBeDelivered_isUsed == 1u ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ if(errn == 0) {
+ errn = encode_iso2PhysicalValueType(stream, &iso2DC_EVSEBidirectionalParameterType->EVSEEnergyToBeDelivered );
+ }
+ grammarID = 1896;
+ } else if ( 1 == 1 ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ errn = encode_iso2PhysicalValueType(stream, &iso2DC_EVSEBidirectionalParameterType->EVSEMaximumDischargePower );
+ }
+ grammarID = 1897;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 1896:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}EVSEMaximumDischargePower)] */
+ if ( 1 == 1 ) {
+ errn = encodeNBitUnsignedInteger(stream, 1, 0);
+ if(errn == 0) {
+ errn = encode_iso2PhysicalValueType(stream, &iso2DC_EVSEBidirectionalParameterType->EVSEMaximumDischargePower );
+ }
+ grammarID = 1897;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 1897:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}EVSEMaximumDischargeCurrent)] */
+ if ( 1 == 1 ) {
+ errn = encodeNBitUnsignedInteger(stream, 1, 0);
+ if(errn == 0) {
+ errn = encode_iso2PhysicalValueType(stream, &iso2DC_EVSEBidirectionalParameterType->EVSEMaximumDischargeCurrent );
+ }
+ grammarID = 1898;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 1898:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}EVSEMinimumDischargeCurrent)] */
+ if ( 1 == 1 ) {
+ errn = encodeNBitUnsignedInteger(stream, 1, 0);
+ if(errn == 0) {
+ errn = encode_iso2PhysicalValueType(stream, &iso2DC_EVSEBidirectionalParameterType->EVSEMinimumDischargeCurrent );
+ }
+ grammarID = 3;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 3:
+ /* Element[END_ELEMENT] */
+ if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 1, 0);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_GRAMMAR_ID;
+ break;
+ }
+ if(errn) {
+ done = 1;
+ }
+ }
+ return errn;
+}
+
+/* Complex type name='http://www.w3.org/2000/09/xmldsig#,CanonicalizationMethodType', base type name='anyType', content type='MIXED', isAbstract='false', hasTypeId='false', final='0', block='0', particle='((WC[##any]){0-UNBOUNDED})', derivedBy='RESTRICTION'. */
+static int encode_iso2CanonicalizationMethodType(bitstream_t* stream, struct iso2CanonicalizationMethodType* iso2CanonicalizationMethodType) {
+ int grammarID = 1899;
+ int done = 0;
+ int wcDone = 0;
+
+
+ while(!done) {
+ switch(grammarID) {
+ case 1899:
+ /* FirstStartTag[ATTRIBUTE[STRING](Algorithm)] */
+ if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 1, 0);
+ if(errn == 0) {
+ /* encode string as string table miss (+2 len)*/
+ errn = encodeUnsignedInteger16(stream, (uint16_t)(iso2CanonicalizationMethodType->Algorithm.charactersLen + 2));
+ if (errn == 0) {
+ errn = encodeCharacters(stream, iso2CanonicalizationMethodType->Algorithm.characters, iso2CanonicalizationMethodType->Algorithm.charactersLen);
+ }
+ }
+ grammarID = 684;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 684:
+ /* StartTag[START_ELEMENT_GENERIC, END_ELEMENT, CHARACTERS_GENERIC[STRING]] */
+ if (1==0) {
+ errn = EXI_UNSUPPORTED_EVENT_CODE_CHARACTERISTICS;
+ grammarID = 685;
+ } else if ( iso2CanonicalizationMethodType->ANY_isUsed == 0u || wcDone ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else if ( iso2CanonicalizationMethodType->ANY_isUsed == 1u ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 2);
+ if(errn == 0) {
+ /* encode string as string table miss (+2 len)*/
+ errn = encodeUnsignedInteger16(stream, (uint16_t)(iso2CanonicalizationMethodType->ANY.charactersLen + 2));
+ if (errn == 0) {
+ errn = encodeCharacters(stream, iso2CanonicalizationMethodType->ANY.characters, iso2CanonicalizationMethodType->ANY.charactersLen);
+ }
+ }
+ wcDone = 1;
+ grammarID = 685;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 685:
+ /* Element[START_ELEMENT_GENERIC, END_ELEMENT, CHARACTERS_GENERIC[STRING]] */
+ if (1==0) {
+ errn = EXI_UNSUPPORTED_EVENT_CODE_CHARACTERISTICS;
+ grammarID = 685;
+ } else if ( iso2CanonicalizationMethodType->ANY_isUsed == 0u || wcDone ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else if ( iso2CanonicalizationMethodType->ANY_isUsed == 1u ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 2);
+ if(errn == 0) {
+ /* encode string as string table miss (+2 len)*/
+ errn = encodeUnsignedInteger16(stream, (uint16_t)(iso2CanonicalizationMethodType->ANY.charactersLen + 2));
+ if (errn == 0) {
+ errn = encodeCharacters(stream, iso2CanonicalizationMethodType->ANY.characters, iso2CanonicalizationMethodType->ANY.charactersLen);
+ }
+ }
+ wcDone = 1;
+ grammarID = 685;
+ } 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:2016:MsgDataTypes,DisplayParametersType', base type name='anyType', content type='ELEMENT', isAbstract='false', hasTypeId='false', final='0', block='0', particle='("urn:iso:15118:2:2016:MsgDataTypes":CurrentRange{0-1},"urn:iso:15118:2:2016:MsgDataTypes":CurrentSOC{0-1},"urn:iso:15118:2:2016:MsgDataTypes":TargetSOC{0-1},"urn:iso:15118:2:2016:MsgDataTypes":BulkSOC{0-1},"urn:iso:15118:2:2016:MsgDataTypes":MinimumSOC{0-1},"urn:iso:15118:2:2016:MsgDataTypes":ChargingPerformance{0-1},"urn:iso:15118:2:2016:MsgDataTypes":RemainingTimeToTargetSOC{0-1},"urn:iso:15118:2:2016:MsgDataTypes":RemainingTimeToBulkSOC{0-1},"urn:iso:15118:2:2016:MsgDataTypes":RemainingTimeToMinimumSOC{0-1},"urn:iso:15118:2:2016:MsgDataTypes":ChargingComplete{0-1},"urn:iso:15118:2:2016:MsgDataTypes":BulkChargingComplete{0-1},"urn:iso:15118:2:2016:MsgDataTypes":InletHot{0-1})', derivedBy='RESTRICTION'. */
+static int encode_iso2DisplayParametersType(bitstream_t* stream, struct iso2DisplayParametersType* iso2DisplayParametersType) {
+ int grammarID = 1900;
+ int done = 0;
+
+
+ while(!done) {
+ switch(grammarID) {
+ case 1900:
+ /* FirstStartTag[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}CurrentRange), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}CurrentSOC), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}TargetSOC), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}BulkSOC), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MinimumSOC), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}ChargingPerformance), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}RemainingTimeToTargetSOC), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}RemainingTimeToBulkSOC), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}RemainingTimeToMinimumSOC), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}ChargingComplete), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}BulkChargingComplete), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}InletHot), END_ELEMENT] */
+ if ( iso2DisplayParametersType->CurrentRange_isUsed == 1u ) {
+ errn = encodeNBitUnsignedInteger(stream, 4, 0);
+ if(errn == 0) {
+ /* First(xsi:type)StartTag[CHARACTERS[UNSIGNED_INTEGER]] */
+ errn = encodeNBitUnsignedInteger(stream, 1, 0);
+ if(errn == 0) {
+ errn = encodeUnsignedInteger16(stream, iso2DisplayParametersType->CurrentRange);
+ /* valid EE */
+ errn = encodeNBitUnsignedInteger(stream, 1, 0);
+ }
+ }
+ grammarID = 1901;
+ } else if ( iso2DisplayParametersType->CurrentSOC_isUsed == 1u ) {
+ errn = encodeNBitUnsignedInteger(stream, 4, 1);
+ if(errn == 0) {
+ /* FirstStartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
+ errn = encodeNBitUnsignedInteger(stream, 1, 0);
+ if(errn == 0) {
+ errn = encodeNBitUnsignedInteger(stream, 7, (uint32_t)(iso2DisplayParametersType->CurrentSOC - 0));
+ /* valid EE */
+ errn = encodeNBitUnsignedInteger(stream, 1, 0);
+ }
+ }
+ grammarID = 1902;
+ } else if ( iso2DisplayParametersType->TargetSOC_isUsed == 1u ) {
+ errn = encodeNBitUnsignedInteger(stream, 4, 2);
+ if(errn == 0) {
+ /* FirstStartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
+ errn = encodeNBitUnsignedInteger(stream, 1, 0);
+ if(errn == 0) {
+ errn = encodeNBitUnsignedInteger(stream, 7, (uint32_t)(iso2DisplayParametersType->TargetSOC - 0));
+ /* valid EE */
+ errn = encodeNBitUnsignedInteger(stream, 1, 0);
+ }
+ }
+ grammarID = 1903;
+ } else if ( iso2DisplayParametersType->BulkSOC_isUsed == 1u ) {
+ errn = encodeNBitUnsignedInteger(stream, 4, 3);
+ if(errn == 0) {
+ /* FirstStartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
+ errn = encodeNBitUnsignedInteger(stream, 1, 0);
+ if(errn == 0) {
+ errn = encodeNBitUnsignedInteger(stream, 7, (uint32_t)(iso2DisplayParametersType->BulkSOC - 0));
+ /* valid EE */
+ errn = encodeNBitUnsignedInteger(stream, 1, 0);
+ }
+ }
+ grammarID = 1904;
+ } else if ( iso2DisplayParametersType->MinimumSOC_isUsed == 1u ) {
+ errn = encodeNBitUnsignedInteger(stream, 4, 4);
+ if(errn == 0) {
+ /* FirstStartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
+ errn = encodeNBitUnsignedInteger(stream, 1, 0);
+ if(errn == 0) {
+ errn = encodeNBitUnsignedInteger(stream, 7, (uint32_t)(iso2DisplayParametersType->MinimumSOC - 0));
+ /* valid EE */
+ errn = encodeNBitUnsignedInteger(stream, 1, 0);
+ }
+ }
+ grammarID = 1905;
+ } else if ( iso2DisplayParametersType->ChargingPerformance_isUsed == 1u ) {
+ errn = encodeNBitUnsignedInteger(stream, 4, 5);
+ if(errn == 0) {
+ errn = encode_iso2PhysicalValueType(stream, &iso2DisplayParametersType->ChargingPerformance );
+ }
+ grammarID = 1906;
+ } else if ( iso2DisplayParametersType->RemainingTimeToTargetSOC_isUsed == 1u ) {
+ errn = encodeNBitUnsignedInteger(stream, 4, 6);
+ if(errn == 0) {
+ /* FirstStartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
+ errn = encodeNBitUnsignedInteger(stream, 1, 0);
+ if(errn == 0) {
+ errn = encodeNBitUnsignedInteger(stream, 7, (uint32_t)(iso2DisplayParametersType->RemainingTimeToTargetSOC - 0));
+ /* valid EE */
+ errn = encodeNBitUnsignedInteger(stream, 1, 0);
+ }
+ }
+ grammarID = 1907;
+ } else if ( iso2DisplayParametersType->RemainingTimeToBulkSOC_isUsed == 1u ) {
+ errn = encodeNBitUnsignedInteger(stream, 4, 7);
+ if(errn == 0) {
+ /* FirstStartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
+ errn = encodeNBitUnsignedInteger(stream, 1, 0);
+ if(errn == 0) {
+ errn = encodeNBitUnsignedInteger(stream, 7, (uint32_t)(iso2DisplayParametersType->RemainingTimeToBulkSOC - 0));
+ /* valid EE */
+ errn = encodeNBitUnsignedInteger(stream, 1, 0);
+ }
+ }
+ grammarID = 1908;
+ } else if ( iso2DisplayParametersType->RemainingTimeToMinimumSOC_isUsed == 1u ) {
+ errn = encodeNBitUnsignedInteger(stream, 4, 8);
+ if(errn == 0) {
+ /* FirstStartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
+ errn = encodeNBitUnsignedInteger(stream, 1, 0);
+ if(errn == 0) {
+ errn = encodeNBitUnsignedInteger(stream, 7, (uint32_t)(iso2DisplayParametersType->RemainingTimeToMinimumSOC - 0));
+ /* valid EE */
+ errn = encodeNBitUnsignedInteger(stream, 1, 0);
+ }
+ }
+ grammarID = 1909;
+ } else if ( iso2DisplayParametersType->ChargingComplete_isUsed == 1u ) {
+ errn = encodeNBitUnsignedInteger(stream, 4, 9);
+ if(errn == 0) {
+ /* FirstStartTag[CHARACTERS[BOOLEAN]] */
+ errn = encodeNBitUnsignedInteger(stream, 1, 0);
+ if(errn == 0) {
+ errn = encodeBoolean(stream, iso2DisplayParametersType->ChargingComplete);
+ /* valid EE */
+ errn = encodeNBitUnsignedInteger(stream, 1, 0);
+ }
+ }
+ grammarID = 1910;
+ } else if ( iso2DisplayParametersType->BulkChargingComplete_isUsed == 1u ) {
+ errn = encodeNBitUnsignedInteger(stream, 4, 10);
+ if(errn == 0) {
+ /* FirstStartTag[CHARACTERS[BOOLEAN]] */
+ errn = encodeNBitUnsignedInteger(stream, 1, 0);
+ if(errn == 0) {
+ errn = encodeBoolean(stream, iso2DisplayParametersType->BulkChargingComplete);
+ /* valid EE */
+ errn = encodeNBitUnsignedInteger(stream, 1, 0);
+ }
+ }
+ grammarID = 1911;
+ } else if ( iso2DisplayParametersType->InletHot_isUsed == 1u ) {
+ errn = encodeNBitUnsignedInteger(stream, 4, 11);
+ if(errn == 0) {
+ /* FirstStartTag[CHARACTERS[BOOLEAN]] */
+ errn = encodeNBitUnsignedInteger(stream, 1, 0);
+ if(errn == 0) {
+ errn = encodeBoolean(stream, iso2DisplayParametersType->InletHot);
+ /* valid EE */
+ errn = encodeNBitUnsignedInteger(stream, 1, 0);
+ }
+ }
+ grammarID = 3;
+ } else if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 4, 12);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 1901:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}CurrentSOC), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}TargetSOC), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}BulkSOC), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MinimumSOC), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}ChargingPerformance), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}RemainingTimeToTargetSOC), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}RemainingTimeToBulkSOC), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}RemainingTimeToMinimumSOC), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}ChargingComplete), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}BulkChargingComplete), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}InletHot), END_ELEMENT] */
+ if ( iso2DisplayParametersType->CurrentSOC_isUsed == 1u ) {
+ errn = encodeNBitUnsignedInteger(stream, 4, 0);
+ if(errn == 0) {
+ /* FirstStartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
+ errn = encodeNBitUnsignedInteger(stream, 1, 0);
+ if(errn == 0) {
+ errn = encodeNBitUnsignedInteger(stream, 7, (uint32_t)(iso2DisplayParametersType->CurrentSOC - 0));
+ /* valid EE */
+ errn = encodeNBitUnsignedInteger(stream, 1, 0);
+ }
+ }
+ grammarID = 1902;
+ } else if ( iso2DisplayParametersType->TargetSOC_isUsed == 1u ) {
+ errn = encodeNBitUnsignedInteger(stream, 4, 1);
+ if(errn == 0) {
+ /* FirstStartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
+ errn = encodeNBitUnsignedInteger(stream, 1, 0);
+ if(errn == 0) {
+ errn = encodeNBitUnsignedInteger(stream, 7, (uint32_t)(iso2DisplayParametersType->TargetSOC - 0));
+ /* valid EE */
+ errn = encodeNBitUnsignedInteger(stream, 1, 0);
+ }
+ }
+ grammarID = 1903;
+ } else if ( iso2DisplayParametersType->BulkSOC_isUsed == 1u ) {
+ errn = encodeNBitUnsignedInteger(stream, 4, 2);
+ if(errn == 0) {
+ /* FirstStartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
+ errn = encodeNBitUnsignedInteger(stream, 1, 0);
+ if(errn == 0) {
+ errn = encodeNBitUnsignedInteger(stream, 7, (uint32_t)(iso2DisplayParametersType->BulkSOC - 0));
+ /* valid EE */
+ errn = encodeNBitUnsignedInteger(stream, 1, 0);
+ }
+ }
+ grammarID = 1904;
+ } else if ( iso2DisplayParametersType->MinimumSOC_isUsed == 1u ) {
+ errn = encodeNBitUnsignedInteger(stream, 4, 3);
+ if(errn == 0) {
+ /* FirstStartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
+ errn = encodeNBitUnsignedInteger(stream, 1, 0);
+ if(errn == 0) {
+ errn = encodeNBitUnsignedInteger(stream, 7, (uint32_t)(iso2DisplayParametersType->MinimumSOC - 0));
+ /* valid EE */
+ errn = encodeNBitUnsignedInteger(stream, 1, 0);
+ }
+ }
+ grammarID = 1905;
+ } else if ( iso2DisplayParametersType->ChargingPerformance_isUsed == 1u ) {
+ errn = encodeNBitUnsignedInteger(stream, 4, 4);
+ if(errn == 0) {
+ errn = encode_iso2PhysicalValueType(stream, &iso2DisplayParametersType->ChargingPerformance );
+ }
+ grammarID = 1906;
+ } else if ( iso2DisplayParametersType->RemainingTimeToTargetSOC_isUsed == 1u ) {
+ errn = encodeNBitUnsignedInteger(stream, 4, 5);
+ if(errn == 0) {
+ /* FirstStartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
+ errn = encodeNBitUnsignedInteger(stream, 1, 0);
+ if(errn == 0) {
+ errn = encodeNBitUnsignedInteger(stream, 7, (uint32_t)(iso2DisplayParametersType->RemainingTimeToTargetSOC - 0));
+ /* valid EE */
+ errn = encodeNBitUnsignedInteger(stream, 1, 0);
+ }
+ }
+ grammarID = 1907;
+ } else if ( iso2DisplayParametersType->RemainingTimeToBulkSOC_isUsed == 1u ) {
+ errn = encodeNBitUnsignedInteger(stream, 4, 6);
+ if(errn == 0) {
+ /* FirstStartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
+ errn = encodeNBitUnsignedInteger(stream, 1, 0);
+ if(errn == 0) {
+ errn = encodeNBitUnsignedInteger(stream, 7, (uint32_t)(iso2DisplayParametersType->RemainingTimeToBulkSOC - 0));
+ /* valid EE */
+ errn = encodeNBitUnsignedInteger(stream, 1, 0);
+ }
+ }
+ grammarID = 1908;
+ } else if ( iso2DisplayParametersType->RemainingTimeToMinimumSOC_isUsed == 1u ) {
+ errn = encodeNBitUnsignedInteger(stream, 4, 7);
+ if(errn == 0) {
+ /* FirstStartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
+ errn = encodeNBitUnsignedInteger(stream, 1, 0);
+ if(errn == 0) {
+ errn = encodeNBitUnsignedInteger(stream, 7, (uint32_t)(iso2DisplayParametersType->RemainingTimeToMinimumSOC - 0));
+ /* valid EE */
+ errn = encodeNBitUnsignedInteger(stream, 1, 0);
+ }
+ }
+ grammarID = 1909;
+ } else if ( iso2DisplayParametersType->ChargingComplete_isUsed == 1u ) {
+ errn = encodeNBitUnsignedInteger(stream, 4, 8);
+ if(errn == 0) {
+ /* FirstStartTag[CHARACTERS[BOOLEAN]] */
+ errn = encodeNBitUnsignedInteger(stream, 1, 0);
+ if(errn == 0) {
+ errn = encodeBoolean(stream, iso2DisplayParametersType->ChargingComplete);
+ /* valid EE */
+ errn = encodeNBitUnsignedInteger(stream, 1, 0);
+ }
+ }
+ grammarID = 1910;
+ } else if ( iso2DisplayParametersType->BulkChargingComplete_isUsed == 1u ) {
+ errn = encodeNBitUnsignedInteger(stream, 4, 9);
+ if(errn == 0) {
+ /* FirstStartTag[CHARACTERS[BOOLEAN]] */
+ errn = encodeNBitUnsignedInteger(stream, 1, 0);
+ if(errn == 0) {
+ errn = encodeBoolean(stream, iso2DisplayParametersType->BulkChargingComplete);
+ /* valid EE */
+ errn = encodeNBitUnsignedInteger(stream, 1, 0);
+ }
+ }
+ grammarID = 1911;
+ } else if ( iso2DisplayParametersType->InletHot_isUsed == 1u ) {
+ errn = encodeNBitUnsignedInteger(stream, 4, 10);
+ if(errn == 0) {
+ /* FirstStartTag[CHARACTERS[BOOLEAN]] */
+ errn = encodeNBitUnsignedInteger(stream, 1, 0);
+ if(errn == 0) {
+ errn = encodeBoolean(stream, iso2DisplayParametersType->InletHot);
+ /* valid EE */
+ errn = encodeNBitUnsignedInteger(stream, 1, 0);
+ }
+ }
+ grammarID = 3;
+ } else if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 4, 11);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 1902:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}TargetSOC), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}BulkSOC), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MinimumSOC), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}ChargingPerformance), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}RemainingTimeToTargetSOC), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}RemainingTimeToBulkSOC), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}RemainingTimeToMinimumSOC), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}ChargingComplete), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}BulkChargingComplete), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}InletHot), END_ELEMENT] */
+ if ( iso2DisplayParametersType->TargetSOC_isUsed == 1u ) {
+ errn = encodeNBitUnsignedInteger(stream, 4, 0);
+ if(errn == 0) {
+ /* FirstStartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
+ errn = encodeNBitUnsignedInteger(stream, 1, 0);
+ if(errn == 0) {
+ errn = encodeNBitUnsignedInteger(stream, 7, (uint32_t)(iso2DisplayParametersType->TargetSOC - 0));
+ /* valid EE */
+ errn = encodeNBitUnsignedInteger(stream, 1, 0);
+ }
+ }
+ grammarID = 1903;
+ } else if ( iso2DisplayParametersType->BulkSOC_isUsed == 1u ) {
+ errn = encodeNBitUnsignedInteger(stream, 4, 1);
+ if(errn == 0) {
+ /* FirstStartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
+ errn = encodeNBitUnsignedInteger(stream, 1, 0);
+ if(errn == 0) {
+ errn = encodeNBitUnsignedInteger(stream, 7, (uint32_t)(iso2DisplayParametersType->BulkSOC - 0));
+ /* valid EE */
+ errn = encodeNBitUnsignedInteger(stream, 1, 0);
+ }
+ }
+ grammarID = 1904;
+ } else if ( iso2DisplayParametersType->MinimumSOC_isUsed == 1u ) {
+ errn = encodeNBitUnsignedInteger(stream, 4, 2);
+ if(errn == 0) {
+ /* FirstStartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
+ errn = encodeNBitUnsignedInteger(stream, 1, 0);
+ if(errn == 0) {
+ errn = encodeNBitUnsignedInteger(stream, 7, (uint32_t)(iso2DisplayParametersType->MinimumSOC - 0));
+ /* valid EE */
+ errn = encodeNBitUnsignedInteger(stream, 1, 0);
+ }
+ }
+ grammarID = 1905;
+ } else if ( iso2DisplayParametersType->ChargingPerformance_isUsed == 1u ) {
+ errn = encodeNBitUnsignedInteger(stream, 4, 3);
+ if(errn == 0) {
+ errn = encode_iso2PhysicalValueType(stream, &iso2DisplayParametersType->ChargingPerformance );
+ }
+ grammarID = 1906;
+ } else if ( iso2DisplayParametersType->RemainingTimeToTargetSOC_isUsed == 1u ) {
+ errn = encodeNBitUnsignedInteger(stream, 4, 4);
+ if(errn == 0) {
+ /* FirstStartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
+ errn = encodeNBitUnsignedInteger(stream, 1, 0);
+ if(errn == 0) {
+ errn = encodeNBitUnsignedInteger(stream, 7, (uint32_t)(iso2DisplayParametersType->RemainingTimeToTargetSOC - 0));
+ /* valid EE */
+ errn = encodeNBitUnsignedInteger(stream, 1, 0);
+ }
+ }
+ grammarID = 1907;
+ } else if ( iso2DisplayParametersType->RemainingTimeToBulkSOC_isUsed == 1u ) {
+ errn = encodeNBitUnsignedInteger(stream, 4, 5);
+ if(errn == 0) {
+ /* FirstStartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
+ errn = encodeNBitUnsignedInteger(stream, 1, 0);
+ if(errn == 0) {
+ errn = encodeNBitUnsignedInteger(stream, 7, (uint32_t)(iso2DisplayParametersType->RemainingTimeToBulkSOC - 0));
+ /* valid EE */
+ errn = encodeNBitUnsignedInteger(stream, 1, 0);
+ }
+ }
+ grammarID = 1908;
+ } else if ( iso2DisplayParametersType->RemainingTimeToMinimumSOC_isUsed == 1u ) {
+ errn = encodeNBitUnsignedInteger(stream, 4, 6);
+ if(errn == 0) {
+ /* FirstStartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
+ errn = encodeNBitUnsignedInteger(stream, 1, 0);
+ if(errn == 0) {
+ errn = encodeNBitUnsignedInteger(stream, 7, (uint32_t)(iso2DisplayParametersType->RemainingTimeToMinimumSOC - 0));
+ /* valid EE */
+ errn = encodeNBitUnsignedInteger(stream, 1, 0);
+ }
+ }
+ grammarID = 1909;
+ } else if ( iso2DisplayParametersType->ChargingComplete_isUsed == 1u ) {
+ errn = encodeNBitUnsignedInteger(stream, 4, 7);
+ if(errn == 0) {
+ /* FirstStartTag[CHARACTERS[BOOLEAN]] */
+ errn = encodeNBitUnsignedInteger(stream, 1, 0);
+ if(errn == 0) {
+ errn = encodeBoolean(stream, iso2DisplayParametersType->ChargingComplete);
+ /* valid EE */
+ errn = encodeNBitUnsignedInteger(stream, 1, 0);
+ }
+ }
+ grammarID = 1910;
+ } else if ( iso2DisplayParametersType->BulkChargingComplete_isUsed == 1u ) {
+ errn = encodeNBitUnsignedInteger(stream, 4, 8);
+ if(errn == 0) {
+ /* FirstStartTag[CHARACTERS[BOOLEAN]] */
+ errn = encodeNBitUnsignedInteger(stream, 1, 0);
+ if(errn == 0) {
+ errn = encodeBoolean(stream, iso2DisplayParametersType->BulkChargingComplete);
+ /* valid EE */
+ errn = encodeNBitUnsignedInteger(stream, 1, 0);
+ }
+ }
+ grammarID = 1911;
+ } else if ( iso2DisplayParametersType->InletHot_isUsed == 1u ) {
+ errn = encodeNBitUnsignedInteger(stream, 4, 9);
+ if(errn == 0) {
+ /* FirstStartTag[CHARACTERS[BOOLEAN]] */
+ errn = encodeNBitUnsignedInteger(stream, 1, 0);
+ if(errn == 0) {
+ errn = encodeBoolean(stream, iso2DisplayParametersType->InletHot);
+ /* valid EE */
+ errn = encodeNBitUnsignedInteger(stream, 1, 0);
+ }
+ }
+ grammarID = 3;
+ } else if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 4, 10);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 1903:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}BulkSOC), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MinimumSOC), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}ChargingPerformance), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}RemainingTimeToTargetSOC), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}RemainingTimeToBulkSOC), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}RemainingTimeToMinimumSOC), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}ChargingComplete), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}BulkChargingComplete), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}InletHot), END_ELEMENT] */
+ if ( iso2DisplayParametersType->BulkSOC_isUsed == 1u ) {
+ errn = encodeNBitUnsignedInteger(stream, 4, 0);
+ if(errn == 0) {
+ /* FirstStartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
+ errn = encodeNBitUnsignedInteger(stream, 1, 0);
+ if(errn == 0) {
+ errn = encodeNBitUnsignedInteger(stream, 7, (uint32_t)(iso2DisplayParametersType->BulkSOC - 0));
+ /* valid EE */
+ errn = encodeNBitUnsignedInteger(stream, 1, 0);
+ }
+ }
+ grammarID = 1904;
+ } else if ( iso2DisplayParametersType->MinimumSOC_isUsed == 1u ) {
+ errn = encodeNBitUnsignedInteger(stream, 4, 1);
+ if(errn == 0) {
+ /* FirstStartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
+ errn = encodeNBitUnsignedInteger(stream, 1, 0);
+ if(errn == 0) {
+ errn = encodeNBitUnsignedInteger(stream, 7, (uint32_t)(iso2DisplayParametersType->MinimumSOC - 0));
+ /* valid EE */
+ errn = encodeNBitUnsignedInteger(stream, 1, 0);
+ }
+ }
+ grammarID = 1905;
+ } else if ( iso2DisplayParametersType->ChargingPerformance_isUsed == 1u ) {
+ errn = encodeNBitUnsignedInteger(stream, 4, 2);
+ if(errn == 0) {
+ errn = encode_iso2PhysicalValueType(stream, &iso2DisplayParametersType->ChargingPerformance );
+ }
+ grammarID = 1906;
+ } else if ( iso2DisplayParametersType->RemainingTimeToTargetSOC_isUsed == 1u ) {
+ errn = encodeNBitUnsignedInteger(stream, 4, 3);
+ if(errn == 0) {
+ /* FirstStartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
+ errn = encodeNBitUnsignedInteger(stream, 1, 0);
+ if(errn == 0) {
+ errn = encodeNBitUnsignedInteger(stream, 7, (uint32_t)(iso2DisplayParametersType->RemainingTimeToTargetSOC - 0));
+ /* valid EE */
+ errn = encodeNBitUnsignedInteger(stream, 1, 0);
+ }
+ }
+ grammarID = 1907;
+ } else if ( iso2DisplayParametersType->RemainingTimeToBulkSOC_isUsed == 1u ) {
+ errn = encodeNBitUnsignedInteger(stream, 4, 4);
+ if(errn == 0) {
+ /* FirstStartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
+ errn = encodeNBitUnsignedInteger(stream, 1, 0);
+ if(errn == 0) {
+ errn = encodeNBitUnsignedInteger(stream, 7, (uint32_t)(iso2DisplayParametersType->RemainingTimeToBulkSOC - 0));
+ /* valid EE */
+ errn = encodeNBitUnsignedInteger(stream, 1, 0);
+ }
+ }
+ grammarID = 1908;
+ } else if ( iso2DisplayParametersType->RemainingTimeToMinimumSOC_isUsed == 1u ) {
+ errn = encodeNBitUnsignedInteger(stream, 4, 5);
+ if(errn == 0) {
+ /* FirstStartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
+ errn = encodeNBitUnsignedInteger(stream, 1, 0);
+ if(errn == 0) {
+ errn = encodeNBitUnsignedInteger(stream, 7, (uint32_t)(iso2DisplayParametersType->RemainingTimeToMinimumSOC - 0));
+ /* valid EE */
+ errn = encodeNBitUnsignedInteger(stream, 1, 0);
+ }
+ }
+ grammarID = 1909;
+ } else if ( iso2DisplayParametersType->ChargingComplete_isUsed == 1u ) {
+ errn = encodeNBitUnsignedInteger(stream, 4, 6);
+ if(errn == 0) {
+ /* FirstStartTag[CHARACTERS[BOOLEAN]] */
+ errn = encodeNBitUnsignedInteger(stream, 1, 0);
+ if(errn == 0) {
+ errn = encodeBoolean(stream, iso2DisplayParametersType->ChargingComplete);
+ /* valid EE */
+ errn = encodeNBitUnsignedInteger(stream, 1, 0);
+ }
+ }
+ grammarID = 1910;
+ } else if ( iso2DisplayParametersType->BulkChargingComplete_isUsed == 1u ) {
+ errn = encodeNBitUnsignedInteger(stream, 4, 7);
+ if(errn == 0) {
+ /* FirstStartTag[CHARACTERS[BOOLEAN]] */
+ errn = encodeNBitUnsignedInteger(stream, 1, 0);
+ if(errn == 0) {
+ errn = encodeBoolean(stream, iso2DisplayParametersType->BulkChargingComplete);
+ /* valid EE */
+ errn = encodeNBitUnsignedInteger(stream, 1, 0);
+ }
+ }
+ grammarID = 1911;
+ } else if ( iso2DisplayParametersType->InletHot_isUsed == 1u ) {
+ errn = encodeNBitUnsignedInteger(stream, 4, 8);
+ if(errn == 0) {
+ /* FirstStartTag[CHARACTERS[BOOLEAN]] */
+ errn = encodeNBitUnsignedInteger(stream, 1, 0);
+ if(errn == 0) {
+ errn = encodeBoolean(stream, iso2DisplayParametersType->InletHot);
+ /* valid EE */
+ errn = encodeNBitUnsignedInteger(stream, 1, 0);
+ }
+ }
+ grammarID = 3;
+ } else if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 4, 9);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 1904:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MinimumSOC), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}ChargingPerformance), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}RemainingTimeToTargetSOC), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}RemainingTimeToBulkSOC), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}RemainingTimeToMinimumSOC), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}ChargingComplete), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}BulkChargingComplete), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}InletHot), END_ELEMENT] */
+ if ( iso2DisplayParametersType->MinimumSOC_isUsed == 1u ) {
+ errn = encodeNBitUnsignedInteger(stream, 4, 0);
+ if(errn == 0) {
+ /* FirstStartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
+ errn = encodeNBitUnsignedInteger(stream, 1, 0);
+ if(errn == 0) {
+ errn = encodeNBitUnsignedInteger(stream, 7, (uint32_t)(iso2DisplayParametersType->MinimumSOC - 0));
+ /* valid EE */
+ errn = encodeNBitUnsignedInteger(stream, 1, 0);
+ }
+ }
+ grammarID = 1905;
+ } else if ( iso2DisplayParametersType->ChargingPerformance_isUsed == 1u ) {
+ errn = encodeNBitUnsignedInteger(stream, 4, 1);
+ if(errn == 0) {
+ errn = encode_iso2PhysicalValueType(stream, &iso2DisplayParametersType->ChargingPerformance );
+ }
+ grammarID = 1906;
+ } else if ( iso2DisplayParametersType->RemainingTimeToTargetSOC_isUsed == 1u ) {
+ errn = encodeNBitUnsignedInteger(stream, 4, 2);
+ if(errn == 0) {
+ /* FirstStartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
+ errn = encodeNBitUnsignedInteger(stream, 1, 0);
+ if(errn == 0) {
+ errn = encodeNBitUnsignedInteger(stream, 7, (uint32_t)(iso2DisplayParametersType->RemainingTimeToTargetSOC - 0));
+ /* valid EE */
+ errn = encodeNBitUnsignedInteger(stream, 1, 0);
+ }
+ }
+ grammarID = 1907;
+ } else if ( iso2DisplayParametersType->RemainingTimeToBulkSOC_isUsed == 1u ) {
+ errn = encodeNBitUnsignedInteger(stream, 4, 3);
+ if(errn == 0) {
+ /* FirstStartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
+ errn = encodeNBitUnsignedInteger(stream, 1, 0);
+ if(errn == 0) {
+ errn = encodeNBitUnsignedInteger(stream, 7, (uint32_t)(iso2DisplayParametersType->RemainingTimeToBulkSOC - 0));
+ /* valid EE */
+ errn = encodeNBitUnsignedInteger(stream, 1, 0);
+ }
+ }
+ grammarID = 1908;
+ } else if ( iso2DisplayParametersType->RemainingTimeToMinimumSOC_isUsed == 1u ) {
+ errn = encodeNBitUnsignedInteger(stream, 4, 4);
+ if(errn == 0) {
+ /* FirstStartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
+ errn = encodeNBitUnsignedInteger(stream, 1, 0);
+ if(errn == 0) {
+ errn = encodeNBitUnsignedInteger(stream, 7, (uint32_t)(iso2DisplayParametersType->RemainingTimeToMinimumSOC - 0));
+ /* valid EE */
+ errn = encodeNBitUnsignedInteger(stream, 1, 0);
+ }
+ }
+ grammarID = 1909;
+ } else if ( iso2DisplayParametersType->ChargingComplete_isUsed == 1u ) {
+ errn = encodeNBitUnsignedInteger(stream, 4, 5);
+ if(errn == 0) {
+ /* FirstStartTag[CHARACTERS[BOOLEAN]] */
+ errn = encodeNBitUnsignedInteger(stream, 1, 0);
+ if(errn == 0) {
+ errn = encodeBoolean(stream, iso2DisplayParametersType->ChargingComplete);
+ /* valid EE */
+ errn = encodeNBitUnsignedInteger(stream, 1, 0);
+ }
+ }
+ grammarID = 1910;
+ } else if ( iso2DisplayParametersType->BulkChargingComplete_isUsed == 1u ) {
+ errn = encodeNBitUnsignedInteger(stream, 4, 6);
+ if(errn == 0) {
+ /* FirstStartTag[CHARACTERS[BOOLEAN]] */
+ errn = encodeNBitUnsignedInteger(stream, 1, 0);
+ if(errn == 0) {
+ errn = encodeBoolean(stream, iso2DisplayParametersType->BulkChargingComplete);
+ /* valid EE */
+ errn = encodeNBitUnsignedInteger(stream, 1, 0);
+ }
+ }
+ grammarID = 1911;
+ } else if ( iso2DisplayParametersType->InletHot_isUsed == 1u ) {
+ errn = encodeNBitUnsignedInteger(stream, 4, 7);
+ if(errn == 0) {
+ /* FirstStartTag[CHARACTERS[BOOLEAN]] */
+ errn = encodeNBitUnsignedInteger(stream, 1, 0);
+ if(errn == 0) {
+ errn = encodeBoolean(stream, iso2DisplayParametersType->InletHot);
+ /* valid EE */
+ errn = encodeNBitUnsignedInteger(stream, 1, 0);
+ }
+ }
+ grammarID = 3;
+ } else if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 4, 8);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 1905:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}ChargingPerformance), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}RemainingTimeToTargetSOC), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}RemainingTimeToBulkSOC), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}RemainingTimeToMinimumSOC), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}ChargingComplete), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}BulkChargingComplete), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}InletHot), END_ELEMENT] */
+ if ( iso2DisplayParametersType->ChargingPerformance_isUsed == 1u ) {
+ errn = encodeNBitUnsignedInteger(stream, 4, 0);
+ if(errn == 0) {
+ errn = encode_iso2PhysicalValueType(stream, &iso2DisplayParametersType->ChargingPerformance );
+ }
+ grammarID = 1906;
+ } else if ( iso2DisplayParametersType->RemainingTimeToTargetSOC_isUsed == 1u ) {
+ errn = encodeNBitUnsignedInteger(stream, 4, 1);
+ if(errn == 0) {
+ /* FirstStartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
+ errn = encodeNBitUnsignedInteger(stream, 1, 0);
+ if(errn == 0) {
+ errn = encodeNBitUnsignedInteger(stream, 7, (uint32_t)(iso2DisplayParametersType->RemainingTimeToTargetSOC - 0));
+ /* valid EE */
+ errn = encodeNBitUnsignedInteger(stream, 1, 0);
+ }
+ }
+ grammarID = 1907;
+ } else if ( iso2DisplayParametersType->RemainingTimeToBulkSOC_isUsed == 1u ) {
+ errn = encodeNBitUnsignedInteger(stream, 4, 2);
+ if(errn == 0) {
+ /* FirstStartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
+ errn = encodeNBitUnsignedInteger(stream, 1, 0);
+ if(errn == 0) {
+ errn = encodeNBitUnsignedInteger(stream, 7, (uint32_t)(iso2DisplayParametersType->RemainingTimeToBulkSOC - 0));
+ /* valid EE */
+ errn = encodeNBitUnsignedInteger(stream, 1, 0);
+ }
+ }
+ grammarID = 1908;
+ } else if ( iso2DisplayParametersType->RemainingTimeToMinimumSOC_isUsed == 1u ) {
+ errn = encodeNBitUnsignedInteger(stream, 4, 3);
+ if(errn == 0) {
+ /* FirstStartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
+ errn = encodeNBitUnsignedInteger(stream, 1, 0);
+ if(errn == 0) {
+ errn = encodeNBitUnsignedInteger(stream, 7, (uint32_t)(iso2DisplayParametersType->RemainingTimeToMinimumSOC - 0));
+ /* valid EE */
+ errn = encodeNBitUnsignedInteger(stream, 1, 0);
+ }
+ }
+ grammarID = 1909;
+ } else if ( iso2DisplayParametersType->ChargingComplete_isUsed == 1u ) {
+ errn = encodeNBitUnsignedInteger(stream, 4, 4);
+ if(errn == 0) {
+ /* FirstStartTag[CHARACTERS[BOOLEAN]] */
+ errn = encodeNBitUnsignedInteger(stream, 1, 0);
+ if(errn == 0) {
+ errn = encodeBoolean(stream, iso2DisplayParametersType->ChargingComplete);
+ /* valid EE */
+ errn = encodeNBitUnsignedInteger(stream, 1, 0);
+ }
+ }
+ grammarID = 1910;
+ } else if ( iso2DisplayParametersType->BulkChargingComplete_isUsed == 1u ) {
+ errn = encodeNBitUnsignedInteger(stream, 4, 5);
+ if(errn == 0) {
+ /* FirstStartTag[CHARACTERS[BOOLEAN]] */
+ errn = encodeNBitUnsignedInteger(stream, 1, 0);
+ if(errn == 0) {
+ errn = encodeBoolean(stream, iso2DisplayParametersType->BulkChargingComplete);
+ /* valid EE */
+ errn = encodeNBitUnsignedInteger(stream, 1, 0);
+ }
+ }
+ grammarID = 1911;
+ } else if ( iso2DisplayParametersType->InletHot_isUsed == 1u ) {
+ errn = encodeNBitUnsignedInteger(stream, 4, 6);
+ if(errn == 0) {
+ /* FirstStartTag[CHARACTERS[BOOLEAN]] */
+ errn = encodeNBitUnsignedInteger(stream, 1, 0);
+ if(errn == 0) {
+ errn = encodeBoolean(stream, iso2DisplayParametersType->InletHot);
+ /* valid EE */
+ errn = encodeNBitUnsignedInteger(stream, 1, 0);
+ }
+ }
+ grammarID = 3;
+ } else if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 4, 7);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 1906:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}RemainingTimeToTargetSOC), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}RemainingTimeToBulkSOC), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}RemainingTimeToMinimumSOC), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}ChargingComplete), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}BulkChargingComplete), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}InletHot), END_ELEMENT] */
+ if ( iso2DisplayParametersType->RemainingTimeToTargetSOC_isUsed == 1u ) {
+ errn = encodeNBitUnsignedInteger(stream, 3, 0);
+ if(errn == 0) {
+ /* FirstStartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
+ errn = encodeNBitUnsignedInteger(stream, 1, 0);
+ if(errn == 0) {
+ errn = encodeNBitUnsignedInteger(stream, 7, (uint32_t)(iso2DisplayParametersType->RemainingTimeToTargetSOC - 0));
+ /* valid EE */
+ errn = encodeNBitUnsignedInteger(stream, 1, 0);
+ }
+ }
+ grammarID = 1907;
+ } else if ( iso2DisplayParametersType->RemainingTimeToBulkSOC_isUsed == 1u ) {
+ errn = encodeNBitUnsignedInteger(stream, 3, 1);
+ if(errn == 0) {
+ /* FirstStartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
+ errn = encodeNBitUnsignedInteger(stream, 1, 0);
+ if(errn == 0) {
+ errn = encodeNBitUnsignedInteger(stream, 7, (uint32_t)(iso2DisplayParametersType->RemainingTimeToBulkSOC - 0));
+ /* valid EE */
+ errn = encodeNBitUnsignedInteger(stream, 1, 0);
+ }
+ }
+ grammarID = 1908;
+ } else if ( iso2DisplayParametersType->RemainingTimeToMinimumSOC_isUsed == 1u ) {
+ errn = encodeNBitUnsignedInteger(stream, 3, 2);
+ if(errn == 0) {
+ /* FirstStartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
+ errn = encodeNBitUnsignedInteger(stream, 1, 0);
+ if(errn == 0) {
+ errn = encodeNBitUnsignedInteger(stream, 7, (uint32_t)(iso2DisplayParametersType->RemainingTimeToMinimumSOC - 0));
+ /* valid EE */
+ errn = encodeNBitUnsignedInteger(stream, 1, 0);
+ }
+ }
+ grammarID = 1909;
+ } else if ( iso2DisplayParametersType->ChargingComplete_isUsed == 1u ) {
+ errn = encodeNBitUnsignedInteger(stream, 3, 3);
+ if(errn == 0) {
+ /* FirstStartTag[CHARACTERS[BOOLEAN]] */
+ errn = encodeNBitUnsignedInteger(stream, 1, 0);
+ if(errn == 0) {
+ errn = encodeBoolean(stream, iso2DisplayParametersType->ChargingComplete);
+ /* valid EE */
+ errn = encodeNBitUnsignedInteger(stream, 1, 0);
+ }
+ }
+ grammarID = 1910;
+ } else if ( iso2DisplayParametersType->BulkChargingComplete_isUsed == 1u ) {
+ errn = encodeNBitUnsignedInteger(stream, 3, 4);
+ if(errn == 0) {
+ /* FirstStartTag[CHARACTERS[BOOLEAN]] */
+ errn = encodeNBitUnsignedInteger(stream, 1, 0);
+ if(errn == 0) {
+ errn = encodeBoolean(stream, iso2DisplayParametersType->BulkChargingComplete);
+ /* valid EE */
+ errn = encodeNBitUnsignedInteger(stream, 1, 0);
+ }
+ }
+ grammarID = 1911;
+ } else if ( iso2DisplayParametersType->InletHot_isUsed == 1u ) {
+ errn = encodeNBitUnsignedInteger(stream, 3, 5);
+ if(errn == 0) {
+ /* FirstStartTag[CHARACTERS[BOOLEAN]] */
+ errn = encodeNBitUnsignedInteger(stream, 1, 0);
+ if(errn == 0) {
+ errn = encodeBoolean(stream, iso2DisplayParametersType->InletHot);
+ /* valid EE */
+ errn = encodeNBitUnsignedInteger(stream, 1, 0);
+ }
+ }
+ grammarID = 3;
+ } else if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 3, 6);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 1907:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}RemainingTimeToBulkSOC), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}RemainingTimeToMinimumSOC), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}ChargingComplete), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}BulkChargingComplete), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}InletHot), END_ELEMENT] */
+ if ( iso2DisplayParametersType->RemainingTimeToBulkSOC_isUsed == 1u ) {
+ errn = encodeNBitUnsignedInteger(stream, 3, 0);
+ if(errn == 0) {
+ /* FirstStartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
+ errn = encodeNBitUnsignedInteger(stream, 1, 0);
+ if(errn == 0) {
+ errn = encodeNBitUnsignedInteger(stream, 7, (uint32_t)(iso2DisplayParametersType->RemainingTimeToBulkSOC - 0));
+ /* valid EE */
+ errn = encodeNBitUnsignedInteger(stream, 1, 0);
+ }
+ }
+ grammarID = 1908;
+ } else if ( iso2DisplayParametersType->RemainingTimeToMinimumSOC_isUsed == 1u ) {
+ errn = encodeNBitUnsignedInteger(stream, 3, 1);
+ if(errn == 0) {
+ /* FirstStartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
+ errn = encodeNBitUnsignedInteger(stream, 1, 0);
+ if(errn == 0) {
+ errn = encodeNBitUnsignedInteger(stream, 7, (uint32_t)(iso2DisplayParametersType->RemainingTimeToMinimumSOC - 0));
+ /* valid EE */
+ errn = encodeNBitUnsignedInteger(stream, 1, 0);
+ }
+ }
+ grammarID = 1909;
+ } else if ( iso2DisplayParametersType->ChargingComplete_isUsed == 1u ) {
+ errn = encodeNBitUnsignedInteger(stream, 3, 2);
+ if(errn == 0) {
+ /* FirstStartTag[CHARACTERS[BOOLEAN]] */
+ errn = encodeNBitUnsignedInteger(stream, 1, 0);
+ if(errn == 0) {
+ errn = encodeBoolean(stream, iso2DisplayParametersType->ChargingComplete);
+ /* valid EE */
+ errn = encodeNBitUnsignedInteger(stream, 1, 0);
+ }
+ }
+ grammarID = 1910;
+ } else if ( iso2DisplayParametersType->BulkChargingComplete_isUsed == 1u ) {
+ errn = encodeNBitUnsignedInteger(stream, 3, 3);
+ if(errn == 0) {
+ /* FirstStartTag[CHARACTERS[BOOLEAN]] */
+ errn = encodeNBitUnsignedInteger(stream, 1, 0);
+ if(errn == 0) {
+ errn = encodeBoolean(stream, iso2DisplayParametersType->BulkChargingComplete);
+ /* valid EE */
+ errn = encodeNBitUnsignedInteger(stream, 1, 0);
+ }
+ }
+ grammarID = 1911;
+ } else if ( iso2DisplayParametersType->InletHot_isUsed == 1u ) {
+ errn = encodeNBitUnsignedInteger(stream, 3, 4);
+ if(errn == 0) {
+ /* FirstStartTag[CHARACTERS[BOOLEAN]] */
+ errn = encodeNBitUnsignedInteger(stream, 1, 0);
+ if(errn == 0) {
+ errn = encodeBoolean(stream, iso2DisplayParametersType->InletHot);
+ /* valid EE */
+ errn = encodeNBitUnsignedInteger(stream, 1, 0);
+ }
+ }
+ grammarID = 3;
+ } else if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 3, 5);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 1908:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}RemainingTimeToMinimumSOC), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}ChargingComplete), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}BulkChargingComplete), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}InletHot), END_ELEMENT] */
+ if ( iso2DisplayParametersType->RemainingTimeToMinimumSOC_isUsed == 1u ) {
+ errn = encodeNBitUnsignedInteger(stream, 3, 0);
+ if(errn == 0) {
+ /* FirstStartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
+ errn = encodeNBitUnsignedInteger(stream, 1, 0);
+ if(errn == 0) {
+ errn = encodeNBitUnsignedInteger(stream, 7, (uint32_t)(iso2DisplayParametersType->RemainingTimeToMinimumSOC - 0));
+ /* valid EE */
+ errn = encodeNBitUnsignedInteger(stream, 1, 0);
+ }
+ }
+ grammarID = 1909;
+ } else if ( iso2DisplayParametersType->ChargingComplete_isUsed == 1u ) {
+ errn = encodeNBitUnsignedInteger(stream, 3, 1);
+ if(errn == 0) {
+ /* FirstStartTag[CHARACTERS[BOOLEAN]] */
+ errn = encodeNBitUnsignedInteger(stream, 1, 0);
+ if(errn == 0) {
+ errn = encodeBoolean(stream, iso2DisplayParametersType->ChargingComplete);
+ /* valid EE */
+ errn = encodeNBitUnsignedInteger(stream, 1, 0);
+ }
+ }
+ grammarID = 1910;
+ } else if ( iso2DisplayParametersType->BulkChargingComplete_isUsed == 1u ) {
+ errn = encodeNBitUnsignedInteger(stream, 3, 2);
+ if(errn == 0) {
+ /* FirstStartTag[CHARACTERS[BOOLEAN]] */
+ errn = encodeNBitUnsignedInteger(stream, 1, 0);
+ if(errn == 0) {
+ errn = encodeBoolean(stream, iso2DisplayParametersType->BulkChargingComplete);
+ /* valid EE */
+ errn = encodeNBitUnsignedInteger(stream, 1, 0);
+ }
+ }
+ grammarID = 1911;
+ } else if ( iso2DisplayParametersType->InletHot_isUsed == 1u ) {
+ errn = encodeNBitUnsignedInteger(stream, 3, 3);
+ if(errn == 0) {
+ /* FirstStartTag[CHARACTERS[BOOLEAN]] */
+ errn = encodeNBitUnsignedInteger(stream, 1, 0);
+ if(errn == 0) {
+ errn = encodeBoolean(stream, iso2DisplayParametersType->InletHot);
+ /* valid EE */
+ errn = encodeNBitUnsignedInteger(stream, 1, 0);
+ }
+ }
+ grammarID = 3;
+ } else if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 3, 4);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 1909:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}ChargingComplete), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}BulkChargingComplete), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}InletHot), END_ELEMENT] */
+ if ( iso2DisplayParametersType->ChargingComplete_isUsed == 1u ) {
+ errn = encodeNBitUnsignedInteger(stream, 3, 0);
+ if(errn == 0) {
+ /* FirstStartTag[CHARACTERS[BOOLEAN]] */
+ errn = encodeNBitUnsignedInteger(stream, 1, 0);
+ if(errn == 0) {
+ errn = encodeBoolean(stream, iso2DisplayParametersType->ChargingComplete);
+ /* valid EE */
+ errn = encodeNBitUnsignedInteger(stream, 1, 0);
+ }
+ }
+ grammarID = 1910;
+ } else if ( iso2DisplayParametersType->BulkChargingComplete_isUsed == 1u ) {
+ errn = encodeNBitUnsignedInteger(stream, 3, 1);
+ if(errn == 0) {
+ /* FirstStartTag[CHARACTERS[BOOLEAN]] */
+ errn = encodeNBitUnsignedInteger(stream, 1, 0);
+ if(errn == 0) {
+ errn = encodeBoolean(stream, iso2DisplayParametersType->BulkChargingComplete);
+ /* valid EE */
+ errn = encodeNBitUnsignedInteger(stream, 1, 0);
+ }
+ }
+ grammarID = 1911;
+ } else if ( iso2DisplayParametersType->InletHot_isUsed == 1u ) {
+ errn = encodeNBitUnsignedInteger(stream, 3, 2);
+ if(errn == 0) {
+ /* FirstStartTag[CHARACTERS[BOOLEAN]] */
+ errn = encodeNBitUnsignedInteger(stream, 1, 0);
+ if(errn == 0) {
+ errn = encodeBoolean(stream, iso2DisplayParametersType->InletHot);
+ /* valid EE */
+ errn = encodeNBitUnsignedInteger(stream, 1, 0);
+ }
+ }
+ grammarID = 3;
+ } else if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 3, 3);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 1910:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}BulkChargingComplete), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}InletHot), END_ELEMENT] */
+ if ( iso2DisplayParametersType->BulkChargingComplete_isUsed == 1u ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ if(errn == 0) {
+ /* FirstStartTag[CHARACTERS[BOOLEAN]] */
+ errn = encodeNBitUnsignedInteger(stream, 1, 0);
+ if(errn == 0) {
+ errn = encodeBoolean(stream, iso2DisplayParametersType->BulkChargingComplete);
+ /* valid EE */
+ errn = encodeNBitUnsignedInteger(stream, 1, 0);
+ }
+ }
+ grammarID = 1911;
+ } else if ( iso2DisplayParametersType->InletHot_isUsed == 1u ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ /* FirstStartTag[CHARACTERS[BOOLEAN]] */
+ errn = encodeNBitUnsignedInteger(stream, 1, 0);
+ if(errn == 0) {
+ errn = encodeBoolean(stream, iso2DisplayParametersType->InletHot);
+ /* valid EE */
+ errn = encodeNBitUnsignedInteger(stream, 1, 0);
+ }
+ }
+ grammarID = 3;
+ } else if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 2);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 1911:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}InletHot), END_ELEMENT] */
+ if ( iso2DisplayParametersType->InletHot_isUsed == 1u ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ if(errn == 0) {
+ /* FirstStartTag[CHARACTERS[BOOLEAN]] */
+ errn = encodeNBitUnsignedInteger(stream, 1, 0);
+ if(errn == 0) {
+ errn = encodeBoolean(stream, iso2DisplayParametersType->InletHot);
+ /* valid EE */
+ errn = encodeNBitUnsignedInteger(stream, 1, 0);
+ }
+ }
+ grammarID = 3;
+ } else if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 3:
+ /* Element[END_ELEMENT] */
+ if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 1, 0);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } 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:2016:MsgDataTypes,DC_EVBidirectionalParameterType', base type name='DC_EVChargeParameterType', content type='ELEMENT', isAbstract='false', hasTypeId='false', final='0', block='0', particle='((("urn:iso:15118:2:2016:MsgDataTypes":DepartureTime),("urn:iso:15118:2:2016:MsgDataTypes":EVMaximumChargePower{0-1},"urn:iso:15118:2:2016:MsgDataTypes":EVMinimumChargePower{0-1},"urn:iso:15118:2:2016:MsgDataTypes":EVMaximumChargeCurrent,"urn:iso:15118:2:2016:MsgDataTypes":EVMinimumChargeCurrent,"urn:iso:15118:2:2016:MsgDataTypes":EVMaximumVoltage,"urn:iso:15118:2:2016:MsgDataTypes":EVTargetEnergyRequest{0-1},"urn:iso:15118:2:2016:MsgDataTypes":EVMaximumEnergyRequest{0-1},"urn:iso:15118:2:2016:MsgDataTypes":EVMinimumEnergyRequest{0-1},"urn:iso:15118:2:2016:MsgDataTypes":CurrentSOC{0-1},"urn:iso:15118:2:2016:MsgDataTypes":TargetSOC{0-1},"urn:iso:15118:2:2016:MsgDataTypes":BulkSOC{0-1})),("urn:iso:15118:2:2016:MsgDataTypes":EVMaximumDischargePower{0-1},"urn:iso:15118:2:2016:MsgDataTypes":EVMinimumDischargePower{0-1},"urn:iso:15118:2:2016:MsgDataTypes":EVMaximumDischargeCurrent,"urn:iso:15118:2:2016:MsgDataTypes":EVMinimumDischargeCurrent,"urn:iso:15118:2:2016:MsgDataTypes":EVMinimumVoltage,"urn:iso:15118:2:2016:MsgDataTypes":MinimumSOC{0-1}))', derivedBy='EXTENSION'. */
+static int encode_iso2DC_EVBidirectionalParameterType(bitstream_t* stream, struct iso2DC_EVBidirectionalParameterType* iso2DC_EVBidirectionalParameterType) {
+ int grammarID = 1912;
+ int done = 0;
+
+
+ while(!done) {
+ switch(grammarID) {
+ case 1912:
+ /* FirstStartTag[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}DepartureTime)] */
+ if ( 1 == 1 ) {
+ errn = encodeNBitUnsignedInteger(stream, 1, 0);
+ if(errn == 0) {
+ /* First(xsi:type)StartTag[CHARACTERS[UNSIGNED_INTEGER]] */
+ errn = encodeNBitUnsignedInteger(stream, 1, 0);
+ if(errn == 0) {
+ errn = encodeUnsignedInteger32(stream, iso2DC_EVBidirectionalParameterType->DepartureTime);
+ /* valid EE */
+ errn = encodeNBitUnsignedInteger(stream, 1, 0);
+ }
+ }
+ grammarID = 1913;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 1913:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}EVMaximumChargePower), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}EVMinimumChargePower), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}EVMaximumChargeCurrent)] */
+ if ( iso2DC_EVBidirectionalParameterType->EVMaximumChargePower_isUsed == 1u ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ if(errn == 0) {
+ errn = encode_iso2PhysicalValueType(stream, &iso2DC_EVBidirectionalParameterType->EVMaximumChargePower );
+ }
+ grammarID = 1914;
+ } else if ( iso2DC_EVBidirectionalParameterType->EVMinimumChargePower_isUsed == 1u ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ errn = encode_iso2PhysicalValueType(stream, &iso2DC_EVBidirectionalParameterType->EVMinimumChargePower );
+ }
+ grammarID = 1915;
+ } else if ( 1 == 1 ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 2);
+ if(errn == 0) {
+ errn = encode_iso2PhysicalValueType(stream, &iso2DC_EVBidirectionalParameterType->EVMaximumChargeCurrent );
+ }
+ grammarID = 1916;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 1914:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}EVMinimumChargePower), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}EVMaximumChargeCurrent)] */
+ if ( iso2DC_EVBidirectionalParameterType->EVMinimumChargePower_isUsed == 1u ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ if(errn == 0) {
+ errn = encode_iso2PhysicalValueType(stream, &iso2DC_EVBidirectionalParameterType->EVMinimumChargePower );
+ }
+ grammarID = 1915;
+ } else if ( 1 == 1 ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ errn = encode_iso2PhysicalValueType(stream, &iso2DC_EVBidirectionalParameterType->EVMaximumChargeCurrent );
+ }
+ grammarID = 1916;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 1915:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}EVMaximumChargeCurrent)] */
+ if ( 1 == 1 ) {
+ errn = encodeNBitUnsignedInteger(stream, 1, 0);
+ if(errn == 0) {
+ errn = encode_iso2PhysicalValueType(stream, &iso2DC_EVBidirectionalParameterType->EVMaximumChargeCurrent );
+ }
+ grammarID = 1916;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 1916:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}EVMinimumChargeCurrent)] */
+ if ( 1 == 1 ) {
+ errn = encodeNBitUnsignedInteger(stream, 1, 0);
+ if(errn == 0) {
+ errn = encode_iso2PhysicalValueType(stream, &iso2DC_EVBidirectionalParameterType->EVMinimumChargeCurrent );
+ }
+ grammarID = 1917;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 1917:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}EVMaximumVoltage)] */
+ if ( 1 == 1 ) {
+ errn = encodeNBitUnsignedInteger(stream, 1, 0);
+ if(errn == 0) {
+ errn = encode_iso2PhysicalValueType(stream, &iso2DC_EVBidirectionalParameterType->EVMaximumVoltage );
+ }
+ grammarID = 1918;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 1918:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}EVTargetEnergyRequest), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}EVMaximumEnergyRequest), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}EVMinimumEnergyRequest), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}CurrentSOC), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}TargetSOC), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}BulkSOC), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}EVMaximumDischargePower), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}EVMinimumDischargePower), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}EVMaximumDischargeCurrent)] */
+ if ( iso2DC_EVBidirectionalParameterType->EVTargetEnergyRequest_isUsed == 1u ) {
+ errn = encodeNBitUnsignedInteger(stream, 4, 0);
+ if(errn == 0) {
+ errn = encode_iso2PhysicalValueType(stream, &iso2DC_EVBidirectionalParameterType->EVTargetEnergyRequest );
+ }
+ grammarID = 1919;
+ } else if ( iso2DC_EVBidirectionalParameterType->EVMaximumEnergyRequest_isUsed == 1u ) {
+ errn = encodeNBitUnsignedInteger(stream, 4, 1);
+ if(errn == 0) {
+ errn = encode_iso2PhysicalValueType(stream, &iso2DC_EVBidirectionalParameterType->EVMaximumEnergyRequest );
+ }
+ grammarID = 1920;
+ } else if ( iso2DC_EVBidirectionalParameterType->EVMinimumEnergyRequest_isUsed == 1u ) {
+ errn = encodeNBitUnsignedInteger(stream, 4, 2);
+ if(errn == 0) {
+ errn = encode_iso2PhysicalValueType(stream, &iso2DC_EVBidirectionalParameterType->EVMinimumEnergyRequest );
+ }
+ grammarID = 1921;
+ } else if ( iso2DC_EVBidirectionalParameterType->CurrentSOC_isUsed == 1u ) {
+ errn = encodeNBitUnsignedInteger(stream, 4, 3);
+ if(errn == 0) {
+ /* FirstStartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
+ errn = encodeNBitUnsignedInteger(stream, 1, 0);
+ if(errn == 0) {
+ errn = encodeNBitUnsignedInteger(stream, 7, (uint32_t)(iso2DC_EVBidirectionalParameterType->CurrentSOC - 0));
+ /* valid EE */
+ errn = encodeNBitUnsignedInteger(stream, 1, 0);
+ }
+ }
+ grammarID = 1922;
+ } else if ( iso2DC_EVBidirectionalParameterType->TargetSOC_isUsed == 1u ) {
+ errn = encodeNBitUnsignedInteger(stream, 4, 4);
+ if(errn == 0) {
+ /* FirstStartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
+ errn = encodeNBitUnsignedInteger(stream, 1, 0);
+ if(errn == 0) {
+ errn = encodeNBitUnsignedInteger(stream, 7, (uint32_t)(iso2DC_EVBidirectionalParameterType->TargetSOC - 0));
+ /* valid EE */
+ errn = encodeNBitUnsignedInteger(stream, 1, 0);
+ }
+ }
+ grammarID = 1923;
+ } else if ( iso2DC_EVBidirectionalParameterType->BulkSOC_isUsed == 1u ) {
+ errn = encodeNBitUnsignedInteger(stream, 4, 5);
+ if(errn == 0) {
+ /* FirstStartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
+ errn = encodeNBitUnsignedInteger(stream, 1, 0);
+ if(errn == 0) {
+ errn = encodeNBitUnsignedInteger(stream, 7, (uint32_t)(iso2DC_EVBidirectionalParameterType->BulkSOC - 0));
+ /* valid EE */
+ errn = encodeNBitUnsignedInteger(stream, 1, 0);
+ }
+ }
+ grammarID = 1924;
+ } else if ( iso2DC_EVBidirectionalParameterType->EVMaximumDischargePower_isUsed == 1u ) {
+ errn = encodeNBitUnsignedInteger(stream, 4, 6);
+ if(errn == 0) {
+ errn = encode_iso2PhysicalValueType(stream, &iso2DC_EVBidirectionalParameterType->EVMaximumDischargePower );
+ }
+ grammarID = 1925;
+ } else if ( iso2DC_EVBidirectionalParameterType->EVMinimumDischargePower_isUsed == 1u ) {
+ errn = encodeNBitUnsignedInteger(stream, 4, 7);
+ if(errn == 0) {
+ errn = encode_iso2PhysicalValueType(stream, &iso2DC_EVBidirectionalParameterType->EVMinimumDischargePower );
+ }
+ grammarID = 1926;
+ } else if ( 1 == 1 ) {
+ errn = encodeNBitUnsignedInteger(stream, 4, 8);
+ if(errn == 0) {
+ errn = encode_iso2PhysicalValueType(stream, &iso2DC_EVBidirectionalParameterType->EVMaximumDischargeCurrent );
+ }
+ grammarID = 1927;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 1919:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}EVMaximumEnergyRequest), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}EVMinimumEnergyRequest), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}CurrentSOC), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}TargetSOC), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}BulkSOC), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}EVMaximumDischargePower), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}EVMinimumDischargePower), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}EVMaximumDischargeCurrent)] */
+ if ( iso2DC_EVBidirectionalParameterType->EVMaximumEnergyRequest_isUsed == 1u ) {
+ errn = encodeNBitUnsignedInteger(stream, 4, 0);
+ if(errn == 0) {
+ errn = encode_iso2PhysicalValueType(stream, &iso2DC_EVBidirectionalParameterType->EVMaximumEnergyRequest );
+ }
+ grammarID = 1920;
+ } else if ( iso2DC_EVBidirectionalParameterType->EVMinimumEnergyRequest_isUsed == 1u ) {
+ errn = encodeNBitUnsignedInteger(stream, 4, 1);
+ if(errn == 0) {
+ errn = encode_iso2PhysicalValueType(stream, &iso2DC_EVBidirectionalParameterType->EVMinimumEnergyRequest );
+ }
+ grammarID = 1921;
+ } else if ( iso2DC_EVBidirectionalParameterType->CurrentSOC_isUsed == 1u ) {
+ errn = encodeNBitUnsignedInteger(stream, 4, 2);
+ if(errn == 0) {
+ /* FirstStartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
+ errn = encodeNBitUnsignedInteger(stream, 1, 0);
+ if(errn == 0) {
+ errn = encodeNBitUnsignedInteger(stream, 7, (uint32_t)(iso2DC_EVBidirectionalParameterType->CurrentSOC - 0));
+ /* valid EE */
+ errn = encodeNBitUnsignedInteger(stream, 1, 0);
+ }
+ }
+ grammarID = 1922;
+ } else if ( iso2DC_EVBidirectionalParameterType->TargetSOC_isUsed == 1u ) {
+ errn = encodeNBitUnsignedInteger(stream, 4, 3);
+ if(errn == 0) {
+ /* FirstStartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
+ errn = encodeNBitUnsignedInteger(stream, 1, 0);
+ if(errn == 0) {
+ errn = encodeNBitUnsignedInteger(stream, 7, (uint32_t)(iso2DC_EVBidirectionalParameterType->TargetSOC - 0));
+ /* valid EE */
+ errn = encodeNBitUnsignedInteger(stream, 1, 0);
+ }
+ }
+ grammarID = 1923;
+ } else if ( iso2DC_EVBidirectionalParameterType->BulkSOC_isUsed == 1u ) {
+ errn = encodeNBitUnsignedInteger(stream, 4, 4);
+ if(errn == 0) {
+ /* FirstStartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
+ errn = encodeNBitUnsignedInteger(stream, 1, 0);
+ if(errn == 0) {
+ errn = encodeNBitUnsignedInteger(stream, 7, (uint32_t)(iso2DC_EVBidirectionalParameterType->BulkSOC - 0));
+ /* valid EE */
+ errn = encodeNBitUnsignedInteger(stream, 1, 0);
+ }
+ }
+ grammarID = 1924;
+ } else if ( iso2DC_EVBidirectionalParameterType->EVMaximumDischargePower_isUsed == 1u ) {
+ errn = encodeNBitUnsignedInteger(stream, 4, 5);
+ if(errn == 0) {
+ errn = encode_iso2PhysicalValueType(stream, &iso2DC_EVBidirectionalParameterType->EVMaximumDischargePower );
+ }
+ grammarID = 1925;
+ } else if ( iso2DC_EVBidirectionalParameterType->EVMinimumDischargePower_isUsed == 1u ) {
+ errn = encodeNBitUnsignedInteger(stream, 4, 6);
+ if(errn == 0) {
+ errn = encode_iso2PhysicalValueType(stream, &iso2DC_EVBidirectionalParameterType->EVMinimumDischargePower );
+ }
+ grammarID = 1926;
+ } else if ( 1 == 1 ) {
+ errn = encodeNBitUnsignedInteger(stream, 4, 7);
+ if(errn == 0) {
+ errn = encode_iso2PhysicalValueType(stream, &iso2DC_EVBidirectionalParameterType->EVMaximumDischargeCurrent );
+ }
+ grammarID = 1927;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 1920:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}EVMinimumEnergyRequest), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}CurrentSOC), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}TargetSOC), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}BulkSOC), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}EVMaximumDischargePower), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}EVMinimumDischargePower), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}EVMaximumDischargeCurrent)] */
+ if ( iso2DC_EVBidirectionalParameterType->EVMinimumEnergyRequest_isUsed == 1u ) {
+ errn = encodeNBitUnsignedInteger(stream, 3, 0);
+ if(errn == 0) {
+ errn = encode_iso2PhysicalValueType(stream, &iso2DC_EVBidirectionalParameterType->EVMinimumEnergyRequest );
+ }
+ grammarID = 1921;
+ } else if ( iso2DC_EVBidirectionalParameterType->CurrentSOC_isUsed == 1u ) {
+ errn = encodeNBitUnsignedInteger(stream, 3, 1);
+ if(errn == 0) {
+ /* FirstStartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
+ errn = encodeNBitUnsignedInteger(stream, 1, 0);
+ if(errn == 0) {
+ errn = encodeNBitUnsignedInteger(stream, 7, (uint32_t)(iso2DC_EVBidirectionalParameterType->CurrentSOC - 0));
+ /* valid EE */
+ errn = encodeNBitUnsignedInteger(stream, 1, 0);
+ }
+ }
+ grammarID = 1922;
+ } else if ( iso2DC_EVBidirectionalParameterType->TargetSOC_isUsed == 1u ) {
+ errn = encodeNBitUnsignedInteger(stream, 3, 2);
+ if(errn == 0) {
+ /* FirstStartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
+ errn = encodeNBitUnsignedInteger(stream, 1, 0);
+ if(errn == 0) {
+ errn = encodeNBitUnsignedInteger(stream, 7, (uint32_t)(iso2DC_EVBidirectionalParameterType->TargetSOC - 0));
+ /* valid EE */
+ errn = encodeNBitUnsignedInteger(stream, 1, 0);
+ }
+ }
+ grammarID = 1923;
+ } else if ( iso2DC_EVBidirectionalParameterType->BulkSOC_isUsed == 1u ) {
+ errn = encodeNBitUnsignedInteger(stream, 3, 3);
+ if(errn == 0) {
+ /* FirstStartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
+ errn = encodeNBitUnsignedInteger(stream, 1, 0);
+ if(errn == 0) {
+ errn = encodeNBitUnsignedInteger(stream, 7, (uint32_t)(iso2DC_EVBidirectionalParameterType->BulkSOC - 0));
+ /* valid EE */
+ errn = encodeNBitUnsignedInteger(stream, 1, 0);
+ }
+ }
+ grammarID = 1924;
+ } else if ( iso2DC_EVBidirectionalParameterType->EVMaximumDischargePower_isUsed == 1u ) {
+ errn = encodeNBitUnsignedInteger(stream, 3, 4);
+ if(errn == 0) {
+ errn = encode_iso2PhysicalValueType(stream, &iso2DC_EVBidirectionalParameterType->EVMaximumDischargePower );
+ }
+ grammarID = 1925;
+ } else if ( iso2DC_EVBidirectionalParameterType->EVMinimumDischargePower_isUsed == 1u ) {
+ errn = encodeNBitUnsignedInteger(stream, 3, 5);
+ if(errn == 0) {
+ errn = encode_iso2PhysicalValueType(stream, &iso2DC_EVBidirectionalParameterType->EVMinimumDischargePower );
+ }
+ grammarID = 1926;
+ } else if ( 1 == 1 ) {
+ errn = encodeNBitUnsignedInteger(stream, 3, 6);
+ if(errn == 0) {
+ errn = encode_iso2PhysicalValueType(stream, &iso2DC_EVBidirectionalParameterType->EVMaximumDischargeCurrent );
+ }
+ grammarID = 1927;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 1921:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}CurrentSOC), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}TargetSOC), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}BulkSOC), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}EVMaximumDischargePower), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}EVMinimumDischargePower), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}EVMaximumDischargeCurrent)] */
+ if ( iso2DC_EVBidirectionalParameterType->CurrentSOC_isUsed == 1u ) {
+ errn = encodeNBitUnsignedInteger(stream, 3, 0);
+ if(errn == 0) {
+ /* FirstStartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
+ errn = encodeNBitUnsignedInteger(stream, 1, 0);
+ if(errn == 0) {
+ errn = encodeNBitUnsignedInteger(stream, 7, (uint32_t)(iso2DC_EVBidirectionalParameterType->CurrentSOC - 0));
+ /* valid EE */
+ errn = encodeNBitUnsignedInteger(stream, 1, 0);
+ }
+ }
+ grammarID = 1922;
+ } else if ( iso2DC_EVBidirectionalParameterType->TargetSOC_isUsed == 1u ) {
+ errn = encodeNBitUnsignedInteger(stream, 3, 1);
+ if(errn == 0) {
+ /* FirstStartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
+ errn = encodeNBitUnsignedInteger(stream, 1, 0);
+ if(errn == 0) {
+ errn = encodeNBitUnsignedInteger(stream, 7, (uint32_t)(iso2DC_EVBidirectionalParameterType->TargetSOC - 0));
+ /* valid EE */
+ errn = encodeNBitUnsignedInteger(stream, 1, 0);
+ }
+ }
+ grammarID = 1923;
+ } else if ( iso2DC_EVBidirectionalParameterType->BulkSOC_isUsed == 1u ) {
+ errn = encodeNBitUnsignedInteger(stream, 3, 2);
+ if(errn == 0) {
+ /* FirstStartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
+ errn = encodeNBitUnsignedInteger(stream, 1, 0);
+ if(errn == 0) {
+ errn = encodeNBitUnsignedInteger(stream, 7, (uint32_t)(iso2DC_EVBidirectionalParameterType->BulkSOC - 0));
+ /* valid EE */
+ errn = encodeNBitUnsignedInteger(stream, 1, 0);
+ }
+ }
+ grammarID = 1924;
+ } else if ( iso2DC_EVBidirectionalParameterType->EVMaximumDischargePower_isUsed == 1u ) {
+ errn = encodeNBitUnsignedInteger(stream, 3, 3);
+ if(errn == 0) {
+ errn = encode_iso2PhysicalValueType(stream, &iso2DC_EVBidirectionalParameterType->EVMaximumDischargePower );
+ }
+ grammarID = 1925;
+ } else if ( iso2DC_EVBidirectionalParameterType->EVMinimumDischargePower_isUsed == 1u ) {
+ errn = encodeNBitUnsignedInteger(stream, 3, 4);
+ if(errn == 0) {
+ errn = encode_iso2PhysicalValueType(stream, &iso2DC_EVBidirectionalParameterType->EVMinimumDischargePower );
+ }
+ grammarID = 1926;
+ } else if ( 1 == 1 ) {
+ errn = encodeNBitUnsignedInteger(stream, 3, 5);
+ if(errn == 0) {
+ errn = encode_iso2PhysicalValueType(stream, &iso2DC_EVBidirectionalParameterType->EVMaximumDischargeCurrent );
+ }
+ grammarID = 1927;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 1922:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}TargetSOC), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}BulkSOC), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}EVMaximumDischargePower), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}EVMinimumDischargePower), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}EVMaximumDischargeCurrent)] */
+ if ( iso2DC_EVBidirectionalParameterType->TargetSOC_isUsed == 1u ) {
+ errn = encodeNBitUnsignedInteger(stream, 3, 0);
+ if(errn == 0) {
+ /* FirstStartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
+ errn = encodeNBitUnsignedInteger(stream, 1, 0);
+ if(errn == 0) {
+ errn = encodeNBitUnsignedInteger(stream, 7, (uint32_t)(iso2DC_EVBidirectionalParameterType->TargetSOC - 0));
+ /* valid EE */
+ errn = encodeNBitUnsignedInteger(stream, 1, 0);
+ }
+ }
+ grammarID = 1923;
+ } else if ( iso2DC_EVBidirectionalParameterType->BulkSOC_isUsed == 1u ) {
+ errn = encodeNBitUnsignedInteger(stream, 3, 1);
+ if(errn == 0) {
+ /* FirstStartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
+ errn = encodeNBitUnsignedInteger(stream, 1, 0);
+ if(errn == 0) {
+ errn = encodeNBitUnsignedInteger(stream, 7, (uint32_t)(iso2DC_EVBidirectionalParameterType->BulkSOC - 0));
+ /* valid EE */
+ errn = encodeNBitUnsignedInteger(stream, 1, 0);
+ }
+ }
+ grammarID = 1924;
+ } else if ( iso2DC_EVBidirectionalParameterType->EVMaximumDischargePower_isUsed == 1u ) {
+ errn = encodeNBitUnsignedInteger(stream, 3, 2);
+ if(errn == 0) {
+ errn = encode_iso2PhysicalValueType(stream, &iso2DC_EVBidirectionalParameterType->EVMaximumDischargePower );
+ }
+ grammarID = 1925;
+ } else if ( iso2DC_EVBidirectionalParameterType->EVMinimumDischargePower_isUsed == 1u ) {
+ errn = encodeNBitUnsignedInteger(stream, 3, 3);
+ if(errn == 0) {
+ errn = encode_iso2PhysicalValueType(stream, &iso2DC_EVBidirectionalParameterType->EVMinimumDischargePower );
+ }
+ grammarID = 1926;
+ } else if ( 1 == 1 ) {
+ errn = encodeNBitUnsignedInteger(stream, 3, 4);
+ if(errn == 0) {
+ errn = encode_iso2PhysicalValueType(stream, &iso2DC_EVBidirectionalParameterType->EVMaximumDischargeCurrent );
+ }
+ grammarID = 1927;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 1923:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}BulkSOC), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}EVMaximumDischargePower), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}EVMinimumDischargePower), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}EVMaximumDischargeCurrent)] */
+ if ( iso2DC_EVBidirectionalParameterType->BulkSOC_isUsed == 1u ) {
+ errn = encodeNBitUnsignedInteger(stream, 3, 0);
+ if(errn == 0) {
+ /* FirstStartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
+ errn = encodeNBitUnsignedInteger(stream, 1, 0);
+ if(errn == 0) {
+ errn = encodeNBitUnsignedInteger(stream, 7, (uint32_t)(iso2DC_EVBidirectionalParameterType->BulkSOC - 0));
+ /* valid EE */
+ errn = encodeNBitUnsignedInteger(stream, 1, 0);
+ }
+ }
+ grammarID = 1924;
+ } else if ( iso2DC_EVBidirectionalParameterType->EVMaximumDischargePower_isUsed == 1u ) {
+ errn = encodeNBitUnsignedInteger(stream, 3, 1);
+ if(errn == 0) {
+ errn = encode_iso2PhysicalValueType(stream, &iso2DC_EVBidirectionalParameterType->EVMaximumDischargePower );
+ }
+ grammarID = 1925;
+ } else if ( iso2DC_EVBidirectionalParameterType->EVMinimumDischargePower_isUsed == 1u ) {
+ errn = encodeNBitUnsignedInteger(stream, 3, 2);
+ if(errn == 0) {
+ errn = encode_iso2PhysicalValueType(stream, &iso2DC_EVBidirectionalParameterType->EVMinimumDischargePower );
+ }
+ grammarID = 1926;
+ } else if ( 1 == 1 ) {
+ errn = encodeNBitUnsignedInteger(stream, 3, 3);
+ if(errn == 0) {
+ errn = encode_iso2PhysicalValueType(stream, &iso2DC_EVBidirectionalParameterType->EVMaximumDischargeCurrent );
+ }
+ grammarID = 1927;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 1924:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}EVMaximumDischargePower), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}EVMinimumDischargePower), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}EVMaximumDischargeCurrent)] */
+ if ( iso2DC_EVBidirectionalParameterType->EVMaximumDischargePower_isUsed == 1u ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ if(errn == 0) {
+ errn = encode_iso2PhysicalValueType(stream, &iso2DC_EVBidirectionalParameterType->EVMaximumDischargePower );
+ }
+ grammarID = 1925;
+ } else if ( iso2DC_EVBidirectionalParameterType->EVMinimumDischargePower_isUsed == 1u ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ errn = encode_iso2PhysicalValueType(stream, &iso2DC_EVBidirectionalParameterType->EVMinimumDischargePower );
+ }
+ grammarID = 1926;
+ } else if ( 1 == 1 ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 2);
+ if(errn == 0) {
+ errn = encode_iso2PhysicalValueType(stream, &iso2DC_EVBidirectionalParameterType->EVMaximumDischargeCurrent );
+ }
+ grammarID = 1927;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 1925:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}EVMinimumDischargePower), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}EVMaximumDischargeCurrent)] */
+ if ( iso2DC_EVBidirectionalParameterType->EVMinimumDischargePower_isUsed == 1u ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ if(errn == 0) {
+ errn = encode_iso2PhysicalValueType(stream, &iso2DC_EVBidirectionalParameterType->EVMinimumDischargePower );
+ }
+ grammarID = 1926;
+ } else if ( 1 == 1 ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ errn = encode_iso2PhysicalValueType(stream, &iso2DC_EVBidirectionalParameterType->EVMaximumDischargeCurrent );
+ }
+ grammarID = 1927;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 1926:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}EVMaximumDischargeCurrent)] */
+ if ( 1 == 1 ) {
+ errn = encodeNBitUnsignedInteger(stream, 1, 0);
+ if(errn == 0) {
+ errn = encode_iso2PhysicalValueType(stream, &iso2DC_EVBidirectionalParameterType->EVMaximumDischargeCurrent );
+ }
+ grammarID = 1927;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 1927:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}EVMinimumDischargeCurrent)] */
+ if ( 1 == 1 ) {
+ errn = encodeNBitUnsignedInteger(stream, 1, 0);
+ if(errn == 0) {
+ errn = encode_iso2PhysicalValueType(stream, &iso2DC_EVBidirectionalParameterType->EVMinimumDischargeCurrent );
+ }
+ grammarID = 1928;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 1928:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}EVMinimumVoltage)] */
+ if ( 1 == 1 ) {
+ errn = encodeNBitUnsignedInteger(stream, 1, 0);
+ if(errn == 0) {
+ errn = encode_iso2PhysicalValueType(stream, &iso2DC_EVBidirectionalParameterType->EVMinimumVoltage );
+ }
+ grammarID = 1929;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 1929:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MinimumSOC), END_ELEMENT] */
+ if ( iso2DC_EVBidirectionalParameterType->MinimumSOC_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, 7, (uint32_t)(iso2DC_EVBidirectionalParameterType->MinimumSOC - 0));
+ /* valid EE */
+ errn = encodeNBitUnsignedInteger(stream, 1, 0);
+ }
+ }
+ grammarID = 3;
+ } else if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 3:
+ /* Element[END_ELEMENT] */
+ if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 1, 0);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } 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:2016:MsgBody,PaymentServiceSelectionReqType', base type name='BodyBaseType', content type='ELEMENT', isAbstract='false', hasTypeId='false', final='0', block='0', particle='("urn:iso:15118:2:2016:MsgBody":SelectedPaymentOption,"urn:iso:15118:2:2016:MsgBody":SelectedEnergyTransferService,"urn:iso:15118:2:2016:MsgBody":SelectedVASList{0-1})', derivedBy='EXTENSION'. */
+static int encode_iso2PaymentServiceSelectionReqType(bitstream_t* stream, struct iso2PaymentServiceSelectionReqType* iso2PaymentServiceSelectionReqType) {
+ int grammarID = 1930;
+ int done = 0;
+
+
+ while(!done) {
+ switch(grammarID) {
+ case 1930:
+ /* FirstStartTag[START_ELEMENT({urn:iso:15118:2:2016:MsgBody}SelectedPaymentOption)] */
+ 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, 1, iso2PaymentServiceSelectionReqType->SelectedPaymentOption);
+ /* valid EE */
+ errn = encodeNBitUnsignedInteger(stream, 1, 0);
+ }
+ }
+ grammarID = 1931;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 1931:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgBody}SelectedEnergyTransferService)] */
+ if ( 1 == 1 ) {
+ errn = encodeNBitUnsignedInteger(stream, 1, 0);
+ if(errn == 0) {
+ errn = encode_iso2SelectedServiceType(stream, &iso2PaymentServiceSelectionReqType->SelectedEnergyTransferService );
+ }
+ grammarID = 1932;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 1932:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgBody}SelectedVASList), END_ELEMENT] */
+ if ( iso2PaymentServiceSelectionReqType->SelectedVASList_isUsed == 1u ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ if(errn == 0) {
+ errn = encode_iso2SelectedServiceListType(stream, &iso2PaymentServiceSelectionReqType->SelectedVASList );
+ }
+ grammarID = 3;
+ } else if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 3:
+ /* Element[END_ELEMENT] */
+ if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 1, 0);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } 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:2016:MsgDataTypes,MagneticVectorType', base type name='anyType', content type='ELEMENT', isAbstract='false', hasTypeId='false', final='0', block='0', particle='("urn:iso:15118:2:2016:MsgDataTypes":GAID,"urn:iso:15118:2:2016:MsgDataTypes":Distance,"urn:iso:15118:2:2016:MsgDataTypes":AngleGAtoVA,"urn:iso:15118:2:2016:MsgDataTypes":RotationVAtoGA,"urn:iso:15118:2:2016:MsgDataTypes":FODStatus)', derivedBy='RESTRICTION'. */
+static int encode_iso2MagneticVectorType(bitstream_t* stream, struct iso2MagneticVectorType* iso2MagneticVectorType) {
+ int grammarID = 1933;
+ int done = 0;
+
+
+ while(!done) {
+ switch(grammarID) {
+ case 1933:
+ /* FirstStartTag[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}GAID)] */
+ if ( 1 == 1 ) {
+ errn = encodeNBitUnsignedInteger(stream, 1, 0);
+ if(errn == 0) {
+ /* FirstStartTag[CHARACTERS[STRING]] */
+ errn = encodeNBitUnsignedInteger(stream, 1, 0);
+ if(errn == 0) {
+ /* encode string as string table miss (+2 len)*/
+ errn = encodeUnsignedInteger16(stream, (uint16_t)(iso2MagneticVectorType->GAID.charactersLen + 2));
+ if (errn == 0) {
+ errn = encodeCharacters(stream, iso2MagneticVectorType->GAID.characters, iso2MagneticVectorType->GAID.charactersLen);
+ }
+ /* valid EE */
+ errn = encodeNBitUnsignedInteger(stream, 1, 0);
+ }
+ }
+ grammarID = 1934;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 1934:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}Distance)] */
+ if ( 1 == 1 ) {
+ errn = encodeNBitUnsignedInteger(stream, 1, 0);
+ if(errn == 0) {
+ /* First(xsi:type)StartTag[CHARACTERS[UNSIGNED_INTEGER]] */
+ errn = encodeNBitUnsignedInteger(stream, 1, 0);
+ if(errn == 0) {
+ errn = encodeUnsignedInteger16(stream, iso2MagneticVectorType->Distance);
+ /* valid EE */
+ errn = encodeNBitUnsignedInteger(stream, 1, 0);
+ }
+ }
+ grammarID = 1935;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 1935:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}AngleGAtoVA)] */
+ if ( 1 == 1 ) {
+ errn = encodeNBitUnsignedInteger(stream, 1, 0);
+ if(errn == 0) {
+ errn = encode_iso2PhysicalValueType(stream, &iso2MagneticVectorType->AngleGAtoVA );
+ }
+ grammarID = 1936;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 1936:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}RotationVAtoGA)] */
+ if ( 1 == 1 ) {
+ errn = encodeNBitUnsignedInteger(stream, 1, 0);
+ if(errn == 0) {
+ errn = encode_iso2PhysicalValueType(stream, &iso2MagneticVectorType->RotationVAtoGA );
+ }
+ grammarID = 1937;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 1937:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}FODStatus)] */
+ 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, iso2MagneticVectorType->FODStatus);
+ /* valid EE */
+ errn = encodeNBitUnsignedInteger(stream, 1, 0);
+ }
+ }
+ grammarID = 3;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 3:
+ /* Element[END_ELEMENT] */
+ if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 1, 0);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } 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:2016:MsgDataTypes,PhysicalValueType', base type name='anyType', content type='ELEMENT', isAbstract='false', hasTypeId='false', final='0', block='0', particle='("urn:iso:15118:2:2016:MsgDataTypes":Exponent,"urn:iso:15118:2:2016:MsgDataTypes":Value)', derivedBy='RESTRICTION'. */
+static int encode_iso2PhysicalValueType(bitstream_t* stream, struct iso2PhysicalValueType* iso2PhysicalValueType) {
+ int grammarID = 1938;
+ int done = 0;
+
+
+ while(!done) {
+ switch(grammarID) {
+ case 1938:
+ /* FirstStartTag[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}Exponent)] */
+ if ( 1 == 1 ) {
+ errn = encodeNBitUnsignedInteger(stream, 1, 0);
+ if(errn == 0) {
+ /* FirstStartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
+ errn = encodeNBitUnsignedInteger(stream, 1, 0);
+ if(errn == 0) {
+ errn = encodeNBitUnsignedInteger(stream, 3, (uint32_t)(iso2PhysicalValueType->Exponent + 3));
+ /* valid EE */
+ errn = encodeNBitUnsignedInteger(stream, 1, 0);
+ }
+ }
+ grammarID = 1939;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 1939:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}Value)] */
+ if ( 1 == 1 ) {
+ errn = encodeNBitUnsignedInteger(stream, 1, 0);
+ if(errn == 0) {
+ /* First(xsi:type)StartTag[CHARACTERS[INTEGER]] */
+ errn = encodeNBitUnsignedInteger(stream, 1, 0);
+ if(errn == 0) {
+ errn = encodeInteger16(stream, iso2PhysicalValueType->Value);
+ /* valid EE */
+ errn = encodeNBitUnsignedInteger(stream, 1, 0);
+ }
+ }
+ grammarID = 3;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 3:
+ /* Element[END_ELEMENT] */
+ if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 1, 0);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } 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:2016:MsgBody,SystemStatusReqType', base type name='BodyBaseType', content type='ELEMENT', isAbstract='false', hasTypeId='false', final='0', block='0', particle='("urn:iso:15118:2:2016:MsgBody":OperationMode,"urn:iso:15118:2:2016:MsgBody":EVMechanicalChargingDeviceStatus)', derivedBy='EXTENSION'. */
+static int encode_iso2SystemStatusReqType(bitstream_t* stream, struct iso2SystemStatusReqType* iso2SystemStatusReqType) {
+ int grammarID = 1940;
+ int done = 0;
+
+
+ while(!done) {
+ switch(grammarID) {
+ case 1940:
+ /* FirstStartTag[START_ELEMENT({urn:iso:15118:2:2016:MsgBody}OperationMode)] */
+ 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, 1, iso2SystemStatusReqType->OperationMode);
+ /* valid EE */
+ errn = encodeNBitUnsignedInteger(stream, 1, 0);
+ }
+ }
+ grammarID = 1497;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 1497:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgBody}EVMechanicalChargingDeviceStatus)] */
+ 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, iso2SystemStatusReqType->EVMechanicalChargingDeviceStatus);
+ /* valid EE */
+ errn = encodeNBitUnsignedInteger(stream, 1, 0);
+ }
+ }
+ grammarID = 3;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 3:
+ /* Element[END_ELEMENT] */
+ if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 1, 0);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } 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:2016:MsgBody,SystemStatusResType', base type name='V2GResponseType', content type='ELEMENT', isAbstract='false', hasTypeId='false', final='0', block='0', particle='(("urn:iso:15118:2:2016:MsgBody":ResponseCode,"urn:iso:15118:2:2016:MsgBody":EVSEStatus{0-1}),("urn:iso:15118:2:2016:MsgBody":OperationMode,"urn:iso:15118:2:2016:MsgBody":EVSEMechanicalChargingDeviceStatus))', derivedBy='EXTENSION'. */
+static int encode_iso2SystemStatusResType(bitstream_t* stream, struct iso2SystemStatusResType* iso2SystemStatusResType) {
+ int grammarID = 1941;
+ int done = 0;
+
+
+ while(!done) {
+ switch(grammarID) {
+ case 1941:
+ /* FirstStartTag[START_ELEMENT({urn:iso:15118:2:2016:MsgBody}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, 5, iso2SystemStatusResType->ResponseCode);
+ /* valid EE */
+ errn = encodeNBitUnsignedInteger(stream, 1, 0);
+ }
+ }
+ grammarID = 1942;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 1942:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgBody}EVSEStatus), START_ELEMENT({urn:iso:15118:2:2016:MsgBody}OperationMode)] */
+ if ( iso2SystemStatusResType->EVSEStatus_isUsed == 1u ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ if(errn == 0) {
+ errn = encode_iso2EVSEStatusType(stream, &iso2SystemStatusResType->EVSEStatus );
+ }
+ grammarID = 1943;
+ } else if ( 1 == 1 ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ /* FirstStartTag[CHARACTERS[ENUMERATION]] */
+ errn = encodeNBitUnsignedInteger(stream, 1, 0);
+ if(errn == 0) {
+ errn = encodeNBitUnsignedInteger(stream, 1, iso2SystemStatusResType->OperationMode);
+ /* valid EE */
+ errn = encodeNBitUnsignedInteger(stream, 1, 0);
+ }
+ }
+ grammarID = 595;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 1943:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgBody}OperationMode)] */
+ 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, 1, iso2SystemStatusResType->OperationMode);
+ /* valid EE */
+ errn = encodeNBitUnsignedInteger(stream, 1, 0);
+ }
+ }
+ grammarID = 595;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 595:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgBody}EVSEMechanicalChargingDeviceStatus)] */
+ 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, iso2SystemStatusResType->EVSEMechanicalChargingDeviceStatus);
+ /* valid EE */
+ errn = encodeNBitUnsignedInteger(stream, 1, 0);
+ }
+ }
+ grammarID = 3;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 3:
+ /* Element[END_ELEMENT] */
+ if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 1, 0);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } 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:2016:MsgDataTypes,EVSEFinePositioningSetupParametersType', base type name='anyType', content type='EMPTY', isAbstract='true', hasTypeId='false', final='0', block='0', derivedBy='RESTRICTION'. */
+static int encode_iso2EVSEFinePositioningSetupParametersType(bitstream_t* stream, struct iso2EVSEFinePositioningSetupParametersType* iso2EVSEFinePositioningSetupParametersType) {
+ int grammarID = 674;
+ int done = 0;
+
+
+ while(!done) {
+ switch(grammarID) {
+ case 674:
+ /* FirstStartTag[END_ELEMENT] */
+ if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 1, 0);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } 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:2016:MsgBody,V2GResponseType', base type name='BodyBaseType', content type='ELEMENT', isAbstract='true', hasTypeId='false', final='0', block='0', particle='("urn:iso:15118:2:2016:MsgBody":ResponseCode,"urn:iso:15118:2:2016:MsgBody":EVSEStatus{0-1})', derivedBy='EXTENSION'. */
+static int encode_iso2V2GResponseType(bitstream_t* stream, struct iso2V2GResponseType* iso2V2GResponseType) {
+ int grammarID = 599;
+ int done = 0;
+
+
+ while(!done) {
+ switch(grammarID) {
+ case 599:
+ /* FirstStartTag[START_ELEMENT({urn:iso:15118:2:2016:MsgBody}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, 5, iso2V2GResponseType->ResponseCode);
+ /* valid EE */
+ errn = encodeNBitUnsignedInteger(stream, 1, 0);
+ }
+ }
+ grammarID = 600;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 600:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgBody}EVSEStatus), END_ELEMENT] */
+ if ( iso2V2GResponseType->EVSEStatus_isUsed == 1u ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ if(errn == 0) {
+ errn = encode_iso2EVSEStatusType(stream, &iso2V2GResponseType->EVSEStatus );
+ }
+ grammarID = 3;
+ } else if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 3:
+ /* Element[END_ELEMENT] */
+ if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 1, 0);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } 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:2016:MsgBody,BodyType', base type name='anyType', content type='ELEMENT', isAbstract='false', hasTypeId='false', final='0', block='0', particle='("urn:iso:15118:2:2016:MsgBody":BodyElement)', derivedBy='RESTRICTION'. */
+static int encode_iso2BodyType(bitstream_t* stream, struct iso2BodyType* iso2BodyType) {
+ int grammarID = 1944;
+ int done = 0;
+
+
+ while(!done) {
+ switch(grammarID) {
+ case 1944:
+ /* FirstStartTag[START_ELEMENT({urn:iso:15118:2:2016:MsgBody}AC_BidirectionalControlReq), START_ELEMENT({urn:iso:15118:2:2016:MsgBody}AC_BidirectionalControlRes), START_ELEMENT({urn:iso:15118:2:2016:MsgBody}AlignmentCheckReq), START_ELEMENT({urn:iso:15118:2:2016:MsgBody}AlignmentCheckRes), START_ELEMENT({urn:iso:15118:2:2016:MsgBody}AuthorizationReq), START_ELEMENT({urn:iso:15118:2:2016:MsgBody}AuthorizationRes), START_ELEMENT({urn:iso:15118:2:2016:MsgBody}BodyElement), START_ELEMENT({urn:iso:15118:2:2016:MsgBody}CableCheckReq), START_ELEMENT({urn:iso:15118:2:2016:MsgBody}CableCheckRes), START_ELEMENT({urn:iso:15118:2:2016:MsgBody}CertificateInstallationReq), START_ELEMENT({urn:iso:15118:2:2016:MsgBody}CertificateInstallationRes), START_ELEMENT({urn:iso:15118:2:2016:MsgBody}CertificateUpdateReq), START_ELEMENT({urn:iso:15118:2:2016:MsgBody}CertificateUpdateRes), START_ELEMENT({urn:iso:15118:2:2016:MsgBody}ChargeParameterDiscoveryReq), START_ELEMENT({urn:iso:15118:2:2016:MsgBody}ChargeParameterDiscoveryRes), START_ELEMENT({urn:iso:15118:2:2016:MsgBody}ChargingStatusReq), START_ELEMENT({urn:iso:15118:2:2016:MsgBody}ChargingStatusRes), START_ELEMENT({urn:iso:15118:2:2016:MsgBody}ConnectChargingDeviceReq), START_ELEMENT({urn:iso:15118:2:2016:MsgBody}ConnectChargingDeviceRes), START_ELEMENT({urn:iso:15118:2:2016:MsgBody}CurrentDemandReq), START_ELEMENT({urn:iso:15118:2:2016:MsgBody}CurrentDemandRes), START_ELEMENT({urn:iso:15118:2:2016:MsgBody}DC_BidirectionalControlReq), START_ELEMENT({urn:iso:15118:2:2016:MsgBody}DC_BidirectionalControlRes), START_ELEMENT({urn:iso:15118:2:2016:MsgBody}DisconnectChargingDeviceReq), START_ELEMENT({urn:iso:15118:2:2016:MsgBody}DisconnectChargingDeviceRes), START_ELEMENT({urn:iso:15118:2:2016:MsgBody}FinePositioningReq), START_ELEMENT({urn:iso:15118:2:2016:MsgBody}FinePositioningRes), START_ELEMENT({urn:iso:15118:2:2016:MsgBody}FinePositioningSetupReq), START_ELEMENT({urn:iso:15118:2:2016:MsgBody}FinePositioningSetupRes), START_ELEMENT({urn:iso:15118:2:2016:MsgBody}MeteringReceiptReq), START_ELEMENT({urn:iso:15118:2:2016:MsgBody}MeteringReceiptRes), START_ELEMENT({urn:iso:15118:2:2016:MsgBody}PairingReq), START_ELEMENT({urn:iso:15118:2:2016:MsgBody}PairingRes), START_ELEMENT({urn:iso:15118:2:2016:MsgBody}PaymentDetailsReq), START_ELEMENT({urn:iso:15118:2:2016:MsgBody}PaymentDetailsRes), START_ELEMENT({urn:iso:15118:2:2016:MsgBody}PaymentServiceSelectionReq), START_ELEMENT({urn:iso:15118:2:2016:MsgBody}PaymentServiceSelectionRes), START_ELEMENT({urn:iso:15118:2:2016:MsgBody}PowerDeliveryReq), START_ELEMENT({urn:iso:15118:2:2016:MsgBody}PowerDeliveryRes), START_ELEMENT({urn:iso:15118:2:2016:MsgBody}PowerDemandReq), START_ELEMENT({urn:iso:15118:2:2016:MsgBody}PowerDemandRes), START_ELEMENT({urn:iso:15118:2:2016:MsgBody}PreChargeReq), START_ELEMENT({urn:iso:15118:2:2016:MsgBody}PreChargeRes), START_ELEMENT({urn:iso:15118:2:2016:MsgBody}ServiceDetailReq), START_ELEMENT({urn:iso:15118:2:2016:MsgBody}ServiceDetailRes), START_ELEMENT({urn:iso:15118:2:2016:MsgBody}ServiceDiscoveryReq), START_ELEMENT({urn:iso:15118:2:2016:MsgBody}ServiceDiscoveryRes), START_ELEMENT({urn:iso:15118:2:2016:MsgBody}SessionSetupReq), START_ELEMENT({urn:iso:15118:2:2016:MsgBody}SessionSetupRes), START_ELEMENT({urn:iso:15118:2:2016:MsgBody}SessionStopReq), START_ELEMENT({urn:iso:15118:2:2016:MsgBody}SessionStopRes), START_ELEMENT({urn:iso:15118:2:2016:MsgBody}SystemStatusReq), START_ELEMENT({urn:iso:15118:2:2016:MsgBody}SystemStatusRes), START_ELEMENT({urn:iso:15118:2:2016:MsgBody}V2GRequest), START_ELEMENT({urn:iso:15118:2:2016:MsgBody}V2GResponse), START_ELEMENT({urn:iso:15118:2:2016:MsgBody}VehicleCheckInReq), START_ELEMENT({urn:iso:15118:2:2016:MsgBody}VehicleCheckInRes), START_ELEMENT({urn:iso:15118:2:2016:MsgBody}VehicleCheckOutReq), START_ELEMENT({urn:iso:15118:2:2016:MsgBody}VehicleCheckOutRes), START_ELEMENT({urn:iso:15118:2:2016:MsgBody}WeldingDetectionReq), START_ELEMENT({urn:iso:15118:2:2016:MsgBody}WeldingDetectionRes)] */
+ if ( iso2BodyType->AC_BidirectionalControlReq_isUsed == 1u ) {
+ errn = encodeNBitUnsignedInteger(stream, 6, 0);
+ if(errn == 0) {
+ errn = encode_iso2AC_BidirectionalControlReqType(stream, &iso2BodyType->AC_BidirectionalControlReq );
+ }
+ grammarID = 3;
+ } else if ( iso2BodyType->AC_BidirectionalControlRes_isUsed == 1u ) {
+ errn = encodeNBitUnsignedInteger(stream, 6, 1);
+ if(errn == 0) {
+ errn = encode_iso2AC_BidirectionalControlResType(stream, &iso2BodyType->AC_BidirectionalControlRes );
+ }
+ grammarID = 3;
+ } else if ( iso2BodyType->AlignmentCheckReq_isUsed == 1u ) {
+ errn = encodeNBitUnsignedInteger(stream, 6, 2);
+ if(errn == 0) {
+ errn = encode_iso2AlignmentCheckReqType(stream, &iso2BodyType->AlignmentCheckReq );
+ }
+ grammarID = 3;
+ } else if ( iso2BodyType->AlignmentCheckRes_isUsed == 1u ) {
+ errn = encodeNBitUnsignedInteger(stream, 6, 3);
+ if(errn == 0) {
+ errn = encode_iso2AlignmentCheckResType(stream, &iso2BodyType->AlignmentCheckRes );
+ }
+ grammarID = 3;
+ } else if ( iso2BodyType->AuthorizationReq_isUsed == 1u ) {
+ errn = encodeNBitUnsignedInteger(stream, 6, 4);
+ if(errn == 0) {
+ errn = encode_iso2AuthorizationReqType(stream, &iso2BodyType->AuthorizationReq );
+ }
+ grammarID = 3;
+ } else if ( iso2BodyType->AuthorizationRes_isUsed == 1u ) {
+ errn = encodeNBitUnsignedInteger(stream, 6, 5);
+ if(errn == 0) {
+ errn = encode_iso2AuthorizationResType(stream, &iso2BodyType->AuthorizationRes );
+ }
+ grammarID = 3;
+ } else if ( iso2BodyType->BodyElement_isUsed == 1u ) {
+ errn = encodeNBitUnsignedInteger(stream, 6, 6);
+ if(errn == 0) {
+ errn = encode_iso2BodyBaseType(stream, &iso2BodyType->BodyElement );
+ }
+ grammarID = 3;
+ } else if ( iso2BodyType->CableCheckReq_isUsed == 1u ) {
+ errn = encodeNBitUnsignedInteger(stream, 6, 7);
+ if(errn == 0) {
+ errn = encode_iso2CableCheckReqType(stream, &iso2BodyType->CableCheckReq );
+ }
+ grammarID = 3;
+ } else if ( iso2BodyType->CableCheckRes_isUsed == 1u ) {
+ errn = encodeNBitUnsignedInteger(stream, 6, 8);
+ if(errn == 0) {
+ errn = encode_iso2CableCheckResType(stream, &iso2BodyType->CableCheckRes );
+ }
+ grammarID = 3;
+ } else if ( iso2BodyType->CertificateInstallationReq_isUsed == 1u ) {
+ errn = encodeNBitUnsignedInteger(stream, 6, 9);
+ if(errn == 0) {
+ errn = encode_iso2CertificateInstallationReqType(stream, &iso2BodyType->CertificateInstallationReq );
+ }
+ grammarID = 3;
+ } else if ( iso2BodyType->CertificateInstallationRes_isUsed == 1u ) {
+ errn = encodeNBitUnsignedInteger(stream, 6, 10);
+ if(errn == 0) {
+ errn = encode_iso2CertificateInstallationResType(stream, &iso2BodyType->CertificateInstallationRes );
+ }
+ grammarID = 3;
+ } else if ( iso2BodyType->CertificateUpdateReq_isUsed == 1u ) {
+ errn = encodeNBitUnsignedInteger(stream, 6, 11);
+ if(errn == 0) {
+ errn = encode_iso2CertificateUpdateReqType(stream, &iso2BodyType->CertificateUpdateReq );
+ }
+ grammarID = 3;
+ } else if ( iso2BodyType->CertificateUpdateRes_isUsed == 1u ) {
+ errn = encodeNBitUnsignedInteger(stream, 6, 12);
+ if(errn == 0) {
+ errn = encode_iso2CertificateUpdateResType(stream, &iso2BodyType->CertificateUpdateRes );
+ }
+ grammarID = 3;
+ } else if ( iso2BodyType->ChargeParameterDiscoveryReq_isUsed == 1u ) {
+ errn = encodeNBitUnsignedInteger(stream, 6, 13);
+ if(errn == 0) {
+ errn = encode_iso2ChargeParameterDiscoveryReqType(stream, &iso2BodyType->ChargeParameterDiscoveryReq );
+ }
+ grammarID = 3;
+ } else if ( iso2BodyType->ChargeParameterDiscoveryRes_isUsed == 1u ) {
+ errn = encodeNBitUnsignedInteger(stream, 6, 14);
+ if(errn == 0) {
+ errn = encode_iso2ChargeParameterDiscoveryResType(stream, &iso2BodyType->ChargeParameterDiscoveryRes );
+ }
+ grammarID = 3;
+ } else if ( iso2BodyType->ChargingStatusReq_isUsed == 1u ) {
+ errn = encodeNBitUnsignedInteger(stream, 6, 15);
+ if(errn == 0) {
+ errn = encode_iso2ChargingStatusReqType(stream, &iso2BodyType->ChargingStatusReq );
+ }
+ grammarID = 3;
+ } else if ( iso2BodyType->ChargingStatusRes_isUsed == 1u ) {
+ errn = encodeNBitUnsignedInteger(stream, 6, 16);
+ if(errn == 0) {
+ errn = encode_iso2ChargingStatusResType(stream, &iso2BodyType->ChargingStatusRes );
+ }
+ grammarID = 3;
+ } else if ( iso2BodyType->ConnectChargingDeviceReq_isUsed == 1u ) {
+ errn = encodeNBitUnsignedInteger(stream, 6, 17);
+ if(errn == 0) {
+ errn = encode_iso2ConnectChargingDeviceReqType(stream, &iso2BodyType->ConnectChargingDeviceReq );
+ }
+ grammarID = 3;
+ } else if ( iso2BodyType->ConnectChargingDeviceRes_isUsed == 1u ) {
+ errn = encodeNBitUnsignedInteger(stream, 6, 18);
+ if(errn == 0) {
+ errn = encode_iso2ConnectChargingDeviceResType(stream, &iso2BodyType->ConnectChargingDeviceRes );
+ }
+ grammarID = 3;
+ } else if ( iso2BodyType->CurrentDemandReq_isUsed == 1u ) {
+ errn = encodeNBitUnsignedInteger(stream, 6, 19);
+ if(errn == 0) {
+ errn = encode_iso2CurrentDemandReqType(stream, &iso2BodyType->CurrentDemandReq );
+ }
+ grammarID = 3;
+ } else if ( iso2BodyType->CurrentDemandRes_isUsed == 1u ) {
+ errn = encodeNBitUnsignedInteger(stream, 6, 20);
+ if(errn == 0) {
+ errn = encode_iso2CurrentDemandResType(stream, &iso2BodyType->CurrentDemandRes );
+ }
+ grammarID = 3;
+ } else if ( iso2BodyType->DC_BidirectionalControlReq_isUsed == 1u ) {
+ errn = encodeNBitUnsignedInteger(stream, 6, 21);
+ if(errn == 0) {
+ errn = encode_iso2DC_BidirectionalControlReqType(stream, &iso2BodyType->DC_BidirectionalControlReq );
+ }
+ grammarID = 3;
+ } else if ( iso2BodyType->DC_BidirectionalControlRes_isUsed == 1u ) {
+ errn = encodeNBitUnsignedInteger(stream, 6, 22);
+ if(errn == 0) {
+ errn = encode_iso2DC_BidirectionalControlResType(stream, &iso2BodyType->DC_BidirectionalControlRes );
+ }
+ grammarID = 3;
+ } else if ( iso2BodyType->DisconnectChargingDeviceReq_isUsed == 1u ) {
+ errn = encodeNBitUnsignedInteger(stream, 6, 23);
+ if(errn == 0) {
+ errn = encode_iso2DisconnectChargingDeviceReqType(stream, &iso2BodyType->DisconnectChargingDeviceReq );
+ }
+ grammarID = 3;
+ } else if ( iso2BodyType->DisconnectChargingDeviceRes_isUsed == 1u ) {
+ errn = encodeNBitUnsignedInteger(stream, 6, 24);
+ if(errn == 0) {
+ errn = encode_iso2DisconnectChargingDeviceResType(stream, &iso2BodyType->DisconnectChargingDeviceRes );
+ }
+ grammarID = 3;
+ } else if ( iso2BodyType->FinePositioningReq_isUsed == 1u ) {
+ errn = encodeNBitUnsignedInteger(stream, 6, 25);
+ if(errn == 0) {
+ errn = encode_iso2FinePositioningReqType(stream, &iso2BodyType->FinePositioningReq );
+ }
+ grammarID = 3;
+ } else if ( iso2BodyType->FinePositioningRes_isUsed == 1u ) {
+ errn = encodeNBitUnsignedInteger(stream, 6, 26);
+ if(errn == 0) {
+ errn = encode_iso2FinePositioningResType(stream, &iso2BodyType->FinePositioningRes );
+ }
+ grammarID = 3;
+ } else if ( iso2BodyType->FinePositioningSetupReq_isUsed == 1u ) {
+ errn = encodeNBitUnsignedInteger(stream, 6, 27);
+ if(errn == 0) {
+ errn = encode_iso2FinePositioningSetupReqType(stream, &iso2BodyType->FinePositioningSetupReq );
+ }
+ grammarID = 3;
+ } else if ( iso2BodyType->FinePositioningSetupRes_isUsed == 1u ) {
+ errn = encodeNBitUnsignedInteger(stream, 6, 28);
+ if(errn == 0) {
+ errn = encode_iso2FinePositioningSetupResType(stream, &iso2BodyType->FinePositioningSetupRes );
+ }
+ grammarID = 3;
+ } else if ( iso2BodyType->MeteringReceiptReq_isUsed == 1u ) {
+ errn = encodeNBitUnsignedInteger(stream, 6, 29);
+ if(errn == 0) {
+ errn = encode_iso2MeteringReceiptReqType(stream, &iso2BodyType->MeteringReceiptReq );
+ }
+ grammarID = 3;
+ } else if ( iso2BodyType->MeteringReceiptRes_isUsed == 1u ) {
+ errn = encodeNBitUnsignedInteger(stream, 6, 30);
+ if(errn == 0) {
+ errn = encode_iso2MeteringReceiptResType(stream, &iso2BodyType->MeteringReceiptRes );
+ }
+ grammarID = 3;
+ } else if ( iso2BodyType->PairingReq_isUsed == 1u ) {
+ errn = encodeNBitUnsignedInteger(stream, 6, 31);
+ if(errn == 0) {
+ errn = encode_iso2PairingReqType(stream, &iso2BodyType->PairingReq );
+ }
+ grammarID = 3;
+ } else if ( iso2BodyType->PairingRes_isUsed == 1u ) {
+ errn = encodeNBitUnsignedInteger(stream, 6, 32);
+ if(errn == 0) {
+ errn = encode_iso2PairingResType(stream, &iso2BodyType->PairingRes );
+ }
+ grammarID = 3;
+ } else if ( iso2BodyType->PaymentDetailsReq_isUsed == 1u ) {
+ errn = encodeNBitUnsignedInteger(stream, 6, 33);
+ if(errn == 0) {
+ errn = encode_iso2PaymentDetailsReqType(stream, &iso2BodyType->PaymentDetailsReq );
+ }
+ grammarID = 3;
+ } else if ( iso2BodyType->PaymentDetailsRes_isUsed == 1u ) {
+ errn = encodeNBitUnsignedInteger(stream, 6, 34);
+ if(errn == 0) {
+ errn = encode_iso2PaymentDetailsResType(stream, &iso2BodyType->PaymentDetailsRes );
+ }
+ grammarID = 3;
+ } else if ( iso2BodyType->PaymentServiceSelectionReq_isUsed == 1u ) {
+ errn = encodeNBitUnsignedInteger(stream, 6, 35);
+ if(errn == 0) {
+ errn = encode_iso2PaymentServiceSelectionReqType(stream, &iso2BodyType->PaymentServiceSelectionReq );
+ }
+ grammarID = 3;
+ } else if ( iso2BodyType->PaymentServiceSelectionRes_isUsed == 1u ) {
+ errn = encodeNBitUnsignedInteger(stream, 6, 36);
+ if(errn == 0) {
+ errn = encode_iso2PaymentServiceSelectionResType(stream, &iso2BodyType->PaymentServiceSelectionRes );
+ }
+ grammarID = 3;
+ } else if ( iso2BodyType->PowerDeliveryReq_isUsed == 1u ) {
+ errn = encodeNBitUnsignedInteger(stream, 6, 37);
+ if(errn == 0) {
+ errn = encode_iso2PowerDeliveryReqType(stream, &iso2BodyType->PowerDeliveryReq );
+ }
+ grammarID = 3;
+ } else if ( iso2BodyType->PowerDeliveryRes_isUsed == 1u ) {
+ errn = encodeNBitUnsignedInteger(stream, 6, 38);
+ if(errn == 0) {
+ errn = encode_iso2PowerDeliveryResType(stream, &iso2BodyType->PowerDeliveryRes );
+ }
+ grammarID = 3;
+ } else if ( iso2BodyType->PowerDemandReq_isUsed == 1u ) {
+ errn = encodeNBitUnsignedInteger(stream, 6, 39);
+ if(errn == 0) {
+ errn = encode_iso2PowerDemandReqType(stream, &iso2BodyType->PowerDemandReq );
+ }
+ grammarID = 3;
+ } else if ( iso2BodyType->PowerDemandRes_isUsed == 1u ) {
+ errn = encodeNBitUnsignedInteger(stream, 6, 40);
+ if(errn == 0) {
+ errn = encode_iso2PowerDemandResType(stream, &iso2BodyType->PowerDemandRes );
+ }
+ grammarID = 3;
+ } else if ( iso2BodyType->PreChargeReq_isUsed == 1u ) {
+ errn = encodeNBitUnsignedInteger(stream, 6, 41);
+ if(errn == 0) {
+ errn = encode_iso2PreChargeReqType(stream, &iso2BodyType->PreChargeReq );
+ }
+ grammarID = 3;
+ } else if ( iso2BodyType->PreChargeRes_isUsed == 1u ) {
+ errn = encodeNBitUnsignedInteger(stream, 6, 42);
+ if(errn == 0) {
+ errn = encode_iso2PreChargeResType(stream, &iso2BodyType->PreChargeRes );
+ }
+ grammarID = 3;
+ } else if ( iso2BodyType->ServiceDetailReq_isUsed == 1u ) {
+ errn = encodeNBitUnsignedInteger(stream, 6, 43);
+ if(errn == 0) {
+ errn = encode_iso2ServiceDetailReqType(stream, &iso2BodyType->ServiceDetailReq );
+ }
+ grammarID = 3;
+ } else if ( iso2BodyType->ServiceDetailRes_isUsed == 1u ) {
+ errn = encodeNBitUnsignedInteger(stream, 6, 44);
+ if(errn == 0) {
+ errn = encode_iso2ServiceDetailResType(stream, &iso2BodyType->ServiceDetailRes );
+ }
+ grammarID = 3;
+ } else if ( iso2BodyType->ServiceDiscoveryReq_isUsed == 1u ) {
+ errn = encodeNBitUnsignedInteger(stream, 6, 45);
+ if(errn == 0) {
+ errn = encode_iso2ServiceDiscoveryReqType(stream, &iso2BodyType->ServiceDiscoveryReq );
+ }
+ grammarID = 3;
+ } else if ( iso2BodyType->ServiceDiscoveryRes_isUsed == 1u ) {
+ errn = encodeNBitUnsignedInteger(stream, 6, 46);
+ if(errn == 0) {
+ errn = encode_iso2ServiceDiscoveryResType(stream, &iso2BodyType->ServiceDiscoveryRes );
+ }
+ grammarID = 3;
+ } else if ( iso2BodyType->SessionSetupReq_isUsed == 1u ) {
+ errn = encodeNBitUnsignedInteger(stream, 6, 47);
+ if(errn == 0) {
+ errn = encode_iso2SessionSetupReqType(stream, &iso2BodyType->SessionSetupReq );
+ }
+ grammarID = 3;
+ } else if ( iso2BodyType->SessionSetupRes_isUsed == 1u ) {
+ errn = encodeNBitUnsignedInteger(stream, 6, 48);
+ if(errn == 0) {
+ errn = encode_iso2SessionSetupResType(stream, &iso2BodyType->SessionSetupRes );
+ }
+ grammarID = 3;
+ } else if ( iso2BodyType->SessionStopReq_isUsed == 1u ) {
+ errn = encodeNBitUnsignedInteger(stream, 6, 49);
+ if(errn == 0) {
+ errn = encode_iso2SessionStopReqType(stream, &iso2BodyType->SessionStopReq );
+ }
+ grammarID = 3;
+ } else if ( iso2BodyType->SessionStopRes_isUsed == 1u ) {
+ errn = encodeNBitUnsignedInteger(stream, 6, 50);
+ if(errn == 0) {
+ errn = encode_iso2SessionStopResType(stream, &iso2BodyType->SessionStopRes );
+ }
+ grammarID = 3;
+ } else if ( iso2BodyType->SystemStatusReq_isUsed == 1u ) {
+ errn = encodeNBitUnsignedInteger(stream, 6, 51);
+ if(errn == 0) {
+ errn = encode_iso2SystemStatusReqType(stream, &iso2BodyType->SystemStatusReq );
+ }
+ grammarID = 3;
+ } else if ( iso2BodyType->SystemStatusRes_isUsed == 1u ) {
+ errn = encodeNBitUnsignedInteger(stream, 6, 52);
+ if(errn == 0) {
+ errn = encode_iso2SystemStatusResType(stream, &iso2BodyType->SystemStatusRes );
+ }
+ grammarID = 3;
+ } else if ( iso2BodyType->V2GRequest_isUsed == 1u ) {
+ errn = encodeNBitUnsignedInteger(stream, 6, 53);
+ if(errn == 0) {
+ errn = encode_iso2BodyBaseType(stream, &iso2BodyType->V2GRequest );
+ }
+ grammarID = 3;
+ } else if ( iso2BodyType->V2GResponse_isUsed == 1u ) {
+ errn = encodeNBitUnsignedInteger(stream, 6, 54);
+ if(errn == 0) {
+ errn = encode_iso2V2GResponseType(stream, &iso2BodyType->V2GResponse );
+ }
+ grammarID = 3;
+ } else if ( iso2BodyType->VehicleCheckInReq_isUsed == 1u ) {
+ errn = encodeNBitUnsignedInteger(stream, 6, 55);
+ if(errn == 0) {
+ errn = encode_iso2VehicleCheckInReqType(stream, &iso2BodyType->VehicleCheckInReq );
+ }
+ grammarID = 3;
+ } else if ( iso2BodyType->VehicleCheckInRes_isUsed == 1u ) {
+ errn = encodeNBitUnsignedInteger(stream, 6, 56);
+ if(errn == 0) {
+ errn = encode_iso2VehicleCheckInResType(stream, &iso2BodyType->VehicleCheckInRes );
+ }
+ grammarID = 3;
+ } else if ( iso2BodyType->VehicleCheckOutReq_isUsed == 1u ) {
+ errn = encodeNBitUnsignedInteger(stream, 6, 57);
+ if(errn == 0) {
+ errn = encode_iso2VehicleCheckOutReqType(stream, &iso2BodyType->VehicleCheckOutReq );
+ }
+ grammarID = 3;
+ } else if ( iso2BodyType->VehicleCheckOutRes_isUsed == 1u ) {
+ errn = encodeNBitUnsignedInteger(stream, 6, 58);
+ if(errn == 0) {
+ errn = encode_iso2VehicleCheckOutResType(stream, &iso2BodyType->VehicleCheckOutRes );
+ }
+ grammarID = 3;
+ } else if ( iso2BodyType->WeldingDetectionReq_isUsed == 1u ) {
+ errn = encodeNBitUnsignedInteger(stream, 6, 59);
+ if(errn == 0) {
+ errn = encode_iso2WeldingDetectionReqType(stream, &iso2BodyType->WeldingDetectionReq );
+ }
+ grammarID = 3;
+ } else if ( iso2BodyType->WeldingDetectionRes_isUsed == 1u ) {
+ errn = encodeNBitUnsignedInteger(stream, 6, 60);
+ if(errn == 0) {
+ errn = encode_iso2WeldingDetectionResType(stream, &iso2BodyType->WeldingDetectionRes );
+ }
+ grammarID = 3;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 3:
+ /* Element[END_ELEMENT] */
+ if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 1, 0);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } 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:2016:MsgBody,PreChargeResType', base type name='V2GResponseType', content type='ELEMENT', isAbstract='false', hasTypeId='false', final='0', block='0', particle='(("urn:iso:15118:2:2016:MsgBody":ResponseCode,"urn:iso:15118:2:2016:MsgBody":EVSEStatus{0-1}),("urn:iso:15118:2:2016:MsgBody":EVSEPresentVoltage))', derivedBy='EXTENSION'. */
+static int encode_iso2PreChargeResType(bitstream_t* stream, struct iso2PreChargeResType* iso2PreChargeResType) {
+ int grammarID = 596;
+ int done = 0;
+
+
+ while(!done) {
+ switch(grammarID) {
+ case 596:
+ /* FirstStartTag[START_ELEMENT({urn:iso:15118:2:2016:MsgBody}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, 5, iso2PreChargeResType->ResponseCode);
+ /* valid EE */
+ errn = encodeNBitUnsignedInteger(stream, 1, 0);
+ }
+ }
+ grammarID = 597;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 597:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgBody}EVSEStatus), START_ELEMENT({urn:iso:15118:2:2016:MsgBody}EVSEPresentVoltage)] */
+ if ( iso2PreChargeResType->EVSEStatus_isUsed == 1u ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ if(errn == 0) {
+ errn = encode_iso2EVSEStatusType(stream, &iso2PreChargeResType->EVSEStatus );
+ }
+ grammarID = 598;
+ } else if ( 1 == 1 ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ errn = encode_iso2PhysicalValueType(stream, &iso2PreChargeResType->EVSEPresentVoltage );
+ }
+ grammarID = 3;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 598:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgBody}EVSEPresentVoltage)] */
+ if ( 1 == 1 ) {
+ errn = encodeNBitUnsignedInteger(stream, 1, 0);
+ if(errn == 0) {
+ errn = encode_iso2PhysicalValueType(stream, &iso2PreChargeResType->EVSEPresentVoltage );
+ }
+ grammarID = 3;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 3:
+ /* Element[END_ELEMENT] */
+ if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 1, 0);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } 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:2016:MsgDataTypes,EVSEFinePositioningParametersType', base type name='anyType', content type='EMPTY', isAbstract='true', hasTypeId='false', final='0', block='0', derivedBy='RESTRICTION'. */
+static int encode_iso2EVSEFinePositioningParametersType(bitstream_t* stream, struct iso2EVSEFinePositioningParametersType* iso2EVSEFinePositioningParametersType) {
+ int grammarID = 674;
+ int done = 0;
+
+
+ while(!done) {
+ switch(grammarID) {
+ case 674:
+ /* FirstStartTag[END_ELEMENT] */
+ if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 1, 0);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } 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:2016:MsgBody,PaymentServiceSelectionResType', base type name='V2GResponseType', content type='ELEMENT', isAbstract='false', hasTypeId='false', final='0', block='0', particle='("urn:iso:15118:2:2016:MsgBody":ResponseCode,"urn:iso:15118:2:2016:MsgBody":EVSEStatus{0-1})', derivedBy='EXTENSION'. */
+static int encode_iso2PaymentServiceSelectionResType(bitstream_t* stream, struct iso2PaymentServiceSelectionResType* iso2PaymentServiceSelectionResType) {
+ int grammarID = 599;
+ int done = 0;
+
+
+ while(!done) {
+ switch(grammarID) {
+ case 599:
+ /* FirstStartTag[START_ELEMENT({urn:iso:15118:2:2016:MsgBody}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, 5, iso2PaymentServiceSelectionResType->ResponseCode);
+ /* valid EE */
+ errn = encodeNBitUnsignedInteger(stream, 1, 0);
+ }
+ }
+ grammarID = 600;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 600:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgBody}EVSEStatus), END_ELEMENT] */
+ if ( iso2PaymentServiceSelectionResType->EVSEStatus_isUsed == 1u ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ if(errn == 0) {
+ errn = encode_iso2EVSEStatusType(stream, &iso2PaymentServiceSelectionResType->EVSEStatus );
+ }
+ grammarID = 3;
+ } else if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 3:
+ /* Element[END_ELEMENT] */
+ if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 1, 0);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
default:
errn = EXI_ERROR_UNKOWN_GRAMMAR_ID;
break;
@@ -67799,78 +44785,14185 @@ static int encode_v2gSessionSetupReqType(bitstream_t* stream, struct v2gSessionS
}
/* Complex type name='http://www.w3.org/2000/09/xmldsig#,DigestMethodType', base type name='anyType', content type='MIXED', isAbstract='false', hasTypeId='false', final='0', block='0', particle='((WC[##other:"http://www.w3.org/2000/09/xmldsig#"]){0-UNBOUNDED})', derivedBy='RESTRICTION'. */
-static int encode_v2gDigestMethodType(bitstream_t* stream, struct v2gDigestMethodType* v2gDigestMethodType) {
- int grammarID = 1847;
+static int encode_iso2DigestMethodType(bitstream_t* stream, struct iso2DigestMethodType* iso2DigestMethodType) {
+ int grammarID = 1899;
int done = 0;
int wcDone = 0;
while(!done) {
switch(grammarID) {
- case 1847:
+ case 1899:
/* FirstStartTag[ATTRIBUTE[STRING](Algorithm)] */
if (1==1) {
errn = encodeNBitUnsignedInteger(stream, 1, 0);
if(errn == 0) {
/* encode string as string table miss (+2 len)*/
- errn = encodeUnsignedInteger16(stream, (uint16_t)(v2gDigestMethodType->Algorithm.charactersLen + 2));
+ errn = encodeUnsignedInteger16(stream, (uint16_t)(iso2DigestMethodType->Algorithm.charactersLen + 2));
if (errn == 0) {
- errn = encodeCharacters(stream, v2gDigestMethodType->Algorithm.characters, v2gDigestMethodType->Algorithm.charactersLen);
+ errn = encodeCharacters(stream, iso2DigestMethodType->Algorithm.characters, iso2DigestMethodType->Algorithm.charactersLen);
}
}
- grammarID = 1848;
+ grammarID = 684;
} else {
errn = EXI_ERROR_UNKOWN_EVENT;
}
break;
- case 1848:
+ case 684:
/* StartTag[START_ELEMENT_GENERIC, END_ELEMENT, CHARACTERS_GENERIC[STRING]] */
if (1==0) {
errn = EXI_UNSUPPORTED_EVENT_CODE_CHARACTERISTICS;
- grammarID = 904;
- } else if ( v2gDigestMethodType->ANY_isUsed == 0u || wcDone ) {
+ grammarID = 685;
+ } else if ( iso2DigestMethodType->ANY_isUsed == 0u || wcDone ) {
errn = encodeNBitUnsignedInteger(stream, 2, 1);
if(errn == 0) {
done = 1;
}
- grammarID = 3;
- } else if ( v2gDigestMethodType->ANY_isUsed == 1u ) {
+ grammarID = 4;
+ } else if ( iso2DigestMethodType->ANY_isUsed == 1u ) {
errn = encodeNBitUnsignedInteger(stream, 2, 2);
if(errn == 0) {
/* encode string as string table miss (+2 len)*/
- errn = encodeUnsignedInteger16(stream, (uint16_t)(v2gDigestMethodType->ANY.charactersLen + 2));
+ errn = encodeUnsignedInteger16(stream, (uint16_t)(iso2DigestMethodType->ANY.charactersLen + 2));
if (errn == 0) {
- errn = encodeCharacters(stream, v2gDigestMethodType->ANY.characters, v2gDigestMethodType->ANY.charactersLen);
+ errn = encodeCharacters(stream, iso2DigestMethodType->ANY.characters, iso2DigestMethodType->ANY.charactersLen);
}
}
wcDone = 1;
- grammarID = 904;
+ grammarID = 685;
} else {
errn = EXI_ERROR_UNKOWN_EVENT;
}
break;
- case 904:
+ case 685:
/* Element[START_ELEMENT_GENERIC, END_ELEMENT, CHARACTERS_GENERIC[STRING]] */
if (1==0) {
errn = EXI_UNSUPPORTED_EVENT_CODE_CHARACTERISTICS;
- grammarID = 904;
- } else if ( v2gDigestMethodType->ANY_isUsed == 0u || wcDone ) {
+ grammarID = 685;
+ } else if ( iso2DigestMethodType->ANY_isUsed == 0u || wcDone ) {
errn = encodeNBitUnsignedInteger(stream, 2, 1);
if(errn == 0) {
done = 1;
}
- grammarID = 3;
- } else if ( v2gDigestMethodType->ANY_isUsed == 1u ) {
+ grammarID = 4;
+ } else if ( iso2DigestMethodType->ANY_isUsed == 1u ) {
errn = encodeNBitUnsignedInteger(stream, 2, 2);
if(errn == 0) {
/* encode string as string table miss (+2 len)*/
- errn = encodeUnsignedInteger16(stream, (uint16_t)(v2gDigestMethodType->ANY.charactersLen + 2));
+ errn = encodeUnsignedInteger16(stream, (uint16_t)(iso2DigestMethodType->ANY.charactersLen + 2));
if (errn == 0) {
- errn = encodeCharacters(stream, v2gDigestMethodType->ANY.characters, v2gDigestMethodType->ANY.charactersLen);
+ errn = encodeCharacters(stream, iso2DigestMethodType->ANY.characters, iso2DigestMethodType->ANY.charactersLen);
}
}
wcDone = 1;
- grammarID = 904;
+ grammarID = 685;
+ } 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:2016:MsgDataTypes,TargetPositionType', base type name='anyType', content type='ELEMENT', isAbstract='false', hasTypeId='false', final='0', block='0', particle='("urn:iso:15118:2:2016:MsgDataTypes":TargetOffsetX,"urn:iso:15118:2:2016:MsgDataTypes":TargetOffsetY)', derivedBy='RESTRICTION'. */
+static int encode_iso2TargetPositionType(bitstream_t* stream, struct iso2TargetPositionType* iso2TargetPositionType) {
+ int grammarID = 1945;
+ int done = 0;
+
+
+ while(!done) {
+ switch(grammarID) {
+ case 1945:
+ /* FirstStartTag[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}TargetOffsetX)] */
+ if ( 1 == 1 ) {
+ errn = encodeNBitUnsignedInteger(stream, 1, 0);
+ if(errn == 0) {
+ /* First(xsi:type)StartTag[CHARACTERS[UNSIGNED_INTEGER]] */
+ errn = encodeNBitUnsignedInteger(stream, 1, 0);
+ if(errn == 0) {
+ errn = encodeUnsignedInteger16(stream, iso2TargetPositionType->TargetOffsetX);
+ /* valid EE */
+ errn = encodeNBitUnsignedInteger(stream, 1, 0);
+ }
+ }
+ grammarID = 1946;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 1946:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}TargetOffsetY)] */
+ if ( 1 == 1 ) {
+ errn = encodeNBitUnsignedInteger(stream, 1, 0);
+ if(errn == 0) {
+ /* First(xsi:type)StartTag[CHARACTERS[UNSIGNED_INTEGER]] */
+ errn = encodeNBitUnsignedInteger(stream, 1, 0);
+ if(errn == 0) {
+ errn = encodeUnsignedInteger16(stream, iso2TargetPositionType->TargetOffsetY);
+ /* valid EE */
+ errn = encodeNBitUnsignedInteger(stream, 1, 0);
+ }
+ }
+ grammarID = 3;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 3:
+ /* Element[END_ELEMENT] */
+ if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 1, 0);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } 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:2016:MsgDataTypes,LFA_EVFinePositioningParametersType', base type name='EVFinePositioningParametersType', content type='ELEMENT', isAbstract='false', hasTypeId='false', final='0', block='0', particle='("urn:iso:15118:2:2016:MsgDataTypes":NumberOfSignalPackages,"urn:iso:15118:2:2016:MsgDataTypes":SensorPackageList)', derivedBy='EXTENSION'. */
+static int encode_iso2LFA_EVFinePositioningParametersType(bitstream_t* stream, struct iso2LFA_EVFinePositioningParametersType* iso2LFA_EVFinePositioningParametersType) {
+ int grammarID = 670;
+ int done = 0;
+
+
+ while(!done) {
+ switch(grammarID) {
+ case 670:
+ /* FirstStartTag[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}NumberOfSignalPackages)] */
+ if ( 1 == 1 ) {
+ errn = encodeNBitUnsignedInteger(stream, 1, 0);
+ if(errn == 0) {
+ /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
+ errn = encodeNBitUnsignedInteger(stream, 1, 0);
+ if(errn == 0) {
+ errn = encodeNBitUnsignedInteger(stream, 8, (uint32_t)(iso2LFA_EVFinePositioningParametersType->NumberOfSignalPackages - 0));
+ /* valid EE */
+ errn = encodeNBitUnsignedInteger(stream, 1, 0);
+ }
+ }
+ grammarID = 671;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 671:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorPackageList)] */
+ if ( 1 == 1 ) {
+ errn = encodeNBitUnsignedInteger(stream, 1, 0);
+ if(errn == 0) {
+ errn = encode_iso2SensorPackageListType(stream, &iso2LFA_EVFinePositioningParametersType->SensorPackageList );
+ }
+ grammarID = 3;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 3:
+ /* Element[END_ELEMENT] */
+ if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 1, 0);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } 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:2016:MsgDataTypes,DC_EVChargeParameterType', base type name='EVEnergyTransferParameterType', content type='ELEMENT', isAbstract='false', hasTypeId='false', final='0', block='0', particle='(("urn:iso:15118:2:2016:MsgDataTypes":DepartureTime),("urn:iso:15118:2:2016:MsgDataTypes":EVMaximumChargePower{0-1},"urn:iso:15118:2:2016:MsgDataTypes":EVMinimumChargePower{0-1},"urn:iso:15118:2:2016:MsgDataTypes":EVMaximumChargeCurrent,"urn:iso:15118:2:2016:MsgDataTypes":EVMinimumChargeCurrent,"urn:iso:15118:2:2016:MsgDataTypes":EVMaximumVoltage,"urn:iso:15118:2:2016:MsgDataTypes":EVTargetEnergyRequest{0-1},"urn:iso:15118:2:2016:MsgDataTypes":EVMaximumEnergyRequest{0-1},"urn:iso:15118:2:2016:MsgDataTypes":EVMinimumEnergyRequest{0-1},"urn:iso:15118:2:2016:MsgDataTypes":CurrentSOC{0-1},"urn:iso:15118:2:2016:MsgDataTypes":TargetSOC{0-1},"urn:iso:15118:2:2016:MsgDataTypes":BulkSOC{0-1}))', derivedBy='EXTENSION'. */
+static int encode_iso2DC_EVChargeParameterType(bitstream_t* stream, struct iso2DC_EVChargeParameterType* iso2DC_EVChargeParameterType) {
+ int grammarID = 1947;
+ int done = 0;
+
+
+ while(!done) {
+ switch(grammarID) {
+ case 1947:
+ /* FirstStartTag[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}DepartureTime)] */
+ if ( 1 == 1 ) {
+ errn = encodeNBitUnsignedInteger(stream, 1, 0);
+ if(errn == 0) {
+ /* First(xsi:type)StartTag[CHARACTERS[UNSIGNED_INTEGER]] */
+ errn = encodeNBitUnsignedInteger(stream, 1, 0);
+ if(errn == 0) {
+ errn = encodeUnsignedInteger32(stream, iso2DC_EVChargeParameterType->DepartureTime);
+ /* valid EE */
+ errn = encodeNBitUnsignedInteger(stream, 1, 0);
+ }
+ }
+ grammarID = 1948;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 1948:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}EVMaximumChargePower), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}EVMinimumChargePower), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}EVMaximumChargeCurrent)] */
+ if ( iso2DC_EVChargeParameterType->EVMaximumChargePower_isUsed == 1u ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ if(errn == 0) {
+ errn = encode_iso2PhysicalValueType(stream, &iso2DC_EVChargeParameterType->EVMaximumChargePower );
+ }
+ grammarID = 1949;
+ } else if ( iso2DC_EVChargeParameterType->EVMinimumChargePower_isUsed == 1u ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ errn = encode_iso2PhysicalValueType(stream, &iso2DC_EVChargeParameterType->EVMinimumChargePower );
+ }
+ grammarID = 1950;
+ } else if ( 1 == 1 ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 2);
+ if(errn == 0) {
+ errn = encode_iso2PhysicalValueType(stream, &iso2DC_EVChargeParameterType->EVMaximumChargeCurrent );
+ }
+ grammarID = 1951;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 1949:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}EVMinimumChargePower), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}EVMaximumChargeCurrent)] */
+ if ( iso2DC_EVChargeParameterType->EVMinimumChargePower_isUsed == 1u ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ if(errn == 0) {
+ errn = encode_iso2PhysicalValueType(stream, &iso2DC_EVChargeParameterType->EVMinimumChargePower );
+ }
+ grammarID = 1950;
+ } else if ( 1 == 1 ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ errn = encode_iso2PhysicalValueType(stream, &iso2DC_EVChargeParameterType->EVMaximumChargeCurrent );
+ }
+ grammarID = 1951;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 1950:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}EVMaximumChargeCurrent)] */
+ if ( 1 == 1 ) {
+ errn = encodeNBitUnsignedInteger(stream, 1, 0);
+ if(errn == 0) {
+ errn = encode_iso2PhysicalValueType(stream, &iso2DC_EVChargeParameterType->EVMaximumChargeCurrent );
+ }
+ grammarID = 1951;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 1951:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}EVMinimumChargeCurrent)] */
+ if ( 1 == 1 ) {
+ errn = encodeNBitUnsignedInteger(stream, 1, 0);
+ if(errn == 0) {
+ errn = encode_iso2PhysicalValueType(stream, &iso2DC_EVChargeParameterType->EVMinimumChargeCurrent );
+ }
+ grammarID = 1952;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 1952:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}EVMaximumVoltage)] */
+ if ( 1 == 1 ) {
+ errn = encodeNBitUnsignedInteger(stream, 1, 0);
+ if(errn == 0) {
+ errn = encode_iso2PhysicalValueType(stream, &iso2DC_EVChargeParameterType->EVMaximumVoltage );
+ }
+ grammarID = 1953;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 1953:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}EVTargetEnergyRequest), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}EVMaximumEnergyRequest), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}EVMinimumEnergyRequest), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}CurrentSOC), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}TargetSOC), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}BulkSOC), END_ELEMENT] */
+ if ( iso2DC_EVChargeParameterType->EVTargetEnergyRequest_isUsed == 1u ) {
+ errn = encodeNBitUnsignedInteger(stream, 3, 0);
+ if(errn == 0) {
+ errn = encode_iso2PhysicalValueType(stream, &iso2DC_EVChargeParameterType->EVTargetEnergyRequest );
+ }
+ grammarID = 1954;
+ } else if ( iso2DC_EVChargeParameterType->EVMaximumEnergyRequest_isUsed == 1u ) {
+ errn = encodeNBitUnsignedInteger(stream, 3, 1);
+ if(errn == 0) {
+ errn = encode_iso2PhysicalValueType(stream, &iso2DC_EVChargeParameterType->EVMaximumEnergyRequest );
+ }
+ grammarID = 1955;
+ } else if ( iso2DC_EVChargeParameterType->EVMinimumEnergyRequest_isUsed == 1u ) {
+ errn = encodeNBitUnsignedInteger(stream, 3, 2);
+ if(errn == 0) {
+ errn = encode_iso2PhysicalValueType(stream, &iso2DC_EVChargeParameterType->EVMinimumEnergyRequest );
+ }
+ grammarID = 1956;
+ } else if ( iso2DC_EVChargeParameterType->CurrentSOC_isUsed == 1u ) {
+ errn = encodeNBitUnsignedInteger(stream, 3, 3);
+ if(errn == 0) {
+ /* FirstStartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
+ errn = encodeNBitUnsignedInteger(stream, 1, 0);
+ if(errn == 0) {
+ errn = encodeNBitUnsignedInteger(stream, 7, (uint32_t)(iso2DC_EVChargeParameterType->CurrentSOC - 0));
+ /* valid EE */
+ errn = encodeNBitUnsignedInteger(stream, 1, 0);
+ }
+ }
+ grammarID = 1957;
+ } else if ( iso2DC_EVChargeParameterType->TargetSOC_isUsed == 1u ) {
+ errn = encodeNBitUnsignedInteger(stream, 3, 4);
+ if(errn == 0) {
+ /* FirstStartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
+ errn = encodeNBitUnsignedInteger(stream, 1, 0);
+ if(errn == 0) {
+ errn = encodeNBitUnsignedInteger(stream, 7, (uint32_t)(iso2DC_EVChargeParameterType->TargetSOC - 0));
+ /* valid EE */
+ errn = encodeNBitUnsignedInteger(stream, 1, 0);
+ }
+ }
+ grammarID = 1958;
+ } else if ( iso2DC_EVChargeParameterType->BulkSOC_isUsed == 1u ) {
+ errn = encodeNBitUnsignedInteger(stream, 3, 5);
+ if(errn == 0) {
+ /* FirstStartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
+ errn = encodeNBitUnsignedInteger(stream, 1, 0);
+ if(errn == 0) {
+ errn = encodeNBitUnsignedInteger(stream, 7, (uint32_t)(iso2DC_EVChargeParameterType->BulkSOC - 0));
+ /* valid EE */
+ errn = encodeNBitUnsignedInteger(stream, 1, 0);
+ }
+ }
+ grammarID = 3;
+ } else if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 3, 6);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 1954:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}EVMaximumEnergyRequest), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}EVMinimumEnergyRequest), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}CurrentSOC), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}TargetSOC), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}BulkSOC), END_ELEMENT] */
+ if ( iso2DC_EVChargeParameterType->EVMaximumEnergyRequest_isUsed == 1u ) {
+ errn = encodeNBitUnsignedInteger(stream, 3, 0);
+ if(errn == 0) {
+ errn = encode_iso2PhysicalValueType(stream, &iso2DC_EVChargeParameterType->EVMaximumEnergyRequest );
+ }
+ grammarID = 1955;
+ } else if ( iso2DC_EVChargeParameterType->EVMinimumEnergyRequest_isUsed == 1u ) {
+ errn = encodeNBitUnsignedInteger(stream, 3, 1);
+ if(errn == 0) {
+ errn = encode_iso2PhysicalValueType(stream, &iso2DC_EVChargeParameterType->EVMinimumEnergyRequest );
+ }
+ grammarID = 1956;
+ } else if ( iso2DC_EVChargeParameterType->CurrentSOC_isUsed == 1u ) {
+ errn = encodeNBitUnsignedInteger(stream, 3, 2);
+ if(errn == 0) {
+ /* FirstStartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
+ errn = encodeNBitUnsignedInteger(stream, 1, 0);
+ if(errn == 0) {
+ errn = encodeNBitUnsignedInteger(stream, 7, (uint32_t)(iso2DC_EVChargeParameterType->CurrentSOC - 0));
+ /* valid EE */
+ errn = encodeNBitUnsignedInteger(stream, 1, 0);
+ }
+ }
+ grammarID = 1957;
+ } else if ( iso2DC_EVChargeParameterType->TargetSOC_isUsed == 1u ) {
+ errn = encodeNBitUnsignedInteger(stream, 3, 3);
+ if(errn == 0) {
+ /* FirstStartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
+ errn = encodeNBitUnsignedInteger(stream, 1, 0);
+ if(errn == 0) {
+ errn = encodeNBitUnsignedInteger(stream, 7, (uint32_t)(iso2DC_EVChargeParameterType->TargetSOC - 0));
+ /* valid EE */
+ errn = encodeNBitUnsignedInteger(stream, 1, 0);
+ }
+ }
+ grammarID = 1958;
+ } else if ( iso2DC_EVChargeParameterType->BulkSOC_isUsed == 1u ) {
+ errn = encodeNBitUnsignedInteger(stream, 3, 4);
+ if(errn == 0) {
+ /* FirstStartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
+ errn = encodeNBitUnsignedInteger(stream, 1, 0);
+ if(errn == 0) {
+ errn = encodeNBitUnsignedInteger(stream, 7, (uint32_t)(iso2DC_EVChargeParameterType->BulkSOC - 0));
+ /* valid EE */
+ errn = encodeNBitUnsignedInteger(stream, 1, 0);
+ }
+ }
+ grammarID = 3;
+ } else if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 3, 5);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 1955:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}EVMinimumEnergyRequest), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}CurrentSOC), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}TargetSOC), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}BulkSOC), END_ELEMENT] */
+ if ( iso2DC_EVChargeParameterType->EVMinimumEnergyRequest_isUsed == 1u ) {
+ errn = encodeNBitUnsignedInteger(stream, 3, 0);
+ if(errn == 0) {
+ errn = encode_iso2PhysicalValueType(stream, &iso2DC_EVChargeParameterType->EVMinimumEnergyRequest );
+ }
+ grammarID = 1956;
+ } else if ( iso2DC_EVChargeParameterType->CurrentSOC_isUsed == 1u ) {
+ errn = encodeNBitUnsignedInteger(stream, 3, 1);
+ if(errn == 0) {
+ /* FirstStartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
+ errn = encodeNBitUnsignedInteger(stream, 1, 0);
+ if(errn == 0) {
+ errn = encodeNBitUnsignedInteger(stream, 7, (uint32_t)(iso2DC_EVChargeParameterType->CurrentSOC - 0));
+ /* valid EE */
+ errn = encodeNBitUnsignedInteger(stream, 1, 0);
+ }
+ }
+ grammarID = 1957;
+ } else if ( iso2DC_EVChargeParameterType->TargetSOC_isUsed == 1u ) {
+ errn = encodeNBitUnsignedInteger(stream, 3, 2);
+ if(errn == 0) {
+ /* FirstStartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
+ errn = encodeNBitUnsignedInteger(stream, 1, 0);
+ if(errn == 0) {
+ errn = encodeNBitUnsignedInteger(stream, 7, (uint32_t)(iso2DC_EVChargeParameterType->TargetSOC - 0));
+ /* valid EE */
+ errn = encodeNBitUnsignedInteger(stream, 1, 0);
+ }
+ }
+ grammarID = 1958;
+ } else if ( iso2DC_EVChargeParameterType->BulkSOC_isUsed == 1u ) {
+ errn = encodeNBitUnsignedInteger(stream, 3, 3);
+ if(errn == 0) {
+ /* FirstStartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
+ errn = encodeNBitUnsignedInteger(stream, 1, 0);
+ if(errn == 0) {
+ errn = encodeNBitUnsignedInteger(stream, 7, (uint32_t)(iso2DC_EVChargeParameterType->BulkSOC - 0));
+ /* valid EE */
+ errn = encodeNBitUnsignedInteger(stream, 1, 0);
+ }
+ }
+ grammarID = 3;
+ } else if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 3, 4);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 1956:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}CurrentSOC), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}TargetSOC), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}BulkSOC), END_ELEMENT] */
+ if ( iso2DC_EVChargeParameterType->CurrentSOC_isUsed == 1u ) {
+ errn = encodeNBitUnsignedInteger(stream, 3, 0);
+ if(errn == 0) {
+ /* FirstStartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
+ errn = encodeNBitUnsignedInteger(stream, 1, 0);
+ if(errn == 0) {
+ errn = encodeNBitUnsignedInteger(stream, 7, (uint32_t)(iso2DC_EVChargeParameterType->CurrentSOC - 0));
+ /* valid EE */
+ errn = encodeNBitUnsignedInteger(stream, 1, 0);
+ }
+ }
+ grammarID = 1957;
+ } else if ( iso2DC_EVChargeParameterType->TargetSOC_isUsed == 1u ) {
+ errn = encodeNBitUnsignedInteger(stream, 3, 1);
+ if(errn == 0) {
+ /* FirstStartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
+ errn = encodeNBitUnsignedInteger(stream, 1, 0);
+ if(errn == 0) {
+ errn = encodeNBitUnsignedInteger(stream, 7, (uint32_t)(iso2DC_EVChargeParameterType->TargetSOC - 0));
+ /* valid EE */
+ errn = encodeNBitUnsignedInteger(stream, 1, 0);
+ }
+ }
+ grammarID = 1958;
+ } else if ( iso2DC_EVChargeParameterType->BulkSOC_isUsed == 1u ) {
+ errn = encodeNBitUnsignedInteger(stream, 3, 2);
+ if(errn == 0) {
+ /* FirstStartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
+ errn = encodeNBitUnsignedInteger(stream, 1, 0);
+ if(errn == 0) {
+ errn = encodeNBitUnsignedInteger(stream, 7, (uint32_t)(iso2DC_EVChargeParameterType->BulkSOC - 0));
+ /* valid EE */
+ errn = encodeNBitUnsignedInteger(stream, 1, 0);
+ }
+ }
+ grammarID = 3;
+ } else if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 3, 3);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 1957:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}TargetSOC), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}BulkSOC), END_ELEMENT] */
+ if ( iso2DC_EVChargeParameterType->TargetSOC_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, 7, (uint32_t)(iso2DC_EVChargeParameterType->TargetSOC - 0));
+ /* valid EE */
+ errn = encodeNBitUnsignedInteger(stream, 1, 0);
+ }
+ }
+ grammarID = 1958;
+ } else if ( iso2DC_EVChargeParameterType->BulkSOC_isUsed == 1u ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ /* FirstStartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
+ errn = encodeNBitUnsignedInteger(stream, 1, 0);
+ if(errn == 0) {
+ errn = encodeNBitUnsignedInteger(stream, 7, (uint32_t)(iso2DC_EVChargeParameterType->BulkSOC - 0));
+ /* valid EE */
+ errn = encodeNBitUnsignedInteger(stream, 1, 0);
+ }
+ }
+ grammarID = 3;
+ } else if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 2);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 1958:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}BulkSOC), END_ELEMENT] */
+ if ( iso2DC_EVChargeParameterType->BulkSOC_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, 7, (uint32_t)(iso2DC_EVChargeParameterType->BulkSOC - 0));
+ /* valid EE */
+ errn = encodeNBitUnsignedInteger(stream, 1, 0);
+ }
+ }
+ grammarID = 3;
+ } else if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 3:
+ /* Element[END_ELEMENT] */
+ if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 1, 0);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } 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:2016:MsgBody,ServiceDetailReqType', base type name='BodyBaseType', content type='ELEMENT', isAbstract='false', hasTypeId='false', final='0', block='0', particle='("urn:iso:15118:2:2016:MsgBody":ServiceID)', derivedBy='EXTENSION'. */
+static int encode_iso2ServiceDetailReqType(bitstream_t* stream, struct iso2ServiceDetailReqType* iso2ServiceDetailReqType) {
+ int grammarID = 1959;
+ int done = 0;
+
+
+ while(!done) {
+ switch(grammarID) {
+ case 1959:
+ /* FirstStartTag[START_ELEMENT({urn:iso:15118:2:2016:MsgBody}ServiceID)] */
+ if ( 1 == 1 ) {
+ errn = encodeNBitUnsignedInteger(stream, 1, 0);
+ if(errn == 0) {
+ /* FirstStartTag[CHARACTERS[UNSIGNED_INTEGER]] */
+ errn = encodeNBitUnsignedInteger(stream, 1, 0);
+ if(errn == 0) {
+ errn = encodeUnsignedInteger16(stream, iso2ServiceDetailReqType->ServiceID);
+ /* valid EE */
+ errn = encodeNBitUnsignedInteger(stream, 1, 0);
+ }
+ }
+ grammarID = 3;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 3:
+ /* Element[END_ELEMENT] */
+ if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 1, 0);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } 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:2016:MsgBody,PreChargeReqType', base type name='BodyBaseType', content type='ELEMENT', isAbstract='false', hasTypeId='false', final='0', block='0', particle='("urn:iso:15118:2:2016:MsgBody":EVTargetVoltage,"urn:iso:15118:2:2016:MsgBody":EVTargetCurrent)', derivedBy='EXTENSION'. */
+static int encode_iso2PreChargeReqType(bitstream_t* stream, struct iso2PreChargeReqType* iso2PreChargeReqType) {
+ int grammarID = 1960;
+ int done = 0;
+
+
+ while(!done) {
+ switch(grammarID) {
+ case 1960:
+ /* FirstStartTag[START_ELEMENT({urn:iso:15118:2:2016:MsgBody}EVTargetVoltage)] */
+ if ( 1 == 1 ) {
+ errn = encodeNBitUnsignedInteger(stream, 1, 0);
+ if(errn == 0) {
+ errn = encode_iso2PhysicalValueType(stream, &iso2PreChargeReqType->EVTargetVoltage );
+ }
+ grammarID = 1961;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 1961:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgBody}EVTargetCurrent)] */
+ if ( 1 == 1 ) {
+ errn = encodeNBitUnsignedInteger(stream, 1, 0);
+ if(errn == 0) {
+ errn = encode_iso2PhysicalValueType(stream, &iso2PreChargeReqType->EVTargetCurrent );
+ }
+ grammarID = 3;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 3:
+ /* Element[END_ELEMENT] */
+ if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 1, 0);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_GRAMMAR_ID;
+ break;
+ }
+ if(errn) {
+ done = 1;
+ }
+ }
+ return errn;
+}
+
+/* Complex type name='http://www.w3.org/2000/09/xmldsig#,ManifestType', base type name='anyType', content type='ELEMENT', isAbstract='false', hasTypeId='false', final='0', block='0', particle='("http://www.w3.org/2000/09/xmldsig#":Reference{1-UNBOUNDED})', derivedBy='RESTRICTION'. */
+static int encode_iso2ManifestType(bitstream_t* stream, struct iso2ManifestType* iso2ManifestType) {
+ int grammarID = 1962;
+ int done = 0;
+
+ unsigned int iso2ManifestType_Reference_currArrayIndex = 0;
+
+ while(!done) {
+ switch(grammarID) {
+ case 1962:
+ /* FirstStartTag[ATTRIBUTE[STRING](Id), START_ELEMENT({http://www.w3.org/2000/09/xmldsig#}Reference)] */
+ if ( iso2ManifestType->Id_isUsed == 1u ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ if(errn == 0) {
+ /* encode string as string table miss (+2 len)*/
+ errn = encodeUnsignedInteger16(stream, (uint16_t)(iso2ManifestType->Id.charactersLen + 2));
+ if (errn == 0) {
+ errn = encodeCharacters(stream, iso2ManifestType->Id.characters, iso2ManifestType->Id.charactersLen);
+ }
+ }
+ grammarID = 1963;
+ } else if (iso2ManifestType_Reference_currArrayIndex < iso2ManifestType->Reference.arrayLen ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ errn = encode_iso2ReferenceType(stream, &iso2ManifestType->Reference.array [iso2ManifestType_Reference_currArrayIndex++]);
+ }
+ grammarID = 1964;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 1963:
+ /* StartTag[START_ELEMENT({http://www.w3.org/2000/09/xmldsig#}Reference)] */
+ if (iso2ManifestType_Reference_currArrayIndex < iso2ManifestType->Reference.arrayLen ) {
+ errn = encodeNBitUnsignedInteger(stream, 1, 0);
+ if(errn == 0) {
+ errn = encode_iso2ReferenceType(stream, &iso2ManifestType->Reference.array [iso2ManifestType_Reference_currArrayIndex++]);
+ }
+ grammarID = 1964;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 1964:
+ /* Element[START_ELEMENT({http://www.w3.org/2000/09/xmldsig#}Reference), END_ELEMENT] */
+ if (iso2ManifestType_Reference_currArrayIndex < iso2ManifestType->Reference.arrayLen ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ if(errn == 0) {
+ errn = encode_iso2ReferenceType(stream, &iso2ManifestType->Reference.array [iso2ManifestType_Reference_currArrayIndex++]);
+ }
+ grammarID = 1964;
+ } else if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } 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:2016:MsgDef,#AnonType_V2G_Message', base type name='anyType', content type='ELEMENT', isAbstract='false', hasTypeId='false', final='0', block='0', particle='("urn:iso:15118:2:2016:MsgDef":Header,"urn:iso:15118:2:2016:MsgDef":Body)', derivedBy='RESTRICTION'. */
+static int encode_iso2AnonType_V2G_Message(bitstream_t* stream, struct iso2AnonType_V2G_Message* iso2AnonType_V2G_Message) {
+ int grammarID = 1965;
+ int done = 0;
+
+
+ while(!done) {
+ switch(grammarID) {
+ case 1965:
+ /* FirstStartTag[START_ELEMENT({urn:iso:15118:2:2016:MsgDef}Header)] */
+ if ( 1 == 1 ) {
+ errn = encodeNBitUnsignedInteger(stream, 1, 0);
+ if(errn == 0) {
+ errn = encode_iso2MessageHeaderType(stream, &iso2AnonType_V2G_Message->Header );
+ }
+ grammarID = 1966;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 1966:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDef}Body)] */
+ if ( 1 == 1 ) {
+ errn = encodeNBitUnsignedInteger(stream, 1, 0);
+ if(errn == 0) {
+ errn = encode_iso2BodyType(stream, &iso2AnonType_V2G_Message->Body );
+ }
+ grammarID = 3;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 3:
+ /* Element[END_ELEMENT] */
+ if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 1, 0);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } 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:2016:MsgDataTypes,SelectedServiceListType', base type name='anyType', content type='ELEMENT', isAbstract='false', hasTypeId='false', final='0', block='0', particle='("urn:iso:15118:2:2016:MsgDataTypes":SelectedService{1-16})', derivedBy='RESTRICTION'. */
+static int encode_iso2SelectedServiceListType(bitstream_t* stream, struct iso2SelectedServiceListType* iso2SelectedServiceListType) {
+ int grammarID = 1967;
+ int done = 0;
+
+ unsigned int iso2SelectedServiceListType_SelectedService_currArrayIndex = 0;
+
+ while(!done) {
+ switch(grammarID) {
+ case 1967:
+ /* FirstStartTag[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SelectedService)] */
+ if (iso2SelectedServiceListType_SelectedService_currArrayIndex < iso2SelectedServiceListType->SelectedService.arrayLen ) {
+ errn = encodeNBitUnsignedInteger(stream, 1, 0);
+ if(errn == 0) {
+ errn = encode_iso2SelectedServiceType(stream, &iso2SelectedServiceListType->SelectedService.array [iso2SelectedServiceListType_SelectedService_currArrayIndex++]);
+ }
+ grammarID = 1968;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 1968:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SelectedService), END_ELEMENT] */
+ if (iso2SelectedServiceListType_SelectedService_currArrayIndex < iso2SelectedServiceListType->SelectedService.arrayLen ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ if(errn == 0) {
+ errn = encode_iso2SelectedServiceType(stream, &iso2SelectedServiceListType->SelectedService.array [iso2SelectedServiceListType_SelectedService_currArrayIndex++]);
+ }
+ grammarID = 1969;
+ } else if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 1969:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SelectedService), END_ELEMENT] */
+ if (iso2SelectedServiceListType_SelectedService_currArrayIndex < iso2SelectedServiceListType->SelectedService.arrayLen ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ if(errn == 0) {
+ errn = encode_iso2SelectedServiceType(stream, &iso2SelectedServiceListType->SelectedService.array [iso2SelectedServiceListType_SelectedService_currArrayIndex++]);
+ }
+ grammarID = 1970;
+ } else if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 1970:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SelectedService), END_ELEMENT] */
+ if (iso2SelectedServiceListType_SelectedService_currArrayIndex < iso2SelectedServiceListType->SelectedService.arrayLen ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ if(errn == 0) {
+ errn = encode_iso2SelectedServiceType(stream, &iso2SelectedServiceListType->SelectedService.array [iso2SelectedServiceListType_SelectedService_currArrayIndex++]);
+ }
+ grammarID = 1971;
+ } else if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 1971:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SelectedService), END_ELEMENT] */
+ if (iso2SelectedServiceListType_SelectedService_currArrayIndex < iso2SelectedServiceListType->SelectedService.arrayLen ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ if(errn == 0) {
+ errn = encode_iso2SelectedServiceType(stream, &iso2SelectedServiceListType->SelectedService.array [iso2SelectedServiceListType_SelectedService_currArrayIndex++]);
+ }
+ grammarID = 1972;
+ } else if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 1972:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SelectedService), END_ELEMENT] */
+ if (iso2SelectedServiceListType_SelectedService_currArrayIndex < iso2SelectedServiceListType->SelectedService.arrayLen ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ if(errn == 0) {
+ errn = encode_iso2SelectedServiceType(stream, &iso2SelectedServiceListType->SelectedService.array [iso2SelectedServiceListType_SelectedService_currArrayIndex++]);
+ }
+ grammarID = 1973;
+ } else if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 1973:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SelectedService), END_ELEMENT] */
+ if (iso2SelectedServiceListType_SelectedService_currArrayIndex < iso2SelectedServiceListType->SelectedService.arrayLen ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ if(errn == 0) {
+ errn = encode_iso2SelectedServiceType(stream, &iso2SelectedServiceListType->SelectedService.array [iso2SelectedServiceListType_SelectedService_currArrayIndex++]);
+ }
+ grammarID = 1974;
+ } else if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 1974:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SelectedService), END_ELEMENT] */
+ if (iso2SelectedServiceListType_SelectedService_currArrayIndex < iso2SelectedServiceListType->SelectedService.arrayLen ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ if(errn == 0) {
+ errn = encode_iso2SelectedServiceType(stream, &iso2SelectedServiceListType->SelectedService.array [iso2SelectedServiceListType_SelectedService_currArrayIndex++]);
+ }
+ grammarID = 1975;
+ } else if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 1975:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SelectedService), END_ELEMENT] */
+ if (iso2SelectedServiceListType_SelectedService_currArrayIndex < iso2SelectedServiceListType->SelectedService.arrayLen ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ if(errn == 0) {
+ errn = encode_iso2SelectedServiceType(stream, &iso2SelectedServiceListType->SelectedService.array [iso2SelectedServiceListType_SelectedService_currArrayIndex++]);
+ }
+ grammarID = 1976;
+ } else if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 1976:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SelectedService), END_ELEMENT] */
+ if (iso2SelectedServiceListType_SelectedService_currArrayIndex < iso2SelectedServiceListType->SelectedService.arrayLen ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ if(errn == 0) {
+ errn = encode_iso2SelectedServiceType(stream, &iso2SelectedServiceListType->SelectedService.array [iso2SelectedServiceListType_SelectedService_currArrayIndex++]);
+ }
+ grammarID = 1977;
+ } else if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 1977:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SelectedService), END_ELEMENT] */
+ if (iso2SelectedServiceListType_SelectedService_currArrayIndex < iso2SelectedServiceListType->SelectedService.arrayLen ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ if(errn == 0) {
+ errn = encode_iso2SelectedServiceType(stream, &iso2SelectedServiceListType->SelectedService.array [iso2SelectedServiceListType_SelectedService_currArrayIndex++]);
+ }
+ grammarID = 1978;
+ } else if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 1978:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SelectedService), END_ELEMENT] */
+ if (iso2SelectedServiceListType_SelectedService_currArrayIndex < iso2SelectedServiceListType->SelectedService.arrayLen ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ if(errn == 0) {
+ errn = encode_iso2SelectedServiceType(stream, &iso2SelectedServiceListType->SelectedService.array [iso2SelectedServiceListType_SelectedService_currArrayIndex++]);
+ }
+ grammarID = 1979;
+ } else if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 1979:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SelectedService), END_ELEMENT] */
+ if (iso2SelectedServiceListType_SelectedService_currArrayIndex < iso2SelectedServiceListType->SelectedService.arrayLen ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ if(errn == 0) {
+ errn = encode_iso2SelectedServiceType(stream, &iso2SelectedServiceListType->SelectedService.array [iso2SelectedServiceListType_SelectedService_currArrayIndex++]);
+ }
+ grammarID = 1980;
+ } else if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 1980:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SelectedService), END_ELEMENT] */
+ if (iso2SelectedServiceListType_SelectedService_currArrayIndex < iso2SelectedServiceListType->SelectedService.arrayLen ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ if(errn == 0) {
+ errn = encode_iso2SelectedServiceType(stream, &iso2SelectedServiceListType->SelectedService.array [iso2SelectedServiceListType_SelectedService_currArrayIndex++]);
+ }
+ grammarID = 1981;
+ } else if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 1981:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SelectedService), END_ELEMENT] */
+ if (iso2SelectedServiceListType_SelectedService_currArrayIndex < iso2SelectedServiceListType->SelectedService.arrayLen ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ if(errn == 0) {
+ errn = encode_iso2SelectedServiceType(stream, &iso2SelectedServiceListType->SelectedService.array [iso2SelectedServiceListType_SelectedService_currArrayIndex++]);
+ }
+ grammarID = 1982;
+ } else if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 1982:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SelectedService), END_ELEMENT] */
+ if (iso2SelectedServiceListType_SelectedService_currArrayIndex < iso2SelectedServiceListType->SelectedService.arrayLen ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ if(errn == 0) {
+ errn = encode_iso2SelectedServiceType(stream, &iso2SelectedServiceListType->SelectedService.array [iso2SelectedServiceListType_SelectedService_currArrayIndex++]);
+ }
+ grammarID = 3;
+ } else if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 3:
+ /* Element[END_ELEMENT] */
+ if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 1, 0);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } 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:2016:MsgDataTypes,Generic_EVSEFinePositioningParametersType', base type name='EVSEFinePositioningParametersType', content type='ELEMENT', isAbstract='false', hasTypeId='false', final='0', block='0', particle='("urn:iso:15118:2:2016:MsgDataTypes":GenericParameters)', derivedBy='EXTENSION'. */
+static int encode_iso2Generic_EVSEFinePositioningParametersType(bitstream_t* stream, struct iso2Generic_EVSEFinePositioningParametersType* iso2Generic_EVSEFinePositioningParametersType) {
+ int grammarID = 1880;
+ int done = 0;
+
+
+ while(!done) {
+ switch(grammarID) {
+ case 1880:
+ /* FirstStartTag[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}GenericParameters)] */
+ if ( 1 == 1 ) {
+ errn = encodeNBitUnsignedInteger(stream, 1, 0);
+ if(errn == 0) {
+ errn = encode_iso2ParameterSetType(stream, &iso2Generic_EVSEFinePositioningParametersType->GenericParameters );
+ }
+ grammarID = 3;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 3:
+ /* Element[END_ELEMENT] */
+ if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 1, 0);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } 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:2016:MsgDataTypes,CartesianCoordinatesType', base type name='anyType', content type='ELEMENT', isAbstract='false', hasTypeId='false', final='0', block='0', particle='("urn:iso:15118:2:2016:MsgDataTypes":XCoordinate,"urn:iso:15118:2:2016:MsgDataTypes":YCoordinate,"urn:iso:15118:2:2016:MsgDataTypes":ZCoordinate)', derivedBy='RESTRICTION'. */
+static int encode_iso2CartesianCoordinatesType(bitstream_t* stream, struct iso2CartesianCoordinatesType* iso2CartesianCoordinatesType) {
+ int grammarID = 1983;
+ int done = 0;
+
+
+ while(!done) {
+ switch(grammarID) {
+ case 1983:
+ /* FirstStartTag[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}XCoordinate)] */
+ if ( 1 == 1 ) {
+ errn = encodeNBitUnsignedInteger(stream, 1, 0);
+ if(errn == 0) {
+ /* First(xsi:type)StartTag[CHARACTERS[INTEGER]] */
+ errn = encodeNBitUnsignedInteger(stream, 1, 0);
+ if(errn == 0) {
+ errn = encodeInteger16(stream, iso2CartesianCoordinatesType->XCoordinate);
+ /* valid EE */
+ errn = encodeNBitUnsignedInteger(stream, 1, 0);
+ }
+ }
+ grammarID = 1984;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 1984:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}YCoordinate)] */
+ if ( 1 == 1 ) {
+ errn = encodeNBitUnsignedInteger(stream, 1, 0);
+ if(errn == 0) {
+ /* First(xsi:type)StartTag[CHARACTERS[INTEGER]] */
+ errn = encodeNBitUnsignedInteger(stream, 1, 0);
+ if(errn == 0) {
+ errn = encodeInteger16(stream, iso2CartesianCoordinatesType->YCoordinate);
+ /* valid EE */
+ errn = encodeNBitUnsignedInteger(stream, 1, 0);
+ }
+ }
+ grammarID = 1985;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 1985:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}ZCoordinate)] */
+ if ( 1 == 1 ) {
+ errn = encodeNBitUnsignedInteger(stream, 1, 0);
+ if(errn == 0) {
+ /* First(xsi:type)StartTag[CHARACTERS[INTEGER]] */
+ errn = encodeNBitUnsignedInteger(stream, 1, 0);
+ if(errn == 0) {
+ errn = encodeInteger16(stream, iso2CartesianCoordinatesType->ZCoordinate);
+ /* valid EE */
+ errn = encodeNBitUnsignedInteger(stream, 1, 0);
+ }
+ }
+ grammarID = 3;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 3:
+ /* Element[END_ELEMENT] */
+ if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 1, 0);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_GRAMMAR_ID;
+ break;
+ }
+ if(errn) {
+ done = 1;
+ }
+ }
+ return errn;
+}
+
+/* Complex type name='http://www.w3.org/2000/09/xmldsig#,KeyInfoType', base type name='anyType', content type='MIXED', isAbstract='false', hasTypeId='false', final='0', block='0', particle='("http://www.w3.org/2000/09/xmldsig#":KeyName|"http://www.w3.org/2000/09/xmldsig#":KeyValue|"http://www.w3.org/2000/09/xmldsig#":RetrievalMethod|"http://www.w3.org/2000/09/xmldsig#":X509Data|"http://www.w3.org/2000/09/xmldsig#":PGPData|"http://www.w3.org/2000/09/xmldsig#":SPKIData|"http://www.w3.org/2000/09/xmldsig#":MgmtData|(WC[##other:"http://www.w3.org/2000/09/xmldsig#"])){1-UNBOUNDED}', derivedBy='RESTRICTION'. */
+static int encode_iso2KeyInfoType(bitstream_t* stream, struct iso2KeyInfoType* iso2KeyInfoType) {
+ int grammarID = 1986;
+ int done = 0;
+ int wcDone = 0;
+
+ unsigned int iso2KeyInfoType_KeyName_currArrayIndex = 0;
+ unsigned int iso2KeyInfoType_KeyValue_currArrayIndex = 0;
+ unsigned int iso2KeyInfoType_RetrievalMethod_currArrayIndex = 0;
+ unsigned int iso2KeyInfoType_X509Data_currArrayIndex = 0;
+ unsigned int iso2KeyInfoType_PGPData_currArrayIndex = 0;
+ unsigned int iso2KeyInfoType_SPKIData_currArrayIndex = 0;
+ unsigned int iso2KeyInfoType_MgmtData_currArrayIndex = 0;
+
+ while(!done) {
+ switch(grammarID) {
+ case 1986:
+ /* FirstStartTag[ATTRIBUTE[STRING](Id), START_ELEMENT({http://www.w3.org/2000/09/xmldsig#}KeyName), START_ELEMENT({http://www.w3.org/2000/09/xmldsig#}KeyValue), START_ELEMENT({http://www.w3.org/2000/09/xmldsig#}RetrievalMethod), START_ELEMENT({http://www.w3.org/2000/09/xmldsig#}X509Data), START_ELEMENT({http://www.w3.org/2000/09/xmldsig#}PGPData), START_ELEMENT({http://www.w3.org/2000/09/xmldsig#}SPKIData), START_ELEMENT({http://www.w3.org/2000/09/xmldsig#}MgmtData), START_ELEMENT_GENERIC, CHARACTERS_GENERIC[STRING]] */
+ if ( iso2KeyInfoType->Id_isUsed == 1u ) {
+ errn = encodeNBitUnsignedInteger(stream, 4, 0);
+ if(errn == 0) {
+ /* encode string as string table miss (+2 len)*/
+ errn = encodeUnsignedInteger16(stream, (uint16_t)(iso2KeyInfoType->Id.charactersLen + 2));
+ if (errn == 0) {
+ errn = encodeCharacters(stream, iso2KeyInfoType->Id.characters, iso2KeyInfoType->Id.charactersLen);
+ }
+ }
+ grammarID = 1987;
+ } else if (iso2KeyInfoType_KeyName_currArrayIndex < iso2KeyInfoType->KeyName.arrayLen ) {
+ errn = encodeNBitUnsignedInteger(stream, 4, 1);
+ if(errn == 0) {
+ /* First(xsi:type)StartTag[CHARACTERS[STRING]] */
+ errn = encodeNBitUnsignedInteger(stream, 1, 0);
+ if(errn == 0) {
+ /* encode string as string table miss (+2 len)*/
+ errn = encodeUnsignedInteger16(stream, (uint16_t)(iso2KeyInfoType->KeyName.array[iso2KeyInfoType_KeyName_currArrayIndex].charactersLen + 2));
+ if (errn == 0) {
+ errn = encodeCharacters(stream, iso2KeyInfoType->KeyName.array[iso2KeyInfoType_KeyName_currArrayIndex].characters, iso2KeyInfoType->KeyName.array[iso2KeyInfoType_KeyName_currArrayIndex].charactersLen);
+ iso2KeyInfoType_KeyName_currArrayIndex++;
+ }
+ /* valid EE */
+ errn = encodeNBitUnsignedInteger(stream, 1, 0);
+ }
+ }
+ grammarID = 1988;
+ } else if (iso2KeyInfoType_KeyValue_currArrayIndex < iso2KeyInfoType->KeyValue.arrayLen ) {
+ errn = encodeNBitUnsignedInteger(stream, 4, 2);
+ if(errn == 0) {
+ errn = encode_iso2KeyValueType(stream, &iso2KeyInfoType->KeyValue.array [iso2KeyInfoType_KeyValue_currArrayIndex++]);
+ }
+ grammarID = 1988;
+ } else if (iso2KeyInfoType_RetrievalMethod_currArrayIndex < iso2KeyInfoType->RetrievalMethod.arrayLen ) {
+ errn = encodeNBitUnsignedInteger(stream, 4, 3);
+ if(errn == 0) {
+ errn = encode_iso2RetrievalMethodType(stream, &iso2KeyInfoType->RetrievalMethod.array [iso2KeyInfoType_RetrievalMethod_currArrayIndex++]);
+ }
+ grammarID = 1988;
+ } else if (iso2KeyInfoType_X509Data_currArrayIndex < iso2KeyInfoType->X509Data.arrayLen ) {
+ errn = encodeNBitUnsignedInteger(stream, 4, 4);
+ if(errn == 0) {
+ errn = encode_iso2X509DataType(stream, &iso2KeyInfoType->X509Data.array [iso2KeyInfoType_X509Data_currArrayIndex++]);
+ }
+ grammarID = 1988;
+ } else if (iso2KeyInfoType_PGPData_currArrayIndex < iso2KeyInfoType->PGPData.arrayLen ) {
+ errn = encodeNBitUnsignedInteger(stream, 4, 5);
+ if(errn == 0) {
+ errn = encode_iso2PGPDataType(stream, &iso2KeyInfoType->PGPData.array [iso2KeyInfoType_PGPData_currArrayIndex++]);
+ }
+ grammarID = 1988;
+ } else if (iso2KeyInfoType_SPKIData_currArrayIndex < iso2KeyInfoType->SPKIData.arrayLen ) {
+ errn = encodeNBitUnsignedInteger(stream, 4, 6);
+ if(errn == 0) {
+ errn = encode_iso2SPKIDataType(stream, &iso2KeyInfoType->SPKIData.array [iso2KeyInfoType_SPKIData_currArrayIndex++]);
+ }
+ grammarID = 1988;
+ } else if (iso2KeyInfoType_MgmtData_currArrayIndex < iso2KeyInfoType->MgmtData.arrayLen ) {
+ errn = encodeNBitUnsignedInteger(stream, 4, 7);
+ if(errn == 0) {
+ /* First(xsi:type)StartTag[CHARACTERS[STRING]] */
+ errn = encodeNBitUnsignedInteger(stream, 1, 0);
+ if(errn == 0) {
+ /* encode string as string table miss (+2 len)*/
+ errn = encodeUnsignedInteger16(stream, (uint16_t)(iso2KeyInfoType->MgmtData.array[iso2KeyInfoType_MgmtData_currArrayIndex].charactersLen + 2));
+ if (errn == 0) {
+ errn = encodeCharacters(stream, iso2KeyInfoType->MgmtData.array[iso2KeyInfoType_MgmtData_currArrayIndex].characters, iso2KeyInfoType->MgmtData.array[iso2KeyInfoType_MgmtData_currArrayIndex].charactersLen);
+ iso2KeyInfoType_MgmtData_currArrayIndex++;
+ }
+ /* valid EE */
+ errn = encodeNBitUnsignedInteger(stream, 1, 0);
+ }
+ }
+ grammarID = 1988;
+ } else if (1==0) {
+ errn = EXI_UNSUPPORTED_EVENT_CODE_CHARACTERISTICS;
+ grammarID = 1988;
+ } else if ( iso2KeyInfoType->ANY_isUsed == 1u ) {
+ errn = encodeNBitUnsignedInteger(stream, 4, 9);
+ if(errn == 0) {
+ /* encode string as string table miss (+2 len)*/
+ errn = encodeUnsignedInteger16(stream, (uint16_t)(iso2KeyInfoType->ANY.charactersLen + 2));
+ if (errn == 0) {
+ errn = encodeCharacters(stream, iso2KeyInfoType->ANY.characters, iso2KeyInfoType->ANY.charactersLen);
+ }
+ }
+ wcDone = 1;
+ grammarID = 1989;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 1987:
+ /* StartTag[START_ELEMENT({http://www.w3.org/2000/09/xmldsig#}KeyName), START_ELEMENT({http://www.w3.org/2000/09/xmldsig#}KeyValue), START_ELEMENT({http://www.w3.org/2000/09/xmldsig#}RetrievalMethod), START_ELEMENT({http://www.w3.org/2000/09/xmldsig#}X509Data), START_ELEMENT({http://www.w3.org/2000/09/xmldsig#}PGPData), START_ELEMENT({http://www.w3.org/2000/09/xmldsig#}SPKIData), START_ELEMENT({http://www.w3.org/2000/09/xmldsig#}MgmtData), START_ELEMENT_GENERIC, CHARACTERS_GENERIC[STRING]] */
+ if (iso2KeyInfoType_KeyName_currArrayIndex < iso2KeyInfoType->KeyName.arrayLen ) {
+ errn = encodeNBitUnsignedInteger(stream, 4, 0);
+ if(errn == 0) {
+ /* First(xsi:type)StartTag[CHARACTERS[STRING]] */
+ errn = encodeNBitUnsignedInteger(stream, 1, 0);
+ if(errn == 0) {
+ /* encode string as string table miss (+2 len)*/
+ errn = encodeUnsignedInteger16(stream, (uint16_t)(iso2KeyInfoType->KeyName.array[iso2KeyInfoType_KeyName_currArrayIndex].charactersLen + 2));
+ if (errn == 0) {
+ errn = encodeCharacters(stream, iso2KeyInfoType->KeyName.array[iso2KeyInfoType_KeyName_currArrayIndex].characters, iso2KeyInfoType->KeyName.array[iso2KeyInfoType_KeyName_currArrayIndex].charactersLen);
+ iso2KeyInfoType_KeyName_currArrayIndex++;
+ }
+ /* valid EE */
+ errn = encodeNBitUnsignedInteger(stream, 1, 0);
+ }
+ }
+ grammarID = 1988;
+ } else if (iso2KeyInfoType_KeyValue_currArrayIndex < iso2KeyInfoType->KeyValue.arrayLen ) {
+ errn = encodeNBitUnsignedInteger(stream, 4, 1);
+ if(errn == 0) {
+ errn = encode_iso2KeyValueType(stream, &iso2KeyInfoType->KeyValue.array [iso2KeyInfoType_KeyValue_currArrayIndex++]);
+ }
+ grammarID = 1988;
+ } else if (iso2KeyInfoType_RetrievalMethod_currArrayIndex < iso2KeyInfoType->RetrievalMethod.arrayLen ) {
+ errn = encodeNBitUnsignedInteger(stream, 4, 2);
+ if(errn == 0) {
+ errn = encode_iso2RetrievalMethodType(stream, &iso2KeyInfoType->RetrievalMethod.array [iso2KeyInfoType_RetrievalMethod_currArrayIndex++]);
+ }
+ grammarID = 1988;
+ } else if (iso2KeyInfoType_X509Data_currArrayIndex < iso2KeyInfoType->X509Data.arrayLen ) {
+ errn = encodeNBitUnsignedInteger(stream, 4, 3);
+ if(errn == 0) {
+ errn = encode_iso2X509DataType(stream, &iso2KeyInfoType->X509Data.array [iso2KeyInfoType_X509Data_currArrayIndex++]);
+ }
+ grammarID = 1988;
+ } else if (iso2KeyInfoType_PGPData_currArrayIndex < iso2KeyInfoType->PGPData.arrayLen ) {
+ errn = encodeNBitUnsignedInteger(stream, 4, 4);
+ if(errn == 0) {
+ errn = encode_iso2PGPDataType(stream, &iso2KeyInfoType->PGPData.array [iso2KeyInfoType_PGPData_currArrayIndex++]);
+ }
+ grammarID = 1988;
+ } else if (iso2KeyInfoType_SPKIData_currArrayIndex < iso2KeyInfoType->SPKIData.arrayLen ) {
+ errn = encodeNBitUnsignedInteger(stream, 4, 5);
+ if(errn == 0) {
+ errn = encode_iso2SPKIDataType(stream, &iso2KeyInfoType->SPKIData.array [iso2KeyInfoType_SPKIData_currArrayIndex++]);
+ }
+ grammarID = 1988;
+ } else if (iso2KeyInfoType_MgmtData_currArrayIndex < iso2KeyInfoType->MgmtData.arrayLen ) {
+ errn = encodeNBitUnsignedInteger(stream, 4, 6);
+ if(errn == 0) {
+ /* First(xsi:type)StartTag[CHARACTERS[STRING]] */
+ errn = encodeNBitUnsignedInteger(stream, 1, 0);
+ if(errn == 0) {
+ /* encode string as string table miss (+2 len)*/
+ errn = encodeUnsignedInteger16(stream, (uint16_t)(iso2KeyInfoType->MgmtData.array[iso2KeyInfoType_MgmtData_currArrayIndex].charactersLen + 2));
+ if (errn == 0) {
+ errn = encodeCharacters(stream, iso2KeyInfoType->MgmtData.array[iso2KeyInfoType_MgmtData_currArrayIndex].characters, iso2KeyInfoType->MgmtData.array[iso2KeyInfoType_MgmtData_currArrayIndex].charactersLen);
+ iso2KeyInfoType_MgmtData_currArrayIndex++;
+ }
+ /* valid EE */
+ errn = encodeNBitUnsignedInteger(stream, 1, 0);
+ }
+ }
+ grammarID = 1988;
+ } else if (1==0) {
+ errn = EXI_UNSUPPORTED_EVENT_CODE_CHARACTERISTICS;
+ grammarID = 1988;
+ } else if ( iso2KeyInfoType->ANY_isUsed == 1u ) {
+ errn = encodeNBitUnsignedInteger(stream, 4, 8);
+ if(errn == 0) {
+ /* encode string as string table miss (+2 len)*/
+ errn = encodeUnsignedInteger16(stream, (uint16_t)(iso2KeyInfoType->ANY.charactersLen + 2));
+ if (errn == 0) {
+ errn = encodeCharacters(stream, iso2KeyInfoType->ANY.characters, iso2KeyInfoType->ANY.charactersLen);
+ }
+ }
+ wcDone = 1;
+ grammarID = 1989;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 1988:
+ /* Element[START_ELEMENT({http://www.w3.org/2000/09/xmldsig#}KeyName), START_ELEMENT({http://www.w3.org/2000/09/xmldsig#}KeyValue), START_ELEMENT({http://www.w3.org/2000/09/xmldsig#}RetrievalMethod), START_ELEMENT({http://www.w3.org/2000/09/xmldsig#}X509Data), START_ELEMENT({http://www.w3.org/2000/09/xmldsig#}PGPData), START_ELEMENT({http://www.w3.org/2000/09/xmldsig#}SPKIData), START_ELEMENT({http://www.w3.org/2000/09/xmldsig#}MgmtData), START_ELEMENT_GENERIC, END_ELEMENT, CHARACTERS_GENERIC[STRING]] */
+ if (iso2KeyInfoType_KeyName_currArrayIndex < iso2KeyInfoType->KeyName.arrayLen ) {
+ errn = encodeNBitUnsignedInteger(stream, 4, 0);
+ if(errn == 0) {
+ /* First(xsi:type)StartTag[CHARACTERS[STRING]] */
+ errn = encodeNBitUnsignedInteger(stream, 1, 0);
+ if(errn == 0) {
+ /* encode string as string table miss (+2 len)*/
+ errn = encodeUnsignedInteger16(stream, (uint16_t)(iso2KeyInfoType->KeyName.array[iso2KeyInfoType_KeyName_currArrayIndex].charactersLen + 2));
+ if (errn == 0) {
+ errn = encodeCharacters(stream, iso2KeyInfoType->KeyName.array[iso2KeyInfoType_KeyName_currArrayIndex].characters, iso2KeyInfoType->KeyName.array[iso2KeyInfoType_KeyName_currArrayIndex].charactersLen);
+ iso2KeyInfoType_KeyName_currArrayIndex++;
+ }
+ /* valid EE */
+ errn = encodeNBitUnsignedInteger(stream, 1, 0);
+ }
+ }
+ grammarID = 1988;
+ } else if (iso2KeyInfoType_KeyValue_currArrayIndex < iso2KeyInfoType->KeyValue.arrayLen ) {
+ errn = encodeNBitUnsignedInteger(stream, 4, 1);
+ if(errn == 0) {
+ errn = encode_iso2KeyValueType(stream, &iso2KeyInfoType->KeyValue.array [iso2KeyInfoType_KeyValue_currArrayIndex++]);
+ }
+ grammarID = 1988;
+ } else if (iso2KeyInfoType_RetrievalMethod_currArrayIndex < iso2KeyInfoType->RetrievalMethod.arrayLen ) {
+ errn = encodeNBitUnsignedInteger(stream, 4, 2);
+ if(errn == 0) {
+ errn = encode_iso2RetrievalMethodType(stream, &iso2KeyInfoType->RetrievalMethod.array [iso2KeyInfoType_RetrievalMethod_currArrayIndex++]);
+ }
+ grammarID = 1988;
+ } else if (iso2KeyInfoType_X509Data_currArrayIndex < iso2KeyInfoType->X509Data.arrayLen ) {
+ errn = encodeNBitUnsignedInteger(stream, 4, 3);
+ if(errn == 0) {
+ errn = encode_iso2X509DataType(stream, &iso2KeyInfoType->X509Data.array [iso2KeyInfoType_X509Data_currArrayIndex++]);
+ }
+ grammarID = 1988;
+ } else if (iso2KeyInfoType_PGPData_currArrayIndex < iso2KeyInfoType->PGPData.arrayLen ) {
+ errn = encodeNBitUnsignedInteger(stream, 4, 4);
+ if(errn == 0) {
+ errn = encode_iso2PGPDataType(stream, &iso2KeyInfoType->PGPData.array [iso2KeyInfoType_PGPData_currArrayIndex++]);
+ }
+ grammarID = 1988;
+ } else if (iso2KeyInfoType_SPKIData_currArrayIndex < iso2KeyInfoType->SPKIData.arrayLen ) {
+ errn = encodeNBitUnsignedInteger(stream, 4, 5);
+ if(errn == 0) {
+ errn = encode_iso2SPKIDataType(stream, &iso2KeyInfoType->SPKIData.array [iso2KeyInfoType_SPKIData_currArrayIndex++]);
+ }
+ grammarID = 1988;
+ } else if (iso2KeyInfoType_MgmtData_currArrayIndex < iso2KeyInfoType->MgmtData.arrayLen ) {
+ errn = encodeNBitUnsignedInteger(stream, 4, 6);
+ if(errn == 0) {
+ /* First(xsi:type)StartTag[CHARACTERS[STRING]] */
+ errn = encodeNBitUnsignedInteger(stream, 1, 0);
+ if(errn == 0) {
+ /* encode string as string table miss (+2 len)*/
+ errn = encodeUnsignedInteger16(stream, (uint16_t)(iso2KeyInfoType->MgmtData.array[iso2KeyInfoType_MgmtData_currArrayIndex].charactersLen + 2));
+ if (errn == 0) {
+ errn = encodeCharacters(stream, iso2KeyInfoType->MgmtData.array[iso2KeyInfoType_MgmtData_currArrayIndex].characters, iso2KeyInfoType->MgmtData.array[iso2KeyInfoType_MgmtData_currArrayIndex].charactersLen);
+ iso2KeyInfoType_MgmtData_currArrayIndex++;
+ }
+ /* valid EE */
+ errn = encodeNBitUnsignedInteger(stream, 1, 0);
+ }
+ }
+ grammarID = 1988;
+ } else if (1==0) {
+ errn = EXI_UNSUPPORTED_EVENT_CODE_CHARACTERISTICS;
+ grammarID = 1988;
+ } else if ( iso2KeyInfoType->ANY_isUsed == 0u || wcDone ) {
+ errn = encodeNBitUnsignedInteger(stream, 4, 8);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else if ( iso2KeyInfoType->ANY_isUsed == 1u ) {
+ errn = encodeNBitUnsignedInteger(stream, 4, 9);
+ if(errn == 0) {
+ /* encode string as string table miss (+2 len)*/
+ errn = encodeUnsignedInteger16(stream, (uint16_t)(iso2KeyInfoType->ANY.charactersLen + 2));
+ if (errn == 0) {
+ errn = encodeCharacters(stream, iso2KeyInfoType->ANY.characters, iso2KeyInfoType->ANY.charactersLen);
+ }
+ }
+ wcDone = 1;
+ grammarID = 1988;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 1989:
+ /* Element[START_ELEMENT({http://www.w3.org/2000/09/xmldsig#}KeyName), START_ELEMENT({http://www.w3.org/2000/09/xmldsig#}KeyValue), START_ELEMENT({http://www.w3.org/2000/09/xmldsig#}RetrievalMethod), START_ELEMENT({http://www.w3.org/2000/09/xmldsig#}X509Data), START_ELEMENT({http://www.w3.org/2000/09/xmldsig#}PGPData), START_ELEMENT({http://www.w3.org/2000/09/xmldsig#}SPKIData), START_ELEMENT({http://www.w3.org/2000/09/xmldsig#}MgmtData), START_ELEMENT_GENERIC, CHARACTERS_GENERIC[STRING]] */
+ if (iso2KeyInfoType_KeyName_currArrayIndex < iso2KeyInfoType->KeyName.arrayLen ) {
+ errn = encodeNBitUnsignedInteger(stream, 4, 0);
+ if(errn == 0) {
+ /* First(xsi:type)StartTag[CHARACTERS[STRING]] */
+ errn = encodeNBitUnsignedInteger(stream, 1, 0);
+ if(errn == 0) {
+ /* encode string as string table miss (+2 len)*/
+ errn = encodeUnsignedInteger16(stream, (uint16_t)(iso2KeyInfoType->KeyName.array[iso2KeyInfoType_KeyName_currArrayIndex].charactersLen + 2));
+ if (errn == 0) {
+ errn = encodeCharacters(stream, iso2KeyInfoType->KeyName.array[iso2KeyInfoType_KeyName_currArrayIndex].characters, iso2KeyInfoType->KeyName.array[iso2KeyInfoType_KeyName_currArrayIndex].charactersLen);
+ iso2KeyInfoType_KeyName_currArrayIndex++;
+ }
+ /* valid EE */
+ errn = encodeNBitUnsignedInteger(stream, 1, 0);
+ }
+ }
+ grammarID = 1988;
+ } else if (iso2KeyInfoType_KeyValue_currArrayIndex < iso2KeyInfoType->KeyValue.arrayLen ) {
+ errn = encodeNBitUnsignedInteger(stream, 4, 1);
+ if(errn == 0) {
+ errn = encode_iso2KeyValueType(stream, &iso2KeyInfoType->KeyValue.array [iso2KeyInfoType_KeyValue_currArrayIndex++]);
+ }
+ grammarID = 1988;
+ } else if (iso2KeyInfoType_RetrievalMethod_currArrayIndex < iso2KeyInfoType->RetrievalMethod.arrayLen ) {
+ errn = encodeNBitUnsignedInteger(stream, 4, 2);
+ if(errn == 0) {
+ errn = encode_iso2RetrievalMethodType(stream, &iso2KeyInfoType->RetrievalMethod.array [iso2KeyInfoType_RetrievalMethod_currArrayIndex++]);
+ }
+ grammarID = 1988;
+ } else if (iso2KeyInfoType_X509Data_currArrayIndex < iso2KeyInfoType->X509Data.arrayLen ) {
+ errn = encodeNBitUnsignedInteger(stream, 4, 3);
+ if(errn == 0) {
+ errn = encode_iso2X509DataType(stream, &iso2KeyInfoType->X509Data.array [iso2KeyInfoType_X509Data_currArrayIndex++]);
+ }
+ grammarID = 1988;
+ } else if (iso2KeyInfoType_PGPData_currArrayIndex < iso2KeyInfoType->PGPData.arrayLen ) {
+ errn = encodeNBitUnsignedInteger(stream, 4, 4);
+ if(errn == 0) {
+ errn = encode_iso2PGPDataType(stream, &iso2KeyInfoType->PGPData.array [iso2KeyInfoType_PGPData_currArrayIndex++]);
+ }
+ grammarID = 1988;
+ } else if (iso2KeyInfoType_SPKIData_currArrayIndex < iso2KeyInfoType->SPKIData.arrayLen ) {
+ errn = encodeNBitUnsignedInteger(stream, 4, 5);
+ if(errn == 0) {
+ errn = encode_iso2SPKIDataType(stream, &iso2KeyInfoType->SPKIData.array [iso2KeyInfoType_SPKIData_currArrayIndex++]);
+ }
+ grammarID = 1988;
+ } else if (iso2KeyInfoType_MgmtData_currArrayIndex < iso2KeyInfoType->MgmtData.arrayLen ) {
+ errn = encodeNBitUnsignedInteger(stream, 4, 6);
+ if(errn == 0) {
+ /* First(xsi:type)StartTag[CHARACTERS[STRING]] */
+ errn = encodeNBitUnsignedInteger(stream, 1, 0);
+ if(errn == 0) {
+ /* encode string as string table miss (+2 len)*/
+ errn = encodeUnsignedInteger16(stream, (uint16_t)(iso2KeyInfoType->MgmtData.array[iso2KeyInfoType_MgmtData_currArrayIndex].charactersLen + 2));
+ if (errn == 0) {
+ errn = encodeCharacters(stream, iso2KeyInfoType->MgmtData.array[iso2KeyInfoType_MgmtData_currArrayIndex].characters, iso2KeyInfoType->MgmtData.array[iso2KeyInfoType_MgmtData_currArrayIndex].charactersLen);
+ iso2KeyInfoType_MgmtData_currArrayIndex++;
+ }
+ /* valid EE */
+ errn = encodeNBitUnsignedInteger(stream, 1, 0);
+ }
+ }
+ grammarID = 1988;
+ } else if (1==0) {
+ errn = EXI_UNSUPPORTED_EVENT_CODE_CHARACTERISTICS;
+ grammarID = 1988;
+ } else if ( iso2KeyInfoType->ANY_isUsed == 1u ) {
+ errn = encodeNBitUnsignedInteger(stream, 4, 8);
+ if(errn == 0) {
+ /* encode string as string table miss (+2 len)*/
+ errn = encodeUnsignedInteger16(stream, (uint16_t)(iso2KeyInfoType->ANY.charactersLen + 2));
+ if (errn == 0) {
+ errn = encodeCharacters(stream, iso2KeyInfoType->ANY.characters, iso2KeyInfoType->ANY.charactersLen);
+ }
+ }
+ wcDone = 1;
+ grammarID = 1989;
+ } 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:2016:MsgDataTypes,SubCertificatesType', base type name='anyType', content type='ELEMENT', isAbstract='false', hasTypeId='false', final='0', block='0', particle='("urn:iso:15118:2:2016:MsgDataTypes":Certificate{1-4})', derivedBy='RESTRICTION'. */
+static int encode_iso2SubCertificatesType(bitstream_t* stream, struct iso2SubCertificatesType* iso2SubCertificatesType) {
+ int grammarID = 1990;
+ int done = 0;
+
+ unsigned int iso2SubCertificatesType_Certificate_currArrayIndex = 0;
+
+ while(!done) {
+ switch(grammarID) {
+ case 1990:
+ /* FirstStartTag[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}Certificate)] */
+ if (iso2SubCertificatesType_Certificate_currArrayIndex < iso2SubCertificatesType->Certificate.arrayLen ) {
+ errn = encodeNBitUnsignedInteger(stream, 1, 0);
+ if(errn == 0) {
+ /* FirstStartTag[CHARACTERS[BINARY_BASE64]] */
+ errn = encodeNBitUnsignedInteger(stream, 1, 0);
+ if(errn == 0) {
+ errn = encodeUnsignedInteger16(stream, (uint16_t)(iso2SubCertificatesType->Certificate.array[iso2SubCertificatesType_Certificate_currArrayIndex].bytesLen));
+ if (errn == 0) {
+ errn = encodeBytes(stream, iso2SubCertificatesType->Certificate.array[iso2SubCertificatesType_Certificate_currArrayIndex].bytes, iso2SubCertificatesType->Certificate.array[iso2SubCertificatesType_Certificate_currArrayIndex].bytesLen);
+ iso2SubCertificatesType_Certificate_currArrayIndex++;
+ }
+ /* valid EE */
+ errn = encodeNBitUnsignedInteger(stream, 1, 0);
+ }
+ }
+ grammarID = 1991;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 1991:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}Certificate), END_ELEMENT] */
+ if (iso2SubCertificatesType_Certificate_currArrayIndex < iso2SubCertificatesType->Certificate.arrayLen ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ if(errn == 0) {
+ /* FirstStartTag[CHARACTERS[BINARY_BASE64]] */
+ errn = encodeNBitUnsignedInteger(stream, 1, 0);
+ if(errn == 0) {
+ errn = encodeUnsignedInteger16(stream, (uint16_t)(iso2SubCertificatesType->Certificate.array[iso2SubCertificatesType_Certificate_currArrayIndex].bytesLen));
+ if (errn == 0) {
+ errn = encodeBytes(stream, iso2SubCertificatesType->Certificate.array[iso2SubCertificatesType_Certificate_currArrayIndex].bytes, iso2SubCertificatesType->Certificate.array[iso2SubCertificatesType_Certificate_currArrayIndex].bytesLen);
+ iso2SubCertificatesType_Certificate_currArrayIndex++;
+ }
+ /* valid EE */
+ errn = encodeNBitUnsignedInteger(stream, 1, 0);
+ }
+ }
+ grammarID = 1992;
+ } else if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 1992:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}Certificate), END_ELEMENT] */
+ if (iso2SubCertificatesType_Certificate_currArrayIndex < iso2SubCertificatesType->Certificate.arrayLen ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ if(errn == 0) {
+ /* FirstStartTag[CHARACTERS[BINARY_BASE64]] */
+ errn = encodeNBitUnsignedInteger(stream, 1, 0);
+ if(errn == 0) {
+ errn = encodeUnsignedInteger16(stream, (uint16_t)(iso2SubCertificatesType->Certificate.array[iso2SubCertificatesType_Certificate_currArrayIndex].bytesLen));
+ if (errn == 0) {
+ errn = encodeBytes(stream, iso2SubCertificatesType->Certificate.array[iso2SubCertificatesType_Certificate_currArrayIndex].bytes, iso2SubCertificatesType->Certificate.array[iso2SubCertificatesType_Certificate_currArrayIndex].bytesLen);
+ iso2SubCertificatesType_Certificate_currArrayIndex++;
+ }
+ /* valid EE */
+ errn = encodeNBitUnsignedInteger(stream, 1, 0);
+ }
+ }
+ grammarID = 1993;
+ } else if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 1993:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}Certificate), END_ELEMENT] */
+ if (iso2SubCertificatesType_Certificate_currArrayIndex < iso2SubCertificatesType->Certificate.arrayLen ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ if(errn == 0) {
+ /* FirstStartTag[CHARACTERS[BINARY_BASE64]] */
+ errn = encodeNBitUnsignedInteger(stream, 1, 0);
+ if(errn == 0) {
+ errn = encodeUnsignedInteger16(stream, (uint16_t)(iso2SubCertificatesType->Certificate.array[iso2SubCertificatesType_Certificate_currArrayIndex].bytesLen));
+ if (errn == 0) {
+ errn = encodeBytes(stream, iso2SubCertificatesType->Certificate.array[iso2SubCertificatesType_Certificate_currArrayIndex].bytes, iso2SubCertificatesType->Certificate.array[iso2SubCertificatesType_Certificate_currArrayIndex].bytesLen);
+ iso2SubCertificatesType_Certificate_currArrayIndex++;
+ }
+ /* valid EE */
+ errn = encodeNBitUnsignedInteger(stream, 1, 0);
+ }
+ }
+ grammarID = 3;
+ } else if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 3:
+ /* Element[END_ELEMENT] */
+ if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 1, 0);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } 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:2016:MsgDataTypes,ListOfRootCertificateIDsType', base type name='anyType', content type='ELEMENT', isAbstract='false', hasTypeId='false', final='0', block='0', particle='("urn:iso:15118:2:2016:MsgDataTypes":RootCertificateID{1-20})', derivedBy='RESTRICTION'. */
+static int encode_iso2ListOfRootCertificateIDsType(bitstream_t* stream, struct iso2ListOfRootCertificateIDsType* iso2ListOfRootCertificateIDsType) {
+ int grammarID = 1994;
+ int done = 0;
+
+ unsigned int iso2ListOfRootCertificateIDsType_RootCertificateID_currArrayIndex = 0;
+
+ while(!done) {
+ switch(grammarID) {
+ case 1994:
+ /* FirstStartTag[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}RootCertificateID)] */
+ if (iso2ListOfRootCertificateIDsType_RootCertificateID_currArrayIndex < iso2ListOfRootCertificateIDsType->RootCertificateID.arrayLen ) {
+ errn = encodeNBitUnsignedInteger(stream, 1, 0);
+ if(errn == 0) {
+ errn = encode_iso2X509IssuerSerialType(stream, &iso2ListOfRootCertificateIDsType->RootCertificateID.array [iso2ListOfRootCertificateIDsType_RootCertificateID_currArrayIndex++]);
+ }
+ grammarID = 1995;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 1995:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}RootCertificateID), END_ELEMENT] */
+ if (iso2ListOfRootCertificateIDsType_RootCertificateID_currArrayIndex < iso2ListOfRootCertificateIDsType->RootCertificateID.arrayLen ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ if(errn == 0) {
+ errn = encode_iso2X509IssuerSerialType(stream, &iso2ListOfRootCertificateIDsType->RootCertificateID.array [iso2ListOfRootCertificateIDsType_RootCertificateID_currArrayIndex++]);
+ }
+ grammarID = 1996;
+ } else if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 1996:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}RootCertificateID), END_ELEMENT] */
+ if (iso2ListOfRootCertificateIDsType_RootCertificateID_currArrayIndex < iso2ListOfRootCertificateIDsType->RootCertificateID.arrayLen ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ if(errn == 0) {
+ errn = encode_iso2X509IssuerSerialType(stream, &iso2ListOfRootCertificateIDsType->RootCertificateID.array [iso2ListOfRootCertificateIDsType_RootCertificateID_currArrayIndex++]);
+ }
+ grammarID = 1997;
+ } else if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 1997:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}RootCertificateID), END_ELEMENT] */
+ if (iso2ListOfRootCertificateIDsType_RootCertificateID_currArrayIndex < iso2ListOfRootCertificateIDsType->RootCertificateID.arrayLen ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ if(errn == 0) {
+ errn = encode_iso2X509IssuerSerialType(stream, &iso2ListOfRootCertificateIDsType->RootCertificateID.array [iso2ListOfRootCertificateIDsType_RootCertificateID_currArrayIndex++]);
+ }
+ grammarID = 1998;
+ } else if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 1998:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}RootCertificateID), END_ELEMENT] */
+ if (iso2ListOfRootCertificateIDsType_RootCertificateID_currArrayIndex < iso2ListOfRootCertificateIDsType->RootCertificateID.arrayLen ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ if(errn == 0) {
+ errn = encode_iso2X509IssuerSerialType(stream, &iso2ListOfRootCertificateIDsType->RootCertificateID.array [iso2ListOfRootCertificateIDsType_RootCertificateID_currArrayIndex++]);
+ }
+ grammarID = 1999;
+ } else if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 1999:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}RootCertificateID), END_ELEMENT] */
+ if (iso2ListOfRootCertificateIDsType_RootCertificateID_currArrayIndex < iso2ListOfRootCertificateIDsType->RootCertificateID.arrayLen ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ if(errn == 0) {
+ errn = encode_iso2X509IssuerSerialType(stream, &iso2ListOfRootCertificateIDsType->RootCertificateID.array [iso2ListOfRootCertificateIDsType_RootCertificateID_currArrayIndex++]);
+ }
+ grammarID = 2000;
+ } else if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 2000:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}RootCertificateID), END_ELEMENT] */
+ if (iso2ListOfRootCertificateIDsType_RootCertificateID_currArrayIndex < iso2ListOfRootCertificateIDsType->RootCertificateID.arrayLen ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ if(errn == 0) {
+ errn = encode_iso2X509IssuerSerialType(stream, &iso2ListOfRootCertificateIDsType->RootCertificateID.array [iso2ListOfRootCertificateIDsType_RootCertificateID_currArrayIndex++]);
+ }
+ grammarID = 2001;
+ } else if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 2001:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}RootCertificateID), END_ELEMENT] */
+ if (iso2ListOfRootCertificateIDsType_RootCertificateID_currArrayIndex < iso2ListOfRootCertificateIDsType->RootCertificateID.arrayLen ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ if(errn == 0) {
+ errn = encode_iso2X509IssuerSerialType(stream, &iso2ListOfRootCertificateIDsType->RootCertificateID.array [iso2ListOfRootCertificateIDsType_RootCertificateID_currArrayIndex++]);
+ }
+ grammarID = 2002;
+ } else if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 2002:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}RootCertificateID), END_ELEMENT] */
+ if (iso2ListOfRootCertificateIDsType_RootCertificateID_currArrayIndex < iso2ListOfRootCertificateIDsType->RootCertificateID.arrayLen ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ if(errn == 0) {
+ errn = encode_iso2X509IssuerSerialType(stream, &iso2ListOfRootCertificateIDsType->RootCertificateID.array [iso2ListOfRootCertificateIDsType_RootCertificateID_currArrayIndex++]);
+ }
+ grammarID = 2003;
+ } else if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 2003:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}RootCertificateID), END_ELEMENT] */
+ if (iso2ListOfRootCertificateIDsType_RootCertificateID_currArrayIndex < iso2ListOfRootCertificateIDsType->RootCertificateID.arrayLen ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ if(errn == 0) {
+ errn = encode_iso2X509IssuerSerialType(stream, &iso2ListOfRootCertificateIDsType->RootCertificateID.array [iso2ListOfRootCertificateIDsType_RootCertificateID_currArrayIndex++]);
+ }
+ grammarID = 2004;
+ } else if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 2004:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}RootCertificateID), END_ELEMENT] */
+ if (iso2ListOfRootCertificateIDsType_RootCertificateID_currArrayIndex < iso2ListOfRootCertificateIDsType->RootCertificateID.arrayLen ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ if(errn == 0) {
+ errn = encode_iso2X509IssuerSerialType(stream, &iso2ListOfRootCertificateIDsType->RootCertificateID.array [iso2ListOfRootCertificateIDsType_RootCertificateID_currArrayIndex++]);
+ }
+ grammarID = 2005;
+ } else if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 2005:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}RootCertificateID), END_ELEMENT] */
+ if (iso2ListOfRootCertificateIDsType_RootCertificateID_currArrayIndex < iso2ListOfRootCertificateIDsType->RootCertificateID.arrayLen ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ if(errn == 0) {
+ errn = encode_iso2X509IssuerSerialType(stream, &iso2ListOfRootCertificateIDsType->RootCertificateID.array [iso2ListOfRootCertificateIDsType_RootCertificateID_currArrayIndex++]);
+ }
+ grammarID = 2006;
+ } else if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 2006:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}RootCertificateID), END_ELEMENT] */
+ if (iso2ListOfRootCertificateIDsType_RootCertificateID_currArrayIndex < iso2ListOfRootCertificateIDsType->RootCertificateID.arrayLen ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ if(errn == 0) {
+ errn = encode_iso2X509IssuerSerialType(stream, &iso2ListOfRootCertificateIDsType->RootCertificateID.array [iso2ListOfRootCertificateIDsType_RootCertificateID_currArrayIndex++]);
+ }
+ grammarID = 2007;
+ } else if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 2007:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}RootCertificateID), END_ELEMENT] */
+ if (iso2ListOfRootCertificateIDsType_RootCertificateID_currArrayIndex < iso2ListOfRootCertificateIDsType->RootCertificateID.arrayLen ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ if(errn == 0) {
+ errn = encode_iso2X509IssuerSerialType(stream, &iso2ListOfRootCertificateIDsType->RootCertificateID.array [iso2ListOfRootCertificateIDsType_RootCertificateID_currArrayIndex++]);
+ }
+ grammarID = 2008;
+ } else if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 2008:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}RootCertificateID), END_ELEMENT] */
+ if (iso2ListOfRootCertificateIDsType_RootCertificateID_currArrayIndex < iso2ListOfRootCertificateIDsType->RootCertificateID.arrayLen ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ if(errn == 0) {
+ errn = encode_iso2X509IssuerSerialType(stream, &iso2ListOfRootCertificateIDsType->RootCertificateID.array [iso2ListOfRootCertificateIDsType_RootCertificateID_currArrayIndex++]);
+ }
+ grammarID = 2009;
+ } else if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 2009:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}RootCertificateID), END_ELEMENT] */
+ if (iso2ListOfRootCertificateIDsType_RootCertificateID_currArrayIndex < iso2ListOfRootCertificateIDsType->RootCertificateID.arrayLen ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ if(errn == 0) {
+ errn = encode_iso2X509IssuerSerialType(stream, &iso2ListOfRootCertificateIDsType->RootCertificateID.array [iso2ListOfRootCertificateIDsType_RootCertificateID_currArrayIndex++]);
+ }
+ grammarID = 2010;
+ } else if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 2010:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}RootCertificateID), END_ELEMENT] */
+ if (iso2ListOfRootCertificateIDsType_RootCertificateID_currArrayIndex < iso2ListOfRootCertificateIDsType->RootCertificateID.arrayLen ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ if(errn == 0) {
+ errn = encode_iso2X509IssuerSerialType(stream, &iso2ListOfRootCertificateIDsType->RootCertificateID.array [iso2ListOfRootCertificateIDsType_RootCertificateID_currArrayIndex++]);
+ }
+ grammarID = 2011;
+ } else if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 2011:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}RootCertificateID), END_ELEMENT] */
+ if (iso2ListOfRootCertificateIDsType_RootCertificateID_currArrayIndex < iso2ListOfRootCertificateIDsType->RootCertificateID.arrayLen ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ if(errn == 0) {
+ errn = encode_iso2X509IssuerSerialType(stream, &iso2ListOfRootCertificateIDsType->RootCertificateID.array [iso2ListOfRootCertificateIDsType_RootCertificateID_currArrayIndex++]);
+ }
+ grammarID = 2012;
+ } else if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 2012:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}RootCertificateID), END_ELEMENT] */
+ if (iso2ListOfRootCertificateIDsType_RootCertificateID_currArrayIndex < iso2ListOfRootCertificateIDsType->RootCertificateID.arrayLen ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ if(errn == 0) {
+ errn = encode_iso2X509IssuerSerialType(stream, &iso2ListOfRootCertificateIDsType->RootCertificateID.array [iso2ListOfRootCertificateIDsType_RootCertificateID_currArrayIndex++]);
+ }
+ grammarID = 2013;
+ } else if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 2013:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}RootCertificateID), END_ELEMENT] */
+ if (iso2ListOfRootCertificateIDsType_RootCertificateID_currArrayIndex < iso2ListOfRootCertificateIDsType->RootCertificateID.arrayLen ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ if(errn == 0) {
+ errn = encode_iso2X509IssuerSerialType(stream, &iso2ListOfRootCertificateIDsType->RootCertificateID.array [iso2ListOfRootCertificateIDsType_RootCertificateID_currArrayIndex++]);
+ }
+ grammarID = 3;
+ } else if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 3:
+ /* Element[END_ELEMENT] */
+ if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 1, 0);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } 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:2016:MsgDataTypes,EVEnergyTransferParameterType', base type name='anyType', content type='ELEMENT', isAbstract='true', hasTypeId='false', final='0', block='0', particle='("urn:iso:15118:2:2016:MsgDataTypes":DepartureTime)', derivedBy='RESTRICTION'. */
+static int encode_iso2EVEnergyTransferParameterType(bitstream_t* stream, struct iso2EVEnergyTransferParameterType* iso2EVEnergyTransferParameterType) {
+ int grammarID = 2014;
+ int done = 0;
+
+
+ while(!done) {
+ switch(grammarID) {
+ case 2014:
+ /* FirstStartTag[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}DepartureTime)] */
+ if ( 1 == 1 ) {
+ errn = encodeNBitUnsignedInteger(stream, 1, 0);
+ if(errn == 0) {
+ /* First(xsi:type)StartTag[CHARACTERS[UNSIGNED_INTEGER]] */
+ errn = encodeNBitUnsignedInteger(stream, 1, 0);
+ if(errn == 0) {
+ errn = encodeUnsignedInteger32(stream, iso2EVEnergyTransferParameterType->DepartureTime);
+ /* valid EE */
+ errn = encodeNBitUnsignedInteger(stream, 1, 0);
+ }
+ }
+ grammarID = 3;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 3:
+ /* Element[END_ELEMENT] */
+ if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 1, 0);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } 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:2016:MsgDataTypes,ContractSignatureEncryptedPrivateKeyType', base type name='encryptedPrivateKeyType', content type='SIMPLE', isAbstract='false', hasTypeId='false', final='0', block='0', derivedBy='EXTENSION'. */
+static int encode_iso2ContractSignatureEncryptedPrivateKeyType(bitstream_t* stream, struct iso2ContractSignatureEncryptedPrivateKeyType* iso2ContractSignatureEncryptedPrivateKeyType) {
+ int grammarID = 2015;
+ int done = 0;
+
+
+ while(!done) {
+ switch(grammarID) {
+ case 2015:
+ /* FirstStartTag[ATTRIBUTE[STRING]({urn:iso:15118:2:2016:MsgDataTypes}Id)] */
+ if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 1, 0);
+ if(errn == 0) {
+ /* encode string as string table miss (+2 len)*/
+ errn = encodeUnsignedInteger16(stream, (uint16_t)(iso2ContractSignatureEncryptedPrivateKeyType->Id.charactersLen + 2));
+ if (errn == 0) {
+ errn = encodeCharacters(stream, iso2ContractSignatureEncryptedPrivateKeyType->Id.characters, iso2ContractSignatureEncryptedPrivateKeyType->Id.charactersLen);
+ }
+ }
+ grammarID = 2016;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 2016:
+ /* StartTag[CHARACTERS[BINARY_BASE64]] */
+ if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 1, 0);
+ if(errn == 0) {
+ errn = encodeUnsignedInteger16(stream, (uint16_t)(iso2ContractSignatureEncryptedPrivateKeyType->CONTENT.bytesLen));
+ if (errn == 0) {
+ errn = encodeBytes(stream, iso2ContractSignatureEncryptedPrivateKeyType->CONTENT.bytes, iso2ContractSignatureEncryptedPrivateKeyType->CONTENT.bytesLen);
+ }
+ }
+ grammarID = 3;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 3:
+ /* Element[END_ELEMENT] */
+ if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 1, 0);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } 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:2016:MsgDataTypes,MagneticVectorSetupListType', base type name='anyType', content type='ELEMENT', isAbstract='false', hasTypeId='false', final='0', block='0', particle='("urn:iso:15118:2:2016:MsgDataTypes":MagneticVectorSetup{1-255})', derivedBy='RESTRICTION'. */
+static int encode_iso2MagneticVectorSetupListType(bitstream_t* stream, struct iso2MagneticVectorSetupListType* iso2MagneticVectorSetupListType) {
+ int grammarID = 2017;
+ int done = 0;
+
+ unsigned int iso2MagneticVectorSetupListType_MagneticVectorSetup_currArrayIndex = 0;
+
+ while(!done) {
+ switch(grammarID) {
+ case 2017:
+ /* FirstStartTag[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MagneticVectorSetup)] */
+ if (iso2MagneticVectorSetupListType_MagneticVectorSetup_currArrayIndex < iso2MagneticVectorSetupListType->MagneticVectorSetup.arrayLen ) {
+ errn = encodeNBitUnsignedInteger(stream, 1, 0);
+ if(errn == 0) {
+ errn = encode_iso2MagneticVectorSetupType(stream, &iso2MagneticVectorSetupListType->MagneticVectorSetup.array [iso2MagneticVectorSetupListType_MagneticVectorSetup_currArrayIndex++]);
+ }
+ grammarID = 2018;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 2018:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MagneticVectorSetup), END_ELEMENT] */
+ if (iso2MagneticVectorSetupListType_MagneticVectorSetup_currArrayIndex < iso2MagneticVectorSetupListType->MagneticVectorSetup.arrayLen ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ if(errn == 0) {
+ errn = encode_iso2MagneticVectorSetupType(stream, &iso2MagneticVectorSetupListType->MagneticVectorSetup.array [iso2MagneticVectorSetupListType_MagneticVectorSetup_currArrayIndex++]);
+ }
+ grammarID = 2019;
+ } else if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 2019:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MagneticVectorSetup), END_ELEMENT] */
+ if (iso2MagneticVectorSetupListType_MagneticVectorSetup_currArrayIndex < iso2MagneticVectorSetupListType->MagneticVectorSetup.arrayLen ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ if(errn == 0) {
+ errn = encode_iso2MagneticVectorSetupType(stream, &iso2MagneticVectorSetupListType->MagneticVectorSetup.array [iso2MagneticVectorSetupListType_MagneticVectorSetup_currArrayIndex++]);
+ }
+ grammarID = 2020;
+ } else if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 2020:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MagneticVectorSetup), END_ELEMENT] */
+ if (iso2MagneticVectorSetupListType_MagneticVectorSetup_currArrayIndex < iso2MagneticVectorSetupListType->MagneticVectorSetup.arrayLen ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ if(errn == 0) {
+ errn = encode_iso2MagneticVectorSetupType(stream, &iso2MagneticVectorSetupListType->MagneticVectorSetup.array [iso2MagneticVectorSetupListType_MagneticVectorSetup_currArrayIndex++]);
+ }
+ grammarID = 2021;
+ } else if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 2021:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MagneticVectorSetup), END_ELEMENT] */
+ if (iso2MagneticVectorSetupListType_MagneticVectorSetup_currArrayIndex < iso2MagneticVectorSetupListType->MagneticVectorSetup.arrayLen ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ if(errn == 0) {
+ errn = encode_iso2MagneticVectorSetupType(stream, &iso2MagneticVectorSetupListType->MagneticVectorSetup.array [iso2MagneticVectorSetupListType_MagneticVectorSetup_currArrayIndex++]);
+ }
+ grammarID = 2022;
+ } else if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 2022:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MagneticVectorSetup), END_ELEMENT] */
+ if (iso2MagneticVectorSetupListType_MagneticVectorSetup_currArrayIndex < iso2MagneticVectorSetupListType->MagneticVectorSetup.arrayLen ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ if(errn == 0) {
+ errn = encode_iso2MagneticVectorSetupType(stream, &iso2MagneticVectorSetupListType->MagneticVectorSetup.array [iso2MagneticVectorSetupListType_MagneticVectorSetup_currArrayIndex++]);
+ }
+ grammarID = 2023;
+ } else if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 2023:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MagneticVectorSetup), END_ELEMENT] */
+ if (iso2MagneticVectorSetupListType_MagneticVectorSetup_currArrayIndex < iso2MagneticVectorSetupListType->MagneticVectorSetup.arrayLen ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ if(errn == 0) {
+ errn = encode_iso2MagneticVectorSetupType(stream, &iso2MagneticVectorSetupListType->MagneticVectorSetup.array [iso2MagneticVectorSetupListType_MagneticVectorSetup_currArrayIndex++]);
+ }
+ grammarID = 2024;
+ } else if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 2024:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MagneticVectorSetup), END_ELEMENT] */
+ if (iso2MagneticVectorSetupListType_MagneticVectorSetup_currArrayIndex < iso2MagneticVectorSetupListType->MagneticVectorSetup.arrayLen ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ if(errn == 0) {
+ errn = encode_iso2MagneticVectorSetupType(stream, &iso2MagneticVectorSetupListType->MagneticVectorSetup.array [iso2MagneticVectorSetupListType_MagneticVectorSetup_currArrayIndex++]);
+ }
+ grammarID = 2025;
+ } else if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 2025:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MagneticVectorSetup), END_ELEMENT] */
+ if (iso2MagneticVectorSetupListType_MagneticVectorSetup_currArrayIndex < iso2MagneticVectorSetupListType->MagneticVectorSetup.arrayLen ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ if(errn == 0) {
+ errn = encode_iso2MagneticVectorSetupType(stream, &iso2MagneticVectorSetupListType->MagneticVectorSetup.array [iso2MagneticVectorSetupListType_MagneticVectorSetup_currArrayIndex++]);
+ }
+ grammarID = 2026;
+ } else if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 2026:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MagneticVectorSetup), END_ELEMENT] */
+ if (iso2MagneticVectorSetupListType_MagneticVectorSetup_currArrayIndex < iso2MagneticVectorSetupListType->MagneticVectorSetup.arrayLen ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ if(errn == 0) {
+ errn = encode_iso2MagneticVectorSetupType(stream, &iso2MagneticVectorSetupListType->MagneticVectorSetup.array [iso2MagneticVectorSetupListType_MagneticVectorSetup_currArrayIndex++]);
+ }
+ grammarID = 2027;
+ } else if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 2027:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MagneticVectorSetup), END_ELEMENT] */
+ if (iso2MagneticVectorSetupListType_MagneticVectorSetup_currArrayIndex < iso2MagneticVectorSetupListType->MagneticVectorSetup.arrayLen ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ if(errn == 0) {
+ errn = encode_iso2MagneticVectorSetupType(stream, &iso2MagneticVectorSetupListType->MagneticVectorSetup.array [iso2MagneticVectorSetupListType_MagneticVectorSetup_currArrayIndex++]);
+ }
+ grammarID = 2028;
+ } else if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 2028:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MagneticVectorSetup), END_ELEMENT] */
+ if (iso2MagneticVectorSetupListType_MagneticVectorSetup_currArrayIndex < iso2MagneticVectorSetupListType->MagneticVectorSetup.arrayLen ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ if(errn == 0) {
+ errn = encode_iso2MagneticVectorSetupType(stream, &iso2MagneticVectorSetupListType->MagneticVectorSetup.array [iso2MagneticVectorSetupListType_MagneticVectorSetup_currArrayIndex++]);
+ }
+ grammarID = 2029;
+ } else if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 2029:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MagneticVectorSetup), END_ELEMENT] */
+ if (iso2MagneticVectorSetupListType_MagneticVectorSetup_currArrayIndex < iso2MagneticVectorSetupListType->MagneticVectorSetup.arrayLen ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ if(errn == 0) {
+ errn = encode_iso2MagneticVectorSetupType(stream, &iso2MagneticVectorSetupListType->MagneticVectorSetup.array [iso2MagneticVectorSetupListType_MagneticVectorSetup_currArrayIndex++]);
+ }
+ grammarID = 2030;
+ } else if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 2030:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MagneticVectorSetup), END_ELEMENT] */
+ if (iso2MagneticVectorSetupListType_MagneticVectorSetup_currArrayIndex < iso2MagneticVectorSetupListType->MagneticVectorSetup.arrayLen ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ if(errn == 0) {
+ errn = encode_iso2MagneticVectorSetupType(stream, &iso2MagneticVectorSetupListType->MagneticVectorSetup.array [iso2MagneticVectorSetupListType_MagneticVectorSetup_currArrayIndex++]);
+ }
+ grammarID = 2031;
+ } else if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 2031:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MagneticVectorSetup), END_ELEMENT] */
+ if (iso2MagneticVectorSetupListType_MagneticVectorSetup_currArrayIndex < iso2MagneticVectorSetupListType->MagneticVectorSetup.arrayLen ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ if(errn == 0) {
+ errn = encode_iso2MagneticVectorSetupType(stream, &iso2MagneticVectorSetupListType->MagneticVectorSetup.array [iso2MagneticVectorSetupListType_MagneticVectorSetup_currArrayIndex++]);
+ }
+ grammarID = 2032;
+ } else if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 2032:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MagneticVectorSetup), END_ELEMENT] */
+ if (iso2MagneticVectorSetupListType_MagneticVectorSetup_currArrayIndex < iso2MagneticVectorSetupListType->MagneticVectorSetup.arrayLen ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ if(errn == 0) {
+ errn = encode_iso2MagneticVectorSetupType(stream, &iso2MagneticVectorSetupListType->MagneticVectorSetup.array [iso2MagneticVectorSetupListType_MagneticVectorSetup_currArrayIndex++]);
+ }
+ grammarID = 2033;
+ } else if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 2033:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MagneticVectorSetup), END_ELEMENT] */
+ if (iso2MagneticVectorSetupListType_MagneticVectorSetup_currArrayIndex < iso2MagneticVectorSetupListType->MagneticVectorSetup.arrayLen ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ if(errn == 0) {
+ errn = encode_iso2MagneticVectorSetupType(stream, &iso2MagneticVectorSetupListType->MagneticVectorSetup.array [iso2MagneticVectorSetupListType_MagneticVectorSetup_currArrayIndex++]);
+ }
+ grammarID = 2034;
+ } else if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 2034:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MagneticVectorSetup), END_ELEMENT] */
+ if (iso2MagneticVectorSetupListType_MagneticVectorSetup_currArrayIndex < iso2MagneticVectorSetupListType->MagneticVectorSetup.arrayLen ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ if(errn == 0) {
+ errn = encode_iso2MagneticVectorSetupType(stream, &iso2MagneticVectorSetupListType->MagneticVectorSetup.array [iso2MagneticVectorSetupListType_MagneticVectorSetup_currArrayIndex++]);
+ }
+ grammarID = 2035;
+ } else if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 2035:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MagneticVectorSetup), END_ELEMENT] */
+ if (iso2MagneticVectorSetupListType_MagneticVectorSetup_currArrayIndex < iso2MagneticVectorSetupListType->MagneticVectorSetup.arrayLen ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ if(errn == 0) {
+ errn = encode_iso2MagneticVectorSetupType(stream, &iso2MagneticVectorSetupListType->MagneticVectorSetup.array [iso2MagneticVectorSetupListType_MagneticVectorSetup_currArrayIndex++]);
+ }
+ grammarID = 2036;
+ } else if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 2036:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MagneticVectorSetup), END_ELEMENT] */
+ if (iso2MagneticVectorSetupListType_MagneticVectorSetup_currArrayIndex < iso2MagneticVectorSetupListType->MagneticVectorSetup.arrayLen ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ if(errn == 0) {
+ errn = encode_iso2MagneticVectorSetupType(stream, &iso2MagneticVectorSetupListType->MagneticVectorSetup.array [iso2MagneticVectorSetupListType_MagneticVectorSetup_currArrayIndex++]);
+ }
+ grammarID = 2037;
+ } else if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 2037:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MagneticVectorSetup), END_ELEMENT] */
+ if (iso2MagneticVectorSetupListType_MagneticVectorSetup_currArrayIndex < iso2MagneticVectorSetupListType->MagneticVectorSetup.arrayLen ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ if(errn == 0) {
+ errn = encode_iso2MagneticVectorSetupType(stream, &iso2MagneticVectorSetupListType->MagneticVectorSetup.array [iso2MagneticVectorSetupListType_MagneticVectorSetup_currArrayIndex++]);
+ }
+ grammarID = 2038;
+ } else if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 2038:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MagneticVectorSetup), END_ELEMENT] */
+ if (iso2MagneticVectorSetupListType_MagneticVectorSetup_currArrayIndex < iso2MagneticVectorSetupListType->MagneticVectorSetup.arrayLen ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ if(errn == 0) {
+ errn = encode_iso2MagneticVectorSetupType(stream, &iso2MagneticVectorSetupListType->MagneticVectorSetup.array [iso2MagneticVectorSetupListType_MagneticVectorSetup_currArrayIndex++]);
+ }
+ grammarID = 2039;
+ } else if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 2039:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MagneticVectorSetup), END_ELEMENT] */
+ if (iso2MagneticVectorSetupListType_MagneticVectorSetup_currArrayIndex < iso2MagneticVectorSetupListType->MagneticVectorSetup.arrayLen ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ if(errn == 0) {
+ errn = encode_iso2MagneticVectorSetupType(stream, &iso2MagneticVectorSetupListType->MagneticVectorSetup.array [iso2MagneticVectorSetupListType_MagneticVectorSetup_currArrayIndex++]);
+ }
+ grammarID = 2040;
+ } else if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 2040:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MagneticVectorSetup), END_ELEMENT] */
+ if (iso2MagneticVectorSetupListType_MagneticVectorSetup_currArrayIndex < iso2MagneticVectorSetupListType->MagneticVectorSetup.arrayLen ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ if(errn == 0) {
+ errn = encode_iso2MagneticVectorSetupType(stream, &iso2MagneticVectorSetupListType->MagneticVectorSetup.array [iso2MagneticVectorSetupListType_MagneticVectorSetup_currArrayIndex++]);
+ }
+ grammarID = 2041;
+ } else if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 2041:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MagneticVectorSetup), END_ELEMENT] */
+ if (iso2MagneticVectorSetupListType_MagneticVectorSetup_currArrayIndex < iso2MagneticVectorSetupListType->MagneticVectorSetup.arrayLen ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ if(errn == 0) {
+ errn = encode_iso2MagneticVectorSetupType(stream, &iso2MagneticVectorSetupListType->MagneticVectorSetup.array [iso2MagneticVectorSetupListType_MagneticVectorSetup_currArrayIndex++]);
+ }
+ grammarID = 2042;
+ } else if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 2042:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MagneticVectorSetup), END_ELEMENT] */
+ if (iso2MagneticVectorSetupListType_MagneticVectorSetup_currArrayIndex < iso2MagneticVectorSetupListType->MagneticVectorSetup.arrayLen ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ if(errn == 0) {
+ errn = encode_iso2MagneticVectorSetupType(stream, &iso2MagneticVectorSetupListType->MagneticVectorSetup.array [iso2MagneticVectorSetupListType_MagneticVectorSetup_currArrayIndex++]);
+ }
+ grammarID = 2043;
+ } else if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 2043:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MagneticVectorSetup), END_ELEMENT] */
+ if (iso2MagneticVectorSetupListType_MagneticVectorSetup_currArrayIndex < iso2MagneticVectorSetupListType->MagneticVectorSetup.arrayLen ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ if(errn == 0) {
+ errn = encode_iso2MagneticVectorSetupType(stream, &iso2MagneticVectorSetupListType->MagneticVectorSetup.array [iso2MagneticVectorSetupListType_MagneticVectorSetup_currArrayIndex++]);
+ }
+ grammarID = 2044;
+ } else if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 2044:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MagneticVectorSetup), END_ELEMENT] */
+ if (iso2MagneticVectorSetupListType_MagneticVectorSetup_currArrayIndex < iso2MagneticVectorSetupListType->MagneticVectorSetup.arrayLen ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ if(errn == 0) {
+ errn = encode_iso2MagneticVectorSetupType(stream, &iso2MagneticVectorSetupListType->MagneticVectorSetup.array [iso2MagneticVectorSetupListType_MagneticVectorSetup_currArrayIndex++]);
+ }
+ grammarID = 2045;
+ } else if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 2045:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MagneticVectorSetup), END_ELEMENT] */
+ if (iso2MagneticVectorSetupListType_MagneticVectorSetup_currArrayIndex < iso2MagneticVectorSetupListType->MagneticVectorSetup.arrayLen ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ if(errn == 0) {
+ errn = encode_iso2MagneticVectorSetupType(stream, &iso2MagneticVectorSetupListType->MagneticVectorSetup.array [iso2MagneticVectorSetupListType_MagneticVectorSetup_currArrayIndex++]);
+ }
+ grammarID = 2046;
+ } else if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 2046:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MagneticVectorSetup), END_ELEMENT] */
+ if (iso2MagneticVectorSetupListType_MagneticVectorSetup_currArrayIndex < iso2MagneticVectorSetupListType->MagneticVectorSetup.arrayLen ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ if(errn == 0) {
+ errn = encode_iso2MagneticVectorSetupType(stream, &iso2MagneticVectorSetupListType->MagneticVectorSetup.array [iso2MagneticVectorSetupListType_MagneticVectorSetup_currArrayIndex++]);
+ }
+ grammarID = 2047;
+ } else if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 2047:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MagneticVectorSetup), END_ELEMENT] */
+ if (iso2MagneticVectorSetupListType_MagneticVectorSetup_currArrayIndex < iso2MagneticVectorSetupListType->MagneticVectorSetup.arrayLen ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ if(errn == 0) {
+ errn = encode_iso2MagneticVectorSetupType(stream, &iso2MagneticVectorSetupListType->MagneticVectorSetup.array [iso2MagneticVectorSetupListType_MagneticVectorSetup_currArrayIndex++]);
+ }
+ grammarID = 2048;
+ } else if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 2048:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MagneticVectorSetup), END_ELEMENT] */
+ if (iso2MagneticVectorSetupListType_MagneticVectorSetup_currArrayIndex < iso2MagneticVectorSetupListType->MagneticVectorSetup.arrayLen ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ if(errn == 0) {
+ errn = encode_iso2MagneticVectorSetupType(stream, &iso2MagneticVectorSetupListType->MagneticVectorSetup.array [iso2MagneticVectorSetupListType_MagneticVectorSetup_currArrayIndex++]);
+ }
+ grammarID = 2049;
+ } else if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 2049:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MagneticVectorSetup), END_ELEMENT] */
+ if (iso2MagneticVectorSetupListType_MagneticVectorSetup_currArrayIndex < iso2MagneticVectorSetupListType->MagneticVectorSetup.arrayLen ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ if(errn == 0) {
+ errn = encode_iso2MagneticVectorSetupType(stream, &iso2MagneticVectorSetupListType->MagneticVectorSetup.array [iso2MagneticVectorSetupListType_MagneticVectorSetup_currArrayIndex++]);
+ }
+ grammarID = 2050;
+ } else if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 2050:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MagneticVectorSetup), END_ELEMENT] */
+ if (iso2MagneticVectorSetupListType_MagneticVectorSetup_currArrayIndex < iso2MagneticVectorSetupListType->MagneticVectorSetup.arrayLen ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ if(errn == 0) {
+ errn = encode_iso2MagneticVectorSetupType(stream, &iso2MagneticVectorSetupListType->MagneticVectorSetup.array [iso2MagneticVectorSetupListType_MagneticVectorSetup_currArrayIndex++]);
+ }
+ grammarID = 2051;
+ } else if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 2051:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MagneticVectorSetup), END_ELEMENT] */
+ if (iso2MagneticVectorSetupListType_MagneticVectorSetup_currArrayIndex < iso2MagneticVectorSetupListType->MagneticVectorSetup.arrayLen ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ if(errn == 0) {
+ errn = encode_iso2MagneticVectorSetupType(stream, &iso2MagneticVectorSetupListType->MagneticVectorSetup.array [iso2MagneticVectorSetupListType_MagneticVectorSetup_currArrayIndex++]);
+ }
+ grammarID = 2052;
+ } else if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 2052:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MagneticVectorSetup), END_ELEMENT] */
+ if (iso2MagneticVectorSetupListType_MagneticVectorSetup_currArrayIndex < iso2MagneticVectorSetupListType->MagneticVectorSetup.arrayLen ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ if(errn == 0) {
+ errn = encode_iso2MagneticVectorSetupType(stream, &iso2MagneticVectorSetupListType->MagneticVectorSetup.array [iso2MagneticVectorSetupListType_MagneticVectorSetup_currArrayIndex++]);
+ }
+ grammarID = 2053;
+ } else if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 2053:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MagneticVectorSetup), END_ELEMENT] */
+ if (iso2MagneticVectorSetupListType_MagneticVectorSetup_currArrayIndex < iso2MagneticVectorSetupListType->MagneticVectorSetup.arrayLen ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ if(errn == 0) {
+ errn = encode_iso2MagneticVectorSetupType(stream, &iso2MagneticVectorSetupListType->MagneticVectorSetup.array [iso2MagneticVectorSetupListType_MagneticVectorSetup_currArrayIndex++]);
+ }
+ grammarID = 2054;
+ } else if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 2054:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MagneticVectorSetup), END_ELEMENT] */
+ if (iso2MagneticVectorSetupListType_MagneticVectorSetup_currArrayIndex < iso2MagneticVectorSetupListType->MagneticVectorSetup.arrayLen ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ if(errn == 0) {
+ errn = encode_iso2MagneticVectorSetupType(stream, &iso2MagneticVectorSetupListType->MagneticVectorSetup.array [iso2MagneticVectorSetupListType_MagneticVectorSetup_currArrayIndex++]);
+ }
+ grammarID = 2055;
+ } else if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 2055:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MagneticVectorSetup), END_ELEMENT] */
+ if (iso2MagneticVectorSetupListType_MagneticVectorSetup_currArrayIndex < iso2MagneticVectorSetupListType->MagneticVectorSetup.arrayLen ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ if(errn == 0) {
+ errn = encode_iso2MagneticVectorSetupType(stream, &iso2MagneticVectorSetupListType->MagneticVectorSetup.array [iso2MagneticVectorSetupListType_MagneticVectorSetup_currArrayIndex++]);
+ }
+ grammarID = 2056;
+ } else if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 2056:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MagneticVectorSetup), END_ELEMENT] */
+ if (iso2MagneticVectorSetupListType_MagneticVectorSetup_currArrayIndex < iso2MagneticVectorSetupListType->MagneticVectorSetup.arrayLen ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ if(errn == 0) {
+ errn = encode_iso2MagneticVectorSetupType(stream, &iso2MagneticVectorSetupListType->MagneticVectorSetup.array [iso2MagneticVectorSetupListType_MagneticVectorSetup_currArrayIndex++]);
+ }
+ grammarID = 2057;
+ } else if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 2057:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MagneticVectorSetup), END_ELEMENT] */
+ if (iso2MagneticVectorSetupListType_MagneticVectorSetup_currArrayIndex < iso2MagneticVectorSetupListType->MagneticVectorSetup.arrayLen ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ if(errn == 0) {
+ errn = encode_iso2MagneticVectorSetupType(stream, &iso2MagneticVectorSetupListType->MagneticVectorSetup.array [iso2MagneticVectorSetupListType_MagneticVectorSetup_currArrayIndex++]);
+ }
+ grammarID = 2058;
+ } else if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 2058:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MagneticVectorSetup), END_ELEMENT] */
+ if (iso2MagneticVectorSetupListType_MagneticVectorSetup_currArrayIndex < iso2MagneticVectorSetupListType->MagneticVectorSetup.arrayLen ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ if(errn == 0) {
+ errn = encode_iso2MagneticVectorSetupType(stream, &iso2MagneticVectorSetupListType->MagneticVectorSetup.array [iso2MagneticVectorSetupListType_MagneticVectorSetup_currArrayIndex++]);
+ }
+ grammarID = 2059;
+ } else if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 2059:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MagneticVectorSetup), END_ELEMENT] */
+ if (iso2MagneticVectorSetupListType_MagneticVectorSetup_currArrayIndex < iso2MagneticVectorSetupListType->MagneticVectorSetup.arrayLen ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ if(errn == 0) {
+ errn = encode_iso2MagneticVectorSetupType(stream, &iso2MagneticVectorSetupListType->MagneticVectorSetup.array [iso2MagneticVectorSetupListType_MagneticVectorSetup_currArrayIndex++]);
+ }
+ grammarID = 2060;
+ } else if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 2060:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MagneticVectorSetup), END_ELEMENT] */
+ if (iso2MagneticVectorSetupListType_MagneticVectorSetup_currArrayIndex < iso2MagneticVectorSetupListType->MagneticVectorSetup.arrayLen ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ if(errn == 0) {
+ errn = encode_iso2MagneticVectorSetupType(stream, &iso2MagneticVectorSetupListType->MagneticVectorSetup.array [iso2MagneticVectorSetupListType_MagneticVectorSetup_currArrayIndex++]);
+ }
+ grammarID = 2061;
+ } else if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 2061:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MagneticVectorSetup), END_ELEMENT] */
+ if (iso2MagneticVectorSetupListType_MagneticVectorSetup_currArrayIndex < iso2MagneticVectorSetupListType->MagneticVectorSetup.arrayLen ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ if(errn == 0) {
+ errn = encode_iso2MagneticVectorSetupType(stream, &iso2MagneticVectorSetupListType->MagneticVectorSetup.array [iso2MagneticVectorSetupListType_MagneticVectorSetup_currArrayIndex++]);
+ }
+ grammarID = 2062;
+ } else if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 2062:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MagneticVectorSetup), END_ELEMENT] */
+ if (iso2MagneticVectorSetupListType_MagneticVectorSetup_currArrayIndex < iso2MagneticVectorSetupListType->MagneticVectorSetup.arrayLen ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ if(errn == 0) {
+ errn = encode_iso2MagneticVectorSetupType(stream, &iso2MagneticVectorSetupListType->MagneticVectorSetup.array [iso2MagneticVectorSetupListType_MagneticVectorSetup_currArrayIndex++]);
+ }
+ grammarID = 2063;
+ } else if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 2063:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MagneticVectorSetup), END_ELEMENT] */
+ if (iso2MagneticVectorSetupListType_MagneticVectorSetup_currArrayIndex < iso2MagneticVectorSetupListType->MagneticVectorSetup.arrayLen ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ if(errn == 0) {
+ errn = encode_iso2MagneticVectorSetupType(stream, &iso2MagneticVectorSetupListType->MagneticVectorSetup.array [iso2MagneticVectorSetupListType_MagneticVectorSetup_currArrayIndex++]);
+ }
+ grammarID = 2064;
+ } else if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 2064:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MagneticVectorSetup), END_ELEMENT] */
+ if (iso2MagneticVectorSetupListType_MagneticVectorSetup_currArrayIndex < iso2MagneticVectorSetupListType->MagneticVectorSetup.arrayLen ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ if(errn == 0) {
+ errn = encode_iso2MagneticVectorSetupType(stream, &iso2MagneticVectorSetupListType->MagneticVectorSetup.array [iso2MagneticVectorSetupListType_MagneticVectorSetup_currArrayIndex++]);
+ }
+ grammarID = 2065;
+ } else if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 2065:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MagneticVectorSetup), END_ELEMENT] */
+ if (iso2MagneticVectorSetupListType_MagneticVectorSetup_currArrayIndex < iso2MagneticVectorSetupListType->MagneticVectorSetup.arrayLen ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ if(errn == 0) {
+ errn = encode_iso2MagneticVectorSetupType(stream, &iso2MagneticVectorSetupListType->MagneticVectorSetup.array [iso2MagneticVectorSetupListType_MagneticVectorSetup_currArrayIndex++]);
+ }
+ grammarID = 2066;
+ } else if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 2066:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MagneticVectorSetup), END_ELEMENT] */
+ if (iso2MagneticVectorSetupListType_MagneticVectorSetup_currArrayIndex < iso2MagneticVectorSetupListType->MagneticVectorSetup.arrayLen ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ if(errn == 0) {
+ errn = encode_iso2MagneticVectorSetupType(stream, &iso2MagneticVectorSetupListType->MagneticVectorSetup.array [iso2MagneticVectorSetupListType_MagneticVectorSetup_currArrayIndex++]);
+ }
+ grammarID = 2067;
+ } else if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 2067:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MagneticVectorSetup), END_ELEMENT] */
+ if (iso2MagneticVectorSetupListType_MagneticVectorSetup_currArrayIndex < iso2MagneticVectorSetupListType->MagneticVectorSetup.arrayLen ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ if(errn == 0) {
+ errn = encode_iso2MagneticVectorSetupType(stream, &iso2MagneticVectorSetupListType->MagneticVectorSetup.array [iso2MagneticVectorSetupListType_MagneticVectorSetup_currArrayIndex++]);
+ }
+ grammarID = 2068;
+ } else if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 2068:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MagneticVectorSetup), END_ELEMENT] */
+ if (iso2MagneticVectorSetupListType_MagneticVectorSetup_currArrayIndex < iso2MagneticVectorSetupListType->MagneticVectorSetup.arrayLen ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ if(errn == 0) {
+ errn = encode_iso2MagneticVectorSetupType(stream, &iso2MagneticVectorSetupListType->MagneticVectorSetup.array [iso2MagneticVectorSetupListType_MagneticVectorSetup_currArrayIndex++]);
+ }
+ grammarID = 2069;
+ } else if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 2069:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MagneticVectorSetup), END_ELEMENT] */
+ if (iso2MagneticVectorSetupListType_MagneticVectorSetup_currArrayIndex < iso2MagneticVectorSetupListType->MagneticVectorSetup.arrayLen ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ if(errn == 0) {
+ errn = encode_iso2MagneticVectorSetupType(stream, &iso2MagneticVectorSetupListType->MagneticVectorSetup.array [iso2MagneticVectorSetupListType_MagneticVectorSetup_currArrayIndex++]);
+ }
+ grammarID = 2070;
+ } else if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 2070:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MagneticVectorSetup), END_ELEMENT] */
+ if (iso2MagneticVectorSetupListType_MagneticVectorSetup_currArrayIndex < iso2MagneticVectorSetupListType->MagneticVectorSetup.arrayLen ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ if(errn == 0) {
+ errn = encode_iso2MagneticVectorSetupType(stream, &iso2MagneticVectorSetupListType->MagneticVectorSetup.array [iso2MagneticVectorSetupListType_MagneticVectorSetup_currArrayIndex++]);
+ }
+ grammarID = 2071;
+ } else if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 2071:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MagneticVectorSetup), END_ELEMENT] */
+ if (iso2MagneticVectorSetupListType_MagneticVectorSetup_currArrayIndex < iso2MagneticVectorSetupListType->MagneticVectorSetup.arrayLen ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ if(errn == 0) {
+ errn = encode_iso2MagneticVectorSetupType(stream, &iso2MagneticVectorSetupListType->MagneticVectorSetup.array [iso2MagneticVectorSetupListType_MagneticVectorSetup_currArrayIndex++]);
+ }
+ grammarID = 2072;
+ } else if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 2072:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MagneticVectorSetup), END_ELEMENT] */
+ if (iso2MagneticVectorSetupListType_MagneticVectorSetup_currArrayIndex < iso2MagneticVectorSetupListType->MagneticVectorSetup.arrayLen ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ if(errn == 0) {
+ errn = encode_iso2MagneticVectorSetupType(stream, &iso2MagneticVectorSetupListType->MagneticVectorSetup.array [iso2MagneticVectorSetupListType_MagneticVectorSetup_currArrayIndex++]);
+ }
+ grammarID = 2073;
+ } else if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 2073:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MagneticVectorSetup), END_ELEMENT] */
+ if (iso2MagneticVectorSetupListType_MagneticVectorSetup_currArrayIndex < iso2MagneticVectorSetupListType->MagneticVectorSetup.arrayLen ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ if(errn == 0) {
+ errn = encode_iso2MagneticVectorSetupType(stream, &iso2MagneticVectorSetupListType->MagneticVectorSetup.array [iso2MagneticVectorSetupListType_MagneticVectorSetup_currArrayIndex++]);
+ }
+ grammarID = 2074;
+ } else if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 2074:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MagneticVectorSetup), END_ELEMENT] */
+ if (iso2MagneticVectorSetupListType_MagneticVectorSetup_currArrayIndex < iso2MagneticVectorSetupListType->MagneticVectorSetup.arrayLen ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ if(errn == 0) {
+ errn = encode_iso2MagneticVectorSetupType(stream, &iso2MagneticVectorSetupListType->MagneticVectorSetup.array [iso2MagneticVectorSetupListType_MagneticVectorSetup_currArrayIndex++]);
+ }
+ grammarID = 2075;
+ } else if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 2075:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MagneticVectorSetup), END_ELEMENT] */
+ if (iso2MagneticVectorSetupListType_MagneticVectorSetup_currArrayIndex < iso2MagneticVectorSetupListType->MagneticVectorSetup.arrayLen ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ if(errn == 0) {
+ errn = encode_iso2MagneticVectorSetupType(stream, &iso2MagneticVectorSetupListType->MagneticVectorSetup.array [iso2MagneticVectorSetupListType_MagneticVectorSetup_currArrayIndex++]);
+ }
+ grammarID = 2076;
+ } else if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 2076:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MagneticVectorSetup), END_ELEMENT] */
+ if (iso2MagneticVectorSetupListType_MagneticVectorSetup_currArrayIndex < iso2MagneticVectorSetupListType->MagneticVectorSetup.arrayLen ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ if(errn == 0) {
+ errn = encode_iso2MagneticVectorSetupType(stream, &iso2MagneticVectorSetupListType->MagneticVectorSetup.array [iso2MagneticVectorSetupListType_MagneticVectorSetup_currArrayIndex++]);
+ }
+ grammarID = 2077;
+ } else if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 2077:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MagneticVectorSetup), END_ELEMENT] */
+ if (iso2MagneticVectorSetupListType_MagneticVectorSetup_currArrayIndex < iso2MagneticVectorSetupListType->MagneticVectorSetup.arrayLen ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ if(errn == 0) {
+ errn = encode_iso2MagneticVectorSetupType(stream, &iso2MagneticVectorSetupListType->MagneticVectorSetup.array [iso2MagneticVectorSetupListType_MagneticVectorSetup_currArrayIndex++]);
+ }
+ grammarID = 2078;
+ } else if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 2078:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MagneticVectorSetup), END_ELEMENT] */
+ if (iso2MagneticVectorSetupListType_MagneticVectorSetup_currArrayIndex < iso2MagneticVectorSetupListType->MagneticVectorSetup.arrayLen ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ if(errn == 0) {
+ errn = encode_iso2MagneticVectorSetupType(stream, &iso2MagneticVectorSetupListType->MagneticVectorSetup.array [iso2MagneticVectorSetupListType_MagneticVectorSetup_currArrayIndex++]);
+ }
+ grammarID = 2079;
+ } else if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 2079:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MagneticVectorSetup), END_ELEMENT] */
+ if (iso2MagneticVectorSetupListType_MagneticVectorSetup_currArrayIndex < iso2MagneticVectorSetupListType->MagneticVectorSetup.arrayLen ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ if(errn == 0) {
+ errn = encode_iso2MagneticVectorSetupType(stream, &iso2MagneticVectorSetupListType->MagneticVectorSetup.array [iso2MagneticVectorSetupListType_MagneticVectorSetup_currArrayIndex++]);
+ }
+ grammarID = 2080;
+ } else if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 2080:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MagneticVectorSetup), END_ELEMENT] */
+ if (iso2MagneticVectorSetupListType_MagneticVectorSetup_currArrayIndex < iso2MagneticVectorSetupListType->MagneticVectorSetup.arrayLen ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ if(errn == 0) {
+ errn = encode_iso2MagneticVectorSetupType(stream, &iso2MagneticVectorSetupListType->MagneticVectorSetup.array [iso2MagneticVectorSetupListType_MagneticVectorSetup_currArrayIndex++]);
+ }
+ grammarID = 2081;
+ } else if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 2081:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MagneticVectorSetup), END_ELEMENT] */
+ if (iso2MagneticVectorSetupListType_MagneticVectorSetup_currArrayIndex < iso2MagneticVectorSetupListType->MagneticVectorSetup.arrayLen ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ if(errn == 0) {
+ errn = encode_iso2MagneticVectorSetupType(stream, &iso2MagneticVectorSetupListType->MagneticVectorSetup.array [iso2MagneticVectorSetupListType_MagneticVectorSetup_currArrayIndex++]);
+ }
+ grammarID = 2082;
+ } else if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 2082:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MagneticVectorSetup), END_ELEMENT] */
+ if (iso2MagneticVectorSetupListType_MagneticVectorSetup_currArrayIndex < iso2MagneticVectorSetupListType->MagneticVectorSetup.arrayLen ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ if(errn == 0) {
+ errn = encode_iso2MagneticVectorSetupType(stream, &iso2MagneticVectorSetupListType->MagneticVectorSetup.array [iso2MagneticVectorSetupListType_MagneticVectorSetup_currArrayIndex++]);
+ }
+ grammarID = 2083;
+ } else if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 2083:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MagneticVectorSetup), END_ELEMENT] */
+ if (iso2MagneticVectorSetupListType_MagneticVectorSetup_currArrayIndex < iso2MagneticVectorSetupListType->MagneticVectorSetup.arrayLen ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ if(errn == 0) {
+ errn = encode_iso2MagneticVectorSetupType(stream, &iso2MagneticVectorSetupListType->MagneticVectorSetup.array [iso2MagneticVectorSetupListType_MagneticVectorSetup_currArrayIndex++]);
+ }
+ grammarID = 2084;
+ } else if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 2084:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MagneticVectorSetup), END_ELEMENT] */
+ if (iso2MagneticVectorSetupListType_MagneticVectorSetup_currArrayIndex < iso2MagneticVectorSetupListType->MagneticVectorSetup.arrayLen ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ if(errn == 0) {
+ errn = encode_iso2MagneticVectorSetupType(stream, &iso2MagneticVectorSetupListType->MagneticVectorSetup.array [iso2MagneticVectorSetupListType_MagneticVectorSetup_currArrayIndex++]);
+ }
+ grammarID = 2085;
+ } else if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 2085:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MagneticVectorSetup), END_ELEMENT] */
+ if (iso2MagneticVectorSetupListType_MagneticVectorSetup_currArrayIndex < iso2MagneticVectorSetupListType->MagneticVectorSetup.arrayLen ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ if(errn == 0) {
+ errn = encode_iso2MagneticVectorSetupType(stream, &iso2MagneticVectorSetupListType->MagneticVectorSetup.array [iso2MagneticVectorSetupListType_MagneticVectorSetup_currArrayIndex++]);
+ }
+ grammarID = 2086;
+ } else if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 2086:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MagneticVectorSetup), END_ELEMENT] */
+ if (iso2MagneticVectorSetupListType_MagneticVectorSetup_currArrayIndex < iso2MagneticVectorSetupListType->MagneticVectorSetup.arrayLen ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ if(errn == 0) {
+ errn = encode_iso2MagneticVectorSetupType(stream, &iso2MagneticVectorSetupListType->MagneticVectorSetup.array [iso2MagneticVectorSetupListType_MagneticVectorSetup_currArrayIndex++]);
+ }
+ grammarID = 2087;
+ } else if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 2087:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MagneticVectorSetup), END_ELEMENT] */
+ if (iso2MagneticVectorSetupListType_MagneticVectorSetup_currArrayIndex < iso2MagneticVectorSetupListType->MagneticVectorSetup.arrayLen ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ if(errn == 0) {
+ errn = encode_iso2MagneticVectorSetupType(stream, &iso2MagneticVectorSetupListType->MagneticVectorSetup.array [iso2MagneticVectorSetupListType_MagneticVectorSetup_currArrayIndex++]);
+ }
+ grammarID = 2088;
+ } else if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 2088:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MagneticVectorSetup), END_ELEMENT] */
+ if (iso2MagneticVectorSetupListType_MagneticVectorSetup_currArrayIndex < iso2MagneticVectorSetupListType->MagneticVectorSetup.arrayLen ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ if(errn == 0) {
+ errn = encode_iso2MagneticVectorSetupType(stream, &iso2MagneticVectorSetupListType->MagneticVectorSetup.array [iso2MagneticVectorSetupListType_MagneticVectorSetup_currArrayIndex++]);
+ }
+ grammarID = 2089;
+ } else if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 2089:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MagneticVectorSetup), END_ELEMENT] */
+ if (iso2MagneticVectorSetupListType_MagneticVectorSetup_currArrayIndex < iso2MagneticVectorSetupListType->MagneticVectorSetup.arrayLen ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ if(errn == 0) {
+ errn = encode_iso2MagneticVectorSetupType(stream, &iso2MagneticVectorSetupListType->MagneticVectorSetup.array [iso2MagneticVectorSetupListType_MagneticVectorSetup_currArrayIndex++]);
+ }
+ grammarID = 2090;
+ } else if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 2090:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MagneticVectorSetup), END_ELEMENT] */
+ if (iso2MagneticVectorSetupListType_MagneticVectorSetup_currArrayIndex < iso2MagneticVectorSetupListType->MagneticVectorSetup.arrayLen ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ if(errn == 0) {
+ errn = encode_iso2MagneticVectorSetupType(stream, &iso2MagneticVectorSetupListType->MagneticVectorSetup.array [iso2MagneticVectorSetupListType_MagneticVectorSetup_currArrayIndex++]);
+ }
+ grammarID = 2091;
+ } else if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 2091:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MagneticVectorSetup), END_ELEMENT] */
+ if (iso2MagneticVectorSetupListType_MagneticVectorSetup_currArrayIndex < iso2MagneticVectorSetupListType->MagneticVectorSetup.arrayLen ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ if(errn == 0) {
+ errn = encode_iso2MagneticVectorSetupType(stream, &iso2MagneticVectorSetupListType->MagneticVectorSetup.array [iso2MagneticVectorSetupListType_MagneticVectorSetup_currArrayIndex++]);
+ }
+ grammarID = 2092;
+ } else if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 2092:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MagneticVectorSetup), END_ELEMENT] */
+ if (iso2MagneticVectorSetupListType_MagneticVectorSetup_currArrayIndex < iso2MagneticVectorSetupListType->MagneticVectorSetup.arrayLen ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ if(errn == 0) {
+ errn = encode_iso2MagneticVectorSetupType(stream, &iso2MagneticVectorSetupListType->MagneticVectorSetup.array [iso2MagneticVectorSetupListType_MagneticVectorSetup_currArrayIndex++]);
+ }
+ grammarID = 2093;
+ } else if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 2093:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MagneticVectorSetup), END_ELEMENT] */
+ if (iso2MagneticVectorSetupListType_MagneticVectorSetup_currArrayIndex < iso2MagneticVectorSetupListType->MagneticVectorSetup.arrayLen ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ if(errn == 0) {
+ errn = encode_iso2MagneticVectorSetupType(stream, &iso2MagneticVectorSetupListType->MagneticVectorSetup.array [iso2MagneticVectorSetupListType_MagneticVectorSetup_currArrayIndex++]);
+ }
+ grammarID = 2094;
+ } else if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 2094:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MagneticVectorSetup), END_ELEMENT] */
+ if (iso2MagneticVectorSetupListType_MagneticVectorSetup_currArrayIndex < iso2MagneticVectorSetupListType->MagneticVectorSetup.arrayLen ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ if(errn == 0) {
+ errn = encode_iso2MagneticVectorSetupType(stream, &iso2MagneticVectorSetupListType->MagneticVectorSetup.array [iso2MagneticVectorSetupListType_MagneticVectorSetup_currArrayIndex++]);
+ }
+ grammarID = 2095;
+ } else if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 2095:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MagneticVectorSetup), END_ELEMENT] */
+ if (iso2MagneticVectorSetupListType_MagneticVectorSetup_currArrayIndex < iso2MagneticVectorSetupListType->MagneticVectorSetup.arrayLen ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ if(errn == 0) {
+ errn = encode_iso2MagneticVectorSetupType(stream, &iso2MagneticVectorSetupListType->MagneticVectorSetup.array [iso2MagneticVectorSetupListType_MagneticVectorSetup_currArrayIndex++]);
+ }
+ grammarID = 2096;
+ } else if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 2096:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MagneticVectorSetup), END_ELEMENT] */
+ if (iso2MagneticVectorSetupListType_MagneticVectorSetup_currArrayIndex < iso2MagneticVectorSetupListType->MagneticVectorSetup.arrayLen ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ if(errn == 0) {
+ errn = encode_iso2MagneticVectorSetupType(stream, &iso2MagneticVectorSetupListType->MagneticVectorSetup.array [iso2MagneticVectorSetupListType_MagneticVectorSetup_currArrayIndex++]);
+ }
+ grammarID = 2097;
+ } else if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 2097:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MagneticVectorSetup), END_ELEMENT] */
+ if (iso2MagneticVectorSetupListType_MagneticVectorSetup_currArrayIndex < iso2MagneticVectorSetupListType->MagneticVectorSetup.arrayLen ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ if(errn == 0) {
+ errn = encode_iso2MagneticVectorSetupType(stream, &iso2MagneticVectorSetupListType->MagneticVectorSetup.array [iso2MagneticVectorSetupListType_MagneticVectorSetup_currArrayIndex++]);
+ }
+ grammarID = 2098;
+ } else if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 2098:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MagneticVectorSetup), END_ELEMENT] */
+ if (iso2MagneticVectorSetupListType_MagneticVectorSetup_currArrayIndex < iso2MagneticVectorSetupListType->MagneticVectorSetup.arrayLen ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ if(errn == 0) {
+ errn = encode_iso2MagneticVectorSetupType(stream, &iso2MagneticVectorSetupListType->MagneticVectorSetup.array [iso2MagneticVectorSetupListType_MagneticVectorSetup_currArrayIndex++]);
+ }
+ grammarID = 2099;
+ } else if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 2099:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MagneticVectorSetup), END_ELEMENT] */
+ if (iso2MagneticVectorSetupListType_MagneticVectorSetup_currArrayIndex < iso2MagneticVectorSetupListType->MagneticVectorSetup.arrayLen ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ if(errn == 0) {
+ errn = encode_iso2MagneticVectorSetupType(stream, &iso2MagneticVectorSetupListType->MagneticVectorSetup.array [iso2MagneticVectorSetupListType_MagneticVectorSetup_currArrayIndex++]);
+ }
+ grammarID = 2100;
+ } else if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 2100:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MagneticVectorSetup), END_ELEMENT] */
+ if (iso2MagneticVectorSetupListType_MagneticVectorSetup_currArrayIndex < iso2MagneticVectorSetupListType->MagneticVectorSetup.arrayLen ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ if(errn == 0) {
+ errn = encode_iso2MagneticVectorSetupType(stream, &iso2MagneticVectorSetupListType->MagneticVectorSetup.array [iso2MagneticVectorSetupListType_MagneticVectorSetup_currArrayIndex++]);
+ }
+ grammarID = 2101;
+ } else if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 2101:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MagneticVectorSetup), END_ELEMENT] */
+ if (iso2MagneticVectorSetupListType_MagneticVectorSetup_currArrayIndex < iso2MagneticVectorSetupListType->MagneticVectorSetup.arrayLen ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ if(errn == 0) {
+ errn = encode_iso2MagneticVectorSetupType(stream, &iso2MagneticVectorSetupListType->MagneticVectorSetup.array [iso2MagneticVectorSetupListType_MagneticVectorSetup_currArrayIndex++]);
+ }
+ grammarID = 2102;
+ } else if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 2102:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MagneticVectorSetup), END_ELEMENT] */
+ if (iso2MagneticVectorSetupListType_MagneticVectorSetup_currArrayIndex < iso2MagneticVectorSetupListType->MagneticVectorSetup.arrayLen ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ if(errn == 0) {
+ errn = encode_iso2MagneticVectorSetupType(stream, &iso2MagneticVectorSetupListType->MagneticVectorSetup.array [iso2MagneticVectorSetupListType_MagneticVectorSetup_currArrayIndex++]);
+ }
+ grammarID = 2103;
+ } else if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 2103:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MagneticVectorSetup), END_ELEMENT] */
+ if (iso2MagneticVectorSetupListType_MagneticVectorSetup_currArrayIndex < iso2MagneticVectorSetupListType->MagneticVectorSetup.arrayLen ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ if(errn == 0) {
+ errn = encode_iso2MagneticVectorSetupType(stream, &iso2MagneticVectorSetupListType->MagneticVectorSetup.array [iso2MagneticVectorSetupListType_MagneticVectorSetup_currArrayIndex++]);
+ }
+ grammarID = 2104;
+ } else if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 2104:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MagneticVectorSetup), END_ELEMENT] */
+ if (iso2MagneticVectorSetupListType_MagneticVectorSetup_currArrayIndex < iso2MagneticVectorSetupListType->MagneticVectorSetup.arrayLen ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ if(errn == 0) {
+ errn = encode_iso2MagneticVectorSetupType(stream, &iso2MagneticVectorSetupListType->MagneticVectorSetup.array [iso2MagneticVectorSetupListType_MagneticVectorSetup_currArrayIndex++]);
+ }
+ grammarID = 2105;
+ } else if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 2105:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MagneticVectorSetup), END_ELEMENT] */
+ if (iso2MagneticVectorSetupListType_MagneticVectorSetup_currArrayIndex < iso2MagneticVectorSetupListType->MagneticVectorSetup.arrayLen ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ if(errn == 0) {
+ errn = encode_iso2MagneticVectorSetupType(stream, &iso2MagneticVectorSetupListType->MagneticVectorSetup.array [iso2MagneticVectorSetupListType_MagneticVectorSetup_currArrayIndex++]);
+ }
+ grammarID = 2106;
+ } else if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 2106:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MagneticVectorSetup), END_ELEMENT] */
+ if (iso2MagneticVectorSetupListType_MagneticVectorSetup_currArrayIndex < iso2MagneticVectorSetupListType->MagneticVectorSetup.arrayLen ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ if(errn == 0) {
+ errn = encode_iso2MagneticVectorSetupType(stream, &iso2MagneticVectorSetupListType->MagneticVectorSetup.array [iso2MagneticVectorSetupListType_MagneticVectorSetup_currArrayIndex++]);
+ }
+ grammarID = 2107;
+ } else if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 2107:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MagneticVectorSetup), END_ELEMENT] */
+ if (iso2MagneticVectorSetupListType_MagneticVectorSetup_currArrayIndex < iso2MagneticVectorSetupListType->MagneticVectorSetup.arrayLen ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ if(errn == 0) {
+ errn = encode_iso2MagneticVectorSetupType(stream, &iso2MagneticVectorSetupListType->MagneticVectorSetup.array [iso2MagneticVectorSetupListType_MagneticVectorSetup_currArrayIndex++]);
+ }
+ grammarID = 2108;
+ } else if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 2108:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MagneticVectorSetup), END_ELEMENT] */
+ if (iso2MagneticVectorSetupListType_MagneticVectorSetup_currArrayIndex < iso2MagneticVectorSetupListType->MagneticVectorSetup.arrayLen ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ if(errn == 0) {
+ errn = encode_iso2MagneticVectorSetupType(stream, &iso2MagneticVectorSetupListType->MagneticVectorSetup.array [iso2MagneticVectorSetupListType_MagneticVectorSetup_currArrayIndex++]);
+ }
+ grammarID = 2109;
+ } else if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 2109:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MagneticVectorSetup), END_ELEMENT] */
+ if (iso2MagneticVectorSetupListType_MagneticVectorSetup_currArrayIndex < iso2MagneticVectorSetupListType->MagneticVectorSetup.arrayLen ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ if(errn == 0) {
+ errn = encode_iso2MagneticVectorSetupType(stream, &iso2MagneticVectorSetupListType->MagneticVectorSetup.array [iso2MagneticVectorSetupListType_MagneticVectorSetup_currArrayIndex++]);
+ }
+ grammarID = 2110;
+ } else if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 2110:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MagneticVectorSetup), END_ELEMENT] */
+ if (iso2MagneticVectorSetupListType_MagneticVectorSetup_currArrayIndex < iso2MagneticVectorSetupListType->MagneticVectorSetup.arrayLen ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ if(errn == 0) {
+ errn = encode_iso2MagneticVectorSetupType(stream, &iso2MagneticVectorSetupListType->MagneticVectorSetup.array [iso2MagneticVectorSetupListType_MagneticVectorSetup_currArrayIndex++]);
+ }
+ grammarID = 2111;
+ } else if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 2111:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MagneticVectorSetup), END_ELEMENT] */
+ if (iso2MagneticVectorSetupListType_MagneticVectorSetup_currArrayIndex < iso2MagneticVectorSetupListType->MagneticVectorSetup.arrayLen ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ if(errn == 0) {
+ errn = encode_iso2MagneticVectorSetupType(stream, &iso2MagneticVectorSetupListType->MagneticVectorSetup.array [iso2MagneticVectorSetupListType_MagneticVectorSetup_currArrayIndex++]);
+ }
+ grammarID = 2112;
+ } else if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 2112:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MagneticVectorSetup), END_ELEMENT] */
+ if (iso2MagneticVectorSetupListType_MagneticVectorSetup_currArrayIndex < iso2MagneticVectorSetupListType->MagneticVectorSetup.arrayLen ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ if(errn == 0) {
+ errn = encode_iso2MagneticVectorSetupType(stream, &iso2MagneticVectorSetupListType->MagneticVectorSetup.array [iso2MagneticVectorSetupListType_MagneticVectorSetup_currArrayIndex++]);
+ }
+ grammarID = 2113;
+ } else if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 2113:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MagneticVectorSetup), END_ELEMENT] */
+ if (iso2MagneticVectorSetupListType_MagneticVectorSetup_currArrayIndex < iso2MagneticVectorSetupListType->MagneticVectorSetup.arrayLen ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ if(errn == 0) {
+ errn = encode_iso2MagneticVectorSetupType(stream, &iso2MagneticVectorSetupListType->MagneticVectorSetup.array [iso2MagneticVectorSetupListType_MagneticVectorSetup_currArrayIndex++]);
+ }
+ grammarID = 2114;
+ } else if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 2114:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MagneticVectorSetup), END_ELEMENT] */
+ if (iso2MagneticVectorSetupListType_MagneticVectorSetup_currArrayIndex < iso2MagneticVectorSetupListType->MagneticVectorSetup.arrayLen ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ if(errn == 0) {
+ errn = encode_iso2MagneticVectorSetupType(stream, &iso2MagneticVectorSetupListType->MagneticVectorSetup.array [iso2MagneticVectorSetupListType_MagneticVectorSetup_currArrayIndex++]);
+ }
+ grammarID = 2115;
+ } else if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 2115:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MagneticVectorSetup), END_ELEMENT] */
+ if (iso2MagneticVectorSetupListType_MagneticVectorSetup_currArrayIndex < iso2MagneticVectorSetupListType->MagneticVectorSetup.arrayLen ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ if(errn == 0) {
+ errn = encode_iso2MagneticVectorSetupType(stream, &iso2MagneticVectorSetupListType->MagneticVectorSetup.array [iso2MagneticVectorSetupListType_MagneticVectorSetup_currArrayIndex++]);
+ }
+ grammarID = 2116;
+ } else if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 2116:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MagneticVectorSetup), END_ELEMENT] */
+ if (iso2MagneticVectorSetupListType_MagneticVectorSetup_currArrayIndex < iso2MagneticVectorSetupListType->MagneticVectorSetup.arrayLen ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ if(errn == 0) {
+ errn = encode_iso2MagneticVectorSetupType(stream, &iso2MagneticVectorSetupListType->MagneticVectorSetup.array [iso2MagneticVectorSetupListType_MagneticVectorSetup_currArrayIndex++]);
+ }
+ grammarID = 2117;
+ } else if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 2117:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MagneticVectorSetup), END_ELEMENT] */
+ if (iso2MagneticVectorSetupListType_MagneticVectorSetup_currArrayIndex < iso2MagneticVectorSetupListType->MagneticVectorSetup.arrayLen ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ if(errn == 0) {
+ errn = encode_iso2MagneticVectorSetupType(stream, &iso2MagneticVectorSetupListType->MagneticVectorSetup.array [iso2MagneticVectorSetupListType_MagneticVectorSetup_currArrayIndex++]);
+ }
+ grammarID = 2118;
+ } else if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 2118:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MagneticVectorSetup), END_ELEMENT] */
+ if (iso2MagneticVectorSetupListType_MagneticVectorSetup_currArrayIndex < iso2MagneticVectorSetupListType->MagneticVectorSetup.arrayLen ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ if(errn == 0) {
+ errn = encode_iso2MagneticVectorSetupType(stream, &iso2MagneticVectorSetupListType->MagneticVectorSetup.array [iso2MagneticVectorSetupListType_MagneticVectorSetup_currArrayIndex++]);
+ }
+ grammarID = 2119;
+ } else if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 2119:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MagneticVectorSetup), END_ELEMENT] */
+ if (iso2MagneticVectorSetupListType_MagneticVectorSetup_currArrayIndex < iso2MagneticVectorSetupListType->MagneticVectorSetup.arrayLen ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ if(errn == 0) {
+ errn = encode_iso2MagneticVectorSetupType(stream, &iso2MagneticVectorSetupListType->MagneticVectorSetup.array [iso2MagneticVectorSetupListType_MagneticVectorSetup_currArrayIndex++]);
+ }
+ grammarID = 2120;
+ } else if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 2120:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MagneticVectorSetup), END_ELEMENT] */
+ if (iso2MagneticVectorSetupListType_MagneticVectorSetup_currArrayIndex < iso2MagneticVectorSetupListType->MagneticVectorSetup.arrayLen ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ if(errn == 0) {
+ errn = encode_iso2MagneticVectorSetupType(stream, &iso2MagneticVectorSetupListType->MagneticVectorSetup.array [iso2MagneticVectorSetupListType_MagneticVectorSetup_currArrayIndex++]);
+ }
+ grammarID = 2121;
+ } else if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 2121:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MagneticVectorSetup), END_ELEMENT] */
+ if (iso2MagneticVectorSetupListType_MagneticVectorSetup_currArrayIndex < iso2MagneticVectorSetupListType->MagneticVectorSetup.arrayLen ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ if(errn == 0) {
+ errn = encode_iso2MagneticVectorSetupType(stream, &iso2MagneticVectorSetupListType->MagneticVectorSetup.array [iso2MagneticVectorSetupListType_MagneticVectorSetup_currArrayIndex++]);
+ }
+ grammarID = 2122;
+ } else if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 2122:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MagneticVectorSetup), END_ELEMENT] */
+ if (iso2MagneticVectorSetupListType_MagneticVectorSetup_currArrayIndex < iso2MagneticVectorSetupListType->MagneticVectorSetup.arrayLen ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ if(errn == 0) {
+ errn = encode_iso2MagneticVectorSetupType(stream, &iso2MagneticVectorSetupListType->MagneticVectorSetup.array [iso2MagneticVectorSetupListType_MagneticVectorSetup_currArrayIndex++]);
+ }
+ grammarID = 2123;
+ } else if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 2123:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MagneticVectorSetup), END_ELEMENT] */
+ if (iso2MagneticVectorSetupListType_MagneticVectorSetup_currArrayIndex < iso2MagneticVectorSetupListType->MagneticVectorSetup.arrayLen ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ if(errn == 0) {
+ errn = encode_iso2MagneticVectorSetupType(stream, &iso2MagneticVectorSetupListType->MagneticVectorSetup.array [iso2MagneticVectorSetupListType_MagneticVectorSetup_currArrayIndex++]);
+ }
+ grammarID = 2124;
+ } else if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 2124:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MagneticVectorSetup), END_ELEMENT] */
+ if (iso2MagneticVectorSetupListType_MagneticVectorSetup_currArrayIndex < iso2MagneticVectorSetupListType->MagneticVectorSetup.arrayLen ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ if(errn == 0) {
+ errn = encode_iso2MagneticVectorSetupType(stream, &iso2MagneticVectorSetupListType->MagneticVectorSetup.array [iso2MagneticVectorSetupListType_MagneticVectorSetup_currArrayIndex++]);
+ }
+ grammarID = 2125;
+ } else if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 2125:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MagneticVectorSetup), END_ELEMENT] */
+ if (iso2MagneticVectorSetupListType_MagneticVectorSetup_currArrayIndex < iso2MagneticVectorSetupListType->MagneticVectorSetup.arrayLen ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ if(errn == 0) {
+ errn = encode_iso2MagneticVectorSetupType(stream, &iso2MagneticVectorSetupListType->MagneticVectorSetup.array [iso2MagneticVectorSetupListType_MagneticVectorSetup_currArrayIndex++]);
+ }
+ grammarID = 2126;
+ } else if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 2126:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MagneticVectorSetup), END_ELEMENT] */
+ if (iso2MagneticVectorSetupListType_MagneticVectorSetup_currArrayIndex < iso2MagneticVectorSetupListType->MagneticVectorSetup.arrayLen ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ if(errn == 0) {
+ errn = encode_iso2MagneticVectorSetupType(stream, &iso2MagneticVectorSetupListType->MagneticVectorSetup.array [iso2MagneticVectorSetupListType_MagneticVectorSetup_currArrayIndex++]);
+ }
+ grammarID = 2127;
+ } else if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 2127:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MagneticVectorSetup), END_ELEMENT] */
+ if (iso2MagneticVectorSetupListType_MagneticVectorSetup_currArrayIndex < iso2MagneticVectorSetupListType->MagneticVectorSetup.arrayLen ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ if(errn == 0) {
+ errn = encode_iso2MagneticVectorSetupType(stream, &iso2MagneticVectorSetupListType->MagneticVectorSetup.array [iso2MagneticVectorSetupListType_MagneticVectorSetup_currArrayIndex++]);
+ }
+ grammarID = 2128;
+ } else if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 2128:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MagneticVectorSetup), END_ELEMENT] */
+ if (iso2MagneticVectorSetupListType_MagneticVectorSetup_currArrayIndex < iso2MagneticVectorSetupListType->MagneticVectorSetup.arrayLen ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ if(errn == 0) {
+ errn = encode_iso2MagneticVectorSetupType(stream, &iso2MagneticVectorSetupListType->MagneticVectorSetup.array [iso2MagneticVectorSetupListType_MagneticVectorSetup_currArrayIndex++]);
+ }
+ grammarID = 2129;
+ } else if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 2129:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MagneticVectorSetup), END_ELEMENT] */
+ if (iso2MagneticVectorSetupListType_MagneticVectorSetup_currArrayIndex < iso2MagneticVectorSetupListType->MagneticVectorSetup.arrayLen ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ if(errn == 0) {
+ errn = encode_iso2MagneticVectorSetupType(stream, &iso2MagneticVectorSetupListType->MagneticVectorSetup.array [iso2MagneticVectorSetupListType_MagneticVectorSetup_currArrayIndex++]);
+ }
+ grammarID = 2130;
+ } else if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 2130:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MagneticVectorSetup), END_ELEMENT] */
+ if (iso2MagneticVectorSetupListType_MagneticVectorSetup_currArrayIndex < iso2MagneticVectorSetupListType->MagneticVectorSetup.arrayLen ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ if(errn == 0) {
+ errn = encode_iso2MagneticVectorSetupType(stream, &iso2MagneticVectorSetupListType->MagneticVectorSetup.array [iso2MagneticVectorSetupListType_MagneticVectorSetup_currArrayIndex++]);
+ }
+ grammarID = 2131;
+ } else if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 2131:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MagneticVectorSetup), END_ELEMENT] */
+ if (iso2MagneticVectorSetupListType_MagneticVectorSetup_currArrayIndex < iso2MagneticVectorSetupListType->MagneticVectorSetup.arrayLen ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ if(errn == 0) {
+ errn = encode_iso2MagneticVectorSetupType(stream, &iso2MagneticVectorSetupListType->MagneticVectorSetup.array [iso2MagneticVectorSetupListType_MagneticVectorSetup_currArrayIndex++]);
+ }
+ grammarID = 2132;
+ } else if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 2132:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MagneticVectorSetup), END_ELEMENT] */
+ if (iso2MagneticVectorSetupListType_MagneticVectorSetup_currArrayIndex < iso2MagneticVectorSetupListType->MagneticVectorSetup.arrayLen ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ if(errn == 0) {
+ errn = encode_iso2MagneticVectorSetupType(stream, &iso2MagneticVectorSetupListType->MagneticVectorSetup.array [iso2MagneticVectorSetupListType_MagneticVectorSetup_currArrayIndex++]);
+ }
+ grammarID = 2133;
+ } else if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 2133:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MagneticVectorSetup), END_ELEMENT] */
+ if (iso2MagneticVectorSetupListType_MagneticVectorSetup_currArrayIndex < iso2MagneticVectorSetupListType->MagneticVectorSetup.arrayLen ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ if(errn == 0) {
+ errn = encode_iso2MagneticVectorSetupType(stream, &iso2MagneticVectorSetupListType->MagneticVectorSetup.array [iso2MagneticVectorSetupListType_MagneticVectorSetup_currArrayIndex++]);
+ }
+ grammarID = 2134;
+ } else if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 2134:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MagneticVectorSetup), END_ELEMENT] */
+ if (iso2MagneticVectorSetupListType_MagneticVectorSetup_currArrayIndex < iso2MagneticVectorSetupListType->MagneticVectorSetup.arrayLen ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ if(errn == 0) {
+ errn = encode_iso2MagneticVectorSetupType(stream, &iso2MagneticVectorSetupListType->MagneticVectorSetup.array [iso2MagneticVectorSetupListType_MagneticVectorSetup_currArrayIndex++]);
+ }
+ grammarID = 2135;
+ } else if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 2135:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MagneticVectorSetup), END_ELEMENT] */
+ if (iso2MagneticVectorSetupListType_MagneticVectorSetup_currArrayIndex < iso2MagneticVectorSetupListType->MagneticVectorSetup.arrayLen ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ if(errn == 0) {
+ errn = encode_iso2MagneticVectorSetupType(stream, &iso2MagneticVectorSetupListType->MagneticVectorSetup.array [iso2MagneticVectorSetupListType_MagneticVectorSetup_currArrayIndex++]);
+ }
+ grammarID = 2136;
+ } else if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 2136:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MagneticVectorSetup), END_ELEMENT] */
+ if (iso2MagneticVectorSetupListType_MagneticVectorSetup_currArrayIndex < iso2MagneticVectorSetupListType->MagneticVectorSetup.arrayLen ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ if(errn == 0) {
+ errn = encode_iso2MagneticVectorSetupType(stream, &iso2MagneticVectorSetupListType->MagneticVectorSetup.array [iso2MagneticVectorSetupListType_MagneticVectorSetup_currArrayIndex++]);
+ }
+ grammarID = 2137;
+ } else if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 2137:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MagneticVectorSetup), END_ELEMENT] */
+ if (iso2MagneticVectorSetupListType_MagneticVectorSetup_currArrayIndex < iso2MagneticVectorSetupListType->MagneticVectorSetup.arrayLen ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ if(errn == 0) {
+ errn = encode_iso2MagneticVectorSetupType(stream, &iso2MagneticVectorSetupListType->MagneticVectorSetup.array [iso2MagneticVectorSetupListType_MagneticVectorSetup_currArrayIndex++]);
+ }
+ grammarID = 2138;
+ } else if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 2138:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MagneticVectorSetup), END_ELEMENT] */
+ if (iso2MagneticVectorSetupListType_MagneticVectorSetup_currArrayIndex < iso2MagneticVectorSetupListType->MagneticVectorSetup.arrayLen ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ if(errn == 0) {
+ errn = encode_iso2MagneticVectorSetupType(stream, &iso2MagneticVectorSetupListType->MagneticVectorSetup.array [iso2MagneticVectorSetupListType_MagneticVectorSetup_currArrayIndex++]);
+ }
+ grammarID = 2139;
+ } else if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 2139:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MagneticVectorSetup), END_ELEMENT] */
+ if (iso2MagneticVectorSetupListType_MagneticVectorSetup_currArrayIndex < iso2MagneticVectorSetupListType->MagneticVectorSetup.arrayLen ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ if(errn == 0) {
+ errn = encode_iso2MagneticVectorSetupType(stream, &iso2MagneticVectorSetupListType->MagneticVectorSetup.array [iso2MagneticVectorSetupListType_MagneticVectorSetup_currArrayIndex++]);
+ }
+ grammarID = 2140;
+ } else if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 2140:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MagneticVectorSetup), END_ELEMENT] */
+ if (iso2MagneticVectorSetupListType_MagneticVectorSetup_currArrayIndex < iso2MagneticVectorSetupListType->MagneticVectorSetup.arrayLen ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ if(errn == 0) {
+ errn = encode_iso2MagneticVectorSetupType(stream, &iso2MagneticVectorSetupListType->MagneticVectorSetup.array [iso2MagneticVectorSetupListType_MagneticVectorSetup_currArrayIndex++]);
+ }
+ grammarID = 2141;
+ } else if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 2141:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MagneticVectorSetup), END_ELEMENT] */
+ if (iso2MagneticVectorSetupListType_MagneticVectorSetup_currArrayIndex < iso2MagneticVectorSetupListType->MagneticVectorSetup.arrayLen ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ if(errn == 0) {
+ errn = encode_iso2MagneticVectorSetupType(stream, &iso2MagneticVectorSetupListType->MagneticVectorSetup.array [iso2MagneticVectorSetupListType_MagneticVectorSetup_currArrayIndex++]);
+ }
+ grammarID = 2142;
+ } else if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 2142:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MagneticVectorSetup), END_ELEMENT] */
+ if (iso2MagneticVectorSetupListType_MagneticVectorSetup_currArrayIndex < iso2MagneticVectorSetupListType->MagneticVectorSetup.arrayLen ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ if(errn == 0) {
+ errn = encode_iso2MagneticVectorSetupType(stream, &iso2MagneticVectorSetupListType->MagneticVectorSetup.array [iso2MagneticVectorSetupListType_MagneticVectorSetup_currArrayIndex++]);
+ }
+ grammarID = 2143;
+ } else if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 2143:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MagneticVectorSetup), END_ELEMENT] */
+ if (iso2MagneticVectorSetupListType_MagneticVectorSetup_currArrayIndex < iso2MagneticVectorSetupListType->MagneticVectorSetup.arrayLen ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ if(errn == 0) {
+ errn = encode_iso2MagneticVectorSetupType(stream, &iso2MagneticVectorSetupListType->MagneticVectorSetup.array [iso2MagneticVectorSetupListType_MagneticVectorSetup_currArrayIndex++]);
+ }
+ grammarID = 2144;
+ } else if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 2144:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MagneticVectorSetup), END_ELEMENT] */
+ if (iso2MagneticVectorSetupListType_MagneticVectorSetup_currArrayIndex < iso2MagneticVectorSetupListType->MagneticVectorSetup.arrayLen ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ if(errn == 0) {
+ errn = encode_iso2MagneticVectorSetupType(stream, &iso2MagneticVectorSetupListType->MagneticVectorSetup.array [iso2MagneticVectorSetupListType_MagneticVectorSetup_currArrayIndex++]);
+ }
+ grammarID = 2145;
+ } else if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 2145:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MagneticVectorSetup), END_ELEMENT] */
+ if (iso2MagneticVectorSetupListType_MagneticVectorSetup_currArrayIndex < iso2MagneticVectorSetupListType->MagneticVectorSetup.arrayLen ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ if(errn == 0) {
+ errn = encode_iso2MagneticVectorSetupType(stream, &iso2MagneticVectorSetupListType->MagneticVectorSetup.array [iso2MagneticVectorSetupListType_MagneticVectorSetup_currArrayIndex++]);
+ }
+ grammarID = 2146;
+ } else if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 2146:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MagneticVectorSetup), END_ELEMENT] */
+ if (iso2MagneticVectorSetupListType_MagneticVectorSetup_currArrayIndex < iso2MagneticVectorSetupListType->MagneticVectorSetup.arrayLen ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ if(errn == 0) {
+ errn = encode_iso2MagneticVectorSetupType(stream, &iso2MagneticVectorSetupListType->MagneticVectorSetup.array [iso2MagneticVectorSetupListType_MagneticVectorSetup_currArrayIndex++]);
+ }
+ grammarID = 2147;
+ } else if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 2147:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MagneticVectorSetup), END_ELEMENT] */
+ if (iso2MagneticVectorSetupListType_MagneticVectorSetup_currArrayIndex < iso2MagneticVectorSetupListType->MagneticVectorSetup.arrayLen ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ if(errn == 0) {
+ errn = encode_iso2MagneticVectorSetupType(stream, &iso2MagneticVectorSetupListType->MagneticVectorSetup.array [iso2MagneticVectorSetupListType_MagneticVectorSetup_currArrayIndex++]);
+ }
+ grammarID = 2148;
+ } else if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 2148:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MagneticVectorSetup), END_ELEMENT] */
+ if (iso2MagneticVectorSetupListType_MagneticVectorSetup_currArrayIndex < iso2MagneticVectorSetupListType->MagneticVectorSetup.arrayLen ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ if(errn == 0) {
+ errn = encode_iso2MagneticVectorSetupType(stream, &iso2MagneticVectorSetupListType->MagneticVectorSetup.array [iso2MagneticVectorSetupListType_MagneticVectorSetup_currArrayIndex++]);
+ }
+ grammarID = 2149;
+ } else if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 2149:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MagneticVectorSetup), END_ELEMENT] */
+ if (iso2MagneticVectorSetupListType_MagneticVectorSetup_currArrayIndex < iso2MagneticVectorSetupListType->MagneticVectorSetup.arrayLen ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ if(errn == 0) {
+ errn = encode_iso2MagneticVectorSetupType(stream, &iso2MagneticVectorSetupListType->MagneticVectorSetup.array [iso2MagneticVectorSetupListType_MagneticVectorSetup_currArrayIndex++]);
+ }
+ grammarID = 2150;
+ } else if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 2150:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MagneticVectorSetup), END_ELEMENT] */
+ if (iso2MagneticVectorSetupListType_MagneticVectorSetup_currArrayIndex < iso2MagneticVectorSetupListType->MagneticVectorSetup.arrayLen ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ if(errn == 0) {
+ errn = encode_iso2MagneticVectorSetupType(stream, &iso2MagneticVectorSetupListType->MagneticVectorSetup.array [iso2MagneticVectorSetupListType_MagneticVectorSetup_currArrayIndex++]);
+ }
+ grammarID = 2151;
+ } else if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 2151:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MagneticVectorSetup), END_ELEMENT] */
+ if (iso2MagneticVectorSetupListType_MagneticVectorSetup_currArrayIndex < iso2MagneticVectorSetupListType->MagneticVectorSetup.arrayLen ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ if(errn == 0) {
+ errn = encode_iso2MagneticVectorSetupType(stream, &iso2MagneticVectorSetupListType->MagneticVectorSetup.array [iso2MagneticVectorSetupListType_MagneticVectorSetup_currArrayIndex++]);
+ }
+ grammarID = 2152;
+ } else if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 2152:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MagneticVectorSetup), END_ELEMENT] */
+ if (iso2MagneticVectorSetupListType_MagneticVectorSetup_currArrayIndex < iso2MagneticVectorSetupListType->MagneticVectorSetup.arrayLen ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ if(errn == 0) {
+ errn = encode_iso2MagneticVectorSetupType(stream, &iso2MagneticVectorSetupListType->MagneticVectorSetup.array [iso2MagneticVectorSetupListType_MagneticVectorSetup_currArrayIndex++]);
+ }
+ grammarID = 2153;
+ } else if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 2153:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MagneticVectorSetup), END_ELEMENT] */
+ if (iso2MagneticVectorSetupListType_MagneticVectorSetup_currArrayIndex < iso2MagneticVectorSetupListType->MagneticVectorSetup.arrayLen ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ if(errn == 0) {
+ errn = encode_iso2MagneticVectorSetupType(stream, &iso2MagneticVectorSetupListType->MagneticVectorSetup.array [iso2MagneticVectorSetupListType_MagneticVectorSetup_currArrayIndex++]);
+ }
+ grammarID = 2154;
+ } else if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 2154:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MagneticVectorSetup), END_ELEMENT] */
+ if (iso2MagneticVectorSetupListType_MagneticVectorSetup_currArrayIndex < iso2MagneticVectorSetupListType->MagneticVectorSetup.arrayLen ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ if(errn == 0) {
+ errn = encode_iso2MagneticVectorSetupType(stream, &iso2MagneticVectorSetupListType->MagneticVectorSetup.array [iso2MagneticVectorSetupListType_MagneticVectorSetup_currArrayIndex++]);
+ }
+ grammarID = 2155;
+ } else if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 2155:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MagneticVectorSetup), END_ELEMENT] */
+ if (iso2MagneticVectorSetupListType_MagneticVectorSetup_currArrayIndex < iso2MagneticVectorSetupListType->MagneticVectorSetup.arrayLen ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ if(errn == 0) {
+ errn = encode_iso2MagneticVectorSetupType(stream, &iso2MagneticVectorSetupListType->MagneticVectorSetup.array [iso2MagneticVectorSetupListType_MagneticVectorSetup_currArrayIndex++]);
+ }
+ grammarID = 2156;
+ } else if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 2156:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MagneticVectorSetup), END_ELEMENT] */
+ if (iso2MagneticVectorSetupListType_MagneticVectorSetup_currArrayIndex < iso2MagneticVectorSetupListType->MagneticVectorSetup.arrayLen ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ if(errn == 0) {
+ errn = encode_iso2MagneticVectorSetupType(stream, &iso2MagneticVectorSetupListType->MagneticVectorSetup.array [iso2MagneticVectorSetupListType_MagneticVectorSetup_currArrayIndex++]);
+ }
+ grammarID = 2157;
+ } else if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 2157:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MagneticVectorSetup), END_ELEMENT] */
+ if (iso2MagneticVectorSetupListType_MagneticVectorSetup_currArrayIndex < iso2MagneticVectorSetupListType->MagneticVectorSetup.arrayLen ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ if(errn == 0) {
+ errn = encode_iso2MagneticVectorSetupType(stream, &iso2MagneticVectorSetupListType->MagneticVectorSetup.array [iso2MagneticVectorSetupListType_MagneticVectorSetup_currArrayIndex++]);
+ }
+ grammarID = 2158;
+ } else if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 2158:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MagneticVectorSetup), END_ELEMENT] */
+ if (iso2MagneticVectorSetupListType_MagneticVectorSetup_currArrayIndex < iso2MagneticVectorSetupListType->MagneticVectorSetup.arrayLen ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ if(errn == 0) {
+ errn = encode_iso2MagneticVectorSetupType(stream, &iso2MagneticVectorSetupListType->MagneticVectorSetup.array [iso2MagneticVectorSetupListType_MagneticVectorSetup_currArrayIndex++]);
+ }
+ grammarID = 2159;
+ } else if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 2159:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MagneticVectorSetup), END_ELEMENT] */
+ if (iso2MagneticVectorSetupListType_MagneticVectorSetup_currArrayIndex < iso2MagneticVectorSetupListType->MagneticVectorSetup.arrayLen ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ if(errn == 0) {
+ errn = encode_iso2MagneticVectorSetupType(stream, &iso2MagneticVectorSetupListType->MagneticVectorSetup.array [iso2MagneticVectorSetupListType_MagneticVectorSetup_currArrayIndex++]);
+ }
+ grammarID = 2160;
+ } else if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 2160:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MagneticVectorSetup), END_ELEMENT] */
+ if (iso2MagneticVectorSetupListType_MagneticVectorSetup_currArrayIndex < iso2MagneticVectorSetupListType->MagneticVectorSetup.arrayLen ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ if(errn == 0) {
+ errn = encode_iso2MagneticVectorSetupType(stream, &iso2MagneticVectorSetupListType->MagneticVectorSetup.array [iso2MagneticVectorSetupListType_MagneticVectorSetup_currArrayIndex++]);
+ }
+ grammarID = 2161;
+ } else if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 2161:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MagneticVectorSetup), END_ELEMENT] */
+ if (iso2MagneticVectorSetupListType_MagneticVectorSetup_currArrayIndex < iso2MagneticVectorSetupListType->MagneticVectorSetup.arrayLen ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ if(errn == 0) {
+ errn = encode_iso2MagneticVectorSetupType(stream, &iso2MagneticVectorSetupListType->MagneticVectorSetup.array [iso2MagneticVectorSetupListType_MagneticVectorSetup_currArrayIndex++]);
+ }
+ grammarID = 2162;
+ } else if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 2162:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MagneticVectorSetup), END_ELEMENT] */
+ if (iso2MagneticVectorSetupListType_MagneticVectorSetup_currArrayIndex < iso2MagneticVectorSetupListType->MagneticVectorSetup.arrayLen ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ if(errn == 0) {
+ errn = encode_iso2MagneticVectorSetupType(stream, &iso2MagneticVectorSetupListType->MagneticVectorSetup.array [iso2MagneticVectorSetupListType_MagneticVectorSetup_currArrayIndex++]);
+ }
+ grammarID = 2163;
+ } else if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 2163:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MagneticVectorSetup), END_ELEMENT] */
+ if (iso2MagneticVectorSetupListType_MagneticVectorSetup_currArrayIndex < iso2MagneticVectorSetupListType->MagneticVectorSetup.arrayLen ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ if(errn == 0) {
+ errn = encode_iso2MagneticVectorSetupType(stream, &iso2MagneticVectorSetupListType->MagneticVectorSetup.array [iso2MagneticVectorSetupListType_MagneticVectorSetup_currArrayIndex++]);
+ }
+ grammarID = 2164;
+ } else if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 2164:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MagneticVectorSetup), END_ELEMENT] */
+ if (iso2MagneticVectorSetupListType_MagneticVectorSetup_currArrayIndex < iso2MagneticVectorSetupListType->MagneticVectorSetup.arrayLen ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ if(errn == 0) {
+ errn = encode_iso2MagneticVectorSetupType(stream, &iso2MagneticVectorSetupListType->MagneticVectorSetup.array [iso2MagneticVectorSetupListType_MagneticVectorSetup_currArrayIndex++]);
+ }
+ grammarID = 2165;
+ } else if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 2165:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MagneticVectorSetup), END_ELEMENT] */
+ if (iso2MagneticVectorSetupListType_MagneticVectorSetup_currArrayIndex < iso2MagneticVectorSetupListType->MagneticVectorSetup.arrayLen ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ if(errn == 0) {
+ errn = encode_iso2MagneticVectorSetupType(stream, &iso2MagneticVectorSetupListType->MagneticVectorSetup.array [iso2MagneticVectorSetupListType_MagneticVectorSetup_currArrayIndex++]);
+ }
+ grammarID = 2166;
+ } else if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 2166:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MagneticVectorSetup), END_ELEMENT] */
+ if (iso2MagneticVectorSetupListType_MagneticVectorSetup_currArrayIndex < iso2MagneticVectorSetupListType->MagneticVectorSetup.arrayLen ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ if(errn == 0) {
+ errn = encode_iso2MagneticVectorSetupType(stream, &iso2MagneticVectorSetupListType->MagneticVectorSetup.array [iso2MagneticVectorSetupListType_MagneticVectorSetup_currArrayIndex++]);
+ }
+ grammarID = 2167;
+ } else if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 2167:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MagneticVectorSetup), END_ELEMENT] */
+ if (iso2MagneticVectorSetupListType_MagneticVectorSetup_currArrayIndex < iso2MagneticVectorSetupListType->MagneticVectorSetup.arrayLen ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ if(errn == 0) {
+ errn = encode_iso2MagneticVectorSetupType(stream, &iso2MagneticVectorSetupListType->MagneticVectorSetup.array [iso2MagneticVectorSetupListType_MagneticVectorSetup_currArrayIndex++]);
+ }
+ grammarID = 2168;
+ } else if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 2168:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MagneticVectorSetup), END_ELEMENT] */
+ if (iso2MagneticVectorSetupListType_MagneticVectorSetup_currArrayIndex < iso2MagneticVectorSetupListType->MagneticVectorSetup.arrayLen ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ if(errn == 0) {
+ errn = encode_iso2MagneticVectorSetupType(stream, &iso2MagneticVectorSetupListType->MagneticVectorSetup.array [iso2MagneticVectorSetupListType_MagneticVectorSetup_currArrayIndex++]);
+ }
+ grammarID = 2169;
+ } else if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 2169:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MagneticVectorSetup), END_ELEMENT] */
+ if (iso2MagneticVectorSetupListType_MagneticVectorSetup_currArrayIndex < iso2MagneticVectorSetupListType->MagneticVectorSetup.arrayLen ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ if(errn == 0) {
+ errn = encode_iso2MagneticVectorSetupType(stream, &iso2MagneticVectorSetupListType->MagneticVectorSetup.array [iso2MagneticVectorSetupListType_MagneticVectorSetup_currArrayIndex++]);
+ }
+ grammarID = 2170;
+ } else if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 2170:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MagneticVectorSetup), END_ELEMENT] */
+ if (iso2MagneticVectorSetupListType_MagneticVectorSetup_currArrayIndex < iso2MagneticVectorSetupListType->MagneticVectorSetup.arrayLen ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ if(errn == 0) {
+ errn = encode_iso2MagneticVectorSetupType(stream, &iso2MagneticVectorSetupListType->MagneticVectorSetup.array [iso2MagneticVectorSetupListType_MagneticVectorSetup_currArrayIndex++]);
+ }
+ grammarID = 2171;
+ } else if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 2171:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MagneticVectorSetup), END_ELEMENT] */
+ if (iso2MagneticVectorSetupListType_MagneticVectorSetup_currArrayIndex < iso2MagneticVectorSetupListType->MagneticVectorSetup.arrayLen ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ if(errn == 0) {
+ errn = encode_iso2MagneticVectorSetupType(stream, &iso2MagneticVectorSetupListType->MagneticVectorSetup.array [iso2MagneticVectorSetupListType_MagneticVectorSetup_currArrayIndex++]);
+ }
+ grammarID = 2172;
+ } else if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 2172:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MagneticVectorSetup), END_ELEMENT] */
+ if (iso2MagneticVectorSetupListType_MagneticVectorSetup_currArrayIndex < iso2MagneticVectorSetupListType->MagneticVectorSetup.arrayLen ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ if(errn == 0) {
+ errn = encode_iso2MagneticVectorSetupType(stream, &iso2MagneticVectorSetupListType->MagneticVectorSetup.array [iso2MagneticVectorSetupListType_MagneticVectorSetup_currArrayIndex++]);
+ }
+ grammarID = 2173;
+ } else if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 2173:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MagneticVectorSetup), END_ELEMENT] */
+ if (iso2MagneticVectorSetupListType_MagneticVectorSetup_currArrayIndex < iso2MagneticVectorSetupListType->MagneticVectorSetup.arrayLen ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ if(errn == 0) {
+ errn = encode_iso2MagneticVectorSetupType(stream, &iso2MagneticVectorSetupListType->MagneticVectorSetup.array [iso2MagneticVectorSetupListType_MagneticVectorSetup_currArrayIndex++]);
+ }
+ grammarID = 2174;
+ } else if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 2174:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MagneticVectorSetup), END_ELEMENT] */
+ if (iso2MagneticVectorSetupListType_MagneticVectorSetup_currArrayIndex < iso2MagneticVectorSetupListType->MagneticVectorSetup.arrayLen ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ if(errn == 0) {
+ errn = encode_iso2MagneticVectorSetupType(stream, &iso2MagneticVectorSetupListType->MagneticVectorSetup.array [iso2MagneticVectorSetupListType_MagneticVectorSetup_currArrayIndex++]);
+ }
+ grammarID = 2175;
+ } else if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 2175:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MagneticVectorSetup), END_ELEMENT] */
+ if (iso2MagneticVectorSetupListType_MagneticVectorSetup_currArrayIndex < iso2MagneticVectorSetupListType->MagneticVectorSetup.arrayLen ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ if(errn == 0) {
+ errn = encode_iso2MagneticVectorSetupType(stream, &iso2MagneticVectorSetupListType->MagneticVectorSetup.array [iso2MagneticVectorSetupListType_MagneticVectorSetup_currArrayIndex++]);
+ }
+ grammarID = 2176;
+ } else if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 2176:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MagneticVectorSetup), END_ELEMENT] */
+ if (iso2MagneticVectorSetupListType_MagneticVectorSetup_currArrayIndex < iso2MagneticVectorSetupListType->MagneticVectorSetup.arrayLen ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ if(errn == 0) {
+ errn = encode_iso2MagneticVectorSetupType(stream, &iso2MagneticVectorSetupListType->MagneticVectorSetup.array [iso2MagneticVectorSetupListType_MagneticVectorSetup_currArrayIndex++]);
+ }
+ grammarID = 2177;
+ } else if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 2177:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MagneticVectorSetup), END_ELEMENT] */
+ if (iso2MagneticVectorSetupListType_MagneticVectorSetup_currArrayIndex < iso2MagneticVectorSetupListType->MagneticVectorSetup.arrayLen ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ if(errn == 0) {
+ errn = encode_iso2MagneticVectorSetupType(stream, &iso2MagneticVectorSetupListType->MagneticVectorSetup.array [iso2MagneticVectorSetupListType_MagneticVectorSetup_currArrayIndex++]);
+ }
+ grammarID = 2178;
+ } else if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 2178:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MagneticVectorSetup), END_ELEMENT] */
+ if (iso2MagneticVectorSetupListType_MagneticVectorSetup_currArrayIndex < iso2MagneticVectorSetupListType->MagneticVectorSetup.arrayLen ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ if(errn == 0) {
+ errn = encode_iso2MagneticVectorSetupType(stream, &iso2MagneticVectorSetupListType->MagneticVectorSetup.array [iso2MagneticVectorSetupListType_MagneticVectorSetup_currArrayIndex++]);
+ }
+ grammarID = 2179;
+ } else if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 2179:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MagneticVectorSetup), END_ELEMENT] */
+ if (iso2MagneticVectorSetupListType_MagneticVectorSetup_currArrayIndex < iso2MagneticVectorSetupListType->MagneticVectorSetup.arrayLen ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ if(errn == 0) {
+ errn = encode_iso2MagneticVectorSetupType(stream, &iso2MagneticVectorSetupListType->MagneticVectorSetup.array [iso2MagneticVectorSetupListType_MagneticVectorSetup_currArrayIndex++]);
+ }
+ grammarID = 2180;
+ } else if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 2180:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MagneticVectorSetup), END_ELEMENT] */
+ if (iso2MagneticVectorSetupListType_MagneticVectorSetup_currArrayIndex < iso2MagneticVectorSetupListType->MagneticVectorSetup.arrayLen ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ if(errn == 0) {
+ errn = encode_iso2MagneticVectorSetupType(stream, &iso2MagneticVectorSetupListType->MagneticVectorSetup.array [iso2MagneticVectorSetupListType_MagneticVectorSetup_currArrayIndex++]);
+ }
+ grammarID = 2181;
+ } else if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 2181:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MagneticVectorSetup), END_ELEMENT] */
+ if (iso2MagneticVectorSetupListType_MagneticVectorSetup_currArrayIndex < iso2MagneticVectorSetupListType->MagneticVectorSetup.arrayLen ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ if(errn == 0) {
+ errn = encode_iso2MagneticVectorSetupType(stream, &iso2MagneticVectorSetupListType->MagneticVectorSetup.array [iso2MagneticVectorSetupListType_MagneticVectorSetup_currArrayIndex++]);
+ }
+ grammarID = 2182;
+ } else if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 2182:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MagneticVectorSetup), END_ELEMENT] */
+ if (iso2MagneticVectorSetupListType_MagneticVectorSetup_currArrayIndex < iso2MagneticVectorSetupListType->MagneticVectorSetup.arrayLen ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ if(errn == 0) {
+ errn = encode_iso2MagneticVectorSetupType(stream, &iso2MagneticVectorSetupListType->MagneticVectorSetup.array [iso2MagneticVectorSetupListType_MagneticVectorSetup_currArrayIndex++]);
+ }
+ grammarID = 2183;
+ } else if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 2183:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MagneticVectorSetup), END_ELEMENT] */
+ if (iso2MagneticVectorSetupListType_MagneticVectorSetup_currArrayIndex < iso2MagneticVectorSetupListType->MagneticVectorSetup.arrayLen ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ if(errn == 0) {
+ errn = encode_iso2MagneticVectorSetupType(stream, &iso2MagneticVectorSetupListType->MagneticVectorSetup.array [iso2MagneticVectorSetupListType_MagneticVectorSetup_currArrayIndex++]);
+ }
+ grammarID = 2184;
+ } else if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 2184:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MagneticVectorSetup), END_ELEMENT] */
+ if (iso2MagneticVectorSetupListType_MagneticVectorSetup_currArrayIndex < iso2MagneticVectorSetupListType->MagneticVectorSetup.arrayLen ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ if(errn == 0) {
+ errn = encode_iso2MagneticVectorSetupType(stream, &iso2MagneticVectorSetupListType->MagneticVectorSetup.array [iso2MagneticVectorSetupListType_MagneticVectorSetup_currArrayIndex++]);
+ }
+ grammarID = 2185;
+ } else if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 2185:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MagneticVectorSetup), END_ELEMENT] */
+ if (iso2MagneticVectorSetupListType_MagneticVectorSetup_currArrayIndex < iso2MagneticVectorSetupListType->MagneticVectorSetup.arrayLen ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ if(errn == 0) {
+ errn = encode_iso2MagneticVectorSetupType(stream, &iso2MagneticVectorSetupListType->MagneticVectorSetup.array [iso2MagneticVectorSetupListType_MagneticVectorSetup_currArrayIndex++]);
+ }
+ grammarID = 2186;
+ } else if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 2186:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MagneticVectorSetup), END_ELEMENT] */
+ if (iso2MagneticVectorSetupListType_MagneticVectorSetup_currArrayIndex < iso2MagneticVectorSetupListType->MagneticVectorSetup.arrayLen ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ if(errn == 0) {
+ errn = encode_iso2MagneticVectorSetupType(stream, &iso2MagneticVectorSetupListType->MagneticVectorSetup.array [iso2MagneticVectorSetupListType_MagneticVectorSetup_currArrayIndex++]);
+ }
+ grammarID = 2187;
+ } else if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 2187:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MagneticVectorSetup), END_ELEMENT] */
+ if (iso2MagneticVectorSetupListType_MagneticVectorSetup_currArrayIndex < iso2MagneticVectorSetupListType->MagneticVectorSetup.arrayLen ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ if(errn == 0) {
+ errn = encode_iso2MagneticVectorSetupType(stream, &iso2MagneticVectorSetupListType->MagneticVectorSetup.array [iso2MagneticVectorSetupListType_MagneticVectorSetup_currArrayIndex++]);
+ }
+ grammarID = 2188;
+ } else if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 2188:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MagneticVectorSetup), END_ELEMENT] */
+ if (iso2MagneticVectorSetupListType_MagneticVectorSetup_currArrayIndex < iso2MagneticVectorSetupListType->MagneticVectorSetup.arrayLen ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ if(errn == 0) {
+ errn = encode_iso2MagneticVectorSetupType(stream, &iso2MagneticVectorSetupListType->MagneticVectorSetup.array [iso2MagneticVectorSetupListType_MagneticVectorSetup_currArrayIndex++]);
+ }
+ grammarID = 2189;
+ } else if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 2189:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MagneticVectorSetup), END_ELEMENT] */
+ if (iso2MagneticVectorSetupListType_MagneticVectorSetup_currArrayIndex < iso2MagneticVectorSetupListType->MagneticVectorSetup.arrayLen ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ if(errn == 0) {
+ errn = encode_iso2MagneticVectorSetupType(stream, &iso2MagneticVectorSetupListType->MagneticVectorSetup.array [iso2MagneticVectorSetupListType_MagneticVectorSetup_currArrayIndex++]);
+ }
+ grammarID = 2190;
+ } else if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 2190:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MagneticVectorSetup), END_ELEMENT] */
+ if (iso2MagneticVectorSetupListType_MagneticVectorSetup_currArrayIndex < iso2MagneticVectorSetupListType->MagneticVectorSetup.arrayLen ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ if(errn == 0) {
+ errn = encode_iso2MagneticVectorSetupType(stream, &iso2MagneticVectorSetupListType->MagneticVectorSetup.array [iso2MagneticVectorSetupListType_MagneticVectorSetup_currArrayIndex++]);
+ }
+ grammarID = 2191;
+ } else if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 2191:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MagneticVectorSetup), END_ELEMENT] */
+ if (iso2MagneticVectorSetupListType_MagneticVectorSetup_currArrayIndex < iso2MagneticVectorSetupListType->MagneticVectorSetup.arrayLen ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ if(errn == 0) {
+ errn = encode_iso2MagneticVectorSetupType(stream, &iso2MagneticVectorSetupListType->MagneticVectorSetup.array [iso2MagneticVectorSetupListType_MagneticVectorSetup_currArrayIndex++]);
+ }
+ grammarID = 2192;
+ } else if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 2192:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MagneticVectorSetup), END_ELEMENT] */
+ if (iso2MagneticVectorSetupListType_MagneticVectorSetup_currArrayIndex < iso2MagneticVectorSetupListType->MagneticVectorSetup.arrayLen ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ if(errn == 0) {
+ errn = encode_iso2MagneticVectorSetupType(stream, &iso2MagneticVectorSetupListType->MagneticVectorSetup.array [iso2MagneticVectorSetupListType_MagneticVectorSetup_currArrayIndex++]);
+ }
+ grammarID = 2193;
+ } else if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 2193:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MagneticVectorSetup), END_ELEMENT] */
+ if (iso2MagneticVectorSetupListType_MagneticVectorSetup_currArrayIndex < iso2MagneticVectorSetupListType->MagneticVectorSetup.arrayLen ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ if(errn == 0) {
+ errn = encode_iso2MagneticVectorSetupType(stream, &iso2MagneticVectorSetupListType->MagneticVectorSetup.array [iso2MagneticVectorSetupListType_MagneticVectorSetup_currArrayIndex++]);
+ }
+ grammarID = 2194;
+ } else if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 2194:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MagneticVectorSetup), END_ELEMENT] */
+ if (iso2MagneticVectorSetupListType_MagneticVectorSetup_currArrayIndex < iso2MagneticVectorSetupListType->MagneticVectorSetup.arrayLen ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ if(errn == 0) {
+ errn = encode_iso2MagneticVectorSetupType(stream, &iso2MagneticVectorSetupListType->MagneticVectorSetup.array [iso2MagneticVectorSetupListType_MagneticVectorSetup_currArrayIndex++]);
+ }
+ grammarID = 2195;
+ } else if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 2195:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MagneticVectorSetup), END_ELEMENT] */
+ if (iso2MagneticVectorSetupListType_MagneticVectorSetup_currArrayIndex < iso2MagneticVectorSetupListType->MagneticVectorSetup.arrayLen ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ if(errn == 0) {
+ errn = encode_iso2MagneticVectorSetupType(stream, &iso2MagneticVectorSetupListType->MagneticVectorSetup.array [iso2MagneticVectorSetupListType_MagneticVectorSetup_currArrayIndex++]);
+ }
+ grammarID = 2196;
+ } else if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 2196:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MagneticVectorSetup), END_ELEMENT] */
+ if (iso2MagneticVectorSetupListType_MagneticVectorSetup_currArrayIndex < iso2MagneticVectorSetupListType->MagneticVectorSetup.arrayLen ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ if(errn == 0) {
+ errn = encode_iso2MagneticVectorSetupType(stream, &iso2MagneticVectorSetupListType->MagneticVectorSetup.array [iso2MagneticVectorSetupListType_MagneticVectorSetup_currArrayIndex++]);
+ }
+ grammarID = 2197;
+ } else if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 2197:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MagneticVectorSetup), END_ELEMENT] */
+ if (iso2MagneticVectorSetupListType_MagneticVectorSetup_currArrayIndex < iso2MagneticVectorSetupListType->MagneticVectorSetup.arrayLen ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ if(errn == 0) {
+ errn = encode_iso2MagneticVectorSetupType(stream, &iso2MagneticVectorSetupListType->MagneticVectorSetup.array [iso2MagneticVectorSetupListType_MagneticVectorSetup_currArrayIndex++]);
+ }
+ grammarID = 2198;
+ } else if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 2198:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MagneticVectorSetup), END_ELEMENT] */
+ if (iso2MagneticVectorSetupListType_MagneticVectorSetup_currArrayIndex < iso2MagneticVectorSetupListType->MagneticVectorSetup.arrayLen ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ if(errn == 0) {
+ errn = encode_iso2MagneticVectorSetupType(stream, &iso2MagneticVectorSetupListType->MagneticVectorSetup.array [iso2MagneticVectorSetupListType_MagneticVectorSetup_currArrayIndex++]);
+ }
+ grammarID = 2199;
+ } else if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 2199:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MagneticVectorSetup), END_ELEMENT] */
+ if (iso2MagneticVectorSetupListType_MagneticVectorSetup_currArrayIndex < iso2MagneticVectorSetupListType->MagneticVectorSetup.arrayLen ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ if(errn == 0) {
+ errn = encode_iso2MagneticVectorSetupType(stream, &iso2MagneticVectorSetupListType->MagneticVectorSetup.array [iso2MagneticVectorSetupListType_MagneticVectorSetup_currArrayIndex++]);
+ }
+ grammarID = 2200;
+ } else if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 2200:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MagneticVectorSetup), END_ELEMENT] */
+ if (iso2MagneticVectorSetupListType_MagneticVectorSetup_currArrayIndex < iso2MagneticVectorSetupListType->MagneticVectorSetup.arrayLen ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ if(errn == 0) {
+ errn = encode_iso2MagneticVectorSetupType(stream, &iso2MagneticVectorSetupListType->MagneticVectorSetup.array [iso2MagneticVectorSetupListType_MagneticVectorSetup_currArrayIndex++]);
+ }
+ grammarID = 2201;
+ } else if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 2201:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MagneticVectorSetup), END_ELEMENT] */
+ if (iso2MagneticVectorSetupListType_MagneticVectorSetup_currArrayIndex < iso2MagneticVectorSetupListType->MagneticVectorSetup.arrayLen ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ if(errn == 0) {
+ errn = encode_iso2MagneticVectorSetupType(stream, &iso2MagneticVectorSetupListType->MagneticVectorSetup.array [iso2MagneticVectorSetupListType_MagneticVectorSetup_currArrayIndex++]);
+ }
+ grammarID = 2202;
+ } else if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 2202:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MagneticVectorSetup), END_ELEMENT] */
+ if (iso2MagneticVectorSetupListType_MagneticVectorSetup_currArrayIndex < iso2MagneticVectorSetupListType->MagneticVectorSetup.arrayLen ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ if(errn == 0) {
+ errn = encode_iso2MagneticVectorSetupType(stream, &iso2MagneticVectorSetupListType->MagneticVectorSetup.array [iso2MagneticVectorSetupListType_MagneticVectorSetup_currArrayIndex++]);
+ }
+ grammarID = 2203;
+ } else if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 2203:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MagneticVectorSetup), END_ELEMENT] */
+ if (iso2MagneticVectorSetupListType_MagneticVectorSetup_currArrayIndex < iso2MagneticVectorSetupListType->MagneticVectorSetup.arrayLen ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ if(errn == 0) {
+ errn = encode_iso2MagneticVectorSetupType(stream, &iso2MagneticVectorSetupListType->MagneticVectorSetup.array [iso2MagneticVectorSetupListType_MagneticVectorSetup_currArrayIndex++]);
+ }
+ grammarID = 2204;
+ } else if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 2204:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MagneticVectorSetup), END_ELEMENT] */
+ if (iso2MagneticVectorSetupListType_MagneticVectorSetup_currArrayIndex < iso2MagneticVectorSetupListType->MagneticVectorSetup.arrayLen ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ if(errn == 0) {
+ errn = encode_iso2MagneticVectorSetupType(stream, &iso2MagneticVectorSetupListType->MagneticVectorSetup.array [iso2MagneticVectorSetupListType_MagneticVectorSetup_currArrayIndex++]);
+ }
+ grammarID = 2205;
+ } else if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 2205:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MagneticVectorSetup), END_ELEMENT] */
+ if (iso2MagneticVectorSetupListType_MagneticVectorSetup_currArrayIndex < iso2MagneticVectorSetupListType->MagneticVectorSetup.arrayLen ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ if(errn == 0) {
+ errn = encode_iso2MagneticVectorSetupType(stream, &iso2MagneticVectorSetupListType->MagneticVectorSetup.array [iso2MagneticVectorSetupListType_MagneticVectorSetup_currArrayIndex++]);
+ }
+ grammarID = 2206;
+ } else if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 2206:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MagneticVectorSetup), END_ELEMENT] */
+ if (iso2MagneticVectorSetupListType_MagneticVectorSetup_currArrayIndex < iso2MagneticVectorSetupListType->MagneticVectorSetup.arrayLen ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ if(errn == 0) {
+ errn = encode_iso2MagneticVectorSetupType(stream, &iso2MagneticVectorSetupListType->MagneticVectorSetup.array [iso2MagneticVectorSetupListType_MagneticVectorSetup_currArrayIndex++]);
+ }
+ grammarID = 2207;
+ } else if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 2207:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MagneticVectorSetup), END_ELEMENT] */
+ if (iso2MagneticVectorSetupListType_MagneticVectorSetup_currArrayIndex < iso2MagneticVectorSetupListType->MagneticVectorSetup.arrayLen ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ if(errn == 0) {
+ errn = encode_iso2MagneticVectorSetupType(stream, &iso2MagneticVectorSetupListType->MagneticVectorSetup.array [iso2MagneticVectorSetupListType_MagneticVectorSetup_currArrayIndex++]);
+ }
+ grammarID = 2208;
+ } else if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 2208:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MagneticVectorSetup), END_ELEMENT] */
+ if (iso2MagneticVectorSetupListType_MagneticVectorSetup_currArrayIndex < iso2MagneticVectorSetupListType->MagneticVectorSetup.arrayLen ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ if(errn == 0) {
+ errn = encode_iso2MagneticVectorSetupType(stream, &iso2MagneticVectorSetupListType->MagneticVectorSetup.array [iso2MagneticVectorSetupListType_MagneticVectorSetup_currArrayIndex++]);
+ }
+ grammarID = 2209;
+ } else if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 2209:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MagneticVectorSetup), END_ELEMENT] */
+ if (iso2MagneticVectorSetupListType_MagneticVectorSetup_currArrayIndex < iso2MagneticVectorSetupListType->MagneticVectorSetup.arrayLen ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ if(errn == 0) {
+ errn = encode_iso2MagneticVectorSetupType(stream, &iso2MagneticVectorSetupListType->MagneticVectorSetup.array [iso2MagneticVectorSetupListType_MagneticVectorSetup_currArrayIndex++]);
+ }
+ grammarID = 2210;
+ } else if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 2210:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MagneticVectorSetup), END_ELEMENT] */
+ if (iso2MagneticVectorSetupListType_MagneticVectorSetup_currArrayIndex < iso2MagneticVectorSetupListType->MagneticVectorSetup.arrayLen ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ if(errn == 0) {
+ errn = encode_iso2MagneticVectorSetupType(stream, &iso2MagneticVectorSetupListType->MagneticVectorSetup.array [iso2MagneticVectorSetupListType_MagneticVectorSetup_currArrayIndex++]);
+ }
+ grammarID = 2211;
+ } else if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 2211:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MagneticVectorSetup), END_ELEMENT] */
+ if (iso2MagneticVectorSetupListType_MagneticVectorSetup_currArrayIndex < iso2MagneticVectorSetupListType->MagneticVectorSetup.arrayLen ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ if(errn == 0) {
+ errn = encode_iso2MagneticVectorSetupType(stream, &iso2MagneticVectorSetupListType->MagneticVectorSetup.array [iso2MagneticVectorSetupListType_MagneticVectorSetup_currArrayIndex++]);
+ }
+ grammarID = 2212;
+ } else if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 2212:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MagneticVectorSetup), END_ELEMENT] */
+ if (iso2MagneticVectorSetupListType_MagneticVectorSetup_currArrayIndex < iso2MagneticVectorSetupListType->MagneticVectorSetup.arrayLen ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ if(errn == 0) {
+ errn = encode_iso2MagneticVectorSetupType(stream, &iso2MagneticVectorSetupListType->MagneticVectorSetup.array [iso2MagneticVectorSetupListType_MagneticVectorSetup_currArrayIndex++]);
+ }
+ grammarID = 2213;
+ } else if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 2213:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MagneticVectorSetup), END_ELEMENT] */
+ if (iso2MagneticVectorSetupListType_MagneticVectorSetup_currArrayIndex < iso2MagneticVectorSetupListType->MagneticVectorSetup.arrayLen ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ if(errn == 0) {
+ errn = encode_iso2MagneticVectorSetupType(stream, &iso2MagneticVectorSetupListType->MagneticVectorSetup.array [iso2MagneticVectorSetupListType_MagneticVectorSetup_currArrayIndex++]);
+ }
+ grammarID = 2214;
+ } else if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 2214:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MagneticVectorSetup), END_ELEMENT] */
+ if (iso2MagneticVectorSetupListType_MagneticVectorSetup_currArrayIndex < iso2MagneticVectorSetupListType->MagneticVectorSetup.arrayLen ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ if(errn == 0) {
+ errn = encode_iso2MagneticVectorSetupType(stream, &iso2MagneticVectorSetupListType->MagneticVectorSetup.array [iso2MagneticVectorSetupListType_MagneticVectorSetup_currArrayIndex++]);
+ }
+ grammarID = 2215;
+ } else if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 2215:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MagneticVectorSetup), END_ELEMENT] */
+ if (iso2MagneticVectorSetupListType_MagneticVectorSetup_currArrayIndex < iso2MagneticVectorSetupListType->MagneticVectorSetup.arrayLen ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ if(errn == 0) {
+ errn = encode_iso2MagneticVectorSetupType(stream, &iso2MagneticVectorSetupListType->MagneticVectorSetup.array [iso2MagneticVectorSetupListType_MagneticVectorSetup_currArrayIndex++]);
+ }
+ grammarID = 2216;
+ } else if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 2216:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MagneticVectorSetup), END_ELEMENT] */
+ if (iso2MagneticVectorSetupListType_MagneticVectorSetup_currArrayIndex < iso2MagneticVectorSetupListType->MagneticVectorSetup.arrayLen ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ if(errn == 0) {
+ errn = encode_iso2MagneticVectorSetupType(stream, &iso2MagneticVectorSetupListType->MagneticVectorSetup.array [iso2MagneticVectorSetupListType_MagneticVectorSetup_currArrayIndex++]);
+ }
+ grammarID = 2217;
+ } else if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 2217:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MagneticVectorSetup), END_ELEMENT] */
+ if (iso2MagneticVectorSetupListType_MagneticVectorSetup_currArrayIndex < iso2MagneticVectorSetupListType->MagneticVectorSetup.arrayLen ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ if(errn == 0) {
+ errn = encode_iso2MagneticVectorSetupType(stream, &iso2MagneticVectorSetupListType->MagneticVectorSetup.array [iso2MagneticVectorSetupListType_MagneticVectorSetup_currArrayIndex++]);
+ }
+ grammarID = 2218;
+ } else if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 2218:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MagneticVectorSetup), END_ELEMENT] */
+ if (iso2MagneticVectorSetupListType_MagneticVectorSetup_currArrayIndex < iso2MagneticVectorSetupListType->MagneticVectorSetup.arrayLen ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ if(errn == 0) {
+ errn = encode_iso2MagneticVectorSetupType(stream, &iso2MagneticVectorSetupListType->MagneticVectorSetup.array [iso2MagneticVectorSetupListType_MagneticVectorSetup_currArrayIndex++]);
+ }
+ grammarID = 2219;
+ } else if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 2219:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MagneticVectorSetup), END_ELEMENT] */
+ if (iso2MagneticVectorSetupListType_MagneticVectorSetup_currArrayIndex < iso2MagneticVectorSetupListType->MagneticVectorSetup.arrayLen ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ if(errn == 0) {
+ errn = encode_iso2MagneticVectorSetupType(stream, &iso2MagneticVectorSetupListType->MagneticVectorSetup.array [iso2MagneticVectorSetupListType_MagneticVectorSetup_currArrayIndex++]);
+ }
+ grammarID = 2220;
+ } else if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 2220:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MagneticVectorSetup), END_ELEMENT] */
+ if (iso2MagneticVectorSetupListType_MagneticVectorSetup_currArrayIndex < iso2MagneticVectorSetupListType->MagneticVectorSetup.arrayLen ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ if(errn == 0) {
+ errn = encode_iso2MagneticVectorSetupType(stream, &iso2MagneticVectorSetupListType->MagneticVectorSetup.array [iso2MagneticVectorSetupListType_MagneticVectorSetup_currArrayIndex++]);
+ }
+ grammarID = 2221;
+ } else if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 2221:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MagneticVectorSetup), END_ELEMENT] */
+ if (iso2MagneticVectorSetupListType_MagneticVectorSetup_currArrayIndex < iso2MagneticVectorSetupListType->MagneticVectorSetup.arrayLen ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ if(errn == 0) {
+ errn = encode_iso2MagneticVectorSetupType(stream, &iso2MagneticVectorSetupListType->MagneticVectorSetup.array [iso2MagneticVectorSetupListType_MagneticVectorSetup_currArrayIndex++]);
+ }
+ grammarID = 2222;
+ } else if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 2222:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MagneticVectorSetup), END_ELEMENT] */
+ if (iso2MagneticVectorSetupListType_MagneticVectorSetup_currArrayIndex < iso2MagneticVectorSetupListType->MagneticVectorSetup.arrayLen ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ if(errn == 0) {
+ errn = encode_iso2MagneticVectorSetupType(stream, &iso2MagneticVectorSetupListType->MagneticVectorSetup.array [iso2MagneticVectorSetupListType_MagneticVectorSetup_currArrayIndex++]);
+ }
+ grammarID = 2223;
+ } else if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 2223:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MagneticVectorSetup), END_ELEMENT] */
+ if (iso2MagneticVectorSetupListType_MagneticVectorSetup_currArrayIndex < iso2MagneticVectorSetupListType->MagneticVectorSetup.arrayLen ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ if(errn == 0) {
+ errn = encode_iso2MagneticVectorSetupType(stream, &iso2MagneticVectorSetupListType->MagneticVectorSetup.array [iso2MagneticVectorSetupListType_MagneticVectorSetup_currArrayIndex++]);
+ }
+ grammarID = 2224;
+ } else if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 2224:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MagneticVectorSetup), END_ELEMENT] */
+ if (iso2MagneticVectorSetupListType_MagneticVectorSetup_currArrayIndex < iso2MagneticVectorSetupListType->MagneticVectorSetup.arrayLen ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ if(errn == 0) {
+ errn = encode_iso2MagneticVectorSetupType(stream, &iso2MagneticVectorSetupListType->MagneticVectorSetup.array [iso2MagneticVectorSetupListType_MagneticVectorSetup_currArrayIndex++]);
+ }
+ grammarID = 2225;
+ } else if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 2225:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MagneticVectorSetup), END_ELEMENT] */
+ if (iso2MagneticVectorSetupListType_MagneticVectorSetup_currArrayIndex < iso2MagneticVectorSetupListType->MagneticVectorSetup.arrayLen ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ if(errn == 0) {
+ errn = encode_iso2MagneticVectorSetupType(stream, &iso2MagneticVectorSetupListType->MagneticVectorSetup.array [iso2MagneticVectorSetupListType_MagneticVectorSetup_currArrayIndex++]);
+ }
+ grammarID = 2226;
+ } else if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 2226:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MagneticVectorSetup), END_ELEMENT] */
+ if (iso2MagneticVectorSetupListType_MagneticVectorSetup_currArrayIndex < iso2MagneticVectorSetupListType->MagneticVectorSetup.arrayLen ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ if(errn == 0) {
+ errn = encode_iso2MagneticVectorSetupType(stream, &iso2MagneticVectorSetupListType->MagneticVectorSetup.array [iso2MagneticVectorSetupListType_MagneticVectorSetup_currArrayIndex++]);
+ }
+ grammarID = 2227;
+ } else if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 2227:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MagneticVectorSetup), END_ELEMENT] */
+ if (iso2MagneticVectorSetupListType_MagneticVectorSetup_currArrayIndex < iso2MagneticVectorSetupListType->MagneticVectorSetup.arrayLen ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ if(errn == 0) {
+ errn = encode_iso2MagneticVectorSetupType(stream, &iso2MagneticVectorSetupListType->MagneticVectorSetup.array [iso2MagneticVectorSetupListType_MagneticVectorSetup_currArrayIndex++]);
+ }
+ grammarID = 2228;
+ } else if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 2228:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MagneticVectorSetup), END_ELEMENT] */
+ if (iso2MagneticVectorSetupListType_MagneticVectorSetup_currArrayIndex < iso2MagneticVectorSetupListType->MagneticVectorSetup.arrayLen ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ if(errn == 0) {
+ errn = encode_iso2MagneticVectorSetupType(stream, &iso2MagneticVectorSetupListType->MagneticVectorSetup.array [iso2MagneticVectorSetupListType_MagneticVectorSetup_currArrayIndex++]);
+ }
+ grammarID = 2229;
+ } else if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 2229:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MagneticVectorSetup), END_ELEMENT] */
+ if (iso2MagneticVectorSetupListType_MagneticVectorSetup_currArrayIndex < iso2MagneticVectorSetupListType->MagneticVectorSetup.arrayLen ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ if(errn == 0) {
+ errn = encode_iso2MagneticVectorSetupType(stream, &iso2MagneticVectorSetupListType->MagneticVectorSetup.array [iso2MagneticVectorSetupListType_MagneticVectorSetup_currArrayIndex++]);
+ }
+ grammarID = 2230;
+ } else if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 2230:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MagneticVectorSetup), END_ELEMENT] */
+ if (iso2MagneticVectorSetupListType_MagneticVectorSetup_currArrayIndex < iso2MagneticVectorSetupListType->MagneticVectorSetup.arrayLen ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ if(errn == 0) {
+ errn = encode_iso2MagneticVectorSetupType(stream, &iso2MagneticVectorSetupListType->MagneticVectorSetup.array [iso2MagneticVectorSetupListType_MagneticVectorSetup_currArrayIndex++]);
+ }
+ grammarID = 2231;
+ } else if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 2231:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MagneticVectorSetup), END_ELEMENT] */
+ if (iso2MagneticVectorSetupListType_MagneticVectorSetup_currArrayIndex < iso2MagneticVectorSetupListType->MagneticVectorSetup.arrayLen ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ if(errn == 0) {
+ errn = encode_iso2MagneticVectorSetupType(stream, &iso2MagneticVectorSetupListType->MagneticVectorSetup.array [iso2MagneticVectorSetupListType_MagneticVectorSetup_currArrayIndex++]);
+ }
+ grammarID = 2232;
+ } else if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 2232:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MagneticVectorSetup), END_ELEMENT] */
+ if (iso2MagneticVectorSetupListType_MagneticVectorSetup_currArrayIndex < iso2MagneticVectorSetupListType->MagneticVectorSetup.arrayLen ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ if(errn == 0) {
+ errn = encode_iso2MagneticVectorSetupType(stream, &iso2MagneticVectorSetupListType->MagneticVectorSetup.array [iso2MagneticVectorSetupListType_MagneticVectorSetup_currArrayIndex++]);
+ }
+ grammarID = 2233;
+ } else if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 2233:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MagneticVectorSetup), END_ELEMENT] */
+ if (iso2MagneticVectorSetupListType_MagneticVectorSetup_currArrayIndex < iso2MagneticVectorSetupListType->MagneticVectorSetup.arrayLen ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ if(errn == 0) {
+ errn = encode_iso2MagneticVectorSetupType(stream, &iso2MagneticVectorSetupListType->MagneticVectorSetup.array [iso2MagneticVectorSetupListType_MagneticVectorSetup_currArrayIndex++]);
+ }
+ grammarID = 2234;
+ } else if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 2234:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MagneticVectorSetup), END_ELEMENT] */
+ if (iso2MagneticVectorSetupListType_MagneticVectorSetup_currArrayIndex < iso2MagneticVectorSetupListType->MagneticVectorSetup.arrayLen ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ if(errn == 0) {
+ errn = encode_iso2MagneticVectorSetupType(stream, &iso2MagneticVectorSetupListType->MagneticVectorSetup.array [iso2MagneticVectorSetupListType_MagneticVectorSetup_currArrayIndex++]);
+ }
+ grammarID = 2235;
+ } else if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 2235:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MagneticVectorSetup), END_ELEMENT] */
+ if (iso2MagneticVectorSetupListType_MagneticVectorSetup_currArrayIndex < iso2MagneticVectorSetupListType->MagneticVectorSetup.arrayLen ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ if(errn == 0) {
+ errn = encode_iso2MagneticVectorSetupType(stream, &iso2MagneticVectorSetupListType->MagneticVectorSetup.array [iso2MagneticVectorSetupListType_MagneticVectorSetup_currArrayIndex++]);
+ }
+ grammarID = 2236;
+ } else if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 2236:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MagneticVectorSetup), END_ELEMENT] */
+ if (iso2MagneticVectorSetupListType_MagneticVectorSetup_currArrayIndex < iso2MagneticVectorSetupListType->MagneticVectorSetup.arrayLen ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ if(errn == 0) {
+ errn = encode_iso2MagneticVectorSetupType(stream, &iso2MagneticVectorSetupListType->MagneticVectorSetup.array [iso2MagneticVectorSetupListType_MagneticVectorSetup_currArrayIndex++]);
+ }
+ grammarID = 2237;
+ } else if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 2237:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MagneticVectorSetup), END_ELEMENT] */
+ if (iso2MagneticVectorSetupListType_MagneticVectorSetup_currArrayIndex < iso2MagneticVectorSetupListType->MagneticVectorSetup.arrayLen ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ if(errn == 0) {
+ errn = encode_iso2MagneticVectorSetupType(stream, &iso2MagneticVectorSetupListType->MagneticVectorSetup.array [iso2MagneticVectorSetupListType_MagneticVectorSetup_currArrayIndex++]);
+ }
+ grammarID = 2238;
+ } else if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 2238:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MagneticVectorSetup), END_ELEMENT] */
+ if (iso2MagneticVectorSetupListType_MagneticVectorSetup_currArrayIndex < iso2MagneticVectorSetupListType->MagneticVectorSetup.arrayLen ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ if(errn == 0) {
+ errn = encode_iso2MagneticVectorSetupType(stream, &iso2MagneticVectorSetupListType->MagneticVectorSetup.array [iso2MagneticVectorSetupListType_MagneticVectorSetup_currArrayIndex++]);
+ }
+ grammarID = 2239;
+ } else if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 2239:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MagneticVectorSetup), END_ELEMENT] */
+ if (iso2MagneticVectorSetupListType_MagneticVectorSetup_currArrayIndex < iso2MagneticVectorSetupListType->MagneticVectorSetup.arrayLen ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ if(errn == 0) {
+ errn = encode_iso2MagneticVectorSetupType(stream, &iso2MagneticVectorSetupListType->MagneticVectorSetup.array [iso2MagneticVectorSetupListType_MagneticVectorSetup_currArrayIndex++]);
+ }
+ grammarID = 2240;
+ } else if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 2240:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MagneticVectorSetup), END_ELEMENT] */
+ if (iso2MagneticVectorSetupListType_MagneticVectorSetup_currArrayIndex < iso2MagneticVectorSetupListType->MagneticVectorSetup.arrayLen ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ if(errn == 0) {
+ errn = encode_iso2MagneticVectorSetupType(stream, &iso2MagneticVectorSetupListType->MagneticVectorSetup.array [iso2MagneticVectorSetupListType_MagneticVectorSetup_currArrayIndex++]);
+ }
+ grammarID = 2241;
+ } else if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 2241:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MagneticVectorSetup), END_ELEMENT] */
+ if (iso2MagneticVectorSetupListType_MagneticVectorSetup_currArrayIndex < iso2MagneticVectorSetupListType->MagneticVectorSetup.arrayLen ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ if(errn == 0) {
+ errn = encode_iso2MagneticVectorSetupType(stream, &iso2MagneticVectorSetupListType->MagneticVectorSetup.array [iso2MagneticVectorSetupListType_MagneticVectorSetup_currArrayIndex++]);
+ }
+ grammarID = 2242;
+ } else if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 2242:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MagneticVectorSetup), END_ELEMENT] */
+ if (iso2MagneticVectorSetupListType_MagneticVectorSetup_currArrayIndex < iso2MagneticVectorSetupListType->MagneticVectorSetup.arrayLen ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ if(errn == 0) {
+ errn = encode_iso2MagneticVectorSetupType(stream, &iso2MagneticVectorSetupListType->MagneticVectorSetup.array [iso2MagneticVectorSetupListType_MagneticVectorSetup_currArrayIndex++]);
+ }
+ grammarID = 2243;
+ } else if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 2243:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MagneticVectorSetup), END_ELEMENT] */
+ if (iso2MagneticVectorSetupListType_MagneticVectorSetup_currArrayIndex < iso2MagneticVectorSetupListType->MagneticVectorSetup.arrayLen ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ if(errn == 0) {
+ errn = encode_iso2MagneticVectorSetupType(stream, &iso2MagneticVectorSetupListType->MagneticVectorSetup.array [iso2MagneticVectorSetupListType_MagneticVectorSetup_currArrayIndex++]);
+ }
+ grammarID = 2244;
+ } else if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 2244:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MagneticVectorSetup), END_ELEMENT] */
+ if (iso2MagneticVectorSetupListType_MagneticVectorSetup_currArrayIndex < iso2MagneticVectorSetupListType->MagneticVectorSetup.arrayLen ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ if(errn == 0) {
+ errn = encode_iso2MagneticVectorSetupType(stream, &iso2MagneticVectorSetupListType->MagneticVectorSetup.array [iso2MagneticVectorSetupListType_MagneticVectorSetup_currArrayIndex++]);
+ }
+ grammarID = 2245;
+ } else if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 2245:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MagneticVectorSetup), END_ELEMENT] */
+ if (iso2MagneticVectorSetupListType_MagneticVectorSetup_currArrayIndex < iso2MagneticVectorSetupListType->MagneticVectorSetup.arrayLen ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ if(errn == 0) {
+ errn = encode_iso2MagneticVectorSetupType(stream, &iso2MagneticVectorSetupListType->MagneticVectorSetup.array [iso2MagneticVectorSetupListType_MagneticVectorSetup_currArrayIndex++]);
+ }
+ grammarID = 2246;
+ } else if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 2246:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MagneticVectorSetup), END_ELEMENT] */
+ if (iso2MagneticVectorSetupListType_MagneticVectorSetup_currArrayIndex < iso2MagneticVectorSetupListType->MagneticVectorSetup.arrayLen ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ if(errn == 0) {
+ errn = encode_iso2MagneticVectorSetupType(stream, &iso2MagneticVectorSetupListType->MagneticVectorSetup.array [iso2MagneticVectorSetupListType_MagneticVectorSetup_currArrayIndex++]);
+ }
+ grammarID = 2247;
+ } else if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 2247:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MagneticVectorSetup), END_ELEMENT] */
+ if (iso2MagneticVectorSetupListType_MagneticVectorSetup_currArrayIndex < iso2MagneticVectorSetupListType->MagneticVectorSetup.arrayLen ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ if(errn == 0) {
+ errn = encode_iso2MagneticVectorSetupType(stream, &iso2MagneticVectorSetupListType->MagneticVectorSetup.array [iso2MagneticVectorSetupListType_MagneticVectorSetup_currArrayIndex++]);
+ }
+ grammarID = 2248;
+ } else if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 2248:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MagneticVectorSetup), END_ELEMENT] */
+ if (iso2MagneticVectorSetupListType_MagneticVectorSetup_currArrayIndex < iso2MagneticVectorSetupListType->MagneticVectorSetup.arrayLen ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ if(errn == 0) {
+ errn = encode_iso2MagneticVectorSetupType(stream, &iso2MagneticVectorSetupListType->MagneticVectorSetup.array [iso2MagneticVectorSetupListType_MagneticVectorSetup_currArrayIndex++]);
+ }
+ grammarID = 2249;
+ } else if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 2249:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MagneticVectorSetup), END_ELEMENT] */
+ if (iso2MagneticVectorSetupListType_MagneticVectorSetup_currArrayIndex < iso2MagneticVectorSetupListType->MagneticVectorSetup.arrayLen ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ if(errn == 0) {
+ errn = encode_iso2MagneticVectorSetupType(stream, &iso2MagneticVectorSetupListType->MagneticVectorSetup.array [iso2MagneticVectorSetupListType_MagneticVectorSetup_currArrayIndex++]);
+ }
+ grammarID = 2250;
+ } else if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 2250:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MagneticVectorSetup), END_ELEMENT] */
+ if (iso2MagneticVectorSetupListType_MagneticVectorSetup_currArrayIndex < iso2MagneticVectorSetupListType->MagneticVectorSetup.arrayLen ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ if(errn == 0) {
+ errn = encode_iso2MagneticVectorSetupType(stream, &iso2MagneticVectorSetupListType->MagneticVectorSetup.array [iso2MagneticVectorSetupListType_MagneticVectorSetup_currArrayIndex++]);
+ }
+ grammarID = 2251;
+ } else if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 2251:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MagneticVectorSetup), END_ELEMENT] */
+ if (iso2MagneticVectorSetupListType_MagneticVectorSetup_currArrayIndex < iso2MagneticVectorSetupListType->MagneticVectorSetup.arrayLen ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ if(errn == 0) {
+ errn = encode_iso2MagneticVectorSetupType(stream, &iso2MagneticVectorSetupListType->MagneticVectorSetup.array [iso2MagneticVectorSetupListType_MagneticVectorSetup_currArrayIndex++]);
+ }
+ grammarID = 2252;
+ } else if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 2252:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MagneticVectorSetup), END_ELEMENT] */
+ if (iso2MagneticVectorSetupListType_MagneticVectorSetup_currArrayIndex < iso2MagneticVectorSetupListType->MagneticVectorSetup.arrayLen ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ if(errn == 0) {
+ errn = encode_iso2MagneticVectorSetupType(stream, &iso2MagneticVectorSetupListType->MagneticVectorSetup.array [iso2MagneticVectorSetupListType_MagneticVectorSetup_currArrayIndex++]);
+ }
+ grammarID = 2253;
+ } else if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 2253:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MagneticVectorSetup), END_ELEMENT] */
+ if (iso2MagneticVectorSetupListType_MagneticVectorSetup_currArrayIndex < iso2MagneticVectorSetupListType->MagneticVectorSetup.arrayLen ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ if(errn == 0) {
+ errn = encode_iso2MagneticVectorSetupType(stream, &iso2MagneticVectorSetupListType->MagneticVectorSetup.array [iso2MagneticVectorSetupListType_MagneticVectorSetup_currArrayIndex++]);
+ }
+ grammarID = 2254;
+ } else if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 2254:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MagneticVectorSetup), END_ELEMENT] */
+ if (iso2MagneticVectorSetupListType_MagneticVectorSetup_currArrayIndex < iso2MagneticVectorSetupListType->MagneticVectorSetup.arrayLen ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ if(errn == 0) {
+ errn = encode_iso2MagneticVectorSetupType(stream, &iso2MagneticVectorSetupListType->MagneticVectorSetup.array [iso2MagneticVectorSetupListType_MagneticVectorSetup_currArrayIndex++]);
+ }
+ grammarID = 2255;
+ } else if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 2255:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MagneticVectorSetup), END_ELEMENT] */
+ if (iso2MagneticVectorSetupListType_MagneticVectorSetup_currArrayIndex < iso2MagneticVectorSetupListType->MagneticVectorSetup.arrayLen ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ if(errn == 0) {
+ errn = encode_iso2MagneticVectorSetupType(stream, &iso2MagneticVectorSetupListType->MagneticVectorSetup.array [iso2MagneticVectorSetupListType_MagneticVectorSetup_currArrayIndex++]);
+ }
+ grammarID = 2256;
+ } else if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 2256:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MagneticVectorSetup), END_ELEMENT] */
+ if (iso2MagneticVectorSetupListType_MagneticVectorSetup_currArrayIndex < iso2MagneticVectorSetupListType->MagneticVectorSetup.arrayLen ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ if(errn == 0) {
+ errn = encode_iso2MagneticVectorSetupType(stream, &iso2MagneticVectorSetupListType->MagneticVectorSetup.array [iso2MagneticVectorSetupListType_MagneticVectorSetup_currArrayIndex++]);
+ }
+ grammarID = 2257;
+ } else if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 2257:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MagneticVectorSetup), END_ELEMENT] */
+ if (iso2MagneticVectorSetupListType_MagneticVectorSetup_currArrayIndex < iso2MagneticVectorSetupListType->MagneticVectorSetup.arrayLen ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ if(errn == 0) {
+ errn = encode_iso2MagneticVectorSetupType(stream, &iso2MagneticVectorSetupListType->MagneticVectorSetup.array [iso2MagneticVectorSetupListType_MagneticVectorSetup_currArrayIndex++]);
+ }
+ grammarID = 2258;
+ } else if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 2258:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MagneticVectorSetup), END_ELEMENT] */
+ if (iso2MagneticVectorSetupListType_MagneticVectorSetup_currArrayIndex < iso2MagneticVectorSetupListType->MagneticVectorSetup.arrayLen ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ if(errn == 0) {
+ errn = encode_iso2MagneticVectorSetupType(stream, &iso2MagneticVectorSetupListType->MagneticVectorSetup.array [iso2MagneticVectorSetupListType_MagneticVectorSetup_currArrayIndex++]);
+ }
+ grammarID = 2259;
+ } else if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 2259:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MagneticVectorSetup), END_ELEMENT] */
+ if (iso2MagneticVectorSetupListType_MagneticVectorSetup_currArrayIndex < iso2MagneticVectorSetupListType->MagneticVectorSetup.arrayLen ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ if(errn == 0) {
+ errn = encode_iso2MagneticVectorSetupType(stream, &iso2MagneticVectorSetupListType->MagneticVectorSetup.array [iso2MagneticVectorSetupListType_MagneticVectorSetup_currArrayIndex++]);
+ }
+ grammarID = 2260;
+ } else if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 2260:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MagneticVectorSetup), END_ELEMENT] */
+ if (iso2MagneticVectorSetupListType_MagneticVectorSetup_currArrayIndex < iso2MagneticVectorSetupListType->MagneticVectorSetup.arrayLen ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ if(errn == 0) {
+ errn = encode_iso2MagneticVectorSetupType(stream, &iso2MagneticVectorSetupListType->MagneticVectorSetup.array [iso2MagneticVectorSetupListType_MagneticVectorSetup_currArrayIndex++]);
+ }
+ grammarID = 2261;
+ } else if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 2261:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MagneticVectorSetup), END_ELEMENT] */
+ if (iso2MagneticVectorSetupListType_MagneticVectorSetup_currArrayIndex < iso2MagneticVectorSetupListType->MagneticVectorSetup.arrayLen ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ if(errn == 0) {
+ errn = encode_iso2MagneticVectorSetupType(stream, &iso2MagneticVectorSetupListType->MagneticVectorSetup.array [iso2MagneticVectorSetupListType_MagneticVectorSetup_currArrayIndex++]);
+ }
+ grammarID = 2262;
+ } else if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 2262:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MagneticVectorSetup), END_ELEMENT] */
+ if (iso2MagneticVectorSetupListType_MagneticVectorSetup_currArrayIndex < iso2MagneticVectorSetupListType->MagneticVectorSetup.arrayLen ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ if(errn == 0) {
+ errn = encode_iso2MagneticVectorSetupType(stream, &iso2MagneticVectorSetupListType->MagneticVectorSetup.array [iso2MagneticVectorSetupListType_MagneticVectorSetup_currArrayIndex++]);
+ }
+ grammarID = 2263;
+ } else if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 2263:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MagneticVectorSetup), END_ELEMENT] */
+ if (iso2MagneticVectorSetupListType_MagneticVectorSetup_currArrayIndex < iso2MagneticVectorSetupListType->MagneticVectorSetup.arrayLen ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ if(errn == 0) {
+ errn = encode_iso2MagneticVectorSetupType(stream, &iso2MagneticVectorSetupListType->MagneticVectorSetup.array [iso2MagneticVectorSetupListType_MagneticVectorSetup_currArrayIndex++]);
+ }
+ grammarID = 2264;
+ } else if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 2264:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MagneticVectorSetup), END_ELEMENT] */
+ if (iso2MagneticVectorSetupListType_MagneticVectorSetup_currArrayIndex < iso2MagneticVectorSetupListType->MagneticVectorSetup.arrayLen ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ if(errn == 0) {
+ errn = encode_iso2MagneticVectorSetupType(stream, &iso2MagneticVectorSetupListType->MagneticVectorSetup.array [iso2MagneticVectorSetupListType_MagneticVectorSetup_currArrayIndex++]);
+ }
+ grammarID = 2265;
+ } else if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 2265:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MagneticVectorSetup), END_ELEMENT] */
+ if (iso2MagneticVectorSetupListType_MagneticVectorSetup_currArrayIndex < iso2MagneticVectorSetupListType->MagneticVectorSetup.arrayLen ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ if(errn == 0) {
+ errn = encode_iso2MagneticVectorSetupType(stream, &iso2MagneticVectorSetupListType->MagneticVectorSetup.array [iso2MagneticVectorSetupListType_MagneticVectorSetup_currArrayIndex++]);
+ }
+ grammarID = 2266;
+ } else if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 2266:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MagneticVectorSetup), END_ELEMENT] */
+ if (iso2MagneticVectorSetupListType_MagneticVectorSetup_currArrayIndex < iso2MagneticVectorSetupListType->MagneticVectorSetup.arrayLen ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ if(errn == 0) {
+ errn = encode_iso2MagneticVectorSetupType(stream, &iso2MagneticVectorSetupListType->MagneticVectorSetup.array [iso2MagneticVectorSetupListType_MagneticVectorSetup_currArrayIndex++]);
+ }
+ grammarID = 2267;
+ } else if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 2267:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MagneticVectorSetup), END_ELEMENT] */
+ if (iso2MagneticVectorSetupListType_MagneticVectorSetup_currArrayIndex < iso2MagneticVectorSetupListType->MagneticVectorSetup.arrayLen ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ if(errn == 0) {
+ errn = encode_iso2MagneticVectorSetupType(stream, &iso2MagneticVectorSetupListType->MagneticVectorSetup.array [iso2MagneticVectorSetupListType_MagneticVectorSetup_currArrayIndex++]);
+ }
+ grammarID = 2268;
+ } else if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 2268:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MagneticVectorSetup), END_ELEMENT] */
+ if (iso2MagneticVectorSetupListType_MagneticVectorSetup_currArrayIndex < iso2MagneticVectorSetupListType->MagneticVectorSetup.arrayLen ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ if(errn == 0) {
+ errn = encode_iso2MagneticVectorSetupType(stream, &iso2MagneticVectorSetupListType->MagneticVectorSetup.array [iso2MagneticVectorSetupListType_MagneticVectorSetup_currArrayIndex++]);
+ }
+ grammarID = 2269;
+ } else if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 2269:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MagneticVectorSetup), END_ELEMENT] */
+ if (iso2MagneticVectorSetupListType_MagneticVectorSetup_currArrayIndex < iso2MagneticVectorSetupListType->MagneticVectorSetup.arrayLen ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ if(errn == 0) {
+ errn = encode_iso2MagneticVectorSetupType(stream, &iso2MagneticVectorSetupListType->MagneticVectorSetup.array [iso2MagneticVectorSetupListType_MagneticVectorSetup_currArrayIndex++]);
+ }
+ grammarID = 2270;
+ } else if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 2270:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MagneticVectorSetup), END_ELEMENT] */
+ if (iso2MagneticVectorSetupListType_MagneticVectorSetup_currArrayIndex < iso2MagneticVectorSetupListType->MagneticVectorSetup.arrayLen ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ if(errn == 0) {
+ errn = encode_iso2MagneticVectorSetupType(stream, &iso2MagneticVectorSetupListType->MagneticVectorSetup.array [iso2MagneticVectorSetupListType_MagneticVectorSetup_currArrayIndex++]);
+ }
+ grammarID = 2271;
+ } else if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 2271:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MagneticVectorSetup), END_ELEMENT] */
+ if (iso2MagneticVectorSetupListType_MagneticVectorSetup_currArrayIndex < iso2MagneticVectorSetupListType->MagneticVectorSetup.arrayLen ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ if(errn == 0) {
+ errn = encode_iso2MagneticVectorSetupType(stream, &iso2MagneticVectorSetupListType->MagneticVectorSetup.array [iso2MagneticVectorSetupListType_MagneticVectorSetup_currArrayIndex++]);
+ }
+ grammarID = 3;
+ } else if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 3:
+ /* Element[END_ELEMENT] */
+ if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 1, 0);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } 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:2016:MsgBody,PairingReqType', base type name='BodyBaseType', content type='ELEMENT', isAbstract='false', hasTypeId='false', final='0', block='0', particle='("urn:iso:15118:2:2016:MsgBody":EVProcessing,"urn:iso:15118:2:2016:MsgBody":PairingParameters{0-1})', derivedBy='EXTENSION'. */
+static int encode_iso2PairingReqType(bitstream_t* stream, struct iso2PairingReqType* iso2PairingReqType) {
+ int grammarID = 2272;
+ int done = 0;
+
+
+ while(!done) {
+ switch(grammarID) {
+ case 2272:
+ /* FirstStartTag[START_ELEMENT({urn:iso:15118:2:2016:MsgBody}EVProcessing)] */
+ 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, iso2PairingReqType->EVProcessing);
+ /* valid EE */
+ errn = encodeNBitUnsignedInteger(stream, 1, 0);
+ }
+ }
+ grammarID = 1827;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 1827:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgBody}PairingParameters), END_ELEMENT] */
+ if ( iso2PairingReqType->PairingParameters_isUsed == 1u ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ if(errn == 0) {
+ errn = encode_iso2ParameterSetType(stream, &iso2PairingReqType->PairingParameters );
+ }
+ grammarID = 3;
+ } else if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 3:
+ /* Element[END_ELEMENT] */
+ if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 1, 0);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } 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:2016:MsgBody,CurrentDemandResType', base type name='V2GResponseType', content type='ELEMENT', isAbstract='false', hasTypeId='false', final='0', block='0', particle='(("urn:iso:15118:2:2016:MsgBody":ResponseCode,"urn:iso:15118:2:2016:MsgBody":EVSEStatus{0-1}),("urn:iso:15118:2:2016:MsgBody":EVSEPresentCurrent,"urn:iso:15118:2:2016:MsgBody":EVSEPresentVoltage,"urn:iso:15118:2:2016:MsgBody":EVSEPowerLimitAchieved,"urn:iso:15118:2:2016:MsgBody":EVSECurrentLimitAchieved,"urn:iso:15118:2:2016:MsgBody":EVSEVoltageLimitAchieved,"urn:iso:15118:2:2016:MsgBody":EVSEMaximumPower{0-1},"urn:iso:15118:2:2016:MsgBody":EVSEMaximumCurrent{0-1},"urn:iso:15118:2:2016:MsgBody":EVSEMaximumVoltage{0-1},"urn:iso:15118:2:2016:MsgBody":EVSEID,"urn:iso:15118:2:2016:MsgBody":SAScheduleTupleID{0-1},"urn:iso:15118:2:2016:MsgBody":MeterInfo{0-1},"urn:iso:15118:2:2016:MsgBody":ReceiptRequired{0-1}))', derivedBy='EXTENSION'. */
+static int encode_iso2CurrentDemandResType(bitstream_t* stream, struct iso2CurrentDemandResType* iso2CurrentDemandResType) {
+ int grammarID = 2273;
+ int done = 0;
+
+
+ while(!done) {
+ switch(grammarID) {
+ case 2273:
+ /* FirstStartTag[START_ELEMENT({urn:iso:15118:2:2016:MsgBody}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, 5, iso2CurrentDemandResType->ResponseCode);
+ /* valid EE */
+ errn = encodeNBitUnsignedInteger(stream, 1, 0);
+ }
+ }
+ grammarID = 2274;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 2274:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgBody}EVSEStatus), START_ELEMENT({urn:iso:15118:2:2016:MsgBody}EVSEPresentCurrent)] */
+ if ( iso2CurrentDemandResType->EVSEStatus_isUsed == 1u ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ if(errn == 0) {
+ errn = encode_iso2EVSEStatusType(stream, &iso2CurrentDemandResType->EVSEStatus );
+ }
+ grammarID = 2275;
+ } else if ( 1 == 1 ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ errn = encode_iso2PhysicalValueType(stream, &iso2CurrentDemandResType->EVSEPresentCurrent );
+ }
+ grammarID = 2276;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 2275:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgBody}EVSEPresentCurrent)] */
+ if ( 1 == 1 ) {
+ errn = encodeNBitUnsignedInteger(stream, 1, 0);
+ if(errn == 0) {
+ errn = encode_iso2PhysicalValueType(stream, &iso2CurrentDemandResType->EVSEPresentCurrent );
+ }
+ grammarID = 2276;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 2276:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgBody}EVSEPresentVoltage)] */
+ if ( 1 == 1 ) {
+ errn = encodeNBitUnsignedInteger(stream, 1, 0);
+ if(errn == 0) {
+ errn = encode_iso2PhysicalValueType(stream, &iso2CurrentDemandResType->EVSEPresentVoltage );
+ }
+ grammarID = 2277;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 2277:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgBody}EVSEPowerLimitAchieved)] */
+ if ( 1 == 1 ) {
+ errn = encodeNBitUnsignedInteger(stream, 1, 0);
+ if(errn == 0) {
+ /* FirstStartTag[CHARACTERS[BOOLEAN]] */
+ errn = encodeNBitUnsignedInteger(stream, 1, 0);
+ if(errn == 0) {
+ errn = encodeBoolean(stream, iso2CurrentDemandResType->EVSEPowerLimitAchieved);
+ /* valid EE */
+ errn = encodeNBitUnsignedInteger(stream, 1, 0);
+ }
+ }
+ grammarID = 2278;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 2278:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgBody}EVSECurrentLimitAchieved)] */
+ if ( 1 == 1 ) {
+ errn = encodeNBitUnsignedInteger(stream, 1, 0);
+ if(errn == 0) {
+ /* FirstStartTag[CHARACTERS[BOOLEAN]] */
+ errn = encodeNBitUnsignedInteger(stream, 1, 0);
+ if(errn == 0) {
+ errn = encodeBoolean(stream, iso2CurrentDemandResType->EVSECurrentLimitAchieved);
+ /* valid EE */
+ errn = encodeNBitUnsignedInteger(stream, 1, 0);
+ }
+ }
+ grammarID = 2279;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 2279:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgBody}EVSEVoltageLimitAchieved)] */
+ if ( 1 == 1 ) {
+ errn = encodeNBitUnsignedInteger(stream, 1, 0);
+ if(errn == 0) {
+ /* FirstStartTag[CHARACTERS[BOOLEAN]] */
+ errn = encodeNBitUnsignedInteger(stream, 1, 0);
+ if(errn == 0) {
+ errn = encodeBoolean(stream, iso2CurrentDemandResType->EVSEVoltageLimitAchieved);
+ /* valid EE */
+ errn = encodeNBitUnsignedInteger(stream, 1, 0);
+ }
+ }
+ grammarID = 2280;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 2280:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgBody}EVSEMaximumPower), START_ELEMENT({urn:iso:15118:2:2016:MsgBody}EVSEMaximumCurrent), START_ELEMENT({urn:iso:15118:2:2016:MsgBody}EVSEMaximumVoltage), START_ELEMENT({urn:iso:15118:2:2016:MsgBody}EVSEID)] */
+ if ( iso2CurrentDemandResType->EVSEMaximumPower_isUsed == 1u ) {
+ errn = encodeNBitUnsignedInteger(stream, 3, 0);
+ if(errn == 0) {
+ errn = encode_iso2PhysicalValueType(stream, &iso2CurrentDemandResType->EVSEMaximumPower );
+ }
+ grammarID = 2281;
+ } else if ( iso2CurrentDemandResType->EVSEMaximumCurrent_isUsed == 1u ) {
+ errn = encodeNBitUnsignedInteger(stream, 3, 1);
+ if(errn == 0) {
+ errn = encode_iso2PhysicalValueType(stream, &iso2CurrentDemandResType->EVSEMaximumCurrent );
+ }
+ grammarID = 2282;
+ } else if ( iso2CurrentDemandResType->EVSEMaximumVoltage_isUsed == 1u ) {
+ errn = encodeNBitUnsignedInteger(stream, 3, 2);
+ if(errn == 0) {
+ errn = encode_iso2PhysicalValueType(stream, &iso2CurrentDemandResType->EVSEMaximumVoltage );
+ }
+ grammarID = 27;
+ } else if ( 1 == 1 ) {
+ errn = encodeNBitUnsignedInteger(stream, 3, 3);
+ if(errn == 0) {
+ /* FirstStartTag[CHARACTERS[STRING]] */
+ errn = encodeNBitUnsignedInteger(stream, 1, 0);
+ if(errn == 0) {
+ /* encode string as string table miss (+2 len)*/
+ errn = encodeUnsignedInteger16(stream, (uint16_t)(iso2CurrentDemandResType->EVSEID.charactersLen + 2));
+ if (errn == 0) {
+ errn = encodeCharacters(stream, iso2CurrentDemandResType->EVSEID.characters, iso2CurrentDemandResType->EVSEID.charactersLen);
+ }
+ /* valid EE */
+ errn = encodeNBitUnsignedInteger(stream, 1, 0);
+ }
+ }
+ grammarID = 28;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 2281:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgBody}EVSEMaximumCurrent), START_ELEMENT({urn:iso:15118:2:2016:MsgBody}EVSEMaximumVoltage), START_ELEMENT({urn:iso:15118:2:2016:MsgBody}EVSEID)] */
+ if ( iso2CurrentDemandResType->EVSEMaximumCurrent_isUsed == 1u ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ if(errn == 0) {
+ errn = encode_iso2PhysicalValueType(stream, &iso2CurrentDemandResType->EVSEMaximumCurrent );
+ }
+ grammarID = 2282;
+ } else if ( iso2CurrentDemandResType->EVSEMaximumVoltage_isUsed == 1u ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ errn = encode_iso2PhysicalValueType(stream, &iso2CurrentDemandResType->EVSEMaximumVoltage );
+ }
+ grammarID = 27;
+ } else if ( 1 == 1 ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 2);
+ if(errn == 0) {
+ /* FirstStartTag[CHARACTERS[STRING]] */
+ errn = encodeNBitUnsignedInteger(stream, 1, 0);
+ if(errn == 0) {
+ /* encode string as string table miss (+2 len)*/
+ errn = encodeUnsignedInteger16(stream, (uint16_t)(iso2CurrentDemandResType->EVSEID.charactersLen + 2));
+ if (errn == 0) {
+ errn = encodeCharacters(stream, iso2CurrentDemandResType->EVSEID.characters, iso2CurrentDemandResType->EVSEID.charactersLen);
+ }
+ /* valid EE */
+ errn = encodeNBitUnsignedInteger(stream, 1, 0);
+ }
+ }
+ grammarID = 28;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 2282:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgBody}EVSEMaximumVoltage), START_ELEMENT({urn:iso:15118:2:2016:MsgBody}EVSEID)] */
+ if ( iso2CurrentDemandResType->EVSEMaximumVoltage_isUsed == 1u ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ if(errn == 0) {
+ errn = encode_iso2PhysicalValueType(stream, &iso2CurrentDemandResType->EVSEMaximumVoltage );
+ }
+ grammarID = 27;
+ } else if ( 1 == 1 ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ /* FirstStartTag[CHARACTERS[STRING]] */
+ errn = encodeNBitUnsignedInteger(stream, 1, 0);
+ if(errn == 0) {
+ /* encode string as string table miss (+2 len)*/
+ errn = encodeUnsignedInteger16(stream, (uint16_t)(iso2CurrentDemandResType->EVSEID.charactersLen + 2));
+ if (errn == 0) {
+ errn = encodeCharacters(stream, iso2CurrentDemandResType->EVSEID.characters, iso2CurrentDemandResType->EVSEID.charactersLen);
+ }
+ /* valid EE */
+ errn = encodeNBitUnsignedInteger(stream, 1, 0);
+ }
+ }
+ grammarID = 28;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 27:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgBody}EVSEID)] */
+ if ( 1 == 1 ) {
+ errn = encodeNBitUnsignedInteger(stream, 1, 0);
+ if(errn == 0) {
+ /* FirstStartTag[CHARACTERS[STRING]] */
+ errn = encodeNBitUnsignedInteger(stream, 1, 0);
+ if(errn == 0) {
+ /* encode string as string table miss (+2 len)*/
+ errn = encodeUnsignedInteger16(stream, (uint16_t)(iso2CurrentDemandResType->EVSEID.charactersLen + 2));
+ if (errn == 0) {
+ errn = encodeCharacters(stream, iso2CurrentDemandResType->EVSEID.characters, iso2CurrentDemandResType->EVSEID.charactersLen);
+ }
+ /* valid EE */
+ errn = encodeNBitUnsignedInteger(stream, 1, 0);
+ }
+ }
+ grammarID = 28;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 28:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgBody}SAScheduleTupleID), START_ELEMENT({urn:iso:15118:2:2016:MsgBody}MeterInfo), START_ELEMENT({urn:iso:15118:2:2016:MsgBody}ReceiptRequired), END_ELEMENT] */
+ if ( iso2CurrentDemandResType->SAScheduleTupleID_isUsed == 1u ) {
+ errn = encodeNBitUnsignedInteger(stream, 3, 0);
+ if(errn == 0) {
+ /* FirstStartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
+ errn = encodeNBitUnsignedInteger(stream, 1, 0);
+ if(errn == 0) {
+ errn = encodeNBitUnsignedInteger(stream, 8, (uint32_t)(iso2CurrentDemandResType->SAScheduleTupleID - 1));
+ /* valid EE */
+ errn = encodeNBitUnsignedInteger(stream, 1, 0);
+ }
+ }
+ grammarID = 29;
+ } else if ( iso2CurrentDemandResType->MeterInfo_isUsed == 1u ) {
+ errn = encodeNBitUnsignedInteger(stream, 3, 1);
+ if(errn == 0) {
+ errn = encode_iso2MeterInfoType(stream, &iso2CurrentDemandResType->MeterInfo );
+ }
+ grammarID = 30;
+ } else if ( iso2CurrentDemandResType->ReceiptRequired_isUsed == 1u ) {
+ errn = encodeNBitUnsignedInteger(stream, 3, 2);
+ if(errn == 0) {
+ /* FirstStartTag[CHARACTERS[BOOLEAN]] */
+ errn = encodeNBitUnsignedInteger(stream, 1, 0);
+ if(errn == 0) {
+ errn = encodeBoolean(stream, iso2CurrentDemandResType->ReceiptRequired);
+ /* valid EE */
+ errn = encodeNBitUnsignedInteger(stream, 1, 0);
+ }
+ }
+ grammarID = 3;
+ } else if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 3, 3);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 29:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgBody}MeterInfo), START_ELEMENT({urn:iso:15118:2:2016:MsgBody}ReceiptRequired), END_ELEMENT] */
+ if ( iso2CurrentDemandResType->MeterInfo_isUsed == 1u ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ if(errn == 0) {
+ errn = encode_iso2MeterInfoType(stream, &iso2CurrentDemandResType->MeterInfo );
+ }
+ grammarID = 30;
+ } else if ( iso2CurrentDemandResType->ReceiptRequired_isUsed == 1u ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ /* FirstStartTag[CHARACTERS[BOOLEAN]] */
+ errn = encodeNBitUnsignedInteger(stream, 1, 0);
+ if(errn == 0) {
+ errn = encodeBoolean(stream, iso2CurrentDemandResType->ReceiptRequired);
+ /* valid EE */
+ errn = encodeNBitUnsignedInteger(stream, 1, 0);
+ }
+ }
+ grammarID = 3;
+ } else if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 2);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 30:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgBody}ReceiptRequired), END_ELEMENT] */
+ if ( iso2CurrentDemandResType->ReceiptRequired_isUsed == 1u ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ if(errn == 0) {
+ /* FirstStartTag[CHARACTERS[BOOLEAN]] */
+ errn = encodeNBitUnsignedInteger(stream, 1, 0);
+ if(errn == 0) {
+ errn = encodeBoolean(stream, iso2CurrentDemandResType->ReceiptRequired);
+ /* valid EE */
+ errn = encodeNBitUnsignedInteger(stream, 1, 0);
+ }
+ }
+ grammarID = 3;
+ } else if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 3:
+ /* Element[END_ELEMENT] */
+ if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 1, 0);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_GRAMMAR_ID;
+ break;
+ }
+ if(errn) {
+ done = 1;
+ }
+ }
+ return errn;
+}
+
+/* Complex type name='http://www.w3.org/2000/09/xmldsig#,X509IssuerSerialType', base type name='anyType', content type='ELEMENT', isAbstract='false', hasTypeId='false', final='0', block='0', particle='("http://www.w3.org/2000/09/xmldsig#":X509IssuerName,"http://www.w3.org/2000/09/xmldsig#":X509SerialNumber)', derivedBy='RESTRICTION'. */
+static int encode_iso2X509IssuerSerialType(bitstream_t* stream, struct iso2X509IssuerSerialType* iso2X509IssuerSerialType) {
+ int grammarID = 2283;
+ int done = 0;
+
+
+ while(!done) {
+ switch(grammarID) {
+ case 2283:
+ /* FirstStartTag[START_ELEMENT({http://www.w3.org/2000/09/xmldsig#}X509IssuerName)] */
+ if ( 1 == 1 ) {
+ errn = encodeNBitUnsignedInteger(stream, 1, 0);
+ if(errn == 0) {
+ /* First(xsi:type)StartTag[CHARACTERS[STRING]] */
+ errn = encodeNBitUnsignedInteger(stream, 1, 0);
+ if(errn == 0) {
+ /* encode string as string table miss (+2 len)*/
+ errn = encodeUnsignedInteger16(stream, (uint16_t)(iso2X509IssuerSerialType->X509IssuerName.charactersLen + 2));
+ if (errn == 0) {
+ errn = encodeCharacters(stream, iso2X509IssuerSerialType->X509IssuerName.characters, iso2X509IssuerSerialType->X509IssuerName.charactersLen);
+ }
+ /* valid EE */
+ errn = encodeNBitUnsignedInteger(stream, 1, 0);
+ }
+ }
+ grammarID = 2284;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 2284:
+ /* Element[START_ELEMENT({http://www.w3.org/2000/09/xmldsig#}X509SerialNumber)] */
+ if ( 1 == 1 ) {
+ errn = encodeNBitUnsignedInteger(stream, 1, 0);
+ if(errn == 0) {
+ /* First(xsi:type)StartTag[CHARACTERS[INTEGER]] */
+ errn = encodeNBitUnsignedInteger(stream, 1, 0);
+ if(errn == 0) {
+ errn = encodeInteger64(stream, iso2X509IssuerSerialType->X509SerialNumber);
+ /* valid EE */
+ errn = encodeNBitUnsignedInteger(stream, 1, 0);
+ }
+ }
+ grammarID = 3;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 3:
+ /* Element[END_ELEMENT] */
+ if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 1, 0);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } 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:2016:MsgBody,ChargingStatusReqType', base type name='ChargeLoopReqType', content type='ELEMENT', isAbstract='false', hasTypeId='false', final='0', block='0', particle='(("urn:iso:15118:2:2016:MsgBody":EVTargetEnergyRequest,"urn:iso:15118:2:2016:MsgBody":EVMaximumEnergyRequest{0-1},"urn:iso:15118:2:2016:MsgBody":EVMinimumEnergyRequest{0-1},"urn:iso:15118:2:2016:MsgBody":DisplayParameters{0-1}),("urn:iso:15118:2:2016:MsgBody":EVMaximumChargePower{0-1},"urn:iso:15118:2:2016:MsgBody":EVMaximumChargeCurrent{0-1},"urn:iso:15118:2:2016:MsgBody":EVMinimumChargeCurrent{0-1}))', derivedBy='EXTENSION'. */
+static int encode_iso2ChargingStatusReqType(bitstream_t* stream, struct iso2ChargingStatusReqType* iso2ChargingStatusReqType) {
+ int grammarID = 2285;
+ int done = 0;
+
+
+ while(!done) {
+ switch(grammarID) {
+ case 2285:
+ /* FirstStartTag[START_ELEMENT({urn:iso:15118:2:2016:MsgBody}EVTargetEnergyRequest)] */
+ if ( 1 == 1 ) {
+ errn = encodeNBitUnsignedInteger(stream, 1, 0);
+ if(errn == 0) {
+ errn = encode_iso2PhysicalValueType(stream, &iso2ChargingStatusReqType->EVTargetEnergyRequest );
+ }
+ grammarID = 2286;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 2286:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgBody}EVMaximumEnergyRequest), START_ELEMENT({urn:iso:15118:2:2016:MsgBody}EVMinimumEnergyRequest), START_ELEMENT({urn:iso:15118:2:2016:MsgBody}DisplayParameters), START_ELEMENT({urn:iso:15118:2:2016:MsgBody}EVMaximumChargePower), START_ELEMENT({urn:iso:15118:2:2016:MsgBody}EVMaximumChargeCurrent), START_ELEMENT({urn:iso:15118:2:2016:MsgBody}EVMinimumChargeCurrent), END_ELEMENT] */
+ if ( iso2ChargingStatusReqType->EVMaximumEnergyRequest_isUsed == 1u ) {
+ errn = encodeNBitUnsignedInteger(stream, 3, 0);
+ if(errn == 0) {
+ errn = encode_iso2PhysicalValueType(stream, &iso2ChargingStatusReqType->EVMaximumEnergyRequest );
+ }
+ grammarID = 2287;
+ } else if ( iso2ChargingStatusReqType->EVMinimumEnergyRequest_isUsed == 1u ) {
+ errn = encodeNBitUnsignedInteger(stream, 3, 1);
+ if(errn == 0) {
+ errn = encode_iso2PhysicalValueType(stream, &iso2ChargingStatusReqType->EVMinimumEnergyRequest );
+ }
+ grammarID = 2288;
+ } else if ( iso2ChargingStatusReqType->DisplayParameters_isUsed == 1u ) {
+ errn = encodeNBitUnsignedInteger(stream, 3, 2);
+ if(errn == 0) {
+ errn = encode_iso2DisplayParametersType(stream, &iso2ChargingStatusReqType->DisplayParameters );
+ }
+ grammarID = 2289;
+ } else if ( iso2ChargingStatusReqType->EVMaximumChargePower_isUsed == 1u ) {
+ errn = encodeNBitUnsignedInteger(stream, 3, 3);
+ if(errn == 0) {
+ errn = encode_iso2PhysicalValueType(stream, &iso2ChargingStatusReqType->EVMaximumChargePower );
+ }
+ grammarID = 2290;
+ } else if ( iso2ChargingStatusReqType->EVMaximumChargeCurrent_isUsed == 1u ) {
+ errn = encodeNBitUnsignedInteger(stream, 3, 4);
+ if(errn == 0) {
+ errn = encode_iso2PhysicalValueType(stream, &iso2ChargingStatusReqType->EVMaximumChargeCurrent );
+ }
+ grammarID = 2291;
+ } else if ( iso2ChargingStatusReqType->EVMinimumChargeCurrent_isUsed == 1u ) {
+ errn = encodeNBitUnsignedInteger(stream, 3, 5);
+ if(errn == 0) {
+ errn = encode_iso2PhysicalValueType(stream, &iso2ChargingStatusReqType->EVMinimumChargeCurrent );
+ }
+ grammarID = 3;
+ } else if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 3, 6);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 2287:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgBody}EVMinimumEnergyRequest), START_ELEMENT({urn:iso:15118:2:2016:MsgBody}DisplayParameters), START_ELEMENT({urn:iso:15118:2:2016:MsgBody}EVMaximumChargePower), START_ELEMENT({urn:iso:15118:2:2016:MsgBody}EVMaximumChargeCurrent), START_ELEMENT({urn:iso:15118:2:2016:MsgBody}EVMinimumChargeCurrent), END_ELEMENT] */
+ if ( iso2ChargingStatusReqType->EVMinimumEnergyRequest_isUsed == 1u ) {
+ errn = encodeNBitUnsignedInteger(stream, 3, 0);
+ if(errn == 0) {
+ errn = encode_iso2PhysicalValueType(stream, &iso2ChargingStatusReqType->EVMinimumEnergyRequest );
+ }
+ grammarID = 2288;
+ } else if ( iso2ChargingStatusReqType->DisplayParameters_isUsed == 1u ) {
+ errn = encodeNBitUnsignedInteger(stream, 3, 1);
+ if(errn == 0) {
+ errn = encode_iso2DisplayParametersType(stream, &iso2ChargingStatusReqType->DisplayParameters );
+ }
+ grammarID = 2289;
+ } else if ( iso2ChargingStatusReqType->EVMaximumChargePower_isUsed == 1u ) {
+ errn = encodeNBitUnsignedInteger(stream, 3, 2);
+ if(errn == 0) {
+ errn = encode_iso2PhysicalValueType(stream, &iso2ChargingStatusReqType->EVMaximumChargePower );
+ }
+ grammarID = 2290;
+ } else if ( iso2ChargingStatusReqType->EVMaximumChargeCurrent_isUsed == 1u ) {
+ errn = encodeNBitUnsignedInteger(stream, 3, 3);
+ if(errn == 0) {
+ errn = encode_iso2PhysicalValueType(stream, &iso2ChargingStatusReqType->EVMaximumChargeCurrent );
+ }
+ grammarID = 2291;
+ } else if ( iso2ChargingStatusReqType->EVMinimumChargeCurrent_isUsed == 1u ) {
+ errn = encodeNBitUnsignedInteger(stream, 3, 4);
+ if(errn == 0) {
+ errn = encode_iso2PhysicalValueType(stream, &iso2ChargingStatusReqType->EVMinimumChargeCurrent );
+ }
+ grammarID = 3;
+ } else if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 3, 5);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 2288:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgBody}DisplayParameters), START_ELEMENT({urn:iso:15118:2:2016:MsgBody}EVMaximumChargePower), START_ELEMENT({urn:iso:15118:2:2016:MsgBody}EVMaximumChargeCurrent), START_ELEMENT({urn:iso:15118:2:2016:MsgBody}EVMinimumChargeCurrent), END_ELEMENT] */
+ if ( iso2ChargingStatusReqType->DisplayParameters_isUsed == 1u ) {
+ errn = encodeNBitUnsignedInteger(stream, 3, 0);
+ if(errn == 0) {
+ errn = encode_iso2DisplayParametersType(stream, &iso2ChargingStatusReqType->DisplayParameters );
+ }
+ grammarID = 2289;
+ } else if ( iso2ChargingStatusReqType->EVMaximumChargePower_isUsed == 1u ) {
+ errn = encodeNBitUnsignedInteger(stream, 3, 1);
+ if(errn == 0) {
+ errn = encode_iso2PhysicalValueType(stream, &iso2ChargingStatusReqType->EVMaximumChargePower );
+ }
+ grammarID = 2290;
+ } else if ( iso2ChargingStatusReqType->EVMaximumChargeCurrent_isUsed == 1u ) {
+ errn = encodeNBitUnsignedInteger(stream, 3, 2);
+ if(errn == 0) {
+ errn = encode_iso2PhysicalValueType(stream, &iso2ChargingStatusReqType->EVMaximumChargeCurrent );
+ }
+ grammarID = 2291;
+ } else if ( iso2ChargingStatusReqType->EVMinimumChargeCurrent_isUsed == 1u ) {
+ errn = encodeNBitUnsignedInteger(stream, 3, 3);
+ if(errn == 0) {
+ errn = encode_iso2PhysicalValueType(stream, &iso2ChargingStatusReqType->EVMinimumChargeCurrent );
+ }
+ grammarID = 3;
+ } else if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 3, 4);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 2289:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgBody}EVMaximumChargePower), START_ELEMENT({urn:iso:15118:2:2016:MsgBody}EVMaximumChargeCurrent), START_ELEMENT({urn:iso:15118:2:2016:MsgBody}EVMinimumChargeCurrent), END_ELEMENT] */
+ if ( iso2ChargingStatusReqType->EVMaximumChargePower_isUsed == 1u ) {
+ errn = encodeNBitUnsignedInteger(stream, 3, 0);
+ if(errn == 0) {
+ errn = encode_iso2PhysicalValueType(stream, &iso2ChargingStatusReqType->EVMaximumChargePower );
+ }
+ grammarID = 2290;
+ } else if ( iso2ChargingStatusReqType->EVMaximumChargeCurrent_isUsed == 1u ) {
+ errn = encodeNBitUnsignedInteger(stream, 3, 1);
+ if(errn == 0) {
+ errn = encode_iso2PhysicalValueType(stream, &iso2ChargingStatusReqType->EVMaximumChargeCurrent );
+ }
+ grammarID = 2291;
+ } else if ( iso2ChargingStatusReqType->EVMinimumChargeCurrent_isUsed == 1u ) {
+ errn = encodeNBitUnsignedInteger(stream, 3, 2);
+ if(errn == 0) {
+ errn = encode_iso2PhysicalValueType(stream, &iso2ChargingStatusReqType->EVMinimumChargeCurrent );
+ }
+ grammarID = 3;
+ } else if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 3, 3);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 2290:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgBody}EVMaximumChargeCurrent), START_ELEMENT({urn:iso:15118:2:2016:MsgBody}EVMinimumChargeCurrent), END_ELEMENT] */
+ if ( iso2ChargingStatusReqType->EVMaximumChargeCurrent_isUsed == 1u ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ if(errn == 0) {
+ errn = encode_iso2PhysicalValueType(stream, &iso2ChargingStatusReqType->EVMaximumChargeCurrent );
+ }
+ grammarID = 2291;
+ } else if ( iso2ChargingStatusReqType->EVMinimumChargeCurrent_isUsed == 1u ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ errn = encode_iso2PhysicalValueType(stream, &iso2ChargingStatusReqType->EVMinimumChargeCurrent );
+ }
+ grammarID = 3;
+ } else if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 2);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 2291:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgBody}EVMinimumChargeCurrent), END_ELEMENT] */
+ if ( iso2ChargingStatusReqType->EVMinimumChargeCurrent_isUsed == 1u ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ if(errn == 0) {
+ errn = encode_iso2PhysicalValueType(stream, &iso2ChargingStatusReqType->EVMinimumChargeCurrent );
+ }
+ grammarID = 3;
+ } else if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 3:
+ /* Element[END_ELEMENT] */
+ if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 1, 0);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } 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:2016:MsgBody,CertificateInstallationResType', base type name='V2GResponseType', content type='ELEMENT', isAbstract='false', hasTypeId='false', final='0', block='0', particle='(("urn:iso:15118:2:2016:MsgBody":ResponseCode,"urn:iso:15118:2:2016:MsgBody":EVSEStatus{0-1}),("urn:iso:15118:2:2016:MsgBody":SAProvisioningCertificateChain,"urn:iso:15118:2:2016:MsgBody":ContractSignatureCertChain,"urn:iso:15118:2:2016:MsgBody":ContractSignatureEncryptedPrivateKey,"urn:iso:15118:2:2016:MsgBody":DHpublickey,"urn:iso:15118:2:2016:MsgBody":eMAID))', derivedBy='EXTENSION'. */
+static int encode_iso2CertificateInstallationResType(bitstream_t* stream, struct iso2CertificateInstallationResType* iso2CertificateInstallationResType) {
+ int grammarID = 2292;
+ int done = 0;
+
+
+ while(!done) {
+ switch(grammarID) {
+ case 2292:
+ /* FirstStartTag[START_ELEMENT({urn:iso:15118:2:2016:MsgBody}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, 5, iso2CertificateInstallationResType->ResponseCode);
+ /* valid EE */
+ errn = encodeNBitUnsignedInteger(stream, 1, 0);
+ }
+ }
+ grammarID = 2293;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 2293:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgBody}EVSEStatus), START_ELEMENT({urn:iso:15118:2:2016:MsgBody}SAProvisioningCertificateChain)] */
+ if ( iso2CertificateInstallationResType->EVSEStatus_isUsed == 1u ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ if(errn == 0) {
+ errn = encode_iso2EVSEStatusType(stream, &iso2CertificateInstallationResType->EVSEStatus );
+ }
+ grammarID = 2294;
+ } else if ( 1 == 1 ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ errn = encode_iso2CertificateChainType(stream, &iso2CertificateInstallationResType->SAProvisioningCertificateChain );
+ }
+ grammarID = 2295;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 2294:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgBody}SAProvisioningCertificateChain)] */
+ if ( 1 == 1 ) {
+ errn = encodeNBitUnsignedInteger(stream, 1, 0);
+ if(errn == 0) {
+ errn = encode_iso2CertificateChainType(stream, &iso2CertificateInstallationResType->SAProvisioningCertificateChain );
+ }
+ grammarID = 2295;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 2295:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgBody}ContractSignatureCertChain)] */
+ if ( 1 == 1 ) {
+ errn = encodeNBitUnsignedInteger(stream, 1, 0);
+ if(errn == 0) {
+ errn = encode_iso2CertificateChainType(stream, &iso2CertificateInstallationResType->ContractSignatureCertChain );
+ }
+ grammarID = 2296;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 2296:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgBody}ContractSignatureEncryptedPrivateKey)] */
+ if ( 1 == 1 ) {
+ errn = encodeNBitUnsignedInteger(stream, 1, 0);
+ if(errn == 0) {
+ errn = encode_iso2ContractSignatureEncryptedPrivateKeyType(stream, &iso2CertificateInstallationResType->ContractSignatureEncryptedPrivateKey );
+ }
+ grammarID = 2297;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 2297:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgBody}DHpublickey)] */
+ if ( 1 == 1 ) {
+ errn = encodeNBitUnsignedInteger(stream, 1, 0);
+ if(errn == 0) {
+ errn = encode_iso2DiffieHellmanPublickeyType(stream, &iso2CertificateInstallationResType->DHpublickey );
+ }
+ grammarID = 2298;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 2298:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgBody}eMAID)] */
+ if ( 1 == 1 ) {
+ errn = encodeNBitUnsignedInteger(stream, 1, 0);
+ if(errn == 0) {
+ errn = encode_iso2EMAIDType(stream, &iso2CertificateInstallationResType->eMAID );
+ }
+ grammarID = 3;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 3:
+ /* Element[END_ELEMENT] */
+ if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 1, 0);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } 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:2016:MsgDataTypes,SensorPackageType', base type name='anyType', content type='ELEMENT', isAbstract='false', hasTypeId='false', final='0', block='0', particle='("urn:iso:15118:2:2016:MsgDataTypes":PackageIndex,"urn:iso:15118:2:2016:MsgDataTypes":SensorMeasurements{1-255})', derivedBy='RESTRICTION'. */
+static int encode_iso2SensorPackageType(bitstream_t* stream, struct iso2SensorPackageType* iso2SensorPackageType) {
+ int grammarID = 2299;
+ int done = 0;
+
+ unsigned int iso2SensorPackageType_SensorMeasurements_currArrayIndex = 0;
+
+ while(!done) {
+ switch(grammarID) {
+ case 2299:
+ /* FirstStartTag[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}PackageIndex)] */
+ if ( 1 == 1 ) {
+ errn = encodeNBitUnsignedInteger(stream, 1, 0);
+ if(errn == 0) {
+ /* First(xsi:type)StartTag[CHARACTERS[UNSIGNED_INTEGER]] */
+ errn = encodeNBitUnsignedInteger(stream, 1, 0);
+ if(errn == 0) {
+ errn = encodeUnsignedInteger32(stream, iso2SensorPackageType->PackageIndex);
+ /* valid EE */
+ errn = encodeNBitUnsignedInteger(stream, 1, 0);
+ }
+ }
+ grammarID = 2300;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 2300:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorMeasurements)] */
+ if (iso2SensorPackageType_SensorMeasurements_currArrayIndex < iso2SensorPackageType->SensorMeasurements.arrayLen ) {
+ errn = encodeNBitUnsignedInteger(stream, 1, 0);
+ if(errn == 0) {
+ errn = encode_iso2SensorMeasurementsType(stream, &iso2SensorPackageType->SensorMeasurements.array [iso2SensorPackageType_SensorMeasurements_currArrayIndex++]);
+ }
+ grammarID = 2301;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 2301:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorMeasurements), END_ELEMENT] */
+ if (iso2SensorPackageType_SensorMeasurements_currArrayIndex < iso2SensorPackageType->SensorMeasurements.arrayLen ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ if(errn == 0) {
+ errn = encode_iso2SensorMeasurementsType(stream, &iso2SensorPackageType->SensorMeasurements.array [iso2SensorPackageType_SensorMeasurements_currArrayIndex++]);
+ }
+ grammarID = 2302;
+ } else if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 2302:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorMeasurements), END_ELEMENT] */
+ if (iso2SensorPackageType_SensorMeasurements_currArrayIndex < iso2SensorPackageType->SensorMeasurements.arrayLen ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ if(errn == 0) {
+ errn = encode_iso2SensorMeasurementsType(stream, &iso2SensorPackageType->SensorMeasurements.array [iso2SensorPackageType_SensorMeasurements_currArrayIndex++]);
+ }
+ grammarID = 2303;
+ } else if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 2303:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorMeasurements), END_ELEMENT] */
+ if (iso2SensorPackageType_SensorMeasurements_currArrayIndex < iso2SensorPackageType->SensorMeasurements.arrayLen ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ if(errn == 0) {
+ errn = encode_iso2SensorMeasurementsType(stream, &iso2SensorPackageType->SensorMeasurements.array [iso2SensorPackageType_SensorMeasurements_currArrayIndex++]);
+ }
+ grammarID = 2304;
+ } else if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 2304:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorMeasurements), END_ELEMENT] */
+ if (iso2SensorPackageType_SensorMeasurements_currArrayIndex < iso2SensorPackageType->SensorMeasurements.arrayLen ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ if(errn == 0) {
+ errn = encode_iso2SensorMeasurementsType(stream, &iso2SensorPackageType->SensorMeasurements.array [iso2SensorPackageType_SensorMeasurements_currArrayIndex++]);
+ }
+ grammarID = 2305;
+ } else if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 2305:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorMeasurements), END_ELEMENT] */
+ if (iso2SensorPackageType_SensorMeasurements_currArrayIndex < iso2SensorPackageType->SensorMeasurements.arrayLen ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ if(errn == 0) {
+ errn = encode_iso2SensorMeasurementsType(stream, &iso2SensorPackageType->SensorMeasurements.array [iso2SensorPackageType_SensorMeasurements_currArrayIndex++]);
+ }
+ grammarID = 2306;
+ } else if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 2306:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorMeasurements), END_ELEMENT] */
+ if (iso2SensorPackageType_SensorMeasurements_currArrayIndex < iso2SensorPackageType->SensorMeasurements.arrayLen ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ if(errn == 0) {
+ errn = encode_iso2SensorMeasurementsType(stream, &iso2SensorPackageType->SensorMeasurements.array [iso2SensorPackageType_SensorMeasurements_currArrayIndex++]);
+ }
+ grammarID = 2307;
+ } else if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 2307:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorMeasurements), END_ELEMENT] */
+ if (iso2SensorPackageType_SensorMeasurements_currArrayIndex < iso2SensorPackageType->SensorMeasurements.arrayLen ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ if(errn == 0) {
+ errn = encode_iso2SensorMeasurementsType(stream, &iso2SensorPackageType->SensorMeasurements.array [iso2SensorPackageType_SensorMeasurements_currArrayIndex++]);
+ }
+ grammarID = 2308;
+ } else if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 2308:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorMeasurements), END_ELEMENT] */
+ if (iso2SensorPackageType_SensorMeasurements_currArrayIndex < iso2SensorPackageType->SensorMeasurements.arrayLen ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ if(errn == 0) {
+ errn = encode_iso2SensorMeasurementsType(stream, &iso2SensorPackageType->SensorMeasurements.array [iso2SensorPackageType_SensorMeasurements_currArrayIndex++]);
+ }
+ grammarID = 2309;
+ } else if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 2309:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorMeasurements), END_ELEMENT] */
+ if (iso2SensorPackageType_SensorMeasurements_currArrayIndex < iso2SensorPackageType->SensorMeasurements.arrayLen ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ if(errn == 0) {
+ errn = encode_iso2SensorMeasurementsType(stream, &iso2SensorPackageType->SensorMeasurements.array [iso2SensorPackageType_SensorMeasurements_currArrayIndex++]);
+ }
+ grammarID = 2310;
+ } else if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 2310:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorMeasurements), END_ELEMENT] */
+ if (iso2SensorPackageType_SensorMeasurements_currArrayIndex < iso2SensorPackageType->SensorMeasurements.arrayLen ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ if(errn == 0) {
+ errn = encode_iso2SensorMeasurementsType(stream, &iso2SensorPackageType->SensorMeasurements.array [iso2SensorPackageType_SensorMeasurements_currArrayIndex++]);
+ }
+ grammarID = 2311;
+ } else if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 2311:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorMeasurements), END_ELEMENT] */
+ if (iso2SensorPackageType_SensorMeasurements_currArrayIndex < iso2SensorPackageType->SensorMeasurements.arrayLen ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ if(errn == 0) {
+ errn = encode_iso2SensorMeasurementsType(stream, &iso2SensorPackageType->SensorMeasurements.array [iso2SensorPackageType_SensorMeasurements_currArrayIndex++]);
+ }
+ grammarID = 2312;
+ } else if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 2312:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorMeasurements), END_ELEMENT] */
+ if (iso2SensorPackageType_SensorMeasurements_currArrayIndex < iso2SensorPackageType->SensorMeasurements.arrayLen ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ if(errn == 0) {
+ errn = encode_iso2SensorMeasurementsType(stream, &iso2SensorPackageType->SensorMeasurements.array [iso2SensorPackageType_SensorMeasurements_currArrayIndex++]);
+ }
+ grammarID = 2313;
+ } else if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 2313:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorMeasurements), END_ELEMENT] */
+ if (iso2SensorPackageType_SensorMeasurements_currArrayIndex < iso2SensorPackageType->SensorMeasurements.arrayLen ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ if(errn == 0) {
+ errn = encode_iso2SensorMeasurementsType(stream, &iso2SensorPackageType->SensorMeasurements.array [iso2SensorPackageType_SensorMeasurements_currArrayIndex++]);
+ }
+ grammarID = 2314;
+ } else if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 2314:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorMeasurements), END_ELEMENT] */
+ if (iso2SensorPackageType_SensorMeasurements_currArrayIndex < iso2SensorPackageType->SensorMeasurements.arrayLen ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ if(errn == 0) {
+ errn = encode_iso2SensorMeasurementsType(stream, &iso2SensorPackageType->SensorMeasurements.array [iso2SensorPackageType_SensorMeasurements_currArrayIndex++]);
+ }
+ grammarID = 2315;
+ } else if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 2315:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorMeasurements), END_ELEMENT] */
+ if (iso2SensorPackageType_SensorMeasurements_currArrayIndex < iso2SensorPackageType->SensorMeasurements.arrayLen ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ if(errn == 0) {
+ errn = encode_iso2SensorMeasurementsType(stream, &iso2SensorPackageType->SensorMeasurements.array [iso2SensorPackageType_SensorMeasurements_currArrayIndex++]);
+ }
+ grammarID = 2316;
+ } else if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 2316:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorMeasurements), END_ELEMENT] */
+ if (iso2SensorPackageType_SensorMeasurements_currArrayIndex < iso2SensorPackageType->SensorMeasurements.arrayLen ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ if(errn == 0) {
+ errn = encode_iso2SensorMeasurementsType(stream, &iso2SensorPackageType->SensorMeasurements.array [iso2SensorPackageType_SensorMeasurements_currArrayIndex++]);
+ }
+ grammarID = 2317;
+ } else if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 2317:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorMeasurements), END_ELEMENT] */
+ if (iso2SensorPackageType_SensorMeasurements_currArrayIndex < iso2SensorPackageType->SensorMeasurements.arrayLen ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ if(errn == 0) {
+ errn = encode_iso2SensorMeasurementsType(stream, &iso2SensorPackageType->SensorMeasurements.array [iso2SensorPackageType_SensorMeasurements_currArrayIndex++]);
+ }
+ grammarID = 2318;
+ } else if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 2318:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorMeasurements), END_ELEMENT] */
+ if (iso2SensorPackageType_SensorMeasurements_currArrayIndex < iso2SensorPackageType->SensorMeasurements.arrayLen ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ if(errn == 0) {
+ errn = encode_iso2SensorMeasurementsType(stream, &iso2SensorPackageType->SensorMeasurements.array [iso2SensorPackageType_SensorMeasurements_currArrayIndex++]);
+ }
+ grammarID = 2319;
+ } else if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 2319:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorMeasurements), END_ELEMENT] */
+ if (iso2SensorPackageType_SensorMeasurements_currArrayIndex < iso2SensorPackageType->SensorMeasurements.arrayLen ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ if(errn == 0) {
+ errn = encode_iso2SensorMeasurementsType(stream, &iso2SensorPackageType->SensorMeasurements.array [iso2SensorPackageType_SensorMeasurements_currArrayIndex++]);
+ }
+ grammarID = 2320;
+ } else if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 2320:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorMeasurements), END_ELEMENT] */
+ if (iso2SensorPackageType_SensorMeasurements_currArrayIndex < iso2SensorPackageType->SensorMeasurements.arrayLen ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ if(errn == 0) {
+ errn = encode_iso2SensorMeasurementsType(stream, &iso2SensorPackageType->SensorMeasurements.array [iso2SensorPackageType_SensorMeasurements_currArrayIndex++]);
+ }
+ grammarID = 2321;
+ } else if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 2321:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorMeasurements), END_ELEMENT] */
+ if (iso2SensorPackageType_SensorMeasurements_currArrayIndex < iso2SensorPackageType->SensorMeasurements.arrayLen ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ if(errn == 0) {
+ errn = encode_iso2SensorMeasurementsType(stream, &iso2SensorPackageType->SensorMeasurements.array [iso2SensorPackageType_SensorMeasurements_currArrayIndex++]);
+ }
+ grammarID = 2322;
+ } else if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 2322:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorMeasurements), END_ELEMENT] */
+ if (iso2SensorPackageType_SensorMeasurements_currArrayIndex < iso2SensorPackageType->SensorMeasurements.arrayLen ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ if(errn == 0) {
+ errn = encode_iso2SensorMeasurementsType(stream, &iso2SensorPackageType->SensorMeasurements.array [iso2SensorPackageType_SensorMeasurements_currArrayIndex++]);
+ }
+ grammarID = 2323;
+ } else if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 2323:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorMeasurements), END_ELEMENT] */
+ if (iso2SensorPackageType_SensorMeasurements_currArrayIndex < iso2SensorPackageType->SensorMeasurements.arrayLen ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ if(errn == 0) {
+ errn = encode_iso2SensorMeasurementsType(stream, &iso2SensorPackageType->SensorMeasurements.array [iso2SensorPackageType_SensorMeasurements_currArrayIndex++]);
+ }
+ grammarID = 2324;
+ } else if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 2324:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorMeasurements), END_ELEMENT] */
+ if (iso2SensorPackageType_SensorMeasurements_currArrayIndex < iso2SensorPackageType->SensorMeasurements.arrayLen ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ if(errn == 0) {
+ errn = encode_iso2SensorMeasurementsType(stream, &iso2SensorPackageType->SensorMeasurements.array [iso2SensorPackageType_SensorMeasurements_currArrayIndex++]);
+ }
+ grammarID = 2325;
+ } else if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 2325:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorMeasurements), END_ELEMENT] */
+ if (iso2SensorPackageType_SensorMeasurements_currArrayIndex < iso2SensorPackageType->SensorMeasurements.arrayLen ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ if(errn == 0) {
+ errn = encode_iso2SensorMeasurementsType(stream, &iso2SensorPackageType->SensorMeasurements.array [iso2SensorPackageType_SensorMeasurements_currArrayIndex++]);
+ }
+ grammarID = 2326;
+ } else if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 2326:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorMeasurements), END_ELEMENT] */
+ if (iso2SensorPackageType_SensorMeasurements_currArrayIndex < iso2SensorPackageType->SensorMeasurements.arrayLen ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ if(errn == 0) {
+ errn = encode_iso2SensorMeasurementsType(stream, &iso2SensorPackageType->SensorMeasurements.array [iso2SensorPackageType_SensorMeasurements_currArrayIndex++]);
+ }
+ grammarID = 2327;
+ } else if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 2327:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorMeasurements), END_ELEMENT] */
+ if (iso2SensorPackageType_SensorMeasurements_currArrayIndex < iso2SensorPackageType->SensorMeasurements.arrayLen ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ if(errn == 0) {
+ errn = encode_iso2SensorMeasurementsType(stream, &iso2SensorPackageType->SensorMeasurements.array [iso2SensorPackageType_SensorMeasurements_currArrayIndex++]);
+ }
+ grammarID = 2328;
+ } else if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 2328:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorMeasurements), END_ELEMENT] */
+ if (iso2SensorPackageType_SensorMeasurements_currArrayIndex < iso2SensorPackageType->SensorMeasurements.arrayLen ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ if(errn == 0) {
+ errn = encode_iso2SensorMeasurementsType(stream, &iso2SensorPackageType->SensorMeasurements.array [iso2SensorPackageType_SensorMeasurements_currArrayIndex++]);
+ }
+ grammarID = 2329;
+ } else if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 2329:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorMeasurements), END_ELEMENT] */
+ if (iso2SensorPackageType_SensorMeasurements_currArrayIndex < iso2SensorPackageType->SensorMeasurements.arrayLen ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ if(errn == 0) {
+ errn = encode_iso2SensorMeasurementsType(stream, &iso2SensorPackageType->SensorMeasurements.array [iso2SensorPackageType_SensorMeasurements_currArrayIndex++]);
+ }
+ grammarID = 2330;
+ } else if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 2330:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorMeasurements), END_ELEMENT] */
+ if (iso2SensorPackageType_SensorMeasurements_currArrayIndex < iso2SensorPackageType->SensorMeasurements.arrayLen ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ if(errn == 0) {
+ errn = encode_iso2SensorMeasurementsType(stream, &iso2SensorPackageType->SensorMeasurements.array [iso2SensorPackageType_SensorMeasurements_currArrayIndex++]);
+ }
+ grammarID = 2331;
+ } else if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 2331:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorMeasurements), END_ELEMENT] */
+ if (iso2SensorPackageType_SensorMeasurements_currArrayIndex < iso2SensorPackageType->SensorMeasurements.arrayLen ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ if(errn == 0) {
+ errn = encode_iso2SensorMeasurementsType(stream, &iso2SensorPackageType->SensorMeasurements.array [iso2SensorPackageType_SensorMeasurements_currArrayIndex++]);
+ }
+ grammarID = 2332;
+ } else if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 2332:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorMeasurements), END_ELEMENT] */
+ if (iso2SensorPackageType_SensorMeasurements_currArrayIndex < iso2SensorPackageType->SensorMeasurements.arrayLen ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ if(errn == 0) {
+ errn = encode_iso2SensorMeasurementsType(stream, &iso2SensorPackageType->SensorMeasurements.array [iso2SensorPackageType_SensorMeasurements_currArrayIndex++]);
+ }
+ grammarID = 2333;
+ } else if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 2333:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorMeasurements), END_ELEMENT] */
+ if (iso2SensorPackageType_SensorMeasurements_currArrayIndex < iso2SensorPackageType->SensorMeasurements.arrayLen ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ if(errn == 0) {
+ errn = encode_iso2SensorMeasurementsType(stream, &iso2SensorPackageType->SensorMeasurements.array [iso2SensorPackageType_SensorMeasurements_currArrayIndex++]);
+ }
+ grammarID = 2334;
+ } else if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 2334:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorMeasurements), END_ELEMENT] */
+ if (iso2SensorPackageType_SensorMeasurements_currArrayIndex < iso2SensorPackageType->SensorMeasurements.arrayLen ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ if(errn == 0) {
+ errn = encode_iso2SensorMeasurementsType(stream, &iso2SensorPackageType->SensorMeasurements.array [iso2SensorPackageType_SensorMeasurements_currArrayIndex++]);
+ }
+ grammarID = 2335;
+ } else if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 2335:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorMeasurements), END_ELEMENT] */
+ if (iso2SensorPackageType_SensorMeasurements_currArrayIndex < iso2SensorPackageType->SensorMeasurements.arrayLen ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ if(errn == 0) {
+ errn = encode_iso2SensorMeasurementsType(stream, &iso2SensorPackageType->SensorMeasurements.array [iso2SensorPackageType_SensorMeasurements_currArrayIndex++]);
+ }
+ grammarID = 2336;
+ } else if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 2336:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorMeasurements), END_ELEMENT] */
+ if (iso2SensorPackageType_SensorMeasurements_currArrayIndex < iso2SensorPackageType->SensorMeasurements.arrayLen ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ if(errn == 0) {
+ errn = encode_iso2SensorMeasurementsType(stream, &iso2SensorPackageType->SensorMeasurements.array [iso2SensorPackageType_SensorMeasurements_currArrayIndex++]);
+ }
+ grammarID = 2337;
+ } else if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 2337:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorMeasurements), END_ELEMENT] */
+ if (iso2SensorPackageType_SensorMeasurements_currArrayIndex < iso2SensorPackageType->SensorMeasurements.arrayLen ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ if(errn == 0) {
+ errn = encode_iso2SensorMeasurementsType(stream, &iso2SensorPackageType->SensorMeasurements.array [iso2SensorPackageType_SensorMeasurements_currArrayIndex++]);
+ }
+ grammarID = 2338;
+ } else if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 2338:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorMeasurements), END_ELEMENT] */
+ if (iso2SensorPackageType_SensorMeasurements_currArrayIndex < iso2SensorPackageType->SensorMeasurements.arrayLen ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ if(errn == 0) {
+ errn = encode_iso2SensorMeasurementsType(stream, &iso2SensorPackageType->SensorMeasurements.array [iso2SensorPackageType_SensorMeasurements_currArrayIndex++]);
+ }
+ grammarID = 2339;
+ } else if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 2339:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorMeasurements), END_ELEMENT] */
+ if (iso2SensorPackageType_SensorMeasurements_currArrayIndex < iso2SensorPackageType->SensorMeasurements.arrayLen ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ if(errn == 0) {
+ errn = encode_iso2SensorMeasurementsType(stream, &iso2SensorPackageType->SensorMeasurements.array [iso2SensorPackageType_SensorMeasurements_currArrayIndex++]);
+ }
+ grammarID = 2340;
+ } else if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 2340:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorMeasurements), END_ELEMENT] */
+ if (iso2SensorPackageType_SensorMeasurements_currArrayIndex < iso2SensorPackageType->SensorMeasurements.arrayLen ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ if(errn == 0) {
+ errn = encode_iso2SensorMeasurementsType(stream, &iso2SensorPackageType->SensorMeasurements.array [iso2SensorPackageType_SensorMeasurements_currArrayIndex++]);
+ }
+ grammarID = 2341;
+ } else if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 2341:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorMeasurements), END_ELEMENT] */
+ if (iso2SensorPackageType_SensorMeasurements_currArrayIndex < iso2SensorPackageType->SensorMeasurements.arrayLen ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ if(errn == 0) {
+ errn = encode_iso2SensorMeasurementsType(stream, &iso2SensorPackageType->SensorMeasurements.array [iso2SensorPackageType_SensorMeasurements_currArrayIndex++]);
+ }
+ grammarID = 2342;
+ } else if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 2342:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorMeasurements), END_ELEMENT] */
+ if (iso2SensorPackageType_SensorMeasurements_currArrayIndex < iso2SensorPackageType->SensorMeasurements.arrayLen ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ if(errn == 0) {
+ errn = encode_iso2SensorMeasurementsType(stream, &iso2SensorPackageType->SensorMeasurements.array [iso2SensorPackageType_SensorMeasurements_currArrayIndex++]);
+ }
+ grammarID = 2343;
+ } else if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 2343:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorMeasurements), END_ELEMENT] */
+ if (iso2SensorPackageType_SensorMeasurements_currArrayIndex < iso2SensorPackageType->SensorMeasurements.arrayLen ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ if(errn == 0) {
+ errn = encode_iso2SensorMeasurementsType(stream, &iso2SensorPackageType->SensorMeasurements.array [iso2SensorPackageType_SensorMeasurements_currArrayIndex++]);
+ }
+ grammarID = 2344;
+ } else if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 2344:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorMeasurements), END_ELEMENT] */
+ if (iso2SensorPackageType_SensorMeasurements_currArrayIndex < iso2SensorPackageType->SensorMeasurements.arrayLen ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ if(errn == 0) {
+ errn = encode_iso2SensorMeasurementsType(stream, &iso2SensorPackageType->SensorMeasurements.array [iso2SensorPackageType_SensorMeasurements_currArrayIndex++]);
+ }
+ grammarID = 2345;
+ } else if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 2345:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorMeasurements), END_ELEMENT] */
+ if (iso2SensorPackageType_SensorMeasurements_currArrayIndex < iso2SensorPackageType->SensorMeasurements.arrayLen ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ if(errn == 0) {
+ errn = encode_iso2SensorMeasurementsType(stream, &iso2SensorPackageType->SensorMeasurements.array [iso2SensorPackageType_SensorMeasurements_currArrayIndex++]);
+ }
+ grammarID = 2346;
+ } else if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 2346:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorMeasurements), END_ELEMENT] */
+ if (iso2SensorPackageType_SensorMeasurements_currArrayIndex < iso2SensorPackageType->SensorMeasurements.arrayLen ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ if(errn == 0) {
+ errn = encode_iso2SensorMeasurementsType(stream, &iso2SensorPackageType->SensorMeasurements.array [iso2SensorPackageType_SensorMeasurements_currArrayIndex++]);
+ }
+ grammarID = 2347;
+ } else if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 2347:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorMeasurements), END_ELEMENT] */
+ if (iso2SensorPackageType_SensorMeasurements_currArrayIndex < iso2SensorPackageType->SensorMeasurements.arrayLen ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ if(errn == 0) {
+ errn = encode_iso2SensorMeasurementsType(stream, &iso2SensorPackageType->SensorMeasurements.array [iso2SensorPackageType_SensorMeasurements_currArrayIndex++]);
+ }
+ grammarID = 2348;
+ } else if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 2348:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorMeasurements), END_ELEMENT] */
+ if (iso2SensorPackageType_SensorMeasurements_currArrayIndex < iso2SensorPackageType->SensorMeasurements.arrayLen ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ if(errn == 0) {
+ errn = encode_iso2SensorMeasurementsType(stream, &iso2SensorPackageType->SensorMeasurements.array [iso2SensorPackageType_SensorMeasurements_currArrayIndex++]);
+ }
+ grammarID = 2349;
+ } else if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 2349:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorMeasurements), END_ELEMENT] */
+ if (iso2SensorPackageType_SensorMeasurements_currArrayIndex < iso2SensorPackageType->SensorMeasurements.arrayLen ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ if(errn == 0) {
+ errn = encode_iso2SensorMeasurementsType(stream, &iso2SensorPackageType->SensorMeasurements.array [iso2SensorPackageType_SensorMeasurements_currArrayIndex++]);
+ }
+ grammarID = 2350;
+ } else if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 2350:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorMeasurements), END_ELEMENT] */
+ if (iso2SensorPackageType_SensorMeasurements_currArrayIndex < iso2SensorPackageType->SensorMeasurements.arrayLen ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ if(errn == 0) {
+ errn = encode_iso2SensorMeasurementsType(stream, &iso2SensorPackageType->SensorMeasurements.array [iso2SensorPackageType_SensorMeasurements_currArrayIndex++]);
+ }
+ grammarID = 2351;
+ } else if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 2351:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorMeasurements), END_ELEMENT] */
+ if (iso2SensorPackageType_SensorMeasurements_currArrayIndex < iso2SensorPackageType->SensorMeasurements.arrayLen ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ if(errn == 0) {
+ errn = encode_iso2SensorMeasurementsType(stream, &iso2SensorPackageType->SensorMeasurements.array [iso2SensorPackageType_SensorMeasurements_currArrayIndex++]);
+ }
+ grammarID = 2352;
+ } else if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 2352:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorMeasurements), END_ELEMENT] */
+ if (iso2SensorPackageType_SensorMeasurements_currArrayIndex < iso2SensorPackageType->SensorMeasurements.arrayLen ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ if(errn == 0) {
+ errn = encode_iso2SensorMeasurementsType(stream, &iso2SensorPackageType->SensorMeasurements.array [iso2SensorPackageType_SensorMeasurements_currArrayIndex++]);
+ }
+ grammarID = 2353;
+ } else if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 2353:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorMeasurements), END_ELEMENT] */
+ if (iso2SensorPackageType_SensorMeasurements_currArrayIndex < iso2SensorPackageType->SensorMeasurements.arrayLen ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ if(errn == 0) {
+ errn = encode_iso2SensorMeasurementsType(stream, &iso2SensorPackageType->SensorMeasurements.array [iso2SensorPackageType_SensorMeasurements_currArrayIndex++]);
+ }
+ grammarID = 2354;
+ } else if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 2354:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorMeasurements), END_ELEMENT] */
+ if (iso2SensorPackageType_SensorMeasurements_currArrayIndex < iso2SensorPackageType->SensorMeasurements.arrayLen ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ if(errn == 0) {
+ errn = encode_iso2SensorMeasurementsType(stream, &iso2SensorPackageType->SensorMeasurements.array [iso2SensorPackageType_SensorMeasurements_currArrayIndex++]);
+ }
+ grammarID = 2355;
+ } else if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 2355:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorMeasurements), END_ELEMENT] */
+ if (iso2SensorPackageType_SensorMeasurements_currArrayIndex < iso2SensorPackageType->SensorMeasurements.arrayLen ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ if(errn == 0) {
+ errn = encode_iso2SensorMeasurementsType(stream, &iso2SensorPackageType->SensorMeasurements.array [iso2SensorPackageType_SensorMeasurements_currArrayIndex++]);
+ }
+ grammarID = 2356;
+ } else if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 2356:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorMeasurements), END_ELEMENT] */
+ if (iso2SensorPackageType_SensorMeasurements_currArrayIndex < iso2SensorPackageType->SensorMeasurements.arrayLen ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ if(errn == 0) {
+ errn = encode_iso2SensorMeasurementsType(stream, &iso2SensorPackageType->SensorMeasurements.array [iso2SensorPackageType_SensorMeasurements_currArrayIndex++]);
+ }
+ grammarID = 2357;
+ } else if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 2357:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorMeasurements), END_ELEMENT] */
+ if (iso2SensorPackageType_SensorMeasurements_currArrayIndex < iso2SensorPackageType->SensorMeasurements.arrayLen ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ if(errn == 0) {
+ errn = encode_iso2SensorMeasurementsType(stream, &iso2SensorPackageType->SensorMeasurements.array [iso2SensorPackageType_SensorMeasurements_currArrayIndex++]);
+ }
+ grammarID = 2358;
+ } else if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 2358:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorMeasurements), END_ELEMENT] */
+ if (iso2SensorPackageType_SensorMeasurements_currArrayIndex < iso2SensorPackageType->SensorMeasurements.arrayLen ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ if(errn == 0) {
+ errn = encode_iso2SensorMeasurementsType(stream, &iso2SensorPackageType->SensorMeasurements.array [iso2SensorPackageType_SensorMeasurements_currArrayIndex++]);
+ }
+ grammarID = 2359;
+ } else if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 2359:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorMeasurements), END_ELEMENT] */
+ if (iso2SensorPackageType_SensorMeasurements_currArrayIndex < iso2SensorPackageType->SensorMeasurements.arrayLen ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ if(errn == 0) {
+ errn = encode_iso2SensorMeasurementsType(stream, &iso2SensorPackageType->SensorMeasurements.array [iso2SensorPackageType_SensorMeasurements_currArrayIndex++]);
+ }
+ grammarID = 2360;
+ } else if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 2360:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorMeasurements), END_ELEMENT] */
+ if (iso2SensorPackageType_SensorMeasurements_currArrayIndex < iso2SensorPackageType->SensorMeasurements.arrayLen ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ if(errn == 0) {
+ errn = encode_iso2SensorMeasurementsType(stream, &iso2SensorPackageType->SensorMeasurements.array [iso2SensorPackageType_SensorMeasurements_currArrayIndex++]);
+ }
+ grammarID = 2361;
+ } else if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 2361:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorMeasurements), END_ELEMENT] */
+ if (iso2SensorPackageType_SensorMeasurements_currArrayIndex < iso2SensorPackageType->SensorMeasurements.arrayLen ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ if(errn == 0) {
+ errn = encode_iso2SensorMeasurementsType(stream, &iso2SensorPackageType->SensorMeasurements.array [iso2SensorPackageType_SensorMeasurements_currArrayIndex++]);
+ }
+ grammarID = 2362;
+ } else if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 2362:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorMeasurements), END_ELEMENT] */
+ if (iso2SensorPackageType_SensorMeasurements_currArrayIndex < iso2SensorPackageType->SensorMeasurements.arrayLen ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ if(errn == 0) {
+ errn = encode_iso2SensorMeasurementsType(stream, &iso2SensorPackageType->SensorMeasurements.array [iso2SensorPackageType_SensorMeasurements_currArrayIndex++]);
+ }
+ grammarID = 2363;
+ } else if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 2363:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorMeasurements), END_ELEMENT] */
+ if (iso2SensorPackageType_SensorMeasurements_currArrayIndex < iso2SensorPackageType->SensorMeasurements.arrayLen ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ if(errn == 0) {
+ errn = encode_iso2SensorMeasurementsType(stream, &iso2SensorPackageType->SensorMeasurements.array [iso2SensorPackageType_SensorMeasurements_currArrayIndex++]);
+ }
+ grammarID = 2364;
+ } else if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 2364:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorMeasurements), END_ELEMENT] */
+ if (iso2SensorPackageType_SensorMeasurements_currArrayIndex < iso2SensorPackageType->SensorMeasurements.arrayLen ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ if(errn == 0) {
+ errn = encode_iso2SensorMeasurementsType(stream, &iso2SensorPackageType->SensorMeasurements.array [iso2SensorPackageType_SensorMeasurements_currArrayIndex++]);
+ }
+ grammarID = 2365;
+ } else if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 2365:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorMeasurements), END_ELEMENT] */
+ if (iso2SensorPackageType_SensorMeasurements_currArrayIndex < iso2SensorPackageType->SensorMeasurements.arrayLen ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ if(errn == 0) {
+ errn = encode_iso2SensorMeasurementsType(stream, &iso2SensorPackageType->SensorMeasurements.array [iso2SensorPackageType_SensorMeasurements_currArrayIndex++]);
+ }
+ grammarID = 2366;
+ } else if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 2366:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorMeasurements), END_ELEMENT] */
+ if (iso2SensorPackageType_SensorMeasurements_currArrayIndex < iso2SensorPackageType->SensorMeasurements.arrayLen ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ if(errn == 0) {
+ errn = encode_iso2SensorMeasurementsType(stream, &iso2SensorPackageType->SensorMeasurements.array [iso2SensorPackageType_SensorMeasurements_currArrayIndex++]);
+ }
+ grammarID = 2367;
+ } else if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 2367:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorMeasurements), END_ELEMENT] */
+ if (iso2SensorPackageType_SensorMeasurements_currArrayIndex < iso2SensorPackageType->SensorMeasurements.arrayLen ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ if(errn == 0) {
+ errn = encode_iso2SensorMeasurementsType(stream, &iso2SensorPackageType->SensorMeasurements.array [iso2SensorPackageType_SensorMeasurements_currArrayIndex++]);
+ }
+ grammarID = 2368;
+ } else if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 2368:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorMeasurements), END_ELEMENT] */
+ if (iso2SensorPackageType_SensorMeasurements_currArrayIndex < iso2SensorPackageType->SensorMeasurements.arrayLen ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ if(errn == 0) {
+ errn = encode_iso2SensorMeasurementsType(stream, &iso2SensorPackageType->SensorMeasurements.array [iso2SensorPackageType_SensorMeasurements_currArrayIndex++]);
+ }
+ grammarID = 2369;
+ } else if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 2369:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorMeasurements), END_ELEMENT] */
+ if (iso2SensorPackageType_SensorMeasurements_currArrayIndex < iso2SensorPackageType->SensorMeasurements.arrayLen ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ if(errn == 0) {
+ errn = encode_iso2SensorMeasurementsType(stream, &iso2SensorPackageType->SensorMeasurements.array [iso2SensorPackageType_SensorMeasurements_currArrayIndex++]);
+ }
+ grammarID = 2370;
+ } else if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 2370:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorMeasurements), END_ELEMENT] */
+ if (iso2SensorPackageType_SensorMeasurements_currArrayIndex < iso2SensorPackageType->SensorMeasurements.arrayLen ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ if(errn == 0) {
+ errn = encode_iso2SensorMeasurementsType(stream, &iso2SensorPackageType->SensorMeasurements.array [iso2SensorPackageType_SensorMeasurements_currArrayIndex++]);
+ }
+ grammarID = 2371;
+ } else if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 2371:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorMeasurements), END_ELEMENT] */
+ if (iso2SensorPackageType_SensorMeasurements_currArrayIndex < iso2SensorPackageType->SensorMeasurements.arrayLen ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ if(errn == 0) {
+ errn = encode_iso2SensorMeasurementsType(stream, &iso2SensorPackageType->SensorMeasurements.array [iso2SensorPackageType_SensorMeasurements_currArrayIndex++]);
+ }
+ grammarID = 2372;
+ } else if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 2372:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorMeasurements), END_ELEMENT] */
+ if (iso2SensorPackageType_SensorMeasurements_currArrayIndex < iso2SensorPackageType->SensorMeasurements.arrayLen ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ if(errn == 0) {
+ errn = encode_iso2SensorMeasurementsType(stream, &iso2SensorPackageType->SensorMeasurements.array [iso2SensorPackageType_SensorMeasurements_currArrayIndex++]);
+ }
+ grammarID = 2373;
+ } else if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 2373:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorMeasurements), END_ELEMENT] */
+ if (iso2SensorPackageType_SensorMeasurements_currArrayIndex < iso2SensorPackageType->SensorMeasurements.arrayLen ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ if(errn == 0) {
+ errn = encode_iso2SensorMeasurementsType(stream, &iso2SensorPackageType->SensorMeasurements.array [iso2SensorPackageType_SensorMeasurements_currArrayIndex++]);
+ }
+ grammarID = 2374;
+ } else if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 2374:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorMeasurements), END_ELEMENT] */
+ if (iso2SensorPackageType_SensorMeasurements_currArrayIndex < iso2SensorPackageType->SensorMeasurements.arrayLen ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ if(errn == 0) {
+ errn = encode_iso2SensorMeasurementsType(stream, &iso2SensorPackageType->SensorMeasurements.array [iso2SensorPackageType_SensorMeasurements_currArrayIndex++]);
+ }
+ grammarID = 2375;
+ } else if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 2375:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorMeasurements), END_ELEMENT] */
+ if (iso2SensorPackageType_SensorMeasurements_currArrayIndex < iso2SensorPackageType->SensorMeasurements.arrayLen ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ if(errn == 0) {
+ errn = encode_iso2SensorMeasurementsType(stream, &iso2SensorPackageType->SensorMeasurements.array [iso2SensorPackageType_SensorMeasurements_currArrayIndex++]);
+ }
+ grammarID = 2376;
+ } else if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 2376:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorMeasurements), END_ELEMENT] */
+ if (iso2SensorPackageType_SensorMeasurements_currArrayIndex < iso2SensorPackageType->SensorMeasurements.arrayLen ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ if(errn == 0) {
+ errn = encode_iso2SensorMeasurementsType(stream, &iso2SensorPackageType->SensorMeasurements.array [iso2SensorPackageType_SensorMeasurements_currArrayIndex++]);
+ }
+ grammarID = 2377;
+ } else if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 2377:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorMeasurements), END_ELEMENT] */
+ if (iso2SensorPackageType_SensorMeasurements_currArrayIndex < iso2SensorPackageType->SensorMeasurements.arrayLen ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ if(errn == 0) {
+ errn = encode_iso2SensorMeasurementsType(stream, &iso2SensorPackageType->SensorMeasurements.array [iso2SensorPackageType_SensorMeasurements_currArrayIndex++]);
+ }
+ grammarID = 2378;
+ } else if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 2378:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorMeasurements), END_ELEMENT] */
+ if (iso2SensorPackageType_SensorMeasurements_currArrayIndex < iso2SensorPackageType->SensorMeasurements.arrayLen ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ if(errn == 0) {
+ errn = encode_iso2SensorMeasurementsType(stream, &iso2SensorPackageType->SensorMeasurements.array [iso2SensorPackageType_SensorMeasurements_currArrayIndex++]);
+ }
+ grammarID = 2379;
+ } else if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 2379:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorMeasurements), END_ELEMENT] */
+ if (iso2SensorPackageType_SensorMeasurements_currArrayIndex < iso2SensorPackageType->SensorMeasurements.arrayLen ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ if(errn == 0) {
+ errn = encode_iso2SensorMeasurementsType(stream, &iso2SensorPackageType->SensorMeasurements.array [iso2SensorPackageType_SensorMeasurements_currArrayIndex++]);
+ }
+ grammarID = 2380;
+ } else if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 2380:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorMeasurements), END_ELEMENT] */
+ if (iso2SensorPackageType_SensorMeasurements_currArrayIndex < iso2SensorPackageType->SensorMeasurements.arrayLen ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ if(errn == 0) {
+ errn = encode_iso2SensorMeasurementsType(stream, &iso2SensorPackageType->SensorMeasurements.array [iso2SensorPackageType_SensorMeasurements_currArrayIndex++]);
+ }
+ grammarID = 2381;
+ } else if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 2381:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorMeasurements), END_ELEMENT] */
+ if (iso2SensorPackageType_SensorMeasurements_currArrayIndex < iso2SensorPackageType->SensorMeasurements.arrayLen ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ if(errn == 0) {
+ errn = encode_iso2SensorMeasurementsType(stream, &iso2SensorPackageType->SensorMeasurements.array [iso2SensorPackageType_SensorMeasurements_currArrayIndex++]);
+ }
+ grammarID = 2382;
+ } else if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 2382:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorMeasurements), END_ELEMENT] */
+ if (iso2SensorPackageType_SensorMeasurements_currArrayIndex < iso2SensorPackageType->SensorMeasurements.arrayLen ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ if(errn == 0) {
+ errn = encode_iso2SensorMeasurementsType(stream, &iso2SensorPackageType->SensorMeasurements.array [iso2SensorPackageType_SensorMeasurements_currArrayIndex++]);
+ }
+ grammarID = 2383;
+ } else if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 2383:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorMeasurements), END_ELEMENT] */
+ if (iso2SensorPackageType_SensorMeasurements_currArrayIndex < iso2SensorPackageType->SensorMeasurements.arrayLen ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ if(errn == 0) {
+ errn = encode_iso2SensorMeasurementsType(stream, &iso2SensorPackageType->SensorMeasurements.array [iso2SensorPackageType_SensorMeasurements_currArrayIndex++]);
+ }
+ grammarID = 2384;
+ } else if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 2384:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorMeasurements), END_ELEMENT] */
+ if (iso2SensorPackageType_SensorMeasurements_currArrayIndex < iso2SensorPackageType->SensorMeasurements.arrayLen ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ if(errn == 0) {
+ errn = encode_iso2SensorMeasurementsType(stream, &iso2SensorPackageType->SensorMeasurements.array [iso2SensorPackageType_SensorMeasurements_currArrayIndex++]);
+ }
+ grammarID = 2385;
+ } else if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 2385:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorMeasurements), END_ELEMENT] */
+ if (iso2SensorPackageType_SensorMeasurements_currArrayIndex < iso2SensorPackageType->SensorMeasurements.arrayLen ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ if(errn == 0) {
+ errn = encode_iso2SensorMeasurementsType(stream, &iso2SensorPackageType->SensorMeasurements.array [iso2SensorPackageType_SensorMeasurements_currArrayIndex++]);
+ }
+ grammarID = 2386;
+ } else if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 2386:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorMeasurements), END_ELEMENT] */
+ if (iso2SensorPackageType_SensorMeasurements_currArrayIndex < iso2SensorPackageType->SensorMeasurements.arrayLen ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ if(errn == 0) {
+ errn = encode_iso2SensorMeasurementsType(stream, &iso2SensorPackageType->SensorMeasurements.array [iso2SensorPackageType_SensorMeasurements_currArrayIndex++]);
+ }
+ grammarID = 2387;
+ } else if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 2387:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorMeasurements), END_ELEMENT] */
+ if (iso2SensorPackageType_SensorMeasurements_currArrayIndex < iso2SensorPackageType->SensorMeasurements.arrayLen ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ if(errn == 0) {
+ errn = encode_iso2SensorMeasurementsType(stream, &iso2SensorPackageType->SensorMeasurements.array [iso2SensorPackageType_SensorMeasurements_currArrayIndex++]);
+ }
+ grammarID = 2388;
+ } else if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 2388:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorMeasurements), END_ELEMENT] */
+ if (iso2SensorPackageType_SensorMeasurements_currArrayIndex < iso2SensorPackageType->SensorMeasurements.arrayLen ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ if(errn == 0) {
+ errn = encode_iso2SensorMeasurementsType(stream, &iso2SensorPackageType->SensorMeasurements.array [iso2SensorPackageType_SensorMeasurements_currArrayIndex++]);
+ }
+ grammarID = 2389;
+ } else if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 2389:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorMeasurements), END_ELEMENT] */
+ if (iso2SensorPackageType_SensorMeasurements_currArrayIndex < iso2SensorPackageType->SensorMeasurements.arrayLen ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ if(errn == 0) {
+ errn = encode_iso2SensorMeasurementsType(stream, &iso2SensorPackageType->SensorMeasurements.array [iso2SensorPackageType_SensorMeasurements_currArrayIndex++]);
+ }
+ grammarID = 2390;
+ } else if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 2390:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorMeasurements), END_ELEMENT] */
+ if (iso2SensorPackageType_SensorMeasurements_currArrayIndex < iso2SensorPackageType->SensorMeasurements.arrayLen ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ if(errn == 0) {
+ errn = encode_iso2SensorMeasurementsType(stream, &iso2SensorPackageType->SensorMeasurements.array [iso2SensorPackageType_SensorMeasurements_currArrayIndex++]);
+ }
+ grammarID = 2391;
+ } else if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 2391:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorMeasurements), END_ELEMENT] */
+ if (iso2SensorPackageType_SensorMeasurements_currArrayIndex < iso2SensorPackageType->SensorMeasurements.arrayLen ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ if(errn == 0) {
+ errn = encode_iso2SensorMeasurementsType(stream, &iso2SensorPackageType->SensorMeasurements.array [iso2SensorPackageType_SensorMeasurements_currArrayIndex++]);
+ }
+ grammarID = 2392;
+ } else if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 2392:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorMeasurements), END_ELEMENT] */
+ if (iso2SensorPackageType_SensorMeasurements_currArrayIndex < iso2SensorPackageType->SensorMeasurements.arrayLen ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ if(errn == 0) {
+ errn = encode_iso2SensorMeasurementsType(stream, &iso2SensorPackageType->SensorMeasurements.array [iso2SensorPackageType_SensorMeasurements_currArrayIndex++]);
+ }
+ grammarID = 2393;
+ } else if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 2393:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorMeasurements), END_ELEMENT] */
+ if (iso2SensorPackageType_SensorMeasurements_currArrayIndex < iso2SensorPackageType->SensorMeasurements.arrayLen ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ if(errn == 0) {
+ errn = encode_iso2SensorMeasurementsType(stream, &iso2SensorPackageType->SensorMeasurements.array [iso2SensorPackageType_SensorMeasurements_currArrayIndex++]);
+ }
+ grammarID = 2394;
+ } else if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 2394:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorMeasurements), END_ELEMENT] */
+ if (iso2SensorPackageType_SensorMeasurements_currArrayIndex < iso2SensorPackageType->SensorMeasurements.arrayLen ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ if(errn == 0) {
+ errn = encode_iso2SensorMeasurementsType(stream, &iso2SensorPackageType->SensorMeasurements.array [iso2SensorPackageType_SensorMeasurements_currArrayIndex++]);
+ }
+ grammarID = 2395;
+ } else if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 2395:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorMeasurements), END_ELEMENT] */
+ if (iso2SensorPackageType_SensorMeasurements_currArrayIndex < iso2SensorPackageType->SensorMeasurements.arrayLen ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ if(errn == 0) {
+ errn = encode_iso2SensorMeasurementsType(stream, &iso2SensorPackageType->SensorMeasurements.array [iso2SensorPackageType_SensorMeasurements_currArrayIndex++]);
+ }
+ grammarID = 2396;
+ } else if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 2396:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorMeasurements), END_ELEMENT] */
+ if (iso2SensorPackageType_SensorMeasurements_currArrayIndex < iso2SensorPackageType->SensorMeasurements.arrayLen ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ if(errn == 0) {
+ errn = encode_iso2SensorMeasurementsType(stream, &iso2SensorPackageType->SensorMeasurements.array [iso2SensorPackageType_SensorMeasurements_currArrayIndex++]);
+ }
+ grammarID = 2397;
+ } else if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 2397:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorMeasurements), END_ELEMENT] */
+ if (iso2SensorPackageType_SensorMeasurements_currArrayIndex < iso2SensorPackageType->SensorMeasurements.arrayLen ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ if(errn == 0) {
+ errn = encode_iso2SensorMeasurementsType(stream, &iso2SensorPackageType->SensorMeasurements.array [iso2SensorPackageType_SensorMeasurements_currArrayIndex++]);
+ }
+ grammarID = 2398;
+ } else if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 2398:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorMeasurements), END_ELEMENT] */
+ if (iso2SensorPackageType_SensorMeasurements_currArrayIndex < iso2SensorPackageType->SensorMeasurements.arrayLen ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ if(errn == 0) {
+ errn = encode_iso2SensorMeasurementsType(stream, &iso2SensorPackageType->SensorMeasurements.array [iso2SensorPackageType_SensorMeasurements_currArrayIndex++]);
+ }
+ grammarID = 2399;
+ } else if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 2399:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorMeasurements), END_ELEMENT] */
+ if (iso2SensorPackageType_SensorMeasurements_currArrayIndex < iso2SensorPackageType->SensorMeasurements.arrayLen ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ if(errn == 0) {
+ errn = encode_iso2SensorMeasurementsType(stream, &iso2SensorPackageType->SensorMeasurements.array [iso2SensorPackageType_SensorMeasurements_currArrayIndex++]);
+ }
+ grammarID = 2400;
+ } else if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 2400:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorMeasurements), END_ELEMENT] */
+ if (iso2SensorPackageType_SensorMeasurements_currArrayIndex < iso2SensorPackageType->SensorMeasurements.arrayLen ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ if(errn == 0) {
+ errn = encode_iso2SensorMeasurementsType(stream, &iso2SensorPackageType->SensorMeasurements.array [iso2SensorPackageType_SensorMeasurements_currArrayIndex++]);
+ }
+ grammarID = 2401;
+ } else if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 2401:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorMeasurements), END_ELEMENT] */
+ if (iso2SensorPackageType_SensorMeasurements_currArrayIndex < iso2SensorPackageType->SensorMeasurements.arrayLen ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ if(errn == 0) {
+ errn = encode_iso2SensorMeasurementsType(stream, &iso2SensorPackageType->SensorMeasurements.array [iso2SensorPackageType_SensorMeasurements_currArrayIndex++]);
+ }
+ grammarID = 2402;
+ } else if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 2402:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorMeasurements), END_ELEMENT] */
+ if (iso2SensorPackageType_SensorMeasurements_currArrayIndex < iso2SensorPackageType->SensorMeasurements.arrayLen ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ if(errn == 0) {
+ errn = encode_iso2SensorMeasurementsType(stream, &iso2SensorPackageType->SensorMeasurements.array [iso2SensorPackageType_SensorMeasurements_currArrayIndex++]);
+ }
+ grammarID = 2403;
+ } else if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 2403:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorMeasurements), END_ELEMENT] */
+ if (iso2SensorPackageType_SensorMeasurements_currArrayIndex < iso2SensorPackageType->SensorMeasurements.arrayLen ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ if(errn == 0) {
+ errn = encode_iso2SensorMeasurementsType(stream, &iso2SensorPackageType->SensorMeasurements.array [iso2SensorPackageType_SensorMeasurements_currArrayIndex++]);
+ }
+ grammarID = 2404;
+ } else if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 2404:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorMeasurements), END_ELEMENT] */
+ if (iso2SensorPackageType_SensorMeasurements_currArrayIndex < iso2SensorPackageType->SensorMeasurements.arrayLen ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ if(errn == 0) {
+ errn = encode_iso2SensorMeasurementsType(stream, &iso2SensorPackageType->SensorMeasurements.array [iso2SensorPackageType_SensorMeasurements_currArrayIndex++]);
+ }
+ grammarID = 2405;
+ } else if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 2405:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorMeasurements), END_ELEMENT] */
+ if (iso2SensorPackageType_SensorMeasurements_currArrayIndex < iso2SensorPackageType->SensorMeasurements.arrayLen ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ if(errn == 0) {
+ errn = encode_iso2SensorMeasurementsType(stream, &iso2SensorPackageType->SensorMeasurements.array [iso2SensorPackageType_SensorMeasurements_currArrayIndex++]);
+ }
+ grammarID = 2406;
+ } else if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 2406:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorMeasurements), END_ELEMENT] */
+ if (iso2SensorPackageType_SensorMeasurements_currArrayIndex < iso2SensorPackageType->SensorMeasurements.arrayLen ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ if(errn == 0) {
+ errn = encode_iso2SensorMeasurementsType(stream, &iso2SensorPackageType->SensorMeasurements.array [iso2SensorPackageType_SensorMeasurements_currArrayIndex++]);
+ }
+ grammarID = 2407;
+ } else if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 2407:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorMeasurements), END_ELEMENT] */
+ if (iso2SensorPackageType_SensorMeasurements_currArrayIndex < iso2SensorPackageType->SensorMeasurements.arrayLen ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ if(errn == 0) {
+ errn = encode_iso2SensorMeasurementsType(stream, &iso2SensorPackageType->SensorMeasurements.array [iso2SensorPackageType_SensorMeasurements_currArrayIndex++]);
+ }
+ grammarID = 2408;
+ } else if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 2408:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorMeasurements), END_ELEMENT] */
+ if (iso2SensorPackageType_SensorMeasurements_currArrayIndex < iso2SensorPackageType->SensorMeasurements.arrayLen ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ if(errn == 0) {
+ errn = encode_iso2SensorMeasurementsType(stream, &iso2SensorPackageType->SensorMeasurements.array [iso2SensorPackageType_SensorMeasurements_currArrayIndex++]);
+ }
+ grammarID = 2409;
+ } else if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 2409:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorMeasurements), END_ELEMENT] */
+ if (iso2SensorPackageType_SensorMeasurements_currArrayIndex < iso2SensorPackageType->SensorMeasurements.arrayLen ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ if(errn == 0) {
+ errn = encode_iso2SensorMeasurementsType(stream, &iso2SensorPackageType->SensorMeasurements.array [iso2SensorPackageType_SensorMeasurements_currArrayIndex++]);
+ }
+ grammarID = 2410;
+ } else if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 2410:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorMeasurements), END_ELEMENT] */
+ if (iso2SensorPackageType_SensorMeasurements_currArrayIndex < iso2SensorPackageType->SensorMeasurements.arrayLen ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ if(errn == 0) {
+ errn = encode_iso2SensorMeasurementsType(stream, &iso2SensorPackageType->SensorMeasurements.array [iso2SensorPackageType_SensorMeasurements_currArrayIndex++]);
+ }
+ grammarID = 2411;
+ } else if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 2411:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorMeasurements), END_ELEMENT] */
+ if (iso2SensorPackageType_SensorMeasurements_currArrayIndex < iso2SensorPackageType->SensorMeasurements.arrayLen ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ if(errn == 0) {
+ errn = encode_iso2SensorMeasurementsType(stream, &iso2SensorPackageType->SensorMeasurements.array [iso2SensorPackageType_SensorMeasurements_currArrayIndex++]);
+ }
+ grammarID = 2412;
+ } else if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 2412:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorMeasurements), END_ELEMENT] */
+ if (iso2SensorPackageType_SensorMeasurements_currArrayIndex < iso2SensorPackageType->SensorMeasurements.arrayLen ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ if(errn == 0) {
+ errn = encode_iso2SensorMeasurementsType(stream, &iso2SensorPackageType->SensorMeasurements.array [iso2SensorPackageType_SensorMeasurements_currArrayIndex++]);
+ }
+ grammarID = 2413;
+ } else if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 2413:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorMeasurements), END_ELEMENT] */
+ if (iso2SensorPackageType_SensorMeasurements_currArrayIndex < iso2SensorPackageType->SensorMeasurements.arrayLen ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ if(errn == 0) {
+ errn = encode_iso2SensorMeasurementsType(stream, &iso2SensorPackageType->SensorMeasurements.array [iso2SensorPackageType_SensorMeasurements_currArrayIndex++]);
+ }
+ grammarID = 2414;
+ } else if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 2414:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorMeasurements), END_ELEMENT] */
+ if (iso2SensorPackageType_SensorMeasurements_currArrayIndex < iso2SensorPackageType->SensorMeasurements.arrayLen ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ if(errn == 0) {
+ errn = encode_iso2SensorMeasurementsType(stream, &iso2SensorPackageType->SensorMeasurements.array [iso2SensorPackageType_SensorMeasurements_currArrayIndex++]);
+ }
+ grammarID = 2415;
+ } else if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 2415:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorMeasurements), END_ELEMENT] */
+ if (iso2SensorPackageType_SensorMeasurements_currArrayIndex < iso2SensorPackageType->SensorMeasurements.arrayLen ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ if(errn == 0) {
+ errn = encode_iso2SensorMeasurementsType(stream, &iso2SensorPackageType->SensorMeasurements.array [iso2SensorPackageType_SensorMeasurements_currArrayIndex++]);
+ }
+ grammarID = 2416;
+ } else if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 2416:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorMeasurements), END_ELEMENT] */
+ if (iso2SensorPackageType_SensorMeasurements_currArrayIndex < iso2SensorPackageType->SensorMeasurements.arrayLen ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ if(errn == 0) {
+ errn = encode_iso2SensorMeasurementsType(stream, &iso2SensorPackageType->SensorMeasurements.array [iso2SensorPackageType_SensorMeasurements_currArrayIndex++]);
+ }
+ grammarID = 2417;
+ } else if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 2417:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorMeasurements), END_ELEMENT] */
+ if (iso2SensorPackageType_SensorMeasurements_currArrayIndex < iso2SensorPackageType->SensorMeasurements.arrayLen ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ if(errn == 0) {
+ errn = encode_iso2SensorMeasurementsType(stream, &iso2SensorPackageType->SensorMeasurements.array [iso2SensorPackageType_SensorMeasurements_currArrayIndex++]);
+ }
+ grammarID = 2418;
+ } else if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 2418:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorMeasurements), END_ELEMENT] */
+ if (iso2SensorPackageType_SensorMeasurements_currArrayIndex < iso2SensorPackageType->SensorMeasurements.arrayLen ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ if(errn == 0) {
+ errn = encode_iso2SensorMeasurementsType(stream, &iso2SensorPackageType->SensorMeasurements.array [iso2SensorPackageType_SensorMeasurements_currArrayIndex++]);
+ }
+ grammarID = 2419;
+ } else if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 2419:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorMeasurements), END_ELEMENT] */
+ if (iso2SensorPackageType_SensorMeasurements_currArrayIndex < iso2SensorPackageType->SensorMeasurements.arrayLen ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ if(errn == 0) {
+ errn = encode_iso2SensorMeasurementsType(stream, &iso2SensorPackageType->SensorMeasurements.array [iso2SensorPackageType_SensorMeasurements_currArrayIndex++]);
+ }
+ grammarID = 2420;
+ } else if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 2420:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorMeasurements), END_ELEMENT] */
+ if (iso2SensorPackageType_SensorMeasurements_currArrayIndex < iso2SensorPackageType->SensorMeasurements.arrayLen ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ if(errn == 0) {
+ errn = encode_iso2SensorMeasurementsType(stream, &iso2SensorPackageType->SensorMeasurements.array [iso2SensorPackageType_SensorMeasurements_currArrayIndex++]);
+ }
+ grammarID = 2421;
+ } else if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 2421:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorMeasurements), END_ELEMENT] */
+ if (iso2SensorPackageType_SensorMeasurements_currArrayIndex < iso2SensorPackageType->SensorMeasurements.arrayLen ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ if(errn == 0) {
+ errn = encode_iso2SensorMeasurementsType(stream, &iso2SensorPackageType->SensorMeasurements.array [iso2SensorPackageType_SensorMeasurements_currArrayIndex++]);
+ }
+ grammarID = 2422;
+ } else if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 2422:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorMeasurements), END_ELEMENT] */
+ if (iso2SensorPackageType_SensorMeasurements_currArrayIndex < iso2SensorPackageType->SensorMeasurements.arrayLen ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ if(errn == 0) {
+ errn = encode_iso2SensorMeasurementsType(stream, &iso2SensorPackageType->SensorMeasurements.array [iso2SensorPackageType_SensorMeasurements_currArrayIndex++]);
+ }
+ grammarID = 2423;
+ } else if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 2423:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorMeasurements), END_ELEMENT] */
+ if (iso2SensorPackageType_SensorMeasurements_currArrayIndex < iso2SensorPackageType->SensorMeasurements.arrayLen ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ if(errn == 0) {
+ errn = encode_iso2SensorMeasurementsType(stream, &iso2SensorPackageType->SensorMeasurements.array [iso2SensorPackageType_SensorMeasurements_currArrayIndex++]);
+ }
+ grammarID = 2424;
+ } else if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 2424:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorMeasurements), END_ELEMENT] */
+ if (iso2SensorPackageType_SensorMeasurements_currArrayIndex < iso2SensorPackageType->SensorMeasurements.arrayLen ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ if(errn == 0) {
+ errn = encode_iso2SensorMeasurementsType(stream, &iso2SensorPackageType->SensorMeasurements.array [iso2SensorPackageType_SensorMeasurements_currArrayIndex++]);
+ }
+ grammarID = 2425;
+ } else if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 2425:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorMeasurements), END_ELEMENT] */
+ if (iso2SensorPackageType_SensorMeasurements_currArrayIndex < iso2SensorPackageType->SensorMeasurements.arrayLen ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ if(errn == 0) {
+ errn = encode_iso2SensorMeasurementsType(stream, &iso2SensorPackageType->SensorMeasurements.array [iso2SensorPackageType_SensorMeasurements_currArrayIndex++]);
+ }
+ grammarID = 2426;
+ } else if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 2426:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorMeasurements), END_ELEMENT] */
+ if (iso2SensorPackageType_SensorMeasurements_currArrayIndex < iso2SensorPackageType->SensorMeasurements.arrayLen ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ if(errn == 0) {
+ errn = encode_iso2SensorMeasurementsType(stream, &iso2SensorPackageType->SensorMeasurements.array [iso2SensorPackageType_SensorMeasurements_currArrayIndex++]);
+ }
+ grammarID = 2427;
+ } else if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 2427:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorMeasurements), END_ELEMENT] */
+ if (iso2SensorPackageType_SensorMeasurements_currArrayIndex < iso2SensorPackageType->SensorMeasurements.arrayLen ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ if(errn == 0) {
+ errn = encode_iso2SensorMeasurementsType(stream, &iso2SensorPackageType->SensorMeasurements.array [iso2SensorPackageType_SensorMeasurements_currArrayIndex++]);
+ }
+ grammarID = 2428;
+ } else if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 2428:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorMeasurements), END_ELEMENT] */
+ if (iso2SensorPackageType_SensorMeasurements_currArrayIndex < iso2SensorPackageType->SensorMeasurements.arrayLen ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ if(errn == 0) {
+ errn = encode_iso2SensorMeasurementsType(stream, &iso2SensorPackageType->SensorMeasurements.array [iso2SensorPackageType_SensorMeasurements_currArrayIndex++]);
+ }
+ grammarID = 2429;
+ } else if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 2429:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorMeasurements), END_ELEMENT] */
+ if (iso2SensorPackageType_SensorMeasurements_currArrayIndex < iso2SensorPackageType->SensorMeasurements.arrayLen ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ if(errn == 0) {
+ errn = encode_iso2SensorMeasurementsType(stream, &iso2SensorPackageType->SensorMeasurements.array [iso2SensorPackageType_SensorMeasurements_currArrayIndex++]);
+ }
+ grammarID = 2430;
+ } else if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 2430:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorMeasurements), END_ELEMENT] */
+ if (iso2SensorPackageType_SensorMeasurements_currArrayIndex < iso2SensorPackageType->SensorMeasurements.arrayLen ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ if(errn == 0) {
+ errn = encode_iso2SensorMeasurementsType(stream, &iso2SensorPackageType->SensorMeasurements.array [iso2SensorPackageType_SensorMeasurements_currArrayIndex++]);
+ }
+ grammarID = 2431;
+ } else if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 2431:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorMeasurements), END_ELEMENT] */
+ if (iso2SensorPackageType_SensorMeasurements_currArrayIndex < iso2SensorPackageType->SensorMeasurements.arrayLen ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ if(errn == 0) {
+ errn = encode_iso2SensorMeasurementsType(stream, &iso2SensorPackageType->SensorMeasurements.array [iso2SensorPackageType_SensorMeasurements_currArrayIndex++]);
+ }
+ grammarID = 2432;
+ } else if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 2432:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorMeasurements), END_ELEMENT] */
+ if (iso2SensorPackageType_SensorMeasurements_currArrayIndex < iso2SensorPackageType->SensorMeasurements.arrayLen ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ if(errn == 0) {
+ errn = encode_iso2SensorMeasurementsType(stream, &iso2SensorPackageType->SensorMeasurements.array [iso2SensorPackageType_SensorMeasurements_currArrayIndex++]);
+ }
+ grammarID = 2433;
+ } else if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 2433:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorMeasurements), END_ELEMENT] */
+ if (iso2SensorPackageType_SensorMeasurements_currArrayIndex < iso2SensorPackageType->SensorMeasurements.arrayLen ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ if(errn == 0) {
+ errn = encode_iso2SensorMeasurementsType(stream, &iso2SensorPackageType->SensorMeasurements.array [iso2SensorPackageType_SensorMeasurements_currArrayIndex++]);
+ }
+ grammarID = 2434;
+ } else if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 2434:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorMeasurements), END_ELEMENT] */
+ if (iso2SensorPackageType_SensorMeasurements_currArrayIndex < iso2SensorPackageType->SensorMeasurements.arrayLen ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ if(errn == 0) {
+ errn = encode_iso2SensorMeasurementsType(stream, &iso2SensorPackageType->SensorMeasurements.array [iso2SensorPackageType_SensorMeasurements_currArrayIndex++]);
+ }
+ grammarID = 2435;
+ } else if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 2435:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorMeasurements), END_ELEMENT] */
+ if (iso2SensorPackageType_SensorMeasurements_currArrayIndex < iso2SensorPackageType->SensorMeasurements.arrayLen ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ if(errn == 0) {
+ errn = encode_iso2SensorMeasurementsType(stream, &iso2SensorPackageType->SensorMeasurements.array [iso2SensorPackageType_SensorMeasurements_currArrayIndex++]);
+ }
+ grammarID = 2436;
+ } else if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 2436:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorMeasurements), END_ELEMENT] */
+ if (iso2SensorPackageType_SensorMeasurements_currArrayIndex < iso2SensorPackageType->SensorMeasurements.arrayLen ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ if(errn == 0) {
+ errn = encode_iso2SensorMeasurementsType(stream, &iso2SensorPackageType->SensorMeasurements.array [iso2SensorPackageType_SensorMeasurements_currArrayIndex++]);
+ }
+ grammarID = 2437;
+ } else if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 2437:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorMeasurements), END_ELEMENT] */
+ if (iso2SensorPackageType_SensorMeasurements_currArrayIndex < iso2SensorPackageType->SensorMeasurements.arrayLen ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ if(errn == 0) {
+ errn = encode_iso2SensorMeasurementsType(stream, &iso2SensorPackageType->SensorMeasurements.array [iso2SensorPackageType_SensorMeasurements_currArrayIndex++]);
+ }
+ grammarID = 2438;
+ } else if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 2438:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorMeasurements), END_ELEMENT] */
+ if (iso2SensorPackageType_SensorMeasurements_currArrayIndex < iso2SensorPackageType->SensorMeasurements.arrayLen ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ if(errn == 0) {
+ errn = encode_iso2SensorMeasurementsType(stream, &iso2SensorPackageType->SensorMeasurements.array [iso2SensorPackageType_SensorMeasurements_currArrayIndex++]);
+ }
+ grammarID = 2439;
+ } else if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 2439:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorMeasurements), END_ELEMENT] */
+ if (iso2SensorPackageType_SensorMeasurements_currArrayIndex < iso2SensorPackageType->SensorMeasurements.arrayLen ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ if(errn == 0) {
+ errn = encode_iso2SensorMeasurementsType(stream, &iso2SensorPackageType->SensorMeasurements.array [iso2SensorPackageType_SensorMeasurements_currArrayIndex++]);
+ }
+ grammarID = 2440;
+ } else if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 2440:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorMeasurements), END_ELEMENT] */
+ if (iso2SensorPackageType_SensorMeasurements_currArrayIndex < iso2SensorPackageType->SensorMeasurements.arrayLen ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ if(errn == 0) {
+ errn = encode_iso2SensorMeasurementsType(stream, &iso2SensorPackageType->SensorMeasurements.array [iso2SensorPackageType_SensorMeasurements_currArrayIndex++]);
+ }
+ grammarID = 2441;
+ } else if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 2441:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorMeasurements), END_ELEMENT] */
+ if (iso2SensorPackageType_SensorMeasurements_currArrayIndex < iso2SensorPackageType->SensorMeasurements.arrayLen ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ if(errn == 0) {
+ errn = encode_iso2SensorMeasurementsType(stream, &iso2SensorPackageType->SensorMeasurements.array [iso2SensorPackageType_SensorMeasurements_currArrayIndex++]);
+ }
+ grammarID = 2442;
+ } else if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 2442:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorMeasurements), END_ELEMENT] */
+ if (iso2SensorPackageType_SensorMeasurements_currArrayIndex < iso2SensorPackageType->SensorMeasurements.arrayLen ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ if(errn == 0) {
+ errn = encode_iso2SensorMeasurementsType(stream, &iso2SensorPackageType->SensorMeasurements.array [iso2SensorPackageType_SensorMeasurements_currArrayIndex++]);
+ }
+ grammarID = 2443;
+ } else if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 2443:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorMeasurements), END_ELEMENT] */
+ if (iso2SensorPackageType_SensorMeasurements_currArrayIndex < iso2SensorPackageType->SensorMeasurements.arrayLen ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ if(errn == 0) {
+ errn = encode_iso2SensorMeasurementsType(stream, &iso2SensorPackageType->SensorMeasurements.array [iso2SensorPackageType_SensorMeasurements_currArrayIndex++]);
+ }
+ grammarID = 2444;
+ } else if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 2444:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorMeasurements), END_ELEMENT] */
+ if (iso2SensorPackageType_SensorMeasurements_currArrayIndex < iso2SensorPackageType->SensorMeasurements.arrayLen ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ if(errn == 0) {
+ errn = encode_iso2SensorMeasurementsType(stream, &iso2SensorPackageType->SensorMeasurements.array [iso2SensorPackageType_SensorMeasurements_currArrayIndex++]);
+ }
+ grammarID = 2445;
+ } else if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 2445:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorMeasurements), END_ELEMENT] */
+ if (iso2SensorPackageType_SensorMeasurements_currArrayIndex < iso2SensorPackageType->SensorMeasurements.arrayLen ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ if(errn == 0) {
+ errn = encode_iso2SensorMeasurementsType(stream, &iso2SensorPackageType->SensorMeasurements.array [iso2SensorPackageType_SensorMeasurements_currArrayIndex++]);
+ }
+ grammarID = 2446;
+ } else if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 2446:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorMeasurements), END_ELEMENT] */
+ if (iso2SensorPackageType_SensorMeasurements_currArrayIndex < iso2SensorPackageType->SensorMeasurements.arrayLen ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ if(errn == 0) {
+ errn = encode_iso2SensorMeasurementsType(stream, &iso2SensorPackageType->SensorMeasurements.array [iso2SensorPackageType_SensorMeasurements_currArrayIndex++]);
+ }
+ grammarID = 2447;
+ } else if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 2447:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorMeasurements), END_ELEMENT] */
+ if (iso2SensorPackageType_SensorMeasurements_currArrayIndex < iso2SensorPackageType->SensorMeasurements.arrayLen ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ if(errn == 0) {
+ errn = encode_iso2SensorMeasurementsType(stream, &iso2SensorPackageType->SensorMeasurements.array [iso2SensorPackageType_SensorMeasurements_currArrayIndex++]);
+ }
+ grammarID = 2448;
+ } else if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 2448:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorMeasurements), END_ELEMENT] */
+ if (iso2SensorPackageType_SensorMeasurements_currArrayIndex < iso2SensorPackageType->SensorMeasurements.arrayLen ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ if(errn == 0) {
+ errn = encode_iso2SensorMeasurementsType(stream, &iso2SensorPackageType->SensorMeasurements.array [iso2SensorPackageType_SensorMeasurements_currArrayIndex++]);
+ }
+ grammarID = 2449;
+ } else if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 2449:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorMeasurements), END_ELEMENT] */
+ if (iso2SensorPackageType_SensorMeasurements_currArrayIndex < iso2SensorPackageType->SensorMeasurements.arrayLen ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ if(errn == 0) {
+ errn = encode_iso2SensorMeasurementsType(stream, &iso2SensorPackageType->SensorMeasurements.array [iso2SensorPackageType_SensorMeasurements_currArrayIndex++]);
+ }
+ grammarID = 2450;
+ } else if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 2450:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorMeasurements), END_ELEMENT] */
+ if (iso2SensorPackageType_SensorMeasurements_currArrayIndex < iso2SensorPackageType->SensorMeasurements.arrayLen ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ if(errn == 0) {
+ errn = encode_iso2SensorMeasurementsType(stream, &iso2SensorPackageType->SensorMeasurements.array [iso2SensorPackageType_SensorMeasurements_currArrayIndex++]);
+ }
+ grammarID = 2451;
+ } else if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 2451:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorMeasurements), END_ELEMENT] */
+ if (iso2SensorPackageType_SensorMeasurements_currArrayIndex < iso2SensorPackageType->SensorMeasurements.arrayLen ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ if(errn == 0) {
+ errn = encode_iso2SensorMeasurementsType(stream, &iso2SensorPackageType->SensorMeasurements.array [iso2SensorPackageType_SensorMeasurements_currArrayIndex++]);
+ }
+ grammarID = 2452;
+ } else if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 2452:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorMeasurements), END_ELEMENT] */
+ if (iso2SensorPackageType_SensorMeasurements_currArrayIndex < iso2SensorPackageType->SensorMeasurements.arrayLen ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ if(errn == 0) {
+ errn = encode_iso2SensorMeasurementsType(stream, &iso2SensorPackageType->SensorMeasurements.array [iso2SensorPackageType_SensorMeasurements_currArrayIndex++]);
+ }
+ grammarID = 2453;
+ } else if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 2453:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorMeasurements), END_ELEMENT] */
+ if (iso2SensorPackageType_SensorMeasurements_currArrayIndex < iso2SensorPackageType->SensorMeasurements.arrayLen ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ if(errn == 0) {
+ errn = encode_iso2SensorMeasurementsType(stream, &iso2SensorPackageType->SensorMeasurements.array [iso2SensorPackageType_SensorMeasurements_currArrayIndex++]);
+ }
+ grammarID = 2454;
+ } else if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 2454:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorMeasurements), END_ELEMENT] */
+ if (iso2SensorPackageType_SensorMeasurements_currArrayIndex < iso2SensorPackageType->SensorMeasurements.arrayLen ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ if(errn == 0) {
+ errn = encode_iso2SensorMeasurementsType(stream, &iso2SensorPackageType->SensorMeasurements.array [iso2SensorPackageType_SensorMeasurements_currArrayIndex++]);
+ }
+ grammarID = 2455;
+ } else if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 2455:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorMeasurements), END_ELEMENT] */
+ if (iso2SensorPackageType_SensorMeasurements_currArrayIndex < iso2SensorPackageType->SensorMeasurements.arrayLen ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ if(errn == 0) {
+ errn = encode_iso2SensorMeasurementsType(stream, &iso2SensorPackageType->SensorMeasurements.array [iso2SensorPackageType_SensorMeasurements_currArrayIndex++]);
+ }
+ grammarID = 2456;
+ } else if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 2456:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorMeasurements), END_ELEMENT] */
+ if (iso2SensorPackageType_SensorMeasurements_currArrayIndex < iso2SensorPackageType->SensorMeasurements.arrayLen ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ if(errn == 0) {
+ errn = encode_iso2SensorMeasurementsType(stream, &iso2SensorPackageType->SensorMeasurements.array [iso2SensorPackageType_SensorMeasurements_currArrayIndex++]);
+ }
+ grammarID = 2457;
+ } else if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 2457:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorMeasurements), END_ELEMENT] */
+ if (iso2SensorPackageType_SensorMeasurements_currArrayIndex < iso2SensorPackageType->SensorMeasurements.arrayLen ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ if(errn == 0) {
+ errn = encode_iso2SensorMeasurementsType(stream, &iso2SensorPackageType->SensorMeasurements.array [iso2SensorPackageType_SensorMeasurements_currArrayIndex++]);
+ }
+ grammarID = 2458;
+ } else if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 2458:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorMeasurements), END_ELEMENT] */
+ if (iso2SensorPackageType_SensorMeasurements_currArrayIndex < iso2SensorPackageType->SensorMeasurements.arrayLen ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ if(errn == 0) {
+ errn = encode_iso2SensorMeasurementsType(stream, &iso2SensorPackageType->SensorMeasurements.array [iso2SensorPackageType_SensorMeasurements_currArrayIndex++]);
+ }
+ grammarID = 2459;
+ } else if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 2459:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorMeasurements), END_ELEMENT] */
+ if (iso2SensorPackageType_SensorMeasurements_currArrayIndex < iso2SensorPackageType->SensorMeasurements.arrayLen ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ if(errn == 0) {
+ errn = encode_iso2SensorMeasurementsType(stream, &iso2SensorPackageType->SensorMeasurements.array [iso2SensorPackageType_SensorMeasurements_currArrayIndex++]);
+ }
+ grammarID = 2460;
+ } else if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 2460:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorMeasurements), END_ELEMENT] */
+ if (iso2SensorPackageType_SensorMeasurements_currArrayIndex < iso2SensorPackageType->SensorMeasurements.arrayLen ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ if(errn == 0) {
+ errn = encode_iso2SensorMeasurementsType(stream, &iso2SensorPackageType->SensorMeasurements.array [iso2SensorPackageType_SensorMeasurements_currArrayIndex++]);
+ }
+ grammarID = 2461;
+ } else if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 2461:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorMeasurements), END_ELEMENT] */
+ if (iso2SensorPackageType_SensorMeasurements_currArrayIndex < iso2SensorPackageType->SensorMeasurements.arrayLen ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ if(errn == 0) {
+ errn = encode_iso2SensorMeasurementsType(stream, &iso2SensorPackageType->SensorMeasurements.array [iso2SensorPackageType_SensorMeasurements_currArrayIndex++]);
+ }
+ grammarID = 2462;
+ } else if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 2462:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorMeasurements), END_ELEMENT] */
+ if (iso2SensorPackageType_SensorMeasurements_currArrayIndex < iso2SensorPackageType->SensorMeasurements.arrayLen ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ if(errn == 0) {
+ errn = encode_iso2SensorMeasurementsType(stream, &iso2SensorPackageType->SensorMeasurements.array [iso2SensorPackageType_SensorMeasurements_currArrayIndex++]);
+ }
+ grammarID = 2463;
+ } else if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 2463:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorMeasurements), END_ELEMENT] */
+ if (iso2SensorPackageType_SensorMeasurements_currArrayIndex < iso2SensorPackageType->SensorMeasurements.arrayLen ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ if(errn == 0) {
+ errn = encode_iso2SensorMeasurementsType(stream, &iso2SensorPackageType->SensorMeasurements.array [iso2SensorPackageType_SensorMeasurements_currArrayIndex++]);
+ }
+ grammarID = 2464;
+ } else if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 2464:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorMeasurements), END_ELEMENT] */
+ if (iso2SensorPackageType_SensorMeasurements_currArrayIndex < iso2SensorPackageType->SensorMeasurements.arrayLen ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ if(errn == 0) {
+ errn = encode_iso2SensorMeasurementsType(stream, &iso2SensorPackageType->SensorMeasurements.array [iso2SensorPackageType_SensorMeasurements_currArrayIndex++]);
+ }
+ grammarID = 2465;
+ } else if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 2465:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorMeasurements), END_ELEMENT] */
+ if (iso2SensorPackageType_SensorMeasurements_currArrayIndex < iso2SensorPackageType->SensorMeasurements.arrayLen ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ if(errn == 0) {
+ errn = encode_iso2SensorMeasurementsType(stream, &iso2SensorPackageType->SensorMeasurements.array [iso2SensorPackageType_SensorMeasurements_currArrayIndex++]);
+ }
+ grammarID = 2466;
+ } else if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 2466:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorMeasurements), END_ELEMENT] */
+ if (iso2SensorPackageType_SensorMeasurements_currArrayIndex < iso2SensorPackageType->SensorMeasurements.arrayLen ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ if(errn == 0) {
+ errn = encode_iso2SensorMeasurementsType(stream, &iso2SensorPackageType->SensorMeasurements.array [iso2SensorPackageType_SensorMeasurements_currArrayIndex++]);
+ }
+ grammarID = 2467;
+ } else if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 2467:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorMeasurements), END_ELEMENT] */
+ if (iso2SensorPackageType_SensorMeasurements_currArrayIndex < iso2SensorPackageType->SensorMeasurements.arrayLen ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ if(errn == 0) {
+ errn = encode_iso2SensorMeasurementsType(stream, &iso2SensorPackageType->SensorMeasurements.array [iso2SensorPackageType_SensorMeasurements_currArrayIndex++]);
+ }
+ grammarID = 2468;
+ } else if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 2468:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorMeasurements), END_ELEMENT] */
+ if (iso2SensorPackageType_SensorMeasurements_currArrayIndex < iso2SensorPackageType->SensorMeasurements.arrayLen ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ if(errn == 0) {
+ errn = encode_iso2SensorMeasurementsType(stream, &iso2SensorPackageType->SensorMeasurements.array [iso2SensorPackageType_SensorMeasurements_currArrayIndex++]);
+ }
+ grammarID = 2469;
+ } else if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 2469:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorMeasurements), END_ELEMENT] */
+ if (iso2SensorPackageType_SensorMeasurements_currArrayIndex < iso2SensorPackageType->SensorMeasurements.arrayLen ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ if(errn == 0) {
+ errn = encode_iso2SensorMeasurementsType(stream, &iso2SensorPackageType->SensorMeasurements.array [iso2SensorPackageType_SensorMeasurements_currArrayIndex++]);
+ }
+ grammarID = 2470;
+ } else if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 2470:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorMeasurements), END_ELEMENT] */
+ if (iso2SensorPackageType_SensorMeasurements_currArrayIndex < iso2SensorPackageType->SensorMeasurements.arrayLen ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ if(errn == 0) {
+ errn = encode_iso2SensorMeasurementsType(stream, &iso2SensorPackageType->SensorMeasurements.array [iso2SensorPackageType_SensorMeasurements_currArrayIndex++]);
+ }
+ grammarID = 2471;
+ } else if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 2471:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorMeasurements), END_ELEMENT] */
+ if (iso2SensorPackageType_SensorMeasurements_currArrayIndex < iso2SensorPackageType->SensorMeasurements.arrayLen ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ if(errn == 0) {
+ errn = encode_iso2SensorMeasurementsType(stream, &iso2SensorPackageType->SensorMeasurements.array [iso2SensorPackageType_SensorMeasurements_currArrayIndex++]);
+ }
+ grammarID = 2472;
+ } else if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 2472:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorMeasurements), END_ELEMENT] */
+ if (iso2SensorPackageType_SensorMeasurements_currArrayIndex < iso2SensorPackageType->SensorMeasurements.arrayLen ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ if(errn == 0) {
+ errn = encode_iso2SensorMeasurementsType(stream, &iso2SensorPackageType->SensorMeasurements.array [iso2SensorPackageType_SensorMeasurements_currArrayIndex++]);
+ }
+ grammarID = 2473;
+ } else if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 2473:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorMeasurements), END_ELEMENT] */
+ if (iso2SensorPackageType_SensorMeasurements_currArrayIndex < iso2SensorPackageType->SensorMeasurements.arrayLen ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ if(errn == 0) {
+ errn = encode_iso2SensorMeasurementsType(stream, &iso2SensorPackageType->SensorMeasurements.array [iso2SensorPackageType_SensorMeasurements_currArrayIndex++]);
+ }
+ grammarID = 2474;
+ } else if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 2474:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorMeasurements), END_ELEMENT] */
+ if (iso2SensorPackageType_SensorMeasurements_currArrayIndex < iso2SensorPackageType->SensorMeasurements.arrayLen ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ if(errn == 0) {
+ errn = encode_iso2SensorMeasurementsType(stream, &iso2SensorPackageType->SensorMeasurements.array [iso2SensorPackageType_SensorMeasurements_currArrayIndex++]);
+ }
+ grammarID = 2475;
+ } else if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 2475:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorMeasurements), END_ELEMENT] */
+ if (iso2SensorPackageType_SensorMeasurements_currArrayIndex < iso2SensorPackageType->SensorMeasurements.arrayLen ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ if(errn == 0) {
+ errn = encode_iso2SensorMeasurementsType(stream, &iso2SensorPackageType->SensorMeasurements.array [iso2SensorPackageType_SensorMeasurements_currArrayIndex++]);
+ }
+ grammarID = 2476;
+ } else if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 2476:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorMeasurements), END_ELEMENT] */
+ if (iso2SensorPackageType_SensorMeasurements_currArrayIndex < iso2SensorPackageType->SensorMeasurements.arrayLen ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ if(errn == 0) {
+ errn = encode_iso2SensorMeasurementsType(stream, &iso2SensorPackageType->SensorMeasurements.array [iso2SensorPackageType_SensorMeasurements_currArrayIndex++]);
+ }
+ grammarID = 2477;
+ } else if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 2477:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorMeasurements), END_ELEMENT] */
+ if (iso2SensorPackageType_SensorMeasurements_currArrayIndex < iso2SensorPackageType->SensorMeasurements.arrayLen ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ if(errn == 0) {
+ errn = encode_iso2SensorMeasurementsType(stream, &iso2SensorPackageType->SensorMeasurements.array [iso2SensorPackageType_SensorMeasurements_currArrayIndex++]);
+ }
+ grammarID = 2478;
+ } else if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 2478:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorMeasurements), END_ELEMENT] */
+ if (iso2SensorPackageType_SensorMeasurements_currArrayIndex < iso2SensorPackageType->SensorMeasurements.arrayLen ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ if(errn == 0) {
+ errn = encode_iso2SensorMeasurementsType(stream, &iso2SensorPackageType->SensorMeasurements.array [iso2SensorPackageType_SensorMeasurements_currArrayIndex++]);
+ }
+ grammarID = 2479;
+ } else if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 2479:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorMeasurements), END_ELEMENT] */
+ if (iso2SensorPackageType_SensorMeasurements_currArrayIndex < iso2SensorPackageType->SensorMeasurements.arrayLen ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ if(errn == 0) {
+ errn = encode_iso2SensorMeasurementsType(stream, &iso2SensorPackageType->SensorMeasurements.array [iso2SensorPackageType_SensorMeasurements_currArrayIndex++]);
+ }
+ grammarID = 2480;
+ } else if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 2480:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorMeasurements), END_ELEMENT] */
+ if (iso2SensorPackageType_SensorMeasurements_currArrayIndex < iso2SensorPackageType->SensorMeasurements.arrayLen ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ if(errn == 0) {
+ errn = encode_iso2SensorMeasurementsType(stream, &iso2SensorPackageType->SensorMeasurements.array [iso2SensorPackageType_SensorMeasurements_currArrayIndex++]);
+ }
+ grammarID = 2481;
+ } else if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 2481:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorMeasurements), END_ELEMENT] */
+ if (iso2SensorPackageType_SensorMeasurements_currArrayIndex < iso2SensorPackageType->SensorMeasurements.arrayLen ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ if(errn == 0) {
+ errn = encode_iso2SensorMeasurementsType(stream, &iso2SensorPackageType->SensorMeasurements.array [iso2SensorPackageType_SensorMeasurements_currArrayIndex++]);
+ }
+ grammarID = 2482;
+ } else if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 2482:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorMeasurements), END_ELEMENT] */
+ if (iso2SensorPackageType_SensorMeasurements_currArrayIndex < iso2SensorPackageType->SensorMeasurements.arrayLen ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ if(errn == 0) {
+ errn = encode_iso2SensorMeasurementsType(stream, &iso2SensorPackageType->SensorMeasurements.array [iso2SensorPackageType_SensorMeasurements_currArrayIndex++]);
+ }
+ grammarID = 2483;
+ } else if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 2483:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorMeasurements), END_ELEMENT] */
+ if (iso2SensorPackageType_SensorMeasurements_currArrayIndex < iso2SensorPackageType->SensorMeasurements.arrayLen ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ if(errn == 0) {
+ errn = encode_iso2SensorMeasurementsType(stream, &iso2SensorPackageType->SensorMeasurements.array [iso2SensorPackageType_SensorMeasurements_currArrayIndex++]);
+ }
+ grammarID = 2484;
+ } else if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 2484:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorMeasurements), END_ELEMENT] */
+ if (iso2SensorPackageType_SensorMeasurements_currArrayIndex < iso2SensorPackageType->SensorMeasurements.arrayLen ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ if(errn == 0) {
+ errn = encode_iso2SensorMeasurementsType(stream, &iso2SensorPackageType->SensorMeasurements.array [iso2SensorPackageType_SensorMeasurements_currArrayIndex++]);
+ }
+ grammarID = 2485;
+ } else if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 2485:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorMeasurements), END_ELEMENT] */
+ if (iso2SensorPackageType_SensorMeasurements_currArrayIndex < iso2SensorPackageType->SensorMeasurements.arrayLen ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ if(errn == 0) {
+ errn = encode_iso2SensorMeasurementsType(stream, &iso2SensorPackageType->SensorMeasurements.array [iso2SensorPackageType_SensorMeasurements_currArrayIndex++]);
+ }
+ grammarID = 2486;
+ } else if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 2486:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorMeasurements), END_ELEMENT] */
+ if (iso2SensorPackageType_SensorMeasurements_currArrayIndex < iso2SensorPackageType->SensorMeasurements.arrayLen ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ if(errn == 0) {
+ errn = encode_iso2SensorMeasurementsType(stream, &iso2SensorPackageType->SensorMeasurements.array [iso2SensorPackageType_SensorMeasurements_currArrayIndex++]);
+ }
+ grammarID = 2487;
+ } else if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 2487:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorMeasurements), END_ELEMENT] */
+ if (iso2SensorPackageType_SensorMeasurements_currArrayIndex < iso2SensorPackageType->SensorMeasurements.arrayLen ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ if(errn == 0) {
+ errn = encode_iso2SensorMeasurementsType(stream, &iso2SensorPackageType->SensorMeasurements.array [iso2SensorPackageType_SensorMeasurements_currArrayIndex++]);
+ }
+ grammarID = 2488;
+ } else if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 2488:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorMeasurements), END_ELEMENT] */
+ if (iso2SensorPackageType_SensorMeasurements_currArrayIndex < iso2SensorPackageType->SensorMeasurements.arrayLen ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ if(errn == 0) {
+ errn = encode_iso2SensorMeasurementsType(stream, &iso2SensorPackageType->SensorMeasurements.array [iso2SensorPackageType_SensorMeasurements_currArrayIndex++]);
+ }
+ grammarID = 2489;
+ } else if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 2489:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorMeasurements), END_ELEMENT] */
+ if (iso2SensorPackageType_SensorMeasurements_currArrayIndex < iso2SensorPackageType->SensorMeasurements.arrayLen ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ if(errn == 0) {
+ errn = encode_iso2SensorMeasurementsType(stream, &iso2SensorPackageType->SensorMeasurements.array [iso2SensorPackageType_SensorMeasurements_currArrayIndex++]);
+ }
+ grammarID = 2490;
+ } else if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 2490:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorMeasurements), END_ELEMENT] */
+ if (iso2SensorPackageType_SensorMeasurements_currArrayIndex < iso2SensorPackageType->SensorMeasurements.arrayLen ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ if(errn == 0) {
+ errn = encode_iso2SensorMeasurementsType(stream, &iso2SensorPackageType->SensorMeasurements.array [iso2SensorPackageType_SensorMeasurements_currArrayIndex++]);
+ }
+ grammarID = 2491;
+ } else if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 2491:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorMeasurements), END_ELEMENT] */
+ if (iso2SensorPackageType_SensorMeasurements_currArrayIndex < iso2SensorPackageType->SensorMeasurements.arrayLen ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ if(errn == 0) {
+ errn = encode_iso2SensorMeasurementsType(stream, &iso2SensorPackageType->SensorMeasurements.array [iso2SensorPackageType_SensorMeasurements_currArrayIndex++]);
+ }
+ grammarID = 2492;
+ } else if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 2492:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorMeasurements), END_ELEMENT] */
+ if (iso2SensorPackageType_SensorMeasurements_currArrayIndex < iso2SensorPackageType->SensorMeasurements.arrayLen ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ if(errn == 0) {
+ errn = encode_iso2SensorMeasurementsType(stream, &iso2SensorPackageType->SensorMeasurements.array [iso2SensorPackageType_SensorMeasurements_currArrayIndex++]);
+ }
+ grammarID = 2493;
+ } else if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 2493:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorMeasurements), END_ELEMENT] */
+ if (iso2SensorPackageType_SensorMeasurements_currArrayIndex < iso2SensorPackageType->SensorMeasurements.arrayLen ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ if(errn == 0) {
+ errn = encode_iso2SensorMeasurementsType(stream, &iso2SensorPackageType->SensorMeasurements.array [iso2SensorPackageType_SensorMeasurements_currArrayIndex++]);
+ }
+ grammarID = 2494;
+ } else if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 2494:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorMeasurements), END_ELEMENT] */
+ if (iso2SensorPackageType_SensorMeasurements_currArrayIndex < iso2SensorPackageType->SensorMeasurements.arrayLen ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ if(errn == 0) {
+ errn = encode_iso2SensorMeasurementsType(stream, &iso2SensorPackageType->SensorMeasurements.array [iso2SensorPackageType_SensorMeasurements_currArrayIndex++]);
+ }
+ grammarID = 2495;
+ } else if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 2495:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorMeasurements), END_ELEMENT] */
+ if (iso2SensorPackageType_SensorMeasurements_currArrayIndex < iso2SensorPackageType->SensorMeasurements.arrayLen ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ if(errn == 0) {
+ errn = encode_iso2SensorMeasurementsType(stream, &iso2SensorPackageType->SensorMeasurements.array [iso2SensorPackageType_SensorMeasurements_currArrayIndex++]);
+ }
+ grammarID = 2496;
+ } else if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 2496:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorMeasurements), END_ELEMENT] */
+ if (iso2SensorPackageType_SensorMeasurements_currArrayIndex < iso2SensorPackageType->SensorMeasurements.arrayLen ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ if(errn == 0) {
+ errn = encode_iso2SensorMeasurementsType(stream, &iso2SensorPackageType->SensorMeasurements.array [iso2SensorPackageType_SensorMeasurements_currArrayIndex++]);
+ }
+ grammarID = 2497;
+ } else if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 2497:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorMeasurements), END_ELEMENT] */
+ if (iso2SensorPackageType_SensorMeasurements_currArrayIndex < iso2SensorPackageType->SensorMeasurements.arrayLen ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ if(errn == 0) {
+ errn = encode_iso2SensorMeasurementsType(stream, &iso2SensorPackageType->SensorMeasurements.array [iso2SensorPackageType_SensorMeasurements_currArrayIndex++]);
+ }
+ grammarID = 2498;
+ } else if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 2498:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorMeasurements), END_ELEMENT] */
+ if (iso2SensorPackageType_SensorMeasurements_currArrayIndex < iso2SensorPackageType->SensorMeasurements.arrayLen ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ if(errn == 0) {
+ errn = encode_iso2SensorMeasurementsType(stream, &iso2SensorPackageType->SensorMeasurements.array [iso2SensorPackageType_SensorMeasurements_currArrayIndex++]);
+ }
+ grammarID = 2499;
+ } else if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 2499:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorMeasurements), END_ELEMENT] */
+ if (iso2SensorPackageType_SensorMeasurements_currArrayIndex < iso2SensorPackageType->SensorMeasurements.arrayLen ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ if(errn == 0) {
+ errn = encode_iso2SensorMeasurementsType(stream, &iso2SensorPackageType->SensorMeasurements.array [iso2SensorPackageType_SensorMeasurements_currArrayIndex++]);
+ }
+ grammarID = 2500;
+ } else if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 2500:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorMeasurements), END_ELEMENT] */
+ if (iso2SensorPackageType_SensorMeasurements_currArrayIndex < iso2SensorPackageType->SensorMeasurements.arrayLen ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ if(errn == 0) {
+ errn = encode_iso2SensorMeasurementsType(stream, &iso2SensorPackageType->SensorMeasurements.array [iso2SensorPackageType_SensorMeasurements_currArrayIndex++]);
+ }
+ grammarID = 2501;
+ } else if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 2501:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorMeasurements), END_ELEMENT] */
+ if (iso2SensorPackageType_SensorMeasurements_currArrayIndex < iso2SensorPackageType->SensorMeasurements.arrayLen ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ if(errn == 0) {
+ errn = encode_iso2SensorMeasurementsType(stream, &iso2SensorPackageType->SensorMeasurements.array [iso2SensorPackageType_SensorMeasurements_currArrayIndex++]);
+ }
+ grammarID = 2502;
+ } else if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 2502:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorMeasurements), END_ELEMENT] */
+ if (iso2SensorPackageType_SensorMeasurements_currArrayIndex < iso2SensorPackageType->SensorMeasurements.arrayLen ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ if(errn == 0) {
+ errn = encode_iso2SensorMeasurementsType(stream, &iso2SensorPackageType->SensorMeasurements.array [iso2SensorPackageType_SensorMeasurements_currArrayIndex++]);
+ }
+ grammarID = 2503;
+ } else if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 2503:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorMeasurements), END_ELEMENT] */
+ if (iso2SensorPackageType_SensorMeasurements_currArrayIndex < iso2SensorPackageType->SensorMeasurements.arrayLen ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ if(errn == 0) {
+ errn = encode_iso2SensorMeasurementsType(stream, &iso2SensorPackageType->SensorMeasurements.array [iso2SensorPackageType_SensorMeasurements_currArrayIndex++]);
+ }
+ grammarID = 2504;
+ } else if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 2504:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorMeasurements), END_ELEMENT] */
+ if (iso2SensorPackageType_SensorMeasurements_currArrayIndex < iso2SensorPackageType->SensorMeasurements.arrayLen ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ if(errn == 0) {
+ errn = encode_iso2SensorMeasurementsType(stream, &iso2SensorPackageType->SensorMeasurements.array [iso2SensorPackageType_SensorMeasurements_currArrayIndex++]);
+ }
+ grammarID = 2505;
+ } else if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 2505:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorMeasurements), END_ELEMENT] */
+ if (iso2SensorPackageType_SensorMeasurements_currArrayIndex < iso2SensorPackageType->SensorMeasurements.arrayLen ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ if(errn == 0) {
+ errn = encode_iso2SensorMeasurementsType(stream, &iso2SensorPackageType->SensorMeasurements.array [iso2SensorPackageType_SensorMeasurements_currArrayIndex++]);
+ }
+ grammarID = 2506;
+ } else if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 2506:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorMeasurements), END_ELEMENT] */
+ if (iso2SensorPackageType_SensorMeasurements_currArrayIndex < iso2SensorPackageType->SensorMeasurements.arrayLen ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ if(errn == 0) {
+ errn = encode_iso2SensorMeasurementsType(stream, &iso2SensorPackageType->SensorMeasurements.array [iso2SensorPackageType_SensorMeasurements_currArrayIndex++]);
+ }
+ grammarID = 2507;
+ } else if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 2507:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorMeasurements), END_ELEMENT] */
+ if (iso2SensorPackageType_SensorMeasurements_currArrayIndex < iso2SensorPackageType->SensorMeasurements.arrayLen ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ if(errn == 0) {
+ errn = encode_iso2SensorMeasurementsType(stream, &iso2SensorPackageType->SensorMeasurements.array [iso2SensorPackageType_SensorMeasurements_currArrayIndex++]);
+ }
+ grammarID = 2508;
+ } else if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 2508:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorMeasurements), END_ELEMENT] */
+ if (iso2SensorPackageType_SensorMeasurements_currArrayIndex < iso2SensorPackageType->SensorMeasurements.arrayLen ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ if(errn == 0) {
+ errn = encode_iso2SensorMeasurementsType(stream, &iso2SensorPackageType->SensorMeasurements.array [iso2SensorPackageType_SensorMeasurements_currArrayIndex++]);
+ }
+ grammarID = 2509;
+ } else if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 2509:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorMeasurements), END_ELEMENT] */
+ if (iso2SensorPackageType_SensorMeasurements_currArrayIndex < iso2SensorPackageType->SensorMeasurements.arrayLen ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ if(errn == 0) {
+ errn = encode_iso2SensorMeasurementsType(stream, &iso2SensorPackageType->SensorMeasurements.array [iso2SensorPackageType_SensorMeasurements_currArrayIndex++]);
+ }
+ grammarID = 2510;
+ } else if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 2510:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorMeasurements), END_ELEMENT] */
+ if (iso2SensorPackageType_SensorMeasurements_currArrayIndex < iso2SensorPackageType->SensorMeasurements.arrayLen ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ if(errn == 0) {
+ errn = encode_iso2SensorMeasurementsType(stream, &iso2SensorPackageType->SensorMeasurements.array [iso2SensorPackageType_SensorMeasurements_currArrayIndex++]);
+ }
+ grammarID = 2511;
+ } else if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 2511:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorMeasurements), END_ELEMENT] */
+ if (iso2SensorPackageType_SensorMeasurements_currArrayIndex < iso2SensorPackageType->SensorMeasurements.arrayLen ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ if(errn == 0) {
+ errn = encode_iso2SensorMeasurementsType(stream, &iso2SensorPackageType->SensorMeasurements.array [iso2SensorPackageType_SensorMeasurements_currArrayIndex++]);
+ }
+ grammarID = 2512;
+ } else if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 2512:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorMeasurements), END_ELEMENT] */
+ if (iso2SensorPackageType_SensorMeasurements_currArrayIndex < iso2SensorPackageType->SensorMeasurements.arrayLen ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ if(errn == 0) {
+ errn = encode_iso2SensorMeasurementsType(stream, &iso2SensorPackageType->SensorMeasurements.array [iso2SensorPackageType_SensorMeasurements_currArrayIndex++]);
+ }
+ grammarID = 2513;
+ } else if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 2513:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorMeasurements), END_ELEMENT] */
+ if (iso2SensorPackageType_SensorMeasurements_currArrayIndex < iso2SensorPackageType->SensorMeasurements.arrayLen ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ if(errn == 0) {
+ errn = encode_iso2SensorMeasurementsType(stream, &iso2SensorPackageType->SensorMeasurements.array [iso2SensorPackageType_SensorMeasurements_currArrayIndex++]);
+ }
+ grammarID = 2514;
+ } else if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 2514:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorMeasurements), END_ELEMENT] */
+ if (iso2SensorPackageType_SensorMeasurements_currArrayIndex < iso2SensorPackageType->SensorMeasurements.arrayLen ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ if(errn == 0) {
+ errn = encode_iso2SensorMeasurementsType(stream, &iso2SensorPackageType->SensorMeasurements.array [iso2SensorPackageType_SensorMeasurements_currArrayIndex++]);
+ }
+ grammarID = 2515;
+ } else if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 2515:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorMeasurements), END_ELEMENT] */
+ if (iso2SensorPackageType_SensorMeasurements_currArrayIndex < iso2SensorPackageType->SensorMeasurements.arrayLen ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ if(errn == 0) {
+ errn = encode_iso2SensorMeasurementsType(stream, &iso2SensorPackageType->SensorMeasurements.array [iso2SensorPackageType_SensorMeasurements_currArrayIndex++]);
+ }
+ grammarID = 2516;
+ } else if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 2516:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorMeasurements), END_ELEMENT] */
+ if (iso2SensorPackageType_SensorMeasurements_currArrayIndex < iso2SensorPackageType->SensorMeasurements.arrayLen ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ if(errn == 0) {
+ errn = encode_iso2SensorMeasurementsType(stream, &iso2SensorPackageType->SensorMeasurements.array [iso2SensorPackageType_SensorMeasurements_currArrayIndex++]);
+ }
+ grammarID = 2517;
+ } else if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 2517:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorMeasurements), END_ELEMENT] */
+ if (iso2SensorPackageType_SensorMeasurements_currArrayIndex < iso2SensorPackageType->SensorMeasurements.arrayLen ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ if(errn == 0) {
+ errn = encode_iso2SensorMeasurementsType(stream, &iso2SensorPackageType->SensorMeasurements.array [iso2SensorPackageType_SensorMeasurements_currArrayIndex++]);
+ }
+ grammarID = 2518;
+ } else if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 2518:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorMeasurements), END_ELEMENT] */
+ if (iso2SensorPackageType_SensorMeasurements_currArrayIndex < iso2SensorPackageType->SensorMeasurements.arrayLen ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ if(errn == 0) {
+ errn = encode_iso2SensorMeasurementsType(stream, &iso2SensorPackageType->SensorMeasurements.array [iso2SensorPackageType_SensorMeasurements_currArrayIndex++]);
+ }
+ grammarID = 2519;
+ } else if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 2519:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorMeasurements), END_ELEMENT] */
+ if (iso2SensorPackageType_SensorMeasurements_currArrayIndex < iso2SensorPackageType->SensorMeasurements.arrayLen ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ if(errn == 0) {
+ errn = encode_iso2SensorMeasurementsType(stream, &iso2SensorPackageType->SensorMeasurements.array [iso2SensorPackageType_SensorMeasurements_currArrayIndex++]);
+ }
+ grammarID = 2520;
+ } else if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 2520:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorMeasurements), END_ELEMENT] */
+ if (iso2SensorPackageType_SensorMeasurements_currArrayIndex < iso2SensorPackageType->SensorMeasurements.arrayLen ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ if(errn == 0) {
+ errn = encode_iso2SensorMeasurementsType(stream, &iso2SensorPackageType->SensorMeasurements.array [iso2SensorPackageType_SensorMeasurements_currArrayIndex++]);
+ }
+ grammarID = 2521;
+ } else if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 2521:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorMeasurements), END_ELEMENT] */
+ if (iso2SensorPackageType_SensorMeasurements_currArrayIndex < iso2SensorPackageType->SensorMeasurements.arrayLen ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ if(errn == 0) {
+ errn = encode_iso2SensorMeasurementsType(stream, &iso2SensorPackageType->SensorMeasurements.array [iso2SensorPackageType_SensorMeasurements_currArrayIndex++]);
+ }
+ grammarID = 2522;
+ } else if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 2522:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorMeasurements), END_ELEMENT] */
+ if (iso2SensorPackageType_SensorMeasurements_currArrayIndex < iso2SensorPackageType->SensorMeasurements.arrayLen ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ if(errn == 0) {
+ errn = encode_iso2SensorMeasurementsType(stream, &iso2SensorPackageType->SensorMeasurements.array [iso2SensorPackageType_SensorMeasurements_currArrayIndex++]);
+ }
+ grammarID = 2523;
+ } else if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 2523:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorMeasurements), END_ELEMENT] */
+ if (iso2SensorPackageType_SensorMeasurements_currArrayIndex < iso2SensorPackageType->SensorMeasurements.arrayLen ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ if(errn == 0) {
+ errn = encode_iso2SensorMeasurementsType(stream, &iso2SensorPackageType->SensorMeasurements.array [iso2SensorPackageType_SensorMeasurements_currArrayIndex++]);
+ }
+ grammarID = 2524;
+ } else if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 2524:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorMeasurements), END_ELEMENT] */
+ if (iso2SensorPackageType_SensorMeasurements_currArrayIndex < iso2SensorPackageType->SensorMeasurements.arrayLen ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ if(errn == 0) {
+ errn = encode_iso2SensorMeasurementsType(stream, &iso2SensorPackageType->SensorMeasurements.array [iso2SensorPackageType_SensorMeasurements_currArrayIndex++]);
+ }
+ grammarID = 2525;
+ } else if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 2525:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorMeasurements), END_ELEMENT] */
+ if (iso2SensorPackageType_SensorMeasurements_currArrayIndex < iso2SensorPackageType->SensorMeasurements.arrayLen ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ if(errn == 0) {
+ errn = encode_iso2SensorMeasurementsType(stream, &iso2SensorPackageType->SensorMeasurements.array [iso2SensorPackageType_SensorMeasurements_currArrayIndex++]);
+ }
+ grammarID = 2526;
+ } else if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 2526:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorMeasurements), END_ELEMENT] */
+ if (iso2SensorPackageType_SensorMeasurements_currArrayIndex < iso2SensorPackageType->SensorMeasurements.arrayLen ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ if(errn == 0) {
+ errn = encode_iso2SensorMeasurementsType(stream, &iso2SensorPackageType->SensorMeasurements.array [iso2SensorPackageType_SensorMeasurements_currArrayIndex++]);
+ }
+ grammarID = 2527;
+ } else if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 2527:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorMeasurements), END_ELEMENT] */
+ if (iso2SensorPackageType_SensorMeasurements_currArrayIndex < iso2SensorPackageType->SensorMeasurements.arrayLen ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ if(errn == 0) {
+ errn = encode_iso2SensorMeasurementsType(stream, &iso2SensorPackageType->SensorMeasurements.array [iso2SensorPackageType_SensorMeasurements_currArrayIndex++]);
+ }
+ grammarID = 2528;
+ } else if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 2528:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorMeasurements), END_ELEMENT] */
+ if (iso2SensorPackageType_SensorMeasurements_currArrayIndex < iso2SensorPackageType->SensorMeasurements.arrayLen ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ if(errn == 0) {
+ errn = encode_iso2SensorMeasurementsType(stream, &iso2SensorPackageType->SensorMeasurements.array [iso2SensorPackageType_SensorMeasurements_currArrayIndex++]);
+ }
+ grammarID = 2529;
+ } else if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 2529:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorMeasurements), END_ELEMENT] */
+ if (iso2SensorPackageType_SensorMeasurements_currArrayIndex < iso2SensorPackageType->SensorMeasurements.arrayLen ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ if(errn == 0) {
+ errn = encode_iso2SensorMeasurementsType(stream, &iso2SensorPackageType->SensorMeasurements.array [iso2SensorPackageType_SensorMeasurements_currArrayIndex++]);
+ }
+ grammarID = 2530;
+ } else if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 2530:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorMeasurements), END_ELEMENT] */
+ if (iso2SensorPackageType_SensorMeasurements_currArrayIndex < iso2SensorPackageType->SensorMeasurements.arrayLen ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ if(errn == 0) {
+ errn = encode_iso2SensorMeasurementsType(stream, &iso2SensorPackageType->SensorMeasurements.array [iso2SensorPackageType_SensorMeasurements_currArrayIndex++]);
+ }
+ grammarID = 2531;
+ } else if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 2531:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorMeasurements), END_ELEMENT] */
+ if (iso2SensorPackageType_SensorMeasurements_currArrayIndex < iso2SensorPackageType->SensorMeasurements.arrayLen ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ if(errn == 0) {
+ errn = encode_iso2SensorMeasurementsType(stream, &iso2SensorPackageType->SensorMeasurements.array [iso2SensorPackageType_SensorMeasurements_currArrayIndex++]);
+ }
+ grammarID = 2532;
+ } else if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 2532:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorMeasurements), END_ELEMENT] */
+ if (iso2SensorPackageType_SensorMeasurements_currArrayIndex < iso2SensorPackageType->SensorMeasurements.arrayLen ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ if(errn == 0) {
+ errn = encode_iso2SensorMeasurementsType(stream, &iso2SensorPackageType->SensorMeasurements.array [iso2SensorPackageType_SensorMeasurements_currArrayIndex++]);
+ }
+ grammarID = 2533;
+ } else if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 2533:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorMeasurements), END_ELEMENT] */
+ if (iso2SensorPackageType_SensorMeasurements_currArrayIndex < iso2SensorPackageType->SensorMeasurements.arrayLen ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ if(errn == 0) {
+ errn = encode_iso2SensorMeasurementsType(stream, &iso2SensorPackageType->SensorMeasurements.array [iso2SensorPackageType_SensorMeasurements_currArrayIndex++]);
+ }
+ grammarID = 2534;
+ } else if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 2534:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorMeasurements), END_ELEMENT] */
+ if (iso2SensorPackageType_SensorMeasurements_currArrayIndex < iso2SensorPackageType->SensorMeasurements.arrayLen ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ if(errn == 0) {
+ errn = encode_iso2SensorMeasurementsType(stream, &iso2SensorPackageType->SensorMeasurements.array [iso2SensorPackageType_SensorMeasurements_currArrayIndex++]);
+ }
+ grammarID = 2535;
+ } else if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 2535:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorMeasurements), END_ELEMENT] */
+ if (iso2SensorPackageType_SensorMeasurements_currArrayIndex < iso2SensorPackageType->SensorMeasurements.arrayLen ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ if(errn == 0) {
+ errn = encode_iso2SensorMeasurementsType(stream, &iso2SensorPackageType->SensorMeasurements.array [iso2SensorPackageType_SensorMeasurements_currArrayIndex++]);
+ }
+ grammarID = 2536;
+ } else if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 2536:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorMeasurements), END_ELEMENT] */
+ if (iso2SensorPackageType_SensorMeasurements_currArrayIndex < iso2SensorPackageType->SensorMeasurements.arrayLen ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ if(errn == 0) {
+ errn = encode_iso2SensorMeasurementsType(stream, &iso2SensorPackageType->SensorMeasurements.array [iso2SensorPackageType_SensorMeasurements_currArrayIndex++]);
+ }
+ grammarID = 2537;
+ } else if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 2537:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorMeasurements), END_ELEMENT] */
+ if (iso2SensorPackageType_SensorMeasurements_currArrayIndex < iso2SensorPackageType->SensorMeasurements.arrayLen ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ if(errn == 0) {
+ errn = encode_iso2SensorMeasurementsType(stream, &iso2SensorPackageType->SensorMeasurements.array [iso2SensorPackageType_SensorMeasurements_currArrayIndex++]);
+ }
+ grammarID = 2538;
+ } else if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 2538:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorMeasurements), END_ELEMENT] */
+ if (iso2SensorPackageType_SensorMeasurements_currArrayIndex < iso2SensorPackageType->SensorMeasurements.arrayLen ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ if(errn == 0) {
+ errn = encode_iso2SensorMeasurementsType(stream, &iso2SensorPackageType->SensorMeasurements.array [iso2SensorPackageType_SensorMeasurements_currArrayIndex++]);
+ }
+ grammarID = 2539;
+ } else if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 2539:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorMeasurements), END_ELEMENT] */
+ if (iso2SensorPackageType_SensorMeasurements_currArrayIndex < iso2SensorPackageType->SensorMeasurements.arrayLen ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ if(errn == 0) {
+ errn = encode_iso2SensorMeasurementsType(stream, &iso2SensorPackageType->SensorMeasurements.array [iso2SensorPackageType_SensorMeasurements_currArrayIndex++]);
+ }
+ grammarID = 2540;
+ } else if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 2540:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorMeasurements), END_ELEMENT] */
+ if (iso2SensorPackageType_SensorMeasurements_currArrayIndex < iso2SensorPackageType->SensorMeasurements.arrayLen ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ if(errn == 0) {
+ errn = encode_iso2SensorMeasurementsType(stream, &iso2SensorPackageType->SensorMeasurements.array [iso2SensorPackageType_SensorMeasurements_currArrayIndex++]);
+ }
+ grammarID = 2541;
+ } else if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 2541:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorMeasurements), END_ELEMENT] */
+ if (iso2SensorPackageType_SensorMeasurements_currArrayIndex < iso2SensorPackageType->SensorMeasurements.arrayLen ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ if(errn == 0) {
+ errn = encode_iso2SensorMeasurementsType(stream, &iso2SensorPackageType->SensorMeasurements.array [iso2SensorPackageType_SensorMeasurements_currArrayIndex++]);
+ }
+ grammarID = 2542;
+ } else if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 2542:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorMeasurements), END_ELEMENT] */
+ if (iso2SensorPackageType_SensorMeasurements_currArrayIndex < iso2SensorPackageType->SensorMeasurements.arrayLen ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ if(errn == 0) {
+ errn = encode_iso2SensorMeasurementsType(stream, &iso2SensorPackageType->SensorMeasurements.array [iso2SensorPackageType_SensorMeasurements_currArrayIndex++]);
+ }
+ grammarID = 2543;
+ } else if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 2543:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorMeasurements), END_ELEMENT] */
+ if (iso2SensorPackageType_SensorMeasurements_currArrayIndex < iso2SensorPackageType->SensorMeasurements.arrayLen ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ if(errn == 0) {
+ errn = encode_iso2SensorMeasurementsType(stream, &iso2SensorPackageType->SensorMeasurements.array [iso2SensorPackageType_SensorMeasurements_currArrayIndex++]);
+ }
+ grammarID = 2544;
+ } else if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 2544:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorMeasurements), END_ELEMENT] */
+ if (iso2SensorPackageType_SensorMeasurements_currArrayIndex < iso2SensorPackageType->SensorMeasurements.arrayLen ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ if(errn == 0) {
+ errn = encode_iso2SensorMeasurementsType(stream, &iso2SensorPackageType->SensorMeasurements.array [iso2SensorPackageType_SensorMeasurements_currArrayIndex++]);
+ }
+ grammarID = 2545;
+ } else if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 2545:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorMeasurements), END_ELEMENT] */
+ if (iso2SensorPackageType_SensorMeasurements_currArrayIndex < iso2SensorPackageType->SensorMeasurements.arrayLen ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ if(errn == 0) {
+ errn = encode_iso2SensorMeasurementsType(stream, &iso2SensorPackageType->SensorMeasurements.array [iso2SensorPackageType_SensorMeasurements_currArrayIndex++]);
+ }
+ grammarID = 2546;
+ } else if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 2546:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorMeasurements), END_ELEMENT] */
+ if (iso2SensorPackageType_SensorMeasurements_currArrayIndex < iso2SensorPackageType->SensorMeasurements.arrayLen ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ if(errn == 0) {
+ errn = encode_iso2SensorMeasurementsType(stream, &iso2SensorPackageType->SensorMeasurements.array [iso2SensorPackageType_SensorMeasurements_currArrayIndex++]);
+ }
+ grammarID = 2547;
+ } else if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 2547:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorMeasurements), END_ELEMENT] */
+ if (iso2SensorPackageType_SensorMeasurements_currArrayIndex < iso2SensorPackageType->SensorMeasurements.arrayLen ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ if(errn == 0) {
+ errn = encode_iso2SensorMeasurementsType(stream, &iso2SensorPackageType->SensorMeasurements.array [iso2SensorPackageType_SensorMeasurements_currArrayIndex++]);
+ }
+ grammarID = 2548;
+ } else if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 2548:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorMeasurements), END_ELEMENT] */
+ if (iso2SensorPackageType_SensorMeasurements_currArrayIndex < iso2SensorPackageType->SensorMeasurements.arrayLen ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ if(errn == 0) {
+ errn = encode_iso2SensorMeasurementsType(stream, &iso2SensorPackageType->SensorMeasurements.array [iso2SensorPackageType_SensorMeasurements_currArrayIndex++]);
+ }
+ grammarID = 2549;
+ } else if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 2549:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorMeasurements), END_ELEMENT] */
+ if (iso2SensorPackageType_SensorMeasurements_currArrayIndex < iso2SensorPackageType->SensorMeasurements.arrayLen ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ if(errn == 0) {
+ errn = encode_iso2SensorMeasurementsType(stream, &iso2SensorPackageType->SensorMeasurements.array [iso2SensorPackageType_SensorMeasurements_currArrayIndex++]);
+ }
+ grammarID = 2550;
+ } else if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 2550:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorMeasurements), END_ELEMENT] */
+ if (iso2SensorPackageType_SensorMeasurements_currArrayIndex < iso2SensorPackageType->SensorMeasurements.arrayLen ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ if(errn == 0) {
+ errn = encode_iso2SensorMeasurementsType(stream, &iso2SensorPackageType->SensorMeasurements.array [iso2SensorPackageType_SensorMeasurements_currArrayIndex++]);
+ }
+ grammarID = 2551;
+ } else if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 2551:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorMeasurements), END_ELEMENT] */
+ if (iso2SensorPackageType_SensorMeasurements_currArrayIndex < iso2SensorPackageType->SensorMeasurements.arrayLen ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ if(errn == 0) {
+ errn = encode_iso2SensorMeasurementsType(stream, &iso2SensorPackageType->SensorMeasurements.array [iso2SensorPackageType_SensorMeasurements_currArrayIndex++]);
+ }
+ grammarID = 2552;
+ } else if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 2552:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorMeasurements), END_ELEMENT] */
+ if (iso2SensorPackageType_SensorMeasurements_currArrayIndex < iso2SensorPackageType->SensorMeasurements.arrayLen ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ if(errn == 0) {
+ errn = encode_iso2SensorMeasurementsType(stream, &iso2SensorPackageType->SensorMeasurements.array [iso2SensorPackageType_SensorMeasurements_currArrayIndex++]);
+ }
+ grammarID = 2553;
+ } else if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 2553:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorMeasurements), END_ELEMENT] */
+ if (iso2SensorPackageType_SensorMeasurements_currArrayIndex < iso2SensorPackageType->SensorMeasurements.arrayLen ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ if(errn == 0) {
+ errn = encode_iso2SensorMeasurementsType(stream, &iso2SensorPackageType->SensorMeasurements.array [iso2SensorPackageType_SensorMeasurements_currArrayIndex++]);
+ }
+ grammarID = 2554;
+ } else if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 2554:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorMeasurements), END_ELEMENT] */
+ if (iso2SensorPackageType_SensorMeasurements_currArrayIndex < iso2SensorPackageType->SensorMeasurements.arrayLen ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ if(errn == 0) {
+ errn = encode_iso2SensorMeasurementsType(stream, &iso2SensorPackageType->SensorMeasurements.array [iso2SensorPackageType_SensorMeasurements_currArrayIndex++]);
+ }
+ grammarID = 3;
+ } else if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 3:
+ /* Element[END_ELEMENT] */
+ if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 1, 0);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_GRAMMAR_ID;
+ break;
+ }
+ if(errn) {
+ done = 1;
+ }
+ }
+ return errn;
+}
+
+/* Complex type name='http://www.w3.org/2000/09/xmldsig#,PGPDataType', base type name='anyType', content type='ELEMENT', isAbstract='false', hasTypeId='false', final='0', block='0', particle='(("http://www.w3.org/2000/09/xmldsig#":PGPKeyID,"http://www.w3.org/2000/09/xmldsig#":PGPKeyPacket{0-1},(WC[##other:"http://www.w3.org/2000/09/xmldsig#"]){0-UNBOUNDED})|("http://www.w3.org/2000/09/xmldsig#":PGPKeyPacket,(WC[##other:"http://www.w3.org/2000/09/xmldsig#"]){0-UNBOUNDED}))', derivedBy='RESTRICTION'. */
+static int encode_iso2PGPDataType(bitstream_t* stream, struct iso2PGPDataType* iso2PGPDataType) {
+ int grammarID = 2555;
+ int done = 0;
+ int wcDone = 0;
+
+
+ while(!done) {
+ switch(grammarID) {
+ case 2555:
+ /* FirstStartTag[START_ELEMENT({http://www.w3.org/2000/09/xmldsig#}PGPKeyID), START_ELEMENT({http://www.w3.org/2000/09/xmldsig#}PGPKeyPacket)] */
+ if ( iso2PGPDataType->PGPKeyID_isUsed == 1u ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ if(errn == 0) {
+ /* First(xsi:type)StartTag[CHARACTERS[BINARY_BASE64]] */
+ errn = encodeNBitUnsignedInteger(stream, 1, 0);
+ if(errn == 0) {
+ errn = encodeUnsignedInteger16(stream, (uint16_t)(iso2PGPDataType->PGPKeyID.bytesLen));
+ if (errn == 0) {
+ errn = encodeBytes(stream, iso2PGPDataType->PGPKeyID.bytes, iso2PGPDataType->PGPKeyID.bytesLen);
+ }
+ /* valid EE */
+ errn = encodeNBitUnsignedInteger(stream, 1, 0);
+ }
+ }
+ grammarID = 2556;
+ } else if ( iso2PGPDataType->PGPKeyPacket_isUsed == 1u ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ /* First(xsi:type)StartTag[CHARACTERS[BINARY_BASE64]] */
+ errn = encodeNBitUnsignedInteger(stream, 1, 0);
+ if(errn == 0) {
+ errn = encodeUnsignedInteger16(stream, (uint16_t)(iso2PGPDataType->PGPKeyPacket.bytesLen));
+ if (errn == 0) {
+ errn = encodeBytes(stream, iso2PGPDataType->PGPKeyPacket.bytes, iso2PGPDataType->PGPKeyPacket.bytesLen);
+ }
+ /* valid EE */
+ errn = encodeNBitUnsignedInteger(stream, 1, 0);
+ }
+ }
+ grammarID = 2557;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 2556:
+ /* Element[START_ELEMENT({http://www.w3.org/2000/09/xmldsig#}PGPKeyPacket), START_ELEMENT_GENERIC, END_ELEMENT] */
+ if ( iso2PGPDataType->PGPKeyPacket_isUsed == 1u ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ if(errn == 0) {
+ /* First(xsi:type)StartTag[CHARACTERS[BINARY_BASE64]] */
+ errn = encodeNBitUnsignedInteger(stream, 1, 0);
+ if(errn == 0) {
+ errn = encodeUnsignedInteger16(stream, (uint16_t)(iso2PGPDataType->PGPKeyPacket.bytesLen));
+ if (errn == 0) {
+ errn = encodeBytes(stream, iso2PGPDataType->PGPKeyPacket.bytes, iso2PGPDataType->PGPKeyPacket.bytesLen);
+ }
+ /* valid EE */
+ errn = encodeNBitUnsignedInteger(stream, 1, 0);
+ }
+ }
+ grammarID = 2557;
+ } else if (1==0) {
+ errn = EXI_UNSUPPORTED_EVENT_CODE_CHARACTERISTICS;
+ grammarID = 2557;
+ } else if ( iso2PGPDataType->ANY_isUsed == 0u || wcDone ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 2);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 2557:
+ /* Element[START_ELEMENT_GENERIC, END_ELEMENT] */
+ if (1==0) {
+ errn = EXI_UNSUPPORTED_EVENT_CODE_CHARACTERISTICS;
+ grammarID = 2557;
+ } else if ( iso2PGPDataType->ANY_isUsed == 0u || wcDone ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } 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:2016:MsgBody,ServiceDiscoveryResType', base type name='V2GResponseType', content type='ELEMENT', isAbstract='false', hasTypeId='false', final='0', block='0', particle='(("urn:iso:15118:2:2016:MsgBody":ResponseCode,"urn:iso:15118:2:2016:MsgBody":EVSEStatus{0-1}),("urn:iso:15118:2:2016:MsgBody":PaymentOptionList,"urn:iso:15118:2:2016:MsgBody":EnergyTransferServiceList,"urn:iso:15118:2:2016:MsgBody":VASList{0-1}))', derivedBy='EXTENSION'. */
+static int encode_iso2ServiceDiscoveryResType(bitstream_t* stream, struct iso2ServiceDiscoveryResType* iso2ServiceDiscoveryResType) {
+ int grammarID = 2558;
+ int done = 0;
+
+
+ while(!done) {
+ switch(grammarID) {
+ case 2558:
+ /* FirstStartTag[START_ELEMENT({urn:iso:15118:2:2016:MsgBody}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, 5, iso2ServiceDiscoveryResType->ResponseCode);
+ /* valid EE */
+ errn = encodeNBitUnsignedInteger(stream, 1, 0);
+ }
+ }
+ grammarID = 2559;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 2559:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgBody}EVSEStatus), START_ELEMENT({urn:iso:15118:2:2016:MsgBody}PaymentOptionList)] */
+ if ( iso2ServiceDiscoveryResType->EVSEStatus_isUsed == 1u ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ if(errn == 0) {
+ errn = encode_iso2EVSEStatusType(stream, &iso2ServiceDiscoveryResType->EVSEStatus );
+ }
+ grammarID = 2560;
+ } else if ( 1 == 1 ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ errn = encode_iso2PaymentOptionListType(stream, &iso2ServiceDiscoveryResType->PaymentOptionList );
+ }
+ grammarID = 2561;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 2560:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgBody}PaymentOptionList)] */
+ if ( 1 == 1 ) {
+ errn = encodeNBitUnsignedInteger(stream, 1, 0);
+ if(errn == 0) {
+ errn = encode_iso2PaymentOptionListType(stream, &iso2ServiceDiscoveryResType->PaymentOptionList );
+ }
+ grammarID = 2561;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 2561:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgBody}EnergyTransferServiceList)] */
+ if ( 1 == 1 ) {
+ errn = encodeNBitUnsignedInteger(stream, 1, 0);
+ if(errn == 0) {
+ errn = encode_iso2ServiceListType(stream, &iso2ServiceDiscoveryResType->EnergyTransferServiceList );
+ }
+ grammarID = 2562;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 2562:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgBody}VASList), END_ELEMENT] */
+ if ( iso2ServiceDiscoveryResType->VASList_isUsed == 1u ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ if(errn == 0) {
+ errn = encode_iso2ServiceListType(stream, &iso2ServiceDiscoveryResType->VASList );
+ }
+ grammarID = 3;
+ } else if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 3:
+ /* Element[END_ELEMENT] */
+ if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 1, 0);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } 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:2016:MsgDataTypes,ServiceIDListType', base type name='anyType', content type='ELEMENT', isAbstract='false', hasTypeId='false', final='0', block='0', particle='("urn:iso:15118:2:2016:MsgDataTypes":ServiceID{1-10})', derivedBy='RESTRICTION'. */
+static int encode_iso2ServiceIDListType(bitstream_t* stream, struct iso2ServiceIDListType* iso2ServiceIDListType) {
+ int grammarID = 2563;
+ int done = 0;
+
+ unsigned int iso2ServiceIDListType_ServiceID_currArrayIndex = 0;
+
+ while(!done) {
+ switch(grammarID) {
+ case 2563:
+ /* FirstStartTag[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}ServiceID)] */
+ if (iso2ServiceIDListType_ServiceID_currArrayIndex < iso2ServiceIDListType->ServiceID.arrayLen ) {
+ errn = encodeNBitUnsignedInteger(stream, 1, 0);
+ if(errn == 0) {
+ /* FirstStartTag[CHARACTERS[UNSIGNED_INTEGER]] */
+ errn = encodeNBitUnsignedInteger(stream, 1, 0);
+ if(errn == 0) {
+ errn = encodeUnsignedInteger16(stream, iso2ServiceIDListType->ServiceID.array[iso2ServiceIDListType_ServiceID_currArrayIndex++]);
+ /* valid EE */
+ errn = encodeNBitUnsignedInteger(stream, 1, 0);
+ }
+ }
+ grammarID = 2564;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 2564:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}ServiceID), END_ELEMENT] */
+ if (iso2ServiceIDListType_ServiceID_currArrayIndex < iso2ServiceIDListType->ServiceID.arrayLen ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ if(errn == 0) {
+ /* FirstStartTag[CHARACTERS[UNSIGNED_INTEGER]] */
+ errn = encodeNBitUnsignedInteger(stream, 1, 0);
+ if(errn == 0) {
+ errn = encodeUnsignedInteger16(stream, iso2ServiceIDListType->ServiceID.array[iso2ServiceIDListType_ServiceID_currArrayIndex++]);
+ /* valid EE */
+ errn = encodeNBitUnsignedInteger(stream, 1, 0);
+ }
+ }
+ grammarID = 2565;
+ } else if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 2565:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}ServiceID), END_ELEMENT] */
+ if (iso2ServiceIDListType_ServiceID_currArrayIndex < iso2ServiceIDListType->ServiceID.arrayLen ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ if(errn == 0) {
+ /* FirstStartTag[CHARACTERS[UNSIGNED_INTEGER]] */
+ errn = encodeNBitUnsignedInteger(stream, 1, 0);
+ if(errn == 0) {
+ errn = encodeUnsignedInteger16(stream, iso2ServiceIDListType->ServiceID.array[iso2ServiceIDListType_ServiceID_currArrayIndex++]);
+ /* valid EE */
+ errn = encodeNBitUnsignedInteger(stream, 1, 0);
+ }
+ }
+ grammarID = 2566;
+ } else if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 2566:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}ServiceID), END_ELEMENT] */
+ if (iso2ServiceIDListType_ServiceID_currArrayIndex < iso2ServiceIDListType->ServiceID.arrayLen ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ if(errn == 0) {
+ /* FirstStartTag[CHARACTERS[UNSIGNED_INTEGER]] */
+ errn = encodeNBitUnsignedInteger(stream, 1, 0);
+ if(errn == 0) {
+ errn = encodeUnsignedInteger16(stream, iso2ServiceIDListType->ServiceID.array[iso2ServiceIDListType_ServiceID_currArrayIndex++]);
+ /* valid EE */
+ errn = encodeNBitUnsignedInteger(stream, 1, 0);
+ }
+ }
+ grammarID = 2567;
+ } else if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 2567:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}ServiceID), END_ELEMENT] */
+ if (iso2ServiceIDListType_ServiceID_currArrayIndex < iso2ServiceIDListType->ServiceID.arrayLen ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ if(errn == 0) {
+ /* FirstStartTag[CHARACTERS[UNSIGNED_INTEGER]] */
+ errn = encodeNBitUnsignedInteger(stream, 1, 0);
+ if(errn == 0) {
+ errn = encodeUnsignedInteger16(stream, iso2ServiceIDListType->ServiceID.array[iso2ServiceIDListType_ServiceID_currArrayIndex++]);
+ /* valid EE */
+ errn = encodeNBitUnsignedInteger(stream, 1, 0);
+ }
+ }
+ grammarID = 2568;
+ } else if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 2568:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}ServiceID), END_ELEMENT] */
+ if (iso2ServiceIDListType_ServiceID_currArrayIndex < iso2ServiceIDListType->ServiceID.arrayLen ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ if(errn == 0) {
+ /* FirstStartTag[CHARACTERS[UNSIGNED_INTEGER]] */
+ errn = encodeNBitUnsignedInteger(stream, 1, 0);
+ if(errn == 0) {
+ errn = encodeUnsignedInteger16(stream, iso2ServiceIDListType->ServiceID.array[iso2ServiceIDListType_ServiceID_currArrayIndex++]);
+ /* valid EE */
+ errn = encodeNBitUnsignedInteger(stream, 1, 0);
+ }
+ }
+ grammarID = 2569;
+ } else if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 2569:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}ServiceID), END_ELEMENT] */
+ if (iso2ServiceIDListType_ServiceID_currArrayIndex < iso2ServiceIDListType->ServiceID.arrayLen ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ if(errn == 0) {
+ /* FirstStartTag[CHARACTERS[UNSIGNED_INTEGER]] */
+ errn = encodeNBitUnsignedInteger(stream, 1, 0);
+ if(errn == 0) {
+ errn = encodeUnsignedInteger16(stream, iso2ServiceIDListType->ServiceID.array[iso2ServiceIDListType_ServiceID_currArrayIndex++]);
+ /* valid EE */
+ errn = encodeNBitUnsignedInteger(stream, 1, 0);
+ }
+ }
+ grammarID = 2570;
+ } else if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 2570:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}ServiceID), END_ELEMENT] */
+ if (iso2ServiceIDListType_ServiceID_currArrayIndex < iso2ServiceIDListType->ServiceID.arrayLen ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ if(errn == 0) {
+ /* FirstStartTag[CHARACTERS[UNSIGNED_INTEGER]] */
+ errn = encodeNBitUnsignedInteger(stream, 1, 0);
+ if(errn == 0) {
+ errn = encodeUnsignedInteger16(stream, iso2ServiceIDListType->ServiceID.array[iso2ServiceIDListType_ServiceID_currArrayIndex++]);
+ /* valid EE */
+ errn = encodeNBitUnsignedInteger(stream, 1, 0);
+ }
+ }
+ grammarID = 2571;
+ } else if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 2571:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}ServiceID), END_ELEMENT] */
+ if (iso2ServiceIDListType_ServiceID_currArrayIndex < iso2ServiceIDListType->ServiceID.arrayLen ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ if(errn == 0) {
+ /* FirstStartTag[CHARACTERS[UNSIGNED_INTEGER]] */
+ errn = encodeNBitUnsignedInteger(stream, 1, 0);
+ if(errn == 0) {
+ errn = encodeUnsignedInteger16(stream, iso2ServiceIDListType->ServiceID.array[iso2ServiceIDListType_ServiceID_currArrayIndex++]);
+ /* valid EE */
+ errn = encodeNBitUnsignedInteger(stream, 1, 0);
+ }
+ }
+ grammarID = 2572;
+ } else if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 2572:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}ServiceID), END_ELEMENT] */
+ if (iso2ServiceIDListType_ServiceID_currArrayIndex < iso2ServiceIDListType->ServiceID.arrayLen ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ if(errn == 0) {
+ /* FirstStartTag[CHARACTERS[UNSIGNED_INTEGER]] */
+ errn = encodeNBitUnsignedInteger(stream, 1, 0);
+ if(errn == 0) {
+ errn = encodeUnsignedInteger16(stream, iso2ServiceIDListType->ServiceID.array[iso2ServiceIDListType_ServiceID_currArrayIndex++]);
+ /* valid EE */
+ errn = encodeNBitUnsignedInteger(stream, 1, 0);
+ }
+ }
+ grammarID = 3;
+ } else if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 3:
+ /* Element[END_ELEMENT] */
+ if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 1, 0);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } 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:2016:MsgDataTypes,EVFinePositioningSetupParametersType', base type name='anyType', content type='EMPTY', isAbstract='true', hasTypeId='false', final='0', block='0', derivedBy='RESTRICTION'. */
+static int encode_iso2EVFinePositioningSetupParametersType(bitstream_t* stream, struct iso2EVFinePositioningSetupParametersType* iso2EVFinePositioningSetupParametersType) {
+ int grammarID = 674;
+ int done = 0;
+
+
+ while(!done) {
+ switch(grammarID) {
+ case 674:
+ /* FirstStartTag[END_ELEMENT] */
+ if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 1, 0);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } 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:2016:MsgBody,ChargeParameterDiscoveryResType', base type name='V2GResponseType', content type='ELEMENT', isAbstract='false', hasTypeId='false', final='0', block='0', particle='(("urn:iso:15118:2:2016:MsgBody":ResponseCode,"urn:iso:15118:2:2016:MsgBody":EVSEStatus{0-1}),("urn:iso:15118:2:2016:MsgBody":EVSEProcessing,"urn:iso:15118:2:2016:MsgBody":SAScheduleList{0-1},"urn:iso:15118:2:2016:MsgDataTypes":EVSEEnergyTransferParameter))', derivedBy='EXTENSION'. */
+static int encode_iso2ChargeParameterDiscoveryResType(bitstream_t* stream, struct iso2ChargeParameterDiscoveryResType* iso2ChargeParameterDiscoveryResType) {
+ int grammarID = 2573;
+ int done = 0;
+
+
+ while(!done) {
+ switch(grammarID) {
+ case 2573:
+ /* FirstStartTag[START_ELEMENT({urn:iso:15118:2:2016:MsgBody}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, 5, iso2ChargeParameterDiscoveryResType->ResponseCode);
+ /* valid EE */
+ errn = encodeNBitUnsignedInteger(stream, 1, 0);
+ }
+ }
+ grammarID = 2574;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 2574:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgBody}EVSEStatus), START_ELEMENT({urn:iso:15118:2:2016:MsgBody}EVSEProcessing)] */
+ if ( iso2ChargeParameterDiscoveryResType->EVSEStatus_isUsed == 1u ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ if(errn == 0) {
+ errn = encode_iso2EVSEStatusType(stream, &iso2ChargeParameterDiscoveryResType->EVSEStatus );
+ }
+ grammarID = 2575;
+ } else if ( 1 == 1 ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ /* FirstStartTag[CHARACTERS[ENUMERATION]] */
+ errn = encodeNBitUnsignedInteger(stream, 1, 0);
+ if(errn == 0) {
+ errn = encodeNBitUnsignedInteger(stream, 2, iso2ChargeParameterDiscoveryResType->EVSEProcessing);
+ /* valid EE */
+ errn = encodeNBitUnsignedInteger(stream, 1, 0);
+ }
+ }
+ grammarID = 2576;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 2575:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgBody}EVSEProcessing)] */
+ 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, iso2ChargeParameterDiscoveryResType->EVSEProcessing);
+ /* valid EE */
+ errn = encodeNBitUnsignedInteger(stream, 1, 0);
+ }
+ }
+ grammarID = 2576;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 2576:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgBody}SAScheduleList), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}AC_EVSEBidirectionalParameter), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}AC_EVSEChargeParameter), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}DC_EVSEBidirectionalParameter), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}DC_EVSEChargeParameter), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}EVSEEnergyTransferParameter), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}WPT_EVSEChargeParameter)] */
+ if ( iso2ChargeParameterDiscoveryResType->SAScheduleList_isUsed == 1u ) {
+ errn = encodeNBitUnsignedInteger(stream, 3, 0);
+ if(errn == 0) {
+ errn = encode_iso2SAScheduleListType(stream, &iso2ChargeParameterDiscoveryResType->SAScheduleList );
+ }
+ grammarID = 2577;
+ } else if ( iso2ChargeParameterDiscoveryResType->AC_EVSEBidirectionalParameter_isUsed == 1u ) {
+ errn = encodeNBitUnsignedInteger(stream, 3, 1);
+ if(errn == 0) {
+ errn = encode_iso2AC_EVSEBidirectionalParameterType(stream, &iso2ChargeParameterDiscoveryResType->AC_EVSEBidirectionalParameter );
+ }
+ grammarID = 3;
+ } else if ( iso2ChargeParameterDiscoveryResType->AC_EVSEChargeParameter_isUsed == 1u ) {
+ errn = encodeNBitUnsignedInteger(stream, 3, 2);
+ if(errn == 0) {
+ errn = encode_iso2AC_EVSEChargeParameterType(stream, &iso2ChargeParameterDiscoveryResType->AC_EVSEChargeParameter );
+ }
+ grammarID = 3;
+ } else if ( iso2ChargeParameterDiscoveryResType->DC_EVSEBidirectionalParameter_isUsed == 1u ) {
+ errn = encodeNBitUnsignedInteger(stream, 3, 3);
+ if(errn == 0) {
+ errn = encode_iso2DC_EVSEBidirectionalParameterType(stream, &iso2ChargeParameterDiscoveryResType->DC_EVSEBidirectionalParameter );
+ }
+ grammarID = 3;
+ } else if ( iso2ChargeParameterDiscoveryResType->DC_EVSEChargeParameter_isUsed == 1u ) {
+ errn = encodeNBitUnsignedInteger(stream, 3, 4);
+ if(errn == 0) {
+ errn = encode_iso2DC_EVSEChargeParameterType(stream, &iso2ChargeParameterDiscoveryResType->DC_EVSEChargeParameter );
+ }
+ grammarID = 3;
+ } else if ( iso2ChargeParameterDiscoveryResType->EVSEEnergyTransferParameter_isUsed == 1u ) {
+ errn = encodeNBitUnsignedInteger(stream, 3, 5);
+ if(errn == 0) {
+ errn = encode_iso2EVSEEnergyTransferParameterType(stream, &iso2ChargeParameterDiscoveryResType->EVSEEnergyTransferParameter );
+ }
+ grammarID = 3;
+ } else if ( iso2ChargeParameterDiscoveryResType->WPT_EVSEChargeParameter_isUsed == 1u ) {
+ errn = encodeNBitUnsignedInteger(stream, 3, 6);
+ if(errn == 0) {
+ errn = encode_iso2WPT_EVSEChargeParameterType(stream, &iso2ChargeParameterDiscoveryResType->WPT_EVSEChargeParameter );
+ }
+ grammarID = 3;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 2577:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}AC_EVSEBidirectionalParameter), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}AC_EVSEChargeParameter), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}DC_EVSEBidirectionalParameter), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}DC_EVSEChargeParameter), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}EVSEEnergyTransferParameter), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}WPT_EVSEChargeParameter)] */
+ if ( iso2ChargeParameterDiscoveryResType->AC_EVSEBidirectionalParameter_isUsed == 1u ) {
+ errn = encodeNBitUnsignedInteger(stream, 3, 0);
+ if(errn == 0) {
+ errn = encode_iso2AC_EVSEBidirectionalParameterType(stream, &iso2ChargeParameterDiscoveryResType->AC_EVSEBidirectionalParameter );
+ }
+ grammarID = 3;
+ } else if ( iso2ChargeParameterDiscoveryResType->AC_EVSEChargeParameter_isUsed == 1u ) {
+ errn = encodeNBitUnsignedInteger(stream, 3, 1);
+ if(errn == 0) {
+ errn = encode_iso2AC_EVSEChargeParameterType(stream, &iso2ChargeParameterDiscoveryResType->AC_EVSEChargeParameter );
+ }
+ grammarID = 3;
+ } else if ( iso2ChargeParameterDiscoveryResType->DC_EVSEBidirectionalParameter_isUsed == 1u ) {
+ errn = encodeNBitUnsignedInteger(stream, 3, 2);
+ if(errn == 0) {
+ errn = encode_iso2DC_EVSEBidirectionalParameterType(stream, &iso2ChargeParameterDiscoveryResType->DC_EVSEBidirectionalParameter );
+ }
+ grammarID = 3;
+ } else if ( iso2ChargeParameterDiscoveryResType->DC_EVSEChargeParameter_isUsed == 1u ) {
+ errn = encodeNBitUnsignedInteger(stream, 3, 3);
+ if(errn == 0) {
+ errn = encode_iso2DC_EVSEChargeParameterType(stream, &iso2ChargeParameterDiscoveryResType->DC_EVSEChargeParameter );
+ }
+ grammarID = 3;
+ } else if ( iso2ChargeParameterDiscoveryResType->EVSEEnergyTransferParameter_isUsed == 1u ) {
+ errn = encodeNBitUnsignedInteger(stream, 3, 4);
+ if(errn == 0) {
+ errn = encode_iso2EVSEEnergyTransferParameterType(stream, &iso2ChargeParameterDiscoveryResType->EVSEEnergyTransferParameter );
+ }
+ grammarID = 3;
+ } else if ( iso2ChargeParameterDiscoveryResType->WPT_EVSEChargeParameter_isUsed == 1u ) {
+ errn = encodeNBitUnsignedInteger(stream, 3, 5);
+ if(errn == 0) {
+ errn = encode_iso2WPT_EVSEChargeParameterType(stream, &iso2ChargeParameterDiscoveryResType->WPT_EVSEChargeParameter );
+ }
+ grammarID = 3;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 3:
+ /* Element[END_ELEMENT] */
+ if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 1, 0);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } 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:2016:MsgBody,PowerDemandResType', base type name='V2GResponseType', content type='ELEMENT', isAbstract='false', hasTypeId='false', final='0', block='0', particle='(("urn:iso:15118:2:2016:MsgBody":ResponseCode,"urn:iso:15118:2:2016:MsgBody":EVSEStatus{0-1}),("urn:iso:15118:2:2016:MsgBody":EVSEOutputPower,"urn:iso:15118:2:2016:MsgBody":EVSEID,"urn:iso:15118:2:2016:MsgBody":SAScheduleTupleID{0-1},"urn:iso:15118:2:2016:MsgBody":MeterInfo{0-1},"urn:iso:15118:2:2016:MsgBody":ReceiptRequired{0-1},"urn:iso:15118:2:2016:MsgBody":PowerDemandParameters{0-1}))', derivedBy='EXTENSION'. */
+static int encode_iso2PowerDemandResType(bitstream_t* stream, struct iso2PowerDemandResType* iso2PowerDemandResType) {
+ int grammarID = 2578;
+ int done = 0;
+
+
+ while(!done) {
+ switch(grammarID) {
+ case 2578:
+ /* FirstStartTag[START_ELEMENT({urn:iso:15118:2:2016:MsgBody}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, 5, iso2PowerDemandResType->ResponseCode);
+ /* valid EE */
+ errn = encodeNBitUnsignedInteger(stream, 1, 0);
+ }
+ }
+ grammarID = 2579;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 2579:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgBody}EVSEStatus), START_ELEMENT({urn:iso:15118:2:2016:MsgBody}EVSEOutputPower)] */
+ if ( iso2PowerDemandResType->EVSEStatus_isUsed == 1u ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ if(errn == 0) {
+ errn = encode_iso2EVSEStatusType(stream, &iso2PowerDemandResType->EVSEStatus );
+ }
+ grammarID = 2580;
+ } else if ( 1 == 1 ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ errn = encode_iso2PhysicalValueType(stream, &iso2PowerDemandResType->EVSEOutputPower );
+ }
+ grammarID = 2581;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 2580:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgBody}EVSEOutputPower)] */
+ if ( 1 == 1 ) {
+ errn = encodeNBitUnsignedInteger(stream, 1, 0);
+ if(errn == 0) {
+ errn = encode_iso2PhysicalValueType(stream, &iso2PowerDemandResType->EVSEOutputPower );
+ }
+ grammarID = 2581;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 2581:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgBody}EVSEID)] */
+ if ( 1 == 1 ) {
+ errn = encodeNBitUnsignedInteger(stream, 1, 0);
+ if(errn == 0) {
+ /* FirstStartTag[CHARACTERS[STRING]] */
+ errn = encodeNBitUnsignedInteger(stream, 1, 0);
+ if(errn == 0) {
+ /* encode string as string table miss (+2 len)*/
+ errn = encodeUnsignedInteger16(stream, (uint16_t)(iso2PowerDemandResType->EVSEID.charactersLen + 2));
+ if (errn == 0) {
+ errn = encodeCharacters(stream, iso2PowerDemandResType->EVSEID.characters, iso2PowerDemandResType->EVSEID.charactersLen);
+ }
+ /* valid EE */
+ errn = encodeNBitUnsignedInteger(stream, 1, 0);
+ }
+ }
+ grammarID = 2582;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 2582:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgBody}SAScheduleTupleID), START_ELEMENT({urn:iso:15118:2:2016:MsgBody}MeterInfo), START_ELEMENT({urn:iso:15118:2:2016:MsgBody}ReceiptRequired), START_ELEMENT({urn:iso:15118:2:2016:MsgBody}PowerDemandParameters), END_ELEMENT] */
+ if ( iso2PowerDemandResType->SAScheduleTupleID_isUsed == 1u ) {
+ errn = encodeNBitUnsignedInteger(stream, 3, 0);
+ if(errn == 0) {
+ /* FirstStartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
+ errn = encodeNBitUnsignedInteger(stream, 1, 0);
+ if(errn == 0) {
+ errn = encodeNBitUnsignedInteger(stream, 8, (uint32_t)(iso2PowerDemandResType->SAScheduleTupleID - 1));
+ /* valid EE */
+ errn = encodeNBitUnsignedInteger(stream, 1, 0);
+ }
+ }
+ grammarID = 2583;
+ } else if ( iso2PowerDemandResType->MeterInfo_isUsed == 1u ) {
+ errn = encodeNBitUnsignedInteger(stream, 3, 1);
+ if(errn == 0) {
+ errn = encode_iso2MeterInfoType(stream, &iso2PowerDemandResType->MeterInfo );
+ }
+ grammarID = 2584;
+ } else if ( iso2PowerDemandResType->ReceiptRequired_isUsed == 1u ) {
+ errn = encodeNBitUnsignedInteger(stream, 3, 2);
+ if(errn == 0) {
+ /* FirstStartTag[CHARACTERS[BOOLEAN]] */
+ errn = encodeNBitUnsignedInteger(stream, 1, 0);
+ if(errn == 0) {
+ errn = encodeBoolean(stream, iso2PowerDemandResType->ReceiptRequired);
+ /* valid EE */
+ errn = encodeNBitUnsignedInteger(stream, 1, 0);
+ }
+ }
+ grammarID = 1873;
+ } else if ( iso2PowerDemandResType->PowerDemandParameters_isUsed == 1u ) {
+ errn = encodeNBitUnsignedInteger(stream, 3, 3);
+ if(errn == 0) {
+ errn = encode_iso2ParameterSetType(stream, &iso2PowerDemandResType->PowerDemandParameters );
+ }
+ grammarID = 3;
+ } else if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 3, 4);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 2583:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgBody}MeterInfo), START_ELEMENT({urn:iso:15118:2:2016:MsgBody}ReceiptRequired), START_ELEMENT({urn:iso:15118:2:2016:MsgBody}PowerDemandParameters), END_ELEMENT] */
+ if ( iso2PowerDemandResType->MeterInfo_isUsed == 1u ) {
+ errn = encodeNBitUnsignedInteger(stream, 3, 0);
+ if(errn == 0) {
+ errn = encode_iso2MeterInfoType(stream, &iso2PowerDemandResType->MeterInfo );
+ }
+ grammarID = 2584;
+ } else if ( iso2PowerDemandResType->ReceiptRequired_isUsed == 1u ) {
+ errn = encodeNBitUnsignedInteger(stream, 3, 1);
+ if(errn == 0) {
+ /* FirstStartTag[CHARACTERS[BOOLEAN]] */
+ errn = encodeNBitUnsignedInteger(stream, 1, 0);
+ if(errn == 0) {
+ errn = encodeBoolean(stream, iso2PowerDemandResType->ReceiptRequired);
+ /* valid EE */
+ errn = encodeNBitUnsignedInteger(stream, 1, 0);
+ }
+ }
+ grammarID = 1873;
+ } else if ( iso2PowerDemandResType->PowerDemandParameters_isUsed == 1u ) {
+ errn = encodeNBitUnsignedInteger(stream, 3, 2);
+ if(errn == 0) {
+ errn = encode_iso2ParameterSetType(stream, &iso2PowerDemandResType->PowerDemandParameters );
+ }
+ grammarID = 3;
+ } else if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 3, 3);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 2584:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgBody}ReceiptRequired), START_ELEMENT({urn:iso:15118:2:2016:MsgBody}PowerDemandParameters), END_ELEMENT] */
+ if ( iso2PowerDemandResType->ReceiptRequired_isUsed == 1u ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ if(errn == 0) {
+ /* FirstStartTag[CHARACTERS[BOOLEAN]] */
+ errn = encodeNBitUnsignedInteger(stream, 1, 0);
+ if(errn == 0) {
+ errn = encodeBoolean(stream, iso2PowerDemandResType->ReceiptRequired);
+ /* valid EE */
+ errn = encodeNBitUnsignedInteger(stream, 1, 0);
+ }
+ }
+ grammarID = 1873;
+ } else if ( iso2PowerDemandResType->PowerDemandParameters_isUsed == 1u ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ errn = encode_iso2ParameterSetType(stream, &iso2PowerDemandResType->PowerDemandParameters );
+ }
+ grammarID = 3;
+ } else if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 2);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 1873:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgBody}PowerDemandParameters), END_ELEMENT] */
+ if ( iso2PowerDemandResType->PowerDemandParameters_isUsed == 1u ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ if(errn == 0) {
+ errn = encode_iso2ParameterSetType(stream, &iso2PowerDemandResType->PowerDemandParameters );
+ }
+ grammarID = 3;
+ } else if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 3:
+ /* Element[END_ELEMENT] */
+ if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 1, 0);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } 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:2016:MsgDataTypes,ChargingProfileType', base type name='anyType', content type='ELEMENT', isAbstract='false', hasTypeId='false', final='0', block='0', particle='("urn:iso:15118:2:2016:MsgDataTypes":ProfileEntry{1-UNBOUNDED})', derivedBy='RESTRICTION'. */
+static int encode_iso2ChargingProfileType(bitstream_t* stream, struct iso2ChargingProfileType* iso2ChargingProfileType) {
+ int grammarID = 2585;
+ int done = 0;
+
+ unsigned int iso2ChargingProfileType_ProfileEntry_currArrayIndex = 0;
+
+ while(!done) {
+ switch(grammarID) {
+ case 2585:
+ /* FirstStartTag[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}ProfileEntry)] */
+ if (iso2ChargingProfileType_ProfileEntry_currArrayIndex < iso2ChargingProfileType->ProfileEntry.arrayLen ) {
+ errn = encodeNBitUnsignedInteger(stream, 1, 0);
+ if(errn == 0) {
+ errn = encode_iso2PMaxScheduleEntryType(stream, &iso2ChargingProfileType->ProfileEntry.array [iso2ChargingProfileType_ProfileEntry_currArrayIndex++]);
+ }
+ grammarID = 2586;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 2586:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}ProfileEntry), END_ELEMENT] */
+ if (iso2ChargingProfileType_ProfileEntry_currArrayIndex < iso2ChargingProfileType->ProfileEntry.arrayLen ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ if(errn == 0) {
+ errn = encode_iso2PMaxScheduleEntryType(stream, &iso2ChargingProfileType->ProfileEntry.array [iso2ChargingProfileType_ProfileEntry_currArrayIndex++]);
+ }
+ grammarID = 2586;
+ } else if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } 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:2016:MsgBody,FinePositioningReqType', base type name='BodyBaseType', content type='ELEMENT', isAbstract='false', hasTypeId='false', final='0', block='0', particle='("urn:iso:15118:2:2016:MsgBody":EVProcessing,"urn:iso:15118:2:2016:MsgDataTypes":EVFinePositioningParameters{0-1})', derivedBy='EXTENSION'. */
+static int encode_iso2FinePositioningReqType(bitstream_t* stream, struct iso2FinePositioningReqType* iso2FinePositioningReqType) {
+ int grammarID = 2587;
+ int done = 0;
+
+
+ while(!done) {
+ switch(grammarID) {
+ case 2587:
+ /* FirstStartTag[START_ELEMENT({urn:iso:15118:2:2016:MsgBody}EVProcessing)] */
+ 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, iso2FinePositioningReqType->EVProcessing);
+ /* valid EE */
+ errn = encodeNBitUnsignedInteger(stream, 1, 0);
+ }
+ }
+ grammarID = 2588;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 2588:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}EVFinePositioningParameters), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}Generic_EVFinePositioningParameters), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}LFA_EVFinePositioningParameters), END_ELEMENT] */
+ if ( iso2FinePositioningReqType->EVFinePositioningParameters_isUsed == 1u ) {
+ errn = encodeNBitUnsignedInteger(stream, 3, 0);
+ if(errn == 0) {
+ errn = encode_iso2EVFinePositioningParametersType(stream, &iso2FinePositioningReqType->EVFinePositioningParameters );
+ }
+ grammarID = 3;
+ } else if ( iso2FinePositioningReqType->Generic_EVFinePositioningParameters_isUsed == 1u ) {
+ errn = encodeNBitUnsignedInteger(stream, 3, 1);
+ if(errn == 0) {
+ errn = encode_iso2Generic_EVFinePositioningParametersType(stream, &iso2FinePositioningReqType->Generic_EVFinePositioningParameters );
+ }
+ grammarID = 3;
+ } else if ( iso2FinePositioningReqType->LFA_EVFinePositioningParameters_isUsed == 1u ) {
+ errn = encodeNBitUnsignedInteger(stream, 3, 2);
+ if(errn == 0) {
+ errn = encode_iso2LFA_EVFinePositioningParametersType(stream, &iso2FinePositioningReqType->LFA_EVFinePositioningParameters );
+ }
+ grammarID = 3;
+ } else if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 3, 3);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 3:
+ /* Element[END_ELEMENT] */
+ if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 1, 0);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } 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:2016:MsgDataTypes,SalesTariffType', base type name='anyType', content type='ELEMENT', isAbstract='false', hasTypeId='false', final='0', block='0', particle='("urn:iso:15118:2:2016:MsgDataTypes":SalesTariffID,"urn:iso:15118:2:2016:MsgDataTypes":SalesTariffDescription{0-1},"urn:iso:15118:2:2016:MsgDataTypes":NumEPriceLevels{0-1},"urn:iso:15118:2:2016:MsgDataTypes":SalesTariffEntry{1-UNBOUNDED})', derivedBy='RESTRICTION'. */
+static int encode_iso2SalesTariffType(bitstream_t* stream, struct iso2SalesTariffType* iso2SalesTariffType) {
+ int grammarID = 2589;
+ int done = 0;
+
+ unsigned int iso2SalesTariffType_SalesTariffEntry_currArrayIndex = 0;
+
+ while(!done) {
+ switch(grammarID) {
+ case 2589:
+ /* FirstStartTag[ATTRIBUTE[STRING]({urn:iso:15118:2:2016:MsgDataTypes}Id)] */
+ if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 1, 0);
+ if(errn == 0) {
+ /* encode string as string table miss (+2 len)*/
+ errn = encodeUnsignedInteger16(stream, (uint16_t)(iso2SalesTariffType->Id.charactersLen + 2));
+ if (errn == 0) {
+ errn = encodeCharacters(stream, iso2SalesTariffType->Id.characters, iso2SalesTariffType->Id.charactersLen);
+ }
+ }
+ grammarID = 2590;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 2590:
+ /* StartTag[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SalesTariffID)] */
+ if ( 1 == 1 ) {
+ errn = encodeNBitUnsignedInteger(stream, 1, 0);
+ if(errn == 0) {
+ /* FirstStartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
+ errn = encodeNBitUnsignedInteger(stream, 1, 0);
+ if(errn == 0) {
+ errn = encodeNBitUnsignedInteger(stream, 8, (uint32_t)(iso2SalesTariffType->SalesTariffID - 1));
+ /* valid EE */
+ errn = encodeNBitUnsignedInteger(stream, 1, 0);
+ }
+ }
+ grammarID = 2591;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 2591:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SalesTariffDescription), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}NumEPriceLevels), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SalesTariffEntry)] */
+ if ( iso2SalesTariffType->SalesTariffDescription_isUsed == 1u ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ if(errn == 0) {
+ /* FirstStartTag[CHARACTERS[STRING]] */
+ errn = encodeNBitUnsignedInteger(stream, 1, 0);
+ if(errn == 0) {
+ /* encode string as string table miss (+2 len)*/
+ errn = encodeUnsignedInteger16(stream, (uint16_t)(iso2SalesTariffType->SalesTariffDescription.charactersLen + 2));
+ if (errn == 0) {
+ errn = encodeCharacters(stream, iso2SalesTariffType->SalesTariffDescription.characters, iso2SalesTariffType->SalesTariffDescription.charactersLen);
+ }
+ /* valid EE */
+ errn = encodeNBitUnsignedInteger(stream, 1, 0);
+ }
+ }
+ grammarID = 2592;
+ } else if ( iso2SalesTariffType->NumEPriceLevels_isUsed == 1u ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
+ errn = encodeNBitUnsignedInteger(stream, 1, 0);
+ if(errn == 0) {
+ errn = encodeNBitUnsignedInteger(stream, 8, (uint32_t)(iso2SalesTariffType->NumEPriceLevels - 0));
+ /* valid EE */
+ errn = encodeNBitUnsignedInteger(stream, 1, 0);
+ }
+ }
+ grammarID = 2593;
+ } else if (iso2SalesTariffType_SalesTariffEntry_currArrayIndex < iso2SalesTariffType->SalesTariffEntry.arrayLen ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 2);
+ if(errn == 0) {
+ errn = encode_iso2SalesTariffEntryType(stream, &iso2SalesTariffType->SalesTariffEntry.array [iso2SalesTariffType_SalesTariffEntry_currArrayIndex++]);
+ }
+ grammarID = 2594;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 2592:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}NumEPriceLevels), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SalesTariffEntry)] */
+ if ( iso2SalesTariffType->NumEPriceLevels_isUsed == 1u ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ if(errn == 0) {
+ /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
+ errn = encodeNBitUnsignedInteger(stream, 1, 0);
+ if(errn == 0) {
+ errn = encodeNBitUnsignedInteger(stream, 8, (uint32_t)(iso2SalesTariffType->NumEPriceLevels - 0));
+ /* valid EE */
+ errn = encodeNBitUnsignedInteger(stream, 1, 0);
+ }
+ }
+ grammarID = 2593;
+ } else if (iso2SalesTariffType_SalesTariffEntry_currArrayIndex < iso2SalesTariffType->SalesTariffEntry.arrayLen ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ errn = encode_iso2SalesTariffEntryType(stream, &iso2SalesTariffType->SalesTariffEntry.array [iso2SalesTariffType_SalesTariffEntry_currArrayIndex++]);
+ }
+ grammarID = 2594;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 2593:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SalesTariffEntry)] */
+ if (iso2SalesTariffType_SalesTariffEntry_currArrayIndex < iso2SalesTariffType->SalesTariffEntry.arrayLen ) {
+ errn = encodeNBitUnsignedInteger(stream, 1, 0);
+ if(errn == 0) {
+ errn = encode_iso2SalesTariffEntryType(stream, &iso2SalesTariffType->SalesTariffEntry.array [iso2SalesTariffType_SalesTariffEntry_currArrayIndex++]);
+ }
+ grammarID = 2594;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 2594:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SalesTariffEntry), END_ELEMENT] */
+ if (iso2SalesTariffType_SalesTariffEntry_currArrayIndex < iso2SalesTariffType->SalesTariffEntry.arrayLen ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ if(errn == 0) {
+ errn = encode_iso2SalesTariffEntryType(stream, &iso2SalesTariffType->SalesTariffEntry.array [iso2SalesTariffType_SalesTariffEntry_currArrayIndex++]);
+ }
+ grammarID = 2594;
+ } else if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } 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:2016:MsgDataTypes,SensorType', base type name='anyType', content type='ELEMENT', isAbstract='false', hasTypeId='false', final='0', block='0', particle='("urn:iso:15118:2:2016:MsgDataTypes":SensorID,"urn:iso:15118:2:2016:MsgDataTypes":SensorPosition,"urn:iso:15118:2:2016:MsgDataTypes":SensorOrientation)', derivedBy='RESTRICTION'. */
+static int encode_iso2SensorType(bitstream_t* stream, struct iso2SensorType* iso2SensorType) {
+ int grammarID = 2595;
+ int done = 0;
+
+
+ while(!done) {
+ switch(grammarID) {
+ case 2595:
+ /* FirstStartTag[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorID)] */
+ if ( 1 == 1 ) {
+ errn = encodeNBitUnsignedInteger(stream, 1, 0);
+ if(errn == 0) {
+ /* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
+ errn = encodeNBitUnsignedInteger(stream, 1, 0);
+ if(errn == 0) {
+ errn = encodeNBitUnsignedInteger(stream, 8, (uint32_t)(iso2SensorType->SensorID - 0));
+ /* valid EE */
+ errn = encodeNBitUnsignedInteger(stream, 1, 0);
+ }
+ }
+ grammarID = 2596;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 2596:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorPosition)] */
+ if ( 1 == 1 ) {
+ errn = encodeNBitUnsignedInteger(stream, 1, 0);
+ if(errn == 0) {
+ errn = encode_iso2CartesianCoordinatesType(stream, &iso2SensorType->SensorPosition );
+ }
+ grammarID = 2597;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 2597:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorOrientation)] */
+ if ( 1 == 1 ) {
+ errn = encodeNBitUnsignedInteger(stream, 1, 0);
+ if(errn == 0) {
+ errn = encode_iso2CartesianCoordinatesType(stream, &iso2SensorType->SensorOrientation );
+ }
+ grammarID = 3;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 3:
+ /* Element[END_ELEMENT] */
+ if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 1, 0);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_GRAMMAR_ID;
+ break;
+ }
+ if(errn) {
+ done = 1;
+ }
+ }
+ return errn;
+}
+
+/* Complex type name='http://www.w3.org/2000/09/xmldsig#,SignatureValueType', base type name='base64Binary', content type='SIMPLE', isAbstract='false', hasTypeId='false', final='0', block='0', derivedBy='EXTENSION'. */
+static int encode_iso2SignatureValueType(bitstream_t* stream, struct iso2SignatureValueType* iso2SignatureValueType) {
+ int grammarID = 2598;
+ int done = 0;
+
+
+ while(!done) {
+ switch(grammarID) {
+ case 2598:
+ /* FirstStartTag[ATTRIBUTE[STRING](Id), CHARACTERS[BINARY_BASE64]] */
+ if ( iso2SignatureValueType->Id_isUsed == 1u ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ if(errn == 0) {
+ /* encode string as string table miss (+2 len)*/
+ errn = encodeUnsignedInteger16(stream, (uint16_t)(iso2SignatureValueType->Id.charactersLen + 2));
+ if (errn == 0) {
+ errn = encodeCharacters(stream, iso2SignatureValueType->Id.characters, iso2SignatureValueType->Id.charactersLen);
+ }
+ }
+ grammarID = 2016;
+ } else if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ errn = encodeUnsignedInteger16(stream, (uint16_t)(iso2SignatureValueType->CONTENT.bytesLen));
+ if (errn == 0) {
+ errn = encodeBytes(stream, iso2SignatureValueType->CONTENT.bytes, iso2SignatureValueType->CONTENT.bytesLen);
+ }
+ }
+ grammarID = 3;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 2016:
+ /* StartTag[CHARACTERS[BINARY_BASE64]] */
+ if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 1, 0);
+ if(errn == 0) {
+ errn = encodeUnsignedInteger16(stream, (uint16_t)(iso2SignatureValueType->CONTENT.bytesLen));
+ if (errn == 0) {
+ errn = encodeBytes(stream, iso2SignatureValueType->CONTENT.bytes, iso2SignatureValueType->CONTENT.bytesLen);
+ }
+ }
+ grammarID = 3;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 3:
+ /* Element[END_ELEMENT] */
+ if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 1, 0);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ default:
+ errn = EXI_ERROR_UNKOWN_GRAMMAR_ID;
+ break;
+ }
+ if(errn) {
+ done = 1;
+ }
+ }
+ return errn;
+}
+
+/* Complex type name='http://www.w3.org/2000/09/xmldsig#,SignedInfoType', base type name='anyType', content type='ELEMENT', isAbstract='false', hasTypeId='false', final='0', block='0', particle='("http://www.w3.org/2000/09/xmldsig#":CanonicalizationMethod,"http://www.w3.org/2000/09/xmldsig#":SignatureMethod,"http://www.w3.org/2000/09/xmldsig#":Reference{1-UNBOUNDED})', derivedBy='RESTRICTION'. */
+static int encode_iso2SignedInfoType(bitstream_t* stream, struct iso2SignedInfoType* iso2SignedInfoType) {
+ int grammarID = 2599;
+ int done = 0;
+
+ unsigned int iso2SignedInfoType_Reference_currArrayIndex = 0;
+
+ while(!done) {
+ switch(grammarID) {
+ case 2599:
+ /* FirstStartTag[ATTRIBUTE[STRING](Id), START_ELEMENT({http://www.w3.org/2000/09/xmldsig#}CanonicalizationMethod)] */
+ if ( iso2SignedInfoType->Id_isUsed == 1u ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ if(errn == 0) {
+ /* encode string as string table miss (+2 len)*/
+ errn = encodeUnsignedInteger16(stream, (uint16_t)(iso2SignedInfoType->Id.charactersLen + 2));
+ if (errn == 0) {
+ errn = encodeCharacters(stream, iso2SignedInfoType->Id.characters, iso2SignedInfoType->Id.charactersLen);
+ }
+ }
+ grammarID = 2600;
+ } else if ( 1 == 1 ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ errn = encode_iso2CanonicalizationMethodType(stream, &iso2SignedInfoType->CanonicalizationMethod );
+ }
+ grammarID = 2601;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 2600:
+ /* StartTag[START_ELEMENT({http://www.w3.org/2000/09/xmldsig#}CanonicalizationMethod)] */
+ if ( 1 == 1 ) {
+ errn = encodeNBitUnsignedInteger(stream, 1, 0);
+ if(errn == 0) {
+ errn = encode_iso2CanonicalizationMethodType(stream, &iso2SignedInfoType->CanonicalizationMethod );
+ }
+ grammarID = 2601;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 2601:
+ /* Element[START_ELEMENT({http://www.w3.org/2000/09/xmldsig#}SignatureMethod)] */
+ if ( 1 == 1 ) {
+ errn = encodeNBitUnsignedInteger(stream, 1, 0);
+ if(errn == 0) {
+ errn = encode_iso2SignatureMethodType(stream, &iso2SignedInfoType->SignatureMethod );
+ }
+ grammarID = 2602;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 2602:
+ /* Element[START_ELEMENT({http://www.w3.org/2000/09/xmldsig#}Reference)] */
+ if (iso2SignedInfoType_Reference_currArrayIndex < iso2SignedInfoType->Reference.arrayLen ) {
+ errn = encodeNBitUnsignedInteger(stream, 1, 0);
+ if(errn == 0) {
+ errn = encode_iso2ReferenceType(stream, &iso2SignedInfoType->Reference.array [iso2SignedInfoType_Reference_currArrayIndex++]);
+ }
+ grammarID = 1964;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 1964:
+ /* Element[START_ELEMENT({http://www.w3.org/2000/09/xmldsig#}Reference), END_ELEMENT] */
+ if (iso2SignedInfoType_Reference_currArrayIndex < iso2SignedInfoType->Reference.arrayLen ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ if(errn == 0) {
+ errn = encode_iso2ReferenceType(stream, &iso2SignedInfoType->Reference.array [iso2SignedInfoType_Reference_currArrayIndex++]);
+ }
+ grammarID = 1964;
+ } else if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } 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:2016:MsgBody,PowerDeliveryResType', base type name='V2GResponseType', content type='ELEMENT', isAbstract='false', hasTypeId='false', final='0', block='0', particle='(("urn:iso:15118:2:2016:MsgBody":ResponseCode,"urn:iso:15118:2:2016:MsgBody":EVSEStatus{0-1}),("urn:iso:15118:2:2016:MsgBody":EVSEProcessing))', derivedBy='EXTENSION'. */
+static int encode_iso2PowerDeliveryResType(bitstream_t* stream, struct iso2PowerDeliveryResType* iso2PowerDeliveryResType) {
+ int grammarID = 5;
+ int done = 0;
+
+
+ while(!done) {
+ switch(grammarID) {
+ case 5:
+ /* FirstStartTag[START_ELEMENT({urn:iso:15118:2:2016:MsgBody}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, 5, iso2PowerDeliveryResType->ResponseCode);
+ /* valid EE */
+ errn = encodeNBitUnsignedInteger(stream, 1, 0);
+ }
+ }
+ grammarID = 6;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 6:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgBody}EVSEStatus), START_ELEMENT({urn:iso:15118:2:2016:MsgBody}EVSEProcessing)] */
+ if ( iso2PowerDeliveryResType->EVSEStatus_isUsed == 1u ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 0);
+ if(errn == 0) {
+ errn = encode_iso2EVSEStatusType(stream, &iso2PowerDeliveryResType->EVSEStatus );
+ }
+ grammarID = 7;
+ } else if ( 1 == 1 ) {
+ errn = encodeNBitUnsignedInteger(stream, 2, 1);
+ if(errn == 0) {
+ /* FirstStartTag[CHARACTERS[ENUMERATION]] */
+ errn = encodeNBitUnsignedInteger(stream, 1, 0);
+ if(errn == 0) {
+ errn = encodeNBitUnsignedInteger(stream, 2, iso2PowerDeliveryResType->EVSEProcessing);
+ /* valid EE */
+ errn = encodeNBitUnsignedInteger(stream, 1, 0);
+ }
+ }
+ grammarID = 3;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 7:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgBody}EVSEProcessing)] */
+ 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, iso2PowerDeliveryResType->EVSEProcessing);
+ /* valid EE */
+ errn = encodeNBitUnsignedInteger(stream, 1, 0);
+ }
+ }
+ grammarID = 3;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 3:
+ /* Element[END_ELEMENT] */
+ if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 1, 0);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } 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:2016:MsgBody,CableCheckReqType', base type name='BodyBaseType', content type='EMPTY', isAbstract='false', hasTypeId='false', final='0', block='0', derivedBy='EXTENSION'. */
+static int encode_iso2CableCheckReqType(bitstream_t* stream, struct iso2CableCheckReqType* iso2CableCheckReqType) {
+ int grammarID = 674;
+ int done = 0;
+
+
+ while(!done) {
+ switch(grammarID) {
+ case 674:
+ /* FirstStartTag[END_ELEMENT] */
+ if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 1, 0);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } 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:2016:MsgDataTypes,SelectedServiceType', base type name='anyType', content type='ELEMENT', isAbstract='false', hasTypeId='false', final='0', block='0', particle='("urn:iso:15118:2:2016:MsgDataTypes":ServiceID,"urn:iso:15118:2:2016:MsgDataTypes":ParameterSetID)', derivedBy='RESTRICTION'. */
+static int encode_iso2SelectedServiceType(bitstream_t* stream, struct iso2SelectedServiceType* iso2SelectedServiceType) {
+ int grammarID = 2603;
+ int done = 0;
+
+
+ while(!done) {
+ switch(grammarID) {
+ case 2603:
+ /* FirstStartTag[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}ServiceID)] */
+ if ( 1 == 1 ) {
+ errn = encodeNBitUnsignedInteger(stream, 1, 0);
+ if(errn == 0) {
+ /* FirstStartTag[CHARACTERS[UNSIGNED_INTEGER]] */
+ errn = encodeNBitUnsignedInteger(stream, 1, 0);
+ if(errn == 0) {
+ errn = encodeUnsignedInteger16(stream, iso2SelectedServiceType->ServiceID);
+ /* valid EE */
+ errn = encodeNBitUnsignedInteger(stream, 1, 0);
+ }
+ }
+ grammarID = 2604;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 2604:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}ParameterSetID)] */
+ if ( 1 == 1 ) {
+ errn = encodeNBitUnsignedInteger(stream, 1, 0);
+ if(errn == 0) {
+ /* First(xsi:type)StartTag[CHARACTERS[UNSIGNED_INTEGER]] */
+ errn = encodeNBitUnsignedInteger(stream, 1, 0);
+ if(errn == 0) {
+ errn = encodeUnsignedInteger16(stream, iso2SelectedServiceType->ParameterSetID);
+ /* valid EE */
+ errn = encodeNBitUnsignedInteger(stream, 1, 0);
+ }
+ }
+ grammarID = 3;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 3:
+ /* Element[END_ELEMENT] */
+ if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 1, 0);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } 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:2016:MsgDataTypes,DiffieHellmanPublickeyType', base type name='dHpublickeyType', content type='SIMPLE', isAbstract='false', hasTypeId='false', final='0', block='0', derivedBy='EXTENSION'. */
+static int encode_iso2DiffieHellmanPublickeyType(bitstream_t* stream, struct iso2DiffieHellmanPublickeyType* iso2DiffieHellmanPublickeyType) {
+ int grammarID = 2015;
+ int done = 0;
+
+
+ while(!done) {
+ switch(grammarID) {
+ case 2015:
+ /* FirstStartTag[ATTRIBUTE[STRING]({urn:iso:15118:2:2016:MsgDataTypes}Id)] */
+ if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 1, 0);
+ if(errn == 0) {
+ /* encode string as string table miss (+2 len)*/
+ errn = encodeUnsignedInteger16(stream, (uint16_t)(iso2DiffieHellmanPublickeyType->Id.charactersLen + 2));
+ if (errn == 0) {
+ errn = encodeCharacters(stream, iso2DiffieHellmanPublickeyType->Id.characters, iso2DiffieHellmanPublickeyType->Id.charactersLen);
+ }
+ }
+ grammarID = 2016;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 2016:
+ /* StartTag[CHARACTERS[BINARY_BASE64]] */
+ if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 1, 0);
+ if(errn == 0) {
+ errn = encodeUnsignedInteger16(stream, (uint16_t)(iso2DiffieHellmanPublickeyType->CONTENT.bytesLen));
+ if (errn == 0) {
+ errn = encodeBytes(stream, iso2DiffieHellmanPublickeyType->CONTENT.bytes, iso2DiffieHellmanPublickeyType->CONTENT.bytesLen);
+ }
+ }
+ grammarID = 3;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 3:
+ /* Element[END_ELEMENT] */
+ if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 1, 0);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
+ } 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:2016:MsgDataTypes,EVSEStatusType', base type name='anyType', content type='ELEMENT', isAbstract='false', hasTypeId='false', final='0', block='0', particle='("urn:iso:15118:2:2016:MsgDataTypes":NotificationMaxDelay,"urn:iso:15118:2:2016:MsgDataTypes":EVSENotification)', derivedBy='RESTRICTION'. */
+static int encode_iso2EVSEStatusType(bitstream_t* stream, struct iso2EVSEStatusType* iso2EVSEStatusType) {
+ int grammarID = 2605;
+ int done = 0;
+
+
+ while(!done) {
+ switch(grammarID) {
+ case 2605:
+ /* FirstStartTag[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}NotificationMaxDelay)] */
+ if ( 1 == 1 ) {
+ errn = encodeNBitUnsignedInteger(stream, 1, 0);
+ if(errn == 0) {
+ /* First(xsi:type)StartTag[CHARACTERS[UNSIGNED_INTEGER]] */
+ errn = encodeNBitUnsignedInteger(stream, 1, 0);
+ if(errn == 0) {
+ errn = encodeUnsignedInteger16(stream, iso2EVSEStatusType->NotificationMaxDelay);
+ /* valid EE */
+ errn = encodeNBitUnsignedInteger(stream, 1, 0);
+ }
+ }
+ grammarID = 2606;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 2606:
+ /* Element[START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}EVSENotification)] */
+ 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, 1, iso2EVSEStatusType->EVSENotification);
+ /* valid EE */
+ errn = encodeNBitUnsignedInteger(stream, 1, 0);
+ }
+ }
+ grammarID = 3;
+ } else {
+ errn = EXI_ERROR_UNKOWN_EVENT;
+ }
+ break;
+ case 3:
+ /* Element[END_ELEMENT] */
+ if (1==1) {
+ errn = encodeNBitUnsignedInteger(stream, 1, 0);
+ if(errn == 0) {
+ done = 1;
+ }
+ grammarID = 4;
} else {
errn = EXI_ERROR_UNKOWN_EVENT;
}
@@ -67888,214 +58981,214 @@ static int encode_v2gDigestMethodType(bitstream_t* stream, struct v2gDigestMetho
-int encode_v2gExiDocument(bitstream_t* stream, struct v2gEXIDocument* exiDoc) {
+int encode_iso2ExiDocument(bitstream_t* stream, struct iso2EXIDocument* exiDoc) {
errn = writeEXIHeader(stream);
if(errn == 0) {
- /* DocContent[START_ELEMENT({urn:iso:15118:2:2016:MsgBody}AC_BidirectionalControlReq), START_ELEMENT({urn:iso:15118:2:2016:MsgBody}AC_BidirectionalControlRes), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}AC_EVBidirectionalParameter), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}AC_EVChargeParameter), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}AC_EVSEBidirectionalParameter), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}AC_EVSEChargeParameter), START_ELEMENT({urn:iso:15118:2:2016:MsgBody}AlignmentCheckReq), START_ELEMENT({urn:iso:15118:2:2016:MsgBody}AlignmentCheckRes), START_ELEMENT({urn:iso:15118:2:2016:MsgBody}AuthorizationReq), START_ELEMENT({urn:iso:15118:2:2016:MsgBody}AuthorizationRes), START_ELEMENT({urn:iso:15118:2:2016:MsgBody}BodyElement), START_ELEMENT({urn:iso:15118:2:2016:MsgBody}CableCheckReq), START_ELEMENT({urn:iso:15118:2:2016:MsgBody}CableCheckRes), START_ELEMENT({http://www.w3.org/2000/09/xmldsig#}CanonicalizationMethod), START_ELEMENT({urn:iso:15118:2:2016:MsgBody}CertificateInstallationReq), START_ELEMENT({urn:iso:15118:2:2016:MsgBody}CertificateInstallationRes), START_ELEMENT({urn:iso:15118:2:2016:MsgBody}CertificateUpdateReq), START_ELEMENT({urn:iso:15118:2:2016:MsgBody}CertificateUpdateRes), START_ELEMENT({urn:iso:15118:2:2016:MsgBody}ChargeParameterDiscoveryReq), START_ELEMENT({urn:iso:15118:2:2016:MsgBody}ChargeParameterDiscoveryRes), START_ELEMENT({urn:iso:15118:2:2016:MsgBody}ChargingStatusReq), START_ELEMENT({urn:iso:15118:2:2016:MsgBody}ChargingStatusRes), START_ELEMENT({urn:iso:15118:2:2016:MsgBody}ConnectChargingDeviceReq), START_ELEMENT({urn:iso:15118:2:2016:MsgBody}ConnectChargingDeviceRes), START_ELEMENT({urn:iso:15118:2:2016:MsgBody}CurrentDemandReq), START_ELEMENT({urn:iso:15118:2:2016:MsgBody}CurrentDemandRes), START_ELEMENT({urn:iso:15118:2:2016:MsgBody}DC_BidirectionalControlReq), START_ELEMENT({urn:iso:15118:2:2016:MsgBody}DC_BidirectionalControlRes), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}DC_EVBidirectionalParameter), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}DC_EVChargeParameter), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}DC_EVSEBidirectionalParameter), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}DC_EVSEChargeParameter), START_ELEMENT({http://www.w3.org/2000/09/xmldsig#}DSAKeyValue), START_ELEMENT({http://www.w3.org/2000/09/xmldsig#}DigestMethod), START_ELEMENT({http://www.w3.org/2000/09/xmldsig#}DigestValue), START_ELEMENT({urn:iso:15118:2:2016:MsgBody}DisconnectChargingDeviceReq), START_ELEMENT({urn:iso:15118:2:2016:MsgBody}DisconnectChargingDeviceRes), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}EVEnergyTransferParameter), START_ELEMENT({urn:iso:15118:2:2016:MsgBody}EVErrorInformation), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}EVFinePositioningParameters), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}EVFinePositioningSetupParameters), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}EVSEEnergyTransferParameter), START_ELEMENT({urn:iso:15118:2:2016:MsgBody}EVSEErrorInformation), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}EVSEFinePositioningParameters), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}EVSEFinePositioningSetupParameters), START_ELEMENT({urn:iso:15118:2:2016:MsgBody}ErrorInformation), START_ELEMENT({urn:iso:15118:2:2016:MsgBody}FinePositioningReq), START_ELEMENT({urn:iso:15118:2:2016:MsgBody}FinePositioningRes), START_ELEMENT({urn:iso:15118:2:2016:MsgBody}FinePositioningSetupReq), START_ELEMENT({urn:iso:15118:2:2016:MsgBody}FinePositioningSetupRes), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}Generic_EVFinePositioningParameters), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}Generic_EVSEFinePositioningParameters), START_ELEMENT({http://www.w3.org/2000/09/xmldsig#}KeyInfo), START_ELEMENT({http://www.w3.org/2000/09/xmldsig#}KeyName), START_ELEMENT({http://www.w3.org/2000/09/xmldsig#}KeyValue), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}LFA_EVFinePositioningParameters), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}LFA_EVFinePositioningSetupParameters), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}LFA_EVSEFinePositioningSetupParameters), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}LF_EVSEFinePositioningParameters), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MV_EVSEFinePositioningParameters), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MV_EVSEFinePositioningSetupParameters), START_ELEMENT({http://www.w3.org/2000/09/xmldsig#}Manifest), START_ELEMENT({urn:iso:15118:2:2016:MsgBody}MeteringReceiptReq), START_ELEMENT({urn:iso:15118:2:2016:MsgBody}MeteringReceiptRes), START_ELEMENT({http://www.w3.org/2000/09/xmldsig#}MgmtData), START_ELEMENT({http://www.w3.org/2000/09/xmldsig#}Object), START_ELEMENT({http://www.w3.org/2000/09/xmldsig#}PGPData), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}PMaxScheduleEntry), START_ELEMENT({urn:iso:15118:2:2016:MsgBody}PairingReq), START_ELEMENT({urn:iso:15118:2:2016:MsgBody}PairingRes), START_ELEMENT({urn:iso:15118:2:2016:MsgBody}PaymentDetailsReq), START_ELEMENT({urn:iso:15118:2:2016:MsgBody}PaymentDetailsRes), START_ELEMENT({urn:iso:15118:2:2016:MsgBody}PaymentServiceSelectionReq), START_ELEMENT({urn:iso:15118:2:2016:MsgBody}PaymentServiceSelectionRes), START_ELEMENT({urn:iso:15118:2:2016:MsgBody}PowerDeliveryReq), START_ELEMENT({urn:iso:15118:2:2016:MsgBody}PowerDeliveryRes), START_ELEMENT({urn:iso:15118:2:2016:MsgBody}PowerDemandReq), START_ELEMENT({urn:iso:15118:2:2016:MsgBody}PowerDemandRes), START_ELEMENT({urn:iso:15118:2:2016:MsgBody}PreChargeReq), START_ELEMENT({urn:iso:15118:2:2016:MsgBody}PreChargeRes), START_ELEMENT({http://www.w3.org/2000/09/xmldsig#}RSAKeyValue), START_ELEMENT({http://www.w3.org/2000/09/xmldsig#}Reference), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}RelativeTimeInterval), START_ELEMENT({http://www.w3.org/2000/09/xmldsig#}RetrievalMethod), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SAScheduleList), START_ELEMENT({http://www.w3.org/2000/09/xmldsig#}SPKIData), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SalesTariffEntry), START_ELEMENT({urn:iso:15118:2:2016:MsgBody}ServiceDetailReq), START_ELEMENT({urn:iso:15118:2:2016:MsgBody}ServiceDetailRes), START_ELEMENT({urn:iso:15118:2:2016:MsgBody}ServiceDiscoveryReq), START_ELEMENT({urn:iso:15118:2:2016:MsgBody}ServiceDiscoveryRes), START_ELEMENT({urn:iso:15118:2:2016:MsgBody}SessionSetupReq), START_ELEMENT({urn:iso:15118:2:2016:MsgBody}SessionSetupRes), START_ELEMENT({urn:iso:15118:2:2016:MsgBody}SessionStopReq), START_ELEMENT({urn:iso:15118:2:2016:MsgBody}SessionStopRes), START_ELEMENT({http://www.w3.org/2000/09/xmldsig#}Signature), START_ELEMENT({http://www.w3.org/2000/09/xmldsig#}SignatureMethod), START_ELEMENT({http://www.w3.org/2000/09/xmldsig#}SignatureProperties), START_ELEMENT({http://www.w3.org/2000/09/xmldsig#}SignatureProperty), START_ELEMENT({http://www.w3.org/2000/09/xmldsig#}SignatureValue), START_ELEMENT({http://www.w3.org/2000/09/xmldsig#}SignedInfo), START_ELEMENT({urn:iso:15118:2:2016:MsgBody}SystemStatusReq), START_ELEMENT({urn:iso:15118:2:2016:MsgBody}SystemStatusRes), START_ELEMENT({http://www.w3.org/2000/09/xmldsig#}Transform), START_ELEMENT({http://www.w3.org/2000/09/xmldsig#}Transforms), START_ELEMENT({urn:iso:15118:2:2016:MsgBody}V2GRequest), START_ELEMENT({urn:iso:15118:2:2016:MsgBody}V2GResponse), START_ELEMENT({urn:iso:15118:2:2016:MsgDef}V2G_Message), START_ELEMENT({urn:iso:15118:2:2016:MsgBody}VehicleCheckInReq), START_ELEMENT({urn:iso:15118:2:2016:MsgBody}VehicleCheckInRes), START_ELEMENT({urn:iso:15118:2:2016:MsgBody}VehicleCheckOutReq), START_ELEMENT({urn:iso:15118:2:2016:MsgBody}VehicleCheckOutRes), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}WPT_EVChargeParameter), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}WPT_EVSEChargeParameter), START_ELEMENT({urn:iso:15118:2:2016:MsgBody}WeldingDetectionReq), START_ELEMENT({urn:iso:15118:2:2016:MsgBody}WeldingDetectionRes), START_ELEMENT({http://www.w3.org/2000/09/xmldsig#}X509Data), START_ELEMENT_GENERIC] */
+ /* DocContent[START_ELEMENT({urn:iso:15118:2:2016:MsgBody}AC_BidirectionalControlReq), START_ELEMENT({urn:iso:15118:2:2016:MsgBody}AC_BidirectionalControlRes), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}AC_EVBidirectionalParameter), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}AC_EVChargeParameter), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}AC_EVSEBidirectionalParameter), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}AC_EVSEChargeParameter), START_ELEMENT({urn:iso:15118:2:2016:MsgBody}AlignmentCheckReq), START_ELEMENT({urn:iso:15118:2:2016:MsgBody}AlignmentCheckRes), START_ELEMENT({urn:iso:15118:2:2016:MsgBody}AuthorizationReq), START_ELEMENT({urn:iso:15118:2:2016:MsgBody}AuthorizationRes), START_ELEMENT({urn:iso:15118:2:2016:MsgBody}BodyElement), START_ELEMENT({urn:iso:15118:2:2016:MsgBody}CableCheckReq), START_ELEMENT({urn:iso:15118:2:2016:MsgBody}CableCheckRes), START_ELEMENT({http://www.w3.org/2000/09/xmldsig#}CanonicalizationMethod), START_ELEMENT({urn:iso:15118:2:2016:MsgBody}CertificateInstallationReq), START_ELEMENT({urn:iso:15118:2:2016:MsgBody}CertificateInstallationRes), START_ELEMENT({urn:iso:15118:2:2016:MsgBody}CertificateUpdateReq), START_ELEMENT({urn:iso:15118:2:2016:MsgBody}CertificateUpdateRes), START_ELEMENT({urn:iso:15118:2:2016:MsgBody}ChargeParameterDiscoveryReq), START_ELEMENT({urn:iso:15118:2:2016:MsgBody}ChargeParameterDiscoveryRes), START_ELEMENT({urn:iso:15118:2:2016:MsgBody}ChargingStatusReq), START_ELEMENT({urn:iso:15118:2:2016:MsgBody}ChargingStatusRes), START_ELEMENT({urn:iso:15118:2:2016:MsgBody}ConnectChargingDeviceReq), START_ELEMENT({urn:iso:15118:2:2016:MsgBody}ConnectChargingDeviceRes), START_ELEMENT({urn:iso:15118:2:2016:MsgBody}CurrentDemandReq), START_ELEMENT({urn:iso:15118:2:2016:MsgBody}CurrentDemandRes), START_ELEMENT({urn:iso:15118:2:2016:MsgBody}DC_BidirectionalControlReq), START_ELEMENT({urn:iso:15118:2:2016:MsgBody}DC_BidirectionalControlRes), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}DC_EVBidirectionalParameter), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}DC_EVChargeParameter), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}DC_EVSEBidirectionalParameter), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}DC_EVSEChargeParameter), START_ELEMENT({http://www.w3.org/2000/09/xmldsig#}DSAKeyValue), START_ELEMENT({http://www.w3.org/2000/09/xmldsig#}DigestMethod), START_ELEMENT({http://www.w3.org/2000/09/xmldsig#}DigestValue), START_ELEMENT({urn:iso:15118:2:2016:MsgBody}DisconnectChargingDeviceReq), START_ELEMENT({urn:iso:15118:2:2016:MsgBody}DisconnectChargingDeviceRes), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}EVEnergyTransferParameter), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}EVFinePositioningParameters), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}EVFinePositioningSetupParameters), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}EVSEEnergyTransferParameter), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}EVSEFinePositioningParameters), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}EVSEFinePositioningSetupParameters), START_ELEMENT({urn:iso:15118:2:2016:MsgBody}FinePositioningReq), START_ELEMENT({urn:iso:15118:2:2016:MsgBody}FinePositioningRes), START_ELEMENT({urn:iso:15118:2:2016:MsgBody}FinePositioningSetupReq), START_ELEMENT({urn:iso:15118:2:2016:MsgBody}FinePositioningSetupRes), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}Generic_EVFinePositioningParameters), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}Generic_EVSEFinePositioningParameters), START_ELEMENT({http://www.w3.org/2000/09/xmldsig#}KeyInfo), START_ELEMENT({http://www.w3.org/2000/09/xmldsig#}KeyName), START_ELEMENT({http://www.w3.org/2000/09/xmldsig#}KeyValue), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}LFA_EVFinePositioningParameters), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}LFA_EVFinePositioningSetupParameters), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}LFA_EVSEFinePositioningParameters), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}LFA_EVSEFinePositioningSetupParameters), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MV_EVSEFinePositioningParameters), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MV_EVSEFinePositioningSetupParameters), START_ELEMENT({http://www.w3.org/2000/09/xmldsig#}Manifest), START_ELEMENT({urn:iso:15118:2:2016:MsgBody}MeteringReceiptReq), START_ELEMENT({urn:iso:15118:2:2016:MsgBody}MeteringReceiptRes), START_ELEMENT({http://www.w3.org/2000/09/xmldsig#}MgmtData), START_ELEMENT({http://www.w3.org/2000/09/xmldsig#}Object), START_ELEMENT({http://www.w3.org/2000/09/xmldsig#}PGPData), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}PMaxScheduleEntry), START_ELEMENT({urn:iso:15118:2:2016:MsgBody}PairingReq), START_ELEMENT({urn:iso:15118:2:2016:MsgBody}PairingRes), START_ELEMENT({urn:iso:15118:2:2016:MsgBody}PaymentDetailsReq), START_ELEMENT({urn:iso:15118:2:2016:MsgBody}PaymentDetailsRes), START_ELEMENT({urn:iso:15118:2:2016:MsgBody}PaymentServiceSelectionReq), START_ELEMENT({urn:iso:15118:2:2016:MsgBody}PaymentServiceSelectionRes), START_ELEMENT({urn:iso:15118:2:2016:MsgBody}PowerDeliveryReq), START_ELEMENT({urn:iso:15118:2:2016:MsgBody}PowerDeliveryRes), START_ELEMENT({urn:iso:15118:2:2016:MsgBody}PowerDemandReq), START_ELEMENT({urn:iso:15118:2:2016:MsgBody}PowerDemandRes), START_ELEMENT({urn:iso:15118:2:2016:MsgBody}PreChargeReq), START_ELEMENT({urn:iso:15118:2:2016:MsgBody}PreChargeRes), START_ELEMENT({http://www.w3.org/2000/09/xmldsig#}RSAKeyValue), START_ELEMENT({http://www.w3.org/2000/09/xmldsig#}Reference), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}RelativeTimeInterval), START_ELEMENT({http://www.w3.org/2000/09/xmldsig#}RetrievalMethod), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SAScheduleList), START_ELEMENT({http://www.w3.org/2000/09/xmldsig#}SPKIData), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SalesTariffEntry), START_ELEMENT({urn:iso:15118:2:2016:MsgBody}ServiceDetailReq), START_ELEMENT({urn:iso:15118:2:2016:MsgBody}ServiceDetailRes), START_ELEMENT({urn:iso:15118:2:2016:MsgBody}ServiceDiscoveryReq), START_ELEMENT({urn:iso:15118:2:2016:MsgBody}ServiceDiscoveryRes), START_ELEMENT({urn:iso:15118:2:2016:MsgBody}SessionSetupReq), START_ELEMENT({urn:iso:15118:2:2016:MsgBody}SessionSetupRes), START_ELEMENT({urn:iso:15118:2:2016:MsgBody}SessionStopReq), START_ELEMENT({urn:iso:15118:2:2016:MsgBody}SessionStopRes), START_ELEMENT({http://www.w3.org/2000/09/xmldsig#}Signature), START_ELEMENT({http://www.w3.org/2000/09/xmldsig#}SignatureMethod), START_ELEMENT({http://www.w3.org/2000/09/xmldsig#}SignatureProperties), START_ELEMENT({http://www.w3.org/2000/09/xmldsig#}SignatureProperty), START_ELEMENT({http://www.w3.org/2000/09/xmldsig#}SignatureValue), START_ELEMENT({http://www.w3.org/2000/09/xmldsig#}SignedInfo), START_ELEMENT({urn:iso:15118:2:2016:MsgBody}SystemStatusReq), START_ELEMENT({urn:iso:15118:2:2016:MsgBody}SystemStatusRes), START_ELEMENT({http://www.w3.org/2000/09/xmldsig#}Transform), START_ELEMENT({http://www.w3.org/2000/09/xmldsig#}Transforms), START_ELEMENT({urn:iso:15118:2:2016:MsgBody}V2GRequest), START_ELEMENT({urn:iso:15118:2:2016:MsgBody}V2GResponse), START_ELEMENT({urn:iso:15118:2:2016:MsgDef}V2G_Message), START_ELEMENT({urn:iso:15118:2:2016:MsgBody}VehicleCheckInReq), START_ELEMENT({urn:iso:15118:2:2016:MsgBody}VehicleCheckInRes), START_ELEMENT({urn:iso:15118:2:2016:MsgBody}VehicleCheckOutReq), START_ELEMENT({urn:iso:15118:2:2016:MsgBody}VehicleCheckOutRes), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}WPT_EVChargeParameter), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}WPT_EVSEChargeParameter), START_ELEMENT({urn:iso:15118:2:2016:MsgBody}WeldingDetectionReq), START_ELEMENT({urn:iso:15118:2:2016:MsgBody}WeldingDetectionRes), START_ELEMENT({http://www.w3.org/2000/09/xmldsig#}X509Data), START_ELEMENT_GENERIC] */
if ( exiDoc->AC_BidirectionalControlReq_isUsed == 1u ) {
/* START_ELEMENT({urn:iso:15118:2:2016:MsgBody}AC_BidirectionalControlReq) */
errn = encodeNBitUnsignedInteger(stream, 7, 0);
if(errn == 0) {
- errn = encode_v2gAC_BidirectionalControlReqType(stream, &exiDoc->AC_BidirectionalControlReq );
+ errn = encode_iso2AC_BidirectionalControlReqType(stream, &exiDoc->AC_BidirectionalControlReq );
}
} else if ( exiDoc->AC_BidirectionalControlRes_isUsed == 1u ) {
/* START_ELEMENT({urn:iso:15118:2:2016:MsgBody}AC_BidirectionalControlRes) */
errn = encodeNBitUnsignedInteger(stream, 7, 1);
if(errn == 0) {
- errn = encode_v2gAC_BidirectionalControlResType(stream, &exiDoc->AC_BidirectionalControlRes );
+ errn = encode_iso2AC_BidirectionalControlResType(stream, &exiDoc->AC_BidirectionalControlRes );
}
} else if ( exiDoc->AC_EVBidirectionalParameter_isUsed == 1u ) {
/* START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}AC_EVBidirectionalParameter) */
errn = encodeNBitUnsignedInteger(stream, 7, 2);
if(errn == 0) {
- errn = encode_v2gAC_EVBidirectionalParameterType(stream, &exiDoc->AC_EVBidirectionalParameter );
+ errn = encode_iso2AC_EVBidirectionalParameterType(stream, &exiDoc->AC_EVBidirectionalParameter );
}
} else if ( exiDoc->AC_EVChargeParameter_isUsed == 1u ) {
/* START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}AC_EVChargeParameter) */
errn = encodeNBitUnsignedInteger(stream, 7, 3);
if(errn == 0) {
- errn = encode_v2gAC_EVChargeParameterType(stream, &exiDoc->AC_EVChargeParameter );
+ errn = encode_iso2AC_EVChargeParameterType(stream, &exiDoc->AC_EVChargeParameter );
}
} else if ( exiDoc->AC_EVSEBidirectionalParameter_isUsed == 1u ) {
/* START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}AC_EVSEBidirectionalParameter) */
errn = encodeNBitUnsignedInteger(stream, 7, 4);
if(errn == 0) {
- errn = encode_v2gAC_EVSEBidirectionalParameterType(stream, &exiDoc->AC_EVSEBidirectionalParameter );
+ errn = encode_iso2AC_EVSEBidirectionalParameterType(stream, &exiDoc->AC_EVSEBidirectionalParameter );
}
} else if ( exiDoc->AC_EVSEChargeParameter_isUsed == 1u ) {
/* START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}AC_EVSEChargeParameter) */
errn = encodeNBitUnsignedInteger(stream, 7, 5);
if(errn == 0) {
- errn = encode_v2gAC_EVSEChargeParameterType(stream, &exiDoc->AC_EVSEChargeParameter );
+ errn = encode_iso2AC_EVSEChargeParameterType(stream, &exiDoc->AC_EVSEChargeParameter );
}
} else if ( exiDoc->AlignmentCheckReq_isUsed == 1u ) {
/* START_ELEMENT({urn:iso:15118:2:2016:MsgBody}AlignmentCheckReq) */
errn = encodeNBitUnsignedInteger(stream, 7, 6);
if(errn == 0) {
- errn = encode_v2gAlignmentCheckReqType(stream, &exiDoc->AlignmentCheckReq );
+ errn = encode_iso2AlignmentCheckReqType(stream, &exiDoc->AlignmentCheckReq );
}
} else if ( exiDoc->AlignmentCheckRes_isUsed == 1u ) {
/* START_ELEMENT({urn:iso:15118:2:2016:MsgBody}AlignmentCheckRes) */
errn = encodeNBitUnsignedInteger(stream, 7, 7);
if(errn == 0) {
- errn = encode_v2gAlignmentCheckResType(stream, &exiDoc->AlignmentCheckRes );
+ errn = encode_iso2AlignmentCheckResType(stream, &exiDoc->AlignmentCheckRes );
}
} else if ( exiDoc->AuthorizationReq_isUsed == 1u ) {
/* START_ELEMENT({urn:iso:15118:2:2016:MsgBody}AuthorizationReq) */
errn = encodeNBitUnsignedInteger(stream, 7, 8);
if(errn == 0) {
- errn = encode_v2gAuthorizationReqType(stream, &exiDoc->AuthorizationReq );
+ errn = encode_iso2AuthorizationReqType(stream, &exiDoc->AuthorizationReq );
}
} else if ( exiDoc->AuthorizationRes_isUsed == 1u ) {
/* START_ELEMENT({urn:iso:15118:2:2016:MsgBody}AuthorizationRes) */
errn = encodeNBitUnsignedInteger(stream, 7, 9);
if(errn == 0) {
- errn = encode_v2gAuthorizationResType(stream, &exiDoc->AuthorizationRes );
+ errn = encode_iso2AuthorizationResType(stream, &exiDoc->AuthorizationRes );
}
} else if ( exiDoc->BodyElement_isUsed == 1u ) {
/* START_ELEMENT({urn:iso:15118:2:2016:MsgBody}BodyElement) */
errn = encodeNBitUnsignedInteger(stream, 7, 10);
if(errn == 0) {
- errn = encode_v2gBodyBaseType(stream, &exiDoc->BodyElement );
+ errn = encode_iso2BodyBaseType(stream, &exiDoc->BodyElement );
}
} else if ( exiDoc->CableCheckReq_isUsed == 1u ) {
/* START_ELEMENT({urn:iso:15118:2:2016:MsgBody}CableCheckReq) */
errn = encodeNBitUnsignedInteger(stream, 7, 11);
if(errn == 0) {
- errn = encode_v2gBodyBaseType(stream, &exiDoc->CableCheckReq );
+ errn = encode_iso2CableCheckReqType(stream, &exiDoc->CableCheckReq );
}
} else if ( exiDoc->CableCheckRes_isUsed == 1u ) {
/* START_ELEMENT({urn:iso:15118:2:2016:MsgBody}CableCheckRes) */
errn = encodeNBitUnsignedInteger(stream, 7, 12);
if(errn == 0) {
- errn = encode_v2gCableCheckResType(stream, &exiDoc->CableCheckRes );
+ errn = encode_iso2CableCheckResType(stream, &exiDoc->CableCheckRes );
}
} else if ( exiDoc->CanonicalizationMethod_isUsed == 1u ) {
/* START_ELEMENT({http://www.w3.org/2000/09/xmldsig#}CanonicalizationMethod) */
errn = encodeNBitUnsignedInteger(stream, 7, 13);
if(errn == 0) {
- errn = encode_v2gCanonicalizationMethodType(stream, &exiDoc->CanonicalizationMethod );
+ errn = encode_iso2CanonicalizationMethodType(stream, &exiDoc->CanonicalizationMethod );
}
} else if ( exiDoc->CertificateInstallationReq_isUsed == 1u ) {
/* START_ELEMENT({urn:iso:15118:2:2016:MsgBody}CertificateInstallationReq) */
errn = encodeNBitUnsignedInteger(stream, 7, 14);
if(errn == 0) {
- errn = encode_v2gCertificateInstallationReqType(stream, &exiDoc->CertificateInstallationReq );
+ errn = encode_iso2CertificateInstallationReqType(stream, &exiDoc->CertificateInstallationReq );
}
} else if ( exiDoc->CertificateInstallationRes_isUsed == 1u ) {
/* START_ELEMENT({urn:iso:15118:2:2016:MsgBody}CertificateInstallationRes) */
errn = encodeNBitUnsignedInteger(stream, 7, 15);
if(errn == 0) {
- errn = encode_v2gCertificateInstallationResType(stream, &exiDoc->CertificateInstallationRes );
+ errn = encode_iso2CertificateInstallationResType(stream, &exiDoc->CertificateInstallationRes );
}
} else if ( exiDoc->CertificateUpdateReq_isUsed == 1u ) {
/* START_ELEMENT({urn:iso:15118:2:2016:MsgBody}CertificateUpdateReq) */
errn = encodeNBitUnsignedInteger(stream, 7, 16);
if(errn == 0) {
- errn = encode_v2gCertificateUpdateReqType(stream, &exiDoc->CertificateUpdateReq );
+ errn = encode_iso2CertificateUpdateReqType(stream, &exiDoc->CertificateUpdateReq );
}
} else if ( exiDoc->CertificateUpdateRes_isUsed == 1u ) {
/* START_ELEMENT({urn:iso:15118:2:2016:MsgBody}CertificateUpdateRes) */
errn = encodeNBitUnsignedInteger(stream, 7, 17);
if(errn == 0) {
- errn = encode_v2gCertificateUpdateResType(stream, &exiDoc->CertificateUpdateRes );
+ errn = encode_iso2CertificateUpdateResType(stream, &exiDoc->CertificateUpdateRes );
}
} else if ( exiDoc->ChargeParameterDiscoveryReq_isUsed == 1u ) {
/* START_ELEMENT({urn:iso:15118:2:2016:MsgBody}ChargeParameterDiscoveryReq) */
errn = encodeNBitUnsignedInteger(stream, 7, 18);
if(errn == 0) {
- errn = encode_v2gChargeParameterDiscoveryReqType(stream, &exiDoc->ChargeParameterDiscoveryReq );
+ errn = encode_iso2ChargeParameterDiscoveryReqType(stream, &exiDoc->ChargeParameterDiscoveryReq );
}
} else if ( exiDoc->ChargeParameterDiscoveryRes_isUsed == 1u ) {
/* START_ELEMENT({urn:iso:15118:2:2016:MsgBody}ChargeParameterDiscoveryRes) */
errn = encodeNBitUnsignedInteger(stream, 7, 19);
if(errn == 0) {
- errn = encode_v2gChargeParameterDiscoveryResType(stream, &exiDoc->ChargeParameterDiscoveryRes );
+ errn = encode_iso2ChargeParameterDiscoveryResType(stream, &exiDoc->ChargeParameterDiscoveryRes );
}
} else if ( exiDoc->ChargingStatusReq_isUsed == 1u ) {
/* START_ELEMENT({urn:iso:15118:2:2016:MsgBody}ChargingStatusReq) */
errn = encodeNBitUnsignedInteger(stream, 7, 20);
if(errn == 0) {
- errn = encode_v2gChargingStatusReqType(stream, &exiDoc->ChargingStatusReq );
+ errn = encode_iso2ChargingStatusReqType(stream, &exiDoc->ChargingStatusReq );
}
} else if ( exiDoc->ChargingStatusRes_isUsed == 1u ) {
/* START_ELEMENT({urn:iso:15118:2:2016:MsgBody}ChargingStatusRes) */
errn = encodeNBitUnsignedInteger(stream, 7, 21);
if(errn == 0) {
- errn = encode_v2gChargingStatusResType(stream, &exiDoc->ChargingStatusRes );
+ errn = encode_iso2ChargingStatusResType(stream, &exiDoc->ChargingStatusRes );
}
} else if ( exiDoc->ConnectChargingDeviceReq_isUsed == 1u ) {
/* START_ELEMENT({urn:iso:15118:2:2016:MsgBody}ConnectChargingDeviceReq) */
errn = encodeNBitUnsignedInteger(stream, 7, 22);
if(errn == 0) {
- errn = encode_v2gConnectChargingDeviceReqType(stream, &exiDoc->ConnectChargingDeviceReq );
+ errn = encode_iso2ConnectChargingDeviceReqType(stream, &exiDoc->ConnectChargingDeviceReq );
}
} else if ( exiDoc->ConnectChargingDeviceRes_isUsed == 1u ) {
/* START_ELEMENT({urn:iso:15118:2:2016:MsgBody}ConnectChargingDeviceRes) */
errn = encodeNBitUnsignedInteger(stream, 7, 23);
if(errn == 0) {
- errn = encode_v2gConnectChargingDeviceResType(stream, &exiDoc->ConnectChargingDeviceRes );
+ errn = encode_iso2ConnectChargingDeviceResType(stream, &exiDoc->ConnectChargingDeviceRes );
}
} else if ( exiDoc->CurrentDemandReq_isUsed == 1u ) {
/* START_ELEMENT({urn:iso:15118:2:2016:MsgBody}CurrentDemandReq) */
errn = encodeNBitUnsignedInteger(stream, 7, 24);
if(errn == 0) {
- errn = encode_v2gCurrentDemandReqType(stream, &exiDoc->CurrentDemandReq );
+ errn = encode_iso2CurrentDemandReqType(stream, &exiDoc->CurrentDemandReq );
}
} else if ( exiDoc->CurrentDemandRes_isUsed == 1u ) {
/* START_ELEMENT({urn:iso:15118:2:2016:MsgBody}CurrentDemandRes) */
errn = encodeNBitUnsignedInteger(stream, 7, 25);
if(errn == 0) {
- errn = encode_v2gCurrentDemandResType(stream, &exiDoc->CurrentDemandRes );
+ errn = encode_iso2CurrentDemandResType(stream, &exiDoc->CurrentDemandRes );
}
} else if ( exiDoc->DC_BidirectionalControlReq_isUsed == 1u ) {
/* START_ELEMENT({urn:iso:15118:2:2016:MsgBody}DC_BidirectionalControlReq) */
errn = encodeNBitUnsignedInteger(stream, 7, 26);
if(errn == 0) {
- errn = encode_v2gDC_BidirectionalControlReqType(stream, &exiDoc->DC_BidirectionalControlReq );
+ errn = encode_iso2DC_BidirectionalControlReqType(stream, &exiDoc->DC_BidirectionalControlReq );
}
} else if ( exiDoc->DC_BidirectionalControlRes_isUsed == 1u ) {
/* START_ELEMENT({urn:iso:15118:2:2016:MsgBody}DC_BidirectionalControlRes) */
errn = encodeNBitUnsignedInteger(stream, 7, 27);
if(errn == 0) {
- errn = encode_v2gDC_BidirectionalControlResType(stream, &exiDoc->DC_BidirectionalControlRes );
+ errn = encode_iso2DC_BidirectionalControlResType(stream, &exiDoc->DC_BidirectionalControlRes );
}
} else if ( exiDoc->DC_EVBidirectionalParameter_isUsed == 1u ) {
/* START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}DC_EVBidirectionalParameter) */
errn = encodeNBitUnsignedInteger(stream, 7, 28);
if(errn == 0) {
- errn = encode_v2gDC_EVBidirectionalParameterType(stream, &exiDoc->DC_EVBidirectionalParameter );
+ errn = encode_iso2DC_EVBidirectionalParameterType(stream, &exiDoc->DC_EVBidirectionalParameter );
}
} else if ( exiDoc->DC_EVChargeParameter_isUsed == 1u ) {
/* START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}DC_EVChargeParameter) */
errn = encodeNBitUnsignedInteger(stream, 7, 29);
if(errn == 0) {
- errn = encode_v2gDC_EVChargeParameterType(stream, &exiDoc->DC_EVChargeParameter );
+ errn = encode_iso2DC_EVChargeParameterType(stream, &exiDoc->DC_EVChargeParameter );
}
} else if ( exiDoc->DC_EVSEBidirectionalParameter_isUsed == 1u ) {
/* START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}DC_EVSEBidirectionalParameter) */
errn = encodeNBitUnsignedInteger(stream, 7, 30);
if(errn == 0) {
- errn = encode_v2gDC_EVSEBidirectionalParameterType(stream, &exiDoc->DC_EVSEBidirectionalParameter );
+ errn = encode_iso2DC_EVSEBidirectionalParameterType(stream, &exiDoc->DC_EVSEBidirectionalParameter );
}
} else if ( exiDoc->DC_EVSEChargeParameter_isUsed == 1u ) {
/* START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}DC_EVSEChargeParameter) */
errn = encodeNBitUnsignedInteger(stream, 7, 31);
if(errn == 0) {
- errn = encode_v2gDC_EVSEChargeParameterType(stream, &exiDoc->DC_EVSEChargeParameter );
+ errn = encode_iso2DC_EVSEChargeParameterType(stream, &exiDoc->DC_EVSEChargeParameter );
}
} else if ( exiDoc->DSAKeyValue_isUsed == 1u ) {
/* START_ELEMENT({http://www.w3.org/2000/09/xmldsig#}DSAKeyValue) */
errn = encodeNBitUnsignedInteger(stream, 7, 32);
if(errn == 0) {
- errn = encode_v2gDSAKeyValueType(stream, &exiDoc->DSAKeyValue );
+ errn = encode_iso2DSAKeyValueType(stream, &exiDoc->DSAKeyValue );
}
} else if ( exiDoc->DigestMethod_isUsed == 1u ) {
/* START_ELEMENT({http://www.w3.org/2000/09/xmldsig#}DigestMethod) */
errn = encodeNBitUnsignedInteger(stream, 7, 33);
if(errn == 0) {
- errn = encode_v2gDigestMethodType(stream, &exiDoc->DigestMethod );
+ errn = encode_iso2DigestMethodType(stream, &exiDoc->DigestMethod );
}
} else if ( exiDoc->DigestValue_isUsed == 1u ) {
/* START_ELEMENT({http://www.w3.org/2000/09/xmldsig#}DigestValue) */
@@ -68116,113 +59209,95 @@ int encode_v2gExiDocument(bitstream_t* stream, struct v2gEXIDocument* exiDoc) {
/* START_ELEMENT({urn:iso:15118:2:2016:MsgBody}DisconnectChargingDeviceReq) */
errn = encodeNBitUnsignedInteger(stream, 7, 35);
if(errn == 0) {
- errn = encode_v2gDisconnectChargingDeviceReqType(stream, &exiDoc->DisconnectChargingDeviceReq );
+ errn = encode_iso2DisconnectChargingDeviceReqType(stream, &exiDoc->DisconnectChargingDeviceReq );
}
} else if ( exiDoc->DisconnectChargingDeviceRes_isUsed == 1u ) {
/* START_ELEMENT({urn:iso:15118:2:2016:MsgBody}DisconnectChargingDeviceRes) */
errn = encodeNBitUnsignedInteger(stream, 7, 36);
if(errn == 0) {
- errn = encode_v2gDisconnectChargingDeviceResType(stream, &exiDoc->DisconnectChargingDeviceRes );
+ errn = encode_iso2DisconnectChargingDeviceResType(stream, &exiDoc->DisconnectChargingDeviceRes );
}
} else if ( exiDoc->EVEnergyTransferParameter_isUsed == 1u ) {
/* START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}EVEnergyTransferParameter) */
errn = encodeNBitUnsignedInteger(stream, 7, 37);
if(errn == 0) {
- errn = encode_v2gEVEnergyTransferParameterType(stream, &exiDoc->EVEnergyTransferParameter );
- }
- } else if ( exiDoc->EVErrorInformation_isUsed == 1u ) {
- /* START_ELEMENT({urn:iso:15118:2:2016:MsgBody}EVErrorInformation) */
- errn = encodeNBitUnsignedInteger(stream, 7, 38);
- if(errn == 0) {
- errn = encode_v2gEVErrorInformationType(stream, &exiDoc->EVErrorInformation );
+ errn = encode_iso2EVEnergyTransferParameterType(stream, &exiDoc->EVEnergyTransferParameter );
}
} else if ( exiDoc->EVFinePositioningParameters_isUsed == 1u ) {
/* START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}EVFinePositioningParameters) */
- errn = encodeNBitUnsignedInteger(stream, 7, 39);
+ errn = encodeNBitUnsignedInteger(stream, 7, 38);
if(errn == 0) {
- errn = encode_v2gEVFinePositioningParametersType(stream, &exiDoc->EVFinePositioningParameters );
+ errn = encode_iso2EVFinePositioningParametersType(stream, &exiDoc->EVFinePositioningParameters );
}
} else if ( exiDoc->EVFinePositioningSetupParameters_isUsed == 1u ) {
/* START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}EVFinePositioningSetupParameters) */
- errn = encodeNBitUnsignedInteger(stream, 7, 40);
+ errn = encodeNBitUnsignedInteger(stream, 7, 39);
if(errn == 0) {
- errn = encode_v2gEVFinePositioningSetupParametersType(stream, &exiDoc->EVFinePositioningSetupParameters );
+ errn = encode_iso2EVFinePositioningSetupParametersType(stream, &exiDoc->EVFinePositioningSetupParameters );
}
} else if ( exiDoc->EVSEEnergyTransferParameter_isUsed == 1u ) {
/* START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}EVSEEnergyTransferParameter) */
- errn = encodeNBitUnsignedInteger(stream, 7, 41);
+ errn = encodeNBitUnsignedInteger(stream, 7, 40);
if(errn == 0) {
- errn = encode_v2gEVSEEnergyTransferParameterType(stream, &exiDoc->EVSEEnergyTransferParameter );
- }
- } else if ( exiDoc->EVSEErrorInformation_isUsed == 1u ) {
- /* START_ELEMENT({urn:iso:15118:2:2016:MsgBody}EVSEErrorInformation) */
- errn = encodeNBitUnsignedInteger(stream, 7, 42);
- if(errn == 0) {
- errn = encode_v2gEVSEErrorInformationType(stream, &exiDoc->EVSEErrorInformation );
+ errn = encode_iso2EVSEEnergyTransferParameterType(stream, &exiDoc->EVSEEnergyTransferParameter );
}
} else if ( exiDoc->EVSEFinePositioningParameters_isUsed == 1u ) {
/* START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}EVSEFinePositioningParameters) */
- errn = encodeNBitUnsignedInteger(stream, 7, 43);
+ errn = encodeNBitUnsignedInteger(stream, 7, 41);
if(errn == 0) {
- errn = encode_v2gEVSEFinePositioningParametersType(stream, &exiDoc->EVSEFinePositioningParameters );
+ errn = encode_iso2EVSEFinePositioningParametersType(stream, &exiDoc->EVSEFinePositioningParameters );
}
} else if ( exiDoc->EVSEFinePositioningSetupParameters_isUsed == 1u ) {
/* START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}EVSEFinePositioningSetupParameters) */
- errn = encodeNBitUnsignedInteger(stream, 7, 44);
+ errn = encodeNBitUnsignedInteger(stream, 7, 42);
if(errn == 0) {
- errn = encode_v2gEVSEFinePositioningSetupParametersType(stream, &exiDoc->EVSEFinePositioningSetupParameters );
- }
- } else if ( exiDoc->ErrorInformation_isUsed == 1u ) {
- /* START_ELEMENT({urn:iso:15118:2:2016:MsgBody}ErrorInformation) */
- errn = encodeNBitUnsignedInteger(stream, 7, 45);
- if(errn == 0) {
- errn = encode_v2gBodyBaseType(stream, &exiDoc->ErrorInformation );
+ errn = encode_iso2EVSEFinePositioningSetupParametersType(stream, &exiDoc->EVSEFinePositioningSetupParameters );
}
} else if ( exiDoc->FinePositioningReq_isUsed == 1u ) {
/* START_ELEMENT({urn:iso:15118:2:2016:MsgBody}FinePositioningReq) */
- errn = encodeNBitUnsignedInteger(stream, 7, 46);
+ errn = encodeNBitUnsignedInteger(stream, 7, 43);
if(errn == 0) {
- errn = encode_v2gFinePositioningReqType(stream, &exiDoc->FinePositioningReq );
+ errn = encode_iso2FinePositioningReqType(stream, &exiDoc->FinePositioningReq );
}
} else if ( exiDoc->FinePositioningRes_isUsed == 1u ) {
/* START_ELEMENT({urn:iso:15118:2:2016:MsgBody}FinePositioningRes) */
- errn = encodeNBitUnsignedInteger(stream, 7, 47);
+ errn = encodeNBitUnsignedInteger(stream, 7, 44);
if(errn == 0) {
- errn = encode_v2gFinePositioningResType(stream, &exiDoc->FinePositioningRes );
+ errn = encode_iso2FinePositioningResType(stream, &exiDoc->FinePositioningRes );
}
} else if ( exiDoc->FinePositioningSetupReq_isUsed == 1u ) {
/* START_ELEMENT({urn:iso:15118:2:2016:MsgBody}FinePositioningSetupReq) */
- errn = encodeNBitUnsignedInteger(stream, 7, 48);
+ errn = encodeNBitUnsignedInteger(stream, 7, 45);
if(errn == 0) {
- errn = encode_v2gFinePositioningSetupReqType(stream, &exiDoc->FinePositioningSetupReq );
+ errn = encode_iso2FinePositioningSetupReqType(stream, &exiDoc->FinePositioningSetupReq );
}
} else if ( exiDoc->FinePositioningSetupRes_isUsed == 1u ) {
/* START_ELEMENT({urn:iso:15118:2:2016:MsgBody}FinePositioningSetupRes) */
- errn = encodeNBitUnsignedInteger(stream, 7, 49);
+ errn = encodeNBitUnsignedInteger(stream, 7, 46);
if(errn == 0) {
- errn = encode_v2gFinePositioningSetupResType(stream, &exiDoc->FinePositioningSetupRes );
+ errn = encode_iso2FinePositioningSetupResType(stream, &exiDoc->FinePositioningSetupRes );
}
} else if ( exiDoc->Generic_EVFinePositioningParameters_isUsed == 1u ) {
/* START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}Generic_EVFinePositioningParameters) */
- errn = encodeNBitUnsignedInteger(stream, 7, 50);
+ errn = encodeNBitUnsignedInteger(stream, 7, 47);
if(errn == 0) {
- errn = encode_v2gGeneric_EVFinePositioningParametersType(stream, &exiDoc->Generic_EVFinePositioningParameters );
+ errn = encode_iso2Generic_EVFinePositioningParametersType(stream, &exiDoc->Generic_EVFinePositioningParameters );
}
} else if ( exiDoc->Generic_EVSEFinePositioningParameters_isUsed == 1u ) {
/* START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}Generic_EVSEFinePositioningParameters) */
- errn = encodeNBitUnsignedInteger(stream, 7, 51);
+ errn = encodeNBitUnsignedInteger(stream, 7, 48);
if(errn == 0) {
- errn = encode_v2gGeneric_EVSEFinePositioningParametersType(stream, &exiDoc->Generic_EVSEFinePositioningParameters );
+ errn = encode_iso2Generic_EVSEFinePositioningParametersType(stream, &exiDoc->Generic_EVSEFinePositioningParameters );
}
} else if ( exiDoc->KeyInfo_isUsed == 1u ) {
/* START_ELEMENT({http://www.w3.org/2000/09/xmldsig#}KeyInfo) */
- errn = encodeNBitUnsignedInteger(stream, 7, 52);
+ errn = encodeNBitUnsignedInteger(stream, 7, 49);
if(errn == 0) {
- errn = encode_v2gKeyInfoType(stream, &exiDoc->KeyInfo );
+ errn = encode_iso2KeyInfoType(stream, &exiDoc->KeyInfo );
}
} else if ( exiDoc->KeyName_isUsed == 1u ) {
/* START_ELEMENT({http://www.w3.org/2000/09/xmldsig#}KeyName) */
- errn = encodeNBitUnsignedInteger(stream, 7, 53);
+ errn = encodeNBitUnsignedInteger(stream, 7, 50);
if(errn == 0) {
/* First(xsi:type)StartTag[CHARACTERS[STRING]] */
errn = encodeNBitUnsignedInteger(stream, 1, 0);
@@ -68238,67 +59313,67 @@ int encode_v2gExiDocument(bitstream_t* stream, struct v2gEXIDocument* exiDoc) {
}
} else if ( exiDoc->KeyValue_isUsed == 1u ) {
/* START_ELEMENT({http://www.w3.org/2000/09/xmldsig#}KeyValue) */
- errn = encodeNBitUnsignedInteger(stream, 7, 54);
+ errn = encodeNBitUnsignedInteger(stream, 7, 51);
if(errn == 0) {
- errn = encode_v2gKeyValueType(stream, &exiDoc->KeyValue );
+ errn = encode_iso2KeyValueType(stream, &exiDoc->KeyValue );
}
} else if ( exiDoc->LFA_EVFinePositioningParameters_isUsed == 1u ) {
/* START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}LFA_EVFinePositioningParameters) */
- errn = encodeNBitUnsignedInteger(stream, 7, 55);
+ errn = encodeNBitUnsignedInteger(stream, 7, 52);
if(errn == 0) {
- errn = encode_v2gLFA_EVFinePositioningParametersType(stream, &exiDoc->LFA_EVFinePositioningParameters );
+ errn = encode_iso2LFA_EVFinePositioningParametersType(stream, &exiDoc->LFA_EVFinePositioningParameters );
}
} else if ( exiDoc->LFA_EVFinePositioningSetupParameters_isUsed == 1u ) {
/* START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}LFA_EVFinePositioningSetupParameters) */
- errn = encodeNBitUnsignedInteger(stream, 7, 56);
+ errn = encodeNBitUnsignedInteger(stream, 7, 53);
if(errn == 0) {
- errn = encode_v2gLFA_EVFinePositioningSetupParametersType(stream, &exiDoc->LFA_EVFinePositioningSetupParameters );
+ errn = encode_iso2LFA_EVFinePositioningSetupParametersType(stream, &exiDoc->LFA_EVFinePositioningSetupParameters );
+ }
+ } else if ( exiDoc->LFA_EVSEFinePositioningParameters_isUsed == 1u ) {
+ /* START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}LFA_EVSEFinePositioningParameters) */
+ errn = encodeNBitUnsignedInteger(stream, 7, 54);
+ if(errn == 0) {
+ errn = encode_iso2LFA_EVSEFinePositioningParametersType(stream, &exiDoc->LFA_EVSEFinePositioningParameters );
}
} else if ( exiDoc->LFA_EVSEFinePositioningSetupParameters_isUsed == 1u ) {
/* START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}LFA_EVSEFinePositioningSetupParameters) */
- errn = encodeNBitUnsignedInteger(stream, 7, 57);
+ errn = encodeNBitUnsignedInteger(stream, 7, 55);
if(errn == 0) {
- errn = encode_v2gLFA_EVSEFinePositioningSetupParametersType(stream, &exiDoc->LFA_EVSEFinePositioningSetupParameters );
- }
- } else if ( exiDoc->LF_EVSEFinePositioningParameters_isUsed == 1u ) {
- /* START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}LF_EVSEFinePositioningParameters) */
- errn = encodeNBitUnsignedInteger(stream, 7, 58);
- if(errn == 0) {
- errn = encode_v2gLF_EVSEFinePositioningParametersType(stream, &exiDoc->LF_EVSEFinePositioningParameters );
+ errn = encode_iso2LFA_EVSEFinePositioningSetupParametersType(stream, &exiDoc->LFA_EVSEFinePositioningSetupParameters );
}
} else if ( exiDoc->MV_EVSEFinePositioningParameters_isUsed == 1u ) {
/* START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MV_EVSEFinePositioningParameters) */
- errn = encodeNBitUnsignedInteger(stream, 7, 59);
+ errn = encodeNBitUnsignedInteger(stream, 7, 56);
if(errn == 0) {
- errn = encode_v2gMV_EVSEFinePositioningParametersType(stream, &exiDoc->MV_EVSEFinePositioningParameters );
+ errn = encode_iso2MV_EVSEFinePositioningParametersType(stream, &exiDoc->MV_EVSEFinePositioningParameters );
}
} else if ( exiDoc->MV_EVSEFinePositioningSetupParameters_isUsed == 1u ) {
/* START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MV_EVSEFinePositioningSetupParameters) */
- errn = encodeNBitUnsignedInteger(stream, 7, 60);
+ errn = encodeNBitUnsignedInteger(stream, 7, 57);
if(errn == 0) {
- errn = encode_v2gMV_EVSEFinePositioningSetupParametersType(stream, &exiDoc->MV_EVSEFinePositioningSetupParameters );
+ errn = encode_iso2MV_EVSEFinePositioningSetupParametersType(stream, &exiDoc->MV_EVSEFinePositioningSetupParameters );
}
} else if ( exiDoc->Manifest_isUsed == 1u ) {
/* START_ELEMENT({http://www.w3.org/2000/09/xmldsig#}Manifest) */
- errn = encodeNBitUnsignedInteger(stream, 7, 61);
+ errn = encodeNBitUnsignedInteger(stream, 7, 58);
if(errn == 0) {
- errn = encode_v2gManifestType(stream, &exiDoc->Manifest );
+ errn = encode_iso2ManifestType(stream, &exiDoc->Manifest );
}
} else if ( exiDoc->MeteringReceiptReq_isUsed == 1u ) {
/* START_ELEMENT({urn:iso:15118:2:2016:MsgBody}MeteringReceiptReq) */
- errn = encodeNBitUnsignedInteger(stream, 7, 62);
+ errn = encodeNBitUnsignedInteger(stream, 7, 59);
if(errn == 0) {
- errn = encode_v2gMeteringReceiptReqType(stream, &exiDoc->MeteringReceiptReq );
+ errn = encode_iso2MeteringReceiptReqType(stream, &exiDoc->MeteringReceiptReq );
}
} else if ( exiDoc->MeteringReceiptRes_isUsed == 1u ) {
/* START_ELEMENT({urn:iso:15118:2:2016:MsgBody}MeteringReceiptRes) */
- errn = encodeNBitUnsignedInteger(stream, 7, 63);
+ errn = encodeNBitUnsignedInteger(stream, 7, 60);
if(errn == 0) {
- errn = encode_v2gV2GResponseType(stream, &exiDoc->MeteringReceiptRes );
+ errn = encode_iso2MeteringReceiptResType(stream, &exiDoc->MeteringReceiptRes );
}
} else if ( exiDoc->MgmtData_isUsed == 1u ) {
/* START_ELEMENT({http://www.w3.org/2000/09/xmldsig#}MgmtData) */
- errn = encodeNBitUnsignedInteger(stream, 7, 64);
+ errn = encodeNBitUnsignedInteger(stream, 7, 61);
if(errn == 0) {
/* First(xsi:type)StartTag[CHARACTERS[STRING]] */
errn = encodeNBitUnsignedInteger(stream, 1, 0);
@@ -68314,315 +59389,315 @@ int encode_v2gExiDocument(bitstream_t* stream, struct v2gEXIDocument* exiDoc) {
}
} else if ( exiDoc->Object_isUsed == 1u ) {
/* START_ELEMENT({http://www.w3.org/2000/09/xmldsig#}Object) */
- errn = encodeNBitUnsignedInteger(stream, 7, 65);
+ errn = encodeNBitUnsignedInteger(stream, 7, 62);
if(errn == 0) {
- errn = encode_v2gObjectType(stream, &exiDoc->Object );
+ errn = encode_iso2ObjectType(stream, &exiDoc->Object );
}
} else if ( exiDoc->PGPData_isUsed == 1u ) {
/* START_ELEMENT({http://www.w3.org/2000/09/xmldsig#}PGPData) */
- errn = encodeNBitUnsignedInteger(stream, 7, 66);
+ errn = encodeNBitUnsignedInteger(stream, 7, 63);
if(errn == 0) {
- errn = encode_v2gPGPDataType(stream, &exiDoc->PGPData );
+ errn = encode_iso2PGPDataType(stream, &exiDoc->PGPData );
}
} else if ( exiDoc->PMaxScheduleEntry_isUsed == 1u ) {
/* START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}PMaxScheduleEntry) */
- errn = encodeNBitUnsignedInteger(stream, 7, 67);
+ errn = encodeNBitUnsignedInteger(stream, 7, 64);
if(errn == 0) {
- errn = encode_v2gPMaxScheduleEntryType(stream, &exiDoc->PMaxScheduleEntry );
+ errn = encode_iso2PMaxScheduleEntryType(stream, &exiDoc->PMaxScheduleEntry );
}
} else if ( exiDoc->PairingReq_isUsed == 1u ) {
/* START_ELEMENT({urn:iso:15118:2:2016:MsgBody}PairingReq) */
- errn = encodeNBitUnsignedInteger(stream, 7, 68);
+ errn = encodeNBitUnsignedInteger(stream, 7, 65);
if(errn == 0) {
- errn = encode_v2gPairingReqType(stream, &exiDoc->PairingReq );
+ errn = encode_iso2PairingReqType(stream, &exiDoc->PairingReq );
}
} else if ( exiDoc->PairingRes_isUsed == 1u ) {
/* START_ELEMENT({urn:iso:15118:2:2016:MsgBody}PairingRes) */
- errn = encodeNBitUnsignedInteger(stream, 7, 69);
+ errn = encodeNBitUnsignedInteger(stream, 7, 66);
if(errn == 0) {
- errn = encode_v2gPairingResType(stream, &exiDoc->PairingRes );
+ errn = encode_iso2PairingResType(stream, &exiDoc->PairingRes );
}
} else if ( exiDoc->PaymentDetailsReq_isUsed == 1u ) {
/* START_ELEMENT({urn:iso:15118:2:2016:MsgBody}PaymentDetailsReq) */
- errn = encodeNBitUnsignedInteger(stream, 7, 70);
+ errn = encodeNBitUnsignedInteger(stream, 7, 67);
if(errn == 0) {
- errn = encode_v2gPaymentDetailsReqType(stream, &exiDoc->PaymentDetailsReq );
+ errn = encode_iso2PaymentDetailsReqType(stream, &exiDoc->PaymentDetailsReq );
}
} else if ( exiDoc->PaymentDetailsRes_isUsed == 1u ) {
/* START_ELEMENT({urn:iso:15118:2:2016:MsgBody}PaymentDetailsRes) */
- errn = encodeNBitUnsignedInteger(stream, 7, 71);
+ errn = encodeNBitUnsignedInteger(stream, 7, 68);
if(errn == 0) {
- errn = encode_v2gPaymentDetailsResType(stream, &exiDoc->PaymentDetailsRes );
+ errn = encode_iso2PaymentDetailsResType(stream, &exiDoc->PaymentDetailsRes );
}
} else if ( exiDoc->PaymentServiceSelectionReq_isUsed == 1u ) {
/* START_ELEMENT({urn:iso:15118:2:2016:MsgBody}PaymentServiceSelectionReq) */
- errn = encodeNBitUnsignedInteger(stream, 7, 72);
+ errn = encodeNBitUnsignedInteger(stream, 7, 69);
if(errn == 0) {
- errn = encode_v2gPaymentServiceSelectionReqType(stream, &exiDoc->PaymentServiceSelectionReq );
+ errn = encode_iso2PaymentServiceSelectionReqType(stream, &exiDoc->PaymentServiceSelectionReq );
}
} else if ( exiDoc->PaymentServiceSelectionRes_isUsed == 1u ) {
/* START_ELEMENT({urn:iso:15118:2:2016:MsgBody}PaymentServiceSelectionRes) */
- errn = encodeNBitUnsignedInteger(stream, 7, 73);
+ errn = encodeNBitUnsignedInteger(stream, 7, 70);
if(errn == 0) {
- errn = encode_v2gV2GResponseType(stream, &exiDoc->PaymentServiceSelectionRes );
+ errn = encode_iso2PaymentServiceSelectionResType(stream, &exiDoc->PaymentServiceSelectionRes );
}
} else if ( exiDoc->PowerDeliveryReq_isUsed == 1u ) {
/* START_ELEMENT({urn:iso:15118:2:2016:MsgBody}PowerDeliveryReq) */
- errn = encodeNBitUnsignedInteger(stream, 7, 74);
+ errn = encodeNBitUnsignedInteger(stream, 7, 71);
if(errn == 0) {
- errn = encode_v2gPowerDeliveryReqType(stream, &exiDoc->PowerDeliveryReq );
+ errn = encode_iso2PowerDeliveryReqType(stream, &exiDoc->PowerDeliveryReq );
}
} else if ( exiDoc->PowerDeliveryRes_isUsed == 1u ) {
/* START_ELEMENT({urn:iso:15118:2:2016:MsgBody}PowerDeliveryRes) */
- errn = encodeNBitUnsignedInteger(stream, 7, 75);
+ errn = encodeNBitUnsignedInteger(stream, 7, 72);
if(errn == 0) {
- errn = encode_v2gPowerDeliveryResType(stream, &exiDoc->PowerDeliveryRes );
+ errn = encode_iso2PowerDeliveryResType(stream, &exiDoc->PowerDeliveryRes );
}
} else if ( exiDoc->PowerDemandReq_isUsed == 1u ) {
/* START_ELEMENT({urn:iso:15118:2:2016:MsgBody}PowerDemandReq) */
- errn = encodeNBitUnsignedInteger(stream, 7, 76);
+ errn = encodeNBitUnsignedInteger(stream, 7, 73);
if(errn == 0) {
- errn = encode_v2gPowerDemandReqType(stream, &exiDoc->PowerDemandReq );
+ errn = encode_iso2PowerDemandReqType(stream, &exiDoc->PowerDemandReq );
}
} else if ( exiDoc->PowerDemandRes_isUsed == 1u ) {
/* START_ELEMENT({urn:iso:15118:2:2016:MsgBody}PowerDemandRes) */
- errn = encodeNBitUnsignedInteger(stream, 7, 77);
+ errn = encodeNBitUnsignedInteger(stream, 7, 74);
if(errn == 0) {
- errn = encode_v2gPowerDemandResType(stream, &exiDoc->PowerDemandRes );
+ errn = encode_iso2PowerDemandResType(stream, &exiDoc->PowerDemandRes );
}
} else if ( exiDoc->PreChargeReq_isUsed == 1u ) {
/* START_ELEMENT({urn:iso:15118:2:2016:MsgBody}PreChargeReq) */
- errn = encodeNBitUnsignedInteger(stream, 7, 78);
+ errn = encodeNBitUnsignedInteger(stream, 7, 75);
if(errn == 0) {
- errn = encode_v2gPreChargeReqType(stream, &exiDoc->PreChargeReq );
+ errn = encode_iso2PreChargeReqType(stream, &exiDoc->PreChargeReq );
}
} else if ( exiDoc->PreChargeRes_isUsed == 1u ) {
/* START_ELEMENT({urn:iso:15118:2:2016:MsgBody}PreChargeRes) */
- errn = encodeNBitUnsignedInteger(stream, 7, 79);
+ errn = encodeNBitUnsignedInteger(stream, 7, 76);
if(errn == 0) {
- errn = encode_v2gPreChargeResType(stream, &exiDoc->PreChargeRes );
+ errn = encode_iso2PreChargeResType(stream, &exiDoc->PreChargeRes );
}
} else if ( exiDoc->RSAKeyValue_isUsed == 1u ) {
/* START_ELEMENT({http://www.w3.org/2000/09/xmldsig#}RSAKeyValue) */
- errn = encodeNBitUnsignedInteger(stream, 7, 80);
+ errn = encodeNBitUnsignedInteger(stream, 7, 77);
if(errn == 0) {
- errn = encode_v2gRSAKeyValueType(stream, &exiDoc->RSAKeyValue );
+ errn = encode_iso2RSAKeyValueType(stream, &exiDoc->RSAKeyValue );
}
} else if ( exiDoc->Reference_isUsed == 1u ) {
/* START_ELEMENT({http://www.w3.org/2000/09/xmldsig#}Reference) */
- errn = encodeNBitUnsignedInteger(stream, 7, 81);
+ errn = encodeNBitUnsignedInteger(stream, 7, 78);
if(errn == 0) {
- errn = encode_v2gReferenceType(stream, &exiDoc->Reference );
+ errn = encode_iso2ReferenceType(stream, &exiDoc->Reference );
}
} else if ( exiDoc->RelativeTimeInterval_isUsed == 1u ) {
/* START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}RelativeTimeInterval) */
- errn = encodeNBitUnsignedInteger(stream, 7, 82);
+ errn = encodeNBitUnsignedInteger(stream, 7, 79);
if(errn == 0) {
- errn = encode_v2gRelativeTimeIntervalType(stream, &exiDoc->RelativeTimeInterval );
+ errn = encode_iso2RelativeTimeIntervalType(stream, &exiDoc->RelativeTimeInterval );
}
} else if ( exiDoc->RetrievalMethod_isUsed == 1u ) {
/* START_ELEMENT({http://www.w3.org/2000/09/xmldsig#}RetrievalMethod) */
- errn = encodeNBitUnsignedInteger(stream, 7, 83);
+ errn = encodeNBitUnsignedInteger(stream, 7, 80);
if(errn == 0) {
- errn = encode_v2gRetrievalMethodType(stream, &exiDoc->RetrievalMethod );
+ errn = encode_iso2RetrievalMethodType(stream, &exiDoc->RetrievalMethod );
}
} else if ( exiDoc->SAScheduleList_isUsed == 1u ) {
/* START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SAScheduleList) */
- errn = encodeNBitUnsignedInteger(stream, 7, 84);
+ errn = encodeNBitUnsignedInteger(stream, 7, 81);
if(errn == 0) {
- errn = encode_v2gSAScheduleListType(stream, &exiDoc->SAScheduleList );
+ errn = encode_iso2SAScheduleListType(stream, &exiDoc->SAScheduleList );
}
} else if ( exiDoc->SPKIData_isUsed == 1u ) {
/* START_ELEMENT({http://www.w3.org/2000/09/xmldsig#}SPKIData) */
- errn = encodeNBitUnsignedInteger(stream, 7, 85);
+ errn = encodeNBitUnsignedInteger(stream, 7, 82);
if(errn == 0) {
- errn = encode_v2gSPKIDataType(stream, &exiDoc->SPKIData );
+ errn = encode_iso2SPKIDataType(stream, &exiDoc->SPKIData );
}
} else if ( exiDoc->SalesTariffEntry_isUsed == 1u ) {
/* START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SalesTariffEntry) */
- errn = encodeNBitUnsignedInteger(stream, 7, 86);
+ errn = encodeNBitUnsignedInteger(stream, 7, 83);
if(errn == 0) {
- errn = encode_v2gSalesTariffEntryType(stream, &exiDoc->SalesTariffEntry );
+ errn = encode_iso2SalesTariffEntryType(stream, &exiDoc->SalesTariffEntry );
}
} else if ( exiDoc->ServiceDetailReq_isUsed == 1u ) {
/* START_ELEMENT({urn:iso:15118:2:2016:MsgBody}ServiceDetailReq) */
- errn = encodeNBitUnsignedInteger(stream, 7, 87);
+ errn = encodeNBitUnsignedInteger(stream, 7, 84);
if(errn == 0) {
- errn = encode_v2gServiceDetailReqType(stream, &exiDoc->ServiceDetailReq );
+ errn = encode_iso2ServiceDetailReqType(stream, &exiDoc->ServiceDetailReq );
}
} else if ( exiDoc->ServiceDetailRes_isUsed == 1u ) {
/* START_ELEMENT({urn:iso:15118:2:2016:MsgBody}ServiceDetailRes) */
- errn = encodeNBitUnsignedInteger(stream, 7, 88);
+ errn = encodeNBitUnsignedInteger(stream, 7, 85);
if(errn == 0) {
- errn = encode_v2gServiceDetailResType(stream, &exiDoc->ServiceDetailRes );
+ errn = encode_iso2ServiceDetailResType(stream, &exiDoc->ServiceDetailRes );
}
} else if ( exiDoc->ServiceDiscoveryReq_isUsed == 1u ) {
/* START_ELEMENT({urn:iso:15118:2:2016:MsgBody}ServiceDiscoveryReq) */
- errn = encodeNBitUnsignedInteger(stream, 7, 89);
+ errn = encodeNBitUnsignedInteger(stream, 7, 86);
if(errn == 0) {
- errn = encode_v2gServiceDiscoveryReqType(stream, &exiDoc->ServiceDiscoveryReq );
+ errn = encode_iso2ServiceDiscoveryReqType(stream, &exiDoc->ServiceDiscoveryReq );
}
} else if ( exiDoc->ServiceDiscoveryRes_isUsed == 1u ) {
/* START_ELEMENT({urn:iso:15118:2:2016:MsgBody}ServiceDiscoveryRes) */
- errn = encodeNBitUnsignedInteger(stream, 7, 90);
+ errn = encodeNBitUnsignedInteger(stream, 7, 87);
if(errn == 0) {
- errn = encode_v2gServiceDiscoveryResType(stream, &exiDoc->ServiceDiscoveryRes );
+ errn = encode_iso2ServiceDiscoveryResType(stream, &exiDoc->ServiceDiscoveryRes );
}
} else if ( exiDoc->SessionSetupReq_isUsed == 1u ) {
/* START_ELEMENT({urn:iso:15118:2:2016:MsgBody}SessionSetupReq) */
- errn = encodeNBitUnsignedInteger(stream, 7, 91);
+ errn = encodeNBitUnsignedInteger(stream, 7, 88);
if(errn == 0) {
- errn = encode_v2gSessionSetupReqType(stream, &exiDoc->SessionSetupReq );
+ errn = encode_iso2SessionSetupReqType(stream, &exiDoc->SessionSetupReq );
}
} else if ( exiDoc->SessionSetupRes_isUsed == 1u ) {
/* START_ELEMENT({urn:iso:15118:2:2016:MsgBody}SessionSetupRes) */
- errn = encodeNBitUnsignedInteger(stream, 7, 92);
+ errn = encodeNBitUnsignedInteger(stream, 7, 89);
if(errn == 0) {
- errn = encode_v2gSessionSetupResType(stream, &exiDoc->SessionSetupRes );
+ errn = encode_iso2SessionSetupResType(stream, &exiDoc->SessionSetupRes );
}
} else if ( exiDoc->SessionStopReq_isUsed == 1u ) {
/* START_ELEMENT({urn:iso:15118:2:2016:MsgBody}SessionStopReq) */
- errn = encodeNBitUnsignedInteger(stream, 7, 93);
+ errn = encodeNBitUnsignedInteger(stream, 7, 90);
if(errn == 0) {
- errn = encode_v2gSessionStopReqType(stream, &exiDoc->SessionStopReq );
+ errn = encode_iso2SessionStopReqType(stream, &exiDoc->SessionStopReq );
}
} else if ( exiDoc->SessionStopRes_isUsed == 1u ) {
/* START_ELEMENT({urn:iso:15118:2:2016:MsgBody}SessionStopRes) */
- errn = encodeNBitUnsignedInteger(stream, 7, 94);
+ errn = encodeNBitUnsignedInteger(stream, 7, 91);
if(errn == 0) {
- errn = encode_v2gV2GResponseType(stream, &exiDoc->SessionStopRes );
+ errn = encode_iso2SessionStopResType(stream, &exiDoc->SessionStopRes );
}
} else if ( exiDoc->Signature_isUsed == 1u ) {
/* START_ELEMENT({http://www.w3.org/2000/09/xmldsig#}Signature) */
- errn = encodeNBitUnsignedInteger(stream, 7, 95);
+ errn = encodeNBitUnsignedInteger(stream, 7, 92);
if(errn == 0) {
- errn = encode_v2gSignatureType(stream, &exiDoc->Signature );
+ errn = encode_iso2SignatureType(stream, &exiDoc->Signature );
}
} else if ( exiDoc->SignatureMethod_isUsed == 1u ) {
/* START_ELEMENT({http://www.w3.org/2000/09/xmldsig#}SignatureMethod) */
- errn = encodeNBitUnsignedInteger(stream, 7, 96);
+ errn = encodeNBitUnsignedInteger(stream, 7, 93);
if(errn == 0) {
- errn = encode_v2gSignatureMethodType(stream, &exiDoc->SignatureMethod );
+ errn = encode_iso2SignatureMethodType(stream, &exiDoc->SignatureMethod );
}
} else if ( exiDoc->SignatureProperties_isUsed == 1u ) {
/* START_ELEMENT({http://www.w3.org/2000/09/xmldsig#}SignatureProperties) */
- errn = encodeNBitUnsignedInteger(stream, 7, 97);
+ errn = encodeNBitUnsignedInteger(stream, 7, 94);
if(errn == 0) {
- errn = encode_v2gSignaturePropertiesType(stream, &exiDoc->SignatureProperties );
+ errn = encode_iso2SignaturePropertiesType(stream, &exiDoc->SignatureProperties );
}
} else if ( exiDoc->SignatureProperty_isUsed == 1u ) {
/* START_ELEMENT({http://www.w3.org/2000/09/xmldsig#}SignatureProperty) */
- errn = encodeNBitUnsignedInteger(stream, 7, 98);
+ errn = encodeNBitUnsignedInteger(stream, 7, 95);
if(errn == 0) {
- errn = encode_v2gSignaturePropertyType(stream, &exiDoc->SignatureProperty );
+ errn = encode_iso2SignaturePropertyType(stream, &exiDoc->SignatureProperty );
}
} else if ( exiDoc->SignatureValue_isUsed == 1u ) {
/* START_ELEMENT({http://www.w3.org/2000/09/xmldsig#}SignatureValue) */
- errn = encodeNBitUnsignedInteger(stream, 7, 99);
+ errn = encodeNBitUnsignedInteger(stream, 7, 96);
if(errn == 0) {
- errn = encode_v2gSignatureValueType(stream, &exiDoc->SignatureValue );
+ errn = encode_iso2SignatureValueType(stream, &exiDoc->SignatureValue );
}
} else if ( exiDoc->SignedInfo_isUsed == 1u ) {
/* START_ELEMENT({http://www.w3.org/2000/09/xmldsig#}SignedInfo) */
- errn = encodeNBitUnsignedInteger(stream, 7, 100);
+ errn = encodeNBitUnsignedInteger(stream, 7, 97);
if(errn == 0) {
- errn = encode_v2gSignedInfoType(stream, &exiDoc->SignedInfo );
+ errn = encode_iso2SignedInfoType(stream, &exiDoc->SignedInfo );
}
} else if ( exiDoc->SystemStatusReq_isUsed == 1u ) {
/* START_ELEMENT({urn:iso:15118:2:2016:MsgBody}SystemStatusReq) */
- errn = encodeNBitUnsignedInteger(stream, 7, 101);
+ errn = encodeNBitUnsignedInteger(stream, 7, 98);
if(errn == 0) {
- errn = encode_v2gSystemStatusReqType(stream, &exiDoc->SystemStatusReq );
+ errn = encode_iso2SystemStatusReqType(stream, &exiDoc->SystemStatusReq );
}
} else if ( exiDoc->SystemStatusRes_isUsed == 1u ) {
/* START_ELEMENT({urn:iso:15118:2:2016:MsgBody}SystemStatusRes) */
- errn = encodeNBitUnsignedInteger(stream, 7, 102);
+ errn = encodeNBitUnsignedInteger(stream, 7, 99);
if(errn == 0) {
- errn = encode_v2gSystemStatusResType(stream, &exiDoc->SystemStatusRes );
+ errn = encode_iso2SystemStatusResType(stream, &exiDoc->SystemStatusRes );
}
} else if ( exiDoc->Transform_isUsed == 1u ) {
/* START_ELEMENT({http://www.w3.org/2000/09/xmldsig#}Transform) */
- errn = encodeNBitUnsignedInteger(stream, 7, 103);
+ errn = encodeNBitUnsignedInteger(stream, 7, 100);
if(errn == 0) {
- errn = encode_v2gTransformType(stream, &exiDoc->Transform );
+ errn = encode_iso2TransformType(stream, &exiDoc->Transform );
}
} else if ( exiDoc->Transforms_isUsed == 1u ) {
/* START_ELEMENT({http://www.w3.org/2000/09/xmldsig#}Transforms) */
- errn = encodeNBitUnsignedInteger(stream, 7, 104);
+ errn = encodeNBitUnsignedInteger(stream, 7, 101);
if(errn == 0) {
- errn = encode_v2gTransformsType(stream, &exiDoc->Transforms );
+ errn = encode_iso2TransformsType(stream, &exiDoc->Transforms );
}
} else if ( exiDoc->V2GRequest_isUsed == 1u ) {
/* START_ELEMENT({urn:iso:15118:2:2016:MsgBody}V2GRequest) */
- errn = encodeNBitUnsignedInteger(stream, 7, 105);
+ errn = encodeNBitUnsignedInteger(stream, 7, 102);
if(errn == 0) {
- errn = encode_v2gBodyBaseType(stream, &exiDoc->V2GRequest );
+ errn = encode_iso2BodyBaseType(stream, &exiDoc->V2GRequest );
}
} else if ( exiDoc->V2GResponse_isUsed == 1u ) {
/* START_ELEMENT({urn:iso:15118:2:2016:MsgBody}V2GResponse) */
- errn = encodeNBitUnsignedInteger(stream, 7, 106);
+ errn = encodeNBitUnsignedInteger(stream, 7, 103);
if(errn == 0) {
- errn = encode_v2gV2GResponseType(stream, &exiDoc->V2GResponse );
+ errn = encode_iso2V2GResponseType(stream, &exiDoc->V2GResponse );
}
} else if ( exiDoc->V2G_Message_isUsed == 1u ) {
/* START_ELEMENT({urn:iso:15118:2:2016:MsgDef}V2G_Message) */
- errn = encodeNBitUnsignedInteger(stream, 7, 107);
+ errn = encodeNBitUnsignedInteger(stream, 7, 104);
if(errn == 0) {
- errn = encode_v2gAnonType_V2G_Message(stream, &exiDoc->V2G_Message );
+ errn = encode_iso2AnonType_V2G_Message(stream, &exiDoc->V2G_Message );
}
} else if ( exiDoc->VehicleCheckInReq_isUsed == 1u ) {
/* START_ELEMENT({urn:iso:15118:2:2016:MsgBody}VehicleCheckInReq) */
- errn = encodeNBitUnsignedInteger(stream, 7, 108);
+ errn = encodeNBitUnsignedInteger(stream, 7, 105);
if(errn == 0) {
- errn = encode_v2gVehicleCheckInReqType(stream, &exiDoc->VehicleCheckInReq );
+ errn = encode_iso2VehicleCheckInReqType(stream, &exiDoc->VehicleCheckInReq );
}
} else if ( exiDoc->VehicleCheckInRes_isUsed == 1u ) {
/* START_ELEMENT({urn:iso:15118:2:2016:MsgBody}VehicleCheckInRes) */
- errn = encodeNBitUnsignedInteger(stream, 7, 109);
+ errn = encodeNBitUnsignedInteger(stream, 7, 106);
if(errn == 0) {
- errn = encode_v2gVehicleCheckInResType(stream, &exiDoc->VehicleCheckInRes );
+ errn = encode_iso2VehicleCheckInResType(stream, &exiDoc->VehicleCheckInRes );
}
} else if ( exiDoc->VehicleCheckOutReq_isUsed == 1u ) {
/* START_ELEMENT({urn:iso:15118:2:2016:MsgBody}VehicleCheckOutReq) */
- errn = encodeNBitUnsignedInteger(stream, 7, 110);
+ errn = encodeNBitUnsignedInteger(stream, 7, 107);
if(errn == 0) {
- errn = encode_v2gVehicleCheckOutReqType(stream, &exiDoc->VehicleCheckOutReq );
+ errn = encode_iso2VehicleCheckOutReqType(stream, &exiDoc->VehicleCheckOutReq );
}
} else if ( exiDoc->VehicleCheckOutRes_isUsed == 1u ) {
/* START_ELEMENT({urn:iso:15118:2:2016:MsgBody}VehicleCheckOutRes) */
- errn = encodeNBitUnsignedInteger(stream, 7, 111);
+ errn = encodeNBitUnsignedInteger(stream, 7, 108);
if(errn == 0) {
- errn = encode_v2gVehicleCheckOutResType(stream, &exiDoc->VehicleCheckOutRes );
+ errn = encode_iso2VehicleCheckOutResType(stream, &exiDoc->VehicleCheckOutRes );
}
} else if ( exiDoc->WPT_EVChargeParameter_isUsed == 1u ) {
/* START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}WPT_EVChargeParameter) */
- errn = encodeNBitUnsignedInteger(stream, 7, 112);
+ errn = encodeNBitUnsignedInteger(stream, 7, 109);
if(errn == 0) {
- errn = encode_v2gWPT_EVChargeParameterType(stream, &exiDoc->WPT_EVChargeParameter );
+ errn = encode_iso2WPT_EVChargeParameterType(stream, &exiDoc->WPT_EVChargeParameter );
}
} else if ( exiDoc->WPT_EVSEChargeParameter_isUsed == 1u ) {
/* START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}WPT_EVSEChargeParameter) */
- errn = encodeNBitUnsignedInteger(stream, 7, 113);
+ errn = encodeNBitUnsignedInteger(stream, 7, 110);
if(errn == 0) {
- errn = encode_v2gWPT_EVSEChargeParameterType(stream, &exiDoc->WPT_EVSEChargeParameter );
+ errn = encode_iso2WPT_EVSEChargeParameterType(stream, &exiDoc->WPT_EVSEChargeParameter );
}
} else if ( exiDoc->WeldingDetectionReq_isUsed == 1u ) {
/* START_ELEMENT({urn:iso:15118:2:2016:MsgBody}WeldingDetectionReq) */
- errn = encodeNBitUnsignedInteger(stream, 7, 114);
+ errn = encodeNBitUnsignedInteger(stream, 7, 111);
if(errn == 0) {
- errn = encode_v2gBodyBaseType(stream, &exiDoc->WeldingDetectionReq );
+ errn = encode_iso2WeldingDetectionReqType(stream, &exiDoc->WeldingDetectionReq );
}
} else if ( exiDoc->WeldingDetectionRes_isUsed == 1u ) {
/* START_ELEMENT({urn:iso:15118:2:2016:MsgBody}WeldingDetectionRes) */
- errn = encodeNBitUnsignedInteger(stream, 7, 115);
+ errn = encodeNBitUnsignedInteger(stream, 7, 112);
if(errn == 0) {
- errn = encode_v2gWeldingDetectionResType(stream, &exiDoc->WeldingDetectionRes );
+ errn = encode_iso2WeldingDetectionResType(stream, &exiDoc->WeldingDetectionRes );
}
} else if ( exiDoc->X509Data_isUsed == 1u ) {
/* START_ELEMENT({http://www.w3.org/2000/09/xmldsig#}X509Data) */
- errn = encodeNBitUnsignedInteger(stream, 7, 116);
+ errn = encodeNBitUnsignedInteger(stream, 7, 113);
if(errn == 0) {
- errn = encode_v2gX509DataType(stream, &exiDoc->X509Data );
+ errn = encode_iso2X509DataType(stream, &exiDoc->X509Data );
}
} else {
errn = EXI_ERROR_UNKOWN_EVENT;
@@ -68638,47 +59713,47 @@ int encode_v2gExiDocument(bitstream_t* stream, struct v2gEXIDocument* exiDoc) {
return errn;
}
-#if DEPLOY_ISO_CODEC_FRAGMENT == SUPPORT_YES
-int encode_v2gExiFragment(bitstream_t* stream, struct v2gEXIFragment* exiFrag) {
+#if DEPLOY_ISO2_CODEC_FRAGMENT == SUPPORT_YES
+int encode_iso2ExiFragment(bitstream_t* stream, struct iso2EXIFragment* exiFrag) {
errn = writeEXIHeader(stream);
if(errn == 0) {
- /* FragmentContent[START_ELEMENT({urn:iso:15118:2:2016:MsgBody}AC_BidirectionalControlReq), START_ELEMENT({urn:iso:15118:2:2016:MsgBody}AC_BidirectionalControlRes), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}AC_EVBidirectionalParameter), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}AC_EVChargeParameter), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}AC_EVSEBidirectionalParameter), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}AC_EVSEChargeParameter), START_ELEMENT({urn:iso:15118:2:2016:MsgBody}AlignmentCheckParameters), START_ELEMENT({urn:iso:15118:2:2016:MsgBody}AlignmentCheckReq), START_ELEMENT({urn:iso:15118:2:2016:MsgBody}AlignmentCheckRes), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}AlignmentOffset), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}AngleGAtoVA), START_ELEMENT({urn:iso:15118:2:2016:MsgBody}AuthorizationReq), START_ELEMENT({urn:iso:15118:2:2016:MsgBody}AuthorizationRes), START_ELEMENT({urn:iso:15118:2:2016:MsgDef}Body), START_ELEMENT({urn:iso:15118:2:2016:MsgBody}BodyElement), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}BulkChargingComplete), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}BulkSOC), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}BuyBackTariff), START_ELEMENT({urn:iso:15118:2:2016:MsgBody}CableCheckReq), START_ELEMENT({urn:iso:15118:2:2016:MsgBody}CableCheckRes), START_ELEMENT({http://www.w3.org/2000/09/xmldsig#}CanonicalizationMethod), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}Certificate), START_ELEMENT({urn:iso:15118:2:2016:MsgBody}CertificateInstallationReq), START_ELEMENT({urn:iso:15118:2:2016:MsgBody}CertificateInstallationRes), START_ELEMENT({urn:iso:15118:2:2016:MsgBody}CertificateUpdateReq), START_ELEMENT({urn:iso:15118:2:2016:MsgBody}CertificateUpdateRes), START_ELEMENT({urn:iso:15118:2:2016:MsgBody}ChargeParameterDiscoveryReq), START_ELEMENT({urn:iso:15118:2:2016:MsgBody}ChargeParameterDiscoveryRes), START_ELEMENT({urn:iso:15118:2:2016:MsgBody}ChargeProgress), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}ChargingComplete), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}ChargingPerformance), START_ELEMENT({urn:iso:15118:2:2016:MsgBody}ChargingProfile), START_ELEMENT({urn:iso:15118:2:2016:MsgBody}ChargingSession), START_ELEMENT({urn:iso:15118:2:2016:MsgBody}ChargingStatusReq), START_ELEMENT({urn:iso:15118:2:2016:MsgBody}ChargingStatusRes), START_ELEMENT({urn:iso:15118:2:2016:MsgBody}CheckOutTime), START_ELEMENT({urn:iso:15118:2:2016:MsgBody}ConnectChargingDeviceReq), START_ELEMENT({urn:iso:15118:2:2016:MsgBody}ConnectChargingDeviceRes), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}ConsumptionCost), START_ELEMENT({urn:iso:15118:2:2016:MsgBody}ContractSignatureCertChain), START_ELEMENT({urn:iso:15118:2:2016:MsgBody}ContractSignatureEncryptedPrivateKey), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}Cost), START_ELEMENT({urn:iso:15118:2:2016:MsgBody}CurrentDemandReq), START_ELEMENT({urn:iso:15118:2:2016:MsgBody}CurrentDemandRes), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}CurrentRange), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}CurrentSOC), START_ELEMENT({urn:iso:15118:2:2016:MsgBody}DC_BidirectionalControlReq), START_ELEMENT({urn:iso:15118:2:2016:MsgBody}DC_BidirectionalControlRes), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}DC_EVBidirectionalParameter), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}DC_EVChargeParameter), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}DC_EVSEBidirectionalParameter), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}DC_EVSEChargeParameter), START_ELEMENT({urn:iso:15118:2:2016:MsgBody}DHpublickey), START_ELEMENT({http://www.w3.org/2000/09/xmldsig#}DSAKeyValue), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}DepartureTime), START_ELEMENT({http://www.w3.org/2000/09/xmldsig#}DigestMethod), START_ELEMENT({http://www.w3.org/2000/09/xmldsig#}DigestValue), START_ELEMENT({urn:iso:15118:2:2016:MsgBody}DisconnectChargingDeviceReq), START_ELEMENT({urn:iso:15118:2:2016:MsgBody}DisconnectChargingDeviceRes), START_ELEMENT({urn:iso:15118:2:2016:MsgBody}DisplayParameters), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}Distance), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}EPriceLevel), START_ELEMENT({urn:iso:15118:2:2016:MsgBody}EVCCID), START_ELEMENT({urn:iso:15118:2:2016:MsgBody}EVCheckInStatus), START_ELEMENT({urn:iso:15118:2:2016:MsgBody}EVCheckOutStatus), START_ELEMENT({urn:iso:15118:2:2016:MsgBody}EVElectricalChargingDeviceStatus), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}EVEnergyTransferParameter), START_ELEMENT({urn:iso:15118:2:2016:MsgBody}EVErrorInformation), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}EVFinePositioningParameters), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}EVFinePositioningSetupParameters), START_ELEMENT({urn:iso:15118:2:2016:MsgBody}EVInputPower), START_ELEMENT({urn:iso:15118:2:2016:MsgBody}EVMaximumChargeCurrent), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}EVMaximumChargeCurrent), START_ELEMENT({urn:iso:15118:2:2016:MsgBody}EVMaximumChargePower), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}EVMaximumChargePower), START_ELEMENT({urn:iso:15118:2:2016:MsgBody}EVMaximumCurrent), START_ELEMENT({urn:iso:15118:2:2016:MsgBody}EVMaximumDischargeCurrent), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}EVMaximumDischargeCurrent), START_ELEMENT({urn:iso:15118:2:2016:MsgBody}EVMaximumDischargePower), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}EVMaximumDischargePower), START_ELEMENT({urn:iso:15118:2:2016:MsgBody}EVMaximumEnergyRequest), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}EVMaximumEnergyRequest), START_ELEMENT({urn:iso:15118:2:2016:MsgBody}EVMaximumPower), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}EVMaximumPower), START_ELEMENT({urn:iso:15118:2:2016:MsgBody}EVMaximumVoltage), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}EVMaximumVoltage), START_ELEMENT({urn:iso:15118:2:2016:MsgBody}EVMechanicalChargingDeviceStatus), START_ELEMENT({urn:iso:15118:2:2016:MsgBody}EVMinimumChargeCurrent), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}EVMinimumChargeCurrent), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}EVMinimumChargePower), START_ELEMENT({urn:iso:15118:2:2016:MsgBody}EVMinimumDischargeCurrent), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}EVMinimumDischargeCurrent), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}EVMinimumDischargePower), START_ELEMENT({urn:iso:15118:2:2016:MsgBody}EVMinimumEnergyRequest), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}EVMinimumEnergyRequest), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}EVMinimumPower), START_ELEMENT({urn:iso:15118:2:2016:MsgBody}EVMinimumVoltage), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}EVMinimumVoltage), START_ELEMENT({urn:iso:15118:2:2016:MsgBody}EVOperation), START_ELEMENT({urn:iso:15118:2:2016:MsgBody}EVPresentActivePower), START_ELEMENT({urn:iso:15118:2:2016:MsgBody}EVPresentReactivePower), START_ELEMENT({urn:iso:15118:2:2016:MsgBody}EVProcessing), START_ELEMENT({urn:iso:15118:2:2016:MsgBody}EVSECheckOutStatus), START_ELEMENT({urn:iso:15118:2:2016:MsgBody}EVSECurrentLimitAchieved), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}EVSECurrentRegulationTolerance), START_ELEMENT({urn:iso:15118:2:2016:MsgBody}EVSEElectricalChargingDeviceStatus), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}EVSEEnergyToBeDelivered), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}EVSEEnergyTransferParameter), START_ELEMENT({urn:iso:15118:2:2016:MsgBody}EVSEErrorInformation), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}EVSEFinePositioningParameters), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}EVSEFinePositioningSetupParameters), START_ELEMENT({urn:iso:15118:2:2016:MsgBody}EVSEID), START_ELEMENT({urn:iso:15118:2:2016:MsgBody}EVSEMaximumChargeCurrent), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}EVSEMaximumChargeCurrent), START_ELEMENT({urn:iso:15118:2:2016:MsgBody}EVSEMaximumChargePower), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}EVSEMaximumChargePower), START_ELEMENT({urn:iso:15118:2:2016:MsgBody}EVSEMaximumCurrent), START_ELEMENT({urn:iso:15118:2:2016:MsgBody}EVSEMaximumDischargeCurrent), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}EVSEMaximumDischargeCurrent), START_ELEMENT({urn:iso:15118:2:2016:MsgBody}EVSEMaximumDischargePower), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}EVSEMaximumDischargePower), START_ELEMENT({urn:iso:15118:2:2016:MsgBody}EVSEMaximumPower), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}EVSEMaximumPower), START_ELEMENT({urn:iso:15118:2:2016:MsgBody}EVSEMaximumVoltage), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}EVSEMaximumVoltage), START_ELEMENT({urn:iso:15118:2:2016:MsgBody}EVSEMechanicalChargingDeviceStatus), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}EVSEMinimumChargeCurrent), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}EVSEMinimumDischargeCurrent), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}EVSEMinimumPower), START_ELEMENT({urn:iso:15118:2:2016:MsgBody}EVSEMinimumVoltage), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}EVSEMinimumVoltage), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}EVSENominalFrequency), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}EVSENominalVoltage), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}EVSENotification), START_ELEMENT({urn:iso:15118:2:2016:MsgBody}EVSEOutputPower), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}EVSEPeakCurrentRipple), START_ELEMENT({urn:iso:15118:2:2016:MsgBody}EVSEPowerLimitAchieved), START_ELEMENT({urn:iso:15118:2:2016:MsgBody}EVSEPresentCurrent), START_ELEMENT({urn:iso:15118:2:2016:MsgBody}EVSEPresentVoltage), START_ELEMENT({urn:iso:15118:2:2016:MsgBody}EVSEProcessing), START_ELEMENT({urn:iso:15118:2:2016:MsgBody}EVSEStatus), START_ELEMENT({urn:iso:15118:2:2016:MsgBody}EVSETargetPower), START_ELEMENT({urn:iso:15118:2:2016:MsgBody}EVSETargetReactivePower), START_ELEMENT({urn:iso:15118:2:2016:MsgBody}EVSETimeStamp), START_ELEMENT({urn:iso:15118:2:2016:MsgBody}EVSEVoltageLimitAchieved), START_ELEMENT({urn:iso:15118:2:2016:MsgBody}EVTargetCurrent), START_ELEMENT({urn:iso:15118:2:2016:MsgBody}EVTargetEnergyRequest), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}EVTargetEnergyRequest), START_ELEMENT({urn:iso:15118:2:2016:MsgBody}EVTargetPower), START_ELEMENT({urn:iso:15118:2:2016:MsgBody}EVTargetVoltage), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}EffectiveRadiatedPower), START_ELEMENT({urn:iso:15118:2:2016:MsgBody}EnergyTransferServiceList), START_ELEMENT({urn:iso:15118:2:2016:MsgBody}ErrorCode), START_ELEMENT({urn:iso:15118:2:2016:MsgBody}ErrorInformation), START_ELEMENT({http://www.w3.org/2000/09/xmldsig#}Exponent), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}Exponent), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}FODStatus), START_ELEMENT({urn:iso:15118:2:2016:MsgBody}FinePositioningReq), START_ELEMENT({urn:iso:15118:2:2016:MsgBody}FinePositioningRes), START_ELEMENT({urn:iso:15118:2:2016:MsgBody}FinePositioningSetupReq), START_ELEMENT({urn:iso:15118:2:2016:MsgBody}FinePositioningSetupRes), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}FreeService), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}FrequencyChannel), START_ELEMENT({http://www.w3.org/2000/09/xmldsig#}G), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}GAID), START_ELEMENT({urn:iso:15118:2:2016:MsgBody}GenChallenge), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}GenericParameters), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}Generic_EVFinePositioningParameters), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}Generic_EVSEFinePositioningParameters), START_ELEMENT({http://www.w3.org/2000/09/xmldsig#}HMACOutputLength), START_ELEMENT({urn:iso:15118:2:2016:MsgDef}Header), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}InletHot), START_ELEMENT({http://www.w3.org/2000/09/xmldsig#}J), START_ELEMENT({http://www.w3.org/2000/09/xmldsig#}KeyInfo), START_ELEMENT({http://www.w3.org/2000/09/xmldsig#}KeyName), START_ELEMENT({http://www.w3.org/2000/09/xmldsig#}KeyValue), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}LFA_EVFinePositioningParameters), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}LFA_EVFinePositioningSetupParameters), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}LFA_EVSEFinePositioningSetupParameters), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}LF_EVSEFinePositioningParameters), START_ELEMENT({urn:iso:15118:2:2016:MsgBody}ListOfRootCertificateIDs), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MV_EVSEFinePositioningParameters), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MV_EVSEFinePositioningSetupParameters), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MagneticVector), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MagneticVectorList), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MagneticVectorSetup), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MagneticVectorSetupList), START_ELEMENT({http://www.w3.org/2000/09/xmldsig#}Manifest), START_ELEMENT({urn:iso:15118:2:2016:MsgBody}MaxSupportingPoints), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MeasurementData), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MeterID), START_ELEMENT({urn:iso:15118:2:2016:MsgBody}MeterInfo), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MeterReadingCharged), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MeterReadingDischarged), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MeterStatus), START_ELEMENT({urn:iso:15118:2:2016:MsgBody}MeteringReceiptReq), START_ELEMENT({urn:iso:15118:2:2016:MsgBody}MeteringReceiptRes), START_ELEMENT({http://www.w3.org/2000/09/xmldsig#}MgmtData), START_ELEMENT({urn:iso:15118:2:2016:MsgBody}MinimumPMaxRequest), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MinimumPMaxScheduleEntry), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MinimumSOC), START_ELEMENT({http://www.w3.org/2000/09/xmldsig#}Modulus), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}NotificationMaxDelay), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}NumEPriceLevels), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}NumberOfSensors), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}NumberOfSignalPackages), START_ELEMENT({urn:iso:15118:2:2016:MsgBody}OEMProvisioningCert), START_ELEMENT({http://www.w3.org/2000/09/xmldsig#}Object), START_ELEMENT({urn:iso:15118:2:2016:MsgBody}OperationMode), START_ELEMENT({http://www.w3.org/2000/09/xmldsig#}P), START_ELEMENT({http://www.w3.org/2000/09/xmldsig#}PGPData), START_ELEMENT({http://www.w3.org/2000/09/xmldsig#}PGPKeyID), START_ELEMENT({http://www.w3.org/2000/09/xmldsig#}PGPKeyPacket), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}PMax), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}PMaxDischargeSchedule), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}PMaxSchedule), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}PMaxScheduleEntry), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}PackageIndex), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}PackageSeparationTime), START_ELEMENT({urn:iso:15118:2:2016:MsgBody}PairingParameters), START_ELEMENT({urn:iso:15118:2:2016:MsgBody}PairingReq), START_ELEMENT({urn:iso:15118:2:2016:MsgBody}PairingRes), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}Parameter), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}ParameterSet), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}ParameterSetID), START_ELEMENT({urn:iso:15118:2:2016:MsgBody}ParkingMethod), START_ELEMENT({urn:iso:15118:2:2016:MsgBody}PaymentDetailsReq), START_ELEMENT({urn:iso:15118:2:2016:MsgBody}PaymentDetailsRes), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}PaymentOption), START_ELEMENT({urn:iso:15118:2:2016:MsgBody}PaymentOptionList), START_ELEMENT({urn:iso:15118:2:2016:MsgBody}PaymentServiceSelectionReq), START_ELEMENT({urn:iso:15118:2:2016:MsgBody}PaymentServiceSelectionRes), START_ELEMENT({http://www.w3.org/2000/09/xmldsig#}PgenCounter), START_ELEMENT({urn:iso:15118:2:2016:MsgBody}PowerDeliveryReq), START_ELEMENT({urn:iso:15118:2:2016:MsgBody}PowerDeliveryRes), START_ELEMENT({urn:iso:15118:2:2016:MsgBody}PowerDemandParameters), START_ELEMENT({urn:iso:15118:2:2016:MsgBody}PowerDemandReq), START_ELEMENT({urn:iso:15118:2:2016:MsgBody}PowerDemandRes), START_ELEMENT({urn:iso:15118:2:2016:MsgBody}PreChargeReq), START_ELEMENT({urn:iso:15118:2:2016:MsgBody}PreChargeRes), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}ProfileEntry), START_ELEMENT({http://www.w3.org/2000/09/xmldsig#}Q), START_ELEMENT({http://www.w3.org/2000/09/xmldsig#}RSAKeyValue), START_ELEMENT({urn:iso:15118:2:2016:MsgBody}ReceiptRequired), START_ELEMENT({http://www.w3.org/2000/09/xmldsig#}Reference), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}RelativeTimeInterval), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}RemainingTimeToBulkSOC), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}RemainingTimeToMinimumSOC), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}RemainingTimeToTargetSOC), START_ELEMENT({urn:iso:15118:2:2016:MsgBody}ResponseCode), START_ELEMENT({http://www.w3.org/2000/09/xmldsig#}RetrievalMethod), START_ELEMENT({urn:iso:15118:2:2016:MsgBody}RetryCounter), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}RootCertificateID), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}RotationVAtoGA), START_ELEMENT({urn:iso:15118:2:2016:MsgBody}SAProvisioningCertificateChain), START_ELEMENT({urn:iso:15118:2:2016:MsgBody}SAScheduleList), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SAScheduleList), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SAScheduleTuple), START_ELEMENT({urn:iso:15118:2:2016:MsgBody}SAScheduleTupleID), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SAScheduleTupleID), START_ELEMENT({http://www.w3.org/2000/09/xmldsig#}SPKIData), START_ELEMENT({http://www.w3.org/2000/09/xmldsig#}SPKISexp), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SalesTariff), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SalesTariffDescription), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SalesTariffEntry), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SalesTariffID), START_ELEMENT({http://www.w3.org/2000/09/xmldsig#}Seed), START_ELEMENT({urn:iso:15118:2:2016:MsgBody}SelectedEnergyTransferService), START_ELEMENT({urn:iso:15118:2:2016:MsgBody}SelectedPaymentOption), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SelectedService), START_ELEMENT({urn:iso:15118:2:2016:MsgBody}SelectedVASList), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}Sensor), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorID), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorList), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorMeasurements), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorOrder), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorOrientation), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorPackage), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorPackageList), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorPosition), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}Service), START_ELEMENT({urn:iso:15118:2:2016:MsgBody}ServiceDetailReq), START_ELEMENT({urn:iso:15118:2:2016:MsgBody}ServiceDetailRes), START_ELEMENT({urn:iso:15118:2:2016:MsgBody}ServiceDiscoveryReq), START_ELEMENT({urn:iso:15118:2:2016:MsgBody}ServiceDiscoveryRes), START_ELEMENT({urn:iso:15118:2:2016:MsgBody}ServiceID), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}ServiceID), START_ELEMENT({urn:iso:15118:2:2016:MsgBody}ServiceParameterList), START_ELEMENT({urn:iso:15118:2:2016:MsgBody}SessionID), START_ELEMENT({urn:iso:15118:2:2016:MsgHeader}SessionID), START_ELEMENT({urn:iso:15118:2:2016:MsgBody}SessionSetupReq), START_ELEMENT({urn:iso:15118:2:2016:MsgBody}SessionSetupRes), START_ELEMENT({urn:iso:15118:2:2016:MsgBody}SessionStopReq), START_ELEMENT({urn:iso:15118:2:2016:MsgBody}SessionStopRes), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SigMeterReading), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SignalFrequency), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SignalPulseDuration), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SignalSeparationTime), START_ELEMENT({http://www.w3.org/2000/09/xmldsig#}Signature), START_ELEMENT({http://www.w3.org/2000/09/xmldsig#}SignatureMethod), START_ELEMENT({http://www.w3.org/2000/09/xmldsig#}SignatureProperties), START_ELEMENT({http://www.w3.org/2000/09/xmldsig#}SignatureProperty), START_ELEMENT({http://www.w3.org/2000/09/xmldsig#}SignatureValue), START_ELEMENT({http://www.w3.org/2000/09/xmldsig#}SignedInfo), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SubCertificates), START_ELEMENT({urn:iso:15118:2:2016:MsgBody}SupportedServiceIDs), START_ELEMENT({urn:iso:15118:2:2016:MsgBody}SystemStatusReq), START_ELEMENT({urn:iso:15118:2:2016:MsgBody}SystemStatusRes), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}TMeter), START_ELEMENT({urn:iso:15118:2:2016:MsgBody}TargetOffset), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}TargetOffsetX), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}TargetOffsetY), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}TargetSOC), START_ELEMENT({http://www.w3.org/2000/09/xmldsig#}Transform), START_ELEMENT({http://www.w3.org/2000/09/xmldsig#}Transforms), START_ELEMENT({urn:iso:15118:2:2016:MsgBody}V2GRequest), START_ELEMENT({urn:iso:15118:2:2016:MsgBody}V2GResponse), START_ELEMENT({urn:iso:15118:2:2016:MsgDef}V2G_Message), START_ELEMENT({urn:iso:15118:2:2016:MsgBody}VASList), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}Value), START_ELEMENT({urn:iso:15118:2:2016:MsgBody}VehicleCheckInReq), START_ELEMENT({urn:iso:15118:2:2016:MsgBody}VehicleCheckInRes), START_ELEMENT({urn:iso:15118:2:2016:MsgBody}VehicleCheckOutReq), START_ELEMENT({urn:iso:15118:2:2016:MsgBody}VehicleCheckOutRes), START_ELEMENT({urn:iso:15118:2:2016:MsgBody}VehicleSpace), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}WPT_EVChargeParameter), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}WPT_EVSEChargeParameter), START_ELEMENT({urn:iso:15118:2:2016:MsgBody}WeldingDetectionReq), START_ELEMENT({urn:iso:15118:2:2016:MsgBody}WeldingDetectionRes), START_ELEMENT({http://www.w3.org/2000/09/xmldsig#}X509CRL), START_ELEMENT({http://www.w3.org/2000/09/xmldsig#}X509Certificate), START_ELEMENT({http://www.w3.org/2000/09/xmldsig#}X509Data), START_ELEMENT({http://www.w3.org/2000/09/xmldsig#}X509IssuerName), START_ELEMENT({http://www.w3.org/2000/09/xmldsig#}X509IssuerSerial), START_ELEMENT({http://www.w3.org/2000/09/xmldsig#}X509SKI), START_ELEMENT({http://www.w3.org/2000/09/xmldsig#}X509SerialNumber), START_ELEMENT({http://www.w3.org/2000/09/xmldsig#}X509SubjectName), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}XCoordinate), START_ELEMENT({http://www.w3.org/2000/09/xmldsig#}XPath), START_ELEMENT({http://www.w3.org/2000/09/xmldsig#}Y), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}YCoordinate), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}ZCoordinate), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}amount), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}boolValue), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}byteValue), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}costKind), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}duration), START_ELEMENT({urn:iso:15118:2:2016:MsgBody}eMAID), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}intValue), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}physicalValue), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}shortValue), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}start), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}startValue), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}stringValue), START_ELEMENT_GENERIC, END_DOCUMENT] */
+ /* FragmentContent[START_ELEMENT({urn:iso:15118:2:2016:MsgBody}AC_BidirectionalControlReq), START_ELEMENT({urn:iso:15118:2:2016:MsgBody}AC_BidirectionalControlRes), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}AC_EVBidirectionalParameter), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}AC_EVChargeParameter), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}AC_EVSEBidirectionalParameter), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}AC_EVSEChargeParameter), START_ELEMENT({urn:iso:15118:2:2016:MsgBody}AlignmentCheckParameters), START_ELEMENT({urn:iso:15118:2:2016:MsgBody}AlignmentCheckReq), START_ELEMENT({urn:iso:15118:2:2016:MsgBody}AlignmentCheckRes), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}AlignmentOffset), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}AngleGAtoVA), START_ELEMENT({urn:iso:15118:2:2016:MsgBody}AuthorizationReq), START_ELEMENT({urn:iso:15118:2:2016:MsgBody}AuthorizationRes), START_ELEMENT({urn:iso:15118:2:2016:MsgDef}Body), START_ELEMENT({urn:iso:15118:2:2016:MsgBody}BodyElement), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}BulkChargingComplete), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}BulkSOC), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}BuyBackTariff), START_ELEMENT({urn:iso:15118:2:2016:MsgBody}CableCheckReq), START_ELEMENT({urn:iso:15118:2:2016:MsgBody}CableCheckRes), START_ELEMENT({http://www.w3.org/2000/09/xmldsig#}CanonicalizationMethod), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}Certificate), START_ELEMENT({urn:iso:15118:2:2016:MsgBody}CertificateInstallationReq), START_ELEMENT({urn:iso:15118:2:2016:MsgBody}CertificateInstallationRes), START_ELEMENT({urn:iso:15118:2:2016:MsgBody}CertificateUpdateReq), START_ELEMENT({urn:iso:15118:2:2016:MsgBody}CertificateUpdateRes), START_ELEMENT({urn:iso:15118:2:2016:MsgBody}ChargeParameterDiscoveryReq), START_ELEMENT({urn:iso:15118:2:2016:MsgBody}ChargeParameterDiscoveryRes), START_ELEMENT({urn:iso:15118:2:2016:MsgBody}ChargeProgress), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}ChargingComplete), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}ChargingPerformance), START_ELEMENT({urn:iso:15118:2:2016:MsgBody}ChargingProfile), START_ELEMENT({urn:iso:15118:2:2016:MsgBody}ChargingSession), START_ELEMENT({urn:iso:15118:2:2016:MsgBody}ChargingStatusReq), START_ELEMENT({urn:iso:15118:2:2016:MsgBody}ChargingStatusRes), START_ELEMENT({urn:iso:15118:2:2016:MsgBody}CheckOutTime), START_ELEMENT({urn:iso:15118:2:2016:MsgBody}ConnectChargingDeviceReq), START_ELEMENT({urn:iso:15118:2:2016:MsgBody}ConnectChargingDeviceRes), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}ConsumptionCost), START_ELEMENT({urn:iso:15118:2:2016:MsgBody}ContractSignatureCertChain), START_ELEMENT({urn:iso:15118:2:2016:MsgBody}ContractSignatureEncryptedPrivateKey), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}Cost), START_ELEMENT({urn:iso:15118:2:2016:MsgBody}CurrentDemandReq), START_ELEMENT({urn:iso:15118:2:2016:MsgBody}CurrentDemandRes), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}CurrentRange), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}CurrentSOC), START_ELEMENT({urn:iso:15118:2:2016:MsgBody}DC_BidirectionalControlReq), START_ELEMENT({urn:iso:15118:2:2016:MsgBody}DC_BidirectionalControlRes), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}DC_EVBidirectionalParameter), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}DC_EVChargeParameter), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}DC_EVSEBidirectionalParameter), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}DC_EVSEChargeParameter), START_ELEMENT({urn:iso:15118:2:2016:MsgBody}DHpublickey), START_ELEMENT({http://www.w3.org/2000/09/xmldsig#}DSAKeyValue), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}DepartureTime), START_ELEMENT({http://www.w3.org/2000/09/xmldsig#}DigestMethod), START_ELEMENT({http://www.w3.org/2000/09/xmldsig#}DigestValue), START_ELEMENT({urn:iso:15118:2:2016:MsgBody}DisconnectChargingDeviceReq), START_ELEMENT({urn:iso:15118:2:2016:MsgBody}DisconnectChargingDeviceRes), START_ELEMENT({urn:iso:15118:2:2016:MsgBody}DisplayParameters), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}Distance), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}EPriceLevel), START_ELEMENT({urn:iso:15118:2:2016:MsgBody}EVCCID), START_ELEMENT({urn:iso:15118:2:2016:MsgBody}EVCheckInStatus), START_ELEMENT({urn:iso:15118:2:2016:MsgBody}EVCheckOutStatus), START_ELEMENT({urn:iso:15118:2:2016:MsgBody}EVElectricalChargingDeviceStatus), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}EVEnergyTransferParameter), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}EVFinePositioningParameters), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}EVFinePositioningSetupParameters), START_ELEMENT({urn:iso:15118:2:2016:MsgBody}EVInputPower), START_ELEMENT({urn:iso:15118:2:2016:MsgBody}EVMaximumChargeCurrent), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}EVMaximumChargeCurrent), START_ELEMENT({urn:iso:15118:2:2016:MsgBody}EVMaximumChargePower), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}EVMaximumChargePower), START_ELEMENT({urn:iso:15118:2:2016:MsgBody}EVMaximumCurrent), START_ELEMENT({urn:iso:15118:2:2016:MsgBody}EVMaximumDischargeCurrent), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}EVMaximumDischargeCurrent), START_ELEMENT({urn:iso:15118:2:2016:MsgBody}EVMaximumDischargePower), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}EVMaximumDischargePower), START_ELEMENT({urn:iso:15118:2:2016:MsgBody}EVMaximumEnergyRequest), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}EVMaximumEnergyRequest), START_ELEMENT({urn:iso:15118:2:2016:MsgBody}EVMaximumPower), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}EVMaximumPower), START_ELEMENT({urn:iso:15118:2:2016:MsgBody}EVMaximumVoltage), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}EVMaximumVoltage), START_ELEMENT({urn:iso:15118:2:2016:MsgBody}EVMechanicalChargingDeviceStatus), START_ELEMENT({urn:iso:15118:2:2016:MsgBody}EVMinimumChargeCurrent), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}EVMinimumChargeCurrent), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}EVMinimumChargePower), START_ELEMENT({urn:iso:15118:2:2016:MsgBody}EVMinimumDischargeCurrent), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}EVMinimumDischargeCurrent), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}EVMinimumDischargePower), START_ELEMENT({urn:iso:15118:2:2016:MsgBody}EVMinimumEnergyRequest), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}EVMinimumEnergyRequest), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}EVMinimumPower), START_ELEMENT({urn:iso:15118:2:2016:MsgBody}EVMinimumVoltage), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}EVMinimumVoltage), START_ELEMENT({urn:iso:15118:2:2016:MsgBody}EVOperation), START_ELEMENT({urn:iso:15118:2:2016:MsgBody}EVPresentActivePower), START_ELEMENT({urn:iso:15118:2:2016:MsgBody}EVPresentReactivePower), START_ELEMENT({urn:iso:15118:2:2016:MsgBody}EVProcessing), START_ELEMENT({urn:iso:15118:2:2016:MsgBody}EVSECheckOutStatus), START_ELEMENT({urn:iso:15118:2:2016:MsgBody}EVSECurrentLimitAchieved), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}EVSECurrentRegulationTolerance), START_ELEMENT({urn:iso:15118:2:2016:MsgBody}EVSEElectricalChargingDeviceStatus), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}EVSEEnergyToBeDelivered), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}EVSEEnergyTransferParameter), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}EVSEFinePositioningParameters), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}EVSEFinePositioningSetupParameters), START_ELEMENT({urn:iso:15118:2:2016:MsgBody}EVSEID), START_ELEMENT({urn:iso:15118:2:2016:MsgBody}EVSEMaximumChargeCurrent), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}EVSEMaximumChargeCurrent), START_ELEMENT({urn:iso:15118:2:2016:MsgBody}EVSEMaximumChargePower), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}EVSEMaximumChargePower), START_ELEMENT({urn:iso:15118:2:2016:MsgBody}EVSEMaximumCurrent), START_ELEMENT({urn:iso:15118:2:2016:MsgBody}EVSEMaximumDischargeCurrent), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}EVSEMaximumDischargeCurrent), START_ELEMENT({urn:iso:15118:2:2016:MsgBody}EVSEMaximumDischargePower), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}EVSEMaximumDischargePower), START_ELEMENT({urn:iso:15118:2:2016:MsgBody}EVSEMaximumPower), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}EVSEMaximumPower), START_ELEMENT({urn:iso:15118:2:2016:MsgBody}EVSEMaximumVoltage), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}EVSEMaximumVoltage), START_ELEMENT({urn:iso:15118:2:2016:MsgBody}EVSEMechanicalChargingDeviceStatus), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}EVSEMinimumChargeCurrent), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}EVSEMinimumDischargeCurrent), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}EVSEMinimumPower), START_ELEMENT({urn:iso:15118:2:2016:MsgBody}EVSEMinimumVoltage), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}EVSEMinimumVoltage), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}EVSENominalFrequency), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}EVSENominalVoltage), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}EVSENotification), START_ELEMENT({urn:iso:15118:2:2016:MsgBody}EVSEOutputPower), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}EVSEPeakCurrentRipple), START_ELEMENT({urn:iso:15118:2:2016:MsgBody}EVSEPowerLimitAchieved), START_ELEMENT({urn:iso:15118:2:2016:MsgBody}EVSEPresentCurrent), START_ELEMENT({urn:iso:15118:2:2016:MsgBody}EVSEPresentVoltage), START_ELEMENT({urn:iso:15118:2:2016:MsgBody}EVSEProcessing), START_ELEMENT({urn:iso:15118:2:2016:MsgBody}EVSEStatus), START_ELEMENT({urn:iso:15118:2:2016:MsgBody}EVSETargetPower), START_ELEMENT({urn:iso:15118:2:2016:MsgBody}EVSETargetReactivePower), START_ELEMENT({urn:iso:15118:2:2016:MsgBody}EVSETimeStamp), START_ELEMENT({urn:iso:15118:2:2016:MsgBody}EVSEVoltageLimitAchieved), START_ELEMENT({urn:iso:15118:2:2016:MsgBody}EVTargetCurrent), START_ELEMENT({urn:iso:15118:2:2016:MsgBody}EVTargetEnergyRequest), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}EVTargetEnergyRequest), START_ELEMENT({urn:iso:15118:2:2016:MsgBody}EVTargetPower), START_ELEMENT({urn:iso:15118:2:2016:MsgBody}EVTargetVoltage), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}EffectiveRadiatedPower), START_ELEMENT({urn:iso:15118:2:2016:MsgBody}EnergyTransferServiceList), START_ELEMENT({http://www.w3.org/2000/09/xmldsig#}Exponent), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}Exponent), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}FODStatus), START_ELEMENT({urn:iso:15118:2:2016:MsgBody}FinePositioningReq), START_ELEMENT({urn:iso:15118:2:2016:MsgBody}FinePositioningRes), START_ELEMENT({urn:iso:15118:2:2016:MsgBody}FinePositioningSetupReq), START_ELEMENT({urn:iso:15118:2:2016:MsgBody}FinePositioningSetupRes), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}FreeService), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}FrequencyChannel), START_ELEMENT({http://www.w3.org/2000/09/xmldsig#}G), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}GAID), START_ELEMENT({urn:iso:15118:2:2016:MsgBody}GenChallenge), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}GenericParameters), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}Generic_EVFinePositioningParameters), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}Generic_EVSEFinePositioningParameters), START_ELEMENT({http://www.w3.org/2000/09/xmldsig#}HMACOutputLength), START_ELEMENT({urn:iso:15118:2:2016:MsgDef}Header), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}InletHot), START_ELEMENT({http://www.w3.org/2000/09/xmldsig#}J), START_ELEMENT({http://www.w3.org/2000/09/xmldsig#}KeyInfo), START_ELEMENT({http://www.w3.org/2000/09/xmldsig#}KeyName), START_ELEMENT({http://www.w3.org/2000/09/xmldsig#}KeyValue), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}LFA_EVFinePositioningParameters), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}LFA_EVFinePositioningSetupParameters), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}LFA_EVSEFinePositioningParameters), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}LFA_EVSEFinePositioningSetupParameters), START_ELEMENT({urn:iso:15118:2:2016:MsgBody}ListOfRootCertificateIDs), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MV_EVSEFinePositioningParameters), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MV_EVSEFinePositioningSetupParameters), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MagneticVector), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MagneticVectorList), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MagneticVectorSetup), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MagneticVectorSetupList), START_ELEMENT({http://www.w3.org/2000/09/xmldsig#}Manifest), START_ELEMENT({urn:iso:15118:2:2016:MsgBody}MaxSupportingPoints), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MeasurementData), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MeasurementDataList), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MeterID), START_ELEMENT({urn:iso:15118:2:2016:MsgBody}MeterInfo), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MeterReadingCharged), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MeterReadingDischarged), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MeterStatus), START_ELEMENT({urn:iso:15118:2:2016:MsgBody}MeteringReceiptReq), START_ELEMENT({urn:iso:15118:2:2016:MsgBody}MeteringReceiptRes), START_ELEMENT({http://www.w3.org/2000/09/xmldsig#}MgmtData), START_ELEMENT({urn:iso:15118:2:2016:MsgBody}MinimumPMaxRequest), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MinimumPMaxScheduleEntry), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MinimumSOC), START_ELEMENT({http://www.w3.org/2000/09/xmldsig#}Modulus), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}NotificationMaxDelay), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}NumEPriceLevels), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}NumberOfSensors), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}NumberOfSignalPackages), START_ELEMENT({urn:iso:15118:2:2016:MsgBody}OEMProvisioningCert), START_ELEMENT({http://www.w3.org/2000/09/xmldsig#}Object), START_ELEMENT({urn:iso:15118:2:2016:MsgBody}OperationMode), START_ELEMENT({http://www.w3.org/2000/09/xmldsig#}P), START_ELEMENT({http://www.w3.org/2000/09/xmldsig#}PGPData), START_ELEMENT({http://www.w3.org/2000/09/xmldsig#}PGPKeyID), START_ELEMENT({http://www.w3.org/2000/09/xmldsig#}PGPKeyPacket), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}PMax), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}PMaxDischargeSchedule), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}PMaxSchedule), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}PMaxScheduleEntry), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}PackageIndex), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}PackageSeparationTime), START_ELEMENT({urn:iso:15118:2:2016:MsgBody}PairingParameters), START_ELEMENT({urn:iso:15118:2:2016:MsgBody}PairingReq), START_ELEMENT({urn:iso:15118:2:2016:MsgBody}PairingRes), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}Parameter), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}ParameterSet), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}ParameterSetID), START_ELEMENT({urn:iso:15118:2:2016:MsgBody}ParkingMethod), START_ELEMENT({urn:iso:15118:2:2016:MsgBody}PaymentDetailsReq), START_ELEMENT({urn:iso:15118:2:2016:MsgBody}PaymentDetailsRes), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}PaymentOption), START_ELEMENT({urn:iso:15118:2:2016:MsgBody}PaymentOptionList), START_ELEMENT({urn:iso:15118:2:2016:MsgBody}PaymentServiceSelectionReq), START_ELEMENT({urn:iso:15118:2:2016:MsgBody}PaymentServiceSelectionRes), START_ELEMENT({http://www.w3.org/2000/09/xmldsig#}PgenCounter), START_ELEMENT({urn:iso:15118:2:2016:MsgBody}PowerDeliveryReq), START_ELEMENT({urn:iso:15118:2:2016:MsgBody}PowerDeliveryRes), START_ELEMENT({urn:iso:15118:2:2016:MsgBody}PowerDemandParameters), START_ELEMENT({urn:iso:15118:2:2016:MsgBody}PowerDemandReq), START_ELEMENT({urn:iso:15118:2:2016:MsgBody}PowerDemandRes), START_ELEMENT({urn:iso:15118:2:2016:MsgBody}PreChargeReq), START_ELEMENT({urn:iso:15118:2:2016:MsgBody}PreChargeRes), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}ProfileEntry), START_ELEMENT({http://www.w3.org/2000/09/xmldsig#}Q), START_ELEMENT({http://www.w3.org/2000/09/xmldsig#}RSAKeyValue), START_ELEMENT({urn:iso:15118:2:2016:MsgBody}ReceiptRequired), START_ELEMENT({http://www.w3.org/2000/09/xmldsig#}Reference), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}RelativeTimeInterval), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}RemainingTimeToBulkSOC), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}RemainingTimeToMinimumSOC), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}RemainingTimeToTargetSOC), START_ELEMENT({urn:iso:15118:2:2016:MsgBody}ResponseCode), START_ELEMENT({http://www.w3.org/2000/09/xmldsig#}RetrievalMethod), START_ELEMENT({urn:iso:15118:2:2016:MsgBody}RetryCounter), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}RootCertificateID), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}RotationVAtoGA), START_ELEMENT({urn:iso:15118:2:2016:MsgBody}SAProvisioningCertificateChain), START_ELEMENT({urn:iso:15118:2:2016:MsgBody}SAScheduleList), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SAScheduleList), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SAScheduleTuple), START_ELEMENT({urn:iso:15118:2:2016:MsgBody}SAScheduleTupleID), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SAScheduleTupleID), START_ELEMENT({http://www.w3.org/2000/09/xmldsig#}SPKIData), START_ELEMENT({http://www.w3.org/2000/09/xmldsig#}SPKISexp), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SalesTariff), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SalesTariffDescription), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SalesTariffEntry), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SalesTariffID), START_ELEMENT({http://www.w3.org/2000/09/xmldsig#}Seed), START_ELEMENT({urn:iso:15118:2:2016:MsgBody}SelectedEnergyTransferService), START_ELEMENT({urn:iso:15118:2:2016:MsgBody}SelectedPaymentOption), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SelectedService), START_ELEMENT({urn:iso:15118:2:2016:MsgBody}SelectedVASList), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}Sensor), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorID), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorList), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorMeasurements), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorOrder), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorOrientation), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorPackage), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorPackageList), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorPosition), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}Service), START_ELEMENT({urn:iso:15118:2:2016:MsgBody}ServiceDetailReq), START_ELEMENT({urn:iso:15118:2:2016:MsgBody}ServiceDetailRes), START_ELEMENT({urn:iso:15118:2:2016:MsgBody}ServiceDiscoveryReq), START_ELEMENT({urn:iso:15118:2:2016:MsgBody}ServiceDiscoveryRes), START_ELEMENT({urn:iso:15118:2:2016:MsgBody}ServiceID), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}ServiceID), START_ELEMENT({urn:iso:15118:2:2016:MsgBody}ServiceParameterList), START_ELEMENT({urn:iso:15118:2:2016:MsgBody}SessionID), START_ELEMENT({urn:iso:15118:2:2016:MsgHeader}SessionID), START_ELEMENT({urn:iso:15118:2:2016:MsgBody}SessionSetupReq), START_ELEMENT({urn:iso:15118:2:2016:MsgBody}SessionSetupRes), START_ELEMENT({urn:iso:15118:2:2016:MsgBody}SessionStopReq), START_ELEMENT({urn:iso:15118:2:2016:MsgBody}SessionStopRes), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SigMeterReading), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SignalFrequency), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SignalPulseDuration), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SignalSeparationTime), START_ELEMENT({http://www.w3.org/2000/09/xmldsig#}Signature), START_ELEMENT({http://www.w3.org/2000/09/xmldsig#}SignatureMethod), START_ELEMENT({http://www.w3.org/2000/09/xmldsig#}SignatureProperties), START_ELEMENT({http://www.w3.org/2000/09/xmldsig#}SignatureProperty), START_ELEMENT({http://www.w3.org/2000/09/xmldsig#}SignatureValue), START_ELEMENT({http://www.w3.org/2000/09/xmldsig#}SignedInfo), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SubCertificates), START_ELEMENT({urn:iso:15118:2:2016:MsgBody}SupportedServiceIDs), START_ELEMENT({urn:iso:15118:2:2016:MsgBody}SystemStatusReq), START_ELEMENT({urn:iso:15118:2:2016:MsgBody}SystemStatusRes), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}TMeter), START_ELEMENT({urn:iso:15118:2:2016:MsgBody}TargetOffset), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}TargetOffsetX), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}TargetOffsetY), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}TargetSOC), START_ELEMENT({http://www.w3.org/2000/09/xmldsig#}Transform), START_ELEMENT({http://www.w3.org/2000/09/xmldsig#}Transforms), START_ELEMENT({urn:iso:15118:2:2016:MsgBody}V2GRequest), START_ELEMENT({urn:iso:15118:2:2016:MsgBody}V2GResponse), START_ELEMENT({urn:iso:15118:2:2016:MsgDef}V2G_Message), START_ELEMENT({urn:iso:15118:2:2016:MsgBody}VASList), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}Value), START_ELEMENT({urn:iso:15118:2:2016:MsgBody}VehicleCheckInReq), START_ELEMENT({urn:iso:15118:2:2016:MsgBody}VehicleCheckInRes), START_ELEMENT({urn:iso:15118:2:2016:MsgBody}VehicleCheckOutReq), START_ELEMENT({urn:iso:15118:2:2016:MsgBody}VehicleCheckOutRes), START_ELEMENT({urn:iso:15118:2:2016:MsgBody}VehicleSpace), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}WPT_EVChargeParameter), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}WPT_EVSEChargeParameter), START_ELEMENT({urn:iso:15118:2:2016:MsgBody}WeldingDetectionReq), START_ELEMENT({urn:iso:15118:2:2016:MsgBody}WeldingDetectionRes), START_ELEMENT({http://www.w3.org/2000/09/xmldsig#}X509CRL), START_ELEMENT({http://www.w3.org/2000/09/xmldsig#}X509Certificate), START_ELEMENT({http://www.w3.org/2000/09/xmldsig#}X509Data), START_ELEMENT({http://www.w3.org/2000/09/xmldsig#}X509IssuerName), START_ELEMENT({http://www.w3.org/2000/09/xmldsig#}X509IssuerSerial), START_ELEMENT({http://www.w3.org/2000/09/xmldsig#}X509SKI), START_ELEMENT({http://www.w3.org/2000/09/xmldsig#}X509SerialNumber), START_ELEMENT({http://www.w3.org/2000/09/xmldsig#}X509SubjectName), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}XCoordinate), START_ELEMENT({http://www.w3.org/2000/09/xmldsig#}XPath), START_ELEMENT({http://www.w3.org/2000/09/xmldsig#}Y), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}YCoordinate), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}ZCoordinate), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}amount), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}boolValue), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}byteValue), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}costKind), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}duration), START_ELEMENT({urn:iso:15118:2:2016:MsgBody}eMAID), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}intValue), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}physicalValue), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}shortValue), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}start), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}startValue), START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}stringValue), START_ELEMENT_GENERIC, END_DOCUMENT] */
if ( exiFrag->AC_BidirectionalControlReq_isUsed == 1u ) {
/* START_ELEMENT({urn:iso:15118:2:2016:MsgBody}AC_BidirectionalControlReq) */
errn = encodeNBitUnsignedInteger(stream, 9, 0);
if(errn == 0) {
- errn = encode_v2gAC_BidirectionalControlReqType(stream, &exiFrag->AC_BidirectionalControlReq );
+ errn = encode_iso2AC_BidirectionalControlReqType(stream, &exiFrag->AC_BidirectionalControlReq );
}
} else if ( exiFrag->AC_BidirectionalControlRes_isUsed == 1u ) {
/* START_ELEMENT({urn:iso:15118:2:2016:MsgBody}AC_BidirectionalControlRes) */
errn = encodeNBitUnsignedInteger(stream, 9, 1);
if(errn == 0) {
- errn = encode_v2gAC_BidirectionalControlResType(stream, &exiFrag->AC_BidirectionalControlRes );
+ errn = encode_iso2AC_BidirectionalControlResType(stream, &exiFrag->AC_BidirectionalControlRes );
}
} else if ( exiFrag->AC_EVBidirectionalParameter_isUsed == 1u ) {
/* START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}AC_EVBidirectionalParameter) */
errn = encodeNBitUnsignedInteger(stream, 9, 2);
if(errn == 0) {
- errn = encode_v2gAC_EVBidirectionalParameterType(stream, &exiFrag->AC_EVBidirectionalParameter );
+ errn = encode_iso2AC_EVBidirectionalParameterType(stream, &exiFrag->AC_EVBidirectionalParameter );
}
} else if ( exiFrag->AC_EVChargeParameter_isUsed == 1u ) {
/* START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}AC_EVChargeParameter) */
errn = encodeNBitUnsignedInteger(stream, 9, 3);
if(errn == 0) {
- errn = encode_v2gAC_EVChargeParameterType(stream, &exiFrag->AC_EVChargeParameter );
+ errn = encode_iso2AC_EVChargeParameterType(stream, &exiFrag->AC_EVChargeParameter );
}
} else if ( exiFrag->AC_EVSEBidirectionalParameter_isUsed == 1u ) {
/* START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}AC_EVSEBidirectionalParameter) */
errn = encodeNBitUnsignedInteger(stream, 9, 4);
if(errn == 0) {
- errn = encode_v2gAC_EVSEBidirectionalParameterType(stream, &exiFrag->AC_EVSEBidirectionalParameter );
+ errn = encode_iso2AC_EVSEBidirectionalParameterType(stream, &exiFrag->AC_EVSEBidirectionalParameter );
}
} else if ( exiFrag->AC_EVSEChargeParameter_isUsed == 1u ) {
/* START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}AC_EVSEChargeParameter) */
errn = encodeNBitUnsignedInteger(stream, 9, 5);
if(errn == 0) {
- errn = encode_v2gAC_EVSEChargeParameterType(stream, &exiFrag->AC_EVSEChargeParameter );
+ errn = encode_iso2AC_EVSEChargeParameterType(stream, &exiFrag->AC_EVSEChargeParameter );
}
} else if ( exiFrag->AlignmentCheckParameters_isUsed == 1u ) {
/* START_ELEMENT({urn:iso:15118:2:2016:MsgBody}AlignmentCheckParameters) */
@@ -68687,13 +59762,13 @@ int encode_v2gExiFragment(bitstream_t* stream, struct v2gEXIFragment* exiFrag) {
/* START_ELEMENT({urn:iso:15118:2:2016:MsgBody}AlignmentCheckReq) */
errn = encodeNBitUnsignedInteger(stream, 9, 7);
if(errn == 0) {
- errn = encode_v2gAlignmentCheckReqType(stream, &exiFrag->AlignmentCheckReq );
+ errn = encode_iso2AlignmentCheckReqType(stream, &exiFrag->AlignmentCheckReq );
}
} else if ( exiFrag->AlignmentCheckRes_isUsed == 1u ) {
/* START_ELEMENT({urn:iso:15118:2:2016:MsgBody}AlignmentCheckRes) */
errn = encodeNBitUnsignedInteger(stream, 9, 8);
if(errn == 0) {
- errn = encode_v2gAlignmentCheckResType(stream, &exiFrag->AlignmentCheckRes );
+ errn = encode_iso2AlignmentCheckResType(stream, &exiFrag->AlignmentCheckRes );
}
} else if ( exiFrag->AlignmentOffset_isUsed == 1u ) {
/* START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}AlignmentOffset) */
@@ -68702,31 +59777,31 @@ int encode_v2gExiFragment(bitstream_t* stream, struct v2gEXIFragment* exiFrag) {
/* START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}AngleGAtoVA) */
errn = encodeNBitUnsignedInteger(stream, 9, 10);
if(errn == 0) {
- errn = encode_v2gPhysicalValueType(stream, &exiFrag->AngleGAtoVA );
+ errn = encode_iso2PhysicalValueType(stream, &exiFrag->AngleGAtoVA );
}
} else if ( exiFrag->AuthorizationReq_isUsed == 1u ) {
/* START_ELEMENT({urn:iso:15118:2:2016:MsgBody}AuthorizationReq) */
errn = encodeNBitUnsignedInteger(stream, 9, 11);
if(errn == 0) {
- errn = encode_v2gAuthorizationReqType(stream, &exiFrag->AuthorizationReq );
+ errn = encode_iso2AuthorizationReqType(stream, &exiFrag->AuthorizationReq );
}
} else if ( exiFrag->AuthorizationRes_isUsed == 1u ) {
/* START_ELEMENT({urn:iso:15118:2:2016:MsgBody}AuthorizationRes) */
errn = encodeNBitUnsignedInteger(stream, 9, 12);
if(errn == 0) {
- errn = encode_v2gAuthorizationResType(stream, &exiFrag->AuthorizationRes );
+ errn = encode_iso2AuthorizationResType(stream, &exiFrag->AuthorizationRes );
}
} else if ( exiFrag->Body_isUsed == 1u ) {
/* START_ELEMENT({urn:iso:15118:2:2016:MsgDef}Body) */
errn = encodeNBitUnsignedInteger(stream, 9, 13);
if(errn == 0) {
- errn = encode_v2gBodyType(stream, &exiFrag->Body );
+ errn = encode_iso2BodyType(stream, &exiFrag->Body );
}
} else if ( exiFrag->BodyElement_isUsed == 1u ) {
/* START_ELEMENT({urn:iso:15118:2:2016:MsgBody}BodyElement) */
errn = encodeNBitUnsignedInteger(stream, 9, 14);
if(errn == 0) {
- errn = encode_v2gBodyBaseType(stream, &exiFrag->BodyElement );
+ errn = encode_iso2BodyBaseType(stream, &exiFrag->BodyElement );
}
} else if ( exiFrag->BulkChargingComplete_isUsed == 1u ) {
/* START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}BulkChargingComplete) */
@@ -68747,25 +59822,25 @@ int encode_v2gExiFragment(bitstream_t* stream, struct v2gEXIFragment* exiFrag) {
/* START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}BuyBackTariff) */
errn = encodeNBitUnsignedInteger(stream, 9, 17);
if(errn == 0) {
- errn = encode_v2gSalesTariffType(stream, &exiFrag->BuyBackTariff );
+ errn = encode_iso2SalesTariffType(stream, &exiFrag->BuyBackTariff );
}
} else if ( exiFrag->CableCheckReq_isUsed == 1u ) {
/* START_ELEMENT({urn:iso:15118:2:2016:MsgBody}CableCheckReq) */
errn = encodeNBitUnsignedInteger(stream, 9, 18);
if(errn == 0) {
- errn = encode_v2gBodyBaseType(stream, &exiFrag->CableCheckReq );
+ errn = encode_iso2CableCheckReqType(stream, &exiFrag->CableCheckReq );
}
} else if ( exiFrag->CableCheckRes_isUsed == 1u ) {
/* START_ELEMENT({urn:iso:15118:2:2016:MsgBody}CableCheckRes) */
errn = encodeNBitUnsignedInteger(stream, 9, 19);
if(errn == 0) {
- errn = encode_v2gCableCheckResType(stream, &exiFrag->CableCheckRes );
+ errn = encode_iso2CableCheckResType(stream, &exiFrag->CableCheckRes );
}
} else if ( exiFrag->CanonicalizationMethod_isUsed == 1u ) {
/* START_ELEMENT({http://www.w3.org/2000/09/xmldsig#}CanonicalizationMethod) */
errn = encodeNBitUnsignedInteger(stream, 9, 20);
if(errn == 0) {
- errn = encode_v2gCanonicalizationMethodType(stream, &exiFrag->CanonicalizationMethod );
+ errn = encode_iso2CanonicalizationMethodType(stream, &exiFrag->CanonicalizationMethod );
}
} else if ( exiFrag->Certificate_isUsed == 1u ) {
/* START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}Certificate) */
@@ -68774,37 +59849,37 @@ int encode_v2gExiFragment(bitstream_t* stream, struct v2gEXIFragment* exiFrag) {
/* START_ELEMENT({urn:iso:15118:2:2016:MsgBody}CertificateInstallationReq) */
errn = encodeNBitUnsignedInteger(stream, 9, 22);
if(errn == 0) {
- errn = encode_v2gCertificateInstallationReqType(stream, &exiFrag->CertificateInstallationReq );
+ errn = encode_iso2CertificateInstallationReqType(stream, &exiFrag->CertificateInstallationReq );
}
} else if ( exiFrag->CertificateInstallationRes_isUsed == 1u ) {
/* START_ELEMENT({urn:iso:15118:2:2016:MsgBody}CertificateInstallationRes) */
errn = encodeNBitUnsignedInteger(stream, 9, 23);
if(errn == 0) {
- errn = encode_v2gCertificateInstallationResType(stream, &exiFrag->CertificateInstallationRes );
+ errn = encode_iso2CertificateInstallationResType(stream, &exiFrag->CertificateInstallationRes );
}
} else if ( exiFrag->CertificateUpdateReq_isUsed == 1u ) {
/* START_ELEMENT({urn:iso:15118:2:2016:MsgBody}CertificateUpdateReq) */
errn = encodeNBitUnsignedInteger(stream, 9, 24);
if(errn == 0) {
- errn = encode_v2gCertificateUpdateReqType(stream, &exiFrag->CertificateUpdateReq );
+ errn = encode_iso2CertificateUpdateReqType(stream, &exiFrag->CertificateUpdateReq );
}
} else if ( exiFrag->CertificateUpdateRes_isUsed == 1u ) {
/* START_ELEMENT({urn:iso:15118:2:2016:MsgBody}CertificateUpdateRes) */
errn = encodeNBitUnsignedInteger(stream, 9, 25);
if(errn == 0) {
- errn = encode_v2gCertificateUpdateResType(stream, &exiFrag->CertificateUpdateRes );
+ errn = encode_iso2CertificateUpdateResType(stream, &exiFrag->CertificateUpdateRes );
}
} else if ( exiFrag->ChargeParameterDiscoveryReq_isUsed == 1u ) {
/* START_ELEMENT({urn:iso:15118:2:2016:MsgBody}ChargeParameterDiscoveryReq) */
errn = encodeNBitUnsignedInteger(stream, 9, 26);
if(errn == 0) {
- errn = encode_v2gChargeParameterDiscoveryReqType(stream, &exiFrag->ChargeParameterDiscoveryReq );
+ errn = encode_iso2ChargeParameterDiscoveryReqType(stream, &exiFrag->ChargeParameterDiscoveryReq );
}
} else if ( exiFrag->ChargeParameterDiscoveryRes_isUsed == 1u ) {
/* START_ELEMENT({urn:iso:15118:2:2016:MsgBody}ChargeParameterDiscoveryRes) */
errn = encodeNBitUnsignedInteger(stream, 9, 27);
if(errn == 0) {
- errn = encode_v2gChargeParameterDiscoveryResType(stream, &exiFrag->ChargeParameterDiscoveryRes );
+ errn = encode_iso2ChargeParameterDiscoveryResType(stream, &exiFrag->ChargeParameterDiscoveryRes );
}
} else if ( exiFrag->ChargeProgress_isUsed == 1u ) {
/* START_ELEMENT({urn:iso:15118:2:2016:MsgBody}ChargeProgress) */
@@ -68834,13 +59909,13 @@ int encode_v2gExiFragment(bitstream_t* stream, struct v2gEXIFragment* exiFrag) {
/* START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}ChargingPerformance) */
errn = encodeNBitUnsignedInteger(stream, 9, 30);
if(errn == 0) {
- errn = encode_v2gPhysicalValueType(stream, &exiFrag->ChargingPerformance );
+ errn = encode_iso2PhysicalValueType(stream, &exiFrag->ChargingPerformance );
}
} else if ( exiFrag->ChargingProfile_isUsed == 1u ) {
/* START_ELEMENT({urn:iso:15118:2:2016:MsgBody}ChargingProfile) */
errn = encodeNBitUnsignedInteger(stream, 9, 31);
if(errn == 0) {
- errn = encode_v2gChargingProfileType(stream, &exiFrag->ChargingProfile );
+ errn = encode_iso2ChargingProfileType(stream, &exiFrag->ChargingProfile );
}
} else if ( exiFrag->ChargingSession_isUsed == 1u ) {
/* START_ELEMENT({urn:iso:15118:2:2016:MsgBody}ChargingSession) */
@@ -68858,13 +59933,13 @@ int encode_v2gExiFragment(bitstream_t* stream, struct v2gEXIFragment* exiFrag) {
/* START_ELEMENT({urn:iso:15118:2:2016:MsgBody}ChargingStatusReq) */
errn = encodeNBitUnsignedInteger(stream, 9, 33);
if(errn == 0) {
- errn = encode_v2gChargingStatusReqType(stream, &exiFrag->ChargingStatusReq );
+ errn = encode_iso2ChargingStatusReqType(stream, &exiFrag->ChargingStatusReq );
}
} else if ( exiFrag->ChargingStatusRes_isUsed == 1u ) {
/* START_ELEMENT({urn:iso:15118:2:2016:MsgBody}ChargingStatusRes) */
errn = encodeNBitUnsignedInteger(stream, 9, 34);
if(errn == 0) {
- errn = encode_v2gChargingStatusResType(stream, &exiFrag->ChargingStatusRes );
+ errn = encode_iso2ChargingStatusResType(stream, &exiFrag->ChargingStatusRes );
}
} else if ( exiFrag->CheckOutTime_isUsed == 1u ) {
/* START_ELEMENT({urn:iso:15118:2:2016:MsgBody}CheckOutTime) */
@@ -68882,19 +59957,19 @@ int encode_v2gExiFragment(bitstream_t* stream, struct v2gEXIFragment* exiFrag) {
/* START_ELEMENT({urn:iso:15118:2:2016:MsgBody}ConnectChargingDeviceReq) */
errn = encodeNBitUnsignedInteger(stream, 9, 36);
if(errn == 0) {
- errn = encode_v2gConnectChargingDeviceReqType(stream, &exiFrag->ConnectChargingDeviceReq );
+ errn = encode_iso2ConnectChargingDeviceReqType(stream, &exiFrag->ConnectChargingDeviceReq );
}
} else if ( exiFrag->ConnectChargingDeviceRes_isUsed == 1u ) {
/* START_ELEMENT({urn:iso:15118:2:2016:MsgBody}ConnectChargingDeviceRes) */
errn = encodeNBitUnsignedInteger(stream, 9, 37);
if(errn == 0) {
- errn = encode_v2gConnectChargingDeviceResType(stream, &exiFrag->ConnectChargingDeviceRes );
+ errn = encode_iso2ConnectChargingDeviceResType(stream, &exiFrag->ConnectChargingDeviceRes );
}
} else if ( exiFrag->ConsumptionCost_isUsed == 1u ) {
/* START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}ConsumptionCost) */
errn = encodeNBitUnsignedInteger(stream, 9, 38);
if(errn == 0) {
- errn = encode_v2gConsumptionCostType(stream, &exiFrag->ConsumptionCost );
+ errn = encode_iso2ConsumptionCostType(stream, &exiFrag->ConsumptionCost );
}
} else if ( exiFrag->ContractSignatureCertChain_isUsed == 1u ) {
/* START_ELEMENT({urn:iso:15118:2:2016:MsgBody}ContractSignatureCertChain) */
@@ -68906,19 +59981,19 @@ int encode_v2gExiFragment(bitstream_t* stream, struct v2gEXIFragment* exiFrag) {
/* START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}Cost) */
errn = encodeNBitUnsignedInteger(stream, 9, 41);
if(errn == 0) {
- errn = encode_v2gCostType(stream, &exiFrag->Cost );
+ errn = encode_iso2CostType(stream, &exiFrag->Cost );
}
} else if ( exiFrag->CurrentDemandReq_isUsed == 1u ) {
/* START_ELEMENT({urn:iso:15118:2:2016:MsgBody}CurrentDemandReq) */
errn = encodeNBitUnsignedInteger(stream, 9, 42);
if(errn == 0) {
- errn = encode_v2gCurrentDemandReqType(stream, &exiFrag->CurrentDemandReq );
+ errn = encode_iso2CurrentDemandReqType(stream, &exiFrag->CurrentDemandReq );
}
} else if ( exiFrag->CurrentDemandRes_isUsed == 1u ) {
/* START_ELEMENT({urn:iso:15118:2:2016:MsgBody}CurrentDemandRes) */
errn = encodeNBitUnsignedInteger(stream, 9, 43);
if(errn == 0) {
- errn = encode_v2gCurrentDemandResType(stream, &exiFrag->CurrentDemandRes );
+ errn = encode_iso2CurrentDemandResType(stream, &exiFrag->CurrentDemandRes );
}
} else if ( exiFrag->CurrentRange_isUsed == 1u ) {
/* START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}CurrentRange) */
@@ -68939,37 +60014,37 @@ int encode_v2gExiFragment(bitstream_t* stream, struct v2gEXIFragment* exiFrag) {
/* START_ELEMENT({urn:iso:15118:2:2016:MsgBody}DC_BidirectionalControlReq) */
errn = encodeNBitUnsignedInteger(stream, 9, 46);
if(errn == 0) {
- errn = encode_v2gDC_BidirectionalControlReqType(stream, &exiFrag->DC_BidirectionalControlReq );
+ errn = encode_iso2DC_BidirectionalControlReqType(stream, &exiFrag->DC_BidirectionalControlReq );
}
} else if ( exiFrag->DC_BidirectionalControlRes_isUsed == 1u ) {
/* START_ELEMENT({urn:iso:15118:2:2016:MsgBody}DC_BidirectionalControlRes) */
errn = encodeNBitUnsignedInteger(stream, 9, 47);
if(errn == 0) {
- errn = encode_v2gDC_BidirectionalControlResType(stream, &exiFrag->DC_BidirectionalControlRes );
+ errn = encode_iso2DC_BidirectionalControlResType(stream, &exiFrag->DC_BidirectionalControlRes );
}
} else if ( exiFrag->DC_EVBidirectionalParameter_isUsed == 1u ) {
/* START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}DC_EVBidirectionalParameter) */
errn = encodeNBitUnsignedInteger(stream, 9, 48);
if(errn == 0) {
- errn = encode_v2gDC_EVBidirectionalParameterType(stream, &exiFrag->DC_EVBidirectionalParameter );
+ errn = encode_iso2DC_EVBidirectionalParameterType(stream, &exiFrag->DC_EVBidirectionalParameter );
}
} else if ( exiFrag->DC_EVChargeParameter_isUsed == 1u ) {
/* START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}DC_EVChargeParameter) */
errn = encodeNBitUnsignedInteger(stream, 9, 49);
if(errn == 0) {
- errn = encode_v2gDC_EVChargeParameterType(stream, &exiFrag->DC_EVChargeParameter );
+ errn = encode_iso2DC_EVChargeParameterType(stream, &exiFrag->DC_EVChargeParameter );
}
} else if ( exiFrag->DC_EVSEBidirectionalParameter_isUsed == 1u ) {
/* START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}DC_EVSEBidirectionalParameter) */
errn = encodeNBitUnsignedInteger(stream, 9, 50);
if(errn == 0) {
- errn = encode_v2gDC_EVSEBidirectionalParameterType(stream, &exiFrag->DC_EVSEBidirectionalParameter );
+ errn = encode_iso2DC_EVSEBidirectionalParameterType(stream, &exiFrag->DC_EVSEBidirectionalParameter );
}
} else if ( exiFrag->DC_EVSEChargeParameter_isUsed == 1u ) {
/* START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}DC_EVSEChargeParameter) */
errn = encodeNBitUnsignedInteger(stream, 9, 51);
if(errn == 0) {
- errn = encode_v2gDC_EVSEChargeParameterType(stream, &exiFrag->DC_EVSEChargeParameter );
+ errn = encode_iso2DC_EVSEChargeParameterType(stream, &exiFrag->DC_EVSEChargeParameter );
}
} else if ( exiFrag->DHpublickey_isUsed == 1u ) {
/* START_ELEMENT({urn:iso:15118:2:2016:MsgBody}DHpublickey) */
@@ -68978,7 +60053,7 @@ int encode_v2gExiFragment(bitstream_t* stream, struct v2gEXIFragment* exiFrag) {
/* START_ELEMENT({http://www.w3.org/2000/09/xmldsig#}DSAKeyValue) */
errn = encodeNBitUnsignedInteger(stream, 9, 53);
if(errn == 0) {
- errn = encode_v2gDSAKeyValueType(stream, &exiFrag->DSAKeyValue );
+ errn = encode_iso2DSAKeyValueType(stream, &exiFrag->DSAKeyValue );
}
} else if ( exiFrag->DepartureTime_isUsed == 1u ) {
/* START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}DepartureTime) */
@@ -68996,7 +60071,7 @@ int encode_v2gExiFragment(bitstream_t* stream, struct v2gEXIFragment* exiFrag) {
/* START_ELEMENT({http://www.w3.org/2000/09/xmldsig#}DigestMethod) */
errn = encodeNBitUnsignedInteger(stream, 9, 55);
if(errn == 0) {
- errn = encode_v2gDigestMethodType(stream, &exiFrag->DigestMethod );
+ errn = encode_iso2DigestMethodType(stream, &exiFrag->DigestMethod );
}
} else if ( exiFrag->DigestValue_isUsed == 1u ) {
/* START_ELEMENT({http://www.w3.org/2000/09/xmldsig#}DigestValue) */
@@ -69017,25 +60092,31 @@ int encode_v2gExiFragment(bitstream_t* stream, struct v2gEXIFragment* exiFrag) {
/* START_ELEMENT({urn:iso:15118:2:2016:MsgBody}DisconnectChargingDeviceReq) */
errn = encodeNBitUnsignedInteger(stream, 9, 57);
if(errn == 0) {
- errn = encode_v2gDisconnectChargingDeviceReqType(stream, &exiFrag->DisconnectChargingDeviceReq );
+ errn = encode_iso2DisconnectChargingDeviceReqType(stream, &exiFrag->DisconnectChargingDeviceReq );
}
} else if ( exiFrag->DisconnectChargingDeviceRes_isUsed == 1u ) {
/* START_ELEMENT({urn:iso:15118:2:2016:MsgBody}DisconnectChargingDeviceRes) */
errn = encodeNBitUnsignedInteger(stream, 9, 58);
if(errn == 0) {
- errn = encode_v2gDisconnectChargingDeviceResType(stream, &exiFrag->DisconnectChargingDeviceRes );
+ errn = encode_iso2DisconnectChargingDeviceResType(stream, &exiFrag->DisconnectChargingDeviceRes );
}
} else if ( exiFrag->DisplayParameters_isUsed == 1u ) {
/* START_ELEMENT({urn:iso:15118:2:2016:MsgBody}DisplayParameters) */
errn = encodeNBitUnsignedInteger(stream, 9, 59);
if(errn == 0) {
- errn = encode_v2gDisplayParametersType(stream, &exiFrag->DisplayParameters );
+ errn = encode_iso2DisplayParametersType(stream, &exiFrag->DisplayParameters );
}
} else if ( exiFrag->Distance_isUsed == 1u ) {
/* START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}Distance) */
errn = encodeNBitUnsignedInteger(stream, 9, 60);
if(errn == 0) {
- errn = encode_v2gPhysicalValueType(stream, &exiFrag->Distance );
+ /* First(xsi:type)StartTag[CHARACTERS[UNSIGNED_INTEGER]] */
+ errn = encodeNBitUnsignedInteger(stream, 1, 0);
+ if(errn == 0) {
+ errn = encodeUnsignedInteger16(stream, exiFrag->Distance);
+ /* valid EE */
+ errn = encodeNBitUnsignedInteger(stream, 1, 0);
+ }
}
} else if ( exiFrag->EPriceLevel_isUsed == 1u ) {
/* START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}EPriceLevel) */
@@ -69095,31 +60176,25 @@ int encode_v2gExiFragment(bitstream_t* stream, struct v2gEXIFragment* exiFrag) {
/* START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}EVEnergyTransferParameter) */
errn = encodeNBitUnsignedInteger(stream, 9, 66);
if(errn == 0) {
- errn = encode_v2gEVEnergyTransferParameterType(stream, &exiFrag->EVEnergyTransferParameter );
- }
- } else if ( exiFrag->EVErrorInformation_isUsed == 1u ) {
- /* START_ELEMENT({urn:iso:15118:2:2016:MsgBody}EVErrorInformation) */
- errn = encodeNBitUnsignedInteger(stream, 9, 67);
- if(errn == 0) {
- errn = encode_v2gEVErrorInformationType(stream, &exiFrag->EVErrorInformation );
+ errn = encode_iso2EVEnergyTransferParameterType(stream, &exiFrag->EVEnergyTransferParameter );
}
} else if ( exiFrag->EVFinePositioningParameters_isUsed == 1u ) {
/* START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}EVFinePositioningParameters) */
- errn = encodeNBitUnsignedInteger(stream, 9, 68);
+ errn = encodeNBitUnsignedInteger(stream, 9, 67);
if(errn == 0) {
- errn = encode_v2gEVFinePositioningParametersType(stream, &exiFrag->EVFinePositioningParameters );
+ errn = encode_iso2EVFinePositioningParametersType(stream, &exiFrag->EVFinePositioningParameters );
}
} else if ( exiFrag->EVFinePositioningSetupParameters_isUsed == 1u ) {
/* START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}EVFinePositioningSetupParameters) */
- errn = encodeNBitUnsignedInteger(stream, 9, 69);
+ errn = encodeNBitUnsignedInteger(stream, 9, 68);
if(errn == 0) {
- errn = encode_v2gEVFinePositioningSetupParametersType(stream, &exiFrag->EVFinePositioningSetupParameters );
+ errn = encode_iso2EVFinePositioningSetupParametersType(stream, &exiFrag->EVFinePositioningSetupParameters );
}
} else if ( exiFrag->EVInputPower_isUsed == 1u ) {
/* START_ELEMENT({urn:iso:15118:2:2016:MsgBody}EVInputPower) */
- errn = encodeNBitUnsignedInteger(stream, 9, 70);
+ errn = encodeNBitUnsignedInteger(stream, 9, 69);
if(errn == 0) {
- errn = encode_v2gPhysicalValueType(stream, &exiFrag->EVInputPower );
+ errn = encode_iso2PhysicalValueType(stream, &exiFrag->EVInputPower );
}
} else if ( exiFrag->EVMaximumChargeCurrent_isUsed == 1u ) {
/* START_ELEMENT({urn:iso:15118:2:2016:MsgBody}EVMaximumChargeCurrent) */
@@ -69135,9 +60210,9 @@ int encode_v2gExiFragment(bitstream_t* stream, struct v2gEXIFragment* exiFrag) {
errn = EXI_UNSUPPORTED_FRAGMENT_ELEMENT; /* overlapping name EVMaximumChargePower */
} else if ( exiFrag->EVMaximumCurrent_isUsed == 1u ) {
/* START_ELEMENT({urn:iso:15118:2:2016:MsgBody}EVMaximumCurrent) */
- errn = encodeNBitUnsignedInteger(stream, 9, 75);
+ errn = encodeNBitUnsignedInteger(stream, 9, 74);
if(errn == 0) {
- errn = encode_v2gPhysicalValueType(stream, &exiFrag->EVMaximumCurrent );
+ errn = encode_iso2PhysicalValueType(stream, &exiFrag->EVMaximumCurrent );
}
} else if ( exiFrag->EVMaximumDischargeCurrent_isUsed == 1u ) {
/* START_ELEMENT({urn:iso:15118:2:2016:MsgBody}EVMaximumDischargeCurrent) */
@@ -69180,9 +60255,9 @@ int encode_v2gExiFragment(bitstream_t* stream, struct v2gEXIFragment* exiFrag) {
errn = EXI_UNSUPPORTED_FRAGMENT_ELEMENT; /* overlapping name EVMinimumChargeCurrent */
} else if ( exiFrag->EVMinimumChargePower_isUsed == 1u ) {
/* START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}EVMinimumChargePower) */
- errn = encodeNBitUnsignedInteger(stream, 9, 89);
+ errn = encodeNBitUnsignedInteger(stream, 9, 88);
if(errn == 0) {
- errn = encode_v2gPhysicalValueType(stream, &exiFrag->EVMinimumChargePower );
+ errn = encode_iso2PhysicalValueType(stream, &exiFrag->EVMinimumChargePower );
}
} else if ( exiFrag->EVMinimumDischargeCurrent_isUsed == 1u ) {
/* START_ELEMENT({urn:iso:15118:2:2016:MsgBody}EVMinimumDischargeCurrent) */
@@ -69192,9 +60267,9 @@ int encode_v2gExiFragment(bitstream_t* stream, struct v2gEXIFragment* exiFrag) {
errn = EXI_UNSUPPORTED_FRAGMENT_ELEMENT; /* overlapping name EVMinimumDischargeCurrent */
} else if ( exiFrag->EVMinimumDischargePower_isUsed == 1u ) {
/* START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}EVMinimumDischargePower) */
- errn = encodeNBitUnsignedInteger(stream, 9, 92);
+ errn = encodeNBitUnsignedInteger(stream, 9, 91);
if(errn == 0) {
- errn = encode_v2gPhysicalValueType(stream, &exiFrag->EVMinimumDischargePower );
+ errn = encode_iso2PhysicalValueType(stream, &exiFrag->EVMinimumDischargePower );
}
} else if ( exiFrag->EVMinimumEnergyRequest_isUsed == 1u ) {
/* START_ELEMENT({urn:iso:15118:2:2016:MsgBody}EVMinimumEnergyRequest) */
@@ -69204,9 +60279,9 @@ int encode_v2gExiFragment(bitstream_t* stream, struct v2gEXIFragment* exiFrag) {
errn = EXI_UNSUPPORTED_FRAGMENT_ELEMENT; /* overlapping name EVMinimumEnergyRequest */
} else if ( exiFrag->EVMinimumPower_isUsed == 1u ) {
/* START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}EVMinimumPower) */
- errn = encodeNBitUnsignedInteger(stream, 9, 95);
+ errn = encodeNBitUnsignedInteger(stream, 9, 94);
if(errn == 0) {
- errn = encode_v2gPhysicalValueType(stream, &exiFrag->EVMinimumPower );
+ errn = encode_iso2PhysicalValueType(stream, &exiFrag->EVMinimumPower );
}
} else if ( exiFrag->EVMinimumVoltage_isUsed == 1u ) {
/* START_ELEMENT({urn:iso:15118:2:2016:MsgBody}EVMinimumVoltage) */
@@ -69219,22 +60294,22 @@ int encode_v2gExiFragment(bitstream_t* stream, struct v2gEXIFragment* exiFrag) {
errn = EXI_UNSUPPORTED_FRAGMENT_ELEMENT; /* overlapping name EVOperation */
} else if ( exiFrag->EVPresentActivePower_isUsed == 1u ) {
/* START_ELEMENT({urn:iso:15118:2:2016:MsgBody}EVPresentActivePower) */
- errn = encodeNBitUnsignedInteger(stream, 9, 99);
+ errn = encodeNBitUnsignedInteger(stream, 9, 98);
if(errn == 0) {
- errn = encode_v2gPhysicalValueType(stream, &exiFrag->EVPresentActivePower );
+ errn = encode_iso2PhysicalValueType(stream, &exiFrag->EVPresentActivePower );
}
} else if ( exiFrag->EVPresentReactivePower_isUsed == 1u ) {
/* START_ELEMENT({urn:iso:15118:2:2016:MsgBody}EVPresentReactivePower) */
- errn = encodeNBitUnsignedInteger(stream, 9, 100);
+ errn = encodeNBitUnsignedInteger(stream, 9, 99);
if(errn == 0) {
- errn = encode_v2gPhysicalValueType(stream, &exiFrag->EVPresentReactivePower );
+ errn = encode_iso2PhysicalValueType(stream, &exiFrag->EVPresentReactivePower );
}
} else if ( exiFrag->EVProcessing_isUsed == 1u ) {
/* START_ELEMENT({urn:iso:15118:2:2016:MsgBody}EVProcessing) */
errn = EXI_UNSUPPORTED_FRAGMENT_ELEMENT; /* overlapping name EVProcessing */
} else if ( exiFrag->EVSECheckOutStatus_isUsed == 1u ) {
/* START_ELEMENT({urn:iso:15118:2:2016:MsgBody}EVSECheckOutStatus) */
- errn = encodeNBitUnsignedInteger(stream, 9, 102);
+ errn = encodeNBitUnsignedInteger(stream, 9, 101);
if(errn == 0) {
/* FirstStartTag[CHARACTERS[ENUMERATION]] */
errn = encodeNBitUnsignedInteger(stream, 1, 0);
@@ -69249,42 +60324,36 @@ int encode_v2gExiFragment(bitstream_t* stream, struct v2gEXIFragment* exiFrag) {
errn = EXI_UNSUPPORTED_FRAGMENT_ELEMENT; /* overlapping name EVSECurrentLimitAchieved */
} else if ( exiFrag->EVSECurrentRegulationTolerance_isUsed == 1u ) {
/* START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}EVSECurrentRegulationTolerance) */
- errn = encodeNBitUnsignedInteger(stream, 9, 104);
+ errn = encodeNBitUnsignedInteger(stream, 9, 103);
if(errn == 0) {
- errn = encode_v2gPhysicalValueType(stream, &exiFrag->EVSECurrentRegulationTolerance );
+ errn = encode_iso2PhysicalValueType(stream, &exiFrag->EVSECurrentRegulationTolerance );
}
} else if ( exiFrag->EVSEElectricalChargingDeviceStatus_isUsed == 1u ) {
/* START_ELEMENT({urn:iso:15118:2:2016:MsgBody}EVSEElectricalChargingDeviceStatus) */
errn = EXI_UNSUPPORTED_FRAGMENT_ELEMENT; /* overlapping name EVSEElectricalChargingDeviceStatus */
} else if ( exiFrag->EVSEEnergyToBeDelivered_isUsed == 1u ) {
/* START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}EVSEEnergyToBeDelivered) */
- errn = encodeNBitUnsignedInteger(stream, 9, 106);
+ errn = encodeNBitUnsignedInteger(stream, 9, 105);
if(errn == 0) {
- errn = encode_v2gPhysicalValueType(stream, &exiFrag->EVSEEnergyToBeDelivered );
+ errn = encode_iso2PhysicalValueType(stream, &exiFrag->EVSEEnergyToBeDelivered );
}
} else if ( exiFrag->EVSEEnergyTransferParameter_isUsed == 1u ) {
/* START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}EVSEEnergyTransferParameter) */
- errn = encodeNBitUnsignedInteger(stream, 9, 107);
+ errn = encodeNBitUnsignedInteger(stream, 9, 106);
if(errn == 0) {
- errn = encode_v2gEVSEEnergyTransferParameterType(stream, &exiFrag->EVSEEnergyTransferParameter );
- }
- } else if ( exiFrag->EVSEErrorInformation_isUsed == 1u ) {
- /* START_ELEMENT({urn:iso:15118:2:2016:MsgBody}EVSEErrorInformation) */
- errn = encodeNBitUnsignedInteger(stream, 9, 108);
- if(errn == 0) {
- errn = encode_v2gEVSEErrorInformationType(stream, &exiFrag->EVSEErrorInformation );
+ errn = encode_iso2EVSEEnergyTransferParameterType(stream, &exiFrag->EVSEEnergyTransferParameter );
}
} else if ( exiFrag->EVSEFinePositioningParameters_isUsed == 1u ) {
/* START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}EVSEFinePositioningParameters) */
- errn = encodeNBitUnsignedInteger(stream, 9, 109);
+ errn = encodeNBitUnsignedInteger(stream, 9, 107);
if(errn == 0) {
- errn = encode_v2gEVSEFinePositioningParametersType(stream, &exiFrag->EVSEFinePositioningParameters );
+ errn = encode_iso2EVSEFinePositioningParametersType(stream, &exiFrag->EVSEFinePositioningParameters );
}
} else if ( exiFrag->EVSEFinePositioningSetupParameters_isUsed == 1u ) {
/* START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}EVSEFinePositioningSetupParameters) */
- errn = encodeNBitUnsignedInteger(stream, 9, 110);
+ errn = encodeNBitUnsignedInteger(stream, 9, 108);
if(errn == 0) {
- errn = encode_v2gEVSEFinePositioningSetupParametersType(stream, &exiFrag->EVSEFinePositioningSetupParameters );
+ errn = encode_iso2EVSEFinePositioningSetupParametersType(stream, &exiFrag->EVSEFinePositioningSetupParameters );
}
} else if ( exiFrag->EVSEID_isUsed == 1u ) {
/* START_ELEMENT({urn:iso:15118:2:2016:MsgBody}EVSEID) */
@@ -69303,9 +60372,9 @@ int encode_v2gExiFragment(bitstream_t* stream, struct v2gEXIFragment* exiFrag) {
errn = EXI_UNSUPPORTED_FRAGMENT_ELEMENT; /* overlapping name EVSEMaximumChargePower */
} else if ( exiFrag->EVSEMaximumCurrent_isUsed == 1u ) {
/* START_ELEMENT({urn:iso:15118:2:2016:MsgBody}EVSEMaximumCurrent) */
- errn = encodeNBitUnsignedInteger(stream, 9, 116);
+ errn = encodeNBitUnsignedInteger(stream, 9, 114);
if(errn == 0) {
- errn = encode_v2gPhysicalValueType(stream, &exiFrag->EVSEMaximumCurrent );
+ errn = encode_iso2PhysicalValueType(stream, &exiFrag->EVSEMaximumCurrent );
}
} else if ( exiFrag->EVSEMaximumDischargeCurrent_isUsed == 1u ) {
/* START_ELEMENT({urn:iso:15118:2:2016:MsgBody}EVSEMaximumDischargeCurrent) */
@@ -69336,21 +60405,21 @@ int encode_v2gExiFragment(bitstream_t* stream, struct v2gEXIFragment* exiFrag) {
errn = EXI_UNSUPPORTED_FRAGMENT_ELEMENT; /* overlapping name EVSEMechanicalChargingDeviceStatus */
} else if ( exiFrag->EVSEMinimumChargeCurrent_isUsed == 1u ) {
/* START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}EVSEMinimumChargeCurrent) */
- errn = encodeNBitUnsignedInteger(stream, 9, 126);
+ errn = encodeNBitUnsignedInteger(stream, 9, 124);
if(errn == 0) {
- errn = encode_v2gPhysicalValueType(stream, &exiFrag->EVSEMinimumChargeCurrent );
+ errn = encode_iso2PhysicalValueType(stream, &exiFrag->EVSEMinimumChargeCurrent );
}
} else if ( exiFrag->EVSEMinimumDischargeCurrent_isUsed == 1u ) {
/* START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}EVSEMinimumDischargeCurrent) */
- errn = encodeNBitUnsignedInteger(stream, 9, 127);
+ errn = encodeNBitUnsignedInteger(stream, 9, 125);
if(errn == 0) {
- errn = encode_v2gPhysicalValueType(stream, &exiFrag->EVSEMinimumDischargeCurrent );
+ errn = encode_iso2PhysicalValueType(stream, &exiFrag->EVSEMinimumDischargeCurrent );
}
} else if ( exiFrag->EVSEMinimumPower_isUsed == 1u ) {
/* START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}EVSEMinimumPower) */
- errn = encodeNBitUnsignedInteger(stream, 9, 128);
+ errn = encodeNBitUnsignedInteger(stream, 9, 126);
if(errn == 0) {
- errn = encode_v2gPhysicalValueType(stream, &exiFrag->EVSEMinimumPower );
+ errn = encode_iso2PhysicalValueType(stream, &exiFrag->EVSEMinimumPower );
}
} else if ( exiFrag->EVSEMinimumVoltage_isUsed == 1u ) {
/* START_ELEMENT({urn:iso:15118:2:2016:MsgBody}EVSEMinimumVoltage) */
@@ -69363,13 +60432,13 @@ int encode_v2gExiFragment(bitstream_t* stream, struct v2gEXIFragment* exiFrag) {
errn = EXI_UNSUPPORTED_FRAGMENT_ELEMENT; /* overlapping name EVSENominalFrequency */
} else if ( exiFrag->EVSENominalVoltage_isUsed == 1u ) {
/* START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}EVSENominalVoltage) */
- errn = encodeNBitUnsignedInteger(stream, 9, 132);
+ errn = encodeNBitUnsignedInteger(stream, 9, 130);
if(errn == 0) {
- errn = encode_v2gPhysicalValueType(stream, &exiFrag->EVSENominalVoltage );
+ errn = encode_iso2PhysicalValueType(stream, &exiFrag->EVSENominalVoltage );
}
} else if ( exiFrag->EVSENotification_isUsed == 1u ) {
/* START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}EVSENotification) */
- errn = encodeNBitUnsignedInteger(stream, 9, 133);
+ errn = encodeNBitUnsignedInteger(stream, 9, 131);
if(errn == 0) {
/* FirstStartTag[CHARACTERS[ENUMERATION]] */
errn = encodeNBitUnsignedInteger(stream, 1, 0);
@@ -69381,15 +60450,15 @@ int encode_v2gExiFragment(bitstream_t* stream, struct v2gEXIFragment* exiFrag) {
}
} else if ( exiFrag->EVSEOutputPower_isUsed == 1u ) {
/* START_ELEMENT({urn:iso:15118:2:2016:MsgBody}EVSEOutputPower) */
- errn = encodeNBitUnsignedInteger(stream, 9, 134);
+ errn = encodeNBitUnsignedInteger(stream, 9, 132);
if(errn == 0) {
- errn = encode_v2gPhysicalValueType(stream, &exiFrag->EVSEOutputPower );
+ errn = encode_iso2PhysicalValueType(stream, &exiFrag->EVSEOutputPower );
}
} else if ( exiFrag->EVSEPeakCurrentRipple_isUsed == 1u ) {
/* START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}EVSEPeakCurrentRipple) */
- errn = encodeNBitUnsignedInteger(stream, 9, 135);
+ errn = encodeNBitUnsignedInteger(stream, 9, 133);
if(errn == 0) {
- errn = encode_v2gPhysicalValueType(stream, &exiFrag->EVSEPeakCurrentRipple );
+ errn = encode_iso2PhysicalValueType(stream, &exiFrag->EVSEPeakCurrentRipple );
}
} else if ( exiFrag->EVSEPowerLimitAchieved_isUsed == 1u ) {
/* START_ELEMENT({urn:iso:15118:2:2016:MsgBody}EVSEPowerLimitAchieved) */
@@ -69405,18 +60474,18 @@ int encode_v2gExiFragment(bitstream_t* stream, struct v2gEXIFragment* exiFrag) {
errn = EXI_UNSUPPORTED_FRAGMENT_ELEMENT; /* overlapping name EVSEProcessing */
} else if ( exiFrag->EVSEStatus_isUsed == 1u ) {
/* START_ELEMENT({urn:iso:15118:2:2016:MsgBody}EVSEStatus) */
- errn = encodeNBitUnsignedInteger(stream, 9, 140);
+ errn = encodeNBitUnsignedInteger(stream, 9, 138);
if(errn == 0) {
- errn = encode_v2gEVSEStatusType(stream, &exiFrag->EVSEStatus );
+ errn = encode_iso2EVSEStatusType(stream, &exiFrag->EVSEStatus );
}
} else if ( exiFrag->EVSETargetPower_isUsed == 1u ) {
/* START_ELEMENT({urn:iso:15118:2:2016:MsgBody}EVSETargetPower) */
errn = EXI_UNSUPPORTED_FRAGMENT_ELEMENT; /* overlapping name EVSETargetPower */
} else if ( exiFrag->EVSETargetReactivePower_isUsed == 1u ) {
/* START_ELEMENT({urn:iso:15118:2:2016:MsgBody}EVSETargetReactivePower) */
- errn = encodeNBitUnsignedInteger(stream, 9, 142);
+ errn = encodeNBitUnsignedInteger(stream, 9, 140);
if(errn == 0) {
- errn = encode_v2gPhysicalValueType(stream, &exiFrag->EVSETargetReactivePower );
+ errn = encode_iso2PhysicalValueType(stream, &exiFrag->EVSETargetReactivePower );
}
} else if ( exiFrag->EVSETimeStamp_isUsed == 1u ) {
/* START_ELEMENT({urn:iso:15118:2:2016:MsgBody}EVSETimeStamp) */
@@ -69435,16 +60504,16 @@ int encode_v2gExiFragment(bitstream_t* stream, struct v2gEXIFragment* exiFrag) {
errn = EXI_UNSUPPORTED_FRAGMENT_ELEMENT; /* overlapping name EVTargetEnergyRequest */
} else if ( exiFrag->EVTargetPower_isUsed == 1u ) {
/* START_ELEMENT({urn:iso:15118:2:2016:MsgBody}EVTargetPower) */
- errn = encodeNBitUnsignedInteger(stream, 9, 148);
+ errn = encodeNBitUnsignedInteger(stream, 9, 146);
if(errn == 0) {
- errn = encode_v2gPhysicalValueType(stream, &exiFrag->EVTargetPower );
+ errn = encode_iso2PhysicalValueType(stream, &exiFrag->EVTargetPower );
}
} else if ( exiFrag->EVTargetVoltage_isUsed == 1u ) {
/* START_ELEMENT({urn:iso:15118:2:2016:MsgBody}EVTargetVoltage) */
errn = EXI_UNSUPPORTED_FRAGMENT_ELEMENT; /* overlapping name EVTargetVoltage */
} else if ( exiFrag->EffectiveRadiatedPower_isUsed == 1u ) {
/* START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}EffectiveRadiatedPower) */
- errn = encodeNBitUnsignedInteger(stream, 9, 150);
+ errn = encodeNBitUnsignedInteger(stream, 9, 148);
if(errn == 0) {
/* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
errn = encodeNBitUnsignedInteger(stream, 1, 0);
@@ -69456,18 +60525,9 @@ int encode_v2gExiFragment(bitstream_t* stream, struct v2gEXIFragment* exiFrag) {
}
} else if ( exiFrag->EnergyTransferServiceList_isUsed == 1u ) {
/* START_ELEMENT({urn:iso:15118:2:2016:MsgBody}EnergyTransferServiceList) */
- errn = encodeNBitUnsignedInteger(stream, 9, 151);
+ errn = encodeNBitUnsignedInteger(stream, 9, 149);
if(errn == 0) {
- errn = encode_v2gServiceListType(stream, &exiFrag->EnergyTransferServiceList );
- }
- } else if ( exiFrag->ErrorCode_isUsed == 1u ) {
- /* START_ELEMENT({urn:iso:15118:2:2016:MsgBody}ErrorCode) */
- errn = EXI_UNSUPPORTED_FRAGMENT_ELEMENT; /* overlapping name ErrorCode */
- } else if ( exiFrag->ErrorInformation_isUsed == 1u ) {
- /* START_ELEMENT({urn:iso:15118:2:2016:MsgBody}ErrorInformation) */
- errn = encodeNBitUnsignedInteger(stream, 9, 153);
- if(errn == 0) {
- errn = encode_v2gBodyBaseType(stream, &exiFrag->ErrorInformation );
+ errn = encode_iso2ServiceListType(stream, &exiFrag->EnergyTransferServiceList );
}
} else if ( exiFrag->Exponent_isUsed == 1u ) {
/* START_ELEMENT({http://www.w3.org/2000/09/xmldsig#}Exponent) */
@@ -69477,7 +60537,7 @@ int encode_v2gExiFragment(bitstream_t* stream, struct v2gEXIFragment* exiFrag) {
errn = EXI_UNSUPPORTED_FRAGMENT_ELEMENT; /* overlapping name Exponent */
} else if ( exiFrag->FODStatus_isUsed == 1u ) {
/* START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}FODStatus) */
- errn = encodeNBitUnsignedInteger(stream, 9, 156);
+ errn = encodeNBitUnsignedInteger(stream, 9, 152);
if(errn == 0) {
/* FirstStartTag[CHARACTERS[ENUMERATION]] */
errn = encodeNBitUnsignedInteger(stream, 1, 0);
@@ -69489,31 +60549,31 @@ int encode_v2gExiFragment(bitstream_t* stream, struct v2gEXIFragment* exiFrag) {
}
} else if ( exiFrag->FinePositioningReq_isUsed == 1u ) {
/* START_ELEMENT({urn:iso:15118:2:2016:MsgBody}FinePositioningReq) */
- errn = encodeNBitUnsignedInteger(stream, 9, 157);
+ errn = encodeNBitUnsignedInteger(stream, 9, 153);
if(errn == 0) {
- errn = encode_v2gFinePositioningReqType(stream, &exiFrag->FinePositioningReq );
+ errn = encode_iso2FinePositioningReqType(stream, &exiFrag->FinePositioningReq );
}
} else if ( exiFrag->FinePositioningRes_isUsed == 1u ) {
/* START_ELEMENT({urn:iso:15118:2:2016:MsgBody}FinePositioningRes) */
- errn = encodeNBitUnsignedInteger(stream, 9, 158);
+ errn = encodeNBitUnsignedInteger(stream, 9, 154);
if(errn == 0) {
- errn = encode_v2gFinePositioningResType(stream, &exiFrag->FinePositioningRes );
+ errn = encode_iso2FinePositioningResType(stream, &exiFrag->FinePositioningRes );
}
} else if ( exiFrag->FinePositioningSetupReq_isUsed == 1u ) {
/* START_ELEMENT({urn:iso:15118:2:2016:MsgBody}FinePositioningSetupReq) */
- errn = encodeNBitUnsignedInteger(stream, 9, 159);
+ errn = encodeNBitUnsignedInteger(stream, 9, 155);
if(errn == 0) {
- errn = encode_v2gFinePositioningSetupReqType(stream, &exiFrag->FinePositioningSetupReq );
+ errn = encode_iso2FinePositioningSetupReqType(stream, &exiFrag->FinePositioningSetupReq );
}
} else if ( exiFrag->FinePositioningSetupRes_isUsed == 1u ) {
/* START_ELEMENT({urn:iso:15118:2:2016:MsgBody}FinePositioningSetupRes) */
- errn = encodeNBitUnsignedInteger(stream, 9, 160);
+ errn = encodeNBitUnsignedInteger(stream, 9, 156);
if(errn == 0) {
- errn = encode_v2gFinePositioningSetupResType(stream, &exiFrag->FinePositioningSetupRes );
+ errn = encode_iso2FinePositioningSetupResType(stream, &exiFrag->FinePositioningSetupRes );
}
} else if ( exiFrag->FreeService_isUsed == 1u ) {
/* START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}FreeService) */
- errn = encodeNBitUnsignedInteger(stream, 9, 161);
+ errn = encodeNBitUnsignedInteger(stream, 9, 157);
if(errn == 0) {
/* FirstStartTag[CHARACTERS[BOOLEAN]] */
errn = encodeNBitUnsignedInteger(stream, 1, 0);
@@ -69528,7 +60588,7 @@ int encode_v2gExiFragment(bitstream_t* stream, struct v2gEXIFragment* exiFrag) {
errn = EXI_UNSUPPORTED_FRAGMENT_ELEMENT; /* overlapping name FrequencyChannel */
} else if ( exiFrag->G_isUsed == 1u ) {
/* START_ELEMENT({http://www.w3.org/2000/09/xmldsig#}G) */
- errn = encodeNBitUnsignedInteger(stream, 9, 163);
+ errn = encodeNBitUnsignedInteger(stream, 9, 159);
if(errn == 0) {
/* FirstStartTag[CHARACTERS[BINARY_BASE64]] */
errn = encodeNBitUnsignedInteger(stream, 1, 0);
@@ -69552,19 +60612,19 @@ int encode_v2gExiFragment(bitstream_t* stream, struct v2gEXIFragment* exiFrag) {
errn = EXI_UNSUPPORTED_FRAGMENT_ELEMENT; /* overlapping name GenericParameters */
} else if ( exiFrag->Generic_EVFinePositioningParameters_isUsed == 1u ) {
/* START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}Generic_EVFinePositioningParameters) */
- errn = encodeNBitUnsignedInteger(stream, 9, 167);
+ errn = encodeNBitUnsignedInteger(stream, 9, 163);
if(errn == 0) {
- errn = encode_v2gGeneric_EVFinePositioningParametersType(stream, &exiFrag->Generic_EVFinePositioningParameters );
+ errn = encode_iso2Generic_EVFinePositioningParametersType(stream, &exiFrag->Generic_EVFinePositioningParameters );
}
} else if ( exiFrag->Generic_EVSEFinePositioningParameters_isUsed == 1u ) {
/* START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}Generic_EVSEFinePositioningParameters) */
- errn = encodeNBitUnsignedInteger(stream, 9, 168);
+ errn = encodeNBitUnsignedInteger(stream, 9, 164);
if(errn == 0) {
- errn = encode_v2gGeneric_EVSEFinePositioningParametersType(stream, &exiFrag->Generic_EVSEFinePositioningParameters );
+ errn = encode_iso2Generic_EVSEFinePositioningParametersType(stream, &exiFrag->Generic_EVSEFinePositioningParameters );
}
} else if ( exiFrag->HMACOutputLength_isUsed == 1u ) {
/* START_ELEMENT({http://www.w3.org/2000/09/xmldsig#}HMACOutputLength) */
- errn = encodeNBitUnsignedInteger(stream, 9, 169);
+ errn = encodeNBitUnsignedInteger(stream, 9, 165);
if(errn == 0) {
/* FirstStartTag[CHARACTERS[INTEGER]] */
errn = encodeNBitUnsignedInteger(stream, 1, 0);
@@ -69576,13 +60636,13 @@ int encode_v2gExiFragment(bitstream_t* stream, struct v2gEXIFragment* exiFrag) {
}
} else if ( exiFrag->Header_isUsed == 1u ) {
/* START_ELEMENT({urn:iso:15118:2:2016:MsgDef}Header) */
- errn = encodeNBitUnsignedInteger(stream, 9, 170);
+ errn = encodeNBitUnsignedInteger(stream, 9, 166);
if(errn == 0) {
- errn = encode_v2gMessageHeaderType(stream, &exiFrag->Header );
+ errn = encode_iso2MessageHeaderType(stream, &exiFrag->Header );
}
} else if ( exiFrag->InletHot_isUsed == 1u ) {
/* START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}InletHot) */
- errn = encodeNBitUnsignedInteger(stream, 9, 171);
+ errn = encodeNBitUnsignedInteger(stream, 9, 167);
if(errn == 0) {
/* FirstStartTag[CHARACTERS[BOOLEAN]] */
errn = encodeNBitUnsignedInteger(stream, 1, 0);
@@ -69594,7 +60654,7 @@ int encode_v2gExiFragment(bitstream_t* stream, struct v2gEXIFragment* exiFrag) {
}
} else if ( exiFrag->J_isUsed == 1u ) {
/* START_ELEMENT({http://www.w3.org/2000/09/xmldsig#}J) */
- errn = encodeNBitUnsignedInteger(stream, 9, 172);
+ errn = encodeNBitUnsignedInteger(stream, 9, 168);
if(errn == 0) {
/* FirstStartTag[CHARACTERS[BINARY_BASE64]] */
errn = encodeNBitUnsignedInteger(stream, 1, 0);
@@ -69609,13 +60669,13 @@ int encode_v2gExiFragment(bitstream_t* stream, struct v2gEXIFragment* exiFrag) {
}
} else if ( exiFrag->KeyInfo_isUsed == 1u ) {
/* START_ELEMENT({http://www.w3.org/2000/09/xmldsig#}KeyInfo) */
- errn = encodeNBitUnsignedInteger(stream, 9, 173);
+ errn = encodeNBitUnsignedInteger(stream, 9, 169);
if(errn == 0) {
- errn = encode_v2gKeyInfoType(stream, &exiFrag->KeyInfo );
+ errn = encode_iso2KeyInfoType(stream, &exiFrag->KeyInfo );
}
} else if ( exiFrag->KeyName_isUsed == 1u ) {
/* START_ELEMENT({http://www.w3.org/2000/09/xmldsig#}KeyName) */
- errn = encodeNBitUnsignedInteger(stream, 9, 174);
+ errn = encodeNBitUnsignedInteger(stream, 9, 170);
if(errn == 0) {
/* First(xsi:type)StartTag[CHARACTERS[STRING]] */
errn = encodeNBitUnsignedInteger(stream, 1, 0);
@@ -69631,82 +60691,82 @@ int encode_v2gExiFragment(bitstream_t* stream, struct v2gEXIFragment* exiFrag) {
}
} else if ( exiFrag->KeyValue_isUsed == 1u ) {
/* START_ELEMENT({http://www.w3.org/2000/09/xmldsig#}KeyValue) */
- errn = encodeNBitUnsignedInteger(stream, 9, 175);
+ errn = encodeNBitUnsignedInteger(stream, 9, 171);
if(errn == 0) {
- errn = encode_v2gKeyValueType(stream, &exiFrag->KeyValue );
+ errn = encode_iso2KeyValueType(stream, &exiFrag->KeyValue );
}
} else if ( exiFrag->LFA_EVFinePositioningParameters_isUsed == 1u ) {
/* START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}LFA_EVFinePositioningParameters) */
- errn = encodeNBitUnsignedInteger(stream, 9, 176);
+ errn = encodeNBitUnsignedInteger(stream, 9, 172);
if(errn == 0) {
- errn = encode_v2gLFA_EVFinePositioningParametersType(stream, &exiFrag->LFA_EVFinePositioningParameters );
+ errn = encode_iso2LFA_EVFinePositioningParametersType(stream, &exiFrag->LFA_EVFinePositioningParameters );
}
} else if ( exiFrag->LFA_EVFinePositioningSetupParameters_isUsed == 1u ) {
/* START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}LFA_EVFinePositioningSetupParameters) */
- errn = encodeNBitUnsignedInteger(stream, 9, 177);
+ errn = encodeNBitUnsignedInteger(stream, 9, 173);
if(errn == 0) {
- errn = encode_v2gLFA_EVFinePositioningSetupParametersType(stream, &exiFrag->LFA_EVFinePositioningSetupParameters );
+ errn = encode_iso2LFA_EVFinePositioningSetupParametersType(stream, &exiFrag->LFA_EVFinePositioningSetupParameters );
+ }
+ } else if ( exiFrag->LFA_EVSEFinePositioningParameters_isUsed == 1u ) {
+ /* START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}LFA_EVSEFinePositioningParameters) */
+ errn = encodeNBitUnsignedInteger(stream, 9, 174);
+ if(errn == 0) {
+ errn = encode_iso2LFA_EVSEFinePositioningParametersType(stream, &exiFrag->LFA_EVSEFinePositioningParameters );
}
} else if ( exiFrag->LFA_EVSEFinePositioningSetupParameters_isUsed == 1u ) {
/* START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}LFA_EVSEFinePositioningSetupParameters) */
- errn = encodeNBitUnsignedInteger(stream, 9, 178);
+ errn = encodeNBitUnsignedInteger(stream, 9, 175);
if(errn == 0) {
- errn = encode_v2gLFA_EVSEFinePositioningSetupParametersType(stream, &exiFrag->LFA_EVSEFinePositioningSetupParameters );
- }
- } else if ( exiFrag->LF_EVSEFinePositioningParameters_isUsed == 1u ) {
- /* START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}LF_EVSEFinePositioningParameters) */
- errn = encodeNBitUnsignedInteger(stream, 9, 179);
- if(errn == 0) {
- errn = encode_v2gLF_EVSEFinePositioningParametersType(stream, &exiFrag->LF_EVSEFinePositioningParameters );
+ errn = encode_iso2LFA_EVSEFinePositioningSetupParametersType(stream, &exiFrag->LFA_EVSEFinePositioningSetupParameters );
}
} else if ( exiFrag->ListOfRootCertificateIDs_isUsed == 1u ) {
/* START_ELEMENT({urn:iso:15118:2:2016:MsgBody}ListOfRootCertificateIDs) */
errn = EXI_UNSUPPORTED_FRAGMENT_ELEMENT; /* overlapping name ListOfRootCertificateIDs */
} else if ( exiFrag->MV_EVSEFinePositioningParameters_isUsed == 1u ) {
/* START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MV_EVSEFinePositioningParameters) */
- errn = encodeNBitUnsignedInteger(stream, 9, 181);
+ errn = encodeNBitUnsignedInteger(stream, 9, 177);
if(errn == 0) {
- errn = encode_v2gMV_EVSEFinePositioningParametersType(stream, &exiFrag->MV_EVSEFinePositioningParameters );
+ errn = encode_iso2MV_EVSEFinePositioningParametersType(stream, &exiFrag->MV_EVSEFinePositioningParameters );
}
} else if ( exiFrag->MV_EVSEFinePositioningSetupParameters_isUsed == 1u ) {
/* START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MV_EVSEFinePositioningSetupParameters) */
- errn = encodeNBitUnsignedInteger(stream, 9, 182);
+ errn = encodeNBitUnsignedInteger(stream, 9, 178);
if(errn == 0) {
- errn = encode_v2gMV_EVSEFinePositioningSetupParametersType(stream, &exiFrag->MV_EVSEFinePositioningSetupParameters );
+ errn = encode_iso2MV_EVSEFinePositioningSetupParametersType(stream, &exiFrag->MV_EVSEFinePositioningSetupParameters );
}
} else if ( exiFrag->MagneticVector_isUsed == 1u ) {
/* START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MagneticVector) */
- errn = encodeNBitUnsignedInteger(stream, 9, 183);
+ errn = encodeNBitUnsignedInteger(stream, 9, 179);
if(errn == 0) {
- errn = encode_v2gMagneticVectorType(stream, &exiFrag->MagneticVector );
+ errn = encode_iso2MagneticVectorType(stream, &exiFrag->MagneticVector );
}
} else if ( exiFrag->MagneticVectorList_isUsed == 1u ) {
/* START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MagneticVectorList) */
- errn = encodeNBitUnsignedInteger(stream, 9, 184);
+ errn = encodeNBitUnsignedInteger(stream, 9, 180);
if(errn == 0) {
- errn = encode_v2gMagneticVectorListType(stream, &exiFrag->MagneticVectorList );
+ errn = encode_iso2MagneticVectorListType(stream, &exiFrag->MagneticVectorList );
}
} else if ( exiFrag->MagneticVectorSetup_isUsed == 1u ) {
/* START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MagneticVectorSetup) */
- errn = encodeNBitUnsignedInteger(stream, 9, 185);
+ errn = encodeNBitUnsignedInteger(stream, 9, 181);
if(errn == 0) {
- errn = encode_v2gMagneticVectorSetupType(stream, &exiFrag->MagneticVectorSetup );
+ errn = encode_iso2MagneticVectorSetupType(stream, &exiFrag->MagneticVectorSetup );
}
} else if ( exiFrag->MagneticVectorSetupList_isUsed == 1u ) {
/* START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MagneticVectorSetupList) */
- errn = encodeNBitUnsignedInteger(stream, 9, 186);
+ errn = encodeNBitUnsignedInteger(stream, 9, 182);
if(errn == 0) {
- errn = encode_v2gMagneticVectorSetupListType(stream, &exiFrag->MagneticVectorSetupList );
+ errn = encode_iso2MagneticVectorSetupListType(stream, &exiFrag->MagneticVectorSetupList );
}
} else if ( exiFrag->Manifest_isUsed == 1u ) {
/* START_ELEMENT({http://www.w3.org/2000/09/xmldsig#}Manifest) */
- errn = encodeNBitUnsignedInteger(stream, 9, 187);
+ errn = encodeNBitUnsignedInteger(stream, 9, 183);
if(errn == 0) {
- errn = encode_v2gManifestType(stream, &exiFrag->Manifest );
+ errn = encode_iso2ManifestType(stream, &exiFrag->Manifest );
}
} else if ( exiFrag->MaxSupportingPoints_isUsed == 1u ) {
/* START_ELEMENT({urn:iso:15118:2:2016:MsgBody}MaxSupportingPoints) */
- errn = encodeNBitUnsignedInteger(stream, 9, 188);
+ errn = encodeNBitUnsignedInteger(stream, 9, 184);
if(errn == 0) {
/* FirstStartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
errn = encodeNBitUnsignedInteger(stream, 1, 0);
@@ -69718,7 +60778,7 @@ int encode_v2gExiFragment(bitstream_t* stream, struct v2gEXIFragment* exiFrag) {
}
} else if ( exiFrag->MeasurementData_isUsed == 1u ) {
/* START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MeasurementData) */
- errn = encodeNBitUnsignedInteger(stream, 9, 189);
+ errn = encodeNBitUnsignedInteger(stream, 9, 185);
if(errn == 0) {
/* First(xsi:type)StartTag[CHARACTERS[UNSIGNED_INTEGER]] */
errn = encodeNBitUnsignedInteger(stream, 1, 0);
@@ -69728,9 +60788,15 @@ int encode_v2gExiFragment(bitstream_t* stream, struct v2gEXIFragment* exiFrag) {
errn = encodeNBitUnsignedInteger(stream, 1, 0);
}
}
+ } else if ( exiFrag->MeasurementDataList_isUsed == 1u ) {
+ /* START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MeasurementDataList) */
+ errn = encodeNBitUnsignedInteger(stream, 9, 186);
+ if(errn == 0) {
+ errn = encode_iso2MeasurementDataListType(stream, &exiFrag->MeasurementDataList );
+ }
} else if ( exiFrag->MeterID_isUsed == 1u ) {
/* START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MeterID) */
- errn = encodeNBitUnsignedInteger(stream, 9, 190);
+ errn = encodeNBitUnsignedInteger(stream, 9, 187);
if(errn == 0) {
/* FirstStartTag[CHARACTERS[STRING]] */
errn = encodeNBitUnsignedInteger(stream, 1, 0);
@@ -69749,7 +60815,7 @@ int encode_v2gExiFragment(bitstream_t* stream, struct v2gEXIFragment* exiFrag) {
errn = EXI_UNSUPPORTED_FRAGMENT_ELEMENT; /* overlapping name MeterInfo */
} else if ( exiFrag->MeterReadingCharged_isUsed == 1u ) {
/* START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MeterReadingCharged) */
- errn = encodeNBitUnsignedInteger(stream, 9, 192);
+ errn = encodeNBitUnsignedInteger(stream, 9, 189);
if(errn == 0) {
/* First(xsi:type)StartTag[CHARACTERS[UNSIGNED_INTEGER]] */
errn = encodeNBitUnsignedInteger(stream, 1, 0);
@@ -69761,7 +60827,7 @@ int encode_v2gExiFragment(bitstream_t* stream, struct v2gEXIFragment* exiFrag) {
}
} else if ( exiFrag->MeterReadingDischarged_isUsed == 1u ) {
/* START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MeterReadingDischarged) */
- errn = encodeNBitUnsignedInteger(stream, 9, 193);
+ errn = encodeNBitUnsignedInteger(stream, 9, 190);
if(errn == 0) {
/* First(xsi:type)StartTag[CHARACTERS[UNSIGNED_INTEGER]] */
errn = encodeNBitUnsignedInteger(stream, 1, 0);
@@ -69773,7 +60839,7 @@ int encode_v2gExiFragment(bitstream_t* stream, struct v2gEXIFragment* exiFrag) {
}
} else if ( exiFrag->MeterStatus_isUsed == 1u ) {
/* START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MeterStatus) */
- errn = encodeNBitUnsignedInteger(stream, 9, 194);
+ errn = encodeNBitUnsignedInteger(stream, 9, 191);
if(errn == 0) {
/* FirstStartTag[CHARACTERS[INTEGER]] */
errn = encodeNBitUnsignedInteger(stream, 1, 0);
@@ -69785,19 +60851,19 @@ int encode_v2gExiFragment(bitstream_t* stream, struct v2gEXIFragment* exiFrag) {
}
} else if ( exiFrag->MeteringReceiptReq_isUsed == 1u ) {
/* START_ELEMENT({urn:iso:15118:2:2016:MsgBody}MeteringReceiptReq) */
- errn = encodeNBitUnsignedInteger(stream, 9, 195);
+ errn = encodeNBitUnsignedInteger(stream, 9, 192);
if(errn == 0) {
- errn = encode_v2gMeteringReceiptReqType(stream, &exiFrag->MeteringReceiptReq );
+ errn = encode_iso2MeteringReceiptReqType(stream, &exiFrag->MeteringReceiptReq );
}
} else if ( exiFrag->MeteringReceiptRes_isUsed == 1u ) {
/* START_ELEMENT({urn:iso:15118:2:2016:MsgBody}MeteringReceiptRes) */
- errn = encodeNBitUnsignedInteger(stream, 9, 196);
+ errn = encodeNBitUnsignedInteger(stream, 9, 193);
if(errn == 0) {
- errn = encode_v2gV2GResponseType(stream, &exiFrag->MeteringReceiptRes );
+ errn = encode_iso2MeteringReceiptResType(stream, &exiFrag->MeteringReceiptRes );
}
} else if ( exiFrag->MgmtData_isUsed == 1u ) {
/* START_ELEMENT({http://www.w3.org/2000/09/xmldsig#}MgmtData) */
- errn = encodeNBitUnsignedInteger(stream, 9, 197);
+ errn = encodeNBitUnsignedInteger(stream, 9, 194);
if(errn == 0) {
/* First(xsi:type)StartTag[CHARACTERS[STRING]] */
errn = encodeNBitUnsignedInteger(stream, 1, 0);
@@ -69813,22 +60879,22 @@ int encode_v2gExiFragment(bitstream_t* stream, struct v2gEXIFragment* exiFrag) {
}
} else if ( exiFrag->MinimumPMaxRequest_isUsed == 1u ) {
/* START_ELEMENT({urn:iso:15118:2:2016:MsgBody}MinimumPMaxRequest) */
- errn = encodeNBitUnsignedInteger(stream, 9, 198);
+ errn = encodeNBitUnsignedInteger(stream, 9, 195);
if(errn == 0) {
- errn = encode_v2gMinimumPMaxRequestType(stream, &exiFrag->MinimumPMaxRequest );
+ errn = encode_iso2MinimumPMaxRequestType(stream, &exiFrag->MinimumPMaxRequest );
}
} else if ( exiFrag->MinimumPMaxScheduleEntry_isUsed == 1u ) {
/* START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MinimumPMaxScheduleEntry) */
- errn = encodeNBitUnsignedInteger(stream, 9, 199);
+ errn = encodeNBitUnsignedInteger(stream, 9, 196);
if(errn == 0) {
- errn = encode_v2gPMaxScheduleEntryType(stream, &exiFrag->MinimumPMaxScheduleEntry );
+ errn = encode_iso2PMaxScheduleEntryType(stream, &exiFrag->MinimumPMaxScheduleEntry );
}
} else if ( exiFrag->MinimumSOC_isUsed == 1u ) {
/* START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}MinimumSOC) */
errn = EXI_UNSUPPORTED_FRAGMENT_ELEMENT; /* overlapping name MinimumSOC */
} else if ( exiFrag->Modulus_isUsed == 1u ) {
/* START_ELEMENT({http://www.w3.org/2000/09/xmldsig#}Modulus) */
- errn = encodeNBitUnsignedInteger(stream, 9, 201);
+ errn = encodeNBitUnsignedInteger(stream, 9, 198);
if(errn == 0) {
/* FirstStartTag[CHARACTERS[BINARY_BASE64]] */
errn = encodeNBitUnsignedInteger(stream, 1, 0);
@@ -69843,7 +60909,7 @@ int encode_v2gExiFragment(bitstream_t* stream, struct v2gEXIFragment* exiFrag) {
}
} else if ( exiFrag->NotificationMaxDelay_isUsed == 1u ) {
/* START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}NotificationMaxDelay) */
- errn = encodeNBitUnsignedInteger(stream, 9, 202);
+ errn = encodeNBitUnsignedInteger(stream, 9, 199);
if(errn == 0) {
/* First(xsi:type)StartTag[CHARACTERS[UNSIGNED_INTEGER]] */
errn = encodeNBitUnsignedInteger(stream, 1, 0);
@@ -69855,7 +60921,7 @@ int encode_v2gExiFragment(bitstream_t* stream, struct v2gEXIFragment* exiFrag) {
}
} else if ( exiFrag->NumEPriceLevels_isUsed == 1u ) {
/* START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}NumEPriceLevels) */
- errn = encodeNBitUnsignedInteger(stream, 9, 203);
+ errn = encodeNBitUnsignedInteger(stream, 9, 200);
if(errn == 0) {
/* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
errn = encodeNBitUnsignedInteger(stream, 1, 0);
@@ -69873,7 +60939,7 @@ int encode_v2gExiFragment(bitstream_t* stream, struct v2gEXIFragment* exiFrag) {
errn = EXI_UNSUPPORTED_FRAGMENT_ELEMENT; /* overlapping name NumberOfSignalPackages */
} else if ( exiFrag->OEMProvisioningCert_isUsed == 1u ) {
/* START_ELEMENT({urn:iso:15118:2:2016:MsgBody}OEMProvisioningCert) */
- errn = encodeNBitUnsignedInteger(stream, 9, 206);
+ errn = encodeNBitUnsignedInteger(stream, 9, 203);
if(errn == 0) {
/* FirstStartTag[CHARACTERS[BINARY_BASE64]] */
errn = encodeNBitUnsignedInteger(stream, 1, 0);
@@ -69888,16 +60954,16 @@ int encode_v2gExiFragment(bitstream_t* stream, struct v2gEXIFragment* exiFrag) {
}
} else if ( exiFrag->Object_isUsed == 1u ) {
/* START_ELEMENT({http://www.w3.org/2000/09/xmldsig#}Object) */
- errn = encodeNBitUnsignedInteger(stream, 9, 207);
+ errn = encodeNBitUnsignedInteger(stream, 9, 204);
if(errn == 0) {
- errn = encode_v2gObjectType(stream, &exiFrag->Object );
+ errn = encode_iso2ObjectType(stream, &exiFrag->Object );
}
} else if ( exiFrag->OperationMode_isUsed == 1u ) {
/* START_ELEMENT({urn:iso:15118:2:2016:MsgBody}OperationMode) */
errn = EXI_UNSUPPORTED_FRAGMENT_ELEMENT; /* overlapping name OperationMode */
} else if ( exiFrag->P_isUsed == 1u ) {
/* START_ELEMENT({http://www.w3.org/2000/09/xmldsig#}P) */
- errn = encodeNBitUnsignedInteger(stream, 9, 209);
+ errn = encodeNBitUnsignedInteger(stream, 9, 206);
if(errn == 0) {
/* FirstStartTag[CHARACTERS[BINARY_BASE64]] */
errn = encodeNBitUnsignedInteger(stream, 1, 0);
@@ -69912,13 +60978,13 @@ int encode_v2gExiFragment(bitstream_t* stream, struct v2gEXIFragment* exiFrag) {
}
} else if ( exiFrag->PGPData_isUsed == 1u ) {
/* START_ELEMENT({http://www.w3.org/2000/09/xmldsig#}PGPData) */
- errn = encodeNBitUnsignedInteger(stream, 9, 210);
+ errn = encodeNBitUnsignedInteger(stream, 9, 207);
if(errn == 0) {
- errn = encode_v2gPGPDataType(stream, &exiFrag->PGPData );
+ errn = encode_iso2PGPDataType(stream, &exiFrag->PGPData );
}
} else if ( exiFrag->PGPKeyID_isUsed == 1u ) {
/* START_ELEMENT({http://www.w3.org/2000/09/xmldsig#}PGPKeyID) */
- errn = encodeNBitUnsignedInteger(stream, 9, 211);
+ errn = encodeNBitUnsignedInteger(stream, 9, 208);
if(errn == 0) {
/* First(xsi:type)StartTag[CHARACTERS[BINARY_BASE64]] */
errn = encodeNBitUnsignedInteger(stream, 1, 0);
@@ -69936,31 +61002,31 @@ int encode_v2gExiFragment(bitstream_t* stream, struct v2gEXIFragment* exiFrag) {
errn = EXI_UNSUPPORTED_FRAGMENT_ELEMENT; /* overlapping name PGPKeyPacket */
} else if ( exiFrag->PMax_isUsed == 1u ) {
/* START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}PMax) */
- errn = encodeNBitUnsignedInteger(stream, 9, 213);
+ errn = encodeNBitUnsignedInteger(stream, 9, 210);
if(errn == 0) {
- errn = encode_v2gPhysicalValueType(stream, &exiFrag->PMax );
+ errn = encode_iso2PhysicalValueType(stream, &exiFrag->PMax );
}
} else if ( exiFrag->PMaxDischargeSchedule_isUsed == 1u ) {
/* START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}PMaxDischargeSchedule) */
- errn = encodeNBitUnsignedInteger(stream, 9, 214);
+ errn = encodeNBitUnsignedInteger(stream, 9, 211);
if(errn == 0) {
- errn = encode_v2gPMaxScheduleType(stream, &exiFrag->PMaxDischargeSchedule );
+ errn = encode_iso2PMaxScheduleType(stream, &exiFrag->PMaxDischargeSchedule );
}
} else if ( exiFrag->PMaxSchedule_isUsed == 1u ) {
/* START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}PMaxSchedule) */
- errn = encodeNBitUnsignedInteger(stream, 9, 215);
+ errn = encodeNBitUnsignedInteger(stream, 9, 212);
if(errn == 0) {
- errn = encode_v2gPMaxScheduleType(stream, &exiFrag->PMaxSchedule );
+ errn = encode_iso2PMaxScheduleType(stream, &exiFrag->PMaxSchedule );
}
} else if ( exiFrag->PMaxScheduleEntry_isUsed == 1u ) {
/* START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}PMaxScheduleEntry) */
- errn = encodeNBitUnsignedInteger(stream, 9, 216);
+ errn = encodeNBitUnsignedInteger(stream, 9, 213);
if(errn == 0) {
- errn = encode_v2gPMaxScheduleEntryType(stream, &exiFrag->PMaxScheduleEntry );
+ errn = encode_iso2PMaxScheduleEntryType(stream, &exiFrag->PMaxScheduleEntry );
}
} else if ( exiFrag->PackageIndex_isUsed == 1u ) {
/* START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}PackageIndex) */
- errn = encodeNBitUnsignedInteger(stream, 9, 217);
+ errn = encodeNBitUnsignedInteger(stream, 9, 214);
if(errn == 0) {
/* First(xsi:type)StartTag[CHARACTERS[UNSIGNED_INTEGER]] */
errn = encodeNBitUnsignedInteger(stream, 1, 0);
@@ -69978,34 +61044,34 @@ int encode_v2gExiFragment(bitstream_t* stream, struct v2gEXIFragment* exiFrag) {
errn = EXI_UNSUPPORTED_FRAGMENT_ELEMENT; /* overlapping name PairingParameters */
} else if ( exiFrag->PairingReq_isUsed == 1u ) {
/* START_ELEMENT({urn:iso:15118:2:2016:MsgBody}PairingReq) */
- errn = encodeNBitUnsignedInteger(stream, 9, 220);
+ errn = encodeNBitUnsignedInteger(stream, 9, 217);
if(errn == 0) {
- errn = encode_v2gPairingReqType(stream, &exiFrag->PairingReq );
+ errn = encode_iso2PairingReqType(stream, &exiFrag->PairingReq );
}
} else if ( exiFrag->PairingRes_isUsed == 1u ) {
/* START_ELEMENT({urn:iso:15118:2:2016:MsgBody}PairingRes) */
- errn = encodeNBitUnsignedInteger(stream, 9, 221);
+ errn = encodeNBitUnsignedInteger(stream, 9, 218);
if(errn == 0) {
- errn = encode_v2gPairingResType(stream, &exiFrag->PairingRes );
+ errn = encode_iso2PairingResType(stream, &exiFrag->PairingRes );
}
} else if ( exiFrag->Parameter_isUsed == 1u ) {
/* START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}Parameter) */
- errn = encodeNBitUnsignedInteger(stream, 9, 222);
+ errn = encodeNBitUnsignedInteger(stream, 9, 219);
if(errn == 0) {
- errn = encode_v2gParameterType(stream, &exiFrag->Parameter );
+ errn = encode_iso2ParameterType(stream, &exiFrag->Parameter );
}
} else if ( exiFrag->ParameterSet_isUsed == 1u ) {
/* START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}ParameterSet) */
- errn = encodeNBitUnsignedInteger(stream, 9, 223);
+ errn = encodeNBitUnsignedInteger(stream, 9, 220);
if(errn == 0) {
- errn = encode_v2gParameterSetType(stream, &exiFrag->ParameterSet );
+ errn = encode_iso2ParameterSetType(stream, &exiFrag->ParameterSet );
}
} else if ( exiFrag->ParameterSetID_isUsed == 1u ) {
/* START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}ParameterSetID) */
errn = EXI_UNSUPPORTED_FRAGMENT_ELEMENT; /* overlapping name ParameterSetID */
} else if ( exiFrag->ParkingMethod_isUsed == 1u ) {
/* START_ELEMENT({urn:iso:15118:2:2016:MsgBody}ParkingMethod) */
- errn = encodeNBitUnsignedInteger(stream, 9, 225);
+ errn = encodeNBitUnsignedInteger(stream, 9, 222);
if(errn == 0) {
/* FirstStartTag[CHARACTERS[ENUMERATION]] */
errn = encodeNBitUnsignedInteger(stream, 1, 0);
@@ -70017,19 +61083,19 @@ int encode_v2gExiFragment(bitstream_t* stream, struct v2gEXIFragment* exiFrag) {
}
} else if ( exiFrag->PaymentDetailsReq_isUsed == 1u ) {
/* START_ELEMENT({urn:iso:15118:2:2016:MsgBody}PaymentDetailsReq) */
- errn = encodeNBitUnsignedInteger(stream, 9, 226);
+ errn = encodeNBitUnsignedInteger(stream, 9, 223);
if(errn == 0) {
- errn = encode_v2gPaymentDetailsReqType(stream, &exiFrag->PaymentDetailsReq );
+ errn = encode_iso2PaymentDetailsReqType(stream, &exiFrag->PaymentDetailsReq );
}
} else if ( exiFrag->PaymentDetailsRes_isUsed == 1u ) {
/* START_ELEMENT({urn:iso:15118:2:2016:MsgBody}PaymentDetailsRes) */
- errn = encodeNBitUnsignedInteger(stream, 9, 227);
+ errn = encodeNBitUnsignedInteger(stream, 9, 224);
if(errn == 0) {
- errn = encode_v2gPaymentDetailsResType(stream, &exiFrag->PaymentDetailsRes );
+ errn = encode_iso2PaymentDetailsResType(stream, &exiFrag->PaymentDetailsRes );
}
} else if ( exiFrag->PaymentOption_isUsed == 1u ) {
/* START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}PaymentOption) */
- errn = encodeNBitUnsignedInteger(stream, 9, 228);
+ errn = encodeNBitUnsignedInteger(stream, 9, 225);
if(errn == 0) {
/* FirstStartTag[CHARACTERS[ENUMERATION]] */
errn = encodeNBitUnsignedInteger(stream, 1, 0);
@@ -70041,25 +61107,25 @@ int encode_v2gExiFragment(bitstream_t* stream, struct v2gEXIFragment* exiFrag) {
}
} else if ( exiFrag->PaymentOptionList_isUsed == 1u ) {
/* START_ELEMENT({urn:iso:15118:2:2016:MsgBody}PaymentOptionList) */
- errn = encodeNBitUnsignedInteger(stream, 9, 229);
+ errn = encodeNBitUnsignedInteger(stream, 9, 226);
if(errn == 0) {
- errn = encode_v2gPaymentOptionListType(stream, &exiFrag->PaymentOptionList );
+ errn = encode_iso2PaymentOptionListType(stream, &exiFrag->PaymentOptionList );
}
} else if ( exiFrag->PaymentServiceSelectionReq_isUsed == 1u ) {
/* START_ELEMENT({urn:iso:15118:2:2016:MsgBody}PaymentServiceSelectionReq) */
- errn = encodeNBitUnsignedInteger(stream, 9, 230);
+ errn = encodeNBitUnsignedInteger(stream, 9, 227);
if(errn == 0) {
- errn = encode_v2gPaymentServiceSelectionReqType(stream, &exiFrag->PaymentServiceSelectionReq );
+ errn = encode_iso2PaymentServiceSelectionReqType(stream, &exiFrag->PaymentServiceSelectionReq );
}
} else if ( exiFrag->PaymentServiceSelectionRes_isUsed == 1u ) {
/* START_ELEMENT({urn:iso:15118:2:2016:MsgBody}PaymentServiceSelectionRes) */
- errn = encodeNBitUnsignedInteger(stream, 9, 231);
+ errn = encodeNBitUnsignedInteger(stream, 9, 228);
if(errn == 0) {
- errn = encode_v2gV2GResponseType(stream, &exiFrag->PaymentServiceSelectionRes );
+ errn = encode_iso2PaymentServiceSelectionResType(stream, &exiFrag->PaymentServiceSelectionRes );
}
} else if ( exiFrag->PgenCounter_isUsed == 1u ) {
/* START_ELEMENT({http://www.w3.org/2000/09/xmldsig#}PgenCounter) */
- errn = encodeNBitUnsignedInteger(stream, 9, 232);
+ errn = encodeNBitUnsignedInteger(stream, 9, 229);
if(errn == 0) {
/* FirstStartTag[CHARACTERS[BINARY_BASE64]] */
errn = encodeNBitUnsignedInteger(stream, 1, 0);
@@ -70074,52 +61140,52 @@ int encode_v2gExiFragment(bitstream_t* stream, struct v2gEXIFragment* exiFrag) {
}
} else if ( exiFrag->PowerDeliveryReq_isUsed == 1u ) {
/* START_ELEMENT({urn:iso:15118:2:2016:MsgBody}PowerDeliveryReq) */
- errn = encodeNBitUnsignedInteger(stream, 9, 233);
+ errn = encodeNBitUnsignedInteger(stream, 9, 230);
if(errn == 0) {
- errn = encode_v2gPowerDeliveryReqType(stream, &exiFrag->PowerDeliveryReq );
+ errn = encode_iso2PowerDeliveryReqType(stream, &exiFrag->PowerDeliveryReq );
}
} else if ( exiFrag->PowerDeliveryRes_isUsed == 1u ) {
/* START_ELEMENT({urn:iso:15118:2:2016:MsgBody}PowerDeliveryRes) */
- errn = encodeNBitUnsignedInteger(stream, 9, 234);
+ errn = encodeNBitUnsignedInteger(stream, 9, 231);
if(errn == 0) {
- errn = encode_v2gPowerDeliveryResType(stream, &exiFrag->PowerDeliveryRes );
+ errn = encode_iso2PowerDeliveryResType(stream, &exiFrag->PowerDeliveryRes );
}
} else if ( exiFrag->PowerDemandParameters_isUsed == 1u ) {
/* START_ELEMENT({urn:iso:15118:2:2016:MsgBody}PowerDemandParameters) */
errn = EXI_UNSUPPORTED_FRAGMENT_ELEMENT; /* overlapping name PowerDemandParameters */
} else if ( exiFrag->PowerDemandReq_isUsed == 1u ) {
/* START_ELEMENT({urn:iso:15118:2:2016:MsgBody}PowerDemandReq) */
- errn = encodeNBitUnsignedInteger(stream, 9, 236);
+ errn = encodeNBitUnsignedInteger(stream, 9, 233);
if(errn == 0) {
- errn = encode_v2gPowerDemandReqType(stream, &exiFrag->PowerDemandReq );
+ errn = encode_iso2PowerDemandReqType(stream, &exiFrag->PowerDemandReq );
}
} else if ( exiFrag->PowerDemandRes_isUsed == 1u ) {
/* START_ELEMENT({urn:iso:15118:2:2016:MsgBody}PowerDemandRes) */
- errn = encodeNBitUnsignedInteger(stream, 9, 237);
+ errn = encodeNBitUnsignedInteger(stream, 9, 234);
if(errn == 0) {
- errn = encode_v2gPowerDemandResType(stream, &exiFrag->PowerDemandRes );
+ errn = encode_iso2PowerDemandResType(stream, &exiFrag->PowerDemandRes );
}
} else if ( exiFrag->PreChargeReq_isUsed == 1u ) {
/* START_ELEMENT({urn:iso:15118:2:2016:MsgBody}PreChargeReq) */
- errn = encodeNBitUnsignedInteger(stream, 9, 238);
+ errn = encodeNBitUnsignedInteger(stream, 9, 235);
if(errn == 0) {
- errn = encode_v2gPreChargeReqType(stream, &exiFrag->PreChargeReq );
+ errn = encode_iso2PreChargeReqType(stream, &exiFrag->PreChargeReq );
}
} else if ( exiFrag->PreChargeRes_isUsed == 1u ) {
/* START_ELEMENT({urn:iso:15118:2:2016:MsgBody}PreChargeRes) */
- errn = encodeNBitUnsignedInteger(stream, 9, 239);
+ errn = encodeNBitUnsignedInteger(stream, 9, 236);
if(errn == 0) {
- errn = encode_v2gPreChargeResType(stream, &exiFrag->PreChargeRes );
+ errn = encode_iso2PreChargeResType(stream, &exiFrag->PreChargeRes );
}
} else if ( exiFrag->ProfileEntry_isUsed == 1u ) {
/* START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}ProfileEntry) */
- errn = encodeNBitUnsignedInteger(stream, 9, 240);
+ errn = encodeNBitUnsignedInteger(stream, 9, 237);
if(errn == 0) {
- errn = encode_v2gPMaxScheduleEntryType(stream, &exiFrag->ProfileEntry );
+ errn = encode_iso2PMaxScheduleEntryType(stream, &exiFrag->ProfileEntry );
}
} else if ( exiFrag->Q_isUsed == 1u ) {
/* START_ELEMENT({http://www.w3.org/2000/09/xmldsig#}Q) */
- errn = encodeNBitUnsignedInteger(stream, 9, 241);
+ errn = encodeNBitUnsignedInteger(stream, 9, 238);
if(errn == 0) {
/* FirstStartTag[CHARACTERS[BINARY_BASE64]] */
errn = encodeNBitUnsignedInteger(stream, 1, 0);
@@ -70134,25 +61200,25 @@ int encode_v2gExiFragment(bitstream_t* stream, struct v2gEXIFragment* exiFrag) {
}
} else if ( exiFrag->RSAKeyValue_isUsed == 1u ) {
/* START_ELEMENT({http://www.w3.org/2000/09/xmldsig#}RSAKeyValue) */
- errn = encodeNBitUnsignedInteger(stream, 9, 242);
+ errn = encodeNBitUnsignedInteger(stream, 9, 239);
if(errn == 0) {
- errn = encode_v2gRSAKeyValueType(stream, &exiFrag->RSAKeyValue );
+ errn = encode_iso2RSAKeyValueType(stream, &exiFrag->RSAKeyValue );
}
} else if ( exiFrag->ReceiptRequired_isUsed == 1u ) {
/* START_ELEMENT({urn:iso:15118:2:2016:MsgBody}ReceiptRequired) */
errn = EXI_UNSUPPORTED_FRAGMENT_ELEMENT; /* overlapping name ReceiptRequired */
} else if ( exiFrag->Reference_isUsed == 1u ) {
/* START_ELEMENT({http://www.w3.org/2000/09/xmldsig#}Reference) */
- errn = encodeNBitUnsignedInteger(stream, 9, 244);
+ errn = encodeNBitUnsignedInteger(stream, 9, 241);
if(errn == 0) {
- errn = encode_v2gReferenceType(stream, &exiFrag->Reference );
+ errn = encode_iso2ReferenceType(stream, &exiFrag->Reference );
}
} else if ( exiFrag->RelativeTimeInterval_isUsed == 1u ) {
/* START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}RelativeTimeInterval) */
errn = EXI_UNSUPPORTED_FRAGMENT_ELEMENT; /* overlapping name RelativeTimeInterval */
} else if ( exiFrag->RemainingTimeToBulkSOC_isUsed == 1u ) {
/* START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}RemainingTimeToBulkSOC) */
- errn = encodeNBitUnsignedInteger(stream, 9, 246);
+ errn = encodeNBitUnsignedInteger(stream, 9, 243);
if(errn == 0) {
/* FirstStartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
errn = encodeNBitUnsignedInteger(stream, 1, 0);
@@ -70164,7 +61230,7 @@ int encode_v2gExiFragment(bitstream_t* stream, struct v2gEXIFragment* exiFrag) {
}
} else if ( exiFrag->RemainingTimeToMinimumSOC_isUsed == 1u ) {
/* START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}RemainingTimeToMinimumSOC) */
- errn = encodeNBitUnsignedInteger(stream, 9, 247);
+ errn = encodeNBitUnsignedInteger(stream, 9, 244);
if(errn == 0) {
/* FirstStartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
errn = encodeNBitUnsignedInteger(stream, 1, 0);
@@ -70176,7 +61242,7 @@ int encode_v2gExiFragment(bitstream_t* stream, struct v2gEXIFragment* exiFrag) {
}
} else if ( exiFrag->RemainingTimeToTargetSOC_isUsed == 1u ) {
/* START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}RemainingTimeToTargetSOC) */
- errn = encodeNBitUnsignedInteger(stream, 9, 248);
+ errn = encodeNBitUnsignedInteger(stream, 9, 245);
if(errn == 0) {
/* FirstStartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
errn = encodeNBitUnsignedInteger(stream, 1, 0);
@@ -70188,7 +61254,7 @@ int encode_v2gExiFragment(bitstream_t* stream, struct v2gEXIFragment* exiFrag) {
}
} else if ( exiFrag->ResponseCode_isUsed == 1u ) {
/* START_ELEMENT({urn:iso:15118:2:2016:MsgBody}ResponseCode) */
- errn = encodeNBitUnsignedInteger(stream, 9, 249);
+ errn = encodeNBitUnsignedInteger(stream, 9, 246);
if(errn == 0) {
/* FirstStartTag[CHARACTERS[ENUMERATION]] */
errn = encodeNBitUnsignedInteger(stream, 1, 0);
@@ -70200,13 +61266,13 @@ int encode_v2gExiFragment(bitstream_t* stream, struct v2gEXIFragment* exiFrag) {
}
} else if ( exiFrag->RetrievalMethod_isUsed == 1u ) {
/* START_ELEMENT({http://www.w3.org/2000/09/xmldsig#}RetrievalMethod) */
- errn = encodeNBitUnsignedInteger(stream, 9, 250);
+ errn = encodeNBitUnsignedInteger(stream, 9, 247);
if(errn == 0) {
- errn = encode_v2gRetrievalMethodType(stream, &exiFrag->RetrievalMethod );
+ errn = encode_iso2RetrievalMethodType(stream, &exiFrag->RetrievalMethod );
}
} else if ( exiFrag->RetryCounter_isUsed == 1u ) {
/* START_ELEMENT({urn:iso:15118:2:2016:MsgBody}RetryCounter) */
- errn = encodeNBitUnsignedInteger(stream, 9, 251);
+ errn = encodeNBitUnsignedInteger(stream, 9, 248);
if(errn == 0) {
/* First(xsi:type)StartTag[CHARACTERS[INTEGER]] */
errn = encodeNBitUnsignedInteger(stream, 1, 0);
@@ -70218,15 +61284,15 @@ int encode_v2gExiFragment(bitstream_t* stream, struct v2gEXIFragment* exiFrag) {
}
} else if ( exiFrag->RootCertificateID_isUsed == 1u ) {
/* START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}RootCertificateID) */
- errn = encodeNBitUnsignedInteger(stream, 9, 252);
+ errn = encodeNBitUnsignedInteger(stream, 9, 249);
if(errn == 0) {
- errn = encode_v2gX509IssuerSerialType(stream, &exiFrag->RootCertificateID );
+ errn = encode_iso2X509IssuerSerialType(stream, &exiFrag->RootCertificateID );
}
} else if ( exiFrag->RotationVAtoGA_isUsed == 1u ) {
/* START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}RotationVAtoGA) */
- errn = encodeNBitUnsignedInteger(stream, 9, 253);
+ errn = encodeNBitUnsignedInteger(stream, 9, 250);
if(errn == 0) {
- errn = encode_v2gPhysicalValueType(stream, &exiFrag->RotationVAtoGA );
+ errn = encode_iso2PhysicalValueType(stream, &exiFrag->RotationVAtoGA );
}
} else if ( exiFrag->SAProvisioningCertificateChain_isUsed == 1u ) {
/* START_ELEMENT({urn:iso:15118:2:2016:MsgBody}SAProvisioningCertificateChain) */
@@ -70239,9 +61305,9 @@ int encode_v2gExiFragment(bitstream_t* stream, struct v2gEXIFragment* exiFrag) {
errn = EXI_UNSUPPORTED_FRAGMENT_ELEMENT; /* overlapping name SAScheduleList */
} else if ( exiFrag->SAScheduleTuple_isUsed == 1u ) {
/* START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SAScheduleTuple) */
- errn = encodeNBitUnsignedInteger(stream, 9, 257);
+ errn = encodeNBitUnsignedInteger(stream, 9, 254);
if(errn == 0) {
- errn = encode_v2gSAScheduleTupleType(stream, &exiFrag->SAScheduleTuple );
+ errn = encode_iso2SAScheduleTupleType(stream, &exiFrag->SAScheduleTuple );
}
} else if ( exiFrag->SAScheduleTupleID_isUsed == 1u ) {
/* START_ELEMENT({urn:iso:15118:2:2016:MsgBody}SAScheduleTupleID) */
@@ -70251,13 +61317,13 @@ int encode_v2gExiFragment(bitstream_t* stream, struct v2gEXIFragment* exiFrag) {
errn = EXI_UNSUPPORTED_FRAGMENT_ELEMENT; /* overlapping name SAScheduleTupleID */
} else if ( exiFrag->SPKIData_isUsed == 1u ) {
/* START_ELEMENT({http://www.w3.org/2000/09/xmldsig#}SPKIData) */
- errn = encodeNBitUnsignedInteger(stream, 9, 260);
+ errn = encodeNBitUnsignedInteger(stream, 9, 257);
if(errn == 0) {
- errn = encode_v2gSPKIDataType(stream, &exiFrag->SPKIData );
+ errn = encode_iso2SPKIDataType(stream, &exiFrag->SPKIData );
}
} else if ( exiFrag->SPKISexp_isUsed == 1u ) {
/* START_ELEMENT({http://www.w3.org/2000/09/xmldsig#}SPKISexp) */
- errn = encodeNBitUnsignedInteger(stream, 9, 261);
+ errn = encodeNBitUnsignedInteger(stream, 9, 258);
if(errn == 0) {
/* First(xsi:type)StartTag[CHARACTERS[BINARY_BASE64]] */
errn = encodeNBitUnsignedInteger(stream, 1, 0);
@@ -70272,13 +61338,13 @@ int encode_v2gExiFragment(bitstream_t* stream, struct v2gEXIFragment* exiFrag) {
}
} else if ( exiFrag->SalesTariff_isUsed == 1u ) {
/* START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SalesTariff) */
- errn = encodeNBitUnsignedInteger(stream, 9, 262);
+ errn = encodeNBitUnsignedInteger(stream, 9, 259);
if(errn == 0) {
- errn = encode_v2gSalesTariffType(stream, &exiFrag->SalesTariff );
+ errn = encode_iso2SalesTariffType(stream, &exiFrag->SalesTariff );
}
} else if ( exiFrag->SalesTariffDescription_isUsed == 1u ) {
/* START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SalesTariffDescription) */
- errn = encodeNBitUnsignedInteger(stream, 9, 263);
+ errn = encodeNBitUnsignedInteger(stream, 9, 260);
if(errn == 0) {
/* FirstStartTag[CHARACTERS[STRING]] */
errn = encodeNBitUnsignedInteger(stream, 1, 0);
@@ -70294,13 +61360,13 @@ int encode_v2gExiFragment(bitstream_t* stream, struct v2gEXIFragment* exiFrag) {
}
} else if ( exiFrag->SalesTariffEntry_isUsed == 1u ) {
/* START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SalesTariffEntry) */
- errn = encodeNBitUnsignedInteger(stream, 9, 264);
+ errn = encodeNBitUnsignedInteger(stream, 9, 261);
if(errn == 0) {
- errn = encode_v2gSalesTariffEntryType(stream, &exiFrag->SalesTariffEntry );
+ errn = encode_iso2SalesTariffEntryType(stream, &exiFrag->SalesTariffEntry );
}
} else if ( exiFrag->SalesTariffID_isUsed == 1u ) {
/* START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SalesTariffID) */
- errn = encodeNBitUnsignedInteger(stream, 9, 265);
+ errn = encodeNBitUnsignedInteger(stream, 9, 262);
if(errn == 0) {
/* FirstStartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
errn = encodeNBitUnsignedInteger(stream, 1, 0);
@@ -70312,7 +61378,7 @@ int encode_v2gExiFragment(bitstream_t* stream, struct v2gEXIFragment* exiFrag) {
}
} else if ( exiFrag->Seed_isUsed == 1u ) {
/* START_ELEMENT({http://www.w3.org/2000/09/xmldsig#}Seed) */
- errn = encodeNBitUnsignedInteger(stream, 9, 266);
+ errn = encodeNBitUnsignedInteger(stream, 9, 263);
if(errn == 0) {
/* FirstStartTag[CHARACTERS[BINARY_BASE64]] */
errn = encodeNBitUnsignedInteger(stream, 1, 0);
@@ -70327,13 +61393,13 @@ int encode_v2gExiFragment(bitstream_t* stream, struct v2gEXIFragment* exiFrag) {
}
} else if ( exiFrag->SelectedEnergyTransferService_isUsed == 1u ) {
/* START_ELEMENT({urn:iso:15118:2:2016:MsgBody}SelectedEnergyTransferService) */
- errn = encodeNBitUnsignedInteger(stream, 9, 267);
+ errn = encodeNBitUnsignedInteger(stream, 9, 264);
if(errn == 0) {
- errn = encode_v2gSelectedServiceType(stream, &exiFrag->SelectedEnergyTransferService );
+ errn = encode_iso2SelectedServiceType(stream, &exiFrag->SelectedEnergyTransferService );
}
} else if ( exiFrag->SelectedPaymentOption_isUsed == 1u ) {
/* START_ELEMENT({urn:iso:15118:2:2016:MsgBody}SelectedPaymentOption) */
- errn = encodeNBitUnsignedInteger(stream, 9, 268);
+ errn = encodeNBitUnsignedInteger(stream, 9, 265);
if(errn == 0) {
/* FirstStartTag[CHARACTERS[ENUMERATION]] */
errn = encodeNBitUnsignedInteger(stream, 1, 0);
@@ -70345,21 +61411,21 @@ int encode_v2gExiFragment(bitstream_t* stream, struct v2gEXIFragment* exiFrag) {
}
} else if ( exiFrag->SelectedService_isUsed == 1u ) {
/* START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SelectedService) */
- errn = encodeNBitUnsignedInteger(stream, 9, 269);
+ errn = encodeNBitUnsignedInteger(stream, 9, 266);
if(errn == 0) {
- errn = encode_v2gSelectedServiceType(stream, &exiFrag->SelectedService );
+ errn = encode_iso2SelectedServiceType(stream, &exiFrag->SelectedService );
}
} else if ( exiFrag->SelectedVASList_isUsed == 1u ) {
/* START_ELEMENT({urn:iso:15118:2:2016:MsgBody}SelectedVASList) */
- errn = encodeNBitUnsignedInteger(stream, 9, 270);
+ errn = encodeNBitUnsignedInteger(stream, 9, 267);
if(errn == 0) {
- errn = encode_v2gSelectedServiceListType(stream, &exiFrag->SelectedVASList );
+ errn = encode_iso2SelectedServiceListType(stream, &exiFrag->SelectedVASList );
}
} else if ( exiFrag->Sensor_isUsed == 1u ) {
/* START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}Sensor) */
- errn = encodeNBitUnsignedInteger(stream, 9, 271);
+ errn = encodeNBitUnsignedInteger(stream, 9, 268);
if(errn == 0) {
- errn = encode_v2gSensorType(stream, &exiFrag->Sensor );
+ errn = encode_iso2SensorType(stream, &exiFrag->Sensor );
}
} else if ( exiFrag->SensorID_isUsed == 1u ) {
/* START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorID) */
@@ -70369,63 +61435,60 @@ int encode_v2gExiFragment(bitstream_t* stream, struct v2gEXIFragment* exiFrag) {
errn = EXI_UNSUPPORTED_FRAGMENT_ELEMENT; /* overlapping name SensorList */
} else if ( exiFrag->SensorMeasurements_isUsed == 1u ) {
/* START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorMeasurements) */
- errn = encodeNBitUnsignedInteger(stream, 9, 274);
+ errn = encodeNBitUnsignedInteger(stream, 9, 271);
if(errn == 0) {
- errn = encode_v2gSensorMeasurementsType(stream, &exiFrag->SensorMeasurements );
+ errn = encode_iso2SensorMeasurementsType(stream, &exiFrag->SensorMeasurements );
}
} else if ( exiFrag->SensorOrder_isUsed == 1u ) {
/* START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorOrder) */
errn = EXI_UNSUPPORTED_FRAGMENT_ELEMENT; /* overlapping name SensorOrder */
} else if ( exiFrag->SensorOrientation_isUsed == 1u ) {
/* START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorOrientation) */
- errn = encodeNBitUnsignedInteger(stream, 9, 276);
+ errn = encodeNBitUnsignedInteger(stream, 9, 273);
if(errn == 0) {
- errn = encode_v2gCartesianCoordinatesType(stream, &exiFrag->SensorOrientation );
+ errn = encode_iso2CartesianCoordinatesType(stream, &exiFrag->SensorOrientation );
}
} else if ( exiFrag->SensorPackage_isUsed == 1u ) {
/* START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorPackage) */
- errn = encodeNBitUnsignedInteger(stream, 9, 277);
+ errn = encodeNBitUnsignedInteger(stream, 9, 274);
if(errn == 0) {
- errn = encode_v2gSensorPackageType(stream, &exiFrag->SensorPackage );
+ errn = encode_iso2SensorPackageType(stream, &exiFrag->SensorPackage );
}
} else if ( exiFrag->SensorPackageList_isUsed == 1u ) {
/* START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorPackageList) */
errn = EXI_UNSUPPORTED_FRAGMENT_ELEMENT; /* overlapping name SensorPackageList */
} else if ( exiFrag->SensorPosition_isUsed == 1u ) {
/* START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SensorPosition) */
- errn = encodeNBitUnsignedInteger(stream, 9, 279);
- if(errn == 0) {
- errn = encode_v2gCartesianCoordinatesType(stream, &exiFrag->SensorPosition );
- }
+ errn = EXI_UNSUPPORTED_FRAGMENT_ELEMENT; /* overlapping name SensorPosition */
} else if ( exiFrag->Service_isUsed == 1u ) {
/* START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}Service) */
- errn = encodeNBitUnsignedInteger(stream, 9, 280);
+ errn = encodeNBitUnsignedInteger(stream, 9, 277);
if(errn == 0) {
- errn = encode_v2gServiceType(stream, &exiFrag->Service );
+ errn = encode_iso2ServiceType(stream, &exiFrag->Service );
}
} else if ( exiFrag->ServiceDetailReq_isUsed == 1u ) {
/* START_ELEMENT({urn:iso:15118:2:2016:MsgBody}ServiceDetailReq) */
- errn = encodeNBitUnsignedInteger(stream, 9, 281);
+ errn = encodeNBitUnsignedInteger(stream, 9, 278);
if(errn == 0) {
- errn = encode_v2gServiceDetailReqType(stream, &exiFrag->ServiceDetailReq );
+ errn = encode_iso2ServiceDetailReqType(stream, &exiFrag->ServiceDetailReq );
}
} else if ( exiFrag->ServiceDetailRes_isUsed == 1u ) {
/* START_ELEMENT({urn:iso:15118:2:2016:MsgBody}ServiceDetailRes) */
- errn = encodeNBitUnsignedInteger(stream, 9, 282);
+ errn = encodeNBitUnsignedInteger(stream, 9, 279);
if(errn == 0) {
- errn = encode_v2gServiceDetailResType(stream, &exiFrag->ServiceDetailRes );
+ errn = encode_iso2ServiceDetailResType(stream, &exiFrag->ServiceDetailRes );
}
} else if ( exiFrag->ServiceDiscoveryReq_isUsed == 1u ) {
/* START_ELEMENT({urn:iso:15118:2:2016:MsgBody}ServiceDiscoveryReq) */
- errn = encodeNBitUnsignedInteger(stream, 9, 283);
+ errn = encodeNBitUnsignedInteger(stream, 9, 280);
if(errn == 0) {
- errn = encode_v2gServiceDiscoveryReqType(stream, &exiFrag->ServiceDiscoveryReq );
+ errn = encode_iso2ServiceDiscoveryReqType(stream, &exiFrag->ServiceDiscoveryReq );
}
} else if ( exiFrag->ServiceDiscoveryRes_isUsed == 1u ) {
/* START_ELEMENT({urn:iso:15118:2:2016:MsgBody}ServiceDiscoveryRes) */
- errn = encodeNBitUnsignedInteger(stream, 9, 284);
+ errn = encodeNBitUnsignedInteger(stream, 9, 281);
if(errn == 0) {
- errn = encode_v2gServiceDiscoveryResType(stream, &exiFrag->ServiceDiscoveryRes );
+ errn = encode_iso2ServiceDiscoveryResType(stream, &exiFrag->ServiceDiscoveryRes );
}
} else if ( exiFrag->ServiceID_isUsed == 1u ) {
/* START_ELEMENT({urn:iso:15118:2:2016:MsgBody}ServiceID) */
@@ -70435,9 +61498,9 @@ int encode_v2gExiFragment(bitstream_t* stream, struct v2gEXIFragment* exiFrag) {
errn = EXI_UNSUPPORTED_FRAGMENT_ELEMENT; /* overlapping name ServiceID */
} else if ( exiFrag->ServiceParameterList_isUsed == 1u ) {
/* START_ELEMENT({urn:iso:15118:2:2016:MsgBody}ServiceParameterList) */
- errn = encodeNBitUnsignedInteger(stream, 9, 287);
+ errn = encodeNBitUnsignedInteger(stream, 9, 284);
if(errn == 0) {
- errn = encode_v2gServiceParameterListType(stream, &exiFrag->ServiceParameterList );
+ errn = encode_iso2ServiceParameterListType(stream, &exiFrag->ServiceParameterList );
}
} else if ( exiFrag->SessionID_isUsed == 1u ) {
/* START_ELEMENT({urn:iso:15118:2:2016:MsgBody}SessionID) */
@@ -70447,31 +61510,31 @@ int encode_v2gExiFragment(bitstream_t* stream, struct v2gEXIFragment* exiFrag) {
errn = EXI_UNSUPPORTED_FRAGMENT_ELEMENT; /* overlapping name SessionID */
} else if ( exiFrag->SessionSetupReq_isUsed == 1u ) {
/* START_ELEMENT({urn:iso:15118:2:2016:MsgBody}SessionSetupReq) */
- errn = encodeNBitUnsignedInteger(stream, 9, 290);
+ errn = encodeNBitUnsignedInteger(stream, 9, 287);
if(errn == 0) {
- errn = encode_v2gSessionSetupReqType(stream, &exiFrag->SessionSetupReq );
+ errn = encode_iso2SessionSetupReqType(stream, &exiFrag->SessionSetupReq );
}
} else if ( exiFrag->SessionSetupRes_isUsed == 1u ) {
/* START_ELEMENT({urn:iso:15118:2:2016:MsgBody}SessionSetupRes) */
- errn = encodeNBitUnsignedInteger(stream, 9, 291);
+ errn = encodeNBitUnsignedInteger(stream, 9, 288);
if(errn == 0) {
- errn = encode_v2gSessionSetupResType(stream, &exiFrag->SessionSetupRes );
+ errn = encode_iso2SessionSetupResType(stream, &exiFrag->SessionSetupRes );
}
} else if ( exiFrag->SessionStopReq_isUsed == 1u ) {
/* START_ELEMENT({urn:iso:15118:2:2016:MsgBody}SessionStopReq) */
- errn = encodeNBitUnsignedInteger(stream, 9, 292);
+ errn = encodeNBitUnsignedInteger(stream, 9, 289);
if(errn == 0) {
- errn = encode_v2gSessionStopReqType(stream, &exiFrag->SessionStopReq );
+ errn = encode_iso2SessionStopReqType(stream, &exiFrag->SessionStopReq );
}
} else if ( exiFrag->SessionStopRes_isUsed == 1u ) {
/* START_ELEMENT({urn:iso:15118:2:2016:MsgBody}SessionStopRes) */
- errn = encodeNBitUnsignedInteger(stream, 9, 293);
+ errn = encodeNBitUnsignedInteger(stream, 9, 290);
if(errn == 0) {
- errn = encode_v2gV2GResponseType(stream, &exiFrag->SessionStopRes );
+ errn = encode_iso2SessionStopResType(stream, &exiFrag->SessionStopRes );
}
} else if ( exiFrag->SigMeterReading_isUsed == 1u ) {
/* START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SigMeterReading) */
- errn = encodeNBitUnsignedInteger(stream, 9, 294);
+ errn = encodeNBitUnsignedInteger(stream, 9, 291);
if(errn == 0) {
/* FirstStartTag[CHARACTERS[BINARY_BASE64]] */
errn = encodeNBitUnsignedInteger(stream, 1, 0);
@@ -70486,7 +61549,7 @@ int encode_v2gExiFragment(bitstream_t* stream, struct v2gEXIFragment* exiFrag) {
}
} else if ( exiFrag->SignalFrequency_isUsed == 1u ) {
/* START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SignalFrequency) */
- errn = encodeNBitUnsignedInteger(stream, 9, 295);
+ errn = encodeNBitUnsignedInteger(stream, 9, 292);
if(errn == 0) {
/* First(xsi:type)StartTag[CHARACTERS[UNSIGNED_INTEGER]] */
errn = encodeNBitUnsignedInteger(stream, 1, 0);
@@ -70504,67 +61567,67 @@ int encode_v2gExiFragment(bitstream_t* stream, struct v2gEXIFragment* exiFrag) {
errn = EXI_UNSUPPORTED_FRAGMENT_ELEMENT; /* overlapping name SignalSeparationTime */
} else if ( exiFrag->Signature_isUsed == 1u ) {
/* START_ELEMENT({http://www.w3.org/2000/09/xmldsig#}Signature) */
- errn = encodeNBitUnsignedInteger(stream, 9, 298);
+ errn = encodeNBitUnsignedInteger(stream, 9, 295);
if(errn == 0) {
- errn = encode_v2gSignatureType(stream, &exiFrag->Signature );
+ errn = encode_iso2SignatureType(stream, &exiFrag->Signature );
}
} else if ( exiFrag->SignatureMethod_isUsed == 1u ) {
/* START_ELEMENT({http://www.w3.org/2000/09/xmldsig#}SignatureMethod) */
- errn = encodeNBitUnsignedInteger(stream, 9, 299);
+ errn = encodeNBitUnsignedInteger(stream, 9, 296);
if(errn == 0) {
- errn = encode_v2gSignatureMethodType(stream, &exiFrag->SignatureMethod );
+ errn = encode_iso2SignatureMethodType(stream, &exiFrag->SignatureMethod );
}
} else if ( exiFrag->SignatureProperties_isUsed == 1u ) {
/* START_ELEMENT({http://www.w3.org/2000/09/xmldsig#}SignatureProperties) */
- errn = encodeNBitUnsignedInteger(stream, 9, 300);
+ errn = encodeNBitUnsignedInteger(stream, 9, 297);
if(errn == 0) {
- errn = encode_v2gSignaturePropertiesType(stream, &exiFrag->SignatureProperties );
+ errn = encode_iso2SignaturePropertiesType(stream, &exiFrag->SignatureProperties );
}
} else if ( exiFrag->SignatureProperty_isUsed == 1u ) {
/* START_ELEMENT({http://www.w3.org/2000/09/xmldsig#}SignatureProperty) */
- errn = encodeNBitUnsignedInteger(stream, 9, 301);
+ errn = encodeNBitUnsignedInteger(stream, 9, 298);
if(errn == 0) {
- errn = encode_v2gSignaturePropertyType(stream, &exiFrag->SignatureProperty );
+ errn = encode_iso2SignaturePropertyType(stream, &exiFrag->SignatureProperty );
}
} else if ( exiFrag->SignatureValue_isUsed == 1u ) {
/* START_ELEMENT({http://www.w3.org/2000/09/xmldsig#}SignatureValue) */
- errn = encodeNBitUnsignedInteger(stream, 9, 302);
+ errn = encodeNBitUnsignedInteger(stream, 9, 299);
if(errn == 0) {
- errn = encode_v2gSignatureValueType(stream, &exiFrag->SignatureValue );
+ errn = encode_iso2SignatureValueType(stream, &exiFrag->SignatureValue );
}
} else if ( exiFrag->SignedInfo_isUsed == 1u ) {
/* START_ELEMENT({http://www.w3.org/2000/09/xmldsig#}SignedInfo) */
- errn = encodeNBitUnsignedInteger(stream, 9, 303);
+ errn = encodeNBitUnsignedInteger(stream, 9, 300);
if(errn == 0) {
- errn = encode_v2gSignedInfoType(stream, &exiFrag->SignedInfo );
+ errn = encode_iso2SignedInfoType(stream, &exiFrag->SignedInfo );
}
} else if ( exiFrag->SubCertificates_isUsed == 1u ) {
/* START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}SubCertificates) */
- errn = encodeNBitUnsignedInteger(stream, 9, 304);
+ errn = encodeNBitUnsignedInteger(stream, 9, 301);
if(errn == 0) {
- errn = encode_v2gSubCertificatesType(stream, &exiFrag->SubCertificates );
+ errn = encode_iso2SubCertificatesType(stream, &exiFrag->SubCertificates );
}
} else if ( exiFrag->SupportedServiceIDs_isUsed == 1u ) {
/* START_ELEMENT({urn:iso:15118:2:2016:MsgBody}SupportedServiceIDs) */
- errn = encodeNBitUnsignedInteger(stream, 9, 305);
+ errn = encodeNBitUnsignedInteger(stream, 9, 302);
if(errn == 0) {
- errn = encode_v2gServiceIDListType(stream, &exiFrag->SupportedServiceIDs );
+ errn = encode_iso2ServiceIDListType(stream, &exiFrag->SupportedServiceIDs );
}
} else if ( exiFrag->SystemStatusReq_isUsed == 1u ) {
/* START_ELEMENT({urn:iso:15118:2:2016:MsgBody}SystemStatusReq) */
- errn = encodeNBitUnsignedInteger(stream, 9, 306);
+ errn = encodeNBitUnsignedInteger(stream, 9, 303);
if(errn == 0) {
- errn = encode_v2gSystemStatusReqType(stream, &exiFrag->SystemStatusReq );
+ errn = encode_iso2SystemStatusReqType(stream, &exiFrag->SystemStatusReq );
}
} else if ( exiFrag->SystemStatusRes_isUsed == 1u ) {
/* START_ELEMENT({urn:iso:15118:2:2016:MsgBody}SystemStatusRes) */
- errn = encodeNBitUnsignedInteger(stream, 9, 307);
+ errn = encodeNBitUnsignedInteger(stream, 9, 304);
if(errn == 0) {
- errn = encode_v2gSystemStatusResType(stream, &exiFrag->SystemStatusRes );
+ errn = encode_iso2SystemStatusResType(stream, &exiFrag->SystemStatusRes );
}
} else if ( exiFrag->TMeter_isUsed == 1u ) {
/* START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}TMeter) */
- errn = encodeNBitUnsignedInteger(stream, 9, 308);
+ errn = encodeNBitUnsignedInteger(stream, 9, 305);
if(errn == 0) {
/* First(xsi:type)StartTag[CHARACTERS[INTEGER]] */
errn = encodeNBitUnsignedInteger(stream, 1, 0);
@@ -70576,13 +61639,13 @@ int encode_v2gExiFragment(bitstream_t* stream, struct v2gEXIFragment* exiFrag) {
}
} else if ( exiFrag->TargetOffset_isUsed == 1u ) {
/* START_ELEMENT({urn:iso:15118:2:2016:MsgBody}TargetOffset) */
- errn = encodeNBitUnsignedInteger(stream, 9, 309);
+ errn = encodeNBitUnsignedInteger(stream, 9, 306);
if(errn == 0) {
- errn = encode_v2gTargetPositionType(stream, &exiFrag->TargetOffset );
+ errn = encode_iso2TargetPositionType(stream, &exiFrag->TargetOffset );
}
} else if ( exiFrag->TargetOffsetX_isUsed == 1u ) {
/* START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}TargetOffsetX) */
- errn = encodeNBitUnsignedInteger(stream, 9, 310);
+ errn = encodeNBitUnsignedInteger(stream, 9, 307);
if(errn == 0) {
/* First(xsi:type)StartTag[CHARACTERS[UNSIGNED_INTEGER]] */
errn = encodeNBitUnsignedInteger(stream, 1, 0);
@@ -70594,7 +61657,7 @@ int encode_v2gExiFragment(bitstream_t* stream, struct v2gEXIFragment* exiFrag) {
}
} else if ( exiFrag->TargetOffsetY_isUsed == 1u ) {
/* START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}TargetOffsetY) */
- errn = encodeNBitUnsignedInteger(stream, 9, 311);
+ errn = encodeNBitUnsignedInteger(stream, 9, 308);
if(errn == 0) {
/* First(xsi:type)StartTag[CHARACTERS[UNSIGNED_INTEGER]] */
errn = encodeNBitUnsignedInteger(stream, 1, 0);
@@ -70609,43 +61672,43 @@ int encode_v2gExiFragment(bitstream_t* stream, struct v2gEXIFragment* exiFrag) {
errn = EXI_UNSUPPORTED_FRAGMENT_ELEMENT; /* overlapping name TargetSOC */
} else if ( exiFrag->Transform_isUsed == 1u ) {
/* START_ELEMENT({http://www.w3.org/2000/09/xmldsig#}Transform) */
- errn = encodeNBitUnsignedInteger(stream, 9, 313);
+ errn = encodeNBitUnsignedInteger(stream, 9, 310);
if(errn == 0) {
- errn = encode_v2gTransformType(stream, &exiFrag->Transform );
+ errn = encode_iso2TransformType(stream, &exiFrag->Transform );
}
} else if ( exiFrag->Transforms_isUsed == 1u ) {
/* START_ELEMENT({http://www.w3.org/2000/09/xmldsig#}Transforms) */
- errn = encodeNBitUnsignedInteger(stream, 9, 314);
+ errn = encodeNBitUnsignedInteger(stream, 9, 311);
if(errn == 0) {
- errn = encode_v2gTransformsType(stream, &exiFrag->Transforms );
+ errn = encode_iso2TransformsType(stream, &exiFrag->Transforms );
}
} else if ( exiFrag->V2GRequest_isUsed == 1u ) {
/* START_ELEMENT({urn:iso:15118:2:2016:MsgBody}V2GRequest) */
- errn = encodeNBitUnsignedInteger(stream, 9, 315);
+ errn = encodeNBitUnsignedInteger(stream, 9, 312);
if(errn == 0) {
- errn = encode_v2gBodyBaseType(stream, &exiFrag->V2GRequest );
+ errn = encode_iso2BodyBaseType(stream, &exiFrag->V2GRequest );
}
} else if ( exiFrag->V2GResponse_isUsed == 1u ) {
/* START_ELEMENT({urn:iso:15118:2:2016:MsgBody}V2GResponse) */
- errn = encodeNBitUnsignedInteger(stream, 9, 316);
+ errn = encodeNBitUnsignedInteger(stream, 9, 313);
if(errn == 0) {
- errn = encode_v2gV2GResponseType(stream, &exiFrag->V2GResponse );
+ errn = encode_iso2V2GResponseType(stream, &exiFrag->V2GResponse );
}
} else if ( exiFrag->V2G_Message_isUsed == 1u ) {
/* START_ELEMENT({urn:iso:15118:2:2016:MsgDef}V2G_Message) */
- errn = encodeNBitUnsignedInteger(stream, 9, 317);
+ errn = encodeNBitUnsignedInteger(stream, 9, 314);
if(errn == 0) {
- errn = encode_v2gAnonType_V2G_Message(stream, &exiFrag->V2G_Message );
+ errn = encode_iso2AnonType_V2G_Message(stream, &exiFrag->V2G_Message );
}
} else if ( exiFrag->VASList_isUsed == 1u ) {
/* START_ELEMENT({urn:iso:15118:2:2016:MsgBody}VASList) */
- errn = encodeNBitUnsignedInteger(stream, 9, 318);
+ errn = encodeNBitUnsignedInteger(stream, 9, 315);
if(errn == 0) {
- errn = encode_v2gServiceListType(stream, &exiFrag->VASList );
+ errn = encode_iso2ServiceListType(stream, &exiFrag->VASList );
}
} else if ( exiFrag->Value_isUsed == 1u ) {
/* START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}Value) */
- errn = encodeNBitUnsignedInteger(stream, 9, 319);
+ errn = encodeNBitUnsignedInteger(stream, 9, 316);
if(errn == 0) {
/* First(xsi:type)StartTag[CHARACTERS[INTEGER]] */
errn = encodeNBitUnsignedInteger(stream, 1, 0);
@@ -70657,31 +61720,31 @@ int encode_v2gExiFragment(bitstream_t* stream, struct v2gEXIFragment* exiFrag) {
}
} else if ( exiFrag->VehicleCheckInReq_isUsed == 1u ) {
/* START_ELEMENT({urn:iso:15118:2:2016:MsgBody}VehicleCheckInReq) */
- errn = encodeNBitUnsignedInteger(stream, 9, 320);
+ errn = encodeNBitUnsignedInteger(stream, 9, 317);
if(errn == 0) {
- errn = encode_v2gVehicleCheckInReqType(stream, &exiFrag->VehicleCheckInReq );
+ errn = encode_iso2VehicleCheckInReqType(stream, &exiFrag->VehicleCheckInReq );
}
} else if ( exiFrag->VehicleCheckInRes_isUsed == 1u ) {
/* START_ELEMENT({urn:iso:15118:2:2016:MsgBody}VehicleCheckInRes) */
- errn = encodeNBitUnsignedInteger(stream, 9, 321);
+ errn = encodeNBitUnsignedInteger(stream, 9, 318);
if(errn == 0) {
- errn = encode_v2gVehicleCheckInResType(stream, &exiFrag->VehicleCheckInRes );
+ errn = encode_iso2VehicleCheckInResType(stream, &exiFrag->VehicleCheckInRes );
}
} else if ( exiFrag->VehicleCheckOutReq_isUsed == 1u ) {
/* START_ELEMENT({urn:iso:15118:2:2016:MsgBody}VehicleCheckOutReq) */
- errn = encodeNBitUnsignedInteger(stream, 9, 322);
+ errn = encodeNBitUnsignedInteger(stream, 9, 319);
if(errn == 0) {
- errn = encode_v2gVehicleCheckOutReqType(stream, &exiFrag->VehicleCheckOutReq );
+ errn = encode_iso2VehicleCheckOutReqType(stream, &exiFrag->VehicleCheckOutReq );
}
} else if ( exiFrag->VehicleCheckOutRes_isUsed == 1u ) {
/* START_ELEMENT({urn:iso:15118:2:2016:MsgBody}VehicleCheckOutRes) */
- errn = encodeNBitUnsignedInteger(stream, 9, 323);
+ errn = encodeNBitUnsignedInteger(stream, 9, 320);
if(errn == 0) {
- errn = encode_v2gVehicleCheckOutResType(stream, &exiFrag->VehicleCheckOutRes );
+ errn = encode_iso2VehicleCheckOutResType(stream, &exiFrag->VehicleCheckOutRes );
}
} else if ( exiFrag->VehicleSpace_isUsed == 1u ) {
/* START_ELEMENT({urn:iso:15118:2:2016:MsgBody}VehicleSpace) */
- errn = encodeNBitUnsignedInteger(stream, 9, 324);
+ errn = encodeNBitUnsignedInteger(stream, 9, 321);
if(errn == 0) {
/* First(xsi:type)StartTag[CHARACTERS[UNSIGNED_INTEGER]] */
errn = encodeNBitUnsignedInteger(stream, 1, 0);
@@ -70693,31 +61756,31 @@ int encode_v2gExiFragment(bitstream_t* stream, struct v2gEXIFragment* exiFrag) {
}
} else if ( exiFrag->WPT_EVChargeParameter_isUsed == 1u ) {
/* START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}WPT_EVChargeParameter) */
- errn = encodeNBitUnsignedInteger(stream, 9, 325);
+ errn = encodeNBitUnsignedInteger(stream, 9, 322);
if(errn == 0) {
- errn = encode_v2gWPT_EVChargeParameterType(stream, &exiFrag->WPT_EVChargeParameter );
+ errn = encode_iso2WPT_EVChargeParameterType(stream, &exiFrag->WPT_EVChargeParameter );
}
} else if ( exiFrag->WPT_EVSEChargeParameter_isUsed == 1u ) {
/* START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}WPT_EVSEChargeParameter) */
- errn = encodeNBitUnsignedInteger(stream, 9, 326);
+ errn = encodeNBitUnsignedInteger(stream, 9, 323);
if(errn == 0) {
- errn = encode_v2gWPT_EVSEChargeParameterType(stream, &exiFrag->WPT_EVSEChargeParameter );
+ errn = encode_iso2WPT_EVSEChargeParameterType(stream, &exiFrag->WPT_EVSEChargeParameter );
}
} else if ( exiFrag->WeldingDetectionReq_isUsed == 1u ) {
/* START_ELEMENT({urn:iso:15118:2:2016:MsgBody}WeldingDetectionReq) */
- errn = encodeNBitUnsignedInteger(stream, 9, 327);
+ errn = encodeNBitUnsignedInteger(stream, 9, 324);
if(errn == 0) {
- errn = encode_v2gBodyBaseType(stream, &exiFrag->WeldingDetectionReq );
+ errn = encode_iso2WeldingDetectionReqType(stream, &exiFrag->WeldingDetectionReq );
}
} else if ( exiFrag->WeldingDetectionRes_isUsed == 1u ) {
/* START_ELEMENT({urn:iso:15118:2:2016:MsgBody}WeldingDetectionRes) */
- errn = encodeNBitUnsignedInteger(stream, 9, 328);
+ errn = encodeNBitUnsignedInteger(stream, 9, 325);
if(errn == 0) {
- errn = encode_v2gWeldingDetectionResType(stream, &exiFrag->WeldingDetectionRes );
+ errn = encode_iso2WeldingDetectionResType(stream, &exiFrag->WeldingDetectionRes );
}
} else if ( exiFrag->X509CRL_isUsed == 1u ) {
/* START_ELEMENT({http://www.w3.org/2000/09/xmldsig#}X509CRL) */
- errn = encodeNBitUnsignedInteger(stream, 9, 329);
+ errn = encodeNBitUnsignedInteger(stream, 9, 326);
if(errn == 0) {
/* First(xsi:type)StartTag[CHARACTERS[BINARY_BASE64]] */
errn = encodeNBitUnsignedInteger(stream, 1, 0);
@@ -70732,7 +61795,7 @@ int encode_v2gExiFragment(bitstream_t* stream, struct v2gEXIFragment* exiFrag) {
}
} else if ( exiFrag->X509Certificate_isUsed == 1u ) {
/* START_ELEMENT({http://www.w3.org/2000/09/xmldsig#}X509Certificate) */
- errn = encodeNBitUnsignedInteger(stream, 9, 330);
+ errn = encodeNBitUnsignedInteger(stream, 9, 327);
if(errn == 0) {
/* First(xsi:type)StartTag[CHARACTERS[BINARY_BASE64]] */
errn = encodeNBitUnsignedInteger(stream, 1, 0);
@@ -70747,13 +61810,13 @@ int encode_v2gExiFragment(bitstream_t* stream, struct v2gEXIFragment* exiFrag) {
}
} else if ( exiFrag->X509Data_isUsed == 1u ) {
/* START_ELEMENT({http://www.w3.org/2000/09/xmldsig#}X509Data) */
- errn = encodeNBitUnsignedInteger(stream, 9, 331);
+ errn = encodeNBitUnsignedInteger(stream, 9, 328);
if(errn == 0) {
- errn = encode_v2gX509DataType(stream, &exiFrag->X509Data );
+ errn = encode_iso2X509DataType(stream, &exiFrag->X509Data );
}
} else if ( exiFrag->X509IssuerName_isUsed == 1u ) {
/* START_ELEMENT({http://www.w3.org/2000/09/xmldsig#}X509IssuerName) */
- errn = encodeNBitUnsignedInteger(stream, 9, 332);
+ errn = encodeNBitUnsignedInteger(stream, 9, 329);
if(errn == 0) {
/* First(xsi:type)StartTag[CHARACTERS[STRING]] */
errn = encodeNBitUnsignedInteger(stream, 1, 0);
@@ -70769,13 +61832,13 @@ int encode_v2gExiFragment(bitstream_t* stream, struct v2gEXIFragment* exiFrag) {
}
} else if ( exiFrag->X509IssuerSerial_isUsed == 1u ) {
/* START_ELEMENT({http://www.w3.org/2000/09/xmldsig#}X509IssuerSerial) */
- errn = encodeNBitUnsignedInteger(stream, 9, 333);
+ errn = encodeNBitUnsignedInteger(stream, 9, 330);
if(errn == 0) {
- errn = encode_v2gX509IssuerSerialType(stream, &exiFrag->X509IssuerSerial );
+ errn = encode_iso2X509IssuerSerialType(stream, &exiFrag->X509IssuerSerial );
}
} else if ( exiFrag->X509SKI_isUsed == 1u ) {
/* START_ELEMENT({http://www.w3.org/2000/09/xmldsig#}X509SKI) */
- errn = encodeNBitUnsignedInteger(stream, 9, 334);
+ errn = encodeNBitUnsignedInteger(stream, 9, 331);
if(errn == 0) {
/* First(xsi:type)StartTag[CHARACTERS[BINARY_BASE64]] */
errn = encodeNBitUnsignedInteger(stream, 1, 0);
@@ -70790,7 +61853,7 @@ int encode_v2gExiFragment(bitstream_t* stream, struct v2gEXIFragment* exiFrag) {
}
} else if ( exiFrag->X509SerialNumber_isUsed == 1u ) {
/* START_ELEMENT({http://www.w3.org/2000/09/xmldsig#}X509SerialNumber) */
- errn = encodeNBitUnsignedInteger(stream, 9, 335);
+ errn = encodeNBitUnsignedInteger(stream, 9, 332);
if(errn == 0) {
/* First(xsi:type)StartTag[CHARACTERS[INTEGER]] */
errn = encodeNBitUnsignedInteger(stream, 1, 0);
@@ -70802,7 +61865,7 @@ int encode_v2gExiFragment(bitstream_t* stream, struct v2gEXIFragment* exiFrag) {
}
} else if ( exiFrag->X509SubjectName_isUsed == 1u ) {
/* START_ELEMENT({http://www.w3.org/2000/09/xmldsig#}X509SubjectName) */
- errn = encodeNBitUnsignedInteger(stream, 9, 336);
+ errn = encodeNBitUnsignedInteger(stream, 9, 333);
if(errn == 0) {
/* First(xsi:type)StartTag[CHARACTERS[STRING]] */
errn = encodeNBitUnsignedInteger(stream, 1, 0);
@@ -70818,7 +61881,7 @@ int encode_v2gExiFragment(bitstream_t* stream, struct v2gEXIFragment* exiFrag) {
}
} else if ( exiFrag->XCoordinate_isUsed == 1u ) {
/* START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}XCoordinate) */
- errn = encodeNBitUnsignedInteger(stream, 9, 337);
+ errn = encodeNBitUnsignedInteger(stream, 9, 334);
if(errn == 0) {
/* First(xsi:type)StartTag[CHARACTERS[INTEGER]] */
errn = encodeNBitUnsignedInteger(stream, 1, 0);
@@ -70830,7 +61893,7 @@ int encode_v2gExiFragment(bitstream_t* stream, struct v2gEXIFragment* exiFrag) {
}
} else if ( exiFrag->XPath_isUsed == 1u ) {
/* START_ELEMENT({http://www.w3.org/2000/09/xmldsig#}XPath) */
- errn = encodeNBitUnsignedInteger(stream, 9, 338);
+ errn = encodeNBitUnsignedInteger(stream, 9, 335);
if(errn == 0) {
/* First(xsi:type)StartTag[CHARACTERS[STRING]] */
errn = encodeNBitUnsignedInteger(stream, 1, 0);
@@ -70846,7 +61909,7 @@ int encode_v2gExiFragment(bitstream_t* stream, struct v2gEXIFragment* exiFrag) {
}
} else if ( exiFrag->Y_isUsed == 1u ) {
/* START_ELEMENT({http://www.w3.org/2000/09/xmldsig#}Y) */
- errn = encodeNBitUnsignedInteger(stream, 9, 339);
+ errn = encodeNBitUnsignedInteger(stream, 9, 336);
if(errn == 0) {
/* FirstStartTag[CHARACTERS[BINARY_BASE64]] */
errn = encodeNBitUnsignedInteger(stream, 1, 0);
@@ -70861,7 +61924,7 @@ int encode_v2gExiFragment(bitstream_t* stream, struct v2gEXIFragment* exiFrag) {
}
} else if ( exiFrag->YCoordinate_isUsed == 1u ) {
/* START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}YCoordinate) */
- errn = encodeNBitUnsignedInteger(stream, 9, 340);
+ errn = encodeNBitUnsignedInteger(stream, 9, 337);
if(errn == 0) {
/* First(xsi:type)StartTag[CHARACTERS[INTEGER]] */
errn = encodeNBitUnsignedInteger(stream, 1, 0);
@@ -70873,7 +61936,7 @@ int encode_v2gExiFragment(bitstream_t* stream, struct v2gEXIFragment* exiFrag) {
}
} else if ( exiFrag->ZCoordinate_isUsed == 1u ) {
/* START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}ZCoordinate) */
- errn = encodeNBitUnsignedInteger(stream, 9, 341);
+ errn = encodeNBitUnsignedInteger(stream, 9, 338);
if(errn == 0) {
/* First(xsi:type)StartTag[CHARACTERS[INTEGER]] */
errn = encodeNBitUnsignedInteger(stream, 1, 0);
@@ -70885,13 +61948,13 @@ int encode_v2gExiFragment(bitstream_t* stream, struct v2gEXIFragment* exiFrag) {
}
} else if ( exiFrag->amount_isUsed == 1u ) {
/* START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}amount) */
- errn = encodeNBitUnsignedInteger(stream, 9, 342);
+ errn = encodeNBitUnsignedInteger(stream, 9, 339);
if(errn == 0) {
- errn = encode_v2gPhysicalValueType(stream, &exiFrag->amount );
+ errn = encode_iso2PhysicalValueType(stream, &exiFrag->amount );
}
} else if ( exiFrag->boolValue_isUsed == 1u ) {
/* START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}boolValue) */
- errn = encodeNBitUnsignedInteger(stream, 9, 343);
+ errn = encodeNBitUnsignedInteger(stream, 9, 340);
if(errn == 0) {
/* FirstStartTag[CHARACTERS[BOOLEAN]] */
errn = encodeNBitUnsignedInteger(stream, 1, 0);
@@ -70903,7 +61966,7 @@ int encode_v2gExiFragment(bitstream_t* stream, struct v2gEXIFragment* exiFrag) {
}
} else if ( exiFrag->byteValue_isUsed == 1u ) {
/* START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}byteValue) */
- errn = encodeNBitUnsignedInteger(stream, 9, 344);
+ errn = encodeNBitUnsignedInteger(stream, 9, 341);
if(errn == 0) {
/* First(xsi:type)StartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
errn = encodeNBitUnsignedInteger(stream, 1, 0);
@@ -70915,7 +61978,7 @@ int encode_v2gExiFragment(bitstream_t* stream, struct v2gEXIFragment* exiFrag) {
}
} else if ( exiFrag->costKind_isUsed == 1u ) {
/* START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}costKind) */
- errn = encodeNBitUnsignedInteger(stream, 9, 345);
+ errn = encodeNBitUnsignedInteger(stream, 9, 342);
if(errn == 0) {
/* FirstStartTag[CHARACTERS[ENUMERATION]] */
errn = encodeNBitUnsignedInteger(stream, 1, 0);
@@ -70927,7 +61990,7 @@ int encode_v2gExiFragment(bitstream_t* stream, struct v2gEXIFragment* exiFrag) {
}
} else if ( exiFrag->duration_isUsed == 1u ) {
/* START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}duration) */
- errn = encodeNBitUnsignedInteger(stream, 9, 346);
+ errn = encodeNBitUnsignedInteger(stream, 9, 343);
if(errn == 0) {
/* FirstStartTag[CHARACTERS[UNSIGNED_INTEGER]] */
errn = encodeNBitUnsignedInteger(stream, 1, 0);
@@ -70942,7 +62005,7 @@ int encode_v2gExiFragment(bitstream_t* stream, struct v2gEXIFragment* exiFrag) {
errn = EXI_UNSUPPORTED_FRAGMENT_ELEMENT; /* overlapping name eMAID */
} else if ( exiFrag->intValue_isUsed == 1u ) {
/* START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}intValue) */
- errn = encodeNBitUnsignedInteger(stream, 9, 348);
+ errn = encodeNBitUnsignedInteger(stream, 9, 345);
if(errn == 0) {
/* First(xsi:type)StartTag[CHARACTERS[INTEGER]] */
errn = encodeNBitUnsignedInteger(stream, 1, 0);
@@ -70954,13 +62017,13 @@ int encode_v2gExiFragment(bitstream_t* stream, struct v2gEXIFragment* exiFrag) {
}
} else if ( exiFrag->physicalValue_isUsed == 1u ) {
/* START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}physicalValue) */
- errn = encodeNBitUnsignedInteger(stream, 9, 349);
+ errn = encodeNBitUnsignedInteger(stream, 9, 346);
if(errn == 0) {
- errn = encode_v2gPhysicalValueType(stream, &exiFrag->physicalValue );
+ errn = encode_iso2PhysicalValueType(stream, &exiFrag->physicalValue );
}
} else if ( exiFrag->shortValue_isUsed == 1u ) {
/* START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}shortValue) */
- errn = encodeNBitUnsignedInteger(stream, 9, 350);
+ errn = encodeNBitUnsignedInteger(stream, 9, 347);
if(errn == 0) {
/* First(xsi:type)StartTag[CHARACTERS[INTEGER]] */
errn = encodeNBitUnsignedInteger(stream, 1, 0);
@@ -70972,7 +62035,7 @@ int encode_v2gExiFragment(bitstream_t* stream, struct v2gEXIFragment* exiFrag) {
}
} else if ( exiFrag->start_isUsed == 1u ) {
/* START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}start) */
- errn = encodeNBitUnsignedInteger(stream, 9, 351);
+ errn = encodeNBitUnsignedInteger(stream, 9, 348);
if(errn == 0) {
/* FirstStartTag[CHARACTERS[UNSIGNED_INTEGER]] */
errn = encodeNBitUnsignedInteger(stream, 1, 0);
@@ -70984,13 +62047,13 @@ int encode_v2gExiFragment(bitstream_t* stream, struct v2gEXIFragment* exiFrag) {
}
} else if ( exiFrag->startValue_isUsed == 1u ) {
/* START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}startValue) */
- errn = encodeNBitUnsignedInteger(stream, 9, 352);
+ errn = encodeNBitUnsignedInteger(stream, 9, 349);
if(errn == 0) {
- errn = encode_v2gPhysicalValueType(stream, &exiFrag->startValue );
+ errn = encode_iso2PhysicalValueType(stream, &exiFrag->startValue );
}
} else if ( exiFrag->stringValue_isUsed == 1u ) {
/* START_ELEMENT({urn:iso:15118:2:2016:MsgDataTypes}stringValue) */
- errn = encodeNBitUnsignedInteger(stream, 9, 353);
+ errn = encodeNBitUnsignedInteger(stream, 9, 350);
if(errn == 0) {
/* First(xsi:type)StartTag[CHARACTERS[STRING]] */
errn = encodeNBitUnsignedInteger(stream, 1, 0);
@@ -71010,26 +62073,21 @@ int encode_v2gExiFragment(bitstream_t* stream, struct v2gEXIFragment* exiFrag) {
}
if(errn == 0) {
/* EndDocument */
- errn = encodeNBitUnsignedInteger(stream, 9, 355);
+ errn = encodeNBitUnsignedInteger(stream, 9, 352);
}
if(errn == 0) {
/* flush any pending bits */
errn = encodeFinish(stream);
- }
-
- /* touch to avoid unused warnings*/
- (void)encode_v2gChargeLoopReqType;
- (void)encode_v2gV2GRequestType;
- (void)encode_v2gEntryType;
+ }
return errn;
}
-#endif /* DEPLOY_ISO_CODEC_FRAGMENT */
+#endif /* DEPLOY_ISO2_CODEC_FRAGMENT */
-#endif /* DEPLOY_ISO_CODEC */
+#endif /* DEPLOY_ISO2_CODEC */
#endif
diff --git a/src/iso2/iso2EXIDatatypesEncoder.h b/src/iso2/iso2EXIDatatypesEncoder.h
new file mode 100644
index 0000000..a3b0c4d
--- /dev/null
+++ b/src/iso2/iso2EXIDatatypesEncoder.h
@@ -0,0 +1,66 @@
+/*
+ * Copyright (C) 2007-2017 Siemens AG
+ *
+ * This program is free software: you can redistribute it and/or modify
+ * it under the terms of the GNU Lesser General Public License as published
+ * by the Free Software Foundation, either version 3 of the License, or
+ * (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ * GNU Lesser General Public License for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public License
+ * along with this program. If not, see .
+ */
+
+/*******************************************************************
+ *
+ * @author Daniel.Peintner.EXT@siemens.com
+ * @version 2017-03-23
+ * @contact Joerg.Heuer@siemens.com
+ *
+ * Code generated by EXIdizer
+ * Schema: V2G_CI_MsgDef.xsd
+ *
+ *
+ ********************************************************************/
+
+
+
+/**
+ * \file EXIDatatypesEncoder.h
+ * \brief Encoder for datatype definitions
+ *
+ */
+
+#ifndef EXI_iso2_DATATYPES_ENCODER_H
+#define EXI_iso2_DATATYPES_ENCODER_H
+
+#ifdef __cplusplus
+extern "C" {
+#endif
+
+#if DEPLOY_ISO2_CODEC == SUPPORT_YES
+
+#include
+
+#include "EXITypes.h"
+#include "iso2EXIDatatypes.h"
+
+
+int encode_iso2ExiDocument(bitstream_t* stream, struct iso2EXIDocument* exiDoc);
+
+#if DEPLOY_ISO2_CODEC_FRAGMENT == SUPPORT_YES
+int encode_iso2ExiFragment(bitstream_t* stream, struct iso2EXIFragment* exiFrag);
+#endif /* DEPLOY_ISO2_CODEC_FRAGMENT */
+
+
+#endif /* DEPLOY_ISO2_CODEC */
+
+#ifdef __cplusplus
+}
+#endif
+
+#endif
diff --git a/src/test/main_databinder.c b/src/test/main_databinder.c
index d5155c2..835ca19 100644
--- a/src/test/main_databinder.c
+++ b/src/test/main_databinder.c
@@ -42,9 +42,9 @@
#include
/* schema-dependent */
-#include "v2gEXIDatatypes.h"
-#include "v2gEXIDatatypesEncoder.h"
-#include "v2gEXIDatatypesDecoder.h"
+#include "iso2EXIDatatypes.h"
+#include "iso2EXIDatatypesEncoder.h"
+#include "iso2EXIDatatypesDecoder.h"
#include "ByteStream.h"
@@ -66,7 +66,7 @@ uint8_t bufferOut[BUFFER_SIZE];
int main_databinder(int argc, char *argv[]) {
- struct v2gEXIDocument exiDoc;
+ struct iso2EXIDocument exiDoc;
int errn = 0;
bitstream_t iStream, oStream;
@@ -112,7 +112,7 @@ int main_databinder(int argc, char *argv[]) {
printf("Start decoding EXI stream to databinding layer \n");
- errn = decode_v2gExiDocument(&iStream, &exiDoc);
+ errn = decode_iso2ExiDocument(&iStream, &exiDoc);
if (errn != 0) {
printf("Problems while decoding EXI stream, err==%d\n", errn);
return errn;
@@ -130,7 +130,7 @@ int main_databinder(int argc, char *argv[]) {
oStream.capacity = 8;
printf("Start encoding databinding layer to EXI \n");
- errn = encode_v2gExiDocument(&oStream, &exiDoc);
+ errn = encode_iso2ExiDocument(&oStream, &exiDoc);
if (errn != 0) {
printf("Problems while encoding databinding layer, err==%d\n", errn);
return errn;
diff --git a/src/test/main_example.c b/src/test/main_example.c
index a7af99c..52c934c 100644
--- a/src/test/main_example.c
+++ b/src/test/main_example.c
@@ -53,11 +53,12 @@
#include "xmldsigEXIDatatypesDecoder.h"
#endif /* DEPLOY_XMLDSIG_CODEC == SUPPORT_YES */
-
-
-#include "v2gEXIDatatypes.h"
-#include "v2gEXIDatatypesEncoder.h"
-#include "v2gEXIDatatypesDecoder.h"
+/* Activate support for ISO2 */
+#include "iso2EXIDatatypes.h"
+#if DEPLOY_ISO2_CODEC == SUPPORT_YES
+#include "iso2EXIDatatypesEncoder.h"
+#include "iso2EXIDatatypesDecoder.h"
+#endif /* DEPLOY_ISO2_CODEC == SUPPORT_YES */
#include "v2gtp.h"
@@ -102,7 +103,7 @@ static void printASCIIString(exi_string_character_t* string, uint16_t len) {
printf("\n");
}
-static void printEVSEStatus(struct v2gEVSEStatusType* status)
+static void printEVSEStatus(struct iso2EVSEStatusType* status)
{
printf("\tEVSEStatus:\n");
printf("\t\tEVSENotification=%d\n", status->EVSENotification);
@@ -126,10 +127,10 @@ static void copyBytes(uint8_t* from, uint16_t len, uint8_t* to) {
/* serializes EXI stream and adds V2G TP header */
-static int serializeEXI2Stream(struct v2gEXIDocument* exiIn, bitstream_t* stream) {
+static int serializeEXI2Stream(struct iso2EXIDocument* exiIn, bitstream_t* stream) {
int errn;
*stream->pos = V2GTP_HEADER_LENGTH; /* v2gtp header */
- if( (errn = encode_v2gExiDocument(stream, exiIn)) == 0) {
+ if( (errn = encode_iso2ExiDocument(stream, exiIn)) == 0) {
errn = write_v2gtpHeader(stream->data, (*stream->pos)-V2GTP_HEADER_LENGTH, V2GTP_EXI_TYPE);
}
return errn;
@@ -137,7 +138,7 @@ static int serializeEXI2Stream(struct v2gEXIDocument* exiIn, bitstream_t* stream
/* deserializes V2G TP header and decodes right away EXI stream */
-static int deserializeStream2EXI(bitstream_t* streamIn, struct v2gEXIDocument* exi) {
+static int deserializeStream2EXI(bitstream_t* streamIn, struct iso2EXIDocument* exi) {
int errn;
uint16_t payloadLength;
@@ -145,7 +146,7 @@ static int deserializeStream2EXI(bitstream_t* streamIn, struct v2gEXIDocument* e
if ( (errn = read_v2gtpHeader(streamIn->data, &payloadLength)) == 0) {
*streamIn->pos += V2GTP_HEADER_LENGTH;
- errn = decode_v2gExiDocument(streamIn, exi);
+ errn = decode_iso2ExiDocument(streamIn, exi);
}
return errn;
}
@@ -286,7 +287,7 @@ static int appHandshake()
}
-static int sessionSetup(struct v2gEXIDocument* exiIn, struct v2gEXIDocument* exiOut) {
+static int sessionSetup(struct iso2EXIDocument* exiIn, struct iso2EXIDocument* exiOut) {
printf("EVSE side: sessionSetup called\n" );
printf("\tReceived data:\n");
printf("\tHeader SessionID=");
@@ -296,7 +297,7 @@ static int sessionSetup(struct v2gEXIDocument* exiIn, struct v2gEXIDocument* exi
exiOut->V2G_Message_isUsed = 1u;
/* generate an unique sessionID */
- init_v2gMessageHeaderType(&exiOut->V2G_Message.Header);
+ init_iso2MessageHeaderType(&exiOut->V2G_Message.Header);
exiOut->V2G_Message.Header.SessionID.bytes[0] = 1;
exiOut->V2G_Message.Header.SessionID.bytes[1] = 2;
exiOut->V2G_Message.Header.SessionID.bytes[2] = 3;
@@ -308,12 +309,12 @@ static int sessionSetup(struct v2gEXIDocument* exiIn, struct v2gEXIDocument* exi
exiOut->V2G_Message.Header.SessionID.bytesLen = 8;
/* Prepare data for EV */
- init_v2gBodyType(&exiOut->V2G_Message.Body);
+ init_iso2BodyType(&exiOut->V2G_Message.Body);
exiOut->V2G_Message.Body.SessionSetupRes_isUsed = 1u;
- init_v2gSessionSetupResType(&exiOut->V2G_Message.Body.SessionSetupRes);
+ init_iso2SessionSetupResType(&exiOut->V2G_Message.Body.SessionSetupRes);
- exiOut->V2G_Message.Body.SessionSetupRes.ResponseCode = v2gresponseCodeType_OK;
+ exiOut->V2G_Message.Body.SessionSetupRes.ResponseCode = iso2responseCodeType_OK;
exiOut->V2G_Message.Body.SessionSetupRes.EVSEID.characters[0] = 0;
exiOut->V2G_Message.Body.SessionSetupRes.EVSEID.characters[1] = 20;
exiOut->V2G_Message.Body.SessionSetupRes.EVSEID.charactersLen = 2;
@@ -323,7 +324,7 @@ static int sessionSetup(struct v2gEXIDocument* exiIn, struct v2gEXIDocument* exi
return 0;
}
-static int serviceDiscovery(struct v2gEXIDocument* exiIn, struct v2gEXIDocument* exiOut) {
+static int serviceDiscovery(struct iso2EXIDocument* exiIn, struct iso2EXIDocument* exiOut) {
int i;
printf("EVSE side: serviceDiscovery called\n" );
@@ -338,17 +339,17 @@ static int serviceDiscovery(struct v2gEXIDocument* exiIn, struct v2gEXIDocument*
/* Prepare data for EV */
exiOut->V2G_Message_isUsed = 1u;
- init_v2gBodyType(&exiOut->V2G_Message.Body);
+ init_iso2BodyType(&exiOut->V2G_Message.Body);
exiOut->V2G_Message.Body.ServiceDiscoveryRes_isUsed = 1u;
- init_v2gServiceDiscoveryResType(&exiOut->V2G_Message.Body.ServiceDiscoveryRes);
+ init_iso2ServiceDiscoveryResType(&exiOut->V2G_Message.Body.ServiceDiscoveryRes);
exiOut->V2G_Message.Body.ServiceDiscoveryRes.VASList_isUsed = 0u; /* we do not provide VAS */
- exiOut->V2G_Message.Body.ServiceDiscoveryRes.ResponseCode = v2gresponseCodeType_OK;
+ exiOut->V2G_Message.Body.ServiceDiscoveryRes.ResponseCode = iso2responseCodeType_OK;
- exiOut->V2G_Message.Body.ServiceDiscoveryRes.PaymentOptionList.PaymentOption.array[0] = v2gpaymentOptionType_ExternalPayment; /* EVSE handles the payment */
- exiOut->V2G_Message.Body.ServiceDiscoveryRes.PaymentOptionList.PaymentOption.array[1] = v2gpaymentOptionType_Contract;
+ exiOut->V2G_Message.Body.ServiceDiscoveryRes.PaymentOptionList.PaymentOption.array[0] = iso2paymentOptionType_ExternalPayment; /* EVSE handles the payment */
+ exiOut->V2G_Message.Body.ServiceDiscoveryRes.PaymentOptionList.PaymentOption.array[1] = iso2paymentOptionType_Contract;
exiOut->V2G_Message.Body.ServiceDiscoveryRes.PaymentOptionList.PaymentOption.arrayLen = 2;
exiOut->V2G_Message.Body.ServiceDiscoveryRes.EnergyTransferServiceList.Service.arrayLen = 1;
@@ -361,7 +362,7 @@ static int serviceDiscovery(struct v2gEXIDocument* exiIn, struct v2gEXIDocument*
}
-static int serviceDetail(struct v2gEXIDocument* exiIn, struct v2gEXIDocument* exiOut) {
+static int serviceDetail(struct iso2EXIDocument* exiIn, struct iso2EXIDocument* exiOut) {
printf("EVSE side: serviceDetail called\n" );
printf("\tReceived data:\n");
@@ -372,10 +373,10 @@ static int serviceDetail(struct v2gEXIDocument* exiIn, struct v2gEXIDocument* ex
/* Prepare data for EV */
exiOut->V2G_Message_isUsed = 1u;
- init_v2gBodyType(&exiOut->V2G_Message.Body);
+ init_iso2BodyType(&exiOut->V2G_Message.Body);
exiOut->V2G_Message.Body.ServiceDetailRes_isUsed= 1u;
- init_v2gServiceDetailResType(&exiOut->V2G_Message.Body.ServiceDetailRes);
+ init_iso2ServiceDetailResType(&exiOut->V2G_Message.Body.ServiceDetailRes);
exiOut->V2G_Message.Body.ServiceDetailRes.ServiceID = 1234;
@@ -426,13 +427,13 @@ static int serviceDetail(struct v2gEXIDocument* exiIn, struct v2gEXIDocument* ex
exiOut->V2G_Message.Body.ServiceDetailRes.ServiceParameterList.ParameterSet.array[1].Parameter.array[0].physicalValue.Exponent = 1;
exiOut->V2G_Message.Body.ServiceDetailRes.ServiceParameterList.ParameterSet.array[1].Parameter.array[0].physicalValue.Value = 2;
- exiOut->V2G_Message.Body.ServiceDetailRes.ResponseCode = v2gresponseCodeType_OK;
+ exiOut->V2G_Message.Body.ServiceDetailRes.ResponseCode = iso2responseCodeType_OK;
return 0;
}
-static int paymentServiceSelection(struct v2gEXIDocument* exiIn, struct v2gEXIDocument* exiOut) {
+static int paymentServiceSelection(struct iso2EXIDocument* exiIn, struct iso2EXIDocument* exiOut) {
int i;
printf("EVSE side: paymentServiceSelection called\n" );
@@ -440,7 +441,7 @@ static int paymentServiceSelection(struct v2gEXIDocument* exiIn, struct v2gEXIDo
printf("\tHeader SessionID=");
printBinaryArray(exiIn->V2G_Message.Header.SessionID.bytes, exiIn->V2G_Message.Header.SessionID.bytesLen);
- if(exiIn->V2G_Message.Body.PaymentServiceSelectionReq.SelectedPaymentOption == v2gpaymentOptionType_ExternalPayment) {
+ if(exiIn->V2G_Message.Body.PaymentServiceSelectionReq.SelectedPaymentOption == iso2paymentOptionType_ExternalPayment) {
printf("\t\t SelectedPaymentOption=ExternalPayment\n");
}
@@ -454,18 +455,18 @@ static int paymentServiceSelection(struct v2gEXIDocument* exiIn, struct v2gEXIDo
/* Prepare data for EV */
exiOut->V2G_Message_isUsed = 1u;
- init_v2gBodyType(&exiOut->V2G_Message.Body);
+ init_iso2BodyType(&exiOut->V2G_Message.Body);
exiOut->V2G_Message.Body.PaymentServiceSelectionRes_isUsed= 1u;
- init_v2gV2GResponseType(&exiOut->V2G_Message.Body.PaymentServiceSelectionRes);
+ init_iso2PaymentServiceSelectionResType(&exiOut->V2G_Message.Body.PaymentServiceSelectionRes);
- exiOut->V2G_Message.Body.ServiceDetailRes.ResponseCode = v2gresponseCodeType_OK;
+ exiOut->V2G_Message.Body.ServiceDetailRes.ResponseCode = iso2responseCodeType_OK;
return 0;
}
-static int paymentDetails(struct v2gEXIDocument* exiIn, struct v2gEXIDocument* exiOut) {
+static int paymentDetails(struct iso2EXIDocument* exiIn, struct iso2EXIDocument* exiOut) {
printf("EVSE side: paymentDetails called\n" );
printf("\tReceived data:\n");
@@ -478,12 +479,12 @@ static int paymentDetails(struct v2gEXIDocument* exiIn, struct v2gEXIDocument* e
/* Prepare data for EV */
exiOut->V2G_Message_isUsed = 1u;
- init_v2gBodyType(&exiOut->V2G_Message.Body);
+ init_iso2BodyType(&exiOut->V2G_Message.Body);
exiOut->V2G_Message.Body.PaymentDetailsRes_isUsed = 1u;
- init_v2gPaymentDetailsResType(&exiOut->V2G_Message.Body.PaymentDetailsRes);
+ init_iso2PaymentDetailsResType(&exiOut->V2G_Message.Body.PaymentDetailsRes);
- exiOut->V2G_Message.Body.PaymentDetailsRes.ResponseCode = v2gresponseCodeType_OK;
+ exiOut->V2G_Message.Body.PaymentDetailsRes.ResponseCode = iso2responseCodeType_OK;
exiOut->V2G_Message.Body.PaymentDetailsRes.GenChallenge.bytesLen = 1;
exiOut->V2G_Message.Body.PaymentDetailsRes.GenChallenge.bytes[0] = 1;
exiOut->V2G_Message.Body.PaymentDetailsRes.EVSETimeStamp = 123456;
@@ -492,7 +493,7 @@ static int paymentDetails(struct v2gEXIDocument* exiIn, struct v2gEXIDocument* e
}
-static int authorization(struct v2gEXIDocument* exiIn, struct v2gEXIDocument* exiOut) {
+static int authorization(struct iso2EXIDocument* exiIn, struct iso2EXIDocument* exiOut) {
printf("EVSE: Authorization called\n" );
printf("\tReceived data:\n");
@@ -507,19 +508,19 @@ static int authorization(struct v2gEXIDocument* exiIn, struct v2gEXIDocument* ex
/* Prepare data for EV */
exiOut->V2G_Message_isUsed = 1u;
- init_v2gBodyType(&exiOut->V2G_Message.Body);
+ init_iso2BodyType(&exiOut->V2G_Message.Body);
exiOut->V2G_Message.Body.AuthorizationRes_isUsed = 1u;
- init_v2gAuthorizationResType(&exiOut->V2G_Message.Body.AuthorizationRes);
+ init_iso2AuthorizationResType(&exiOut->V2G_Message.Body.AuthorizationRes);
- exiOut->V2G_Message.Body.AuthorizationRes.ResponseCode = v2gresponseCodeType_OK;
- exiOut->V2G_Message.Body.AuthorizationRes.EVSEProcessing = v2gEVSEProcessingType_Finished;
+ exiOut->V2G_Message.Body.AuthorizationRes.ResponseCode = iso2responseCodeType_OK;
+ exiOut->V2G_Message.Body.AuthorizationRes.EVSEProcessing = iso2EVSEProcessingType_Finished;
return 0;
}
-static int chargeParameterDiscovery(struct v2gEXIDocument* exiIn, struct v2gEXIDocument* exiOut) {
+static int chargeParameterDiscovery(struct iso2EXIDocument* exiIn, struct iso2EXIDocument* exiOut) {
printf("EVSE side: chargeParameterDiscovery called\n" );
printf("\tReceived data:\n");
@@ -531,20 +532,20 @@ static int chargeParameterDiscovery(struct v2gEXIDocument* exiIn, struct v2gEXID
/* Prepare data for EV */
exiOut->V2G_Message_isUsed = 1u;
- init_v2gBodyType(&exiOut->V2G_Message.Body);
+ init_iso2BodyType(&exiOut->V2G_Message.Body);
exiOut->V2G_Message.Body.ChargeParameterDiscoveryRes_isUsed = 1u;
- init_v2gChargeParameterDiscoveryResType(&exiOut->V2G_Message.Body.ChargeParameterDiscoveryRes);
+ init_iso2ChargeParameterDiscoveryResType(&exiOut->V2G_Message.Body.ChargeParameterDiscoveryRes);
- exiOut->V2G_Message.Body.ChargeParameterDiscoveryRes.ResponseCode = v2gresponseCodeType_OK_CertificateExpiresSoon;
- exiOut->V2G_Message.Body.ChargeParameterDiscoveryRes.EVSEProcessing = v2gEVSEProcessingType_Ongoing;
+ exiOut->V2G_Message.Body.ChargeParameterDiscoveryRes.ResponseCode = iso2responseCodeType_OK_CertificateExpiresSoon;
+ exiOut->V2G_Message.Body.ChargeParameterDiscoveryRes.EVSEProcessing = iso2EVSEProcessingType_Ongoing;
exiOut->V2G_Message.Body.ChargeParameterDiscoveryRes.EVSEEnergyTransferParameter_isUsed = 1u;
/*exiOut->V2G_Message.Body.ChargeParameterDiscoveryRes.EVSEEnergyTransferParameter = 0;*/
return 0;
}
-static int powerDelivery(struct v2gEXIDocument* exiIn, struct v2gEXIDocument* exiOut) {
+static int powerDelivery(struct iso2EXIDocument* exiIn, struct iso2EXIDocument* exiOut) {
printf("EVSE side: powerDelivery called\n" );
printf("\tReceived data:\n");
@@ -553,40 +554,40 @@ static int powerDelivery(struct v2gEXIDocument* exiIn, struct v2gEXIDocument* ex
/* Prepare data for EV */
exiOut->V2G_Message_isUsed = 1u;
- init_v2gBodyType(&exiOut->V2G_Message.Body);
+ init_iso2BodyType(&exiOut->V2G_Message.Body);
exiOut->V2G_Message.Body.PowerDeliveryRes_isUsed = 1u;
- init_v2gPowerDeliveryResType(&exiOut->V2G_Message.Body.PowerDeliveryRes);
+ init_iso2PowerDeliveryResType(&exiOut->V2G_Message.Body.PowerDeliveryRes);
- exiOut->V2G_Message.Body.PowerDeliveryRes.ResponseCode = v2gresponseCodeType_OK;
+ exiOut->V2G_Message.Body.PowerDeliveryRes.ResponseCode = iso2responseCodeType_OK;
exiOut->V2G_Message.Body.PowerDeliveryRes.EVSEStatus_isUsed = 1;
- exiOut->V2G_Message.Body.PowerDeliveryRes.EVSEStatus.EVSENotification = v2gEVSENotificationType_StopCharging;
+ exiOut->V2G_Message.Body.PowerDeliveryRes.EVSEStatus.EVSENotification = iso2EVSENotificationType_StopCharging;
exiOut->V2G_Message.Body.PowerDeliveryRes.EVSEStatus.NotificationMaxDelay=12;
- exiOut->V2G_Message.Body.PowerDeliveryRes.EVSEProcessing = v2gEVSEProcessingType_Ongoing_WaitingForCustomerInteraction;
+ exiOut->V2G_Message.Body.PowerDeliveryRes.EVSEProcessing = iso2EVSEProcessingType_Ongoing_WaitingForCustomerInteraction;
return 0;
}
-static int chargingStatus(struct v2gEXIDocument* exiIn, struct v2gEXIDocument* exiOut) {
+static int chargingStatus(struct iso2EXIDocument* exiIn, struct iso2EXIDocument* exiOut) {
printf("EVSE side: chargingStatus called\n" );
/* Prepare data for EV */
exiOut->V2G_Message_isUsed = 1u;
- init_v2gBodyType(&exiOut->V2G_Message.Body);
+ init_iso2BodyType(&exiOut->V2G_Message.Body);
exiOut->V2G_Message.Body.ChargingStatusRes_isUsed = 1u;
- init_v2gChargingStatusResType(&exiOut->V2G_Message.Body.ChargingStatusRes);
+ init_iso2ChargingStatusResType(&exiOut->V2G_Message.Body.ChargingStatusRes);
- exiOut->V2G_Message.Body.ChargingStatusRes.ResponseCode = v2gresponseCodeType_OK;
+ exiOut->V2G_Message.Body.ChargingStatusRes.ResponseCode = iso2responseCodeType_OK;
exiOut->V2G_Message.Body.ChargingStatusRes.EVSEID.characters[0]= 'A';
exiOut->V2G_Message.Body.ChargingStatusRes.EVSEID.charactersLen =1;
- exiOut->V2G_Message.Body.ChargingStatusRes.EVSEStatus.EVSENotification = v2gEVSENotificationType_ReNegotiation;
+ exiOut->V2G_Message.Body.ChargingStatusRes.EVSEStatus.EVSENotification = iso2EVSENotificationType_ReNegotiation;
exiOut->V2G_Message.Body.ChargingStatusRes.EVSEStatus.NotificationMaxDelay=123;
exiOut->V2G_Message.Body.ChargingStatusRes.ReceiptRequired = 1;
exiOut->V2G_Message.Body.ChargingStatusRes.ReceiptRequired_isUsed = 1;
@@ -595,7 +596,7 @@ static int chargingStatus(struct v2gEXIDocument* exiIn, struct v2gEXIDocument* e
}
-static int meteringReceipt(struct v2gEXIDocument* exiIn, struct v2gEXIDocument* exiOut) {
+static int meteringReceipt(struct iso2EXIDocument* exiIn, struct iso2EXIDocument* exiOut) {
printf("EVSE side: meteringReceipt called\n" );
printf("\tReceived data:\n");
@@ -608,17 +609,17 @@ static int meteringReceipt(struct v2gEXIDocument* exiIn, struct v2gEXIDocument*
/* Prepare data for EV */
exiOut->V2G_Message_isUsed = 1u;
- init_v2gBodyType(&exiOut->V2G_Message.Body);
+ init_iso2BodyType(&exiOut->V2G_Message.Body);
exiOut->V2G_Message.Body.MeteringReceiptRes_isUsed = 1u;
- init_v2gV2GResponseType(&exiOut->V2G_Message.Body.MeteringReceiptRes);
+ init_iso2MeteringReceiptResType(&exiOut->V2G_Message.Body.MeteringReceiptRes);
- exiOut->V2G_Message.Body.MeteringReceiptRes.ResponseCode = v2gresponseCodeType_FAILED;
+ exiOut->V2G_Message.Body.MeteringReceiptRes.ResponseCode = iso2responseCodeType_FAILED;
return 0;
}
-static int sessionStop(struct v2gEXIDocument* exiIn, struct v2gEXIDocument* exiOut) {
+static int sessionStop(struct iso2EXIDocument* exiIn, struct iso2EXIDocument* exiOut) {
printf("EVSE side: sessionStop called\n" );
printf("\tReceived data:\n");
@@ -628,38 +629,38 @@ static int sessionStop(struct v2gEXIDocument* exiIn, struct v2gEXIDocument* exiO
/* Prepare data for EV */
exiOut->V2G_Message_isUsed = 1u;
- init_v2gBodyType(&exiOut->V2G_Message.Body);
+ init_iso2BodyType(&exiOut->V2G_Message.Body);
exiOut->V2G_Message.Body.SessionStopRes_isUsed = 1u;
- init_v2gV2GResponseType(&exiOut->V2G_Message.Body.SessionStopRes);
+ init_iso2SessionStopResType(&exiOut->V2G_Message.Body.SessionStopRes);
- exiOut->V2G_Message.Body.SessionStopRes.ResponseCode = v2gresponseCodeType_OK;
+ exiOut->V2G_Message.Body.SessionStopRes.ResponseCode = iso2responseCodeType_OK;
return 0;
}
-static int cableCheck(struct v2gEXIDocument* exiIn, struct v2gEXIDocument* exiOut) {
+static int cableCheck(struct iso2EXIDocument* exiIn, struct iso2EXIDocument* exiOut) {
printf("EVSE side: cableCheck called\n" );
/* Prepare data for EV */
exiOut->V2G_Message_isUsed = 1u;
- init_v2gBodyType(&exiOut->V2G_Message.Body);
+ init_iso2BodyType(&exiOut->V2G_Message.Body);
exiOut->V2G_Message.Body.CableCheckRes_isUsed = 1u;
- init_v2gCableCheckResType(&exiOut->V2G_Message.Body.CableCheckRes);
+ init_iso2CableCheckResType(&exiOut->V2G_Message.Body.CableCheckRes);
- exiOut->V2G_Message.Body.CableCheckRes.ResponseCode = v2gresponseCodeType_OK;
+ exiOut->V2G_Message.Body.CableCheckRes.ResponseCode = iso2responseCodeType_OK;
exiOut->V2G_Message.Body.CableCheckRes.EVSEStatus.NotificationMaxDelay = 1234;
- exiOut->V2G_Message.Body.CableCheckRes.EVSEStatus.EVSENotification= v2gEVSENotificationType_ReNegotiation;
+ exiOut->V2G_Message.Body.CableCheckRes.EVSEStatus.EVSENotification= iso2EVSENotificationType_ReNegotiation;
- exiOut->V2G_Message.Body.CableCheckRes.EVSEProcessing = v2gEVSEProcessingType_Finished;
+ exiOut->V2G_Message.Body.CableCheckRes.EVSEProcessing = iso2EVSEProcessingType_Finished;
return 0;
}
-static int preCharge(struct v2gEXIDocument* exiIn, struct v2gEXIDocument* exiOut) {
+static int preCharge(struct iso2EXIDocument* exiIn, struct iso2EXIDocument* exiOut) {
printf("EVSE side: preCharge called\n" );
printf("\tReceived data:\n");
@@ -669,14 +670,14 @@ static int preCharge(struct v2gEXIDocument* exiIn, struct v2gEXIDocument* exiOut
/* Prepare data for EV */
exiOut->V2G_Message_isUsed = 1u;
- init_v2gBodyType(&exiOut->V2G_Message.Body);
+ init_iso2BodyType(&exiOut->V2G_Message.Body);
exiOut->V2G_Message.Body.PreChargeRes_isUsed = 1u;
- init_v2gPreChargeResType(&exiOut->V2G_Message.Body.PreChargeRes);
+ init_iso2PreChargeResType(&exiOut->V2G_Message.Body.PreChargeRes);
- exiOut->V2G_Message.Body.PreChargeRes.ResponseCode = v2gresponseCodeType_OK;
+ exiOut->V2G_Message.Body.PreChargeRes.ResponseCode = iso2responseCodeType_OK;
- exiOut->V2G_Message.Body.PreChargeRes.EVSEStatus.EVSENotification = v2gEVSENotificationType_StopCharging;
+ exiOut->V2G_Message.Body.PreChargeRes.EVSEStatus.EVSENotification = iso2EVSENotificationType_StopCharging;
exiOut->V2G_Message.Body.PreChargeRes.EVSEStatus.NotificationMaxDelay= 1234;
exiOut->V2G_Message.Body.PreChargeRes.EVSEPresentVoltage.Exponent = 3;
@@ -687,12 +688,12 @@ static int preCharge(struct v2gEXIDocument* exiIn, struct v2gEXIDocument* exiOut
-static int create_response_message(struct v2gEXIDocument* exiIn, struct v2gEXIDocument* exiOut) {
+static int create_response_message(struct iso2EXIDocument* exiIn, struct iso2EXIDocument* exiOut) {
int errn = ERROR_UNEXPECTED_REQUEST_MESSAGE;
/* create response message as EXI document */
if(exiIn->V2G_Message_isUsed) {
- init_v2gEXIDocument(exiOut);
+ init_iso2EXIDocument(exiOut);
if (exiIn->V2G_Message.Body.SessionSetupReq_isUsed) {
errn = sessionSetup(exiIn, exiOut);
} else if (exiIn->V2G_Message.Body.ServiceDiscoveryReq_isUsed) {
@@ -727,7 +728,7 @@ static int create_response_message(struct v2gEXIDocument* exiIn, struct v2gEXIDo
/* Adapt this to your system setup! */
/* In this situation EV and EVSE is the same party */
-static int request_response(struct v2gEXIDocument* exiIn, struct v2gEXIDocument* exiOut) {
+static int request_response(struct iso2EXIDocument* exiIn, struct iso2EXIDocument* exiOut) {
int errn;
bitstream_t stream1;
@@ -779,17 +780,17 @@ static int charging()
int errn = 0;
int i, j;
- struct v2gEXIDocument exiIn;
- struct v2gEXIDocument exiOut;
+ struct iso2EXIDocument exiIn;
+ struct iso2EXIDocument exiOut;
- struct v2gServiceDetailResType serviceDetailRes;
- struct v2gV2GResponseType paymentServiceSelectionRes;
- struct v2gPaymentDetailsResType paymentDetailsRes;
+ struct iso2ServiceDetailResType serviceDetailRes;
+ struct iso2PaymentServiceSelectionResType paymentServiceSelectionRes;
+ struct iso2PaymentDetailsResType paymentDetailsRes;
/* setup header information */
- init_v2gEXIDocument(&exiIn);
+ init_iso2EXIDocument(&exiIn);
exiIn.V2G_Message_isUsed = 1u;
- init_v2gMessageHeaderType(&exiIn.V2G_Message.Header);
+ init_iso2MessageHeaderType(&exiIn.V2G_Message.Header);
exiIn.V2G_Message.Header.SessionID.bytes[0] = 0; /* sessionID is always '0' at the beginning (the response contains the valid sessionID)*/
exiIn.V2G_Message.Header.SessionID.bytes[1] = 0;
exiIn.V2G_Message.Header.SessionID.bytes[2] = 0;
@@ -805,10 +806,10 @@ static int charging()
/************************
* sessionSetup *
************************/
- init_v2gBodyType(&exiIn.V2G_Message.Body);
+ init_iso2BodyType(&exiIn.V2G_Message.Body);
exiIn.V2G_Message.Body.SessionSetupReq_isUsed = 1u;
- init_v2gSessionSetupReqType(&exiIn.V2G_Message.Body.SessionSetupReq);
+ init_iso2SessionSetupReqType(&exiIn.V2G_Message.Body.SessionSetupReq);
exiIn.V2G_Message.Body.SessionSetupReq.EVCCID.bytesLen = 1;
exiIn.V2G_Message.Body.SessionSetupReq.EVCCID.bytes[0] = 10;
@@ -839,14 +840,14 @@ static int charging()
/*******************************************
* serviceDiscovery *
*******************************************/
- init_v2gBodyType(&exiIn.V2G_Message.Body);
+ init_iso2BodyType(&exiIn.V2G_Message.Body);
exiIn.V2G_Message.Body.ServiceDiscoveryReq_isUsed = 1u;
- init_v2gServiceDiscoveryReqType(&exiIn.V2G_Message.Body.ServiceDiscoveryReq);
+ init_iso2ServiceDiscoveryReqType(&exiIn.V2G_Message.Body.ServiceDiscoveryReq);
exiIn.V2G_Message.Body.ServiceDiscoveryReq.SupportedServiceIDs_isUsed = 1u;
exiIn.V2G_Message.Body.ServiceDiscoveryReq.SupportedServiceIDs.ServiceID.arrayLen = 1;
- exiIn.V2G_Message.Body.ServiceDiscoveryReq.SupportedServiceIDs.ServiceID.array[0] = v2gserviceCategoryType_Internet;
+ exiIn.V2G_Message.Body.ServiceDiscoveryReq.SupportedServiceIDs.ServiceID.array[0] = iso2serviceCategoryType_Internet;
printf("EV side: call EVSE serviceDiscovery");
@@ -904,10 +905,10 @@ static int charging()
/*********************************
* ServiceDetails *
*********************************/
- init_v2gBodyType(&exiIn.V2G_Message.Body);
+ init_iso2BodyType(&exiIn.V2G_Message.Body);
exiIn.V2G_Message.Body.ServiceDetailReq_isUsed = 1u;
- init_v2gServiceDetailReqType(&exiIn.V2G_Message.Body.ServiceDetailReq);
+ init_iso2ServiceDetailReqType(&exiIn.V2G_Message.Body.ServiceDetailReq);
exiIn.V2G_Message.Body.ServiceDetailReq.ServiceID = 22; /* Value Added Server ID */
@@ -962,12 +963,12 @@ static int charging()
/*******************************************
* ServicePaymentSelection *
*******************************************/
- init_v2gBodyType(&exiIn.V2G_Message.Body);
+ init_iso2BodyType(&exiIn.V2G_Message.Body);
exiIn.V2G_Message.Body.PaymentServiceSelectionReq_isUsed = 1u;
- init_v2gPaymentServiceSelectionReqType(&exiIn.V2G_Message.Body.PaymentServiceSelectionReq);
+ init_iso2PaymentServiceSelectionReqType(&exiIn.V2G_Message.Body.PaymentServiceSelectionReq);
- exiIn.V2G_Message.Body.PaymentServiceSelectionReq.SelectedPaymentOption = v2gpaymentOptionType_ExternalPayment;
+ exiIn.V2G_Message.Body.PaymentServiceSelectionReq.SelectedPaymentOption = iso2paymentOptionType_ExternalPayment;
exiIn.V2G_Message.Body.PaymentServiceSelectionReq.SelectedVASList_isUsed = 0u;
exiIn.V2G_Message.Body.PaymentServiceSelectionReq.SelectedEnergyTransferService.ServiceID = 1;
exiIn.V2G_Message.Body.PaymentServiceSelectionReq.SelectedEnergyTransferService.ParameterSetID = 4;
@@ -1001,10 +1002,10 @@ static int charging()
/**********************************
* PaymentDetails *
**********************************/
- init_v2gBodyType(&exiIn.V2G_Message.Body);
+ init_iso2BodyType(&exiIn.V2G_Message.Body);
exiIn.V2G_Message.Body.PaymentDetailsReq_isUsed = 1u;
- init_v2gPaymentDetailsReqType(&exiIn.V2G_Message.Body.PaymentDetailsReq);
+ init_iso2PaymentDetailsReqType(&exiIn.V2G_Message.Body.PaymentDetailsReq);
exiIn.V2G_Message.Body.PaymentDetailsReq.eMAID.characters[0] = 1;
exiIn.V2G_Message.Body.PaymentDetailsReq.eMAID.characters[1] = 123;
@@ -1059,10 +1060,10 @@ static int charging()
/*******************************************
* Authorization *
*******************************************/
- init_v2gBodyType(&exiIn.V2G_Message.Body);
+ init_iso2BodyType(&exiIn.V2G_Message.Body);
exiIn.V2G_Message.Body.AuthorizationReq_isUsed = 1u;
- init_v2gAuthorizationReqType(&exiIn.V2G_Message.Body.AuthorizationReq);
+ init_iso2AuthorizationReqType(&exiIn.V2G_Message.Body.AuthorizationReq);
copyBytes(paymentDetailsRes.GenChallenge.bytes, paymentDetailsRes.GenChallenge.bytesLen, exiIn.V2G_Message.Body.AuthorizationReq.GenChallenge.bytes);
exiIn.V2G_Message.Body.AuthorizationReq.GenChallenge.bytesLen = paymentDetailsRes.GenChallenge.bytesLen;
@@ -1088,7 +1089,7 @@ static int charging()
printBinaryArray(exiOut.V2G_Message.Header.SessionID.bytes, exiOut.V2G_Message.Header.SessionID.bytesLen);
printf("\t ResponseCode=%d\n", exiOut.V2G_Message.Body.AuthorizationRes.ResponseCode);
- if(exiOut.V2G_Message.Body.AuthorizationRes.EVSEProcessing == v2gEVSEProcessingType_Finished) {
+ if(exiOut.V2G_Message.Body.AuthorizationRes.EVSEProcessing == iso2EVSEProcessingType_Finished) {
printf("\t EVSEProcessing=Finished\n");
}
} else {
@@ -1105,10 +1106,10 @@ static int charging()
/*******************************************
* chargeParameterDiscovery *
*******************************************/
- init_v2gBodyType(&exiIn.V2G_Message.Body);
+ init_iso2BodyType(&exiIn.V2G_Message.Body);
exiIn.V2G_Message.Body.ChargeParameterDiscoveryReq_isUsed = 1u;
- init_v2gChargeParameterDiscoveryReqType(&exiIn.V2G_Message.Body.ChargeParameterDiscoveryReq);
+ init_iso2ChargeParameterDiscoveryReqType(&exiIn.V2G_Message.Body.ChargeParameterDiscoveryReq);
/* we use here AC based charging parameters */
exiIn.V2G_Message.Body.ChargeParameterDiscoveryReq.MaxSupportingPoints_isUsed = 1u;
@@ -1171,7 +1172,7 @@ static int charging()
/*****************************
* cableCheck *
*****************************/
- init_v2gBodyType(&exiIn.V2G_Message.Body);
+ init_iso2BodyType(&exiIn.V2G_Message.Body);
exiIn.V2G_Message.Body.CableCheckReq_isUsed = 1u;
/*init_v2gCableCheckReqType(&exiIn.V2G_Message.Body.CableCheckReq);*/
@@ -1190,7 +1191,7 @@ static int charging()
printBinaryArray(exiOut.V2G_Message.Header.SessionID.bytes, exiOut.V2G_Message.Header.SessionID.bytesLen);
printf("\t ResponseCode=%d\n", exiOut.V2G_Message.Body.CableCheckRes.ResponseCode);
- if(exiOut.V2G_Message.Body.CableCheckRes.EVSEProcessing==v2gEVSEProcessingType_Finished) {
+ if(exiOut.V2G_Message.Body.CableCheckRes.EVSEProcessing==iso2EVSEProcessingType_Finished) {
printf("\tEVSEProcessing=Finished\n");
}
@@ -1208,10 +1209,10 @@ static int charging()
/*****************************
* preCharge *
*****************************/
- init_v2gBodyType(&exiIn.V2G_Message.Body);
+ init_iso2BodyType(&exiIn.V2G_Message.Body);
exiIn.V2G_Message.Body.PreChargeReq_isUsed = 1u;
- init_v2gPreChargeReqType(&exiIn.V2G_Message.Body.PreChargeReq);
+ init_iso2PreChargeReqType(&exiIn.V2G_Message.Body.PreChargeReq);
exiIn.V2G_Message.Body.PreChargeReq.EVTargetCurrent.Exponent = 1;
exiIn.V2G_Message.Body.PreChargeReq.EVTargetCurrent.Value = 234;
@@ -1250,12 +1251,12 @@ static int charging()
* PowerDelivery *
*********************************/
- init_v2gBodyType(&exiIn.V2G_Message.Body);
+ init_iso2BodyType(&exiIn.V2G_Message.Body);
exiIn.V2G_Message.Body.PowerDeliveryReq_isUsed = 1u;
- init_v2gPowerDeliveryReqType(&exiIn.V2G_Message.Body.PowerDeliveryReq);
+ init_iso2PowerDeliveryReqType(&exiIn.V2G_Message.Body.PowerDeliveryReq);
- exiIn.V2G_Message.Body.PowerDeliveryReq.ChargeProgress = v2gchargeProgressType_Start;
+ exiIn.V2G_Message.Body.PowerDeliveryReq.ChargeProgress = iso2chargeProgressType_Start;
exiIn.V2G_Message.Body.PowerDeliveryReq.SAScheduleTupleID_isUsed = 1u;
exiIn.V2G_Message.Body.PowerDeliveryReq.SAScheduleTupleID = exiOut.V2G_Message.Body.ChargeParameterDiscoveryRes.SAScheduleList.SAScheduleTuple.array[0].SAScheduleTupleID;
@@ -1288,10 +1289,10 @@ static int charging()
* Setup data for chargingStatus *
*********************************/
- init_v2gBodyType(&exiIn.V2G_Message.Body);
+ init_iso2BodyType(&exiIn.V2G_Message.Body);
exiIn.V2G_Message.Body.ChargingStatusReq_isUsed = 1u;
- init_v2gChargingStatusReqType(&exiIn.V2G_Message.Body.ChargingStatusReq);
+ init_iso2ChargingStatusReqType(&exiIn.V2G_Message.Body.ChargingStatusReq);
exiIn.V2G_Message.Body.ChargingStatusReq.EVTargetEnergyRequest.Exponent = 2;
exiIn.V2G_Message.Body.ChargingStatusReq.EVTargetEnergyRequest.Value = 100;
@@ -1336,10 +1337,10 @@ static int charging()
* MeteringReceipt *
***********************************/
- init_v2gBodyType(&exiIn.V2G_Message.Body);
+ init_iso2BodyType(&exiIn.V2G_Message.Body);
exiIn.V2G_Message.Body.MeteringReceiptReq_isUsed = 1u;
- init_v2gMeteringReceiptReqType(&exiIn.V2G_Message.Body.MeteringReceiptReq);
+ init_iso2MeteringReceiptReqType(&exiIn.V2G_Message.Body.MeteringReceiptReq);
exiIn.V2G_Message.Body.MeteringReceiptReq.Id.characters[0]='I';
@@ -1350,7 +1351,7 @@ static int charging()
exiIn.V2G_Message.Body.MeteringReceiptReq.SessionID.bytes[0] = 22;
exiIn.V2G_Message.Body.MeteringReceiptReq.SessionID.bytesLen = 1;
- init_v2gMeterInfoType(&exiIn.V2G_Message.Body.MeteringReceiptReq.MeterInfo);
+ init_iso2MeterInfoType(&exiIn.V2G_Message.Body.MeteringReceiptReq.MeterInfo);
exiIn.V2G_Message.Body.MeteringReceiptReq.MeterInfo.MeterID.characters[0] = 'M';
exiIn.V2G_Message.Body.MeteringReceiptReq.MeterInfo.MeterID.characters[1] = 'i';
exiIn.V2G_Message.Body.MeteringReceiptReq.MeterInfo.MeterID.characters[2] = 'd';
@@ -1385,11 +1386,11 @@ static int charging()
***********************************/
- init_v2gBodyType(&exiIn.V2G_Message.Body);
+ init_iso2BodyType(&exiIn.V2G_Message.Body);
exiIn.V2G_Message.Body.SessionStopReq_isUsed = 1u;
- init_v2gSessionStopReqType(&exiIn.V2G_Message.Body.SessionStopReq);
- exiIn.V2G_Message.Body.SessionStopReq.ChargingSession = v2gchargingSessionType_Pause;
+ init_iso2SessionStopReqType(&exiIn.V2G_Message.Body.SessionStopReq);
+ exiIn.V2G_Message.Body.SessionStopReq.ChargingSession = iso2chargingSessionType_Pause;
printf("EV side: call EVSE stopSession \n");
@@ -1571,7 +1572,7 @@ static int xmldsig_test() {
stream2.data = buffer2;
stream2.pos = &pos2;
- struct v2gEXIFragment exiV2G_AR;
+ struct iso2EXIFragment exiV2G_AR;
struct xmldsigEXIFragment exiXMLDSIG_SI;
int sizeIsoStream1 = 25;
@@ -1590,9 +1591,9 @@ static int xmldsig_test() {
*/
- init_v2gEXIFragment(&exiV2G_AR);
+ init_iso2EXIFragment(&exiV2G_AR);
exiV2G_AR.AuthorizationReq_isUsed = 1u;
- init_v2gAuthorizationReqType(&exiV2G_AR.AuthorizationReq);
+ init_iso2AuthorizationReqType(&exiV2G_AR.AuthorizationReq);
exiV2G_AR.AuthorizationReq.Id_isUsed = 1;
exiV2G_AR.AuthorizationReq.Id.charactersLen = 3;
exiV2G_AR.AuthorizationReq.Id.characters[0] = 'I';
@@ -1619,7 +1620,7 @@ static int xmldsig_test() {
exiV2G_AR.AuthorizationReq.GenChallenge.bytes[15] = 0x61;
/* encode fragment with ISO schema */
- errn = encode_v2gExiFragment(&stream1, &exiV2G_AR);
+ errn = encode_iso2ExiFragment(&stream1, &exiV2G_AR);
if((*stream1.pos) != sizeIsoStream1) {
errn = -1;